@mittwald/flow-react-components 0.1.0-alpha.383 → 0.1.0-alpha.385

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/js/List.js CHANGED
@@ -1,71 +1,67 @@
1
1
  "use client"
2
2
  /* */
3
- var Xe = Object.defineProperty;
4
- var Ze = (n, e, t) => e in n ? Xe(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
5
- var r = (n, e, t) => Ze(n, typeof e != "symbol" ? e + "" : e, t);
6
- import i, { createContext as _e, useContext as et, createElement as we, useState as O, useEffect as M, useRef as Ee, useId as tt, Suspense as st, cloneElement as it } from "react";
3
+ var Xt = Object.defineProperty;
4
+ var Zt = (n, t, e) => t in n ? Xt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
5
+ var r = (n, t, e) => Zt(n, typeof t != "symbol" ? t + "" : t, e);
6
+ import a, { createContext as _t, useContext as te, createElement as Et, useState as O, useEffect as x, useRef as wt, useId as ee, Suspense as se, cloneElement as ae } from "react";
7
7
  import "./propsContext-DzAKlmhS.js";
8
8
  import { PropsContextProvider as Z } from "./PropsContextProvider.js";
9
9
  import "@react-aria/utils";
10
- import { isShallowEqual as at, unique as nt, difference as rt, times as ot } from "remeda";
10
+ import { isShallowEqual as ie, unique as ne, difference as re, times as oe } from "remeda";
11
11
  import { d as Y } from "./dynamic-ClpUSmEt.js";
12
- import { B as w } from "./Button-BTc_iJae.js";
13
- import { IconArrowBackUp as lt } from "@tabler/icons-react";
14
- import { I as pe } from "./Icon--OEo4TjW.js";
15
- import { I as ct } from "./IconContextMenu-x1p9NcUF.js";
12
+ import { B as E } from "./Button-BTc_iJae.js";
13
+ import { IconArrowBackUp as le } from "@tabler/icons-react";
14
+ import { I as pt } from "./Icon--OEo4TjW.js";
15
+ import { I as ce } from "./IconContextMenu-x1p9NcUF.js";
16
16
  import { a as H, C as _ } from "./ContextMenuTrigger-CsnzKkVf.js";
17
- import { M as ee } from "./MenuItem-BhQ--5y5.js";
17
+ import { M as tt } from "./MenuItem-BhQ--5y5.js";
18
18
  import { useLocalizedStringFormatter as I } from "react-aria";
19
- import { TunnelProvider as Fe, TunnelExit as z } from "@mittwald/react-tunnel";
19
+ import { TunnelProvider as Ft, TunnelExit as M } from "@mittwald/react-tunnel";
20
20
  import k from "clsx";
21
- import { g as dt } from "./getContainerBreakpointSizeClassName-BrcFDcCY.js";
22
- import { f as Ie } from "./flowComponent-BQs9wMX_.js";
23
- import { R as ut } from "./Render-BOMk4emj.js";
21
+ import { f as It } from "./flowComponent-BQs9wMX_.js";
22
+ import { R as de } from "./Render-BOMk4emj.js";
24
23
  import { T } from "./Text-Dh4iy9qD.js";
25
- import { c as mt, a as ht, b as gt, I as pt, d as ft } from "./IconView-CSIFhlza.js";
26
- import { observer as St } from "mobx-react-lite";
24
+ import { c as ue, a as me, b as he, I as ge, d as pe } from "./IconView-CSIFhlza.js";
25
+ import { observer as fe } from "mobx-react-lite";
27
26
  import { a as G, T as W } from "./Tooltip-D5QM-BbC.js";
28
- import { B as bt } from "./Badge-CIT6Z_E_.js";
29
- import { makeObservable as vt, observable as fe, computed as Se, action as j } from "mobx";
27
+ import { B as be } from "./Badge-CIT6Z_E_.js";
28
+ import { makeObservable as Se, observable as ft, computed as bt, action as j } from "mobx";
30
29
  import "./context-BaYmTa0I.js";
31
- import { u as yt } from "./useOnChange-C1Quwyuz.js";
32
- import { S as wt } from "./SearchField-BGdC1K9_.js";
33
- import { H as te } from "./Heading-C61IpDy1.js";
34
- import { S as Et } from "./Section-7khrqgxc.js";
35
- import { getProperty as Ft } from "dot-prop";
36
- import { hash as Te } from "object-code";
37
- import D from "zod";
38
- import { useReactTable as It, getCoreRowModel as Tt, getSortedRowModel as Ct, getFilteredRowModel as Lt, getPaginationRowModel as Pt, getFacetedUniqueValues as At } from "@tanstack/react-table";
39
- import Ce from "invariant";
40
- import { getAsyncResource as be } from "@mittwald/react-use-promise";
41
- import { u as ve } from "./useSelector-DpU7_HMO.js";
42
- import { u as Vt } from "./SettingsProvider-D9oDS5r9.js";
43
- import * as se from "react-aria-components";
44
- import { S as U } from "./SkeletonText-B5ZghZhO.js";
45
- import { I as kt } from "./IconChevronDown-wKRgAuyR.js";
46
- import { I as Bt } from "./IconChevronUp-C2rq4v--.js";
47
- import { I as Mt } from "./IllustratedMessage-DB1AH-Oq.js";
48
- import { I as xt } from "./IconSearch-9xESFc33.js";
49
- import { a as v, b as x, d as Dt } from "./deepHas-KHS5X1F_.js";
50
- import { ListLoaderAsyncResource as Nt, TypedListLoaderAsyncResource as Rt } from "./List/ListLoaderAsyncResource.js";
51
- import { S as $t } from "./Skeleton-CKLaTmDR.js";
52
- import { a as Le, e as Pe, d as Ae, b as Ve, T as ke, c as Be } from "./Table-BdpXhsOd.js";
53
- import { A as zt } from "./ActionGroup-Bd0aZvbX.js";
54
- const Ut = "flow--list--items--item--view", Kt = "flow--list--items--item--view--title", Ot = "flow--list--items--item--view--top-content", Ht = "flow--list--items--item--view--content", qt = "flow--list--items--item--view--action", Gt = "flow--list--items--item--view--avatar", Wt = "flow--list--items--item--view--text", jt = "flow--list--items--item--view--heading", p = {
55
- view: Ut,
56
- title: Kt,
57
- topContent: Ot,
58
- content: Ht,
59
- action: qt,
60
- avatar: Gt,
61
- text: Wt,
62
- heading: jt,
63
- "container-breakpoint-size-xs": "flow--list--items--item--view--container-breakpoint-size-xs",
64
- "container-breakpoint-size-s": "flow--list--items--item--view--container-breakpoint-size-s",
65
- "container-breakpoint-size-m": "flow--list--items--item--view--container-breakpoint-size-m",
66
- "container-breakpoint-size-l": "flow--list--items--item--view--container-breakpoint-size-l",
67
- "container-breakpoint-size-xl": "flow--list--items--item--view--container-breakpoint-size-xl"
68
- }, S = { "de-DE": {
30
+ import { u as ve } from "./useOnChange-C1Quwyuz.js";
31
+ import { S as ye } from "./SearchField-BGdC1K9_.js";
32
+ import { H as et } from "./Heading-C61IpDy1.js";
33
+ import { S as Ee } from "./Section-7khrqgxc.js";
34
+ import { getProperty as we } from "dot-prop";
35
+ import { hash as Tt } from "object-code";
36
+ import N from "zod";
37
+ import { useReactTable as Fe, getCoreRowModel as Ie, getSortedRowModel as Te, getFilteredRowModel as Ce, getPaginationRowModel as Le, getFacetedUniqueValues as Pe } from "@tanstack/react-table";
38
+ import Ct from "invariant";
39
+ import { getAsyncResource as St } from "@mittwald/react-use-promise";
40
+ import { u as vt } from "./useSelector-DpU7_HMO.js";
41
+ import { u as Ae } from "./SettingsProvider-D9oDS5r9.js";
42
+ import * as st from "react-aria-components";
43
+ import { S as z } from "./SkeletonText-B5ZghZhO.js";
44
+ import { I as Ve } from "./IconChevronDown-wKRgAuyR.js";
45
+ import { I as ke } from "./IconChevronUp-C2rq4v--.js";
46
+ import { I as Be } from "./IllustratedMessage-DB1AH-Oq.js";
47
+ import { I as Me } from "./IconSearch-9xESFc33.js";
48
+ import { a as v, b as D, d as xe } from "./deepHas-KHS5X1F_.js";
49
+ import { ListLoaderAsyncResource as De, TypedListLoaderAsyncResource as Ne } from "./List/ListLoaderAsyncResource.js";
50
+ import { S as Re } from "./Skeleton-CKLaTmDR.js";
51
+ import { a as Lt, e as Pt, d as At, b as Vt, T as kt, c as Bt } from "./Table-BdpXhsOd.js";
52
+ import { A as $e } from "./ActionGroup-Bd0aZvbX.js";
53
+ const Ue = "flow--list--items--item--view", ze = "flow--list--items--item--view--content", Ke = "flow--list--items--item--view--title", Oe = "flow--list--items--item--view--avatar", He = "flow--list--items--item--view--sub-title", qe = "flow--list--items--item--view--heading", Ge = "flow--list--items--item--view--text", We = "flow--list--items--item--view--top-content", je = "flow--list--items--item--view--action", Je = "flow--list--items--item--view--bottom-content", g = {
54
+ view: Ue,
55
+ content: ze,
56
+ title: Ke,
57
+ avatar: Oe,
58
+ subTitle: He,
59
+ heading: qe,
60
+ text: Ge,
61
+ topContent: We,
62
+ action: je,
63
+ bottomContent: Je
64
+ }, b = { "de-DE": {
69
65
  "list.filters.clear": "Filter entfernen",
70
66
  "list.filters.reset": "Filter zurücksetzen",
71
67
  "list.filters.store": "Filter speichern",
@@ -97,89 +93,91 @@ const Ut = "flow--list--items--item--view", Kt = "flow--list--items--item--view-
97
93
  "list.sorting": "Sorting",
98
94
  "list.toggleExpandButton.collapse": "Show less",
99
95
  "list.toggleExpandButton.expand": "Show more"
100
- } }, Jt = (n) => {
101
- const { className: e, children: t } = n, s = I(S);
102
- return /* @__PURE__ */ i.createElement(H, null, /* @__PURE__ */ i.createElement(
103
- w,
96
+ } }, Ye = (n) => {
97
+ const { className: t, children: e } = n, s = I(b);
98
+ return /* @__PURE__ */ a.createElement(H, null, /* @__PURE__ */ a.createElement(
99
+ E,
104
100
  {
105
101
  variant: "plain",
106
102
  color: "secondary",
107
- className: e,
108
- "aria-label": s.format("list.options")
103
+ className: t,
104
+ "aria-label": s.format("list.options"),
105
+ tunnelId: null
109
106
  },
110
- /* @__PURE__ */ i.createElement(ct, null)
111
- ), t);
112
- }, Yt = (n) => n === "top" ? p.topContent : n === "bottom" ? p.content : p.topContent, Me = (n) => {
113
- const { children: e, className: t, containerBreakpointSize: s = "m" } = n, a = {
107
+ /* @__PURE__ */ a.createElement(ce, null)
108
+ ), e);
109
+ }, Qe = (n) => n === "top" ? g.topContent : n === "bottom" ? g.bottomContent : g.topContent, Mt = (n) => {
110
+ const { children: t, className: e } = n, s = {
114
111
  ContextMenu: {
115
- wrapWith: /* @__PURE__ */ i.createElement(Jt, { className: p.action }),
116
- placement: "bottom end"
112
+ wrapWith: /* @__PURE__ */ a.createElement(Ye, { className: g.action }),
113
+ placement: "bottom end",
114
+ tunnelId: "button"
117
115
  },
118
116
  Button: {
119
- className: p.action
117
+ className: g.action,
118
+ tunnelId: "button"
120
119
  },
121
120
  ActionGroup: {
122
- className: p.action,
123
- ignoreBreakpoint: !0
121
+ className: g.action,
122
+ ignoreBreakpoint: !0,
123
+ tunnelId: "button",
124
+ Button: {
125
+ tunnelId: null
126
+ }
124
127
  },
125
128
  Content: {
126
- className: Y((c) => Yt(c.slot)),
127
- tunnelId: "topContent"
129
+ className: Y((o) => Qe(o.slot))
128
130
  },
129
131
  Avatar: {
130
- className: p.avatar,
132
+ className: g.avatar,
131
133
  tunnelId: "title"
132
134
  },
133
135
  Heading: {
134
- className: p.heading,
136
+ className: g.heading,
135
137
  level: 5,
136
138
  tunnelId: "title"
137
139
  },
138
140
  Text: {
139
- className: p.text,
140
- tunnelId: "title"
141
+ className: g.text,
142
+ tunnelId: "text"
141
143
  },
142
144
  Link: {
143
145
  unstyled: !0
144
146
  }
145
- }, o = k(
146
- p.view,
147
- t,
148
- p[dt(s)]
149
- );
150
- return /* @__PURE__ */ i.createElement("div", { className: o }, /* @__PURE__ */ i.createElement(Z, { props: a, mergeInParentContext: !0 }, /* @__PURE__ */ i.createElement(Fe, null, e, /* @__PURE__ */ i.createElement("div", { className: p.title }, /* @__PURE__ */ i.createElement(z, { id: "title" })), /* @__PURE__ */ i.createElement(z, { id: "topContent" }))));
151
- }, Qt = "flow--list--list-summary", Xt = {
152
- listSummary: Qt
153
- }, na = Ie("ListSummary", (n) => {
154
- const { children: e } = n;
155
- return /* @__PURE__ */ i.createElement("header", { className: Xt.listSummary, ...n }, e);
156
- }), xe = _e({}), f = () => et(xe).list, Zt = () => f().loader.getLoaderInvocationHooks().map((e, t) => /* @__PURE__ */ i.createElement(ut, { key: t }, () => {
157
- e();
158
- })), _t = (n) => {
159
- const { sorting: e } = n;
160
- return /* @__PURE__ */ i.createElement(ee, { id: e.id }, e.name);
161
- }, N = (n) => {
162
- const { children: e, locales: t, variables: s } = n;
163
- return I(t).format(e, s);
147
+ }, i = k(g.view, e);
148
+ return /* @__PURE__ */ a.createElement("div", { className: i }, /* @__PURE__ */ a.createElement(Z, { props: s, mergeInParentContext: !0 }, /* @__PURE__ */ a.createElement(Ft, null, /* @__PURE__ */ a.createElement("div", { className: g.content }, t, /* @__PURE__ */ a.createElement("div", { className: g.title }, /* @__PURE__ */ a.createElement(M, { id: "title" }), /* @__PURE__ */ a.createElement("div", { className: g.subTitle }, /* @__PURE__ */ a.createElement(M, { id: "text" })))), /* @__PURE__ */ a.createElement(M, { id: "button" }))));
149
+ }, Xe = "flow--list--list-summary", Ze = {
150
+ listSummary: Xe
151
+ }, ii = It("ListSummary", (n) => {
152
+ const { children: t } = n;
153
+ return /* @__PURE__ */ a.createElement("header", { className: Ze.listSummary, ...n }, t);
154
+ }), xt = _t({}), f = () => te(xt).list, _e = () => f().loader.getLoaderInvocationHooks().map((t, e) => /* @__PURE__ */ a.createElement(de, { key: e }, () => {
155
+ t();
156
+ })), ts = (n) => {
157
+ const { sorting: t } = n;
158
+ return /* @__PURE__ */ a.createElement(tt, { id: t.id }, t.name);
159
+ }, R = (n) => {
160
+ const { children: t, locales: e, variables: s } = n;
161
+ return I(e).format(t, s);
164
162
  }, es = () => {
165
- const n = f(), e = n.visibleSorting.map((a) => /* @__PURE__ */ i.createElement(_t, { sorting: a, key: a.id }));
166
- if (e.length === 0)
163
+ const n = f(), t = n.visibleSorting.map((i) => /* @__PURE__ */ a.createElement(ts, { sorting: i, key: i.id }));
164
+ if (t.length === 0)
167
165
  return null;
168
- const t = n.visibleSorting.find((a) => a.isSorted()), s = /* @__PURE__ */ i.createElement(T, null, t ? /* @__PURE__ */ i.createElement(i.Fragment, null, t.name ?? t.property) : /* @__PURE__ */ i.createElement(N, { locales: S }, "list.sorting"));
169
- return /* @__PURE__ */ i.createElement(H, null, /* @__PURE__ */ i.createElement(w, { variant: "outline", color: "secondary" }, s, /* @__PURE__ */ i.createElement(mt, null)), /* @__PURE__ */ i.createElement(
166
+ const e = n.visibleSorting.find((i) => i.isSorted()), s = /* @__PURE__ */ a.createElement(T, null, e ? /* @__PURE__ */ a.createElement(a.Fragment, null, e.name ?? e.property) : /* @__PURE__ */ a.createElement(R, { locales: b }, "list.sorting"));
167
+ return /* @__PURE__ */ a.createElement(H, null, /* @__PURE__ */ a.createElement(E, { variant: "outline", color: "secondary" }, s, /* @__PURE__ */ a.createElement(ue, null)), /* @__PURE__ */ a.createElement(
170
168
  _,
171
169
  {
172
170
  selectionMode: "single",
173
- selectedKeys: t ? [t.id] : [],
174
- onAction: (a) => {
175
- n.getSorting(String(a)).enable();
171
+ selectedKeys: e ? [e.id] : [],
172
+ onAction: (i) => {
173
+ n.getSorting(String(i)).enable();
176
174
  }
177
175
  },
178
- e
176
+ t
179
177
  ));
180
- }, ts = (n) => {
181
- const { filter: e } = n, { values: t, mode: s, name: a, property: o } = e, c = t.map((l) => /* @__PURE__ */ i.createElement(
182
- ee,
178
+ }, ss = (n) => {
179
+ const { filter: t } = n, { values: e, mode: s, name: i, property: o } = t, c = e.map((l) => /* @__PURE__ */ a.createElement(
180
+ tt,
183
181
  {
184
182
  id: l.id,
185
183
  key: l.id,
@@ -188,8 +186,8 @@ const Ut = "flow--list--items--item--view", Kt = "flow--list--items--item--view-
188
186
  }
189
187
  },
190
188
  l.render()
191
- )), d = t.filter((l) => l.isActive).map((l) => l.id);
192
- return /* @__PURE__ */ i.createElement(H, null, /* @__PURE__ */ i.createElement(w, { variant: "outline", color: "secondary" }, /* @__PURE__ */ i.createElement(T, null, a ?? o), /* @__PURE__ */ i.createElement(ht, null)), /* @__PURE__ */ i.createElement(
189
+ )), d = e.filter((l) => l.isActive).map((l) => l.id);
190
+ return /* @__PURE__ */ a.createElement(H, null, /* @__PURE__ */ a.createElement(E, { variant: "outline", color: "secondary" }, /* @__PURE__ */ a.createElement(T, null, i ?? o), /* @__PURE__ */ a.createElement(me, null)), /* @__PURE__ */ a.createElement(
193
191
  _,
194
192
  {
195
193
  selectionMode: s === "one" ? "single" : "multiple",
@@ -197,135 +195,134 @@ const Ut = "flow--list--items--item--view", Kt = "flow--list--items--item--view-
197
195
  },
198
196
  c
199
197
  ));
200
- }, ss = "flow--list--header", is = "flow--list--header--picker-list-and-search", as = "flow--list--header--picker-list", ns = "flow--list--header--search-and-actions", rs = "flow--list--header--search-field", os = "flow--list--header--actions", V = {
201
- header: ss,
198
+ }, as = "flow--list--header", is = "flow--list--header--picker-list-and-search", ns = "flow--list--header--picker-list", rs = "flow--list--header--search-and-actions", os = "flow--list--header--search-field", V = {
199
+ header: as,
202
200
  pickerListAndSearch: is,
203
- pickerList: as,
204
- searchAndActions: ns,
205
- searchField: rs,
206
- actions: os
201
+ pickerList: ns,
202
+ searchAndActions: rs,
203
+ searchField: os
207
204
  }, ls = "flow--list--header--active-filters", cs = "flow--list--header--active-filters--clear-button", ds = {
208
205
  activeFilters: ls,
209
206
  clearButton: cs
210
- }, us = St(() => {
211
- const n = f(), e = I(S), s = n.filters.flatMap((l) => l.values).filter((l) => l.isActive).map((l) => /* @__PURE__ */ i.createElement(bt, { key: l.id, onClose: () => l.deactivate() }, /* @__PURE__ */ i.createElement(T, null, l.render()))), a = n.filters.filter((l) => l.hasChanged()).length > 0, o = n.supportsSettingsStorage && a && /* @__PURE__ */ i.createElement(G, null, /* @__PURE__ */ i.createElement(W, null, /* @__PURE__ */ i.createElement(N, { locales: S }, "list.filters.store")), /* @__PURE__ */ i.createElement(
212
- w,
207
+ }, us = fe(() => {
208
+ const n = f(), t = I(b), s = n.filters.flatMap((l) => l.values).filter((l) => l.isActive).map((l) => /* @__PURE__ */ a.createElement(be, { key: l.id, onClose: () => l.deactivate() }, /* @__PURE__ */ a.createElement(T, null, l.render()))), i = n.filters.filter((l) => l.hasChanged()).length > 0, o = n.supportsSettingsStorage && i && /* @__PURE__ */ a.createElement(G, null, /* @__PURE__ */ a.createElement(W, null, /* @__PURE__ */ a.createElement(R, { locales: b }, "list.filters.store")), /* @__PURE__ */ a.createElement(
209
+ E,
213
210
  {
214
211
  size: "s",
215
212
  variant: "plain",
216
213
  color: "secondary",
217
214
  onPress: () => n.storeFilterDefaultSettings(),
218
- "aria-label": e.format("list.filters.store")
215
+ "aria-label": t.format("list.filters.store")
219
216
  },
220
- /* @__PURE__ */ i.createElement(gt, null)
221
- )), c = a ? /* @__PURE__ */ i.createElement(G, null, /* @__PURE__ */ i.createElement(W, null, /* @__PURE__ */ i.createElement(N, { locales: S }, "list.filters.reset")), /* @__PURE__ */ i.createElement(
222
- w,
217
+ /* @__PURE__ */ a.createElement(he, null)
218
+ )), c = i ? /* @__PURE__ */ a.createElement(G, null, /* @__PURE__ */ a.createElement(W, null, /* @__PURE__ */ a.createElement(R, { locales: b }, "list.filters.reset")), /* @__PURE__ */ a.createElement(
219
+ E,
223
220
  {
224
221
  size: "s",
225
222
  variant: "plain",
226
223
  color: "secondary",
227
224
  onPress: () => n.resetFilters(),
228
- "aria-label": e.format("list.filters.reset")
225
+ "aria-label": t.format("list.filters.reset")
229
226
  },
230
- /* @__PURE__ */ i.createElement(pe, null, /* @__PURE__ */ i.createElement(lt, null))
231
- )) : void 0, d = s.length > 0 ? /* @__PURE__ */ i.createElement(G, null, /* @__PURE__ */ i.createElement(W, null, /* @__PURE__ */ i.createElement(N, { locales: S }, "list.filters.clear")), /* @__PURE__ */ i.createElement(
232
- w,
227
+ /* @__PURE__ */ a.createElement(pt, null, /* @__PURE__ */ a.createElement(le, null))
228
+ )) : void 0, d = s.length > 0 ? /* @__PURE__ */ a.createElement(G, null, /* @__PURE__ */ a.createElement(W, null, /* @__PURE__ */ a.createElement(R, { locales: b }, "list.filters.clear")), /* @__PURE__ */ a.createElement(
229
+ E,
233
230
  {
234
231
  size: "s",
235
232
  variant: "plain",
236
233
  color: "secondary",
237
234
  onPress: () => n.clearFilters()
238
235
  },
239
- /* @__PURE__ */ i.createElement(pe, null, /* @__PURE__ */ i.createElement(pt, null))
236
+ /* @__PURE__ */ a.createElement(pt, null, /* @__PURE__ */ a.createElement(ge, null))
240
237
  )) : void 0;
241
- return s.length === 0 && !o && !c ? null : /* @__PURE__ */ i.createElement("div", { className: ds.activeFilters }, s, o, c, d);
238
+ return s.length === 0 && !o && !c ? null : /* @__PURE__ */ a.createElement("div", { className: ds.activeFilters }, s, o, c, d);
242
239
  }), ms = (n) => {
243
- const { className: e, onChange: t, value: s, ...a } = n, [o, c] = O(s ?? "");
244
- yt(s, () => {
240
+ const { className: t, onChange: e, value: s, ...i } = n, [o, c] = O(s ?? "");
241
+ ve(s, () => {
245
242
  c(s ?? "");
246
243
  }, [o]);
247
244
  const d = () => {
248
- t(void 0), c("");
245
+ e(void 0), c("");
249
246
  }, l = (u) => {
250
- u.key === "Enter" ? o.trim() === "" ? t(void 0) : t(o) : u.key === "Escape" && d();
247
+ u.key === "Enter" ? o.trim() === "" ? e(void 0) : e(o) : u.key === "Escape" && d();
251
248
  };
252
- return /* @__PURE__ */ i.createElement(
253
- wt,
249
+ return /* @__PURE__ */ a.createElement(
250
+ ye,
254
251
  {
255
- className: e,
252
+ className: t,
256
253
  value: o,
257
254
  onKeyUp: l,
258
255
  onChange: (u) => c(u),
259
256
  onClear: d,
260
- ...a
257
+ ...i
261
258
  }
262
259
  );
263
260
  }, hs = (n) => {
264
- const { className: e, search: t } = n, s = t.render ?? ms;
265
- return we(s, {
266
- className: e,
267
- value: t.value,
268
- onChange: t.setValue.bind(t),
269
- ...t.textFieldProps
261
+ const { className: t, search: e } = n, s = e.render ?? ms;
262
+ return Et(s, {
263
+ className: t,
264
+ value: e.value,
265
+ onChange: e.setValue.bind(e),
266
+ ...e.textFieldProps
270
267
  });
271
268
  }, gs = () => {
272
- const n = I(S), e = f(), t = e.viewMode, s = [];
273
- return e.itemView && s.push("list"), e.table && s.push("table"), s.length <= 1 ? null : /* @__PURE__ */ i.createElement(H, null, /* @__PURE__ */ i.createElement(
274
- w,
269
+ const n = I(b), t = f(), e = t.viewMode, s = [];
270
+ return t.itemView && s.push("list"), t.table && s.push("table"), s.length <= 1 ? null : /* @__PURE__ */ a.createElement(H, null, /* @__PURE__ */ a.createElement(
271
+ E,
275
272
  {
276
273
  variant: "outline",
277
274
  color: "secondary",
278
275
  "aria-label": n.format("list.settings")
279
276
  },
280
- /* @__PURE__ */ i.createElement(T, null, n.format(`list.settings.viewMode.${t}`)),
281
- /* @__PURE__ */ i.createElement(ft, null)
282
- ), /* @__PURE__ */ i.createElement(_, { selectionMode: "single", selectedKeys: [t] }, /* @__PURE__ */ i.createElement(Et, null, /* @__PURE__ */ i.createElement(te, null, n.format("list.settings.viewMode")), s.map((a) => /* @__PURE__ */ i.createElement(
283
- ee,
277
+ /* @__PURE__ */ a.createElement(T, null, n.format(`list.settings.viewMode.${e}`)),
278
+ /* @__PURE__ */ a.createElement(pe, null)
279
+ ), /* @__PURE__ */ a.createElement(_, { selectionMode: "single", selectedKeys: [e] }, /* @__PURE__ */ a.createElement(Ee, null, /* @__PURE__ */ a.createElement(et, null, n.format("list.settings.viewMode")), s.map((i) => /* @__PURE__ */ a.createElement(
280
+ tt,
284
281
  {
285
- id: a,
286
- key: a,
282
+ id: i,
283
+ key: i,
287
284
  onAction: () => {
288
- e.setViewMode(a);
285
+ t.setViewMode(i);
289
286
  }
290
287
  },
291
- n.format(`list.settings.viewMode.${a}`)
288
+ n.format(`list.settings.viewMode.${i}`)
292
289
  )))));
293
290
  }, ps = (n) => {
294
- const { className: e, hasActionGroup: t } = n, s = f();
295
- if (s.filters.length === 0 && s.visibleSorting.length === 0 && !s.search && !s.table && !t)
291
+ const { className: t, hasActionGroup: e } = n, s = f();
292
+ if (s.filters.length === 0 && s.visibleSorting.length === 0 && !s.search && !s.table && !e)
296
293
  return null;
297
- const a = s.filters.map((o) => /* @__PURE__ */ i.createElement(ts, { key: o.property, filter: o }));
298
- return /* @__PURE__ */ i.createElement("div", { className: k(e, V.header) }, /* @__PURE__ */ i.createElement("div", { className: V.pickerListAndSearch }, /* @__PURE__ */ i.createElement("div", { className: V.pickerList }, /* @__PURE__ */ i.createElement(gs, null), /* @__PURE__ */ i.createElement(es, null), a), /* @__PURE__ */ i.createElement("div", { className: V.searchAndActions }, s.search && /* @__PURE__ */ i.createElement(hs, { className: V.searchField, search: s.search }), /* @__PURE__ */ i.createElement(z, { id: "actions" }))), /* @__PURE__ */ i.createElement(us, null));
299
- }, fs = "flow--list", Ss = {
294
+ const i = s.filters.map((o) => /* @__PURE__ */ a.createElement(ss, { key: o.property, filter: o }));
295
+ return /* @__PURE__ */ a.createElement("div", { className: k(t, V.header) }, /* @__PURE__ */ a.createElement("div", { className: V.pickerListAndSearch }, /* @__PURE__ */ a.createElement("div", { className: V.pickerList }, /* @__PURE__ */ a.createElement(gs, null), /* @__PURE__ */ a.createElement(es, null), i), /* @__PURE__ */ a.createElement("div", { className: V.searchAndActions }, s.search && /* @__PURE__ */ a.createElement(hs, { className: V.searchField, search: s.search }), /* @__PURE__ */ a.createElement(M, { id: "actions" }))), /* @__PURE__ */ a.createElement(us, null));
296
+ }, fs = "flow--list", bs = {
300
297
  list: fs
301
298
  };
302
- let bs = class De {
303
- constructor(e, t, s) {
299
+ let Ss = class Dt {
300
+ constructor(t, e, s) {
304
301
  r(this, "id");
305
302
  r(this, "data");
306
303
  r(this, "collection");
307
- this.collection = e, this.id = t, this.data = s;
304
+ this.collection = t, this.id = e, this.data = s;
308
305
  }
309
- static fromRow(e, t) {
310
- return new De(e, t.id, t.original);
306
+ static fromRow(t, e) {
307
+ return new Dt(t, e.id, e.original);
311
308
  }
312
309
  };
313
310
  class vs {
314
- constructor(e) {
311
+ constructor(t) {
315
312
  r(this, "list");
316
- this.list = e;
313
+ this.list = t;
317
314
  }
318
315
  get entries() {
319
- return this.list.reactTable.table.getRowModel().rows.map((e) => bs.fromRow(this, e));
316
+ return this.list.reactTable.table.getRowModel().rows.map((t) => Ss.fromRow(this, t));
320
317
  }
321
318
  }
322
319
  class ys {
323
- constructor(e, t = {}) {
320
+ constructor(t, e = {}) {
324
321
  r(this, "batchSize");
325
322
  r(this, "list");
326
- var a;
327
- const { batchSize: s = 20 } = t;
328
- this.list = e, this.batchSize = s, e.filters.forEach((o) => o.onFilterUpdated(() => this.reset())), (a = e.search) == null || a.onUpdated(() => this.reset());
323
+ var i;
324
+ const { batchSize: s = 20 } = e;
325
+ this.list = t, this.batchSize = s, t.filters.forEach((o) => o.onFilterUpdated(() => this.reset())), (i = t.search) == null || i.onUpdated(() => this.reset());
329
326
  }
330
327
  get reactTable() {
331
328
  return this.list.reactTable.table;
@@ -342,10 +339,10 @@ class ys {
342
339
  getVisibleItemsCount() {
343
340
  return this.reactTable.getRowModel().rows.length ?? 0;
344
341
  }
345
- updateItemTotalCount(e) {
346
- this.reactTable.setOptions((t) => ({
347
- ...t,
348
- rowCount: e
342
+ updateItemTotalCount(t) {
343
+ this.reactTable.setOptions((e) => ({
344
+ ...e,
345
+ rowCount: t
349
346
  }));
350
347
  }
351
348
  reset() {
@@ -358,30 +355,30 @@ class ys {
358
355
  if (this.list.loader.manualPagination)
359
356
  this.reactTable.nextPage();
360
357
  else {
361
- const e = this.reactTable.getState().pagination.pageSize + this.batchSize;
362
- this.reactTable.setPagination((t) => ({
363
- ...t,
364
- pageSize: e
358
+ const t = this.reactTable.getState().pagination.pageSize + this.batchSize;
359
+ this.reactTable.setPagination((e) => ({
360
+ ...e,
361
+ pageSize: t
365
362
  }));
366
363
  }
367
364
  }
368
365
  }
369
- const ws = "$";
366
+ const Es = "$";
370
367
  class F {
371
368
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
372
- constructor(e, t) {
369
+ constructor(t, e) {
373
370
  r(this, "filter");
374
371
  r(this, "value");
375
372
  r(this, "id");
376
373
  var s;
377
- this.filter = e, typeof t == "string" && t.startsWith("FilterValueId@@") ? (this.value = (s = e.values.find((a) => a.id === t)) == null ? void 0 : s.value, this.id = t) : (this.value = t, this.id = `FilterValueId@@${this.filter.property}@@${Te(this.value)}`);
374
+ this.filter = t, typeof e == "string" && e.startsWith("FilterValueId@@") ? (this.value = (s = t.values.find((i) => i.id === e)) == null ? void 0 : s.value, this.id = e) : (this.value = e, this.id = `FilterValueId@@${this.filter.property}@@${Tt(this.value)}`);
378
375
  }
379
376
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
380
- static create(e, t) {
381
- return t instanceof F ? t : new F(e, t);
377
+ static create(t, e) {
378
+ return e instanceof F ? e : new F(t, e);
382
379
  }
383
- equals(e) {
384
- return at(this.value, e.value);
380
+ equals(t) {
381
+ return ie(this.value, t.value);
385
382
  }
386
383
  get isActive() {
387
384
  return this.filter.isValueActive(this);
@@ -396,9 +393,9 @@ class F {
396
393
  this.filter.deactivateValue(this);
397
394
  }
398
395
  }
399
- const J = (n) => Array.isArray(n) ? n : [n], Es = (n, e) => n === e, Fs = (n) => String(n);
400
- class R {
401
- constructor(e, t) {
396
+ const J = (n) => Array.isArray(n) ? n : [n], ws = (n, t) => n === t, Fs = (n) => String(n);
397
+ class $ {
398
+ constructor(t, e) {
402
399
  r(this, "_values");
403
400
  r(this, "_valuesFromTableState");
404
401
  r(this, "list");
@@ -410,66 +407,66 @@ class R {
410
407
  r(this, "onFilterUpdateCallbacks", /* @__PURE__ */ new Set());
411
408
  r(this, "defaultSelectedValues");
412
409
  var s;
413
- this.list = e, this.property = t.property, this.mode = t.mode ?? "one", this._values = (s = t.values) == null ? void 0 : s.map((a) => F.create(this, a)), this.matcher = t.matcher ?? Es, this.renderItem = t.renderItem ?? Fs, this.name = t.name, this.defaultSelectedValues = t.defaultSelected;
410
+ this.list = t, this.property = e.property, this.mode = e.mode ?? "one", this._values = (s = e.values) == null ? void 0 : s.map((i) => F.create(this, i)), this.matcher = e.matcher ?? ws, this.renderItem = e.renderItem ?? Fs, this.name = e.name, this.defaultSelectedValues = e.defaultSelected;
414
411
  }
415
412
  getStoredSelectedIds() {
416
- var e;
417
- return (e = this.list.getStoredFilterDefaultSettings()) == null ? void 0 : e[String(this.property)];
413
+ var t;
414
+ return (t = this.list.getStoredFilterDefaultSettings()) == null ? void 0 : t[String(this.property)];
418
415
  }
419
- updateInitialState(e) {
420
- const t = this.getInitialValues();
421
- t != null && t.length && (e.columnFilters = [
422
- ...e.columnFilters ?? [],
416
+ updateInitialState(t) {
417
+ const e = this.getInitialValues();
418
+ e != null && e.length && (t.columnFilters = [
419
+ ...t.columnFilters ?? [],
423
420
  {
424
421
  id: this.property,
425
- value: t
422
+ value: e
426
423
  }
427
424
  ]);
428
425
  }
429
- updateTableColumnDef(e) {
430
- e.enableColumnFilter = !0, e.filterFn = this.getReactTableFilterFn();
426
+ updateTableColumnDef(t) {
427
+ t.enableColumnFilter = !0, t.filterFn = this.getReactTableFilterFn();
431
428
  }
432
429
  getReactTableFilterFn() {
433
- return (e, t, s) => {
434
- const a = this.property, o = a.startsWith(ws) ? e.original : Ft(e.original, a);
430
+ return (t, e, s) => {
431
+ const i = this.property, o = i.startsWith(Es) ? t.original : we(t.original, i);
435
432
  return this.checkFilterMatches(o, s);
436
433
  };
437
434
  }
438
- checkFilterMatches(e, t) {
439
- if (t === null)
435
+ checkFilterMatches(t, e) {
436
+ if (e === null)
440
437
  return !0;
441
- const s = (o) => this.matcher(o.value, e), a = (o) => F.create(this, o);
438
+ const s = (o) => this.matcher(o.value, t), i = (o) => F.create(this, o);
442
439
  if (this.mode === "all")
443
- return J(t).map(a).every(s);
440
+ return J(e).map(i).every(s);
444
441
  if (this.mode === "some") {
445
- const o = J(t);
446
- return o.length === 0 || o.map(a).some(s);
442
+ const o = J(e);
443
+ return o.length === 0 || o.map(i).some(s);
447
444
  } else if (this.mode === "one")
448
- return s(a(t));
445
+ return s(i(e));
449
446
  throw new Error(`Unknown filter mode '${this.mode}'`);
450
447
  }
451
448
  getTableColumnFilter() {
452
- return this.list.reactTable.table.getState().columnFilters.find((e) => e.id === this.property);
449
+ return this.list.reactTable.table.getState().columnFilters.find((t) => t.id === this.property);
453
450
  }
454
451
  getTableColumn() {
455
452
  return this.list.reactTable.getTableColumn(this.property);
456
453
  }
457
454
  getValue() {
458
- var e;
459
- return ((e = this.getTableColumnFilter()) == null ? void 0 : e.value) ?? null;
455
+ var t;
456
+ return ((t = this.getTableColumnFilter()) == null ? void 0 : t.value) ?? null;
460
457
  }
461
458
  getValuesFromTableState() {
462
- return nt(
463
- Array.from(this.getTableColumn().getFacetedUniqueValues().keys()).flatMap((e) => e).filter((e) => e != null)
464
- ).map((e) => F.create(this, e));
459
+ return ne(
460
+ Array.from(this.getTableColumn().getFacetedUniqueValues().keys()).flatMap((t) => t).filter((t) => t != null)
461
+ ).map((t) => F.create(this, t));
465
462
  }
466
- checkIfValueIsUnknown(e) {
467
- return !this.values.some((s) => s.id === e.id);
463
+ checkIfValueIsUnknown(t) {
464
+ return !this.values.some((s) => s.id === t.id);
468
465
  }
469
466
  deleteUnknownFilterValues() {
470
467
  if (this.values !== this.valuesFromTableState)
471
- for (const e of this.getArrayValue())
472
- this.checkIfValueIsUnknown(e) && this.deactivateValue(e);
468
+ for (const t of this.getArrayValue())
469
+ this.checkIfValueIsUnknown(t) && this.deactivateValue(t);
473
470
  }
474
471
  get values() {
475
472
  return this._values ?? this.valuesFromTableState;
@@ -478,61 +475,61 @@ class R {
478
475
  return this._valuesFromTableState || (this._valuesFromTableState = this.getValuesFromTableState()), this._valuesFromTableState;
479
476
  }
480
477
  getArrayValue() {
481
- const e = this.getValue();
482
- return e === null ? [] : J(e).map((t) => F.create(this, t));
478
+ const t = this.getValue();
479
+ return t === null ? [] : J(t).map((e) => F.create(this, e));
483
480
  }
484
- isValueActive(e) {
485
- return this.getArrayValue().some((t) => t.equals(e));
481
+ isValueActive(t) {
482
+ return this.getArrayValue().some((e) => e.equals(t));
486
483
  }
487
484
  isActive() {
488
485
  return this.getArrayValue().length > 0;
489
486
  }
490
- deactivateValue(e) {
491
- const t = this.getArrayValue();
487
+ deactivateValue(t) {
488
+ const e = this.getArrayValue();
492
489
  let s;
493
- this.mode === "all" || this.mode === "some" ? s = t.filter((a) => !a.equals(e)) : s = null, this.list.reactTable.getTableColumn(this.property).setFilterValue(s), this.onFilterUpdateCallbacks.forEach((a) => a());
490
+ this.mode === "all" || this.mode === "some" ? s = e.filter((i) => !i.equals(t)) : s = null, this.list.reactTable.getTableColumn(this.property).setFilterValue(s), this.onFilterUpdateCallbacks.forEach((i) => i());
494
491
  }
495
492
  hasChanged() {
496
493
  var s;
497
- const e = this.getArrayValue().map((a) => a.value), t = ((s = this.getInitialFilterValues()) == null ? void 0 : s.map((a) => a.value)) ?? [];
498
- return e.length !== t.length || rt(e, t).length > 0;
494
+ const t = this.getArrayValue().map((i) => i.value), e = ((s = this.getInitialFilterValues()) == null ? void 0 : s.map((i) => i.value)) ?? [];
495
+ return t.length !== e.length || re(t, e).length > 0;
499
496
  }
500
497
  getInitialValues() {
501
498
  return this.getStoredSelectedIds() ?? this.defaultSelectedValues;
502
499
  }
503
500
  getInitialFilterValues() {
504
- var e;
505
- return (e = this.getInitialValues()) == null ? void 0 : e.map((t) => F.create(this, t));
501
+ var t;
502
+ return (t = this.getInitialValues()) == null ? void 0 : t.map((e) => F.create(this, e));
506
503
  }
507
504
  resetValues() {
508
- let e;
509
- const t = this.getInitialValues();
510
- t ? e = t : this.mode === "all" || this.mode === "some" ? e = [] : e = null, this.list.reactTable.getTableColumn(this.property).setFilterValue(e), this.onFilterUpdateCallbacks.forEach((s) => s());
505
+ let t;
506
+ const e = this.getInitialValues();
507
+ e ? t = e : this.mode === "all" || this.mode === "some" ? t = [] : t = null, this.list.reactTable.getTableColumn(this.property).setFilterValue(t), this.onFilterUpdateCallbacks.forEach((s) => s());
511
508
  }
512
509
  clear() {
513
- this.list.reactTable.getTableColumn(this.property).setFilterValue(null), this.onFilterUpdateCallbacks.forEach((e) => e());
510
+ this.list.reactTable.getTableColumn(this.property).setFilterValue(null), this.onFilterUpdateCallbacks.forEach((t) => t());
514
511
  }
515
- toggleValue(e) {
516
- const t = this.getArrayValue();
512
+ toggleValue(t) {
513
+ const e = this.getArrayValue();
517
514
  let s;
518
- this.mode === "all" || this.mode === "some" ? e.isActive ? s = t.filter((a) => !a.equals(e)) : s = [...t, e] : s = e.isActive ? null : e, this.list.reactTable.getTableColumn(this.property).setFilterValue(s), this.onFilterUpdateCallbacks.forEach((a) => a());
515
+ this.mode === "all" || this.mode === "some" ? t.isActive ? s = e.filter((i) => !i.equals(t)) : s = [...e, t] : s = t.isActive ? null : t, this.list.reactTable.getTableColumn(this.property).setFilterValue(s), this.onFilterUpdateCallbacks.forEach((i) => i());
519
516
  }
520
- onFilterUpdated(e) {
521
- this.onFilterUpdateCallbacks.add(e);
517
+ onFilterUpdated(t) {
518
+ this.onFilterUpdateCallbacks.add(t);
522
519
  }
523
520
  }
524
- r(R, "settingsStorageSchema", D.record(D.array(D.string())).optional());
521
+ r($, "settingsStorageSchema", N.record(N.array(N.string())).optional());
525
522
  class Is {
526
- constructor(e, t) {
523
+ constructor(t, e) {
527
524
  r(this, "list");
528
525
  r(this, "property");
529
526
  r(this, "name");
530
527
  r(this, "direction");
531
528
  r(this, "defaultEnabled");
532
- this.list = e, this.property = t.property, this.name = t.name, this.direction = t.direction ?? "asc", this.defaultEnabled = t.defaultEnabled ?? !1;
529
+ this.list = t, this.property = e.property, this.name = e.name, this.direction = e.direction ?? "asc", this.defaultEnabled = e.defaultEnabled ?? !1;
533
530
  }
534
- updateTableColumnDef(e) {
535
- e.enableSorting = !0;
531
+ updateTableColumnDef(t) {
532
+ t.enableSorting = !0;
536
533
  }
537
534
  getReactTableColumnSort() {
538
535
  return {
@@ -556,139 +553,139 @@ class Is {
556
553
  return `${this.getTableColumn().id}:${this.direction}`;
557
554
  }
558
555
  }
559
- class ie {
560
- constructor(e, t, s = {}) {
556
+ class at {
557
+ constructor(t, e, s = {}) {
561
558
  r(this, "list");
562
559
  r(this, "table");
563
560
  r(this, "sortingState");
564
561
  r(this, "updateSortingState");
565
- this.list = e;
566
- const a = this.list.sorting.filter(
562
+ this.list = t;
563
+ const i = this.list.sorting.filter(
567
564
  (d) => d.defaultEnabled !== !1
568
565
  ), [o, c] = O(
569
- a.map((d) => d.getReactTableColumnSort())
566
+ i.map((d) => d.getReactTableColumnSort())
570
567
  );
571
- this.sortingState = o, this.updateSortingState = c, this.table = this.useReactTable(t, s);
568
+ this.sortingState = o, this.updateSortingState = c, this.table = this.useReactTable(e, s);
572
569
  }
573
- static useNew(e, t, s = {}) {
574
- return new ie(e, t, s);
570
+ static useNew(t, e, s = {}) {
571
+ return new at(t, e, s);
575
572
  }
576
- useReactTable(e, t = {}) {
573
+ useReactTable(t, e = {}) {
577
574
  var c;
578
- const s = this.list.loader.useData(), a = {
575
+ const s = this.list.loader.useData(), i = {
579
576
  pagination: {
580
577
  pageSize: this.list.batches.batchSize
581
578
  },
582
579
  columnFilters: []
583
580
  };
584
581
  for (const d of this.list.filters)
585
- d.updateInitialState(a);
586
- (c = this.list.search) == null || c.updateInitialState(a);
587
- const o = It({
582
+ d.updateInitialState(i);
583
+ (c = this.list.search) == null || c.updateInitialState(i);
584
+ const o = Fe({
588
585
  data: s,
589
586
  state: {
590
587
  sorting: this.sortingState
591
588
  },
592
589
  getRowId: this.list.getItemId,
593
- initialState: a,
590
+ initialState: i,
594
591
  columns: this.getTableColumnDefs(),
595
- getCoreRowModel: Tt(),
596
- getSortedRowModel: Ct(),
597
- getFilteredRowModel: Lt(),
598
- getPaginationRowModel: Pt(),
599
- getFacetedUniqueValues: At(),
592
+ getCoreRowModel: Ie(),
593
+ getSortedRowModel: Te(),
594
+ getFilteredRowModel: Ce(),
595
+ getPaginationRowModel: Le(),
596
+ getFacetedUniqueValues: Pe(),
600
597
  onSortingChange: (d) => {
601
598
  this.handleSortingStateUpdate(d);
602
599
  },
603
600
  globalFilterFn: "auto",
604
- ...t
601
+ ...e
605
602
  });
606
- return M(() => {
607
- e && e(this.list);
608
- }, [this.list, e, o]), o;
603
+ return x(() => {
604
+ t && t(this.list);
605
+ }, [this.list, t, o]), o;
609
606
  }
610
- handleSortingStateUpdate(e) {
611
- const t = typeof e == "function" ? e(this.sortingState) : e, s = this.list.sorting.filter(
612
- (a) => a.defaultEnabled === "hidden" && !t.some((o) => o.id === a.property)
613
- ).map((a) => a.getReactTableColumnSort());
614
- this.updateSortingState([...s, ...t]);
607
+ handleSortingStateUpdate(t) {
608
+ const e = typeof t == "function" ? t(this.sortingState) : t, s = this.list.sorting.filter(
609
+ (i) => i.defaultEnabled === "hidden" && !e.some((o) => o.id === i.property)
610
+ ).map((i) => i.getReactTableColumnSort());
611
+ this.updateSortingState([...s, ...e]);
615
612
  }
616
613
  get searchString() {
617
614
  return this.table.getState().globalFilter;
618
615
  }
619
- getTableColumn(e) {
620
- const t = this.table.getColumn(e);
621
- return Ce(!!t, `Column #${e} is not defined`), t;
616
+ getTableColumn(t) {
617
+ const e = this.table.getColumn(t);
618
+ return Ct(!!e, `Column #${t} is not defined`), e;
622
619
  }
623
620
  getTableColumnDefs() {
624
- const e = /* @__PURE__ */ new Map(), t = (s) => {
625
- const a = e.get(s);
626
- if (a)
627
- return a;
621
+ const t = /* @__PURE__ */ new Map(), e = (s) => {
622
+ const i = t.get(s);
623
+ if (i)
624
+ return i;
628
625
  const o = {
629
626
  id: s,
630
627
  accessorKey: s,
631
628
  enableSorting: !1,
632
629
  enableColumnFilter: !1
633
630
  };
634
- return e.set(s, o), o;
631
+ return t.set(s, o), o;
635
632
  };
636
633
  return this.list.filters.forEach(
637
- (s) => s.updateTableColumnDef(t(s.property))
634
+ (s) => s.updateTableColumnDef(e(s.property))
638
635
  ), this.list.sorting.forEach(
639
- (s) => s.updateTableColumnDef(t(s.property))
640
- ), Array.from(e.values());
636
+ (s) => s.updateTableColumnDef(e(s.property))
637
+ ), Array.from(t.values());
641
638
  }
642
639
  }
643
- class ae {
640
+ class it {
644
641
  constructor() {
645
642
  r(this, "dataBatches", []);
646
643
  r(this, "prevDataBatches", []);
647
644
  r(this, "batchLoadingStates", ["void"]);
648
- vt(this, {
645
+ Se(this, {
649
646
  prevDataBatches: !1,
650
647
  useMergedData: !1,
651
648
  useIsLoading: !1,
652
- dataBatches: fe.shallow,
653
- batchLoadingStates: fe.shallow,
654
- mergedData: Se,
655
- isLoading: Se,
649
+ dataBatches: ft.shallow,
650
+ batchLoadingStates: ft.shallow,
651
+ mergedData: bt,
652
+ isLoading: bt,
656
653
  reset: j.bound,
657
654
  setDataBatch: j.bound,
658
655
  setBatchLoadingState: j.bound
659
656
  });
660
657
  }
661
658
  static useNew() {
662
- return Ee(new ae()).current;
659
+ return wt(new it()).current;
663
660
  }
664
661
  reset() {
665
662
  this.batchLoadingStates = [], this.dataBatches = [];
666
663
  }
667
- setDataBatch(e, t) {
668
- this.dataBatches.length === 0 && (this.prevDataBatches = []), this.dataBatches[e] !== t && (this.dataBatches[e] = t, this.prevDataBatches[e] = t);
664
+ setDataBatch(t, e) {
665
+ this.dataBatches.length === 0 && (this.prevDataBatches = []), this.dataBatches[t] !== e && (this.dataBatches[t] = e, this.prevDataBatches[t] = e);
669
666
  }
670
- setBatchLoadingState(e, t) {
671
- this.batchLoadingStates[e] !== t && (this.batchLoadingStates[e] = t);
667
+ setBatchLoadingState(t, e) {
668
+ this.batchLoadingStates[t] !== e && (this.batchLoadingStates[t] = e);
672
669
  }
673
670
  get mergedData() {
674
- return (this.dataBatches.length === 0 ? this.prevDataBatches : this.dataBatches).flatMap((t) => t);
671
+ return (this.dataBatches.length === 0 ? this.prevDataBatches : this.dataBatches).flatMap((e) => e);
675
672
  }
676
673
  useMergedData() {
677
- return ve(() => this.mergedData);
674
+ return vt(() => this.mergedData);
678
675
  }
679
676
  get isLoading() {
680
- return this.batchLoadingStates.some((e) => e === "loading" || e === "void");
677
+ return this.batchLoadingStates.some((t) => t === "loading" || t === "void");
681
678
  }
682
679
  useIsLoading() {
683
- return ve(() => this.isLoading);
680
+ return vt(() => this.isLoading);
684
681
  }
685
- isBatchLoaded(e) {
686
- return e in this.dataBatches;
682
+ isBatchLoaded(t) {
683
+ return t in this.dataBatches;
687
684
  }
688
685
  }
689
686
  const Ts = [];
690
- class ne {
691
- constructor(e, t = {}) {
687
+ class nt {
688
+ constructor(t, e = {}) {
692
689
  r(this, "list");
693
690
  r(this, "dataSource");
694
691
  r(this, "manualSorting");
@@ -696,13 +693,13 @@ class ne {
696
693
  r(this, "manualPagination");
697
694
  r(this, "loaderState");
698
695
  var d;
699
- const { source: s } = t;
696
+ const { source: s } = e;
700
697
  this.dataSource = s ?? { staticData: Ts };
701
- const a = "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;
702
- this.list = e, this.loaderState = ae.useNew(), this.manualPagination = a ?? !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());
698
+ const i = "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;
699
+ this.list = t, this.loaderState = it.useNew(), this.manualPagination = i ?? !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());
703
700
  }
704
- static useNew(e, t = {}) {
705
- return new ne(e, t);
701
+ static useNew(t, e = {}) {
702
+ return new nt(t, e);
706
703
  }
707
704
  reset() {
708
705
  this.loaderState.reset();
@@ -717,86 +714,86 @@ class ne {
717
714
  return this.loaderState.useMergedData();
718
715
  }
719
716
  getLoaderInvocationHooks() {
720
- return ot(this.list.batches.getBatchIndex() + 1, (t) => t).map((t) => () => {
721
- this.useLoadBatch(t);
717
+ return oe(this.list.batches.getBatchIndex() + 1, (e) => e).map((e) => () => {
718
+ this.useLoadBatch(e);
722
719
  });
723
720
  }
724
- useLoadBatch(e) {
725
- const t = this.getBatchDataAsyncResource(e);
726
- t.use({
721
+ useLoadBatch(t) {
722
+ const e = this.getBatchDataAsyncResource(t);
723
+ e.use({
727
724
  useSuspense: !1
728
- }), this.useObserveBatchData(t, e), this.useObserveBatchLoadingState(t, e);
725
+ }), this.useObserveBatchData(e, t), this.useObserveBatchLoadingState(e, t);
729
726
  }
730
- useObserveBatchLoadingState(e, t) {
731
- const s = (a) => {
727
+ useObserveBatchLoadingState(t, e) {
728
+ const s = (i) => {
732
729
  this.loaderState.setBatchLoadingState(
733
- t,
734
- this.loaderState.isBatchLoaded(t) ? "loaded" : a
730
+ e,
731
+ this.loaderState.isBatchLoaded(e) ? "loaded" : i
735
732
  );
736
733
  };
737
- M(() => (s(e.state.value), e.state.observe(s)), [e, t]);
734
+ x(() => (s(t.state.value), t.state.observe(s)), [t, e]);
738
735
  }
739
- useObserveBatchData(e, t) {
740
- const s = (a) => {
741
- const { data: o, itemTotalCount: c } = a;
742
- this.loaderState.setDataBatch(t, o), c !== void 0 && this.list.batches.updateItemTotalCount(c);
736
+ useObserveBatchData(t, e) {
737
+ const s = (i) => {
738
+ const { data: o, itemTotalCount: c } = i;
739
+ this.loaderState.setDataBatch(e, o), c !== void 0 && this.list.batches.updateItemTotalCount(c);
743
740
  };
744
- M(() => (e.value.value.isSet && s(e.value.value.value), e.value.observe((a) => {
745
- a.isSet && s(a.value);
746
- })), [e, t]);
741
+ x(() => (t.value.value.isSet && s(t.value.value.value), t.value.observe((i) => {
742
+ i.isSet && s(i.value);
743
+ })), [t, e]);
747
744
  }
748
- getDataLoaderOptions(e) {
745
+ getDataLoaderOptions(t) {
749
746
  return {
750
747
  pagination: this.manualPagination ? {
751
748
  limit: this.list.batches.batchSize,
752
- offset: this.list.batches.batchSize * e
749
+ offset: this.list.batches.batchSize * t
753
750
  } : void 0,
754
751
  sorting: this.manualSorting ? Object.fromEntries(
755
- this.list.sorting.filter((t) => t.isSorted()).map((t) => [t.property, t.direction])
752
+ this.list.sorting.filter((e) => e.isSorted()).map((e) => [e.property, e.direction])
756
753
  ) : void 0,
757
754
  filtering: this.manualFiltering ? Object.fromEntries(
758
- this.list.filters.filter((t) => t.getValue() !== null).map((t) => [
759
- t.property,
755
+ this.list.filters.filter((e) => e.getValue() !== null).map((e) => [
756
+ e.property,
760
757
  {
761
- mode: t.mode,
762
- values: t.getArrayValue().map((s) => s.value)
758
+ mode: e.mode,
759
+ values: e.getArrayValue().map((s) => s.value)
763
760
  }
764
761
  ])
765
762
  ) : void 0,
766
763
  searchString: this.manualFiltering ? this.list.reactTable.searchString : void 0
767
764
  };
768
765
  }
769
- getBatchDataAsyncResource(e) {
770
- const t = this.dataSource, s = this.getDataLoaderOptions(e);
771
- if ("staticData" in t)
772
- return be(
773
- async (a) => ({
774
- data: a,
775
- itemTotalCount: a.length
766
+ getBatchDataAsyncResource(t) {
767
+ const e = this.dataSource, s = this.getDataLoaderOptions(t);
768
+ if ("staticData" in e)
769
+ return St(
770
+ async (i) => ({
771
+ data: i,
772
+ itemTotalCount: i.length
776
773
  }),
777
- [t.staticData]
774
+ [e.staticData]
778
775
  );
779
- if ("asyncLoader" in t) {
780
- const a = t.asyncLoader, o = t.dependencies, c = o ? Te(o).toString() : void 0;
781
- return be(a, [s], {
776
+ if ("asyncLoader" in e) {
777
+ const i = e.asyncLoader, o = e.dependencies, c = o ? Tt(o).toString() : void 0;
778
+ return St(i, [s], {
782
779
  loaderId: c
783
780
  });
784
781
  }
785
- if ("asyncResourceFactory" in t) {
786
- const a = t.asyncResourceFactory;
787
- return a(s);
782
+ if ("asyncResourceFactory" in e) {
783
+ const i = e.asyncResourceFactory;
784
+ return i(s);
788
785
  }
789
786
  throw new Error("Unknown data source");
790
787
  }
791
788
  }
792
789
  class Cs {
793
- constructor(e, t) {
790
+ constructor(t, e) {
794
791
  r(this, "list");
795
792
  r(this, "render");
796
793
  r(this, "textFieldProps");
797
794
  r(this, "onUpdateCallbacks", /* @__PURE__ */ new Set());
798
795
  r(this, "defaultValue");
799
- this.list = e, this.render = t.render, this.textFieldProps = t.textFieldProps, this.defaultValue = t.defaultValue;
796
+ this.list = t, this.render = e.render, this.textFieldProps = e.textFieldProps, this.defaultValue = e.defaultValue;
800
797
  }
801
798
  get value() {
802
799
  return this.list.reactTable.searchString;
@@ -805,88 +802,88 @@ class Cs {
805
802
  return this.value !== void 0;
806
803
  }
807
804
  callOnUpdateCallbacks() {
808
- this.onUpdateCallbacks.forEach((e) => e());
805
+ this.onUpdateCallbacks.forEach((t) => t());
809
806
  }
810
- updateInitialState(e) {
811
- e.globalFilter = this.defaultValue;
807
+ updateInitialState(t) {
808
+ t.globalFilter = this.defaultValue;
812
809
  }
813
- setValue(e) {
814
- e === void 0 || e.trim() === "" ? this.list.reactTable.table.getState().globalFilter && (this.list.reactTable.table.setGlobalFilter(void 0), this.callOnUpdateCallbacks()) : (this.list.reactTable.table.setGlobalFilter(e), this.callOnUpdateCallbacks());
810
+ setValue(t) {
811
+ t === void 0 || t.trim() === "" ? this.list.reactTable.table.getState().globalFilter && (this.list.reactTable.table.setGlobalFilter(void 0), this.callOnUpdateCallbacks()) : (this.list.reactTable.table.setGlobalFilter(t), this.callOnUpdateCallbacks());
815
812
  }
816
813
  clear() {
817
814
  this.setValue(void 0);
818
815
  }
819
- onUpdated(e) {
820
- this.onUpdateCallbacks.add(e);
816
+ onUpdated(t) {
817
+ this.onUpdateCallbacks.add(t);
821
818
  }
822
819
  }
823
820
  const K = class K {
824
- constructor(e, t = {}) {
821
+ constructor(t, e = {}) {
825
822
  r(this, "list");
826
823
  r(this, "textValue");
827
824
  r(this, "href");
828
825
  r(this, "defaultExpanded");
829
826
  r(this, "fallback");
830
827
  r(this, "renderFn");
831
- const { fallback: s, textValue: a, href: o, defaultExpanded: c, renderFn: d } = t;
832
- this.list = e, this.textValue = a, this.renderFn = d, this.href = o, this.defaultExpanded = c, this.fallback = s;
828
+ const { fallback: s, textValue: i, href: o, defaultExpanded: c, renderFn: d } = e;
829
+ this.list = t, this.textValue = i, this.renderFn = d, this.href = o, this.defaultExpanded = c, this.fallback = s;
833
830
  }
834
- render(e) {
835
- return (this.renderFn ?? K.fallbackRenderItemFn)(e, this.list);
831
+ render(t) {
832
+ return (this.renderFn ?? K.fallbackRenderItemFn)(t, this.list);
836
833
  }
837
834
  };
838
- r(K, "fallbackRenderItemFn", (e) => we("pre", void 0, JSON.stringify(e)));
835
+ r(K, "fallbackRenderItemFn", (t) => Et("pre", void 0, JSON.stringify(t)));
839
836
  let Q = K, Ls = class {
840
- constructor(e, t = {}) {
837
+ constructor(t, e = {}) {
841
838
  r(this, "tableHeader");
842
839
  r(this, "componentProps");
843
- this.tableHeader = e, this.componentProps = t;
840
+ this.tableHeader = t, this.componentProps = e;
844
841
  }
845
842
  }, Ps = class {
846
- constructor(e, t = {}) {
843
+ constructor(t, e = {}) {
847
844
  r(this, "table");
848
845
  r(this, "componentProps");
849
846
  r(this, "columns");
850
- const { columns: s = [], ...a } = t;
851
- this.table = e, this.columns = s.map((o) => new Ls(this, o)), this.componentProps = a;
847
+ const { columns: s = [], ...i } = e;
848
+ this.table = t, this.columns = s.map((o) => new Ls(this, o)), this.componentProps = i;
852
849
  }
853
850
  }, As = class {
854
- constructor(e, t = {}) {
851
+ constructor(t, e = {}) {
855
852
  r(this, "row");
856
853
  r(this, "renderFn");
857
854
  r(this, "componentProps");
858
- const { renderFn: s, ...a } = t;
859
- this.row = e, this.renderFn = s, this.componentProps = a;
855
+ const { renderFn: s, ...i } = e;
856
+ this.row = t, this.renderFn = s, this.componentProps = i;
860
857
  }
861
858
  }, Vs = class {
862
- constructor(e, t = {}) {
859
+ constructor(t, e = {}) {
863
860
  r(this, "tableBody");
864
861
  r(this, "cells");
865
862
  r(this, "componentProps");
866
- const { cells: s = [], ...a } = t;
867
- this.tableBody = e, this.cells = s.map((o) => new As(this, o)), this.componentProps = a;
863
+ const { cells: s = [], ...i } = e;
864
+ this.tableBody = t, this.cells = s.map((o) => new As(this, o)), this.componentProps = i;
868
865
  }
869
866
  }, ks = class {
870
- constructor(e, t = {}) {
867
+ constructor(t, e = {}) {
871
868
  r(this, "table");
872
869
  r(this, "componentProps");
873
870
  r(this, "row");
874
- const { row: s, ...a } = t;
875
- this.table = e, this.row = new Vs(this, s), this.componentProps = a;
871
+ const { row: s, ...i } = e;
872
+ this.table = t, this.row = new Vs(this, s), this.componentProps = i;
876
873
  }
877
874
  }, Bs = class {
878
- constructor(e, t = {}) {
875
+ constructor(t, e = {}) {
879
876
  r(this, "list");
880
877
  r(this, "header");
881
878
  r(this, "body");
882
879
  r(this, "componentProps");
883
- const { header: s, body: a, ...o } = t;
884
- this.list = e, this.header = new Ps(this, s), this.body = new ks(this, a), this.componentProps = o;
880
+ const { header: s, body: i, ...o } = e;
881
+ this.list = t, this.header = new Ps(this, s), this.body = new ks(this, i), this.componentProps = o;
885
882
  }
886
883
  };
887
884
  var y;
888
885
  let Ms = (y = class {
889
- constructor(e) {
886
+ constructor(t) {
890
887
  r(this, "filters");
891
888
  r(this, "itemView");
892
889
  r(this, "table");
@@ -908,22 +905,22 @@ let Ms = (y = class {
908
905
  r(this, "viewModeStorageKey");
909
906
  r(this, "filterSettingsStorageKey");
910
907
  const {
911
- settingStorageKey: t,
908
+ settingStorageKey: e,
912
909
  itemView: s,
913
- table: a,
910
+ table: i,
914
911
  filters: o = [],
915
912
  sorting: c = [],
916
913
  batchesController: d,
917
914
  onChange: l,
918
915
  loader: u,
919
916
  search: m,
920
- onAction: E,
917
+ onAction: w,
921
918
  getItemId: C,
922
919
  defaultViewMode: L,
923
920
  accordion: P = !1,
924
- ...g
925
- } = e;
926
- this.settingsStore = Vt(), this.settingStorageKey = t, this.filterSettingsStorageKey = t ? `${t}.activeFilters` : void 0, this.viewModeStorageKey = t ? `${t}.viewMode` : void 0, this.supportsSettingsStorage = !!this.settingStorageKey, this.items = new vs(this), this.filters = o.map((h) => new R(this, h)), this.sorting = c.map((h) => new Is(this, h)), this.search = m ? new Cs(this, m) : void 0, this.itemView = s ? new Q(this, s) : void 0, this.accordion = P, this.table = a ? new Bs(this, a) : void 0, this.batches = new ys(this, d), this.componentProps = g, this.loader = ne.useNew(this, u), this.onAction = E, this.getItemId = C, this.reactTable = ie.useNew(this, l, {
921
+ ...p
922
+ } = t;
923
+ this.settingsStore = Ae(), this.settingStorageKey = e, this.filterSettingsStorageKey = e ? `${e}.activeFilters` : void 0, this.viewModeStorageKey = e ? `${e}.viewMode` : void 0, this.supportsSettingsStorage = !!this.settingStorageKey, this.items = new vs(this), this.filters = o.map((h) => new $(this, h)), this.sorting = c.map((h) => new Is(this, h)), this.search = m ? new Cs(this, m) : void 0, this.itemView = s ? new Q(this, s) : void 0, this.accordion = P, this.table = i ? new Bs(this, i) : void 0, this.batches = new ys(this, d), this.componentProps = p, this.loader = nt.useNew(this, u), this.onAction = w, this.getItemId = C, this.reactTable = at.useNew(this, l, {
927
924
  manualFiltering: this.loader.manualFiltering,
928
925
  manualPagination: this.loader.manualPagination,
929
926
  manualSorting: this.loader.manualSorting
@@ -938,32 +935,32 @@ let Ms = (y = class {
938
935
  y.viewModeSettingsStorageSchema,
939
936
  h
940
937
  );
941
- }, M(() => {
938
+ }, x(() => {
942
939
  this.filters.forEach((h) => h.deleteUnknownFilterValues());
943
940
  }, [this.filters]);
944
941
  }
945
942
  get isFiltered() {
946
- return this.filters.some((e) => e.isActive()) || !!this.search && this.search.isSet;
943
+ return this.filters.some((t) => t.isActive()) || !!this.search && this.search.isSet;
947
944
  }
948
945
  get visibleSorting() {
949
- return this.sorting.filter((e) => e.defaultEnabled !== "hidden");
946
+ return this.sorting.filter((t) => t.defaultEnabled !== "hidden");
950
947
  }
951
- static useNew(e) {
952
- return new y(e);
948
+ static useNew(t) {
949
+ return new y(t);
953
950
  }
954
951
  storeFilterDefaultSettings() {
955
952
  if (this.settingsStore && this.filterSettingsStorageKey) {
956
- const e = Object.fromEntries(
957
- this.filters.map((t) => [
958
- t.property,
959
- t.getArrayValue().filter((s) => s.isActive).map((s) => s.id)
953
+ const t = Object.fromEntries(
954
+ this.filters.map((e) => [
955
+ e.property,
956
+ e.getArrayValue().filter((s) => s.isActive).map((s) => s.id)
960
957
  ])
961
958
  );
962
959
  this.settingsStore.set(
963
960
  "List",
964
961
  this.filterSettingsStorageKey,
965
- R.settingsStorageSchema,
966
- e
962
+ $.settingsStorageSchema,
963
+ t
967
964
  );
968
965
  }
969
966
  }
@@ -972,7 +969,7 @@ let Ms = (y = class {
972
969
  return this.settingsStore.get(
973
970
  "List",
974
971
  this.filterSettingsStorageKey,
975
- R.settingsStorageSchema
972
+ $.settingsStorageSchema
976
973
  );
977
974
  }
978
975
  getStoredViewModeDefaultSetting() {
@@ -983,71 +980,71 @@ let Ms = (y = class {
983
980
  y.viewModeSettingsStorageSchema
984
981
  );
985
982
  }
986
- getSorting(e) {
987
- const t = this.sorting.find((s) => s.id === e);
988
- return Ce(!!t, `Could not get Sorting (ID: ${e})`), t;
983
+ getSorting(t) {
984
+ const e = this.sorting.find((s) => s.id === t);
985
+ return Ct(!!e, `Could not get Sorting (ID: ${t})`), e;
989
986
  }
990
987
  clearSorting() {
991
- return this.sorting.forEach((e) => e.clear());
988
+ return this.sorting.forEach((t) => t.clear());
992
989
  }
993
990
  resetFilters() {
994
- return this.filters.forEach((e) => e.resetValues());
991
+ return this.filters.forEach((t) => t.resetValues());
995
992
  }
996
993
  clearFilters() {
997
- return this.filters.forEach((e) => e.clear());
994
+ return this.filters.forEach((t) => t.clear());
998
995
  }
999
996
  useIsEmpty() {
1000
997
  return !this.loader.useIsLoading() && this.items.entries.length === 0;
1001
998
  }
1002
- }, r(y, "viewModeSettingsStorageSchema", D.enum(["list", "table"]).optional()), y);
1003
- const xs = "flow--list--items", Ds = "flow--list--items--is-loading", ye = {
999
+ }, r(y, "viewModeSettingsStorageSchema", N.enum(["list", "table"]).optional()), y);
1000
+ const xs = "flow--list--items", Ds = "flow--list--items--is-loading", yt = {
1004
1001
  items: xs,
1005
1002
  isLoading: Ds
1006
- }, Ns = "flow--list--items--item", Rs = "flow--list--items--item--is-selected", $s = "flow--list--items--item--has-action", $ = {
1003
+ }, Ns = "flow--list--items--item", Rs = "flow--list--items--item--is-selected", $s = "flow--list--items--item--has-action", U = {
1007
1004
  item: Ns,
1008
1005
  isSelected: Rs,
1009
1006
  hasAction: $s
1010
- }, Ne = () => /* @__PURE__ */ i.createElement(Me, null, /* @__PURE__ */ i.createElement(te, null, /* @__PURE__ */ i.createElement(U, { width: "200px" })), /* @__PURE__ */ i.createElement(T, null, /* @__PURE__ */ i.createElement(U, { width: "300px" }))), zs = (n) => {
1011
- const { isExpanded: e, toggle: t, children: s, contentElementId: a } = n, o = I(S);
1012
- return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(
1013
- w,
1007
+ }, Nt = () => /* @__PURE__ */ a.createElement(Mt, null, /* @__PURE__ */ a.createElement(et, null, /* @__PURE__ */ a.createElement(z, { width: "200px" })), /* @__PURE__ */ a.createElement(T, null, /* @__PURE__ */ a.createElement(z, { width: "300px" }))), Us = (n) => {
1008
+ const { isExpanded: t, toggle: e, children: s, contentElementId: i } = n, o = I(b);
1009
+ return /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
1010
+ E,
1014
1011
  {
1015
1012
  variant: "plain",
1016
1013
  color: "secondary",
1017
- onPress: t,
1014
+ onPress: e,
1018
1015
  "aria-label": o.format(
1019
- "list.toggleExpandButton." + (e ? "collapse" : "expand")
1016
+ "list.toggleExpandButton." + (t ? "collapse" : "expand")
1020
1017
  ),
1021
- "aria-controls": a,
1022
- "aria-expanded": e
1018
+ "aria-controls": i,
1019
+ "aria-expanded": t
1023
1020
  },
1024
- e ? /* @__PURE__ */ i.createElement(Bt, null) : /* @__PURE__ */ i.createElement(kt, null)
1025
- ), e && s);
1026
- }, Us = (n) => {
1021
+ t ? /* @__PURE__ */ a.createElement(ke, null) : /* @__PURE__ */ a.createElement(Ve, null)
1022
+ ), t && s);
1023
+ }, zs = (n) => {
1027
1024
  var P;
1028
- const { data: e, children: t } = n, s = f(), a = s.itemView, o = s.onAction, [c, d] = O(
1029
- ((P = a == null ? void 0 : a.defaultExpanded) == null ? void 0 : P.call(a, e)) ?? !1
1030
- ), l = tt(), u = Ee(null), m = s.accordion, E = t ?? (a == null ? void 0 : a.render(e));
1031
- if (M(() => {
1032
- var g, A;
1033
- m && ((g = u.current) == null || g.setAttribute("aria-expanded", String(c)), (A = u.current) == null || A.setAttribute("aria-controls", l));
1025
+ const { data: t, children: e } = n, s = f(), i = s.itemView, o = s.onAction, [c, d] = O(
1026
+ ((P = i == null ? void 0 : i.defaultExpanded) == null ? void 0 : P.call(i, t)) ?? !1
1027
+ ), l = ee(), u = wt(null), m = s.accordion, w = e ?? (i == null ? void 0 : i.render(t));
1028
+ if (x(() => {
1029
+ var p, A;
1030
+ m && ((p = u.current) == null || p.setAttribute("aria-expanded", String(c)), (A = u.current) == null || A.setAttribute("aria-controls", l));
1034
1031
  }, [c, l, u.current, m]), !m)
1035
1032
  return {
1036
1033
  gridItemProps: {
1037
1034
  onAction: o ? () => {
1038
- o == null || o(e);
1035
+ o == null || o(t);
1039
1036
  } : void 0
1040
1037
  },
1041
- children: E
1038
+ children: w
1042
1039
  };
1043
1040
  const C = () => {
1044
- d((g) => !g), o == null || o(e);
1041
+ d((p) => !p), o == null || o(t);
1045
1042
  }, L = {
1046
1043
  Content: {
1047
- id: Y((g) => g.slot === "bottom" ? l : void 0),
1044
+ id: Y((p) => p.slot === "bottom" ? l : void 0),
1048
1045
  wrapWith: Y(
1049
- (g) => g.slot === "bottom" ? /* @__PURE__ */ i.createElement(
1050
- zs,
1046
+ (p) => p.slot === "bottom" ? /* @__PURE__ */ a.createElement(
1047
+ Us,
1051
1048
  {
1052
1049
  contentElementId: l,
1053
1050
  toggle: C,
@@ -1062,148 +1059,148 @@ const xs = "flow--list--items", Ds = "flow--list--items--is-loading", ye = {
1062
1059
  ref: u,
1063
1060
  onAction: C
1064
1061
  },
1065
- children: /* @__PURE__ */ i.createElement(
1062
+ children: /* @__PURE__ */ a.createElement(
1066
1063
  Z,
1067
1064
  {
1068
1065
  props: L,
1069
1066
  dependencies: [l, c]
1070
1067
  },
1071
- E
1068
+ w
1072
1069
  )
1073
1070
  };
1074
1071
  }, Ks = (n) => {
1075
- const { id: e, data: t } = n, a = f().itemView, { gridItemProps: o, children: c } = Us(n);
1076
- if (!a)
1072
+ const { id: t, data: e } = n, i = f().itemView, { gridItemProps: o, children: c } = zs(n);
1073
+ if (!i)
1077
1074
  return null;
1078
- const d = a.textValue ? a.textValue(t) : void 0, l = a.href ? a.href(t) : void 0, u = !!o.onAction || !!l;
1079
- return /* @__PURE__ */ i.createElement(
1080
- se.GridListItem,
1075
+ const d = i.textValue ? i.textValue(e) : void 0, l = i.href ? i.href(e) : void 0, u = !!o.onAction || !!l;
1076
+ return /* @__PURE__ */ a.createElement(
1077
+ st.GridListItem,
1081
1078
  {
1082
- id: e,
1079
+ id: t,
1083
1080
  className: (m) => k(
1084
- $.item,
1085
- u && $.hasAction,
1086
- m.isSelected && $.isSelected
1081
+ U.item,
1082
+ u && U.hasAction,
1083
+ m.isSelected && U.isSelected
1087
1084
  ),
1088
1085
  textValue: d,
1089
1086
  href: l,
1090
1087
  ...o
1091
1088
  },
1092
- /* @__PURE__ */ i.createElement(st, { fallback: /* @__PURE__ */ i.createElement(Ne, null) }, c)
1089
+ /* @__PURE__ */ a.createElement(se, { fallback: /* @__PURE__ */ a.createElement(Nt, null) }, c)
1093
1090
  );
1094
- }, Os = (n) => /* @__PURE__ */ i.createElement(se.GridListItem, { textValue: "-", className: $.item }, n.children), X = () => {
1095
- const n = I(S);
1096
- return /* @__PURE__ */ i.createElement(Mt, null, /* @__PURE__ */ i.createElement(xt, null), /* @__PURE__ */ i.createElement(te, null, n.format("list.noResult.heading")), /* @__PURE__ */ i.createElement(T, null, n.format("list.noResult.text")));
1091
+ }, Os = (n) => /* @__PURE__ */ a.createElement(st.GridListItem, { textValue: "-", className: U.item }, n.children), X = () => {
1092
+ const n = I(b);
1093
+ return /* @__PURE__ */ a.createElement(Be, null, /* @__PURE__ */ a.createElement(Me, null), /* @__PURE__ */ a.createElement(et, null, n.format("list.noResult.heading")), /* @__PURE__ */ a.createElement(T, null, n.format("list.noResult.text")));
1097
1094
  }, Hs = () => {
1098
- var t;
1099
- const e = ((t = f().itemView) == null ? void 0 : t.fallback) ?? /* @__PURE__ */ i.createElement(Ne, null);
1100
- return Array.from(Array(5)).map((s, a) => /* @__PURE__ */ i.createElement(Os, { key: a }, it(e)));
1095
+ var e;
1096
+ const t = ((e = f().itemView) == null ? void 0 : e.fallback) ?? /* @__PURE__ */ a.createElement(Nt, null);
1097
+ return Array.from(Array(5)).map((s, i) => /* @__PURE__ */ a.createElement(Os, { key: i }, ae(t)));
1101
1098
  }, qs = () => {
1102
- const n = f(), e = n.loader.useIsLoading(), t = n.loader.useIsInitiallyLoading();
1099
+ const n = f(), t = n.loader.useIsLoading(), e = n.loader.useIsInitiallyLoading();
1103
1100
  if (!n.itemView)
1104
1101
  return null;
1105
- const s = n.items.entries.map((o) => /* @__PURE__ */ i.createElement(Ks, { key: o.id, data: o.data, id: o.id })), a = k(ye.items, e && ye.isLoading);
1106
- return /* @__PURE__ */ i.createElement("div", { "aria-hidden": t, "aria-busy": e }, /* @__PURE__ */ i.createElement(
1107
- se.GridList,
1102
+ const s = n.items.entries.map((o) => /* @__PURE__ */ a.createElement(Ks, { key: o.id, data: o.data, id: o.id })), i = k(yt.items, t && yt.isLoading);
1103
+ return /* @__PURE__ */ a.createElement("div", { "aria-hidden": e, "aria-busy": t }, /* @__PURE__ */ a.createElement(
1104
+ st.GridList,
1108
1105
  {
1109
- className: a,
1106
+ className: i,
1110
1107
  ...n.componentProps,
1111
- renderEmptyState: () => /* @__PURE__ */ i.createElement(X, null)
1108
+ renderEmptyState: () => /* @__PURE__ */ a.createElement(X, null)
1112
1109
  },
1113
- t ? /* @__PURE__ */ i.createElement(Hs, null) : s
1110
+ e ? /* @__PURE__ */ a.createElement(Hs, null) : s
1114
1111
  ));
1115
- }, Re = (n) => null, Gs = () => Re, $e = (n) => null, Ws = () => $e, ze = (n) => null, js = () => ze, Ue = (n) => null, Js = () => Ue, Ke = (n) => null, Ys = () => Ke, Qs = "flow--list--footer", Xs = {
1112
+ }, Rt = (n) => null, Gs = () => Rt, $t = (n) => null, Ws = () => $t, Ut = (n) => null, js = () => Ut, zt = (n) => null, Js = () => zt, Kt = (n) => null, Ys = () => Kt, Qs = "flow--list--footer", Xs = {
1116
1113
  footer: Qs
1117
1114
  }, Zs = (n) => {
1118
- const e = I(S), t = f(), s = t.batches, a = t.loader.useIsInitiallyLoading(), o = t.useIsEmpty(), c = s.getTotalItemsCount(), d = s.getVisibleItemsCount();
1115
+ const t = I(b), e = f(), s = e.batches, i = e.loader.useIsInitiallyLoading(), o = e.useIsEmpty(), c = s.getTotalItemsCount(), d = s.getVisibleItemsCount();
1119
1116
  if (o)
1120
1117
  return null;
1121
- const l = a ? /* @__PURE__ */ i.createElement($t, { width: "200px" }) : e.format("list.paginationInfo", {
1118
+ const l = i ? /* @__PURE__ */ a.createElement(Re, { width: "200px" }) : t.format("list.paginationInfo", {
1122
1119
  visibleItemsCount: d,
1123
1120
  totalItemsCount: c
1124
1121
  });
1125
- return /* @__PURE__ */ i.createElement(T, { ...n }, l);
1122
+ return /* @__PURE__ */ a.createElement(T, { ...n }, l);
1126
1123
  }, _s = (n) => {
1127
- const e = I(S), t = f(), s = t.loader.useIsLoading(), a = t.loader.useIsInitiallyLoading();
1128
- return !t.batches.hasNextBatch() && !s ? null : /* @__PURE__ */ i.createElement(
1129
- w,
1124
+ const t = I(b), e = f(), s = e.loader.useIsLoading(), i = e.loader.useIsInitiallyLoading();
1125
+ return !e.batches.hasNextBatch() && !s ? null : /* @__PURE__ */ a.createElement(
1126
+ E,
1130
1127
  {
1131
- isPending: s && !a,
1132
- isDisabled: a,
1128
+ isPending: s && !i,
1129
+ isDisabled: i,
1133
1130
  ...n,
1134
- onPress: () => t.batches.nextBatch(),
1131
+ onPress: () => e.batches.nextBatch(),
1135
1132
  variant: "plain",
1136
1133
  size: "s"
1137
1134
  },
1138
- e.format("list.showMore")
1135
+ t.format("list.showMore")
1139
1136
  );
1140
- }, ei = () => /* @__PURE__ */ i.createElement("div", { className: Xs.footer }, /* @__PURE__ */ i.createElement(Zs, null), /* @__PURE__ */ i.createElement(_s, null));
1141
- function Oe(n) {
1137
+ }, ta = () => /* @__PURE__ */ a.createElement("div", { className: Xs.footer }, /* @__PURE__ */ a.createElement(Zs, null), /* @__PURE__ */ a.createElement(_s, null));
1138
+ function Ot(n) {
1142
1139
  return null;
1143
1140
  }
1144
- const ti = () => Oe, He = (n) => null, qe = (n) => null, Ge = (n) => null, si = (n) => /* @__PURE__ */ i.createElement(Le, { ...n }, /* @__PURE__ */ i.createElement(Pe, null, /* @__PURE__ */ i.createElement(Ae, null, /* @__PURE__ */ i.createElement(U, { width: "100%" }))), /* @__PURE__ */ i.createElement(Ve, null, Array.from(Array(5)).map((e, t) => /* @__PURE__ */ i.createElement(ke, { key: t }, /* @__PURE__ */ i.createElement(Be, null, /* @__PURE__ */ i.createElement(U, { width: "100%" })))))), ii = "flow--list--table", ai = "flow--list--table--is-loading", ni = "flow--list--table--row", ri = "flow--list--table--is-selected", oi = "flow--list--table--has-action", B = {
1145
- table: ii,
1146
- isLoading: ai,
1147
- row: ni,
1148
- isSelected: ri,
1149
- hasAction: oi
1150
- }, li = () => {
1151
- const n = f(), e = n.table, t = n.useIsEmpty(), s = n.loader.useIsLoading(), a = n.loader.useIsInitiallyLoading();
1152
- if (!e)
1141
+ const ea = () => Ot, Ht = (n) => null, qt = (n) => null, Gt = (n) => null, sa = (n) => /* @__PURE__ */ a.createElement(Lt, { ...n }, /* @__PURE__ */ a.createElement(Pt, null, /* @__PURE__ */ a.createElement(At, null, /* @__PURE__ */ a.createElement(z, { width: "100%" }))), /* @__PURE__ */ a.createElement(Vt, null, Array.from(Array(5)).map((t, e) => /* @__PURE__ */ a.createElement(kt, { key: e }, /* @__PURE__ */ a.createElement(Bt, null, /* @__PURE__ */ a.createElement(z, { width: "100%" })))))), aa = "flow--list--table", ia = "flow--list--table--is-loading", na = "flow--list--table--row", ra = "flow--list--table--is-selected", oa = "flow--list--table--has-action", B = {
1142
+ table: aa,
1143
+ isLoading: ia,
1144
+ row: na,
1145
+ isSelected: ra,
1146
+ hasAction: oa
1147
+ }, la = () => {
1148
+ const n = f(), t = n.table, e = n.useIsEmpty(), s = n.loader.useIsLoading(), i = n.loader.useIsInitiallyLoading();
1149
+ if (!t)
1153
1150
  return null;
1154
- if (a)
1155
- return /* @__PURE__ */ i.createElement(si, { ...e.componentProps });
1156
- if (t)
1157
- return /* @__PURE__ */ i.createElement(X, null);
1158
- const o = e.list.onAction, c = k(
1151
+ if (i)
1152
+ return /* @__PURE__ */ a.createElement(sa, { ...t.componentProps });
1153
+ if (e)
1154
+ return /* @__PURE__ */ a.createElement(X, null);
1155
+ const o = t.list.onAction, c = k(
1159
1156
  B.table,
1160
1157
  s && B.isLoading,
1161
- e.componentProps.className
1158
+ t.componentProps.className
1162
1159
  );
1163
- return /* @__PURE__ */ i.createElement(
1164
- Le,
1160
+ return /* @__PURE__ */ a.createElement(
1161
+ Lt,
1165
1162
  {
1166
1163
  ...n.componentProps,
1167
- ...e.componentProps,
1164
+ ...t.componentProps,
1168
1165
  className: c
1169
1166
  },
1170
- /* @__PURE__ */ i.createElement(Pe, { ...e.header.componentProps }, e.header.columns.map((d, l) => /* @__PURE__ */ i.createElement(Ae, { key: l, ...d.componentProps }))),
1171
- /* @__PURE__ */ i.createElement(
1172
- Ve,
1167
+ /* @__PURE__ */ a.createElement(Pt, { ...t.header.componentProps }, t.header.columns.map((d, l) => /* @__PURE__ */ a.createElement(At, { key: l, ...d.componentProps }))),
1168
+ /* @__PURE__ */ a.createElement(
1169
+ Vt,
1173
1170
  {
1174
- ...e.body.componentProps,
1175
- renderEmptyState: () => /* @__PURE__ */ i.createElement(X, null)
1171
+ ...t.body.componentProps,
1172
+ renderEmptyState: () => /* @__PURE__ */ a.createElement(X, null)
1176
1173
  },
1177
1174
  n.items.entries.map((d) => {
1178
1175
  var l;
1179
- return /* @__PURE__ */ i.createElement(
1180
- ke,
1176
+ return /* @__PURE__ */ a.createElement(
1177
+ kt,
1181
1178
  {
1182
1179
  className: (u) => k(
1183
1180
  B.row,
1184
1181
  o && B.hasAction,
1185
- e.body.row.componentProps.className,
1182
+ t.body.row.componentProps.className,
1186
1183
  u.isSelected && B.isSelected
1187
1184
  ),
1188
1185
  key: d.id,
1189
1186
  id: d.id,
1190
1187
  onAction: o ? () => o(d.data) : void 0,
1191
- ...e.body.row.componentProps
1188
+ ...t.body.row.componentProps
1192
1189
  },
1193
- (l = e.body.row) == null ? void 0 : l.cells.map((u, m) => /* @__PURE__ */ i.createElement(Be, { key: m, ...u.componentProps }, u.renderFn ? u.renderFn(d.data, n) : void 0))
1190
+ (l = t.body.row) == null ? void 0 : l.cells.map((u, m) => /* @__PURE__ */ a.createElement(Bt, { key: m, ...u.componentProps }, u.renderFn ? u.renderFn(d.data, n) : void 0))
1194
1191
  );
1195
1192
  })
1196
1193
  )
1197
1194
  );
1198
- }, We = (n) => null, je = (n) => null, Je = (n) => null, ci = Ie("List", (n) => {
1199
- var re, oe, le, ce, de, ue, me, he, ge;
1200
- const { children: e, batchSize: t, onChange: s, refProp: a, ...o } = n, c = (re = v(
1201
- e,
1202
- Re
1203
- )) == null ? void 0 : re.props, d = (oe = v(
1204
- e,
1205
- Nt
1206
- )) == null ? void 0 : oe.props, l = (le = v(e, Ke)) == null ? void 0 : le.props, u = {
1195
+ }, Wt = (n) => null, jt = (n) => null, Jt = (n) => null, ca = It("List", (n) => {
1196
+ var rt, ot, lt, ct, dt, ut, mt, ht, gt;
1197
+ const { children: t, batchSize: e, onChange: s, refProp: i, ...o } = n, c = (rt = v(
1198
+ t,
1199
+ Rt
1200
+ )) == null ? void 0 : rt.props, d = (ot = v(
1201
+ t,
1202
+ De
1203
+ )) == null ? void 0 : ot.props, l = (lt = v(t, Kt)) == null ? void 0 : lt.props, u = {
1207
1204
  source: c ? {
1208
1205
  ...c,
1209
1206
  asyncLoader: c.children
@@ -1213,23 +1210,23 @@ const ti = () => Oe, He = (n) => null, qe = (n) => null, Ge = (n) => null, si =
1213
1210
  } : l ? {
1214
1211
  staticData: l.data
1215
1212
  } : void 0
1216
- }, m = (ce = v(e, Oe)) == null ? void 0 : ce.props, E = (de = v(e, Ue)) == null ? void 0 : de.props, C = (ue = v(e, We)) == null ? void 0 : ue.props, L = x(e, He).map(
1217
- (b) => ({
1218
- ...b.props,
1219
- name: b.props.children
1213
+ }, m = (ct = v(t, Ot)) == null ? void 0 : ct.props, w = (dt = v(t, zt)) == null ? void 0 : dt.props, C = (ut = v(t, Wt)) == null ? void 0 : ut.props, L = D(t, Ht).map(
1214
+ (S) => ({
1215
+ ...S.props,
1216
+ name: S.props.children
1220
1217
  })
1221
- ), P = x(e, Ge).map(
1222
- (b) => ({
1223
- ...b.props,
1224
- renderFn: b.props.children
1218
+ ), P = D(t, Gt).map(
1219
+ (S) => ({
1220
+ ...S.props,
1221
+ renderFn: S.props.children
1225
1222
  })
1226
- ), g = (me = v(e, qe)) == null ? void 0 : me.props, A = (he = v(e, je)) == null ? void 0 : he.props, q = (ge = v(e, Je)) == null ? void 0 : ge.props, h = Ms.useNew({
1223
+ ), p = (mt = v(t, qt)) == null ? void 0 : mt.props, A = (ht = v(t, jt)) == null ? void 0 : ht.props, q = (gt = v(t, Jt)) == null ? void 0 : gt.props, h = Ms.useNew({
1227
1224
  onChange: s,
1228
1225
  loader: u,
1229
- filters: x(e, $e).map(
1230
- (b) => ({
1231
- ...b.props,
1232
- renderItem: b.props.children
1226
+ filters: D(t, $t).map(
1227
+ (S) => ({
1228
+ ...S.props,
1229
+ renderItem: S.props.children
1233
1230
  })
1234
1231
  ),
1235
1232
  search: m ? {
@@ -1237,10 +1234,10 @@ const ti = () => Oe, He = (n) => null, qe = (n) => null, Ge = (n) => null, si =
1237
1234
  textFieldProps: m,
1238
1235
  defaultValue: m.defaultValue
1239
1236
  } : void 0,
1240
- sorting: x(e, ze).map((b) => b.props),
1241
- itemView: E ? {
1242
- ...E,
1243
- renderFn: E.children
1237
+ sorting: D(t, Ut).map((S) => S.props),
1238
+ itemView: w ? {
1239
+ ...w,
1240
+ renderFn: w.children
1244
1241
  } : void 0,
1245
1242
  table: L.length > 0 ? {
1246
1243
  header: {
@@ -1250,17 +1247,17 @@ const ti = () => Oe, He = (n) => null, qe = (n) => null, Ge = (n) => null, si =
1250
1247
  body: {
1251
1248
  ...q,
1252
1249
  row: {
1253
- ...g,
1250
+ ...p,
1254
1251
  cells: P
1255
1252
  }
1256
1253
  },
1257
1254
  ...C
1258
1255
  } : void 0,
1259
1256
  batchesController: {
1260
- batchSize: t
1257
+ batchSize: e
1261
1258
  },
1262
1259
  ...o
1263
- }), Ye = {
1260
+ }), Yt = {
1264
1261
  ActionGroup: {
1265
1262
  className: V.actions,
1266
1263
  tunnelId: "actions",
@@ -1269,49 +1266,49 @@ const ti = () => Oe, He = (n) => null, qe = (n) => null, Ge = (n) => null, si =
1269
1266
  ListSummary: {
1270
1267
  tunnelId: "listSummary"
1271
1268
  }
1272
- }, Qe = Dt(e, zt);
1273
- return /* @__PURE__ */ i.createElement(Z, { props: Ye }, /* @__PURE__ */ i.createElement(Fe, null, /* @__PURE__ */ i.createElement(
1274
- xe.Provider,
1269
+ }, Qt = xe(t, $e);
1270
+ return /* @__PURE__ */ a.createElement(Z, { props: Yt }, /* @__PURE__ */ a.createElement(Ft, null, /* @__PURE__ */ a.createElement(
1271
+ xt.Provider,
1275
1272
  {
1276
1273
  value: {
1277
1274
  list: h
1278
1275
  }
1279
1276
  },
1280
- /* @__PURE__ */ i.createElement(Zt, null),
1281
- /* @__PURE__ */ i.createElement("div", { className: Ss.list, ref: a }, e, /* @__PURE__ */ i.createElement(ps, { hasActionGroup: Qe }), /* @__PURE__ */ i.createElement("div", null, h.items.entries.length > 0 && /* @__PURE__ */ i.createElement(z, { id: "listSummary" }), h.viewMode === "list" && /* @__PURE__ */ i.createElement(qs, null), h.viewMode === "table" && /* @__PURE__ */ i.createElement(li, null)), /* @__PURE__ */ i.createElement(ei, null))
1277
+ /* @__PURE__ */ a.createElement(_e, null),
1278
+ /* @__PURE__ */ a.createElement("div", { className: bs.list, ref: i }, t, /* @__PURE__ */ a.createElement(ps, { hasActionGroup: Qt }), /* @__PURE__ */ a.createElement("div", null, h.items.entries.length > 0 && /* @__PURE__ */ a.createElement(M, { id: "listSummary" }), h.viewMode === "list" && /* @__PURE__ */ a.createElement(qs, null), h.viewMode === "table" && /* @__PURE__ */ a.createElement(la, null)), /* @__PURE__ */ a.createElement(ta, null))
1282
1279
  )));
1283
- }), di = () => ci, ma = () => ({
1284
- List: di(),
1280
+ }), da = () => ca, ui = () => ({
1281
+ List: da(),
1285
1282
  Filter: Ws(),
1286
- Search: ti(),
1283
+ Search: ea(),
1287
1284
  Sorting: js(),
1288
1285
  Item: Js(),
1289
- ItemView: Me,
1290
- TableHeader: je,
1291
- TableColumn: He,
1292
- TableBody: Je,
1293
- TableRow: qe,
1294
- TableCell: Ge,
1295
- Table: We,
1286
+ ItemView: Mt,
1287
+ TableHeader: jt,
1288
+ TableColumn: Ht,
1289
+ TableBody: Jt,
1290
+ TableRow: qt,
1291
+ TableCell: Gt,
1292
+ Table: Wt,
1296
1293
  StaticData: Ys(),
1297
1294
  LoaderAsync: Gs(),
1298
- LoaderAsyncResource: Rt()
1295
+ LoaderAsyncResource: Ne()
1299
1296
  });
1300
1297
  export {
1301
- ci as List,
1302
- $e as ListFilter,
1303
- Ue as ListItem,
1304
- Me as ListItemView,
1305
- Re as ListLoaderAsync,
1306
- ze as ListSorting,
1307
- Ke as ListStaticData,
1308
- na as ListSummary,
1309
- di as TypedList,
1298
+ ca as List,
1299
+ $t as ListFilter,
1300
+ zt as ListItem,
1301
+ Mt as ListItemView,
1302
+ Rt as ListLoaderAsync,
1303
+ Ut as ListSorting,
1304
+ Kt as ListStaticData,
1305
+ ii as ListSummary,
1306
+ da as TypedList,
1310
1307
  Ws as TypedListFilter,
1311
1308
  Js as TypedListItem,
1312
1309
  Gs as TypedListLoaderAsync,
1313
1310
  js as TypedListSorting,
1314
1311
  Ys as TypedListStaticData,
1315
- ma as typedList,
1312
+ ui as typedList,
1316
1313
  f as useList
1317
1314
  };