@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,106 @@
|
|
|
1
|
+
import { defineComponent as E, useSlots as I, computed as i, openBlock as s, createElementBlock as l, unref as c, normalizeClass as h, renderSlot as n, createCommentVNode as y, createElementVNode as _, toDisplayString as v, Fragment as V, renderList as D, createTextVNode as F } from "vue";
|
|
2
|
+
import { useLocale as H } from "../composables/useLocale.js";
|
|
3
|
+
import { u as K } from "./createComponent-jnXBYqCm.js";
|
|
4
|
+
import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
import '../NeumorphismList.css';const T = ["aria-label"], j = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "nm-list__header"
|
|
8
|
+
}, q = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "nm-list__loading"
|
|
11
|
+
}, w = { class: "nm-list__loading-text" }, A = {
|
|
12
|
+
key: 2,
|
|
13
|
+
class: "nm-list__empty"
|
|
14
|
+
}, G = { class: "nm-list__empty-text" }, J = ["onClick"], M = {
|
|
15
|
+
key: 4,
|
|
16
|
+
class: "nm-list__footer"
|
|
17
|
+
}, O = /* @__PURE__ */ E({
|
|
18
|
+
__name: "NeumorphismList",
|
|
19
|
+
props: {
|
|
20
|
+
items: { default: () => [] },
|
|
21
|
+
bordered: { type: Boolean, default: !0 },
|
|
22
|
+
split: { type: Boolean, default: !0 },
|
|
23
|
+
size: { default: "medium" },
|
|
24
|
+
hoverable: { type: Boolean, default: !0 },
|
|
25
|
+
loading: { type: Boolean, default: !1 }
|
|
26
|
+
},
|
|
27
|
+
emits: ["item-click"],
|
|
28
|
+
setup(a, { emit: g }) {
|
|
29
|
+
const t = a, k = I(), { config: r, resolveProp: d } = K(), b = i(() => {
|
|
30
|
+
var e;
|
|
31
|
+
return d(t.size, (e = r.value.list) == null ? void 0 : e.size, "medium");
|
|
32
|
+
}), $ = i(
|
|
33
|
+
() => {
|
|
34
|
+
var e;
|
|
35
|
+
return d(t.bordered, (e = r.value.list) == null ? void 0 : e.bordered, !0);
|
|
36
|
+
}
|
|
37
|
+
), B = i(() => {
|
|
38
|
+
var e;
|
|
39
|
+
return d(t.split, (e = r.value.list) == null ? void 0 : e.split, !0);
|
|
40
|
+
}), L = i(
|
|
41
|
+
() => {
|
|
42
|
+
var e;
|
|
43
|
+
return d(t.hoverable, (e = r.value.list) == null ? void 0 : e.hoverable, !0);
|
|
44
|
+
}
|
|
45
|
+
), { t: p } = H(), N = g, f = i(() => !t.loading && t.items.length === 0), C = i(() => [
|
|
46
|
+
"nm-list",
|
|
47
|
+
`nm-list--${b.value}`,
|
|
48
|
+
{
|
|
49
|
+
"nm-list--bordered": $.value,
|
|
50
|
+
"nm-list--split": B.value,
|
|
51
|
+
"nm-list--hoverable": L.value,
|
|
52
|
+
"nm-list--loading": t.loading,
|
|
53
|
+
"nm-list--empty": f.value
|
|
54
|
+
}
|
|
55
|
+
]);
|
|
56
|
+
function S(e, o) {
|
|
57
|
+
N("item-click", e, o);
|
|
58
|
+
}
|
|
59
|
+
function z(e, o) {
|
|
60
|
+
return (e == null ? void 0 : e.id) ?? (e == null ? void 0 : e.key) ?? o;
|
|
61
|
+
}
|
|
62
|
+
return (e, o) => (s(), l("div", {
|
|
63
|
+
class: h(C.value),
|
|
64
|
+
role: "list",
|
|
65
|
+
"aria-label": c(p)("listLabel")
|
|
66
|
+
}, [
|
|
67
|
+
e.$slots.header ? (s(), l("div", j, [
|
|
68
|
+
n(e.$slots, "header", {}, void 0, !0)
|
|
69
|
+
])) : y("", !0),
|
|
70
|
+
a.loading ? (s(), l("div", q, [
|
|
71
|
+
n(e.$slots, "loading", {}, () => [
|
|
72
|
+
o[0] || (o[0] = _("span", {
|
|
73
|
+
class: "nm-list__spinner",
|
|
74
|
+
"aria-hidden": "true"
|
|
75
|
+
}, null, -1)),
|
|
76
|
+
_("span", w, v(c(p)("listLoading")), 1)
|
|
77
|
+
], !0)
|
|
78
|
+
])) : f.value ? (s(), l("div", A, [
|
|
79
|
+
n(e.$slots, "empty", {}, () => [
|
|
80
|
+
_("span", G, v(c(p)("listEmpty")), 1)
|
|
81
|
+
], !0)
|
|
82
|
+
])) : (s(!0), l(V, { key: 3 }, D(a.items, (m, u) => (s(), l("div", {
|
|
83
|
+
key: z(m, u),
|
|
84
|
+
class: h(["nm-list__item", {
|
|
85
|
+
"nm-list__item--last": u === a.items.length - 1,
|
|
86
|
+
"nm-list__item--clickable": !!c(k).default
|
|
87
|
+
}]),
|
|
88
|
+
role: "listitem",
|
|
89
|
+
onClick: (Q) => S(m, u)
|
|
90
|
+
}, [
|
|
91
|
+
n(e.$slots, "default", {
|
|
92
|
+
item: m,
|
|
93
|
+
index: u
|
|
94
|
+
}, () => [
|
|
95
|
+
F(v(m), 1)
|
|
96
|
+
], !0)
|
|
97
|
+
], 10, J))), 128)),
|
|
98
|
+
e.$slots.footer ? (s(), l("div", M, [
|
|
99
|
+
n(e.$slots, "footer", {}, void 0, !0)
|
|
100
|
+
])) : y("", !0)
|
|
101
|
+
], 10, T));
|
|
102
|
+
}
|
|
103
|
+
}), Y = /* @__PURE__ */ P(O, [["__scopeId", "data-v-61b54172"]]);
|
|
104
|
+
export {
|
|
105
|
+
Y as N
|
|
106
|
+
};
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { defineComponent as Y, computed as c, ref as D, openBlock as t, createElementBlock as o, unref as l, normalizeClass as v, createElementVNode as u, Fragment as h, renderList as g, createCommentVNode as i, withModifiers as N, toDisplayString as k, createBlock as Z } from "vue";
|
|
2
|
+
import { useMenu as ee } from "../composables/useMenu.js";
|
|
3
|
+
import { u as ne } from "./createComponent-jnXBYqCm.js";
|
|
4
|
+
import { useTheme as te } from "../composables/useTheme.js";
|
|
5
|
+
import { N as oe } from "./NeumorphismTooltip-DEac8yVH.js";
|
|
6
|
+
import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
import '../NeumorphismMenu.css';const ae = ["role"], le = {
|
|
8
|
+
class: "nm-menu__list",
|
|
9
|
+
role: "group"
|
|
10
|
+
}, ie = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "nm-menu__divider",
|
|
13
|
+
role: "separator",
|
|
14
|
+
"aria-hidden": !0
|
|
15
|
+
}, de = ["aria-disabled", "aria-expanded", "aria-haspopup", "tabindex", "onClick", "onMouseenter", "onMouseleave", "onKeydown"], ue = { class: "nm-menu__item-content" }, re = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "nm-menu__item-icon",
|
|
18
|
+
"aria-hidden": "true"
|
|
19
|
+
}, me = {
|
|
20
|
+
key: 1,
|
|
21
|
+
class: "nm-menu__item-label"
|
|
22
|
+
}, ce = {
|
|
23
|
+
width: "12",
|
|
24
|
+
height: "12",
|
|
25
|
+
viewBox: "0 0 24 24",
|
|
26
|
+
fill: "none",
|
|
27
|
+
stroke: "currentColor",
|
|
28
|
+
"stroke-width": "2",
|
|
29
|
+
"stroke-linecap": "round",
|
|
30
|
+
"stroke-linejoin": "round"
|
|
31
|
+
}, _e = {
|
|
32
|
+
key: 0,
|
|
33
|
+
d: "M9 18l6-6-6-6"
|
|
34
|
+
}, pe = {
|
|
35
|
+
key: 1,
|
|
36
|
+
d: "M6 9l6 6 6-6"
|
|
37
|
+
}, ve = ["aria-label"], he = {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: "nm-menu__divider",
|
|
40
|
+
role: "separator"
|
|
41
|
+
}, ke = ["aria-disabled", "aria-expanded", "aria-haspopup", "tabindex", "onClick", "onMouseenter", "onMouseleave", "onKeydown"], be = { class: "nm-menu__item-content" }, ye = {
|
|
42
|
+
key: 0,
|
|
43
|
+
class: "nm-menu__item-icon",
|
|
44
|
+
"aria-hidden": "true"
|
|
45
|
+
}, fe = { class: "nm-menu__item-label" }, xe = {
|
|
46
|
+
width: "12",
|
|
47
|
+
height: "12",
|
|
48
|
+
viewBox: "0 0 24 24",
|
|
49
|
+
fill: "none",
|
|
50
|
+
stroke: "currentColor",
|
|
51
|
+
"stroke-width": "2",
|
|
52
|
+
"stroke-linecap": "round",
|
|
53
|
+
"stroke-linejoin": "round"
|
|
54
|
+
}, Me = {
|
|
55
|
+
key: 0,
|
|
56
|
+
d: "M9 18l6-6-6-6"
|
|
57
|
+
}, we = {
|
|
58
|
+
key: 1,
|
|
59
|
+
d: "M6 9l6 6 6-6"
|
|
60
|
+
}, Ce = ["aria-label"], Ke = {
|
|
61
|
+
key: 0,
|
|
62
|
+
class: "nm-menu__divider",
|
|
63
|
+
role: "separator"
|
|
64
|
+
}, $e = ["aria-disabled", "tabindex", "onClick", "onMouseenter", "onMouseleave", "onKeydown"], ge = { class: "nm-menu__item-content" }, Ne = {
|
|
65
|
+
key: 0,
|
|
66
|
+
class: "nm-menu__item-icon",
|
|
67
|
+
"aria-hidden": "true"
|
|
68
|
+
}, ze = { class: "nm-menu__item-label" }, Ee = {
|
|
69
|
+
key: 0,
|
|
70
|
+
class: "nm-menu__empty"
|
|
71
|
+
}, Ie = /* @__PURE__ */ Y({
|
|
72
|
+
__name: "NeumorphismMenu",
|
|
73
|
+
props: {
|
|
74
|
+
items: { default: () => [] },
|
|
75
|
+
mode: { default: "vertical" },
|
|
76
|
+
defaultActive: { default: void 0 },
|
|
77
|
+
defaultExpanded: { default: () => [] },
|
|
78
|
+
collapsed: { type: Boolean, default: !1 },
|
|
79
|
+
selectable: { type: Boolean, default: !0 },
|
|
80
|
+
theme: { default: void 0 },
|
|
81
|
+
size: { default: "medium" }
|
|
82
|
+
},
|
|
83
|
+
emits: ["select", "item-click"],
|
|
84
|
+
setup(r, { emit: V }) {
|
|
85
|
+
const d = r, z = V, { resolveProp: f } = ne(), { isDark: F } = te(), P = c(() => d.theme ? d.theme : F.value ? "dark" : "light"), _ = c(
|
|
86
|
+
() => f(d.mode, void 0, "vertical")
|
|
87
|
+
), q = c(
|
|
88
|
+
() => f(d.size, void 0, "medium")
|
|
89
|
+
), G = c(() => f(d.selectable, void 0, !0)), H = D(d.defaultActive ?? null), J = D([...d.defaultExpanded]), {
|
|
90
|
+
handleKeydown: x,
|
|
91
|
+
handleItemClick: M,
|
|
92
|
+
handleItemEnter: O,
|
|
93
|
+
isExpanded: m,
|
|
94
|
+
isActive: w,
|
|
95
|
+
collapse: Q
|
|
96
|
+
} = ee({
|
|
97
|
+
items: c(() => d.items),
|
|
98
|
+
mode: _,
|
|
99
|
+
activeKey: H,
|
|
100
|
+
expandedKeys: J,
|
|
101
|
+
onSelect: (a) => {
|
|
102
|
+
z("select", a), z("item-click", a);
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
let b = null;
|
|
106
|
+
function C(a) {
|
|
107
|
+
b && (clearTimeout(b), b = null), O(a);
|
|
108
|
+
}
|
|
109
|
+
function K(a) {
|
|
110
|
+
var p;
|
|
111
|
+
_.value === "horizontal" && ((p = a.children) != null && p.length) && (b = setTimeout(() => {
|
|
112
|
+
Q(a.key);
|
|
113
|
+
}, 200));
|
|
114
|
+
}
|
|
115
|
+
const U = c(() => [
|
|
116
|
+
"nm-menu",
|
|
117
|
+
`nm-menu--${_.value}`,
|
|
118
|
+
`nm-menu--${q.value}`,
|
|
119
|
+
`nm-menu--theme-${P.value}`,
|
|
120
|
+
{
|
|
121
|
+
"nm-menu--collapsed": d.collapsed,
|
|
122
|
+
"nm-menu--selectable": G.value
|
|
123
|
+
}
|
|
124
|
+
]), W = c(() => _.value === "horizontal" ? "menubar" : "menu");
|
|
125
|
+
function X(a) {
|
|
126
|
+
return [
|
|
127
|
+
"nm-menu__item",
|
|
128
|
+
{
|
|
129
|
+
"nm-menu__item--active": w(a.key),
|
|
130
|
+
"nm-menu__item--disabled": a.disabled,
|
|
131
|
+
"nm-menu__item--divided": a.divided,
|
|
132
|
+
"nm-menu__item--has-children": a.children && a.children.length > 0,
|
|
133
|
+
"nm-menu__item--expanded": m(a.key)
|
|
134
|
+
}
|
|
135
|
+
];
|
|
136
|
+
}
|
|
137
|
+
function $(a, p) {
|
|
138
|
+
p.disabled || x(a);
|
|
139
|
+
}
|
|
140
|
+
const E = c(() => [
|
|
141
|
+
"nm-menu__expand-icon",
|
|
142
|
+
{
|
|
143
|
+
"nm-menu__expand-icon--expanded": !1,
|
|
144
|
+
"nm-menu__expand-icon--horizontal": _.value === "horizontal"
|
|
145
|
+
}
|
|
146
|
+
]);
|
|
147
|
+
return (a, p) => (t(), o("nav", {
|
|
148
|
+
class: v(U.value),
|
|
149
|
+
role: W.value,
|
|
150
|
+
"aria-label": "Menu",
|
|
151
|
+
onKeydown: p[0] || (p[0] = //@ts-ignore
|
|
152
|
+
(...n) => l(x) && l(x)(...n))
|
|
153
|
+
}, [
|
|
154
|
+
u("ul", le, [
|
|
155
|
+
(t(!0), o(h, null, g(r.items, (n) => {
|
|
156
|
+
var I, B, S, T;
|
|
157
|
+
return t(), o(h, {
|
|
158
|
+
key: n.key
|
|
159
|
+
}, [
|
|
160
|
+
n.divided ? (t(), o("li", ie)) : i("", !0),
|
|
161
|
+
u("li", {
|
|
162
|
+
class: v(X(n)),
|
|
163
|
+
role: "menuitem",
|
|
164
|
+
"aria-disabled": n.disabled ?? !1,
|
|
165
|
+
"aria-expanded": (I = n.children) != null && I.length ? l(m)(n.key) : void 0,
|
|
166
|
+
"aria-haspopup": (B = n.children) != null && B.length ? "menu" : void 0,
|
|
167
|
+
tabindex: n.disabled ? -1 : 0,
|
|
168
|
+
onClick: N((e) => l(M)(n), ["stop"]),
|
|
169
|
+
onMouseenter: (e) => C(n),
|
|
170
|
+
onMouseleave: (e) => K(n),
|
|
171
|
+
onKeydown: (e) => $(e, n)
|
|
172
|
+
}, [
|
|
173
|
+
u("div", ue, [
|
|
174
|
+
n.icon ? (t(), o("span", re, k(n.icon), 1)) : i("", !0),
|
|
175
|
+
!r.collapsed || !n.icon ? (t(), o("span", me, k(n.label), 1)) : i("", !0),
|
|
176
|
+
(S = n.children) != null && S.length && !r.collapsed ? (t(), o("span", {
|
|
177
|
+
key: 2,
|
|
178
|
+
class: v([
|
|
179
|
+
...E.value,
|
|
180
|
+
{ "nm-menu__expand-icon--expanded": l(m)(n.key) }
|
|
181
|
+
]),
|
|
182
|
+
"aria-hidden": "true"
|
|
183
|
+
}, [
|
|
184
|
+
(t(), o("svg", ce, [
|
|
185
|
+
_.value === "vertical" ? (t(), o("path", _e)) : (t(), o("path", pe))
|
|
186
|
+
]))
|
|
187
|
+
], 2)) : i("", !0)
|
|
188
|
+
]),
|
|
189
|
+
(T = n.children) != null && T.length && l(m)(n.key) && !r.collapsed ? (t(), o("ul", {
|
|
190
|
+
key: 0,
|
|
191
|
+
class: "nm-menu__submenu",
|
|
192
|
+
role: "menu",
|
|
193
|
+
"aria-label": n.label
|
|
194
|
+
}, [
|
|
195
|
+
(t(!0), o(h, null, g(n.children, (e) => {
|
|
196
|
+
var A, L, R, j;
|
|
197
|
+
return t(), o(h, {
|
|
198
|
+
key: e.key
|
|
199
|
+
}, [
|
|
200
|
+
e.divided ? (t(), o("li", he)) : i("", !0),
|
|
201
|
+
u("li", {
|
|
202
|
+
class: v([
|
|
203
|
+
"nm-menu__item",
|
|
204
|
+
"nm-menu__item--sub",
|
|
205
|
+
{
|
|
206
|
+
"nm-menu__item--active": l(w)(e.key),
|
|
207
|
+
"nm-menu__item--disabled": e.disabled,
|
|
208
|
+
"nm-menu__item--has-children": e.children && e.children.length > 0,
|
|
209
|
+
"nm-menu__item--expanded": l(m)(e.key)
|
|
210
|
+
}
|
|
211
|
+
]),
|
|
212
|
+
role: "menuitem",
|
|
213
|
+
"aria-disabled": e.disabled ?? !1,
|
|
214
|
+
"aria-expanded": (A = e.children) != null && A.length ? l(m)(e.key) : void 0,
|
|
215
|
+
"aria-haspopup": (L = e.children) != null && L.length ? "menu" : void 0,
|
|
216
|
+
tabindex: e.disabled ? -1 : 0,
|
|
217
|
+
onClick: N((s) => l(M)(e), ["stop"]),
|
|
218
|
+
onMouseenter: (s) => C(e),
|
|
219
|
+
onMouseleave: (s) => K(e),
|
|
220
|
+
onKeydown: (s) => $(s, e)
|
|
221
|
+
}, [
|
|
222
|
+
u("div", be, [
|
|
223
|
+
e.icon ? (t(), o("span", ye, k(e.icon), 1)) : i("", !0),
|
|
224
|
+
u("span", fe, k(e.label), 1),
|
|
225
|
+
(R = e.children) != null && R.length ? (t(), o("span", {
|
|
226
|
+
key: 1,
|
|
227
|
+
class: v([
|
|
228
|
+
...E.value,
|
|
229
|
+
{ "nm-menu__expand-icon--expanded": l(m)(e.key) }
|
|
230
|
+
]),
|
|
231
|
+
"aria-hidden": "true"
|
|
232
|
+
}, [
|
|
233
|
+
(t(), o("svg", xe, [
|
|
234
|
+
_.value === "vertical" ? (t(), o("path", Me)) : (t(), o("path", we))
|
|
235
|
+
]))
|
|
236
|
+
], 2)) : i("", !0)
|
|
237
|
+
]),
|
|
238
|
+
(j = e.children) != null && j.length && l(m)(e.key) ? (t(), o("ul", {
|
|
239
|
+
key: 0,
|
|
240
|
+
class: "nm-menu__submenu",
|
|
241
|
+
role: "menu",
|
|
242
|
+
"aria-label": e.label
|
|
243
|
+
}, [
|
|
244
|
+
(t(!0), o(h, null, g(e.children, (s) => (t(), o(h, {
|
|
245
|
+
key: s.key
|
|
246
|
+
}, [
|
|
247
|
+
s.divided ? (t(), o("li", Ke)) : i("", !0),
|
|
248
|
+
u("li", {
|
|
249
|
+
class: v([
|
|
250
|
+
"nm-menu__item",
|
|
251
|
+
"nm-menu__item--sub",
|
|
252
|
+
"nm-menu__item--sub-deep",
|
|
253
|
+
{
|
|
254
|
+
"nm-menu__item--active": l(w)(s.key),
|
|
255
|
+
"nm-menu__item--disabled": s.disabled
|
|
256
|
+
}
|
|
257
|
+
]),
|
|
258
|
+
role: "menuitem",
|
|
259
|
+
"aria-disabled": s.disabled ?? !1,
|
|
260
|
+
tabindex: s.disabled ? -1 : 0,
|
|
261
|
+
onClick: N((y) => l(M)(s), ["stop"]),
|
|
262
|
+
onMouseenter: (y) => C(s),
|
|
263
|
+
onMouseleave: (y) => K(s),
|
|
264
|
+
onKeydown: (y) => $(y, s)
|
|
265
|
+
}, [
|
|
266
|
+
u("div", ge, [
|
|
267
|
+
s.icon ? (t(), o("span", Ne, k(s.icon), 1)) : i("", !0),
|
|
268
|
+
u("span", ze, k(s.label), 1)
|
|
269
|
+
])
|
|
270
|
+
], 42, $e)
|
|
271
|
+
], 64))), 128))
|
|
272
|
+
], 8, Ce)) : i("", !0)
|
|
273
|
+
], 42, ke)
|
|
274
|
+
], 64);
|
|
275
|
+
}), 128))
|
|
276
|
+
], 8, ve)) : i("", !0),
|
|
277
|
+
r.collapsed && n.icon ? (t(), Z(oe, {
|
|
278
|
+
key: 1,
|
|
279
|
+
content: n.label,
|
|
280
|
+
position: "right",
|
|
281
|
+
delay: 300,
|
|
282
|
+
disabled: !r.collapsed
|
|
283
|
+
}, null, 8, ["content", "disabled"])) : i("", !0)
|
|
284
|
+
], 42, de)
|
|
285
|
+
], 64);
|
|
286
|
+
}), 128)),
|
|
287
|
+
r.items.length === 0 ? (t(), o("li", Ee, "No menu items")) : i("", !0)
|
|
288
|
+
])
|
|
289
|
+
], 42, ae));
|
|
290
|
+
}
|
|
291
|
+
}), je = /* @__PURE__ */ se(Ie, [["__scopeId", "data-v-2ebaa4cf"]]);
|
|
292
|
+
export {
|
|
293
|
+
je as N
|
|
294
|
+
};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { defineComponent as D, computed as l, ref as E, watch as j, nextTick as q, openBlock as t, createBlock as A, Teleport as F, createVNode as h, Transition as k, withCtx as p, unref as u, createElementBlock as s, withModifiers as G, normalizeClass as w, createElementVNode as n, toDisplayString as f, createCommentVNode as d, renderSlot as b } from "vue";
|
|
2
|
+
import { useModal as H } from "../composables/useModal.js";
|
|
3
|
+
import { useConfig as J } from "../composables/useConfig.js";
|
|
4
|
+
import { useLocale as P } from "../composables/useLocale.js";
|
|
5
|
+
import { generateId as Q } from "../utils/index.js";
|
|
6
|
+
import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
import '../NeumorphismModal.css';const W = ["aria-labelledby"], X = { class: "nm-modal__header" }, Y = ["aria-label"], Z = { class: "nm-modal__body" }, ee = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "nm-modal__footer"
|
|
10
|
+
}, oe = /* @__PURE__ */ D({
|
|
11
|
+
__name: "NeumorphismModal",
|
|
12
|
+
props: {
|
|
13
|
+
modelValue: { type: Boolean, default: !1 },
|
|
14
|
+
title: {},
|
|
15
|
+
size: { default: "medium" },
|
|
16
|
+
closable: { type: Boolean, default: !0 },
|
|
17
|
+
maskClosable: { type: Boolean, default: !0 },
|
|
18
|
+
showClose: { type: Boolean, default: !0 },
|
|
19
|
+
destroyOnClose: { type: Boolean, default: !1 },
|
|
20
|
+
footer: { type: Boolean, default: !0 },
|
|
21
|
+
closeLabel: { default: "关闭" },
|
|
22
|
+
cancelLabel: { default: "取消" },
|
|
23
|
+
confirmLabel: { default: "确认" }
|
|
24
|
+
},
|
|
25
|
+
emits: ["update:modelValue", "open", "close", "confirm", "cancel"],
|
|
26
|
+
setup(a, { emit: L }) {
|
|
27
|
+
const o = a, { t: m } = P(), g = J(), B = l(() => {
|
|
28
|
+
var e;
|
|
29
|
+
return o.size ?? ((e = g.value.modal) == null ? void 0 : e.size) ?? "medium";
|
|
30
|
+
}), V = l(() => o.closeLabel || m("modalClose")), M = l(() => o.cancelLabel || m("modalCancel")), N = l(() => o.confirmLabel || m("modalConfirm")), i = L, z = l({
|
|
31
|
+
get: () => o.modelValue,
|
|
32
|
+
set: (e) => i("update:modelValue", e)
|
|
33
|
+
}), {
|
|
34
|
+
visible: c,
|
|
35
|
+
rendered: $,
|
|
36
|
+
close: _,
|
|
37
|
+
confirm: x,
|
|
38
|
+
handleKeydown: K,
|
|
39
|
+
focusDialog: I
|
|
40
|
+
} = H({
|
|
41
|
+
modelValue: z,
|
|
42
|
+
maskClosable: l(() => o.maskClosable),
|
|
43
|
+
closable: l(() => o.closable),
|
|
44
|
+
destroyOnClose: l(() => o.destroyOnClose)
|
|
45
|
+
}), r = E(), y = `nm-modal-title-${Q()}`;
|
|
46
|
+
j(c, async (e) => {
|
|
47
|
+
e && (await q(), I(r.value));
|
|
48
|
+
});
|
|
49
|
+
function O() {
|
|
50
|
+
o.maskClosable && o.closable && (_(), i("cancel"));
|
|
51
|
+
}
|
|
52
|
+
function C() {
|
|
53
|
+
_(), i("cancel");
|
|
54
|
+
}
|
|
55
|
+
function R() {
|
|
56
|
+
i("confirm"), x();
|
|
57
|
+
}
|
|
58
|
+
function S(e) {
|
|
59
|
+
K(e, r.value);
|
|
60
|
+
}
|
|
61
|
+
const T = l(() => ["nm-modal", `nm-modal--${B.value}`]);
|
|
62
|
+
return (e, v) => (t(), A(F, { to: "body" }, [
|
|
63
|
+
h(k, { name: "nm-modal-fade" }, {
|
|
64
|
+
default: p(() => [
|
|
65
|
+
u($) ? (t(), s("div", {
|
|
66
|
+
key: 0,
|
|
67
|
+
class: w(["nm-modal__mask", { "nm-modal__mask--visible": u(c) }]),
|
|
68
|
+
onClick: G(O, ["self"])
|
|
69
|
+
}, [
|
|
70
|
+
h(k, { name: "nm-modal-scale" }, {
|
|
71
|
+
default: p(() => [
|
|
72
|
+
u(c) ? (t(), s("div", {
|
|
73
|
+
key: 0,
|
|
74
|
+
ref_key: "dialogRef",
|
|
75
|
+
ref: r,
|
|
76
|
+
class: w(T.value),
|
|
77
|
+
role: "dialog",
|
|
78
|
+
"aria-modal": "true",
|
|
79
|
+
"aria-labelledby": a.title ? y : void 0,
|
|
80
|
+
tabindex: "-1",
|
|
81
|
+
onKeydown: S
|
|
82
|
+
}, [
|
|
83
|
+
n("div", X, [
|
|
84
|
+
a.title ? (t(), s("h2", {
|
|
85
|
+
key: 0,
|
|
86
|
+
id: y,
|
|
87
|
+
class: "nm-modal__title"
|
|
88
|
+
}, f(a.title), 1)) : d("", !0),
|
|
89
|
+
b(e.$slots, "header", {}, void 0, !0),
|
|
90
|
+
a.showClose && a.closable ? (t(), s("button", {
|
|
91
|
+
key: 1,
|
|
92
|
+
class: "nm-modal__close",
|
|
93
|
+
"aria-label": V.value,
|
|
94
|
+
type: "button",
|
|
95
|
+
onClick: C
|
|
96
|
+
}, [...v[0] || (v[0] = [
|
|
97
|
+
n("svg", {
|
|
98
|
+
width: "18",
|
|
99
|
+
height: "18",
|
|
100
|
+
viewBox: "0 0 24 24",
|
|
101
|
+
fill: "none",
|
|
102
|
+
stroke: "currentColor",
|
|
103
|
+
"stroke-width": "2"
|
|
104
|
+
}, [
|
|
105
|
+
n("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
106
|
+
], -1)
|
|
107
|
+
])], 8, Y)) : d("", !0)
|
|
108
|
+
]),
|
|
109
|
+
n("div", Z, [
|
|
110
|
+
b(e.$slots, "default", {}, void 0, !0)
|
|
111
|
+
]),
|
|
112
|
+
a.footer ? (t(), s("div", ee, [
|
|
113
|
+
b(e.$slots, "footer", {}, () => [
|
|
114
|
+
n("button", {
|
|
115
|
+
class: "nm-modal__btn nm-modal__btn--cancel",
|
|
116
|
+
type: "button",
|
|
117
|
+
onClick: C
|
|
118
|
+
}, f(M.value), 1),
|
|
119
|
+
n("button", {
|
|
120
|
+
class: "nm-modal__btn nm-modal__btn--confirm",
|
|
121
|
+
type: "button",
|
|
122
|
+
onClick: R
|
|
123
|
+
}, f(N.value), 1)
|
|
124
|
+
], !0)
|
|
125
|
+
])) : d("", !0)
|
|
126
|
+
], 42, W)) : d("", !0)
|
|
127
|
+
]),
|
|
128
|
+
_: 3
|
|
129
|
+
})
|
|
130
|
+
], 2)) : d("", !0)
|
|
131
|
+
]),
|
|
132
|
+
_: 3
|
|
133
|
+
})
|
|
134
|
+
]));
|
|
135
|
+
}
|
|
136
|
+
}), ie = /* @__PURE__ */ U(oe, [["__scopeId", "data-v-b04139cf"]]);
|
|
137
|
+
export {
|
|
138
|
+
ie as N
|
|
139
|
+
};
|