@ai-matrx/records-ui 0.116.1 → 0.116.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/CHANGELOG.md +23 -1
- package/dist/{chunk-Z6WTP467.js → chunk-32TUVT57.js} +3 -2
- package/dist/chunk-32TUVT57.js.map +1 -0
- package/dist/{chunk-42VA6SWA.js → chunk-TCRNJVGZ.js} +2 -2
- package/dist/{chunk-42VA6SWA.js.map → chunk-TCRNJVGZ.js.map} +1 -1
- package/dist/helpers.cjs +2 -3
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.js +2 -3
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +1648 -1647
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +61 -61
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +1 -1
- package/dist/skeleton.cjs +31 -30
- package/dist/skeleton.cjs.map +1 -1
- package/dist/skeleton.js +1 -1
- package/package.json +7 -7
- package/dist/chunk-Z6WTP467.js.map +0 -1
package/dist/helpers.js
CHANGED
|
@@ -6,7 +6,6 @@ import { isUuidShape } from '@ai-matrx/kit/uuid';
|
|
|
6
6
|
import { humanizeIdentifier } from '@ai-matrx/kit/text-case';
|
|
7
7
|
import { formatRelativeTime } from '@ai-matrx/kit/format';
|
|
8
8
|
import '@ai-matrx/design-system/field-formats';
|
|
9
|
-
import { DECLARABLE_FIELD_KINDS as DECLARABLE_FIELD_KINDS$1, newerKindOf as newerKindOf$1 } from '@ai-matrx/records';
|
|
10
9
|
import * as base from '@ai-matrx/records/views';
|
|
11
10
|
export { endingsFromDocument, hiddenFromLink, themeFromDocument, welcomeFromDocument } from '@ai-matrx/records/forms';
|
|
12
11
|
import { toDelimited } from '@ai-matrx/kit/delimited';
|
|
@@ -798,7 +797,7 @@ function shownToOnlyMe(table) {
|
|
|
798
797
|
}
|
|
799
798
|
var BODY_NAMES = /^(notes?|page|body|content|page content|details|description)$/i;
|
|
800
799
|
function bodyFieldOf(fields) {
|
|
801
|
-
const rich = fields.filter((field) => newerKindOf
|
|
800
|
+
const rich = fields.filter((field) => newerKindOf(field) === "rich_text");
|
|
802
801
|
return rich.find((field) => BODY_NAMES.test((field.label ?? field.key).trim()) || BODY_NAMES.test(field.key.replace(/_/g, " "))) ?? rich[0];
|
|
803
802
|
}
|
|
804
803
|
var gridPresentationCodec = {
|
|
@@ -879,7 +878,7 @@ var FIELD_SENSITIVITY_LABEL = {
|
|
|
879
878
|
confidential: "People who have been given the record",
|
|
880
879
|
restricted: "Owners and administrators only"
|
|
881
880
|
};
|
|
882
|
-
var STORE_BEHAVIOUR = new Map(DECLARABLE_FIELD_KINDS
|
|
881
|
+
var STORE_BEHAVIOUR = new Map(DECLARABLE_FIELD_KINDS.map((row) => [row.kind, row.behavior]));
|
|
883
882
|
function holdsAValueOnAStandardTable(kind) {
|
|
884
883
|
if (isSystemFieldKind(kind)) return false;
|
|
885
884
|
const behaviour = STORE_BEHAVIOUR.get(kind);
|