@fibery/views 25.1.4 → 26.0.0

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 (163) 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.d.ts +3 -4
  12. package/lib/field-utils/relation-view.d.ts +2 -3
  13. package/lib/field-utils/rich-text.d.ts +9 -10
  14. package/lib/field-utils/text.d.ts +9 -10
  15. package/lib/field-utils/user-active.d.ts +3 -4
  16. package/lib/field-utils/user-role.d.ts +3 -4
  17. package/lib/field-utils/workflow.d.ts +9 -10
  18. package/lib/filter.d.ts +29 -0
  19. package/lib/filter.js +0 -0
  20. package/lib/index.d.ts +57 -21
  21. package/lib/index.js +101 -94
  22. package/lib/meta-validation.d.ts +3 -4
  23. package/lib/private/board.d.ts +218 -14
  24. package/lib/private/board.js +138 -231
  25. package/lib/private/calendar.d.ts +213 -13
  26. package/lib/private/calendar.js +35 -81
  27. package/lib/private/feed.d.ts +211 -13
  28. package/lib/private/feed.js +34 -80
  29. package/lib/private/form.d.ts +52 -7
  30. package/lib/private/form.js +41 -48
  31. package/lib/private/map.d.ts +211 -13
  32. package/lib/private/map.js +34 -80
  33. package/lib/private/smart-folder.d.ts +118 -29
  34. package/lib/private/smart-folder.js +70 -148
  35. package/lib/private/timeline.d.ts +535 -31
  36. package/lib/private/timeline.js +158 -219
  37. package/lib/private/units.d.ts +3 -4
  38. package/lib/private/utils.d.ts +63 -57
  39. package/lib/private/utils.js +71 -49
  40. package/lib/refs.d.ts +19 -0
  41. package/lib/refs.js +0 -0
  42. package/lib/unit-definitions/avatar-collection.d.ts +29 -4
  43. package/lib/unit-definitions/avatar-collection.js +1 -1
  44. package/lib/unit-definitions/avatar-input.d.ts +49 -4
  45. package/lib/unit-definitions/avatar.d.ts +54 -4
  46. package/lib/unit-definitions/avatar.js +1 -1
  47. package/lib/unit-definitions/back-references-list.d.ts +31 -4
  48. package/lib/unit-definitions/back-references-list.js +1 -1
  49. package/lib/unit-definitions/bool-checkbox.d.ts +23 -4
  50. package/lib/unit-definitions/bool-checkbox.js +1 -1
  51. package/lib/unit-definitions/bool.d.ts +23 -4
  52. package/lib/unit-definitions/bool.js +1 -1
  53. package/lib/unit-definitions/collection-count.d.ts +31 -4
  54. package/lib/unit-definitions/color-input.d.ts +22 -4
  55. package/lib/unit-definitions/color-input.js +1 -1
  56. package/lib/unit-definitions/comments-list.d.ts +63 -4
  57. package/lib/unit-definitions/comments-list.js +1 -1
  58. package/lib/unit-definitions/date-range-combobox.d.ts +23 -4
  59. package/lib/unit-definitions/date-range-combobox.js +1 -1
  60. package/lib/unit-definitions/date-range.d.ts +23 -4
  61. package/lib/unit-definitions/date-range.js +1 -1
  62. package/lib/unit-definitions/date-time-combobox.d.ts +23 -4
  63. package/lib/unit-definitions/date-time-combobox.js +1 -1
  64. package/lib/unit-definitions/date.d.ts +23 -4
  65. package/lib/unit-definitions/date.js +1 -1
  66. package/lib/unit-definitions/email-input.d.ts +23 -4
  67. package/lib/unit-definitions/email.d.ts +23 -4
  68. package/lib/unit-definitions/emoji.d.ts +23 -4
  69. package/lib/unit-definitions/file-collection-count.d.ts +23 -4
  70. package/lib/unit-definitions/file-collection-count.js +1 -1
  71. package/lib/unit-definitions/file-compact-collection.d.ts +23 -4
  72. package/lib/unit-definitions/file-compact-collection.js +1 -1
  73. package/lib/unit-definitions/file-compact-reference.d.ts +27 -4
  74. package/lib/unit-definitions/file-reference.d.ts +23 -4
  75. package/lib/unit-definitions/file-reference.js +1 -1
  76. package/lib/unit-definitions/files-gallery.d.ts +23 -4
  77. package/lib/unit-definitions/files-gallery.js +1 -1
  78. package/lib/unit-definitions/files-l-list-item.d.ts +23 -4
  79. package/lib/unit-definitions/files-l-list-item.js +1 -1
  80. package/lib/unit-definitions/files-l-list.d.ts +23 -4
  81. package/lib/unit-definitions/files-l-list.js +1 -1
  82. package/lib/unit-definitions/files-list-item.d.ts +23 -4
  83. package/lib/unit-definitions/files-list-item.js +1 -1
  84. package/lib/unit-definitions/files-list.d.ts +23 -4
  85. package/lib/unit-definitions/files-list.js +1 -1
  86. package/lib/unit-definitions/geometry-preview.d.ts +23 -4
  87. package/lib/unit-definitions/icon-button.d.ts +28 -4
  88. package/lib/unit-definitions/icon-button.js +1 -1
  89. package/lib/unit-definitions/icon-input.d.ts +23 -4
  90. package/lib/unit-definitions/id.d.ts +32 -4
  91. package/lib/unit-definitions/index.js +2 -2
  92. package/lib/unit-definitions/json-input.d.ts +22 -4
  93. package/lib/unit-definitions/json-input.js +1 -1
  94. package/lib/unit-definitions/location-input.d.ts +23 -4
  95. package/lib/unit-definitions/location.d.ts +23 -4
  96. package/lib/unit-definitions/not-found.d.ts +6 -4
  97. package/lib/unit-definitions/number-input.d.ts +23 -4
  98. package/lib/unit-definitions/number-input.js +1 -1
  99. package/lib/unit-definitions/number.d.ts +27 -4
  100. package/lib/unit-definitions/phone-input.d.ts +23 -4
  101. package/lib/unit-definitions/phone.d.ts +23 -4
  102. package/lib/unit-definitions/progress-bar.d.ts +26 -4
  103. package/lib/unit-definitions/reference-collection-combobox.d.ts +19 -4
  104. package/lib/unit-definitions/reference-collection-combobox.js +1 -1
  105. package/lib/unit-definitions/reference-collection-list.d.ts +19 -4
  106. package/lib/unit-definitions/reference-collection-list.js +1 -1
  107. package/lib/unit-definitions/reference-collection-view.d.ts +19 -4
  108. package/lib/unit-definitions/reference-collection-view.js +1 -1
  109. package/lib/unit-definitions/reference-collection.d.ts +23 -4
  110. package/lib/unit-definitions/reference-collection.js +1 -1
  111. package/lib/unit-definitions/reference-combobox.d.ts +19 -4
  112. package/lib/unit-definitions/reference-combobox.js +1 -1
  113. package/lib/unit-definitions/reference-icon.d.ts +27 -4
  114. package/lib/unit-definitions/reference.d.ts +27 -4
  115. package/lib/unit-definitions/rich-text-document.d.ts +23 -4
  116. package/lib/unit-definitions/rich-text-document.js +1 -1
  117. package/lib/unit-definitions/rich-text-snippet.d.ts +25 -5
  118. package/lib/unit-definitions/single-location-preview.d.ts +23 -4
  119. package/lib/unit-definitions/text-input.d.ts +23 -4
  120. package/lib/unit-definitions/text-input.js +1 -1
  121. package/lib/unit-definitions/text.d.ts +23 -4
  122. package/lib/unit-definitions/text.js +1 -1
  123. package/lib/unit-definitions/title-input.d.ts +24 -4
  124. package/lib/unit-definitions/title.d.ts +27 -4
  125. package/lib/unit-definitions/type-badge-abbr.d.ts +15 -4
  126. package/lib/unit-definitions/type-badge.d.ts +15 -4
  127. package/lib/unit-definitions/type-icon.d.ts +15 -4
  128. package/lib/unit-definitions/url-input.d.ts +23 -4
  129. package/lib/unit-definitions/url.d.ts +23 -4
  130. package/lib/unit-definitions/user-button.d.ts +13 -4
  131. package/lib/unit-definitions/user-role-input.d.ts +26 -4
  132. package/lib/unit-definitions/user-role.d.ts +27 -4
  133. package/lib/unit-definitions/user-role.js +1 -1
  134. package/lib/unit-utils/access.d.ts +4 -5
  135. package/lib/unit-utils/can-edit-field.d.ts +4 -5
  136. package/lib/unit-utils/common.d.ts +16 -11
  137. package/lib/unit-utils/decimal.js +4 -4
  138. package/lib/unit-utils/dynamic-keys.d.ts +8 -9
  139. package/lib/unit-utils/enums.d.ts +4 -5
  140. package/lib/unit-utils/formatters.d.ts +15 -16
  141. package/lib/unit-utils/get-export-value.d.ts +18 -19
  142. package/lib/unit-utils/get-field-label.d.ts +4 -5
  143. package/lib/unit-utils/get-unmatched-unit-label.d.ts +2 -3
  144. package/lib/unit-utils/wrap-normalized-in-expression.d.ts +2 -3
  145. package/lib/units/board.d.ts +22 -25
  146. package/lib/units/board.js +2 -1
  147. package/lib/units/canvas/all-units-data-definitions.js +1 -1
  148. package/lib/units/canvas/index.d.ts +19 -24
  149. package/lib/units/canvas/type-badge-abbr.d.ts +13 -35
  150. package/lib/units/canvas/type-badge.d.ts +13 -35
  151. package/lib/units/default.d.ts +21 -22
  152. package/lib/units/default.js +2 -1
  153. package/lib/units/gallery.d.ts +5 -3
  154. package/lib/units/gantt.d.ts +23 -24
  155. package/lib/units/gantt.js +3 -2
  156. package/lib/units/get-unit-definitions-for-view-type.d.ts +4 -4
  157. package/lib/units/grid.d.ts +14 -25
  158. package/lib/units/grid.js +5 -4
  159. package/lib/units/list.d.ts +17 -26
  160. package/lib/units/list.js +2 -1
  161. package/lib/units/make-factory.d.ts +25 -27
  162. package/lib/units/types.d.ts +19 -13
  163. package/package.json +10 -10
@@ -1,5 +1,64 @@
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/comments-list.d.ts
3
- declare const CommentsList: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { CommentsList };
7
+ export declare const CommentsList: {
8
+ type: "comments-list";
9
+ name: string;
10
+ canEdit: typeof canEditField;
11
+ makeUnit: ({ expression }?: {
12
+ expression?: UnitExpression;
13
+ }) => ExpressionFieldUnit;
14
+ getLabel: typeof getFieldLabel;
15
+ getQuerySelect: ({ typeObject, unit }: {
16
+ typeObject: import("@fibery/schema").TypeObject;
17
+ unit: ExpressionFieldUnit;
18
+ schema: import("@fibery/schema").Schema;
19
+ }) => {
20
+ [x: string]: {
21
+ "q/from": import("@fibery/schema").FieldName[];
22
+ "q/select": {
23
+ "fibery/id": "fibery/id";
24
+ "fibery/public-id": "fibery/public-id";
25
+ "fibery/creation-date": string;
26
+ "comment/document-secret": string;
27
+ "comments/parent": {
28
+ "fibery/id": string[];
29
+ };
30
+ "fibery/created-by": {
31
+ [x: string]: (string | string[])[] | {
32
+ "q/from": string[];
33
+ "q/limit": string;
34
+ "q/select": {
35
+ "fibery/id": string[];
36
+ "fibery/name": string[];
37
+ "fibery/content-type": string[];
38
+ "fibery/secret": string[];
39
+ };
40
+ };
41
+ "fibery/id": string[];
42
+ "user/email": string[];
43
+ "user/name": string[];
44
+ "avatar/avatars": {
45
+ "q/from": string[];
46
+ "q/limit": string;
47
+ "q/select": {
48
+ "fibery/id": string[];
49
+ "fibery/name": string[];
50
+ "fibery/content-type": string[];
51
+ "fibery/secret": string[];
52
+ };
53
+ };
54
+ };
55
+ };
56
+ "q/order-by": import("@fibery/schema").OrderBy | undefined;
57
+ "q/limit": string;
58
+ };
59
+ };
60
+ calculateErrors: typeof calculateUnitExpressionErrors;
61
+ getExportValue: typeof getExportValue;
62
+ canExport: () => true;
63
+ };
64
+ //#endregion
@@ -1,8 +1,8 @@
1
1
  import { getQuerySelect } from "../field-utils/comments.js";
2
2
  import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
3
- import { canEditField } from "../unit-utils/can-edit-field.js";
4
3
  import { getExportValue } from "../unit-utils/get-export-value.js";
5
4
  import { getFieldLabel } from "../unit-utils/get-field-label.js";
5
+ import { canEditField } from "../unit-utils/can-edit-field.js";
6
6
  import { getFieldObjectByFieldExpression } from "@fibery/expression-utils/src/utils";
7
7
  //#region src/unit-definitions/comments-list.ts
8
8
  const type = "comments-list";
@@ -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 { getDateRangeExportValue } 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/date-range-combobox.d.ts
3
- declare const DateRangeCombobox: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { DateRangeCombobox };
7
+ export declare const DateRangeCombobox: {
8
+ type: "date-range-combobox";
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 getDateRangeExportValue;
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";
3
2
  import { getDateRangeExportValue } from "../unit-utils/get-export-value.js";
4
3
  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/date-range-combobox.ts
7
7
  const type = "date-range-combobox";
@@ -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 { getDateRangeExportValue } 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/date-range.d.ts
3
- declare const DateRange: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { DateRange };
7
+ export declare const DateRange: {
8
+ type: "date-range";
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 getDateRangeExportValue;
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";
3
2
  import { getDateRangeExportValue } from "../unit-utils/get-export-value.js";
4
3
  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/date-range.ts
7
7
  const type = "date-range";
@@ -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/date-time-combobox.d.ts
3
- declare const DateTimeCombobox: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { DateTimeCombobox };
7
+ export declare const DateTimeCombobox: {
8
+ type: "date-time-combobox";
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";
3
2
  import { getExportValue } from "../unit-utils/get-export-value.js";
4
3
  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/date-time-combobox.ts
7
7
  const type = "date-time-combobox";
@@ -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/date.d.ts
3
- declare const Date: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { Date };
7
+ export declare const Date: {
8
+ type: "date";
9
+ name: string;
10
+ canEdit: typeof canEditField;
11
+ getLabel: typeof getFieldLabel;
12
+ makeUnit: ({ expression }?: {
13
+ expression?: UnitExpression;
14
+ }) => ExpressionFieldUnit;
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";
3
2
  import { getExportValue } from "../unit-utils/get-export-value.js";
4
3
  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/date.ts
7
7
  const type = "date";
@@ -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/email-input.d.ts
3
- declare const EmailInput: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { EmailInput };
7
+ export declare const EmailInput: {
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: "email-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/email.d.ts
3
- declare const Email: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { Email };
7
+ export declare const Email: {
8
+ type: "email";
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/emoji.d.ts
3
- declare const Emoji: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { Emoji };
7
+ export declare const Emoji: {
8
+ type: "emoji";
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/file-collection-count.d.ts
3
- declare const FileCollectionCount: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { FileCollectionCount };
7
+ export declare const FileCollectionCount: {
8
+ type: "file-collection-count";
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: { expression } }: {
17
+ typeObject: import("@fibery/schema").TypeObject;
18
+ unit: ExpressionFieldUnit;
19
+ schema: import("@fibery/schema").Schema;
20
+ }): import("@fibery/schema").Select;
21
+ getExportValue: typeof getExportValue;
22
+ canExport: () => true;
23
+ };
24
+ //#endregion
@@ -1,8 +1,8 @@
1
1
  import { getFilesSelect } from "../field-utils/file.js";
2
2
  import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
3
- import { canEditField } from "../unit-utils/can-edit-field.js";
4
3
  import { getExportValue } from "../unit-utils/get-export-value.js";
5
4
  import { getFieldLabel } from "../unit-utils/get-field-label.js";
5
+ import { canEditField } from "../unit-utils/can-edit-field.js";
6
6
  import { wrapNormalizedInExpression } from "../unit-utils/wrap-normalized-in-expression.js";
7
7
  import { getFieldObjectsByFieldExpression } from "@fibery/expression-utils/src/utils";
8
8
  import { denormalizeSelect, normalizeSelect } from "@fibery/query-utils/src/select";
@@ -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/file-compact-collection.d.ts
3
- declare const FileCompactCollection: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { FileCompactCollection };
7
+ export declare const FileCompactCollection: {
8
+ type: "file-compact-collection";
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: { expression } }: {
17
+ typeObject: import("@fibery/schema").TypeObject;
18
+ unit: ExpressionFieldUnit;
19
+ schema: import("@fibery/schema").Schema;
20
+ }): import("@fibery/schema").Select;
21
+ getExportValue: typeof getExportValue;
22
+ canExport: () => true;
23
+ };
24
+ //#endregion
@@ -1,8 +1,8 @@
1
1
  import { getFilesSelect } from "../field-utils/file.js";
2
2
  import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
3
- import { canEditField } from "../unit-utils/can-edit-field.js";
4
3
  import { getExportValue } from "../unit-utils/get-export-value.js";
5
4
  import { getFieldLabel } from "../unit-utils/get-field-label.js";
5
+ import { canEditField } from "../unit-utils/can-edit-field.js";
6
6
  import { wrapNormalizedInExpression } from "../unit-utils/wrap-normalized-in-expression.js";
7
7
  import { getFieldObjectsByFieldExpression } from "@fibery/expression-utils/src/utils";
8
8
  import { denormalizeSelect, normalizeSelect } from "@fibery/query-utils/src/select";
@@ -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/file-compact-reference.d.ts
3
- declare const FileCompactReference: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { FileCompactReference };
5
+ export declare const FileCompactReference: {
6
+ type: "file-compact-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,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/file-reference.d.ts
3
- declare const FileReference: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { FileReference };
7
+ export declare const FileReference: {
8
+ type: "file-reference";
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: { expression } }: {
17
+ typeObject: import("@fibery/schema").TypeObject;
18
+ unit: ExpressionFieldUnit;
19
+ schema: import("@fibery/schema").Schema;
20
+ }): import("@fibery/schema").Select;
21
+ getExportValue: typeof getExportValue;
22
+ canExport: () => true;
23
+ };
24
+ //#endregion
@@ -1,8 +1,8 @@
1
1
  import { getFilesSelect } from "../field-utils/file.js";
2
2
  import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
3
- import { canEditField } from "../unit-utils/can-edit-field.js";
4
3
  import { getExportValue } from "../unit-utils/get-export-value.js";
5
4
  import { getFieldLabel } from "../unit-utils/get-field-label.js";
5
+ import { canEditField } from "../unit-utils/can-edit-field.js";
6
6
  import { wrapNormalizedInExpression } from "../unit-utils/wrap-normalized-in-expression.js";
7
7
  import { getFieldObjectsByFieldExpression } from "@fibery/expression-utils/src/utils";
8
8
  import { denormalizeSelect, normalizeSelect } from "@fibery/query-utils/src/select";
@@ -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/files-gallery.d.ts
3
- declare const FilesGallery: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { FilesGallery };
7
+ export declare const FilesGallery: {
8
+ type: "files-gallery";
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: { expression } }: {
17
+ typeObject: import("@fibery/schema").TypeObject;
18
+ unit: ExpressionFieldUnit;
19
+ schema: import("@fibery/schema").Schema;
20
+ }): import("@fibery/schema").Select;
21
+ getExportValue: typeof getExportValue;
22
+ canExport: () => true;
23
+ };
24
+ //#endregion
@@ -1,8 +1,8 @@
1
1
  import { getFilesSelect } from "../field-utils/file.js";
2
2
  import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
3
- import { canEditField } from "../unit-utils/can-edit-field.js";
4
3
  import { getExportValue } from "../unit-utils/get-export-value.js";
5
4
  import { getFieldLabel } from "../unit-utils/get-field-label.js";
5
+ import { canEditField } from "../unit-utils/can-edit-field.js";
6
6
  import { wrapNormalizedInExpression } from "../unit-utils/wrap-normalized-in-expression.js";
7
7
  import { getFieldObjectsByFieldExpression } from "@fibery/expression-utils/src/utils";
8
8
  import { denormalizeSelect, normalizeSelect } from "@fibery/query-utils/src/select";
@@ -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/files-l-list-item.d.ts
3
- declare const FileLListItem: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { FileLListItem };
7
+ export declare const FileLListItem: {
8
+ type: "files-l-list-item";
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: { expression } }: {
17
+ typeObject: import("@fibery/schema").TypeObject;
18
+ unit: ExpressionFieldUnit;
19
+ schema: import("@fibery/schema").Schema;
20
+ }): import("@fibery/schema").Select;
21
+ getExportValue: typeof getExportValue;
22
+ canExport: () => true;
23
+ };
24
+ //#endregion
@@ -1,8 +1,8 @@
1
1
  import { getFilesSelect } from "../field-utils/file.js";
2
2
  import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
3
- import { canEditField } from "../unit-utils/can-edit-field.js";
4
3
  import { getExportValue } from "../unit-utils/get-export-value.js";
5
4
  import { getFieldLabel } from "../unit-utils/get-field-label.js";
5
+ import { canEditField } from "../unit-utils/can-edit-field.js";
6
6
  import { wrapNormalizedInExpression } from "../unit-utils/wrap-normalized-in-expression.js";
7
7
  import { getFieldObjectsByFieldExpression } from "@fibery/expression-utils/src/utils";
8
8
  import { denormalizeSelect, normalizeSelect } from "@fibery/query-utils/src/select";
@@ -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/files-l-list.d.ts
3
- declare const FileLList: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { FileLList };
7
+ export declare const FileLList: {
8
+ type: "files-l-list";
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: { expression } }: {
17
+ typeObject: import("@fibery/schema").TypeObject;
18
+ unit: ExpressionFieldUnit;
19
+ schema: import("@fibery/schema").Schema;
20
+ }): import("@fibery/schema").Select;
21
+ getExportValue: typeof getExportValue;
22
+ canExport: () => true;
23
+ };
24
+ //#endregion
@@ -1,8 +1,8 @@
1
1
  import { getFilesSelect } from "../field-utils/file.js";
2
2
  import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
3
- import { canEditField } from "../unit-utils/can-edit-field.js";
4
3
  import { getExportValue } from "../unit-utils/get-export-value.js";
5
4
  import { getFieldLabel } from "../unit-utils/get-field-label.js";
5
+ import { canEditField } from "../unit-utils/can-edit-field.js";
6
6
  import { wrapNormalizedInExpression } from "../unit-utils/wrap-normalized-in-expression.js";
7
7
  import { getFieldObjectsByFieldExpression } from "@fibery/expression-utils/src/utils";
8
8
  import { denormalizeSelect, normalizeSelect } from "@fibery/query-utils/src/select";
@@ -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/files-list-item.d.ts
3
- declare const FileListItem: UnitDataDefinition<FieldUnit>;
4
- //#endregion
5
- export { FileListItem };
7
+ export declare const FileListItem: {
8
+ type: "files-list-item";
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: { expression } }: {
17
+ typeObject: import("@fibery/schema").TypeObject;
18
+ unit: ExpressionFieldUnit;
19
+ schema: import("@fibery/schema").Schema;
20
+ }): import("@fibery/schema").Select;
21
+ getExportValue: typeof getExportValue;
22
+ canExport: () => true;
23
+ };
24
+ //#endregion