@ai-matrx/records-ui 0.116.24 → 0.116.26

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 (69) hide show
  1. package/CHANGELOG.md +37 -1
  2. package/README.md +3 -3
  3. package/dist/SaveToTable-P3MPRSCW.js +20 -0
  4. package/dist/{chunk-WQGFKNE2.js → chunk-4NJUW3VM.js} +26 -26
  5. package/dist/chunk-4NJUW3VM.js.map +1 -0
  6. package/dist/{chunk-MUK63ANA.js → chunk-4ZS4WEEE.js} +3 -3
  7. package/dist/chunk-4ZS4WEEE.js.map +1 -0
  8. package/dist/{chunk-SYHUPGCU.js → chunk-6Z537SLG.js} +1 -1
  9. package/dist/{chunk-SYHUPGCU.js.map → chunk-6Z537SLG.js.map} +1 -1
  10. package/dist/{chunk-ODABFEHG.js → chunk-7RSMA3NK.js} +3 -3
  11. package/dist/chunk-7RSMA3NK.js.map +1 -0
  12. package/dist/{chunk-VHZKLE63.js → chunk-FLIERNH7.js} +9 -9
  13. package/dist/chunk-FLIERNH7.js.map +1 -0
  14. package/dist/{chunk-MCDA6L7E.js → chunk-HAWACXPU.js} +2 -2
  15. package/dist/chunk-HAWACXPU.js.map +1 -0
  16. package/dist/{chunk-ZNIXJ5RY.js → chunk-KQR2RA4V.js} +3 -3
  17. package/dist/{chunk-5IX4BL72.js → chunk-MBUW42SM.js} +2 -2
  18. package/dist/{chunk-5IX4BL72.js.map → chunk-MBUW42SM.js.map} +1 -1
  19. package/dist/{chunk-PPWNFIJ5.js → chunk-OV6QBL5R.js} +2 -2
  20. package/dist/{chunk-PPWNFIJ5.js.map → chunk-OV6QBL5R.js.map} +1 -1
  21. package/dist/{chunk-FECWKOWW.js → chunk-W7GR64CB.js} +1 -1
  22. package/dist/chunk-W7GR64CB.js.map +1 -0
  23. package/dist/{chunk-FHL4GG6R.js → chunk-WCQSJPLS.js} +2 -2
  24. package/dist/chunk-WCQSJPLS.js.map +1 -0
  25. package/dist/data-source.cjs.map +1 -1
  26. package/dist/data-source.d.cts +1 -1
  27. package/dist/data-source.d.ts +1 -1
  28. package/dist/data-source.js.map +1 -1
  29. package/dist/first-page.cjs.map +1 -1
  30. package/dist/first-page.d.cts +1 -1
  31. package/dist/first-page.d.ts +1 -1
  32. package/dist/first-page.js.map +1 -1
  33. package/dist/helpers.cjs +4 -4
  34. package/dist/helpers.cjs.map +1 -1
  35. package/dist/helpers.d.cts +9 -9
  36. package/dist/helpers.d.ts +9 -9
  37. package/dist/helpers.js +4 -4
  38. package/dist/helpers.js.map +1 -1
  39. package/dist/html-frame.cjs.map +1 -1
  40. package/dist/html-frame.d.cts +1 -1
  41. package/dist/html-frame.d.ts +1 -1
  42. package/dist/html-frame.js +1 -1
  43. package/dist/index.cjs +147 -116
  44. package/dist/index.cjs.map +1 -1
  45. package/dist/index.d.cts +46 -46
  46. package/dist/index.d.ts +46 -46
  47. package/dist/index.js +133 -102
  48. package/dist/index.js.map +1 -1
  49. package/dist/object-actions.cjs +2 -2
  50. package/dist/object-actions.cjs.map +1 -1
  51. package/dist/object-actions.js +3 -3
  52. package/dist/pickers.cjs +23 -23
  53. package/dist/pickers.cjs.map +1 -1
  54. package/dist/pickers.js +8 -8
  55. package/dist/skeleton.cjs.map +1 -1
  56. package/dist/skeleton.js +4 -4
  57. package/dist/table-shape.cjs.map +1 -1
  58. package/dist/table-shape.js +1 -1
  59. package/package.json +3 -3
  60. package/dist/SaveToTable-PGOQVYVS.js +0 -20
  61. package/dist/chunk-FECWKOWW.js.map +0 -1
  62. package/dist/chunk-FHL4GG6R.js.map +0 -1
  63. package/dist/chunk-MCDA6L7E.js.map +0 -1
  64. package/dist/chunk-MUK63ANA.js.map +0 -1
  65. package/dist/chunk-ODABFEHG.js.map +0 -1
  66. package/dist/chunk-VHZKLE63.js.map +0 -1
  67. package/dist/chunk-WQGFKNE2.js.map +0 -1
  68. /package/dist/{SaveToTable-PGOQVYVS.js.map → SaveToTable-P3MPRSCW.js.map} +0 -0
  69. /package/dist/{chunk-ZNIXJ5RY.js.map → chunk-KQR2RA4V.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -24,11 +24,47 @@
24
24
  - Tests: `vitest.setup.ts` gives jsdom a no-op `performance.mark` / `measure`.
25
25
  - **New subpath `@ai-matrx/records-ui/data-source`:** `recordsDataSource`, `personActor` and the who-changed words (`whenWords`, `actorWords`, `actorBadge`, `lastChangeSentence`, `SOMEBODY`, `THE_SYSTEM`) alone. `/helpers` also carries the field-type words, the colour resolver and the table builders, which read `@ai-matrx/records/core`; this entry reaches `@ai-matrx/kit` only, and shares the one data-source cache with `/helpers` and the root. Additive. Consumer action: a shell-reachable service that only binds its supabase client or says when imports from `/data-source`.
26
26
 
27
- ## 0.116.24
27
+ ## 0.116.26
28
28
 
29
29
  UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
30
30
  Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
31
31
 
32
+ ## 0.116.25
33
+
34
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
35
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
36
+ Diff: `git diff 2328dcd19a bc2243b756 -- apps/shared/records-ui/src`
37
+
38
+ Changed shipped source files (96):
39
+ - `apps/shared/records-ui/src/AccentSwatches.tsx`
40
+ - `apps/shared/records-ui/src/ActionInbox.tsx`
41
+ - `apps/shared/records-ui/src/ArchivedDisclosure.tsx`
42
+ - `apps/shared/records-ui/src/ArchivedView.tsx`
43
+ - `apps/shared/records-ui/src/BoardOptions.tsx`
44
+ - `apps/shared/records-ui/src/BookingBuilder.tsx`
45
+ - `apps/shared/records-ui/src/BookingSlots.tsx`
46
+ - `apps/shared/records-ui/src/BuildOrAsk.tsx`
47
+ - `apps/shared/records-ui/src/ButtonSettings.tsx`
48
+ - `apps/shared/records-ui/src/CalendarView.tsx`
49
+ - `apps/shared/records-ui/src/ChoiceListEditor.tsx`
50
+ - `apps/shared/records-ui/src/ColumnLook.tsx`
51
+ - ...and 84 more
52
+
53
+ ## 0.116.24
54
+
55
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
56
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
57
+ Diff: `git diff f64802f769 2328dcd19a -- apps/shared/records-ui/src`
58
+
59
+ Changed shipped source files (7):
60
+ - `apps/shared/records-ui/src/EntitySectionCard.tsx`
61
+ - `apps/shared/records-ui/src/RecordsTableCard.tsx`
62
+ - `apps/shared/records-ui/src/SectionCard.tsx`
63
+ - `apps/shared/records-ui/src/entityDoors.fixture.ts`
64
+ - `apps/shared/records-ui/src/entityTable.tsx`
65
+ - `apps/shared/records-ui/src/index.ts`
66
+ - `apps/shared/records-ui/src/sectionKeys.ts`
67
+
32
68
  ## 0.116.23
33
69
 
34
70
  SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
package/README.md CHANGED
@@ -128,7 +128,7 @@ exportable, historied — and the whole graph is created in ONE act
128
128
  (`custom.work_template_instantiate` judges it before writing any of it), so a
129
129
  half-made checklist is not a state this store can be in. The states and the
130
130
  moves offered come from `custom.work_states()`; a move the store does not list
131
- as next is not shown greyed out, it is not there.
131
+ as next is not shown grayed out, it is not there.
132
132
 
133
133
  `BookingSlots` holds the slot **first** and takes the details second — taking
134
134
  details first is how two people fill in a form and one of them finds out at the
@@ -184,7 +184,7 @@ match would pass.
184
184
  because it is what the store said, and the conflict comes with it field by
185
185
  field.
186
186
  - **Absent, never dead.** A control a person may not use is not rendered. There
187
- is no disabled "+" and no greyed settings panel anywhere in this package.
187
+ is no disabled "+" and no grayed settings panel anywhere in this package.
188
188
  - **A Field decides its editor.** The thirteen parity types come from the store
189
189
  (`custom.parity_field_types()`), generated into `@ai-matrx/records`. The unit
190
190
  and the format are on the Field because they change what the value MEANS.
@@ -192,7 +192,7 @@ match would pass.
192
192
  offered as a field proposal; a list that is not live says so; a door that does
193
193
  not exist yet is named, with the lane that owes it.
194
194
  - **Dense, one-row headers, light and dark, iOS-safe**, through the design
195
- system's own tokens — this package sets no colours of its own.
195
+ system's own tokens — this package sets no colors of its own.
196
196
 
197
197
  ## The demo
198
198
 
@@ -0,0 +1,20 @@
1
+ "use client";
2
+ "use client";
3
+ import {
4
+ SAVE_TO_TABLE_TYPES,
5
+ SaveToTable,
6
+ shapesOfSource
7
+ } from "./chunk-FLIERNH7.js";
8
+ import "./chunk-KQR2RA4V.js";
9
+ import "./chunk-7RSMA3NK.js";
10
+ import "./chunk-6Z537SLG.js";
11
+ import "./chunk-OV6QBL5R.js";
12
+ import "./chunk-4ZS4WEEE.js";
13
+ import "./chunk-WCQSJPLS.js";
14
+ import "./chunk-HKYEHBQT.js";
15
+ export {
16
+ SAVE_TO_TABLE_TYPES,
17
+ SaveToTable,
18
+ shapesOfSource
19
+ };
20
+ //# sourceMappingURL=SaveToTable-P3MPRSCW.js.map
@@ -5,11 +5,11 @@ import {
5
5
  isYearValue,
6
6
  shownAsOf,
7
7
  useEmbeddedLook
8
- } from "./chunk-MCDA6L7E.js";
8
+ } from "./chunk-HAWACXPU.js";
9
9
  import {
10
10
  HtmlSampleFrame,
11
11
  HtmlSampleTokensProvider
12
- } from "./chunk-FECWKOWW.js";
12
+ } from "./chunk-W7GR64CB.js";
13
13
  import {
14
14
  ABSENCE_WORD_LABEL,
15
15
  CONTEXT_POLICY_LABEL,
@@ -54,14 +54,14 @@ import {
54
54
  useRecordsUi,
55
55
  useTableRights,
56
56
  withoutInternalCodes
57
- } from "./chunk-ODABFEHG.js";
57
+ } from "./chunk-7RSMA3NK.js";
58
58
  import {
59
59
  kindItemWords,
60
60
  kindLabel,
61
61
  kindValueOf,
62
62
  kindValueWords,
63
63
  shapeOfValue
64
- } from "./chunk-SYHUPGCU.js";
64
+ } from "./chunk-6Z537SLG.js";
65
65
  import {
66
66
  carriesTimeOfDay,
67
67
  choiceChipLookOf,
@@ -77,7 +77,7 @@ import {
77
77
  pickableTypeOf,
78
78
  storedChoiceColor,
79
79
  systemStampOf
80
- } from "./chunk-MUK63ANA.js";
80
+ } from "./chunk-4ZS4WEEE.js";
81
81
  import {
82
82
  ADD_FIELD_SAVE_LABEL,
83
83
  EDIT_FIELD_SAVE_LABEL,
@@ -91,7 +91,7 @@ import {
91
91
  isPlainFieldType,
92
92
  isRelationFieldType,
93
93
  isSystemFieldKind
94
- } from "./chunk-FHL4GG6R.js";
94
+ } from "./chunk-WCQSJPLS.js";
95
95
  import {
96
96
  __reExport
97
97
  } from "./chunk-HKYEHBQT.js";
@@ -533,7 +533,7 @@ function ColorWell({
533
533
  BasicInput,
534
534
  {
535
535
  type: "color",
536
- "aria-label": `${label}: pick a colour`,
536
+ "aria-label": `${label}: pick a color`,
537
537
  className: "h-7 w-8 shrink-0 p-0.5",
538
538
  value: value && HEX_6.test(value) ? value : "#000000",
539
539
  disabled,
@@ -619,7 +619,7 @@ function colorPairChecks(value, format, context) {
619
619
  message: `hard to read on ${ground}`,
620
620
  fix: {
621
621
  label: "Fix with AI",
622
- ask: `The ${part} colour ${color} reads at ${ratio}:1 on ${ground}. Suggest the nearest colour that reaches 4.5:1 and keeps its hue.`
622
+ ask: `The ${part} color ${color} reads at ${ratio}:1 on ${ground}. Suggest the nearest color that reaches 4.5:1 and keeps its hue.`
623
623
  }
624
624
  });
625
625
  }
@@ -849,7 +849,7 @@ function ShadowLayersEditor({
849
849
  },
850
850
  k
851
851
  )),
852
- /* @__PURE__ */ jsx2("span", { className: "col-span-3", children: /* @__PURE__ */ jsx2(ColorWell, { id: i === 0 ? id : `${id}-${i}`, label: `${label} layer ${i + 1} colour`, value: layer.color, disabled, onChange: (c) => c && set(i, { color: c }) }) }),
852
+ /* @__PURE__ */ jsx2("span", { className: "col-span-3", children: /* @__PURE__ */ jsx2(ColorWell, { id: i === 0 ? id : `${id}-${i}`, label: `${label} layer ${i + 1} color`, value: layer.color, disabled, onChange: (c) => c && set(i, { color: c }) }) }),
853
853
  /* @__PURE__ */ jsx2("span", { className: "flex items-center justify-end", children: layers.length > 1 ? /* @__PURE__ */ jsx2("button", { type: "button", disabled, className: "text-xs text-muted-foreground hover:text-foreground", onClick: () => onChange(layers.filter((_, j) => j !== i)), children: "Remove" }) : null })
854
854
  ] }, i)),
855
855
  /* @__PURE__ */ jsx2("button", { type: "button", disabled, className: "self-start text-xs text-muted-foreground hover:text-foreground", onClick: () => onChange([...layers, NEW_LAYER]), children: "+ Layer" })
@@ -1084,10 +1084,10 @@ function htmlSampleChecks(value, _format) {
1084
1084
  const outsideFallbacks = styles.replace(/var\([^()]*(\([^()]*\))?[^()]*\)/g, "");
1085
1085
  if (FIXED_COLOUR.test(outsideFallbacks)) {
1086
1086
  out.push({
1087
- message: "fixed colours, not the theme's",
1087
+ message: "fixed colors, not the theme's",
1088
1088
  fix: {
1089
1089
  label: "Use tokens",
1090
- ask: "Rewrite this HTML sample so every colour is one of the design system's CSS variables (var(--background), var(--foreground), var(--primary), var(--border)\u2026), keeping the markup and the look the same, so it follows light and dark."
1090
+ ask: "Rewrite this HTML sample so every color is one of the design system's CSS variables (var(--background), var(--foreground), var(--primary), var(--border)\u2026), keeping the markup and the look the same, so it follows light and dark."
1091
1091
  }
1092
1092
  });
1093
1093
  }
@@ -4773,7 +4773,7 @@ import { AlchemyMenu } from "@ai-matrx/alchemy/react";
4773
4773
  import { OutboundLink as OutboundLink5 } from "@ai-matrx/kit/outbound-react";
4774
4774
  import { humanizeIdentifier } from "@ai-matrx/kit/text-case";
4775
4775
  import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
4776
- var SaveToTable = lazy(() => import("./SaveToTable-PGOQVYVS.js").then((m) => ({ default: m.SaveToTable })));
4776
+ var SaveToTable = lazy(() => import("./SaveToTable-P3MPRSCW.js").then((m) => ({ default: m.SaveToTable })));
4777
4777
  var LONGEST_READ = 5e5;
4778
4778
  var FENCE = /^```(?:json)?[ \t]*\r?\n([\s\S]*?)\r?\n?```$/;
4779
4779
  function isPlainObject(v) {
@@ -7799,8 +7799,8 @@ import { PORTAL_ACCENTS } from "@ai-matrx/records";
7799
7799
  import { cn as cn16 } from "@ai-matrx/design-system";
7800
7800
  import { STYLE_COLOR_LABELS, SWATCH_CLASS as SWATCH_CLASS2 } from "@ai-matrx/design-system/data-table";
7801
7801
  import { jsx as jsx34, jsxs as jsxs30 } from "react/jsx-runtime";
7802
- function AccentSwatches({ value, onChange, options = PORTAL_ACCENTS, noneLabel = "App colour" }) {
7803
- return /* @__PURE__ */ jsxs30("div", { className: "flex flex-wrap gap-1.5", role: "radiogroup", "aria-label": "Colour", children: [
7802
+ function AccentSwatches({ value, onChange, options = PORTAL_ACCENTS, noneLabel = "App color" }) {
7803
+ return /* @__PURE__ */ jsxs30("div", { className: "flex flex-wrap gap-1.5", role: "radiogroup", "aria-label": "Color", children: [
7804
7804
  /* @__PURE__ */ jsx34(
7805
7805
  "button",
7806
7806
  {
@@ -7972,7 +7972,7 @@ function ButtonSettingsEditor({
7972
7972
  ] })
7973
7973
  ] }),
7974
7974
  /* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-1", children: [
7975
- /* @__PURE__ */ jsx36(Label8, { className: "text-xs", children: "Colour" }),
7975
+ /* @__PURE__ */ jsx36(Label8, { className: "text-xs", children: "Color" }),
7976
7976
  /* @__PURE__ */ jsx36(
7977
7977
  AccentSwatches,
7978
7978
  {
@@ -8449,9 +8449,9 @@ function FieldEditor(props) {
8449
8449
  // patch never carried it, so the tick beside "Can hold more than one"
8450
8450
  // was decoration on an existing column — and the store's own roll-up
8451
8451
  // refusal tells a person to use exactly that tick. It is sent ALONE:
8452
- // `custom.field_update` honours a `multi`-only patch since FIX-7B-FIELD's
8453
- // migration (before it, the door read `multi` only inside its behaviour
8454
- // arm, answered "saved" and changed nothing), so there is no behaviour
8452
+ // `custom.field_update` honors a `multi`-only patch since FIX-7B-FIELD's
8453
+ // migration (before it, the door read `multi` only inside its behavior
8454
+ // arm, answered "saved" and changed nothing), so there is no behavior
8455
8455
  // word to send beside it and sending one would retype a column nobody
8456
8456
  // asked to retype.
8457
8457
  ...multiApplies(type) ? { multi: isTitle ? false : multi } : {},
@@ -8553,7 +8553,7 @@ function FieldEditor(props) {
8553
8553
  ...type === "modified_time" && watchFields.length ? { config: { only_fields: watchFields } } : {},
8554
8554
  ...type === "autonumber" && numberPrefix.trim() !== "" ? { display_format: { id: "autonumber", options: { prefix: numberPrefix.trim() } } } : {},
8555
8555
  ...type === "count" ? { via } : {},
8556
- // THE COLOURS ITS CHOICES WERE GIVEN (W1-B), on the Field's look in the same declaration:
8556
+ // THE COLORS ITS CHOICES WERE GIVEN (W1-B), on the Field's look in the same declaration:
8557
8557
  // both declare doors build the Field through `custom._field_document_for`, which keeps a
8558
8558
  // `display_format` it is handed — so the grid paints them from its first draw.
8559
8559
  ...(() => {
@@ -9889,7 +9889,7 @@ function formatControl(args) {
9889
9889
  {
9890
9890
  id: `${id}-swatch`,
9891
9891
  type: "color",
9892
- "aria-label": `${label} \u2014 pick a colour`,
9892
+ "aria-label": `${label} \u2014 pick a color`,
9893
9893
  className: "h-8 w-12 p-1",
9894
9894
  value: /^#[0-9a-fA-F]{6}$/.test(text) ? text : "#000000",
9895
9895
  disabled,
@@ -11298,8 +11298,8 @@ function ChoiceSwatch({ words, color, onColor }) {
11298
11298
  "button",
11299
11299
  {
11300
11300
  type: "button",
11301
- "aria-label": `Colour for ${words}: ${color ? STYLE_COLOR_LABELS2[color] : "none"}`,
11302
- title: color ? STYLE_COLOR_LABELS2[color] : "No colour",
11301
+ "aria-label": `Color for ${words}: ${color ? STYLE_COLOR_LABELS2[color] : "none"}`,
11302
+ title: color ? STYLE_COLOR_LABELS2[color] : "No color",
11303
11303
  "data-records-choice-swatch": color ?? "none",
11304
11304
  className: cn21(
11305
11305
  "h-4 w-4 shrink-0 rounded-full",
@@ -11307,15 +11307,15 @@ function ChoiceSwatch({ words, color, onColor }) {
11307
11307
  )
11308
11308
  }
11309
11309
  ) }),
11310
- /* @__PURE__ */ jsx43(PopoverContent7, { sizing: "content", align: "start", className: "p-2", children: /* @__PURE__ */ jsxs39("div", { className: "flex items-center gap-1", role: "radiogroup", "aria-label": `Colour for ${words}`, children: [
11310
+ /* @__PURE__ */ jsx43(PopoverContent7, { sizing: "content", align: "start", className: "p-2", children: /* @__PURE__ */ jsxs39("div", { className: "flex items-center gap-1", role: "radiogroup", "aria-label": `Color for ${words}`, children: [
11311
11311
  /* @__PURE__ */ jsx43(
11312
11312
  "button",
11313
11313
  {
11314
11314
  type: "button",
11315
11315
  role: "radio",
11316
11316
  "aria-checked": color === null,
11317
- "aria-label": "No colour",
11318
- title: "No colour",
11317
+ "aria-label": "No color",
11318
+ title: "No color",
11319
11319
  onClick: () => pick(null),
11320
11320
  className: cn21("h-5 w-5 rounded-full border border-border bg-background", color === null && "ring-2 ring-ring ring-offset-1")
11321
11321
  }
@@ -12233,4 +12233,4 @@ export {
12233
12233
  RecordNameText,
12234
12234
  HeldChangeDecision
12235
12235
  };
12236
- //# sourceMappingURL=chunk-WQGFKNE2.js.map
12236
+ //# sourceMappingURL=chunk-4NJUW3VM.js.map