@fibery/views 19.1.1 → 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 -42
- 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 -18
- 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 -57
- 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/truthy.d.ts +0 -1
- package/lib/src/truthy.js +0 -7
- 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 -54
- 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 -88
- 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 -261
- package/lib/src/units/types.d.ts +0 -73
- package/lib/src/units/types.js +0 -2
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export { AvatarCollection } from "./avatar-collection";
|
|
2
|
-
export { Avatar } from "./avatar";
|
|
3
|
-
export { Bool } from "./bool";
|
|
4
|
-
export { CollectionCount } from "./collection-count";
|
|
5
|
-
export { Date } from "./date";
|
|
6
|
-
export { DateRange } from "./date-range";
|
|
7
|
-
export { Email } from "./email";
|
|
8
|
-
export { Emoji } from "./emoji";
|
|
9
|
-
export { IconButton } from "./icon-button";
|
|
10
|
-
export { Id } from "./id";
|
|
11
|
-
export { Location } from "./location";
|
|
12
|
-
export { Number } from "./number";
|
|
13
|
-
export { Phone } from "./phone";
|
|
14
|
-
export { ProgressBar } from "./progress-bar";
|
|
15
|
-
export { ReferenceCollection } from "./reference-collection";
|
|
16
|
-
export { ReferenceIcon } from "./reference-icon";
|
|
17
|
-
export { Reference } from "./reference";
|
|
18
|
-
export { RichTextSnippet } from "./rich-text-snippet";
|
|
19
|
-
export { Text } from "./text";
|
|
20
|
-
export { Title } from "./title";
|
|
21
|
-
export { TypeBadgeAbbr } from "./type-badge-abbr";
|
|
22
|
-
export { TypeBadge } from "./type-badge";
|
|
23
|
-
export { TypeIcon } from "./type-icon";
|
|
24
|
-
export { Url } from "./url";
|
|
25
|
-
export { UserButton } from "./user-button";
|
|
26
|
-
export { UserRole } from "./user-role";
|
|
27
|
-
export { FileCollectionCount } from "./file-collection-count";
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FileCollectionCount = exports.UserRole = exports.UserButton = exports.Url = exports.TypeIcon = exports.TypeBadge = exports.TypeBadgeAbbr = exports.Title = exports.Text = exports.RichTextSnippet = exports.Reference = exports.ReferenceIcon = exports.ReferenceCollection = exports.ProgressBar = exports.Phone = exports.Number = exports.Location = exports.Id = exports.IconButton = exports.Emoji = exports.Email = exports.DateRange = exports.Date = exports.CollectionCount = exports.Bool = exports.Avatar = exports.AvatarCollection = void 0;
|
|
4
|
-
var avatar_collection_1 = require("./avatar-collection");
|
|
5
|
-
Object.defineProperty(exports, "AvatarCollection", { enumerable: true, get: function () { return avatar_collection_1.AvatarCollection; } });
|
|
6
|
-
var avatar_1 = require("./avatar");
|
|
7
|
-
Object.defineProperty(exports, "Avatar", { enumerable: true, get: function () { return avatar_1.Avatar; } });
|
|
8
|
-
var bool_1 = require("./bool");
|
|
9
|
-
Object.defineProperty(exports, "Bool", { enumerable: true, get: function () { return bool_1.Bool; } });
|
|
10
|
-
var collection_count_1 = require("./collection-count");
|
|
11
|
-
Object.defineProperty(exports, "CollectionCount", { enumerable: true, get: function () { return collection_count_1.CollectionCount; } });
|
|
12
|
-
var date_1 = require("./date");
|
|
13
|
-
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return date_1.Date; } });
|
|
14
|
-
var date_range_1 = require("./date-range");
|
|
15
|
-
Object.defineProperty(exports, "DateRange", { enumerable: true, get: function () { return date_range_1.DateRange; } });
|
|
16
|
-
var email_1 = require("./email");
|
|
17
|
-
Object.defineProperty(exports, "Email", { enumerable: true, get: function () { return email_1.Email; } });
|
|
18
|
-
var emoji_1 = require("./emoji");
|
|
19
|
-
Object.defineProperty(exports, "Emoji", { enumerable: true, get: function () { return emoji_1.Emoji; } });
|
|
20
|
-
var icon_button_1 = require("./icon-button");
|
|
21
|
-
Object.defineProperty(exports, "IconButton", { enumerable: true, get: function () { return icon_button_1.IconButton; } });
|
|
22
|
-
var id_1 = require("./id");
|
|
23
|
-
Object.defineProperty(exports, "Id", { enumerable: true, get: function () { return id_1.Id; } });
|
|
24
|
-
var location_1 = require("./location");
|
|
25
|
-
Object.defineProperty(exports, "Location", { enumerable: true, get: function () { return location_1.Location; } });
|
|
26
|
-
var number_1 = require("./number");
|
|
27
|
-
Object.defineProperty(exports, "Number", { enumerable: true, get: function () { return number_1.Number; } });
|
|
28
|
-
var phone_1 = require("./phone");
|
|
29
|
-
Object.defineProperty(exports, "Phone", { enumerable: true, get: function () { return phone_1.Phone; } });
|
|
30
|
-
var progress_bar_1 = require("./progress-bar");
|
|
31
|
-
Object.defineProperty(exports, "ProgressBar", { enumerable: true, get: function () { return progress_bar_1.ProgressBar; } });
|
|
32
|
-
var reference_collection_1 = require("./reference-collection");
|
|
33
|
-
Object.defineProperty(exports, "ReferenceCollection", { enumerable: true, get: function () { return reference_collection_1.ReferenceCollection; } });
|
|
34
|
-
var reference_icon_1 = require("./reference-icon");
|
|
35
|
-
Object.defineProperty(exports, "ReferenceIcon", { enumerable: true, get: function () { return reference_icon_1.ReferenceIcon; } });
|
|
36
|
-
var reference_1 = require("./reference");
|
|
37
|
-
Object.defineProperty(exports, "Reference", { enumerable: true, get: function () { return reference_1.Reference; } });
|
|
38
|
-
var rich_text_snippet_1 = require("./rich-text-snippet");
|
|
39
|
-
Object.defineProperty(exports, "RichTextSnippet", { enumerable: true, get: function () { return rich_text_snippet_1.RichTextSnippet; } });
|
|
40
|
-
var text_1 = require("./text");
|
|
41
|
-
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return text_1.Text; } });
|
|
42
|
-
var title_1 = require("./title");
|
|
43
|
-
Object.defineProperty(exports, "Title", { enumerable: true, get: function () { return title_1.Title; } });
|
|
44
|
-
var type_badge_abbr_1 = require("./type-badge-abbr");
|
|
45
|
-
Object.defineProperty(exports, "TypeBadgeAbbr", { enumerable: true, get: function () { return type_badge_abbr_1.TypeBadgeAbbr; } });
|
|
46
|
-
var type_badge_1 = require("./type-badge");
|
|
47
|
-
Object.defineProperty(exports, "TypeBadge", { enumerable: true, get: function () { return type_badge_1.TypeBadge; } });
|
|
48
|
-
var type_icon_1 = require("./type-icon");
|
|
49
|
-
Object.defineProperty(exports, "TypeIcon", { enumerable: true, get: function () { return type_icon_1.TypeIcon; } });
|
|
50
|
-
var url_1 = require("./url");
|
|
51
|
-
Object.defineProperty(exports, "Url", { enumerable: true, get: function () { return url_1.Url; } });
|
|
52
|
-
var user_button_1 = require("./user-button");
|
|
53
|
-
Object.defineProperty(exports, "UserButton", { enumerable: true, get: function () { return user_button_1.UserButton; } });
|
|
54
|
-
var user_role_1 = require("./user-role");
|
|
55
|
-
Object.defineProperty(exports, "UserRole", { enumerable: true, get: function () { return user_role_1.UserRole; } });
|
|
56
|
-
var file_collection_count_1 = require("./file-collection-count");
|
|
57
|
-
Object.defineProperty(exports, "FileCollectionCount", { enumerable: true, get: function () { return file_collection_count_1.FileCollectionCount; } });
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JsonInput = void 0;
|
|
4
|
-
const query_1 = require("@fibery/query-utils/src/query");
|
|
5
|
-
const can_edit_field_1 = require("../unit-utils/can-edit-field");
|
|
6
|
-
const common_1 = require("../unit-utils/common");
|
|
7
|
-
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
8
|
-
const type = "json-input";
|
|
9
|
-
exports.JsonInput = {
|
|
10
|
-
type,
|
|
11
|
-
name: "Input",
|
|
12
|
-
canEdit: can_edit_field_1.canEditField,
|
|
13
|
-
makeUnit: (0, common_1.makeUnitMethod)(type),
|
|
14
|
-
getLabel: get_field_label_1.getFieldLabel,
|
|
15
|
-
getQuerySelect({ typeObject, unit: { expression } }) {
|
|
16
|
-
return (0, query_1.getQuerySelectForExpression)({ typeObject, expression });
|
|
17
|
-
},
|
|
18
|
-
calculateErrors: common_1.calculateUnitExpressionErrors,
|
|
19
|
-
getExportValue: () => null,
|
|
20
|
-
canExport: () => false,
|
|
21
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LocationInput = void 0;
|
|
4
|
-
const common_1 = require("../unit-utils/common");
|
|
5
|
-
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
6
|
-
const text_1 = require("./text");
|
|
7
|
-
const type = "location-input";
|
|
8
|
-
exports.LocationInput = {
|
|
9
|
-
type,
|
|
10
|
-
name: "Address",
|
|
11
|
-
makeUnit: (0, common_1.makeUnitMethod)(type),
|
|
12
|
-
getLabel: text_1.Text.getLabel,
|
|
13
|
-
getQuerySelect: text_1.Text.getQuerySelect,
|
|
14
|
-
calculateErrors: text_1.Text.calculateErrors,
|
|
15
|
-
canEdit: text_1.Text.canEdit,
|
|
16
|
-
getExportValue: get_export_value_1.getLocationExportValue,
|
|
17
|
-
canExport: () => true,
|
|
18
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Location = void 0;
|
|
4
|
-
const common_1 = require("../unit-utils/common");
|
|
5
|
-
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
6
|
-
const text_1 = require("./text");
|
|
7
|
-
exports.Location = {
|
|
8
|
-
type: "location",
|
|
9
|
-
name: "Address",
|
|
10
|
-
makeUnit: (0, common_1.makeUnitMethod)("location"),
|
|
11
|
-
getLabel: text_1.Text.getLabel,
|
|
12
|
-
getQuerySelect: text_1.Text.getQuerySelect,
|
|
13
|
-
calculateErrors: text_1.Text.calculateErrors,
|
|
14
|
-
canEdit: text_1.Text.canEdit,
|
|
15
|
-
getExportValue: get_export_value_1.getLocationExportValue,
|
|
16
|
-
canExport: () => true,
|
|
17
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotFound = void 0;
|
|
4
|
-
const get_unmatched_unit_label_1 = require("../unit-utils/get-unmatched-unit-label");
|
|
5
|
-
const type = "not-found";
|
|
6
|
-
exports.NotFound = {
|
|
7
|
-
type,
|
|
8
|
-
name: "Not found",
|
|
9
|
-
canEdit: () => false,
|
|
10
|
-
makeUnit() {
|
|
11
|
-
throw new Error("Not implemented");
|
|
12
|
-
},
|
|
13
|
-
getLabel({ unit }) {
|
|
14
|
-
return (0, get_unmatched_unit_label_1.getUnmatchedUnitLabel)(unit);
|
|
15
|
-
},
|
|
16
|
-
getQuerySelect() {
|
|
17
|
-
return {};
|
|
18
|
-
},
|
|
19
|
-
calculateErrors() {
|
|
20
|
-
return [];
|
|
21
|
-
},
|
|
22
|
-
getExportValue: () => null,
|
|
23
|
-
canExport: () => false,
|
|
24
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NumberInput = void 0;
|
|
4
|
-
const query_1 = require("@fibery/query-utils/src/query");
|
|
5
|
-
const can_edit_field_1 = require("../unit-utils/can-edit-field");
|
|
6
|
-
const common_1 = require("../unit-utils/common");
|
|
7
|
-
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
8
|
-
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
9
|
-
const type = "number-input";
|
|
10
|
-
exports.NumberInput = {
|
|
11
|
-
type,
|
|
12
|
-
name: "Input",
|
|
13
|
-
makeUnit: (0, common_1.makeUnitMethod)(type),
|
|
14
|
-
getLabel: get_field_label_1.getFieldLabel,
|
|
15
|
-
getQuerySelect({ typeObject, unit: { expression } }) {
|
|
16
|
-
return (0, query_1.getQuerySelectForExpression)({ typeObject, expression });
|
|
17
|
-
},
|
|
18
|
-
calculateErrors: common_1.calculateUnitExpressionErrors,
|
|
19
|
-
canEdit: can_edit_field_1.canEditField,
|
|
20
|
-
getExportValue: get_export_value_1.getNumberExportValue,
|
|
21
|
-
canExport: () => true,
|
|
22
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Number = void 0;
|
|
4
|
-
const query_1 = require("@fibery/query-utils/src/query");
|
|
5
|
-
const common_1 = require("../unit-utils/common");
|
|
6
|
-
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
7
|
-
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
8
|
-
const type = "number";
|
|
9
|
-
exports.Number = {
|
|
10
|
-
type,
|
|
11
|
-
name: "Input",
|
|
12
|
-
makeUnit: (0, common_1.makeUnitMethod)(type),
|
|
13
|
-
getLabel({ typeObject, unit }) {
|
|
14
|
-
return (0, get_field_label_1.getFieldLabel)({ typeObject, unit });
|
|
15
|
-
},
|
|
16
|
-
getQuerySelect({ typeObject, unit: { expression } }) {
|
|
17
|
-
return (0, query_1.getQuerySelectForExpression)({ typeObject, expression });
|
|
18
|
-
},
|
|
19
|
-
calculateErrors: common_1.calculateUnitExpressionErrors,
|
|
20
|
-
canEdit({ typeObject, unit: { expression } }) {
|
|
21
|
-
return (0, common_1.canEditFieldExpression)(typeObject, expression);
|
|
22
|
-
},
|
|
23
|
-
getExportValue: get_export_value_1.getNumberExportValue,
|
|
24
|
-
canExport: () => true,
|
|
25
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhoneInput = void 0;
|
|
4
|
-
const common_1 = require("../unit-utils/common");
|
|
5
|
-
const text_input_1 = require("./text-input");
|
|
6
|
-
const type = "phone-input";
|
|
7
|
-
exports.PhoneInput = {
|
|
8
|
-
...text_input_1.TextInput,
|
|
9
|
-
type,
|
|
10
|
-
name: "Phone input",
|
|
11
|
-
makeUnit: (0, common_1.makeUnitMethod)(type),
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Phone = void 0;
|
|
4
|
-
const common_1 = require("../unit-utils/common");
|
|
5
|
-
const text_1 = require("./text");
|
|
6
|
-
const type = "phone";
|
|
7
|
-
exports.Phone = {
|
|
8
|
-
...text_1.Text,
|
|
9
|
-
type,
|
|
10
|
-
name: "Input",
|
|
11
|
-
makeUnit: (0, common_1.makeUnitMethod)(type),
|
|
12
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProgressBar = void 0;
|
|
4
|
-
const query_1 = require("@fibery/query-utils/src/query");
|
|
5
|
-
const common_1 = require("../unit-utils/common");
|
|
6
|
-
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
7
|
-
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
8
|
-
const type = "progress-bar";
|
|
9
|
-
exports.ProgressBar = {
|
|
10
|
-
type,
|
|
11
|
-
name: "Progress bar",
|
|
12
|
-
makeUnit: (0, common_1.makeUnitMethod)(type),
|
|
13
|
-
getLabel({ typeObject, unit }) {
|
|
14
|
-
return `${(0, get_field_label_1.getFieldLabel)({ typeObject, unit })} (progress bar)`;
|
|
15
|
-
},
|
|
16
|
-
getQuerySelect({ typeObject, unit: { expression } }) {
|
|
17
|
-
return (0, query_1.getQuerySelectForExpression)({
|
|
18
|
-
typeObject,
|
|
19
|
-
expression,
|
|
20
|
-
});
|
|
21
|
-
},
|
|
22
|
-
calculateErrors: common_1.calculateUnitExpressionErrors,
|
|
23
|
-
canEdit() {
|
|
24
|
-
return false;
|
|
25
|
-
},
|
|
26
|
-
getExportValue: get_export_value_1.getNumberExportValue,
|
|
27
|
-
canExport: () => true,
|
|
28
|
-
getExportLabel: get_field_label_1.getFieldLabel,
|
|
29
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReferenceCollectionCombobox = void 0;
|
|
4
|
-
const can_edit_field_1 = require("../unit-utils/can-edit-field");
|
|
5
|
-
const common_1 = require("../unit-utils/common");
|
|
6
|
-
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
7
|
-
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
8
|
-
const type = "reference-collection-combobox";
|
|
9
|
-
exports.ReferenceCollectionCombobox = {
|
|
10
|
-
type,
|
|
11
|
-
name: "Compact List",
|
|
12
|
-
canEdit: can_edit_field_1.canEditField,
|
|
13
|
-
makeUnit: (0, common_1.makeUnitMethod)(type),
|
|
14
|
-
getLabel: get_field_label_1.getFieldLabel,
|
|
15
|
-
getQuerySelect: () => {
|
|
16
|
-
throw new Error(`getQuerySelect for ${type} should be implemented in view's local unit registry`);
|
|
17
|
-
},
|
|
18
|
-
calculateErrors: common_1.calculateUnitExpressionErrors,
|
|
19
|
-
getExportValue: get_export_value_1.getExportValue,
|
|
20
|
-
canExport: () => true,
|
|
21
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReferenceCollectionList = void 0;
|
|
4
|
-
const can_edit_field_1 = require("../unit-utils/can-edit-field");
|
|
5
|
-
const common_1 = require("../unit-utils/common");
|
|
6
|
-
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
7
|
-
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
8
|
-
const type = "reference-collection-list";
|
|
9
|
-
exports.ReferenceCollectionList = {
|
|
10
|
-
type,
|
|
11
|
-
name: "Relation List",
|
|
12
|
-
canEdit: can_edit_field_1.canEditField,
|
|
13
|
-
makeUnit: (0, common_1.makeUnitMethod)(type),
|
|
14
|
-
getLabel: get_field_label_1.getFieldLabel,
|
|
15
|
-
getQuerySelect: () => {
|
|
16
|
-
// reference-collection-list is used on OE only and querySelect is redefined in ../object-editor-units/reference-collection-list-definition.ts
|
|
17
|
-
return {};
|
|
18
|
-
},
|
|
19
|
-
calculateErrors: common_1.calculateUnitExpressionErrors,
|
|
20
|
-
getExportValue: get_export_value_1.getReferenceCollectionExportValue,
|
|
21
|
-
canExport: () => true,
|
|
22
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReferenceCollectionView = void 0;
|
|
4
|
-
const can_edit_field_1 = require("../unit-utils/can-edit-field");
|
|
5
|
-
const common_1 = require("../unit-utils/common");
|
|
6
|
-
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
7
|
-
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
8
|
-
const type = "reference-collection-view";
|
|
9
|
-
exports.ReferenceCollectionView = {
|
|
10
|
-
type,
|
|
11
|
-
name: "Relation Views",
|
|
12
|
-
canEdit: can_edit_field_1.canEditField,
|
|
13
|
-
makeUnit: (0, common_1.makeUnitMethod)(type),
|
|
14
|
-
getLabel: get_field_label_1.getFieldLabel,
|
|
15
|
-
getQuerySelect: () => ({}),
|
|
16
|
-
calculateErrors: common_1.calculateUnitExpressionErrors,
|
|
17
|
-
getExportValue: get_export_value_1.getReferenceCollectionExportValue,
|
|
18
|
-
canExport: () => true,
|
|
19
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReferenceCollection = void 0;
|
|
4
|
-
const utils_1 = require("@fibery/expression-utils/src/utils");
|
|
5
|
-
const reference_collection_1 = require("../field-utils/reference-collection");
|
|
6
|
-
const can_edit_field_1 = require("../unit-utils/can-edit-field");
|
|
7
|
-
const common_1 = require("../unit-utils/common");
|
|
8
|
-
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
9
|
-
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
10
|
-
const type = "reference-collection";
|
|
11
|
-
exports.ReferenceCollection = {
|
|
12
|
-
type,
|
|
13
|
-
name: "Compact List",
|
|
14
|
-
getLabel: get_field_label_1.getFieldLabel,
|
|
15
|
-
makeUnit: (0, common_1.makeUnitMethod)(type),
|
|
16
|
-
getQuerySelect({ typeObject, unit: { expression } }) {
|
|
17
|
-
const fieldObjects = (0, utils_1.getFieldObjectsByFieldExpression)({ typeObject, expression });
|
|
18
|
-
return (0, reference_collection_1.calculateReferenceCollectionQuery)({
|
|
19
|
-
fieldObjects,
|
|
20
|
-
expression,
|
|
21
|
-
limit: reference_collection_1.REFERENCE_COLLECTION_LIMIT,
|
|
22
|
-
});
|
|
23
|
-
},
|
|
24
|
-
calculateErrors: common_1.calculateUnitExpressionErrors,
|
|
25
|
-
canEdit: can_edit_field_1.canEditField,
|
|
26
|
-
getExportValue: get_export_value_1.getReferenceCollectionExportValue,
|
|
27
|
-
canExport: () => true,
|
|
28
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReferenceCombobox = void 0;
|
|
4
|
-
const can_edit_field_1 = require("../unit-utils/can-edit-field");
|
|
5
|
-
const common_1 = require("../unit-utils/common");
|
|
6
|
-
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
7
|
-
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
8
|
-
const type = "reference-combobox";
|
|
9
|
-
exports.ReferenceCombobox = {
|
|
10
|
-
type,
|
|
11
|
-
name: "Compact List",
|
|
12
|
-
canEdit: can_edit_field_1.canEditField,
|
|
13
|
-
makeUnit: (0, common_1.makeUnitMethod)(type),
|
|
14
|
-
getLabel: get_field_label_1.getFieldLabel,
|
|
15
|
-
getQuerySelect: () => {
|
|
16
|
-
throw new Error(`getQuerySelect for ${type} should be implemented in view's local unit registry`);
|
|
17
|
-
},
|
|
18
|
-
calculateErrors: common_1.calculateUnitExpressionErrors,
|
|
19
|
-
getExportValue: get_export_value_1.getReferenceExportValue,
|
|
20
|
-
canExport: () => true,
|
|
21
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReferenceIcon = void 0;
|
|
4
|
-
const common_1 = require("../unit-utils/common");
|
|
5
|
-
const reference_1 = require("./reference");
|
|
6
|
-
const type = "reference-icon";
|
|
7
|
-
exports.ReferenceIcon = {
|
|
8
|
-
...reference_1.Reference,
|
|
9
|
-
type,
|
|
10
|
-
name: "Icon",
|
|
11
|
-
makeUnit: (0, common_1.makeUnitMethod)(type),
|
|
12
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Reference = void 0;
|
|
4
|
-
const utils_1 = require("@fibery/expression-utils/src/utils");
|
|
5
|
-
const select_1 = require("@fibery/query-utils/src/select");
|
|
6
|
-
const reference_1 = require("../field-utils/reference");
|
|
7
|
-
const common_1 = require("../unit-utils/common");
|
|
8
|
-
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
9
|
-
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
10
|
-
const type = "reference";
|
|
11
|
-
exports.Reference = {
|
|
12
|
-
type,
|
|
13
|
-
name: "Name",
|
|
14
|
-
getLabel: get_field_label_1.getFieldLabel,
|
|
15
|
-
makeUnit: (args) => {
|
|
16
|
-
if (!args) {
|
|
17
|
-
return { type, kind: "field" };
|
|
18
|
-
}
|
|
19
|
-
(0, utils_1.assertIsValidExpression)(args.expression);
|
|
20
|
-
return { type, kind: "field", expression: args.expression };
|
|
21
|
-
},
|
|
22
|
-
getQuerySelect({ typeObject, unit: { expression } }) {
|
|
23
|
-
const fieldObjects = (0, utils_1.getFieldObjectsByFieldExpression)({ typeObject, expression });
|
|
24
|
-
const terminalFieldObject = fieldObjects[fieldObjects.length - 1];
|
|
25
|
-
const innerNormalized = (0, reference_1.getReferenceFieldNormalizedSelectClause)(terminalFieldObject, expression);
|
|
26
|
-
// Wrap in the full expression path (innermost to outermost).
|
|
27
|
-
// For intermediate reference fields, also include their entity's id so normalizr can normalize them.
|
|
28
|
-
const nested = [...expression].reverse().reduce((inner, field, reversedIndex) => {
|
|
29
|
-
const originalIndex = expression.length - 1 - reversedIndex;
|
|
30
|
-
const isTerminal = originalIndex === expression.length - 1;
|
|
31
|
-
if (!isTerminal) {
|
|
32
|
-
const { idField } = fieldObjects[originalIndex].typeObject;
|
|
33
|
-
const innerWithId = idField ? { [idField]: idField, ...inner } : inner;
|
|
34
|
-
return { [field]: innerWithId };
|
|
35
|
-
}
|
|
36
|
-
return { [field]: inner };
|
|
37
|
-
}, innerNormalized);
|
|
38
|
-
return (0, select_1.denormalizeSelect)(nested);
|
|
39
|
-
},
|
|
40
|
-
calculateErrors({ typeObject, unit }) {
|
|
41
|
-
const errors = (0, common_1.calculateUnitExpressionErrors)({ typeObject, unit });
|
|
42
|
-
if (errors.length > 0) {
|
|
43
|
-
return errors;
|
|
44
|
-
}
|
|
45
|
-
if (typeObject.idFieldObject === null) {
|
|
46
|
-
errors.push(`${typeObject.name} does not have id field for ${unit.type} unit`);
|
|
47
|
-
}
|
|
48
|
-
if (typeObject.publicIdFieldObject === null) {
|
|
49
|
-
errors.push(`${typeObject.name} does not have public id field for ${unit.type} unit`);
|
|
50
|
-
}
|
|
51
|
-
if (typeObject.titleFieldObject === null) {
|
|
52
|
-
errors.push(`${typeObject.name} does not have title field for ${unit.type} unit`);
|
|
53
|
-
}
|
|
54
|
-
return errors;
|
|
55
|
-
},
|
|
56
|
-
canEdit({ typeObject, unit: { expression } }) {
|
|
57
|
-
return (0, common_1.canEditFieldExpression)(typeObject, expression);
|
|
58
|
-
},
|
|
59
|
-
getExportValue: get_export_value_1.getReferenceExportValue,
|
|
60
|
-
canExport: () => true,
|
|
61
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RichTextDocument = void 0;
|
|
4
|
-
const rich_text_1 = require("../field-utils/rich-text");
|
|
5
|
-
const can_edit_field_1 = require("../unit-utils/can-edit-field");
|
|
6
|
-
const common_1 = require("../unit-utils/common");
|
|
7
|
-
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
8
|
-
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
9
|
-
const type = "rich-text-document";
|
|
10
|
-
exports.RichTextDocument = {
|
|
11
|
-
type,
|
|
12
|
-
name: "Document",
|
|
13
|
-
canEdit: can_edit_field_1.canEditField,
|
|
14
|
-
getLabel: get_field_label_1.getFieldLabel,
|
|
15
|
-
calculateErrors: common_1.calculateUnitExpressionErrors,
|
|
16
|
-
makeUnit: (0, common_1.makeUnitMethod)(type),
|
|
17
|
-
getQuerySelect({ typeObject, unit }) {
|
|
18
|
-
return (0, rich_text_1.getRichTextQuerySelect)({ typeObject, unit, includeSnippet: false });
|
|
19
|
-
},
|
|
20
|
-
getExportValue: get_export_value_1.getSnippetExportValue,
|
|
21
|
-
canExport: () => true,
|
|
22
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RichTextSnippet = exports.type = void 0;
|
|
4
|
-
const query_1 = require("@fibery/query-utils/src/query");
|
|
5
|
-
const common_1 = require("../unit-utils/common");
|
|
6
|
-
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
7
|
-
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
8
|
-
exports.type = "rich-text-snippet";
|
|
9
|
-
exports.RichTextSnippet = {
|
|
10
|
-
type: exports.type,
|
|
11
|
-
name: "Snippet",
|
|
12
|
-
canEdit() {
|
|
13
|
-
return false;
|
|
14
|
-
},
|
|
15
|
-
makeUnit: (0, common_1.makeUnitMethod)(exports.type),
|
|
16
|
-
getLabel({ typeObject, unit }) {
|
|
17
|
-
return `${(0, get_field_label_1.getFieldLabel)({ typeObject, unit })} (Snippet)`;
|
|
18
|
-
},
|
|
19
|
-
getQuerySelect({ typeObject, unit: { expression } }) {
|
|
20
|
-
return (0, query_1.getQuerySelectForExpression)({
|
|
21
|
-
typeObject,
|
|
22
|
-
expression: [...expression, "Collaboration~Documents/Snippet"],
|
|
23
|
-
selectsByTypeLookup: {
|
|
24
|
-
"Collaboration~Documents/Document": {
|
|
25
|
-
"fibery/id": "fibery/id",
|
|
26
|
-
"Collaboration~Documents/secret": "Collaboration~Documents/secret",
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
},
|
|
31
|
-
calculateErrors: common_1.calculateUnitExpressionErrors,
|
|
32
|
-
getExportValue: get_export_value_1.getSnippetExportValue,
|
|
33
|
-
canExport: () => true,
|
|
34
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SingleLocationPreview = void 0;
|
|
4
|
-
const common_1 = require("../unit-utils/common");
|
|
5
|
-
const text_1 = require("./text");
|
|
6
|
-
const type = "single-location-preview";
|
|
7
|
-
exports.SingleLocationPreview = {
|
|
8
|
-
type,
|
|
9
|
-
name: "Preview",
|
|
10
|
-
makeUnit: (0, common_1.makeUnitMethod)(type),
|
|
11
|
-
getLabel: text_1.Text.getLabel,
|
|
12
|
-
getQuerySelect: text_1.Text.getQuerySelect,
|
|
13
|
-
calculateErrors: text_1.Text.calculateErrors,
|
|
14
|
-
canEdit: text_1.Text.canEdit,
|
|
15
|
-
getExportValue: text_1.Text.getExportValue,
|
|
16
|
-
canExport: () => true,
|
|
17
|
-
};
|