@mittwald/flow-react-components 0.1.0-alpha.323 → 0.1.0-alpha.324
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 +9 -0
- package/dist/js/CheckboxGroup.js +8 -8
- package/dist/js/ContextMenu.js +1 -1
- package/dist/js/List.js +138 -138
- package/dist/js/{MenuItem-BHTxlZbm.js → MenuItem-DZ6wEuiI.js} +19 -19
- package/dist/js/MenuItem.js +1 -1
- package/dist/js/Navigation.js +11 -11
- package/dist/js/RadioGroup.js +15 -15
- package/dist/js/Tabs.js +1 -1
- package/dist/js/deepHas-KHS5X1F_.js +15 -0
- package/package.json +4 -4
- package/dist/js/deepFindOfType-6pG0fH7S.js +0 -14
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See
|
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.1.0-alpha.324](https://github.com/mittwald/flow/compare/0.1.0-alpha.323...0.1.0-alpha.324) (2024-11-05)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @mittwald/flow-react-components
|
|
9
|
+
|
|
10
|
+
# Change Log
|
|
11
|
+
|
|
12
|
+
All notable changes to this project will be documented in this file. See
|
|
13
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
14
|
+
|
|
6
15
|
# [0.1.0-alpha.323](https://github.com/mittwald/flow/compare/0.1.0-alpha.322...0.1.0-alpha.323) (2024-11-05)
|
|
7
16
|
|
|
8
17
|
### Bug Fixes
|
package/dist/js/CheckboxGroup.js
CHANGED
|
@@ -12,12 +12,12 @@ import { C as k } from "./CheckboxButton-g3LXFThl.js";
|
|
|
12
12
|
import { TunnelProvider as C, TunnelExit as r } from "@mittwald/react-tunnel";
|
|
13
13
|
import { f as o } from "./FormField.module-CqWpTQKP.js";
|
|
14
14
|
import { C as N } from "./ColumnLayout-CLtV-itI.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
const
|
|
18
|
-
checkboxGroup:
|
|
19
|
-
}, j =
|
|
20
|
-
const { children: t, className: m, s:
|
|
15
|
+
import { f as F } from "./flowComponent-1wOIvUIq.js";
|
|
16
|
+
import { d as G } from "./deepHas-KHS5X1F_.js";
|
|
17
|
+
const D = "flow--checkbox-group", s = {
|
|
18
|
+
checkboxGroup: D
|
|
19
|
+
}, j = F("CheckboxGroup", (l) => {
|
|
20
|
+
const { children: t, className: m, s: a, m: i, l: n, refProp: p, ...d } = l, f = b(o.formField, m), u = {
|
|
21
21
|
Label: {
|
|
22
22
|
className: o.label
|
|
23
23
|
},
|
|
@@ -35,8 +35,8 @@ const y = "flow--checkbox-group", s = {
|
|
|
35
35
|
CheckboxButton: {
|
|
36
36
|
tunnelId: "checkboxes"
|
|
37
37
|
}
|
|
38
|
-
}, c =
|
|
39
|
-
return /* @__PURE__ */ e.createElement(x.CheckboxGroup, { ...d, className: f, ref: p }, /* @__PURE__ */ e.createElement(h, { props: u }, /* @__PURE__ */ e.createElement(C, null, t, c && /* @__PURE__ */ e.createElement(N, { s:
|
|
38
|
+
}, c = G(t, k);
|
|
39
|
+
return /* @__PURE__ */ e.createElement(x.CheckboxGroup, { ...d, className: f, ref: p }, /* @__PURE__ */ e.createElement(h, { props: u }, /* @__PURE__ */ e.createElement(C, null, t, c && /* @__PURE__ */ e.createElement(N, { s: a, m: i, l: n, className: s.checkboxGroup }, /* @__PURE__ */ e.createElement(r, { id: "checkboxes" })), !c && /* @__PURE__ */ e.createElement("div", { className: s.checkboxGroup }, /* @__PURE__ */ e.createElement(r, { id: "checkboxes" })), /* @__PURE__ */ e.createElement(r, { id: "fieldDescription" }), /* @__PURE__ */ e.createElement(r, { id: "fieldError" }))), /* @__PURE__ */ e.createElement(E, { className: o.fieldError }));
|
|
40
40
|
});
|
|
41
41
|
export {
|
|
42
42
|
j as CheckboxGroup,
|
package/dist/js/ContextMenu.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import { C as t } from "./ContextMenuTrigger-BbYyy0an.js";
|
|
4
4
|
import { a } from "./ContextMenuTrigger-BbYyy0an.js";
|
|
5
|
-
import { M as n } from "./MenuItem-
|
|
5
|
+
import { M as n } from "./MenuItem-DZ6wEuiI.js";
|
|
6
6
|
export {
|
|
7
7
|
t as ContextMenu,
|
|
8
8
|
a as ContextMenuTrigger,
|
package/dist/js/List.js
CHANGED
|
@@ -14,7 +14,7 @@ import { IconArrowBackUp as rt } from "@tabler/icons-react";
|
|
|
14
14
|
import { I as ue } from "./Icon-DGqvukLZ.js";
|
|
15
15
|
import { I as lt } from "./IconContextMenu-CZgbKH5A.js";
|
|
16
16
|
import { a as $, C as Y } from "./ContextMenuTrigger-BbYyy0an.js";
|
|
17
|
-
import { M as _ } from "./MenuItem-
|
|
17
|
+
import { M as _ } from "./MenuItem-DZ6wEuiI.js";
|
|
18
18
|
import { useLocalizedStringFormatter as w } from "react-aria";
|
|
19
19
|
import { TunnelProvider as ye, TunnelExit as x } from "@mittwald/react-tunnel";
|
|
20
20
|
import T from "clsx";
|
|
@@ -44,26 +44,26 @@ import * as X from "react-aria-components";
|
|
|
44
44
|
import { S as N } from "./SkeletonText-B5ZghZhO.js";
|
|
45
45
|
import { I as Vt } from "./IllustratedMessage-DB1AH-Oq.js";
|
|
46
46
|
import { I as kt } from "./IconSearch-BIWWMdCF.js";
|
|
47
|
-
import {
|
|
48
|
-
import { ListLoaderAsyncResource as
|
|
49
|
-
import { S as
|
|
47
|
+
import { a as b, b as V, d as At } from "./deepHas-KHS5X1F_.js";
|
|
48
|
+
import { ListLoaderAsyncResource as Mt, TypedListLoaderAsyncResource as Bt } from "./List/ListLoaderAsyncResource.js";
|
|
49
|
+
import { S as Dt } from "./Skeleton-CKLaTmDR.js";
|
|
50
50
|
import { a as Te, e as Ce, d as Ie, b as Le, T as Pe, c as Ve } from "./Table-BdpXhsOd.js";
|
|
51
|
-
import { A as
|
|
52
|
-
const
|
|
53
|
-
view:
|
|
54
|
-
title:
|
|
55
|
-
topContent:
|
|
56
|
-
content:
|
|
57
|
-
action:
|
|
58
|
-
avatar:
|
|
59
|
-
text:
|
|
60
|
-
heading:
|
|
51
|
+
import { A as xt } from "./ActionGroup-D7pgHibo.js";
|
|
52
|
+
const Nt = "flow--list--items--item--view", Rt = "flow--list--items--item--view--title", $t = "flow--list--items--item--view--top-content", zt = "flow--list--items--item--view--content", Ut = "flow--list--items--item--view--action", Kt = "flow--list--items--item--view--avatar", Ot = "flow--list--items--item--view--text", Ht = "flow--list--items--item--view--heading", m = {
|
|
53
|
+
view: Nt,
|
|
54
|
+
title: Rt,
|
|
55
|
+
topContent: $t,
|
|
56
|
+
content: zt,
|
|
57
|
+
action: Ut,
|
|
58
|
+
avatar: Kt,
|
|
59
|
+
text: Ot,
|
|
60
|
+
heading: Ht,
|
|
61
61
|
"container-breakpoint-size-xs": "flow--list--items--item--view--container-breakpoint-size-xs",
|
|
62
62
|
"container-breakpoint-size-s": "flow--list--items--item--view--container-breakpoint-size-s",
|
|
63
63
|
"container-breakpoint-size-m": "flow--list--items--item--view--container-breakpoint-size-m",
|
|
64
64
|
"container-breakpoint-size-l": "flow--list--items--item--view--container-breakpoint-size-l",
|
|
65
65
|
"container-breakpoint-size-xl": "flow--list--items--item--view--container-breakpoint-size-xl"
|
|
66
|
-
},
|
|
66
|
+
}, S = { "de-DE": {
|
|
67
67
|
"list.filters.clear": "Filter entfernen",
|
|
68
68
|
"list.filters.reset": "Filter zurücksetzen",
|
|
69
69
|
"list.filters.store": "Filter speichern",
|
|
@@ -91,8 +91,8 @@ const xt = "flow--list--items--item--view", Nt = "flow--list--items--item--view-
|
|
|
91
91
|
"list.settings.viewMode.table": "Table",
|
|
92
92
|
"list.showMore": "Show more",
|
|
93
93
|
"list.sorting": "Sorting"
|
|
94
|
-
} },
|
|
95
|
-
const { className: e, children: t } = a, s = w(
|
|
94
|
+
} }, qt = (a) => {
|
|
95
|
+
const { className: e, children: t } = a, s = w(S);
|
|
96
96
|
return /* @__PURE__ */ i.createElement($, null, /* @__PURE__ */ i.createElement(
|
|
97
97
|
y,
|
|
98
98
|
{
|
|
@@ -102,10 +102,10 @@ const xt = "flow--list--items--item--view", Nt = "flow--list--items--item--view-
|
|
|
102
102
|
},
|
|
103
103
|
/* @__PURE__ */ i.createElement(lt, null)
|
|
104
104
|
), t);
|
|
105
|
-
},
|
|
105
|
+
}, Gt = (a) => a === "top" ? m.topContent : a === "bottom" ? m.content : m.topContent, ke = (a) => {
|
|
106
106
|
const { children: e, className: t, containerBreakpointSize: s = "m" } = a, n = {
|
|
107
107
|
ContextMenu: {
|
|
108
|
-
wrapWith: /* @__PURE__ */ i.createElement(
|
|
108
|
+
wrapWith: /* @__PURE__ */ i.createElement(qt, { className: m.action }),
|
|
109
109
|
placement: "bottom end"
|
|
110
110
|
},
|
|
111
111
|
Button: {
|
|
@@ -116,7 +116,7 @@ const xt = "flow--list--items--item--view", Nt = "flow--list--items--item--view-
|
|
|
116
116
|
ignoreBreakpoint: !0
|
|
117
117
|
},
|
|
118
118
|
Content: {
|
|
119
|
-
className: nt((o) =>
|
|
119
|
+
className: nt((o) => Gt(o.slot)),
|
|
120
120
|
tunnelId: "topContent"
|
|
121
121
|
},
|
|
122
122
|
Avatar: {
|
|
@@ -141,24 +141,24 @@ const xt = "flow--list--items--item--view", Nt = "flow--list--items--item--view-
|
|
|
141
141
|
m[ot(s)]
|
|
142
142
|
);
|
|
143
143
|
return /* @__PURE__ */ i.createElement("div", { className: l }, /* @__PURE__ */ i.createElement(ve, { props: n }, /* @__PURE__ */ i.createElement(ye, null, e, /* @__PURE__ */ i.createElement("div", { className: m.title }, /* @__PURE__ */ i.createElement(x, { id: "title" })), /* @__PURE__ */ i.createElement(x, { id: "topContent" }))));
|
|
144
|
-
},
|
|
145
|
-
listSummary:
|
|
146
|
-
},
|
|
144
|
+
}, jt = "flow--list--list-summary", Wt = {
|
|
145
|
+
listSummary: jt
|
|
146
|
+
}, Qi = we("ListSummary", (a) => {
|
|
147
147
|
const { children: e } = a;
|
|
148
|
-
return /* @__PURE__ */ i.createElement("header", { className:
|
|
149
|
-
}), Ae = _e({}), g = () => Qe(Ae).list,
|
|
148
|
+
return /* @__PURE__ */ i.createElement("header", { className: Wt.listSummary, ...a }, e);
|
|
149
|
+
}), Ae = _e({}), g = () => Qe(Ae).list, Jt = () => g().loader.getLoaderInvocationHooks().map((e, t) => /* @__PURE__ */ i.createElement(ct, { key: t }, () => {
|
|
150
150
|
e();
|
|
151
|
-
})),
|
|
151
|
+
})), Yt = (a) => {
|
|
152
152
|
const { sorting: e } = a;
|
|
153
153
|
return /* @__PURE__ */ i.createElement(_, { id: e.id }, e.name);
|
|
154
154
|
}, A = (a) => {
|
|
155
155
|
const { children: e, locales: t, variables: s } = a;
|
|
156
156
|
return w(t).format(e, s);
|
|
157
|
-
},
|
|
158
|
-
const a = g(), e = a.visibleSorting.map((n) => /* @__PURE__ */ i.createElement(
|
|
157
|
+
}, _t = () => {
|
|
158
|
+
const a = g(), e = a.visibleSorting.map((n) => /* @__PURE__ */ i.createElement(Yt, { sorting: n, key: n.id }));
|
|
159
159
|
if (e.length === 0)
|
|
160
160
|
return null;
|
|
161
|
-
const t = a.visibleSorting.find((n) => n.isSorted()), s = /* @__PURE__ */ i.createElement(E, null, t ? /* @__PURE__ */ i.createElement(i.Fragment, null, t.name ?? t.property) : /* @__PURE__ */ i.createElement(A, { locales:
|
|
161
|
+
const t = a.visibleSorting.find((n) => n.isSorted()), s = /* @__PURE__ */ i.createElement(E, null, t ? /* @__PURE__ */ i.createElement(i.Fragment, null, t.name ?? t.property) : /* @__PURE__ */ i.createElement(A, { locales: S }, "list.sorting"));
|
|
162
162
|
return /* @__PURE__ */ i.createElement($, null, /* @__PURE__ */ i.createElement(y, { variant: "outline", color: "secondary" }, s, /* @__PURE__ */ i.createElement(dt, null)), /* @__PURE__ */ i.createElement(
|
|
163
163
|
Y,
|
|
164
164
|
{
|
|
@@ -170,7 +170,7 @@ const xt = "flow--list--items--item--view", Nt = "flow--list--items--item--view-
|
|
|
170
170
|
},
|
|
171
171
|
e
|
|
172
172
|
));
|
|
173
|
-
},
|
|
173
|
+
}, Qt = (a) => {
|
|
174
174
|
const { filter: e } = a, { values: t, mode: s, name: n, property: l } = e, o = t.map((c) => /* @__PURE__ */ i.createElement(
|
|
175
175
|
_,
|
|
176
176
|
{
|
|
@@ -190,18 +190,18 @@ const xt = "flow--list--items--item--view", Nt = "flow--list--items--item--view-
|
|
|
190
190
|
},
|
|
191
191
|
o
|
|
192
192
|
));
|
|
193
|
-
},
|
|
194
|
-
header:
|
|
195
|
-
pickerListAndSearch:
|
|
196
|
-
pickerList:
|
|
197
|
-
searchAndActions:
|
|
198
|
-
searchField:
|
|
199
|
-
actions:
|
|
200
|
-
},
|
|
201
|
-
activeFilters:
|
|
202
|
-
clearButton:
|
|
203
|
-
},
|
|
204
|
-
const a = g(), e = w(
|
|
193
|
+
}, Xt = "flow--list--header", Zt = "flow--list--header--picker-list-and-search", es = "flow--list--header--picker-list", ts = "flow--list--header--search-and-actions", ss = "flow--list--header--search-field", is = "flow--list--header--actions", F = {
|
|
194
|
+
header: Xt,
|
|
195
|
+
pickerListAndSearch: Zt,
|
|
196
|
+
pickerList: es,
|
|
197
|
+
searchAndActions: ts,
|
|
198
|
+
searchField: ss,
|
|
199
|
+
actions: is
|
|
200
|
+
}, as = "flow--list--header--active-filters", ns = "flow--list--header--active-filters--clear-button", rs = {
|
|
201
|
+
activeFilters: as,
|
|
202
|
+
clearButton: ns
|
|
203
|
+
}, ls = pt(() => {
|
|
204
|
+
const a = g(), e = w(S), s = a.filters.flatMap((c) => c.values).filter((c) => c.isActive).map((c) => /* @__PURE__ */ i.createElement(ft, { key: c.id, onClose: () => c.deactivate() }, /* @__PURE__ */ i.createElement(E, null, c.render()))), n = a.filters.filter((c) => c.hasChanged()).length > 0, l = a.supportsSettingsStorage && n && /* @__PURE__ */ i.createElement(H, null, /* @__PURE__ */ i.createElement(q, null, /* @__PURE__ */ i.createElement(A, { locales: S }, "list.filters.store")), /* @__PURE__ */ i.createElement(
|
|
205
205
|
y,
|
|
206
206
|
{
|
|
207
207
|
size: "s",
|
|
@@ -211,7 +211,7 @@ const xt = "flow--list--items--item--view", Nt = "flow--list--items--item--view-
|
|
|
211
211
|
"aria-label": e.format("list.filters.store")
|
|
212
212
|
},
|
|
213
213
|
/* @__PURE__ */ i.createElement(mt, null)
|
|
214
|
-
)), o = n ? /* @__PURE__ */ i.createElement(H, null, /* @__PURE__ */ i.createElement(q, null, /* @__PURE__ */ i.createElement(A, { locales:
|
|
214
|
+
)), o = n ? /* @__PURE__ */ i.createElement(H, null, /* @__PURE__ */ i.createElement(q, null, /* @__PURE__ */ i.createElement(A, { locales: S }, "list.filters.reset")), /* @__PURE__ */ i.createElement(
|
|
215
215
|
y,
|
|
216
216
|
{
|
|
217
217
|
size: "s",
|
|
@@ -221,7 +221,7 @@ const xt = "flow--list--items--item--view", Nt = "flow--list--items--item--view-
|
|
|
221
221
|
"aria-label": e.format("list.filters.reset")
|
|
222
222
|
},
|
|
223
223
|
/* @__PURE__ */ i.createElement(ue, null, /* @__PURE__ */ i.createElement(rt, null))
|
|
224
|
-
)) : void 0, d = s.length > 0 ? /* @__PURE__ */ i.createElement(H, null, /* @__PURE__ */ i.createElement(q, null, /* @__PURE__ */ i.createElement(A, { locales:
|
|
224
|
+
)) : void 0, d = s.length > 0 ? /* @__PURE__ */ i.createElement(H, null, /* @__PURE__ */ i.createElement(q, null, /* @__PURE__ */ i.createElement(A, { locales: S }, "list.filters.clear")), /* @__PURE__ */ i.createElement(
|
|
225
225
|
y,
|
|
226
226
|
{
|
|
227
227
|
size: "s",
|
|
@@ -231,8 +231,8 @@ const xt = "flow--list--items--item--view", Nt = "flow--list--items--item--view-
|
|
|
231
231
|
},
|
|
232
232
|
/* @__PURE__ */ i.createElement(ue, null, /* @__PURE__ */ i.createElement(ht, null))
|
|
233
233
|
)) : void 0;
|
|
234
|
-
return s.length === 0 && !l && !o ? null : /* @__PURE__ */ i.createElement("div", { className:
|
|
235
|
-
}),
|
|
234
|
+
return s.length === 0 && !l && !o ? null : /* @__PURE__ */ i.createElement("div", { className: rs.activeFilters }, s, l, o, d);
|
|
235
|
+
}), os = (a) => {
|
|
236
236
|
const { className: e, onChange: t, value: s, ...n } = a, [l, o] = J(s ?? "");
|
|
237
237
|
bt(s, () => {
|
|
238
238
|
o(s ?? "");
|
|
@@ -253,16 +253,16 @@ const xt = "flow--list--items--item--view", Nt = "flow--list--items--item--view-
|
|
|
253
253
|
...n
|
|
254
254
|
}
|
|
255
255
|
);
|
|
256
|
-
},
|
|
257
|
-
const { className: e, search: t } = a, s = t.render ??
|
|
256
|
+
}, cs = (a) => {
|
|
257
|
+
const { className: e, search: t } = a, s = t.render ?? os;
|
|
258
258
|
return be(s, {
|
|
259
259
|
className: e,
|
|
260
260
|
value: t.value,
|
|
261
261
|
onChange: t.setValue.bind(t),
|
|
262
262
|
...t.textFieldProps
|
|
263
263
|
});
|
|
264
|
-
},
|
|
265
|
-
const a = w(
|
|
264
|
+
}, ds = () => {
|
|
265
|
+
const a = w(S), e = g(), t = e.viewMode, s = [];
|
|
266
266
|
return e.itemView && s.push("list"), e.table && s.push("table"), s.length <= 1 ? null : /* @__PURE__ */ i.createElement($, null, /* @__PURE__ */ i.createElement(
|
|
267
267
|
y,
|
|
268
268
|
{
|
|
@@ -283,16 +283,16 @@ const xt = "flow--list--items--item--view", Nt = "flow--list--items--item--view-
|
|
|
283
283
|
},
|
|
284
284
|
a.format(`list.settings.viewMode.${n}`)
|
|
285
285
|
)))));
|
|
286
|
-
},
|
|
286
|
+
}, us = (a) => {
|
|
287
287
|
const { className: e, hasActionGroup: t } = a, s = g();
|
|
288
288
|
if (s.filters.length === 0 && s.visibleSorting.length === 0 && !s.search && !s.table && !t)
|
|
289
289
|
return null;
|
|
290
|
-
const n = s.filters.map((l) => /* @__PURE__ */ i.createElement(
|
|
291
|
-
return /* @__PURE__ */ i.createElement("div", { className: T(e, F.header) }, /* @__PURE__ */ i.createElement("div", { className: F.pickerListAndSearch }, /* @__PURE__ */ i.createElement("div", { className: F.pickerList }, /* @__PURE__ */ i.createElement(
|
|
292
|
-
},
|
|
293
|
-
list:
|
|
290
|
+
const n = s.filters.map((l) => /* @__PURE__ */ i.createElement(Qt, { key: l.property, filter: l }));
|
|
291
|
+
return /* @__PURE__ */ i.createElement("div", { className: T(e, F.header) }, /* @__PURE__ */ i.createElement("div", { className: F.pickerListAndSearch }, /* @__PURE__ */ i.createElement("div", { className: F.pickerList }, /* @__PURE__ */ i.createElement(ds, null), /* @__PURE__ */ i.createElement(_t, null), n), /* @__PURE__ */ i.createElement("div", { className: F.searchAndActions }, s.search && /* @__PURE__ */ i.createElement(cs, { className: F.searchField, search: s.search }), /* @__PURE__ */ i.createElement(x, { id: "actions" }))), /* @__PURE__ */ i.createElement(ls, null));
|
|
292
|
+
}, ms = "flow--list", hs = {
|
|
293
|
+
list: ms
|
|
294
294
|
};
|
|
295
|
-
let
|
|
295
|
+
let gs = class Me {
|
|
296
296
|
constructor(e, t, s) {
|
|
297
297
|
r(this, "id");
|
|
298
298
|
r(this, "data");
|
|
@@ -303,16 +303,16 @@ let hs = class Me {
|
|
|
303
303
|
return new Me(e, t.id, t.original);
|
|
304
304
|
}
|
|
305
305
|
};
|
|
306
|
-
class
|
|
306
|
+
class ps {
|
|
307
307
|
constructor(e) {
|
|
308
308
|
r(this, "list");
|
|
309
309
|
this.list = e;
|
|
310
310
|
}
|
|
311
311
|
get entries() {
|
|
312
|
-
return this.list.reactTable.table.getRowModel().rows.map((e) =>
|
|
312
|
+
return this.list.reactTable.table.getRowModel().rows.map((e) => gs.fromRow(this, e));
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
class
|
|
315
|
+
class fs {
|
|
316
316
|
constructor(e, t = {}) {
|
|
317
317
|
r(this, "batchSize");
|
|
318
318
|
r(this, "list");
|
|
@@ -359,7 +359,7 @@ class ps {
|
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
const
|
|
362
|
+
const Ss = "$";
|
|
363
363
|
class fe {
|
|
364
364
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
365
365
|
constructor(e, t) {
|
|
@@ -386,7 +386,7 @@ class fe {
|
|
|
386
386
|
this.filter.deactivateValue(this);
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
const
|
|
389
|
+
const bs = (a, e) => a === e, vs = (a) => String(a);
|
|
390
390
|
class M {
|
|
391
391
|
constructor(e, t) {
|
|
392
392
|
r(this, "_values");
|
|
@@ -400,7 +400,7 @@ class M {
|
|
|
400
400
|
r(this, "onFilterUpdateCallbacks", /* @__PURE__ */ new Set());
|
|
401
401
|
r(this, "defaultSelectedValues");
|
|
402
402
|
var s;
|
|
403
|
-
this.list = e, this.property = t.property, this.mode = t.mode ?? "one", this._values = (s = t.values) == null ? void 0 : s.map((n) => new fe(this, n)), this.matcher = t.matcher ??
|
|
403
|
+
this.list = e, this.property = t.property, this.mode = t.mode ?? "one", this._values = (s = t.values) == null ? void 0 : s.map((n) => new fe(this, n)), this.matcher = t.matcher ?? bs, this.renderItem = t.renderItem ?? vs, this.name = t.name, this.defaultSelectedValues = t.defaultSelected ? this.values.filter(
|
|
404
404
|
(n) => {
|
|
405
405
|
var l;
|
|
406
406
|
return (l = t.defaultSelected) == null ? void 0 : l.some((o) => o === n.value);
|
|
@@ -427,7 +427,7 @@ class M {
|
|
|
427
427
|
}
|
|
428
428
|
getReactTableFilterFn() {
|
|
429
429
|
return (e, t, s) => {
|
|
430
|
-
const n = this.property, l = n.startsWith(
|
|
430
|
+
const n = this.property, l = n.startsWith(Ss) ? e.original : wt(e.original, n);
|
|
431
431
|
return this.checkFilterMatches(l, s);
|
|
432
432
|
};
|
|
433
433
|
}
|
|
@@ -513,7 +513,7 @@ class M {
|
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
r(M, "settingsStorageSchema", k.record(k.array(k.unknown())).optional());
|
|
516
|
-
class
|
|
516
|
+
class ys {
|
|
517
517
|
constructor(e, t) {
|
|
518
518
|
r(this, "list");
|
|
519
519
|
r(this, "property");
|
|
@@ -674,7 +674,7 @@ class ee {
|
|
|
674
674
|
return pe(() => this.isLoading);
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
|
-
const
|
|
677
|
+
const ws = [];
|
|
678
678
|
class te {
|
|
679
679
|
constructor(e, t = {}) {
|
|
680
680
|
r(this, "list");
|
|
@@ -685,7 +685,7 @@ class te {
|
|
|
685
685
|
r(this, "loaderState");
|
|
686
686
|
var d;
|
|
687
687
|
const { source: s } = t;
|
|
688
|
-
this.dataSource = s ?? { staticData:
|
|
688
|
+
this.dataSource = s ?? { staticData: ws };
|
|
689
689
|
const n = "manualPagination" in this.dataSource ? this.dataSource.manualPagination : void 0, l = "manualFiltering" in this.dataSource ? this.dataSource.manualFiltering : void 0, o = "manualSorting" in this.dataSource ? this.dataSource.manualSorting : void 0;
|
|
690
690
|
this.list = e, this.loaderState = ee.useNew(), this.manualPagination = n ?? !1, this.manualFiltering = l ?? this.manualPagination, this.manualSorting = o ?? this.manualPagination, this.list.filters.forEach((c) => c.onFilterUpdated(() => this.reset())), (d = this.list.search) == null || d.onUpdated(() => this.reset());
|
|
691
691
|
}
|
|
@@ -776,7 +776,7 @@ class te {
|
|
|
776
776
|
throw new Error("Unknown data source");
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
|
-
class
|
|
779
|
+
class Es {
|
|
780
780
|
constructor(e, t) {
|
|
781
781
|
r(this, "list");
|
|
782
782
|
r(this, "render");
|
|
@@ -822,21 +822,21 @@ const R = class R {
|
|
|
822
822
|
}
|
|
823
823
|
};
|
|
824
824
|
r(R, "fallbackRenderItemFn", (e) => be("pre", void 0, JSON.stringify(e)));
|
|
825
|
-
let j = R,
|
|
825
|
+
let j = R, Fs = class {
|
|
826
826
|
constructor(e, t = {}) {
|
|
827
827
|
r(this, "tableHeader");
|
|
828
828
|
r(this, "componentProps");
|
|
829
829
|
this.tableHeader = e, this.componentProps = t;
|
|
830
830
|
}
|
|
831
|
-
},
|
|
831
|
+
}, Ts = class {
|
|
832
832
|
constructor(e, t = {}) {
|
|
833
833
|
r(this, "table");
|
|
834
834
|
r(this, "componentProps");
|
|
835
835
|
r(this, "columns");
|
|
836
836
|
const { columns: s = [], ...n } = t;
|
|
837
|
-
this.table = e, this.columns = s.map((l) => new
|
|
837
|
+
this.table = e, this.columns = s.map((l) => new Fs(this, l)), this.componentProps = n;
|
|
838
838
|
}
|
|
839
|
-
},
|
|
839
|
+
}, Cs = class {
|
|
840
840
|
constructor(e, t = {}) {
|
|
841
841
|
r(this, "row");
|
|
842
842
|
r(this, "renderFn");
|
|
@@ -844,34 +844,34 @@ let j = R, Es = class {
|
|
|
844
844
|
const { renderFn: s, ...n } = t;
|
|
845
845
|
this.row = e, this.renderFn = s, this.componentProps = n;
|
|
846
846
|
}
|
|
847
|
-
},
|
|
847
|
+
}, Is = class {
|
|
848
848
|
constructor(e, t = {}) {
|
|
849
849
|
r(this, "tableBody");
|
|
850
850
|
r(this, "cells");
|
|
851
851
|
r(this, "componentProps");
|
|
852
852
|
const { cells: s = [], ...n } = t;
|
|
853
|
-
this.tableBody = e, this.cells = s.map((l) => new
|
|
853
|
+
this.tableBody = e, this.cells = s.map((l) => new Cs(this, l)), this.componentProps = n;
|
|
854
854
|
}
|
|
855
|
-
},
|
|
855
|
+
}, Ls = class {
|
|
856
856
|
constructor(e, t = {}) {
|
|
857
857
|
r(this, "table");
|
|
858
858
|
r(this, "componentProps");
|
|
859
859
|
r(this, "row");
|
|
860
860
|
const { row: s, ...n } = t;
|
|
861
|
-
this.table = e, this.row = new
|
|
861
|
+
this.table = e, this.row = new Is(this, s), this.componentProps = n;
|
|
862
862
|
}
|
|
863
|
-
},
|
|
863
|
+
}, Ps = class {
|
|
864
864
|
constructor(e, t = {}) {
|
|
865
865
|
r(this, "list");
|
|
866
866
|
r(this, "header");
|
|
867
867
|
r(this, "body");
|
|
868
868
|
r(this, "componentProps");
|
|
869
869
|
const { header: s, body: n, ...l } = t;
|
|
870
|
-
this.list = e, this.header = new
|
|
870
|
+
this.list = e, this.header = new Ts(this, s), this.body = new Ls(this, n), this.componentProps = l;
|
|
871
871
|
}
|
|
872
872
|
};
|
|
873
873
|
var v;
|
|
874
|
-
let
|
|
874
|
+
let Vs = (v = class {
|
|
875
875
|
constructor(e) {
|
|
876
876
|
r(this, "filters");
|
|
877
877
|
r(this, "itemView");
|
|
@@ -907,7 +907,7 @@ let Ps = (v = class {
|
|
|
907
907
|
defaultViewMode: L,
|
|
908
908
|
...U
|
|
909
909
|
} = e;
|
|
910
|
-
this.settingsStore = Pt(), this.settingStorageKey = t, this.filterSettingsStorageKey = t ? `${t}.activeFilters` : void 0, this.viewModeStorageKey = t ? `${t}.viewMode` : void 0, this.supportsSettingsStorage = !!this.settingStorageKey, this.items = new
|
|
910
|
+
this.settingsStore = Pt(), this.settingStorageKey = t, this.filterSettingsStorageKey = t ? `${t}.activeFilters` : void 0, this.viewModeStorageKey = t ? `${t}.viewMode` : void 0, this.supportsSettingsStorage = !!this.settingStorageKey, this.items = new ps(this), this.filters = l.map((p) => new M(this, p)), this.sorting = o.map((p) => new ys(this, p)), this.search = h ? new Es(this, h) : void 0, this.itemView = s ? new j(this, s) : void 0, this.table = n ? new Ps(this, n) : void 0, this.batches = new fs(this, d), this.componentProps = U, this.loader = te.useNew(this, u), this.onAction = C, this.getItemId = z, this.reactTable = Z.useNew(this, c, {
|
|
911
911
|
manualFiltering: this.loader.manualFiltering,
|
|
912
912
|
manualPagination: this.loader.manualPagination,
|
|
913
913
|
manualSorting: this.loader.manualSorting
|
|
@@ -984,14 +984,14 @@ let Ps = (v = class {
|
|
|
984
984
|
return !this.loader.useIsLoading() && this.items.entries.length === 0;
|
|
985
985
|
}
|
|
986
986
|
}, r(v, "viewModeSettingsStorageSchema", k.enum(["list", "table"]).optional()), v);
|
|
987
|
-
const
|
|
988
|
-
items:
|
|
989
|
-
isLoading:
|
|
990
|
-
},
|
|
991
|
-
item:
|
|
992
|
-
isSelected:
|
|
993
|
-
hasAction:
|
|
994
|
-
}, Be = () => /* @__PURE__ */ i.createElement(ke, null, /* @__PURE__ */ i.createElement(Q, null, /* @__PURE__ */ i.createElement(N, { width: "200px" })), /* @__PURE__ */ i.createElement(E, null, /* @__PURE__ */ i.createElement(N, { width: "300px" }))),
|
|
987
|
+
const ks = "flow--list--items", As = "flow--list--items--is-loading", Se = {
|
|
988
|
+
items: ks,
|
|
989
|
+
isLoading: As
|
|
990
|
+
}, Ms = "flow--list--items--item", Bs = "flow--list--items--item--is-selected", Ds = "flow--list--items--item--has-action", B = {
|
|
991
|
+
item: Ms,
|
|
992
|
+
isSelected: Bs,
|
|
993
|
+
hasAction: Ds
|
|
994
|
+
}, Be = () => /* @__PURE__ */ i.createElement(ke, null, /* @__PURE__ */ i.createElement(Q, null, /* @__PURE__ */ i.createElement(N, { width: "200px" })), /* @__PURE__ */ i.createElement(E, null, /* @__PURE__ */ i.createElement(N, { width: "300px" }))), xs = (a) => {
|
|
995
995
|
const { id: e, data: t, children: s } = a, l = g().itemView;
|
|
996
996
|
if (!l)
|
|
997
997
|
return null;
|
|
@@ -1011,18 +1011,18 @@ const Vs = "flow--list--items", ks = "flow--list--items--is-loading", Se = {
|
|
|
1011
1011
|
},
|
|
1012
1012
|
/* @__PURE__ */ i.createElement(Ze, { fallback: /* @__PURE__ */ i.createElement(Be, null) }, s ?? l.render(t))
|
|
1013
1013
|
);
|
|
1014
|
-
},
|
|
1015
|
-
const a = w(
|
|
1014
|
+
}, Ns = (a) => /* @__PURE__ */ i.createElement(X.GridListItem, { textValue: "-", className: B.item }, a.children), W = () => {
|
|
1015
|
+
const a = w(S);
|
|
1016
1016
|
return /* @__PURE__ */ i.createElement(Vt, null, /* @__PURE__ */ i.createElement(kt, null), /* @__PURE__ */ i.createElement(Q, null, a.format("list.noResult.heading")), /* @__PURE__ */ i.createElement(E, null, a.format("list.noResult.text")));
|
|
1017
|
-
},
|
|
1017
|
+
}, Rs = () => {
|
|
1018
1018
|
var t;
|
|
1019
1019
|
const e = ((t = g().itemView) == null ? void 0 : t.fallback) ?? /* @__PURE__ */ i.createElement(Be, null);
|
|
1020
|
-
return Array.from(Array(5)).map((s, n) => /* @__PURE__ */ i.createElement(
|
|
1021
|
-
},
|
|
1020
|
+
return Array.from(Array(5)).map((s, n) => /* @__PURE__ */ i.createElement(Ns, { key: n }, et(e)));
|
|
1021
|
+
}, $s = () => {
|
|
1022
1022
|
const a = g(), e = a.loader.useIsLoading(), t = a.loader.useIsInitiallyLoading();
|
|
1023
1023
|
if (!a.itemView)
|
|
1024
1024
|
return null;
|
|
1025
|
-
const s = a.items.entries.map((l) => /* @__PURE__ */ i.createElement(
|
|
1025
|
+
const s = a.items.entries.map((l) => /* @__PURE__ */ i.createElement(xs, { key: l.id, data: l.data, id: l.id })), n = T(Se.items, e && Se.isLoading);
|
|
1026
1026
|
return /* @__PURE__ */ i.createElement("div", { "aria-hidden": t, "aria-busy": e }, /* @__PURE__ */ i.createElement(
|
|
1027
1027
|
X.GridList,
|
|
1028
1028
|
{
|
|
@@ -1030,21 +1030,21 @@ const Vs = "flow--list--items", ks = "flow--list--items--is-loading", Se = {
|
|
|
1030
1030
|
...a.componentProps,
|
|
1031
1031
|
renderEmptyState: () => /* @__PURE__ */ i.createElement(W, null)
|
|
1032
1032
|
},
|
|
1033
|
-
t ? /* @__PURE__ */ i.createElement(
|
|
1033
|
+
t ? /* @__PURE__ */ i.createElement(Rs, null) : s
|
|
1034
1034
|
));
|
|
1035
|
-
}, De = (a) => null,
|
|
1036
|
-
footer:
|
|
1037
|
-
},
|
|
1038
|
-
const e = w(
|
|
1035
|
+
}, De = (a) => null, zs = () => De, xe = (a) => null, Us = () => xe, Ne = (a) => null, Ks = () => Ne, Re = (a) => null, Os = () => Re, $e = (a) => null, Hs = () => $e, qs = "flow--list--footer", Gs = {
|
|
1036
|
+
footer: qs
|
|
1037
|
+
}, js = (a) => {
|
|
1038
|
+
const e = w(S), t = g(), s = t.batches, n = t.loader.useIsInitiallyLoading(), l = t.useIsEmpty(), o = s.getTotalItemsCount(), d = s.getVisibleItemsCount();
|
|
1039
1039
|
if (l)
|
|
1040
1040
|
return null;
|
|
1041
|
-
const c = n ? /* @__PURE__ */ i.createElement(
|
|
1041
|
+
const c = n ? /* @__PURE__ */ i.createElement(Dt, { width: "200px" }) : e.format("list.paginationInfo", {
|
|
1042
1042
|
visibleItemsCount: d,
|
|
1043
1043
|
totalItemsCount: o
|
|
1044
1044
|
});
|
|
1045
1045
|
return /* @__PURE__ */ i.createElement(E, { ...a }, c);
|
|
1046
|
-
},
|
|
1047
|
-
const e = w(
|
|
1046
|
+
}, Ws = (a) => {
|
|
1047
|
+
const e = w(S), t = g(), s = t.loader.useIsLoading(), n = t.loader.useIsInitiallyLoading();
|
|
1048
1048
|
return !t.batches.hasNextBatch() && !s ? null : /* @__PURE__ */ i.createElement(
|
|
1049
1049
|
y,
|
|
1050
1050
|
{
|
|
@@ -1057,22 +1057,22 @@ const Vs = "flow--list--items", ks = "flow--list--items--is-loading", Se = {
|
|
|
1057
1057
|
},
|
|
1058
1058
|
e.format("list.showMore")
|
|
1059
1059
|
);
|
|
1060
|
-
},
|
|
1060
|
+
}, Js = () => /* @__PURE__ */ i.createElement("div", { className: Gs.footer }, /* @__PURE__ */ i.createElement(js, null), /* @__PURE__ */ i.createElement(Ws, null));
|
|
1061
1061
|
function ze(a) {
|
|
1062
1062
|
return null;
|
|
1063
1063
|
}
|
|
1064
|
-
const
|
|
1065
|
-
table:
|
|
1066
|
-
isLoading:
|
|
1067
|
-
row:
|
|
1068
|
-
isSelected:
|
|
1069
|
-
hasAction:
|
|
1070
|
-
},
|
|
1064
|
+
const Ys = () => ze, Ue = (a) => null, Ke = (a) => null, Oe = (a) => null, _s = (a) => /* @__PURE__ */ i.createElement(Te, { ...a }, /* @__PURE__ */ i.createElement(Ce, null, /* @__PURE__ */ i.createElement(Ie, null, /* @__PURE__ */ i.createElement(N, { width: "100%" }))), /* @__PURE__ */ i.createElement(Le, null, Array.from(Array(5)).map((e, t) => /* @__PURE__ */ i.createElement(Pe, { key: t }, /* @__PURE__ */ i.createElement(Ve, null, /* @__PURE__ */ i.createElement(N, { width: "100%" })))))), Qs = "flow--list--table", Xs = "flow--list--table--is-loading", Zs = "flow--list--table--row", ei = "flow--list--table--is-selected", ti = "flow--list--table--has-action", I = {
|
|
1065
|
+
table: Qs,
|
|
1066
|
+
isLoading: Xs,
|
|
1067
|
+
row: Zs,
|
|
1068
|
+
isSelected: ei,
|
|
1069
|
+
hasAction: ti
|
|
1070
|
+
}, si = () => {
|
|
1071
1071
|
const a = g(), e = a.table, t = a.useIsEmpty(), s = a.loader.useIsLoading(), n = a.loader.useIsInitiallyLoading();
|
|
1072
1072
|
if (!e)
|
|
1073
1073
|
return null;
|
|
1074
1074
|
if (n)
|
|
1075
|
-
return /* @__PURE__ */ i.createElement(
|
|
1075
|
+
return /* @__PURE__ */ i.createElement(_s, { ...e.componentProps });
|
|
1076
1076
|
if (t)
|
|
1077
1077
|
return /* @__PURE__ */ i.createElement(W, null);
|
|
1078
1078
|
const l = e.list.onAction, o = T(
|
|
@@ -1115,15 +1115,15 @@ const Js = () => ze, Ue = (a) => null, Ke = (a) => null, Oe = (a) => null, Ys =
|
|
|
1115
1115
|
})
|
|
1116
1116
|
)
|
|
1117
1117
|
);
|
|
1118
|
-
}, He = (a) => null, qe = (a) => null, Ge = (a) => null,
|
|
1118
|
+
}, He = (a) => null, qe = (a) => null, Ge = (a) => null, ii = we("List", (a) => {
|
|
1119
1119
|
var se, ie, ae, ne, re, le, oe, ce, de;
|
|
1120
|
-
const { children: e, batchSize: t, onChange: s, refProp: n, ...l } = a, o = (se =
|
|
1120
|
+
const { children: e, batchSize: t, onChange: s, refProp: n, ...l } = a, o = (se = b(
|
|
1121
1121
|
e,
|
|
1122
1122
|
De
|
|
1123
|
-
)) == null ? void 0 : se.props, d = (ie =
|
|
1123
|
+
)) == null ? void 0 : se.props, d = (ie = b(
|
|
1124
1124
|
e,
|
|
1125
|
-
|
|
1126
|
-
)) == null ? void 0 : ie.props, c = (ae =
|
|
1125
|
+
Mt
|
|
1126
|
+
)) == null ? void 0 : ie.props, c = (ae = b(e, $e)) == null ? void 0 : ae.props, u = {
|
|
1127
1127
|
source: o ? {
|
|
1128
1128
|
...o,
|
|
1129
1129
|
asyncLoader: o.children
|
|
@@ -1133,7 +1133,7 @@ const Js = () => ze, Ue = (a) => null, Ke = (a) => null, Oe = (a) => null, Ys =
|
|
|
1133
1133
|
} : c ? {
|
|
1134
1134
|
staticData: c.data
|
|
1135
1135
|
} : void 0
|
|
1136
|
-
}, h = (ne =
|
|
1136
|
+
}, h = (ne = b(e, ze)) == null ? void 0 : ne.props, C = (re = b(e, Re)) == null ? void 0 : re.props, z = (le = b(e, He)) == null ? void 0 : le.props, L = V(e, Ue).map(
|
|
1137
1137
|
(f) => ({
|
|
1138
1138
|
...f.props,
|
|
1139
1139
|
name: f.props.children
|
|
@@ -1143,7 +1143,7 @@ const Js = () => ze, Ue = (a) => null, Ke = (a) => null, Oe = (a) => null, Ys =
|
|
|
1143
1143
|
...f.props,
|
|
1144
1144
|
renderFn: f.props.children
|
|
1145
1145
|
})
|
|
1146
|
-
), K = (oe =
|
|
1146
|
+
), K = (oe = b(e, Ke)) == null ? void 0 : oe.props, O = (ce = b(e, qe)) == null ? void 0 : ce.props, p = (de = b(e, Ge)) == null ? void 0 : de.props, P = Vs.useNew({
|
|
1147
1147
|
onChange: s,
|
|
1148
1148
|
loader: u,
|
|
1149
1149
|
filters: V(e, xe).map(
|
|
@@ -1189,7 +1189,7 @@ const Js = () => ze, Ue = (a) => null, Ke = (a) => null, Oe = (a) => null, Ys =
|
|
|
1189
1189
|
ListSummary: {
|
|
1190
1190
|
tunnelId: "listSummary"
|
|
1191
1191
|
}
|
|
1192
|
-
}, We =
|
|
1192
|
+
}, We = At(e, xt);
|
|
1193
1193
|
return /* @__PURE__ */ i.createElement(ve, { props: je }, /* @__PURE__ */ i.createElement(ye, null, /* @__PURE__ */ i.createElement(
|
|
1194
1194
|
Ae.Provider,
|
|
1195
1195
|
{
|
|
@@ -1197,15 +1197,15 @@ const Js = () => ze, Ue = (a) => null, Ke = (a) => null, Oe = (a) => null, Ys =
|
|
|
1197
1197
|
list: P
|
|
1198
1198
|
}
|
|
1199
1199
|
},
|
|
1200
|
-
/* @__PURE__ */ i.createElement(
|
|
1201
|
-
/* @__PURE__ */ i.createElement("div", { className:
|
|
1200
|
+
/* @__PURE__ */ i.createElement(Jt, null),
|
|
1201
|
+
/* @__PURE__ */ i.createElement("div", { className: hs.list, ref: n }, e, /* @__PURE__ */ i.createElement(us, { hasActionGroup: We }), /* @__PURE__ */ i.createElement("div", null, P.items.entries.length > 0 && /* @__PURE__ */ i.createElement(x, { id: "listSummary" }), P.viewMode === "list" && /* @__PURE__ */ i.createElement($s, null), P.viewMode === "table" && /* @__PURE__ */ i.createElement(si, null)), /* @__PURE__ */ i.createElement(Js, null))
|
|
1202
1202
|
)));
|
|
1203
|
-
}),
|
|
1204
|
-
List:
|
|
1205
|
-
Filter:
|
|
1206
|
-
Search:
|
|
1207
|
-
Sorting:
|
|
1208
|
-
Item:
|
|
1203
|
+
}), ai = () => ii, aa = () => ({
|
|
1204
|
+
List: ai(),
|
|
1205
|
+
Filter: Us(),
|
|
1206
|
+
Search: Ys(),
|
|
1207
|
+
Sorting: Ks(),
|
|
1208
|
+
Item: Os(),
|
|
1209
1209
|
ItemView: ke,
|
|
1210
1210
|
TableHeader: qe,
|
|
1211
1211
|
TableColumn: Ue,
|
|
@@ -1213,25 +1213,25 @@ const Js = () => ze, Ue = (a) => null, Ke = (a) => null, Oe = (a) => null, Ys =
|
|
|
1213
1213
|
TableRow: Ke,
|
|
1214
1214
|
TableCell: Oe,
|
|
1215
1215
|
Table: He,
|
|
1216
|
-
StaticData:
|
|
1217
|
-
LoaderAsync:
|
|
1218
|
-
LoaderAsyncResource:
|
|
1216
|
+
StaticData: Hs(),
|
|
1217
|
+
LoaderAsync: zs(),
|
|
1218
|
+
LoaderAsyncResource: Bt()
|
|
1219
1219
|
});
|
|
1220
1220
|
export {
|
|
1221
|
-
|
|
1221
|
+
ii as List,
|
|
1222
1222
|
xe as ListFilter,
|
|
1223
1223
|
Re as ListItem,
|
|
1224
1224
|
ke as ListItemView,
|
|
1225
1225
|
De as ListLoaderAsync,
|
|
1226
1226
|
Ne as ListSorting,
|
|
1227
1227
|
$e as ListStaticData,
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1228
|
+
Qi as ListSummary,
|
|
1229
|
+
ai as TypedList,
|
|
1230
|
+
Us as TypedListFilter,
|
|
1231
|
+
Os as TypedListItem,
|
|
1232
|
+
zs as TypedListLoaderAsync,
|
|
1233
|
+
Ks as TypedListSorting,
|
|
1234
|
+
Hs as TypedListStaticData,
|
|
1235
|
+
aa as typedList,
|
|
1236
1236
|
g as useList
|
|
1237
1237
|
};
|
|
@@ -9,46 +9,46 @@ import "@react-aria/utils";
|
|
|
9
9
|
import "remeda";
|
|
10
10
|
import "@tabler/icons-react";
|
|
11
11
|
import "./Icon-DGqvukLZ.js";
|
|
12
|
-
import { I as x, a as
|
|
13
|
-
import { I as
|
|
12
|
+
import { I as x, a as E } from "./IconCheckboxEmpty-Nnjs5-Pv.js";
|
|
13
|
+
import { I as d, a as C } from "./IconRadioOn-CR0g7TLz.js";
|
|
14
14
|
import { T as p } from "./Text-_cq3RnbD.js";
|
|
15
|
-
import { d as h } from "./
|
|
15
|
+
import { d as h } from "./deepHas-KHS5X1F_.js";
|
|
16
16
|
import { W as M } from "./Wrap-DGT1h1o3.js";
|
|
17
17
|
import { f as N } from "./flowComponent-1wOIvUIq.js";
|
|
18
|
-
const w = "flow--menu-item",
|
|
18
|
+
const w = "flow--menu-item", g = "flow--menu-item--icon", P = "flow--menu-item--text", T = "flow--menu-item--control-icon", n = {
|
|
19
19
|
menuItem: w,
|
|
20
|
-
icon:
|
|
21
|
-
text:
|
|
22
|
-
controlIcon:
|
|
23
|
-
}, k = (
|
|
20
|
+
icon: g,
|
|
21
|
+
text: P,
|
|
22
|
+
controlIcon: T
|
|
23
|
+
}, k = (c) => {
|
|
24
24
|
const {
|
|
25
25
|
selectionMode: t,
|
|
26
|
-
isSelected:
|
|
26
|
+
isSelected: o,
|
|
27
27
|
selectionVariant: m = "control",
|
|
28
28
|
children: r
|
|
29
|
-
} =
|
|
29
|
+
} = c, l = {
|
|
30
30
|
Icon: {
|
|
31
|
-
className:
|
|
31
|
+
className: n.icon
|
|
32
32
|
},
|
|
33
33
|
Text: {
|
|
34
|
-
className:
|
|
34
|
+
className: n.text
|
|
35
35
|
}
|
|
36
36
|
}, s = {
|
|
37
37
|
Icon: {
|
|
38
|
-
className: f(
|
|
38
|
+
className: f(n.controlIcon, n.icon)
|
|
39
39
|
}
|
|
40
|
-
}, a = t === "none" || m === "navigation" ? null : t === "single" &&
|
|
40
|
+
}, a = t === "none" || m === "navigation" ? null : t === "single" && o ? /* @__PURE__ */ e.createElement(d, null) : t === "single" && !o ? /* @__PURE__ */ e.createElement(C, null) : t === "multiple" && o ? /* @__PURE__ */ e.createElement(x, null) : /* @__PURE__ */ e.createElement(E, null), u = h(r, p);
|
|
41
41
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(i, { props: s }, a), /* @__PURE__ */ e.createElement(i, { props: l }, /* @__PURE__ */ e.createElement(M, { if: !u }, /* @__PURE__ */ e.createElement(p, null, r))));
|
|
42
|
-
},
|
|
42
|
+
}, B = N("MenuItem", (c) => {
|
|
43
43
|
const {
|
|
44
44
|
children: t,
|
|
45
|
-
className:
|
|
45
|
+
className: o,
|
|
46
46
|
selectionVariant: m,
|
|
47
47
|
refProp: r,
|
|
48
48
|
...l
|
|
49
|
-
} =
|
|
50
|
-
return /* @__PURE__ */ e.createElement(I.MenuItem, { ...l, className: s, ref: r }, (a) => /* @__PURE__ */ e.createElement(
|
|
49
|
+
} = c, s = f(n.menuItem, o);
|
|
50
|
+
return /* @__PURE__ */ e.createElement(I.MenuItem, { ...l, className: s, ref: r }, (a) => /* @__PURE__ */ e.createElement(k, { ...a, selectionVariant: m }, t));
|
|
51
51
|
});
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
B as M
|
|
54
54
|
};
|
package/dist/js/MenuItem.js
CHANGED
package/dist/js/Navigation.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import e, { useId as
|
|
3
|
+
import e, { useId as v } from "react";
|
|
4
4
|
import d from "clsx";
|
|
5
|
-
import {
|
|
6
|
-
import { W as E } from "./Wrap-DGT1h1o3.js";
|
|
5
|
+
import { W as f } from "./Wrap-DGT1h1o3.js";
|
|
7
6
|
import "./propsContext-DzAKlmhS.js";
|
|
8
7
|
import { PropsContextProvider as l } from "./PropsContextProvider.js";
|
|
9
8
|
import "@react-aria/utils";
|
|
10
9
|
import "remeda";
|
|
10
|
+
import { d as E } from "./deepHas-KHS5X1F_.js";
|
|
11
11
|
import { TunnelProvider as u, TunnelExit as p } from "@mittwald/react-tunnel";
|
|
12
12
|
import { A as x } from "./Accordion-za0RoF1r.js";
|
|
13
13
|
import { C as N } from "./Content-DW8OnKPj.js";
|
|
@@ -17,8 +17,8 @@ const C = "flow--navigation", I = "flow--navigation--item", b = "flow--navigatio
|
|
|
17
17
|
icon: b,
|
|
18
18
|
text: w,
|
|
19
19
|
controlIcon: P
|
|
20
|
-
},
|
|
21
|
-
const { className: t, children: n, ...s } = i, c = d(r.navigation, t), o =
|
|
20
|
+
}, B = (i) => {
|
|
21
|
+
const { className: t, children: n, ...s } = i, c = d(r.navigation, t), o = E(n, G), a = {
|
|
22
22
|
Link: {
|
|
23
23
|
wrapWith: /* @__PURE__ */ e.createElement("li", null),
|
|
24
24
|
className: r.item,
|
|
@@ -31,12 +31,12 @@ const C = "flow--navigation", I = "flow--navigation--item", b = "flow--navigatio
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
return /* @__PURE__ */ e.createElement("nav", { className: c, role: "navigation", ...s }, /* @__PURE__ */ e.createElement(l, { props: a, mergeInParentContext: !0 }, /* @__PURE__ */ e.createElement(
|
|
34
|
+
return /* @__PURE__ */ e.createElement("nav", { className: c, role: "navigation", ...s }, /* @__PURE__ */ e.createElement(l, { props: a, mergeInParentContext: !0 }, /* @__PURE__ */ e.createElement(f, { if: !o }, /* @__PURE__ */ e.createElement("ul", null, n))));
|
|
35
35
|
}, h = "flow--navigation--navigation-group", k = "flow--navigation--navigation-group--label", g = {
|
|
36
36
|
navigationGroup: h,
|
|
37
37
|
label: k
|
|
38
|
-
},
|
|
39
|
-
const { children: t, className: n, collapsable: s, ...c } = i, o = d(g.navigationGroup, n), a =
|
|
38
|
+
}, G = (i) => {
|
|
39
|
+
const { children: t, className: n, collapsable: s, ...c } = i, o = d(g.navigationGroup, n), a = v(), m = {
|
|
40
40
|
Label: {
|
|
41
41
|
id: a,
|
|
42
42
|
className: g.label,
|
|
@@ -57,7 +57,7 @@ const C = "flow--navigation", I = "flow--navigation--item", b = "flow--navigatio
|
|
|
57
57
|
)));
|
|
58
58
|
};
|
|
59
59
|
export {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
B as Navigation,
|
|
61
|
+
G as NavigationGroup,
|
|
62
|
+
B as default
|
|
63
63
|
};
|
package/dist/js/RadioGroup.js
CHANGED
|
@@ -7,24 +7,24 @@ import "./propsContext-DzAKlmhS.js";
|
|
|
7
7
|
import { PropsContextProvider as C } from "./PropsContextProvider.js";
|
|
8
8
|
import "@react-aria/utils";
|
|
9
9
|
import "remeda";
|
|
10
|
-
import { F
|
|
10
|
+
import { F } from "./FieldError-BvH18haz.js";
|
|
11
11
|
import { C as G } from "./ColumnLayout-CLtV-itI.js";
|
|
12
12
|
import { TunnelProvider as I, TunnelExit as c } from "@mittwald/react-tunnel";
|
|
13
13
|
import { f as l } from "./FormField.module-CqWpTQKP.js";
|
|
14
|
-
import { d as P } from "./deepFindOfType-6pG0fH7S.js";
|
|
15
14
|
import { C as R } from "./ClearPropsContext-CUvsbMn8.js";
|
|
16
15
|
import "@tabler/icons-react";
|
|
17
16
|
import "./Icon-DGqvukLZ.js";
|
|
18
|
-
import { I as
|
|
17
|
+
import { I as P, a as w } from "./IconRadioOn-CR0g7TLz.js";
|
|
19
18
|
import { f } from "./flowComponent-1wOIvUIq.js";
|
|
20
19
|
import "dot-prop";
|
|
20
|
+
import { d as B } from "./deepHas-KHS5X1F_.js";
|
|
21
21
|
const y = "flow--radio-group", m = {
|
|
22
22
|
radioGroup: y
|
|
23
|
-
}, h = "flow--radio-group--radio-button", D = "flow--radio-group--radio-button--content",
|
|
23
|
+
}, h = "flow--radio-group--radio-button", D = "flow--radio-group--radio-button--content", v = "flow--radio-group--radio-button--label", d = {
|
|
24
24
|
radioButton: h,
|
|
25
25
|
content: D,
|
|
26
|
-
label:
|
|
27
|
-
},
|
|
26
|
+
label: v
|
|
27
|
+
}, T = f("RadioButton", (r) => {
|
|
28
28
|
const { children: e, className: t, refProp: a, ...n } = r, s = u(d.radioButton, t), i = {
|
|
29
29
|
Text: {
|
|
30
30
|
className: d.label
|
|
@@ -39,7 +39,7 @@ const y = "flow--radio-group", m = {
|
|
|
39
39
|
l.formField,
|
|
40
40
|
m.radioGroupContainer,
|
|
41
41
|
t
|
|
42
|
-
),
|
|
42
|
+
), g = {
|
|
43
43
|
Label: {
|
|
44
44
|
className: l.label
|
|
45
45
|
},
|
|
@@ -57,12 +57,12 @@ const y = "flow--radio-group", m = {
|
|
|
57
57
|
Radio: {
|
|
58
58
|
tunnelId: "radios"
|
|
59
59
|
}
|
|
60
|
-
}, E =
|
|
60
|
+
}, E = B(e, T);
|
|
61
61
|
return /* @__PURE__ */ o.createElement(N.RadioGroup, { ...b, className: x, ref: i }, /* @__PURE__ */ o.createElement(I, null, /* @__PURE__ */ o.createElement(
|
|
62
62
|
C,
|
|
63
63
|
{
|
|
64
64
|
dependencies: ["radio"],
|
|
65
|
-
props:
|
|
65
|
+
props: g,
|
|
66
66
|
mergeInParentContext: !0
|
|
67
67
|
},
|
|
68
68
|
e,
|
|
@@ -70,17 +70,17 @@ const y = "flow--radio-group", m = {
|
|
|
70
70
|
!E && /* @__PURE__ */ o.createElement("div", { className: m.radioGroup }, /* @__PURE__ */ o.createElement(c, { id: "radios" })),
|
|
71
71
|
/* @__PURE__ */ o.createElement(c, { id: "fieldDescription" }),
|
|
72
72
|
/* @__PURE__ */ o.createElement(c, { id: "fieldError" })
|
|
73
|
-
)), /* @__PURE__ */ o.createElement(
|
|
74
|
-
}),
|
|
75
|
-
radio:
|
|
76
|
-
icon:
|
|
73
|
+
)), /* @__PURE__ */ o.createElement(F, { className: l.fieldError }));
|
|
74
|
+
}), L = "flow--radio-group--radio", O = "flow--radio-group--radio--icon", p = {
|
|
75
|
+
radio: L,
|
|
76
|
+
icon: O
|
|
77
77
|
}, $ = f("Radio", (r) => {
|
|
78
78
|
const { children: e, className: t, refProp: a, ...n } = r, s = u(p.radio, t);
|
|
79
|
-
return /* @__PURE__ */ o.createElement(R, null, /* @__PURE__ */ o.createElement(N.Radio, { ...n, className: s, ref: a }, ({ isSelected: i }) => /* @__PURE__ */ o.createElement(o.Fragment, null, i ? /* @__PURE__ */ o.createElement(
|
|
79
|
+
return /* @__PURE__ */ o.createElement(R, null, /* @__PURE__ */ o.createElement(N.Radio, { ...n, className: s, ref: a }, ({ isSelected: i }) => /* @__PURE__ */ o.createElement(o.Fragment, null, i ? /* @__PURE__ */ o.createElement(P, { className: p.icon }) : /* @__PURE__ */ o.createElement(w, { className: p.icon }), e)));
|
|
80
80
|
});
|
|
81
81
|
export {
|
|
82
82
|
$ as Radio,
|
|
83
|
-
|
|
83
|
+
T as RadioButton,
|
|
84
84
|
_ as RadioGroup,
|
|
85
85
|
_ as default
|
|
86
86
|
};
|
package/dist/js/Tabs.js
CHANGED
|
@@ -7,7 +7,7 @@ import { TunnelExit as E, TunnelProvider as P, TunnelEntry as f } from "@mittwal
|
|
|
7
7
|
import { f as O } from "./flowComponent-1wOIvUIq.js";
|
|
8
8
|
import { useCallbackRef as S } from "use-callback-ref";
|
|
9
9
|
import { a as A, C as B } from "./ContextMenuTrigger-BbYyy0an.js";
|
|
10
|
-
import { M as K } from "./MenuItem-
|
|
10
|
+
import { M as K } from "./MenuItem-DZ6wEuiI.js";
|
|
11
11
|
import { B as L } from "./Button-DXgQ5lAy.js";
|
|
12
12
|
import "@tabler/icons-react";
|
|
13
13
|
import "./Icon-DGqvukLZ.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import { isValidElement as s } from "react";
|
|
4
|
+
import { deepFind as i, deepForEach as o } from "react-children-utilities";
|
|
5
|
+
const p = (e, t) => s(e) ? typeof t == "string" ? typeof e.type == "string" ? e.type === t : !1 : e.type === t : !1, f = (e, t) => i(e, (r) => p(r, t)), u = (e, t) => {
|
|
6
|
+
const r = [];
|
|
7
|
+
return o(e, (n) => {
|
|
8
|
+
p(n, t) && r.push(n);
|
|
9
|
+
}), r;
|
|
10
|
+
}, y = (e, t) => !!f(e, t);
|
|
11
|
+
export {
|
|
12
|
+
f as a,
|
|
13
|
+
u as b,
|
|
14
|
+
y as d
|
|
15
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-react-components",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.324",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
"@chakra-ui/live-region": "^2.1.0",
|
|
406
406
|
"@internationalized/date": "^3.5.6",
|
|
407
407
|
"@internationalized/string-compiler": "^3.2.5",
|
|
408
|
-
"@mittwald/react-tunnel": "^0.1.0-alpha.
|
|
408
|
+
"@mittwald/react-tunnel": "^0.1.0-alpha.324",
|
|
409
409
|
"@mittwald/react-use-promise": "^2.5.0",
|
|
410
410
|
"@react-aria/form": "^3.0.10",
|
|
411
411
|
"@react-aria/utils": "^3.25.3",
|
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
},
|
|
436
436
|
"devDependencies": {
|
|
437
437
|
"@faker-js/faker": "^9.0.3",
|
|
438
|
-
"@mittwald/flow-design-tokens": "^0.1.0-alpha.
|
|
438
|
+
"@mittwald/flow-design-tokens": "^0.1.0-alpha.324",
|
|
439
439
|
"@mittwald/react-use-promise": "^2.5.0",
|
|
440
440
|
"@nx/storybook": "^20.0.0",
|
|
441
441
|
"@storybook/addon-a11y": "^8.3.5",
|
|
@@ -530,5 +530,5 @@
|
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
},
|
|
533
|
-
"gitHead": "
|
|
533
|
+
"gitHead": "79555cf0c769a1b8636ad58aaa1db55bc21baf1e"
|
|
534
534
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
/* */
|
|
3
|
-
import { isValidElement as p } from "react";
|
|
4
|
-
import { deepFind as f, deepForEach as o } from "react-children-utilities";
|
|
5
|
-
const n = (e, t) => p(e) ? typeof t == "string" ? typeof e.type == "string" ? e.type === t : !1 : e.type === t : !1, u = (e, t) => f(e, (r) => n(r, t)), y = (e, t) => {
|
|
6
|
-
const r = [];
|
|
7
|
-
return o(e, (i) => {
|
|
8
|
-
n(i, t) && r.push(i);
|
|
9
|
-
}), r;
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
y as a,
|
|
13
|
-
u as d
|
|
14
|
-
};
|