@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/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) => records.newerKindOf(field) === "rich_text");
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(records.DECLARABLE_FIELD_KINDS.map((row) => [row.kind, row.behavior]));
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);