@fibery/views 19.0.1 → 19.1.1
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/src/errors.d.ts +2 -0
- package/lib/src/errors.js +6 -0
- package/lib/src/field-utils/avatar.d.ts +1 -1
- package/lib/src/field-utils/avatar.js +1 -1
- package/lib/src/field-utils/back-references.d.ts +1 -1
- package/lib/src/field-utils/comments.d.ts +1 -1
- package/lib/src/field-utils/date-time.d.ts +5 -5
- package/lib/src/field-utils/date-time.js +1 -1
- package/lib/src/field-utils/enum-value.d.ts +1 -1
- package/lib/src/field-utils/file.d.ts +1 -1
- package/lib/src/field-utils/file.js +1 -1
- package/lib/src/field-utils/icon.d.ts +1 -1
- package/lib/src/field-utils/number.d.ts +1 -1
- package/lib/src/field-utils/reference-collection.d.ts +2 -2
- package/lib/src/field-utils/reference-collection.js +4 -4
- package/lib/src/field-utils/reference.d.ts +2 -2
- package/lib/src/field-utils/reference.js +4 -4
- package/lib/src/field-utils/relation-view.d.ts +1 -1
- package/lib/src/field-utils/rich-text.d.ts +2 -2
- package/lib/src/field-utils/rich-text.js +1 -1
- package/lib/src/field-utils/text.d.ts +1 -1
- package/lib/src/field-utils/user-active.d.ts +3 -3
- package/lib/src/field-utils/user-active.js +3 -8
- package/lib/src/field-utils/user-role.d.ts +1 -1
- package/lib/src/field-utils/workflow.d.ts +2 -2
- package/lib/src/field-utils/workflow.js +2 -5
- package/lib/src/index.d.ts +2 -0
- package/lib/src/index.js +6 -1
- package/lib/src/meta-validation.d.ts +10 -0
- package/lib/src/meta-validation.js +78 -0
- package/lib/src/private/board.d.ts +1 -1
- package/lib/src/private/calendar.d.ts +1 -1
- package/lib/src/private/feed.d.ts +1 -1
- package/lib/src/private/map.d.ts +1 -1
- package/lib/src/private/smart-folder.d.ts +1 -1
- package/lib/src/private/smart-folder.js +1 -1
- package/lib/src/private/timeline.d.ts +1 -1
- package/lib/src/private/timeline.js +1 -1
- package/lib/src/private/units.d.ts +1 -1
- package/lib/src/private/utils.d.ts +1 -1
- package/lib/src/unit-definitions/avatar-collection.d.ts +1 -1
- package/lib/src/unit-definitions/avatar-collection.js +3 -7
- package/lib/src/unit-definitions/avatar-input.d.ts +1 -1
- package/lib/src/unit-definitions/avatar-input.js +1 -1
- package/lib/src/unit-definitions/avatar.d.ts +1 -1
- package/lib/src/unit-definitions/avatar.js +2 -2
- package/lib/src/unit-definitions/back-references-list.d.ts +1 -1
- package/lib/src/unit-definitions/back-references-list.js +3 -3
- package/lib/src/unit-definitions/bool-checkbox.d.ts +1 -1
- package/lib/src/unit-definitions/bool-checkbox.js +2 -2
- package/lib/src/unit-definitions/bool.d.ts +1 -1
- package/lib/src/unit-definitions/bool.js +1 -1
- package/lib/src/unit-definitions/collection-count.d.ts +1 -1
- package/lib/src/unit-definitions/color-input.d.ts +1 -1
- package/lib/src/unit-definitions/color-input.js +1 -1
- package/lib/src/unit-definitions/comments-list.d.ts +1 -1
- package/lib/src/unit-definitions/comments-list.js +1 -1
- package/lib/src/unit-definitions/date-range-combobox.d.ts +1 -1
- package/lib/src/unit-definitions/date-range-combobox.js +1 -1
- package/lib/src/unit-definitions/date-range.d.ts +1 -1
- package/lib/src/unit-definitions/date-range.js +1 -1
- package/lib/src/unit-definitions/date-time-combobox.d.ts +1 -1
- package/lib/src/unit-definitions/date-time-combobox.js +2 -2
- package/lib/src/unit-definitions/date.d.ts +1 -1
- package/lib/src/unit-definitions/date.js +2 -2
- package/lib/src/unit-definitions/email-input.d.ts +1 -1
- package/lib/src/unit-definitions/email-input.js +1 -1
- package/lib/src/unit-definitions/email.d.ts +1 -1
- package/lib/src/unit-definitions/email.js +1 -1
- package/lib/src/unit-definitions/emoji.d.ts +1 -1
- package/lib/src/unit-definitions/emoji.js +1 -1
- package/lib/src/unit-definitions/file-collection-count.d.ts +1 -1
- package/lib/src/unit-definitions/file-collection-count.js +2 -2
- package/lib/src/unit-definitions/file-compact-collection.d.ts +1 -1
- package/lib/src/unit-definitions/file-compact-collection.js +2 -2
- package/lib/src/unit-definitions/file-compact-reference.d.ts +1 -1
- package/lib/src/unit-definitions/file-compact-reference.js +1 -1
- package/lib/src/unit-definitions/file-reference.d.ts +1 -1
- package/lib/src/unit-definitions/file-reference.js +2 -2
- package/lib/src/unit-definitions/files-gallery.d.ts +1 -1
- package/lib/src/unit-definitions/files-gallery.js +2 -2
- package/lib/src/unit-definitions/files-l-list-item.d.ts +1 -1
- package/lib/src/unit-definitions/files-l-list-item.js +2 -2
- package/lib/src/unit-definitions/files-l-list.d.ts +1 -1
- package/lib/src/unit-definitions/files-l-list.js +2 -2
- package/lib/src/unit-definitions/files-list-item.d.ts +1 -1
- package/lib/src/unit-definitions/files-list-item.js +2 -2
- package/lib/src/unit-definitions/files-list.d.ts +1 -1
- package/lib/src/unit-definitions/files-list.js +2 -2
- package/lib/src/unit-definitions/geometry-preview.d.ts +1 -1
- package/lib/src/unit-definitions/geometry-preview.js +1 -1
- package/lib/src/unit-definitions/icon-button.d.ts +1 -1
- package/lib/src/unit-definitions/icon-button.js +1 -1
- package/lib/src/unit-definitions/icon-input.d.ts +1 -1
- package/lib/src/unit-definitions/icon-input.js +1 -1
- package/lib/src/unit-definitions/id.d.ts +1 -1
- package/lib/src/unit-definitions/json-input.d.ts +1 -1
- package/lib/src/unit-definitions/json-input.js +1 -1
- package/lib/src/unit-definitions/location-input.d.ts +1 -1
- package/lib/src/unit-definitions/location-input.js +1 -1
- package/lib/src/unit-definitions/location.d.ts +1 -1
- package/lib/src/unit-definitions/location.js +1 -1
- package/lib/src/unit-definitions/not-found.d.ts +1 -1
- package/lib/src/unit-definitions/number-input.d.ts +1 -1
- package/lib/src/unit-definitions/number-input.js +2 -2
- package/lib/src/unit-definitions/number.d.ts +1 -1
- package/lib/src/unit-definitions/phone-input.d.ts +1 -1
- package/lib/src/unit-definitions/phone-input.js +1 -1
- package/lib/src/unit-definitions/phone.d.ts +1 -1
- package/lib/src/unit-definitions/phone.js +1 -1
- package/lib/src/unit-definitions/progress-bar.d.ts +1 -1
- package/lib/src/unit-definitions/reference-collection-combobox.d.ts +1 -1
- package/lib/src/unit-definitions/reference-collection-combobox.js +1 -1
- package/lib/src/unit-definitions/reference-collection-list.d.ts +1 -1
- package/lib/src/unit-definitions/reference-collection-list.js +1 -1
- package/lib/src/unit-definitions/reference-collection-view.d.ts +1 -1
- package/lib/src/unit-definitions/reference-collection-view.js +1 -1
- package/lib/src/unit-definitions/reference-collection.d.ts +1 -1
- package/lib/src/unit-definitions/reference-collection.js +3 -3
- package/lib/src/unit-definitions/reference-combobox.d.ts +1 -1
- package/lib/src/unit-definitions/reference-combobox.js +1 -1
- package/lib/src/unit-definitions/reference-icon.d.ts +1 -1
- package/lib/src/unit-definitions/reference-icon.js +1 -1
- package/lib/src/unit-definitions/reference.d.ts +1 -1
- package/lib/src/unit-definitions/reference.js +1 -1
- package/lib/src/unit-definitions/rich-text-document.d.ts +1 -1
- package/lib/src/unit-definitions/rich-text-document.js +2 -2
- package/lib/src/unit-definitions/rich-text-snippet.d.ts +1 -1
- package/lib/src/unit-definitions/single-location-preview.d.ts +1 -1
- package/lib/src/unit-definitions/single-location-preview.js +1 -1
- package/lib/src/unit-definitions/text-input.d.ts +1 -1
- package/lib/src/unit-definitions/text-input.js +2 -2
- package/lib/src/unit-definitions/text.d.ts +1 -1
- package/lib/src/unit-definitions/text.js +2 -2
- package/lib/src/unit-definitions/title-input.d.ts +1 -1
- package/lib/src/unit-definitions/title.d.ts +1 -1
- package/lib/src/unit-definitions/type-badge-abbr.d.ts +1 -1
- package/lib/src/unit-definitions/type-badge.d.ts +1 -1
- package/lib/src/unit-definitions/type-icon.d.ts +1 -1
- package/lib/src/unit-definitions/url-input.d.ts +1 -1
- package/lib/src/unit-definitions/url-input.js +1 -1
- package/lib/src/unit-definitions/url.d.ts +1 -1
- package/lib/src/unit-definitions/url.js +1 -1
- package/lib/src/unit-definitions/user-button.d.ts +1 -1
- package/lib/src/unit-definitions/user-role-input.d.ts +1 -1
- package/lib/src/unit-definitions/user-role-input.js +1 -1
- package/lib/src/unit-definitions/user-role.d.ts +1 -1
- package/lib/src/unit-definitions/user-role.js +1 -1
- package/lib/src/unit-utils/access.d.ts +2 -2
- package/lib/src/unit-utils/can-edit-field.d.ts +2 -2
- package/lib/src/unit-utils/common.d.ts +3 -3
- package/lib/src/unit-utils/common.js +1 -1
- package/lib/src/unit-utils/enums.d.ts +2 -2
- package/lib/src/unit-utils/formatters.d.ts +2 -2
- package/lib/src/unit-utils/get-export-value.d.ts +4 -4
- package/lib/src/unit-utils/get-export-value.js +2 -3
- package/lib/src/unit-utils/get-field-label.d.ts +2 -2
- package/lib/src/unit-utils/get-unmatched-unit-label.d.ts +1 -1
- package/lib/src/unit-utils/schema.d.ts +1 -1
- package/lib/src/unit-utils/wrap-normalized-in-expression.d.ts +2 -2
- package/lib/src/units/board.d.ts +1 -1
- package/lib/src/units/board.js +1 -1
- package/lib/src/units/canvas/index.js +1 -1
- package/lib/src/units/canvas/type-badge-abbr.d.ts +1 -1
- package/lib/src/units/canvas/type-badge.d.ts +1 -1
- package/lib/src/units/default.d.ts +1 -1
- package/lib/src/units/default.js +1 -1
- package/lib/src/units/gallery.d.ts +1 -1
- package/lib/src/units/gantt.d.ts +1 -1
- package/lib/src/units/gantt.js +1 -1
- package/lib/src/units/get-unit-definitions-for-view-type.js +4 -4
- package/lib/src/units/grid.js +7 -7
- package/lib/src/units/list.d.ts +1 -1
- package/lib/src/units/list.js +1 -1
- package/lib/src/units/make-factory.d.ts +2 -2
- package/lib/src/units/make-factory.js +10 -10
- package/lib/src/units/types.d.ts +4 -4
- package/package.json +7 -7
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
1
|
+
import type { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
2
2
|
export declare const ReferenceCollection: UnitDataDefinition<FieldUnit>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ReferenceCollection = void 0;
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("@fibery/expression-utils/src/utils");
|
|
5
5
|
const reference_collection_1 = require("../field-utils/reference-collection");
|
|
6
|
+
const can_edit_field_1 = require("../unit-utils/can-edit-field");
|
|
7
|
+
const common_1 = require("../unit-utils/common");
|
|
6
8
|
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
7
9
|
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
8
|
-
const can_edit_field_1 = require("../unit-utils/can-edit-field");
|
|
9
|
-
const utils_1 = require("@fibery/expression-utils/src/utils");
|
|
10
10
|
const type = "reference-collection";
|
|
11
11
|
exports.ReferenceCollection = {
|
|
12
12
|
type,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
1
|
+
import type { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
2
2
|
export declare const ReferenceCombobox: UnitDataDefinition<FieldUnit>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ReferenceCombobox = void 0;
|
|
4
|
+
const can_edit_field_1 = require("../unit-utils/can-edit-field");
|
|
4
5
|
const common_1 = require("../unit-utils/common");
|
|
5
6
|
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
6
7
|
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
7
|
-
const can_edit_field_1 = require("../unit-utils/can-edit-field");
|
|
8
8
|
const type = "reference-combobox";
|
|
9
9
|
exports.ReferenceCombobox = {
|
|
10
10
|
type,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
1
|
+
import type { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
2
2
|
export declare const ReferenceIcon: UnitDataDefinition<FieldUnit>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ReferenceIcon = void 0;
|
|
4
|
-
const reference_1 = require("./reference");
|
|
5
4
|
const common_1 = require("../unit-utils/common");
|
|
5
|
+
const reference_1 = require("./reference");
|
|
6
6
|
const type = "reference-icon";
|
|
7
7
|
exports.ReferenceIcon = {
|
|
8
8
|
...reference_1.Reference,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
1
|
+
import type { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
2
2
|
export declare const Reference: UnitDataDefinition<FieldUnit>;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Reference = void 0;
|
|
4
4
|
const utils_1 = require("@fibery/expression-utils/src/utils");
|
|
5
|
-
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
6
5
|
const select_1 = require("@fibery/query-utils/src/select");
|
|
7
6
|
const reference_1 = require("../field-utils/reference");
|
|
8
7
|
const common_1 = require("../unit-utils/common");
|
|
9
8
|
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
9
|
+
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
10
10
|
const type = "reference";
|
|
11
11
|
exports.Reference = {
|
|
12
12
|
type,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
1
|
+
import type { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
2
2
|
export declare const RichTextDocument: UnitDataDefinition<FieldUnit>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RichTextDocument = void 0;
|
|
4
|
+
const rich_text_1 = require("../field-utils/rich-text");
|
|
4
5
|
const can_edit_field_1 = require("../unit-utils/can-edit-field");
|
|
5
|
-
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
6
6
|
const common_1 = require("../unit-utils/common");
|
|
7
|
-
const rich_text_1 = require("../field-utils/rich-text");
|
|
8
7
|
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
8
|
+
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
9
9
|
const type = "rich-text-document";
|
|
10
10
|
exports.RichTextDocument = {
|
|
11
11
|
type,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
1
|
+
import type { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
2
2
|
export declare const SingleLocationPreview: UnitDataDefinition<FieldUnit>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SingleLocationPreview = void 0;
|
|
4
|
-
const text_1 = require("./text");
|
|
5
4
|
const common_1 = require("../unit-utils/common");
|
|
5
|
+
const text_1 = require("./text");
|
|
6
6
|
const type = "single-location-preview";
|
|
7
7
|
exports.SingleLocationPreview = {
|
|
8
8
|
type,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
1
|
+
import type { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
2
2
|
export declare const TextInput: UnitDataDefinition<FieldUnit>;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TextInput = void 0;
|
|
4
4
|
const query_1 = require("@fibery/query-utils/src/query");
|
|
5
|
+
const can_edit_field_1 = require("../unit-utils/can-edit-field");
|
|
5
6
|
const common_1 = require("../unit-utils/common");
|
|
6
|
-
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
7
7
|
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
8
|
-
const
|
|
8
|
+
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
9
9
|
const type = "text-input";
|
|
10
10
|
exports.TextInput = {
|
|
11
11
|
type,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
1
|
+
import type { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
2
2
|
export declare const Text: UnitDataDefinition<FieldUnit>;
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Text = void 0;
|
|
4
4
|
const query_1 = require("@fibery/query-utils/src/query");
|
|
5
5
|
const can_edit_field_1 = require("../unit-utils/can-edit-field");
|
|
6
|
-
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
7
|
-
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
8
6
|
const common_1 = require("../unit-utils/common");
|
|
7
|
+
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
8
|
+
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
9
9
|
const type = "text";
|
|
10
10
|
exports.Text = {
|
|
11
11
|
type,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
1
|
+
import type { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
2
2
|
export declare const TitleInput: UnitDataDefinition<FieldUnit>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
1
|
+
import type { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
2
2
|
export declare const Title: UnitDataDefinition<FieldUnit>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DbUnit, UnitDataDefinition } from "../units/types";
|
|
1
|
+
import type { DbUnit, UnitDataDefinition } from "../units/types";
|
|
2
2
|
export declare const TypeBadgeAbbr: UnitDataDefinition<DbUnit>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DbUnit, UnitDataDefinition } from "../units/types";
|
|
1
|
+
import type { DbUnit, UnitDataDefinition } from "../units/types";
|
|
2
2
|
export declare const TypeBadge: UnitDataDefinition<DbUnit>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DbUnit, UnitDataDefinition } from "../units/types";
|
|
1
|
+
import type { DbUnit, UnitDataDefinition } from "../units/types";
|
|
2
2
|
export declare const TypeIcon: UnitDataDefinition<DbUnit>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
1
|
+
import type { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
2
2
|
export declare const UrlInput: UnitDataDefinition<FieldUnit>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UrlInput = void 0;
|
|
4
|
-
const text_input_1 = require("./text-input");
|
|
5
4
|
const common_1 = require("../unit-utils/common");
|
|
5
|
+
const text_input_1 = require("./text-input");
|
|
6
6
|
const type = "url-input";
|
|
7
7
|
exports.UrlInput = {
|
|
8
8
|
...text_input_1.TextInput,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
1
|
+
import type { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
2
2
|
export declare const Url: UnitDataDefinition<FieldUnit>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Url = void 0;
|
|
4
|
-
const text_1 = require("./text");
|
|
5
4
|
const common_1 = require("../unit-utils/common");
|
|
5
|
+
const text_1 = require("./text");
|
|
6
6
|
const type = "url";
|
|
7
7
|
exports.Url = {
|
|
8
8
|
type,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ButtonUnit, UnitDataDefinition } from "../units/types";
|
|
1
|
+
import type { ButtonUnit, UnitDataDefinition } from "../units/types";
|
|
2
2
|
export declare const UserButton: UnitDataDefinition<ButtonUnit>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
1
|
+
import type { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
2
2
|
export declare const UserRoleInput: UnitDataDefinition<FieldUnit>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UserRoleInput = void 0;
|
|
4
|
-
const user_role_1 = require("./user-role");
|
|
5
4
|
const common_1 = require("../unit-utils/common");
|
|
5
|
+
const user_role_1 = require("./user-role");
|
|
6
6
|
const type = "user-role-input";
|
|
7
7
|
exports.UserRoleInput = {
|
|
8
8
|
...user_role_1.UserRole,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
1
|
+
import type { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
2
2
|
export declare const UserRole: UnitDataDefinition<FieldUnit>;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UserRole = void 0;
|
|
4
4
|
const query_1 = require("@fibery/query-utils/src/query");
|
|
5
|
-
const common_1 = require("../unit-utils/common");
|
|
6
5
|
const user_role_1 = require("../field-utils/user-role");
|
|
7
6
|
const can_edit_field_1 = require("../unit-utils/can-edit-field");
|
|
7
|
+
const common_1 = require("../unit-utils/common");
|
|
8
8
|
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
9
9
|
const type = "user-role";
|
|
10
10
|
exports.UserRole = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { FieldExpression } from "@fibery/expression-utils";
|
|
2
|
+
import type { TypeObject } from "@fibery/schema";
|
|
3
3
|
export declare const accessCheckKey: string;
|
|
4
4
|
export declare const generateAccessCheckQueryExpression: ({ typeObject, contextPath, }: {
|
|
5
5
|
typeObject: TypeObject;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TypeObject } from "@fibery/schema";
|
|
2
|
-
import { FieldUnit } from "../units/types";
|
|
1
|
+
import type { TypeObject } from "@fibery/schema";
|
|
2
|
+
import type { FieldUnit } from "../units/types";
|
|
3
3
|
export declare const canEditField: ({ typeObject, unit: { expression } }: {
|
|
4
4
|
typeObject: TypeObject;
|
|
5
5
|
unit: FieldUnit;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TypeObject } from "@fibery/schema";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { TypeObject } from "@fibery/schema";
|
|
2
|
+
import type { $TSFixMe } from "../tsfixme";
|
|
3
|
+
import type { FieldUnit, PureUnit, Unit, UnitExpression } from "../units/types";
|
|
4
4
|
export declare const makeUnitMethod: (type: FieldUnit["type"]) => ({ expression }?: {
|
|
5
5
|
expression?: UnitExpression;
|
|
6
6
|
}) => FieldUnit;
|
|
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.canEditFieldExpression = exports.asString = exports.toPureUnit = exports.isUnitEnabled = exports.calculateUnitExpressionErrors = exports.makeUnitMethod = void 0;
|
|
7
|
+
const utils_1 = require("@fibery/expression-utils/src/utils");
|
|
7
8
|
const omit_1 = __importDefault(require("lodash/omit"));
|
|
8
9
|
const get_unmatched_unit_label_1 = require("./get-unmatched-unit-label");
|
|
9
|
-
const utils_1 = require("@fibery/expression-utils/src/utils");
|
|
10
10
|
const makeUnitMethod = (type) => ({ expression } = {}) => {
|
|
11
11
|
(0, utils_1.assertIsValidExpression)(expression);
|
|
12
12
|
return { type, kind: "field", expression: expression };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FieldExpression } from "@fibery/expression-utils";
|
|
1
|
+
import type { FieldExpression } from "@fibery/expression-utils";
|
|
3
2
|
import type { Select } from "@fibery/expression-utils/src/types";
|
|
3
|
+
import type { TypeObject } from "@fibery/schema";
|
|
4
4
|
export declare const getEnumIconColorQuery: ({ typeObject, contextPath, }: {
|
|
5
5
|
typeObject: TypeObject;
|
|
6
6
|
contextPath?: FieldExpression;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FieldObject } from "@fibery/schema";
|
|
2
|
-
import { NumberDisplaySettings } from "../field-utils/number";
|
|
1
|
+
import type { FieldObject } from "@fibery/schema";
|
|
2
|
+
import type { NumberDisplaySettings } from "../field-utils/number";
|
|
3
3
|
export declare const defaultLocale = "en-US";
|
|
4
4
|
export declare const defaultDateFormat = "MMM D, YYYY";
|
|
5
5
|
export declare const defaultDateTimeFormat = "MMM D, YYYY HH:mm";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FieldObject, TypeObject } from "@fibery/schema";
|
|
3
|
-
import { NumberDisplaySettings } from "../field-utils/number";
|
|
4
|
-
import {
|
|
1
|
+
import type { FiberyObject } from "@fibery/expression-utils/src/types";
|
|
2
|
+
import type { FieldObject, TypeObject } from "@fibery/schema";
|
|
3
|
+
import type { NumberDisplaySettings } from "../field-utils/number";
|
|
4
|
+
import type { FieldUnit } from "../units/types";
|
|
5
5
|
export declare const getExportValue: ({ object, unit }: {
|
|
6
6
|
object: FiberyObject;
|
|
7
7
|
unit: FieldUnit;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getNumberExportValue = exports.getTitleExportValue = exports.getLocationExportValue = exports.getDateRangeExportValue = exports.formatDateRangeExportValue = exports.getSnippetExportValue = exports.getReferenceExportValue = exports.getReferenceCollectionExportValue = exports.getExportValue = void 0;
|
|
4
|
-
const query_1 = require("@fibery/query-utils/src/query");
|
|
5
4
|
const utils_1 = require("@fibery/expression-utils/src/utils");
|
|
5
|
+
const query_1 = require("@fibery/query-utils/src/query");
|
|
6
6
|
const date_fns_1 = require("date-fns");
|
|
7
7
|
const number_1 = require("../field-utils/number");
|
|
8
8
|
const formatters_1 = require("./formatters");
|
|
@@ -15,8 +15,7 @@ const getReferenceCollectionExportValue = ({ unit, typeObject, object, }) => {
|
|
|
15
15
|
if (!value || value.length === 0) {
|
|
16
16
|
return value;
|
|
17
17
|
}
|
|
18
|
-
const
|
|
19
|
-
const fieldObject = typeObject.fieldObjectsByName[field];
|
|
18
|
+
const fieldObject = (0, utils_1.getFieldObjectByFieldExpression)({ typeObject, expression: unit.expression });
|
|
20
19
|
return value.map((v) => v[fieldObject.typeObject.titleField]);
|
|
21
20
|
};
|
|
22
21
|
exports.getReferenceCollectionExportValue = getReferenceCollectionExportValue;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TypeObject } from "@fibery/schema";
|
|
2
|
-
import { FieldUnit } from "../units/types";
|
|
1
|
+
import type { TypeObject } from "@fibery/schema";
|
|
2
|
+
import type { FieldUnit } from "../units/types";
|
|
3
3
|
export declare const getFieldLabel: ({ typeObject, unit }: {
|
|
4
4
|
typeObject: TypeObject;
|
|
5
5
|
unit: FieldUnit;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Unit } from "../units/types";
|
|
1
|
+
import type { Unit } from "../units/types";
|
|
2
2
|
export declare const getUnmatchedUnitLabel: (unit: Unit) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Schema } from "@fibery/schema";
|
|
1
|
+
import type { Schema } from "@fibery/schema";
|
|
2
2
|
export declare const extractTypePart: (type: string) => string;
|
|
3
3
|
export declare const extractTypeNamespacePart: (type: string) => string;
|
|
4
4
|
export declare const getTypeById: (schema: Schema, id: string) => import("@fibery/schema").TypeObject | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { FieldExpression } from "@fibery/expression-utils/src/types";
|
|
2
|
+
import type { FieldObject } from "@fibery/schema";
|
|
3
3
|
export declare const wrapNormalizedInExpression: (innerNormalized: Record<string, unknown>, fieldObjects: FieldObject[], expression: FieldExpression) => Record<string, unknown>;
|
package/lib/src/units/board.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TypeObject } from "@fibery/schema";
|
|
1
|
+
import type { TypeObject } from "@fibery/schema";
|
|
2
2
|
export declare const getTypeUnits: () => import("./types").PureUnit[], getUnitName: (unit: import("./types").Unit) => string | null, getUnitsForType: (typeObject: TypeObject, options?: {
|
|
3
3
|
parentFieldObjects?: import("@fibery/schema").FieldObject[];
|
|
4
4
|
showHiddenFields?: boolean;
|
package/lib/src/units/board.js
CHANGED
|
@@ -36,8 +36,8 @@ var _a;
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.getDefaultUnits = exports.getUnitDataDefinition = exports.getCardUnitsSelect = exports.getHardcodedUnitsForView = exports.getUnitLabel = exports.getUnitsForTypePerField = exports.getUnitsForField = exports.getUnitsForType = exports.getUnitName = exports.getTypeUnits = void 0;
|
|
38
38
|
const avatar_1 = require("../field-utils/avatar");
|
|
39
|
-
const make_factory_1 = require("./make-factory");
|
|
40
39
|
const allUnitDefinitions = __importStar(require("../unit-definitions"));
|
|
40
|
+
const make_factory_1 = require("./make-factory");
|
|
41
41
|
_a = (0, make_factory_1.makeUnitDefinitionsFactory)(allUnitDefinitions), exports.getTypeUnits = _a.getTypeUnits, exports.getUnitName = _a.getUnitName, exports.getUnitsForType = _a.getUnitsForType, exports.getUnitsForField = _a.getUnitsForField, exports.getUnitsForTypePerField = _a.getUnitsForTypePerField, exports.getUnitLabel = _a.getUnitLabel, exports.getHardcodedUnitsForView = _a.getHardcodedUnitsForView, exports.getCardUnitsSelect = _a.getCardUnitsSelect, exports.getUnitDataDefinition = _a.getUnitDataDefinition;
|
|
42
42
|
const getDefaultUnits = (typeObject) => {
|
|
43
43
|
const { Title, Avatar, TypeBadgeAbbr } = allUnitDefinitions;
|
|
@@ -35,8 +35,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
var _a;
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.getDefaultUnits = exports.getHardcodedUnitsForView = exports.getCardUnitsSelect = exports.getUnitLabel = exports.getUnitsForTypePerField = exports.getUnitsForType = exports.getUnitsForField = exports.getUnitName = exports.getTypeUnits = void 0;
|
|
38
|
-
const make_factory_1 = require("../make-factory");
|
|
39
38
|
const rich_text_snippet_1 = require("../../unit-definitions/rich-text-snippet");
|
|
39
|
+
const make_factory_1 = require("../make-factory");
|
|
40
40
|
const unitDefinitions = __importStar(require("./all-units-data-definitions"));
|
|
41
41
|
const allUnitDefinitions = { ...unitDefinitions, RichTextSnippet: rich_text_snippet_1.RichTextSnippet };
|
|
42
42
|
// noinspection JSUnusedGlobalSymbols
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TypeObject } from "@fibery/schema";
|
|
1
|
+
import type { TypeObject } from "@fibery/schema";
|
|
2
2
|
export declare const getTypeUnits: () => import("./types").PureUnit[], getUnitName: (unit: import("./types").Unit) => string | null, getUnitsForType: (typeObject: TypeObject, options?: {
|
|
3
3
|
parentFieldObjects?: import("@fibery/schema").FieldObject[];
|
|
4
4
|
showHiddenFields?: boolean;
|
package/lib/src/units/default.js
CHANGED
|
@@ -36,8 +36,8 @@ var _a;
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.getDefaultUnits = exports.getHardcodedUnitsForView = exports.getUnitLabel = exports.getCardUnitsSelect = exports.getUnitsForTypePerField = exports.getUnitsForField = exports.getUnitsForType = exports.getUnitName = exports.getTypeUnits = void 0;
|
|
38
38
|
const avatar_1 = require("../field-utils/avatar");
|
|
39
|
-
const make_factory_1 = require("./make-factory");
|
|
40
39
|
const allUnitDefinitions = __importStar(require("../unit-definitions"));
|
|
40
|
+
const make_factory_1 = require("./make-factory");
|
|
41
41
|
_a = (0, make_factory_1.makeUnitDefinitionsFactory)(allUnitDefinitions), exports.getTypeUnits = _a.getTypeUnits, exports.getUnitName = _a.getUnitName, exports.getUnitsForType = _a.getUnitsForType, exports.getUnitsForField = _a.getUnitsForField, exports.getUnitsForTypePerField = _a.getUnitsForTypePerField, exports.getCardUnitsSelect = _a.getCardUnitsSelect, exports.getUnitLabel = _a.getUnitLabel, exports.getHardcodedUnitsForView = _a.getHardcodedUnitsForView;
|
|
42
42
|
const getDefaultUnits = (typeObject) => {
|
|
43
43
|
const { Title, Avatar, TypeBadgeAbbr } = allUnitDefinitions;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TypeObject } from "@fibery/schema";
|
|
1
|
+
import type { TypeObject } from "@fibery/schema";
|
|
2
2
|
export { getCardUnitsSelect, getHardcodedUnitsForView, getTypeUnits, getUnitDataDefinition, getUnitLabel, getUnitName, getUnitsForField, getUnitsForType, getUnitsForTypePerField, } from "./board";
|
|
3
3
|
export declare const getDefaultUnits: (_typeObject: TypeObject) => import("./types").PureUnit[];
|
package/lib/src/units/gantt.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TypeObject } from "@fibery/schema";
|
|
1
|
+
import type { TypeObject } from "@fibery/schema";
|
|
2
2
|
export declare const getTypeUnits: () => import("./types").PureUnit[], getUnitName: (unit: import("./types").Unit) => string | null, getUnitsForType: (typeObject: TypeObject, options?: {
|
|
3
3
|
parentFieldObjects?: import("@fibery/schema").FieldObject[];
|
|
4
4
|
showHiddenFields?: boolean;
|
package/lib/src/units/gantt.js
CHANGED
|
@@ -36,8 +36,8 @@ var _a;
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.getDefaultLaneUnits = exports.getDefaultUnits = exports.getHardcodedUnitsForView = exports.getUnitLabel = exports.getCardUnitsSelect = exports.getUnitsForTypePerField = exports.getUnitsForField = exports.getUnitsForType = exports.getUnitName = exports.getTypeUnits = void 0;
|
|
38
38
|
const avatar_1 = require("../field-utils/avatar");
|
|
39
|
-
const make_factory_1 = require("./make-factory");
|
|
40
39
|
const allUnitDefinitions = __importStar(require("../unit-definitions"));
|
|
40
|
+
const make_factory_1 = require("./make-factory");
|
|
41
41
|
_a = (0, make_factory_1.makeUnitDefinitionsFactory)(allUnitDefinitions), exports.getTypeUnits = _a.getTypeUnits, exports.getUnitName = _a.getUnitName, exports.getUnitsForType = _a.getUnitsForType, exports.getUnitsForField = _a.getUnitsForField, exports.getUnitsForTypePerField = _a.getUnitsForTypePerField, exports.getCardUnitsSelect = _a.getCardUnitsSelect, exports.getUnitLabel = _a.getUnitLabel, exports.getHardcodedUnitsForView = _a.getHardcodedUnitsForView;
|
|
42
42
|
const getDefaultUnits = () => {
|
|
43
43
|
const { Title } = allUnitDefinitions;
|
|
@@ -34,13 +34,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.getUnitDefinitionsForViewType = void 0;
|
|
37
|
-
const defaultDefinitions = __importStar(require("./default"));
|
|
38
37
|
const boardDefinitions = __importStar(require("./board"));
|
|
39
38
|
const canvasDefinitions = __importStar(require("./canvas"));
|
|
40
|
-
const
|
|
41
|
-
const gridDefinitions = __importStar(require("./grid"));
|
|
42
|
-
const ganttDefinitions = __importStar(require("./gantt"));
|
|
39
|
+
const defaultDefinitions = __importStar(require("./default"));
|
|
43
40
|
const galleryDefinitions = __importStar(require("./gallery"));
|
|
41
|
+
const ganttDefinitions = __importStar(require("./gantt"));
|
|
42
|
+
const gridDefinitions = __importStar(require("./grid"));
|
|
43
|
+
const listDefinitions = __importStar(require("./list"));
|
|
44
44
|
const getUnitDefinitionsForViewType = (viewType) => {
|
|
45
45
|
switch (viewType) {
|
|
46
46
|
case "board":
|
package/lib/src/units/grid.js
CHANGED
|
@@ -2,36 +2,36 @@
|
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.getDefaultUnits = exports.getHardcodedUnitsForView = exports.getCardUnitsSelect = exports.getUnitLabel = exports.getUnitsForTypePerField = exports.getUnitsForField = exports.getUnitsForType = exports.getUnitName = exports.getTypeUnits = void 0;
|
|
5
|
-
const
|
|
6
|
-
const avatar_collection_1 = require("../unit-definitions/avatar-collection");
|
|
5
|
+
const file_reference_1 = require("@fibery/views/src/unit-definitions/file-reference");
|
|
7
6
|
const avatar_1 = require("../unit-definitions/avatar");
|
|
7
|
+
const avatar_collection_1 = require("../unit-definitions/avatar-collection");
|
|
8
8
|
const bool_1 = require("../unit-definitions/bool");
|
|
9
9
|
const collection_count_1 = require("../unit-definitions/collection-count");
|
|
10
10
|
const date_1 = require("../unit-definitions/date");
|
|
11
11
|
const date_range_1 = require("../unit-definitions/date-range");
|
|
12
12
|
const email_1 = require("../unit-definitions/email");
|
|
13
13
|
const emoji_1 = require("../unit-definitions/emoji");
|
|
14
|
+
const file_collection_count_1 = require("../unit-definitions/file-collection-count");
|
|
15
|
+
const files_gallery_1 = require("../unit-definitions/files-gallery");
|
|
14
16
|
const icon_button_1 = require("../unit-definitions/icon-button");
|
|
15
17
|
const id_1 = require("../unit-definitions/id");
|
|
16
18
|
const location_1 = require("../unit-definitions/location");
|
|
17
19
|
const number_1 = require("../unit-definitions/number");
|
|
18
20
|
const phone_1 = require("../unit-definitions/phone");
|
|
19
21
|
const progress_bar_1 = require("../unit-definitions/progress-bar");
|
|
20
|
-
const reference_collection_1 = require("../unit-definitions/reference-collection");
|
|
21
22
|
const reference_1 = require("../unit-definitions/reference");
|
|
23
|
+
const reference_collection_1 = require("../unit-definitions/reference-collection");
|
|
22
24
|
const reference_icon_1 = require("../unit-definitions/reference-icon");
|
|
23
25
|
const rich_text_snippet_1 = require("../unit-definitions/rich-text-snippet");
|
|
24
26
|
const text_1 = require("../unit-definitions/text");
|
|
25
27
|
const title_1 = require("../unit-definitions/title");
|
|
26
|
-
const type_badge_abbr_1 = require("../unit-definitions/type-badge-abbr");
|
|
27
28
|
const type_badge_1 = require("../unit-definitions/type-badge");
|
|
29
|
+
const type_badge_abbr_1 = require("../unit-definitions/type-badge-abbr");
|
|
28
30
|
const type_icon_1 = require("../unit-definitions/type-icon");
|
|
29
31
|
const url_1 = require("../unit-definitions/url");
|
|
30
32
|
const user_button_1 = require("../unit-definitions/user-button");
|
|
31
33
|
const user_role_1 = require("../unit-definitions/user-role");
|
|
32
|
-
const
|
|
33
|
-
const files_gallery_1 = require("../unit-definitions/files-gallery");
|
|
34
|
-
const file_reference_1 = require("@fibery/views/src/unit-definitions/file-reference");
|
|
34
|
+
const make_factory_1 = require("./make-factory");
|
|
35
35
|
const allUnitDefinitions = {
|
|
36
36
|
AvatarCollection: avatar_collection_1.AvatarCollection,
|
|
37
37
|
Bool: bool_1.Bool,
|
package/lib/src/units/list.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TypeObject } from "@fibery/schema";
|
|
1
|
+
import type { TypeObject } from "@fibery/schema";
|
|
2
2
|
export declare const getTypeUnits: () => import("./types").PureUnit[], getUnitName: (unit: import("./types").Unit) => string | null, getUnitsForType: (typeObject: TypeObject, options?: {
|
|
3
3
|
parentFieldObjects?: import("@fibery/schema").FieldObject[];
|
|
4
4
|
showHiddenFields?: boolean;
|
package/lib/src/units/list.js
CHANGED
|
@@ -36,8 +36,8 @@ var _a;
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.getDefaultUnits = exports.getHardcodedUnitsForView = exports.getCardUnitsSelect = exports.getUnitLabel = exports.getUnitsForTypePerField = exports.getUnitsForField = exports.getUnitsForType = exports.getUnitName = exports.getTypeUnits = void 0;
|
|
38
38
|
const avatar_1 = require("../field-utils/avatar");
|
|
39
|
-
const make_factory_1 = require("./make-factory");
|
|
40
39
|
const allUnitDefinitions = __importStar(require("../unit-definitions"));
|
|
40
|
+
const make_factory_1 = require("./make-factory");
|
|
41
41
|
_a = (0, make_factory_1.makeUnitDefinitionsFactory)(allUnitDefinitions), exports.getTypeUnits = _a.getTypeUnits, exports.getUnitName = _a.getUnitName, exports.getUnitsForType = _a.getUnitsForType, exports.getUnitsForField = _a.getUnitsForField, exports.getUnitsForTypePerField = _a.getUnitsForTypePerField, exports.getUnitLabel = _a.getUnitLabel, exports.getCardUnitsSelect = _a.getCardUnitsSelect, exports.getHardcodedUnitsForView = _a.getHardcodedUnitsForView;
|
|
42
42
|
const getDefaultUnits = (typeObject) => {
|
|
43
43
|
const { Title, Avatar } = allUnitDefinitions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FieldObject, Schema, TypeObject } from "@fibery/schema";
|
|
2
|
-
import { ButtonUnit, DbUnit, FieldUnit, Unit, UnitDataDefinition, UnitExpression } from "./types";
|
|
1
|
+
import type { FieldObject, Schema, TypeObject } from "@fibery/schema";
|
|
2
|
+
import type { ButtonUnit, DbUnit, FieldUnit, Unit, UnitDataDefinition, UnitExpression } from "./types";
|
|
3
3
|
type AnyUnitDataDefinition = UnitDataDefinition<FieldUnit> | UnitDataDefinition<DbUnit> | UnitDataDefinition<ButtonUnit>;
|
|
4
4
|
type UnitCreationOptions = {
|
|
5
5
|
parentFieldObjects?: FieldObject[];
|