@mittwald/flow-react-components 0.1.0-alpha.279 → 0.1.0-alpha.280
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/IconView-CelEa7lf.js +13 -0
- package/dist/Icons.js +108 -108
- package/dist/List.js +351 -334
- package/dist/Table.js +2 -2
- package/dist/{TableRow-DNTJVTkO.js → TableRow-C2VaotTp.js} +23 -18
- package/dist/styles.css +1 -1
- package/dist/types/components/List/model/List.d.ts +1 -0
- package/dist/types/components/List/model/filter/Filter.d.ts +1 -0
- package/dist/types/components/List/typedList.d.ts +1 -0
- package/dist/types/components/Table/Table.d.ts +3 -1
- package/dist/types/components/Table/stories/Default.stories.d.ts +1 -0
- package/package.json +4 -4
- package/dist/IconView-D_nWltIo.js +0 -12
package/dist/List.js
CHANGED
|
@@ -1,69 +1,70 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var r = (a, e, t) =>
|
|
6
|
-
import i, { createContext as
|
|
3
|
+
var We = Object.defineProperty;
|
|
4
|
+
var Je = (a, e, t) => e in a ? We(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
|
|
5
|
+
var r = (a, e, t) => Je(a, typeof e != "symbol" ? e + "" : e, t);
|
|
6
|
+
import i, { createContext as Ye, useContext as _e, createElement as Se, useState as J, useEffect as B, useRef as Qe, Suspense as Xe, cloneElement as Ze } from "react";
|
|
7
7
|
import "./propsContext-DzAKlmhS.js";
|
|
8
|
-
import { P as
|
|
8
|
+
import { P as ve } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
9
9
|
import "@react-aria/utils";
|
|
10
|
-
import { isShallowEqual as
|
|
11
|
-
import { d as
|
|
10
|
+
import { isShallowEqual as et, unique as tt, difference as st, times as it } from "remeda";
|
|
11
|
+
import { d as at } from "./dynamic-ClpUSmEt.js";
|
|
12
12
|
import { B as w } from "./Button-DYHIOEMk.js";
|
|
13
|
-
import { IconArrowBackUp as
|
|
14
|
-
import { I as
|
|
13
|
+
import { IconArrowBackUp as nt } from "@tabler/icons-react";
|
|
14
|
+
import { I as ue } from "./Icon-C5gtbUkg.js";
|
|
15
15
|
import { I as rt } from "./IconContextMenu-DoHZ9Lnm.js";
|
|
16
|
-
import { a as
|
|
17
|
-
import { M as
|
|
16
|
+
import { a as N, C as Y } from "./ContextMenuTrigger-Vw5RLEk8.js";
|
|
17
|
+
import { M as _ } from "./MenuItem-BzSyWdbX.js";
|
|
18
18
|
import { useLocalizedStringFormatter as y } from "react-aria";
|
|
19
|
-
import { TunnelProvider as
|
|
19
|
+
import { TunnelProvider as we, TunnelExit as G } from "@mittwald/react-tunnel";
|
|
20
20
|
import T from "clsx";
|
|
21
21
|
import { g as ot } from "./getContainerBreakpointSizeClassName-BrcFDcCY.js";
|
|
22
22
|
import { f as lt } from "./flowComponent-CcGqg9eo.js";
|
|
23
23
|
import { R as ct } from "./Render-BdlTa7Qb.js";
|
|
24
24
|
import { T as E } from "./Text-caKNaa01.js";
|
|
25
|
-
import {
|
|
26
|
-
import { observer as
|
|
27
|
-
import { a as
|
|
28
|
-
import { B as
|
|
29
|
-
import { makeObservable as
|
|
25
|
+
import { c as dt, a as ut, b as mt, I as ht, d as gt } from "./IconView-CelEa7lf.js";
|
|
26
|
+
import { observer as pt } from "mobx-react-lite";
|
|
27
|
+
import { a as O, T as H } from "./TooltipTrigger-TslkLN5s.js";
|
|
28
|
+
import { B as ft } from "./Badge-pCsoX-qX.js";
|
|
29
|
+
import { makeObservable as bt, observable as me, computed as he, action as q } from "mobx";
|
|
30
30
|
import "./context-Cf7tqFtF.js";
|
|
31
31
|
import { u as St } from "./useOnChange-C1Quwyuz.js";
|
|
32
|
-
import { S as
|
|
33
|
-
import { H as
|
|
34
|
-
import { S as
|
|
35
|
-
import { getProperty as
|
|
36
|
-
import { hash as
|
|
32
|
+
import { S as vt } from "./SearchField-DLprEGo_.js";
|
|
33
|
+
import { H as Q } from "./Heading-BdmMWxrs.js";
|
|
34
|
+
import { S as wt } from "./Section-C_h0987n.js";
|
|
35
|
+
import { getProperty as yt } from "dot-prop";
|
|
36
|
+
import { hash as ye } from "object-code";
|
|
37
37
|
import V from "zod";
|
|
38
|
-
import { useReactTable as
|
|
39
|
-
import
|
|
40
|
-
import { getAsyncResource as
|
|
41
|
-
import { u as
|
|
42
|
-
import { u as
|
|
43
|
-
import * as
|
|
44
|
-
import { S as
|
|
45
|
-
import { I as
|
|
46
|
-
import { I as
|
|
47
|
-
import { d as
|
|
48
|
-
import { ListLoaderAsyncResource as
|
|
49
|
-
import { S as
|
|
50
|
-
import { a as
|
|
51
|
-
import { A as
|
|
52
|
-
const
|
|
53
|
-
view:
|
|
54
|
-
title:
|
|
55
|
-
topContent:
|
|
56
|
-
content:
|
|
57
|
-
action:
|
|
58
|
-
avatar:
|
|
59
|
-
text:
|
|
60
|
-
heading:
|
|
38
|
+
import { useReactTable as Et, getCoreRowModel as Ft, getSortedRowModel as Tt, getFilteredRowModel as Ct, getPaginationRowModel as It, getFacetedUniqueValues as Lt } from "@tanstack/react-table";
|
|
39
|
+
import Ee from "invariant";
|
|
40
|
+
import { getAsyncResource as ge } from "@mittwald/react-use-promise";
|
|
41
|
+
import { u as pe } from "./useSelector-DpU7_HMO.js";
|
|
42
|
+
import { u as Pt } from "./SettingsProvider-D9oDS5r9.js";
|
|
43
|
+
import * as X from "react-aria-components";
|
|
44
|
+
import { S as D } from "./SkeletonText-B5ZghZhO.js";
|
|
45
|
+
import { I as Vt } from "./IllustratedMessage-B3MHD01M.js";
|
|
46
|
+
import { I as kt } from "./IconSearch-CNdq-JdP.js";
|
|
47
|
+
import { d as b, a as P } from "./deepFindOfType-6pG0fH7S.js";
|
|
48
|
+
import { ListLoaderAsyncResource as At, TypedListLoaderAsyncResource as Mt } from "./List/ListLoaderAsyncResource.js";
|
|
49
|
+
import { S as Bt } from "./Skeleton-CKLaTmDR.js";
|
|
50
|
+
import { a as Fe, e as Te, d as Ce, b as Ie, T as Le, c as Pe } from "./TableRow-C2VaotTp.js";
|
|
51
|
+
import { A as Dt } from "./ActionGroup-BaKhW0E3.js";
|
|
52
|
+
const xt = "flow--list--items--item--view", Nt = "flow--list--items--item--view--title", Rt = "flow--list--items--item--view--top-content", $t = "flow--list--items--item--view--content", zt = "flow--list--items--item--view--action", Ut = "flow--list--items--item--view--avatar", Kt = "flow--list--items--item--view--text", Ot = "flow--list--items--item--view--heading", m = {
|
|
53
|
+
view: xt,
|
|
54
|
+
title: Nt,
|
|
55
|
+
topContent: Rt,
|
|
56
|
+
content: $t,
|
|
57
|
+
action: zt,
|
|
58
|
+
avatar: Ut,
|
|
59
|
+
text: Kt,
|
|
60
|
+
heading: Ot,
|
|
61
61
|
"container-breakpoint-size-xs": "flow--list--items--item--view--container-breakpoint-size-xs",
|
|
62
62
|
"container-breakpoint-size-s": "flow--list--items--item--view--container-breakpoint-size-s",
|
|
63
63
|
"container-breakpoint-size-m": "flow--list--items--item--view--container-breakpoint-size-m",
|
|
64
64
|
"container-breakpoint-size-l": "flow--list--items--item--view--container-breakpoint-size-l",
|
|
65
65
|
"container-breakpoint-size-xl": "flow--list--items--item--view--container-breakpoint-size-xl"
|
|
66
|
-
},
|
|
66
|
+
}, S = { "de-DE": {
|
|
67
|
+
"list.filters.clear": "Filter entfernen",
|
|
67
68
|
"list.filters.reset": "Filter zurücksetzen",
|
|
68
69
|
"list.filters.store": "Filter speichern",
|
|
69
70
|
"list.noResult.heading": "Keine Suchergebnisse gefunden",
|
|
@@ -77,6 +78,7 @@ const Dt = "flow--list--items--item--view", xt = "flow--list--items--item--view-
|
|
|
77
78
|
"list.showMore": "Mehr anzeigen",
|
|
78
79
|
"list.sorting": "Sortierung"
|
|
79
80
|
}, "en-EN": {
|
|
81
|
+
"list.filters.clear": "Clear filters",
|
|
80
82
|
"list.filters.reset": "Reset filters",
|
|
81
83
|
"list.filters.store": "Store filters",
|
|
82
84
|
"list.noResult.heading": "No search results found",
|
|
@@ -89,9 +91,9 @@ const Dt = "flow--list--items--item--view", xt = "flow--list--items--item--view-
|
|
|
89
91
|
"list.settings.viewMode.table": "Table",
|
|
90
92
|
"list.showMore": "Show more",
|
|
91
93
|
"list.sorting": "Sorting"
|
|
92
|
-
} },
|
|
93
|
-
const { className: e, children: t } = a, s = y(
|
|
94
|
-
return /* @__PURE__ */ i.createElement(
|
|
94
|
+
} }, Ht = (a) => {
|
|
95
|
+
const { className: e, children: t } = a, s = y(S);
|
|
96
|
+
return /* @__PURE__ */ i.createElement(N, null, /* @__PURE__ */ i.createElement(
|
|
95
97
|
w,
|
|
96
98
|
{
|
|
97
99
|
variant: "plain",
|
|
@@ -100,10 +102,10 @@ const Dt = "flow--list--items--item--view", xt = "flow--list--items--item--view-
|
|
|
100
102
|
},
|
|
101
103
|
/* @__PURE__ */ i.createElement(rt, null)
|
|
102
104
|
), t);
|
|
103
|
-
},
|
|
105
|
+
}, qt = (a) => a === "top" ? m.topContent : a === "bottom" ? m.content : m.topContent, Ve = (a) => {
|
|
104
106
|
const { children: e, className: t, containerBreakpointSize: s = "m" } = a, n = {
|
|
105
107
|
ContextMenu: {
|
|
106
|
-
wrapWith: /* @__PURE__ */ i.createElement(
|
|
108
|
+
wrapWith: /* @__PURE__ */ i.createElement(Ht, { className: m.action }),
|
|
107
109
|
placement: "bottom end"
|
|
108
110
|
},
|
|
109
111
|
Button: {
|
|
@@ -114,7 +116,7 @@ const Dt = "flow--list--items--item--view", xt = "flow--list--items--item--view-
|
|
|
114
116
|
ignoreBreakpoint: !0
|
|
115
117
|
},
|
|
116
118
|
Content: {
|
|
117
|
-
className:
|
|
119
|
+
className: at((l) => qt(l.slot)),
|
|
118
120
|
tunnelId: "topContent"
|
|
119
121
|
},
|
|
120
122
|
Avatar: {
|
|
@@ -138,22 +140,22 @@ const Dt = "flow--list--items--item--view", xt = "flow--list--items--item--view-
|
|
|
138
140
|
t,
|
|
139
141
|
m[ot(s)]
|
|
140
142
|
);
|
|
141
|
-
return /* @__PURE__ */ i.createElement("div", { className: o }, /* @__PURE__ */ i.createElement(
|
|
142
|
-
},
|
|
143
|
+
return /* @__PURE__ */ i.createElement("div", { className: o }, /* @__PURE__ */ i.createElement(ve, { props: n }, /* @__PURE__ */ i.createElement(we, null, e, /* @__PURE__ */ i.createElement("div", { className: m.title }, /* @__PURE__ */ i.createElement(G, { id: "title" })), /* @__PURE__ */ i.createElement(G, { id: "topContent" }))));
|
|
144
|
+
}, ke = Ye({}), g = () => _e(ke).list, Gt = () => g().loader.getLoaderInvocationHooks().map((e, t) => /* @__PURE__ */ i.createElement(ct, { key: t }, () => {
|
|
143
145
|
e();
|
|
144
|
-
})),
|
|
146
|
+
})), jt = (a) => {
|
|
145
147
|
const { sorting: e } = a;
|
|
146
|
-
return /* @__PURE__ */ i.createElement(
|
|
147
|
-
},
|
|
148
|
+
return /* @__PURE__ */ i.createElement(_, { id: e.id }, e.name);
|
|
149
|
+
}, k = (a) => {
|
|
148
150
|
const { children: e, locales: t, variables: s } = a;
|
|
149
151
|
return y(t).format(e, s);
|
|
150
|
-
},
|
|
151
|
-
const a = g(), e = a.visibleSorting.map((n) => /* @__PURE__ */ i.createElement(
|
|
152
|
+
}, Wt = () => {
|
|
153
|
+
const a = g(), e = a.visibleSorting.map((n) => /* @__PURE__ */ i.createElement(jt, { sorting: n, key: n.id }));
|
|
152
154
|
if (e.length === 0)
|
|
153
155
|
return null;
|
|
154
|
-
const t = a.visibleSorting.find((n) => n.isSorted()), s = /* @__PURE__ */ i.createElement(E, null, t ? /* @__PURE__ */ i.createElement(i.Fragment, null, t.name ?? t.property) : /* @__PURE__ */ i.createElement(
|
|
155
|
-
return /* @__PURE__ */ i.createElement(
|
|
156
|
-
|
|
156
|
+
const t = a.visibleSorting.find((n) => n.isSorted()), s = /* @__PURE__ */ i.createElement(E, null, t ? /* @__PURE__ */ i.createElement(i.Fragment, null, t.name ?? t.property) : /* @__PURE__ */ i.createElement(k, { locales: S }, "list.sorting"));
|
|
157
|
+
return /* @__PURE__ */ i.createElement(N, null, /* @__PURE__ */ i.createElement(w, { variant: "outline", color: "secondary" }, s, /* @__PURE__ */ i.createElement(dt, null)), /* @__PURE__ */ i.createElement(
|
|
158
|
+
Y,
|
|
157
159
|
{
|
|
158
160
|
selectionMode: "single",
|
|
159
161
|
selectedKeys: t ? [t.id] : [],
|
|
@@ -163,38 +165,38 @@ const Dt = "flow--list--items--item--view", xt = "flow--list--items--item--view-
|
|
|
163
165
|
},
|
|
164
166
|
e
|
|
165
167
|
));
|
|
166
|
-
},
|
|
167
|
-
const { filter: e } = a, { values: t, mode: s, name: n, property: o } = e,
|
|
168
|
-
|
|
168
|
+
}, Jt = (a) => {
|
|
169
|
+
const { filter: e } = a, { values: t, mode: s, name: n, property: o } = e, l = t.map((c) => /* @__PURE__ */ i.createElement(
|
|
170
|
+
_,
|
|
169
171
|
{
|
|
170
|
-
id:
|
|
171
|
-
key:
|
|
172
|
+
id: c.id,
|
|
173
|
+
key: c.id,
|
|
172
174
|
onAction: () => {
|
|
173
|
-
|
|
175
|
+
c.toggle();
|
|
174
176
|
}
|
|
175
177
|
},
|
|
176
|
-
|
|
177
|
-
)),
|
|
178
|
-
return /* @__PURE__ */ i.createElement(
|
|
179
|
-
|
|
178
|
+
c.render()
|
|
179
|
+
)), d = t.filter((c) => c.isActive).map((c) => c.id);
|
|
180
|
+
return /* @__PURE__ */ i.createElement(N, null, /* @__PURE__ */ i.createElement(w, { variant: "outline", color: "secondary" }, /* @__PURE__ */ i.createElement(E, null, n ?? o), /* @__PURE__ */ i.createElement(ut, null)), /* @__PURE__ */ i.createElement(
|
|
181
|
+
Y,
|
|
180
182
|
{
|
|
181
183
|
selectionMode: s === "one" ? "single" : "multiple",
|
|
182
|
-
selectedKeys:
|
|
184
|
+
selectedKeys: d
|
|
183
185
|
},
|
|
184
|
-
|
|
186
|
+
l
|
|
185
187
|
));
|
|
186
|
-
},
|
|
187
|
-
header:
|
|
188
|
-
pickerListAndSearch:
|
|
189
|
-
pickerList:
|
|
190
|
-
searchAndActions:
|
|
191
|
-
searchField:
|
|
192
|
-
actions:
|
|
193
|
-
},
|
|
194
|
-
activeFilters:
|
|
195
|
-
clearButton:
|
|
196
|
-
},
|
|
197
|
-
const a = g(), e = y(
|
|
188
|
+
}, Yt = "flow--list--header", _t = "flow--list--header--picker-list-and-search", Qt = "flow--list--header--picker-list", Xt = "flow--list--header--search-and-actions", Zt = "flow--list--header--search-field", es = "flow--list--header--actions", F = {
|
|
189
|
+
header: Yt,
|
|
190
|
+
pickerListAndSearch: _t,
|
|
191
|
+
pickerList: Qt,
|
|
192
|
+
searchAndActions: Xt,
|
|
193
|
+
searchField: Zt,
|
|
194
|
+
actions: es
|
|
195
|
+
}, ts = "flow--list--header--active-filters", ss = "flow--list--header--active-filters--clear-button", is = {
|
|
196
|
+
activeFilters: ts,
|
|
197
|
+
clearButton: ss
|
|
198
|
+
}, as = pt(() => {
|
|
199
|
+
const a = g(), e = y(S), s = a.filters.flatMap((c) => c.values).filter((c) => c.isActive).map((c) => /* @__PURE__ */ i.createElement(ft, { key: c.id, onClose: () => c.deactivate() }, /* @__PURE__ */ i.createElement(E, null, c.render()))), n = a.filters.filter((c) => c.hasChanged()).length > 0, o = a.supportsSettingsStorage && n && /* @__PURE__ */ i.createElement(O, null, /* @__PURE__ */ i.createElement(H, null, /* @__PURE__ */ i.createElement(k, { locales: S }, "list.filters.store")), /* @__PURE__ */ i.createElement(
|
|
198
200
|
w,
|
|
199
201
|
{
|
|
200
202
|
size: "s",
|
|
@@ -204,7 +206,7 @@ const Dt = "flow--list--items--item--view", xt = "flow--list--items--item--view-
|
|
|
204
206
|
"aria-label": e.format("list.filters.store")
|
|
205
207
|
},
|
|
206
208
|
/* @__PURE__ */ i.createElement(mt, null)
|
|
207
|
-
)),
|
|
209
|
+
)), l = n ? /* @__PURE__ */ i.createElement(O, null, /* @__PURE__ */ i.createElement(H, null, /* @__PURE__ */ i.createElement(k, { locales: S }, "list.filters.reset")), /* @__PURE__ */ i.createElement(
|
|
208
210
|
w,
|
|
209
211
|
{
|
|
210
212
|
size: "s",
|
|
@@ -213,41 +215,50 @@ const Dt = "flow--list--items--item--view", xt = "flow--list--items--item--view-
|
|
|
213
215
|
onPress: () => a.resetFilters(),
|
|
214
216
|
"aria-label": e.format("list.filters.reset")
|
|
215
217
|
},
|
|
216
|
-
/* @__PURE__ */ i.createElement(
|
|
218
|
+
/* @__PURE__ */ i.createElement(ue, null, /* @__PURE__ */ i.createElement(nt, null))
|
|
219
|
+
)) : void 0, d = s.length > 0 ? /* @__PURE__ */ i.createElement(O, null, /* @__PURE__ */ i.createElement(H, null, /* @__PURE__ */ i.createElement(k, { locales: S }, "list.filters.clear")), /* @__PURE__ */ i.createElement(
|
|
220
|
+
w,
|
|
221
|
+
{
|
|
222
|
+
size: "s",
|
|
223
|
+
variant: "plain",
|
|
224
|
+
color: "secondary",
|
|
225
|
+
onPress: () => a.clearFilters()
|
|
226
|
+
},
|
|
227
|
+
/* @__PURE__ */ i.createElement(ue, null, /* @__PURE__ */ i.createElement(ht, null))
|
|
217
228
|
)) : void 0;
|
|
218
|
-
return s.length === 0 && !o && !
|
|
219
|
-
}),
|
|
220
|
-
const { className: e, onChange: t, value: s, ...n } = a, [o,
|
|
229
|
+
return s.length === 0 && !o && !l ? null : /* @__PURE__ */ i.createElement("div", { className: is.activeFilters }, s, o, l, d);
|
|
230
|
+
}), ns = (a) => {
|
|
231
|
+
const { className: e, onChange: t, value: s, ...n } = a, [o, l] = J(s ?? "");
|
|
221
232
|
St(s, () => {
|
|
222
|
-
|
|
233
|
+
l(s ?? "");
|
|
223
234
|
}, [o]);
|
|
224
|
-
const
|
|
225
|
-
t(void 0),
|
|
226
|
-
},
|
|
227
|
-
u.key === "Enter" ? o.trim() === "" ? t(void 0) : t(o) : u.key === "Escape" &&
|
|
235
|
+
const d = () => {
|
|
236
|
+
t(void 0), l("");
|
|
237
|
+
}, c = (u) => {
|
|
238
|
+
u.key === "Enter" ? o.trim() === "" ? t(void 0) : t(o) : u.key === "Escape" && d();
|
|
228
239
|
};
|
|
229
240
|
return /* @__PURE__ */ i.createElement(
|
|
230
|
-
|
|
241
|
+
vt,
|
|
231
242
|
{
|
|
232
243
|
className: e,
|
|
233
244
|
value: o,
|
|
234
|
-
onKeyUp:
|
|
235
|
-
onChange: (u) =>
|
|
236
|
-
onClear:
|
|
245
|
+
onKeyUp: c,
|
|
246
|
+
onChange: (u) => l(u),
|
|
247
|
+
onClear: d,
|
|
237
248
|
...n
|
|
238
249
|
}
|
|
239
250
|
);
|
|
240
|
-
},
|
|
241
|
-
const { className: e, search: t } = a, s = t.render ??
|
|
251
|
+
}, rs = (a) => {
|
|
252
|
+
const { className: e, search: t } = a, s = t.render ?? ns;
|
|
242
253
|
return Se(s, {
|
|
243
254
|
className: e,
|
|
244
255
|
value: t.value,
|
|
245
256
|
onChange: t.setValue.bind(t),
|
|
246
257
|
...t.textFieldProps
|
|
247
258
|
});
|
|
248
|
-
},
|
|
249
|
-
const a = y(
|
|
250
|
-
return e.itemView && s.push("list"), e.table && s.push("table"), s.length <= 1 ? null : /* @__PURE__ */ i.createElement(
|
|
259
|
+
}, os = () => {
|
|
260
|
+
const a = y(S), e = g(), t = e.viewMode, s = [];
|
|
261
|
+
return e.itemView && s.push("list"), e.table && s.push("table"), s.length <= 1 ? null : /* @__PURE__ */ i.createElement(N, null, /* @__PURE__ */ i.createElement(
|
|
251
262
|
w,
|
|
252
263
|
{
|
|
253
264
|
variant: "outline",
|
|
@@ -255,9 +266,9 @@ const Dt = "flow--list--items--item--view", xt = "flow--list--items--item--view-
|
|
|
255
266
|
"aria-label": a.format("list.settings")
|
|
256
267
|
},
|
|
257
268
|
/* @__PURE__ */ i.createElement(E, null, a.format(`list.settings.viewMode.${t}`)),
|
|
258
|
-
/* @__PURE__ */ i.createElement(
|
|
259
|
-
), /* @__PURE__ */ i.createElement(
|
|
260
|
-
|
|
269
|
+
/* @__PURE__ */ i.createElement(gt, null)
|
|
270
|
+
), /* @__PURE__ */ i.createElement(Y, { selectionMode: "single", selectedKeys: [t] }, /* @__PURE__ */ i.createElement(wt, null, /* @__PURE__ */ i.createElement(Q, null, a.format("list.settings.viewMode")), s.map((n) => /* @__PURE__ */ i.createElement(
|
|
271
|
+
_,
|
|
261
272
|
{
|
|
262
273
|
id: n,
|
|
263
274
|
key: n,
|
|
@@ -267,16 +278,16 @@ const Dt = "flow--list--items--item--view", xt = "flow--list--items--item--view-
|
|
|
267
278
|
},
|
|
268
279
|
a.format(`list.settings.viewMode.${n}`)
|
|
269
280
|
)))));
|
|
270
|
-
},
|
|
281
|
+
}, ls = (a) => {
|
|
271
282
|
const { className: e, hasActionGroup: t } = a, s = g();
|
|
272
283
|
if (s.filters.length === 0 && s.visibleSorting.length === 0 && !s.search && !s.table && !t)
|
|
273
284
|
return null;
|
|
274
|
-
const n = s.filters.map((o) => /* @__PURE__ */ i.createElement(
|
|
275
|
-
return /* @__PURE__ */ i.createElement("div", { className: T(e, F.header) }, /* @__PURE__ */ i.createElement("div", { className: F.pickerListAndSearch }, /* @__PURE__ */ i.createElement("div", { className: F.pickerList }, /* @__PURE__ */ i.createElement(
|
|
276
|
-
},
|
|
277
|
-
list:
|
|
285
|
+
const n = s.filters.map((o) => /* @__PURE__ */ i.createElement(Jt, { key: o.property, filter: o }));
|
|
286
|
+
return /* @__PURE__ */ i.createElement("div", { className: T(e, F.header) }, /* @__PURE__ */ i.createElement("div", { className: F.pickerListAndSearch }, /* @__PURE__ */ i.createElement("div", { className: F.pickerList }, /* @__PURE__ */ i.createElement(os, null), /* @__PURE__ */ i.createElement(Wt, null), n), /* @__PURE__ */ i.createElement("div", { className: F.searchAndActions }, s.search && /* @__PURE__ */ i.createElement(rs, { className: F.searchField, search: s.search }), /* @__PURE__ */ i.createElement(G, { id: "actions" }))), /* @__PURE__ */ i.createElement(as, null));
|
|
287
|
+
}, cs = "flow--list", ds = {
|
|
288
|
+
list: cs
|
|
278
289
|
};
|
|
279
|
-
let
|
|
290
|
+
let us = class Ae {
|
|
280
291
|
constructor(e, t, s) {
|
|
281
292
|
r(this, "id");
|
|
282
293
|
r(this, "data");
|
|
@@ -284,19 +295,19 @@ let ds = class ke {
|
|
|
284
295
|
this.collection = e, this.id = t, this.data = s;
|
|
285
296
|
}
|
|
286
297
|
static fromRow(e, t) {
|
|
287
|
-
return new
|
|
298
|
+
return new Ae(e, t.id, t.original);
|
|
288
299
|
}
|
|
289
300
|
};
|
|
290
|
-
class
|
|
301
|
+
class ms {
|
|
291
302
|
constructor(e) {
|
|
292
303
|
r(this, "list");
|
|
293
304
|
this.list = e;
|
|
294
305
|
}
|
|
295
306
|
get entries() {
|
|
296
|
-
return this.list.reactTable.table.getRowModel().rows.map((e) =>
|
|
307
|
+
return this.list.reactTable.table.getRowModel().rows.map((e) => us.fromRow(this, e));
|
|
297
308
|
}
|
|
298
309
|
}
|
|
299
|
-
class
|
|
310
|
+
class hs {
|
|
300
311
|
constructor(e, t = {}) {
|
|
301
312
|
r(this, "batchSize");
|
|
302
313
|
r(this, "list");
|
|
@@ -343,8 +354,8 @@ class ms {
|
|
|
343
354
|
}
|
|
344
355
|
}
|
|
345
356
|
}
|
|
346
|
-
const
|
|
347
|
-
class
|
|
357
|
+
const gs = "$";
|
|
358
|
+
class fe {
|
|
348
359
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
349
360
|
constructor(e, t) {
|
|
350
361
|
r(this, "filter");
|
|
@@ -352,10 +363,10 @@ class pe {
|
|
|
352
363
|
this.filter = e, this.value = t;
|
|
353
364
|
}
|
|
354
365
|
equals(e) {
|
|
355
|
-
return
|
|
366
|
+
return et(this.value, e.value);
|
|
356
367
|
}
|
|
357
368
|
get id() {
|
|
358
|
-
return `${this.filter.property}@@${
|
|
369
|
+
return `${this.filter.property}@@${ye(this.value)}`;
|
|
359
370
|
}
|
|
360
371
|
get isActive() {
|
|
361
372
|
return this.filter.isValueActive(this);
|
|
@@ -370,8 +381,8 @@ class pe {
|
|
|
370
381
|
this.filter.deactivateValue(this);
|
|
371
382
|
}
|
|
372
383
|
}
|
|
373
|
-
const
|
|
374
|
-
class
|
|
384
|
+
const ps = (a, e) => a === e, fs = (a) => String(a);
|
|
385
|
+
class A {
|
|
375
386
|
constructor(e, t) {
|
|
376
387
|
r(this, "_values");
|
|
377
388
|
r(this, "_valuesFromTableState");
|
|
@@ -384,10 +395,10 @@ class k {
|
|
|
384
395
|
r(this, "onFilterUpdateCallbacks", /* @__PURE__ */ new Set());
|
|
385
396
|
r(this, "defaultSelectedValues");
|
|
386
397
|
var s;
|
|
387
|
-
this.list = e, this.property = t.property, this.mode = t.mode ?? "one", this._values = (s = t.values) == null ? void 0 : s.map((n) => new
|
|
398
|
+
this.list = e, this.property = t.property, this.mode = t.mode ?? "one", this._values = (s = t.values) == null ? void 0 : s.map((n) => new fe(this, n)), this.matcher = t.matcher ?? ps, this.renderItem = t.renderItem ?? fs, this.name = t.name, this.defaultSelectedValues = t.defaultSelected ? this.values.filter(
|
|
388
399
|
(n) => {
|
|
389
400
|
var o;
|
|
390
|
-
return (o = t.defaultSelected) == null ? void 0 : o.some((
|
|
401
|
+
return (o = t.defaultSelected) == null ? void 0 : o.some((l) => l === n.value);
|
|
391
402
|
}
|
|
392
403
|
) : void 0;
|
|
393
404
|
}
|
|
@@ -411,7 +422,7 @@ class k {
|
|
|
411
422
|
}
|
|
412
423
|
getReactTableFilterFn() {
|
|
413
424
|
return (e, t, s) => {
|
|
414
|
-
const n = this.property, o = n.startsWith(
|
|
425
|
+
const n = this.property, o = n.startsWith(gs) ? e.original : yt(e.original, n);
|
|
415
426
|
return this.checkFilterMatches(o, s);
|
|
416
427
|
};
|
|
417
428
|
}
|
|
@@ -439,9 +450,9 @@ class k {
|
|
|
439
450
|
return ((e = this.getTableColumnFilter()) == null ? void 0 : e.value) ?? null;
|
|
440
451
|
}
|
|
441
452
|
getValuesFromTableState() {
|
|
442
|
-
return
|
|
453
|
+
return tt(
|
|
443
454
|
Array.from(this.getTableColumn().getFacetedUniqueValues().keys()).flatMap((e) => e).filter((e) => e != null)
|
|
444
|
-
).map((e) => new
|
|
455
|
+
).map((e) => new fe(this, e));
|
|
445
456
|
}
|
|
446
457
|
checkIfValueIsUnknown(e) {
|
|
447
458
|
return !this.values.some((s) => s.id === e.id);
|
|
@@ -474,7 +485,7 @@ class k {
|
|
|
474
485
|
}
|
|
475
486
|
hasChanged() {
|
|
476
487
|
const e = this.getArrayValue().map((s) => s.value), t = (this.getInitialValues() ?? []).map((s) => s.value);
|
|
477
|
-
return e.length !== t.length ||
|
|
488
|
+
return e.length !== t.length || st(e, t).length > 0;
|
|
478
489
|
}
|
|
479
490
|
getInitialValues() {
|
|
480
491
|
return this.getStoredDefaultSelectedValues() ?? this.defaultSelectedValues;
|
|
@@ -484,6 +495,9 @@ class k {
|
|
|
484
495
|
const t = this.getInitialValues();
|
|
485
496
|
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());
|
|
486
497
|
}
|
|
498
|
+
clear() {
|
|
499
|
+
this.list.reactTable.getTableColumn(this.property).setFilterValue(null), this.onFilterUpdateCallbacks.forEach((e) => e());
|
|
500
|
+
}
|
|
487
501
|
toggleValue(e) {
|
|
488
502
|
const t = this.getArrayValue();
|
|
489
503
|
let s;
|
|
@@ -493,8 +507,8 @@ class k {
|
|
|
493
507
|
this.onFilterUpdateCallbacks.add(e);
|
|
494
508
|
}
|
|
495
509
|
}
|
|
496
|
-
r(
|
|
497
|
-
class
|
|
510
|
+
r(A, "settingsStorageSchema", V.record(V.array(V.unknown())).optional());
|
|
511
|
+
class bs {
|
|
498
512
|
constructor(e, t) {
|
|
499
513
|
r(this, "list");
|
|
500
514
|
r(this, "property");
|
|
@@ -528,7 +542,7 @@ class fs {
|
|
|
528
542
|
return `${this.getTableColumn().id}:${this.direction}`;
|
|
529
543
|
}
|
|
530
544
|
}
|
|
531
|
-
class
|
|
545
|
+
class Z {
|
|
532
546
|
constructor(e, t, s = {}) {
|
|
533
547
|
r(this, "list");
|
|
534
548
|
r(this, "table");
|
|
@@ -536,27 +550,27 @@ class Q {
|
|
|
536
550
|
r(this, "updateSortingState");
|
|
537
551
|
this.list = e;
|
|
538
552
|
const n = this.list.sorting.filter(
|
|
539
|
-
(
|
|
540
|
-
), [o,
|
|
541
|
-
n.map((
|
|
553
|
+
(d) => d.defaultEnabled !== !1
|
|
554
|
+
), [o, l] = J(
|
|
555
|
+
n.map((d) => d.getReactTableColumnSort())
|
|
542
556
|
);
|
|
543
|
-
this.sortingState = o, this.updateSortingState =
|
|
557
|
+
this.sortingState = o, this.updateSortingState = l, this.table = this.useReactTable(t, s);
|
|
544
558
|
}
|
|
545
559
|
static useNew(e, t, s = {}) {
|
|
546
|
-
return new
|
|
560
|
+
return new Z(e, t, s);
|
|
547
561
|
}
|
|
548
562
|
useReactTable(e, t = {}) {
|
|
549
|
-
var
|
|
563
|
+
var l;
|
|
550
564
|
const s = this.list.loader.useData(), n = {
|
|
551
565
|
pagination: {
|
|
552
566
|
pageSize: this.list.batches.batchSize
|
|
553
567
|
},
|
|
554
568
|
columnFilters: []
|
|
555
569
|
};
|
|
556
|
-
for (const
|
|
557
|
-
|
|
558
|
-
(
|
|
559
|
-
const o =
|
|
570
|
+
for (const d of this.list.filters)
|
|
571
|
+
d.updateInitialState(n);
|
|
572
|
+
(l = this.list.search) == null || l.updateInitialState(n);
|
|
573
|
+
const o = Et({
|
|
560
574
|
data: s,
|
|
561
575
|
state: {
|
|
562
576
|
sorting: this.sortingState
|
|
@@ -564,18 +578,18 @@ class Q {
|
|
|
564
578
|
getRowId: this.list.getItemId,
|
|
565
579
|
initialState: n,
|
|
566
580
|
columns: this.getTableColumnDefs(),
|
|
567
|
-
getCoreRowModel:
|
|
568
|
-
getSortedRowModel:
|
|
569
|
-
getFilteredRowModel:
|
|
570
|
-
getPaginationRowModel:
|
|
571
|
-
getFacetedUniqueValues:
|
|
572
|
-
onSortingChange: (
|
|
573
|
-
this.handleSortingStateUpdate(
|
|
581
|
+
getCoreRowModel: Ft(),
|
|
582
|
+
getSortedRowModel: Tt(),
|
|
583
|
+
getFilteredRowModel: Ct(),
|
|
584
|
+
getPaginationRowModel: It(),
|
|
585
|
+
getFacetedUniqueValues: Lt(),
|
|
586
|
+
onSortingChange: (d) => {
|
|
587
|
+
this.handleSortingStateUpdate(d);
|
|
574
588
|
},
|
|
575
589
|
globalFilterFn: "auto",
|
|
576
590
|
...t
|
|
577
591
|
});
|
|
578
|
-
return
|
|
592
|
+
return B(() => {
|
|
579
593
|
e && e(this.list);
|
|
580
594
|
}, [this.list, e, o]), o;
|
|
581
595
|
}
|
|
@@ -590,7 +604,7 @@ class Q {
|
|
|
590
604
|
}
|
|
591
605
|
getTableColumn(e) {
|
|
592
606
|
const t = this.table.getColumn(e);
|
|
593
|
-
return
|
|
607
|
+
return Ee(!!t, `Column #${e} is not defined`), t;
|
|
594
608
|
}
|
|
595
609
|
getTableColumnDefs() {
|
|
596
610
|
const e = /* @__PURE__ */ new Map(), t = (s) => {
|
|
@@ -612,26 +626,26 @@ class Q {
|
|
|
612
626
|
), Array.from(e.values());
|
|
613
627
|
}
|
|
614
628
|
}
|
|
615
|
-
class
|
|
629
|
+
class ee {
|
|
616
630
|
constructor() {
|
|
617
631
|
r(this, "dataBatches", []);
|
|
618
632
|
r(this, "prevDataBatches", []);
|
|
619
633
|
r(this, "batchLoadingStates", ["void"]);
|
|
620
|
-
|
|
634
|
+
bt(this, {
|
|
621
635
|
prevDataBatches: !1,
|
|
622
636
|
useMergedData: !1,
|
|
623
637
|
useIsLoading: !1,
|
|
624
|
-
dataBatches:
|
|
625
|
-
batchLoadingStates:
|
|
626
|
-
mergedData:
|
|
627
|
-
isLoading:
|
|
628
|
-
reset:
|
|
629
|
-
setDataBatch:
|
|
630
|
-
setBatchLoadingState:
|
|
638
|
+
dataBatches: me.shallow,
|
|
639
|
+
batchLoadingStates: me.shallow,
|
|
640
|
+
mergedData: he,
|
|
641
|
+
isLoading: he,
|
|
642
|
+
reset: q.bound,
|
|
643
|
+
setDataBatch: q.bound,
|
|
644
|
+
setBatchLoadingState: q.bound
|
|
631
645
|
});
|
|
632
646
|
}
|
|
633
647
|
static useNew() {
|
|
634
|
-
return
|
|
648
|
+
return Qe(new ee()).current;
|
|
635
649
|
}
|
|
636
650
|
reset() {
|
|
637
651
|
this.batchLoadingStates = [], this.dataBatches = [];
|
|
@@ -646,17 +660,17 @@ class X {
|
|
|
646
660
|
return (this.dataBatches.length === 0 ? this.prevDataBatches : this.dataBatches).flatMap((t) => t);
|
|
647
661
|
}
|
|
648
662
|
useMergedData() {
|
|
649
|
-
return
|
|
663
|
+
return pe(() => this.mergedData);
|
|
650
664
|
}
|
|
651
665
|
get isLoading() {
|
|
652
666
|
return this.batchLoadingStates.some((e) => e === "loading" || e === "void");
|
|
653
667
|
}
|
|
654
668
|
useIsLoading() {
|
|
655
|
-
return
|
|
669
|
+
return pe(() => this.isLoading);
|
|
656
670
|
}
|
|
657
671
|
}
|
|
658
672
|
const Ss = [];
|
|
659
|
-
class
|
|
673
|
+
class te {
|
|
660
674
|
constructor(e, t = {}) {
|
|
661
675
|
r(this, "list");
|
|
662
676
|
r(this, "dataSource");
|
|
@@ -664,14 +678,14 @@ class Z {
|
|
|
664
678
|
r(this, "manualFiltering");
|
|
665
679
|
r(this, "manualPagination");
|
|
666
680
|
r(this, "loaderState");
|
|
667
|
-
var
|
|
681
|
+
var d;
|
|
668
682
|
const { source: s } = t;
|
|
669
683
|
this.dataSource = s ?? { staticData: Ss };
|
|
670
|
-
const n = "manualPagination" in this.dataSource ? this.dataSource.manualPagination : void 0, o = "manualFiltering" in this.dataSource ? this.dataSource.manualFiltering : void 0,
|
|
671
|
-
this.list = e, this.loaderState =
|
|
684
|
+
const n = "manualPagination" in this.dataSource ? this.dataSource.manualPagination : void 0, o = "manualFiltering" in this.dataSource ? this.dataSource.manualFiltering : void 0, l = "manualSorting" in this.dataSource ? this.dataSource.manualSorting : void 0;
|
|
685
|
+
this.list = e, this.loaderState = ee.useNew(), this.manualPagination = n ?? !1, this.manualFiltering = o ?? 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());
|
|
672
686
|
}
|
|
673
687
|
static useNew(e, t = {}) {
|
|
674
|
-
return new
|
|
688
|
+
return new te(e, t);
|
|
675
689
|
}
|
|
676
690
|
reset() {
|
|
677
691
|
this.loaderState.reset();
|
|
@@ -686,7 +700,7 @@ class Z {
|
|
|
686
700
|
return this.loaderState.useMergedData();
|
|
687
701
|
}
|
|
688
702
|
getLoaderInvocationHooks() {
|
|
689
|
-
return
|
|
703
|
+
return it(this.list.batches.getBatchIndex() + 1, (t) => t).map((t) => () => {
|
|
690
704
|
this.useLoadBatch(t);
|
|
691
705
|
});
|
|
692
706
|
}
|
|
@@ -697,7 +711,7 @@ class Z {
|
|
|
697
711
|
}), this.useObserveBatchData(t, e), this.useObserveBatchLoadingState(t, e);
|
|
698
712
|
}
|
|
699
713
|
useObserveBatchLoadingState(e, t) {
|
|
700
|
-
|
|
714
|
+
B(() => (this.loaderState.setBatchLoadingState(
|
|
701
715
|
t,
|
|
702
716
|
e.state.value
|
|
703
717
|
), e.state.observe((s) => {
|
|
@@ -706,10 +720,10 @@ class Z {
|
|
|
706
720
|
}
|
|
707
721
|
useObserveBatchData(e, t) {
|
|
708
722
|
const s = (n) => {
|
|
709
|
-
const { data: o, itemTotalCount:
|
|
710
|
-
this.loaderState.setDataBatch(t, o),
|
|
723
|
+
const { data: o, itemTotalCount: l } = n;
|
|
724
|
+
this.loaderState.setDataBatch(t, o), l !== void 0 && this.list.batches.updateItemTotalCount(l);
|
|
711
725
|
};
|
|
712
|
-
|
|
726
|
+
B(() => (e.value.value.isSet && s(e.value.value.value), e.value.observe((n) => {
|
|
713
727
|
n.isSet && s(n.value);
|
|
714
728
|
})), [e, t]);
|
|
715
729
|
}
|
|
@@ -737,7 +751,7 @@ class Z {
|
|
|
737
751
|
getBatchDataAsyncResource(e) {
|
|
738
752
|
const t = this.dataSource, s = this.getDataLoaderOptions(e);
|
|
739
753
|
if ("staticData" in t)
|
|
740
|
-
return
|
|
754
|
+
return ge(
|
|
741
755
|
async (n) => ({
|
|
742
756
|
data: n,
|
|
743
757
|
itemTotalCount: n.length
|
|
@@ -745,9 +759,9 @@ class Z {
|
|
|
745
759
|
[t.staticData]
|
|
746
760
|
);
|
|
747
761
|
if ("asyncLoader" in t) {
|
|
748
|
-
const n = t.asyncLoader, o = t.dependencies,
|
|
749
|
-
return
|
|
750
|
-
loaderId:
|
|
762
|
+
const n = t.asyncLoader, o = t.dependencies, l = o ? ye(o).toString() : void 0;
|
|
763
|
+
return ge(n, [s], {
|
|
764
|
+
loaderId: l
|
|
751
765
|
});
|
|
752
766
|
}
|
|
753
767
|
if ("asyncResourceFactory" in t) {
|
|
@@ -757,7 +771,7 @@ class Z {
|
|
|
757
771
|
throw new Error("Unknown data source");
|
|
758
772
|
}
|
|
759
773
|
}
|
|
760
|
-
class
|
|
774
|
+
class vs {
|
|
761
775
|
constructor(e, t) {
|
|
762
776
|
r(this, "list");
|
|
763
777
|
r(this, "render");
|
|
@@ -788,36 +802,36 @@ class bs {
|
|
|
788
802
|
this.onUpdateCallbacks.add(e);
|
|
789
803
|
}
|
|
790
804
|
}
|
|
791
|
-
const
|
|
805
|
+
const x = class x {
|
|
792
806
|
constructor(e, t = {}) {
|
|
793
807
|
r(this, "list");
|
|
794
808
|
r(this, "textValue");
|
|
795
809
|
r(this, "href");
|
|
796
810
|
r(this, "fallback");
|
|
797
811
|
r(this, "renderFn");
|
|
798
|
-
const { fallback: s, textValue: n, href: o, renderFn:
|
|
799
|
-
this.list = e, this.textValue = n, this.renderFn =
|
|
812
|
+
const { fallback: s, textValue: n, href: o, renderFn: l } = t;
|
|
813
|
+
this.list = e, this.textValue = n, this.renderFn = l, this.href = o, this.fallback = s;
|
|
800
814
|
}
|
|
801
815
|
render(e) {
|
|
802
|
-
return (this.renderFn ??
|
|
816
|
+
return (this.renderFn ?? x.fallbackRenderItemFn)(e, this.list);
|
|
803
817
|
}
|
|
804
818
|
};
|
|
805
|
-
r(
|
|
806
|
-
let
|
|
819
|
+
r(x, "fallbackRenderItemFn", (e) => Se("pre", void 0, JSON.stringify(e)));
|
|
820
|
+
let j = x, ws = class {
|
|
807
821
|
constructor(e, t = {}) {
|
|
808
822
|
r(this, "tableHeader");
|
|
809
823
|
r(this, "componentProps");
|
|
810
824
|
this.tableHeader = e, this.componentProps = t;
|
|
811
825
|
}
|
|
812
|
-
},
|
|
826
|
+
}, ys = class {
|
|
813
827
|
constructor(e, t = {}) {
|
|
814
828
|
r(this, "table");
|
|
815
829
|
r(this, "componentProps");
|
|
816
830
|
r(this, "columns");
|
|
817
831
|
const { columns: s = [], ...n } = t;
|
|
818
|
-
this.table = e, this.columns = s.map((o) => new
|
|
832
|
+
this.table = e, this.columns = s.map((o) => new ws(this, o)), this.componentProps = n;
|
|
819
833
|
}
|
|
820
|
-
},
|
|
834
|
+
}, Es = class {
|
|
821
835
|
constructor(e, t = {}) {
|
|
822
836
|
r(this, "row");
|
|
823
837
|
r(this, "renderFn");
|
|
@@ -825,34 +839,34 @@ let q = D, vs = class {
|
|
|
825
839
|
const { renderFn: s, ...n } = t;
|
|
826
840
|
this.row = e, this.renderFn = s, this.componentProps = n;
|
|
827
841
|
}
|
|
828
|
-
},
|
|
842
|
+
}, Fs = class {
|
|
829
843
|
constructor(e, t = {}) {
|
|
830
844
|
r(this, "tableBody");
|
|
831
845
|
r(this, "cells");
|
|
832
846
|
r(this, "componentProps");
|
|
833
847
|
const { cells: s = [], ...n } = t;
|
|
834
|
-
this.tableBody = e, this.cells = s.map((o) => new
|
|
848
|
+
this.tableBody = e, this.cells = s.map((o) => new Es(this, o)), this.componentProps = n;
|
|
835
849
|
}
|
|
836
|
-
},
|
|
850
|
+
}, Ts = class {
|
|
837
851
|
constructor(e, t = {}) {
|
|
838
852
|
r(this, "table");
|
|
839
853
|
r(this, "componentProps");
|
|
840
854
|
r(this, "row");
|
|
841
855
|
const { row: s, ...n } = t;
|
|
842
|
-
this.table = e, this.row = new
|
|
856
|
+
this.table = e, this.row = new Fs(this, s), this.componentProps = n;
|
|
843
857
|
}
|
|
844
|
-
},
|
|
858
|
+
}, Cs = class {
|
|
845
859
|
constructor(e, t = {}) {
|
|
846
860
|
r(this, "list");
|
|
847
861
|
r(this, "header");
|
|
848
862
|
r(this, "body");
|
|
849
863
|
r(this, "componentProps");
|
|
850
864
|
const { header: s, body: n, ...o } = t;
|
|
851
|
-
this.list = e, this.header = new
|
|
865
|
+
this.list = e, this.header = new ys(this, s), this.body = new Ts(this, n), this.componentProps = o;
|
|
852
866
|
}
|
|
853
867
|
};
|
|
854
|
-
var
|
|
855
|
-
let
|
|
868
|
+
var v;
|
|
869
|
+
let Is = (v = class {
|
|
856
870
|
constructor(e) {
|
|
857
871
|
r(this, "filters");
|
|
858
872
|
r(this, "itemView");
|
|
@@ -878,32 +892,32 @@ let Cs = (b = class {
|
|
|
878
892
|
itemView: s,
|
|
879
893
|
table: n,
|
|
880
894
|
filters: o = [],
|
|
881
|
-
sorting:
|
|
882
|
-
batchesController:
|
|
883
|
-
onChange:
|
|
895
|
+
sorting: l = [],
|
|
896
|
+
batchesController: d,
|
|
897
|
+
onChange: c,
|
|
884
898
|
loader: u,
|
|
885
899
|
search: h,
|
|
886
900
|
onAction: C,
|
|
887
|
-
getItemId:
|
|
901
|
+
getItemId: R,
|
|
888
902
|
defaultViewMode: L,
|
|
889
|
-
|
|
903
|
+
...$
|
|
890
904
|
} = e;
|
|
891
|
-
this.settingsStore =
|
|
905
|
+
this.settingsStore = Pt(), this.settingStorageKey = t, this.filterSettingsStorageKey = t ? `${t}.activeFilters` : void 0, this.viewModeStorageKey = t ? `${t}.viewMode` : void 0, this.supportsSettingsStorage = !!this.settingStorageKey, this.items = new ms(this), this.filters = o.map((p) => new A(this, p)), this.sorting = l.map((p) => new bs(this, p)), this.search = h ? new vs(this, h) : void 0, this.itemView = s ? new j(this, s) : void 0, this.table = n ? new Cs(this, n) : void 0, this.batches = new hs(this, d), this.componentProps = $, this.loader = te.useNew(this, u), this.onAction = C, this.getItemId = R, this.reactTable = Z.useNew(this, c, {
|
|
892
906
|
manualFiltering: this.loader.manualFiltering,
|
|
893
907
|
manualPagination: this.loader.manualPagination,
|
|
894
908
|
manualSorting: this.loader.manualSorting
|
|
895
909
|
});
|
|
896
|
-
const [
|
|
910
|
+
const [z, U] = J(
|
|
897
911
|
L ?? this.getStoredViewModeDefaultSetting() ?? "list"
|
|
898
912
|
);
|
|
899
|
-
this.viewMode =
|
|
900
|
-
|
|
913
|
+
this.viewMode = z, this.setViewMode = (p) => {
|
|
914
|
+
U(p), this.settingsStore && this.viewModeStorageKey && this.settingsStore.set(
|
|
901
915
|
"List",
|
|
902
916
|
this.viewModeStorageKey,
|
|
903
|
-
|
|
917
|
+
v.viewModeSettingsStorageSchema,
|
|
904
918
|
p
|
|
905
919
|
);
|
|
906
|
-
},
|
|
920
|
+
}, B(() => {
|
|
907
921
|
this.filters.forEach((p) => p.deleteUnknownFilterValues());
|
|
908
922
|
}, [this.filters]);
|
|
909
923
|
}
|
|
@@ -914,7 +928,7 @@ let Cs = (b = class {
|
|
|
914
928
|
return this.sorting.filter((e) => e.defaultEnabled !== "hidden");
|
|
915
929
|
}
|
|
916
930
|
static useNew(e) {
|
|
917
|
-
return new
|
|
931
|
+
return new v(e);
|
|
918
932
|
}
|
|
919
933
|
storeFilterDefaultSettings() {
|
|
920
934
|
if (this.settingsStore && this.filterSettingsStorageKey) {
|
|
@@ -927,7 +941,7 @@ let Cs = (b = class {
|
|
|
927
941
|
this.settingsStore.set(
|
|
928
942
|
"List",
|
|
929
943
|
this.filterSettingsStorageKey,
|
|
930
|
-
|
|
944
|
+
A.settingsStorageSchema,
|
|
931
945
|
e
|
|
932
946
|
);
|
|
933
947
|
}
|
|
@@ -937,7 +951,7 @@ let Cs = (b = class {
|
|
|
937
951
|
return this.settingsStore.get(
|
|
938
952
|
"List",
|
|
939
953
|
this.filterSettingsStorageKey,
|
|
940
|
-
|
|
954
|
+
A.settingsStorageSchema
|
|
941
955
|
);
|
|
942
956
|
}
|
|
943
957
|
getStoredViewModeDefaultSetting() {
|
|
@@ -945,12 +959,12 @@ let Cs = (b = class {
|
|
|
945
959
|
return this.settingsStore.get(
|
|
946
960
|
"List",
|
|
947
961
|
this.viewModeStorageKey,
|
|
948
|
-
|
|
962
|
+
v.viewModeSettingsStorageSchema
|
|
949
963
|
);
|
|
950
964
|
}
|
|
951
965
|
getSorting(e) {
|
|
952
966
|
const t = this.sorting.find((s) => s.id === e);
|
|
953
|
-
return
|
|
967
|
+
return Ee(!!t, `Could not get Sorting (ID: ${e})`), t;
|
|
954
968
|
}
|
|
955
969
|
clearSorting() {
|
|
956
970
|
return this.sorting.forEach((e) => e.clear());
|
|
@@ -958,71 +972,74 @@ let Cs = (b = class {
|
|
|
958
972
|
resetFilters() {
|
|
959
973
|
return this.filters.forEach((e) => e.resetValues());
|
|
960
974
|
}
|
|
975
|
+
clearFilters() {
|
|
976
|
+
return this.filters.forEach((e) => e.clear());
|
|
977
|
+
}
|
|
961
978
|
useIsEmpty() {
|
|
962
979
|
return !this.loader.useIsLoading() && this.items.entries.length === 0;
|
|
963
980
|
}
|
|
964
|
-
}, r(
|
|
965
|
-
const
|
|
966
|
-
items:
|
|
967
|
-
isLoading:
|
|
968
|
-
},
|
|
969
|
-
item:
|
|
970
|
-
isSelected:
|
|
971
|
-
hasAction:
|
|
972
|
-
},
|
|
981
|
+
}, r(v, "viewModeSettingsStorageSchema", V.enum(["list", "table"]).optional()), v);
|
|
982
|
+
const Ls = "flow--list--items", Ps = "flow--list--items--is-loading", be = {
|
|
983
|
+
items: Ls,
|
|
984
|
+
isLoading: Ps
|
|
985
|
+
}, Vs = "flow--list--items--item", ks = "flow--list--items--item--is-selected", As = "flow--list--items--item--has-action", M = {
|
|
986
|
+
item: Vs,
|
|
987
|
+
isSelected: ks,
|
|
988
|
+
hasAction: As
|
|
989
|
+
}, Me = () => /* @__PURE__ */ i.createElement(Ve, null, /* @__PURE__ */ i.createElement(Q, null, /* @__PURE__ */ i.createElement(D, { width: "200px" })), /* @__PURE__ */ i.createElement(E, null, /* @__PURE__ */ i.createElement(D, { width: "300px" }))), Ms = (a) => {
|
|
973
990
|
const { id: e, data: t, children: s } = a, o = g().itemView;
|
|
974
991
|
if (!o)
|
|
975
992
|
return null;
|
|
976
|
-
const
|
|
993
|
+
const l = o.list.onAction, d = o.textValue ? o.textValue(t) : void 0, c = o.href ? o.href(t) : void 0, u = !!l || !!c;
|
|
977
994
|
return /* @__PURE__ */ i.createElement(
|
|
978
|
-
|
|
995
|
+
X.GridListItem,
|
|
979
996
|
{
|
|
980
997
|
id: e,
|
|
981
998
|
className: (h) => T(
|
|
982
|
-
|
|
983
|
-
u &&
|
|
984
|
-
h.isSelected &&
|
|
999
|
+
M.item,
|
|
1000
|
+
u && M.hasAction,
|
|
1001
|
+
h.isSelected && M.isSelected
|
|
985
1002
|
),
|
|
986
|
-
onAction: () =>
|
|
987
|
-
textValue:
|
|
988
|
-
href:
|
|
1003
|
+
onAction: () => l && l(t),
|
|
1004
|
+
textValue: d,
|
|
1005
|
+
href: c
|
|
989
1006
|
},
|
|
990
|
-
/* @__PURE__ */ i.createElement(
|
|
1007
|
+
/* @__PURE__ */ i.createElement(Xe, { fallback: /* @__PURE__ */ i.createElement(Me, null) }, s ?? o.render(t))
|
|
991
1008
|
);
|
|
992
|
-
},
|
|
993
|
-
const a = y(
|
|
994
|
-
return /* @__PURE__ */ i.createElement(
|
|
995
|
-
}, Bs = () => {
|
|
996
|
-
var t;
|
|
997
|
-
const e = ((t = g().itemView) == null ? void 0 : t.fallback) ?? /* @__PURE__ */ i.createElement(Ae, null);
|
|
998
|
-
return Array.from(Array(5)).map((s, n) => /* @__PURE__ */ i.createElement(Ms, { key: n }, Xe(e)));
|
|
1009
|
+
}, Bs = (a) => /* @__PURE__ */ i.createElement(X.GridListItem, { textValue: "-", className: M.item }, a.children), W = () => {
|
|
1010
|
+
const a = y(S);
|
|
1011
|
+
return /* @__PURE__ */ i.createElement(Vt, null, /* @__PURE__ */ i.createElement(kt, null), /* @__PURE__ */ i.createElement(Q, null, a.format("list.noResult.heading")), /* @__PURE__ */ i.createElement(E, null, a.format("list.noResult.text")));
|
|
999
1012
|
}, Ds = () => {
|
|
1013
|
+
var t;
|
|
1014
|
+
const e = ((t = g().itemView) == null ? void 0 : t.fallback) ?? /* @__PURE__ */ i.createElement(Me, null);
|
|
1015
|
+
return Array.from(Array(5)).map((s, n) => /* @__PURE__ */ i.createElement(Bs, { key: n }, Ze(e)));
|
|
1016
|
+
}, xs = () => {
|
|
1000
1017
|
const a = g(), e = a.loader.useIsLoading(), t = a.loader.useIsInitiallyLoading();
|
|
1001
1018
|
if (!a.itemView)
|
|
1002
1019
|
return null;
|
|
1003
|
-
const s = a.items.entries.map((o) => /* @__PURE__ */ i.createElement(
|
|
1020
|
+
const s = a.items.entries.map((o) => /* @__PURE__ */ i.createElement(Ms, { key: o.id, data: o.data, id: o.id })), n = T(be.items, e && be.isLoading);
|
|
1004
1021
|
return /* @__PURE__ */ i.createElement("div", { "aria-hidden": t, "aria-busy": e }, /* @__PURE__ */ i.createElement(
|
|
1005
|
-
|
|
1022
|
+
X.GridList,
|
|
1006
1023
|
{
|
|
1007
1024
|
className: n,
|
|
1008
1025
|
...a.componentProps,
|
|
1009
|
-
renderEmptyState: () => /* @__PURE__ */ i.createElement(
|
|
1026
|
+
renderEmptyState: () => /* @__PURE__ */ i.createElement(W, null)
|
|
1010
1027
|
},
|
|
1011
|
-
t ? /* @__PURE__ */ i.createElement(
|
|
1028
|
+
t ? /* @__PURE__ */ i.createElement(Ds, null) : s
|
|
1012
1029
|
));
|
|
1013
|
-
},
|
|
1014
|
-
footer:
|
|
1015
|
-
},
|
|
1016
|
-
const e = y(
|
|
1030
|
+
}, Be = (a) => null, Ns = () => Be, De = (a) => null, Rs = () => De, xe = (a) => null, $s = () => xe, Ne = (a) => null, zs = () => Ne, Re = (a) => null, Us = () => Re, Ks = "flow--list--footer", Os = {
|
|
1031
|
+
footer: Ks
|
|
1032
|
+
}, Hs = (a) => {
|
|
1033
|
+
const e = y(S), t = g(), s = t.batches, n = t.loader.useIsInitiallyLoading(), o = t.useIsEmpty(), l = s.getTotalItemsCount(), d = s.getVisibleItemsCount();
|
|
1017
1034
|
if (o)
|
|
1018
1035
|
return null;
|
|
1019
|
-
const
|
|
1020
|
-
visibleItemsCount:
|
|
1021
|
-
totalItemsCount:
|
|
1036
|
+
const c = n ? /* @__PURE__ */ i.createElement(Bt, { width: "200px" }) : e.format("list.paginationInfo", {
|
|
1037
|
+
visibleItemsCount: d,
|
|
1038
|
+
totalItemsCount: l
|
|
1022
1039
|
});
|
|
1023
|
-
return /* @__PURE__ */ i.createElement(E, { ...a },
|
|
1024
|
-
},
|
|
1025
|
-
const e = y(
|
|
1040
|
+
return /* @__PURE__ */ i.createElement(E, { ...a }, c);
|
|
1041
|
+
}, qs = (a) => {
|
|
1042
|
+
const e = y(S), t = g(), s = t.loader.useIsLoading(), n = t.loader.useIsInitiallyLoading();
|
|
1026
1043
|
return !t.batches.hasNextBatch() && !s ? null : /* @__PURE__ */ i.createElement(
|
|
1027
1044
|
w,
|
|
1028
1045
|
{
|
|
@@ -1035,47 +1052,47 @@ const Is = "flow--list--items", Ls = "flow--list--items--is-loading", fe = {
|
|
|
1035
1052
|
},
|
|
1036
1053
|
e.format("list.showMore")
|
|
1037
1054
|
);
|
|
1038
|
-
},
|
|
1039
|
-
function
|
|
1055
|
+
}, Gs = () => /* @__PURE__ */ i.createElement("div", { className: Os.footer }, /* @__PURE__ */ i.createElement(Hs, null), /* @__PURE__ */ i.createElement(qs, null));
|
|
1056
|
+
function $e(a) {
|
|
1040
1057
|
return null;
|
|
1041
1058
|
}
|
|
1042
|
-
const
|
|
1043
|
-
table:
|
|
1044
|
-
isLoading:
|
|
1045
|
-
row:
|
|
1046
|
-
isSelected:
|
|
1047
|
-
hasAction:
|
|
1048
|
-
},
|
|
1059
|
+
const js = () => $e, ze = (a) => null, Ue = (a) => null, Ke = (a) => null, Ws = (a) => /* @__PURE__ */ i.createElement(Fe, { ...a }, /* @__PURE__ */ i.createElement(Te, null, /* @__PURE__ */ i.createElement(Ce, null, /* @__PURE__ */ i.createElement(D, { width: "100%" }))), /* @__PURE__ */ i.createElement(Ie, null, Array.from(Array(5)).map((e, t) => /* @__PURE__ */ i.createElement(Le, { key: t }, /* @__PURE__ */ i.createElement(Pe, null, /* @__PURE__ */ i.createElement(D, { width: "100%" })))))), Js = "flow--list--table", Ys = "flow--list--table--is-loading", _s = "flow--list--table--row", Qs = "flow--list--table--is-selected", Xs = "flow--list--table--has-action", I = {
|
|
1060
|
+
table: Js,
|
|
1061
|
+
isLoading: Ys,
|
|
1062
|
+
row: _s,
|
|
1063
|
+
isSelected: Qs,
|
|
1064
|
+
hasAction: Xs
|
|
1065
|
+
}, Zs = () => {
|
|
1049
1066
|
const a = g(), e = a.table, t = a.useIsEmpty(), s = a.loader.useIsLoading(), n = a.loader.useIsInitiallyLoading();
|
|
1050
1067
|
if (!e)
|
|
1051
1068
|
return null;
|
|
1052
1069
|
if (n)
|
|
1053
|
-
return /* @__PURE__ */ i.createElement(
|
|
1070
|
+
return /* @__PURE__ */ i.createElement(Ws, { ...e.componentProps });
|
|
1054
1071
|
if (t)
|
|
1055
|
-
return /* @__PURE__ */ i.createElement(
|
|
1056
|
-
const o = e.list.onAction,
|
|
1072
|
+
return /* @__PURE__ */ i.createElement(W, null);
|
|
1073
|
+
const o = e.list.onAction, l = T(
|
|
1057
1074
|
I.table,
|
|
1058
1075
|
s && I.isLoading,
|
|
1059
1076
|
e.componentProps.className
|
|
1060
1077
|
);
|
|
1061
1078
|
return /* @__PURE__ */ i.createElement(
|
|
1062
|
-
|
|
1079
|
+
Fe,
|
|
1063
1080
|
{
|
|
1064
1081
|
...a.componentProps,
|
|
1065
1082
|
...e.componentProps,
|
|
1066
|
-
className:
|
|
1083
|
+
className: l
|
|
1067
1084
|
},
|
|
1068
|
-
/* @__PURE__ */ i.createElement(
|
|
1085
|
+
/* @__PURE__ */ i.createElement(Te, { ...e.header.componentProps }, e.header.columns.map((d, c) => /* @__PURE__ */ i.createElement(Ce, { key: c, ...d.componentProps }))),
|
|
1069
1086
|
/* @__PURE__ */ i.createElement(
|
|
1070
|
-
|
|
1087
|
+
Ie,
|
|
1071
1088
|
{
|
|
1072
1089
|
...e.body.componentProps,
|
|
1073
|
-
renderEmptyState: () => /* @__PURE__ */ i.createElement(
|
|
1090
|
+
renderEmptyState: () => /* @__PURE__ */ i.createElement(W, null)
|
|
1074
1091
|
},
|
|
1075
|
-
a.items.entries.map((
|
|
1076
|
-
var
|
|
1092
|
+
a.items.entries.map((d) => {
|
|
1093
|
+
var c;
|
|
1077
1094
|
return /* @__PURE__ */ i.createElement(
|
|
1078
|
-
|
|
1095
|
+
Le,
|
|
1079
1096
|
{
|
|
1080
1097
|
className: (u) => T(
|
|
1081
1098
|
I.row,
|
|
@@ -1083,48 +1100,48 @@ const Gs = () => Re, $e = (a) => null, ze = (a) => null, Ue = (a) => null, js =
|
|
|
1083
1100
|
e.body.row.componentProps.className,
|
|
1084
1101
|
u.isSelected && I.isSelected
|
|
1085
1102
|
),
|
|
1086
|
-
key:
|
|
1087
|
-
id:
|
|
1088
|
-
onAction: o ? () => o(
|
|
1103
|
+
key: d.id,
|
|
1104
|
+
id: d.id,
|
|
1105
|
+
onAction: o ? () => o(d.data) : void 0,
|
|
1089
1106
|
...e.body.row.componentProps
|
|
1090
1107
|
},
|
|
1091
|
-
(
|
|
1108
|
+
(c = e.body.row) == null ? void 0 : c.cells.map((u, h) => /* @__PURE__ */ i.createElement(Pe, { key: h, ...u.componentProps }, u.renderFn ? u.renderFn(d.data, a) : void 0))
|
|
1092
1109
|
);
|
|
1093
1110
|
})
|
|
1094
1111
|
)
|
|
1095
1112
|
);
|
|
1096
|
-
},
|
|
1097
|
-
var
|
|
1098
|
-
const { children: e, batchSize: t, onChange: s, refProp: n, ...o } = a,
|
|
1113
|
+
}, Oe = (a) => null, He = (a) => null, qe = (a) => null, ei = lt("List", (a) => {
|
|
1114
|
+
var se, ie, ae, ne, re, oe, le, ce, de;
|
|
1115
|
+
const { children: e, batchSize: t, onChange: s, refProp: n, ...o } = a, l = (se = b(
|
|
1099
1116
|
e,
|
|
1100
|
-
|
|
1101
|
-
)) == null ? void 0 :
|
|
1117
|
+
Be
|
|
1118
|
+
)) == null ? void 0 : se.props, d = (ie = b(
|
|
1102
1119
|
e,
|
|
1103
|
-
|
|
1104
|
-
)) == null ? void 0 :
|
|
1105
|
-
source:
|
|
1106
|
-
...c,
|
|
1107
|
-
asyncLoader: c.children
|
|
1108
|
-
} : l ? {
|
|
1120
|
+
At
|
|
1121
|
+
)) == null ? void 0 : ie.props, c = (ae = b(e, Re)) == null ? void 0 : ae.props, u = {
|
|
1122
|
+
source: l ? {
|
|
1109
1123
|
...l,
|
|
1110
|
-
|
|
1124
|
+
asyncLoader: l.children
|
|
1111
1125
|
} : d ? {
|
|
1112
|
-
|
|
1126
|
+
...d,
|
|
1127
|
+
asyncResourceFactory: d.children
|
|
1128
|
+
} : c ? {
|
|
1129
|
+
staticData: c.data
|
|
1113
1130
|
} : void 0
|
|
1114
|
-
}, h = (
|
|
1131
|
+
}, h = (ne = b(e, $e)) == null ? void 0 : ne.props, C = (re = b(e, Ne)) == null ? void 0 : re.props, R = (oe = b(e, Oe)) == null ? void 0 : oe.props, L = P(e, ze).map(
|
|
1115
1132
|
(f) => ({
|
|
1116
1133
|
...f.props,
|
|
1117
1134
|
name: f.props.children
|
|
1118
1135
|
})
|
|
1119
|
-
),
|
|
1136
|
+
), $ = P(e, Ke).map(
|
|
1120
1137
|
(f) => ({
|
|
1121
1138
|
...f.props,
|
|
1122
1139
|
renderFn: f.props.children
|
|
1123
1140
|
})
|
|
1124
|
-
),
|
|
1141
|
+
), z = (le = b(e, Ue)) == null ? void 0 : le.props, U = (ce = b(e, He)) == null ? void 0 : ce.props, p = (de = b(e, qe)) == null ? void 0 : de.props, K = Is.useNew({
|
|
1125
1142
|
onChange: s,
|
|
1126
1143
|
loader: u,
|
|
1127
|
-
filters: P(e,
|
|
1144
|
+
filters: P(e, De).map(
|
|
1128
1145
|
(f) => ({
|
|
1129
1146
|
...f.props,
|
|
1130
1147
|
renderItem: f.props.children
|
|
@@ -1135,77 +1152,77 @@ const Gs = () => Re, $e = (a) => null, ze = (a) => null, Ue = (a) => null, js =
|
|
|
1135
1152
|
textFieldProps: h,
|
|
1136
1153
|
defaultValue: h.defaultValue
|
|
1137
1154
|
} : void 0,
|
|
1138
|
-
sorting: P(e,
|
|
1155
|
+
sorting: P(e, xe).map((f) => f.props),
|
|
1139
1156
|
itemView: C ? {
|
|
1140
1157
|
...C,
|
|
1141
1158
|
renderFn: C.children
|
|
1142
1159
|
} : void 0,
|
|
1143
1160
|
table: L.length > 0 ? {
|
|
1144
1161
|
header: {
|
|
1145
|
-
...
|
|
1162
|
+
...U,
|
|
1146
1163
|
columns: L
|
|
1147
1164
|
},
|
|
1148
1165
|
body: {
|
|
1149
1166
|
...p,
|
|
1150
1167
|
row: {
|
|
1151
|
-
|
|
1152
|
-
cells:
|
|
1168
|
+
...z,
|
|
1169
|
+
cells: $
|
|
1153
1170
|
}
|
|
1154
1171
|
},
|
|
1155
|
-
...
|
|
1172
|
+
...R
|
|
1156
1173
|
} : void 0,
|
|
1157
1174
|
batchesController: {
|
|
1158
1175
|
batchSize: t
|
|
1159
1176
|
},
|
|
1160
1177
|
...o
|
|
1161
|
-
}),
|
|
1178
|
+
}), Ge = {
|
|
1162
1179
|
ActionGroup: {
|
|
1163
1180
|
className: F.actions,
|
|
1164
1181
|
tunnelId: "actions",
|
|
1165
1182
|
ignoreBreakpoint: !0
|
|
1166
1183
|
}
|
|
1167
|
-
},
|
|
1168
|
-
return /* @__PURE__ */ i.createElement(
|
|
1169
|
-
|
|
1184
|
+
}, je = !!b(e, Dt);
|
|
1185
|
+
return /* @__PURE__ */ i.createElement(ve, { props: Ge }, /* @__PURE__ */ i.createElement(we, null, /* @__PURE__ */ i.createElement(
|
|
1186
|
+
ke.Provider,
|
|
1170
1187
|
{
|
|
1171
1188
|
value: {
|
|
1172
|
-
list:
|
|
1189
|
+
list: K
|
|
1173
1190
|
}
|
|
1174
1191
|
},
|
|
1175
|
-
/* @__PURE__ */ i.createElement(
|
|
1176
|
-
/* @__PURE__ */ i.createElement("div", { className:
|
|
1192
|
+
/* @__PURE__ */ i.createElement(Gt, null),
|
|
1193
|
+
/* @__PURE__ */ i.createElement("div", { className: ds.list, ref: n }, e, /* @__PURE__ */ i.createElement(ls, { hasActionGroup: je }), K.viewMode === "list" && /* @__PURE__ */ i.createElement(xs, null), K.viewMode === "table" && /* @__PURE__ */ i.createElement(Zs, null), /* @__PURE__ */ i.createElement(Gs, null))
|
|
1177
1194
|
)));
|
|
1178
|
-
}),
|
|
1179
|
-
List:
|
|
1180
|
-
Filter:
|
|
1181
|
-
Search:
|
|
1182
|
-
Sorting:
|
|
1183
|
-
Item:
|
|
1184
|
-
ItemView:
|
|
1185
|
-
TableHeader:
|
|
1186
|
-
TableColumn:
|
|
1187
|
-
TableBody:
|
|
1188
|
-
TableRow:
|
|
1189
|
-
TableCell:
|
|
1190
|
-
Table:
|
|
1191
|
-
StaticData:
|
|
1192
|
-
LoaderAsync:
|
|
1193
|
-
LoaderAsyncResource:
|
|
1195
|
+
}), ti = () => ei, ea = () => ({
|
|
1196
|
+
List: ti(),
|
|
1197
|
+
Filter: Rs(),
|
|
1198
|
+
Search: js(),
|
|
1199
|
+
Sorting: $s(),
|
|
1200
|
+
Item: zs(),
|
|
1201
|
+
ItemView: Ve,
|
|
1202
|
+
TableHeader: He,
|
|
1203
|
+
TableColumn: ze,
|
|
1204
|
+
TableBody: qe,
|
|
1205
|
+
TableRow: Ue,
|
|
1206
|
+
TableCell: Ke,
|
|
1207
|
+
Table: Oe,
|
|
1208
|
+
StaticData: Us(),
|
|
1209
|
+
LoaderAsync: Ns(),
|
|
1210
|
+
LoaderAsyncResource: Mt()
|
|
1194
1211
|
});
|
|
1195
1212
|
export {
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1213
|
+
ei as List,
|
|
1214
|
+
De as ListFilter,
|
|
1215
|
+
Ne as ListItem,
|
|
1216
|
+
Ve as ListItemView,
|
|
1217
|
+
Be as ListLoaderAsync,
|
|
1218
|
+
xe as ListSorting,
|
|
1219
|
+
Re as ListStaticData,
|
|
1220
|
+
ti as TypedList,
|
|
1221
|
+
Rs as TypedListFilter,
|
|
1222
|
+
zs as TypedListItem,
|
|
1223
|
+
Ns as TypedListLoaderAsync,
|
|
1224
|
+
$s as TypedListSorting,
|
|
1225
|
+
Us as TypedListStaticData,
|
|
1226
|
+
ea as typedList,
|
|
1210
1227
|
g as useList
|
|
1211
1228
|
};
|