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