@fibery/views 19.1.2 → 20.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_virtual/_rolldown/runtime.js +13 -0
- package/lib/errors.d.ts +4 -0
- package/lib/errors.js +4 -0
- package/lib/field-utils/avatar.d.ts +23 -0
- package/lib/field-utils/avatar.js +35 -0
- package/lib/field-utils/back-references.d.ts +18 -0
- package/lib/field-utils/back-references.js +15 -0
- package/lib/field-utils/comments.d.ts +63 -0
- package/lib/field-utils/comments.js +41 -0
- package/lib/field-utils/date-time.d.ts +17 -0
- package/lib/field-utils/date-time.js +31 -0
- package/lib/field-utils/enum-value.d.ts +16 -0
- package/lib/field-utils/enum-value.js +26 -0
- package/lib/field-utils/file.d.ts +7 -0
- package/lib/field-utils/file.js +14 -0
- package/lib/field-utils/icon.d.ts +13 -0
- package/lib/field-utils/icon.js +17 -0
- package/lib/field-utils/number.d.ts +34 -0
- package/lib/field-utils/number.js +64 -0
- package/lib/field-utils/reference-collection.d.ts +16 -0
- package/lib/field-utils/reference-collection.js +49 -0
- package/lib/field-utils/reference.d.ts +10 -0
- package/lib/field-utils/reference.js +55 -0
- package/lib/field-utils/relation-view.d.ts +5 -0
- package/lib/field-utils/relation-view.js +7 -0
- package/lib/field-utils/rich-text.d.ts +16 -0
- package/lib/field-utils/rich-text.js +33 -0
- package/lib/field-utils/text.d.ts +38 -0
- package/lib/field-utils/text.js +37 -0
- package/lib/field-utils/user-active.d.ts +11 -0
- package/lib/field-utils/user-active.js +24 -0
- package/lib/field-utils/user-role.d.ts +9 -0
- package/lib/field-utils/user-role.js +23 -0
- package/lib/field-utils/workflow.d.ts +18 -0
- package/lib/field-utils/workflow.js +48 -0
- package/lib/index.d.ts +34 -1
- package/lib/index.js +169 -16
- package/lib/meta-validation.d.ts +13 -0
- package/lib/meta-validation.js +53 -0
- package/lib/private/board.d.ts +18 -0
- package/lib/private/board.js +234 -0
- package/lib/private/calendar.d.ts +17 -0
- package/lib/private/calendar.js +82 -0
- package/lib/private/feed.d.ts +17 -0
- package/lib/private/feed.js +81 -0
- package/lib/private/form.d.ts +27 -0
- package/lib/private/form.js +57 -0
- package/lib/private/map.d.ts +17 -0
- package/lib/private/map.js +81 -0
- package/lib/private/smart-folder.d.ts +33 -0
- package/lib/private/smart-folder.js +165 -0
- package/lib/private/timeline.d.ts +41 -0
- package/lib/private/timeline.js +223 -0
- package/lib/private/units.d.ts +12 -0
- package/lib/private/units.js +131 -0
- package/lib/private/utils.d.ts +66 -0
- package/lib/private/utils.js +179 -0
- package/lib/tsfixme.d.ts +4 -0
- package/lib/tsfixme.js +0 -0
- package/lib/unit-definitions/avatar-collection.d.ts +5 -0
- package/lib/unit-definitions/avatar-collection.js +59 -0
- package/lib/unit-definitions/avatar-input.d.ts +5 -0
- package/lib/unit-definitions/avatar-input.js +12 -0
- package/lib/unit-definitions/avatar.d.ts +5 -0
- package/lib/unit-definitions/avatar.js +95 -0
- package/lib/unit-definitions/back-references-list.d.ts +5 -0
- package/lib/unit-definitions/back-references-list.js +39 -0
- package/lib/unit-definitions/bool-checkbox.d.ts +5 -0
- package/lib/unit-definitions/bool-checkbox.js +25 -0
- package/lib/unit-definitions/bool.d.ts +5 -0
- package/lib/unit-definitions/bool.js +25 -0
- package/lib/unit-definitions/collection-count.d.ts +5 -0
- package/lib/unit-definitions/collection-count.js +35 -0
- package/lib/unit-definitions/color-input.d.ts +5 -0
- package/lib/unit-definitions/color-input.js +24 -0
- package/lib/unit-definitions/comments-list.d.ts +5 -0
- package/lib/unit-definitions/comments-list.js +27 -0
- package/lib/unit-definitions/date-range-combobox.d.ts +5 -0
- package/lib/unit-definitions/date-range-combobox.js +25 -0
- package/lib/unit-definitions/date-range.d.ts +5 -0
- package/lib/unit-definitions/date-range.js +25 -0
- package/lib/unit-definitions/date-time-combobox.d.ts +5 -0
- package/lib/unit-definitions/date-time-combobox.js +25 -0
- package/lib/unit-definitions/date.d.ts +5 -0
- package/lib/unit-definitions/date.js +25 -0
- package/lib/unit-definitions/email-input.d.ts +5 -0
- package/lib/unit-definitions/email-input.js +12 -0
- package/lib/unit-definitions/email.d.ts +5 -0
- package/lib/unit-definitions/email.js +17 -0
- package/lib/unit-definitions/emoji.d.ts +5 -0
- package/lib/unit-definitions/emoji.js +17 -0
- package/lib/unit-definitions/file-collection-count.d.ts +5 -0
- package/lib/unit-definitions/file-collection-count.js +34 -0
- package/lib/unit-definitions/file-compact-collection.d.ts +5 -0
- package/lib/unit-definitions/file-compact-collection.js +34 -0
- package/lib/unit-definitions/file-compact-reference.d.ts +5 -0
- package/lib/unit-definitions/file-compact-reference.js +47 -0
- package/lib/unit-definitions/file-reference.d.ts +5 -0
- package/lib/unit-definitions/file-reference.js +30 -0
- package/lib/unit-definitions/files-gallery.d.ts +5 -0
- package/lib/unit-definitions/files-gallery.js +34 -0
- package/lib/unit-definitions/files-l-list-item.d.ts +5 -0
- package/lib/unit-definitions/files-l-list-item.js +30 -0
- package/lib/unit-definitions/files-l-list.d.ts +5 -0
- package/lib/unit-definitions/files-l-list.js +34 -0
- package/lib/unit-definitions/files-list-item.d.ts +5 -0
- package/lib/unit-definitions/files-list-item.js +30 -0
- package/lib/unit-definitions/files-list.d.ts +5 -0
- package/lib/unit-definitions/files-list.js +34 -0
- package/lib/unit-definitions/geometry-preview.d.ts +5 -0
- package/lib/unit-definitions/geometry-preview.js +17 -0
- package/lib/unit-definitions/icon-button.d.ts +5 -0
- package/lib/unit-definitions/icon-button.js +41 -0
- package/lib/unit-definitions/icon-input.d.ts +5 -0
- package/lib/unit-definitions/icon-input.js +12 -0
- package/lib/unit-definitions/id.d.ts +5 -0
- package/lib/unit-definitions/id.js +30 -0
- package/lib/unit-definitions/index.d.ts +28 -0
- package/lib/unit-definitions/index.js +60 -0
- package/lib/unit-definitions/json-input.d.ts +5 -0
- package/lib/unit-definitions/json-input.js +24 -0
- package/lib/unit-definitions/location-input.d.ts +5 -0
- package/lib/unit-definitions/location-input.js +18 -0
- package/lib/unit-definitions/location.d.ts +5 -0
- package/lib/unit-definitions/location.js +17 -0
- package/lib/unit-definitions/not-found.d.ts +5 -0
- package/lib/unit-definitions/not-found.js +22 -0
- package/lib/unit-definitions/number-input.d.ts +5 -0
- package/lib/unit-definitions/number-input.js +25 -0
- package/lib/unit-definitions/number.d.ts +5 -0
- package/lib/unit-definitions/number.js +31 -0
- package/lib/unit-definitions/phone-input.d.ts +5 -0
- package/lib/unit-definitions/phone-input.js +12 -0
- package/lib/unit-definitions/phone.d.ts +5 -0
- package/lib/unit-definitions/phone.js +12 -0
- package/lib/unit-definitions/progress-bar.d.ts +5 -0
- package/lib/unit-definitions/progress-bar.js +32 -0
- package/lib/unit-definitions/reference-collection-combobox.d.ts +5 -0
- package/lib/unit-definitions/reference-collection-combobox.js +21 -0
- package/lib/unit-definitions/reference-collection-list.d.ts +5 -0
- package/lib/unit-definitions/reference-collection-list.js +21 -0
- package/lib/unit-definitions/reference-collection-view.d.ts +5 -0
- package/lib/unit-definitions/reference-collection-view.js +19 -0
- package/lib/unit-definitions/reference-collection.d.ts +5 -0
- package/lib/unit-definitions/reference-collection.js +30 -0
- package/lib/unit-definitions/reference-combobox.d.ts +5 -0
- package/lib/unit-definitions/reference-combobox.js +21 -0
- package/lib/unit-definitions/reference-icon.d.ts +5 -0
- package/lib/unit-definitions/reference-icon.js +12 -0
- package/lib/unit-definitions/reference.d.ts +5 -0
- package/lib/unit-definitions/reference.js +63 -0
- package/lib/unit-definitions/rich-text-document.d.ts +5 -0
- package/lib/unit-definitions/rich-text-document.js +26 -0
- package/lib/unit-definitions/rich-text-snippet.d.ts +6 -0
- package/lib/unit-definitions/rich-text-snippet.js +35 -0
- package/lib/unit-definitions/single-location-preview.d.ts +5 -0
- package/lib/unit-definitions/single-location-preview.js +17 -0
- package/lib/unit-definitions/text-input.d.ts +5 -0
- package/lib/unit-definitions/text-input.js +25 -0
- package/lib/unit-definitions/text.d.ts +5 -0
- package/lib/unit-definitions/text.js +25 -0
- package/lib/unit-definitions/title-input.d.ts +5 -0
- package/lib/unit-definitions/title-input.js +19 -0
- package/lib/unit-definitions/title.d.ts +5 -0
- package/lib/unit-definitions/title.js +33 -0
- package/lib/unit-definitions/type-badge-abbr.d.ts +5 -0
- package/lib/unit-definitions/type-badge-abbr.js +28 -0
- package/lib/unit-definitions/type-badge.d.ts +5 -0
- package/lib/unit-definitions/type-badge.js +28 -0
- package/lib/unit-definitions/type-icon.d.ts +5 -0
- package/lib/unit-definitions/type-icon.js +28 -0
- package/lib/unit-definitions/url-input.d.ts +5 -0
- package/lib/unit-definitions/url-input.js +12 -0
- package/lib/unit-definitions/url.d.ts +5 -0
- package/lib/unit-definitions/url.js +17 -0
- package/lib/unit-definitions/user-button.d.ts +5 -0
- package/lib/unit-definitions/user-button.js +26 -0
- package/lib/unit-definitions/user-role-input.d.ts +5 -0
- package/lib/unit-definitions/user-role-input.js +12 -0
- package/lib/unit-definitions/user-role.d.ts +5 -0
- package/lib/unit-definitions/user-role.js +35 -0
- package/lib/unit-utils/access.d.ts +12 -0
- package/lib/unit-utils/access.js +9 -0
- package/lib/unit-utils/can-edit-field.d.ts +9 -0
- package/lib/unit-utils/can-edit-field.js +7 -0
- package/lib/unit-utils/common.d.ts +17 -0
- package/lib/unit-utils/common.js +39 -0
- package/lib/unit-utils/decimal.d.ts +44 -0
- package/lib/unit-utils/decimal.js +248 -0
- package/lib/unit-utils/dynamic-keys.d.ts +10 -0
- package/lib/unit-utils/dynamic-keys.js +12 -0
- package/lib/unit-utils/enums.d.ts +30 -0
- package/lib/unit-utils/enums.js +48 -0
- package/lib/unit-utils/formatters.d.ts +53 -0
- package/lib/unit-utils/formatters.js +128 -0
- package/lib/unit-utils/get-export-value.d.ts +48 -0
- package/lib/unit-utils/get-export-value.js +83 -0
- package/lib/unit-utils/get-field-label.d.ts +9 -0
- package/lib/unit-utils/get-field-label.js +11 -0
- package/lib/unit-utils/get-unmatched-unit-label.d.ts +5 -0
- package/lib/unit-utils/get-unmatched-unit-label.js +5 -0
- package/lib/unit-utils/schema.d.ts +7 -0
- package/lib/unit-utils/schema.js +9 -0
- package/lib/unit-utils/wrap-normalized-in-expression.d.ts +6 -0
- package/lib/unit-utils/wrap-normalized-in-expression.js +15 -0
- package/lib/units/board.d.ts +50 -0
- package/lib/units/board.js +24 -0
- package/lib/units/canvas/all-units-data-definitions.d.ts +19 -0
- package/lib/units/canvas/all-units-data-definitions.js +42 -0
- package/lib/units/canvas/index.d.ts +49 -0
- package/lib/units/canvas/index.js +27 -0
- package/lib/units/canvas/type-badge-abbr.d.ts +42 -0
- package/lib/units/canvas/type-badge-abbr.js +11 -0
- package/lib/units/canvas/type-badge.d.ts +42 -0
- package/lib/units/canvas/type-badge.js +11 -0
- package/lib/units/default.d.ts +50 -0
- package/lib/units/default.js +23 -0
- package/lib/units/gallery.d.ts +7 -0
- package/lib/units/gallery.js +21 -0
- package/lib/units/gantt.d.ts +51 -0
- package/lib/units/gantt.js +28 -0
- package/lib/units/get-unit-definitions-for-view-type.d.ts +5 -0
- package/lib/units/get-unit-definitions-for-view-type.js +22 -0
- package/lib/units/grid.d.ts +49 -0
- package/lib/units/grid.js +81 -0
- package/lib/units/list.d.ts +52 -0
- package/lib/units/list.js +23 -0
- package/lib/units/make-factory.d.ts +53 -0
- package/lib/units/make-factory.js +272 -0
- package/lib/units/types.d.ts +75 -0
- package/lib/units/types.js +0 -0
- package/package.json +18 -40
- package/lib/src/errors.d.ts +0 -2
- package/lib/src/errors.js +0 -6
- package/lib/src/field-utils/avatar.d.ts +0 -20
- package/lib/src/field-utils/avatar.js +0 -39
- package/lib/src/field-utils/back-references.d.ts +0 -15
- package/lib/src/field-utils/back-references.js +0 -21
- package/lib/src/field-utils/comments.d.ts +0 -60
- package/lib/src/field-utils/comments.js +0 -46
- package/lib/src/field-utils/date-time.d.ts +0 -14
- package/lib/src/field-utils/date-time.js +0 -56
- package/lib/src/field-utils/enum-value.d.ts +0 -13
- package/lib/src/field-utils/enum-value.js +0 -29
- package/lib/src/field-utils/file.d.ts +0 -4
- package/lib/src/field-utils/file.js +0 -15
- package/lib/src/field-utils/icon.d.ts +0 -10
- package/lib/src/field-utils/icon.js +0 -26
- package/lib/src/field-utils/number.d.ts +0 -31
- package/lib/src/field-utils/number.js +0 -91
- package/lib/src/field-utils/reference-collection.d.ts +0 -13
- package/lib/src/field-utils/reference-collection.js +0 -67
- package/lib/src/field-utils/reference.d.ts +0 -7
- package/lib/src/field-utils/reference.js +0 -54
- package/lib/src/field-utils/relation-view.d.ts +0 -2
- package/lib/src/field-utils/relation-view.js +0 -12
- package/lib/src/field-utils/rich-text.d.ts +0 -13
- package/lib/src/field-utils/rich-text.js +0 -38
- package/lib/src/field-utils/text.d.ts +0 -35
- package/lib/src/field-utils/text.js +0 -40
- package/lib/src/field-utils/user-active.d.ts +0 -8
- package/lib/src/field-utils/user-active.js +0 -23
- package/lib/src/field-utils/user-role.d.ts +0 -6
- package/lib/src/field-utils/user-role.js +0 -25
- package/lib/src/field-utils/workflow.d.ts +0 -15
- package/lib/src/field-utils/workflow.js +0 -53
- package/lib/src/index.d.ts +0 -30
- package/lib/src/index.js +0 -263
- package/lib/src/meta-validation.d.ts +0 -10
- package/lib/src/meta-validation.js +0 -78
- package/lib/src/private/board.d.ts +0 -15
- package/lib/src/private/board.js +0 -327
- package/lib/src/private/calendar.d.ts +0 -14
- package/lib/src/private/calendar.js +0 -123
- package/lib/src/private/feed.d.ts +0 -14
- package/lib/src/private/feed.js +0 -120
- package/lib/src/private/form.d.ts +0 -25
- package/lib/src/private/form.js +0 -61
- package/lib/src/private/map.d.ts +0 -14
- package/lib/src/private/map.js +0 -120
- package/lib/src/private/smart-folder.d.ts +0 -31
- package/lib/src/private/smart-folder.js +0 -277
- package/lib/src/private/test-data/garbage-test.d.ts +0 -649
- package/lib/src/private/test-data/garbage-test.js +0 -520
- package/lib/src/private/test-data/kanban.d.ts +0 -1123
- package/lib/src/private/test-data/kanban.js +0 -1203
- package/lib/src/private/test-data/tasks.d.ts +0 -3216
- package/lib/src/private/test-data/tasks.js +0 -2731
- package/lib/src/private/timeline.d.ts +0 -39
- package/lib/src/private/timeline.js +0 -325
- package/lib/src/private/units.d.ts +0 -10
- package/lib/src/private/units.js +0 -165
- package/lib/src/private/utils.d.ts +0 -64
- package/lib/src/private/utils.js +0 -273
- package/lib/src/tsfixme.d.ts +0 -1
- package/lib/src/tsfixme.js +0 -2
- package/lib/src/unit-definitions/avatar-collection.d.ts +0 -2
- package/lib/src/unit-definitions/avatar-collection.js +0 -53
- package/lib/src/unit-definitions/avatar-input.d.ts +0 -2
- package/lib/src/unit-definitions/avatar-input.js +0 -12
- package/lib/src/unit-definitions/avatar.d.ts +0 -2
- package/lib/src/unit-definitions/avatar.js +0 -87
- package/lib/src/unit-definitions/back-references-list.d.ts +0 -2
- package/lib/src/unit-definitions/back-references-list.js +0 -38
- package/lib/src/unit-definitions/bool-checkbox.d.ts +0 -2
- package/lib/src/unit-definitions/bool-checkbox.js +0 -25
- package/lib/src/unit-definitions/bool.d.ts +0 -2
- package/lib/src/unit-definitions/bool.js +0 -22
- package/lib/src/unit-definitions/collection-count.d.ts +0 -2
- package/lib/src/unit-definitions/collection-count.js +0 -32
- package/lib/src/unit-definitions/color-input.d.ts +0 -2
- package/lib/src/unit-definitions/color-input.js +0 -21
- package/lib/src/unit-definitions/comments-list.d.ts +0 -2
- package/lib/src/unit-definitions/comments-list.js +0 -25
- package/lib/src/unit-definitions/date-range-combobox.d.ts +0 -2
- package/lib/src/unit-definitions/date-range-combobox.js +0 -22
- package/lib/src/unit-definitions/date-range.d.ts +0 -2
- package/lib/src/unit-definitions/date-range.js +0 -22
- package/lib/src/unit-definitions/date-time-combobox.d.ts +0 -2
- package/lib/src/unit-definitions/date-time-combobox.js +0 -22
- package/lib/src/unit-definitions/date.d.ts +0 -2
- package/lib/src/unit-definitions/date.js +0 -22
- package/lib/src/unit-definitions/email-input.d.ts +0 -2
- package/lib/src/unit-definitions/email-input.js +0 -12
- package/lib/src/unit-definitions/email.d.ts +0 -2
- package/lib/src/unit-definitions/email.js +0 -17
- package/lib/src/unit-definitions/emoji.d.ts +0 -2
- package/lib/src/unit-definitions/emoji.js +0 -17
- package/lib/src/unit-definitions/file-collection-count.d.ts +0 -2
- package/lib/src/unit-definitions/file-collection-count.js +0 -32
- package/lib/src/unit-definitions/file-compact-collection.d.ts +0 -2
- package/lib/src/unit-definitions/file-compact-collection.js +0 -32
- package/lib/src/unit-definitions/file-compact-reference.d.ts +0 -2
- package/lib/src/unit-definitions/file-compact-reference.js +0 -37
- package/lib/src/unit-definitions/file-reference.d.ts +0 -2
- package/lib/src/unit-definitions/file-reference.js +0 -28
- package/lib/src/unit-definitions/files-gallery.d.ts +0 -2
- package/lib/src/unit-definitions/files-gallery.js +0 -32
- package/lib/src/unit-definitions/files-l-list-item.d.ts +0 -2
- package/lib/src/unit-definitions/files-l-list-item.js +0 -28
- package/lib/src/unit-definitions/files-l-list.d.ts +0 -2
- package/lib/src/unit-definitions/files-l-list.js +0 -32
- package/lib/src/unit-definitions/files-list-item.d.ts +0 -2
- package/lib/src/unit-definitions/files-list-item.js +0 -28
- package/lib/src/unit-definitions/files-list.d.ts +0 -2
- package/lib/src/unit-definitions/files-list.js +0 -32
- package/lib/src/unit-definitions/geometry-preview.d.ts +0 -2
- package/lib/src/unit-definitions/geometry-preview.js +0 -17
- package/lib/src/unit-definitions/icon-button.d.ts +0 -2
- package/lib/src/unit-definitions/icon-button.js +0 -29
- package/lib/src/unit-definitions/icon-input.d.ts +0 -2
- package/lib/src/unit-definitions/icon-input.js +0 -12
- package/lib/src/unit-definitions/id.d.ts +0 -2
- package/lib/src/unit-definitions/id.js +0 -29
- package/lib/src/unit-definitions/index.d.ts +0 -27
- package/lib/src/unit-definitions/index.js +0 -57
- package/lib/src/unit-definitions/json-input.d.ts +0 -2
- package/lib/src/unit-definitions/json-input.js +0 -21
- package/lib/src/unit-definitions/location-input.d.ts +0 -2
- package/lib/src/unit-definitions/location-input.js +0 -18
- package/lib/src/unit-definitions/location.d.ts +0 -2
- package/lib/src/unit-definitions/location.js +0 -17
- package/lib/src/unit-definitions/not-found.d.ts +0 -2
- package/lib/src/unit-definitions/not-found.js +0 -24
- package/lib/src/unit-definitions/number-input.d.ts +0 -2
- package/lib/src/unit-definitions/number-input.js +0 -22
- package/lib/src/unit-definitions/number.d.ts +0 -2
- package/lib/src/unit-definitions/number.js +0 -25
- package/lib/src/unit-definitions/phone-input.d.ts +0 -2
- package/lib/src/unit-definitions/phone-input.js +0 -12
- package/lib/src/unit-definitions/phone.d.ts +0 -2
- package/lib/src/unit-definitions/phone.js +0 -12
- package/lib/src/unit-definitions/progress-bar.d.ts +0 -2
- package/lib/src/unit-definitions/progress-bar.js +0 -29
- package/lib/src/unit-definitions/reference-collection-combobox.d.ts +0 -2
- package/lib/src/unit-definitions/reference-collection-combobox.js +0 -21
- package/lib/src/unit-definitions/reference-collection-list.d.ts +0 -2
- package/lib/src/unit-definitions/reference-collection-list.js +0 -22
- package/lib/src/unit-definitions/reference-collection-view.d.ts +0 -2
- package/lib/src/unit-definitions/reference-collection-view.js +0 -19
- package/lib/src/unit-definitions/reference-collection.d.ts +0 -2
- package/lib/src/unit-definitions/reference-collection.js +0 -28
- package/lib/src/unit-definitions/reference-combobox.d.ts +0 -2
- package/lib/src/unit-definitions/reference-combobox.js +0 -21
- package/lib/src/unit-definitions/reference-icon.d.ts +0 -2
- package/lib/src/unit-definitions/reference-icon.js +0 -12
- package/lib/src/unit-definitions/reference.d.ts +0 -2
- package/lib/src/unit-definitions/reference.js +0 -61
- package/lib/src/unit-definitions/rich-text-document.d.ts +0 -2
- package/lib/src/unit-definitions/rich-text-document.js +0 -22
- package/lib/src/unit-definitions/rich-text-snippet.d.ts +0 -3
- package/lib/src/unit-definitions/rich-text-snippet.js +0 -34
- package/lib/src/unit-definitions/single-location-preview.d.ts +0 -2
- package/lib/src/unit-definitions/single-location-preview.js +0 -17
- package/lib/src/unit-definitions/text-input.d.ts +0 -2
- package/lib/src/unit-definitions/text-input.js +0 -22
- package/lib/src/unit-definitions/text.d.ts +0 -2
- package/lib/src/unit-definitions/text.js +0 -22
- package/lib/src/unit-definitions/title-input.d.ts +0 -2
- package/lib/src/unit-definitions/title-input.js +0 -16
- package/lib/src/unit-definitions/title.d.ts +0 -2
- package/lib/src/unit-definitions/title.js +0 -34
- package/lib/src/unit-definitions/type-badge-abbr.d.ts +0 -2
- package/lib/src/unit-definitions/type-badge-abbr.js +0 -25
- package/lib/src/unit-definitions/type-badge.d.ts +0 -2
- package/lib/src/unit-definitions/type-badge.js +0 -25
- package/lib/src/unit-definitions/type-icon.d.ts +0 -2
- package/lib/src/unit-definitions/type-icon.js +0 -25
- package/lib/src/unit-definitions/url-input.d.ts +0 -2
- package/lib/src/unit-definitions/url-input.js +0 -12
- package/lib/src/unit-definitions/url.d.ts +0 -2
- package/lib/src/unit-definitions/url.js +0 -17
- package/lib/src/unit-definitions/user-button.d.ts +0 -2
- package/lib/src/unit-definitions/user-button.js +0 -23
- package/lib/src/unit-definitions/user-role-input.d.ts +0 -2
- package/lib/src/unit-definitions/user-role-input.js +0 -12
- package/lib/src/unit-definitions/user-role.d.ts +0 -2
- package/lib/src/unit-definitions/user-role.js +0 -29
- package/lib/src/unit-utils/access.d.ts +0 -9
- package/lib/src/unit-utils/access.js +0 -14
- package/lib/src/unit-utils/can-edit-field.d.ts +0 -6
- package/lib/src/unit-utils/can-edit-field.js +0 -8
- package/lib/src/unit-utils/common.d.ts +0 -14
- package/lib/src/unit-utils/common.js +0 -43
- package/lib/src/unit-utils/decimal.d.ts +0 -42
- package/lib/src/unit-utils/decimal.js +0 -418
- package/lib/src/unit-utils/dynamic-keys.d.ts +0 -7
- package/lib/src/unit-utils/dynamic-keys.js +0 -13
- package/lib/src/unit-utils/enums.d.ts +0 -27
- package/lib/src/unit-utils/enums.js +0 -69
- package/lib/src/unit-utils/formatters.d.ts +0 -50
- package/lib/src/unit-utils/formatters.js +0 -163
- package/lib/src/unit-utils/get-export-value.d.ts +0 -45
- package/lib/src/unit-utils/get-export-value.js +0 -83
- package/lib/src/unit-utils/get-field-label.d.ts +0 -6
- package/lib/src/unit-utils/get-field-label.js +0 -10
- package/lib/src/unit-utils/get-unmatched-unit-label.d.ts +0 -2
- package/lib/src/unit-utils/get-unmatched-unit-label.js +0 -9
- package/lib/src/unit-utils/schema.d.ts +0 -4
- package/lib/src/unit-utils/schema.js +0 -12
- package/lib/src/unit-utils/wrap-normalized-in-expression.d.ts +0 -3
- package/lib/src/unit-utils/wrap-normalized-in-expression.js +0 -14
- package/lib/src/units/board.d.ts +0 -46
- package/lib/src/units/board.js +0 -51
- package/lib/src/units/canvas/all-units-data-definitions.d.ts +0 -18
- package/lib/src/units/canvas/all-units-data-definitions.js +0 -40
- package/lib/src/units/canvas/index.d.ts +0 -45
- package/lib/src/units/canvas/index.js +0 -48
- package/lib/src/units/canvas/type-badge-abbr.d.ts +0 -36
- package/lib/src/units/canvas/type-badge-abbr.js +0 -11
- package/lib/src/units/canvas/type-badge.d.ts +0 -36
- package/lib/src/units/canvas/type-badge.js +0 -11
- package/lib/src/units/default.d.ts +0 -46
- package/lib/src/units/default.js +0 -51
- package/lib/src/units/gallery.d.ts +0 -3
- package/lib/src/units/gallery.js +0 -18
- package/lib/src/units/gantt.d.ts +0 -47
- package/lib/src/units/gantt.js +0 -59
- package/lib/src/units/get-unit-definitions-for-view-type.d.ts +0 -2
- package/lib/src/units/get-unit-definitions-for-view-type.js +0 -64
- package/lib/src/units/grid.d.ts +0 -45
- package/lib/src/units/grid.js +0 -71
- package/lib/src/units/list.d.ts +0 -46
- package/lib/src/units/list.js +0 -49
- package/lib/src/units/make-factory.d.ts +0 -51
- package/lib/src/units/make-factory.js +0 -260
- package/lib/src/units/types.d.ts +0 -73
- package/lib/src/units/types.js +0 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Schema } from "@fibery/schema";
|
|
2
|
+
//#region src/unit-utils/schema.d.ts
|
|
3
|
+
declare const extractTypePart: (type: string) => string;
|
|
4
|
+
declare const extractTypeNamespacePart: (type: string) => string;
|
|
5
|
+
declare const getTypeById: (schema: Schema, id: string) => import("@fibery/schema").TypeObject | undefined;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { extractTypeNamespacePart, extractTypePart, getTypeById };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { parseType } from "@fibery/schema";
|
|
2
|
+
//#region src/unit-utils/schema.ts
|
|
3
|
+
const extractTypePart = (type) => parseType(type).name;
|
|
4
|
+
const extractTypeNamespacePart = (type) => parseType(type).namespace;
|
|
5
|
+
const getTypeById = (schema, id) => {
|
|
6
|
+
return Object.hasOwn(schema.typeObjectsById, id) ? schema.typeObjectsById[id] : void 0;
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { extractTypeNamespacePart, extractTypePart, getTypeById };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FieldObject } from "@fibery/schema";
|
|
2
|
+
import { FieldExpression } from "@fibery/expression-utils/src/types";
|
|
3
|
+
//#region src/unit-utils/wrap-normalized-in-expression.d.ts
|
|
4
|
+
declare const wrapNormalizedInExpression: (innerNormalized: Record<string, unknown>, fieldObjects: FieldObject[], expression: FieldExpression) => Record<string, unknown>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { wrapNormalizedInExpression };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/unit-utils/wrap-normalized-in-expression.ts
|
|
2
|
+
const wrapNormalizedInExpression = (innerNormalized, fieldObjects, expression) => [...expression].reverse().reduce((inner, field, reversedIndex) => {
|
|
3
|
+
const originalIndex = expression.length - 1 - reversedIndex;
|
|
4
|
+
if (!(originalIndex === expression.length - 1)) {
|
|
5
|
+
const { idField } = fieldObjects[originalIndex].typeObject;
|
|
6
|
+
const innerWithId = idField ? {
|
|
7
|
+
[idField]: idField,
|
|
8
|
+
...inner
|
|
9
|
+
} : inner;
|
|
10
|
+
return { [field]: innerWithId };
|
|
11
|
+
}
|
|
12
|
+
return { [field]: inner };
|
|
13
|
+
}, innerNormalized);
|
|
14
|
+
//#endregion
|
|
15
|
+
export { wrapNormalizedInExpression };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ButtonUnit, DbUnit, FieldUnit, PureUnit, Unit, UnitDataDefinition, UnitExpression } from "./types.js";
|
|
2
|
+
import { TypeObject } from "@fibery/schema";
|
|
3
|
+
//#region src/units/board.d.ts
|
|
4
|
+
declare const getTypeUnits: () => PureUnit[], getUnitName: (unit: Unit) => string | null, getUnitsForType: (typeObject: TypeObject, options?: {
|
|
5
|
+
parentFieldObjects?: import("@fibery/schema").FieldObject[];
|
|
6
|
+
showHiddenFields?: boolean;
|
|
7
|
+
isSharingMode?: boolean;
|
|
8
|
+
}) => {
|
|
9
|
+
unit: Unit;
|
|
10
|
+
fieldObject: import("@fibery/schema").FieldObject;
|
|
11
|
+
}[], getUnitsForField: (fieldObject: import("@fibery/schema").FieldObject, options?: {
|
|
12
|
+
parentFieldObjects?: import("@fibery/schema").FieldObject[];
|
|
13
|
+
showHiddenFields?: boolean;
|
|
14
|
+
isSharingMode?: boolean;
|
|
15
|
+
}) => Unit[], getUnitsForTypePerField: (typeObject: TypeObject, options?: {
|
|
16
|
+
parentFieldObjects?: import("@fibery/schema").FieldObject[];
|
|
17
|
+
showHiddenFields?: boolean;
|
|
18
|
+
isSharingMode?: boolean;
|
|
19
|
+
}) => {
|
|
20
|
+
fieldObject: import("@fibery/schema").FieldObject;
|
|
21
|
+
units: Unit[];
|
|
22
|
+
}[], getUnitLabel: (typeObject: TypeObject, unit: Unit) => string, getHardcodedUnitsForView: (typeObject: TypeObject) => ({
|
|
23
|
+
kind: "user-button";
|
|
24
|
+
type: "user-button" | "icon-button";
|
|
25
|
+
data: {
|
|
26
|
+
id: string;
|
|
27
|
+
typeId: string;
|
|
28
|
+
};
|
|
29
|
+
label: string;
|
|
30
|
+
hideWhenEmpty?: boolean;
|
|
31
|
+
icon?: string;
|
|
32
|
+
} | {
|
|
33
|
+
kind: "db";
|
|
34
|
+
type: "type-icon" | "type-badge" | "type-badge-abbr";
|
|
35
|
+
expression?: UnitExpression;
|
|
36
|
+
hideWhenEmpty?: boolean;
|
|
37
|
+
} | {
|
|
38
|
+
kind: "field";
|
|
39
|
+
type: "avatar" | "avatar-collection" | "avatar-input" | "back-references-list" | "bool" | "bool-checkbox" | "collection-count" | "color-input" | "comments-list" | "date" | "date-time" | "date-time-range" | "date-time-combobox" | "date-range" | "date-range-combobox" | "email" | "email-input" | "emoji" | "field" | "files-collection" | "files-gallery" | "files-list" | "files-list-item" | "files-l-list" | "files-l-list-item" | "file-reference" | "file-compact-collection" | "file-compact-reference" | "file-collection-count" | "geometry-preview" | "icon-button" | "icon-input" | "id" | "json-input" | "location" | "location-input" | "number" | "number-input" | "phone" | "phone-input" | "progress-bar" | "reference" | "reference-icon" | "reference-combobox" | "reference-collection" | "reference-collection-list" | "reference-collection-view" | "reference-collection-combobox" | "rich-text-snippet" | "rich-text-document" | "single-location-preview" | "text" | "text-input" | "title" | "title-input" | "url" | "url-input" | "user-role" | "user-role-input";
|
|
40
|
+
expression: UnitExpression;
|
|
41
|
+
settings?: Record<string, unknown>;
|
|
42
|
+
hideWhenEmpty?: boolean;
|
|
43
|
+
})[], getCardUnitsSelect: ({ schema, typeObject, units }: {
|
|
44
|
+
schema: import("@fibery/schema").Schema;
|
|
45
|
+
typeObject: TypeObject;
|
|
46
|
+
units: Unit[];
|
|
47
|
+
}) => any, getUnitDataDefinition: (unit: Unit) => UnitDataDefinition<ButtonUnit> | UnitDataDefinition<DbUnit> | UnitDataDefinition<FieldUnit>;
|
|
48
|
+
declare const getDefaultUnits: (typeObject: TypeObject) => PureUnit[];
|
|
49
|
+
//#endregion
|
|
50
|
+
export { getCardUnitsSelect, getDefaultUnits, getHardcodedUnitsForView, getTypeUnits, getUnitDataDefinition, getUnitLabel, getUnitName, getUnitsForField, getUnitsForType, getUnitsForTypePerField };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { isAvatarExtensionEnabledType } from "../field-utils/avatar.js";
|
|
3
|
+
import { unit_definitions_exports } from "../unit-definitions/index.js";
|
|
4
|
+
import { makeUnitDefinitionsFactory } from "./make-factory.js";
|
|
5
|
+
//#region src/units/board.ts
|
|
6
|
+
var board_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
getCardUnitsSelect: () => getCardUnitsSelect,
|
|
8
|
+
getDefaultUnits: () => getDefaultUnits,
|
|
9
|
+
getHardcodedUnitsForView: () => getHardcodedUnitsForView,
|
|
10
|
+
getTypeUnits: () => getTypeUnits,
|
|
11
|
+
getUnitDataDefinition: () => getUnitDataDefinition,
|
|
12
|
+
getUnitLabel: () => getUnitLabel,
|
|
13
|
+
getUnitName: () => getUnitName,
|
|
14
|
+
getUnitsForField: () => getUnitsForField,
|
|
15
|
+
getUnitsForType: () => getUnitsForType,
|
|
16
|
+
getUnitsForTypePerField: () => getUnitsForTypePerField
|
|
17
|
+
});
|
|
18
|
+
const { getTypeUnits, getUnitName, getUnitsForType, getUnitsForField, getUnitsForTypePerField, getUnitLabel, getHardcodedUnitsForView, getCardUnitsSelect, getUnitDataDefinition } = makeUnitDefinitionsFactory(unit_definitions_exports);
|
|
19
|
+
const getDefaultUnits = (typeObject) => {
|
|
20
|
+
const { Title, Avatar, TypeBadgeAbbr } = unit_definitions_exports;
|
|
21
|
+
return [Title && Title.makeUnit(), typeObject && isAvatarExtensionEnabledType(typeObject) ? Avatar && Avatar.makeUnit() : TypeBadgeAbbr && TypeBadgeAbbr.makeUnit()].filter(Boolean);
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { board_exports, getCardUnitsSelect, getDefaultUnits, getHardcodedUnitsForView, getTypeUnits, getUnitDataDefinition, getUnitLabel, getUnitName, getUnitsForField, getUnitsForType, getUnitsForTypePerField };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Avatar } from "../../unit-definitions/avatar.js";
|
|
2
|
+
import { Bool } from "../../unit-definitions/bool.js";
|
|
3
|
+
import { CollectionCount } from "../../unit-definitions/collection-count.js";
|
|
4
|
+
import { DateRange } from "../../unit-definitions/date-range.js";
|
|
5
|
+
import { Date } from "../../unit-definitions/date.js";
|
|
6
|
+
import { Email } from "../../unit-definitions/email.js";
|
|
7
|
+
import { Emoji } from "../../unit-definitions/emoji.js";
|
|
8
|
+
import { Id } from "../../unit-definitions/id.js";
|
|
9
|
+
import { Location } from "../../unit-definitions/location.js";
|
|
10
|
+
import { Number } from "../../unit-definitions/number.js";
|
|
11
|
+
import { Phone } from "../../unit-definitions/phone.js";
|
|
12
|
+
import { ReferenceCollection } from "../../unit-definitions/reference-collection.js";
|
|
13
|
+
import { Reference } from "../../unit-definitions/reference.js";
|
|
14
|
+
import { Text } from "../../unit-definitions/text.js";
|
|
15
|
+
import { Title } from "../../unit-definitions/title.js";
|
|
16
|
+
import { Url } from "../../unit-definitions/url.js";
|
|
17
|
+
import { TypeBadge } from "./type-badge.js";
|
|
18
|
+
import { TypeBadgeAbbr } from "./type-badge-abbr.js";
|
|
19
|
+
export { Avatar, Bool, CollectionCount, Date, DateRange, Email, Emoji, Id, Location, Number, Phone, Reference, ReferenceCollection, Text, Title, TypeBadge, TypeBadgeAbbr, Url };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { Avatar } from "../../unit-definitions/avatar.js";
|
|
3
|
+
import { Bool } from "../../unit-definitions/bool.js";
|
|
4
|
+
import { CollectionCount } from "../../unit-definitions/collection-count.js";
|
|
5
|
+
import { DateRange } from "../../unit-definitions/date-range.js";
|
|
6
|
+
import { Date } from "../../unit-definitions/date.js";
|
|
7
|
+
import { Text } from "../../unit-definitions/text.js";
|
|
8
|
+
import { Email } from "../../unit-definitions/email.js";
|
|
9
|
+
import { Emoji } from "../../unit-definitions/emoji.js";
|
|
10
|
+
import { Id } from "../../unit-definitions/id.js";
|
|
11
|
+
import { Location } from "../../unit-definitions/location.js";
|
|
12
|
+
import { Number } from "../../unit-definitions/number.js";
|
|
13
|
+
import { Phone } from "../../unit-definitions/phone.js";
|
|
14
|
+
import { ReferenceCollection } from "../../unit-definitions/reference-collection.js";
|
|
15
|
+
import { Reference } from "../../unit-definitions/reference.js";
|
|
16
|
+
import { Title } from "../../unit-definitions/title.js";
|
|
17
|
+
import { Url } from "../../unit-definitions/url.js";
|
|
18
|
+
import { TypeBadge } from "./type-badge.js";
|
|
19
|
+
import { TypeBadgeAbbr } from "./type-badge-abbr.js";
|
|
20
|
+
//#region src/units/canvas/all-units-data-definitions.ts
|
|
21
|
+
var all_units_data_definitions_exports = /* @__PURE__ */ __exportAll({
|
|
22
|
+
Avatar: () => Avatar,
|
|
23
|
+
Bool: () => Bool,
|
|
24
|
+
CollectionCount: () => CollectionCount,
|
|
25
|
+
Date: () => Date,
|
|
26
|
+
DateRange: () => DateRange,
|
|
27
|
+
Email: () => Email,
|
|
28
|
+
Emoji: () => Emoji,
|
|
29
|
+
Id: () => Id,
|
|
30
|
+
Location: () => Location,
|
|
31
|
+
Number: () => Number,
|
|
32
|
+
Phone: () => Phone,
|
|
33
|
+
Reference: () => Reference,
|
|
34
|
+
ReferenceCollection: () => ReferenceCollection,
|
|
35
|
+
Text: () => Text,
|
|
36
|
+
Title: () => Title,
|
|
37
|
+
TypeBadge: () => TypeBadge,
|
|
38
|
+
TypeBadgeAbbr: () => TypeBadgeAbbr,
|
|
39
|
+
Url: () => Url
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
export { Avatar, Bool, CollectionCount, Date, DateRange, Email, Emoji, Id, Location, Number, Phone, Reference, ReferenceCollection, Text, Title, TypeBadge, TypeBadgeAbbr, Url, all_units_data_definitions_exports };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { PureUnit, Unit, UnitExpression } from "../types.js";
|
|
2
|
+
//#region src/units/canvas/index.d.ts
|
|
3
|
+
declare const getTypeUnits: () => PureUnit[], getUnitName: (unit: Unit) => string | null, getUnitsForField: (fieldObject: import("@fibery/schema").FieldObject, options?: {
|
|
4
|
+
parentFieldObjects?: import("@fibery/schema").FieldObject[];
|
|
5
|
+
showHiddenFields?: boolean;
|
|
6
|
+
isSharingMode?: boolean;
|
|
7
|
+
}) => Unit[], getUnitsForType: (typeObject: import("@fibery/schema").TypeObject, options?: {
|
|
8
|
+
parentFieldObjects?: import("@fibery/schema").FieldObject[];
|
|
9
|
+
showHiddenFields?: boolean;
|
|
10
|
+
isSharingMode?: boolean;
|
|
11
|
+
}) => {
|
|
12
|
+
unit: Unit;
|
|
13
|
+
fieldObject: import("@fibery/schema").FieldObject;
|
|
14
|
+
}[], getUnitsForTypePerField: (typeObject: import("@fibery/schema").TypeObject, options?: {
|
|
15
|
+
parentFieldObjects?: import("@fibery/schema").FieldObject[];
|
|
16
|
+
showHiddenFields?: boolean;
|
|
17
|
+
isSharingMode?: boolean;
|
|
18
|
+
}) => {
|
|
19
|
+
fieldObject: import("@fibery/schema").FieldObject;
|
|
20
|
+
units: Unit[];
|
|
21
|
+
}[], getUnitLabel: (typeObject: import("@fibery/schema").TypeObject, unit: Unit) => string, getCardUnitsSelect: ({ schema, typeObject, units }: {
|
|
22
|
+
schema: import("@fibery/schema").Schema;
|
|
23
|
+
typeObject: import("@fibery/schema").TypeObject;
|
|
24
|
+
units: Unit[];
|
|
25
|
+
}) => any, getHardcodedUnitsForView: (typeObject: import("@fibery/schema").TypeObject) => ({
|
|
26
|
+
kind: "user-button";
|
|
27
|
+
type: "user-button" | "icon-button";
|
|
28
|
+
data: {
|
|
29
|
+
id: string;
|
|
30
|
+
typeId: string;
|
|
31
|
+
};
|
|
32
|
+
label: string;
|
|
33
|
+
hideWhenEmpty?: boolean;
|
|
34
|
+
icon?: string;
|
|
35
|
+
} | {
|
|
36
|
+
kind: "db";
|
|
37
|
+
type: "type-icon" | "type-badge" | "type-badge-abbr";
|
|
38
|
+
expression?: UnitExpression;
|
|
39
|
+
hideWhenEmpty?: boolean;
|
|
40
|
+
} | {
|
|
41
|
+
kind: "field";
|
|
42
|
+
type: "avatar" | "avatar-collection" | "avatar-input" | "back-references-list" | "bool" | "bool-checkbox" | "collection-count" | "color-input" | "comments-list" | "date" | "date-time" | "date-time-range" | "date-time-combobox" | "date-range" | "date-range-combobox" | "email" | "email-input" | "emoji" | "field" | "files-collection" | "files-gallery" | "files-list" | "files-list-item" | "files-l-list" | "files-l-list-item" | "file-reference" | "file-compact-collection" | "file-compact-reference" | "file-collection-count" | "geometry-preview" | "icon-button" | "icon-input" | "id" | "json-input" | "location" | "location-input" | "number" | "number-input" | "phone" | "phone-input" | "progress-bar" | "reference" | "reference-icon" | "reference-combobox" | "reference-collection" | "reference-collection-list" | "reference-collection-view" | "reference-collection-combobox" | "rich-text-snippet" | "rich-text-document" | "single-location-preview" | "text" | "text-input" | "title" | "title-input" | "url" | "url-input" | "user-role" | "user-role-input";
|
|
43
|
+
expression: UnitExpression;
|
|
44
|
+
settings?: Record<string, unknown>;
|
|
45
|
+
hideWhenEmpty?: boolean;
|
|
46
|
+
})[];
|
|
47
|
+
declare const getDefaultUnits: () => PureUnit[];
|
|
48
|
+
//#endregion
|
|
49
|
+
export { getCardUnitsSelect, getDefaultUnits, getHardcodedUnitsForView, getTypeUnits, getUnitLabel, getUnitName, getUnitsForField, getUnitsForType, getUnitsForTypePerField };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { RichTextSnippet } from "../../unit-definitions/rich-text-snippet.js";
|
|
3
|
+
import { makeUnitDefinitionsFactory } from "../make-factory.js";
|
|
4
|
+
import { all_units_data_definitions_exports } from "./all-units-data-definitions.js";
|
|
5
|
+
//#region src/units/canvas/index.ts
|
|
6
|
+
var canvas_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
getCardUnitsSelect: () => getCardUnitsSelect,
|
|
8
|
+
getDefaultUnits: () => getDefaultUnits,
|
|
9
|
+
getHardcodedUnitsForView: () => getHardcodedUnitsForView,
|
|
10
|
+
getTypeUnits: () => getTypeUnits,
|
|
11
|
+
getUnitLabel: () => getUnitLabel,
|
|
12
|
+
getUnitName: () => getUnitName,
|
|
13
|
+
getUnitsForField: () => getUnitsForField,
|
|
14
|
+
getUnitsForType: () => getUnitsForType,
|
|
15
|
+
getUnitsForTypePerField: () => getUnitsForTypePerField
|
|
16
|
+
});
|
|
17
|
+
const allUnitDefinitions = {
|
|
18
|
+
...all_units_data_definitions_exports,
|
|
19
|
+
RichTextSnippet
|
|
20
|
+
};
|
|
21
|
+
const { getTypeUnits, getUnitName, getUnitsForField, getUnitsForType, getUnitsForTypePerField, getUnitLabel, getCardUnitsSelect, getHardcodedUnitsForView } = makeUnitDefinitionsFactory(allUnitDefinitions);
|
|
22
|
+
const getDefaultUnits = () => {
|
|
23
|
+
const { Title, TypeBadge } = allUnitDefinitions;
|
|
24
|
+
return [Title && Title.makeUnit(), TypeBadge && TypeBadge.makeUnit()].filter(Boolean);
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { canvas_exports, getCardUnitsSelect, getDefaultUnits, getHardcodedUnitsForView, getTypeUnits, getUnitLabel, getUnitName, getUnitsForField, getUnitsForType, getUnitsForTypePerField };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { NumberDisplaySettings } from "../../field-utils/number.js";
|
|
2
|
+
import { $TSFixMe } from "../../tsfixme.js";
|
|
3
|
+
import { DbUnit, PureUnit, UnitExpression } from "../types.js";
|
|
4
|
+
import { TypeObject } from "@fibery/schema";
|
|
5
|
+
//#region src/units/canvas/type-badge-abbr.d.ts
|
|
6
|
+
declare const TypeBadgeAbbr: {
|
|
7
|
+
type: string;
|
|
8
|
+
name: string;
|
|
9
|
+
canEdit: (params: {
|
|
10
|
+
typeObject: TypeObject;
|
|
11
|
+
unit: DbUnit;
|
|
12
|
+
}) => boolean;
|
|
13
|
+
makeUnit: (params?: {
|
|
14
|
+
expression: UnitExpression;
|
|
15
|
+
}) => PureUnit;
|
|
16
|
+
getLabel: (params: {
|
|
17
|
+
typeObject: TypeObject;
|
|
18
|
+
unit: DbUnit;
|
|
19
|
+
}) => string;
|
|
20
|
+
calculateErrors: (params: {
|
|
21
|
+
typeObject: TypeObject;
|
|
22
|
+
unit: DbUnit;
|
|
23
|
+
}) => $TSFixMe[];
|
|
24
|
+
getExportValue: (params: {
|
|
25
|
+
typeObject: TypeObject;
|
|
26
|
+
unit: DbUnit;
|
|
27
|
+
object: import("@fibery/expression-utils/src/types").FiberyObject;
|
|
28
|
+
displaySettings: NumberDisplaySettings;
|
|
29
|
+
}) => unknown;
|
|
30
|
+
canExport: (params: {
|
|
31
|
+
unit: DbUnit;
|
|
32
|
+
}) => boolean;
|
|
33
|
+
getExportLabel?: ((params: {
|
|
34
|
+
typeObject: TypeObject;
|
|
35
|
+
unit: DbUnit;
|
|
36
|
+
}) => string) | undefined;
|
|
37
|
+
getQuerySelect({ typeObject }: {
|
|
38
|
+
typeObject: TypeObject;
|
|
39
|
+
}): import("@fibery/expression-utils").Select;
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { TypeBadgeAbbr };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TypeBadgeAbbr as TypeBadgeAbbr$1 } from "../../unit-definitions/type-badge-abbr.js";
|
|
2
|
+
import { toSelectMapClause } from "@fibery/query-utils/src/select";
|
|
3
|
+
//#region src/units/canvas/type-badge-abbr.ts
|
|
4
|
+
const TypeBadgeAbbr = {
|
|
5
|
+
...TypeBadgeAbbr$1,
|
|
6
|
+
getQuerySelect({ typeObject }) {
|
|
7
|
+
return typeObject.name === "fibery/view" ? toSelectMapClause(["fibery/type"]) : {};
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { TypeBadgeAbbr };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { NumberDisplaySettings } from "../../field-utils/number.js";
|
|
2
|
+
import { $TSFixMe } from "../../tsfixme.js";
|
|
3
|
+
import { DbUnit, PureUnit, UnitExpression } from "../types.js";
|
|
4
|
+
import { TypeObject } from "@fibery/schema";
|
|
5
|
+
//#region src/units/canvas/type-badge.d.ts
|
|
6
|
+
declare const TypeBadge: {
|
|
7
|
+
type: string;
|
|
8
|
+
name: string;
|
|
9
|
+
canEdit: (params: {
|
|
10
|
+
typeObject: TypeObject;
|
|
11
|
+
unit: DbUnit;
|
|
12
|
+
}) => boolean;
|
|
13
|
+
makeUnit: (params?: {
|
|
14
|
+
expression: UnitExpression;
|
|
15
|
+
}) => PureUnit;
|
|
16
|
+
getLabel: (params: {
|
|
17
|
+
typeObject: TypeObject;
|
|
18
|
+
unit: DbUnit;
|
|
19
|
+
}) => string;
|
|
20
|
+
calculateErrors: (params: {
|
|
21
|
+
typeObject: TypeObject;
|
|
22
|
+
unit: DbUnit;
|
|
23
|
+
}) => $TSFixMe[];
|
|
24
|
+
getExportValue: (params: {
|
|
25
|
+
typeObject: TypeObject;
|
|
26
|
+
unit: DbUnit;
|
|
27
|
+
object: import("@fibery/expression-utils/src/types").FiberyObject;
|
|
28
|
+
displaySettings: NumberDisplaySettings;
|
|
29
|
+
}) => unknown;
|
|
30
|
+
canExport: (params: {
|
|
31
|
+
unit: DbUnit;
|
|
32
|
+
}) => boolean;
|
|
33
|
+
getExportLabel?: ((params: {
|
|
34
|
+
typeObject: TypeObject;
|
|
35
|
+
unit: DbUnit;
|
|
36
|
+
}) => string) | undefined;
|
|
37
|
+
getQuerySelect({ typeObject }: {
|
|
38
|
+
typeObject: TypeObject;
|
|
39
|
+
}): import("@fibery/expression-utils").Select;
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { TypeBadge };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TypeBadge as TypeBadge$1 } from "../../unit-definitions/type-badge.js";
|
|
2
|
+
import { toSelectMapClause } from "@fibery/query-utils/src/select";
|
|
3
|
+
//#region src/units/canvas/type-badge.ts
|
|
4
|
+
const TypeBadge = {
|
|
5
|
+
...TypeBadge$1,
|
|
6
|
+
getQuerySelect({ typeObject }) {
|
|
7
|
+
return typeObject.name === "fibery/view" ? toSelectMapClause(["fibery/type"]) : {};
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { TypeBadge };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { PureUnit, Unit, UnitExpression } from "./types.js";
|
|
2
|
+
import { TypeObject } from "@fibery/schema";
|
|
3
|
+
//#region src/units/default.d.ts
|
|
4
|
+
declare const getTypeUnits: () => PureUnit[], getUnitName: (unit: Unit) => string | null, getUnitsForType: (typeObject: TypeObject, options?: {
|
|
5
|
+
parentFieldObjects?: import("@fibery/schema").FieldObject[];
|
|
6
|
+
showHiddenFields?: boolean;
|
|
7
|
+
isSharingMode?: boolean;
|
|
8
|
+
}) => {
|
|
9
|
+
unit: Unit;
|
|
10
|
+
fieldObject: import("@fibery/schema").FieldObject;
|
|
11
|
+
}[], getUnitsForField: (fieldObject: import("@fibery/schema").FieldObject, options?: {
|
|
12
|
+
parentFieldObjects?: import("@fibery/schema").FieldObject[];
|
|
13
|
+
showHiddenFields?: boolean;
|
|
14
|
+
isSharingMode?: boolean;
|
|
15
|
+
}) => Unit[], getUnitsForTypePerField: (typeObject: TypeObject, options?: {
|
|
16
|
+
parentFieldObjects?: import("@fibery/schema").FieldObject[];
|
|
17
|
+
showHiddenFields?: boolean;
|
|
18
|
+
isSharingMode?: boolean;
|
|
19
|
+
}) => {
|
|
20
|
+
fieldObject: import("@fibery/schema").FieldObject;
|
|
21
|
+
units: Unit[];
|
|
22
|
+
}[], getCardUnitsSelect: ({ schema, typeObject, units }: {
|
|
23
|
+
schema: import("@fibery/schema").Schema;
|
|
24
|
+
typeObject: TypeObject;
|
|
25
|
+
units: Unit[];
|
|
26
|
+
}) => any, getUnitLabel: (typeObject: TypeObject, unit: Unit) => string, getHardcodedUnitsForView: (typeObject: TypeObject) => ({
|
|
27
|
+
kind: "user-button";
|
|
28
|
+
type: "user-button" | "icon-button";
|
|
29
|
+
data: {
|
|
30
|
+
id: string;
|
|
31
|
+
typeId: string;
|
|
32
|
+
};
|
|
33
|
+
label: string;
|
|
34
|
+
hideWhenEmpty?: boolean;
|
|
35
|
+
icon?: string;
|
|
36
|
+
} | {
|
|
37
|
+
kind: "db";
|
|
38
|
+
type: "type-icon" | "type-badge" | "type-badge-abbr";
|
|
39
|
+
expression?: UnitExpression;
|
|
40
|
+
hideWhenEmpty?: boolean;
|
|
41
|
+
} | {
|
|
42
|
+
kind: "field";
|
|
43
|
+
type: "avatar" | "avatar-collection" | "avatar-input" | "back-references-list" | "bool" | "bool-checkbox" | "collection-count" | "color-input" | "comments-list" | "date" | "date-time" | "date-time-range" | "date-time-combobox" | "date-range" | "date-range-combobox" | "email" | "email-input" | "emoji" | "field" | "files-collection" | "files-gallery" | "files-list" | "files-list-item" | "files-l-list" | "files-l-list-item" | "file-reference" | "file-compact-collection" | "file-compact-reference" | "file-collection-count" | "geometry-preview" | "icon-button" | "icon-input" | "id" | "json-input" | "location" | "location-input" | "number" | "number-input" | "phone" | "phone-input" | "progress-bar" | "reference" | "reference-icon" | "reference-combobox" | "reference-collection" | "reference-collection-list" | "reference-collection-view" | "reference-collection-combobox" | "rich-text-snippet" | "rich-text-document" | "single-location-preview" | "text" | "text-input" | "title" | "title-input" | "url" | "url-input" | "user-role" | "user-role-input";
|
|
44
|
+
expression: UnitExpression;
|
|
45
|
+
settings?: Record<string, unknown>;
|
|
46
|
+
hideWhenEmpty?: boolean;
|
|
47
|
+
})[];
|
|
48
|
+
declare const getDefaultUnits: (typeObject: TypeObject) => PureUnit[];
|
|
49
|
+
//#endregion
|
|
50
|
+
export { getCardUnitsSelect, getDefaultUnits, getHardcodedUnitsForView, getTypeUnits, getUnitLabel, getUnitName, getUnitsForField, getUnitsForType, getUnitsForTypePerField };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { isAvatarExtensionEnabledType } from "../field-utils/avatar.js";
|
|
3
|
+
import { unit_definitions_exports } from "../unit-definitions/index.js";
|
|
4
|
+
import { makeUnitDefinitionsFactory } from "./make-factory.js";
|
|
5
|
+
//#region src/units/default.ts
|
|
6
|
+
var default_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
getCardUnitsSelect: () => getCardUnitsSelect,
|
|
8
|
+
getDefaultUnits: () => getDefaultUnits,
|
|
9
|
+
getHardcodedUnitsForView: () => getHardcodedUnitsForView,
|
|
10
|
+
getTypeUnits: () => getTypeUnits,
|
|
11
|
+
getUnitLabel: () => getUnitLabel,
|
|
12
|
+
getUnitName: () => getUnitName,
|
|
13
|
+
getUnitsForField: () => getUnitsForField,
|
|
14
|
+
getUnitsForType: () => getUnitsForType,
|
|
15
|
+
getUnitsForTypePerField: () => getUnitsForTypePerField
|
|
16
|
+
});
|
|
17
|
+
const { getTypeUnits, getUnitName, getUnitsForType, getUnitsForField, getUnitsForTypePerField, getCardUnitsSelect, getUnitLabel, getHardcodedUnitsForView } = makeUnitDefinitionsFactory(unit_definitions_exports);
|
|
18
|
+
const getDefaultUnits = (typeObject) => {
|
|
19
|
+
const { Title, Avatar, TypeBadgeAbbr } = unit_definitions_exports;
|
|
20
|
+
return [Title && Title.makeUnit(), typeObject && isAvatarExtensionEnabledType(typeObject) ? Avatar && Avatar.makeUnit() : TypeBadgeAbbr && TypeBadgeAbbr.makeUnit()].filter(Boolean);
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { default_exports, getCardUnitsSelect, getDefaultUnits, getHardcodedUnitsForView, getTypeUnits, getUnitLabel, getUnitName, getUnitsForField, getUnitsForType, getUnitsForTypePerField };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PureUnit } from "./types.js";
|
|
2
|
+
import { getCardUnitsSelect, getHardcodedUnitsForView, getTypeUnits, getUnitDataDefinition, getUnitLabel, getUnitName, getUnitsForField, getUnitsForType, getUnitsForTypePerField } from "./board.js";
|
|
3
|
+
import { TypeObject } from "@fibery/schema";
|
|
4
|
+
//#region src/units/gallery.d.ts
|
|
5
|
+
declare const getDefaultUnits: (_typeObject: TypeObject) => PureUnit[];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { getCardUnitsSelect, getDefaultUnits, getHardcodedUnitsForView, getTypeUnits, getUnitDataDefinition, getUnitLabel, getUnitName, getUnitsForField, getUnitsForType, getUnitsForTypePerField };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { Title } from "../unit-definitions/title.js";
|
|
3
|
+
import { getCardUnitsSelect, getHardcodedUnitsForView, getTypeUnits, getUnitDataDefinition, getUnitLabel, getUnitName, getUnitsForField, getUnitsForType, getUnitsForTypePerField } from "./board.js";
|
|
4
|
+
//#region src/units/gallery.ts
|
|
5
|
+
var gallery_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
getCardUnitsSelect: () => getCardUnitsSelect,
|
|
7
|
+
getDefaultUnits: () => getDefaultUnits,
|
|
8
|
+
getHardcodedUnitsForView: () => getHardcodedUnitsForView,
|
|
9
|
+
getTypeUnits: () => getTypeUnits,
|
|
10
|
+
getUnitDataDefinition: () => getUnitDataDefinition,
|
|
11
|
+
getUnitLabel: () => getUnitLabel,
|
|
12
|
+
getUnitName: () => getUnitName,
|
|
13
|
+
getUnitsForField: () => getUnitsForField,
|
|
14
|
+
getUnitsForType: () => getUnitsForType,
|
|
15
|
+
getUnitsForTypePerField: () => getUnitsForTypePerField
|
|
16
|
+
});
|
|
17
|
+
const getDefaultUnits = (_typeObject) => {
|
|
18
|
+
return [Title.makeUnit()];
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { gallery_exports, getCardUnitsSelect, getDefaultUnits, getHardcodedUnitsForView, getTypeUnits, getUnitDataDefinition, getUnitLabel, getUnitName, getUnitsForField, getUnitsForType, getUnitsForTypePerField };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { PureUnit, Unit, UnitExpression } from "./types.js";
|
|
2
|
+
import { TypeObject } from "@fibery/schema";
|
|
3
|
+
//#region src/units/gantt.d.ts
|
|
4
|
+
declare const getTypeUnits: () => PureUnit[], getUnitName: (unit: Unit) => string | null, getUnitsForType: (typeObject: TypeObject, options?: {
|
|
5
|
+
parentFieldObjects?: import("@fibery/schema").FieldObject[];
|
|
6
|
+
showHiddenFields?: boolean;
|
|
7
|
+
isSharingMode?: boolean;
|
|
8
|
+
}) => {
|
|
9
|
+
unit: Unit;
|
|
10
|
+
fieldObject: import("@fibery/schema").FieldObject;
|
|
11
|
+
}[], getUnitsForField: (fieldObject: import("@fibery/schema").FieldObject, options?: {
|
|
12
|
+
parentFieldObjects?: import("@fibery/schema").FieldObject[];
|
|
13
|
+
showHiddenFields?: boolean;
|
|
14
|
+
isSharingMode?: boolean;
|
|
15
|
+
}) => Unit[], getUnitsForTypePerField: (typeObject: TypeObject, options?: {
|
|
16
|
+
parentFieldObjects?: import("@fibery/schema").FieldObject[];
|
|
17
|
+
showHiddenFields?: boolean;
|
|
18
|
+
isSharingMode?: boolean;
|
|
19
|
+
}) => {
|
|
20
|
+
fieldObject: import("@fibery/schema").FieldObject;
|
|
21
|
+
units: Unit[];
|
|
22
|
+
}[], getCardUnitsSelect: ({ schema, typeObject, units }: {
|
|
23
|
+
schema: import("@fibery/schema").Schema;
|
|
24
|
+
typeObject: TypeObject;
|
|
25
|
+
units: Unit[];
|
|
26
|
+
}) => any, getUnitLabel: (typeObject: TypeObject, unit: Unit) => string, getHardcodedUnitsForView: (typeObject: TypeObject) => ({
|
|
27
|
+
kind: "user-button";
|
|
28
|
+
type: "user-button" | "icon-button";
|
|
29
|
+
data: {
|
|
30
|
+
id: string;
|
|
31
|
+
typeId: string;
|
|
32
|
+
};
|
|
33
|
+
label: string;
|
|
34
|
+
hideWhenEmpty?: boolean;
|
|
35
|
+
icon?: string;
|
|
36
|
+
} | {
|
|
37
|
+
kind: "db";
|
|
38
|
+
type: "type-icon" | "type-badge" | "type-badge-abbr";
|
|
39
|
+
expression?: UnitExpression;
|
|
40
|
+
hideWhenEmpty?: boolean;
|
|
41
|
+
} | {
|
|
42
|
+
kind: "field";
|
|
43
|
+
type: "avatar" | "avatar-collection" | "avatar-input" | "back-references-list" | "bool" | "bool-checkbox" | "collection-count" | "color-input" | "comments-list" | "date" | "date-time" | "date-time-range" | "date-time-combobox" | "date-range" | "date-range-combobox" | "email" | "email-input" | "emoji" | "field" | "files-collection" | "files-gallery" | "files-list" | "files-list-item" | "files-l-list" | "files-l-list-item" | "file-reference" | "file-compact-collection" | "file-compact-reference" | "file-collection-count" | "geometry-preview" | "icon-button" | "icon-input" | "id" | "json-input" | "location" | "location-input" | "number" | "number-input" | "phone" | "phone-input" | "progress-bar" | "reference" | "reference-icon" | "reference-combobox" | "reference-collection" | "reference-collection-list" | "reference-collection-view" | "reference-collection-combobox" | "rich-text-snippet" | "rich-text-document" | "single-location-preview" | "text" | "text-input" | "title" | "title-input" | "url" | "url-input" | "user-role" | "user-role-input";
|
|
44
|
+
expression: UnitExpression;
|
|
45
|
+
settings?: Record<string, unknown>;
|
|
46
|
+
hideWhenEmpty?: boolean;
|
|
47
|
+
})[];
|
|
48
|
+
declare const getDefaultUnits: () => PureUnit[];
|
|
49
|
+
declare const getDefaultLaneUnits: (typeObject: TypeObject) => PureUnit[];
|
|
50
|
+
//#endregion
|
|
51
|
+
export { getCardUnitsSelect, getDefaultLaneUnits, getDefaultUnits, getHardcodedUnitsForView, getTypeUnits, getUnitLabel, getUnitName, getUnitsForField, getUnitsForType, getUnitsForTypePerField };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { isAvatarExtensionEnabledType } from "../field-utils/avatar.js";
|
|
3
|
+
import { unit_definitions_exports } from "../unit-definitions/index.js";
|
|
4
|
+
import { makeUnitDefinitionsFactory } from "./make-factory.js";
|
|
5
|
+
//#region src/units/gantt.ts
|
|
6
|
+
var gantt_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
getCardUnitsSelect: () => getCardUnitsSelect,
|
|
8
|
+
getDefaultLaneUnits: () => getDefaultLaneUnits,
|
|
9
|
+
getDefaultUnits: () => getDefaultUnits,
|
|
10
|
+
getHardcodedUnitsForView: () => getHardcodedUnitsForView,
|
|
11
|
+
getTypeUnits: () => getTypeUnits,
|
|
12
|
+
getUnitLabel: () => getUnitLabel,
|
|
13
|
+
getUnitName: () => getUnitName,
|
|
14
|
+
getUnitsForField: () => getUnitsForField,
|
|
15
|
+
getUnitsForType: () => getUnitsForType,
|
|
16
|
+
getUnitsForTypePerField: () => getUnitsForTypePerField
|
|
17
|
+
});
|
|
18
|
+
const { getTypeUnits, getUnitName, getUnitsForType, getUnitsForField, getUnitsForTypePerField, getCardUnitsSelect, getUnitLabel, getHardcodedUnitsForView } = makeUnitDefinitionsFactory(unit_definitions_exports);
|
|
19
|
+
const getDefaultUnits = () => {
|
|
20
|
+
const { Title } = unit_definitions_exports;
|
|
21
|
+
return [Title && Title.makeUnit()].filter(Boolean);
|
|
22
|
+
};
|
|
23
|
+
const getDefaultLaneUnits = (typeObject) => {
|
|
24
|
+
const { Title, Avatar, Emoji, TypeBadgeAbbr } = unit_definitions_exports;
|
|
25
|
+
return [Title && Title.makeUnit(), typeObject && isAvatarExtensionEnabledType(typeObject) && Avatar && Avatar.makeUnit() || typeObject.isEnum && Object.hasOwn(typeObject.fieldObjectsByName, "enum/icon") && Emoji && Emoji.makeUnit({ expression: ["enum/icon"] }) || TypeBadgeAbbr && TypeBadgeAbbr.makeUnit()].filter(Boolean);
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { gantt_exports, getCardUnitsSelect, getDefaultLaneUnits, getDefaultUnits, getHardcodedUnitsForView, getTypeUnits, getUnitLabel, getUnitName, getUnitsForField, getUnitsForType, getUnitsForTypePerField };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { board_exports } from "./board.js";
|
|
2
|
+
import { default_exports } from "./default.js";
|
|
3
|
+
import { gallery_exports } from "./gallery.js";
|
|
4
|
+
import { gantt_exports } from "./gantt.js";
|
|
5
|
+
import { canvas_exports } from "./canvas/index.js";
|
|
6
|
+
import { grid_exports } from "./grid.js";
|
|
7
|
+
import { list_exports } from "./list.js";
|
|
8
|
+
//#region src/units/get-unit-definitions-for-view-type.ts
|
|
9
|
+
const getUnitDefinitionsForViewType = (viewType) => {
|
|
10
|
+
switch (viewType) {
|
|
11
|
+
case "board": return board_exports;
|
|
12
|
+
case "gallery": return gallery_exports;
|
|
13
|
+
case "table": return grid_exports;
|
|
14
|
+
case "canvas": return canvas_exports;
|
|
15
|
+
case "grid": return grid_exports;
|
|
16
|
+
case "list": return list_exports;
|
|
17
|
+
case "gantt": return gantt_exports;
|
|
18
|
+
default: return default_exports;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { getUnitDefinitionsForViewType };
|