@fibery/views 26.0.0 → 26.0.2
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/field-utils/reference-collection.js +1 -1
- package/lib/field-utils/reference.js +1 -1
- package/lib/private/board.js +5 -4
- package/lib/unit-definitions/back-references-list.js +2 -2
- package/lib/unit-definitions/bool-checkbox.js +1 -1
- package/lib/unit-definitions/bool.js +1 -1
- package/lib/unit-definitions/collection-count.js +1 -1
- package/lib/unit-definitions/color-input.js +1 -1
- package/lib/unit-definitions/comments-list.js +2 -2
- package/lib/unit-definitions/date-range-combobox.js +1 -1
- package/lib/unit-definitions/date-range.js +1 -1
- package/lib/unit-definitions/date-time-combobox.js +1 -1
- package/lib/unit-definitions/date.js +1 -1
- package/lib/unit-definitions/file-collection-count.js +2 -2
- package/lib/unit-definitions/file-compact-collection.js +2 -2
- package/lib/unit-definitions/file-compact-reference.js +1 -1
- package/lib/unit-definitions/file-reference.js +2 -2
- package/lib/unit-definitions/files-gallery.js +2 -2
- package/lib/unit-definitions/files-l-list-item.js +2 -2
- package/lib/unit-definitions/files-l-list.js +2 -2
- package/lib/unit-definitions/files-list-item.js +2 -2
- package/lib/unit-definitions/files-list.js +2 -2
- package/lib/unit-definitions/icon-button.js +1 -1
- package/lib/unit-definitions/index.js +2 -2
- package/lib/unit-definitions/json-input.js +1 -1
- package/lib/unit-definitions/number-input.js +1 -1
- package/lib/unit-definitions/reference-collection-combobox.js +1 -1
- package/lib/unit-definitions/reference-collection-list.js +1 -1
- package/lib/unit-definitions/reference-collection-view.js +1 -1
- package/lib/unit-definitions/reference-collection.js +2 -2
- package/lib/unit-definitions/reference-combobox.js +1 -1
- package/lib/unit-definitions/reference.js +1 -1
- package/lib/unit-definitions/rich-text-document.js +2 -2
- package/lib/unit-definitions/text-input.js +1 -1
- package/lib/unit-definitions/text.js +1 -1
- package/lib/unit-definitions/user-role.js +2 -2
- package/lib/unit-utils/formatters.js +2 -2
- package/lib/units/canvas/all-units-data-definitions.js +1 -1
- package/lib/units/grid.js +3 -3
- package/lib/units/make-factory.js +3 -3
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { getAvatarSelectQuery } from "./avatar.js";
|
|
2
2
|
import { collectionCountKeyPrefix, makeDynamicKey } from "../unit-utils/dynamic-keys.js";
|
|
3
3
|
import { generateAccessCheckQueryExpression } from "../unit-utils/access.js";
|
|
4
|
+
import { getEnumIconColorQuery } from "../unit-utils/enums.js";
|
|
4
5
|
import { getFilesSelect } from "./file.js";
|
|
5
6
|
import { getEntityIconSelect } from "./icon.js";
|
|
6
|
-
import { getEnumIconColorQuery } from "../unit-utils/enums.js";
|
|
7
7
|
import { truthy } from "@fibery/helpers/src/_";
|
|
8
8
|
import { mergeDenormalizedSelects, toSelectMapClause } from "@fibery/query-utils/src/select";
|
|
9
9
|
import last from "lodash/last.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getAvatarSelectQuery } from "./avatar.js";
|
|
2
2
|
import { generateAccessCheckQueryExpression } from "../unit-utils/access.js";
|
|
3
|
+
import { getEnumIconColorQuery } from "../unit-utils/enums.js";
|
|
3
4
|
import { getFilesSelect } from "./file.js";
|
|
4
5
|
import { getEntityIconSelect } from "./icon.js";
|
|
5
|
-
import { getEnumIconColorQuery } from "../unit-utils/enums.js";
|
|
6
6
|
import { getIsUserActiveSelect } from "./user-active.js";
|
|
7
7
|
import { getIsFinalStateSelect } from "./workflow.js";
|
|
8
8
|
import { truthy } from "@fibery/helpers/src/_";
|
package/lib/private/board.js
CHANGED
|
@@ -99,16 +99,17 @@ const visitView = (view, visitor, enumKeys, ensureAxisInvariant = false) => {
|
|
|
99
99
|
...rest,
|
|
100
100
|
"fibery/meta": {
|
|
101
101
|
...metaRest,
|
|
102
|
-
x:
|
|
103
|
-
y:
|
|
102
|
+
x: resetIfPresent(visitedX, resetX),
|
|
103
|
+
y: resetIfPresent(visitedY, resetY),
|
|
104
104
|
items: visitedItems.map((item) => reuseIfUnchanged(item, {
|
|
105
105
|
...item,
|
|
106
|
-
xExpression:
|
|
107
|
-
yExpression:
|
|
106
|
+
xExpression: resetIfPresent(item.xExpression, resetX),
|
|
107
|
+
yExpression: resetIfPresent(item.yExpression, resetY)
|
|
108
108
|
}))
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
111
|
};
|
|
112
|
+
const resetIfPresent = (value, reset) => reset && value !== void 0 ? null : value;
|
|
112
113
|
const visitViewKeepingEnums = (view, visitor) => {
|
|
113
114
|
const { "fibery/meta": meta, ...rest } = view;
|
|
114
115
|
const { items, x, y, ...metaRest } = meta;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getEntityLinksListSelect } from "../field-utils/back-references.js";
|
|
2
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
3
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
|
-
import {
|
|
5
|
+
import { getEntityLinksListSelect } from "../field-utils/back-references.js";
|
|
6
6
|
import { getFieldObjectByFieldExpression } from "@fibery/expression-utils/src/utils";
|
|
7
7
|
import { calculateDefaultOrderBy } from "@fibery/query-utils/src/query";
|
|
8
8
|
//#region src/unit-definitions/back-references-list.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
3
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
5
5
|
import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
|
|
6
6
|
//#region src/unit-definitions/bool-checkbox.ts
|
|
7
7
|
const type = "bool-checkbox";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
3
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
5
5
|
import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
|
|
6
6
|
//#region src/unit-definitions/bool.ts
|
|
7
7
|
const type = "bool";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getCountKey, makeCollectionCountExpression } from "../field-utils/reference-collection.js";
|
|
2
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
3
2
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
3
|
+
import { getCountKey, makeCollectionCountExpression } from "../field-utils/reference-collection.js";
|
|
4
4
|
import { getFieldObjectByFieldExpression } from "@fibery/expression-utils/src/utils";
|
|
5
5
|
//#region src/unit-definitions/collection-count.ts
|
|
6
6
|
const type = "collection-count";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
-
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
3
2
|
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
|
+
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
4
|
import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
|
|
5
5
|
//#region src/unit-definitions/color-input.ts
|
|
6
6
|
const type = "color-input";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getQuerySelect } from "../field-utils/comments.js";
|
|
2
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
3
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
|
-
import {
|
|
5
|
+
import { getQuerySelect } from "../field-utils/comments.js";
|
|
6
6
|
import { getFieldObjectByFieldExpression } from "@fibery/expression-utils/src/utils";
|
|
7
7
|
//#region src/unit-definitions/comments-list.ts
|
|
8
8
|
const type = "comments-list";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { getDateRangeExportValue } from "../unit-utils/get-export-value.js";
|
|
3
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
5
5
|
import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
|
|
6
6
|
//#region src/unit-definitions/date-range-combobox.ts
|
|
7
7
|
const type = "date-range-combobox";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { getDateRangeExportValue } from "../unit-utils/get-export-value.js";
|
|
3
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
5
5
|
import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
|
|
6
6
|
//#region src/unit-definitions/date-range.ts
|
|
7
7
|
const type = "date-range";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
3
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
5
5
|
import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
|
|
6
6
|
//#region src/unit-definitions/date-time-combobox.ts
|
|
7
7
|
const type = "date-time-combobox";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
3
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
5
5
|
import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
|
|
6
6
|
//#region src/unit-definitions/date.ts
|
|
7
7
|
const type = "date";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getFilesSelect } from "../field-utils/file.js";
|
|
2
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
3
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
6
5
|
import { wrapNormalizedInExpression } from "../unit-utils/wrap-normalized-in-expression.js";
|
|
6
|
+
import { getFilesSelect } from "../field-utils/file.js";
|
|
7
7
|
import { getFieldObjectsByFieldExpression } from "@fibery/expression-utils/src/utils";
|
|
8
8
|
import { denormalizeSelect, normalizeSelect } from "@fibery/query-utils/src/select";
|
|
9
9
|
//#region src/unit-definitions/file-collection-count.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getFilesSelect } from "../field-utils/file.js";
|
|
2
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
3
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
6
5
|
import { wrapNormalizedInExpression } from "../unit-utils/wrap-normalized-in-expression.js";
|
|
6
|
+
import { getFilesSelect } from "../field-utils/file.js";
|
|
7
7
|
import { getFieldObjectsByFieldExpression } from "@fibery/expression-utils/src/utils";
|
|
8
8
|
import { denormalizeSelect, normalizeSelect } from "@fibery/query-utils/src/select";
|
|
9
9
|
//#region src/unit-definitions/file-compact-collection.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getReferenceFieldNormalizedSelectClause } from "../field-utils/reference.js";
|
|
2
1
|
import { calculateUnitExpressionErrors, canEditFieldExpression } from "../unit-utils/common.js";
|
|
3
2
|
import { getReferenceExportValue } from "../unit-utils/get-export-value.js";
|
|
4
3
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
4
|
import { wrapNormalizedInExpression } from "../unit-utils/wrap-normalized-in-expression.js";
|
|
5
|
+
import { getReferenceFieldNormalizedSelectClause } from "../field-utils/reference.js";
|
|
6
6
|
import { assertIsValidExpression, getFieldObjectsByFieldExpression } from "@fibery/expression-utils/src/utils";
|
|
7
7
|
import { denormalizeSelect } from "@fibery/query-utils/src/select";
|
|
8
8
|
//#region src/unit-definitions/file-compact-reference.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getFilesSelect } from "../field-utils/file.js";
|
|
2
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
3
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
6
5
|
import { wrapNormalizedInExpression } from "../unit-utils/wrap-normalized-in-expression.js";
|
|
6
|
+
import { getFilesSelect } from "../field-utils/file.js";
|
|
7
7
|
import { getFieldObjectsByFieldExpression } from "@fibery/expression-utils/src/utils";
|
|
8
8
|
import { denormalizeSelect, normalizeSelect } from "@fibery/query-utils/src/select";
|
|
9
9
|
//#region src/unit-definitions/file-reference.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getFilesSelect } from "../field-utils/file.js";
|
|
2
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
3
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
6
5
|
import { wrapNormalizedInExpression } from "../unit-utils/wrap-normalized-in-expression.js";
|
|
6
|
+
import { getFilesSelect } from "../field-utils/file.js";
|
|
7
7
|
import { getFieldObjectsByFieldExpression } from "@fibery/expression-utils/src/utils";
|
|
8
8
|
import { denormalizeSelect, normalizeSelect } from "@fibery/query-utils/src/select";
|
|
9
9
|
//#region src/unit-definitions/files-gallery.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getFilesSelect } from "../field-utils/file.js";
|
|
2
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
3
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
6
5
|
import { wrapNormalizedInExpression } from "../unit-utils/wrap-normalized-in-expression.js";
|
|
6
|
+
import { getFilesSelect } from "../field-utils/file.js";
|
|
7
7
|
import { getFieldObjectsByFieldExpression } from "@fibery/expression-utils/src/utils";
|
|
8
8
|
import { denormalizeSelect, normalizeSelect } from "@fibery/query-utils/src/select";
|
|
9
9
|
//#region src/unit-definitions/files-l-list-item.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getFilesSelect } from "../field-utils/file.js";
|
|
2
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
3
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
6
5
|
import { wrapNormalizedInExpression } from "../unit-utils/wrap-normalized-in-expression.js";
|
|
6
|
+
import { getFilesSelect } from "../field-utils/file.js";
|
|
7
7
|
import { getFieldObjectsByFieldExpression } from "@fibery/expression-utils/src/utils";
|
|
8
8
|
import { denormalizeSelect, normalizeSelect } from "@fibery/query-utils/src/select";
|
|
9
9
|
//#region src/unit-definitions/files-l-list.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getFilesSelect } from "../field-utils/file.js";
|
|
2
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
3
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
6
5
|
import { wrapNormalizedInExpression } from "../unit-utils/wrap-normalized-in-expression.js";
|
|
6
|
+
import { getFilesSelect } from "../field-utils/file.js";
|
|
7
7
|
import { getFieldObjectsByFieldExpression } from "@fibery/expression-utils/src/utils";
|
|
8
8
|
import { denormalizeSelect, normalizeSelect } from "@fibery/query-utils/src/select";
|
|
9
9
|
//#region src/unit-definitions/files-list-item.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getFilesSelect } from "../field-utils/file.js";
|
|
2
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
3
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
6
5
|
import { wrapNormalizedInExpression } from "../unit-utils/wrap-normalized-in-expression.js";
|
|
6
|
+
import { getFilesSelect } from "../field-utils/file.js";
|
|
7
7
|
import { getFieldObjectsByFieldExpression } from "@fibery/expression-utils/src/utils";
|
|
8
8
|
import { denormalizeSelect, normalizeSelect } from "@fibery/query-utils/src/select";
|
|
9
9
|
//#region src/unit-definitions/files-list.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
-
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
3
2
|
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
|
+
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
4
|
import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
|
|
5
5
|
//#region src/unit-definitions/icon-button.ts
|
|
6
6
|
const type = "icon-button";
|
|
@@ -3,12 +3,11 @@ 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 { DateRange } from "./date-range.js";
|
|
7
6
|
import { Date } from "./date.js";
|
|
7
|
+
import { DateRange } from "./date-range.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";
|
|
12
11
|
import { IconButton } from "./icon-button.js";
|
|
13
12
|
import { Id } from "./id.js";
|
|
14
13
|
import { Location } from "./location.js";
|
|
@@ -26,6 +25,7 @@ import { TypeIcon } from "./type-icon.js";
|
|
|
26
25
|
import { Url } from "./url.js";
|
|
27
26
|
import { UserButton } from "./user-button.js";
|
|
28
27
|
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,6 +1,6 @@
|
|
|
1
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
-
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
3
2
|
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
|
+
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
4
|
import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
|
|
5
5
|
//#region src/unit-definitions/json-input.ts
|
|
6
6
|
const type = "json-input";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { getNumberExportValue } from "../unit-utils/get-export-value.js";
|
|
3
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
5
5
|
import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
|
|
6
6
|
//#region src/unit-definitions/number-input.tsx
|
|
7
7
|
const type = "number-input";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
3
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
5
5
|
//#region src/unit-definitions/reference-collection-combobox.ts
|
|
6
6
|
const type = "reference-collection-combobox";
|
|
7
7
|
const ReferenceCollectionCombobox = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { getReferenceCollectionExportValue } from "../unit-utils/get-export-value.js";
|
|
3
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
5
5
|
//#region src/unit-definitions/reference-collection-list.tsx
|
|
6
6
|
const type = "reference-collection-list";
|
|
7
7
|
const ReferenceCollectionList = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { getReferenceCollectionExportValue } from "../unit-utils/get-export-value.js";
|
|
3
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
5
5
|
//#region src/unit-definitions/reference-collection-view.tsx
|
|
6
6
|
const type = "reference-collection-view";
|
|
7
7
|
const ReferenceCollectionView = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { REFERENCE_COLLECTION_LIMIT, calculateReferenceCollectionQuery } from "../field-utils/reference-collection.js";
|
|
2
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
3
|
import { getReferenceCollectionExportValue } from "../unit-utils/get-export-value.js";
|
|
4
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
|
-
import {
|
|
5
|
+
import { REFERENCE_COLLECTION_LIMIT, calculateReferenceCollectionQuery } from "../field-utils/reference-collection.js";
|
|
6
6
|
import { getFieldObjectsByFieldExpression } from "@fibery/expression-utils/src/utils";
|
|
7
7
|
//#region src/unit-definitions/reference-collection.ts
|
|
8
8
|
const type = "reference-collection";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { getReferenceExportValue } from "../unit-utils/get-export-value.js";
|
|
3
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
5
5
|
//#region src/unit-definitions/reference-combobox.ts
|
|
6
6
|
const type = "reference-combobox";
|
|
7
7
|
const ReferenceCombobox = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getReferenceFieldNormalizedSelectClause } from "../field-utils/reference.js";
|
|
2
1
|
import { calculateUnitExpressionErrors, canEditFieldExpression } from "../unit-utils/common.js";
|
|
3
2
|
import { getReferenceExportValue } from "../unit-utils/get-export-value.js";
|
|
4
3
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
|
+
import { getReferenceFieldNormalizedSelectClause } from "../field-utils/reference.js";
|
|
5
5
|
import { assertIsValidExpression, getFieldObjectsByFieldExpression } from "@fibery/expression-utils/src/utils";
|
|
6
6
|
import { denormalizeSelect } from "@fibery/query-utils/src/select";
|
|
7
7
|
//#region src/unit-definitions/reference.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getRichTextQuerySelect } from "../field-utils/rich-text.js";
|
|
2
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
3
|
import { getSnippetExportValue } from "../unit-utils/get-export-value.js";
|
|
4
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
|
-
import {
|
|
5
|
+
import { getRichTextQuerySelect } from "../field-utils/rich-text.js";
|
|
6
6
|
//#region src/unit-definitions/rich-text-document.ts
|
|
7
7
|
const type = "rich-text-document";
|
|
8
8
|
const RichTextDocument = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
3
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
5
5
|
import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
|
|
6
6
|
//#region src/unit-definitions/text-input.tsx
|
|
7
7
|
const type = "text-input";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
|
+
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
2
3
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
3
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
|
-
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
5
5
|
import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
|
|
6
6
|
//#region src/unit-definitions/text.ts
|
|
7
7
|
const type = "text";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getUserRoleByKey } from "../field-utils/user-role.js";
|
|
2
1
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
3
|
-
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
2
|
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
|
+
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
|
+
import { getUserRoleByKey } from "../field-utils/user-role.js";
|
|
5
5
|
import { getQuerySelectForExpression } from "@fibery/query-utils/src/query";
|
|
6
6
|
//#region src/unit-definitions/user-role.ts
|
|
7
7
|
const type = "user-role";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { parseEnd, parseStart } from "../field-utils/date-time.js";
|
|
2
|
-
import { parseNumberFieldMeta } from "../field-utils/number.js";
|
|
3
1
|
import Decimal from "./decimal.js";
|
|
2
|
+
import { parseNumberFieldMeta } from "../field-utils/number.js";
|
|
3
|
+
import { parseEnd, parseStart } from "../field-utils/date-time.js";
|
|
4
4
|
import isNil from "lodash/isNil.js";
|
|
5
5
|
//#region src/unit-utils/formatters.ts
|
|
6
6
|
const defaultLocale = "en-US";
|
|
@@ -2,8 +2,8 @@ import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
|
|
|
2
2
|
import { Avatar } from "../../unit-definitions/avatar.js";
|
|
3
3
|
import { Bool } from "../../unit-definitions/bool.js";
|
|
4
4
|
import { CollectionCount } from "../../unit-definitions/collection-count.js";
|
|
5
|
-
import { DateRange } from "../../unit-definitions/date-range.js";
|
|
6
5
|
import { Date } from "../../unit-definitions/date.js";
|
|
6
|
+
import { DateRange } from "../../unit-definitions/date-range.js";
|
|
7
7
|
import { Text } from "../../unit-definitions/text.js";
|
|
8
8
|
import { Email } from "../../unit-definitions/email.js";
|
|
9
9
|
import { Emoji } from "../../unit-definitions/emoji.js";
|
package/lib/units/grid.js
CHANGED
|
@@ -3,13 +3,11 @@ import { AvatarCollection } from "../unit-definitions/avatar-collection.js";
|
|
|
3
3
|
import { Avatar } from "../unit-definitions/avatar.js";
|
|
4
4
|
import { Bool } from "../unit-definitions/bool.js";
|
|
5
5
|
import { CollectionCount } from "../unit-definitions/collection-count.js";
|
|
6
|
-
import { DateRange } from "../unit-definitions/date-range.js";
|
|
7
6
|
import { Date } from "../unit-definitions/date.js";
|
|
7
|
+
import { DateRange } from "../unit-definitions/date-range.js";
|
|
8
8
|
import { Text } from "../unit-definitions/text.js";
|
|
9
9
|
import { Email } from "../unit-definitions/email.js";
|
|
10
10
|
import { Emoji } from "../unit-definitions/emoji.js";
|
|
11
|
-
import { FileCollectionCount } from "../unit-definitions/file-collection-count.js";
|
|
12
|
-
import { FilesGallery } from "../unit-definitions/files-gallery.js";
|
|
13
11
|
import { IconButton } from "../unit-definitions/icon-button.js";
|
|
14
12
|
import { Id } from "../unit-definitions/id.js";
|
|
15
13
|
import { Location } from "../unit-definitions/location.js";
|
|
@@ -27,7 +25,9 @@ import { TypeIcon } from "../unit-definitions/type-icon.js";
|
|
|
27
25
|
import { Url } from "../unit-definitions/url.js";
|
|
28
26
|
import { UserButton } from "../unit-definitions/user-button.js";
|
|
29
27
|
import { UserRole } from "../unit-definitions/user-role.js";
|
|
28
|
+
import { FileCollectionCount } from "../unit-definitions/file-collection-count.js";
|
|
30
29
|
import { makeUnitDefinitionsFactory } from "./make-factory.js";
|
|
30
|
+
import { FilesGallery } from "../unit-definitions/files-gallery.js";
|
|
31
31
|
import { truthy } from "@fibery/helpers/src/_";
|
|
32
32
|
import { FileReference } from "@fibery/views/src/unit-definitions/file-reference";
|
|
33
33
|
//#region src/units/grid.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { isAvatarExtensionEnabledType, isAvatarExtensionField } from "../field-utils/avatar.js";
|
|
2
|
+
import { calculateUnitExpressionErrors, isUnitEnabled } from "../unit-utils/common.js";
|
|
3
|
+
import { parseNumberFieldMeta } from "../field-utils/number.js";
|
|
4
|
+
import { isUserRoleField } from "../field-utils/user-role.js";
|
|
2
5
|
import { isReferenceExtensionField } from "../field-utils/back-references.js";
|
|
3
6
|
import { isCommentExtensionField } from "../field-utils/comments.js";
|
|
4
|
-
import { parseNumberFieldMeta } from "../field-utils/number.js";
|
|
5
7
|
import { isRelationViewField } from "../field-utils/relation-view.js";
|
|
6
8
|
import { TextUIMeta } from "../field-utils/text.js";
|
|
7
|
-
import { isUserRoleField } from "../field-utils/user-role.js";
|
|
8
|
-
import { calculateUnitExpressionErrors, isUnitEnabled } from "../unit-utils/common.js";
|
|
9
9
|
import { NotFound } from "../unit-definitions/not-found.js";
|
|
10
10
|
import { mapValues, truthy } from "@fibery/helpers/src/_";
|
|
11
11
|
import { mergeDenormalizedSelects } from "@fibery/query-utils/src/select";
|