@ai-matrx/records-ui 0.116.1 → 0.116.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/CHANGELOG.md +35 -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 +2909 -2877
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +174 -143
- 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 +4 -4
- package/dist/chunk-Z6WTP467.js.map +0 -1
package/dist/helpers.cjs
CHANGED
|
@@ -7,7 +7,6 @@ var uuid = require('@ai-matrx/kit/uuid');
|
|
|
7
7
|
var textCase = require('@ai-matrx/kit/text-case');
|
|
8
8
|
var format = require('@ai-matrx/kit/format');
|
|
9
9
|
require('@ai-matrx/design-system/field-formats');
|
|
10
|
-
var records = require('@ai-matrx/records');
|
|
11
10
|
var base = require('@ai-matrx/records/views');
|
|
12
11
|
var forms = require('@ai-matrx/records/forms');
|
|
13
12
|
var delimited = require('@ai-matrx/kit/delimited');
|
|
@@ -819,7 +818,7 @@ function shownToOnlyMe(table) {
|
|
|
819
818
|
}
|
|
820
819
|
var BODY_NAMES = /^(notes?|page|body|content|page content|details|description)$/i;
|
|
821
820
|
function bodyFieldOf(fields) {
|
|
822
|
-
const rich = fields.filter((field) =>
|
|
821
|
+
const rich = fields.filter((field) => fieldKinds.newerKindOf(field) === "rich_text");
|
|
823
822
|
return rich.find((field) => BODY_NAMES.test((field.label ?? field.key).trim()) || BODY_NAMES.test(field.key.replace(/_/g, " "))) ?? rich[0];
|
|
824
823
|
}
|
|
825
824
|
var gridPresentationCodec = {
|
|
@@ -900,7 +899,7 @@ var FIELD_SENSITIVITY_LABEL = {
|
|
|
900
899
|
confidential: "People who have been given the record",
|
|
901
900
|
restricted: "Owners and administrators only"
|
|
902
901
|
};
|
|
903
|
-
var STORE_BEHAVIOUR = new Map(
|
|
902
|
+
var STORE_BEHAVIOUR = new Map(fieldKinds.DECLARABLE_FIELD_KINDS.map((row) => [row.kind, row.behavior]));
|
|
904
903
|
function holdsAValueOnAStandardTable(kind) {
|
|
905
904
|
if (isSystemFieldKind(kind)) return false;
|
|
906
905
|
const behaviour = STORE_BEHAVIOUR.get(kind);
|