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