@mittwald/flow-react-components 0.2.0-alpha.24 → 0.2.0-alpha.26
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/js/ContextMenu.js +8 -7
- package/dist/js/ContextMenuContent-D2RjW6il.js +121 -0
- package/dist/js/{DialogTriggerView-NI0s4hWl.js → DialogTriggerView-L7WD5ojU.js} +5 -4
- package/dist/js/Fragment-DLqk6JTD.js +8 -0
- package/dist/js/Fragment.js +3 -5
- package/dist/js/List.js +420 -393
- package/dist/js/MenuItem-BGGLM0sj.js +61 -0
- package/dist/js/MenuItem.js +1 -1
- package/dist/js/MenuTrigger-B6S1um5d.js +8 -0
- package/dist/js/Modal.js +1 -1
- package/dist/js/OverlayTrigger.js +5 -3
- package/dist/js/Popover.js +1 -1
- package/dist/js/Tabs.js +40 -42
- package/dist/js/all.css +1 -1
- package/dist/js/types/components/ContextMenu/ContextMenu.d.ts +1 -2
- package/dist/js/types/components/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/js/types/components/ContextMenu/components/ContextMenuContent/ContextMenuContent.d.ts +7 -0
- package/dist/js/types/components/ContextMenu/components/ContextMenuContent/ContextMenuContent.d.ts.map +1 -0
- package/dist/js/types/components/ContextMenu/components/ContextMenuContent/index.d.ts +3 -0
- package/dist/js/types/components/ContextMenu/components/ContextMenuContent/index.d.ts.map +1 -0
- package/dist/js/types/components/ContextMenu/components/ContextMenuContent/view.d.ts +8 -0
- package/dist/js/types/components/ContextMenu/components/{ContextMenuTrigger → ContextMenuContent}/view.d.ts.map +1 -1
- package/dist/js/types/components/ContextMenu/components/ContextMenuTrigger/ContextMenuTrigger.d.ts +0 -1
- package/dist/js/types/components/ContextMenu/components/ContextMenuTrigger/ContextMenuTrigger.d.ts.map +1 -1
- package/dist/js/types/components/ContextMenu/index.d.ts +1 -1
- package/dist/js/types/components/ContextMenu/index.d.ts.map +1 -1
- package/dist/js/types/components/List/components/Header/components/FilterPicker/FilterPicker.d.ts.map +1 -1
- package/dist/js/types/components/List/components/Header/components/SortingPicker/SortingPicker.d.ts.map +1 -1
- package/dist/js/types/components/List/components/Header/components/ViewModeMenu/ViewModeMenu.d.ts.map +1 -1
- package/dist/js/types/components/List/components/ListItemView/ListItemView.d.ts +6 -0
- package/dist/js/types/components/List/components/ListItemView/ListItemView.d.ts.map +1 -0
- package/dist/js/types/components/List/components/ListItemView/components/ListItemViewContent/ListItemViewContent.d.ts +11 -0
- package/dist/js/types/components/List/components/ListItemView/components/ListItemViewContent/ListItemViewContent.d.ts.map +1 -0
- package/dist/js/types/components/List/components/ListItemView/components/ListItemViewContent/index.d.ts +5 -0
- package/dist/js/types/components/List/components/ListItemView/components/ListItemViewContent/index.d.ts.map +1 -0
- package/dist/js/types/components/List/components/ListItemView/components/ListItemViewContent/view.d.ts +8 -0
- package/dist/js/types/components/List/components/ListItemView/components/ListItemViewContent/view.d.ts.map +1 -0
- package/dist/js/types/components/List/components/ListItemView/index.d.ts +5 -0
- package/dist/js/types/components/List/components/ListItemView/index.d.ts.map +1 -0
- package/dist/js/types/components/List/index.d.ts +1 -1
- package/dist/js/types/components/List/index.d.ts.map +1 -1
- package/dist/js/types/components/List/typedList.d.ts +1 -3
- package/dist/js/types/components/List/typedList.d.ts.map +1 -1
- package/dist/js/types/components/MenuItem/components/MenuItemContent/MenuItemContent.d.ts.map +1 -0
- package/dist/js/types/components/MenuItem/components/MenuItemContent/index.d.ts +2 -0
- package/dist/js/types/components/MenuItem/components/MenuItemContent/index.d.ts.map +1 -0
- package/dist/js/types/components/OverlayTrigger/components/DialogTrigger/DialogTrigger.d.ts.map +1 -0
- package/dist/js/types/components/OverlayTrigger/components/DialogTrigger/index.d.ts.map +1 -0
- package/dist/js/types/components/OverlayTrigger/components/{view.d.ts → DialogTrigger/view.d.ts} +1 -1
- package/dist/js/types/components/OverlayTrigger/components/DialogTrigger/view.d.ts.map +1 -0
- package/dist/js/types/components/OverlayTrigger/components/MenuTrigger/MenuTrigger.d.ts +7 -0
- package/dist/js/types/components/OverlayTrigger/components/MenuTrigger/MenuTrigger.d.ts.map +1 -0
- package/dist/js/types/components/OverlayTrigger/components/MenuTrigger/index.d.ts +2 -0
- package/dist/js/types/components/OverlayTrigger/components/MenuTrigger/index.d.ts.map +1 -0
- package/dist/js/types/components/OverlayTrigger/components/MenuTrigger/view.d.ts +8 -0
- package/dist/js/types/components/OverlayTrigger/components/MenuTrigger/view.d.ts.map +1 -0
- package/dist/js/types/components/OverlayTrigger/index.d.ts +1 -0
- package/dist/js/types/components/OverlayTrigger/index.d.ts.map +1 -1
- package/dist/js/types/views/ContextMenuContentView.d.ts +5 -0
- package/dist/js/types/views/{ContextMenuTriggerView.d.ts.map → ContextMenuContentView.d.ts.map} +1 -1
- package/dist/js/types/views/ListItemViewContentView.d.ts +5 -0
- package/dist/js/types/views/ListItemViewContentView.d.ts.map +1 -0
- package/dist/js/types/views/MenuTriggerView.d.ts +5 -0
- package/dist/js/types/views/MenuTriggerView.d.ts.map +1 -0
- package/package.json +4 -4
- package/dist/js/ContextMenuTrigger-kUBBSyaN.js +0 -104
- package/dist/js/MenuItem-D0A7OXWd.js +0 -63
- package/dist/js/types/components/ContextMenu/components/ContextMenuTrigger/view.d.ts +0 -8
- package/dist/js/types/components/ContextMenu/view.d.ts +0 -8
- package/dist/js/types/components/ContextMenu/view.d.ts.map +0 -1
- package/dist/js/types/components/List/components/Items/components/Item/components/View/View.d.ts +0 -6
- package/dist/js/types/components/List/components/Items/components/Item/components/View/View.d.ts.map +0 -1
- package/dist/js/types/components/List/components/Items/components/Item/components/View/index.d.ts +0 -4
- package/dist/js/types/components/List/components/Items/components/Item/components/View/index.d.ts.map +0 -1
- package/dist/js/types/components/MenuItem/components/MenuItemContent.d.ts.map +0 -1
- package/dist/js/types/components/OverlayTrigger/components/DialogTrigger.d.ts.map +0 -1
- package/dist/js/types/components/OverlayTrigger/components/index.d.ts.map +0 -1
- package/dist/js/types/components/OverlayTrigger/components/view.d.ts.map +0 -1
- package/dist/js/types/views/ContextMenuTriggerView.d.ts +0 -5
- package/dist/js/types/views/ContextMenuView.d.ts +0 -5
- package/dist/js/types/views/ContextMenuView.d.ts.map +0 -1
- /package/dist/js/types/components/MenuItem/components/{MenuItemContent.d.ts → MenuItemContent/MenuItemContent.d.ts} +0 -0
- /package/dist/js/types/components/OverlayTrigger/components/{DialogTrigger.d.ts → DialogTrigger/DialogTrigger.d.ts} +0 -0
- /package/dist/js/types/components/OverlayTrigger/components/{index.d.ts → DialogTrigger/index.d.ts} +0 -0
package/dist/js/List.js
CHANGED
|
@@ -3,72 +3,84 @@
|
|
|
3
3
|
var oe = Object.defineProperty;
|
|
4
4
|
var ae = (s, t, e) => t in s ? oe(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
5
5
|
var o = (s, t, e) => ae(s, typeof t != "symbol" ? t + "" : t, e);
|
|
6
|
-
import { jsx as r, jsxs as u, Fragment as
|
|
7
|
-
import { useContext as h, createContext as le, createElement as
|
|
8
|
-
import "./
|
|
9
|
-
import {
|
|
10
|
-
import { d as Q } from "./dynamic-ClpUSmEt.js";
|
|
11
|
-
import { useLocalizedStringFormatter as P } from "react-aria";
|
|
12
|
-
import "@tabler/icons-react";
|
|
13
|
-
import E from "clsx";
|
|
6
|
+
import { jsx as r, jsxs as u, Fragment as vt } from "react/jsx-runtime";
|
|
7
|
+
import { useContext as h, createContext as le, createElement as Ft, useState as q, useEffect as D, useRef as It, useId as ce, Suspense as de, cloneElement as ue } from "react";
|
|
8
|
+
import { f as Vt } from "./flowComponent-B8dC8eRj.js";
|
|
9
|
+
import { TunnelProvider as Ct, TunnelExit as $ } from "@mittwald/react-tunnel";
|
|
14
10
|
import "@react-aria/utils";
|
|
11
|
+
import "./propsContext-DzAKlmhS.js";
|
|
15
12
|
import { isShallowEqual as he, unique as me, difference as ge, times as pe } from "remeda";
|
|
16
13
|
import { getProperty as fe } from "dot-prop";
|
|
17
|
-
import { TunnelProvider as It, TunnelExit as $ } from "@mittwald/react-tunnel";
|
|
18
|
-
import { f as Vt } from "./flowComponent-B8dC8eRj.js";
|
|
19
14
|
import { v as m } from "./viewComponentContext-HXEKmx_D.js";
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
import
|
|
23
|
-
import
|
|
15
|
+
import E from "clsx";
|
|
16
|
+
import { useLocalizedStringFormatter as P } from "react-aria";
|
|
17
|
+
import "@tabler/icons-react";
|
|
18
|
+
import * as Lt from "react-aria-components";
|
|
19
|
+
import Pt from "invariant";
|
|
20
|
+
import "@chakra-ui/live-region";
|
|
21
|
+
import { makeObservable as be, observable as bt, computed as St, action as Y } from "mobx";
|
|
24
22
|
import "./context-BaYmTa0I.js";
|
|
25
|
-
import Lt from "invariant";
|
|
26
23
|
import "./Action-C1Tw5pqL.js";
|
|
27
24
|
import "./getActionGroupSlot-CekBnXeM.js";
|
|
28
|
-
import "
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { I as
|
|
33
|
-
import { I as ve } from "./
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import { observer as xe } from "mobx-react-lite";
|
|
40
|
-
import { T as Me, a as X } from "./Tooltip-BfOJtT5a.js";
|
|
41
|
-
import { I as Be } from "./IconClose-B4zJVugN.js";
|
|
42
|
-
import { B as ke } from "./Badge-CiZ2cJPc.js";
|
|
43
|
-
import { u as De } from "./useOnChange-C1Quwyuz.js";
|
|
44
|
-
import { S as Ee } from "./SearchField-ONmuF9P1.js";
|
|
45
|
-
import "@chakra-ui/live-region";
|
|
46
|
-
import { S as Ne } from "./Section-CWfvE5ls.js";
|
|
25
|
+
import { PropsContextProvider as j } from "./PropsContextProvider.js";
|
|
26
|
+
import { d as _ } from "./dynamic-ClpUSmEt.js";
|
|
27
|
+
import { observer as Se } from "mobx-react-lite";
|
|
28
|
+
import { T as we, a as tt } from "./Tooltip-BfOJtT5a.js";
|
|
29
|
+
import { I as ye } from "./IconClose-B4zJVugN.js";
|
|
30
|
+
import { b as Te, I as ve, a as Fe, c as Ie, d as Ve } from "./IconView-DwPoNey_.js";
|
|
31
|
+
import { B as C } from "./ButtonView-inzXKZFE.js";
|
|
32
|
+
import { D as Ce } from "./Div-kX9yKy8R.js";
|
|
33
|
+
import { B as Le } from "./Badge-CiZ2cJPc.js";
|
|
34
|
+
import { T as At } from "./Text-CW_CzcoD.js";
|
|
35
|
+
import { hash as xt } from "object-code";
|
|
47
36
|
import K from "zod";
|
|
48
|
-
import { useReactTable as
|
|
49
|
-
import { getAsyncResource as
|
|
50
|
-
import { u as
|
|
51
|
-
import { u as
|
|
52
|
-
import
|
|
37
|
+
import { useReactTable as Pe, getCoreRowModel as Ae, getSortedRowModel as xe, getFilteredRowModel as Be, getPaginationRowModel as Me, getFacetedUniqueValues as ke } from "@tanstack/react-table";
|
|
38
|
+
import { getAsyncResource as wt } from "@mittwald/react-use-promise";
|
|
39
|
+
import { u as yt } from "./useSelector-DpU7_HMO.js";
|
|
40
|
+
import { u as De } from "./SettingsProvider-DRSFnfXN.js";
|
|
41
|
+
import "react-children-utilities";
|
|
42
|
+
import { F as Ee } from "./Fragment-DLqk6JTD.js";
|
|
43
|
+
import { I as Ne } from "./IconContextMenu-DnwSrGtk.js";
|
|
44
|
+
import { a as W, C as it } from "./ContextMenuContent-D2RjW6il.js";
|
|
45
|
+
import { I as Re } from "./IllustratedMessage-bJ4rZ5O8.js";
|
|
46
|
+
import { I as $e } from "./IconSearch-DEZjce1A.js";
|
|
47
|
+
import { H as Bt } from "./Heading-CAK54nAl.js";
|
|
48
|
+
import { R as Ue } from "./Render-CP9hqaf1.js";
|
|
49
|
+
import { M as Ke } from "./MenuItem-BGGLM0sj.js";
|
|
50
|
+
import { u as ze } from "./useOnChange-C1Quwyuz.js";
|
|
51
|
+
import { S as Oe } from "./SearchField-ONmuF9P1.js";
|
|
52
|
+
import { S as He } from "./Section-CWfvE5ls.js";
|
|
53
|
+
import { S as Mt } from "./SkeletonText-C83Oqahi.js";
|
|
53
54
|
import { I as Ge } from "./IconChevronDown-DbVQ4UKe.js";
|
|
54
55
|
import { I as qe } from "./IconChevronUp-C7IqV12r.js";
|
|
55
|
-
import { a as
|
|
56
|
+
import { a as F, b as U, d as je } from "./deepHas-KHS5X1F_.js";
|
|
56
57
|
import { ListLoaderAsyncResource as We, TypedListLoaderAsyncResource as Je } from "./List/ListLoaderAsyncResource.js";
|
|
57
58
|
import { S as Ye } from "./Skeleton-Bgnxy2Df.js";
|
|
58
59
|
import { a as Qe, d as Xe, b as Ze, T as _e, e as ts, c as es } from "./Table-BmKOh2Rs.js";
|
|
59
60
|
import { A as ss } from "./ActionGroup-CSpyLctL.js";
|
|
60
|
-
const is = "flow--list--
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
61
|
+
const is = "flow--list--list-summary", ns = {
|
|
62
|
+
listSummary: is
|
|
63
|
+
}, Hn = Vt("ListSummary", (s) => {
|
|
64
|
+
const { children: t } = s;
|
|
65
|
+
return /* @__PURE__ */ r("header", { className: ns.listSummary, ...s, children: t });
|
|
66
|
+
}), rs = "flow--list--list-item-view--view", os = "flow--list--list-item-view--content", as = "flow--list--list-item-view--title", ls = "flow--list--list-item-view--avatar", cs = "flow--list--list-item-view--sub-title", ds = "flow--list--list-item-view--heading", us = "flow--list--list-item-view--text", hs = "flow--list--list-item-view--top-content", ms = "flow--list--list-item-view--action", gs = "flow--list--list-item-view--bottom-content", S = {
|
|
67
|
+
view: rs,
|
|
68
|
+
content: os,
|
|
69
|
+
title: as,
|
|
70
|
+
avatar: ls,
|
|
71
|
+
subTitle: cs,
|
|
72
|
+
heading: ds,
|
|
73
|
+
text: us,
|
|
74
|
+
topContent: hs,
|
|
75
|
+
action: ms,
|
|
76
|
+
bottomContent: gs
|
|
77
|
+
}, ps = (s) => {
|
|
78
|
+
const t = h(m).ListItemViewContent ?? Ss;
|
|
79
|
+
return /* @__PURE__ */ r(t, { ...s });
|
|
80
|
+
}, Q = (s) => {
|
|
81
|
+
const t = h(m).Fragment ?? Ee;
|
|
82
|
+
return /* @__PURE__ */ r(t, { ...s });
|
|
83
|
+
}, T = { "de-DE": {
|
|
72
84
|
"list.filters.clear": "Filter entfernen",
|
|
73
85
|
"list.filters.reset": "Filter zurücksetzen",
|
|
74
86
|
"list.filters.store": "Filter speichern",
|
|
@@ -100,12 +112,9 @@ const is = "flow--list--items--item--view", ns = "flow--list--items--item--view-
|
|
|
100
112
|
"list.sorting": "Sorting",
|
|
101
113
|
"list.toggleExpandButton.collapse": "Show less",
|
|
102
114
|
"list.toggleExpandButton.expand": "Show more"
|
|
103
|
-
} },
|
|
104
|
-
const t =
|
|
105
|
-
return /* @__PURE__ */
|
|
106
|
-
}, ms = (s) => {
|
|
107
|
-
const { className: t, children: e } = s, i = P(v);
|
|
108
|
-
return /* @__PURE__ */ u(et, { children: [
|
|
115
|
+
} }, fs = (s) => {
|
|
116
|
+
const { className: t, children: e } = s, i = P(T);
|
|
117
|
+
return /* @__PURE__ */ u(W, { children: [
|
|
109
118
|
/* @__PURE__ */ r(
|
|
110
119
|
C,
|
|
111
120
|
{
|
|
@@ -114,83 +123,100 @@ const is = "flow--list--items--item--view", ns = "flow--list--items--item--view-
|
|
|
114
123
|
className: t,
|
|
115
124
|
"aria-label": i.format("list.options"),
|
|
116
125
|
tunnelId: null,
|
|
117
|
-
children: /* @__PURE__ */ r(
|
|
126
|
+
children: /* @__PURE__ */ r(Ne, {})
|
|
118
127
|
}
|
|
119
128
|
),
|
|
120
129
|
e
|
|
121
130
|
] });
|
|
122
|
-
},
|
|
123
|
-
const t = h(m).Div ?? ye;
|
|
124
|
-
return /* @__PURE__ */ r(t, { ...s });
|
|
125
|
-
}, gs = (s) => s === "top" ? S.topContent : s === "bottom" ? S.bottomContent : S.topContent, kt = (s) => {
|
|
131
|
+
}, kt = (s) => {
|
|
126
132
|
const { children: t, className: e } = s, i = {
|
|
127
133
|
ContextMenu: {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
tunnelId: "button"
|
|
134
|
+
tunnelId: "button",
|
|
135
|
+
wrapWith: /* @__PURE__ */ r(fs, { className: S.action })
|
|
131
136
|
},
|
|
132
137
|
Button: {
|
|
133
|
-
className: S.action,
|
|
134
138
|
tunnelId: "button"
|
|
135
139
|
},
|
|
136
140
|
ActionGroup: {
|
|
137
|
-
className: S.action,
|
|
138
|
-
ignoreBreakpoint: !0,
|
|
139
141
|
tunnelId: "button",
|
|
140
142
|
Button: {
|
|
141
143
|
tunnelId: null
|
|
142
144
|
}
|
|
143
145
|
},
|
|
144
|
-
Content: {
|
|
145
|
-
className: Q((a) => gs(a.slot))
|
|
146
|
-
},
|
|
147
146
|
Avatar: {
|
|
148
|
-
className: S.avatar,
|
|
149
147
|
tunnelId: "title"
|
|
150
148
|
},
|
|
151
149
|
Heading: {
|
|
152
|
-
className: S.heading,
|
|
153
|
-
level: 5,
|
|
154
150
|
tunnelId: "title"
|
|
155
151
|
},
|
|
156
152
|
Text: {
|
|
157
|
-
className: S.text,
|
|
158
153
|
tunnelId: "text"
|
|
154
|
+
}
|
|
155
|
+
}, n = E(S.view, e);
|
|
156
|
+
return /* @__PURE__ */ r(j, { props: i, mergeInParentContext: !0, children: /* @__PURE__ */ r(Ct, { children: /* @__PURE__ */ r(
|
|
157
|
+
ps,
|
|
158
|
+
{
|
|
159
|
+
title: /* @__PURE__ */ r(Q, { children: /* @__PURE__ */ r($, { id: "title" }) }),
|
|
160
|
+
button: /* @__PURE__ */ r(Q, { children: /* @__PURE__ */ r($, { id: "button" }) }),
|
|
161
|
+
subTitle: /* @__PURE__ */ r(Q, { children: /* @__PURE__ */ r($, { id: "text" }) }),
|
|
162
|
+
className: n,
|
|
163
|
+
children: t
|
|
164
|
+
}
|
|
165
|
+
) }) });
|
|
166
|
+
}, bs = (s) => s === "top" ? S.topContent : s === "bottom" ? S.bottomContent : S.topContent, Ss = (s) => {
|
|
167
|
+
const { children: t, className: e, title: i, subTitle: n, button: a } = s, l = {
|
|
168
|
+
ContextMenu: {
|
|
169
|
+
placement: "bottom end"
|
|
170
|
+
},
|
|
171
|
+
Button: {
|
|
172
|
+
className: S.action
|
|
173
|
+
},
|
|
174
|
+
ActionGroup: {
|
|
175
|
+
className: S.action,
|
|
176
|
+
ignoreBreakpoint: !0
|
|
177
|
+
},
|
|
178
|
+
Content: {
|
|
179
|
+
className: _((d) => bs(d.slot))
|
|
180
|
+
},
|
|
181
|
+
Avatar: {
|
|
182
|
+
className: S.avatar
|
|
183
|
+
},
|
|
184
|
+
Heading: {
|
|
185
|
+
className: S.heading,
|
|
186
|
+
level: 5
|
|
187
|
+
},
|
|
188
|
+
Text: {
|
|
189
|
+
className: S.text
|
|
159
190
|
},
|
|
160
191
|
Link: {
|
|
161
192
|
unstyled: !0
|
|
162
193
|
}
|
|
163
|
-
}
|
|
164
|
-
return /* @__PURE__ */ r(
|
|
165
|
-
/* @__PURE__ */ u(
|
|
194
|
+
};
|
|
195
|
+
return /* @__PURE__ */ r(j, { props: l, mergeInParentContext: !0, children: /* @__PURE__ */ u("div", { className: e, children: [
|
|
196
|
+
/* @__PURE__ */ u("div", { className: S.content, children: [
|
|
166
197
|
t,
|
|
167
|
-
/* @__PURE__ */ u(
|
|
168
|
-
|
|
169
|
-
/* @__PURE__ */ r(
|
|
198
|
+
/* @__PURE__ */ u("div", { className: S.title, children: [
|
|
199
|
+
i,
|
|
200
|
+
/* @__PURE__ */ r("div", { className: S.subTitle, children: n })
|
|
170
201
|
] })
|
|
171
202
|
] }),
|
|
172
|
-
|
|
173
|
-
] }) })
|
|
174
|
-
},
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
const s = P(v);
|
|
181
|
-
return /* @__PURE__ */ u(Te, { children: [
|
|
182
|
-
/* @__PURE__ */ r(ve, {}),
|
|
183
|
-
/* @__PURE__ */ r(xt, { children: s.format("list.noResult.heading") }),
|
|
184
|
-
/* @__PURE__ */ r(Mt, { children: s.format("list.noResult.text") })
|
|
203
|
+
a
|
|
204
|
+
] }) });
|
|
205
|
+
}, Dt = () => {
|
|
206
|
+
const s = P(T);
|
|
207
|
+
return /* @__PURE__ */ u(Re, { children: [
|
|
208
|
+
/* @__PURE__ */ r($e, {}),
|
|
209
|
+
/* @__PURE__ */ r(Bt, { children: s.format("list.noResult.heading") }),
|
|
210
|
+
/* @__PURE__ */ r(At, { children: s.format("list.noResult.text") })
|
|
185
211
|
] });
|
|
186
|
-
},
|
|
187
|
-
item:
|
|
188
|
-
isSelected:
|
|
189
|
-
hasAction:
|
|
190
|
-
},
|
|
212
|
+
}, ws = (s) => /* @__PURE__ */ r(Lt.GridList, { ...s, renderEmptyState: () => /* @__PURE__ */ r(Dt, {}) }), ys = "flow--list--items--item", Ts = "flow--list--items--item--is-selected", vs = "flow--list--items--item--has-action", z = {
|
|
213
|
+
item: ys,
|
|
214
|
+
isSelected: Ts,
|
|
215
|
+
hasAction: vs
|
|
216
|
+
}, Fs = (s) => {
|
|
191
217
|
const { hasAction: t, ...e } = s;
|
|
192
218
|
return /* @__PURE__ */ r(
|
|
193
|
-
|
|
219
|
+
Lt.GridListItem,
|
|
194
220
|
{
|
|
195
221
|
...e,
|
|
196
222
|
className: (i) => E(
|
|
@@ -200,32 +226,29 @@ const is = "flow--list--items--item--view", ns = "flow--list--items--item--view-
|
|
|
200
226
|
)
|
|
201
227
|
}
|
|
202
228
|
);
|
|
203
|
-
}, Et = le({}),
|
|
229
|
+
}, Et = le({}), y = () => h(Et).list, Is = () => y().loader.getLoaderInvocationHooks().map((t, e) => /* @__PURE__ */ r(Ue, { children: () => {
|
|
204
230
|
t();
|
|
205
|
-
} }, e)),
|
|
206
|
-
const t = h(m).MenuItem ??
|
|
231
|
+
} }, e)), nt = (s) => {
|
|
232
|
+
const t = h(m).MenuItem ?? Ke;
|
|
207
233
|
return /* @__PURE__ */ r(t, { ...s });
|
|
208
|
-
},
|
|
234
|
+
}, Vs = (s) => {
|
|
209
235
|
const { sorting: t } = s;
|
|
210
|
-
return /* @__PURE__ */ r(
|
|
236
|
+
return /* @__PURE__ */ r(nt, { id: t.id, children: t.name });
|
|
211
237
|
}, O = (s) => {
|
|
212
238
|
const { children: t, locales: e, variables: i } = s;
|
|
213
239
|
return P(e).format(t, i);
|
|
214
240
|
}, N = (s) => {
|
|
215
|
-
const t = h(m).Text ??
|
|
241
|
+
const t = h(m).Text ?? At;
|
|
216
242
|
return /* @__PURE__ */ r(t, { ...s });
|
|
217
|
-
},
|
|
218
|
-
const t =
|
|
219
|
-
return /* @__PURE__ */ r(t, { ...s });
|
|
220
|
-
}, Is = () => {
|
|
221
|
-
const s = T(), t = s.visibleSorting.map((n) => /* @__PURE__ */ r(Fs, { sorting: n }, n.id));
|
|
243
|
+
}, Cs = () => {
|
|
244
|
+
const s = y(), t = s.visibleSorting.map((n) => /* @__PURE__ */ r(Vs, { sorting: n }, n.id));
|
|
222
245
|
if (t.length === 0)
|
|
223
246
|
return null;
|
|
224
|
-
const e = s.visibleSorting.find((n) => n.isSorted()), i = /* @__PURE__ */ r(N, { children: e ? /* @__PURE__ */ r(
|
|
225
|
-
return /* @__PURE__ */ u(
|
|
247
|
+
const e = s.visibleSorting.find((n) => n.isSorted()), i = /* @__PURE__ */ r(N, { children: e ? /* @__PURE__ */ r(vt, { children: e.name ?? e.property }) : /* @__PURE__ */ r(O, { locales: T, children: "list.sorting" }) });
|
|
248
|
+
return /* @__PURE__ */ u(W, { children: [
|
|
226
249
|
/* @__PURE__ */ u(C, { variant: "outline", color: "secondary", children: [
|
|
227
250
|
i,
|
|
228
|
-
/* @__PURE__ */ r(
|
|
251
|
+
/* @__PURE__ */ r(Te, {})
|
|
229
252
|
] }),
|
|
230
253
|
/* @__PURE__ */ r(
|
|
231
254
|
it,
|
|
@@ -239,53 +262,56 @@ const is = "flow--list--items--item--view", ns = "flow--list--items--item--view-
|
|
|
239
262
|
}
|
|
240
263
|
)
|
|
241
264
|
] });
|
|
242
|
-
},
|
|
243
|
-
const { filter: t } = s, { values: e, mode: i, name: n, property: a } = t,
|
|
244
|
-
|
|
265
|
+
}, Ls = (s) => {
|
|
266
|
+
const { filter: t } = s, { values: e, mode: i, name: n, property: a } = t, l = e.map((c) => /* @__PURE__ */ r(
|
|
267
|
+
nt,
|
|
245
268
|
{
|
|
246
|
-
id:
|
|
269
|
+
id: c.id,
|
|
247
270
|
onAction: () => {
|
|
248
|
-
|
|
271
|
+
c.toggle();
|
|
249
272
|
},
|
|
250
|
-
children:
|
|
273
|
+
children: c.render()
|
|
251
274
|
},
|
|
252
|
-
|
|
253
|
-
)), d = e.filter((
|
|
254
|
-
return /* @__PURE__ */ u(
|
|
275
|
+
c.id
|
|
276
|
+
)), d = e.filter((c) => c.isActive).map((c) => c.id);
|
|
277
|
+
return /* @__PURE__ */ u(W, { children: [
|
|
255
278
|
/* @__PURE__ */ u(C, { variant: "outline", color: "secondary", children: [
|
|
256
279
|
/* @__PURE__ */ r(N, { children: n ?? a }),
|
|
257
|
-
/* @__PURE__ */ r(
|
|
280
|
+
/* @__PURE__ */ r(ve, {})
|
|
258
281
|
] }),
|
|
259
282
|
/* @__PURE__ */ r(
|
|
260
283
|
it,
|
|
261
284
|
{
|
|
262
285
|
selectionMode: i === "one" ? "single" : "multiple",
|
|
263
286
|
selectedKeys: d,
|
|
264
|
-
children:
|
|
287
|
+
children: l
|
|
265
288
|
}
|
|
266
289
|
)
|
|
267
290
|
] });
|
|
268
|
-
},
|
|
269
|
-
header:
|
|
270
|
-
pickerListAndSearch:
|
|
271
|
-
pickerList:
|
|
272
|
-
searchAndActions:
|
|
273
|
-
searchField:
|
|
274
|
-
},
|
|
275
|
-
activeFilters:
|
|
276
|
-
clearButton:
|
|
277
|
-
},
|
|
278
|
-
const t = h(m).Tooltip ??
|
|
291
|
+
}, Ps = "flow--list--header", As = "flow--list--header--picker-list-and-search", xs = "flow--list--header--picker-list", Bs = "flow--list--header--search-and-actions", Ms = "flow--list--header--search-field", k = {
|
|
292
|
+
header: Ps,
|
|
293
|
+
pickerListAndSearch: As,
|
|
294
|
+
pickerList: xs,
|
|
295
|
+
searchAndActions: Bs,
|
|
296
|
+
searchField: Ms
|
|
297
|
+
}, ks = "flow--list--header--active-filters", Ds = "flow--list--header--active-filters--clear-button", Es = {
|
|
298
|
+
activeFilters: ks,
|
|
299
|
+
clearButton: Ds
|
|
300
|
+
}, X = (s) => {
|
|
301
|
+
const t = h(m).Tooltip ?? we;
|
|
279
302
|
return /* @__PURE__ */ r(t, { ...s });
|
|
280
|
-
},
|
|
281
|
-
const t = h(m).
|
|
303
|
+
}, I = (s) => {
|
|
304
|
+
const t = h(m).Div ?? Ce;
|
|
282
305
|
return /* @__PURE__ */ r(t, { ...s });
|
|
283
|
-
},
|
|
284
|
-
const t = h(m).
|
|
306
|
+
}, Ns = (s) => {
|
|
307
|
+
const t = h(m).Badge ?? Le;
|
|
285
308
|
return /* @__PURE__ */ r(t, { ...s });
|
|
286
|
-
},
|
|
287
|
-
const
|
|
288
|
-
|
|
309
|
+
}, Rs = (s) => {
|
|
310
|
+
const t = h(m).TooltipTrigger ?? tt;
|
|
311
|
+
return /* @__PURE__ */ r(t, { ...s });
|
|
312
|
+
}, $s = Se(() => {
|
|
313
|
+
const s = y(), t = P(T), i = s.filters.flatMap((c) => c.values).filter((c) => c.isActive).map((c) => /* @__PURE__ */ r(Ns, { onClose: () => c.deactivate(), children: /* @__PURE__ */ r(N, { children: c.render() }) }, c.id)), n = s.filters.filter((c) => c.hasChanged()).length > 0, a = s.supportsSettingsStorage && n && /* @__PURE__ */ u(Rs, { children: [
|
|
314
|
+
/* @__PURE__ */ r(X, { children: /* @__PURE__ */ r(O, { locales: T, children: "list.filters.store" }) }),
|
|
289
315
|
/* @__PURE__ */ r(
|
|
290
316
|
C,
|
|
291
317
|
{
|
|
@@ -294,11 +320,11 @@ const is = "flow--list--items--item--view", ns = "flow--list--items--item--view-
|
|
|
294
320
|
color: "secondary",
|
|
295
321
|
onPress: () => s.storeFilterDefaultSettings(),
|
|
296
322
|
"aria-label": t.format("list.filters.store"),
|
|
297
|
-
children: /* @__PURE__ */ r(
|
|
323
|
+
children: /* @__PURE__ */ r(Fe, {})
|
|
298
324
|
}
|
|
299
325
|
)
|
|
300
|
-
] }),
|
|
301
|
-
/* @__PURE__ */ r(
|
|
326
|
+
] }), l = n ? /* @__PURE__ */ u(tt, { children: [
|
|
327
|
+
/* @__PURE__ */ r(X, { children: /* @__PURE__ */ r(O, { locales: T, children: "list.filters.reset" }) }),
|
|
302
328
|
/* @__PURE__ */ r(
|
|
303
329
|
C,
|
|
304
330
|
{
|
|
@@ -307,11 +333,11 @@ const is = "flow--list--items--item--view", ns = "flow--list--items--item--view-
|
|
|
307
333
|
color: "secondary",
|
|
308
334
|
onPress: () => s.resetFilters(),
|
|
309
335
|
"aria-label": t.format("list.filters.reset"),
|
|
310
|
-
children: /* @__PURE__ */ r(
|
|
336
|
+
children: /* @__PURE__ */ r(Ie, {})
|
|
311
337
|
}
|
|
312
338
|
)
|
|
313
|
-
] }) : void 0, d = i.length > 0 ? /* @__PURE__ */ u(
|
|
314
|
-
/* @__PURE__ */ r(
|
|
339
|
+
] }) : void 0, d = i.length > 0 ? /* @__PURE__ */ u(tt, { children: [
|
|
340
|
+
/* @__PURE__ */ r(X, { children: /* @__PURE__ */ r(O, { locales: T, children: "list.filters.clear" }) }),
|
|
315
341
|
/* @__PURE__ */ r(
|
|
316
342
|
C,
|
|
317
343
|
{
|
|
@@ -319,64 +345,64 @@ const is = "flow--list--items--item--view", ns = "flow--list--items--item--view-
|
|
|
319
345
|
variant: "plain",
|
|
320
346
|
color: "secondary",
|
|
321
347
|
onPress: () => s.clearFilters(),
|
|
322
|
-
children: /* @__PURE__ */ r(
|
|
348
|
+
children: /* @__PURE__ */ r(ye, {})
|
|
323
349
|
}
|
|
324
350
|
)
|
|
325
351
|
] }) : void 0;
|
|
326
|
-
return i.length === 0 && !a && !
|
|
352
|
+
return i.length === 0 && !a && !l ? null : /* @__PURE__ */ u(I, { className: Es.activeFilters, children: [
|
|
327
353
|
i,
|
|
328
354
|
a,
|
|
329
|
-
|
|
355
|
+
l,
|
|
330
356
|
d
|
|
331
357
|
] });
|
|
332
|
-
}),
|
|
333
|
-
const t = h(m).SearchField ??
|
|
358
|
+
}), Us = (s) => {
|
|
359
|
+
const t = h(m).SearchField ?? Oe;
|
|
334
360
|
return /* @__PURE__ */ r(t, { ...s });
|
|
335
|
-
},
|
|
336
|
-
const { className: t, onChange: e, value: i, autoSubmit: n, ...a } = s, [
|
|
337
|
-
|
|
361
|
+
}, Ks = 800, zs = (s) => {
|
|
362
|
+
const { className: t, onChange: e, value: i, autoSubmit: n, ...a } = s, [l, d] = q(i ?? ""), c = () => {
|
|
363
|
+
l.trim() === "" ? e(void 0) : e(l);
|
|
338
364
|
};
|
|
339
365
|
D(() => {
|
|
340
366
|
if (n) {
|
|
341
|
-
const p = setTimeout(() =>
|
|
367
|
+
const p = setTimeout(() => c(), Ks);
|
|
342
368
|
return () => clearTimeout(p);
|
|
343
369
|
}
|
|
344
|
-
}, [
|
|
370
|
+
}, [l, n]), ze(i, () => {
|
|
345
371
|
d(i ?? "");
|
|
346
|
-
}, [
|
|
372
|
+
}, [l]);
|
|
347
373
|
const g = () => {
|
|
348
374
|
e(void 0), d("");
|
|
349
375
|
};
|
|
350
376
|
return /* @__PURE__ */ r(
|
|
351
|
-
|
|
377
|
+
Us,
|
|
352
378
|
{
|
|
353
379
|
className: t,
|
|
354
|
-
value:
|
|
380
|
+
value: l,
|
|
355
381
|
onKeyUp: (p) => {
|
|
356
|
-
p.key === "Enter" ?
|
|
382
|
+
p.key === "Enter" ? c() : p.key === "Escape" && g();
|
|
357
383
|
},
|
|
358
384
|
onChange: (p) => d(p),
|
|
359
385
|
onClear: g,
|
|
360
386
|
...a
|
|
361
387
|
}
|
|
362
388
|
);
|
|
363
|
-
},
|
|
364
|
-
const { className: t, search: e } = s, i = e.render ??
|
|
365
|
-
return
|
|
389
|
+
}, Os = (s) => {
|
|
390
|
+
const { className: t, search: e } = s, i = e.render ?? zs;
|
|
391
|
+
return Ft(i, {
|
|
366
392
|
className: t,
|
|
367
393
|
value: e.value,
|
|
368
394
|
onChange: e.setValue.bind(e),
|
|
369
395
|
...e.textFieldProps
|
|
370
396
|
});
|
|
371
|
-
},
|
|
372
|
-
const t = h(m).Section ??
|
|
397
|
+
}, Hs = (s) => {
|
|
398
|
+
const t = h(m).Section ?? He;
|
|
373
399
|
return /* @__PURE__ */ r(t, { ...s });
|
|
374
400
|
}, Nt = (s) => {
|
|
375
|
-
const t = h(m).Heading ??
|
|
401
|
+
const t = h(m).Heading ?? Bt;
|
|
376
402
|
return /* @__PURE__ */ r(t, { ...s });
|
|
377
|
-
},
|
|
378
|
-
const s = P(
|
|
379
|
-
return t.itemView && i.push("list"), t.table && i.push("table"), i.length <= 1 ? null : /* @__PURE__ */ u(
|
|
403
|
+
}, Gs = () => {
|
|
404
|
+
const s = P(T), t = y(), e = t.viewMode, i = [];
|
|
405
|
+
return t.itemView && i.push("list"), t.table && i.push("table"), i.length <= 1 ? null : /* @__PURE__ */ u(W, { children: [
|
|
380
406
|
/* @__PURE__ */ u(
|
|
381
407
|
C,
|
|
382
408
|
{
|
|
@@ -385,14 +411,14 @@ const is = "flow--list--items--item--view", ns = "flow--list--items--item--view-
|
|
|
385
411
|
"aria-label": s.format("list.settings"),
|
|
386
412
|
children: [
|
|
387
413
|
/* @__PURE__ */ r(N, { children: s.format(`list.settings.viewMode.${e}`) }),
|
|
388
|
-
/* @__PURE__ */ r(
|
|
414
|
+
/* @__PURE__ */ r(Ve, {})
|
|
389
415
|
]
|
|
390
416
|
}
|
|
391
417
|
),
|
|
392
|
-
/* @__PURE__ */ r(it, { selectionMode: "single", selectedKeys: [e], children: /* @__PURE__ */ u(
|
|
418
|
+
/* @__PURE__ */ r(it, { selectionMode: "single", selectedKeys: [e], children: /* @__PURE__ */ u(Hs, { children: [
|
|
393
419
|
/* @__PURE__ */ r(Nt, { children: s.format("list.settings.viewMode") }),
|
|
394
420
|
i.map((n) => /* @__PURE__ */ r(
|
|
395
|
-
|
|
421
|
+
nt,
|
|
396
422
|
{
|
|
397
423
|
id: n,
|
|
398
424
|
onAction: () => {
|
|
@@ -404,29 +430,29 @@ const is = "flow--list--items--item--view", ns = "flow--list--items--item--view-
|
|
|
404
430
|
))
|
|
405
431
|
] }) })
|
|
406
432
|
] });
|
|
407
|
-
},
|
|
408
|
-
const { className: t, hasActionGroup: e } = s, i =
|
|
433
|
+
}, qs = (s) => {
|
|
434
|
+
const { className: t, hasActionGroup: e } = s, i = y();
|
|
409
435
|
if (i.filters.length === 0 && i.visibleSorting.length === 0 && !i.search && !i.table && !e)
|
|
410
436
|
return null;
|
|
411
|
-
const n = i.filters.map((a) => /* @__PURE__ */ r(
|
|
412
|
-
return /* @__PURE__ */ u(
|
|
413
|
-
/* @__PURE__ */ u(
|
|
414
|
-
/* @__PURE__ */ u(
|
|
415
|
-
/* @__PURE__ */ r(
|
|
416
|
-
/* @__PURE__ */ r(
|
|
437
|
+
const n = i.filters.map((a) => /* @__PURE__ */ r(Ls, { filter: a }, a.property));
|
|
438
|
+
return /* @__PURE__ */ u(I, { className: E(t, k.header), children: [
|
|
439
|
+
/* @__PURE__ */ u(I, { className: k.pickerListAndSearch, children: [
|
|
440
|
+
/* @__PURE__ */ u(I, { className: k.pickerList, children: [
|
|
441
|
+
/* @__PURE__ */ r(Gs, {}),
|
|
442
|
+
/* @__PURE__ */ r(Cs, {}),
|
|
417
443
|
n
|
|
418
444
|
] }),
|
|
419
|
-
/* @__PURE__ */ u(
|
|
420
|
-
i.search && /* @__PURE__ */ r(
|
|
445
|
+
/* @__PURE__ */ u(I, { className: k.searchAndActions, children: [
|
|
446
|
+
i.search && /* @__PURE__ */ r(Os, { className: k.searchField, search: i.search }),
|
|
421
447
|
/* @__PURE__ */ r($, { id: "actions" })
|
|
422
448
|
] })
|
|
423
449
|
] }),
|
|
424
|
-
/* @__PURE__ */ r(
|
|
450
|
+
/* @__PURE__ */ r($s, {})
|
|
425
451
|
] });
|
|
426
|
-
},
|
|
427
|
-
list:
|
|
452
|
+
}, js = "flow--list", Ws = {
|
|
453
|
+
list: js
|
|
428
454
|
};
|
|
429
|
-
let
|
|
455
|
+
let Js = class Rt {
|
|
430
456
|
constructor(t, e, i) {
|
|
431
457
|
o(this, "id");
|
|
432
458
|
o(this, "data");
|
|
@@ -437,16 +463,16 @@ let js = class Rt {
|
|
|
437
463
|
return new Rt(t, e.id, e.original);
|
|
438
464
|
}
|
|
439
465
|
};
|
|
440
|
-
class
|
|
466
|
+
class Ys {
|
|
441
467
|
constructor(t) {
|
|
442
468
|
o(this, "list");
|
|
443
469
|
this.list = t;
|
|
444
470
|
}
|
|
445
471
|
get entries() {
|
|
446
|
-
return this.list.reactTable.table.getRowModel().rows.map((t) =>
|
|
472
|
+
return this.list.reactTable.table.getRowModel().rows.map((t) => Js.fromRow(this, t));
|
|
447
473
|
}
|
|
448
474
|
}
|
|
449
|
-
class
|
|
475
|
+
class Qs {
|
|
450
476
|
constructor(t, e = {}) {
|
|
451
477
|
o(this, "batchSize");
|
|
452
478
|
o(this, "list");
|
|
@@ -493,7 +519,7 @@ class Js {
|
|
|
493
519
|
}
|
|
494
520
|
}
|
|
495
521
|
}
|
|
496
|
-
const
|
|
522
|
+
const Xs = "$";
|
|
497
523
|
class L {
|
|
498
524
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
499
525
|
constructor(t, e) {
|
|
@@ -501,7 +527,7 @@ class L {
|
|
|
501
527
|
o(this, "value");
|
|
502
528
|
o(this, "id");
|
|
503
529
|
var i;
|
|
504
|
-
this.filter = t, typeof e == "string" && e.startsWith("FilterValueId@@") ? (this.value = (i = t.values.find((n) => n.id === e)) == null ? void 0 : i.value, this.id = e) : (this.value = e, this.id = `FilterValueId@@${this.filter.property}@@${
|
|
530
|
+
this.filter = t, typeof e == "string" && e.startsWith("FilterValueId@@") ? (this.value = (i = t.values.find((n) => n.id === e)) == null ? void 0 : i.value, this.id = e) : (this.value = e, this.id = `FilterValueId@@${this.filter.property}@@${xt(this.value)}`);
|
|
505
531
|
}
|
|
506
532
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
507
533
|
static create(t, e) {
|
|
@@ -523,7 +549,7 @@ class L {
|
|
|
523
549
|
this.filter.deactivateValue(this);
|
|
524
550
|
}
|
|
525
551
|
}
|
|
526
|
-
const
|
|
552
|
+
const Z = (s) => Array.isArray(s) ? s : [s], Zs = (s, t) => s === t, _s = (s) => String(s);
|
|
527
553
|
class H {
|
|
528
554
|
constructor(t, e) {
|
|
529
555
|
o(this, "_values");
|
|
@@ -537,7 +563,7 @@ class H {
|
|
|
537
563
|
o(this, "onFilterUpdateCallbacks", /* @__PURE__ */ new Set());
|
|
538
564
|
o(this, "defaultSelectedValues");
|
|
539
565
|
var i;
|
|
540
|
-
this.list = t, this.property = e.property, this.mode = e.mode ?? "one", this._values = (i = e.values) == null ? void 0 : i.map((n) => L.create(this, n)), this.matcher = e.matcher ??
|
|
566
|
+
this.list = t, this.property = e.property, this.mode = e.mode ?? "one", this._values = (i = e.values) == null ? void 0 : i.map((n) => L.create(this, n)), this.matcher = e.matcher ?? Zs, this.renderItem = e.renderItem ?? _s, this.name = e.name, this.defaultSelectedValues = e.defaultSelected;
|
|
541
567
|
}
|
|
542
568
|
getStoredSelectedIds() {
|
|
543
569
|
var t;
|
|
@@ -558,7 +584,7 @@ class H {
|
|
|
558
584
|
}
|
|
559
585
|
getReactTableFilterFn() {
|
|
560
586
|
return (t, e, i) => {
|
|
561
|
-
const n = this.property, a = n.startsWith(
|
|
587
|
+
const n = this.property, a = n.startsWith(Xs) ? t.original : fe(t.original, n);
|
|
562
588
|
return this.checkFilterMatches(a, i);
|
|
563
589
|
};
|
|
564
590
|
}
|
|
@@ -567,9 +593,9 @@ class H {
|
|
|
567
593
|
return !0;
|
|
568
594
|
const i = (a) => this.matcher(a.value, t), n = (a) => L.create(this, a);
|
|
569
595
|
if (this.mode === "all")
|
|
570
|
-
return
|
|
596
|
+
return Z(e).map(n).every(i);
|
|
571
597
|
if (this.mode === "some") {
|
|
572
|
-
const a =
|
|
598
|
+
const a = Z(e);
|
|
573
599
|
return a.length === 0 || a.map(n).some(i);
|
|
574
600
|
} else if (this.mode === "one")
|
|
575
601
|
return i(n(e));
|
|
@@ -606,7 +632,7 @@ class H {
|
|
|
606
632
|
}
|
|
607
633
|
getArrayValue() {
|
|
608
634
|
const t = this.getValue();
|
|
609
|
-
return t === null ? [] :
|
|
635
|
+
return t === null ? [] : Z(t).map((e) => L.create(this, e));
|
|
610
636
|
}
|
|
611
637
|
isValueActive(t) {
|
|
612
638
|
return this.getArrayValue().some((e) => e.equals(t));
|
|
@@ -649,7 +675,7 @@ class H {
|
|
|
649
675
|
}
|
|
650
676
|
}
|
|
651
677
|
o(H, "settingsStorageSchema", K.record(K.array(K.string())).optional());
|
|
652
|
-
class
|
|
678
|
+
class ti {
|
|
653
679
|
constructor(t, e) {
|
|
654
680
|
o(this, "list");
|
|
655
681
|
o(this, "property");
|
|
@@ -683,7 +709,7 @@ class Zs {
|
|
|
683
709
|
return `${this.getTableColumn().id}:${this.direction}`;
|
|
684
710
|
}
|
|
685
711
|
}
|
|
686
|
-
class
|
|
712
|
+
class rt {
|
|
687
713
|
constructor(t, e, i = {}) {
|
|
688
714
|
o(this, "list");
|
|
689
715
|
o(this, "table");
|
|
@@ -692,16 +718,16 @@ class nt {
|
|
|
692
718
|
this.list = t;
|
|
693
719
|
const n = this.list.sorting.filter(
|
|
694
720
|
(d) => d.defaultEnabled !== !1
|
|
695
|
-
), [a,
|
|
721
|
+
), [a, l] = q(
|
|
696
722
|
n.map((d) => d.getReactTableColumnSort())
|
|
697
723
|
);
|
|
698
|
-
this.sortingState = a, this.updateSortingState =
|
|
724
|
+
this.sortingState = a, this.updateSortingState = l, this.table = this.useReactTable(e, i);
|
|
699
725
|
}
|
|
700
726
|
static useNew(t, e, i = {}) {
|
|
701
|
-
return new
|
|
727
|
+
return new rt(t, e, i);
|
|
702
728
|
}
|
|
703
729
|
useReactTable(t, e = {}) {
|
|
704
|
-
var
|
|
730
|
+
var l;
|
|
705
731
|
const i = this.list.loader.useData(), n = {
|
|
706
732
|
pagination: {
|
|
707
733
|
pageSize: this.list.batches.batchSize
|
|
@@ -710,8 +736,8 @@ class nt {
|
|
|
710
736
|
};
|
|
711
737
|
for (const d of this.list.filters)
|
|
712
738
|
d.updateInitialState(n);
|
|
713
|
-
(
|
|
714
|
-
const a =
|
|
739
|
+
(l = this.list.search) == null || l.updateInitialState(n);
|
|
740
|
+
const a = Pe({
|
|
715
741
|
data: i,
|
|
716
742
|
state: {
|
|
717
743
|
sorting: this.sortingState
|
|
@@ -719,11 +745,11 @@ class nt {
|
|
|
719
745
|
getRowId: this.list.getItemId,
|
|
720
746
|
initialState: n,
|
|
721
747
|
columns: this.getTableColumnDefs(),
|
|
722
|
-
getCoreRowModel:
|
|
723
|
-
getSortedRowModel:
|
|
724
|
-
getFilteredRowModel:
|
|
725
|
-
getPaginationRowModel:
|
|
726
|
-
getFacetedUniqueValues:
|
|
748
|
+
getCoreRowModel: Ae(),
|
|
749
|
+
getSortedRowModel: xe(),
|
|
750
|
+
getFilteredRowModel: Be(),
|
|
751
|
+
getPaginationRowModel: Me(),
|
|
752
|
+
getFacetedUniqueValues: ke(),
|
|
727
753
|
onSortingChange: (d) => {
|
|
728
754
|
this.handleSortingStateUpdate(d);
|
|
729
755
|
},
|
|
@@ -745,7 +771,7 @@ class nt {
|
|
|
745
771
|
}
|
|
746
772
|
getTableColumn(t) {
|
|
747
773
|
const e = this.table.getColumn(t);
|
|
748
|
-
return
|
|
774
|
+
return Pt(!!e, `Column #${t} is not defined`), e;
|
|
749
775
|
}
|
|
750
776
|
getTableColumnDefs() {
|
|
751
777
|
const t = /* @__PURE__ */ new Map(), e = (i) => {
|
|
@@ -769,26 +795,26 @@ class nt {
|
|
|
769
795
|
}), Array.from(t.values());
|
|
770
796
|
}
|
|
771
797
|
}
|
|
772
|
-
class
|
|
798
|
+
class ot {
|
|
773
799
|
constructor() {
|
|
774
800
|
o(this, "dataBatches", []);
|
|
775
801
|
o(this, "prevDataBatches", []);
|
|
776
802
|
o(this, "batchLoadingStates", ["void"]);
|
|
777
|
-
|
|
803
|
+
be(this, {
|
|
778
804
|
prevDataBatches: !1,
|
|
779
805
|
useMergedData: !1,
|
|
780
806
|
useIsLoading: !1,
|
|
781
|
-
dataBatches:
|
|
782
|
-
batchLoadingStates:
|
|
783
|
-
mergedData:
|
|
784
|
-
isLoading:
|
|
785
|
-
reset:
|
|
786
|
-
setDataBatch:
|
|
787
|
-
setBatchLoadingState:
|
|
807
|
+
dataBatches: bt.shallow,
|
|
808
|
+
batchLoadingStates: bt.shallow,
|
|
809
|
+
mergedData: St,
|
|
810
|
+
isLoading: St,
|
|
811
|
+
reset: Y.bound,
|
|
812
|
+
setDataBatch: Y.bound,
|
|
813
|
+
setBatchLoadingState: Y.bound
|
|
788
814
|
});
|
|
789
815
|
}
|
|
790
816
|
static useNew() {
|
|
791
|
-
return
|
|
817
|
+
return It(new ot()).current;
|
|
792
818
|
}
|
|
793
819
|
reset() {
|
|
794
820
|
this.batchLoadingStates = [], this.dataBatches = [];
|
|
@@ -803,20 +829,20 @@ class rt {
|
|
|
803
829
|
return (this.dataBatches.length === 0 ? this.prevDataBatches : this.dataBatches).flatMap((e) => e);
|
|
804
830
|
}
|
|
805
831
|
useMergedData() {
|
|
806
|
-
return
|
|
832
|
+
return yt(() => this.mergedData);
|
|
807
833
|
}
|
|
808
834
|
get isLoading() {
|
|
809
835
|
return this.batchLoadingStates.some((t) => t === "loading" || t === "void");
|
|
810
836
|
}
|
|
811
837
|
useIsLoading() {
|
|
812
|
-
return
|
|
838
|
+
return yt(() => this.isLoading);
|
|
813
839
|
}
|
|
814
840
|
isBatchLoaded(t) {
|
|
815
841
|
return t in this.dataBatches;
|
|
816
842
|
}
|
|
817
843
|
}
|
|
818
|
-
const
|
|
819
|
-
class
|
|
844
|
+
const ei = [];
|
|
845
|
+
class at {
|
|
820
846
|
constructor(t, e = {}) {
|
|
821
847
|
o(this, "list");
|
|
822
848
|
o(this, "dataSource");
|
|
@@ -827,12 +853,12 @@ class ot {
|
|
|
827
853
|
o(this, "staticDataProperties", []);
|
|
828
854
|
var d;
|
|
829
855
|
const { source: i } = e;
|
|
830
|
-
this.dataSource = i ?? { staticData:
|
|
831
|
-
const n = "manualPagination" in this.dataSource ? this.dataSource.manualPagination : void 0, a = "manualFiltering" in this.dataSource ? this.dataSource.manualFiltering : void 0,
|
|
832
|
-
this.list = t, this.loaderState =
|
|
856
|
+
this.dataSource = i ?? { staticData: ei };
|
|
857
|
+
const n = "manualPagination" in this.dataSource ? this.dataSource.manualPagination : void 0, a = "manualFiltering" in this.dataSource ? this.dataSource.manualFiltering : void 0, l = "manualSorting" in this.dataSource ? this.dataSource.manualSorting : void 0;
|
|
858
|
+
this.list = t, this.loaderState = ot.useNew(), this.manualPagination = n ?? !1, this.manualFiltering = a ?? this.manualPagination, this.manualSorting = l ?? this.manualPagination, this.list.filters.forEach((c) => c.onFilterUpdated(() => this.reset())), (d = this.list.search) == null || d.onUpdated(() => this.reset()), this.initStaticDataProperties();
|
|
833
859
|
}
|
|
834
860
|
static useNew(t, e = {}) {
|
|
835
|
-
return new
|
|
861
|
+
return new at(t, e);
|
|
836
862
|
}
|
|
837
863
|
initStaticDataProperties() {
|
|
838
864
|
const t = (e) => {
|
|
@@ -876,8 +902,8 @@ class ot {
|
|
|
876
902
|
}
|
|
877
903
|
useObserveBatchData(t, e) {
|
|
878
904
|
const i = (n) => {
|
|
879
|
-
const { data: a, itemTotalCount:
|
|
880
|
-
this.loaderState.setDataBatch(e, a),
|
|
905
|
+
const { data: a, itemTotalCount: l } = n;
|
|
906
|
+
this.loaderState.setDataBatch(e, a), l !== void 0 && this.list.batches.updateItemTotalCount(l);
|
|
881
907
|
};
|
|
882
908
|
D(() => (t.value.value.isSet && i(t.value.value.value), t.value.observe((n) => {
|
|
883
909
|
n.isSet && i(n.value);
|
|
@@ -907,7 +933,7 @@ class ot {
|
|
|
907
933
|
getBatchDataAsyncResource(t) {
|
|
908
934
|
const e = this.dataSource, i = this.getDataLoaderOptions(t);
|
|
909
935
|
if ("staticData" in e)
|
|
910
|
-
return
|
|
936
|
+
return wt(
|
|
911
937
|
async (n) => ({
|
|
912
938
|
data: n,
|
|
913
939
|
itemTotalCount: n.length
|
|
@@ -915,9 +941,9 @@ class ot {
|
|
|
915
941
|
[e.staticData]
|
|
916
942
|
);
|
|
917
943
|
if ("asyncLoader" in e) {
|
|
918
|
-
const n = e.asyncLoader, a = e.dependencies,
|
|
919
|
-
return
|
|
920
|
-
loaderId:
|
|
944
|
+
const n = e.asyncLoader, a = e.dependencies, l = a ? xt(a).toString() : void 0;
|
|
945
|
+
return wt(n, [i], {
|
|
946
|
+
loaderId: l
|
|
921
947
|
});
|
|
922
948
|
}
|
|
923
949
|
if ("asyncResourceFactory" in e) {
|
|
@@ -927,7 +953,7 @@ class ot {
|
|
|
927
953
|
throw new Error("Unknown data source");
|
|
928
954
|
}
|
|
929
955
|
}
|
|
930
|
-
class
|
|
956
|
+
class si {
|
|
931
957
|
constructor(t, e) {
|
|
932
958
|
o(this, "list");
|
|
933
959
|
o(this, "render");
|
|
@@ -966,29 +992,29 @@ const G = class G {
|
|
|
966
992
|
o(this, "defaultExpanded");
|
|
967
993
|
o(this, "fallback");
|
|
968
994
|
o(this, "renderFn");
|
|
969
|
-
const { fallback: i, textValue: n, href: a, defaultExpanded:
|
|
970
|
-
this.list = t, this.textValue = n, this.renderFn = d, this.href = a, this.defaultExpanded =
|
|
995
|
+
const { fallback: i, textValue: n, href: a, defaultExpanded: l, renderFn: d } = e;
|
|
996
|
+
this.list = t, this.textValue = n, this.renderFn = d, this.href = a, this.defaultExpanded = l, this.fallback = i;
|
|
971
997
|
}
|
|
972
998
|
render(t) {
|
|
973
999
|
return (this.renderFn ?? G.fallbackRenderItemFn)(t, this.list);
|
|
974
1000
|
}
|
|
975
1001
|
};
|
|
976
|
-
o(G, "fallbackRenderItemFn", (t) =>
|
|
977
|
-
let
|
|
1002
|
+
o(G, "fallbackRenderItemFn", (t) => Ft("pre", void 0, JSON.stringify(t)));
|
|
1003
|
+
let et = G, ii = class {
|
|
978
1004
|
constructor(t, e = {}) {
|
|
979
1005
|
o(this, "tableHeader");
|
|
980
1006
|
o(this, "componentProps");
|
|
981
1007
|
this.tableHeader = t, this.componentProps = e;
|
|
982
1008
|
}
|
|
983
|
-
},
|
|
1009
|
+
}, ni = class {
|
|
984
1010
|
constructor(t, e = {}) {
|
|
985
1011
|
o(this, "table");
|
|
986
1012
|
o(this, "componentProps");
|
|
987
1013
|
o(this, "columns");
|
|
988
1014
|
const { columns: i = [], ...n } = e;
|
|
989
|
-
this.table = t, this.columns = i.map((a) => new
|
|
1015
|
+
this.table = t, this.columns = i.map((a) => new ii(this, a)), this.componentProps = n;
|
|
990
1016
|
}
|
|
991
|
-
},
|
|
1017
|
+
}, ri = class {
|
|
992
1018
|
constructor(t, e = {}) {
|
|
993
1019
|
o(this, "row");
|
|
994
1020
|
o(this, "renderFn");
|
|
@@ -996,34 +1022,34 @@ let Z = G, ei = class {
|
|
|
996
1022
|
const { renderFn: i, ...n } = e;
|
|
997
1023
|
this.row = t, this.renderFn = i, this.componentProps = n;
|
|
998
1024
|
}
|
|
999
|
-
},
|
|
1025
|
+
}, oi = class {
|
|
1000
1026
|
constructor(t, e = {}) {
|
|
1001
1027
|
o(this, "tableBody");
|
|
1002
1028
|
o(this, "cells");
|
|
1003
1029
|
o(this, "componentProps");
|
|
1004
1030
|
const { cells: i = [], ...n } = e;
|
|
1005
|
-
this.tableBody = t, this.cells = i.map((a) => new
|
|
1031
|
+
this.tableBody = t, this.cells = i.map((a) => new ri(this, a)), this.componentProps = n;
|
|
1006
1032
|
}
|
|
1007
|
-
},
|
|
1033
|
+
}, ai = class {
|
|
1008
1034
|
constructor(t, e = {}) {
|
|
1009
1035
|
o(this, "table");
|
|
1010
1036
|
o(this, "componentProps");
|
|
1011
1037
|
o(this, "row");
|
|
1012
1038
|
const { row: i, ...n } = e;
|
|
1013
|
-
this.table = t, this.row = new
|
|
1039
|
+
this.table = t, this.row = new oi(this, i), this.componentProps = n;
|
|
1014
1040
|
}
|
|
1015
|
-
},
|
|
1041
|
+
}, li = class {
|
|
1016
1042
|
constructor(t, e = {}) {
|
|
1017
1043
|
o(this, "list");
|
|
1018
1044
|
o(this, "header");
|
|
1019
1045
|
o(this, "body");
|
|
1020
1046
|
o(this, "componentProps");
|
|
1021
1047
|
const { header: i, body: n, ...a } = e;
|
|
1022
|
-
this.list = t, this.header = new
|
|
1048
|
+
this.list = t, this.header = new ni(this, i), this.body = new ai(this, n), this.componentProps = a;
|
|
1023
1049
|
}
|
|
1024
1050
|
};
|
|
1025
1051
|
var V;
|
|
1026
|
-
let
|
|
1052
|
+
let ci = (V = class {
|
|
1027
1053
|
constructor(t) {
|
|
1028
1054
|
o(this, "filters");
|
|
1029
1055
|
o(this, "itemView");
|
|
@@ -1050,27 +1076,27 @@ let ai = (V = class {
|
|
|
1050
1076
|
itemView: i,
|
|
1051
1077
|
table: n,
|
|
1052
1078
|
filters: a = [],
|
|
1053
|
-
sorting:
|
|
1079
|
+
sorting: l = [],
|
|
1054
1080
|
batchesController: d,
|
|
1055
|
-
onChange:
|
|
1081
|
+
onChange: c,
|
|
1056
1082
|
loader: g,
|
|
1057
1083
|
search: f,
|
|
1058
1084
|
onAction: p,
|
|
1059
1085
|
getItemId: A,
|
|
1060
1086
|
defaultViewMode: x,
|
|
1061
|
-
accordion:
|
|
1062
|
-
...
|
|
1087
|
+
accordion: B = !1,
|
|
1088
|
+
...w
|
|
1063
1089
|
} = t;
|
|
1064
|
-
this.settingsStore =
|
|
1090
|
+
this.settingsStore = De(), 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 = a.map((b) => new H(this, b)), this.sorting = l.map((b) => new ti(this, b)), this.search = f ? new si(this, f) : void 0, this.itemView = i ? new et(this, i) : void 0, this.accordion = B, this.table = n ? new li(this, n) : void 0, this.batches = new Qs(this, d), this.componentProps = w, this.loader = at.useNew(this, g), this.onAction = p, this.getItemId = A, this.reactTable = rt.useNew(this, c, {
|
|
1065
1091
|
manualFiltering: this.loader.manualFiltering,
|
|
1066
1092
|
manualPagination: this.loader.manualPagination,
|
|
1067
1093
|
manualSorting: this.loader.manualSorting
|
|
1068
1094
|
});
|
|
1069
|
-
const [
|
|
1095
|
+
const [M, J] = q(
|
|
1070
1096
|
x ?? this.getStoredViewModeDefaultSetting() ?? "list"
|
|
1071
1097
|
);
|
|
1072
|
-
this.viewMode =
|
|
1073
|
-
|
|
1098
|
+
this.viewMode = M, this.setViewMode = (b) => {
|
|
1099
|
+
J(b), this.settingsStore && this.viewModeStorageKey && this.settingsStore.set(
|
|
1074
1100
|
"List",
|
|
1075
1101
|
this.viewModeStorageKey,
|
|
1076
1102
|
V.viewModeSettingsStorageSchema,
|
|
@@ -1123,7 +1149,7 @@ let ai = (V = class {
|
|
|
1123
1149
|
}
|
|
1124
1150
|
getSorting(t) {
|
|
1125
1151
|
const e = this.sorting.find((i) => i.id === t);
|
|
1126
|
-
return
|
|
1152
|
+
return Pt(!!e, `Could not get Sorting (ID: ${t})`), e;
|
|
1127
1153
|
}
|
|
1128
1154
|
clearSorting() {
|
|
1129
1155
|
return this.sorting.forEach((t) => t.clear());
|
|
@@ -1138,18 +1164,18 @@ let ai = (V = class {
|
|
|
1138
1164
|
return !this.loader.useIsLoading() && this.items.entries.length === 0;
|
|
1139
1165
|
}
|
|
1140
1166
|
}, o(V, "viewModeSettingsStorageSchema", K.enum(["list", "table"]).optional()), V);
|
|
1141
|
-
const
|
|
1142
|
-
items:
|
|
1143
|
-
isLoading:
|
|
1144
|
-
},
|
|
1145
|
-
const t = h(m).SkeletonText ??
|
|
1167
|
+
const di = "flow--list--items", ui = "flow--list--items--is-loading", Tt = {
|
|
1168
|
+
items: di,
|
|
1169
|
+
isLoading: ui
|
|
1170
|
+
}, st = (s) => {
|
|
1171
|
+
const t = h(m).SkeletonText ?? Mt;
|
|
1146
1172
|
return /* @__PURE__ */ r(t, { ...s });
|
|
1147
1173
|
}, $t = () => /* @__PURE__ */ u(kt, { children: [
|
|
1148
|
-
/* @__PURE__ */ r(Nt, { children: /* @__PURE__ */ r(
|
|
1149
|
-
/* @__PURE__ */ r(N, { children: /* @__PURE__ */ r(
|
|
1150
|
-
] }),
|
|
1151
|
-
const { isExpanded: t, toggle: e, children: i, contentElementId: n } = s, a = P(
|
|
1152
|
-
return /* @__PURE__ */ u(
|
|
1174
|
+
/* @__PURE__ */ r(Nt, { children: /* @__PURE__ */ r(st, { width: "200px" }) }),
|
|
1175
|
+
/* @__PURE__ */ r(N, { children: /* @__PURE__ */ r(st, { width: "300px" }) })
|
|
1176
|
+
] }), hi = (s) => {
|
|
1177
|
+
const { isExpanded: t, toggle: e, children: i, contentElementId: n } = s, a = P(T);
|
|
1178
|
+
return /* @__PURE__ */ u(vt, { children: [
|
|
1153
1179
|
/* @__PURE__ */ r(
|
|
1154
1180
|
C,
|
|
1155
1181
|
{
|
|
@@ -1166,15 +1192,15 @@ const li = "flow--list--items", ci = "flow--list--items--is-loading", yt = {
|
|
|
1166
1192
|
),
|
|
1167
1193
|
t && i
|
|
1168
1194
|
] });
|
|
1169
|
-
},
|
|
1170
|
-
var
|
|
1171
|
-
const { data: t, children: e } = s, i =
|
|
1172
|
-
((
|
|
1173
|
-
),
|
|
1195
|
+
}, mi = (s) => {
|
|
1196
|
+
var B;
|
|
1197
|
+
const { data: t, children: e } = s, i = y(), n = i.itemView, a = i.onAction, [l, d] = q(
|
|
1198
|
+
((B = n == null ? void 0 : n.defaultExpanded) == null ? void 0 : B.call(n, t)) ?? !1
|
|
1199
|
+
), c = ce(), g = It(null), f = i.accordion, p = e ?? (n == null ? void 0 : n.render(t));
|
|
1174
1200
|
if (D(() => {
|
|
1175
|
-
var
|
|
1176
|
-
f && ((
|
|
1177
|
-
}, [
|
|
1201
|
+
var w, M;
|
|
1202
|
+
f && ((w = g.current) == null || w.setAttribute("aria-expanded", String(l)), (M = g.current) == null || M.setAttribute("aria-controls", c));
|
|
1203
|
+
}, [l, c, g.current, f]), !f)
|
|
1178
1204
|
return {
|
|
1179
1205
|
gridItemProps: {
|
|
1180
1206
|
onAction: a ? () => {
|
|
@@ -1184,17 +1210,17 @@ const li = "flow--list--items", ci = "flow--list--items--is-loading", yt = {
|
|
|
1184
1210
|
children: p
|
|
1185
1211
|
};
|
|
1186
1212
|
const A = () => {
|
|
1187
|
-
d((
|
|
1213
|
+
d((w) => !w), a == null || a(t);
|
|
1188
1214
|
}, x = {
|
|
1189
1215
|
Content: {
|
|
1190
|
-
id:
|
|
1191
|
-
wrapWith:
|
|
1192
|
-
(
|
|
1193
|
-
|
|
1216
|
+
id: _((w) => w.slot === "bottom" ? c : void 0),
|
|
1217
|
+
wrapWith: _(
|
|
1218
|
+
(w) => w.slot === "bottom" ? /* @__PURE__ */ r(
|
|
1219
|
+
hi,
|
|
1194
1220
|
{
|
|
1195
|
-
contentElementId:
|
|
1221
|
+
contentElementId: c,
|
|
1196
1222
|
toggle: A,
|
|
1197
|
-
isExpanded:
|
|
1223
|
+
isExpanded: l
|
|
1198
1224
|
}
|
|
1199
1225
|
) : void 0
|
|
1200
1226
|
)
|
|
@@ -1206,62 +1232,62 @@ const li = "flow--list--items", ci = "flow--list--items--is-loading", yt = {
|
|
|
1206
1232
|
onAction: A
|
|
1207
1233
|
},
|
|
1208
1234
|
children: /* @__PURE__ */ r(
|
|
1209
|
-
|
|
1235
|
+
j,
|
|
1210
1236
|
{
|
|
1211
1237
|
props: x,
|
|
1212
|
-
dependencies: [
|
|
1238
|
+
dependencies: [c, l],
|
|
1213
1239
|
children: p
|
|
1214
1240
|
}
|
|
1215
1241
|
)
|
|
1216
1242
|
};
|
|
1217
1243
|
}, Ut = (s) => {
|
|
1218
|
-
const t = h(m).ItemsGridListItem ??
|
|
1244
|
+
const t = h(m).ItemsGridListItem ?? Fs;
|
|
1219
1245
|
return /* @__PURE__ */ r(t, { ...s });
|
|
1220
|
-
},
|
|
1221
|
-
const { id: t, data: e } = s, n =
|
|
1246
|
+
}, gi = (s) => {
|
|
1247
|
+
const { id: t, data: e } = s, n = y().itemView, { gridItemProps: a, children: l } = mi(s);
|
|
1222
1248
|
if (!n)
|
|
1223
1249
|
return null;
|
|
1224
|
-
const d = n.textValue ? n.textValue(e) : void 0,
|
|
1250
|
+
const d = n.textValue ? n.textValue(e) : void 0, c = n.href ? n.href(e) : void 0, g = !!a.onAction || !!c;
|
|
1225
1251
|
return /* @__PURE__ */ r(
|
|
1226
1252
|
Ut,
|
|
1227
1253
|
{
|
|
1228
1254
|
id: t,
|
|
1229
1255
|
textValue: d,
|
|
1230
|
-
href:
|
|
1256
|
+
href: c,
|
|
1231
1257
|
hasAction: g,
|
|
1232
1258
|
...a,
|
|
1233
|
-
children: /* @__PURE__ */ r(de, { fallback: /* @__PURE__ */ r($t, {}), children:
|
|
1259
|
+
children: /* @__PURE__ */ r(de, { fallback: /* @__PURE__ */ r($t, {}), children: l })
|
|
1234
1260
|
}
|
|
1235
1261
|
);
|
|
1236
|
-
},
|
|
1262
|
+
}, pi = (s) => /* @__PURE__ */ r(Ut, { textValue: "-", className: z.item, children: s.children }), fi = () => {
|
|
1237
1263
|
var e;
|
|
1238
|
-
const t = ((e =
|
|
1239
|
-
return Array.from(Array(5)).map((i, n) => /* @__PURE__ */ r(
|
|
1240
|
-
},
|
|
1241
|
-
const t = h(m).ItemsGridList ??
|
|
1264
|
+
const t = ((e = y().itemView) == null ? void 0 : e.fallback) ?? /* @__PURE__ */ r($t, {});
|
|
1265
|
+
return Array.from(Array(5)).map((i, n) => /* @__PURE__ */ r(pi, { children: ue(t) }, n));
|
|
1266
|
+
}, bi = (s) => {
|
|
1267
|
+
const t = h(m).ItemsGridList ?? ws;
|
|
1242
1268
|
return /* @__PURE__ */ r(t, { ...s });
|
|
1243
|
-
},
|
|
1244
|
-
const s =
|
|
1269
|
+
}, Si = () => {
|
|
1270
|
+
const s = y(), t = s.loader.useIsLoading(), e = s.loader.useIsInitiallyLoading();
|
|
1245
1271
|
if (!s.itemView)
|
|
1246
1272
|
return null;
|
|
1247
|
-
const i = s.items.entries.map((a) => /* @__PURE__ */ r(
|
|
1248
|
-
return /* @__PURE__ */ r(
|
|
1249
|
-
}, Kt = (s) => null,
|
|
1250
|
-
footer:
|
|
1251
|
-
},
|
|
1273
|
+
const i = s.items.entries.map((a) => /* @__PURE__ */ r(gi, { data: a.data, id: a.id }, a.id)), n = E(Tt.items, t && Tt.isLoading);
|
|
1274
|
+
return /* @__PURE__ */ r(I, { "aria-hidden": e, "aria-busy": t, children: /* @__PURE__ */ r(bi, { className: n, ...s.componentProps, children: e ? /* @__PURE__ */ r(fi, {}) : i }) });
|
|
1275
|
+
}, Kt = (s) => null, wi = () => Kt, zt = (s) => null, yi = () => zt, Ot = (s) => null, Ti = () => Ot, Ht = (s) => null, vi = () => Ht, Gt = (s) => null, Fi = () => Gt, Ii = "flow--list--footer", Vi = {
|
|
1276
|
+
footer: Ii
|
|
1277
|
+
}, Ci = (s) => {
|
|
1252
1278
|
const t = h(m).Skeleton ?? Ye;
|
|
1253
1279
|
return /* @__PURE__ */ r(t, { ...s });
|
|
1254
|
-
},
|
|
1255
|
-
const t = P(
|
|
1280
|
+
}, Li = (s) => {
|
|
1281
|
+
const t = P(T), e = y(), i = e.batches, n = e.loader.useIsInitiallyLoading(), a = e.useIsEmpty(), l = i.getTotalItemsCount(), d = i.getVisibleItemsCount();
|
|
1256
1282
|
if (a)
|
|
1257
1283
|
return null;
|
|
1258
|
-
const
|
|
1284
|
+
const c = n ? /* @__PURE__ */ r(Ci, { width: "200px" }) : t.format("list.paginationInfo", {
|
|
1259
1285
|
visibleItemsCount: d,
|
|
1260
|
-
totalItemsCount:
|
|
1286
|
+
totalItemsCount: l
|
|
1261
1287
|
});
|
|
1262
|
-
return /* @__PURE__ */ r(N, { ...s, children:
|
|
1263
|
-
},
|
|
1264
|
-
const t = P(
|
|
1288
|
+
return /* @__PURE__ */ r(N, { ...s, children: c });
|
|
1289
|
+
}, Pi = (s) => {
|
|
1290
|
+
const t = P(T), e = y(), i = e.loader.useIsLoading(), n = e.loader.useIsInitiallyLoading();
|
|
1265
1291
|
return !e.batches.hasNextBatch() && !i ? null : /* @__PURE__ */ r(
|
|
1266
1292
|
C,
|
|
1267
1293
|
{
|
|
@@ -1274,14 +1300,14 @@ const li = "flow--list--items", ci = "flow--list--items--is-loading", yt = {
|
|
|
1274
1300
|
children: t.format("list.showMore")
|
|
1275
1301
|
}
|
|
1276
1302
|
);
|
|
1277
|
-
},
|
|
1278
|
-
/* @__PURE__ */ r(
|
|
1279
|
-
/* @__PURE__ */ r(
|
|
1303
|
+
}, Ai = () => /* @__PURE__ */ u(I, { className: Vi.footer, children: [
|
|
1304
|
+
/* @__PURE__ */ r(Li, {}),
|
|
1305
|
+
/* @__PURE__ */ r(Pi, {})
|
|
1280
1306
|
] });
|
|
1281
1307
|
function qt(s) {
|
|
1282
1308
|
return null;
|
|
1283
1309
|
}
|
|
1284
|
-
const
|
|
1310
|
+
const xi = () => qt, jt = (s) => null, Wt = (s) => null, Jt = (s) => null, Yt = (s) => {
|
|
1285
1311
|
const t = h(m).Table ?? Qe;
|
|
1286
1312
|
return /* @__PURE__ */ r(t, { ...s });
|
|
1287
1313
|
}, Qt = (s) => {
|
|
@@ -1299,27 +1325,27 @@ const Pi = () => qt, jt = (s) => null, Wt = (s) => null, Jt = (s) => null, Yt =
|
|
|
1299
1325
|
}, te = (s) => {
|
|
1300
1326
|
const t = h(m).TableCell ?? es;
|
|
1301
1327
|
return /* @__PURE__ */ r(t, { ...s });
|
|
1302
|
-
},
|
|
1303
|
-
/* @__PURE__ */ r(_t, { children: /* @__PURE__ */ r(Qt, { children: /* @__PURE__ */ r(
|
|
1304
|
-
/* @__PURE__ */ r(Xt, { children: Array.from(Array(5)).map((t, e) => /* @__PURE__ */ r(Zt, { children: /* @__PURE__ */ r(te, { children: /* @__PURE__ */ r(
|
|
1305
|
-
] }),
|
|
1306
|
-
table:
|
|
1307
|
-
isLoading:
|
|
1308
|
-
row:
|
|
1309
|
-
isSelected:
|
|
1310
|
-
hasAction:
|
|
1311
|
-
},
|
|
1328
|
+
}, Bi = (s) => /* @__PURE__ */ u(Yt, { ...s, children: [
|
|
1329
|
+
/* @__PURE__ */ r(_t, { children: /* @__PURE__ */ r(Qt, { children: /* @__PURE__ */ r(Mt, { width: "100%" }) }) }),
|
|
1330
|
+
/* @__PURE__ */ r(Xt, { children: Array.from(Array(5)).map((t, e) => /* @__PURE__ */ r(Zt, { children: /* @__PURE__ */ r(te, { children: /* @__PURE__ */ r(st, { width: "100%" }) }) }, e)) })
|
|
1331
|
+
] }), Mi = "flow--list--table", ki = "flow--list--table--is-loading", Di = "flow--list--table--row", Ei = "flow--list--table--is-selected", Ni = "flow--list--table--has-action", R = {
|
|
1332
|
+
table: Mi,
|
|
1333
|
+
isLoading: ki,
|
|
1334
|
+
row: Di,
|
|
1335
|
+
isSelected: Ei,
|
|
1336
|
+
hasAction: Ni
|
|
1337
|
+
}, Ri = (s) => {
|
|
1312
1338
|
const t = h(m).ListEmptyView ?? Dt;
|
|
1313
1339
|
return /* @__PURE__ */ r(t, { ...s });
|
|
1314
|
-
},
|
|
1315
|
-
const s =
|
|
1340
|
+
}, $i = () => {
|
|
1341
|
+
const s = y(), t = s.table, e = s.useIsEmpty(), i = s.loader.useIsLoading(), n = s.loader.useIsInitiallyLoading();
|
|
1316
1342
|
if (!t)
|
|
1317
1343
|
return null;
|
|
1318
1344
|
if (n)
|
|
1319
|
-
return /* @__PURE__ */ r(
|
|
1345
|
+
return /* @__PURE__ */ r(Bi, { ...t.componentProps });
|
|
1320
1346
|
if (e)
|
|
1321
|
-
return /* @__PURE__ */ r(
|
|
1322
|
-
const a = t.list.onAction,
|
|
1347
|
+
return /* @__PURE__ */ r(Ri, {});
|
|
1348
|
+
const a = t.list.onAction, l = E(
|
|
1323
1349
|
R.table,
|
|
1324
1350
|
i && R.isLoading,
|
|
1325
1351
|
t.componentProps.className
|
|
@@ -1329,11 +1355,11 @@ const Pi = () => qt, jt = (s) => null, Wt = (s) => null, Jt = (s) => null, Yt =
|
|
|
1329
1355
|
{
|
|
1330
1356
|
...s.componentProps,
|
|
1331
1357
|
...t.componentProps,
|
|
1332
|
-
className:
|
|
1358
|
+
className: l,
|
|
1333
1359
|
children: [
|
|
1334
|
-
/* @__PURE__ */ r(_t, { ...t.header.componentProps, children: t.header.columns.map((d,
|
|
1360
|
+
/* @__PURE__ */ r(_t, { ...t.header.componentProps, children: t.header.columns.map((d, c) => /* @__PURE__ */ r(Qt, { ...d.componentProps }, c)) }),
|
|
1335
1361
|
/* @__PURE__ */ r(Xt, { ...t.body.componentProps, children: s.items.entries.map((d) => {
|
|
1336
|
-
var
|
|
1362
|
+
var c;
|
|
1337
1363
|
return /* @__PURE__ */ r(
|
|
1338
1364
|
Zt,
|
|
1339
1365
|
{
|
|
@@ -1346,7 +1372,7 @@ const Pi = () => qt, jt = (s) => null, Wt = (s) => null, Jt = (s) => null, Yt =
|
|
|
1346
1372
|
id: d.id,
|
|
1347
1373
|
onAction: a ? () => a(d.data) : void 0,
|
|
1348
1374
|
...t.body.row.componentProps,
|
|
1349
|
-
children: (
|
|
1375
|
+
children: (c = t.body.row) == null ? void 0 : c.cells.map((g, f) => /* @__PURE__ */ r(te, { ...g.componentProps, children: g.renderFn ? g.renderFn(d.data, s) : void 0 }, f))
|
|
1350
1376
|
},
|
|
1351
1377
|
d.id
|
|
1352
1378
|
);
|
|
@@ -1354,41 +1380,41 @@ const Pi = () => qt, jt = (s) => null, Wt = (s) => null, Jt = (s) => null, Yt =
|
|
|
1354
1380
|
]
|
|
1355
1381
|
}
|
|
1356
1382
|
);
|
|
1357
|
-
}, ee = (s) => null, se = (s) => null, ie = (s) => null,
|
|
1358
|
-
var
|
|
1359
|
-
const { children: t, batchSize: e, onChange: i, ref: n, ...a } = s,
|
|
1383
|
+
}, ee = (s) => null, se = (s) => null, ie = (s) => null, Ui = Vt("List", (s) => {
|
|
1384
|
+
var lt, ct, dt, ut, ht, mt, gt, pt, ft;
|
|
1385
|
+
const { children: t, batchSize: e, onChange: i, ref: n, ...a } = s, l = (lt = F(
|
|
1360
1386
|
t,
|
|
1361
1387
|
Kt
|
|
1362
|
-
)) == null ? void 0 :
|
|
1388
|
+
)) == null ? void 0 : lt.props, d = (ct = F(
|
|
1363
1389
|
t,
|
|
1364
1390
|
We
|
|
1365
|
-
)) == null ? void 0 :
|
|
1366
|
-
source:
|
|
1367
|
-
...
|
|
1368
|
-
asyncLoader:
|
|
1391
|
+
)) == null ? void 0 : ct.props, c = (dt = F(t, Gt)) == null ? void 0 : dt.props, g = {
|
|
1392
|
+
source: l ? {
|
|
1393
|
+
...l,
|
|
1394
|
+
asyncLoader: l.children
|
|
1369
1395
|
} : d ? {
|
|
1370
1396
|
...d,
|
|
1371
1397
|
asyncResourceFactory: d.children
|
|
1372
|
-
} :
|
|
1373
|
-
staticData:
|
|
1398
|
+
} : c ? {
|
|
1399
|
+
staticData: c.data
|
|
1374
1400
|
} : void 0
|
|
1375
|
-
}, f = (
|
|
1376
|
-
(
|
|
1377
|
-
...
|
|
1378
|
-
name:
|
|
1401
|
+
}, f = (ut = F(t, qt)) == null ? void 0 : ut.props, p = (ht = F(t, Ht)) == null ? void 0 : ht.props, A = (mt = F(t, ee)) == null ? void 0 : mt.props, x = U(t, jt).map(
|
|
1402
|
+
(v) => ({
|
|
1403
|
+
...v.props,
|
|
1404
|
+
name: v.props.children
|
|
1379
1405
|
})
|
|
1380
|
-
),
|
|
1381
|
-
(
|
|
1382
|
-
...
|
|
1383
|
-
renderFn:
|
|
1406
|
+
), B = U(t, Jt).map(
|
|
1407
|
+
(v) => ({
|
|
1408
|
+
...v.props,
|
|
1409
|
+
renderFn: v.props.children
|
|
1384
1410
|
})
|
|
1385
|
-
),
|
|
1411
|
+
), w = (gt = F(t, Wt)) == null ? void 0 : gt.props, M = (pt = F(t, se)) == null ? void 0 : pt.props, J = (ft = F(t, ie)) == null ? void 0 : ft.props, b = ci.useNew({
|
|
1386
1412
|
onChange: i,
|
|
1387
1413
|
loader: g,
|
|
1388
1414
|
filters: U(t, zt).map(
|
|
1389
|
-
(
|
|
1390
|
-
...
|
|
1391
|
-
renderItem:
|
|
1415
|
+
(v) => ({
|
|
1416
|
+
...v.props,
|
|
1417
|
+
renderItem: v.props.children
|
|
1392
1418
|
})
|
|
1393
1419
|
),
|
|
1394
1420
|
search: f ? {
|
|
@@ -1396,21 +1422,21 @@ const Pi = () => qt, jt = (s) => null, Wt = (s) => null, Jt = (s) => null, Yt =
|
|
|
1396
1422
|
textFieldProps: f,
|
|
1397
1423
|
defaultValue: f.defaultValue
|
|
1398
1424
|
} : void 0,
|
|
1399
|
-
sorting: U(t, Ot).map((
|
|
1425
|
+
sorting: U(t, Ot).map((v) => v.props),
|
|
1400
1426
|
itemView: p ? {
|
|
1401
1427
|
...p,
|
|
1402
1428
|
renderFn: p.children
|
|
1403
1429
|
} : void 0,
|
|
1404
1430
|
table: x.length > 0 ? {
|
|
1405
1431
|
header: {
|
|
1406
|
-
...
|
|
1432
|
+
...M,
|
|
1407
1433
|
columns: x
|
|
1408
1434
|
},
|
|
1409
1435
|
body: {
|
|
1410
|
-
...
|
|
1436
|
+
...J,
|
|
1411
1437
|
row: {
|
|
1412
|
-
...
|
|
1413
|
-
cells:
|
|
1438
|
+
...w,
|
|
1439
|
+
cells: B
|
|
1414
1440
|
}
|
|
1415
1441
|
},
|
|
1416
1442
|
...A
|
|
@@ -1429,33 +1455,33 @@ const Pi = () => qt, jt = (s) => null, Wt = (s) => null, Jt = (s) => null, Yt =
|
|
|
1429
1455
|
tunnelId: "listSummary"
|
|
1430
1456
|
}
|
|
1431
1457
|
}, re = je(t, ss);
|
|
1432
|
-
return /* @__PURE__ */ r(
|
|
1458
|
+
return /* @__PURE__ */ r(j, { props: ne, children: /* @__PURE__ */ r(Ct, { children: /* @__PURE__ */ u(
|
|
1433
1459
|
Et.Provider,
|
|
1434
1460
|
{
|
|
1435
1461
|
value: {
|
|
1436
1462
|
list: b
|
|
1437
1463
|
},
|
|
1438
1464
|
children: [
|
|
1439
|
-
/* @__PURE__ */ r(
|
|
1440
|
-
/* @__PURE__ */ u(
|
|
1465
|
+
/* @__PURE__ */ r(Is, {}),
|
|
1466
|
+
/* @__PURE__ */ u(I, { className: Ws.list, ref: n, children: [
|
|
1441
1467
|
t,
|
|
1442
|
-
/* @__PURE__ */ r(
|
|
1443
|
-
/* @__PURE__ */ u(
|
|
1468
|
+
/* @__PURE__ */ r(qs, { hasActionGroup: re }),
|
|
1469
|
+
/* @__PURE__ */ u(I, { children: [
|
|
1444
1470
|
b.items.entries.length > 0 && /* @__PURE__ */ r($, { id: "listSummary" }),
|
|
1445
|
-
b.viewMode === "list" && /* @__PURE__ */ r(
|
|
1446
|
-
b.viewMode === "table" && /* @__PURE__ */ r(
|
|
1471
|
+
b.viewMode === "list" && /* @__PURE__ */ r(Si, {}),
|
|
1472
|
+
b.viewMode === "table" && /* @__PURE__ */ r($i, {})
|
|
1447
1473
|
] }),
|
|
1448
|
-
/* @__PURE__ */ r(
|
|
1474
|
+
/* @__PURE__ */ r(Ai, {})
|
|
1449
1475
|
] })
|
|
1450
1476
|
]
|
|
1451
1477
|
}
|
|
1452
1478
|
) }) });
|
|
1453
|
-
}),
|
|
1454
|
-
List:
|
|
1455
|
-
Filter:
|
|
1456
|
-
Search:
|
|
1457
|
-
Sorting:
|
|
1458
|
-
Item:
|
|
1479
|
+
}), Ki = () => Ui, Qn = () => ({
|
|
1480
|
+
List: Ki(),
|
|
1481
|
+
Filter: yi(),
|
|
1482
|
+
Search: xi(),
|
|
1483
|
+
Sorting: Ti(),
|
|
1484
|
+
Item: vi(),
|
|
1459
1485
|
ItemView: kt,
|
|
1460
1486
|
TableHeader: se,
|
|
1461
1487
|
TableColumn: jt,
|
|
@@ -1463,28 +1489,29 @@ const Pi = () => qt, jt = (s) => null, Wt = (s) => null, Jt = (s) => null, Yt =
|
|
|
1463
1489
|
TableRow: Wt,
|
|
1464
1490
|
TableCell: Jt,
|
|
1465
1491
|
Table: ee,
|
|
1466
|
-
StaticData:
|
|
1467
|
-
LoaderAsync:
|
|
1492
|
+
StaticData: Fi(),
|
|
1493
|
+
LoaderAsync: wi(),
|
|
1468
1494
|
LoaderAsyncResource: Je()
|
|
1469
1495
|
});
|
|
1470
1496
|
export {
|
|
1471
1497
|
Dt as EmptyView,
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1498
|
+
ws as GridList,
|
|
1499
|
+
Fs as GridListItem,
|
|
1500
|
+
Ui as List,
|
|
1475
1501
|
zt as ListFilter,
|
|
1476
1502
|
Ht as ListItem,
|
|
1477
1503
|
kt as ListItemView,
|
|
1504
|
+
Ss as ListItemViewContent,
|
|
1478
1505
|
Kt as ListLoaderAsync,
|
|
1479
1506
|
Ot as ListSorting,
|
|
1480
1507
|
Gt as ListStaticData,
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1508
|
+
Hn as ListSummary,
|
|
1509
|
+
Ki as TypedList,
|
|
1510
|
+
yi as TypedListFilter,
|
|
1511
|
+
vi as TypedListItem,
|
|
1512
|
+
wi as TypedListLoaderAsync,
|
|
1513
|
+
Ti as TypedListSorting,
|
|
1514
|
+
Fi as TypedListStaticData,
|
|
1515
|
+
Qn as typedList,
|
|
1516
|
+
y as useList
|
|
1490
1517
|
};
|