@echolab-auto/echo-prodoc 0.1.0
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/README.md +56 -0
- package/bin/echo-prodoc.js +2 -0
- package/package.json +49 -0
- package/packages/prodoc-cli/dist/index.d.ts +10 -0
- package/packages/prodoc-cli/dist/index.d.ts.map +1 -0
- package/packages/prodoc-cli/dist/index.js +251 -0
- package/packages/prodoc-cli/dist/index.js.map +1 -0
- package/packages/prodoc-cli/dist/server.d.ts +13 -0
- package/packages/prodoc-cli/dist/server.d.ts.map +1 -0
- package/packages/prodoc-cli/package.json +39 -0
- package/packages/prodoc-core/dist/index.cjs +1 -0
- package/packages/prodoc-core/dist/index.d.ts +12 -0
- package/packages/prodoc-core/dist/index.d.ts.map +1 -0
- package/packages/prodoc-core/dist/index.js +2 -0
- package/packages/prodoc-core/package.json +30 -0
- package/packages/prodoc-editor/dist/index.cjs +1 -0
- package/packages/prodoc-editor/dist/index.css +2 -0
- package/packages/prodoc-editor/dist/index.d.ts +10 -0
- package/packages/prodoc-editor/dist/index.d.ts.map +1 -0
- package/packages/prodoc-editor/dist/index.js +3 -0
- package/packages/prodoc-editor/package.json +40 -0
- package/packages/prodoc-renderer/dist/index.cjs +1 -0
- package/packages/prodoc-renderer/dist/index.css +2 -0
- package/packages/prodoc-renderer/dist/index.d.ts +11 -0
- package/packages/prodoc-renderer/dist/index.d.ts.map +1 -0
- package/packages/prodoc-renderer/dist/index.js +3 -0
- package/packages/prodoc-renderer/package.json +38 -0
- package/scripts/build-if-needed.js +37 -0
- package/scripts/install-ui-frame.js +269 -0
- package/scripts/link-system-bin.js +82 -0
- package/scripts/publish.sh +64 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismAlert.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismAutoComplete.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismAvatar.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismBadge.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismBreadcrumb.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismButton.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismCanvas.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismCard.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismCheckbox.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismCol.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismCollapse.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismContainer.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismDatePicker.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismDivider.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismDrawer.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismDropdown.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismEmpty.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismFieldError.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismFieldLabel.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismFormItem.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismInput.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismInputNumber.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismLayout.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismList.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismMenu.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismModal.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismNavMenu.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismPagination.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismPopover.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismProgress.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismRadioGroup.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismSelect.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismSkeleton.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismSlider.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismSteps.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismSwitch.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismTable.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismTabs.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismTag.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismTextarea.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismThemeToggle.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismToastProvider.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismTooltip.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismTree.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismUpload.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismVirtualList.css +1 -0
- package/vendor/@echolab/ui-frame/dist/ThemeProvider.css +1 -0
- package/vendor/@echolab/ui-frame/dist/base.css +1 -0
- package/vendor/@echolab/ui-frame/dist/base.d.ts +1 -0
- package/vendor/@echolab/ui-frame/dist/base.js +1 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismAlert-C8gUjcJ9.js +130 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismAutoComplete-DI9cIsCr.js +255 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismAvatar-D7pr7n61.js +65 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismBadge-Br8ESUFf.js +64 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismBreadcrumb-PeUQHAqO.js +58 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismButton-CiIrdqlV.js +81 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismCanvas-CBLkbovI.js +176 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismCard-Cgy4dCPE.js +66 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismCheckbox-Bo5Q7yC_.js +114 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismCol-DwoaSc5J.js +117 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismCollapse-BLSShHjJ.js +95 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismContainer-B1g0c9Ps.js +32 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismDatePicker-TLkTC22A.js +315 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismDivider-CjDyku2C.js +56 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismDrawer-BmpGyAlZ.js +133 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismDropdown-B_cuLYvV.js +120 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismEmpty-DAsVUAXw.js +49 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismFieldError-BxamHjhs.js +20 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismFieldLabel-CBF1nZs1.js +26 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismFormItem-DjtFqfsK.js +149 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismInput-CV0AQcff.js +121 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismInputNumber-BLSDUrG2.js +119 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismLayout-C7hoaRIo.js +155 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismList-BPjiY2ok.js +106 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismMenu-xfgTqwex.js +294 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismModal-BejbU5Uw.js +139 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismNavMenu-D_aeJ9zj.js +297 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismPagination-Dj-JuN7F.js +162 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismPopover-RB48cpPq.js +197 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismProgress-jGoOJqN4.js +72 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismRadioGroup-BC-NFcXF.js +122 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismSelect-D57-kOit.js +200 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismSkeleton-CIBufbBR.js +56 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismSlider-CJGJhgAY.js +163 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismSteps-Eq8pY0Yo.js +147 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismSwitch-HSJ9_0Zq.js +76 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismTable-BEcMl0Sh.js +189 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismTabs-DhV7RpfS.js +98 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismTag-D-HO-n7l.js +83 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismTextarea-hf4f9EM1.js +126 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismThemeToggle-B-lky48G.js +144 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismToastProvider-CJvxNDwJ.js +132 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismTooltip-DEac8yVH.js +116 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismTree-C5jKWadX.js +302 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismUpload-CK8GutG5.js +584 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismVirtualList-BI322-e4.js +55 -0
- package/vendor/@echolab/ui-frame/dist/chunks/ThemeProvider-CCR_TjUs.js +30 -0
- package/vendor/@echolab/ui-frame/dist/chunks/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/vendor/@echolab/ui-frame/dist/chunks/componentRegistry-XcPWEoEL.js +48 -0
- package/vendor/@echolab/ui-frame/dist/chunks/createComponent-jnXBYqCm.js +11 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismAlert/NeumorphismAlert.d.ts +78 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismAlert/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismAlert/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismAutoComplete/NeumorphismAutoComplete.d.ts +83 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismAutoComplete/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismAutoComplete/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismAvatar/NeumorphismAvatar.d.ts +50 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismAvatar/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismAvatar/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismBadge/NeumorphismBadge.d.ts +47 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismBadge/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismBadge/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismBreadcrumb/NeumorphismBreadcrumb.d.ts +45 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismBreadcrumb/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismBreadcrumb/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismButton/NeumorphismButton.d.ts +74 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismButton/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismButton/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCanvas/NeumorphismCanvas.d.ts +85 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCanvas/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCanvas/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCard/NeumorphismCard.d.ts +83 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCard/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCard/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCheckbox/NeumorphismCheckbox.d.ts +58 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCheckbox/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCheckbox/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCollapse/NeumorphismCollapse.d.ts +59 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCollapse/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCollapse/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismContainer/NeumorphismContainer.d.ts +48 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismContainer/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismContainer/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDatePicker/NeumorphismDatePicker.d.ts +69 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDatePicker/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDatePicker/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDivider/NeumorphismDivider.d.ts +51 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDivider/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDivider/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDrawer/NeumorphismDrawer.d.ts +71 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDrawer/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDrawer/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDropdown/NeumorphismDropdown.d.ts +75 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDropdown/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDropdown/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismEmpty/NeumorphismEmpty.d.ts +41 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismEmpty/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismEmpty/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismField/NeumorphismFieldError.d.ts +17 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismField/NeumorphismFieldLabel.d.ts +19 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismField/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismField/index.js +6 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismForm/NeumorphismForm.d.ts +67 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismForm/NeumorphismFormItem.d.ts +54 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismForm/index.d.ts +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismForm/index.js +5 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismGrid/NeumorphismCol.d.ts +54 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismGrid/NeumorphismRow.d.ts +51 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismGrid/index.d.ts +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismGrid/index.js +5 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismInput/NeumorphismInput.d.ts +87 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismInput/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismInput/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismInputNumber/NeumorphismInputNumber.d.ts +85 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismInputNumber/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismInputNumber/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismLayout/NeumorphismLayout.d.ts +79 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismLayout/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismLayout/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismList/NeumorphismList.d.ts +74 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismList/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismList/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismMenu/NeumorphismMenu.d.ts +73 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismMenu/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismMenu/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismModal/NeumorphismModal.d.ts +88 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismModal/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismModal/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismNavMenu/NeumorphismNavMenu.d.ts +63 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismNavMenu/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismNavMenu/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismPagination/NeumorphismPagination.d.ts +87 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismPagination/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismPagination/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismPopover/NeumorphismPopover.d.ts +78 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismPopover/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismPopover/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismProgress/NeumorphismProgress.d.ts +53 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismProgress/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismProgress/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismRadio/NeumorphismRadio.d.ts +52 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismRadio/NeumorphismRadioGroup.d.ts +53 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismRadio/index.d.ts +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismRadio/index.js +5 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSelect/NeumorphismSelect.d.ts +96 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSelect/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSelect/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSkeleton/NeumorphismSkeleton.d.ts +38 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSkeleton/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSkeleton/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSlider/NeumorphismSlider.d.ts +76 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSlider/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSlider/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSteps/NeumorphismSteps.d.ts +69 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSteps/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSteps/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSwitch/NeumorphismSwitch.d.ts +64 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSwitch/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSwitch/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTable/NeumorphismTable.d.ts +99 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTable/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTable/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTabs/NeumorphismTabs.d.ts +71 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTabs/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTabs/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTag/NeumorphismTag.d.ts +65 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTag/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTag/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTextarea/NeumorphismTextarea.d.ts +80 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTextarea/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTextarea/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismThemeToggle/NeumorphismThemeToggle.d.ts +52 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismThemeToggle/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismThemeToggle/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismToast/NeumorphismToastProvider.d.ts +57 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismToast/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismToast/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTooltip/NeumorphismTooltip.d.ts +58 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTooltip/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTooltip/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTree/NeumorphismTree.d.ts +58 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTree/NeumorphismTreeNode.d.ts +59 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTree/index.d.ts +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTree/index.js +5 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismUpload/NeumorphismUpload.d.ts +126 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismUpload/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismUpload/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismVirtualList/NeumorphismVirtualList.d.ts +59 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismVirtualList/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismVirtualList/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/ThemeProvider/ThemeProvider.d.ts +56 -0
- package/vendor/@echolab/ui-frame/dist/components/ThemeProvider/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/ThemeProvider/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/index.d.ts +92 -0
- package/vendor/@echolab/ui-frame/dist/composables/injectionKeys.d.ts +27 -0
- package/vendor/@echolab/ui-frame/dist/composables/injectionKeys.js +6 -0
- package/vendor/@echolab/ui-frame/dist/composables/useAlert.d.ts +30 -0
- package/vendor/@echolab/ui-frame/dist/composables/useAlert.js +25 -0
- package/vendor/@echolab/ui-frame/dist/composables/useAutoComplete.d.ts +50 -0
- package/vendor/@echolab/ui-frame/dist/composables/useAutoComplete.js +118 -0
- package/vendor/@echolab/ui-frame/dist/composables/useCheckable.d.ts +17 -0
- package/vendor/@echolab/ui-frame/dist/composables/useCheckable.js +17 -0
- package/vendor/@echolab/ui-frame/dist/composables/useCollapse.d.ts +26 -0
- package/vendor/@echolab/ui-frame/dist/composables/useCollapse.js +25 -0
- package/vendor/@echolab/ui-frame/dist/composables/useConfig.d.ts +243 -0
- package/vendor/@echolab/ui-frame/dist/composables/useConfig.js +12 -0
- package/vendor/@echolab/ui-frame/dist/composables/useDatePicker.d.ts +73 -0
- package/vendor/@echolab/ui-frame/dist/composables/useDatePicker.js +118 -0
- package/vendor/@echolab/ui-frame/dist/composables/useDrawer.d.ts +34 -0
- package/vendor/@echolab/ui-frame/dist/composables/useDrawer.js +97 -0
- package/vendor/@echolab/ui-frame/dist/composables/useFormField.d.ts +24 -0
- package/vendor/@echolab/ui-frame/dist/composables/useFormField.js +34 -0
- package/vendor/@echolab/ui-frame/dist/composables/useFormValidation.d.ts +18 -0
- package/vendor/@echolab/ui-frame/dist/composables/useFormValidation.js +44 -0
- package/vendor/@echolab/ui-frame/dist/composables/useLocale.d.ts +38 -0
- package/vendor/@echolab/ui-frame/dist/composables/useLocale.js +34 -0
- package/vendor/@echolab/ui-frame/dist/composables/useMenu.d.ts +55 -0
- package/vendor/@echolab/ui-frame/dist/composables/useMenu.js +218 -0
- package/vendor/@echolab/ui-frame/dist/composables/useModal.d.ts +31 -0
- package/vendor/@echolab/ui-frame/dist/composables/useModal.js +93 -0
- package/vendor/@echolab/ui-frame/dist/composables/useNumberInput.d.ts +52 -0
- package/vendor/@echolab/ui-frame/dist/composables/useNumberInput.js +100 -0
- package/vendor/@echolab/ui-frame/dist/composables/usePagination.d.ts +37 -0
- package/vendor/@echolab/ui-frame/dist/composables/usePagination.js +40 -0
- package/vendor/@echolab/ui-frame/dist/composables/usePopover.d.ts +38 -0
- package/vendor/@echolab/ui-frame/dist/composables/usePopover.js +54 -0
- package/vendor/@echolab/ui-frame/dist/composables/useSelect.d.ts +30 -0
- package/vendor/@echolab/ui-frame/dist/composables/useSelect.js +76 -0
- package/vendor/@echolab/ui-frame/dist/composables/useSlider.d.ts +39 -0
- package/vendor/@echolab/ui-frame/dist/composables/useSlider.js +79 -0
- package/vendor/@echolab/ui-frame/dist/composables/useSteps.d.ts +54 -0
- package/vendor/@echolab/ui-frame/dist/composables/useSteps.js +26 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTable.d.ts +78 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTable.js +103 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTabs.d.ts +33 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTabs.js +43 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTheme.d.ts +40 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTheme.js +81 -0
- package/vendor/@echolab/ui-frame/dist/composables/useToast.d.ts +44 -0
- package/vendor/@echolab/ui-frame/dist/composables/useToast.js +57 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTooltip.d.ts +29 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTooltip.js +27 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTouchDevice.d.ts +7 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTouchDevice.js +25 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTree.d.ts +50 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTree.js +219 -0
- package/vendor/@echolab/ui-frame/dist/composables/useUpload.d.ts +81 -0
- package/vendor/@echolab/ui-frame/dist/composables/useUpload.js +169 -0
- package/vendor/@echolab/ui-frame/dist/composables/useVirtualList.d.ts +59 -0
- package/vendor/@echolab/ui-frame/dist/composables/useVirtualList.js +107 -0
- package/vendor/@echolab/ui-frame/dist/doc/DocEditor.d.ts +41 -0
- package/vendor/@echolab/ui-frame/dist/doc/DocViewer.d.ts +39 -0
- package/vendor/@echolab/ui-frame/dist/doc/MarkdownEditor.d.ts +37 -0
- package/vendor/@echolab/ui-frame/dist/doc/MarkdownRenderer.d.ts +42 -0
- package/vendor/@echolab/ui-frame/dist/doc/doc-tree.d.ts +8 -0
- package/vendor/@echolab/ui-frame/dist/doc/index.d.ts +27 -0
- package/vendor/@echolab/ui-frame/dist/doc/index.js +1055 -0
- package/vendor/@echolab/ui-frame/dist/doc/parser.d.ts +15 -0
- package/vendor/@echolab/ui-frame/dist/doc/tree-utils.d.ts +22 -0
- package/vendor/@echolab/ui-frame/dist/doc/types.d.ts +42 -0
- package/vendor/@echolab/ui-frame/dist/doc/useDocLayout.d.ts +38 -0
- package/vendor/@echolab/ui-frame/dist/extensions/componentRegistry.d.ts +39 -0
- package/vendor/@echolab/ui-frame/dist/extensions/createComponent.d.ts +43 -0
- package/vendor/@echolab/ui-frame/dist/extensions/index.d.ts +4 -0
- package/vendor/@echolab/ui-frame/dist/extensions/index.js +6 -0
- package/vendor/@echolab/ui-frame/dist/extensions/types.d.ts +56 -0
- package/vendor/@echolab/ui-frame/dist/index.css +1 -0
- package/vendor/@echolab/ui-frame/dist/index.d.ts +80 -0
- package/vendor/@echolab/ui-frame/dist/locales/en-US.d.ts +3 -0
- package/vendor/@echolab/ui-frame/dist/locales/index.d.ts +3 -0
- package/vendor/@echolab/ui-frame/dist/locales/index.js +171 -0
- package/vendor/@echolab/ui-frame/dist/locales/types.d.ts +89 -0
- package/vendor/@echolab/ui-frame/dist/locales/zh-CN.d.ts +3 -0
- package/vendor/@echolab/ui-frame/dist/style.css +1 -0
- package/vendor/@echolab/ui-frame/dist/styles/base.d.ts +1 -0
- package/vendor/@echolab/ui-frame/dist/styles/tokens.d.ts +1 -0
- package/vendor/@echolab/ui-frame/dist/tokens.css +1 -0
- package/vendor/@echolab/ui-frame/dist/tokens.d.ts +1 -0
- package/vendor/@echolab/ui-frame/dist/tokens.js +1 -0
- package/vendor/@echolab/ui-frame/dist/ui-frame.css +1 -0
- package/vendor/@echolab/ui-frame/dist/ui-frame.d.ts +3 -0
- package/vendor/@echolab/ui-frame/dist/ui-frame.js +247 -0
- package/vendor/@echolab/ui-frame/dist/ui-frame.umd.cjs +3 -0
- package/vendor/@echolab/ui-frame/dist/utils/index.d.ts +14 -0
- package/vendor/@echolab/ui-frame/dist/utils/index.js +20 -0
- package/vendor/@echolab/ui-frame/package.json +131 -0
- package/vendor/fsevents-stub/index.d.ts +2 -0
- package/vendor/fsevents-stub/index.js +3 -0
- package/vendor/fsevents-stub/package.json +8 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const f = {
|
|
2
|
+
formRequired: "必填字段",
|
|
3
|
+
formMinLength: "最少 {min} 个字符",
|
|
4
|
+
formMaxLength: "最多 {max} 个字符",
|
|
5
|
+
formPattern: "格式不正确",
|
|
6
|
+
formMin: "不能小于 {min}",
|
|
7
|
+
formMax: "不能大于 {max}",
|
|
8
|
+
formValidator: "验证失败"
|
|
9
|
+
};
|
|
10
|
+
function o(r, m) {
|
|
11
|
+
return m ? r.replace(/\{(\w+)\}/g, (e, t) => String(m[t] ?? `{${t}}`)) : r;
|
|
12
|
+
}
|
|
13
|
+
function g(r, m, e) {
|
|
14
|
+
const t = (n, i) => o((e == null ? void 0 : e[n]) ?? f[n], i);
|
|
15
|
+
for (const n of m) {
|
|
16
|
+
if (n.required && (r == null || r === ""))
|
|
17
|
+
return n.message || t("formRequired");
|
|
18
|
+
if (!(r == null || r === "")) {
|
|
19
|
+
if (typeof r == "string") {
|
|
20
|
+
if (n.minLength && r.length < n.minLength)
|
|
21
|
+
return n.message || t("formMinLength", { min: n.minLength });
|
|
22
|
+
if (n.maxLength && r.length > n.maxLength)
|
|
23
|
+
return n.message || t("formMaxLength", { max: n.maxLength });
|
|
24
|
+
if (n.pattern && !n.pattern.test(r))
|
|
25
|
+
return n.message || t("formPattern");
|
|
26
|
+
}
|
|
27
|
+
if (typeof r == "number") {
|
|
28
|
+
if (n.min !== void 0 && r < n.min)
|
|
29
|
+
return n.message || t("formMin", { min: n.min });
|
|
30
|
+
if (n.max !== void 0 && r > n.max)
|
|
31
|
+
return n.message || t("formMax", { max: n.max });
|
|
32
|
+
}
|
|
33
|
+
if (n.validator) {
|
|
34
|
+
const i = n.validator(r);
|
|
35
|
+
if (typeof i == "string") return i;
|
|
36
|
+
if (i === !1) return n.message || t("formValidator");
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return "";
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
g as validateFieldValue
|
|
44
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ComputedRef, InjectionKey } from 'vue';
|
|
2
|
+
import { LocaleMessages, Locale } from '../locales/types';
|
|
3
|
+
|
|
4
|
+
declare const LocaleKey: InjectionKey<ComputedRef<LocaleMessages>>;
|
|
5
|
+
/**
|
|
6
|
+
* Returns the active locale messages.
|
|
7
|
+
*
|
|
8
|
+
* Priority:
|
|
9
|
+
* 1. Explicitly provided locale via `provideLocale()`
|
|
10
|
+
* 2. Default zh-CN
|
|
11
|
+
*
|
|
12
|
+
* Use `t('key')` for messages with interpolation:
|
|
13
|
+
* t('badgeUnread', { count: 5 }) // '未读 5'
|
|
14
|
+
*
|
|
15
|
+
* Or access directly:
|
|
16
|
+
* locale.badgeOnline // '在线'
|
|
17
|
+
*/
|
|
18
|
+
export declare function useLocale(): {
|
|
19
|
+
locale: ComputedRef<LocaleMessages>;
|
|
20
|
+
t: (key: keyof LocaleMessages, params?: Record<string, string | number>) => string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Provide a custom locale to all child components.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* import { provideLocale } from '@echolab/ui-frame'
|
|
28
|
+
* import { zhCN } from '@echolab/ui-frame/locales'
|
|
29
|
+
*
|
|
30
|
+
* provideLocale(zhCN)
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare function provideLocale(messages: LocaleMessages): void;
|
|
34
|
+
/**
|
|
35
|
+
* Get locale messages by locale code.
|
|
36
|
+
*/
|
|
37
|
+
export declare function getLocaleMessages(locale: Locale): LocaleMessages;
|
|
38
|
+
export { LocaleKey };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { inject as l, computed as r, provide as f } from "vue";
|
|
2
|
+
import { zhCN as c, enUS as L } from "../locales/index.js";
|
|
3
|
+
const p = {
|
|
4
|
+
"zh-CN": c,
|
|
5
|
+
"en-US": L
|
|
6
|
+
}, i = Symbol("nm-locale"), u = c;
|
|
7
|
+
function a(n, o) {
|
|
8
|
+
return n ? o ? n.replace(/\{(\w+)\}/g, (e, t) => String(o[t] ?? `{${t}}`)) : n : "";
|
|
9
|
+
}
|
|
10
|
+
function C() {
|
|
11
|
+
const n = l(
|
|
12
|
+
i,
|
|
13
|
+
r(() => u)
|
|
14
|
+
);
|
|
15
|
+
function o(e, t) {
|
|
16
|
+
return a(n.value[e], t);
|
|
17
|
+
}
|
|
18
|
+
return { locale: n, t: o };
|
|
19
|
+
}
|
|
20
|
+
function S(n) {
|
|
21
|
+
f(
|
|
22
|
+
i,
|
|
23
|
+
r(() => n)
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
function d(n) {
|
|
27
|
+
return p[n] ?? u;
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
i as LocaleKey,
|
|
31
|
+
d as getLocaleMessages,
|
|
32
|
+
S as provideLocale,
|
|
33
|
+
C as useLocale
|
|
34
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Ref, ComputedRef } from 'vue';
|
|
2
|
+
|
|
3
|
+
export interface MenuItem {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
children?: MenuItem[];
|
|
9
|
+
divided?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface UseMenuOptions {
|
|
12
|
+
/** Flat or nested menu items */
|
|
13
|
+
items: Ref<MenuItem[]> | ComputedRef<MenuItem[]>;
|
|
14
|
+
/** Layout direction */
|
|
15
|
+
mode?: Ref<'vertical' | 'horizontal'>;
|
|
16
|
+
/** Initial active key (controlled: pass a Ref) */
|
|
17
|
+
activeKey?: Ref<string | null>;
|
|
18
|
+
/** Initial expanded submenu keys (controlled: pass a Ref) */
|
|
19
|
+
expandedKeys?: Ref<string[]>;
|
|
20
|
+
/** Called when an item is selected */
|
|
21
|
+
onSelect?: (item: MenuItem) => void;
|
|
22
|
+
/** Whether the menu is disabled entirely */
|
|
23
|
+
disabled?: Ref<boolean>;
|
|
24
|
+
}
|
|
25
|
+
export interface UseMenuReturn {
|
|
26
|
+
/** Currently active (focused/highlighted) key */
|
|
27
|
+
activeKey: Ref<string | null>;
|
|
28
|
+
/** Currently expanded submenu keys */
|
|
29
|
+
expandedKeys: Ref<string[]>;
|
|
30
|
+
/** All leaf keys in the menu tree */
|
|
31
|
+
allKeys: ComputedRef<string[]>;
|
|
32
|
+
/** Handle keyboard events */
|
|
33
|
+
handleKeydown: (event: KeyboardEvent) => void;
|
|
34
|
+
/** Handle item click */
|
|
35
|
+
handleItemClick: (item: MenuItem) => void;
|
|
36
|
+
/** Handle item hover/focus (used in horizontal mode) */
|
|
37
|
+
handleItemEnter: (item: MenuItem) => void;
|
|
38
|
+
/** Handle item leave (used in horizontal mode for submenus) */
|
|
39
|
+
handleItemLeave: (item: MenuItem) => void;
|
|
40
|
+
/** Check if a key is currently expanded */
|
|
41
|
+
isExpanded: (key: string) => boolean;
|
|
42
|
+
/** Check if a key is the active one */
|
|
43
|
+
isActive: (key: string) => boolean;
|
|
44
|
+
/** Expand a submenu */
|
|
45
|
+
expand: (key: string) => void;
|
|
46
|
+
/** Collapse a submenu */
|
|
47
|
+
collapse: (key: string) => void;
|
|
48
|
+
/** Toggle a submenu */
|
|
49
|
+
toggleExpand: (key: string) => void;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Headless menu — encapsulates active-item tracking, keyboard navigation,
|
|
53
|
+
* submenu expansion, typeahead search, and mode-aware arrow key behaviour.
|
|
54
|
+
*/
|
|
55
|
+
export declare function useMenu(opts: UseMenuOptions): UseMenuReturn;
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { ref as p, watch as g, nextTick as b, computed as x } from "vue";
|
|
2
|
+
function C(a, u, t = []) {
|
|
3
|
+
var r;
|
|
4
|
+
for (const i of a)
|
|
5
|
+
t.push(i), (r = i.children) != null && r.length && u.includes(i.key) && C(i.children, u, t);
|
|
6
|
+
return t;
|
|
7
|
+
}
|
|
8
|
+
function J(a) {
|
|
9
|
+
const u = [];
|
|
10
|
+
function t(r) {
|
|
11
|
+
var i;
|
|
12
|
+
for (const n of r)
|
|
13
|
+
u.push(n.key), (i = n.children) != null && i.length && t(n.children);
|
|
14
|
+
}
|
|
15
|
+
return t(a), u;
|
|
16
|
+
}
|
|
17
|
+
function K(a, u) {
|
|
18
|
+
var t;
|
|
19
|
+
for (const r of a) {
|
|
20
|
+
if (r.key === u) return r;
|
|
21
|
+
if ((t = r.children) != null && t.length) {
|
|
22
|
+
const i = K(r.children, u);
|
|
23
|
+
if (i) return i;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
function M(a, u = null, t = /* @__PURE__ */ new Map()) {
|
|
29
|
+
var r;
|
|
30
|
+
for (const i of a)
|
|
31
|
+
t.set(i.key, u), (r = i.children) != null && r.length && M(i.children, i.key, t);
|
|
32
|
+
return t;
|
|
33
|
+
}
|
|
34
|
+
function z(a, u) {
|
|
35
|
+
if (a.length !== u.length) return !1;
|
|
36
|
+
for (let t = 0; t < a.length; t++)
|
|
37
|
+
if (a[t] !== u[t]) return !1;
|
|
38
|
+
return !0;
|
|
39
|
+
}
|
|
40
|
+
function X(a) {
|
|
41
|
+
const { items: u, onSelect: t } = a, r = a.mode ?? p("vertical"), i = a.disabled ?? p(!1), n = p(null), f = p([]);
|
|
42
|
+
let o = !1;
|
|
43
|
+
a.activeKey && (g(
|
|
44
|
+
() => a.activeKey.value,
|
|
45
|
+
(e) => {
|
|
46
|
+
o || n.value !== e && (o = !0, n.value = e, b(() => {
|
|
47
|
+
o = !1;
|
|
48
|
+
}));
|
|
49
|
+
},
|
|
50
|
+
{ immediate: !0 }
|
|
51
|
+
), g(
|
|
52
|
+
() => n.value,
|
|
53
|
+
(e) => {
|
|
54
|
+
o || a.activeKey.value !== e && (o = !0, a.activeKey.value = e, b(() => {
|
|
55
|
+
o = !1;
|
|
56
|
+
}));
|
|
57
|
+
}
|
|
58
|
+
));
|
|
59
|
+
let d = !1;
|
|
60
|
+
a.expandedKeys && (g(
|
|
61
|
+
() => a.expandedKeys.value,
|
|
62
|
+
(e) => {
|
|
63
|
+
d || z(f.value, e) || (d = !0, f.value = [...e], b(() => {
|
|
64
|
+
d = !1;
|
|
65
|
+
}));
|
|
66
|
+
},
|
|
67
|
+
{ immediate: !0, deep: !0 }
|
|
68
|
+
), g(
|
|
69
|
+
() => f.value,
|
|
70
|
+
(e) => {
|
|
71
|
+
d || z(a.expandedKeys.value, e) || (d = !0, a.expandedKeys.value = [...e], b(() => {
|
|
72
|
+
d = !1;
|
|
73
|
+
}));
|
|
74
|
+
},
|
|
75
|
+
{ deep: !0 }
|
|
76
|
+
));
|
|
77
|
+
const N = x(() => J(u.value)), F = x(() => C(u.value, f.value)), V = x(() => M(u.value)), v = x(() => F.value.filter((e) => !e.disabled));
|
|
78
|
+
function y(e) {
|
|
79
|
+
return f.value.includes(e);
|
|
80
|
+
}
|
|
81
|
+
function H(e) {
|
|
82
|
+
return n.value === e;
|
|
83
|
+
}
|
|
84
|
+
function k(e) {
|
|
85
|
+
f.value.includes(e) || f.value.push(e);
|
|
86
|
+
}
|
|
87
|
+
function w(e) {
|
|
88
|
+
const l = f.value.indexOf(e);
|
|
89
|
+
l !== -1 && f.value.splice(l, 1);
|
|
90
|
+
}
|
|
91
|
+
function D(e) {
|
|
92
|
+
y(e) ? w(e) : k(e);
|
|
93
|
+
}
|
|
94
|
+
function O(e) {
|
|
95
|
+
var l;
|
|
96
|
+
i.value || e.disabled || ((l = e.children) != null && l.length ? D(e.key) : (n.value = e.key, t == null || t(e)));
|
|
97
|
+
}
|
|
98
|
+
function _(e) {
|
|
99
|
+
var l;
|
|
100
|
+
i.value || e.disabled || (r.value === "horizontal" && ((l = e.children) != null && l.length) && k(e.key), n.value = e.key);
|
|
101
|
+
}
|
|
102
|
+
function q(e) {
|
|
103
|
+
var l;
|
|
104
|
+
i.value || e.disabled || r.value === "horizontal" && ((l = e.children) != null && l.length);
|
|
105
|
+
}
|
|
106
|
+
let m = "", A = null;
|
|
107
|
+
function B(e) {
|
|
108
|
+
m += e.toLowerCase(), A && clearTimeout(A), A = setTimeout(() => {
|
|
109
|
+
m = "";
|
|
110
|
+
}, 500);
|
|
111
|
+
const l = v.value, c = n.value ? l.findIndex((E) => E.key === n.value) + 1 : 0, s = [...l.slice(c), ...l.slice(0, c)].find((E) => E.label.toLowerCase().startsWith(m));
|
|
112
|
+
s && (n.value = s.key);
|
|
113
|
+
}
|
|
114
|
+
function I() {
|
|
115
|
+
const e = v.value;
|
|
116
|
+
if (!e.length) return;
|
|
117
|
+
if (!n.value) {
|
|
118
|
+
n.value = e[0].key;
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
const l = e.findIndex((c) => c.key === n.value);
|
|
122
|
+
l >= 0 && l < e.length - 1 ? n.value = e[l + 1].key : n.value = e[0].key;
|
|
123
|
+
}
|
|
124
|
+
function L() {
|
|
125
|
+
const e = v.value;
|
|
126
|
+
if (!e.length) return;
|
|
127
|
+
if (!n.value) {
|
|
128
|
+
n.value = e[e.length - 1].key;
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
const l = e.findIndex((c) => c.key === n.value);
|
|
132
|
+
l > 0 ? n.value = e[l - 1].key : n.value = e[e.length - 1].key;
|
|
133
|
+
}
|
|
134
|
+
function R() {
|
|
135
|
+
const e = v.value;
|
|
136
|
+
e.length && (n.value = e[0].key);
|
|
137
|
+
}
|
|
138
|
+
function U() {
|
|
139
|
+
const e = v.value;
|
|
140
|
+
e.length && (n.value = e[e.length - 1].key);
|
|
141
|
+
}
|
|
142
|
+
function W() {
|
|
143
|
+
if (!n.value) return;
|
|
144
|
+
const e = V.value.get(n.value);
|
|
145
|
+
e && (n.value = e);
|
|
146
|
+
}
|
|
147
|
+
function P() {
|
|
148
|
+
var l;
|
|
149
|
+
if (!n.value) return;
|
|
150
|
+
const e = K(u.value, n.value);
|
|
151
|
+
(l = e == null ? void 0 : e.children) != null && l.length && (y(e.key) || k(e.key), n.value = e.children[0].key);
|
|
152
|
+
}
|
|
153
|
+
function T() {
|
|
154
|
+
var l;
|
|
155
|
+
if (!n.value) return;
|
|
156
|
+
const e = K(u.value, n.value);
|
|
157
|
+
(l = e == null ? void 0 : e.children) != null && l.length && y(e.key) ? w(e.key) : W();
|
|
158
|
+
}
|
|
159
|
+
function j() {
|
|
160
|
+
var l;
|
|
161
|
+
if (!n.value) return;
|
|
162
|
+
const e = K(u.value, n.value);
|
|
163
|
+
!e || e.disabled || ((l = e.children) != null && l.length ? D(e.key) : t == null || t(e));
|
|
164
|
+
}
|
|
165
|
+
function G(e) {
|
|
166
|
+
if (i.value) return;
|
|
167
|
+
const l = e.key;
|
|
168
|
+
if (l.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey) {
|
|
169
|
+
B(l), e.preventDefault();
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
const h = r.value === "vertical", s = r.value === "horizontal";
|
|
173
|
+
switch (l) {
|
|
174
|
+
case "ArrowDown":
|
|
175
|
+
h ? I() : s && P(), e.preventDefault();
|
|
176
|
+
break;
|
|
177
|
+
case "ArrowUp":
|
|
178
|
+
h ? L() : s && T(), e.preventDefault();
|
|
179
|
+
break;
|
|
180
|
+
case "ArrowRight":
|
|
181
|
+
h ? P() : s && I(), e.preventDefault();
|
|
182
|
+
break;
|
|
183
|
+
case "ArrowLeft":
|
|
184
|
+
h ? T() : s && L(), e.preventDefault();
|
|
185
|
+
break;
|
|
186
|
+
case "Enter":
|
|
187
|
+
case " ":
|
|
188
|
+
j(), e.preventDefault();
|
|
189
|
+
break;
|
|
190
|
+
case "Escape":
|
|
191
|
+
f.value = [], n.value = null, e.preventDefault();
|
|
192
|
+
break;
|
|
193
|
+
case "Home":
|
|
194
|
+
R(), e.preventDefault();
|
|
195
|
+
break;
|
|
196
|
+
case "End":
|
|
197
|
+
U(), e.preventDefault();
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return {
|
|
202
|
+
activeKey: n,
|
|
203
|
+
expandedKeys: f,
|
|
204
|
+
allKeys: N,
|
|
205
|
+
handleKeydown: G,
|
|
206
|
+
handleItemClick: O,
|
|
207
|
+
handleItemEnter: _,
|
|
208
|
+
handleItemLeave: q,
|
|
209
|
+
isExpanded: y,
|
|
210
|
+
isActive: H,
|
|
211
|
+
expand: k,
|
|
212
|
+
collapse: w,
|
|
213
|
+
toggleExpand: D
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
export {
|
|
217
|
+
X as useMenu
|
|
218
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
|
|
3
|
+
export interface UseModalOptions {
|
|
4
|
+
/** v-model visibility */
|
|
5
|
+
modelValue: Ref<boolean>;
|
|
6
|
+
/** Whether clicking the mask closes the modal */
|
|
7
|
+
maskClosable?: Ref<boolean>;
|
|
8
|
+
/** Whether the modal can be closed */
|
|
9
|
+
closable?: Ref<boolean>;
|
|
10
|
+
/** Whether to destroy DOM when closed */
|
|
11
|
+
destroyOnClose?: Ref<boolean>;
|
|
12
|
+
}
|
|
13
|
+
export interface UseModalReturn {
|
|
14
|
+
/** Whether the modal is currently visible (for transitions) */
|
|
15
|
+
visible: Ref<boolean>;
|
|
16
|
+
/** Whether the modal DOM should be rendered */
|
|
17
|
+
rendered: Ref<boolean>;
|
|
18
|
+
/** Close the modal */
|
|
19
|
+
close: () => void;
|
|
20
|
+
/** Confirm action */
|
|
21
|
+
confirm: () => void;
|
|
22
|
+
/** Handle keydown for Escape and focus trap */
|
|
23
|
+
handleKeydown: (event: KeyboardEvent, dialogEl: HTMLElement | undefined) => void;
|
|
24
|
+
/** Focus the first focusable element inside the dialog (call after dialog mounts) */
|
|
25
|
+
focusDialog: (dialogEl: HTMLElement | undefined) => void;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Headless modal — encapsulates open/close, body scroll lock, focus
|
|
29
|
+
* trap, and Escape handling. Use with your own UI rendering.
|
|
30
|
+
*/
|
|
31
|
+
export declare function useModal(opts: UseModalOptions): UseModalReturn;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { ref as c, watch as C, nextTick as h, onMounted as M, onBeforeUnmount as W } from "vue";
|
|
2
|
+
const d = /* @__PURE__ */ new WeakMap();
|
|
3
|
+
function p(o) {
|
|
4
|
+
return d.get(o) ?? 0;
|
|
5
|
+
}
|
|
6
|
+
function k(o, n) {
|
|
7
|
+
n <= 0 ? d.delete(o) : d.set(o, n);
|
|
8
|
+
}
|
|
9
|
+
function E() {
|
|
10
|
+
return typeof window > "u" ? 0 : window.innerWidth - document.documentElement.clientWidth;
|
|
11
|
+
}
|
|
12
|
+
function A(o) {
|
|
13
|
+
const { modelValue: n } = o, m = o.closable ?? c(!0), w = o.destroyOnClose ?? c(!1), l = c(n.value), i = c(n.value), s = c(null);
|
|
14
|
+
let a;
|
|
15
|
+
function g() {
|
|
16
|
+
if (typeof document > "u") return;
|
|
17
|
+
const e = p(document);
|
|
18
|
+
if (k(document, e + 1), e === 0) {
|
|
19
|
+
const t = E();
|
|
20
|
+
t > 0 && (document.body.style.paddingRight = `${t}px`), document.body.style.overflow = "hidden";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function v() {
|
|
24
|
+
if (typeof document > "u") return;
|
|
25
|
+
const e = p(document), t = Math.max(0, e - 1);
|
|
26
|
+
k(document, t), t === 0 && (document.body.style.overflow = "", document.body.style.paddingRight = "");
|
|
27
|
+
}
|
|
28
|
+
C(
|
|
29
|
+
() => n.value,
|
|
30
|
+
(e) => {
|
|
31
|
+
var t;
|
|
32
|
+
if (e) {
|
|
33
|
+
i.value = !0;
|
|
34
|
+
const u = document.activeElement;
|
|
35
|
+
s.value = u instanceof HTMLElement ? u : null, g(), h(() => {
|
|
36
|
+
l.value = !0;
|
|
37
|
+
});
|
|
38
|
+
} else
|
|
39
|
+
l.value = !1, clearTimeout(a), w.value && (a = setTimeout(() => {
|
|
40
|
+
i.value = !1;
|
|
41
|
+
}, 200)), v(), (t = s.value) == null || t.focus();
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
function b() {
|
|
45
|
+
m.value && (n.value = !1);
|
|
46
|
+
}
|
|
47
|
+
function x() {
|
|
48
|
+
n.value = !1;
|
|
49
|
+
}
|
|
50
|
+
function y(e) {
|
|
51
|
+
return e ? Array.from(
|
|
52
|
+
e.querySelectorAll(
|
|
53
|
+
'button:not([disabled]), [href]:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), [contenteditable]:not([contenteditable="false"])'
|
|
54
|
+
)
|
|
55
|
+
) : [];
|
|
56
|
+
}
|
|
57
|
+
function T(e) {
|
|
58
|
+
if (!e) return;
|
|
59
|
+
e.focus();
|
|
60
|
+
const t = y(e);
|
|
61
|
+
t.length > 0 && t[0].focus();
|
|
62
|
+
}
|
|
63
|
+
function S(e, t) {
|
|
64
|
+
if (e.key === "Escape" && m.value) {
|
|
65
|
+
b();
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if (e.key === "Tab" && t) {
|
|
69
|
+
const u = y(t);
|
|
70
|
+
if (u.length === 0) return;
|
|
71
|
+
const r = u[0], f = u[u.length - 1];
|
|
72
|
+
e.shiftKey ? document.activeElement === r && (e.preventDefault(), f == null || f.focus()) : document.activeElement === f && (e.preventDefault(), r == null || r.focus());
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return M(() => {
|
|
76
|
+
n.value && (i.value = !0, h(() => {
|
|
77
|
+
l.value = !0;
|
|
78
|
+
}));
|
|
79
|
+
}), W(() => {
|
|
80
|
+
var e;
|
|
81
|
+
clearTimeout(a), v(), l.value && ((e = s.value) == null || e.focus());
|
|
82
|
+
}), {
|
|
83
|
+
visible: l,
|
|
84
|
+
rendered: i,
|
|
85
|
+
close: b,
|
|
86
|
+
confirm: x,
|
|
87
|
+
handleKeydown: S,
|
|
88
|
+
focusDialog: T
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
export {
|
|
92
|
+
A as useModal
|
|
93
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Ref, ComputedRef } from 'vue';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Options for the useNumberInput composable.
|
|
5
|
+
*/
|
|
6
|
+
export interface UseNumberInputOptions {
|
|
7
|
+
/** v-model value — a writable Ref<number | undefined> */
|
|
8
|
+
modelValue: Ref<number | undefined>;
|
|
9
|
+
/** Minimum allowed value (default: -Infinity) */
|
|
10
|
+
min?: number;
|
|
11
|
+
/** Maximum allowed value (default: Infinity) */
|
|
12
|
+
max?: number;
|
|
13
|
+
/** Step increment for up/down buttons and keyboard (default: 1) */
|
|
14
|
+
step?: number;
|
|
15
|
+
/** Decimal precision (default: inferred from step) */
|
|
16
|
+
precision?: number;
|
|
17
|
+
/** Whether the input is disabled */
|
|
18
|
+
disabled?: Ref<boolean>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Return type for the useNumberInput composable.
|
|
22
|
+
*/
|
|
23
|
+
export interface UseNumberInputReturn {
|
|
24
|
+
/** Display value as a string, bound to the input field */
|
|
25
|
+
displayValue: ComputedRef<string>;
|
|
26
|
+
/** Increment the value by step */
|
|
27
|
+
increment: () => void;
|
|
28
|
+
/** Decrement the value by step */
|
|
29
|
+
decrement: () => void;
|
|
30
|
+
/** Programmatically set the numeric value */
|
|
31
|
+
setValue: (value: number) => void;
|
|
32
|
+
/** Keyboard event handler (ArrowUp/ArrowDown) */
|
|
33
|
+
handleKeydown: (event: KeyboardEvent) => void;
|
|
34
|
+
/** Input handler — update display buffer without committing */
|
|
35
|
+
handleInput: (event: Event) => void;
|
|
36
|
+
/** Blur handler — formats and commits display value */
|
|
37
|
+
handleBlur: () => void;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Format a numeric value to a string using the given precision.
|
|
41
|
+
*/
|
|
42
|
+
export declare function formatNumber(value: number | undefined, precision: number): string;
|
|
43
|
+
/**
|
|
44
|
+
* Parse a string value to a number, returning undefined on invalid input.
|
|
45
|
+
*/
|
|
46
|
+
export declare function parseNumber(str: string): number | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Headless number input — encapsulates value clamping, step precision,
|
|
49
|
+
* keyboard navigation, increment/decrement, and parse/format logic
|
|
50
|
+
* without any rendering. Use with your own UI.
|
|
51
|
+
*/
|
|
52
|
+
export declare function useNumberInput(opts: UseNumberInputOptions): UseNumberInputReturn;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { computed as w, ref as g, watch as D } from "vue";
|
|
2
|
+
function v(r, n, e) {
|
|
3
|
+
return Math.min(Math.max(r, n), e);
|
|
4
|
+
}
|
|
5
|
+
function y(r, n) {
|
|
6
|
+
const e = Math.pow(10, n);
|
|
7
|
+
return Math.round(r * e) / e;
|
|
8
|
+
}
|
|
9
|
+
function F(r) {
|
|
10
|
+
if (!Number.isFinite(r) || r <= 0) return 0;
|
|
11
|
+
const n = String(r), e = n.indexOf(".");
|
|
12
|
+
return e === -1 ? 0 : n.length - e - 1;
|
|
13
|
+
}
|
|
14
|
+
function m(r, n) {
|
|
15
|
+
return r == null || !Number.isFinite(r) ? "" : y(r, n).toFixed(n);
|
|
16
|
+
}
|
|
17
|
+
function k(r) {
|
|
18
|
+
const n = r.trim();
|
|
19
|
+
if (n === "" || n === "-" || n === "+") return;
|
|
20
|
+
const e = Number(n);
|
|
21
|
+
return Number.isFinite(e) ? e : void 0;
|
|
22
|
+
}
|
|
23
|
+
function A(r) {
|
|
24
|
+
const {
|
|
25
|
+
modelValue: n,
|
|
26
|
+
min: e = -1 / 0,
|
|
27
|
+
max: s = 1 / 0,
|
|
28
|
+
step: c = 1,
|
|
29
|
+
precision: d,
|
|
30
|
+
disabled: o
|
|
31
|
+
} = r, a = w(() => d !== void 0 ? d : F(c)), i = g(m(n.value, a.value)), I = w(() => i.value);
|
|
32
|
+
D(n, (t) => {
|
|
33
|
+
const u = m(t, a.value);
|
|
34
|
+
k(i.value) !== t && (i.value = u);
|
|
35
|
+
});
|
|
36
|
+
function p(t) {
|
|
37
|
+
if (c <= 0) return t;
|
|
38
|
+
const u = a.value, f = Math.round((t - e) / c) * c + e;
|
|
39
|
+
return y(f, u);
|
|
40
|
+
}
|
|
41
|
+
function l(t) {
|
|
42
|
+
if (o != null && o.value) return;
|
|
43
|
+
const u = v(t, e, s), f = p(u);
|
|
44
|
+
n.value = f, i.value = m(f, a.value);
|
|
45
|
+
}
|
|
46
|
+
function h() {
|
|
47
|
+
const t = n.value ?? e, u = v(t + c, e, s);
|
|
48
|
+
l(p(u));
|
|
49
|
+
}
|
|
50
|
+
function x() {
|
|
51
|
+
const t = n.value ?? s, u = v(t - c, e, s);
|
|
52
|
+
l(p(u));
|
|
53
|
+
}
|
|
54
|
+
function M(t) {
|
|
55
|
+
if (!(o != null && o.value))
|
|
56
|
+
switch (t.key) {
|
|
57
|
+
case "ArrowUp": {
|
|
58
|
+
t.preventDefault(), h();
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
case "ArrowDown": {
|
|
62
|
+
t.preventDefault(), x();
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
case "Enter": {
|
|
66
|
+
t.preventDefault(), N();
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function b(t) {
|
|
72
|
+
if (o != null && o.value) return;
|
|
73
|
+
const u = t.target;
|
|
74
|
+
i.value = u.value;
|
|
75
|
+
}
|
|
76
|
+
function N() {
|
|
77
|
+
if (o != null && o.value) return;
|
|
78
|
+
const t = k(i.value);
|
|
79
|
+
if (t === void 0) {
|
|
80
|
+
const u = n.value ?? e;
|
|
81
|
+
i.value = m(u, a.value);
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
l(t);
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
displayValue: I,
|
|
88
|
+
increment: h,
|
|
89
|
+
decrement: x,
|
|
90
|
+
setValue: l,
|
|
91
|
+
handleInput: b,
|
|
92
|
+
handleKeydown: M,
|
|
93
|
+
handleBlur: N
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
export {
|
|
97
|
+
m as formatNumber,
|
|
98
|
+
k as parseNumber,
|
|
99
|
+
A as useNumberInput
|
|
100
|
+
};
|