@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 { 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:
|
|
4
|
-
|
|
5
|
-
|
|
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,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/date-time-combobox.d.ts
|
|
3
|
-
declare const DateTimeCombobox:
|
|
4
|
-
|
|
5
|
-
|
|
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,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/date.d.ts
|
|
3
|
-
declare const Date:
|
|
4
|
-
|
|
5
|
-
|
|
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,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/email-input.d.ts
|
|
3
|
-
declare const EmailInput:
|
|
4
|
-
|
|
5
|
-
|
|
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 {
|
|
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:
|
|
4
|
-
|
|
5
|
-
|
|
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 {
|
|
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:
|
|
4
|
-
|
|
5
|
-
|
|
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 {
|
|
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:
|
|
4
|
-
|
|
5
|
-
|
|
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,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/file-compact-collection.d.ts
|
|
3
|
-
declare const FileCompactCollection:
|
|
4
|
-
|
|
5
|
-
|
|
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,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/file-compact-reference.d.ts
|
|
3
|
-
declare const FileCompactReference:
|
|
4
|
-
|
|
5
|
-
|
|
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 {
|
|
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:
|
|
4
|
-
|
|
5
|
-
|
|
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,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/files-gallery.d.ts
|
|
3
|
-
declare const FilesGallery:
|
|
4
|
-
|
|
5
|
-
|
|
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,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/files-l-list-item.d.ts
|
|
3
|
-
declare const FileLListItem:
|
|
4
|
-
|
|
5
|
-
|
|
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,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/files-l-list.d.ts
|
|
3
|
-
declare const FileLList:
|
|
4
|
-
|
|
5
|
-
|
|
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,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/files-list-item.d.ts
|
|
3
|
-
declare const FileListItem:
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
@@ -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/files-list.d.ts
|
|
3
|
-
declare const FileList:
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
export declare const FileList: {
|
|
8
|
+
type: "files-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,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/geometry-preview.d.ts
|
|
3
|
-
declare const GeometryPreview:
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
export declare const GeometryPreview: {
|
|
8
|
+
type: "geometry-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,29 @@
|
|
|
1
|
-
import { ButtonUnit,
|
|
1
|
+
import { ButtonUnit, ExpressionFieldUnit, UnitExpression } from "../units/types.js";
|
|
2
2
|
//#region src/unit-definitions/icon-button.d.ts
|
|
3
|
-
declare const IconButton:
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export declare const IconButton: {
|
|
4
|
+
type: "icon-button";
|
|
5
|
+
name: string;
|
|
6
|
+
makeUnit(params: {
|
|
7
|
+
expression: UnitExpression;
|
|
8
|
+
} | undefined): ExpressionFieldUnit;
|
|
9
|
+
canEdit({ typeObject, unit }: {
|
|
10
|
+
typeObject: import("@fibery/schema").TypeObject;
|
|
11
|
+
unit: ButtonUnit | ExpressionFieldUnit;
|
|
12
|
+
}): boolean;
|
|
13
|
+
getLabel({ typeObject, unit }: {
|
|
14
|
+
typeObject: import("@fibery/schema").TypeObject;
|
|
15
|
+
unit: ButtonUnit | ExpressionFieldUnit;
|
|
16
|
+
}): string;
|
|
17
|
+
getQuerySelect({ typeObject, unit }: {
|
|
18
|
+
typeObject: import("@fibery/schema").TypeObject;
|
|
19
|
+
unit: ButtonUnit | ExpressionFieldUnit;
|
|
20
|
+
schema: import("@fibery/schema").Schema;
|
|
21
|
+
}): import("@fibery/schema").Select;
|
|
22
|
+
calculateErrors({ typeObject, unit }: {
|
|
23
|
+
typeObject: import("@fibery/schema").TypeObject;
|
|
24
|
+
unit: ButtonUnit | ExpressionFieldUnit;
|
|
25
|
+
}): string[];
|
|
26
|
+
getExportValue: () => null;
|
|
27
|
+
canExport: () => false;
|
|
28
|
+
};
|
|
29
|
+
//#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/icon-input.d.ts
|
|
3
|
-
declare const IconInput:
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
export declare const IconInput: {
|
|
8
|
+
getLabel: typeof getFieldLabel;
|
|
9
|
+
getQuerySelect: ({ typeObject, unit: { expression } }: {
|
|
10
|
+
typeObject: import("@fibery/schema").TypeObject;
|
|
11
|
+
unit: ExpressionFieldUnit;
|
|
12
|
+
schema: import("@fibery/schema").Schema;
|
|
13
|
+
}) => import("@fibery/schema").Select;
|
|
14
|
+
calculateErrors: typeof calculateUnitExpressionErrors;
|
|
15
|
+
canEdit: typeof canEditField;
|
|
16
|
+
getExportValue: typeof getExportValue;
|
|
17
|
+
canExport: () => true;
|
|
18
|
+
type: "icon-input";
|
|
19
|
+
name: string;
|
|
20
|
+
makeUnit: ({ expression }?: {
|
|
21
|
+
expression?: UnitExpression;
|
|
22
|
+
}) => ExpressionFieldUnit;
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
@@ -1,5 +1,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NumberDisplaySettings } from "../field-utils/number.js";
|
|
2
|
+
import { FieldUnit } from "../units/types.js";
|
|
2
3
|
//#region src/unit-definitions/id.d.ts
|
|
3
|
-
declare const Id:
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
export declare const Id: {
|
|
5
|
+
type: "id";
|
|
6
|
+
name: string;
|
|
7
|
+
canEdit: () => false;
|
|
8
|
+
makeUnit(): {
|
|
9
|
+
type: "id";
|
|
10
|
+
kind: "field";
|
|
11
|
+
};
|
|
12
|
+
getLabel({ typeObject }: {
|
|
13
|
+
typeObject: import("@fibery/schema").TypeObject;
|
|
14
|
+
unit: FieldUnit;
|
|
15
|
+
}): string;
|
|
16
|
+
getQuerySelect({ typeObject }: {
|
|
17
|
+
typeObject: import("@fibery/schema").TypeObject;
|
|
18
|
+
unit: FieldUnit;
|
|
19
|
+
schema: import("@fibery/schema").Schema;
|
|
20
|
+
}): import("@fibery/schema").Select;
|
|
21
|
+
calculateErrors({ typeObject, unit }: {
|
|
22
|
+
typeObject: import("@fibery/schema").TypeObject;
|
|
23
|
+
unit: FieldUnit;
|
|
24
|
+
}): string[];
|
|
25
|
+
getExportValue: ({ object, typeObject }: {
|
|
26
|
+
typeObject: import("@fibery/schema").TypeObject;
|
|
27
|
+
unit: FieldUnit;
|
|
28
|
+
object: import("@fibery/expression-utils/src/types").FiberyObject;
|
|
29
|
+
displaySettings: NumberDisplaySettings;
|
|
30
|
+
}) => import("@fibery/schema").PublicId | null | undefined;
|
|
31
|
+
canExport: () => true;
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
@@ -3,11 +3,12 @@ import { AvatarCollection } from "./avatar-collection.js";
|
|
|
3
3
|
import { Avatar } from "./avatar.js";
|
|
4
4
|
import { Bool } from "./bool.js";
|
|
5
5
|
import { CollectionCount } from "./collection-count.js";
|
|
6
|
-
import { Date } from "./date.js";
|
|
7
6
|
import { DateRange } from "./date-range.js";
|
|
7
|
+
import { Date } from "./date.js";
|
|
8
8
|
import { Text } from "./text.js";
|
|
9
9
|
import { Email } from "./email.js";
|
|
10
10
|
import { Emoji } from "./emoji.js";
|
|
11
|
+
import { FileCollectionCount } from "./file-collection-count.js";
|
|
11
12
|
import { IconButton } from "./icon-button.js";
|
|
12
13
|
import { Id } from "./id.js";
|
|
13
14
|
import { Location } from "./location.js";
|
|
@@ -25,7 +26,6 @@ import { TypeIcon } from "./type-icon.js";
|
|
|
25
26
|
import { Url } from "./url.js";
|
|
26
27
|
import { UserButton } from "./user-button.js";
|
|
27
28
|
import { UserRole } from "./user-role.js";
|
|
28
|
-
import { FileCollectionCount } from "./file-collection-count.js";
|
|
29
29
|
//#region src/unit-definitions/index.ts
|
|
30
30
|
var unit_definitions_exports = /* @__PURE__ */ __exportAll({
|
|
31
31
|
Avatar: () => Avatar,
|
|
@@ -1,5 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExpressionFieldUnit, UnitExpression } from "../units/types.js";
|
|
2
|
+
import { calculateUnitExpressionErrors } from "../unit-utils/common.js";
|
|
3
|
+
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
5
|
//#region src/unit-definitions/json-input.d.ts
|
|
3
|
-
declare const JsonInput:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
export declare const JsonInput: {
|
|
7
|
+
type: "json-input";
|
|
8
|
+
name: string;
|
|
9
|
+
canEdit: typeof canEditField;
|
|
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
|
+
getExportValue: () => null;
|
|
21
|
+
canExport: () => false;
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|