@mittwald/flow-react-components 0.1.0-alpha.122 → 0.1.0-alpha.124

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