@mittwald/flow-react-components 0.1.0-alpha.419 → 0.1.0-alpha.420

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 (41) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/js/{Action-C6RX6wSX.js → Action-DdTtAlW3.js} +13 -13
  3. package/dist/js/Action.js +1 -1
  4. package/dist/js/{ActionGroup-BlCWYd6L.js → ActionGroup-CkZ5q2Vq.js} +1 -1
  5. package/dist/js/ActionGroup.js +1 -1
  6. package/dist/js/{CodeBlock-CuioozIA.js → CodeBlock-CO_A4KZ1.js} +1 -1
  7. package/dist/js/CodeBlock.js +1 -1
  8. package/dist/js/ComboBox.js +3 -3
  9. package/dist/js/ContextMenu.js +3 -3
  10. package/dist/js/{ContextMenuSection-CMK-apnP.js → ContextMenuSection-D1i0qzNl.js} +1 -1
  11. package/dist/js/{ContextMenuTrigger-D-IVwEDc.js → ContextMenuTrigger-Bc1ziP-n.js} +5 -5
  12. package/dist/js/ContextualHelp.js +3 -3
  13. package/dist/js/{CopyButton-CVs_yxoq.js → CopyButton-B3sou0WM.js} +1 -1
  14. package/dist/js/CopyButton.js +1 -1
  15. package/dist/js/DatePicker.js +2 -2
  16. package/dist/js/DateRangePicker.js +2 -2
  17. package/dist/js/LightBox.js +3 -3
  18. package/dist/js/List.js +198 -198
  19. package/dist/js/Markdown.js +1 -1
  20. package/dist/js/Modal.js +3 -3
  21. package/dist/js/NotificationProvider.js +9 -9
  22. package/dist/js/{Option-gR-s-VhK.js → Option-Cj18P7AI.js} +1 -1
  23. package/dist/js/{Overlay-BwfQD0k1.js → Overlay-C9X7ovU-.js} +2 -2
  24. package/dist/js/{OverlayTrigger-j2zD8W4S.js → OverlayTrigger-AlmeaOft.js} +1 -1
  25. package/dist/js/{Popover-BXgT1HK0.js → Popover-CUcQMlfm.js} +2 -2
  26. package/dist/js/Popover.js +2 -2
  27. package/dist/js/{Section-BOVKcyG5.js → Section-D_VzVuOz.js} +1 -1
  28. package/dist/js/Section.js +1 -1
  29. package/dist/js/Select.js +2 -2
  30. package/dist/js/Tabs.js +2 -2
  31. package/dist/js/{context-BaYmTa0I.js → context-JScptH87.js} +10 -10
  32. package/dist/js/controller.js +2 -2
  33. package/dist/js/{getActionGroupSlot-BHzMGEA7.js → getActionGroupSlot-ByIakli9.js} +7 -7
  34. package/dist/js/hooks.js +1 -1
  35. package/dist/js/react-hook-form.js +1 -1
  36. package/dist/js/types/components/List/model/loading/IncrementalLoaderState.d.ts +1 -1
  37. package/dist/js/types/lib/hooks/useStatic.d.ts +1 -0
  38. package/dist/js/{useOverlayController-BwSJj4Ly.js → useOverlayController-ZXQCcFC-.js} +1 -1
  39. package/dist/js/useStatic-FXPyFF3K.js +14 -0
  40. package/package.json +4 -4
  41. package/dist/js/useSelector-DpU7_HMO.js +0 -13
package/dist/js/List.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client"
2
2
  /* */
3
- var te = Object.defineProperty;
4
- var ee = (a, t, e) => t in a ? te(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
5
- var r = (a, t, e) => ee(a, typeof t != "symbol" ? t + "" : t, e);
6
- import i, { createContext as se, useContext as ie, createElement as yt, useState as H, useEffect as D, useRef as Ft, useId as ae, Suspense as ne, cloneElement as re, isValidElement as oe } from "react";
3
+ var _t = Object.defineProperty;
4
+ var te = (a, t, e) => t in a ? _t(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
5
+ var r = (a, t, e) => te(a, typeof t != "symbol" ? t + "" : t, e);
6
+ import i, { createContext as ee, useContext as se, createElement as yt, useState as H, useEffect as D, useId as ie, useRef as ae, Suspense as ne, cloneElement as re, isValidElement as oe } from "react";
7
7
  import "./propsContext-DzAKlmhS.js";
8
8
  import { PropsContextProvider as _ } from "./PropsContextProvider.js";
9
9
  import "@react-aria/utils";
@@ -13,13 +13,13 @@ import { B as F } from "./Button-BHFXhYtp.js";
13
13
  import { IconArrowBackUp as me } from "@tabler/icons-react";
14
14
  import { I as ft } from "./Icon-mUEZToWz.js";
15
15
  import { I as he } from "./IconContextMenu-B1vHRnf5.js";
16
- import { a as q, C as tt } from "./ContextMenuTrigger-D-IVwEDc.js";
16
+ import { a as q, C as tt } from "./ContextMenuTrigger-Bc1ziP-n.js";
17
17
  import { M as et } from "./MenuItem-C6RgW6U3.js";
18
- import "./ContextMenuSection-CMK-apnP.js";
18
+ import "./ContextMenuSection-D1i0qzNl.js";
19
19
  import { useLocalizedStringFormatter as I } from "react-aria";
20
- import { TunnelProvider as Tt, TunnelExit as S } from "@mittwald/react-tunnel";
20
+ import { TunnelProvider as Ft, TunnelExit as S } from "@mittwald/react-tunnel";
21
21
  import L from "clsx";
22
- import { f as It } from "./flowComponent-B1r5sCmz.js";
22
+ import { f as Tt } from "./flowComponent-B1r5sCmz.js";
23
23
  import { R as ge } from "./Render-BOMk4emj.js";
24
24
  import { T as P } from "./Text-C7Akf24Y.js";
25
25
  import { c as pe, a as fe, b as be, I as Se, d as we } from "./IconView-CcLkBI7M.js";
@@ -27,45 +27,45 @@ import { observer as ve } from "mobx-react-lite";
27
27
  import { a as W, T as j } from "./Tooltip-D5QM-BbC.js";
28
28
  import { B as Ee } from "./Badge-BdqWEW4w.js";
29
29
  import { makeObservable as ye, observable as bt, computed as St, action as J } from "mobx";
30
- import "./context-BaYmTa0I.js";
30
+ import "./context-JScptH87.js";
31
31
  import { u as Fe } from "./useOnChange-C1Quwyuz.js";
32
32
  import { S as Te } from "./SearchField-Bwk1OaKT.js";
33
33
  import { H as st } from "./Heading-s0GGZftx.js";
34
- import { S as Ie } from "./Section-BOVKcyG5.js";
34
+ import { S as Ie } from "./Section-D_VzVuOz.js";
35
35
  import { getProperty as Ce } from "dot-prop";
36
- import { hash as Ct } from "object-code";
36
+ import { hash as It } from "object-code";
37
37
  import $ from "zod";
38
38
  import { useReactTable as Le, getCoreRowModel as Pe, getSortedRowModel as Ve, getFilteredRowModel as Ae, getPaginationRowModel as Me, getFacetedUniqueValues as ke } from "@tanstack/react-table";
39
- import Lt from "invariant";
39
+ import Ct from "invariant";
40
40
  import { getAsyncResource as wt } from "@mittwald/react-use-promise";
41
- import { u as vt } from "./useSelector-DpU7_HMO.js";
42
- import { u as Be } from "./SettingsProvider-D9oDS5r9.js";
41
+ import { u as Be, a as vt } from "./useStatic-FXPyFF3K.js";
42
+ import { u as xe } from "./SettingsProvider-D9oDS5r9.js";
43
43
  import * as it from "react-aria-components";
44
44
  import { S as z } from "./SkeletonText-B5ZghZhO.js";
45
- import { S as Pt } from "./Skeleton-CKLaTmDR.js";
46
- import { A as xe } from "./Avatar-BFx8pvZV.js";
47
- import { I as De } from "./IconChevronDown-DeqeNFTL.js";
48
- import { I as Ne } from "./IconChevronUp-CYa3Erd1.js";
49
- import { I as Re } from "./IllustratedMessage-DB1AH-Oq.js";
50
- import { I as $e } from "./IconSearch-DMgHpqPU.js";
51
- import { deepFind as Ue, deepForEach as Ke } from "react-children-utilities";
52
- import { ListLoaderAsyncResource as ze, TypedListLoaderAsyncResource as Oe } from "./List/ListLoaderAsyncResource.js";
53
- import { a as Vt, e as At, d as Mt, b as kt, T as Bt, c as xt } from "./Table-Cgwv_qa_.js";
54
- import { A as He } from "./ActionGroup-BlCWYd6L.js";
55
- const qe = "flow--list--items--item--view", Ge = "flow--list--items--item--view--content", We = "flow--list--items--item--view--title", je = "flow--list--items--item--view--sub-title", Je = "flow--list--items--item--view--avatar", Ye = "flow--list--items--item--view--heading", Qe = "flow--list--items--item--view--text", Xe = "flow--list--items--item--view--top-content", Ze = "flow--list--items--item--view--action", _e = "flow--list--items--item--view--bottom-content", ts = "flow--list--items--item--view--tile", es = "flow--list--items--item--view--avatar-container", ss = "flow--list--items--item--view--badge", h = {
56
- view: qe,
57
- content: Ge,
58
- title: We,
59
- subTitle: je,
60
- avatar: Je,
61
- heading: Ye,
62
- text: Qe,
63
- topContent: Xe,
64
- action: Ze,
65
- bottomContent: _e,
66
- tile: ts,
67
- avatarContainer: es,
68
- badge: ss
45
+ import { S as Lt } from "./Skeleton-CKLaTmDR.js";
46
+ import { A as De } from "./Avatar-BFx8pvZV.js";
47
+ import { I as Ne } from "./IconChevronDown-DeqeNFTL.js";
48
+ import { I as Re } from "./IconChevronUp-CYa3Erd1.js";
49
+ import { I as $e } from "./IllustratedMessage-DB1AH-Oq.js";
50
+ import { I as Ue } from "./IconSearch-DMgHpqPU.js";
51
+ import { deepFind as Ke, deepForEach as ze } from "react-children-utilities";
52
+ import { ListLoaderAsyncResource as Oe, TypedListLoaderAsyncResource as He } from "./List/ListLoaderAsyncResource.js";
53
+ import { a as Pt, e as Vt, d as At, b as Mt, T as kt, c as Bt } from "./Table-Cgwv_qa_.js";
54
+ import { A as qe } from "./ActionGroup-CkZ5q2Vq.js";
55
+ const Ge = "flow--list--items--item--view", We = "flow--list--items--item--view--content", je = "flow--list--items--item--view--title", Je = "flow--list--items--item--view--sub-title", Ye = "flow--list--items--item--view--avatar", Qe = "flow--list--items--item--view--heading", Xe = "flow--list--items--item--view--text", Ze = "flow--list--items--item--view--top-content", _e = "flow--list--items--item--view--action", ts = "flow--list--items--item--view--bottom-content", es = "flow--list--items--item--view--tile", ss = "flow--list--items--item--view--avatar-container", is = "flow--list--items--item--view--badge", h = {
56
+ view: Ge,
57
+ content: We,
58
+ title: je,
59
+ subTitle: Je,
60
+ avatar: Ye,
61
+ heading: Qe,
62
+ text: Xe,
63
+ topContent: Ze,
64
+ action: _e,
65
+ bottomContent: ts,
66
+ tile: es,
67
+ avatarContainer: ss,
68
+ badge: is
69
69
  }, w = { "de-DE": {
70
70
  "list.filters.clear": "Filter entfernen",
71
71
  "list.filters.reset": "Filter zurücksetzen",
@@ -100,7 +100,7 @@ const qe = "flow--list--items--item--view", Ge = "flow--list--items--item--view-
100
100
  "list.sorting": "Sorting",
101
101
  "list.toggleExpandButton.collapse": "Show less",
102
102
  "list.toggleExpandButton.expand": "Show more"
103
- } }, is = (a) => {
103
+ } }, as = (a) => {
104
104
  const { className: t, children: e } = a, s = I(w);
105
105
  return /* @__PURE__ */ i.createElement(q, null, /* @__PURE__ */ i.createElement(
106
106
  F,
@@ -113,7 +113,7 @@ const qe = "flow--list--items--item--view", Ge = "flow--list--items--item--view-
113
113
  },
114
114
  /* @__PURE__ */ i.createElement(he, null)
115
115
  ), e);
116
- }, Dt = (a) => {
116
+ }, xt = (a) => {
117
117
  const { children: t, className: e } = a, n = f().viewMode === "tiles", o = {
118
118
  bottom: {
119
119
  onMouseDown: (l) => l.stopPropagation(),
@@ -125,7 +125,7 @@ const qe = "flow--list--items--item--view", Ge = "flow--list--items--item--view-
125
125
  }
126
126
  }, c = {
127
127
  ContextMenu: {
128
- wrapWith: /* @__PURE__ */ i.createElement(is, { className: h.action }),
128
+ wrapWith: /* @__PURE__ */ i.createElement(as, { className: h.action }),
129
129
  placement: "bottom end",
130
130
  tunnelId: "button"
131
131
  },
@@ -168,22 +168,22 @@ const qe = "flow--list--items--item--view", Ge = "flow--list--items--item--view-
168
168
  unstyled: !0
169
169
  }
170
170
  }, d = L(h.view, n && h.tile, e);
171
- return /* @__PURE__ */ i.createElement("div", { className: d }, /* @__PURE__ */ i.createElement(_, { props: c, mergeInParentContext: !0 }, /* @__PURE__ */ i.createElement(Tt, null, n && /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("div", { className: h.avatarContainer }, /* @__PURE__ */ i.createElement(S, { id: "avatar" })), /* @__PURE__ */ i.createElement("div", { className: h.content }, /* @__PURE__ */ i.createElement("div", { className: h.title }, /* @__PURE__ */ i.createElement(S, { id: "title" }), /* @__PURE__ */ i.createElement("div", { className: h.subTitle }, /* @__PURE__ */ i.createElement(S, { id: "text" }))), /* @__PURE__ */ i.createElement(S, { id: "button" }), t, /* @__PURE__ */ i.createElement(S, { id: "bottom" }))), !n && /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("div", { className: h.content }, /* @__PURE__ */ i.createElement("div", { className: h.title }, /* @__PURE__ */ i.createElement(S, { id: "avatar" }), /* @__PURE__ */ i.createElement(S, { id: "title" }), /* @__PURE__ */ i.createElement("div", { className: h.subTitle }, /* @__PURE__ */ i.createElement(S, { id: "text" }))), t), /* @__PURE__ */ i.createElement(S, { id: "button" }), /* @__PURE__ */ i.createElement(S, { id: "bottom" })))));
172
- }, as = "flow--list--list-summary", ns = {
173
- listSummary: as
174
- }, fa = It("ListSummary", (a) => {
171
+ return /* @__PURE__ */ i.createElement("div", { className: d }, /* @__PURE__ */ i.createElement(_, { props: c, mergeInParentContext: !0 }, /* @__PURE__ */ i.createElement(Ft, null, n && /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("div", { className: h.avatarContainer }, /* @__PURE__ */ i.createElement(S, { id: "avatar" })), /* @__PURE__ */ i.createElement("div", { className: h.content }, /* @__PURE__ */ i.createElement("div", { className: h.title }, /* @__PURE__ */ i.createElement(S, { id: "title" }), /* @__PURE__ */ i.createElement("div", { className: h.subTitle }, /* @__PURE__ */ i.createElement(S, { id: "text" }))), /* @__PURE__ */ i.createElement(S, { id: "button" }), t, /* @__PURE__ */ i.createElement(S, { id: "bottom" }))), !n && /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("div", { className: h.content }, /* @__PURE__ */ i.createElement("div", { className: h.title }, /* @__PURE__ */ i.createElement(S, { id: "avatar" }), /* @__PURE__ */ i.createElement(S, { id: "title" }), /* @__PURE__ */ i.createElement("div", { className: h.subTitle }, /* @__PURE__ */ i.createElement(S, { id: "text" }))), t), /* @__PURE__ */ i.createElement(S, { id: "button" }), /* @__PURE__ */ i.createElement(S, { id: "bottom" })))));
172
+ }, ns = "flow--list--list-summary", rs = {
173
+ listSummary: ns
174
+ }, ba = Tt("ListSummary", (a) => {
175
175
  const { children: t } = a;
176
- return /* @__PURE__ */ i.createElement("header", { className: ns.listSummary, ...a }, t);
177
- }), Nt = se({}), f = () => ie(Nt).list, rs = () => f().loader.getLoaderInvocationHooks().map((t, e) => /* @__PURE__ */ i.createElement(ge, { key: e }, () => {
176
+ return /* @__PURE__ */ i.createElement("header", { className: rs.listSummary, ...a }, t);
177
+ }), Dt = ee({}), f = () => se(Dt).list, os = () => f().loader.getLoaderInvocationHooks().map((t, e) => /* @__PURE__ */ i.createElement(ge, { key: e }, () => {
178
178
  t();
179
- })), os = (a) => {
179
+ })), ls = (a) => {
180
180
  const { sorting: t } = a;
181
181
  return /* @__PURE__ */ i.createElement(et, { id: t.id }, t.name);
182
182
  }, U = (a) => {
183
183
  const { children: t, locales: e, variables: s } = a;
184
184
  return I(e).format(t, s);
185
- }, ls = () => {
186
- const a = f(), t = a.visibleSorting.map((n) => /* @__PURE__ */ i.createElement(os, { sorting: n, key: n.id }));
185
+ }, cs = () => {
186
+ const a = f(), t = a.visibleSorting.map((n) => /* @__PURE__ */ i.createElement(ls, { sorting: n, key: n.id }));
187
187
  if (t.length === 0)
188
188
  return null;
189
189
  const e = a.visibleSorting.find((n) => n.isSorted()), s = /* @__PURE__ */ i.createElement(P, null, e ? /* @__PURE__ */ i.createElement(i.Fragment, null, e.name ?? e.property) : /* @__PURE__ */ i.createElement(U, { locales: w }, "list.sorting"));
@@ -198,7 +198,7 @@ const qe = "flow--list--items--item--view", Ge = "flow--list--items--item--view-
198
198
  },
199
199
  t
200
200
  ));
201
- }, cs = (a) => {
201
+ }, ds = (a) => {
202
202
  const { filter: t } = a, { values: e, mode: s, name: n, property: o } = t, c = e.map((l) => /* @__PURE__ */ i.createElement(
203
203
  et,
204
204
  {
@@ -218,16 +218,16 @@ const qe = "flow--list--items--item--view", Ge = "flow--list--items--item--view-
218
218
  },
219
219
  c
220
220
  ));
221
- }, ds = "flow--list--header", us = "flow--list--header--picker-list-and-search", ms = "flow--list--header--picker-list", hs = "flow--list--header--search-and-actions", gs = "flow--list--header--search-field", B = {
222
- header: ds,
223
- pickerListAndSearch: us,
224
- pickerList: ms,
225
- searchAndActions: hs,
226
- searchField: gs
227
- }, ps = "flow--list--header--active-filters", fs = "flow--list--header--active-filters--clear-button", bs = {
228
- activeFilters: ps,
229
- clearButton: fs
230
- }, Ss = ve(() => {
221
+ }, us = "flow--list--header", ms = "flow--list--header--picker-list-and-search", hs = "flow--list--header--picker-list", gs = "flow--list--header--search-and-actions", ps = "flow--list--header--search-field", B = {
222
+ header: us,
223
+ pickerListAndSearch: ms,
224
+ pickerList: hs,
225
+ searchAndActions: gs,
226
+ searchField: ps
227
+ }, fs = "flow--list--header--active-filters", bs = "flow--list--header--active-filters--clear-button", Ss = {
228
+ activeFilters: fs,
229
+ clearButton: bs
230
+ }, ws = ve(() => {
231
231
  const a = f(), t = I(w), s = a.filters.flatMap((l) => l.values).filter((l) => l.isActive).map((l) => /* @__PURE__ */ i.createElement(Ee, { key: l.id, onClose: () => l.deactivate() }, /* @__PURE__ */ i.createElement(P, null, l.render()))), n = a.filters.filter((l) => l.hasChanged()).length > 0, o = a.supportsSettingsStorage && n && /* @__PURE__ */ i.createElement(W, null, /* @__PURE__ */ i.createElement(j, null, /* @__PURE__ */ i.createElement(U, { locales: w }, "list.filters.store")), /* @__PURE__ */ i.createElement(
232
232
  F,
233
233
  {
@@ -258,14 +258,14 @@ const qe = "flow--list--items--item--view", Ge = "flow--list--items--item--view-
258
258
  },
259
259
  /* @__PURE__ */ i.createElement(ft, null, /* @__PURE__ */ i.createElement(Se, null))
260
260
  )) : void 0;
261
- return s.length === 0 && !o && !c ? null : /* @__PURE__ */ i.createElement("div", { className: bs.activeFilters }, s, o, c, d);
262
- }), ws = 800, vs = (a) => {
261
+ return s.length === 0 && !o && !c ? null : /* @__PURE__ */ i.createElement("div", { className: Ss.activeFilters }, s, o, c, d);
262
+ }), vs = 800, Es = (a) => {
263
263
  const { className: t, onChange: e, value: s, autoSubmit: n, ...o } = a, [c, d] = H(s ?? ""), l = () => {
264
264
  c.trim() === "" ? e(void 0) : e(c);
265
265
  };
266
266
  D(() => {
267
267
  if (n) {
268
- const g = setTimeout(() => l(), ws);
268
+ const g = setTimeout(() => l(), vs);
269
269
  return () => clearTimeout(g);
270
270
  }
271
271
  }, [c, n]), Fe(s, () => {
@@ -287,15 +287,15 @@ const qe = "flow--list--items--item--view", Ge = "flow--list--items--item--view-
287
287
  ...o
288
288
  }
289
289
  );
290
- }, Es = (a) => {
291
- const { className: t, search: e } = a, s = e.render ?? vs;
290
+ }, ys = (a) => {
291
+ const { className: t, search: e } = a, s = e.render ?? Es;
292
292
  return yt(s, {
293
293
  className: t,
294
294
  value: e.value,
295
295
  onChange: e.setValue.bind(e),
296
296
  ...e.textFieldProps
297
297
  });
298
- }, ys = () => {
298
+ }, Fs = () => {
299
299
  var n, o;
300
300
  const a = I(w), t = f(), e = t.viewMode, s = [];
301
301
  return (n = t.itemView) != null && n.showList && s.push("list"), t.table && s.push("table"), (o = t.itemView) != null && o.showTiles && s.push("tiles"), s.length <= 1 ? null : /* @__PURE__ */ i.createElement(q, null, /* @__PURE__ */ i.createElement(
@@ -318,17 +318,17 @@ const qe = "flow--list--items--item--view", Ge = "flow--list--items--item--view-
318
318
  },
319
319
  a.format(`list.settings.viewMode.${c}`)
320
320
  )))));
321
- }, Fs = (a) => {
321
+ }, Ts = (a) => {
322
322
  var o, c;
323
323
  const { className: t, hasActionGroup: e } = a, s = f();
324
324
  if (s.filters.length === 0 && s.visibleSorting.length === 0 && !s.search && !s.table && !((o = s.itemView) != null && o.showTiles && ((c = s.itemView) != null && c.showList)) && !e)
325
325
  return null;
326
- const n = s.filters.map((d) => /* @__PURE__ */ i.createElement(cs, { key: d.property, filter: d }));
327
- return /* @__PURE__ */ i.createElement("div", { className: L(t, B.header) }, /* @__PURE__ */ i.createElement("div", { className: B.pickerListAndSearch }, /* @__PURE__ */ i.createElement("div", { className: B.pickerList }, /* @__PURE__ */ i.createElement(ys, null), /* @__PURE__ */ i.createElement(ls, null), n), /* @__PURE__ */ i.createElement("div", { className: B.searchAndActions }, s.search && /* @__PURE__ */ i.createElement(Es, { className: B.searchField, search: s.search }), /* @__PURE__ */ i.createElement(S, { id: "actions" }))), /* @__PURE__ */ i.createElement(Ss, null));
328
- }, Ts = "flow--list", Is = {
329
- list: Ts
326
+ const n = s.filters.map((d) => /* @__PURE__ */ i.createElement(ds, { key: d.property, filter: d }));
327
+ return /* @__PURE__ */ i.createElement("div", { className: L(t, B.header) }, /* @__PURE__ */ i.createElement("div", { className: B.pickerListAndSearch }, /* @__PURE__ */ i.createElement("div", { className: B.pickerList }, /* @__PURE__ */ i.createElement(Fs, null), /* @__PURE__ */ i.createElement(cs, null), n), /* @__PURE__ */ i.createElement("div", { className: B.searchAndActions }, s.search && /* @__PURE__ */ i.createElement(ys, { className: B.searchField, search: s.search }), /* @__PURE__ */ i.createElement(S, { id: "actions" }))), /* @__PURE__ */ i.createElement(ws, null));
328
+ }, Is = "flow--list", Cs = {
329
+ list: Is
330
330
  };
331
- let Cs = class Rt {
331
+ let Ls = class Nt {
332
332
  constructor(t, e, s) {
333
333
  r(this, "id");
334
334
  r(this, "data");
@@ -336,19 +336,19 @@ let Cs = class Rt {
336
336
  this.collection = t, this.id = e, this.data = s;
337
337
  }
338
338
  static fromRow(t, e) {
339
- return new Rt(t, e.id, e.original);
339
+ return new Nt(t, e.id, e.original);
340
340
  }
341
341
  };
342
- class Ls {
342
+ class Ps {
343
343
  constructor(t) {
344
344
  r(this, "list");
345
345
  this.list = t;
346
346
  }
347
347
  get entries() {
348
- return this.list.reactTable.table.getRowModel().rows.map((t) => Cs.fromRow(this, t));
348
+ return this.list.reactTable.table.getRowModel().rows.map((t) => Ls.fromRow(this, t));
349
349
  }
350
350
  }
351
- class Ps {
351
+ class Vs {
352
352
  constructor(t, e = {}) {
353
353
  r(this, "batchSize");
354
354
  r(this, "list");
@@ -395,7 +395,7 @@ class Ps {
395
395
  }
396
396
  }
397
397
  }
398
- const Vs = "$";
398
+ const As = "$";
399
399
  class T {
400
400
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
401
401
  constructor(t, e) {
@@ -403,7 +403,7 @@ class T {
403
403
  r(this, "value");
404
404
  r(this, "id");
405
405
  var s;
406
- this.filter = t, typeof e == "string" && e.startsWith("FilterValueId@@") ? (this.value = (s = t.values.find((n) => n.id === e)) == null ? void 0 : s.value, this.id = e) : (this.value = e, this.id = `FilterValueId@@${this.filter.property}@@${Ct(this.value)}`);
406
+ this.filter = t, typeof e == "string" && e.startsWith("FilterValueId@@") ? (this.value = (s = t.values.find((n) => n.id === e)) == null ? void 0 : s.value, this.id = e) : (this.value = e, this.id = `FilterValueId@@${this.filter.property}@@${It(this.value)}`);
407
407
  }
408
408
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
409
409
  static create(t, e) {
@@ -425,7 +425,7 @@ class T {
425
425
  this.filter.deactivateValue(this);
426
426
  }
427
427
  }
428
- const Y = (a) => Array.isArray(a) ? a : [a], As = (a, t) => a === t, Ms = (a) => String(a);
428
+ const Y = (a) => Array.isArray(a) ? a : [a], Ms = (a, t) => a === t, ks = (a) => String(a);
429
429
  class K {
430
430
  constructor(t, e) {
431
431
  r(this, "_values");
@@ -439,7 +439,7 @@ class K {
439
439
  r(this, "onFilterUpdateCallbacks", /* @__PURE__ */ new Set());
440
440
  r(this, "defaultSelectedValues");
441
441
  var s;
442
- this.list = t, this.property = e.property, this.mode = e.mode ?? "one", this._values = (s = e.values) == null ? void 0 : s.map((n) => T.create(this, n)), this.matcher = e.matcher ?? As, this.renderItem = e.renderItem ?? Ms, this.name = e.name, this.defaultSelectedValues = e.defaultSelected;
442
+ this.list = t, this.property = e.property, this.mode = e.mode ?? "one", this._values = (s = e.values) == null ? void 0 : s.map((n) => T.create(this, n)), this.matcher = e.matcher ?? Ms, this.renderItem = e.renderItem ?? ks, this.name = e.name, this.defaultSelectedValues = e.defaultSelected;
443
443
  }
444
444
  getStoredSelectedIds() {
445
445
  var t;
@@ -460,7 +460,7 @@ class K {
460
460
  }
461
461
  getReactTableFilterFn() {
462
462
  return (t, e, s) => {
463
- const n = this.property, o = n.startsWith(Vs) ? t.original : Ce(t.original, n);
463
+ const n = this.property, o = n.startsWith(As) ? t.original : Ce(t.original, n);
464
464
  return this.checkFilterMatches(o, s);
465
465
  };
466
466
  }
@@ -551,7 +551,7 @@ class K {
551
551
  }
552
552
  }
553
553
  r(K, "settingsStorageSchema", $.record($.array($.string())).optional());
554
- class ks {
554
+ class Bs {
555
555
  constructor(t, e) {
556
556
  r(this, "list");
557
557
  r(this, "property");
@@ -607,7 +607,7 @@ class at {
607
607
  }
608
608
  getTableColumn(t) {
609
609
  const e = this.table.getColumn(t);
610
- return Lt(!!e, `Column #${t} is not defined`), e;
610
+ return Ct(!!e, `Column #${t} is not defined`), e;
611
611
  }
612
612
  useReactTable(t, e = {}) {
613
613
  var c;
@@ -691,7 +691,7 @@ class nt {
691
691
  });
692
692
  }
693
693
  static useNew() {
694
- return Ft(new nt()).current;
694
+ return Be(() => new nt());
695
695
  }
696
696
  reset() {
697
697
  this.batchLoadingStates = [], this.dataBatches = [];
@@ -706,7 +706,7 @@ class nt {
706
706
  return (this.dataBatches.length === 0 ? this.prevDataBatches : this.dataBatches).flatMap((e) => e);
707
707
  }
708
708
  useMergedData() {
709
- return vt(() => this.mergedData);
709
+ return vt(() => this.mergedData, [this.prevDataBatches]);
710
710
  }
711
711
  get isLoading() {
712
712
  return this.batchLoadingStates.some((t) => t === "loading" || t === "void");
@@ -718,7 +718,7 @@ class nt {
718
718
  return t in this.dataBatches;
719
719
  }
720
720
  }
721
- const Bs = [];
721
+ const xs = [];
722
722
  class rt {
723
723
  constructor(t, e = {}) {
724
724
  r(this, "list");
@@ -730,7 +730,7 @@ class rt {
730
730
  r(this, "staticDataProperties", []);
731
731
  var d;
732
732
  const { source: s } = e;
733
- this.dataSource = s ?? { staticData: Bs };
733
+ this.dataSource = s ?? { staticData: xs };
734
734
  const n = "manualPagination" in this.dataSource ? this.dataSource.manualPagination : void 0, o = "manualFiltering" in this.dataSource ? this.dataSource.manualFiltering : void 0, c = "manualSorting" in this.dataSource ? this.dataSource.manualSorting : void 0;
735
735
  this.list = t, this.loaderState = nt.useNew(), this.manualPagination = n ?? !1, this.manualFiltering = o ?? this.manualPagination, this.manualSorting = c ?? this.manualPagination, this.list.filters.forEach((l) => l.onFilterUpdated(() => this.reset())), (d = this.list.search) == null || d.onUpdated(() => this.reset()), this.initStaticDataProperties();
736
736
  }
@@ -818,7 +818,7 @@ class rt {
818
818
  [e.staticData]
819
819
  );
820
820
  if ("asyncLoader" in e) {
821
- const n = e.asyncLoader, o = e.dependencies, c = o ? Ct(o).toString() : void 0;
821
+ const n = e.asyncLoader, o = e.dependencies, c = o ? It(o).toString() : void 0;
822
822
  return wt(n, [s], {
823
823
  loaderId: c
824
824
  });
@@ -830,7 +830,7 @@ class rt {
830
830
  throw new Error("Unknown data source");
831
831
  }
832
832
  }
833
- class xs {
833
+ class Ds {
834
834
  constructor(t, e) {
835
835
  r(this, "list");
836
836
  r(this, "render");
@@ -889,21 +889,21 @@ const O = class O {
889
889
  }
890
890
  };
891
891
  r(O, "fallbackRenderItemFn", (t) => yt("pre", void 0, JSON.stringify(t)));
892
- let X = O, Ds = class {
892
+ let X = O, Ns = class {
893
893
  constructor(t, e = {}) {
894
894
  r(this, "tableHeader");
895
895
  r(this, "componentProps");
896
896
  this.tableHeader = t, this.componentProps = e;
897
897
  }
898
- }, Ns = class {
898
+ }, Rs = class {
899
899
  constructor(t, e = {}) {
900
900
  r(this, "table");
901
901
  r(this, "componentProps");
902
902
  r(this, "columns");
903
903
  const { columns: s = [], ...n } = e;
904
- this.table = t, this.columns = s.map((o) => new Ds(this, o)), this.componentProps = n;
904
+ this.table = t, this.columns = s.map((o) => new Ns(this, o)), this.componentProps = n;
905
905
  }
906
- }, Rs = class {
906
+ }, $s = class {
907
907
  constructor(t, e = {}) {
908
908
  r(this, "row");
909
909
  r(this, "renderFn");
@@ -911,34 +911,34 @@ let X = O, Ds = class {
911
911
  const { renderFn: s, ...n } = e;
912
912
  this.row = t, this.renderFn = s, this.componentProps = n;
913
913
  }
914
- }, $s = class {
914
+ }, Us = class {
915
915
  constructor(t, e = {}) {
916
916
  r(this, "tableBody");
917
917
  r(this, "cells");
918
918
  r(this, "componentProps");
919
919
  const { cells: s = [], ...n } = e;
920
- this.tableBody = t, this.cells = s.map((o) => new Rs(this, o)), this.componentProps = n;
920
+ this.tableBody = t, this.cells = s.map((o) => new $s(this, o)), this.componentProps = n;
921
921
  }
922
- }, Us = class {
922
+ }, Ks = class {
923
923
  constructor(t, e = {}) {
924
924
  r(this, "table");
925
925
  r(this, "componentProps");
926
926
  r(this, "row");
927
927
  const { row: s, ...n } = e;
928
- this.table = t, this.row = new $s(this, s), this.componentProps = n;
928
+ this.table = t, this.row = new Us(this, s), this.componentProps = n;
929
929
  }
930
- }, Ks = class {
930
+ }, zs = class {
931
931
  constructor(t, e = {}) {
932
932
  r(this, "list");
933
933
  r(this, "header");
934
934
  r(this, "body");
935
935
  r(this, "componentProps");
936
936
  const { header: s, body: n, ...o } = e;
937
- this.list = t, this.header = new Ns(this, s), this.body = new Us(this, n), this.componentProps = o;
937
+ this.list = t, this.header = new Rs(this, s), this.body = new Ks(this, n), this.componentProps = o;
938
938
  }
939
939
  };
940
940
  var y;
941
- let zs = (y = class {
941
+ let Os = (y = class {
942
942
  constructor(t) {
943
943
  r(this, "filters");
944
944
  r(this, "itemView");
@@ -976,7 +976,7 @@ let zs = (y = class {
976
976
  accordion: M = !1,
977
977
  ...b
978
978
  } = t;
979
- this.settingsStore = Be(), this.settingStorageKey = e, this.filterSettingsStorageKey = e ? `${e}.activeFilters` : void 0, this.viewModeStorageKey = e ? `${e}.viewMode` : void 0, this.supportsSettingsStorage = !!this.settingStorageKey, this.items = new Ls(this), this.filters = o.map((p) => new K(this, p)), this.sorting = c.map((p) => new ks(this, p)), this.search = m ? new xs(this, m) : void 0, this.itemView = s ? new X(this, s) : void 0, this.accordion = M, this.table = n ? new Ks(this, n) : void 0, this.batches = new Ps(this, d), this.componentProps = b, this.loader = rt.useNew(this, u), this.onAction = g, this.getItemId = V, this.reactTable = at.useNew(this, l, {
979
+ this.settingsStore = xe(), this.settingStorageKey = e, this.filterSettingsStorageKey = e ? `${e}.activeFilters` : void 0, this.viewModeStorageKey = e ? `${e}.viewMode` : void 0, this.supportsSettingsStorage = !!this.settingStorageKey, this.items = new Ps(this), this.filters = o.map((p) => new K(this, p)), this.sorting = c.map((p) => new Bs(this, p)), this.search = m ? new Ds(this, m) : void 0, this.itemView = s ? new X(this, s) : void 0, this.accordion = M, this.table = n ? new zs(this, n) : void 0, this.batches = new Vs(this, d), this.componentProps = b, this.loader = rt.useNew(this, u), this.onAction = g, this.getItemId = V, this.reactTable = at.useNew(this, l, {
980
980
  manualFiltering: this.loader.manualFiltering,
981
981
  manualPagination: this.loader.manualPagination,
982
982
  manualSorting: this.loader.manualSorting
@@ -1038,7 +1038,7 @@ let zs = (y = class {
1038
1038
  }
1039
1039
  getSorting(t) {
1040
1040
  const e = this.sorting.find((s) => s.id === t);
1041
- return Lt(!!e, `Could not get Sorting (ID: ${t})`), e;
1041
+ return Ct(!!e, `Could not get Sorting (ID: ${t})`), e;
1042
1042
  }
1043
1043
  clearSorting() {
1044
1044
  return this.sorting.forEach((t) => t.clear());
@@ -1053,19 +1053,19 @@ let zs = (y = class {
1053
1053
  return !this.loader.useIsLoading() && this.items.entries.length === 0;
1054
1054
  }
1055
1055
  }, r(y, "viewModeSettingsStorageSchema", $.enum(["list", "table", "tiles"]).optional()), y);
1056
- const Os = "flow--list--items", Hs = "flow--list--items--is-loading", qs = "flow--list--items--tiles", Q = {
1057
- items: Os,
1058
- isLoading: Hs,
1059
- tiles: qs
1060
- }, Gs = "flow--list--items--item", Ws = "flow--list--items--item--is-selected", js = "flow--list--items--item--has-action", Js = "flow--list--items--item--tile", C = {
1061
- item: Gs,
1062
- isSelected: Ws,
1063
- hasAction: js,
1064
- tile: Js
1065
- }, $t = () => {
1056
+ const Hs = "flow--list--items", qs = "flow--list--items--is-loading", Gs = "flow--list--items--tiles", Q = {
1057
+ items: Hs,
1058
+ isLoading: qs,
1059
+ tiles: Gs
1060
+ }, Ws = "flow--list--items--item", js = "flow--list--items--item--is-selected", Js = "flow--list--items--item--has-action", Ys = "flow--list--items--item--tile", C = {
1061
+ item: Ws,
1062
+ isSelected: js,
1063
+ hasAction: Js,
1064
+ tile: Ys
1065
+ }, Rt = () => {
1066
1066
  const t = f().viewMode === "tiles";
1067
- return /* @__PURE__ */ i.createElement(Dt, null, t && /* @__PURE__ */ i.createElement(xe, null, /* @__PURE__ */ i.createElement(Pt, { style: { aspectRatio: 16 / 9 } })), /* @__PURE__ */ i.createElement(st, null, /* @__PURE__ */ i.createElement(z, { width: "200px" })), /* @__PURE__ */ i.createElement(P, null, /* @__PURE__ */ i.createElement(z, { width: "300px" })));
1068
- }, Ys = (a) => {
1067
+ return /* @__PURE__ */ i.createElement(xt, null, t && /* @__PURE__ */ i.createElement(De, null, /* @__PURE__ */ i.createElement(Lt, { style: { aspectRatio: 16 / 9 } })), /* @__PURE__ */ i.createElement(st, null, /* @__PURE__ */ i.createElement(z, { width: "200px" })), /* @__PURE__ */ i.createElement(P, null, /* @__PURE__ */ i.createElement(z, { width: "300px" })));
1068
+ }, Qs = (a) => {
1069
1069
  const { isExpanded: t, toggle: e, children: s, contentElementId: n } = a, o = I(w);
1070
1070
  return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(
1071
1071
  F,
@@ -1079,13 +1079,13 @@ const Os = "flow--list--items", Hs = "flow--list--items--is-loading", qs = "flow
1079
1079
  "aria-controls": n,
1080
1080
  "aria-expanded": t
1081
1081
  },
1082
- t ? /* @__PURE__ */ i.createElement(Ne, null) : /* @__PURE__ */ i.createElement(De, null)
1082
+ t ? /* @__PURE__ */ i.createElement(Re, null) : /* @__PURE__ */ i.createElement(Ne, null)
1083
1083
  ), t && s);
1084
- }, Qs = (a) => {
1084
+ }, Xs = (a) => {
1085
1085
  var M;
1086
1086
  const { data: t, children: e } = a, s = f(), n = s.itemView, o = s.onAction, [c, d] = H(
1087
1087
  ((M = n == null ? void 0 : n.defaultExpanded) == null ? void 0 : M.call(n, t)) ?? !1
1088
- ), l = ae(), u = Ft(null), m = s.accordion, g = e ?? (n == null ? void 0 : n.render(t));
1088
+ ), l = ie(), u = ae(null), m = s.accordion, g = e ?? (n == null ? void 0 : n.render(t));
1089
1089
  if (D(() => {
1090
1090
  var b, k;
1091
1091
  m && ((b = u.current) == null || b.setAttribute("aria-expanded", String(c)), (k = u.current) == null || k.setAttribute("aria-controls", l));
@@ -1105,7 +1105,7 @@ const Os = "flow--list--items", Hs = "flow--list--items--is-loading", qs = "flow
1105
1105
  id: x((b) => b.slot === "bottom" ? l : void 0),
1106
1106
  wrapWith: x(
1107
1107
  (b) => b.slot === "bottom" ? /* @__PURE__ */ i.createElement(
1108
- Ys,
1108
+ Qs,
1109
1109
  {
1110
1110
  contentElementId: l,
1111
1111
  toggle: V,
@@ -1129,8 +1129,8 @@ const Os = "flow--list--items", Hs = "flow--list--items--is-loading", qs = "flow
1129
1129
  g
1130
1130
  )
1131
1131
  };
1132
- }, Xs = (a) => {
1133
- const { id: t, data: e, tiles: s } = a, o = f().itemView, { gridItemProps: c, children: d } = Qs(a);
1132
+ }, Zs = (a) => {
1133
+ const { id: t, data: e, tiles: s } = a, o = f().itemView, { gridItemProps: c, children: d } = Xs(a);
1134
1134
  if (!o)
1135
1135
  return null;
1136
1136
  const l = o.textValue ? o.textValue(e) : void 0, u = o.href ? o.href(e) : void 0, m = !!c.onAction || !!u;
@@ -1148,9 +1148,9 @@ const Os = "flow--list--items", Hs = "flow--list--items--is-loading", qs = "flow
1148
1148
  href: u,
1149
1149
  ...c
1150
1150
  },
1151
- /* @__PURE__ */ i.createElement(ne, { fallback: /* @__PURE__ */ i.createElement($t, null) }, d)
1151
+ /* @__PURE__ */ i.createElement(ne, { fallback: /* @__PURE__ */ i.createElement(Rt, null) }, d)
1152
1152
  );
1153
- }, Zs = (a) => {
1153
+ }, _s = (a) => {
1154
1154
  const { tiles: t, children: e } = a;
1155
1155
  return /* @__PURE__ */ i.createElement(
1156
1156
  it.GridListItem,
@@ -1162,16 +1162,16 @@ const Os = "flow--list--items", Hs = "flow--list--items--is-loading", qs = "flow
1162
1162
  );
1163
1163
  }, Z = () => {
1164
1164
  const a = I(w);
1165
- return /* @__PURE__ */ i.createElement(Re, null, /* @__PURE__ */ i.createElement($e, null), /* @__PURE__ */ i.createElement(st, null, a.format("list.noResult.heading")), /* @__PURE__ */ i.createElement(P, null, a.format("list.noResult.text")));
1166
- }, _s = () => {
1165
+ return /* @__PURE__ */ i.createElement($e, null, /* @__PURE__ */ i.createElement(Ue, null), /* @__PURE__ */ i.createElement(st, null, a.format("list.noResult.heading")), /* @__PURE__ */ i.createElement(P, null, a.format("list.noResult.text")));
1166
+ }, ti = () => {
1167
1167
  var e;
1168
- const t = ((e = f().itemView) == null ? void 0 : e.fallback) ?? /* @__PURE__ */ i.createElement($t, null);
1169
- return Array.from(Array(5)).map((s, n) => /* @__PURE__ */ i.createElement(Zs, { key: n }, re(t)));
1168
+ const t = ((e = f().itemView) == null ? void 0 : e.fallback) ?? /* @__PURE__ */ i.createElement(Rt, null);
1169
+ return Array.from(Array(5)).map((s, n) => /* @__PURE__ */ i.createElement(_s, { key: n }, re(t)));
1170
1170
  }, Et = (a) => {
1171
1171
  const { tiles: t } = a, e = f(), s = e.loader.useIsLoading(), n = e.loader.useIsInitiallyLoading();
1172
1172
  if (!e.itemView)
1173
1173
  return null;
1174
- const o = e.items.entries.map((d) => /* @__PURE__ */ i.createElement(Xs, { key: d.id, data: d.data, id: d.id, tiles: t })), c = L(
1174
+ const o = e.items.entries.map((d) => /* @__PURE__ */ i.createElement(Zs, { key: d.id, data: d.data, id: d.id, tiles: t })), c = L(
1175
1175
  Q.items,
1176
1176
  s && Q.isLoading,
1177
1177
  t && Q.tiles
@@ -1186,25 +1186,25 @@ const Os = "flow--list--items", Hs = "flow--list--items--is-loading", qs = "flow
1186
1186
  gridTemplateColumns: `repeat(auto-fill, minmax(${e.itemView.tileMaxWidth}px, 1fr))`
1187
1187
  }
1188
1188
  },
1189
- n ? /* @__PURE__ */ i.createElement(_s, null) : o
1189
+ n ? /* @__PURE__ */ i.createElement(ti, null) : o
1190
1190
  ));
1191
- }, Ut = (a, t) => oe(a) ? typeof t == "string" ? typeof a.type == "string" ? a.type === t : !1 : a.type === t : !1, E = (a, t) => Ue(a, (e) => Ut(e, t)), R = (a, t) => {
1191
+ }, $t = (a, t) => oe(a) ? typeof t == "string" ? typeof a.type == "string" ? a.type === t : !1 : a.type === t : !1, E = (a, t) => Ke(a, (e) => $t(e, t)), R = (a, t) => {
1192
1192
  const e = [];
1193
- return Ke(a, (s) => {
1194
- Ut(s, t) && e.push(s);
1193
+ return ze(a, (s) => {
1194
+ $t(s, t) && e.push(s);
1195
1195
  }), e;
1196
- }, Kt = (a) => null, ti = () => Kt, zt = (a) => null, ei = () => zt, Ot = (a) => null, si = () => Ot, Ht = (a) => null, ii = () => Ht, qt = (a) => null, ai = () => qt, ni = "flow--list--footer", ri = {
1197
- footer: ni
1198
- }, oi = (a) => {
1196
+ }, Ut = (a) => null, ei = () => Ut, Kt = (a) => null, si = () => Kt, zt = (a) => null, ii = () => zt, Ot = (a) => null, ai = () => Ot, Ht = (a) => null, ni = () => Ht, ri = "flow--list--footer", oi = {
1197
+ footer: ri
1198
+ }, li = (a) => {
1199
1199
  const t = I(w), e = f(), s = e.batches, n = e.loader.useIsInitiallyLoading(), o = e.useIsEmpty(), c = s.getTotalItemsCount(), d = s.getVisibleItemsCount();
1200
1200
  if (o)
1201
1201
  return null;
1202
- const l = n ? /* @__PURE__ */ i.createElement(Pt, { width: "200px" }) : t.format("list.paginationInfo", {
1202
+ const l = n ? /* @__PURE__ */ i.createElement(Lt, { width: "200px" }) : t.format("list.paginationInfo", {
1203
1203
  visibleItemsCount: d,
1204
1204
  totalItemsCount: c
1205
1205
  });
1206
1206
  return /* @__PURE__ */ i.createElement(P, { ...a }, l);
1207
- }, li = (a) => {
1207
+ }, ci = (a) => {
1208
1208
  const t = I(w), e = f(), s = e.loader.useIsLoading(), n = e.loader.useIsInitiallyLoading();
1209
1209
  return !e.batches.hasNextBatch() && !s ? null : /* @__PURE__ */ i.createElement(
1210
1210
  F,
@@ -1218,22 +1218,22 @@ const Os = "flow--list--items", Hs = "flow--list--items--is-loading", qs = "flow
1218
1218
  },
1219
1219
  t.format("list.showMore")
1220
1220
  );
1221
- }, ci = () => /* @__PURE__ */ i.createElement("div", { className: ri.footer }, /* @__PURE__ */ i.createElement(oi, null), /* @__PURE__ */ i.createElement(li, null));
1222
- function Gt(a) {
1221
+ }, di = () => /* @__PURE__ */ i.createElement("div", { className: oi.footer }, /* @__PURE__ */ i.createElement(li, null), /* @__PURE__ */ i.createElement(ci, null));
1222
+ function qt(a) {
1223
1223
  return null;
1224
1224
  }
1225
- const di = () => Gt, Wt = (a) => null, jt = (a) => null, Jt = (a) => null, ui = (a) => /* @__PURE__ */ i.createElement(Vt, { ...a }, /* @__PURE__ */ i.createElement(At, null, /* @__PURE__ */ i.createElement(Mt, null, /* @__PURE__ */ i.createElement(z, { width: "100%" }))), /* @__PURE__ */ i.createElement(kt, null, Array.from(Array(5)).map((t, e) => /* @__PURE__ */ i.createElement(Bt, { key: e }, /* @__PURE__ */ i.createElement(xt, null, /* @__PURE__ */ i.createElement(z, { width: "100%" })))))), mi = "flow--list--table", hi = "flow--list--table--is-loading", gi = "flow--list--table--row", pi = "flow--list--table--is-selected", fi = "flow--list--table--has-action", N = {
1226
- table: mi,
1227
- isLoading: hi,
1228
- row: gi,
1229
- isSelected: pi,
1230
- hasAction: fi
1231
- }, bi = () => {
1225
+ const ui = () => qt, Gt = (a) => null, Wt = (a) => null, jt = (a) => null, mi = (a) => /* @__PURE__ */ i.createElement(Pt, { ...a }, /* @__PURE__ */ i.createElement(Vt, null, /* @__PURE__ */ i.createElement(At, null, /* @__PURE__ */ i.createElement(z, { width: "100%" }))), /* @__PURE__ */ i.createElement(Mt, null, Array.from(Array(5)).map((t, e) => /* @__PURE__ */ i.createElement(kt, { key: e }, /* @__PURE__ */ i.createElement(Bt, null, /* @__PURE__ */ i.createElement(z, { width: "100%" })))))), hi = "flow--list--table", gi = "flow--list--table--is-loading", pi = "flow--list--table--row", fi = "flow--list--table--is-selected", bi = "flow--list--table--has-action", N = {
1226
+ table: hi,
1227
+ isLoading: gi,
1228
+ row: pi,
1229
+ isSelected: fi,
1230
+ hasAction: bi
1231
+ }, Si = () => {
1232
1232
  const a = f(), t = a.table, e = a.useIsEmpty(), s = a.loader.useIsLoading(), n = a.loader.useIsInitiallyLoading();
1233
1233
  if (!t)
1234
1234
  return null;
1235
1235
  if (n)
1236
- return /* @__PURE__ */ i.createElement(ui, { ...t.componentProps });
1236
+ return /* @__PURE__ */ i.createElement(mi, { ...t.componentProps });
1237
1237
  if (e)
1238
1238
  return /* @__PURE__ */ i.createElement(Z, null);
1239
1239
  const o = t.list.onAction, c = L(
@@ -1242,15 +1242,15 @@ const di = () => Gt, Wt = (a) => null, jt = (a) => null, Jt = (a) => null, ui =
1242
1242
  t.componentProps.className
1243
1243
  );
1244
1244
  return /* @__PURE__ */ i.createElement(
1245
- Vt,
1245
+ Pt,
1246
1246
  {
1247
1247
  ...a.componentProps,
1248
1248
  ...t.componentProps,
1249
1249
  className: c
1250
1250
  },
1251
- /* @__PURE__ */ i.createElement(At, { ...t.header.componentProps }, t.header.columns.map((d, l) => /* @__PURE__ */ i.createElement(Mt, { key: l, ...d.componentProps }))),
1251
+ /* @__PURE__ */ i.createElement(Vt, { ...t.header.componentProps }, t.header.columns.map((d, l) => /* @__PURE__ */ i.createElement(At, { key: l, ...d.componentProps }))),
1252
1252
  /* @__PURE__ */ i.createElement(
1253
- kt,
1253
+ Mt,
1254
1254
  {
1255
1255
  ...t.body.componentProps,
1256
1256
  renderEmptyState: () => /* @__PURE__ */ i.createElement(Z, null)
@@ -1258,7 +1258,7 @@ const di = () => Gt, Wt = (a) => null, jt = (a) => null, Jt = (a) => null, ui =
1258
1258
  a.items.entries.map((d) => {
1259
1259
  var l;
1260
1260
  return /* @__PURE__ */ i.createElement(
1261
- Bt,
1261
+ kt,
1262
1262
  {
1263
1263
  className: (u) => L(
1264
1264
  N.row,
@@ -1271,20 +1271,20 @@ const di = () => Gt, Wt = (a) => null, jt = (a) => null, Jt = (a) => null, ui =
1271
1271
  onAction: o ? () => o(d.data) : void 0,
1272
1272
  ...t.body.row.componentProps
1273
1273
  },
1274
- (l = t.body.row) == null ? void 0 : l.cells.map((u, m) => /* @__PURE__ */ i.createElement(xt, { key: m, ...u.componentProps }, u.renderFn ? u.renderFn(d.data, a) : void 0))
1274
+ (l = t.body.row) == null ? void 0 : l.cells.map((u, m) => /* @__PURE__ */ i.createElement(Bt, { key: m, ...u.componentProps }, u.renderFn ? u.renderFn(d.data, a) : void 0))
1275
1275
  );
1276
1276
  })
1277
1277
  )
1278
1278
  );
1279
- }, Yt = (a) => null, Qt = (a) => null, Xt = (a) => null, Si = (a, t) => !!E(a, t), wi = It("List", (a) => {
1279
+ }, Jt = (a) => null, Yt = (a) => null, Qt = (a) => null, wi = (a, t) => !!E(a, t), vi = Tt("List", (a) => {
1280
1280
  var ot, lt, ct, dt, ut, mt, ht, gt, pt;
1281
1281
  const { children: t, batchSize: e, onChange: s, refProp: n, ...o } = a, c = (ot = E(
1282
1282
  t,
1283
- Kt
1283
+ Ut
1284
1284
  )) == null ? void 0 : ot.props, d = (lt = E(
1285
1285
  t,
1286
- ze
1287
- )) == null ? void 0 : lt.props, l = (ct = E(t, qt)) == null ? void 0 : ct.props, u = {
1286
+ Oe
1287
+ )) == null ? void 0 : lt.props, l = (ct = E(t, Ht)) == null ? void 0 : ct.props, u = {
1288
1288
  source: c ? {
1289
1289
  ...c,
1290
1290
  asyncLoader: c.children
@@ -1294,20 +1294,20 @@ const di = () => Gt, Wt = (a) => null, jt = (a) => null, Jt = (a) => null, ui =
1294
1294
  } : l ? {
1295
1295
  staticData: l.data
1296
1296
  } : void 0
1297
- }, m = (dt = E(t, Gt)) == null ? void 0 : dt.props, g = (ut = E(t, Ht)) == null ? void 0 : ut.props, V = (mt = E(t, Yt)) == null ? void 0 : mt.props, A = R(t, Wt).map(
1297
+ }, m = (dt = E(t, qt)) == null ? void 0 : dt.props, g = (ut = E(t, Ot)) == null ? void 0 : ut.props, V = (mt = E(t, Jt)) == null ? void 0 : mt.props, A = R(t, Gt).map(
1298
1298
  (v) => ({
1299
1299
  ...v.props,
1300
1300
  name: v.props.children
1301
1301
  })
1302
- ), M = R(t, Jt).map(
1302
+ ), M = R(t, jt).map(
1303
1303
  (v) => ({
1304
1304
  ...v.props,
1305
1305
  renderFn: v.props.children
1306
1306
  })
1307
- ), b = (ht = E(t, jt)) == null ? void 0 : ht.props, k = (gt = E(t, Qt)) == null ? void 0 : gt.props, G = (pt = E(t, Xt)) == null ? void 0 : pt.props, p = zs.useNew({
1307
+ ), b = (ht = E(t, Wt)) == null ? void 0 : ht.props, k = (gt = E(t, Yt)) == null ? void 0 : gt.props, G = (pt = E(t, Qt)) == null ? void 0 : pt.props, p = Os.useNew({
1308
1308
  onChange: s,
1309
1309
  loader: u,
1310
- filters: R(t, zt).map(
1310
+ filters: R(t, Kt).map(
1311
1311
  (v) => ({
1312
1312
  ...v.props,
1313
1313
  renderItem: v.props.children
@@ -1318,7 +1318,7 @@ const di = () => Gt, Wt = (a) => null, jt = (a) => null, Jt = (a) => null, ui =
1318
1318
  textFieldProps: m,
1319
1319
  defaultValue: m.defaultValue
1320
1320
  } : void 0,
1321
- sorting: R(t, Ot).map((v) => v.props),
1321
+ sorting: R(t, zt).map((v) => v.props),
1322
1322
  itemView: g ? {
1323
1323
  ...g,
1324
1324
  renderFn: g.children
@@ -1341,7 +1341,7 @@ const di = () => Gt, Wt = (a) => null, jt = (a) => null, Jt = (a) => null, ui =
1341
1341
  batchSize: e
1342
1342
  },
1343
1343
  ...o
1344
- }), Zt = {
1344
+ }), Xt = {
1345
1345
  ActionGroup: {
1346
1346
  className: B.actions,
1347
1347
  tunnelId: "actions",
@@ -1350,49 +1350,49 @@ const di = () => Gt, Wt = (a) => null, jt = (a) => null, Jt = (a) => null, ui =
1350
1350
  ListSummary: {
1351
1351
  tunnelId: "listSummary"
1352
1352
  }
1353
- }, _t = Si(t, He);
1354
- return /* @__PURE__ */ i.createElement(_, { props: Zt }, /* @__PURE__ */ i.createElement(Tt, null, /* @__PURE__ */ i.createElement(
1355
- Nt.Provider,
1353
+ }, Zt = wi(t, qe);
1354
+ return /* @__PURE__ */ i.createElement(_, { props: Xt }, /* @__PURE__ */ i.createElement(Ft, null, /* @__PURE__ */ i.createElement(
1355
+ Dt.Provider,
1356
1356
  {
1357
1357
  value: {
1358
1358
  list: p
1359
1359
  }
1360
1360
  },
1361
- /* @__PURE__ */ i.createElement(rs, null),
1362
- /* @__PURE__ */ i.createElement("div", { className: Is.list, ref: n }, t, /* @__PURE__ */ i.createElement(Fs, { hasActionGroup: _t }), /* @__PURE__ */ i.createElement("div", null, p.items.entries.length > 0 && /* @__PURE__ */ i.createElement(S, { id: "listSummary" }), p.viewMode === "list" && /* @__PURE__ */ i.createElement(Et, null), p.viewMode === "tiles" && /* @__PURE__ */ i.createElement(Et, { tiles: !0 }), p.viewMode === "table" && /* @__PURE__ */ i.createElement(bi, null)), /* @__PURE__ */ i.createElement(ci, null))
1361
+ /* @__PURE__ */ i.createElement(os, null),
1362
+ /* @__PURE__ */ i.createElement("div", { className: Cs.list, ref: n }, t, /* @__PURE__ */ i.createElement(Ts, { hasActionGroup: Zt }), /* @__PURE__ */ i.createElement("div", null, p.items.entries.length > 0 && /* @__PURE__ */ i.createElement(S, { id: "listSummary" }), p.viewMode === "list" && /* @__PURE__ */ i.createElement(Et, null), p.viewMode === "tiles" && /* @__PURE__ */ i.createElement(Et, { tiles: !0 }), p.viewMode === "table" && /* @__PURE__ */ i.createElement(Si, null)), /* @__PURE__ */ i.createElement(di, null))
1363
1363
  )));
1364
- }), vi = () => wi, Fa = () => ({
1365
- List: vi(),
1366
- Filter: ei(),
1367
- Search: di(),
1368
- Sorting: si(),
1369
- Item: ii(),
1370
- ItemView: Dt,
1371
- TableHeader: Qt,
1372
- TableColumn: Wt,
1373
- TableBody: Xt,
1374
- TableRow: jt,
1375
- TableCell: Jt,
1376
- Table: Yt,
1377
- StaticData: ai(),
1378
- LoaderAsync: ti(),
1379
- LoaderAsyncResource: Oe()
1364
+ }), Ei = () => vi, Ta = () => ({
1365
+ List: Ei(),
1366
+ Filter: si(),
1367
+ Search: ui(),
1368
+ Sorting: ii(),
1369
+ Item: ai(),
1370
+ ItemView: xt,
1371
+ TableHeader: Yt,
1372
+ TableColumn: Gt,
1373
+ TableBody: Qt,
1374
+ TableRow: Wt,
1375
+ TableCell: jt,
1376
+ Table: Jt,
1377
+ StaticData: ni(),
1378
+ LoaderAsync: ei(),
1379
+ LoaderAsyncResource: He()
1380
1380
  });
1381
1381
  export {
1382
- wi as List,
1383
- zt as ListFilter,
1384
- Ht as ListItem,
1385
- Dt as ListItemView,
1386
- Kt as ListLoaderAsync,
1387
- Ot as ListSorting,
1388
- qt as ListStaticData,
1389
- fa as ListSummary,
1390
- vi as TypedList,
1391
- ei as TypedListFilter,
1392
- ii as TypedListItem,
1393
- ti as TypedListLoaderAsync,
1394
- si as TypedListSorting,
1395
- ai as TypedListStaticData,
1396
- Fa as typedList,
1382
+ vi as List,
1383
+ Kt as ListFilter,
1384
+ Ot as ListItem,
1385
+ xt as ListItemView,
1386
+ Ut as ListLoaderAsync,
1387
+ zt as ListSorting,
1388
+ Ht as ListStaticData,
1389
+ ba as ListSummary,
1390
+ Ei as TypedList,
1391
+ si as TypedListFilter,
1392
+ ai as TypedListItem,
1393
+ ei as TypedListLoaderAsync,
1394
+ ii as TypedListSorting,
1395
+ ni as TypedListStaticData,
1396
+ Ta as typedList,
1397
1397
  f as useList
1398
1398
  };