@ai-matrx/records-ui 0.115.108 → 0.116.1

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +28 -1
  2. package/dist/SaveToTable-3VDK4U5M.js +20 -0
  3. package/dist/{chunk-W3EU7H4V.js → chunk-42VA6SWA.js} +93 -512
  4. package/dist/chunk-42VA6SWA.js.map +1 -0
  5. package/dist/chunk-B5S5F5NH.js +445 -0
  6. package/dist/chunk-B5S5F5NH.js.map +1 -0
  7. package/dist/chunk-IUUZVQZD.js +95 -0
  8. package/dist/chunk-IUUZVQZD.js.map +1 -0
  9. package/dist/{chunk-6NSGVKYL.js → chunk-NJYJEAQC.js} +1 -91
  10. package/dist/chunk-NJYJEAQC.js.map +1 -0
  11. package/dist/{chunk-VGNQBI2J.js → chunk-QRZ4RW2T.js} +56 -31
  12. package/dist/chunk-QRZ4RW2T.js.map +1 -0
  13. package/dist/chunk-SPPATZSR.js +288 -0
  14. package/dist/chunk-SPPATZSR.js.map +1 -0
  15. package/dist/{chunk-W5SOKJ5P.js → chunk-TNIC2SGW.js} +5 -3
  16. package/dist/{chunk-W5SOKJ5P.js.map → chunk-TNIC2SGW.js.map} +1 -1
  17. package/dist/{chunk-4U2JCICC.js → chunk-VCAOXQ5K.js} +2 -283
  18. package/dist/chunk-VCAOXQ5K.js.map +1 -0
  19. package/dist/chunk-Z6WTP467.js +245 -0
  20. package/dist/chunk-Z6WTP467.js.map +1 -0
  21. package/dist/first-page.cjs.map +1 -1
  22. package/dist/first-page.js.map +1 -1
  23. package/dist/helpers.cjs +813 -8
  24. package/dist/helpers.cjs.map +1 -1
  25. package/dist/helpers.d.cts +478 -4
  26. package/dist/helpers.d.ts +478 -4
  27. package/dist/helpers.js +755 -10
  28. package/dist/helpers.js.map +1 -1
  29. package/dist/index.cjs +4610 -3878
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.d.cts +357 -175
  32. package/dist/index.d.ts +357 -175
  33. package/dist/index.js +5891 -5405
  34. package/dist/index.js.map +1 -1
  35. package/dist/object-actions.js +3 -2
  36. package/dist/pickers.cjs +111 -72
  37. package/dist/pickers.cjs.map +1 -1
  38. package/dist/pickers.js +6 -3
  39. package/dist/skeleton.cjs +261 -0
  40. package/dist/skeleton.cjs.map +1 -0
  41. package/dist/skeleton.d.cts +50 -0
  42. package/dist/skeleton.d.ts +50 -0
  43. package/dist/skeleton.js +26 -0
  44. package/dist/skeleton.js.map +1 -0
  45. package/package.json +16 -5
  46. package/dist/SaveToTable-V3R7QVKV.js +0 -18
  47. package/dist/chunk-4U2JCICC.js.map +0 -1
  48. package/dist/chunk-6NSGVKYL.js.map +0 -1
  49. package/dist/chunk-VGNQBI2J.js.map +0 -1
  50. package/dist/chunk-W3EU7H4V.js.map +0 -1
  51. /package/dist/{SaveToTable-V3R7QVKV.js.map → SaveToTable-3VDK4U5M.js.map} +0 -0
package/dist/helpers.cjs CHANGED
@@ -7,6 +7,31 @@ 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
+ var base = require('@ai-matrx/records/views');
12
+ var forms = require('@ai-matrx/records/forms');
13
+ var delimited = require('@ai-matrx/kit/delimited');
14
+ var tapTarget = require('@ai-matrx/design-system/tap-target');
15
+
16
+ function _interopNamespace(e) {
17
+ if (e && e.__esModule) return e;
18
+ var n = Object.create(null);
19
+ if (e) {
20
+ Object.keys(e).forEach(function (k) {
21
+ if (k !== 'default') {
22
+ var d = Object.getOwnPropertyDescriptor(e, k);
23
+ Object.defineProperty(n, k, d.get ? d : {
24
+ enumerable: true,
25
+ get: function () { return e[k]; }
26
+ });
27
+ }
28
+ });
29
+ }
30
+ n.default = e;
31
+ return Object.freeze(n);
32
+ }
33
+
34
+ var base__namespace = /*#__PURE__*/_interopNamespace(base);
10
35
 
11
36
  // src/dataSource.ts
12
37
  function personActor(userId) {
@@ -128,6 +153,9 @@ var NEEDS = {
128
153
  // custom.field_declare / field_update / field_retire / table settings
129
154
  structure: "admin"
130
155
  };
156
+ function levelNeededFor(what) {
157
+ return NEEDS[what];
158
+ }
131
159
  var NOT_YET = "Still asking the store what you may do here. Nothing is offered until it has answered.";
132
160
  var NOTHING_AT_ALL = "You have not been given this. Ask somebody who administers it to share it with you.";
133
161
  function sentenceFor(what, level) {
@@ -386,7 +414,7 @@ var FIELD_TYPE_CATALOGUE = [
386
414
  { id: "modified_by", group: "Worked out", label: "Last changed by", explanation: "Who last changed each record. Nobody types it." }
387
415
  ];
388
416
  var GATED_KINDS = /* @__PURE__ */ new Set(["entity_reference", ...fieldKinds.NEWER_FIELD_KINDS]);
389
- FIELD_TYPE_CATALOGUE.filter(
417
+ var FIELD_TYPE_CHOICES = FIELD_TYPE_CATALOGUE.filter(
390
418
  (c) => !GATED_KINDS.has(c.id) || storePublishesKind(c.id) || c.id in LOOK_KINDS
391
419
  );
392
420
  var BY_ID = new Map(FIELD_TYPE_CATALOGUE.map((c) => [c.id, c]));
@@ -493,6 +521,207 @@ function madeOn(stamp) {
493
521
  if (Number.isNaN(at.getTime())) return null;
494
522
  return new Intl.DateTimeFormat(void 0, { month: "short", day: "numeric", year: "numeric" }).format(at);
495
523
  }
524
+ function parseGanttLook(raw) {
525
+ if (!raw || typeof raw !== "object" || Array.isArray(raw)) return void 0;
526
+ const v = raw;
527
+ const out = {};
528
+ if (v["mode"] === true) out.mode = true;
529
+ if (v["critical"] === true) out.critical = true;
530
+ for (const k of ["progress", "milestone", "baselineStart", "baselineEnd", "dependency"]) {
531
+ const x = v[k];
532
+ if (typeof x === "string" && x !== "") out[k] = x;
533
+ }
534
+ return Object.keys(out).length > 0 ? out : void 0;
535
+ }
536
+ var MIN_ROW_HEIGHT = 24;
537
+ var MAX_ROW_HEIGHT = 240;
538
+ var AGGREGATE_KINDS = [
539
+ "count",
540
+ "sum",
541
+ "average",
542
+ "min",
543
+ "max",
544
+ "empty",
545
+ "filled",
546
+ "unique",
547
+ "checked",
548
+ "unchecked",
549
+ "percentFilled"
550
+ ];
551
+ var GROUP_ORDERS = [
552
+ "value-asc",
553
+ "value-desc",
554
+ "count-desc",
555
+ "first-seen"
556
+ ];
557
+ function isRecord(v) {
558
+ return typeof v === "object" && v !== null && !Array.isArray(v);
559
+ }
560
+ function parseGridPresentation(raw) {
561
+ let value = raw;
562
+ if (typeof value === "string") {
563
+ const trimmed = value.trim();
564
+ if (trimmed === "") return {};
565
+ try {
566
+ value = JSON.parse(trimmed);
567
+ } catch {
568
+ return {};
569
+ }
570
+ }
571
+ if (!isRecord(value)) return {};
572
+ const out = {};
573
+ const style = tableStyle.parseTableStyle(value["style"]);
574
+ if (!tableStyle.tableStyleIsEmpty(style)) out.style = style;
575
+ if (isRecord(value["formats"])) {
576
+ const formats = {};
577
+ for (const [key, cfg] of Object.entries(value["formats"])) {
578
+ if (!isRecord(cfg)) continue;
579
+ const id = cfg["id"];
580
+ if (typeof id !== "string") continue;
581
+ const options = cfg["options"];
582
+ formats[key] = isRecord(options) ? {
583
+ id,
584
+ options
585
+ } : { id };
586
+ }
587
+ if (Object.keys(formats).length > 0) out.formats = formats;
588
+ }
589
+ if (Array.isArray(value["frozen"])) {
590
+ const frozen = value["frozen"].filter((k) => typeof k === "string");
591
+ if (frozen.length > 0) out.frozen = frozen;
592
+ }
593
+ const grouping = parseGrouping(value["grouping"]);
594
+ if (grouping) out.grouping = grouping;
595
+ if (isRecord(value["widths"])) {
596
+ const widths = {};
597
+ for (const [key, raw2] of Object.entries(value["widths"])) {
598
+ if (typeof raw2 !== "number" || !Number.isFinite(raw2) || raw2 <= 0) continue;
599
+ widths[key] = Math.round(raw2);
600
+ }
601
+ if (Object.keys(widths).length > 0) out.widths = widths;
602
+ }
603
+ const rowHeight = value["rowHeight"];
604
+ if (typeof rowHeight === "number" && Number.isFinite(rowHeight) && rowHeight >= MIN_ROW_HEIGHT && rowHeight <= MAX_ROW_HEIGHT) {
605
+ out.rowHeight = Math.round(rowHeight);
606
+ }
607
+ if (Array.isArray(value["hiddenFields"])) {
608
+ const hiddenFields = value["hiddenFields"].filter((k) => typeof k === "string");
609
+ if (hiddenFields.length > 0) out.hiddenFields = hiddenFields;
610
+ }
611
+ if (Array.isArray(value["cardHidden"])) {
612
+ out.cardHidden = value["cardHidden"].filter((k) => typeof k === "string");
613
+ }
614
+ if (Array.isArray(value["columnOrder"])) {
615
+ const columnOrder = value["columnOrder"].filter((k) => typeof k === "string");
616
+ if (columnOrder.length > 0) out.columnOrder = columnOrder;
617
+ }
618
+ const gallerySize = value["gallerySize"];
619
+ if (gallerySize === "small" || gallerySize === "medium" || gallerySize === "large") {
620
+ out.gallerySize = gallerySize;
621
+ }
622
+ const boardSize = value["boardSize"];
623
+ if (boardSize === "small" || boardSize === "medium" || boardSize === "large") out.boardSize = boardSize;
624
+ if (typeof value["boardPreview"] === "string" && value["boardPreview"] !== "") out.boardPreview = value["boardPreview"];
625
+ if (typeof value["boardHideEmpty"] === "boolean") out.boardHideEmpty = value["boardHideEmpty"];
626
+ if (typeof value["boardColorColumns"] === "boolean") out.boardColorColumns = value["boardColorColumns"];
627
+ if (typeof value["boardCounts"] === "boolean") out.boardCounts = value["boardCounts"];
628
+ if (value["locked"] === true) out.locked = true;
629
+ if (Array.isArray(value["boardLanesShut"])) {
630
+ const shut = value["boardLanesShut"].filter((k) => typeof k === "string");
631
+ if (shut.length > 0) out.boardLanesShut = shut;
632
+ }
633
+ if (typeof value["wrap"] === "boolean") out.wrap = value["wrap"];
634
+ if (typeof value["headerWrap"] === "boolean") out.headerWrap = value["headerWrap"];
635
+ if (Array.isArray(value["wrapColumns"])) {
636
+ const wrapColumns = value["wrapColumns"].filter((k) => typeof k === "string");
637
+ if (wrapColumns.length > 0) out.wrapColumns = wrapColumns;
638
+ }
639
+ const fit = value["fit"];
640
+ if (fit === "auto" || fit === "fit" || fit === "scroll") out.fit = fit;
641
+ if (typeof value["freezeFirst"] === "boolean") out.freezeFirst = value["freezeFirst"];
642
+ const footer = value["footer"];
643
+ if (footer === "sticky" || footer === "inline") out.footer = footer;
644
+ {
645
+ const gantt = parseGanttLook(value["gantt"]);
646
+ if (gantt) out.gantt = gantt;
647
+ }
648
+ if (isRecord(value["summaries"])) {
649
+ const summaries = {};
650
+ for (const [key, op] of Object.entries(value["summaries"])) {
651
+ if (typeof op === "string" && op.trim() !== "") summaries[key] = op;
652
+ }
653
+ if (Object.keys(summaries).length > 0) out.summaries = summaries;
654
+ }
655
+ return out;
656
+ }
657
+ function parseGrouping(raw) {
658
+ if (!isRecord(raw)) return void 0;
659
+ const field = raw["field"];
660
+ if (typeof field !== "string" || field.trim() === "") return void 0;
661
+ const out = { field };
662
+ if (isRecord(raw["aggregates"])) {
663
+ const aggregates = {};
664
+ for (const [key, spec] of Object.entries(raw["aggregates"])) {
665
+ if (!isRecord(spec)) continue;
666
+ const kind = spec["kind"];
667
+ if (typeof kind !== "string") continue;
668
+ if (!AGGREGATE_KINDS.includes(kind)) continue;
669
+ const label = spec["label"];
670
+ aggregates[key] = typeof label === "string" ? { kind, label } : { kind };
671
+ }
672
+ if (Object.keys(aggregates).length > 0) out.aggregates = aggregates;
673
+ }
674
+ const order = raw["order"];
675
+ if (typeof order === "string" && GROUP_ORDERS.includes(order)) {
676
+ out.order = order;
677
+ }
678
+ if (Array.isArray(raw["collapsed"])) {
679
+ const collapsed = raw["collapsed"].filter((k) => typeof k === "string");
680
+ if (collapsed.length > 0) out.collapsed = collapsed;
681
+ }
682
+ if (typeof raw["showColumn"] === "boolean") out.showColumn = raw["showColumn"];
683
+ if (Array.isArray(raw["then"])) {
684
+ const then = [];
685
+ for (const level of raw["then"]) {
686
+ if (!isRecord(level)) continue;
687
+ const sub = level["field"];
688
+ if (typeof sub !== "string" || sub.trim() === "") continue;
689
+ const subOrder = level["order"];
690
+ const subGrain = level["grain"];
691
+ then.push({
692
+ field: sub,
693
+ ...typeof subOrder === "string" && GROUP_ORDERS.includes(subOrder) ? { order: subOrder } : {},
694
+ ...typeof subGrain === "string" && subGrain !== "" ? { grain: subGrain } : {}
695
+ });
696
+ }
697
+ if (then.length > 0) out.then = then.slice(0, 2);
698
+ }
699
+ const grain = raw["grain"];
700
+ if (typeof grain === "string" && grain !== "") out.grain = grain;
701
+ const across = raw["across"];
702
+ if (typeof across === "string" && across.trim() !== "") out.across = across;
703
+ if (Array.isArray(raw["show"])) {
704
+ const show = raw["show"].filter((k) => typeof k === "string" && k !== "");
705
+ if (show.length > 0) out.show = show;
706
+ }
707
+ if (Array.isArray(raw["trail"])) {
708
+ const trail = [];
709
+ for (const step of raw["trail"]) {
710
+ if (!isRecord(step) || typeof step["dim"] !== "string" || step["dim"] === "") continue;
711
+ const value = step["value"];
712
+ if (value !== null && typeof value !== "string") continue;
713
+ trail.push({ dim: step["dim"], value });
714
+ }
715
+ if (trail.length > 0) out.trail = trail;
716
+ }
717
+ return out;
718
+ }
719
+ function presentationIsEmpty(p) {
720
+ return (p.style === void 0 || tableStyle.tableStyleIsEmpty(p.style)) && Object.keys(p.formats ?? {}).length === 0 && (p.frozen?.length ?? 0) === 0 && p.grouping === void 0 && Object.keys(p.widths ?? {}).length === 0 && p.rowHeight === void 0 && (p.hiddenFields?.length ?? 0) === 0 && p.cardHidden === void 0 && (p.columnOrder?.length ?? 0) === 0 && p.gallerySize === void 0 && p.boardSize === void 0 && p.boardPreview === void 0 && p.boardHideEmpty === void 0 && p.boardColorColumns === void 0 && p.boardCounts === void 0 && (p.boardLanesShut?.length ?? 0) === 0 && p.locked === void 0 && p.wrap === void 0 && p.headerWrap === void 0 && p.fit === void 0 && p.freezeFirst === void 0 && p.footer === void 0 && Object.keys(p.summaries ?? {}).length === 0 && p.gantt === void 0;
721
+ }
722
+ function presentationDocument(p) {
723
+ return presentationIsEmpty(p) ? "" : JSON.stringify(p);
724
+ }
496
725
  function styleFromDecorations(decorations, fields) {
497
726
  if (!decorations) return { version: 1 };
498
727
  const keyOf = (id) => fields.find((f) => f.id === id)?.key;
@@ -538,13 +767,13 @@ function styleFromDecorations(decorations, fields) {
538
767
  return style;
539
768
  }
540
769
  function resolveTableStyle(decorations, fields, viewStyle) {
541
- const base = styleFromDecorations(decorations, fields);
542
- if (!viewStyle) return base;
543
- const colorBy = viewStyle.colorBy ?? base.colorBy;
544
- const rules = viewStyle.rules ?? base.rules;
545
- const rows = viewStyle.rows ?? base.rows;
546
- const columns = viewStyle.columns ?? base.columns;
547
- const cells = viewStyle.cells ?? base.cells;
770
+ const base2 = styleFromDecorations(decorations, fields);
771
+ if (!viewStyle) return base2;
772
+ const colorBy = viewStyle.colorBy ?? base2.colorBy;
773
+ const rules = viewStyle.rules ?? base2.rules;
774
+ const rows = viewStyle.rows ?? base2.rows;
775
+ const columns = viewStyle.columns ?? base2.columns;
776
+ const cells = viewStyle.cells ?? base2.cells;
548
777
  return {
549
778
  version: 1,
550
779
  ...colorBy !== void 0 ? { colorBy } : {},
@@ -554,6 +783,542 @@ function resolveTableStyle(decorations, fields, viewStyle) {
554
783
  ...cells !== void 0 ? { cells } : {}
555
784
  };
556
785
  }
786
+ var PAGE_KIND = "page";
787
+ function isPage(row) {
788
+ const p = row.presentation;
789
+ return !!p && typeof p === "object" && p["kind"] === PAGE_KIND;
790
+ }
791
+
792
+ // src/interfaces.ts
793
+ var INTERFACE_KIND = "interface";
794
+ function isInterface(row) {
795
+ const p = row.presentation;
796
+ return !!p && typeof p === "object" && p["kind"] === INTERFACE_KIND;
797
+ }
798
+
799
+ // src/tableLanes.ts
800
+ var PLATFORM_TABLE_PREFIX2 = "records_ui_";
801
+ function platformOwned(table) {
802
+ const t = table;
803
+ return t.platform_owned === true || t.kept_by_the_app === true;
804
+ }
805
+ function laneFor(table) {
806
+ if (table.is_kernel) return "system";
807
+ if ((table.slug ?? "").startsWith(PLATFORM_TABLE_PREFIX2) || platformOwned(table)) return "app";
808
+ if (publishedToWeb(table)) return "community";
809
+ if (shownToOnlyMe(table)) return "mine";
810
+ return "organization";
811
+ }
812
+ function publishedToWeb(table) {
813
+ if (typeof table.published_to_web === "boolean") return table.published_to_web;
814
+ return table.visibility === "public" || table.visibility === "link";
815
+ }
816
+ function shownToOnlyMe(table) {
817
+ if (table.shown_to !== void 0) return table.shown_to === "only_me";
818
+ return table.visibility === "personal";
819
+ }
820
+ var BODY_NAMES = /^(notes?|page|body|content|page content|details|description)$/i;
821
+ function bodyFieldOf(fields) {
822
+ const rich = fields.filter((field) => records.newerKindOf(field) === "rich_text");
823
+ return rich.find((field) => BODY_NAMES.test((field.label ?? field.key).trim()) || BODY_NAMES.test(field.key.replace(/_/g, " "))) ?? rich[0];
824
+ }
825
+ var gridPresentationCodec = {
826
+ parse: parseGridPresentation,
827
+ isEmpty: presentationIsEmpty,
828
+ toDocument: (presentation) => JSON.parse(presentationDocument(presentation))
829
+ };
830
+ var boundViews = base__namespace.bindViewCodec(gridPresentationCodec);
831
+ var { viewSettings, viewSettingsPatch } = boundViews;
832
+ var { lookDocument, lookFromDocument, readLooks, keepLook } = boundViews;
833
+ var { viewDocument, viewFromRow, declareView, saveViewPatch, viewPatchDocument } = boundViews;
834
+
835
+ // src/viewAddressParams.ts
836
+ var VIEW_ADDRESS_KEYS = ["sort", "cf", "q", "hide", "page"];
837
+ function isViewAddressEmpty(state2) {
838
+ if (!state2) return true;
839
+ return !state2.sort && Object.keys(state2.filters ?? {}).length === 0 && !(state2.search ?? "").trim() && (state2.hidden?.length ?? 0) === 0 && !(state2.page && state2.page > 1);
840
+ }
841
+ function viewAddressToParams(state2) {
842
+ const out = {};
843
+ if (!state2) return out;
844
+ if (state2.sort) out["sort"] = `${state2.sort.field}:${state2.sort.direction}`;
845
+ const filters = Object.fromEntries(Object.entries(state2.filters ?? {}).filter(([, v]) => v !== void 0 && v !== null));
846
+ if (Object.keys(filters).length > 0) out["cf"] = JSON.stringify(filters);
847
+ if ((state2.search ?? "").trim()) out["q"] = (state2.search ?? "").trim();
848
+ if (state2.hidden && state2.hidden.length > 0) out["hide"] = JSON.stringify(state2.hidden);
849
+ if (state2.page && state2.page > 1) out["page"] = String(Math.floor(state2.page));
850
+ return out;
851
+ }
852
+ function viewAddressFromParams(get) {
853
+ const out = {};
854
+ const sort = get("sort");
855
+ if (sort) {
856
+ const at = sort.lastIndexOf(":");
857
+ const field = at > 0 ? sort.slice(0, at) : "";
858
+ const dir = at > 0 ? sort.slice(at + 1) : "";
859
+ if (field && (dir === "asc" || dir === "desc")) out.sort = { field, direction: dir };
860
+ }
861
+ const cf = get("cf");
862
+ if (cf) {
863
+ try {
864
+ const parsed = JSON.parse(cf);
865
+ if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) out.filters = parsed;
866
+ } catch {
867
+ }
868
+ }
869
+ const q = get("q");
870
+ if (q && q.trim()) out.search = q.trim();
871
+ const hide = get("hide");
872
+ if (hide) {
873
+ try {
874
+ const parsed = JSON.parse(hide);
875
+ if (Array.isArray(parsed)) {
876
+ const keys = parsed.filter((k) => typeof k === "string");
877
+ if (keys.length > 0) out.hidden = keys;
878
+ }
879
+ } catch {
880
+ }
881
+ }
882
+ const page = Number(get("page"));
883
+ if (Number.isInteger(page) && page > 1) out.page = page;
884
+ return isViewAddressEmpty(out) ? null : out;
885
+ }
886
+ function sameViewAddress(a, b) {
887
+ return JSON.stringify(viewAddressToParams(a)) === JSON.stringify(viewAddressToParams(b));
888
+ }
889
+
890
+ // src/calendarFeed.ts
891
+ function webcalUrl(httpsUrl) {
892
+ return httpsUrl.replace(/^https?:\/\//i, "webcal://");
893
+ }
894
+ function googleCalendarUrl(httpsUrl) {
895
+ return `https://calendar.google.com/calendar/r?cid=${encodeURIComponent(webcalUrl(httpsUrl))}`;
896
+ }
897
+ var FIELD_SENSITIVITY_LABEL = {
898
+ public: "Anyone who can open the record",
899
+ internal: "People in this organization",
900
+ confidential: "People who have been given the record",
901
+ restricted: "Owners and administrators only"
902
+ };
903
+ var STORE_BEHAVIOUR = new Map(records.DECLARABLE_FIELD_KINDS.map((row) => [row.kind, row.behavior]));
904
+ function holdsAValueOnAStandardTable(kind) {
905
+ if (isSystemFieldKind(kind)) return false;
906
+ const behaviour = STORE_BEHAVIOUR.get(kind);
907
+ return behaviour !== void 0 && behaviour !== "formula";
908
+ }
909
+ var STANDARD_TABLE_FIELD_CHOICES = FIELD_TYPE_CHOICES.filter(
910
+ (c) => holdsAValueOnAStandardTable(c.id)
911
+ );
912
+ var ADDABLE_TYPES = STANDARD_TABLE_FIELD_CHOICES.map((choice) => ({
913
+ value: choice.id,
914
+ label: choice.label
915
+ }));
916
+
917
+ // src/plainWords.ts
918
+ var MACHINE_IDENTITY = [
919
+ /\b[A-Z]{2,4}-\d{1,3}\b/,
920
+ // A build lane's tag: capital words joined by hyphens, then a colon ("STORE-TAILS-3:",
921
+ // "MOVE-AND-OUTSIDER:"). A person never reads which lane wrote a sentence.
922
+ /\b[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+:/,
923
+ /\b(?:custom|platform|iam|history|public|auth|campaign_watch)\.[a-z_]+/,
924
+ /\b(?:config|data|document|spec|patch)\.[a-z_]+/,
925
+ /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,
926
+ /\b[a-z][a-z0-9]*(?:_[a-z0-9]+)+\b/,
927
+ // Five characters of digits and capitals, at least one a digit — so `23514`
928
+ // and `PT409` match and an emphatic `NEVER` does not.
929
+ /\b(?=[0-9A-Z]{5}\b)(?=[0-9A-Z]*\d)[0-9A-Z]{5}\b/
930
+ ];
931
+ function isMachineIdentity(text) {
932
+ return MACHINE_IDENTITY.some((shape) => shape.test(text));
933
+ }
934
+ var TITLE = {
935
+ stale_write: "Someone else wrote first",
936
+ door: "You do not have access to this",
937
+ door_absent: "That is not built yet",
938
+ refused_by_rule: "That value was not accepted",
939
+ invalid_argument: "That was not accepted",
940
+ not_found: "Not there any more",
941
+ missing_reference: "That points at something that is not there",
942
+ already_exists: "That already exists",
943
+ not_supported: "That cannot be done here",
944
+ store_limit: "This has got as big as it can",
945
+ // 🚨 NOT "THE SWITCH IS OFF" (lane 7 W1 fix round 1). PGRST202 / PGRST205 land here, and the
946
+ // commonest cause is a door this screen asks for that the database it talks to does not serve
947
+ // YET — a release in flight. Telling the person her organization has its store switched off was
948
+ // false (the switch is answered by its own door, `platform.unified_data_store_on`). Honest:
949
+ // nothing happened, and it is ours, and it passes.
950
+ store_not_served: "This isn't available right now",
951
+ unreachable: "We could not reach your data",
952
+ needs_approval: "This is waiting on someone's approval",
953
+ stale_read: "Your view of this is a moment behind",
954
+ timed_out: "That took too long to answer",
955
+ internal: "Something went wrong at our end"
956
+ };
957
+ var REMEDY = {
958
+ stale_write: "Look at what they wrote. Keep theirs, or try again and yours goes on top.",
959
+ door: "Ask somebody who administers this to share it with you at the level you need.",
960
+ door_absent: "There is nothing to do here yet. It is on our list, not yours.",
961
+ refused_by_rule: "Change the value so it passes, then try again.",
962
+ invalid_argument: "Change what you entered, then try again.",
963
+ not_found: "It may have been deleted. Go back to the list and open it again from there.",
964
+ missing_reference: "Pick something that is still there.",
965
+ already_exists: "Use a different name.",
966
+ not_supported: "There is another way to do this \u2014 ask, and we will point you at it.",
967
+ store_limit: "Split it up, or ask us to raise the ceiling for your organization.",
968
+ store_not_served: "Nothing was changed. Try again in a few minutes.",
969
+ // 🚨 NOTHING WAS WRITTEN AND NOTHING WAS REFUSED (lane TAILS-6). The call
970
+ // never arrived, so "try again" is the honest instruction rather than a
971
+ // consolation — and saying nothing changed is the half a person actually
972
+ // worries about.
973
+ unreachable: "Nothing was changed. Check your connection and open this again.",
974
+ needs_approval: "Nothing was changed yet. The people who can approve it have been asked.",
975
+ stale_read: "Open this again in a moment and it will be up to date.",
976
+ // 🚨 ONE REMEDY THAT IS TRUE OF EVERY DOOR (lane CHAIR-STORE-PERF, 2026-10-03). The store cancels the
977
+ // WHOLE statement at its clock, so a timed-out door wrote nothing — a create, a column add and a page
978
+ // read alike. "Try a smaller page" was written for the page read and was printed to a person adding
979
+ // one row to a three-row table (clone walk, 2026-10-03; the clock was a lock another lane's
980
+ // rehearsal held, not the row). A door whose page can shrink says so in its own hint, which wins here.
981
+ timed_out: "Nothing was changed. Try again in a moment.",
982
+ internal: "Nothing you did caused this. Try again, and tell us if it keeps happening."
983
+ };
984
+ var ENGINEER_TEXT = [
985
+ /@ai-matrx\//,
986
+ /\bSQLSTATE\b/i,
987
+ /\bPostgREST\b/i,
988
+ /\bIndexedDB\b/i,
989
+ // `<RecordsUiProvider>` — a component, on a screen.
990
+ /<\/?[A-Z][A-Za-z0-9]*\s*\/?>/,
991
+ // `savedViews`, `openRecords`, `onReask` — an identifier, however it is
992
+ // quoted. English does not write camelCase; code does.
993
+ /\b[a-z][a-z0-9]*[A-Z][A-Za-z0-9]*\b/,
994
+ // A backticked token is a thing you type into an editor, not a thing you do.
995
+ /`[A-Za-z_][A-Za-z0-9_.]*`/,
996
+ // "bind X on Y", "pass X", "import X" — an instruction to whoever maintains
997
+ // the app, arriving on the screen of somebody who cannot act on it.
998
+ /\bbind\s+[`'"A-Za-z]/i
999
+ ];
1000
+ function isDeveloperHint(hint) {
1001
+ const text = hint.trim();
1002
+ if (text === "") return false;
1003
+ if (text.includes("```")) return true;
1004
+ if (/\n\s+at\s+\S+/.test(text)) return true;
1005
+ if (text.length > 600) return true;
1006
+ return isEngineerText(text);
1007
+ }
1008
+ function isEngineerText(text) {
1009
+ return ENGINEER_TEXT.some((shape) => shape.test(text));
1010
+ }
1011
+ function withoutMachineClauses(sentence) {
1012
+ const dropped = [];
1013
+ const footnotes = [];
1014
+ const withoutFootnotes = sentence.replace(/\s*\((?:see\s+)?[A-Z]{2,5}-[A-Z0-9-]{1,8}\)/g, (hit) => {
1015
+ footnotes.push(hit.trim());
1016
+ return "";
1017
+ });
1018
+ dropped.push(...footnotes);
1019
+ const clauses = withoutFootnotes.split(/(?:,\s+so\s+|\s+—\s+|\s+--\s+|\s*\|\s*)/).map((clause) => clause.trim()).filter((clause) => clause !== "");
1020
+ const kept = clauses.filter((clause) => {
1021
+ if (!isMachineIdentity(clause)) return true;
1022
+ dropped.push(clause);
1023
+ return false;
1024
+ });
1025
+ if (kept.length === 0) return { kept: null, dropped };
1026
+ if (dropped.length === 0) return { kept: sentence.trim(), dropped };
1027
+ let joined = kept.join(". ").replace(/\.\.+/g, ".").trim();
1028
+ if (!/[.!?]$/.test(joined)) joined = `${joined}.`;
1029
+ return { kept: joined, dropped };
1030
+ }
1031
+ function peopleSentence(message) {
1032
+ const [lead = "", ...tail] = message.split(/\s+—\s+|\s+--\s+/);
1033
+ const sentences = lead.trim().split(/(?<=(?<!\b(?:Dr|Mr|Mrs|Ms|St|vs|No|e\.g|i\.e|etc|[A-Z]))[.!?])\s+/);
1034
+ const first = sentences[0] ?? "";
1035
+ const rest = [...sentences.slice(1), ...tail].map((part) => part.trim()).filter((part) => part !== "");
1036
+ const cleaned = plainSentence(first);
1037
+ return { kept: cleaned.kept, dropped: [...cleaned.dropped, ...rest] };
1038
+ }
1039
+ function refusalSentence(error) {
1040
+ return refusalForAPerson(error).sentence;
1041
+ }
1042
+ function plainSentence(message) {
1043
+ const dropped = [];
1044
+ const kept = [];
1045
+ for (const raw of message.split(/(?<=[.!?])\s+/)) {
1046
+ const sentence = raw.trim();
1047
+ if (sentence === "") continue;
1048
+ const cleaned = withoutMachineClauses(sentence);
1049
+ dropped.push(...cleaned.dropped);
1050
+ if (cleaned.kept) kept.push(cleaned.kept);
1051
+ }
1052
+ return { kept: kept.length === 0 ? null : kept.join(" "), dropped };
1053
+ }
1054
+ function exampleOf(error) {
1055
+ const detail = error.detail;
1056
+ if (!detail || typeof detail !== "object") return null;
1057
+ const example = detail.example;
1058
+ return typeof example === "string" && example.trim() !== "" ? example.trim() : null;
1059
+ }
1060
+ function refusalForAPerson(error) {
1061
+ const code = error.code ?? "internal";
1062
+ const ours = error.ours === true;
1063
+ const hint = plainSentence(String(error.hint ?? ""));
1064
+ const message = ours ? plainSentence(String(error.message ?? "")) : peopleSentence(String(error.message ?? ""));
1065
+ const title = TITLE[code] ?? "The store refused this";
1066
+ const hintIsForEngineers = isDeveloperHint(String(error.hint ?? ""));
1067
+ const example = exampleOf(error);
1068
+ const remedy = (example ? `Enter it like ${example}.` : null) ?? (hintIsForEngineers ? null : hint.kept) ?? REMEDY[code] ?? REMEDY["internal"];
1069
+ const messageIsForEngineers = isEngineerText(String(error.message ?? ""));
1070
+ const said = (messageIsForEngineers ? "" : message.kept ?? "").trim();
1071
+ const forEngineers = [
1072
+ error.sqlstate ? `SQLSTATE ${error.sqlstate}.` : null,
1073
+ // The client's own note about a class it did not recognise, or a call that
1074
+ // never reached the store. It is rendered out of sight, never as a sentence.
1075
+ error.diagnostic ? error.diagnostic : null,
1076
+ messageIsForEngineers ? `Message: ${error.message}` : null,
1077
+ error.hint && (hintIsForEngineers || hint.kept !== error.hint) ? `Hint: ${error.hint}` : null,
1078
+ message.dropped.length > 0 || hint.dropped.length > 0 ? `Dropped from the person's view: ${[...message.dropped, ...hint.dropped].join(" | ")}` : null
1079
+ ].filter(Boolean).join(" ");
1080
+ return {
1081
+ title,
1082
+ // Nothing invented. When every clause was machine identity the title says
1083
+ // what happened and the remedy says what to do; a made-up diagnosis would
1084
+ // be worse than the identifier it replaced.
1085
+ sentence: said === "" ? `${title}.` : said,
1086
+ remedy,
1087
+ storeSaid: said !== "",
1088
+ forEngineers
1089
+ };
1090
+ }
1091
+
1092
+ // src/codeDependsRefusal.ts
1093
+ function codeDependsRefusal(error) {
1094
+ if (!error) return null;
1095
+ const d = error.detail;
1096
+ if (!d || d["code_depends"] !== true || typeof d["slug"] !== "string") return null;
1097
+ const where = d["declared_in"];
1098
+ const declaredIn = Array.isArray(where) ? where.map(String).join(", ") : typeof where === "string" ? where : null;
1099
+ return { slug: d["slug"], declaredIn };
1100
+ }
1101
+
1102
+ // src/announceTableArchived.ts
1103
+ var TableRestoreRefused = class extends Error {
1104
+ refusal;
1105
+ sentence;
1106
+ constructor(refusal) {
1107
+ const sentence = refusalSentence(refusal);
1108
+ super(sentence);
1109
+ this.name = "TableRestoreRefused";
1110
+ this.refusal = refusal;
1111
+ this.sentence = sentence;
1112
+ }
1113
+ };
1114
+ function announceTableArchived({ notify, client, tableId, name, onRestored }) {
1115
+ const undo = async () => {
1116
+ const back = await client.tableRestoreWhole({ table_id: tableId });
1117
+ if (!back.ok) throw new TableRestoreRefused(back.error);
1118
+ onRestored?.();
1119
+ };
1120
+ if (notify?.reversible) {
1121
+ notify.reversible({ verb: "archive", noun: "table", subject: name, undo });
1122
+ return;
1123
+ }
1124
+ notify?.success(`Archived \u201C${name}\u201D`, {
1125
+ label: "Undo",
1126
+ run: () => {
1127
+ void undo().then(
1128
+ () => notify?.success(`Restored \u201C${name}\u201D`),
1129
+ // The store's refusal is already a person's sentence; anything else never prints raw.
1130
+ (thrown) => notify?.error(thrown instanceof TableRestoreRefused ? thrown.sentence : `Couldn\u2019t restore \u201C${name}\u201D`)
1131
+ );
1132
+ }
1133
+ });
1134
+ }
1135
+
1136
+ // src/skeletonLayout.ts
1137
+ var RECORDS_SKELETON_LAYOUTS = [
1138
+ "grid",
1139
+ "kanban",
1140
+ "gallery",
1141
+ "list",
1142
+ "calendar",
1143
+ "timeline",
1144
+ "map",
1145
+ "orgchart",
1146
+ "form",
1147
+ "record",
1148
+ "chart",
1149
+ "home"
1150
+ ];
1151
+ function skeletonLayoutFor(layout) {
1152
+ if (layout === "board" || layout === "pipeline") return "kanban";
1153
+ return RECORDS_SKELETON_LAYOUTS.includes(layout ?? "") ? layout : "grid";
1154
+ }
1155
+ function recordOf(table, row) {
1156
+ const document = row.document ?? {};
1157
+ return { id: row.id, title: recordNameIn(table, document), document };
1158
+ }
1159
+ function gridContextSnapshot(args) {
1160
+ const { table, rows } = args;
1161
+ const byKey = new Map(args.fields.map((f) => [f.key, f]));
1162
+ const fields = args.shownKeys.map((k) => byKey.get(k)).filter((f) => f !== void 0);
1163
+ const byId = new Map(rows.map((r) => [r.id, r]));
1164
+ let currentCell = null;
1165
+ if (args.editing) {
1166
+ currentCell = { rowId: args.editing.rowId, key: args.editing.key, value: args.editing.draft ?? null };
1167
+ } else if (args.cursor && byId.has(args.cursor.active.rowId) && byKey.has(args.cursor.active.columnId)) {
1168
+ const row = byId.get(args.cursor.active.rowId);
1169
+ const key = args.cursor.active.columnId;
1170
+ currentCell = { rowId: row.id, key, value: (row.document ?? {})[key] ?? null };
1171
+ }
1172
+ const currentRowSource = currentCell ? byId.get(currentCell.rowId) : void 0;
1173
+ let selectedRange = null;
1174
+ if (args.cursor && args.cursor.cellCount > 1) {
1175
+ const keys = args.cursor.columnIds.filter((k) => byKey.has(k));
1176
+ selectedRange = {
1177
+ tsv: `${delimited.toDelimited([keys], { format: "tsv", spreadsheetSafe: false })}
1178
+ ${args.cursor.tsv}`,
1179
+ cellCount: args.cursor.cellCount,
1180
+ rowIds: args.cursor.rowIds.filter((id) => byId.has(id)),
1181
+ keys
1182
+ };
1183
+ }
1184
+ const description = table?.metadata?.["description"];
1185
+ return {
1186
+ tableId: args.tableId,
1187
+ tableName: table ? tableName(table) : "",
1188
+ tableDescription: typeof description === "string" && description.trim() ? description : null,
1189
+ titleField: table?.title_field ?? null,
1190
+ fields,
1191
+ rowActions: [...args.rowActions],
1192
+ canWrite: args.canWrite,
1193
+ currentCell,
1194
+ currentRow: currentRowSource ? recordOf(table, currentRowSource) : null,
1195
+ selectedRange,
1196
+ selectedRows: args.selectedIds.map((id) => byId.get(id)).filter((r) => r !== void 0).map((r) => recordOf(table, r)),
1197
+ visibleRows: rows.map((r) => recordOf(table, r)),
1198
+ total: args.total,
1199
+ search: args.search
1200
+ };
1201
+ }
1202
+ var OBJECT_ACTION_GROUPS = [
1203
+ { id: "open", submenu: false },
1204
+ { id: "organize", submenu: false },
1205
+ { id: "share", submenu: false },
1206
+ { id: "manage", submenu: false },
1207
+ { id: "built-on", label: "Built on it", icon: "blocks", submenu: true },
1208
+ { id: "danger", submenu: false }
1209
+ ];
1210
+ var GROUP_IDS = new Set(OBJECT_ACTION_GROUPS.map((g) => g.id));
1211
+ var DEFAULT_ACTION_ORIGIN = "https://www.aimatrx.com";
1212
+ var ACTION_NOT_HERE_REASON = "Not available here";
1213
+ var ACTION_CHECKING_ACCESS_REASON = "Checking your access\u2026";
1214
+ var ACTION_NO_ACCESS_REASON = "You don't have access";
1215
+ function rightsReason(rights, what, table) {
1216
+ if (!rights.known) return ACTION_CHECKING_ACCESS_REASON;
1217
+ if (rights[what]) return null;
1218
+ if (rights.level === null) return ACTION_NO_ACCESS_REASON;
1219
+ return `Needs ${LEVEL_WORD[levelNeededFor(what)]} access`;
1220
+ }
1221
+ var TABLE_ACTION_CHORDS = {
1222
+ "copy-link": { code: "KeyL", chord: "alt+shift+l" },
1223
+ rename: { code: "KeyR", chord: "alt+shift+r" },
1224
+ duplicate: { code: "KeyD", chord: "alt+shift+d" },
1225
+ move: { code: "KeyM", chord: "alt+shift+m" },
1226
+ favorite: { code: "KeyF", chord: "alt+shift+f" },
1227
+ share: { code: "KeyS", chord: "alt+shift+s" },
1228
+ export: { code: "KeyE", chord: "alt+shift+e" },
1229
+ import: { code: "KeyI", chord: "alt+shift+i" },
1230
+ settings: { code: "Comma", chord: "alt+shift+," },
1231
+ history: { code: "KeyH", chord: "alt+shift+h" },
1232
+ archive: { code: "Backspace", chord: "alt+shift+backspace" }
1233
+ };
1234
+ Object.fromEntries(
1235
+ Object.entries(TABLE_ACTION_CHORDS).map(([id, { code, chord }]) => [id, { code, label: tapTarget.formatShortcut(chord) }])
1236
+ );
1237
+ function withExtensions(base2, extra) {
1238
+ if (extra.length === 0) return [...base2];
1239
+ const seen = new Set(base2.map((a) => a.id));
1240
+ for (const entry of extra) {
1241
+ if (entry.group === "danger") {
1242
+ throw new Error(`Object action "${entry.id}": the danger group is closed to extensions.`);
1243
+ }
1244
+ if (!GROUP_IDS.has(entry.group)) {
1245
+ throw new Error(`Object action "${entry.id}": "${String(entry.group)}" is not a group.`);
1246
+ }
1247
+ if (seen.has(entry.id)) {
1248
+ throw new Error(`Object action "${entry.id}" is already in the list.`);
1249
+ }
1250
+ seen.add(entry.id);
1251
+ }
1252
+ const out = [];
1253
+ for (const group of OBJECT_ACTION_GROUPS) {
1254
+ out.push(...base2.filter((a) => a.group === group.id), ...extra.filter((a) => a.group === group.id));
1255
+ }
1256
+ return out;
1257
+ }
1258
+
1259
+ // src/recordActions.ts
1260
+ function recordLink(tableId, recordId, origin = DEFAULT_ACTION_ORIGIN) {
1261
+ return `${origin.replace(/\/+$/, "")}/data/${encodeURIComponent(tableId)}?record=${encodeURIComponent(recordId)}`;
1262
+ }
1263
+ var NOOP = () => {
1264
+ };
1265
+ function action(base2, needs, input, perform) {
1266
+ const refused = rightsReason(input.rights, needs);
1267
+ if (refused !== null) return { ...base2, disabledReason: refused, run: NOOP };
1268
+ if (perform === void 0) {
1269
+ return { ...base2, disabledReason: input.host.unavailableReasons?.[base2.id] ?? ACTION_NOT_HERE_REASON, run: NOOP };
1270
+ }
1271
+ return { ...base2, run: perform };
1272
+ }
1273
+ function bind(handler, record) {
1274
+ return handler ? () => handler(record) : void 0;
1275
+ }
1276
+ function recordActions(input) {
1277
+ const { record, host } = input;
1278
+ const origin = (host.origin ?? DEFAULT_ACTION_ORIGIN).replace(/\/+$/, "");
1279
+ const url = host.href ? /^https?:/.test(host.href) ? host.href : `${origin}${host.href}` : recordLink(record.tableId, record.id, host.origin);
1280
+ const openInNewTab = host.openInNewTab;
1281
+ const copyText = host.copyText;
1282
+ const built = [
1283
+ action({ id: "open", label: "Open", icon: "folder-open", group: "open", verb: "open" }, "read", input, bind(host.open, record)),
1284
+ action(
1285
+ { id: "open-new-tab", label: "Open in new tab", icon: "external-link", group: "open", verb: "open-new-tab" },
1286
+ "read",
1287
+ input,
1288
+ openInNewTab ? () => openInNewTab(url, record) : void 0
1289
+ ),
1290
+ action(
1291
+ { id: "copy-link", label: "Copy link", icon: "link", group: "open", verb: "copy-link" },
1292
+ "read",
1293
+ input,
1294
+ copyText ? () => copyText(url, record) : void 0
1295
+ ),
1296
+ action({ id: "duplicate", label: "Duplicate", icon: "copy", group: "organize", verb: "duplicate" }, "organise", input, bind(host.duplicate, record)),
1297
+ action(
1298
+ { id: "merge", label: "Merge with\u2026", icon: "git-merge", group: "organize" },
1299
+ "organise",
1300
+ input,
1301
+ bind(host.merge, record)
1302
+ ),
1303
+ action({ id: "split", label: "Split\u2026", icon: "split", group: "organize" }, "organise", input, bind(host.split, record)),
1304
+ action(
1305
+ { id: "extract-parent", label: "Extract parent\u2026", icon: "arrow-up-from-line", group: "organize" },
1306
+ "organise",
1307
+ input,
1308
+ bind(host.extractParent, record)
1309
+ ),
1310
+ // A link is an edge beside the record, never a change to it: reading the record is enough.
1311
+ action({ id: "link-record", label: "Link a record\u2026", icon: "link-2", group: "organize" }, "read", input, bind(host.link, record)),
1312
+ action({ id: "history", label: "History", icon: "history", group: "manage", verb: "history" }, "read", input, bind(host.history, record)),
1313
+ action(
1314
+ { id: "archive", label: "Archive record", icon: "archive", group: "danger", destructive: true, verb: "archive" },
1315
+ "remove",
1316
+ input,
1317
+ bind(host.archive, record)
1318
+ )
1319
+ ];
1320
+ return withExtensions(built, host.extend ? host.extend(record, input.rights) : []);
1321
+ }
557
1322
 
558
1323
  Object.defineProperty(exports, "DEFAULT_FIELDS", {
559
1324
  enumerable: true,
@@ -575,41 +1340,81 @@ Object.defineProperty(exports, "tokenFor", {
575
1340
  enumerable: true,
576
1341
  get: function () { return fieldKinds.tokenFor; }
577
1342
  });
1343
+ Object.defineProperty(exports, "endingsFromDocument", {
1344
+ enumerable: true,
1345
+ get: function () { return forms.endingsFromDocument; }
1346
+ });
1347
+ Object.defineProperty(exports, "hiddenFromLink", {
1348
+ enumerable: true,
1349
+ get: function () { return forms.hiddenFromLink; }
1350
+ });
1351
+ Object.defineProperty(exports, "themeFromDocument", {
1352
+ enumerable: true,
1353
+ get: function () { return forms.themeFromDocument; }
1354
+ });
1355
+ Object.defineProperty(exports, "welcomeFromDocument", {
1356
+ enumerable: true,
1357
+ get: function () { return forms.welcomeFromDocument; }
1358
+ });
1359
+ exports.CUSTOM_FIELD_ADDABLE_TYPES = ADDABLE_TYPES;
1360
+ exports.FIELD_SENSITIVITY_LABEL = FIELD_SENSITIVITY_LABEL;
578
1361
  exports.NO_RIGHTS = NO_RIGHTS;
579
1362
  exports.PARITY_LABEL = PARITY_LABEL;
580
1363
  exports.PARITY_MADE_OF = PARITY_MADE_OF;
1364
+ exports.RECORDS_SKELETON_LAYOUTS = RECORDS_SKELETON_LAYOUTS;
581
1365
  exports.SOMEBODY = SOMEBODY;
582
1366
  exports.THE_SYSTEM = THE_SYSTEM;
583
1367
  exports.UNREAD_RECORD_LABEL = UNREAD_RECORD_LABEL;
1368
+ exports.VIEW_ADDRESS_KEYS = VIEW_ADDRESS_KEYS;
584
1369
  exports.WITHHELD_RECORD_LABEL = WITHHELD_RECORD_LABEL;
585
1370
  exports.WITHHELD_WORD = WITHHELD_WORD;
586
1371
  exports.actorBadge = actorBadge;
587
1372
  exports.actorWords = actorWords;
1373
+ exports.announceTableArchived = announceTableArchived;
1374
+ exports.bodyFieldOf = bodyFieldOf;
588
1375
  exports.cardTitleField = cardTitleField;
1376
+ exports.codeDependsRefusal = codeDependsRefusal;
589
1377
  exports.editorKindFor = editorKindFor;
590
1378
  exports.fieldName = fieldName;
591
1379
  exports.fieldTypeLabel = fieldTypeLabel;
592
1380
  exports.getPersonTimeZone = getPersonTimeZone;
1381
+ exports.googleCalendarUrl = googleCalendarUrl;
1382
+ exports.gridContextSnapshot = gridContextSnapshot;
1383
+ exports.isInterface = isInterface;
593
1384
  exports.isKeptTable = isKeptTable;
1385
+ exports.isPage = isPage;
594
1386
  exports.isValueSet = isValueSet;
1387
+ exports.isViewAddressEmpty = isViewAddressEmpty;
1388
+ exports.laneFor = laneFor;
595
1389
  exports.lastChangeSentence = lastChangeSentence;
596
1390
  exports.looksLikeId = looksLikeId;
597
1391
  exports.personActor = personActor;
598
1392
  exports.personWallNow = personWallNow;
599
1393
  exports.pickableTypeOf = pickableTypeOf;
1394
+ exports.platformOwned = platformOwned;
1395
+ exports.readLooks = readLooks;
1396
+ exports.recordActions = recordActions;
600
1397
  exports.recordName = recordName;
601
1398
  exports.recordNameIn = recordNameIn;
602
1399
  exports.recordsDataSource = recordsDataSource;
1400
+ exports.refusalForAPerson = refusalForAPerson;
603
1401
  exports.resolveTableStyle = resolveTableStyle;
604
1402
  exports.rowName = rowName;
605
1403
  exports.rowNameIn = rowNameIn;
1404
+ exports.sameViewAddress = sameViewAddress;
606
1405
  exports.setPersonTimeZone = setPersonTimeZone;
607
1406
  exports.singularNoun = singularNoun;
1407
+ exports.skeletonLayoutFor = skeletonLayoutFor;
608
1408
  exports.styleFromDecorations = styleFromDecorations;
609
1409
  exports.subscribePersonTimeZone = subscribePersonTimeZone;
610
1410
  exports.tableName = tableName;
611
1411
  exports.tablePickerEntries = tablePickerEntries;
612
1412
  exports.tableRightsAt = tableRightsAt;
1413
+ exports.viewAddressFromParams = viewAddressFromParams;
1414
+ exports.viewAddressToParams = viewAddressToParams;
1415
+ exports.viewFromRow = viewFromRow;
1416
+ exports.webcalUrl = webcalUrl;
1417
+ exports.whatYouMayDo = whatYouMayDo;
613
1418
  exports.whenWords = whenWords;
614
1419
  exports.withheldNoticeOf = withheldNoticeOf;
615
1420
  exports.withheldSentence = withheldSentence;