@mittwald/flow-react-components 0.1.0-alpha.122 → 0.1.0-alpha.124
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/{Accordion-9wwB377E.js → Accordion-Bszrsi-4.js} +4 -4
- package/dist/Accordion.js +1 -1
- package/dist/Action-7EQNT1az.js +217 -0
- package/dist/Action.js +1 -1
- package/dist/Avatar.js +22 -22
- package/dist/Breadcrumb.js +3 -3
- package/dist/{Button-BGCNzfmU.js → Button-tEtjVHFC.js} +6 -6
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +16 -16
- package/dist/{Checkbox-HtVxajw_.js → Checkbox-CHueH9FZ.js} +4 -4
- package/dist/Checkbox.js +1 -1
- package/dist/CheckboxButton-Ch3zxviG.js +29 -0
- package/dist/CheckboxButton.js +1 -1
- package/dist/CheckboxGroup.js +15 -15
- package/dist/{Content-CPAYV7wp.js → Content-xPY804ey.js} +1 -1
- package/dist/Content.js +1 -1
- package/dist/{ContextMenu-BGfJXwpB.js → ContextMenu-ChxMleeO.js} +3 -3
- package/dist/ContextMenu.js +2 -2
- package/dist/CopyButton.js +5 -5
- package/dist/FieldDescription.js +2 -2
- package/dist/{FieldError--Qpixa12.js → FieldError-Bl_SXH5M.js} +3 -3
- package/dist/FieldError.js +1 -1
- package/dist/Header.js +1 -1
- package/dist/HeaderNavigation.js +1 -1
- package/dist/{Heading-CYit9Nf-.js → Heading-CSfMC_V6.js} +2 -2
- package/dist/Heading.js +1 -1
- package/dist/{Icon-DhFv_0k_.js → Icon-DXq5lwp4.js} +7 -6
- package/dist/Icon.js +1 -1
- package/dist/{IconCheck-D8ys0_F5.js → IconCheck-BLXj9z4I.js} +1 -1
- package/dist/{IconCheckboxEmpty-DRlqWMgD.js → IconCheckboxEmpty-CseDZ77J.js} +1 -1
- package/dist/{IconCheckboxIndeterminate-CfK_tk87.js → IconCheckboxIndeterminate-BdEkNKEg.js} +1 -1
- package/dist/{IconChevronDown-gLJKgegq.js → IconChevronDown-DGMWVrr9.js} +1 -1
- package/dist/{IconChevronRight-CqgfPevo.js → IconChevronRight-Sd5qEgz9.js} +1 -1
- package/dist/{IconClose-BEe9M79E.js → IconClose-BuJDcvk1.js} +1 -1
- package/dist/{IconContextMenu-B9OI5d_u.js → IconContextMenu-BtDEfs_U.js} +1 -1
- package/dist/{IconCopy-A7uxuck-.js → IconCopy-Y4GR1Z03.js} +1 -1
- package/dist/{IconDanger-ALKH8dEk.js → IconDanger-D3n1sEDX.js} +1 -1
- package/dist/{IconPending-BV6Loio6.js → IconPending-C0IPPa0F.js} +1 -1
- package/dist/{IconPlus-eFn-agxn.js → IconPlus-BL-Zqbnv.js} +1 -1
- package/dist/{IconRadioOn--oXSoOvP.js → IconRadioOn-D0pCkmJ4.js} +1 -1
- package/dist/{IconSearch-BO1yNi13.js → IconSearch-B9UA2NmT.js} +1 -1
- package/dist/{IconSucceeded-d8xQyLF2.js → IconSucceeded-B4DEKa6J.js} +1 -1
- package/dist/{IconWarning-CAgZzx72.js → IconWarning-CmSsxAnH.js} +1 -1
- package/dist/Icons.js +16 -16
- package/dist/{IllustratedMessage-D1xVzeZO.js → IllustratedMessage-BUg2-svi.js} +1 -1
- package/dist/IllustratedMessage.js +1 -1
- package/dist/Image.js +5 -5
- package/dist/Initials.js +1 -1
- package/dist/InlineAlert.js +4 -4
- package/dist/{Label-DWCo1l63.js → Label-CfPzBQtx.js} +1 -1
- package/dist/Label.js +1 -1
- package/dist/LabeledValue.js +1 -1
- package/dist/LayoutCard.js +2 -2
- package/dist/{Link-BK57CeBv.js → Link-BNozTXoN.js} +2 -2
- package/dist/Link.js +1 -1
- package/dist/List.js +199 -204
- package/dist/{LoadingSpinner-BV4S5RsS.js → LoadingSpinner-smFm5pXR.js} +2 -2
- package/dist/LoadingSpinner.js +1 -1
- package/dist/MenuItem-CgrBX4na.js +54 -0
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +13 -6
- package/dist/Navigation.js +3 -3
- package/dist/NumberField.js +7 -7
- package/dist/OffCanvas.js +7 -7
- package/dist/Overlay-CUZ1KZa8.js +33 -0
- package/dist/OverlayTrigger.js +3 -3
- package/dist/Popover-B6bARCOK.js +17 -0
- package/dist/ProgressBar.js +1 -1
- package/dist/PropsContextProvider-ChpH8eF2.js +81 -0
- package/dist/RadioGroup.js +46 -37
- package/dist/Section.js +18 -18
- package/dist/Select.js +6 -6
- package/dist/Skeleton-CKLaTmDR.js +22 -0
- package/dist/Skeleton.js +1 -1
- package/dist/StatusBadge.js +3 -3
- package/dist/{StatusIcon-CvIY_c35.js → StatusIcon-CzfeqAZQ.js} +3 -3
- package/dist/StatusIcon.js +1 -1
- package/dist/Switch.js +5 -5
- package/dist/Tabs.js +47 -39
- package/dist/{Text-DXApO_Re.js → Text-DOQUStg_.js} +2 -2
- package/dist/Text.js +1 -1
- package/dist/TextArea.js +2 -2
- package/dist/TextField.js +2 -2
- package/dist/{TextFieldBase-C7g5i_rC.js → TextFieldBase-B6lQlCmE.js} +2 -2
- package/dist/context-CEG7VfKL.js +58 -0
- package/dist/controller.js +1 -1
- package/dist/{flowComponent-Dha_9C4F.js → flowComponent-Cv_SURLH.js} +35 -34
- package/dist/hooks.js +1 -1
- package/dist/{index-0qLHBjoi.js → index-BlZLqtIV.js} +8 -8
- package/dist/react-hook-form.js +2 -2
- package/dist/styles.css +1 -1
- package/dist/types/components/Action/Action.d.ts +2 -12
- package/dist/types/components/Action/components/ActionButton.d.ts +4 -0
- package/dist/types/components/Action/components/ActionLink.d.ts +4 -0
- package/dist/types/components/Action/components/ConfirmationModal.d.ts +4 -0
- package/dist/types/components/Action/components/ConfirmationModalButton.d.ts +4 -0
- package/dist/types/components/Action/context.d.ts +15 -0
- package/dist/types/components/Action/index.d.ts +1 -1
- package/dist/types/components/Action/lib/execution/ActionExecution.d.ts +2 -2
- package/dist/types/components/Action/lib/execution/ActionState.d.ts +1 -1
- package/dist/types/components/Action/lib/execution/useActionController.d.ts +2 -3
- package/dist/types/components/Action/stories/Default.stories.d.ts +1 -1
- package/dist/types/components/Action/stories/EdgeCases.stories.d.ts +1 -1
- package/dist/types/components/Action/types.d.ts +11 -0
- package/dist/types/components/List/components/Items/ListItem/ListItem.d.ts +6 -0
- package/dist/types/components/List/components/Items/ListItem/index.d.ts +4 -0
- package/dist/types/components/List/index.d.ts +1 -0
- package/dist/types/components/List/stories/ListItem.stories.d.ts +1 -0
- package/dist/types/components/Modal/Modal.d.ts +1 -0
- package/dist/types/components/Overlay/Overlay.d.ts +1 -0
- package/dist/types/components/Popover/Popover.d.ts +3 -1
- package/dist/types/components/Popover/stories/Default.stories.d.ts +1 -0
- package/dist/types/components/Popover/stories/EdgeCases.stories.d.ts +7 -0
- package/dist/types/components/Skeleton/Skeleton.d.ts +4 -1
- package/dist/types/lib/promises/sleep.d.ts +1 -0
- package/package.json +24 -28
- package/dist/Action-5b_DWWiS.js +0 -191
- package/dist/CheckboxButton-BPC6RfJj.js +0 -29
- package/dist/MenuItem-CzSUuXS-.js +0 -49
- package/dist/Overlay-ofdfFqqi.js +0 -28
- package/dist/Popover-MmxZkKu3.js +0 -15
- package/dist/Popover.js +0 -7
- package/dist/PropsContextProvider-DZvwqHLP.js +0 -64
- package/dist/Skeleton-D97e6aVe.js +0 -14
- package/dist/context-DJetA3qV.js +0 -8
- package/dist/types/components/Action/lib/execution/breakAction.d.ts +0 -2
- package/dist/types/components/Action/lib/execution/useActionFunction.d.ts +0 -4
- package/dist/types/components/List/components/Items/Item/Item.d.ts +0 -5
- package/dist/types/components/List/components/Items/Item/index.d.ts +0 -5
- /package/dist/types/components/List/components/Items/{Item → ListItem}/FallbackRenderer.d.ts +0 -0
package/dist/List.js
CHANGED
|
@@ -1,49 +1,50 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var o = (i, t, e) => (
|
|
6
|
-
import s, { createContext as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
3
|
+
var tt = Object.defineProperty;
|
|
4
|
+
var et = (i, t, e) => t in i ? tt(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
5
|
+
var o = (i, t, e) => (et(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
6
|
+
import s, { createContext as at, useContext as st, createElement as nt, useEffect as I, useRef as it, Suspense as rt } from "react";
|
|
7
|
+
import { R as ot } from "./flowComponent-Cv_SURLH.js";
|
|
8
|
+
import { C as q } from "./ContextMenu-ChxMleeO.js";
|
|
9
|
+
import { M as K } from "./MenuItem-CgrBX4na.js";
|
|
10
|
+
import * as j from "react-aria-components";
|
|
11
|
+
import { MenuTrigger as lt } from "react-aria-components";
|
|
12
|
+
import { T as y } from "./Text-DOQUStg_.js";
|
|
12
13
|
import "@tabler/icons-react";
|
|
13
|
-
import "./Icon-
|
|
14
|
-
import { I as
|
|
15
|
-
import { B as g } from "./Button-
|
|
16
|
-
import { useMessageFormatter as
|
|
17
|
-
import
|
|
18
|
-
import { I as
|
|
19
|
-
import { getProperty as
|
|
20
|
-
import { useReactTable as
|
|
21
|
-
import
|
|
22
|
-
import { useLocalObservable as
|
|
23
|
-
import { autorun as
|
|
24
|
-
import { getAsyncResource as
|
|
25
|
-
import { times as
|
|
26
|
-
import { u as
|
|
14
|
+
import "./Icon-DXq5lwp4.js";
|
|
15
|
+
import { I as J } from "./IconChevronDown-DGMWVrr9.js";
|
|
16
|
+
import { B as g } from "./Button-tEtjVHFC.js";
|
|
17
|
+
import { useMessageFormatter as Y, useLocalizedStringFormatter as L } from "react-aria";
|
|
18
|
+
import G from "clsx";
|
|
19
|
+
import { I as ct } from "./IconClose-BuJDcvk1.js";
|
|
20
|
+
import { getProperty as ut } from "dot-prop";
|
|
21
|
+
import { useReactTable as mt, getCoreRowModel as dt, getSortedRowModel as ht, getFilteredRowModel as gt, getPaginationRowModel as pt, getFacetedUniqueValues as ft } from "@tanstack/react-table";
|
|
22
|
+
import Q from "invariant";
|
|
23
|
+
import { useLocalObservable as bt } from "mobx-react-lite";
|
|
24
|
+
import { autorun as St, runInAction as yt, makeObservable as vt, observable as N, computed as R, action as C } from "mobx";
|
|
25
|
+
import { getAsyncResource as V } from "@mittwald/react-use-promise";
|
|
26
|
+
import { times as Et } from "remeda";
|
|
27
|
+
import { u as x } from "./useSelector-DpU7_HMO.js";
|
|
28
|
+
import { I as Ct } from "./IllustratedMessage-BUg2-svi.js";
|
|
29
|
+
import { I as It } from "./IconSearch-B9UA2NmT.js";
|
|
30
|
+
import { H as Ft } from "./Heading-CSfMC_V6.js";
|
|
31
|
+
import { S as W } from "./Skeleton-CKLaTmDR.js";
|
|
27
32
|
import "./propsContext-CauylOgH.js";
|
|
28
|
-
import { P as
|
|
33
|
+
import { P as Tt } from "./PropsContextProvider-ChpH8eF2.js";
|
|
29
34
|
import "@react-aria/utils";
|
|
30
|
-
import { d as
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import { I as
|
|
37
|
-
import
|
|
38
|
-
|
|
39
|
-
import { d as C, a as z } from "./deepFindOfType-6pG0fH7S.js";
|
|
40
|
-
import { I as At } from "./InlineCode-BV2i5uN0.js";
|
|
41
|
-
import { ListLoaderAsyncResource as Dt } from "./List/ListLoaderAsyncResource.js";
|
|
42
|
-
const G = tt({}), h = () => et(G).list, Nt = (i) => /* @__PURE__ */ s.createElement(s.Fragment, null, i.children()), Pt = () => h().loader.getLoaderInvocationHooks().map((t, e) => /* @__PURE__ */ s.createElement(Nt, { key: e }, () => {
|
|
35
|
+
import { d as Lt } from "./dynamic-ClpUSmEt.js";
|
|
36
|
+
import { I as wt } from "./IconContextMenu-BtDEfs_U.js";
|
|
37
|
+
import { TunnelProvider as Bt, TunnelExit as z } from "@mittwald/react-tunnel";
|
|
38
|
+
import { L as At } from "./Link-BNozTXoN.js";
|
|
39
|
+
import { d as E, a as O } from "./deepFindOfType-6pG0fH7S.js";
|
|
40
|
+
import { ListLoaderAsyncResource as kt } from "./List/ListLoaderAsyncResource.js";
|
|
41
|
+
import { I as Dt } from "./InlineCode-BV2i5uN0.js";
|
|
42
|
+
import "react-children-utilities";
|
|
43
|
+
const X = at({}), h = () => st(X).list, Mt = () => h().loader.getLoaderInvocationHooks().map((t, e) => /* @__PURE__ */ s.createElement(ot, { key: e }, () => {
|
|
43
44
|
t();
|
|
44
|
-
})),
|
|
45
|
+
})), Pt = (i) => {
|
|
45
46
|
const { sorting: t } = i;
|
|
46
|
-
return /* @__PURE__ */ s.createElement(
|
|
47
|
+
return /* @__PURE__ */ s.createElement(K, { id: t.getTableColumn().id }, t.name);
|
|
47
48
|
}, d = {
|
|
48
49
|
"de-DE": {
|
|
49
50
|
"list.noResult.heading": "Keine Suchergebnisse gefunden",
|
|
@@ -69,12 +70,12 @@ const G = tt({}), h = () => et(G).list, Nt = (i) => /* @__PURE__ */ s.createElem
|
|
|
69
70
|
}
|
|
70
71
|
}, F = (i) => {
|
|
71
72
|
const { children: t, locales: e, variables: a } = i;
|
|
72
|
-
return
|
|
73
|
-
},
|
|
74
|
-
const i = h(), t = i.sorting.map((n) => /* @__PURE__ */ s.createElement(
|
|
73
|
+
return Y(e)(t, a);
|
|
74
|
+
}, Nt = () => {
|
|
75
|
+
const i = h(), t = i.sorting.map((n) => /* @__PURE__ */ s.createElement(Pt, { sorting: n, key: n.getTableColumn().id }));
|
|
75
76
|
if (i.sorting.length === 0)
|
|
76
77
|
return null;
|
|
77
|
-
const e = i.sorting.find((n) => n.isSorted()), a = /* @__PURE__ */ s.createElement(
|
|
78
|
+
const e = i.sorting.find((n) => n.isSorted()), a = /* @__PURE__ */ s.createElement(y, null, e ? /* @__PURE__ */ s.createElement(
|
|
78
79
|
F,
|
|
79
80
|
{
|
|
80
81
|
locales: d,
|
|
@@ -84,8 +85,8 @@ const G = tt({}), h = () => et(G).list, Nt = (i) => /* @__PURE__ */ s.createElem
|
|
|
84
85
|
},
|
|
85
86
|
"list.setSorting"
|
|
86
87
|
) : /* @__PURE__ */ s.createElement(F, { locales: d }, "list.sorting"));
|
|
87
|
-
return /* @__PURE__ */ s.createElement(
|
|
88
|
-
|
|
88
|
+
return /* @__PURE__ */ s.createElement(j.MenuTrigger, null, /* @__PURE__ */ s.createElement(g, { variant: "soft", size: "s", color: "secondary" }, a, /* @__PURE__ */ s.createElement(J, null)), /* @__PURE__ */ s.createElement(
|
|
89
|
+
q,
|
|
89
90
|
{
|
|
90
91
|
selectionMode: "single",
|
|
91
92
|
selectedKeys: e ? [e.property] : [],
|
|
@@ -95,12 +96,12 @@ const G = tt({}), h = () => et(G).list, Nt = (i) => /* @__PURE__ */ s.createElem
|
|
|
95
96
|
},
|
|
96
97
|
t
|
|
97
98
|
));
|
|
98
|
-
},
|
|
99
|
-
const { filter: t } = i, e = t.values.map((r) => /* @__PURE__ */ s.createElement(
|
|
99
|
+
}, Rt = (i) => {
|
|
100
|
+
const { filter: t } = i, e = t.values.map((r) => /* @__PURE__ */ s.createElement(K, { key: t.getValueId(r), id: String(r) }, String(r))), a = t.values.filter((r) => t.isValueActive(r)).map((r) => String(r)), n = (r) => {
|
|
100
101
|
t.toggleValue(r);
|
|
101
102
|
};
|
|
102
|
-
return /* @__PURE__ */ s.createElement(
|
|
103
|
-
|
|
103
|
+
return /* @__PURE__ */ s.createElement(j.MenuTrigger, null, /* @__PURE__ */ s.createElement(g, { variant: "soft", size: "s", color: "secondary" }, /* @__PURE__ */ s.createElement(y, null, t.name ?? t.property), /* @__PURE__ */ s.createElement(J, null)), /* @__PURE__ */ s.createElement(
|
|
104
|
+
q,
|
|
104
105
|
{
|
|
105
106
|
onAction: n,
|
|
106
107
|
selectionMode: "multiple",
|
|
@@ -108,13 +109,13 @@ const G = tt({}), h = () => et(G).list, Nt = (i) => /* @__PURE__ */ s.createElem
|
|
|
108
109
|
},
|
|
109
110
|
e
|
|
110
111
|
));
|
|
111
|
-
},
|
|
112
|
-
header:
|
|
113
|
-
pickerList:
|
|
114
|
-
},
|
|
115
|
-
activeFilters:
|
|
116
|
-
clearButton:
|
|
117
|
-
},
|
|
112
|
+
}, Vt = "flow--list--header", xt = "flow--list--header--picker-list", U = {
|
|
113
|
+
header: Vt,
|
|
114
|
+
pickerList: xt
|
|
115
|
+
}, zt = "flow--list--header--active-filters", Ot = "flow--list--header--clear-button", $ = {
|
|
116
|
+
activeFilters: zt,
|
|
117
|
+
clearButton: Ot
|
|
118
|
+
}, Ut = () => {
|
|
118
119
|
const i = h(), t = i.filters.flatMap(
|
|
119
120
|
(e) => e.values.filter((a) => e.isValueActive(a)).map((a) => /* @__PURE__ */ s.createElement(
|
|
120
121
|
g,
|
|
@@ -124,28 +125,26 @@ const G = tt({}), h = () => et(G).list, Nt = (i) => /* @__PURE__ */ s.createElem
|
|
|
124
125
|
key: String(a),
|
|
125
126
|
onPress: () => e.deactivateValue(a)
|
|
126
127
|
},
|
|
127
|
-
/* @__PURE__ */ s.createElement(
|
|
128
|
-
/* @__PURE__ */ s.createElement(
|
|
128
|
+
/* @__PURE__ */ s.createElement(y, null, String(a)),
|
|
129
|
+
/* @__PURE__ */ s.createElement(ct, null)
|
|
129
130
|
))
|
|
130
131
|
);
|
|
131
|
-
return t.length <= 0 ? null : /* @__PURE__ */ s.createElement("div", { className:
|
|
132
|
+
return t.length <= 0 ? null : /* @__PURE__ */ s.createElement("div", { className: $.activeFilters }, t, /* @__PURE__ */ s.createElement(
|
|
132
133
|
g,
|
|
133
134
|
{
|
|
134
|
-
className:
|
|
135
|
+
className: $.clearButton,
|
|
135
136
|
size: "s",
|
|
136
137
|
variant: "plain",
|
|
137
138
|
onPress: () => i.clearFilters()
|
|
138
139
|
},
|
|
139
140
|
/* @__PURE__ */ s.createElement(F, { locales: d }, "list.resetAll")
|
|
140
141
|
));
|
|
141
|
-
},
|
|
142
|
-
const { className: t } = i, a = h().filters.map((n) => /* @__PURE__ */ s.createElement(
|
|
143
|
-
return /* @__PURE__ */ s.createElement("div", { className:
|
|
144
|
-
},
|
|
145
|
-
list:
|
|
146
|
-
}
|
|
147
|
-
var m;
|
|
148
|
-
let jt = (m = class {
|
|
142
|
+
}, $t = (i) => {
|
|
143
|
+
const { className: t } = i, a = h().filters.map((n) => /* @__PURE__ */ s.createElement(Rt, { key: n.property, filter: n }));
|
|
144
|
+
return /* @__PURE__ */ s.createElement("div", { className: G(t, U.header) }, /* @__PURE__ */ s.createElement("div", { className: U.pickerList }, /* @__PURE__ */ s.createElement(Nt, null), a), /* @__PURE__ */ s.createElement(Ut, null));
|
|
145
|
+
}, Ht = "flow--list", qt = {
|
|
146
|
+
list: Ht
|
|
147
|
+
}, S = class S {
|
|
149
148
|
constructor(t, e, a) {
|
|
150
149
|
o(this, "id");
|
|
151
150
|
o(this, "data");
|
|
@@ -153,25 +152,27 @@ let jt = (m = class {
|
|
|
153
152
|
this.collection = t, this.id = e, this.data = a;
|
|
154
153
|
}
|
|
155
154
|
render() {
|
|
156
|
-
return (this.collection.list.render ??
|
|
155
|
+
return (this.collection.list.render ?? S.fallbackRenderItemFn)(this.data);
|
|
157
156
|
}
|
|
158
157
|
static fromRow(t, e) {
|
|
159
|
-
return new
|
|
158
|
+
return new S(t, e.id, e.original);
|
|
160
159
|
}
|
|
161
|
-
}
|
|
162
|
-
|
|
160
|
+
};
|
|
161
|
+
o(S, "fallbackRenderItemFn", (t) => nt("pre", void 0, JSON.stringify(t)));
|
|
162
|
+
let T = S;
|
|
163
|
+
class w {
|
|
163
164
|
constructor(t) {
|
|
164
165
|
o(this, "list");
|
|
165
166
|
this.list = t;
|
|
166
167
|
}
|
|
167
168
|
static useNew(t) {
|
|
168
|
-
return new
|
|
169
|
+
return new w(t);
|
|
169
170
|
}
|
|
170
171
|
get entries() {
|
|
171
|
-
return this.list.reactTable.table.getRowModel().rows.map((t) =>
|
|
172
|
+
return this.list.reactTable.table.getRowModel().rows.map((t) => T.fromRow(this, t));
|
|
172
173
|
}
|
|
173
174
|
}
|
|
174
|
-
class
|
|
175
|
+
class Kt {
|
|
175
176
|
constructor(t, e = {}) {
|
|
176
177
|
o(this, "batchSize");
|
|
177
178
|
o(this, "list");
|
|
@@ -220,8 +221,8 @@ class Jt {
|
|
|
220
221
|
}
|
|
221
222
|
}
|
|
222
223
|
}
|
|
223
|
-
const
|
|
224
|
-
class
|
|
224
|
+
const jt = (i, t) => i === t;
|
|
225
|
+
class Jt {
|
|
225
226
|
constructor(t, e) {
|
|
226
227
|
o(this, "_values");
|
|
227
228
|
o(this, "list");
|
|
@@ -230,14 +231,14 @@ class Yt {
|
|
|
230
231
|
o(this, "matcher");
|
|
231
232
|
o(this, "name");
|
|
232
233
|
o(this, "onFilterUpdateCallbacks", /* @__PURE__ */ new Set());
|
|
233
|
-
this.list = t, this.property = e.property, this.mode = e.mode ?? "one", this._values = e.values, this.matcher = e.matcher ??
|
|
234
|
+
this.list = t, this.property = e.property, this.mode = e.mode ?? "one", this._values = e.values, this.matcher = e.matcher ?? jt, this.name = e.name;
|
|
234
235
|
}
|
|
235
236
|
updateTableColumnDef(t) {
|
|
236
237
|
t.enableColumnFilter = !0, t.filterFn = this.getReactTableFilterFn();
|
|
237
238
|
}
|
|
238
239
|
getReactTableFilterFn() {
|
|
239
240
|
return (t, e, a) => this.checkFilterMatches(
|
|
240
|
-
|
|
241
|
+
ut(t.original, this.property),
|
|
241
242
|
a
|
|
242
243
|
);
|
|
243
244
|
}
|
|
@@ -303,7 +304,7 @@ class Yt {
|
|
|
303
304
|
this.onFilterUpdateCallbacks.add(t);
|
|
304
305
|
}
|
|
305
306
|
}
|
|
306
|
-
class
|
|
307
|
+
class Yt {
|
|
307
308
|
constructor(t, e) {
|
|
308
309
|
o(this, "list");
|
|
309
310
|
o(this, "property");
|
|
@@ -328,8 +329,8 @@ class Gt {
|
|
|
328
329
|
this.list.reactTable.getTableColumn(this.property).clearSorting();
|
|
329
330
|
}
|
|
330
331
|
}
|
|
331
|
-
const
|
|
332
|
-
class
|
|
332
|
+
const Gt = (i) => I(St(i));
|
|
333
|
+
class B {
|
|
333
334
|
constructor(t, e = {}) {
|
|
334
335
|
o(this, "list");
|
|
335
336
|
o(this, "table");
|
|
@@ -339,17 +340,17 @@ class w {
|
|
|
339
340
|
if (!e)
|
|
340
341
|
return;
|
|
341
342
|
const a = typeof t == "function" ? t(e) : t;
|
|
342
|
-
|
|
343
|
+
yt(() => {
|
|
343
344
|
this.tableState.value = this.getUpdatedTableState(e, a);
|
|
344
345
|
});
|
|
345
346
|
});
|
|
346
|
-
this.list = t, this.tableState =
|
|
347
|
+
this.list = t, this.tableState = bt(() => ({ value: void 0 })), this.table = this.useReactTable(e);
|
|
347
348
|
}
|
|
348
349
|
static useNew(t, e = {}) {
|
|
349
|
-
return new
|
|
350
|
+
return new B(t, e);
|
|
350
351
|
}
|
|
351
352
|
useReactTable(t = {}) {
|
|
352
|
-
const e = this.list.loader.useData(), a = this.list.sorting.filter((r) => r.defaultEnabled), n =
|
|
353
|
+
const e = this.list.loader.useData(), a = this.list.sorting.filter((r) => r.defaultEnabled), n = mt({
|
|
353
354
|
data: e,
|
|
354
355
|
initialState: {
|
|
355
356
|
pagination: {
|
|
@@ -361,18 +362,18 @@ class w {
|
|
|
361
362
|
}))
|
|
362
363
|
},
|
|
363
364
|
columns: this.getTableColumnDefs(),
|
|
364
|
-
getCoreRowModel:
|
|
365
|
-
getSortedRowModel:
|
|
366
|
-
getFilteredRowModel:
|
|
367
|
-
getPaginationRowModel:
|
|
368
|
-
getFacetedUniqueValues:
|
|
365
|
+
getCoreRowModel: dt(),
|
|
366
|
+
getSortedRowModel: ht(),
|
|
367
|
+
getFilteredRowModel: gt(),
|
|
368
|
+
getPaginationRowModel: pt(),
|
|
369
|
+
getFacetedUniqueValues: ft(),
|
|
369
370
|
onStateChange: this.onTableStateChange,
|
|
370
371
|
...t
|
|
371
372
|
});
|
|
372
373
|
return this.useUpdateTableState(n), n;
|
|
373
374
|
}
|
|
374
375
|
useUpdateTableState(t) {
|
|
375
|
-
|
|
376
|
+
Gt(() => {
|
|
376
377
|
const e = this.tableState.value;
|
|
377
378
|
e ? t.setOptions((a) => ({
|
|
378
379
|
...a,
|
|
@@ -385,7 +386,7 @@ class w {
|
|
|
385
386
|
}
|
|
386
387
|
getTableColumn(t) {
|
|
387
388
|
const e = this.table.getColumn(t);
|
|
388
|
-
return
|
|
389
|
+
return Q(!!e, `Column #${t} is not defined`), e;
|
|
389
390
|
}
|
|
390
391
|
getTableColumnDefs() {
|
|
391
392
|
const t = /* @__PURE__ */ new Map(), e = (a) => {
|
|
@@ -407,23 +408,23 @@ class w {
|
|
|
407
408
|
), Array.from(t.values());
|
|
408
409
|
}
|
|
409
410
|
}
|
|
410
|
-
class
|
|
411
|
+
class A {
|
|
411
412
|
constructor() {
|
|
412
413
|
o(this, "dataBatches", []);
|
|
413
414
|
o(this, "prevDataBatches", []);
|
|
414
415
|
o(this, "batchLoadingStates", ["void"]);
|
|
415
|
-
|
|
416
|
-
dataBatches:
|
|
417
|
-
batchLoadingStates:
|
|
416
|
+
vt(this, {
|
|
417
|
+
dataBatches: N.shallow,
|
|
418
|
+
batchLoadingStates: N.shallow,
|
|
418
419
|
mergedData: R,
|
|
419
420
|
isLoading: R,
|
|
420
|
-
reset:
|
|
421
|
-
setDataBatch:
|
|
422
|
-
setBatchLoadingState:
|
|
421
|
+
reset: C.bound,
|
|
422
|
+
setDataBatch: C.bound,
|
|
423
|
+
setBatchLoadingState: C.bound
|
|
423
424
|
});
|
|
424
425
|
}
|
|
425
426
|
static useNew() {
|
|
426
|
-
return
|
|
427
|
+
return it(new A()).current;
|
|
427
428
|
}
|
|
428
429
|
reset() {
|
|
429
430
|
this.batchLoadingStates = [], this.dataBatches = [];
|
|
@@ -438,17 +439,17 @@ class L {
|
|
|
438
439
|
return (this.dataBatches.length === 0 ? this.prevDataBatches : this.dataBatches).flatMap((e) => e);
|
|
439
440
|
}
|
|
440
441
|
useMergedData() {
|
|
441
|
-
return
|
|
442
|
+
return x(() => this.mergedData);
|
|
442
443
|
}
|
|
443
444
|
get isLoading() {
|
|
444
445
|
return this.batchLoadingStates.some((t) => t === "loading" || t === "void");
|
|
445
446
|
}
|
|
446
447
|
useIsLoading() {
|
|
447
|
-
return
|
|
448
|
+
return x(() => this.isLoading);
|
|
448
449
|
}
|
|
449
450
|
}
|
|
450
|
-
const
|
|
451
|
-
class
|
|
451
|
+
const Qt = [];
|
|
452
|
+
class k {
|
|
452
453
|
constructor(t, e = {}) {
|
|
453
454
|
o(this, "list");
|
|
454
455
|
o(this, "dataSource");
|
|
@@ -457,12 +458,12 @@ class B {
|
|
|
457
458
|
o(this, "manualPagination");
|
|
458
459
|
o(this, "loaderState");
|
|
459
460
|
const { source: a } = e;
|
|
460
|
-
this.dataSource = a ?? { staticData:
|
|
461
|
+
this.dataSource = a ?? { staticData: Qt };
|
|
461
462
|
const n = "manualPagination" in this.dataSource ? this.dataSource.manualPagination : void 0, r = "manualFiltering" in this.dataSource ? this.dataSource.manualFiltering : void 0, l = "manualSorting" in this.dataSource ? this.dataSource.manualSorting : void 0;
|
|
462
|
-
this.list = t, this.loaderState =
|
|
463
|
+
this.list = t, this.loaderState = A.useNew(), this.manualPagination = n ?? !1, this.manualFiltering = r ?? this.manualPagination, this.manualSorting = l ?? this.manualPagination, this.list.filters.forEach((u) => u.onFilterUpdated(() => this.reset()));
|
|
463
464
|
}
|
|
464
465
|
static useNew(t, e = {}) {
|
|
465
|
-
return new
|
|
466
|
+
return new k(t, e);
|
|
466
467
|
}
|
|
467
468
|
reset() {
|
|
468
469
|
this.loaderState.reset();
|
|
@@ -477,7 +478,7 @@ class B {
|
|
|
477
478
|
return this.loaderState.useMergedData();
|
|
478
479
|
}
|
|
479
480
|
getLoaderInvocationHooks() {
|
|
480
|
-
return
|
|
481
|
+
return Et(this.list.batches.getBatchIndex() + 1, (e) => e).map((e) => () => {
|
|
481
482
|
this.useLoadBatch(e);
|
|
482
483
|
});
|
|
483
484
|
}
|
|
@@ -488,7 +489,7 @@ class B {
|
|
|
488
489
|
}), this.useObserveBatchData(e, t), this.useObserveBatchLoadingState(e, t);
|
|
489
490
|
}
|
|
490
491
|
useObserveBatchLoadingState(t, e) {
|
|
491
|
-
|
|
492
|
+
I(() => (this.loaderState.setBatchLoadingState(
|
|
492
493
|
e,
|
|
493
494
|
t.state.value
|
|
494
495
|
), t.state.observe((a) => {
|
|
@@ -496,15 +497,13 @@ class B {
|
|
|
496
497
|
})), [t, e]);
|
|
497
498
|
}
|
|
498
499
|
useObserveBatchData(t, e) {
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
[t, e]
|
|
507
|
-
);
|
|
500
|
+
const a = (n) => {
|
|
501
|
+
const { data: r, itemTotalCount: l } = n;
|
|
502
|
+
this.loaderState.setDataBatch(e, r), l !== void 0 && this.list.batches.updateItemTotalCount(l);
|
|
503
|
+
};
|
|
504
|
+
I(() => (t.value.value.isSet && a(t.value.value.value), t.value.observe((n) => {
|
|
505
|
+
n.isSet && a(n.value);
|
|
506
|
+
})), [t, e]);
|
|
508
507
|
}
|
|
509
508
|
getDataLoaderOptions(t) {
|
|
510
509
|
return {
|
|
@@ -527,7 +526,7 @@ class B {
|
|
|
527
526
|
const e = this.dataSource, a = this.getDataLoaderOptions(t);
|
|
528
527
|
if ("staticData" in e) {
|
|
529
528
|
const n = e.staticData;
|
|
530
|
-
return
|
|
529
|
+
return V(
|
|
531
530
|
async () => ({
|
|
532
531
|
data: n,
|
|
533
532
|
itemTotalCount: n.length
|
|
@@ -537,7 +536,7 @@ class B {
|
|
|
537
536
|
}
|
|
538
537
|
if ("asyncLoader" in e) {
|
|
539
538
|
const n = e.asyncLoader;
|
|
540
|
-
return
|
|
539
|
+
return V(n, [a]);
|
|
541
540
|
}
|
|
542
541
|
if ("asyncResourceFactory" in e) {
|
|
543
542
|
const n = e.asyncResourceFactory;
|
|
@@ -546,7 +545,7 @@ class B {
|
|
|
546
545
|
throw new Error("Unknown data source");
|
|
547
546
|
}
|
|
548
547
|
}
|
|
549
|
-
let
|
|
548
|
+
let Wt = class Z {
|
|
550
549
|
constructor(t) {
|
|
551
550
|
o(this, "filters");
|
|
552
551
|
o(this, "sorting");
|
|
@@ -556,21 +555,21 @@ let Zt = class Q {
|
|
|
556
555
|
o(this, "batches");
|
|
557
556
|
o(this, "loader");
|
|
558
557
|
const { render: e, filters: a = [], sorting: n = [], batchesController: r } = t;
|
|
559
|
-
this.render = e, this.items =
|
|
558
|
+
this.render = e, this.items = w.useNew(this), this.filters = a.map((l) => new Jt(this, l)), this.sorting = n.map((l) => new Yt(this, l)), this.batches = new Kt(this, r), this.loader = k.useNew(this, t.loader), this.reactTable = B.useNew(this, {
|
|
560
559
|
manualFiltering: this.loader.manualFiltering,
|
|
561
560
|
manualPagination: this.loader.manualPagination,
|
|
562
561
|
manualSorting: this.loader.manualSorting
|
|
563
562
|
});
|
|
564
563
|
}
|
|
565
564
|
static useNew(t) {
|
|
566
|
-
return new
|
|
565
|
+
return new Z(t);
|
|
567
566
|
}
|
|
568
567
|
isFiltered() {
|
|
569
568
|
return this.filters.some((t) => t.isActive());
|
|
570
569
|
}
|
|
571
570
|
getSorting(t) {
|
|
572
571
|
const e = this.sorting.find((a) => a.property === t);
|
|
573
|
-
return
|
|
572
|
+
return Q(!!e, `Could not get Sorting (property: ${t})`), e;
|
|
574
573
|
}
|
|
575
574
|
clearSorting() {
|
|
576
575
|
return this.sorting.forEach((t) => t.clear());
|
|
@@ -582,40 +581,40 @@ let Zt = class Q {
|
|
|
582
581
|
return !this.loader.useIsLoading() && this.items.entries.length === 0;
|
|
583
582
|
}
|
|
584
583
|
};
|
|
585
|
-
const
|
|
586
|
-
itemList:
|
|
587
|
-
isLoading:
|
|
588
|
-
},
|
|
589
|
-
item:
|
|
590
|
-
title:
|
|
591
|
-
topContent:
|
|
592
|
-
content:
|
|
593
|
-
action:
|
|
594
|
-
avatar:
|
|
595
|
-
text:
|
|
596
|
-
statusBadge:
|
|
597
|
-
heading:
|
|
598
|
-
},
|
|
599
|
-
const { className: t, children: e } = i, a =
|
|
600
|
-
return /* @__PURE__ */ s.createElement(
|
|
584
|
+
const Xt = "flow--list--items--item-list", Zt = "flow--list--items--is-loading", H = {
|
|
585
|
+
itemList: Xt,
|
|
586
|
+
isLoading: Zt
|
|
587
|
+
}, _t = "flow--list--items--item", te = "flow--list--items--title", ee = "flow--list--items--top-content", ae = "flow--list--items--content", se = "flow--list--items--action", ne = "flow--list--items--avatar", ie = "flow--list--items--text", re = "flow--list--items--status-badge", oe = "flow--list--items--heading", c = {
|
|
588
|
+
item: _t,
|
|
589
|
+
title: te,
|
|
590
|
+
topContent: ee,
|
|
591
|
+
content: ae,
|
|
592
|
+
action: se,
|
|
593
|
+
avatar: ne,
|
|
594
|
+
text: ie,
|
|
595
|
+
statusBadge: re,
|
|
596
|
+
heading: oe
|
|
597
|
+
}, le = (i) => {
|
|
598
|
+
const { className: t, children: e } = i, a = L(d);
|
|
599
|
+
return /* @__PURE__ */ s.createElement(lt, null, /* @__PURE__ */ s.createElement(
|
|
601
600
|
g,
|
|
602
601
|
{
|
|
603
602
|
variant: "plain",
|
|
604
603
|
className: t,
|
|
605
604
|
"aria-label": a.format("list.options")
|
|
606
605
|
},
|
|
607
|
-
/* @__PURE__ */ s.createElement(
|
|
606
|
+
/* @__PURE__ */ s.createElement(wt, null)
|
|
608
607
|
), e);
|
|
609
|
-
},
|
|
610
|
-
const { children: t
|
|
608
|
+
}, ce = (i) => i === "top" ? c.topContent : i === "bottom" ? c.content : c.topContent, _ = (i) => {
|
|
609
|
+
const { children: t, href: e, ...a } = i, n = {
|
|
611
610
|
ContextMenu: {
|
|
612
|
-
render: (
|
|
611
|
+
render: (l, u) => /* @__PURE__ */ s.createElement(le, { className: c.action }, /* @__PURE__ */ s.createElement(l, { ...u, placement: "bottom end" }))
|
|
613
612
|
},
|
|
614
613
|
Button: {
|
|
615
614
|
className: c.action
|
|
616
615
|
},
|
|
617
616
|
Content: {
|
|
618
|
-
className:
|
|
617
|
+
className: Lt((l) => ce(l.slot)),
|
|
619
618
|
tunnelId: "topContent"
|
|
620
619
|
},
|
|
621
620
|
Avatar: {
|
|
@@ -634,62 +633,57 @@ const _t = "flow--list--items--item-list", te = "flow--list--items--is-loading",
|
|
|
634
633
|
StatusBadge: {
|
|
635
634
|
className: c.statusBadge,
|
|
636
635
|
tunnelId: "title"
|
|
637
|
-
}
|
|
638
|
-
}, n = {
|
|
639
|
-
...a,
|
|
636
|
+
},
|
|
640
637
|
Link: {
|
|
641
|
-
|
|
642
|
-
unstyled: !0,
|
|
643
|
-
...a
|
|
638
|
+
unstyled: !0
|
|
644
639
|
}
|
|
645
|
-
};
|
|
646
|
-
return /* @__PURE__ */ s.createElement(
|
|
647
|
-
},
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
const { className: t } = i, e = h(), a = e.loader.useIsLoading(), n = e.loader.useIsInitiallyLoading(), r = e.useIsEmpty(), l = I(d), u = e.items.entries.map((y) => /* @__PURE__ */ s.createElement(X, { key: y.id }, /* @__PURE__ */ s.createElement(nt, null, y.render()))), p = W(
|
|
651
|
-
$.itemList,
|
|
640
|
+
}, r = (l) => e ? /* @__PURE__ */ s.createElement(At, { unstyled: !0, ...a, className: c.item, href: e }, l.children) : /* @__PURE__ */ s.createElement("div", { className: c.item }, l.children);
|
|
641
|
+
return /* @__PURE__ */ s.createElement(r, null, /* @__PURE__ */ s.createElement(Tt, { props: n }, /* @__PURE__ */ s.createElement(Bt, null, t, /* @__PURE__ */ s.createElement("div", { className: c.title }, /* @__PURE__ */ s.createElement(z, { id: "title" })), /* @__PURE__ */ s.createElement(z, { id: "topContent" }))));
|
|
642
|
+
}, b = () => /* @__PURE__ */ s.createElement(_, null, /* @__PURE__ */ s.createElement(W, { height: "3rem" })), ue = (i) => {
|
|
643
|
+
const { className: t } = i, e = h(), a = e.loader.useIsLoading(), n = e.loader.useIsInitiallyLoading(), r = e.useIsEmpty(), l = L(d), u = e.items.entries.map((m) => /* @__PURE__ */ s.createElement(rt, { key: m.id }, m.render())), p = G(
|
|
644
|
+
H.itemList,
|
|
652
645
|
t,
|
|
653
|
-
a &&
|
|
646
|
+
a && H.isLoading
|
|
654
647
|
);
|
|
655
|
-
return r ? /* @__PURE__ */ s.createElement(
|
|
656
|
-
},
|
|
657
|
-
function
|
|
648
|
+
return r ? /* @__PURE__ */ s.createElement(Ct, null, /* @__PURE__ */ s.createElement(It, null), /* @__PURE__ */ s.createElement(Ft, null, l.format("list.noResult.heading")), /* @__PURE__ */ s.createElement(y, null, l.format("list.noResult.text"))) : /* @__PURE__ */ s.createElement("div", { className: p }, n ? me : u);
|
|
649
|
+
}, me = /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(b, null), /* @__PURE__ */ s.createElement(b, null), /* @__PURE__ */ s.createElement(b, null), /* @__PURE__ */ s.createElement(b, null), /* @__PURE__ */ s.createElement(b, null));
|
|
650
|
+
function de(i) {
|
|
658
651
|
return null;
|
|
659
652
|
}
|
|
660
|
-
function
|
|
653
|
+
function he(i) {
|
|
661
654
|
return null;
|
|
662
655
|
}
|
|
663
|
-
function
|
|
656
|
+
function ge(i) {
|
|
664
657
|
return null;
|
|
665
658
|
}
|
|
666
|
-
function
|
|
659
|
+
function pe(i) {
|
|
667
660
|
return null;
|
|
668
661
|
}
|
|
669
|
-
function
|
|
662
|
+
function fe(i) {
|
|
670
663
|
return null;
|
|
671
664
|
}
|
|
672
|
-
const
|
|
673
|
-
footer:
|
|
674
|
-
},
|
|
675
|
-
const t =
|
|
676
|
-
if (
|
|
665
|
+
const be = "flow--list--footer", Se = {
|
|
666
|
+
footer: be
|
|
667
|
+
}, ye = (i) => {
|
|
668
|
+
const t = Y(d), e = h(), a = e.batches, n = e.isFiltered() && !e.loader.manualFiltering, r = e.loader.useIsInitiallyLoading(), l = e.useIsEmpty(), u = a.getTotalItemsCount(), p = a.getFilteredItemsCount(), m = a.getVisibleItemsCount();
|
|
669
|
+
if (l)
|
|
677
670
|
return null;
|
|
678
|
-
const
|
|
679
|
-
visibleItemsCount:
|
|
680
|
-
filteredItemsCount:
|
|
681
|
-
totalItemsCount:
|
|
671
|
+
const v = r ? /* @__PURE__ */ s.createElement(W, { width: "200px" }) : n ? t("list.paginationInfoFiltered", {
|
|
672
|
+
visibleItemsCount: m,
|
|
673
|
+
filteredItemsCount: p,
|
|
674
|
+
totalItemsCount: u
|
|
682
675
|
}) : t("list.paginationInfo", {
|
|
683
|
-
visibleItemsCount:
|
|
684
|
-
totalItemsCount:
|
|
676
|
+
visibleItemsCount: m,
|
|
677
|
+
totalItemsCount: u
|
|
685
678
|
});
|
|
686
|
-
return /* @__PURE__ */ s.createElement(
|
|
687
|
-
},
|
|
688
|
-
const t =
|
|
689
|
-
return
|
|
679
|
+
return /* @__PURE__ */ s.createElement(y, { ...i }, v);
|
|
680
|
+
}, ve = (i) => {
|
|
681
|
+
const t = L(d), e = h(), a = e.loader.useIsLoading(), n = e.loader.useIsInitiallyLoading();
|
|
682
|
+
return !e.batches.hasNextBatch() && !a ? null : /* @__PURE__ */ s.createElement(
|
|
690
683
|
g,
|
|
691
684
|
{
|
|
692
|
-
isPending: a,
|
|
685
|
+
isPending: a && !n,
|
|
686
|
+
isDisabled: n,
|
|
693
687
|
...i,
|
|
694
688
|
onPress: () => e.batches.nextBatch(),
|
|
695
689
|
variant: "plain",
|
|
@@ -697,13 +691,13 @@ const ve = "flow--list--footer", Fe = {
|
|
|
697
691
|
},
|
|
698
692
|
t.format("list.showMore")
|
|
699
693
|
);
|
|
700
|
-
},
|
|
701
|
-
function
|
|
702
|
-
var
|
|
703
|
-
const { children: t, batchSize: e, ...a } = i, n = (
|
|
694
|
+
}, Ee = () => /* @__PURE__ */ s.createElement("div", { className: Se.footer }, /* @__PURE__ */ s.createElement(ye, null), /* @__PURE__ */ s.createElement(ve, null)), Ce = (i) => /* @__PURE__ */ s.createElement(_, null, /* @__PURE__ */ s.createElement(Dt, null, JSON.stringify(i.data)));
|
|
695
|
+
function ra(i) {
|
|
696
|
+
var v, D, M, P;
|
|
697
|
+
const { children: t, batchSize: e, ...a } = i, n = (v = E(t, de)) == null ? void 0 : v.props, r = (D = E(
|
|
704
698
|
t,
|
|
705
|
-
|
|
706
|
-
)) == null ? void 0 :
|
|
699
|
+
kt
|
|
700
|
+
)) == null ? void 0 : D.props, l = (M = E(t, fe)) == null ? void 0 : M.props, u = {
|
|
707
701
|
source: n ? {
|
|
708
702
|
...n,
|
|
709
703
|
asyncLoader: n.children
|
|
@@ -713,33 +707,34 @@ function ca(i) {
|
|
|
713
707
|
} : l ? {
|
|
714
708
|
staticData: l.data
|
|
715
709
|
} : void 0
|
|
716
|
-
}, p = (f) => /* @__PURE__ */ s.createElement(
|
|
710
|
+
}, p = (f) => /* @__PURE__ */ s.createElement(Ce, { data: f }), m = Wt.useNew({
|
|
717
711
|
loader: u,
|
|
718
|
-
filters:
|
|
719
|
-
sorting:
|
|
720
|
-
render: ((
|
|
712
|
+
filters: O(t, he).map((f) => f.props),
|
|
713
|
+
sorting: O(t, ge).map((f) => f.props),
|
|
714
|
+
render: ((P = E(t, pe)) == null ? void 0 : P.props.children) ?? p,
|
|
721
715
|
...a,
|
|
722
716
|
batchesController: {
|
|
723
717
|
batchSize: e
|
|
724
718
|
}
|
|
725
719
|
});
|
|
726
720
|
return /* @__PURE__ */ s.createElement(
|
|
727
|
-
|
|
721
|
+
X.Provider,
|
|
728
722
|
{
|
|
729
723
|
value: {
|
|
730
|
-
list:
|
|
724
|
+
list: m
|
|
731
725
|
}
|
|
732
726
|
},
|
|
733
|
-
/* @__PURE__ */ s.createElement(
|
|
734
|
-
/* @__PURE__ */ s.createElement("div", { className:
|
|
727
|
+
/* @__PURE__ */ s.createElement(Mt, null),
|
|
728
|
+
/* @__PURE__ */ s.createElement("div", { className: qt.list }, /* @__PURE__ */ s.createElement($t, null), /* @__PURE__ */ s.createElement(ue, null), /* @__PURE__ */ s.createElement(Ee, null))
|
|
735
729
|
);
|
|
736
730
|
}
|
|
737
731
|
export {
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
732
|
+
ra as List,
|
|
733
|
+
he as ListFilter,
|
|
734
|
+
_ as ListItem,
|
|
735
|
+
pe as ListItemView,
|
|
736
|
+
de as ListLoaderAsync,
|
|
737
|
+
ge as ListSorting,
|
|
738
|
+
fe as ListStaticData,
|
|
739
|
+
ra as default
|
|
745
740
|
};
|