@fibery/views 19.0.1 → 19.1.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/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 +2 -2
- package/lib/src/field-utils/user-role.d.ts +1 -1
- package/lib/src/field-utils/workflow.d.ts +2 -2
- 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 +8 -8
- package/lib/src/units/types.d.ts +4 -4
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldObject, TypeObject } from "@fibery/schema";
|
|
1
|
+
import type { FieldObject, TypeObject } from "@fibery/schema";
|
|
2
2
|
export declare const AVATAR_MIXIN_NAME = "avatar/avatar-mixin";
|
|
3
3
|
export declare const AVATAR_EXTENSION_FIELD = "avatar/avatars";
|
|
4
4
|
export declare const isAvatarExtensionEnabledType: (typeObject: TypeObject) => boolean;
|
|
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getAvatarSelectQuery = exports.getAvatarSelect = exports.isAvatarExtensionField = exports.isAvatarExtensionEnabledType = exports.AVATAR_EXTENSION_FIELD = exports.AVATAR_MIXIN_NAME = void 0;
|
|
7
|
-
const compact_1 = __importDefault(require("lodash/compact"));
|
|
8
7
|
const select_1 = require("@fibery/query-utils/src/select");
|
|
8
|
+
const compact_1 = __importDefault(require("lodash/compact"));
|
|
9
9
|
exports.AVATAR_MIXIN_NAME = "avatar/avatar-mixin";
|
|
10
10
|
exports.AVATAR_EXTENSION_FIELD = "avatar/avatars";
|
|
11
11
|
const isAvatarExtensionEnabledType = (typeObject) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldObject, TypeObject } from "@fibery/schema";
|
|
1
|
+
import type { FieldObject, TypeObject } from "@fibery/schema";
|
|
2
2
|
export declare const isReferenceExtensionField: (fieldObject: FieldObject) => boolean;
|
|
3
3
|
export declare const getEntityLinksListSelect: (typeObject: TypeObject) => {
|
|
4
4
|
"fibery/id": "fibery/id";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldObject, TypeObject } from "@fibery/schema";
|
|
1
|
+
import type { FieldObject, TypeObject } from "@fibery/schema";
|
|
2
2
|
import { accessCheckKey } from "../unit-utils/access";
|
|
3
3
|
export declare const isCommentExtensionField: (fieldObject: FieldObject) => boolean;
|
|
4
4
|
export declare const getCommentsListSelect: (typeObject: TypeObject) => {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const parseDate: (isoDate: MomentInput) =>
|
|
1
|
+
import type { Moment, MomentInput, unitOfTime } from "moment/moment";
|
|
2
|
+
export declare const parseDate: (isoDate: MomentInput) => Moment;
|
|
3
3
|
export declare const serializeDate: (momentDate: Moment) => string;
|
|
4
|
-
export declare const parseDateTime: (isoDateTime: MomentInput) =>
|
|
4
|
+
export declare const parseDateTime: (isoDateTime: MomentInput) => Moment;
|
|
5
5
|
export declare const serializeDateTime: (momentDate: Moment) => string;
|
|
6
6
|
export declare const parseStart: ({ value, type }: {
|
|
7
7
|
value: MomentInput;
|
|
8
8
|
type: string;
|
|
9
|
-
}) =>
|
|
9
|
+
}) => Moment;
|
|
10
10
|
export declare const parseEnd: ({ value, type, minimumDelta, }: {
|
|
11
11
|
value: MomentInput;
|
|
12
12
|
type: string;
|
|
13
13
|
minimumDelta?: [number, unitOfTime.DurationConstructor] | null;
|
|
14
|
-
}) =>
|
|
14
|
+
}) => Moment;
|
|
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.parseEnd = exports.parseStart = exports.serializeDateTime = exports.parseDateTime = exports.serializeDate = exports.parseDate = void 0;
|
|
7
|
-
const moment_1 = __importDefault(require("moment/moment"));
|
|
8
7
|
const errors_1 = require("@fibery/expression-utils/src/errors");
|
|
9
8
|
const utils_1 = require("@fibery/expression-utils/src/utils");
|
|
9
|
+
const moment_1 = __importDefault(require("moment/moment"));
|
|
10
10
|
const defaultDateDelta = [1, "day"];
|
|
11
11
|
const defaultDateTimeDelta = [1, "second"];
|
|
12
12
|
const parseDate = (isoDate) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldObject, TypeObject } from "@fibery/schema";
|
|
1
|
+
import type { FieldObject, TypeObject } from "@fibery/schema";
|
|
2
2
|
import { NumberFormat } from "./number";
|
|
3
3
|
export declare const enumNumberFieldName = "Value";
|
|
4
4
|
export declare const getEnumNumberFieldName: (namespace: string) => string;
|
|
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getFilesSelect = void 0;
|
|
7
|
-
const compact_1 = __importDefault(require("lodash/compact"));
|
|
8
7
|
const select_1 = require("@fibery/query-utils/src/select");
|
|
8
|
+
const compact_1 = __importDefault(require("lodash/compact"));
|
|
9
9
|
const getFilesSelect = ({ typeObject }) => (0, select_1.toSelectMapClause)((0, compact_1.default)([
|
|
10
10
|
typeObject.idField,
|
|
11
11
|
typeObject.titleField,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldObject, TypeObject } from "@fibery/schema";
|
|
1
|
+
import type { FieldObject, TypeObject } from "@fibery/schema";
|
|
2
2
|
export declare const ICON_MIXIN_NAME = "icon/icon-mixin";
|
|
3
3
|
export declare const ICON_EXTENSION_FIELD = "icon/icon";
|
|
4
4
|
export declare const isIconExtensionEnabledType: (typeObject: TypeObject) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { QueryLimit } from "@fibery/expression-utils/src/types";
|
|
2
|
+
import type { FieldObject } from "@fibery/schema";
|
|
3
3
|
export declare const REFERENCE_COLLECTION_LIMIT = 1000;
|
|
4
4
|
export declare const makeCollectionCountExpression: (field: string | string[]) => (string | string[])[];
|
|
5
5
|
export declare const getCountKey: (field: string) => string;
|
|
@@ -4,15 +4,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.calculateReferenceCollectionQuery = exports.getCollectionCountSelect = exports.getCountKey = exports.makeCollectionCountExpression = exports.REFERENCE_COLLECTION_LIMIT = void 0;
|
|
7
|
-
const last_1 = __importDefault(require("lodash/last"));
|
|
8
|
-
const compact_1 = __importDefault(require("lodash/compact"));
|
|
9
7
|
const select_1 = require("@fibery/query-utils/src/select");
|
|
10
|
-
const
|
|
8
|
+
const compact_1 = __importDefault(require("lodash/compact"));
|
|
9
|
+
const last_1 = __importDefault(require("lodash/last"));
|
|
11
10
|
const access_1 = require("../unit-utils/access");
|
|
11
|
+
const dynamic_keys_1 = require("../unit-utils/dynamic-keys");
|
|
12
12
|
const enums_1 = require("../unit-utils/enums");
|
|
13
13
|
const avatar_1 = require("./avatar");
|
|
14
|
-
const icon_1 = require("./icon");
|
|
15
14
|
const file_1 = require("./file");
|
|
15
|
+
const icon_1 = require("./icon");
|
|
16
16
|
exports.REFERENCE_COLLECTION_LIMIT = 1000;
|
|
17
17
|
const makeCollectionCountExpression = (field) => [
|
|
18
18
|
"q/count",
|
|
@@ -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 { FieldObject, TypeObject } from "@fibery/schema";
|
|
4
4
|
export declare const getReferenceTypeSelectClause: ({ typeObject }: {
|
|
5
5
|
typeObject: TypeObject;
|
|
6
6
|
}, contextPath: FieldExpression) => Select;
|
|
@@ -4,15 +4,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getReferenceFieldNormalizedSelectClause = exports.getReferenceTypeSelectClause = void 0;
|
|
7
|
-
const compact_1 = __importDefault(require("lodash/compact"));
|
|
8
7
|
const select_1 = require("@fibery/query-utils/src/select");
|
|
8
|
+
const compact_1 = __importDefault(require("lodash/compact"));
|
|
9
9
|
const access_1 = require("../unit-utils/access");
|
|
10
10
|
const enums_1 = require("../unit-utils/enums");
|
|
11
|
-
const workflow_1 = require("./workflow");
|
|
12
11
|
const avatar_1 = require("./avatar");
|
|
13
|
-
const user_active_1 = require("./user-active");
|
|
14
|
-
const icon_1 = require("./icon");
|
|
15
12
|
const file_1 = require("./file");
|
|
13
|
+
const icon_1 = require("./icon");
|
|
14
|
+
const user_active_1 = require("./user-active");
|
|
15
|
+
const workflow_1 = require("./workflow");
|
|
16
16
|
const getReferenceTypeSelectClause = ({ typeObject }, contextPath) => {
|
|
17
17
|
return {
|
|
18
18
|
...(0, select_1.toSelectMapClause)((0, compact_1.default)([
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldObject } from "@fibery/schema";
|
|
1
|
+
import type { FieldObject } from "@fibery/schema";
|
|
2
2
|
export declare const isRelationViewField: (fieldObject: FieldObject) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TypeObject } from "@fibery/schema";
|
|
2
1
|
import type { FieldExpression } from "@fibery/expression-utils/src/types";
|
|
3
|
-
import {
|
|
2
|
+
import type { TypeObject } from "@fibery/schema";
|
|
3
|
+
import type { FieldUnit } from "../units/types";
|
|
4
4
|
export declare const hasAccessToSecretKey: string;
|
|
5
5
|
export declare const getHasAccessToSecretExpr: (expression: FieldExpression) => (string | (string | import("@fibery/expression-utils/src/types").MultiFieldAccess)[])[];
|
|
6
6
|
export declare const getHasAccessToSecret: (expression: FieldExpression) => {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getHasAccessToSecret = exports.getHasAccessToSecretExpr = exports.hasAccessToSecretKey = void 0;
|
|
4
4
|
exports.getRichTextQuerySelect = getRichTextQuerySelect;
|
|
5
|
-
const select_1 = require("@fibery/query-utils/src/select");
|
|
6
5
|
const utils_1 = require("@fibery/expression-utils/src/utils");
|
|
6
|
+
const select_1 = require("@fibery/query-utils/src/select");
|
|
7
7
|
const dynamic_keys_1 = require("../unit-utils/dynamic-keys");
|
|
8
8
|
exports.hasAccessToSecretKey = (0, dynamic_keys_1.makeDynamicKey)(dynamic_keys_1.hasAccessToSecretKeyPrefix);
|
|
9
9
|
const getHasAccessToSecretExpr = (expression) => [
|
|
@@ -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 getIsUserActiveSelect: ({ typeObject, contextPath, }: {
|
|
4
4
|
typeObject: TypeObject;
|
|
5
5
|
contextPath?: FieldExpression;
|
|
@@ -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 function isWorkflowType(typeObject: TypeObject): boolean;
|
|
4
4
|
export declare const getWorkflowFieldObject: (typeObject: TypeObject) => import("@fibery/schema").FieldObject | undefined;
|
|
5
5
|
export declare const getIsFinalStateSelect: ({ typeObject, contextPath, }: {
|
package/lib/src/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import type { FieldObject, Schema } from "@fibery/schema";
|
|
|
3
3
|
import type { UnitDefinitions, ViewRecord } from "./private/utils";
|
|
4
4
|
import type { Unit } from "./units/types";
|
|
5
5
|
export { deleteExpressionWithNotFoundFieldsOrTypesInSmartFolder, replaceIdsWithNamesInSmartFolder, replaceNamesWithIdsInSmartFolder, } from "./private/smart-folder";
|
|
6
|
+
export { InvalidMetaError } from "./errors";
|
|
7
|
+
export { assertMetaValid, isMetaValid } from "./meta-validation";
|
|
6
8
|
export declare const deleteExpressionWithNotFoundFieldsOrTypesInView: (schema: Schema, view: ViewRecord, ensureAxisInvariant?: boolean) => any;
|
|
7
9
|
export declare const fixUserSelectedUnits: (schema: Schema, view: ViewRecord, { unitDefinitions, getDefaultUnitTypeForField, }: {
|
|
8
10
|
unitDefinitions: UnitDefinitions;
|
package/lib/src/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.migrateHideWhenEmptyToUnitsLevel = exports.getViewCardTypes = exports.replaceIdsWithNamesInView = exports.replaceNamesWithIdsInView = exports.collectGarbage = exports.fixContextExpressionWithBrokenPath = exports.fixUserSelectedUnits = exports.deleteExpressionWithNotFoundFieldsOrTypesInView = exports.replaceNamesWithIdsInSmartFolder = exports.replaceIdsWithNamesInSmartFolder = exports.deleteExpressionWithNotFoundFieldsOrTypesInSmartFolder = void 0;
|
|
39
|
+
exports.migrateHideWhenEmptyToUnitsLevel = exports.getViewCardTypes = exports.replaceIdsWithNamesInView = exports.replaceNamesWithIdsInView = exports.collectGarbage = exports.fixContextExpressionWithBrokenPath = exports.fixUserSelectedUnits = exports.deleteExpressionWithNotFoundFieldsOrTypesInView = exports.isMetaValid = exports.assertMetaValid = exports.InvalidMetaError = exports.replaceNamesWithIdsInSmartFolder = exports.replaceIdsWithNamesInSmartFolder = exports.deleteExpressionWithNotFoundFieldsOrTypesInSmartFolder = void 0;
|
|
40
40
|
const immutability_helper_1 = __importDefault(require("immutability-helper"));
|
|
41
41
|
const get_1 = __importDefault(require("lodash/get"));
|
|
42
42
|
const omit_1 = __importDefault(require("lodash/omit"));
|
|
@@ -52,6 +52,11 @@ var smart_folder_1 = require("./private/smart-folder");
|
|
|
52
52
|
Object.defineProperty(exports, "deleteExpressionWithNotFoundFieldsOrTypesInSmartFolder", { enumerable: true, get: function () { return smart_folder_1.deleteExpressionWithNotFoundFieldsOrTypesInSmartFolder; } });
|
|
53
53
|
Object.defineProperty(exports, "replaceIdsWithNamesInSmartFolder", { enumerable: true, get: function () { return smart_folder_1.replaceIdsWithNamesInSmartFolder; } });
|
|
54
54
|
Object.defineProperty(exports, "replaceNamesWithIdsInSmartFolder", { enumerable: true, get: function () { return smart_folder_1.replaceNamesWithIdsInSmartFolder; } });
|
|
55
|
+
var errors_1 = require("./errors");
|
|
56
|
+
Object.defineProperty(exports, "InvalidMetaError", { enumerable: true, get: function () { return errors_1.InvalidMetaError; } });
|
|
57
|
+
var meta_validation_1 = require("./meta-validation");
|
|
58
|
+
Object.defineProperty(exports, "assertMetaValid", { enumerable: true, get: function () { return meta_validation_1.assertMetaValid; } });
|
|
59
|
+
Object.defineProperty(exports, "isMetaValid", { enumerable: true, get: function () { return meta_validation_1.isMetaValid; } });
|
|
55
60
|
const deleteExpressionWithNotFoundFieldsOrTypesInView = (schema, view, ensureAxisInvariant = true) => {
|
|
56
61
|
switch (view["fibery/type"]) {
|
|
57
62
|
case "board":
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Validates meta payload for the view of given type.
|
|
3
|
+
* Throws `InvalidMeta` if meta is not valid.
|
|
4
|
+
* Re-throws errors that are not InvalidMeta.
|
|
5
|
+
*/
|
|
6
|
+
export declare const assertMetaValid: (type: string, meta: unknown) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Returns true if meta is valid for given view type.
|
|
9
|
+
*/
|
|
10
|
+
export declare const isMetaValid: (type: string, meta: unknown) => boolean;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.isMetaValid = exports.assertMetaValid = void 0;
|
|
7
|
+
const get_1 = __importDefault(require("lodash/get"));
|
|
8
|
+
const errors_1 = require("./errors");
|
|
9
|
+
/**
|
|
10
|
+
* Validates meta payload for the view of given type.
|
|
11
|
+
* Throws `InvalidMeta` if meta is not valid.
|
|
12
|
+
* Re-throws errors that are not InvalidMeta.
|
|
13
|
+
*/
|
|
14
|
+
const assertMetaValid = (type, meta) => {
|
|
15
|
+
(validators.get(type) ?? genericValidator)(meta);
|
|
16
|
+
};
|
|
17
|
+
exports.assertMetaValid = assertMetaValid;
|
|
18
|
+
/**
|
|
19
|
+
* Returns true if meta is valid for given view type.
|
|
20
|
+
*/
|
|
21
|
+
const isMetaValid = (type, meta) => {
|
|
22
|
+
try {
|
|
23
|
+
(0, exports.assertMetaValid)(type, meta);
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
catch (err) {
|
|
27
|
+
if (err instanceof errors_1.InvalidMetaError) {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
throw err;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.isMetaValid = isMetaValid;
|
|
34
|
+
const isEmptyObject = (m) => typeof m === "object" && m !== null && Object.keys(m).length === 0;
|
|
35
|
+
const genericValidator = (m) => {
|
|
36
|
+
if (m === null) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const items = (0, get_1.default)(m, "items");
|
|
40
|
+
if (!Array.isArray(items)) {
|
|
41
|
+
throw new errors_1.InvalidMetaError("expected fibery/meta.items to be an array");
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const validators = new Map([
|
|
45
|
+
[
|
|
46
|
+
"document",
|
|
47
|
+
(m) => {
|
|
48
|
+
if (m === null || m === undefined || isEmptyObject(m)) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
const s = (0, get_1.default)(m, "documentSecret");
|
|
52
|
+
if (typeof s !== "string") {
|
|
53
|
+
throw new errors_1.InvalidMetaError("expected fibery/meta.documentSecret to be a string");
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
["vizydrop/chart", () => { }],
|
|
58
|
+
["form", () => { }],
|
|
59
|
+
["canvas", () => { }],
|
|
60
|
+
["tlcanvas", () => { }],
|
|
61
|
+
["spreadsheet", () => { }],
|
|
62
|
+
[
|
|
63
|
+
"thread",
|
|
64
|
+
(m) => {
|
|
65
|
+
if (isEmptyObject(m)) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const id = (0, get_1.default)(m, "id");
|
|
69
|
+
const typeId = (0, get_1.default)(m, "typeId");
|
|
70
|
+
if (typeof id !== "string" || typeof typeId !== "string") {
|
|
71
|
+
throw new errors_1.InvalidMetaError("expected fibery/meta.id and fibery/meta.typeId to be strings");
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
["dashboard", () => { }],
|
|
76
|
+
["embed", () => { }],
|
|
77
|
+
["page", () => { }],
|
|
78
|
+
]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Expression } from "@fibery/expression-utils/src/types";
|
|
2
2
|
import type { FieldObject, Schema } from "@fibery/schema";
|
|
3
|
+
import type { Unit } from "@fibery/views/src/units/types";
|
|
3
4
|
import type { UnitDefinitions, ViewRecord } from "./utils";
|
|
4
|
-
import { Unit } from "@fibery/views/src/units/types";
|
|
5
5
|
export declare const replaceIdsWithNamesInBoardView: (schema: Schema, view: ViewRecord) => any;
|
|
6
6
|
export declare const replaceNamesWithIdsInBoardView: (schema: Schema, view: ViewRecord) => any;
|
|
7
7
|
export declare const deleteExpressionWithNotFoundOrInvalidFieldsOrTypesInBoardView: (schema: Schema, view: ViewRecord, ensureAxisInvariant?: boolean) => any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Expression } from "@fibery/expression-utils/src/types";
|
|
2
2
|
import type { FieldObject, Schema } from "@fibery/schema";
|
|
3
|
+
import type { Unit } from "@fibery/views/src/units/types";
|
|
3
4
|
import type { UnitDefinitions, ViewRecord } from "./utils";
|
|
4
|
-
import { Unit } from "@fibery/views/src/units/types";
|
|
5
5
|
export declare const replaceNamesWithIdsInCalendarView: (schema: Schema, view: ViewRecord) => any;
|
|
6
6
|
export declare const replaceIdsWithNamesInCalendarView: (schema: Schema, view: ViewRecord) => any;
|
|
7
7
|
export declare const deleteExpressionWithNotFoundFieldsOrTypesInCalendarView: (schema: Schema, view: ViewRecord) => any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Expression } from "@fibery/expression-utils/src/types";
|
|
2
2
|
import type { FieldObject, Schema } from "@fibery/schema";
|
|
3
|
+
import type { Unit } from "@fibery/views/src/units/types";
|
|
3
4
|
import type { UnitDefinitions, ViewRecord } from "./utils";
|
|
4
|
-
import { Unit } from "@fibery/views/src/units/types";
|
|
5
5
|
export declare const replaceNamesWithIdsInFeedView: (schema: Schema, view: ViewRecord) => any;
|
|
6
6
|
export declare const replaceIdsWithNamesInFeedView: (schema: Schema, view: ViewRecord) => any;
|
|
7
7
|
export declare const deleteExpressionWithNotFoundFieldsOrTypesInFeedView: (schema: Schema, view: ViewRecord) => any;
|
package/lib/src/private/map.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Expression } from "@fibery/expression-utils/src/types";
|
|
2
2
|
import type { FieldObject, Schema } from "@fibery/schema";
|
|
3
|
+
import type { Unit } from "@fibery/views/src/units/types";
|
|
3
4
|
import type { UnitDefinitions, ViewRecord } from "./utils";
|
|
4
|
-
import { Unit } from "@fibery/views/src/units/types";
|
|
5
5
|
export declare const replaceNamesWithIdsInMapView: (schema: Schema, view: ViewRecord) => any;
|
|
6
6
|
export declare const replaceIdsWithNamesInMapView: (schema: Schema, view: ViewRecord) => any;
|
|
7
7
|
export declare const deleteExpressionWithNotFoundFieldsOrTypesInMapView: (schema: Schema, view: ViewRecord) => any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Expression } from "@fibery/expression-utils/src/types";
|
|
2
2
|
import type { FieldObject, Schema } from "@fibery/schema";
|
|
3
|
+
import type { Unit } from "@fibery/views/src/units/types";
|
|
3
4
|
import type { UnitDefinitions, ViewRecord } from "./utils";
|
|
4
|
-
import { Unit } from "@fibery/views/src/units/types";
|
|
5
5
|
type GroupByEntry = {
|
|
6
6
|
expression: Expression;
|
|
7
7
|
[k: string]: unknown;
|
|
@@ -7,8 +7,8 @@ exports.enableHideWhenEmptyForCheckedUnits = exports.collectGarbage = exports.fi
|
|
|
7
7
|
const visitors_1 = require("@fibery/expression-utils/src/visitors");
|
|
8
8
|
const immutability_helper_1 = __importDefault(require("immutability-helper"));
|
|
9
9
|
const get_1 = __importDefault(require("lodash/get"));
|
|
10
|
-
const truthy_1 = require("../truthy");
|
|
11
10
|
const isEqual_1 = __importDefault(require("lodash/isEqual"));
|
|
11
|
+
const truthy_1 = require("../truthy");
|
|
12
12
|
const units_1 = require("./units");
|
|
13
13
|
const utils_1 = require("./utils");
|
|
14
14
|
const visitSmartFolder = (smartFolder, visitor) => (0, immutability_helper_1.default)(smartFolder, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Expression, Query } from "@fibery/expression-utils/src/types";
|
|
2
2
|
import type { FieldObject, Schema } from "@fibery/schema";
|
|
3
|
+
import type { Unit } from "@fibery/views/src/units/types";
|
|
3
4
|
import type { UnitDefinitions, ViewFilter, ViewRecord } from "./utils";
|
|
4
|
-
import { Unit } from "@fibery/views/src/units/types";
|
|
5
5
|
type GroupByEntry = {
|
|
6
6
|
expression: Expression;
|
|
7
7
|
[k: string]: unknown;
|
|
@@ -12,8 +12,8 @@ const has_1 = __importDefault(require("lodash/has"));
|
|
|
12
12
|
const isEmpty_1 = __importDefault(require("lodash/isEmpty"));
|
|
13
13
|
const set_1 = __importDefault(require("lodash/set"));
|
|
14
14
|
const some_1 = __importDefault(require("lodash/some"));
|
|
15
|
-
const smart_folder_1 = require("./smart-folder");
|
|
16
15
|
const truthy_1 = require("../truthy");
|
|
16
|
+
const smart_folder_1 = require("./smart-folder");
|
|
17
17
|
const units_1 = require("./units");
|
|
18
18
|
const utils_1 = require("./utils");
|
|
19
19
|
const visitAxisSingle = (axis, visitor) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FieldObject, Schema } from "@fibery/schema";
|
|
2
|
+
import type { Unit } from "@fibery/views/src/units/types";
|
|
2
3
|
import type { UnitDefinitions } from "./utils";
|
|
3
4
|
import { REMOVE } from "./utils";
|
|
4
|
-
import { Unit } from "@fibery/views/src/units/types";
|
|
5
5
|
export declare const fixViewUnit: (schema: Schema, fromType: string, unit: Unit, units: Unit[], { unitDefinitions, getDefaultUnitTypeForField, migrateFileCollectionUnit, }: {
|
|
6
6
|
unitDefinitions: UnitDefinitions;
|
|
7
7
|
getDefaultUnitTypeForField: (fieldObject: FieldObject, allowedUnits: Unit[]) => string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Expression, Query } from "@fibery/expression-utils/src/types";
|
|
2
2
|
import type { FieldObject, Schema } from "@fibery/schema";
|
|
3
|
-
import { Unit } from "@fibery/views/src/units/types";
|
|
3
|
+
import type { Unit } from "@fibery/views/src/units/types";
|
|
4
4
|
export declare const REMOVE: unique symbol;
|
|
5
5
|
export declare const skipRemove: (unit: Unit | typeof REMOVE) => unit is Unit;
|
|
6
6
|
export type ViewVisitor = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { UnitDataDefinition, FieldUnit } from "../units/types";
|
|
1
|
+
import type { UnitDataDefinition, FieldUnit } from "../units/types";
|
|
2
2
|
export declare const AvatarCollection: UnitDataDefinition<FieldUnit>;
|
|
@@ -4,12 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.AvatarCollection = void 0;
|
|
7
|
-
const compact_1 = __importDefault(require("lodash/compact"));
|
|
8
7
|
const utils_1 = require("@fibery/expression-utils/src/utils");
|
|
9
8
|
const select_1 = require("@fibery/query-utils/src/select");
|
|
10
|
-
const
|
|
9
|
+
const compact_1 = __importDefault(require("lodash/compact"));
|
|
11
10
|
const avatar_1 = require("../field-utils/avatar");
|
|
12
11
|
const common_1 = require("../unit-utils/common");
|
|
12
|
+
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
13
13
|
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
14
14
|
const type = "avatar-collection";
|
|
15
15
|
exports.AvatarCollection = {
|
|
@@ -50,9 +50,5 @@ exports.AvatarCollection = {
|
|
|
50
50
|
calculateErrors: common_1.calculateUnitExpressionErrors,
|
|
51
51
|
getExportValue: get_export_value_1.getReferenceCollectionExportValue,
|
|
52
52
|
canExport: () => true,
|
|
53
|
-
getExportLabel:
|
|
54
|
-
const { expression } = unit;
|
|
55
|
-
const fieldObject = (0, utils_1.getFieldObjectByFieldExpression)({ typeObject, expression });
|
|
56
|
-
return fieldObject.title;
|
|
57
|
-
},
|
|
53
|
+
getExportLabel: get_field_label_1.getFieldLabel,
|
|
58
54
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
1
|
+
import type { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
2
2
|
export declare const AvatarInput: UnitDataDefinition<FieldUnit>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AvatarInput = void 0;
|
|
4
|
-
const avatar_1 = require("./avatar");
|
|
5
4
|
const common_1 = require("../unit-utils/common");
|
|
5
|
+
const avatar_1 = require("./avatar");
|
|
6
6
|
const type = "avatar-input";
|
|
7
7
|
exports.AvatarInput = {
|
|
8
8
|
...avatar_1.Avatar,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { UnitDataDefinition, FieldUnit } from "../units/types";
|
|
1
|
+
import type { UnitDataDefinition, FieldUnit } from "../units/types";
|
|
2
2
|
export declare const Avatar: UnitDataDefinition<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.Avatar = void 0;
|
|
7
|
-
const compact_1 = __importDefault(require("lodash/compact"));
|
|
8
|
-
const select_1 = require("@fibery/query-utils/src/select");
|
|
9
7
|
const utils_1 = require("@fibery/expression-utils/src/utils");
|
|
8
|
+
const select_1 = require("@fibery/query-utils/src/select");
|
|
9
|
+
const compact_1 = __importDefault(require("lodash/compact"));
|
|
10
10
|
const avatar_1 = require("../field-utils/avatar");
|
|
11
11
|
const common_1 = require("../unit-utils/common");
|
|
12
12
|
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
1
|
+
import type { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
2
2
|
export declare const BackReferencesList: UnitDataDefinition<FieldUnit>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BackReferencesList = 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 back_references_1 = require("../field-utils/back-references");
|
|
7
|
-
const common_1 = require("../unit-utils/common");
|
|
8
7
|
const can_edit_field_1 = require("../unit-utils/can-edit-field");
|
|
9
|
-
const
|
|
8
|
+
const common_1 = require("../unit-utils/common");
|
|
10
9
|
const get_export_value_1 = require("../unit-utils/get-export-value");
|
|
10
|
+
const get_field_label_1 = require("../unit-utils/get-field-label");
|
|
11
11
|
const type = "back-references-list";
|
|
12
12
|
const getQuerySelect = (fieldObject) => {
|
|
13
13
|
const { name, typeObject } = fieldObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
1
|
+
import type { FieldUnit, UnitDataDefinition } from "../units/types";
|
|
2
2
|
export declare const BoolCheckbox: UnitDataDefinition<FieldUnit>;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BoolCheckbox = void 0;
|
|
4
4
|
const query_1 = require("@fibery/query-utils/src/query");
|
|
5
|
-
const common_1 = require("../unit-utils/common");
|
|
6
5
|
const can_edit_field_1 = require("../unit-utils/can-edit-field");
|
|
7
|
-
const
|
|
6
|
+
const common_1 = require("../unit-utils/common");
|
|
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 = "bool-checkbox";
|
|
10
10
|
exports.BoolCheckbox = {
|
|
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 Bool: UnitDataDefinition<FieldUnit>;
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Bool = 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
6
|
const common_1 = require("../unit-utils/common");
|
|
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 = "bool";
|
|
10
10
|
exports.Bool = {
|
|
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 CollectionCount: 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 ColorInput: UnitDataDefinition<FieldUnit>;
|