@fibery/views 26.0.2 → 26.0.3
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/unit-definitions/back-references-list.js +1 -1
- package/lib/unit-definitions/collection-count.js +1 -1
- package/lib/unit-definitions/comments-list.js +1 -1
- package/lib/unit-definitions/file-collection-count.js +1 -1
- package/lib/unit-definitions/file-compact-collection.js +1 -1
- package/lib/unit-definitions/file-compact-reference.js +1 -1
- package/lib/unit-definitions/file-reference.js +1 -1
- package/lib/unit-definitions/files-gallery.js +1 -1
- package/lib/unit-definitions/files-l-list-item.js +1 -1
- package/lib/unit-definitions/files-l-list.js +1 -1
- package/lib/unit-definitions/files-list-item.js +1 -1
- package/lib/unit-definitions/files-list.js +1 -1
- package/lib/unit-definitions/reference-collection.js +1 -1
- package/lib/unit-definitions/reference.js +1 -1
- package/lib/unit-definitions/rich-text-document.js +1 -1
- package/lib/unit-definitions/user-role.js +1 -1
- package/lib/unit-utils/formatters.js +2 -2
- package/lib/units/make-factory.js +3 -3
- package/package.json +7 -7
|
@@ -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";
|
|
5
4
|
import { getFilesSelect } from "./file.js";
|
|
6
5
|
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";
|
|
4
3
|
import { getFilesSelect } from "./file.js";
|
|
5
4
|
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/_";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { getEntityLinksListSelect } from "../field-utils/back-references.js";
|
|
1
2
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
3
|
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
4
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
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,6 +1,6 @@
|
|
|
1
|
+
import { getCountKey, makeCollectionCountExpression } from "../field-utils/reference-collection.js";
|
|
1
2
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
3
|
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,8 +1,8 @@
|
|
|
1
|
+
import { getQuerySelect } from "../field-utils/comments.js";
|
|
1
2
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
3
|
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
4
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
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,9 +1,9 @@
|
|
|
1
|
+
import { getFilesSelect } from "../field-utils/file.js";
|
|
1
2
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
3
|
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
4
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
6
|
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";
|
|
1
2
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
3
|
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
4
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
6
|
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";
|
|
1
2
|
import { calculateUnitExpressionErrors, canEditFieldExpression } from "../unit-utils/common.js";
|
|
2
3
|
import { getReferenceExportValue } from "../unit-utils/get-export-value.js";
|
|
3
4
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
4
5
|
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";
|
|
1
2
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
3
|
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
4
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
6
|
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";
|
|
1
2
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
3
|
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
4
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
6
|
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";
|
|
1
2
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
3
|
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
4
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
6
|
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";
|
|
1
2
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
3
|
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
4
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
6
|
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";
|
|
1
2
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
3
|
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
4
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
6
|
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";
|
|
1
2
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
3
|
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
4
|
import { getExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
5
6
|
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,8 +1,8 @@
|
|
|
1
|
+
import { REFERENCE_COLLECTION_LIMIT, calculateReferenceCollectionQuery } from "../field-utils/reference-collection.js";
|
|
1
2
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
3
|
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
4
|
import { getReferenceCollectionExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
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
|
+
import { getReferenceFieldNormalizedSelectClause } from "../field-utils/reference.js";
|
|
1
2
|
import { calculateUnitExpressionErrors, canEditFieldExpression } from "../unit-utils/common.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 { 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";
|
|
1
2
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
3
|
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
4
|
import { getSnippetExportValue } from "../unit-utils/get-export-value.js";
|
|
4
5
|
import { getFieldLabel } from "../unit-utils/get-field-label.js";
|
|
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
|
+
import { getUserRoleByKey } from "../field-utils/user-role.js";
|
|
1
2
|
import { calculateUnitExpressionErrors, makeUnitMethod } from "../unit-utils/common.js";
|
|
2
3
|
import { canEditField } from "../unit-utils/can-edit-field.js";
|
|
3
4
|
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 Decimal from "./decimal.js";
|
|
2
|
-
import { parseNumberFieldMeta } from "../field-utils/number.js";
|
|
3
1
|
import { parseEnd, parseStart } from "../field-utils/date-time.js";
|
|
2
|
+
import { parseNumberFieldMeta } from "../field-utils/number.js";
|
|
3
|
+
import Decimal from "./decimal.js";
|
|
4
4
|
import isNil from "lodash/isNil.js";
|
|
5
5
|
//#region src/unit-utils/formatters.ts
|
|
6
6
|
const defaultLocale = "en-US";
|
|
@@ -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";
|
|
5
2
|
import { isReferenceExtensionField } from "../field-utils/back-references.js";
|
|
6
3
|
import { isCommentExtensionField } from "../field-utils/comments.js";
|
|
4
|
+
import { parseNumberFieldMeta } from "../field-utils/number.js";
|
|
7
5
|
import { isRelationViewField } from "../field-utils/relation-view.js";
|
|
8
6
|
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";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fibery/views",
|
|
3
|
-
"version": "26.0.
|
|
3
|
+
"version": "26.0.3",
|
|
4
4
|
"description": "Operations on view objects",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Fibery",
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@fibery/expression-utils": "17.0.
|
|
34
|
-
"@fibery/helpers": "5.
|
|
35
|
-
"@fibery/query-utils": "7.2.
|
|
36
|
-
"@fibery/schema": "13.1.
|
|
33
|
+
"@fibery/expression-utils": "17.0.1",
|
|
34
|
+
"@fibery/helpers": "5.1.0",
|
|
35
|
+
"@fibery/query-utils": "7.2.5",
|
|
36
|
+
"@fibery/schema": "13.1.1",
|
|
37
37
|
"date-fns": "2.29.2",
|
|
38
38
|
"lodash": "4.18.1",
|
|
39
39
|
"moment": "2.31.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@fibery/expression-utils": "^17.0.
|
|
43
|
-
"@fibery/schema": "^13.1.
|
|
42
|
+
"@fibery/expression-utils": "^17.0.1",
|
|
43
|
+
"@fibery/schema": "^13.1.1",
|
|
44
44
|
"lodash": "4.18.1"
|
|
45
45
|
}
|
|
46
46
|
}
|