@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,33 @@
|
|
|
1
|
+
import { Ref, ComputedRef } from 'vue';
|
|
2
|
+
|
|
3
|
+
export interface TabItem {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
icon?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface UseTabsOptions {
|
|
10
|
+
/** v-model active tab key */
|
|
11
|
+
modelValue: Ref<string>;
|
|
12
|
+
/** Tab items */
|
|
13
|
+
tabs: Ref<TabItem[]> | ComputedRef<TabItem[]>;
|
|
14
|
+
/** Tab position (determines arrow key direction) */
|
|
15
|
+
position?: Ref<'top' | 'left' | 'right' | 'bottom'>;
|
|
16
|
+
}
|
|
17
|
+
export interface UseTabsReturn {
|
|
18
|
+
/** Activate a tab by key */
|
|
19
|
+
activate: (key: string) => void;
|
|
20
|
+
/** Handle keyboard navigation */
|
|
21
|
+
handleKeydown: (event: KeyboardEvent, currentKey: string) => void;
|
|
22
|
+
/** Panel ID for ARIA */
|
|
23
|
+
panelId: ComputedRef<string>;
|
|
24
|
+
/** Tab list ID for ARIA */
|
|
25
|
+
tabListId: string;
|
|
26
|
+
/** ARIA orientation based on position */
|
|
27
|
+
orientation: ComputedRef<'horizontal' | 'vertical'>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Headless tabs — encapsulates tab activation and keyboard navigation.
|
|
31
|
+
* Use with your own UI rendering.
|
|
32
|
+
*/
|
|
33
|
+
export declare function useTabs(opts: UseTabsOptions): UseTabsReturn;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { computed as p } from "vue";
|
|
2
|
+
let y = 0;
|
|
3
|
+
function v(a) {
|
|
4
|
+
const { modelValue: h, tabs: s } = a, i = a.position, u = `nm-tabs-${++y}`, b = p(() => `${u}-panel`), f = p(() => {
|
|
5
|
+
const e = i == null ? void 0 : i.value;
|
|
6
|
+
return e === "left" || e === "right" ? "vertical" : "horizontal";
|
|
7
|
+
});
|
|
8
|
+
function c(e) {
|
|
9
|
+
const r = s.value.find((t) => t.key === e);
|
|
10
|
+
r != null && r.disabled || (h.value = e);
|
|
11
|
+
}
|
|
12
|
+
function g(e, r) {
|
|
13
|
+
const t = s.value.filter((o) => !o.disabled);
|
|
14
|
+
if (t.length === 0) return;
|
|
15
|
+
const n = t.findIndex((o) => o.key === r);
|
|
16
|
+
let l;
|
|
17
|
+
if (f.value === "vertical")
|
|
18
|
+
if (e.key === "ArrowDown")
|
|
19
|
+
e.preventDefault(), l = n + 1 < t.length ? n + 1 : 0;
|
|
20
|
+
else if (e.key === "ArrowUp")
|
|
21
|
+
e.preventDefault(), l = n - 1 >= 0 ? n - 1 : t.length - 1;
|
|
22
|
+
else
|
|
23
|
+
return;
|
|
24
|
+
else if (e.key === "ArrowRight")
|
|
25
|
+
e.preventDefault(), l = n + 1 < t.length ? n + 1 : 0;
|
|
26
|
+
else if (e.key === "ArrowLeft")
|
|
27
|
+
e.preventDefault(), l = n - 1 >= 0 ? n - 1 : t.length - 1;
|
|
28
|
+
else
|
|
29
|
+
return;
|
|
30
|
+
const d = t[l];
|
|
31
|
+
d && c(d.key);
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
activate: c,
|
|
35
|
+
handleKeydown: g,
|
|
36
|
+
panelId: b,
|
|
37
|
+
tabListId: u,
|
|
38
|
+
orientation: f
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
v as useTabs
|
|
43
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
|
|
3
|
+
export type Theme = 'light' | 'dark' | 'auto';
|
|
4
|
+
export interface ThemeOptions {
|
|
5
|
+
defaultTheme?: Theme;
|
|
6
|
+
storageKey?: string;
|
|
7
|
+
followSystem?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface ThemeContext {
|
|
10
|
+
theme: Ref<Theme>;
|
|
11
|
+
currentTheme: Ref<'light' | 'dark'>;
|
|
12
|
+
isDark: Ref<boolean>;
|
|
13
|
+
setTheme: (theme: Theme) => void;
|
|
14
|
+
toggleTheme: () => void;
|
|
15
|
+
dispose: () => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Create theme state for a component tree.
|
|
19
|
+
* The returned context is independent — each call gets its own state
|
|
20
|
+
* and event listeners, safe for SSR and concurrent usage.
|
|
21
|
+
*/
|
|
22
|
+
export declare function createTheme(options?: ThemeOptions): ThemeContext;
|
|
23
|
+
/**
|
|
24
|
+
* Provide theme context to child components.
|
|
25
|
+
*
|
|
26
|
+
* Accepts a plain object or a reactive ref/computed. When a ref is passed,
|
|
27
|
+
* `defaultTheme` changes are propagated automatically at runtime.
|
|
28
|
+
*
|
|
29
|
+
* Note: `storageKey` and `followSystem` are only read at initialization.
|
|
30
|
+
* Changing them at runtime requires remounting the provider.
|
|
31
|
+
*/
|
|
32
|
+
export declare function provideTheme(options?: ThemeOptions | Ref<ThemeOptions>): ThemeContext;
|
|
33
|
+
/**
|
|
34
|
+
* Inject theme context from parent.
|
|
35
|
+
*
|
|
36
|
+
* If no provider is found, creates an independent fallback context
|
|
37
|
+
* that is disposed when the calling component unmounts.
|
|
38
|
+
* This avoids module-level shared state that leaks across SSR requests.
|
|
39
|
+
*/
|
|
40
|
+
export declare function useTheme(): ThemeContext;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { inject as w, onBeforeUnmount as l, unref as y, provide as k, isRef as S, watch as h, ref as E, computed as m } from "vue";
|
|
2
|
+
const p = Symbol("neumorphism-theme"), b = "nm-theme-preference";
|
|
3
|
+
function s() {
|
|
4
|
+
return typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
5
|
+
}
|
|
6
|
+
function x(e) {
|
|
7
|
+
if (typeof window > "u") return null;
|
|
8
|
+
try {
|
|
9
|
+
return localStorage.getItem(e);
|
|
10
|
+
} catch {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
function A(e, t) {
|
|
15
|
+
if (!(typeof window > "u"))
|
|
16
|
+
try {
|
|
17
|
+
localStorage.setItem(t, e);
|
|
18
|
+
} catch {
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function f(e) {
|
|
22
|
+
if (typeof document > "u") return;
|
|
23
|
+
const t = document.documentElement;
|
|
24
|
+
e ? t.setAttribute("data-theme", "dark") : t.removeAttribute("data-theme");
|
|
25
|
+
}
|
|
26
|
+
function g(e = {}) {
|
|
27
|
+
const { defaultTheme: t = "auto", storageKey: o = b, followSystem: T = !0 } = e, v = x(o), r = E(v || t), c = m(() => r.value === "auto" ? s() : r.value), a = m(() => c.value === "dark");
|
|
28
|
+
h(
|
|
29
|
+
a,
|
|
30
|
+
(n) => {
|
|
31
|
+
f(n);
|
|
32
|
+
},
|
|
33
|
+
{ immediate: !0 }
|
|
34
|
+
);
|
|
35
|
+
let u, i;
|
|
36
|
+
T && typeof window < "u" && (u = window.matchMedia("(prefers-color-scheme: dark)"), i = () => {
|
|
37
|
+
r.value === "auto" && f(s() === "dark");
|
|
38
|
+
}, u.addEventListener("change", i));
|
|
39
|
+
const d = (n) => {
|
|
40
|
+
r.value = n, A(n, o);
|
|
41
|
+
};
|
|
42
|
+
return {
|
|
43
|
+
theme: r,
|
|
44
|
+
currentTheme: c,
|
|
45
|
+
isDark: a,
|
|
46
|
+
setTheme: d,
|
|
47
|
+
toggleTheme: () => {
|
|
48
|
+
const n = a.value ? "light" : "dark";
|
|
49
|
+
d(n);
|
|
50
|
+
},
|
|
51
|
+
dispose: () => {
|
|
52
|
+
u && i && u.removeEventListener("change", i);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function L(e = {}) {
|
|
57
|
+
const t = g(y(e));
|
|
58
|
+
return k(p, t), S(e) && h(
|
|
59
|
+
() => e.value.defaultTheme,
|
|
60
|
+
(o) => {
|
|
61
|
+
o !== void 0 && t.setTheme(o);
|
|
62
|
+
}
|
|
63
|
+
), l(() => {
|
|
64
|
+
t.dispose();
|
|
65
|
+
}), t;
|
|
66
|
+
}
|
|
67
|
+
function M() {
|
|
68
|
+
const e = w(p, null);
|
|
69
|
+
if (!e) {
|
|
70
|
+
const t = g();
|
|
71
|
+
return l(() => {
|
|
72
|
+
t.dispose();
|
|
73
|
+
}), t;
|
|
74
|
+
}
|
|
75
|
+
return e;
|
|
76
|
+
}
|
|
77
|
+
export {
|
|
78
|
+
g as createTheme,
|
|
79
|
+
L as provideTheme,
|
|
80
|
+
M as useTheme
|
|
81
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
|
|
3
|
+
export type ToastType = 'info' | 'success' | 'warning' | 'error';
|
|
4
|
+
export type ToastPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top-center' | 'bottom-center';
|
|
5
|
+
export interface ToastItem {
|
|
6
|
+
id: string;
|
|
7
|
+
message: string;
|
|
8
|
+
type: ToastType;
|
|
9
|
+
duration: number;
|
|
10
|
+
closable: boolean;
|
|
11
|
+
timestamp: number;
|
|
12
|
+
leaving: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface ToastOptions {
|
|
15
|
+
message: string;
|
|
16
|
+
type?: ToastType;
|
|
17
|
+
duration?: number;
|
|
18
|
+
closable?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface UseToastOptions {
|
|
21
|
+
/** Maximum number of toasts visible at once */
|
|
22
|
+
maxCount?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface UseToastReturn {
|
|
25
|
+
/** Current toast items */
|
|
26
|
+
toasts: Ref<ToastItem[]>;
|
|
27
|
+
/** Add a toast notification */
|
|
28
|
+
addToast: (options: ToastOptions) => string;
|
|
29
|
+
/** Remove a toast by ID */
|
|
30
|
+
removeToast: (id: string) => void;
|
|
31
|
+
/** Clear all toasts */
|
|
32
|
+
clearAll: () => void;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Headless toast — encapsulates toast queue management, auto-dismiss
|
|
36
|
+
* timers, and remove animations. Use with your own UI rendering.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const { toasts, addToast, removeToast } = useToast({ maxCount: 5 })
|
|
41
|
+
* addToast({ message: 'Saved!', type: 'success', duration: 3000 })
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function useToast(opts?: UseToastOptions): UseToastReturn;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ref as g, onBeforeUnmount as T } from "vue";
|
|
2
|
+
function d() {
|
|
3
|
+
return `nm-toast-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 6)}`;
|
|
4
|
+
}
|
|
5
|
+
function h(s = {}) {
|
|
6
|
+
const { maxCount: c = 5 } = s, a = g([]), t = /* @__PURE__ */ new Map();
|
|
7
|
+
let r = !1;
|
|
8
|
+
function n(e) {
|
|
9
|
+
const l = t.get(e);
|
|
10
|
+
l && (clearTimeout(l), t.delete(e));
|
|
11
|
+
}
|
|
12
|
+
function f(e) {
|
|
13
|
+
const l = d(), o = {
|
|
14
|
+
id: l,
|
|
15
|
+
message: e.message,
|
|
16
|
+
type: e.type || "info",
|
|
17
|
+
duration: e.duration ?? 3e3,
|
|
18
|
+
closable: e.closable ?? !0,
|
|
19
|
+
timestamp: Date.now(),
|
|
20
|
+
leaving: !1
|
|
21
|
+
};
|
|
22
|
+
if (a.value = [...a.value.slice(Math.max(0, a.value.length - (c - 1))), o], r) {
|
|
23
|
+
const u = t.get("__clearAll");
|
|
24
|
+
u && (clearTimeout(u), t.delete("__clearAll")), r = !1, a.value = a.value.filter((v) => !v.leaving);
|
|
25
|
+
}
|
|
26
|
+
return o.duration > 0 && (n(l), t.set(
|
|
27
|
+
l,
|
|
28
|
+
setTimeout(() => i(l), o.duration)
|
|
29
|
+
)), l;
|
|
30
|
+
}
|
|
31
|
+
function i(e) {
|
|
32
|
+
n(e);
|
|
33
|
+
const l = a.value.find((o) => o.id === e);
|
|
34
|
+
l && (l.leaving = !0), t.set(
|
|
35
|
+
e,
|
|
36
|
+
setTimeout(() => {
|
|
37
|
+
a.value = a.value.filter((o) => o.id !== e), t.delete(e);
|
|
38
|
+
}, 250)
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
function m() {
|
|
42
|
+
t.forEach((e) => clearTimeout(e)), t.clear(), r = !0, a.value.forEach((e) => {
|
|
43
|
+
e.leaving = !0;
|
|
44
|
+
}), t.set(
|
|
45
|
+
"__clearAll",
|
|
46
|
+
setTimeout(() => {
|
|
47
|
+
a.value = [], t.delete("__clearAll"), r = !1;
|
|
48
|
+
}, 250)
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
return T(() => {
|
|
52
|
+
t.forEach((e) => clearTimeout(e)), t.clear();
|
|
53
|
+
}), { toasts: a, addToast: f, removeToast: i, clearAll: m };
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
h as useToast
|
|
57
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
|
|
3
|
+
export type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
4
|
+
export type TooltipTrigger = 'hover' | 'click' | 'focus';
|
|
5
|
+
export interface UseTooltipOptions {
|
|
6
|
+
/** Whether the tooltip is disabled */
|
|
7
|
+
disabled?: Ref<boolean>;
|
|
8
|
+
/** Delay before showing (ms) */
|
|
9
|
+
delay?: number;
|
|
10
|
+
/** Trigger mode */
|
|
11
|
+
trigger?: Ref<TooltipTrigger>;
|
|
12
|
+
}
|
|
13
|
+
export interface UseTooltipReturn {
|
|
14
|
+
/** Whether the tooltip is visible */
|
|
15
|
+
isVisible: Ref<boolean>;
|
|
16
|
+
/** Show the tooltip */
|
|
17
|
+
show: () => void;
|
|
18
|
+
/** Hide the tooltip */
|
|
19
|
+
hide: () => void;
|
|
20
|
+
/** Toggle visibility (for click trigger) */
|
|
21
|
+
toggle: () => void;
|
|
22
|
+
/** Handle keydown (Escape to close) */
|
|
23
|
+
handleKeydown: (event: KeyboardEvent) => void;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Headless tooltip — encapsulates show/hide with delay, toggle for
|
|
27
|
+
* click trigger, and keyboard dismissal. Use with your own UI rendering.
|
|
28
|
+
*/
|
|
29
|
+
export declare function useTooltip(opts?: UseTooltipOptions): UseTooltipReturn;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ref as m, onBeforeUnmount as s } from "vue";
|
|
2
|
+
function v(t = {}) {
|
|
3
|
+
const { disabled: u } = t, f = t.delay ?? 150, n = m(!1);
|
|
4
|
+
let e = null, l = null;
|
|
5
|
+
function i() {
|
|
6
|
+
u != null && u.value || (l && (clearTimeout(l), l = null), e = setTimeout(() => {
|
|
7
|
+
n.value = !0;
|
|
8
|
+
}, f));
|
|
9
|
+
}
|
|
10
|
+
function o() {
|
|
11
|
+
e && (clearTimeout(e), e = null), l = setTimeout(() => {
|
|
12
|
+
n.value = !1;
|
|
13
|
+
}, 100);
|
|
14
|
+
}
|
|
15
|
+
function r() {
|
|
16
|
+
u != null && u.value || (n.value ? o() : i());
|
|
17
|
+
}
|
|
18
|
+
function a(c) {
|
|
19
|
+
c.key === "Escape" && (n.value = !1);
|
|
20
|
+
}
|
|
21
|
+
return s(() => {
|
|
22
|
+
e && (clearTimeout(e), e = null), l && (clearTimeout(l), l = null);
|
|
23
|
+
}), { isVisible: n, show: i, hide: o, toggle: r, handleKeydown: a };
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
v as useTooltip
|
|
27
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ref as u, onMounted as d, onBeforeUnmount as l } from "vue";
|
|
2
|
+
function v() {
|
|
3
|
+
const t = u(!1), o = u(!1);
|
|
4
|
+
let i;
|
|
5
|
+
function r() {
|
|
6
|
+
o.value = window.innerWidth < 768;
|
|
7
|
+
}
|
|
8
|
+
function a() {
|
|
9
|
+
clearTimeout(i), i = setTimeout(r, 100);
|
|
10
|
+
}
|
|
11
|
+
function s() {
|
|
12
|
+
t.value = !0;
|
|
13
|
+
}
|
|
14
|
+
let e, n;
|
|
15
|
+
return d(() => {
|
|
16
|
+
window.matchMedia && (e = window.matchMedia("(pointer: coarse)"), t.value = e.matches, n = (c) => {
|
|
17
|
+
t.value = c.matches;
|
|
18
|
+
}, e.addEventListener("change", n)), window.addEventListener("touchstart", s, { once: !0, passive: !0 }), r(), window.addEventListener("resize", a, { passive: !0 });
|
|
19
|
+
}), l(() => {
|
|
20
|
+
e && n && e.removeEventListener("change", n), window.removeEventListener("touchstart", s), window.removeEventListener("resize", a), clearTimeout(i);
|
|
21
|
+
}), { isTouch: t, isMobile: o };
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
v as useTouchDevice
|
|
25
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Ref, ComputedRef } from 'vue';
|
|
2
|
+
|
|
3
|
+
export interface TreeNodeData {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
children?: TreeNodeData[];
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
[k: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface UseTreeOptions {
|
|
11
|
+
/** Tree data */
|
|
12
|
+
data: Ref<TreeNodeData[]> | ComputedRef<TreeNodeData[]>;
|
|
13
|
+
/** v-model selected keys */
|
|
14
|
+
selectedKeys?: Ref<string[]>;
|
|
15
|
+
/** v-model expanded keys */
|
|
16
|
+
expandedKeys?: Ref<string[]>;
|
|
17
|
+
/** Whether multiple selection is allowed */
|
|
18
|
+
multiple?: Ref<boolean>;
|
|
19
|
+
}
|
|
20
|
+
export interface UseTreeReturn {
|
|
21
|
+
/** Local expanded keys */
|
|
22
|
+
localExpandedKeys: Ref<string[]>;
|
|
23
|
+
/** Local selected keys */
|
|
24
|
+
localSelectedKeys: Ref<string[]>;
|
|
25
|
+
/** All node keys in the tree */
|
|
26
|
+
allKeys: ComputedRef<string[]>;
|
|
27
|
+
/** Search text for filtering */
|
|
28
|
+
searchText: Ref<string>;
|
|
29
|
+
/** Currently focused key for keyboard navigation */
|
|
30
|
+
focusedKey: Ref<string | null>;
|
|
31
|
+
/** Toggle expand/collapse of a node */
|
|
32
|
+
toggleExpand: (key: string) => void;
|
|
33
|
+
/** Select a node */
|
|
34
|
+
select: (key: string) => void;
|
|
35
|
+
/** Find a node by key */
|
|
36
|
+
findNode: (nodes: TreeNodeData[], key: string) => TreeNodeData | null;
|
|
37
|
+
/** Expand all nodes */
|
|
38
|
+
expandAll: () => void;
|
|
39
|
+
/** Collapse all nodes */
|
|
40
|
+
collapseAll: () => void;
|
|
41
|
+
/** Handle search input — auto-expands matching nodes */
|
|
42
|
+
onSearchInput: (value: string) => void;
|
|
43
|
+
/** Handle keyboard navigation events */
|
|
44
|
+
handleKeydown: (event: KeyboardEvent) => void;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Headless tree — encapsulates expand/collapse, selection, search, and
|
|
48
|
+
* node lookup without any rendering. Use with your own UI.
|
|
49
|
+
*/
|
|
50
|
+
export declare function useTree(opts: UseTreeOptions): UseTreeReturn;
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { ref as y, computed as m, watch as A, nextTick as E } from "vue";
|
|
2
|
+
function M(c, a) {
|
|
3
|
+
if (c.length !== a.length) return !1;
|
|
4
|
+
for (let r = 0; r < c.length; r++)
|
|
5
|
+
if (c[r] !== a[r]) return !1;
|
|
6
|
+
return !0;
|
|
7
|
+
}
|
|
8
|
+
function G(c) {
|
|
9
|
+
const a = [];
|
|
10
|
+
function r(l) {
|
|
11
|
+
var u;
|
|
12
|
+
for (const o of l)
|
|
13
|
+
a.push(o.key), (u = o.children) != null && u.length && r(o.children);
|
|
14
|
+
}
|
|
15
|
+
return r(c), a;
|
|
16
|
+
}
|
|
17
|
+
function J(c, a) {
|
|
18
|
+
const r = [], l = a.toLowerCase();
|
|
19
|
+
function u(o) {
|
|
20
|
+
var s;
|
|
21
|
+
let t = !1;
|
|
22
|
+
for (const f of o) {
|
|
23
|
+
const k = f.label.toLowerCase().includes(l);
|
|
24
|
+
let h = !1;
|
|
25
|
+
(s = f.children) != null && s.length && (h = u(f.children)), (k || h) && (r.push(f.key), t = !0);
|
|
26
|
+
}
|
|
27
|
+
return t;
|
|
28
|
+
}
|
|
29
|
+
return u(c), r;
|
|
30
|
+
}
|
|
31
|
+
function p(c, a) {
|
|
32
|
+
var r;
|
|
33
|
+
for (const l of c) {
|
|
34
|
+
if (l.key === a) return l;
|
|
35
|
+
if ((r = l.children) != null && r.length) {
|
|
36
|
+
const u = p(l.children, a);
|
|
37
|
+
if (u) return u;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
function I(c, a, r = []) {
|
|
43
|
+
var l;
|
|
44
|
+
for (const u of c)
|
|
45
|
+
r.push(u), (l = u.children) != null && l.length && a.includes(u.key) && I(u.children, a, r);
|
|
46
|
+
return r;
|
|
47
|
+
}
|
|
48
|
+
function P(c, a = null, r = /* @__PURE__ */ new Map()) {
|
|
49
|
+
var l;
|
|
50
|
+
for (const u of c)
|
|
51
|
+
r.set(u.key, a), (l = u.children) != null && l.length && P(u.children, u.key, r);
|
|
52
|
+
return r;
|
|
53
|
+
}
|
|
54
|
+
function X(c) {
|
|
55
|
+
var D, L;
|
|
56
|
+
const { data: a } = c, r = c.multiple ?? y(!1), l = y([...((D = c.expandedKeys) == null ? void 0 : D.value) ?? []]), u = y([...((L = c.selectedKeys) == null ? void 0 : L.value) ?? []]), o = y(""), t = y(null);
|
|
57
|
+
let s = !1;
|
|
58
|
+
function f(e, n) {
|
|
59
|
+
e && A(
|
|
60
|
+
() => e.value,
|
|
61
|
+
(i) => {
|
|
62
|
+
if (s) return;
|
|
63
|
+
const d = [...i];
|
|
64
|
+
M(n.value, d) || (s = !0, n.value = d, E(() => {
|
|
65
|
+
s = !1;
|
|
66
|
+
}));
|
|
67
|
+
},
|
|
68
|
+
{ immediate: !0, deep: !0 }
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
function k(e, n) {
|
|
72
|
+
n && A(
|
|
73
|
+
() => e.value,
|
|
74
|
+
(i) => {
|
|
75
|
+
if (s) return;
|
|
76
|
+
const d = [...i];
|
|
77
|
+
M(n.value, d) || (s = !0, n.value = d, E(() => {
|
|
78
|
+
s = !1;
|
|
79
|
+
}));
|
|
80
|
+
},
|
|
81
|
+
{ deep: !0 }
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
f(c.selectedKeys, u), f(c.expandedKeys, l), k(u, c.selectedKeys), k(l, c.expandedKeys);
|
|
85
|
+
const h = m(() => G(a.value)), v = m(() => I(a.value, l.value)), C = m(() => P(a.value));
|
|
86
|
+
function g(e) {
|
|
87
|
+
const n = l.value.indexOf(e);
|
|
88
|
+
n === -1 ? l.value.push(e) : l.value.splice(n, 1);
|
|
89
|
+
}
|
|
90
|
+
function K(e) {
|
|
91
|
+
if (r.value) {
|
|
92
|
+
const n = u.value.indexOf(e);
|
|
93
|
+
n === -1 ? u.value.push(e) : u.value.splice(n, 1);
|
|
94
|
+
} else
|
|
95
|
+
u.value = [e];
|
|
96
|
+
}
|
|
97
|
+
function F() {
|
|
98
|
+
l.value = [...h.value];
|
|
99
|
+
}
|
|
100
|
+
function N() {
|
|
101
|
+
l.value = [];
|
|
102
|
+
}
|
|
103
|
+
function O(e) {
|
|
104
|
+
if (o.value = e, e.trim()) {
|
|
105
|
+
const n = J(a.value, e);
|
|
106
|
+
l.value = [.../* @__PURE__ */ new Set([...l.value, ...n])];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
let x = "", w = null;
|
|
110
|
+
function S(e) {
|
|
111
|
+
x += e.toLowerCase(), w && clearTimeout(w), w = setTimeout(() => {
|
|
112
|
+
x = "";
|
|
113
|
+
}, 500);
|
|
114
|
+
const n = v.value, i = t.value ? n.findIndex((b) => b.key === t.value) + 1 : 0, T = [...n.slice(i), ...n.slice(0, i)].find((b) => b.label.toLowerCase().startsWith(x));
|
|
115
|
+
T && (t.value = T.key);
|
|
116
|
+
}
|
|
117
|
+
function q() {
|
|
118
|
+
const e = v.value;
|
|
119
|
+
if (!e.length) return;
|
|
120
|
+
if (!t.value) {
|
|
121
|
+
t.value = e[0].key;
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
const n = e.findIndex((i) => i.key === t.value);
|
|
125
|
+
n >= 0 && n < e.length - 1 && (t.value = e[n + 1].key);
|
|
126
|
+
}
|
|
127
|
+
function B() {
|
|
128
|
+
const e = v.value;
|
|
129
|
+
if (!e.length) return;
|
|
130
|
+
if (!t.value) {
|
|
131
|
+
t.value = e[e.length - 1].key;
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
const n = e.findIndex((i) => i.key === t.value);
|
|
135
|
+
n > 0 && (t.value = e[n - 1].key);
|
|
136
|
+
}
|
|
137
|
+
function H() {
|
|
138
|
+
const e = v.value;
|
|
139
|
+
e.length && (t.value = e[0].key);
|
|
140
|
+
}
|
|
141
|
+
function R() {
|
|
142
|
+
const e = v.value;
|
|
143
|
+
e.length && (t.value = e[e.length - 1].key);
|
|
144
|
+
}
|
|
145
|
+
function U() {
|
|
146
|
+
if (!t.value) return;
|
|
147
|
+
const e = C.value.get(t.value);
|
|
148
|
+
e && (t.value = e);
|
|
149
|
+
}
|
|
150
|
+
function V() {
|
|
151
|
+
var n;
|
|
152
|
+
if (!t.value) return;
|
|
153
|
+
const e = p(a.value, t.value);
|
|
154
|
+
(n = e == null ? void 0 : e.children) != null && n.length && (l.value.includes(e.key) || g(e.key), t.value = e.children[0].key);
|
|
155
|
+
}
|
|
156
|
+
function W() {
|
|
157
|
+
var n;
|
|
158
|
+
if (!t.value) return;
|
|
159
|
+
const e = p(a.value, t.value);
|
|
160
|
+
(n = e == null ? void 0 : e.children) != null && n.length && l.value.includes(e.key) ? g(e.key) : U();
|
|
161
|
+
}
|
|
162
|
+
function j() {
|
|
163
|
+
var n;
|
|
164
|
+
if (!t.value) return;
|
|
165
|
+
const e = p(a.value, t.value);
|
|
166
|
+
(n = e == null ? void 0 : e.children) != null && n.length && g(e.key);
|
|
167
|
+
}
|
|
168
|
+
function z(e) {
|
|
169
|
+
const n = e.key;
|
|
170
|
+
if (n.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey) {
|
|
171
|
+
S(n), e.preventDefault();
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
switch (n) {
|
|
175
|
+
case "ArrowDown":
|
|
176
|
+
q(), e.preventDefault();
|
|
177
|
+
break;
|
|
178
|
+
case "ArrowUp":
|
|
179
|
+
B(), e.preventDefault();
|
|
180
|
+
break;
|
|
181
|
+
case "ArrowRight":
|
|
182
|
+
V(), e.preventDefault();
|
|
183
|
+
break;
|
|
184
|
+
case "ArrowLeft":
|
|
185
|
+
W(), e.preventDefault();
|
|
186
|
+
break;
|
|
187
|
+
case "Enter":
|
|
188
|
+
case " ":
|
|
189
|
+
t.value && K(t.value), e.preventDefault();
|
|
190
|
+
break;
|
|
191
|
+
case "Home":
|
|
192
|
+
H(), e.preventDefault();
|
|
193
|
+
break;
|
|
194
|
+
case "End":
|
|
195
|
+
R(), e.preventDefault();
|
|
196
|
+
break;
|
|
197
|
+
case "*":
|
|
198
|
+
j(), e.preventDefault();
|
|
199
|
+
break;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
return {
|
|
203
|
+
localExpandedKeys: l,
|
|
204
|
+
localSelectedKeys: u,
|
|
205
|
+
allKeys: h,
|
|
206
|
+
searchText: o,
|
|
207
|
+
focusedKey: t,
|
|
208
|
+
toggleExpand: g,
|
|
209
|
+
select: K,
|
|
210
|
+
findNode: p,
|
|
211
|
+
expandAll: F,
|
|
212
|
+
collapseAll: N,
|
|
213
|
+
onSearchInput: O,
|
|
214
|
+
handleKeydown: z
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
export {
|
|
218
|
+
X as useTree
|
|
219
|
+
};
|