@fibery/views 25.1.5 → 26.0.2

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.
Files changed (168) hide show
  1. package/lib/errors.d.ts +2 -3
  2. package/lib/field-utils/avatar.d.ts +8 -9
  3. package/lib/field-utils/back-references.d.ts +4 -5
  4. package/lib/field-utils/comments.d.ts +5 -6
  5. package/lib/field-utils/date-time.d.ts +7 -8
  6. package/lib/field-utils/enum-value.d.ts +6 -7
  7. package/lib/field-utils/file.d.ts +3 -4
  8. package/lib/field-utils/icon.d.ts +6 -7
  9. package/lib/field-utils/number.d.ts +11 -12
  10. package/lib/field-utils/reference-collection.d.ts +6 -7
  11. package/lib/field-utils/reference-collection.js +1 -1
  12. package/lib/field-utils/reference.d.ts +3 -4
  13. package/lib/field-utils/reference.js +1 -1
  14. package/lib/field-utils/relation-view.d.ts +2 -3
  15. package/lib/field-utils/rich-text.d.ts +9 -10
  16. package/lib/field-utils/text.d.ts +9 -10
  17. package/lib/field-utils/user-active.d.ts +3 -4
  18. package/lib/field-utils/user-role.d.ts +3 -4
  19. package/lib/field-utils/workflow.d.ts +9 -10
  20. package/lib/filter.d.ts +29 -0
  21. package/lib/filter.js +0 -0
  22. package/lib/index.d.ts +57 -21
  23. package/lib/index.js +101 -94
  24. package/lib/meta-validation.d.ts +3 -4
  25. package/lib/private/board.d.ts +218 -14
  26. package/lib/private/board.js +139 -231
  27. package/lib/private/calendar.d.ts +213 -13
  28. package/lib/private/calendar.js +35 -81
  29. package/lib/private/feed.d.ts +211 -13
  30. package/lib/private/feed.js +34 -80
  31. package/lib/private/form.d.ts +52 -7
  32. package/lib/private/form.js +41 -48
  33. package/lib/private/map.d.ts +211 -13
  34. package/lib/private/map.js +34 -80
  35. package/lib/private/smart-folder.d.ts +118 -29
  36. package/lib/private/smart-folder.js +70 -148
  37. package/lib/private/timeline.d.ts +535 -31
  38. package/lib/private/timeline.js +158 -219
  39. package/lib/private/units.d.ts +3 -4
  40. package/lib/private/utils.d.ts +63 -57
  41. package/lib/private/utils.js +71 -49
  42. package/lib/refs.d.ts +19 -0
  43. package/lib/refs.js +0 -0
  44. package/lib/unit-definitions/avatar-collection.d.ts +29 -4
  45. package/lib/unit-definitions/avatar-collection.js +1 -1
  46. package/lib/unit-definitions/avatar-input.d.ts +49 -4
  47. package/lib/unit-definitions/avatar.d.ts +54 -4
  48. package/lib/unit-definitions/avatar.js +1 -1
  49. package/lib/unit-definitions/back-references-list.d.ts +31 -4
  50. package/lib/unit-definitions/back-references-list.js +2 -2
  51. package/lib/unit-definitions/bool-checkbox.d.ts +23 -4
  52. package/lib/unit-definitions/bool-checkbox.js +1 -1
  53. package/lib/unit-definitions/bool.d.ts +23 -4
  54. package/lib/unit-definitions/bool.js +1 -1
  55. package/lib/unit-definitions/collection-count.d.ts +31 -4
  56. package/lib/unit-definitions/collection-count.js +1 -1
  57. package/lib/unit-definitions/color-input.d.ts +22 -4
  58. package/lib/unit-definitions/color-input.js +1 -1
  59. package/lib/unit-definitions/comments-list.d.ts +63 -4
  60. package/lib/unit-definitions/comments-list.js +2 -2
  61. package/lib/unit-definitions/date-range-combobox.d.ts +23 -4
  62. package/lib/unit-definitions/date-range-combobox.js +1 -1
  63. package/lib/unit-definitions/date-range.d.ts +23 -4
  64. package/lib/unit-definitions/date-range.js +1 -1
  65. package/lib/unit-definitions/date-time-combobox.d.ts +23 -4
  66. package/lib/unit-definitions/date-time-combobox.js +1 -1
  67. package/lib/unit-definitions/date.d.ts +23 -4
  68. package/lib/unit-definitions/date.js +1 -1
  69. package/lib/unit-definitions/email-input.d.ts +23 -4
  70. package/lib/unit-definitions/email.d.ts +23 -4
  71. package/lib/unit-definitions/emoji.d.ts +23 -4
  72. package/lib/unit-definitions/file-collection-count.d.ts +23 -4
  73. package/lib/unit-definitions/file-collection-count.js +2 -2
  74. package/lib/unit-definitions/file-compact-collection.d.ts +23 -4
  75. package/lib/unit-definitions/file-compact-collection.js +2 -2
  76. package/lib/unit-definitions/file-compact-reference.d.ts +27 -4
  77. package/lib/unit-definitions/file-compact-reference.js +1 -1
  78. package/lib/unit-definitions/file-reference.d.ts +23 -4
  79. package/lib/unit-definitions/file-reference.js +2 -2
  80. package/lib/unit-definitions/files-gallery.d.ts +23 -4
  81. package/lib/unit-definitions/files-gallery.js +2 -2
  82. package/lib/unit-definitions/files-l-list-item.d.ts +23 -4
  83. package/lib/unit-definitions/files-l-list-item.js +2 -2
  84. package/lib/unit-definitions/files-l-list.d.ts +23 -4
  85. package/lib/unit-definitions/files-l-list.js +2 -2
  86. package/lib/unit-definitions/files-list-item.d.ts +23 -4
  87. package/lib/unit-definitions/files-list-item.js +2 -2
  88. package/lib/unit-definitions/files-list.d.ts +23 -4
  89. package/lib/unit-definitions/files-list.js +2 -2
  90. package/lib/unit-definitions/geometry-preview.d.ts +23 -4
  91. package/lib/unit-definitions/icon-button.d.ts +28 -4
  92. package/lib/unit-definitions/icon-button.js +1 -1
  93. package/lib/unit-definitions/icon-input.d.ts +23 -4
  94. package/lib/unit-definitions/id.d.ts +32 -4
  95. package/lib/unit-definitions/json-input.d.ts +22 -4
  96. package/lib/unit-definitions/json-input.js +1 -1
  97. package/lib/unit-definitions/location-input.d.ts +23 -4
  98. package/lib/unit-definitions/location.d.ts +23 -4
  99. package/lib/unit-definitions/not-found.d.ts +6 -4
  100. package/lib/unit-definitions/number-input.d.ts +23 -4
  101. package/lib/unit-definitions/number-input.js +1 -1
  102. package/lib/unit-definitions/number.d.ts +27 -4
  103. package/lib/unit-definitions/phone-input.d.ts +23 -4
  104. package/lib/unit-definitions/phone.d.ts +23 -4
  105. package/lib/unit-definitions/progress-bar.d.ts +26 -4
  106. package/lib/unit-definitions/reference-collection-combobox.d.ts +19 -4
  107. package/lib/unit-definitions/reference-collection-combobox.js +1 -1
  108. package/lib/unit-definitions/reference-collection-list.d.ts +19 -4
  109. package/lib/unit-definitions/reference-collection-list.js +1 -1
  110. package/lib/unit-definitions/reference-collection-view.d.ts +19 -4
  111. package/lib/unit-definitions/reference-collection-view.js +1 -1
  112. package/lib/unit-definitions/reference-collection.d.ts +23 -4
  113. package/lib/unit-definitions/reference-collection.js +2 -2
  114. package/lib/unit-definitions/reference-combobox.d.ts +19 -4
  115. package/lib/unit-definitions/reference-combobox.js +1 -1
  116. package/lib/unit-definitions/reference-icon.d.ts +27 -4
  117. package/lib/unit-definitions/reference.d.ts +27 -4
  118. package/lib/unit-definitions/reference.js +1 -1
  119. package/lib/unit-definitions/rich-text-document.d.ts +23 -4
  120. package/lib/unit-definitions/rich-text-document.js +2 -2
  121. package/lib/unit-definitions/rich-text-snippet.d.ts +25 -5
  122. package/lib/unit-definitions/single-location-preview.d.ts +23 -4
  123. package/lib/unit-definitions/text-input.d.ts +23 -4
  124. package/lib/unit-definitions/text-input.js +1 -1
  125. package/lib/unit-definitions/text.d.ts +23 -4
  126. package/lib/unit-definitions/text.js +1 -1
  127. package/lib/unit-definitions/title-input.d.ts +24 -4
  128. package/lib/unit-definitions/title.d.ts +27 -4
  129. package/lib/unit-definitions/type-badge-abbr.d.ts +15 -4
  130. package/lib/unit-definitions/type-badge.d.ts +15 -4
  131. package/lib/unit-definitions/type-icon.d.ts +15 -4
  132. package/lib/unit-definitions/url-input.d.ts +23 -4
  133. package/lib/unit-definitions/url.d.ts +23 -4
  134. package/lib/unit-definitions/user-button.d.ts +13 -4
  135. package/lib/unit-definitions/user-role-input.d.ts +26 -4
  136. package/lib/unit-definitions/user-role.d.ts +27 -4
  137. package/lib/unit-definitions/user-role.js +2 -2
  138. package/lib/unit-utils/access.d.ts +4 -5
  139. package/lib/unit-utils/can-edit-field.d.ts +4 -5
  140. package/lib/unit-utils/common.d.ts +16 -11
  141. package/lib/unit-utils/decimal.js +4 -4
  142. package/lib/unit-utils/dynamic-keys.d.ts +8 -9
  143. package/lib/unit-utils/enums.d.ts +4 -5
  144. package/lib/unit-utils/formatters.d.ts +15 -16
  145. package/lib/unit-utils/formatters.js +2 -2
  146. package/lib/unit-utils/get-export-value.d.ts +18 -19
  147. package/lib/unit-utils/get-field-label.d.ts +4 -5
  148. package/lib/unit-utils/get-unmatched-unit-label.d.ts +2 -3
  149. package/lib/unit-utils/wrap-normalized-in-expression.d.ts +2 -3
  150. package/lib/units/board.d.ts +22 -25
  151. package/lib/units/board.js +2 -1
  152. package/lib/units/canvas/index.d.ts +19 -24
  153. package/lib/units/canvas/type-badge-abbr.d.ts +13 -35
  154. package/lib/units/canvas/type-badge.d.ts +13 -35
  155. package/lib/units/default.d.ts +21 -22
  156. package/lib/units/default.js +2 -1
  157. package/lib/units/gallery.d.ts +5 -3
  158. package/lib/units/gantt.d.ts +23 -24
  159. package/lib/units/gantt.js +3 -2
  160. package/lib/units/get-unit-definitions-for-view-type.d.ts +4 -4
  161. package/lib/units/grid.d.ts +14 -25
  162. package/lib/units/grid.js +2 -1
  163. package/lib/units/list.d.ts +17 -26
  164. package/lib/units/list.js +2 -1
  165. package/lib/units/make-factory.d.ts +25 -27
  166. package/lib/units/make-factory.js +3 -3
  167. package/lib/units/types.d.ts +19 -13
  168. package/package.json +8 -8
@@ -1,8 +1,8 @@
1
- import { REFERENCE_COLLECTION_LIMIT, calculateReferenceCollectionQuery } from "../field-utils/reference-collection.js";
2
1
  import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
2
+ import { canEditField } from "../unit-utils/can-edit-field.js";
3
3
  import { getReferenceCollectionExportValue } from "../unit-utils/get-export-value.js";
4
4
  import { getFieldLabel } from "../unit-utils/get-field-label.js";
5
- import { canEditField } from "../unit-utils/can-edit-field.js";
5
+ import { REFERENCE_COLLECTION_LIMIT, calculateReferenceCollectionQuery } from "../field-utils/reference-collection.js";
6
6
  import { getFieldObjectsByFieldExpression } from "@fibery/expression-utils/src/utils";
7
7
  //#region src/unit-definitions/reference-collection.ts
8
8
  const type = "reference-collection";
@@ -1,5 +1,20 @@
1
- import { FieldUnit, UnitDataDefinition } from "../units/types.js";
1
+ import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
2
+ import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
3
+ import { getReferenceExportValue } from "../unit-utils/get-export-value.js";
4
+ import { getFieldLabel } from "../unit-utils/get-field-label.js";
5
+ import { canEditField } from "../unit-utils/can-edit-field.js";
2
6
  //#region src/unit-definitions/reference-combobox.d.ts
3
- declare const ReferenceCombobox: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { ReferenceCombobox };
7
+ export declare const ReferenceCombobox: {
8
+ type: "reference-combobox";
9
+ name: string;
10
+ canEdit: typeof canEditField;
11
+ makeUnit: ({ expression }?: {
12
+ expression?: UnitExpression;
13
+ }) => ExpressionFieldUnit;
14
+ getLabel: typeof getFieldLabel;
15
+ getQuerySelect: () => never;
16
+ calculateErrors: typeof calculateUnitExpressionErrors;
17
+ getExportValue: typeof getReferenceExportValue;
18
+ canExport: () => true;
19
+ };
20
+ //#endregion
@@ -1,7 +1,7 @@
1
1
  import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
2
+ import { canEditField } from "../unit-utils/can-edit-field.js";
2
3
  import { getReferenceExportValue } from "../unit-utils/get-export-value.js";
3
4
  import { getFieldLabel } from "../unit-utils/get-field-label.js";
4
- import { canEditField } from "../unit-utils/can-edit-field.js";
5
5
  //#region src/unit-definitions/reference-combobox.ts
6
6
  const type = "reference-combobox";
7
7
  const ReferenceCombobox = {
@@ -1,5 +1,28 @@
1
- import { FieldUnit, UnitDataDefinition } from "../units/types.js";
1
+ import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
2
+ import { getReferenceExportValue } from "../unit-utils/get-export-value.js";
3
+ import { getFieldLabel } from "../unit-utils/get-field-label.js";
2
4
  //#region src/unit-definitions/reference-icon.d.ts
3
- declare const ReferenceIcon: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { ReferenceIcon };
5
+ export declare const ReferenceIcon: {
6
+ getLabel: typeof getFieldLabel;
7
+ getQuerySelect({ typeObject, unit: { expression } }: {
8
+ typeObject: import("@fibery/schema").TypeObject;
9
+ unit: ExpressionFieldUnit;
10
+ schema: import("@fibery/schema").Schema;
11
+ }): import("@fibery/schema").Select;
12
+ calculateErrors({ typeObject, unit }: {
13
+ typeObject: import("@fibery/schema").TypeObject;
14
+ unit: ExpressionFieldUnit;
15
+ }): string[];
16
+ canEdit({ typeObject, unit: { expression } }: {
17
+ typeObject: import("@fibery/schema").TypeObject;
18
+ unit: ExpressionFieldUnit;
19
+ }): boolean;
20
+ getExportValue: typeof getReferenceExportValue;
21
+ canExport: () => true;
22
+ type: "reference-icon";
23
+ name: string;
24
+ makeUnit: ({ expression }?: {
25
+ expression?: UnitExpression;
26
+ }) => ExpressionFieldUnit;
27
+ };
28
+ //#endregion
@@ -1,5 +1,28 @@
1
- import { FieldUnit, UnitDataDefinition } from "../units/types.js";
1
+ import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
2
+ import { getReferenceExportValue } from "../unit-utils/get-export-value.js";
3
+ import { getFieldLabel } from "../unit-utils/get-field-label.js";
2
4
  //#region src/unit-definitions/reference.d.ts
3
- declare const Reference: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { Reference };
5
+ export declare const Reference: {
6
+ type: "reference";
7
+ name: string;
8
+ getLabel: typeof getFieldLabel;
9
+ makeUnit: (args: {
10
+ expression: UnitExpression;
11
+ } | undefined) => ExpressionFieldUnit;
12
+ getQuerySelect({ typeObject, unit: { expression } }: {
13
+ typeObject: import("@fibery/schema").TypeObject;
14
+ unit: ExpressionFieldUnit;
15
+ schema: import("@fibery/schema").Schema;
16
+ }): import("@fibery/schema").Select;
17
+ calculateErrors({ typeObject, unit }: {
18
+ typeObject: import("@fibery/schema").TypeObject;
19
+ unit: ExpressionFieldUnit;
20
+ }): string[];
21
+ canEdit({ typeObject, unit: { expression } }: {
22
+ typeObject: import("@fibery/schema").TypeObject;
23
+ unit: ExpressionFieldUnit;
24
+ }): boolean;
25
+ getExportValue: typeof getReferenceExportValue;
26
+ canExport: () => true;
27
+ };
28
+ //#endregion
@@ -1,7 +1,7 @@
1
- import { getReferenceFieldNormalizedSelectClause } from "../field-utils/reference.js";
2
1
  import { calculateUnitExpressionErrors, canEditFieldExpression } from "../unit-utils/common.js";
3
2
  import { getReferenceExportValue } from "../unit-utils/get-export-value.js";
4
3
  import { getFieldLabel } from "../unit-utils/get-field-label.js";
4
+ import { getReferenceFieldNormalizedSelectClause } from "../field-utils/reference.js";
5
5
  import { assertIsValidExpression, getFieldObjectsByFieldExpression } from "@fibery/expression-utils/src/utils";
6
6
  import { denormalizeSelect } from "@fibery/query-utils/src/select";
7
7
  //#region src/unit-definitions/reference.ts
@@ -1,5 +1,24 @@
1
- import { FieldUnit, UnitDataDefinition } from "../units/types.js";
1
+ import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
2
+ import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
3
+ import { getSnippetExportValue } from "../unit-utils/get-export-value.js";
4
+ import { getFieldLabel } from "../unit-utils/get-field-label.js";
5
+ import { canEditField } from "../unit-utils/can-edit-field.js";
2
6
  //#region src/unit-definitions/rich-text-document.d.ts
3
- declare const RichTextDocument: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { RichTextDocument };
7
+ export declare const RichTextDocument: {
8
+ type: "rich-text-document";
9
+ name: string;
10
+ canEdit: typeof canEditField;
11
+ getLabel: typeof getFieldLabel;
12
+ calculateErrors: typeof calculateUnitExpressionErrors;
13
+ makeUnit: ({ expression }?: {
14
+ expression?: UnitExpression;
15
+ }) => ExpressionFieldUnit;
16
+ getQuerySelect({ typeObject, unit }: {
17
+ typeObject: import("@fibery/schema").TypeObject;
18
+ unit: ExpressionFieldUnit;
19
+ schema: import("@fibery/schema").Schema;
20
+ }): import("@fibery/schema").Select;
21
+ getExportValue: typeof getSnippetExportValue;
22
+ canExport: () => true;
23
+ };
24
+ //#endregion
@@ -1,8 +1,8 @@
1
- import { getRichTextQuerySelect } from "../field-utils/rich-text.js";
2
1
  import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
2
+ import { canEditField } from "../unit-utils/can-edit-field.js";
3
3
  import { getSnippetExportValue } from "../unit-utils/get-export-value.js";
4
4
  import { getFieldLabel } from "../unit-utils/get-field-label.js";
5
- import { canEditField } from "../unit-utils/can-edit-field.js";
5
+ import { getRichTextQuerySelect } from "../field-utils/rich-text.js";
6
6
  //#region src/unit-definitions/rich-text-document.ts
7
7
  const type = "rich-text-document";
8
8
  const RichTextDocument = {
@@ -1,6 +1,26 @@
1
- import { FieldUnit, UnitDataDefinition } from "../units/types.js";
1
+ import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
2
+ import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
3
+ import { getSnippetExportValue } from "../unit-utils/get-export-value.js";
2
4
  //#region src/unit-definitions/rich-text-snippet.d.ts
3
- declare const type = "rich-text-snippet";
4
- declare const RichTextSnippet: UnitDataDefinition<FieldUnit>;
5
- //#endregion
6
- export { RichTextSnippet, type };
5
+ export declare const type = "rich-text-snippet";
6
+ export declare const RichTextSnippet: {
7
+ type: "rich-text-snippet";
8
+ name: string;
9
+ canEdit(): false;
10
+ makeUnit: ({ expression }?: {
11
+ expression?: UnitExpression;
12
+ }) => ExpressionFieldUnit;
13
+ getLabel({ typeObject, unit }: {
14
+ typeObject: import("@fibery/schema").TypeObject;
15
+ unit: ExpressionFieldUnit;
16
+ }): string;
17
+ getQuerySelect({ typeObject, unit: { expression } }: {
18
+ typeObject: import("@fibery/schema").TypeObject;
19
+ unit: ExpressionFieldUnit;
20
+ schema: import("@fibery/schema").Schema;
21
+ }): import("@fibery/schema").Select;
22
+ calculateErrors: typeof calculateUnitExpressionErrors;
23
+ getExportValue: typeof getSnippetExportValue;
24
+ canExport: () => true;
25
+ };
26
+ //#endregion
@@ -1,5 +1,24 @@
1
- import { FieldUnit, UnitDataDefinition } from "../units/types.js";
1
+ import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
2
+ import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
3
+ import { getExportValue } from "../unit-utils/get-export-value.js";
4
+ import { getFieldLabel } from "../unit-utils/get-field-label.js";
5
+ import { canEditField } from "../unit-utils/can-edit-field.js";
2
6
  //#region src/unit-definitions/single-location-preview.d.ts
3
- declare const SingleLocationPreview: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { SingleLocationPreview };
7
+ export declare const SingleLocationPreview: {
8
+ type: "single-location-preview";
9
+ name: string;
10
+ makeUnit: ({ expression }?: {
11
+ expression?: UnitExpression;
12
+ }) => ExpressionFieldUnit;
13
+ getLabel: typeof getFieldLabel;
14
+ getQuerySelect: ({ typeObject, unit: { expression } }: {
15
+ typeObject: import("@fibery/schema").TypeObject;
16
+ unit: ExpressionFieldUnit;
17
+ schema: import("@fibery/schema").Schema;
18
+ }) => import("@fibery/schema").Select;
19
+ calculateErrors: typeof calculateUnitExpressionErrors;
20
+ canEdit: typeof canEditField;
21
+ getExportValue: typeof getExportValue;
22
+ canExport: () => true;
23
+ };
24
+ //#endregion
@@ -1,5 +1,24 @@
1
- import { FieldUnit, UnitDataDefinition } from "../units/types.js";
1
+ import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
2
+ import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
3
+ import { getExportValue } from "../unit-utils/get-export-value.js";
4
+ import { getFieldLabel } from "../unit-utils/get-field-label.js";
5
+ import { canEditField } from "../unit-utils/can-edit-field.js";
2
6
  //#region src/unit-definitions/text-input.d.ts
3
- declare const TextInput: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { TextInput };
7
+ export declare const TextInput: {
8
+ type: "text-input";
9
+ name: string;
10
+ canEdit: typeof canEditField;
11
+ makeUnit: ({ expression }?: {
12
+ expression?: UnitExpression;
13
+ }) => ExpressionFieldUnit;
14
+ getLabel: typeof getFieldLabel;
15
+ getQuerySelect({ typeObject, unit: { expression } }: {
16
+ typeObject: import("@fibery/schema").TypeObject;
17
+ unit: ExpressionFieldUnit;
18
+ schema: import("@fibery/schema").Schema;
19
+ }): import("@fibery/schema").Select;
20
+ calculateErrors: typeof calculateUnitExpressionErrors;
21
+ getExportValue: typeof getExportValue;
22
+ canExport: () => true;
23
+ };
24
+ //#endregion
@@ -1,7 +1,7 @@
1
1
  import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
2
+ import { canEditField } from "../unit-utils/can-edit-field.js";
2
3
  import { getExportValue } from "../unit-utils/get-export-value.js";
3
4
  import { getFieldLabel } from "../unit-utils/get-field-label.js";
4
- import { canEditField } from "../unit-utils/can-edit-field.js";
5
5
  import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
6
6
  //#region src/unit-definitions/text-input.tsx
7
7
  const type = "text-input";
@@ -1,5 +1,24 @@
1
- import { FieldUnit, UnitDataDefinition } from "../units/types.js";
1
+ import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
2
+ import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
3
+ import { getExportValue } from "../unit-utils/get-export-value.js";
4
+ import { getFieldLabel } from "../unit-utils/get-field-label.js";
5
+ import { canEditField } from "../unit-utils/can-edit-field.js";
2
6
  //#region src/unit-definitions/text.d.ts
3
- declare const Text: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { Text };
7
+ export declare const Text: {
8
+ type: "text";
9
+ name: string;
10
+ canEdit: typeof canEditField;
11
+ makeUnit: ({ expression }?: {
12
+ expression?: UnitExpression;
13
+ }) => ExpressionFieldUnit;
14
+ getLabel: typeof getFieldLabel;
15
+ getQuerySelect({ typeObject, unit: { expression } }: {
16
+ typeObject: import("@fibery/schema").TypeObject;
17
+ unit: ExpressionFieldUnit;
18
+ schema: import("@fibery/schema").Schema;
19
+ }): import("@fibery/schema").Select;
20
+ calculateErrors: typeof calculateUnitExpressionErrors;
21
+ getExportValue: typeof getExportValue;
22
+ canExport: () => true;
23
+ };
24
+ //#endregion
@@ -1,7 +1,7 @@
1
1
  import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
2
+ import { canEditField } from "../unit-utils/can-edit-field.js";
2
3
  import { getExportValue } from "../unit-utils/get-export-value.js";
3
4
  import { getFieldLabel } from "../unit-utils/get-field-label.js";
4
- import { canEditField } from "../unit-utils/can-edit-field.js";
5
5
  import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
6
6
  //#region src/unit-definitions/text.ts
7
7
  const type = "text";
@@ -1,5 +1,25 @@
1
- import { FieldUnit, UnitDataDefinition } from "../units/types.js";
1
+ import { ExpressionFieldUnit, FieldUnit } from "../units/types.js";
2
+ import { getTitleExportValue } from "../unit-utils/get-export-value.js";
2
3
  //#region src/unit-definitions/title-input.d.ts
3
- declare const TitleInput: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { TitleInput };
4
+ export declare const TitleInput: {
5
+ type: "title-input";
6
+ name: string;
7
+ makeUnit: () => ExpressionFieldUnit;
8
+ getLabel: ({ typeObject }: {
9
+ typeObject: import("@fibery/schema").TypeObject;
10
+ unit: FieldUnit;
11
+ }) => string;
12
+ getQuerySelect: ({ typeObject }: {
13
+ typeObject: import("@fibery/schema").TypeObject;
14
+ unit: FieldUnit;
15
+ schema: import("@fibery/schema").Schema;
16
+ }) => import("@fibery/schema").Select;
17
+ calculateErrors: ({ typeObject, unit }: {
18
+ typeObject: import("@fibery/schema").TypeObject;
19
+ unit: FieldUnit;
20
+ }) => string[];
21
+ canEdit: () => false;
22
+ getExportValue: typeof getTitleExportValue;
23
+ canExport: () => true;
24
+ };
25
+ //#endregion
@@ -1,5 +1,28 @@
1
- import { FieldUnit, UnitDataDefinition } from "../units/types.js";
1
+ import { FieldUnit } from "../units/types.js";
2
+ import { getTitleExportValue } from "../unit-utils/get-export-value.js";
2
3
  //#region src/unit-definitions/title.d.ts
3
- declare const Title: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { Title };
4
+ export declare const Title: {
5
+ type: "title";
6
+ name: string;
7
+ makeUnit(): {
8
+ type: "title";
9
+ kind: "field";
10
+ };
11
+ getLabel({ typeObject }: {
12
+ typeObject: import("@fibery/schema").TypeObject;
13
+ unit: FieldUnit;
14
+ }): string;
15
+ getQuerySelect({ typeObject }: {
16
+ typeObject: import("@fibery/schema").TypeObject;
17
+ unit: FieldUnit;
18
+ schema: import("@fibery/schema").Schema;
19
+ }): import("@fibery/schema").Select;
20
+ calculateErrors({ typeObject, unit }: {
21
+ typeObject: import("@fibery/schema").TypeObject;
22
+ unit: FieldUnit;
23
+ }): string[];
24
+ canEdit(): false;
25
+ getExportValue: typeof getTitleExportValue;
26
+ canExport: () => true;
27
+ };
28
+ //#endregion
@@ -1,5 +1,16 @@
1
- import { DbUnit, UnitDataDefinition } from "../units/types.js";
2
1
  //#region src/unit-definitions/type-badge-abbr.d.ts
3
- declare const TypeBadgeAbbr: UnitDataDefinition<DbUnit>;
4
- //#endregion
5
- export { TypeBadgeAbbr };
2
+ export declare const TypeBadgeAbbr: {
3
+ type: "type-badge-abbr";
4
+ name: string;
5
+ canEdit: () => false;
6
+ getLabel(): string;
7
+ makeUnit(): {
8
+ type: "type-badge-abbr";
9
+ kind: "db";
10
+ };
11
+ getQuerySelect(): {};
12
+ calculateErrors(): never[];
13
+ getExportValue(): null;
14
+ canExport: () => false;
15
+ };
16
+ //#endregion
@@ -1,5 +1,16 @@
1
- import { DbUnit, UnitDataDefinition } from "../units/types.js";
2
1
  //#region src/unit-definitions/type-badge.d.ts
3
- declare const TypeBadge: UnitDataDefinition<DbUnit>;
4
- //#endregion
5
- export { TypeBadge };
2
+ export declare const TypeBadge: {
3
+ type: "type-badge";
4
+ name: string;
5
+ canEdit: () => false;
6
+ getLabel(): string;
7
+ makeUnit(): {
8
+ type: "type-badge";
9
+ kind: "db";
10
+ };
11
+ getQuerySelect(): {};
12
+ calculateErrors(): never[];
13
+ getExportValue(): null;
14
+ canExport: () => false;
15
+ };
16
+ //#endregion
@@ -1,5 +1,16 @@
1
- import { DbUnit, UnitDataDefinition } from "../units/types.js";
2
1
  //#region src/unit-definitions/type-icon.d.ts
3
- declare const TypeIcon: UnitDataDefinition<DbUnit>;
4
- //#endregion
5
- export { TypeIcon };
2
+ export declare const TypeIcon: {
3
+ type: "type-icon";
4
+ name: string;
5
+ canEdit: () => false;
6
+ getLabel(): string;
7
+ makeUnit(): {
8
+ type: "type-icon";
9
+ kind: "db";
10
+ };
11
+ getQuerySelect(): {};
12
+ calculateErrors(): never[];
13
+ getExportValue(): null;
14
+ canExport: () => false;
15
+ };
16
+ //#endregion
@@ -1,5 +1,24 @@
1
- import { FieldUnit, UnitDataDefinition } from "../units/types.js";
1
+ import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
2
+ import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
3
+ import { getExportValue } from "../unit-utils/get-export-value.js";
4
+ import { getFieldLabel } from "../unit-utils/get-field-label.js";
5
+ import { canEditField } from "../unit-utils/can-edit-field.js";
2
6
  //#region src/unit-definitions/url-input.d.ts
3
- declare const UrlInput: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { UrlInput };
7
+ export declare const UrlInput: {
8
+ canEdit: typeof canEditField;
9
+ getLabel: typeof getFieldLabel;
10
+ getQuerySelect({ typeObject, unit: { expression } }: {
11
+ typeObject: import("@fibery/schema").TypeObject;
12
+ unit: ExpressionFieldUnit;
13
+ schema: import("@fibery/schema").Schema;
14
+ }): import("@fibery/schema").Select;
15
+ calculateErrors: typeof calculateUnitExpressionErrors;
16
+ getExportValue: typeof getExportValue;
17
+ canExport: () => true;
18
+ type: "url-input";
19
+ name: string;
20
+ makeUnit: ({ expression }?: {
21
+ expression?: UnitExpression;
22
+ }) => ExpressionFieldUnit;
23
+ };
24
+ //#endregion
@@ -1,5 +1,24 @@
1
- import { FieldUnit, UnitDataDefinition } from "../units/types.js";
1
+ import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
2
+ import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
3
+ import { getExportValue } from "../unit-utils/get-export-value.js";
4
+ import { getFieldLabel } from "../unit-utils/get-field-label.js";
5
+ import { canEditField } from "../unit-utils/can-edit-field.js";
2
6
  //#region src/unit-definitions/url.d.ts
3
- declare const Url: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { Url };
7
+ export declare const Url: {
8
+ type: "url";
9
+ name: string;
10
+ makeUnit: ({ expression }?: {
11
+ expression?: UnitExpression;
12
+ }) => ExpressionFieldUnit;
13
+ getLabel: typeof getFieldLabel;
14
+ getQuerySelect: ({ typeObject, unit: { expression } }: {
15
+ typeObject: import("@fibery/schema").TypeObject;
16
+ unit: ExpressionFieldUnit;
17
+ schema: import("@fibery/schema").Schema;
18
+ }) => import("@fibery/schema").Select;
19
+ calculateErrors: typeof calculateUnitExpressionErrors;
20
+ canEdit: typeof canEditField;
21
+ getExportValue: typeof getExportValue;
22
+ canExport: () => true;
23
+ };
24
+ //#endregion
@@ -1,5 +1,14 @@
1
- import { ButtonUnit, UnitDataDefinition } from "../units/types.js";
1
+ import { ButtonUnit } from "../units/types.js";
2
2
  //#region src/unit-definitions/user-button.d.ts
3
- declare const UserButton: UnitDataDefinition<ButtonUnit>;
4
- //#endregion
5
- export { UserButton };
3
+ export declare const UserButton: {
4
+ type: "user-button";
5
+ name: string;
6
+ canEdit(): true;
7
+ getLabel(): string;
8
+ makeUnit(): ButtonUnit;
9
+ getQuerySelect(): {};
10
+ calculateErrors: () => never[];
11
+ getExportValue: () => null;
12
+ canExport: () => false;
13
+ };
14
+ //#endregion
@@ -1,5 +1,27 @@
1
- import { FieldUnit, UnitDataDefinition } from "../units/types.js";
1
+ import { NumberDisplaySettings } from "../field-utils/number.js";
2
+ import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
3
+ import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
4
+ import { canEditField } from "../unit-utils/can-edit-field.js";
2
5
  //#region src/unit-definitions/user-role-input.d.ts
3
- declare const UserRoleInput: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { UserRoleInput };
6
+ export declare const UserRoleInput: {
7
+ canEdit: typeof canEditField;
8
+ getLabel: () => string;
9
+ getQuerySelect({ typeObject, unit: { expression } }: {
10
+ typeObject: import("@fibery/schema").TypeObject;
11
+ unit: ExpressionFieldUnit;
12
+ }): import("@fibery/schema").Select;
13
+ calculateErrors: typeof calculateUnitExpressionErrors;
14
+ getExportValue: ({ object, unit }: {
15
+ typeObject: import("@fibery/schema").TypeObject;
16
+ unit: ExpressionFieldUnit;
17
+ object: import("@fibery/expression-utils/src/types").FiberyObject;
18
+ displaySettings: NumberDisplaySettings;
19
+ }) => string | null | undefined;
20
+ canExport: () => true;
21
+ type: "user-role-input";
22
+ name: string;
23
+ makeUnit: ({ expression }?: {
24
+ expression?: UnitExpression;
25
+ }) => ExpressionFieldUnit;
26
+ };
27
+ //#endregion
@@ -1,5 +1,28 @@
1
- import { FieldUnit, UnitDataDefinition } from "../units/types.js";
1
+ import { NumberDisplaySettings } from "../field-utils/number.js";
2
+ import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
3
+ import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
4
+ import { canEditField } from "../unit-utils/can-edit-field.js";
5
+ import { TypeObject } from "@fibery/schema";
2
6
  //#region src/unit-definitions/user-role.d.ts
3
- declare const UserRole: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { UserRole };
7
+ export declare const UserRole: {
8
+ type: "user-role";
9
+ name: string;
10
+ canEdit: typeof canEditField;
11
+ getLabel: () => string;
12
+ makeUnit: ({ expression }?: {
13
+ expression?: UnitExpression;
14
+ }) => ExpressionFieldUnit;
15
+ getQuerySelect({ typeObject, unit: { expression } }: {
16
+ typeObject: TypeObject;
17
+ unit: ExpressionFieldUnit;
18
+ }): import("@fibery/schema").Select;
19
+ calculateErrors: typeof calculateUnitExpressionErrors;
20
+ getExportValue: ({ object, unit }: {
21
+ typeObject: TypeObject;
22
+ unit: ExpressionFieldUnit;
23
+ object: import("@fibery/expression-utils/src/types").FiberyObject;
24
+ displaySettings: NumberDisplaySettings;
25
+ }) => string | null | undefined;
26
+ canExport: () => true;
27
+ };
28
+ //#endregion
@@ -1,7 +1,7 @@
1
- import { getUserRoleByKey } from "../field-utils/user-role.js";
2
1
  import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
3
- import { getExportValue } from "../unit-utils/get-export-value.js";
4
2
  import { canEditField } from "../unit-utils/can-edit-field.js";
3
+ import { getExportValue } from "../unit-utils/get-export-value.js";
4
+ import { getUserRoleByKey } from "../field-utils/user-role.js";
5
5
  import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
6
6
  //#region src/unit-definitions/user-role.ts
7
7
  const type = "user-role";
@@ -1,12 +1,11 @@
1
1
  import { TypeObject } from "@fibery/schema";
2
2
  import { FieldExpression } from "@fibery/expression-utils";
3
3
  //#region src/unit-utils/access.d.ts
4
- declare const accessCheckKey: string;
5
- declare const generateAccessCheckQueryExpression: ({ typeObject, contextPath }: {
4
+ export declare const accessCheckKey: string;
5
+ export declare const generateAccessCheckQueryExpression: ({ typeObject, contextPath }: {
6
6
  typeObject: TypeObject;
7
7
  contextPath?: FieldExpression;
8
8
  }) => {
9
- [accessCheckKey]: (string | (string | import("@fibery/expression-utils").MultiFieldAccess)[])[];
9
+ [accessCheckKey]: (string | (string | import("@fibery/schema").MultiFieldAccess)[])[];
10
10
  };
11
- //#endregion
12
- export { accessCheckKey, generateAccessCheckQueryExpression };
11
+ //#endregion
@@ -1,9 +1,8 @@
1
- import { FieldUnit } from "../units/types.js";
1
+ import { ExpressionFieldUnit } from "../units/types.js";
2
2
  import { TypeObject } from "@fibery/schema";
3
3
  //#region src/unit-utils/can-edit-field.d.ts
4
- declare const canEditField: ({ typeObject, unit: { expression } }: {
4
+ export declare const canEditField: ({ typeObject, unit: { expression } }: {
5
5
  typeObject: TypeObject;
6
- unit: FieldUnit;
6
+ unit: ExpressionFieldUnit;
7
7
  }) => boolean;
8
- //#endregion
9
- export { canEditField };
8
+ //#endregion