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
|
@@ -42,6 +42,7 @@ import rehypeRaw from "rehype-raw";
|
|
|
42
42
|
import { visit } from "unist-util-visit";
|
|
43
43
|
import EmojiPicker, { EmojiStyle } from "emoji-picker-react";
|
|
44
44
|
import * as HoverCard from "@radix-ui/react-hover-card";
|
|
45
|
+
import { useSpring, useInView, animated } from "@react-spring/web";
|
|
45
46
|
import Papa from "papaparse";
|
|
46
47
|
import { Root as Root$2, List, Trigger as Trigger$1, Content as Content$1 } from "@radix-ui/react-tabs";
|
|
47
48
|
import scrollIntoView from "scroll-into-view-if-needed";
|
|
@@ -52,7 +53,6 @@ import { usePopper } from "react-popper";
|
|
|
52
53
|
import * as RechartsPrimitive from "recharts";
|
|
53
54
|
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";
|
|
54
55
|
import { MemoryRouter, HashRouter, BrowserRouter } from "react-router-dom";
|
|
55
|
-
import { useSpring, useInView, animated } from "@react-spring/web";
|
|
56
56
|
import { AnimatePresence, motion } from "framer-motion";
|
|
57
57
|
import { c as componentFileExtension, a as codeBehindFileExtension, g as getLintSeverity, L as LintSeverity, l as lintApp, p as printComponentLints, d as lintErrorsComponent } from "./xmlui-serializer-uCYa8_tZ.mjs";
|
|
58
58
|
var client = {};
|
|
@@ -1732,8 +1732,8 @@ const styles$1h = {
|
|
|
1732
1732
|
};
|
|
1733
1733
|
const themeVars$Y = `'{"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)"}'`;
|
|
1734
1734
|
const button$2 = "_button_1c10z_14";
|
|
1735
|
-
const alignStart = "_alignStart_1c10z_30";
|
|
1736
|
-
const alignEnd = "_alignEnd_1c10z_33";
|
|
1735
|
+
const alignStart$1 = "_alignStart_1c10z_30";
|
|
1736
|
+
const alignEnd$1 = "_alignEnd_1c10z_33";
|
|
1737
1737
|
const buttonHorizontal = "_buttonHorizontal_1c10z_39";
|
|
1738
1738
|
const xs$1 = "_xs_1c10z_42";
|
|
1739
1739
|
const sm$1 = "_sm_1c10z_49";
|
|
@@ -1752,8 +1752,8 @@ const ghostAttention = "_ghostAttention_1c10z_366";
|
|
|
1752
1752
|
const styles$1g = {
|
|
1753
1753
|
themeVars: themeVars$Y,
|
|
1754
1754
|
button: button$2,
|
|
1755
|
-
alignStart,
|
|
1756
|
-
alignEnd,
|
|
1755
|
+
alignStart: alignStart$1,
|
|
1756
|
+
alignEnd: alignEnd$1,
|
|
1757
1757
|
buttonHorizontal,
|
|
1758
1758
|
xs: xs$1,
|
|
1759
1759
|
sm: sm$1,
|
|
@@ -11718,7 +11718,7 @@ const headerRow = "_headerRow_1ylgd_97";
|
|
|
11718
11718
|
const columnCell = "_columnCell_1ylgd_101";
|
|
11719
11719
|
const cell = "_cell_1ylgd_102";
|
|
11720
11720
|
const alignTop = "_alignTop_1ylgd_110";
|
|
11721
|
-
const alignCenter = "_alignCenter_1ylgd_114";
|
|
11721
|
+
const alignCenter$1 = "_alignCenter_1ylgd_114";
|
|
11722
11722
|
const alignBottom = "_alignBottom_1ylgd_118";
|
|
11723
11723
|
const table = "_table_1ylgd_46";
|
|
11724
11724
|
const row$1 = "_row_1ylgd_126";
|
|
@@ -11747,7 +11747,7 @@ const styles$12 = {
|
|
|
11747
11747
|
columnCell,
|
|
11748
11748
|
cell,
|
|
11749
11749
|
alignTop,
|
|
11750
|
-
alignCenter,
|
|
11750
|
+
alignCenter: alignCenter$1,
|
|
11751
11751
|
alignBottom,
|
|
11752
11752
|
table,
|
|
11753
11753
|
row: row$1,
|
|
@@ -24486,7 +24486,7 @@ function ApiInterceptorProvider({
|
|
|
24486
24486
|
return;
|
|
24487
24487
|
}
|
|
24488
24488
|
void (async () => {
|
|
24489
|
-
const { initMock } = await import("./initMock-
|
|
24489
|
+
const { initMock } = await import("./initMock-BVLjWJxZ.mjs");
|
|
24490
24490
|
const apiInstance2 = await initMock(interceptor);
|
|
24491
24491
|
setApiInstance(apiInstance2);
|
|
24492
24492
|
setInitialized(true);
|
|
@@ -24503,7 +24503,7 @@ function ApiInterceptorProvider({
|
|
|
24503
24503
|
if (process.env.VITE_MOCK_ENABLED) {
|
|
24504
24504
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
24505
24505
|
useWorker ? import("./apiInterceptorWorker-QiltRtq1.mjs") : Promise.resolve({ createApiInterceptorWorker: () => null }),
|
|
24506
|
-
import("./initMock-
|
|
24506
|
+
import("./initMock-BVLjWJxZ.mjs")
|
|
24507
24507
|
]);
|
|
24508
24508
|
if (interceptor || forceInitialize) {
|
|
24509
24509
|
const apiInstance2 = await initMock(interceptor || {});
|
|
@@ -24540,7 +24540,7 @@ function ApiInterceptorProvider({
|
|
|
24540
24540
|
void (async () => {
|
|
24541
24541
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
24542
24542
|
import("./apiInterceptorWorker-QiltRtq1.mjs"),
|
|
24543
|
-
import("./initMock-
|
|
24543
|
+
import("./initMock-BVLjWJxZ.mjs")
|
|
24544
24544
|
]);
|
|
24545
24545
|
const apiInstance2 = await initMock(interceptor);
|
|
24546
24546
|
await createApiInterceptorWorker(apiInstance2, parentInterceptorWorker);
|
|
@@ -33226,6 +33226,305 @@ async function delay(_executionContext, timeoutInMs, callback) {
|
|
|
33226
33226
|
await (callback == null ? void 0 : callback());
|
|
33227
33227
|
}
|
|
33228
33228
|
const timedAction = createAction("delay", delay);
|
|
33229
|
+
const AnimatedComponent = animated(
|
|
33230
|
+
forwardRef(function InlineComponentDef(props, ref) {
|
|
33231
|
+
const { children, ...rest } = props;
|
|
33232
|
+
if (!React__default.isValidElement(children)) {
|
|
33233
|
+
return children;
|
|
33234
|
+
}
|
|
33235
|
+
return React__default.cloneElement(children, { ...rest, ref });
|
|
33236
|
+
})
|
|
33237
|
+
);
|
|
33238
|
+
const defaultProps$l = {
|
|
33239
|
+
delay: 0,
|
|
33240
|
+
animateWhenInView: false,
|
|
33241
|
+
reverse: false,
|
|
33242
|
+
loop: false,
|
|
33243
|
+
once: false
|
|
33244
|
+
};
|
|
33245
|
+
const parseAnimation = (animation) => {
|
|
33246
|
+
if (typeof animation === "object") {
|
|
33247
|
+
return animation;
|
|
33248
|
+
}
|
|
33249
|
+
const presetAnimations = {
|
|
33250
|
+
fadein: {
|
|
33251
|
+
from: { opacity: 0 },
|
|
33252
|
+
to: { opacity: 1 }
|
|
33253
|
+
},
|
|
33254
|
+
fadeout: {
|
|
33255
|
+
from: { opacity: 1 },
|
|
33256
|
+
to: { opacity: 0 }
|
|
33257
|
+
},
|
|
33258
|
+
slidein: {
|
|
33259
|
+
from: { transform: "translateX(-100%)" },
|
|
33260
|
+
to: { transform: "translateX(0%)" }
|
|
33261
|
+
},
|
|
33262
|
+
slideout: {
|
|
33263
|
+
from: { transform: "translateX(0%)" },
|
|
33264
|
+
to: { transform: "translateX(100%)" }
|
|
33265
|
+
},
|
|
33266
|
+
popin: {
|
|
33267
|
+
from: { transform: "scale(0.8)", opacity: 0 },
|
|
33268
|
+
to: { transform: "scale(1)", opacity: 1 }
|
|
33269
|
+
},
|
|
33270
|
+
popout: {
|
|
33271
|
+
from: { transform: "scale(1)", opacity: 1 },
|
|
33272
|
+
to: { transform: "scale(0.8)", opacity: 0 }
|
|
33273
|
+
},
|
|
33274
|
+
flipin: {
|
|
33275
|
+
from: { transform: "rotateY(90deg)", opacity: 0 },
|
|
33276
|
+
to: { transform: "rotateY(0deg)", opacity: 1 }
|
|
33277
|
+
},
|
|
33278
|
+
flipout: {
|
|
33279
|
+
from: { transform: "rotateY(0deg)", opacity: 1 },
|
|
33280
|
+
to: { transform: "rotateY(90deg)", opacity: 0 }
|
|
33281
|
+
},
|
|
33282
|
+
rotatein: {
|
|
33283
|
+
from: { transform: "rotate(-180deg)", opacity: 0 },
|
|
33284
|
+
to: { transform: "rotate(0deg)", opacity: 1 }
|
|
33285
|
+
},
|
|
33286
|
+
rotateout: {
|
|
33287
|
+
from: { transform: "rotate(0deg)", opacity: 1 },
|
|
33288
|
+
to: { transform: "rotate(180deg)", opacity: 0 }
|
|
33289
|
+
},
|
|
33290
|
+
zoomin: {
|
|
33291
|
+
from: { transform: "scale(0)", opacity: 0 },
|
|
33292
|
+
to: { transform: "scale(1)", opacity: 1 }
|
|
33293
|
+
},
|
|
33294
|
+
zoomout: {
|
|
33295
|
+
from: { transform: "scale(1)", opacity: 1 },
|
|
33296
|
+
to: { transform: "scale(0)", opacity: 0 }
|
|
33297
|
+
}
|
|
33298
|
+
};
|
|
33299
|
+
return presetAnimations[animation] || { from: {}, to: {} };
|
|
33300
|
+
};
|
|
33301
|
+
function parseAnimationOptionValue(name, value) {
|
|
33302
|
+
switch (name) {
|
|
33303
|
+
case "duration":
|
|
33304
|
+
case "delay":
|
|
33305
|
+
const num = parseInt(value, 10);
|
|
33306
|
+
return isNaN(num) ? void 0 : num;
|
|
33307
|
+
case "animateWhenInView":
|
|
33308
|
+
case "reverse":
|
|
33309
|
+
case "loop":
|
|
33310
|
+
case "once":
|
|
33311
|
+
const lowerVal = value.toLowerCase();
|
|
33312
|
+
if (lowerVal === "true" || lowerVal === "1" || lowerVal === "yes") return true;
|
|
33313
|
+
if (lowerVal === "false" || lowerVal === "0" || lowerVal === "no") return false;
|
|
33314
|
+
return void 0;
|
|
33315
|
+
default:
|
|
33316
|
+
return void 0;
|
|
33317
|
+
}
|
|
33318
|
+
}
|
|
33319
|
+
function parseAnimationOptions(input2) {
|
|
33320
|
+
if (isPlainObject(input2)) {
|
|
33321
|
+
return input2;
|
|
33322
|
+
}
|
|
33323
|
+
if (typeof input2 === "string") {
|
|
33324
|
+
const options2 = {};
|
|
33325
|
+
const values = input2.split(";").map((value) => value.trim()).filter((value) => value.length > 0);
|
|
33326
|
+
for (const value of values) {
|
|
33327
|
+
if (value.includes(":")) {
|
|
33328
|
+
const [name, val] = value.split(":").map((part) => part.trim());
|
|
33329
|
+
if (name && val) {
|
|
33330
|
+
const parsedValue = parseAnimationOptionValue(name, val);
|
|
33331
|
+
if (parsedValue !== void 0) {
|
|
33332
|
+
options2[name] = parsedValue;
|
|
33333
|
+
}
|
|
33334
|
+
}
|
|
33335
|
+
} else {
|
|
33336
|
+
const booleanOptions = ["animateWhenInView", "reverse", "loop", "once"];
|
|
33337
|
+
if (booleanOptions.includes(value)) {
|
|
33338
|
+
options2[value] = true;
|
|
33339
|
+
} else if (value.startsWith("!") && value.length > 1) {
|
|
33340
|
+
const optionName = value.substring(1);
|
|
33341
|
+
if (booleanOptions.includes(optionName)) {
|
|
33342
|
+
options2[optionName] = false;
|
|
33343
|
+
}
|
|
33344
|
+
}
|
|
33345
|
+
}
|
|
33346
|
+
}
|
|
33347
|
+
return options2;
|
|
33348
|
+
}
|
|
33349
|
+
return {};
|
|
33350
|
+
}
|
|
33351
|
+
const Animation$1 = forwardRef(function Animation2({
|
|
33352
|
+
children,
|
|
33353
|
+
registerComponentApi,
|
|
33354
|
+
animation,
|
|
33355
|
+
duration,
|
|
33356
|
+
onStop,
|
|
33357
|
+
onStart,
|
|
33358
|
+
delay: delay2 = defaultProps$l.delay,
|
|
33359
|
+
animateWhenInView = defaultProps$l.animateWhenInView,
|
|
33360
|
+
reverse: reverse2 = defaultProps$l.reverse,
|
|
33361
|
+
loop = defaultProps$l.loop,
|
|
33362
|
+
once = defaultProps$l.once,
|
|
33363
|
+
...rest
|
|
33364
|
+
}, forwardedRef) {
|
|
33365
|
+
const [_animation] = useState(animation);
|
|
33366
|
+
const [toggle, setToggle] = useState(false);
|
|
33367
|
+
const [reset, setReset] = useState(false);
|
|
33368
|
+
const [count, setCount] = useState(0);
|
|
33369
|
+
const times = 1;
|
|
33370
|
+
useId();
|
|
33371
|
+
const animationSettings = useMemo(
|
|
33372
|
+
() => ({
|
|
33373
|
+
from: _animation.from,
|
|
33374
|
+
to: _animation.to,
|
|
33375
|
+
config: {
|
|
33376
|
+
..._animation.config,
|
|
33377
|
+
duration
|
|
33378
|
+
},
|
|
33379
|
+
delay: delay2,
|
|
33380
|
+
loop,
|
|
33381
|
+
reset,
|
|
33382
|
+
reverse: toggle,
|
|
33383
|
+
onRest: () => {
|
|
33384
|
+
onStop == null ? void 0 : onStop();
|
|
33385
|
+
if (loop) {
|
|
33386
|
+
if (reverse2) {
|
|
33387
|
+
setCount(count + 1);
|
|
33388
|
+
setToggle(!toggle);
|
|
33389
|
+
}
|
|
33390
|
+
setReset(true);
|
|
33391
|
+
} else {
|
|
33392
|
+
if (reverse2 && count < times) {
|
|
33393
|
+
setCount(count + 1);
|
|
33394
|
+
setToggle(!toggle);
|
|
33395
|
+
}
|
|
33396
|
+
}
|
|
33397
|
+
},
|
|
33398
|
+
onStart: () => {
|
|
33399
|
+
onStart == null ? void 0 : onStart();
|
|
33400
|
+
}
|
|
33401
|
+
}),
|
|
33402
|
+
[
|
|
33403
|
+
_animation.config,
|
|
33404
|
+
_animation.from,
|
|
33405
|
+
_animation.to,
|
|
33406
|
+
count,
|
|
33407
|
+
delay2,
|
|
33408
|
+
duration,
|
|
33409
|
+
loop,
|
|
33410
|
+
onStart,
|
|
33411
|
+
onStop,
|
|
33412
|
+
reset,
|
|
33413
|
+
once,
|
|
33414
|
+
reverse2,
|
|
33415
|
+
toggle
|
|
33416
|
+
]
|
|
33417
|
+
);
|
|
33418
|
+
const [springs, api] = useSpring(
|
|
33419
|
+
() => ({
|
|
33420
|
+
...animationSettings
|
|
33421
|
+
}),
|
|
33422
|
+
[animationSettings]
|
|
33423
|
+
);
|
|
33424
|
+
const [ref, animationStyles] = useInView(() => animationSettings, {
|
|
33425
|
+
once
|
|
33426
|
+
});
|
|
33427
|
+
const composedRef = ref ? composeRefs(ref, forwardedRef) : forwardedRef;
|
|
33428
|
+
const startAnimation = useCallback(() => {
|
|
33429
|
+
void api.start(_animation);
|
|
33430
|
+
return () => {
|
|
33431
|
+
api.stop();
|
|
33432
|
+
};
|
|
33433
|
+
}, [_animation, api]);
|
|
33434
|
+
const stopAnimation = useCallback(() => {
|
|
33435
|
+
api.stop();
|
|
33436
|
+
}, [api]);
|
|
33437
|
+
useEffect(() => {
|
|
33438
|
+
registerComponentApi == null ? void 0 : registerComponentApi({
|
|
33439
|
+
start: startAnimation,
|
|
33440
|
+
stop: stopAnimation
|
|
33441
|
+
});
|
|
33442
|
+
}, [registerComponentApi, startAnimation, stopAnimation]);
|
|
33443
|
+
const content2 = useMemo(() => {
|
|
33444
|
+
return Children.map(
|
|
33445
|
+
children,
|
|
33446
|
+
(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)
|
|
33447
|
+
);
|
|
33448
|
+
}, [animateWhenInView, animationStyles, children, springs, rest, composedRef, forwardedRef]);
|
|
33449
|
+
return content2;
|
|
33450
|
+
});
|
|
33451
|
+
const tooltipBehavior = {
|
|
33452
|
+
name: "tooltip",
|
|
33453
|
+
canAttach: (node) => {
|
|
33454
|
+
var _a2, _b;
|
|
33455
|
+
const tooltipText = (_a2 = node.props) == null ? void 0 : _a2.tooltip;
|
|
33456
|
+
const tooltipMarkdown = (_b = node.props) == null ? void 0 : _b.tooltipMarkdown;
|
|
33457
|
+
return !!tooltipText || !!tooltipMarkdown;
|
|
33458
|
+
},
|
|
33459
|
+
attach: (context, node) => {
|
|
33460
|
+
var _a2, _b, _c;
|
|
33461
|
+
const { extractValue } = context;
|
|
33462
|
+
const tooltipText = extractValue((_a2 = context.node.props) == null ? void 0 : _a2.tooltip, true);
|
|
33463
|
+
const tooltipMarkdown = extractValue((_b = context.node.props) == null ? void 0 : _b.tooltipMarkdown, true);
|
|
33464
|
+
const tooltipOptions = extractValue((_c = context.node.props) == null ? void 0 : _c.tooltipOptions, true);
|
|
33465
|
+
const parsedOptions = parseTooltipOptions(tooltipOptions);
|
|
33466
|
+
return /* @__PURE__ */ jsx(Tooltip, { text: tooltipText, markdown: tooltipMarkdown, ...parsedOptions, children: node });
|
|
33467
|
+
}
|
|
33468
|
+
};
|
|
33469
|
+
const animationBehavior = {
|
|
33470
|
+
name: "animation",
|
|
33471
|
+
canAttach: (node) => {
|
|
33472
|
+
var _a2;
|
|
33473
|
+
return !!((_a2 = node.props) == null ? void 0 : _a2.animation);
|
|
33474
|
+
},
|
|
33475
|
+
attach: (context, node) => {
|
|
33476
|
+
var _a2, _b;
|
|
33477
|
+
const { extractValue } = context;
|
|
33478
|
+
const animation = extractValue((_a2 = context.node.props) == null ? void 0 : _a2.animation, true);
|
|
33479
|
+
const animationOptions = extractValue((_b = context.node.props) == null ? void 0 : _b.animationOptions, true);
|
|
33480
|
+
const parsedOptions = parseAnimationOptions(animationOptions);
|
|
33481
|
+
return /* @__PURE__ */ jsx(Animation$1, { animation: parseAnimation(animation), ...parsedOptions, children: context.node.type === "ModalDialog" ? cloneElement(node, {
|
|
33482
|
+
externalAnimation: true
|
|
33483
|
+
}) : node });
|
|
33484
|
+
}
|
|
33485
|
+
};
|
|
33486
|
+
const labelBehavior = {
|
|
33487
|
+
name: "label",
|
|
33488
|
+
canAttach: (node, metadata) => {
|
|
33489
|
+
var _a2, _b;
|
|
33490
|
+
if ((_a2 = metadata == null ? void 0 : metadata.props) == null ? void 0 : _a2.label) {
|
|
33491
|
+
return false;
|
|
33492
|
+
} else if (!((_b = node.props) == null ? void 0 : _b.label)) {
|
|
33493
|
+
return false;
|
|
33494
|
+
}
|
|
33495
|
+
return true;
|
|
33496
|
+
},
|
|
33497
|
+
attach: (context, node) => {
|
|
33498
|
+
var _a2;
|
|
33499
|
+
const { extractValue, node: componentNode, className } = context;
|
|
33500
|
+
const label2 = extractValue.asOptionalString(componentNode.props.label);
|
|
33501
|
+
const labelPosition = extractValue(componentNode.props.labelPosition);
|
|
33502
|
+
const labelWidth = extractValue.asOptionalString(componentNode.props.labelWidth);
|
|
33503
|
+
const labelBreak2 = extractValue.asOptionalBoolean(componentNode.props.labelBreak);
|
|
33504
|
+
const required2 = extractValue.asOptionalBoolean(componentNode.props.required);
|
|
33505
|
+
const enabled2 = extractValue.asOptionalBoolean(componentNode.props.enabled, true);
|
|
33506
|
+
const shrinkToLabel2 = extractValue.asOptionalBoolean(componentNode.props.shrinkToLabel);
|
|
33507
|
+
const style2 = extractValue(componentNode.props.style);
|
|
33508
|
+
const readOnly2 = extractValue.asOptionalBoolean(componentNode.props.readOnly);
|
|
33509
|
+
return /* @__PURE__ */ jsx(
|
|
33510
|
+
ItemWithLabel,
|
|
33511
|
+
{
|
|
33512
|
+
labelPosition,
|
|
33513
|
+
label: label2,
|
|
33514
|
+
labelWidth,
|
|
33515
|
+
labelBreak: labelBreak2,
|
|
33516
|
+
required: required2,
|
|
33517
|
+
enabled: enabled2,
|
|
33518
|
+
style: style2,
|
|
33519
|
+
className,
|
|
33520
|
+
shrinkToLabel: shrinkToLabel2,
|
|
33521
|
+
labelStyle: { pointerEvents: readOnly2 ? "none" : void 0 },
|
|
33522
|
+
isInputTemplateUsed: !!((_a2 = componentNode.props) == null ? void 0 : _a2.inputTemplate),
|
|
33523
|
+
children: node
|
|
33524
|
+
}
|
|
33525
|
+
);
|
|
33526
|
+
}
|
|
33527
|
+
};
|
|
33229
33528
|
function Loader({
|
|
33230
33529
|
state,
|
|
33231
33530
|
loader,
|
|
@@ -34533,7 +34832,7 @@ var WeekDays = /* @__PURE__ */ ((WeekDays2) => {
|
|
|
34533
34832
|
WeekDays2[WeekDays2["Saturday"] = 6] = "Saturday";
|
|
34534
34833
|
return WeekDays2;
|
|
34535
34834
|
})(WeekDays || {});
|
|
34536
|
-
const defaultProps$
|
|
34835
|
+
const defaultProps$k = {
|
|
34537
34836
|
enabled: true,
|
|
34538
34837
|
validationStatus: "none",
|
|
34539
34838
|
mode: "single",
|
|
@@ -34552,7 +34851,7 @@ const DateInput = forwardRef(function DateInputNative({
|
|
|
34552
34851
|
id,
|
|
34553
34852
|
initialValue,
|
|
34554
34853
|
value: controlledValue,
|
|
34555
|
-
enabled: enabled2 = defaultProps$
|
|
34854
|
+
enabled: enabled2 = defaultProps$k.enabled,
|
|
34556
34855
|
updateState,
|
|
34557
34856
|
style: style2,
|
|
34558
34857
|
className,
|
|
@@ -34560,28 +34859,28 @@ const DateInput = forwardRef(function DateInputNative({
|
|
|
34560
34859
|
onFocus: onFocus2,
|
|
34561
34860
|
onBlur,
|
|
34562
34861
|
onInvalidChange,
|
|
34563
|
-
validationStatus = defaultProps$
|
|
34862
|
+
validationStatus = defaultProps$k.validationStatus,
|
|
34564
34863
|
registerComponentApi,
|
|
34565
|
-
mode = defaultProps$
|
|
34566
|
-
dateFormat = defaultProps$
|
|
34567
|
-
showWeekNumber = defaultProps$
|
|
34568
|
-
weekStartsOn = defaultProps$
|
|
34864
|
+
mode = defaultProps$k.mode,
|
|
34865
|
+
dateFormat = defaultProps$k.dateFormat,
|
|
34866
|
+
showWeekNumber = defaultProps$k.showWeekNumber,
|
|
34867
|
+
weekStartsOn = defaultProps$k.weekStartsOn,
|
|
34569
34868
|
minValue,
|
|
34570
34869
|
maxValue,
|
|
34571
34870
|
disabledDates,
|
|
34572
|
-
inline = defaultProps$
|
|
34573
|
-
clearable = defaultProps$
|
|
34871
|
+
inline = defaultProps$k.inline,
|
|
34872
|
+
clearable = defaultProps$k.clearable,
|
|
34574
34873
|
clearIcon,
|
|
34575
|
-
clearToInitialValue = defaultProps$
|
|
34576
|
-
required: required2 = defaultProps$
|
|
34874
|
+
clearToInitialValue = defaultProps$k.clearToInitialValue,
|
|
34875
|
+
required: required2 = defaultProps$k.required,
|
|
34577
34876
|
startText,
|
|
34578
34877
|
startIcon,
|
|
34579
34878
|
endText,
|
|
34580
34879
|
endIcon,
|
|
34581
34880
|
gap,
|
|
34582
|
-
readOnly: readOnly2 = defaultProps$
|
|
34583
|
-
autoFocus = defaultProps$
|
|
34584
|
-
emptyCharacter = defaultProps$
|
|
34881
|
+
readOnly: readOnly2 = defaultProps$k.readOnly,
|
|
34882
|
+
autoFocus = defaultProps$k.autoFocus,
|
|
34883
|
+
emptyCharacter = defaultProps$k.emptyCharacter,
|
|
34585
34884
|
...rest
|
|
34586
34885
|
}, ref) {
|
|
34587
34886
|
const dateInputRef = useRef(null);
|
|
@@ -35338,34 +35637,34 @@ const DateInputMd = createMetadata({
|
|
|
35338
35637
|
initialValue: dInitialValue(),
|
|
35339
35638
|
autoFocus: dAutoFocus(),
|
|
35340
35639
|
readOnly: dReadonly(),
|
|
35341
|
-
enabled: dEnabled(defaultProps$
|
|
35342
|
-
validationStatus: dValidationStatus(defaultProps$
|
|
35640
|
+
enabled: dEnabled(defaultProps$k.enabled),
|
|
35641
|
+
validationStatus: dValidationStatus(defaultProps$k.validationStatus),
|
|
35343
35642
|
mode: {
|
|
35344
35643
|
description: "The mode of the date input (single or range)",
|
|
35345
35644
|
valueType: "string",
|
|
35346
35645
|
availableValues: DateInputModeValues,
|
|
35347
|
-
defaultValue: defaultProps$
|
|
35646
|
+
defaultValue: defaultProps$k.mode
|
|
35348
35647
|
},
|
|
35349
35648
|
dateFormat: {
|
|
35350
35649
|
description: "The format of the date displayed in the input field",
|
|
35351
35650
|
valueType: "string",
|
|
35352
|
-
defaultValue: defaultProps$
|
|
35651
|
+
defaultValue: defaultProps$k.dateFormat,
|
|
35353
35652
|
availableValues: dateFormats
|
|
35354
35653
|
},
|
|
35355
35654
|
emptyCharacter: {
|
|
35356
35655
|
description: "Character used to create placeholder text for empty input fields",
|
|
35357
35656
|
valueType: "string",
|
|
35358
|
-
defaultValue: defaultProps$
|
|
35657
|
+
defaultValue: defaultProps$k.emptyCharacter
|
|
35359
35658
|
},
|
|
35360
35659
|
showWeekNumber: {
|
|
35361
35660
|
description: "Whether to show the week number (compatibility with DatePicker, not used in DateInput)",
|
|
35362
35661
|
valueType: "boolean",
|
|
35363
|
-
defaultValue: defaultProps$
|
|
35662
|
+
defaultValue: defaultProps$k.showWeekNumber
|
|
35364
35663
|
},
|
|
35365
35664
|
weekStartsOn: {
|
|
35366
35665
|
description: "The first day of the week. 0 is Sunday, 1 is Monday, etc. (compatibility with DatePicker, not used in DateInput)",
|
|
35367
35666
|
valueType: "number",
|
|
35368
|
-
defaultValue: defaultProps$
|
|
35667
|
+
defaultValue: defaultProps$k.weekStartsOn,
|
|
35369
35668
|
availableValues: [
|
|
35370
35669
|
{
|
|
35371
35670
|
value: WeekDays.Sunday,
|
|
@@ -35412,12 +35711,12 @@ const DateInputMd = createMetadata({
|
|
|
35412
35711
|
inline: {
|
|
35413
35712
|
description: "Whether to display the date input inline (compatibility with DatePicker, always true for DateInput)",
|
|
35414
35713
|
valueType: "boolean",
|
|
35415
|
-
defaultValue: defaultProps$
|
|
35714
|
+
defaultValue: defaultProps$k.inline
|
|
35416
35715
|
},
|
|
35417
35716
|
clearable: {
|
|
35418
35717
|
description: "Whether to show a clear button to reset the input",
|
|
35419
35718
|
valueType: "boolean",
|
|
35420
|
-
defaultValue: defaultProps$
|
|
35719
|
+
defaultValue: defaultProps$k.clearable
|
|
35421
35720
|
},
|
|
35422
35721
|
clearIcon: {
|
|
35423
35722
|
description: "Icon name for the clear button",
|
|
@@ -35426,7 +35725,7 @@ const DateInputMd = createMetadata({
|
|
|
35426
35725
|
clearToInitialValue: {
|
|
35427
35726
|
description: "Whether clearing resets to initial value or null",
|
|
35428
35727
|
valueType: "boolean",
|
|
35429
|
-
defaultValue: defaultProps$
|
|
35728
|
+
defaultValue: defaultProps$k.clearToInitialValue
|
|
35430
35729
|
},
|
|
35431
35730
|
gap: {
|
|
35432
35731
|
description: "The gap between input elements",
|
|
@@ -35435,7 +35734,7 @@ const DateInputMd = createMetadata({
|
|
|
35435
35734
|
required: {
|
|
35436
35735
|
description: "Whether the input is required",
|
|
35437
35736
|
valueType: "boolean",
|
|
35438
|
-
defaultValue: defaultProps$
|
|
35737
|
+
defaultValue: defaultProps$k.required
|
|
35439
35738
|
},
|
|
35440
35739
|
startText: dStartText(),
|
|
35441
35740
|
startIcon: dStartIcon(),
|
|
@@ -35527,7 +35826,7 @@ const dateInputComponentRenderer = createComponentRenderer(
|
|
|
35527
35826
|
minValue: extractValue.asOptionalString(node.props.minValue),
|
|
35528
35827
|
maxValue: extractValue.asOptionalString(node.props.maxValue),
|
|
35529
35828
|
disabledDates: extractValue(node.props.disabledDates),
|
|
35530
|
-
inline: extractValue.asOptionalBoolean(node.props.inline, defaultProps$
|
|
35829
|
+
inline: extractValue.asOptionalBoolean(node.props.inline, defaultProps$k.inline),
|
|
35531
35830
|
startText: extractValue.asOptionalString(node.props.startText),
|
|
35532
35831
|
startIcon: extractValue.asOptionalString(node.props.startIcon),
|
|
35533
35832
|
endText: extractValue.asOptionalString(node.props.endText),
|
|
@@ -35535,9 +35834,9 @@ const dateInputComponentRenderer = createComponentRenderer(
|
|
|
35535
35834
|
readOnly: extractValue.asOptionalBoolean(node.props.readOnly),
|
|
35536
35835
|
autoFocus: extractValue.asOptionalBoolean(node.props.autoFocus),
|
|
35537
35836
|
required: extractValue.asOptionalBoolean(node.props.required),
|
|
35538
|
-
clearable: extractValue.asOptionalBoolean(node.props.clearable, defaultProps$
|
|
35837
|
+
clearable: extractValue.asOptionalBoolean(node.props.clearable, defaultProps$k.clearable),
|
|
35539
35838
|
clearIcon: extractValue.asOptionalString(node.props.clearIcon),
|
|
35540
|
-
clearToInitialValue: extractValue.asOptionalBoolean(node.props.clearToInitialValue, defaultProps$
|
|
35839
|
+
clearToInitialValue: extractValue.asOptionalBoolean(node.props.clearToInitialValue, defaultProps$k.clearToInitialValue),
|
|
35541
35840
|
gap: extractValue.asOptionalString(node.props.gap),
|
|
35542
35841
|
emptyCharacter: extractValue.asOptionalString(node.props.emptyCharacter)
|
|
35543
35842
|
}
|
|
@@ -35826,7 +36125,7 @@ const PART_MINUTE = "minute";
|
|
|
35826
36125
|
const PART_SECOND = "second";
|
|
35827
36126
|
const PART_AMPM = "ampm";
|
|
35828
36127
|
const PART_CLEAR_BUTTON = "clearButton";
|
|
35829
|
-
const defaultProps$
|
|
36128
|
+
const defaultProps$j = {
|
|
35830
36129
|
enabled: true,
|
|
35831
36130
|
validationStatus: "none",
|
|
35832
36131
|
hour24: true,
|
|
@@ -35842,7 +36141,7 @@ const TimeInputNative = forwardRef(function TimeInputNative2({
|
|
|
35842
36141
|
id,
|
|
35843
36142
|
initialValue,
|
|
35844
36143
|
value: controlledValue,
|
|
35845
|
-
enabled: enabled2 = defaultProps$
|
|
36144
|
+
enabled: enabled2 = defaultProps$j.enabled,
|
|
35846
36145
|
updateState,
|
|
35847
36146
|
style: style2,
|
|
35848
36147
|
className,
|
|
@@ -35850,24 +36149,24 @@ const TimeInputNative = forwardRef(function TimeInputNative2({
|
|
|
35850
36149
|
onFocus,
|
|
35851
36150
|
onBlur,
|
|
35852
36151
|
onInvalidChange,
|
|
35853
|
-
validationStatus = defaultProps$
|
|
36152
|
+
validationStatus = defaultProps$j.validationStatus,
|
|
35854
36153
|
registerComponentApi,
|
|
35855
|
-
hour24 = defaultProps$
|
|
35856
|
-
seconds = defaultProps$
|
|
36154
|
+
hour24 = defaultProps$j.hour24,
|
|
36155
|
+
seconds = defaultProps$j.seconds,
|
|
35857
36156
|
minTime,
|
|
35858
36157
|
maxTime,
|
|
35859
|
-
clearable = defaultProps$
|
|
36158
|
+
clearable = defaultProps$j.clearable,
|
|
35860
36159
|
clearIcon,
|
|
35861
|
-
clearToInitialValue = defaultProps$
|
|
35862
|
-
required: required2 = defaultProps$
|
|
36160
|
+
clearToInitialValue = defaultProps$j.clearToInitialValue,
|
|
36161
|
+
required: required2 = defaultProps$j.required,
|
|
35863
36162
|
startText,
|
|
35864
36163
|
startIcon,
|
|
35865
36164
|
endText,
|
|
35866
36165
|
endIcon,
|
|
35867
36166
|
gap,
|
|
35868
|
-
readOnly: readOnly2 = defaultProps$
|
|
35869
|
-
autoFocus = defaultProps$
|
|
35870
|
-
emptyCharacter = defaultProps$
|
|
36167
|
+
readOnly: readOnly2 = defaultProps$j.readOnly,
|
|
36168
|
+
autoFocus = defaultProps$j.autoFocus,
|
|
36169
|
+
emptyCharacter = defaultProps$j.emptyCharacter,
|
|
35871
36170
|
...rest
|
|
35872
36171
|
}, ref) {
|
|
35873
36172
|
const timeInputRef = useRef(null);
|
|
@@ -36738,17 +37037,17 @@ const TimeInputMd = createMetadata({
|
|
|
36738
37037
|
initialValue: dInitialValue(),
|
|
36739
37038
|
autoFocus: dAutoFocus(),
|
|
36740
37039
|
readOnly: dReadonly(),
|
|
36741
|
-
enabled: dEnabled(defaultProps$
|
|
36742
|
-
validationStatus: dValidationStatus(defaultProps$
|
|
37040
|
+
enabled: dEnabled(defaultProps$j.enabled),
|
|
37041
|
+
validationStatus: dValidationStatus(defaultProps$j.validationStatus),
|
|
36743
37042
|
hour24: {
|
|
36744
37043
|
description: "Whether to use 24-hour format (true) or 12-hour format with AM/PM (false)",
|
|
36745
37044
|
valueType: "boolean",
|
|
36746
|
-
defaultValue: defaultProps$
|
|
37045
|
+
defaultValue: defaultProps$j.hour24
|
|
36747
37046
|
},
|
|
36748
37047
|
seconds: {
|
|
36749
37048
|
description: "Whether to show and allow input of seconds",
|
|
36750
37049
|
valueType: "boolean",
|
|
36751
|
-
defaultValue: defaultProps$
|
|
37050
|
+
defaultValue: defaultProps$j.seconds
|
|
36752
37051
|
},
|
|
36753
37052
|
minTime: {
|
|
36754
37053
|
description: "Minimum time that the user can select",
|
|
@@ -36761,7 +37060,7 @@ const TimeInputMd = createMetadata({
|
|
|
36761
37060
|
clearable: {
|
|
36762
37061
|
description: "Whether to show a clear button that allows clearing the selected time",
|
|
36763
37062
|
valueType: "boolean",
|
|
36764
|
-
defaultValue: defaultProps$
|
|
37063
|
+
defaultValue: defaultProps$j.clearable
|
|
36765
37064
|
},
|
|
36766
37065
|
clearIcon: {
|
|
36767
37066
|
description: "The icon to display in the clear button.",
|
|
@@ -36770,12 +37069,12 @@ const TimeInputMd = createMetadata({
|
|
|
36770
37069
|
clearToInitialValue: {
|
|
36771
37070
|
description: "Whether the clear button resets the time input to its initial value",
|
|
36772
37071
|
valueType: "boolean",
|
|
36773
|
-
defaultValue: defaultProps$
|
|
37072
|
+
defaultValue: defaultProps$j.clearToInitialValue
|
|
36774
37073
|
},
|
|
36775
37074
|
required: {
|
|
36776
37075
|
description: "Whether the time input should be required",
|
|
36777
37076
|
valueType: "boolean",
|
|
36778
|
-
defaultValue: defaultProps$
|
|
37077
|
+
defaultValue: defaultProps$j.required
|
|
36779
37078
|
},
|
|
36780
37079
|
startText: dStartText(),
|
|
36781
37080
|
startIcon: dStartIcon(),
|
|
@@ -36788,7 +37087,7 @@ const TimeInputMd = createMetadata({
|
|
|
36788
37087
|
emptyCharacter: {
|
|
36789
37088
|
description: "Character to use as placeholder for empty time values. If longer than 1 character, uses the first character. Defaults to '-'",
|
|
36790
37089
|
valueType: "string",
|
|
36791
|
-
defaultValue: defaultProps$
|
|
37090
|
+
defaultValue: defaultProps$j.emptyCharacter
|
|
36792
37091
|
}
|
|
36793
37092
|
},
|
|
36794
37093
|
events: {
|
|
@@ -36865,24 +37164,24 @@ const timeInputComponentRenderer = createComponentRenderer(
|
|
|
36865
37164
|
value: stateValue,
|
|
36866
37165
|
updateState,
|
|
36867
37166
|
registerComponentApi,
|
|
36868
|
-
enabled: extractValue.asOptionalBoolean(node.props.enabled, defaultProps$
|
|
36869
|
-
autoFocus: extractValue.asOptionalBoolean(node.props.autoFocus, defaultProps$
|
|
36870
|
-
readOnly: extractValue.asOptionalBoolean(node.props.readOnly, defaultProps$
|
|
37167
|
+
enabled: extractValue.asOptionalBoolean(node.props.enabled, defaultProps$j.enabled),
|
|
37168
|
+
autoFocus: extractValue.asOptionalBoolean(node.props.autoFocus, defaultProps$j.autoFocus),
|
|
37169
|
+
readOnly: extractValue.asOptionalBoolean(node.props.readOnly, defaultProps$j.readOnly),
|
|
36871
37170
|
validationStatus: extractValue(node.props.validationStatus),
|
|
36872
|
-
hour24: extractValue.asOptionalBoolean(node.props.hour24, defaultProps$
|
|
36873
|
-
seconds: extractValue.asOptionalBoolean(node.props.seconds, defaultProps$
|
|
37171
|
+
hour24: extractValue.asOptionalBoolean(node.props.hour24, defaultProps$j.hour24),
|
|
37172
|
+
seconds: extractValue.asOptionalBoolean(node.props.seconds, defaultProps$j.seconds),
|
|
36874
37173
|
minTime: extractValue(node.props.minTime),
|
|
36875
37174
|
maxTime: extractValue(node.props.maxTime),
|
|
36876
|
-
clearable: extractValue.asOptionalBoolean(node.props.clearable, defaultProps$
|
|
37175
|
+
clearable: extractValue.asOptionalBoolean(node.props.clearable, defaultProps$j.clearable),
|
|
36877
37176
|
clearIcon: extractValue(node.props.clearIcon),
|
|
36878
|
-
clearToInitialValue: extractValue.asOptionalBoolean(node.props.clearToInitialValue, defaultProps$
|
|
36879
|
-
required: extractValue.asOptionalBoolean(node.props.required, defaultProps$
|
|
37177
|
+
clearToInitialValue: extractValue.asOptionalBoolean(node.props.clearToInitialValue, defaultProps$j.clearToInitialValue),
|
|
37178
|
+
required: extractValue.asOptionalBoolean(node.props.required, defaultProps$j.required),
|
|
36880
37179
|
startText: extractValue(node.props.startText),
|
|
36881
37180
|
startIcon: extractValue(node.props.startIcon),
|
|
36882
37181
|
endText: extractValue(node.props.endText),
|
|
36883
37182
|
endIcon: extractValue(node.props.endIcon),
|
|
36884
37183
|
gap: extractValue.asOptionalString(node.props.gap),
|
|
36885
|
-
emptyCharacter: extractValue.asOptionalString(node.props.emptyCharacter, defaultProps$
|
|
37184
|
+
emptyCharacter: extractValue.asOptionalString(node.props.emptyCharacter, defaultProps$j.emptyCharacter),
|
|
36886
37185
|
onDidChange: lookupEventHandler("didChange"),
|
|
36887
37186
|
onFocus: lookupEventHandler("gotFocus"),
|
|
36888
37187
|
onBlur: lookupEventHandler("lostFocus"),
|
|
@@ -36891,17 +37190,17 @@ const timeInputComponentRenderer = createComponentRenderer(
|
|
|
36891
37190
|
);
|
|
36892
37191
|
}
|
|
36893
37192
|
);
|
|
36894
|
-
const defaultProps$
|
|
37193
|
+
const defaultProps$i = {
|
|
36895
37194
|
enabled: true,
|
|
36896
37195
|
interval: 1e3,
|
|
36897
37196
|
once: false,
|
|
36898
37197
|
initialDelay: 0
|
|
36899
37198
|
};
|
|
36900
37199
|
const Timer = forwardRef(function Timer2({
|
|
36901
|
-
enabled: enabled2 = defaultProps$
|
|
36902
|
-
interval = defaultProps$
|
|
36903
|
-
once = defaultProps$
|
|
36904
|
-
initialDelay = defaultProps$
|
|
37200
|
+
enabled: enabled2 = defaultProps$i.enabled,
|
|
37201
|
+
interval = defaultProps$i.interval,
|
|
37202
|
+
once = defaultProps$i.once,
|
|
37203
|
+
initialDelay = defaultProps$i.initialDelay,
|
|
36905
37204
|
onTick,
|
|
36906
37205
|
registerComponentApi,
|
|
36907
37206
|
style: style2,
|
|
@@ -37051,22 +37350,22 @@ const TimerMd = createMetadata({
|
|
|
37051
37350
|
enabled: {
|
|
37052
37351
|
description: "Whether the timer is enabled and should fire events.",
|
|
37053
37352
|
valueType: "boolean",
|
|
37054
|
-
defaultValue: defaultProps$
|
|
37353
|
+
defaultValue: defaultProps$i.enabled
|
|
37055
37354
|
},
|
|
37056
37355
|
interval: {
|
|
37057
37356
|
description: "The interval in milliseconds between timer events.",
|
|
37058
37357
|
valueType: "number",
|
|
37059
|
-
defaultValue: defaultProps$
|
|
37358
|
+
defaultValue: defaultProps$i.interval
|
|
37060
37359
|
},
|
|
37061
37360
|
initialDelay: {
|
|
37062
37361
|
description: "The delay in milliseconds before the first timer event.",
|
|
37063
37362
|
valueType: "number",
|
|
37064
|
-
defaultValue: defaultProps$
|
|
37363
|
+
defaultValue: defaultProps$i.initialDelay
|
|
37065
37364
|
},
|
|
37066
37365
|
once: {
|
|
37067
37366
|
description: "Whether the timer should stop after firing its first tick event.",
|
|
37068
37367
|
valueType: "boolean",
|
|
37069
|
-
defaultValue: defaultProps$
|
|
37368
|
+
defaultValue: defaultProps$i.once
|
|
37070
37369
|
}
|
|
37071
37370
|
},
|
|
37072
37371
|
events: {
|
|
@@ -37111,7 +37410,7 @@ const timerComponentRenderer = createComponentRenderer(
|
|
|
37111
37410
|
}
|
|
37112
37411
|
);
|
|
37113
37412
|
const COMP$x = "Redirect";
|
|
37114
|
-
const defaultProps$
|
|
37413
|
+
const defaultProps$h = {
|
|
37115
37414
|
to: ""
|
|
37116
37415
|
};
|
|
37117
37416
|
const RedirectMd = createMetadata({
|
|
@@ -37124,7 +37423,7 @@ const RedirectMd = createMetadata({
|
|
|
37124
37423
|
},
|
|
37125
37424
|
to: {
|
|
37126
37425
|
description: `This property defines the URL to which this component is about to redirect requests.`,
|
|
37127
|
-
defaultValue: defaultProps$
|
|
37426
|
+
defaultValue: defaultProps$h.to
|
|
37128
37427
|
}
|
|
37129
37428
|
}
|
|
37130
37429
|
});
|
|
@@ -37136,12 +37435,21 @@ const redirectRenderer = createComponentRenderer(
|
|
|
37136
37435
|
}
|
|
37137
37436
|
);
|
|
37138
37437
|
const themeVars$9 = `'{"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)"}'`;
|
|
37139
|
-
const tabs = "
|
|
37140
|
-
const filler = "
|
|
37141
|
-
const tabTrigger = "
|
|
37142
|
-
const distributeEvenly = "
|
|
37143
|
-
const tabsList = "
|
|
37144
|
-
const
|
|
37438
|
+
const tabs = "_tabs_19izz_14";
|
|
37439
|
+
const filler = "_filler_19izz_26";
|
|
37440
|
+
const tabTrigger = "_tabTrigger_19izz_39";
|
|
37441
|
+
const distributeEvenly = "_distributeEvenly_19izz_56";
|
|
37442
|
+
const tabsList = "_tabsList_19izz_87";
|
|
37443
|
+
const alignStart = "_alignStart_19izz_104";
|
|
37444
|
+
const alignEnd = "_alignEnd_19izz_107";
|
|
37445
|
+
const alignCenter = "_alignCenter_19izz_110";
|
|
37446
|
+
const alignStretch = "_alignStretch_19izz_113";
|
|
37447
|
+
const tabsContent = "_tabsContent_19izz_119";
|
|
37448
|
+
const accordionView = "_accordionView_19izz_123";
|
|
37449
|
+
const accordionRoot = "_accordionRoot_19izz_126";
|
|
37450
|
+
const accordionInterleaved = "_accordionInterleaved_19izz_131";
|
|
37451
|
+
const accordionList = "_accordionList_19izz_136";
|
|
37452
|
+
const accordionTrigger = "_accordionTrigger_19izz_148";
|
|
37145
37453
|
const styles$k = {
|
|
37146
37454
|
themeVars: themeVars$9,
|
|
37147
37455
|
tabs,
|
|
@@ -37149,43 +37457,61 @@ const styles$k = {
|
|
|
37149
37457
|
tabTrigger,
|
|
37150
37458
|
distributeEvenly,
|
|
37151
37459
|
tabsList,
|
|
37152
|
-
|
|
37460
|
+
alignStart,
|
|
37461
|
+
alignEnd,
|
|
37462
|
+
alignCenter,
|
|
37463
|
+
alignStretch,
|
|
37464
|
+
tabsContent,
|
|
37465
|
+
accordionView,
|
|
37466
|
+
accordionRoot,
|
|
37467
|
+
accordionInterleaved,
|
|
37468
|
+
accordionList,
|
|
37469
|
+
accordionTrigger
|
|
37153
37470
|
};
|
|
37154
37471
|
const TabContext = createContext({
|
|
37155
37472
|
register: (tabItem) => {
|
|
37156
37473
|
},
|
|
37157
37474
|
unRegister: (innerId) => {
|
|
37158
37475
|
},
|
|
37159
|
-
activeTabId: ""
|
|
37476
|
+
activeTabId: "",
|
|
37477
|
+
getTabItems: () => []
|
|
37160
37478
|
});
|
|
37161
37479
|
function useTabContextValue() {
|
|
37162
37480
|
const [tabItems, setTabItems] = useState(EMPTY_ARRAY);
|
|
37481
|
+
const tabItemsRef = useRef(EMPTY_ARRAY);
|
|
37482
|
+
tabItemsRef.current = tabItems;
|
|
37163
37483
|
const [activeTabId, setActiveTabId] = useState("");
|
|
37484
|
+
const register = useCallback((tabItem) => {
|
|
37485
|
+
setTabItems(
|
|
37486
|
+
produce((draft) => {
|
|
37487
|
+
const existing = draft.findIndex((col) => col.innerId === tabItem.innerId);
|
|
37488
|
+
if (existing < 0) {
|
|
37489
|
+
draft.push(tabItem);
|
|
37490
|
+
} else {
|
|
37491
|
+
draft[existing] = tabItem;
|
|
37492
|
+
}
|
|
37493
|
+
})
|
|
37494
|
+
);
|
|
37495
|
+
}, []);
|
|
37496
|
+
const unRegister = useCallback((innerId) => {
|
|
37497
|
+
setTabItems(
|
|
37498
|
+
produce((draft) => {
|
|
37499
|
+
return draft.filter((col) => col.innerId !== innerId);
|
|
37500
|
+
})
|
|
37501
|
+
);
|
|
37502
|
+
}, []);
|
|
37503
|
+
const getTabItems = useCallback(() => {
|
|
37504
|
+
return tabItemsRef.current;
|
|
37505
|
+
}, []);
|
|
37164
37506
|
const tabContextValue = useMemo(() => {
|
|
37165
37507
|
return {
|
|
37166
|
-
register
|
|
37167
|
-
|
|
37168
|
-
produce((draft) => {
|
|
37169
|
-
const existing = draft.findIndex((col) => col.innerId === tabItem.innerId);
|
|
37170
|
-
if (existing < 0) {
|
|
37171
|
-
draft.push(tabItem);
|
|
37172
|
-
} else {
|
|
37173
|
-
draft[existing] = tabItem;
|
|
37174
|
-
}
|
|
37175
|
-
})
|
|
37176
|
-
);
|
|
37177
|
-
},
|
|
37178
|
-
unRegister: (innerId) => {
|
|
37179
|
-
setTabItems(
|
|
37180
|
-
produce((draft) => {
|
|
37181
|
-
return draft.filter((col) => col.innerId !== innerId);
|
|
37182
|
-
})
|
|
37183
|
-
);
|
|
37184
|
-
},
|
|
37508
|
+
register,
|
|
37509
|
+
unRegister,
|
|
37185
37510
|
activeTabId,
|
|
37186
|
-
setActiveTabId
|
|
37511
|
+
setActiveTabId,
|
|
37512
|
+
getTabItems
|
|
37187
37513
|
};
|
|
37188
|
-
}, [activeTabId]);
|
|
37514
|
+
}, [register, unRegister, activeTabId, getTabItems]);
|
|
37189
37515
|
return {
|
|
37190
37516
|
tabItems,
|
|
37191
37517
|
tabContextValue
|
|
@@ -37194,21 +37520,25 @@ function useTabContextValue() {
|
|
|
37194
37520
|
function useTabContext() {
|
|
37195
37521
|
return useContext(TabContext);
|
|
37196
37522
|
}
|
|
37197
|
-
const defaultProps$
|
|
37523
|
+
const defaultProps$g = {
|
|
37198
37524
|
activeTab: 0,
|
|
37199
37525
|
orientation: "horizontal",
|
|
37526
|
+
tabAlignment: "start",
|
|
37527
|
+
accordionView: false,
|
|
37200
37528
|
distributeEvenly: false
|
|
37201
37529
|
};
|
|
37202
37530
|
const Tabs = forwardRef(function Tabs2({
|
|
37203
|
-
activeTab = defaultProps$
|
|
37204
|
-
orientation = defaultProps$
|
|
37531
|
+
activeTab = defaultProps$g.activeTab,
|
|
37532
|
+
orientation = defaultProps$g.orientation,
|
|
37533
|
+
tabAlignment = defaultProps$g.tabAlignment,
|
|
37534
|
+
accordionView: accordionView2 = defaultProps$g.accordionView,
|
|
37205
37535
|
headerRenderer,
|
|
37206
37536
|
style: style2,
|
|
37207
37537
|
children,
|
|
37208
37538
|
id,
|
|
37209
37539
|
registerComponentApi,
|
|
37210
37540
|
className,
|
|
37211
|
-
distributeEvenly: distributeEvenly2 = defaultProps$
|
|
37541
|
+
distributeEvenly: distributeEvenly2 = defaultProps$g.distributeEvenly,
|
|
37212
37542
|
onDidChange = noop$1,
|
|
37213
37543
|
...rest
|
|
37214
37544
|
}, forwardedRef) {
|
|
@@ -37272,6 +37602,66 @@ const Tabs = forwardRef(function Tabs2({
|
|
|
37272
37602
|
setActiveTabById
|
|
37273
37603
|
});
|
|
37274
37604
|
}, [next, prev, setActiveTabIndex, setActiveTabById, registerComponentApi]);
|
|
37605
|
+
if (accordionView2) {
|
|
37606
|
+
return /* @__PURE__ */ jsx(TabContext.Provider, { value: tabContextValue, children: /* @__PURE__ */ jsx(
|
|
37607
|
+
"div",
|
|
37608
|
+
{
|
|
37609
|
+
...rest,
|
|
37610
|
+
id: tabsId,
|
|
37611
|
+
ref: forwardedRef,
|
|
37612
|
+
className: classnames(className, styles$k.tabs, styles$k.accordionView),
|
|
37613
|
+
style: style2,
|
|
37614
|
+
children: /* @__PURE__ */ jsx(
|
|
37615
|
+
Root$2,
|
|
37616
|
+
{
|
|
37617
|
+
value: `${currentTab}`,
|
|
37618
|
+
onValueChange: (tab) => {
|
|
37619
|
+
const tabItem = tabItems.find((item2) => item2.innerId === tab);
|
|
37620
|
+
const newIndex = tabItems.findIndex((item2) => item2.innerId === tab);
|
|
37621
|
+
if (newIndex !== activeIndex) {
|
|
37622
|
+
tabContextValue.setActiveTabId(tab);
|
|
37623
|
+
setActiveIndex(newIndex);
|
|
37624
|
+
onDidChange == null ? void 0 : onDidChange(newIndex, tabItem.id || tabItem.innerId, tabItem == null ? void 0 : tabItem.label);
|
|
37625
|
+
}
|
|
37626
|
+
},
|
|
37627
|
+
orientation: "vertical",
|
|
37628
|
+
className: styles$k.accordionRoot,
|
|
37629
|
+
children: /* @__PURE__ */ jsxs("div", { className: styles$k.accordionInterleaved, children: [
|
|
37630
|
+
/* @__PURE__ */ jsx(List, { className: styles$k.accordionList, children: tabItems.map((tab, index) => /* @__PURE__ */ jsx(
|
|
37631
|
+
Trigger$1,
|
|
37632
|
+
{
|
|
37633
|
+
value: tab.innerId,
|
|
37634
|
+
asChild: true,
|
|
37635
|
+
style: { order: index * 2 },
|
|
37636
|
+
children: /* @__PURE__ */ jsx(
|
|
37637
|
+
"div",
|
|
37638
|
+
{
|
|
37639
|
+
role: "tab",
|
|
37640
|
+
"aria-label": tab.label,
|
|
37641
|
+
className: classnames(styles$k.tabTrigger, styles$k.accordionTrigger),
|
|
37642
|
+
children: tab.headerRenderer ? tab.headerRenderer({
|
|
37643
|
+
...tab.id !== void 0 && { id: tab.id },
|
|
37644
|
+
index,
|
|
37645
|
+
label: tab.label,
|
|
37646
|
+
isActive: tab.innerId === currentTab
|
|
37647
|
+
}) : headerRenderer ? headerRenderer({
|
|
37648
|
+
...tab.id !== void 0 && { id: tab.id },
|
|
37649
|
+
index,
|
|
37650
|
+
label: tab.label,
|
|
37651
|
+
isActive: tab.innerId === currentTab
|
|
37652
|
+
}) : tab.label
|
|
37653
|
+
}
|
|
37654
|
+
)
|
|
37655
|
+
},
|
|
37656
|
+
tab.innerId
|
|
37657
|
+
)) }),
|
|
37658
|
+
children
|
|
37659
|
+
] })
|
|
37660
|
+
}
|
|
37661
|
+
)
|
|
37662
|
+
}
|
|
37663
|
+
) });
|
|
37664
|
+
}
|
|
37275
37665
|
return /* @__PURE__ */ jsx(TabContext.Provider, { value: tabContextValue, children: /* @__PURE__ */ jsxs(
|
|
37276
37666
|
Root$2,
|
|
37277
37667
|
{
|
|
@@ -37292,30 +37682,44 @@ const Tabs = forwardRef(function Tabs2({
|
|
|
37292
37682
|
orientation,
|
|
37293
37683
|
style: style2,
|
|
37294
37684
|
children: [
|
|
37295
|
-
/* @__PURE__ */ jsxs(
|
|
37296
|
-
|
|
37297
|
-
|
|
37298
|
-
{
|
|
37299
|
-
|
|
37300
|
-
"
|
|
37301
|
-
|
|
37302
|
-
|
|
37303
|
-
|
|
37304
|
-
|
|
37305
|
-
|
|
37306
|
-
|
|
37307
|
-
|
|
37308
|
-
|
|
37309
|
-
|
|
37310
|
-
|
|
37311
|
-
|
|
37312
|
-
|
|
37313
|
-
|
|
37314
|
-
|
|
37315
|
-
|
|
37316
|
-
|
|
37317
|
-
|
|
37318
|
-
|
|
37685
|
+
/* @__PURE__ */ jsxs(
|
|
37686
|
+
List,
|
|
37687
|
+
{
|
|
37688
|
+
className: classnames(styles$k.tabsList, {
|
|
37689
|
+
[styles$k.alignStart]: tabAlignment === "start",
|
|
37690
|
+
[styles$k.alignEnd]: tabAlignment === "end",
|
|
37691
|
+
[styles$k.alignCenter]: tabAlignment === "center",
|
|
37692
|
+
[styles$k.alignStretch]: tabAlignment === "stretch"
|
|
37693
|
+
}),
|
|
37694
|
+
role: "tablist",
|
|
37695
|
+
children: [
|
|
37696
|
+
!distributeEvenly2 && !headerRenderer && tabAlignment === "end" && /* @__PURE__ */ jsx("div", { className: styles$k.filler, "data-orientation": orientation }),
|
|
37697
|
+
!distributeEvenly2 && !headerRenderer && tabAlignment === "center" && /* @__PURE__ */ jsx("div", { className: styles$k.filler, "data-orientation": orientation }),
|
|
37698
|
+
tabItems.map((tab, index) => /* @__PURE__ */ jsx(Trigger$1, { value: tab.innerId, asChild: true, children: /* @__PURE__ */ jsx(
|
|
37699
|
+
"div",
|
|
37700
|
+
{
|
|
37701
|
+
role: "tab",
|
|
37702
|
+
"aria-label": tab.label,
|
|
37703
|
+
className: classnames(styles$k.tabTrigger, {
|
|
37704
|
+
[styles$k.distributeEvenly]: distributeEvenly2 || tabAlignment === "stretch"
|
|
37705
|
+
}),
|
|
37706
|
+
children: tab.headerRenderer ? tab.headerRenderer({
|
|
37707
|
+
...tab.id !== void 0 && { id: tab.id },
|
|
37708
|
+
index,
|
|
37709
|
+
label: tab.label,
|
|
37710
|
+
isActive: tab.innerId === currentTab
|
|
37711
|
+
}) : headerRenderer ? headerRenderer({
|
|
37712
|
+
...tab.id !== void 0 && { id: tab.id },
|
|
37713
|
+
index,
|
|
37714
|
+
label: tab.label,
|
|
37715
|
+
isActive: tab.innerId === currentTab
|
|
37716
|
+
}) : tab.label
|
|
37717
|
+
}
|
|
37718
|
+
) }, tab.innerId)),
|
|
37719
|
+
!distributeEvenly2 && !headerRenderer && tabAlignment !== "stretch" && (tabAlignment === "start" || tabAlignment === "center") && /* @__PURE__ */ jsx("div", { className: styles$k.filler, "data-orientation": orientation })
|
|
37720
|
+
]
|
|
37721
|
+
}
|
|
37722
|
+
),
|
|
37319
37723
|
children
|
|
37320
37724
|
]
|
|
37321
37725
|
}
|
|
@@ -37330,11 +37734,22 @@ const TabsMd = createMetadata({
|
|
|
37330
37734
|
`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.`
|
|
37331
37735
|
),
|
|
37332
37736
|
orientation: {
|
|
37333
|
-
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.`,
|
|
37737
|
+
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.`,
|
|
37334
37738
|
availableValues: ["horizontal", "vertical"],
|
|
37335
|
-
defaultValue: defaultProps$
|
|
37739
|
+
defaultValue: defaultProps$g.orientation,
|
|
37336
37740
|
valueType: "string"
|
|
37337
37741
|
},
|
|
37742
|
+
tabAlignment: {
|
|
37743
|
+
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.`,
|
|
37744
|
+
availableValues: ["start", "end", "center", "stretch"],
|
|
37745
|
+
defaultValue: defaultProps$g.tabAlignment,
|
|
37746
|
+
valueType: "string"
|
|
37747
|
+
},
|
|
37748
|
+
accordionView: {
|
|
37749
|
+
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.`,
|
|
37750
|
+
defaultValue: defaultProps$g.accordionView,
|
|
37751
|
+
valueType: "boolean"
|
|
37752
|
+
},
|
|
37338
37753
|
headerTemplate: {
|
|
37339
37754
|
...dComponent(`This property declares the template for the clickable tab area.`)
|
|
37340
37755
|
}
|
|
@@ -37378,7 +37793,7 @@ const tabsComponentRenderer = createComponentRenderer(
|
|
|
37378
37793
|
COMP$w,
|
|
37379
37794
|
TabsMd,
|
|
37380
37795
|
({ extractValue, node, renderChild: renderChild2, className, registerComponentApi, lookupEventHandler }) => {
|
|
37381
|
-
var _a2, _b, _c;
|
|
37796
|
+
var _a2, _b, _c, _d, _e;
|
|
37382
37797
|
return /* @__PURE__ */ jsx(
|
|
37383
37798
|
Tabs,
|
|
37384
37799
|
{
|
|
@@ -37397,6 +37812,8 @@ const tabsComponentRenderer = createComponentRenderer(
|
|
|
37397
37812
|
) : void 0,
|
|
37398
37813
|
activeTab: extractValue((_b = node.props) == null ? void 0 : _b.activeTab),
|
|
37399
37814
|
orientation: extractValue((_c = node.props) == null ? void 0 : _c.orientation),
|
|
37815
|
+
tabAlignment: extractValue((_d = node.props) == null ? void 0 : _d.tabAlignment),
|
|
37816
|
+
accordionView: extractValue((_e = node.props) == null ? void 0 : _e.accordionView),
|
|
37400
37817
|
onDidChange: lookupEventHandler("didChange"),
|
|
37401
37818
|
registerComponentApi,
|
|
37402
37819
|
children: renderChild2(node.children)
|
|
@@ -37408,16 +37825,16 @@ const anchorRef = "_anchorRef_1tdkt_2";
|
|
|
37408
37825
|
const styles$j = {
|
|
37409
37826
|
anchorRef
|
|
37410
37827
|
};
|
|
37411
|
-
const defaultProps$
|
|
37828
|
+
const defaultProps$f = {
|
|
37412
37829
|
level: 1,
|
|
37413
37830
|
omitFromToc: false
|
|
37414
37831
|
};
|
|
37415
37832
|
const Bookmark = ({
|
|
37416
37833
|
uid,
|
|
37417
|
-
level = defaultProps$
|
|
37834
|
+
level = defaultProps$f.level,
|
|
37418
37835
|
children,
|
|
37419
37836
|
title: title2,
|
|
37420
|
-
omitFromToc = defaultProps$
|
|
37837
|
+
omitFromToc = defaultProps$f.omitFromToc,
|
|
37421
37838
|
registerComponentApi,
|
|
37422
37839
|
...rest
|
|
37423
37840
|
}) => {
|
|
@@ -37465,7 +37882,7 @@ const BookmarkMd = createMetadata({
|
|
|
37465
37882
|
level: {
|
|
37466
37883
|
description: "The level of the bookmark. The level is used to determine the bookmark's position in the table of contents.",
|
|
37467
37884
|
valueType: "number",
|
|
37468
|
-
defaultValue: defaultProps$
|
|
37885
|
+
defaultValue: defaultProps$f.level
|
|
37469
37886
|
},
|
|
37470
37887
|
title: {
|
|
37471
37888
|
description: "Defines the text to display the bookmark in the table of contents. If this property is empty, the text falls back to the value of `id`.",
|
|
@@ -37474,7 +37891,7 @@ const BookmarkMd = createMetadata({
|
|
|
37474
37891
|
omitFromToc: {
|
|
37475
37892
|
description: "If true, this bookmark will be excluded from the table of contents.",
|
|
37476
37893
|
valueType: "boolean",
|
|
37477
|
-
defaultValue: defaultProps$
|
|
37894
|
+
defaultValue: defaultProps$f.omitFromToc
|
|
37478
37895
|
}
|
|
37479
37896
|
},
|
|
37480
37897
|
apis: {
|
|
@@ -37505,11 +37922,11 @@ const AppStateContext = createContext$1(null);
|
|
|
37505
37922
|
function useAppStateContextPart(selector) {
|
|
37506
37923
|
return useContextSelector(AppStateContext, selector);
|
|
37507
37924
|
}
|
|
37508
|
-
const defaultProps$
|
|
37925
|
+
const defaultProps$e = {
|
|
37509
37926
|
bucket: "default"
|
|
37510
37927
|
};
|
|
37511
37928
|
function AppState({
|
|
37512
|
-
bucket = defaultProps$
|
|
37929
|
+
bucket = defaultProps$e.bucket,
|
|
37513
37930
|
updateState,
|
|
37514
37931
|
initialValue,
|
|
37515
37932
|
registerComponentApi,
|
|
@@ -37570,7 +37987,7 @@ const AppStateMd = createMetadata({
|
|
|
37570
37987
|
bucket: {
|
|
37571
37988
|
description: `This property is the identifier of the bucket to which the \`${COMP$u}\` instance is bound. Multiple \`${COMP$u}\` instances with the same bucket will share the same state object: any of them updating the state will cause the other instances to view the new, updated state.`,
|
|
37572
37989
|
valueType: "string",
|
|
37573
|
-
defaultValue: defaultProps$
|
|
37990
|
+
defaultValue: defaultProps$e.bucket
|
|
37574
37991
|
},
|
|
37575
37992
|
initialValue: {
|
|
37576
37993
|
description: `This property contains the initial state value. Though you can use multiple \`${COMP$u}\`component instances for the same bucket with their \`initialValue\` set, it may result in faulty app logic. When xmlui instantiates an \`${COMP$u}\` with an explicit initial value, that value is immediately merged with the existing state. The issue may come from the behavior that \`initialValue\` is set (merged) only when a component mounts. By default, the bucket's initial state is undefined.`
|
|
@@ -37653,16 +38070,16 @@ const styles$i = {
|
|
|
37653
38070
|
head_6,
|
|
37654
38071
|
active: active$1
|
|
37655
38072
|
};
|
|
37656
|
-
const defaultProps$
|
|
38073
|
+
const defaultProps$d = {
|
|
37657
38074
|
smoothScrolling: false,
|
|
37658
38075
|
maxHeadingLevel: 6,
|
|
37659
38076
|
omitH1: false
|
|
37660
38077
|
};
|
|
37661
38078
|
const TableOfContents = forwardRef(function TableOfContents2({
|
|
37662
38079
|
style: style2,
|
|
37663
|
-
smoothScrolling = defaultProps$
|
|
37664
|
-
maxHeadingLevel = defaultProps$
|
|
37665
|
-
omitH1 = defaultProps$
|
|
38080
|
+
smoothScrolling = defaultProps$d.smoothScrolling,
|
|
38081
|
+
maxHeadingLevel = defaultProps$d.maxHeadingLevel,
|
|
38082
|
+
omitH1 = defaultProps$d.omitH1,
|
|
37666
38083
|
className,
|
|
37667
38084
|
...rest
|
|
37668
38085
|
}, forwardedRef) {
|
|
@@ -37754,12 +38171,12 @@ const TableOfContentsMd = createMetadata({
|
|
|
37754
38171
|
smoothScrolling: {
|
|
37755
38172
|
description: `This property indicates that smooth scrolling is used while scrolling the selected table of contents items into view.`,
|
|
37756
38173
|
valueType: "boolean",
|
|
37757
|
-
defaultValue: defaultProps$
|
|
38174
|
+
defaultValue: defaultProps$d.smoothScrolling
|
|
37758
38175
|
},
|
|
37759
38176
|
maxHeadingLevel: {
|
|
37760
38177
|
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.",
|
|
37761
38178
|
valueType: "number",
|
|
37762
|
-
defaultValue: defaultProps$
|
|
38179
|
+
defaultValue: defaultProps$d.maxHeadingLevel
|
|
37763
38180
|
},
|
|
37764
38181
|
omitH1: {
|
|
37765
38182
|
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.",
|
|
@@ -37847,7 +38264,7 @@ const AccordionContext = createContext({
|
|
|
37847
38264
|
function useAccordionContext() {
|
|
37848
38265
|
return useContext(AccordionContext);
|
|
37849
38266
|
}
|
|
37850
|
-
const defaultProps$
|
|
38267
|
+
const defaultProps$c = {
|
|
37851
38268
|
hideIcon: false,
|
|
37852
38269
|
collapsedIcon: "chevrondown",
|
|
37853
38270
|
triggerPosition: "end",
|
|
@@ -37857,13 +38274,13 @@ const AccordionComponent = forwardRef(function AccordionComponent2({
|
|
|
37857
38274
|
className,
|
|
37858
38275
|
style: style2,
|
|
37859
38276
|
children,
|
|
37860
|
-
hideIcon = defaultProps$
|
|
38277
|
+
hideIcon = defaultProps$c.hideIcon,
|
|
37861
38278
|
expandedIcon,
|
|
37862
|
-
collapsedIcon = defaultProps$
|
|
37863
|
-
triggerPosition = defaultProps$
|
|
38279
|
+
collapsedIcon = defaultProps$c.collapsedIcon,
|
|
38280
|
+
triggerPosition = defaultProps$c.triggerPosition,
|
|
37864
38281
|
onDisplayDidChange = noop$1,
|
|
37865
38282
|
registerComponentApi,
|
|
37866
|
-
rotateExpanded = defaultProps$
|
|
38283
|
+
rotateExpanded = defaultProps$c.rotateExpanded,
|
|
37867
38284
|
...rest
|
|
37868
38285
|
}, forwardedRef) {
|
|
37869
38286
|
const [expandedItems, setExpandedItems] = useState([]);
|
|
@@ -37984,14 +38401,14 @@ const AccordionMd = createMetadata({
|
|
|
37984
38401
|
props: {
|
|
37985
38402
|
triggerPosition: {
|
|
37986
38403
|
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.`,
|
|
37987
|
-
defaultValue: defaultProps$
|
|
38404
|
+
defaultValue: defaultProps$c.triggerPosition,
|
|
37988
38405
|
valueType: "string",
|
|
37989
38406
|
availableValues: triggerPositionNames
|
|
37990
38407
|
},
|
|
37991
38408
|
collapsedIcon: {
|
|
37992
38409
|
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.",
|
|
37993
38410
|
valueType: "string",
|
|
37994
|
-
defaultValue: defaultProps$
|
|
38411
|
+
defaultValue: defaultProps$c.collapsedIcon
|
|
37995
38412
|
},
|
|
37996
38413
|
expandedIcon: {
|
|
37997
38414
|
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.",
|
|
@@ -37999,13 +38416,13 @@ const AccordionMd = createMetadata({
|
|
|
37999
38416
|
},
|
|
38000
38417
|
hideIcon: {
|
|
38001
38418
|
description: `This property indicates that the trigger icon is not displayed (\`true\`).`,
|
|
38002
|
-
defaultValue: defaultProps$
|
|
38419
|
+
defaultValue: defaultProps$c.hideIcon,
|
|
38003
38420
|
valueType: "boolean"
|
|
38004
38421
|
},
|
|
38005
38422
|
rotateExpanded: {
|
|
38006
38423
|
description: `This optional property defines the rotation angle of the expanded icon (relative to the collapsed icon).`,
|
|
38007
38424
|
valueType: "string",
|
|
38008
|
-
defaultValue: defaultProps$
|
|
38425
|
+
defaultValue: defaultProps$c.rotateExpanded
|
|
38009
38426
|
}
|
|
38010
38427
|
},
|
|
38011
38428
|
events: {
|
|
@@ -38072,7 +38489,7 @@ const accordionComponentRenderer = createComponentRenderer(
|
|
|
38072
38489
|
);
|
|
38073
38490
|
const TabItemComponent = forwardRef(function TabItemComponent2({ children, label: label2, headerRenderer, style: style2, id, activated, ...rest }, forwardedRef) {
|
|
38074
38491
|
const innerId = useId();
|
|
38075
|
-
const { register, unRegister, activeTabId } = useTabContext();
|
|
38492
|
+
const { register, unRegister, activeTabId, getTabItems } = useTabContext();
|
|
38076
38493
|
useEffect(() => {
|
|
38077
38494
|
register({
|
|
38078
38495
|
label: label2,
|
|
@@ -38093,6 +38510,9 @@ const TabItemComponent = forwardRef(function TabItemComponent2({ children, label
|
|
|
38093
38510
|
}
|
|
38094
38511
|
}, [activeTabId, innerId, activated]);
|
|
38095
38512
|
if (activeTabId !== innerId) return null;
|
|
38513
|
+
const tabItems = getTabItems();
|
|
38514
|
+
const tabIndex = (tabItems == null ? void 0 : tabItems.findIndex((item2) => item2.innerId === innerId)) ?? 0;
|
|
38515
|
+
const contentOrder = tabIndex * 2 + 1;
|
|
38096
38516
|
return /* @__PURE__ */ createElement(
|
|
38097
38517
|
Content$1,
|
|
38098
38518
|
{
|
|
@@ -38101,7 +38521,7 @@ const TabItemComponent = forwardRef(function TabItemComponent2({ children, label
|
|
|
38101
38521
|
value: innerId,
|
|
38102
38522
|
className: styles$k.tabsContent,
|
|
38103
38523
|
ref: forwardedRef,
|
|
38104
|
-
style: style2
|
|
38524
|
+
style: { ...style2, order: contentOrder }
|
|
38105
38525
|
},
|
|
38106
38526
|
children
|
|
38107
38527
|
);
|
|
@@ -38163,16 +38583,16 @@ const tabItemComponentRenderer = createComponentRenderer(
|
|
|
38163
38583
|
function defaultRenderer(header2) {
|
|
38164
38584
|
return /* @__PURE__ */ jsx("div", { children: header2 });
|
|
38165
38585
|
}
|
|
38166
|
-
const defaultProps$
|
|
38586
|
+
const defaultProps$b = {
|
|
38167
38587
|
initiallyExpanded: false,
|
|
38168
38588
|
headerRenderer: defaultRenderer
|
|
38169
38589
|
};
|
|
38170
38590
|
const AccordionItemComponent = forwardRef(function AccordionItemComponent2({
|
|
38171
38591
|
id,
|
|
38172
38592
|
header: header2,
|
|
38173
|
-
headerRenderer = defaultProps$
|
|
38593
|
+
headerRenderer = defaultProps$b.headerRenderer,
|
|
38174
38594
|
content: content2,
|
|
38175
|
-
initiallyExpanded = defaultProps$
|
|
38595
|
+
initiallyExpanded = defaultProps$b.initiallyExpanded,
|
|
38176
38596
|
style: style2,
|
|
38177
38597
|
className,
|
|
38178
38598
|
...rest
|
|
@@ -38269,7 +38689,7 @@ const AccordionItemMd = createMetadata({
|
|
|
38269
38689
|
initiallyExpanded: {
|
|
38270
38690
|
description: `This property indicates if the ${COMP$q} is expanded (\`true\`) or collapsed (\`false\`).`,
|
|
38271
38691
|
valueType: "boolean",
|
|
38272
|
-
defaultValue: defaultProps$
|
|
38692
|
+
defaultValue: defaultProps$b.initiallyExpanded
|
|
38273
38693
|
}
|
|
38274
38694
|
}
|
|
38275
38695
|
});
|
|
@@ -38522,7 +38942,7 @@ function useCarouselContextValue(isTabbed) {
|
|
|
38522
38942
|
carouselContextValue
|
|
38523
38943
|
};
|
|
38524
38944
|
}
|
|
38525
|
-
const defaultProps$
|
|
38945
|
+
const defaultProps$a = {
|
|
38526
38946
|
orientation: "horizontal",
|
|
38527
38947
|
indicators: true,
|
|
38528
38948
|
autoplay: false,
|
|
@@ -38534,21 +38954,21 @@ const defaultProps$b = {
|
|
|
38534
38954
|
stopAutoplayOnInteraction: true
|
|
38535
38955
|
};
|
|
38536
38956
|
const CarouselComponent = forwardRef(function CarouselComponent2({
|
|
38537
|
-
orientation = defaultProps$
|
|
38957
|
+
orientation = defaultProps$a.orientation,
|
|
38538
38958
|
children,
|
|
38539
38959
|
style: style2,
|
|
38540
38960
|
className,
|
|
38541
|
-
indicators: indicators2 = defaultProps$
|
|
38961
|
+
indicators: indicators2 = defaultProps$a.indicators,
|
|
38542
38962
|
onDisplayDidChange = noop$1,
|
|
38543
|
-
autoplay = defaultProps$
|
|
38544
|
-
controls: controls2 = defaultProps$
|
|
38545
|
-
loop = defaultProps$
|
|
38546
|
-
startIndex = defaultProps$
|
|
38963
|
+
autoplay = defaultProps$a.autoplay,
|
|
38964
|
+
controls: controls2 = defaultProps$a.controls,
|
|
38965
|
+
loop = defaultProps$a.loop,
|
|
38966
|
+
startIndex = defaultProps$a.startIndex,
|
|
38547
38967
|
prevIcon,
|
|
38548
38968
|
nextIcon,
|
|
38549
|
-
transitionDuration = defaultProps$
|
|
38550
|
-
autoplayInterval = defaultProps$
|
|
38551
|
-
stopAutoplayOnInteraction = defaultProps$
|
|
38969
|
+
transitionDuration = defaultProps$a.transitionDuration,
|
|
38970
|
+
autoplayInterval = defaultProps$a.autoplayInterval,
|
|
38971
|
+
stopAutoplayOnInteraction = defaultProps$a.stopAutoplayOnInteraction,
|
|
38552
38972
|
registerComponentApi,
|
|
38553
38973
|
...rest
|
|
38554
38974
|
}, forwardedRef) {
|
|
@@ -38751,47 +39171,47 @@ const CarouselMd = createMetadata({
|
|
|
38751
39171
|
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.",
|
|
38752
39172
|
availableValues: orientationOptionMd,
|
|
38753
39173
|
valueType: "string",
|
|
38754
|
-
defaultValue: defaultProps$
|
|
39174
|
+
defaultValue: defaultProps$a.orientation
|
|
38755
39175
|
},
|
|
38756
39176
|
indicators: {
|
|
38757
39177
|
description: "Display the individual slides as buttons (`true`) or not (`false`).",
|
|
38758
39178
|
valueType: "boolean",
|
|
38759
|
-
defaultValue: defaultProps$
|
|
39179
|
+
defaultValue: defaultProps$a.indicators
|
|
38760
39180
|
},
|
|
38761
39181
|
controls: {
|
|
38762
39182
|
description: "Display the previous/next controls (`true`) or not (`false`).",
|
|
38763
39183
|
valueType: "boolean",
|
|
38764
|
-
defaultValue: defaultProps$
|
|
39184
|
+
defaultValue: defaultProps$a.controls
|
|
38765
39185
|
},
|
|
38766
39186
|
autoplay: {
|
|
38767
39187
|
description: "Start scrolling the carousel automatically (`true`) or not (`false`).",
|
|
38768
39188
|
valueType: "boolean",
|
|
38769
|
-
defaultValue: defaultProps$
|
|
39189
|
+
defaultValue: defaultProps$a.autoplay
|
|
38770
39190
|
},
|
|
38771
39191
|
loop: {
|
|
38772
39192
|
description: "Sets whether the carousel should loop back to the start/end when it reaches the last/first slide.",
|
|
38773
39193
|
valueType: "boolean",
|
|
38774
|
-
defaultValue: defaultProps$
|
|
39194
|
+
defaultValue: defaultProps$a.loop
|
|
38775
39195
|
},
|
|
38776
39196
|
startIndex: {
|
|
38777
39197
|
description: "The index of the first slide to display.",
|
|
38778
39198
|
valueType: "number",
|
|
38779
|
-
defaultValue: defaultProps$
|
|
39199
|
+
defaultValue: defaultProps$a.startIndex
|
|
38780
39200
|
},
|
|
38781
39201
|
transitionDuration: {
|
|
38782
39202
|
description: "The duration of the transition between slides.",
|
|
38783
39203
|
valueType: "number",
|
|
38784
|
-
defaultValue: defaultProps$
|
|
39204
|
+
defaultValue: defaultProps$a.transitionDuration
|
|
38785
39205
|
},
|
|
38786
39206
|
autoplayInterval: {
|
|
38787
39207
|
description: "Specifies the interval between autoplay transitions.",
|
|
38788
39208
|
valueType: "number",
|
|
38789
|
-
defaultValue: defaultProps$
|
|
39209
|
+
defaultValue: defaultProps$a.autoplayInterval
|
|
38790
39210
|
},
|
|
38791
39211
|
stopAutoplayOnInteraction: {
|
|
38792
39212
|
description: "This property indicates whether autoplay stops on user interaction.",
|
|
38793
39213
|
valueType: "boolean",
|
|
38794
|
-
defaultValue: defaultProps$
|
|
39214
|
+
defaultValue: defaultProps$a.stopAutoplayOnInteraction
|
|
38795
39215
|
},
|
|
38796
39216
|
prevIcon: {
|
|
38797
39217
|
description: "The icon to display for the previous control.",
|
|
@@ -38942,7 +39362,7 @@ const breakoutComponentRenderer = createComponentRenderer(
|
|
|
38942
39362
|
const COMP$l = "ToneChangerButton";
|
|
38943
39363
|
const LIGHT_TO_DARK_ICON = "lightToDark:ToneChangerButton";
|
|
38944
39364
|
const DARK_TO_LIGHT_ICON = "darkToLight:ToneChangerButton";
|
|
38945
|
-
const defaultProps$
|
|
39365
|
+
const defaultProps$9 = {
|
|
38946
39366
|
lightToDarkIcon: LIGHT_TO_DARK_ICON,
|
|
38947
39367
|
darkToLightIcon: DARK_TO_LIGHT_ICON,
|
|
38948
39368
|
onClick: noop$2
|
|
@@ -38953,11 +39373,11 @@ const ToneChangerButtonMd = createMetadata({
|
|
|
38953
39373
|
props: {
|
|
38954
39374
|
lightToDarkIcon: {
|
|
38955
39375
|
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$l} instances with the "icon.lightToDark:ToneChangerButton" declaration in the app configuration file.`,
|
|
38956
|
-
defaultValue: defaultProps$
|
|
39376
|
+
defaultValue: defaultProps$9.lightToDarkIcon
|
|
38957
39377
|
},
|
|
38958
39378
|
darkToLightIcon: {
|
|
38959
39379
|
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$l} instances with the "icon.darkToLight:ToneChangerButton" declaration in the app configuration file.`,
|
|
38960
|
-
defaultValue: defaultProps$
|
|
39380
|
+
defaultValue: defaultProps$9.darkToLightIcon
|
|
38961
39381
|
}
|
|
38962
39382
|
},
|
|
38963
39383
|
events: {
|
|
@@ -38965,9 +39385,9 @@ const ToneChangerButtonMd = createMetadata({
|
|
|
38965
39385
|
}
|
|
38966
39386
|
});
|
|
38967
39387
|
function ToneChangerButton({
|
|
38968
|
-
lightToDarkIcon = defaultProps$
|
|
38969
|
-
darkToLightIcon = defaultProps$
|
|
38970
|
-
onClick = defaultProps$
|
|
39388
|
+
lightToDarkIcon = defaultProps$9.lightToDarkIcon,
|
|
39389
|
+
darkToLightIcon = defaultProps$9.darkToLightIcon,
|
|
39390
|
+
onClick = defaultProps$9.onClick
|
|
38971
39391
|
}) {
|
|
38972
39392
|
const { activeThemeTone, setActiveThemeTone } = useThemes();
|
|
38973
39393
|
const iconName = activeThemeTone === "light" ? lightToDarkIcon : darkToLightIcon;
|
|
@@ -39099,7 +39519,7 @@ const toneSwitchComponentRenderer = createComponentRenderer(
|
|
|
39099
39519
|
);
|
|
39100
39520
|
}
|
|
39101
39521
|
);
|
|
39102
|
-
const defaultProps$
|
|
39522
|
+
const defaultProps$8 = {
|
|
39103
39523
|
method: "get"
|
|
39104
39524
|
};
|
|
39105
39525
|
function APICallNative({ registerComponentApi, node, uid }) {
|
|
@@ -39142,7 +39562,7 @@ const APICallMd = createMetadata({
|
|
|
39142
39562
|
description: "The method of data manipulation can be done via setting this property.",
|
|
39143
39563
|
valueType: "string",
|
|
39144
39564
|
availableValues: httpMethodNames,
|
|
39145
|
-
defaultValue: defaultProps$
|
|
39565
|
+
defaultValue: defaultProps$8.method
|
|
39146
39566
|
},
|
|
39147
39567
|
url: {
|
|
39148
39568
|
description: "Use this property to set the URL to which data will be sent. If not provided, an empty URL is used.",
|
|
@@ -41853,7 +42273,7 @@ const inspectButtonComponentRenderer = createComponentRenderer(
|
|
|
41853
42273
|
return /* @__PURE__ */ jsx(InspectButton, { className, children: renderChild2(node.children) });
|
|
41854
42274
|
}
|
|
41855
42275
|
);
|
|
41856
|
-
const defaultProps$
|
|
42276
|
+
const defaultProps$7 = {
|
|
41857
42277
|
allowPlaygroundPopup: true,
|
|
41858
42278
|
withFrame: true,
|
|
41859
42279
|
components: EMPTY_ARRAY
|
|
@@ -41872,7 +42292,7 @@ const NestedAppMd = createMetadata({
|
|
|
41872
42292
|
},
|
|
41873
42293
|
components: {
|
|
41874
42294
|
description: "This property defines an optional list of components to be used with the nested app.",
|
|
41875
|
-
defaultValue: defaultProps$
|
|
42295
|
+
defaultValue: defaultProps$7.components
|
|
41876
42296
|
},
|
|
41877
42297
|
config: {
|
|
41878
42298
|
description: "You can define the nested app's configuration with this property."
|
|
@@ -41971,7 +42391,7 @@ It supports both side-by-side and stacked layouts.`,
|
|
|
41971
42391
|
},
|
|
41972
42392
|
components: {
|
|
41973
42393
|
description: "This property defines an optional list of components to be used with the nested app.",
|
|
41974
|
-
defaultValue: defaultProps$
|
|
42394
|
+
defaultValue: defaultProps$7.components
|
|
41975
42395
|
},
|
|
41976
42396
|
config: {
|
|
41977
42397
|
description: "You can define the nested app's configuration with this property."
|
|
@@ -41991,12 +42411,12 @@ It supports both side-by-side and stacked layouts.`,
|
|
|
41991
42411
|
allowPlaygroundPopup: {
|
|
41992
42412
|
description: "This property defines whether the nested app can be opened in the xmlui playground.",
|
|
41993
42413
|
valueType: "boolean",
|
|
41994
|
-
defaultValue: defaultProps$
|
|
42414
|
+
defaultValue: defaultProps$7.allowPlaygroundPopup
|
|
41995
42415
|
},
|
|
41996
42416
|
withFrame: {
|
|
41997
42417
|
description: "This property defines whether the nested app should be displayed with a frame.",
|
|
41998
42418
|
valueType: "boolean",
|
|
41999
|
-
defaultValue: defaultProps$
|
|
42419
|
+
defaultValue: defaultProps$7.withFrame
|
|
42000
42420
|
}
|
|
42001
42421
|
},
|
|
42002
42422
|
themeVars: parseScssVar(styles$a.themeVars),
|
|
@@ -42193,7 +42613,7 @@ const TooltipContent = forwardRef(function({ active: active2, payload, indicator
|
|
|
42193
42613
|
return null;
|
|
42194
42614
|
});
|
|
42195
42615
|
TooltipContent.displayName = "TooltipContent";
|
|
42196
|
-
const defaultProps$
|
|
42616
|
+
const defaultProps$6 = {
|
|
42197
42617
|
hideTickX: false,
|
|
42198
42618
|
hideTickY: false,
|
|
42199
42619
|
hideX: false,
|
|
@@ -42209,18 +42629,18 @@ function AreaChart({
|
|
|
42209
42629
|
data = [],
|
|
42210
42630
|
nameKey,
|
|
42211
42631
|
dataKeys = [],
|
|
42212
|
-
hideTickX = defaultProps$
|
|
42213
|
-
hideTickY = defaultProps$
|
|
42214
|
-
hideY = defaultProps$
|
|
42215
|
-
hideX = defaultProps$
|
|
42216
|
-
hideTooltip = defaultProps$
|
|
42217
|
-
tickFormatterX = defaultProps$
|
|
42218
|
-
tickFormatterY = defaultProps$
|
|
42632
|
+
hideTickX = defaultProps$6.hideTickX,
|
|
42633
|
+
hideTickY = defaultProps$6.hideTickY,
|
|
42634
|
+
hideY = defaultProps$6.hideY,
|
|
42635
|
+
hideX = defaultProps$6.hideX,
|
|
42636
|
+
hideTooltip = defaultProps$6.hideTooltip,
|
|
42637
|
+
tickFormatterX = defaultProps$6.tickFormatterX,
|
|
42638
|
+
tickFormatterY = defaultProps$6.tickFormatterY,
|
|
42219
42639
|
className,
|
|
42220
42640
|
children,
|
|
42221
|
-
showLegend = defaultProps$
|
|
42222
|
-
stacked = defaultProps$
|
|
42223
|
-
curved = defaultProps$
|
|
42641
|
+
showLegend = defaultProps$6.showLegend,
|
|
42642
|
+
stacked = defaultProps$6.stacked,
|
|
42643
|
+
curved = defaultProps$6.curved,
|
|
42224
42644
|
tooltipRenderer
|
|
42225
42645
|
}) {
|
|
42226
42646
|
const validData = Array.isArray(data) ? data : [];
|
|
@@ -42341,42 +42761,42 @@ const AreaChartMd = createMetadata({
|
|
|
42341
42761
|
hideX: {
|
|
42342
42762
|
description: "Determines whether the X-axis should be hidden. If set to `true`, the axis will not be rendered.",
|
|
42343
42763
|
valueType: "boolean",
|
|
42344
|
-
defaultValue: defaultProps$
|
|
42764
|
+
defaultValue: defaultProps$6.hideX
|
|
42345
42765
|
},
|
|
42346
42766
|
hideY: {
|
|
42347
42767
|
description: "Determines whether the Y-axis should be hidden. If set to `true`, the axis will not be rendered.",
|
|
42348
42768
|
valueType: "boolean",
|
|
42349
|
-
defaultValue: defaultProps$
|
|
42769
|
+
defaultValue: defaultProps$6.hideY
|
|
42350
42770
|
},
|
|
42351
42771
|
hideTickX: {
|
|
42352
42772
|
description: "Determines whether the X-axis tick labels should be hidden. If set to `true`, the tick labels will not be rendered.",
|
|
42353
42773
|
valueType: "boolean",
|
|
42354
|
-
defaultValue: defaultProps$
|
|
42774
|
+
defaultValue: defaultProps$6.hideTickX
|
|
42355
42775
|
},
|
|
42356
42776
|
hideTickY: {
|
|
42357
42777
|
description: "Determines whether the Y-axis tick labels should be hidden. If set to `true`, the tick labels will not be rendered.",
|
|
42358
42778
|
valueType: "boolean",
|
|
42359
|
-
defaultValue: defaultProps$
|
|
42779
|
+
defaultValue: defaultProps$6.hideTickY
|
|
42360
42780
|
},
|
|
42361
42781
|
hideTooltip: {
|
|
42362
42782
|
description: "Determines whether the tooltip should be hidden. If set to `true`, the tooltip will not be rendered.",
|
|
42363
42783
|
valueType: "boolean",
|
|
42364
|
-
defaultValue: defaultProps$
|
|
42784
|
+
defaultValue: defaultProps$6.hideTooltip
|
|
42365
42785
|
},
|
|
42366
42786
|
showLegend: {
|
|
42367
42787
|
description: "Determines whether the legend should be shown. If set to `true`, the legend will be rendered.",
|
|
42368
42788
|
valueType: "boolean",
|
|
42369
|
-
defaultValue: defaultProps$
|
|
42789
|
+
defaultValue: defaultProps$6.showLegend
|
|
42370
42790
|
},
|
|
42371
42791
|
stacked: {
|
|
42372
42792
|
description: "Determines whether multiple areas should be stacked on top of each other. If set to `true`, areas will be stacked.",
|
|
42373
42793
|
valueType: "boolean",
|
|
42374
|
-
defaultValue: defaultProps$
|
|
42794
|
+
defaultValue: defaultProps$6.stacked
|
|
42375
42795
|
},
|
|
42376
42796
|
curved: {
|
|
42377
42797
|
description: "Determines whether the area lines should be curved (smooth) or straight. If set to `true`, lines will be curved.",
|
|
42378
42798
|
valueType: "boolean",
|
|
42379
|
-
defaultValue: defaultProps$
|
|
42799
|
+
defaultValue: defaultProps$6.curved
|
|
42380
42800
|
},
|
|
42381
42801
|
tooltipTemplate: {
|
|
42382
42802
|
description: "This property allows replacing the default template to display a tooltip."
|
|
@@ -42436,7 +42856,7 @@ const wrapper$2 = "_wrapper_il6v1_14";
|
|
|
42436
42856
|
const styles$8 = {
|
|
42437
42857
|
wrapper: wrapper$2
|
|
42438
42858
|
};
|
|
42439
|
-
const defaultProps$
|
|
42859
|
+
const defaultProps$5 = {
|
|
42440
42860
|
layout: "vertical",
|
|
42441
42861
|
stacked: false,
|
|
42442
42862
|
hideTickX: false,
|
|
@@ -42454,21 +42874,21 @@ const defaultChartParams$1 = {
|
|
|
42454
42874
|
};
|
|
42455
42875
|
function BarChart({
|
|
42456
42876
|
data = [],
|
|
42457
|
-
layout = defaultProps$
|
|
42877
|
+
layout = defaultProps$5.layout,
|
|
42458
42878
|
nameKey,
|
|
42459
|
-
stacked = defaultProps$
|
|
42879
|
+
stacked = defaultProps$5.stacked,
|
|
42460
42880
|
dataKeys = [],
|
|
42461
|
-
hideTickX = defaultProps$
|
|
42462
|
-
hideTickY = defaultProps$
|
|
42463
|
-
hideY = defaultProps$
|
|
42464
|
-
hideX = defaultProps$
|
|
42465
|
-
hideTooltip = defaultProps$
|
|
42466
|
-
tickFormatterX = defaultProps$
|
|
42467
|
-
tickFormatterY = defaultProps$
|
|
42881
|
+
hideTickX = defaultProps$5.hideTickX,
|
|
42882
|
+
hideTickY = defaultProps$5.hideTickY,
|
|
42883
|
+
hideY = defaultProps$5.hideY,
|
|
42884
|
+
hideX = defaultProps$5.hideX,
|
|
42885
|
+
hideTooltip = defaultProps$5.hideTooltip,
|
|
42886
|
+
tickFormatterX = defaultProps$5.tickFormatterX,
|
|
42887
|
+
tickFormatterY = defaultProps$5.tickFormatterY,
|
|
42468
42888
|
style: style2,
|
|
42469
42889
|
className,
|
|
42470
42890
|
children,
|
|
42471
|
-
showLegend = defaultProps$
|
|
42891
|
+
showLegend = defaultProps$5.showLegend,
|
|
42472
42892
|
tooltipRenderer
|
|
42473
42893
|
}) {
|
|
42474
42894
|
const validData = useMemo(() => Array.isArray(data) ? data : [], [data]);
|
|
@@ -42802,13 +43222,13 @@ const BarChartMd = createMetadata({
|
|
|
42802
43222
|
stacked: {
|
|
42803
43223
|
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.`,
|
|
42804
43224
|
valueType: "boolean",
|
|
42805
|
-
defaultValue: defaultProps$
|
|
43225
|
+
defaultValue: defaultProps$5.stacked
|
|
42806
43226
|
},
|
|
42807
43227
|
orientation: {
|
|
42808
43228
|
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.`,
|
|
42809
43229
|
valueType: "string",
|
|
42810
43230
|
availableValues: ["horizontal", "vertical"],
|
|
42811
|
-
defaultValue: defaultProps$
|
|
43231
|
+
defaultValue: defaultProps$5.layout
|
|
42812
43232
|
},
|
|
42813
43233
|
xKey: {
|
|
42814
43234
|
description: `This property specifies the keys in the data objects that should be used for rendering the bars.E.g. 'id' or 'key'.`,
|
|
@@ -42817,40 +43237,40 @@ const BarChartMd = createMetadata({
|
|
|
42817
43237
|
hideX: {
|
|
42818
43238
|
description: "Determines whether the X-axis should be hidden. If set to `true`, the axis will not be rendered.",
|
|
42819
43239
|
valueType: "boolean",
|
|
42820
|
-
defaultValue: defaultProps$
|
|
43240
|
+
defaultValue: defaultProps$5.hideX
|
|
42821
43241
|
},
|
|
42822
43242
|
hideY: {
|
|
42823
43243
|
description: "Determines whether the Y-axis should be hidden. If set to `true`, the axis will not be rendered.",
|
|
42824
43244
|
valueType: "boolean",
|
|
42825
|
-
defaultValue: defaultProps$
|
|
43245
|
+
defaultValue: defaultProps$5.hideY
|
|
42826
43246
|
},
|
|
42827
43247
|
hideTickX: {
|
|
42828
43248
|
description: "Controls the visibility of the X-axis ticks. If set to `true`, tick labels on the X-axis will be hidden.",
|
|
42829
43249
|
valueType: "boolean",
|
|
42830
|
-
defaultValue: defaultProps$
|
|
43250
|
+
defaultValue: defaultProps$5.hideTickX
|
|
42831
43251
|
},
|
|
42832
43252
|
hideTickY: {
|
|
42833
43253
|
description: "Controls the visibility of the Y-axis ticks. If set to `true`, tick labels on the Y-axis will be hidden.",
|
|
42834
43254
|
valueType: "boolean",
|
|
42835
|
-
defaultValue: defaultProps$
|
|
43255
|
+
defaultValue: defaultProps$5.hideTickY
|
|
42836
43256
|
},
|
|
42837
43257
|
tickFormatterX: {
|
|
42838
43258
|
description: "A function that formats the tick labels on the X-axis. ",
|
|
42839
|
-
defaultValue: JSON.stringify(defaultProps$
|
|
43259
|
+
defaultValue: JSON.stringify(defaultProps$5.tickFormatterX)
|
|
42840
43260
|
},
|
|
42841
43261
|
tickFormatterY: {
|
|
42842
43262
|
description: "A function that formats the tick labels on the Y-axis. ",
|
|
42843
|
-
defaultValue: JSON.stringify(defaultProps$
|
|
43263
|
+
defaultValue: JSON.stringify(defaultProps$5.tickFormatterY)
|
|
42844
43264
|
},
|
|
42845
43265
|
hideTooltip: {
|
|
42846
43266
|
description: "Determines whether the tooltip should be hidden. If set to `true`, tooltips will not appear on hover.",
|
|
42847
43267
|
valueType: "boolean",
|
|
42848
|
-
defaultValue: defaultProps$
|
|
43268
|
+
defaultValue: defaultProps$5.hideTooltip
|
|
42849
43269
|
},
|
|
42850
43270
|
showLegend: {
|
|
42851
43271
|
description: "Determines whether the legend should be displayed.",
|
|
42852
43272
|
valueType: "boolean",
|
|
42853
|
-
defaultValue: defaultProps$
|
|
43273
|
+
defaultValue: defaultProps$5.showLegend
|
|
42854
43274
|
},
|
|
42855
43275
|
tooltipTemplate: {
|
|
42856
43276
|
description: "This property allows replacing the default template to display a tooltip."
|
|
@@ -42903,7 +43323,7 @@ const styles$7 = {
|
|
|
42903
43323
|
themeVars: themeVars$2,
|
|
42904
43324
|
wrapper: wrapper$1
|
|
42905
43325
|
};
|
|
42906
|
-
const defaultProps$
|
|
43326
|
+
const defaultProps$4 = {
|
|
42907
43327
|
showLabel: true,
|
|
42908
43328
|
showLabelList: false,
|
|
42909
43329
|
showLegend: false,
|
|
@@ -42974,14 +43394,14 @@ function PieChart({
|
|
|
42974
43394
|
nameKey,
|
|
42975
43395
|
style: style2,
|
|
42976
43396
|
className,
|
|
42977
|
-
showLabel = defaultProps$
|
|
42978
|
-
showLabelList = defaultProps$
|
|
42979
|
-
labelListPosition = defaultProps$
|
|
42980
|
-
innerRadius = defaultProps$
|
|
43397
|
+
showLabel = defaultProps$4.showLabel,
|
|
43398
|
+
showLabelList = defaultProps$4.showLabelList,
|
|
43399
|
+
labelListPosition = defaultProps$4.labelListPosition,
|
|
43400
|
+
innerRadius = defaultProps$4.innerRadius,
|
|
42981
43401
|
children,
|
|
42982
43402
|
outerRadius,
|
|
42983
43403
|
// no default; we'll compute when undefined or "auto"
|
|
42984
|
-
showLegend = defaultProps$
|
|
43404
|
+
showLegend = defaultProps$4.showLegend
|
|
42985
43405
|
}) {
|
|
42986
43406
|
const { getThemeVar } = useTheme();
|
|
42987
43407
|
const colorValues = useMemo(() => {
|
|
@@ -43103,7 +43523,7 @@ function PieChart({
|
|
|
43103
43523
|
}
|
|
43104
43524
|
const COMP$8 = "DonutChart";
|
|
43105
43525
|
const defaultPropsDonut = {
|
|
43106
|
-
...defaultProps$
|
|
43526
|
+
...defaultProps$4,
|
|
43107
43527
|
innerRadius: 60
|
|
43108
43528
|
};
|
|
43109
43529
|
const DonutChartMd = createMetadata({
|
|
@@ -43186,10 +43606,10 @@ const styles$6 = {
|
|
|
43186
43606
|
themeVars: themeVars$1,
|
|
43187
43607
|
labelList
|
|
43188
43608
|
};
|
|
43189
|
-
const defaultProps$
|
|
43609
|
+
const defaultProps$3 = {
|
|
43190
43610
|
position: "inside"
|
|
43191
43611
|
};
|
|
43192
|
-
const LabelList = ({ position = defaultProps$
|
|
43612
|
+
const LabelList = ({ position = defaultProps$3.position, nameKey: key, style: style2, className }) => {
|
|
43193
43613
|
const { nameKey } = useChart();
|
|
43194
43614
|
const { setLabelList } = useLabelList();
|
|
43195
43615
|
const content2 = useMemo(
|
|
@@ -43247,7 +43667,7 @@ const LabelListMd = createMetadata({
|
|
|
43247
43667
|
description: "The position of the label list",
|
|
43248
43668
|
valueType: "string",
|
|
43249
43669
|
availableValues: LabelPositionValues,
|
|
43250
|
-
defaultValue: defaultProps$
|
|
43670
|
+
defaultValue: defaultProps$3.position
|
|
43251
43671
|
}
|
|
43252
43672
|
},
|
|
43253
43673
|
themeVars: parseScssVar(styles$6.themeVars),
|
|
@@ -43281,13 +43701,13 @@ const horizontalAlignmentValues = [
|
|
|
43281
43701
|
"right",
|
|
43282
43702
|
"center"
|
|
43283
43703
|
];
|
|
43284
|
-
const defaultProps$
|
|
43704
|
+
const defaultProps$2 = {
|
|
43285
43705
|
verticalAlign: "bottom",
|
|
43286
43706
|
align: "center"
|
|
43287
43707
|
};
|
|
43288
43708
|
const Legend = ({
|
|
43289
|
-
verticalAlign = defaultProps$
|
|
43290
|
-
align = defaultProps$
|
|
43709
|
+
verticalAlign = defaultProps$2.verticalAlign,
|
|
43710
|
+
align = defaultProps$2.align
|
|
43291
43711
|
}) => {
|
|
43292
43712
|
const { setLegend } = useLegend();
|
|
43293
43713
|
const content2 = useMemo(
|
|
@@ -43308,13 +43728,13 @@ const LegendMd = createMetadata({
|
|
|
43308
43728
|
description: "The alignment of the legend",
|
|
43309
43729
|
valueType: "string",
|
|
43310
43730
|
availableValues: horizontalAlignmentValues,
|
|
43311
|
-
defaultValue: defaultProps$
|
|
43731
|
+
defaultValue: defaultProps$2.align
|
|
43312
43732
|
},
|
|
43313
43733
|
verticalAlign: {
|
|
43314
43734
|
description: "The vertical alignment of the legend",
|
|
43315
43735
|
valueType: "string",
|
|
43316
43736
|
availableValues: verticalAlignmentValues,
|
|
43317
|
-
defaultValue: defaultProps$
|
|
43737
|
+
defaultValue: defaultProps$2.verticalAlign
|
|
43318
43738
|
}
|
|
43319
43739
|
}
|
|
43320
43740
|
});
|
|
@@ -43338,7 +43758,7 @@ const styles$5 = {
|
|
|
43338
43758
|
themeVars,
|
|
43339
43759
|
wrapper
|
|
43340
43760
|
};
|
|
43341
|
-
const defaultProps$
|
|
43761
|
+
const defaultProps$1 = {
|
|
43342
43762
|
hideTickX: false,
|
|
43343
43763
|
hideTickY: false,
|
|
43344
43764
|
hideX: false,
|
|
@@ -43357,15 +43777,15 @@ const LineChart = forwardRef(function LineChart2({
|
|
|
43357
43777
|
nameKey,
|
|
43358
43778
|
style: style2,
|
|
43359
43779
|
className,
|
|
43360
|
-
hideX = defaultProps$
|
|
43361
|
-
hideY = defaultProps$
|
|
43362
|
-
hideTickX = defaultProps$
|
|
43363
|
-
hideTickY = defaultProps$
|
|
43364
|
-
hideTooltip = defaultProps$
|
|
43365
|
-
tickFormatterX = defaultProps$
|
|
43366
|
-
tickFormatterY = defaultProps$
|
|
43780
|
+
hideX = defaultProps$1.hideX,
|
|
43781
|
+
hideY = defaultProps$1.hideY,
|
|
43782
|
+
hideTickX = defaultProps$1.hideTickX,
|
|
43783
|
+
hideTickY = defaultProps$1.hideTickY,
|
|
43784
|
+
hideTooltip = defaultProps$1.hideTooltip,
|
|
43785
|
+
tickFormatterX = defaultProps$1.tickFormatterX,
|
|
43786
|
+
tickFormatterY = defaultProps$1.tickFormatterY,
|
|
43367
43787
|
children,
|
|
43368
|
-
showLegend = defaultProps$
|
|
43788
|
+
showLegend = defaultProps$1.showLegend,
|
|
43369
43789
|
tooltipRenderer
|
|
43370
43790
|
}, forwardedRef) {
|
|
43371
43791
|
const { getThemeVar } = useTheme();
|
|
@@ -43595,27 +44015,27 @@ const LineChartMd = createMetadata({
|
|
|
43595
44015
|
hideX: {
|
|
43596
44016
|
description: "Determines whether the X-axis should be hidden. If set to (`true`), the axis will not be displayed.",
|
|
43597
44017
|
valueType: "boolean",
|
|
43598
|
-
defaultValue: defaultProps$
|
|
44018
|
+
defaultValue: defaultProps$1.hideX
|
|
43599
44019
|
},
|
|
43600
44020
|
hideY: {
|
|
43601
44021
|
description: "Determines whether the Y-axis should be hidden. If set to (`true`), the axis will not be displayed.",
|
|
43602
44022
|
valueType: "boolean",
|
|
43603
|
-
defaultValue: defaultProps$
|
|
44023
|
+
defaultValue: defaultProps$1.hideY
|
|
43604
44024
|
},
|
|
43605
44025
|
hideTickX: {
|
|
43606
44026
|
description: "Determines whether the X-axis ticks should be hidden. If set to (`true`), the ticks will not be displayed.",
|
|
43607
44027
|
valueType: "boolean",
|
|
43608
|
-
defaultValue: defaultProps$
|
|
44028
|
+
defaultValue: defaultProps$1.hideTickX
|
|
43609
44029
|
},
|
|
43610
44030
|
hideTickY: {
|
|
43611
44031
|
description: "Determines whether the Y-axis ticks should be hidden. If set to (`true`), the ticks will not be displayed.",
|
|
43612
44032
|
valueType: "boolean",
|
|
43613
|
-
defaultValue: defaultProps$
|
|
44033
|
+
defaultValue: defaultProps$1.hideTickY
|
|
43614
44034
|
},
|
|
43615
44035
|
hideTooltip: {
|
|
43616
44036
|
description: "Determines whether the tooltip should be hidden.If set to (`true`), no tooltip will be shown when hovering over data points.",
|
|
43617
44037
|
valueType: "boolean",
|
|
43618
|
-
defaultValue: defaultProps$
|
|
44038
|
+
defaultValue: defaultProps$1.hideTooltip
|
|
43619
44039
|
},
|
|
43620
44040
|
tickFormatterX: {
|
|
43621
44041
|
description: "A function that formats the X-axis tick labels. It receives a tick value and returns a formatted string."
|
|
@@ -43626,7 +44046,7 @@ const LineChartMd = createMetadata({
|
|
|
43626
44046
|
showLegend: {
|
|
43627
44047
|
description: "Determines whether the legend should be displayed.",
|
|
43628
44048
|
valueType: "boolean",
|
|
43629
|
-
defaultValue: defaultProps$
|
|
44049
|
+
defaultValue: defaultProps$1.showLegend
|
|
43630
44050
|
},
|
|
43631
44051
|
tooltipTemplate: {
|
|
43632
44052
|
description: "This property allows replacing the default template to display a tooltip."
|
|
@@ -43703,17 +44123,17 @@ const PieChartMd = createMetadata({
|
|
|
43703
44123
|
showLabel: {
|
|
43704
44124
|
description: "Toggles whether to show labels (`true`) or not (`false`).",
|
|
43705
44125
|
valueType: "boolean",
|
|
43706
|
-
defaultValue: defaultProps$
|
|
44126
|
+
defaultValue: defaultProps$4.showLabel
|
|
43707
44127
|
},
|
|
43708
44128
|
showLabelList: {
|
|
43709
44129
|
description: "Whether to show labels in a list (`true`) or not (`false`).",
|
|
43710
44130
|
valueType: "boolean",
|
|
43711
|
-
defaultValue: defaultProps$
|
|
44131
|
+
defaultValue: defaultProps$4.showLabelList
|
|
43712
44132
|
},
|
|
43713
44133
|
labelListPosition: {
|
|
43714
44134
|
description: "The position of the label list.",
|
|
43715
44135
|
valueType: "string",
|
|
43716
|
-
defaultValue: defaultProps$
|
|
44136
|
+
defaultValue: defaultProps$4.labelListPosition,
|
|
43717
44137
|
availableValues: LabelPositionValues
|
|
43718
44138
|
},
|
|
43719
44139
|
outerRadius: d(
|
|
@@ -43722,7 +44142,7 @@ const PieChartMd = createMetadata({
|
|
|
43722
44142
|
showLegend: {
|
|
43723
44143
|
description: "Toggles whether to show legend (`true`) or not (`false`).",
|
|
43724
44144
|
valueType: "boolean",
|
|
43725
|
-
defaultValue: defaultProps$
|
|
44145
|
+
defaultValue: defaultProps$4.showLegend
|
|
43726
44146
|
}
|
|
43727
44147
|
},
|
|
43728
44148
|
themeVars: parseScssVar(styles$7.themeVars),
|
|
@@ -43751,7 +44171,7 @@ const pieChartComponentRenderer = createComponentRenderer(
|
|
|
43751
44171
|
);
|
|
43752
44172
|
}
|
|
43753
44173
|
);
|
|
43754
|
-
const defaultProps
|
|
44174
|
+
const defaultProps = {
|
|
43755
44175
|
hideGrid: false,
|
|
43756
44176
|
hideAngleAxis: false,
|
|
43757
44177
|
hideRadiusAxis: false,
|
|
@@ -43765,16 +44185,16 @@ function RadarChart({
|
|
|
43765
44185
|
data = [],
|
|
43766
44186
|
nameKey,
|
|
43767
44187
|
dataKeys = [],
|
|
43768
|
-
hideGrid = defaultProps
|
|
43769
|
-
hideAngleAxis = defaultProps
|
|
43770
|
-
hideRadiusAxis = defaultProps
|
|
43771
|
-
hideTooltip = defaultProps
|
|
44188
|
+
hideGrid = defaultProps.hideGrid,
|
|
44189
|
+
hideAngleAxis = defaultProps.hideAngleAxis,
|
|
44190
|
+
hideRadiusAxis = defaultProps.hideRadiusAxis,
|
|
44191
|
+
hideTooltip = defaultProps.hideTooltip,
|
|
43772
44192
|
className,
|
|
43773
44193
|
children,
|
|
43774
|
-
showLegend = defaultProps
|
|
43775
|
-
filled = defaultProps
|
|
43776
|
-
strokeWidth = defaultProps
|
|
43777
|
-
fillOpacity = defaultProps
|
|
44194
|
+
showLegend = defaultProps.showLegend,
|
|
44195
|
+
filled = defaultProps.filled,
|
|
44196
|
+
strokeWidth = defaultProps.strokeWidth,
|
|
44197
|
+
fillOpacity = defaultProps.fillOpacity,
|
|
43778
44198
|
tooltipRenderer
|
|
43779
44199
|
}) {
|
|
43780
44200
|
const validData = Array.isArray(data) ? data : [];
|
|
@@ -43897,42 +44317,42 @@ const RadarChartMd = createMetadata({
|
|
|
43897
44317
|
hideGrid: {
|
|
43898
44318
|
description: "Determines whether the polar grid should be hidden. If set to `true`, the grid will not be rendered.",
|
|
43899
44319
|
valueType: "boolean",
|
|
43900
|
-
defaultValue: defaultProps
|
|
44320
|
+
defaultValue: defaultProps.hideGrid
|
|
43901
44321
|
},
|
|
43902
44322
|
hideAngleAxis: {
|
|
43903
44323
|
description: "Determines whether the angle axis should be hidden. If set to `true`, the angle axis will not be rendered.",
|
|
43904
44324
|
valueType: "boolean",
|
|
43905
|
-
defaultValue: defaultProps
|
|
44325
|
+
defaultValue: defaultProps.hideAngleAxis
|
|
43906
44326
|
},
|
|
43907
44327
|
hideRadiusAxis: {
|
|
43908
44328
|
description: "Determines whether the radius axis should be hidden. If set to `true`, the radius axis will not be rendered.",
|
|
43909
44329
|
valueType: "boolean",
|
|
43910
|
-
defaultValue: defaultProps
|
|
44330
|
+
defaultValue: defaultProps.hideRadiusAxis
|
|
43911
44331
|
},
|
|
43912
44332
|
hideTooltip: {
|
|
43913
44333
|
description: "Determines whether the tooltip should be hidden. If set to `true`, the tooltip will not be rendered.",
|
|
43914
44334
|
valueType: "boolean",
|
|
43915
|
-
defaultValue: defaultProps
|
|
44335
|
+
defaultValue: defaultProps.hideTooltip
|
|
43916
44336
|
},
|
|
43917
44337
|
showLegend: {
|
|
43918
44338
|
description: "Determines whether the legend should be shown. If set to `true`, the legend will be rendered.",
|
|
43919
44339
|
valueType: "boolean",
|
|
43920
|
-
defaultValue: defaultProps
|
|
44340
|
+
defaultValue: defaultProps.showLegend
|
|
43921
44341
|
},
|
|
43922
44342
|
filled: {
|
|
43923
44343
|
description: "Determines whether the radar areas should be filled. If set to `true`, areas will be filled with color.",
|
|
43924
44344
|
valueType: "boolean",
|
|
43925
|
-
defaultValue: defaultProps
|
|
44345
|
+
defaultValue: defaultProps.filled
|
|
43926
44346
|
},
|
|
43927
44347
|
strokeWidth: {
|
|
43928
44348
|
description: "Sets the stroke width for the radar lines. Higher values create thicker lines.",
|
|
43929
44349
|
valueType: "number",
|
|
43930
|
-
defaultValue: defaultProps
|
|
44350
|
+
defaultValue: defaultProps.strokeWidth
|
|
43931
44351
|
},
|
|
43932
44352
|
fillOpacity: {
|
|
43933
44353
|
description: "Sets the fill opacity for the radar areas when filled is true. Value between 0 and 1.",
|
|
43934
44354
|
valueType: "number",
|
|
43935
|
-
defaultValue: defaultProps
|
|
44355
|
+
defaultValue: defaultProps.fillOpacity
|
|
43936
44356
|
},
|
|
43937
44357
|
tooltipTemplate: {
|
|
43938
44358
|
description: "This property allows replacing the default template to display a tooltip."
|
|
@@ -44313,7 +44733,7 @@ class ComponentRegistry {
|
|
|
44313
44733
|
* about component registrations
|
|
44314
44734
|
*/
|
|
44315
44735
|
constructor(contributes = {}, extensionManager) {
|
|
44316
|
-
var _a2, _b, _c;
|
|
44736
|
+
var _a2, _b, _c, _d;
|
|
44317
44737
|
this.extensionManager = extensionManager;
|
|
44318
44738
|
this.pool = /* @__PURE__ */ new Map();
|
|
44319
44739
|
this.namePool = /* @__PURE__ */ new Map();
|
|
@@ -44321,6 +44741,7 @@ class ComponentRegistry {
|
|
|
44321
44741
|
this.defaultThemeVars = {};
|
|
44322
44742
|
this.actionFns = /* @__PURE__ */ new Map();
|
|
44323
44743
|
this.loaders = /* @__PURE__ */ new Map();
|
|
44744
|
+
this.behaviors = [];
|
|
44324
44745
|
this.extensionRegistered = (extension) => {
|
|
44325
44746
|
var _a3;
|
|
44326
44747
|
(_a3 = extension.components) == null ? void 0 : _a3.forEach((c) => {
|
|
@@ -44809,7 +45230,13 @@ class ComponentRegistry {
|
|
|
44809
45230
|
this.registerLoaderRenderer(externalDataLoaderRenderer);
|
|
44810
45231
|
this.registerLoaderRenderer(mockLoaderRenderer);
|
|
44811
45232
|
this.registerLoaderRenderer(dataLoaderRenderer);
|
|
44812
|
-
|
|
45233
|
+
this.registerBehavior(tooltipBehavior);
|
|
45234
|
+
this.registerBehavior(animationBehavior);
|
|
45235
|
+
this.registerBehavior(labelBehavior);
|
|
45236
|
+
(_c = contributes.behaviors) == null ? void 0 : _c.forEach((behavior) => {
|
|
45237
|
+
this.registerBehavior(behavior);
|
|
45238
|
+
});
|
|
45239
|
+
(_d = this.extensionManager) == null ? void 0 : _d.subscribeToRegistrations(this.extensionRegistered);
|
|
44813
45240
|
}
|
|
44814
45241
|
/**
|
|
44815
45242
|
* All theme variables used by the registered components.
|
|
@@ -44916,6 +45343,22 @@ class ComponentRegistry {
|
|
|
44916
45343
|
registerActionFn({ actionName: functionName, actionFn }) {
|
|
44917
45344
|
this.actionFns.set(functionName, actionFn);
|
|
44918
45345
|
}
|
|
45346
|
+
// --- Registers a behavior
|
|
45347
|
+
registerBehavior(behavior, location = "after", position) {
|
|
45348
|
+
if (position) {
|
|
45349
|
+
const targetIndex = this.behaviors.findIndex((b) => b.name === position);
|
|
45350
|
+
if (targetIndex !== -1) {
|
|
45351
|
+
const insertIndex = location === "before" ? targetIndex : targetIndex + 1;
|
|
45352
|
+
this.behaviors.splice(insertIndex, 0, behavior);
|
|
45353
|
+
return;
|
|
45354
|
+
}
|
|
45355
|
+
}
|
|
45356
|
+
this.behaviors.push(behavior);
|
|
45357
|
+
}
|
|
45358
|
+
// --- Returns all registered behaviors
|
|
45359
|
+
getBehaviors() {
|
|
45360
|
+
return this.behaviors;
|
|
45361
|
+
}
|
|
44919
45362
|
}
|
|
44920
45363
|
function ComponentProvider({
|
|
44921
45364
|
children,
|
|
@@ -45798,7 +46241,7 @@ function IconProvider({ children }) {
|
|
|
45798
46241
|
/* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
|
|
45799
46242
|
] });
|
|
45800
46243
|
}
|
|
45801
|
-
const version = "0.10.
|
|
46244
|
+
const version = "0.10.22";
|
|
45802
46245
|
const miscellaneousUtils = {
|
|
45803
46246
|
capitalize,
|
|
45804
46247
|
pluralize: pluralize$1,
|
|
@@ -49005,308 +49448,6 @@ function InvalidComponent({ errors = EMPTY_ARRAY, node, children }) {
|
|
|
49005
49448
|
children
|
|
49006
49449
|
] });
|
|
49007
49450
|
}
|
|
49008
|
-
const AnimatedComponent = animated(
|
|
49009
|
-
forwardRef(function InlineComponentDef(props, ref) {
|
|
49010
|
-
const { children, ...rest } = props;
|
|
49011
|
-
if (!React__default.isValidElement(children)) {
|
|
49012
|
-
return children;
|
|
49013
|
-
}
|
|
49014
|
-
return React__default.cloneElement(children, { ...rest, ref });
|
|
49015
|
-
})
|
|
49016
|
-
);
|
|
49017
|
-
const defaultProps = {
|
|
49018
|
-
delay: 0,
|
|
49019
|
-
animateWhenInView: false,
|
|
49020
|
-
reverse: false,
|
|
49021
|
-
loop: false,
|
|
49022
|
-
once: false
|
|
49023
|
-
};
|
|
49024
|
-
const parseAnimation = (animation) => {
|
|
49025
|
-
if (typeof animation === "object") {
|
|
49026
|
-
return animation;
|
|
49027
|
-
}
|
|
49028
|
-
const presetAnimations = {
|
|
49029
|
-
fadein: {
|
|
49030
|
-
from: { opacity: 0 },
|
|
49031
|
-
to: { opacity: 1 }
|
|
49032
|
-
},
|
|
49033
|
-
fadeout: {
|
|
49034
|
-
from: { opacity: 1 },
|
|
49035
|
-
to: { opacity: 0 }
|
|
49036
|
-
},
|
|
49037
|
-
slidein: {
|
|
49038
|
-
from: { transform: "translateX(-100%)" },
|
|
49039
|
-
to: { transform: "translateX(0%)" }
|
|
49040
|
-
},
|
|
49041
|
-
slideout: {
|
|
49042
|
-
from: { transform: "translateX(0%)" },
|
|
49043
|
-
to: { transform: "translateX(100%)" }
|
|
49044
|
-
},
|
|
49045
|
-
popin: {
|
|
49046
|
-
from: { transform: "scale(0.8)", opacity: 0 },
|
|
49047
|
-
to: { transform: "scale(1)", opacity: 1 }
|
|
49048
|
-
},
|
|
49049
|
-
popout: {
|
|
49050
|
-
from: { transform: "scale(1)", opacity: 1 },
|
|
49051
|
-
to: { transform: "scale(0.8)", opacity: 0 }
|
|
49052
|
-
},
|
|
49053
|
-
flipin: {
|
|
49054
|
-
from: { transform: "rotateY(90deg)", opacity: 0 },
|
|
49055
|
-
to: { transform: "rotateY(0deg)", opacity: 1 }
|
|
49056
|
-
},
|
|
49057
|
-
flipout: {
|
|
49058
|
-
from: { transform: "rotateY(0deg)", opacity: 1 },
|
|
49059
|
-
to: { transform: "rotateY(90deg)", opacity: 0 }
|
|
49060
|
-
},
|
|
49061
|
-
rotatein: {
|
|
49062
|
-
from: { transform: "rotate(-180deg)", opacity: 0 },
|
|
49063
|
-
to: { transform: "rotate(0deg)", opacity: 1 }
|
|
49064
|
-
},
|
|
49065
|
-
rotateout: {
|
|
49066
|
-
from: { transform: "rotate(0deg)", opacity: 1 },
|
|
49067
|
-
to: { transform: "rotate(180deg)", opacity: 0 }
|
|
49068
|
-
},
|
|
49069
|
-
zoomin: {
|
|
49070
|
-
from: { transform: "scale(0)", opacity: 0 },
|
|
49071
|
-
to: { transform: "scale(1)", opacity: 1 }
|
|
49072
|
-
},
|
|
49073
|
-
zoomout: {
|
|
49074
|
-
from: { transform: "scale(1)", opacity: 1 },
|
|
49075
|
-
to: { transform: "scale(0)", opacity: 0 }
|
|
49076
|
-
}
|
|
49077
|
-
};
|
|
49078
|
-
return presetAnimations[animation] || { from: {}, to: {} };
|
|
49079
|
-
};
|
|
49080
|
-
function parseAnimationOptionValue(name, value) {
|
|
49081
|
-
switch (name) {
|
|
49082
|
-
case "duration":
|
|
49083
|
-
case "delay":
|
|
49084
|
-
const num = parseInt(value, 10);
|
|
49085
|
-
return isNaN(num) ? void 0 : num;
|
|
49086
|
-
case "animateWhenInView":
|
|
49087
|
-
case "reverse":
|
|
49088
|
-
case "loop":
|
|
49089
|
-
case "once":
|
|
49090
|
-
const lowerVal = value.toLowerCase();
|
|
49091
|
-
if (lowerVal === "true" || lowerVal === "1" || lowerVal === "yes") return true;
|
|
49092
|
-
if (lowerVal === "false" || lowerVal === "0" || lowerVal === "no") return false;
|
|
49093
|
-
return void 0;
|
|
49094
|
-
default:
|
|
49095
|
-
return void 0;
|
|
49096
|
-
}
|
|
49097
|
-
}
|
|
49098
|
-
function parseAnimationOptions(input2) {
|
|
49099
|
-
if (isPlainObject(input2)) {
|
|
49100
|
-
return input2;
|
|
49101
|
-
}
|
|
49102
|
-
if (typeof input2 === "string") {
|
|
49103
|
-
const options2 = {};
|
|
49104
|
-
const values = input2.split(";").map((value) => value.trim()).filter((value) => value.length > 0);
|
|
49105
|
-
for (const value of values) {
|
|
49106
|
-
if (value.includes(":")) {
|
|
49107
|
-
const [name, val] = value.split(":").map((part) => part.trim());
|
|
49108
|
-
if (name && val) {
|
|
49109
|
-
const parsedValue = parseAnimationOptionValue(name, val);
|
|
49110
|
-
if (parsedValue !== void 0) {
|
|
49111
|
-
options2[name] = parsedValue;
|
|
49112
|
-
}
|
|
49113
|
-
}
|
|
49114
|
-
} else {
|
|
49115
|
-
const booleanOptions = ["animateWhenInView", "reverse", "loop", "once"];
|
|
49116
|
-
if (booleanOptions.includes(value)) {
|
|
49117
|
-
options2[value] = true;
|
|
49118
|
-
} else if (value.startsWith("!") && value.length > 1) {
|
|
49119
|
-
const optionName = value.substring(1);
|
|
49120
|
-
if (booleanOptions.includes(optionName)) {
|
|
49121
|
-
options2[optionName] = false;
|
|
49122
|
-
}
|
|
49123
|
-
}
|
|
49124
|
-
}
|
|
49125
|
-
}
|
|
49126
|
-
return options2;
|
|
49127
|
-
}
|
|
49128
|
-
return {};
|
|
49129
|
-
}
|
|
49130
|
-
const Animation$1 = forwardRef(function Animation2({
|
|
49131
|
-
children,
|
|
49132
|
-
registerComponentApi,
|
|
49133
|
-
animation,
|
|
49134
|
-
duration,
|
|
49135
|
-
onStop,
|
|
49136
|
-
onStart,
|
|
49137
|
-
delay: delay2 = defaultProps.delay,
|
|
49138
|
-
animateWhenInView = defaultProps.animateWhenInView,
|
|
49139
|
-
reverse: reverse2 = defaultProps.reverse,
|
|
49140
|
-
loop = defaultProps.loop,
|
|
49141
|
-
once = defaultProps.once,
|
|
49142
|
-
...rest
|
|
49143
|
-
}, forwardedRef) {
|
|
49144
|
-
const [_animation] = useState(animation);
|
|
49145
|
-
const [toggle, setToggle] = useState(false);
|
|
49146
|
-
const [reset, setReset] = useState(false);
|
|
49147
|
-
const [count, setCount] = useState(0);
|
|
49148
|
-
const times = 1;
|
|
49149
|
-
useId();
|
|
49150
|
-
const animationSettings = useMemo(
|
|
49151
|
-
() => ({
|
|
49152
|
-
from: _animation.from,
|
|
49153
|
-
to: _animation.to,
|
|
49154
|
-
config: {
|
|
49155
|
-
..._animation.config,
|
|
49156
|
-
duration
|
|
49157
|
-
},
|
|
49158
|
-
delay: delay2,
|
|
49159
|
-
loop,
|
|
49160
|
-
reset,
|
|
49161
|
-
reverse: toggle,
|
|
49162
|
-
onRest: () => {
|
|
49163
|
-
onStop == null ? void 0 : onStop();
|
|
49164
|
-
if (loop) {
|
|
49165
|
-
if (reverse2) {
|
|
49166
|
-
setCount(count + 1);
|
|
49167
|
-
setToggle(!toggle);
|
|
49168
|
-
}
|
|
49169
|
-
setReset(true);
|
|
49170
|
-
} else {
|
|
49171
|
-
if (reverse2 && count < times) {
|
|
49172
|
-
setCount(count + 1);
|
|
49173
|
-
setToggle(!toggle);
|
|
49174
|
-
}
|
|
49175
|
-
}
|
|
49176
|
-
},
|
|
49177
|
-
onStart: () => {
|
|
49178
|
-
onStart == null ? void 0 : onStart();
|
|
49179
|
-
}
|
|
49180
|
-
}),
|
|
49181
|
-
[
|
|
49182
|
-
_animation.config,
|
|
49183
|
-
_animation.from,
|
|
49184
|
-
_animation.to,
|
|
49185
|
-
count,
|
|
49186
|
-
delay2,
|
|
49187
|
-
duration,
|
|
49188
|
-
loop,
|
|
49189
|
-
onStart,
|
|
49190
|
-
onStop,
|
|
49191
|
-
reset,
|
|
49192
|
-
once,
|
|
49193
|
-
reverse2,
|
|
49194
|
-
toggle
|
|
49195
|
-
]
|
|
49196
|
-
);
|
|
49197
|
-
const [springs, api] = useSpring(
|
|
49198
|
-
() => ({
|
|
49199
|
-
...animationSettings
|
|
49200
|
-
}),
|
|
49201
|
-
[animationSettings]
|
|
49202
|
-
);
|
|
49203
|
-
const [ref, animationStyles] = useInView(() => animationSettings, {
|
|
49204
|
-
once
|
|
49205
|
-
});
|
|
49206
|
-
const composedRef = ref ? composeRefs(ref, forwardedRef) : forwardedRef;
|
|
49207
|
-
const startAnimation = useCallback(() => {
|
|
49208
|
-
void api.start(_animation);
|
|
49209
|
-
return () => {
|
|
49210
|
-
api.stop();
|
|
49211
|
-
};
|
|
49212
|
-
}, [_animation, api]);
|
|
49213
|
-
const stopAnimation = useCallback(() => {
|
|
49214
|
-
api.stop();
|
|
49215
|
-
}, [api]);
|
|
49216
|
-
useEffect(() => {
|
|
49217
|
-
registerComponentApi == null ? void 0 : registerComponentApi({
|
|
49218
|
-
start: startAnimation,
|
|
49219
|
-
stop: stopAnimation
|
|
49220
|
-
});
|
|
49221
|
-
}, [registerComponentApi, startAnimation, stopAnimation]);
|
|
49222
|
-
const content2 = useMemo(() => {
|
|
49223
|
-
return Children.map(
|
|
49224
|
-
children,
|
|
49225
|
-
(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)
|
|
49226
|
-
);
|
|
49227
|
-
}, [animateWhenInView, animationStyles, children, springs, rest, composedRef, forwardedRef]);
|
|
49228
|
-
return content2;
|
|
49229
|
-
});
|
|
49230
|
-
const tooltipBehavior = {
|
|
49231
|
-
name: "tooltip",
|
|
49232
|
-
canAttach: (node) => {
|
|
49233
|
-
var _a2, _b;
|
|
49234
|
-
const tooltipText = (_a2 = node.props) == null ? void 0 : _a2.tooltip;
|
|
49235
|
-
const tooltipMarkdown = (_b = node.props) == null ? void 0 : _b.tooltipMarkdown;
|
|
49236
|
-
return !!tooltipText || !!tooltipMarkdown;
|
|
49237
|
-
},
|
|
49238
|
-
attach: (context, node) => {
|
|
49239
|
-
var _a2, _b, _c;
|
|
49240
|
-
const { extractValue } = context;
|
|
49241
|
-
const tooltipText = extractValue((_a2 = context.node.props) == null ? void 0 : _a2.tooltip, true);
|
|
49242
|
-
const tooltipMarkdown = extractValue((_b = context.node.props) == null ? void 0 : _b.tooltipMarkdown, true);
|
|
49243
|
-
const tooltipOptions = extractValue((_c = context.node.props) == null ? void 0 : _c.tooltipOptions, true);
|
|
49244
|
-
const parsedOptions = parseTooltipOptions(tooltipOptions);
|
|
49245
|
-
return /* @__PURE__ */ jsx(Tooltip, { text: tooltipText, markdown: tooltipMarkdown, ...parsedOptions, children: node });
|
|
49246
|
-
}
|
|
49247
|
-
};
|
|
49248
|
-
const animationBehavior = {
|
|
49249
|
-
name: "animation",
|
|
49250
|
-
canAttach: (node) => {
|
|
49251
|
-
var _a2;
|
|
49252
|
-
return !!((_a2 = node.props) == null ? void 0 : _a2.animation);
|
|
49253
|
-
},
|
|
49254
|
-
attach: (context, node) => {
|
|
49255
|
-
var _a2, _b;
|
|
49256
|
-
const { extractValue } = context;
|
|
49257
|
-
const animation = extractValue((_a2 = context.node.props) == null ? void 0 : _a2.animation, true);
|
|
49258
|
-
const animationOptions = extractValue((_b = context.node.props) == null ? void 0 : _b.animationOptions, true);
|
|
49259
|
-
const parsedOptions = parseAnimationOptions(animationOptions);
|
|
49260
|
-
return /* @__PURE__ */ jsx(Animation$1, { animation: parseAnimation(animation), ...parsedOptions, children: context.node.type === "ModalDialog" ? cloneElement(node, {
|
|
49261
|
-
externalAnimation: true
|
|
49262
|
-
}) : node });
|
|
49263
|
-
}
|
|
49264
|
-
};
|
|
49265
|
-
const labelBehavior = {
|
|
49266
|
-
name: "label",
|
|
49267
|
-
canAttach: (node, metadata) => {
|
|
49268
|
-
var _a2, _b;
|
|
49269
|
-
if ((_a2 = metadata == null ? void 0 : metadata.props) == null ? void 0 : _a2.label) {
|
|
49270
|
-
return false;
|
|
49271
|
-
} else if (!((_b = node.props) == null ? void 0 : _b.label)) {
|
|
49272
|
-
return false;
|
|
49273
|
-
}
|
|
49274
|
-
return true;
|
|
49275
|
-
},
|
|
49276
|
-
attach: (context, node) => {
|
|
49277
|
-
var _a2;
|
|
49278
|
-
const { extractValue, node: componentNode, className } = context;
|
|
49279
|
-
const label2 = extractValue.asOptionalString(componentNode.props.label);
|
|
49280
|
-
const labelPosition = extractValue(componentNode.props.labelPosition);
|
|
49281
|
-
const labelWidth = extractValue.asOptionalString(componentNode.props.labelWidth);
|
|
49282
|
-
const labelBreak2 = extractValue.asOptionalBoolean(componentNode.props.labelBreak);
|
|
49283
|
-
const required2 = extractValue.asOptionalBoolean(componentNode.props.required);
|
|
49284
|
-
const enabled2 = extractValue.asOptionalBoolean(componentNode.props.enabled, true);
|
|
49285
|
-
const shrinkToLabel2 = extractValue.asOptionalBoolean(componentNode.props.shrinkToLabel);
|
|
49286
|
-
const style2 = extractValue(componentNode.props.style);
|
|
49287
|
-
const readOnly2 = extractValue.asOptionalBoolean(componentNode.props.readOnly);
|
|
49288
|
-
return /* @__PURE__ */ jsx(
|
|
49289
|
-
ItemWithLabel,
|
|
49290
|
-
{
|
|
49291
|
-
labelPosition,
|
|
49292
|
-
label: label2,
|
|
49293
|
-
labelWidth,
|
|
49294
|
-
labelBreak: labelBreak2,
|
|
49295
|
-
required: required2,
|
|
49296
|
-
enabled: enabled2,
|
|
49297
|
-
style: style2,
|
|
49298
|
-
className,
|
|
49299
|
-
shrinkToLabel: shrinkToLabel2,
|
|
49300
|
-
labelStyle: { pointerEvents: readOnly2 ? "none" : void 0 },
|
|
49301
|
-
isInputTemplateUsed: !!((_a2 = componentNode.props) == null ? void 0 : _a2.inputTemplate),
|
|
49302
|
-
children: node
|
|
49303
|
-
}
|
|
49304
|
-
);
|
|
49305
|
-
}
|
|
49306
|
-
};
|
|
49307
|
-
const getCoreBehaviors = () => {
|
|
49308
|
-
return [tooltipBehavior, animationBehavior, labelBehavior];
|
|
49309
|
-
};
|
|
49310
49451
|
const ComponentAdapter = forwardRef(function ComponentAdapter2({
|
|
49311
49452
|
node,
|
|
49312
49453
|
state,
|
|
@@ -49465,7 +49606,7 @@ const ComponentAdapter = forwardRef(function ComponentAdapter2({
|
|
|
49465
49606
|
}
|
|
49466
49607
|
renderedNode = renderer(rendererContext);
|
|
49467
49608
|
}
|
|
49468
|
-
const behaviors =
|
|
49609
|
+
const behaviors = componentRegistry.getBehaviors();
|
|
49469
49610
|
if (!isCompoundComponent) {
|
|
49470
49611
|
for (const behavior of behaviors) {
|
|
49471
49612
|
if (behavior.canAttach(rendererContext.node, descriptor)) {
|