|
@@ -24,6 +24,7 @@
|
|
|
* :name - Property's :block/name as a keyword. If none given, one is derived from the db/ident
|
|
|
* :attribute - Property keyword that is saved to a datascript attribute outside of :block/properties
|
|
|
* :closed-values - Vec of closed-value maps for properties with choices. Map
|
|
|
+ * :queryable? - Whether property can be queried in the query builder
|
|
|
has keys :value, :db-ident, :uuid and :icon"
|
|
|
(ordered-map
|
|
|
:block/alias {:title "Alias"
|
|
@@ -31,13 +32,15 @@
|
|
|
:schema {:type :page
|
|
|
:cardinality :many
|
|
|
:view-context :page
|
|
|
- :public? true}}
|
|
|
+ :public? true}
|
|
|
+ :queryable? true}
|
|
|
:block/tags {:title "Tags"
|
|
|
:attribute :block/tags
|
|
|
:schema {:type :class
|
|
|
:cardinality :many
|
|
|
:public? true
|
|
|
- :classes #{:logseq.class/Root}}}
|
|
|
+ :classes #{:logseq.class/Root}}
|
|
|
+ :queryable? true}
|
|
|
:kv/value {:title "KV value"
|
|
|
:attribute :kv/value
|
|
|
:schema {:type :any
|
|
@@ -47,7 +50,8 @@
|
|
|
:attribute :block/type
|
|
|
:schema {:type :string
|
|
|
:public? false
|
|
|
- :hide? true}}
|
|
|
+ :hide? true}
|
|
|
+ :queryable? true}
|
|
|
:block/schema {:title "Node schema"
|
|
|
:attribute :block/schema
|
|
|
:schema {:type :map
|
|
@@ -72,19 +76,22 @@
|
|
|
:attribute :block/page
|
|
|
:schema {:type :entity
|
|
|
:public? false
|
|
|
- :hide? true}}
|
|
|
+ :hide? true}
|
|
|
+ :queryable? true}
|
|
|
:block/refs {:title "Node references"
|
|
|
:attribute :block/refs
|
|
|
:schema {:type :entity
|
|
|
:cardinality :many
|
|
|
:public? false
|
|
|
- :hide? true}}
|
|
|
+ :hide? true}
|
|
|
+ :queryable? true}
|
|
|
:block/path-refs {:title "Node path references"
|
|
|
:attribute :block/path-refs
|
|
|
:schema {:type :entity
|
|
|
:cardinality :many
|
|
|
:public? false
|
|
|
- :hide? true}}
|
|
|
+ :hide? true}
|
|
|
+ :queryable? true}
|
|
|
:block/link {:title "Node links to"
|
|
|
:attribute :block/link
|
|
|
:schema {:type :entity
|
|
@@ -94,7 +101,8 @@
|
|
|
:attribute :block/title
|
|
|
:schema {:type :string
|
|
|
:public? false
|
|
|
- :hide? true}}
|
|
|
+ :hide? true}
|
|
|
+ :queryable? true}
|
|
|
:block/closed-value-property {:title "Closed value property"
|
|
|
:attribute :block/closed-value-property
|
|
|
:schema {:type :entity
|
|
@@ -126,16 +134,19 @@
|
|
|
:schema {:type :keyword
|
|
|
:public? false
|
|
|
:hide? true
|
|
|
- :view-context :block}}
|
|
|
+ :view-context :block}
|
|
|
+ :queryable? true}
|
|
|
:logseq.property.code/lang {:title "Code mode"
|
|
|
:schema {:type :string
|
|
|
:public? false
|
|
|
:hide? true
|
|
|
- :view-context :block}}
|
|
|
+ :view-context :block}
|
|
|
+ :queryable? true}
|
|
|
:logseq.property/parent {:title "Parent"
|
|
|
:schema {:type :node
|
|
|
:public? true
|
|
|
- :view-context :page}}
|
|
|
+ :view-context :page}
|
|
|
+ :queryable? true}
|
|
|
;; :logseq.property/default-value {:title "Default value"
|
|
|
;; :schema {:type :any
|
|
|
;; :public? true
|
|
@@ -163,27 +174,35 @@
|
|
|
:public? true
|
|
|
:view-context :page
|
|
|
:cardinality :many}}
|
|
|
- :logseq.property/background-color {:schema {:type :default :hide? true}}
|
|
|
- :logseq.property/background-image {:schema
|
|
|
- {:type :default
|
|
|
- :view-context :block
|
|
|
- :public? true}}
|
|
|
+ :logseq.property/background-color {:title "Background color"
|
|
|
+ :schema {:type :default :hide? true}}
|
|
|
+ :logseq.property/background-image {:title "Background image"
|
|
|
+ :schema
|
|
|
+ {:type :default ; FIXME: asset
|
|
|
+ :view-context :block}}
|
|
|
;; number (1-6) or boolean for auto heading
|
|
|
- :logseq.property/heading {:schema {:type :any :hide? true}}
|
|
|
- :logseq.property/created-from-property {:schema {:type :entity
|
|
|
+ :logseq.property/heading {:title "Heading"
|
|
|
+ :schema {:type :any :hide? true}
|
|
|
+ :queryable? true}
|
|
|
+ :logseq.property/created-from-property {:title "Created from property"
|
|
|
+ :schema {:type :entity
|
|
|
:hide? true}}
|
|
|
- :logseq.property/built-in? {:schema {:type :checkbox
|
|
|
+ :logseq.property/built-in? {:title "Built in?"
|
|
|
+ :schema {:type :checkbox
|
|
|
:hide? true}}
|
|
|
:logseq.property/asset {:title "Asset"
|
|
|
:schema {:type :entity
|
|
|
:hide? true}}
|
|
|
;; used by pdf and whiteboard
|
|
|
+ ;; TODO: remove ls-type
|
|
|
:logseq.property/ls-type {:schema {:type :keyword
|
|
|
:hide? true}}
|
|
|
|
|
|
- :logseq.property.pdf/hl-type {:schema {:type :keyword :hide? true}}
|
|
|
+ :logseq.property.pdf/hl-type {:title "Annotation type"
|
|
|
+ :schema {:type :keyword :hide? true}}
|
|
|
:logseq.property.pdf/hl-color
|
|
|
- {:schema {:type :default}
|
|
|
+ {:title "Annotation color"
|
|
|
+ :schema {:type :default}
|
|
|
:closed-values
|
|
|
(mapv (fn [[db-ident value]]
|
|
|
{:db-ident db-ident
|
|
@@ -194,18 +213,24 @@
|
|
|
[:logseq.property/color.green "green"]
|
|
|
[:logseq.property/color.blue "blue"]
|
|
|
[:logseq.property/color.purple "purple"]])}
|
|
|
- :logseq.property.pdf/hl-page {:schema {:type :raw-number}}
|
|
|
- :logseq.property.pdf/hl-image {:schema {:type :entity :hide? true}}
|
|
|
- :logseq.property.pdf/hl-value {:schema {:type :map :hide? true}}
|
|
|
+ :logseq.property.pdf/hl-page {:title "Annotation page"
|
|
|
+ :schema {:type :raw-number}}
|
|
|
+ :logseq.property.pdf/hl-image {:title "Annotation image"
|
|
|
+ :schema {:type :entity :hide? true}}
|
|
|
+ :logseq.property.pdf/hl-value {:title "Annotation data"
|
|
|
+ :schema {:type :map :hide? true}}
|
|
|
;; FIXME: :logseq.property/order-list-type should updated to closed values
|
|
|
- :logseq.property/order-list-type {:name :logseq.order-list-type
|
|
|
+ :logseq.property/order-list-type {:title "List type"
|
|
|
+ :name :logseq.order-list-type
|
|
|
:schema {:type :default
|
|
|
:hide? true}}
|
|
|
- :logseq.property.linked-references/includes {:schema {; could be :entity to support blocks(objects) in the future
|
|
|
+ :logseq.property.linked-references/includes {:title "Included references"
|
|
|
+ :schema {; could be :entity to support blocks(objects) in the future
|
|
|
:type :node
|
|
|
:cardinality :many
|
|
|
:hide? true}}
|
|
|
- :logseq.property.linked-references/excludes {:schema {:type :node
|
|
|
+ :logseq.property.linked-references/excludes {:title "Excluded references"
|
|
|
+ :schema {:type :node
|
|
|
:cardinality :many
|
|
|
:hide? true}}
|
|
|
:logseq.property.tldraw/page {:name :logseq.tldraw.page
|
|
@@ -271,24 +296,28 @@
|
|
|
[:logseq.task/status.in-review "In Review" "InReview"]
|
|
|
[:logseq.task/status.done "Done" "Done"]
|
|
|
[:logseq.task/status.canceled "Canceled" "Cancelled"]])
|
|
|
- :properties {:logseq.property/hide-empty-value true}}
|
|
|
+ :properties {:logseq.property/hide-empty-value true}
|
|
|
+ :queryable? true}
|
|
|
:logseq.task/deadline
|
|
|
{:title "Deadline"
|
|
|
:schema {:type :date
|
|
|
:public? true
|
|
|
:position :block-below}
|
|
|
- :properties {:logseq.property/hide-empty-value true}}
|
|
|
+ :properties {:logseq.property/hide-empty-value true}
|
|
|
+ :queryable? true}
|
|
|
|
|
|
;; TODO: Add more props :Assignee, :Estimate, :Cycle, :Project
|
|
|
|
|
|
:logseq.property/icon {:title "Icon"
|
|
|
:schema {:type :map}}
|
|
|
- :logseq.property/public {:schema
|
|
|
+ :logseq.property/public {:title "Public?"
|
|
|
+ :schema
|
|
|
{:type :checkbox
|
|
|
:hide? true
|
|
|
:view-context :page
|
|
|
:public? true}}
|
|
|
- :logseq.property/exclude-from-graph-view {:schema
|
|
|
+ :logseq.property/exclude-from-graph-view {:title "Excluded from Graph view?"
|
|
|
+ :schema
|
|
|
{:type :checkbox
|
|
|
:hide? true
|
|
|
:view-context :page
|
|
@@ -311,46 +340,55 @@
|
|
|
:uuid (common-uuid/gen-uuid :db-ident-block-uuid db-ident)})
|
|
|
[[:logseq.property.view/type.table "Table View"]
|
|
|
[:logseq.property.view/type.list "List View"]
|
|
|
- [:logseq.property.view/type.gallery "Gallery View"]])}
|
|
|
+ [:logseq.property.view/type.gallery "Gallery View"]])
|
|
|
+ :queryable? true}
|
|
|
|
|
|
- :logseq.property.table/sorting {:schema
|
|
|
+ :logseq.property.table/sorting {:title "View sorting"
|
|
|
+ :schema
|
|
|
{:type :coll
|
|
|
:hide? true
|
|
|
:public? false}}
|
|
|
|
|
|
- :logseq.property.table/filters {:schema
|
|
|
+ :logseq.property.table/filters {:title "View filters"
|
|
|
+ :schema
|
|
|
{:type :coll
|
|
|
:hide? true
|
|
|
:public? false}}
|
|
|
|
|
|
- :logseq.property.table/hidden-columns {:schema
|
|
|
+ :logseq.property.table/hidden-columns {:title "View hidden columns"
|
|
|
+ :schema
|
|
|
{:type :keyword
|
|
|
:cardinality :many
|
|
|
:hide? true
|
|
|
:public? false}}
|
|
|
|
|
|
- :logseq.property.table/ordered-columns {:schema
|
|
|
+ :logseq.property.table/ordered-columns {:title "View ordered columns"
|
|
|
+ :schema
|
|
|
{:type :coll
|
|
|
:hide? true
|
|
|
:public? false}}
|
|
|
|
|
|
- :logseq.property.table/sized-columns {:schema
|
|
|
+ :logseq.property.table/sized-columns {:title "View columns settings"
|
|
|
+ :schema
|
|
|
{:type :map
|
|
|
:hide? true
|
|
|
:public? false}}
|
|
|
|
|
|
- :logseq.property/view-for {:schema
|
|
|
+ :logseq.property/view-for {:title "This view belongs to"
|
|
|
+ :schema
|
|
|
{:type :node
|
|
|
:hide? true
|
|
|
:public? false}}
|
|
|
:logseq.property.asset/type {:title "File type"
|
|
|
:schema {:type :string
|
|
|
:hide? true
|
|
|
- :public? false}}
|
|
|
+ :public? false}
|
|
|
+ :queryable? true}
|
|
|
:logseq.property.asset/size {:title "File size"
|
|
|
:schema {:type :raw-number
|
|
|
:hide? true
|
|
|
- :public? false}}
|
|
|
+ :public? false}
|
|
|
+ :queryable? true}
|
|
|
:logseq.property.asset/checksum {:title "File checksum"
|
|
|
:schema {:type :string
|
|
|
:hide? true
|
|
@@ -359,7 +397,8 @@
|
|
|
:schema {:type :raw-number
|
|
|
:hide? true
|
|
|
:public? false}}
|
|
|
- :logseq.property.asset/remote-metadata {:schema
|
|
|
+ :logseq.property.asset/remote-metadata {:title "File remote metadata"
|
|
|
+ :schema
|
|
|
{:type :map
|
|
|
:hide? true
|
|
|
:public? false}}
|