@mittwald/flow-react-components 0.2.0-alpha.25 → 0.2.0-alpha.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +322 -9
- package/dist/js/{Accordion-ehDuiU7W.js → Accordion-Dpj1oFzd.js} +3 -3
- package/dist/js/Accordion.js +1 -1
- package/dist/js/{Action-C1Tw5pqL.js → Action-DfWvHbWy.js} +1 -1
- package/dist/js/Action.js +1 -1
- package/dist/js/ActionGroup-Df471PRl.js +54 -0
- package/dist/js/ActionGroup.js +1 -1
- package/dist/js/Alert.js +2 -2
- package/dist/js/AlertBadge.js +3 -3
- package/dist/js/{AlertIcon-zxc_IFxt.js → AlertIcon-DLNwOcjK.js} +4 -4
- package/dist/js/AlertIcon.js +1 -1
- package/dist/js/Align.js +1 -1
- package/dist/js/Avatar-BnUeBUUe.js +68 -0
- package/dist/js/Avatar.js +1 -1
- package/dist/js/{Badge-CiZ2cJPc.js → Badge-COtCTH_k.js} +3 -3
- package/dist/js/Badge.js +1 -1
- package/dist/js/Breadcrumb.js +2 -2
- package/dist/js/{Button-WawPguWq.js → Button-CpidnrB2.js} +4 -4
- package/dist/js/Button.js +1 -1
- package/dist/js/{ButtonView-inzXKZFE.js → ButtonView-9JIUBb3-.js} +1 -1
- package/dist/js/{CalendarHeader-D7_Itm72.js → CalendarHeader-FzRkroPI.js} +4 -4
- package/dist/js/{Checkbox-D2UcTbDY.js → Checkbox-DeFXQE8t.js} +3 -3
- package/dist/js/Checkbox.js +1 -1
- package/dist/js/CheckboxButton.js +28 -3
- package/dist/js/CheckboxGroup.js +22 -24
- package/dist/js/{CodeBlock-DyPUKUfC.js → CodeBlock-CIe3HE6_.js} +1 -1
- package/dist/js/CodeBlock.js +1 -1
- package/dist/js/ComboBox.js +93 -0
- package/dist/js/{Content-mlearvuR.js → Content-VZW7wYH0.js} +1 -1
- package/dist/js/Content.js +1 -1
- package/dist/js/ContextMenu.js +4 -4
- package/dist/js/{ContextMenuContent-N8Co_64N.js → ContextMenuContent-DQojalD_.js} +13 -15
- package/dist/js/{ContextMenuSection-C4JcZt6N.js → ContextMenuSection-DSFhpvV8.js} +3 -3
- package/dist/js/ContextualHelp.js +3 -3
- package/dist/js/{CopyButton-hLDhvtYv.js → CopyButton-Cxn4ZL7P.js} +4 -4
- package/dist/js/CopyButton.js +1 -1
- package/dist/js/CounterBadge.js +1 -1
- package/dist/js/DatePicker.js +6 -6
- package/dist/js/DateRangePicker.js +6 -6
- package/dist/js/{FieldDescription-DBKM9JJK.js → FieldDescription-6bRgUF6j.js} +2 -2
- package/dist/js/FieldDescription.js +1 -1
- package/dist/js/{FieldError-Dvter_gI.js → FieldError-x5ErhzHX.js} +2 -2
- package/dist/js/FieldError.js +1 -1
- package/dist/js/FileCard.js +9 -9
- package/dist/js/FileDropZone.js +41 -0
- package/dist/js/FileField.js +1 -1
- package/dist/js/{Header-6rzaR_ZQ.js → Header-CKEomWir.js} +10 -9
- package/dist/js/Header.js +1 -1
- package/dist/js/HeaderNavigation.js +1 -1
- package/dist/js/{Heading-CAK54nAl.js → Heading-CxJ8-gg1.js} +1 -1
- package/dist/js/Heading.js +1 -1
- package/dist/js/{Icon-BwWnkfBs.js → Icon-D1s_Nl8f.js} +1 -1
- package/dist/js/Icon.js +1 -1
- package/dist/js/{IconCalendar-Q15swPO9.js → IconCalendar-DICXvFAK.js} +2 -2
- package/dist/js/{IconCheck-DSJw_XKy.js → IconCheck-Bqw7XyGS.js} +2 -2
- package/dist/js/{IconCheckboxEmpty-CJsL0HKI.js → IconCheckboxEmpty-CdHWDs3V.js} +2 -2
- package/dist/js/{IconCheckboxIndeterminate-BegmYi5q.js → IconCheckboxIndeterminate-B2xz1HQB.js} +2 -2
- package/dist/js/{IconChevronDown-DbVQ4UKe.js → IconChevronDown-DaiVaZc2.js} +2 -2
- package/dist/js/{IconChevronRight-B7wLgosL.js → IconChevronRight-OYYpwzCw.js} +2 -2
- package/dist/js/{IconChevronUp-C7IqV12r.js → IconChevronUp-Bt9GQ5m2.js} +2 -2
- package/dist/js/{IconClose-B4zJVugN.js → IconClose-DE2OkcZ3.js} +2 -2
- package/dist/js/{IconContextMenu-DnwSrGtk.js → IconContextMenu-Ddfi5ZZF.js} +2 -2
- package/dist/js/{IconCopy-DlhvXpzM.js → IconCopy-DPIeCh7x.js} +2 -2
- package/dist/js/{IconDanger-CLQjl-bG.js → IconDanger--t2ciHuJ.js} +2 -2
- package/dist/js/{IconExternalLink-DmREEXln.js → IconExternalLink-gf7iLNMk.js} +2 -2
- package/dist/js/{IconFile-C6gwhTzA.js → IconFile-mXOcGrvi.js} +2 -2
- package/dist/js/{IconInfo-DOr5jJ3x.js → IconInfo-CjGNgTHe.js} +2 -2
- package/dist/js/{IconPending-DtrOmfTQ.js → IconPending-BMtWE5DF.js} +2 -2
- package/dist/js/{IconPlus-B4GbH9Av.js → IconPlus-gE84aqHi.js} +2 -2
- package/dist/js/{IconRadioOn-CbW3RjJ2.js → IconRadioOn-DtJlH5uD.js} +2 -2
- package/dist/js/{IconSearch-DEZjce1A.js → IconSearch-C-AbvN_g.js} +2 -2
- package/dist/js/{IconSucceeded-C9y_vsxu.js → IconSucceeded-CNEZRcRX.js} +2 -2
- package/dist/js/{IconView-B2Dw4XBX.js → IconView-Brtz6E06.js} +1 -1
- package/dist/js/{IconView-DwPoNey_.js → IconView-rHKlJeFp.js} +2 -2
- package/dist/js/{IconWarning-b9Fu7oJU.js → IconWarning-OHzWO61S.js} +2 -2
- package/dist/js/Icons.js +131 -120
- package/dist/js/{Image-bgRpoOYx.js → Image-CL-HtWkf.js} +1 -1
- package/dist/js/Image.js +1 -1
- package/dist/js/Initials.js +18 -3
- package/dist/js/{Label-BNeqtA5n.js → Label-Dd2332r2.js} +1 -1
- package/dist/js/Label.js +1 -1
- package/dist/js/LayoutCard.js +1 -1
- package/dist/js/LightBox.js +3 -3
- package/dist/js/{Link-CgqjxAXS.js → Link-Bi5EK_xM.js} +2 -2
- package/dist/js/Link.js +1 -1
- package/dist/js/List.js +762 -665
- package/dist/js/{LoadingSpinner-Bi3wJJYc.js → LoadingSpinner-CLdEsHVt.js} +2 -2
- package/dist/js/LoadingSpinner.js +1 -1
- package/dist/js/Markdown.js +11 -10
- package/dist/js/MenuItem-DuSDaivo.js +58 -0
- package/dist/js/MenuItem.js +1 -1
- package/dist/js/Message.js +2 -2
- package/dist/js/Modal.js +5 -5
- package/dist/js/Navigation.js +44 -43
- package/dist/js/Notification.js +5 -5
- package/dist/js/NotificationProvider.js +31 -31
- package/dist/js/NumberField.js +6 -6
- package/dist/js/Option-Dq2kSEMl.js +20 -0
- package/dist/js/Option.js +7 -0
- package/dist/js/Options-1UizQrjb.js +26 -0
- package/dist/js/{Popover-Ck5nKNR3.js → Popover-2yo5j1XN.js} +1 -1
- package/dist/js/Popover.js +3 -3
- package/dist/js/RadioGroup.js +55 -57
- package/dist/js/{SearchField-ONmuF9P1.js → SearchField-DVIJ25lZ.js} +5 -5
- package/dist/js/SearchField.js +1 -1
- package/dist/js/{Section-CWfvE5ls.js → Section-CT6QbDC-.js} +2 -2
- package/dist/js/Section.js +1 -1
- package/dist/js/SegmentedControl.js +3 -3
- package/dist/js/Select.js +63 -84
- package/dist/js/Slider.js +3 -3
- package/dist/js/{Switch-Bg5jHbFG.js → Switch-DGEFjK19.js} +4 -4
- package/dist/js/Switch.js +1 -1
- package/dist/js/Tabs.js +45 -47
- package/dist/js/{Text-CW_CzcoD.js → Text-CIEzKaxJ.js} +1 -1
- package/dist/js/Text.js +1 -1
- package/dist/js/TextArea.js +2 -2
- package/dist/js/TextField.js +2 -2
- package/dist/js/{TextFieldBase-BOhCwxJG.js → TextFieldBase-ByaoeeVY.js} +2 -2
- package/dist/js/TimeField.js +2 -2
- package/dist/js/all.css +1 -1
- package/dist/js/{flowComponent-B8dC8eRj.js → flowComponent--S4z-7r_.js} +1 -1
- package/dist/js/hooks.js +1 -1
- package/dist/js/internal.js +1 -1
- package/dist/js/lib-D5zMvYjy.js +12 -0
- package/dist/js/react-hook-form/Field.js +1 -1
- package/dist/js/react-hook-form/Form.js +1 -1
- package/dist/js/types/components/ActionGroup/ActionGroup.d.ts.map +1 -1
- package/dist/js/types/components/ActionGroup/stories/Default.stories.d.ts +1 -0
- package/dist/js/types/components/ActionGroup/stories/Default.stories.d.ts.map +1 -1
- package/dist/js/types/components/Align/stories/InputButton.stories.d.ts.map +1 -1
- package/dist/js/types/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/js/types/components/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
- package/dist/js/types/components/ComboBox/ComboBox.d.ts +11 -0
- package/dist/js/types/components/ComboBox/ComboBox.d.ts.map +1 -0
- package/dist/js/types/components/ComboBox/index.d.ts +4 -0
- package/dist/js/types/components/ComboBox/index.d.ts.map +1 -0
- package/dist/js/types/components/ComboBox/stories/Default.stories.d.ts +13 -0
- package/dist/js/types/components/ComboBox/stories/Default.stories.d.ts.map +1 -0
- package/dist/js/types/components/ContextMenu/lib.d.ts.map +1 -1
- package/dist/js/types/components/FileDropZone/FileDropZone.d.ts +10 -0
- package/dist/js/types/components/FileDropZone/FileDropZone.d.ts.map +1 -0
- package/dist/js/types/components/FileDropZone/index.d.ts +4 -0
- package/dist/js/types/components/FileDropZone/index.d.ts.map +1 -0
- package/dist/js/types/components/FileDropZone/stories/Default.stories.d.ts +10 -0
- package/dist/js/types/components/FileDropZone/stories/Default.stories.d.ts.map +1 -0
- package/dist/js/types/components/Icon/components/icons/IconBulb.d.ts +5 -0
- package/dist/js/types/components/Icon/components/icons/IconBulb.d.ts.map +1 -0
- package/dist/js/types/components/Icon/components/icons/IconCertificate.d.ts +5 -0
- package/dist/js/types/components/Icon/components/icons/IconCertificate.d.ts.map +1 -0
- package/dist/js/types/components/Icon/components/icons/IconDesktop.d.ts +5 -0
- package/dist/js/types/components/Icon/components/icons/IconDesktop.d.ts.map +1 -0
- package/dist/js/types/components/Icon/components/icons/IconDirectory.d.ts +5 -0
- package/dist/js/types/components/Icon/components/icons/IconDirectory.d.ts.map +1 -0
- package/dist/js/types/components/Icon/components/icons/IconLink.d.ts +5 -0
- package/dist/js/types/components/Icon/components/icons/IconLink.d.ts.map +1 -0
- package/dist/js/types/components/Icon/components/icons/IconMobile.d.ts +5 -0
- package/dist/js/types/components/Icon/components/icons/IconMobile.d.ts.map +1 -0
- package/dist/js/types/components/Icon/components/icons/IconMove.d.ts +5 -0
- package/dist/js/types/components/Icon/components/icons/IconMove.d.ts.map +1 -0
- package/dist/js/types/components/Icon/components/icons/IconPicture.d.ts +5 -0
- package/dist/js/types/components/Icon/components/icons/IconPicture.d.ts.map +1 -0
- package/dist/js/types/components/Icon/components/icons/IconSparkles.d.ts +5 -0
- package/dist/js/types/components/Icon/components/icons/IconSparkles.d.ts.map +1 -0
- package/dist/js/types/components/Icon/components/icons/IconUpload.d.ts +5 -0
- package/dist/js/types/components/Icon/components/icons/IconUpload.d.ts.map +1 -0
- package/dist/js/types/components/Icon/components/icons/IconVhost.d.ts +5 -0
- package/dist/js/types/components/Icon/components/icons/IconVhost.d.ts.map +1 -0
- package/dist/js/types/components/Icon/components/icons/index.d.ts +11 -0
- package/dist/js/types/components/Icon/components/icons/index.d.ts.map +1 -1
- package/dist/js/types/components/List/List.d.ts.map +1 -1
- package/dist/js/types/components/List/components/Header/Header.d.ts.map +1 -1
- package/dist/js/types/components/List/components/Header/components/ViewModeMenu/ViewModeMenu.d.ts.map +1 -1
- package/dist/js/types/components/List/components/Items/Items.d.ts.map +1 -1
- package/dist/js/types/components/List/components/Items/components/FallbackItems/FallbackItems.d.ts.map +1 -1
- package/dist/js/types/components/List/components/Items/components/Item/Item.d.ts +1 -1
- package/dist/js/types/components/List/components/Items/components/Item/Item.d.ts.map +1 -1
- package/dist/js/types/components/List/components/Items/components/Item/components/SkeletonView/SkeletonView.d.ts.map +1 -1
- package/dist/js/types/components/List/components/Items/views/GridListItem/GridListItem.d.ts +1 -0
- package/dist/js/types/components/List/components/Items/views/GridListItem/GridListItem.d.ts.map +1 -1
- package/dist/js/types/components/List/components/ListItemView/ListItemView.d.ts +1 -2
- package/dist/js/types/components/List/components/ListItemView/ListItemView.d.ts.map +1 -1
- package/dist/js/types/components/List/components/ListItemView/components/ListItemViewContent/ListItemViewContent.d.ts +5 -2
- package/dist/js/types/components/List/components/ListItemView/components/ListItemViewContent/ListItemViewContent.d.ts.map +1 -1
- package/dist/js/types/components/List/model/List.d.ts +3 -3
- package/dist/js/types/components/List/model/List.d.ts.map +1 -1
- package/dist/js/types/components/List/model/ReactTable.d.ts +2 -2
- package/dist/js/types/components/List/model/ReactTable.d.ts.map +1 -1
- package/dist/js/types/components/List/model/item/ItemView.d.ts +7 -1
- package/dist/js/types/components/List/model/item/ItemView.d.ts.map +1 -1
- package/dist/js/types/components/List/model/types.d.ts +1 -1
- package/dist/js/types/components/List/model/types.d.ts.map +1 -1
- package/dist/js/types/components/List/stories/ListItem.stories.d.ts +2 -2
- package/dist/js/types/components/List/stories/ListItem.stories.d.ts.map +1 -1
- package/dist/js/types/components/List/typedList.d.ts +3 -3
- package/dist/js/types/components/Markdown/Markdown.d.ts.map +1 -1
- package/dist/js/types/components/Markdown/stories/Default.stories.d.ts.map +1 -1
- package/dist/js/types/components/MenuItem/components/MenuItemContent/MenuItemContent.d.ts.map +1 -0
- package/dist/js/types/components/MenuItem/components/MenuItemContent/index.d.ts +2 -0
- package/dist/js/types/components/MenuItem/components/MenuItemContent/index.d.ts.map +1 -0
- package/dist/js/types/components/Navigation/Navigation.d.ts.map +1 -1
- package/dist/js/types/components/NotificationProvider/ControlledNotification.d.ts.map +1 -1
- package/dist/js/types/components/{Select/components/Option → Option}/Option.d.ts +1 -1
- package/dist/js/types/components/Option/Option.d.ts.map +1 -0
- package/dist/js/types/components/Option/index.d.ts.map +1 -0
- package/dist/js/types/components/{Select/components/Option → Option}/view.d.ts +1 -1
- package/dist/js/types/components/Option/view.d.ts.map +1 -0
- package/dist/js/types/components/Options/Options.d.ts +10 -0
- package/dist/js/types/components/Options/Options.d.ts.map +1 -0
- package/dist/js/types/components/Options/index.d.ts.map +1 -0
- package/dist/js/types/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/js/types/components/Section/components/SectionHeader/SectionHeader.d.ts.map +1 -1
- package/dist/js/types/components/Section/stories/Default.stories.d.ts +1 -0
- package/dist/js/types/components/Section/stories/Default.stories.d.ts.map +1 -1
- package/dist/js/types/components/Select/Select.d.ts.map +1 -1
- package/dist/js/types/components/Select/index.d.ts +0 -1
- package/dist/js/types/components/Select/index.d.ts.map +1 -1
- package/dist/js/types/components/Select/stories/Default.stories.d.ts.map +1 -1
- package/dist/js/types/components/Select/stories/EdgeCases.stories.d.ts.map +1 -1
- package/dist/js/types/components/propTypes/index.d.ts +4 -1
- package/dist/js/types/components/propTypes/index.d.ts.map +1 -1
- package/dist/js/types/integrations/react-hook-form/components/Field/stories/Default.stories.d.ts.map +1 -1
- package/dist/js/types/integrations/react-hook-form/index.d.ts +1 -0
- package/dist/js/types/integrations/react-hook-form/index.d.ts.map +1 -1
- package/dist/js/types/lib/propsContext/propsContext.d.ts +2 -0
- package/dist/js/types/lib/propsContext/propsContext.d.ts.map +1 -1
- package/dist/js/types/views/OptionView.d.ts +1 -1
- package/dist/js/{useProps-BDtV5P_t.js → useProps-CBLAZpTB.js} +6 -5
- package/package.json +43 -31
- package/dist/js/ActionGroup-CSpyLctL.js +0 -50
- package/dist/js/Avatar-Dvl223o9.js +0 -64
- package/dist/js/CheckboxButton-BMt-m5ML.js +0 -31
- package/dist/js/Initials-ZPnhHDbb.js +0 -21
- package/dist/js/MenuItem-D0A7OXWd.js +0 -63
- package/dist/js/deepHas-KHS5X1F_.js +0 -15
- package/dist/js/lib-DaWC44Fk.js +0 -12
- package/dist/js/types/components/MenuItem/components/MenuItemContent.d.ts.map +0 -1
- package/dist/js/types/components/Select/components/Option/Option.d.ts.map +0 -1
- package/dist/js/types/components/Select/components/Option/index.d.ts.map +0 -1
- package/dist/js/types/components/Select/components/Option/view.d.ts.map +0 -1
- package/dist/js/types/components/Select/components/Options/Options.d.ts +0 -7
- package/dist/js/types/components/Select/components/Options/Options.d.ts.map +0 -1
- package/dist/js/types/components/Select/components/Options/index.d.ts.map +0 -1
- /package/dist/js/types/components/MenuItem/components/{MenuItemContent.d.ts → MenuItemContent/MenuItemContent.d.ts} +0 -0
- /package/dist/js/types/components/{Select/components/Option → Option}/index.d.ts +0 -0
- /package/dist/js/types/components/{Select/components/Options → Options}/index.d.ts +0 -0
package/dist/js/List.js
CHANGED
|
@@ -1,85 +1,88 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
var
|
|
4
|
-
var ae = (s, t, e) => t in s ?
|
|
5
|
-
var
|
|
6
|
-
import { jsx as
|
|
7
|
-
import { useContext as
|
|
8
|
-
import { f as
|
|
9
|
-
import { TunnelProvider as
|
|
3
|
+
var re = Object.defineProperty;
|
|
4
|
+
var ae = (s, t, e) => t in s ? re(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
5
|
+
var r = (s, t, e) => ae(s, typeof t != "symbol" ? t + "" : t, e);
|
|
6
|
+
import { jsx as n, jsxs as h, Fragment as W } from "react/jsx-runtime";
|
|
7
|
+
import { useContext as g, createContext as le, createElement as Ct, useState as Y, useEffect as E, useRef as Lt, useId as ce, Suspense as de, cloneElement as he, isValidElement as ue } from "react";
|
|
8
|
+
import { f as Pt } from "./flowComponent--S4z-7r_.js";
|
|
9
|
+
import { TunnelProvider as At, TunnelExit as k } from "@mittwald/react-tunnel";
|
|
10
10
|
import "@react-aria/utils";
|
|
11
11
|
import "./propsContext-DzAKlmhS.js";
|
|
12
|
-
import { isShallowEqual as
|
|
13
|
-
import { getProperty as
|
|
14
|
-
import { v as
|
|
15
|
-
import
|
|
16
|
-
import { useLocalizedStringFormatter as P } from "react-aria";
|
|
12
|
+
import { isShallowEqual as me, unique as ge, difference as pe, times as fe } from "remeda";
|
|
13
|
+
import { getProperty as be } from "dot-prop";
|
|
14
|
+
import { v as f } from "./viewComponentContext-HXEKmx_D.js";
|
|
15
|
+
import { useLocalizedStringFormatter as A } from "react-aria";
|
|
17
16
|
import "@tabler/icons-react";
|
|
18
|
-
import
|
|
19
|
-
import
|
|
17
|
+
import N from "clsx";
|
|
18
|
+
import * as Mt from "react-aria-components";
|
|
19
|
+
import xt from "invariant";
|
|
20
20
|
import "@chakra-ui/live-region";
|
|
21
|
-
import { makeObservable as
|
|
21
|
+
import { makeObservable as Se, observable as Tt, computed as Ft, action as _ } from "mobx";
|
|
22
22
|
import "./context-BaYmTa0I.js";
|
|
23
|
-
import "./Action-
|
|
23
|
+
import "./Action-DfWvHbWy.js";
|
|
24
24
|
import "./getActionGroupSlot-CekBnXeM.js";
|
|
25
|
-
import "
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { B as
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import { u as
|
|
41
|
-
import {
|
|
42
|
-
import { F as
|
|
43
|
-
import { I as
|
|
44
|
-
import { a as
|
|
45
|
-
import { I as
|
|
46
|
-
import { I as
|
|
47
|
-
import { H as
|
|
48
|
-
import { R as
|
|
49
|
-
import { M as
|
|
50
|
-
import { u as
|
|
51
|
-
import { S as
|
|
52
|
-
import { S as
|
|
53
|
-
import { S as
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import { a as
|
|
60
|
-
import { A as
|
|
61
|
-
const
|
|
62
|
-
listSummary:
|
|
63
|
-
},
|
|
25
|
+
import { PropsContextProvider as Q } from "./PropsContextProvider.js";
|
|
26
|
+
import { d as U } from "./dynamic-ClpUSmEt.js";
|
|
27
|
+
import { observer as we } from "mobx-react-lite";
|
|
28
|
+
import { T as ye, a as it } from "./Tooltip-BfOJtT5a.js";
|
|
29
|
+
import { I as ve } from "./IconClose-DE2OkcZ3.js";
|
|
30
|
+
import { b as Te, I as Fe, a as Ie, c as Ve, d as Ce } from "./IconView-rHKlJeFp.js";
|
|
31
|
+
import { B as L } from "./ButtonView-9JIUBb3-.js";
|
|
32
|
+
import { D as Le } from "./Div-kX9yKy8R.js";
|
|
33
|
+
import { B as Pe } from "./Badge-COtCTH_k.js";
|
|
34
|
+
import { T as ot } from "./Text-CIEzKaxJ.js";
|
|
35
|
+
import { hash as Bt } from "object-code";
|
|
36
|
+
import H from "zod";
|
|
37
|
+
import { useReactTable as Ae, getCoreRowModel as Me, getSortedRowModel as xe, getFilteredRowModel as Be, getPaginationRowModel as De, getFacetedUniqueValues as ke } from "@tanstack/react-table";
|
|
38
|
+
import { getAsyncResource as It } from "@mittwald/react-use-promise";
|
|
39
|
+
import { u as Vt } from "./useSelector-DpU7_HMO.js";
|
|
40
|
+
import { u as Ee } from "./SettingsProvider-DRSFnfXN.js";
|
|
41
|
+
import { deepFind as Ne, deepForEach as Re } from "react-children-utilities";
|
|
42
|
+
import { F as $e } from "./Fragment-DLqk6JTD.js";
|
|
43
|
+
import { I as Ue } from "./IconContextMenu-Ddfi5ZZF.js";
|
|
44
|
+
import { a as X, C as rt } from "./ContextMenuContent-DQojalD_.js";
|
|
45
|
+
import { I as Ke } from "./IllustratedMessage-bJ4rZ5O8.js";
|
|
46
|
+
import { I as ze } from "./IconSearch-C-AbvN_g.js";
|
|
47
|
+
import { H as at } from "./Heading-CxJ8-gg1.js";
|
|
48
|
+
import { R as Oe } from "./Render-CP9hqaf1.js";
|
|
49
|
+
import { M as He } from "./MenuItem-DuSDaivo.js";
|
|
50
|
+
import { u as Ge } from "./useOnChange-C1Quwyuz.js";
|
|
51
|
+
import { S as qe } from "./SearchField-DVIJ25lZ.js";
|
|
52
|
+
import { S as We } from "./Section-CT6QbDC-.js";
|
|
53
|
+
import { S as j } from "./SkeletonText-C83Oqahi.js";
|
|
54
|
+
import { S as Dt } from "./Skeleton-Bgnxy2Df.js";
|
|
55
|
+
import { A as je } from "./Avatar-BnUeBUUe.js";
|
|
56
|
+
import { I as Je } from "./IconChevronDown-DaiVaZc2.js";
|
|
57
|
+
import { I as Ye } from "./IconChevronUp-Bt9GQ5m2.js";
|
|
58
|
+
import { ListLoaderAsyncResource as Qe, TypedListLoaderAsyncResource as Xe } from "./List/ListLoaderAsyncResource.js";
|
|
59
|
+
import { a as Ze, d as _e, b as ts, T as es, e as ss, c as is } from "./Table-BmKOh2Rs.js";
|
|
60
|
+
import { A as ns } from "./ActionGroup-Df471PRl.js";
|
|
61
|
+
const os = "flow--list--list-summary", rs = {
|
|
62
|
+
listSummary: os
|
|
63
|
+
}, _n = Pt("ListSummary", (s) => {
|
|
64
64
|
const { children: t } = s;
|
|
65
|
-
return /* @__PURE__ */
|
|
66
|
-
}),
|
|
67
|
-
view:
|
|
68
|
-
content:
|
|
69
|
-
title:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
heading:
|
|
73
|
-
text:
|
|
74
|
-
topContent:
|
|
75
|
-
action:
|
|
76
|
-
bottomContent:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
},
|
|
81
|
-
const t =
|
|
82
|
-
return /* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ n("header", { className: rs.listSummary, ...s, children: t });
|
|
66
|
+
}), as = "flow--list--list-item-view--view", ls = "flow--list--list-item-view--content", cs = "flow--list--list-item-view--title", ds = "flow--list--list-item-view--sub-title", hs = "flow--list--list-item-view--avatar", us = "flow--list--list-item-view--heading", ms = "flow--list--list-item-view--text", gs = "flow--list--list-item-view--top-content", ps = "flow--list--list-item-view--action", fs = "flow--list--list-item-view--bottom-content", bs = "flow--list--list-item-view--tile", Ss = "flow--list--list-item-view--avatar-container", ws = "flow--list--list-item-view--badge", p = {
|
|
67
|
+
view: as,
|
|
68
|
+
content: ls,
|
|
69
|
+
title: cs,
|
|
70
|
+
subTitle: ds,
|
|
71
|
+
avatar: hs,
|
|
72
|
+
heading: us,
|
|
73
|
+
text: ms,
|
|
74
|
+
topContent: gs,
|
|
75
|
+
action: ps,
|
|
76
|
+
bottomContent: fs,
|
|
77
|
+
tile: bs,
|
|
78
|
+
avatarContainer: Ss,
|
|
79
|
+
badge: ws
|
|
80
|
+
}, ys = (s) => {
|
|
81
|
+
const t = g(f).ListItemViewContent ?? Fs;
|
|
82
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
83
|
+
}, z = (s) => {
|
|
84
|
+
const t = g(f).Fragment ?? $e;
|
|
85
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
83
86
|
}, T = { "de-DE": {
|
|
84
87
|
"list.filters.clear": "Filter entfernen",
|
|
85
88
|
"list.filters.reset": "Filter zurücksetzen",
|
|
@@ -92,6 +95,7 @@ const is = "flow--list--list-summary", ns = {
|
|
|
92
95
|
"list.settings.viewMode": "Ansicht",
|
|
93
96
|
"list.settings.viewMode.list": "Liste",
|
|
94
97
|
"list.settings.viewMode.table": "Tabelle",
|
|
98
|
+
"list.settings.viewMode.tiles": "Kacheln",
|
|
95
99
|
"list.showMore": "Mehr anzeigen",
|
|
96
100
|
"list.sorting": "Sortierung",
|
|
97
101
|
"list.toggleExpandButton.collapse": "Weniger anzeigen",
|
|
@@ -108,31 +112,32 @@ const is = "flow--list--list-summary", ns = {
|
|
|
108
112
|
"list.settings.viewMode": "View",
|
|
109
113
|
"list.settings.viewMode.list": "List",
|
|
110
114
|
"list.settings.viewMode.table": "Table",
|
|
115
|
+
"list.settings.viewMode.tiles": "Tiles",
|
|
111
116
|
"list.showMore": "Show more",
|
|
112
117
|
"list.sorting": "Sorting",
|
|
113
118
|
"list.toggleExpandButton.collapse": "Show less",
|
|
114
119
|
"list.toggleExpandButton.expand": "Show more"
|
|
115
|
-
} },
|
|
116
|
-
const { className: t, children: e } = s, i =
|
|
117
|
-
return /* @__PURE__ */
|
|
118
|
-
/* @__PURE__ */
|
|
119
|
-
|
|
120
|
+
} }, vs = (s) => {
|
|
121
|
+
const { className: t, children: e } = s, i = A(T);
|
|
122
|
+
return /* @__PURE__ */ h(X, { children: [
|
|
123
|
+
/* @__PURE__ */ n(
|
|
124
|
+
L,
|
|
120
125
|
{
|
|
121
126
|
variant: "plain",
|
|
122
127
|
color: "secondary",
|
|
123
128
|
className: t,
|
|
124
129
|
"aria-label": i.format("list.options"),
|
|
125
130
|
tunnelId: null,
|
|
126
|
-
children: /* @__PURE__ */
|
|
131
|
+
children: /* @__PURE__ */ n(Ue, {})
|
|
127
132
|
}
|
|
128
133
|
),
|
|
129
134
|
e
|
|
130
135
|
] });
|
|
131
136
|
}, kt = (s) => {
|
|
132
|
-
const { children: t
|
|
137
|
+
const { children: t } = s, e = S(), i = {
|
|
133
138
|
ContextMenu: {
|
|
134
139
|
tunnelId: "button",
|
|
135
|
-
wrapWith: /* @__PURE__ */
|
|
140
|
+
wrapWith: /* @__PURE__ */ n(vs, { className: p.action })
|
|
136
141
|
},
|
|
137
142
|
Button: {
|
|
138
143
|
tunnelId: "button"
|
|
@@ -144,7 +149,7 @@ const is = "flow--list--list-summary", ns = {
|
|
|
144
149
|
}
|
|
145
150
|
},
|
|
146
151
|
Avatar: {
|
|
147
|
-
tunnelId: "
|
|
152
|
+
tunnelId: "avatar"
|
|
148
153
|
},
|
|
149
154
|
Heading: {
|
|
150
155
|
tunnelId: "title"
|
|
@@ -152,119 +157,159 @@ const is = "flow--list--list-summary", ns = {
|
|
|
152
157
|
Text: {
|
|
153
158
|
tunnelId: "text"
|
|
154
159
|
}
|
|
155
|
-
}
|
|
156
|
-
return /* @__PURE__ */
|
|
157
|
-
|
|
160
|
+
};
|
|
161
|
+
return /* @__PURE__ */ n(Q, { props: i, mergeInParentContext: !0, children: /* @__PURE__ */ n(At, { children: /* @__PURE__ */ n(
|
|
162
|
+
ys,
|
|
158
163
|
{
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
164
|
+
viewMode: e.viewMode,
|
|
165
|
+
title: /* @__PURE__ */ n(z, { children: /* @__PURE__ */ n(k, { id: "title" }) }),
|
|
166
|
+
avatar: /* @__PURE__ */ n(z, { children: /* @__PURE__ */ n(k, { id: "avatar" }) }),
|
|
167
|
+
button: /* @__PURE__ */ n(z, { children: /* @__PURE__ */ n(k, { id: "button" }) }),
|
|
168
|
+
subTitle: /* @__PURE__ */ n(z, { children: /* @__PURE__ */ n(k, { id: "text" }) }),
|
|
163
169
|
children: t
|
|
164
170
|
}
|
|
165
171
|
) }) });
|
|
166
|
-
},
|
|
167
|
-
const { children: t,
|
|
172
|
+
}, Ts = (s) => s === "top" ? p.topContent : s === "bottom" ? p.bottomContent : p.topContent, Fs = (s) => {
|
|
173
|
+
const { children: t, avatar: e, title: i, subTitle: o, button: a, bottom: l, viewMode: d } = s, c = {
|
|
174
|
+
bottom: {
|
|
175
|
+
onMouseDown: (u) => u.stopPropagation(),
|
|
176
|
+
onPointerDown: (u) => u.stopPropagation(),
|
|
177
|
+
className: p.bottomContent
|
|
178
|
+
},
|
|
179
|
+
top: {
|
|
180
|
+
className: p.topContent
|
|
181
|
+
}
|
|
182
|
+
}, m = {
|
|
168
183
|
ContextMenu: {
|
|
169
184
|
placement: "bottom end"
|
|
170
185
|
},
|
|
171
186
|
Button: {
|
|
172
|
-
className:
|
|
187
|
+
className: p.action
|
|
173
188
|
},
|
|
174
189
|
ActionGroup: {
|
|
175
|
-
className:
|
|
190
|
+
className: p.action,
|
|
176
191
|
ignoreBreakpoint: !0
|
|
177
192
|
},
|
|
178
193
|
Content: {
|
|
179
|
-
className:
|
|
194
|
+
className: U((u) => Ts(u.slot)),
|
|
195
|
+
onMouseDown: U((u) => {
|
|
196
|
+
var y;
|
|
197
|
+
return (y = c[u.slot ?? "top"]) == null ? void 0 : y.onMouseDown;
|
|
198
|
+
}),
|
|
199
|
+
onPointerDown: U(
|
|
200
|
+
(u) => {
|
|
201
|
+
var y;
|
|
202
|
+
return (y = c[u.slot ?? "top"]) == null ? void 0 : y.onPointerDown;
|
|
203
|
+
}
|
|
204
|
+
)
|
|
180
205
|
},
|
|
181
206
|
Avatar: {
|
|
182
|
-
className:
|
|
207
|
+
className: p.avatar
|
|
183
208
|
},
|
|
184
209
|
Heading: {
|
|
185
|
-
className:
|
|
186
|
-
level: 5
|
|
210
|
+
className: p.heading,
|
|
211
|
+
level: 5,
|
|
212
|
+
Badge: { className: p.badge },
|
|
213
|
+
AlertBadge: { className: p.badge }
|
|
187
214
|
},
|
|
188
215
|
Text: {
|
|
189
|
-
className:
|
|
216
|
+
className: p.text
|
|
190
217
|
},
|
|
191
218
|
Link: {
|
|
192
219
|
unstyled: !0
|
|
193
220
|
}
|
|
194
|
-
};
|
|
195
|
-
return /* @__PURE__ */
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
221
|
+
}, b = N(p.view, d === "tiles" && p.tile);
|
|
222
|
+
return /* @__PURE__ */ n(Q, { props: m, mergeInParentContext: !0, children: /* @__PURE__ */ h("div", { className: b, children: [
|
|
223
|
+
d === "list" && /* @__PURE__ */ h(W, { children: [
|
|
224
|
+
/* @__PURE__ */ h("div", { className: p.content, children: [
|
|
225
|
+
t,
|
|
226
|
+
/* @__PURE__ */ h("div", { className: p.title, children: [
|
|
227
|
+
e,
|
|
228
|
+
i,
|
|
229
|
+
/* @__PURE__ */ n("div", { className: p.subTitle, children: o })
|
|
230
|
+
] })
|
|
231
|
+
] }),
|
|
232
|
+
a,
|
|
233
|
+
l
|
|
202
234
|
] }),
|
|
203
|
-
|
|
235
|
+
d === "tiles" && /* @__PURE__ */ h(W, { children: [
|
|
236
|
+
/* @__PURE__ */ n("div", { className: p.avatarContainer, children: e }),
|
|
237
|
+
/* @__PURE__ */ h("div", { className: p.content, children: [
|
|
238
|
+
/* @__PURE__ */ h("div", { className: p.title, children: [
|
|
239
|
+
i,
|
|
240
|
+
/* @__PURE__ */ n("div", { className: p.subTitle, children: o })
|
|
241
|
+
] }),
|
|
242
|
+
a,
|
|
243
|
+
t,
|
|
244
|
+
l
|
|
245
|
+
] })
|
|
246
|
+
] })
|
|
204
247
|
] }) });
|
|
205
|
-
},
|
|
206
|
-
const s =
|
|
207
|
-
return /* @__PURE__ */
|
|
208
|
-
/* @__PURE__ */
|
|
209
|
-
/* @__PURE__ */
|
|
210
|
-
/* @__PURE__ */
|
|
248
|
+
}, lt = () => {
|
|
249
|
+
const s = A(T);
|
|
250
|
+
return /* @__PURE__ */ h(Ke, { children: [
|
|
251
|
+
/* @__PURE__ */ n(ze, {}),
|
|
252
|
+
/* @__PURE__ */ n(at, { children: s.format("list.noResult.heading") }),
|
|
253
|
+
/* @__PURE__ */ n(ot, { children: s.format("list.noResult.text") })
|
|
211
254
|
] });
|
|
212
|
-
},
|
|
213
|
-
item:
|
|
214
|
-
isSelected:
|
|
215
|
-
hasAction:
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
255
|
+
}, Is = (s) => /* @__PURE__ */ n(Mt.GridList, { ...s, renderEmptyState: () => /* @__PURE__ */ n(lt, {}) }), Vs = "flow--list--items--item", Cs = "flow--list--items--item--is-selected", Ls = "flow--list--items--item--has-action", Ps = "flow--list--items--item--tile", $ = {
|
|
256
|
+
item: Vs,
|
|
257
|
+
isSelected: Cs,
|
|
258
|
+
hasAction: Ls,
|
|
259
|
+
tile: Ps
|
|
260
|
+
}, As = (s) => {
|
|
261
|
+
const { hasAction: t, isTile: e, ...i } = s;
|
|
262
|
+
return /* @__PURE__ */ n(
|
|
263
|
+
Mt.GridListItem,
|
|
220
264
|
{
|
|
221
|
-
...
|
|
222
|
-
className: (
|
|
223
|
-
|
|
224
|
-
t &&
|
|
225
|
-
|
|
265
|
+
...i,
|
|
266
|
+
className: (o) => N(
|
|
267
|
+
$.item,
|
|
268
|
+
t && $.hasAction,
|
|
269
|
+
e && $.tile,
|
|
270
|
+
o.isSelected && $.isSelected
|
|
226
271
|
)
|
|
227
272
|
}
|
|
228
273
|
);
|
|
229
|
-
}, Et = le({}),
|
|
274
|
+
}, Et = le({}), S = () => g(Et).list, Ms = () => S().loader.getLoaderInvocationHooks().map((t, e) => /* @__PURE__ */ n(Oe, { children: () => {
|
|
230
275
|
t();
|
|
231
|
-
} }, e)),
|
|
232
|
-
const t =
|
|
233
|
-
return /* @__PURE__ */
|
|
234
|
-
},
|
|
276
|
+
} }, e)), ct = (s) => {
|
|
277
|
+
const t = g(f).MenuItem ?? He;
|
|
278
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
279
|
+
}, xs = (s) => {
|
|
235
280
|
const { sorting: t } = s;
|
|
236
|
-
return /* @__PURE__ */
|
|
237
|
-
},
|
|
281
|
+
return /* @__PURE__ */ n(ct, { id: t.id, children: t.name });
|
|
282
|
+
}, G = (s) => {
|
|
238
283
|
const { children: t, locales: e, variables: i } = s;
|
|
239
|
-
return
|
|
240
|
-
},
|
|
241
|
-
const t =
|
|
242
|
-
return /* @__PURE__ */
|
|
243
|
-
},
|
|
244
|
-
const s =
|
|
284
|
+
return A(e).format(t, i);
|
|
285
|
+
}, K = (s) => {
|
|
286
|
+
const t = g(f).Text ?? ot;
|
|
287
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
288
|
+
}, Bs = () => {
|
|
289
|
+
const s = S(), t = s.visibleSorting.map((o) => /* @__PURE__ */ n(xs, { sorting: o }, o.id));
|
|
245
290
|
if (t.length === 0)
|
|
246
291
|
return null;
|
|
247
|
-
const e = s.visibleSorting.find((
|
|
248
|
-
return /* @__PURE__ */
|
|
249
|
-
/* @__PURE__ */
|
|
292
|
+
const e = s.visibleSorting.find((o) => o.isSorted()), i = /* @__PURE__ */ n(K, { children: e ? /* @__PURE__ */ n(W, { children: e.name ?? e.property }) : /* @__PURE__ */ n(G, { locales: T, children: "list.sorting" }) });
|
|
293
|
+
return /* @__PURE__ */ h(X, { children: [
|
|
294
|
+
/* @__PURE__ */ h(L, { variant: "outline", color: "secondary", children: [
|
|
250
295
|
i,
|
|
251
|
-
/* @__PURE__ */
|
|
296
|
+
/* @__PURE__ */ n(Te, {})
|
|
252
297
|
] }),
|
|
253
|
-
/* @__PURE__ */
|
|
254
|
-
|
|
298
|
+
/* @__PURE__ */ n(
|
|
299
|
+
rt,
|
|
255
300
|
{
|
|
256
301
|
selectionMode: "single",
|
|
257
302
|
selectedKeys: e ? [e.id] : [],
|
|
258
|
-
onAction: (
|
|
259
|
-
s.getSorting(String(
|
|
303
|
+
onAction: (o) => {
|
|
304
|
+
s.getSorting(String(o)).enable();
|
|
260
305
|
},
|
|
261
306
|
children: t
|
|
262
307
|
}
|
|
263
308
|
)
|
|
264
309
|
] });
|
|
265
|
-
},
|
|
266
|
-
const { filter: t } = s, { values: e, mode: i, name:
|
|
267
|
-
|
|
310
|
+
}, Ds = (s) => {
|
|
311
|
+
const { filter: t } = s, { values: e, mode: i, name: o, property: a } = t, l = e.map((c) => /* @__PURE__ */ n(
|
|
312
|
+
ct,
|
|
268
313
|
{
|
|
269
314
|
id: c.id,
|
|
270
315
|
onAction: () => {
|
|
@@ -274,13 +319,13 @@ const is = "flow--list--list-summary", ns = {
|
|
|
274
319
|
},
|
|
275
320
|
c.id
|
|
276
321
|
)), d = e.filter((c) => c.isActive).map((c) => c.id);
|
|
277
|
-
return /* @__PURE__ */
|
|
278
|
-
/* @__PURE__ */
|
|
279
|
-
/* @__PURE__ */
|
|
280
|
-
/* @__PURE__ */
|
|
322
|
+
return /* @__PURE__ */ h(X, { children: [
|
|
323
|
+
/* @__PURE__ */ h(L, { variant: "outline", color: "secondary", children: [
|
|
324
|
+
/* @__PURE__ */ n(K, { children: o ?? a }),
|
|
325
|
+
/* @__PURE__ */ n(Fe, {})
|
|
281
326
|
] }),
|
|
282
|
-
/* @__PURE__ */
|
|
283
|
-
|
|
327
|
+
/* @__PURE__ */ n(
|
|
328
|
+
rt,
|
|
284
329
|
{
|
|
285
330
|
selectionMode: i === "one" ? "single" : "multiple",
|
|
286
331
|
selectedKeys: d,
|
|
@@ -288,197 +333,199 @@ const is = "flow--list--list-summary", ns = {
|
|
|
288
333
|
}
|
|
289
334
|
)
|
|
290
335
|
] });
|
|
291
|
-
},
|
|
292
|
-
header:
|
|
293
|
-
pickerListAndSearch:
|
|
294
|
-
pickerList:
|
|
295
|
-
searchAndActions:
|
|
296
|
-
searchField:
|
|
297
|
-
},
|
|
298
|
-
activeFilters:
|
|
299
|
-
clearButton:
|
|
300
|
-
},
|
|
301
|
-
const t =
|
|
302
|
-
return /* @__PURE__ */
|
|
303
|
-
},
|
|
304
|
-
const t =
|
|
305
|
-
return /* @__PURE__ */
|
|
306
|
-
},
|
|
307
|
-
const t =
|
|
308
|
-
return /* @__PURE__ */
|
|
309
|
-
},
|
|
310
|
-
const t =
|
|
311
|
-
return /* @__PURE__ */
|
|
312
|
-
},
|
|
313
|
-
const s =
|
|
314
|
-
/* @__PURE__ */
|
|
315
|
-
/* @__PURE__ */
|
|
316
|
-
|
|
336
|
+
}, ks = "flow--list--header", Es = "flow--list--header--picker-list-and-search", Ns = "flow--list--header--picker-list", Rs = "flow--list--header--search-and-actions", $s = "flow--list--header--search-field", D = {
|
|
337
|
+
header: ks,
|
|
338
|
+
pickerListAndSearch: Es,
|
|
339
|
+
pickerList: Ns,
|
|
340
|
+
searchAndActions: Rs,
|
|
341
|
+
searchField: $s
|
|
342
|
+
}, Us = "flow--list--header--active-filters", Ks = "flow--list--header--active-filters--clear-button", zs = {
|
|
343
|
+
activeFilters: Us,
|
|
344
|
+
clearButton: Ks
|
|
345
|
+
}, tt = (s) => {
|
|
346
|
+
const t = g(f).Tooltip ?? ye;
|
|
347
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
348
|
+
}, V = (s) => {
|
|
349
|
+
const t = g(f).Div ?? Le;
|
|
350
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
351
|
+
}, Os = (s) => {
|
|
352
|
+
const t = g(f).Badge ?? Pe;
|
|
353
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
354
|
+
}, Hs = (s) => {
|
|
355
|
+
const t = g(f).TooltipTrigger ?? it;
|
|
356
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
357
|
+
}, Gs = we(() => {
|
|
358
|
+
const s = S(), t = A(T), i = s.filters.flatMap((c) => c.values).filter((c) => c.isActive).map((c) => /* @__PURE__ */ n(Os, { onClose: () => c.deactivate(), children: /* @__PURE__ */ n(K, { children: c.render() }) }, c.id)), o = s.filters.filter((c) => c.hasChanged()).length > 0, a = s.supportsSettingsStorage && o && /* @__PURE__ */ h(Hs, { children: [
|
|
359
|
+
/* @__PURE__ */ n(tt, { children: /* @__PURE__ */ n(G, { locales: T, children: "list.filters.store" }) }),
|
|
360
|
+
/* @__PURE__ */ n(
|
|
361
|
+
L,
|
|
317
362
|
{
|
|
318
363
|
size: "s",
|
|
319
364
|
variant: "plain",
|
|
320
365
|
color: "secondary",
|
|
321
366
|
onPress: () => s.storeFilterDefaultSettings(),
|
|
322
367
|
"aria-label": t.format("list.filters.store"),
|
|
323
|
-
children: /* @__PURE__ */
|
|
368
|
+
children: /* @__PURE__ */ n(Ie, {})
|
|
324
369
|
}
|
|
325
370
|
)
|
|
326
|
-
] }), l =
|
|
327
|
-
/* @__PURE__ */
|
|
328
|
-
/* @__PURE__ */
|
|
329
|
-
|
|
371
|
+
] }), l = o ? /* @__PURE__ */ h(it, { children: [
|
|
372
|
+
/* @__PURE__ */ n(tt, { children: /* @__PURE__ */ n(G, { locales: T, children: "list.filters.reset" }) }),
|
|
373
|
+
/* @__PURE__ */ n(
|
|
374
|
+
L,
|
|
330
375
|
{
|
|
331
376
|
size: "s",
|
|
332
377
|
variant: "plain",
|
|
333
378
|
color: "secondary",
|
|
334
379
|
onPress: () => s.resetFilters(),
|
|
335
380
|
"aria-label": t.format("list.filters.reset"),
|
|
336
|
-
children: /* @__PURE__ */
|
|
381
|
+
children: /* @__PURE__ */ n(Ve, {})
|
|
337
382
|
}
|
|
338
383
|
)
|
|
339
|
-
] }) : void 0, d = i.length > 0 ? /* @__PURE__ */
|
|
340
|
-
/* @__PURE__ */
|
|
341
|
-
/* @__PURE__ */
|
|
342
|
-
|
|
384
|
+
] }) : void 0, d = i.length > 0 ? /* @__PURE__ */ h(it, { children: [
|
|
385
|
+
/* @__PURE__ */ n(tt, { children: /* @__PURE__ */ n(G, { locales: T, children: "list.filters.clear" }) }),
|
|
386
|
+
/* @__PURE__ */ n(
|
|
387
|
+
L,
|
|
343
388
|
{
|
|
344
389
|
size: "s",
|
|
345
390
|
variant: "plain",
|
|
346
391
|
color: "secondary",
|
|
347
392
|
onPress: () => s.clearFilters(),
|
|
348
|
-
children: /* @__PURE__ */
|
|
393
|
+
children: /* @__PURE__ */ n(ve, {})
|
|
349
394
|
}
|
|
350
395
|
)
|
|
351
396
|
] }) : void 0;
|
|
352
|
-
return i.length === 0 && !a && !l ? null : /* @__PURE__ */
|
|
397
|
+
return i.length === 0 && !a && !l ? null : /* @__PURE__ */ h(V, { className: zs.activeFilters, children: [
|
|
353
398
|
i,
|
|
354
399
|
a,
|
|
355
400
|
l,
|
|
356
401
|
d
|
|
357
402
|
] });
|
|
358
|
-
}),
|
|
359
|
-
const t =
|
|
360
|
-
return /* @__PURE__ */
|
|
361
|
-
},
|
|
362
|
-
const { className: t, onChange: e, value: i, autoSubmit:
|
|
403
|
+
}), qs = (s) => {
|
|
404
|
+
const t = g(f).SearchField ?? qe;
|
|
405
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
406
|
+
}, Ws = 800, js = (s) => {
|
|
407
|
+
const { className: t, onChange: e, value: i, autoSubmit: o, ...a } = s, [l, d] = Y(i ?? ""), c = () => {
|
|
363
408
|
l.trim() === "" ? e(void 0) : e(l);
|
|
364
409
|
};
|
|
365
|
-
|
|
366
|
-
if (
|
|
367
|
-
const
|
|
368
|
-
return () => clearTimeout(
|
|
410
|
+
E(() => {
|
|
411
|
+
if (o) {
|
|
412
|
+
const u = setTimeout(() => c(), Ws);
|
|
413
|
+
return () => clearTimeout(u);
|
|
369
414
|
}
|
|
370
|
-
}, [l,
|
|
415
|
+
}, [l, o]), Ge(i, () => {
|
|
371
416
|
d(i ?? "");
|
|
372
417
|
}, [l]);
|
|
373
|
-
const
|
|
418
|
+
const m = () => {
|
|
374
419
|
e(void 0), d("");
|
|
375
420
|
};
|
|
376
|
-
return /* @__PURE__ */
|
|
377
|
-
|
|
421
|
+
return /* @__PURE__ */ n(
|
|
422
|
+
qs,
|
|
378
423
|
{
|
|
379
424
|
className: t,
|
|
380
425
|
value: l,
|
|
381
|
-
onKeyUp: (
|
|
382
|
-
|
|
426
|
+
onKeyUp: (u) => {
|
|
427
|
+
u.key === "Enter" ? c() : u.key === "Escape" && m();
|
|
383
428
|
},
|
|
384
|
-
onChange: (
|
|
385
|
-
onClear:
|
|
429
|
+
onChange: (u) => d(u),
|
|
430
|
+
onClear: m,
|
|
386
431
|
...a
|
|
387
432
|
}
|
|
388
433
|
);
|
|
389
|
-
},
|
|
390
|
-
const { className: t, search: e } = s, i = e.render ??
|
|
391
|
-
return
|
|
434
|
+
}, Js = (s) => {
|
|
435
|
+
const { className: t, search: e } = s, i = e.render ?? js;
|
|
436
|
+
return Ct(i, {
|
|
392
437
|
className: t,
|
|
393
438
|
value: e.value,
|
|
394
439
|
onChange: e.setValue.bind(e),
|
|
395
440
|
...e.textFieldProps
|
|
396
441
|
});
|
|
397
|
-
},
|
|
398
|
-
const t =
|
|
399
|
-
return /* @__PURE__ */
|
|
400
|
-
},
|
|
401
|
-
const t =
|
|
402
|
-
return /* @__PURE__ */
|
|
403
|
-
},
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
442
|
+
}, Ys = (s) => {
|
|
443
|
+
const t = g(f).Section ?? We;
|
|
444
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
445
|
+
}, Qs = (s) => {
|
|
446
|
+
const t = g(f).Heading ?? at;
|
|
447
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
448
|
+
}, Xs = () => {
|
|
449
|
+
var o, a;
|
|
450
|
+
const s = A(T), t = S(), e = t.viewMode, i = [];
|
|
451
|
+
return (o = t.itemView) != null && o.showList && i.push("list"), t.table && i.push("table"), (a = t.itemView) != null && a.showTiles && i.push("tiles"), i.length <= 1 ? null : /* @__PURE__ */ h(X, { children: [
|
|
452
|
+
/* @__PURE__ */ h(
|
|
453
|
+
L,
|
|
408
454
|
{
|
|
409
455
|
variant: "outline",
|
|
410
456
|
color: "secondary",
|
|
411
457
|
"aria-label": s.format("list.settings"),
|
|
412
458
|
children: [
|
|
413
|
-
/* @__PURE__ */
|
|
414
|
-
/* @__PURE__ */
|
|
459
|
+
/* @__PURE__ */ n(K, { children: s.format(`list.settings.viewMode.${e}`) }),
|
|
460
|
+
/* @__PURE__ */ n(Ce, {})
|
|
415
461
|
]
|
|
416
462
|
}
|
|
417
463
|
),
|
|
418
|
-
/* @__PURE__ */
|
|
419
|
-
/* @__PURE__ */
|
|
420
|
-
i.map((
|
|
421
|
-
|
|
464
|
+
/* @__PURE__ */ n(rt, { selectionMode: "single", selectedKeys: [e], children: /* @__PURE__ */ h(Ys, { children: [
|
|
465
|
+
/* @__PURE__ */ n(Qs, { children: s.format("list.settings.viewMode") }),
|
|
466
|
+
i.map((l) => /* @__PURE__ */ n(
|
|
467
|
+
ct,
|
|
422
468
|
{
|
|
423
|
-
id:
|
|
469
|
+
id: l,
|
|
424
470
|
onAction: () => {
|
|
425
|
-
t.setViewMode(
|
|
471
|
+
t.setViewMode(l);
|
|
426
472
|
},
|
|
427
|
-
children: s.format(`list.settings.viewMode.${
|
|
473
|
+
children: s.format(`list.settings.viewMode.${l}`)
|
|
428
474
|
},
|
|
429
|
-
|
|
475
|
+
l
|
|
430
476
|
))
|
|
431
477
|
] }) })
|
|
432
478
|
] });
|
|
433
|
-
},
|
|
434
|
-
|
|
435
|
-
|
|
479
|
+
}, Zs = (s) => {
|
|
480
|
+
var a, l;
|
|
481
|
+
const { className: t, hasActionGroup: e } = s, i = S();
|
|
482
|
+
if (i.filters.length === 0 && i.visibleSorting.length === 0 && !i.search && !i.table && !((a = i.itemView) != null && a.showTiles && ((l = i.itemView) != null && l.showList)) && !e)
|
|
436
483
|
return null;
|
|
437
|
-
const
|
|
438
|
-
return /* @__PURE__ */
|
|
439
|
-
/* @__PURE__ */
|
|
440
|
-
/* @__PURE__ */
|
|
441
|
-
/* @__PURE__ */
|
|
442
|
-
/* @__PURE__ */
|
|
443
|
-
|
|
484
|
+
const o = i.filters.map((d) => /* @__PURE__ */ n(Ds, { filter: d }, d.property));
|
|
485
|
+
return /* @__PURE__ */ h(V, { className: N(t, D.header), children: [
|
|
486
|
+
/* @__PURE__ */ h(V, { className: D.pickerListAndSearch, children: [
|
|
487
|
+
/* @__PURE__ */ h(V, { className: D.pickerList, children: [
|
|
488
|
+
/* @__PURE__ */ n(Xs, {}),
|
|
489
|
+
/* @__PURE__ */ n(Bs, {}),
|
|
490
|
+
o
|
|
444
491
|
] }),
|
|
445
|
-
/* @__PURE__ */
|
|
446
|
-
i.search && /* @__PURE__ */
|
|
447
|
-
/* @__PURE__ */
|
|
492
|
+
/* @__PURE__ */ h(V, { className: D.searchAndActions, children: [
|
|
493
|
+
i.search && /* @__PURE__ */ n(Js, { className: D.searchField, search: i.search }),
|
|
494
|
+
/* @__PURE__ */ n(k, { id: "actions" })
|
|
448
495
|
] })
|
|
449
496
|
] }),
|
|
450
|
-
/* @__PURE__ */
|
|
497
|
+
/* @__PURE__ */ n(Gs, {})
|
|
451
498
|
] });
|
|
452
|
-
},
|
|
453
|
-
list:
|
|
499
|
+
}, _s = "flow--list", ti = {
|
|
500
|
+
list: _s
|
|
454
501
|
};
|
|
455
|
-
let
|
|
502
|
+
let ei = class Nt {
|
|
456
503
|
constructor(t, e, i) {
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
504
|
+
r(this, "id");
|
|
505
|
+
r(this, "data");
|
|
506
|
+
r(this, "collection");
|
|
460
507
|
this.collection = t, this.id = e, this.data = i;
|
|
461
508
|
}
|
|
462
509
|
static fromRow(t, e) {
|
|
463
|
-
return new
|
|
510
|
+
return new Nt(t, e.id, e.original);
|
|
464
511
|
}
|
|
465
512
|
};
|
|
466
|
-
class
|
|
513
|
+
class si {
|
|
467
514
|
constructor(t) {
|
|
468
|
-
|
|
515
|
+
r(this, "list");
|
|
469
516
|
this.list = t;
|
|
470
517
|
}
|
|
471
518
|
get entries() {
|
|
472
|
-
return this.list.reactTable.table.getRowModel().rows.map((t) =>
|
|
519
|
+
return this.list.reactTable.table.getRowModel().rows.map((t) => ei.fromRow(this, t));
|
|
473
520
|
}
|
|
474
521
|
}
|
|
475
|
-
class
|
|
522
|
+
class ii {
|
|
476
523
|
constructor(t, e = {}) {
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
var
|
|
524
|
+
r(this, "batchSize");
|
|
525
|
+
r(this, "list");
|
|
526
|
+
var o;
|
|
480
527
|
const { batchSize: i = 20 } = e;
|
|
481
|
-
this.list = t, this.batchSize = i, t.filters.forEach((a) => a.onFilterUpdated(() => this.reset())), (
|
|
528
|
+
this.list = t, this.batchSize = i, t.filters.forEach((a) => a.onFilterUpdated(() => this.reset())), (o = t.search) == null || o.onUpdated(() => this.reset());
|
|
482
529
|
}
|
|
483
530
|
get reactTable() {
|
|
484
531
|
return this.list.reactTable.table;
|
|
@@ -519,22 +566,22 @@ class Qs {
|
|
|
519
566
|
}
|
|
520
567
|
}
|
|
521
568
|
}
|
|
522
|
-
const
|
|
523
|
-
class
|
|
569
|
+
const ni = "$";
|
|
570
|
+
class P {
|
|
524
571
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
525
572
|
constructor(t, e) {
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
573
|
+
r(this, "filter");
|
|
574
|
+
r(this, "value");
|
|
575
|
+
r(this, "id");
|
|
529
576
|
var i;
|
|
530
|
-
this.filter = t, typeof e == "string" && e.startsWith("FilterValueId@@") ? (this.value = (i = t.values.find((
|
|
577
|
+
this.filter = t, typeof e == "string" && e.startsWith("FilterValueId@@") ? (this.value = (i = t.values.find((o) => o.id === e)) == null ? void 0 : i.value, this.id = e) : (this.value = e, this.id = `FilterValueId@@${this.filter.property}@@${Bt(this.value)}`);
|
|
531
578
|
}
|
|
532
579
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
533
580
|
static create(t, e) {
|
|
534
|
-
return e instanceof
|
|
581
|
+
return e instanceof P ? e : new P(t, e);
|
|
535
582
|
}
|
|
536
583
|
equals(t) {
|
|
537
|
-
return
|
|
584
|
+
return me(this.value, t.value);
|
|
538
585
|
}
|
|
539
586
|
get isActive() {
|
|
540
587
|
return this.filter.isValueActive(this);
|
|
@@ -549,21 +596,21 @@ class L {
|
|
|
549
596
|
this.filter.deactivateValue(this);
|
|
550
597
|
}
|
|
551
598
|
}
|
|
552
|
-
const
|
|
553
|
-
class
|
|
599
|
+
const et = (s) => Array.isArray(s) ? s : [s], oi = (s, t) => s === t, ri = (s) => String(s);
|
|
600
|
+
class q {
|
|
554
601
|
constructor(t, e) {
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
602
|
+
r(this, "_values");
|
|
603
|
+
r(this, "_valuesFromTableState");
|
|
604
|
+
r(this, "list");
|
|
605
|
+
r(this, "property");
|
|
606
|
+
r(this, "mode");
|
|
607
|
+
r(this, "matcher");
|
|
608
|
+
r(this, "renderItem");
|
|
609
|
+
r(this, "name");
|
|
610
|
+
r(this, "onFilterUpdateCallbacks", /* @__PURE__ */ new Set());
|
|
611
|
+
r(this, "defaultSelectedValues");
|
|
565
612
|
var i;
|
|
566
|
-
this.list = t, this.property = e.property, this.mode = e.mode ?? "one", this._values = (i = e.values) == null ? void 0 : i.map((
|
|
613
|
+
this.list = t, this.property = e.property, this.mode = e.mode ?? "one", this._values = (i = e.values) == null ? void 0 : i.map((o) => P.create(this, o)), this.matcher = e.matcher ?? oi, this.renderItem = e.renderItem ?? ri, this.name = e.name, this.defaultSelectedValues = e.defaultSelected;
|
|
567
614
|
}
|
|
568
615
|
getStoredSelectedIds() {
|
|
569
616
|
var t;
|
|
@@ -584,21 +631,21 @@ class H {
|
|
|
584
631
|
}
|
|
585
632
|
getReactTableFilterFn() {
|
|
586
633
|
return (t, e, i) => {
|
|
587
|
-
const
|
|
634
|
+
const o = this.property, a = o.startsWith(ni) ? t.original : be(t.original, o);
|
|
588
635
|
return this.checkFilterMatches(a, i);
|
|
589
636
|
};
|
|
590
637
|
}
|
|
591
638
|
checkFilterMatches(t, e) {
|
|
592
639
|
if (e === null)
|
|
593
640
|
return !0;
|
|
594
|
-
const i = (a) => this.matcher(a.value, t),
|
|
641
|
+
const i = (a) => this.matcher(a.value, t), o = (a) => P.create(this, a);
|
|
595
642
|
if (this.mode === "all")
|
|
596
|
-
return
|
|
643
|
+
return et(e).map(o).every(i);
|
|
597
644
|
if (this.mode === "some") {
|
|
598
|
-
const a =
|
|
599
|
-
return a.length === 0 || a.map(
|
|
645
|
+
const a = et(e);
|
|
646
|
+
return a.length === 0 || a.map(o).some(i);
|
|
600
647
|
} else if (this.mode === "one")
|
|
601
|
-
return i(
|
|
648
|
+
return i(o(e));
|
|
602
649
|
throw new Error(`Unknown filter mode '${this.mode}'`);
|
|
603
650
|
}
|
|
604
651
|
getTableColumnFilter() {
|
|
@@ -612,9 +659,9 @@ class H {
|
|
|
612
659
|
return ((t = this.getTableColumnFilter()) == null ? void 0 : t.value) ?? null;
|
|
613
660
|
}
|
|
614
661
|
getValuesFromTableState() {
|
|
615
|
-
return
|
|
662
|
+
return ge(
|
|
616
663
|
Array.from(this.getTableColumn().getFacetedUniqueValues().keys()).flatMap((t) => t).filter((t) => t != null)
|
|
617
|
-
).map((t) =>
|
|
664
|
+
).map((t) => P.create(this, t));
|
|
618
665
|
}
|
|
619
666
|
checkIfValueIsUnknown(t) {
|
|
620
667
|
return !this.values.some((i) => i.id === t.id);
|
|
@@ -632,7 +679,7 @@ class H {
|
|
|
632
679
|
}
|
|
633
680
|
getArrayValue() {
|
|
634
681
|
const t = this.getValue();
|
|
635
|
-
return t === null ? [] :
|
|
682
|
+
return t === null ? [] : et(t).map((e) => P.create(this, e));
|
|
636
683
|
}
|
|
637
684
|
isValueActive(t) {
|
|
638
685
|
return this.getArrayValue().some((e) => e.equals(t));
|
|
@@ -643,19 +690,19 @@ class H {
|
|
|
643
690
|
deactivateValue(t) {
|
|
644
691
|
const e = this.getArrayValue();
|
|
645
692
|
let i;
|
|
646
|
-
this.mode === "all" || this.mode === "some" ? i = e.filter((
|
|
693
|
+
this.mode === "all" || this.mode === "some" ? i = e.filter((o) => !o.equals(t)) : i = null, this.list.reactTable.getTableColumn(this.property).setFilterValue(i), this.onFilterUpdateCallbacks.forEach((o) => o());
|
|
647
694
|
}
|
|
648
695
|
hasChanged() {
|
|
649
696
|
var i;
|
|
650
|
-
const t = this.getArrayValue().map((
|
|
651
|
-
return t.length !== e.length ||
|
|
697
|
+
const t = this.getArrayValue().map((o) => o.value), e = ((i = this.getInitialFilterValues()) == null ? void 0 : i.map((o) => o.value)) ?? [];
|
|
698
|
+
return t.length !== e.length || pe(t, e).length > 0;
|
|
652
699
|
}
|
|
653
700
|
getInitialValues() {
|
|
654
701
|
return this.getStoredSelectedIds() ?? this.defaultSelectedValues;
|
|
655
702
|
}
|
|
656
703
|
getInitialFilterValues() {
|
|
657
704
|
var t;
|
|
658
|
-
return (t = this.getInitialValues()) == null ? void 0 : t.map((e) =>
|
|
705
|
+
return (t = this.getInitialValues()) == null ? void 0 : t.map((e) => P.create(this, e));
|
|
659
706
|
}
|
|
660
707
|
resetValues() {
|
|
661
708
|
let t;
|
|
@@ -668,20 +715,20 @@ class H {
|
|
|
668
715
|
toggleValue(t) {
|
|
669
716
|
const e = this.getArrayValue();
|
|
670
717
|
let i;
|
|
671
|
-
this.mode === "all" || this.mode === "some" ? t.isActive ? i = e.filter((
|
|
718
|
+
this.mode === "all" || this.mode === "some" ? t.isActive ? i = e.filter((o) => !o.equals(t)) : i = [...e, t] : i = t.isActive ? null : t, this.list.reactTable.getTableColumn(this.property).setFilterValue(i), this.onFilterUpdateCallbacks.forEach((o) => o());
|
|
672
719
|
}
|
|
673
720
|
onFilterUpdated(t) {
|
|
674
721
|
this.onFilterUpdateCallbacks.add(t);
|
|
675
722
|
}
|
|
676
723
|
}
|
|
677
|
-
|
|
678
|
-
class
|
|
724
|
+
r(q, "settingsStorageSchema", H.record(H.array(H.string())).optional());
|
|
725
|
+
class ai {
|
|
679
726
|
constructor(t, e) {
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
727
|
+
r(this, "list");
|
|
728
|
+
r(this, "property");
|
|
729
|
+
r(this, "name");
|
|
730
|
+
r(this, "direction");
|
|
731
|
+
r(this, "defaultEnabled");
|
|
685
732
|
this.list = t, this.property = e.property, this.name = e.name, this.direction = e.direction ?? "asc", this.defaultEnabled = e.defaultEnabled ?? !1;
|
|
686
733
|
}
|
|
687
734
|
updateTableColumnDef(t) {
|
|
@@ -709,46 +756,53 @@ class ti {
|
|
|
709
756
|
return `${this.getTableColumn().id}:${this.direction}`;
|
|
710
757
|
}
|
|
711
758
|
}
|
|
712
|
-
class
|
|
759
|
+
class dt {
|
|
713
760
|
constructor(t, e, i = {}) {
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
761
|
+
r(this, "list");
|
|
762
|
+
r(this, "table");
|
|
763
|
+
r(this, "sortingState");
|
|
764
|
+
r(this, "updateSortingState");
|
|
718
765
|
this.list = t;
|
|
719
|
-
const
|
|
766
|
+
const o = this.list.sorting.filter(
|
|
720
767
|
(d) => d.defaultEnabled !== !1
|
|
721
|
-
), [a, l] =
|
|
722
|
-
|
|
768
|
+
), [a, l] = Y(
|
|
769
|
+
o.map((d) => d.getReactTableColumnSort())
|
|
723
770
|
);
|
|
724
771
|
this.sortingState = a, this.updateSortingState = l, this.table = this.useReactTable(e, i);
|
|
725
772
|
}
|
|
773
|
+
get searchString() {
|
|
774
|
+
return this.table.getState().globalFilter;
|
|
775
|
+
}
|
|
726
776
|
static useNew(t, e, i = {}) {
|
|
727
|
-
return new
|
|
777
|
+
return new dt(t, e, i);
|
|
778
|
+
}
|
|
779
|
+
getTableColumn(t) {
|
|
780
|
+
const e = this.table.getColumn(t);
|
|
781
|
+
return xt(!!e, `Column #${t} is not defined`), e;
|
|
728
782
|
}
|
|
729
783
|
useReactTable(t, e = {}) {
|
|
730
784
|
var l;
|
|
731
|
-
const i = this.list.loader.useData(),
|
|
785
|
+
const i = this.list.loader.useData(), o = {
|
|
732
786
|
pagination: {
|
|
733
787
|
pageSize: this.list.batches.batchSize
|
|
734
788
|
},
|
|
735
789
|
columnFilters: []
|
|
736
790
|
};
|
|
737
791
|
for (const d of this.list.filters)
|
|
738
|
-
d.updateInitialState(
|
|
739
|
-
(l = this.list.search) == null || l.updateInitialState(
|
|
740
|
-
const a =
|
|
792
|
+
d.updateInitialState(o);
|
|
793
|
+
(l = this.list.search) == null || l.updateInitialState(o);
|
|
794
|
+
const a = Ae({
|
|
741
795
|
data: i,
|
|
742
796
|
state: {
|
|
743
797
|
sorting: this.sortingState
|
|
744
798
|
},
|
|
745
799
|
getRowId: this.list.getItemId,
|
|
746
|
-
initialState:
|
|
800
|
+
initialState: o,
|
|
747
801
|
columns: this.getTableColumnDefs(),
|
|
748
|
-
getCoreRowModel:
|
|
802
|
+
getCoreRowModel: Me(),
|
|
749
803
|
getSortedRowModel: xe(),
|
|
750
804
|
getFilteredRowModel: Be(),
|
|
751
|
-
getPaginationRowModel:
|
|
805
|
+
getPaginationRowModel: De(),
|
|
752
806
|
getFacetedUniqueValues: ke(),
|
|
753
807
|
onSortingChange: (d) => {
|
|
754
808
|
this.handleSortingStateUpdate(d);
|
|
@@ -756,33 +810,27 @@ class rt {
|
|
|
756
810
|
globalFilterFn: "auto",
|
|
757
811
|
...e
|
|
758
812
|
});
|
|
759
|
-
return
|
|
813
|
+
return E(() => {
|
|
760
814
|
t && t(this.list);
|
|
761
815
|
}, [this.list, t, a]), a;
|
|
762
816
|
}
|
|
763
817
|
handleSortingStateUpdate(t) {
|
|
764
818
|
const e = typeof t == "function" ? t(this.sortingState) : t, i = this.list.sorting.filter(
|
|
765
|
-
(
|
|
766
|
-
).map((
|
|
819
|
+
(o) => o.defaultEnabled === "hidden" && !e.some((a) => a.id === o.property)
|
|
820
|
+
).map((o) => o.getReactTableColumnSort());
|
|
767
821
|
this.updateSortingState([...i, ...e]);
|
|
768
822
|
}
|
|
769
|
-
get searchString() {
|
|
770
|
-
return this.table.getState().globalFilter;
|
|
771
|
-
}
|
|
772
|
-
getTableColumn(t) {
|
|
773
|
-
const e = this.table.getColumn(t);
|
|
774
|
-
return Pt(!!e, `Column #${t} is not defined`), e;
|
|
775
|
-
}
|
|
776
823
|
getTableColumnDefs() {
|
|
777
824
|
const t = /* @__PURE__ */ new Map(), e = (i) => {
|
|
778
|
-
const
|
|
779
|
-
if (
|
|
780
|
-
return
|
|
825
|
+
const o = t.get(i);
|
|
826
|
+
if (o)
|
|
827
|
+
return o;
|
|
781
828
|
const a = {
|
|
782
829
|
id: i,
|
|
783
830
|
accessorKey: i,
|
|
784
831
|
enableSorting: !1,
|
|
785
|
-
enableColumnFilter: !1
|
|
832
|
+
enableColumnFilter: !1,
|
|
833
|
+
sortingFn: "alphanumeric"
|
|
786
834
|
};
|
|
787
835
|
return t.set(i, a), a;
|
|
788
836
|
};
|
|
@@ -795,26 +843,26 @@ class rt {
|
|
|
795
843
|
}), Array.from(t.values());
|
|
796
844
|
}
|
|
797
845
|
}
|
|
798
|
-
class
|
|
846
|
+
class ht {
|
|
799
847
|
constructor() {
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
848
|
+
r(this, "dataBatches", []);
|
|
849
|
+
r(this, "prevDataBatches", []);
|
|
850
|
+
r(this, "batchLoadingStates", ["void"]);
|
|
851
|
+
Se(this, {
|
|
804
852
|
prevDataBatches: !1,
|
|
805
853
|
useMergedData: !1,
|
|
806
854
|
useIsLoading: !1,
|
|
807
|
-
dataBatches:
|
|
808
|
-
batchLoadingStates:
|
|
809
|
-
mergedData:
|
|
810
|
-
isLoading:
|
|
811
|
-
reset:
|
|
812
|
-
setDataBatch:
|
|
813
|
-
setBatchLoadingState:
|
|
855
|
+
dataBatches: Tt.shallow,
|
|
856
|
+
batchLoadingStates: Tt.shallow,
|
|
857
|
+
mergedData: Ft,
|
|
858
|
+
isLoading: Ft,
|
|
859
|
+
reset: _.bound,
|
|
860
|
+
setDataBatch: _.bound,
|
|
861
|
+
setBatchLoadingState: _.bound
|
|
814
862
|
});
|
|
815
863
|
}
|
|
816
864
|
static useNew() {
|
|
817
|
-
return
|
|
865
|
+
return Lt(new ht()).current;
|
|
818
866
|
}
|
|
819
867
|
reset() {
|
|
820
868
|
this.batchLoadingStates = [], this.dataBatches = [];
|
|
@@ -829,36 +877,36 @@ class ot {
|
|
|
829
877
|
return (this.dataBatches.length === 0 ? this.prevDataBatches : this.dataBatches).flatMap((e) => e);
|
|
830
878
|
}
|
|
831
879
|
useMergedData() {
|
|
832
|
-
return
|
|
880
|
+
return Vt(() => this.mergedData);
|
|
833
881
|
}
|
|
834
882
|
get isLoading() {
|
|
835
883
|
return this.batchLoadingStates.some((t) => t === "loading" || t === "void");
|
|
836
884
|
}
|
|
837
885
|
useIsLoading() {
|
|
838
|
-
return
|
|
886
|
+
return Vt(() => this.isLoading);
|
|
839
887
|
}
|
|
840
888
|
isBatchLoaded(t) {
|
|
841
889
|
return t in this.dataBatches;
|
|
842
890
|
}
|
|
843
891
|
}
|
|
844
|
-
const
|
|
845
|
-
class
|
|
892
|
+
const li = [];
|
|
893
|
+
class ut {
|
|
846
894
|
constructor(t, e = {}) {
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
895
|
+
r(this, "list");
|
|
896
|
+
r(this, "dataSource");
|
|
897
|
+
r(this, "manualSorting");
|
|
898
|
+
r(this, "manualFiltering");
|
|
899
|
+
r(this, "manualPagination");
|
|
900
|
+
r(this, "loaderState");
|
|
901
|
+
r(this, "staticDataProperties", []);
|
|
854
902
|
var d;
|
|
855
903
|
const { source: i } = e;
|
|
856
|
-
this.dataSource = i ?? { staticData:
|
|
857
|
-
const
|
|
858
|
-
this.list = t, this.loaderState =
|
|
904
|
+
this.dataSource = i ?? { staticData: li };
|
|
905
|
+
const o = "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;
|
|
906
|
+
this.list = t, this.loaderState = ht.useNew(), this.manualPagination = o ?? !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();
|
|
859
907
|
}
|
|
860
908
|
static useNew(t, e = {}) {
|
|
861
|
-
return new
|
|
909
|
+
return new ut(t, e);
|
|
862
910
|
}
|
|
863
911
|
initStaticDataProperties() {
|
|
864
912
|
const t = (e) => {
|
|
@@ -881,7 +929,7 @@ class at {
|
|
|
881
929
|
return this.loaderState.useMergedData();
|
|
882
930
|
}
|
|
883
931
|
getLoaderInvocationHooks() {
|
|
884
|
-
return
|
|
932
|
+
return fe(this.list.batches.getBatchIndex() + 1, (e) => e).map((e) => () => {
|
|
885
933
|
this.useLoadBatch(e);
|
|
886
934
|
});
|
|
887
935
|
}
|
|
@@ -892,21 +940,21 @@ class at {
|
|
|
892
940
|
}), this.useObserveBatchData(e, t), this.useObserveBatchLoadingState(e, t);
|
|
893
941
|
}
|
|
894
942
|
useObserveBatchLoadingState(t, e) {
|
|
895
|
-
const i = (
|
|
943
|
+
const i = (o) => {
|
|
896
944
|
this.loaderState.setBatchLoadingState(
|
|
897
945
|
e,
|
|
898
|
-
this.loaderState.isBatchLoaded(e) ? "loaded" :
|
|
946
|
+
this.loaderState.isBatchLoaded(e) ? "loaded" : o
|
|
899
947
|
);
|
|
900
948
|
};
|
|
901
|
-
|
|
949
|
+
E(() => (i(t.state.value), t.state.observe(i)), [t, e]);
|
|
902
950
|
}
|
|
903
951
|
useObserveBatchData(t, e) {
|
|
904
|
-
const i = (
|
|
905
|
-
const { data: a, itemTotalCount: l } =
|
|
952
|
+
const i = (o) => {
|
|
953
|
+
const { data: a, itemTotalCount: l } = o;
|
|
906
954
|
this.loaderState.setDataBatch(e, a), l !== void 0 && this.list.batches.updateItemTotalCount(l);
|
|
907
955
|
};
|
|
908
|
-
|
|
909
|
-
|
|
956
|
+
E(() => (t.value.value.isSet && i(t.value.value.value), t.value.observe((o) => {
|
|
957
|
+
o.isSet && i(o.value);
|
|
910
958
|
})), [t, e]);
|
|
911
959
|
}
|
|
912
960
|
getDataLoaderOptions(t) {
|
|
@@ -933,33 +981,33 @@ class at {
|
|
|
933
981
|
getBatchDataAsyncResource(t) {
|
|
934
982
|
const e = this.dataSource, i = this.getDataLoaderOptions(t);
|
|
935
983
|
if ("staticData" in e)
|
|
936
|
-
return
|
|
937
|
-
async (
|
|
938
|
-
data:
|
|
939
|
-
itemTotalCount:
|
|
984
|
+
return It(
|
|
985
|
+
async (o) => ({
|
|
986
|
+
data: o,
|
|
987
|
+
itemTotalCount: o.length
|
|
940
988
|
}),
|
|
941
989
|
[e.staticData]
|
|
942
990
|
);
|
|
943
991
|
if ("asyncLoader" in e) {
|
|
944
|
-
const
|
|
945
|
-
return
|
|
992
|
+
const o = e.asyncLoader, a = e.dependencies, l = a ? Bt(a).toString() : void 0;
|
|
993
|
+
return It(o, [i], {
|
|
946
994
|
loaderId: l
|
|
947
995
|
});
|
|
948
996
|
}
|
|
949
997
|
if ("asyncResourceFactory" in e) {
|
|
950
|
-
const
|
|
951
|
-
return
|
|
998
|
+
const o = e.asyncResourceFactory;
|
|
999
|
+
return o(i);
|
|
952
1000
|
}
|
|
953
1001
|
throw new Error("Unknown data source");
|
|
954
1002
|
}
|
|
955
1003
|
}
|
|
956
|
-
class
|
|
1004
|
+
class ci {
|
|
957
1005
|
constructor(t, e) {
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
1006
|
+
r(this, "list");
|
|
1007
|
+
r(this, "render");
|
|
1008
|
+
r(this, "textFieldProps");
|
|
1009
|
+
r(this, "onUpdateCallbacks", /* @__PURE__ */ new Set());
|
|
1010
|
+
r(this, "defaultValue");
|
|
963
1011
|
this.list = t, this.render = e.render, this.textFieldProps = e.textFieldProps, this.defaultValue = e.defaultValue;
|
|
964
1012
|
}
|
|
965
1013
|
get value() {
|
|
@@ -984,126 +1032,138 @@ class si {
|
|
|
984
1032
|
this.onUpdateCallbacks.add(t);
|
|
985
1033
|
}
|
|
986
1034
|
}
|
|
987
|
-
const
|
|
1035
|
+
const J = class J {
|
|
988
1036
|
constructor(t, e = {}) {
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
this
|
|
1037
|
+
r(this, "list");
|
|
1038
|
+
r(this, "textValue");
|
|
1039
|
+
r(this, "href");
|
|
1040
|
+
r(this, "defaultExpanded");
|
|
1041
|
+
r(this, "fallback");
|
|
1042
|
+
r(this, "showTiles");
|
|
1043
|
+
r(this, "showList");
|
|
1044
|
+
r(this, "tileMaxWidth");
|
|
1045
|
+
r(this, "renderFn");
|
|
1046
|
+
const {
|
|
1047
|
+
fallback: i,
|
|
1048
|
+
textValue: o,
|
|
1049
|
+
href: a,
|
|
1050
|
+
defaultExpanded: l,
|
|
1051
|
+
renderFn: d,
|
|
1052
|
+
showTiles: c,
|
|
1053
|
+
showList: m = !0,
|
|
1054
|
+
tileMaxWidth: b = 230
|
|
1055
|
+
} = e;
|
|
1056
|
+
this.list = t, this.textValue = o, this.renderFn = d, this.href = a, this.defaultExpanded = l, this.fallback = i, this.showTiles = c, this.showList = m, this.tileMaxWidth = b;
|
|
997
1057
|
}
|
|
998
1058
|
render(t) {
|
|
999
|
-
return (this.renderFn ??
|
|
1059
|
+
return (this.renderFn ?? J.fallbackRenderItemFn)(t, this.list);
|
|
1000
1060
|
}
|
|
1001
1061
|
};
|
|
1002
|
-
|
|
1003
|
-
let
|
|
1062
|
+
r(J, "fallbackRenderItemFn", (t) => Ct("pre", void 0, JSON.stringify(t)));
|
|
1063
|
+
let nt = J, di = class {
|
|
1004
1064
|
constructor(t, e = {}) {
|
|
1005
|
-
|
|
1006
|
-
|
|
1065
|
+
r(this, "tableHeader");
|
|
1066
|
+
r(this, "componentProps");
|
|
1007
1067
|
this.tableHeader = t, this.componentProps = e;
|
|
1008
1068
|
}
|
|
1009
|
-
},
|
|
1069
|
+
}, hi = class {
|
|
1010
1070
|
constructor(t, e = {}) {
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
const { columns: i = [], ...
|
|
1015
|
-
this.table = t, this.columns = i.map((a) => new
|
|
1071
|
+
r(this, "table");
|
|
1072
|
+
r(this, "componentProps");
|
|
1073
|
+
r(this, "columns");
|
|
1074
|
+
const { columns: i = [], ...o } = e;
|
|
1075
|
+
this.table = t, this.columns = i.map((a) => new di(this, a)), this.componentProps = o;
|
|
1016
1076
|
}
|
|
1017
|
-
},
|
|
1077
|
+
}, ui = class {
|
|
1018
1078
|
constructor(t, e = {}) {
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
const { renderFn: i, ...
|
|
1023
|
-
this.row = t, this.renderFn = i, this.componentProps =
|
|
1079
|
+
r(this, "row");
|
|
1080
|
+
r(this, "renderFn");
|
|
1081
|
+
r(this, "componentProps");
|
|
1082
|
+
const { renderFn: i, ...o } = e;
|
|
1083
|
+
this.row = t, this.renderFn = i, this.componentProps = o;
|
|
1024
1084
|
}
|
|
1025
|
-
},
|
|
1085
|
+
}, mi = class {
|
|
1026
1086
|
constructor(t, e = {}) {
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
const { cells: i = [], ...
|
|
1031
|
-
this.tableBody = t, this.cells = i.map((a) => new
|
|
1087
|
+
r(this, "tableBody");
|
|
1088
|
+
r(this, "cells");
|
|
1089
|
+
r(this, "componentProps");
|
|
1090
|
+
const { cells: i = [], ...o } = e;
|
|
1091
|
+
this.tableBody = t, this.cells = i.map((a) => new ui(this, a)), this.componentProps = o;
|
|
1032
1092
|
}
|
|
1033
|
-
},
|
|
1093
|
+
}, gi = class {
|
|
1034
1094
|
constructor(t, e = {}) {
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
const { row: i, ...
|
|
1039
|
-
this.table = t, this.row = new
|
|
1095
|
+
r(this, "table");
|
|
1096
|
+
r(this, "componentProps");
|
|
1097
|
+
r(this, "row");
|
|
1098
|
+
const { row: i, ...o } = e;
|
|
1099
|
+
this.table = t, this.row = new mi(this, i), this.componentProps = o;
|
|
1040
1100
|
}
|
|
1041
|
-
},
|
|
1101
|
+
}, pi = class {
|
|
1042
1102
|
constructor(t, e = {}) {
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
const { header: i, body:
|
|
1048
|
-
this.list = t, this.header = new
|
|
1103
|
+
r(this, "list");
|
|
1104
|
+
r(this, "header");
|
|
1105
|
+
r(this, "body");
|
|
1106
|
+
r(this, "componentProps");
|
|
1107
|
+
const { header: i, body: o, ...a } = e;
|
|
1108
|
+
this.list = t, this.header = new hi(this, i), this.body = new gi(this, o), this.componentProps = a;
|
|
1049
1109
|
}
|
|
1050
1110
|
};
|
|
1051
|
-
var
|
|
1052
|
-
let
|
|
1111
|
+
var C;
|
|
1112
|
+
let fi = (C = class {
|
|
1053
1113
|
constructor(t) {
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1114
|
+
r(this, "filters");
|
|
1115
|
+
r(this, "itemView");
|
|
1116
|
+
r(this, "table");
|
|
1117
|
+
r(this, "search");
|
|
1118
|
+
r(this, "sorting");
|
|
1119
|
+
r(this, "items");
|
|
1120
|
+
r(this, "reactTable");
|
|
1121
|
+
r(this, "batches");
|
|
1122
|
+
r(this, "loader");
|
|
1123
|
+
r(this, "onAction");
|
|
1124
|
+
r(this, "accordion");
|
|
1125
|
+
r(this, "getItemId");
|
|
1126
|
+
r(this, "componentProps");
|
|
1127
|
+
r(this, "viewMode");
|
|
1128
|
+
r(this, "setViewMode");
|
|
1129
|
+
r(this, "supportsSettingsStorage");
|
|
1130
|
+
r(this, "settingStorageKey");
|
|
1131
|
+
r(this, "settingsStore");
|
|
1132
|
+
r(this, "viewModeStorageKey");
|
|
1133
|
+
r(this, "filterSettingsStorageKey");
|
|
1074
1134
|
const {
|
|
1075
1135
|
settingStorageKey: e,
|
|
1076
1136
|
itemView: i,
|
|
1077
|
-
table:
|
|
1137
|
+
table: o,
|
|
1078
1138
|
filters: a = [],
|
|
1079
1139
|
sorting: l = [],
|
|
1080
1140
|
batchesController: d,
|
|
1081
1141
|
onChange: c,
|
|
1082
|
-
loader:
|
|
1083
|
-
search:
|
|
1084
|
-
onAction:
|
|
1085
|
-
getItemId:
|
|
1086
|
-
defaultViewMode:
|
|
1087
|
-
accordion:
|
|
1088
|
-
...
|
|
1142
|
+
loader: m,
|
|
1143
|
+
search: b,
|
|
1144
|
+
onAction: u,
|
|
1145
|
+
getItemId: y,
|
|
1146
|
+
defaultViewMode: M,
|
|
1147
|
+
accordion: x = !1,
|
|
1148
|
+
...v
|
|
1089
1149
|
} = t;
|
|
1090
|
-
this.settingsStore =
|
|
1150
|
+
this.settingsStore = Ee(), this.settingStorageKey = e, this.filterSettingsStorageKey = e ? `${e}.activeFilters` : void 0, this.viewModeStorageKey = e ? `${e}.viewMode` : void 0, this.supportsSettingsStorage = !!this.settingStorageKey, this.items = new si(this), this.filters = a.map((w) => new q(this, w)), this.sorting = l.map((w) => new ai(this, w)), this.search = b ? new ci(this, b) : void 0, this.itemView = i ? new nt(this, i) : void 0, this.accordion = x, this.table = o ? new pi(this, o) : void 0, this.batches = new ii(this, d), this.componentProps = v, this.loader = ut.useNew(this, m), this.onAction = u, this.getItemId = y, this.reactTable = dt.useNew(this, c, {
|
|
1091
1151
|
manualFiltering: this.loader.manualFiltering,
|
|
1092
1152
|
manualPagination: this.loader.manualPagination,
|
|
1093
1153
|
manualSorting: this.loader.manualSorting
|
|
1094
1154
|
});
|
|
1095
|
-
const [
|
|
1096
|
-
|
|
1155
|
+
const [B, Z] = Y(
|
|
1156
|
+
M ?? this.getStoredViewModeDefaultSetting() ?? "list"
|
|
1097
1157
|
);
|
|
1098
|
-
this.viewMode =
|
|
1099
|
-
|
|
1158
|
+
this.viewMode = B, this.setViewMode = (w) => {
|
|
1159
|
+
Z(w), this.settingsStore && this.viewModeStorageKey && this.settingsStore.set(
|
|
1100
1160
|
"List",
|
|
1101
1161
|
this.viewModeStorageKey,
|
|
1102
|
-
|
|
1103
|
-
|
|
1162
|
+
C.viewModeSettingsStorageSchema,
|
|
1163
|
+
w
|
|
1104
1164
|
);
|
|
1105
|
-
},
|
|
1106
|
-
this.filters.forEach((
|
|
1165
|
+
}, E(() => {
|
|
1166
|
+
this.filters.forEach((w) => w.deleteUnknownFilterValues());
|
|
1107
1167
|
}, [this.filters]);
|
|
1108
1168
|
}
|
|
1109
1169
|
get isFiltered() {
|
|
@@ -1113,7 +1173,7 @@ let ci = (V = class {
|
|
|
1113
1173
|
return this.sorting.filter((t) => t.defaultEnabled !== "hidden");
|
|
1114
1174
|
}
|
|
1115
1175
|
static useNew(t) {
|
|
1116
|
-
return new
|
|
1176
|
+
return new C(t);
|
|
1117
1177
|
}
|
|
1118
1178
|
storeFilterDefaultSettings() {
|
|
1119
1179
|
if (this.settingsStore && this.filterSettingsStorageKey) {
|
|
@@ -1126,7 +1186,7 @@ let ci = (V = class {
|
|
|
1126
1186
|
this.settingsStore.set(
|
|
1127
1187
|
"List",
|
|
1128
1188
|
this.filterSettingsStorageKey,
|
|
1129
|
-
|
|
1189
|
+
q.settingsStorageSchema,
|
|
1130
1190
|
t
|
|
1131
1191
|
);
|
|
1132
1192
|
}
|
|
@@ -1136,7 +1196,7 @@ let ci = (V = class {
|
|
|
1136
1196
|
return this.settingsStore.get(
|
|
1137
1197
|
"List",
|
|
1138
1198
|
this.filterSettingsStorageKey,
|
|
1139
|
-
|
|
1199
|
+
q.settingsStorageSchema
|
|
1140
1200
|
);
|
|
1141
1201
|
}
|
|
1142
1202
|
getStoredViewModeDefaultSetting() {
|
|
@@ -1144,12 +1204,12 @@ let ci = (V = class {
|
|
|
1144
1204
|
return this.settingsStore.get(
|
|
1145
1205
|
"List",
|
|
1146
1206
|
this.viewModeStorageKey,
|
|
1147
|
-
|
|
1207
|
+
C.viewModeSettingsStorageSchema
|
|
1148
1208
|
);
|
|
1149
1209
|
}
|
|
1150
1210
|
getSorting(t) {
|
|
1151
1211
|
const e = this.sorting.find((i) => i.id === t);
|
|
1152
|
-
return
|
|
1212
|
+
return xt(!!e, `Could not get Sorting (ID: ${t})`), e;
|
|
1153
1213
|
}
|
|
1154
1214
|
clearSorting() {
|
|
1155
1215
|
return this.sorting.forEach((t) => t.clear());
|
|
@@ -1163,21 +1223,23 @@ let ci = (V = class {
|
|
|
1163
1223
|
useIsEmpty() {
|
|
1164
1224
|
return !this.loader.useIsLoading() && this.items.entries.length === 0;
|
|
1165
1225
|
}
|
|
1166
|
-
},
|
|
1167
|
-
const
|
|
1168
|
-
items:
|
|
1169
|
-
isLoading:
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1226
|
+
}, r(C, "viewModeSettingsStorageSchema", H.enum(["list", "table", "tiles"]).optional()), C);
|
|
1227
|
+
const bi = "flow--list--items", Si = "flow--list--items--is-loading", wi = "flow--list--items--tiles", st = {
|
|
1228
|
+
items: bi,
|
|
1229
|
+
isLoading: Si,
|
|
1230
|
+
tiles: wi
|
|
1231
|
+
}, Rt = () => {
|
|
1232
|
+
const t = S().viewMode === "tiles";
|
|
1233
|
+
return /* @__PURE__ */ h(kt, { children: [
|
|
1234
|
+
t && /* @__PURE__ */ n(je, { children: /* @__PURE__ */ n(Dt, { style: { aspectRatio: 16 / 9 } }) }),
|
|
1235
|
+
/* @__PURE__ */ n(at, { children: /* @__PURE__ */ n(j, { width: "200px" }) }),
|
|
1236
|
+
/* @__PURE__ */ n(ot, { children: /* @__PURE__ */ n(j, { width: "300px" }) })
|
|
1237
|
+
] });
|
|
1238
|
+
}, yi = (s) => {
|
|
1239
|
+
const { isExpanded: t, toggle: e, children: i, contentElementId: o } = s, a = A(T);
|
|
1240
|
+
return /* @__PURE__ */ h(W, { children: [
|
|
1241
|
+
/* @__PURE__ */ n(
|
|
1242
|
+
L,
|
|
1181
1243
|
{
|
|
1182
1244
|
variant: "plain",
|
|
1183
1245
|
color: "secondary",
|
|
@@ -1185,41 +1247,41 @@ const di = "flow--list--items", ui = "flow--list--items--is-loading", Tt = {
|
|
|
1185
1247
|
"aria-label": a.format(
|
|
1186
1248
|
"list.toggleExpandButton." + (t ? "collapse" : "expand")
|
|
1187
1249
|
),
|
|
1188
|
-
"aria-controls":
|
|
1250
|
+
"aria-controls": o,
|
|
1189
1251
|
"aria-expanded": t,
|
|
1190
|
-
children: t ? /* @__PURE__ */
|
|
1252
|
+
children: t ? /* @__PURE__ */ n(Ye, {}) : /* @__PURE__ */ n(Je, {})
|
|
1191
1253
|
}
|
|
1192
1254
|
),
|
|
1193
1255
|
t && i
|
|
1194
1256
|
] });
|
|
1195
|
-
},
|
|
1196
|
-
var
|
|
1197
|
-
const { data: t, children: e } = s, i =
|
|
1198
|
-
((
|
|
1199
|
-
), c = ce(),
|
|
1200
|
-
if (
|
|
1201
|
-
var
|
|
1202
|
-
|
|
1203
|
-
}, [l, c,
|
|
1257
|
+
}, vi = (s) => {
|
|
1258
|
+
var x;
|
|
1259
|
+
const { data: t, children: e } = s, i = S(), o = i.itemView, a = i.onAction, [l, d] = Y(
|
|
1260
|
+
((x = o == null ? void 0 : o.defaultExpanded) == null ? void 0 : x.call(o, t)) ?? !1
|
|
1261
|
+
), c = ce(), m = Lt(null), b = i.accordion, u = e ?? (o == null ? void 0 : o.render(t));
|
|
1262
|
+
if (E(() => {
|
|
1263
|
+
var v, B;
|
|
1264
|
+
b && ((v = m.current) == null || v.setAttribute("aria-expanded", String(l)), (B = m.current) == null || B.setAttribute("aria-controls", c));
|
|
1265
|
+
}, [l, c, m.current, b]), !b)
|
|
1204
1266
|
return {
|
|
1205
1267
|
gridItemProps: {
|
|
1206
1268
|
onAction: a ? () => {
|
|
1207
1269
|
a == null || a(t);
|
|
1208
1270
|
} : void 0
|
|
1209
1271
|
},
|
|
1210
|
-
children:
|
|
1272
|
+
children: u
|
|
1211
1273
|
};
|
|
1212
|
-
const
|
|
1213
|
-
d((
|
|
1214
|
-
},
|
|
1274
|
+
const y = () => {
|
|
1275
|
+
d((v) => !v), a == null || a(t);
|
|
1276
|
+
}, M = {
|
|
1215
1277
|
Content: {
|
|
1216
|
-
id:
|
|
1217
|
-
wrapWith:
|
|
1218
|
-
(
|
|
1219
|
-
|
|
1278
|
+
id: U((v) => v.slot === "bottom" ? c : void 0),
|
|
1279
|
+
wrapWith: U(
|
|
1280
|
+
(v) => v.slot === "bottom" ? /* @__PURE__ */ n(
|
|
1281
|
+
yi,
|
|
1220
1282
|
{
|
|
1221
1283
|
contentElementId: c,
|
|
1222
|
-
toggle:
|
|
1284
|
+
toggle: y,
|
|
1223
1285
|
isExpanded: l
|
|
1224
1286
|
}
|
|
1225
1287
|
) : void 0
|
|
@@ -1228,71 +1290,103 @@ const di = "flow--list--items", ui = "flow--list--items--is-loading", Tt = {
|
|
|
1228
1290
|
};
|
|
1229
1291
|
return {
|
|
1230
1292
|
gridItemProps: {
|
|
1231
|
-
ref:
|
|
1232
|
-
onAction:
|
|
1293
|
+
ref: m,
|
|
1294
|
+
onAction: y
|
|
1233
1295
|
},
|
|
1234
|
-
children: /* @__PURE__ */
|
|
1235
|
-
|
|
1296
|
+
children: /* @__PURE__ */ n(
|
|
1297
|
+
Q,
|
|
1236
1298
|
{
|
|
1237
|
-
props:
|
|
1299
|
+
props: M,
|
|
1238
1300
|
dependencies: [c, l],
|
|
1239
|
-
children:
|
|
1301
|
+
children: u
|
|
1240
1302
|
}
|
|
1241
1303
|
)
|
|
1242
1304
|
};
|
|
1243
|
-
},
|
|
1244
|
-
const t =
|
|
1245
|
-
return /* @__PURE__ */
|
|
1246
|
-
},
|
|
1247
|
-
const { id: t, data: e } = s,
|
|
1248
|
-
if (!
|
|
1305
|
+
}, $t = (s) => {
|
|
1306
|
+
const t = g(f).ItemsGridListItem ?? As;
|
|
1307
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
1308
|
+
}, Ti = (s) => {
|
|
1309
|
+
const { id: t, data: e } = s, i = S(), o = i.itemView, { gridItemProps: a, children: l } = vi(s);
|
|
1310
|
+
if (!o)
|
|
1249
1311
|
return null;
|
|
1250
|
-
const d =
|
|
1251
|
-
return /* @__PURE__ */
|
|
1252
|
-
|
|
1312
|
+
const d = o.textValue ? o.textValue(e) : void 0, c = o.href ? o.href(e) : void 0, m = !!a.onAction || !!c;
|
|
1313
|
+
return /* @__PURE__ */ n(
|
|
1314
|
+
$t,
|
|
1253
1315
|
{
|
|
1254
1316
|
id: t,
|
|
1255
1317
|
textValue: d,
|
|
1256
1318
|
href: c,
|
|
1257
|
-
hasAction:
|
|
1319
|
+
hasAction: m,
|
|
1320
|
+
isTile: i.viewMode === "tiles",
|
|
1258
1321
|
...a,
|
|
1259
|
-
children: /* @__PURE__ */
|
|
1322
|
+
children: /* @__PURE__ */ n(de, { fallback: /* @__PURE__ */ n(Rt, {}), children: l })
|
|
1323
|
+
}
|
|
1324
|
+
);
|
|
1325
|
+
}, Fi = (s) => {
|
|
1326
|
+
const t = S();
|
|
1327
|
+
return /* @__PURE__ */ n(
|
|
1328
|
+
$t,
|
|
1329
|
+
{
|
|
1330
|
+
textValue: "-",
|
|
1331
|
+
className: $.item,
|
|
1332
|
+
isTile: t.viewMode === "tiles",
|
|
1333
|
+
children: s.children
|
|
1260
1334
|
}
|
|
1261
1335
|
);
|
|
1262
|
-
},
|
|
1336
|
+
}, Ii = () => {
|
|
1263
1337
|
var e;
|
|
1264
|
-
const t = ((e =
|
|
1265
|
-
return Array.from(Array(5)).map((i,
|
|
1266
|
-
},
|
|
1267
|
-
const t =
|
|
1268
|
-
return /* @__PURE__ */
|
|
1269
|
-
},
|
|
1270
|
-
const s =
|
|
1338
|
+
const t = ((e = S().itemView) == null ? void 0 : e.fallback) ?? /* @__PURE__ */ n(Rt, {});
|
|
1339
|
+
return Array.from(Array(5)).map((i, o) => /* @__PURE__ */ n(Fi, { id: o, data: o, children: he(t) }, o));
|
|
1340
|
+
}, Vi = (s) => {
|
|
1341
|
+
const t = g(f).ItemsGridList ?? Is;
|
|
1342
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
1343
|
+
}, Ci = () => {
|
|
1344
|
+
const s = S(), t = s.viewMode === "tiles", e = s.loader.useIsLoading(), i = s.loader.useIsInitiallyLoading();
|
|
1271
1345
|
if (!s.itemView)
|
|
1272
1346
|
return null;
|
|
1273
|
-
const
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1347
|
+
const o = s.items.entries.map((l) => /* @__PURE__ */ n(Ti, { data: l.data, id: l.id }, l.id)), a = N(
|
|
1348
|
+
st.items,
|
|
1349
|
+
e && st.isLoading,
|
|
1350
|
+
t && st.tiles
|
|
1351
|
+
);
|
|
1352
|
+
return /* @__PURE__ */ n(V, { "aria-hidden": i, "aria-busy": e, children: /* @__PURE__ */ n(
|
|
1353
|
+
Vi,
|
|
1354
|
+
{
|
|
1355
|
+
className: a,
|
|
1356
|
+
...s.componentProps,
|
|
1357
|
+
renderEmptyState: () => /* @__PURE__ */ n(lt, {}),
|
|
1358
|
+
style: {
|
|
1359
|
+
gridTemplateColumns: `repeat(auto-fill, minmax(${s.itemView.tileMaxWidth}px, 1fr))`
|
|
1360
|
+
},
|
|
1361
|
+
children: i ? /* @__PURE__ */ n(Ii, {}) : o
|
|
1362
|
+
}
|
|
1363
|
+
) });
|
|
1364
|
+
}, Ut = (s, t) => ue(s) ? typeof t == "string" ? typeof s.type == "string" ? s.type === t : !1 : s.type === t : !1, I = (s, t) => Ne(s, (e) => Ut(e, t)), O = (s, t) => {
|
|
1365
|
+
const e = [];
|
|
1366
|
+
return Re(s, (i) => {
|
|
1367
|
+
Ut(i, t) && e.push(i);
|
|
1368
|
+
}), e;
|
|
1369
|
+
}, Kt = (s) => null, Li = () => Kt, zt = (s) => null, Pi = () => zt, Ot = (s) => null, Ai = () => Ot, Ht = (s) => null, Mi = () => Ht, Gt = (s) => null, xi = () => Gt, Bi = "flow--list--footer", Di = {
|
|
1370
|
+
footer: Bi
|
|
1371
|
+
}, ki = (s) => {
|
|
1372
|
+
const t = g(f).Skeleton ?? Dt;
|
|
1373
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
1374
|
+
}, Ei = (s) => {
|
|
1375
|
+
const t = A(T), e = S(), i = e.batches, o = e.loader.useIsInitiallyLoading(), a = e.useIsEmpty(), l = i.getTotalItemsCount(), d = i.getVisibleItemsCount();
|
|
1282
1376
|
if (a)
|
|
1283
1377
|
return null;
|
|
1284
|
-
const c =
|
|
1378
|
+
const c = o ? /* @__PURE__ */ n(ki, { width: "200px" }) : t.format("list.paginationInfo", {
|
|
1285
1379
|
visibleItemsCount: d,
|
|
1286
1380
|
totalItemsCount: l
|
|
1287
1381
|
});
|
|
1288
|
-
return /* @__PURE__ */
|
|
1289
|
-
},
|
|
1290
|
-
const t =
|
|
1291
|
-
return !e.batches.hasNextBatch() && !i ? null : /* @__PURE__ */
|
|
1292
|
-
|
|
1382
|
+
return /* @__PURE__ */ n(K, { ...s, children: c });
|
|
1383
|
+
}, Ni = (s) => {
|
|
1384
|
+
const t = A(T), e = S(), i = e.loader.useIsLoading(), o = e.loader.useIsInitiallyLoading();
|
|
1385
|
+
return !e.batches.hasNextBatch() && !i ? null : /* @__PURE__ */ n(
|
|
1386
|
+
L,
|
|
1293
1387
|
{
|
|
1294
|
-
isPending: i && !
|
|
1295
|
-
isDisabled:
|
|
1388
|
+
isPending: i && !o,
|
|
1389
|
+
isDisabled: o,
|
|
1296
1390
|
...s,
|
|
1297
1391
|
onPress: () => e.batches.nextBatch(),
|
|
1298
1392
|
variant: "plain",
|
|
@@ -1300,79 +1394,82 @@ const di = "flow--list--items", ui = "flow--list--items--is-loading", Tt = {
|
|
|
1300
1394
|
children: t.format("list.showMore")
|
|
1301
1395
|
}
|
|
1302
1396
|
);
|
|
1303
|
-
},
|
|
1304
|
-
/* @__PURE__ */
|
|
1305
|
-
/* @__PURE__ */
|
|
1397
|
+
}, Ri = () => /* @__PURE__ */ h(V, { className: Di.footer, children: [
|
|
1398
|
+
/* @__PURE__ */ n(Ei, {}),
|
|
1399
|
+
/* @__PURE__ */ n(Ni, {})
|
|
1306
1400
|
] });
|
|
1307
1401
|
function qt(s) {
|
|
1308
1402
|
return null;
|
|
1309
1403
|
}
|
|
1310
|
-
const
|
|
1311
|
-
const t =
|
|
1312
|
-
return /* @__PURE__ */
|
|
1404
|
+
const $i = () => qt, Wt = (s) => null, jt = (s) => null, Jt = (s) => null, Yt = (s) => {
|
|
1405
|
+
const t = g(f).Table ?? Ze;
|
|
1406
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
1313
1407
|
}, Qt = (s) => {
|
|
1314
|
-
const t =
|
|
1315
|
-
return /* @__PURE__ */
|
|
1408
|
+
const t = g(f).TableColumn ?? _e;
|
|
1409
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
1316
1410
|
}, Xt = (s) => {
|
|
1317
|
-
const t =
|
|
1318
|
-
return /* @__PURE__ */
|
|
1411
|
+
const t = g(f).TableBody ?? ts;
|
|
1412
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
1319
1413
|
}, Zt = (s) => {
|
|
1320
|
-
const t =
|
|
1321
|
-
return /* @__PURE__ */
|
|
1414
|
+
const t = g(f).TableRow ?? es;
|
|
1415
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
1416
|
+
}, Ui = (s) => {
|
|
1417
|
+
const t = g(f).SkeletonText ?? j;
|
|
1418
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
1322
1419
|
}, _t = (s) => {
|
|
1323
|
-
const t =
|
|
1324
|
-
return /* @__PURE__ */
|
|
1420
|
+
const t = g(f).TableHeader ?? ss;
|
|
1421
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
1325
1422
|
}, te = (s) => {
|
|
1326
|
-
const t =
|
|
1327
|
-
return /* @__PURE__ */
|
|
1328
|
-
},
|
|
1329
|
-
/* @__PURE__ */
|
|
1330
|
-
/* @__PURE__ */
|
|
1331
|
-
] }),
|
|
1332
|
-
table:
|
|
1333
|
-
isLoading:
|
|
1334
|
-
row:
|
|
1335
|
-
isSelected:
|
|
1336
|
-
hasAction:
|
|
1337
|
-
},
|
|
1338
|
-
const t =
|
|
1339
|
-
return /* @__PURE__ */
|
|
1340
|
-
},
|
|
1341
|
-
const s =
|
|
1423
|
+
const t = g(f).TableCell ?? is;
|
|
1424
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
1425
|
+
}, Ki = (s) => /* @__PURE__ */ h(Yt, { ...s, children: [
|
|
1426
|
+
/* @__PURE__ */ n(_t, { children: /* @__PURE__ */ n(Qt, { children: /* @__PURE__ */ n(j, { width: "100%" }) }) }),
|
|
1427
|
+
/* @__PURE__ */ n(Xt, { children: Array.from(Array(5)).map((t, e) => /* @__PURE__ */ n(Zt, { children: /* @__PURE__ */ n(te, { children: /* @__PURE__ */ n(Ui, { width: "100%" }) }) }, e)) })
|
|
1428
|
+
] }), zi = "flow--list--table", Oi = "flow--list--table--is-loading", Hi = "flow--list--table--row", Gi = "flow--list--table--is-selected", qi = "flow--list--table--has-action", R = {
|
|
1429
|
+
table: zi,
|
|
1430
|
+
isLoading: Oi,
|
|
1431
|
+
row: Hi,
|
|
1432
|
+
isSelected: Gi,
|
|
1433
|
+
hasAction: qi
|
|
1434
|
+
}, Wi = (s) => {
|
|
1435
|
+
const t = g(f).ListEmptyView ?? lt;
|
|
1436
|
+
return /* @__PURE__ */ n(t, { ...s });
|
|
1437
|
+
}, ji = () => {
|
|
1438
|
+
const s = S(), t = s.table, e = s.useIsEmpty(), i = s.loader.useIsLoading(), o = s.loader.useIsInitiallyLoading();
|
|
1342
1439
|
if (!t)
|
|
1343
1440
|
return null;
|
|
1344
|
-
if (
|
|
1345
|
-
return /* @__PURE__ */
|
|
1441
|
+
if (o)
|
|
1442
|
+
return /* @__PURE__ */ n(Ki, { ...t.componentProps });
|
|
1346
1443
|
if (e)
|
|
1347
|
-
return /* @__PURE__ */
|
|
1348
|
-
const a = t.list.onAction, l =
|
|
1444
|
+
return /* @__PURE__ */ n(Wi, {});
|
|
1445
|
+
const a = t.list.onAction, l = N(
|
|
1349
1446
|
R.table,
|
|
1350
1447
|
i && R.isLoading,
|
|
1351
1448
|
t.componentProps.className
|
|
1352
1449
|
);
|
|
1353
|
-
return /* @__PURE__ */
|
|
1450
|
+
return /* @__PURE__ */ h(
|
|
1354
1451
|
Yt,
|
|
1355
1452
|
{
|
|
1356
1453
|
...s.componentProps,
|
|
1357
1454
|
...t.componentProps,
|
|
1358
1455
|
className: l,
|
|
1359
1456
|
children: [
|
|
1360
|
-
/* @__PURE__ */
|
|
1361
|
-
/* @__PURE__ */
|
|
1457
|
+
/* @__PURE__ */ n(_t, { ...t.header.componentProps, children: t.header.columns.map((d, c) => /* @__PURE__ */ n(Qt, { ...d.componentProps }, c)) }),
|
|
1458
|
+
/* @__PURE__ */ n(Xt, { ...t.body.componentProps, children: s.items.entries.map((d) => {
|
|
1362
1459
|
var c;
|
|
1363
|
-
return /* @__PURE__ */
|
|
1460
|
+
return /* @__PURE__ */ n(
|
|
1364
1461
|
Zt,
|
|
1365
1462
|
{
|
|
1366
|
-
className: (
|
|
1463
|
+
className: (m) => N(
|
|
1367
1464
|
R.row,
|
|
1368
1465
|
a && R.hasAction,
|
|
1369
1466
|
t.body.row.componentProps.className,
|
|
1370
|
-
|
|
1467
|
+
m.isSelected && R.isSelected
|
|
1371
1468
|
),
|
|
1372
1469
|
id: d.id,
|
|
1373
1470
|
onAction: a ? () => a(d.data) : void 0,
|
|
1374
1471
|
...t.body.row.componentProps,
|
|
1375
|
-
children: (c = t.body.row) == null ? void 0 : c.cells.map((
|
|
1472
|
+
children: (c = t.body.row) == null ? void 0 : c.cells.map((m, b) => /* @__PURE__ */ n(te, { ...m.componentProps, children: m.renderFn ? m.renderFn(d.data, s) : void 0 }, b))
|
|
1376
1473
|
},
|
|
1377
1474
|
d.id
|
|
1378
1475
|
);
|
|
@@ -1380,15 +1477,15 @@ const xi = () => qt, jt = (s) => null, Wt = (s) => null, Jt = (s) => null, Yt =
|
|
|
1380
1477
|
]
|
|
1381
1478
|
}
|
|
1382
1479
|
);
|
|
1383
|
-
}, ee = (s) => null, se = (s) => null, ie = (s) => null,
|
|
1384
|
-
var
|
|
1385
|
-
const { children: t, batchSize: e, onChange: i, ref:
|
|
1480
|
+
}, ee = (s) => null, se = (s) => null, ie = (s) => null, Ji = (s, t) => !!I(s, t), Yi = Pt("List", (s) => {
|
|
1481
|
+
var mt, gt, pt, ft, bt, St, wt, yt, vt;
|
|
1482
|
+
const { children: t, batchSize: e, onChange: i, ref: o, ...a } = s, l = (mt = I(
|
|
1386
1483
|
t,
|
|
1387
1484
|
Kt
|
|
1388
|
-
)) == null ? void 0 :
|
|
1485
|
+
)) == null ? void 0 : mt.props, d = (gt = I(
|
|
1389
1486
|
t,
|
|
1390
|
-
|
|
1391
|
-
)) == null ? void 0 :
|
|
1487
|
+
Qe
|
|
1488
|
+
)) == null ? void 0 : gt.props, c = (pt = I(t, Gt)) == null ? void 0 : pt.props, m = {
|
|
1392
1489
|
source: l ? {
|
|
1393
1490
|
...l,
|
|
1394
1491
|
asyncLoader: l.children
|
|
@@ -1398,48 +1495,48 @@ const xi = () => qt, jt = (s) => null, Wt = (s) => null, Jt = (s) => null, Yt =
|
|
|
1398
1495
|
} : c ? {
|
|
1399
1496
|
staticData: c.data
|
|
1400
1497
|
} : void 0
|
|
1401
|
-
},
|
|
1402
|
-
(
|
|
1403
|
-
...
|
|
1404
|
-
name:
|
|
1498
|
+
}, b = (ft = I(t, qt)) == null ? void 0 : ft.props, u = (bt = I(t, Ht)) == null ? void 0 : bt.props, y = (St = I(t, ee)) == null ? void 0 : St.props, M = O(t, Wt).map(
|
|
1499
|
+
(F) => ({
|
|
1500
|
+
...F.props,
|
|
1501
|
+
name: F.props.children
|
|
1405
1502
|
})
|
|
1406
|
-
),
|
|
1407
|
-
(
|
|
1408
|
-
...
|
|
1409
|
-
renderFn:
|
|
1503
|
+
), x = O(t, Jt).map(
|
|
1504
|
+
(F) => ({
|
|
1505
|
+
...F.props,
|
|
1506
|
+
renderFn: F.props.children
|
|
1410
1507
|
})
|
|
1411
|
-
),
|
|
1508
|
+
), v = (wt = I(t, jt)) == null ? void 0 : wt.props, B = (yt = I(t, se)) == null ? void 0 : yt.props, Z = (vt = I(t, ie)) == null ? void 0 : vt.props, w = fi.useNew({
|
|
1412
1509
|
onChange: i,
|
|
1413
|
-
loader:
|
|
1414
|
-
filters:
|
|
1415
|
-
(
|
|
1416
|
-
...
|
|
1417
|
-
renderItem:
|
|
1510
|
+
loader: m,
|
|
1511
|
+
filters: O(t, zt).map(
|
|
1512
|
+
(F) => ({
|
|
1513
|
+
...F.props,
|
|
1514
|
+
renderItem: F.props.children
|
|
1418
1515
|
})
|
|
1419
1516
|
),
|
|
1420
|
-
search:
|
|
1421
|
-
render:
|
|
1422
|
-
textFieldProps:
|
|
1423
|
-
defaultValue:
|
|
1517
|
+
search: b ? {
|
|
1518
|
+
render: b.children,
|
|
1519
|
+
textFieldProps: b,
|
|
1520
|
+
defaultValue: b.defaultValue
|
|
1424
1521
|
} : void 0,
|
|
1425
|
-
sorting:
|
|
1426
|
-
itemView:
|
|
1427
|
-
...
|
|
1428
|
-
renderFn:
|
|
1522
|
+
sorting: O(t, Ot).map((F) => F.props),
|
|
1523
|
+
itemView: u ? {
|
|
1524
|
+
...u,
|
|
1525
|
+
renderFn: u.children
|
|
1429
1526
|
} : void 0,
|
|
1430
|
-
table:
|
|
1527
|
+
table: M.length > 0 ? {
|
|
1431
1528
|
header: {
|
|
1432
|
-
...
|
|
1433
|
-
columns:
|
|
1529
|
+
...B,
|
|
1530
|
+
columns: M
|
|
1434
1531
|
},
|
|
1435
1532
|
body: {
|
|
1436
|
-
...
|
|
1533
|
+
...Z,
|
|
1437
1534
|
row: {
|
|
1438
|
-
...
|
|
1439
|
-
cells:
|
|
1535
|
+
...v,
|
|
1536
|
+
cells: x
|
|
1440
1537
|
}
|
|
1441
1538
|
},
|
|
1442
|
-
...
|
|
1539
|
+
...y
|
|
1443
1540
|
} : void 0,
|
|
1444
1541
|
batchesController: {
|
|
1445
1542
|
batchSize: e
|
|
@@ -1447,71 +1544,71 @@ const xi = () => qt, jt = (s) => null, Wt = (s) => null, Jt = (s) => null, Yt =
|
|
|
1447
1544
|
...a
|
|
1448
1545
|
}), ne = {
|
|
1449
1546
|
ActionGroup: {
|
|
1450
|
-
className:
|
|
1547
|
+
className: D.actions,
|
|
1451
1548
|
tunnelId: "actions",
|
|
1452
1549
|
ignoreBreakpoint: !0
|
|
1453
1550
|
},
|
|
1454
1551
|
ListSummary: {
|
|
1455
1552
|
tunnelId: "listSummary"
|
|
1456
1553
|
}
|
|
1457
|
-
},
|
|
1458
|
-
return /* @__PURE__ */
|
|
1554
|
+
}, oe = Ji(t, ns);
|
|
1555
|
+
return /* @__PURE__ */ n(Q, { props: ne, children: /* @__PURE__ */ n(At, { children: /* @__PURE__ */ h(
|
|
1459
1556
|
Et.Provider,
|
|
1460
1557
|
{
|
|
1461
1558
|
value: {
|
|
1462
|
-
list:
|
|
1559
|
+
list: w
|
|
1463
1560
|
},
|
|
1464
1561
|
children: [
|
|
1465
|
-
/* @__PURE__ */
|
|
1466
|
-
/* @__PURE__ */
|
|
1562
|
+
/* @__PURE__ */ n(Ms, {}),
|
|
1563
|
+
/* @__PURE__ */ h(V, { className: ti.list, ref: o, children: [
|
|
1467
1564
|
t,
|
|
1468
|
-
/* @__PURE__ */
|
|
1469
|
-
/* @__PURE__ */
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1565
|
+
/* @__PURE__ */ n(Zs, { hasActionGroup: oe }),
|
|
1566
|
+
/* @__PURE__ */ h(V, { children: [
|
|
1567
|
+
w.items.entries.length > 0 && /* @__PURE__ */ n(k, { id: "listSummary" }),
|
|
1568
|
+
(w.viewMode === "list" || w.viewMode === "tiles") && /* @__PURE__ */ n(Ci, {}),
|
|
1569
|
+
w.viewMode === "table" && /* @__PURE__ */ n(ji, {})
|
|
1473
1570
|
] }),
|
|
1474
|
-
/* @__PURE__ */
|
|
1571
|
+
/* @__PURE__ */ n(Ri, {})
|
|
1475
1572
|
] })
|
|
1476
1573
|
]
|
|
1477
1574
|
}
|
|
1478
1575
|
) }) });
|
|
1479
|
-
}),
|
|
1480
|
-
List:
|
|
1481
|
-
Filter:
|
|
1482
|
-
Search:
|
|
1483
|
-
Sorting:
|
|
1484
|
-
Item:
|
|
1576
|
+
}), Qi = () => Yi, ro = () => ({
|
|
1577
|
+
List: Qi(),
|
|
1578
|
+
Filter: Pi(),
|
|
1579
|
+
Search: $i(),
|
|
1580
|
+
Sorting: Ai(),
|
|
1581
|
+
Item: Mi(),
|
|
1485
1582
|
ItemView: kt,
|
|
1486
1583
|
TableHeader: se,
|
|
1487
|
-
TableColumn:
|
|
1584
|
+
TableColumn: Wt,
|
|
1488
1585
|
TableBody: ie,
|
|
1489
|
-
TableRow:
|
|
1586
|
+
TableRow: jt,
|
|
1490
1587
|
TableCell: Jt,
|
|
1491
1588
|
Table: ee,
|
|
1492
|
-
StaticData:
|
|
1493
|
-
LoaderAsync:
|
|
1494
|
-
LoaderAsyncResource:
|
|
1589
|
+
StaticData: xi(),
|
|
1590
|
+
LoaderAsync: Li(),
|
|
1591
|
+
LoaderAsyncResource: Xe()
|
|
1495
1592
|
});
|
|
1496
1593
|
export {
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1594
|
+
lt as EmptyView,
|
|
1595
|
+
Is as GridList,
|
|
1596
|
+
As as GridListItem,
|
|
1597
|
+
Yi as List,
|
|
1501
1598
|
zt as ListFilter,
|
|
1502
1599
|
Ht as ListItem,
|
|
1503
1600
|
kt as ListItemView,
|
|
1504
|
-
|
|
1601
|
+
Fs as ListItemViewContent,
|
|
1505
1602
|
Kt as ListLoaderAsync,
|
|
1506
1603
|
Ot as ListSorting,
|
|
1507
1604
|
Gt as ListStaticData,
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1605
|
+
_n as ListSummary,
|
|
1606
|
+
Qi as TypedList,
|
|
1607
|
+
Pi as TypedListFilter,
|
|
1608
|
+
Mi as TypedListItem,
|
|
1609
|
+
Li as TypedListLoaderAsync,
|
|
1610
|
+
Ai as TypedListSorting,
|
|
1611
|
+
xi as TypedListStaticData,
|
|
1612
|
+
ro as typedList,
|
|
1613
|
+
S as useList
|
|
1517
1614
|
};
|