xmlui 0.11.15 → 0.11.16
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-CP9ZIMMT.js → index-ontex45U.js} +236 -212
- package/dist/lib/{initMock-C17fxLuA.js → initMock-BsfLxhPR.js} +1 -1
- package/dist/lib/testing.js +1 -1
- package/dist/lib/{xmlui-parser-CW8YmGjO.js → xmlui-parser-9Yk-asFP.js} +6 -4
- package/dist/lib/xmlui.js +3 -3
- package/dist/metadata/{collectedComponentMetadata-Bn_obqca.js → collectedComponentMetadata-BL0tS7Su.js} +236 -211
- package/dist/metadata/{initMock-DROjRCvI.js → initMock-RhX6qMsS.js} +1 -1
- package/dist/metadata/xmlui-metadata.js +1 -1
- package/dist/metadata/xmlui-metadata.umd.cjs +3 -3
- package/dist/standalone/xmlui-standalone.umd.js +36 -36
- package/package.json +1 -1
|
@@ -499,6 +499,9 @@ const styles$1j = {
|
|
|
499
499
|
"lds-ring": "_lds-ring_b1pgc_14",
|
|
500
500
|
fullScreenSpinnerWrapper
|
|
501
501
|
};
|
|
502
|
+
const Part = ({ children, partId }) => {
|
|
503
|
+
return /* @__PURE__ */ jsx(Slot, { "data-part-id": partId, children });
|
|
504
|
+
};
|
|
502
505
|
const PART_RING = "ring";
|
|
503
506
|
const defaultProps$1i = {
|
|
504
507
|
delay: 400,
|
|
@@ -538,7 +541,7 @@ const Spinner = forwardRef(function Spinner2({
|
|
|
538
541
|
style: style2,
|
|
539
542
|
ref: forwardedRef,
|
|
540
543
|
children: [
|
|
541
|
-
/* @__PURE__ */ jsx(
|
|
544
|
+
/* @__PURE__ */ jsx(Part, { partId: PART_RING, children: /* @__PURE__ */ jsx("div", {}) }),
|
|
542
545
|
/* @__PURE__ */ jsx("div", {}),
|
|
543
546
|
/* @__PURE__ */ jsx("div", {}),
|
|
544
547
|
/* @__PURE__ */ jsx("div", {})
|
|
@@ -558,7 +561,7 @@ const Spinner = forwardRef(function Spinner2({
|
|
|
558
561
|
style: style2,
|
|
559
562
|
ref: forwardedRef,
|
|
560
563
|
children: [
|
|
561
|
-
/* @__PURE__ */ jsx(
|
|
564
|
+
/* @__PURE__ */ jsx(Part, { partId: PART_RING, children: /* @__PURE__ */ jsx("div", {}) }),
|
|
562
565
|
/* @__PURE__ */ jsx("div", {}),
|
|
563
566
|
/* @__PURE__ */ jsx("div", {}),
|
|
564
567
|
/* @__PURE__ */ jsx("div", {})
|
|
@@ -572,6 +575,7 @@ const PART_LABELED_ITEM = "labeledItem";
|
|
|
572
575
|
const PART_INPUT = "input";
|
|
573
576
|
const PART_START_ADORNMENT = "startAdornment";
|
|
574
577
|
const PART_END_ADORNMENT = "endAdornment";
|
|
578
|
+
const PART_ICON = "icon";
|
|
575
579
|
const defaultProps$1h = {
|
|
576
580
|
labelBreak: true
|
|
577
581
|
};
|
|
@@ -601,18 +605,17 @@ const ItemWithLabel = forwardRef(function ItemWithLabel2({
|
|
|
601
605
|
const generatedId2 = useId();
|
|
602
606
|
const inputId = id || generatedId2;
|
|
603
607
|
if (label2 === void 0 && !validationResult) {
|
|
604
|
-
return /* @__PURE__ */ jsx(
|
|
608
|
+
return /* @__PURE__ */ jsx(Part, { partId: PART_LABELED_ITEM, children: /* @__PURE__ */ jsx(
|
|
605
609
|
Slot,
|
|
606
610
|
{
|
|
607
611
|
...rest,
|
|
608
|
-
"data-part-id": PART_LABELED_ITEM,
|
|
609
612
|
style: style2,
|
|
610
613
|
className,
|
|
611
614
|
id: inputId,
|
|
612
615
|
ref,
|
|
613
616
|
children
|
|
614
617
|
}
|
|
615
|
-
);
|
|
618
|
+
) });
|
|
616
619
|
}
|
|
617
620
|
return /* @__PURE__ */ jsxs("div", { ...rest, ref, style: style2, className: classnames(className, styles$1k.itemWithLabel), children: [
|
|
618
621
|
/* @__PURE__ */ jsxs(
|
|
@@ -626,10 +629,9 @@ const ItemWithLabel = forwardRef(function ItemWithLabel2({
|
|
|
626
629
|
[styles$1k.shrinkToLabel]: shrinkToLabel2
|
|
627
630
|
}),
|
|
628
631
|
children: [
|
|
629
|
-
label2 && /* @__PURE__ */ jsxs(
|
|
632
|
+
label2 && /* @__PURE__ */ jsx(Part, { partId: PART_LABEL, children: /* @__PURE__ */ jsxs(
|
|
630
633
|
"label",
|
|
631
634
|
{
|
|
632
|
-
"data-part-id": PART_LABEL,
|
|
633
635
|
htmlFor: inputId,
|
|
634
636
|
onClick: onLabelClick || (() => document.getElementById(inputId)?.focus()),
|
|
635
637
|
style: {
|
|
@@ -654,13 +656,12 @@ const ItemWithLabel = forwardRef(function ItemWithLabel2({
|
|
|
654
656
|
)
|
|
655
657
|
]
|
|
656
658
|
}
|
|
657
|
-
),
|
|
658
|
-
cloneElement(children, {
|
|
659
|
+
) }),
|
|
660
|
+
/* @__PURE__ */ jsx(Part, { partId: PART_LABELED_ITEM, children: cloneElement(children, {
|
|
659
661
|
id: !isInputTemplateUsed ? inputId : void 0,
|
|
660
662
|
style: void 0,
|
|
661
|
-
className: void 0
|
|
662
|
-
|
|
663
|
-
})
|
|
663
|
+
className: void 0
|
|
664
|
+
}) })
|
|
664
665
|
]
|
|
665
666
|
}
|
|
666
667
|
),
|
|
@@ -3025,6 +3026,11 @@ const COMP$1x = "Button";
|
|
|
3025
3026
|
const ButtonMd = createMetadata({
|
|
3026
3027
|
status: "stable",
|
|
3027
3028
|
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.",
|
|
3029
|
+
parts: {
|
|
3030
|
+
icon: {
|
|
3031
|
+
description: "The icon displayed within the button, if any."
|
|
3032
|
+
}
|
|
3033
|
+
},
|
|
3028
3034
|
props: {
|
|
3029
3035
|
autoFocus: {
|
|
3030
3036
|
description: "Indicates if the button should receive focus when the page loads.",
|
|
@@ -4600,21 +4606,12 @@ const TextBox = forwardRef(function TextBox2({
|
|
|
4600
4606
|
onFocus: focus,
|
|
4601
4607
|
style: { ...style2, gap },
|
|
4602
4608
|
children: [
|
|
4603
|
-
/* @__PURE__ */ jsx(
|
|
4604
|
-
|
|
4605
|
-
{
|
|
4606
|
-
"data-part-id": PART_START_ADORNMENT,
|
|
4607
|
-
text: startText,
|
|
4608
|
-
iconName: startIcon,
|
|
4609
|
-
className: classnames(styles$1g.adornment)
|
|
4610
|
-
}
|
|
4611
|
-
),
|
|
4612
|
-
/* @__PURE__ */ jsx(
|
|
4609
|
+
/* @__PURE__ */ jsx(Part, { partId: PART_START_ADORNMENT, children: /* @__PURE__ */ jsx(Adornment, { text: startText, iconName: startIcon, className: classnames(styles$1g.adornment) }) }),
|
|
4610
|
+
/* @__PURE__ */ jsx(Part, { partId: PART_INPUT, children: /* @__PURE__ */ jsx(
|
|
4613
4611
|
"input",
|
|
4614
4612
|
{
|
|
4615
4613
|
id,
|
|
4616
4614
|
ref: inputRef,
|
|
4617
|
-
"data-part-id": PART_INPUT,
|
|
4618
4615
|
type: actualType,
|
|
4619
4616
|
className: classnames(styles$1g.input, {
|
|
4620
4617
|
[styles$1g.readOnly]: readOnly2
|
|
@@ -4632,33 +4629,23 @@ const TextBox = forwardRef(function TextBox2({
|
|
|
4632
4629
|
tabIndex: enabled2 ? tabIndex : -1,
|
|
4633
4630
|
required: required2
|
|
4634
4631
|
}
|
|
4635
|
-
),
|
|
4636
|
-
!readOnly2 && enabled2 && type == "search" && localValue?.length > 0 && /* @__PURE__ */ jsx(
|
|
4632
|
+
) }),
|
|
4633
|
+
!readOnly2 && enabled2 && type == "search" && localValue?.length > 0 && /* @__PURE__ */ jsx(Part, { partId: PART_END_ADORNMENT, children: /* @__PURE__ */ jsx(
|
|
4637
4634
|
Adornment,
|
|
4638
4635
|
{
|
|
4639
|
-
"data-part-id": PART_END_ADORNMENT,
|
|
4640
4636
|
iconName: "close",
|
|
4641
4637
|
className: styles$1g.adornment,
|
|
4642
4638
|
onClick: () => updateValue("")
|
|
4643
4639
|
}
|
|
4644
|
-
),
|
|
4645
|
-
type === "password" && showPasswordToggle ? /* @__PURE__ */ jsx(
|
|
4640
|
+
) }),
|
|
4641
|
+
type === "password" && showPasswordToggle ? /* @__PURE__ */ jsx(Part, { partId: PART_END_ADORNMENT, children: /* @__PURE__ */ jsx(
|
|
4646
4642
|
Adornment,
|
|
4647
4643
|
{
|
|
4648
|
-
"data-part-id": PART_END_ADORNMENT,
|
|
4649
4644
|
iconName: showPassword ? passwordVisibleIcon : passwordHiddenIcon,
|
|
4650
4645
|
className: classnames(styles$1g.adornment, styles$1g.passwordToggle),
|
|
4651
4646
|
onClick: togglePasswordVisibility
|
|
4652
4647
|
}
|
|
4653
|
-
) : /* @__PURE__ */ jsx(
|
|
4654
|
-
Adornment,
|
|
4655
|
-
{
|
|
4656
|
-
"data-part-id": PART_END_ADORNMENT,
|
|
4657
|
-
text: endText,
|
|
4658
|
-
iconName: endIcon,
|
|
4659
|
-
className: styles$1g.adornment
|
|
4660
|
-
}
|
|
4661
|
-
)
|
|
4648
|
+
) }) : /* @__PURE__ */ jsx(Part, { partId: PART_END_ADORNMENT, children: /* @__PURE__ */ jsx(Adornment, { text: endText, iconName: endIcon, className: styles$1g.adornment }) })
|
|
4662
4649
|
]
|
|
4663
4650
|
}
|
|
4664
4651
|
);
|
|
@@ -8442,17 +8429,16 @@ const AppHeader = ({
|
|
|
8442
8429
|
[styles$1a.full]: !canRestrictContentWidth
|
|
8443
8430
|
}),
|
|
8444
8431
|
children: [
|
|
8445
|
-
hasRegisteredNavPanel && /* @__PURE__ */ jsx(
|
|
8432
|
+
hasRegisteredNavPanel && /* @__PURE__ */ jsx(Part, { partId: PART_HAMBURGER, children: /* @__PURE__ */ jsx(
|
|
8446
8433
|
Button,
|
|
8447
8434
|
{
|
|
8448
|
-
"data-part-id": PART_HAMBURGER,
|
|
8449
8435
|
onClick: toggleDrawer,
|
|
8450
8436
|
icon: /* @__PURE__ */ jsx(Icon$l, { name: "hamburger" }),
|
|
8451
8437
|
variant: "ghost",
|
|
8452
8438
|
className: styles$1a.drawerToggle,
|
|
8453
8439
|
style: { color: "inherit", flexShrink: 0 }
|
|
8454
8440
|
}
|
|
8455
|
-
),
|
|
8441
|
+
) }),
|
|
8456
8442
|
/* @__PURE__ */ jsx("div", { className: styles$1a.logoAndTitle, children: (showLogo || !effectiveNavPanelVisible) && (logoContent ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8457
8443
|
/* @__PURE__ */ jsx("div", { className: styles$1a.customLogoContainer, children: logoContent }),
|
|
8458
8444
|
safeLogoTitle
|
|
@@ -16968,16 +16954,16 @@ const LinkNative = forwardRef(function LinkNative2(props, forwardedRef) {
|
|
|
16968
16954
|
[styles$12.disabled]: disabled2
|
|
16969
16955
|
}),
|
|
16970
16956
|
children: [
|
|
16971
|
-
icon2 && /* @__PURE__ */ jsx("div", { className: styles$12.iconWrapper, children: /* @__PURE__ */ jsx(Icon$l, { name: icon2 }) }),
|
|
16957
|
+
icon2 && /* @__PURE__ */ jsx(Part, { partId: PART_ICON, children: /* @__PURE__ */ jsx("div", { className: styles$12.iconWrapper, children: /* @__PURE__ */ jsx(Icon$l, { name: icon2 }) }) }),
|
|
16972
16958
|
children
|
|
16973
16959
|
]
|
|
16974
16960
|
}
|
|
16975
16961
|
);
|
|
16976
16962
|
});
|
|
16977
16963
|
function specifyTypes(props) {
|
|
16978
|
-
const { target: target2, referrerPolicy } = props;
|
|
16964
|
+
const { target: target2, referrerPolicy, ...rest } = props;
|
|
16979
16965
|
return {
|
|
16980
|
-
...
|
|
16966
|
+
...rest,
|
|
16981
16967
|
target: target2,
|
|
16982
16968
|
referrerPolicy
|
|
16983
16969
|
};
|
|
@@ -17173,6 +17159,17 @@ const COMP$1n = "Card";
|
|
|
17173
17159
|
const CardMd = createMetadata({
|
|
17174
17160
|
status: "stable",
|
|
17175
17161
|
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.",
|
|
17162
|
+
parts: {
|
|
17163
|
+
avatar: {
|
|
17164
|
+
description: "The avatar displayed within the card, if any."
|
|
17165
|
+
},
|
|
17166
|
+
title: {
|
|
17167
|
+
description: "The title of the card."
|
|
17168
|
+
},
|
|
17169
|
+
subtitle: {
|
|
17170
|
+
description: "The subtitle of the card."
|
|
17171
|
+
}
|
|
17172
|
+
},
|
|
17176
17173
|
props: {
|
|
17177
17174
|
avatarUrl: {
|
|
17178
17175
|
description: `The url for an avarar image. If not specified, but [\`showAvatar\`](#showAvatar) is true, ${COMP$1n} will show the first letters of the [\`title\`](#title).`,
|
|
@@ -17434,12 +17431,11 @@ const Toggle = forwardRef(function Toggle2({
|
|
|
17434
17431
|
}, [focus, registerComponentApi, setValue]);
|
|
17435
17432
|
const input2 = useMemo(() => {
|
|
17436
17433
|
const legitValue = transformToLegitValue(value);
|
|
17437
|
-
return /* @__PURE__ */ jsx(
|
|
17434
|
+
return /* @__PURE__ */ jsx(Part, { partId: PART_INPUT, children: /* @__PURE__ */ jsx(
|
|
17438
17435
|
"input",
|
|
17439
17436
|
{
|
|
17440
17437
|
...rest,
|
|
17441
17438
|
id,
|
|
17442
|
-
"data-part-id": PART_INPUT,
|
|
17443
17439
|
ref,
|
|
17444
17440
|
type: "checkbox",
|
|
17445
17441
|
role: variant,
|
|
@@ -17466,7 +17462,7 @@ const Toggle = forwardRef(function Toggle2({
|
|
|
17466
17462
|
[styles$10.forceHover]: forceHover2
|
|
17467
17463
|
})
|
|
17468
17464
|
}
|
|
17469
|
-
);
|
|
17465
|
+
) });
|
|
17470
17466
|
}, [
|
|
17471
17467
|
rest,
|
|
17472
17468
|
className,
|
|
@@ -18680,6 +18676,11 @@ const DDMCOMP = "DropdownMenu";
|
|
|
18680
18676
|
const DropdownMenuMd = createMetadata({
|
|
18681
18677
|
status: "stable",
|
|
18682
18678
|
description: "`DropdownMenu` provides a space-efficient way to present multiple options or actions through a collapsible interface. When clicked, the trigger button reveals a menu that can include items, separators, and nested submenus, making it ideal for navigation, action lists, or any situation requiring many options without permanent screen space.",
|
|
18679
|
+
parts: {
|
|
18680
|
+
content: {
|
|
18681
|
+
description: "The content area of the DropdownMenu where menu items are displayed."
|
|
18682
|
+
}
|
|
18683
|
+
},
|
|
18683
18684
|
props: {
|
|
18684
18685
|
label: dLabel(),
|
|
18685
18686
|
triggerTemplate: dTriggerTemplate(DDMCOMP),
|
|
@@ -19138,6 +19139,14 @@ const DEFAULT_ICON = "browse:FileInput";
|
|
|
19138
19139
|
const FileInputMd = createMetadata({
|
|
19139
19140
|
status: "stable",
|
|
19140
19141
|
description: "`FileInput` enables users to select files from their device's file system for upload or processing. It combines a text field displaying selected files with a customizable button that opens the system file browser. Use it for forms, media uploads, and document processing workflows.",
|
|
19142
|
+
parts: {
|
|
19143
|
+
label: {
|
|
19144
|
+
description: "The label displayed for the file input."
|
|
19145
|
+
},
|
|
19146
|
+
input: {
|
|
19147
|
+
description: "The file input area displaying selected file names."
|
|
19148
|
+
}
|
|
19149
|
+
},
|
|
19141
19150
|
props: {
|
|
19142
19151
|
placeholder: dPlaceholder(),
|
|
19143
19152
|
initialValue: dInitialValue(),
|
|
@@ -19999,11 +20008,10 @@ const ModalDialog = React__default.forwardRef(
|
|
|
19999
20008
|
if (!root2) {
|
|
20000
20009
|
return null;
|
|
20001
20010
|
}
|
|
20002
|
-
const Content2 = /* @__PURE__ */ jsxs(
|
|
20011
|
+
const Content2 = /* @__PURE__ */ jsx(Part, { partId: PART_CONTENT, children: /* @__PURE__ */ jsxs(
|
|
20003
20012
|
SheetPrimitive.Content,
|
|
20004
20013
|
{
|
|
20005
20014
|
...rest,
|
|
20006
|
-
"data-part-id": PART_CONTENT,
|
|
20007
20015
|
className: classnames(
|
|
20008
20016
|
{
|
|
20009
20017
|
[styles$T.contentAnimation]: !externalAnimation
|
|
@@ -20019,7 +20027,7 @@ const ModalDialog = React__default.forwardRef(
|
|
|
20019
20027
|
ref: composedRef,
|
|
20020
20028
|
style: { ...style2, gap: void 0 },
|
|
20021
20029
|
children: [
|
|
20022
|
-
!!title2 && /* @__PURE__ */ jsx(SheetPrimitive.Title, { style: { marginTop: 0 }, children: /* @__PURE__ */ jsx("header", { id: "dialogTitle", className: styles$T.dialogTitle,
|
|
20030
|
+
!!title2 && /* @__PURE__ */ jsx(Part, { partId: PART_TITLE, children: /* @__PURE__ */ jsx(SheetPrimitive.Title, { style: { marginTop: 0 }, children: /* @__PURE__ */ jsx("header", { id: "dialogTitle", className: styles$T.dialogTitle, children: title2 }) }) }),
|
|
20023
20031
|
/* @__PURE__ */ jsx("div", { className: styles$T.innerContent, style: { gap: style2?.gap }, children: /* @__PURE__ */ jsx(ModalVisibilityContext.Provider, { value: modalVisibilityContextValue, children }) }),
|
|
20024
20032
|
closeButtonVisible && /* @__PURE__ */ jsx(SheetPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
20025
20033
|
Button,
|
|
@@ -20034,7 +20042,7 @@ const ModalDialog = React__default.forwardRef(
|
|
|
20034
20042
|
) })
|
|
20035
20043
|
]
|
|
20036
20044
|
}
|
|
20037
|
-
);
|
|
20045
|
+
) });
|
|
20038
20046
|
return /* @__PURE__ */ jsx(SheetPrimitive.Root, { open: isOpen, onOpenChange: (open) => open ? doOpen() : doClose(), children: /* @__PURE__ */ jsxs(SheetPrimitive.Portal, { container: root2, children: [
|
|
20039
20047
|
isDialogRootInShadowDom && /*
|
|
20040
20048
|
In the Shadow DOM we can omit the Dialog.Overlay,
|
|
@@ -21407,10 +21415,9 @@ const Form = forwardRef(function({
|
|
|
21407
21415
|
});
|
|
21408
21416
|
});
|
|
21409
21417
|
});
|
|
21410
|
-
const cancelButton = cancelLabel === "" ? null : /* @__PURE__ */ jsx(
|
|
21418
|
+
const cancelButton = cancelLabel === "" ? null : /* @__PURE__ */ jsx(Part, { partId: PART_CANCEL_BUTTON, children: /* @__PURE__ */ jsx(
|
|
21411
21419
|
Button,
|
|
21412
21420
|
{
|
|
21413
|
-
"data-part-id": PART_CANCEL_BUTTON,
|
|
21414
21421
|
type: "button",
|
|
21415
21422
|
themeColor: "secondary",
|
|
21416
21423
|
variant: "ghost",
|
|
@@ -21418,18 +21425,9 @@ const Form = forwardRef(function({
|
|
|
21418
21425
|
children: cancelLabel
|
|
21419
21426
|
},
|
|
21420
21427
|
"cancel"
|
|
21421
|
-
);
|
|
21428
|
+
) });
|
|
21422
21429
|
const submitButton = useMemo(
|
|
21423
|
-
() => /* @__PURE__ */ jsx(
|
|
21424
|
-
Button,
|
|
21425
|
-
{
|
|
21426
|
-
"data-part-id": PART_SUBMIT_BUTTON,
|
|
21427
|
-
type: "submit",
|
|
21428
|
-
disabled: !isEnabled2 || !enableSubmit,
|
|
21429
|
-
children: formState.submitInProgress ? saveInProgressLabel : saveLabel
|
|
21430
|
-
},
|
|
21431
|
-
"submit"
|
|
21432
|
-
),
|
|
21430
|
+
() => /* @__PURE__ */ jsx(Part, { partId: PART_SUBMIT_BUTTON, children: /* @__PURE__ */ jsx(Button, { type: "submit", disabled: !isEnabled2 || !enableSubmit, children: formState.submitInProgress ? saveInProgressLabel : saveLabel }, "submit") }),
|
|
21433
21431
|
[isEnabled2, enableSubmit, formState.submitInProgress, saveInProgressLabel, saveLabel]
|
|
21434
21432
|
);
|
|
21435
21433
|
useEffect(() => {
|
|
@@ -21594,6 +21592,15 @@ const COMP$1d = "Form";
|
|
|
21594
21592
|
const FormMd = createMetadata({
|
|
21595
21593
|
status: "stable",
|
|
21596
21594
|
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.",
|
|
21595
|
+
parts: {
|
|
21596
|
+
buttonRow: {
|
|
21597
|
+
description: "The container for the form action buttons (e.g., Save, Cancel)."
|
|
21598
|
+
},
|
|
21599
|
+
// NOTE: There is a ValidationSummary in the form and also one in the modal dialog.
|
|
21600
|
+
validationSummary: {
|
|
21601
|
+
description: "The area displaying validation summary messages for the form."
|
|
21602
|
+
}
|
|
21603
|
+
},
|
|
21597
21604
|
props: {
|
|
21598
21605
|
buttonRowTemplate: dComponent(
|
|
21599
21606
|
`This property allows defining a custom component to display the buttons at the bottom of the form.`
|
|
@@ -22188,20 +22195,11 @@ const NumberBox = forwardRef(function NumberBox2({
|
|
|
22188
22195
|
},
|
|
22189
22196
|
style: { ...style2, gap },
|
|
22190
22197
|
children: [
|
|
22191
|
-
/* @__PURE__ */ jsx(
|
|
22192
|
-
|
|
22193
|
-
{
|
|
22194
|
-
"data-part-id": PART_START_ADORNMENT,
|
|
22195
|
-
text: startText,
|
|
22196
|
-
iconName: startIcon,
|
|
22197
|
-
className: classnames(styles$Q.adornment)
|
|
22198
|
-
}
|
|
22199
|
-
),
|
|
22200
|
-
/* @__PURE__ */ jsx(
|
|
22198
|
+
/* @__PURE__ */ jsx(Part, { partId: PART_START_ADORNMENT, children: /* @__PURE__ */ jsx(Adornment, { text: startText, iconName: startIcon, className: classnames(styles$Q.adornment) }) }),
|
|
22199
|
+
/* @__PURE__ */ jsx(Part, { partId: PART_INPUT, children: /* @__PURE__ */ jsx(
|
|
22201
22200
|
"input",
|
|
22202
22201
|
{
|
|
22203
22202
|
id,
|
|
22204
|
-
"data-part-id": PART_INPUT,
|
|
22205
22203
|
type: "text",
|
|
22206
22204
|
inputMode: "numeric",
|
|
22207
22205
|
className: classnames(styles$Q.input, {
|
|
@@ -22223,21 +22221,12 @@ const NumberBox = forwardRef(function NumberBox2({
|
|
|
22223
22221
|
maxLength,
|
|
22224
22222
|
required: required2
|
|
22225
22223
|
}
|
|
22226
|
-
),
|
|
22227
|
-
/* @__PURE__ */ jsx(
|
|
22228
|
-
Adornment,
|
|
22229
|
-
{
|
|
22230
|
-
"data-part-id": PART_END_ADORNMENT,
|
|
22231
|
-
text: endText,
|
|
22232
|
-
iconName: endIcon,
|
|
22233
|
-
className: classnames(styles$Q.adornment)
|
|
22234
|
-
}
|
|
22235
|
-
),
|
|
22224
|
+
) }),
|
|
22225
|
+
/* @__PURE__ */ jsx(Part, { partId: PART_END_ADORNMENT, children: /* @__PURE__ */ jsx(Adornment, { text: endText, iconName: endIcon, className: classnames(styles$Q.adornment) }) }),
|
|
22236
22226
|
hasSpinBox && /* @__PURE__ */ jsxs("div", { className: styles$Q.spinnerBox, children: [
|
|
22237
|
-
/* @__PURE__ */ jsx(
|
|
22227
|
+
/* @__PURE__ */ jsx(Part, { partId: PART_SPINNER_UP, children: /* @__PURE__ */ jsx(
|
|
22238
22228
|
Button,
|
|
22239
22229
|
{
|
|
22240
|
-
"data-part-id": PART_SPINNER_UP,
|
|
22241
22230
|
"data-spinner": "up",
|
|
22242
22231
|
type: "button",
|
|
22243
22232
|
role: "spinbutton",
|
|
@@ -22249,11 +22238,10 @@ const NumberBox = forwardRef(function NumberBox2({
|
|
|
22249
22238
|
ref: upButton,
|
|
22250
22239
|
children: /* @__PURE__ */ jsx(Icon$l, { name: spinnerUpIcon || "spinnerUp:NumberBox", fallback: "chevronup", size: "sm" })
|
|
22251
22240
|
}
|
|
22252
|
-
),
|
|
22253
|
-
/* @__PURE__ */ jsx(
|
|
22241
|
+
) }),
|
|
22242
|
+
/* @__PURE__ */ jsx(Part, { partId: PART_SPINNER_DOWN, children: /* @__PURE__ */ jsx(
|
|
22254
22243
|
Button,
|
|
22255
22244
|
{
|
|
22256
|
-
"data-part-id": PART_SPINNER_DOWN,
|
|
22257
22245
|
"data-spinner": "down",
|
|
22258
22246
|
type: "button",
|
|
22259
22247
|
role: "spinbutton",
|
|
@@ -22272,7 +22260,7 @@ const NumberBox = forwardRef(function NumberBox2({
|
|
|
22272
22260
|
}
|
|
22273
22261
|
)
|
|
22274
22262
|
}
|
|
22275
|
-
)
|
|
22263
|
+
) })
|
|
22276
22264
|
] })
|
|
22277
22265
|
]
|
|
22278
22266
|
}
|
|
@@ -22456,7 +22444,7 @@ function HiddenOption(option) {
|
|
|
22456
22444
|
return /* @__PURE__ */ jsx("div", { ref: (el) => setNode(el), style: { display: "none" }, children: option.children });
|
|
22457
22445
|
}
|
|
22458
22446
|
const PART_LIST_WRAPPER$1 = "listWrapper";
|
|
22459
|
-
const PART_CLEAR_BUTTON$
|
|
22447
|
+
const PART_CLEAR_BUTTON$1 = "clearButton";
|
|
22460
22448
|
const defaultProps$L = {
|
|
22461
22449
|
enabled: true,
|
|
22462
22450
|
placeholder: "",
|
|
@@ -22522,10 +22510,9 @@ const SelectTriggerActions = ({
|
|
|
22522
22510
|
}) => {
|
|
22523
22511
|
const hasValue = multiSelect ? Array.isArray(value) && value.length > 0 : value !== void 0 && value !== null && value !== "";
|
|
22524
22512
|
return /* @__PURE__ */ jsxs("div", { className: styles$P.actions, children: [
|
|
22525
|
-
hasValue && enabled2 && !readOnly2 && clearable && /* @__PURE__ */ jsx(
|
|
22513
|
+
hasValue && enabled2 && !readOnly2 && clearable && /* @__PURE__ */ jsx(Part, { partId: PART_CLEAR_BUTTON$1, children: /* @__PURE__ */ jsx(
|
|
22526
22514
|
"span",
|
|
22527
22515
|
{
|
|
22528
|
-
"data-part-id": PART_CLEAR_BUTTON$2,
|
|
22529
22516
|
className: styles$P.action,
|
|
22530
22517
|
onClick: (event) => {
|
|
22531
22518
|
event.stopPropagation();
|
|
@@ -22533,7 +22520,7 @@ const SelectTriggerActions = ({
|
|
|
22533
22520
|
},
|
|
22534
22521
|
children: /* @__PURE__ */ jsx(Icon$l, { name: "close" })
|
|
22535
22522
|
}
|
|
22536
|
-
),
|
|
22523
|
+
) }),
|
|
22537
22524
|
showChevron && /* @__PURE__ */ jsx("span", { className: styles$P.action, children: /* @__PURE__ */ jsx(Icon$l, { name: "chevrondown" }) })
|
|
22538
22525
|
] });
|
|
22539
22526
|
};
|
|
@@ -22801,7 +22788,7 @@ const Select = forwardRef(function Select2({
|
|
|
22801
22788
|
},
|
|
22802
22789
|
modal: false,
|
|
22803
22790
|
children: [
|
|
22804
|
-
/* @__PURE__ */ jsxs(
|
|
22791
|
+
/* @__PURE__ */ jsx(Part, { partId: PART_LIST_WRAPPER$1, children: /* @__PURE__ */ jsxs(
|
|
22805
22792
|
PopoverTrigger,
|
|
22806
22793
|
{
|
|
22807
22794
|
...rest,
|
|
@@ -22813,7 +22800,6 @@ const Select = forwardRef(function Select2({
|
|
|
22813
22800
|
onBlur,
|
|
22814
22801
|
disabled: !enabled2,
|
|
22815
22802
|
"aria-expanded": open,
|
|
22816
|
-
"data-part-id": PART_LIST_WRAPPER$1,
|
|
22817
22803
|
className: classnames(className, styles$P.selectTrigger, styles$P[validationStatus], {
|
|
22818
22804
|
[styles$P.disabled]: !enabled2,
|
|
22819
22805
|
[styles$P.multi]: multiSelect
|
|
@@ -22866,7 +22852,7 @@ const Select = forwardRef(function Select2({
|
|
|
22866
22852
|
)
|
|
22867
22853
|
]
|
|
22868
22854
|
}
|
|
22869
|
-
),
|
|
22855
|
+
) }),
|
|
22870
22856
|
open && /* @__PURE__ */ jsx(Portal, { container: root2, children: /* @__PURE__ */ jsx(
|
|
22871
22857
|
PopoverContent,
|
|
22872
22858
|
{
|
|
@@ -23560,42 +23546,32 @@ const TextArea = forwardRef(function TextArea2({
|
|
|
23560
23546
|
autoComplete: "off"
|
|
23561
23547
|
};
|
|
23562
23548
|
if (resize2 === "both" || resize2 === "horizontal" || resize2 === "vertical") {
|
|
23563
|
-
return /* @__PURE__ */ jsx(
|
|
23549
|
+
return /* @__PURE__ */ jsx(Part, { partId: PART_INPUT, children: /* @__PURE__ */ jsx(
|
|
23564
23550
|
TextAreaResizable$1,
|
|
23565
23551
|
{
|
|
23566
23552
|
...textareaProps,
|
|
23567
|
-
"data-part-id": PART_INPUT,
|
|
23568
23553
|
style: style2,
|
|
23569
23554
|
className: classnames(classes),
|
|
23570
23555
|
maxRows,
|
|
23571
23556
|
minRows,
|
|
23572
23557
|
rows
|
|
23573
23558
|
}
|
|
23574
|
-
);
|
|
23559
|
+
) });
|
|
23575
23560
|
}
|
|
23576
23561
|
if (autoSize || !isNil(maxRows) || !isNil(minRows)) {
|
|
23577
|
-
return /* @__PURE__ */ jsx(
|
|
23562
|
+
return /* @__PURE__ */ jsx(Part, { partId: PART_INPUT, children: /* @__PURE__ */ jsx(
|
|
23578
23563
|
TextareaAutosize,
|
|
23579
23564
|
{
|
|
23580
23565
|
...textareaProps,
|
|
23581
|
-
"data-part-id": PART_INPUT,
|
|
23582
23566
|
style: style2,
|
|
23583
23567
|
className: classnames(classes),
|
|
23584
23568
|
maxRows,
|
|
23585
23569
|
minRows,
|
|
23586
23570
|
rows
|
|
23587
23571
|
}
|
|
23588
|
-
);
|
|
23572
|
+
) });
|
|
23589
23573
|
}
|
|
23590
|
-
return /* @__PURE__ */ jsx(
|
|
23591
|
-
"textarea",
|
|
23592
|
-
{
|
|
23593
|
-
...textareaProps,
|
|
23594
|
-
"data-part-id": PART_INPUT,
|
|
23595
|
-
rows,
|
|
23596
|
-
className: classnames(classes)
|
|
23597
|
-
}
|
|
23598
|
-
);
|
|
23574
|
+
return /* @__PURE__ */ jsx(Part, { partId: PART_INPUT, children: /* @__PURE__ */ jsx("textarea", { ...textareaProps, rows, className: classnames(classes) }) });
|
|
23599
23575
|
});
|
|
23600
23576
|
const themeVars$w = `'{"border-AutoComplete": "var(--xmlui-border-AutoComplete)", "borderHorizontal-AutoComplete": "var(--xmlui-borderHorizontal-AutoComplete, var(--xmlui-border-AutoComplete))", "borderVertical-AutoComplete": "var(--xmlui-borderVertical-AutoComplete, var(--xmlui-border-AutoComplete))", "borderLeft-AutoComplete": "var(--xmlui-borderLeft-AutoComplete, var(--xmlui-borderHorizontal-AutoComplete, var(--xmlui-border-AutoComplete)))", "borderRight-AutoComplete": "var(--xmlui-borderRight-AutoComplete, var(--xmlui-borderHorizontal-AutoComplete, var(--xmlui-border-AutoComplete)))", "borderTop-AutoComplete": "var(--xmlui-borderTop-AutoComplete, var(--xmlui-borderVertical-AutoComplete, var(--xmlui-border-AutoComplete)))", "borderBottom-AutoComplete": "var(--xmlui-borderBottom-AutoComplete, var(--xmlui-borderVertical-AutoComplete, var(--xmlui-border-AutoComplete)))", "borderWidth-AutoComplete": "var(--xmlui-borderWidth-AutoComplete)", "borderHorizontalWidth-AutoComplete": "var(--xmlui-borderHorizontalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete))", "borderLeftWidth-AutoComplete": "var(--xmlui-borderLeftWidth-AutoComplete, var(--xmlui-borderHorizontalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete)))", "borderRightWidth-AutoComplete": "var(--xmlui-borderRightWidth-AutoComplete, var(--xmlui-borderHorizontalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete)))", "borderVerticalWidth-AutoComplete": "var(--xmlui-borderVerticalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete))", "borderTopWidth-AutoComplete": "var(--xmlui-borderTopWidth-AutoComplete, var(--xmlui-borderVerticalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete)))", "borderBottomWidth-AutoComplete": "var(--xmlui-borderBottomWidth-AutoComplete, var(--xmlui-borderVerticalWidth-AutoComplete, var(--xmlui-borderWidth-AutoComplete)))", "borderStyle-AutoComplete": "var(--xmlui-borderStyle-AutoComplete)", "borderHorizontalStyle-AutoComplete": "var(--xmlui-borderHorizontalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete))", "borderLeftStyle-AutoComplete": "var(--xmlui-borderLeftStyle-AutoComplete, var(--xmlui-borderHorizontalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete)))", "borderRightStyle-AutoComplete": "var(--xmlui-borderRightStyle-AutoComplete, var(--xmlui-borderHorizontalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete)))", "borderVerticalStyle-AutoComplete": "var(--xmlui-borderVerticalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete))", "borderTopStyle-AutoComplete": "var(--xmlui-borderTopStyle-AutoComplete, var(--xmlui-borderVerticalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete)))", "borderBottomStyle-AutoComplete": "var(--xmlui-borderBottomStyle-AutoComplete, var(--xmlui-borderVerticalStyle-AutoComplete, var(--xmlui-borderStyle-AutoComplete)))", "borderColor-AutoComplete": "var(--xmlui-borderColor-AutoComplete)", "borderHorizontalColor-AutoComplete": "var(--xmlui-borderHorizontalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete))", "borderLeftColor-AutoComplete": "var(--xmlui-borderLeftColor-AutoComplete, var(--xmlui-borderHorizontalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete)))", "borderRightColor-AutoComplete": "var(--xmlui-borderRightColor-AutoComplete, var(--xmlui-borderHorizontalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete)))", "borderVerticalColor-AutoComplete": "var(--xmlui-borderVerticalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete))", "borderTopColor-AutoComplete": "var(--xmlui-borderTopColor-AutoComplete, var(--xmlui-borderVerticalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete)))", "borderBottomColor-AutoComplete": "var(--xmlui-borderBottomColor-AutoComplete, var(--xmlui-borderVerticalColor-AutoComplete, var(--xmlui-borderColor-AutoComplete)))", "borderStartStartRadius-AutoComplete": "var(--xmlui-borderStartStartRadius-AutoComplete, var(--xmlui-borderRadius-AutoComplete))", "borderStartEndRadius-AutoComplete": "var(--xmlui-borderStartEndRadius-AutoComplete, var(--xmlui-borderRadius-AutoComplete))", "borderEndStartRadius-AutoComplete": "var(--xmlui-borderEndStartRadius-AutoComplete, var(--xmlui-borderRadius-AutoComplete))", "borderEndEndRadius-AutoComplete": "var(--xmlui-borderEndEndRadius-AutoComplete, var(--xmlui-borderRadius-AutoComplete))", "padding-AutoComplete": "var(--xmlui-padding-AutoComplete)", "paddingHorizontal-AutoComplete": "var(--xmlui-paddingHorizontal-AutoComplete, var(--xmlui-padding-AutoComplete))", "paddingVertical-AutoComplete": "var(--xmlui-paddingVertical-AutoComplete, var(--xmlui-padding-AutoComplete))", "paddingLeft-AutoComplete": "var(--xmlui-paddingLeft-AutoComplete, var(--xmlui-paddingHorizontal-AutoComplete, var(--xmlui-padding-AutoComplete)))", "paddingRight-AutoComplete": "var(--xmlui-paddingRight-AutoComplete, var(--xmlui-paddingHorizontal-AutoComplete, var(--xmlui-padding-AutoComplete)))", "paddingTop-AutoComplete": "var(--xmlui-paddingTop-AutoComplete, var(--xmlui-paddingVertical-AutoComplete, var(--xmlui-padding-AutoComplete)))", "paddingBottom-AutoComplete": "var(--xmlui-paddingBottom-AutoComplete, var(--xmlui-paddingVertical-AutoComplete, var(--xmlui-padding-AutoComplete)))", "padding-item-AutoComplete": "var(--xmlui-padding-item-AutoComplete)", "paddingHorizontal-item-AutoComplete": "var(--xmlui-paddingHorizontal-item-AutoComplete, var(--xmlui-padding-item-AutoComplete))", "paddingVertical-item-AutoComplete": "var(--xmlui-paddingVertical-item-AutoComplete, var(--xmlui-padding-item-AutoComplete))", "paddingLeft-item-AutoComplete": "var(--xmlui-paddingLeft-item-AutoComplete, var(--xmlui-paddingHorizontal-item-AutoComplete, var(--xmlui-padding-item-AutoComplete)))", "paddingRight-item-AutoComplete": "var(--xmlui-paddingRight-item-AutoComplete, var(--xmlui-paddingHorizontal-item-AutoComplete, var(--xmlui-padding-item-AutoComplete)))", "paddingTop-item-AutoComplete": "var(--xmlui-paddingTop-item-AutoComplete, var(--xmlui-paddingVertical-item-AutoComplete, var(--xmlui-padding-item-AutoComplete)))", "paddingBottom-item-AutoComplete": "var(--xmlui-paddingBottom-item-AutoComplete, var(--xmlui-paddingVertical-item-AutoComplete, var(--xmlui-padding-item-AutoComplete)))", "Input:borderRadius-AutoComplete--default": "var(--xmlui-borderRadius-AutoComplete--default)", "Input:borderColor-AutoComplete--default": "var(--xmlui-borderColor-AutoComplete--default)", "Input:borderWidth-AutoComplete--default": "var(--xmlui-borderWidth-AutoComplete--default)", "Input:borderStyle-AutoComplete--default": "var(--xmlui-borderStyle-AutoComplete--default)", "Input:fontSize-AutoComplete--default": "var(--xmlui-fontSize-AutoComplete--default)", "Input:backgroundColor-AutoComplete--default": "var(--xmlui-backgroundColor-AutoComplete--default)", "Input:boxShadow-AutoComplete--default": "var(--xmlui-boxShadow-AutoComplete--default)", "Input:textColor-AutoComplete--default": "var(--xmlui-textColor-AutoComplete--default)", "Input:borderColor-AutoComplete--default--hover": "var(--xmlui-borderColor-AutoComplete--default--hover)", "Input:backgroundColor-AutoComplete--default--hover": "var(--xmlui-backgroundColor-AutoComplete--default--hover)", "Input:boxShadow-AutoComplete--default--hover": "var(--xmlui-boxShadow-AutoComplete--default--hover)", "Input:textColor-AutoComplete--default--hover": "var(--xmlui-textColor-AutoComplete--default--hover)", "Input:textColor-placeholder-AutoComplete--default": "var(--xmlui-textColor-placeholder-AutoComplete--default)", "Input:fontSize-placeholder-AutoComplete--default": "var(--xmlui-fontSize-placeholder-AutoComplete--default)", "Input:borderRadius-AutoComplete--error": "var(--xmlui-borderRadius-AutoComplete--error)", "Input:borderColor-AutoComplete--error": "var(--xmlui-borderColor-AutoComplete--error)", "Input:borderWidth-AutoComplete--error": "var(--xmlui-borderWidth-AutoComplete--error)", "Input:borderStyle-AutoComplete--error": "var(--xmlui-borderStyle-AutoComplete--error)", "Input:fontSize-AutoComplete--error": "var(--xmlui-fontSize-AutoComplete--error)", "Input:backgroundColor-AutoComplete--error": "var(--xmlui-backgroundColor-AutoComplete--error)", "Input:boxShadow-AutoComplete--error": "var(--xmlui-boxShadow-AutoComplete--error)", "Input:textColor-AutoComplete--error": "var(--xmlui-textColor-AutoComplete--error)", "Input:borderColor-AutoComplete--error--hover": "var(--xmlui-borderColor-AutoComplete--error--hover)", "Input:backgroundColor-AutoComplete--error--hover": "var(--xmlui-backgroundColor-AutoComplete--error--hover)", "Input:boxShadow-AutoComplete--error--hover": "var(--xmlui-boxShadow-AutoComplete--error--hover)", "Input:textColor-AutoComplete--error--hover": "var(--xmlui-textColor-AutoComplete--error--hover)", "Input:textColor-placeholder-AutoComplete--error": "var(--xmlui-textColor-placeholder-AutoComplete--error)", "Input:fontSize-placeholder-AutoComplete--error": "var(--xmlui-fontSize-placeholder-AutoComplete--error)", "Input:borderRadius-AutoComplete--warning": "var(--xmlui-borderRadius-AutoComplete--warning)", "Input:borderColor-AutoComplete--warning": "var(--xmlui-borderColor-AutoComplete--warning)", "Input:borderWidth-AutoComplete--warning": "var(--xmlui-borderWidth-AutoComplete--warning)", "Input:borderStyle-AutoComplete--warning": "var(--xmlui-borderStyle-AutoComplete--warning)", "Input:fontSize-AutoComplete--warning": "var(--xmlui-fontSize-AutoComplete--warning)", "Input:backgroundColor-AutoComplete--warning": "var(--xmlui-backgroundColor-AutoComplete--warning)", "Input:boxShadow-AutoComplete--warning": "var(--xmlui-boxShadow-AutoComplete--warning)", "Input:textColor-AutoComplete--warning": "var(--xmlui-textColor-AutoComplete--warning)", "Input:borderColor-AutoComplete--warning--hover": "var(--xmlui-borderColor-AutoComplete--warning--hover)", "Input:backgroundColor-AutoComplete--warning--hover": "var(--xmlui-backgroundColor-AutoComplete--warning--hover)", "Input:boxShadow-AutoComplete--warning--hover": "var(--xmlui-boxShadow-AutoComplete--warning--hover)", "Input:textColor-AutoComplete--warning--hover": "var(--xmlui-textColor-AutoComplete--warning--hover)", "Input:textColor-placeholder-AutoComplete--warning": "var(--xmlui-textColor-placeholder-AutoComplete--warning)", "Input:fontSize-placeholder-AutoComplete--warning": "var(--xmlui-fontSize-placeholder-AutoComplete--warning)", "Input:borderRadius-AutoComplete--success": "var(--xmlui-borderRadius-AutoComplete--success)", "Input:borderColor-AutoComplete--success": "var(--xmlui-borderColor-AutoComplete--success)", "Input:borderWidth-AutoComplete--success": "var(--xmlui-borderWidth-AutoComplete--success)", "Input:borderStyle-AutoComplete--success": "var(--xmlui-borderStyle-AutoComplete--success)", "Input:fontSize-AutoComplete--success": "var(--xmlui-fontSize-AutoComplete--success)", "Input:backgroundColor-AutoComplete--success": "var(--xmlui-backgroundColor-AutoComplete--success)", "Input:boxShadow-AutoComplete--success": "var(--xmlui-boxShadow-AutoComplete--success)", "Input:textColor-AutoComplete--success": "var(--xmlui-textColor-AutoComplete--success)", "Input:borderColor-AutoComplete--success--hover": "var(--xmlui-borderColor-AutoComplete--success--hover)", "Input:backgroundColor-AutoComplete--success--hover": "var(--xmlui-backgroundColor-AutoComplete--success--hover)", "Input:boxShadow-AutoComplete--success--hover": "var(--xmlui-boxShadow-AutoComplete--success--hover)", "Input:textColor-AutoComplete--success--hover": "var(--xmlui-textColor-AutoComplete--success--hover)", "Input:textColor-placeholder-AutoComplete--success": "var(--xmlui-textColor-placeholder-AutoComplete--success)", "Input:fontSize-placeholder-AutoComplete--success": "var(--xmlui-fontSize-placeholder-AutoComplete--success)", "Input:gap-adornment-AutoComplete": "var(--xmlui-gap-adornment-AutoComplete)", "Input:backgroundColor-AutoComplete--disabled": "var(--xmlui-backgroundColor-AutoComplete--disabled)", "Input:textColor-AutoComplete--disabled": "var(--xmlui-textColor-AutoComplete--disabled)", "Input:borderColor-AutoComplete--disabled": "var(--xmlui-borderColor-AutoComplete--disabled)", "Input:outlineWidth-AutoComplete--focus": "var(--xmlui-outlineWidth-AutoComplete--focus)", "Input:outlineColor-AutoComplete--focus": "var(--xmlui-outlineColor-AutoComplete--focus)", "Input:outlineStyle-AutoComplete--focus": "var(--xmlui-outlineStyle-AutoComplete--focus)", "Input:outlineOffset-AutoComplete--focus": "var(--xmlui-outlineOffset-AutoComplete--focus)", "paddingVertical-AutoComplete-badge": "var(--xmlui-paddingVertical-AutoComplete-badge)", "paddingHorizontal-AutoComplete-badge": "var(--xmlui-paddingHorizontal-AutoComplete-badge)", "borderRadius-AutoComplete-badge": "var(--xmlui-borderRadius-AutoComplete-badge)", "Input:fontSize-AutoComplete-badge": "var(--xmlui-fontSize-AutoComplete-badge)", "Input:backgroundColor-AutoComplete-badge": "var(--xmlui-backgroundColor-AutoComplete-badge)", "Input:textColor-AutoComplete-badge": "var(--xmlui-textColor-AutoComplete-badge)", "Input:backgroundColor-AutoComplete-badge--hover": "var(--xmlui-backgroundColor-AutoComplete-badge--hover)", "Input:textColor-AutoComplete-badge--hover": "var(--xmlui-textColor-AutoComplete-badge--hover)", "Input:backgroundColor-AutoComplete-badge--active": "var(--xmlui-backgroundColor-AutoComplete-badge--active)", "Input:textColor-AutoComplete-badge--active": "var(--xmlui-textColor-AutoComplete-badge--active)", "Input:textColor-placeholder-AutoComplete": "var(--xmlui-textColor-placeholder-AutoComplete)", "Input:borderRadius-menu-AutoComplete": "var(--xmlui-borderRadius-menu-AutoComplete)", "Input:borderWidth-menu-AutoComplete": "var(--xmlui-borderWidth-menu-AutoComplete)", "Input:borderColor-menu-AutoComplete": "var(--xmlui-borderColor-menu-AutoComplete)", "Input:backgroundColor-menu-AutoComplete": "var(--xmlui-backgroundColor-menu-AutoComplete)", "Input:boxShadow-menu-AutoComplete": "var(--xmlui-boxShadow-menu-AutoComplete)", "backgroundColor-item-AutoComplete": "var(--xmlui-backgroundColor-item-AutoComplete)", "backgroundColor-item-AutoComplete--active": "var(--xmlui-backgroundColor-item-AutoComplete--active)", "backgroundColor-item-AutoComplete--hover": "var(--xmlui-backgroundColor-item-AutoComplete--hover)", "textColor-item-AutoComplete--disabled": "var(--xmlui-textColor-item-AutoComplete--disabled)"}'`;
|
|
23601
23577
|
const command = "_command_17r5s_14";
|
|
@@ -23996,12 +23972,11 @@ const AutoComplete = forwardRef(function AutoComplete2({
|
|
|
23996
23972
|
},
|
|
23997
23973
|
modal: false,
|
|
23998
23974
|
children: [
|
|
23999
|
-
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, ref: setReferenceElement, children: /* @__PURE__ */ jsxs(
|
|
23975
|
+
/* @__PURE__ */ jsx(Part, { partId: PART_LIST_WRAPPER, children: /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, ref: setReferenceElement, children: /* @__PURE__ */ jsxs(
|
|
24000
23976
|
"div",
|
|
24001
23977
|
{
|
|
24002
23978
|
ref: forwardedRef,
|
|
24003
23979
|
style: style2,
|
|
24004
|
-
"data-part-id": PART_LIST_WRAPPER,
|
|
24005
23980
|
className: classnames(
|
|
24006
23981
|
className,
|
|
24007
23982
|
styles$M.badgeListWrapper,
|
|
@@ -24036,7 +24011,7 @@ const AutoComplete = forwardRef(function AutoComplete2({
|
|
|
24036
24011
|
)
|
|
24037
24012
|
] }, index)) }),
|
|
24038
24013
|
/* @__PURE__ */ jsxs("div", { className: styles$M.inputWrapper, children: [
|
|
24039
|
-
/* @__PURE__ */ jsx(
|
|
24014
|
+
/* @__PURE__ */ jsx(Part, { partId: PART_INPUT, children: /* @__PURE__ */ jsx(
|
|
24040
24015
|
"input",
|
|
24041
24016
|
{
|
|
24042
24017
|
...rest,
|
|
@@ -24072,7 +24047,6 @@ const AutoComplete = forwardRef(function AutoComplete2({
|
|
|
24072
24047
|
setOpen(true);
|
|
24073
24048
|
}
|
|
24074
24049
|
},
|
|
24075
|
-
"data-part-id": PART_INPUT,
|
|
24076
24050
|
readOnly: readOnly2,
|
|
24077
24051
|
autoFocus,
|
|
24078
24052
|
"aria-autocomplete": "list",
|
|
@@ -24086,7 +24060,7 @@ const AutoComplete = forwardRef(function AutoComplete2({
|
|
|
24086
24060
|
placeholder: !readOnly2 ? placeholder2 : "",
|
|
24087
24061
|
className: styles$M.commandInput
|
|
24088
24062
|
}
|
|
24089
|
-
),
|
|
24063
|
+
) }),
|
|
24090
24064
|
/* @__PURE__ */ jsxs("div", { className: styles$M.actions, children: [
|
|
24091
24065
|
value?.length > 0 && enabled2 && !readOnly2 && /* @__PURE__ */ jsx(
|
|
24092
24066
|
"span",
|
|
@@ -24115,7 +24089,7 @@ const AutoComplete = forwardRef(function AutoComplete2({
|
|
|
24115
24089
|
] })
|
|
24116
24090
|
]
|
|
24117
24091
|
}
|
|
24118
|
-
) }),
|
|
24092
|
+
) }) }),
|
|
24119
24093
|
open && /* @__PURE__ */ jsx(Portal, { container: root2, children: /* @__PURE__ */ jsx(
|
|
24120
24094
|
PopoverContent,
|
|
24121
24095
|
{
|
|
@@ -25294,7 +25268,7 @@ const ResponsiveBarDropdown = ({
|
|
|
25294
25268
|
className,
|
|
25295
25269
|
onWillOpen,
|
|
25296
25270
|
registerComponentApi
|
|
25297
|
-
}) => /* @__PURE__ */ jsx(
|
|
25271
|
+
}) => /* @__PURE__ */ jsx(Part, { partId: PART_OVERFLOW, children: /* @__PURE__ */ jsx("div", { className, children: /* @__PURE__ */ jsx(
|
|
25298
25272
|
DropdownMenu,
|
|
25299
25273
|
{
|
|
25300
25274
|
label: dropdownText,
|
|
@@ -25306,7 +25280,7 @@ const ResponsiveBarDropdown = ({
|
|
|
25306
25280
|
registerComponentApi,
|
|
25307
25281
|
children
|
|
25308
25282
|
}
|
|
25309
|
-
) });
|
|
25283
|
+
) }) });
|
|
25310
25284
|
const defaultResponsiveBarProps = {
|
|
25311
25285
|
overflowIcon: "ellipsisHorizontal:ResponsiveBar",
|
|
25312
25286
|
dropdownText: "More options",
|
|
@@ -25903,6 +25877,11 @@ const COMP$19 = "NavLink";
|
|
|
25903
25877
|
const NavLinkMd = createMetadata({
|
|
25904
25878
|
status: "stable",
|
|
25905
25879
|
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.",
|
|
25880
|
+
parts: {
|
|
25881
|
+
indicator: {
|
|
25882
|
+
description: "The active indicator within the NavLink component."
|
|
25883
|
+
}
|
|
25884
|
+
},
|
|
25906
25885
|
props: {
|
|
25907
25886
|
to: d(`This property defines the URL of the link.`),
|
|
25908
25887
|
enabled: dEnabled(),
|
|
@@ -25992,6 +25971,11 @@ const COMP$18 = "Link";
|
|
|
25992
25971
|
const LinkMd = createMetadata({
|
|
25993
25972
|
status: "stable",
|
|
25994
25973
|
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.",
|
|
25974
|
+
parts: {
|
|
25975
|
+
icon: {
|
|
25976
|
+
description: "The icon within the Link component."
|
|
25977
|
+
}
|
|
25978
|
+
},
|
|
25995
25979
|
props: {
|
|
25996
25980
|
to: d(
|
|
25997
25981
|
"This property defines the URL of the link. If the value is not defined, the link cannot be activated."
|
|
@@ -29118,10 +29102,9 @@ const PaginationNative = forwardRef(function PaginationNative2({
|
|
|
29118
29102
|
const visiblePages = getVisiblePages();
|
|
29119
29103
|
const isFirstPage = currentPage === 0;
|
|
29120
29104
|
const isLastPage = currentPage === totalPages - 1;
|
|
29121
|
-
const buttonRow2 = /* @__PURE__ */ jsxs(
|
|
29105
|
+
const buttonRow2 = /* @__PURE__ */ jsx(Part, { partId: "pagination-controls", children: /* @__PURE__ */ jsxs(
|
|
29122
29106
|
"ul",
|
|
29123
29107
|
{
|
|
29124
|
-
"data-component": `pagination-controls`,
|
|
29125
29108
|
className: classnames(styles$C.buttonRow, {
|
|
29126
29109
|
[styles$C.paginationListVertical]: orientation === "vertical"
|
|
29127
29110
|
// layout is already horizontal by default
|
|
@@ -29231,37 +29214,30 @@ const PaginationNative = forwardRef(function PaginationNative2({
|
|
|
29231
29214
|
) })
|
|
29232
29215
|
]
|
|
29233
29216
|
}
|
|
29234
|
-
);
|
|
29235
|
-
const pageSizeSelector = showPageSizeSelector && pageSizeOptions && pageSizeOptions.length > 1 && /* @__PURE__ */ jsx(
|
|
29236
|
-
|
|
29217
|
+
) });
|
|
29218
|
+
const pageSizeSelector = showPageSizeSelector && pageSizeOptions && pageSizeOptions.length > 1 && /* @__PURE__ */ jsx(Part, { partId: "page-size-selector-container", children: /* @__PURE__ */ jsx("div", { className: classnames(styles$C.selectorContainer), children: /* @__PURE__ */ jsx(
|
|
29219
|
+
ItemWithLabel,
|
|
29237
29220
|
{
|
|
29238
|
-
|
|
29239
|
-
|
|
29221
|
+
id: `${id}-page-size-selector`,
|
|
29222
|
+
label: "Items per page",
|
|
29223
|
+
enabled: enabled2,
|
|
29224
|
+
style: style2,
|
|
29225
|
+
className,
|
|
29226
|
+
labelPosition: orientation === "vertical" ? "top" : "start",
|
|
29240
29227
|
children: /* @__PURE__ */ jsx(
|
|
29241
|
-
|
|
29228
|
+
"select",
|
|
29242
29229
|
{
|
|
29243
29230
|
id: `${id}-page-size-selector`,
|
|
29244
|
-
|
|
29245
|
-
|
|
29246
|
-
|
|
29247
|
-
className,
|
|
29248
|
-
|
|
29249
|
-
children: /* @__PURE__ */ jsx(
|
|
29250
|
-
"select",
|
|
29251
|
-
{
|
|
29252
|
-
id: `${id}-page-size-selector`,
|
|
29253
|
-
value: pageSize,
|
|
29254
|
-
onChange: (e) => handlePageSizeChange(Number(e.target.value)),
|
|
29255
|
-
disabled: !enabled2,
|
|
29256
|
-
className: styles$C.pageSizeSelect,
|
|
29257
|
-
children: pageSizeOptions.map((size) => /* @__PURE__ */ jsx("option", { value: size, children: size }, size))
|
|
29258
|
-
}
|
|
29259
|
-
)
|
|
29231
|
+
value: pageSize,
|
|
29232
|
+
onChange: (e) => handlePageSizeChange(Number(e.target.value)),
|
|
29233
|
+
disabled: !enabled2,
|
|
29234
|
+
className: styles$C.pageSizeSelect,
|
|
29235
|
+
children: pageSizeOptions.map((size) => /* @__PURE__ */ jsx("option", { value: size, children: size }, size))
|
|
29260
29236
|
}
|
|
29261
29237
|
)
|
|
29262
29238
|
}
|
|
29263
|
-
);
|
|
29264
|
-
const pageInfo = showPageInfo && /* @__PURE__ */ jsx(
|
|
29239
|
+
) }) });
|
|
29240
|
+
const pageInfo = showPageInfo && /* @__PURE__ */ jsx(Part, { partId: "page-info", children: /* @__PURE__ */ jsx("div", { className: classnames(styles$C.pageInfo), children: /* @__PURE__ */ jsxs(Text, { variant: "secondary", children: [
|
|
29265
29241
|
"Page ",
|
|
29266
29242
|
currentPageNumber,
|
|
29267
29243
|
" of ",
|
|
@@ -29269,7 +29245,7 @@ const PaginationNative = forwardRef(function PaginationNative2({
|
|
|
29269
29245
|
" (",
|
|
29270
29246
|
itemCount,
|
|
29271
29247
|
" items)"
|
|
29272
|
-
] }) });
|
|
29248
|
+
] }) }) });
|
|
29273
29249
|
return /* @__PURE__ */ jsxs(
|
|
29274
29250
|
"nav",
|
|
29275
29251
|
{
|
|
@@ -30082,6 +30058,15 @@ const COMP$12 = "Table";
|
|
|
30082
30058
|
const TableMd = createMetadata({
|
|
30083
30059
|
status: "stable",
|
|
30084
30060
|
description: "`Table` presents structured data for viewing, sorting, selection, and interaction.",
|
|
30061
|
+
// NOTE: let's leave it like this for now, we'll expand later when the need arises
|
|
30062
|
+
parts: {
|
|
30063
|
+
table: {
|
|
30064
|
+
description: "The main table container."
|
|
30065
|
+
},
|
|
30066
|
+
pagination: {
|
|
30067
|
+
description: "The pagination controls container."
|
|
30068
|
+
}
|
|
30069
|
+
},
|
|
30085
30070
|
props: {
|
|
30086
30071
|
items: dInternal(
|
|
30087
30072
|
`You can use \`items\` as an alias for the \`data\` property. When you bind the table to a data source (e.g. an API endpoint), the \`data\` acts as the property that accepts a URL to fetch information from an API. When both \`items\` and \`data\` are used, \`items\` has priority.`
|
|
@@ -31397,6 +31382,14 @@ const COMP$T = "Splitter";
|
|
|
31397
31382
|
const baseSplitterMd = createMetadata({
|
|
31398
31383
|
status: "stable",
|
|
31399
31384
|
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. When only a single child is visible (due to conditional rendering with `when` attributes), the splitter bar is not displayed and the single panel stretches to fill the entire viewport of the splitter container.",
|
|
31385
|
+
parts: {
|
|
31386
|
+
primaryPanel: {
|
|
31387
|
+
description: "The primary section/panel of the `Splitter` component."
|
|
31388
|
+
},
|
|
31389
|
+
secondaryPanel: {
|
|
31390
|
+
description: "The secondary section/panel of the `Splitter` component."
|
|
31391
|
+
}
|
|
31392
|
+
},
|
|
31400
31393
|
props: {
|
|
31401
31394
|
swapped: {
|
|
31402
31395
|
description: `This optional booelan property indicates whether the \`${COMP$T}\` sections are layed out as primary and secondary (\`false\`) or secondary and primary (\`true\`) from left to right.`,
|
|
@@ -31453,7 +31446,7 @@ const SplitterMd = {
|
|
|
31453
31446
|
const HSplitterMd = { ...baseSplitterMd, specializedFrom: COMP$T };
|
|
31454
31447
|
const VSplitterMd = { ...baseSplitterMd, specializedFrom: COMP$T };
|
|
31455
31448
|
const DEFAULT_ORIENTATION = "vertical";
|
|
31456
|
-
function
|
|
31449
|
+
function SplitterRenderer({
|
|
31457
31450
|
node,
|
|
31458
31451
|
extractValue,
|
|
31459
31452
|
className,
|
|
@@ -31469,7 +31462,7 @@ function renderSplitter({
|
|
|
31469
31462
|
const rendered = renderChild2(node.children);
|
|
31470
31463
|
return rendered ? [rendered] : [];
|
|
31471
31464
|
}
|
|
31472
|
-
return node.children.map((child
|
|
31465
|
+
return node.children.map((child) => renderChild2(child)).filter((child) => child !== null && child !== void 0).map((child, index) => React__default.cloneElement(child, { key: index }));
|
|
31473
31466
|
}, [node.children, renderChild2]);
|
|
31474
31467
|
const visibleChildCount = renderedChildren.length;
|
|
31475
31468
|
return /* @__PURE__ */ jsx(
|
|
@@ -31493,7 +31486,7 @@ const splitterComponentRenderer = createComponentRenderer(
|
|
|
31493
31486
|
COMP$T,
|
|
31494
31487
|
SplitterMd,
|
|
31495
31488
|
({ node, extractValue, renderChild: renderChild2, className, lookupEventHandler }) => {
|
|
31496
|
-
return
|
|
31489
|
+
return SplitterRenderer({
|
|
31497
31490
|
node,
|
|
31498
31491
|
extractValue,
|
|
31499
31492
|
className,
|
|
@@ -31506,7 +31499,7 @@ const vSplitterComponentRenderer = createComponentRenderer(
|
|
|
31506
31499
|
"VSplitter",
|
|
31507
31500
|
VSplitterMd,
|
|
31508
31501
|
({ node, extractValue, renderChild: renderChild2, className, lookupEventHandler }) => {
|
|
31509
|
-
return
|
|
31502
|
+
return SplitterRenderer({
|
|
31510
31503
|
node,
|
|
31511
31504
|
extractValue,
|
|
31512
31505
|
className,
|
|
@@ -31520,7 +31513,7 @@ const hSplitterComponentRenderer = createComponentRenderer(
|
|
|
31520
31513
|
"HSplitter",
|
|
31521
31514
|
HSplitterMd,
|
|
31522
31515
|
({ node, extractValue, renderChild: renderChild2, className, lookupEventHandler }) => {
|
|
31523
|
-
return
|
|
31516
|
+
return SplitterRenderer({
|
|
31524
31517
|
node,
|
|
31525
31518
|
extractValue,
|
|
31526
31519
|
className,
|
|
@@ -33402,6 +33395,12 @@ const NumberBoxMd = createMetadata({
|
|
|
33402
33395
|
},
|
|
33403
33396
|
input: {
|
|
33404
33397
|
description: "The text box input area."
|
|
33398
|
+
},
|
|
33399
|
+
spinnerButtonUp: {
|
|
33400
|
+
description: "The spinner button for incrementing the value."
|
|
33401
|
+
},
|
|
33402
|
+
spinnerButtonDown: {
|
|
33403
|
+
description: "The spinner button for decrementing the value."
|
|
33405
33404
|
}
|
|
33406
33405
|
},
|
|
33407
33406
|
props: {
|
|
@@ -33559,6 +33558,14 @@ const COMP$M = "NavPanel";
|
|
|
33559
33558
|
const NavPanelMd = createMetadata({
|
|
33560
33559
|
status: "stable",
|
|
33561
33560
|
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.",
|
|
33561
|
+
parts: {
|
|
33562
|
+
logo: {
|
|
33563
|
+
description: "The logo area within the NavPanel component."
|
|
33564
|
+
},
|
|
33565
|
+
content: {
|
|
33566
|
+
description: "The content area within the NavPanel component."
|
|
33567
|
+
}
|
|
33568
|
+
},
|
|
33562
33569
|
props: {
|
|
33563
33570
|
logoTemplate: dComponent(
|
|
33564
33571
|
`This property defines the logo template to display in the navigation panel with the \`vertical\` and \`vertical-sticky\` layout.`
|
|
@@ -33867,6 +33874,11 @@ const RGOption = `RadioGroupOption`;
|
|
|
33867
33874
|
const RadioGroupMd = createMetadata({
|
|
33868
33875
|
status: "stable",
|
|
33869
33876
|
description: "`RadioGroup` creates a mutually exclusive selection interface where users can choose only one option from a group of radio buttons. It manages the selection state and ensures that selecting one option automatically deselects all others in the group.Radio options store their values as strings. Numbers and booleans are converted to strings when assigned, while objects, functions and arrays default to an empty string unless resolved via binding expressions.",
|
|
33877
|
+
parts: {
|
|
33878
|
+
label: {
|
|
33879
|
+
description: "The label displayed for the radio group."
|
|
33880
|
+
}
|
|
33881
|
+
},
|
|
33870
33882
|
props: {
|
|
33871
33883
|
initialValue: {
|
|
33872
33884
|
...dInitialValue(),
|
|
@@ -34035,6 +34047,12 @@ const SelectMd = createMetadata({
|
|
|
34035
34047
|
parts: {
|
|
34036
34048
|
clearButton: {
|
|
34037
34049
|
description: "The button to clear the selected value(s)."
|
|
34050
|
+
},
|
|
34051
|
+
item: {
|
|
34052
|
+
description: "Each option item within the Select component."
|
|
34053
|
+
},
|
|
34054
|
+
menu: {
|
|
34055
|
+
description: "The dropdown menu within the Select component."
|
|
34038
34056
|
}
|
|
34039
34057
|
},
|
|
34040
34058
|
props: {
|
|
@@ -34483,6 +34501,11 @@ const COMP$C = "ExpandableItem";
|
|
|
34483
34501
|
const ExpandableItemMd = createMetadata({
|
|
34484
34502
|
status: "stable",
|
|
34485
34503
|
description: "`ExpandableItem` creates expandable/collapsible section, similar to the HTML details disclosure element. When the user clicks on the `summary` the content expands or collapses.",
|
|
34504
|
+
parts: {
|
|
34505
|
+
summary: {
|
|
34506
|
+
description: "The summary section that is always visible and acts as the trigger."
|
|
34507
|
+
}
|
|
34508
|
+
},
|
|
34486
34509
|
props: {
|
|
34487
34510
|
summary: dComponent("The summary content that is always visible and acts as the trigger."),
|
|
34488
34511
|
initiallyExpanded: {
|
|
@@ -36861,7 +36884,7 @@ function InputDivider({
|
|
|
36861
36884
|
const PART_DAY = "day";
|
|
36862
36885
|
const PART_MONTH = "month";
|
|
36863
36886
|
const PART_YEAR = "year";
|
|
36864
|
-
const PART_CLEAR_BUTTON
|
|
36887
|
+
const PART_CLEAR_BUTTON = "clearButton";
|
|
36865
36888
|
const MIN_YEAR = 1900;
|
|
36866
36889
|
const MAX_YEAR = 2100;
|
|
36867
36890
|
const dateFormats = [
|
|
@@ -37094,7 +37117,7 @@ const DateInput = forwardRef(function DateInputNative({
|
|
|
37094
37117
|
}
|
|
37095
37118
|
}
|
|
37096
37119
|
},
|
|
37097
|
-
[day2, month2, year2, handleChange, onInvalidChange]
|
|
37120
|
+
[day2, month2, year2, handleChange, onInvalidChange, formatDateValue]
|
|
37098
37121
|
);
|
|
37099
37122
|
const handleDayChange = useMemo(
|
|
37100
37123
|
() => createInputChangeHandler(
|
|
@@ -37399,21 +37422,17 @@ const DateInput = forwardRef(function DateInputNative({
|
|
|
37399
37422
|
startAdornment,
|
|
37400
37423
|
/* @__PURE__ */ jsxs("div", { className: styles$t.wrapper, children: [
|
|
37401
37424
|
/* @__PURE__ */ jsx("div", { className: styles$t.inputGroup, children: createDateInputs() }),
|
|
37402
|
-
clearable && /* @__PURE__ */ jsx(
|
|
37425
|
+
clearable && /* @__PURE__ */ jsx(Part, { partId: PART_CLEAR_BUTTON, children: /* @__PURE__ */ jsx(
|
|
37403
37426
|
"button",
|
|
37404
37427
|
{
|
|
37405
|
-
|
|
37406
|
-
className: classnames(
|
|
37407
|
-
styles$t.clearButton,
|
|
37408
|
-
styles$t.button
|
|
37409
|
-
),
|
|
37428
|
+
className: classnames(styles$t.clearButton, styles$t.button),
|
|
37410
37429
|
disabled: !enabled2,
|
|
37411
37430
|
onClick: clear,
|
|
37412
37431
|
onFocus: stopPropagation,
|
|
37413
37432
|
type: "button",
|
|
37414
37433
|
children: clearIconElement
|
|
37415
37434
|
}
|
|
37416
|
-
)
|
|
37435
|
+
) })
|
|
37417
37436
|
] }),
|
|
37418
37437
|
endAdornment
|
|
37419
37438
|
]
|
|
@@ -37441,10 +37460,9 @@ function DayInput({
|
|
|
37441
37460
|
}
|
|
37442
37461
|
return 31;
|
|
37443
37462
|
}, [month2, year2]);
|
|
37444
|
-
return /* @__PURE__ */ jsx(
|
|
37463
|
+
return /* @__PURE__ */ jsx(Part, { partId: PART_DAY, children: /* @__PURE__ */ jsx(
|
|
37445
37464
|
PartialInput,
|
|
37446
37465
|
{
|
|
37447
|
-
"data-part-id": PART_DAY,
|
|
37448
37466
|
id: otherProps.id,
|
|
37449
37467
|
value,
|
|
37450
37468
|
emptyCharacter,
|
|
@@ -37473,7 +37491,7 @@ function DayInput({
|
|
|
37473
37491
|
ariaLabel: otherProps.ariaLabel,
|
|
37474
37492
|
isInvalid
|
|
37475
37493
|
}
|
|
37476
|
-
);
|
|
37494
|
+
) });
|
|
37477
37495
|
}
|
|
37478
37496
|
function MonthInput({
|
|
37479
37497
|
minValue,
|
|
@@ -37484,10 +37502,9 @@ function MonthInput({
|
|
|
37484
37502
|
emptyCharacter = "-",
|
|
37485
37503
|
...otherProps
|
|
37486
37504
|
}) {
|
|
37487
|
-
return /* @__PURE__ */ jsx(
|
|
37505
|
+
return /* @__PURE__ */ jsx(Part, { partId: PART_MONTH, children: /* @__PURE__ */ jsx(
|
|
37488
37506
|
PartialInput,
|
|
37489
37507
|
{
|
|
37490
|
-
"data-part-id": PART_MONTH,
|
|
37491
37508
|
id: otherProps.id,
|
|
37492
37509
|
max: 12,
|
|
37493
37510
|
min: 1,
|
|
@@ -37516,7 +37533,7 @@ function MonthInput({
|
|
|
37516
37533
|
nextInputRef: otherProps.nextInputRef,
|
|
37517
37534
|
ariaLabel: otherProps.ariaLabel
|
|
37518
37535
|
}
|
|
37519
|
-
);
|
|
37536
|
+
) });
|
|
37520
37537
|
}
|
|
37521
37538
|
function YearInput({
|
|
37522
37539
|
minValue,
|
|
@@ -37533,10 +37550,9 @@ function YearInput({
|
|
|
37533
37550
|
const min = 1900;
|
|
37534
37551
|
const max = currentYear + 100;
|
|
37535
37552
|
const { className: originalClassName, ...restProps } = otherProps;
|
|
37536
|
-
return /* @__PURE__ */ jsx(
|
|
37553
|
+
return /* @__PURE__ */ jsx(Part, { partId: PART_YEAR, children: /* @__PURE__ */ jsx(
|
|
37537
37554
|
PartialInput,
|
|
37538
37555
|
{
|
|
37539
|
-
"data-part-id": PART_YEAR,
|
|
37540
37556
|
id: otherProps.id,
|
|
37541
37557
|
max,
|
|
37542
37558
|
min,
|
|
@@ -37557,7 +37573,7 @@ function YearInput({
|
|
|
37557
37573
|
},
|
|
37558
37574
|
...restProps
|
|
37559
37575
|
}
|
|
37560
|
-
);
|
|
37576
|
+
) });
|
|
37561
37577
|
}
|
|
37562
37578
|
function parseDateString(dateString, dateFormat) {
|
|
37563
37579
|
if (typeof dateString !== "string" || dateString === null || dateString === void 0) {
|
|
@@ -38025,11 +38041,6 @@ function safeMin(...args) {
|
|
|
38025
38041
|
function safeMax(...args) {
|
|
38026
38042
|
return Math.max(...args.filter(isValidNumber));
|
|
38027
38043
|
}
|
|
38028
|
-
const PART_HOUR = "hour";
|
|
38029
|
-
const PART_MINUTE = "minute";
|
|
38030
|
-
const PART_SECOND = "second";
|
|
38031
|
-
const PART_AMPM = "ampm";
|
|
38032
|
-
const PART_CLEAR_BUTTON = "clearButton";
|
|
38033
38044
|
const defaultProps$n = {
|
|
38034
38045
|
enabled: true,
|
|
38035
38046
|
validationStatus: "none",
|
|
@@ -38560,10 +38571,9 @@ const TimeInputNative = forwardRef(function TimeInputNative2({
|
|
|
38560
38571
|
}
|
|
38561
38572
|
)
|
|
38562
38573
|
] }),
|
|
38563
|
-
clearable && /* @__PURE__ */ jsx(
|
|
38574
|
+
clearable && /* @__PURE__ */ jsx(Part, { partId: "clearButton", children: /* @__PURE__ */ jsx(
|
|
38564
38575
|
"button",
|
|
38565
38576
|
{
|
|
38566
|
-
"data-part-id": PART_CLEAR_BUTTON,
|
|
38567
38577
|
className: classnames(styles$q.clearButton, styles$q.button),
|
|
38568
38578
|
disabled: !enabled2,
|
|
38569
38579
|
onClick: clear,
|
|
@@ -38571,7 +38581,7 @@ const TimeInputNative = forwardRef(function TimeInputNative2({
|
|
|
38571
38581
|
type: "button",
|
|
38572
38582
|
children: clearIconElement
|
|
38573
38583
|
}
|
|
38574
|
-
)
|
|
38584
|
+
) })
|
|
38575
38585
|
] }),
|
|
38576
38586
|
endAdornment
|
|
38577
38587
|
]
|
|
@@ -38614,11 +38624,10 @@ function AmPmButton({
|
|
|
38614
38624
|
},
|
|
38615
38625
|
[onKeyDown, disabled2, onAmPmSet, value, amDisabled, pmDisabled]
|
|
38616
38626
|
);
|
|
38617
|
-
return /* @__PURE__ */ jsx(
|
|
38627
|
+
return /* @__PURE__ */ jsx(Part, { partId: "ampm", children: /* @__PURE__ */ jsx(
|
|
38618
38628
|
"button",
|
|
38619
38629
|
{
|
|
38620
38630
|
type: "button",
|
|
38621
|
-
"data-part-id": PART_AMPM,
|
|
38622
38631
|
"aria-label": ariaLabel || "Toggle AM/PM (Press A for AM, P for PM)",
|
|
38623
38632
|
autoFocus,
|
|
38624
38633
|
className: classnames(styles$q.amPmButton, styles$q.button, className),
|
|
@@ -38628,7 +38637,7 @@ function AmPmButton({
|
|
|
38628
38637
|
ref: buttonRef,
|
|
38629
38638
|
children: /* @__PURE__ */ jsx("span", { className: styles$q.amPmValue, children: value ? value === "am" ? amLabel : pmLabel : "--" })
|
|
38630
38639
|
}
|
|
38631
|
-
);
|
|
38640
|
+
) });
|
|
38632
38641
|
}
|
|
38633
38642
|
function HourInput({
|
|
38634
38643
|
id,
|
|
@@ -38676,11 +38685,10 @@ function HourInput({
|
|
|
38676
38685
|
}
|
|
38677
38686
|
})();
|
|
38678
38687
|
const displayValue = value || "";
|
|
38679
|
-
return /* @__PURE__ */ jsx(
|
|
38688
|
+
return /* @__PURE__ */ jsx(Part, { partId: "hour", children: /* @__PURE__ */ jsx(
|
|
38680
38689
|
PartialInput,
|
|
38681
38690
|
{
|
|
38682
38691
|
id,
|
|
38683
|
-
"data-part-id": PART_HOUR,
|
|
38684
38692
|
value: displayValue,
|
|
38685
38693
|
emptyCharacter,
|
|
38686
38694
|
placeholderLength: 2,
|
|
@@ -38708,7 +38716,7 @@ function HourInput({
|
|
|
38708
38716
|
ariaLabel: otherProps.ariaLabel,
|
|
38709
38717
|
isInvalid
|
|
38710
38718
|
}
|
|
38711
|
-
);
|
|
38719
|
+
) });
|
|
38712
38720
|
}
|
|
38713
38721
|
function MinuteInput({
|
|
38714
38722
|
hour: hour2,
|
|
@@ -38725,10 +38733,9 @@ function MinuteInput({
|
|
|
38725
38733
|
}
|
|
38726
38734
|
const maxMinute = safeMin(59, maxTime && isSameHour(maxTime) && getMinutes(maxTime));
|
|
38727
38735
|
const minMinute = safeMax(0, minTime && isSameHour(minTime) && getMinutes(minTime));
|
|
38728
|
-
return /* @__PURE__ */ jsx(
|
|
38736
|
+
return /* @__PURE__ */ jsx(Part, { partId: "minute", children: /* @__PURE__ */ jsx(
|
|
38729
38737
|
PartialInput,
|
|
38730
38738
|
{
|
|
38731
|
-
"data-part-id": PART_MINUTE,
|
|
38732
38739
|
max: maxMinute,
|
|
38733
38740
|
min: minMinute,
|
|
38734
38741
|
name: "minute",
|
|
@@ -38756,7 +38763,7 @@ function MinuteInput({
|
|
|
38756
38763
|
ariaLabel: otherProps.ariaLabel,
|
|
38757
38764
|
isInvalid
|
|
38758
38765
|
}
|
|
38759
|
-
);
|
|
38766
|
+
) });
|
|
38760
38767
|
}
|
|
38761
38768
|
function SecondInput({
|
|
38762
38769
|
hour: hour2,
|
|
@@ -38774,10 +38781,9 @@ function SecondInput({
|
|
|
38774
38781
|
}
|
|
38775
38782
|
const maxSecond = safeMin(59, maxTime && isSameMinute(maxTime) && getSeconds(maxTime));
|
|
38776
38783
|
const minSecond = safeMax(0, minTime && isSameMinute(minTime) && getSeconds(minTime));
|
|
38777
|
-
return /* @__PURE__ */ jsx(
|
|
38784
|
+
return /* @__PURE__ */ jsx(Part, { partId: "second", children: /* @__PURE__ */ jsx(
|
|
38778
38785
|
PartialInput,
|
|
38779
38786
|
{
|
|
38780
|
-
"data-part-id": PART_SECOND,
|
|
38781
38787
|
max: maxSecond,
|
|
38782
38788
|
min: minSecond,
|
|
38783
38789
|
name: "second",
|
|
@@ -38805,7 +38811,7 @@ function SecondInput({
|
|
|
38805
38811
|
ariaLabel: otherProps.ariaLabel,
|
|
38806
38812
|
isInvalid
|
|
38807
38813
|
}
|
|
38808
|
-
);
|
|
38814
|
+
) });
|
|
38809
38815
|
}
|
|
38810
38816
|
function parseTimeString(timeValue, targetIs12Hour = false) {
|
|
38811
38817
|
if (timeValue == null || timeValue === void 0) {
|
|
@@ -40413,6 +40419,17 @@ const COMP$r = "Slider";
|
|
|
40413
40419
|
const SliderMd = createMetadata({
|
|
40414
40420
|
status: "stable",
|
|
40415
40421
|
description: "`Slider` provides an interactive control for selecting numeric values within a defined range, supporting both single value selection and range selection with multiple thumbs. It offers precise control through customizable steps and visual feedback with formatted value display.Hover over the component to see the tooltip with the current value. On mobile, tap the thumb to see the tooltip.",
|
|
40422
|
+
parts: {
|
|
40423
|
+
label: {
|
|
40424
|
+
description: "The label displayed for the slider."
|
|
40425
|
+
},
|
|
40426
|
+
track: {
|
|
40427
|
+
description: "The track element of the slider."
|
|
40428
|
+
},
|
|
40429
|
+
thumb: {
|
|
40430
|
+
description: "The thumb elements of the slider."
|
|
40431
|
+
}
|
|
40432
|
+
},
|
|
40416
40433
|
props: {
|
|
40417
40434
|
initialValue: dInitialValue(),
|
|
40418
40435
|
minValue: {
|
|
@@ -43713,7 +43730,6 @@ const ColorPicker = forwardRef(
|
|
|
43713
43730
|
[styles$h.warning]: validationStatus === "warning",
|
|
43714
43731
|
[styles$h.valid]: validationStatus === "valid"
|
|
43715
43732
|
}),
|
|
43716
|
-
"data-part-id": PART_INPUT,
|
|
43717
43733
|
style: style2,
|
|
43718
43734
|
disabled: !enabled2,
|
|
43719
43735
|
onFocus: handleOnFocus,
|
|
@@ -44443,6 +44459,14 @@ const COMP$d = "CodeBlock";
|
|
|
44443
44459
|
const CodeBlockMd = createMetadata({
|
|
44444
44460
|
status: "stable",
|
|
44445
44461
|
description: `The \`${COMP$d}\` component displays code with optional syntax highlighting and meta information.`,
|
|
44462
|
+
parts: {
|
|
44463
|
+
header: {
|
|
44464
|
+
description: "The header section of the CodeBlock, typically displaying the filename."
|
|
44465
|
+
},
|
|
44466
|
+
content: {
|
|
44467
|
+
description: "The main content area of the CodeBlock where the code is displayed."
|
|
44468
|
+
}
|
|
44469
|
+
},
|
|
44446
44470
|
props: {},
|
|
44447
44471
|
themeVars: parseScssVar(styles$I.themeVars),
|
|
44448
44472
|
defaultThemeVars: {
|
|
@@ -46382,6 +46406,17 @@ const COMP$4 = "Pagination";
|
|
|
46382
46406
|
const PaginationMd = createMetadata({
|
|
46383
46407
|
status: "experimental",
|
|
46384
46408
|
description: "`Pagination` enables navigation through large datasets by dividing content into pages. It provides controls for page navigation and can display current page information.",
|
|
46409
|
+
parts: {
|
|
46410
|
+
buttonRow: {
|
|
46411
|
+
description: "The container for pagination buttons."
|
|
46412
|
+
},
|
|
46413
|
+
pageInfo: {
|
|
46414
|
+
description: "The container for page information display."
|
|
46415
|
+
},
|
|
46416
|
+
pageSizeSelector: {
|
|
46417
|
+
description: "The container for the page size selector dropdown."
|
|
46418
|
+
}
|
|
46419
|
+
},
|
|
46385
46420
|
props: {
|
|
46386
46421
|
enabled: dEnabled(),
|
|
46387
46422
|
itemCount: d(
|
|
@@ -48248,7 +48283,7 @@ function IconProvider({ children }) {
|
|
|
48248
48283
|
/* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
|
|
48249
48284
|
] });
|
|
48250
48285
|
}
|
|
48251
|
-
const version = "0.11.
|
|
48286
|
+
const version = "0.11.16";
|
|
48252
48287
|
const miscellaneousUtils = {
|
|
48253
48288
|
capitalize,
|
|
48254
48289
|
pluralize: pluralize$1,
|
|
@@ -48526,21 +48561,21 @@ function createContainerReducer(debugView) {
|
|
|
48526
48561
|
case ContainerActionKind.EVENT_HANDLER_STARTED: {
|
|
48527
48562
|
const { eventName } = action2.payload;
|
|
48528
48563
|
const inProgressFlagName = `${eventName}InProgress`;
|
|
48529
|
-
state[uid] =
|
|
48564
|
+
state[uid] = { ...state[uid], [inProgressFlagName]: true };
|
|
48530
48565
|
storeNextValue(state[uid]);
|
|
48531
48566
|
break;
|
|
48532
48567
|
}
|
|
48533
48568
|
case ContainerActionKind.EVENT_HANDLER_COMPLETED: {
|
|
48534
48569
|
const { eventName } = action2.payload;
|
|
48535
48570
|
const inProgressFlagName = `${eventName}InProgress`;
|
|
48536
|
-
state[uid] =
|
|
48571
|
+
state[uid] = { ...state[uid], [inProgressFlagName]: false };
|
|
48537
48572
|
storeNextValue(state[uid]);
|
|
48538
48573
|
break;
|
|
48539
48574
|
}
|
|
48540
48575
|
case ContainerActionKind.EVENT_HANDLER_ERROR: {
|
|
48541
48576
|
const { eventName } = action2.payload;
|
|
48542
48577
|
const inProgressFlagName = `${eventName}InProgress`;
|
|
48543
|
-
state[uid] =
|
|
48578
|
+
state[uid] = { ...state[uid], [inProgressFlagName]: false };
|
|
48544
48579
|
storeNextValue(state[uid]);
|
|
48545
48580
|
break;
|
|
48546
48581
|
}
|
|
@@ -50761,9 +50796,7 @@ const StateContainer = memo(
|
|
|
50761
50796
|
const routingParams = useRoutingParams();
|
|
50762
50797
|
const memoedVars = useRef(/* @__PURE__ */ new Map());
|
|
50763
50798
|
const stateFromOutside = useShallowCompareMemoize(
|
|
50764
|
-
useMemo(() =>
|
|
50765
|
-
return extractScopedState(parentState, node.uses);
|
|
50766
|
-
}, [node.uses, parentState])
|
|
50799
|
+
useMemo(() => extractScopedState(parentState, node.uses), [node.uses, parentState])
|
|
50767
50800
|
);
|
|
50768
50801
|
const debugView = useDebugView();
|
|
50769
50802
|
const containerReducer = createContainerReducer(debugView);
|
|
@@ -50772,15 +50805,10 @@ const StateContainer = memo(
|
|
|
50772
50805
|
const componentStateWithApis = useShallowCompareMemoize(
|
|
50773
50806
|
useMemo(() => {
|
|
50774
50807
|
const ret = { ...componentState };
|
|
50775
|
-
const registeredApiKeys = new Set(
|
|
50776
|
-
Object.getOwnPropertySymbols(componentApis).map((s) => s.description).filter((d2) => d2 !== void 0)
|
|
50777
|
-
);
|
|
50778
50808
|
for (const stateKey of Object.getOwnPropertySymbols(componentState)) {
|
|
50779
50809
|
const value = componentState[stateKey];
|
|
50780
50810
|
if (stateKey.description) {
|
|
50781
|
-
|
|
50782
|
-
ret[stateKey.description] = value;
|
|
50783
|
-
}
|
|
50811
|
+
ret[stateKey.description] = value;
|
|
50784
50812
|
}
|
|
50785
50813
|
}
|
|
50786
50814
|
if (Reflect.ownKeys(componentApis).length === 0) {
|
|
@@ -50844,11 +50872,8 @@ const StateContainer = memo(
|
|
|
50844
50872
|
const mergedWithVars = useMergedState(resolvedLocalVars, componentStateWithApis);
|
|
50845
50873
|
const combinedState = useCombinedState(
|
|
50846
50874
|
stateFromOutside,
|
|
50847
|
-
// Parent state (lower priority) - allows local vars to shadow
|
|
50848
50875
|
node.contextVars,
|
|
50849
|
-
// Context vars like $item
|
|
50850
50876
|
mergedWithVars,
|
|
50851
|
-
// Local vars and component state (higher priority) - enables shadowing
|
|
50852
50877
|
routingParams
|
|
50853
50878
|
);
|
|
50854
50879
|
const registerComponentApi = useCallback((uid, api) => {
|
|
@@ -55898,7 +55923,7 @@ function ApiInterceptorProvider({
|
|
|
55898
55923
|
return;
|
|
55899
55924
|
}
|
|
55900
55925
|
void (async () => {
|
|
55901
|
-
const { initMock } = await import("./initMock-
|
|
55926
|
+
const { initMock } = await import("./initMock-RhX6qMsS.js");
|
|
55902
55927
|
const apiInstance2 = await initMock(interceptor);
|
|
55903
55928
|
setApiInstance(apiInstance2);
|
|
55904
55929
|
setInitialized(true);
|
|
@@ -55915,7 +55940,7 @@ function ApiInterceptorProvider({
|
|
|
55915
55940
|
if (define_process_env_default.VITE_MOCK_ENABLED) {
|
|
55916
55941
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
55917
55942
|
useWorker ? import("./apiInterceptorWorker-Wgm2_zjg.js") : Promise.resolve({ createApiInterceptorWorker: () => null }),
|
|
55918
|
-
import("./initMock-
|
|
55943
|
+
import("./initMock-RhX6qMsS.js")
|
|
55919
55944
|
]);
|
|
55920
55945
|
if (interceptor || forceInitialize) {
|
|
55921
55946
|
const apiInstance2 = await initMock(interceptor || {});
|
|
@@ -55952,7 +55977,7 @@ function ApiInterceptorProvider({
|
|
|
55952
55977
|
void (async () => {
|
|
55953
55978
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
55954
55979
|
import("./apiInterceptorWorker-Wgm2_zjg.js"),
|
|
55955
|
-
import("./initMock-
|
|
55980
|
+
import("./initMock-RhX6qMsS.js")
|
|
55956
55981
|
]);
|
|
55957
55982
|
const apiInstance2 = await initMock(interceptor);
|
|
55958
55983
|
await createApiInterceptorWorker(apiInstance2, parentInterceptorWorker);
|