@fibery/views 26.0.6 → 26.0.8
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 +1 -2
- package/lib/errors.d.ts +1 -3
- package/lib/errors.js +1 -2
- package/lib/field-utils/avatar.d.ts +1 -3
- package/lib/field-utils/avatar.js +1 -2
- package/lib/field-utils/back-references.d.ts +1 -3
- package/lib/field-utils/back-references.js +1 -2
- package/lib/field-utils/comments.d.ts +1 -3
- package/lib/field-utils/comments.js +1 -2
- package/lib/field-utils/date-time.d.ts +1 -3
- package/lib/field-utils/date-time.js +1 -2
- package/lib/field-utils/enum-value.d.ts +1 -3
- package/lib/field-utils/enum-value.js +1 -2
- package/lib/field-utils/file.d.ts +1 -3
- package/lib/field-utils/file.js +1 -2
- package/lib/field-utils/icon.d.ts +1 -3
- package/lib/field-utils/icon.js +1 -2
- package/lib/field-utils/number.d.ts +1 -3
- package/lib/field-utils/number.js +5 -8
- package/lib/field-utils/reference-collection.d.ts +1 -3
- package/lib/field-utils/reference-collection.js +7 -20
- package/lib/field-utils/reference.d.ts +1 -3
- package/lib/field-utils/reference.js +3 -4
- package/lib/field-utils/relation-view.d.ts +1 -3
- package/lib/field-utils/relation-view.js +1 -2
- package/lib/field-utils/rich-text.d.ts +1 -3
- package/lib/field-utils/rich-text.js +4 -15
- package/lib/field-utils/text.d.ts +1 -3
- package/lib/field-utils/text.js +1 -2
- package/lib/field-utils/user-active.d.ts +1 -3
- package/lib/field-utils/user-active.js +1 -2
- package/lib/field-utils/user-role.d.ts +1 -3
- package/lib/field-utils/user-role.js +1 -2
- package/lib/field-utils/workflow.d.ts +1 -3
- package/lib/field-utils/workflow.js +1 -2
- package/lib/filter.d.ts +1 -3
- package/lib/index.d.ts +2 -4
- package/lib/index.js +2 -3
- package/lib/meta-validation.d.ts +1 -3
- package/lib/meta-validation.js +5 -9
- package/lib/private/board.d.ts +1 -3
- package/lib/private/board.js +4 -5
- package/lib/private/calendar.d.ts +1 -3
- package/lib/private/calendar.js +2 -3
- package/lib/private/feed.d.ts +1 -3
- package/lib/private/feed.js +2 -3
- package/lib/private/form.d.ts +1 -3
- package/lib/private/form.js +1 -2
- package/lib/private/map.d.ts +1 -3
- package/lib/private/map.js +2 -3
- package/lib/private/smart-folder.d.ts +1 -3
- package/lib/private/smart-folder.js +5 -6
- package/lib/private/timeline.d.ts +1 -3
- package/lib/private/timeline.js +6 -7
- package/lib/private/units.d.ts +1 -3
- package/lib/private/units.js +17 -2
- package/lib/private/utils.d.ts +1 -3
- package/lib/private/utils.js +3 -5
- package/lib/refs.d.ts +1 -3
- package/lib/unit-definitions/avatar-collection.d.ts +1 -3
- package/lib/unit-definitions/avatar-collection.js +3 -15
- package/lib/unit-definitions/avatar-input.d.ts +2 -4
- package/lib/unit-definitions/avatar-input.js +1 -2
- package/lib/unit-definitions/avatar.d.ts +2 -4
- package/lib/unit-definitions/avatar.js +3 -14
- package/lib/unit-definitions/back-references-list.d.ts +3 -5
- package/lib/unit-definitions/back-references-list.js +2 -3
- package/lib/unit-definitions/bool-checkbox.d.ts +2 -4
- package/lib/unit-definitions/bool-checkbox.js +2 -3
- package/lib/unit-definitions/bool.d.ts +2 -4
- package/lib/unit-definitions/bool.js +2 -3
- package/lib/unit-definitions/collection-count.d.ts +2 -4
- package/lib/unit-definitions/collection-count.js +1 -2
- package/lib/unit-definitions/color-input.d.ts +2 -4
- package/lib/unit-definitions/color-input.js +2 -3
- package/lib/unit-definitions/comments-list.d.ts +2 -4
- package/lib/unit-definitions/comments-list.js +2 -3
- package/lib/unit-definitions/date-range-combobox.d.ts +2 -4
- package/lib/unit-definitions/date-range-combobox.js +2 -3
- package/lib/unit-definitions/date-range.d.ts +2 -4
- package/lib/unit-definitions/date-range.js +2 -3
- package/lib/unit-definitions/date-time-combobox.d.ts +2 -4
- package/lib/unit-definitions/date-time-combobox.js +2 -3
- package/lib/unit-definitions/date.d.ts +2 -4
- package/lib/unit-definitions/date.js +2 -3
- package/lib/unit-definitions/email-input.d.ts +4 -6
- package/lib/unit-definitions/email-input.js +1 -2
- package/lib/unit-definitions/email.d.ts +3 -5
- package/lib/unit-definitions/email.js +1 -2
- package/lib/unit-definitions/emoji.d.ts +3 -5
- package/lib/unit-definitions/emoji.js +1 -2
- package/lib/unit-definitions/file-collection-count.d.ts +2 -4
- package/lib/unit-definitions/file-collection-count.js +2 -3
- package/lib/unit-definitions/file-compact-collection.d.ts +2 -4
- package/lib/unit-definitions/file-compact-collection.js +2 -3
- package/lib/unit-definitions/file-compact-reference.d.ts +1 -3
- package/lib/unit-definitions/file-compact-reference.js +1 -2
- package/lib/unit-definitions/file-reference.d.ts +2 -4
- package/lib/unit-definitions/file-reference.js +2 -3
- package/lib/unit-definitions/files-gallery.d.ts +2 -4
- package/lib/unit-definitions/files-gallery.js +2 -3
- package/lib/unit-definitions/files-l-list-item.d.ts +2 -4
- package/lib/unit-definitions/files-l-list-item.js +2 -3
- package/lib/unit-definitions/files-l-list.d.ts +2 -4
- package/lib/unit-definitions/files-l-list.js +2 -3
- package/lib/unit-definitions/files-list-item.d.ts +2 -4
- package/lib/unit-definitions/files-list-item.js +2 -3
- package/lib/unit-definitions/files-list.d.ts +2 -4
- package/lib/unit-definitions/files-list.js +2 -3
- package/lib/unit-definitions/geometry-preview.d.ts +3 -5
- package/lib/unit-definitions/geometry-preview.js +1 -2
- package/lib/unit-definitions/icon-button.d.ts +2 -4
- package/lib/unit-definitions/icon-button.js +2 -3
- package/lib/unit-definitions/icon-input.d.ts +4 -6
- package/lib/unit-definitions/icon-input.js +1 -2
- package/lib/unit-definitions/id.d.ts +1 -3
- package/lib/unit-definitions/id.js +1 -2
- package/lib/unit-definitions/index.d.ts +4 -3
- package/lib/unit-definitions/index.js +6 -5
- package/lib/unit-definitions/json-input.d.ts +2 -4
- package/lib/unit-definitions/json-input.js +2 -3
- package/lib/unit-definitions/json-preview.d.ts +26 -0
- package/lib/unit-definitions/json-preview.js +31 -0
- package/lib/unit-definitions/location-input.d.ts +3 -5
- package/lib/unit-definitions/location-input.js +1 -2
- package/lib/unit-definitions/location.d.ts +3 -5
- package/lib/unit-definitions/location.js +1 -2
- package/lib/unit-definitions/not-found.d.ts +1 -3
- package/lib/unit-definitions/not-found.js +0 -1
- package/lib/unit-definitions/number-input.d.ts +2 -4
- package/lib/unit-definitions/number-input.js +2 -3
- package/lib/unit-definitions/number.d.ts +1 -3
- package/lib/unit-definitions/number.js +1 -2
- package/lib/unit-definitions/phone-input.d.ts +4 -6
- package/lib/unit-definitions/phone-input.js +1 -2
- package/lib/unit-definitions/phone.d.ts +4 -6
- package/lib/unit-definitions/phone.js +1 -2
- package/lib/unit-definitions/progress-bar.d.ts +1 -3
- package/lib/unit-definitions/progress-bar.js +1 -2
- package/lib/unit-definitions/reference-collection-combobox.d.ts +2 -4
- package/lib/unit-definitions/reference-collection-combobox.js +2 -3
- package/lib/unit-definitions/reference-collection-list.d.ts +2 -4
- package/lib/unit-definitions/reference-collection-list.js +2 -3
- package/lib/unit-definitions/reference-collection-view.d.ts +2 -4
- package/lib/unit-definitions/reference-collection-view.js +2 -3
- package/lib/unit-definitions/reference-collection.d.ts +2 -4
- package/lib/unit-definitions/reference-collection.js +2 -3
- package/lib/unit-definitions/reference-combobox.d.ts +2 -4
- package/lib/unit-definitions/reference-combobox.js +2 -3
- package/lib/unit-definitions/reference-icon.d.ts +3 -5
- package/lib/unit-definitions/reference-icon.js +1 -2
- package/lib/unit-definitions/reference.d.ts +1 -3
- package/lib/unit-definitions/reference.js +3 -14
- package/lib/unit-definitions/rich-text-document.d.ts +2 -4
- package/lib/unit-definitions/rich-text-document.js +2 -3
- package/lib/unit-definitions/rich-text-snippet.d.ts +1 -3
- package/lib/unit-definitions/rich-text-snippet.js +1 -2
- package/lib/unit-definitions/single-location-preview.d.ts +3 -5
- package/lib/unit-definitions/single-location-preview.js +1 -2
- package/lib/unit-definitions/text-input.d.ts +2 -4
- package/lib/unit-definitions/text-input.js +2 -3
- package/lib/unit-definitions/text.d.ts +2 -4
- package/lib/unit-definitions/text.js +2 -3
- package/lib/unit-definitions/title-input.d.ts +1 -3
- package/lib/unit-definitions/title-input.js +1 -2
- package/lib/unit-definitions/title.d.ts +2 -4
- package/lib/unit-definitions/title.js +1 -2
- package/lib/unit-definitions/type-badge-abbr.d.ts +1 -3
- package/lib/unit-definitions/type-badge-abbr.js +1 -2
- package/lib/unit-definitions/type-badge.d.ts +1 -3
- package/lib/unit-definitions/type-badge.js +1 -2
- package/lib/unit-definitions/type-icon.d.ts +1 -3
- package/lib/unit-definitions/type-icon.js +1 -2
- package/lib/unit-definitions/url-input.d.ts +4 -6
- package/lib/unit-definitions/url-input.js +1 -2
- package/lib/unit-definitions/url.d.ts +3 -5
- package/lib/unit-definitions/url.js +1 -2
- package/lib/unit-definitions/user-button.d.ts +1 -3
- package/lib/unit-definitions/user-button.js +1 -2
- package/lib/unit-definitions/user-role-input.d.ts +3 -5
- package/lib/unit-definitions/user-role-input.js +1 -2
- package/lib/unit-definitions/user-role.d.ts +3 -5
- package/lib/unit-definitions/user-role.js +2 -3
- package/lib/unit-utils/access.d.ts +1 -3
- package/lib/unit-utils/access.js +1 -2
- package/lib/unit-utils/can-edit-field.d.ts +1 -3
- package/lib/unit-utils/can-edit-field.js +1 -2
- package/lib/unit-utils/common.d.ts +2 -4
- package/lib/unit-utils/common.js +1 -2
- package/lib/unit-utils/decimal.d.ts +0 -2
- package/lib/unit-utils/decimal.js +1 -2
- package/lib/unit-utils/dynamic-keys.d.ts +1 -3
- package/lib/unit-utils/dynamic-keys.js +1 -2
- package/lib/unit-utils/enums.d.ts +1 -3
- package/lib/unit-utils/enums.js +2 -3
- package/lib/unit-utils/formatters.d.ts +1 -3
- package/lib/unit-utils/formatters.js +3 -5
- package/lib/unit-utils/get-export-value.d.ts +1 -3
- package/lib/unit-utils/get-export-value.js +1 -2
- package/lib/unit-utils/get-field-label.d.ts +1 -3
- package/lib/unit-utils/get-field-label.js +1 -2
- package/lib/unit-utils/get-unmatched-unit-label.d.ts +1 -3
- package/lib/unit-utils/get-unmatched-unit-label.js +2 -4
- package/lib/unit-utils/wrap-normalized-in-expression.d.ts +2 -3
- package/lib/unit-utils/wrap-normalized-in-expression.js +15 -14
- package/lib/units/board.d.ts +1 -3
- package/lib/units/board.js +1 -2
- package/lib/units/canvas/all-units-data-definitions.d.ts +5 -5
- package/lib/units/canvas/all-units-data-definitions.js +6 -7
- package/lib/units/canvas/index.d.ts +0 -1
- package/lib/units/canvas/index.js +1 -2
- package/lib/units/canvas/type-badge-abbr.d.ts +1 -3
- package/lib/units/canvas/type-badge-abbr.js +1 -2
- package/lib/units/canvas/type-badge.d.ts +1 -3
- package/lib/units/canvas/type-badge.js +1 -2
- package/lib/units/default.d.ts +0 -1
- package/lib/units/default.js +1 -2
- package/lib/units/gallery.d.ts +0 -2
- package/lib/units/gallery.js +1 -2
- package/lib/units/gantt.d.ts +1 -3
- package/lib/units/gantt.js +1 -2
- package/lib/units/get-unit-definitions-for-view-type.d.ts +1 -3
- package/lib/units/get-unit-definitions-for-view-type.js +2 -3
- package/lib/units/grid.d.ts +1 -3
- package/lib/units/grid.js +8 -7
- package/lib/units/list.d.ts +1 -3
- package/lib/units/list.js +1 -2
- package/lib/units/make-factory.d.ts +1 -3
- package/lib/units/make-factory.js +20 -28
- package/lib/units/types.d.ts +2 -4
- package/package.json +7 -9
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { getFilesSelect } from "../field-utils/file.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
3
4
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
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";
|
|
9
|
-
|
|
9
|
+
// src/unit-definitions/files-gallery.ts
|
|
10
10
|
const type = "files-gallery";
|
|
11
11
|
const FilesGallery = {
|
|
12
12
|
type,
|
|
@@ -31,5 +31,4 @@ const FilesGallery = {
|
|
|
31
31
|
getExportValue,
|
|
32
32
|
canExport: () => true
|
|
33
33
|
};
|
|
34
|
-
//#endregion
|
|
35
34
|
export { FilesGallery };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
|
|
3
4
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
6
|
-
//#region src/unit-definitions/files-l-list-item.d.ts
|
|
7
6
|
export declare const FileLListItem: {
|
|
8
7
|
type: "files-l-list-item";
|
|
9
8
|
name: string;
|
|
@@ -20,5 +19,4 @@ export declare const FileLListItem: {
|
|
|
20
19
|
}): import("@fibery/schema").Select;
|
|
21
20
|
getExportValue: typeof getExportValue;
|
|
22
21
|
canExport: () => true;
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
22
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { getFilesSelect } from "../field-utils/file.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
3
4
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
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";
|
|
9
|
-
|
|
9
|
+
// src/unit-definitions/files-l-list-item.ts
|
|
10
10
|
const type = "files-l-list-item";
|
|
11
11
|
const FileLListItem = {
|
|
12
12
|
type,
|
|
@@ -27,5 +27,4 @@ const FileLListItem = {
|
|
|
27
27
|
getExportValue,
|
|
28
28
|
canExport: () => true
|
|
29
29
|
};
|
|
30
|
-
//#endregion
|
|
31
30
|
export { FileLListItem };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
|
|
3
4
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
6
|
-
//#region src/unit-definitions/files-l-list.d.ts
|
|
7
6
|
export declare const FileLList: {
|
|
8
7
|
type: "files-l-list";
|
|
9
8
|
name: string;
|
|
@@ -20,5 +19,4 @@ export declare const FileLList: {
|
|
|
20
19
|
}): import("@fibery/schema").Select;
|
|
21
20
|
getExportValue: typeof getExportValue;
|
|
22
21
|
canExport: () => true;
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
22
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { getFilesSelect } from "../field-utils/file.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
3
4
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
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";
|
|
9
|
-
|
|
9
|
+
// src/unit-definitions/files-l-list.ts
|
|
10
10
|
const type = "files-l-list";
|
|
11
11
|
const FileLList = {
|
|
12
12
|
type,
|
|
@@ -31,5 +31,4 @@ const FileLList = {
|
|
|
31
31
|
getExportValue,
|
|
32
32
|
canExport: () => true
|
|
33
33
|
};
|
|
34
|
-
//#endregion
|
|
35
34
|
export { FileLList };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
|
|
3
4
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
6
|
-
//#region src/unit-definitions/files-list-item.d.ts
|
|
7
6
|
export declare const FileListItem: {
|
|
8
7
|
type: "files-list-item";
|
|
9
8
|
name: string;
|
|
@@ -20,5 +19,4 @@ export declare const FileListItem: {
|
|
|
20
19
|
}): import("@fibery/schema").Select;
|
|
21
20
|
getExportValue: typeof getExportValue;
|
|
22
21
|
canExport: () => true;
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
22
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { getFilesSelect } from "../field-utils/file.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
3
4
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
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";
|
|
9
|
-
|
|
9
|
+
// src/unit-definitions/files-list-item.ts
|
|
10
10
|
const type = "files-list-item";
|
|
11
11
|
const FileListItem = {
|
|
12
12
|
type,
|
|
@@ -27,5 +27,4 @@ const FileListItem = {
|
|
|
27
27
|
getExportValue,
|
|
28
28
|
canExport: () => true
|
|
29
29
|
};
|
|
30
|
-
//#endregion
|
|
31
30
|
export { FileListItem };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
|
|
3
4
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
6
|
-
//#region src/unit-definitions/files-list.d.ts
|
|
7
6
|
export declare const FileList: {
|
|
8
7
|
type: "files-list";
|
|
9
8
|
name: string;
|
|
@@ -20,5 +19,4 @@ export declare const FileList: {
|
|
|
20
19
|
}): import("@fibery/schema").Select;
|
|
21
20
|
getExportValue: typeof getExportValue;
|
|
22
21
|
canExport: () => true;
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
22
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { getFilesSelect } from "../field-utils/file.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
3
4
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
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";
|
|
9
|
-
|
|
9
|
+
// src/unit-definitions/files-list.ts
|
|
10
10
|
const type = "files-list";
|
|
11
11
|
const FileList = {
|
|
12
12
|
type,
|
|
@@ -31,5 +31,4 @@ const FileList = {
|
|
|
31
31
|
getExportValue,
|
|
32
32
|
canExport: () => true
|
|
33
33
|
};
|
|
34
|
-
//#endregion
|
|
35
34
|
export { FileList };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
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
2
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
3
|
+
import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
|
|
5
4
|
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
6
|
-
|
|
5
|
+
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
7
6
|
export declare const GeometryPreview: {
|
|
8
7
|
type: "geometry-preview";
|
|
9
8
|
name: string;
|
|
@@ -20,5 +19,4 @@ export declare const GeometryPreview: {
|
|
|
20
19
|
canEdit: typeof canEditField;
|
|
21
20
|
getExportValue: typeof getExportValue;
|
|
22
21
|
canExport: () => true;
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
22
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { makeUnitMethod } from "../unit-utils/common.js";
|
|
2
2
|
import { Text } from "./text.js";
|
|
3
|
-
|
|
3
|
+
// src/unit-definitions/geometry-preview.ts
|
|
4
4
|
const type = "geometry-preview";
|
|
5
5
|
const GeometryPreview = {
|
|
6
6
|
type,
|
|
@@ -13,5 +13,4 @@ const GeometryPreview = {
|
|
|
13
13
|
getExportValue: Text.getExportValue,
|
|
14
14
|
canExport: () => true
|
|
15
15
|
};
|
|
16
|
-
//#endregion
|
|
17
16
|
export { GeometryPreview };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { NumberDisplaySettings } from "../field-utils/number.js";
|
|
2
1
|
import { ButtonUnit, ExpressionFieldUnit, UnitExpression } from "../units/types.js";
|
|
3
|
-
|
|
2
|
+
import { NumberDisplaySettings } from "../field-utils/number.js";
|
|
4
3
|
export declare const IconButton: {
|
|
5
4
|
type: "icon-button";
|
|
6
5
|
name: string;
|
|
@@ -33,5 +32,4 @@ export declare const IconButton: {
|
|
|
33
32
|
canExport({ unit }: {
|
|
34
33
|
unit: ButtonUnit | ExpressionFieldUnit;
|
|
35
34
|
}): boolean;
|
|
36
|
-
};
|
|
37
|
-
//#endregion
|
|
35
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
1
2
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.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
|
+
// src/unit-definitions/icon-button.ts
|
|
7
7
|
const type = "icon-button";
|
|
8
8
|
const IconButton = {
|
|
9
9
|
type,
|
|
@@ -45,5 +45,4 @@ const IconButton = {
|
|
|
45
45
|
return unit.kind !== "user-button";
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
//#endregion
|
|
49
48
|
export { IconButton };
|
|
@@ -1,9 +1,8 @@
|
|
|
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
1
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
2
|
+
import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
|
|
5
3
|
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
6
|
-
|
|
4
|
+
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
5
|
+
import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
|
|
7
6
|
export declare const IconInput: {
|
|
8
7
|
getLabel: typeof getFieldLabel;
|
|
9
8
|
getQuerySelect: ({ typeObject, unit: { expression } }: {
|
|
@@ -20,5 +19,4 @@ export declare const IconInput: {
|
|
|
20
19
|
makeUnit: ({ expression }?: {
|
|
21
20
|
expression?: UnitExpression;
|
|
22
21
|
}) => ExpressionFieldUnit;
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
22
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { makeUnitMethod } from "../unit-utils/common.js";
|
|
2
2
|
import { Emoji } from "./emoji.js";
|
|
3
|
-
|
|
3
|
+
// src/unit-definitions/icon-input.ts
|
|
4
4
|
const type = "icon-input";
|
|
5
5
|
const IconInput = {
|
|
6
6
|
...Emoji,
|
|
@@ -8,5 +8,4 @@ const IconInput = {
|
|
|
8
8
|
name: "Input",
|
|
9
9
|
makeUnit: makeUnitMethod(type)
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
export { IconInput };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { NumberDisplaySettings } from "../field-utils/number.js";
|
|
2
2
|
import { FieldUnit } from "../units/types.js";
|
|
3
|
-
//#region src/unit-definitions/id.d.ts
|
|
4
3
|
export declare const Id: {
|
|
5
4
|
type: "id";
|
|
6
5
|
name: string;
|
|
@@ -29,5 +28,4 @@ export declare const Id: {
|
|
|
29
28
|
displaySettings: NumberDisplaySettings;
|
|
30
29
|
}) => import("@fibery/schema").PublicId | null | undefined;
|
|
31
30
|
canExport: () => true;
|
|
32
|
-
};
|
|
33
|
-
//#endregion
|
|
31
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toSelectMapClause } from "@fibery/query-utils/src/select";
|
|
2
|
-
|
|
2
|
+
// src/unit-definitions/id.ts
|
|
3
3
|
const type = "id";
|
|
4
4
|
const Id = {
|
|
5
5
|
type,
|
|
@@ -26,5 +26,4 @@ const Id = {
|
|
|
26
26
|
},
|
|
27
27
|
canExport: () => true
|
|
28
28
|
};
|
|
29
|
-
//#endregion
|
|
30
29
|
export { Id };
|
|
@@ -2,13 +2,13 @@ import { AvatarCollection } from "./avatar-collection.js";
|
|
|
2
2
|
import { Avatar } from "./avatar.js";
|
|
3
3
|
import { Bool } from "./bool.js";
|
|
4
4
|
import { CollectionCount } from "./collection-count.js";
|
|
5
|
-
import { DateRange } from "./date-range.js";
|
|
6
5
|
import { Date } from "./date.js";
|
|
6
|
+
import { DateRange } from "./date-range.js";
|
|
7
7
|
import { Email } from "./email.js";
|
|
8
8
|
import { Emoji } from "./emoji.js";
|
|
9
|
-
import { FileCollectionCount } from "./file-collection-count.js";
|
|
10
9
|
import { IconButton } from "./icon-button.js";
|
|
11
10
|
import { Id } from "./id.js";
|
|
11
|
+
import { JsonPreview } from "./json-preview.js";
|
|
12
12
|
import { Location } from "./location.js";
|
|
13
13
|
import { Number } from "./number.js";
|
|
14
14
|
import { Phone } from "./phone.js";
|
|
@@ -25,4 +25,5 @@ import { TypeIcon } from "./type-icon.js";
|
|
|
25
25
|
import { Url } from "./url.js";
|
|
26
26
|
import { UserButton } from "./user-button.js";
|
|
27
27
|
import { UserRole } from "./user-role.js";
|
|
28
|
-
|
|
28
|
+
import { FileCollectionCount } from "./file-collection-count.js";
|
|
29
|
+
export { Avatar, AvatarCollection, Bool, CollectionCount, Date, DateRange, Email, Emoji, FileCollectionCount, IconButton, Id, JsonPreview, Location, Number, Phone, ProgressBar, Reference, ReferenceCollection, ReferenceIcon, RichTextSnippet, Text, Title, TypeBadge, TypeBadgeAbbr, TypeIcon, Url, UserButton, UserRole };
|
|
@@ -5,19 +5,20 @@ import { Bool } from "./bool.js";
|
|
|
5
5
|
import { CollectionCount } from "./collection-count.js";
|
|
6
6
|
import { Date } from "./date.js";
|
|
7
7
|
import { DateRange } from "./date-range.js";
|
|
8
|
-
import { Text } from "./text.js";
|
|
9
8
|
import { Email } from "./email.js";
|
|
10
9
|
import { Emoji } from "./emoji.js";
|
|
11
10
|
import { IconButton } from "./icon-button.js";
|
|
12
11
|
import { Id } from "./id.js";
|
|
12
|
+
import { JsonPreview } from "./json-preview.js";
|
|
13
13
|
import { Location } from "./location.js";
|
|
14
14
|
import { Number } from "./number.js";
|
|
15
15
|
import { Phone } from "./phone.js";
|
|
16
16
|
import { ProgressBar } from "./progress-bar.js";
|
|
17
17
|
import { ReferenceCollection } from "./reference-collection.js";
|
|
18
|
-
import { Reference } from "./reference.js";
|
|
19
18
|
import { ReferenceIcon } from "./reference-icon.js";
|
|
19
|
+
import { Reference } from "./reference.js";
|
|
20
20
|
import { RichTextSnippet } from "./rich-text-snippet.js";
|
|
21
|
+
import { Text } from "./text.js";
|
|
21
22
|
import { Title } from "./title.js";
|
|
22
23
|
import { TypeBadgeAbbr } from "./type-badge-abbr.js";
|
|
23
24
|
import { TypeBadge } from "./type-badge.js";
|
|
@@ -26,7 +27,7 @@ import { Url } from "./url.js";
|
|
|
26
27
|
import { UserButton } from "./user-button.js";
|
|
27
28
|
import { UserRole } from "./user-role.js";
|
|
28
29
|
import { FileCollectionCount } from "./file-collection-count.js";
|
|
29
|
-
|
|
30
|
+
// src/unit-definitions/index.ts
|
|
30
31
|
var unit_definitions_exports = /* @__PURE__ */ __exportAll({
|
|
31
32
|
Avatar: () => Avatar,
|
|
32
33
|
AvatarCollection: () => AvatarCollection,
|
|
@@ -39,6 +40,7 @@ var unit_definitions_exports = /* @__PURE__ */ __exportAll({
|
|
|
39
40
|
FileCollectionCount: () => FileCollectionCount,
|
|
40
41
|
IconButton: () => IconButton,
|
|
41
42
|
Id: () => Id,
|
|
43
|
+
JsonPreview: () => JsonPreview,
|
|
42
44
|
Location: () => Location,
|
|
43
45
|
Number: () => Number,
|
|
44
46
|
Phone: () => Phone,
|
|
@@ -56,5 +58,4 @@ var unit_definitions_exports = /* @__PURE__ */ __exportAll({
|
|
|
56
58
|
UserButton: () => UserButton,
|
|
57
59
|
UserRole: () => UserRole
|
|
58
60
|
});
|
|
59
|
-
|
|
60
|
-
export { Avatar, AvatarCollection, Bool, CollectionCount, Date, DateRange, Email, Emoji, FileCollectionCount, IconButton, Id, Location, Number, Phone, ProgressBar, Reference, ReferenceCollection, ReferenceIcon, RichTextSnippet, Text, Title, TypeBadge, TypeBadgeAbbr, TypeIcon, Url, UserButton, UserRole, unit_definitions_exports };
|
|
61
|
+
export { Avatar, AvatarCollection, Bool, CollectionCount, Date, DateRange, Email, Emoji, FileCollectionCount, IconButton, Id, JsonPreview, Location, Number, Phone, ProgressBar, Reference, ReferenceCollection, ReferenceIcon, RichTextSnippet, Text, Title, TypeBadge, TypeBadgeAbbr, TypeIcon, Url, UserButton, UserRole, unit_definitions_exports };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
|
|
3
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
5
|
-
//#region src/unit-definitions/json-input.d.ts
|
|
6
5
|
export declare const JsonInput: {
|
|
7
6
|
type: "json-input";
|
|
8
7
|
name: string;
|
|
@@ -19,5 +18,4 @@ export declare const JsonInput: {
|
|
|
19
18
|
calculateErrors: typeof calculateUnitExpressionErrors;
|
|
20
19
|
getExportValue: () => null;
|
|
21
20
|
canExport: () => false;
|
|
22
|
-
};
|
|
23
|
-
//#endregion
|
|
21
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
1
2
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
3
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
3
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
4
4
|
import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
|
|
5
|
-
|
|
5
|
+
// src/unit-definitions/json-input.ts
|
|
6
6
|
const type = "json-input";
|
|
7
7
|
const JsonInput = {
|
|
8
8
|
type,
|
|
@@ -20,5 +20,4 @@ const JsonInput = {
|
|
|
20
20
|
getExportValue: () => null,
|
|
21
21
|
canExport: () => false
|
|
22
22
|
};
|
|
23
|
-
//#endregion
|
|
24
23
|
export { JsonInput };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
|
|
2
|
+
import { NumberDisplaySettings } from "../field-utils/number.js";
|
|
3
|
+
import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
|
|
4
|
+
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
|
+
export declare const JsonPreview: {
|
|
6
|
+
type: "json-preview";
|
|
7
|
+
name: string;
|
|
8
|
+
canEdit(): false;
|
|
9
|
+
makeUnit: ({ expression }?: {
|
|
10
|
+
expression?: UnitExpression;
|
|
11
|
+
}) => ExpressionFieldUnit;
|
|
12
|
+
getLabel: typeof getFieldLabel;
|
|
13
|
+
getQuerySelect({ typeObject, unit: { expression } }: {
|
|
14
|
+
typeObject: import("@fibery/schema").TypeObject;
|
|
15
|
+
unit: ExpressionFieldUnit;
|
|
16
|
+
schema: import("@fibery/schema").Schema;
|
|
17
|
+
}): import("@fibery/schema").Select;
|
|
18
|
+
calculateErrors: typeof calculateUnitExpressionErrors;
|
|
19
|
+
getExportValue: ({ object, unit }: {
|
|
20
|
+
typeObject: import("@fibery/schema").TypeObject;
|
|
21
|
+
unit: ExpressionFieldUnit;
|
|
22
|
+
object: import("@fibery/expression-utils/src/types").FiberyObject;
|
|
23
|
+
displaySettings: NumberDisplaySettings;
|
|
24
|
+
}) => string | null;
|
|
25
|
+
canExport: () => true;
|
|
26
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
3
|
+
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
|
+
import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
|
|
5
|
+
// src/unit-definitions/json-preview.ts
|
|
6
|
+
const type = "json-preview";
|
|
7
|
+
const JsonPreview = {
|
|
8
|
+
type,
|
|
9
|
+
name: "Preview",
|
|
10
|
+
canEdit() {
|
|
11
|
+
return false;
|
|
12
|
+
},
|
|
13
|
+
makeUnit: makeUnitMethod(type),
|
|
14
|
+
getLabel: getFieldLabel,
|
|
15
|
+
getQuerySelect({ typeObject, unit: { expression } }) {
|
|
16
|
+
return getQuerySelectForExpression({
|
|
17
|
+
typeObject,
|
|
18
|
+
expression
|
|
19
|
+
});
|
|
20
|
+
},
|
|
21
|
+
calculateErrors: calculateUnitExpressionErrors,
|
|
22
|
+
getExportValue: ({ object, unit }) => {
|
|
23
|
+
const value = getExportValue({
|
|
24
|
+
object,
|
|
25
|
+
unit
|
|
26
|
+
});
|
|
27
|
+
return value === null || value === void 0 ? null : JSON.stringify(value);
|
|
28
|
+
},
|
|
29
|
+
canExport: () => true
|
|
30
|
+
};
|
|
31
|
+
export { JsonPreview };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
|
|
2
|
-
import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
|
|
3
|
-
import { getLocationExportValue } from "../unit-utils/get-export-value.js";
|
|
4
2
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
3
|
+
import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
|
|
5
4
|
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
6
|
-
|
|
5
|
+
import { getLocationExportValue } from "../unit-utils/get-export-value.js";
|
|
7
6
|
export declare const LocationInput: {
|
|
8
7
|
type: "location-input";
|
|
9
8
|
name: string;
|
|
@@ -20,5 +19,4 @@ export declare const LocationInput: {
|
|
|
20
19
|
canEdit: typeof canEditField;
|
|
21
20
|
getExportValue: typeof getLocationExportValue;
|
|
22
21
|
canExport: () => true;
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
22
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { makeUnitMethod } from "../unit-utils/common.js";
|
|
2
2
|
import { getLocationExportValue } from "../unit-utils/get-export-value.js";
|
|
3
3
|
import { Text } from "./text.js";
|
|
4
|
-
|
|
4
|
+
// src/unit-definitions/location-input.ts
|
|
5
5
|
const type = "location-input";
|
|
6
6
|
const LocationInput = {
|
|
7
7
|
type,
|
|
@@ -14,5 +14,4 @@ const LocationInput = {
|
|
|
14
14
|
getExportValue: getLocationExportValue,
|
|
15
15
|
canExport: () => true
|
|
16
16
|
};
|
|
17
|
-
//#endregion
|
|
18
17
|
export { LocationInput };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
|
|
2
|
-
import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
|
|
3
|
-
import { getLocationExportValue } from "../unit-utils/get-export-value.js";
|
|
4
2
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
3
|
+
import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
|
|
5
4
|
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
6
|
-
|
|
5
|
+
import { getLocationExportValue } from "../unit-utils/get-export-value.js";
|
|
7
6
|
export declare const Location: {
|
|
8
7
|
type: "location";
|
|
9
8
|
name: string;
|
|
@@ -20,5 +19,4 @@ export declare const Location: {
|
|
|
20
19
|
canEdit: typeof canEditField;
|
|
21
20
|
getExportValue: typeof getLocationExportValue;
|
|
22
21
|
canExport: () => true;
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
22
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { makeUnitMethod } from "../unit-utils/common.js";
|
|
2
2
|
import { getLocationExportValue } from "../unit-utils/get-export-value.js";
|
|
3
3
|
import { Text } from "./text.js";
|
|
4
|
-
|
|
4
|
+
// src/unit-definitions/location.ts
|
|
5
5
|
const Location = {
|
|
6
6
|
type: "location",
|
|
7
7
|
name: "Address",
|
|
@@ -13,5 +13,4 @@ const Location = {
|
|
|
13
13
|
getExportValue: getLocationExportValue,
|
|
14
14
|
canExport: () => true
|
|
15
15
|
};
|
|
16
|
-
//#endregion
|
|
17
16
|
export { Location };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { Unit, UnitDataDefinition } from "../units/types.js";
|
|
2
|
-
//#region src/unit-definitions/not-found.d.ts
|
|
3
2
|
export type MissingUnitDefinition = Omit<UnitDataDefinition<Unit>, "type"> & {
|
|
4
3
|
type: "not-found";
|
|
5
4
|
};
|
|
6
|
-
export declare const NotFound: MissingUnitDefinition;
|
|
7
|
-
//#endregion
|
|
5
|
+
export declare const NotFound: MissingUnitDefinition;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
|
|
3
4
|
import { getNumberExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
6
|
-
//#region src/unit-definitions/number-input.d.ts
|
|
7
6
|
export declare const NumberInput: {
|
|
8
7
|
type: "number-input";
|
|
9
8
|
name: string;
|
|
@@ -20,5 +19,4 @@ export declare const NumberInput: {
|
|
|
20
19
|
canEdit: typeof canEditField;
|
|
21
20
|
getExportValue: typeof getNumberExportValue;
|
|
22
21
|
canExport: () => true;
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
22
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
1
2
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
3
|
import { getNumberExportValue } 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
|
+
// src/unit-definitions/number-input.tsx
|
|
7
7
|
const type = "number-input";
|
|
8
8
|
const NumberInput = {
|
|
9
9
|
type,
|
|
@@ -21,5 +21,4 @@ const NumberInput = {
|
|
|
21
21
|
getExportValue: getNumberExportValue,
|
|
22
22
|
canExport: () => true
|
|
23
23
|
};
|
|
24
|
-
//#endregion
|
|
25
24
|
export { NumberInput };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
|
|
2
2
|
import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
|
|
3
3
|
import { getNumberExportValue } from "../unit-utils/get-export-value.js";
|
|
4
|
-
//#region src/unit-definitions/number.d.ts
|
|
5
4
|
export declare const Number: {
|
|
6
5
|
type: "number";
|
|
7
6
|
name: string;
|
|
@@ -24,5 +23,4 @@ export declare const Number: {
|
|
|
24
23
|
}): boolean;
|
|
25
24
|
getExportValue: typeof getNumberExportValue;
|
|
26
25
|
canExport: () => true;
|
|
27
|
-
};
|
|
28
|
-
//#endregion
|
|
26
|
+
};
|
|
@@ -2,7 +2,7 @@ import { calculateUnitExpressionErrors, canEditFieldExpression, makeUnitMethod }
|
|
|
2
2
|
import { getNumberExportValue } from "../unit-utils/get-export-value.js";
|
|
3
3
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
4
|
import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
|
|
5
|
-
|
|
5
|
+
// src/unit-definitions/number.ts
|
|
6
6
|
const type = "number";
|
|
7
7
|
const Number = {
|
|
8
8
|
type,
|
|
@@ -27,5 +27,4 @@ const Number = {
|
|
|
27
27
|
getExportValue: getNumberExportValue,
|
|
28
28
|
canExport: () => true
|
|
29
29
|
};
|
|
30
|
-
//#endregion
|
|
31
30
|
export { Number };
|