@fibery/views 25.1.5 → 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.
- package/lib/errors.d.ts +2 -3
- package/lib/field-utils/avatar.d.ts +8 -9
- package/lib/field-utils/back-references.d.ts +4 -5
- package/lib/field-utils/comments.d.ts +5 -6
- package/lib/field-utils/date-time.d.ts +7 -8
- package/lib/field-utils/enum-value.d.ts +6 -7
- package/lib/field-utils/file.d.ts +3 -4
- package/lib/field-utils/icon.d.ts +6 -7
- package/lib/field-utils/number.d.ts +11 -12
- package/lib/field-utils/reference-collection.d.ts +6 -7
- package/lib/field-utils/reference.d.ts +3 -4
- package/lib/field-utils/relation-view.d.ts +2 -3
- package/lib/field-utils/rich-text.d.ts +9 -10
- package/lib/field-utils/text.d.ts +9 -10
- package/lib/field-utils/user-active.d.ts +3 -4
- package/lib/field-utils/user-role.d.ts +3 -4
- package/lib/field-utils/workflow.d.ts +9 -10
- package/lib/filter.d.ts +29 -0
- package/lib/filter.js +0 -0
- package/lib/index.d.ts +57 -21
- package/lib/index.js +101 -94
- package/lib/meta-validation.d.ts +3 -4
- package/lib/private/board.d.ts +218 -14
- package/lib/private/board.js +138 -231
- package/lib/private/calendar.d.ts +213 -13
- package/lib/private/calendar.js +35 -81
- package/lib/private/feed.d.ts +211 -13
- package/lib/private/feed.js +34 -80
- package/lib/private/form.d.ts +52 -7
- package/lib/private/form.js +41 -48
- package/lib/private/map.d.ts +211 -13
- package/lib/private/map.js +34 -80
- package/lib/private/smart-folder.d.ts +118 -29
- package/lib/private/smart-folder.js +70 -148
- package/lib/private/timeline.d.ts +535 -31
- package/lib/private/timeline.js +158 -219
- package/lib/private/units.d.ts +3 -4
- package/lib/private/utils.d.ts +63 -57
- package/lib/private/utils.js +71 -49
- package/lib/refs.d.ts +19 -0
- package/lib/refs.js +0 -0
- package/lib/unit-definitions/avatar-collection.d.ts +29 -4
- package/lib/unit-definitions/avatar-collection.js +1 -1
- package/lib/unit-definitions/avatar-input.d.ts +49 -4
- package/lib/unit-definitions/avatar.d.ts +54 -4
- package/lib/unit-definitions/avatar.js +1 -1
- package/lib/unit-definitions/back-references-list.d.ts +31 -4
- package/lib/unit-definitions/bool-checkbox.d.ts +23 -4
- package/lib/unit-definitions/bool.d.ts +23 -4
- package/lib/unit-definitions/collection-count.d.ts +31 -4
- package/lib/unit-definitions/color-input.d.ts +22 -4
- package/lib/unit-definitions/comments-list.d.ts +63 -4
- package/lib/unit-definitions/date-range-combobox.d.ts +23 -4
- package/lib/unit-definitions/date-range.d.ts +23 -4
- package/lib/unit-definitions/date-time-combobox.d.ts +23 -4
- package/lib/unit-definitions/date.d.ts +23 -4
- package/lib/unit-definitions/email-input.d.ts +23 -4
- package/lib/unit-definitions/email.d.ts +23 -4
- package/lib/unit-definitions/emoji.d.ts +23 -4
- package/lib/unit-definitions/file-collection-count.d.ts +23 -4
- package/lib/unit-definitions/file-compact-collection.d.ts +23 -4
- package/lib/unit-definitions/file-compact-reference.d.ts +27 -4
- package/lib/unit-definitions/file-reference.d.ts +23 -4
- package/lib/unit-definitions/files-gallery.d.ts +23 -4
- package/lib/unit-definitions/files-l-list-item.d.ts +23 -4
- package/lib/unit-definitions/files-l-list.d.ts +23 -4
- package/lib/unit-definitions/files-list-item.d.ts +23 -4
- package/lib/unit-definitions/files-list.d.ts +23 -4
- package/lib/unit-definitions/geometry-preview.d.ts +23 -4
- package/lib/unit-definitions/icon-button.d.ts +28 -4
- package/lib/unit-definitions/icon-input.d.ts +23 -4
- package/lib/unit-definitions/id.d.ts +32 -4
- package/lib/unit-definitions/index.js +2 -2
- package/lib/unit-definitions/json-input.d.ts +22 -4
- package/lib/unit-definitions/location-input.d.ts +23 -4
- package/lib/unit-definitions/location.d.ts +23 -4
- package/lib/unit-definitions/not-found.d.ts +6 -4
- package/lib/unit-definitions/number-input.d.ts +23 -4
- package/lib/unit-definitions/number.d.ts +27 -4
- package/lib/unit-definitions/phone-input.d.ts +23 -4
- package/lib/unit-definitions/phone.d.ts +23 -4
- package/lib/unit-definitions/progress-bar.d.ts +26 -4
- package/lib/unit-definitions/reference-collection-combobox.d.ts +19 -4
- package/lib/unit-definitions/reference-collection-list.d.ts +19 -4
- package/lib/unit-definitions/reference-collection-view.d.ts +19 -4
- package/lib/unit-definitions/reference-collection.d.ts +23 -4
- package/lib/unit-definitions/reference-combobox.d.ts +19 -4
- package/lib/unit-definitions/reference-icon.d.ts +27 -4
- package/lib/unit-definitions/reference.d.ts +27 -4
- package/lib/unit-definitions/rich-text-document.d.ts +23 -4
- package/lib/unit-definitions/rich-text-snippet.d.ts +25 -5
- package/lib/unit-definitions/single-location-preview.d.ts +23 -4
- package/lib/unit-definitions/text-input.d.ts +23 -4
- package/lib/unit-definitions/text.d.ts +23 -4
- package/lib/unit-definitions/title-input.d.ts +24 -4
- package/lib/unit-definitions/title.d.ts +27 -4
- package/lib/unit-definitions/type-badge-abbr.d.ts +15 -4
- package/lib/unit-definitions/type-badge.d.ts +15 -4
- package/lib/unit-definitions/type-icon.d.ts +15 -4
- package/lib/unit-definitions/url-input.d.ts +23 -4
- package/lib/unit-definitions/url.d.ts +23 -4
- package/lib/unit-definitions/user-button.d.ts +13 -4
- package/lib/unit-definitions/user-role-input.d.ts +26 -4
- package/lib/unit-definitions/user-role.d.ts +27 -4
- package/lib/unit-utils/access.d.ts +4 -5
- package/lib/unit-utils/can-edit-field.d.ts +4 -5
- package/lib/unit-utils/common.d.ts +16 -11
- package/lib/unit-utils/decimal.js +4 -4
- package/lib/unit-utils/dynamic-keys.d.ts +8 -9
- package/lib/unit-utils/enums.d.ts +4 -5
- package/lib/unit-utils/formatters.d.ts +15 -16
- package/lib/unit-utils/get-export-value.d.ts +18 -19
- package/lib/unit-utils/get-field-label.d.ts +4 -5
- package/lib/unit-utils/get-unmatched-unit-label.d.ts +2 -3
- package/lib/unit-utils/wrap-normalized-in-expression.d.ts +2 -3
- package/lib/units/board.d.ts +22 -25
- package/lib/units/board.js +2 -1
- package/lib/units/canvas/all-units-data-definitions.js +1 -1
- package/lib/units/canvas/index.d.ts +19 -24
- package/lib/units/canvas/type-badge-abbr.d.ts +13 -35
- package/lib/units/canvas/type-badge.d.ts +13 -35
- package/lib/units/default.d.ts +21 -22
- package/lib/units/default.js +2 -1
- package/lib/units/gallery.d.ts +5 -3
- package/lib/units/gantt.d.ts +23 -24
- package/lib/units/gantt.js +3 -2
- package/lib/units/get-unit-definitions-for-view-type.d.ts +4 -4
- package/lib/units/grid.d.ts +14 -25
- package/lib/units/grid.js +5 -4
- package/lib/units/list.d.ts +17 -26
- package/lib/units/list.js +2 -1
- package/lib/units/make-factory.d.ts +25 -27
- package/lib/units/types.d.ts +19 -13
- package/package.json +8 -8
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
import {
|
|
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
|
+
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/location-input.d.ts
|
|
3
|
-
declare const LocationInput:
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
export declare const LocationInput: {
|
|
8
|
+
type: "location-input";
|
|
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 getLocationExportValue;
|
|
22
|
+
canExport: () => true;
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
import {
|
|
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
|
+
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/location.d.ts
|
|
3
|
-
declare const Location:
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
export declare const Location: {
|
|
8
|
+
type: "location";
|
|
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 getLocationExportValue;
|
|
22
|
+
canExport: () => true;
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Unit, UnitDataDefinition } from "../units/types.js";
|
|
2
2
|
//#region src/unit-definitions/not-found.d.ts
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export type MissingUnitDefinition = Omit<UnitDataDefinition<Unit>, "type"> & {
|
|
4
|
+
type: "not-found";
|
|
5
|
+
};
|
|
6
|
+
export declare const NotFound: MissingUnitDefinition;
|
|
7
|
+
//#endregion
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
|
|
2
|
+
import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
|
|
3
|
+
import { getNumberExportValue } 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/number-input.d.ts
|
|
3
|
-
declare const NumberInput:
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
export declare const NumberInput: {
|
|
8
|
+
type: "number-input";
|
|
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 getNumberExportValue;
|
|
22
|
+
canExport: () => true;
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
@@ -1,5 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
|
|
2
|
+
import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
|
|
3
|
+
import { getNumberExportValue } from "../unit-utils/get-export-value.js";
|
|
2
4
|
//#region src/unit-definitions/number.d.ts
|
|
3
|
-
declare const Number:
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
export declare const Number: {
|
|
6
|
+
type: "number";
|
|
7
|
+
name: string;
|
|
8
|
+
makeUnit: ({ expression }?: {
|
|
9
|
+
expression?: UnitExpression;
|
|
10
|
+
}) => ExpressionFieldUnit;
|
|
11
|
+
getLabel({ typeObject, unit }: {
|
|
12
|
+
typeObject: import("@fibery/schema").TypeObject;
|
|
13
|
+
unit: ExpressionFieldUnit;
|
|
14
|
+
}): string;
|
|
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
|
+
canEdit({ typeObject, unit: { expression } }: {
|
|
22
|
+
typeObject: import("@fibery/schema").TypeObject;
|
|
23
|
+
unit: ExpressionFieldUnit;
|
|
24
|
+
}): boolean;
|
|
25
|
+
getExportValue: typeof getNumberExportValue;
|
|
26
|
+
canExport: () => true;
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
import {
|
|
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/phone-input.d.ts
|
|
3
|
-
declare const PhoneInput:
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
export declare const PhoneInput: {
|
|
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: "phone-input";
|
|
19
|
+
name: string;
|
|
20
|
+
makeUnit: ({ expression }?: {
|
|
21
|
+
expression?: UnitExpression;
|
|
22
|
+
}) => ExpressionFieldUnit;
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
import {
|
|
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/phone.d.ts
|
|
3
|
-
declare const Phone:
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
export declare const Phone: {
|
|
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: "phone";
|
|
19
|
+
name: string;
|
|
20
|
+
makeUnit: ({ expression }?: {
|
|
21
|
+
expression?: UnitExpression;
|
|
22
|
+
}) => ExpressionFieldUnit;
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
@@ -1,5 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
|
|
2
|
+
import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
|
|
3
|
+
import { getNumberExportValue } from "../unit-utils/get-export-value.js";
|
|
4
|
+
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
2
5
|
//#region src/unit-definitions/progress-bar.d.ts
|
|
3
|
-
declare const ProgressBar:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
export declare const ProgressBar: {
|
|
7
|
+
type: "progress-bar";
|
|
8
|
+
name: string;
|
|
9
|
+
makeUnit: ({ expression }?: {
|
|
10
|
+
expression?: UnitExpression;
|
|
11
|
+
}) => ExpressionFieldUnit;
|
|
12
|
+
getLabel({ typeObject, unit }: {
|
|
13
|
+
typeObject: import("@fibery/schema").TypeObject;
|
|
14
|
+
unit: ExpressionFieldUnit;
|
|
15
|
+
}): string;
|
|
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
|
+
calculateErrors: typeof calculateUnitExpressionErrors;
|
|
22
|
+
canEdit(): false;
|
|
23
|
+
getExportValue: typeof getNumberExportValue;
|
|
24
|
+
canExport: () => true;
|
|
25
|
+
getExportLabel: typeof getFieldLabel;
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
import {
|
|
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/reference-collection-combobox.d.ts
|
|
3
|
-
declare const ReferenceCollectionCombobox:
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
export declare const ReferenceCollectionCombobox: {
|
|
8
|
+
type: "reference-collection-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 getExportValue;
|
|
18
|
+
canExport: () => true;
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
|
|
2
|
+
import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
|
|
3
|
+
import { getReferenceCollectionExportValue } 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-collection-list.d.ts
|
|
3
|
-
declare const ReferenceCollectionList:
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
export declare const ReferenceCollectionList: {
|
|
8
|
+
type: "reference-collection-list";
|
|
9
|
+
name: string;
|
|
10
|
+
canEdit: typeof canEditField;
|
|
11
|
+
makeUnit: ({ expression }?: {
|
|
12
|
+
expression?: UnitExpression;
|
|
13
|
+
}) => ExpressionFieldUnit;
|
|
14
|
+
getLabel: typeof getFieldLabel;
|
|
15
|
+
getQuerySelect: () => {};
|
|
16
|
+
calculateErrors: typeof calculateUnitExpressionErrors;
|
|
17
|
+
getExportValue: typeof getReferenceCollectionExportValue;
|
|
18
|
+
canExport: () => true;
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
|
|
2
|
+
import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
|
|
3
|
+
import { getReferenceCollectionExportValue } 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-collection-view.d.ts
|
|
3
|
-
declare const ReferenceCollectionView:
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
export declare const ReferenceCollectionView: {
|
|
8
|
+
type: "reference-collection-view";
|
|
9
|
+
name: string;
|
|
10
|
+
canEdit: typeof canEditField;
|
|
11
|
+
makeUnit: ({ expression }?: {
|
|
12
|
+
expression?: UnitExpression;
|
|
13
|
+
}) => ExpressionFieldUnit;
|
|
14
|
+
getLabel: typeof getFieldLabel;
|
|
15
|
+
getQuerySelect: () => {};
|
|
16
|
+
calculateErrors: typeof calculateUnitExpressionErrors;
|
|
17
|
+
getExportValue: typeof getReferenceCollectionExportValue;
|
|
18
|
+
canExport: () => true;
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
|
|
2
|
+
import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
|
|
3
|
+
import { getReferenceCollectionExportValue } 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-collection.d.ts
|
|
3
|
-
declare const ReferenceCollection:
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
export declare const ReferenceCollection: {
|
|
8
|
+
type: "reference-collection";
|
|
9
|
+
name: string;
|
|
10
|
+
getLabel: typeof getFieldLabel;
|
|
11
|
+
makeUnit: ({ expression }?: {
|
|
12
|
+
expression?: UnitExpression;
|
|
13
|
+
}) => ExpressionFieldUnit;
|
|
14
|
+
getQuerySelect({ typeObject, unit: { expression } }: {
|
|
15
|
+
typeObject: import("@fibery/schema").TypeObject;
|
|
16
|
+
unit: ExpressionFieldUnit;
|
|
17
|
+
schema: import("@fibery/schema").Schema;
|
|
18
|
+
}): Record<string, unknown>;
|
|
19
|
+
calculateErrors: typeof calculateUnitExpressionErrors;
|
|
20
|
+
canEdit: typeof canEditField;
|
|
21
|
+
getExportValue: typeof getReferenceCollectionExportValue;
|
|
22
|
+
canExport: () => true;
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
4
|
-
|
|
5
|
-
|
|
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,5 +1,28 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
4
|
-
|
|
5
|
-
|
|
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 {
|
|
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:
|
|
4
|
-
|
|
5
|
-
|
|
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,5 +1,24 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
4
|
-
|
|
5
|
-
|
|
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,6 +1,26 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
5
|
-
|
|
6
|
-
|
|
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 {
|
|
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:
|
|
4
|
-
|
|
5
|
-
|
|
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 {
|
|
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:
|
|
4
|
-
|
|
5
|
-
|
|
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,5 +1,24 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
4
|
-
|
|
5
|
-
|
|
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,5 +1,25 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
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:
|
|
4
|
-
|
|
5
|
-
|
|
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
|