@ai-matrx/records-ui 0.116.119 → 0.116.121

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/index.d.cts CHANGED
@@ -4222,10 +4222,10 @@ declare function announceTableArchived({ notify, client, tableId, name, onRestor
4222
4222
 
4223
4223
  /** What a look may hold, with this package's grid look. */
4224
4224
  type ViewLook = base.ViewLook<GridPresentation>;
4225
- declare const lookDocument: (look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "measure" | "dateField" | "startField" | "endField" | "imageField" | "mapField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts" | "presentation">>) => Record<string, unknown>;
4226
- declare const lookFromDocument: (doc: Record<string, unknown> | null | undefined) => Partial<Pick<base.SavedViewSpec<GridPresentation>, "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "measure" | "dateField" | "startField" | "endField" | "imageField" | "mapField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts" | "presentation">>;
4227
- declare const readLooks: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookRead">, tableId: _ai_matrx_records.Uuid) => Promise<_ai_matrx_records.RecordsResult<Record<string, Partial<Pick<base.SavedViewSpec<GridPresentation>, "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "measure" | "dateField" | "startField" | "endField" | "imageField" | "mapField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts" | "presentation">>>>>;
4228
- declare const keepLook: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookSet">, tableId: _ai_matrx_records.Uuid, viewId: _ai_matrx_records.Uuid, look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "measure" | "dateField" | "startField" | "endField" | "imageField" | "mapField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts" | "presentation">> | null) => Promise<_ai_matrx_records.RecordsResult<Record<string, unknown> | null>>;
4225
+ declare const lookDocument: (look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "where" | "measure" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts" | "presentation">>) => Record<string, unknown>;
4226
+ declare const lookFromDocument: (doc: Record<string, unknown> | null | undefined) => Partial<Pick<base.SavedViewSpec<GridPresentation>, "where" | "measure" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts" | "presentation">>;
4227
+ declare const readLooks: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookRead">, tableId: _ai_matrx_records.Uuid) => Promise<_ai_matrx_records.RecordsResult<Record<string, Partial<Pick<base.SavedViewSpec<GridPresentation>, "where" | "measure" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts" | "presentation">>>>>;
4228
+ declare const keepLook: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookSet">, tableId: _ai_matrx_records.Uuid, viewId: _ai_matrx_records.Uuid, look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "where" | "measure" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts" | "presentation">> | null) => Promise<_ai_matrx_records.RecordsResult<Record<string, unknown> | null>>;
4229
4229
  /** The words of the look bar. One sentence, then the doors. */
4230
4230
  declare const LOOK_WORDS: {
4231
4231
  /** The reason, for a tooltip or a screen reader — never a line on the page (interface-text). */
package/dist/index.js CHANGED
@@ -277,7 +277,7 @@ import {
277
277
  withoutLeadingBlank,
278
278
  workedOutErrorFor,
279
279
  workedOutHoldsNumbers
280
- } from "./chunk-ZFNJTEIB.js";
280
+ } from "./chunk-U2B3TLDZ.js";
281
281
  import {
282
282
  ABSENCE_WORD_LABEL,
283
283
  ABSENCE_WORD_VALUES,
@@ -415,7 +415,7 @@ import {
415
415
  skeletonLayoutFor,
416
416
  useExpectedRows,
417
417
  useRememberedLayout
418
- } from "./chunk-ESOQXQAE.js";
418
+ } from "./chunk-7J7AUZ25.js";
419
419
  import {
420
420
  DEFAULT_FOOTER,
421
421
  EMBEDDED_LOOK,
@@ -1051,9 +1051,9 @@ function TableDetails({
1051
1051
  tableShapeChanged(tableId);
1052
1052
  onSaved?.();
1053
1053
  };
1054
- return /* @__PURE__ */ jsxs2("div", { className: "flex flex-col gap-2", "data-table-details": "", children: [
1054
+ return /* @__PURE__ */ jsxs2("div", { className: "flex flex-col gap-2", "data-table-details": "", "data-surface-value": "table_details_draft", children: [
1055
1055
  /* @__PURE__ */ jsx2("span", { className: "font-medium", children: "About this table" }),
1056
- /* @__PURE__ */ jsxs2("div", { className: "flex flex-col gap-1", children: [
1056
+ /* @__PURE__ */ jsxs2("div", { className: "flex flex-col gap-1", "data-surface-value": "table_description", children: [
1057
1057
  /* @__PURE__ */ jsx2("label", { className: "text-muted-foreground", htmlFor: `table-description-${tableId}`, children: "Description" }),
1058
1058
  /* @__PURE__ */ jsx2(
1059
1059
  Textarea,
@@ -5804,7 +5804,7 @@ function ActionForm({
5804
5804
  const first = settable2.find((f) => doc[f.key] !== null && doc[f.key] !== void 0 && doc[f.key] !== "");
5805
5805
  return first ? shown(doc[first.key]) : row.id;
5806
5806
  };
5807
- return /* @__PURE__ */ jsxs16("div", { className: cn6("flex flex-col gap-3 text-xs", className), "data-records-action-form": "", children: [
5807
+ return /* @__PURE__ */ jsxs16("div", { className: cn6("flex flex-col gap-3 text-xs", className), "data-records-action-form": "", "data-surface-value": "editing_row_action", children: [
5808
5808
  /* @__PURE__ */ jsx18("span", { className: "font-medium", children: original ? `Row action \xB7 ${original.name}` : "New row action" }),
5809
5809
  /* @__PURE__ */ jsxs16("label", { className: "flex flex-col gap-1", children: [
5810
5810
  /* @__PURE__ */ jsx18(Label4, { className: "text-xs", children: "Name" }),
@@ -5889,7 +5889,7 @@ function ActionForm({
5889
5889
  ] }) : null
5890
5890
  ] }),
5891
5891
  draft.steps.length === 0 ? /* @__PURE__ */ jsx18("p", { className: "text-muted-foreground", children: "Nothing yet. Add a change, or start from a record and remove the columns it should leave alone." }) : null,
5892
- draft.steps.map((step2, index) => /* @__PURE__ */ jsxs16("div", { className: "flex flex-wrap items-center gap-1", "data-records-action-step": index, children: [
5892
+ draft.steps.map((step2, index) => /* @__PURE__ */ jsxs16("div", { className: "flex flex-wrap items-center gap-1", "data-records-action-step": index, "data-surface-value": "row_action_step_formula", children: [
5893
5893
  /* @__PURE__ */ jsxs16(Select, { value: step2.field, onValueChange: (v) => setStep(index, { field: v }), children: [
5894
5894
  /* @__PURE__ */ jsx18(SelectTrigger, { size: "sm", "aria-label": `Column for change ${index + 1}`, children: /* @__PURE__ */ jsx18(SelectValue, { placeholder: "Column" }) }),
5895
5895
  /* @__PURE__ */ jsx18(SelectContent, { children: settable2.map((f) => /* @__PURE__ */ jsx18(SelectItem, { value: f.id, children: fieldName(f) }, f.id)) })
@@ -13990,6 +13990,7 @@ function GridBody({
13990
13990
  "div",
13991
13991
  {
13992
13992
  className: cn13("relative flex min-h-0 flex-col gap-2", fills && "flex-1", className),
13993
+ "data-surface-value": "current_cell_value",
13993
13994
  "data-records-grid-footer": footer ?? "natural",
13994
13995
  ...merged ? {
13995
13996
  // THE SUMMARY MEASURES ARE ASKED WHEN A PERSON REACHES FOR THE GRID — a header menu, a