@declarion/react 0.254.0 → 0.302.0

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 (31) hide show
  1. package/dist-lib/components/actions/ResponsiveActionBar.js +255 -239
  2. package/dist-lib/components/detail-layout/DetailHighlights.js +40 -40
  3. package/dist-lib/components/detail-layout/EvidenceBlock.js +10 -9
  4. package/dist-lib/components/detail-layout/useQuickAdd.js +45 -47
  5. package/dist-lib/components/fields/EnumField.js +25 -25
  6. package/dist-lib/components/fields/JsonField.js +8 -5
  7. package/dist-lib/components/fields/cells/factories/badge.js +14 -27
  8. package/dist-lib/components/fields/cells/factories/statusPill.js +13 -26
  9. package/dist-lib/components/fields/cells/factories/tagList.js +13 -26
  10. package/dist-lib/components/pages/SmartDetailPage.impl.js +416 -415
  11. package/dist-lib/components/pages/auth/AuthShell.js +57 -76
  12. package/dist-lib/components/pages/list/ListCardRow.js +66 -66
  13. package/dist-lib/components/pages/list/columns.js +30 -30
  14. package/dist-lib/components/pages/profile/Profile.impl.js +130 -126
  15. package/dist-lib/components/pages/tenant-params/TenantParamsPage.impl.js +107 -109
  16. package/dist-lib/components/params/ParamsBlock.js +42 -37
  17. package/dist-lib/components/params/param-editors.js +20 -33
  18. package/dist-lib/components/primitives/Btn.js +3 -0
  19. package/dist-lib/components/primitives/IconBtn.js +2 -2
  20. package/dist-lib/components/primitives/Pill.js +36 -15
  21. package/dist-lib/components/shared/StatusGroupsDisplay.js +49 -49
  22. package/dist-lib/declarion-react.css +1 -1
  23. package/dist-lib/hooks/useDeclaredEnum.js +38 -0
  24. package/dist-lib/hooks/useResponsiveMode.js +1 -1
  25. package/dist-lib/index.d.ts +34 -12
  26. package/dist-lib/index.js +123 -122
  27. package/dist-lib/lib/evidence-verdict.js +8 -20
  28. package/dist-lib/lib/fill-from.js +15 -0
  29. package/dist-lib/testing.d.ts +1 -1
  30. package/dist-lib/{useResponsiveMode-DjoWkC2n.d.ts → useResponsiveMode-CBSHZBY5.d.ts} +3 -1
  31. package/package.json +1 -1
@@ -7,17 +7,17 @@ import { Spinner as a } from "../primitives/Spinner.js";
7
7
  import { DynamicIcon as o } from "../shared/DynamicIcon.js";
8
8
  import { actionTooltip as s, isNavDefaultCode as c, rowDetailId as l } from "../../lib/actions.js";
9
9
  import { useText as u } from "../../hooks/useText.js";
10
- import { Fragment as d, useCallback as f, useEffect as p, useLayoutEffect as m, useMemo as h, useRef as g, useState as _ } from "react";
11
- import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
10
+ import { Fragment as d, forwardRef as f, useCallback as p, useEffect as m, useLayoutEffect as h, useMemo as g, useRef as _, useState as v } from "react";
11
+ import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
12
12
  // src/components/actions/ResponsiveActionBar.tsx
13
- function x(e, t) {
13
+ function S(e, t) {
14
14
  return e.replace(/\$\{([^}]+)\}/g, (e, n) => Object.prototype.hasOwnProperty.call(t, n) ? t[n] : e);
15
15
  }
16
- function S(e) {
16
+ function C(e) {
17
17
  return e.widget ? "widget" : e.href ? "href" : e.handler ? "handler" : e.association ? "association" : e.ui_steps && e.ui_steps.length > 0 ? "ui_steps" : "unknown";
18
18
  }
19
- function C(e, t, n, r, i) {
20
- let a = S(t), o = l(n, r?.entity), s = r?.entityCode ?? "";
19
+ function w(e, t, n, r, i) {
20
+ let a = C(t), o = l(n, r?.entity), s = r?.entityCode ?? "";
21
21
  if (e === "__peek") return i?.({
22
22
  code: e,
23
23
  entity: s,
@@ -31,7 +31,7 @@ function C(e, t, n, r, i) {
31
31
  rowId: o
32
32
  }), a === "widget") return console.warn(`[ResponsiveActionBar] widget "${t.widget}" requested for action "${e}" but the SDK has no widget registry yet; falling back to onRun.`), !1;
33
33
  if (a === "href" && r) {
34
- let n = e === "__open" || e === "__edit" ? r.recordHref?.(o) : null, i = n ? e === "__edit" ? `${n}?edit=true` : n : x(t.href ?? "", {
34
+ let n = e === "__open" || e === "__edit" ? r.recordHref?.(o) : null, i = n ? e === "__edit" ? `${n}?edit=true` : n : S(t.href ?? "", {
35
35
  entity: s,
36
36
  id: encodeURIComponent(o)
37
37
  }), a = i.indexOf("?");
@@ -39,27 +39,27 @@ function C(e, t, n, r, i) {
39
39
  }
40
40
  return a === "handler" || a === "association" || a === "ui_steps" || a === "unknown" && console.warn(`[ResponsiveActionBar] no dispatch mode set on action "${e}" (none of handler/association/widget/href/ui_steps).`), !1;
41
41
  }
42
- function w(e) {
42
+ function T(e) {
43
43
  let t = 0;
44
- for (let n of e) n.kind === "action" ? t++ : t += w(n.items);
44
+ for (let n of e) n.kind === "action" ? t++ : t += T(n.items);
45
45
  return t;
46
46
  }
47
- function T(e, t, n) {
47
+ function E(e, t, n) {
48
48
  let r = [], i = [];
49
- for (let a of e) a.kind === "action" && D(a.code, t, n)?.destructive ? i.push(a) : r.push(a);
49
+ for (let a of e) a.kind === "action" && O(a.code, t, n)?.destructive ? i.push(a) : r.push(a);
50
50
  return {
51
51
  normal: r,
52
52
  destructive: i
53
53
  };
54
54
  }
55
- function E(e, t, n) {
55
+ function D(e, t, n) {
56
56
  let r = [], i = [], a = [];
57
57
  for (let o of e) {
58
58
  if (o.kind !== "action") {
59
59
  i.push(o);
60
60
  continue;
61
61
  }
62
- let e = D(o.code, t, n), s = e?.destructive === !0, c = e?.display?.primary === !0;
62
+ let e = O(o.code, t, n), s = e?.destructive === !0, c = e?.display?.primary === !0;
63
63
  s && c ? (console.warn(`[ResponsiveActionBar] action "${o.code}" declares both primary and destructive; treating as destructive.`), a.push(o)) : s ? a.push(o) : c ? r.push(o) : i.push(o);
64
64
  }
65
65
  return {
@@ -68,25 +68,25 @@ function E(e, t, n) {
68
68
  destructive: a
69
69
  };
70
70
  }
71
- function D(e, t, n) {
71
+ function O(e, t, n) {
72
72
  if (t && e in t) return t[e];
73
73
  if (n && e in n) return n[e];
74
74
  }
75
- function O(e, t, n, r) {
76
- return e(D(t, n, r)?.display?.name) || t;
75
+ function k(e, t, n, r) {
76
+ return e(O(t, n, r)?.display?.name) || t;
77
77
  }
78
- function k(e, t, n) {
79
- return D(e, t, n)?.display?.icon || void 0;
78
+ function A(e, t, n) {
79
+ return O(e, t, n)?.display?.icon || void 0;
80
80
  }
81
- function A(e) {
81
+ function j(e) {
82
82
  return `action-tooltip-${e}`;
83
83
  }
84
- function j({ leaf: t, entityActions: n, globalActions: r, onRun: i, loading: c, onLoadingChange: l, measureRef: d, style: p, row: m, widgetContext: h, onActionClick: g, iconOnly: _ = !1 }) {
85
- let x = u(), S = D(t.code, n, r), w = O(x, t.code, n, r), T = k(t.code, n, r), E = S?.destructive ?? !1, j = !E && S?.display?.primary === !0, M = !t.enabled, N = M ? A(t.code) : void 0, P = f(async () => {
84
+ function M({ leaf: t, entityActions: n, globalActions: r, onRun: i, loading: c, onLoadingChange: l, measureRef: d, style: f, row: m, widgetContext: h, onActionClick: g, iconOnly: _ = !1 }) {
85
+ let v = u(), S = O(t.code, n, r), C = k(v, t.code, n, r), T = A(t.code, n, r), E = S?.destructive ?? !1, D = !E && S?.display?.primary === !0, M = !t.enabled, N = M ? j(t.code) : void 0, P = p(async () => {
86
86
  if (!(!S || M || c)) {
87
87
  l(!0);
88
88
  try {
89
- C(t.code, S, m, h, g) || await Promise.resolve(i(t.code, S));
89
+ w(t.code, S, m, h, g) || await Promise.resolve(i(t.code, S));
90
90
  } finally {
91
91
  l(!1);
92
92
  }
@@ -101,11 +101,11 @@ function j({ leaf: t, entityActions: n, globalActions: r, onRun: i, loading: c,
101
101
  m,
102
102
  h,
103
103
  g
104
- ]), F = c ? /* @__PURE__ */ y(a, { size: 12 }) : T ? /* @__PURE__ */ y(o, {
104
+ ]), F = c ? /* @__PURE__ */ b(a, { size: 12 }) : T ? /* @__PURE__ */ b(o, {
105
105
  name: T,
106
106
  size: 12
107
107
  }) : null;
108
- return /* @__PURE__ */ b(v, { children: [N && t.reason && /* @__PURE__ */ y("span", {
108
+ return /* @__PURE__ */ x(y, { children: [N && t.reason && /* @__PURE__ */ b("span", {
109
109
  id: N,
110
110
  role: "tooltip",
111
111
  style: {
@@ -116,49 +116,49 @@ function j({ leaf: t, entityActions: n, globalActions: r, onRun: i, loading: c,
116
116
  clip: "rect(0,0,0,0)"
117
117
  },
118
118
  children: t.reason
119
- }), /* @__PURE__ */ y(e, {
119
+ }), /* @__PURE__ */ b(e, {
120
120
  ref: d,
121
- kind: j ? "primary" : "default",
121
+ kind: D ? "primary" : "default",
122
122
  danger: E,
123
123
  icon: F,
124
124
  disabled: M || c,
125
125
  "aria-disabled": M ? "true" : void 0,
126
126
  "aria-describedby": N,
127
- "aria-label": _ ? w : void 0,
128
- title: s(x, S, w, M, t.reason, _),
127
+ "aria-label": _ ? C : void 0,
128
+ title: s(v, S, C, M, t.reason, _),
129
129
  onClick: P,
130
- style: p,
131
- children: _ ? null : w
130
+ style: f,
131
+ children: _ ? null : C
132
132
  })] });
133
133
  }
134
- function M({ group: r, entityActions: i, globalActions: s, onRun: c, loading: l, onLoadingChange: d, measureRef: p, style: m, row: h, widgetContext: x, onActionClick: S }) {
135
- let C = u(), w = g(null), [T, E] = _(!1), D = r.name ? C(r.name) : C("action.menu.title", "Actions"), O = f((e) => {
136
- w.current = e, p?.(e);
137
- }, [p]), k = f((e, t) => (E(!1), c(e, t)), [c]);
138
- return /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(e, {
134
+ function N({ group: r, entityActions: i, globalActions: s, onRun: c, loading: l, onLoadingChange: d, measureRef: f, style: m, row: h, widgetContext: g, onActionClick: S }) {
135
+ let C = u(), w = _(null), [T, E] = v(!1), D = r.name ? C(r.name) : C("action.menu.title", "Actions"), O = p((e) => {
136
+ w.current = e, f?.(e);
137
+ }, [f]), k = p((e, t) => (E(!1), c(e, t)), [c]);
138
+ return /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(e, {
139
139
  ref: O,
140
140
  kind: "default",
141
- icon: l == null ? r.icon ? /* @__PURE__ */ y(o, {
141
+ icon: l == null ? r.icon ? /* @__PURE__ */ b(o, {
142
142
  name: r.icon,
143
143
  size: 12
144
- }) : void 0 : /* @__PURE__ */ y(a, { size: 12 }),
145
- iconRight: /* @__PURE__ */ y(n.down, { size: 10 }),
144
+ }) : void 0 : /* @__PURE__ */ b(a, { size: 12 }),
145
+ iconRight: /* @__PURE__ */ b(n.down, { size: 10 }),
146
146
  "aria-haspopup": "menu",
147
147
  "aria-expanded": T ? "true" : "false",
148
148
  title: D,
149
149
  onClick: () => E((e) => !e),
150
150
  style: m,
151
151
  children: D
152
- }), /* @__PURE__ */ y(t, {
152
+ }), /* @__PURE__ */ b(t, {
153
153
  open: T,
154
154
  anchor: w.current,
155
155
  onClose: () => E(!1),
156
156
  align: "start",
157
157
  width: 200,
158
- children: /* @__PURE__ */ y("div", {
158
+ children: /* @__PURE__ */ b("div", {
159
159
  role: "menu",
160
160
  "aria-label": D,
161
- children: r.items.map((e) => e.kind === "action" ? /* @__PURE__ */ y(N, {
161
+ children: r.items.map((e) => e.kind === "action" ? /* @__PURE__ */ b(P, {
162
162
  leaf: e,
163
163
  entityActions: i,
164
164
  globalActions: s,
@@ -166,9 +166,9 @@ function M({ group: r, entityActions: i, globalActions: s, onRun: c, loading: l,
166
166
  loading: l === e.code,
167
167
  onLoadingChange: (t) => d(t ? e.code : null),
168
168
  row: h,
169
- widgetContext: x,
169
+ widgetContext: g,
170
170
  onActionClick: S
171
- }, e.code) : /* @__PURE__ */ y(P, {
171
+ }, e.code) : /* @__PURE__ */ b(F, {
172
172
  group: e,
173
173
  entityActions: i,
174
174
  globalActions: s,
@@ -176,18 +176,18 @@ function M({ group: r, entityActions: i, globalActions: s, onRun: c, loading: l,
176
176
  loading: l,
177
177
  onLoadingChange: d,
178
178
  row: h,
179
- widgetContext: x,
179
+ widgetContext: g,
180
180
  onActionClick: S
181
181
  }, e.items[0]?.kind === "action" ? e.items[0].code : e.icon ?? "group"))
182
182
  })
183
183
  })] });
184
184
  }
185
- function N({ leaf: e, entityActions: t, globalActions: n, onRun: r, loading: i, onLoadingChange: c, row: l, widgetContext: d, onActionClick: f }) {
186
- let p = u(), m = D(e.code, t, n), h = O(p, e.code, t, n), g = k(e.code, t, n), _ = m?.destructive ?? !1, x = !e.enabled, S = x ? A(e.code) : void 0, w = i ? /* @__PURE__ */ y(a, { size: 12 }) : g ? /* @__PURE__ */ y(o, {
185
+ function P({ leaf: e, entityActions: t, globalActions: n, onRun: r, loading: i, onLoadingChange: c, row: l, widgetContext: d, onActionClick: f }) {
186
+ let p = u(), m = O(e.code, t, n), h = k(p, e.code, t, n), g = A(e.code, t, n), _ = m?.destructive ?? !1, v = !e.enabled, S = v ? j(e.code) : void 0, C = i ? /* @__PURE__ */ b(a, { size: 12 }) : g ? /* @__PURE__ */ b(o, {
187
187
  name: g,
188
188
  size: 12
189
189
  }) : null;
190
- return /* @__PURE__ */ b(v, { children: [S && e.reason && /* @__PURE__ */ y("span", {
190
+ return /* @__PURE__ */ x(y, { children: [S && e.reason && /* @__PURE__ */ b("span", {
191
191
  id: S,
192
192
  role: "tooltip",
193
193
  style: {
@@ -198,16 +198,16 @@ function N({ leaf: e, entityActions: t, globalActions: n, onRun: r, loading: i,
198
198
  clip: "rect(0,0,0,0)"
199
199
  },
200
200
  children: e.reason
201
- }), /* @__PURE__ */ b("div", {
201
+ }), /* @__PURE__ */ x("div", {
202
202
  role: "menuitem",
203
- "aria-disabled": x ? "true" : void 0,
203
+ "aria-disabled": v ? "true" : void 0,
204
204
  "aria-describedby": S,
205
- title: s(p, m, h, x, e.reason),
205
+ title: s(p, m, h, v, e.reason),
206
206
  onClick: async () => {
207
- if (!(!m || x || i)) {
207
+ if (!(!m || v || i)) {
208
208
  c(!0);
209
209
  try {
210
- C(e.code, m, l, d, f) || await Promise.resolve(r(e.code, m));
210
+ w(e.code, m, l, d, f) || await Promise.resolve(r(e.code, m));
211
211
  } finally {
212
212
  c(!1);
213
213
  }
@@ -220,31 +220,31 @@ function N({ leaf: e, entityActions: t, globalActions: n, onRun: r, loading: i,
220
220
  padding: "6px 10px",
221
221
  borderRadius: "var(--radius-sm)",
222
222
  fontSize: 12.5,
223
- color: _ ? "var(--danger)" : x ? "var(--text-3)" : "var(--text-2)",
224
- cursor: x ? "not-allowed" : "pointer",
225
- opacity: x ? .6 : 1
223
+ color: _ ? "var(--danger)" : v ? "var(--text-3)" : "var(--text-2)",
224
+ cursor: v ? "not-allowed" : "pointer",
225
+ opacity: v ? .6 : 1
226
226
  },
227
227
  onMouseEnter: (e) => {
228
- x || (e.currentTarget.style.background = "var(--surface-3)");
228
+ v || (e.currentTarget.style.background = "var(--surface-3)");
229
229
  },
230
230
  onMouseLeave: (e) => {
231
231
  e.currentTarget.style.background = "transparent";
232
232
  },
233
- children: [w && /* @__PURE__ */ y("span", {
233
+ children: [C && /* @__PURE__ */ b("span", {
234
234
  style: {
235
235
  color: _ ? "var(--danger)" : "var(--text-3)",
236
236
  display: "flex"
237
237
  },
238
- children: w
239
- }), /* @__PURE__ */ y("span", {
238
+ children: C
239
+ }), /* @__PURE__ */ b("span", {
240
240
  style: { flex: 1 },
241
241
  children: h
242
242
  })]
243
243
  })] });
244
244
  }
245
- function P({ group: e, entityActions: t, globalActions: n, onRun: r, loading: i, onLoadingChange: a, row: o, widgetContext: s, onActionClick: c }) {
245
+ function F({ group: e, entityActions: t, globalActions: n, onRun: r, loading: i, onLoadingChange: a, row: o, widgetContext: s, onActionClick: c }) {
246
246
  let l = u(), d = e.name ? l(e.name) : void 0;
247
- return /* @__PURE__ */ b(v, { children: [d && /* @__PURE__ */ y("div", {
247
+ return /* @__PURE__ */ x(y, { children: [d && /* @__PURE__ */ b("div", {
248
248
  style: {
249
249
  padding: "4px 10px 2px",
250
250
  fontSize: 10.5,
@@ -254,7 +254,7 @@ function P({ group: e, entityActions: t, globalActions: n, onRun: r, loading: i,
254
254
  letterSpacing: "0.05em"
255
255
  },
256
256
  children: d
257
- }), e.items.map((e) => e.kind === "action" ? /* @__PURE__ */ y(N, {
257
+ }), e.items.map((e) => e.kind === "action" ? /* @__PURE__ */ b(P, {
258
258
  leaf: e,
259
259
  entityActions: t,
260
260
  globalActions: n,
@@ -264,7 +264,7 @@ function P({ group: e, entityActions: t, globalActions: n, onRun: r, loading: i,
264
264
  row: o,
265
265
  widgetContext: s,
266
266
  onActionClick: c
267
- }, e.code) : /* @__PURE__ */ y(P, {
267
+ }, e.code) : /* @__PURE__ */ b(F, {
268
268
  group: e,
269
269
  entityActions: t,
270
270
  globalActions: n,
@@ -276,32 +276,32 @@ function P({ group: e, entityActions: t, globalActions: n, onRun: r, loading: i,
276
276
  onActionClick: c
277
277
  }, e.icon ?? "nested"))] });
278
278
  }
279
- function F({ layout: e, entityActions: i, globalActions: o, onRun: s, row: c, widgetContext: l, onActionClick: d }) {
280
- let p = u(), m = g(null), [h, v] = _(!1), [x, S] = _(null), C = f((e, t) => (v(!1), s(e, t)), [s]);
281
- return w(e) === 0 ? null : /* @__PURE__ */ b("div", {
279
+ function I({ layout: e, entityActions: i, globalActions: o, onRun: s, row: c, widgetContext: l, onActionClick: d }) {
280
+ let f = u(), m = _(null), [h, g] = v(!1), [y, S] = v(null), C = p((e, t) => (g(!1), s(e, t)), [s]);
281
+ return T(e) === 0 ? null : /* @__PURE__ */ x("div", {
282
282
  "data-open": h ? "true" : void 0,
283
283
  style: {
284
284
  display: "inline-flex",
285
285
  alignItems: "center"
286
286
  },
287
- children: [/* @__PURE__ */ y(r, {
287
+ children: [/* @__PURE__ */ b(r, {
288
288
  ref: m,
289
- icon: y(x == null ? n.more : a, { size: 14 }),
290
- title: p("action.menu.title", "Actions"),
289
+ icon: b(y == null ? n.more : a, { size: 14 }),
290
+ title: f("action.menu.title", "Actions"),
291
291
  size: 28,
292
- onClick: () => v((e) => !e)
293
- }), /* @__PURE__ */ y(t, {
292
+ onClick: () => g((e) => !e)
293
+ }), /* @__PURE__ */ b(t, {
294
294
  open: h,
295
295
  anchor: m.current,
296
- onClose: () => v(!1),
296
+ onClose: () => g(!1),
297
297
  align: "end",
298
298
  width: 220,
299
- children: /* @__PURE__ */ y(L, {
299
+ children: /* @__PURE__ */ b(R, {
300
300
  layout: e,
301
301
  entityActions: i,
302
302
  globalActions: o,
303
303
  onRun: C,
304
- loading: x,
304
+ loading: y,
305
305
  onLoadingChange: S,
306
306
  row: c,
307
307
  widgetContext: l,
@@ -310,14 +310,14 @@ function F({ layout: e, entityActions: i, globalActions: o, onRun: s, row: c, wi
310
310
  })]
311
311
  });
312
312
  }
313
- function I(e) {
313
+ function L(e) {
314
314
  let t = 0;
315
315
  for (let n of e) if (n.kind === "action" && c(n.code)) t++;
316
316
  else break;
317
317
  return t;
318
318
  }
319
- function L({ layout: e, entityActions: t, globalActions: n, onRun: r, loading: a, onLoadingChange: o, row: s, widgetContext: c, onActionClick: l, ariaLabel: d }) {
320
- let f = u(), { normal: p, destructive: m } = T(e, t, n), h = I(p), g = p.slice(0, h), _ = p.slice(h), v = m.length > 0, x = _.length > 0, S = (e) => /* @__PURE__ */ y(N, {
319
+ function R({ layout: e, entityActions: t, globalActions: n, onRun: r, loading: a, onLoadingChange: o, row: s, widgetContext: c, onActionClick: l, ariaLabel: d }) {
320
+ let f = u(), { normal: p, destructive: m } = E(e, t, n), h = L(p), g = p.slice(0, h), _ = p.slice(h), v = m.length > 0, y = _.length > 0, S = (e) => /* @__PURE__ */ b(P, {
321
321
  leaf: e,
322
322
  entityActions: t,
323
323
  globalActions: n,
@@ -328,13 +328,13 @@ function L({ layout: e, entityActions: t, globalActions: n, onRun: r, loading: a
328
328
  widgetContext: c,
329
329
  onActionClick: l
330
330
  }, e.code);
331
- return /* @__PURE__ */ b("div", {
331
+ return /* @__PURE__ */ x("div", {
332
332
  role: "menu",
333
333
  "aria-label": d ?? f("action.menu.row_actions", "Row actions"),
334
334
  children: [
335
335
  g.map((e) => e.kind === "action" ? S(e) : null),
336
- g.length > 0 && x && /* @__PURE__ */ y(i, { divider: !0 }),
337
- _.map((e) => e.kind === "action" ? S(e) : /* @__PURE__ */ y(P, {
336
+ g.length > 0 && y && /* @__PURE__ */ b(i, { divider: !0 }),
337
+ _.map((e) => e.kind === "action" ? S(e) : /* @__PURE__ */ b(F, {
338
338
  group: e,
339
339
  entityActions: t,
340
340
  globalActions: n,
@@ -345,51 +345,80 @@ function L({ layout: e, entityActions: t, globalActions: n, onRun: r, loading: a
345
345
  widgetContext: c,
346
346
  onActionClick: l
347
347
  }, e.icon ?? "group")),
348
- v && /* @__PURE__ */ y(i, { divider: !0 }),
348
+ v && /* @__PURE__ */ b(i, { divider: !0 }),
349
349
  m.map((e) => S(e))
350
350
  ]
351
351
  });
352
352
  }
353
- var ee = "__overflow_trigger__", R = 90, z = 4, B = 8;
354
- function te(e) {
355
- return `icon:${q(e)}`;
353
+ var ee = "__overflow_trigger__", z = 90, te = 4, ne = 8;
354
+ function re(e) {
355
+ return `icon:${J(e)}`;
356
356
  }
357
- function V() {
358
- return B;
357
+ function B() {
358
+ return ne;
359
359
  }
360
- function H(e, t, n) {
360
+ function V(e, t, n) {
361
361
  return [
362
362
  ...e,
363
363
  ...t,
364
364
  ...n
365
365
  ];
366
366
  }
367
- var U = () => {}, ne = () => Promise.resolve();
368
- function re(e) {
367
+ var ie = f(function({ children: e }, t) {
368
+ return /* @__PURE__ */ b("div", {
369
+ "aria-hidden": "true",
370
+ style: {
371
+ position: "absolute",
372
+ top: 0,
373
+ left: 0,
374
+ width: 0,
375
+ height: 0,
376
+ overflow: "hidden"
377
+ },
378
+ children: /* @__PURE__ */ b("div", {
379
+ ref: t,
380
+ "aria-hidden": "true",
381
+ inert: !0,
382
+ style: {
383
+ position: "absolute",
384
+ visibility: "hidden",
385
+ pointerEvents: "none",
386
+ display: "flex",
387
+ gap: 4,
388
+ top: 0,
389
+ left: 0,
390
+ width: "max-content",
391
+ flexWrap: "nowrap"
392
+ },
393
+ children: e
394
+ })
395
+ });
396
+ }), H = () => {}, U = () => Promise.resolve();
397
+ function W(e) {
369
398
  return (t) => {
370
399
  t && (t.setAttribute("data-node-key", e), t.setAttribute("tabindex", "-1"));
371
400
  };
372
401
  }
373
- function ie(e, t) {
402
+ function ae(e, t) {
374
403
  if (e.size !== t.size) return !1;
375
404
  for (let [n, r] of t) if (e.get(n) !== r) return !1;
376
405
  return !0;
377
406
  }
378
- function W(e, t) {
379
- return t.get(q(e)) ?? 0;
407
+ function G(e, t) {
408
+ return t.get(J(e)) ?? 0;
380
409
  }
381
- function ae(e, t, n) {
382
- let r = e.map((e) => W(e, t)).filter((e) => e > 0);
383
- if (r.length !== 0) return r.reduce((e, t) => e + t, 0) + z * (r.length - 1) + n;
410
+ function oe(e, t, n) {
411
+ let r = e.map((e) => G(e, t)).filter((e) => e > 0);
412
+ if (r.length !== 0) return r.reduce((e, t) => e + t, 0) + te * (r.length - 1) + n;
384
413
  }
385
- function G(e, t) {
386
- return t.get(te(e));
414
+ function K(e, t) {
415
+ return t.get(re(e));
387
416
  }
388
- function K(e, t, n, r, i, a, o, s, c) {
389
- let { primary: l, regular: u, destructive: d } = E(e, i, a), f = z, p = r.get(ee) ?? R, m = t - n, h = H(l, u, d), g = /* @__PURE__ */ new Set(), _ = /* @__PURE__ */ new Set();
390
- if (o) for (let e of h) o(e) && g.add(q(e));
417
+ function q(e, t, n, r, i, a, o, s, c) {
418
+ let { primary: l, regular: u, destructive: d } = D(e, i, a), f = te, p = r.get(ee) ?? z, m = t - n, h = V(l, u, d), g = /* @__PURE__ */ new Set(), _ = /* @__PURE__ */ new Set();
419
+ if (o) for (let e of h) o(e) && g.add(J(e));
391
420
  else {
392
- let e = (e, t) => t ? G(e, r) ?? W(e, r) : W(e, r), t = (e) => s ? e.filter((e) => !s.has(q(e))).length * V() : 0, n = (e, t) => c ? e.slice(0, t).filter((e) => c.has(q(e))).length * V() : 0, i = (r, i) => {
421
+ let e = (e, t) => t ? K(e, r) ?? G(e, r) : G(e, r), t = (e) => s ? e.filter((e) => !s.has(J(e))).length * B() : 0, n = (e, t) => c ? e.slice(0, t).filter((e) => c.has(J(e))).length * B() : 0, i = (r, i) => {
393
422
  let a = r.length < h.length ? p + f : 0, o = r.length > 1 ? (r.length - 1) * f : 0;
394
423
  return r.reduce((t, n, r) => t + e(n, r >= i), 0) + o + a + t(r) + n(r, i) <= m;
395
424
  }, a = 0, o = !1;
@@ -397,11 +426,11 @@ function K(e, t, n, r, i, a, o, s, c) {
397
426
  let l = o ? 0 : Math.min(1, a), u = h.slice(0, a);
398
427
  for (; l < a && i(u, l + 1);) l++;
399
428
  u.forEach((e, t) => {
400
- let n = q(e);
429
+ let n = J(e);
401
430
  g.add(n), t >= l && _.add(n);
402
431
  });
403
432
  }
404
- let v = (e) => g.has(q(e)), y = [
433
+ let v = (e) => g.has(J(e)), y = [
405
434
  ...l,
406
435
  ...u,
407
436
  ...d
@@ -414,87 +443,87 @@ function K(e, t, n, r, i, a, o, s, c) {
414
443
  iconOnly: _
415
444
  };
416
445
  }
417
- function q(e) {
446
+ function J(e) {
418
447
  return e.kind === "action" ? `action:${e.code}` : `group:${JSON.stringify(e.name ?? {})}`;
419
448
  }
420
- function oe(e) {
449
+ function se(e) {
421
450
  let t = e.parentElement;
422
451
  for (; t && getComputedStyle(t).display === "contents";) t = t.parentElement;
423
452
  if (!t) return !1;
424
453
  let n = getComputedStyle(t);
425
454
  return !(parseFloat(n.flexGrow) > 0 || n.display === "block" || n.display === "flow-root" || n.width !== "auto" || n.maxWidth !== "none");
426
455
  }
427
- function J({ layout: r, entityActions: a, globalActions: o, onRun: s, reservedRightWidth: c = 0, measurementOverride: l, ariaLabel: x, align: S = "trailing", constrain: C = !0, row: E, widgetContext: D, onActionClick: O }) {
428
- let A = u(), F = g(null), I = g(null), [L, R] = _(0), [B, V] = _(/* @__PURE__ */ new Map()), [H, W] = _(!1), [G, J] = _(null), [Y, se] = _(() => typeof document < "u" && document.documentElement.dir === "rtl");
429
- p(() => {
456
+ function Y({ layout: r, entityActions: a, globalActions: o, onRun: s, reservedRightWidth: c = 0, measurementOverride: l, ariaLabel: f, align: S = "trailing", constrain: C = !0, row: w, widgetContext: D, onActionClick: O }) {
457
+ let k = u(), j = _(null), I = _(null), [L, R] = v(0), [z, ne] = v(/* @__PURE__ */ new Map()), [B, V] = v(!1), [G, K] = v(null), [Y, ce] = v(() => typeof document < "u" && document.documentElement.dir === "rtl");
458
+ m(() => {
430
459
  if (typeof MutationObserver > "u") return;
431
460
  let e = new MutationObserver((e) => {
432
- for (let t of e) t.attributeName === "dir" && se(document.documentElement.dir === "rtl"), t.attributeName === "lang" && W(!1);
461
+ for (let t of e) t.attributeName === "dir" && ce(document.documentElement.dir === "rtl"), t.attributeName === "lang" && V(!1);
433
462
  });
434
463
  return e.observe(document.documentElement, {
435
464
  attributes: !0,
436
465
  attributeFilter: ["dir", "lang"]
437
466
  }), () => e.disconnect();
438
467
  }, []);
439
- let ce = g(null), [le, ue] = _(!1), de = f((e, t) => (ue(!1), s(e, t)), [s]), fe = w(r), X = !!l, Z = f(() => {
440
- if (X || !I.current) return;
468
+ let X = _(null), [le, ue] = v(!1), de = p((e, t) => (ue(!1), s(e, t)), [s]), fe = T(r), Z = !!l, Q = p(() => {
469
+ if (Z || !I.current) return;
441
470
  let e = Array.from(I.current.children), t = /* @__PURE__ */ new Map();
442
471
  e.forEach((e) => {
443
472
  let n = e.dataset.nodeKey;
444
473
  n && t.set(n, e.getBoundingClientRect().width || e.offsetWidth);
445
- }), V((e) => ie(e, t) ? e : t), W(!0);
446
- }, [X]), pe = h(() => JSON.stringify(r.map((e) => q(e))), [r]);
447
- p(() => {
448
- if (X) return;
474
+ }), ne((e) => ae(e, t) ? e : t), V(!0);
475
+ }, [Z]), pe = g(() => JSON.stringify(r.map((e) => J(e))), [r]);
476
+ m(() => {
477
+ if (Z) return;
449
478
  let e = I.current;
450
479
  if (!e || typeof ResizeObserver > "u") return;
451
- let t = new ResizeObserver(() => Z());
480
+ let t = new ResizeObserver(() => Q());
452
481
  t.observe(e);
453
482
  for (let n of Array.from(e.children)) t.observe(n);
454
483
  return () => t.disconnect();
455
484
  }, [
485
+ Q,
456
486
  Z,
457
- X,
458
487
  pe
459
- ]), m(() => {
460
- if (X) {
461
- W(!0);
488
+ ]), h(() => {
489
+ if (Z) {
490
+ V(!0);
462
491
  return;
463
492
  }
464
- W(!1);
493
+ V(!1);
465
494
  let e = requestAnimationFrame(() => {
466
- Z();
495
+ Q();
467
496
  });
468
497
  return () => cancelAnimationFrame(e);
469
498
  }, [
470
499
  pe,
471
- Z,
472
- X
473
- ]), p(() => {
474
- if (X || H) return;
500
+ Q,
501
+ Z
502
+ ]), m(() => {
503
+ if (Z || B) return;
475
504
  let e = setTimeout(() => {
476
- Z(), W(!0);
505
+ Q(), V(!0);
477
506
  }, 16);
478
507
  return () => clearTimeout(e);
479
508
  }, [
480
- H,
481
- Z,
482
- X
483
- ]), p(() => {
484
- if (X || !C || !H || L === 0) return;
485
- let e = F.current;
486
- if (!e || !oe(e)) return;
509
+ B,
510
+ Q,
511
+ Z
512
+ ]), m(() => {
513
+ if (Z || !C || !B || L === 0) return;
514
+ let e = j.current;
515
+ if (!e || !se(e)) return;
487
516
  let t = [...e.children].filter((e) => e.getAttribute("aria-hidden") !== "true"), n = t.length > 1 ? (t.length - 1) * 4 : 0, r = t.reduce((e, t) => e + t.getBoundingClientRect().width, 0) + n;
488
517
  r > 0 && Math.abs(L - r) < 1 && console.error(`[declarion] ResponsiveActionBar is measuring itself: its container is ${Math.round(L)}px, exactly the width of what it just rendered. The slot holding this bar is sized by its own content, so it cannot tell the bar how much room there is. Give that slot \`flex: 1 1 auto; min-width: 0\` (and justify its content to the edge the buttons sit on), or pass \`constrain={false}\` if it genuinely has no row to take space from.`);
489
518
  }, [
490
- X,
519
+ Z,
491
520
  C,
492
- H,
521
+ B,
493
522
  L,
494
- B
495
- ]), p(() => {
496
- if (X) return;
497
- let e = F.current;
523
+ z
524
+ ]), m(() => {
525
+ if (Z) return;
526
+ let e = j.current;
498
527
  if (!e) return;
499
528
  if (typeof ResizeObserver > "u") {
500
529
  R(e.getBoundingClientRect().width);
@@ -505,242 +534,229 @@ function J({ layout: r, entityActions: a, globalActions: o, onRun: s, reservedRi
505
534
  t && R(t.contentRect.width);
506
535
  });
507
536
  return t.observe(e), R(e.getBoundingClientRect().width), () => t.disconnect();
508
- }, [X]);
509
- let me = g(void 0), Q = g(void 0);
510
- p(() => {
511
- me.current = void 0, Q.current = void 0;
537
+ }, [Z]);
538
+ let me = _(void 0), he = _(void 0);
539
+ m(() => {
540
+ me.current = void 0, he.current = void 0;
512
541
  }, [pe]);
513
- let $ = h(() => X || !C ? K(r, 2 ** 53 - 1, c, B, a, o, l) : H ? L === 0 ? K(r, 2 ** 53 - 1, c, B, a, o, l) : K(r, L, c, B, a, o, l, me.current, Q.current) : {
542
+ let $ = g(() => Z || !C ? q(r, 2 ** 53 - 1, c, z, a, o, l) : B ? L === 0 ? q(r, 2 ** 53 - 1, c, z, a, o, l) : q(r, L, c, z, a, o, l, me.current, he.current) : {
514
543
  primaryInline: [],
515
544
  inline: [],
516
545
  overflow: [],
517
546
  destructiveInline: [],
518
547
  iconOnly: /* @__PURE__ */ new Set()
519
548
  }, [
520
- X,
549
+ Z,
521
550
  C,
522
- H,
551
+ B,
523
552
  L,
524
553
  r,
525
554
  c,
526
- B,
555
+ z,
527
556
  a,
528
557
  o,
529
558
  l
530
559
  ]);
531
- if (p(() => {
532
- (H || X) && (me.current = new Set([
560
+ if (m(() => {
561
+ (B || Z) && (me.current = new Set([
533
562
  ...$.primaryInline,
534
563
  ...$.inline,
535
564
  ...$.destructiveInline
536
- ].map(q)), Q.current = new Set($.iconOnly));
565
+ ].map(J)), he.current = new Set($.iconOnly));
537
566
  }, [
538
567
  $,
539
- H,
540
- X
568
+ B,
569
+ Z
541
570
  ]), fe === 0) return null;
542
- let he = $.overflow.length > 0, { normal: ge, destructive: _e } = T($.overflow, a, o);
543
- return /* @__PURE__ */ b("div", {
544
- ref: F,
571
+ let ge = $.overflow.length > 0, { normal: _e, destructive: ve } = E($.overflow, a, o);
572
+ return /* @__PURE__ */ x("div", {
573
+ ref: j,
545
574
  role: "toolbar",
546
- "aria-label": x ?? A("action.menu.title", "Actions"),
575
+ "aria-label": f ?? k("action.menu.title", "Actions"),
547
576
  style: {
548
577
  display: "flex",
549
578
  flexDirection: Y ? "row-reverse" : "row",
550
579
  alignItems: "center",
551
- gap: z,
580
+ gap: te,
552
581
  flexWrap: "wrap",
553
- visibility: H || X ? "visible" : "hidden",
582
+ visibility: B || Z ? "visible" : "hidden",
554
583
  position: "relative",
555
584
  flex: C ? "1 1 auto" : "0 1 auto",
556
- width: C && H && !X ? ae(r, B, c) : void 0,
585
+ width: C && B && !Z ? oe(r, z, c) : void 0,
557
586
  justifyContent: S === "trailing" ? "flex-end" : "flex-start",
558
587
  minWidth: 0,
559
588
  boxSizing: "border-box"
560
589
  },
561
590
  children: [
562
- /* @__PURE__ */ b("div", {
591
+ /* @__PURE__ */ x(ie, {
563
592
  ref: I,
564
- "aria-hidden": "true",
565
- inert: !0,
566
- style: {
567
- position: "absolute",
568
- visibility: "hidden",
569
- pointerEvents: "none",
570
- display: "flex",
571
- gap: 4,
572
- top: 0,
573
- left: 0,
574
- width: "max-content",
575
- flexWrap: "nowrap"
576
- },
577
- children: [/* @__PURE__ */ y(e, {
593
+ children: [/* @__PURE__ */ b(e, {
578
594
  "data-node-key": ee,
579
- iconRight: /* @__PURE__ */ y(n.down, { size: 10 }),
595
+ iconRight: /* @__PURE__ */ b(n.down, { size: 10 }),
580
596
  tabIndex: -1,
581
- children: A("action.menu.title", "Actions")
597
+ children: k("action.menu.title", "Actions")
582
598
  }, ee), r.map((e) => {
583
- let t = q(e);
584
- return e.kind === "action" ? /* @__PURE__ */ b(d, { children: [/* @__PURE__ */ y(j, {
599
+ let t = J(e);
600
+ return e.kind === "action" ? /* @__PURE__ */ x(d, { children: [/* @__PURE__ */ b(M, {
585
601
  leaf: e,
586
602
  entityActions: a,
587
603
  globalActions: o,
588
- onRun: ne,
604
+ onRun: U,
589
605
  loading: !1,
590
- onLoadingChange: U,
591
- row: E,
606
+ onLoadingChange: H,
607
+ row: w,
592
608
  widgetContext: D,
593
- measureRef: re(t)
594
- }), k(e.code, a, o) && /* @__PURE__ */ y(j, {
609
+ measureRef: W(t)
610
+ }), A(e.code, a, o) && /* @__PURE__ */ b(M, {
595
611
  leaf: e,
596
612
  entityActions: a,
597
613
  globalActions: o,
598
- onRun: ne,
614
+ onRun: U,
599
615
  loading: !1,
600
- onLoadingChange: U,
601
- row: E,
616
+ onLoadingChange: H,
617
+ row: w,
602
618
  widgetContext: D,
603
619
  iconOnly: !0,
604
- measureRef: re(te(e))
605
- })] }, t) : /* @__PURE__ */ y(M, {
620
+ measureRef: W(re(e))
621
+ })] }, t) : /* @__PURE__ */ b(N, {
606
622
  group: e,
607
623
  entityActions: a,
608
624
  globalActions: o,
609
- onRun: ne,
625
+ onRun: U,
610
626
  loading: null,
611
- onLoadingChange: U,
612
- row: E,
627
+ onLoadingChange: H,
628
+ row: w,
613
629
  widgetContext: D,
614
630
  onActionClick: O,
615
- measureRef: re(t)
631
+ measureRef: W(t)
616
632
  }, t);
617
633
  })]
618
634
  }),
619
- $.primaryInline.map((e) => /* @__PURE__ */ y(j, {
635
+ $.primaryInline.map((e) => /* @__PURE__ */ b(M, {
620
636
  leaf: e,
621
637
  entityActions: a,
622
638
  globalActions: o,
623
639
  onRun: s,
624
640
  loading: G === e.code,
625
- onLoadingChange: (t) => J(t ? e.code : null),
626
- row: E,
641
+ onLoadingChange: (t) => K(t ? e.code : null),
642
+ row: w,
627
643
  widgetContext: D,
628
644
  onActionClick: O,
629
- iconOnly: $.iconOnly.has(q(e))
630
- }, q(e))),
645
+ iconOnly: $.iconOnly.has(J(e))
646
+ }, J(e))),
631
647
  $.inline.map((e) => {
632
- let t = q(e);
633
- return e.kind === "action" ? /* @__PURE__ */ y(j, {
648
+ let t = J(e);
649
+ return e.kind === "action" ? /* @__PURE__ */ b(M, {
634
650
  leaf: e,
635
651
  entityActions: a,
636
652
  globalActions: o,
637
653
  onRun: s,
638
654
  loading: G === e.code,
639
- onLoadingChange: (t) => J(t ? e.code : null),
640
- row: E,
655
+ onLoadingChange: (t) => K(t ? e.code : null),
656
+ row: w,
641
657
  widgetContext: D,
642
658
  onActionClick: O,
643
659
  iconOnly: $.iconOnly.has(t)
644
- }, t) : /* @__PURE__ */ y(M, {
660
+ }, t) : /* @__PURE__ */ b(N, {
645
661
  group: e,
646
662
  entityActions: a,
647
663
  globalActions: o,
648
664
  onRun: s,
649
665
  loading: G,
650
- onLoadingChange: J,
651
- row: E,
666
+ onLoadingChange: K,
667
+ row: w,
652
668
  widgetContext: D,
653
669
  onActionClick: O
654
670
  }, t);
655
671
  }),
656
- he && /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(e, {
657
- ref: ce,
672
+ ge && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(e, {
673
+ ref: X,
658
674
  kind: "default",
659
- iconRight: /* @__PURE__ */ y(n.down, { size: 10 }),
675
+ iconRight: /* @__PURE__ */ b(n.down, { size: 10 }),
660
676
  "aria-haspopup": "menu",
661
677
  "aria-expanded": le ? "true" : "false",
662
678
  onClick: () => ue((e) => !e),
663
- children: A("action.menu.title", "Actions")
664
- }), /* @__PURE__ */ y(t, {
679
+ children: k("action.menu.title", "Actions")
680
+ }), /* @__PURE__ */ b(t, {
665
681
  open: le,
666
- anchor: ce.current,
682
+ anchor: X.current,
667
683
  onClose: () => ue(!1),
668
684
  align: Y ? "start" : "end",
669
685
  width: 220,
670
- children: /* @__PURE__ */ y("div", {
686
+ children: /* @__PURE__ */ b("div", {
671
687
  role: "menu",
672
- "aria-label": A("action.menu.more", "More actions"),
688
+ "aria-label": k("action.menu.more", "More actions"),
673
689
  children: [
674
- ...ge,
675
- ..._e.length > 0 ? [null] : [],
676
- ..._e
677
- ].map((e, t) => e === null ? /* @__PURE__ */ y(i, { divider: !0 }, "destructive-divider") : e.kind === "action" ? /* @__PURE__ */ y(N, {
690
+ ..._e,
691
+ ...ve.length > 0 ? [null] : [],
692
+ ...ve
693
+ ].map((e, t) => e === null ? /* @__PURE__ */ b(i, { divider: !0 }, "destructive-divider") : e.kind === "action" ? /* @__PURE__ */ b(P, {
678
694
  leaf: e,
679
695
  entityActions: a,
680
696
  globalActions: o,
681
697
  onRun: de,
682
698
  loading: G === e.code,
683
- onLoadingChange: (t) => J(t ? e.code : null),
684
- row: E,
699
+ onLoadingChange: (t) => K(t ? e.code : null),
700
+ row: w,
685
701
  widgetContext: D,
686
702
  onActionClick: O
687
- }, e.code) : /* @__PURE__ */ y(P, {
703
+ }, e.code) : /* @__PURE__ */ b(F, {
688
704
  group: e,
689
705
  entityActions: a,
690
706
  globalActions: o,
691
707
  onRun: de,
692
708
  loading: G,
693
- onLoadingChange: J,
694
- row: E,
709
+ onLoadingChange: K,
710
+ row: w,
695
711
  widgetContext: D,
696
712
  onActionClick: O
697
- }, `${q(e)}-${t}`))
713
+ }, `${J(e)}-${t}`))
698
714
  })
699
715
  })] }),
700
- $.destructiveInline.map((e) => /* @__PURE__ */ y(j, {
716
+ $.destructiveInline.map((e) => /* @__PURE__ */ b(M, {
701
717
  leaf: e,
702
718
  entityActions: a,
703
719
  globalActions: o,
704
720
  onRun: s,
705
721
  loading: G === e.code,
706
- onLoadingChange: (t) => J(t ? e.code : null),
707
- row: E,
722
+ onLoadingChange: (t) => K(t ? e.code : null),
723
+ row: w,
708
724
  widgetContext: D,
709
725
  onActionClick: O,
710
- iconOnly: $.iconOnly.has(q(e))
711
- }, q(e)))
726
+ iconOnly: $.iconOnly.has(J(e))
727
+ }, J(e)))
712
728
  ]
713
729
  });
714
730
  }
715
- function Y({ layout: e, rowSelection: t = [], ...n }) {
731
+ function ce({ layout: e, rowSelection: t = [], ...n }) {
716
732
  let r = t.length > 0;
717
- return /* @__PURE__ */ b("div", {
733
+ return /* @__PURE__ */ x("div", {
718
734
  style: {
719
735
  position: "relative",
720
736
  display: "flex",
721
737
  flex: "1 1 auto",
722
738
  minWidth: 0
723
739
  },
724
- children: [/* @__PURE__ */ y("div", {
740
+ children: [/* @__PURE__ */ b("div", {
725
741
  "aria-hidden": r ? "true" : void 0,
726
742
  style: {
727
743
  display: r ? "none" : "flex",
728
744
  flex: "1 1 auto",
729
745
  minWidth: 0
730
746
  },
731
- children: /* @__PURE__ */ y(J, {
747
+ children: /* @__PURE__ */ b(Y, {
732
748
  layout: e,
733
749
  rowSelection: [],
734
750
  ...n
735
751
  })
736
- }), /* @__PURE__ */ y("div", {
752
+ }), /* @__PURE__ */ b("div", {
737
753
  "aria-hidden": r ? void 0 : "true",
738
754
  style: {
739
755
  display: r ? "flex" : "none",
740
756
  flex: "1 1 auto",
741
757
  minWidth: 0
742
758
  },
743
- children: /* @__PURE__ */ y(J, {
759
+ children: /* @__PURE__ */ b(Y, {
744
760
  layout: e,
745
761
  rowSelection: t,
746
762
  ...n
@@ -748,9 +764,9 @@ function Y({ layout: e, rowSelection: t = [], ...n }) {
748
764
  })]
749
765
  });
750
766
  }
751
- function se({ layout: e, row: t, rowSelection: n, onRun: r, reservedRightWidth: i = 0, kind: a = "toolbar", align: o = "trailing", constrain: s = !0, measurementOverride: c, entityActions: l, globalActions: u, ariaLabel: d, widgetContext: f, onActionClick: p }) {
752
- let m = w(e);
753
- return a === "row" ? /* @__PURE__ */ y(F, {
767
+ function X({ layout: e, row: t, rowSelection: n, onRun: r, reservedRightWidth: i = 0, kind: a = "toolbar", align: o = "trailing", constrain: s = !0, measurementOverride: c, entityActions: l, globalActions: u, ariaLabel: d, widgetContext: f, onActionClick: p }) {
768
+ let m = T(e);
769
+ return a === "row" ? /* @__PURE__ */ b(I, {
754
770
  layout: e,
755
771
  entityActions: l,
756
772
  globalActions: u,
@@ -758,7 +774,7 @@ function se({ layout: e, row: t, rowSelection: n, onRun: r, reservedRightWidth:
758
774
  row: t,
759
775
  widgetContext: f,
760
776
  onActionClick: p
761
- }) : m === 0 ? null : y(a === "toolbar" ? Y : J, {
777
+ }) : m === 0 ? null : b(a === "toolbar" ? ce : Y, {
762
778
  layout: e,
763
779
  row: t,
764
780
  rowSelection: n,
@@ -774,4 +790,4 @@ function se({ layout: e, row: t, rowSelection: n, onRun: r, reservedRightWidth:
774
790
  onActionClick: p
775
791
  });
776
792
  }
777
- export { se as ResponsiveActionBar, L as RowMenuContent, K as computeLayout, x as interpolate, oe as slotIsContentSized };
793
+ export { X as ResponsiveActionBar, R as RowMenuContent, q as computeLayout, S as interpolate, se as slotIsContentSized };