@mittwald/flow-react-components 0.2.0-alpha.24 → 0.2.0-alpha.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/js/ContextMenu.js +8 -7
  3. package/dist/js/ContextMenuContent-N8Co_64N.js +123 -0
  4. package/dist/js/{DialogTriggerView-NI0s4hWl.js → DialogTriggerView-L7WD5ojU.js} +5 -4
  5. package/dist/js/Fragment-DLqk6JTD.js +8 -0
  6. package/dist/js/Fragment.js +3 -5
  7. package/dist/js/List.js +419 -392
  8. package/dist/js/MenuTrigger-B6S1um5d.js +8 -0
  9. package/dist/js/Modal.js +1 -1
  10. package/dist/js/OverlayTrigger.js +5 -3
  11. package/dist/js/Popover.js +1 -1
  12. package/dist/js/Tabs.js +1 -1
  13. package/dist/js/all.css +1 -1
  14. package/dist/js/types/components/ContextMenu/ContextMenu.d.ts +1 -2
  15. package/dist/js/types/components/ContextMenu/ContextMenu.d.ts.map +1 -1
  16. package/dist/js/types/components/ContextMenu/components/ContextMenuContent/ContextMenuContent.d.ts +7 -0
  17. package/dist/js/types/components/ContextMenu/components/ContextMenuContent/ContextMenuContent.d.ts.map +1 -0
  18. package/dist/js/types/components/ContextMenu/components/ContextMenuContent/index.d.ts +3 -0
  19. package/dist/js/types/components/ContextMenu/components/ContextMenuContent/index.d.ts.map +1 -0
  20. package/dist/js/types/components/ContextMenu/components/ContextMenuContent/view.d.ts +8 -0
  21. package/dist/js/types/components/ContextMenu/components/{ContextMenuTrigger → ContextMenuContent}/view.d.ts.map +1 -1
  22. package/dist/js/types/components/ContextMenu/components/ContextMenuTrigger/ContextMenuTrigger.d.ts +0 -1
  23. package/dist/js/types/components/ContextMenu/components/ContextMenuTrigger/ContextMenuTrigger.d.ts.map +1 -1
  24. package/dist/js/types/components/ContextMenu/index.d.ts +1 -1
  25. package/dist/js/types/components/ContextMenu/index.d.ts.map +1 -1
  26. package/dist/js/types/components/List/components/Header/components/FilterPicker/FilterPicker.d.ts.map +1 -1
  27. package/dist/js/types/components/List/components/Header/components/SortingPicker/SortingPicker.d.ts.map +1 -1
  28. package/dist/js/types/components/List/components/Header/components/ViewModeMenu/ViewModeMenu.d.ts.map +1 -1
  29. package/dist/js/types/components/List/components/ListItemView/ListItemView.d.ts +6 -0
  30. package/dist/js/types/components/List/components/ListItemView/ListItemView.d.ts.map +1 -0
  31. package/dist/js/types/components/List/components/ListItemView/components/ListItemViewContent/ListItemViewContent.d.ts +11 -0
  32. package/dist/js/types/components/List/components/ListItemView/components/ListItemViewContent/ListItemViewContent.d.ts.map +1 -0
  33. package/dist/js/types/components/List/components/ListItemView/components/ListItemViewContent/index.d.ts +5 -0
  34. package/dist/js/types/components/List/components/ListItemView/components/ListItemViewContent/index.d.ts.map +1 -0
  35. package/dist/js/types/components/List/components/ListItemView/components/ListItemViewContent/view.d.ts +8 -0
  36. package/dist/js/types/components/List/components/ListItemView/components/ListItemViewContent/view.d.ts.map +1 -0
  37. package/dist/js/types/components/List/components/ListItemView/index.d.ts +5 -0
  38. package/dist/js/types/components/List/components/ListItemView/index.d.ts.map +1 -0
  39. package/dist/js/types/components/List/index.d.ts +1 -1
  40. package/dist/js/types/components/List/index.d.ts.map +1 -1
  41. package/dist/js/types/components/List/typedList.d.ts +1 -3
  42. package/dist/js/types/components/List/typedList.d.ts.map +1 -1
  43. package/dist/js/types/components/OverlayTrigger/components/DialogTrigger/DialogTrigger.d.ts.map +1 -0
  44. package/dist/js/types/components/OverlayTrigger/components/DialogTrigger/index.d.ts.map +1 -0
  45. package/dist/js/types/components/OverlayTrigger/components/{view.d.ts → DialogTrigger/view.d.ts} +1 -1
  46. package/dist/js/types/components/OverlayTrigger/components/DialogTrigger/view.d.ts.map +1 -0
  47. package/dist/js/types/components/OverlayTrigger/components/MenuTrigger/MenuTrigger.d.ts +7 -0
  48. package/dist/js/types/components/OverlayTrigger/components/MenuTrigger/MenuTrigger.d.ts.map +1 -0
  49. package/dist/js/types/components/OverlayTrigger/components/MenuTrigger/index.d.ts +2 -0
  50. package/dist/js/types/components/OverlayTrigger/components/MenuTrigger/index.d.ts.map +1 -0
  51. package/dist/js/types/components/OverlayTrigger/components/MenuTrigger/view.d.ts +8 -0
  52. package/dist/js/types/components/OverlayTrigger/components/MenuTrigger/view.d.ts.map +1 -0
  53. package/dist/js/types/components/OverlayTrigger/index.d.ts +1 -0
  54. package/dist/js/types/components/OverlayTrigger/index.d.ts.map +1 -1
  55. package/dist/js/types/views/ContextMenuContentView.d.ts +5 -0
  56. package/dist/js/types/views/{ContextMenuTriggerView.d.ts.map → ContextMenuContentView.d.ts.map} +1 -1
  57. package/dist/js/types/views/ListItemViewContentView.d.ts +5 -0
  58. package/dist/js/types/views/ListItemViewContentView.d.ts.map +1 -0
  59. package/dist/js/types/views/MenuTriggerView.d.ts +5 -0
  60. package/dist/js/types/views/MenuTriggerView.d.ts.map +1 -0
  61. package/package.json +4 -4
  62. package/dist/js/ContextMenuTrigger-kUBBSyaN.js +0 -104
  63. package/dist/js/types/components/ContextMenu/components/ContextMenuTrigger/view.d.ts +0 -8
  64. package/dist/js/types/components/ContextMenu/view.d.ts +0 -8
  65. package/dist/js/types/components/ContextMenu/view.d.ts.map +0 -1
  66. package/dist/js/types/components/List/components/Items/components/Item/components/View/View.d.ts +0 -6
  67. package/dist/js/types/components/List/components/Items/components/Item/components/View/View.d.ts.map +0 -1
  68. package/dist/js/types/components/List/components/Items/components/Item/components/View/index.d.ts +0 -4
  69. package/dist/js/types/components/List/components/Items/components/Item/components/View/index.d.ts.map +0 -1
  70. package/dist/js/types/components/OverlayTrigger/components/DialogTrigger.d.ts.map +0 -1
  71. package/dist/js/types/components/OverlayTrigger/components/index.d.ts.map +0 -1
  72. package/dist/js/types/components/OverlayTrigger/components/view.d.ts.map +0 -1
  73. package/dist/js/types/views/ContextMenuTriggerView.d.ts +0 -5
  74. package/dist/js/types/views/ContextMenuView.d.ts +0 -5
  75. package/dist/js/types/views/ContextMenuView.d.ts.map +0 -1
  76. /package/dist/js/types/components/OverlayTrigger/components/{DialogTrigger.d.ts → DialogTrigger/DialogTrigger.d.ts} +0 -0
  77. /package/dist/js/types/components/OverlayTrigger/components/{index.d.ts → DialogTrigger/index.d.ts} +0 -0
package/dist/js/List.js CHANGED
@@ -3,72 +3,84 @@
3
3
  var oe = Object.defineProperty;
4
4
  var ae = (s, t, e) => t in s ? oe(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
5
5
  var o = (s, t, e) => ae(s, typeof t != "symbol" ? t + "" : t, e);
6
- import { jsx as r, jsxs as u, Fragment as Tt } from "react/jsx-runtime";
7
- import { useContext as h, createContext as le, createElement as vt, useState as q, useEffect as D, useRef as Ft, useId as ce, Suspense as de, cloneElement as ue } from "react";
8
- import "./propsContext-DzAKlmhS.js";
9
- import { PropsContextProvider as tt } from "./PropsContextProvider.js";
10
- import { d as Q } from "./dynamic-ClpUSmEt.js";
11
- import { useLocalizedStringFormatter as P } from "react-aria";
12
- import "@tabler/icons-react";
13
- import E from "clsx";
6
+ import { jsx as r, jsxs as u, Fragment as vt } from "react/jsx-runtime";
7
+ import { useContext as h, createContext as le, createElement as Ft, useState as q, useEffect as D, useRef as It, useId as ce, Suspense as de, cloneElement as ue } from "react";
8
+ import { f as Vt } from "./flowComponent-B8dC8eRj.js";
9
+ import { TunnelProvider as Ct, TunnelExit as $ } from "@mittwald/react-tunnel";
14
10
  import "@react-aria/utils";
11
+ import "./propsContext-DzAKlmhS.js";
15
12
  import { isShallowEqual as he, unique as me, difference as ge, times as pe } from "remeda";
16
13
  import { getProperty as fe } from "dot-prop";
17
- import { TunnelProvider as It, TunnelExit as $ } from "@mittwald/react-tunnel";
18
- import { f as Vt } from "./flowComponent-B8dC8eRj.js";
19
14
  import { v as m } from "./viewComponentContext-HXEKmx_D.js";
20
- import { I as be } from "./IconContextMenu-DnwSrGtk.js";
21
- import { B as C } from "./ButtonView-inzXKZFE.js";
22
- import * as Ct from "react-aria-components";
23
- import { makeObservable as Se, observable as ft, computed as bt, action as W } from "mobx";
15
+ import E from "clsx";
16
+ import { useLocalizedStringFormatter as P } from "react-aria";
17
+ import "@tabler/icons-react";
18
+ import * as Lt from "react-aria-components";
19
+ import Pt from "invariant";
20
+ import "@chakra-ui/live-region";
21
+ import { makeObservable as be, observable as bt, computed as St, action as Y } from "mobx";
24
22
  import "./context-BaYmTa0I.js";
25
- import Lt from "invariant";
26
23
  import "./Action-C1Tw5pqL.js";
27
24
  import "./getActionGroupSlot-CekBnXeM.js";
28
25
  import "react-children-utilities";
29
- import { hash as Pt } from "object-code";
30
- import { a as At, C as we } from "./ContextMenuTrigger-kUBBSyaN.js";
31
- import { D as ye } from "./Div-kX9yKy8R.js";
32
- import { I as Te } from "./IllustratedMessage-bJ4rZ5O8.js";
33
- import { I as ve } from "./IconSearch-DEZjce1A.js";
34
- import { H as xt } from "./Heading-CAK54nAl.js";
35
- import { T as Mt } from "./Text-CW_CzcoD.js";
36
- import { R as Fe } from "./Render-CP9hqaf1.js";
37
- import { M as Ie } from "./MenuItem-D0A7OXWd.js";
38
- import { b as Ve, I as Ce, a as Le, c as Pe, d as Ae } from "./IconView-DwPoNey_.js";
39
- import { observer as xe } from "mobx-react-lite";
40
- import { T as Me, a as X } from "./Tooltip-BfOJtT5a.js";
41
- import { I as Be } from "./IconClose-B4zJVugN.js";
42
- import { B as ke } from "./Badge-CiZ2cJPc.js";
43
- import { u as De } from "./useOnChange-C1Quwyuz.js";
44
- import { S as Ee } from "./SearchField-ONmuF9P1.js";
45
- import "@chakra-ui/live-region";
46
- import { S as Ne } from "./Section-CWfvE5ls.js";
26
+ import { hash as At } from "object-code";
27
+ import { PropsContextProvider as j } from "./PropsContextProvider.js";
28
+ import { d as _ } from "./dynamic-ClpUSmEt.js";
29
+ import { observer as Se } from "mobx-react-lite";
30
+ import { T as we, a as tt } from "./Tooltip-BfOJtT5a.js";
31
+ import { I as ye } from "./IconClose-B4zJVugN.js";
32
+ import { b as Te, I as ve, a as Fe, c as Ie, d as Ve } from "./IconView-DwPoNey_.js";
33
+ import { B as C } from "./ButtonView-inzXKZFE.js";
34
+ import { D as Ce } from "./Div-kX9yKy8R.js";
35
+ import { B as Le } from "./Badge-CiZ2cJPc.js";
36
+ import { T as xt } from "./Text-CW_CzcoD.js";
47
37
  import K from "zod";
48
- import { useReactTable as Re, getCoreRowModel as $e, getSortedRowModel as Ue, getFilteredRowModel as Ke, getPaginationRowModel as ze, getFacetedUniqueValues as Oe } from "@tanstack/react-table";
49
- import { getAsyncResource as St } from "@mittwald/react-use-promise";
50
- import { u as wt } from "./useSelector-DpU7_HMO.js";
51
- import { u as He } from "./SettingsProvider-DRSFnfXN.js";
52
- import { S as Bt } from "./SkeletonText-C83Oqahi.js";
38
+ import { useReactTable as Pe, getCoreRowModel as Ae, getSortedRowModel as xe, getFilteredRowModel as Be, getPaginationRowModel as Me, getFacetedUniqueValues as ke } from "@tanstack/react-table";
39
+ import { getAsyncResource as wt } from "@mittwald/react-use-promise";
40
+ import { u as yt } from "./useSelector-DpU7_HMO.js";
41
+ import { u as De } from "./SettingsProvider-DRSFnfXN.js";
42
+ import { F as Ee } from "./Fragment-DLqk6JTD.js";
43
+ import { I as Ne } from "./IconContextMenu-DnwSrGtk.js";
44
+ import { a as W, C as it } from "./ContextMenuContent-N8Co_64N.js";
45
+ import { I as Re } from "./IllustratedMessage-bJ4rZ5O8.js";
46
+ import { I as $e } from "./IconSearch-DEZjce1A.js";
47
+ import { H as Bt } from "./Heading-CAK54nAl.js";
48
+ import { R as Ue } from "./Render-CP9hqaf1.js";
49
+ import { M as Ke } from "./MenuItem-D0A7OXWd.js";
50
+ import { u as ze } from "./useOnChange-C1Quwyuz.js";
51
+ import { S as Oe } from "./SearchField-ONmuF9P1.js";
52
+ import { S as He } from "./Section-CWfvE5ls.js";
53
+ import { S as Mt } from "./SkeletonText-C83Oqahi.js";
53
54
  import { I as Ge } from "./IconChevronDown-DbVQ4UKe.js";
54
55
  import { I as qe } from "./IconChevronUp-C7IqV12r.js";
55
- import { a as I, b as U, d as je } from "./deepHas-KHS5X1F_.js";
56
+ import { a as F, b as U, d as je } from "./deepHas-KHS5X1F_.js";
56
57
  import { ListLoaderAsyncResource as We, TypedListLoaderAsyncResource as Je } from "./List/ListLoaderAsyncResource.js";
57
58
  import { S as Ye } from "./Skeleton-Bgnxy2Df.js";
58
59
  import { a as Qe, d as Xe, b as Ze, T as _e, e as ts, c as es } from "./Table-BmKOh2Rs.js";
59
60
  import { A as ss } from "./ActionGroup-CSpyLctL.js";
60
- const is = "flow--list--items--item--view", ns = "flow--list--items--item--view--content", rs = "flow--list--items--item--view--title", os = "flow--list--items--item--view--avatar", as = "flow--list--items--item--view--sub-title", ls = "flow--list--items--item--view--heading", cs = "flow--list--items--item--view--text", ds = "flow--list--items--item--view--top-content", us = "flow--list--items--item--view--action", hs = "flow--list--items--item--view--bottom-content", S = {
61
- view: is,
62
- content: ns,
63
- title: rs,
64
- avatar: os,
65
- subTitle: as,
66
- heading: ls,
67
- text: cs,
68
- topContent: ds,
69
- action: us,
70
- bottomContent: hs
71
- }, v = { "de-DE": {
61
+ const is = "flow--list--list-summary", ns = {
62
+ listSummary: is
63
+ }, Hn = Vt("ListSummary", (s) => {
64
+ const { children: t } = s;
65
+ return /* @__PURE__ */ r("header", { className: ns.listSummary, ...s, children: t });
66
+ }), rs = "flow--list--list-item-view--view", os = "flow--list--list-item-view--content", as = "flow--list--list-item-view--title", ls = "flow--list--list-item-view--avatar", cs = "flow--list--list-item-view--sub-title", ds = "flow--list--list-item-view--heading", us = "flow--list--list-item-view--text", hs = "flow--list--list-item-view--top-content", ms = "flow--list--list-item-view--action", gs = "flow--list--list-item-view--bottom-content", S = {
67
+ view: rs,
68
+ content: os,
69
+ title: as,
70
+ avatar: ls,
71
+ subTitle: cs,
72
+ heading: ds,
73
+ text: us,
74
+ topContent: hs,
75
+ action: ms,
76
+ bottomContent: gs
77
+ }, ps = (s) => {
78
+ const t = h(m).ListItemViewContent ?? Ss;
79
+ return /* @__PURE__ */ r(t, { ...s });
80
+ }, Q = (s) => {
81
+ const t = h(m).Fragment ?? Ee;
82
+ return /* @__PURE__ */ r(t, { ...s });
83
+ }, T = { "de-DE": {
72
84
  "list.filters.clear": "Filter entfernen",
73
85
  "list.filters.reset": "Filter zurücksetzen",
74
86
  "list.filters.store": "Filter speichern",
@@ -100,12 +112,9 @@ const is = "flow--list--items--item--view", ns = "flow--list--items--item--view-
100
112
  "list.sorting": "Sorting",
101
113
  "list.toggleExpandButton.collapse": "Show less",
102
114
  "list.toggleExpandButton.expand": "Show more"
103
- } }, et = (s) => {
104
- const t = h(m).ContextMenuTrigger ?? At;
105
- return /* @__PURE__ */ r(t, { ...s });
106
- }, ms = (s) => {
107
- const { className: t, children: e } = s, i = P(v);
108
- return /* @__PURE__ */ u(et, { children: [
115
+ } }, fs = (s) => {
116
+ const { className: t, children: e } = s, i = P(T);
117
+ return /* @__PURE__ */ u(W, { children: [
109
118
  /* @__PURE__ */ r(
110
119
  C,
111
120
  {
@@ -114,83 +123,100 @@ const is = "flow--list--items--item--view", ns = "flow--list--items--item--view-
114
123
  className: t,
115
124
  "aria-label": i.format("list.options"),
116
125
  tunnelId: null,
117
- children: /* @__PURE__ */ r(be, {})
126
+ children: /* @__PURE__ */ r(Ne, {})
118
127
  }
119
128
  ),
120
129
  e
121
130
  ] });
122
- }, w = (s) => {
123
- const t = h(m).Div ?? ye;
124
- return /* @__PURE__ */ r(t, { ...s });
125
- }, gs = (s) => s === "top" ? S.topContent : s === "bottom" ? S.bottomContent : S.topContent, kt = (s) => {
131
+ }, kt = (s) => {
126
132
  const { children: t, className: e } = s, i = {
127
133
  ContextMenu: {
128
- wrapWith: /* @__PURE__ */ r(ms, { className: S.action }),
129
- placement: "bottom end",
130
- tunnelId: "button"
134
+ tunnelId: "button",
135
+ wrapWith: /* @__PURE__ */ r(fs, { className: S.action })
131
136
  },
132
137
  Button: {
133
- className: S.action,
134
138
  tunnelId: "button"
135
139
  },
136
140
  ActionGroup: {
137
- className: S.action,
138
- ignoreBreakpoint: !0,
139
141
  tunnelId: "button",
140
142
  Button: {
141
143
  tunnelId: null
142
144
  }
143
145
  },
144
- Content: {
145
- className: Q((a) => gs(a.slot))
146
- },
147
146
  Avatar: {
148
- className: S.avatar,
149
147
  tunnelId: "title"
150
148
  },
151
149
  Heading: {
152
- className: S.heading,
153
- level: 5,
154
150
  tunnelId: "title"
155
151
  },
156
152
  Text: {
157
- className: S.text,
158
153
  tunnelId: "text"
154
+ }
155
+ }, n = E(S.view, e);
156
+ return /* @__PURE__ */ r(j, { props: i, mergeInParentContext: !0, children: /* @__PURE__ */ r(Ct, { children: /* @__PURE__ */ r(
157
+ ps,
158
+ {
159
+ title: /* @__PURE__ */ r(Q, { children: /* @__PURE__ */ r($, { id: "title" }) }),
160
+ button: /* @__PURE__ */ r(Q, { children: /* @__PURE__ */ r($, { id: "button" }) }),
161
+ subTitle: /* @__PURE__ */ r(Q, { children: /* @__PURE__ */ r($, { id: "text" }) }),
162
+ className: n,
163
+ children: t
164
+ }
165
+ ) }) });
166
+ }, bs = (s) => s === "top" ? S.topContent : s === "bottom" ? S.bottomContent : S.topContent, Ss = (s) => {
167
+ const { children: t, className: e, title: i, subTitle: n, button: a } = s, l = {
168
+ ContextMenu: {
169
+ placement: "bottom end"
170
+ },
171
+ Button: {
172
+ className: S.action
173
+ },
174
+ ActionGroup: {
175
+ className: S.action,
176
+ ignoreBreakpoint: !0
177
+ },
178
+ Content: {
179
+ className: _((d) => bs(d.slot))
180
+ },
181
+ Avatar: {
182
+ className: S.avatar
183
+ },
184
+ Heading: {
185
+ className: S.heading,
186
+ level: 5
187
+ },
188
+ Text: {
189
+ className: S.text
159
190
  },
160
191
  Link: {
161
192
  unstyled: !0
162
193
  }
163
- }, n = E(S.view, e);
164
- return /* @__PURE__ */ r(w, { className: n, children: /* @__PURE__ */ r(tt, { props: i, mergeInParentContext: !0, children: /* @__PURE__ */ u(It, { children: [
165
- /* @__PURE__ */ u(w, { className: S.content, children: [
194
+ };
195
+ return /* @__PURE__ */ r(j, { props: l, mergeInParentContext: !0, children: /* @__PURE__ */ u("div", { className: e, children: [
196
+ /* @__PURE__ */ u("div", { className: S.content, children: [
166
197
  t,
167
- /* @__PURE__ */ u(w, { className: S.title, children: [
168
- /* @__PURE__ */ r($, { id: "title" }),
169
- /* @__PURE__ */ r(w, { className: S.subTitle, children: /* @__PURE__ */ r($, { id: "text" }) })
198
+ /* @__PURE__ */ u("div", { className: S.title, children: [
199
+ i,
200
+ /* @__PURE__ */ r("div", { className: S.subTitle, children: n })
170
201
  ] })
171
202
  ] }),
172
- /* @__PURE__ */ r($, { id: "button" })
173
- ] }) }) });
174
- }, ps = "flow--list--list-summary", fs = {
175
- listSummary: ps
176
- }, Kn = Vt("ListSummary", (s) => {
177
- const { children: t } = s;
178
- return /* @__PURE__ */ r("header", { className: fs.listSummary, ...s, children: t });
179
- }), Dt = () => {
180
- const s = P(v);
181
- return /* @__PURE__ */ u(Te, { children: [
182
- /* @__PURE__ */ r(ve, {}),
183
- /* @__PURE__ */ r(xt, { children: s.format("list.noResult.heading") }),
184
- /* @__PURE__ */ r(Mt, { children: s.format("list.noResult.text") })
203
+ a
204
+ ] }) });
205
+ }, Dt = () => {
206
+ const s = P(T);
207
+ return /* @__PURE__ */ u(Re, { children: [
208
+ /* @__PURE__ */ r($e, {}),
209
+ /* @__PURE__ */ r(Bt, { children: s.format("list.noResult.heading") }),
210
+ /* @__PURE__ */ r(xt, { children: s.format("list.noResult.text") })
185
211
  ] });
186
- }, bs = (s) => /* @__PURE__ */ r(Ct.GridList, { ...s, renderEmptyState: () => /* @__PURE__ */ r(Dt, {}) }), Ss = "flow--list--items--item", ws = "flow--list--items--item--is-selected", ys = "flow--list--items--item--has-action", z = {
187
- item: Ss,
188
- isSelected: ws,
189
- hasAction: ys
190
- }, Ts = (s) => {
212
+ }, ws = (s) => /* @__PURE__ */ r(Lt.GridList, { ...s, renderEmptyState: () => /* @__PURE__ */ r(Dt, {}) }), ys = "flow--list--items--item", Ts = "flow--list--items--item--is-selected", vs = "flow--list--items--item--has-action", z = {
213
+ item: ys,
214
+ isSelected: Ts,
215
+ hasAction: vs
216
+ }, Fs = (s) => {
191
217
  const { hasAction: t, ...e } = s;
192
218
  return /* @__PURE__ */ r(
193
- Ct.GridListItem,
219
+ Lt.GridListItem,
194
220
  {
195
221
  ...e,
196
222
  className: (i) => E(
@@ -200,32 +226,29 @@ const is = "flow--list--items--item--view", ns = "flow--list--items--item--view-
200
226
  )
201
227
  }
202
228
  );
203
- }, Et = le({}), T = () => h(Et).list, vs = () => T().loader.getLoaderInvocationHooks().map((t, e) => /* @__PURE__ */ r(Fe, { children: () => {
229
+ }, Et = le({}), y = () => h(Et).list, Is = () => y().loader.getLoaderInvocationHooks().map((t, e) => /* @__PURE__ */ r(Ue, { children: () => {
204
230
  t();
205
- } }, e)), st = (s) => {
206
- const t = h(m).MenuItem ?? Ie;
231
+ } }, e)), nt = (s) => {
232
+ const t = h(m).MenuItem ?? Ke;
207
233
  return /* @__PURE__ */ r(t, { ...s });
208
- }, Fs = (s) => {
234
+ }, Vs = (s) => {
209
235
  const { sorting: t } = s;
210
- return /* @__PURE__ */ r(st, { id: t.id, children: t.name });
236
+ return /* @__PURE__ */ r(nt, { id: t.id, children: t.name });
211
237
  }, O = (s) => {
212
238
  const { children: t, locales: e, variables: i } = s;
213
239
  return P(e).format(t, i);
214
240
  }, N = (s) => {
215
- const t = h(m).Text ?? Mt;
216
- return /* @__PURE__ */ r(t, { ...s });
217
- }, it = (s) => {
218
- const t = h(m).ContextMenu ?? we;
241
+ const t = h(m).Text ?? xt;
219
242
  return /* @__PURE__ */ r(t, { ...s });
220
- }, Is = () => {
221
- const s = T(), t = s.visibleSorting.map((n) => /* @__PURE__ */ r(Fs, { sorting: n }, n.id));
243
+ }, Cs = () => {
244
+ const s = y(), t = s.visibleSorting.map((n) => /* @__PURE__ */ r(Vs, { sorting: n }, n.id));
222
245
  if (t.length === 0)
223
246
  return null;
224
- const e = s.visibleSorting.find((n) => n.isSorted()), i = /* @__PURE__ */ r(N, { children: e ? /* @__PURE__ */ r(Tt, { children: e.name ?? e.property }) : /* @__PURE__ */ r(O, { locales: v, children: "list.sorting" }) });
225
- return /* @__PURE__ */ u(At, { children: [
247
+ const e = s.visibleSorting.find((n) => n.isSorted()), i = /* @__PURE__ */ r(N, { children: e ? /* @__PURE__ */ r(vt, { children: e.name ?? e.property }) : /* @__PURE__ */ r(O, { locales: T, children: "list.sorting" }) });
248
+ return /* @__PURE__ */ u(W, { children: [
226
249
  /* @__PURE__ */ u(C, { variant: "outline", color: "secondary", children: [
227
250
  i,
228
- /* @__PURE__ */ r(Ve, {})
251
+ /* @__PURE__ */ r(Te, {})
229
252
  ] }),
230
253
  /* @__PURE__ */ r(
231
254
  it,
@@ -239,53 +262,56 @@ const is = "flow--list--items--item--view", ns = "flow--list--items--item--view-
239
262
  }
240
263
  )
241
264
  ] });
242
- }, Vs = (s) => {
243
- const { filter: t } = s, { values: e, mode: i, name: n, property: a } = t, c = e.map((l) => /* @__PURE__ */ r(
244
- st,
265
+ }, Ls = (s) => {
266
+ const { filter: t } = s, { values: e, mode: i, name: n, property: a } = t, l = e.map((c) => /* @__PURE__ */ r(
267
+ nt,
245
268
  {
246
- id: l.id,
269
+ id: c.id,
247
270
  onAction: () => {
248
- l.toggle();
271
+ c.toggle();
249
272
  },
250
- children: l.render()
273
+ children: c.render()
251
274
  },
252
- l.id
253
- )), d = e.filter((l) => l.isActive).map((l) => l.id);
254
- return /* @__PURE__ */ u(et, { children: [
275
+ c.id
276
+ )), d = e.filter((c) => c.isActive).map((c) => c.id);
277
+ return /* @__PURE__ */ u(W, { children: [
255
278
  /* @__PURE__ */ u(C, { variant: "outline", color: "secondary", children: [
256
279
  /* @__PURE__ */ r(N, { children: n ?? a }),
257
- /* @__PURE__ */ r(Ce, {})
280
+ /* @__PURE__ */ r(ve, {})
258
281
  ] }),
259
282
  /* @__PURE__ */ r(
260
283
  it,
261
284
  {
262
285
  selectionMode: i === "one" ? "single" : "multiple",
263
286
  selectedKeys: d,
264
- children: c
287
+ children: l
265
288
  }
266
289
  )
267
290
  ] });
268
- }, Cs = "flow--list--header", Ls = "flow--list--header--picker-list-and-search", Ps = "flow--list--header--picker-list", As = "flow--list--header--search-and-actions", xs = "flow--list--header--search-field", k = {
269
- header: Cs,
270
- pickerListAndSearch: Ls,
271
- pickerList: Ps,
272
- searchAndActions: As,
273
- searchField: xs
274
- }, Ms = "flow--list--header--active-filters", Bs = "flow--list--header--active-filters--clear-button", ks = {
275
- activeFilters: Ms,
276
- clearButton: Bs
277
- }, J = (s) => {
278
- const t = h(m).Tooltip ?? Me;
291
+ }, Ps = "flow--list--header", As = "flow--list--header--picker-list-and-search", xs = "flow--list--header--picker-list", Bs = "flow--list--header--search-and-actions", Ms = "flow--list--header--search-field", k = {
292
+ header: Ps,
293
+ pickerListAndSearch: As,
294
+ pickerList: xs,
295
+ searchAndActions: Bs,
296
+ searchField: Ms
297
+ }, ks = "flow--list--header--active-filters", Ds = "flow--list--header--active-filters--clear-button", Es = {
298
+ activeFilters: ks,
299
+ clearButton: Ds
300
+ }, X = (s) => {
301
+ const t = h(m).Tooltip ?? we;
302
+ return /* @__PURE__ */ r(t, { ...s });
303
+ }, I = (s) => {
304
+ const t = h(m).Div ?? Ce;
279
305
  return /* @__PURE__ */ r(t, { ...s });
280
- }, Ds = (s) => {
281
- const t = h(m).Badge ?? ke;
306
+ }, Ns = (s) => {
307
+ const t = h(m).Badge ?? Le;
282
308
  return /* @__PURE__ */ r(t, { ...s });
283
- }, Es = (s) => {
284
- const t = h(m).TooltipTrigger ?? X;
309
+ }, Rs = (s) => {
310
+ const t = h(m).TooltipTrigger ?? tt;
285
311
  return /* @__PURE__ */ r(t, { ...s });
286
- }, Ns = xe(() => {
287
- const s = T(), t = P(v), i = s.filters.flatMap((l) => l.values).filter((l) => l.isActive).map((l) => /* @__PURE__ */ r(Ds, { onClose: () => l.deactivate(), children: /* @__PURE__ */ r(N, { children: l.render() }) }, l.id)), n = s.filters.filter((l) => l.hasChanged()).length > 0, a = s.supportsSettingsStorage && n && /* @__PURE__ */ u(Es, { children: [
288
- /* @__PURE__ */ r(J, { children: /* @__PURE__ */ r(O, { locales: v, children: "list.filters.store" }) }),
312
+ }, $s = Se(() => {
313
+ const s = y(), t = P(T), i = s.filters.flatMap((c) => c.values).filter((c) => c.isActive).map((c) => /* @__PURE__ */ r(Ns, { onClose: () => c.deactivate(), children: /* @__PURE__ */ r(N, { children: c.render() }) }, c.id)), n = s.filters.filter((c) => c.hasChanged()).length > 0, a = s.supportsSettingsStorage && n && /* @__PURE__ */ u(Rs, { children: [
314
+ /* @__PURE__ */ r(X, { children: /* @__PURE__ */ r(O, { locales: T, children: "list.filters.store" }) }),
289
315
  /* @__PURE__ */ r(
290
316
  C,
291
317
  {
@@ -294,11 +320,11 @@ const is = "flow--list--items--item--view", ns = "flow--list--items--item--view-
294
320
  color: "secondary",
295
321
  onPress: () => s.storeFilterDefaultSettings(),
296
322
  "aria-label": t.format("list.filters.store"),
297
- children: /* @__PURE__ */ r(Le, {})
323
+ children: /* @__PURE__ */ r(Fe, {})
298
324
  }
299
325
  )
300
- ] }), c = n ? /* @__PURE__ */ u(X, { children: [
301
- /* @__PURE__ */ r(J, { children: /* @__PURE__ */ r(O, { locales: v, children: "list.filters.reset" }) }),
326
+ ] }), l = n ? /* @__PURE__ */ u(tt, { children: [
327
+ /* @__PURE__ */ r(X, { children: /* @__PURE__ */ r(O, { locales: T, children: "list.filters.reset" }) }),
302
328
  /* @__PURE__ */ r(
303
329
  C,
304
330
  {
@@ -307,11 +333,11 @@ const is = "flow--list--items--item--view", ns = "flow--list--items--item--view-
307
333
  color: "secondary",
308
334
  onPress: () => s.resetFilters(),
309
335
  "aria-label": t.format("list.filters.reset"),
310
- children: /* @__PURE__ */ r(Pe, {})
336
+ children: /* @__PURE__ */ r(Ie, {})
311
337
  }
312
338
  )
313
- ] }) : void 0, d = i.length > 0 ? /* @__PURE__ */ u(X, { children: [
314
- /* @__PURE__ */ r(J, { children: /* @__PURE__ */ r(O, { locales: v, children: "list.filters.clear" }) }),
339
+ ] }) : void 0, d = i.length > 0 ? /* @__PURE__ */ u(tt, { children: [
340
+ /* @__PURE__ */ r(X, { children: /* @__PURE__ */ r(O, { locales: T, children: "list.filters.clear" }) }),
315
341
  /* @__PURE__ */ r(
316
342
  C,
317
343
  {
@@ -319,64 +345,64 @@ const is = "flow--list--items--item--view", ns = "flow--list--items--item--view-
319
345
  variant: "plain",
320
346
  color: "secondary",
321
347
  onPress: () => s.clearFilters(),
322
- children: /* @__PURE__ */ r(Be, {})
348
+ children: /* @__PURE__ */ r(ye, {})
323
349
  }
324
350
  )
325
351
  ] }) : void 0;
326
- return i.length === 0 && !a && !c ? null : /* @__PURE__ */ u(w, { className: ks.activeFilters, children: [
352
+ return i.length === 0 && !a && !l ? null : /* @__PURE__ */ u(I, { className: Es.activeFilters, children: [
327
353
  i,
328
354
  a,
329
- c,
355
+ l,
330
356
  d
331
357
  ] });
332
- }), Rs = (s) => {
333
- const t = h(m).SearchField ?? Ee;
358
+ }), Us = (s) => {
359
+ const t = h(m).SearchField ?? Oe;
334
360
  return /* @__PURE__ */ r(t, { ...s });
335
- }, $s = 800, Us = (s) => {
336
- const { className: t, onChange: e, value: i, autoSubmit: n, ...a } = s, [c, d] = q(i ?? ""), l = () => {
337
- c.trim() === "" ? e(void 0) : e(c);
361
+ }, Ks = 800, zs = (s) => {
362
+ const { className: t, onChange: e, value: i, autoSubmit: n, ...a } = s, [l, d] = q(i ?? ""), c = () => {
363
+ l.trim() === "" ? e(void 0) : e(l);
338
364
  };
339
365
  D(() => {
340
366
  if (n) {
341
- const p = setTimeout(() => l(), $s);
367
+ const p = setTimeout(() => c(), Ks);
342
368
  return () => clearTimeout(p);
343
369
  }
344
- }, [c, n]), De(i, () => {
370
+ }, [l, n]), ze(i, () => {
345
371
  d(i ?? "");
346
- }, [c]);
372
+ }, [l]);
347
373
  const g = () => {
348
374
  e(void 0), d("");
349
375
  };
350
376
  return /* @__PURE__ */ r(
351
- Rs,
377
+ Us,
352
378
  {
353
379
  className: t,
354
- value: c,
380
+ value: l,
355
381
  onKeyUp: (p) => {
356
- p.key === "Enter" ? l() : p.key === "Escape" && g();
382
+ p.key === "Enter" ? c() : p.key === "Escape" && g();
357
383
  },
358
384
  onChange: (p) => d(p),
359
385
  onClear: g,
360
386
  ...a
361
387
  }
362
388
  );
363
- }, Ks = (s) => {
364
- const { className: t, search: e } = s, i = e.render ?? Us;
365
- return vt(i, {
389
+ }, Os = (s) => {
390
+ const { className: t, search: e } = s, i = e.render ?? zs;
391
+ return Ft(i, {
366
392
  className: t,
367
393
  value: e.value,
368
394
  onChange: e.setValue.bind(e),
369
395
  ...e.textFieldProps
370
396
  });
371
- }, zs = (s) => {
372
- const t = h(m).Section ?? Ne;
397
+ }, Hs = (s) => {
398
+ const t = h(m).Section ?? He;
373
399
  return /* @__PURE__ */ r(t, { ...s });
374
400
  }, Nt = (s) => {
375
- const t = h(m).Heading ?? xt;
401
+ const t = h(m).Heading ?? Bt;
376
402
  return /* @__PURE__ */ r(t, { ...s });
377
- }, Os = () => {
378
- const s = P(v), t = T(), e = t.viewMode, i = [];
379
- return t.itemView && i.push("list"), t.table && i.push("table"), i.length <= 1 ? null : /* @__PURE__ */ u(et, { children: [
403
+ }, Gs = () => {
404
+ const s = P(T), t = y(), e = t.viewMode, i = [];
405
+ return t.itemView && i.push("list"), t.table && i.push("table"), i.length <= 1 ? null : /* @__PURE__ */ u(W, { children: [
380
406
  /* @__PURE__ */ u(
381
407
  C,
382
408
  {
@@ -385,14 +411,14 @@ const is = "flow--list--items--item--view", ns = "flow--list--items--item--view-
385
411
  "aria-label": s.format("list.settings"),
386
412
  children: [
387
413
  /* @__PURE__ */ r(N, { children: s.format(`list.settings.viewMode.${e}`) }),
388
- /* @__PURE__ */ r(Ae, {})
414
+ /* @__PURE__ */ r(Ve, {})
389
415
  ]
390
416
  }
391
417
  ),
392
- /* @__PURE__ */ r(it, { selectionMode: "single", selectedKeys: [e], children: /* @__PURE__ */ u(zs, { children: [
418
+ /* @__PURE__ */ r(it, { selectionMode: "single", selectedKeys: [e], children: /* @__PURE__ */ u(Hs, { children: [
393
419
  /* @__PURE__ */ r(Nt, { children: s.format("list.settings.viewMode") }),
394
420
  i.map((n) => /* @__PURE__ */ r(
395
- st,
421
+ nt,
396
422
  {
397
423
  id: n,
398
424
  onAction: () => {
@@ -404,29 +430,29 @@ const is = "flow--list--items--item--view", ns = "flow--list--items--item--view-
404
430
  ))
405
431
  ] }) })
406
432
  ] });
407
- }, Hs = (s) => {
408
- const { className: t, hasActionGroup: e } = s, i = T();
433
+ }, qs = (s) => {
434
+ const { className: t, hasActionGroup: e } = s, i = y();
409
435
  if (i.filters.length === 0 && i.visibleSorting.length === 0 && !i.search && !i.table && !e)
410
436
  return null;
411
- const n = i.filters.map((a) => /* @__PURE__ */ r(Vs, { filter: a }, a.property));
412
- return /* @__PURE__ */ u(w, { className: E(t, k.header), children: [
413
- /* @__PURE__ */ u(w, { className: k.pickerListAndSearch, children: [
414
- /* @__PURE__ */ u(w, { className: k.pickerList, children: [
415
- /* @__PURE__ */ r(Os, {}),
416
- /* @__PURE__ */ r(Is, {}),
437
+ const n = i.filters.map((a) => /* @__PURE__ */ r(Ls, { filter: a }, a.property));
438
+ return /* @__PURE__ */ u(I, { className: E(t, k.header), children: [
439
+ /* @__PURE__ */ u(I, { className: k.pickerListAndSearch, children: [
440
+ /* @__PURE__ */ u(I, { className: k.pickerList, children: [
441
+ /* @__PURE__ */ r(Gs, {}),
442
+ /* @__PURE__ */ r(Cs, {}),
417
443
  n
418
444
  ] }),
419
- /* @__PURE__ */ u(w, { className: k.searchAndActions, children: [
420
- i.search && /* @__PURE__ */ r(Ks, { className: k.searchField, search: i.search }),
445
+ /* @__PURE__ */ u(I, { className: k.searchAndActions, children: [
446
+ i.search && /* @__PURE__ */ r(Os, { className: k.searchField, search: i.search }),
421
447
  /* @__PURE__ */ r($, { id: "actions" })
422
448
  ] })
423
449
  ] }),
424
- /* @__PURE__ */ r(Ns, {})
450
+ /* @__PURE__ */ r($s, {})
425
451
  ] });
426
- }, Gs = "flow--list", qs = {
427
- list: Gs
452
+ }, js = "flow--list", Ws = {
453
+ list: js
428
454
  };
429
- let js = class Rt {
455
+ let Js = class Rt {
430
456
  constructor(t, e, i) {
431
457
  o(this, "id");
432
458
  o(this, "data");
@@ -437,16 +463,16 @@ let js = class Rt {
437
463
  return new Rt(t, e.id, e.original);
438
464
  }
439
465
  };
440
- class Ws {
466
+ class Ys {
441
467
  constructor(t) {
442
468
  o(this, "list");
443
469
  this.list = t;
444
470
  }
445
471
  get entries() {
446
- return this.list.reactTable.table.getRowModel().rows.map((t) => js.fromRow(this, t));
472
+ return this.list.reactTable.table.getRowModel().rows.map((t) => Js.fromRow(this, t));
447
473
  }
448
474
  }
449
- class Js {
475
+ class Qs {
450
476
  constructor(t, e = {}) {
451
477
  o(this, "batchSize");
452
478
  o(this, "list");
@@ -493,7 +519,7 @@ class Js {
493
519
  }
494
520
  }
495
521
  }
496
- const Ys = "$";
522
+ const Xs = "$";
497
523
  class L {
498
524
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
499
525
  constructor(t, e) {
@@ -501,7 +527,7 @@ class L {
501
527
  o(this, "value");
502
528
  o(this, "id");
503
529
  var i;
504
- this.filter = t, typeof e == "string" && e.startsWith("FilterValueId@@") ? (this.value = (i = t.values.find((n) => n.id === e)) == null ? void 0 : i.value, this.id = e) : (this.value = e, this.id = `FilterValueId@@${this.filter.property}@@${Pt(this.value)}`);
530
+ this.filter = t, typeof e == "string" && e.startsWith("FilterValueId@@") ? (this.value = (i = t.values.find((n) => n.id === e)) == null ? void 0 : i.value, this.id = e) : (this.value = e, this.id = `FilterValueId@@${this.filter.property}@@${At(this.value)}`);
505
531
  }
506
532
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
507
533
  static create(t, e) {
@@ -523,7 +549,7 @@ class L {
523
549
  this.filter.deactivateValue(this);
524
550
  }
525
551
  }
526
- const Y = (s) => Array.isArray(s) ? s : [s], Qs = (s, t) => s === t, Xs = (s) => String(s);
552
+ const Z = (s) => Array.isArray(s) ? s : [s], Zs = (s, t) => s === t, _s = (s) => String(s);
527
553
  class H {
528
554
  constructor(t, e) {
529
555
  o(this, "_values");
@@ -537,7 +563,7 @@ class H {
537
563
  o(this, "onFilterUpdateCallbacks", /* @__PURE__ */ new Set());
538
564
  o(this, "defaultSelectedValues");
539
565
  var i;
540
- this.list = t, this.property = e.property, this.mode = e.mode ?? "one", this._values = (i = e.values) == null ? void 0 : i.map((n) => L.create(this, n)), this.matcher = e.matcher ?? Qs, this.renderItem = e.renderItem ?? Xs, this.name = e.name, this.defaultSelectedValues = e.defaultSelected;
566
+ this.list = t, this.property = e.property, this.mode = e.mode ?? "one", this._values = (i = e.values) == null ? void 0 : i.map((n) => L.create(this, n)), this.matcher = e.matcher ?? Zs, this.renderItem = e.renderItem ?? _s, this.name = e.name, this.defaultSelectedValues = e.defaultSelected;
541
567
  }
542
568
  getStoredSelectedIds() {
543
569
  var t;
@@ -558,7 +584,7 @@ class H {
558
584
  }
559
585
  getReactTableFilterFn() {
560
586
  return (t, e, i) => {
561
- const n = this.property, a = n.startsWith(Ys) ? t.original : fe(t.original, n);
587
+ const n = this.property, a = n.startsWith(Xs) ? t.original : fe(t.original, n);
562
588
  return this.checkFilterMatches(a, i);
563
589
  };
564
590
  }
@@ -567,9 +593,9 @@ class H {
567
593
  return !0;
568
594
  const i = (a) => this.matcher(a.value, t), n = (a) => L.create(this, a);
569
595
  if (this.mode === "all")
570
- return Y(e).map(n).every(i);
596
+ return Z(e).map(n).every(i);
571
597
  if (this.mode === "some") {
572
- const a = Y(e);
598
+ const a = Z(e);
573
599
  return a.length === 0 || a.map(n).some(i);
574
600
  } else if (this.mode === "one")
575
601
  return i(n(e));
@@ -606,7 +632,7 @@ class H {
606
632
  }
607
633
  getArrayValue() {
608
634
  const t = this.getValue();
609
- return t === null ? [] : Y(t).map((e) => L.create(this, e));
635
+ return t === null ? [] : Z(t).map((e) => L.create(this, e));
610
636
  }
611
637
  isValueActive(t) {
612
638
  return this.getArrayValue().some((e) => e.equals(t));
@@ -649,7 +675,7 @@ class H {
649
675
  }
650
676
  }
651
677
  o(H, "settingsStorageSchema", K.record(K.array(K.string())).optional());
652
- class Zs {
678
+ class ti {
653
679
  constructor(t, e) {
654
680
  o(this, "list");
655
681
  o(this, "property");
@@ -683,7 +709,7 @@ class Zs {
683
709
  return `${this.getTableColumn().id}:${this.direction}`;
684
710
  }
685
711
  }
686
- class nt {
712
+ class rt {
687
713
  constructor(t, e, i = {}) {
688
714
  o(this, "list");
689
715
  o(this, "table");
@@ -692,16 +718,16 @@ class nt {
692
718
  this.list = t;
693
719
  const n = this.list.sorting.filter(
694
720
  (d) => d.defaultEnabled !== !1
695
- ), [a, c] = q(
721
+ ), [a, l] = q(
696
722
  n.map((d) => d.getReactTableColumnSort())
697
723
  );
698
- this.sortingState = a, this.updateSortingState = c, this.table = this.useReactTable(e, i);
724
+ this.sortingState = a, this.updateSortingState = l, this.table = this.useReactTable(e, i);
699
725
  }
700
726
  static useNew(t, e, i = {}) {
701
- return new nt(t, e, i);
727
+ return new rt(t, e, i);
702
728
  }
703
729
  useReactTable(t, e = {}) {
704
- var c;
730
+ var l;
705
731
  const i = this.list.loader.useData(), n = {
706
732
  pagination: {
707
733
  pageSize: this.list.batches.batchSize
@@ -710,8 +736,8 @@ class nt {
710
736
  };
711
737
  for (const d of this.list.filters)
712
738
  d.updateInitialState(n);
713
- (c = this.list.search) == null || c.updateInitialState(n);
714
- const a = Re({
739
+ (l = this.list.search) == null || l.updateInitialState(n);
740
+ const a = Pe({
715
741
  data: i,
716
742
  state: {
717
743
  sorting: this.sortingState
@@ -719,11 +745,11 @@ class nt {
719
745
  getRowId: this.list.getItemId,
720
746
  initialState: n,
721
747
  columns: this.getTableColumnDefs(),
722
- getCoreRowModel: $e(),
723
- getSortedRowModel: Ue(),
724
- getFilteredRowModel: Ke(),
725
- getPaginationRowModel: ze(),
726
- getFacetedUniqueValues: Oe(),
748
+ getCoreRowModel: Ae(),
749
+ getSortedRowModel: xe(),
750
+ getFilteredRowModel: Be(),
751
+ getPaginationRowModel: Me(),
752
+ getFacetedUniqueValues: ke(),
727
753
  onSortingChange: (d) => {
728
754
  this.handleSortingStateUpdate(d);
729
755
  },
@@ -745,7 +771,7 @@ class nt {
745
771
  }
746
772
  getTableColumn(t) {
747
773
  const e = this.table.getColumn(t);
748
- return Lt(!!e, `Column #${t} is not defined`), e;
774
+ return Pt(!!e, `Column #${t} is not defined`), e;
749
775
  }
750
776
  getTableColumnDefs() {
751
777
  const t = /* @__PURE__ */ new Map(), e = (i) => {
@@ -769,26 +795,26 @@ class nt {
769
795
  }), Array.from(t.values());
770
796
  }
771
797
  }
772
- class rt {
798
+ class ot {
773
799
  constructor() {
774
800
  o(this, "dataBatches", []);
775
801
  o(this, "prevDataBatches", []);
776
802
  o(this, "batchLoadingStates", ["void"]);
777
- Se(this, {
803
+ be(this, {
778
804
  prevDataBatches: !1,
779
805
  useMergedData: !1,
780
806
  useIsLoading: !1,
781
- dataBatches: ft.shallow,
782
- batchLoadingStates: ft.shallow,
783
- mergedData: bt,
784
- isLoading: bt,
785
- reset: W.bound,
786
- setDataBatch: W.bound,
787
- setBatchLoadingState: W.bound
807
+ dataBatches: bt.shallow,
808
+ batchLoadingStates: bt.shallow,
809
+ mergedData: St,
810
+ isLoading: St,
811
+ reset: Y.bound,
812
+ setDataBatch: Y.bound,
813
+ setBatchLoadingState: Y.bound
788
814
  });
789
815
  }
790
816
  static useNew() {
791
- return Ft(new rt()).current;
817
+ return It(new ot()).current;
792
818
  }
793
819
  reset() {
794
820
  this.batchLoadingStates = [], this.dataBatches = [];
@@ -803,20 +829,20 @@ class rt {
803
829
  return (this.dataBatches.length === 0 ? this.prevDataBatches : this.dataBatches).flatMap((e) => e);
804
830
  }
805
831
  useMergedData() {
806
- return wt(() => this.mergedData);
832
+ return yt(() => this.mergedData);
807
833
  }
808
834
  get isLoading() {
809
835
  return this.batchLoadingStates.some((t) => t === "loading" || t === "void");
810
836
  }
811
837
  useIsLoading() {
812
- return wt(() => this.isLoading);
838
+ return yt(() => this.isLoading);
813
839
  }
814
840
  isBatchLoaded(t) {
815
841
  return t in this.dataBatches;
816
842
  }
817
843
  }
818
- const _s = [];
819
- class ot {
844
+ const ei = [];
845
+ class at {
820
846
  constructor(t, e = {}) {
821
847
  o(this, "list");
822
848
  o(this, "dataSource");
@@ -827,12 +853,12 @@ class ot {
827
853
  o(this, "staticDataProperties", []);
828
854
  var d;
829
855
  const { source: i } = e;
830
- this.dataSource = i ?? { staticData: _s };
831
- const n = "manualPagination" in this.dataSource ? this.dataSource.manualPagination : void 0, a = "manualFiltering" in this.dataSource ? this.dataSource.manualFiltering : void 0, c = "manualSorting" in this.dataSource ? this.dataSource.manualSorting : void 0;
832
- this.list = t, this.loaderState = rt.useNew(), this.manualPagination = n ?? !1, this.manualFiltering = a ?? this.manualPagination, this.manualSorting = c ?? this.manualPagination, this.list.filters.forEach((l) => l.onFilterUpdated(() => this.reset())), (d = this.list.search) == null || d.onUpdated(() => this.reset()), this.initStaticDataProperties();
856
+ this.dataSource = i ?? { staticData: ei };
857
+ const n = "manualPagination" in this.dataSource ? this.dataSource.manualPagination : void 0, a = "manualFiltering" in this.dataSource ? this.dataSource.manualFiltering : void 0, l = "manualSorting" in this.dataSource ? this.dataSource.manualSorting : void 0;
858
+ this.list = t, this.loaderState = ot.useNew(), this.manualPagination = n ?? !1, this.manualFiltering = a ?? this.manualPagination, this.manualSorting = l ?? this.manualPagination, this.list.filters.forEach((c) => c.onFilterUpdated(() => this.reset())), (d = this.list.search) == null || d.onUpdated(() => this.reset()), this.initStaticDataProperties();
833
859
  }
834
860
  static useNew(t, e = {}) {
835
- return new ot(t, e);
861
+ return new at(t, e);
836
862
  }
837
863
  initStaticDataProperties() {
838
864
  const t = (e) => {
@@ -876,8 +902,8 @@ class ot {
876
902
  }
877
903
  useObserveBatchData(t, e) {
878
904
  const i = (n) => {
879
- const { data: a, itemTotalCount: c } = n;
880
- this.loaderState.setDataBatch(e, a), c !== void 0 && this.list.batches.updateItemTotalCount(c);
905
+ const { data: a, itemTotalCount: l } = n;
906
+ this.loaderState.setDataBatch(e, a), l !== void 0 && this.list.batches.updateItemTotalCount(l);
881
907
  };
882
908
  D(() => (t.value.value.isSet && i(t.value.value.value), t.value.observe((n) => {
883
909
  n.isSet && i(n.value);
@@ -907,7 +933,7 @@ class ot {
907
933
  getBatchDataAsyncResource(t) {
908
934
  const e = this.dataSource, i = this.getDataLoaderOptions(t);
909
935
  if ("staticData" in e)
910
- return St(
936
+ return wt(
911
937
  async (n) => ({
912
938
  data: n,
913
939
  itemTotalCount: n.length
@@ -915,9 +941,9 @@ class ot {
915
941
  [e.staticData]
916
942
  );
917
943
  if ("asyncLoader" in e) {
918
- const n = e.asyncLoader, a = e.dependencies, c = a ? Pt(a).toString() : void 0;
919
- return St(n, [i], {
920
- loaderId: c
944
+ const n = e.asyncLoader, a = e.dependencies, l = a ? At(a).toString() : void 0;
945
+ return wt(n, [i], {
946
+ loaderId: l
921
947
  });
922
948
  }
923
949
  if ("asyncResourceFactory" in e) {
@@ -927,7 +953,7 @@ class ot {
927
953
  throw new Error("Unknown data source");
928
954
  }
929
955
  }
930
- class ti {
956
+ class si {
931
957
  constructor(t, e) {
932
958
  o(this, "list");
933
959
  o(this, "render");
@@ -966,29 +992,29 @@ const G = class G {
966
992
  o(this, "defaultExpanded");
967
993
  o(this, "fallback");
968
994
  o(this, "renderFn");
969
- const { fallback: i, textValue: n, href: a, defaultExpanded: c, renderFn: d } = e;
970
- this.list = t, this.textValue = n, this.renderFn = d, this.href = a, this.defaultExpanded = c, this.fallback = i;
995
+ const { fallback: i, textValue: n, href: a, defaultExpanded: l, renderFn: d } = e;
996
+ this.list = t, this.textValue = n, this.renderFn = d, this.href = a, this.defaultExpanded = l, this.fallback = i;
971
997
  }
972
998
  render(t) {
973
999
  return (this.renderFn ?? G.fallbackRenderItemFn)(t, this.list);
974
1000
  }
975
1001
  };
976
- o(G, "fallbackRenderItemFn", (t) => vt("pre", void 0, JSON.stringify(t)));
977
- let Z = G, ei = class {
1002
+ o(G, "fallbackRenderItemFn", (t) => Ft("pre", void 0, JSON.stringify(t)));
1003
+ let et = G, ii = class {
978
1004
  constructor(t, e = {}) {
979
1005
  o(this, "tableHeader");
980
1006
  o(this, "componentProps");
981
1007
  this.tableHeader = t, this.componentProps = e;
982
1008
  }
983
- }, si = class {
1009
+ }, ni = class {
984
1010
  constructor(t, e = {}) {
985
1011
  o(this, "table");
986
1012
  o(this, "componentProps");
987
1013
  o(this, "columns");
988
1014
  const { columns: i = [], ...n } = e;
989
- this.table = t, this.columns = i.map((a) => new ei(this, a)), this.componentProps = n;
1015
+ this.table = t, this.columns = i.map((a) => new ii(this, a)), this.componentProps = n;
990
1016
  }
991
- }, ii = class {
1017
+ }, ri = class {
992
1018
  constructor(t, e = {}) {
993
1019
  o(this, "row");
994
1020
  o(this, "renderFn");
@@ -996,34 +1022,34 @@ let Z = G, ei = class {
996
1022
  const { renderFn: i, ...n } = e;
997
1023
  this.row = t, this.renderFn = i, this.componentProps = n;
998
1024
  }
999
- }, ni = class {
1025
+ }, oi = class {
1000
1026
  constructor(t, e = {}) {
1001
1027
  o(this, "tableBody");
1002
1028
  o(this, "cells");
1003
1029
  o(this, "componentProps");
1004
1030
  const { cells: i = [], ...n } = e;
1005
- this.tableBody = t, this.cells = i.map((a) => new ii(this, a)), this.componentProps = n;
1031
+ this.tableBody = t, this.cells = i.map((a) => new ri(this, a)), this.componentProps = n;
1006
1032
  }
1007
- }, ri = class {
1033
+ }, ai = class {
1008
1034
  constructor(t, e = {}) {
1009
1035
  o(this, "table");
1010
1036
  o(this, "componentProps");
1011
1037
  o(this, "row");
1012
1038
  const { row: i, ...n } = e;
1013
- this.table = t, this.row = new ni(this, i), this.componentProps = n;
1039
+ this.table = t, this.row = new oi(this, i), this.componentProps = n;
1014
1040
  }
1015
- }, oi = class {
1041
+ }, li = class {
1016
1042
  constructor(t, e = {}) {
1017
1043
  o(this, "list");
1018
1044
  o(this, "header");
1019
1045
  o(this, "body");
1020
1046
  o(this, "componentProps");
1021
1047
  const { header: i, body: n, ...a } = e;
1022
- this.list = t, this.header = new si(this, i), this.body = new ri(this, n), this.componentProps = a;
1048
+ this.list = t, this.header = new ni(this, i), this.body = new ai(this, n), this.componentProps = a;
1023
1049
  }
1024
1050
  };
1025
1051
  var V;
1026
- let ai = (V = class {
1052
+ let ci = (V = class {
1027
1053
  constructor(t) {
1028
1054
  o(this, "filters");
1029
1055
  o(this, "itemView");
@@ -1050,27 +1076,27 @@ let ai = (V = class {
1050
1076
  itemView: i,
1051
1077
  table: n,
1052
1078
  filters: a = [],
1053
- sorting: c = [],
1079
+ sorting: l = [],
1054
1080
  batchesController: d,
1055
- onChange: l,
1081
+ onChange: c,
1056
1082
  loader: g,
1057
1083
  search: f,
1058
1084
  onAction: p,
1059
1085
  getItemId: A,
1060
1086
  defaultViewMode: x,
1061
- accordion: M = !1,
1062
- ...y
1087
+ accordion: B = !1,
1088
+ ...w
1063
1089
  } = t;
1064
- this.settingsStore = He(), this.settingStorageKey = e, this.filterSettingsStorageKey = e ? `${e}.activeFilters` : void 0, this.viewModeStorageKey = e ? `${e}.viewMode` : void 0, this.supportsSettingsStorage = !!this.settingStorageKey, this.items = new Ws(this), this.filters = a.map((b) => new H(this, b)), this.sorting = c.map((b) => new Zs(this, b)), this.search = f ? new ti(this, f) : void 0, this.itemView = i ? new Z(this, i) : void 0, this.accordion = M, this.table = n ? new oi(this, n) : void 0, this.batches = new Js(this, d), this.componentProps = y, this.loader = ot.useNew(this, g), this.onAction = p, this.getItemId = A, this.reactTable = nt.useNew(this, l, {
1090
+ this.settingsStore = De(), 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 = a.map((b) => new H(this, b)), this.sorting = l.map((b) => new ti(this, b)), this.search = f ? new si(this, f) : void 0, this.itemView = i ? new et(this, i) : void 0, this.accordion = B, this.table = n ? new li(this, n) : void 0, this.batches = new Qs(this, d), this.componentProps = w, this.loader = at.useNew(this, g), this.onAction = p, this.getItemId = A, this.reactTable = rt.useNew(this, c, {
1065
1091
  manualFiltering: this.loader.manualFiltering,
1066
1092
  manualPagination: this.loader.manualPagination,
1067
1093
  manualSorting: this.loader.manualSorting
1068
1094
  });
1069
- const [B, j] = q(
1095
+ const [M, J] = q(
1070
1096
  x ?? this.getStoredViewModeDefaultSetting() ?? "list"
1071
1097
  );
1072
- this.viewMode = B, this.setViewMode = (b) => {
1073
- j(b), this.settingsStore && this.viewModeStorageKey && this.settingsStore.set(
1098
+ this.viewMode = M, this.setViewMode = (b) => {
1099
+ J(b), this.settingsStore && this.viewModeStorageKey && this.settingsStore.set(
1074
1100
  "List",
1075
1101
  this.viewModeStorageKey,
1076
1102
  V.viewModeSettingsStorageSchema,
@@ -1123,7 +1149,7 @@ let ai = (V = class {
1123
1149
  }
1124
1150
  getSorting(t) {
1125
1151
  const e = this.sorting.find((i) => i.id === t);
1126
- return Lt(!!e, `Could not get Sorting (ID: ${t})`), e;
1152
+ return Pt(!!e, `Could not get Sorting (ID: ${t})`), e;
1127
1153
  }
1128
1154
  clearSorting() {
1129
1155
  return this.sorting.forEach((t) => t.clear());
@@ -1138,18 +1164,18 @@ let ai = (V = class {
1138
1164
  return !this.loader.useIsLoading() && this.items.entries.length === 0;
1139
1165
  }
1140
1166
  }, o(V, "viewModeSettingsStorageSchema", K.enum(["list", "table"]).optional()), V);
1141
- const li = "flow--list--items", ci = "flow--list--items--is-loading", yt = {
1142
- items: li,
1143
- isLoading: ci
1144
- }, _ = (s) => {
1145
- const t = h(m).SkeletonText ?? Bt;
1167
+ const di = "flow--list--items", ui = "flow--list--items--is-loading", Tt = {
1168
+ items: di,
1169
+ isLoading: ui
1170
+ }, st = (s) => {
1171
+ const t = h(m).SkeletonText ?? Mt;
1146
1172
  return /* @__PURE__ */ r(t, { ...s });
1147
1173
  }, $t = () => /* @__PURE__ */ u(kt, { children: [
1148
- /* @__PURE__ */ r(Nt, { children: /* @__PURE__ */ r(_, { width: "200px" }) }),
1149
- /* @__PURE__ */ r(N, { children: /* @__PURE__ */ r(_, { width: "300px" }) })
1150
- ] }), di = (s) => {
1151
- const { isExpanded: t, toggle: e, children: i, contentElementId: n } = s, a = P(v);
1152
- return /* @__PURE__ */ u(Tt, { children: [
1174
+ /* @__PURE__ */ r(Nt, { children: /* @__PURE__ */ r(st, { width: "200px" }) }),
1175
+ /* @__PURE__ */ r(N, { children: /* @__PURE__ */ r(st, { width: "300px" }) })
1176
+ ] }), hi = (s) => {
1177
+ const { isExpanded: t, toggle: e, children: i, contentElementId: n } = s, a = P(T);
1178
+ return /* @__PURE__ */ u(vt, { children: [
1153
1179
  /* @__PURE__ */ r(
1154
1180
  C,
1155
1181
  {
@@ -1166,15 +1192,15 @@ const li = "flow--list--items", ci = "flow--list--items--is-loading", yt = {
1166
1192
  ),
1167
1193
  t && i
1168
1194
  ] });
1169
- }, ui = (s) => {
1170
- var M;
1171
- const { data: t, children: e } = s, i = T(), n = i.itemView, a = i.onAction, [c, d] = q(
1172
- ((M = n == null ? void 0 : n.defaultExpanded) == null ? void 0 : M.call(n, t)) ?? !1
1173
- ), l = ce(), g = Ft(null), f = i.accordion, p = e ?? (n == null ? void 0 : n.render(t));
1195
+ }, mi = (s) => {
1196
+ var B;
1197
+ const { data: t, children: e } = s, i = y(), n = i.itemView, a = i.onAction, [l, d] = q(
1198
+ ((B = n == null ? void 0 : n.defaultExpanded) == null ? void 0 : B.call(n, t)) ?? !1
1199
+ ), c = ce(), g = It(null), f = i.accordion, p = e ?? (n == null ? void 0 : n.render(t));
1174
1200
  if (D(() => {
1175
- var y, B;
1176
- f && ((y = g.current) == null || y.setAttribute("aria-expanded", String(c)), (B = g.current) == null || B.setAttribute("aria-controls", l));
1177
- }, [c, l, g.current, f]), !f)
1201
+ var w, M;
1202
+ f && ((w = g.current) == null || w.setAttribute("aria-expanded", String(l)), (M = g.current) == null || M.setAttribute("aria-controls", c));
1203
+ }, [l, c, g.current, f]), !f)
1178
1204
  return {
1179
1205
  gridItemProps: {
1180
1206
  onAction: a ? () => {
@@ -1184,17 +1210,17 @@ const li = "flow--list--items", ci = "flow--list--items--is-loading", yt = {
1184
1210
  children: p
1185
1211
  };
1186
1212
  const A = () => {
1187
- d((y) => !y), a == null || a(t);
1213
+ d((w) => !w), a == null || a(t);
1188
1214
  }, x = {
1189
1215
  Content: {
1190
- id: Q((y) => y.slot === "bottom" ? l : void 0),
1191
- wrapWith: Q(
1192
- (y) => y.slot === "bottom" ? /* @__PURE__ */ r(
1193
- di,
1216
+ id: _((w) => w.slot === "bottom" ? c : void 0),
1217
+ wrapWith: _(
1218
+ (w) => w.slot === "bottom" ? /* @__PURE__ */ r(
1219
+ hi,
1194
1220
  {
1195
- contentElementId: l,
1221
+ contentElementId: c,
1196
1222
  toggle: A,
1197
- isExpanded: c
1223
+ isExpanded: l
1198
1224
  }
1199
1225
  ) : void 0
1200
1226
  )
@@ -1206,62 +1232,62 @@ const li = "flow--list--items", ci = "flow--list--items--is-loading", yt = {
1206
1232
  onAction: A
1207
1233
  },
1208
1234
  children: /* @__PURE__ */ r(
1209
- tt,
1235
+ j,
1210
1236
  {
1211
1237
  props: x,
1212
- dependencies: [l, c],
1238
+ dependencies: [c, l],
1213
1239
  children: p
1214
1240
  }
1215
1241
  )
1216
1242
  };
1217
1243
  }, Ut = (s) => {
1218
- const t = h(m).ItemsGridListItem ?? Ts;
1244
+ const t = h(m).ItemsGridListItem ?? Fs;
1219
1245
  return /* @__PURE__ */ r(t, { ...s });
1220
- }, hi = (s) => {
1221
- const { id: t, data: e } = s, n = T().itemView, { gridItemProps: a, children: c } = ui(s);
1246
+ }, gi = (s) => {
1247
+ const { id: t, data: e } = s, n = y().itemView, { gridItemProps: a, children: l } = mi(s);
1222
1248
  if (!n)
1223
1249
  return null;
1224
- const d = n.textValue ? n.textValue(e) : void 0, l = n.href ? n.href(e) : void 0, g = !!a.onAction || !!l;
1250
+ const d = n.textValue ? n.textValue(e) : void 0, c = n.href ? n.href(e) : void 0, g = !!a.onAction || !!c;
1225
1251
  return /* @__PURE__ */ r(
1226
1252
  Ut,
1227
1253
  {
1228
1254
  id: t,
1229
1255
  textValue: d,
1230
- href: l,
1256
+ href: c,
1231
1257
  hasAction: g,
1232
1258
  ...a,
1233
- children: /* @__PURE__ */ r(de, { fallback: /* @__PURE__ */ r($t, {}), children: c })
1259
+ children: /* @__PURE__ */ r(de, { fallback: /* @__PURE__ */ r($t, {}), children: l })
1234
1260
  }
1235
1261
  );
1236
- }, mi = (s) => /* @__PURE__ */ r(Ut, { textValue: "-", className: z.item, children: s.children }), gi = () => {
1262
+ }, pi = (s) => /* @__PURE__ */ r(Ut, { textValue: "-", className: z.item, children: s.children }), fi = () => {
1237
1263
  var e;
1238
- const t = ((e = T().itemView) == null ? void 0 : e.fallback) ?? /* @__PURE__ */ r($t, {});
1239
- return Array.from(Array(5)).map((i, n) => /* @__PURE__ */ r(mi, { children: ue(t) }, n));
1240
- }, pi = (s) => {
1241
- const t = h(m).ItemsGridList ?? bs;
1264
+ const t = ((e = y().itemView) == null ? void 0 : e.fallback) ?? /* @__PURE__ */ r($t, {});
1265
+ return Array.from(Array(5)).map((i, n) => /* @__PURE__ */ r(pi, { children: ue(t) }, n));
1266
+ }, bi = (s) => {
1267
+ const t = h(m).ItemsGridList ?? ws;
1242
1268
  return /* @__PURE__ */ r(t, { ...s });
1243
- }, fi = () => {
1244
- const s = T(), t = s.loader.useIsLoading(), e = s.loader.useIsInitiallyLoading();
1269
+ }, Si = () => {
1270
+ const s = y(), t = s.loader.useIsLoading(), e = s.loader.useIsInitiallyLoading();
1245
1271
  if (!s.itemView)
1246
1272
  return null;
1247
- const i = s.items.entries.map((a) => /* @__PURE__ */ r(hi, { data: a.data, id: a.id }, a.id)), n = E(yt.items, t && yt.isLoading);
1248
- return /* @__PURE__ */ r(w, { "aria-hidden": e, "aria-busy": t, children: /* @__PURE__ */ r(pi, { className: n, ...s.componentProps, children: e ? /* @__PURE__ */ r(gi, {}) : i }) });
1249
- }, Kt = (s) => null, bi = () => Kt, zt = (s) => null, Si = () => zt, Ot = (s) => null, wi = () => Ot, Ht = (s) => null, yi = () => Ht, Gt = (s) => null, Ti = () => Gt, vi = "flow--list--footer", Fi = {
1250
- footer: vi
1251
- }, Ii = (s) => {
1273
+ const i = s.items.entries.map((a) => /* @__PURE__ */ r(gi, { data: a.data, id: a.id }, a.id)), n = E(Tt.items, t && Tt.isLoading);
1274
+ return /* @__PURE__ */ r(I, { "aria-hidden": e, "aria-busy": t, children: /* @__PURE__ */ r(bi, { className: n, ...s.componentProps, children: e ? /* @__PURE__ */ r(fi, {}) : i }) });
1275
+ }, Kt = (s) => null, wi = () => Kt, zt = (s) => null, yi = () => zt, Ot = (s) => null, Ti = () => Ot, Ht = (s) => null, vi = () => Ht, Gt = (s) => null, Fi = () => Gt, Ii = "flow--list--footer", Vi = {
1276
+ footer: Ii
1277
+ }, Ci = (s) => {
1252
1278
  const t = h(m).Skeleton ?? Ye;
1253
1279
  return /* @__PURE__ */ r(t, { ...s });
1254
- }, Vi = (s) => {
1255
- const t = P(v), e = T(), i = e.batches, n = e.loader.useIsInitiallyLoading(), a = e.useIsEmpty(), c = i.getTotalItemsCount(), d = i.getVisibleItemsCount();
1280
+ }, Li = (s) => {
1281
+ const t = P(T), e = y(), i = e.batches, n = e.loader.useIsInitiallyLoading(), a = e.useIsEmpty(), l = i.getTotalItemsCount(), d = i.getVisibleItemsCount();
1256
1282
  if (a)
1257
1283
  return null;
1258
- const l = n ? /* @__PURE__ */ r(Ii, { width: "200px" }) : t.format("list.paginationInfo", {
1284
+ const c = n ? /* @__PURE__ */ r(Ci, { width: "200px" }) : t.format("list.paginationInfo", {
1259
1285
  visibleItemsCount: d,
1260
- totalItemsCount: c
1286
+ totalItemsCount: l
1261
1287
  });
1262
- return /* @__PURE__ */ r(N, { ...s, children: l });
1263
- }, Ci = (s) => {
1264
- const t = P(v), e = T(), i = e.loader.useIsLoading(), n = e.loader.useIsInitiallyLoading();
1288
+ return /* @__PURE__ */ r(N, { ...s, children: c });
1289
+ }, Pi = (s) => {
1290
+ const t = P(T), e = y(), i = e.loader.useIsLoading(), n = e.loader.useIsInitiallyLoading();
1265
1291
  return !e.batches.hasNextBatch() && !i ? null : /* @__PURE__ */ r(
1266
1292
  C,
1267
1293
  {
@@ -1274,14 +1300,14 @@ const li = "flow--list--items", ci = "flow--list--items--is-loading", yt = {
1274
1300
  children: t.format("list.showMore")
1275
1301
  }
1276
1302
  );
1277
- }, Li = () => /* @__PURE__ */ u(w, { className: Fi.footer, children: [
1278
- /* @__PURE__ */ r(Vi, {}),
1279
- /* @__PURE__ */ r(Ci, {})
1303
+ }, Ai = () => /* @__PURE__ */ u(I, { className: Vi.footer, children: [
1304
+ /* @__PURE__ */ r(Li, {}),
1305
+ /* @__PURE__ */ r(Pi, {})
1280
1306
  ] });
1281
1307
  function qt(s) {
1282
1308
  return null;
1283
1309
  }
1284
- const Pi = () => qt, jt = (s) => null, Wt = (s) => null, Jt = (s) => null, Yt = (s) => {
1310
+ const xi = () => qt, jt = (s) => null, Wt = (s) => null, Jt = (s) => null, Yt = (s) => {
1285
1311
  const t = h(m).Table ?? Qe;
1286
1312
  return /* @__PURE__ */ r(t, { ...s });
1287
1313
  }, Qt = (s) => {
@@ -1299,27 +1325,27 @@ const Pi = () => qt, jt = (s) => null, Wt = (s) => null, Jt = (s) => null, Yt =
1299
1325
  }, te = (s) => {
1300
1326
  const t = h(m).TableCell ?? es;
1301
1327
  return /* @__PURE__ */ r(t, { ...s });
1302
- }, Ai = (s) => /* @__PURE__ */ u(Yt, { ...s, children: [
1303
- /* @__PURE__ */ r(_t, { children: /* @__PURE__ */ r(Qt, { children: /* @__PURE__ */ r(Bt, { width: "100%" }) }) }),
1304
- /* @__PURE__ */ r(Xt, { children: Array.from(Array(5)).map((t, e) => /* @__PURE__ */ r(Zt, { children: /* @__PURE__ */ r(te, { children: /* @__PURE__ */ r(_, { width: "100%" }) }) }, e)) })
1305
- ] }), xi = "flow--list--table", Mi = "flow--list--table--is-loading", Bi = "flow--list--table--row", ki = "flow--list--table--is-selected", Di = "flow--list--table--has-action", R = {
1306
- table: xi,
1307
- isLoading: Mi,
1308
- row: Bi,
1309
- isSelected: ki,
1310
- hasAction: Di
1311
- }, Ei = (s) => {
1328
+ }, Bi = (s) => /* @__PURE__ */ u(Yt, { ...s, children: [
1329
+ /* @__PURE__ */ r(_t, { children: /* @__PURE__ */ r(Qt, { children: /* @__PURE__ */ r(Mt, { width: "100%" }) }) }),
1330
+ /* @__PURE__ */ r(Xt, { children: Array.from(Array(5)).map((t, e) => /* @__PURE__ */ r(Zt, { children: /* @__PURE__ */ r(te, { children: /* @__PURE__ */ r(st, { width: "100%" }) }) }, e)) })
1331
+ ] }), Mi = "flow--list--table", ki = "flow--list--table--is-loading", Di = "flow--list--table--row", Ei = "flow--list--table--is-selected", Ni = "flow--list--table--has-action", R = {
1332
+ table: Mi,
1333
+ isLoading: ki,
1334
+ row: Di,
1335
+ isSelected: Ei,
1336
+ hasAction: Ni
1337
+ }, Ri = (s) => {
1312
1338
  const t = h(m).ListEmptyView ?? Dt;
1313
1339
  return /* @__PURE__ */ r(t, { ...s });
1314
- }, Ni = () => {
1315
- const s = T(), t = s.table, e = s.useIsEmpty(), i = s.loader.useIsLoading(), n = s.loader.useIsInitiallyLoading();
1340
+ }, $i = () => {
1341
+ const s = y(), t = s.table, e = s.useIsEmpty(), i = s.loader.useIsLoading(), n = s.loader.useIsInitiallyLoading();
1316
1342
  if (!t)
1317
1343
  return null;
1318
1344
  if (n)
1319
- return /* @__PURE__ */ r(Ai, { ...t.componentProps });
1345
+ return /* @__PURE__ */ r(Bi, { ...t.componentProps });
1320
1346
  if (e)
1321
- return /* @__PURE__ */ r(Ei, {});
1322
- const a = t.list.onAction, c = E(
1347
+ return /* @__PURE__ */ r(Ri, {});
1348
+ const a = t.list.onAction, l = E(
1323
1349
  R.table,
1324
1350
  i && R.isLoading,
1325
1351
  t.componentProps.className
@@ -1329,11 +1355,11 @@ const Pi = () => qt, jt = (s) => null, Wt = (s) => null, Jt = (s) => null, Yt =
1329
1355
  {
1330
1356
  ...s.componentProps,
1331
1357
  ...t.componentProps,
1332
- className: c,
1358
+ className: l,
1333
1359
  children: [
1334
- /* @__PURE__ */ r(_t, { ...t.header.componentProps, children: t.header.columns.map((d, l) => /* @__PURE__ */ r(Qt, { ...d.componentProps }, l)) }),
1360
+ /* @__PURE__ */ r(_t, { ...t.header.componentProps, children: t.header.columns.map((d, c) => /* @__PURE__ */ r(Qt, { ...d.componentProps }, c)) }),
1335
1361
  /* @__PURE__ */ r(Xt, { ...t.body.componentProps, children: s.items.entries.map((d) => {
1336
- var l;
1362
+ var c;
1337
1363
  return /* @__PURE__ */ r(
1338
1364
  Zt,
1339
1365
  {
@@ -1346,7 +1372,7 @@ const Pi = () => qt, jt = (s) => null, Wt = (s) => null, Jt = (s) => null, Yt =
1346
1372
  id: d.id,
1347
1373
  onAction: a ? () => a(d.data) : void 0,
1348
1374
  ...t.body.row.componentProps,
1349
- children: (l = t.body.row) == null ? void 0 : l.cells.map((g, f) => /* @__PURE__ */ r(te, { ...g.componentProps, children: g.renderFn ? g.renderFn(d.data, s) : void 0 }, f))
1375
+ children: (c = t.body.row) == null ? void 0 : c.cells.map((g, f) => /* @__PURE__ */ r(te, { ...g.componentProps, children: g.renderFn ? g.renderFn(d.data, s) : void 0 }, f))
1350
1376
  },
1351
1377
  d.id
1352
1378
  );
@@ -1354,41 +1380,41 @@ const Pi = () => qt, jt = (s) => null, Wt = (s) => null, Jt = (s) => null, Yt =
1354
1380
  ]
1355
1381
  }
1356
1382
  );
1357
- }, ee = (s) => null, se = (s) => null, ie = (s) => null, Ri = Vt("List", (s) => {
1358
- var at, lt, ct, dt, ut, ht, mt, gt, pt;
1359
- const { children: t, batchSize: e, onChange: i, ref: n, ...a } = s, c = (at = I(
1383
+ }, ee = (s) => null, se = (s) => null, ie = (s) => null, Ui = Vt("List", (s) => {
1384
+ var lt, ct, dt, ut, ht, mt, gt, pt, ft;
1385
+ const { children: t, batchSize: e, onChange: i, ref: n, ...a } = s, l = (lt = F(
1360
1386
  t,
1361
1387
  Kt
1362
- )) == null ? void 0 : at.props, d = (lt = I(
1388
+ )) == null ? void 0 : lt.props, d = (ct = F(
1363
1389
  t,
1364
1390
  We
1365
- )) == null ? void 0 : lt.props, l = (ct = I(t, Gt)) == null ? void 0 : ct.props, g = {
1366
- source: c ? {
1367
- ...c,
1368
- asyncLoader: c.children
1391
+ )) == null ? void 0 : ct.props, c = (dt = F(t, Gt)) == null ? void 0 : dt.props, g = {
1392
+ source: l ? {
1393
+ ...l,
1394
+ asyncLoader: l.children
1369
1395
  } : d ? {
1370
1396
  ...d,
1371
1397
  asyncResourceFactory: d.children
1372
- } : l ? {
1373
- staticData: l.data
1398
+ } : c ? {
1399
+ staticData: c.data
1374
1400
  } : void 0
1375
- }, f = (dt = I(t, qt)) == null ? void 0 : dt.props, p = (ut = I(t, Ht)) == null ? void 0 : ut.props, A = (ht = I(t, ee)) == null ? void 0 : ht.props, x = U(t, jt).map(
1376
- (F) => ({
1377
- ...F.props,
1378
- name: F.props.children
1401
+ }, f = (ut = F(t, qt)) == null ? void 0 : ut.props, p = (ht = F(t, Ht)) == null ? void 0 : ht.props, A = (mt = F(t, ee)) == null ? void 0 : mt.props, x = U(t, jt).map(
1402
+ (v) => ({
1403
+ ...v.props,
1404
+ name: v.props.children
1379
1405
  })
1380
- ), M = U(t, Jt).map(
1381
- (F) => ({
1382
- ...F.props,
1383
- renderFn: F.props.children
1406
+ ), B = U(t, Jt).map(
1407
+ (v) => ({
1408
+ ...v.props,
1409
+ renderFn: v.props.children
1384
1410
  })
1385
- ), y = (mt = I(t, Wt)) == null ? void 0 : mt.props, B = (gt = I(t, se)) == null ? void 0 : gt.props, j = (pt = I(t, ie)) == null ? void 0 : pt.props, b = ai.useNew({
1411
+ ), w = (gt = F(t, Wt)) == null ? void 0 : gt.props, M = (pt = F(t, se)) == null ? void 0 : pt.props, J = (ft = F(t, ie)) == null ? void 0 : ft.props, b = ci.useNew({
1386
1412
  onChange: i,
1387
1413
  loader: g,
1388
1414
  filters: U(t, zt).map(
1389
- (F) => ({
1390
- ...F.props,
1391
- renderItem: F.props.children
1415
+ (v) => ({
1416
+ ...v.props,
1417
+ renderItem: v.props.children
1392
1418
  })
1393
1419
  ),
1394
1420
  search: f ? {
@@ -1396,21 +1422,21 @@ const Pi = () => qt, jt = (s) => null, Wt = (s) => null, Jt = (s) => null, Yt =
1396
1422
  textFieldProps: f,
1397
1423
  defaultValue: f.defaultValue
1398
1424
  } : void 0,
1399
- sorting: U(t, Ot).map((F) => F.props),
1425
+ sorting: U(t, Ot).map((v) => v.props),
1400
1426
  itemView: p ? {
1401
1427
  ...p,
1402
1428
  renderFn: p.children
1403
1429
  } : void 0,
1404
1430
  table: x.length > 0 ? {
1405
1431
  header: {
1406
- ...B,
1432
+ ...M,
1407
1433
  columns: x
1408
1434
  },
1409
1435
  body: {
1410
- ...j,
1436
+ ...J,
1411
1437
  row: {
1412
- ...y,
1413
- cells: M
1438
+ ...w,
1439
+ cells: B
1414
1440
  }
1415
1441
  },
1416
1442
  ...A
@@ -1429,33 +1455,33 @@ const Pi = () => qt, jt = (s) => null, Wt = (s) => null, Jt = (s) => null, Yt =
1429
1455
  tunnelId: "listSummary"
1430
1456
  }
1431
1457
  }, re = je(t, ss);
1432
- return /* @__PURE__ */ r(tt, { props: ne, children: /* @__PURE__ */ r(It, { children: /* @__PURE__ */ u(
1458
+ return /* @__PURE__ */ r(j, { props: ne, children: /* @__PURE__ */ r(Ct, { children: /* @__PURE__ */ u(
1433
1459
  Et.Provider,
1434
1460
  {
1435
1461
  value: {
1436
1462
  list: b
1437
1463
  },
1438
1464
  children: [
1439
- /* @__PURE__ */ r(vs, {}),
1440
- /* @__PURE__ */ u(w, { className: qs.list, ref: n, children: [
1465
+ /* @__PURE__ */ r(Is, {}),
1466
+ /* @__PURE__ */ u(I, { className: Ws.list, ref: n, children: [
1441
1467
  t,
1442
- /* @__PURE__ */ r(Hs, { hasActionGroup: re }),
1443
- /* @__PURE__ */ u(w, { children: [
1468
+ /* @__PURE__ */ r(qs, { hasActionGroup: re }),
1469
+ /* @__PURE__ */ u(I, { children: [
1444
1470
  b.items.entries.length > 0 && /* @__PURE__ */ r($, { id: "listSummary" }),
1445
- b.viewMode === "list" && /* @__PURE__ */ r(fi, {}),
1446
- b.viewMode === "table" && /* @__PURE__ */ r(Ni, {})
1471
+ b.viewMode === "list" && /* @__PURE__ */ r(Si, {}),
1472
+ b.viewMode === "table" && /* @__PURE__ */ r($i, {})
1447
1473
  ] }),
1448
- /* @__PURE__ */ r(Li, {})
1474
+ /* @__PURE__ */ r(Ai, {})
1449
1475
  ] })
1450
1476
  ]
1451
1477
  }
1452
1478
  ) }) });
1453
- }), $i = () => Ri, Wn = () => ({
1454
- List: $i(),
1455
- Filter: Si(),
1456
- Search: Pi(),
1457
- Sorting: wi(),
1458
- Item: yi(),
1479
+ }), Ki = () => Ui, Qn = () => ({
1480
+ List: Ki(),
1481
+ Filter: yi(),
1482
+ Search: xi(),
1483
+ Sorting: Ti(),
1484
+ Item: vi(),
1459
1485
  ItemView: kt,
1460
1486
  TableHeader: se,
1461
1487
  TableColumn: jt,
@@ -1463,28 +1489,29 @@ const Pi = () => qt, jt = (s) => null, Wt = (s) => null, Jt = (s) => null, Yt =
1463
1489
  TableRow: Wt,
1464
1490
  TableCell: Jt,
1465
1491
  Table: ee,
1466
- StaticData: Ti(),
1467
- LoaderAsync: bi(),
1492
+ StaticData: Fi(),
1493
+ LoaderAsync: wi(),
1468
1494
  LoaderAsyncResource: Je()
1469
1495
  });
1470
1496
  export {
1471
1497
  Dt as EmptyView,
1472
- bs as GridList,
1473
- Ts as GridListItem,
1474
- Ri as List,
1498
+ ws as GridList,
1499
+ Fs as GridListItem,
1500
+ Ui as List,
1475
1501
  zt as ListFilter,
1476
1502
  Ht as ListItem,
1477
1503
  kt as ListItemView,
1504
+ Ss as ListItemViewContent,
1478
1505
  Kt as ListLoaderAsync,
1479
1506
  Ot as ListSorting,
1480
1507
  Gt as ListStaticData,
1481
- Kn as ListSummary,
1482
- $i as TypedList,
1483
- Si as TypedListFilter,
1484
- yi as TypedListItem,
1485
- bi as TypedListLoaderAsync,
1486
- wi as TypedListSorting,
1487
- Ti as TypedListStaticData,
1488
- Wn as typedList,
1489
- T as useList
1508
+ Hn as ListSummary,
1509
+ Ki as TypedList,
1510
+ yi as TypedListFilter,
1511
+ vi as TypedListItem,
1512
+ wi as TypedListLoaderAsync,
1513
+ Ti as TypedListSorting,
1514
+ Fi as TypedListStaticData,
1515
+ Qn as typedList,
1516
+ y as useList
1490
1517
  };