xmlui 0.10.21 → 0.10.22
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/dist/lib/{index-BiS4wEuu.mjs → index-BaUZuvtZ.mjs} +736 -595
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-CB_cMi6U.mjs → initMock-BVLjWJxZ.mjs} +1 -1
- package/dist/lib/xmlui.d.ts +32 -0
- package/dist/lib/xmlui.mjs +1 -1
- package/dist/metadata/{collectedComponentMetadata-MFUg6aSX.mjs → collectedComponentMetadata-MZbCI1Ki.mjs} +734 -593
- package/dist/metadata/{initMock-Dw9wrVkQ.mjs → initMock-BkgwDrCY.mjs} +1 -1
- package/dist/metadata/style.css +1 -1
- package/dist/metadata/xmlui-metadata.mjs +1 -1
- package/dist/metadata/xmlui-metadata.umd.js +3 -3
- package/dist/scripts/package.json +1 -1
- package/dist/scripts/src/components/ComponentProvider.js +30 -2
- package/dist/scripts/src/components/Tabs/TabContext.js +26 -17
- package/dist/scripts/src/components/Tabs/TabItemNative.js +7 -2
- package/dist/scripts/src/components/Tabs/Tabs.js +22 -3
- package/dist/scripts/src/components/Tabs/Tabs.spec.js +362 -0
- package/dist/scripts/src/components/Tabs/TabsNative.js +28 -4
- package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +2 -3
- package/dist/standalone/xmlui-standalone.es.d.ts +34 -0
- package/dist/standalone/xmlui-standalone.umd.js +14 -14
- package/package.json +1 -1
|
@@ -39,6 +39,7 @@ import { useReactTable, getPaginationRowModel, getCoreRowModel, flexRender } fro
|
|
|
39
39
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
40
40
|
import { RenderPropSticky } from "react-sticky-el";
|
|
41
41
|
import * as HoverCard from "@radix-ui/react-hover-card";
|
|
42
|
+
import { useSpring, useInView, animated } from "@react-spring/web";
|
|
42
43
|
import Papa from "papaparse";
|
|
43
44
|
import { Root as Root$1, List, Trigger as Trigger$1, Content as Content$1 } from "@radix-ui/react-tabs";
|
|
44
45
|
import scrollIntoView from "scroll-into-view-if-needed";
|
|
@@ -49,12 +50,11 @@ import { usePopper } from "react-popper";
|
|
|
49
50
|
import * as RechartsPrimitive from "recharts";
|
|
50
51
|
import { Area, ResponsiveContainer, AreaChart as AreaChart$1, XAxis, YAxis, CartesianGrid, Tooltip as Tooltip$2, Legend as Legend$1, BarChart as BarChart$1, Bar, PieChart as PieChart$1, Pie, LabelList as LabelList$1, Sector, LineChart as LineChart$1, Line, Radar, RadarChart as RadarChart$1, PolarGrid, PolarAngleAxis, PolarRadiusAxis } from "recharts";
|
|
51
52
|
import { MemoryRouter, HashRouter, BrowserRouter } from "react-router-dom";
|
|
52
|
-
import { useSpring, useInView, animated } from "@react-spring/web";
|
|
53
53
|
import { AnimatePresence, motion } from "framer-motion";
|
|
54
54
|
const themeVars$13 = `'{"padding-Button": "var(--xmlui-padding-Button)", "paddingHorizontal-Button": "var(--xmlui-paddingHorizontal-Button, var(--xmlui-padding-Button))", "paddingVertical-Button": "var(--xmlui-paddingVertical-Button, var(--xmlui-padding-Button))", "paddingLeft-Button": "var(--xmlui-paddingLeft-Button, var(--xmlui-paddingHorizontal-Button, var(--xmlui-padding-Button)))", "paddingRight-Button": "var(--xmlui-paddingRight-Button, var(--xmlui-paddingHorizontal-Button, var(--xmlui-padding-Button)))", "paddingTop-Button": "var(--xmlui-paddingTop-Button, var(--xmlui-paddingVertical-Button, var(--xmlui-padding-Button)))", "paddingBottom-Button": "var(--xmlui-paddingBottom-Button, var(--xmlui-paddingVertical-Button, var(--xmlui-padding-Button)))", "padding-Button-xs": "var(--xmlui-padding-Button-xs)", "paddingHorizontal-Button-xs": "var(--xmlui-paddingHorizontal-Button-xs, var(--xmlui-padding-Button-xs))", "paddingVertical-Button-xs": "var(--xmlui-paddingVertical-Button-xs, var(--xmlui-padding-Button-xs))", "paddingLeft-Button-xs": "var(--xmlui-paddingLeft-Button-xs, var(--xmlui-paddingHorizontal-Button-xs, var(--xmlui-padding-Button-xs)))", "paddingRight-Button-xs": "var(--xmlui-paddingRight-Button-xs, var(--xmlui-paddingHorizontal-Button-xs, var(--xmlui-padding-Button-xs)))", "paddingTop-Button-xs": "var(--xmlui-paddingTop-Button-xs, var(--xmlui-paddingVertical-Button-xs, var(--xmlui-padding-Button-xs)))", "paddingBottom-Button-xs": "var(--xmlui-paddingBottom-Button-xs, var(--xmlui-paddingVertical-Button-xs, var(--xmlui-padding-Button-xs)))", "padding-Button-sm": "var(--xmlui-padding-Button-sm)", "paddingHorizontal-Button-sm": "var(--xmlui-paddingHorizontal-Button-sm, var(--xmlui-padding-Button-sm))", "paddingVertical-Button-sm": "var(--xmlui-paddingVertical-Button-sm, var(--xmlui-padding-Button-sm))", "paddingLeft-Button-sm": "var(--xmlui-paddingLeft-Button-sm, var(--xmlui-paddingHorizontal-Button-sm, var(--xmlui-padding-Button-sm)))", "paddingRight-Button-sm": "var(--xmlui-paddingRight-Button-sm, var(--xmlui-paddingHorizontal-Button-sm, var(--xmlui-padding-Button-sm)))", "paddingTop-Button-sm": "var(--xmlui-paddingTop-Button-sm, var(--xmlui-paddingVertical-Button-sm, var(--xmlui-padding-Button-sm)))", "paddingBottom-Button-sm": "var(--xmlui-paddingBottom-Button-sm, var(--xmlui-paddingVertical-Button-sm, var(--xmlui-padding-Button-sm)))", "padding-Button-md": "var(--xmlui-padding-Button-md)", "paddingHorizontal-Button-md": "var(--xmlui-paddingHorizontal-Button-md, var(--xmlui-padding-Button-md))", "paddingVertical-Button-md": "var(--xmlui-paddingVertical-Button-md, var(--xmlui-padding-Button-md))", "paddingLeft-Button-md": "var(--xmlui-paddingLeft-Button-md, var(--xmlui-paddingHorizontal-Button-md, var(--xmlui-padding-Button-md)))", "paddingRight-Button-md": "var(--xmlui-paddingRight-Button-md, var(--xmlui-paddingHorizontal-Button-md, var(--xmlui-padding-Button-md)))", "paddingTop-Button-md": "var(--xmlui-paddingTop-Button-md, var(--xmlui-paddingVertical-Button-md, var(--xmlui-padding-Button-md)))", "paddingBottom-Button-md": "var(--xmlui-paddingBottom-Button-md, var(--xmlui-paddingVertical-Button-md, var(--xmlui-padding-Button-md)))", "padding-Button-lg": "var(--xmlui-padding-Button-lg)", "paddingHorizontal-Button-lg": "var(--xmlui-paddingHorizontal-Button-lg, var(--xmlui-padding-Button-lg))", "paddingVertical-Button-lg": "var(--xmlui-paddingVertical-Button-lg, var(--xmlui-padding-Button-lg))", "paddingLeft-Button-lg": "var(--xmlui-paddingLeft-Button-lg, var(--xmlui-paddingHorizontal-Button-lg, var(--xmlui-padding-Button-lg)))", "paddingRight-Button-lg": "var(--xmlui-paddingRight-Button-lg, var(--xmlui-paddingHorizontal-Button-lg, var(--xmlui-padding-Button-lg)))", "paddingTop-Button-lg": "var(--xmlui-paddingTop-Button-lg, var(--xmlui-paddingVertical-Button-lg, var(--xmlui-padding-Button-lg)))", "paddingBottom-Button-lg": "var(--xmlui-paddingBottom-Button-lg, var(--xmlui-paddingVertical-Button-lg, var(--xmlui-padding-Button-lg)))", "width-Button": "var(--xmlui-width-Button)", "height-Button": "var(--xmlui-height-Button)", "fontFamily-Button-primary-solid": "var(--xmlui-fontFamily-Button-primary-solid)", "fontSize-Button-primary-solid": "var(--xmlui-fontSize-Button-primary-solid)", "fontWeight-Button-primary-solid": "var(--xmlui-fontWeight-Button-primary-solid)", "borderRadius-Button-primary-solid": "var(--xmlui-borderRadius-Button-primary-solid)", "borderWidth-Button-primary-solid": "var(--xmlui-borderWidth-Button-primary-solid)", "borderColor-Button-primary-solid": "var(--xmlui-borderColor-Button-primary-solid)", "borderStyle-Button-primary-solid": "var(--xmlui-borderStyle-Button-primary-solid)", "backgroundColor-Button-primary-solid": "var(--xmlui-backgroundColor-Button-primary-solid)", "textColor-Button-primary-solid": "var(--xmlui-textColor-Button-primary-solid)", "boxShadow-Button-primary-solid": "var(--xmlui-boxShadow-Button-primary-solid)", "outlineWidth-Button-primary-solid--focus": "var(--xmlui-outlineWidth-Button-primary-solid--focus)", "outlineColor-Button-primary-solid--focus": "var(--xmlui-outlineColor-Button-primary-solid--focus)", "outlineStyle-Button-primary-solid--focus": "var(--xmlui-outlineStyle-Button-primary-solid--focus)", "outlineOffset-Button-primary-solid--focus": "var(--xmlui-outlineOffset-Button-primary-solid--focus)", "borderColor-Button-primary-solid--hover": "var(--xmlui-borderColor-Button-primary-solid--hover)", "textColor-Button-primary-solid--hover": "var(--xmlui-textColor-Button-primary-solid--hover)", "backgroundColor-Button-primary-solid--hover": "var(--xmlui-backgroundColor-Button-primary-solid--hover)", "borderColor-Button-primary-solid--active": "var(--xmlui-borderColor-Button-primary-solid--active)", "textColor-Button-primary-solid--active": "var(--xmlui-textColor-Button-primary-solid--active)", "boxShadow-Button-primary-solid--active": "var(--xmlui-boxShadow-Button-primary-solid--active)", "backgroundColor-Button-primary-solid--active": "var(--xmlui-backgroundColor-Button-primary-solid--active)", "backgroundColor-Button--disabled": "var(--xmlui-backgroundColor-Button--disabled)", "textColor-Button--disabled": "var(--xmlui-textColor-Button--disabled)", "borderColor-Button--disabled": "var(--xmlui-borderColor-Button--disabled)", "fontFamily-Button-secondary-solid": "var(--xmlui-fontFamily-Button-secondary-solid)", "fontSize-Button-secondary-solid": "var(--xmlui-fontSize-Button-secondary-solid)", "fontWeight-Button-secondary-solid": "var(--xmlui-fontWeight-Button-secondary-solid)", "borderRadius-Button-secondary-solid": "var(--xmlui-borderRadius-Button-secondary-solid)", "borderWidth-Button-secondary-solid": "var(--xmlui-borderWidth-Button-secondary-solid)", "borderColor-Button-secondary-solid": "var(--xmlui-borderColor-Button-secondary-solid)", "borderStyle-Button-secondary-solid": "var(--xmlui-borderStyle-Button-secondary-solid)", "backgroundColor-Button-secondary-solid": "var(--xmlui-backgroundColor-Button-secondary-solid)", "textColor-Button-secondary-solid": "var(--xmlui-textColor-Button-secondary-solid)", "boxShadow-Button-secondary-solid": "var(--xmlui-boxShadow-Button-secondary-solid)", "outlineWidth-Button-secondary-solid--focus": "var(--xmlui-outlineWidth-Button-secondary-solid--focus)", "outlineColor-Button-secondary-solid--focus": "var(--xmlui-outlineColor-Button-secondary-solid--focus)", "outlineStyle-Button-secondary-solid--focus": "var(--xmlui-outlineStyle-Button-secondary-solid--focus)", "outlineOffset-Button-secondary-solid--focus": "var(--xmlui-outlineOffset-Button-secondary-solid--focus)", "borderColor-Button-secondary-solid--hover": "var(--xmlui-borderColor-Button-secondary-solid--hover)", "textColor-Button-secondary-solid--hover": "var(--xmlui-textColor-Button-secondary-solid--hover)", "backgroundColor-Button-secondary-solid--hover": "var(--xmlui-backgroundColor-Button-secondary-solid--hover)", "borderColor-Button-secondary-solid--active": "var(--xmlui-borderColor-Button-secondary-solid--active)", "textColor-Button-secondary-solid--active": "var(--xmlui-textColor-Button-secondary-solid--active)", "boxShadow-Button-secondary-solid--active": "var(--xmlui-boxShadow-Button-secondary-solid--active)", "backgroundColor-Button-secondary-solid--active": "var(--xmlui-backgroundColor-Button-secondary-solid--active)", "fontFamily-Button-attention-solid": "var(--xmlui-fontFamily-Button-attention-solid)", "fontSize-Button-attention-solid": "var(--xmlui-fontSize-Button-attention-solid)", "fontWeight-Button-attention-solid": "var(--xmlui-fontWeight-Button-attention-solid)", "borderRadius-Button-attention-solid": "var(--xmlui-borderRadius-Button-attention-solid)", "borderWidth-Button-attention-solid": "var(--xmlui-borderWidth-Button-attention-solid)", "borderColor-Button-attention-solid": "var(--xmlui-borderColor-Button-attention-solid)", "borderStyle-Button-attention-solid": "var(--xmlui-borderStyle-Button-attention-solid)", "backgroundColor-Button-attention-solid": "var(--xmlui-backgroundColor-Button-attention-solid)", "textColor-Button-attention-solid": "var(--xmlui-textColor-Button-attention-solid)", "boxShadow-Button-attention-solid": "var(--xmlui-boxShadow-Button-attention-solid)", "outlineWidth-Button-attention-solid--focus": "var(--xmlui-outlineWidth-Button-attention-solid--focus)", "outlineColor-Button-attention-solid--focus": "var(--xmlui-outlineColor-Button-attention-solid--focus)", "outlineStyle-Button-attention-solid--focus": "var(--xmlui-outlineStyle-Button-attention-solid--focus)", "outlineOffset-Button-attention-solid--focus": "var(--xmlui-outlineOffset-Button-attention-solid--focus)", "borderColor-Button-attention-solid--hover": "var(--xmlui-borderColor-Button-attention-solid--hover)", "textColor-Button-attention-solid--hover": "var(--xmlui-textColor-Button-attention-solid--hover)", "backgroundColor-Button-attention-solid--hover": "var(--xmlui-backgroundColor-Button-attention-solid--hover)", "borderColor-Button-attention-solid--active": "var(--xmlui-borderColor-Button-attention-solid--active)", "textColor-Button-attention-solid--active": "var(--xmlui-textColor-Button-attention-solid--active)", "boxShadow-Button-attention-solid--active": "var(--xmlui-boxShadow-Button-attention-solid--active)", "backgroundColor-Button-attention-solid--active": "var(--xmlui-backgroundColor-Button-attention-solid--active)", "fontFamily-Button-primary-outlined": "var(--xmlui-fontFamily-Button-primary-outlined)", "fontSize-Button-primary-outlined": "var(--xmlui-fontSize-Button-primary-outlined)", "fontWeight-Button-primary-outlined": "var(--xmlui-fontWeight-Button-primary-outlined)", "borderRadius-Button-primary-outlined": "var(--xmlui-borderRadius-Button-primary-outlined)", "borderWidth-Button-primary-outlined": "var(--xmlui-borderWidth-Button-primary-outlined)", "borderColor-Button-primary-outlined": "var(--xmlui-borderColor-Button-primary-outlined)", "borderStyle-Button-primary-outlined": "var(--xmlui-borderStyle-Button-primary-outlined)", "textColor-Button-primary-outlined": "var(--xmlui-textColor-Button-primary-outlined)", "boxShadow-Button-primary-outlined": "var(--xmlui-boxShadow-Button-primary-outlined)", "outlineWidth-Button-primary-outlined--focus": "var(--xmlui-outlineWidth-Button-primary-outlined--focus)", "outlineColor-Button-primary-outlined--focus": "var(--xmlui-outlineColor-Button-primary-outlined--focus)", "outlineStyle-Button-primary-outlined--focus": "var(--xmlui-outlineStyle-Button-primary-outlined--focus)", "outlineOffset-Button-primary-outlined--focus": "var(--xmlui-outlineOffset-Button-primary-outlined--focus)", "borderColor-Button-primary-outlined--hover": "var(--xmlui-borderColor-Button-primary-outlined--hover)", "backgroundColor-Button-primary-outlined--hover": "var(--xmlui-backgroundColor-Button-primary-outlined--hover)", "textColor-Button-primary-outlined--hover": "var(--xmlui-textColor-Button-primary-outlined--hover)", "borderColor-Button-primary-outlined--active": "var(--xmlui-borderColor-Button-primary-outlined--active)", "backgroundColor-Button-primary-outlined--active": "var(--xmlui-backgroundColor-Button-primary-outlined--active)", "textColor-Button-primary-outlined--active": "var(--xmlui-textColor-Button-primary-outlined--active)", "fontFamily-Button-secondary-outlined": "var(--xmlui-fontFamily-Button-secondary-outlined)", "fontSize-Button-secondary-outlined": "var(--xmlui-fontSize-Button-secondary-outlined)", "fontWeight-Button-secondary-outlined": "var(--xmlui-fontWeight-Button-secondary-outlined)", "borderRadius-Button-secondary-outlined": "var(--xmlui-borderRadius-Button-secondary-outlined)", "borderWidth-Button-secondary-outlined": "var(--xmlui-borderWidth-Button-secondary-outlined)", "borderColor-Button-secondary-outlined": "var(--xmlui-borderColor-Button-secondary-outlined)", "borderStyle-Button-secondary-outlined": "var(--xmlui-borderStyle-Button-secondary-outlined)", "textColor-Button-secondary-outlined": "var(--xmlui-textColor-Button-secondary-outlined)", "boxShadow-Button-secondary-outlined": "var(--xmlui-boxShadow-Button-secondary-outlined)", "outlineWidth-Button-secondary-outlined--focus": "var(--xmlui-outlineWidth-Button-secondary-outlined--focus)", "outlineColor-Button-secondary-outlined--focus": "var(--xmlui-outlineColor-Button-secondary-outlined--focus)", "outlineStyle-Button-secondary-outlined--focus": "var(--xmlui-outlineStyle-Button-secondary-outlined--focus)", "outlineOffset-Button-secondary-outlined--focus": "var(--xmlui-outlineOffset-Button-secondary-outlined--focus)", "borderColor-Button-secondary-outlined--hover": "var(--xmlui-borderColor-Button-secondary-outlined--hover)", "backgroundColor-Button-secondary-outlined--hover": "var(--xmlui-backgroundColor-Button-secondary-outlined--hover)", "textColor-Button-secondary-outlined--hover": "var(--xmlui-textColor-Button-secondary-outlined--hover)", "borderColor-Button-secondary-outlined--active": "var(--xmlui-borderColor-Button-secondary-outlined--active)", "backgroundColor-Button-secondary-outlined--active": "var(--xmlui-backgroundColor-Button-secondary-outlined--active)", "textColor-Button-secondary-outlined--active": "var(--xmlui-textColor-Button-secondary-outlined--active)", "fontFamily-Button-attention-outlined": "var(--xmlui-fontFamily-Button-attention-outlined)", "fontSize-Button-attention-outlined": "var(--xmlui-fontSize-Button-attention-outlined)", "fontWeight-Button-attention-outlined": "var(--xmlui-fontWeight-Button-attention-outlined)", "borderRadius-Button-attention-outlined": "var(--xmlui-borderRadius-Button-attention-outlined)", "borderWidth-Button-attention-outlined": "var(--xmlui-borderWidth-Button-attention-outlined)", "borderColor-Button-attention-outlined": "var(--xmlui-borderColor-Button-attention-outlined)", "borderStyle-Button-attention-outlined": "var(--xmlui-borderStyle-Button-attention-outlined)", "textColor-Button-attention-outlined": "var(--xmlui-textColor-Button-attention-outlined)", "boxShadow-Button-attention-outlined": "var(--xmlui-boxShadow-Button-attention-outlined)", "outlineWidth-Button-attention-outlined--focus": "var(--xmlui-outlineWidth-Button-attention-outlined--focus)", "outlineColor-Button-attention-outlined--focus": "var(--xmlui-outlineColor-Button-attention-outlined--focus)", "outlineStyle-Button-attention-outlined--focus": "var(--xmlui-outlineStyle-Button-attention-outlined--focus)", "outlineOffset-Button-attention-outlined--focus": "var(--xmlui-outlineOffset-Button-attention-outlined--focus)", "borderColor-Button-attention-outlined--hover": "var(--xmlui-borderColor-Button-attention-outlined--hover)", "backgroundColor-Button-attention-outlined--hover": "var(--xmlui-backgroundColor-Button-attention-outlined--hover)", "textColor-Button-attention-outlined--hover": "var(--xmlui-textColor-Button-attention-outlined--hover)", "borderColor-Button-attention-outlined--active": "var(--xmlui-borderColor-Button-attention-outlined--active)", "backgroundColor-Button-attention-outlined--active": "var(--xmlui-backgroundColor-Button-attention-outlined--active)", "textColor-Button-attention-outlined--active": "var(--xmlui-textColor-Button-attention-outlined--active)", "fontFamily-Button-primary-ghost": "var(--xmlui-fontFamily-Button-primary-ghost)", "fontSize-Button-primary-ghost": "var(--xmlui-fontSize-Button-primary-ghost)", "fontWeight-Button-primary-ghost": "var(--xmlui-fontWeight-Button-primary-ghost)", "borderRadius-Button-primary-ghost": "var(--xmlui-borderRadius-Button-primary-ghost)", "borderWidth-Button-primary-ghost": "var(--xmlui-borderWidth-Button-primary-ghost)", "textColor-Button-primary-ghost": "var(--xmlui-textColor-Button-primary-ghost)", "outlineWidth-Button-primary-ghost--focus": "var(--xmlui-outlineWidth-Button-primary-ghost--focus)", "outlineColor-Button-primary-ghost--focus": "var(--xmlui-outlineColor-Button-primary-ghost--focus)", "outlineStyle-Button-primary-ghost--focus": "var(--xmlui-outlineStyle-Button-primary-ghost--focus)", "outlineOffset-Button-primary-ghost--focus": "var(--xmlui-outlineOffset-Button-primary-ghost--focus)", "backgroundColor-Button-primary-ghost--hover": "var(--xmlui-backgroundColor-Button-primary-ghost--hover)", "textColor-Button-primary-ghost--hover": "var(--xmlui-textColor-Button-primary-ghost--hover)", "backgroundColor-Button-primary-ghost--active": "var(--xmlui-backgroundColor-Button-primary-ghost--active)", "textColor-Button-primary-ghost--active": "var(--xmlui-textColor-Button-primary-ghost--active)", "fontFamily-Button-secondary-ghost": "var(--xmlui-fontFamily-Button-secondary-ghost)", "fontSize-Button-secondary-ghost": "var(--xmlui-fontSize-Button-secondary-ghost)", "fontWeight-Button-secondary-ghost": "var(--xmlui-fontWeight-Button-secondary-ghost)", "borderRadius-Button-secondary-ghost": "var(--xmlui-borderRadius-Button-secondary-ghost)", "borderWidth-Button-secondary-ghost": "var(--xmlui-borderWidth-Button-secondary-ghost)", "textColor-Button-secondary-ghost": "var(--xmlui-textColor-Button-secondary-ghost)", "outlineWidth-Button-secondary-ghost--focus": "var(--xmlui-outlineWidth-Button-secondary-ghost--focus)", "outlineColor-Button-secondary-ghost--focus": "var(--xmlui-outlineColor-Button-secondary-ghost--focus)", "outlineStyle-Button-secondary-ghost--focus": "var(--xmlui-outlineStyle-Button-secondary-ghost--focus)", "outlineOffset-Button-secondary-ghost--focus": "var(--xmlui-outlineOffset-Button-secondary-ghost--focus)", "backgroundColor-Button-secondary-ghost--hover": "var(--xmlui-backgroundColor-Button-secondary-ghost--hover)", "textColor-Button-secondary-ghost--hover": "var(--xmlui-textColor-Button-secondary-ghost--hover)", "backgroundColor-Button-secondary-ghost--active": "var(--xmlui-backgroundColor-Button-secondary-ghost--active)", "textColor-Button-secondary-ghost--active": "var(--xmlui-textColor-Button-secondary-ghost--active)", "fontFamily-Button-attention-ghost": "var(--xmlui-fontFamily-Button-attention-ghost)", "fontSize-Button-attention-ghost": "var(--xmlui-fontSize-Button-attention-ghost)", "fontWeight-Button-attention-ghost": "var(--xmlui-fontWeight-Button-attention-ghost)", "borderRadius-Button-attention-ghost": "var(--xmlui-borderRadius-Button-attention-ghost)", "borderWidth-Button-attention-ghost": "var(--xmlui-borderWidth-Button-attention-ghost)", "textColor-Button-attention-ghost": "var(--xmlui-textColor-Button-attention-ghost)", "outlineWidth-Button-attention-ghost--focus": "var(--xmlui-outlineWidth-Button-attention-ghost--focus)", "outlineColor-Button-attention-ghost--focus": "var(--xmlui-outlineColor-Button-attention-ghost--focus)", "outlineStyle-Button-attention-ghost--focus": "var(--xmlui-outlineStyle-Button-attention-ghost--focus)", "outlineOffset-Button-attention-ghost--focus": "var(--xmlui-outlineOffset-Button-attention-ghost--focus)", "backgroundColor-Button-attention-ghost--hover": "var(--xmlui-backgroundColor-Button-attention-ghost--hover)", "textColor-Button-attention-ghost--hover": "var(--xmlui-textColor-Button-attention-ghost--hover)", "backgroundColor-Button-attention-ghost--active": "var(--xmlui-backgroundColor-Button-attention-ghost--active)", "textColor-Button-attention-ghost--active": "var(--xmlui-textColor-Button-attention-ghost--active)"}'`;
|
|
55
55
|
const button$2 = "_button_1c10z_14";
|
|
56
|
-
const alignStart = "_alignStart_1c10z_30";
|
|
57
|
-
const alignEnd = "_alignEnd_1c10z_33";
|
|
56
|
+
const alignStart$1 = "_alignStart_1c10z_30";
|
|
57
|
+
const alignEnd$1 = "_alignEnd_1c10z_33";
|
|
58
58
|
const buttonHorizontal = "_buttonHorizontal_1c10z_39";
|
|
59
59
|
const xs$1 = "_xs_1c10z_42";
|
|
60
60
|
const sm$1 = "_sm_1c10z_49";
|
|
@@ -73,8 +73,8 @@ const ghostAttention = "_ghostAttention_1c10z_366";
|
|
|
73
73
|
const styles$1k = {
|
|
74
74
|
themeVars: themeVars$13,
|
|
75
75
|
button: button$2,
|
|
76
|
-
alignStart,
|
|
77
|
-
alignEnd,
|
|
76
|
+
alignStart: alignStart$1,
|
|
77
|
+
alignEnd: alignEnd$1,
|
|
78
78
|
buttonHorizontal,
|
|
79
79
|
xs: xs$1,
|
|
80
80
|
sm: sm$1,
|
|
@@ -27745,7 +27745,7 @@ const headerRow = "_headerRow_1ylgd_97";
|
|
|
27745
27745
|
const columnCell = "_columnCell_1ylgd_101";
|
|
27746
27746
|
const cell = "_cell_1ylgd_102";
|
|
27747
27747
|
const alignTop = "_alignTop_1ylgd_110";
|
|
27748
|
-
const alignCenter = "_alignCenter_1ylgd_114";
|
|
27748
|
+
const alignCenter$1 = "_alignCenter_1ylgd_114";
|
|
27749
27749
|
const alignBottom = "_alignBottom_1ylgd_118";
|
|
27750
27750
|
const table = "_table_1ylgd_46";
|
|
27751
27751
|
const row$1 = "_row_1ylgd_126";
|
|
@@ -27774,7 +27774,7 @@ const styles$C = {
|
|
|
27774
27774
|
columnCell,
|
|
27775
27775
|
cell,
|
|
27776
27776
|
alignTop,
|
|
27777
|
-
alignCenter,
|
|
27777
|
+
alignCenter: alignCenter$1,
|
|
27778
27778
|
alignBottom,
|
|
27779
27779
|
table,
|
|
27780
27780
|
row: row$1,
|
|
@@ -34422,6 +34422,305 @@ async function delay(_executionContext, timeoutInMs, callback) {
|
|
|
34422
34422
|
await (callback == null ? void 0 : callback());
|
|
34423
34423
|
}
|
|
34424
34424
|
const timedAction = createAction("delay", delay);
|
|
34425
|
+
const AnimatedComponent = animated(
|
|
34426
|
+
forwardRef(function InlineComponentDef(props, ref) {
|
|
34427
|
+
const { children, ...rest } = props;
|
|
34428
|
+
if (!React__default.isValidElement(children)) {
|
|
34429
|
+
return children;
|
|
34430
|
+
}
|
|
34431
|
+
return React__default.cloneElement(children, { ...rest, ref });
|
|
34432
|
+
})
|
|
34433
|
+
);
|
|
34434
|
+
const defaultProps$p = {
|
|
34435
|
+
delay: 0,
|
|
34436
|
+
animateWhenInView: false,
|
|
34437
|
+
reverse: false,
|
|
34438
|
+
loop: false,
|
|
34439
|
+
once: false
|
|
34440
|
+
};
|
|
34441
|
+
const parseAnimation = (animation) => {
|
|
34442
|
+
if (typeof animation === "object") {
|
|
34443
|
+
return animation;
|
|
34444
|
+
}
|
|
34445
|
+
const presetAnimations = {
|
|
34446
|
+
fadein: {
|
|
34447
|
+
from: { opacity: 0 },
|
|
34448
|
+
to: { opacity: 1 }
|
|
34449
|
+
},
|
|
34450
|
+
fadeout: {
|
|
34451
|
+
from: { opacity: 1 },
|
|
34452
|
+
to: { opacity: 0 }
|
|
34453
|
+
},
|
|
34454
|
+
slidein: {
|
|
34455
|
+
from: { transform: "translateX(-100%)" },
|
|
34456
|
+
to: { transform: "translateX(0%)" }
|
|
34457
|
+
},
|
|
34458
|
+
slideout: {
|
|
34459
|
+
from: { transform: "translateX(0%)" },
|
|
34460
|
+
to: { transform: "translateX(100%)" }
|
|
34461
|
+
},
|
|
34462
|
+
popin: {
|
|
34463
|
+
from: { transform: "scale(0.8)", opacity: 0 },
|
|
34464
|
+
to: { transform: "scale(1)", opacity: 1 }
|
|
34465
|
+
},
|
|
34466
|
+
popout: {
|
|
34467
|
+
from: { transform: "scale(1)", opacity: 1 },
|
|
34468
|
+
to: { transform: "scale(0.8)", opacity: 0 }
|
|
34469
|
+
},
|
|
34470
|
+
flipin: {
|
|
34471
|
+
from: { transform: "rotateY(90deg)", opacity: 0 },
|
|
34472
|
+
to: { transform: "rotateY(0deg)", opacity: 1 }
|
|
34473
|
+
},
|
|
34474
|
+
flipout: {
|
|
34475
|
+
from: { transform: "rotateY(0deg)", opacity: 1 },
|
|
34476
|
+
to: { transform: "rotateY(90deg)", opacity: 0 }
|
|
34477
|
+
},
|
|
34478
|
+
rotatein: {
|
|
34479
|
+
from: { transform: "rotate(-180deg)", opacity: 0 },
|
|
34480
|
+
to: { transform: "rotate(0deg)", opacity: 1 }
|
|
34481
|
+
},
|
|
34482
|
+
rotateout: {
|
|
34483
|
+
from: { transform: "rotate(0deg)", opacity: 1 },
|
|
34484
|
+
to: { transform: "rotate(180deg)", opacity: 0 }
|
|
34485
|
+
},
|
|
34486
|
+
zoomin: {
|
|
34487
|
+
from: { transform: "scale(0)", opacity: 0 },
|
|
34488
|
+
to: { transform: "scale(1)", opacity: 1 }
|
|
34489
|
+
},
|
|
34490
|
+
zoomout: {
|
|
34491
|
+
from: { transform: "scale(1)", opacity: 1 },
|
|
34492
|
+
to: { transform: "scale(0)", opacity: 0 }
|
|
34493
|
+
}
|
|
34494
|
+
};
|
|
34495
|
+
return presetAnimations[animation] || { from: {}, to: {} };
|
|
34496
|
+
};
|
|
34497
|
+
function parseAnimationOptionValue(name, value) {
|
|
34498
|
+
switch (name) {
|
|
34499
|
+
case "duration":
|
|
34500
|
+
case "delay":
|
|
34501
|
+
const num = parseInt(value, 10);
|
|
34502
|
+
return isNaN(num) ? void 0 : num;
|
|
34503
|
+
case "animateWhenInView":
|
|
34504
|
+
case "reverse":
|
|
34505
|
+
case "loop":
|
|
34506
|
+
case "once":
|
|
34507
|
+
const lowerVal = value.toLowerCase();
|
|
34508
|
+
if (lowerVal === "true" || lowerVal === "1" || lowerVal === "yes") return true;
|
|
34509
|
+
if (lowerVal === "false" || lowerVal === "0" || lowerVal === "no") return false;
|
|
34510
|
+
return void 0;
|
|
34511
|
+
default:
|
|
34512
|
+
return void 0;
|
|
34513
|
+
}
|
|
34514
|
+
}
|
|
34515
|
+
function parseAnimationOptions(input2) {
|
|
34516
|
+
if (isPlainObject(input2)) {
|
|
34517
|
+
return input2;
|
|
34518
|
+
}
|
|
34519
|
+
if (typeof input2 === "string") {
|
|
34520
|
+
const options2 = {};
|
|
34521
|
+
const values = input2.split(";").map((value) => value.trim()).filter((value) => value.length > 0);
|
|
34522
|
+
for (const value of values) {
|
|
34523
|
+
if (value.includes(":")) {
|
|
34524
|
+
const [name, val] = value.split(":").map((part) => part.trim());
|
|
34525
|
+
if (name && val) {
|
|
34526
|
+
const parsedValue = parseAnimationOptionValue(name, val);
|
|
34527
|
+
if (parsedValue !== void 0) {
|
|
34528
|
+
options2[name] = parsedValue;
|
|
34529
|
+
}
|
|
34530
|
+
}
|
|
34531
|
+
} else {
|
|
34532
|
+
const booleanOptions = ["animateWhenInView", "reverse", "loop", "once"];
|
|
34533
|
+
if (booleanOptions.includes(value)) {
|
|
34534
|
+
options2[value] = true;
|
|
34535
|
+
} else if (value.startsWith("!") && value.length > 1) {
|
|
34536
|
+
const optionName = value.substring(1);
|
|
34537
|
+
if (booleanOptions.includes(optionName)) {
|
|
34538
|
+
options2[optionName] = false;
|
|
34539
|
+
}
|
|
34540
|
+
}
|
|
34541
|
+
}
|
|
34542
|
+
}
|
|
34543
|
+
return options2;
|
|
34544
|
+
}
|
|
34545
|
+
return {};
|
|
34546
|
+
}
|
|
34547
|
+
const Animation$1 = forwardRef(function Animation2({
|
|
34548
|
+
children,
|
|
34549
|
+
registerComponentApi,
|
|
34550
|
+
animation,
|
|
34551
|
+
duration,
|
|
34552
|
+
onStop,
|
|
34553
|
+
onStart,
|
|
34554
|
+
delay: delay2 = defaultProps$p.delay,
|
|
34555
|
+
animateWhenInView = defaultProps$p.animateWhenInView,
|
|
34556
|
+
reverse: reverse2 = defaultProps$p.reverse,
|
|
34557
|
+
loop = defaultProps$p.loop,
|
|
34558
|
+
once = defaultProps$p.once,
|
|
34559
|
+
...rest
|
|
34560
|
+
}, forwardedRef) {
|
|
34561
|
+
const [_animation] = useState(animation);
|
|
34562
|
+
const [toggle, setToggle] = useState(false);
|
|
34563
|
+
const [reset, setReset] = useState(false);
|
|
34564
|
+
const [count, setCount] = useState(0);
|
|
34565
|
+
const times = 1;
|
|
34566
|
+
useId();
|
|
34567
|
+
const animationSettings = useMemo(
|
|
34568
|
+
() => ({
|
|
34569
|
+
from: _animation.from,
|
|
34570
|
+
to: _animation.to,
|
|
34571
|
+
config: {
|
|
34572
|
+
..._animation.config,
|
|
34573
|
+
duration
|
|
34574
|
+
},
|
|
34575
|
+
delay: delay2,
|
|
34576
|
+
loop,
|
|
34577
|
+
reset,
|
|
34578
|
+
reverse: toggle,
|
|
34579
|
+
onRest: () => {
|
|
34580
|
+
onStop == null ? void 0 : onStop();
|
|
34581
|
+
if (loop) {
|
|
34582
|
+
if (reverse2) {
|
|
34583
|
+
setCount(count + 1);
|
|
34584
|
+
setToggle(!toggle);
|
|
34585
|
+
}
|
|
34586
|
+
setReset(true);
|
|
34587
|
+
} else {
|
|
34588
|
+
if (reverse2 && count < times) {
|
|
34589
|
+
setCount(count + 1);
|
|
34590
|
+
setToggle(!toggle);
|
|
34591
|
+
}
|
|
34592
|
+
}
|
|
34593
|
+
},
|
|
34594
|
+
onStart: () => {
|
|
34595
|
+
onStart == null ? void 0 : onStart();
|
|
34596
|
+
}
|
|
34597
|
+
}),
|
|
34598
|
+
[
|
|
34599
|
+
_animation.config,
|
|
34600
|
+
_animation.from,
|
|
34601
|
+
_animation.to,
|
|
34602
|
+
count,
|
|
34603
|
+
delay2,
|
|
34604
|
+
duration,
|
|
34605
|
+
loop,
|
|
34606
|
+
onStart,
|
|
34607
|
+
onStop,
|
|
34608
|
+
reset,
|
|
34609
|
+
once,
|
|
34610
|
+
reverse2,
|
|
34611
|
+
toggle
|
|
34612
|
+
]
|
|
34613
|
+
);
|
|
34614
|
+
const [springs, api] = useSpring(
|
|
34615
|
+
() => ({
|
|
34616
|
+
...animationSettings
|
|
34617
|
+
}),
|
|
34618
|
+
[animationSettings]
|
|
34619
|
+
);
|
|
34620
|
+
const [ref, animationStyles] = useInView(() => animationSettings, {
|
|
34621
|
+
once
|
|
34622
|
+
});
|
|
34623
|
+
const composedRef = ref ? composeRefs(ref, forwardedRef) : forwardedRef;
|
|
34624
|
+
const startAnimation = useCallback(() => {
|
|
34625
|
+
void api.start(_animation);
|
|
34626
|
+
return () => {
|
|
34627
|
+
api.stop();
|
|
34628
|
+
};
|
|
34629
|
+
}, [_animation, api]);
|
|
34630
|
+
const stopAnimation = useCallback(() => {
|
|
34631
|
+
api.stop();
|
|
34632
|
+
}, [api]);
|
|
34633
|
+
useEffect(() => {
|
|
34634
|
+
registerComponentApi == null ? void 0 : registerComponentApi({
|
|
34635
|
+
start: startAnimation,
|
|
34636
|
+
stop: stopAnimation
|
|
34637
|
+
});
|
|
34638
|
+
}, [registerComponentApi, startAnimation, stopAnimation]);
|
|
34639
|
+
const content2 = useMemo(() => {
|
|
34640
|
+
return Children.map(
|
|
34641
|
+
children,
|
|
34642
|
+
(child, index) => animateWhenInView ? /* @__PURE__ */ jsx(AnimatedComponent, { ...rest, style: animationStyles, ref: composedRef, children: child }, index) : /* @__PURE__ */ jsx(AnimatedComponent, { ...rest, style: springs, ref: forwardedRef, children: child }, index)
|
|
34643
|
+
);
|
|
34644
|
+
}, [animateWhenInView, animationStyles, children, springs, rest, composedRef, forwardedRef]);
|
|
34645
|
+
return content2;
|
|
34646
|
+
});
|
|
34647
|
+
const tooltipBehavior = {
|
|
34648
|
+
name: "tooltip",
|
|
34649
|
+
canAttach: (node) => {
|
|
34650
|
+
var _a2, _b;
|
|
34651
|
+
const tooltipText = (_a2 = node.props) == null ? void 0 : _a2.tooltip;
|
|
34652
|
+
const tooltipMarkdown = (_b = node.props) == null ? void 0 : _b.tooltipMarkdown;
|
|
34653
|
+
return !!tooltipText || !!tooltipMarkdown;
|
|
34654
|
+
},
|
|
34655
|
+
attach: (context, node) => {
|
|
34656
|
+
var _a2, _b, _c;
|
|
34657
|
+
const { extractValue } = context;
|
|
34658
|
+
const tooltipText = extractValue((_a2 = context.node.props) == null ? void 0 : _a2.tooltip, true);
|
|
34659
|
+
const tooltipMarkdown = extractValue((_b = context.node.props) == null ? void 0 : _b.tooltipMarkdown, true);
|
|
34660
|
+
const tooltipOptions = extractValue((_c = context.node.props) == null ? void 0 : _c.tooltipOptions, true);
|
|
34661
|
+
const parsedOptions = parseTooltipOptions(tooltipOptions);
|
|
34662
|
+
return /* @__PURE__ */ jsx(Tooltip, { text: tooltipText, markdown: tooltipMarkdown, ...parsedOptions, children: node });
|
|
34663
|
+
}
|
|
34664
|
+
};
|
|
34665
|
+
const animationBehavior = {
|
|
34666
|
+
name: "animation",
|
|
34667
|
+
canAttach: (node) => {
|
|
34668
|
+
var _a2;
|
|
34669
|
+
return !!((_a2 = node.props) == null ? void 0 : _a2.animation);
|
|
34670
|
+
},
|
|
34671
|
+
attach: (context, node) => {
|
|
34672
|
+
var _a2, _b;
|
|
34673
|
+
const { extractValue } = context;
|
|
34674
|
+
const animation = extractValue((_a2 = context.node.props) == null ? void 0 : _a2.animation, true);
|
|
34675
|
+
const animationOptions = extractValue((_b = context.node.props) == null ? void 0 : _b.animationOptions, true);
|
|
34676
|
+
const parsedOptions = parseAnimationOptions(animationOptions);
|
|
34677
|
+
return /* @__PURE__ */ jsx(Animation$1, { animation: parseAnimation(animation), ...parsedOptions, children: context.node.type === "ModalDialog" ? cloneElement(node, {
|
|
34678
|
+
externalAnimation: true
|
|
34679
|
+
}) : node });
|
|
34680
|
+
}
|
|
34681
|
+
};
|
|
34682
|
+
const labelBehavior = {
|
|
34683
|
+
name: "label",
|
|
34684
|
+
canAttach: (node, metadata) => {
|
|
34685
|
+
var _a2, _b;
|
|
34686
|
+
if ((_a2 = metadata == null ? void 0 : metadata.props) == null ? void 0 : _a2.label) {
|
|
34687
|
+
return false;
|
|
34688
|
+
} else if (!((_b = node.props) == null ? void 0 : _b.label)) {
|
|
34689
|
+
return false;
|
|
34690
|
+
}
|
|
34691
|
+
return true;
|
|
34692
|
+
},
|
|
34693
|
+
attach: (context, node) => {
|
|
34694
|
+
var _a2;
|
|
34695
|
+
const { extractValue, node: componentNode, className } = context;
|
|
34696
|
+
const label2 = extractValue.asOptionalString(componentNode.props.label);
|
|
34697
|
+
const labelPosition = extractValue(componentNode.props.labelPosition);
|
|
34698
|
+
const labelWidth = extractValue.asOptionalString(componentNode.props.labelWidth);
|
|
34699
|
+
const labelBreak2 = extractValue.asOptionalBoolean(componentNode.props.labelBreak);
|
|
34700
|
+
const required2 = extractValue.asOptionalBoolean(componentNode.props.required);
|
|
34701
|
+
const enabled2 = extractValue.asOptionalBoolean(componentNode.props.enabled, true);
|
|
34702
|
+
const shrinkToLabel2 = extractValue.asOptionalBoolean(componentNode.props.shrinkToLabel);
|
|
34703
|
+
const style2 = extractValue(componentNode.props.style);
|
|
34704
|
+
const readOnly2 = extractValue.asOptionalBoolean(componentNode.props.readOnly);
|
|
34705
|
+
return /* @__PURE__ */ jsx(
|
|
34706
|
+
ItemWithLabel,
|
|
34707
|
+
{
|
|
34708
|
+
labelPosition,
|
|
34709
|
+
label: label2,
|
|
34710
|
+
labelWidth,
|
|
34711
|
+
labelBreak: labelBreak2,
|
|
34712
|
+
required: required2,
|
|
34713
|
+
enabled: enabled2,
|
|
34714
|
+
style: style2,
|
|
34715
|
+
className,
|
|
34716
|
+
shrinkToLabel: shrinkToLabel2,
|
|
34717
|
+
labelStyle: { pointerEvents: readOnly2 ? "none" : void 0 },
|
|
34718
|
+
isInputTemplateUsed: !!((_a2 = componentNode.props) == null ? void 0 : _a2.inputTemplate),
|
|
34719
|
+
children: node
|
|
34720
|
+
}
|
|
34721
|
+
);
|
|
34722
|
+
}
|
|
34723
|
+
};
|
|
34425
34724
|
const ApiInterceptorContext = createContext(null);
|
|
34426
34725
|
function useApiInterceptorContext() {
|
|
34427
34726
|
return useContext(ApiInterceptorContext);
|
|
@@ -35568,7 +35867,7 @@ var WeekDays = /* @__PURE__ */ ((WeekDays2) => {
|
|
|
35568
35867
|
WeekDays2[WeekDays2["Saturday"] = 6] = "Saturday";
|
|
35569
35868
|
return WeekDays2;
|
|
35570
35869
|
})(WeekDays || {});
|
|
35571
|
-
const defaultProps$
|
|
35870
|
+
const defaultProps$o = {
|
|
35572
35871
|
enabled: true,
|
|
35573
35872
|
validationStatus: "none",
|
|
35574
35873
|
mode: "single",
|
|
@@ -35587,7 +35886,7 @@ const DateInput = forwardRef(function DateInputNative({
|
|
|
35587
35886
|
id,
|
|
35588
35887
|
initialValue,
|
|
35589
35888
|
value: controlledValue,
|
|
35590
|
-
enabled: enabled2 = defaultProps$
|
|
35889
|
+
enabled: enabled2 = defaultProps$o.enabled,
|
|
35591
35890
|
updateState,
|
|
35592
35891
|
style: style2,
|
|
35593
35892
|
className,
|
|
@@ -35595,28 +35894,28 @@ const DateInput = forwardRef(function DateInputNative({
|
|
|
35595
35894
|
onFocus: onFocus2,
|
|
35596
35895
|
onBlur,
|
|
35597
35896
|
onInvalidChange,
|
|
35598
|
-
validationStatus = defaultProps$
|
|
35897
|
+
validationStatus = defaultProps$o.validationStatus,
|
|
35599
35898
|
registerComponentApi,
|
|
35600
|
-
mode = defaultProps$
|
|
35601
|
-
dateFormat = defaultProps$
|
|
35602
|
-
showWeekNumber = defaultProps$
|
|
35603
|
-
weekStartsOn = defaultProps$
|
|
35899
|
+
mode = defaultProps$o.mode,
|
|
35900
|
+
dateFormat = defaultProps$o.dateFormat,
|
|
35901
|
+
showWeekNumber = defaultProps$o.showWeekNumber,
|
|
35902
|
+
weekStartsOn = defaultProps$o.weekStartsOn,
|
|
35604
35903
|
minValue,
|
|
35605
35904
|
maxValue,
|
|
35606
35905
|
disabledDates,
|
|
35607
|
-
inline = defaultProps$
|
|
35608
|
-
clearable = defaultProps$
|
|
35906
|
+
inline = defaultProps$o.inline,
|
|
35907
|
+
clearable = defaultProps$o.clearable,
|
|
35609
35908
|
clearIcon,
|
|
35610
|
-
clearToInitialValue = defaultProps$
|
|
35611
|
-
required: required2 = defaultProps$
|
|
35909
|
+
clearToInitialValue = defaultProps$o.clearToInitialValue,
|
|
35910
|
+
required: required2 = defaultProps$o.required,
|
|
35612
35911
|
startText,
|
|
35613
35912
|
startIcon,
|
|
35614
35913
|
endText,
|
|
35615
35914
|
endIcon,
|
|
35616
35915
|
gap,
|
|
35617
|
-
readOnly: readOnly2 = defaultProps$
|
|
35618
|
-
autoFocus = defaultProps$
|
|
35619
|
-
emptyCharacter = defaultProps$
|
|
35916
|
+
readOnly: readOnly2 = defaultProps$o.readOnly,
|
|
35917
|
+
autoFocus = defaultProps$o.autoFocus,
|
|
35918
|
+
emptyCharacter = defaultProps$o.emptyCharacter,
|
|
35620
35919
|
...rest
|
|
35621
35920
|
}, ref) {
|
|
35622
35921
|
const dateInputRef = useRef(null);
|
|
@@ -36373,34 +36672,34 @@ const DateInputMd = createMetadata({
|
|
|
36373
36672
|
initialValue: dInitialValue(),
|
|
36374
36673
|
autoFocus: dAutoFocus(),
|
|
36375
36674
|
readOnly: dReadonly(),
|
|
36376
|
-
enabled: dEnabled(defaultProps$
|
|
36377
|
-
validationStatus: dValidationStatus(defaultProps$
|
|
36675
|
+
enabled: dEnabled(defaultProps$o.enabled),
|
|
36676
|
+
validationStatus: dValidationStatus(defaultProps$o.validationStatus),
|
|
36378
36677
|
mode: {
|
|
36379
36678
|
description: "The mode of the date input (single or range)",
|
|
36380
36679
|
valueType: "string",
|
|
36381
36680
|
availableValues: DateInputModeValues,
|
|
36382
|
-
defaultValue: defaultProps$
|
|
36681
|
+
defaultValue: defaultProps$o.mode
|
|
36383
36682
|
},
|
|
36384
36683
|
dateFormat: {
|
|
36385
36684
|
description: "The format of the date displayed in the input field",
|
|
36386
36685
|
valueType: "string",
|
|
36387
|
-
defaultValue: defaultProps$
|
|
36686
|
+
defaultValue: defaultProps$o.dateFormat,
|
|
36388
36687
|
availableValues: dateFormats
|
|
36389
36688
|
},
|
|
36390
36689
|
emptyCharacter: {
|
|
36391
36690
|
description: "Character used to create placeholder text for empty input fields",
|
|
36392
36691
|
valueType: "string",
|
|
36393
|
-
defaultValue: defaultProps$
|
|
36692
|
+
defaultValue: defaultProps$o.emptyCharacter
|
|
36394
36693
|
},
|
|
36395
36694
|
showWeekNumber: {
|
|
36396
36695
|
description: "Whether to show the week number (compatibility with DatePicker, not used in DateInput)",
|
|
36397
36696
|
valueType: "boolean",
|
|
36398
|
-
defaultValue: defaultProps$
|
|
36697
|
+
defaultValue: defaultProps$o.showWeekNumber
|
|
36399
36698
|
},
|
|
36400
36699
|
weekStartsOn: {
|
|
36401
36700
|
description: "The first day of the week. 0 is Sunday, 1 is Monday, etc. (compatibility with DatePicker, not used in DateInput)",
|
|
36402
36701
|
valueType: "number",
|
|
36403
|
-
defaultValue: defaultProps$
|
|
36702
|
+
defaultValue: defaultProps$o.weekStartsOn,
|
|
36404
36703
|
availableValues: [
|
|
36405
36704
|
{
|
|
36406
36705
|
value: WeekDays.Sunday,
|
|
@@ -36447,12 +36746,12 @@ const DateInputMd = createMetadata({
|
|
|
36447
36746
|
inline: {
|
|
36448
36747
|
description: "Whether to display the date input inline (compatibility with DatePicker, always true for DateInput)",
|
|
36449
36748
|
valueType: "boolean",
|
|
36450
|
-
defaultValue: defaultProps$
|
|
36749
|
+
defaultValue: defaultProps$o.inline
|
|
36451
36750
|
},
|
|
36452
36751
|
clearable: {
|
|
36453
36752
|
description: "Whether to show a clear button to reset the input",
|
|
36454
36753
|
valueType: "boolean",
|
|
36455
|
-
defaultValue: defaultProps$
|
|
36754
|
+
defaultValue: defaultProps$o.clearable
|
|
36456
36755
|
},
|
|
36457
36756
|
clearIcon: {
|
|
36458
36757
|
description: "Icon name for the clear button",
|
|
@@ -36461,7 +36760,7 @@ const DateInputMd = createMetadata({
|
|
|
36461
36760
|
clearToInitialValue: {
|
|
36462
36761
|
description: "Whether clearing resets to initial value or null",
|
|
36463
36762
|
valueType: "boolean",
|
|
36464
|
-
defaultValue: defaultProps$
|
|
36763
|
+
defaultValue: defaultProps$o.clearToInitialValue
|
|
36465
36764
|
},
|
|
36466
36765
|
gap: {
|
|
36467
36766
|
description: "The gap between input elements",
|
|
@@ -36470,7 +36769,7 @@ const DateInputMd = createMetadata({
|
|
|
36470
36769
|
required: {
|
|
36471
36770
|
description: "Whether the input is required",
|
|
36472
36771
|
valueType: "boolean",
|
|
36473
|
-
defaultValue: defaultProps$
|
|
36772
|
+
defaultValue: defaultProps$o.required
|
|
36474
36773
|
},
|
|
36475
36774
|
startText: dStartText(),
|
|
36476
36775
|
startIcon: dStartIcon(),
|
|
@@ -36562,7 +36861,7 @@ const dateInputComponentRenderer = createComponentRenderer(
|
|
|
36562
36861
|
minValue: extractValue.asOptionalString(node.props.minValue),
|
|
36563
36862
|
maxValue: extractValue.asOptionalString(node.props.maxValue),
|
|
36564
36863
|
disabledDates: extractValue(node.props.disabledDates),
|
|
36565
|
-
inline: extractValue.asOptionalBoolean(node.props.inline, defaultProps$
|
|
36864
|
+
inline: extractValue.asOptionalBoolean(node.props.inline, defaultProps$o.inline),
|
|
36566
36865
|
startText: extractValue.asOptionalString(node.props.startText),
|
|
36567
36866
|
startIcon: extractValue.asOptionalString(node.props.startIcon),
|
|
36568
36867
|
endText: extractValue.asOptionalString(node.props.endText),
|
|
@@ -36570,9 +36869,9 @@ const dateInputComponentRenderer = createComponentRenderer(
|
|
|
36570
36869
|
readOnly: extractValue.asOptionalBoolean(node.props.readOnly),
|
|
36571
36870
|
autoFocus: extractValue.asOptionalBoolean(node.props.autoFocus),
|
|
36572
36871
|
required: extractValue.asOptionalBoolean(node.props.required),
|
|
36573
|
-
clearable: extractValue.asOptionalBoolean(node.props.clearable, defaultProps$
|
|
36872
|
+
clearable: extractValue.asOptionalBoolean(node.props.clearable, defaultProps$o.clearable),
|
|
36574
36873
|
clearIcon: extractValue.asOptionalString(node.props.clearIcon),
|
|
36575
|
-
clearToInitialValue: extractValue.asOptionalBoolean(node.props.clearToInitialValue, defaultProps$
|
|
36874
|
+
clearToInitialValue: extractValue.asOptionalBoolean(node.props.clearToInitialValue, defaultProps$o.clearToInitialValue),
|
|
36576
36875
|
gap: extractValue.asOptionalString(node.props.gap),
|
|
36577
36876
|
emptyCharacter: extractValue.asOptionalString(node.props.emptyCharacter)
|
|
36578
36877
|
}
|
|
@@ -36861,7 +37160,7 @@ const PART_MINUTE = "minute";
|
|
|
36861
37160
|
const PART_SECOND = "second";
|
|
36862
37161
|
const PART_AMPM = "ampm";
|
|
36863
37162
|
const PART_CLEAR_BUTTON = "clearButton";
|
|
36864
|
-
const defaultProps$
|
|
37163
|
+
const defaultProps$n = {
|
|
36865
37164
|
enabled: true,
|
|
36866
37165
|
validationStatus: "none",
|
|
36867
37166
|
hour24: true,
|
|
@@ -36877,7 +37176,7 @@ const TimeInputNative = forwardRef(function TimeInputNative2({
|
|
|
36877
37176
|
id,
|
|
36878
37177
|
initialValue,
|
|
36879
37178
|
value: controlledValue,
|
|
36880
|
-
enabled: enabled2 = defaultProps$
|
|
37179
|
+
enabled: enabled2 = defaultProps$n.enabled,
|
|
36881
37180
|
updateState,
|
|
36882
37181
|
style: style2,
|
|
36883
37182
|
className,
|
|
@@ -36885,24 +37184,24 @@ const TimeInputNative = forwardRef(function TimeInputNative2({
|
|
|
36885
37184
|
onFocus,
|
|
36886
37185
|
onBlur,
|
|
36887
37186
|
onInvalidChange,
|
|
36888
|
-
validationStatus = defaultProps$
|
|
37187
|
+
validationStatus = defaultProps$n.validationStatus,
|
|
36889
37188
|
registerComponentApi,
|
|
36890
|
-
hour24 = defaultProps$
|
|
36891
|
-
seconds = defaultProps$
|
|
37189
|
+
hour24 = defaultProps$n.hour24,
|
|
37190
|
+
seconds = defaultProps$n.seconds,
|
|
36892
37191
|
minTime,
|
|
36893
37192
|
maxTime,
|
|
36894
|
-
clearable = defaultProps$
|
|
37193
|
+
clearable = defaultProps$n.clearable,
|
|
36895
37194
|
clearIcon,
|
|
36896
|
-
clearToInitialValue = defaultProps$
|
|
36897
|
-
required: required2 = defaultProps$
|
|
37195
|
+
clearToInitialValue = defaultProps$n.clearToInitialValue,
|
|
37196
|
+
required: required2 = defaultProps$n.required,
|
|
36898
37197
|
startText,
|
|
36899
37198
|
startIcon,
|
|
36900
37199
|
endText,
|
|
36901
37200
|
endIcon,
|
|
36902
37201
|
gap,
|
|
36903
|
-
readOnly: readOnly2 = defaultProps$
|
|
36904
|
-
autoFocus = defaultProps$
|
|
36905
|
-
emptyCharacter = defaultProps$
|
|
37202
|
+
readOnly: readOnly2 = defaultProps$n.readOnly,
|
|
37203
|
+
autoFocus = defaultProps$n.autoFocus,
|
|
37204
|
+
emptyCharacter = defaultProps$n.emptyCharacter,
|
|
36906
37205
|
...rest
|
|
36907
37206
|
}, ref) {
|
|
36908
37207
|
const timeInputRef = useRef(null);
|
|
@@ -37773,17 +38072,17 @@ const TimeInputMd = createMetadata({
|
|
|
37773
38072
|
initialValue: dInitialValue(),
|
|
37774
38073
|
autoFocus: dAutoFocus(),
|
|
37775
38074
|
readOnly: dReadonly(),
|
|
37776
|
-
enabled: dEnabled(defaultProps$
|
|
37777
|
-
validationStatus: dValidationStatus(defaultProps$
|
|
38075
|
+
enabled: dEnabled(defaultProps$n.enabled),
|
|
38076
|
+
validationStatus: dValidationStatus(defaultProps$n.validationStatus),
|
|
37778
38077
|
hour24: {
|
|
37779
38078
|
description: "Whether to use 24-hour format (true) or 12-hour format with AM/PM (false)",
|
|
37780
38079
|
valueType: "boolean",
|
|
37781
|
-
defaultValue: defaultProps$
|
|
38080
|
+
defaultValue: defaultProps$n.hour24
|
|
37782
38081
|
},
|
|
37783
38082
|
seconds: {
|
|
37784
38083
|
description: "Whether to show and allow input of seconds",
|
|
37785
38084
|
valueType: "boolean",
|
|
37786
|
-
defaultValue: defaultProps$
|
|
38085
|
+
defaultValue: defaultProps$n.seconds
|
|
37787
38086
|
},
|
|
37788
38087
|
minTime: {
|
|
37789
38088
|
description: "Minimum time that the user can select",
|
|
@@ -37796,7 +38095,7 @@ const TimeInputMd = createMetadata({
|
|
|
37796
38095
|
clearable: {
|
|
37797
38096
|
description: "Whether to show a clear button that allows clearing the selected time",
|
|
37798
38097
|
valueType: "boolean",
|
|
37799
|
-
defaultValue: defaultProps$
|
|
38098
|
+
defaultValue: defaultProps$n.clearable
|
|
37800
38099
|
},
|
|
37801
38100
|
clearIcon: {
|
|
37802
38101
|
description: "The icon to display in the clear button.",
|
|
@@ -37805,12 +38104,12 @@ const TimeInputMd = createMetadata({
|
|
|
37805
38104
|
clearToInitialValue: {
|
|
37806
38105
|
description: "Whether the clear button resets the time input to its initial value",
|
|
37807
38106
|
valueType: "boolean",
|
|
37808
|
-
defaultValue: defaultProps$
|
|
38107
|
+
defaultValue: defaultProps$n.clearToInitialValue
|
|
37809
38108
|
},
|
|
37810
38109
|
required: {
|
|
37811
38110
|
description: "Whether the time input should be required",
|
|
37812
38111
|
valueType: "boolean",
|
|
37813
|
-
defaultValue: defaultProps$
|
|
38112
|
+
defaultValue: defaultProps$n.required
|
|
37814
38113
|
},
|
|
37815
38114
|
startText: dStartText(),
|
|
37816
38115
|
startIcon: dStartIcon(),
|
|
@@ -37823,7 +38122,7 @@ const TimeInputMd = createMetadata({
|
|
|
37823
38122
|
emptyCharacter: {
|
|
37824
38123
|
description: "Character to use as placeholder for empty time values. If longer than 1 character, uses the first character. Defaults to '-'",
|
|
37825
38124
|
valueType: "string",
|
|
37826
|
-
defaultValue: defaultProps$
|
|
38125
|
+
defaultValue: defaultProps$n.emptyCharacter
|
|
37827
38126
|
}
|
|
37828
38127
|
},
|
|
37829
38128
|
events: {
|
|
@@ -37900,24 +38199,24 @@ const timeInputComponentRenderer = createComponentRenderer(
|
|
|
37900
38199
|
value: stateValue,
|
|
37901
38200
|
updateState,
|
|
37902
38201
|
registerComponentApi,
|
|
37903
|
-
enabled: extractValue.asOptionalBoolean(node.props.enabled, defaultProps$
|
|
37904
|
-
autoFocus: extractValue.asOptionalBoolean(node.props.autoFocus, defaultProps$
|
|
37905
|
-
readOnly: extractValue.asOptionalBoolean(node.props.readOnly, defaultProps$
|
|
38202
|
+
enabled: extractValue.asOptionalBoolean(node.props.enabled, defaultProps$n.enabled),
|
|
38203
|
+
autoFocus: extractValue.asOptionalBoolean(node.props.autoFocus, defaultProps$n.autoFocus),
|
|
38204
|
+
readOnly: extractValue.asOptionalBoolean(node.props.readOnly, defaultProps$n.readOnly),
|
|
37906
38205
|
validationStatus: extractValue(node.props.validationStatus),
|
|
37907
|
-
hour24: extractValue.asOptionalBoolean(node.props.hour24, defaultProps$
|
|
37908
|
-
seconds: extractValue.asOptionalBoolean(node.props.seconds, defaultProps$
|
|
38206
|
+
hour24: extractValue.asOptionalBoolean(node.props.hour24, defaultProps$n.hour24),
|
|
38207
|
+
seconds: extractValue.asOptionalBoolean(node.props.seconds, defaultProps$n.seconds),
|
|
37909
38208
|
minTime: extractValue(node.props.minTime),
|
|
37910
38209
|
maxTime: extractValue(node.props.maxTime),
|
|
37911
|
-
clearable: extractValue.asOptionalBoolean(node.props.clearable, defaultProps$
|
|
38210
|
+
clearable: extractValue.asOptionalBoolean(node.props.clearable, defaultProps$n.clearable),
|
|
37912
38211
|
clearIcon: extractValue(node.props.clearIcon),
|
|
37913
|
-
clearToInitialValue: extractValue.asOptionalBoolean(node.props.clearToInitialValue, defaultProps$
|
|
37914
|
-
required: extractValue.asOptionalBoolean(node.props.required, defaultProps$
|
|
38212
|
+
clearToInitialValue: extractValue.asOptionalBoolean(node.props.clearToInitialValue, defaultProps$n.clearToInitialValue),
|
|
38213
|
+
required: extractValue.asOptionalBoolean(node.props.required, defaultProps$n.required),
|
|
37915
38214
|
startText: extractValue(node.props.startText),
|
|
37916
38215
|
startIcon: extractValue(node.props.startIcon),
|
|
37917
38216
|
endText: extractValue(node.props.endText),
|
|
37918
38217
|
endIcon: extractValue(node.props.endIcon),
|
|
37919
38218
|
gap: extractValue.asOptionalString(node.props.gap),
|
|
37920
|
-
emptyCharacter: extractValue.asOptionalString(node.props.emptyCharacter, defaultProps$
|
|
38219
|
+
emptyCharacter: extractValue.asOptionalString(node.props.emptyCharacter, defaultProps$n.emptyCharacter),
|
|
37921
38220
|
onDidChange: lookupEventHandler("didChange"),
|
|
37922
38221
|
onFocus: lookupEventHandler("gotFocus"),
|
|
37923
38222
|
onBlur: lookupEventHandler("lostFocus"),
|
|
@@ -37926,17 +38225,17 @@ const timeInputComponentRenderer = createComponentRenderer(
|
|
|
37926
38225
|
);
|
|
37927
38226
|
}
|
|
37928
38227
|
);
|
|
37929
|
-
const defaultProps$
|
|
38228
|
+
const defaultProps$m = {
|
|
37930
38229
|
enabled: true,
|
|
37931
38230
|
interval: 1e3,
|
|
37932
38231
|
once: false,
|
|
37933
38232
|
initialDelay: 0
|
|
37934
38233
|
};
|
|
37935
38234
|
const Timer = forwardRef(function Timer2({
|
|
37936
|
-
enabled: enabled2 = defaultProps$
|
|
37937
|
-
interval = defaultProps$
|
|
37938
|
-
once = defaultProps$
|
|
37939
|
-
initialDelay = defaultProps$
|
|
38235
|
+
enabled: enabled2 = defaultProps$m.enabled,
|
|
38236
|
+
interval = defaultProps$m.interval,
|
|
38237
|
+
once = defaultProps$m.once,
|
|
38238
|
+
initialDelay = defaultProps$m.initialDelay,
|
|
37940
38239
|
onTick,
|
|
37941
38240
|
registerComponentApi,
|
|
37942
38241
|
style: style2,
|
|
@@ -38086,22 +38385,22 @@ const TimerMd = createMetadata({
|
|
|
38086
38385
|
enabled: {
|
|
38087
38386
|
description: "Whether the timer is enabled and should fire events.",
|
|
38088
38387
|
valueType: "boolean",
|
|
38089
|
-
defaultValue: defaultProps$
|
|
38388
|
+
defaultValue: defaultProps$m.enabled
|
|
38090
38389
|
},
|
|
38091
38390
|
interval: {
|
|
38092
38391
|
description: "The interval in milliseconds between timer events.",
|
|
38093
38392
|
valueType: "number",
|
|
38094
|
-
defaultValue: defaultProps$
|
|
38393
|
+
defaultValue: defaultProps$m.interval
|
|
38095
38394
|
},
|
|
38096
38395
|
initialDelay: {
|
|
38097
38396
|
description: "The delay in milliseconds before the first timer event.",
|
|
38098
38397
|
valueType: "number",
|
|
38099
|
-
defaultValue: defaultProps$
|
|
38398
|
+
defaultValue: defaultProps$m.initialDelay
|
|
38100
38399
|
},
|
|
38101
38400
|
once: {
|
|
38102
38401
|
description: "Whether the timer should stop after firing its first tick event.",
|
|
38103
38402
|
valueType: "boolean",
|
|
38104
|
-
defaultValue: defaultProps$
|
|
38403
|
+
defaultValue: defaultProps$m.once
|
|
38105
38404
|
}
|
|
38106
38405
|
},
|
|
38107
38406
|
events: {
|
|
@@ -38146,7 +38445,7 @@ const timerComponentRenderer = createComponentRenderer(
|
|
|
38146
38445
|
}
|
|
38147
38446
|
);
|
|
38148
38447
|
const COMP$x = "Redirect";
|
|
38149
|
-
const defaultProps$
|
|
38448
|
+
const defaultProps$l = {
|
|
38150
38449
|
to: ""
|
|
38151
38450
|
};
|
|
38152
38451
|
const RedirectMd = createMetadata({
|
|
@@ -38159,7 +38458,7 @@ const RedirectMd = createMetadata({
|
|
|
38159
38458
|
},
|
|
38160
38459
|
to: {
|
|
38161
38460
|
description: `This property defines the URL to which this component is about to redirect requests.`,
|
|
38162
|
-
defaultValue: defaultProps$
|
|
38461
|
+
defaultValue: defaultProps$l.to
|
|
38163
38462
|
}
|
|
38164
38463
|
}
|
|
38165
38464
|
});
|
|
@@ -38171,12 +38470,21 @@ const redirectRenderer = createComponentRenderer(
|
|
|
38171
38470
|
}
|
|
38172
38471
|
);
|
|
38173
38472
|
const themeVars$b = `'{"padding-trigger-Tabs": "var(--xmlui-padding-trigger-Tabs)", "paddingHorizontal-trigger-Tabs": "var(--xmlui-paddingHorizontal-trigger-Tabs, var(--xmlui-padding-trigger-Tabs))", "paddingVertical-trigger-Tabs": "var(--xmlui-paddingVertical-trigger-Tabs, var(--xmlui-padding-trigger-Tabs))", "paddingLeft-trigger-Tabs": "var(--xmlui-paddingLeft-trigger-Tabs, var(--xmlui-paddingHorizontal-trigger-Tabs, var(--xmlui-padding-trigger-Tabs)))", "paddingRight-trigger-Tabs": "var(--xmlui-paddingRight-trigger-Tabs, var(--xmlui-paddingHorizontal-trigger-Tabs, var(--xmlui-padding-trigger-Tabs)))", "paddingTop-trigger-Tabs": "var(--xmlui-paddingTop-trigger-Tabs, var(--xmlui-paddingVertical-trigger-Tabs, var(--xmlui-padding-trigger-Tabs)))", "paddingBottom-trigger-Tabs": "var(--xmlui-paddingBottom-trigger-Tabs, var(--xmlui-paddingVertical-trigger-Tabs, var(--xmlui-padding-trigger-Tabs)))", "backgroundColor-Tabs": "var(--xmlui-backgroundColor-Tabs)", "borderColor-Tabs": "var(--xmlui-borderColor-Tabs)", "borderWidth-Tabs": "var(--xmlui-borderWidth-Tabs)", "borderColor-active-Tabs": "var(--xmlui-borderColor-active-Tabs)", "backgroundColor-trigger-Tabs": "var(--xmlui-backgroundColor-trigger-Tabs)", "borderRadius-trigger-Tabs": "var(--xmlui-borderRadius-trigger-Tabs)", "border-trigger-Tabs": "var(--xmlui-border-trigger-Tabs)", "textColor-trigger-Tabs": "var(--xmlui-textColor-trigger-Tabs)", "backgroundColor-trigger-Tabs--hover": "var(--xmlui-backgroundColor-trigger-Tabs--hover)", "backgroundColor-trigger-Tabs--active": "var(--xmlui-backgroundColor-trigger-Tabs--active)", "backgroundColor-list-Tabs": "var(--xmlui-backgroundColor-list-Tabs)", "borderRadius-list-Tabs": "var(--xmlui-borderRadius-list-Tabs)", "border-list-Tabs": "var(--xmlui-border-list-Tabs)"}'`;
|
|
38174
|
-
const tabs = "
|
|
38175
|
-
const filler = "
|
|
38176
|
-
const tabTrigger = "
|
|
38177
|
-
const distributeEvenly = "
|
|
38178
|
-
const tabsList = "
|
|
38179
|
-
const
|
|
38473
|
+
const tabs = "_tabs_19izz_14";
|
|
38474
|
+
const filler = "_filler_19izz_26";
|
|
38475
|
+
const tabTrigger = "_tabTrigger_19izz_39";
|
|
38476
|
+
const distributeEvenly = "_distributeEvenly_19izz_56";
|
|
38477
|
+
const tabsList = "_tabsList_19izz_87";
|
|
38478
|
+
const alignStart = "_alignStart_19izz_104";
|
|
38479
|
+
const alignEnd = "_alignEnd_19izz_107";
|
|
38480
|
+
const alignCenter = "_alignCenter_19izz_110";
|
|
38481
|
+
const alignStretch = "_alignStretch_19izz_113";
|
|
38482
|
+
const tabsContent = "_tabsContent_19izz_119";
|
|
38483
|
+
const accordionView = "_accordionView_19izz_123";
|
|
38484
|
+
const accordionRoot = "_accordionRoot_19izz_126";
|
|
38485
|
+
const accordionInterleaved = "_accordionInterleaved_19izz_131";
|
|
38486
|
+
const accordionList = "_accordionList_19izz_136";
|
|
38487
|
+
const accordionTrigger = "_accordionTrigger_19izz_148";
|
|
38180
38488
|
const styles$o = {
|
|
38181
38489
|
themeVars: themeVars$b,
|
|
38182
38490
|
tabs,
|
|
@@ -38184,43 +38492,61 @@ const styles$o = {
|
|
|
38184
38492
|
tabTrigger,
|
|
38185
38493
|
distributeEvenly,
|
|
38186
38494
|
tabsList,
|
|
38187
|
-
|
|
38495
|
+
alignStart,
|
|
38496
|
+
alignEnd,
|
|
38497
|
+
alignCenter,
|
|
38498
|
+
alignStretch,
|
|
38499
|
+
tabsContent,
|
|
38500
|
+
accordionView,
|
|
38501
|
+
accordionRoot,
|
|
38502
|
+
accordionInterleaved,
|
|
38503
|
+
accordionList,
|
|
38504
|
+
accordionTrigger
|
|
38188
38505
|
};
|
|
38189
38506
|
const TabContext = createContext({
|
|
38190
38507
|
register: (tabItem) => {
|
|
38191
38508
|
},
|
|
38192
38509
|
unRegister: (innerId) => {
|
|
38193
38510
|
},
|
|
38194
|
-
activeTabId: ""
|
|
38511
|
+
activeTabId: "",
|
|
38512
|
+
getTabItems: () => []
|
|
38195
38513
|
});
|
|
38196
38514
|
function useTabContextValue() {
|
|
38197
38515
|
const [tabItems, setTabItems] = useState(EMPTY_ARRAY);
|
|
38516
|
+
const tabItemsRef = useRef(EMPTY_ARRAY);
|
|
38517
|
+
tabItemsRef.current = tabItems;
|
|
38198
38518
|
const [activeTabId, setActiveTabId] = useState("");
|
|
38519
|
+
const register = useCallback((tabItem) => {
|
|
38520
|
+
setTabItems(
|
|
38521
|
+
produce((draft) => {
|
|
38522
|
+
const existing = draft.findIndex((col) => col.innerId === tabItem.innerId);
|
|
38523
|
+
if (existing < 0) {
|
|
38524
|
+
draft.push(tabItem);
|
|
38525
|
+
} else {
|
|
38526
|
+
draft[existing] = tabItem;
|
|
38527
|
+
}
|
|
38528
|
+
})
|
|
38529
|
+
);
|
|
38530
|
+
}, []);
|
|
38531
|
+
const unRegister = useCallback((innerId) => {
|
|
38532
|
+
setTabItems(
|
|
38533
|
+
produce((draft) => {
|
|
38534
|
+
return draft.filter((col) => col.innerId !== innerId);
|
|
38535
|
+
})
|
|
38536
|
+
);
|
|
38537
|
+
}, []);
|
|
38538
|
+
const getTabItems = useCallback(() => {
|
|
38539
|
+
return tabItemsRef.current;
|
|
38540
|
+
}, []);
|
|
38199
38541
|
const tabContextValue = useMemo(() => {
|
|
38200
38542
|
return {
|
|
38201
|
-
register
|
|
38202
|
-
|
|
38203
|
-
produce((draft) => {
|
|
38204
|
-
const existing = draft.findIndex((col) => col.innerId === tabItem.innerId);
|
|
38205
|
-
if (existing < 0) {
|
|
38206
|
-
draft.push(tabItem);
|
|
38207
|
-
} else {
|
|
38208
|
-
draft[existing] = tabItem;
|
|
38209
|
-
}
|
|
38210
|
-
})
|
|
38211
|
-
);
|
|
38212
|
-
},
|
|
38213
|
-
unRegister: (innerId) => {
|
|
38214
|
-
setTabItems(
|
|
38215
|
-
produce((draft) => {
|
|
38216
|
-
return draft.filter((col) => col.innerId !== innerId);
|
|
38217
|
-
})
|
|
38218
|
-
);
|
|
38219
|
-
},
|
|
38543
|
+
register,
|
|
38544
|
+
unRegister,
|
|
38220
38545
|
activeTabId,
|
|
38221
|
-
setActiveTabId
|
|
38546
|
+
setActiveTabId,
|
|
38547
|
+
getTabItems
|
|
38222
38548
|
};
|
|
38223
|
-
}, [activeTabId]);
|
|
38549
|
+
}, [register, unRegister, activeTabId, getTabItems]);
|
|
38224
38550
|
return {
|
|
38225
38551
|
tabItems,
|
|
38226
38552
|
tabContextValue
|
|
@@ -38229,21 +38555,25 @@ function useTabContextValue() {
|
|
|
38229
38555
|
function useTabContext() {
|
|
38230
38556
|
return useContext(TabContext);
|
|
38231
38557
|
}
|
|
38232
|
-
const defaultProps$
|
|
38558
|
+
const defaultProps$k = {
|
|
38233
38559
|
activeTab: 0,
|
|
38234
38560
|
orientation: "horizontal",
|
|
38561
|
+
tabAlignment: "start",
|
|
38562
|
+
accordionView: false,
|
|
38235
38563
|
distributeEvenly: false
|
|
38236
38564
|
};
|
|
38237
38565
|
const Tabs = forwardRef(function Tabs2({
|
|
38238
|
-
activeTab = defaultProps$
|
|
38239
|
-
orientation = defaultProps$
|
|
38566
|
+
activeTab = defaultProps$k.activeTab,
|
|
38567
|
+
orientation = defaultProps$k.orientation,
|
|
38568
|
+
tabAlignment = defaultProps$k.tabAlignment,
|
|
38569
|
+
accordionView: accordionView2 = defaultProps$k.accordionView,
|
|
38240
38570
|
headerRenderer,
|
|
38241
38571
|
style: style2,
|
|
38242
38572
|
children,
|
|
38243
38573
|
id,
|
|
38244
38574
|
registerComponentApi,
|
|
38245
38575
|
className,
|
|
38246
|
-
distributeEvenly: distributeEvenly2 = defaultProps$
|
|
38576
|
+
distributeEvenly: distributeEvenly2 = defaultProps$k.distributeEvenly,
|
|
38247
38577
|
onDidChange = noop$1,
|
|
38248
38578
|
...rest
|
|
38249
38579
|
}, forwardedRef) {
|
|
@@ -38307,6 +38637,66 @@ const Tabs = forwardRef(function Tabs2({
|
|
|
38307
38637
|
setActiveTabById
|
|
38308
38638
|
});
|
|
38309
38639
|
}, [next, prev, setActiveTabIndex, setActiveTabById, registerComponentApi]);
|
|
38640
|
+
if (accordionView2) {
|
|
38641
|
+
return /* @__PURE__ */ jsx(TabContext.Provider, { value: tabContextValue, children: /* @__PURE__ */ jsx(
|
|
38642
|
+
"div",
|
|
38643
|
+
{
|
|
38644
|
+
...rest,
|
|
38645
|
+
id: tabsId,
|
|
38646
|
+
ref: forwardedRef,
|
|
38647
|
+
className: classnames(className, styles$o.tabs, styles$o.accordionView),
|
|
38648
|
+
style: style2,
|
|
38649
|
+
children: /* @__PURE__ */ jsx(
|
|
38650
|
+
Root$1,
|
|
38651
|
+
{
|
|
38652
|
+
value: `${currentTab}`,
|
|
38653
|
+
onValueChange: (tab) => {
|
|
38654
|
+
const tabItem = tabItems.find((item2) => item2.innerId === tab);
|
|
38655
|
+
const newIndex = tabItems.findIndex((item2) => item2.innerId === tab);
|
|
38656
|
+
if (newIndex !== activeIndex) {
|
|
38657
|
+
tabContextValue.setActiveTabId(tab);
|
|
38658
|
+
setActiveIndex(newIndex);
|
|
38659
|
+
onDidChange == null ? void 0 : onDidChange(newIndex, tabItem.id || tabItem.innerId, tabItem == null ? void 0 : tabItem.label);
|
|
38660
|
+
}
|
|
38661
|
+
},
|
|
38662
|
+
orientation: "vertical",
|
|
38663
|
+
className: styles$o.accordionRoot,
|
|
38664
|
+
children: /* @__PURE__ */ jsxs("div", { className: styles$o.accordionInterleaved, children: [
|
|
38665
|
+
/* @__PURE__ */ jsx(List, { className: styles$o.accordionList, children: tabItems.map((tab, index) => /* @__PURE__ */ jsx(
|
|
38666
|
+
Trigger$1,
|
|
38667
|
+
{
|
|
38668
|
+
value: tab.innerId,
|
|
38669
|
+
asChild: true,
|
|
38670
|
+
style: { order: index * 2 },
|
|
38671
|
+
children: /* @__PURE__ */ jsx(
|
|
38672
|
+
"div",
|
|
38673
|
+
{
|
|
38674
|
+
role: "tab",
|
|
38675
|
+
"aria-label": tab.label,
|
|
38676
|
+
className: classnames(styles$o.tabTrigger, styles$o.accordionTrigger),
|
|
38677
|
+
children: tab.headerRenderer ? tab.headerRenderer({
|
|
38678
|
+
...tab.id !== void 0 && { id: tab.id },
|
|
38679
|
+
index,
|
|
38680
|
+
label: tab.label,
|
|
38681
|
+
isActive: tab.innerId === currentTab
|
|
38682
|
+
}) : headerRenderer ? headerRenderer({
|
|
38683
|
+
...tab.id !== void 0 && { id: tab.id },
|
|
38684
|
+
index,
|
|
38685
|
+
label: tab.label,
|
|
38686
|
+
isActive: tab.innerId === currentTab
|
|
38687
|
+
}) : tab.label
|
|
38688
|
+
}
|
|
38689
|
+
)
|
|
38690
|
+
},
|
|
38691
|
+
tab.innerId
|
|
38692
|
+
)) }),
|
|
38693
|
+
children
|
|
38694
|
+
] })
|
|
38695
|
+
}
|
|
38696
|
+
)
|
|
38697
|
+
}
|
|
38698
|
+
) });
|
|
38699
|
+
}
|
|
38310
38700
|
return /* @__PURE__ */ jsx(TabContext.Provider, { value: tabContextValue, children: /* @__PURE__ */ jsxs(
|
|
38311
38701
|
Root$1,
|
|
38312
38702
|
{
|
|
@@ -38327,30 +38717,44 @@ const Tabs = forwardRef(function Tabs2({
|
|
|
38327
38717
|
orientation,
|
|
38328
38718
|
style: style2,
|
|
38329
38719
|
children: [
|
|
38330
|
-
/* @__PURE__ */ jsxs(
|
|
38331
|
-
|
|
38332
|
-
|
|
38333
|
-
{
|
|
38334
|
-
|
|
38335
|
-
"
|
|
38336
|
-
|
|
38337
|
-
|
|
38338
|
-
|
|
38339
|
-
|
|
38340
|
-
|
|
38341
|
-
|
|
38342
|
-
|
|
38343
|
-
|
|
38344
|
-
|
|
38345
|
-
|
|
38346
|
-
|
|
38347
|
-
|
|
38348
|
-
|
|
38349
|
-
|
|
38350
|
-
|
|
38351
|
-
|
|
38352
|
-
|
|
38353
|
-
|
|
38720
|
+
/* @__PURE__ */ jsxs(
|
|
38721
|
+
List,
|
|
38722
|
+
{
|
|
38723
|
+
className: classnames(styles$o.tabsList, {
|
|
38724
|
+
[styles$o.alignStart]: tabAlignment === "start",
|
|
38725
|
+
[styles$o.alignEnd]: tabAlignment === "end",
|
|
38726
|
+
[styles$o.alignCenter]: tabAlignment === "center",
|
|
38727
|
+
[styles$o.alignStretch]: tabAlignment === "stretch"
|
|
38728
|
+
}),
|
|
38729
|
+
role: "tablist",
|
|
38730
|
+
children: [
|
|
38731
|
+
!distributeEvenly2 && !headerRenderer && tabAlignment === "end" && /* @__PURE__ */ jsx("div", { className: styles$o.filler, "data-orientation": orientation }),
|
|
38732
|
+
!distributeEvenly2 && !headerRenderer && tabAlignment === "center" && /* @__PURE__ */ jsx("div", { className: styles$o.filler, "data-orientation": orientation }),
|
|
38733
|
+
tabItems.map((tab, index) => /* @__PURE__ */ jsx(Trigger$1, { value: tab.innerId, asChild: true, children: /* @__PURE__ */ jsx(
|
|
38734
|
+
"div",
|
|
38735
|
+
{
|
|
38736
|
+
role: "tab",
|
|
38737
|
+
"aria-label": tab.label,
|
|
38738
|
+
className: classnames(styles$o.tabTrigger, {
|
|
38739
|
+
[styles$o.distributeEvenly]: distributeEvenly2 || tabAlignment === "stretch"
|
|
38740
|
+
}),
|
|
38741
|
+
children: tab.headerRenderer ? tab.headerRenderer({
|
|
38742
|
+
...tab.id !== void 0 && { id: tab.id },
|
|
38743
|
+
index,
|
|
38744
|
+
label: tab.label,
|
|
38745
|
+
isActive: tab.innerId === currentTab
|
|
38746
|
+
}) : headerRenderer ? headerRenderer({
|
|
38747
|
+
...tab.id !== void 0 && { id: tab.id },
|
|
38748
|
+
index,
|
|
38749
|
+
label: tab.label,
|
|
38750
|
+
isActive: tab.innerId === currentTab
|
|
38751
|
+
}) : tab.label
|
|
38752
|
+
}
|
|
38753
|
+
) }, tab.innerId)),
|
|
38754
|
+
!distributeEvenly2 && !headerRenderer && tabAlignment !== "stretch" && (tabAlignment === "start" || tabAlignment === "center") && /* @__PURE__ */ jsx("div", { className: styles$o.filler, "data-orientation": orientation })
|
|
38755
|
+
]
|
|
38756
|
+
}
|
|
38757
|
+
),
|
|
38354
38758
|
children
|
|
38355
38759
|
]
|
|
38356
38760
|
}
|
|
@@ -38365,11 +38769,22 @@ const TabsMd = createMetadata({
|
|
|
38365
38769
|
`This property indicates the index of the active tab. The indexing starts from 0, representing the starting (leftmost) tab. If not set, the first tab is selected by default.`
|
|
38366
38770
|
),
|
|
38367
38771
|
orientation: {
|
|
38368
|
-
description: `This property indicates the orientation of the component. In horizontal orientation, the tab sections are laid out on the left side of the content panel, while in vertical orientation, the buttons are at the top.`,
|
|
38772
|
+
description: `This property indicates the orientation of the component. In horizontal orientation, the tab sections are laid out on the left side of the content panel, while in vertical orientation, the buttons are at the top. Note: This property is ignored when accordionView is set to true.`,
|
|
38369
38773
|
availableValues: ["horizontal", "vertical"],
|
|
38370
|
-
defaultValue: defaultProps$
|
|
38774
|
+
defaultValue: defaultProps$k.orientation,
|
|
38775
|
+
valueType: "string"
|
|
38776
|
+
},
|
|
38777
|
+
tabAlignment: {
|
|
38778
|
+
description: `This property controls how tabs are aligned within the tab header container in horizontal orientation. Use 'start' to align tabs to the left, 'end' to align to the right, 'center' to center the tabs, and 'stretch' to make tabs fill the full width of the header. Note: This property is ignored when orientation is set to 'vertical' or when accordionView is enabled.`,
|
|
38779
|
+
availableValues: ["start", "end", "center", "stretch"],
|
|
38780
|
+
defaultValue: defaultProps$k.tabAlignment,
|
|
38371
38781
|
valueType: "string"
|
|
38372
38782
|
},
|
|
38783
|
+
accordionView: {
|
|
38784
|
+
description: `When enabled, displays tabs in an accordion-like view where tab headers are stacked vertically and only the active tab's content is visible. Each tab header remains visible and clicking a header opens its content while closing others. When enabled, the orientation property is ignored.`,
|
|
38785
|
+
defaultValue: defaultProps$k.accordionView,
|
|
38786
|
+
valueType: "boolean"
|
|
38787
|
+
},
|
|
38373
38788
|
headerTemplate: {
|
|
38374
38789
|
...dComponent(`This property declares the template for the clickable tab area.`)
|
|
38375
38790
|
}
|
|
@@ -38413,7 +38828,7 @@ const tabsComponentRenderer = createComponentRenderer(
|
|
|
38413
38828
|
COMP$w,
|
|
38414
38829
|
TabsMd,
|
|
38415
38830
|
({ extractValue, node, renderChild: renderChild2, className, registerComponentApi, lookupEventHandler }) => {
|
|
38416
|
-
var _a2, _b, _c;
|
|
38831
|
+
var _a2, _b, _c, _d, _e;
|
|
38417
38832
|
return /* @__PURE__ */ jsx(
|
|
38418
38833
|
Tabs,
|
|
38419
38834
|
{
|
|
@@ -38432,6 +38847,8 @@ const tabsComponentRenderer = createComponentRenderer(
|
|
|
38432
38847
|
) : void 0,
|
|
38433
38848
|
activeTab: extractValue((_b = node.props) == null ? void 0 : _b.activeTab),
|
|
38434
38849
|
orientation: extractValue((_c = node.props) == null ? void 0 : _c.orientation),
|
|
38850
|
+
tabAlignment: extractValue((_d = node.props) == null ? void 0 : _d.tabAlignment),
|
|
38851
|
+
accordionView: extractValue((_e = node.props) == null ? void 0 : _e.accordionView),
|
|
38435
38852
|
onDidChange: lookupEventHandler("didChange"),
|
|
38436
38853
|
registerComponentApi,
|
|
38437
38854
|
children: renderChild2(node.children)
|
|
@@ -38465,16 +38882,16 @@ const styles$n = {
|
|
|
38465
38882
|
head_6,
|
|
38466
38883
|
active: active$1
|
|
38467
38884
|
};
|
|
38468
|
-
const defaultProps$
|
|
38885
|
+
const defaultProps$j = {
|
|
38469
38886
|
smoothScrolling: false,
|
|
38470
38887
|
maxHeadingLevel: 6,
|
|
38471
38888
|
omitH1: false
|
|
38472
38889
|
};
|
|
38473
38890
|
const TableOfContents = forwardRef(function TableOfContents2({
|
|
38474
38891
|
style: style2,
|
|
38475
|
-
smoothScrolling = defaultProps$
|
|
38476
|
-
maxHeadingLevel = defaultProps$
|
|
38477
|
-
omitH1 = defaultProps$
|
|
38892
|
+
smoothScrolling = defaultProps$j.smoothScrolling,
|
|
38893
|
+
maxHeadingLevel = defaultProps$j.maxHeadingLevel,
|
|
38894
|
+
omitH1 = defaultProps$j.omitH1,
|
|
38478
38895
|
className,
|
|
38479
38896
|
...rest
|
|
38480
38897
|
}, forwardedRef) {
|
|
@@ -38566,12 +38983,12 @@ const TableOfContentsMd = createMetadata({
|
|
|
38566
38983
|
smoothScrolling: {
|
|
38567
38984
|
description: `This property indicates that smooth scrolling is used while scrolling the selected table of contents items into view.`,
|
|
38568
38985
|
valueType: "boolean",
|
|
38569
|
-
defaultValue: defaultProps$
|
|
38986
|
+
defaultValue: defaultProps$j.smoothScrolling
|
|
38570
38987
|
},
|
|
38571
38988
|
maxHeadingLevel: {
|
|
38572
38989
|
description: "Defines the maximum heading level (1 to 6) to include in the table of contents. For example, if it is 2, then `H1` and `H2` are displayed, but lower levels (`H3` to `H6`) are not.",
|
|
38573
38990
|
valueType: "number",
|
|
38574
|
-
defaultValue: defaultProps$
|
|
38991
|
+
defaultValue: defaultProps$j.maxHeadingLevel
|
|
38575
38992
|
},
|
|
38576
38993
|
omitH1: {
|
|
38577
38994
|
description: "If true, the `H1` heading is not included in the table of contents. This is useful when the `H1` is used for the page title and you want to avoid duplication.",
|
|
@@ -38659,7 +39076,7 @@ const AccordionContext = createContext({
|
|
|
38659
39076
|
function useAccordionContext() {
|
|
38660
39077
|
return useContext(AccordionContext);
|
|
38661
39078
|
}
|
|
38662
|
-
const defaultProps$
|
|
39079
|
+
const defaultProps$i = {
|
|
38663
39080
|
hideIcon: false,
|
|
38664
39081
|
collapsedIcon: "chevrondown",
|
|
38665
39082
|
triggerPosition: "end",
|
|
@@ -38669,13 +39086,13 @@ const AccordionComponent = forwardRef(function AccordionComponent2({
|
|
|
38669
39086
|
className,
|
|
38670
39087
|
style: style2,
|
|
38671
39088
|
children,
|
|
38672
|
-
hideIcon = defaultProps$
|
|
39089
|
+
hideIcon = defaultProps$i.hideIcon,
|
|
38673
39090
|
expandedIcon,
|
|
38674
|
-
collapsedIcon = defaultProps$
|
|
38675
|
-
triggerPosition = defaultProps$
|
|
39091
|
+
collapsedIcon = defaultProps$i.collapsedIcon,
|
|
39092
|
+
triggerPosition = defaultProps$i.triggerPosition,
|
|
38676
39093
|
onDisplayDidChange = noop$1,
|
|
38677
39094
|
registerComponentApi,
|
|
38678
|
-
rotateExpanded = defaultProps$
|
|
39095
|
+
rotateExpanded = defaultProps$i.rotateExpanded,
|
|
38679
39096
|
...rest
|
|
38680
39097
|
}, forwardedRef) {
|
|
38681
39098
|
const [expandedItems, setExpandedItems] = useState([]);
|
|
@@ -38796,14 +39213,14 @@ const AccordionMd = createMetadata({
|
|
|
38796
39213
|
props: {
|
|
38797
39214
|
triggerPosition: {
|
|
38798
39215
|
description: `This property indicates the position where the trigger icon should be displayed. The \`start\` value signs the trigger is before the header text (template), and \`end\` indicates that it follows the header.`,
|
|
38799
|
-
defaultValue: defaultProps$
|
|
39216
|
+
defaultValue: defaultProps$i.triggerPosition,
|
|
38800
39217
|
valueType: "string",
|
|
38801
39218
|
availableValues: triggerPositionNames
|
|
38802
39219
|
},
|
|
38803
39220
|
collapsedIcon: {
|
|
38804
39221
|
description: "This property is the name of the icon that is displayed when the accordion is collapsed. This property is the name of the icon that is displayed when the accordion is expanded. If not provided, a chevron-down icon is used.",
|
|
38805
39222
|
valueType: "string",
|
|
38806
|
-
defaultValue: defaultProps$
|
|
39223
|
+
defaultValue: defaultProps$i.collapsedIcon
|
|
38807
39224
|
},
|
|
38808
39225
|
expandedIcon: {
|
|
38809
39226
|
description: "This property is the name of the icon that is displayed when the accordion is expanded. If not provided, a chevron-up icon is used.",
|
|
@@ -38811,13 +39228,13 @@ const AccordionMd = createMetadata({
|
|
|
38811
39228
|
},
|
|
38812
39229
|
hideIcon: {
|
|
38813
39230
|
description: `This property indicates that the trigger icon is not displayed (\`true\`).`,
|
|
38814
|
-
defaultValue: defaultProps$
|
|
39231
|
+
defaultValue: defaultProps$i.hideIcon,
|
|
38815
39232
|
valueType: "boolean"
|
|
38816
39233
|
},
|
|
38817
39234
|
rotateExpanded: {
|
|
38818
39235
|
description: `This optional property defines the rotation angle of the expanded icon (relative to the collapsed icon).`,
|
|
38819
39236
|
valueType: "string",
|
|
38820
|
-
defaultValue: defaultProps$
|
|
39237
|
+
defaultValue: defaultProps$i.rotateExpanded
|
|
38821
39238
|
}
|
|
38822
39239
|
},
|
|
38823
39240
|
events: {
|
|
@@ -38884,7 +39301,7 @@ const accordionComponentRenderer = createComponentRenderer(
|
|
|
38884
39301
|
);
|
|
38885
39302
|
const TabItemComponent = forwardRef(function TabItemComponent2({ children, label: label2, headerRenderer, style: style2, id, activated, ...rest }, forwardedRef) {
|
|
38886
39303
|
const innerId = useId();
|
|
38887
|
-
const { register, unRegister, activeTabId } = useTabContext();
|
|
39304
|
+
const { register, unRegister, activeTabId, getTabItems } = useTabContext();
|
|
38888
39305
|
useEffect(() => {
|
|
38889
39306
|
register({
|
|
38890
39307
|
label: label2,
|
|
@@ -38905,6 +39322,9 @@ const TabItemComponent = forwardRef(function TabItemComponent2({ children, label
|
|
|
38905
39322
|
}
|
|
38906
39323
|
}, [activeTabId, innerId, activated]);
|
|
38907
39324
|
if (activeTabId !== innerId) return null;
|
|
39325
|
+
const tabItems = getTabItems();
|
|
39326
|
+
const tabIndex = (tabItems == null ? void 0 : tabItems.findIndex((item2) => item2.innerId === innerId)) ?? 0;
|
|
39327
|
+
const contentOrder = tabIndex * 2 + 1;
|
|
38908
39328
|
return /* @__PURE__ */ createElement(
|
|
38909
39329
|
Content$1,
|
|
38910
39330
|
{
|
|
@@ -38913,7 +39333,7 @@ const TabItemComponent = forwardRef(function TabItemComponent2({ children, label
|
|
|
38913
39333
|
value: innerId,
|
|
38914
39334
|
className: styles$o.tabsContent,
|
|
38915
39335
|
ref: forwardedRef,
|
|
38916
|
-
style: style2
|
|
39336
|
+
style: { ...style2, order: contentOrder }
|
|
38917
39337
|
},
|
|
38918
39338
|
children
|
|
38919
39339
|
);
|
|
@@ -38975,16 +39395,16 @@ const tabItemComponentRenderer = createComponentRenderer(
|
|
|
38975
39395
|
function defaultRenderer(header2) {
|
|
38976
39396
|
return /* @__PURE__ */ jsx("div", { children: header2 });
|
|
38977
39397
|
}
|
|
38978
|
-
const defaultProps$
|
|
39398
|
+
const defaultProps$h = {
|
|
38979
39399
|
initiallyExpanded: false,
|
|
38980
39400
|
headerRenderer: defaultRenderer
|
|
38981
39401
|
};
|
|
38982
39402
|
const AccordionItemComponent = forwardRef(function AccordionItemComponent2({
|
|
38983
39403
|
id,
|
|
38984
39404
|
header: header2,
|
|
38985
|
-
headerRenderer = defaultProps$
|
|
39405
|
+
headerRenderer = defaultProps$h.headerRenderer,
|
|
38986
39406
|
content: content2,
|
|
38987
|
-
initiallyExpanded = defaultProps$
|
|
39407
|
+
initiallyExpanded = defaultProps$h.initiallyExpanded,
|
|
38988
39408
|
style: style2,
|
|
38989
39409
|
className,
|
|
38990
39410
|
...rest
|
|
@@ -39081,7 +39501,7 @@ const AccordionItemMd = createMetadata({
|
|
|
39081
39501
|
initiallyExpanded: {
|
|
39082
39502
|
description: `This property indicates if the ${COMP$s} is expanded (\`true\`) or collapsed (\`false\`).`,
|
|
39083
39503
|
valueType: "boolean",
|
|
39084
|
-
defaultValue: defaultProps$
|
|
39504
|
+
defaultValue: defaultProps$h.initiallyExpanded
|
|
39085
39505
|
}
|
|
39086
39506
|
}
|
|
39087
39507
|
});
|
|
@@ -39334,7 +39754,7 @@ function useCarouselContextValue(isTabbed) {
|
|
|
39334
39754
|
carouselContextValue
|
|
39335
39755
|
};
|
|
39336
39756
|
}
|
|
39337
|
-
const defaultProps$
|
|
39757
|
+
const defaultProps$g = {
|
|
39338
39758
|
orientation: "horizontal",
|
|
39339
39759
|
indicators: true,
|
|
39340
39760
|
autoplay: false,
|
|
@@ -39346,21 +39766,21 @@ const defaultProps$h = {
|
|
|
39346
39766
|
stopAutoplayOnInteraction: true
|
|
39347
39767
|
};
|
|
39348
39768
|
const CarouselComponent = forwardRef(function CarouselComponent2({
|
|
39349
|
-
orientation = defaultProps$
|
|
39769
|
+
orientation = defaultProps$g.orientation,
|
|
39350
39770
|
children,
|
|
39351
39771
|
style: style2,
|
|
39352
39772
|
className,
|
|
39353
|
-
indicators: indicators2 = defaultProps$
|
|
39773
|
+
indicators: indicators2 = defaultProps$g.indicators,
|
|
39354
39774
|
onDisplayDidChange = noop$1,
|
|
39355
|
-
autoplay = defaultProps$
|
|
39356
|
-
controls: controls2 = defaultProps$
|
|
39357
|
-
loop = defaultProps$
|
|
39358
|
-
startIndex = defaultProps$
|
|
39775
|
+
autoplay = defaultProps$g.autoplay,
|
|
39776
|
+
controls: controls2 = defaultProps$g.controls,
|
|
39777
|
+
loop = defaultProps$g.loop,
|
|
39778
|
+
startIndex = defaultProps$g.startIndex,
|
|
39359
39779
|
prevIcon,
|
|
39360
39780
|
nextIcon,
|
|
39361
|
-
transitionDuration = defaultProps$
|
|
39362
|
-
autoplayInterval = defaultProps$
|
|
39363
|
-
stopAutoplayOnInteraction = defaultProps$
|
|
39781
|
+
transitionDuration = defaultProps$g.transitionDuration,
|
|
39782
|
+
autoplayInterval = defaultProps$g.autoplayInterval,
|
|
39783
|
+
stopAutoplayOnInteraction = defaultProps$g.stopAutoplayOnInteraction,
|
|
39364
39784
|
registerComponentApi,
|
|
39365
39785
|
...rest
|
|
39366
39786
|
}, forwardedRef) {
|
|
@@ -39563,47 +39983,47 @@ const CarouselMd = createMetadata({
|
|
|
39563
39983
|
description: "This property indicates the orientation of the carousel. The `horizontal` value indicates that the carousel moves horizontally, and the `vertical` value indicates that the carousel moves vertically.",
|
|
39564
39984
|
availableValues: orientationOptionMd,
|
|
39565
39985
|
valueType: "string",
|
|
39566
|
-
defaultValue: defaultProps$
|
|
39986
|
+
defaultValue: defaultProps$g.orientation
|
|
39567
39987
|
},
|
|
39568
39988
|
indicators: {
|
|
39569
39989
|
description: "Display the individual slides as buttons (`true`) or not (`false`).",
|
|
39570
39990
|
valueType: "boolean",
|
|
39571
|
-
defaultValue: defaultProps$
|
|
39991
|
+
defaultValue: defaultProps$g.indicators
|
|
39572
39992
|
},
|
|
39573
39993
|
controls: {
|
|
39574
39994
|
description: "Display the previous/next controls (`true`) or not (`false`).",
|
|
39575
39995
|
valueType: "boolean",
|
|
39576
|
-
defaultValue: defaultProps$
|
|
39996
|
+
defaultValue: defaultProps$g.controls
|
|
39577
39997
|
},
|
|
39578
39998
|
autoplay: {
|
|
39579
39999
|
description: "Start scrolling the carousel automatically (`true`) or not (`false`).",
|
|
39580
40000
|
valueType: "boolean",
|
|
39581
|
-
defaultValue: defaultProps$
|
|
40001
|
+
defaultValue: defaultProps$g.autoplay
|
|
39582
40002
|
},
|
|
39583
40003
|
loop: {
|
|
39584
40004
|
description: "Sets whether the carousel should loop back to the start/end when it reaches the last/first slide.",
|
|
39585
40005
|
valueType: "boolean",
|
|
39586
|
-
defaultValue: defaultProps$
|
|
40006
|
+
defaultValue: defaultProps$g.loop
|
|
39587
40007
|
},
|
|
39588
40008
|
startIndex: {
|
|
39589
40009
|
description: "The index of the first slide to display.",
|
|
39590
40010
|
valueType: "number",
|
|
39591
|
-
defaultValue: defaultProps$
|
|
40011
|
+
defaultValue: defaultProps$g.startIndex
|
|
39592
40012
|
},
|
|
39593
40013
|
transitionDuration: {
|
|
39594
40014
|
description: "The duration of the transition between slides.",
|
|
39595
40015
|
valueType: "number",
|
|
39596
|
-
defaultValue: defaultProps$
|
|
40016
|
+
defaultValue: defaultProps$g.transitionDuration
|
|
39597
40017
|
},
|
|
39598
40018
|
autoplayInterval: {
|
|
39599
40019
|
description: "Specifies the interval between autoplay transitions.",
|
|
39600
40020
|
valueType: "number",
|
|
39601
|
-
defaultValue: defaultProps$
|
|
40021
|
+
defaultValue: defaultProps$g.autoplayInterval
|
|
39602
40022
|
},
|
|
39603
40023
|
stopAutoplayOnInteraction: {
|
|
39604
40024
|
description: "This property indicates whether autoplay stops on user interaction.",
|
|
39605
40025
|
valueType: "boolean",
|
|
39606
|
-
defaultValue: defaultProps$
|
|
40026
|
+
defaultValue: defaultProps$g.stopAutoplayOnInteraction
|
|
39607
40027
|
},
|
|
39608
40028
|
prevIcon: {
|
|
39609
40029
|
description: "The icon to display for the previous control.",
|
|
@@ -39754,7 +40174,7 @@ const breakoutComponentRenderer = createComponentRenderer(
|
|
|
39754
40174
|
const COMP$n = "ToneChangerButton";
|
|
39755
40175
|
const LIGHT_TO_DARK_ICON = "lightToDark:ToneChangerButton";
|
|
39756
40176
|
const DARK_TO_LIGHT_ICON = "darkToLight:ToneChangerButton";
|
|
39757
|
-
const defaultProps$
|
|
40177
|
+
const defaultProps$f = {
|
|
39758
40178
|
lightToDarkIcon: LIGHT_TO_DARK_ICON,
|
|
39759
40179
|
darkToLightIcon: DARK_TO_LIGHT_ICON,
|
|
39760
40180
|
onClick: noop$2
|
|
@@ -39765,11 +40185,11 @@ const ToneChangerButtonMd = createMetadata({
|
|
|
39765
40185
|
props: {
|
|
39766
40186
|
lightToDarkIcon: {
|
|
39767
40187
|
description: `The icon displayed when the theme is in light mode and will switch to dark. You can change the default icon for all ${COMP$n} instances with the "icon.lightToDark:ToneChangerButton" declaration in the app configuration file.`,
|
|
39768
|
-
defaultValue: defaultProps$
|
|
40188
|
+
defaultValue: defaultProps$f.lightToDarkIcon
|
|
39769
40189
|
},
|
|
39770
40190
|
darkToLightIcon: {
|
|
39771
40191
|
description: `The icon displayed when the theme is in dark mode and will switch to light. You can change the default icon for all ${COMP$n} instances with the "icon.darkToLight:ToneChangerButton" declaration in the app configuration file.`,
|
|
39772
|
-
defaultValue: defaultProps$
|
|
40192
|
+
defaultValue: defaultProps$f.darkToLightIcon
|
|
39773
40193
|
}
|
|
39774
40194
|
},
|
|
39775
40195
|
events: {
|
|
@@ -39777,9 +40197,9 @@ const ToneChangerButtonMd = createMetadata({
|
|
|
39777
40197
|
}
|
|
39778
40198
|
});
|
|
39779
40199
|
function ToneChangerButton({
|
|
39780
|
-
lightToDarkIcon = defaultProps$
|
|
39781
|
-
darkToLightIcon = defaultProps$
|
|
39782
|
-
onClick = defaultProps$
|
|
40200
|
+
lightToDarkIcon = defaultProps$f.lightToDarkIcon,
|
|
40201
|
+
darkToLightIcon = defaultProps$f.darkToLightIcon,
|
|
40202
|
+
onClick = defaultProps$f.onClick
|
|
39783
40203
|
}) {
|
|
39784
40204
|
const { activeThemeTone, setActiveThemeTone } = useThemes();
|
|
39785
40205
|
const iconName = activeThemeTone === "light" ? lightToDarkIcon : darkToLightIcon;
|
|
@@ -39911,7 +40331,7 @@ const toneSwitchComponentRenderer = createComponentRenderer(
|
|
|
39911
40331
|
);
|
|
39912
40332
|
}
|
|
39913
40333
|
);
|
|
39914
|
-
const defaultProps$
|
|
40334
|
+
const defaultProps$e = {
|
|
39915
40335
|
method: "get"
|
|
39916
40336
|
};
|
|
39917
40337
|
function APICallNative({ registerComponentApi, node, uid }) {
|
|
@@ -39954,7 +40374,7 @@ const APICallMd = createMetadata({
|
|
|
39954
40374
|
description: "The method of data manipulation can be done via setting this property.",
|
|
39955
40375
|
valueType: "string",
|
|
39956
40376
|
availableValues: httpMethodNames,
|
|
39957
|
-
defaultValue: defaultProps$
|
|
40377
|
+
defaultValue: defaultProps$e.method
|
|
39958
40378
|
},
|
|
39959
40379
|
url: {
|
|
39960
40380
|
description: "Use this property to set the URL to which data will be sent. If not provided, an empty URL is used.",
|
|
@@ -42280,7 +42700,7 @@ const styles$h = {
|
|
|
42280
42700
|
warning: warning$1,
|
|
42281
42701
|
valid: valid$1
|
|
42282
42702
|
};
|
|
42283
|
-
const defaultProps$
|
|
42703
|
+
const defaultProps$d = {
|
|
42284
42704
|
initialValue: "#000000",
|
|
42285
42705
|
value: "#000000",
|
|
42286
42706
|
enabled: true,
|
|
@@ -42296,14 +42716,14 @@ const ColorPicker = forwardRef(
|
|
|
42296
42716
|
onFocus = noop$1,
|
|
42297
42717
|
onBlur = noop$1,
|
|
42298
42718
|
registerComponentApi,
|
|
42299
|
-
enabled: enabled2 = defaultProps$
|
|
42719
|
+
enabled: enabled2 = defaultProps$d.enabled,
|
|
42300
42720
|
readOnly: readOnly2,
|
|
42301
|
-
value = defaultProps$
|
|
42721
|
+
value = defaultProps$d.value,
|
|
42302
42722
|
autoFocus,
|
|
42303
42723
|
tabIndex = 0,
|
|
42304
42724
|
required: required2,
|
|
42305
|
-
validationStatus = defaultProps$
|
|
42306
|
-
initialValue = defaultProps$
|
|
42725
|
+
validationStatus = defaultProps$d.validationStatus,
|
|
42726
|
+
initialValue = defaultProps$d.initialValue,
|
|
42307
42727
|
...rest
|
|
42308
42728
|
}, forwardedRef) => {
|
|
42309
42729
|
const [isPending, startTransition2] = useTransition();
|
|
@@ -42396,7 +42816,7 @@ const ColorPickerMd = createMetadata({
|
|
|
42396
42816
|
autoFocus: dAutoFocus(),
|
|
42397
42817
|
required: dRequired(),
|
|
42398
42818
|
readOnly: dReadonly(),
|
|
42399
|
-
validationStatus: dValidationStatus(defaultProps$
|
|
42819
|
+
validationStatus: dValidationStatus(defaultProps$d.validationStatus)
|
|
42400
42820
|
},
|
|
42401
42821
|
events: {
|
|
42402
42822
|
didChange: dDidChange(COMP$h),
|
|
@@ -42899,7 +43319,7 @@ const styles$e = {
|
|
|
42899
43319
|
shadowRoot,
|
|
42900
43320
|
content: content$1
|
|
42901
43321
|
};
|
|
42902
|
-
const defaultProps$
|
|
43322
|
+
const defaultProps$c = {
|
|
42903
43323
|
allowPlaygroundPopup: true,
|
|
42904
43324
|
withFrame: true,
|
|
42905
43325
|
components: EMPTY_ARRAY
|
|
@@ -42918,7 +43338,7 @@ const NestedAppMd = createMetadata({
|
|
|
42918
43338
|
},
|
|
42919
43339
|
components: {
|
|
42920
43340
|
description: "This property defines an optional list of components to be used with the nested app.",
|
|
42921
|
-
defaultValue: defaultProps$
|
|
43341
|
+
defaultValue: defaultProps$c.components
|
|
42922
43342
|
},
|
|
42923
43343
|
config: {
|
|
42924
43344
|
description: "You can define the nested app's configuration with this property."
|
|
@@ -43017,7 +43437,7 @@ It supports both side-by-side and stacked layouts.`,
|
|
|
43017
43437
|
},
|
|
43018
43438
|
components: {
|
|
43019
43439
|
description: "This property defines an optional list of components to be used with the nested app.",
|
|
43020
|
-
defaultValue: defaultProps$
|
|
43440
|
+
defaultValue: defaultProps$c.components
|
|
43021
43441
|
},
|
|
43022
43442
|
config: {
|
|
43023
43443
|
description: "You can define the nested app's configuration with this property."
|
|
@@ -43037,12 +43457,12 @@ It supports both side-by-side and stacked layouts.`,
|
|
|
43037
43457
|
allowPlaygroundPopup: {
|
|
43038
43458
|
description: "This property defines whether the nested app can be opened in the xmlui playground.",
|
|
43039
43459
|
valueType: "boolean",
|
|
43040
|
-
defaultValue: defaultProps$
|
|
43460
|
+
defaultValue: defaultProps$c.allowPlaygroundPopup
|
|
43041
43461
|
},
|
|
43042
43462
|
withFrame: {
|
|
43043
43463
|
description: "This property defines whether the nested app should be displayed with a frame.",
|
|
43044
43464
|
valueType: "boolean",
|
|
43045
|
-
defaultValue: defaultProps$
|
|
43465
|
+
defaultValue: defaultProps$c.withFrame
|
|
43046
43466
|
}
|
|
43047
43467
|
},
|
|
43048
43468
|
themeVars: parseScssVar(styles$d.themeVars),
|
|
@@ -43239,7 +43659,7 @@ const TooltipContent$1 = forwardRef(function({ active: active2, payload, indicat
|
|
|
43239
43659
|
return null;
|
|
43240
43660
|
});
|
|
43241
43661
|
TooltipContent$1.displayName = "TooltipContent";
|
|
43242
|
-
const defaultProps$
|
|
43662
|
+
const defaultProps$b = {
|
|
43243
43663
|
hideTickX: false,
|
|
43244
43664
|
hideTickY: false,
|
|
43245
43665
|
hideX: false,
|
|
@@ -43255,18 +43675,18 @@ function AreaChart({
|
|
|
43255
43675
|
data = [],
|
|
43256
43676
|
nameKey,
|
|
43257
43677
|
dataKeys = [],
|
|
43258
|
-
hideTickX = defaultProps$
|
|
43259
|
-
hideTickY = defaultProps$
|
|
43260
|
-
hideY = defaultProps$
|
|
43261
|
-
hideX = defaultProps$
|
|
43262
|
-
hideTooltip = defaultProps$
|
|
43263
|
-
tickFormatterX = defaultProps$
|
|
43264
|
-
tickFormatterY = defaultProps$
|
|
43678
|
+
hideTickX = defaultProps$b.hideTickX,
|
|
43679
|
+
hideTickY = defaultProps$b.hideTickY,
|
|
43680
|
+
hideY = defaultProps$b.hideY,
|
|
43681
|
+
hideX = defaultProps$b.hideX,
|
|
43682
|
+
hideTooltip = defaultProps$b.hideTooltip,
|
|
43683
|
+
tickFormatterX = defaultProps$b.tickFormatterX,
|
|
43684
|
+
tickFormatterY = defaultProps$b.tickFormatterY,
|
|
43265
43685
|
className,
|
|
43266
43686
|
children,
|
|
43267
|
-
showLegend = defaultProps$
|
|
43268
|
-
stacked = defaultProps$
|
|
43269
|
-
curved = defaultProps$
|
|
43687
|
+
showLegend = defaultProps$b.showLegend,
|
|
43688
|
+
stacked = defaultProps$b.stacked,
|
|
43689
|
+
curved = defaultProps$b.curved,
|
|
43270
43690
|
tooltipRenderer
|
|
43271
43691
|
}) {
|
|
43272
43692
|
const validData = Array.isArray(data) ? data : [];
|
|
@@ -43387,42 +43807,42 @@ const AreaChartMd = createMetadata({
|
|
|
43387
43807
|
hideX: {
|
|
43388
43808
|
description: "Determines whether the X-axis should be hidden. If set to `true`, the axis will not be rendered.",
|
|
43389
43809
|
valueType: "boolean",
|
|
43390
|
-
defaultValue: defaultProps$
|
|
43810
|
+
defaultValue: defaultProps$b.hideX
|
|
43391
43811
|
},
|
|
43392
43812
|
hideY: {
|
|
43393
43813
|
description: "Determines whether the Y-axis should be hidden. If set to `true`, the axis will not be rendered.",
|
|
43394
43814
|
valueType: "boolean",
|
|
43395
|
-
defaultValue: defaultProps$
|
|
43815
|
+
defaultValue: defaultProps$b.hideY
|
|
43396
43816
|
},
|
|
43397
43817
|
hideTickX: {
|
|
43398
43818
|
description: "Determines whether the X-axis tick labels should be hidden. If set to `true`, the tick labels will not be rendered.",
|
|
43399
43819
|
valueType: "boolean",
|
|
43400
|
-
defaultValue: defaultProps$
|
|
43820
|
+
defaultValue: defaultProps$b.hideTickX
|
|
43401
43821
|
},
|
|
43402
43822
|
hideTickY: {
|
|
43403
43823
|
description: "Determines whether the Y-axis tick labels should be hidden. If set to `true`, the tick labels will not be rendered.",
|
|
43404
43824
|
valueType: "boolean",
|
|
43405
|
-
defaultValue: defaultProps$
|
|
43825
|
+
defaultValue: defaultProps$b.hideTickY
|
|
43406
43826
|
},
|
|
43407
43827
|
hideTooltip: {
|
|
43408
43828
|
description: "Determines whether the tooltip should be hidden. If set to `true`, the tooltip will not be rendered.",
|
|
43409
43829
|
valueType: "boolean",
|
|
43410
|
-
defaultValue: defaultProps$
|
|
43830
|
+
defaultValue: defaultProps$b.hideTooltip
|
|
43411
43831
|
},
|
|
43412
43832
|
showLegend: {
|
|
43413
43833
|
description: "Determines whether the legend should be shown. If set to `true`, the legend will be rendered.",
|
|
43414
43834
|
valueType: "boolean",
|
|
43415
|
-
defaultValue: defaultProps$
|
|
43835
|
+
defaultValue: defaultProps$b.showLegend
|
|
43416
43836
|
},
|
|
43417
43837
|
stacked: {
|
|
43418
43838
|
description: "Determines whether multiple areas should be stacked on top of each other. If set to `true`, areas will be stacked.",
|
|
43419
43839
|
valueType: "boolean",
|
|
43420
|
-
defaultValue: defaultProps$
|
|
43840
|
+
defaultValue: defaultProps$b.stacked
|
|
43421
43841
|
},
|
|
43422
43842
|
curved: {
|
|
43423
43843
|
description: "Determines whether the area lines should be curved (smooth) or straight. If set to `true`, lines will be curved.",
|
|
43424
43844
|
valueType: "boolean",
|
|
43425
|
-
defaultValue: defaultProps$
|
|
43845
|
+
defaultValue: defaultProps$b.curved
|
|
43426
43846
|
},
|
|
43427
43847
|
tooltipTemplate: {
|
|
43428
43848
|
description: "This property allows replacing the default template to display a tooltip."
|
|
@@ -43482,7 +43902,7 @@ const wrapper$2 = "_wrapper_il6v1_14";
|
|
|
43482
43902
|
const styles$b = {
|
|
43483
43903
|
wrapper: wrapper$2
|
|
43484
43904
|
};
|
|
43485
|
-
const defaultProps$
|
|
43905
|
+
const defaultProps$a = {
|
|
43486
43906
|
layout: "vertical",
|
|
43487
43907
|
stacked: false,
|
|
43488
43908
|
hideTickX: false,
|
|
@@ -43500,21 +43920,21 @@ const defaultChartParams$1 = {
|
|
|
43500
43920
|
};
|
|
43501
43921
|
function BarChart({
|
|
43502
43922
|
data = [],
|
|
43503
|
-
layout = defaultProps$
|
|
43923
|
+
layout = defaultProps$a.layout,
|
|
43504
43924
|
nameKey,
|
|
43505
|
-
stacked = defaultProps$
|
|
43925
|
+
stacked = defaultProps$a.stacked,
|
|
43506
43926
|
dataKeys = [],
|
|
43507
|
-
hideTickX = defaultProps$
|
|
43508
|
-
hideTickY = defaultProps$
|
|
43509
|
-
hideY = defaultProps$
|
|
43510
|
-
hideX = defaultProps$
|
|
43511
|
-
hideTooltip = defaultProps$
|
|
43512
|
-
tickFormatterX = defaultProps$
|
|
43513
|
-
tickFormatterY = defaultProps$
|
|
43927
|
+
hideTickX = defaultProps$a.hideTickX,
|
|
43928
|
+
hideTickY = defaultProps$a.hideTickY,
|
|
43929
|
+
hideY = defaultProps$a.hideY,
|
|
43930
|
+
hideX = defaultProps$a.hideX,
|
|
43931
|
+
hideTooltip = defaultProps$a.hideTooltip,
|
|
43932
|
+
tickFormatterX = defaultProps$a.tickFormatterX,
|
|
43933
|
+
tickFormatterY = defaultProps$a.tickFormatterY,
|
|
43514
43934
|
style: style2,
|
|
43515
43935
|
className,
|
|
43516
43936
|
children,
|
|
43517
|
-
showLegend = defaultProps$
|
|
43937
|
+
showLegend = defaultProps$a.showLegend,
|
|
43518
43938
|
tooltipRenderer
|
|
43519
43939
|
}) {
|
|
43520
43940
|
const validData = useMemo(() => Array.isArray(data) ? data : [], [data]);
|
|
@@ -43848,13 +44268,13 @@ const BarChartMd = createMetadata({
|
|
|
43848
44268
|
stacked: {
|
|
43849
44269
|
description: `This property determines how the bars are laid out.If set to \`true\`, bars with the same category will be stacked on top of each other rather than placed side by side.`,
|
|
43850
44270
|
valueType: "boolean",
|
|
43851
|
-
defaultValue: defaultProps$
|
|
44271
|
+
defaultValue: defaultProps$a.stacked
|
|
43852
44272
|
},
|
|
43853
44273
|
orientation: {
|
|
43854
44274
|
description: `This property determines the orientation of the bar chart. The \`vertical\` variant specifies the horizontal axis as the primary and lays out the bars from left to right. The \`horizontal\` variant specifies the vertical axis as the primary and has the bars spread from top to bottom.`,
|
|
43855
44275
|
valueType: "string",
|
|
43856
44276
|
availableValues: ["horizontal", "vertical"],
|
|
43857
|
-
defaultValue: defaultProps$
|
|
44277
|
+
defaultValue: defaultProps$a.layout
|
|
43858
44278
|
},
|
|
43859
44279
|
xKey: {
|
|
43860
44280
|
description: `This property specifies the keys in the data objects that should be used for rendering the bars.E.g. 'id' or 'key'.`,
|
|
@@ -43863,40 +44283,40 @@ const BarChartMd = createMetadata({
|
|
|
43863
44283
|
hideX: {
|
|
43864
44284
|
description: "Determines whether the X-axis should be hidden. If set to `true`, the axis will not be rendered.",
|
|
43865
44285
|
valueType: "boolean",
|
|
43866
|
-
defaultValue: defaultProps$
|
|
44286
|
+
defaultValue: defaultProps$a.hideX
|
|
43867
44287
|
},
|
|
43868
44288
|
hideY: {
|
|
43869
44289
|
description: "Determines whether the Y-axis should be hidden. If set to `true`, the axis will not be rendered.",
|
|
43870
44290
|
valueType: "boolean",
|
|
43871
|
-
defaultValue: defaultProps$
|
|
44291
|
+
defaultValue: defaultProps$a.hideY
|
|
43872
44292
|
},
|
|
43873
44293
|
hideTickX: {
|
|
43874
44294
|
description: "Controls the visibility of the X-axis ticks. If set to `true`, tick labels on the X-axis will be hidden.",
|
|
43875
44295
|
valueType: "boolean",
|
|
43876
|
-
defaultValue: defaultProps$
|
|
44296
|
+
defaultValue: defaultProps$a.hideTickX
|
|
43877
44297
|
},
|
|
43878
44298
|
hideTickY: {
|
|
43879
44299
|
description: "Controls the visibility of the Y-axis ticks. If set to `true`, tick labels on the Y-axis will be hidden.",
|
|
43880
44300
|
valueType: "boolean",
|
|
43881
|
-
defaultValue: defaultProps$
|
|
44301
|
+
defaultValue: defaultProps$a.hideTickY
|
|
43882
44302
|
},
|
|
43883
44303
|
tickFormatterX: {
|
|
43884
44304
|
description: "A function that formats the tick labels on the X-axis. ",
|
|
43885
|
-
defaultValue: JSON.stringify(defaultProps$
|
|
44305
|
+
defaultValue: JSON.stringify(defaultProps$a.tickFormatterX)
|
|
43886
44306
|
},
|
|
43887
44307
|
tickFormatterY: {
|
|
43888
44308
|
description: "A function that formats the tick labels on the Y-axis. ",
|
|
43889
|
-
defaultValue: JSON.stringify(defaultProps$
|
|
44309
|
+
defaultValue: JSON.stringify(defaultProps$a.tickFormatterY)
|
|
43890
44310
|
},
|
|
43891
44311
|
hideTooltip: {
|
|
43892
44312
|
description: "Determines whether the tooltip should be hidden. If set to `true`, tooltips will not appear on hover.",
|
|
43893
44313
|
valueType: "boolean",
|
|
43894
|
-
defaultValue: defaultProps$
|
|
44314
|
+
defaultValue: defaultProps$a.hideTooltip
|
|
43895
44315
|
},
|
|
43896
44316
|
showLegend: {
|
|
43897
44317
|
description: "Determines whether the legend should be displayed.",
|
|
43898
44318
|
valueType: "boolean",
|
|
43899
|
-
defaultValue: defaultProps$
|
|
44319
|
+
defaultValue: defaultProps$a.showLegend
|
|
43900
44320
|
},
|
|
43901
44321
|
tooltipTemplate: {
|
|
43902
44322
|
description: "This property allows replacing the default template to display a tooltip."
|
|
@@ -43949,7 +44369,7 @@ const styles$a = {
|
|
|
43949
44369
|
themeVars: themeVars$2,
|
|
43950
44370
|
wrapper: wrapper$1
|
|
43951
44371
|
};
|
|
43952
|
-
const defaultProps$
|
|
44372
|
+
const defaultProps$9 = {
|
|
43953
44373
|
showLabel: true,
|
|
43954
44374
|
showLabelList: false,
|
|
43955
44375
|
showLegend: false,
|
|
@@ -44020,14 +44440,14 @@ function PieChart({
|
|
|
44020
44440
|
nameKey,
|
|
44021
44441
|
style: style2,
|
|
44022
44442
|
className,
|
|
44023
|
-
showLabel = defaultProps$
|
|
44024
|
-
showLabelList = defaultProps$
|
|
44025
|
-
labelListPosition = defaultProps$
|
|
44026
|
-
innerRadius = defaultProps$
|
|
44443
|
+
showLabel = defaultProps$9.showLabel,
|
|
44444
|
+
showLabelList = defaultProps$9.showLabelList,
|
|
44445
|
+
labelListPosition = defaultProps$9.labelListPosition,
|
|
44446
|
+
innerRadius = defaultProps$9.innerRadius,
|
|
44027
44447
|
children,
|
|
44028
44448
|
outerRadius,
|
|
44029
44449
|
// no default; we'll compute when undefined or "auto"
|
|
44030
|
-
showLegend = defaultProps$
|
|
44450
|
+
showLegend = defaultProps$9.showLegend
|
|
44031
44451
|
}) {
|
|
44032
44452
|
const { getThemeVar } = useTheme();
|
|
44033
44453
|
const colorValues = useMemo(() => {
|
|
@@ -44149,7 +44569,7 @@ function PieChart({
|
|
|
44149
44569
|
}
|
|
44150
44570
|
const COMP$a = "DonutChart";
|
|
44151
44571
|
const defaultPropsDonut = {
|
|
44152
|
-
...defaultProps$
|
|
44572
|
+
...defaultProps$9,
|
|
44153
44573
|
innerRadius: 60
|
|
44154
44574
|
};
|
|
44155
44575
|
const DonutChartMd = createMetadata({
|
|
@@ -44232,10 +44652,10 @@ const styles$9 = {
|
|
|
44232
44652
|
themeVars: themeVars$1,
|
|
44233
44653
|
labelList
|
|
44234
44654
|
};
|
|
44235
|
-
const defaultProps$
|
|
44655
|
+
const defaultProps$8 = {
|
|
44236
44656
|
position: "inside"
|
|
44237
44657
|
};
|
|
44238
|
-
const LabelList = ({ position = defaultProps$
|
|
44658
|
+
const LabelList = ({ position = defaultProps$8.position, nameKey: key, style: style2, className }) => {
|
|
44239
44659
|
const { nameKey } = useChart();
|
|
44240
44660
|
const { setLabelList } = useLabelList();
|
|
44241
44661
|
const content2 = useMemo(
|
|
@@ -44293,7 +44713,7 @@ const LabelListMd = createMetadata({
|
|
|
44293
44713
|
description: "The position of the label list",
|
|
44294
44714
|
valueType: "string",
|
|
44295
44715
|
availableValues: LabelPositionValues,
|
|
44296
|
-
defaultValue: defaultProps$
|
|
44716
|
+
defaultValue: defaultProps$8.position
|
|
44297
44717
|
}
|
|
44298
44718
|
},
|
|
44299
44719
|
themeVars: parseScssVar(styles$9.themeVars),
|
|
@@ -44327,13 +44747,13 @@ const horizontalAlignmentValues = [
|
|
|
44327
44747
|
"right",
|
|
44328
44748
|
"center"
|
|
44329
44749
|
];
|
|
44330
|
-
const defaultProps$
|
|
44750
|
+
const defaultProps$7 = {
|
|
44331
44751
|
verticalAlign: "bottom",
|
|
44332
44752
|
align: "center"
|
|
44333
44753
|
};
|
|
44334
44754
|
const Legend = ({
|
|
44335
|
-
verticalAlign = defaultProps$
|
|
44336
|
-
align = defaultProps$
|
|
44755
|
+
verticalAlign = defaultProps$7.verticalAlign,
|
|
44756
|
+
align = defaultProps$7.align
|
|
44337
44757
|
}) => {
|
|
44338
44758
|
const { setLegend } = useLegend();
|
|
44339
44759
|
const content2 = useMemo(
|
|
@@ -44354,13 +44774,13 @@ const LegendMd = createMetadata({
|
|
|
44354
44774
|
description: "The alignment of the legend",
|
|
44355
44775
|
valueType: "string",
|
|
44356
44776
|
availableValues: horizontalAlignmentValues,
|
|
44357
|
-
defaultValue: defaultProps$
|
|
44777
|
+
defaultValue: defaultProps$7.align
|
|
44358
44778
|
},
|
|
44359
44779
|
verticalAlign: {
|
|
44360
44780
|
description: "The vertical alignment of the legend",
|
|
44361
44781
|
valueType: "string",
|
|
44362
44782
|
availableValues: verticalAlignmentValues,
|
|
44363
|
-
defaultValue: defaultProps$
|
|
44783
|
+
defaultValue: defaultProps$7.verticalAlign
|
|
44364
44784
|
}
|
|
44365
44785
|
}
|
|
44366
44786
|
});
|
|
@@ -44384,7 +44804,7 @@ const styles$8 = {
|
|
|
44384
44804
|
themeVars,
|
|
44385
44805
|
wrapper
|
|
44386
44806
|
};
|
|
44387
|
-
const defaultProps$
|
|
44807
|
+
const defaultProps$6 = {
|
|
44388
44808
|
hideTickX: false,
|
|
44389
44809
|
hideTickY: false,
|
|
44390
44810
|
hideX: false,
|
|
@@ -44403,15 +44823,15 @@ const LineChart = forwardRef(function LineChart2({
|
|
|
44403
44823
|
nameKey,
|
|
44404
44824
|
style: style2,
|
|
44405
44825
|
className,
|
|
44406
|
-
hideX = defaultProps$
|
|
44407
|
-
hideY = defaultProps$
|
|
44408
|
-
hideTickX = defaultProps$
|
|
44409
|
-
hideTickY = defaultProps$
|
|
44410
|
-
hideTooltip = defaultProps$
|
|
44411
|
-
tickFormatterX = defaultProps$
|
|
44412
|
-
tickFormatterY = defaultProps$
|
|
44826
|
+
hideX = defaultProps$6.hideX,
|
|
44827
|
+
hideY = defaultProps$6.hideY,
|
|
44828
|
+
hideTickX = defaultProps$6.hideTickX,
|
|
44829
|
+
hideTickY = defaultProps$6.hideTickY,
|
|
44830
|
+
hideTooltip = defaultProps$6.hideTooltip,
|
|
44831
|
+
tickFormatterX = defaultProps$6.tickFormatterX,
|
|
44832
|
+
tickFormatterY = defaultProps$6.tickFormatterY,
|
|
44413
44833
|
children,
|
|
44414
|
-
showLegend = defaultProps$
|
|
44834
|
+
showLegend = defaultProps$6.showLegend,
|
|
44415
44835
|
tooltipRenderer
|
|
44416
44836
|
}, forwardedRef) {
|
|
44417
44837
|
const { getThemeVar } = useTheme();
|
|
@@ -44641,27 +45061,27 @@ const LineChartMd = createMetadata({
|
|
|
44641
45061
|
hideX: {
|
|
44642
45062
|
description: "Determines whether the X-axis should be hidden. If set to (`true`), the axis will not be displayed.",
|
|
44643
45063
|
valueType: "boolean",
|
|
44644
|
-
defaultValue: defaultProps$
|
|
45064
|
+
defaultValue: defaultProps$6.hideX
|
|
44645
45065
|
},
|
|
44646
45066
|
hideY: {
|
|
44647
45067
|
description: "Determines whether the Y-axis should be hidden. If set to (`true`), the axis will not be displayed.",
|
|
44648
45068
|
valueType: "boolean",
|
|
44649
|
-
defaultValue: defaultProps$
|
|
45069
|
+
defaultValue: defaultProps$6.hideY
|
|
44650
45070
|
},
|
|
44651
45071
|
hideTickX: {
|
|
44652
45072
|
description: "Determines whether the X-axis ticks should be hidden. If set to (`true`), the ticks will not be displayed.",
|
|
44653
45073
|
valueType: "boolean",
|
|
44654
|
-
defaultValue: defaultProps$
|
|
45074
|
+
defaultValue: defaultProps$6.hideTickX
|
|
44655
45075
|
},
|
|
44656
45076
|
hideTickY: {
|
|
44657
45077
|
description: "Determines whether the Y-axis ticks should be hidden. If set to (`true`), the ticks will not be displayed.",
|
|
44658
45078
|
valueType: "boolean",
|
|
44659
|
-
defaultValue: defaultProps$
|
|
45079
|
+
defaultValue: defaultProps$6.hideTickY
|
|
44660
45080
|
},
|
|
44661
45081
|
hideTooltip: {
|
|
44662
45082
|
description: "Determines whether the tooltip should be hidden.If set to (`true`), no tooltip will be shown when hovering over data points.",
|
|
44663
45083
|
valueType: "boolean",
|
|
44664
|
-
defaultValue: defaultProps$
|
|
45084
|
+
defaultValue: defaultProps$6.hideTooltip
|
|
44665
45085
|
},
|
|
44666
45086
|
tickFormatterX: {
|
|
44667
45087
|
description: "A function that formats the X-axis tick labels. It receives a tick value and returns a formatted string."
|
|
@@ -44672,7 +45092,7 @@ const LineChartMd = createMetadata({
|
|
|
44672
45092
|
showLegend: {
|
|
44673
45093
|
description: "Determines whether the legend should be displayed.",
|
|
44674
45094
|
valueType: "boolean",
|
|
44675
|
-
defaultValue: defaultProps$
|
|
45095
|
+
defaultValue: defaultProps$6.showLegend
|
|
44676
45096
|
},
|
|
44677
45097
|
tooltipTemplate: {
|
|
44678
45098
|
description: "This property allows replacing the default template to display a tooltip."
|
|
@@ -44749,17 +45169,17 @@ const PieChartMd = createMetadata({
|
|
|
44749
45169
|
showLabel: {
|
|
44750
45170
|
description: "Toggles whether to show labels (`true`) or not (`false`).",
|
|
44751
45171
|
valueType: "boolean",
|
|
44752
|
-
defaultValue: defaultProps$
|
|
45172
|
+
defaultValue: defaultProps$9.showLabel
|
|
44753
45173
|
},
|
|
44754
45174
|
showLabelList: {
|
|
44755
45175
|
description: "Whether to show labels in a list (`true`) or not (`false`).",
|
|
44756
45176
|
valueType: "boolean",
|
|
44757
|
-
defaultValue: defaultProps$
|
|
45177
|
+
defaultValue: defaultProps$9.showLabelList
|
|
44758
45178
|
},
|
|
44759
45179
|
labelListPosition: {
|
|
44760
45180
|
description: "The position of the label list.",
|
|
44761
45181
|
valueType: "string",
|
|
44762
|
-
defaultValue: defaultProps$
|
|
45182
|
+
defaultValue: defaultProps$9.labelListPosition,
|
|
44763
45183
|
availableValues: LabelPositionValues
|
|
44764
45184
|
},
|
|
44765
45185
|
outerRadius: d(
|
|
@@ -44768,7 +45188,7 @@ const PieChartMd = createMetadata({
|
|
|
44768
45188
|
showLegend: {
|
|
44769
45189
|
description: "Toggles whether to show legend (`true`) or not (`false`).",
|
|
44770
45190
|
valueType: "boolean",
|
|
44771
|
-
defaultValue: defaultProps$
|
|
45191
|
+
defaultValue: defaultProps$9.showLegend
|
|
44772
45192
|
}
|
|
44773
45193
|
},
|
|
44774
45194
|
themeVars: parseScssVar(styles$a.themeVars),
|
|
@@ -44797,7 +45217,7 @@ const pieChartComponentRenderer = createComponentRenderer(
|
|
|
44797
45217
|
);
|
|
44798
45218
|
}
|
|
44799
45219
|
);
|
|
44800
|
-
const defaultProps$
|
|
45220
|
+
const defaultProps$5 = {
|
|
44801
45221
|
hideGrid: false,
|
|
44802
45222
|
hideAngleAxis: false,
|
|
44803
45223
|
hideRadiusAxis: false,
|
|
@@ -44811,16 +45231,16 @@ function RadarChart({
|
|
|
44811
45231
|
data = [],
|
|
44812
45232
|
nameKey,
|
|
44813
45233
|
dataKeys = [],
|
|
44814
|
-
hideGrid = defaultProps$
|
|
44815
|
-
hideAngleAxis = defaultProps$
|
|
44816
|
-
hideRadiusAxis = defaultProps$
|
|
44817
|
-
hideTooltip = defaultProps$
|
|
45234
|
+
hideGrid = defaultProps$5.hideGrid,
|
|
45235
|
+
hideAngleAxis = defaultProps$5.hideAngleAxis,
|
|
45236
|
+
hideRadiusAxis = defaultProps$5.hideRadiusAxis,
|
|
45237
|
+
hideTooltip = defaultProps$5.hideTooltip,
|
|
44818
45238
|
className,
|
|
44819
45239
|
children,
|
|
44820
|
-
showLegend = defaultProps$
|
|
44821
|
-
filled = defaultProps$
|
|
44822
|
-
strokeWidth = defaultProps$
|
|
44823
|
-
fillOpacity = defaultProps$
|
|
45240
|
+
showLegend = defaultProps$5.showLegend,
|
|
45241
|
+
filled = defaultProps$5.filled,
|
|
45242
|
+
strokeWidth = defaultProps$5.strokeWidth,
|
|
45243
|
+
fillOpacity = defaultProps$5.fillOpacity,
|
|
44824
45244
|
tooltipRenderer
|
|
44825
45245
|
}) {
|
|
44826
45246
|
const validData = Array.isArray(data) ? data : [];
|
|
@@ -44943,42 +45363,42 @@ const RadarChartMd = createMetadata({
|
|
|
44943
45363
|
hideGrid: {
|
|
44944
45364
|
description: "Determines whether the polar grid should be hidden. If set to `true`, the grid will not be rendered.",
|
|
44945
45365
|
valueType: "boolean",
|
|
44946
|
-
defaultValue: defaultProps$
|
|
45366
|
+
defaultValue: defaultProps$5.hideGrid
|
|
44947
45367
|
},
|
|
44948
45368
|
hideAngleAxis: {
|
|
44949
45369
|
description: "Determines whether the angle axis should be hidden. If set to `true`, the angle axis will not be rendered.",
|
|
44950
45370
|
valueType: "boolean",
|
|
44951
|
-
defaultValue: defaultProps$
|
|
45371
|
+
defaultValue: defaultProps$5.hideAngleAxis
|
|
44952
45372
|
},
|
|
44953
45373
|
hideRadiusAxis: {
|
|
44954
45374
|
description: "Determines whether the radius axis should be hidden. If set to `true`, the radius axis will not be rendered.",
|
|
44955
45375
|
valueType: "boolean",
|
|
44956
|
-
defaultValue: defaultProps$
|
|
45376
|
+
defaultValue: defaultProps$5.hideRadiusAxis
|
|
44957
45377
|
},
|
|
44958
45378
|
hideTooltip: {
|
|
44959
45379
|
description: "Determines whether the tooltip should be hidden. If set to `true`, the tooltip will not be rendered.",
|
|
44960
45380
|
valueType: "boolean",
|
|
44961
|
-
defaultValue: defaultProps$
|
|
45381
|
+
defaultValue: defaultProps$5.hideTooltip
|
|
44962
45382
|
},
|
|
44963
45383
|
showLegend: {
|
|
44964
45384
|
description: "Determines whether the legend should be shown. If set to `true`, the legend will be rendered.",
|
|
44965
45385
|
valueType: "boolean",
|
|
44966
|
-
defaultValue: defaultProps$
|
|
45386
|
+
defaultValue: defaultProps$5.showLegend
|
|
44967
45387
|
},
|
|
44968
45388
|
filled: {
|
|
44969
45389
|
description: "Determines whether the radar areas should be filled. If set to `true`, areas will be filled with color.",
|
|
44970
45390
|
valueType: "boolean",
|
|
44971
|
-
defaultValue: defaultProps$
|
|
45391
|
+
defaultValue: defaultProps$5.filled
|
|
44972
45392
|
},
|
|
44973
45393
|
strokeWidth: {
|
|
44974
45394
|
description: "Sets the stroke width for the radar lines. Higher values create thicker lines.",
|
|
44975
45395
|
valueType: "number",
|
|
44976
|
-
defaultValue: defaultProps$
|
|
45396
|
+
defaultValue: defaultProps$5.strokeWidth
|
|
44977
45397
|
},
|
|
44978
45398
|
fillOpacity: {
|
|
44979
45399
|
description: "Sets the fill opacity for the radar areas when filled is true. Value between 0 and 1.",
|
|
44980
45400
|
valueType: "number",
|
|
44981
|
-
defaultValue: defaultProps$
|
|
45401
|
+
defaultValue: defaultProps$5.fillOpacity
|
|
44982
45402
|
},
|
|
44983
45403
|
tooltipTemplate: {
|
|
44984
45404
|
description: "This property allows replacing the default template to display a tooltip."
|
|
@@ -45360,7 +45780,7 @@ class ComponentRegistry {
|
|
|
45360
45780
|
* about component registrations
|
|
45361
45781
|
*/
|
|
45362
45782
|
constructor(contributes = {}, extensionManager) {
|
|
45363
|
-
var _a2, _b, _c;
|
|
45783
|
+
var _a2, _b, _c, _d;
|
|
45364
45784
|
this.extensionManager = extensionManager;
|
|
45365
45785
|
this.pool = /* @__PURE__ */ new Map();
|
|
45366
45786
|
this.namePool = /* @__PURE__ */ new Map();
|
|
@@ -45368,6 +45788,7 @@ class ComponentRegistry {
|
|
|
45368
45788
|
this.defaultThemeVars = {};
|
|
45369
45789
|
this.actionFns = /* @__PURE__ */ new Map();
|
|
45370
45790
|
this.loaders = /* @__PURE__ */ new Map();
|
|
45791
|
+
this.behaviors = [];
|
|
45371
45792
|
this.extensionRegistered = (extension) => {
|
|
45372
45793
|
var _a3;
|
|
45373
45794
|
(_a3 = extension.components) == null ? void 0 : _a3.forEach((c) => {
|
|
@@ -45856,7 +46277,13 @@ class ComponentRegistry {
|
|
|
45856
46277
|
this.registerLoaderRenderer(externalDataLoaderRenderer);
|
|
45857
46278
|
this.registerLoaderRenderer(mockLoaderRenderer);
|
|
45858
46279
|
this.registerLoaderRenderer(dataLoaderRenderer);
|
|
45859
|
-
|
|
46280
|
+
this.registerBehavior(tooltipBehavior);
|
|
46281
|
+
this.registerBehavior(animationBehavior);
|
|
46282
|
+
this.registerBehavior(labelBehavior);
|
|
46283
|
+
(_c = contributes.behaviors) == null ? void 0 : _c.forEach((behavior) => {
|
|
46284
|
+
this.registerBehavior(behavior);
|
|
46285
|
+
});
|
|
46286
|
+
(_d = this.extensionManager) == null ? void 0 : _d.subscribeToRegistrations(this.extensionRegistered);
|
|
45860
46287
|
}
|
|
45861
46288
|
/**
|
|
45862
46289
|
* All theme variables used by the registered components.
|
|
@@ -45963,6 +46390,22 @@ class ComponentRegistry {
|
|
|
45963
46390
|
registerActionFn({ actionName: functionName, actionFn }) {
|
|
45964
46391
|
this.actionFns.set(functionName, actionFn);
|
|
45965
46392
|
}
|
|
46393
|
+
// --- Registers a behavior
|
|
46394
|
+
registerBehavior(behavior, location = "after", position) {
|
|
46395
|
+
if (position) {
|
|
46396
|
+
const targetIndex = this.behaviors.findIndex((b) => b.name === position);
|
|
46397
|
+
if (targetIndex !== -1) {
|
|
46398
|
+
const insertIndex = location === "before" ? targetIndex : targetIndex + 1;
|
|
46399
|
+
this.behaviors.splice(insertIndex, 0, behavior);
|
|
46400
|
+
return;
|
|
46401
|
+
}
|
|
46402
|
+
}
|
|
46403
|
+
this.behaviors.push(behavior);
|
|
46404
|
+
}
|
|
46405
|
+
// --- Returns all registered behaviors
|
|
46406
|
+
getBehaviors() {
|
|
46407
|
+
return this.behaviors;
|
|
46408
|
+
}
|
|
45966
46409
|
}
|
|
45967
46410
|
function ComponentProvider({
|
|
45968
46411
|
children,
|
|
@@ -46883,7 +47326,7 @@ function IconProvider({ children }) {
|
|
|
46883
47326
|
/* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
|
|
46884
47327
|
] });
|
|
46885
47328
|
}
|
|
46886
|
-
const version = "0.10.
|
|
47329
|
+
const version = "0.10.22";
|
|
46887
47330
|
const miscellaneousUtils = {
|
|
46888
47331
|
capitalize,
|
|
46889
47332
|
pluralize: pluralize$1,
|
|
@@ -50224,308 +50667,6 @@ function InvalidComponent({ errors = EMPTY_ARRAY, node, children }) {
|
|
|
50224
50667
|
children
|
|
50225
50668
|
] });
|
|
50226
50669
|
}
|
|
50227
|
-
const AnimatedComponent = animated(
|
|
50228
|
-
forwardRef(function InlineComponentDef(props, ref) {
|
|
50229
|
-
const { children, ...rest } = props;
|
|
50230
|
-
if (!React__default.isValidElement(children)) {
|
|
50231
|
-
return children;
|
|
50232
|
-
}
|
|
50233
|
-
return React__default.cloneElement(children, { ...rest, ref });
|
|
50234
|
-
})
|
|
50235
|
-
);
|
|
50236
|
-
const defaultProps$5 = {
|
|
50237
|
-
delay: 0,
|
|
50238
|
-
animateWhenInView: false,
|
|
50239
|
-
reverse: false,
|
|
50240
|
-
loop: false,
|
|
50241
|
-
once: false
|
|
50242
|
-
};
|
|
50243
|
-
const parseAnimation = (animation) => {
|
|
50244
|
-
if (typeof animation === "object") {
|
|
50245
|
-
return animation;
|
|
50246
|
-
}
|
|
50247
|
-
const presetAnimations = {
|
|
50248
|
-
fadein: {
|
|
50249
|
-
from: { opacity: 0 },
|
|
50250
|
-
to: { opacity: 1 }
|
|
50251
|
-
},
|
|
50252
|
-
fadeout: {
|
|
50253
|
-
from: { opacity: 1 },
|
|
50254
|
-
to: { opacity: 0 }
|
|
50255
|
-
},
|
|
50256
|
-
slidein: {
|
|
50257
|
-
from: { transform: "translateX(-100%)" },
|
|
50258
|
-
to: { transform: "translateX(0%)" }
|
|
50259
|
-
},
|
|
50260
|
-
slideout: {
|
|
50261
|
-
from: { transform: "translateX(0%)" },
|
|
50262
|
-
to: { transform: "translateX(100%)" }
|
|
50263
|
-
},
|
|
50264
|
-
popin: {
|
|
50265
|
-
from: { transform: "scale(0.8)", opacity: 0 },
|
|
50266
|
-
to: { transform: "scale(1)", opacity: 1 }
|
|
50267
|
-
},
|
|
50268
|
-
popout: {
|
|
50269
|
-
from: { transform: "scale(1)", opacity: 1 },
|
|
50270
|
-
to: { transform: "scale(0.8)", opacity: 0 }
|
|
50271
|
-
},
|
|
50272
|
-
flipin: {
|
|
50273
|
-
from: { transform: "rotateY(90deg)", opacity: 0 },
|
|
50274
|
-
to: { transform: "rotateY(0deg)", opacity: 1 }
|
|
50275
|
-
},
|
|
50276
|
-
flipout: {
|
|
50277
|
-
from: { transform: "rotateY(0deg)", opacity: 1 },
|
|
50278
|
-
to: { transform: "rotateY(90deg)", opacity: 0 }
|
|
50279
|
-
},
|
|
50280
|
-
rotatein: {
|
|
50281
|
-
from: { transform: "rotate(-180deg)", opacity: 0 },
|
|
50282
|
-
to: { transform: "rotate(0deg)", opacity: 1 }
|
|
50283
|
-
},
|
|
50284
|
-
rotateout: {
|
|
50285
|
-
from: { transform: "rotate(0deg)", opacity: 1 },
|
|
50286
|
-
to: { transform: "rotate(180deg)", opacity: 0 }
|
|
50287
|
-
},
|
|
50288
|
-
zoomin: {
|
|
50289
|
-
from: { transform: "scale(0)", opacity: 0 },
|
|
50290
|
-
to: { transform: "scale(1)", opacity: 1 }
|
|
50291
|
-
},
|
|
50292
|
-
zoomout: {
|
|
50293
|
-
from: { transform: "scale(1)", opacity: 1 },
|
|
50294
|
-
to: { transform: "scale(0)", opacity: 0 }
|
|
50295
|
-
}
|
|
50296
|
-
};
|
|
50297
|
-
return presetAnimations[animation] || { from: {}, to: {} };
|
|
50298
|
-
};
|
|
50299
|
-
function parseAnimationOptionValue(name, value) {
|
|
50300
|
-
switch (name) {
|
|
50301
|
-
case "duration":
|
|
50302
|
-
case "delay":
|
|
50303
|
-
const num = parseInt(value, 10);
|
|
50304
|
-
return isNaN(num) ? void 0 : num;
|
|
50305
|
-
case "animateWhenInView":
|
|
50306
|
-
case "reverse":
|
|
50307
|
-
case "loop":
|
|
50308
|
-
case "once":
|
|
50309
|
-
const lowerVal = value.toLowerCase();
|
|
50310
|
-
if (lowerVal === "true" || lowerVal === "1" || lowerVal === "yes") return true;
|
|
50311
|
-
if (lowerVal === "false" || lowerVal === "0" || lowerVal === "no") return false;
|
|
50312
|
-
return void 0;
|
|
50313
|
-
default:
|
|
50314
|
-
return void 0;
|
|
50315
|
-
}
|
|
50316
|
-
}
|
|
50317
|
-
function parseAnimationOptions(input2) {
|
|
50318
|
-
if (isPlainObject(input2)) {
|
|
50319
|
-
return input2;
|
|
50320
|
-
}
|
|
50321
|
-
if (typeof input2 === "string") {
|
|
50322
|
-
const options2 = {};
|
|
50323
|
-
const values = input2.split(";").map((value) => value.trim()).filter((value) => value.length > 0);
|
|
50324
|
-
for (const value of values) {
|
|
50325
|
-
if (value.includes(":")) {
|
|
50326
|
-
const [name, val] = value.split(":").map((part) => part.trim());
|
|
50327
|
-
if (name && val) {
|
|
50328
|
-
const parsedValue = parseAnimationOptionValue(name, val);
|
|
50329
|
-
if (parsedValue !== void 0) {
|
|
50330
|
-
options2[name] = parsedValue;
|
|
50331
|
-
}
|
|
50332
|
-
}
|
|
50333
|
-
} else {
|
|
50334
|
-
const booleanOptions = ["animateWhenInView", "reverse", "loop", "once"];
|
|
50335
|
-
if (booleanOptions.includes(value)) {
|
|
50336
|
-
options2[value] = true;
|
|
50337
|
-
} else if (value.startsWith("!") && value.length > 1) {
|
|
50338
|
-
const optionName = value.substring(1);
|
|
50339
|
-
if (booleanOptions.includes(optionName)) {
|
|
50340
|
-
options2[optionName] = false;
|
|
50341
|
-
}
|
|
50342
|
-
}
|
|
50343
|
-
}
|
|
50344
|
-
}
|
|
50345
|
-
return options2;
|
|
50346
|
-
}
|
|
50347
|
-
return {};
|
|
50348
|
-
}
|
|
50349
|
-
const Animation$1 = forwardRef(function Animation2({
|
|
50350
|
-
children,
|
|
50351
|
-
registerComponentApi,
|
|
50352
|
-
animation,
|
|
50353
|
-
duration,
|
|
50354
|
-
onStop,
|
|
50355
|
-
onStart,
|
|
50356
|
-
delay: delay2 = defaultProps$5.delay,
|
|
50357
|
-
animateWhenInView = defaultProps$5.animateWhenInView,
|
|
50358
|
-
reverse: reverse2 = defaultProps$5.reverse,
|
|
50359
|
-
loop = defaultProps$5.loop,
|
|
50360
|
-
once = defaultProps$5.once,
|
|
50361
|
-
...rest
|
|
50362
|
-
}, forwardedRef) {
|
|
50363
|
-
const [_animation] = useState(animation);
|
|
50364
|
-
const [toggle, setToggle] = useState(false);
|
|
50365
|
-
const [reset, setReset] = useState(false);
|
|
50366
|
-
const [count, setCount] = useState(0);
|
|
50367
|
-
const times = 1;
|
|
50368
|
-
useId();
|
|
50369
|
-
const animationSettings = useMemo(
|
|
50370
|
-
() => ({
|
|
50371
|
-
from: _animation.from,
|
|
50372
|
-
to: _animation.to,
|
|
50373
|
-
config: {
|
|
50374
|
-
..._animation.config,
|
|
50375
|
-
duration
|
|
50376
|
-
},
|
|
50377
|
-
delay: delay2,
|
|
50378
|
-
loop,
|
|
50379
|
-
reset,
|
|
50380
|
-
reverse: toggle,
|
|
50381
|
-
onRest: () => {
|
|
50382
|
-
onStop == null ? void 0 : onStop();
|
|
50383
|
-
if (loop) {
|
|
50384
|
-
if (reverse2) {
|
|
50385
|
-
setCount(count + 1);
|
|
50386
|
-
setToggle(!toggle);
|
|
50387
|
-
}
|
|
50388
|
-
setReset(true);
|
|
50389
|
-
} else {
|
|
50390
|
-
if (reverse2 && count < times) {
|
|
50391
|
-
setCount(count + 1);
|
|
50392
|
-
setToggle(!toggle);
|
|
50393
|
-
}
|
|
50394
|
-
}
|
|
50395
|
-
},
|
|
50396
|
-
onStart: () => {
|
|
50397
|
-
onStart == null ? void 0 : onStart();
|
|
50398
|
-
}
|
|
50399
|
-
}),
|
|
50400
|
-
[
|
|
50401
|
-
_animation.config,
|
|
50402
|
-
_animation.from,
|
|
50403
|
-
_animation.to,
|
|
50404
|
-
count,
|
|
50405
|
-
delay2,
|
|
50406
|
-
duration,
|
|
50407
|
-
loop,
|
|
50408
|
-
onStart,
|
|
50409
|
-
onStop,
|
|
50410
|
-
reset,
|
|
50411
|
-
once,
|
|
50412
|
-
reverse2,
|
|
50413
|
-
toggle
|
|
50414
|
-
]
|
|
50415
|
-
);
|
|
50416
|
-
const [springs, api] = useSpring(
|
|
50417
|
-
() => ({
|
|
50418
|
-
...animationSettings
|
|
50419
|
-
}),
|
|
50420
|
-
[animationSettings]
|
|
50421
|
-
);
|
|
50422
|
-
const [ref, animationStyles] = useInView(() => animationSettings, {
|
|
50423
|
-
once
|
|
50424
|
-
});
|
|
50425
|
-
const composedRef = ref ? composeRefs(ref, forwardedRef) : forwardedRef;
|
|
50426
|
-
const startAnimation = useCallback(() => {
|
|
50427
|
-
void api.start(_animation);
|
|
50428
|
-
return () => {
|
|
50429
|
-
api.stop();
|
|
50430
|
-
};
|
|
50431
|
-
}, [_animation, api]);
|
|
50432
|
-
const stopAnimation = useCallback(() => {
|
|
50433
|
-
api.stop();
|
|
50434
|
-
}, [api]);
|
|
50435
|
-
useEffect(() => {
|
|
50436
|
-
registerComponentApi == null ? void 0 : registerComponentApi({
|
|
50437
|
-
start: startAnimation,
|
|
50438
|
-
stop: stopAnimation
|
|
50439
|
-
});
|
|
50440
|
-
}, [registerComponentApi, startAnimation, stopAnimation]);
|
|
50441
|
-
const content2 = useMemo(() => {
|
|
50442
|
-
return Children.map(
|
|
50443
|
-
children,
|
|
50444
|
-
(child, index) => animateWhenInView ? /* @__PURE__ */ jsx(AnimatedComponent, { ...rest, style: animationStyles, ref: composedRef, children: child }, index) : /* @__PURE__ */ jsx(AnimatedComponent, { ...rest, style: springs, ref: forwardedRef, children: child }, index)
|
|
50445
|
-
);
|
|
50446
|
-
}, [animateWhenInView, animationStyles, children, springs, rest, composedRef, forwardedRef]);
|
|
50447
|
-
return content2;
|
|
50448
|
-
});
|
|
50449
|
-
const tooltipBehavior = {
|
|
50450
|
-
name: "tooltip",
|
|
50451
|
-
canAttach: (node) => {
|
|
50452
|
-
var _a2, _b;
|
|
50453
|
-
const tooltipText = (_a2 = node.props) == null ? void 0 : _a2.tooltip;
|
|
50454
|
-
const tooltipMarkdown = (_b = node.props) == null ? void 0 : _b.tooltipMarkdown;
|
|
50455
|
-
return !!tooltipText || !!tooltipMarkdown;
|
|
50456
|
-
},
|
|
50457
|
-
attach: (context, node) => {
|
|
50458
|
-
var _a2, _b, _c;
|
|
50459
|
-
const { extractValue } = context;
|
|
50460
|
-
const tooltipText = extractValue((_a2 = context.node.props) == null ? void 0 : _a2.tooltip, true);
|
|
50461
|
-
const tooltipMarkdown = extractValue((_b = context.node.props) == null ? void 0 : _b.tooltipMarkdown, true);
|
|
50462
|
-
const tooltipOptions = extractValue((_c = context.node.props) == null ? void 0 : _c.tooltipOptions, true);
|
|
50463
|
-
const parsedOptions = parseTooltipOptions(tooltipOptions);
|
|
50464
|
-
return /* @__PURE__ */ jsx(Tooltip, { text: tooltipText, markdown: tooltipMarkdown, ...parsedOptions, children: node });
|
|
50465
|
-
}
|
|
50466
|
-
};
|
|
50467
|
-
const animationBehavior = {
|
|
50468
|
-
name: "animation",
|
|
50469
|
-
canAttach: (node) => {
|
|
50470
|
-
var _a2;
|
|
50471
|
-
return !!((_a2 = node.props) == null ? void 0 : _a2.animation);
|
|
50472
|
-
},
|
|
50473
|
-
attach: (context, node) => {
|
|
50474
|
-
var _a2, _b;
|
|
50475
|
-
const { extractValue } = context;
|
|
50476
|
-
const animation = extractValue((_a2 = context.node.props) == null ? void 0 : _a2.animation, true);
|
|
50477
|
-
const animationOptions = extractValue((_b = context.node.props) == null ? void 0 : _b.animationOptions, true);
|
|
50478
|
-
const parsedOptions = parseAnimationOptions(animationOptions);
|
|
50479
|
-
return /* @__PURE__ */ jsx(Animation$1, { animation: parseAnimation(animation), ...parsedOptions, children: context.node.type === "ModalDialog" ? cloneElement(node, {
|
|
50480
|
-
externalAnimation: true
|
|
50481
|
-
}) : node });
|
|
50482
|
-
}
|
|
50483
|
-
};
|
|
50484
|
-
const labelBehavior = {
|
|
50485
|
-
name: "label",
|
|
50486
|
-
canAttach: (node, metadata) => {
|
|
50487
|
-
var _a2, _b;
|
|
50488
|
-
if ((_a2 = metadata == null ? void 0 : metadata.props) == null ? void 0 : _a2.label) {
|
|
50489
|
-
return false;
|
|
50490
|
-
} else if (!((_b = node.props) == null ? void 0 : _b.label)) {
|
|
50491
|
-
return false;
|
|
50492
|
-
}
|
|
50493
|
-
return true;
|
|
50494
|
-
},
|
|
50495
|
-
attach: (context, node) => {
|
|
50496
|
-
var _a2;
|
|
50497
|
-
const { extractValue, node: componentNode, className } = context;
|
|
50498
|
-
const label2 = extractValue.asOptionalString(componentNode.props.label);
|
|
50499
|
-
const labelPosition = extractValue(componentNode.props.labelPosition);
|
|
50500
|
-
const labelWidth = extractValue.asOptionalString(componentNode.props.labelWidth);
|
|
50501
|
-
const labelBreak2 = extractValue.asOptionalBoolean(componentNode.props.labelBreak);
|
|
50502
|
-
const required2 = extractValue.asOptionalBoolean(componentNode.props.required);
|
|
50503
|
-
const enabled2 = extractValue.asOptionalBoolean(componentNode.props.enabled, true);
|
|
50504
|
-
const shrinkToLabel2 = extractValue.asOptionalBoolean(componentNode.props.shrinkToLabel);
|
|
50505
|
-
const style2 = extractValue(componentNode.props.style);
|
|
50506
|
-
const readOnly2 = extractValue.asOptionalBoolean(componentNode.props.readOnly);
|
|
50507
|
-
return /* @__PURE__ */ jsx(
|
|
50508
|
-
ItemWithLabel,
|
|
50509
|
-
{
|
|
50510
|
-
labelPosition,
|
|
50511
|
-
label: label2,
|
|
50512
|
-
labelWidth,
|
|
50513
|
-
labelBreak: labelBreak2,
|
|
50514
|
-
required: required2,
|
|
50515
|
-
enabled: enabled2,
|
|
50516
|
-
style: style2,
|
|
50517
|
-
className,
|
|
50518
|
-
shrinkToLabel: shrinkToLabel2,
|
|
50519
|
-
labelStyle: { pointerEvents: readOnly2 ? "none" : void 0 },
|
|
50520
|
-
isInputTemplateUsed: !!((_a2 = componentNode.props) == null ? void 0 : _a2.inputTemplate),
|
|
50521
|
-
children: node
|
|
50522
|
-
}
|
|
50523
|
-
);
|
|
50524
|
-
}
|
|
50525
|
-
};
|
|
50526
|
-
const getCoreBehaviors = () => {
|
|
50527
|
-
return [tooltipBehavior, animationBehavior, labelBehavior];
|
|
50528
|
-
};
|
|
50529
50670
|
const ComponentAdapter = forwardRef(function ComponentAdapter2({
|
|
50530
50671
|
node,
|
|
50531
50672
|
state,
|
|
@@ -50684,7 +50825,7 @@ const ComponentAdapter = forwardRef(function ComponentAdapter2({
|
|
|
50684
50825
|
}
|
|
50685
50826
|
renderedNode = renderer(rendererContext);
|
|
50686
50827
|
}
|
|
50687
|
-
const behaviors =
|
|
50828
|
+
const behaviors = componentRegistry.getBehaviors();
|
|
50688
50829
|
if (!isCompoundComponent) {
|
|
50689
50830
|
for (const behavior of behaviors) {
|
|
50690
50831
|
if (behavior.canAttach(rendererContext.node, descriptor)) {
|
|
@@ -51629,7 +51770,7 @@ function ApiInterceptorProvider({
|
|
|
51629
51770
|
return;
|
|
51630
51771
|
}
|
|
51631
51772
|
void (async () => {
|
|
51632
|
-
const { initMock } = await import("./initMock-
|
|
51773
|
+
const { initMock } = await import("./initMock-BkgwDrCY.mjs");
|
|
51633
51774
|
const apiInstance2 = await initMock(interceptor);
|
|
51634
51775
|
setApiInstance(apiInstance2);
|
|
51635
51776
|
setInitialized(true);
|
|
@@ -51646,7 +51787,7 @@ function ApiInterceptorProvider({
|
|
|
51646
51787
|
if (define_process_env_default$2.VITE_MOCK_ENABLED) {
|
|
51647
51788
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
51648
51789
|
useWorker ? import("./apiInterceptorWorker-Dql7QGw2.mjs") : Promise.resolve({ createApiInterceptorWorker: () => null }),
|
|
51649
|
-
import("./initMock-
|
|
51790
|
+
import("./initMock-BkgwDrCY.mjs")
|
|
51650
51791
|
]);
|
|
51651
51792
|
if (interceptor || forceInitialize) {
|
|
51652
51793
|
const apiInstance2 = await initMock(interceptor || {});
|
|
@@ -51683,7 +51824,7 @@ function ApiInterceptorProvider({
|
|
|
51683
51824
|
void (async () => {
|
|
51684
51825
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
51685
51826
|
import("./apiInterceptorWorker-Dql7QGw2.mjs"),
|
|
51686
|
-
import("./initMock-
|
|
51827
|
+
import("./initMock-BkgwDrCY.mjs")
|
|
51687
51828
|
]);
|
|
51688
51829
|
const apiInstance2 = await initMock(interceptor);
|
|
51689
51830
|
await createApiInterceptorWorker(apiInstance2, parentInterceptorWorker);
|