@nivaro/react 0.3.36 → 0.3.37

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 (102) hide show
  1. package/dist/components/slots/CommentsSlot.js +44 -36
  2. package/dist/full.css +1 -1
  3. package/dist/hooks/useSessionRecorder.js +1 -1
  4. package/dist/index.d.ts +9 -1
  5. package/dist/shared/components/AgentBadge.js +26 -0
  6. package/dist/shared/components/AgentQuestionsCard.js +198 -0
  7. package/dist/shared/components/ItemEditForm.js +3329 -3263
  8. package/dist/shared/components/McpConnectionScope.js +480 -0
  9. package/dist/shared/components/MyWorkView.js +223 -208
  10. package/dist/shared/components/RecordReadView.js +620 -575
  11. package/dist/shared/components/chat/ChatPanel.js +683 -671
  12. package/dist/shared/components/imports/DownloadSampleButton.js +69 -0
  13. package/dist/shared/components/imports/ImportConsole.js +106 -104
  14. package/dist/shared/components/imports/RunDetailSheet.js +11 -10
  15. package/dist/shared/components/item-edit/FieldAffordances.js +32 -32
  16. package/dist/shared/components/item-edit/FormTour.js +279 -0
  17. package/dist/shared/components/item-edit/GroupSection.js +377 -360
  18. package/dist/shared/components/item-edit/PersonalDefaultControl.js +28 -28
  19. package/dist/shared/components/item-edit/entry/EntryStrip.js +30 -26
  20. package/dist/shared/components/item-edit/form-density.js +36 -0
  21. package/dist/shared/components/item-edit/useFormUsageBeacon.js +59 -46
  22. package/dist/shared/components/item-edit/usePersonalDefaults.js +312 -296
  23. package/dist/shared/components/layout-editor/AddPanel.js +349 -192
  24. package/dist/shared/components/layout-editor/DesignNode.js +126 -112
  25. package/dist/shared/components/layout-editor/EditorTopBar.js +123 -103
  26. package/dist/shared/components/layout-editor/LayoutEditor.js +829 -751
  27. package/dist/shared/components/layout-editor/PlaceTools.js +334 -0
  28. package/dist/shared/components/layout-editor/SlashInsert.js +252 -0
  29. package/dist/shared/components/layout-editor/StructureMenu.js +285 -242
  30. package/dist/shared/components/layout-editor/add-target.js +54 -43
  31. package/dist/shared/components/layout-editor/ai-forms/AiComposer.js +238 -155
  32. package/dist/shared/components/layout-editor/ai-forms/AiFormsButton.js +1 -1
  33. package/dist/shared/components/layout-editor/ai-forms/ai-forms-api.js +15 -12
  34. package/dist/shared/components/layout-editor/dnd/LayoutDndProvider.js +347 -189
  35. package/dist/shared/components/layout-editor/dnd/TrashZone.js +60 -32
  36. package/dist/shared/components/layout-editor/dnd/UndoChip.js +76 -0
  37. package/dist/shared/components/layout-editor/dnd/merge-drop.js +33 -0
  38. package/dist/shared/components/layout-editor/dnd/multi-drop.js +87 -0
  39. package/dist/shared/components/layout-editor/dnd/node.js +115 -105
  40. package/dist/shared/components/layout-editor/dnd/sensors.js +23 -0
  41. package/dist/shared/components/layout-editor/dnd/trash-drop.js +34 -28
  42. package/dist/shared/components/layout-editor/dnd/trash-links.js +97 -0
  43. package/dist/shared/components/layout-editor/even-row.js +86 -0
  44. package/dist/shared/components/layout-editor/field-list.js +99 -0
  45. package/dist/shared/components/layout-editor/format-painter.js +102 -0
  46. package/dist/shared/components/layout-editor/grid-guides.js +15 -13
  47. package/dist/shared/components/layout-editor/inspector/BehaviourSettings.js +150 -132
  48. package/dist/shared/components/layout-editor/inspector/BulkInspector.js +57 -53
  49. package/dist/shared/components/layout-editor/inspector/EvenRowAction.js +31 -0
  50. package/dist/shared/components/layout-editor/inspector/GroupInspector.js +154 -141
  51. package/dist/shared/components/layout-editor/inspector/Inspector.js +209 -178
  52. package/dist/shared/components/layout-editor/inspector/LookTab.js +106 -98
  53. package/dist/shared/components/layout-editor/inspector/RulesTab.js +38 -37
  54. package/dist/shared/components/layout-editor/inspector/kit.js +280 -223
  55. package/dist/shared/components/layout-editor/keyboard-move.js +15 -15
  56. package/dist/shared/components/layout-editor/lint/LabelStyle.js +201 -0
  57. package/dist/shared/components/layout-editor/lint/LintPanel.js +132 -84
  58. package/dist/shared/components/layout-editor/lint/lint-api.js +65 -28
  59. package/dist/shared/components/layout-editor/nav/NavTools.js +14 -12
  60. package/dist/shared/components/layout-editor/nav/ZoomControls.js +145 -0
  61. package/dist/shared/components/layout-editor/nav/useEditorNav.js +34 -32
  62. package/dist/shared/components/layout-editor/nav/view-prefs.js +100 -15
  63. package/dist/shared/components/layout-editor/outputs/LayoutFile.js +89 -0
  64. package/dist/shared/components/layout-editor/outputs/OutputsButton.js +272 -195
  65. package/dist/shared/components/layout-editor/outputs/layout-file-plan.js +176 -0
  66. package/dist/shared/components/layout-editor/outputs/output-api.js +71 -37
  67. package/dist/shared/components/layout-editor/overview/describe-conditions.js +16 -11
  68. package/dist/shared/components/layout-editor/overview/purpose.js +5 -5
  69. package/dist/shared/components/layout-editor/parity-keys.json.js +1 -1
  70. package/dist/shared/components/layout-editor/pin.js +37 -19
  71. package/dist/shared/components/layout-editor/place-clip.js +257 -0
  72. package/dist/shared/components/layout-editor/preview/PreviewModes.js +27 -26
  73. package/dist/shared/components/layout-editor/preview/PreviewPanes.js +148 -117
  74. package/dist/shared/components/layout-editor/preview/SampleRecord.js +113 -0
  75. package/dist/shared/components/layout-editor/preview/preview-model.js +79 -60
  76. package/dist/shared/components/layout-editor/preview/sample-record.js +105 -0
  77. package/dist/shared/components/layout-editor/removed-log.js +151 -0
  78. package/dist/shared/components/layout-editor/reuse/LibraryRows.js +109 -78
  79. package/dist/shared/components/layout-editor/reuse/linked-sections.js +373 -0
  80. package/dist/shared/components/layout-editor/revert-element.js +140 -0
  81. package/dist/shared/components/layout-editor/section-structure.js +193 -170
  82. package/dist/shared/components/layout-editor/settings/EntrySection.js +63 -45
  83. package/dist/shared/components/layout-editor/settings/LayoutSection.js +63 -32
  84. package/dist/shared/components/layout-editor/settings/ResolveSettings.js +179 -137
  85. package/dist/shared/components/layout-editor/settings/WhoSection.js +18 -17
  86. package/dist/shared/components/layout-editor/settings/settings-registry.js +24 -0
  87. package/dist/shared/components/layout-editor/shortcuts.js +21 -16
  88. package/dist/shared/components/layout-editor/structure-ops.js +221 -195
  89. package/dist/shared/components/layout-editor/usage/UsagePanel.js +133 -85
  90. package/dist/shared/components/layout-editor/usage/refusal-lens.js +130 -0
  91. package/dist/shared/components/layout-editor/usage/usage-api.js +12 -11
  92. package/dist/shared/components/panels/CommentPanel.js +47 -45
  93. package/dist/shared/components/panels/RevisionsPanel.js +66 -64
  94. package/dist/shared/components/panels/TaskPanel.js +395 -332
  95. package/dist/shared/components/profile/AgentsPanel.js +196 -147
  96. package/dist/shared/components/profile/ConnectionRollback.js +329 -0
  97. package/dist/shared/components/profile/MyDefaultsCard.js +526 -520
  98. package/dist/shared/lib/entry-config.js +22 -22
  99. package/dist/shared/lib/form-usage-beacon.js +91 -55
  100. package/dist/shared/lib/layout-lint.js +530 -284
  101. package/dist/shared/lib/layout-resolve.js +58 -44
  102. package/package.json +1 -1
@@ -1,27 +1,27 @@
1
1
  import { jsxs as f, Fragment as _, jsx as r } from "react/jsx-runtime";
2
2
  import { useState as x, useRef as v, useEffect as N } from "react";
3
3
  import { badgeClasses as b } from "../../../lib/entry-badge-style.js";
4
- import { entryConfigOf as w, ENTRY_THRESHOLD_DEFAULT as S, sanitizeEntryConfig as E, ENTRY_THRESHOLD_MAX as T, ENTRY_BADGE_TAG_MAX as B, BADGE_COLORS as D } from "../../../lib/entry-config.js";
5
- import { cn as p } from "../../../lib/utils.js";
4
+ import { entryConfigOf as w, ENTRY_THRESHOLD_DEFAULT as S, sanitizeEntryConfig as T, ENTRY_THRESHOLD_MAX as E, ENTRY_BADGE_TAG_MAX as B, BADGE_COLORS as D } from "../../../lib/entry-config.js";
5
+ import { cn as h } from "../../../lib/utils.js";
6
6
  import { useEntryEditor as A } from "../entry/entry-editor-context.js";
7
7
  import { presetSummary as R, withPresets as O } from "../entry/presets.js";
8
- import { Setting as d, Toggle as m, quietText as g, smallBtn as h, inputCls as k } from "./controls.js";
9
- function U(o) {
8
+ import { Setting as d, Toggle as p, quietText as g, smallBtn as m, inputCls as k } from "./controls.js";
9
+ function U(n) {
10
10
  var l;
11
- const n = w(o.layout), u = A(), t = (e, a, c = !1) => {
12
- const C = E({ ...n, ...e });
13
- (c ? o.setText : o.set)({ entry_config: C }, a);
14
- }, s = ((l = n.tab_order) == null ? void 0 : l.length) ?? 0, i = n.presets ?? [];
11
+ const o = w(n.layout), u = A(), t = (e, a, c = !1) => {
12
+ const C = T({ ...o, ...e });
13
+ (c ? n.setText : n.set)({ entry_config: C }, a);
14
+ }, s = ((l = o.tab_order) == null ? void 0 : l.length) ?? 0, i = o.presets ?? [];
15
15
  return /* @__PURE__ */ f(_, { children: [
16
16
  /* @__PURE__ */ r(
17
17
  d,
18
18
  {
19
19
  k: "layout.focus_first",
20
20
  control: /* @__PURE__ */ r(
21
- m,
21
+ p,
22
22
  {
23
23
  label: "Start on the first empty required field",
24
- checked: n.focus_first === !0,
24
+ checked: o.focus_first === !0,
25
25
  onChange: (e) => t(
26
26
  { focus_first: e || void 0 },
27
27
  e ? "Start on the first empty required field" : "Stop starting on a required field"
@@ -35,10 +35,10 @@ function U(o) {
35
35
  {
36
36
  k: "layout.enter_next",
37
37
  control: /* @__PURE__ */ r(
38
- m,
38
+ p,
39
39
  {
40
40
  label: "Enter moves to the next field",
41
- checked: n.enter_next === !0,
41
+ checked: o.enter_next === !0,
42
42
  onChange: (e) => t(
43
43
  { enter_next: e || void 0 },
44
44
  e ? "Make Enter move to the next field" : "Make Enter save again"
@@ -57,7 +57,7 @@ function U(o) {
57
57
  {
58
58
  type: "button",
59
59
  "data-tab-order-start": "",
60
- className: h,
60
+ className: m,
61
61
  disabled: u.tabOrderActive,
62
62
  onClick: u.startTabOrder,
63
63
  children: s ? "Change order on the canvas" : "Set order on the canvas"
@@ -67,7 +67,7 @@ function U(o) {
67
67
  "button",
68
68
  {
69
69
  type: "button",
70
- className: h,
70
+ className: m,
71
71
  onClick: () => t({ tab_order: void 0 }, "Clear the tab order"),
72
72
  children: "Clear"
73
73
  }
@@ -81,10 +81,10 @@ function U(o) {
81
81
  {
82
82
  k: "layout.adaptive_mode",
83
83
  control: /* @__PURE__ */ r(
84
- m,
84
+ p,
85
85
  {
86
86
  label: "Guided steps for new people",
87
- checked: n.adaptive === !0,
87
+ checked: o.adaptive === !0,
88
88
  onChange: (e) => t(
89
89
  { adaptive: e || void 0 },
90
90
  e ? "Show steps to new people" : "Stop switching between steps and tabs"
@@ -100,21 +100,39 @@ function U(o) {
100
100
  control: /* @__PURE__ */ r(
101
101
  F,
102
102
  {
103
- value: n.adaptive_threshold ?? S,
103
+ value: o.adaptive_threshold ?? S,
104
104
  label: "Records before tabs",
105
- disabled: n.adaptive !== !0,
105
+ disabled: o.adaptive !== !0,
106
106
  onChange: (e) => t({ adaptive_threshold: e }, "Change records before tabs", !0),
107
- onBlur: o.flush
107
+ onBlur: n.flush
108
108
  }
109
109
  )
110
110
  }
111
111
  ),
112
+ /* @__PURE__ */ r(
113
+ d,
114
+ {
115
+ k: "layout.tour",
116
+ control: /* @__PURE__ */ r(
117
+ p,
118
+ {
119
+ label: "First-use tour",
120
+ checked: o.tour === !0,
121
+ onChange: (e) => t(
122
+ { tour: e || void 0 },
123
+ e ? "Turn on the first-use tour" : "Turn off the first-use tour"
124
+ )
125
+ }
126
+ ),
127
+ note: o.tour ? "Each section is a step: its name, its help text, or the fields it holds. Section help text reads best here." : void 0
128
+ }
129
+ ),
112
130
  /* @__PURE__ */ r(d, { k: "layout.badge", children: /* @__PURE__ */ r(
113
131
  G,
114
132
  {
115
- config: n,
133
+ config: o,
116
134
  onChange: (e, a) => t({ badge: e }, "Change the form badge", a),
117
- onBlur: o.flush
135
+ onBlur: n.flush
118
136
  }
119
137
  ) }),
120
138
  /* @__PURE__ */ r(
@@ -122,10 +140,10 @@ function U(o) {
122
140
  {
123
141
  k: "layout.glossary",
124
142
  control: /* @__PURE__ */ r(
125
- m,
143
+ p,
126
144
  {
127
145
  label: "Glossary tooltips in help text",
128
- checked: n.glossary !== !1,
146
+ checked: o.glossary !== !1,
129
147
  onChange: (e) => t(
130
148
  { glossary: e ? void 0 : !1 },
131
149
  e ? "Turn on glossary tooltips" : "Turn off glossary tooltips"
@@ -142,7 +160,7 @@ function U(o) {
142
160
  "button",
143
161
  {
144
162
  type: "button",
145
- className: h,
163
+ className: m,
146
164
  disabled: i.length === 0,
147
165
  onClick: () => t({ presets: void 0 }, "Delete all presets"),
148
166
  children: "Delete all"
@@ -155,20 +173,20 @@ function U(o) {
155
173
  children: [
156
174
  /* @__PURE__ */ f("span", { className: "min-w-0", children: [
157
175
  /* @__PURE__ */ r("span", { className: "block truncate text-[12.5px] font-medium text-slate-800 dark:text-foreground", children: e.name }),
158
- /* @__PURE__ */ r("span", { className: p(g, "block truncate"), children: R(e) })
176
+ /* @__PURE__ */ r("span", { className: h(g, "block truncate"), children: R(e) })
159
177
  ] }),
160
178
  /* @__PURE__ */ r(
161
179
  "button",
162
180
  {
163
181
  type: "button",
164
- className: h,
182
+ className: m,
165
183
  "aria-label": `Delete preset ${e.name}`,
166
184
  onClick: () => {
167
185
  var a;
168
186
  return t(
169
187
  {
170
188
  presets: (a = O(
171
- n,
189
+ o,
172
190
  i.filter((c) => c.id !== e.id)
173
191
  )) == null ? void 0 : a.presets
174
192
  },
@@ -187,45 +205,45 @@ function U(o) {
187
205
  ] });
188
206
  }
189
207
  function F({
190
- value: o,
191
- onChange: n,
208
+ value: n,
209
+ onChange: o,
192
210
  onBlur: u,
193
211
  label: t,
194
212
  disabled: s
195
213
  }) {
196
- const [i, l] = x(String(o)), e = v(!1);
214
+ const [i, l] = x(String(n)), e = v(!1);
197
215
  return N(() => {
198
- e.current || l(String(o));
199
- }, [o]), /* @__PURE__ */ r(
216
+ e.current || l(String(n));
217
+ }, [n]), /* @__PURE__ */ r(
200
218
  "input",
201
219
  {
202
220
  type: "number",
203
221
  min: 1,
204
- max: T,
222
+ max: E,
205
223
  "aria-label": t,
206
224
  disabled: s,
207
225
  value: i,
208
- className: p(k, "w-20"),
226
+ className: h(k, "w-20"),
209
227
  onFocus: () => {
210
228
  e.current = !0;
211
229
  },
212
230
  onChange: (a) => {
213
231
  l(a.target.value);
214
232
  const c = Number(a.target.value);
215
- Number.isFinite(c) && c >= 1 && n(c);
233
+ Number.isFinite(c) && c >= 1 && o(c);
216
234
  },
217
235
  onBlur: () => {
218
- e.current = !1, l(String(o)), u();
236
+ e.current = !1, l(String(n)), u();
219
237
  }
220
238
  }
221
239
  );
222
240
  }
223
241
  function G({
224
- config: o,
225
- onChange: n,
242
+ config: n,
243
+ onChange: o,
226
244
  onBlur: u
227
245
  }) {
228
- const t = o.badge, [s, i] = x((t == null ? void 0 : t.tag) ?? ""), l = v(!1);
246
+ const t = n.badge, [s, i] = x((t == null ? void 0 : t.tag) ?? ""), l = v(!1);
229
247
  N(() => {
230
248
  l.current || i((t == null ? void 0 : t.tag) ?? "");
231
249
  }, [t == null ? void 0 : t.tag]);
@@ -240,12 +258,12 @@ function G({
240
258
  placeholder: "Short tag, e.g. Sparing",
241
259
  maxLength: B,
242
260
  value: s,
243
- className: p(k, "min-w-0 flex-1"),
261
+ className: h(k, "min-w-0 flex-1"),
244
262
  onFocus: () => {
245
263
  l.current = !0;
246
264
  },
247
265
  onChange: (a) => {
248
- i(a.target.value), n(a.target.value.trim() ? { tag: a.target.value, color: e } : void 0, !0);
266
+ i(a.target.value), o(a.target.value.trim() ? { tag: a.target.value, color: e } : void 0, !0);
249
267
  },
250
268
  onBlur: () => {
251
269
  l.current = !1, u();
@@ -256,7 +274,7 @@ function G({
256
274
  "span",
257
275
  {
258
276
  "data-badge-preview": "",
259
- className: p(
277
+ className: h(
260
278
  "inline-flex h-5 shrink-0 items-center rounded-full px-2 text-[11px] font-medium",
261
279
  b(t.color)
262
280
  ),
@@ -277,8 +295,8 @@ function G({
277
295
  "aria-label": y(a),
278
296
  "data-tip": s.trim() ? y(a) : "Type the badge text first",
279
297
  disabled: !s.trim(),
280
- onClick: () => n({ tag: s, color: a }, !1),
281
- className: p(
298
+ onClick: () => o({ tag: s, color: a }, !1),
299
+ className: h(
282
300
  "h-5 w-5 rounded-full border transition-shadow disabled:cursor-not-allowed disabled:opacity-50",
283
301
  b(a),
284
302
  e === a && !!t && "ring-2 ring-nvr-cyan/60 ring-offset-1 ring-offset-white dark:ring-offset-card"
@@ -290,7 +308,7 @@ function G({
290
308
  )
291
309
  ] });
292
310
  }
293
- const y = (o) => o.charAt(0).toUpperCase() + o.slice(1);
311
+ const y = (n) => n.charAt(0).toUpperCase() + n.slice(1);
294
312
  export {
295
313
  U as EntrySection
296
314
  };
@@ -1,17 +1,18 @@
1
- import { jsxs as m, Fragment as f, jsx as o } from "react/jsx-runtime";
2
- import { Setting as b, Segmented as g, quietText as c, PickList as _, Toggle as h } from "./controls.js";
3
- import { changeLabel as y, toggleLabel as w } from "./section-props.js";
4
- import { useFieldSources as L, numericFieldNames as S, fieldOptions as k } from "./settings-api.js";
1
+ import { jsxs as f, Fragment as g, jsx as t } from "react/jsx-runtime";
2
+ import { entryConfigOf as y, sanitizeEntryConfig as h } from "../../../lib/entry-config.js";
3
+ import { Setting as c, Segmented as b, quietText as m, PickList as _, Toggle as k } from "./controls.js";
4
+ import { changeLabel as v, toggleLabel as w } from "./section-props.js";
5
+ import { useFieldSources as C, numericFieldNames as L, fieldOptions as S } from "./settings-api.js";
5
6
  import { ToggleSetting as u } from "./ToggleSetting.js";
6
- function F(e) {
7
- const { layout: l } = e, a = l.tab_mode === "steps" ? "steps" : "tabs";
8
- return /* @__PURE__ */ m(f, { children: [
9
- /* @__PURE__ */ o(
10
- b,
7
+ function D(e) {
8
+ const { layout: o } = e, a = o.tab_mode === "steps" ? "steps" : "tabs";
9
+ return /* @__PURE__ */ f(g, { children: [
10
+ /* @__PURE__ */ t(
11
+ c,
11
12
  {
12
13
  k: "layout.tab_mode",
13
- control: /* @__PURE__ */ o(
14
- g,
14
+ control: /* @__PURE__ */ t(
15
+ b,
15
16
  {
16
17
  ariaLabel: "Loose tabs show as",
17
18
  value: a,
@@ -19,52 +20,82 @@ function F(e) {
19
20
  { value: "tabs", label: "Tabs" },
20
21
  { value: "steps", label: "Steps" }
21
22
  ],
22
- onChange: (n) => e.set({ tab_mode: n }, y("layout.tab_mode"))
23
+ onChange: (l) => e.set({ tab_mode: l }, v("layout.tab_mode"))
23
24
  }
24
25
  )
25
26
  }
26
27
  ),
27
- /* @__PURE__ */ o(u, { k: "layout.validate_before_next", props: e }),
28
- /* @__PURE__ */ o(u, { k: "layout.accordion_mode", props: e }),
29
- /* @__PURE__ */ o(v, { ...e })
28
+ /* @__PURE__ */ t(u, { k: "layout.validate_before_next", props: e }),
29
+ /* @__PURE__ */ t(u, { k: "layout.accordion_mode", props: e }),
30
+ /* @__PURE__ */ t(p, { ...e }),
31
+ /* @__PURE__ */ t(x, { ...e })
30
32
  ] });
31
33
  }
32
- function v(e) {
33
- const { fields: l, columns: a, relations: n } = L(e.collection), i = S(e.collection, l, a, n), r = e.layout.row_order_field ? String(e.layout.row_order_field) : null, d = k(l, i);
34
- return /* @__PURE__ */ o(
35
- b,
34
+ function p(e) {
35
+ const o = y(e.layout), a = o.density === "compact" ? "compact" : "comfortable";
36
+ return /* @__PURE__ */ t(
37
+ c,
38
+ {
39
+ k: "layout.density",
40
+ control: /* @__PURE__ */ t(
41
+ b,
42
+ {
43
+ ariaLabel: "Density",
44
+ value: a,
45
+ options: [
46
+ { value: "comfortable", label: "Comfortable" },
47
+ { value: "compact", label: "Compact" }
48
+ ],
49
+ onChange: (l) => e.set(
50
+ {
51
+ entry_config: h({
52
+ ...o,
53
+ density: l === "compact" ? "compact" : void 0
54
+ })
55
+ },
56
+ l === "compact" ? "Make the form compact" : "Make the form comfortable"
57
+ )
58
+ }
59
+ )
60
+ }
61
+ );
62
+ }
63
+ function x(e) {
64
+ const { fields: o, columns: a, relations: l } = C(e.collection), i = L(e.collection, o, a, l), r = e.layout.row_order_field ? String(e.layout.row_order_field) : null, s = S(o, i);
65
+ return /* @__PURE__ */ t(
66
+ c,
36
67
  {
37
68
  k: "layout.row_order_field",
38
- control: /* @__PURE__ */ o(
39
- h,
69
+ control: /* @__PURE__ */ t(
70
+ k,
40
71
  {
41
72
  label: "Let people reorder rows",
42
73
  checked: !!r,
43
74
  disabled: !r && i.length === 0,
44
- onChange: (t) => {
45
- var s;
75
+ onChange: (n) => {
76
+ var d;
46
77
  return e.set(
47
- { row_order_field: t ? ((s = d[0]) == null ? void 0 : s.value) ?? null : null },
48
- w("layout.row_order_field", t)
78
+ { row_order_field: n ? ((d = s[0]) == null ? void 0 : d.value) ?? null : null },
79
+ w("layout.row_order_field", n)
49
80
  );
50
81
  }
51
82
  }
52
83
  ),
53
- children: r ? /* @__PURE__ */ m("div", { className: "flex items-center gap-2", children: [
54
- /* @__PURE__ */ o("span", { className: c, children: "Order is saved in" }),
55
- /* @__PURE__ */ o(
84
+ children: r ? /* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: [
85
+ /* @__PURE__ */ t("span", { className: m, children: "Order is saved in" }),
86
+ /* @__PURE__ */ t(
56
87
  _,
57
88
  {
58
89
  ariaLabel: "Order field",
59
90
  value: r,
60
- options: d,
61
- onChange: (t) => t && e.set({ row_order_field: t }, "Change the field rows are ordered by")
91
+ options: s,
92
+ onChange: (n) => n && e.set({ row_order_field: n }, "Change the field rows are ordered by")
62
93
  }
63
94
  )
64
- ] }) : i.length === 0 ? /* @__PURE__ */ o("p", { className: c, children: "This collection has no number field to keep the order in." }) : null
95
+ ] }) : i.length === 0 ? /* @__PURE__ */ t("p", { className: m, children: "This collection has no number field to keep the order in." }) : null
65
96
  }
66
97
  );
67
98
  }
68
99
  export {
69
- F as LayoutSection
100
+ D as LayoutSection
70
101
  };