@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 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
@@ -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 { d as F } from "./deepFindOfType-6pG0fH7S.js";
16
- import { f as G } from "./flowComponent-1wOIvUIq.js";
17
- const y = "flow--checkbox-group", s = {
18
- checkboxGroup: y
19
- }, j = G("CheckboxGroup", (l) => {
20
- const { children: t, className: m, s: i, m: n, l: a, refProp: p, ...d } = l, f = b(o.formField, m), u = {
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 = !!F(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: i, m: n, l: a, 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 }));
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,
@@ -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-BHTxlZbm.js";
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-BHTxlZbm.js";
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 { d as S, a as V } from "./deepFindOfType-6pG0fH7S.js";
48
- import { ListLoaderAsyncResource as At, TypedListLoaderAsyncResource as Mt } from "./List/ListLoaderAsyncResource.js";
49
- import { S as Bt } from "./Skeleton-CKLaTmDR.js";
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 Dt } from "./ActionGroup-D7pgHibo.js";
52
- const xt = "flow--list--items--item--view", Nt = "flow--list--items--item--view--title", Rt = "flow--list--items--item--view--top-content", $t = "flow--list--items--item--view--content", zt = "flow--list--items--item--view--action", Ut = "flow--list--items--item--view--avatar", Kt = "flow--list--items--item--view--text", Ot = "flow--list--items--item--view--heading", m = {
53
- view: xt,
54
- title: Nt,
55
- topContent: Rt,
56
- content: $t,
57
- action: zt,
58
- avatar: Ut,
59
- text: Kt,
60
- heading: Ot,
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
- }, b = { "de-DE": {
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
- } }, Ht = (a) => {
95
- const { className: e, children: t } = a, s = w(b);
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
- }, qt = (a) => a === "top" ? m.topContent : a === "bottom" ? m.content : m.topContent, ke = (a) => {
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(Ht, { className: m.action }),
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) => qt(o.slot)),
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
- }, Gt = "flow--list--list-summary", jt = {
145
- listSummary: Gt
146
- }, _i = we("ListSummary", (a) => {
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: jt.listSummary, ...a }, e);
149
- }), Ae = _e({}), g = () => Qe(Ae).list, Wt = () => g().loader.getLoaderInvocationHooks().map((e, t) => /* @__PURE__ */ i.createElement(ct, { key: t }, () => {
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
- })), Jt = (a) => {
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
- }, Yt = () => {
158
- const a = g(), e = a.visibleSorting.map((n) => /* @__PURE__ */ i.createElement(Jt, { sorting: n, key: n.id }));
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: b }, "list.sorting"));
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
- }, _t = (a) => {
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
- }, Qt = "flow--list--header", Xt = "flow--list--header--picker-list-and-search", Zt = "flow--list--header--picker-list", es = "flow--list--header--search-and-actions", ts = "flow--list--header--search-field", ss = "flow--list--header--actions", F = {
194
- header: Qt,
195
- pickerListAndSearch: Xt,
196
- pickerList: Zt,
197
- searchAndActions: es,
198
- searchField: ts,
199
- actions: ss
200
- }, is = "flow--list--header--active-filters", as = "flow--list--header--active-filters--clear-button", ns = {
201
- activeFilters: is,
202
- clearButton: as
203
- }, rs = pt(() => {
204
- const a = g(), e = w(b), 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: b }, "list.filters.store")), /* @__PURE__ */ i.createElement(
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: b }, "list.filters.reset")), /* @__PURE__ */ i.createElement(
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: b }, "list.filters.clear")), /* @__PURE__ */ i.createElement(
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: ns.activeFilters }, s, l, o, d);
235
- }), ls = (a) => {
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
- }, os = (a) => {
257
- const { className: e, search: t } = a, s = t.render ?? ls;
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
- }, cs = () => {
265
- const a = w(b), e = g(), t = e.viewMode, s = [];
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
- }, ds = (a) => {
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(_t, { 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(cs, null), /* @__PURE__ */ i.createElement(Yt, null), n), /* @__PURE__ */ i.createElement("div", { className: F.searchAndActions }, s.search && /* @__PURE__ */ i.createElement(os, { className: F.searchField, search: s.search }), /* @__PURE__ */ i.createElement(x, { id: "actions" }))), /* @__PURE__ */ i.createElement(rs, null));
292
- }, us = "flow--list", ms = {
293
- list: us
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 hs = class Me {
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 gs {
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) => hs.fromRow(this, e));
312
+ return this.list.reactTable.table.getRowModel().rows.map((e) => gs.fromRow(this, e));
313
313
  }
314
314
  }
315
- class ps {
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 fs = "$";
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 Ss = (a, e) => a === e, bs = (a) => String(a);
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 ?? Ss, this.renderItem = t.renderItem ?? bs, this.name = t.name, this.defaultSelectedValues = t.defaultSelected ? this.values.filter(
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(fs) ? e.original : wt(e.original, n);
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 vs {
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 ys = [];
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: ys };
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 ws {
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, Es = class {
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
- }, Fs = class {
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 Es(this, l)), this.componentProps = n;
837
+ this.table = e, this.columns = s.map((l) => new Fs(this, l)), this.componentProps = n;
838
838
  }
839
- }, Ts = class {
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
- }, Cs = class {
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 Ts(this, l)), this.componentProps = n;
853
+ this.tableBody = e, this.cells = s.map((l) => new Cs(this, l)), this.componentProps = n;
854
854
  }
855
- }, Is = class {
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 Cs(this, s), this.componentProps = n;
861
+ this.table = e, this.row = new Is(this, s), this.componentProps = n;
862
862
  }
863
- }, Ls = class {
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 Fs(this, s), this.body = new Is(this, n), this.componentProps = l;
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 Ps = (v = class {
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 gs(this), this.filters = l.map((p) => new M(this, p)), this.sorting = o.map((p) => new vs(this, p)), this.search = h ? new ws(this, h) : void 0, this.itemView = s ? new j(this, s) : void 0, this.table = n ? new Ls(this, n) : void 0, this.batches = new ps(this, d), this.componentProps = U, this.loader = te.useNew(this, u), this.onAction = C, this.getItemId = z, this.reactTable = Z.useNew(this, c, {
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 Vs = "flow--list--items", ks = "flow--list--items--is-loading", Se = {
988
- items: Vs,
989
- isLoading: ks
990
- }, As = "flow--list--items--item", Ms = "flow--list--items--item--is-selected", Bs = "flow--list--items--item--has-action", B = {
991
- item: As,
992
- isSelected: Ms,
993
- hasAction: Bs
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" }))), Ds = (a) => {
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
- }, xs = (a) => /* @__PURE__ */ i.createElement(X.GridListItem, { textValue: "-", className: B.item }, a.children), W = () => {
1015
- const a = w(b);
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
- }, Ns = () => {
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(xs, { key: n }, et(e)));
1021
- }, Rs = () => {
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(Ds, { key: l.id, data: l.data, id: l.id })), n = T(Se.items, e && Se.isLoading);
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(Ns, null) : s
1033
+ t ? /* @__PURE__ */ i.createElement(Rs, null) : s
1034
1034
  ));
1035
- }, De = (a) => null, $s = () => De, xe = (a) => null, zs = () => xe, Ne = (a) => null, Us = () => Ne, Re = (a) => null, Ks = () => Re, $e = (a) => null, Os = () => $e, Hs = "flow--list--footer", qs = {
1036
- footer: Hs
1037
- }, Gs = (a) => {
1038
- const e = w(b), t = g(), s = t.batches, n = t.loader.useIsInitiallyLoading(), l = t.useIsEmpty(), o = s.getTotalItemsCount(), d = s.getVisibleItemsCount();
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(Bt, { width: "200px" }) : e.format("list.paginationInfo", {
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
- }, js = (a) => {
1047
- const e = w(b), t = g(), s = t.loader.useIsLoading(), n = t.loader.useIsInitiallyLoading();
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
- }, Ws = () => /* @__PURE__ */ i.createElement("div", { className: qs.footer }, /* @__PURE__ */ i.createElement(Gs, null), /* @__PURE__ */ i.createElement(js, null));
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 Js = () => ze, Ue = (a) => null, Ke = (a) => null, Oe = (a) => null, Ys = (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%" })))))), _s = "flow--list--table", Qs = "flow--list--table--is-loading", Xs = "flow--list--table--row", Zs = "flow--list--table--is-selected", ei = "flow--list--table--has-action", I = {
1065
- table: _s,
1066
- isLoading: Qs,
1067
- row: Xs,
1068
- isSelected: Zs,
1069
- hasAction: ei
1070
- }, ti = () => {
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(Ys, { ...e.componentProps });
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, si = we("List", (a) => {
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 = S(
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 = S(
1123
+ )) == null ? void 0 : se.props, d = (ie = b(
1124
1124
  e,
1125
- At
1126
- )) == null ? void 0 : ie.props, c = (ae = S(e, $e)) == null ? void 0 : ae.props, u = {
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 = S(e, ze)) == null ? void 0 : ne.props, C = (re = S(e, Re)) == null ? void 0 : re.props, z = (le = S(e, He)) == null ? void 0 : le.props, L = V(e, Ue).map(
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 = S(e, Ke)) == null ? void 0 : oe.props, O = (ce = S(e, qe)) == null ? void 0 : ce.props, p = (de = S(e, Ge)) == null ? void 0 : de.props, P = Ps.useNew({
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 = !!S(e, Dt);
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(Wt, null),
1201
- /* @__PURE__ */ i.createElement("div", { className: ms.list, ref: n }, e, /* @__PURE__ */ i.createElement(ds, { hasActionGroup: We }), /* @__PURE__ */ i.createElement("div", null, P.items.entries.length > 0 && /* @__PURE__ */ i.createElement(x, { id: "listSummary" }), P.viewMode === "list" && /* @__PURE__ */ i.createElement(Rs, null), P.viewMode === "table" && /* @__PURE__ */ i.createElement(ti, null)), /* @__PURE__ */ i.createElement(Ws, null))
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
- }), ii = () => si, ia = () => ({
1204
- List: ii(),
1205
- Filter: zs(),
1206
- Search: Js(),
1207
- Sorting: Us(),
1208
- Item: Ks(),
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: Os(),
1217
- LoaderAsync: $s(),
1218
- LoaderAsyncResource: Mt()
1216
+ StaticData: Hs(),
1217
+ LoaderAsync: zs(),
1218
+ LoaderAsyncResource: Bt()
1219
1219
  });
1220
1220
  export {
1221
- si as List,
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
- _i as ListSummary,
1229
- ii as TypedList,
1230
- zs as TypedListFilter,
1231
- Ks as TypedListItem,
1232
- $s as TypedListLoaderAsync,
1233
- Us as TypedListSorting,
1234
- Os as TypedListStaticData,
1235
- ia as typedList,
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 d } from "./IconCheckboxEmpty-Nnjs5-Pv.js";
13
- import { I as E, a as C } from "./IconRadioOn-CR0g7TLz.js";
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 "./deepFindOfType-6pG0fH7S.js";
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", T = "flow--menu-item--icon", g = "flow--menu-item--text", P = "flow--menu-item--control-icon", c = {
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: T,
21
- text: g,
22
- controlIcon: P
23
- }, k = (o, t) => !!h(o, t), y = (o) => {
20
+ icon: g,
21
+ text: P,
22
+ controlIcon: T
23
+ }, k = (c) => {
24
24
  const {
25
25
  selectionMode: t,
26
- isSelected: n,
26
+ isSelected: o,
27
27
  selectionVariant: m = "control",
28
28
  children: r
29
- } = o, l = {
29
+ } = c, l = {
30
30
  Icon: {
31
- className: c.icon
31
+ className: n.icon
32
32
  },
33
33
  Text: {
34
- className: c.text
34
+ className: n.text
35
35
  }
36
36
  }, s = {
37
37
  Icon: {
38
- className: f(c.controlIcon, c.icon)
38
+ className: f(n.controlIcon, n.icon)
39
39
  }
40
- }, a = t === "none" || m === "navigation" ? null : t === "single" && n ? /* @__PURE__ */ e.createElement(E, null) : t === "single" && !n ? /* @__PURE__ */ e.createElement(C, null) : t === "multiple" && n ? /* @__PURE__ */ e.createElement(x, null) : /* @__PURE__ */ e.createElement(d, null), u = k(r, p);
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
- }, D = N("MenuItem", (o) => {
42
+ }, B = N("MenuItem", (c) => {
43
43
  const {
44
44
  children: t,
45
- className: n,
45
+ className: o,
46
46
  selectionVariant: m,
47
47
  refProp: r,
48
48
  ...l
49
- } = o, s = f(c.menuItem, n);
50
- return /* @__PURE__ */ e.createElement(I.MenuItem, { ...l, className: s, ref: r }, (a) => /* @__PURE__ */ e.createElement(y, { ...a, selectionVariant: m }, t));
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
- D as M
53
+ B as M
54
54
  };
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { M as t } from "./MenuItem-BHTxlZbm.js";
3
+ import { M as t } from "./MenuItem-DZ6wEuiI.js";
4
4
  export {
5
5
  t as MenuItem,
6
6
  t as default
@@ -1,13 +1,13 @@
1
1
  "use client"
2
2
  /* */
3
- import e, { useId as f } from "react";
3
+ import e, { useId as v } from "react";
4
4
  import d from "clsx";
5
- import { d as v } from "./deepFindOfType-6pG0fH7S.js";
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
- }, z = (i) => {
21
- const { className: t, children: n, ...s } = i, c = d(r.navigation, t), o = !!v(n, y), a = {
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(E, { if: !o }, /* @__PURE__ */ e.createElement("ul", null, n))));
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
- }, y = (i) => {
39
- const { children: t, className: n, collapsable: s, ...c } = i, o = d(g.navigationGroup, n), a = f(), m = {
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
- z as Navigation,
61
- y as NavigationGroup,
62
- z as default
60
+ B as Navigation,
61
+ G as NavigationGroup,
62
+ B as default
63
63
  };
@@ -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 as g } from "./FieldError-BvH18haz.js";
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 w, a as B } from "./IconRadioOn-CR0g7TLz.js";
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", T = "flow--radio-group--radio-button--label", d = {
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: T
27
- }, v = f("RadioButton", (r) => {
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
- ), F = {
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 = !!P(e, v);
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: F,
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(g, { className: l.fieldError }));
74
- }), O = "flow--radio-group--radio", L = "flow--radio-group--radio--icon", p = {
75
- radio: O,
76
- icon: L
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(w, { className: p.icon }) : /* @__PURE__ */ o.createElement(B, { className: p.icon }), e)));
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
- v as RadioButton,
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-BHTxlZbm.js";
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.323",
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.323",
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.323",
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": "c32fc98da5fa4d382d0e2d7eaf57196d53311d66"
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
- };