@nivaro/react 0.3.103 → 0.3.105

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 (28) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +1 -1
  3. package/dist/index.d.ts +15 -3
  4. package/dist/shared/components/CollectionBrowserView.js +1694 -1639
  5. package/dist/shared/components/ItemEditForm.js +2867 -2845
  6. package/dist/shared/components/imports/CollectionImportPanel.js +483 -459
  7. package/dist/shared/components/integrations/IntegrationStatusLines.js +71 -68
  8. package/dist/shared/components/item-edit/InlineTableField.js +88 -88
  9. package/dist/shared/components/item-edit/UserChip.js +38 -38
  10. package/dist/shared/components/layout-editor/DesignNode.js +16 -14
  11. package/dist/shared/components/layout-editor/LayoutEditor.js +445 -441
  12. package/dist/shared/components/layout-editor/inspector/Inspector.js +18 -18
  13. package/dist/shared/components/layout-editor/inspector/SlotInspector.js +80 -52
  14. package/dist/shared/components/layout-editor/parity-keys.json.js +1 -1
  15. package/dist/shared/components/layout-editor/settings/ButtonsSection.js +54 -26
  16. package/dist/shared/components/layout-editor/settings/settings-registry.js +23 -15
  17. package/dist/shared/components/layout-editor/useLayoutDraft.js +211 -196
  18. package/dist/shared/components/panels/ExternalRequestsChip.js +141 -122
  19. package/dist/shared/components/quick-filters/QuickFilterBarEditor.js +334 -0
  20. package/dist/shared/components/quick-filters/QuickFilterFieldPicker.js +151 -0
  21. package/dist/shared/components/quick-filters/QuickFilterForm.js +371 -0
  22. package/dist/shared/components/quick-filters/config.js +63 -0
  23. package/dist/shared/components/quick-filters/facets.js +55 -0
  24. package/dist/shared/components/quick-filters/useQuickFilterEditing.js +95 -0
  25. package/dist/shared/lib/entry-config.js +7 -7
  26. package/dist/shared/lib/integration-chip.js +10 -6
  27. package/dist/shared/lib/owners-header-tile.js +63 -0
  28. package/package.json +1 -1
@@ -1,45 +1,73 @@
1
- import { jsxs as d, Fragment as u, jsx as t } from "react/jsx-runtime";
2
- import { flag as a } from "./section-props.js";
3
- import { TextSetting as s } from "./TextSetting.js";
4
- import { ToggleSetting as l } from "./ToggleSetting.js";
5
- function r(e) {
1
+ import { jsxs as s, Fragment as r, jsx as t } from "react/jsx-runtime";
2
+ import { entryConfigOf as u, sanitizeEntryConfig as d } from "../../../lib/entry-config.js";
3
+ import { Setting as f, Toggle as c } from "./controls.js";
4
+ import { flag as a, toggleLabel as y } from "./section-props.js";
5
+ import { TextSetting as _ } from "./TextSetting.js";
6
+ import { ToggleSetting as n } from "./ToggleSetting.js";
7
+ function g(e) {
6
8
  return e.kind !== "grouped" ? "No effect on this kind of layout: the Dossier button follows the default form." : a(e.layout.is_active) ? null : "Takes effect while this form is the default; until then the default form decides.";
7
9
  }
8
- function c(e) {
9
- const i = a(e.layout.dossier_enabled), o = r(e), n = e.kind !== "grouped";
10
- return /* @__PURE__ */ d(u, { children: [
11
- /* @__PURE__ */ t(l, { k: "layout.ai_enabled", props: e }),
10
+ function w(e) {
11
+ const o = a(e.layout.dossier_enabled), l = g(e), i = e.kind !== "grouped";
12
+ return /* @__PURE__ */ s(r, { children: [
13
+ /* @__PURE__ */ t(n, { k: "layout.ai_enabled", props: e }),
12
14
  /* @__PURE__ */ t(
13
- l,
15
+ n,
14
16
  {
15
17
  k: "layout.dossier_enabled",
16
18
  props: e,
17
- disabled: n && !i,
18
- note: o ?? void 0
19
+ disabled: i && !o,
20
+ note: l ?? void 0
19
21
  }
20
22
  ),
21
23
  /* @__PURE__ */ t(
22
- s,
24
+ _,
23
25
  {
24
26
  k: "layout.dossier_label",
25
27
  props: e,
26
28
  placeholder: "Dossier",
27
- disabled: !i,
28
- note: i ? o : "Turn on the Dossier button first."
29
+ disabled: !o,
30
+ note: o ? l : "Turn on the Dossier button first."
29
31
  }
30
32
  ),
31
- /* @__PURE__ */ t(l, { k: "layout.disable_comments", props: e }),
32
- /* @__PURE__ */ t(l, { k: "layout.disable_tasks", props: e }),
33
- /* @__PURE__ */ t(l, { k: "layout.disable_revisions", props: e }),
34
- /* @__PURE__ */ t(l, { k: "layout.disable_clone", props: e }),
35
- /* @__PURE__ */ t(l, { k: "layout.disable_delete", props: e }),
36
- /* @__PURE__ */ t(l, { k: "layout.hide_integrity_banner", props: e }),
37
- /* @__PURE__ */ t(l, { k: "layout.hide_sla_banner", props: e }),
38
- /* @__PURE__ */ t(l, { k: "layout.changes_tray", props: e }),
39
- /* @__PURE__ */ t(l, { k: "layout.allow_schedule", props: e }),
40
- /* @__PURE__ */ t(l, { k: "layout.allow_disable_pickers", props: e })
33
+ /* @__PURE__ */ t(n, { k: "layout.disable_comments", props: e }),
34
+ /* @__PURE__ */ t(n, { k: "layout.disable_tasks", props: e }),
35
+ /* @__PURE__ */ t(n, { k: "layout.disable_revisions", props: e }),
36
+ /* @__PURE__ */ t(n, { k: "layout.disable_clone", props: e }),
37
+ /* @__PURE__ */ t(n, { k: "layout.disable_delete", props: e }),
38
+ /* @__PURE__ */ t(n, { k: "layout.hide_integrity_banner", props: e }),
39
+ /* @__PURE__ */ t(n, { k: "layout.hide_sla_banner", props: e }),
40
+ /* @__PURE__ */ t(k, { ...e }),
41
+ /* @__PURE__ */ t(n, { k: "layout.changes_tray", props: e }),
42
+ /* @__PURE__ */ t(n, { k: "layout.allow_schedule", props: e }),
43
+ /* @__PURE__ */ t(n, { k: "layout.allow_disable_pickers", props: e })
41
44
  ] });
42
45
  }
46
+ function k(e) {
47
+ const o = u(e.layout), l = o.external_requests !== !1;
48
+ return /* @__PURE__ */ t(
49
+ f,
50
+ {
51
+ k: "layout.external_requests",
52
+ control: /* @__PURE__ */ t(
53
+ c,
54
+ {
55
+ label: "Show external requests",
56
+ checked: l,
57
+ onChange: (i) => e.set(
58
+ {
59
+ entry_config: d({
60
+ ...o,
61
+ external_requests: i ? void 0 : !1
62
+ })
63
+ },
64
+ y("layout.external_requests", i)
65
+ )
66
+ }
67
+ )
68
+ }
69
+ );
70
+ }
43
71
  export {
44
- c as ButtonsSection
72
+ w as ButtonsSection
45
73
  };
@@ -9,7 +9,7 @@ const y = [
9
9
  { id: "entry", title: "Entering data" },
10
10
  { id: "inheritance", title: "Inheritance" },
11
11
  { id: "tools", title: "AI review, previews, version history" }
12
- ], o = ["grouped", "table", "file", "addendum", "detail", "summary"], t = ["grouped", "table", "detail", "summary"], l = ["grouped", "detail", "summary"], s = ["grouped"], c = [
12
+ ], o = ["grouped", "table", "file", "addendum", "detail", "summary"], t = ["grouped", "table", "detail", "summary"], i = ["grouped", "detail", "summary"], s = ["grouped"], c = [
13
13
  // ── Who gets this form ────────────────────────────────────────────────────
14
14
  {
15
15
  key: "layout.layout_type",
@@ -128,14 +128,14 @@ const y = [
128
128
  section: "buttons",
129
129
  label: "Dossier button",
130
130
  effect: "Adds a Dossier button on saved records: one PDF with values, workflow history, comments and tasks. Only the default form's switch counts.",
131
- types: l
131
+ types: i
132
132
  },
133
133
  {
134
134
  key: "layout.dossier_label",
135
135
  section: "buttons",
136
136
  label: "Dossier button label",
137
137
  effect: "Text on the Dossier button. Empty shows “Dossier”. Only the default form's label counts.",
138
- types: l
138
+ types: i
139
139
  },
140
140
  {
141
141
  key: "layout.disable_comments",
@@ -186,6 +186,14 @@ const y = [
186
186
  effect: "Records past an SLA no longer show the breach strip.",
187
187
  types: t
188
188
  },
189
+ {
190
+ key: "layout.external_requests",
191
+ section: "buttons",
192
+ label: "Show external requests",
193
+ effect: "The header shows what this record sent to partner systems, on collections that send anything.",
194
+ types: i,
195
+ keywords: "integrations erp partner chip header"
196
+ },
189
197
  {
190
198
  key: "layout.changes_tray",
191
199
  section: "buttons",
@@ -213,14 +221,14 @@ const y = [
213
221
  section: "read",
214
222
  label: "Summary side panel",
215
223
  effect: "Shows a side panel with the summary fields beside the form.",
216
- types: l
224
+ types: i
217
225
  },
218
226
  {
219
227
  key: "layout.summary_hide_empty",
220
228
  section: "read",
221
229
  label: "Summary: hide empty fields",
222
230
  effect: "Fields with no value are left out of the summary panel.",
223
- types: l
231
+ types: i
224
232
  },
225
233
  {
226
234
  key: "layout.display_mode",
@@ -546,7 +554,7 @@ const y = [
546
554
  section: "tools",
547
555
  label: "Form cost limit",
548
556
  effect: "Test and Check impact warn when opening a record on this form takes more requests than this.",
549
- types: l,
557
+ types: i,
550
558
  keywords: "requests pickers grids widgets queries slow"
551
559
  },
552
560
  {
@@ -565,20 +573,20 @@ function p(e) {
565
573
  return a === "table" || a === "file" || a === "addendum" || a === "detail" || a === "summary" ? a : "grouped";
566
574
  }
567
575
  function u(e, a) {
568
- const i = a.toLowerCase().split(/\s+/).filter(Boolean);
569
- if (i.length === 0) return !0;
570
- const n = `${e.label} ${e.effect} ${e.key} ${e.keywords ?? ""}`.toLowerCase();
571
- return i.every((r) => n.includes(r));
576
+ const n = a.toLowerCase().split(/\s+/).filter(Boolean);
577
+ if (n.length === 0) return !0;
578
+ const l = `${e.label} ${e.effect} ${e.key} ${e.keywords ?? ""}`.toLowerCase();
579
+ return n.every((r) => l.includes(r));
572
580
  }
573
581
  function m(e, a = "") {
574
- const i = [];
575
- for (const n of y) {
582
+ const n = [];
583
+ for (const l of y) {
576
584
  const r = c.filter(
577
- (d) => d.section === n.id && d.types.includes(e) && u(d, a)
585
+ (d) => d.section === l.id && d.types.includes(e) && u(d, a)
578
586
  );
579
- r.length && i.push({ section: n, settings: r });
587
+ r.length && n.push({ section: l, settings: r });
580
588
  }
581
- return i;
589
+ return n;
582
590
  }
583
591
  export {
584
592
  y as SECTIONS,