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

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