@mittwald/flow-react-components 0.2.0-alpha.23 → 0.2.0-alpha.25

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