@mittwald/flow-react-components 0.1.0-alpha.182 → 0.1.0-alpha.184
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/List.js +228 -222
- package/dist/Skeleton-CKLaTmDR.js +22 -0
- package/dist/Skeleton.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/List/setupComponents/ListStaticData.d.ts +1 -1
- package/dist/types/components/List/typedList.d.ts +1 -1
- package/dist/types/components/SkeletonText/SkeletonText.d.ts +7 -0
- package/dist/types/components/SkeletonText/index.d.ts +4 -0
- package/dist/types/components/SkeletonText/stories/Default.stories.d.ts +9 -0
- package/package.json +4 -4
- package/dist/Skeleton-CgOx_15R.js +0 -14
package/dist/List.js
CHANGED
|
@@ -25,31 +25,31 @@ import { T as S } from "./Text-SLaOJhzj.js";
|
|
|
25
25
|
import { I as X } from "./IconChevronDown-d3q78pVs.js";
|
|
26
26
|
import { I as Z } from "./IconClose-9DrWhSP2.js";
|
|
27
27
|
import { T as It } from "./TextField-DhdMjRzb.js";
|
|
28
|
-
import { autorun as
|
|
28
|
+
import { autorun as kt, runInAction as At, makeObservable as xt, observable as U, computed as O, action as L } from "mobx";
|
|
29
29
|
import "./context-BB3_MApL.js";
|
|
30
|
-
import { u as
|
|
30
|
+
import { u as Vt } from "./useOnChange-C1Quwyuz.js";
|
|
31
31
|
import { getProperty as Bt } from "dot-prop";
|
|
32
32
|
import { useReactTable as Pt, getCoreRowModel as Dt, getSortedRowModel as Nt, getFilteredRowModel as Rt, getPaginationRowModel as zt, getFacetedUniqueValues as Mt } from "@tanstack/react-table";
|
|
33
33
|
import _ from "invariant";
|
|
34
|
-
import { useLocalObservable as
|
|
35
|
-
import { getAsyncResource as
|
|
36
|
-
import { u as
|
|
37
|
-
import * as
|
|
38
|
-
import { I as
|
|
34
|
+
import { useLocalObservable as $t } from "mobx-react-lite";
|
|
35
|
+
import { getAsyncResource as H } from "@mittwald/react-use-promise";
|
|
36
|
+
import { u as q } from "./useSelector-DpU7_HMO.js";
|
|
37
|
+
import * as V from "react-aria-components";
|
|
38
|
+
import { I as Ut } from "./IllustratedMessage-B3MHD01M.js";
|
|
39
39
|
import { I as Ot } from "./IconSearch-Bxe-heXD.js";
|
|
40
40
|
import { H as tt } from "./Heading-1M1gRZfk.js";
|
|
41
|
-
import {
|
|
42
|
-
import { d as y, a as K } from "./deepFindOfType-6pG0fH7S.js";
|
|
41
|
+
import { d as y, a as G } from "./deepFindOfType-6pG0fH7S.js";
|
|
43
42
|
import { ListLoaderAsyncResource as Ht, TypedListLoaderAsyncResource as qt } from "./List/ListLoaderAsyncResource.js";
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
43
|
+
import { S as Gt } from "./Skeleton-CKLaTmDR.js";
|
|
44
|
+
const Kt = "flow--list--items--item--view", jt = "flow--list--items--item--view--title", Jt = "flow--list--items--item--view--top-content", Wt = "flow--list--items--item--view--content", Yt = "flow--list--items--item--view--action", Qt = "flow--list--items--item--view--avatar", Xt = "flow--list--items--item--view--text", Zt = "flow--list--items--item--view--heading", d = {
|
|
45
|
+
view: Kt,
|
|
46
|
+
title: jt,
|
|
47
|
+
topContent: Jt,
|
|
48
|
+
content: Wt,
|
|
49
|
+
action: Yt,
|
|
50
|
+
avatar: Qt,
|
|
51
|
+
text: Xt,
|
|
52
|
+
heading: Zt,
|
|
53
53
|
"container-breakpoint-size-xs": "flow--list--items--item--view--container-breakpoint-size-xs",
|
|
54
54
|
"container-breakpoint-size-s": "flow--list--items--item--view--container-breakpoint-size-s",
|
|
55
55
|
"container-breakpoint-size-m": "flow--list--items--item--view--container-breakpoint-size-m",
|
|
@@ -75,28 +75,28 @@ const Gt = "flow--list--items--item--view", Kt = "flow--list--items--item--view-
|
|
|
75
75
|
"list.setSorting": (i) => `Sorting: ${i.property}`,
|
|
76
76
|
"list.showMore": "Show more",
|
|
77
77
|
"list.sorting": "Sorting"
|
|
78
|
-
} },
|
|
79
|
-
const { className: t, children: e } = i,
|
|
78
|
+
} }, _t = (i) => {
|
|
79
|
+
const { className: t, children: e } = i, s = b(g);
|
|
80
80
|
return /* @__PURE__ */ n.createElement(x, null, /* @__PURE__ */ n.createElement(
|
|
81
81
|
f,
|
|
82
82
|
{
|
|
83
83
|
variant: "plain",
|
|
84
84
|
className: t,
|
|
85
|
-
"aria-label":
|
|
85
|
+
"aria-label": s.format("list.options")
|
|
86
86
|
},
|
|
87
87
|
/* @__PURE__ */ n.createElement(Et, null)
|
|
88
88
|
), e);
|
|
89
|
-
},
|
|
90
|
-
const { children: t, className: e, containerBreakpointSize:
|
|
89
|
+
}, te = (i) => i === "top" ? d.topContent : i === "bottom" ? d.content : d.topContent, et = (i) => {
|
|
90
|
+
const { children: t, className: e, containerBreakpointSize: s = "m" } = i, a = {
|
|
91
91
|
ContextMenu: {
|
|
92
|
-
wrapWith: /* @__PURE__ */ n.createElement(
|
|
92
|
+
wrapWith: /* @__PURE__ */ n.createElement(_t, { className: d.action }),
|
|
93
93
|
placement: "bottom end"
|
|
94
94
|
},
|
|
95
95
|
Button: {
|
|
96
96
|
className: d.action
|
|
97
97
|
},
|
|
98
98
|
Content: {
|
|
99
|
-
className: wt((l) =>
|
|
99
|
+
className: wt((l) => te(l.slot)),
|
|
100
100
|
tunnelId: "topContent"
|
|
101
101
|
},
|
|
102
102
|
Avatar: {
|
|
@@ -118,23 +118,23 @@ const Gt = "flow--list--items--item--view", Kt = "flow--list--items--item--view-
|
|
|
118
118
|
}, o = C(
|
|
119
119
|
d.view,
|
|
120
120
|
e,
|
|
121
|
-
d[Ft(
|
|
121
|
+
d[Ft(s)]
|
|
122
122
|
);
|
|
123
|
-
return /* @__PURE__ */ n.createElement("div", { className: o }, /* @__PURE__ */ n.createElement(St, { props:
|
|
124
|
-
},
|
|
123
|
+
return /* @__PURE__ */ n.createElement("div", { className: o }, /* @__PURE__ */ n.createElement(St, { props: a }, /* @__PURE__ */ n.createElement(Ct, null, t, /* @__PURE__ */ n.createElement("div", { className: d.title }, /* @__PURE__ */ n.createElement($, { id: "title" })), /* @__PURE__ */ n.createElement($, { id: "topContent" }))));
|
|
124
|
+
}, st = ht({}), h = () => gt(st).list, ee = () => h().loader.getLoaderInvocationHooks().map((t, e) => /* @__PURE__ */ n.createElement(Tt, { key: e }, () => {
|
|
125
125
|
t();
|
|
126
|
-
})),
|
|
126
|
+
})), se = (i) => {
|
|
127
127
|
const { sorting: t } = i;
|
|
128
128
|
return /* @__PURE__ */ n.createElement(Q, { id: t.id }, t.name);
|
|
129
|
-
},
|
|
130
|
-
const { children: t, locales: e, variables:
|
|
131
|
-
return b(e).format(t,
|
|
129
|
+
}, I = (i) => {
|
|
130
|
+
const { children: t, locales: e, variables: s } = i;
|
|
131
|
+
return b(e).format(t, s);
|
|
132
132
|
}, ae = () => {
|
|
133
|
-
const i = h(), t = i.visibleSorting.map((
|
|
133
|
+
const i = h(), t = i.visibleSorting.map((a) => /* @__PURE__ */ n.createElement(se, { sorting: a, key: a.id }));
|
|
134
134
|
if (t.length === 0)
|
|
135
135
|
return null;
|
|
136
|
-
const e = i.visibleSorting.find((
|
|
137
|
-
|
|
136
|
+
const e = i.visibleSorting.find((a) => a.isSorted()), s = /* @__PURE__ */ n.createElement(S, null, e ? /* @__PURE__ */ n.createElement(
|
|
137
|
+
I,
|
|
138
138
|
{
|
|
139
139
|
locales: g,
|
|
140
140
|
variables: {
|
|
@@ -142,67 +142,67 @@ const Gt = "flow--list--items--item--view", Kt = "flow--list--items--item--view-
|
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
144
|
"list.setSorting"
|
|
145
|
-
) : /* @__PURE__ */ n.createElement(
|
|
146
|
-
return /* @__PURE__ */ n.createElement(x, null, /* @__PURE__ */ n.createElement(f, { variant: "soft", size: "s", color: "secondary" },
|
|
145
|
+
) : /* @__PURE__ */ n.createElement(I, { locales: g }, "list.sorting"));
|
|
146
|
+
return /* @__PURE__ */ n.createElement(x, null, /* @__PURE__ */ n.createElement(f, { variant: "soft", size: "s", color: "secondary" }, s, /* @__PURE__ */ n.createElement(X, null)), /* @__PURE__ */ n.createElement(
|
|
147
147
|
Y,
|
|
148
148
|
{
|
|
149
149
|
selectionMode: "single",
|
|
150
150
|
selectedKeys: e ? [e.id] : [],
|
|
151
|
-
onAction: (
|
|
152
|
-
i.getSorting(String(
|
|
151
|
+
onAction: (a) => {
|
|
152
|
+
i.getSorting(String(a)).enable();
|
|
153
153
|
}
|
|
154
154
|
},
|
|
155
155
|
t
|
|
156
156
|
));
|
|
157
|
-
},
|
|
158
|
-
const { filter: t } = i, { values: e, mode:
|
|
157
|
+
}, ie = (i) => {
|
|
158
|
+
const { filter: t } = i, { values: e, mode: s, name: a, property: o } = t, l = e.map((u) => /* @__PURE__ */ n.createElement(Q, { key: t.getValueId(u), id: String(u) }, String(u))), c = e.filter((u) => t.isValueActive(u)).map((u) => String(u)), m = (u) => {
|
|
159
159
|
t.toggleValue(u);
|
|
160
160
|
};
|
|
161
|
-
return /* @__PURE__ */ n.createElement(x, null, /* @__PURE__ */ n.createElement(f, { variant: "soft", size: "s", color: "secondary" }, /* @__PURE__ */ n.createElement(S, null,
|
|
161
|
+
return /* @__PURE__ */ n.createElement(x, null, /* @__PURE__ */ n.createElement(f, { variant: "soft", size: "s", color: "secondary" }, /* @__PURE__ */ n.createElement(S, null, a ?? o), /* @__PURE__ */ n.createElement(X, null)), /* @__PURE__ */ n.createElement(
|
|
162
162
|
Y,
|
|
163
163
|
{
|
|
164
164
|
onAction: m,
|
|
165
|
-
selectionMode:
|
|
165
|
+
selectionMode: s === "one" ? "single" : "multiple",
|
|
166
166
|
selectedKeys: c
|
|
167
167
|
},
|
|
168
168
|
l
|
|
169
169
|
));
|
|
170
|
-
},
|
|
171
|
-
header:
|
|
172
|
-
pickerListAndSearch:
|
|
173
|
-
pickerList:
|
|
174
|
-
searchField:
|
|
175
|
-
},
|
|
176
|
-
activeFilters:
|
|
177
|
-
clearButton:
|
|
178
|
-
},
|
|
170
|
+
}, ne = "flow--list--header", re = "flow--list--header--picker-list-and-search", oe = "flow--list--header--picker-list", le = "flow--list--header--search-field", w = {
|
|
171
|
+
header: ne,
|
|
172
|
+
pickerListAndSearch: re,
|
|
173
|
+
pickerList: oe,
|
|
174
|
+
searchField: le
|
|
175
|
+
}, ce = "flow--list--header--active-filters", ue = "flow--list--header--active-filters--clear-button", K = {
|
|
176
|
+
activeFilters: ce,
|
|
177
|
+
clearButton: ue
|
|
178
|
+
}, me = () => {
|
|
179
179
|
const i = h(), t = i.filters.flatMap(
|
|
180
|
-
(e) => e.values.filter((
|
|
180
|
+
(e) => e.values.filter((s) => e.isValueActive(s)).map((s) => /* @__PURE__ */ n.createElement(
|
|
181
181
|
f,
|
|
182
182
|
{
|
|
183
183
|
variant: "soft",
|
|
184
184
|
size: "s",
|
|
185
|
-
key: String(
|
|
186
|
-
onPress: () => e.deactivateValue(
|
|
185
|
+
key: String(s),
|
|
186
|
+
onPress: () => e.deactivateValue(s)
|
|
187
187
|
},
|
|
188
|
-
/* @__PURE__ */ n.createElement(S, null, String(
|
|
188
|
+
/* @__PURE__ */ n.createElement(S, null, String(s)),
|
|
189
189
|
/* @__PURE__ */ n.createElement(Z, null)
|
|
190
190
|
))
|
|
191
191
|
);
|
|
192
|
-
return t.length <= 0 ? null : /* @__PURE__ */ n.createElement("div", { className:
|
|
192
|
+
return t.length <= 0 ? null : /* @__PURE__ */ n.createElement("div", { className: K.activeFilters }, t, /* @__PURE__ */ n.createElement(
|
|
193
193
|
f,
|
|
194
194
|
{
|
|
195
|
-
className:
|
|
195
|
+
className: K.clearButton,
|
|
196
196
|
size: "s",
|
|
197
197
|
variant: "plain",
|
|
198
198
|
onPress: () => i.clearFilters()
|
|
199
199
|
},
|
|
200
|
-
/* @__PURE__ */ n.createElement(
|
|
200
|
+
/* @__PURE__ */ n.createElement(I, { locales: g }, "list.resetAll")
|
|
201
201
|
));
|
|
202
|
-
},
|
|
203
|
-
const { className: t, onChange: e, value:
|
|
204
|
-
|
|
205
|
-
c(
|
|
202
|
+
}, de = (i) => {
|
|
203
|
+
const { className: t, onChange: e, value: s, ...a } = i, o = b(g), [l, c] = pt(s ?? "");
|
|
204
|
+
Vt(s, () => {
|
|
205
|
+
c(s ?? "");
|
|
206
206
|
}, [l]);
|
|
207
207
|
const m = o.format("list.search"), u = () => {
|
|
208
208
|
e(void 0), c("");
|
|
@@ -218,7 +218,7 @@ const Gt = "flow--list--items--item--view", Kt = "flow--list--items--item--view-
|
|
|
218
218
|
value: l,
|
|
219
219
|
onKeyUp: v,
|
|
220
220
|
onChange: (p) => c(p),
|
|
221
|
-
...
|
|
221
|
+
...a
|
|
222
222
|
}
|
|
223
223
|
), /* @__PURE__ */ n.createElement(
|
|
224
224
|
f,
|
|
@@ -231,50 +231,50 @@ const Gt = "flow--list--items--item--view", Kt = "flow--list--items--item--view-
|
|
|
231
231
|
},
|
|
232
232
|
/* @__PURE__ */ n.createElement(Z, null)
|
|
233
233
|
));
|
|
234
|
-
},
|
|
235
|
-
const { className: t, search: e } = i,
|
|
236
|
-
return W(
|
|
234
|
+
}, he = (i) => {
|
|
235
|
+
const { className: t, search: e } = i, s = e.render ?? de;
|
|
236
|
+
return W(s, {
|
|
237
237
|
className: t,
|
|
238
238
|
value: e.value,
|
|
239
239
|
onChange: e.setValue.bind(e),
|
|
240
240
|
...e.textFieldProps
|
|
241
241
|
});
|
|
242
|
-
},
|
|
242
|
+
}, ge = (i) => {
|
|
243
243
|
const { className: t } = i, e = h();
|
|
244
244
|
if (e.filters.length === 0 && e.visibleSorting.length === 0 && !e.search)
|
|
245
245
|
return null;
|
|
246
|
-
const
|
|
247
|
-
return /* @__PURE__ */ n.createElement("div", { className: C(t, w.header) }, /* @__PURE__ */ n.createElement("div", { className: w.pickerListAndSearch }, /* @__PURE__ */ n.createElement("div", { className: w.pickerList }, /* @__PURE__ */ n.createElement(ae, null),
|
|
248
|
-
},
|
|
249
|
-
list:
|
|
246
|
+
const s = e.filters.map((a) => /* @__PURE__ */ n.createElement(ie, { key: a.property, filter: a }));
|
|
247
|
+
return /* @__PURE__ */ n.createElement("div", { className: C(t, w.header) }, /* @__PURE__ */ n.createElement("div", { className: w.pickerListAndSearch }, /* @__PURE__ */ n.createElement("div", { className: w.pickerList }, /* @__PURE__ */ n.createElement(ae, null), s), e.search && /* @__PURE__ */ n.createElement(he, { className: w.searchField, search: e.search })), /* @__PURE__ */ n.createElement(me, null));
|
|
248
|
+
}, pe = "flow--list", fe = {
|
|
249
|
+
list: pe
|
|
250
250
|
};
|
|
251
|
-
let
|
|
252
|
-
constructor(t, e,
|
|
251
|
+
let be = class at {
|
|
252
|
+
constructor(t, e, s) {
|
|
253
253
|
r(this, "id");
|
|
254
254
|
r(this, "data");
|
|
255
255
|
r(this, "collection");
|
|
256
|
-
this.collection = t, this.id = e, this.data =
|
|
256
|
+
this.collection = t, this.id = e, this.data = s;
|
|
257
257
|
}
|
|
258
258
|
static fromRow(t, e) {
|
|
259
|
-
return new
|
|
259
|
+
return new at(t, e.id, e.original);
|
|
260
260
|
}
|
|
261
261
|
};
|
|
262
|
-
class
|
|
262
|
+
class Se {
|
|
263
263
|
constructor(t) {
|
|
264
264
|
r(this, "list");
|
|
265
265
|
this.list = t;
|
|
266
266
|
}
|
|
267
267
|
get entries() {
|
|
268
|
-
return this.list.reactTable.table.getRowModel().rows.map((t) =>
|
|
268
|
+
return this.list.reactTable.table.getRowModel().rows.map((t) => be.fromRow(this, t));
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
class
|
|
271
|
+
class ve {
|
|
272
272
|
constructor(t, e = {}) {
|
|
273
273
|
r(this, "batchSize");
|
|
274
274
|
r(this, "list");
|
|
275
|
-
var
|
|
276
|
-
const { batchSize:
|
|
277
|
-
this.list = t, this.batchSize =
|
|
275
|
+
var a;
|
|
276
|
+
const { batchSize: s = 20 } = e;
|
|
277
|
+
this.list = t, this.batchSize = s, t.filters.forEach((o) => o.onFilterUpdated(() => this.reset())), (a = t.search) == null || a.onUpdated(() => this.reset());
|
|
278
278
|
}
|
|
279
279
|
get reactTable() {
|
|
280
280
|
return this.list.reactTable.table;
|
|
@@ -315,8 +315,8 @@ class Se {
|
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
|
-
const
|
|
319
|
-
class
|
|
318
|
+
const ye = (i, t) => i === t;
|
|
319
|
+
class we {
|
|
320
320
|
constructor(t, e) {
|
|
321
321
|
r(this, "_values");
|
|
322
322
|
r(this, "list");
|
|
@@ -325,28 +325,28 @@ class ye {
|
|
|
325
325
|
r(this, "matcher");
|
|
326
326
|
r(this, "name");
|
|
327
327
|
r(this, "onFilterUpdateCallbacks", /* @__PURE__ */ new Set());
|
|
328
|
-
this.list = t, this.property = e.property, this.mode = e.mode ?? "one", this._values = e.values, this.matcher = e.matcher ??
|
|
328
|
+
this.list = t, this.property = e.property, this.mode = e.mode ?? "one", this._values = e.values, this.matcher = e.matcher ?? ye, this.name = e.name;
|
|
329
329
|
}
|
|
330
330
|
updateTableColumnDef(t) {
|
|
331
331
|
t.enableColumnFilter = !0, t.filterFn = this.getReactTableFilterFn();
|
|
332
332
|
}
|
|
333
333
|
getReactTableFilterFn() {
|
|
334
|
-
return (t, e,
|
|
334
|
+
return (t, e, s) => this.checkFilterMatches(
|
|
335
335
|
Bt(t.original, this.property),
|
|
336
|
-
|
|
336
|
+
s
|
|
337
337
|
);
|
|
338
338
|
}
|
|
339
339
|
checkFilterMatches(t, e) {
|
|
340
340
|
if (e === null)
|
|
341
341
|
return !0;
|
|
342
|
-
const
|
|
342
|
+
const s = (o) => Array.isArray(o) ? o : [o], a = (o) => this.matcher(o, t);
|
|
343
343
|
if (this.mode === "all")
|
|
344
|
-
return
|
|
344
|
+
return s(e).every(a);
|
|
345
345
|
if (this.mode === "some") {
|
|
346
|
-
const o =
|
|
347
|
-
return o.length === 0 || o.some(
|
|
346
|
+
const o = s(e);
|
|
347
|
+
return o.length === 0 || o.some(a);
|
|
348
348
|
} else if (this.mode === "one")
|
|
349
|
-
return
|
|
349
|
+
return a(e);
|
|
350
350
|
throw new Error(`Unknown filter mode '${this.mode}'`);
|
|
351
351
|
}
|
|
352
352
|
getTableColumnFilter() {
|
|
@@ -379,28 +379,28 @@ class ye {
|
|
|
379
379
|
}
|
|
380
380
|
activateValue(t) {
|
|
381
381
|
const e = this.getArrayValue();
|
|
382
|
-
let
|
|
383
|
-
this.mode === "all" || this.mode === "some" ?
|
|
382
|
+
let s;
|
|
383
|
+
this.mode === "all" || this.mode === "some" ? s = [...e, t] : s = t, this.list.reactTable.getTableColumn(this.property).setFilterValue(s), this.onFilterUpdateCallbacks.forEach((a) => a());
|
|
384
384
|
}
|
|
385
385
|
deactivateValue(t) {
|
|
386
386
|
const e = this.getArrayValue();
|
|
387
|
-
let
|
|
388
|
-
this.mode === "all" || this.mode === "some" ?
|
|
387
|
+
let s;
|
|
388
|
+
this.mode === "all" || this.mode === "some" ? s = e.filter((a) => a !== t) : s = null, this.list.reactTable.getTableColumn(this.property).setFilterValue(s), this.onFilterUpdateCallbacks.forEach((a) => a());
|
|
389
389
|
}
|
|
390
390
|
clearValues() {
|
|
391
391
|
let t;
|
|
392
392
|
this.mode === "all" || this.mode === "some" ? t = [] : t = null, this.list.reactTable.getTableColumn(this.property).setFilterValue(t), this.onFilterUpdateCallbacks.forEach((e) => e());
|
|
393
393
|
}
|
|
394
394
|
toggleValue(t) {
|
|
395
|
-
const e = this.isValueActive(t),
|
|
396
|
-
let
|
|
397
|
-
this.mode === "all" || this.mode === "some" ? e ?
|
|
395
|
+
const e = this.isValueActive(t), s = this.getArrayValue();
|
|
396
|
+
let a;
|
|
397
|
+
this.mode === "all" || this.mode === "some" ? e ? a = s.filter((o) => o !== t) : a = [...s, t] : a = e ? null : t, this.list.reactTable.getTableColumn(this.property).setFilterValue(a), this.onFilterUpdateCallbacks.forEach((o) => o());
|
|
398
398
|
}
|
|
399
399
|
onFilterUpdated(t) {
|
|
400
400
|
this.onFilterUpdateCallbacks.add(t);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
class
|
|
403
|
+
class Ee {
|
|
404
404
|
constructor(t, e) {
|
|
405
405
|
r(this, "list");
|
|
406
406
|
r(this, "property");
|
|
@@ -434,8 +434,8 @@ class we {
|
|
|
434
434
|
return `${this.getTableColumn().id}:${this.direction}`;
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
const
|
|
438
|
-
class
|
|
437
|
+
const Ce = (i) => T(kt(i));
|
|
438
|
+
class B {
|
|
439
439
|
constructor(t, e = {}) {
|
|
440
440
|
r(this, "list");
|
|
441
441
|
r(this, "table");
|
|
@@ -444,26 +444,26 @@ class P {
|
|
|
444
444
|
const e = this.tableState.value;
|
|
445
445
|
if (!e)
|
|
446
446
|
return;
|
|
447
|
-
const
|
|
448
|
-
|
|
449
|
-
this.finalizeTableState(
|
|
447
|
+
const s = typeof t == "function" ? t(e) : t;
|
|
448
|
+
At(() => {
|
|
449
|
+
this.finalizeTableState(s), this.tableState.value = s;
|
|
450
450
|
});
|
|
451
451
|
});
|
|
452
|
-
this.list = t, this.tableState =
|
|
452
|
+
this.list = t, this.tableState = $t(() => ({ value: void 0 })), this.table = this.useReactTable(e);
|
|
453
453
|
}
|
|
454
454
|
static useNew(t, e = {}) {
|
|
455
|
-
return new
|
|
455
|
+
return new B(t, e);
|
|
456
456
|
}
|
|
457
457
|
useReactTable(t = {}) {
|
|
458
|
-
const e = this.list.loader.useData(),
|
|
458
|
+
const e = this.list.loader.useData(), s = this.list.sorting.filter(
|
|
459
459
|
(o) => o.defaultEnabled !== !1
|
|
460
|
-
),
|
|
460
|
+
), a = Pt({
|
|
461
461
|
data: e,
|
|
462
462
|
initialState: {
|
|
463
463
|
pagination: {
|
|
464
464
|
pageSize: this.list.batches.batchSize
|
|
465
465
|
},
|
|
466
|
-
sorting:
|
|
466
|
+
sorting: s.map((o) => o.getReactTableColumnSort())
|
|
467
467
|
},
|
|
468
468
|
columns: this.getTableColumnDefs(),
|
|
469
469
|
getCoreRowModel: Dt(),
|
|
@@ -475,21 +475,21 @@ class P {
|
|
|
475
475
|
globalFilterFn: "auto",
|
|
476
476
|
...t
|
|
477
477
|
});
|
|
478
|
-
return this.useUpdateTableState(
|
|
478
|
+
return this.useUpdateTableState(a), a;
|
|
479
479
|
}
|
|
480
480
|
useUpdateTableState(t) {
|
|
481
|
-
|
|
481
|
+
Ce(() => {
|
|
482
482
|
const e = this.tableState.value;
|
|
483
|
-
e ? t.setOptions((
|
|
484
|
-
...
|
|
483
|
+
e ? t.setOptions((s) => ({
|
|
484
|
+
...s,
|
|
485
485
|
state: e
|
|
486
486
|
})) : this.tableState.value = t.getState();
|
|
487
487
|
});
|
|
488
488
|
}
|
|
489
489
|
finalizeTableState(t) {
|
|
490
490
|
const e = this.list.sorting.filter(
|
|
491
|
-
(
|
|
492
|
-
).map((
|
|
491
|
+
(s) => s.defaultEnabled === "hidden" && !t.sorting.some((a) => a.id === s.property)
|
|
492
|
+
).map((s) => s.getReactTableColumnSort());
|
|
493
493
|
t.sorting.unshift(...e);
|
|
494
494
|
}
|
|
495
495
|
get searchString() {
|
|
@@ -501,45 +501,45 @@ class P {
|
|
|
501
501
|
return _(!!e, `Column #${t} is not defined`), e;
|
|
502
502
|
}
|
|
503
503
|
getTableColumnDefs() {
|
|
504
|
-
const t = /* @__PURE__ */ new Map(), e = (
|
|
505
|
-
const
|
|
506
|
-
if (
|
|
507
|
-
return
|
|
504
|
+
const t = /* @__PURE__ */ new Map(), e = (s) => {
|
|
505
|
+
const a = t.get(s);
|
|
506
|
+
if (a)
|
|
507
|
+
return a;
|
|
508
508
|
const o = {
|
|
509
|
-
id:
|
|
510
|
-
accessorKey:
|
|
509
|
+
id: s,
|
|
510
|
+
accessorKey: s,
|
|
511
511
|
enableSorting: !1,
|
|
512
512
|
enableColumnFilter: !1
|
|
513
513
|
};
|
|
514
|
-
return t.set(
|
|
514
|
+
return t.set(s, o), o;
|
|
515
515
|
};
|
|
516
516
|
return this.list.filters.forEach(
|
|
517
|
-
(
|
|
517
|
+
(s) => s.updateTableColumnDef(e(s.property))
|
|
518
518
|
), this.list.sorting.forEach(
|
|
519
|
-
(
|
|
519
|
+
(s) => s.updateTableColumnDef(e(s.property))
|
|
520
520
|
), Array.from(t.values());
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
class
|
|
523
|
+
class P {
|
|
524
524
|
constructor() {
|
|
525
525
|
r(this, "dataBatches", []);
|
|
526
526
|
r(this, "prevDataBatches", []);
|
|
527
527
|
r(this, "batchLoadingStates", ["void"]);
|
|
528
|
-
|
|
528
|
+
xt(this, {
|
|
529
529
|
prevDataBatches: !1,
|
|
530
530
|
useMergedData: !1,
|
|
531
531
|
useIsLoading: !1,
|
|
532
|
-
dataBatches:
|
|
533
|
-
batchLoadingStates:
|
|
534
|
-
mergedData:
|
|
535
|
-
isLoading:
|
|
532
|
+
dataBatches: U.shallow,
|
|
533
|
+
batchLoadingStates: U.shallow,
|
|
534
|
+
mergedData: O,
|
|
535
|
+
isLoading: O,
|
|
536
536
|
reset: L.bound,
|
|
537
537
|
setDataBatch: L.bound,
|
|
538
538
|
setBatchLoadingState: L.bound
|
|
539
539
|
});
|
|
540
540
|
}
|
|
541
541
|
static useNew() {
|
|
542
|
-
return ft(new
|
|
542
|
+
return ft(new P()).current;
|
|
543
543
|
}
|
|
544
544
|
reset() {
|
|
545
545
|
this.batchLoadingStates = [], this.dataBatches = [];
|
|
@@ -554,17 +554,17 @@ class D {
|
|
|
554
554
|
return (this.dataBatches.length === 0 ? this.prevDataBatches : this.dataBatches).flatMap((e) => e);
|
|
555
555
|
}
|
|
556
556
|
useMergedData() {
|
|
557
|
-
return
|
|
557
|
+
return q(() => this.mergedData);
|
|
558
558
|
}
|
|
559
559
|
get isLoading() {
|
|
560
560
|
return this.batchLoadingStates.some((t) => t === "loading" || t === "void");
|
|
561
561
|
}
|
|
562
562
|
useIsLoading() {
|
|
563
|
-
return
|
|
563
|
+
return q(() => this.isLoading);
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
|
-
const
|
|
567
|
-
class
|
|
566
|
+
const Fe = [];
|
|
567
|
+
class D {
|
|
568
568
|
constructor(t, e = {}) {
|
|
569
569
|
r(this, "list");
|
|
570
570
|
r(this, "dataSource");
|
|
@@ -573,13 +573,13 @@ class N {
|
|
|
573
573
|
r(this, "manualPagination");
|
|
574
574
|
r(this, "loaderState");
|
|
575
575
|
var c;
|
|
576
|
-
const { source:
|
|
577
|
-
this.dataSource =
|
|
578
|
-
const
|
|
579
|
-
this.list = t, this.loaderState =
|
|
576
|
+
const { source: s } = e;
|
|
577
|
+
this.dataSource = s ?? { staticData: Fe };
|
|
578
|
+
const a = "manualPagination" in this.dataSource ? this.dataSource.manualPagination : void 0, o = "manualFiltering" in this.dataSource ? this.dataSource.manualFiltering : void 0, l = "manualSorting" in this.dataSource ? this.dataSource.manualSorting : void 0;
|
|
579
|
+
this.list = t, this.loaderState = P.useNew(), this.manualPagination = a ?? !1, this.manualFiltering = o ?? this.manualPagination, this.manualSorting = l ?? this.manualPagination, this.list.filters.forEach((m) => m.onFilterUpdated(() => this.reset())), (c = this.list.search) == null || c.onUpdated(() => this.reset());
|
|
580
580
|
}
|
|
581
581
|
static useNew(t, e = {}) {
|
|
582
|
-
return new
|
|
582
|
+
return new D(t, e);
|
|
583
583
|
}
|
|
584
584
|
reset() {
|
|
585
585
|
this.loaderState.reset();
|
|
@@ -608,17 +608,17 @@ class N {
|
|
|
608
608
|
T(() => (this.loaderState.setBatchLoadingState(
|
|
609
609
|
e,
|
|
610
610
|
t.state.value
|
|
611
|
-
), t.state.observe((
|
|
612
|
-
this.loaderState.setBatchLoadingState(e,
|
|
611
|
+
), t.state.observe((s) => {
|
|
612
|
+
this.loaderState.setBatchLoadingState(e, s);
|
|
613
613
|
})), [t, e]);
|
|
614
614
|
}
|
|
615
615
|
useObserveBatchData(t, e) {
|
|
616
|
-
const
|
|
617
|
-
const { data: o, itemTotalCount: l } =
|
|
616
|
+
const s = (a) => {
|
|
617
|
+
const { data: o, itemTotalCount: l } = a;
|
|
618
618
|
this.loaderState.setDataBatch(e, o), l !== void 0 && this.list.batches.updateItemTotalCount(l);
|
|
619
619
|
};
|
|
620
|
-
T(() => (t.value.value.isSet &&
|
|
621
|
-
|
|
620
|
+
T(() => (t.value.value.isSet && s(t.value.value.value), t.value.observe((a) => {
|
|
621
|
+
a.isSet && s(a.value);
|
|
622
622
|
})), [t, e]);
|
|
623
623
|
}
|
|
624
624
|
getDataLoaderOptions(t) {
|
|
@@ -640,27 +640,27 @@ class N {
|
|
|
640
640
|
};
|
|
641
641
|
}
|
|
642
642
|
getBatchDataAsyncResource(t) {
|
|
643
|
-
const e = this.dataSource,
|
|
643
|
+
const e = this.dataSource, s = this.getDataLoaderOptions(t);
|
|
644
644
|
if ("staticData" in e)
|
|
645
|
-
return
|
|
646
|
-
async (
|
|
647
|
-
data:
|
|
648
|
-
itemTotalCount:
|
|
645
|
+
return H(
|
|
646
|
+
async (a) => ({
|
|
647
|
+
data: a,
|
|
648
|
+
itemTotalCount: a.length
|
|
649
649
|
}),
|
|
650
650
|
[e.staticData]
|
|
651
651
|
);
|
|
652
652
|
if ("asyncLoader" in e) {
|
|
653
|
-
const
|
|
654
|
-
return
|
|
653
|
+
const a = e.asyncLoader;
|
|
654
|
+
return H(a, [s]);
|
|
655
655
|
}
|
|
656
656
|
if ("asyncResourceFactory" in e) {
|
|
657
|
-
const
|
|
658
|
-
return s
|
|
657
|
+
const a = e.asyncResourceFactory;
|
|
658
|
+
return a(s);
|
|
659
659
|
}
|
|
660
660
|
throw new Error("Unknown data source");
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
|
-
class
|
|
663
|
+
class Le {
|
|
664
664
|
constructor(t, e) {
|
|
665
665
|
r(this, "list");
|
|
666
666
|
r(this, "render");
|
|
@@ -692,15 +692,15 @@ const E = class E {
|
|
|
692
692
|
r(this, "onAction");
|
|
693
693
|
r(this, "fallback");
|
|
694
694
|
r(this, "renderFn");
|
|
695
|
-
const { onAction:
|
|
696
|
-
this.list = t, this.textValue = o, this.renderFn = c, this.href = l, this.onAction =
|
|
695
|
+
const { onAction: s, fallback: a, textValue: o, href: l, renderFn: c } = e;
|
|
696
|
+
this.list = t, this.textValue = o, this.renderFn = c, this.href = l, this.onAction = s, this.fallback = a;
|
|
697
697
|
}
|
|
698
698
|
render(t) {
|
|
699
699
|
return (this.renderFn ?? E.fallbackRenderItemFn)(t);
|
|
700
700
|
}
|
|
701
701
|
};
|
|
702
702
|
r(E, "fallbackRenderItemFn", (t) => W("pre", void 0, JSON.stringify(t)));
|
|
703
|
-
let k = E,
|
|
703
|
+
let k = E, Te = class it {
|
|
704
704
|
constructor(t) {
|
|
705
705
|
r(this, "filters");
|
|
706
706
|
r(this, "itemView");
|
|
@@ -713,12 +713,12 @@ let k = E, Le = class it {
|
|
|
713
713
|
r(this, "hasAction");
|
|
714
714
|
const {
|
|
715
715
|
itemView: e,
|
|
716
|
-
filters:
|
|
717
|
-
sorting:
|
|
716
|
+
filters: s = [],
|
|
717
|
+
sorting: a = [],
|
|
718
718
|
batchesController: o,
|
|
719
719
|
hasAction: l
|
|
720
720
|
} = t;
|
|
721
|
-
this.items = new
|
|
721
|
+
this.items = new Se(this), this.filters = s.map((c) => new we(this, c)), this.sorting = a.map((c) => new Ee(this, c)), this.search = t.search ? new Le(this, t.search) : void 0, this.itemView = new k(this, e), this.batches = new ve(this, o), this.loader = D.useNew(this, t.loader), this.reactTable = B.useNew(this, {
|
|
722
722
|
manualFiltering: this.loader.manualFiltering,
|
|
723
723
|
manualPagination: this.loader.manualPagination,
|
|
724
724
|
manualSorting: this.loader.manualSorting
|
|
@@ -734,7 +734,7 @@ let k = E, Le = class it {
|
|
|
734
734
|
return this.sorting.filter((t) => t.defaultEnabled !== "hidden");
|
|
735
735
|
}
|
|
736
736
|
getSorting(t) {
|
|
737
|
-
const e = this.sorting.find((
|
|
737
|
+
const e = this.sorting.find((s) => s.id === t);
|
|
738
738
|
return _(!!e, `Could not get Sorting (ID: ${t})`), e;
|
|
739
739
|
}
|
|
740
740
|
clearSorting() {
|
|
@@ -748,55 +748,61 @@ let k = E, Le = class it {
|
|
|
748
748
|
return !this.loader.useIsLoading() && this.items.entries.length === 0;
|
|
749
749
|
}
|
|
750
750
|
};
|
|
751
|
-
const
|
|
752
|
-
items:
|
|
753
|
-
isLoading:
|
|
754
|
-
}, Ae = "flow--list--items--item",
|
|
751
|
+
const Ie = "flow--list--items", ke = "flow--list--items--is-loading", j = {
|
|
752
|
+
items: Ie,
|
|
753
|
+
isLoading: ke
|
|
754
|
+
}, Ae = "flow--list--items--item", xe = "flow--list--items--item--has-action", A = {
|
|
755
755
|
item: Ae,
|
|
756
|
-
hasAction:
|
|
756
|
+
hasAction: xe
|
|
757
757
|
}, Ve = (i) => {
|
|
758
|
-
const { data: t, children: e } = i,
|
|
758
|
+
const { data: t, children: e } = i, s = h(), a = s.itemView, o = a.onAction, l = a.textValue ? a.textValue(t) : void 0, c = o ? () => o(t) : void 0, m = a.href ? a.href(t) : void 0, u = s.hasAction || !!c || !!m, v = C(A.item, u && A.hasAction);
|
|
759
759
|
return /* @__PURE__ */ n.createElement(
|
|
760
|
-
|
|
760
|
+
V.GridListItem,
|
|
761
761
|
{
|
|
762
762
|
className: v,
|
|
763
763
|
onAction: c,
|
|
764
764
|
textValue: l,
|
|
765
765
|
href: m
|
|
766
766
|
},
|
|
767
|
-
e ??
|
|
767
|
+
e ?? a.render(t)
|
|
768
768
|
);
|
|
769
|
-
},
|
|
769
|
+
}, Be = (i) => /* @__PURE__ */ n.createElement(V.GridListItem, { textValue: "-", className: A.item }, i.children), Pe = () => {
|
|
770
770
|
const i = b(g);
|
|
771
|
-
return /* @__PURE__ */ n.createElement(
|
|
772
|
-
},
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
},
|
|
776
|
-
const {
|
|
777
|
-
|
|
771
|
+
return /* @__PURE__ */ n.createElement(Ut, null, /* @__PURE__ */ n.createElement(Ot, null), /* @__PURE__ */ n.createElement(tt, null, i.format("list.noResult.heading")), /* @__PURE__ */ n.createElement(S, null, i.format("list.noResult.text")));
|
|
772
|
+
}, De = "flow--skeleton-text", Ne = "flow--skeleton-text--shimmer", Re = {
|
|
773
|
+
skeletonText: De,
|
|
774
|
+
shimmer: Ne
|
|
775
|
+
}, J = (i) => {
|
|
776
|
+
const { width: t, style: e = {}, ...s } = i;
|
|
777
|
+
return /* @__PURE__ */ n.createElement("div", { "aria-hidden": !0, style: { width: t, ...e }, ...s }, /* @__PURE__ */ n.createElement("div", { className: Re.skeletonText }));
|
|
778
|
+
}, ze = () => /* @__PURE__ */ n.createElement(et, null, /* @__PURE__ */ n.createElement(tt, null, /* @__PURE__ */ n.createElement(J, { width: "200px" })), /* @__PURE__ */ n.createElement(S, null, /* @__PURE__ */ n.createElement(J, { width: "300px" }))), Me = () => {
|
|
779
|
+
const t = h().itemView.fallback ?? /* @__PURE__ */ n.createElement(ze, null);
|
|
780
|
+
return Array.from(Array(5)).map((e, s) => /* @__PURE__ */ n.createElement(Be, { key: s }, bt(t)));
|
|
781
|
+
}, $e = (i) => {
|
|
782
|
+
const { className: t, ...e } = i, s = h(), a = s.loader.useIsLoading(), o = s.loader.useIsInitiallyLoading(), l = s.useIsEmpty(), c = s.items.entries.map((u) => /* @__PURE__ */ n.createElement(Ve, { key: u.id, data: u.data })), m = C(
|
|
783
|
+
j.items,
|
|
778
784
|
t,
|
|
779
|
-
|
|
785
|
+
a && j.isLoading
|
|
780
786
|
);
|
|
781
|
-
return l ? /* @__PURE__ */ n.createElement(
|
|
782
|
-
}, nt = (i) => null,
|
|
783
|
-
footer:
|
|
784
|
-
},
|
|
785
|
-
const t = b(g), e = h(),
|
|
787
|
+
return l ? /* @__PURE__ */ n.createElement(Pe, null) : /* @__PURE__ */ n.createElement("div", { "aria-hidden": o, "aria-busy": a }, /* @__PURE__ */ n.createElement(V.GridList, { className: m, ...e }, o ? /* @__PURE__ */ n.createElement(Me, null) : c));
|
|
788
|
+
}, nt = (i) => null, Ue = () => nt, rt = (i) => null, Oe = () => rt, ot = (i) => null, He = () => ot, lt = (i) => null, qe = () => lt, ct = (i) => null, Ge = () => ct, Ke = "flow--list--footer", je = {
|
|
789
|
+
footer: Ke
|
|
790
|
+
}, Je = (i) => {
|
|
791
|
+
const t = b(g), e = h(), s = e.batches, a = e.loader.useIsInitiallyLoading(), o = e.useIsEmpty(), l = s.getTotalItemsCount(), c = s.getVisibleItemsCount();
|
|
786
792
|
if (o)
|
|
787
793
|
return null;
|
|
788
|
-
const m =
|
|
794
|
+
const m = a ? /* @__PURE__ */ n.createElement(Gt, { width: "200px" }) : t.format("list.paginationInfo", {
|
|
789
795
|
visibleItemsCount: c,
|
|
790
796
|
totalItemsCount: l
|
|
791
797
|
});
|
|
792
798
|
return /* @__PURE__ */ n.createElement(S, { ...i }, m);
|
|
793
|
-
},
|
|
794
|
-
const t = b(g), e = h(),
|
|
795
|
-
return !e.batches.hasNextBatch() && !
|
|
799
|
+
}, We = (i) => {
|
|
800
|
+
const t = b(g), e = h(), s = e.loader.useIsLoading(), a = e.loader.useIsInitiallyLoading();
|
|
801
|
+
return !e.batches.hasNextBatch() && !s ? null : /* @__PURE__ */ n.createElement(
|
|
796
802
|
f,
|
|
797
803
|
{
|
|
798
|
-
isPending:
|
|
799
|
-
isDisabled:
|
|
804
|
+
isPending: s && !a,
|
|
805
|
+
isDisabled: a,
|
|
800
806
|
...i,
|
|
801
807
|
onPress: () => e.batches.nextBatch(),
|
|
802
808
|
variant: "plain",
|
|
@@ -804,38 +810,38 @@ const Te = "flow--list--items", Ie = "flow--list--items--is-loading", J = {
|
|
|
804
810
|
},
|
|
805
811
|
t.format("list.showMore")
|
|
806
812
|
);
|
|
807
|
-
},
|
|
813
|
+
}, Ye = () => /* @__PURE__ */ n.createElement("div", { className: je.footer }, /* @__PURE__ */ n.createElement(Je, null), /* @__PURE__ */ n.createElement(We, null));
|
|
808
814
|
function ut(i) {
|
|
809
815
|
return null;
|
|
810
816
|
}
|
|
811
|
-
const
|
|
812
|
-
var p, R, z, M
|
|
813
|
-
const { children: t, batchSize: e, ...
|
|
817
|
+
const Qe = () => ut, Xe = Lt("List", (i) => {
|
|
818
|
+
var p, N, R, z, M;
|
|
819
|
+
const { children: t, batchSize: e, ...s } = i, a = (p = y(
|
|
814
820
|
t,
|
|
815
821
|
nt
|
|
816
|
-
)) == null ? void 0 : p.props, o = (
|
|
822
|
+
)) == null ? void 0 : p.props, o = (N = y(
|
|
817
823
|
t,
|
|
818
824
|
Ht
|
|
819
|
-
)) == null ? void 0 :
|
|
820
|
-
source:
|
|
821
|
-
...
|
|
822
|
-
asyncLoader:
|
|
825
|
+
)) == null ? void 0 : N.props, l = (R = y(t, ct)) == null ? void 0 : R.props, c = {
|
|
826
|
+
source: a ? {
|
|
827
|
+
...a,
|
|
828
|
+
asyncLoader: a.children
|
|
823
829
|
} : o ? {
|
|
824
830
|
...o,
|
|
825
831
|
asyncResourceFactory: o.children
|
|
826
832
|
} : l ? {
|
|
827
833
|
staticData: l.data
|
|
828
834
|
} : void 0
|
|
829
|
-
}, m = (
|
|
835
|
+
}, m = (z = y(t, ut)) == null ? void 0 : z.props, u = (M = y(t, lt)) == null ? void 0 : M.props, v = Te.useNew({
|
|
830
836
|
loader: c,
|
|
831
|
-
filters:
|
|
837
|
+
filters: G(t, rt).map(
|
|
832
838
|
(F) => F.props
|
|
833
839
|
),
|
|
834
840
|
search: m ? {
|
|
835
841
|
render: m.children,
|
|
836
842
|
textFieldProps: m
|
|
837
843
|
} : void 0,
|
|
838
|
-
sorting:
|
|
844
|
+
sorting: G(t, ot).map((F) => F.props),
|
|
839
845
|
itemView: u ? {
|
|
840
846
|
...u,
|
|
841
847
|
renderFn: u.children
|
|
@@ -846,38 +852,38 @@ const je = () => ut, Je = Lt("List", (i) => {
|
|
|
846
852
|
hasAction: !!i.onAction
|
|
847
853
|
});
|
|
848
854
|
return /* @__PURE__ */ n.createElement(
|
|
849
|
-
|
|
855
|
+
st.Provider,
|
|
850
856
|
{
|
|
851
857
|
value: {
|
|
852
858
|
list: v
|
|
853
859
|
}
|
|
854
860
|
},
|
|
855
|
-
/* @__PURE__ */ n.createElement(
|
|
856
|
-
/* @__PURE__ */ n.createElement("div", { className:
|
|
861
|
+
/* @__PURE__ */ n.createElement(ee, null),
|
|
862
|
+
/* @__PURE__ */ n.createElement("div", { className: fe.list }, /* @__PURE__ */ n.createElement(ge, null), /* @__PURE__ */ n.createElement($e, { ...s }), /* @__PURE__ */ n.createElement(Ye, null))
|
|
857
863
|
);
|
|
858
|
-
}),
|
|
859
|
-
List:
|
|
860
|
-
Filter:
|
|
861
|
-
Search:
|
|
862
|
-
Sorting:
|
|
863
|
-
Item:
|
|
864
|
+
}), Rs = () => ({
|
|
865
|
+
List: Xe,
|
|
866
|
+
Filter: Oe(),
|
|
867
|
+
Search: Qe(),
|
|
868
|
+
Sorting: He(),
|
|
869
|
+
Item: qe(),
|
|
864
870
|
ItemView: et,
|
|
865
|
-
StaticData:
|
|
866
|
-
LoaderAsync:
|
|
871
|
+
StaticData: Ge(),
|
|
872
|
+
LoaderAsync: Ue(),
|
|
867
873
|
LoaderAsyncResource: qt()
|
|
868
874
|
});
|
|
869
875
|
export {
|
|
870
|
-
|
|
876
|
+
Xe as List,
|
|
871
877
|
rt as ListFilter,
|
|
872
878
|
lt as ListItem,
|
|
873
879
|
et as ListItemView,
|
|
874
880
|
nt as ListLoaderAsync,
|
|
875
881
|
ot as ListSorting,
|
|
876
882
|
ct as ListStaticData,
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
+
Oe as TypedListFilter,
|
|
884
|
+
qe as TypedListItem,
|
|
885
|
+
Ue as TypedListLoaderAsync,
|
|
886
|
+
He as TypedListSorting,
|
|
887
|
+
Ge as TypedListStaticData,
|
|
888
|
+
Rs as typedList
|
|
883
889
|
};
|