xmlui 0.10.13 → 0.10.15
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-Db5iQkFp.mjs → index-axjeT2uJ.mjs} +1626 -1080
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-B9LtmFJG.mjs → initMock-BoTWMs19.mjs} +1 -1
- package/dist/lib/language-server-web-worker.mjs +1 -1
- package/dist/lib/language-server.mjs +1 -1
- package/dist/lib/{metadata-utils-D90qqMGc.mjs → metadata-utils-CtY0QcvH.mjs} +2 -1
- package/dist/lib/{server-common-lmBDLpUh.mjs → server-common-Cine5nRR.mjs} +1 -1
- package/dist/lib/xmlui.d.ts +99 -6
- package/dist/lib/xmlui.mjs +78 -42
- package/dist/metadata/{collectedComponentMetadata-BN8eg9Gr.mjs → collectedComponentMetadata-CQywuPDB.mjs} +17448 -16984
- package/dist/metadata/{initMock-J7pN8owj.mjs → initMock-Bi5kF5Af.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/bin/build-lib.js +21 -13
- package/dist/scripts/bin/viteConfig.js +3 -1
- package/dist/scripts/package.json +2 -3
- package/dist/scripts/src/abstractions/scripting/Token.js +2 -0
- package/dist/scripts/src/abstractions/scripting/TryScope.js +2 -0
- package/dist/scripts/src/abstractions/scripting/modules.js +2 -0
- package/dist/scripts/src/components/APICall/APICall.spec.js +910 -0
- package/dist/scripts/src/components/Accordion/Accordion.spec.js +969 -0
- package/dist/scripts/src/components/Animation/Animation.js +50 -0
- package/dist/scripts/src/components/App/App.spec.js +219 -0
- package/dist/scripts/src/components/AppHeader/AppHeader.spec.js +169 -0
- package/dist/scripts/src/components/AppState/AppState.js +32 -2
- package/dist/scripts/src/components/AppState/AppState.spec.js +268 -0
- package/dist/scripts/src/components/AppState/AppStateNative.js +27 -3
- package/dist/scripts/src/components/AutoComplete/AutoComplete.spec.js +383 -0
- package/dist/scripts/src/components/Avatar/Avatar.spec.js +1543 -0
- package/dist/scripts/src/components/Backdrop/Backdrop.spec.js +131 -0
- package/dist/scripts/src/components/Badge/Badge.spec.js +2214 -0
- package/dist/scripts/src/components/Bookmark/Bookmark.spec.js +230 -0
- package/dist/scripts/src/components/Breakout/Breakout.spec.js +56 -0
- package/dist/scripts/src/components/Button/Button-style.spec.js +274 -0
- package/dist/scripts/src/components/Button/Button.js +5 -1
- package/dist/scripts/src/components/Button/Button.spec.js +454 -0
- package/dist/scripts/src/components/Card/Card.spec.js +150 -0
- package/dist/scripts/src/components/Carousel/Carousel.spec.js +343 -0
- package/dist/scripts/src/components/Carousel/CarouselNative.js +2 -2
- package/dist/scripts/src/components/ChangeListener/ChangeListener.spec.js +169 -0
- package/dist/scripts/src/components/Charts/AreaChart/AreaChart.spec.js +999 -0
- package/dist/scripts/src/components/Charts/BarChart/BarChart.spec.js +597 -0
- package/dist/scripts/src/components/Charts/DonutChart/DonutChart.spec.js +608 -0
- package/dist/scripts/src/components/Charts/LabelList/LabelList.spec.js +539 -0
- package/dist/scripts/src/components/Charts/Legend/Legend.spec.js +558 -0
- package/dist/scripts/src/components/Charts/LineChart/LineChart.spec.js +450 -0
- package/dist/scripts/src/components/Charts/PieChart/PieChart.spec.js +584 -0
- package/dist/scripts/src/components/Charts/PieChart/PieChartNative.js +41 -2
- package/dist/scripts/src/components/Charts/RadarChart/RadarChart.spec.js +571 -0
- package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.spec.js +449 -0
- package/dist/scripts/src/components/Checkbox/Checkbox.spec.js +964 -0
- package/dist/scripts/src/components/CodeBlock/CodeBlock.spec.js +196 -0
- package/dist/scripts/src/components/ColorPicker/ColorPicker.spec.js +283 -0
- package/dist/scripts/src/components/ColorPicker/ColorPickerNative.js +9 -26
- package/dist/scripts/src/components/Column/doc-resources/list-component-data.js +53 -0
- package/dist/scripts/src/components/ComponentProvider.js +6 -2
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.spec.js +338 -0
- package/dist/scripts/src/components/DateInput/DateInput.spec.js +918 -0
- package/dist/scripts/src/components/DatePicker/DatePicker.spec.js +362 -0
- package/dist/scripts/src/components/DatePicker/DatePickerNative.js +3 -3
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.spec.js +331 -0
- package/dist/scripts/src/components/DropdownMenu/DropdownMenuNative.js +7 -9
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.spec.js +29 -0
- package/dist/scripts/src/components/ExpandableItem/ExpandableItem.spec.js +435 -0
- package/dist/scripts/src/components/FileInput/FileInput.spec.js +249 -0
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.spec.js +296 -0
- package/dist/scripts/src/components/FlowLayout/FlowLayout.spec.js +518 -0
- package/dist/scripts/src/components/Footer/Footer.spec.js +991 -0
- package/dist/scripts/src/components/Form/Form.spec.js +1257 -0
- package/dist/scripts/src/components/FormItem/FormItem.spec.js +723 -0
- package/dist/scripts/src/components/FormItem/ItemWithLabel.js +3 -3
- package/dist/scripts/src/components/FormSection/FormSection.js +6 -31
- package/dist/scripts/src/components/Fragment/Fragment.spec.js +50 -0
- package/dist/scripts/src/components/Heading/H1.spec.js +66 -0
- package/dist/scripts/src/components/Heading/H2.spec.js +66 -0
- package/dist/scripts/src/components/Heading/H3.spec.js +66 -0
- package/dist/scripts/src/components/Heading/H4.spec.js +66 -0
- package/dist/scripts/src/components/Heading/H5.spec.js +66 -0
- package/dist/scripts/src/components/Heading/H6.spec.js +66 -0
- package/dist/scripts/src/components/Heading/Heading.spec.js +897 -0
- package/dist/scripts/src/components/HtmlTags/HtmlTags.spec.js +69 -0
- package/dist/scripts/src/components/IFrame/IFrame.spec.js +527 -0
- package/dist/scripts/src/components/Icon/ArrowDropDown.js +11 -0
- package/dist/scripts/src/components/Icon/ArrowDropUp.js +11 -0
- package/dist/scripts/src/components/Icon/ArrowLeft.js +11 -0
- package/dist/scripts/src/components/Icon/ArrowRight.js +11 -0
- package/dist/scripts/src/components/Icon/ChevronDownIcon.js +7 -0
- package/dist/scripts/src/components/Icon/ChevronUpIcon.js +7 -0
- package/dist/scripts/src/components/Icon/Icon.spec.js +527 -0
- package/dist/scripts/src/components/Icon/SunIcon.js +10 -0
- package/dist/scripts/src/components/Image/Image.js +2 -1
- package/dist/scripts/src/components/Image/Image.spec.js +198 -0
- package/dist/scripts/src/components/Image/ImageNative.js +30 -2
- package/dist/scripts/src/components/Input/InputLabel.js +25 -0
- package/dist/scripts/src/components/Input/index.js +5 -0
- package/dist/scripts/src/components/Items/Items.spec.js +397 -0
- package/dist/scripts/src/components/Link/Link.spec.js +894 -0
- package/dist/scripts/src/components/List/List.spec.js +927 -0
- package/dist/scripts/src/components/List/doc-resources/list-component-data.js +53 -0
- package/dist/scripts/src/components/Markdown/Markdown.spec.js +188 -0
- package/dist/scripts/src/components/ModalDialog/ModalDialog.spec.js +162 -0
- package/dist/scripts/src/components/NavGroup/NavGroup.spec.js +212 -0
- package/dist/scripts/src/components/NavGroup/NavGroupNative.js +15 -7
- package/dist/scripts/src/components/NavLink/NavLink.spec.js +864 -0
- package/dist/scripts/src/components/NavPanel/NavPanel.spec.js +864 -0
- package/dist/scripts/src/components/NoResult/NoResult.spec.js +863 -0
- package/dist/scripts/src/components/NumberBox/NumberBox.spec.js +1237 -0
- package/dist/scripts/src/components/Option/Option.spec.js +472 -0
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.spec.js +80 -0
- package/dist/scripts/src/components/Pagination/Pagination.spec.js +1003 -0
- package/dist/scripts/src/components/ProfileMenu/ProfileMenu.js +20 -0
- package/dist/scripts/src/components/ProgressBar/ProgressBar.spec.js +166 -0
- package/dist/scripts/src/components/Queue/Queue.spec.js +626 -0
- package/dist/scripts/src/components/RadioGroup/RadioGroup.spec.js +479 -0
- package/dist/scripts/src/components/Redirect/Redirect.spec.js +527 -0
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.spec.js +76 -0
- package/dist/scripts/src/components/Select/Select.spec.js +527 -0
- package/dist/scripts/src/components/SelectionStore/SelectionStoreNative.js +3 -1
- package/dist/scripts/src/components/Slider/Slider.js +2 -0
- package/dist/scripts/src/components/Slider/Slider.spec.js +574 -0
- package/dist/scripts/src/components/Slider/SliderNative.js +63 -26
- package/dist/scripts/src/components/Slot/Slot.spec.js +368 -0
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.spec.js +184 -0
- package/dist/scripts/src/components/Spinner/Spinner.spec.js +161 -0
- package/dist/scripts/src/components/Splitter/HSplitter.spec.js +104 -0
- package/dist/scripts/src/components/Splitter/Splitter.spec.js +543 -0
- package/dist/scripts/src/components/Splitter/VSplitter.spec.js +104 -0
- package/dist/scripts/src/components/Stack/CHStack.spec.js +86 -0
- package/dist/scripts/src/components/Stack/CVStack.spec.js +86 -0
- package/dist/scripts/src/components/Stack/HStack.spec.js +67 -0
- package/dist/scripts/src/components/Stack/Stack.spec.js +654 -0
- package/dist/scripts/src/components/Stack/VStack.spec.js +67 -0
- package/dist/scripts/src/components/Switch/Switch.spec.js +829 -0
- package/dist/scripts/src/components/Table/Table.js +7 -1
- package/dist/scripts/src/components/Table/Table.spec.js +555 -0
- package/dist/scripts/src/components/Table/TableNative.js +4 -1
- package/dist/scripts/src/components/Table/doc-resources/list-component-data.js +53 -0
- package/dist/scripts/src/components/Table/useRowSelection.js +215 -1
- package/dist/scripts/src/components/TableOfContents/TableOfContents.spec.js +838 -0
- package/dist/scripts/src/components/Tabs/Tabs.spec.js +875 -0
- package/dist/scripts/src/components/Text/Text.spec.js +1075 -0
- package/dist/scripts/src/components/TextArea/TextArea.spec.js +714 -0
- package/dist/scripts/src/components/TextBox/TextBox.js +1 -5
- package/dist/scripts/src/components/TextBox/TextBox.spec.js +687 -0
- package/dist/scripts/src/components/TextBox/TextBoxNative.js +10 -15
- package/dist/scripts/src/components/Theme/Theme.spec.js +124 -0
- package/dist/scripts/src/components/Theme/ThemeNative.js +2 -6
- package/dist/scripts/src/components/TimeInput/TimeInput.js +1 -5
- package/dist/scripts/src/components/TimeInput/TimeInput.spec.js +1122 -0
- package/dist/scripts/src/components/TimeInput/TimeInputNative.js +2 -9
- package/dist/scripts/src/components/Timer/Timer.spec.js +358 -0
- package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.spec.js +414 -0
- package/dist/scripts/src/components/ToneSwitch/ToneSwitch.spec.js +89 -0
- package/dist/scripts/src/components/Tooltip/Tooltip.spec.js +418 -0
- package/dist/scripts/src/components/chart-color-schemes.js +43 -0
- package/dist/scripts/src/components-core/ApiBoundComponent.js +38 -24
- package/dist/scripts/src/components-core/CompoundComponent.js +1 -1
- package/dist/scripts/src/components-core/RestApiProxy.js +84 -8
- package/dist/scripts/src/components-core/behaviors/BehaviorContext.js +54 -0
- package/dist/scripts/src/components-core/behaviors/CoreBehaviors.js +80 -0
- package/dist/scripts/src/components-core/descriptorHelper.js +1 -0
- package/dist/scripts/src/components-core/devtools/InspectorDialogVisibilityContext.js +8 -0
- package/dist/scripts/src/components-core/parts.js +4 -1
- package/dist/scripts/src/components-core/renderers.js +31 -0
- package/dist/scripts/src/components-core/rendering/AppRoot.js +2 -1
- package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +31 -46
- package/dist/scripts/src/components-core/rendering/nodeUtils.js +6 -0
- package/dist/scripts/src/components-core/script-runner/simplify-expression.js +386 -0
- package/dist/scripts/src/components-core/theming/component-layout-resolver.js +153 -0
- package/dist/scripts/src/components-core/theming/layout-resolver.js +2 -0
- package/dist/scripts/src/components-core/theming/parse-layout-props.js +98 -0
- package/dist/scripts/src/components-core/theming/themes/solid.js +16 -0
- package/dist/scripts/src/components-core/utils/audio-utils.js +83 -0
- package/dist/scripts/src/index-standalone.js +61 -0
- package/dist/scripts/src/index.js +39 -1
- package/dist/scripts/src/language-server/server-common.js +151 -0
- package/dist/scripts/src/language-server/server-web-worker.js +47 -0
- package/dist/scripts/src/language-server/server.js +42 -0
- package/dist/scripts/src/language-server/services/common/docs-generation.js +73 -0
- package/dist/scripts/src/language-server/services/common/lsp-utils.js +9 -0
- package/dist/scripts/src/language-server/services/common/syntax-node-utilities.js +135 -0
- package/dist/scripts/src/language-server/services/completion.js +270 -0
- package/dist/scripts/src/language-server/services/diagnostic.js +19 -0
- package/dist/scripts/src/language-server/services/format.js +430 -0
- package/dist/scripts/src/language-server/services/hover.js +164 -0
- package/dist/scripts/src/language-server/xmlui-metadata-generated.mjs +16266 -0
- package/dist/scripts/src/logging/xmlui.js +21 -0
- package/dist/scripts/src/parsers/common/utils.js +19 -0
- package/dist/scripts/src/syntax/monaco/grammar.monacoLanguage.js +286 -0
- package/dist/scripts/src/syntax/monaco/index.js +14 -0
- package/dist/scripts/src/syntax/monaco/xmlui-dark.js +25 -0
- package/dist/scripts/src/syntax/monaco/xmlui-light.js +25 -0
- package/dist/scripts/src/syntax/monaco/xmluiscript.monacoLanguage.js +310 -0
- package/dist/scripts/src/syntax/textMate/index.js +14 -0
- package/dist/scripts/src/syntax/textMate/xmlui-dark.json +631 -0
- package/dist/scripts/src/syntax/textMate/xmlui-light.json +565 -0
- package/dist/scripts/src/syntax/textMate/xmlui.json +564 -0
- package/dist/scripts/src/syntax/textMate/xmlui.tmLanguage.json +341 -0
- package/dist/scripts/src/testing/ComponentDrivers.js +1327 -0
- package/dist/scripts/src/testing/assertions.js +444 -0
- package/dist/scripts/src/testing/component-test-helpers.js +389 -0
- package/dist/scripts/src/testing/drivers/DateInputDriver.js +19 -0
- package/dist/scripts/src/testing/drivers/ModalDialogDriver.js +10 -0
- package/dist/scripts/src/testing/drivers/NumberBoxDriver.js +44 -0
- package/dist/scripts/src/testing/drivers/SliderDriver.js +20 -0
- package/dist/scripts/src/testing/drivers/TextBoxDriver.js +20 -0
- package/dist/scripts/src/testing/drivers/TimeInputDriver.js +22 -0
- package/dist/scripts/src/testing/drivers/TimerDriver.js +64 -0
- package/dist/scripts/src/testing/fixtures.js +513 -0
- package/dist/scripts/src/testing/infrastructure/TestBed.js +17 -0
- package/dist/scripts/src/testing/infrastructure/main.js +9 -0
- package/dist/scripts/src/testing/infrastructure/public/mockServiceWorker.js +266 -0
- package/dist/scripts/src/testing/themed-app-test-helpers.js +139 -0
- package/dist/standalone/xmlui-standalone.es.d.ts +172 -10
- package/dist/standalone/xmlui-standalone.umd.js +36 -36
- package/package.json +2 -3
|
@@ -7,9 +7,9 @@ import require$$0, { flushSync, createPortal } from "react-dom";
|
|
|
7
7
|
import yaml from "js-yaml";
|
|
8
8
|
import { useQuery, useInfiniteQuery, QueryClientProvider, QueryClient } from "@tanstack/react-query";
|
|
9
9
|
import produce, { createDraft, finishDraft, enableMapSet } from "immer";
|
|
10
|
-
import { throttle, get, isNil, omitBy, isUndefined, noop as noop$2, isPlainObject, isEqual, isEmpty, union, uniq, orderBy as orderBy$1, isObject, isArray, groupBy, sortBy, omit, isNumber, isString as isString$1, set, cloneDeep, merge, defaultTo, capitalize, unset, setWith, keyBy, pick } from "lodash-es";
|
|
10
|
+
import { throttle, get, isNil, omitBy, isUndefined, noop as noop$2, isPlainObject, isEqual, isEmpty, union, uniq, orderBy as orderBy$1, isObject, isArray, groupBy, sortBy, omit, isNumber, isString as isString$1, set, isNaN as isNaN$1, cloneDeep, merge, defaultTo, capitalize, unset, setWith, keyBy, pick } from "lodash-es";
|
|
11
11
|
import { formatDistanceToNow, parse, format, parseISO, isValid, isToday, isYesterday, isTomorrow, isThisWeek, formatRelative, isThisYear, isSameDay, differenceInMinutes } from "date-fns";
|
|
12
|
-
import { l as labelPositionMd,
|
|
12
|
+
import { l as labelPositionMd, o as orientationOptionMd, v as validationStatusMd, b as alignmentOptionValues, i as isSizeType, L as LinkTargetMd, c as alignmentOptionMd, d as iconPositionMd, e as buttonTypesMd, s as sizeMd, f as buttonThemeMd, g as buttonVariantMd, h as layoutOptionKeys, T as TextVariantElement, V as VariantPropsKeys, j as variantOptionsMd, k as scrollAnchoringValues, m as buttonThemeNames, n as iconPositionNames, p as buttonVariantNames, t as triggerPositionNames, q as httpMethodNames, r as orientationOptionValues, u as viewportSizeNames, M as MetadataProvider } from "./metadata-utils-CtY0QcvH.mjs";
|
|
13
13
|
import classnames from "classnames";
|
|
14
14
|
import Color from "color";
|
|
15
15
|
import * as ReactDropdownMenu from "@radix-ui/react-dropdown-menu";
|
|
@@ -238,6 +238,26 @@ function createLoaderRenderer(type, renderer, hints) {
|
|
|
238
238
|
hints
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
|
+
function createUserDefinedComponentRenderer(metadata, def, codeBehind) {
|
|
242
|
+
const component2 = def.component.component;
|
|
243
|
+
if (codeBehind) {
|
|
244
|
+
if (codeBehind.vars) {
|
|
245
|
+
component2.vars ?? (component2.vars = {});
|
|
246
|
+
component2.vars = { ...component2.vars, ...codeBehind.vars };
|
|
247
|
+
}
|
|
248
|
+
if (codeBehind.functions) {
|
|
249
|
+
component2.functions ?? (component2.functions = {});
|
|
250
|
+
component2.functions = {
|
|
251
|
+
...component2.functions,
|
|
252
|
+
...codeBehind.functions
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
return {
|
|
257
|
+
compoundComponentDef: def.component,
|
|
258
|
+
metadata
|
|
259
|
+
};
|
|
260
|
+
}
|
|
241
261
|
let lastIdValue = 1;
|
|
242
262
|
function generatedId() {
|
|
243
263
|
return `$qid_${lastIdValue++}`;
|
|
@@ -844,6 +864,7 @@ const defaultProps$1f = {
|
|
|
844
864
|
const numberRegex = /^[0-9]+$/;
|
|
845
865
|
const ItemWithLabel = forwardRef(function ItemWithLabel2({
|
|
846
866
|
id,
|
|
867
|
+
testId,
|
|
847
868
|
labelPosition = "top",
|
|
848
869
|
style: style2 = {},
|
|
849
870
|
className,
|
|
@@ -882,7 +903,7 @@ const ItemWithLabel = forwardRef(function ItemWithLabel2({
|
|
|
882
903
|
}
|
|
883
904
|
);
|
|
884
905
|
}
|
|
885
|
-
return /* @__PURE__ */ jsxs("div", { ...rest, ref, style: style2, className: classnames(className, styles$1k.itemWithLabel), children: [
|
|
906
|
+
return /* @__PURE__ */ jsxs("div", { ...rest, "data-testid": testId, ref, style: style2, className: classnames(className, styles$1k.itemWithLabel), children: [
|
|
886
907
|
/* @__PURE__ */ jsxs(
|
|
887
908
|
"div",
|
|
888
909
|
{
|
|
@@ -926,7 +947,7 @@ const ItemWithLabel = forwardRef(function ItemWithLabel2({
|
|
|
926
947
|
]
|
|
927
948
|
}
|
|
928
949
|
),
|
|
929
|
-
/* @__PURE__ */ jsx(Slot, { "data-part-id": PART_LABELED_ITEM, id: !isInputTemplateUsed ? inputId : void 0, children })
|
|
950
|
+
/* @__PURE__ */ jsx(Slot, { "data-part-id": PART_LABELED_ITEM, id: !isInputTemplateUsed ? inputId : void 0, "data-testid": void 0, children })
|
|
930
951
|
]
|
|
931
952
|
}
|
|
932
953
|
),
|
|
@@ -1037,6 +1058,11 @@ function dValidationStatus(value) {
|
|
|
1037
1058
|
defaultValue: value ?? "none"
|
|
1038
1059
|
};
|
|
1039
1060
|
}
|
|
1061
|
+
function dValueApi() {
|
|
1062
|
+
return {
|
|
1063
|
+
description: `You can query this read-only API property to query the component's current value (\`true\`: checked, \`false\`: unchecked).`
|
|
1064
|
+
};
|
|
1065
|
+
}
|
|
1040
1066
|
function dSetValueApi() {
|
|
1041
1067
|
return {
|
|
1042
1068
|
description: `You can use this method to set the component's current value programmatically (\`true\`: checked, \`false\`: unchecked).`
|
|
@@ -1091,11 +1117,41 @@ function dEndIcon() {
|
|
|
1091
1117
|
valueType: "string"
|
|
1092
1118
|
};
|
|
1093
1119
|
}
|
|
1120
|
+
function dExpanded(comp) {
|
|
1121
|
+
return {
|
|
1122
|
+
description: `This property indicates if the ${comp} is expanded (\`true\`) or collapsed (\`false\`).`
|
|
1123
|
+
};
|
|
1124
|
+
}
|
|
1125
|
+
function dExpand(comp) {
|
|
1126
|
+
return {
|
|
1127
|
+
description: `This method expands the ${comp}.`
|
|
1128
|
+
};
|
|
1129
|
+
}
|
|
1130
|
+
function dCollapse(comp) {
|
|
1131
|
+
return {
|
|
1132
|
+
description: `This method collapses the ${comp}.`
|
|
1133
|
+
};
|
|
1134
|
+
}
|
|
1094
1135
|
function dFocus(comp) {
|
|
1095
1136
|
return {
|
|
1096
1137
|
description: `This method sets the focus on the ${comp}.`
|
|
1097
1138
|
};
|
|
1098
1139
|
}
|
|
1140
|
+
function dValue() {
|
|
1141
|
+
return {
|
|
1142
|
+
description: `You can query the component's value. If no value is set, it will retrieve \`undefined\`.`
|
|
1143
|
+
};
|
|
1144
|
+
}
|
|
1145
|
+
function dDidOpen(comp) {
|
|
1146
|
+
return {
|
|
1147
|
+
description: `This event is triggered when the ${comp} has been displayed. The event handler has a single boolean argument set to \`true\`, indicating that the user opened the component.`
|
|
1148
|
+
};
|
|
1149
|
+
}
|
|
1150
|
+
function dDidClose(comp) {
|
|
1151
|
+
return {
|
|
1152
|
+
description: `This event is triggered when the ${comp} has been closed. The event handler has a single boolean argument set to \`true\`, indicating that the user closed the component.`
|
|
1153
|
+
};
|
|
1154
|
+
}
|
|
1099
1155
|
function dTriggerTemplate(comp) {
|
|
1100
1156
|
return {
|
|
1101
1157
|
description: `This property allows you to define a custom trigger instead of the default one provided by \`${comp}\`.`,
|
|
@@ -1432,7 +1488,7 @@ const Stack = forwardRef(function Stack2({
|
|
|
1432
1488
|
}
|
|
1433
1489
|
);
|
|
1434
1490
|
});
|
|
1435
|
-
const COMP$
|
|
1491
|
+
const COMP$1w = "Stack";
|
|
1436
1492
|
const HORIZONTAL_ALIGNMENT = {
|
|
1437
1493
|
description: "Manages the horizontal content alignment for each child element in the Stack.",
|
|
1438
1494
|
availableValues: alignmentOptionValues,
|
|
@@ -1482,7 +1538,7 @@ const stackMd = createMetadata({
|
|
|
1482
1538
|
}
|
|
1483
1539
|
},
|
|
1484
1540
|
events: {
|
|
1485
|
-
click: dClick(COMP$
|
|
1541
|
+
click: dClick(COMP$1w),
|
|
1486
1542
|
mounted: dInternal("Reserved for future use")
|
|
1487
1543
|
},
|
|
1488
1544
|
themeVars: parseScssVar(styles$1l.themeVars)
|
|
@@ -1495,7 +1551,7 @@ const StackMd = {
|
|
|
1495
1551
|
};
|
|
1496
1552
|
const VStackMd = {
|
|
1497
1553
|
...StackMd,
|
|
1498
|
-
specializedFrom: COMP$
|
|
1554
|
+
specializedFrom: COMP$1w,
|
|
1499
1555
|
description: `This component represents a stack rendering its contents vertically.`,
|
|
1500
1556
|
props: {
|
|
1501
1557
|
...stackMd.props
|
|
@@ -1503,7 +1559,7 @@ const VStackMd = {
|
|
|
1503
1559
|
};
|
|
1504
1560
|
const HStackMd = {
|
|
1505
1561
|
...StackMd,
|
|
1506
|
-
specializedFrom: COMP$
|
|
1562
|
+
specializedFrom: COMP$1w,
|
|
1507
1563
|
description: `This component represents a stack rendering its contents horizontally.`,
|
|
1508
1564
|
props: {
|
|
1509
1565
|
...stackMd.props
|
|
@@ -1511,12 +1567,12 @@ const HStackMd = {
|
|
|
1511
1567
|
};
|
|
1512
1568
|
const CVStackMd = {
|
|
1513
1569
|
...StackMd,
|
|
1514
|
-
specializedFrom: COMP$
|
|
1570
|
+
specializedFrom: COMP$1w,
|
|
1515
1571
|
description: `This component represents a stack that renders its contents vertically and aligns that in the center along both axes.`
|
|
1516
1572
|
};
|
|
1517
1573
|
const CHStackMd = {
|
|
1518
1574
|
...StackMd,
|
|
1519
|
-
specializedFrom: COMP$
|
|
1575
|
+
specializedFrom: COMP$1w,
|
|
1520
1576
|
description: `This component represents a stack that renders its contents horizontally and aligns that in the center along both axes.`
|
|
1521
1577
|
};
|
|
1522
1578
|
function renderStack({
|
|
@@ -1552,7 +1608,7 @@ function renderStack({
|
|
|
1552
1608
|
);
|
|
1553
1609
|
}
|
|
1554
1610
|
const stackComponentRenderer = createComponentRenderer(
|
|
1555
|
-
COMP$
|
|
1611
|
+
COMP$1w,
|
|
1556
1612
|
StackMd,
|
|
1557
1613
|
({ node, extractValue, renderChild: renderChild2, className, lookupEventHandler }) => {
|
|
1558
1614
|
var _a2, _b, _c;
|
|
@@ -3403,16 +3459,18 @@ const MenuItem = forwardRef(function MenuItem2({
|
|
|
3403
3459
|
}
|
|
3404
3460
|
);
|
|
3405
3461
|
});
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
/* @__PURE__ */
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
}
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3462
|
+
const SubMenuItem = forwardRef(
|
|
3463
|
+
function SubMenuItem2({ children, label: label2, triggerTemplate }, ref) {
|
|
3464
|
+
const { root: root2 } = useTheme();
|
|
3465
|
+
return /* @__PURE__ */ jsxs(ReactDropdownMenu.Sub, { children: [
|
|
3466
|
+
/* @__PURE__ */ jsx(ReactDropdownMenu.SubTrigger, { className: styles$1h.DropdownMenuSubTrigger, asChild: true, ref, children: triggerTemplate ? triggerTemplate : /* @__PURE__ */ jsx("div", { children: label2 }) }),
|
|
3467
|
+
/* @__PURE__ */ jsx(ReactDropdownMenu.Portal, { container: root2, children: /* @__PURE__ */ jsx(ReactDropdownMenu.SubContent, { className: styles$1h.DropdownMenuSubContent, children }) })
|
|
3468
|
+
] });
|
|
3469
|
+
}
|
|
3470
|
+
);
|
|
3471
|
+
const MenuSeparator = forwardRef(function MenuSeparator2(props, ref) {
|
|
3472
|
+
return /* @__PURE__ */ jsx(ReactDropdownMenu.Separator, { ref, className: styles$1h.DropdownMenuSeparator, ...props });
|
|
3473
|
+
});
|
|
3416
3474
|
const ResponsiveBarDropdown = ({
|
|
3417
3475
|
overflowIcon,
|
|
3418
3476
|
children,
|
|
@@ -3709,11 +3767,11 @@ const ResponsiveBar = forwardRef(function ResponsiveBar2({
|
|
|
3709
3767
|
}
|
|
3710
3768
|
);
|
|
3711
3769
|
});
|
|
3712
|
-
const COMP$
|
|
3770
|
+
const COMP$1v = "ResponsiveBar";
|
|
3713
3771
|
const ResponsiveBarMd = createMetadata({
|
|
3714
3772
|
status: "stable",
|
|
3715
3773
|
description: "`ResponsiveBar` is a layout container that automatically manages child component overflow by moving items that don't fit into a dropdown menu. It supports both horizontal and vertical orientations and provides a space-efficient way to display navigation items, toolbar buttons, or other components that need to adapt to varying container dimensions while maintaining full functionality.",
|
|
3716
|
-
docFolder: COMP$
|
|
3774
|
+
docFolder: COMP$1v,
|
|
3717
3775
|
props: {
|
|
3718
3776
|
orientation: {
|
|
3719
3777
|
description: "Layout direction of the responsive bar. In horizontal mode, items are arranged left-to-right and overflow is based on container width. In vertical mode, items are arranged top-to-bottom and overflow is based on container height.",
|
|
@@ -3733,20 +3791,20 @@ const ResponsiveBarMd = createMetadata({
|
|
|
3733
3791
|
}
|
|
3734
3792
|
},
|
|
3735
3793
|
events: {
|
|
3736
|
-
click: dClick(COMP$
|
|
3794
|
+
click: dClick(COMP$1v)
|
|
3737
3795
|
},
|
|
3738
3796
|
apis: {},
|
|
3739
3797
|
contextVars: {},
|
|
3740
3798
|
themeVars: parseScssVar(styles$1i.themeVars),
|
|
3741
3799
|
limitThemeVarsToComponent: true,
|
|
3742
3800
|
defaultThemeVars: {
|
|
3743
|
-
[`backgroundColor-${COMP$
|
|
3744
|
-
[`padding-${COMP$
|
|
3745
|
-
[`margin-${COMP$
|
|
3801
|
+
[`backgroundColor-${COMP$1v}`]: "transparent",
|
|
3802
|
+
[`padding-${COMP$1v}`]: "0",
|
|
3803
|
+
[`margin-${COMP$1v}`]: "0"
|
|
3746
3804
|
}
|
|
3747
3805
|
});
|
|
3748
3806
|
const responsiveBarComponentRenderer = createComponentRenderer(
|
|
3749
|
-
COMP$
|
|
3807
|
+
COMP$1v,
|
|
3750
3808
|
ResponsiveBarMd,
|
|
3751
3809
|
({ node, extractValue, renderChild: renderChild2, className, lookupEventHandler }) => {
|
|
3752
3810
|
var _a2, _b, _c;
|
|
@@ -3770,13 +3828,13 @@ const styles$1e = {
|
|
|
3770
3828
|
spacer
|
|
3771
3829
|
};
|
|
3772
3830
|
const SpaceFiller = () => /* @__PURE__ */ jsx("div", { className: styles$1e.spacer });
|
|
3773
|
-
const COMP$
|
|
3831
|
+
const COMP$1u = "SpaceFiller";
|
|
3774
3832
|
const SpaceFillerMd = createMetadata({
|
|
3775
3833
|
status: "stable",
|
|
3776
3834
|
description: "`SpaceFiller` works well in layout containers to fill remaining (unused) space. Its behavior depends on the layout container in which it is used.",
|
|
3777
3835
|
themeVars: parseScssVar(styles$1e.themeVars)
|
|
3778
3836
|
});
|
|
3779
|
-
const spaceFillerComponentRenderer = createComponentRenderer(COMP$
|
|
3837
|
+
const spaceFillerComponentRenderer = createComponentRenderer(COMP$1u, SpaceFillerMd, () => /* @__PURE__ */ jsx(SpaceFiller, {}));
|
|
3780
3838
|
const themeVars$U = `'{"padding-TextArea": "var(--xmlui-padding-TextArea)", "paddingHorizontal-TextArea": "var(--xmlui-paddingHorizontal-TextArea, var(--xmlui-padding-TextArea))", "paddingVertical-TextArea": "var(--xmlui-paddingVertical-TextArea, var(--xmlui-padding-TextArea))", "paddingLeft-TextArea": "var(--xmlui-paddingLeft-TextArea, var(--xmlui-paddingHorizontal-TextArea, var(--xmlui-padding-TextArea)))", "paddingRight-TextArea": "var(--xmlui-paddingRight-TextArea, var(--xmlui-paddingHorizontal-TextArea, var(--xmlui-padding-TextArea)))", "paddingTop-TextArea": "var(--xmlui-paddingTop-TextArea, var(--xmlui-paddingVertical-TextArea, var(--xmlui-padding-TextArea)))", "paddingBottom-TextArea": "var(--xmlui-paddingBottom-TextArea, var(--xmlui-paddingVertical-TextArea, var(--xmlui-padding-TextArea)))", "Input:borderRadius-TextArea-default": "var(--xmlui-borderRadius-TextArea-default)", "Input:borderColor-TextArea-default": "var(--xmlui-borderColor-TextArea-default)", "Input:borderWidth-TextArea-default": "var(--xmlui-borderWidth-TextArea-default)", "Input:borderStyle-TextArea-default": "var(--xmlui-borderStyle-TextArea-default)", "Input:fontSize-TextArea-default": "var(--xmlui-fontSize-TextArea-default)", "Input:backgroundColor-TextArea-default": "var(--xmlui-backgroundColor-TextArea-default)", "Input:boxShadow-TextArea-default": "var(--xmlui-boxShadow-TextArea-default)", "Input:textColor-TextArea-default": "var(--xmlui-textColor-TextArea-default)", "Input:borderColor-TextArea-default--hover": "var(--xmlui-borderColor-TextArea-default--hover)", "Input:backgroundColor-TextArea-default--hover": "var(--xmlui-backgroundColor-TextArea-default--hover)", "Input:boxShadow-TextArea-default--hover": "var(--xmlui-boxShadow-TextArea-default--hover)", "Input:textColor-TextArea-default--hover": "var(--xmlui-textColor-TextArea-default--hover)", "Input:borderColor-TextArea-default--focus": "var(--xmlui-borderColor-TextArea-default--focus)", "Input:backgroundColor-TextArea-default--focus": "var(--xmlui-backgroundColor-TextArea-default--focus)", "Input:boxShadow-TextArea-default--focus": "var(--xmlui-boxShadow-TextArea-default--focus)", "Input:textColor-TextArea-default--focus": "var(--xmlui-textColor-TextArea-default--focus)", "Input:outlineWidth-TextArea-default--focus": "var(--xmlui-outlineWidth-TextArea-default--focus)", "Input:outlineColor-TextArea-default--focus": "var(--xmlui-outlineColor-TextArea-default--focus)", "Input:outlineStyle-TextArea-default--focus": "var(--xmlui-outlineStyle-TextArea-default--focus)", "Input:outlineOffset-TextArea-default--focus": "var(--xmlui-outlineOffset-TextArea-default--focus)", "Input:textColor-placeholder-TextArea-default": "var(--xmlui-textColor-placeholder-TextArea-default)", "Input:fontSize-placeholder-TextArea-default": "var(--xmlui-fontSize-placeholder-TextArea-default)", "Input:borderRadius-TextArea-error": "var(--xmlui-borderRadius-TextArea-error)", "Input:borderColor-TextArea-error": "var(--xmlui-borderColor-TextArea-error)", "Input:borderWidth-TextArea-error": "var(--xmlui-borderWidth-TextArea-error)", "Input:borderStyle-TextArea-error": "var(--xmlui-borderStyle-TextArea-error)", "Input:fontSize-TextArea-error": "var(--xmlui-fontSize-TextArea-error)", "Input:backgroundColor-TextArea-error": "var(--xmlui-backgroundColor-TextArea-error)", "Input:boxShadow-TextArea-error": "var(--xmlui-boxShadow-TextArea-error)", "Input:textColor-TextArea-error": "var(--xmlui-textColor-TextArea-error)", "Input:borderColor-TextArea-error--hover": "var(--xmlui-borderColor-TextArea-error--hover)", "Input:backgroundColor-TextArea-error--hover": "var(--xmlui-backgroundColor-TextArea-error--hover)", "Input:boxShadow-TextArea-error--hover": "var(--xmlui-boxShadow-TextArea-error--hover)", "Input:textColor-TextArea-error--hover": "var(--xmlui-textColor-TextArea-error--hover)", "Input:borderColor-TextArea-error--focus": "var(--xmlui-borderColor-TextArea-error--focus)", "Input:backgroundColor-TextArea-error--focus": "var(--xmlui-backgroundColor-TextArea-error--focus)", "Input:boxShadow-TextArea-error--focus": "var(--xmlui-boxShadow-TextArea-error--focus)", "Input:textColor-TextArea-error--focus": "var(--xmlui-textColor-TextArea-error--focus)", "Input:outlineWidth-TextArea-error--focus": "var(--xmlui-outlineWidth-TextArea-error--focus)", "Input:outlineColor-TextArea-error--focus": "var(--xmlui-outlineColor-TextArea-error--focus)", "Input:outlineStyle-TextArea-error--focus": "var(--xmlui-outlineStyle-TextArea-error--focus)", "Input:outlineOffset-TextArea-error--focus": "var(--xmlui-outlineOffset-TextArea-error--focus)", "Input:textColor-placeholder-TextArea-error": "var(--xmlui-textColor-placeholder-TextArea-error)", "Input:fontSize-placeholder-TextArea-error": "var(--xmlui-fontSize-placeholder-TextArea-error)", "Input:borderRadius-TextArea-warning": "var(--xmlui-borderRadius-TextArea-warning)", "Input:borderColor-TextArea-warning": "var(--xmlui-borderColor-TextArea-warning)", "Input:borderWidth-TextArea-warning": "var(--xmlui-borderWidth-TextArea-warning)", "Input:borderStyle-TextArea-warning": "var(--xmlui-borderStyle-TextArea-warning)", "Input:fontSize-TextArea-warning": "var(--xmlui-fontSize-TextArea-warning)", "Input:backgroundColor-TextArea-warning": "var(--xmlui-backgroundColor-TextArea-warning)", "Input:boxShadow-TextArea-warning": "var(--xmlui-boxShadow-TextArea-warning)", "Input:textColor-TextArea-warning": "var(--xmlui-textColor-TextArea-warning)", "Input:borderColor-TextArea-warning--hover": "var(--xmlui-borderColor-TextArea-warning--hover)", "Input:backgroundColor-TextArea-warning--hover": "var(--xmlui-backgroundColor-TextArea-warning--hover)", "Input:boxShadow-TextArea-warning--hover": "var(--xmlui-boxShadow-TextArea-warning--hover)", "Input:textColor-TextArea-warning--hover": "var(--xmlui-textColor-TextArea-warning--hover)", "Input:borderColor-TextArea-warning--focus": "var(--xmlui-borderColor-TextArea-warning--focus)", "Input:backgroundColor-TextArea-warning--focus": "var(--xmlui-backgroundColor-TextArea-warning--focus)", "Input:boxShadow-TextArea-warning--focus": "var(--xmlui-boxShadow-TextArea-warning--focus)", "Input:textColor-TextArea-warning--focus": "var(--xmlui-textColor-TextArea-warning--focus)", "Input:outlineWidth-TextArea-warning--focus": "var(--xmlui-outlineWidth-TextArea-warning--focus)", "Input:outlineColor-TextArea-warning--focus": "var(--xmlui-outlineColor-TextArea-warning--focus)", "Input:outlineStyle-TextArea-warning--focus": "var(--xmlui-outlineStyle-TextArea-warning--focus)", "Input:outlineOffset-TextArea-warning--focus": "var(--xmlui-outlineOffset-TextArea-warning--focus)", "Input:textColor-placeholder-TextArea-warning": "var(--xmlui-textColor-placeholder-TextArea-warning)", "Input:fontSize-placeholder-TextArea-warning": "var(--xmlui-fontSize-placeholder-TextArea-warning)", "Input:borderRadius-TextArea-success": "var(--xmlui-borderRadius-TextArea-success)", "Input:borderColor-TextArea-success": "var(--xmlui-borderColor-TextArea-success)", "Input:borderWidth-TextArea-success": "var(--xmlui-borderWidth-TextArea-success)", "Input:borderStyle-TextArea-success": "var(--xmlui-borderStyle-TextArea-success)", "Input:fontSize-TextArea-success": "var(--xmlui-fontSize-TextArea-success)", "Input:backgroundColor-TextArea-success": "var(--xmlui-backgroundColor-TextArea-success)", "Input:boxShadow-TextArea-success": "var(--xmlui-boxShadow-TextArea-success)", "Input:textColor-TextArea-success": "var(--xmlui-textColor-TextArea-success)", "Input:borderColor-TextArea-success--hover": "var(--xmlui-borderColor-TextArea-success--hover)", "Input:backgroundColor-TextArea-success--hover": "var(--xmlui-backgroundColor-TextArea-success--hover)", "Input:boxShadow-TextArea-success--hover": "var(--xmlui-boxShadow-TextArea-success--hover)", "Input:textColor-TextArea-success--hover": "var(--xmlui-textColor-TextArea-success--hover)", "Input:borderColor-TextArea-success--focus": "var(--xmlui-borderColor-TextArea-success--focus)", "Input:backgroundColor-TextArea-success--focus": "var(--xmlui-backgroundColor-TextArea-success--focus)", "Input:boxShadow-TextArea-success--focus": "var(--xmlui-boxShadow-TextArea-success--focus)", "Input:textColor-TextArea-success--focus": "var(--xmlui-textColor-TextArea-success--focus)", "Input:outlineWidth-TextArea-success--focus": "var(--xmlui-outlineWidth-TextArea-success--focus)", "Input:outlineColor-TextArea-success--focus": "var(--xmlui-outlineColor-TextArea-success--focus)", "Input:outlineStyle-TextArea-success--focus": "var(--xmlui-outlineStyle-TextArea-success--focus)", "Input:outlineOffset-TextArea-success--focus": "var(--xmlui-outlineOffset-TextArea-success--focus)", "Input:textColor-placeholder-TextArea-success": "var(--xmlui-textColor-placeholder-TextArea-success)", "Input:fontSize-placeholder-TextArea-success": "var(--xmlui-fontSize-placeholder-TextArea-success)", "Input:backgroundColor-TextArea--disabled": "var(--xmlui-backgroundColor-TextArea--disabled)", "Input:textColor-TextArea--disabled": "var(--xmlui-textColor-TextArea--disabled)", "Input:borderColor-TextArea--disabled": "var(--xmlui-borderColor-TextArea--disabled)"}'`;
|
|
3781
3839
|
const textarea = "_textarea_9c161_14";
|
|
3782
3840
|
const error$d = "_error_9c161_59";
|
|
@@ -4115,7 +4173,7 @@ const TextArea = forwardRef(function TextArea2({
|
|
|
4115
4173
|
}
|
|
4116
4174
|
);
|
|
4117
4175
|
});
|
|
4118
|
-
const COMP$
|
|
4176
|
+
const COMP$1t = "TextArea";
|
|
4119
4177
|
const resizeOptionsMd = [
|
|
4120
4178
|
{ value: "(undefined)", description: "No resizing" },
|
|
4121
4179
|
{ value: "horizontal", description: "Can only resize horizontally" },
|
|
@@ -4146,15 +4204,15 @@ const TextAreaMd = createMetadata({
|
|
|
4146
4204
|
defaultValue: defaultProps$1c.enterSubmits
|
|
4147
4205
|
},
|
|
4148
4206
|
escResets: {
|
|
4149
|
-
description: `This boolean property indicates whether the ${COMP$
|
|
4207
|
+
description: `This boolean property indicates whether the ${COMP$1t} contents should be reset when pressing the ESC key.`,
|
|
4150
4208
|
valueType: "boolean",
|
|
4151
4209
|
defaultValue: false
|
|
4152
4210
|
},
|
|
4153
4211
|
maxRows: d(
|
|
4154
|
-
`This optional property sets the maximum number of text rows the \`${COMP$
|
|
4212
|
+
`This optional property sets the maximum number of text rows the \`${COMP$1t}\` can grow. If not set, the number of rows is unlimited.`
|
|
4155
4213
|
),
|
|
4156
4214
|
minRows: d(
|
|
4157
|
-
`This optional property sets the minimum number of text rows the \`${COMP$
|
|
4215
|
+
`This optional property sets the minimum number of text rows the \`${COMP$1t}\` can shrink. If not set, the minimum number of rows is 1.`
|
|
4158
4216
|
),
|
|
4159
4217
|
rows: {
|
|
4160
4218
|
description: `Specifies the number of rows the component initially has.`,
|
|
@@ -4162,7 +4220,7 @@ const TextAreaMd = createMetadata({
|
|
|
4162
4220
|
defaultValue: defaultProps$1c.rows
|
|
4163
4221
|
},
|
|
4164
4222
|
autoSize: {
|
|
4165
|
-
description: `If set to \`true\`, this boolean property enables the \`${COMP$
|
|
4223
|
+
description: `If set to \`true\`, this boolean property enables the \`${COMP$1t}\` to resize automatically based on the number of lines inside it.`,
|
|
4166
4224
|
valueType: "boolean",
|
|
4167
4225
|
defaultValue: false
|
|
4168
4226
|
},
|
|
@@ -4170,8 +4228,8 @@ const TextAreaMd = createMetadata({
|
|
|
4170
4228
|
initialValue: dInitialValue(),
|
|
4171
4229
|
label: dLabel(),
|
|
4172
4230
|
labelPosition: dLabelPosition("top"),
|
|
4173
|
-
labelWidth: dLabelWidth(COMP$
|
|
4174
|
-
labelBreak: dLabelBreak(COMP$
|
|
4231
|
+
labelWidth: dLabelWidth(COMP$1t),
|
|
4232
|
+
labelBreak: dLabelBreak(COMP$1t),
|
|
4175
4233
|
maxLength: dMaxLength(),
|
|
4176
4234
|
autoFocus: dAutoFocus(),
|
|
4177
4235
|
required: dRequired(),
|
|
@@ -4184,13 +4242,13 @@ const TextAreaMd = createMetadata({
|
|
|
4184
4242
|
}
|
|
4185
4243
|
},
|
|
4186
4244
|
events: {
|
|
4187
|
-
gotFocus: dGotFocus(COMP$
|
|
4188
|
-
lostFocus: dLostFocus(COMP$
|
|
4189
|
-
didChange: dDidChange(COMP$
|
|
4245
|
+
gotFocus: dGotFocus(COMP$1t),
|
|
4246
|
+
lostFocus: dLostFocus(COMP$1t),
|
|
4247
|
+
didChange: dDidChange(COMP$1t)
|
|
4190
4248
|
},
|
|
4191
4249
|
apis: {
|
|
4192
4250
|
focus: {
|
|
4193
|
-
description: `This method sets the focus on the \`${COMP$
|
|
4251
|
+
description: `This method sets the focus on the \`${COMP$1t}\` component.`,
|
|
4194
4252
|
signature: "focus(): void"
|
|
4195
4253
|
},
|
|
4196
4254
|
value: {
|
|
@@ -4201,12 +4259,12 @@ const TextAreaMd = createMetadata({
|
|
|
4201
4259
|
},
|
|
4202
4260
|
themeVars: parseScssVar(styles$1d.themeVars),
|
|
4203
4261
|
defaultThemeVars: {
|
|
4204
|
-
[`paddingVertical-${COMP$
|
|
4205
|
-
[`paddingHorizontal-${COMP$
|
|
4262
|
+
[`paddingVertical-${COMP$1t}`]: "$space-2",
|
|
4263
|
+
[`paddingHorizontal-${COMP$1t}`]: "$space-2"
|
|
4206
4264
|
}
|
|
4207
4265
|
});
|
|
4208
4266
|
const textAreaComponentRenderer = createComponentRenderer(
|
|
4209
|
-
COMP$
|
|
4267
|
+
COMP$1t,
|
|
4210
4268
|
TextAreaMd,
|
|
4211
4269
|
({
|
|
4212
4270
|
node,
|
|
@@ -4531,6 +4589,7 @@ const defaultProps$1b = {
|
|
|
4531
4589
|
const Image = forwardRef(function Img({
|
|
4532
4590
|
src,
|
|
4533
4591
|
alt,
|
|
4592
|
+
imageData,
|
|
4534
4593
|
fit = defaultProps$1b.fit,
|
|
4535
4594
|
style: style2,
|
|
4536
4595
|
className,
|
|
@@ -4540,13 +4599,36 @@ const Image = forwardRef(function Img({
|
|
|
4540
4599
|
inline = defaultProps$1b.inline,
|
|
4541
4600
|
...rest
|
|
4542
4601
|
}, ref) {
|
|
4602
|
+
const [blobUrl, setBlobUrl] = useState(null);
|
|
4603
|
+
const blobToRender = useMemo(() => {
|
|
4604
|
+
if (!imageData || !(imageData instanceof Blob)) {
|
|
4605
|
+
return void 0;
|
|
4606
|
+
}
|
|
4607
|
+
return imageData;
|
|
4608
|
+
}, [imageData]);
|
|
4609
|
+
useEffect(() => {
|
|
4610
|
+
if (!src && blobToRender) {
|
|
4611
|
+
const url = URL.createObjectURL(blobToRender);
|
|
4612
|
+
setBlobUrl(url);
|
|
4613
|
+
return () => {
|
|
4614
|
+
URL.revokeObjectURL(url);
|
|
4615
|
+
setBlobUrl(null);
|
|
4616
|
+
};
|
|
4617
|
+
} else {
|
|
4618
|
+
if (blobUrl) {
|
|
4619
|
+
URL.revokeObjectURL(blobUrl);
|
|
4620
|
+
setBlobUrl(null);
|
|
4621
|
+
}
|
|
4622
|
+
}
|
|
4623
|
+
}, [src, blobToRender]);
|
|
4543
4624
|
src = safeConvertPropToString(src);
|
|
4544
4625
|
alt = safeConvertPropToString(alt);
|
|
4626
|
+
const imageSrc = src || blobUrl;
|
|
4545
4627
|
return /* @__PURE__ */ jsx(
|
|
4546
4628
|
"img",
|
|
4547
4629
|
{
|
|
4548
4630
|
...rest,
|
|
4549
|
-
src,
|
|
4631
|
+
src: imageSrc,
|
|
4550
4632
|
ref,
|
|
4551
4633
|
alt,
|
|
4552
4634
|
loading: lazyLoad ? "lazy" : "eager",
|
|
@@ -5422,7 +5504,7 @@ const NavGroup = forwardRef(function NavGroup2({
|
|
|
5422
5504
|
renderChild: renderChild2,
|
|
5423
5505
|
to,
|
|
5424
5506
|
disabled: disabled2 = false,
|
|
5425
|
-
initiallyExpanded,
|
|
5507
|
+
initiallyExpanded = false,
|
|
5426
5508
|
iconHorizontalCollapsed,
|
|
5427
5509
|
iconHorizontalExpanded,
|
|
5428
5510
|
iconVerticalCollapsed,
|
|
@@ -5443,7 +5525,7 @@ const NavGroup = forwardRef(function NavGroup2({
|
|
|
5443
5525
|
layoutIsVertical,
|
|
5444
5526
|
iconHorizontalCollapsed: iconHorizontalCollapsed ?? defaultProps$16.iconHorizontalCollapsed,
|
|
5445
5527
|
iconHorizontalExpanded: iconHorizontalExpanded ?? defaultProps$16.iconHorizontalExpanded,
|
|
5446
|
-
iconVerticalCollapsed: iconVerticalCollapsed ?? defaultProps$16.iconVerticalCollapsed,
|
|
5528
|
+
iconVerticalCollapsed: iconVerticalCollapsed ?? (level < 0 && !inline ? defaultProps$16.iconVerticalExpanded : defaultProps$16.iconVerticalCollapsed),
|
|
5447
5529
|
iconVerticalExpanded: iconVerticalExpanded ?? defaultProps$16.iconVerticalExpanded
|
|
5448
5530
|
};
|
|
5449
5531
|
}, [
|
|
@@ -5452,7 +5534,8 @@ const NavGroup = forwardRef(function NavGroup2({
|
|
|
5452
5534
|
iconVerticalCollapsed,
|
|
5453
5535
|
iconVerticalExpanded,
|
|
5454
5536
|
level,
|
|
5455
|
-
layoutIsVertical
|
|
5537
|
+
layoutIsVertical,
|
|
5538
|
+
inline
|
|
5456
5539
|
]);
|
|
5457
5540
|
return /* @__PURE__ */ jsx(NavGroupContext.Provider, { value: navGroupContextValue, children: inline ? /* @__PURE__ */ jsx(
|
|
5458
5541
|
ExpandableNavGroup,
|
|
@@ -5478,6 +5561,7 @@ const NavGroup = forwardRef(function NavGroup2({
|
|
|
5478
5561
|
renderChild: renderChild2,
|
|
5479
5562
|
ref,
|
|
5480
5563
|
to,
|
|
5564
|
+
initiallyExpanded,
|
|
5481
5565
|
disabled: disabled2
|
|
5482
5566
|
}
|
|
5483
5567
|
) });
|
|
@@ -5517,6 +5601,7 @@ const ExpandableNavGroup = forwardRef(function ExpandableNavGroup2({
|
|
|
5517
5601
|
icon: icon2,
|
|
5518
5602
|
to,
|
|
5519
5603
|
disabled: disabled2,
|
|
5604
|
+
"aria-expanded": expanded2,
|
|
5520
5605
|
children: [
|
|
5521
5606
|
label2,
|
|
5522
5607
|
/* @__PURE__ */ jsx("div", { style: { flex: 1 } }),
|
|
@@ -5527,6 +5612,7 @@ const ExpandableNavGroup = forwardRef(function ExpandableNavGroup2({
|
|
|
5527
5612
|
/* @__PURE__ */ jsx(
|
|
5528
5613
|
"div",
|
|
5529
5614
|
{
|
|
5615
|
+
"aria-hidden": !expanded2,
|
|
5530
5616
|
className: classnames(styles$18.groupContent, {
|
|
5531
5617
|
[styles$18.expanded]: expanded2
|
|
5532
5618
|
}),
|
|
@@ -5542,6 +5628,7 @@ const DropDownNavGroup = forwardRef(function DropDownNavGroup2({
|
|
|
5542
5628
|
node,
|
|
5543
5629
|
to,
|
|
5544
5630
|
disabled: disabled2 = false,
|
|
5631
|
+
initiallyExpanded = false,
|
|
5545
5632
|
...rest
|
|
5546
5633
|
}, ref) {
|
|
5547
5634
|
const {
|
|
@@ -5560,56 +5647,68 @@ const DropDownNavGroup = forwardRef(function DropDownNavGroup2({
|
|
|
5560
5647
|
Trigger2 = DropdownMenuSubTrigger$1;
|
|
5561
5648
|
Content2 = DropdownMenuSubContent$1;
|
|
5562
5649
|
}
|
|
5563
|
-
const [expanded2, setExpanded] = useState(
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
wrapChild: ({ node: node2 }, renderedChild, hints) => {
|
|
5590
|
-
if (hints == null ? void 0 : hints.opaque) {
|
|
5591
|
-
return renderedChild;
|
|
5592
|
-
}
|
|
5593
|
-
if (node2.type === "List") {
|
|
5594
|
-
return renderedChild;
|
|
5595
|
-
}
|
|
5596
|
-
if (node2.type === "NavGroup") {
|
|
5597
|
-
return renderedChild;
|
|
5598
|
-
}
|
|
5599
|
-
let child = renderedChild;
|
|
5600
|
-
if (node2.type === "NavLink") {
|
|
5601
|
-
child = cloneElement(renderedChild, {
|
|
5602
|
-
...mergeProps(renderedChild.props, {
|
|
5603
|
-
vertical: true
|
|
5604
|
-
})
|
|
5605
|
-
});
|
|
5606
|
-
}
|
|
5607
|
-
return /* @__PURE__ */ jsx(DropdownMenuItem$1, { asChild: true, children: child });
|
|
5650
|
+
const [expanded2, setExpanded] = useState(initiallyExpanded);
|
|
5651
|
+
const [renderCount, setRenderCount] = useState(false);
|
|
5652
|
+
useEffect(() => setRenderCount(true), []);
|
|
5653
|
+
return /* @__PURE__ */ jsxs(
|
|
5654
|
+
Wrapper,
|
|
5655
|
+
{
|
|
5656
|
+
...rest,
|
|
5657
|
+
open: expanded2,
|
|
5658
|
+
onOpenChange: (open) => {
|
|
5659
|
+
if (renderCount) setExpanded(open);
|
|
5660
|
+
},
|
|
5661
|
+
children: [
|
|
5662
|
+
/* @__PURE__ */ jsx(Trigger2, { asChild: true, disabled: disabled2, children: /* @__PURE__ */ jsxs(
|
|
5663
|
+
NavLink,
|
|
5664
|
+
{
|
|
5665
|
+
icon: icon2,
|
|
5666
|
+
style: { flexShrink: 0 },
|
|
5667
|
+
vertical: level >= 1,
|
|
5668
|
+
to,
|
|
5669
|
+
disabled: disabled2,
|
|
5670
|
+
children: [
|
|
5671
|
+
label2,
|
|
5672
|
+
/* @__PURE__ */ jsx("div", { style: { flex: 1 } }),
|
|
5673
|
+
level === 0 && /* @__PURE__ */ jsx(Icon, { name: expanded2 ? iconVerticalExpanded : iconVerticalCollapsed }),
|
|
5674
|
+
level >= 1 && /* @__PURE__ */ jsx(Icon, { name: expanded2 ? iconHorizontalExpanded : iconHorizontalCollapsed })
|
|
5675
|
+
]
|
|
5608
5676
|
}
|
|
5609
|
-
})
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5677
|
+
) }),
|
|
5678
|
+
/* @__PURE__ */ jsx(DropdownMenuPortal, { container: root2, children: /* @__PURE__ */ jsx(
|
|
5679
|
+
Content2,
|
|
5680
|
+
{
|
|
5681
|
+
className: styles$18.dropdownList,
|
|
5682
|
+
style: { display: "flex", flexDirection: "column" },
|
|
5683
|
+
side: "bottom",
|
|
5684
|
+
align: "start",
|
|
5685
|
+
children: renderChild2(node.children, {
|
|
5686
|
+
wrapChild: ({ node: node2 }, renderedChild, hints) => {
|
|
5687
|
+
if (hints == null ? void 0 : hints.opaque) {
|
|
5688
|
+
return renderedChild;
|
|
5689
|
+
}
|
|
5690
|
+
if (node2.type === "List") {
|
|
5691
|
+
return renderedChild;
|
|
5692
|
+
}
|
|
5693
|
+
if (node2.type === "NavGroup") {
|
|
5694
|
+
return renderedChild;
|
|
5695
|
+
}
|
|
5696
|
+
let child = renderedChild;
|
|
5697
|
+
if (node2.type === "NavLink") {
|
|
5698
|
+
child = cloneElement(renderedChild, {
|
|
5699
|
+
...mergeProps(renderedChild.props, {
|
|
5700
|
+
vertical: true
|
|
5701
|
+
})
|
|
5702
|
+
});
|
|
5703
|
+
}
|
|
5704
|
+
return /* @__PURE__ */ jsx(DropdownMenuItem$1, { asChild: true, children: child });
|
|
5705
|
+
}
|
|
5706
|
+
})
|
|
5707
|
+
}
|
|
5708
|
+
) })
|
|
5709
|
+
]
|
|
5710
|
+
}
|
|
5711
|
+
);
|
|
5613
5712
|
});
|
|
5614
5713
|
const NavGroupContext = createContext({
|
|
5615
5714
|
level: -1,
|
|
@@ -5703,7 +5802,7 @@ const NavLink = forwardRef(function NavLink2({
|
|
|
5703
5802
|
}
|
|
5704
5803
|
return content2;
|
|
5705
5804
|
});
|
|
5706
|
-
const COMP$
|
|
5805
|
+
const COMP$1s = "NavLink";
|
|
5707
5806
|
const NavLinkMd = createMetadata({
|
|
5708
5807
|
status: "stable",
|
|
5709
5808
|
description: "`NavLink` creates interactive navigation items that connect users to different destinations within an app or external URLs. It automatically indicates active states, supports custom icons and labels, and can execute custom actions instead of navigation when needed.",
|
|
@@ -5722,7 +5821,7 @@ const NavLinkMd = createMetadata({
|
|
|
5722
5821
|
},
|
|
5723
5822
|
label: dLabel(),
|
|
5724
5823
|
vertical: {
|
|
5725
|
-
description: `This property sets how the active status is displayed on the \`${COMP$
|
|
5824
|
+
description: `This property sets how the active status is displayed on the \`${COMP$1s}\` component. If set to true, the indicator is displayed on the side which lends itself to a vertically aligned navigation menu. By default, it displays a horizontal indicator.`,
|
|
5726
5825
|
valueType: "boolean"
|
|
5727
5826
|
},
|
|
5728
5827
|
displayActive: {
|
|
@@ -5735,37 +5834,37 @@ const NavLinkMd = createMetadata({
|
|
|
5735
5834
|
)
|
|
5736
5835
|
},
|
|
5737
5836
|
events: {
|
|
5738
|
-
click: dClick(COMP$
|
|
5837
|
+
click: dClick(COMP$1s)
|
|
5739
5838
|
},
|
|
5740
5839
|
themeVars: parseScssVar(navLinkStyles.themeVars),
|
|
5741
5840
|
themeVarDescriptions: {
|
|
5742
|
-
[`color-indicator-${COMP$
|
|
5841
|
+
[`color-indicator-${COMP$1s}`]: "Provides the following states: `--hover`, `--active`, `--pressed`"
|
|
5743
5842
|
},
|
|
5744
5843
|
defaultThemeVars: {
|
|
5745
|
-
[`border-${COMP$
|
|
5746
|
-
[`borderRadius-${COMP$
|
|
5747
|
-
[`backgroundColor-${COMP$
|
|
5748
|
-
[`paddingHorizontal-${COMP$
|
|
5749
|
-
[`paddingVertical-${COMP$
|
|
5750
|
-
[`fontSize-${COMP$
|
|
5751
|
-
[`fontWeight-${COMP$
|
|
5752
|
-
[`fontFamily-${COMP$
|
|
5753
|
-
[`textColor-${COMP$
|
|
5754
|
-
[`fontWeight-${COMP$
|
|
5755
|
-
[`thickness-indicator-${COMP$
|
|
5756
|
-
[`outlineColor-${COMP$
|
|
5757
|
-
[`outlineWidth-${COMP$
|
|
5758
|
-
[`outlineStyle-${COMP$
|
|
5759
|
-
[`outlineOffset-${COMP$
|
|
5760
|
-
[`borderRadius-indicator-${COMP$
|
|
5761
|
-
[`color-icon-${COMP$
|
|
5762
|
-
[`color-indicator-${COMP$
|
|
5763
|
-
[`color-indicator-${COMP$
|
|
5764
|
-
[`color-indicator-${COMP$
|
|
5844
|
+
[`border-${COMP$1s}`]: "0px solid $borderColor",
|
|
5845
|
+
[`borderRadius-${COMP$1s}`]: "$borderRadius",
|
|
5846
|
+
[`backgroundColor-${COMP$1s}`]: "transparent",
|
|
5847
|
+
[`paddingHorizontal-${COMP$1s}`]: "$space-4",
|
|
5848
|
+
[`paddingVertical-${COMP$1s}`]: "$space-2",
|
|
5849
|
+
[`fontSize-${COMP$1s}`]: "$fontSize-sm",
|
|
5850
|
+
[`fontWeight-${COMP$1s}`]: "$fontWeight-normal",
|
|
5851
|
+
[`fontFamily-${COMP$1s}`]: "$fontFamily",
|
|
5852
|
+
[`textColor-${COMP$1s}`]: "$textColor-primary",
|
|
5853
|
+
[`fontWeight-${COMP$1s}--pressed`]: "$fontWeight-normal",
|
|
5854
|
+
[`thickness-indicator-${COMP$1s}`]: "$space-0_5",
|
|
5855
|
+
[`outlineColor-${COMP$1s}--focus`]: "$outlineColor--focus",
|
|
5856
|
+
[`outlineWidth-${COMP$1s}--focus`]: "$outlineWidth--focus",
|
|
5857
|
+
[`outlineStyle-${COMP$1s}--focus`]: "$outlineStyle--focus",
|
|
5858
|
+
[`outlineOffset-${COMP$1s}--focus`]: "-1px",
|
|
5859
|
+
[`borderRadius-indicator-${COMP$1s}`]: "$borderRadius",
|
|
5860
|
+
[`color-icon-${COMP$1s}`]: "$color-surface-500",
|
|
5861
|
+
[`color-indicator-${COMP$1s}--active`]: "$color-primary-500",
|
|
5862
|
+
[`color-indicator-${COMP$1s}--pressed`]: "$color-primary-500",
|
|
5863
|
+
[`color-indicator-${COMP$1s}--hover`]: "$color-primary-600"
|
|
5765
5864
|
}
|
|
5766
5865
|
});
|
|
5767
5866
|
const navLinkComponentRenderer = createComponentRenderer(
|
|
5768
|
-
COMP$
|
|
5867
|
+
COMP$1s,
|
|
5769
5868
|
NavLinkMd,
|
|
5770
5869
|
({ node, extractValue, renderChild: renderChild2, className }) => {
|
|
5771
5870
|
var _a2;
|
|
@@ -5850,7 +5949,7 @@ function specifyTypes(props) {
|
|
|
5850
5949
|
referrerPolicy
|
|
5851
5950
|
};
|
|
5852
5951
|
}
|
|
5853
|
-
const COMP$
|
|
5952
|
+
const COMP$1r = "Link";
|
|
5854
5953
|
const LinkMd = createMetadata({
|
|
5855
5954
|
status: "stable",
|
|
5856
5955
|
description: "`Link` creates clickable navigation elements for internal app routes or external URLs. You can use the `label` and `icon` properties for simple text links, or embed custom components like buttons, cards, or complex layouts for rich interactive link presentations.",
|
|
@@ -5865,7 +5964,7 @@ const LinkMd = createMetadata({
|
|
|
5865
5964
|
defaultValue: defaultProps$14.active
|
|
5866
5965
|
},
|
|
5867
5966
|
target: {
|
|
5868
|
-
description: `This property specifies where to open the link represented by the \`${COMP$
|
|
5967
|
+
description: `This property specifies where to open the link represented by the \`${COMP$1r}\`. This property accepts the following values (in accordance with the HTML standard):`,
|
|
5869
5968
|
availableValues: LinkTargetMd,
|
|
5870
5969
|
type: "string"
|
|
5871
5970
|
},
|
|
@@ -5881,37 +5980,37 @@ const LinkMd = createMetadata({
|
|
|
5881
5980
|
},
|
|
5882
5981
|
themeVars: parseScssVar(styles$17.themeVars),
|
|
5883
5982
|
themeVarDescriptions: {
|
|
5884
|
-
[`gap-icon-${COMP$
|
|
5983
|
+
[`gap-icon-${COMP$1r}`]: "This property defines the size of the gap between the icon and the label."
|
|
5885
5984
|
},
|
|
5886
5985
|
defaultThemeVars: {
|
|
5887
|
-
[`border-${COMP$
|
|
5888
|
-
[`textColor-${COMP$
|
|
5889
|
-
[`textDecorationColor-${COMP$
|
|
5890
|
-
[`textColor-${COMP$
|
|
5891
|
-
[`textDecorationColor-${COMP$
|
|
5892
|
-
[`textColor-${COMP$
|
|
5893
|
-
[`textDecorationColor-${COMP$
|
|
5894
|
-
[`textColor-${COMP$
|
|
5895
|
-
[`textUnderlineOffset-${COMP$
|
|
5896
|
-
[`textDecorationLine-${COMP$
|
|
5897
|
-
[`textDecorationStyle-${COMP$
|
|
5898
|
-
[`outlineColor-${COMP$
|
|
5899
|
-
[`outlineWidth-${COMP$
|
|
5900
|
-
[`outlineStyle-${COMP$
|
|
5901
|
-
[`outlineOffset-${COMP$
|
|
5902
|
-
[`fontSize-${COMP$
|
|
5903
|
-
[`fontWeight-${COMP$
|
|
5904
|
-
[`gap-icon-${COMP$
|
|
5905
|
-
[`padding-icon-${COMP$
|
|
5986
|
+
[`border-${COMP$1r}`]: "0px solid $borderColor",
|
|
5987
|
+
[`textColor-${COMP$1r}`]: "$color-primary-500",
|
|
5988
|
+
[`textDecorationColor-${COMP$1r}`]: `textDecorationColor-${COMP$1r}`,
|
|
5989
|
+
[`textColor-${COMP$1r}--hover`]: `$color-primary-400`,
|
|
5990
|
+
[`textDecorationColor-${COMP$1r}--hover`]: `textColor-${COMP$1r}--hover`,
|
|
5991
|
+
[`textColor-${COMP$1r}--active`]: "$color-primary-400",
|
|
5992
|
+
[`textDecorationColor-${COMP$1r}--active`]: `textColor-${COMP$1r}--active`,
|
|
5993
|
+
[`textColor-${COMP$1r}--hover--active`]: `$textColor-${COMP$1r}--active`,
|
|
5994
|
+
[`textUnderlineOffset-${COMP$1r}`]: "$space-1",
|
|
5995
|
+
[`textDecorationLine-${COMP$1r}`]: "underline",
|
|
5996
|
+
[`textDecorationStyle-${COMP$1r}`]: "solid",
|
|
5997
|
+
[`outlineColor-${COMP$1r}--focus`]: "$outlineColor--focus",
|
|
5998
|
+
[`outlineWidth-${COMP$1r}--focus`]: "$outlineWidth--focus",
|
|
5999
|
+
[`outlineStyle-${COMP$1r}--focus`]: "$outlineStyle--focus",
|
|
6000
|
+
[`outlineOffset-${COMP$1r}--focus`]: "$outlineOffset--focus",
|
|
6001
|
+
[`fontSize-${COMP$1r}`]: "inherit",
|
|
6002
|
+
[`fontWeight-${COMP$1r}--active`]: "$fontWeight-bold",
|
|
6003
|
+
[`gap-icon-${COMP$1r}`]: "$gap-tight",
|
|
6004
|
+
[`padding-icon-${COMP$1r}`]: "$space-0_5",
|
|
5906
6005
|
dark: {
|
|
5907
|
-
[`textColor-${COMP$
|
|
5908
|
-
[`textColor-${COMP$
|
|
5909
|
-
[`textColor-${COMP$
|
|
6006
|
+
[`textColor-${COMP$1r}`]: "$color-primary-600",
|
|
6007
|
+
[`textColor-${COMP$1r}--hover`]: `$color-primary-500`,
|
|
6008
|
+
[`textColor-${COMP$1r}--active`]: "$color-primary-500"
|
|
5910
6009
|
}
|
|
5911
6010
|
}
|
|
5912
6011
|
});
|
|
5913
6012
|
const localLinkComponentRenderer = createComponentRenderer(
|
|
5914
|
-
COMP$
|
|
6013
|
+
COMP$1r,
|
|
5915
6014
|
LinkMd,
|
|
5916
6015
|
({ node, extractValue, renderChild: renderChild2, lookupEventHandler, className }) => {
|
|
5917
6016
|
var _a2;
|
|
@@ -6105,10 +6204,10 @@ function TreeComponent({
|
|
|
6105
6204
|
}
|
|
6106
6205
|
) }) });
|
|
6107
6206
|
}
|
|
6108
|
-
const COMP$
|
|
6207
|
+
const COMP$1q = "Tree";
|
|
6109
6208
|
const TreeMd = createMetadata({
|
|
6110
6209
|
status: "in progress",
|
|
6111
|
-
description: `The \`${COMP$
|
|
6210
|
+
description: `The \`${COMP$1q}\` component is a virtualized tree component that displays hierarchical data.`,
|
|
6112
6211
|
props: {
|
|
6113
6212
|
data: {
|
|
6114
6213
|
description: `The data source of the tree.`,
|
|
@@ -6121,7 +6220,7 @@ const TreeMd = createMetadata({
|
|
|
6121
6220
|
}
|
|
6122
6221
|
});
|
|
6123
6222
|
const treeComponentRenderer = createComponentRenderer(
|
|
6124
|
-
COMP$
|
|
6223
|
+
COMP$1q,
|
|
6125
6224
|
TreeMd,
|
|
6126
6225
|
({ node, extractValue, renderChild: renderChild2, className }) => {
|
|
6127
6226
|
return /* @__PURE__ */ jsx(
|
|
@@ -6328,10 +6427,10 @@ const TreeDisplay = forwardRef(function TreeDisplay2({ style: style2, className,
|
|
|
6328
6427
|
const treeNodes = useMemo(() => parseTreeContent(contentString), [contentString]);
|
|
6329
6428
|
return /* @__PURE__ */ jsx("div", { className: classnames(styles$15.treeDisplay, className), style: style2, ref: forwardedRef, children: /* @__PURE__ */ jsx("div", { className: styles$15.content, children: treeNodes.map((node, index) => renderTreeNode(node, index, itemHeight, 0, [])) }) });
|
|
6330
6429
|
});
|
|
6331
|
-
const COMP$
|
|
6430
|
+
const COMP$1p = "TreeDisplay";
|
|
6332
6431
|
const TreeDisplayMd = createMetadata({
|
|
6333
6432
|
status: "stable",
|
|
6334
|
-
description: `The \`${COMP$
|
|
6433
|
+
description: `The \`${COMP$1p}\` component displays hierarchical data in a tree structure. It accepts an indented text format where each line is an entry in the tree, and the number of leading spaces determines the nesting level. The component renders the tree with SVG lines and continuous vertical guides to clearly visualize parent-child relationships in the hierarchy.`,
|
|
6335
6434
|
props: {
|
|
6336
6435
|
content: {
|
|
6337
6436
|
description: "The indented text content to display as a tree structure. Each level of indentation (using spaces) represents one level in the tree hierarchy.",
|
|
@@ -6346,21 +6445,21 @@ const TreeDisplayMd = createMetadata({
|
|
|
6346
6445
|
},
|
|
6347
6446
|
themeVars: parseScssVar(styles$15.themeVars),
|
|
6348
6447
|
defaultThemeVars: {
|
|
6349
|
-
[`backgroundColor-${COMP$
|
|
6350
|
-
[`borderRadius-${COMP$
|
|
6351
|
-
[`padding-${COMP$
|
|
6352
|
-
[`paddingLeft-${COMP$
|
|
6353
|
-
[`fontSize-${COMP$
|
|
6354
|
-
[`fontWeight-${COMP$
|
|
6355
|
-
[`fontFamily-${COMP$
|
|
6356
|
-
[`color-${COMP$
|
|
6357
|
-
[`color-connect-${COMP$
|
|
6358
|
-
[`boxShadow-${COMP$
|
|
6359
|
-
[`border-${COMP$
|
|
6448
|
+
[`backgroundColor-${COMP$1p}`]: "$backgroundColor-CodeBlock",
|
|
6449
|
+
[`borderRadius-${COMP$1p}`]: "8px",
|
|
6450
|
+
[`padding-${COMP$1p}`]: "$space-4",
|
|
6451
|
+
[`paddingLeft-${COMP$1p}`]: "$space-2",
|
|
6452
|
+
[`fontSize-${COMP$1p}`]: "$fontSize-code",
|
|
6453
|
+
[`fontWeight-${COMP$1p}`]: "$fontWeight-normal",
|
|
6454
|
+
[`fontFamily-${COMP$1p}`]: "$fontFamily-monospace",
|
|
6455
|
+
[`color-${COMP$1p}`]: "$textColor-primary",
|
|
6456
|
+
[`color-connect-${COMP$1p}`]: "$color-surface-200",
|
|
6457
|
+
[`boxShadow-${COMP$1p}`]: "none",
|
|
6458
|
+
[`border-${COMP$1p}`]: "0.5px solid $borderColor"
|
|
6360
6459
|
}
|
|
6361
6460
|
});
|
|
6362
6461
|
const treeDisplayComponentRenderer = createComponentRenderer(
|
|
6363
|
-
COMP$
|
|
6462
|
+
COMP$1p,
|
|
6364
6463
|
TreeDisplayMd,
|
|
6365
6464
|
({ node, extractValue, renderChild: renderChild2, className }) => {
|
|
6366
6465
|
return /* @__PURE__ */ jsx(
|
|
@@ -6374,7 +6473,10 @@ const treeDisplayComponentRenderer = createComponentRenderer(
|
|
|
6374
6473
|
);
|
|
6375
6474
|
}
|
|
6376
6475
|
);
|
|
6377
|
-
|
|
6476
|
+
function hasRenderableChildren(children) {
|
|
6477
|
+
return !!(children == null ? void 0 : children.some((child) => (child == null ? void 0 : child.type) !== "Slot"));
|
|
6478
|
+
}
|
|
6479
|
+
const COMP$1o = "Button";
|
|
6378
6480
|
const ButtonMd = createMetadata({
|
|
6379
6481
|
status: "stable",
|
|
6380
6482
|
description: "`Button` is the primary interactive component for triggering actions like form submissions, navigation, opening modals, and API calls. It supports multiple visual styles and sizes to match different UI contexts and importance levels.",
|
|
@@ -6407,11 +6509,11 @@ const ButtonMd = createMetadata({
|
|
|
6407
6509
|
defaultValue: defaultProps$1d.size
|
|
6408
6510
|
},
|
|
6409
6511
|
label: {
|
|
6410
|
-
description: `This property is an optional string to set a label for the ${COMP$
|
|
6512
|
+
description: `This property is an optional string to set a label for the ${COMP$1o}. If no label is specified and an icon is set, the ${COMP$1o} will modify its styling to look like a small icon button. When the ${COMP$1o} has nested children, it will display them and ignore the value of the \`label\` prop.`,
|
|
6411
6513
|
type: "string"
|
|
6412
6514
|
},
|
|
6413
6515
|
type: {
|
|
6414
|
-
description: `This optional string describes how the ${COMP$
|
|
6516
|
+
description: `This optional string describes how the ${COMP$1o} appears in an HTML context. You rarely need to set this property explicitly.`,
|
|
6415
6517
|
availableValues: buttonTypesMd,
|
|
6416
6518
|
valueType: "string",
|
|
6417
6519
|
defaultValue: defaultProps$1d.type
|
|
@@ -6423,86 +6525,86 @@ const ButtonMd = createMetadata({
|
|
|
6423
6525
|
},
|
|
6424
6526
|
orientation: dOrientation(defaultProps$1d.orientation),
|
|
6425
6527
|
icon: {
|
|
6426
|
-
description: `This string value denotes an icon name. The framework will render an icon if XMLUI recognizes the icon by its name. If no label is specified and an icon is set, the ${COMP$
|
|
6528
|
+
description: `This string value denotes an icon name. The framework will render an icon if XMLUI recognizes the icon by its name. If no label is specified and an icon is set, the ${COMP$1o} displays only that icon.`,
|
|
6427
6529
|
type: "string"
|
|
6428
6530
|
},
|
|
6429
6531
|
iconPosition: {
|
|
6430
|
-
description: `This optional string determines the location of the icon in the ${COMP$
|
|
6532
|
+
description: `This optional string determines the location of the icon in the ${COMP$1o}.`,
|
|
6431
6533
|
availableValues: iconPositionMd,
|
|
6432
6534
|
type: "string",
|
|
6433
6535
|
defaultValue: defaultProps$1d.iconPosition
|
|
6434
6536
|
},
|
|
6435
6537
|
contentPosition: {
|
|
6436
|
-
description: `This optional value determines how the label and icon (or nested children) should be placedinside the ${COMP$
|
|
6538
|
+
description: `This optional value determines how the label and icon (or nested children) should be placedinside the ${COMP$1o} component.`,
|
|
6437
6539
|
availableValues: alignmentOptionMd,
|
|
6438
6540
|
type: "string",
|
|
6439
6541
|
defaultValue: defaultProps$1d.contentPosition
|
|
6440
6542
|
},
|
|
6441
6543
|
contextualLabel: {
|
|
6442
|
-
description: `This optional value is used to provide an accessible name for the ${COMP$
|
|
6544
|
+
description: `This optional value is used to provide an accessible name for the ${COMP$1o} in the context of its usage.`,
|
|
6443
6545
|
type: "string"
|
|
6444
6546
|
}
|
|
6445
6547
|
},
|
|
6446
6548
|
events: {
|
|
6447
|
-
click: dClick(COMP$
|
|
6448
|
-
gotFocus: dGotFocus(COMP$
|
|
6449
|
-
lostFocus: dLostFocus(COMP$
|
|
6549
|
+
click: dClick(COMP$1o),
|
|
6550
|
+
gotFocus: dGotFocus(COMP$1o),
|
|
6551
|
+
lostFocus: dLostFocus(COMP$1o)
|
|
6450
6552
|
},
|
|
6451
6553
|
themeVars: parseScssVar(styles$1g.themeVars),
|
|
6452
6554
|
defaultThemeVars: {
|
|
6453
|
-
[`width-${COMP$
|
|
6454
|
-
[`height-${COMP$
|
|
6455
|
-
[`borderRadius-${COMP$
|
|
6456
|
-
[`fontSize-${COMP$
|
|
6457
|
-
[`fontWeight-${COMP$
|
|
6458
|
-
[`backgroundColor-${COMP$
|
|
6459
|
-
[`backgroundColor-${COMP$
|
|
6460
|
-
[`borderColor-${COMP$
|
|
6461
|
-
[`backgroundColor-${COMP$
|
|
6462
|
-
[`borderColor-${COMP$
|
|
6463
|
-
[`borderStyle-${COMP$
|
|
6464
|
-
[`textColor-${COMP$
|
|
6465
|
-
[`outlineColor-${COMP$
|
|
6466
|
-
[`borderWidth-${COMP$
|
|
6467
|
-
[`outlineWidth-${COMP$
|
|
6468
|
-
[`outlineStyle-${COMP$
|
|
6469
|
-
[`outlineOffset-${COMP$
|
|
6470
|
-
[`paddingHorizontal-${COMP$
|
|
6471
|
-
[`paddingVertical-${COMP$
|
|
6472
|
-
[`paddingHorizontal-${COMP$
|
|
6473
|
-
[`paddingVertical-${COMP$
|
|
6474
|
-
[`paddingHorizontal-${COMP$
|
|
6475
|
-
[`paddingVertical-${COMP$
|
|
6476
|
-
[`paddingHorizontal-${COMP$
|
|
6477
|
-
[`paddingVertical-${COMP$
|
|
6478
|
-
[`textColor-${COMP$
|
|
6479
|
-
[`textColor-${COMP$
|
|
6480
|
-
[`borderColor-${COMP$
|
|
6481
|
-
[`backgroundColor-${COMP$
|
|
6482
|
-
[`backgroundColor-${COMP$
|
|
6483
|
-
[`backgroundColor-${COMP$
|
|
6484
|
-
[`backgroundColor-${COMP$
|
|
6485
|
-
[`borderColor-${COMP$
|
|
6486
|
-
[`borderColor-${COMP$
|
|
6487
|
-
[`textColor-${COMP$
|
|
6488
|
-
[`textColor-${COMP$
|
|
6489
|
-
[`textColor-${COMP$
|
|
6490
|
-
[`backgroundColor-${COMP$
|
|
6491
|
-
[`backgroundColor-${COMP$
|
|
6492
|
-
[`borderColor-${COMP$
|
|
6493
|
-
[`backgroundColor-${COMP$
|
|
6494
|
-
[`backgroundColor-${COMP$
|
|
6495
|
-
[`backgroundColor-${COMP$
|
|
6496
|
-
[`backgroundColor-${COMP$
|
|
6497
|
-
[`backgroundColor-${COMP$
|
|
6498
|
-
[`backgroundColor-${COMP$
|
|
6499
|
-
[`backgroundColor-${COMP$
|
|
6500
|
-
[`backgroundColor-${COMP$
|
|
6501
|
-
[`backgroundColor-${COMP$
|
|
6502
|
-
[`backgroundColor-${COMP$
|
|
6503
|
-
[`backgroundColor-${COMP$
|
|
6504
|
-
[`backgroundColor-${COMP$
|
|
6505
|
-
[`backgroundColor-${COMP$
|
|
6555
|
+
[`width-${COMP$1o}`]: "fit-content",
|
|
6556
|
+
[`height-${COMP$1o}`]: "fit-content",
|
|
6557
|
+
[`borderRadius-${COMP$1o}`]: "$borderRadius",
|
|
6558
|
+
[`fontSize-${COMP$1o}`]: "$fontSize-sm",
|
|
6559
|
+
[`fontWeight-${COMP$1o}`]: "$fontWeight-medium",
|
|
6560
|
+
[`backgroundColor-${COMP$1o}-primary`]: "$color-primary-500",
|
|
6561
|
+
[`backgroundColor-${COMP$1o}-attention`]: "$backgroundColor-attention",
|
|
6562
|
+
[`borderColor-${COMP$1o}-attention`]: "$color-attention",
|
|
6563
|
+
[`backgroundColor-${COMP$1o}--disabled`]: "$backgroundColor--disabled",
|
|
6564
|
+
[`borderColor-${COMP$1o}--disabled`]: "$borderColor--disabled",
|
|
6565
|
+
[`borderStyle-${COMP$1o}`]: "solid",
|
|
6566
|
+
[`textColor-${COMP$1o}--disabled`]: "$textColor--disabled",
|
|
6567
|
+
[`outlineColor-${COMP$1o}--focus`]: "$outlineColor--focus",
|
|
6568
|
+
[`borderWidth-${COMP$1o}`]: "1px",
|
|
6569
|
+
[`outlineWidth-${COMP$1o}--focus`]: "$outlineWidth--focus",
|
|
6570
|
+
[`outlineStyle-${COMP$1o}--focus`]: "$outlineStyle--focus",
|
|
6571
|
+
[`outlineOffset-${COMP$1o}--focus`]: "$outlineOffset--focus",
|
|
6572
|
+
[`paddingHorizontal-${COMP$1o}-xs`]: "$space-1",
|
|
6573
|
+
[`paddingVertical-${COMP$1o}-xs`]: "$space-0_5",
|
|
6574
|
+
[`paddingHorizontal-${COMP$1o}-sm`]: "$space-4",
|
|
6575
|
+
[`paddingVertical-${COMP$1o}-sm`]: "$space-2",
|
|
6576
|
+
[`paddingHorizontal-${COMP$1o}-md`]: "$space-4",
|
|
6577
|
+
[`paddingVertical-${COMP$1o}-md`]: "$space-3",
|
|
6578
|
+
[`paddingHorizontal-${COMP$1o}-lg`]: "$space-5",
|
|
6579
|
+
[`paddingVertical-${COMP$1o}-lg`]: "$space-4",
|
|
6580
|
+
[`textColor-${COMP$1o}`]: "$color-surface-950",
|
|
6581
|
+
[`textColor-${COMP$1o}-solid`]: "$const-color-surface-50",
|
|
6582
|
+
[`borderColor-${COMP$1o}-primary`]: "$color-primary-500",
|
|
6583
|
+
[`backgroundColor-${COMP$1o}-primary--hover`]: "$color-primary-400",
|
|
6584
|
+
[`backgroundColor-${COMP$1o}-primary--active`]: "$color-primary-500",
|
|
6585
|
+
[`backgroundColor-${COMP$1o}-primary-outlined--hover`]: "$color-primary-50",
|
|
6586
|
+
[`backgroundColor-${COMP$1o}-primary-outlined--active`]: "$color-primary-100",
|
|
6587
|
+
[`borderColor-${COMP$1o}-primary-outlined`]: "$color-primary-600",
|
|
6588
|
+
[`borderColor-${COMP$1o}-primary-outlined--hover`]: "$color-primary-500",
|
|
6589
|
+
[`textColor-${COMP$1o}-primary-outlined`]: "$color-primary-900",
|
|
6590
|
+
[`textColor-${COMP$1o}-primary-outlined--hover`]: "$color-primary-950",
|
|
6591
|
+
[`textColor-${COMP$1o}-primary-outlined--active`]: "$color-primary-900",
|
|
6592
|
+
[`backgroundColor-${COMP$1o}-primary-ghost--hover`]: "$color-primary-50",
|
|
6593
|
+
[`backgroundColor-${COMP$1o}-primary-ghost--active`]: "$color-primary-100",
|
|
6594
|
+
[`borderColor-${COMP$1o}-secondary`]: "$color-secondary-100",
|
|
6595
|
+
[`backgroundColor-${COMP$1o}-secondary`]: "$color-secondary-500",
|
|
6596
|
+
[`backgroundColor-${COMP$1o}-secondary--hover`]: "$color-secondary-400",
|
|
6597
|
+
[`backgroundColor-${COMP$1o}-secondary--active`]: "$color-secondary-500",
|
|
6598
|
+
[`backgroundColor-${COMP$1o}-secondary-outlined--hover`]: "$color-secondary-50",
|
|
6599
|
+
[`backgroundColor-${COMP$1o}-secondary-outlined--active`]: "$color-secondary-100",
|
|
6600
|
+
[`backgroundColor-${COMP$1o}-secondary-ghost--hover`]: "$color-secondary-100",
|
|
6601
|
+
[`backgroundColor-${COMP$1o}-secondary-ghost--active`]: "$color-secondary-100",
|
|
6602
|
+
[`backgroundColor-${COMP$1o}-attention--hover`]: "$color-danger-400",
|
|
6603
|
+
[`backgroundColor-${COMP$1o}-attention--active`]: "$color-danger-500",
|
|
6604
|
+
[`backgroundColor-${COMP$1o}-attention-outlined--hover`]: "$color-danger-50",
|
|
6605
|
+
[`backgroundColor-${COMP$1o}-attention-outlined--active`]: "$color-danger-100",
|
|
6606
|
+
[`backgroundColor-${COMP$1o}-attention-ghost--hover`]: "$color-danger-50",
|
|
6607
|
+
[`backgroundColor-${COMP$1o}-attention-ghost--active`]: "$color-danger-100"
|
|
6506
6608
|
}
|
|
6507
6609
|
});
|
|
6508
6610
|
const buttonComponentRenderer = createComponentRenderer(
|
|
@@ -6511,6 +6613,7 @@ const buttonComponentRenderer = createComponentRenderer(
|
|
|
6511
6613
|
({ node, extractValue, renderChild: renderChild2, lookupEventHandler, className }) => {
|
|
6512
6614
|
const iconName = extractValue.asString(node.props.icon);
|
|
6513
6615
|
const label2 = extractValue.asDisplayText(node.props.label);
|
|
6616
|
+
const renderedChildren = hasRenderableChildren(node.children) ? renderChild2(node.children, { type: "Stack", orientation: "horizontal" }) : label2;
|
|
6514
6617
|
return /* @__PURE__ */ jsx(
|
|
6515
6618
|
Button,
|
|
6516
6619
|
{
|
|
@@ -6529,7 +6632,7 @@ const buttonComponentRenderer = createComponentRenderer(
|
|
|
6529
6632
|
onBlur: lookupEventHandler("lostFocus"),
|
|
6530
6633
|
className,
|
|
6531
6634
|
contextualLabel: extractValue.asOptionalString(node.props.contextualLabel),
|
|
6532
|
-
children:
|
|
6635
|
+
children: renderedChildren
|
|
6533
6636
|
}
|
|
6534
6637
|
);
|
|
6535
6638
|
}
|
|
@@ -8710,9 +8813,9 @@ class PropsTrasform {
|
|
|
8710
8813
|
return this.mapValues(filteredKeys, this.extractValue);
|
|
8711
8814
|
}
|
|
8712
8815
|
}
|
|
8713
|
-
const COMP$
|
|
8816
|
+
const COMP$1n = "Heading";
|
|
8714
8817
|
const VALUE_DESC = d(
|
|
8715
|
-
`This property determines the text displayed in the heading. \`${COMP$
|
|
8818
|
+
`This property determines the text displayed in the heading. \`${COMP$1n}\` also accepts nested text instead of specifying the \`value\`. If both \`value\` and a nested text are used, the \`value\` will be displayed.`
|
|
8716
8819
|
);
|
|
8717
8820
|
const MAX_LINES_DESC = d(
|
|
8718
8821
|
"This optional property determines the maximum number of lines the component can wrap to. If there is not enough space for all of the text, the component wraps the text up to as many lines as specified. If the value is not specified, there is no limit on the number of displayed lines."
|
|
@@ -8769,13 +8872,13 @@ const HeadingMd = createMetadata({
|
|
|
8769
8872
|
themeVars: parseScssVar(styles$14.themeVars),
|
|
8770
8873
|
limitThemeVarsToComponent: true,
|
|
8771
8874
|
defaultThemeVars: {
|
|
8772
|
-
[`fontFamily-${COMP$
|
|
8773
|
-
[`textColor-${COMP$
|
|
8774
|
-
[`fontWeight-${COMP$
|
|
8775
|
-
[`letterSpacing-${COMP$
|
|
8776
|
-
[`color-anchor-${COMP$
|
|
8777
|
-
[`gap-anchor-${COMP$
|
|
8778
|
-
[`textDecorationLine-anchor-${COMP$
|
|
8875
|
+
[`fontFamily-${COMP$1n}`]: "$fontFamily",
|
|
8876
|
+
[`textColor-${COMP$1n}`]: "inherit",
|
|
8877
|
+
[`fontWeight-${COMP$1n}`]: "$fontWeight-bold",
|
|
8878
|
+
[`letterSpacing-${COMP$1n} `]: "0",
|
|
8879
|
+
[`color-anchor-${COMP$1n} `]: "$color-surface-400",
|
|
8880
|
+
[`gap-anchor-${COMP$1n} `]: "$space-2",
|
|
8881
|
+
[`textDecorationLine-anchor-${COMP$1n} `]: "underline",
|
|
8779
8882
|
light: {
|
|
8780
8883
|
// --- No light-specific theme vars
|
|
8781
8884
|
},
|
|
@@ -8788,7 +8891,7 @@ const H1 = "H1";
|
|
|
8788
8891
|
const H1Md = createMetadata({
|
|
8789
8892
|
status: "stable",
|
|
8790
8893
|
description: LEVEL_DESC(1),
|
|
8791
|
-
specializedFrom: COMP$
|
|
8894
|
+
specializedFrom: COMP$1n,
|
|
8792
8895
|
props: {
|
|
8793
8896
|
value: VALUE_DESC,
|
|
8794
8897
|
maxLines: MAX_LINES_DESC,
|
|
@@ -8818,7 +8921,7 @@ const H2 = "H2";
|
|
|
8818
8921
|
const H2Md = createMetadata({
|
|
8819
8922
|
status: "stable",
|
|
8820
8923
|
description: LEVEL_DESC(2),
|
|
8821
|
-
specializedFrom: COMP$
|
|
8924
|
+
specializedFrom: COMP$1n,
|
|
8822
8925
|
props: {
|
|
8823
8926
|
value: VALUE_DESC,
|
|
8824
8927
|
maxLines: MAX_LINES_DESC,
|
|
@@ -8848,7 +8951,7 @@ const H3 = "H3";
|
|
|
8848
8951
|
const H3Md = createMetadata({
|
|
8849
8952
|
status: "stable",
|
|
8850
8953
|
description: LEVEL_DESC(3),
|
|
8851
|
-
specializedFrom: COMP$
|
|
8954
|
+
specializedFrom: COMP$1n,
|
|
8852
8955
|
props: {
|
|
8853
8956
|
value: VALUE_DESC,
|
|
8854
8957
|
maxLines: MAX_LINES_DESC,
|
|
@@ -8878,7 +8981,7 @@ const H4 = "H4";
|
|
|
8878
8981
|
const H4Md = createMetadata({
|
|
8879
8982
|
status: "stable",
|
|
8880
8983
|
description: LEVEL_DESC(4),
|
|
8881
|
-
specializedFrom: COMP$
|
|
8984
|
+
specializedFrom: COMP$1n,
|
|
8882
8985
|
props: {
|
|
8883
8986
|
value: VALUE_DESC,
|
|
8884
8987
|
maxLines: MAX_LINES_DESC,
|
|
@@ -8908,7 +9011,7 @@ const H5 = "H5";
|
|
|
8908
9011
|
const H5Md = createMetadata({
|
|
8909
9012
|
status: "stable",
|
|
8910
9013
|
description: LEVEL_DESC(5),
|
|
8911
|
-
specializedFrom: COMP$
|
|
9014
|
+
specializedFrom: COMP$1n,
|
|
8912
9015
|
props: {
|
|
8913
9016
|
value: VALUE_DESC,
|
|
8914
9017
|
maxLines: MAX_LINES_DESC,
|
|
@@ -8938,7 +9041,7 @@ const H6 = "H6";
|
|
|
8938
9041
|
const H6Md = createMetadata({
|
|
8939
9042
|
status: "stable",
|
|
8940
9043
|
description: LEVEL_DESC(6),
|
|
8941
|
-
specializedFrom: COMP$
|
|
9044
|
+
specializedFrom: COMP$1n,
|
|
8942
9045
|
props: {
|
|
8943
9046
|
value: VALUE_DESC,
|
|
8944
9047
|
maxLines: MAX_LINES_DESC,
|
|
@@ -8994,7 +9097,7 @@ function renderHeading({
|
|
|
8994
9097
|
);
|
|
8995
9098
|
}
|
|
8996
9099
|
const headingComponentRenderer = createComponentRenderer(
|
|
8997
|
-
COMP$
|
|
9100
|
+
COMP$1n,
|
|
8998
9101
|
HeadingMd,
|
|
8999
9102
|
({ node, extractValue, className, renderChild: renderChild2, registerComponentApi }) => {
|
|
9000
9103
|
return renderHeading({
|
|
@@ -9278,13 +9381,13 @@ const Text = forwardRef(function Text2({
|
|
|
9278
9381
|
}
|
|
9279
9382
|
);
|
|
9280
9383
|
});
|
|
9281
|
-
const COMP$
|
|
9384
|
+
const COMP$1m = "Text";
|
|
9282
9385
|
const TextMd = createMetadata({
|
|
9283
9386
|
status: "stable",
|
|
9284
|
-
description: `The \`${COMP$
|
|
9387
|
+
description: `The \`${COMP$1m}\` component displays textual information in a number of optional styles and variants.`,
|
|
9285
9388
|
props: {
|
|
9286
9389
|
value: d(
|
|
9287
|
-
`The text to be displayed. This value can also be set via nesting the text into the \`${COMP$
|
|
9390
|
+
`The text to be displayed. This value can also be set via nesting the text into the \`${COMP$1m}\` component.`
|
|
9288
9391
|
),
|
|
9289
9392
|
variant: {
|
|
9290
9393
|
description: "An optional string value that provides named presets for text variants with a unique combination of font style, weight, size, color, and other parameters. If not defined, the text uses the current style of its context.",
|
|
@@ -9344,76 +9447,76 @@ const TextMd = createMetadata({
|
|
|
9344
9447
|
},
|
|
9345
9448
|
themeVars: parseScssVar(styles$13.themeVars),
|
|
9346
9449
|
defaultThemeVars: {
|
|
9347
|
-
[`borderRadius-${COMP$
|
|
9348
|
-
[`borderStyle-${COMP$
|
|
9349
|
-
[`fontSize-${COMP$
|
|
9350
|
-
[`borderWidth-${COMP$
|
|
9351
|
-
[`lineHeight-${COMP$
|
|
9352
|
-
[`fontWeight-${COMP$
|
|
9353
|
-
[`textTransform-${COMP$
|
|
9354
|
-
[`fontSize-${COMP$
|
|
9355
|
-
[`fontStyle-${COMP$
|
|
9356
|
-
[`textColor-${COMP$
|
|
9357
|
-
[`fontFamily-${COMP$
|
|
9358
|
-
[`fontWeight-${COMP$
|
|
9359
|
-
[`fontSize-${COMP$
|
|
9360
|
-
[`fontFamily-${COMP$
|
|
9361
|
-
[`fontSize-${COMP$
|
|
9362
|
-
[`borderWidth-${COMP$
|
|
9363
|
-
[`borderStyle-${COMP$
|
|
9364
|
-
[`borderRadius-${COMP$
|
|
9365
|
-
[`paddingHorizontal-${COMP$
|
|
9366
|
-
[`paddingBottom-${COMP$
|
|
9367
|
-
[`textDecorationLine-${COMP$
|
|
9368
|
-
[`textDecorationLine-${COMP$
|
|
9369
|
-
[`fontFamily-${COMP$
|
|
9370
|
-
[`fontSize-${COMP$
|
|
9371
|
-
[`fontWeight-${COMP$
|
|
9372
|
-
[`borderWidth-${COMP$
|
|
9373
|
-
[`paddingHorizontal-${COMP$
|
|
9374
|
-
[`fontFamily-${COMP$
|
|
9375
|
-
[`fontSize-${COMP$
|
|
9376
|
-
[`fontSize-${COMP$
|
|
9377
|
-
[`verticalAlignment-${COMP$
|
|
9378
|
-
[`fontSize-${COMP$
|
|
9379
|
-
[`verticalAlignment-${COMP$
|
|
9380
|
-
[`fontStyle-${COMP$
|
|
9381
|
-
[`fontStyle-${COMP$
|
|
9382
|
-
[`fontFamily-${COMP$
|
|
9383
|
-
[`fontSize-${COMP$
|
|
9384
|
-
[`fontSize-${COMP$
|
|
9385
|
-
[`fontSize-${COMP$
|
|
9386
|
-
[`letterSpacing-${COMP$
|
|
9387
|
-
[`fontSize-${COMP$
|
|
9388
|
-
[`fontFamily-${COMP$
|
|
9389
|
-
[`paddingHorizontal-${COMP$
|
|
9390
|
-
[`paddingVertical-${COMP$
|
|
9391
|
-
[`paddingVertical-${COMP$
|
|
9392
|
-
[`fontSize-${COMP$
|
|
9393
|
-
[`fontWeight-${COMP$
|
|
9394
|
-
[`letterSpacing-${COMP$
|
|
9395
|
-
[`textTransform-${COMP$
|
|
9396
|
-
[`marginTop-${COMP$
|
|
9397
|
-
[`marginBottom-${COMP$
|
|
9398
|
-
[`paddingHorizontal-${COMP$
|
|
9399
|
-
[`fontSize-${COMP$
|
|
9400
|
-
[`fontWeight-${COMP$
|
|
9401
|
-
[`backgroundColor-${COMP$
|
|
9402
|
-
[`borderColor-${COMP$
|
|
9403
|
-
[`backgroundColor-${COMP$
|
|
9404
|
-
[`borderColor-${COMP$
|
|
9405
|
-
[`backgroundColor-${COMP$
|
|
9406
|
-
[`color-${COMP$
|
|
9407
|
-
[`color-${COMP$
|
|
9408
|
-
[`color-${COMP$
|
|
9409
|
-
[`color-${COMP$
|
|
9450
|
+
[`borderRadius-${COMP$1m}`]: "$borderRadius",
|
|
9451
|
+
[`borderStyle-${COMP$1m}`]: "solid",
|
|
9452
|
+
[`fontSize-${COMP$1m}`]: "$fontSize-sm",
|
|
9453
|
+
[`borderWidth-${COMP$1m}`]: "$space-0",
|
|
9454
|
+
[`lineHeight-${COMP$1m}-codefence`]: "1.5",
|
|
9455
|
+
[`fontWeight-${COMP$1m}-abbr`]: "$fontWeight-bold",
|
|
9456
|
+
[`textTransform-${COMP$1m}-abbr`]: "uppercase",
|
|
9457
|
+
[`fontSize-${COMP$1m}-secondary`]: "$fontSize-sm",
|
|
9458
|
+
[`fontStyle-${COMP$1m}-cite`]: "italic",
|
|
9459
|
+
[`textColor-${COMP$1m}`]: "$textColor-primary",
|
|
9460
|
+
[`fontFamily-${COMP$1m}`]: "$fontFamily",
|
|
9461
|
+
[`fontWeight-${COMP$1m}`]: "$fontWeight-normal",
|
|
9462
|
+
[`fontSize-${COMP$1m}-codefence`]: "$fontSize-code",
|
|
9463
|
+
[`fontFamily-${COMP$1m}-code`]: "$fontFamily-monospace",
|
|
9464
|
+
[`fontSize-${COMP$1m}-code`]: "$fontSize-sm",
|
|
9465
|
+
[`borderWidth-${COMP$1m}-code`]: "1px",
|
|
9466
|
+
[`borderStyle-${COMP$1m}-code`]: "solid",
|
|
9467
|
+
[`borderRadius-${COMP$1m}-code`]: "4px",
|
|
9468
|
+
[`paddingHorizontal-${COMP$1m}-code`]: "$space-0_5",
|
|
9469
|
+
[`paddingBottom-${COMP$1m}-code`]: "2px",
|
|
9470
|
+
[`textDecorationLine-${COMP$1m}-deleted`]: "line-through",
|
|
9471
|
+
[`textDecorationLine-${COMP$1m}-inserted`]: "underline",
|
|
9472
|
+
[`fontFamily-${COMP$1m}-keyboard`]: "$fontFamily-monospace",
|
|
9473
|
+
[`fontSize-${COMP$1m}-keyboard`]: "$fontSize-sm",
|
|
9474
|
+
[`fontWeight-${COMP$1m}-keyboard`]: "$fontWeight-bold",
|
|
9475
|
+
[`borderWidth-${COMP$1m}-keyboard`]: "1px",
|
|
9476
|
+
[`paddingHorizontal-${COMP$1m}-keyboard`]: "$space-1",
|
|
9477
|
+
[`fontFamily-${COMP$1m}-sample`]: "$fontFamily-monospace",
|
|
9478
|
+
[`fontSize-${COMP$1m}-sample`]: "$fontSize-sm",
|
|
9479
|
+
[`fontSize-${COMP$1m}-sup`]: "$fontSize-xs",
|
|
9480
|
+
[`verticalAlignment-${COMP$1m}-sup`]: "super",
|
|
9481
|
+
[`fontSize-${COMP$1m}-sub`]: "$fontSize-xs",
|
|
9482
|
+
[`verticalAlignment-${COMP$1m}-sub`]: "sub",
|
|
9483
|
+
[`fontStyle-${COMP$1m}-var`]: "italic",
|
|
9484
|
+
[`fontStyle-${COMP$1m}-em`]: "italic",
|
|
9485
|
+
[`fontFamily-${COMP$1m}-mono`]: "$fontFamily-monospace",
|
|
9486
|
+
[`fontSize-${COMP$1m}-title`]: "$fontSize-2xl",
|
|
9487
|
+
[`fontSize-${COMP$1m}-subtitle`]: "$fontSize-xl",
|
|
9488
|
+
[`fontSize-${COMP$1m}-small`]: "$fontSize-sm",
|
|
9489
|
+
[`letterSpacing-${COMP$1m}-caption`]: "0.05rem",
|
|
9490
|
+
[`fontSize-${COMP$1m}-placeholder`]: "$fontSize-xs",
|
|
9491
|
+
[`fontFamily-${COMP$1m}-codefence`]: "$fontFamily-monospace",
|
|
9492
|
+
[`paddingHorizontal-${COMP$1m}-codefence`]: "$space-4",
|
|
9493
|
+
[`paddingVertical-${COMP$1m}-codefence`]: "$space-3",
|
|
9494
|
+
[`paddingVertical-${COMP$1m}-paragraph`]: "$space-1",
|
|
9495
|
+
[`fontSize-${COMP$1m}-subheading`]: "$fontSize-H6",
|
|
9496
|
+
[`fontWeight-${COMP$1m}-subheading`]: "$fontWeight-bold",
|
|
9497
|
+
[`letterSpacing-${COMP$1m}-subheading`]: "0.04em",
|
|
9498
|
+
[`textTransform-${COMP$1m}-subheading`]: "uppercase",
|
|
9499
|
+
[`marginTop-${COMP$1m}-tableheading`]: "$space-1",
|
|
9500
|
+
[`marginBottom-${COMP$1m}-tableheading`]: "$space-4",
|
|
9501
|
+
[`paddingHorizontal-${COMP$1m}-tableheading`]: "$space-1",
|
|
9502
|
+
[`fontSize-${COMP$1m}-tableheading`]: "$fontSize-H6",
|
|
9503
|
+
[`fontWeight-${COMP$1m}-tableheading`]: "$fontWeight-bold",
|
|
9504
|
+
[`backgroundColor-${COMP$1m}-code`]: "rgb(from $color-surface-100 r g b / 0.4)",
|
|
9505
|
+
[`borderColor-${COMP$1m}-code`]: "$color-surface-100",
|
|
9506
|
+
[`backgroundColor-${COMP$1m}-keyboard`]: "rgb(from $color-surface-100 r g b / 0.4)",
|
|
9507
|
+
[`borderColor-${COMP$1m}-keyboard`]: "$color-surface-300",
|
|
9508
|
+
[`backgroundColor-${COMP$1m}-marked`]: "rgb(from $color-primary-200 r g b / 0.4)",
|
|
9509
|
+
[`color-${COMP$1m}-placeholder`]: "$color-surface-500",
|
|
9510
|
+
[`color-${COMP$1m}-codefence`]: "$color-surface-900",
|
|
9511
|
+
[`color-${COMP$1m}-subheading`]: "$textColor-secondary",
|
|
9512
|
+
[`color-${COMP$1m}-secondary`]: "$textColor-secondary",
|
|
9410
9513
|
dark: {
|
|
9411
|
-
[`backgroundColor-${COMP$
|
|
9514
|
+
[`backgroundColor-${COMP$1m}-marked`]: "rgb(from $color-primary-400 r g b / 0.4)"
|
|
9412
9515
|
}
|
|
9413
9516
|
}
|
|
9414
9517
|
});
|
|
9415
9518
|
const textComponentRenderer = createComponentRenderer(
|
|
9416
|
-
COMP$
|
|
9519
|
+
COMP$1m,
|
|
9417
9520
|
TextMd,
|
|
9418
9521
|
({ node, extractValue, className, renderChild: renderChild2, registerComponentApi }) => {
|
|
9419
9522
|
const {
|
|
@@ -9449,7 +9552,7 @@ const textComponentRenderer = createComponentRenderer(
|
|
|
9449
9552
|
);
|
|
9450
9553
|
}
|
|
9451
9554
|
);
|
|
9452
|
-
const COMP$
|
|
9555
|
+
const COMP$1l = "Fragment";
|
|
9453
9556
|
const FragmentMd = createMetadata({
|
|
9454
9557
|
status: "stable",
|
|
9455
9558
|
description: "`Fragment` provides conditional rendering. You can use `when=` on any component to render it conditionally, use `Fragment` to apply `when` to a group of components.",
|
|
@@ -9459,7 +9562,7 @@ const FragmentMd = createMetadata({
|
|
|
9459
9562
|
}
|
|
9460
9563
|
});
|
|
9461
9564
|
const fragmentComponentRenderer = createComponentRenderer(
|
|
9462
|
-
COMP$
|
|
9565
|
+
COMP$1l,
|
|
9463
9566
|
FragmentMd,
|
|
9464
9567
|
({ node, extractValue, renderChild: renderChild2, layoutContext }) => {
|
|
9465
9568
|
let renderedChild = renderChild2(node.children, layoutContext);
|
|
@@ -9554,10 +9657,12 @@ const SelectionStore = ({
|
|
|
9554
9657
|
}) => {
|
|
9555
9658
|
const [items, setItems] = useState(selectedItems);
|
|
9556
9659
|
const valueInitializedRef = useRef(false);
|
|
9660
|
+
const currentItemsRef = useRef(selectedItems);
|
|
9557
9661
|
const refreshSelection = useEvent((allItems = EMPTY_ARRAY) => {
|
|
9558
9662
|
const safeAllItems = allItems || EMPTY_ARRAY;
|
|
9559
9663
|
const safeSelectedItems = selectedItems || EMPTY_ARRAY;
|
|
9560
9664
|
setItems(safeAllItems);
|
|
9665
|
+
currentItemsRef.current = safeAllItems;
|
|
9561
9666
|
let value = safeAllItems.filter(
|
|
9562
9667
|
(item2) => !!safeSelectedItems.find((si) => si && item2 && si[idKey] === item2[idKey])
|
|
9563
9668
|
);
|
|
@@ -9569,7 +9674,7 @@ const SelectionStore = ({
|
|
|
9569
9674
|
}
|
|
9570
9675
|
});
|
|
9571
9676
|
const setSelectedRowIds = useEvent((rowIds) => {
|
|
9572
|
-
const safeItems =
|
|
9677
|
+
const safeItems = currentItemsRef.current || EMPTY_ARRAY;
|
|
9573
9678
|
updateState({ value: safeItems.filter((item2) => rowIds.includes(item2[idKey])) });
|
|
9574
9679
|
});
|
|
9575
9680
|
const clearSelection = useEvent(() => {
|
|
@@ -9821,6 +9926,7 @@ function resolveLayoutProps(layoutProps = EMPTY_OBJECT, layoutContext) {
|
|
|
9821
9926
|
collectCss("zoom");
|
|
9822
9927
|
collectCss("cursor");
|
|
9823
9928
|
collectCss("whiteSpace");
|
|
9929
|
+
collectCss("transform");
|
|
9824
9930
|
collectCss("outline");
|
|
9825
9931
|
collectCss("outlineWidth");
|
|
9826
9932
|
collectCss("outlineColor");
|
|
@@ -10027,6 +10133,7 @@ const layoutPatterns = {
|
|
|
10027
10133
|
textDecorationStyle: [],
|
|
10028
10134
|
textDecorationThickness: [],
|
|
10029
10135
|
textUnderlineOffset: [],
|
|
10136
|
+
transform: [],
|
|
10030
10137
|
// --- Outline
|
|
10031
10138
|
outline: [],
|
|
10032
10139
|
outlineWidth: [],
|
|
@@ -10922,17 +11029,127 @@ function useRowSelection({
|
|
|
10922
11029
|
rowsSelectable,
|
|
10923
11030
|
enableMultiRowSelection,
|
|
10924
11031
|
rowDisabledPredicate,
|
|
10925
|
-
onSelectionDidChange
|
|
11032
|
+
onSelectionDidChange,
|
|
11033
|
+
initiallySelected = EMPTY_ARRAY,
|
|
11034
|
+
syncWithAppState
|
|
10926
11035
|
}) {
|
|
11036
|
+
var _a2;
|
|
10927
11037
|
const [focusedIndex, setFocusedIndex] = useState(-1);
|
|
10928
11038
|
const [selectionInterval, setSelectionInterval] = useState(null);
|
|
10929
11039
|
const { selectedItems, setSelectedRowIds, refreshSelection, idKey } = useSelectionContext();
|
|
10930
11040
|
const walkableList = useMemo(() => {
|
|
10931
11041
|
return visibleItems2.map((item2) => item2[idKey]);
|
|
10932
11042
|
}, [idKey, visibleItems2]);
|
|
11043
|
+
const [initialSelectionApplied, setInitialSelectionApplied] = useState(false);
|
|
10933
11044
|
useEffect(() => {
|
|
10934
11045
|
refreshSelection(rowsSelectable ? items : EMPTY_ARRAY);
|
|
10935
11046
|
}, [refreshSelection, items, rowsSelectable]);
|
|
11047
|
+
const appStateSelection = (_a2 = syncWithAppState == null ? void 0 : syncWithAppState.value) == null ? void 0 : _a2.selectedIds;
|
|
11048
|
+
const prevAppStateSelection = usePrevious(appStateSelection);
|
|
11049
|
+
const [syncState, setSyncState] = useState("idle");
|
|
11050
|
+
const lastAppStateSelectionRef = useRef();
|
|
11051
|
+
const lastTableSelectionRef = useRef();
|
|
11052
|
+
const lastUpdateSourceRef = useRef(null);
|
|
11053
|
+
useEffect(() => {
|
|
11054
|
+
if (!rowsSelectable || !syncWithAppState || !appStateSelection || syncState === "updating_to_appstate") {
|
|
11055
|
+
return;
|
|
11056
|
+
}
|
|
11057
|
+
const appStateChanged = appStateSelection !== prevAppStateSelection;
|
|
11058
|
+
const isDifferentFromLastKnown = JSON.stringify([...appStateSelection || []].sort()) !== JSON.stringify([...lastAppStateSelectionRef.current || []].sort());
|
|
11059
|
+
const wasNotOurUpdate = lastUpdateSourceRef.current !== "table";
|
|
11060
|
+
if (appStateChanged && isDifferentFromLastKnown && wasNotOurUpdate && items.length > 0) {
|
|
11061
|
+
setSyncState("updating_from_appstate");
|
|
11062
|
+
const validIds = appStateSelection.filter(
|
|
11063
|
+
(id) => items.some((item2) => item2[idKey] === id)
|
|
11064
|
+
);
|
|
11065
|
+
const idsToSelect = enableMultiRowSelection ? validIds : validIds.slice(0, 1);
|
|
11066
|
+
lastAppStateSelectionRef.current = [...appStateSelection];
|
|
11067
|
+
lastTableSelectionRef.current = [...idsToSelect];
|
|
11068
|
+
lastUpdateSourceRef.current = "appstate";
|
|
11069
|
+
setSelectedRowIds(idsToSelect);
|
|
11070
|
+
setInitialSelectionApplied(true);
|
|
11071
|
+
}
|
|
11072
|
+
}, [
|
|
11073
|
+
appStateSelection,
|
|
11074
|
+
prevAppStateSelection,
|
|
11075
|
+
items,
|
|
11076
|
+
rowsSelectable,
|
|
11077
|
+
syncWithAppState,
|
|
11078
|
+
idKey,
|
|
11079
|
+
enableMultiRowSelection,
|
|
11080
|
+
setSelectedRowIds,
|
|
11081
|
+
syncState
|
|
11082
|
+
]);
|
|
11083
|
+
useEffect(() => {
|
|
11084
|
+
var _a3;
|
|
11085
|
+
if (!rowsSelectable || !syncWithAppState || syncState === "updating_from_appstate") {
|
|
11086
|
+
return;
|
|
11087
|
+
}
|
|
11088
|
+
const currentSelectionIds = selectedItems.map((item2) => item2[idKey]);
|
|
11089
|
+
const appStateSelectionIds = appStateSelection || [];
|
|
11090
|
+
const tableChanged = JSON.stringify([...currentSelectionIds].sort()) !== JSON.stringify([...lastTableSelectionRef.current || []].sort());
|
|
11091
|
+
const isDifferentFromAppState = JSON.stringify([...currentSelectionIds].sort()) !== JSON.stringify([...appStateSelectionIds].sort());
|
|
11092
|
+
const wasNotAppStateUpdate = lastUpdateSourceRef.current !== "appstate";
|
|
11093
|
+
if (tableChanged && isDifferentFromAppState && wasNotAppStateUpdate) {
|
|
11094
|
+
setSyncState("updating_to_appstate");
|
|
11095
|
+
lastTableSelectionRef.current = [...currentSelectionIds];
|
|
11096
|
+
lastAppStateSelectionRef.current = [...currentSelectionIds];
|
|
11097
|
+
lastUpdateSourceRef.current = "table";
|
|
11098
|
+
(_a3 = syncWithAppState.update) == null ? void 0 : _a3.call(syncWithAppState, { selectedIds: currentSelectionIds });
|
|
11099
|
+
}
|
|
11100
|
+
}, [
|
|
11101
|
+
selectedItems,
|
|
11102
|
+
syncWithAppState,
|
|
11103
|
+
appStateSelection,
|
|
11104
|
+
idKey,
|
|
11105
|
+
rowsSelectable,
|
|
11106
|
+
syncState
|
|
11107
|
+
]);
|
|
11108
|
+
useEffect(() => {
|
|
11109
|
+
if (syncState !== "idle") {
|
|
11110
|
+
const resetTimer = requestAnimationFrame(() => {
|
|
11111
|
+
setSyncState("idle");
|
|
11112
|
+
});
|
|
11113
|
+
return () => cancelAnimationFrame(resetTimer);
|
|
11114
|
+
}
|
|
11115
|
+
}, [syncState, appStateSelection, selectedItems]);
|
|
11116
|
+
useEffect(() => {
|
|
11117
|
+
if (syncState === "idle") {
|
|
11118
|
+
const clearTimer = requestAnimationFrame(() => {
|
|
11119
|
+
lastUpdateSourceRef.current = null;
|
|
11120
|
+
});
|
|
11121
|
+
return () => cancelAnimationFrame(clearTimer);
|
|
11122
|
+
}
|
|
11123
|
+
}, [syncState]);
|
|
11124
|
+
useEffect(() => {
|
|
11125
|
+
if (syncWithAppState) {
|
|
11126
|
+
return;
|
|
11127
|
+
}
|
|
11128
|
+
if (!rowsSelectable || !initiallySelected || initiallySelected.length === 0 || initialSelectionApplied) {
|
|
11129
|
+
return;
|
|
11130
|
+
}
|
|
11131
|
+
if (items.length > 0) {
|
|
11132
|
+
const frameId = requestAnimationFrame(() => {
|
|
11133
|
+
const validIds = initiallySelected.filter((id) => items.some((item2) => item2[idKey] === id));
|
|
11134
|
+
if (validIds.length > 0) {
|
|
11135
|
+
const idsToSelect = enableMultiRowSelection ? validIds : [validIds[0]];
|
|
11136
|
+
setSelectedRowIds(idsToSelect);
|
|
11137
|
+
setInitialSelectionApplied(true);
|
|
11138
|
+
}
|
|
11139
|
+
});
|
|
11140
|
+
return () => cancelAnimationFrame(frameId);
|
|
11141
|
+
}
|
|
11142
|
+
}, [
|
|
11143
|
+
items,
|
|
11144
|
+
initiallySelected,
|
|
11145
|
+
rowsSelectable,
|
|
11146
|
+
idKey,
|
|
11147
|
+
enableMultiRowSelection,
|
|
11148
|
+
setSelectedRowIds,
|
|
11149
|
+
initialSelectionApplied,
|
|
11150
|
+
selectedItems,
|
|
11151
|
+
syncWithAppState
|
|
11152
|
+
]);
|
|
10936
11153
|
const prevEnableMultiRowSelection = usePrevious(enableMultiRowSelection);
|
|
10937
11154
|
useEffect(() => {
|
|
10938
11155
|
if (prevEnableMultiRowSelection && !enableMultiRowSelection) {
|
|
@@ -11564,6 +11781,8 @@ const Table = forwardRef(
|
|
|
11564
11781
|
headerHeight,
|
|
11565
11782
|
rowsSelectable = defaultProps$Z.rowsSelectable,
|
|
11566
11783
|
enableMultiRowSelection = defaultProps$Z.enableMultiRowSelection,
|
|
11784
|
+
initiallySelected = defaultProps$Z.initiallySelected,
|
|
11785
|
+
syncWithAppState,
|
|
11567
11786
|
pageSizeOptions = defaultProps$Z.pageSizeOptions,
|
|
11568
11787
|
pageSize = (pageSizeOptions == null ? void 0 : pageSizeOptions[0]) || DEFAULT_PAGE_SIZES[0],
|
|
11569
11788
|
currentPageIndex = 0,
|
|
@@ -11632,7 +11851,9 @@ const Table = forwardRef(
|
|
|
11632
11851
|
rowsSelectable,
|
|
11633
11852
|
enableMultiRowSelection,
|
|
11634
11853
|
rowDisabledPredicate,
|
|
11635
|
-
onSelectionDidChange
|
|
11854
|
+
onSelectionDidChange,
|
|
11855
|
+
initiallySelected,
|
|
11856
|
+
syncWithAppState
|
|
11636
11857
|
});
|
|
11637
11858
|
const dataWithOrder = useMemo(() => {
|
|
11638
11859
|
return safeData.map((item2, index) => {
|
|
@@ -12133,6 +12354,7 @@ const defaultProps$Z = {
|
|
|
12133
12354
|
loading: false,
|
|
12134
12355
|
rowsSelectable: false,
|
|
12135
12356
|
enableMultiRowSelection: true,
|
|
12357
|
+
initiallySelected: EMPTY_ARRAY,
|
|
12136
12358
|
pageSizeOptions: [5, 10, 15],
|
|
12137
12359
|
sortingDirection: "ascending",
|
|
12138
12360
|
autoFocus: false,
|
|
@@ -12149,7 +12371,7 @@ const defaultProps$Z = {
|
|
|
12149
12371
|
pageSizeSelectorPosition: "start",
|
|
12150
12372
|
pageInfoPosition: "end"
|
|
12151
12373
|
};
|
|
12152
|
-
const COMP$
|
|
12374
|
+
const COMP$1k = "Table";
|
|
12153
12375
|
const TableMd = createMetadata({
|
|
12154
12376
|
status: "stable",
|
|
12155
12377
|
description: "`Table` presents structured data for viewing, sorting, selection, and interaction.",
|
|
@@ -12161,7 +12383,7 @@ const TableMd = createMetadata({
|
|
|
12161
12383
|
`The component receives data via this property. The \`data\` property is a list of items that the \`Table\` can display.`
|
|
12162
12384
|
),
|
|
12163
12385
|
isPaginated: {
|
|
12164
|
-
description: `This property adds pagination controls to the \`${COMP$
|
|
12386
|
+
description: `This property adds pagination controls to the \`${COMP$1k}\`.`,
|
|
12165
12387
|
valueType: "boolean",
|
|
12166
12388
|
defaultValue: defaultProps$Z.isPaginated
|
|
12167
12389
|
},
|
|
@@ -12170,6 +12392,12 @@ const TableMd = createMetadata({
|
|
|
12170
12392
|
),
|
|
12171
12393
|
headerHeight: d(`This optional property is used to specify the height of the table header.`),
|
|
12172
12394
|
rowsSelectable: d(`Indicates whether the rows are selectable (\`true\`) or not (\`false\`).`),
|
|
12395
|
+
initiallySelected: d(
|
|
12396
|
+
`An array of IDs that should be initially selected when the table is rendered. This property only has an effect when the rowsSelectable property is set to \`true\`.`
|
|
12397
|
+
),
|
|
12398
|
+
syncWithAppState: d(
|
|
12399
|
+
`An AppState instance to synchronize the table's selection state with. The table will read from and write to the 'selectedIds' property of the AppState object. When provided, this takes precedence over the initiallySelected property for initial selection. You can use the AppState's didUpdate event to receive notifications when the selection changes.`
|
|
12400
|
+
),
|
|
12173
12401
|
pageSize: d(
|
|
12174
12402
|
`This property defines the number of rows to display per page when pagination is enabled.`
|
|
12175
12403
|
),
|
|
@@ -12231,13 +12459,13 @@ const TableMd = createMetadata({
|
|
|
12231
12459
|
defaultValue: defaultProps$Z.hideHeader
|
|
12232
12460
|
},
|
|
12233
12461
|
iconNoSort: d(
|
|
12234
|
-
`Allows setting an alternate icon displayed in the ${COMP$
|
|
12462
|
+
`Allows setting an alternate icon displayed in the ${COMP$1k} column header when sorting is enabled, but the column remains unsorted. You can change the default icon for all ${COMP$1k} instances with the "icon.nosort:Table" declaration in the app configuration file.`
|
|
12235
12463
|
),
|
|
12236
12464
|
iconSortAsc: d(
|
|
12237
|
-
`Allows setting an alernate icon displayed in the ${COMP$
|
|
12465
|
+
`Allows setting an alernate icon displayed in the ${COMP$1k} column header when sorting is enabled, and the column is sorted in ascending order. You can change the default icon for all ${COMP$1k} instances with the "icon.sortasc:Table" declaration in the app configuration file.`
|
|
12238
12466
|
),
|
|
12239
12467
|
iconSortDesc: d(
|
|
12240
|
-
`Allows setting an alternate icon displayed in the ${COMP$
|
|
12468
|
+
`Allows setting an alternate icon displayed in the ${COMP$1k} column header when sorting is enabled, and the column is sorted in descending order. You can change the default icon for all ${COMP$1k} instances with the "icon.sortdesc:Table" declaration in the app configuration file.`
|
|
12241
12469
|
),
|
|
12242
12470
|
enableMultiRowSelection: {
|
|
12243
12471
|
description: `This boolean property indicates whether you can select multiple rows in the table. This property only has an effect when the rowsSelectable property is set. Setting it to \`false\` limits selection to a single row.`,
|
|
@@ -12305,33 +12533,33 @@ const TableMd = createMetadata({
|
|
|
12305
12533
|
},
|
|
12306
12534
|
themeVars: parseScssVar(styles$12.themeVars),
|
|
12307
12535
|
defaultThemeVars: {
|
|
12308
|
-
[`padding-heading-${COMP$
|
|
12309
|
-
[`padding-cell-${COMP$
|
|
12310
|
-
[`paddingHorizontal-cell-first-${COMP$
|
|
12311
|
-
[`paddingHorizontal-cell-last-${COMP$
|
|
12312
|
-
[`border-cell-${COMP$
|
|
12313
|
-
[`outlineWidth-heading-${COMP$
|
|
12314
|
-
[`outlineStyle-heading-${COMP$
|
|
12315
|
-
[`outlineOffset-heading-${COMP$
|
|
12316
|
-
[`fontSize-heading-${COMP$
|
|
12317
|
-
[`fontWeight-heading-${COMP$
|
|
12318
|
-
[`textTransform-heading-${COMP$
|
|
12319
|
-
[`fontSize-row-${COMP$
|
|
12536
|
+
[`padding-heading-${COMP$1k}`]: `$space-2 $space-1 $space-2 $space-2`,
|
|
12537
|
+
[`padding-cell-${COMP$1k}`]: "$space-2 $space-1 $space-2 $space-2",
|
|
12538
|
+
[`paddingHorizontal-cell-first-${COMP$1k}`]: "$space-5",
|
|
12539
|
+
[`paddingHorizontal-cell-last-${COMP$1k}`]: "$space-1",
|
|
12540
|
+
[`border-cell-${COMP$1k}`]: "1px solid $borderColor",
|
|
12541
|
+
[`outlineWidth-heading-${COMP$1k}--focus`]: "$outlineWidth--focus",
|
|
12542
|
+
[`outlineStyle-heading-${COMP$1k}--focus`]: "$outlineStyle--focus",
|
|
12543
|
+
[`outlineOffset-heading-${COMP$1k}--focus`]: "$outlineOffset--focus",
|
|
12544
|
+
[`fontSize-heading-${COMP$1k}`]: "$fontSize-tiny",
|
|
12545
|
+
[`fontWeight-heading-${COMP$1k}`]: "$fontWeight-bold",
|
|
12546
|
+
[`textTransform-heading-${COMP$1k}`]: "uppercase",
|
|
12547
|
+
[`fontSize-row-${COMP$1k}`]: "$fontSize-sm",
|
|
12320
12548
|
// [`backgroundColor-${COMP}`]: "transparent",
|
|
12321
12549
|
// [`backgroundColor-row-${COMP}`]: "inherit",
|
|
12322
|
-
[`backgroundColor-selected-${COMP$
|
|
12323
|
-
[`backgroundColor-pagination-${COMP$
|
|
12324
|
-
[`outlineColor-heading-${COMP$
|
|
12325
|
-
[`textColor-pagination-${COMP$
|
|
12326
|
-
[`backgroundColor-row-${COMP$
|
|
12327
|
-
[`backgroundColor-selected-${COMP$
|
|
12328
|
-
[`backgroundColor-heading-${COMP$
|
|
12329
|
-
[`backgroundColor-heading-${COMP$
|
|
12330
|
-
[`backgroundColor-heading-${COMP$
|
|
12331
|
-
[`textColor-heading-${COMP$
|
|
12332
|
-
[`border-${COMP$
|
|
12333
|
-
[`borderBottom-last-row-${COMP$
|
|
12334
|
-
[`borderRadius-${COMP$
|
|
12550
|
+
[`backgroundColor-selected-${COMP$1k}--hover`]: `$backgroundColor-row-${COMP$1k}--hover`,
|
|
12551
|
+
[`backgroundColor-pagination-${COMP$1k}`]: `$backgroundColor-${COMP$1k}`,
|
|
12552
|
+
[`outlineColor-heading-${COMP$1k}--focus`]: "$outlineColor--focus",
|
|
12553
|
+
[`textColor-pagination-${COMP$1k}`]: "$color-secondary",
|
|
12554
|
+
[`backgroundColor-row-${COMP$1k}--hover`]: "$color-primary-50",
|
|
12555
|
+
[`backgroundColor-selected-${COMP$1k}`]: "$color-primary-100",
|
|
12556
|
+
[`backgroundColor-heading-${COMP$1k}--hover`]: "$color-surface-200",
|
|
12557
|
+
[`backgroundColor-heading-${COMP$1k}--active`]: "$color-surface-300",
|
|
12558
|
+
[`backgroundColor-heading-${COMP$1k}`]: "$color-surface-100",
|
|
12559
|
+
[`textColor-heading-${COMP$1k}`]: "$color-surface-500",
|
|
12560
|
+
[`border-${COMP$1k}`]: "0px solid transparent",
|
|
12561
|
+
[`borderBottom-last-row-${COMP$1k}`]: `$borderBottom-cell-${COMP$1k}`,
|
|
12562
|
+
[`borderRadius-${COMP$1k}`]: "$borderRadius"
|
|
12335
12563
|
}
|
|
12336
12564
|
});
|
|
12337
12565
|
const TableWithColumns = memo(forwardRef(
|
|
@@ -12451,7 +12679,9 @@ const TableWithColumns = memo(forwardRef(
|
|
|
12451
12679
|
pageInfoPosition: extractValue.asOptionalString(node.props.pageInfoPosition),
|
|
12452
12680
|
showCurrentPage: extractValue.asOptionalBoolean(node.props.showCurrentPage),
|
|
12453
12681
|
showPageInfo: extractValue.asOptionalBoolean(node.props.showPageInfo),
|
|
12454
|
-
showPageSizeSelector: extractValue.asOptionalBoolean(node.props.showPageSizeSelector)
|
|
12682
|
+
showPageSizeSelector: extractValue.asOptionalBoolean(node.props.showPageSizeSelector),
|
|
12683
|
+
initiallySelected: extractValue(node.props.initiallySelected),
|
|
12684
|
+
syncWithAppState: extractValue(node.props.syncWithAppState)
|
|
12455
12685
|
}
|
|
12456
12686
|
)
|
|
12457
12687
|
] });
|
|
@@ -12463,7 +12693,7 @@ const TableWithColumns = memo(forwardRef(
|
|
|
12463
12693
|
));
|
|
12464
12694
|
TableWithColumns.displayName = "TableWithColumns";
|
|
12465
12695
|
const tableComponentRenderer = createComponentRenderer(
|
|
12466
|
-
COMP$
|
|
12696
|
+
COMP$1k,
|
|
12467
12697
|
TableMd,
|
|
12468
12698
|
({
|
|
12469
12699
|
extractValue,
|
|
@@ -12547,7 +12777,7 @@ function StickyBox({ children, uid, style: style2, to = defaultProps$Y.to, class
|
|
|
12547
12777
|
)
|
|
12548
12778
|
] });
|
|
12549
12779
|
}
|
|
12550
|
-
const COMP$
|
|
12780
|
+
const COMP$1j = "StickyBox";
|
|
12551
12781
|
const StickyBoxMd = createMetadata({
|
|
12552
12782
|
status: "stable",
|
|
12553
12783
|
description: "`StickyBox` remains fixed at the top or bottom of the screen as the user scrolls.",
|
|
@@ -12561,11 +12791,11 @@ const StickyBoxMd = createMetadata({
|
|
|
12561
12791
|
},
|
|
12562
12792
|
themeVars: parseScssVar(styles$$.themeVars),
|
|
12563
12793
|
defaultThemeVars: {
|
|
12564
|
-
[`backgroundColor-${COMP$
|
|
12794
|
+
[`backgroundColor-${COMP$1j}`]: "$backgroundColor"
|
|
12565
12795
|
}
|
|
12566
12796
|
});
|
|
12567
12797
|
const stickyBoxComponentRenderer = createComponentRenderer(
|
|
12568
|
-
COMP$
|
|
12798
|
+
COMP$1j,
|
|
12569
12799
|
StickyBoxMd,
|
|
12570
12800
|
({ node, renderChild: renderChild2, extractValue, className }) => {
|
|
12571
12801
|
var _a2;
|
|
@@ -12608,7 +12838,7 @@ const Badge = forwardRef(function Badge2({ children, color, variant = defaultPro
|
|
|
12608
12838
|
}
|
|
12609
12839
|
);
|
|
12610
12840
|
});
|
|
12611
|
-
const COMP$
|
|
12841
|
+
const COMP$1i = "Badge";
|
|
12612
12842
|
const BadgeMd = createMetadata({
|
|
12613
12843
|
status: "stable",
|
|
12614
12844
|
description: "`Badge` displays small text labels with colored backgrounds, commonly used for status indicators, categories, tags, and counts. It supports dynamic color mapping based on content values, useful for status systems and data categorization.",
|
|
@@ -12625,7 +12855,7 @@ const BadgeMd = createMetadata({
|
|
|
12625
12855
|
defaultValue: defaultProps$X.variant
|
|
12626
12856
|
},
|
|
12627
12857
|
colorMap: {
|
|
12628
|
-
description: `The \`${COMP$
|
|
12858
|
+
description: `The \`${COMP$1i}\` component supports the mapping of a list of colors using the \`value\` prop as the key. If this property is not set, no color mapping is used.`
|
|
12629
12859
|
},
|
|
12630
12860
|
themeColor: dInternal(`(**NOT IMPLEMENTED YET**) The theme color of the component.`),
|
|
12631
12861
|
indicatorText: dInternal(
|
|
@@ -12640,18 +12870,18 @@ const BadgeMd = createMetadata({
|
|
|
12640
12870
|
events: {},
|
|
12641
12871
|
themeVars: parseScssVar(styles$_.themeVars),
|
|
12642
12872
|
defaultThemeVars: {
|
|
12643
|
-
[`padding-${COMP$
|
|
12644
|
-
[`border-${COMP$
|
|
12645
|
-
[`padding-${COMP$
|
|
12646
|
-
[`borderRadius-${COMP$
|
|
12647
|
-
[`fontSize-${COMP$
|
|
12648
|
-
[`fontSize-${COMP$
|
|
12649
|
-
[`backgroundColor-${COMP$
|
|
12650
|
-
[`textColor-${COMP$
|
|
12873
|
+
[`padding-${COMP$1i}`]: `$space-0_5 $space-2`,
|
|
12874
|
+
[`border-${COMP$1i}`]: `0px solid $borderColor`,
|
|
12875
|
+
[`padding-${COMP$1i}-pill`]: `$space-0_5 $space-2`,
|
|
12876
|
+
[`borderRadius-${COMP$1i}`]: "4px",
|
|
12877
|
+
[`fontSize-${COMP$1i}`]: "0.8em",
|
|
12878
|
+
[`fontSize-${COMP$1i}-pill`]: "0.8em",
|
|
12879
|
+
[`backgroundColor-${COMP$1i}`]: "rgb(from $color-secondary-500 r g b / 0.6)",
|
|
12880
|
+
[`textColor-${COMP$1i}`]: "$const-color-surface-0"
|
|
12651
12881
|
}
|
|
12652
12882
|
});
|
|
12653
12883
|
const badgeComponentRenderer = createComponentRenderer(
|
|
12654
|
-
COMP$
|
|
12884
|
+
COMP$1i,
|
|
12655
12885
|
BadgeMd,
|
|
12656
12886
|
({ node, extractValue, renderChild: renderChild2, className }) => {
|
|
12657
12887
|
var _a2;
|
|
@@ -12751,23 +12981,23 @@ function abbrevName(name) {
|
|
|
12751
12981
|
}
|
|
12752
12982
|
return null;
|
|
12753
12983
|
}
|
|
12754
|
-
const COMP$
|
|
12984
|
+
const COMP$1h = "Avatar";
|
|
12755
12985
|
const AvatarMd = createMetadata({
|
|
12756
12986
|
status: "stable",
|
|
12757
12987
|
description: "`Avatar` displays a user or entity's profile picture as a circular image, with automatic fallback to initials when no image is provided. It's commonly used in headers, user lists, comments, and anywhere you need to represent a person or organization.",
|
|
12758
12988
|
props: {
|
|
12759
12989
|
size: {
|
|
12760
|
-
description: `This property defines the display size of the ${COMP$
|
|
12990
|
+
description: `This property defines the display size of the ${COMP$1h}.`,
|
|
12761
12991
|
availableValues: sizeMd,
|
|
12762
12992
|
valueType: "string",
|
|
12763
12993
|
defaultValue: defaultProps$W.size
|
|
12764
12994
|
},
|
|
12765
12995
|
name: {
|
|
12766
|
-
description: `This property sets the name value the ${COMP$
|
|
12996
|
+
description: `This property sets the name value the ${COMP$1h} uses to display initials. If neither this property nor \`url\` is defined, an empty avatar is displayed.`,
|
|
12767
12997
|
valueType: "string"
|
|
12768
12998
|
},
|
|
12769
12999
|
url: {
|
|
12770
|
-
description: `This property specifies the URL of the image to display in the ${COMP$
|
|
13000
|
+
description: `This property specifies the URL of the image to display in the ${COMP$1h}. If neither this property nor \`name\` is defined, an empty avatar is displayed.`,
|
|
12771
13001
|
valueType: "string"
|
|
12772
13002
|
}
|
|
12773
13003
|
},
|
|
@@ -12776,16 +13006,16 @@ const AvatarMd = createMetadata({
|
|
|
12776
13006
|
},
|
|
12777
13007
|
themeVars: parseScssVar(styles$Z.themeVars),
|
|
12778
13008
|
defaultThemeVars: {
|
|
12779
|
-
[`borderRadius-${COMP$
|
|
12780
|
-
[`boxShadow-${COMP$
|
|
12781
|
-
[`textColor-${COMP$
|
|
12782
|
-
[`fontWeight-${COMP$
|
|
12783
|
-
[`border-${COMP$
|
|
12784
|
-
[`backgroundColor-${COMP$
|
|
13009
|
+
[`borderRadius-${COMP$1h}`]: "4px",
|
|
13010
|
+
[`boxShadow-${COMP$1h}`]: "inset 0 0 0 1px rgba(4,32,69,0.1)",
|
|
13011
|
+
[`textColor-${COMP$1h}`]: "$textColor-secondary",
|
|
13012
|
+
[`fontWeight-${COMP$1h}`]: "$fontWeight-bold",
|
|
13013
|
+
[`border-${COMP$1h}`]: "0px solid $color-surface-400A80",
|
|
13014
|
+
[`backgroundColor-${COMP$1h}`]: "$color-surface-100"
|
|
12785
13015
|
}
|
|
12786
13016
|
});
|
|
12787
13017
|
const avatarComponentRenderer = createComponentRenderer(
|
|
12788
|
-
COMP$
|
|
13018
|
+
COMP$1h,
|
|
12789
13019
|
AvatarMd,
|
|
12790
13020
|
({ node, extractValue, lookupEventHandler, className, extractResourceUrl }) => {
|
|
12791
13021
|
var _a2;
|
|
@@ -12838,7 +13068,7 @@ const ContentSeparator = forwardRef(
|
|
|
12838
13068
|
);
|
|
12839
13069
|
}
|
|
12840
13070
|
);
|
|
12841
|
-
const COMP$
|
|
13071
|
+
const COMP$1g = "ContentSeparator";
|
|
12842
13072
|
const ContentSeparatorMd = createMetadata({
|
|
12843
13073
|
status: "stable",
|
|
12844
13074
|
description: "`ContentSeparator` creates visual dividers between content sections using horizontal or vertical lines. It's essential for improving readability by breaking up dense content, separating list items, or creating clear boundaries between different UI sections.",
|
|
@@ -12856,8 +13086,8 @@ const ContentSeparatorMd = createMetadata({
|
|
|
12856
13086
|
},
|
|
12857
13087
|
themeVars: parseScssVar(styles$Y.themeVars),
|
|
12858
13088
|
defaultThemeVars: {
|
|
12859
|
-
[`backgroundColor-${COMP$
|
|
12860
|
-
[`size-${COMP$
|
|
13089
|
+
[`backgroundColor-${COMP$1g}`]: "$color-surface-200",
|
|
13090
|
+
[`size-${COMP$1g}`]: "1px",
|
|
12861
13091
|
light: {
|
|
12862
13092
|
// --- No light-specific theme vars
|
|
12863
13093
|
},
|
|
@@ -12867,7 +13097,7 @@ const ContentSeparatorMd = createMetadata({
|
|
|
12867
13097
|
}
|
|
12868
13098
|
});
|
|
12869
13099
|
const contentSeparatorComponentRenderer = createComponentRenderer(
|
|
12870
|
-
COMP$
|
|
13100
|
+
COMP$1g,
|
|
12871
13101
|
ContentSeparatorMd,
|
|
12872
13102
|
({ node, className, extractValue }) => {
|
|
12873
13103
|
return /* @__PURE__ */ jsx(
|
|
@@ -12947,13 +13177,13 @@ const Card = forwardRef(function Card2({
|
|
|
12947
13177
|
}
|
|
12948
13178
|
);
|
|
12949
13179
|
});
|
|
12950
|
-
const COMP$
|
|
13180
|
+
const COMP$1f = "Card";
|
|
12951
13181
|
const CardMd = createMetadata({
|
|
12952
13182
|
status: "stable",
|
|
12953
13183
|
description: "`Card` is a versatile container that groups related content with a visual boundary, typically featuring background color, padding, borders, and rounded corners. It's ideal for organizing information, creating sections, and establishing visual hierarchy in your interface.",
|
|
12954
13184
|
props: {
|
|
12955
13185
|
avatarUrl: {
|
|
12956
|
-
description: `The url for an avarar image. If not specified, but [\`showAvatar\`](#showAvatar) is true, ${COMP$
|
|
13186
|
+
description: `The url for an avarar image. If not specified, but [\`showAvatar\`](#showAvatar) is true, ${COMP$1f} will show the first letters of the [\`title\`](#title).`,
|
|
12957
13187
|
type: "string"
|
|
12958
13188
|
},
|
|
12959
13189
|
showAvatar: {
|
|
@@ -12979,33 +13209,33 @@ const CardMd = createMetadata({
|
|
|
12979
13209
|
valueType: "string"
|
|
12980
13210
|
},
|
|
12981
13211
|
orientation: {
|
|
12982
|
-
description: `An optional property that governs the ${COMP$
|
|
13212
|
+
description: `An optional property that governs the ${COMP$1f}'s orientation (whether the ${COMP$1f} lays out its children in a row or a column). If the orientation is set to \`horizontal\`, the ${COMP$1f} will display its children in a row, except for its [\`title\`](#title) and [\`subtitle\`](#subtitle).`,
|
|
12983
13213
|
availableValues: orientationOptionMd,
|
|
12984
13214
|
valueType: "string",
|
|
12985
13215
|
defaultValue: defaultProps$U.orientation
|
|
12986
13216
|
}
|
|
12987
13217
|
},
|
|
12988
13218
|
events: {
|
|
12989
|
-
click: dClick(COMP$
|
|
13219
|
+
click: dClick(COMP$1f)
|
|
12990
13220
|
},
|
|
12991
13221
|
themeVars: parseScssVar(styles$X.themeVars),
|
|
12992
13222
|
defaultThemeVars: {
|
|
12993
|
-
[`padding-${COMP$
|
|
12994
|
-
[`border-${COMP$
|
|
12995
|
-
[`borderRadius-${COMP$
|
|
12996
|
-
[`boxShadow-${COMP$
|
|
12997
|
-
[`backgroundColor-${COMP$
|
|
12998
|
-
[`gap-${COMP$
|
|
12999
|
-
[`gap-title-${COMP$
|
|
13000
|
-
[`gap-avatar-${COMP$
|
|
13001
|
-
[`verticalAlignment-title-${COMP$
|
|
13223
|
+
[`padding-${COMP$1f}`]: "$space-4",
|
|
13224
|
+
[`border-${COMP$1f}`]: "1px solid $borderColor",
|
|
13225
|
+
[`borderRadius-${COMP$1f}`]: "$borderRadius",
|
|
13226
|
+
[`boxShadow-${COMP$1f}`]: "none",
|
|
13227
|
+
[`backgroundColor-${COMP$1f}`]: "$color-surface-raised",
|
|
13228
|
+
[`gap-${COMP$1f}`]: "var(--stack-gap-default)",
|
|
13229
|
+
[`gap-title-${COMP$1f}`]: "$gap-none",
|
|
13230
|
+
[`gap-avatar-${COMP$1f}`]: "$gap-normal",
|
|
13231
|
+
[`verticalAlignment-title-${COMP$1f}`]: "center"
|
|
13002
13232
|
},
|
|
13003
13233
|
themeVarDescriptions: {
|
|
13004
|
-
[`gap-${COMP$
|
|
13005
|
-
[`gap-title-${COMP$
|
|
13006
|
-
[`gap-avatar-${COMP$
|
|
13007
|
-
[`horizontalAlignment-title-${COMP$
|
|
13008
|
-
[`verticalAlignment-title-${COMP$
|
|
13234
|
+
[`gap-${COMP$1f}`]: "The gap between the component's children.",
|
|
13235
|
+
[`gap-title-${COMP$1f}`]: "The gap between the title and the subtitle",
|
|
13236
|
+
[`gap-avatar-${COMP$1f}`]: "The gap between the avatar and the title panel",
|
|
13237
|
+
[`horizontalAlignment-title-${COMP$1f}`]: "The horizontal alignment of panel with the title and subtitle",
|
|
13238
|
+
[`verticalAlignment-title-${COMP$1f}`]: "The vertical alignment of the title and subtitle to the avatar"
|
|
13009
13239
|
}
|
|
13010
13240
|
});
|
|
13011
13241
|
const cardComponentRenderer = createComponentRenderer(
|
|
@@ -13176,13 +13406,13 @@ const FlowLayout = forwardRef(function FlowLayout2({ style: style2, className, c
|
|
|
13176
13406
|
}, [_columnGap, _rowGap]);
|
|
13177
13407
|
return /* @__PURE__ */ jsx(FlowLayoutContext.Provider, { value: flowLayoutContextValue, children: /* @__PURE__ */ jsx("div", { style: style2, className, ref: forwardedRef, ...rest, children: /* @__PURE__ */ jsx("div", { className: styles$W.outer, children: /* @__PURE__ */ jsx("div", { className: classnames(styles$W.flowContainer, styles$W.horizontal), style: innerStyle, children }) }) }) });
|
|
13178
13408
|
});
|
|
13179
|
-
const COMP$
|
|
13409
|
+
const COMP$1e = "FlowLayout";
|
|
13180
13410
|
const FlowLayoutMd = createMetadata({
|
|
13181
13411
|
status: "stable",
|
|
13182
13412
|
description: "`FlowLayout` positions content in rows with automatic wrapping. When items exceed the available horizontal space, they automatically wrap to a new line.",
|
|
13183
13413
|
props: {
|
|
13184
13414
|
gap: {
|
|
13185
|
-
description: `This property defines the gap between items in the same row and between rows. The ${COMP$
|
|
13415
|
+
description: `This property defines the gap between items in the same row and between rows. The ${COMP$1e} component creates a new row when an item is about to overflow the current row.`,
|
|
13186
13416
|
type: "string",
|
|
13187
13417
|
defaultValue: "$gap-normal"
|
|
13188
13418
|
},
|
|
@@ -13191,14 +13421,14 @@ const FlowLayoutMd = createMetadata({
|
|
|
13191
13421
|
defaultValue: defaultProps$T.columnGap
|
|
13192
13422
|
},
|
|
13193
13423
|
rowGap: {
|
|
13194
|
-
description: `The \`rowGap\` property specifies the space between the ${COMP$
|
|
13424
|
+
description: `The \`rowGap\` property specifies the space between the ${COMP$1e} rows; it overrides the \`gap\` value.`,
|
|
13195
13425
|
defaultValue: defaultProps$T.rowGap
|
|
13196
13426
|
}
|
|
13197
13427
|
},
|
|
13198
13428
|
themeVars: parseScssVar(styles$W.themeVars)
|
|
13199
13429
|
});
|
|
13200
13430
|
const flowLayoutComponentRenderer = createComponentRenderer(
|
|
13201
|
-
COMP$
|
|
13431
|
+
COMP$1e,
|
|
13202
13432
|
FlowLayoutMd,
|
|
13203
13433
|
({ node, renderChild: renderChild2, className, extractValue }) => {
|
|
13204
13434
|
var _a2, _b, _c, _d;
|
|
@@ -13234,14 +13464,14 @@ const flowLayoutComponentRenderer = createComponentRenderer(
|
|
|
13234
13464
|
}
|
|
13235
13465
|
);
|
|
13236
13466
|
const themeVars$z = `'{"padding-ModalDialog": "var(--xmlui-padding-ModalDialog)", "paddingHorizontal-ModalDialog": "var(--xmlui-paddingHorizontal-ModalDialog, var(--xmlui-padding-ModalDialog))", "paddingVertical-ModalDialog": "var(--xmlui-paddingVertical-ModalDialog, var(--xmlui-padding-ModalDialog))", "paddingLeft-ModalDialog": "var(--xmlui-paddingLeft-ModalDialog, var(--xmlui-paddingHorizontal-ModalDialog, var(--xmlui-padding-ModalDialog)))", "paddingRight-ModalDialog": "var(--xmlui-paddingRight-ModalDialog, var(--xmlui-paddingHorizontal-ModalDialog, var(--xmlui-padding-ModalDialog)))", "paddingTop-ModalDialog": "var(--xmlui-paddingTop-ModalDialog, var(--xmlui-paddingVertical-ModalDialog, var(--xmlui-padding-ModalDialog)))", "paddingBottom-ModalDialog": "var(--xmlui-paddingBottom-ModalDialog, var(--xmlui-paddingVertical-ModalDialog, var(--xmlui-padding-ModalDialog)))", "padding-overlay-ModalDialog": "var(--xmlui-padding-overlay-ModalDialog)", "paddingHorizontal-overlay-ModalDialog": "var(--xmlui-paddingHorizontal-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog))", "paddingVertical-overlay-ModalDialog": "var(--xmlui-paddingVertical-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog))", "paddingLeft-overlay-ModalDialog": "var(--xmlui-paddingLeft-overlay-ModalDialog, var(--xmlui-paddingHorizontal-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "paddingRight-overlay-ModalDialog": "var(--xmlui-paddingRight-overlay-ModalDialog, var(--xmlui-paddingHorizontal-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "paddingTop-overlay-ModalDialog": "var(--xmlui-paddingTop-overlay-ModalDialog, var(--xmlui-paddingVertical-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "paddingBottom-overlay-ModalDialog": "var(--xmlui-paddingBottom-overlay-ModalDialog, var(--xmlui-paddingVertical-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "Dialog:backgroundColor-ModalDialog": "var(--xmlui-backgroundColor-ModalDialog)", "Dialog:backgroundColor-overlay-ModalDialog": "var(--xmlui-backgroundColor-overlay-ModalDialog)", "Dialog:borderRadius-ModalDialog": "var(--xmlui-borderRadius-ModalDialog)", "Dialog:fontFamily-ModalDialog": "var(--xmlui-fontFamily-ModalDialog)", "Dialog:textColor-ModalDialog": "var(--xmlui-textColor-ModalDialog)", "Dialog:minWidth-ModalDialog": "var(--xmlui-minWidth-ModalDialog)", "Dialog:maxWidth-ModalDialog": "var(--xmlui-maxWidth-ModalDialog)", "Dialog:marginBottom-title-ModalDialog": "var(--xmlui-marginBottom-title-ModalDialog)"}'`;
|
|
13237
|
-
const overlay$2 = "
|
|
13238
|
-
const fullScreen = "
|
|
13239
|
-
const content$5 = "
|
|
13240
|
-
const overlayBg$1 = "
|
|
13241
|
-
const nested = "
|
|
13242
|
-
const dialogTitle = "
|
|
13243
|
-
const innerContent = "
|
|
13244
|
-
const closeButton = "
|
|
13467
|
+
const overlay$2 = "_overlay_r7ppn_14";
|
|
13468
|
+
const fullScreen = "_fullScreen_r7ppn_22";
|
|
13469
|
+
const content$5 = "_content_r7ppn_28";
|
|
13470
|
+
const overlayBg$1 = "_overlayBg_r7ppn_37";
|
|
13471
|
+
const nested = "_nested_r7ppn_43";
|
|
13472
|
+
const dialogTitle = "_dialogTitle_r7ppn_78";
|
|
13473
|
+
const innerContent = "_innerContent_r7ppn_83";
|
|
13474
|
+
const closeButton = "_closeButton_r7ppn_108";
|
|
13245
13475
|
const styles$V = {
|
|
13246
13476
|
themeVars: themeVars$z,
|
|
13247
13477
|
overlay: overlay$2,
|
|
@@ -13461,7 +13691,7 @@ const ModalDialog = React__default.forwardRef(
|
|
|
13461
13691
|
}
|
|
13462
13692
|
);
|
|
13463
13693
|
ModalDialog.displayName = "ModalDialog";
|
|
13464
|
-
const COMP$
|
|
13694
|
+
const COMP$1d = "ModalDialog";
|
|
13465
13695
|
const ModalDialogMd = createMetadata({
|
|
13466
13696
|
status: "stable",
|
|
13467
13697
|
description: "`ModalDialog` creates overlay dialogs that appear on top of the main interface, ideal for forms, confirmations, detailed views, or any content that requires focused user attention. Dialogs are programmatically opened using the `open()` method and can receive parameters for dynamic content.",
|
|
@@ -13488,15 +13718,15 @@ const ModalDialogMd = createMetadata({
|
|
|
13488
13718
|
},
|
|
13489
13719
|
events: {
|
|
13490
13720
|
open: d(
|
|
13491
|
-
`This event is fired when the \`${COMP$
|
|
13721
|
+
`This event is fired when the \`${COMP$1d}\` is opened either via a \`when\` or an imperative API call (\`open()\`).`
|
|
13492
13722
|
),
|
|
13493
13723
|
close: d(
|
|
13494
|
-
`This event is fired when the close button is pressed or the user clicks outside the \`${COMP$
|
|
13724
|
+
`This event is fired when the close button is pressed or the user clicks outside the \`${COMP$1d}\`.`
|
|
13495
13725
|
)
|
|
13496
13726
|
},
|
|
13497
13727
|
apis: {
|
|
13498
13728
|
close: {
|
|
13499
|
-
description: `This method is used to close the \`${COMP$
|
|
13729
|
+
description: `This method is used to close the \`${COMP$1d}\`. Invoke it using \`modalId.close()\` where \`modalId\` refers to a \`ModalDialog\` component.`,
|
|
13500
13730
|
signature: "close(): void"
|
|
13501
13731
|
},
|
|
13502
13732
|
open: {
|
|
@@ -13515,18 +13745,18 @@ const ModalDialogMd = createMetadata({
|
|
|
13515
13745
|
},
|
|
13516
13746
|
themeVars: parseScssVar(styles$V.themeVars),
|
|
13517
13747
|
defaultThemeVars: {
|
|
13518
|
-
...paddingSubject(COMP$
|
|
13519
|
-
[`backgroundColor-${COMP$
|
|
13520
|
-
[`backgroundColor-overlay-${COMP$
|
|
13521
|
-
[`textColor-${COMP$
|
|
13522
|
-
[`borderRadius-${COMP$
|
|
13523
|
-
[`fontFamily-${COMP$
|
|
13524
|
-
[`maxWidth-${COMP$
|
|
13525
|
-
[`marginBottom-title-${COMP$
|
|
13748
|
+
...paddingSubject(COMP$1d, { all: "$space-7" }),
|
|
13749
|
+
[`backgroundColor-${COMP$1d}`]: "$backgroundColor-primary",
|
|
13750
|
+
[`backgroundColor-overlay-${COMP$1d}`]: "$backgroundColor-overlay",
|
|
13751
|
+
[`textColor-${COMP$1d}`]: "$textColor-primary",
|
|
13752
|
+
[`borderRadius-${COMP$1d}`]: "$borderRadius",
|
|
13753
|
+
[`fontFamily-${COMP$1d}`]: "$fontFamily",
|
|
13754
|
+
[`maxWidth-${COMP$1d}`]: "450px",
|
|
13755
|
+
[`marginBottom-title-${COMP$1d}`]: "0"
|
|
13526
13756
|
}
|
|
13527
13757
|
});
|
|
13528
13758
|
const modalViewComponentRenderer = createComponentRenderer(
|
|
13529
|
-
COMP$
|
|
13759
|
+
COMP$1d,
|
|
13530
13760
|
ModalDialogMd,
|
|
13531
13761
|
({
|
|
13532
13762
|
node,
|
|
@@ -13606,7 +13836,7 @@ const NoResult = forwardRef(function NoResult2({
|
|
|
13606
13836
|
}
|
|
13607
13837
|
);
|
|
13608
13838
|
});
|
|
13609
|
-
const COMP$
|
|
13839
|
+
const COMP$1c = "NoResult";
|
|
13610
13840
|
const NoResultMd = createMetadata({
|
|
13611
13841
|
status: "stable",
|
|
13612
13842
|
description: "`NoResult` displays a visual indication that a query or search returned nothing.",
|
|
@@ -13625,10 +13855,10 @@ const NoResultMd = createMetadata({
|
|
|
13625
13855
|
},
|
|
13626
13856
|
themeVars: parseScssVar(styles$U.themeVars),
|
|
13627
13857
|
defaultThemeVars: {
|
|
13628
|
-
[`border-${COMP$
|
|
13629
|
-
[`paddingVertical-${COMP$
|
|
13630
|
-
[`gap-icon-${COMP$
|
|
13631
|
-
[`size-icon-${COMP$
|
|
13858
|
+
[`border-${COMP$1c}`]: "0px solid $borderColor",
|
|
13859
|
+
[`paddingVertical-${COMP$1c}`]: "$space-2",
|
|
13860
|
+
[`gap-icon-${COMP$1c}`]: "$space-2",
|
|
13861
|
+
[`size-icon-${COMP$1c}`]: "$space-8",
|
|
13632
13862
|
light: {
|
|
13633
13863
|
// --- No light-specific theme vars
|
|
13634
13864
|
},
|
|
@@ -13638,7 +13868,7 @@ const NoResultMd = createMetadata({
|
|
|
13638
13868
|
}
|
|
13639
13869
|
});
|
|
13640
13870
|
const noResultComponentRenderer = createComponentRenderer(
|
|
13641
|
-
COMP$
|
|
13871
|
+
COMP$1c,
|
|
13642
13872
|
NoResultMd,
|
|
13643
13873
|
({ node, extractValue, className }) => {
|
|
13644
13874
|
return /* @__PURE__ */ jsx(
|
|
@@ -13760,7 +13990,7 @@ const FileUploadDropZone = forwardRef(function FileUploadDropZone2({
|
|
|
13760
13990
|
] })
|
|
13761
13991
|
] });
|
|
13762
13992
|
});
|
|
13763
|
-
const COMP$
|
|
13993
|
+
const COMP$1b = "FileUploadDropZone";
|
|
13764
13994
|
const FileUploadDropZoneMd = createMetadata({
|
|
13765
13995
|
status: "stable",
|
|
13766
13996
|
description: "`FileUploadDropZone` enables users to upload files by dragging and dropping files from their local file system onto a designated area within the UI.",
|
|
@@ -13804,7 +14034,7 @@ const FileUploadDropZoneMd = createMetadata({
|
|
|
13804
14034
|
}
|
|
13805
14035
|
});
|
|
13806
14036
|
const fileUploadDropZoneComponentRenderer = createComponentRenderer(
|
|
13807
|
-
COMP$
|
|
14037
|
+
COMP$1b,
|
|
13808
14038
|
FileUploadDropZoneMd,
|
|
13809
14039
|
({ node, extractValue, updateState, renderChild: renderChild2, lookupEventHandler, registerComponentApi, className }) => {
|
|
13810
14040
|
return /* @__PURE__ */ jsx(
|
|
@@ -13825,7 +14055,7 @@ const fileUploadDropZoneComponentRenderer = createComponentRenderer(
|
|
|
13825
14055
|
);
|
|
13826
14056
|
}
|
|
13827
14057
|
);
|
|
13828
|
-
const COMP$
|
|
14058
|
+
const COMP$1a = "Icon";
|
|
13829
14059
|
const IconMd = createMetadata({
|
|
13830
14060
|
status: "stable",
|
|
13831
14061
|
description: "`Icon` displays scalable vector icons from XMLUI's built-in icon registry using simple name references. Icons are commonly used in buttons, navigation elements, and status indicators.",
|
|
@@ -13834,7 +14064,7 @@ const IconMd = createMetadata({
|
|
|
13834
14064
|
"This string property specifies the name of the icon to display. All icons have unique, case-sensitive names identifying them. If the icon name is not set, the `fallback` value is used."
|
|
13835
14065
|
),
|
|
13836
14066
|
size: {
|
|
13837
|
-
description: `This property defines the size of the \`${COMP$
|
|
14067
|
+
description: `This property defines the size of the \`${COMP$1a}\`. Note that setting the \`height\` and/or the \`width\` of the component will override this property. You can use az explicit size value (e.g., 32px) or one of these predefined values: \`xs\`, \`sm\`, \`md\`, \`lg\`.`,
|
|
13838
14068
|
availableValues: ["xs", "sm", "md", "lg"]
|
|
13839
14069
|
},
|
|
13840
14070
|
fallback: d(
|
|
@@ -13846,11 +14076,11 @@ const IconMd = createMetadata({
|
|
|
13846
14076
|
},
|
|
13847
14077
|
themeVars: parseScssVar(styles$1f.themeVars),
|
|
13848
14078
|
defaultThemeVars: {
|
|
13849
|
-
[`size-${COMP$
|
|
14079
|
+
[`size-${COMP$1a}`]: "1.25em"
|
|
13850
14080
|
}
|
|
13851
14081
|
});
|
|
13852
14082
|
const iconComponentRenderer = createComponentRenderer(
|
|
13853
|
-
COMP$
|
|
14083
|
+
COMP$1a,
|
|
13854
14084
|
IconMd,
|
|
13855
14085
|
({ node, extractValue, className, lookupEventHandler }) => {
|
|
13856
14086
|
return /* @__PURE__ */ jsx(
|
|
@@ -13922,7 +14152,7 @@ const IFrame = memo(forwardRef(function IFrame2({
|
|
|
13922
14152
|
}
|
|
13923
14153
|
);
|
|
13924
14154
|
}));
|
|
13925
|
-
const COMP$
|
|
14155
|
+
const COMP$19 = "IFrame";
|
|
13926
14156
|
const IFrameMd = createMetadata({
|
|
13927
14157
|
status: "stable",
|
|
13928
14158
|
description: "`IFrame` embeds external content from another HTML document into the current page. It provides security controls through sandbox and allow attributes, and supports features like fullscreen display and referrer policy configuration.",
|
|
@@ -13959,7 +14189,7 @@ const IFrameMd = createMetadata({
|
|
|
13959
14189
|
},
|
|
13960
14190
|
events: {
|
|
13961
14191
|
load: {
|
|
13962
|
-
description: `This event is triggered when the ${COMP$
|
|
14192
|
+
description: `This event is triggered when the ${COMP$19} content has finished loading.`
|
|
13963
14193
|
}
|
|
13964
14194
|
},
|
|
13965
14195
|
apis: {
|
|
@@ -13982,14 +14212,14 @@ const IFrameMd = createMetadata({
|
|
|
13982
14212
|
},
|
|
13983
14213
|
themeVars: parseScssVar(styles$S.themeVars),
|
|
13984
14214
|
defaultThemeVars: {
|
|
13985
|
-
[`width-${COMP$
|
|
13986
|
-
[`height-${COMP$
|
|
13987
|
-
[`borderRadius-${COMP$
|
|
13988
|
-
[`border-${COMP$
|
|
14215
|
+
[`width-${COMP$19}`]: "100%",
|
|
14216
|
+
[`height-${COMP$19}`]: "300px",
|
|
14217
|
+
[`borderRadius-${COMP$19}`]: "$borderRadius",
|
|
14218
|
+
[`border-${COMP$19}`]: "1px solid $borderColor"
|
|
13989
14219
|
}
|
|
13990
14220
|
});
|
|
13991
14221
|
const iframeComponentRenderer = createComponentRenderer(
|
|
13992
|
-
COMP$
|
|
14222
|
+
COMP$19,
|
|
13993
14223
|
IFrameMd,
|
|
13994
14224
|
({ node, extractValue, className, extractResourceUrl, lookupEventHandler, registerComponentApi }) => {
|
|
13995
14225
|
return /* @__PURE__ */ jsx(
|
|
@@ -14037,7 +14267,7 @@ function Items({ items, renderItem, reverse: reverse2 = defaultProps$P.reverse }
|
|
|
14037
14267
|
) }, index);
|
|
14038
14268
|
}) });
|
|
14039
14269
|
}
|
|
14040
|
-
const COMP$
|
|
14270
|
+
const COMP$18 = "Items";
|
|
14041
14271
|
const ItemsMd = createMetadata({
|
|
14042
14272
|
status: "stable",
|
|
14043
14273
|
description: "`Items` renders data arrays without built-in layout or styling, providing a lightweight alternative to `List`. Unlike `List`, it provides no virtualization, grouping, or visual formatting — just pure data iteration.",
|
|
@@ -14064,7 +14294,7 @@ const ItemsMd = createMetadata({
|
|
|
14064
14294
|
},
|
|
14065
14295
|
opaque: true
|
|
14066
14296
|
});
|
|
14067
|
-
const itemsComponentRenderer = createComponentRenderer(COMP$
|
|
14297
|
+
const itemsComponentRenderer = createComponentRenderer(COMP$18, ItemsMd, (rendererContext) => {
|
|
14068
14298
|
const { node, renderChild: renderChild2, extractValue, layoutContext } = rendererContext;
|
|
14069
14299
|
return /* @__PURE__ */ jsx(
|
|
14070
14300
|
Items,
|
|
@@ -14086,10 +14316,10 @@ const itemsComponentRenderer = createComponentRenderer(COMP$19, ItemsMd, (render
|
|
|
14086
14316
|
}
|
|
14087
14317
|
);
|
|
14088
14318
|
});
|
|
14089
|
-
const COMP$
|
|
14319
|
+
const COMP$17 = "SelectionStore";
|
|
14090
14320
|
const SelectionStoreMd = createMetadata({
|
|
14091
14321
|
status: "deprecated",
|
|
14092
|
-
description: `The \`${COMP$
|
|
14322
|
+
description: `The \`${COMP$17}\` is a non-visual component that may wrap components (items) and manage their selection state to accommodate the usage of other actions.`,
|
|
14093
14323
|
props: {
|
|
14094
14324
|
idKey: {
|
|
14095
14325
|
description: `The selected items in the selection store needs to have a unique ID to use as an unambiguous key for that particular item. This property uniquely identifies the selected object item via a given property. By default, the key attribute is \`"id"\`.`,
|
|
@@ -14098,7 +14328,7 @@ const SelectionStoreMd = createMetadata({
|
|
|
14098
14328
|
}
|
|
14099
14329
|
});
|
|
14100
14330
|
const selectionStoreComponentRenderer = createComponentRenderer(
|
|
14101
|
-
COMP$
|
|
14331
|
+
COMP$17,
|
|
14102
14332
|
SelectionStoreMd,
|
|
14103
14333
|
(rendererContext) => {
|
|
14104
14334
|
const { node, state, updateState, renderChild: renderChild2, registerComponentApi } = rendererContext;
|
|
@@ -14114,7 +14344,7 @@ const selectionStoreComponentRenderer = createComponentRenderer(
|
|
|
14114
14344
|
);
|
|
14115
14345
|
}
|
|
14116
14346
|
);
|
|
14117
|
-
const COMP$
|
|
14347
|
+
const COMP$16 = "Image";
|
|
14118
14348
|
const ImageMd = createMetadata({
|
|
14119
14349
|
status: "stable",
|
|
14120
14350
|
description: "`Image` displays pictures from URLs or local sources with built-in responsive sizing, aspect ratio control, and accessibility features. It handles different image formats and provides options for lazy loading and click interactions.",
|
|
@@ -14122,6 +14352,9 @@ const ImageMd = createMetadata({
|
|
|
14122
14352
|
src: d(
|
|
14123
14353
|
"This property is used to indicate the source (path) of the image to display. When not defined, no image is displayed."
|
|
14124
14354
|
),
|
|
14355
|
+
data: d(
|
|
14356
|
+
`This property contains the binary data that represents the image.`
|
|
14357
|
+
),
|
|
14125
14358
|
alt: d(`This optional property specifies an alternate text for the image.`),
|
|
14126
14359
|
fit: {
|
|
14127
14360
|
description: "This property sets how the image content should be resized to fit its container.",
|
|
@@ -14144,18 +14377,19 @@ const ImageMd = createMetadata({
|
|
|
14144
14377
|
animation: dInternal(`The optional animation object to be applied to the component`)
|
|
14145
14378
|
},
|
|
14146
14379
|
events: {
|
|
14147
|
-
click: dClick(COMP$
|
|
14380
|
+
click: dClick(COMP$16)
|
|
14148
14381
|
},
|
|
14149
14382
|
themeVars: parseScssVar(styles$1a.themeVars)
|
|
14150
14383
|
});
|
|
14151
14384
|
const imageComponentRenderer = createComponentRenderer(
|
|
14152
|
-
COMP$
|
|
14385
|
+
COMP$16,
|
|
14153
14386
|
ImageMd,
|
|
14154
14387
|
({ node, extractValue, className, extractResourceUrl }) => {
|
|
14155
14388
|
return /* @__PURE__ */ jsx(
|
|
14156
14389
|
Image,
|
|
14157
14390
|
{
|
|
14158
|
-
src: extractResourceUrl(node.props.src),
|
|
14391
|
+
src: node.props.src ? extractResourceUrl(node.props.src) : void 0,
|
|
14392
|
+
imageData: extractValue(node.props.data),
|
|
14159
14393
|
alt: extractValue(node.props.alt),
|
|
14160
14394
|
fit: extractValue(node.props.fit),
|
|
14161
14395
|
lazyLoad: extractValue.asOptionalBoolean(node.props.lazyLoad),
|
|
@@ -14173,7 +14407,7 @@ const defaultProps$O = {
|
|
|
14173
14407
|
const PageMetaTitle = ({ title: title2 = defaultProps$O.title }) => {
|
|
14174
14408
|
return /* @__PURE__ */ jsx(Helmet, { title: title2 });
|
|
14175
14409
|
};
|
|
14176
|
-
const COMP$
|
|
14410
|
+
const COMP$15 = "PageMetaTitle";
|
|
14177
14411
|
const PageMetaTitleMd = createMetadata({
|
|
14178
14412
|
status: "stable",
|
|
14179
14413
|
description: "`PageMetaTitle` dynamically sets or updates the browser tab title, enabling pages and components to override the default application name with context-specific titles.",
|
|
@@ -14185,7 +14419,7 @@ const PageMetaTitleMd = createMetadata({
|
|
|
14185
14419
|
}
|
|
14186
14420
|
});
|
|
14187
14421
|
const pageMetaTitleComponentRenderer = createComponentRenderer(
|
|
14188
|
-
COMP$
|
|
14422
|
+
COMP$15,
|
|
14189
14423
|
PageMetaTitleMd,
|
|
14190
14424
|
({ node, extractValue, renderChild: renderChild2 }) => {
|
|
14191
14425
|
return /* @__PURE__ */ jsx(PageMetaTitle, { title: extractValue(node.props.value) || renderChild2(node.children) });
|
|
@@ -14224,7 +14458,7 @@ const ProgressBar = forwardRef(function ProgressBar2({ value = defaultProps$N.va
|
|
|
14224
14458
|
}
|
|
14225
14459
|
);
|
|
14226
14460
|
});
|
|
14227
|
-
const COMP$
|
|
14461
|
+
const COMP$14 = "ProgressBar";
|
|
14228
14462
|
const ProgressBarMd = createMetadata({
|
|
14229
14463
|
status: "stable",
|
|
14230
14464
|
description: "`ProgressBar` provides a visual indicator showing the completion percentage of tasks, processes, or any measurable progress. It displays as a horizontal bar that fills from left to right based on the provided value between 0 (empty) and 1 (complete).",
|
|
@@ -14237,15 +14471,15 @@ const ProgressBarMd = createMetadata({
|
|
|
14237
14471
|
},
|
|
14238
14472
|
themeVars: parseScssVar(styles$R.themeVars),
|
|
14239
14473
|
defaultThemeVars: {
|
|
14240
|
-
[`borderRadius-${COMP$
|
|
14241
|
-
[`borderRadius-indicator-${COMP$
|
|
14242
|
-
[`thickness-${COMP$
|
|
14243
|
-
[`backgroundColor-${COMP$
|
|
14244
|
-
[`color-indicator-${COMP$
|
|
14474
|
+
[`borderRadius-${COMP$14}`]: "$borderRadius",
|
|
14475
|
+
[`borderRadius-indicator-${COMP$14}`]: "0px",
|
|
14476
|
+
[`thickness-${COMP$14}`]: "$space-2",
|
|
14477
|
+
[`backgroundColor-${COMP$14}`]: "$color-surface-200",
|
|
14478
|
+
[`color-indicator-${COMP$14}`]: "$color-primary-500"
|
|
14245
14479
|
}
|
|
14246
14480
|
});
|
|
14247
14481
|
const progressBarComponentRenderer = createComponentRenderer(
|
|
14248
|
-
COMP$
|
|
14482
|
+
COMP$14,
|
|
14249
14483
|
ProgressBarMd,
|
|
14250
14484
|
({ node, extractValue, className }) => {
|
|
14251
14485
|
return /* @__PURE__ */ jsx(
|
|
@@ -14474,13 +14708,13 @@ const Splitter = ({
|
|
|
14474
14708
|
}
|
|
14475
14709
|
);
|
|
14476
14710
|
};
|
|
14477
|
-
const COMP$
|
|
14711
|
+
const COMP$13 = "Splitter";
|
|
14478
14712
|
const baseSplitterMd = createMetadata({
|
|
14479
14713
|
status: "stable",
|
|
14480
14714
|
description: "`Splitter` component divides a container into two resizable sections. These are are identified by their names: primary and secondary. They have a draggable bar between them.",
|
|
14481
14715
|
props: {
|
|
14482
14716
|
swapped: {
|
|
14483
|
-
description: `This optional booelan property indicates whether the \`${COMP$
|
|
14717
|
+
description: `This optional booelan property indicates whether the \`${COMP$13}\` sections are layed out as primary and secondary (\`false\`) or secondary and primary (\`true\`) from left to right.`,
|
|
14484
14718
|
valueType: "boolean",
|
|
14485
14719
|
defaultValue: defaultProps$M.swapped
|
|
14486
14720
|
},
|
|
@@ -14519,10 +14753,10 @@ const baseSplitterMd = createMetadata({
|
|
|
14519
14753
|
},
|
|
14520
14754
|
themeVars: parseScssVar(styles$Q.themeVars),
|
|
14521
14755
|
defaultThemeVars: {
|
|
14522
|
-
[`backgroundColor-resizer-${COMP$
|
|
14523
|
-
[`thickness-resizer-${COMP$
|
|
14524
|
-
[`cursor-resizer-horizontal-${COMP$
|
|
14525
|
-
[`cursor-resizer-vertical-${COMP$
|
|
14756
|
+
[`backgroundColor-resizer-${COMP$13}`]: "$color-surface-100",
|
|
14757
|
+
[`thickness-resizer-${COMP$13}`]: "5px",
|
|
14758
|
+
[`cursor-resizer-horizontal-${COMP$13}`]: "ew-resize",
|
|
14759
|
+
[`cursor-resizer-vertical-${COMP$13}`]: "ns-resize"
|
|
14526
14760
|
}
|
|
14527
14761
|
});
|
|
14528
14762
|
const SplitterMd = {
|
|
@@ -14531,8 +14765,8 @@ const SplitterMd = {
|
|
|
14531
14765
|
...baseSplitterMd.props
|
|
14532
14766
|
}
|
|
14533
14767
|
};
|
|
14534
|
-
const HSplitterMd = { ...baseSplitterMd, specializedFrom: COMP$
|
|
14535
|
-
const VSplitterMd = { ...baseSplitterMd, specializedFrom: COMP$
|
|
14768
|
+
const HSplitterMd = { ...baseSplitterMd, specializedFrom: COMP$13 };
|
|
14769
|
+
const VSplitterMd = { ...baseSplitterMd, specializedFrom: COMP$13 };
|
|
14536
14770
|
const DEFAULT_ORIENTATION = "vertical";
|
|
14537
14771
|
function renderSplitter({
|
|
14538
14772
|
node,
|
|
@@ -14563,7 +14797,7 @@ function renderSplitter({
|
|
|
14563
14797
|
);
|
|
14564
14798
|
}
|
|
14565
14799
|
const splitterComponentRenderer = createComponentRenderer(
|
|
14566
|
-
COMP$
|
|
14800
|
+
COMP$13,
|
|
14567
14801
|
SplitterMd,
|
|
14568
14802
|
({ node, extractValue, renderChild: renderChild2, className, lookupEventHandler }) => {
|
|
14569
14803
|
return renderSplitter({
|
|
@@ -14930,7 +15164,7 @@ function Queue({
|
|
|
14930
15164
|
}, [doComplete, doSingle, prevQueue, queue]);
|
|
14931
15165
|
return null;
|
|
14932
15166
|
}
|
|
14933
|
-
const COMP$
|
|
15167
|
+
const COMP$12 = "Queue";
|
|
14934
15168
|
const QueueMd = createMetadata({
|
|
14935
15169
|
status: "stable",
|
|
14936
15170
|
description: "`Queue` manages sequential processing of items in FIFO (first-in, first-out) order. It is a non-visual component but provides UI progress reporting and result display.",
|
|
@@ -15003,7 +15237,7 @@ const QueueMd = createMetadata({
|
|
|
15003
15237
|
}
|
|
15004
15238
|
});
|
|
15005
15239
|
const queueComponentRenderer = createComponentRenderer(
|
|
15006
|
-
COMP$
|
|
15240
|
+
COMP$12,
|
|
15007
15241
|
QueueMd,
|
|
15008
15242
|
({ node, registerComponentApi, lookupEventHandler, renderChild: renderChild2, extractValue }) => {
|
|
15009
15243
|
return /* @__PURE__ */ jsx(
|
|
@@ -15600,7 +15834,7 @@ function MemoizedSection({
|
|
|
15600
15834
|
}
|
|
15601
15835
|
);
|
|
15602
15836
|
}
|
|
15603
|
-
const COMP$
|
|
15837
|
+
const COMP$11 = "List";
|
|
15604
15838
|
const ListMd = createMetadata({
|
|
15605
15839
|
status: "stable",
|
|
15606
15840
|
description: "`List` is a high-performance, virtualized container for rendering large datasets with built-in grouping, sorting, and visual formatting. It only renders visible items in the viewport, making it ideal for displaying thousands of records while maintaining smooth scrolling performance.",
|
|
@@ -15615,7 +15849,7 @@ const ListMd = createMetadata({
|
|
|
15615
15849
|
`This property delays the rendering of children until it is set to \`false\`, or the component receives usable list items via the [\`data\`](#data) property.`
|
|
15616
15850
|
),
|
|
15617
15851
|
limit: d(
|
|
15618
|
-
`This property limits the number of items displayed in the \`${COMP$
|
|
15852
|
+
`This property limits the number of items displayed in the \`${COMP$11}\`. If not set, all items are displayed.`
|
|
15619
15853
|
),
|
|
15620
15854
|
scrollAnchor: {
|
|
15621
15855
|
description: `This property pins the scroll position to a specified location of the list. Available values are shown below.`,
|
|
@@ -15630,7 +15864,7 @@ const ListMd = createMetadata({
|
|
|
15630
15864
|
`This optioanl property enables the ordering of list items by specifying an attribute in the data.`
|
|
15631
15865
|
),
|
|
15632
15866
|
availableGroups: d(
|
|
15633
|
-
`This property is an array of group names that the \`${COMP$
|
|
15867
|
+
`This property is an array of group names that the \`${COMP$11}\` will display. If not set, all groups in the data are displayed.`
|
|
15634
15868
|
),
|
|
15635
15869
|
groupHeaderTemplate: dComponent(
|
|
15636
15870
|
`Enables the customization of how the groups are displayed, similarly to the [\`itemTemplate\`](#itemtemplate). You can use the \`$item\` context variable to access an item group and map its individual attributes.`
|
|
@@ -15645,7 +15879,7 @@ const ListMd = createMetadata({
|
|
|
15645
15879
|
`This property defines the template to display when the list is empty.`
|
|
15646
15880
|
),
|
|
15647
15881
|
pageInfo: d(
|
|
15648
|
-
`This property contains the current page information. Setting this property also enures the \`${COMP$
|
|
15882
|
+
`This property contains the current page information. Setting this property also enures the \`${COMP$11}\` uses pagination.`
|
|
15649
15883
|
),
|
|
15650
15884
|
idKey: {
|
|
15651
15885
|
description: "Denotes which attribute of an item acts as the ID or key of the item",
|
|
@@ -15659,7 +15893,7 @@ const ListMd = createMetadata({
|
|
|
15659
15893
|
defaultProps$K.groupsInitiallyExpanded
|
|
15660
15894
|
),
|
|
15661
15895
|
defaultGroups: d(
|
|
15662
|
-
`This property adds an optional list of default groups for the \`${COMP$
|
|
15896
|
+
`This property adds an optional list of default groups for the \`${COMP$11}\` and displays the group headers in the specified order. If the data contains group headers not in this list, those headers are also displayed (after the ones in this list); however, their order is not deterministic.`
|
|
15663
15897
|
),
|
|
15664
15898
|
hideEmptyGroups: {
|
|
15665
15899
|
description: "This boolean property indicates if empty groups should be hidden (no header and footer are displayed).",
|
|
@@ -15707,7 +15941,7 @@ const ListMd = createMetadata({
|
|
|
15707
15941
|
themeVars: parseScssVar(styles$P.themeVars)
|
|
15708
15942
|
});
|
|
15709
15943
|
const dynamicHeightListComponentRenderer = createComponentRenderer(
|
|
15710
|
-
COMP$
|
|
15944
|
+
COMP$11,
|
|
15711
15945
|
ListMd,
|
|
15712
15946
|
({
|
|
15713
15947
|
node,
|
|
@@ -15810,7 +16044,7 @@ function PositionedContainer({
|
|
|
15810
16044
|
}
|
|
15811
16045
|
);
|
|
15812
16046
|
}
|
|
15813
|
-
const COMP$
|
|
16047
|
+
const COMP$10 = "PositionedContainer";
|
|
15814
16048
|
const PositionedContainerMd = createMetadata({
|
|
15815
16049
|
status: "deprecated",
|
|
15816
16050
|
description: "(**OBSOLETE**) This component was created for the ChatEngine app.",
|
|
@@ -15820,7 +16054,7 @@ const PositionedContainerMd = createMetadata({
|
|
|
15820
16054
|
themeVars: parseScssVar(styles$O.themeVars)
|
|
15821
16055
|
});
|
|
15822
16056
|
const positionedContainerComponentRenderer = createComponentRenderer(
|
|
15823
|
-
COMP$
|
|
16057
|
+
COMP$10,
|
|
15824
16058
|
PositionedContainerMd,
|
|
15825
16059
|
({ node, extractValue, renderChild: renderChild2, className }) => {
|
|
15826
16060
|
return /* @__PURE__ */ jsx(
|
|
@@ -15856,7 +16090,7 @@ function ChangeListener({ listenTo, onChange, throttleWaitInMs = defaultProps$J.
|
|
|
15856
16090
|
}, [listenTo, throttledOnChange, prevValue]);
|
|
15857
16091
|
return null;
|
|
15858
16092
|
}
|
|
15859
|
-
const COMP
|
|
16093
|
+
const COMP$$ = "ChangeListener";
|
|
15860
16094
|
const ChangeListenerMd = createMetadata({
|
|
15861
16095
|
status: "stable",
|
|
15862
16096
|
description: "`ChangeListener` is an invisible component that watches for changes in values and triggers actions in response. It's essential for creating reactive behavior when you need to respond to data changes, state updates, or component property modifications outside of normal event handlers.",
|
|
@@ -15872,11 +16106,11 @@ const ChangeListenerMd = createMetadata({
|
|
|
15872
16106
|
}
|
|
15873
16107
|
},
|
|
15874
16108
|
events: {
|
|
15875
|
-
didChange: dDidChange(COMP
|
|
16109
|
+
didChange: dDidChange(COMP$$)
|
|
15876
16110
|
}
|
|
15877
16111
|
});
|
|
15878
16112
|
const changeListenerComponentRenderer = createComponentRenderer(
|
|
15879
|
-
COMP
|
|
16113
|
+
COMP$$,
|
|
15880
16114
|
ChangeListenerMd,
|
|
15881
16115
|
({ node, lookupEventHandler, extractValue }) => {
|
|
15882
16116
|
return /* @__PURE__ */ jsx(
|
|
@@ -17427,18 +17661,12 @@ const TextBox = forwardRef(function TextBox2({
|
|
|
17427
17661
|
autoFocus,
|
|
17428
17662
|
readOnly: readOnly2,
|
|
17429
17663
|
tabIndex,
|
|
17430
|
-
label: label2,
|
|
17431
|
-
labelPosition,
|
|
17432
|
-
labelWidth,
|
|
17433
|
-
labelBreak: labelBreak2,
|
|
17434
17664
|
required: required2,
|
|
17435
17665
|
showPasswordToggle,
|
|
17436
17666
|
passwordVisibleIcon = defaultProps$I.passwordVisibleIcon,
|
|
17437
17667
|
passwordHiddenIcon = defaultProps$I.passwordHiddenIcon,
|
|
17438
17668
|
...rest
|
|
17439
17669
|
}, ref) {
|
|
17440
|
-
const _id = useId();
|
|
17441
|
-
id = id || _id;
|
|
17442
17670
|
const inputRef = useRef(null);
|
|
17443
17671
|
const [showPassword, setShowPassword] = useState(false);
|
|
17444
17672
|
const actualType = type === "password" && showPassword ? "text" : type;
|
|
@@ -17493,88 +17721,73 @@ const TextBox = forwardRef(function TextBox2({
|
|
|
17493
17721
|
setValue
|
|
17494
17722
|
});
|
|
17495
17723
|
}, [focus, registerComponentApi, setValue]);
|
|
17496
|
-
return /* @__PURE__ */
|
|
17497
|
-
|
|
17724
|
+
return /* @__PURE__ */ jsxs(
|
|
17725
|
+
"div",
|
|
17498
17726
|
{
|
|
17499
17727
|
...rest,
|
|
17500
|
-
id,
|
|
17501
|
-
labelPosition,
|
|
17502
|
-
label: label2,
|
|
17503
|
-
labelWidth,
|
|
17504
|
-
labelBreak: labelBreak2,
|
|
17505
|
-
required: required2,
|
|
17506
|
-
enabled: enabled2,
|
|
17507
|
-
style: style2,
|
|
17508
|
-
className,
|
|
17509
17728
|
ref,
|
|
17510
|
-
|
|
17511
|
-
|
|
17512
|
-
|
|
17513
|
-
|
|
17514
|
-
|
|
17515
|
-
|
|
17516
|
-
|
|
17517
|
-
|
|
17518
|
-
|
|
17519
|
-
|
|
17520
|
-
|
|
17521
|
-
|
|
17522
|
-
|
|
17523
|
-
|
|
17524
|
-
|
|
17525
|
-
|
|
17526
|
-
|
|
17527
|
-
|
|
17528
|
-
|
|
17529
|
-
|
|
17530
|
-
|
|
17531
|
-
|
|
17532
|
-
|
|
17533
|
-
|
|
17534
|
-
|
|
17535
|
-
|
|
17536
|
-
|
|
17537
|
-
|
|
17538
|
-
|
|
17539
|
-
|
|
17540
|
-
|
|
17541
|
-
|
|
17542
|
-
|
|
17543
|
-
|
|
17544
|
-
|
|
17545
|
-
|
|
17546
|
-
|
|
17547
|
-
|
|
17548
|
-
|
|
17549
|
-
|
|
17550
|
-
|
|
17551
|
-
|
|
17552
|
-
|
|
17553
|
-
|
|
17554
|
-
|
|
17555
|
-
|
|
17556
|
-
|
|
17557
|
-
|
|
17558
|
-
|
|
17559
|
-
|
|
17560
|
-
|
|
17561
|
-
|
|
17562
|
-
|
|
17563
|
-
|
|
17564
|
-
|
|
17565
|
-
|
|
17566
|
-
|
|
17567
|
-
|
|
17568
|
-
|
|
17569
|
-
|
|
17570
|
-
|
|
17571
|
-
|
|
17572
|
-
className: styles$N.adornment
|
|
17573
|
-
}
|
|
17574
|
-
)
|
|
17575
|
-
]
|
|
17576
|
-
}
|
|
17577
|
-
)
|
|
17729
|
+
className: classnames(styles$N.inputRoot, {
|
|
17730
|
+
[styles$N.disabled]: !enabled2,
|
|
17731
|
+
[styles$N.readOnly]: readOnly2,
|
|
17732
|
+
[styles$N.error]: validationStatus === "error",
|
|
17733
|
+
[styles$N.warning]: validationStatus === "warning",
|
|
17734
|
+
[styles$N.valid]: validationStatus === "valid"
|
|
17735
|
+
}),
|
|
17736
|
+
tabIndex: -1,
|
|
17737
|
+
onFocus: focus,
|
|
17738
|
+
style: { gap },
|
|
17739
|
+
children: [
|
|
17740
|
+
/* @__PURE__ */ jsx(
|
|
17741
|
+
Adornment,
|
|
17742
|
+
{
|
|
17743
|
+
"data-part-id": PART_START_ADORNMENT,
|
|
17744
|
+
text: startText,
|
|
17745
|
+
iconName: startIcon,
|
|
17746
|
+
className: classnames(styles$N.adornment)
|
|
17747
|
+
}
|
|
17748
|
+
),
|
|
17749
|
+
/* @__PURE__ */ jsx(
|
|
17750
|
+
"input",
|
|
17751
|
+
{
|
|
17752
|
+
id,
|
|
17753
|
+
ref: inputRef,
|
|
17754
|
+
"data-part-id": PART_INPUT,
|
|
17755
|
+
type: actualType,
|
|
17756
|
+
className: classnames(styles$N.input, {
|
|
17757
|
+
[styles$N.readOnly]: readOnly2
|
|
17758
|
+
}),
|
|
17759
|
+
disabled: !enabled2,
|
|
17760
|
+
value: localValue,
|
|
17761
|
+
maxLength,
|
|
17762
|
+
placeholder: placeholder2,
|
|
17763
|
+
onChange: onInputChange,
|
|
17764
|
+
onFocus: handleOnFocus,
|
|
17765
|
+
onBlur: handleOnBlur,
|
|
17766
|
+
onKeyDown,
|
|
17767
|
+
readOnly: readOnly2,
|
|
17768
|
+
autoFocus,
|
|
17769
|
+
tabIndex: enabled2 ? tabIndex : -1,
|
|
17770
|
+
required: required2
|
|
17771
|
+
}
|
|
17772
|
+
),
|
|
17773
|
+
type === "password" && showPasswordToggle ? /* @__PURE__ */ jsx(
|
|
17774
|
+
Adornment,
|
|
17775
|
+
{
|
|
17776
|
+
"data-part-id": PART_END_ADORNMENT,
|
|
17777
|
+
iconName: showPassword ? passwordVisibleIcon : passwordHiddenIcon,
|
|
17778
|
+
className: classnames(styles$N.adornment, styles$N.passwordToggle),
|
|
17779
|
+
onClick: togglePasswordVisibility
|
|
17780
|
+
}
|
|
17781
|
+
) : /* @__PURE__ */ jsx(
|
|
17782
|
+
Adornment,
|
|
17783
|
+
{
|
|
17784
|
+
"data-part-id": PART_END_ADORNMENT,
|
|
17785
|
+
text: endText,
|
|
17786
|
+
iconName: endIcon,
|
|
17787
|
+
className: styles$N.adornment
|
|
17788
|
+
}
|
|
17789
|
+
)
|
|
17790
|
+
]
|
|
17578
17791
|
}
|
|
17579
17792
|
);
|
|
17580
17793
|
});
|
|
@@ -19466,7 +19679,7 @@ const DatePicker = forwardRef(function DatePicker2({
|
|
|
19466
19679
|
...rest
|
|
19467
19680
|
}, ref) {
|
|
19468
19681
|
const _weekStartsOn = weekStartsOn >= 0 && weekStartsOn <= 6 ? weekStartsOn : 0;
|
|
19469
|
-
const [
|
|
19682
|
+
const [_, setIsMenuFocused] = useState(false);
|
|
19470
19683
|
const [referenceElement, setReferenceElement] = useState(null);
|
|
19471
19684
|
const [inlineMonth, setInlineMonth] = useState();
|
|
19472
19685
|
const generatedId2 = useId();
|
|
@@ -19482,7 +19695,6 @@ const DatePicker = forwardRef(function DatePicker2({
|
|
|
19482
19695
|
}
|
|
19483
19696
|
return void 0;
|
|
19484
19697
|
}, [value, mode]);
|
|
19485
|
-
console.log("sel", selected2);
|
|
19486
19698
|
useEffect(() => {
|
|
19487
19699
|
if (!dateFormats$1.includes(dateFormat)) {
|
|
19488
19700
|
throw new Error(
|
|
@@ -19491,6 +19703,7 @@ const DatePicker = forwardRef(function DatePicker2({
|
|
|
19491
19703
|
}
|
|
19492
19704
|
}, [dateFormat]);
|
|
19493
19705
|
const startDate = useMemo(() => {
|
|
19706
|
+
console.log(minValue, parse(minValue, dateFormat, /* @__PURE__ */ new Date()));
|
|
19494
19707
|
return minValue ? parse(minValue, dateFormat, /* @__PURE__ */ new Date()) : void 0;
|
|
19495
19708
|
}, [minValue, dateFormat]);
|
|
19496
19709
|
const endDate = useMemo(() => {
|
|
@@ -19647,7 +19860,7 @@ const DatePicker = forwardRef(function DatePicker2({
|
|
|
19647
19860
|
setOpen(false);
|
|
19648
19861
|
}
|
|
19649
19862
|
},
|
|
19650
|
-
[onDidChange, updateState, mode, dateFormat]
|
|
19863
|
+
[onDidChange, updateState, mode, dateFormat, readOnly2]
|
|
19651
19864
|
);
|
|
19652
19865
|
return inline ? /* @__PURE__ */ jsx(
|
|
19653
19866
|
ItemWithLabel,
|
|
@@ -20884,17 +21097,17 @@ function AutoCompleteOption(option) {
|
|
|
20884
21097
|
id
|
|
20885
21098
|
);
|
|
20886
21099
|
}
|
|
20887
|
-
const themeVars$j = `'{"Input:backgroundColor-track-Slider": "var(--xmlui-backgroundColor-track-Slider)", "Input:borderRadius-Slider-default": "var(--xmlui-borderRadius-Slider-default)", "Input:borderColor-Slider-default": "var(--xmlui-borderColor-Slider-default)", "Input:borderWidth-Slider-default": "var(--xmlui-borderWidth-Slider-default)", "Input:borderStyle-Slider-default": "var(--xmlui-borderStyle-Slider-default)", "Input:boxShadow-Slider-default": "var(--xmlui-boxShadow-Slider-default)", "Input:borderColor-Slider-default--hover": "var(--xmlui-borderColor-Slider-default--hover)", "Input:boxShadow-Slider-default--hover": "var(--xmlui-boxShadow-Slider-default--hover)", "Input:borderColor-Slider-default--focus": "var(--xmlui-borderColor-Slider-default--focus)", "Input:boxShadow-Slider-default--focus": "var(--xmlui-boxShadow-Slider-default--focus)", "Input:borderRadius-Slider-error": "var(--xmlui-borderRadius-Slider-error)", "Input:borderColor-Slider-error": "var(--xmlui-borderColor-Slider-error)", "Input:borderWidth-Slider-error": "var(--xmlui-borderWidth-Slider-error)", "Input:borderStyle-Slider-error": "var(--xmlui-borderStyle-Slider-error)", "Input:boxShadow-Slider-error": "var(--xmlui-boxShadow-Slider-error)", "Input:borderColor-Slider-error--hover": "var(--xmlui-borderColor-Slider-error--hover)", "Input:boxShadow-Slider-error--hover": "var(--xmlui-boxShadow-Slider-error--hover)", "Input:borderColor-Slider-error--focus": "var(--xmlui-borderColor-Slider-error--focus)", "Input:boxShadow-Slider-error--focus": "var(--xmlui-boxShadow-Slider-error--focus)", "Input:borderRadius-Slider-warning": "var(--xmlui-borderRadius-Slider-warning)", "Input:borderColor-Slider-warning": "var(--xmlui-borderColor-Slider-warning)", "Input:borderWidth-Slider-warning": "var(--xmlui-borderWidth-Slider-warning)", "Input:borderStyle-Slider-warning": "var(--xmlui-borderStyle-Slider-warning)", "Input:boxShadow-Slider-warning": "var(--xmlui-boxShadow-Slider-warning)", "Input:borderColor-Slider-warning--hover": "var(--xmlui-borderColor-Slider-warning--hover)", "Input:boxShadow-Slider-warning--hover": "var(--xmlui-boxShadow-Slider-warning--hover)", "Input:borderColor-Slider-warning--focus": "var(--xmlui-borderColor-Slider-warning--focus)", "Input:boxShadow-Slider-warning--focus": "var(--xmlui-boxShadow-Slider-warning--focus)", "Input:borderRadius-Slider-success": "var(--xmlui-borderRadius-Slider-success)", "Input:borderColor-Slider-success": "var(--xmlui-borderColor-Slider-success)", "Input:borderWidth-Slider-success": "var(--xmlui-borderWidth-Slider-success)", "Input:borderStyle-Slider-success": "var(--xmlui-borderStyle-Slider-success)", "Input:boxShadow-Slider-success": "var(--xmlui-boxShadow-Slider-success)", "Input:borderColor-Slider-success--hover": "var(--xmlui-borderColor-Slider-success--hover)", "Input:boxShadow-Slider-success--hover": "var(--xmlui-boxShadow-Slider-success--hover)", "Input:borderColor-Slider-success--focus": "var(--xmlui-borderColor-Slider-success--focus)", "Input:boxShadow-Slider-success--focus": "var(--xmlui-boxShadow-Slider-success--focus)", "Input:backgroundColor-track-Slider--disabled": "var(--xmlui-backgroundColor-track-Slider--disabled)", "Input:backgroundColor-range-Slider": "var(--xmlui-backgroundColor-range-Slider)", "Input:backgroundColor-range-Slider--disabled": "var(--xmlui-backgroundColor-range-Slider--disabled)", "Input:borderWidth-thumb-Slider": "var(--xmlui-borderWidth-thumb-Slider)", "Input:borderStyle-thumb-Slider": "var(--xmlui-borderStyle-thumb-Slider)", "Input:borderColor-thumb-Slider": "var(--xmlui-borderColor-thumb-Slider)", "Input:backgroundColor-thumb-Slider": "var(--xmlui-backgroundColor-thumb-Slider)", "Input:boxShadow-thumb-Slider": "var(--xmlui-boxShadow-thumb-Slider)", "Input:backgroundColor-thumb-Slider--hover": "var(--xmlui-backgroundColor-thumb-Slider--hover)", "Input:boxShadow-thumb-Slider--hover": "var(--xmlui-boxShadow-thumb-Slider--hover)", "Input:backgroundColor-thumb-Slider--active": "var(--xmlui-backgroundColor-thumb-Slider--active)", "Input:boxShadow-thumb-Slider--active": "var(--xmlui-boxShadow-thumb-Slider--active)"}'`;
|
|
20888
|
-
const sliderContainer = "
|
|
20889
|
-
const sliderRoot = "
|
|
20890
|
-
const sliderTrack = "
|
|
20891
|
-
const error$4 = "
|
|
20892
|
-
const warning$5 = "
|
|
20893
|
-
const valid$4 = "
|
|
20894
|
-
const disabled$3 = "
|
|
20895
|
-
const sliderRange = "
|
|
20896
|
-
const sliderThumb = "
|
|
20897
|
-
const readOnly$2 = "
|
|
21100
|
+
const themeVars$j = `'{"Input:backgroundColor-track-Slider": "var(--xmlui-backgroundColor-track-Slider)", "Input:borderRadius-Slider-default": "var(--xmlui-borderRadius-Slider-default)", "Input:borderColor-Slider-default": "var(--xmlui-borderColor-Slider-default)", "Input:borderWidth-Slider-default": "var(--xmlui-borderWidth-Slider-default)", "Input:borderStyle-Slider-default": "var(--xmlui-borderStyle-Slider-default)", "Input:boxShadow-Slider-default": "var(--xmlui-boxShadow-Slider-default)", "Input:borderColor-Slider-default--hover": "var(--xmlui-borderColor-Slider-default--hover)", "Input:boxShadow-Slider-default--hover": "var(--xmlui-boxShadow-Slider-default--hover)", "Input:borderColor-Slider-default--focus": "var(--xmlui-borderColor-Slider-default--focus)", "Input:boxShadow-Slider-default--focus": "var(--xmlui-boxShadow-Slider-default--focus)", "Input:borderRadius-Slider-error": "var(--xmlui-borderRadius-Slider-error)", "Input:borderColor-Slider-error": "var(--xmlui-borderColor-Slider-error)", "Input:borderWidth-Slider-error": "var(--xmlui-borderWidth-Slider-error)", "Input:borderStyle-Slider-error": "var(--xmlui-borderStyle-Slider-error)", "Input:boxShadow-Slider-error": "var(--xmlui-boxShadow-Slider-error)", "Input:borderColor-Slider-error--hover": "var(--xmlui-borderColor-Slider-error--hover)", "Input:boxShadow-Slider-error--hover": "var(--xmlui-boxShadow-Slider-error--hover)", "Input:borderColor-Slider-error--focus": "var(--xmlui-borderColor-Slider-error--focus)", "Input:boxShadow-Slider-error--focus": "var(--xmlui-boxShadow-Slider-error--focus)", "Input:borderRadius-Slider-warning": "var(--xmlui-borderRadius-Slider-warning)", "Input:borderColor-Slider-warning": "var(--xmlui-borderColor-Slider-warning)", "Input:borderWidth-Slider-warning": "var(--xmlui-borderWidth-Slider-warning)", "Input:borderStyle-Slider-warning": "var(--xmlui-borderStyle-Slider-warning)", "Input:boxShadow-Slider-warning": "var(--xmlui-boxShadow-Slider-warning)", "Input:borderColor-Slider-warning--hover": "var(--xmlui-borderColor-Slider-warning--hover)", "Input:boxShadow-Slider-warning--hover": "var(--xmlui-boxShadow-Slider-warning--hover)", "Input:borderColor-Slider-warning--focus": "var(--xmlui-borderColor-Slider-warning--focus)", "Input:boxShadow-Slider-warning--focus": "var(--xmlui-boxShadow-Slider-warning--focus)", "Input:borderRadius-Slider-success": "var(--xmlui-borderRadius-Slider-success)", "Input:borderColor-Slider-success": "var(--xmlui-borderColor-Slider-success)", "Input:borderWidth-Slider-success": "var(--xmlui-borderWidth-Slider-success)", "Input:borderStyle-Slider-success": "var(--xmlui-borderStyle-Slider-success)", "Input:boxShadow-Slider-success": "var(--xmlui-boxShadow-Slider-success)", "Input:borderColor-Slider-success--hover": "var(--xmlui-borderColor-Slider-success--hover)", "Input:boxShadow-Slider-success--hover": "var(--xmlui-boxShadow-Slider-success--hover)", "Input:borderColor-Slider-success--focus": "var(--xmlui-borderColor-Slider-success--focus)", "Input:boxShadow-Slider-success--focus": "var(--xmlui-boxShadow-Slider-success--focus)", "Input:backgroundColor-track-Slider--disabled": "var(--xmlui-backgroundColor-track-Slider--disabled)", "Input:backgroundColor-range-Slider": "var(--xmlui-backgroundColor-range-Slider)", "Input:backgroundColor-range-Slider--disabled": "var(--xmlui-backgroundColor-range-Slider--disabled)", "Input:borderWidth-thumb-Slider": "var(--xmlui-borderWidth-thumb-Slider)", "Input:borderStyle-thumb-Slider": "var(--xmlui-borderStyle-thumb-Slider)", "Input:borderColor-thumb-Slider": "var(--xmlui-borderColor-thumb-Slider)", "Input:backgroundColor-thumb-Slider": "var(--xmlui-backgroundColor-thumb-Slider)", "Input:boxShadow-thumb-Slider": "var(--xmlui-boxShadow-thumb-Slider)", "Input:backgroundColor-thumb-Slider--focus": "var(--xmlui-backgroundColor-thumb-Slider--focus)", "Input:boxShadow-thumb-Slider--focus": "var(--xmlui-boxShadow-thumb-Slider--focus)", "Input:backgroundColor-thumb-Slider--hover": "var(--xmlui-backgroundColor-thumb-Slider--hover)", "Input:boxShadow-thumb-Slider--hover": "var(--xmlui-boxShadow-thumb-Slider--hover)", "Input:backgroundColor-thumb-Slider--active": "var(--xmlui-backgroundColor-thumb-Slider--active)", "Input:boxShadow-thumb-Slider--active": "var(--xmlui-boxShadow-thumb-Slider--active)"}'`;
|
|
21101
|
+
const sliderContainer = "_sliderContainer_8oyz9_14";
|
|
21102
|
+
const sliderRoot = "_sliderRoot_8oyz9_19";
|
|
21103
|
+
const sliderTrack = "_sliderTrack_8oyz9_28";
|
|
21104
|
+
const error$4 = "_error_8oyz9_50";
|
|
21105
|
+
const warning$5 = "_warning_8oyz9_65";
|
|
21106
|
+
const valid$4 = "_valid_8oyz9_80";
|
|
21107
|
+
const disabled$3 = "_disabled_8oyz9_95";
|
|
21108
|
+
const sliderRange = "_sliderRange_8oyz9_101";
|
|
21109
|
+
const sliderThumb = "_sliderThumb_8oyz9_110";
|
|
21110
|
+
const readOnly$2 = "_readOnly_8oyz9_144";
|
|
20898
21111
|
const styles$D = {
|
|
20899
21112
|
themeVars: themeVars$j,
|
|
20900
21113
|
sliderContainer,
|
|
@@ -21544,8 +21757,8 @@ function xmlUiMarkupToComponent(source, fileId = 0) {
|
|
|
21544
21757
|
return { component: null, errors: errorsForDisplay, erroneousCompoundComponentName };
|
|
21545
21758
|
}
|
|
21546
21759
|
try {
|
|
21547
|
-
const
|
|
21548
|
-
const transformResult = { component, errors: [] };
|
|
21760
|
+
const component2 = nodeToComponentDef(node, getText, fileId);
|
|
21761
|
+
const transformResult = { component: component2, errors: [] };
|
|
21549
21762
|
return transformResult;
|
|
21550
21763
|
} catch (e) {
|
|
21551
21764
|
const erroneousCompoundComponentName = getCompoundCompName(node, getText);
|
|
@@ -22043,7 +22256,7 @@ function ApiInterceptorProvider({
|
|
|
22043
22256
|
return;
|
|
22044
22257
|
}
|
|
22045
22258
|
(async () => {
|
|
22046
|
-
const { initMock } = await import("./initMock-
|
|
22259
|
+
const { initMock } = await import("./initMock-BoTWMs19.mjs");
|
|
22047
22260
|
const apiInstance2 = await initMock(interceptor);
|
|
22048
22261
|
setApiInstance(apiInstance2);
|
|
22049
22262
|
setInitialized(true);
|
|
@@ -22060,7 +22273,7 @@ function ApiInterceptorProvider({
|
|
|
22060
22273
|
if (process.env.VITE_MOCK_ENABLED) {
|
|
22061
22274
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
22062
22275
|
useWorker ? import("./apiInterceptorWorker-DPgtUtdA.mjs") : Promise.resolve({ createApiInterceptorWorker: () => null }),
|
|
22063
|
-
import("./initMock-
|
|
22276
|
+
import("./initMock-BoTWMs19.mjs")
|
|
22064
22277
|
]);
|
|
22065
22278
|
if (interceptor || forceInitialize) {
|
|
22066
22279
|
const apiInstance2 = await initMock(interceptor || {});
|
|
@@ -22097,7 +22310,7 @@ function ApiInterceptorProvider({
|
|
|
22097
22310
|
(async () => {
|
|
22098
22311
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
22099
22312
|
import("./apiInterceptorWorker-DPgtUtdA.mjs"),
|
|
22100
|
-
import("./initMock-
|
|
22313
|
+
import("./initMock-BoTWMs19.mjs")
|
|
22101
22314
|
]);
|
|
22102
22315
|
const apiInstance2 = await initMock(interceptor);
|
|
22103
22316
|
await createApiInterceptorWorker(apiInstance2, parentInterceptorWorker);
|
|
@@ -22598,22 +22811,22 @@ function NestedApp({
|
|
|
22598
22811
|
}, []);
|
|
22599
22812
|
useEffect(() => {
|
|
22600
22813
|
var _a2;
|
|
22601
|
-
let { errors, component, erroneousCompoundComponentName } = xmlUiMarkupToComponent(app);
|
|
22814
|
+
let { errors, component: component2, erroneousCompoundComponentName } = xmlUiMarkupToComponent(app);
|
|
22602
22815
|
if (errors.length > 0) {
|
|
22603
|
-
|
|
22816
|
+
component2 = errReportComponent(errors, "Main.xmlui", erroneousCompoundComponentName);
|
|
22604
22817
|
}
|
|
22605
22818
|
const compoundComponents = (components ?? []).map((src) => {
|
|
22606
22819
|
const isErrorReportComponent = typeof src !== "string";
|
|
22607
22820
|
if (isErrorReportComponent) {
|
|
22608
22821
|
return src;
|
|
22609
22822
|
}
|
|
22610
|
-
let { errors: errors2, component:
|
|
22823
|
+
let { errors: errors2, component: component22, erroneousCompoundComponentName: erroneousCompoundComponentName2 } = xmlUiMarkupToComponent(
|
|
22611
22824
|
src
|
|
22612
22825
|
);
|
|
22613
22826
|
if (errors2.length > 0) {
|
|
22614
22827
|
return errReportComponent(errors2, `nested xmlui`, erroneousCompoundComponentName2);
|
|
22615
22828
|
}
|
|
22616
|
-
return
|
|
22829
|
+
return component22;
|
|
22617
22830
|
});
|
|
22618
22831
|
let globalProps = {
|
|
22619
22832
|
name: config == null ? void 0 : config.name,
|
|
@@ -22621,7 +22834,7 @@ function NestedApp({
|
|
|
22621
22834
|
apiUrl
|
|
22622
22835
|
};
|
|
22623
22836
|
(_a2 = contentRootRef.current) == null ? void 0 : _a2.render(
|
|
22624
|
-
/* @__PURE__ */ jsx(ErrorBoundary, { node:
|
|
22837
|
+
/* @__PURE__ */ jsx(ErrorBoundary, { node: component2, children: /* @__PURE__ */ jsx(StyleInjectionTargetContext.Provider, { value: shadowRef.current, children: /* @__PURE__ */ jsx(StyleProvider, { forceNew: true, children: /* @__PURE__ */ jsx(
|
|
22625
22838
|
ApiInterceptorProvider,
|
|
22626
22839
|
{
|
|
22627
22840
|
parentInterceptorContext,
|
|
@@ -22635,7 +22848,7 @@ function NestedApp({
|
|
|
22635
22848
|
previewMode: true,
|
|
22636
22849
|
standalone: true,
|
|
22637
22850
|
trackContainerHeight: height ? "fixed" : "auto",
|
|
22638
|
-
node:
|
|
22851
|
+
node: component2,
|
|
22639
22852
|
globalProps,
|
|
22640
22853
|
defaultTheme: activeTheme || (config == null ? void 0 : config.defaultTheme),
|
|
22641
22854
|
defaultTone: toneToApply,
|
|
@@ -23847,7 +24060,7 @@ function convertTreeDisplayToMarkdown(content2) {
|
|
|
23847
24060
|
`;
|
|
23848
24061
|
}
|
|
23849
24062
|
}
|
|
23850
|
-
const COMP
|
|
24063
|
+
const COMP$_ = "Markdown";
|
|
23851
24064
|
const MarkdownMd = createMetadata({
|
|
23852
24065
|
status: "stable",
|
|
23853
24066
|
description: "`Markdown` renders formatted text using markdown syntax. Use [Text](/working-with-text) for simple, styled text content, and `Markdown` when you need [rich formatting](/working-with-markdown).",
|
|
@@ -23914,7 +24127,7 @@ const MarkdownMd = createMetadata({
|
|
|
23914
24127
|
}
|
|
23915
24128
|
});
|
|
23916
24129
|
const markdownComponentRenderer = createComponentRenderer(
|
|
23917
|
-
COMP
|
|
24130
|
+
COMP$_,
|
|
23918
24131
|
MarkdownMd,
|
|
23919
24132
|
({ node, extractValue, renderChild: renderChild2, className }) => {
|
|
23920
24133
|
let renderedChildren = "";
|
|
@@ -24113,17 +24326,33 @@ const defaultProps$u = {
|
|
|
24113
24326
|
valueFormat: (value) => value.toString(),
|
|
24114
24327
|
minStepsBetweenThumbs: 1
|
|
24115
24328
|
};
|
|
24116
|
-
const
|
|
24329
|
+
const parseValue = (val, defaultVal) => {
|
|
24330
|
+
if (typeof val === "number") {
|
|
24331
|
+
return val;
|
|
24332
|
+
} else if (typeof val === "string") {
|
|
24333
|
+
const parsed = parseFloat(val);
|
|
24334
|
+
if (!isNaN$1(parsed)) {
|
|
24335
|
+
return parsed;
|
|
24336
|
+
}
|
|
24337
|
+
}
|
|
24338
|
+
return defaultVal;
|
|
24339
|
+
};
|
|
24340
|
+
const formatValue = (val, defaultVal = 0, minVal, maxVal) => {
|
|
24341
|
+
const clampValue = (value) => {
|
|
24342
|
+
if (minVal !== void 0 && value < minVal) return minVal;
|
|
24343
|
+
if (maxVal !== void 0 && value > maxVal) return maxVal;
|
|
24344
|
+
return value;
|
|
24345
|
+
};
|
|
24117
24346
|
if (val === void 0) {
|
|
24118
|
-
return [defaultVal];
|
|
24347
|
+
return [clampValue(defaultVal)];
|
|
24119
24348
|
}
|
|
24120
24349
|
if (typeof val === "number") {
|
|
24121
|
-
return [val];
|
|
24350
|
+
return [clampValue(val)];
|
|
24122
24351
|
}
|
|
24123
24352
|
if (Array.isArray(val) && val.length > 0) {
|
|
24124
|
-
return val;
|
|
24353
|
+
return val.map(clampValue);
|
|
24125
24354
|
}
|
|
24126
|
-
return [defaultVal];
|
|
24355
|
+
return [clampValue(defaultVal)];
|
|
24127
24356
|
};
|
|
24128
24357
|
const Slider = forwardRef(
|
|
24129
24358
|
({
|
|
@@ -24163,7 +24392,11 @@ const Slider = forwardRef(
|
|
|
24163
24392
|
const inputRef = useRef(null);
|
|
24164
24393
|
const tooltipRef = useRef(null);
|
|
24165
24394
|
const thumbRef = useRef(null);
|
|
24166
|
-
|
|
24395
|
+
min = parseValue(min, defaultProps$u.min);
|
|
24396
|
+
max = parseValue(max, defaultProps$u.max);
|
|
24397
|
+
const [localValue, setLocalValue] = React__default.useState(
|
|
24398
|
+
() => formatValue(value || initialValue, min, min, max)
|
|
24399
|
+
);
|
|
24167
24400
|
const [showTooltip, setShowTooltip] = React__default.useState(false);
|
|
24168
24401
|
const onShowTooltip = useCallback(() => setShowTooltip(true), []);
|
|
24169
24402
|
const onHideTooltip = useCallback(() => setShowTooltip(false), []);
|
|
@@ -24171,21 +24404,20 @@ const Slider = forwardRef(
|
|
|
24171
24404
|
let initialVal = min;
|
|
24172
24405
|
if (typeof initialValue === "string") {
|
|
24173
24406
|
try {
|
|
24174
|
-
|
|
24407
|
+
const parsed = JSON.parse(initialValue);
|
|
24408
|
+
initialVal = parsed;
|
|
24175
24409
|
} catch (e) {
|
|
24176
24410
|
const num = parseFloat(initialValue);
|
|
24177
|
-
if (!isNaN(num)) {
|
|
24411
|
+
if (!isNaN$1(num)) {
|
|
24178
24412
|
initialVal = num;
|
|
24179
24413
|
}
|
|
24180
24414
|
}
|
|
24181
24415
|
} else if (typeof initialValue === "number") {
|
|
24182
|
-
|
|
24183
|
-
|
|
24184
|
-
|
|
24185
|
-
} else {
|
|
24186
|
-
initialVal = formatValue(initialValue, min);
|
|
24416
|
+
initialVal = initialValue;
|
|
24417
|
+
} else if (initialValue !== void 0) {
|
|
24418
|
+
initialVal = initialValue;
|
|
24187
24419
|
}
|
|
24188
|
-
const formattedValue = formatValue(initialVal, min);
|
|
24420
|
+
const formattedValue = formatValue(initialVal, min, min, max);
|
|
24189
24421
|
setLocalValue(formattedValue);
|
|
24190
24422
|
if (updateState) {
|
|
24191
24423
|
updateState(
|
|
@@ -24198,10 +24430,10 @@ const Slider = forwardRef(
|
|
|
24198
24430
|
}, [initialValue, min, max, updateState]);
|
|
24199
24431
|
useEffect(() => {
|
|
24200
24432
|
if (value !== void 0) {
|
|
24201
|
-
const formattedValue = formatValue(value, min);
|
|
24433
|
+
const formattedValue = formatValue(value, min, min, max);
|
|
24202
24434
|
setLocalValue(formattedValue);
|
|
24203
24435
|
}
|
|
24204
|
-
}, [value, min]);
|
|
24436
|
+
}, [value, min, max]);
|
|
24205
24437
|
const updateValue = useCallback(
|
|
24206
24438
|
(value2) => {
|
|
24207
24439
|
if (updateState) {
|
|
@@ -24213,6 +24445,9 @@ const Slider = forwardRef(
|
|
|
24213
24445
|
);
|
|
24214
24446
|
const onInputChange = useCallback(
|
|
24215
24447
|
(value2) => {
|
|
24448
|
+
if (readOnly2) {
|
|
24449
|
+
return;
|
|
24450
|
+
}
|
|
24216
24451
|
setLocalValue(value2);
|
|
24217
24452
|
if (inputRef.current) {
|
|
24218
24453
|
inputRef.current.value = value2;
|
|
@@ -24223,16 +24458,35 @@ const Slider = forwardRef(
|
|
|
24223
24458
|
updateValue(value2[0]);
|
|
24224
24459
|
}
|
|
24225
24460
|
},
|
|
24226
|
-
[updateValue]
|
|
24461
|
+
[updateValue, readOnly2]
|
|
24462
|
+
);
|
|
24463
|
+
const handleOnFocus = useCallback(
|
|
24464
|
+
(ev) => {
|
|
24465
|
+
var _a2;
|
|
24466
|
+
(_a2 = thumbRef.current) == null ? void 0 : _a2.focus();
|
|
24467
|
+
onFocus == null ? void 0 : onFocus(ev);
|
|
24468
|
+
},
|
|
24469
|
+
[onFocus]
|
|
24470
|
+
);
|
|
24471
|
+
const handleOnBlur = useCallback(
|
|
24472
|
+
(ev) => {
|
|
24473
|
+
var _a2;
|
|
24474
|
+
(_a2 = thumbRef.current) == null ? void 0 : _a2.focus();
|
|
24475
|
+
onBlur == null ? void 0 : onBlur(ev);
|
|
24476
|
+
},
|
|
24477
|
+
[onBlur]
|
|
24227
24478
|
);
|
|
24228
|
-
const handleOnFocus = useCallback((ev) => onFocus == null ? void 0 : onFocus(ev), [onFocus]);
|
|
24229
|
-
const handleOnBlur = useCallback((ev) => onBlur == null ? void 0 : onBlur(ev), [onBlur]);
|
|
24230
24479
|
const focus = useCallback(() => {
|
|
24231
24480
|
var _a2;
|
|
24232
24481
|
(_a2 = inputRef.current) == null ? void 0 : _a2.focus();
|
|
24233
24482
|
}, []);
|
|
24234
24483
|
const setValue = useEvent((newValue) => {
|
|
24235
|
-
|
|
24484
|
+
if (readOnly2 || !enabled2) {
|
|
24485
|
+
return;
|
|
24486
|
+
}
|
|
24487
|
+
const formattedValue = formatValue(newValue, min, min, max);
|
|
24488
|
+
const valueToUpdate = formattedValue.length === 1 ? formattedValue[0] : formattedValue;
|
|
24489
|
+
updateValue(valueToUpdate);
|
|
24236
24490
|
});
|
|
24237
24491
|
useEffect(() => {
|
|
24238
24492
|
registerComponentApi == null ? void 0 : registerComponentApi({
|
|
@@ -24240,7 +24494,7 @@ const Slider = forwardRef(
|
|
|
24240
24494
|
setValue
|
|
24241
24495
|
});
|
|
24242
24496
|
}, [focus, registerComponentApi, setValue]);
|
|
24243
|
-
const displayValue = localValue.length > 0 ? localValue :
|
|
24497
|
+
const displayValue = localValue.length > 0 ? localValue : formatValue(void 0, min, min, max);
|
|
24244
24498
|
return /* @__PURE__ */ jsx(
|
|
24245
24499
|
ItemWithLabel,
|
|
24246
24500
|
{
|
|
@@ -24281,13 +24535,12 @@ const Slider = forwardRef(
|
|
|
24281
24535
|
onMouseOver: onShowTooltip,
|
|
24282
24536
|
onMouseLeave: onHideTooltip,
|
|
24283
24537
|
onPointerDown: onShowTooltip,
|
|
24284
|
-
"aria-required": required2,
|
|
24285
24538
|
value: displayValue,
|
|
24286
|
-
autoFocus,
|
|
24287
24539
|
children: [
|
|
24288
24540
|
/* @__PURE__ */ jsx(
|
|
24289
24541
|
Track,
|
|
24290
24542
|
{
|
|
24543
|
+
"data-track": true,
|
|
24291
24544
|
className: classnames(styles$D.sliderTrack, {
|
|
24292
24545
|
[styles$D.disabled]: !enabled2,
|
|
24293
24546
|
[styles$D.readOnly]: readOnly2,
|
|
@@ -24299,6 +24552,7 @@ const Slider = forwardRef(
|
|
|
24299
24552
|
children: /* @__PURE__ */ jsx(
|
|
24300
24553
|
Range,
|
|
24301
24554
|
{
|
|
24555
|
+
"data-range": true,
|
|
24302
24556
|
className: classnames(styles$D.sliderRange, {
|
|
24303
24557
|
[styles$D.disabled]: !enabled2
|
|
24304
24558
|
})
|
|
@@ -24316,13 +24570,15 @@ const Slider = forwardRef(
|
|
|
24316
24570
|
children: /* @__PURE__ */ jsx(
|
|
24317
24571
|
Thumb,
|
|
24318
24572
|
{
|
|
24573
|
+
id,
|
|
24574
|
+
"aria-required": required2,
|
|
24319
24575
|
ref: index === 0 ? thumbRef : null,
|
|
24320
24576
|
className: classnames(styles$D.sliderThumb, {
|
|
24321
24577
|
[styles$D.disabled]: !enabled2
|
|
24322
24578
|
}),
|
|
24323
24579
|
style: thumbStyle ? { ...thumbStyle } : void 0,
|
|
24324
|
-
|
|
24325
|
-
|
|
24580
|
+
"data-thumb-index": index,
|
|
24581
|
+
autoFocus
|
|
24326
24582
|
}
|
|
24327
24583
|
)
|
|
24328
24584
|
},
|
|
@@ -24352,8 +24608,7 @@ const defaultProps$t = {
|
|
|
24352
24608
|
initialValue: "#000000",
|
|
24353
24609
|
value: "#000000",
|
|
24354
24610
|
enabled: true,
|
|
24355
|
-
validationStatus: "none"
|
|
24356
|
-
debounceDelayInMs: 200
|
|
24611
|
+
validationStatus: "none"
|
|
24357
24612
|
};
|
|
24358
24613
|
const ColorPicker = forwardRef(
|
|
24359
24614
|
({
|
|
@@ -24376,11 +24631,10 @@ const ColorPicker = forwardRef(
|
|
|
24376
24631
|
required: required2,
|
|
24377
24632
|
validationStatus = defaultProps$t.validationStatus,
|
|
24378
24633
|
initialValue = defaultProps$t.initialValue,
|
|
24379
|
-
debounceDelayInMs = defaultProps$t.debounceDelayInMs,
|
|
24380
24634
|
...rest
|
|
24381
24635
|
}, forwardedRef) => {
|
|
24382
24636
|
const inputRef = useRef(null);
|
|
24383
|
-
const
|
|
24637
|
+
const [isPending, startTransition2] = useTransition();
|
|
24384
24638
|
const updateValue = useCallback(
|
|
24385
24639
|
(value2) => {
|
|
24386
24640
|
updateState({ value: value2 });
|
|
@@ -24388,45 +24642,31 @@ const ColorPicker = forwardRef(
|
|
|
24388
24642
|
},
|
|
24389
24643
|
[onDidChange, updateState]
|
|
24390
24644
|
);
|
|
24391
|
-
const
|
|
24645
|
+
const updateValueWithTransition = useCallback(
|
|
24392
24646
|
(value2, immediate = false) => {
|
|
24393
|
-
if (debounceTimeoutRef.current) {
|
|
24394
|
-
clearTimeout(debounceTimeoutRef.current);
|
|
24395
|
-
}
|
|
24396
24647
|
if (immediate) {
|
|
24397
24648
|
updateValue(value2);
|
|
24398
24649
|
} else {
|
|
24399
|
-
|
|
24650
|
+
startTransition2(() => {
|
|
24400
24651
|
updateValue(value2);
|
|
24401
|
-
}
|
|
24652
|
+
});
|
|
24402
24653
|
}
|
|
24403
24654
|
},
|
|
24404
|
-
[updateValue,
|
|
24655
|
+
[updateValue, startTransition2]
|
|
24405
24656
|
);
|
|
24406
24657
|
const onInputChange = useCallback(
|
|
24407
24658
|
(event) => {
|
|
24408
|
-
|
|
24659
|
+
updateValueWithTransition(event.target.value);
|
|
24409
24660
|
},
|
|
24410
|
-
[
|
|
24661
|
+
[updateValueWithTransition]
|
|
24411
24662
|
);
|
|
24412
24663
|
useEffect(() => {
|
|
24413
24664
|
updateState({ value: initialValue }, { initial: true });
|
|
24414
24665
|
}, [initialValue, updateState]);
|
|
24415
|
-
useEffect(() => {
|
|
24416
|
-
return () => {
|
|
24417
|
-
if (debounceTimeoutRef.current) {
|
|
24418
|
-
clearTimeout(debounceTimeoutRef.current);
|
|
24419
|
-
}
|
|
24420
|
-
};
|
|
24421
|
-
}, []);
|
|
24422
24666
|
const handleOnFocus = useCallback(() => {
|
|
24423
24667
|
onFocus == null ? void 0 : onFocus();
|
|
24424
24668
|
}, [onFocus]);
|
|
24425
24669
|
const handleOnBlur = useCallback(() => {
|
|
24426
|
-
if (debounceTimeoutRef.current) {
|
|
24427
|
-
clearTimeout(debounceTimeoutRef.current);
|
|
24428
|
-
debounceTimeoutRef.current = null;
|
|
24429
|
-
}
|
|
24430
24670
|
onBlur == null ? void 0 : onBlur();
|
|
24431
24671
|
}, [onBlur]);
|
|
24432
24672
|
const focus = useCallback(() => {
|
|
@@ -24434,7 +24674,7 @@ const ColorPicker = forwardRef(
|
|
|
24434
24674
|
(_a2 = inputRef.current) == null ? void 0 : _a2.focus();
|
|
24435
24675
|
}, []);
|
|
24436
24676
|
const setValue = useEvent((newValue) => {
|
|
24437
|
-
|
|
24677
|
+
updateValueWithTransition(newValue, true);
|
|
24438
24678
|
});
|
|
24439
24679
|
useEffect(() => {
|
|
24440
24680
|
registerComponentApi == null ? void 0 : registerComponentApi({
|
|
@@ -24983,7 +25223,7 @@ function CustomFormItem({
|
|
|
24983
25223
|
}, [bindTo, dispatch, node.children, node.vars, validationResult, value]);
|
|
24984
25224
|
return /* @__PURE__ */ jsx(Fragment, { children: renderChild2(decoratedMetadata) });
|
|
24985
25225
|
}
|
|
24986
|
-
const COMP$
|
|
25226
|
+
const COMP$Z = "FormItem";
|
|
24987
25227
|
const filteredValidationSeverityValues = validationSeverityValues.filter(
|
|
24988
25228
|
(value) => value !== "none"
|
|
24989
25229
|
);
|
|
@@ -24998,7 +25238,7 @@ const FormItemMd = createMetadata({
|
|
|
24998
25238
|
autoFocus: dAutoFocus(),
|
|
24999
25239
|
label: dLabel(),
|
|
25000
25240
|
labelPosition: dLabelPosition(),
|
|
25001
|
-
labelWidth: dLabelWidth(COMP$
|
|
25241
|
+
labelWidth: dLabelWidth(COMP$Z),
|
|
25002
25242
|
labelBreak: {
|
|
25003
25243
|
description: `This boolean value indicates if the label can be split into multiple lines if it would overflow the available label width.`,
|
|
25004
25244
|
type: "boolean",
|
|
@@ -25137,7 +25377,7 @@ const FormItemMd = createMetadata({
|
|
|
25137
25377
|
}
|
|
25138
25378
|
});
|
|
25139
25379
|
const formItemComponentRenderer = createComponentRenderer(
|
|
25140
|
-
COMP$
|
|
25380
|
+
COMP$Z,
|
|
25141
25381
|
FormItemMd,
|
|
25142
25382
|
({
|
|
25143
25383
|
node,
|
|
@@ -25248,7 +25488,7 @@ const formItemComponentRenderer = createComponentRenderer(
|
|
|
25248
25488
|
);
|
|
25249
25489
|
}
|
|
25250
25490
|
);
|
|
25251
|
-
const COMP$
|
|
25491
|
+
const COMP$Y = "TextBox";
|
|
25252
25492
|
const TextBoxMd = createMetadata({
|
|
25253
25493
|
status: "stable",
|
|
25254
25494
|
description: "`TextBox` captures user text input for forms, search fields, and data entry with support for validation, icons, and formatting hints.",
|
|
@@ -25273,10 +25513,6 @@ const TextBoxMd = createMetadata({
|
|
|
25273
25513
|
...dInitialValue(),
|
|
25274
25514
|
defaultValue: defaultProps$I.initialValue
|
|
25275
25515
|
},
|
|
25276
|
-
label: dLabel(),
|
|
25277
|
-
labelPosition: dLabelPosition("top"),
|
|
25278
|
-
labelWidth: dLabelWidth(COMP$Z),
|
|
25279
|
-
labelBreak: dLabelBreak(COMP$Z),
|
|
25280
25516
|
maxLength: dMaxLength(),
|
|
25281
25517
|
autoFocus: dAutoFocus(),
|
|
25282
25518
|
required: dRequired(),
|
|
@@ -25312,13 +25548,13 @@ const TextBoxMd = createMetadata({
|
|
|
25312
25548
|
}
|
|
25313
25549
|
},
|
|
25314
25550
|
events: {
|
|
25315
|
-
gotFocus: dGotFocus(COMP$
|
|
25316
|
-
lostFocus: dLostFocus(COMP$
|
|
25317
|
-
didChange: dDidChange(COMP$
|
|
25551
|
+
gotFocus: dGotFocus(COMP$Y),
|
|
25552
|
+
lostFocus: dLostFocus(COMP$Y),
|
|
25553
|
+
didChange: dDidChange(COMP$Y)
|
|
25318
25554
|
},
|
|
25319
25555
|
apis: {
|
|
25320
25556
|
focus: {
|
|
25321
|
-
description: `This method sets the focus on the \`${COMP$
|
|
25557
|
+
description: `This method sets the focus on the \`${COMP$Y}\` component.`,
|
|
25322
25558
|
signature: "focus(): void"
|
|
25323
25559
|
},
|
|
25324
25560
|
value: {
|
|
@@ -25326,7 +25562,7 @@ const TextBoxMd = createMetadata({
|
|
|
25326
25562
|
signature: "get value(): string | undefined"
|
|
25327
25563
|
},
|
|
25328
25564
|
setValue: {
|
|
25329
|
-
description: `This API sets the value of the \`${COMP$
|
|
25565
|
+
description: `This API sets the value of the \`${COMP$Y}\`. You can use it to programmatically change the value.`,
|
|
25330
25566
|
signature: "setValue(value: string): void",
|
|
25331
25567
|
parameters: {
|
|
25332
25568
|
value: "The new value to set. If the value is empty, it will clear the input."
|
|
@@ -25341,8 +25577,8 @@ const TextBoxMd = createMetadata({
|
|
|
25341
25577
|
"backgroundColor-Input--disabled": "$backgroundColor--disabled",
|
|
25342
25578
|
"borderWidth-Input": "1px",
|
|
25343
25579
|
"minHeight-Input": "39px",
|
|
25344
|
-
[`paddingHorizontal-${COMP$
|
|
25345
|
-
[`paddingVertical-${COMP$
|
|
25580
|
+
[`paddingHorizontal-${COMP$Y}`]: "$space-2",
|
|
25581
|
+
[`paddingVertical-${COMP$Y}`]: "$space-2",
|
|
25346
25582
|
"gap-adornment-Input": "$space-2",
|
|
25347
25583
|
"borderStyle-Input": "solid",
|
|
25348
25584
|
"borderColor-Input--disabled": "$borderColor--disabled",
|
|
@@ -25389,10 +25625,6 @@ function renderTextBox(className, state, updateState, extractValue, node, lookup
|
|
|
25389
25625
|
gap: extractValue.asOptionalString(node.props.gap),
|
|
25390
25626
|
autoFocus: extractValue.asOptionalBoolean(node.props.autoFocus),
|
|
25391
25627
|
readOnly: extractValue.asOptionalBoolean(node.props.readOnly),
|
|
25392
|
-
label: extractValue.asOptionalString(node.props.label),
|
|
25393
|
-
labelPosition: extractValue(node.props.labelPosition),
|
|
25394
|
-
labelWidth: extractValue.asOptionalString(node.props.labelWidth),
|
|
25395
|
-
labelBreak: extractValue.asOptionalBoolean(node.props.labelBreak),
|
|
25396
25628
|
required: extractValue.asOptionalBoolean(node.props.required),
|
|
25397
25629
|
showPasswordToggle: extractValue.asOptionalBoolean(node.props.showPasswordToggle, false),
|
|
25398
25630
|
passwordVisibleIcon: extractValue.asOptionalString(node.props.passwordVisibleIcon),
|
|
@@ -25401,7 +25633,7 @@ function renderTextBox(className, state, updateState, extractValue, node, lookup
|
|
|
25401
25633
|
);
|
|
25402
25634
|
}
|
|
25403
25635
|
const textBoxComponentRenderer = createComponentRenderer(
|
|
25404
|
-
COMP$
|
|
25636
|
+
COMP$Y,
|
|
25405
25637
|
TextBoxMd,
|
|
25406
25638
|
({
|
|
25407
25639
|
node,
|
|
@@ -25454,19 +25686,85 @@ const passwordInputComponentRenderer = createComponentRenderer(
|
|
|
25454
25686
|
function isAxiosResponse(response) {
|
|
25455
25687
|
return "data" in response;
|
|
25456
25688
|
}
|
|
25457
|
-
|
|
25689
|
+
function getContentType(response) {
|
|
25690
|
+
if (isAxiosResponse(response)) {
|
|
25691
|
+
return response.headers["content-type"] || response.headers["Content-Type"] || "";
|
|
25692
|
+
} else {
|
|
25693
|
+
return response.headers.get("content-type") || "";
|
|
25694
|
+
}
|
|
25695
|
+
}
|
|
25696
|
+
function isBinaryContentType(contentType) {
|
|
25697
|
+
const binaryTypes = [
|
|
25698
|
+
// Images
|
|
25699
|
+
"image/",
|
|
25700
|
+
// Audio
|
|
25701
|
+
"audio/",
|
|
25702
|
+
// Video
|
|
25703
|
+
"video/",
|
|
25704
|
+
// Documents
|
|
25705
|
+
"application/pdf",
|
|
25706
|
+
"application/msword",
|
|
25707
|
+
"application/vnd.openxmlformats-officedocument.",
|
|
25708
|
+
"application/vnd.ms-excel",
|
|
25709
|
+
"application/vnd.ms-powerpoint",
|
|
25710
|
+
// Archives
|
|
25711
|
+
"application/zip",
|
|
25712
|
+
"application/x-rar-compressed",
|
|
25713
|
+
"application/x-tar",
|
|
25714
|
+
"application/gzip",
|
|
25715
|
+
"application/x-7z-compressed",
|
|
25716
|
+
// Other binary
|
|
25717
|
+
"application/octet-stream",
|
|
25718
|
+
"application/x-binary"
|
|
25719
|
+
];
|
|
25720
|
+
return binaryTypes.some((type) => contentType.toLowerCase().includes(type.toLowerCase()));
|
|
25721
|
+
}
|
|
25722
|
+
function shouldReturnAsArrayBuffer(contentType) {
|
|
25723
|
+
const arrayBufferTypes = [
|
|
25724
|
+
"application/zip",
|
|
25725
|
+
"application/x-rar-compressed",
|
|
25726
|
+
"application/x-tar",
|
|
25727
|
+
"application/gzip",
|
|
25728
|
+
"application/x-7z-compressed",
|
|
25729
|
+
"application/x-binary"
|
|
25730
|
+
];
|
|
25731
|
+
return arrayBufferTypes.some((type) => contentType.toLowerCase().includes(type.toLowerCase()));
|
|
25732
|
+
}
|
|
25733
|
+
async function parseResponseBody(response, logError = false) {
|
|
25458
25734
|
let resp;
|
|
25459
25735
|
if (isAxiosResponse(response)) {
|
|
25460
25736
|
resp = response.data;
|
|
25461
25737
|
} else {
|
|
25462
|
-
|
|
25463
|
-
|
|
25464
|
-
} catch (e) {
|
|
25738
|
+
const contentType = getContentType(response);
|
|
25739
|
+
if (isBinaryContentType(contentType)) {
|
|
25465
25740
|
try {
|
|
25466
|
-
|
|
25467
|
-
|
|
25741
|
+
if (shouldReturnAsArrayBuffer(contentType)) {
|
|
25742
|
+
resp = await response.clone().arrayBuffer();
|
|
25743
|
+
} else {
|
|
25744
|
+
resp = await response.clone().blob();
|
|
25745
|
+
}
|
|
25746
|
+
} catch (e) {
|
|
25468
25747
|
if (logError) {
|
|
25469
|
-
console.error("Failed to parse response
|
|
25748
|
+
console.error("Failed to parse binary response", e, contentType);
|
|
25749
|
+
}
|
|
25750
|
+
try {
|
|
25751
|
+
resp = await response.clone().text();
|
|
25752
|
+
} catch (textError) {
|
|
25753
|
+
if (logError) {
|
|
25754
|
+
console.error("Failed to parse response as text after binary parsing failed", textError);
|
|
25755
|
+
}
|
|
25756
|
+
}
|
|
25757
|
+
}
|
|
25758
|
+
} else {
|
|
25759
|
+
try {
|
|
25760
|
+
resp = await response.clone().json();
|
|
25761
|
+
} catch (e) {
|
|
25762
|
+
try {
|
|
25763
|
+
resp = await response.clone().text();
|
|
25764
|
+
} catch (e2) {
|
|
25765
|
+
if (logError) {
|
|
25766
|
+
console.error("Failed to parse response as text or JSON", response.body);
|
|
25767
|
+
}
|
|
25470
25768
|
}
|
|
25471
25769
|
}
|
|
25472
25770
|
}
|
|
@@ -25771,7 +26069,7 @@ class RestApiProxy {
|
|
|
25771
26069
|
}
|
|
25772
26070
|
};
|
|
25773
26071
|
this.tryParseResponse = async (response, logError = false) => {
|
|
25774
|
-
return await
|
|
26072
|
+
return await parseResponseBody(response, logError);
|
|
25775
26073
|
};
|
|
25776
26074
|
this.raiseError = async (response) => {
|
|
25777
26075
|
if ("config" in response) {
|
|
@@ -25945,7 +26243,7 @@ function RealTimeAdapter({ url, onEvent }) {
|
|
|
25945
26243
|
}, [appContext, onEvent, url]);
|
|
25946
26244
|
return null;
|
|
25947
26245
|
}
|
|
25948
|
-
const COMP$
|
|
26246
|
+
const COMP$X = "RealTimeAdapter";
|
|
25949
26247
|
const RealTimeAdapterMd = createMetadata({
|
|
25950
26248
|
status: "experimental",
|
|
25951
26249
|
description: "`RealTimeAdapter` is a non-visual component that listens to real-time events.",
|
|
@@ -25960,7 +26258,7 @@ const RealTimeAdapterMd = createMetadata({
|
|
|
25960
26258
|
}
|
|
25961
26259
|
});
|
|
25962
26260
|
const realTimeAdapterComponentRenderer = createComponentRenderer(
|
|
25963
|
-
COMP$
|
|
26261
|
+
COMP$X,
|
|
25964
26262
|
RealTimeAdapterMd,
|
|
25965
26263
|
({ node, lookupEventHandler, extractValue }) => {
|
|
25966
26264
|
return /* @__PURE__ */ jsx(
|
|
@@ -25972,7 +26270,7 @@ const realTimeAdapterComponentRenderer = createComponentRenderer(
|
|
|
25972
26270
|
);
|
|
25973
26271
|
}
|
|
25974
26272
|
);
|
|
25975
|
-
const COMP$
|
|
26273
|
+
const COMP$W = "Form";
|
|
25976
26274
|
const FormMd = createMetadata({
|
|
25977
26275
|
status: "stable",
|
|
25978
26276
|
description: "`Form` provides a structured container for collecting and validating user input, with built-in data binding, validation, and submission handling. It automatically manages form state and provides context for nested form controls to work together.",
|
|
@@ -26084,7 +26382,7 @@ const FormMd = createMetadata({
|
|
|
26084
26382
|
}
|
|
26085
26383
|
});
|
|
26086
26384
|
const formComponentRenderer = createComponentRenderer(
|
|
26087
|
-
COMP$
|
|
26385
|
+
COMP$W,
|
|
26088
26386
|
FormMd,
|
|
26089
26387
|
({ node, renderChild: renderChild2, extractValue, className, lookupEventHandler, registerComponentApi }) => {
|
|
26090
26388
|
return /* @__PURE__ */ jsx(
|
|
@@ -26135,7 +26433,7 @@ const EmojiSelector = forwardRef(
|
|
|
26135
26433
|
}
|
|
26136
26434
|
)
|
|
26137
26435
|
);
|
|
26138
|
-
const COMP$
|
|
26436
|
+
const COMP$V = "EmojiSelector";
|
|
26139
26437
|
const EmojiSelectorMd = createMetadata({
|
|
26140
26438
|
status: "experimental",
|
|
26141
26439
|
description: "`EmojiSelector` enables users to browse, search and select emojis from their system's native emoji set.",
|
|
@@ -26150,7 +26448,7 @@ const EmojiSelectorMd = createMetadata({
|
|
|
26150
26448
|
}
|
|
26151
26449
|
});
|
|
26152
26450
|
const emojiSelectorRenderer = createComponentRenderer(
|
|
26153
|
-
COMP$
|
|
26451
|
+
COMP$V,
|
|
26154
26452
|
EmojiSelectorMd,
|
|
26155
26453
|
({ node, lookupEventHandler, extractValue }) => {
|
|
26156
26454
|
const onActionSelect = lookupEventHandler("select");
|
|
@@ -26165,7 +26463,7 @@ const emojiSelectorRenderer = createComponentRenderer(
|
|
|
26165
26463
|
);
|
|
26166
26464
|
}
|
|
26167
26465
|
);
|
|
26168
|
-
const COMP$
|
|
26466
|
+
const COMP$U = "NumberBox";
|
|
26169
26467
|
const NumberBoxMd = createMetadata({
|
|
26170
26468
|
status: "stable",
|
|
26171
26469
|
description: "`NumberBox` provides a specialized input field for numeric values with built-in validation, spinner buttons, and flexible formatting options. It supports both integer and floating-point numbers, handles empty states as null values, and integrates seamlessly with form validation.",
|
|
@@ -26188,8 +26486,8 @@ const NumberBoxMd = createMetadata({
|
|
|
26188
26486
|
initialValue: dInitialValue(),
|
|
26189
26487
|
label: dLabel(),
|
|
26190
26488
|
labelPosition: dLabelPosition("top"),
|
|
26191
|
-
labelWidth: dLabelWidth(COMP$
|
|
26192
|
-
labelBreak: dLabelBreak(COMP$
|
|
26489
|
+
labelWidth: dLabelWidth(COMP$U),
|
|
26490
|
+
labelBreak: dLabelBreak(COMP$U),
|
|
26193
26491
|
maxLength: dMaxLength(),
|
|
26194
26492
|
autoFocus: dAutoFocus(),
|
|
26195
26493
|
required: dRequired(),
|
|
@@ -26209,10 +26507,10 @@ const NumberBoxMd = createMetadata({
|
|
|
26209
26507
|
defaultValue: defaultProps$G.hasSpinBox
|
|
26210
26508
|
},
|
|
26211
26509
|
spinnerUpIcon: d(
|
|
26212
|
-
`Allows setting an alternate icon displayed in the ${COMP$
|
|
26510
|
+
`Allows setting an alternate icon displayed in the ${COMP$U} spinner for incrementing values. You can change the default icon for all ${COMP$U} instances with the "icon.spinnerUp:NumberBox" declaration in the app configuration file.`
|
|
26213
26511
|
),
|
|
26214
26512
|
spinnerDownIcon: d(
|
|
26215
|
-
`Allows setting an alternate icon displayed in the ${COMP$
|
|
26513
|
+
`Allows setting an alternate icon displayed in the ${COMP$U} spinner for decrementing values. You can change the default icon for all ${COMP$U} instances with the "icon.spinnerDown:NumberBox" declaration in the app configuration file.`
|
|
26216
26514
|
),
|
|
26217
26515
|
step: {
|
|
26218
26516
|
description: `This prop governs how big the step when clicking on the spinner of the field.`,
|
|
@@ -26239,32 +26537,32 @@ const NumberBoxMd = createMetadata({
|
|
|
26239
26537
|
}
|
|
26240
26538
|
},
|
|
26241
26539
|
events: {
|
|
26242
|
-
gotFocus: dGotFocus(COMP$
|
|
26243
|
-
lostFocus: dLostFocus(COMP$
|
|
26244
|
-
didChange: dDidChange(COMP$
|
|
26540
|
+
gotFocus: dGotFocus(COMP$U),
|
|
26541
|
+
lostFocus: dLostFocus(COMP$U),
|
|
26542
|
+
didChange: dDidChange(COMP$U)
|
|
26245
26543
|
},
|
|
26246
26544
|
apis: {
|
|
26247
26545
|
focus: {
|
|
26248
|
-
description: `This API focuses the input field of the \`${COMP$
|
|
26546
|
+
description: `This API focuses the input field of the \`${COMP$U}\`. You can use it to programmatically focus the field.`,
|
|
26249
26547
|
signature: "focus(): void"
|
|
26250
26548
|
},
|
|
26251
26549
|
value: {
|
|
26252
|
-
description: `This API retrieves the current value of the \`${COMP$
|
|
26550
|
+
description: `This API retrieves the current value of the \`${COMP$U}\`. You can use it to get the value programmatically.`,
|
|
26253
26551
|
signature: "get value(): number | undefined"
|
|
26254
26552
|
},
|
|
26255
26553
|
setValue: {
|
|
26256
|
-
description: `This API sets the value of the \`${COMP$
|
|
26554
|
+
description: `This API sets the value of the \`${COMP$U}\`. You can use it to programmatically change the value.`,
|
|
26257
26555
|
signature: "setValue(value: number | undefined): void"
|
|
26258
26556
|
}
|
|
26259
26557
|
},
|
|
26260
26558
|
themeVars: parseScssVar(styles$K.themeVars),
|
|
26261
26559
|
defaultThemeVars: {
|
|
26262
|
-
[`paddingVertical-${COMP$
|
|
26263
|
-
[`paddingHorizontal-${COMP$
|
|
26560
|
+
[`paddingVertical-${COMP$U}`]: "$space-2",
|
|
26561
|
+
[`paddingHorizontal-${COMP$U}`]: "$space-2"
|
|
26264
26562
|
}
|
|
26265
26563
|
});
|
|
26266
26564
|
const numberBoxComponentRenderer = createComponentRenderer(
|
|
26267
|
-
COMP$
|
|
26565
|
+
COMP$U,
|
|
26268
26566
|
NumberBoxMd,
|
|
26269
26567
|
({
|
|
26270
26568
|
node,
|
|
@@ -26325,7 +26623,7 @@ const HoverCardComponent = ({ triggerTemplate, children }) => {
|
|
|
26325
26623
|
/* @__PURE__ */ jsx(HoverCard.Portal, { container: root2, children: /* @__PURE__ */ jsx(HoverCard.Content, { side: "bottom", sideOffset: 5, children }) })
|
|
26326
26624
|
] });
|
|
26327
26625
|
};
|
|
26328
|
-
const COMP$
|
|
26626
|
+
const COMP$T = "HoverCard";
|
|
26329
26627
|
const HoverCardMd = createMetadata({
|
|
26330
26628
|
status: "deprecated",
|
|
26331
26629
|
description: "(**OBSOLETE**) This component displays some content when its parent component is hovered.",
|
|
@@ -26334,13 +26632,13 @@ const HoverCardMd = createMetadata({
|
|
|
26334
26632
|
}
|
|
26335
26633
|
});
|
|
26336
26634
|
const hoverCardComponentRenderer = createComponentRenderer(
|
|
26337
|
-
COMP$
|
|
26635
|
+
COMP$T,
|
|
26338
26636
|
HoverCardMd,
|
|
26339
26637
|
({ node, extractValue, renderChild: renderChild2 }) => {
|
|
26340
26638
|
return /* @__PURE__ */ jsx(HoverCardComponent, { triggerTemplate: renderChild2(extractValue(node.props.triggerTemplate)), children: renderChild2(node.children) });
|
|
26341
26639
|
}
|
|
26342
26640
|
);
|
|
26343
|
-
const COMP$
|
|
26641
|
+
const COMP$S = "App";
|
|
26344
26642
|
const AppMd = createMetadata({
|
|
26345
26643
|
status: "stable",
|
|
26346
26644
|
description: "The `App` component is the root container that defines your application's overall structure and layout. It provides a complete UI framework with built-in navigation, header, footer, and content areas that work together seamlessly.",
|
|
@@ -26399,10 +26697,10 @@ const AppMd = createMetadata({
|
|
|
26399
26697
|
},
|
|
26400
26698
|
events: {
|
|
26401
26699
|
ready: {
|
|
26402
|
-
description: `This event fires when the \`${COMP$
|
|
26700
|
+
description: `This event fires when the \`${COMP$S}\` component finishes rendering on the page.`
|
|
26403
26701
|
},
|
|
26404
26702
|
messageReceived: {
|
|
26405
|
-
description: `This event fires when the \`${COMP$
|
|
26703
|
+
description: `This event fires when the \`${COMP$S}\` component receives a message from another window or iframe via the window.postMessage API.`
|
|
26406
26704
|
}
|
|
26407
26705
|
},
|
|
26408
26706
|
themeVars: { ...parseScssVar(styles$1c.themeVars), ...parseScssVar(drawerStyles.themeVars) },
|
|
@@ -26415,11 +26713,11 @@ const AppMd = createMetadata({
|
|
|
26415
26713
|
},
|
|
26416
26714
|
defaultThemeVars: {
|
|
26417
26715
|
"maxWidth-Drawer": "100%",
|
|
26418
|
-
[`width-navPanel-${COMP$
|
|
26419
|
-
[`backgroundColor-navPanel-${COMP$
|
|
26420
|
-
[`maxWidth-content-${COMP$
|
|
26421
|
-
[`boxShadow-header-${COMP$
|
|
26422
|
-
[`boxShadow-navPanel-${COMP$
|
|
26716
|
+
[`width-navPanel-${COMP$S}`]: "$space-64",
|
|
26717
|
+
[`backgroundColor-navPanel-${COMP$S}`]: "$backgroundColor",
|
|
26718
|
+
[`maxWidth-content-${COMP$S}`]: "$maxWidth-content",
|
|
26719
|
+
[`boxShadow-header-${COMP$S}`]: "none",
|
|
26720
|
+
[`boxShadow-navPanel-${COMP$S}`]: "$boxShadow-spread",
|
|
26423
26721
|
[`scroll-padding-block-Pages`]: "$space-4",
|
|
26424
26722
|
[`backgroundColor-content-App`]: "$backgroundColor",
|
|
26425
26723
|
light: {
|
|
@@ -26775,7 +27073,7 @@ function PageIndexer({
|
|
|
26775
27073
|
return /* @__PURE__ */ jsx("div", { ref: contentRef, children: renderChild2(Page.children) });
|
|
26776
27074
|
}
|
|
26777
27075
|
const appRenderer = createComponentRenderer(
|
|
26778
|
-
COMP$
|
|
27076
|
+
COMP$S,
|
|
26779
27077
|
AppMd,
|
|
26780
27078
|
({ node, extractValue, renderChild: renderChild2, className, lookupEventHandler }) => {
|
|
26781
27079
|
return /* @__PURE__ */ jsx(
|
|
@@ -26886,7 +27184,7 @@ function extractNavPanelFromPages(Pages2, NavPanel3, processedNavRef, extractVal
|
|
|
26886
27184
|
});
|
|
26887
27185
|
return extraNavs;
|
|
26888
27186
|
}
|
|
26889
|
-
const COMP$
|
|
27187
|
+
const COMP$R = "NavPanel";
|
|
26890
27188
|
const NavPanelMd = createMetadata({
|
|
26891
27189
|
status: "stable",
|
|
26892
27190
|
description: "`NavPanel` defines the navigation structure within an App, serving as a container for NavLink and NavGroup components that create your application's primary navigation menu. Its appearance and behavior automatically adapt based on the App's layout configuration.",
|
|
@@ -26903,15 +27201,15 @@ const NavPanelMd = createMetadata({
|
|
|
26903
27201
|
themeVars: parseScssVar(styles$19.themeVars),
|
|
26904
27202
|
limitThemeVarsToComponent: true,
|
|
26905
27203
|
defaultThemeVars: {
|
|
26906
|
-
[`horizontalAlignment-logo-${COMP$
|
|
26907
|
-
[`backgroundColor-${COMP$
|
|
26908
|
-
[`backgroundColor-${COMP$
|
|
26909
|
-
[`border-${COMP$
|
|
26910
|
-
[`paddingHorizontal-${COMP$
|
|
26911
|
-
[`paddingVertical-logo-${COMP$
|
|
26912
|
-
[`paddingHorizontal-logo-${COMP$
|
|
26913
|
-
[`marginBottom-logo-${COMP$
|
|
26914
|
-
[`boxShadow-${COMP$
|
|
27204
|
+
[`horizontalAlignment-logo-${COMP$R}`]: "center",
|
|
27205
|
+
[`backgroundColor-${COMP$R}`]: "$backgroundColor",
|
|
27206
|
+
[`backgroundColor-${COMP$R}-horizontal`]: "$backgroundColor-AppHeader",
|
|
27207
|
+
[`border-${COMP$R}`]: "0px solid $borderColor",
|
|
27208
|
+
[`paddingHorizontal-${COMP$R}`]: "0",
|
|
27209
|
+
[`paddingVertical-logo-${COMP$R}`]: "$space-4",
|
|
27210
|
+
[`paddingHorizontal-logo-${COMP$R}`]: "$space-4",
|
|
27211
|
+
[`marginBottom-logo-${COMP$R}`]: "$space-4",
|
|
27212
|
+
[`boxShadow-${COMP$R}-vertical`]: "4px 0 4px 0 rgb(0 0 0 / 10%)"
|
|
26915
27213
|
}
|
|
26916
27214
|
});
|
|
26917
27215
|
function NavPanelWithBuiltNavHierarchy({
|
|
@@ -26937,7 +27235,7 @@ function NavPanelWithBuiltNavHierarchy({
|
|
|
26937
27235
|
);
|
|
26938
27236
|
}
|
|
26939
27237
|
const navPanelRenderer = createComponentRenderer(
|
|
26940
|
-
COMP$
|
|
27238
|
+
COMP$R,
|
|
26941
27239
|
NavPanelMd,
|
|
26942
27240
|
({ node, renderChild: renderChild2, className, layoutContext, extractValue }) => {
|
|
26943
27241
|
return /* @__PURE__ */ jsx(
|
|
@@ -27053,7 +27351,7 @@ const pageRenderer = createComponentRenderer(
|
|
|
27053
27351
|
) });
|
|
27054
27352
|
}
|
|
27055
27353
|
);
|
|
27056
|
-
const COMP$
|
|
27354
|
+
const COMP$Q = "Pages";
|
|
27057
27355
|
const PagesMd = createMetadata({
|
|
27058
27356
|
status: "stable",
|
|
27059
27357
|
description: "`Pages` serves as the routing coordinator within an [App](/components/App), managing which [Page](/components/Page) displays based on the current URL.",
|
|
@@ -27065,7 +27363,7 @@ const PagesMd = createMetadata({
|
|
|
27065
27363
|
}
|
|
27066
27364
|
});
|
|
27067
27365
|
const pagesRenderer = createComponentRenderer(
|
|
27068
|
-
COMP$
|
|
27366
|
+
COMP$Q,
|
|
27069
27367
|
PagesMd,
|
|
27070
27368
|
({ node, extractValue, renderChild: renderChild2 }) => {
|
|
27071
27369
|
return /* @__PURE__ */ jsx(
|
|
@@ -27107,22 +27405,22 @@ const Footer = forwardRef(function Footer2({
|
|
|
27107
27405
|
}
|
|
27108
27406
|
) });
|
|
27109
27407
|
});
|
|
27110
|
-
const COMP$
|
|
27408
|
+
const COMP$P = "Footer";
|
|
27111
27409
|
const FooterMd = createMetadata({
|
|
27112
27410
|
status: "stable",
|
|
27113
27411
|
description: "`Footer` provides a designated area at the bottom of your application for footer content such as branding, copyright notices, or utility controls like theme toggles.",
|
|
27114
27412
|
themeVars: parseScssVar(styles$q.themeVars),
|
|
27115
27413
|
limitThemeVarsToComponent: true,
|
|
27116
27414
|
defaultThemeVars: {
|
|
27117
|
-
[`backgroundColor-${COMP$
|
|
27118
|
-
[`verticalAlignment-${COMP$
|
|
27119
|
-
[`fontSize-${COMP$
|
|
27120
|
-
[`textColor-${COMP$
|
|
27121
|
-
[`maxWidth-content-${COMP$
|
|
27122
|
-
[`borderTop-${COMP$
|
|
27123
|
-
[`padding-${COMP$
|
|
27124
|
-
[`gap-${COMP$
|
|
27125
|
-
[`margin-${COMP$
|
|
27415
|
+
[`backgroundColor-${COMP$P}`]: "$backgroundColor-AppHeader",
|
|
27416
|
+
[`verticalAlignment-${COMP$P}`]: "center",
|
|
27417
|
+
[`fontSize-${COMP$P}`]: "$fontSize-sm",
|
|
27418
|
+
[`textColor-${COMP$P}`]: "$textColor-secondary",
|
|
27419
|
+
[`maxWidth-content-${COMP$P}`]: "$maxWidth-content",
|
|
27420
|
+
[`borderTop-${COMP$P}`]: `1px solid $borderColor`,
|
|
27421
|
+
[`padding-${COMP$P}`]: "$space-2 $space-4",
|
|
27422
|
+
[`gap-${COMP$P}`]: "$space-normal",
|
|
27423
|
+
[`margin-${COMP$P}`]: `0 auto`,
|
|
27126
27424
|
light: {
|
|
27127
27425
|
// --- No light-specific theme vars
|
|
27128
27426
|
},
|
|
@@ -27132,7 +27430,7 @@ const FooterMd = createMetadata({
|
|
|
27132
27430
|
}
|
|
27133
27431
|
});
|
|
27134
27432
|
const footerRenderer = createComponentRenderer(
|
|
27135
|
-
COMP$
|
|
27433
|
+
COMP$P,
|
|
27136
27434
|
FooterMd,
|
|
27137
27435
|
({ node, renderChild: renderChild2, className, layoutContext }) => {
|
|
27138
27436
|
return /* @__PURE__ */ jsx(Footer, { className: classnames(layoutContext == null ? void 0 : layoutContext.themeClassName, className), children: renderChild2(node.children, {
|
|
@@ -27141,7 +27439,7 @@ const footerRenderer = createComponentRenderer(
|
|
|
27141
27439
|
}) });
|
|
27142
27440
|
}
|
|
27143
27441
|
);
|
|
27144
|
-
const COMP$
|
|
27442
|
+
const COMP$O = "NavGroup";
|
|
27145
27443
|
const NavGroupMd = createMetadata({
|
|
27146
27444
|
status: "stable",
|
|
27147
27445
|
description: "`NavGroup` creates collapsible containers for organizing related navigation items into hierarchical menu structures. It groups `NavLink` components and other `NavGroup` components, providing expandable submenus with customizable icons and states.",
|
|
@@ -27156,7 +27454,7 @@ const NavGroupMd = createMetadata({
|
|
|
27156
27454
|
valueType: "string"
|
|
27157
27455
|
},
|
|
27158
27456
|
icon: {
|
|
27159
|
-
description: `This property defines an optional icon to display along with the \`${COMP$
|
|
27457
|
+
description: `This property defines an optional icon to display along with the \`${COMP$O}\` label.`,
|
|
27160
27458
|
valueType: "string"
|
|
27161
27459
|
},
|
|
27162
27460
|
iconHorizontalExpanded: {
|
|
@@ -27182,13 +27480,13 @@ const NavGroupMd = createMetadata({
|
|
|
27182
27480
|
},
|
|
27183
27481
|
themeVars: parseScssVar(styles$18.themeVars),
|
|
27184
27482
|
defaultThemeVars: {
|
|
27185
|
-
[`backgroundColor-dropdown-${COMP$
|
|
27186
|
-
[`borderRadius-dropdown-${COMP$
|
|
27187
|
-
[`boxShadow-dropdown-${COMP$
|
|
27483
|
+
[`backgroundColor-dropdown-${COMP$O}`]: "$backgroundColor-primary",
|
|
27484
|
+
[`borderRadius-dropdown-${COMP$O}`]: "$borderRadius",
|
|
27485
|
+
[`boxShadow-dropdown-${COMP$O}`]: "$boxShadow-spread"
|
|
27188
27486
|
}
|
|
27189
27487
|
});
|
|
27190
27488
|
const navGroupComponentRenderer = createComponentRenderer(
|
|
27191
|
-
COMP$
|
|
27489
|
+
COMP$O,
|
|
27192
27490
|
NavGroupMd,
|
|
27193
27491
|
({ node, extractValue, renderChild: renderChild2 }) => {
|
|
27194
27492
|
return /* @__PURE__ */ jsx(
|
|
@@ -27209,7 +27507,7 @@ const navGroupComponentRenderer = createComponentRenderer(
|
|
|
27209
27507
|
);
|
|
27210
27508
|
}
|
|
27211
27509
|
);
|
|
27212
|
-
const COMP$
|
|
27510
|
+
const COMP$N = "Logo";
|
|
27213
27511
|
const LogoMd = createMetadata({
|
|
27214
27512
|
status: "stable",
|
|
27215
27513
|
description: "`Logo` displays your application's brand symbol by automatically loading logo images defined in the app manifest. While logos are typically configured using App-level properties (`logo`, `logo-dark`), this component provides direct control when you need custom logo placement or templating.",
|
|
@@ -27227,7 +27525,7 @@ const LogoMd = createMetadata({
|
|
|
27227
27525
|
}
|
|
27228
27526
|
});
|
|
27229
27527
|
const logoComponentRenderer = createComponentRenderer(
|
|
27230
|
-
COMP$
|
|
27528
|
+
COMP$N,
|
|
27231
27529
|
LogoMd,
|
|
27232
27530
|
({ node, className, extractValue }) => {
|
|
27233
27531
|
return /* @__PURE__ */ jsx(
|
|
@@ -27240,7 +27538,7 @@ const logoComponentRenderer = createComponentRenderer(
|
|
|
27240
27538
|
);
|
|
27241
27539
|
}
|
|
27242
27540
|
);
|
|
27243
|
-
const COMP$
|
|
27541
|
+
const COMP$M = "RadioGroup";
|
|
27244
27542
|
const RGOption = `RadioGroupOption`;
|
|
27245
27543
|
const RadioGroupMd = createMetadata({
|
|
27246
27544
|
status: "stable",
|
|
@@ -27269,13 +27567,13 @@ const RadioGroupMd = createMetadata({
|
|
|
27269
27567
|
),
|
|
27270
27568
|
label: dLabel(),
|
|
27271
27569
|
labelPosition: dLabelPosition("top"),
|
|
27272
|
-
labelWidth: dLabelWidth(COMP$
|
|
27273
|
-
labelBreak: dLabelBreak(COMP$
|
|
27570
|
+
labelWidth: dLabelWidth(COMP$M),
|
|
27571
|
+
labelBreak: dLabelBreak(COMP$M)
|
|
27274
27572
|
},
|
|
27275
27573
|
events: {
|
|
27276
|
-
gotFocus: dGotFocus(COMP$
|
|
27277
|
-
lostFocus: dLostFocus(COMP$
|
|
27278
|
-
didChange: dDidChange(COMP$
|
|
27574
|
+
gotFocus: dGotFocus(COMP$M),
|
|
27575
|
+
lostFocus: dLostFocus(COMP$M),
|
|
27576
|
+
didChange: dDidChange(COMP$M)
|
|
27279
27577
|
},
|
|
27280
27578
|
themeVars: parseScssVar(styles$I.themeVars),
|
|
27281
27579
|
defaultThemeVars: {
|
|
@@ -27297,7 +27595,7 @@ const RadioGroupMd = createMetadata({
|
|
|
27297
27595
|
}
|
|
27298
27596
|
});
|
|
27299
27597
|
const radioGroupRenderer = createComponentRenderer(
|
|
27300
|
-
COMP$
|
|
27598
|
+
COMP$M,
|
|
27301
27599
|
RadioGroupMd,
|
|
27302
27600
|
({
|
|
27303
27601
|
node,
|
|
@@ -27334,7 +27632,7 @@ const radioGroupRenderer = createComponentRenderer(
|
|
|
27334
27632
|
);
|
|
27335
27633
|
}
|
|
27336
27634
|
);
|
|
27337
|
-
const COMP$
|
|
27635
|
+
const COMP$L = "Slot";
|
|
27338
27636
|
const SlotMd = createMetadata({
|
|
27339
27637
|
status: "experimental",
|
|
27340
27638
|
description: "Placeholder in a reusable component. Signs the slot where the component's injected children should be rendered.",
|
|
@@ -27344,8 +27642,8 @@ const SlotMd = createMetadata({
|
|
|
27344
27642
|
allowArbitraryProps: true,
|
|
27345
27643
|
opaque: true
|
|
27346
27644
|
});
|
|
27347
|
-
const SlotHolder = createPropHolderComponent(COMP$
|
|
27348
|
-
const COMP$
|
|
27645
|
+
const SlotHolder = createPropHolderComponent(COMP$L, SlotMd);
|
|
27646
|
+
const COMP$K = "FileInput";
|
|
27349
27647
|
const DEFAULT_ICON = "browse:FileInput";
|
|
27350
27648
|
const FileInputMd = createMetadata({
|
|
27351
27649
|
status: "stable",
|
|
@@ -27360,12 +27658,12 @@ const FileInputMd = createMetadata({
|
|
|
27360
27658
|
validationStatus: dValidationStatus(),
|
|
27361
27659
|
label: dLabel(),
|
|
27362
27660
|
labelPosition: dLabelPosition("top"),
|
|
27363
|
-
labelWidth: dLabelWidth(COMP$
|
|
27364
|
-
labelBreak: dLabelBreak(COMP$
|
|
27661
|
+
labelWidth: dLabelWidth(COMP$K),
|
|
27662
|
+
labelBreak: dLabelBreak(COMP$K),
|
|
27365
27663
|
buttonVariant: d("The button variant to use", buttonVariantNames),
|
|
27366
27664
|
buttonLabel: d(`This property is an optional string to set a label for the button part.`),
|
|
27367
27665
|
buttonIcon: d(
|
|
27368
|
-
`The ID of the icon to display in the button. You can change the default icon for all ${COMP$
|
|
27666
|
+
`The ID of the icon to display in the button. You can change the default icon for all ${COMP$K} instances with the "icon.browse:FileInput" declaration in the app configuration file.`
|
|
27369
27667
|
),
|
|
27370
27668
|
buttonIconPosition: d(
|
|
27371
27669
|
`This optional string determines the location of the button icon.`,
|
|
@@ -27408,9 +27706,9 @@ const FileInputMd = createMetadata({
|
|
|
27408
27706
|
)
|
|
27409
27707
|
},
|
|
27410
27708
|
events: {
|
|
27411
|
-
didChange: dDidChange(COMP$
|
|
27412
|
-
gotFocus: dGotFocus(COMP$
|
|
27413
|
-
lostFocus: dLostFocus(COMP$
|
|
27709
|
+
didChange: dDidChange(COMP$K),
|
|
27710
|
+
gotFocus: dGotFocus(COMP$K),
|
|
27711
|
+
lostFocus: dLostFocus(COMP$K)
|
|
27414
27712
|
},
|
|
27415
27713
|
apis: {
|
|
27416
27714
|
value: {
|
|
@@ -27436,7 +27734,7 @@ const FileInputMd = createMetadata({
|
|
|
27436
27734
|
themeVars: parseScssVar(styles$L.themeVars)
|
|
27437
27735
|
});
|
|
27438
27736
|
const fileInputRenderer = createComponentRenderer(
|
|
27439
|
-
COMP$
|
|
27737
|
+
COMP$K,
|
|
27440
27738
|
FileInputMd,
|
|
27441
27739
|
({ node, state, updateState, extractValue, lookupEventHandler, registerComponentApi, className }) => {
|
|
27442
27740
|
const iconName = extractValue.asOptionalString(node.props.buttonIcon) || DEFAULT_ICON;
|
|
@@ -27474,7 +27772,7 @@ const fileInputRenderer = createComponentRenderer(
|
|
|
27474
27772
|
);
|
|
27475
27773
|
}
|
|
27476
27774
|
);
|
|
27477
|
-
const COMP$
|
|
27775
|
+
const COMP$J = "Spinner";
|
|
27478
27776
|
const SpinnerMd = createMetadata({
|
|
27479
27777
|
status: "stable",
|
|
27480
27778
|
description: "`Spinner` is an animated indicator that represents an action in progress with no deterministic progress value.",
|
|
@@ -27492,13 +27790,13 @@ const SpinnerMd = createMetadata({
|
|
|
27492
27790
|
},
|
|
27493
27791
|
themeVars: parseScssVar(styles$1j.themeVars),
|
|
27494
27792
|
defaultThemeVars: {
|
|
27495
|
-
[`size-${COMP$
|
|
27496
|
-
[`thickness-${COMP$
|
|
27497
|
-
[`borderColor-${COMP$
|
|
27793
|
+
[`size-${COMP$J}`]: "$space-10",
|
|
27794
|
+
[`thickness-${COMP$J}`]: "$space-0_5",
|
|
27795
|
+
[`borderColor-${COMP$J}`]: "$color-surface-400"
|
|
27498
27796
|
}
|
|
27499
27797
|
});
|
|
27500
27798
|
const spinnerComponentRenderer = createComponentRenderer(
|
|
27501
|
-
COMP$
|
|
27799
|
+
COMP$J,
|
|
27502
27800
|
SpinnerMd,
|
|
27503
27801
|
({ node, className, extractValue }) => {
|
|
27504
27802
|
return /* @__PURE__ */ jsx(
|
|
@@ -27511,7 +27809,7 @@ const spinnerComponentRenderer = createComponentRenderer(
|
|
|
27511
27809
|
);
|
|
27512
27810
|
}
|
|
27513
27811
|
);
|
|
27514
|
-
const COMP$
|
|
27812
|
+
const COMP$I = "Select";
|
|
27515
27813
|
const SelectMd = createMetadata({
|
|
27516
27814
|
status: "stable",
|
|
27517
27815
|
description: "`Select` provides a dropdown interface for choosing from a list of options, supporting both single and multiple selection modes. It offers extensive customization capabilities including search functionality, custom templates, and comprehensive form integration.",
|
|
@@ -27548,9 +27846,9 @@ const SelectMd = createMetadata({
|
|
|
27548
27846
|
},
|
|
27549
27847
|
label: dLabel(),
|
|
27550
27848
|
labelPosition: dLabelPosition("top"),
|
|
27551
|
-
labelWidth: dLabelWidth(COMP$
|
|
27849
|
+
labelWidth: dLabelWidth(COMP$I),
|
|
27552
27850
|
labelBreak: {
|
|
27553
|
-
...dLabelBreak(COMP$
|
|
27851
|
+
...dLabelBreak(COMP$I),
|
|
27554
27852
|
defaultValue: defaultProps$F.labelBreak
|
|
27555
27853
|
},
|
|
27556
27854
|
optionLabelTemplate: dComponent(
|
|
@@ -27586,24 +27884,24 @@ const SelectMd = createMetadata({
|
|
|
27586
27884
|
}
|
|
27587
27885
|
},
|
|
27588
27886
|
events: {
|
|
27589
|
-
gotFocus: dGotFocus(COMP$
|
|
27590
|
-
lostFocus: dLostFocus(COMP$
|
|
27591
|
-
didChange: dDidChange(COMP$
|
|
27887
|
+
gotFocus: dGotFocus(COMP$I),
|
|
27888
|
+
lostFocus: dLostFocus(COMP$I),
|
|
27889
|
+
didChange: dDidChange(COMP$I)
|
|
27592
27890
|
},
|
|
27593
27891
|
apis: {
|
|
27594
27892
|
focus: {
|
|
27595
|
-
description: `This method focuses the \`${COMP$
|
|
27893
|
+
description: `This method focuses the \`${COMP$I}\` component. You can use it to programmatically focus the component.`,
|
|
27596
27894
|
signature: "focus(): void"
|
|
27597
27895
|
},
|
|
27598
27896
|
setValue: {
|
|
27599
|
-
description: `This API sets the value of the \`${COMP$
|
|
27897
|
+
description: `This API sets the value of the \`${COMP$I}\`. You can use it to programmatically change the value.`,
|
|
27600
27898
|
signature: "setValue(value: string | string[] | undefined): void",
|
|
27601
27899
|
parameters: {
|
|
27602
27900
|
value: "The new value to set. Can be a single value or an array of values for multi-select."
|
|
27603
27901
|
}
|
|
27604
27902
|
},
|
|
27605
27903
|
value: {
|
|
27606
|
-
description: `This API retrieves the current value of the \`${COMP$
|
|
27904
|
+
description: `This API retrieves the current value of the \`${COMP$I}\`. You can use it to get the value programmatically.`,
|
|
27607
27905
|
signature: "get value(): string | string[] | undefined"
|
|
27608
27906
|
},
|
|
27609
27907
|
reset: {
|
|
@@ -27617,35 +27915,35 @@ const SelectMd = createMetadata({
|
|
|
27617
27915
|
},
|
|
27618
27916
|
themeVars: parseScssVar(styles$J.themeVars),
|
|
27619
27917
|
defaultThemeVars: {
|
|
27620
|
-
[`backgroundColor-menu-${COMP$
|
|
27621
|
-
[`boxShadow-menu-${COMP$
|
|
27622
|
-
[`borderRadius-menu-${COMP$
|
|
27623
|
-
[`borderWidth-menu-${COMP$
|
|
27624
|
-
[`borderColor-menu-${COMP$
|
|
27625
|
-
[`backgroundColor-${COMP$
|
|
27626
|
-
[`fontSize-${COMP$
|
|
27627
|
-
[`paddingHorizontal-${COMP$
|
|
27628
|
-
[`paddingVertical-${COMP$
|
|
27629
|
-
[`borderRadius-${COMP$
|
|
27630
|
-
[`paddingHorizontal-item-${COMP$
|
|
27631
|
-
[`paddingVertical-item-${COMP$
|
|
27632
|
-
[`paddingHorizontal-${COMP$
|
|
27633
|
-
[`paddingVertical-${COMP$
|
|
27634
|
-
[`opacity-text-item-${COMP$
|
|
27635
|
-
[`opacity-${COMP$
|
|
27636
|
-
[`backgroundColor-${COMP$
|
|
27637
|
-
[`backgroundColor-${COMP$
|
|
27638
|
-
[`textColor-item-${COMP$
|
|
27639
|
-
[`textColor-${COMP$
|
|
27640
|
-
[`backgroundColor-item-${COMP$
|
|
27641
|
-
[`backgroundColor-item-${COMP$
|
|
27642
|
-
[`backgroundColor-item-${COMP$
|
|
27918
|
+
[`backgroundColor-menu-${COMP$I}`]: "$color-surface-raised",
|
|
27919
|
+
[`boxShadow-menu-${COMP$I}`]: "$boxShadow-md",
|
|
27920
|
+
[`borderRadius-menu-${COMP$I}`]: "$borderRadius",
|
|
27921
|
+
[`borderWidth-menu-${COMP$I}`]: "1px",
|
|
27922
|
+
[`borderColor-menu-${COMP$I}`]: "$borderColor",
|
|
27923
|
+
[`backgroundColor-${COMP$I}-badge`]: "$color-primary-500",
|
|
27924
|
+
[`fontSize-${COMP$I}-badge`]: "$fontSize-sm",
|
|
27925
|
+
[`paddingHorizontal-${COMP$I}-badge`]: "$space-2_5",
|
|
27926
|
+
[`paddingVertical-${COMP$I}-badge`]: "$space-0_5",
|
|
27927
|
+
[`borderRadius-${COMP$I}-badge`]: "$borderRadius",
|
|
27928
|
+
[`paddingHorizontal-item-${COMP$I}`]: "$space-2",
|
|
27929
|
+
[`paddingVertical-item-${COMP$I}`]: "$space-2",
|
|
27930
|
+
[`paddingHorizontal-${COMP$I}`]: "$space-2",
|
|
27931
|
+
[`paddingVertical-${COMP$I}`]: "$space-2",
|
|
27932
|
+
[`opacity-text-item-${COMP$I}--disabled`]: "0.5",
|
|
27933
|
+
[`opacity-${COMP$I}--disabled`]: "0.5",
|
|
27934
|
+
[`backgroundColor-${COMP$I}-badge--hover`]: "$color-primary-400",
|
|
27935
|
+
[`backgroundColor-${COMP$I}-badge--active`]: "$color-primary-500",
|
|
27936
|
+
[`textColor-item-${COMP$I}--disabled`]: "$color-surface-200",
|
|
27937
|
+
[`textColor-${COMP$I}-badge`]: "$color-surface-50",
|
|
27938
|
+
[`backgroundColor-item-${COMP$I}`]: "$backgroundColor-dropdown-item",
|
|
27939
|
+
[`backgroundColor-item-${COMP$I}--hover`]: "$backgroundColor-dropdown-item--hover",
|
|
27940
|
+
[`backgroundColor-item-${COMP$I}--active`]: "$backgroundColor-dropdown-item--active",
|
|
27643
27941
|
// Default borderColor-Input--disabled is too light so the disabled component is barely visible
|
|
27644
|
-
[`borderColor-${COMP$
|
|
27942
|
+
[`borderColor-${COMP$I}--disabled`]: "initial"
|
|
27645
27943
|
}
|
|
27646
27944
|
});
|
|
27647
27945
|
const selectComponentRenderer = createComponentRenderer(
|
|
27648
|
-
COMP$
|
|
27946
|
+
COMP$I,
|
|
27649
27947
|
SelectMd,
|
|
27650
27948
|
({
|
|
27651
27949
|
node,
|
|
@@ -27721,14 +28019,95 @@ const selectComponentRenderer = createComponentRenderer(
|
|
|
27721
28019
|
);
|
|
27722
28020
|
}
|
|
27723
28021
|
);
|
|
27724
|
-
|
|
27725
|
-
|
|
27726
|
-
|
|
27727
|
-
|
|
28022
|
+
var component = {
|
|
28023
|
+
name: "FormSection",
|
|
28024
|
+
component: {
|
|
28025
|
+
type: "VStack",
|
|
28026
|
+
debug: {
|
|
28027
|
+
source: {
|
|
28028
|
+
start: 30,
|
|
28029
|
+
end: 684,
|
|
28030
|
+
fileId: "0"
|
|
28031
|
+
}
|
|
28032
|
+
},
|
|
28033
|
+
props: {
|
|
28034
|
+
paddingBottom: "{$props.paddingBottom ?? '1rem'}",
|
|
28035
|
+
gap: "0"
|
|
28036
|
+
},
|
|
28037
|
+
children: [
|
|
28038
|
+
{
|
|
28039
|
+
type: "Heading",
|
|
28040
|
+
debug: {
|
|
28041
|
+
source: {
|
|
28042
|
+
start: 98,
|
|
28043
|
+
end: 308,
|
|
28044
|
+
fileId: "0"
|
|
28045
|
+
}
|
|
28046
|
+
},
|
|
28047
|
+
when: "{!!$props.heading}",
|
|
28048
|
+
props: {
|
|
28049
|
+
marginBottom: "$space-tight",
|
|
28050
|
+
level: "{$props.headingLevel ?? 'h3'}",
|
|
28051
|
+
fontWeight: "{$props.headingWeight ?? 'bold'}",
|
|
28052
|
+
value: "{$props.heading}"
|
|
28053
|
+
}
|
|
28054
|
+
},
|
|
28055
|
+
{
|
|
28056
|
+
type: "Text",
|
|
28057
|
+
debug: {
|
|
28058
|
+
source: {
|
|
28059
|
+
start: 308,
|
|
28060
|
+
end: 465,
|
|
28061
|
+
fileId: "0"
|
|
28062
|
+
}
|
|
28063
|
+
},
|
|
28064
|
+
when: "{!!$props.info}",
|
|
28065
|
+
props: {
|
|
28066
|
+
fontSize: "{$props.infoFontSize ?? '0.8rem'}",
|
|
28067
|
+
paddingBottom: "$space-normal",
|
|
28068
|
+
value: "{$props.info}"
|
|
28069
|
+
}
|
|
28070
|
+
},
|
|
28071
|
+
{
|
|
28072
|
+
type: "FlowLayout",
|
|
28073
|
+
debug: {
|
|
28074
|
+
source: {
|
|
28075
|
+
start: 465,
|
|
28076
|
+
end: 672,
|
|
28077
|
+
fileId: "0"
|
|
28078
|
+
}
|
|
28079
|
+
},
|
|
28080
|
+
props: {
|
|
28081
|
+
paddingTop: "{$props.paddingTop ?? '$space-normal'}",
|
|
28082
|
+
columnGap: "{$props.columnGap ?? '3rem'}",
|
|
28083
|
+
rowGap: "{$props.rowGap ?? '$space-normal'}"
|
|
28084
|
+
},
|
|
28085
|
+
children: [
|
|
28086
|
+
{
|
|
28087
|
+
type: "Slot",
|
|
28088
|
+
debug: {
|
|
28089
|
+
source: {
|
|
28090
|
+
start: 639,
|
|
28091
|
+
end: 654,
|
|
28092
|
+
fileId: "0"
|
|
28093
|
+
}
|
|
28094
|
+
}
|
|
28095
|
+
}
|
|
28096
|
+
]
|
|
28097
|
+
}
|
|
28098
|
+
]
|
|
28099
|
+
},
|
|
28100
|
+
debug: {
|
|
28101
|
+
source: {
|
|
28102
|
+
start: 0,
|
|
28103
|
+
end: 697,
|
|
28104
|
+
fileId: "0"
|
|
28105
|
+
}
|
|
27728
28106
|
}
|
|
27729
|
-
|
|
27730
|
-
|
|
27731
|
-
|
|
28107
|
+
};
|
|
28108
|
+
const componentSource = {
|
|
28109
|
+
component
|
|
28110
|
+
};
|
|
27732
28111
|
const FormSectionMd = createMetadata({
|
|
27733
28112
|
status: "experimental",
|
|
27734
28113
|
description: "`FormSection` groups elements within a `Form`. Child components are placed in a [FlowLayout](/components/FlowLayout).",
|
|
@@ -27773,34 +28152,10 @@ const FormSectionMd = createMetadata({
|
|
|
27773
28152
|
}
|
|
27774
28153
|
}
|
|
27775
28154
|
});
|
|
27776
|
-
const
|
|
27777
|
-
|
|
27778
|
-
|
|
27779
|
-
|
|
27780
|
-
when="{!!$props.heading}"
|
|
27781
|
-
marginBottom="$space-tight"
|
|
27782
|
-
level="{$props.headingLevel ?? 'h3'}"
|
|
27783
|
-
fontWeight="{$props.headingWeight ?? 'bold'}"
|
|
27784
|
-
value="{$props.heading}" />
|
|
27785
|
-
<Text
|
|
27786
|
-
when="{!!$props.info}"
|
|
27787
|
-
fontSize="{$props.infoFontSize ?? '0.8rem'}"
|
|
27788
|
-
paddingBottom="$space-normal"
|
|
27789
|
-
value="{$props.info}" />
|
|
27790
|
-
<FlowLayout
|
|
27791
|
-
width="100%"
|
|
27792
|
-
paddingTop="{$props.paddingTop ?? '$space-normal'}"
|
|
27793
|
-
columnGap="{$props.columnGap ?? '3rem'}"
|
|
27794
|
-
rowGap="{$props.rowGap ?? '$space-normal'}" >
|
|
27795
|
-
<Slot />
|
|
27796
|
-
</FlowLayout>
|
|
27797
|
-
</VStack>
|
|
27798
|
-
</Component>
|
|
27799
|
-
`;
|
|
27800
|
-
const formSectionRenderer = {
|
|
27801
|
-
compoundComponentDef: compoundComponentDefFromSource(COMP$I, componentSource),
|
|
27802
|
-
metadata: FormSectionMd
|
|
27803
|
-
};
|
|
28155
|
+
const formSectionRenderer = createUserDefinedComponentRenderer(
|
|
28156
|
+
FormSectionMd,
|
|
28157
|
+
componentSource
|
|
28158
|
+
);
|
|
27804
28159
|
const defaultProps$o = {
|
|
27805
28160
|
...defaultProps$$,
|
|
27806
28161
|
labelPosition: "end"
|
|
@@ -30086,24 +30441,24 @@ function Theme({
|
|
|
30086
30441
|
}
|
|
30087
30442
|
if (isRoot) {
|
|
30088
30443
|
const faviconUrl = getResourceUrl("resource:favicon") || "/resources/favicon.ico";
|
|
30089
|
-
return (
|
|
30090
|
-
|
|
30091
|
-
|
|
30092
|
-
/* @__PURE__ */
|
|
30093
|
-
|
|
30094
|
-
|
|
30095
|
-
|
|
30096
|
-
|
|
30097
|
-
|
|
30098
|
-
|
|
30099
|
-
|
|
30100
|
-
|
|
30101
|
-
/* @__PURE__ */ jsx(NotificationToast, { toastDuration })
|
|
30102
|
-
] })
|
|
30103
|
-
);
|
|
30444
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
30445
|
+
/* @__PURE__ */ jsxs(Helmet, { children: [
|
|
30446
|
+
/* @__PURE__ */ jsx("link", { rel: "icon", type: "image/svg+xml", href: faviconUrl }),
|
|
30447
|
+
fontLinks == null ? void 0 : fontLinks.map((fontLink) => /* @__PURE__ */ jsx("link", { href: fontLink, rel: "stylesheet" }, fontLink))
|
|
30448
|
+
] }),
|
|
30449
|
+
/* @__PURE__ */ jsx(RootClasses, { classNames: rootClasses }),
|
|
30450
|
+
/* @__PURE__ */ jsxs(ErrorBoundary, { node, location: "theme-root", children: [
|
|
30451
|
+
renderChild2 && renderChild2(node.children),
|
|
30452
|
+
children
|
|
30453
|
+
] }),
|
|
30454
|
+
/* @__PURE__ */ jsx(NotificationToast, { toastDuration })
|
|
30455
|
+
] });
|
|
30104
30456
|
}
|
|
30105
30457
|
return /* @__PURE__ */ jsxs(ThemeContext.Provider, { value: currentThemeContextValue, children: [
|
|
30106
|
-
/* @__PURE__ */
|
|
30458
|
+
/* @__PURE__ */ jsxs("div", { className: classnames(styles$p.wrapper, className), children: [
|
|
30459
|
+
renderChild2 && renderChild2(node.children, { ...layoutContext, themeClassName: className }),
|
|
30460
|
+
children
|
|
30461
|
+
] }),
|
|
30107
30462
|
root2 && createPortal(
|
|
30108
30463
|
/* @__PURE__ */ jsx(
|
|
30109
30464
|
"div",
|
|
@@ -33492,10 +33847,8 @@ const defaultProps$k = {
|
|
|
33492
33847
|
clearable: false,
|
|
33493
33848
|
clearToInitialValue: true,
|
|
33494
33849
|
required: false,
|
|
33495
|
-
labelPosition: "top",
|
|
33496
33850
|
readOnly: false,
|
|
33497
33851
|
autoFocus: false,
|
|
33498
|
-
labelBreak: false,
|
|
33499
33852
|
emptyCharacter: "-"
|
|
33500
33853
|
};
|
|
33501
33854
|
const TimeInputNative = forwardRef(function TimeInputNative2({
|
|
@@ -33525,10 +33878,6 @@ const TimeInputNative = forwardRef(function TimeInputNative2({
|
|
|
33525
33878
|
endText,
|
|
33526
33879
|
endIcon,
|
|
33527
33880
|
gap,
|
|
33528
|
-
label: label2,
|
|
33529
|
-
labelPosition = defaultProps$k.labelPosition,
|
|
33530
|
-
labelWidth,
|
|
33531
|
-
labelBreak: labelBreak2 = defaultProps$k.labelBreak,
|
|
33532
33881
|
readOnly: readOnly2 = defaultProps$k.readOnly,
|
|
33533
33882
|
autoFocus = defaultProps$k.autoFocus,
|
|
33534
33883
|
emptyCharacter = defaultProps$k.emptyCharacter,
|
|
@@ -33956,6 +34305,7 @@ const TimeInputNative = forwardRef(function TimeInputNative2({
|
|
|
33956
34305
|
/* @__PURE__ */ jsx(
|
|
33957
34306
|
HourInput,
|
|
33958
34307
|
{
|
|
34308
|
+
id,
|
|
33959
34309
|
amPm,
|
|
33960
34310
|
autoFocus,
|
|
33961
34311
|
disabled: !enabled2,
|
|
@@ -34052,23 +34402,6 @@ const TimeInputNative = forwardRef(function TimeInputNative2({
|
|
|
34052
34402
|
]
|
|
34053
34403
|
}
|
|
34054
34404
|
);
|
|
34055
|
-
if (label2) {
|
|
34056
|
-
return /* @__PURE__ */ jsx(
|
|
34057
|
-
ItemWithLabel,
|
|
34058
|
-
{
|
|
34059
|
-
label: label2,
|
|
34060
|
-
labelPosition,
|
|
34061
|
-
labelWidth,
|
|
34062
|
-
labelBreak: labelBreak2,
|
|
34063
|
-
required: required2,
|
|
34064
|
-
children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
34065
|
-
startAdornment,
|
|
34066
|
-
timeInputComponent,
|
|
34067
|
-
endAdornment
|
|
34068
|
-
] })
|
|
34069
|
-
}
|
|
34070
|
-
);
|
|
34071
|
-
}
|
|
34072
34405
|
return timeInputComponent;
|
|
34073
34406
|
});
|
|
34074
34407
|
function AmPmButton({
|
|
@@ -34433,10 +34766,6 @@ const TimeInputMd = createMetadata({
|
|
|
34433
34766
|
readOnly: dReadonly(),
|
|
34434
34767
|
enabled: dEnabled(defaultProps$k.enabled),
|
|
34435
34768
|
validationStatus: dValidationStatus(defaultProps$k.validationStatus),
|
|
34436
|
-
label: dLabel(),
|
|
34437
|
-
labelPosition: dLabelPosition("top"),
|
|
34438
|
-
labelWidth: dLabelWidth(COMP$z),
|
|
34439
|
-
labelBreak: dLabelBreak(COMP$z),
|
|
34440
34769
|
hour24: {
|
|
34441
34770
|
description: "Whether to use 24-hour format (true) or 12-hour format with AM/PM (false)",
|
|
34442
34771
|
valueType: "boolean",
|
|
@@ -34574,10 +34903,6 @@ const timeInputComponentRenderer = createComponentRenderer(
|
|
|
34574
34903
|
clearIcon: extractValue(node.props.clearIcon),
|
|
34575
34904
|
clearToInitialValue: extractValue.asOptionalBoolean(node.props.clearToInitialValue, defaultProps$k.clearToInitialValue),
|
|
34576
34905
|
required: extractValue.asOptionalBoolean(node.props.required, defaultProps$k.required),
|
|
34577
|
-
label: extractValue(node.props.label),
|
|
34578
|
-
labelPosition: extractValue(node.props.labelPosition),
|
|
34579
|
-
labelWidth: extractValue(node.props.labelWidth),
|
|
34580
|
-
labelBreak: extractValue.asOptionalBoolean(node.props.labelBreak, defaultProps$k.labelBreak),
|
|
34581
34906
|
startText: extractValue(node.props.startText),
|
|
34582
34907
|
startIcon: extractValue(node.props.startIcon),
|
|
34583
34908
|
endText: extractValue(node.props.endText),
|
|
@@ -35214,7 +35539,8 @@ function AppState({
|
|
|
35214
35539
|
bucket = defaultProps$f.bucket,
|
|
35215
35540
|
updateState,
|
|
35216
35541
|
initialValue,
|
|
35217
|
-
registerComponentApi
|
|
35542
|
+
registerComponentApi,
|
|
35543
|
+
onDidUpdate
|
|
35218
35544
|
}) {
|
|
35219
35545
|
const registerAppState = useAppStateContextPart((value2) => value2.registerAppState);
|
|
35220
35546
|
const update = useAppStateContextPart((value2) => value2.update);
|
|
@@ -35226,18 +35552,45 @@ function AppState({
|
|
|
35226
35552
|
const value = useAppStateContextPart((value2) => value2.appState[bucket]);
|
|
35227
35553
|
useIsomorphicLayoutEffect(() => {
|
|
35228
35554
|
updateState({ value });
|
|
35229
|
-
|
|
35555
|
+
if (onDidUpdate) {
|
|
35556
|
+
onDidUpdate({ bucket, value, previousValue: void 0 });
|
|
35557
|
+
}
|
|
35558
|
+
}, [updateState, value, onDidUpdate, bucket]);
|
|
35230
35559
|
useIsomorphicLayoutEffect(() => {
|
|
35231
35560
|
registerComponentApi({
|
|
35232
|
-
update: (patch) => update(bucket, patch)
|
|
35561
|
+
update: (patch) => update(bucket, patch),
|
|
35562
|
+
appendToList: (key, id) => {
|
|
35563
|
+
const currentState = value || {};
|
|
35564
|
+
const currentArray = currentState[key] || [];
|
|
35565
|
+
if (!currentArray.includes(id)) {
|
|
35566
|
+
const newArray = [...currentArray, id];
|
|
35567
|
+
update(bucket, { [key]: newArray });
|
|
35568
|
+
}
|
|
35569
|
+
},
|
|
35570
|
+
removeFromList: (key, id) => {
|
|
35571
|
+
const currentState = value || {};
|
|
35572
|
+
const currentArray = currentState[key] || [];
|
|
35573
|
+
const newArray = currentArray.filter((item2) => item2 !== id);
|
|
35574
|
+
update(bucket, { [key]: newArray });
|
|
35575
|
+
},
|
|
35576
|
+
listIncludes: (key, id) => {
|
|
35577
|
+
const currentState = value || {};
|
|
35578
|
+
const currentArray = currentState[key] || [];
|
|
35579
|
+
return currentArray.includes(id);
|
|
35580
|
+
}
|
|
35233
35581
|
});
|
|
35234
|
-
}, [bucket, registerComponentApi, update]);
|
|
35582
|
+
}, [bucket, registerComponentApi, update, value]);
|
|
35235
35583
|
return null;
|
|
35236
35584
|
}
|
|
35237
35585
|
const COMP$u = "AppState";
|
|
35238
35586
|
const AppStateMd = createMetadata({
|
|
35239
35587
|
status: "stable",
|
|
35240
35588
|
description: "`AppState` is an invisible component that provides global state management across your entire application. Unlike component variables that are scoped locally, AppState allows any component to access and update shared state without prop drilling.",
|
|
35589
|
+
events: {
|
|
35590
|
+
didUpdate: d(
|
|
35591
|
+
"This event is fired when the AppState value is updated. The event provides the new state value as its parameter."
|
|
35592
|
+
)
|
|
35593
|
+
},
|
|
35241
35594
|
props: {
|
|
35242
35595
|
bucket: {
|
|
35243
35596
|
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.`,
|
|
@@ -35255,6 +35608,30 @@ const AppStateMd = createMetadata({
|
|
|
35255
35608
|
parameters: {
|
|
35256
35609
|
newState: "An object that specifies the new state value."
|
|
35257
35610
|
}
|
|
35611
|
+
},
|
|
35612
|
+
appendToList: {
|
|
35613
|
+
signature: "appendToList(key: string, id: any)",
|
|
35614
|
+
description: "This method appends an item to an array in the application state object bound to the `AppState` instance.",
|
|
35615
|
+
parameters: {
|
|
35616
|
+
key: "The key of the array in the state object.",
|
|
35617
|
+
id: "The item to append to the array."
|
|
35618
|
+
}
|
|
35619
|
+
},
|
|
35620
|
+
removeFromList: {
|
|
35621
|
+
signature: "removeFromList(key: string, id: any)",
|
|
35622
|
+
description: "This method removes an item from an array in the application state object bound to the `AppState` instance.",
|
|
35623
|
+
parameters: {
|
|
35624
|
+
key: "The key of the array in the state object.",
|
|
35625
|
+
id: "The item to remove from the array."
|
|
35626
|
+
}
|
|
35627
|
+
},
|
|
35628
|
+
listIncludes: {
|
|
35629
|
+
signature: "listIncludes(key: string, id: any)",
|
|
35630
|
+
description: "This method checks if an array in the application state object contains a specific item.",
|
|
35631
|
+
parameters: {
|
|
35632
|
+
key: "The key of the array in the state object.",
|
|
35633
|
+
id: "The item to check for in the array."
|
|
35634
|
+
}
|
|
35258
35635
|
}
|
|
35259
35636
|
},
|
|
35260
35637
|
nonVisual: true
|
|
@@ -35262,14 +35639,15 @@ const AppStateMd = createMetadata({
|
|
|
35262
35639
|
const appStateComponentRenderer = createComponentRenderer(
|
|
35263
35640
|
COMP$u,
|
|
35264
35641
|
AppStateMd,
|
|
35265
|
-
({ node, extractValue, updateState, registerComponentApi }) => {
|
|
35642
|
+
({ node, extractValue, updateState, registerComponentApi, lookupEventHandler }) => {
|
|
35266
35643
|
return /* @__PURE__ */ jsx(
|
|
35267
35644
|
AppState,
|
|
35268
35645
|
{
|
|
35269
35646
|
bucket: extractValue(node.props.bucket),
|
|
35270
35647
|
initialValue: extractValue(node.props.initialValue),
|
|
35271
35648
|
updateState,
|
|
35272
|
-
registerComponentApi
|
|
35649
|
+
registerComponentApi,
|
|
35650
|
+
onDidUpdate: lookupEventHandler("didUpdate")
|
|
35273
35651
|
}
|
|
35274
35652
|
);
|
|
35275
35653
|
}
|
|
@@ -36030,6 +36408,8 @@ const SliderMd = createMetadata({
|
|
|
36030
36408
|
[`borderStyle-thumb-${COMP$p}`]: "solid",
|
|
36031
36409
|
[`borderColor-thumb-${COMP$p}`]: "$color-surface-50",
|
|
36032
36410
|
[`backgroundColor-thumb-${COMP$p}`]: "$color-primary",
|
|
36411
|
+
[`backgroundColor-thumb-${COMP$p}--focus`]: "$color-primary",
|
|
36412
|
+
[`boxShadow-thumb-${COMP$p}--focus`]: "0 0 0 6px rgb(from $color-primary r g b / 0.4)",
|
|
36033
36413
|
[`backgroundColor-thumb-${COMP$p}--hover`]: "$color-primary",
|
|
36034
36414
|
[`boxShadow-thumb-${COMP$p}--hover`]: "0 0 0 6px rgb(from $color-primary r g b / 0.4)",
|
|
36035
36415
|
[`backgroundColor-thumb-${COMP$p}--active`]: "$color-primary-400",
|
|
@@ -36220,8 +36600,8 @@ const CarouselComponent = forwardRef(function CarouselComponent2({
|
|
|
36220
36600
|
},
|
|
36221
36601
|
plugins
|
|
36222
36602
|
);
|
|
36223
|
-
const prevIconName = prevIcon || orientation === "horizontal" ? "arrowleft" : "arrowup";
|
|
36224
|
-
const nextIconName = nextIcon || orientation === "horizontal" ? "arrowright" : "arrowdown";
|
|
36603
|
+
const prevIconName = prevIcon || (orientation === "horizontal" ? "arrowleft" : "arrowup");
|
|
36604
|
+
const nextIconName = nextIcon || (orientation === "horizontal" ? "arrowright" : "arrowdown");
|
|
36225
36605
|
useEffect(() => {
|
|
36226
36606
|
if (autoplay) {
|
|
36227
36607
|
setPlugins([
|
|
@@ -40642,7 +41022,8 @@ function PieChart({
|
|
|
40642
41022
|
labelListPosition = defaultProps$5.labelListPosition,
|
|
40643
41023
|
innerRadius = defaultProps$5.innerRadius,
|
|
40644
41024
|
children,
|
|
40645
|
-
outerRadius
|
|
41025
|
+
outerRadius,
|
|
41026
|
+
// no default; we'll compute when undefined or "auto"
|
|
40646
41027
|
showLegend = defaultProps$5.showLegend
|
|
40647
41028
|
}) {
|
|
40648
41029
|
const { getThemeVar } = useTheme();
|
|
@@ -40694,37 +41075,73 @@ function PieChart({
|
|
|
40694
41075
|
}));
|
|
40695
41076
|
}, [colorValues, data]);
|
|
40696
41077
|
const chartContextValue = useChartContextValue({ dataKey, nameKey });
|
|
41078
|
+
const wrapperRef = useRef(null);
|
|
41079
|
+
const [box, setBox] = useState({ width: 0, height: 0 });
|
|
41080
|
+
useEffect(() => {
|
|
41081
|
+
if (!wrapperRef.current || typeof window === "undefined" || !window.ResizeObserver)
|
|
41082
|
+
return;
|
|
41083
|
+
const ro = new window.ResizeObserver((entries) => {
|
|
41084
|
+
var _a2;
|
|
41085
|
+
const cr = (_a2 = entries[0]) == null ? void 0 : _a2.contentRect;
|
|
41086
|
+
if (cr) setBox({ width: cr.width, height: cr.height });
|
|
41087
|
+
});
|
|
41088
|
+
ro.observe(wrapperRef.current);
|
|
41089
|
+
return () => ro.disconnect();
|
|
41090
|
+
}, []);
|
|
41091
|
+
const RING_PADDING = 8;
|
|
41092
|
+
const LABEL_GUTTER_OUTSIDE = 16;
|
|
41093
|
+
const LABEL_GUTTER_INSIDE = 6;
|
|
41094
|
+
const MIN_RING_THICKNESS = 12;
|
|
41095
|
+
const labelsOutside = !!showLabel || showLabelList && labelListPosition === "outside";
|
|
41096
|
+
const resolvedOuterRadius = useMemo(() => {
|
|
41097
|
+
const wantsAuto = outerRadius === void 0 || typeof outerRadius === "string" && outerRadius.toLowerCase() === "auto";
|
|
41098
|
+
if (!wantsAuto) return outerRadius;
|
|
41099
|
+
const base2 = Math.min(box.width, box.height) / 2;
|
|
41100
|
+
const gutter2 = labelsOutside ? LABEL_GUTTER_OUTSIDE : LABEL_GUTTER_INSIDE;
|
|
41101
|
+
const inner = Number(innerRadius) || 0;
|
|
41102
|
+
const derived = Math.max(inner + MIN_RING_THICKNESS, base2 - gutter2 - RING_PADDING);
|
|
41103
|
+
if (!Number.isFinite(derived) || derived <= 0) {
|
|
41104
|
+
return labelsOutside ? "72%" : "88%";
|
|
41105
|
+
}
|
|
41106
|
+
return derived;
|
|
41107
|
+
}, [outerRadius, box.width, box.height, labelsOutside, innerRadius]);
|
|
40697
41108
|
return /* @__PURE__ */ jsxs(ChartProvider, { value: chartContextValue, children: [
|
|
40698
41109
|
children,
|
|
40699
|
-
/* @__PURE__ */ jsx("div", { className: classnames(styles$7.wrapper, className), style: style2, children: /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", minWidth: 0, children: /* @__PURE__ */ jsxs(
|
|
40700
|
-
|
|
40701
|
-
|
|
40702
|
-
|
|
40703
|
-
|
|
40704
|
-
|
|
40705
|
-
|
|
40706
|
-
|
|
40707
|
-
innerRadius,
|
|
40708
|
-
outerRadius,
|
|
40709
|
-
paddingAngle: 1,
|
|
40710
|
-
activeShape: renderActiveShape,
|
|
40711
|
-
label: showLabel ? renderCustomizedLabel : false,
|
|
40712
|
-
labelLine: showLabel,
|
|
40713
|
-
children: chartContextValue.labelList ? chartContextValue.labelList : showLabelList && /* @__PURE__ */ jsx(
|
|
40714
|
-
LabelList$1,
|
|
41110
|
+
/* @__PURE__ */ jsx("div", { ref: wrapperRef, className: classnames(styles$7.wrapper, className), style: style2, children: /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", minWidth: 0, children: /* @__PURE__ */ jsxs(
|
|
41111
|
+
PieChart$1,
|
|
41112
|
+
{
|
|
41113
|
+
margin: { top: 8, right: 8, bottom: labelsOutside ? 16 : 8, left: 8 },
|
|
41114
|
+
children: [
|
|
41115
|
+
/* @__PURE__ */ jsx(Tooltip$2, { content: /* @__PURE__ */ jsx(TooltipContent, {}) }),
|
|
41116
|
+
/* @__PURE__ */ jsx(
|
|
41117
|
+
Pie,
|
|
40715
41118
|
{
|
|
40716
|
-
|
|
40717
|
-
dataKey
|
|
40718
|
-
|
|
40719
|
-
|
|
40720
|
-
|
|
40721
|
-
|
|
41119
|
+
data: chartData,
|
|
41120
|
+
dataKey,
|
|
41121
|
+
nameKey,
|
|
41122
|
+
innerRadius,
|
|
41123
|
+
outerRadius: resolvedOuterRadius,
|
|
41124
|
+
paddingAngle: 1,
|
|
41125
|
+
activeShape: renderActiveShape,
|
|
41126
|
+
label: showLabel ? renderCustomizedLabel : false,
|
|
41127
|
+
labelLine: showLabel,
|
|
41128
|
+
children: chartContextValue.labelList ? chartContextValue.labelList : showLabelList && /* @__PURE__ */ jsx(
|
|
41129
|
+
LabelList$1,
|
|
41130
|
+
{
|
|
41131
|
+
position: labelListPosition,
|
|
41132
|
+
dataKey: nameKey,
|
|
41133
|
+
className: styles$7.labelList,
|
|
41134
|
+
stroke: "none",
|
|
41135
|
+
fill: "currentColor",
|
|
41136
|
+
fontSize: 12
|
|
41137
|
+
}
|
|
41138
|
+
)
|
|
40722
41139
|
}
|
|
40723
|
-
)
|
|
40724
|
-
|
|
40725
|
-
|
|
40726
|
-
|
|
40727
|
-
|
|
41140
|
+
),
|
|
41141
|
+
chartContextValue.legend ? chartContextValue.legend : showLegend && /* @__PURE__ */ jsx(Legend$1, {})
|
|
41142
|
+
]
|
|
41143
|
+
}
|
|
41144
|
+
) }) })
|
|
40728
41145
|
] });
|
|
40729
41146
|
}
|
|
40730
41147
|
const COMP$8 = "DonutChart";
|
|
@@ -41952,21 +42369,23 @@ class ComponentRegistry {
|
|
|
41952
42369
|
(_a3 = extension.components) == null ? void 0 : _a3.forEach((c) => {
|
|
41953
42370
|
if ("type" in c) {
|
|
41954
42371
|
this.registerComponentRenderer(c, extension.namespace);
|
|
42372
|
+
} else if ("compoundComponentDef" in c) {
|
|
42373
|
+
this.registerCompoundComponentRenderer(c, extension.namespace);
|
|
41955
42374
|
}
|
|
41956
42375
|
});
|
|
41957
42376
|
};
|
|
41958
|
-
this.registerCoreComponent = (
|
|
41959
|
-
if ("compoundComponentDef" in
|
|
41960
|
-
this.registerCompoundComponentRenderer(
|
|
42377
|
+
this.registerCoreComponent = (component2) => {
|
|
42378
|
+
if ("compoundComponentDef" in component2) {
|
|
42379
|
+
this.registerCompoundComponentRenderer(component2, CORE_NS);
|
|
41961
42380
|
} else {
|
|
41962
|
-
this.registerComponentRenderer(
|
|
42381
|
+
this.registerComponentRenderer(component2, CORE_NS);
|
|
41963
42382
|
}
|
|
41964
42383
|
};
|
|
41965
|
-
this.registerAppComponent = (
|
|
41966
|
-
if ("compoundComponentDef" in
|
|
41967
|
-
this.registerCompoundComponentRenderer(
|
|
42384
|
+
this.registerAppComponent = (component2) => {
|
|
42385
|
+
if ("compoundComponentDef" in component2) {
|
|
42386
|
+
this.registerCompoundComponentRenderer(component2, APP_NS);
|
|
41968
42387
|
} else {
|
|
41969
|
-
this.registerComponentRenderer(
|
|
42388
|
+
this.registerComponentRenderer(component2, APP_NS);
|
|
41970
42389
|
}
|
|
41971
42390
|
};
|
|
41972
42391
|
this.registerComponentRenderer = ({
|
|
@@ -41975,7 +42394,7 @@ class ComponentRegistry {
|
|
|
41975
42394
|
metadata,
|
|
41976
42395
|
isCompoundComponent
|
|
41977
42396
|
}, namespace) => {
|
|
41978
|
-
const
|
|
42397
|
+
const component2 = {
|
|
41979
42398
|
renderer,
|
|
41980
42399
|
descriptor: metadata,
|
|
41981
42400
|
isCompoundComponent
|
|
@@ -41984,7 +42403,7 @@ class ComponentRegistry {
|
|
|
41984
42403
|
if (!this.pool.has(namespace)) {
|
|
41985
42404
|
this.pool.set(namespace, /* @__PURE__ */ new Map());
|
|
41986
42405
|
}
|
|
41987
|
-
this.pool.get(namespace).set(type,
|
|
42406
|
+
this.pool.get(namespace).set(type, component2);
|
|
41988
42407
|
this.namePool.set(fullName, { name: type, namespace });
|
|
41989
42408
|
if (metadata == null ? void 0 : metadata.themeVars) {
|
|
41990
42409
|
Object.keys(metadata.themeVars).forEach((key) => this.themeVars.add(key));
|
|
@@ -42517,14 +42936,14 @@ class ComponentRegistry {
|
|
|
42517
42936
|
}
|
|
42518
42937
|
// --- Registers a compound component using its definition and metadata
|
|
42519
42938
|
registerCompoundComponentRenderer({ compoundComponentDef, metadata }, namespace) {
|
|
42520
|
-
const
|
|
42939
|
+
const component2 = {
|
|
42521
42940
|
type: compoundComponentDef.name,
|
|
42522
42941
|
renderer: (rendererContext) => {
|
|
42523
42942
|
return /* @__PURE__ */ jsx(
|
|
42524
42943
|
CompoundComponent,
|
|
42525
42944
|
{
|
|
42526
42945
|
api: compoundComponentDef.api,
|
|
42527
|
-
scriptCollected: compoundComponentDef.scriptCollected,
|
|
42946
|
+
scriptCollected: compoundComponentDef.component.scriptCollected,
|
|
42528
42947
|
compound: compoundComponentDef.component,
|
|
42529
42948
|
...rendererContext
|
|
42530
42949
|
}
|
|
@@ -42533,7 +42952,7 @@ class ComponentRegistry {
|
|
|
42533
42952
|
isCompoundComponent: true,
|
|
42534
42953
|
metadata
|
|
42535
42954
|
};
|
|
42536
|
-
this.registerComponentRenderer(
|
|
42955
|
+
this.registerComponentRenderer(component2, namespace);
|
|
42537
42956
|
}
|
|
42538
42957
|
// --- Registers an action function using its definition
|
|
42539
42958
|
registerActionFn({ actionName: functionName, actionFn }) {
|
|
@@ -43421,7 +43840,7 @@ function IconProvider({ children }) {
|
|
|
43421
43840
|
/* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
|
|
43422
43841
|
] });
|
|
43423
43842
|
}
|
|
43424
|
-
const version = "0.10.
|
|
43843
|
+
const version = "0.10.15";
|
|
43425
43844
|
const miscellaneousUtils = {
|
|
43426
43845
|
capitalize,
|
|
43427
43846
|
pluralize: pluralize$1,
|
|
@@ -46360,16 +46779,23 @@ function ApiBoundComponent({
|
|
|
46360
46779
|
function generateloaderUid(key) {
|
|
46361
46780
|
return `${node.uid}_data_${key}`;
|
|
46362
46781
|
}
|
|
46363
|
-
|
|
46364
|
-
|
|
46365
|
-
|
|
46366
|
-
|
|
46367
|
-
|
|
46368
|
-
|
|
46369
|
-
|
|
46782
|
+
function generateEventHandler(actionComponent) {
|
|
46783
|
+
const { type } = actionComponent;
|
|
46784
|
+
const prepareEvent = (eventData) => {
|
|
46785
|
+
if (!eventData) {
|
|
46786
|
+
return "undefined";
|
|
46787
|
+
}
|
|
46788
|
+
if (typeof eventData === "string") {
|
|
46789
|
+
return `"${eventData}"`;
|
|
46790
|
+
}
|
|
46791
|
+
if (typeof eventData.type === "string") {
|
|
46792
|
+
return generateEventHandler(eventData);
|
|
46793
|
+
}
|
|
46794
|
+
return JSON.stringify(eventData);
|
|
46795
|
+
};
|
|
46796
|
+
const { success, error: error2, progress, beforeRequest } = actionComponent.events || {};
|
|
46370
46797
|
switch (type) {
|
|
46371
46798
|
case "FileUpload": {
|
|
46372
|
-
const actionComponent = node.events[key];
|
|
46373
46799
|
const {
|
|
46374
46800
|
invalidates,
|
|
46375
46801
|
asForm,
|
|
@@ -46382,8 +46808,7 @@ function ApiBoundComponent({
|
|
|
46382
46808
|
method,
|
|
46383
46809
|
file
|
|
46384
46810
|
} = actionComponent.props;
|
|
46385
|
-
|
|
46386
|
-
events[key] = `(eventArgs) => {
|
|
46811
|
+
return `(eventArgs) => {
|
|
46387
46812
|
return Actions.upload({
|
|
46388
46813
|
asForm: ${JSON.stringify(asForm)},
|
|
46389
46814
|
formParams: ${JSON.stringify(formParams)},
|
|
@@ -46395,17 +46820,15 @@ function ApiBoundComponent({
|
|
|
46395
46820
|
method: ${JSON.stringify(method)},
|
|
46396
46821
|
file: ${JSON.stringify(file)},
|
|
46397
46822
|
params: { '$param': eventArgs },
|
|
46398
|
-
onError: ${
|
|
46399
|
-
onSuccess: ${
|
|
46823
|
+
onError: ${prepareEvent(error2)},
|
|
46824
|
+
onSuccess: ${prepareEvent(success)},
|
|
46400
46825
|
onProgress: eventArgs.onProgress,
|
|
46401
46826
|
invalidates: ${invalidates === void 0 ? void 0 : JSON.stringify(invalidates)} }, { resolveBindingExpressions: true });
|
|
46402
46827
|
}`;
|
|
46403
|
-
break;
|
|
46404
46828
|
}
|
|
46405
46829
|
case "FileDownload": {
|
|
46406
|
-
const actionComponent = node.events[key];
|
|
46407
46830
|
const { url, queryParams, rawBody, body, headers, method, fileName } = actionComponent.props;
|
|
46408
|
-
|
|
46831
|
+
return `(eventArgs) => {
|
|
46409
46832
|
return Actions.download({
|
|
46410
46833
|
queryParams: ${JSON.stringify(queryParams)},
|
|
46411
46834
|
rawBody: ${JSON.stringify(rawBody)},
|
|
@@ -46417,10 +46840,8 @@ function ApiBoundComponent({
|
|
|
46417
46840
|
params: { '$param': eventArgs },
|
|
46418
46841
|
}, { resolveBindingExpressions: true });
|
|
46419
46842
|
}`;
|
|
46420
|
-
break;
|
|
46421
46843
|
}
|
|
46422
46844
|
case "APICall": {
|
|
46423
|
-
const actionComponent = node.events[key];
|
|
46424
46845
|
const { when, uid: uid2 } = actionComponent;
|
|
46425
46846
|
const {
|
|
46426
46847
|
confirmTitle,
|
|
@@ -46441,8 +46862,7 @@ function ApiBoundComponent({
|
|
|
46441
46862
|
rawBody,
|
|
46442
46863
|
body
|
|
46443
46864
|
} = actionComponent.props;
|
|
46444
|
-
|
|
46445
|
-
events[key] = `(eventArgs, options) => {
|
|
46865
|
+
return `(eventArgs, options) => {
|
|
46446
46866
|
return Actions.callApi({
|
|
46447
46867
|
uid: ${JSON.stringify(uid2)},
|
|
46448
46868
|
headers: ${JSON.stringify(headers)},
|
|
@@ -46458,10 +46878,10 @@ function ApiBoundComponent({
|
|
|
46458
46878
|
completedNotificationMessage: ${JSON.stringify(completedNotificationMessage)},
|
|
46459
46879
|
errorNotificationMessage: ${JSON.stringify(errorNotificationMessage)},
|
|
46460
46880
|
params: { '$param': eventArgs },
|
|
46461
|
-
onError: ${
|
|
46462
|
-
onProgress: ${
|
|
46463
|
-
onBeforeRequest: ${
|
|
46464
|
-
onSuccess: ${
|
|
46881
|
+
onError: ${prepareEvent(error2)},
|
|
46882
|
+
onProgress: ${prepareEvent(progress)},
|
|
46883
|
+
onBeforeRequest: ${prepareEvent(beforeRequest)},
|
|
46884
|
+
onSuccess: ${prepareEvent(success)},
|
|
46465
46885
|
updates: ${JSON.stringify(updates)},
|
|
46466
46886
|
optimisticValue: ${JSON.stringify(optimisticValue)},
|
|
46467
46887
|
payloadType: ${JSON.stringify(payloadType)},
|
|
@@ -46469,12 +46889,20 @@ function ApiBoundComponent({
|
|
|
46469
46889
|
invalidates: ${invalidates === void 0 ? void 0 : JSON.stringify(invalidates)},
|
|
46470
46890
|
when: ${when === void 0 ? void 0 : JSON.stringify(when)} }, { resolveBindingExpressions: true });
|
|
46471
46891
|
}`;
|
|
46472
|
-
break;
|
|
46473
46892
|
}
|
|
46474
46893
|
default: {
|
|
46475
46894
|
throw new Error("Unknown event handler component type: ", type);
|
|
46476
46895
|
}
|
|
46477
46896
|
}
|
|
46897
|
+
}
|
|
46898
|
+
const loaders = [...node.loaders || []];
|
|
46899
|
+
const events = { ...node.events || {} };
|
|
46900
|
+
const props = { ...node.props || {} };
|
|
46901
|
+
const vars2 = { ...node.vars || {} };
|
|
46902
|
+
const api = { ...node.api || {} };
|
|
46903
|
+
apiBoundEvents.forEach((key) => {
|
|
46904
|
+
const actionComponent = node.events[key];
|
|
46905
|
+
events[key] = generateEventHandler(actionComponent);
|
|
46478
46906
|
});
|
|
46479
46907
|
apiBoundProps.forEach((key) => {
|
|
46480
46908
|
var _a2, _b, _c;
|
|
@@ -46837,6 +47265,126 @@ const Animation$1 = forwardRef(function Animation2({
|
|
|
46837
47265
|
}, [animateWhenInView, animationStyles, children, springs, rest]);
|
|
46838
47266
|
return content2;
|
|
46839
47267
|
});
|
|
47268
|
+
const tooltipBehavior = {
|
|
47269
|
+
name: "tooltip",
|
|
47270
|
+
canAttach: (node) => {
|
|
47271
|
+
var _a2, _b;
|
|
47272
|
+
const tooltipText = (_a2 = node.props) == null ? void 0 : _a2.tooltip;
|
|
47273
|
+
const tooltipMarkdown = (_b = node.props) == null ? void 0 : _b.tooltipMarkdown;
|
|
47274
|
+
return !!tooltipText || !!tooltipMarkdown;
|
|
47275
|
+
},
|
|
47276
|
+
attach: (context, node) => {
|
|
47277
|
+
var _a2, _b, _c;
|
|
47278
|
+
const { extractValue } = context;
|
|
47279
|
+
const tooltipText = extractValue((_a2 = context.node.props) == null ? void 0 : _a2.tooltip, true);
|
|
47280
|
+
const tooltipMarkdown = extractValue((_b = context.node.props) == null ? void 0 : _b.tooltipMarkdown, true);
|
|
47281
|
+
const tooltipOptions = extractValue((_c = context.node.props) == null ? void 0 : _c.tooltipOptions, true);
|
|
47282
|
+
const parsedOptions = parseTooltipOptions(tooltipOptions);
|
|
47283
|
+
return /* @__PURE__ */ jsx(Tooltip, { text: tooltipText, markdown: tooltipMarkdown, ...parsedOptions, children: node });
|
|
47284
|
+
}
|
|
47285
|
+
};
|
|
47286
|
+
const animationBehavior = {
|
|
47287
|
+
name: "animation",
|
|
47288
|
+
canAttach: (node) => {
|
|
47289
|
+
var _a2;
|
|
47290
|
+
return !!((_a2 = node.props) == null ? void 0 : _a2.animation);
|
|
47291
|
+
},
|
|
47292
|
+
attach: (context, node) => {
|
|
47293
|
+
var _a2, _b;
|
|
47294
|
+
const { extractValue } = context;
|
|
47295
|
+
const animation = extractValue((_a2 = context.node.props) == null ? void 0 : _a2.animation, true);
|
|
47296
|
+
const animationOptions = extractValue(
|
|
47297
|
+
(_b = context.node.props) == null ? void 0 : _b.animationOptions,
|
|
47298
|
+
true
|
|
47299
|
+
);
|
|
47300
|
+
const parsedOptions = parseAnimationOptions(animationOptions);
|
|
47301
|
+
return /* @__PURE__ */ jsx(Animation$1, { animation: parseAnimation(animation), ...parsedOptions, children: node });
|
|
47302
|
+
}
|
|
47303
|
+
};
|
|
47304
|
+
const labelBehavior = {
|
|
47305
|
+
name: "label",
|
|
47306
|
+
canAttach: (node, metadata) => {
|
|
47307
|
+
var _a2, _b;
|
|
47308
|
+
if ((_a2 = metadata == null ? void 0 : metadata.props) == null ? void 0 : _a2.label) {
|
|
47309
|
+
return false;
|
|
47310
|
+
} else if (!((_b = node.props) == null ? void 0 : _b.label)) {
|
|
47311
|
+
return false;
|
|
47312
|
+
}
|
|
47313
|
+
return true;
|
|
47314
|
+
},
|
|
47315
|
+
attach: (context, node) => {
|
|
47316
|
+
const { extractValue, node: componentNode, className } = context;
|
|
47317
|
+
const label2 = extractValue.asOptionalString(componentNode.props.label);
|
|
47318
|
+
const labelPosition = extractValue(componentNode.props.labelPosition);
|
|
47319
|
+
const labelWidth = extractValue.asOptionalString(componentNode.props.labelWidth);
|
|
47320
|
+
const labelBreak2 = extractValue.asOptionalBoolean(componentNode.props.labelBreak);
|
|
47321
|
+
const required2 = extractValue.asOptionalBoolean(componentNode.props.required);
|
|
47322
|
+
const enabled2 = extractValue.asOptionalBoolean(componentNode.props.enabled, true);
|
|
47323
|
+
const shrinkToLabel2 = extractValue.asOptionalBoolean(componentNode.props.shrinkToLabel);
|
|
47324
|
+
const style2 = extractValue(componentNode.props.style);
|
|
47325
|
+
const generatedId2 = useId();
|
|
47326
|
+
return /* @__PURE__ */ jsx(
|
|
47327
|
+
ItemWithLabel,
|
|
47328
|
+
{
|
|
47329
|
+
id: componentNode.uid || generatedId2,
|
|
47330
|
+
labelPosition,
|
|
47331
|
+
label: label2,
|
|
47332
|
+
labelWidth,
|
|
47333
|
+
labelBreak: labelBreak2,
|
|
47334
|
+
required: required2,
|
|
47335
|
+
enabled: enabled2,
|
|
47336
|
+
style: style2,
|
|
47337
|
+
className,
|
|
47338
|
+
shrinkToLabel: shrinkToLabel2,
|
|
47339
|
+
testId: componentNode.testId,
|
|
47340
|
+
children: node
|
|
47341
|
+
}
|
|
47342
|
+
);
|
|
47343
|
+
}
|
|
47344
|
+
};
|
|
47345
|
+
const BehaviorContext = createContext(
|
|
47346
|
+
void 0
|
|
47347
|
+
);
|
|
47348
|
+
const BehaviorsProvider = ({ children }) => {
|
|
47349
|
+
const behaviors = useMemo(() => /* @__PURE__ */ new Map(), []);
|
|
47350
|
+
const getBehaviors = () => {
|
|
47351
|
+
return Array.from(behaviors.values());
|
|
47352
|
+
};
|
|
47353
|
+
const registerBehavior = (behavior) => {
|
|
47354
|
+
behaviors.set(behavior.name, behavior);
|
|
47355
|
+
};
|
|
47356
|
+
const unregisterBehavior = (name) => {
|
|
47357
|
+
behaviors.delete(name);
|
|
47358
|
+
};
|
|
47359
|
+
useMemo(() => {
|
|
47360
|
+
if (process.env.VITE_USED_BEHAVIORS_Animation !== "false") {
|
|
47361
|
+
registerBehavior(animationBehavior);
|
|
47362
|
+
}
|
|
47363
|
+
if (process.env.VITE_USED_BEHAVIORS_Tooltip !== "false") {
|
|
47364
|
+
registerBehavior(tooltipBehavior);
|
|
47365
|
+
}
|
|
47366
|
+
if (process.env.VITE_USED_BEHAVIORS_Label !== "false") {
|
|
47367
|
+
registerBehavior(labelBehavior);
|
|
47368
|
+
}
|
|
47369
|
+
}, []);
|
|
47370
|
+
const contextValue2 = useMemo(
|
|
47371
|
+
() => ({
|
|
47372
|
+
behaviors,
|
|
47373
|
+
registerBehavior,
|
|
47374
|
+
unregisterBehavior,
|
|
47375
|
+
getBehaviors
|
|
47376
|
+
}),
|
|
47377
|
+
[behaviors]
|
|
47378
|
+
);
|
|
47379
|
+
return /* @__PURE__ */ jsx(BehaviorContext.Provider, { value: contextValue2, children });
|
|
47380
|
+
};
|
|
47381
|
+
const useBehaviors = () => {
|
|
47382
|
+
const context = useContext(BehaviorContext);
|
|
47383
|
+
if (!context) {
|
|
47384
|
+
throw new Error("useBehaviors must be used within a BehaviorsProvider");
|
|
47385
|
+
}
|
|
47386
|
+
return context;
|
|
47387
|
+
};
|
|
46840
47388
|
const ComponentAdapter = forwardRef(function ComponentAdapter2({
|
|
46841
47389
|
node,
|
|
46842
47390
|
state,
|
|
@@ -46962,63 +47510,28 @@ const ComponentAdapter = forwardRef(function ComponentAdapter2({
|
|
|
46962
47510
|
mediaSize: appContext.mediaSize
|
|
46963
47511
|
});
|
|
46964
47512
|
}, [appContext.mediaSize, layoutContextRef, safeNode.props, valueExtractor]);
|
|
46965
|
-
const tooltipText = useMemo(
|
|
46966
|
-
() => {
|
|
46967
|
-
var _a3;
|
|
46968
|
-
return valueExtractor((_a3 = safeNode.props) == null ? void 0 : _a3.tooltip, true);
|
|
46969
|
-
},
|
|
46970
|
-
[safeNode.props, valueExtractor]
|
|
46971
|
-
);
|
|
46972
|
-
const tooltipMarkdown = useMemo(
|
|
46973
|
-
() => {
|
|
46974
|
-
var _a3;
|
|
46975
|
-
return valueExtractor((_a3 = safeNode.props) == null ? void 0 : _a3.tooltipMarkdown, true);
|
|
46976
|
-
},
|
|
46977
|
-
[safeNode.props, valueExtractor]
|
|
46978
|
-
);
|
|
46979
|
-
const tooltipOptions = useMemo(
|
|
46980
|
-
() => {
|
|
46981
|
-
var _a3;
|
|
46982
|
-
return valueExtractor((_a3 = safeNode.props) == null ? void 0 : _a3.tooltipOptions, true);
|
|
46983
|
-
},
|
|
46984
|
-
[safeNode.props, valueExtractor]
|
|
46985
|
-
);
|
|
46986
|
-
const animation = useMemo(
|
|
46987
|
-
() => {
|
|
46988
|
-
var _a3;
|
|
46989
|
-
return valueExtractor((_a3 = safeNode.props) == null ? void 0 : _a3.animation, true);
|
|
46990
|
-
},
|
|
46991
|
-
[safeNode.props, valueExtractor]
|
|
46992
|
-
);
|
|
46993
|
-
const animationOptions = useMemo(
|
|
46994
|
-
() => {
|
|
46995
|
-
var _a3;
|
|
46996
|
-
return valueExtractor((_a3 = safeNode.props) == null ? void 0 : _a3.animationOptions, true);
|
|
46997
|
-
},
|
|
46998
|
-
[safeNode.props, valueExtractor]
|
|
46999
|
-
);
|
|
47000
47513
|
const stableLayoutCss = useShallowCompareMemoize(cssProps);
|
|
47001
47514
|
const className = useComponentStyle(stableLayoutCss);
|
|
47002
47515
|
const { inspectId, refreshInspection } = useInspector(safeNode, uid);
|
|
47516
|
+
const rendererContext = {
|
|
47517
|
+
node: safeNode,
|
|
47518
|
+
state: state[uid] || EMPTY_OBJECT,
|
|
47519
|
+
updateState: memoedUpdateState,
|
|
47520
|
+
appContext,
|
|
47521
|
+
extractValue: valueExtractor,
|
|
47522
|
+
lookupEventHandler: memoedLookupEventHandler,
|
|
47523
|
+
lookupAction: memoedLookupAction,
|
|
47524
|
+
lookupSyncCallback: memoedLookupSyncCallback,
|
|
47525
|
+
extractResourceUrl,
|
|
47526
|
+
renderChild: memoedRenderChild,
|
|
47527
|
+
registerComponentApi: memoedRegisterComponentApi,
|
|
47528
|
+
className,
|
|
47529
|
+
layoutContext: layoutContextRef == null ? void 0 : layoutContextRef.current,
|
|
47530
|
+
uid
|
|
47531
|
+
};
|
|
47003
47532
|
let renderedNode = null;
|
|
47004
47533
|
let renderingError = null;
|
|
47005
47534
|
try {
|
|
47006
|
-
const rendererContext = {
|
|
47007
|
-
node: safeNode,
|
|
47008
|
-
state: state[uid] || EMPTY_OBJECT,
|
|
47009
|
-
updateState: memoedUpdateState,
|
|
47010
|
-
appContext,
|
|
47011
|
-
extractValue: valueExtractor,
|
|
47012
|
-
lookupEventHandler: memoedLookupEventHandler,
|
|
47013
|
-
lookupAction: memoedLookupAction,
|
|
47014
|
-
lookupSyncCallback: memoedLookupSyncCallback,
|
|
47015
|
-
extractResourceUrl,
|
|
47016
|
-
renderChild: memoedRenderChild,
|
|
47017
|
-
registerComponentApi: memoedRegisterComponentApi,
|
|
47018
|
-
className,
|
|
47019
|
-
layoutContext: layoutContextRef == null ? void 0 : layoutContextRef.current,
|
|
47020
|
-
uid
|
|
47021
|
-
};
|
|
47022
47535
|
if (safeNode.type === "Slot") {
|
|
47023
47536
|
renderedNode = slotRenderer(rendererContext, parentRenderContext);
|
|
47024
47537
|
} else {
|
|
@@ -47105,23 +47618,20 @@ const ComponentAdapter = forwardRef(function ComponentAdapter2({
|
|
|
47105
47618
|
} else {
|
|
47106
47619
|
nodeToRender = React__default.isValidElement(renderedNode) && !!children ? cloneElement(renderedNode, null, children) : renderedNode;
|
|
47107
47620
|
}
|
|
47108
|
-
const
|
|
47109
|
-
|
|
47110
|
-
|
|
47111
|
-
|
|
47112
|
-
|
|
47113
|
-
|
|
47114
|
-
|
|
47115
|
-
|
|
47116
|
-
|
|
47117
|
-
|
|
47118
|
-
if (tooltipMarkdown || tooltipText) {
|
|
47119
|
-
const parsedOptions = parseTooltipOptions(tooltipOptions);
|
|
47120
|
-
return /* @__PURE__ */ jsx(Tooltip, { text: tooltipText, markdown: tooltipMarkdown, ...parsedOptions, children: node2 });
|
|
47621
|
+
const { getBehaviors } = useBehaviors();
|
|
47622
|
+
const applyBehaviors = (node2) => {
|
|
47623
|
+
const behaviors = getBehaviors();
|
|
47624
|
+
let wrappedNode = node2;
|
|
47625
|
+
if (!isCompoundComponent) {
|
|
47626
|
+
for (const behavior of behaviors) {
|
|
47627
|
+
if (behavior.canAttach(rendererContext.node, descriptor)) {
|
|
47628
|
+
wrappedNode = behavior.attach(rendererContext, wrappedNode);
|
|
47629
|
+
}
|
|
47630
|
+
}
|
|
47121
47631
|
}
|
|
47122
|
-
return
|
|
47632
|
+
return wrappedNode;
|
|
47123
47633
|
};
|
|
47124
|
-
return
|
|
47634
|
+
return applyBehaviors(nodeToRender);
|
|
47125
47635
|
});
|
|
47126
47636
|
function slotRenderer({ node, extractValue, renderChild: renderChild2, lookupAction, layoutContext }, parentRenderContext) {
|
|
47127
47637
|
const templateName = extractValue.asOptionalString(node.props.name);
|
|
@@ -48087,8 +48597,8 @@ const ComponentViewer = () => {
|
|
|
48087
48597
|
if (!projectCompilation) {
|
|
48088
48598
|
return [];
|
|
48089
48599
|
}
|
|
48090
|
-
return projectCompilation.components.map((
|
|
48091
|
-
return
|
|
48600
|
+
return projectCompilation.components.map((component2) => {
|
|
48601
|
+
return component2.markupSource;
|
|
48092
48602
|
});
|
|
48093
48603
|
}, [projectCompilation]);
|
|
48094
48604
|
const value = useMemo(() => {
|
|
@@ -48277,7 +48787,7 @@ function AppRoot({
|
|
|
48277
48787
|
...globalProps,
|
|
48278
48788
|
isNested
|
|
48279
48789
|
}), [globalProps, isNested]);
|
|
48280
|
-
return /* @__PURE__ */ jsx(ComponentProvider, { contributes, extensionManager, children: /* @__PURE__ */ jsx(StyleProvider, { children: /* @__PURE__ */ jsx(DebugViewProvider, { debugConfig: globalProps == null ? void 0 : globalProps.debug, children: /* @__PURE__ */ jsx(
|
|
48790
|
+
return /* @__PURE__ */ jsx(ComponentProvider, { contributes, extensionManager, children: /* @__PURE__ */ jsx(StyleProvider, { children: /* @__PURE__ */ jsx(BehaviorsProvider, { children: /* @__PURE__ */ jsx(DebugViewProvider, { debugConfig: globalProps == null ? void 0 : globalProps.debug, children: /* @__PURE__ */ jsx(
|
|
48281
48791
|
AppWrapper,
|
|
48282
48792
|
{
|
|
48283
48793
|
projectCompilation,
|
|
@@ -48299,7 +48809,7 @@ function AppRoot({
|
|
|
48299
48809
|
onInit,
|
|
48300
48810
|
children
|
|
48301
48811
|
}
|
|
48302
|
-
) }) }) });
|
|
48812
|
+
) }) }) }) });
|
|
48303
48813
|
}
|
|
48304
48814
|
function getTransitiveDependencies(directCompDepNames, components) {
|
|
48305
48815
|
const allDepsByCompName = components.reduce(
|
|
@@ -48331,23 +48841,23 @@ function checkXmlUiMarkup(rootDef, components, metadataHandler, devMode) {
|
|
|
48331
48841
|
visitComponent(rootDef, null, componentDefVisitor, continuation, metadataHandler);
|
|
48332
48842
|
}
|
|
48333
48843
|
if (!continuation.abort) {
|
|
48334
|
-
for (const
|
|
48335
|
-
if (!isValidIdentifier(
|
|
48336
|
-
reportError("M007", "Component",
|
|
48844
|
+
for (const component2 of components) {
|
|
48845
|
+
if (!isValidIdentifier(component2.name)) {
|
|
48846
|
+
reportError("M007", "Component", component2.name);
|
|
48337
48847
|
}
|
|
48338
|
-
if (
|
|
48339
|
-
reportError("M008", "Component",
|
|
48848
|
+
if (component2.name === "Component") {
|
|
48849
|
+
reportError("M008", "Component", component2.name);
|
|
48340
48850
|
}
|
|
48341
|
-
if (metadataHandler.componentRegistered(
|
|
48342
|
-
reportError("M009", "Component",
|
|
48851
|
+
if (metadataHandler.componentRegistered(component2.name)) {
|
|
48852
|
+
reportError("M009", "Component", component2.name);
|
|
48343
48853
|
}
|
|
48344
|
-
if (compoundIdsCollected.has(
|
|
48345
|
-
reportError("M010", "Component",
|
|
48854
|
+
if (compoundIdsCollected.has(component2.name)) {
|
|
48855
|
+
reportError("M010", "Component", component2.name);
|
|
48346
48856
|
} else {
|
|
48347
|
-
compoundIdsCollected.add(
|
|
48857
|
+
compoundIdsCollected.add(component2.name);
|
|
48348
48858
|
}
|
|
48349
48859
|
componentIdsCollected.clear();
|
|
48350
|
-
visitComponent(
|
|
48860
|
+
visitComponent(component2.component, null, componentDefVisitor, continuation, metadataHandler);
|
|
48351
48861
|
}
|
|
48352
48862
|
}
|
|
48353
48863
|
return errorsCollected;
|
|
@@ -48530,8 +49040,8 @@ class StandaloneExtensionManager {
|
|
|
48530
49040
|
*/
|
|
48531
49041
|
subscribeToRegistrations(cb) {
|
|
48532
49042
|
this.subscriptions.add(cb);
|
|
48533
|
-
this.registeredExtensions.forEach((
|
|
48534
|
-
cb(
|
|
49043
|
+
this.registeredExtensions.forEach((component2) => {
|
|
49044
|
+
cb(component2);
|
|
48535
49045
|
});
|
|
48536
49046
|
}
|
|
48537
49047
|
/**
|
|
@@ -48543,11 +49053,11 @@ class StandaloneExtensionManager {
|
|
|
48543
49053
|
unSubscribeFromRegistrations(cb) {
|
|
48544
49054
|
this.subscriptions.delete(cb);
|
|
48545
49055
|
}
|
|
48546
|
-
registerExtension(
|
|
48547
|
-
(Array.isArray(
|
|
48548
|
-
this.registeredExtensions.push(
|
|
49056
|
+
registerExtension(component2) {
|
|
49057
|
+
(Array.isArray(component2) ? component2 : [component2]).forEach((component22) => {
|
|
49058
|
+
this.registeredExtensions.push(component22);
|
|
48549
49059
|
this.subscriptions.forEach((cb) => {
|
|
48550
|
-
cb(
|
|
49060
|
+
cb(component22);
|
|
48551
49061
|
});
|
|
48552
49062
|
});
|
|
48553
49063
|
}
|
|
@@ -48941,16 +49451,16 @@ async function parseComponentMarkupResponse(response) {
|
|
|
48941
49451
|
}
|
|
48942
49452
|
const code = await response.text();
|
|
48943
49453
|
const fileId = response.url;
|
|
48944
|
-
let { component, errors, erroneousCompoundComponentName } = xmlUiMarkupToComponent(code, fileId);
|
|
49454
|
+
let { component: component2, errors, erroneousCompoundComponentName } = xmlUiMarkupToComponent(code, fileId);
|
|
48945
49455
|
if (errors.length > 0) {
|
|
48946
49456
|
const compName = erroneousCompoundComponentName ?? response.url.substring(
|
|
48947
49457
|
response.url.lastIndexOf("/") + 1,
|
|
48948
49458
|
response.url.length - ".xmlui".length
|
|
48949
49459
|
);
|
|
48950
|
-
|
|
49460
|
+
component2 = errReportComponent(errors, fileId, compName);
|
|
48951
49461
|
}
|
|
48952
49462
|
return {
|
|
48953
|
-
component,
|
|
49463
|
+
component: component2,
|
|
48954
49464
|
src: code,
|
|
48955
49465
|
file: fileId,
|
|
48956
49466
|
hasError: errors.length > 0
|
|
@@ -49571,70 +50081,106 @@ function discoverCompilationDependencies({
|
|
|
49571
50081
|
function discoverDirectComponentDependencies(entrypoint, registry) {
|
|
49572
50082
|
return discoverDirectComponentDependenciesHelp(entrypoint, registry, /* @__PURE__ */ new Set());
|
|
49573
50083
|
}
|
|
49574
|
-
function discoverDirectComponentDependenciesHelp(
|
|
49575
|
-
if (!
|
|
50084
|
+
function discoverDirectComponentDependenciesHelp(component2, registry, deps) {
|
|
50085
|
+
if (!component2) {
|
|
49576
50086
|
return deps;
|
|
49577
50087
|
}
|
|
49578
|
-
const compName =
|
|
50088
|
+
const compName = component2.type;
|
|
49579
50089
|
if (!registry.hasComponent(compName)) {
|
|
49580
50090
|
deps.add(compName);
|
|
49581
50091
|
}
|
|
49582
|
-
if (!
|
|
50092
|
+
if (!component2.children) {
|
|
49583
50093
|
return deps;
|
|
49584
50094
|
}
|
|
49585
|
-
for (const child of
|
|
50095
|
+
for (const child of component2.children) {
|
|
49586
50096
|
discoverDirectComponentDependenciesHelp(child, registry, deps);
|
|
49587
50097
|
}
|
|
49588
50098
|
return deps;
|
|
49589
50099
|
}
|
|
49590
50100
|
export {
|
|
49591
|
-
|
|
49592
|
-
|
|
49593
|
-
|
|
49594
|
-
|
|
49595
|
-
|
|
49596
|
-
|
|
49597
|
-
|
|
49598
|
-
|
|
49599
|
-
|
|
49600
|
-
|
|
49601
|
-
|
|
49602
|
-
|
|
49603
|
-
|
|
49604
|
-
|
|
49605
|
-
|
|
49606
|
-
|
|
49607
|
-
|
|
49608
|
-
|
|
50101
|
+
Icon as $,
|
|
50102
|
+
dInitialValue as A,
|
|
50103
|
+
dInternal as B,
|
|
50104
|
+
dLabel as C,
|
|
50105
|
+
dLabelBreak as D,
|
|
50106
|
+
dLabelPosition as E,
|
|
50107
|
+
dLabelWidth as F,
|
|
50108
|
+
dLostFocus as G,
|
|
50109
|
+
dMaxLength as H,
|
|
50110
|
+
dMulti as I,
|
|
50111
|
+
dOrientation as J,
|
|
50112
|
+
dPlaceholder as K,
|
|
50113
|
+
dReadonly as L,
|
|
50114
|
+
dRequired as M,
|
|
50115
|
+
dStartIcon as N,
|
|
50116
|
+
dStartText as O,
|
|
50117
|
+
dSetValueApi as P,
|
|
50118
|
+
dTriggerTemplate as Q,
|
|
50119
|
+
dValidationStatus as R,
|
|
49609
50120
|
StandaloneApp as S,
|
|
49610
50121
|
ThrowStatementError as T,
|
|
49611
|
-
|
|
49612
|
-
|
|
49613
|
-
|
|
50122
|
+
dValue as U,
|
|
50123
|
+
dValueApi as V,
|
|
50124
|
+
parseScssVar as W,
|
|
50125
|
+
startApp as X,
|
|
50126
|
+
useTheme as Y,
|
|
50127
|
+
AppRoot as Z,
|
|
50128
|
+
ErrorBoundary as _,
|
|
49614
50129
|
dateFunctions as a,
|
|
50130
|
+
Stack as a0,
|
|
50131
|
+
Button as a1,
|
|
50132
|
+
Splitter as a2,
|
|
50133
|
+
getColor as a3,
|
|
50134
|
+
TabItemComponent as a4,
|
|
50135
|
+
Tabs as a5,
|
|
50136
|
+
useColors as a6,
|
|
50137
|
+
toCssVar$1 as a7,
|
|
50138
|
+
useDevTools as a8,
|
|
50139
|
+
useLogger as a9,
|
|
50140
|
+
errReportComponent as aa,
|
|
50141
|
+
xmlUiMarkupToComponent as ab,
|
|
50142
|
+
ApiInterceptorProvider as ac,
|
|
50143
|
+
Spinner as ad,
|
|
50144
|
+
useThemes as ae,
|
|
50145
|
+
builtInThemes as af,
|
|
50146
|
+
Text as ag,
|
|
50147
|
+
TextBox as ah,
|
|
50148
|
+
NestedApp as ai,
|
|
50149
|
+
VisuallyHidden as aj,
|
|
50150
|
+
LinkNative as ak,
|
|
50151
|
+
ToneChangerButton as al,
|
|
50152
|
+
Logo as am,
|
|
50153
|
+
Breakout as an,
|
|
50154
|
+
useSearchContextContent as ao,
|
|
50155
|
+
useAppLayoutContext as ap,
|
|
50156
|
+
StyleProvider as aq,
|
|
50157
|
+
StyleRegistry as ar,
|
|
50158
|
+
useEvent as as,
|
|
50159
|
+
StandaloneComponent as at,
|
|
50160
|
+
Theme as au,
|
|
49615
50161
|
StandaloneExtensionManager as b,
|
|
49616
50162
|
createComponentRenderer as c,
|
|
49617
50163
|
delay$1 as d,
|
|
49618
|
-
|
|
49619
|
-
|
|
50164
|
+
createUserDefinedComponentRenderer as e,
|
|
50165
|
+
createMetadata as f,
|
|
49620
50166
|
getDate as g,
|
|
49621
|
-
|
|
49622
|
-
|
|
49623
|
-
|
|
49624
|
-
|
|
49625
|
-
|
|
50167
|
+
d as h,
|
|
50168
|
+
dComponent as i,
|
|
50169
|
+
dAutoFocus as j,
|
|
50170
|
+
dClick as k,
|
|
50171
|
+
dCollapse as l,
|
|
49626
50172
|
miscellaneousUtils as m,
|
|
49627
|
-
|
|
50173
|
+
dDidChange as n,
|
|
49628
50174
|
orderBy as o,
|
|
49629
|
-
|
|
49630
|
-
|
|
50175
|
+
dDidClose as p,
|
|
50176
|
+
dDidOpen as q,
|
|
49631
50177
|
runEventHandlerCode as r,
|
|
49632
|
-
|
|
49633
|
-
|
|
49634
|
-
|
|
49635
|
-
|
|
49636
|
-
|
|
49637
|
-
|
|
49638
|
-
|
|
49639
|
-
|
|
50178
|
+
dEnabled as s,
|
|
50179
|
+
dFocus as t,
|
|
50180
|
+
dEndIcon as u,
|
|
50181
|
+
dEndText as v,
|
|
50182
|
+
dExpanded as w,
|
|
50183
|
+
dExpand as x,
|
|
50184
|
+
dGotFocus as y,
|
|
50185
|
+
dIndeterminate as z
|
|
49640
50186
|
};
|