xmlui 0.10.23 → 0.10.24
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-CuPvcayg.mjs → index-DoIVkz5T.mjs} +274 -75
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-BBdNO6FB.mjs → initMock-CSGEd746.mjs} +1 -1
- package/dist/lib/xmlui.mjs +1 -1
- package/dist/metadata/{collectedComponentMetadata-Cp3Ljk8F.mjs → collectedComponentMetadata-B3Hs8_cV.mjs} +274 -75
- package/dist/metadata/{initMock-Dki8247s.mjs → initMock-DQrGwkya.mjs} +1 -1
- package/dist/metadata/style.css +1 -1
- package/dist/metadata/xmlui-metadata.mjs +1 -1
- package/dist/metadata/xmlui-metadata.umd.js +3 -3
- package/dist/scripts/package.json +1 -1
- package/dist/scripts/src/components/CodeBlock/highlight-code.js +5 -32
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +4 -3
- package/dist/scripts/src/components/Markdown/utils.js +4 -3
- package/dist/scripts/src/components/NestedApp/utils.js +6 -5
- package/dist/scripts/src/components/Select/Select.spec.js +49 -0
- package/dist/scripts/src/components-core/utils/base64-utils.js +122 -0
- package/dist/scripts/src/components-core/utils/date-utils.js +12 -3
- package/dist/standalone/xmlui-standalone.umd.js +15 -15
- package/package.json +1 -1
|
@@ -15394,15 +15394,15 @@ const flowLayoutComponentRenderer = createComponentRenderer(
|
|
|
15394
15394
|
}
|
|
15395
15395
|
);
|
|
15396
15396
|
const themeVars$A = `'{"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)"}'`;
|
|
15397
|
-
const overlay$2 = "
|
|
15398
|
-
const fullScreen = "
|
|
15399
|
-
const content$5 = "
|
|
15400
|
-
const overlayBg$1 = "
|
|
15401
|
-
const nested = "
|
|
15402
|
-
const contentAnimation = "
|
|
15403
|
-
const dialogTitle = "
|
|
15404
|
-
const innerContent = "
|
|
15405
|
-
const closeButton = "
|
|
15397
|
+
const overlay$2 = "_overlay_1rhbz_14";
|
|
15398
|
+
const fullScreen = "_fullScreen_1rhbz_22";
|
|
15399
|
+
const content$5 = "_content_1rhbz_28";
|
|
15400
|
+
const overlayBg$1 = "_overlayBg_1rhbz_37";
|
|
15401
|
+
const nested = "_nested_1rhbz_44";
|
|
15402
|
+
const contentAnimation = "_contentAnimation_1rhbz_76";
|
|
15403
|
+
const dialogTitle = "_dialogTitle_1rhbz_82";
|
|
15404
|
+
const innerContent = "_innerContent_1rhbz_87";
|
|
15405
|
+
const closeButton = "_closeButton_1rhbz_112";
|
|
15406
15406
|
const styles$V = {
|
|
15407
15407
|
themeVars: themeVars$A,
|
|
15408
15408
|
overlay: overlay$2,
|
|
@@ -20557,48 +20557,48 @@ function useOption() {
|
|
|
20557
20557
|
return useContext(OptionContext);
|
|
20558
20558
|
}
|
|
20559
20559
|
const themeVars$p = `'{"border-Select": "var(--xmlui-border-Select)", "borderHorizontal-Select": "var(--xmlui-borderHorizontal-Select, var(--xmlui-border-Select))", "borderVertical-Select": "var(--xmlui-borderVertical-Select, var(--xmlui-border-Select))", "borderLeft-Select": "var(--xmlui-borderLeft-Select, var(--xmlui-borderHorizontal-Select, var(--xmlui-border-Select)))", "borderRight-Select": "var(--xmlui-borderRight-Select, var(--xmlui-borderHorizontal-Select, var(--xmlui-border-Select)))", "borderTop-Select": "var(--xmlui-borderTop-Select, var(--xmlui-borderVertical-Select, var(--xmlui-border-Select)))", "borderBottom-Select": "var(--xmlui-borderBottom-Select, var(--xmlui-borderVertical-Select, var(--xmlui-border-Select)))", "borderWidth-Select": "var(--xmlui-borderWidth-Select)", "borderHorizontalWidth-Select": "var(--xmlui-borderHorizontalWidth-Select, var(--xmlui-borderWidth-Select))", "borderLeftWidth-Select": "var(--xmlui-borderLeftWidth-Select, var(--xmlui-borderHorizontalWidth-Select, var(--xmlui-borderWidth-Select)))", "borderRightWidth-Select": "var(--xmlui-borderRightWidth-Select, var(--xmlui-borderHorizontalWidth-Select, var(--xmlui-borderWidth-Select)))", "borderVerticalWidth-Select": "var(--xmlui-borderVerticalWidth-Select, var(--xmlui-borderWidth-Select))", "borderTopWidth-Select": "var(--xmlui-borderTopWidth-Select, var(--xmlui-borderVerticalWidth-Select, var(--xmlui-borderWidth-Select)))", "borderBottomWidth-Select": "var(--xmlui-borderBottomWidth-Select, var(--xmlui-borderVerticalWidth-Select, var(--xmlui-borderWidth-Select)))", "borderStyle-Select": "var(--xmlui-borderStyle-Select)", "borderHorizontalStyle-Select": "var(--xmlui-borderHorizontalStyle-Select, var(--xmlui-borderStyle-Select))", "borderLeftStyle-Select": "var(--xmlui-borderLeftStyle-Select, var(--xmlui-borderHorizontalStyle-Select, var(--xmlui-borderStyle-Select)))", "borderRightStyle-Select": "var(--xmlui-borderRightStyle-Select, var(--xmlui-borderHorizontalStyle-Select, var(--xmlui-borderStyle-Select)))", "borderVerticalStyle-Select": "var(--xmlui-borderVerticalStyle-Select, var(--xmlui-borderStyle-Select))", "borderTopStyle-Select": "var(--xmlui-borderTopStyle-Select, var(--xmlui-borderVerticalStyle-Select, var(--xmlui-borderStyle-Select)))", "borderBottomStyle-Select": "var(--xmlui-borderBottomStyle-Select, var(--xmlui-borderVerticalStyle-Select, var(--xmlui-borderStyle-Select)))", "borderColor-Select": "var(--xmlui-borderColor-Select)", "borderHorizontalColor-Select": "var(--xmlui-borderHorizontalColor-Select, var(--xmlui-borderColor-Select))", "borderLeftColor-Select": "var(--xmlui-borderLeftColor-Select, var(--xmlui-borderHorizontalColor-Select, var(--xmlui-borderColor-Select)))", "borderRightColor-Select": "var(--xmlui-borderRightColor-Select, var(--xmlui-borderHorizontalColor-Select, var(--xmlui-borderColor-Select)))", "borderVerticalColor-Select": "var(--xmlui-borderVerticalColor-Select, var(--xmlui-borderColor-Select))", "borderTopColor-Select": "var(--xmlui-borderTopColor-Select, var(--xmlui-borderVerticalColor-Select, var(--xmlui-borderColor-Select)))", "borderBottomColor-Select": "var(--xmlui-borderBottomColor-Select, var(--xmlui-borderVerticalColor-Select, var(--xmlui-borderColor-Select)))", "borderStartStartRadius-Select": "var(--xmlui-borderStartStartRadius-Select, var(--xmlui-borderRadius-Select))", "borderStartEndRadius-Select": "var(--xmlui-borderStartEndRadius-Select, var(--xmlui-borderRadius-Select))", "borderEndStartRadius-Select": "var(--xmlui-borderEndStartRadius-Select, var(--xmlui-borderRadius-Select))", "borderEndEndRadius-Select": "var(--xmlui-borderEndEndRadius-Select, var(--xmlui-borderRadius-Select))", "padding-Select": "var(--xmlui-padding-Select)", "paddingHorizontal-Select": "var(--xmlui-paddingHorizontal-Select, var(--xmlui-padding-Select))", "paddingVertical-Select": "var(--xmlui-paddingVertical-Select, var(--xmlui-padding-Select))", "paddingLeft-Select": "var(--xmlui-paddingLeft-Select, var(--xmlui-paddingHorizontal-Select, var(--xmlui-padding-Select)))", "paddingRight-Select": "var(--xmlui-paddingRight-Select, var(--xmlui-paddingHorizontal-Select, var(--xmlui-padding-Select)))", "paddingTop-Select": "var(--xmlui-paddingTop-Select, var(--xmlui-paddingVertical-Select, var(--xmlui-padding-Select)))", "paddingBottom-Select": "var(--xmlui-paddingBottom-Select, var(--xmlui-paddingVertical-Select, var(--xmlui-padding-Select)))", "padding-item-Select": "var(--xmlui-padding-item-Select)", "paddingHorizontal-item-Select": "var(--xmlui-paddingHorizontal-item-Select, var(--xmlui-padding-item-Select))", "paddingVertical-item-Select": "var(--xmlui-paddingVertical-item-Select, var(--xmlui-padding-item-Select))", "paddingLeft-item-Select": "var(--xmlui-paddingLeft-item-Select, var(--xmlui-paddingHorizontal-item-Select, var(--xmlui-padding-item-Select)))", "paddingRight-item-Select": "var(--xmlui-paddingRight-item-Select, var(--xmlui-paddingHorizontal-item-Select, var(--xmlui-padding-item-Select)))", "paddingTop-item-Select": "var(--xmlui-paddingTop-item-Select, var(--xmlui-paddingVertical-item-Select, var(--xmlui-padding-item-Select)))", "paddingBottom-item-Select": "var(--xmlui-paddingBottom-item-Select, var(--xmlui-paddingVertical-item-Select, var(--xmlui-padding-item-Select)))", "Input:borderRadius-Select-default": "var(--xmlui-borderRadius-Select-default)", "Input:borderColor-Select-default": "var(--xmlui-borderColor-Select-default)", "Input:borderWidth-Select-default": "var(--xmlui-borderWidth-Select-default)", "Input:borderStyle-Select-default": "var(--xmlui-borderStyle-Select-default)", "Input:fontSize-Select-default": "var(--xmlui-fontSize-Select-default)", "Input:backgroundColor-Select-default": "var(--xmlui-backgroundColor-Select-default)", "Input:boxShadow-Select-default": "var(--xmlui-boxShadow-Select-default)", "Input:textColor-Select-default": "var(--xmlui-textColor-Select-default)", "Input:borderColor-Select-default--hover": "var(--xmlui-borderColor-Select-default--hover)", "Input:backgroundColor-Select-default--hover": "var(--xmlui-backgroundColor-Select-default--hover)", "Input:boxShadow-Select-default--hover": "var(--xmlui-boxShadow-Select-default--hover)", "Input:textColor-Select-default--hover": "var(--xmlui-textColor-Select-default--hover)", "Input:outlineWidth-Select-default--focus": "var(--xmlui-outlineWidth-Select-default--focus)", "Input:outlineColor-Select-default--focus": "var(--xmlui-outlineColor-Select-default--focus)", "Input:outlineStyle-Select-default--focus": "var(--xmlui-outlineStyle-Select-default--focus)", "Input:outlineOffset-Select-default--focus": "var(--xmlui-outlineOffset-Select-default--focus)", "Input:textColor-placeholder-Select-default": "var(--xmlui-textColor-placeholder-Select-default)", "Input:fontSize-placeholder-Select-default": "var(--xmlui-fontSize-placeholder-Select-default)", "Input:borderRadius-Select-error": "var(--xmlui-borderRadius-Select-error)", "Input:borderColor-Select-error": "var(--xmlui-borderColor-Select-error)", "Input:borderWidth-Select-error": "var(--xmlui-borderWidth-Select-error)", "Input:borderStyle-Select-error": "var(--xmlui-borderStyle-Select-error)", "Input:fontSize-Select-error": "var(--xmlui-fontSize-Select-error)", "Input:backgroundColor-Select-error": "var(--xmlui-backgroundColor-Select-error)", "Input:boxShadow-Select-error": "var(--xmlui-boxShadow-Select-error)", "Input:textColor-Select-error": "var(--xmlui-textColor-Select-error)", "Input:borderColor-Select-error--hover": "var(--xmlui-borderColor-Select-error--hover)", "Input:backgroundColor-Select-error--hover": "var(--xmlui-backgroundColor-Select-error--hover)", "Input:boxShadow-Select-error--hover": "var(--xmlui-boxShadow-Select-error--hover)", "Input:textColor-Select-error--hover": "var(--xmlui-textColor-Select-error--hover)", "Input:outlineWidth-Select-error--focus": "var(--xmlui-outlineWidth-Select-error--focus)", "Input:outlineColor-Select-error--focus": "var(--xmlui-outlineColor-Select-error--focus)", "Input:outlineStyle-Select-error--focus": "var(--xmlui-outlineStyle-Select-error--focus)", "Input:outlineOffset-Select-error--focus": "var(--xmlui-outlineOffset-Select-error--focus)", "Input:textColor-placeholder-Select-error": "var(--xmlui-textColor-placeholder-Select-error)", "Input:fontSize-placeholder-Select-error": "var(--xmlui-fontSize-placeholder-Select-error)", "Input:borderRadius-Select-warning": "var(--xmlui-borderRadius-Select-warning)", "Input:borderColor-Select-warning": "var(--xmlui-borderColor-Select-warning)", "Input:borderWidth-Select-warning": "var(--xmlui-borderWidth-Select-warning)", "Input:borderStyle-Select-warning": "var(--xmlui-borderStyle-Select-warning)", "Input:fontSize-Select-warning": "var(--xmlui-fontSize-Select-warning)", "Input:backgroundColor-Select-warning": "var(--xmlui-backgroundColor-Select-warning)", "Input:boxShadow-Select-warning": "var(--xmlui-boxShadow-Select-warning)", "Input:textColor-Select-warning": "var(--xmlui-textColor-Select-warning)", "Input:borderColor-Select-warning--hover": "var(--xmlui-borderColor-Select-warning--hover)", "Input:backgroundColor-Select-warning--hover": "var(--xmlui-backgroundColor-Select-warning--hover)", "Input:boxShadow-Select-warning--hover": "var(--xmlui-boxShadow-Select-warning--hover)", "Input:textColor-Select-warning--hover": "var(--xmlui-textColor-Select-warning--hover)", "Input:outlineWidth-Select-warning--focus": "var(--xmlui-outlineWidth-Select-warning--focus)", "Input:outlineColor-Select-warning--focus": "var(--xmlui-outlineColor-Select-warning--focus)", "Input:outlineStyle-Select-warning--focus": "var(--xmlui-outlineStyle-Select-warning--focus)", "Input:outlineOffset-Select-warning--focus": "var(--xmlui-outlineOffset-Select-warning--focus)", "Input:textColor-placeholder-Select-warning": "var(--xmlui-textColor-placeholder-Select-warning)", "Input:fontSize-placeholder-Select-warning": "var(--xmlui-fontSize-placeholder-Select-warning)", "Input:borderRadius-Select-success": "var(--xmlui-borderRadius-Select-success)", "Input:borderColor-Select-success": "var(--xmlui-borderColor-Select-success)", "Input:borderWidth-Select-success": "var(--xmlui-borderWidth-Select-success)", "Input:borderStyle-Select-success": "var(--xmlui-borderStyle-Select-success)", "Input:fontSize-Select-success": "var(--xmlui-fontSize-Select-success)", "Input:backgroundColor-Select-success": "var(--xmlui-backgroundColor-Select-success)", "Input:boxShadow-Select-success": "var(--xmlui-boxShadow-Select-success)", "Input:textColor-Select-success": "var(--xmlui-textColor-Select-success)", "Input:borderColor-Select-success--hover": "var(--xmlui-borderColor-Select-success--hover)", "Input:backgroundColor-Select-success--hover": "var(--xmlui-backgroundColor-Select-success--hover)", "Input:boxShadow-Select-success--hover": "var(--xmlui-boxShadow-Select-success--hover)", "Input:textColor-Select-success--hover": "var(--xmlui-textColor-Select-success--hover)", "Input:outlineWidth-Select-success--focus": "var(--xmlui-outlineWidth-Select-success--focus)", "Input:outlineColor-Select-success--focus": "var(--xmlui-outlineColor-Select-success--focus)", "Input:outlineStyle-Select-success--focus": "var(--xmlui-outlineStyle-Select-success--focus)", "Input:outlineOffset-Select-success--focus": "var(--xmlui-outlineOffset-Select-success--focus)", "Input:textColor-placeholder-Select-success": "var(--xmlui-textColor-placeholder-Select-success)", "Input:fontSize-placeholder-Select-success": "var(--xmlui-fontSize-placeholder-Select-success)", "Input:backgroundColor-Select--disabled": "var(--xmlui-backgroundColor-Select--disabled)", "Input:textColor-Select--disabled": "var(--xmlui-textColor-Select--disabled)", "Input:borderColor-Select--disabled": "var(--xmlui-borderColor-Select--disabled)", "Input:outlineWidth-Select--focus": "var(--xmlui-outlineWidth-Select--focus)", "Input:outlineColor-Select--focus": "var(--xmlui-outlineColor-Select--focus)", "Input:outlineStyle-Select--focus": "var(--xmlui-outlineStyle-Select--focus)", "Input:outlineOffset-Select--focus": "var(--xmlui-outlineOffset-Select--focus)", "Input:textColor-placeholder-Select": "var(--xmlui-textColor-placeholder-Select)", "paddingVertical-Select-badge": "var(--xmlui-paddingVertical-Select-badge)", "paddingHorizontal-Select-badge": "var(--xmlui-paddingHorizontal-Select-badge)", "borderRadius-Select-badge": "var(--xmlui-borderRadius-Select-badge)", "Input:fontSize-Select-badge": "var(--xmlui-fontSize-Select-badge)", "Input:backgroundColor-Select-badge": "var(--xmlui-backgroundColor-Select-badge)", "Input:textColor-Select-badge": "var(--xmlui-textColor-Select-badge)", "Input:backgroundColor-Select-badge--hover": "var(--xmlui-backgroundColor-Select-badge--hover)", "Input:textColor-Select-badge--hover": "var(--xmlui-textColor-Select-badge--hover)", "Input:backgroundColor-Select-badge--active": "var(--xmlui-backgroundColor-Select-badge--active)", "Input:textColor-Select-badge--active": "var(--xmlui-textColor-Select-badge--active)", "Input:backgroundColor-menu-Select": "var(--xmlui-backgroundColor-menu-Select)", "Input:borderRadius-menu-Select": "var(--xmlui-borderRadius-menu-Select)", "Input:boxShadow-menu-Select": "var(--xmlui-boxShadow-menu-Select)", "Input:borderWidth-menu-Select": "var(--xmlui-borderWidth-menu-Select)", "Input:borderColor-menu-Select": "var(--xmlui-borderColor-menu-Select)", "backgroundColor-item-Select": "var(--xmlui-backgroundColor-item-Select)", "backgroundColor-item-Select--active": "var(--xmlui-backgroundColor-item-Select--active)", "backgroundColor-item-Select--hover": "var(--xmlui-backgroundColor-item-Select--hover)", "textColor-item-Select--disabled": "var(--xmlui-textColor-item-Select--disabled)", "opacity-text-item-Select--disabled": "var(--xmlui-opacity-text-item-Select--disabled)", "textColor-indicator-Select": "var(--xmlui-textColor-indicator-Select)"}'`;
|
|
20560
|
-
const selectTrigger = "
|
|
20561
|
-
const error$9 = "
|
|
20562
|
-
const warning$a = "
|
|
20563
|
-
const valid$9 = "
|
|
20564
|
-
const disabled$7 = "
|
|
20565
|
-
const focused$1 = "
|
|
20566
|
-
const placeholder$1 = "
|
|
20567
|
-
const actions$1 = "
|
|
20568
|
-
const action$1 = "
|
|
20569
|
-
const emptyList = "
|
|
20570
|
-
const badgeListContainer = "
|
|
20571
|
-
const badgeList$1 = "
|
|
20572
|
-
const inputWrapper$1 = "
|
|
20573
|
-
const badge$1 = "
|
|
20574
|
-
const selectContent = "
|
|
20575
|
-
const command$1 = "
|
|
20576
|
-
const commandInputContainer = "
|
|
20577
|
-
const commandInput$1 = "
|
|
20578
|
-
const commandList$1 = "
|
|
20579
|
-
const multiSelectOption = "
|
|
20580
|
-
const multiSelectOptionContent = "
|
|
20581
|
-
const highlighted$1 = "
|
|
20582
|
-
const disabledOption$1 = "
|
|
20583
|
-
const selectValue = "
|
|
20584
|
-
const selectDropdownContent = "
|
|
20585
|
-
const fadeIn = "
|
|
20586
|
-
const zoomIn = "
|
|
20587
|
-
const fadeOut = "
|
|
20588
|
-
const zoomOut = "
|
|
20589
|
-
const slideInFromTop = "
|
|
20590
|
-
const slideInFromRight = "
|
|
20591
|
-
const slideInFromLeft = "
|
|
20592
|
-
const slideInFromBottom = "
|
|
20593
|
-
const selectViewport = "
|
|
20594
|
-
const selectScrollUpButton = "
|
|
20595
|
-
const selectScrollDownButton = "
|
|
20596
|
-
const selectEmpty = "
|
|
20597
|
-
const selectOption = "
|
|
20598
|
-
const selectOptionContent = "
|
|
20599
|
-
const selectOptionIndicator = "
|
|
20600
|
-
const loading = "
|
|
20601
|
-
const srOnly = "
|
|
20560
|
+
const selectTrigger = "_selectTrigger_1v71t_17";
|
|
20561
|
+
const error$9 = "_error_1v71t_54";
|
|
20562
|
+
const warning$a = "_warning_1v71t_80";
|
|
20563
|
+
const valid$9 = "_valid_1v71t_106";
|
|
20564
|
+
const disabled$7 = "_disabled_1v71t_132";
|
|
20565
|
+
const focused$1 = "_focused_1v71t_139";
|
|
20566
|
+
const placeholder$1 = "_placeholder_1v71t_145";
|
|
20567
|
+
const actions$1 = "_actions_1v71t_162";
|
|
20568
|
+
const action$1 = "_action_1v71t_162";
|
|
20569
|
+
const emptyList = "_emptyList_1v71t_173";
|
|
20570
|
+
const badgeListContainer = "_badgeListContainer_1v71t_185";
|
|
20571
|
+
const badgeList$1 = "_badgeList_1v71t_185";
|
|
20572
|
+
const inputWrapper$1 = "_inputWrapper_1v71t_198";
|
|
20573
|
+
const badge$1 = "_badge_1v71t_185";
|
|
20574
|
+
const selectContent = "_selectContent_1v71t_233";
|
|
20575
|
+
const command$1 = "_command_1v71t_241";
|
|
20576
|
+
const commandInputContainer = "_commandInputContainer_1v71t_246";
|
|
20577
|
+
const commandInput$1 = "_commandInput_1v71t_246";
|
|
20578
|
+
const commandList$1 = "_commandList_1v71t_265";
|
|
20579
|
+
const multiSelectOption = "_multiSelectOption_1v71t_272";
|
|
20580
|
+
const multiSelectOptionContent = "_multiSelectOptionContent_1v71t_286";
|
|
20581
|
+
const highlighted$1 = "_highlighted_1v71t_295";
|
|
20582
|
+
const disabledOption$1 = "_disabledOption_1v71t_301";
|
|
20583
|
+
const selectValue = "_selectValue_1v71t_316";
|
|
20584
|
+
const selectDropdownContent = "_selectDropdownContent_1v71t_331";
|
|
20585
|
+
const fadeIn = "_fadeIn_1v71t_1";
|
|
20586
|
+
const zoomIn = "_zoomIn_1v71t_1";
|
|
20587
|
+
const fadeOut = "_fadeOut_1v71t_1";
|
|
20588
|
+
const zoomOut = "_zoomOut_1v71t_1";
|
|
20589
|
+
const slideInFromTop = "_slideInFromTop_1v71t_1";
|
|
20590
|
+
const slideInFromRight = "_slideInFromRight_1v71t_1";
|
|
20591
|
+
const slideInFromLeft = "_slideInFromLeft_1v71t_1";
|
|
20592
|
+
const slideInFromBottom = "_slideInFromBottom_1v71t_1";
|
|
20593
|
+
const selectViewport = "_selectViewport_1v71t_364";
|
|
20594
|
+
const selectScrollUpButton = "_selectScrollUpButton_1v71t_368";
|
|
20595
|
+
const selectScrollDownButton = "_selectScrollDownButton_1v71t_376";
|
|
20596
|
+
const selectEmpty = "_selectEmpty_1v71t_384";
|
|
20597
|
+
const selectOption = "_selectOption_1v71t_397";
|
|
20598
|
+
const selectOptionContent = "_selectOptionContent_1v71t_420";
|
|
20599
|
+
const selectOptionIndicator = "_selectOptionIndicator_1v71t_434";
|
|
20600
|
+
const loading = "_loading_1v71t_444";
|
|
20601
|
+
const srOnly = "_srOnly_1v71t_447";
|
|
20602
20602
|
const styles$J = {
|
|
20603
20603
|
themeVars: themeVars$p,
|
|
20604
20604
|
selectTrigger,
|
|
@@ -23469,31 +23469,220 @@ const styles$A = {
|
|
|
23469
23469
|
htmlVideo,
|
|
23470
23470
|
htmlDetails
|
|
23471
23471
|
};
|
|
23472
|
-
|
|
23473
|
-
const
|
|
23474
|
-
|
|
23472
|
+
function uint8ArrayToBase64(bytes) {
|
|
23473
|
+
const base64abc = [
|
|
23474
|
+
"A",
|
|
23475
|
+
"B",
|
|
23476
|
+
"C",
|
|
23477
|
+
"D",
|
|
23478
|
+
"E",
|
|
23479
|
+
"F",
|
|
23480
|
+
"G",
|
|
23481
|
+
"H",
|
|
23482
|
+
"I",
|
|
23483
|
+
"J",
|
|
23484
|
+
"K",
|
|
23485
|
+
"L",
|
|
23486
|
+
"M",
|
|
23487
|
+
"N",
|
|
23488
|
+
"O",
|
|
23489
|
+
"P",
|
|
23490
|
+
"Q",
|
|
23491
|
+
"R",
|
|
23492
|
+
"S",
|
|
23493
|
+
"T",
|
|
23494
|
+
"U",
|
|
23495
|
+
"V",
|
|
23496
|
+
"W",
|
|
23497
|
+
"X",
|
|
23498
|
+
"Y",
|
|
23499
|
+
"Z",
|
|
23500
|
+
"a",
|
|
23501
|
+
"b",
|
|
23502
|
+
"c",
|
|
23503
|
+
"d",
|
|
23504
|
+
"e",
|
|
23505
|
+
"f",
|
|
23506
|
+
"g",
|
|
23507
|
+
"h",
|
|
23508
|
+
"i",
|
|
23509
|
+
"j",
|
|
23510
|
+
"k",
|
|
23511
|
+
"l",
|
|
23512
|
+
"m",
|
|
23513
|
+
"n",
|
|
23514
|
+
"o",
|
|
23515
|
+
"p",
|
|
23516
|
+
"q",
|
|
23517
|
+
"r",
|
|
23518
|
+
"s",
|
|
23519
|
+
"t",
|
|
23520
|
+
"u",
|
|
23521
|
+
"v",
|
|
23522
|
+
"w",
|
|
23523
|
+
"x",
|
|
23524
|
+
"y",
|
|
23525
|
+
"z",
|
|
23526
|
+
"0",
|
|
23527
|
+
"1",
|
|
23528
|
+
"2",
|
|
23529
|
+
"3",
|
|
23530
|
+
"4",
|
|
23531
|
+
"5",
|
|
23532
|
+
"6",
|
|
23533
|
+
"7",
|
|
23534
|
+
"8",
|
|
23535
|
+
"9",
|
|
23536
|
+
"+",
|
|
23537
|
+
"/"
|
|
23538
|
+
];
|
|
23539
|
+
let result = "";
|
|
23540
|
+
let i;
|
|
23541
|
+
const l = bytes.length;
|
|
23542
|
+
for (i = 2; i < l; i += 3) {
|
|
23543
|
+
result += base64abc[bytes[i - 2] >> 2];
|
|
23544
|
+
result += base64abc[(bytes[i - 2] & 3) << 4 | bytes[i - 1] >> 4];
|
|
23545
|
+
result += base64abc[(bytes[i - 1] & 15) << 2 | bytes[i] >> 6];
|
|
23546
|
+
result += base64abc[bytes[i] & 63];
|
|
23547
|
+
}
|
|
23548
|
+
if (i === l + 1) {
|
|
23549
|
+
result += base64abc[bytes[i - 2] >> 2];
|
|
23550
|
+
result += base64abc[(bytes[i - 2] & 3) << 4];
|
|
23551
|
+
result += "==";
|
|
23552
|
+
}
|
|
23553
|
+
if (i === l) {
|
|
23554
|
+
result += base64abc[bytes[i - 2] >> 2];
|
|
23555
|
+
result += base64abc[(bytes[i - 2] & 3) << 4 | bytes[i - 1] >> 4];
|
|
23556
|
+
result += base64abc[(bytes[i - 1] & 15) << 2];
|
|
23557
|
+
result += "=";
|
|
23558
|
+
}
|
|
23559
|
+
return result;
|
|
23560
|
+
}
|
|
23475
23561
|
function encodeToBase64(value) {
|
|
23476
|
-
if (
|
|
23477
|
-
return
|
|
23562
|
+
if (value === null || value === void 0) {
|
|
23563
|
+
return "";
|
|
23478
23564
|
}
|
|
23479
23565
|
const valueToString = typeof value === "object" ? JSON.stringify(value) : value.toString();
|
|
23480
23566
|
if (typeof window !== "undefined") {
|
|
23481
|
-
|
|
23567
|
+
const encoder = new TextEncoder();
|
|
23568
|
+
const data = encoder.encode(valueToString);
|
|
23569
|
+
return uint8ArrayToBase64(data);
|
|
23482
23570
|
}
|
|
23483
|
-
const buff = Buffer.from(valueToString, "
|
|
23571
|
+
const buff = Buffer.from(valueToString, "utf8");
|
|
23484
23572
|
return buff.toString("base64");
|
|
23485
23573
|
}
|
|
23574
|
+
function base64ToUint8Array(base64) {
|
|
23575
|
+
const base64abc = [
|
|
23576
|
+
"A",
|
|
23577
|
+
"B",
|
|
23578
|
+
"C",
|
|
23579
|
+
"D",
|
|
23580
|
+
"E",
|
|
23581
|
+
"F",
|
|
23582
|
+
"G",
|
|
23583
|
+
"H",
|
|
23584
|
+
"I",
|
|
23585
|
+
"J",
|
|
23586
|
+
"K",
|
|
23587
|
+
"L",
|
|
23588
|
+
"M",
|
|
23589
|
+
"N",
|
|
23590
|
+
"O",
|
|
23591
|
+
"P",
|
|
23592
|
+
"Q",
|
|
23593
|
+
"R",
|
|
23594
|
+
"S",
|
|
23595
|
+
"T",
|
|
23596
|
+
"U",
|
|
23597
|
+
"V",
|
|
23598
|
+
"W",
|
|
23599
|
+
"X",
|
|
23600
|
+
"Y",
|
|
23601
|
+
"Z",
|
|
23602
|
+
"a",
|
|
23603
|
+
"b",
|
|
23604
|
+
"c",
|
|
23605
|
+
"d",
|
|
23606
|
+
"e",
|
|
23607
|
+
"f",
|
|
23608
|
+
"g",
|
|
23609
|
+
"h",
|
|
23610
|
+
"i",
|
|
23611
|
+
"j",
|
|
23612
|
+
"k",
|
|
23613
|
+
"l",
|
|
23614
|
+
"m",
|
|
23615
|
+
"n",
|
|
23616
|
+
"o",
|
|
23617
|
+
"p",
|
|
23618
|
+
"q",
|
|
23619
|
+
"r",
|
|
23620
|
+
"s",
|
|
23621
|
+
"t",
|
|
23622
|
+
"u",
|
|
23623
|
+
"v",
|
|
23624
|
+
"w",
|
|
23625
|
+
"x",
|
|
23626
|
+
"y",
|
|
23627
|
+
"z",
|
|
23628
|
+
"0",
|
|
23629
|
+
"1",
|
|
23630
|
+
"2",
|
|
23631
|
+
"3",
|
|
23632
|
+
"4",
|
|
23633
|
+
"5",
|
|
23634
|
+
"6",
|
|
23635
|
+
"7",
|
|
23636
|
+
"8",
|
|
23637
|
+
"9",
|
|
23638
|
+
"+",
|
|
23639
|
+
"/"
|
|
23640
|
+
];
|
|
23641
|
+
const lookup = new Uint8Array(256);
|
|
23642
|
+
for (let i = 0; i < base64abc.length; i++) {
|
|
23643
|
+
lookup[base64abc[i].charCodeAt(0)] = i;
|
|
23644
|
+
}
|
|
23645
|
+
let paddingLength = 0;
|
|
23646
|
+
if (base64.endsWith("==")) {
|
|
23647
|
+
paddingLength = 2;
|
|
23648
|
+
} else if (base64.endsWith("=")) {
|
|
23649
|
+
paddingLength = 1;
|
|
23650
|
+
}
|
|
23651
|
+
const length = base64.length;
|
|
23652
|
+
const bufferLength = length * 3 / 4 - paddingLength;
|
|
23653
|
+
const bytes = new Uint8Array(bufferLength);
|
|
23654
|
+
let p = 0;
|
|
23655
|
+
for (let i = 0; i < length; i += 4) {
|
|
23656
|
+
const encoded1 = lookup[base64.charCodeAt(i)];
|
|
23657
|
+
const encoded2 = lookup[base64.charCodeAt(i + 1)];
|
|
23658
|
+
const encoded3 = lookup[base64.charCodeAt(i + 2)];
|
|
23659
|
+
const encoded4 = lookup[base64.charCodeAt(i + 3)];
|
|
23660
|
+
bytes[p++] = encoded1 << 2 | encoded2 >> 4;
|
|
23661
|
+
if (p < bufferLength) {
|
|
23662
|
+
bytes[p++] = (encoded2 & 15) << 4 | encoded3 >> 2;
|
|
23663
|
+
}
|
|
23664
|
+
if (p < bufferLength) {
|
|
23665
|
+
bytes[p++] = (encoded3 & 3) << 6 | encoded4 & 63;
|
|
23666
|
+
}
|
|
23667
|
+
}
|
|
23668
|
+
return bytes;
|
|
23669
|
+
}
|
|
23486
23670
|
function decodeFromBase64(value) {
|
|
23487
23671
|
if (!value) {
|
|
23488
23672
|
return null;
|
|
23489
23673
|
}
|
|
23490
23674
|
const valueToString = typeof value === "object" ? JSON.stringify(value) : value.toString();
|
|
23491
23675
|
if (typeof window !== "undefined") {
|
|
23492
|
-
|
|
23676
|
+
const bytes = base64ToUint8Array(valueToString);
|
|
23677
|
+
const decoder = new TextDecoder();
|
|
23678
|
+
return decoder.decode(bytes);
|
|
23493
23679
|
}
|
|
23494
23680
|
const buff = Buffer.from(valueToString, "base64");
|
|
23495
|
-
return buff.toString("
|
|
23681
|
+
return buff.toString("utf8");
|
|
23496
23682
|
}
|
|
23683
|
+
const highlightRowsClass = "codeBlockHighlightRow";
|
|
23684
|
+
const highlightSubstringsClass = "codeBlockHighlightString";
|
|
23685
|
+
const highlightSubstringsEmphasisClass = "codeBlockHighlightStringEmphasis";
|
|
23497
23686
|
function parseMetaAndHighlightCode(node, codeHighlighter, themeTone) {
|
|
23498
23687
|
const rawCodeStr = getCodeStrFromNode(node);
|
|
23499
23688
|
const rawMeta = getCodeMetaFromNode(node, CodeHighlighterMetaKeysData);
|
|
@@ -24522,7 +24711,7 @@ function ApiInterceptorProvider({
|
|
|
24522
24711
|
return;
|
|
24523
24712
|
}
|
|
24524
24713
|
void (async () => {
|
|
24525
|
-
const { initMock } = await import("./initMock-
|
|
24714
|
+
const { initMock } = await import("./initMock-CSGEd746.mjs");
|
|
24526
24715
|
const apiInstance2 = await initMock(interceptor);
|
|
24527
24716
|
setApiInstance(apiInstance2);
|
|
24528
24717
|
setInitialized(true);
|
|
@@ -24539,7 +24728,7 @@ function ApiInterceptorProvider({
|
|
|
24539
24728
|
if (process.env.VITE_MOCK_ENABLED) {
|
|
24540
24729
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
24541
24730
|
useWorker ? import("./apiInterceptorWorker-QiltRtq1.mjs") : Promise.resolve({ createApiInterceptorWorker: () => null }),
|
|
24542
|
-
import("./initMock-
|
|
24731
|
+
import("./initMock-CSGEd746.mjs")
|
|
24543
24732
|
]);
|
|
24544
24733
|
if (interceptor || forceInitialize) {
|
|
24545
24734
|
const apiInstance2 = await initMock(interceptor || {});
|
|
@@ -24576,7 +24765,7 @@ function ApiInterceptorProvider({
|
|
|
24576
24765
|
void (async () => {
|
|
24577
24766
|
const [{ createApiInterceptorWorker }, { initMock }] = await Promise.all([
|
|
24578
24767
|
import("./apiInterceptorWorker-QiltRtq1.mjs"),
|
|
24579
|
-
import("./initMock-
|
|
24768
|
+
import("./initMock-CSGEd746.mjs")
|
|
24580
24769
|
]);
|
|
24581
24770
|
const apiInstance2 = await initMock(interceptor);
|
|
24582
24771
|
await createApiInterceptorWorker(apiInstance2, parentInterceptorWorker);
|
|
@@ -25080,13 +25269,14 @@ async function compress(str) {
|
|
|
25080
25269
|
return await concatUint8Arrays(chunks);
|
|
25081
25270
|
}
|
|
25082
25271
|
async function concatUint8Arrays(uint8arrays) {
|
|
25083
|
-
const
|
|
25272
|
+
const blobParts = uint8arrays.map((u) => new Uint8Array(u).buffer);
|
|
25273
|
+
const blob = new Blob(blobParts);
|
|
25084
25274
|
const buffer = await blob.arrayBuffer();
|
|
25085
25275
|
return new Uint8Array(buffer);
|
|
25086
25276
|
}
|
|
25087
25277
|
async function createQueryString(target2) {
|
|
25088
25278
|
const compressed = await compress(target2);
|
|
25089
|
-
const base64 =
|
|
25279
|
+
const base64 = uint8ArrayToBase64(compressed);
|
|
25090
25280
|
return encodeURIComponent(base64);
|
|
25091
25281
|
}
|
|
25092
25282
|
function withoutTrailingSlash(str) {
|
|
@@ -25506,9 +25696,9 @@ const Markdown = memo(
|
|
|
25506
25696
|
},
|
|
25507
25697
|
samp({ ...props }) {
|
|
25508
25698
|
const markdownContentBase64 = props == null ? void 0 : props["data-pg-markdown"];
|
|
25509
|
-
const markdownContent2 = markdownContentBase64 ?
|
|
25699
|
+
const markdownContent2 = markdownContentBase64 ? decodeFromBase64(markdownContentBase64) : "";
|
|
25510
25700
|
const dataContentBase64 = props == null ? void 0 : props["data-pg-content"];
|
|
25511
|
-
const jsonContent =
|
|
25701
|
+
const jsonContent = decodeFromBase64(dataContentBase64);
|
|
25512
25702
|
const appProps = JSON.parse(jsonContent);
|
|
25513
25703
|
return /* @__PURE__ */ jsx(
|
|
25514
25704
|
AppWithCodeViewNative,
|
|
@@ -25536,7 +25726,7 @@ const Markdown = memo(
|
|
|
25536
25726
|
section({ children: children2, ...props }) {
|
|
25537
25727
|
const treeContentBase64 = props == null ? void 0 : props["data-tree-content"];
|
|
25538
25728
|
if (treeContentBase64 !== void 0) {
|
|
25539
|
-
const content2 =
|
|
25729
|
+
const content2 = decodeFromBase64(treeContentBase64);
|
|
25540
25730
|
return /* @__PURE__ */ jsx(TreeDisplay, { content: content2 });
|
|
25541
25731
|
}
|
|
25542
25732
|
return null;
|
|
@@ -26074,8 +26264,8 @@ function convertPlaygroundPatternToMarkdown(content2) {
|
|
|
26074
26264
|
}
|
|
26075
26265
|
}
|
|
26076
26266
|
const jsonString = JSON.stringify(pgContent);
|
|
26077
|
-
const base64ContentString =
|
|
26078
|
-
const base64MarkdownString =
|
|
26267
|
+
const base64ContentString = encodeToBase64(jsonString);
|
|
26268
|
+
const base64MarkdownString = encodeToBase64(markdownContent2);
|
|
26079
26269
|
return '<samp data-pg-content="' + base64ContentString + '" data-pg-markdown="' + base64MarkdownString + '"></samp>\n\n';
|
|
26080
26270
|
}
|
|
26081
26271
|
function observeTreeDisplay(content2) {
|
|
@@ -26108,7 +26298,7 @@ function observeTreeDisplay(content2) {
|
|
|
26108
26298
|
function convertTreeDisplayToMarkdown(content2) {
|
|
26109
26299
|
if (content2.startsWith("```xmlui-tree") && content2.endsWith("```")) {
|
|
26110
26300
|
const treeContent = content2.slice("```xmlui-tree".length, content2.indexOf("```", "```xmlui-tree".length)).trim();
|
|
26111
|
-
return `<section data-tree-content="${
|
|
26301
|
+
return `<section data-tree-content="${encodeToBase64(treeContent)}"></section>
|
|
26112
26302
|
|
|
26113
26303
|
`;
|
|
26114
26304
|
}
|
|
@@ -46470,7 +46660,7 @@ function IconProvider({ children }) {
|
|
|
46470
46660
|
/* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
|
|
46471
46661
|
] });
|
|
46472
46662
|
}
|
|
46473
|
-
const version = "0.10.
|
|
46663
|
+
const version = "0.10.24";
|
|
46474
46664
|
const miscellaneousUtils = {
|
|
46475
46665
|
capitalize,
|
|
46476
46666
|
pluralize: pluralize$1,
|
|
@@ -46482,13 +46672,22 @@ const miscellaneousUtils = {
|
|
|
46482
46672
|
function isoDateString(date) {
|
|
46483
46673
|
return (!date ? /* @__PURE__ */ new Date() : new Date(date)).toJSON();
|
|
46484
46674
|
}
|
|
46485
|
-
function formatDate(date) {
|
|
46675
|
+
function formatDate(date, formatString) {
|
|
46676
|
+
if (formatString) {
|
|
46677
|
+
return format(new Date(date), formatString);
|
|
46678
|
+
}
|
|
46486
46679
|
return new Date(date).toLocaleDateString();
|
|
46487
46680
|
}
|
|
46488
|
-
function formatDateTime(date) {
|
|
46681
|
+
function formatDateTime(date, formatString) {
|
|
46682
|
+
if (formatString) {
|
|
46683
|
+
return format(new Date(date), formatString);
|
|
46684
|
+
}
|
|
46489
46685
|
return new Date(date).toLocaleString();
|
|
46490
46686
|
}
|
|
46491
|
-
function formatTime(date) {
|
|
46687
|
+
function formatTime(date, formatString) {
|
|
46688
|
+
if (formatString) {
|
|
46689
|
+
return format(new Date(date), formatString);
|
|
46690
|
+
}
|
|
46492
46691
|
return new Date(date).toLocaleTimeString();
|
|
46493
46692
|
}
|
|
46494
46693
|
function formatTimeWithoutSeconds(date) {
|