@nuwatop/code-canvas-core 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 +68 -0
- package/dist/_virtual/_plugin-vue_export-helper.esm.js +9 -0
- package/dist/_virtual/_plugin-vue_export-helper.js.js +1 -0
- package/dist/base/actionParser.d.ts +50 -0
- package/dist/base/actionParser.d.ts.map +1 -0
- package/dist/base/actionParser.esm.js +44 -0
- package/dist/base/actionParser.js.js +1 -0
- package/dist/base/baseUtils.d.ts +110 -0
- package/dist/base/baseUtils.d.ts.map +1 -0
- package/dist/base/baseUtils.esm.js +183 -0
- package/dist/base/baseUtils.js.js +1 -0
- package/dist/base/index.d.ts +7 -0
- package/dist/base/index.d.ts.map +1 -0
- package/dist/base/moduleLoader.d.ts +8 -0
- package/dist/base/moduleLoader.d.ts.map +1 -0
- package/dist/base/moduleLoader.esm.js +19 -0
- package/dist/base/moduleLoader.js.js +1 -0
- package/dist/base/mountVueComponent.d.ts +23 -0
- package/dist/base/mountVueComponent.d.ts.map +1 -0
- package/dist/base/mountVueComponent.esm.js +78 -0
- package/dist/base/mountVueComponent.js.js +1 -0
- package/dist/base/store/AndStore.d.ts +17 -0
- package/dist/base/store/AndStore.d.ts.map +1 -0
- package/dist/base/store/andStore.esm.js +76 -0
- package/dist/base/store/andStore.js.js +1 -0
- package/dist/base/useStore.d.ts +121 -0
- package/dist/base/useStore.d.ts.map +1 -0
- package/dist/base/useStore.esm.js +169 -0
- package/dist/base/useStore.js.js +1 -0
- package/dist/components/AndAlert.vue.d.ts +27 -0
- package/dist/components/AndAlert.vue.d.ts.map +1 -0
- package/dist/components/AndAlert.vue.esm.js +61 -0
- package/dist/components/AndAlert.vue.esm2.js +4 -0
- package/dist/components/AndAlert.vue.js.js +1 -0
- package/dist/components/AndAlert.vue.js2.js +1 -0
- package/dist/components/AndAutoComplete.vue.d.ts +40 -0
- package/dist/components/AndAutoComplete.vue.d.ts.map +1 -0
- package/dist/components/AndAutoComplete.vue.esm.js +7 -0
- package/dist/components/AndAutoComplete.vue.esm2.js +74 -0
- package/dist/components/AndAutoComplete.vue.esm3.js +1 -0
- package/dist/components/AndAutoComplete.vue.js.js +1 -0
- package/dist/components/AndAutoComplete.vue.js2.js +1 -0
- package/dist/components/AndAutoComplete.vue.js3.js +1 -0
- package/dist/components/AndAvatar.vue.d.ts +25 -0
- package/dist/components/AndAvatar.vue.d.ts.map +1 -0
- package/dist/components/AndAvatar.vue.esm.js +48 -0
- package/dist/components/AndAvatar.vue.esm2.js +4 -0
- package/dist/components/AndAvatar.vue.js.js +1 -0
- package/dist/components/AndAvatar.vue.js2.js +1 -0
- package/dist/components/AndBreadCrumb.vue.d.ts +20 -0
- package/dist/components/AndBreadCrumb.vue.d.ts.map +1 -0
- package/dist/components/AndBreadCrumb.vue.esm.js +29 -0
- package/dist/components/AndBreadCrumb.vue.esm2.js +4 -0
- package/dist/components/AndBreadCrumb.vue.js.js +1 -0
- package/dist/components/AndBreadCrumb.vue.js2.js +1 -0
- package/dist/components/AndButton.vue.d.ts +28 -0
- package/dist/components/AndButton.vue.d.ts.map +1 -0
- package/dist/components/AndButton.vue.esm.js +57 -0
- package/dist/components/AndButton.vue.esm2.js +4 -0
- package/dist/components/AndButton.vue.js.js +1 -0
- package/dist/components/AndButton.vue.js2.js +1 -0
- package/dist/components/AndCalendar.vue.d.ts +16 -0
- package/dist/components/AndCalendar.vue.d.ts.map +1 -0
- package/dist/components/AndCalendar.vue.esm.js +19 -0
- package/dist/components/AndCalendar.vue.esm2.js +4 -0
- package/dist/components/AndCalendar.vue.js.js +1 -0
- package/dist/components/AndCalendar.vue.js2.js +1 -0
- package/dist/components/AndCard.vue.d.ts +25 -0
- package/dist/components/AndCard.vue.d.ts.map +1 -0
- package/dist/components/AndCard.vue.esm.js +7 -0
- package/dist/components/AndCard.vue.esm2.js +66 -0
- package/dist/components/AndCard.vue.esm3.js +1 -0
- package/dist/components/AndCard.vue.js.js +1 -0
- package/dist/components/AndCard.vue.js2.js +1 -0
- package/dist/components/AndCard.vue.js3.js +1 -0
- package/dist/components/AndCarousel.vue.d.ts +28 -0
- package/dist/components/AndCarousel.vue.d.ts.map +1 -0
- package/dist/components/AndCarousel.vue.esm.js +7 -0
- package/dist/components/AndCarousel.vue.esm2.js +100 -0
- package/dist/components/AndCarousel.vue.esm3.js +1 -0
- package/dist/components/AndCarousel.vue.js.js +1 -0
- package/dist/components/AndCarousel.vue.js2.js +1 -0
- package/dist/components/AndCarousel.vue.js3.js +1 -0
- package/dist/components/AndCascade.vue.d.ts +29 -0
- package/dist/components/AndCascade.vue.d.ts.map +1 -0
- package/dist/components/AndCascade.vue.esm.js +7 -0
- package/dist/components/AndCascade.vue.esm2.js +132 -0
- package/dist/components/AndCascade.vue.esm3.js +1 -0
- package/dist/components/AndCascade.vue.js.js +1 -0
- package/dist/components/AndCascade.vue.js2.js +1 -0
- package/dist/components/AndCascade.vue.js3.js +1 -0
- package/dist/components/AndCheck.vue.d.ts +32 -0
- package/dist/components/AndCheck.vue.d.ts.map +1 -0
- package/dist/components/AndCheck.vue.esm.js +7 -0
- package/dist/components/AndCheck.vue.esm2.js +136 -0
- package/dist/components/AndCheck.vue.esm3.js +1 -0
- package/dist/components/AndCheck.vue.js.js +1 -0
- package/dist/components/AndCheck.vue.js2.js +1 -0
- package/dist/components/AndCheck.vue.js3.js +1 -0
- package/dist/components/AndDatePicker.vue.d.ts +25 -0
- package/dist/components/AndDatePicker.vue.d.ts.map +1 -0
- package/dist/components/AndDatePicker.vue.esm.js +7 -0
- package/dist/components/AndDatePicker.vue.esm2.js +64 -0
- package/dist/components/AndDatePicker.vue.esm3.js +1 -0
- package/dist/components/AndDatePicker.vue.js.js +1 -0
- package/dist/components/AndDatePicker.vue.js2.js +1 -0
- package/dist/components/AndDatePicker.vue.js3.js +1 -0
- package/dist/components/AndDrawer.vue.d.ts +45 -0
- package/dist/components/AndDrawer.vue.d.ts.map +1 -0
- package/dist/components/AndDrawer.vue.esm.js +7 -0
- package/dist/components/AndDrawer.vue.esm2.js +76 -0
- package/dist/components/AndDrawer.vue.esm3.js +1 -0
- package/dist/components/AndDrawer.vue.js.js +1 -0
- package/dist/components/AndDrawer.vue.js2.js +1 -0
- package/dist/components/AndDrawer.vue.js3.js +1 -0
- package/dist/components/AndDropdownMenu.vue.d.ts +22 -0
- package/dist/components/AndDropdownMenu.vue.d.ts.map +1 -0
- package/dist/components/AndDropdownMenu.vue.esm.js +50 -0
- package/dist/components/AndDropdownMenu.vue.esm2.js +4 -0
- package/dist/components/AndDropdownMenu.vue.js.js +1 -0
- package/dist/components/AndDropdownMenu.vue.js2.js +1 -0
- package/dist/components/AndFormItem.vue.d.ts +26 -0
- package/dist/components/AndFormItem.vue.d.ts.map +1 -0
- package/dist/components/AndFormItem.vue.esm.js +45 -0
- package/dist/components/AndFormItem.vue.esm2.js +4 -0
- package/dist/components/AndFormItem.vue.js.js +1 -0
- package/dist/components/AndFormItem.vue.js2.js +1 -0
- package/dist/components/AndIcon.vue.d.ts +39 -0
- package/dist/components/AndIcon.vue.d.ts.map +1 -0
- package/dist/components/AndIcon.vue.esm.js +14 -0
- package/dist/components/AndIcon.vue.esm2.js +4 -0
- package/dist/components/AndIcon.vue.js.js +1 -0
- package/dist/components/AndIcon.vue.js2.js +1 -0
- package/dist/components/AndImage.vue.d.ts +31 -0
- package/dist/components/AndImage.vue.d.ts.map +1 -0
- package/dist/components/AndImage.vue.esm.js +7 -0
- package/dist/components/AndImage.vue.esm2.js +58 -0
- package/dist/components/AndImage.vue.esm3.js +1 -0
- package/dist/components/AndImage.vue.js.js +1 -0
- package/dist/components/AndImage.vue.js2.js +1 -0
- package/dist/components/AndImage.vue.js3.js +1 -0
- package/dist/components/AndImageGroup.vue.d.ts +18 -0
- package/dist/components/AndImageGroup.vue.d.ts.map +1 -0
- package/dist/components/AndImageGroup.vue.esm.js +7 -0
- package/dist/components/AndImageGroup.vue.esm2.js +101 -0
- package/dist/components/AndImageGroup.vue.esm3.js +1 -0
- package/dist/components/AndImageGroup.vue.js.js +1 -0
- package/dist/components/AndImageGroup.vue.js2.js +1 -0
- package/dist/components/AndImageGroup.vue.js3.js +1 -0
- package/dist/components/AndInput.vue.d.ts +36 -0
- package/dist/components/AndInput.vue.d.ts.map +1 -0
- package/dist/components/AndInput.vue.esm.js +7 -0
- package/dist/components/AndInput.vue.esm2.js +106 -0
- package/dist/components/AndInput.vue.esm3.js +1 -0
- package/dist/components/AndInput.vue.js.js +1 -0
- package/dist/components/AndInput.vue.js2.js +1 -0
- package/dist/components/AndInput.vue.js3.js +1 -0
- package/dist/components/AndInputArea.vue.d.ts +23 -0
- package/dist/components/AndInputArea.vue.d.ts.map +1 -0
- package/dist/components/AndInputArea.vue.esm.js +7 -0
- package/dist/components/AndInputArea.vue.esm2.js +55 -0
- package/dist/components/AndInputArea.vue.esm3.js +1 -0
- package/dist/components/AndInputArea.vue.js.js +1 -0
- package/dist/components/AndInputArea.vue.js2.js +1 -0
- package/dist/components/AndInputArea.vue.js3.js +1 -0
- package/dist/components/AndInputNumber.vue.d.ts +29 -0
- package/dist/components/AndInputNumber.vue.d.ts.map +1 -0
- package/dist/components/AndInputNumber.vue.esm.js +7 -0
- package/dist/components/AndInputNumber.vue.esm2.js +88 -0
- package/dist/components/AndInputNumber.vue.esm3.js +1 -0
- package/dist/components/AndInputNumber.vue.js.js +1 -0
- package/dist/components/AndInputNumber.vue.js2.js +1 -0
- package/dist/components/AndInputNumber.vue.js3.js +1 -0
- package/dist/components/AndInputPassword.vue.d.ts +23 -0
- package/dist/components/AndInputPassword.vue.d.ts.map +1 -0
- package/dist/components/AndInputPassword.vue.esm.js +7 -0
- package/dist/components/AndInputPassword.vue.esm2.js +53 -0
- package/dist/components/AndInputPassword.vue.esm3.js +1 -0
- package/dist/components/AndInputPassword.vue.js.js +1 -0
- package/dist/components/AndInputPassword.vue.js2.js +1 -0
- package/dist/components/AndInputPassword.vue.js3.js +1 -0
- package/dist/components/AndInputSearch.vue.d.ts +27 -0
- package/dist/components/AndInputSearch.vue.d.ts.map +1 -0
- package/dist/components/AndInputSearch.vue.esm.js +52 -0
- package/dist/components/AndInputSearch.vue.esm2.js +4 -0
- package/dist/components/AndInputSearch.vue.js.js +1 -0
- package/dist/components/AndInputSearch.vue.js2.js +1 -0
- package/dist/components/AndIterator.vue.d.ts +44 -0
- package/dist/components/AndIterator.vue.d.ts.map +1 -0
- package/dist/components/AndIterator.vue.esm.js +91 -0
- package/dist/components/AndIterator.vue.esm2.js +4 -0
- package/dist/components/AndIterator.vue.js.js +1 -0
- package/dist/components/AndIterator.vue.js2.js +1 -0
- package/dist/components/AndMenu.vue.d.ts +16 -0
- package/dist/components/AndMenu.vue.d.ts.map +1 -0
- package/dist/components/AndMenu.vue.esm.js +22 -0
- package/dist/components/AndMenu.vue.esm2.js +4 -0
- package/dist/components/AndMenu.vue.js.js +1 -0
- package/dist/components/AndMenu.vue.js2.js +1 -0
- package/dist/components/AndModal.vue.d.ts +44 -0
- package/dist/components/AndModal.vue.d.ts.map +1 -0
- package/dist/components/AndModal.vue.esm.js +40 -0
- package/dist/components/AndModal.vue.esm2.js +4 -0
- package/dist/components/AndModal.vue.js.js +1 -0
- package/dist/components/AndModal.vue.js2.js +1 -0
- package/dist/components/AndPagination.vue.d.ts +30 -0
- package/dist/components/AndPagination.vue.d.ts.map +1 -0
- package/dist/components/AndPagination.vue.esm.js +97 -0
- package/dist/components/AndPagination.vue.esm2.js +4 -0
- package/dist/components/AndPagination.vue.js.js +1 -0
- package/dist/components/AndPagination.vue.js2.js +1 -0
- package/dist/components/AndParagraph.vue.d.ts +27 -0
- package/dist/components/AndParagraph.vue.d.ts.map +1 -0
- package/dist/components/AndParagraph.vue.esm.js +46 -0
- package/dist/components/AndParagraph.vue.esm2.js +4 -0
- package/dist/components/AndParagraph.vue.js.js +1 -0
- package/dist/components/AndParagraph.vue.js2.js +1 -0
- package/dist/components/AndProductCategory.vue.d.ts +3 -0
- package/dist/components/AndProductCategory.vue.d.ts.map +1 -0
- package/dist/components/AndProductCategory.vue.esm.js +340 -0
- package/dist/components/AndProductCategory.vue.esm2.js +1 -0
- package/dist/components/AndProductCategory.vue.js.js +1 -0
- package/dist/components/AndProductCategory.vue.js2.js +1 -0
- package/dist/components/AndQRCode.vue.d.ts +37 -0
- package/dist/components/AndQRCode.vue.d.ts.map +1 -0
- package/dist/components/AndQRCode.vue.esm.js +50 -0
- package/dist/components/AndQRCode.vue.esm2.js +4 -0
- package/dist/components/AndQRCode.vue.js.js +1 -0
- package/dist/components/AndQRCode.vue.js2.js +1 -0
- package/dist/components/AndRadio.vue.d.ts +32 -0
- package/dist/components/AndRadio.vue.d.ts.map +1 -0
- package/dist/components/AndRadio.vue.esm.js +7 -0
- package/dist/components/AndRadio.vue.esm2.js +128 -0
- package/dist/components/AndRadio.vue.esm3.js +1 -0
- package/dist/components/AndRadio.vue.js.js +1 -0
- package/dist/components/AndRadio.vue.js2.js +1 -0
- package/dist/components/AndRadio.vue.js3.js +1 -0
- package/dist/components/AndRangePicker.vue.d.ts +16 -0
- package/dist/components/AndRangePicker.vue.d.ts.map +1 -0
- package/dist/components/AndRangePicker.vue.esm.js +54 -0
- package/dist/components/AndRangePicker.vue.esm2.js +4 -0
- package/dist/components/AndRangePicker.vue.js.js +1 -0
- package/dist/components/AndRangePicker.vue.js2.js +1 -0
- package/dist/components/AndRate.vue.d.ts +27 -0
- package/dist/components/AndRate.vue.d.ts.map +1 -0
- package/dist/components/AndRate.vue.esm.js +58 -0
- package/dist/components/AndRate.vue.esm2.js +4 -0
- package/dist/components/AndRate.vue.js.js +1 -0
- package/dist/components/AndRate.vue.js2.js +1 -0
- package/dist/components/AndResult.vue.d.ts +22 -0
- package/dist/components/AndResult.vue.d.ts.map +1 -0
- package/dist/components/AndResult.vue.esm.js +16 -0
- package/dist/components/AndResult.vue.esm2.js +4 -0
- package/dist/components/AndResult.vue.js.js +1 -0
- package/dist/components/AndResult.vue.js2.js +1 -0
- package/dist/components/AndSelect.vue.d.ts +18 -0
- package/dist/components/AndSelect.vue.d.ts.map +1 -0
- package/dist/components/AndSelect.vue.esm.js +7 -0
- package/dist/components/AndSelect.vue.esm2.js +128 -0
- package/dist/components/AndSelect.vue.esm3.js +1 -0
- package/dist/components/AndSelect.vue.js.js +1 -0
- package/dist/components/AndSelect.vue.js2.js +1 -0
- package/dist/components/AndSelect.vue.js3.js +1 -0
- package/dist/components/AndSimpleForm.vue.d.ts +45 -0
- package/dist/components/AndSimpleForm.vue.d.ts.map +1 -0
- package/dist/components/AndSimpleForm.vue.esm.js +7 -0
- package/dist/components/AndSimpleForm.vue.esm2.js +175 -0
- package/dist/components/AndSimpleForm.vue.esm3.js +1 -0
- package/dist/components/AndSimpleForm.vue.js.js +1 -0
- package/dist/components/AndSimpleForm.vue.js2.js +1 -0
- package/dist/components/AndSimpleForm.vue.js3.js +1 -0
- package/dist/components/AndSlider.vue.d.ts +16 -0
- package/dist/components/AndSlider.vue.d.ts.map +1 -0
- package/dist/components/AndSlider.vue.esm.js +7 -0
- package/dist/components/AndSlider.vue.esm2.js +19 -0
- package/dist/components/AndSlider.vue.esm3.js +1 -0
- package/dist/components/AndSlider.vue.js.js +1 -0
- package/dist/components/AndSlider.vue.js2.js +1 -0
- package/dist/components/AndSlider.vue.js3.js +1 -0
- package/dist/components/AndStatistics.vue.d.ts +16 -0
- package/dist/components/AndStatistics.vue.d.ts.map +1 -0
- package/dist/components/AndStatistics.vue.esm.js +19 -0
- package/dist/components/AndStatistics.vue.esm2.js +4 -0
- package/dist/components/AndStatistics.vue.js.js +1 -0
- package/dist/components/AndStatistics.vue.js2.js +1 -0
- package/dist/components/AndStatisticsCountdown.vue.d.ts +16 -0
- package/dist/components/AndStatisticsCountdown.vue.d.ts.map +1 -0
- package/dist/components/AndStatisticsCountdown.vue.esm.js +19 -0
- package/dist/components/AndStatisticsCountdown.vue.esm2.js +4 -0
- package/dist/components/AndStatisticsCountdown.vue.js.js +1 -0
- package/dist/components/AndStatisticsCountdown.vue.js2.js +1 -0
- package/dist/components/AndSteps.vue.d.ts +42 -0
- package/dist/components/AndSteps.vue.d.ts.map +1 -0
- package/dist/components/AndSteps.vue.esm.js +84 -0
- package/dist/components/AndSteps.vue.esm2.js +4 -0
- package/dist/components/AndSteps.vue.js.js +1 -0
- package/dist/components/AndSteps.vue.js2.js +1 -0
- package/dist/components/AndSwitch.vue.d.ts +26 -0
- package/dist/components/AndSwitch.vue.d.ts.map +1 -0
- package/dist/components/AndSwitch.vue.esm.js +49 -0
- package/dist/components/AndSwitch.vue.esm2.js +4 -0
- package/dist/components/AndSwitch.vue.js.js +1 -0
- package/dist/components/AndSwitch.vue.js2.js +1 -0
- package/dist/components/AndTabPane.vue.d.ts +23 -0
- package/dist/components/AndTabPane.vue.d.ts.map +1 -0
- package/dist/components/AndTabPane.vue.esm.js +21 -0
- package/dist/components/AndTabPane.vue.esm2.js +4 -0
- package/dist/components/AndTabPane.vue.js.js +1 -0
- package/dist/components/AndTabPane.vue.js2.js +1 -0
- package/dist/components/AndTable.vue.d.ts +43 -0
- package/dist/components/AndTable.vue.d.ts.map +1 -0
- package/dist/components/AndTable.vue.esm.js +7 -0
- package/dist/components/AndTable.vue.esm2.js +326 -0
- package/dist/components/AndTable.vue.esm3.js +1 -0
- package/dist/components/AndTable.vue.js.js +1 -0
- package/dist/components/AndTable.vue.js2.js +1 -0
- package/dist/components/AndTable.vue.js3.js +1 -0
- package/dist/components/AndTableColumnFilter.vue.d.ts +22 -0
- package/dist/components/AndTableColumnFilter.vue.d.ts.map +1 -0
- package/dist/components/AndTableColumnFilter.vue.esm.js +7 -0
- package/dist/components/AndTableColumnFilter.vue.esm2.js +102 -0
- package/dist/components/AndTableColumnFilter.vue.esm3.js +1 -0
- package/dist/components/AndTableColumnFilter.vue.js.js +1 -0
- package/dist/components/AndTableColumnFilter.vue.js2.js +1 -0
- package/dist/components/AndTableColumnFilter.vue.js3.js +1 -0
- package/dist/components/AndTableFormat.d.ts +56 -0
- package/dist/components/AndTableFormat.d.ts.map +1 -0
- package/dist/components/AndTableFormat.esm.js +118 -0
- package/dist/components/AndTableFormat.js.js +1 -0
- package/dist/components/AndTabs.vue.d.ts +41 -0
- package/dist/components/AndTabs.vue.d.ts.map +1 -0
- package/dist/components/AndTabs.vue.esm.js +113 -0
- package/dist/components/AndTabs.vue.esm2.js +4 -0
- package/dist/components/AndTabs.vue.js.js +1 -0
- package/dist/components/AndTabs.vue.js2.js +1 -0
- package/dist/components/AndTag.vue.d.ts +41 -0
- package/dist/components/AndTag.vue.d.ts.map +1 -0
- package/dist/components/AndTag.vue.esm.js +107 -0
- package/dist/components/AndTag.vue.esm2.js +4 -0
- package/dist/components/AndTag.vue.js.js +1 -0
- package/dist/components/AndTag.vue.js2.js +1 -0
- package/dist/components/AndText.vue.d.ts +33 -0
- package/dist/components/AndText.vue.d.ts.map +1 -0
- package/dist/components/AndText.vue.esm.js +106 -0
- package/dist/components/AndText.vue.esm2.js +4 -0
- package/dist/components/AndText.vue.js.js +1 -0
- package/dist/components/AndText.vue.js2.js +1 -0
- package/dist/components/AndTimePicker.vue.d.ts +16 -0
- package/dist/components/AndTimePicker.vue.d.ts.map +1 -0
- package/dist/components/AndTimePicker.vue.esm.js +19 -0
- package/dist/components/AndTimePicker.vue.esm2.js +4 -0
- package/dist/components/AndTimePicker.vue.js.js +1 -0
- package/dist/components/AndTimePicker.vue.js2.js +1 -0
- package/dist/components/AndTimeline.vue.d.ts +32 -0
- package/dist/components/AndTimeline.vue.d.ts.map +1 -0
- package/dist/components/AndTimeline.vue.esm.js +92 -0
- package/dist/components/AndTimeline.vue.esm2.js +4 -0
- package/dist/components/AndTimeline.vue.js.js +1 -0
- package/dist/components/AndTimeline.vue.js2.js +1 -0
- package/dist/components/AndTitle.vue.d.ts +23 -0
- package/dist/components/AndTitle.vue.d.ts.map +1 -0
- package/dist/components/AndTitle.vue.esm.js +24 -0
- package/dist/components/AndTitle.vue.esm2.js +4 -0
- package/dist/components/AndTitle.vue.js.js +1 -0
- package/dist/components/AndTitle.vue.js2.js +1 -0
- package/dist/components/AndTree.vue.d.ts +48 -0
- package/dist/components/AndTree.vue.d.ts.map +1 -0
- package/dist/components/AndTree.vue.esm.js +64 -0
- package/dist/components/AndTree.vue.esm2.js +4 -0
- package/dist/components/AndTree.vue.js.js +1 -0
- package/dist/components/AndTree.vue.js2.js +1 -0
- package/dist/components/AndTreeSelect.vue.d.ts +16 -0
- package/dist/components/AndTreeSelect.vue.d.ts.map +1 -0
- package/dist/components/AndTreeSelect.vue.esm.js +19 -0
- package/dist/components/AndTreeSelect.vue.esm2.js +4 -0
- package/dist/components/AndTreeSelect.vue.js.js +1 -0
- package/dist/components/AndTreeSelect.vue.js2.js +1 -0
- package/dist/components/AndUpload.vue.d.ts +28 -0
- package/dist/components/AndUpload.vue.d.ts.map +1 -0
- package/dist/components/AndUpload.vue.esm.js +7 -0
- package/dist/components/AndUpload.vue.esm2.js +185 -0
- package/dist/components/AndUpload.vue.esm3.js +1 -0
- package/dist/components/AndUpload.vue.js.js +1 -0
- package/dist/components/AndUpload.vue.js2.js +1 -0
- package/dist/components/AndUpload.vue.js3.js +1 -0
- package/dist/components/TableColumnSetting.vue.d.ts +20 -0
- package/dist/components/TableColumnSetting.vue.d.ts.map +1 -0
- package/dist/components/TableColumnSetting.vue.esm.js +135 -0
- package/dist/components/TableColumnSetting.vue.esm2.js +4 -0
- package/dist/components/TableColumnSetting.vue.js.js +1 -0
- package/dist/components/TableColumnSetting.vue.js2.js +1 -0
- package/dist/components/UploadFile/src/useUpload.d.ts +8 -0
- package/dist/components/UploadFile/src/useUpload.d.ts.map +1 -0
- package/dist/components/UploadFile/src/useUpload.esm.js +12 -0
- package/dist/components/UploadFile/src/useUpload.js.js +1 -0
- package/dist/components/index.d.ts +55 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/config/index.d.ts +43 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.esm.js +25 -0
- package/dist/config/index.js.js +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +181 -0
- package/dist/index.js.js +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.26.0/node_modules/@babel/runtime/helpers/esm/extends.esm.js +13 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.26.0/node_modules/@babel/runtime/helpers/esm/extends.js.js +1 -0
- package/dist/node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.12_typescript@5.3.3_/node_modules/ant-design-vue/es/calendar/locale/zh_CN.esm.js +4 -0
- package/dist/node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.12_typescript@5.3.3_/node_modules/ant-design-vue/es/calendar/locale/zh_CN.js.js +1 -0
- package/dist/node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.12_typescript@5.3.3_/node_modules/ant-design-vue/es/config-provider/context.esm.js +7 -0
- package/dist/node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.12_typescript@5.3.3_/node_modules/ant-design-vue/es/config-provider/context.js.js +1 -0
- package/dist/node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.12_typescript@5.3.3_/node_modules/ant-design-vue/es/date-picker/locale/zh_CN.esm.js +22 -0
- package/dist/node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.12_typescript@5.3.3_/node_modules/ant-design-vue/es/date-picker/locale/zh_CN.js.js +1 -0
- package/dist/node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.12_typescript@5.3.3_/node_modules/ant-design-vue/es/locale/zh_CN.esm.js +140 -0
- package/dist/node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.12_typescript@5.3.3_/node_modules/ant-design-vue/es/locale/zh_CN.js.js +1 -0
- package/dist/node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.12_typescript@5.3.3_/node_modules/ant-design-vue/es/time-picker/locale/zh_CN.esm.js +7 -0
- package/dist/node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.12_typescript@5.3.3_/node_modules/ant-design-vue/es/time-picker/locale/zh_CN.js.js +1 -0
- package/dist/node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.12_typescript@5.3.3_/node_modules/ant-design-vue/es/vc-pagination/locale/zh_CN.esm.js +17 -0
- package/dist/node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.12_typescript@5.3.3_/node_modules/ant-design-vue/es/vc-pagination/locale/zh_CN.js.js +1 -0
- package/dist/node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.12_typescript@5.3.3_/node_modules/ant-design-vue/es/vc-picker/locale/zh_CN.esm.js +31 -0
- package/dist/node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.12_typescript@5.3.3_/node_modules/ant-design-vue/es/vc-picker/locale/zh_CN.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.esm.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.esm.js +20 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.esm.js +20 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.esm.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.esm.js +20 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.esm.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.esm.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.esm.js +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.esm.js +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.esm.js +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.esm.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.esm.js +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.esm.js +20 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.esm.js +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.esm.js +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssign.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssign.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignIn.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignIn.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.esm.js +12 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.esm.js +65 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.esm.js +17 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.esm.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.esm.js +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.esm.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.esm.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.esm.js +16 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.esm.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.esm.js +12 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.esm.js +14 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.esm.js +15 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.esm.js +11 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.esm.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.esm.js +14 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbols.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbols.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbolsIn.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbolsIn.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.esm.js +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.esm.js +11 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.esm.js +4 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.esm.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeysIn.esm.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeysIn.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.esm.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.esm.js +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.esm.js +15 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.esm.js +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbolsIn.esm.js +12 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbolsIn.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.esm.js +28 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.esm.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.esm.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.esm.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.esm.js +13 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.esm.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.esm.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.esm.js +42 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.esm.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.esm.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.esm.js +11 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.esm.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.esm.js +12 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.esm.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.esm.js +13 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.esm.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.esm.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.esm.js +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.esm.js +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.esm.js +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.esm.js +11 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.esm.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.esm.js +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.esm.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.esm.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.esm.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.esm.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.esm.js +17 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.esm.js +17 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeep.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeep.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.esm.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.esm.js +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.esm.js +4 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.esm.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.esm.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.esm.js +12 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.esm.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.esm.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.esm.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.esm.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.esm.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.esm.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.esm.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.esm.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.esm.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.js.js +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.esm.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.js.js +1 -0
- package/dist/runtime/Running.d.ts +7 -0
- package/dist/runtime/Running.d.ts.map +1 -0
- package/dist/runtime/Running.esm.js +39 -0
- package/dist/runtime/Running.js.js +1 -0
- package/dist/runtime/index.d.ts +2 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.esm.js +6 -0
- package/dist/runtime/index.js.js +1 -0
- package/dist/style.css +1 -0
- package/dist/types/common.d.ts +18 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/auth.d.ts +3 -0
- package/dist/utils/auth.d.ts.map +1 -0
- package/dist/utils/auth.esm.js +11 -0
- package/dist/utils/auth.js.js +1 -0
- package/dist/utils/base.d.ts +6 -0
- package/dist/utils/base.d.ts.map +1 -0
- package/dist/utils/base.esm.js +15 -0
- package/dist/utils/base.js.js +1 -0
- package/dist/utils/dict.d.ts +3 -0
- package/dist/utils/dict.d.ts.map +1 -0
- package/dist/utils/dict.esm.js +11 -0
- package/dist/utils/dict.js.js +1 -0
- package/dist/utils/formatter.d.ts +60 -0
- package/dist/utils/formatter.d.ts.map +1 -0
- package/dist/utils/formatter.esm.js +594 -0
- package/dist/utils/formatter.js.js +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/is.d.ts +6 -0
- package/dist/utils/is.d.ts.map +1 -0
- package/dist/utils/is.esm.js +10 -0
- package/dist/utils/is.js.js +1 -0
- package/dist/utils/request.d.ts +6 -0
- package/dist/utils/request.d.ts.map +1 -0
- package/dist/utils/request.esm.js +11 -0
- package/dist/utils/request.js.js +1 -0
- package/dist/utils/runCommonUtils.d.ts +73 -0
- package/dist/utils/runCommonUtils.d.ts.map +1 -0
- package/dist/utils/runCommonUtils.esm.js +112 -0
- package/dist/utils/runCommonUtils.js.js +1 -0
- package/package.json +65 -0
package/README.md
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# @nuwatop/code-canvas-core
|
|
2
|
+
|
|
3
|
+
Core components and utilities for code-canvas visualization editor.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @nuwatop/code-canvas-core
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
### Configuration
|
|
14
|
+
|
|
15
|
+
Before using the core package, you need to configure the request and upload handlers:
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { setCoreConfig } from '@nuwatop/code-canvas-core';
|
|
19
|
+
|
|
20
|
+
setCoreConfig({
|
|
21
|
+
request: async (config) => {
|
|
22
|
+
// Your request implementation
|
|
23
|
+
return await fetch(config.baseURL, {
|
|
24
|
+
method: 'GET',
|
|
25
|
+
headers: config.headers
|
|
26
|
+
});
|
|
27
|
+
},
|
|
28
|
+
upload: async (file, config) => {
|
|
29
|
+
// Your upload implementation
|
|
30
|
+
const formData = new FormData();
|
|
31
|
+
formData.append('file', file);
|
|
32
|
+
return await fetch(config?.url || '/upload', {
|
|
33
|
+
method: 'POST',
|
|
34
|
+
body: formData,
|
|
35
|
+
headers: config?.headers
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Components
|
|
42
|
+
|
|
43
|
+
All And-* components are available for import:
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
46
|
+
import { AndButton, AndInput, AndText } from '@nuwatop/code-canvas-core';
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Runtime
|
|
50
|
+
|
|
51
|
+
Initialize the runtime module:
|
|
52
|
+
|
|
53
|
+
```typescript
|
|
54
|
+
import { initRuntime } from '@nuwatop/code-canvas-core/runtime';
|
|
55
|
+
|
|
56
|
+
initRuntime({
|
|
57
|
+
utils: yourUtils,
|
|
58
|
+
moduleLoader: async (moduleName) => {
|
|
59
|
+
// Load your module
|
|
60
|
+
return await import(`./modules/${moduleName}`);
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## License
|
|
66
|
+
|
|
67
|
+
MIT
|
|
68
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=(t,r)=>{const o=t.__vccOpts||t;for(const[s,c]of r)o[s]=c;return o};module.exports=e;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 动作解析器 - 用于解析组件配置中的动作字符串
|
|
3
|
+
* 支持多种参数格式:@value, @dataSet, 字符串, 数字等
|
|
4
|
+
*/
|
|
5
|
+
export interface ParsedAction {
|
|
6
|
+
actionName: string;
|
|
7
|
+
arg: any;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 解析动作字符串的通用函数
|
|
11
|
+
* @param actionString 动作字符串,如 "updateValue(@value, @dataSet)" 或 "submit"
|
|
12
|
+
* @param contextValue 上下文值,通常是事件触发时的值
|
|
13
|
+
* @param contextProps 上下文属性对象,用于解析 @ 开头的参数
|
|
14
|
+
* @returns 解析后的动作对象
|
|
15
|
+
*/
|
|
16
|
+
export declare function parseAction(actionString: string | undefined, contextValue?: any, contextProps?: Record<string, any>): ParsedAction;
|
|
17
|
+
/**
|
|
18
|
+
* 解析变更动作的便捷函数
|
|
19
|
+
* @param changeAction 变更动作字符串
|
|
20
|
+
* @param value 变更的值
|
|
21
|
+
* @param props 组件属性对象
|
|
22
|
+
* @returns 解析后的动作对象
|
|
23
|
+
*/
|
|
24
|
+
export declare function parseChangeAction(changeAction: string | undefined, value: any, props?: Record<string, any>): ParsedAction;
|
|
25
|
+
/**
|
|
26
|
+
* 解析点击动作的便捷函数
|
|
27
|
+
* @param clickAction 点击动作字符串
|
|
28
|
+
* @param props 组件属性对象
|
|
29
|
+
* @returns 解析后的动作对象
|
|
30
|
+
*/
|
|
31
|
+
export declare function parseClickAction(clickAction: string | undefined, props?: Record<string, any>): ParsedAction;
|
|
32
|
+
/**
|
|
33
|
+
* 解析查询动作的便捷函数
|
|
34
|
+
* @param queryAction 查询动作字符串
|
|
35
|
+
* @param props 组件属性对象
|
|
36
|
+
* @returns 解析后的动作对象
|
|
37
|
+
*/
|
|
38
|
+
export declare function parseQueryAction(queryAction: string | undefined, props?: Record<string, any>): ParsedAction;
|
|
39
|
+
/**
|
|
40
|
+
* 创建命令对象的通用函数
|
|
41
|
+
* @param actionName 动作名称
|
|
42
|
+
* @param arg 动作参数
|
|
43
|
+
* @returns 命令对象
|
|
44
|
+
*/
|
|
45
|
+
export declare function createCommand(actionName: string, arg: any): {
|
|
46
|
+
actionName: string;
|
|
47
|
+
arg: any;
|
|
48
|
+
timestamp: number;
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=actionParser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actionParser.d.ts","sourceRoot":"","sources":["../../src/base/actionParser.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,GAAG,CAAC;CACV;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CACzB,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,YAAY,GAAE,GAAU,EACxB,YAAY,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GACrC,YAAY,CAsDd;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,KAAK,EAAE,GAAG,EACV,KAAK,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GAC9B,YAAY,CAEd;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,KAAK,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GAC9B,YAAY,CAEd;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,KAAK,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GAC9B,YAAY,CAEd;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,GAAG;IAC3D,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,GAAG,CAAC;IACT,SAAS,EAAE,MAAM,CAAC;CACnB,CAMA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
function s(t, r = null, e = {}) {
|
|
2
|
+
if (!t)
|
|
3
|
+
return { actionName: "", arg: null };
|
|
4
|
+
const i = t.match(/^([^(]+)\(([^)]*)\)$/);
|
|
5
|
+
if (!i)
|
|
6
|
+
return { actionName: t, arg: r };
|
|
7
|
+
const u = i[1].trim(), c = i[2].trim();
|
|
8
|
+
if (!c)
|
|
9
|
+
return { actionName: u, arg: r };
|
|
10
|
+
const a = c.split(",").map((m) => {
|
|
11
|
+
const n = m.trim();
|
|
12
|
+
if (n === "@value")
|
|
13
|
+
return r;
|
|
14
|
+
if (n.startsWith("@")) {
|
|
15
|
+
const f = n.substring(1);
|
|
16
|
+
return e[f];
|
|
17
|
+
}
|
|
18
|
+
return n.startsWith('"') && n.endsWith('"') || n.startsWith("'") && n.endsWith("'") ? n.slice(1, -1) : isNaN(Number(n)) ? n : Number(n);
|
|
19
|
+
}), o = a.length === 1 ? a[0] : a;
|
|
20
|
+
return { actionName: u, arg: o };
|
|
21
|
+
}
|
|
22
|
+
function l(t, r, e = {}) {
|
|
23
|
+
return s(t, r, e);
|
|
24
|
+
}
|
|
25
|
+
function g(t, r = {}) {
|
|
26
|
+
return s(t, null, r);
|
|
27
|
+
}
|
|
28
|
+
function h(t, r = {}) {
|
|
29
|
+
return s(t, null, r);
|
|
30
|
+
}
|
|
31
|
+
function p(t, r) {
|
|
32
|
+
return {
|
|
33
|
+
actionName: t,
|
|
34
|
+
arg: r,
|
|
35
|
+
timestamp: Date.now()
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
p as createCommand,
|
|
40
|
+
s as parseAction,
|
|
41
|
+
l as parseChangeAction,
|
|
42
|
+
g as parseClickAction,
|
|
43
|
+
h as parseQueryAction
|
|
44
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(t,r=null,i={}){if(!t)return{actionName:"",arg:null};const a=t.match(/^([^(]+)\(([^)]*)\)$/);if(!a)return{actionName:t,arg:r};const u=a[1].trim(),c=a[2].trim();if(!c)return{actionName:u,arg:r};const s=c.split(",").map(m=>{const n=m.trim();if(n==="@value")return r;if(n.startsWith("@")){const l=n.substring(1);return i[l]}return n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'")?n.slice(1,-1):isNaN(Number(n))?n:Number(n)}),o=s.length===1?s[0]:s;return{actionName:u,arg:o}}function f(t,r,i={}){return e(t,r,i)}function g(t,r={}){return e(t,null,r)}function p(t,r={}){return e(t,null,r)}function h(t,r){return{actionName:t,arg:r,timestamp:Date.now()}}exports.createCommand=h;exports.parseAction=e;exports.parseChangeAction=f;exports.parseClickAction=g;exports.parseQueryAction=p;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { Editor } from 'grapesjs';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
|
|
4
|
+
type PropFilter = (reactiveProps: Record<string, any>, key: string, value: any) => void;
|
|
5
|
+
/**
|
|
6
|
+
* 布尔属性过滤器:根据 defaultProps 中的布尔值设置 reactiveProps
|
|
7
|
+
* @param reactiveProps 响应式属性对象
|
|
8
|
+
* @param defaultProps 默认属性对象
|
|
9
|
+
*/
|
|
10
|
+
export declare function boolPropFilter(reactiveProps: Record<string, any>, defaultProps: Record<string, any>): void;
|
|
11
|
+
/**
|
|
12
|
+
* 获取布尔属性名称列表
|
|
13
|
+
* @param defaultProps 默认属性对象
|
|
14
|
+
* @returns 布尔属性名称数组
|
|
15
|
+
*/
|
|
16
|
+
export declare function boolPropNames(defaultProps: Record<string, any>): string[];
|
|
17
|
+
/**
|
|
18
|
+
* JSON 属性格式化器
|
|
19
|
+
* @param reactiveProps 响应式属性对象
|
|
20
|
+
* @param propName 属性名称
|
|
21
|
+
* @param propValue 属性值
|
|
22
|
+
*/
|
|
23
|
+
export declare function jsonPropFormatter(reactiveProps: Record<string, any>, propName: string, propValue: any): void;
|
|
24
|
+
/**
|
|
25
|
+
* 整数属性格式化器
|
|
26
|
+
* @param reactiveProps 响应式属性对象
|
|
27
|
+
* @param propName 属性名称
|
|
28
|
+
* @param propValue 属性值
|
|
29
|
+
*/
|
|
30
|
+
export declare function intPropFormatter(reactiveProps: Record<string, any>, propName: string, propValue: any): void;
|
|
31
|
+
/**
|
|
32
|
+
* 布尔属性格式化器
|
|
33
|
+
* @param reactiveProps 响应式属性对象
|
|
34
|
+
* @param propName 属性名称
|
|
35
|
+
* @param propValue 属性值
|
|
36
|
+
*/
|
|
37
|
+
export declare function boolPropFormatter(reactiveProps: Record<string, any>, propName: string, propValue: any): void;
|
|
38
|
+
/**
|
|
39
|
+
* 浮点数属性格式化器
|
|
40
|
+
* @param reactiveProps 响应式属性对象
|
|
41
|
+
* @param propName 属性名称
|
|
42
|
+
* @param propValue 属性值
|
|
43
|
+
*/
|
|
44
|
+
export declare function floatPropFormatter(reactiveProps: Record<string, any>, propName: string, propValue: any): void;
|
|
45
|
+
/**
|
|
46
|
+
* 默认值过滤器:为 reactiveProps 设置默认值
|
|
47
|
+
* @param reactiveProps 响应式属性对象
|
|
48
|
+
* @param defaultProps 默认属性对象
|
|
49
|
+
*/
|
|
50
|
+
export declare function defaultFilter(reactiveProps: Record<string, any>, defaultProps: Record<string, any>): void;
|
|
51
|
+
/**
|
|
52
|
+
* 从 model 中获取组件的属性,设置到 reactiveProps
|
|
53
|
+
* @param model GrapesJS 模型对象
|
|
54
|
+
* @param reactiveProps 响应式属性对象
|
|
55
|
+
* @param defaultProps 默认属性对象
|
|
56
|
+
* @param basicPropFilter 基础属性过滤器函数
|
|
57
|
+
*/
|
|
58
|
+
export declare const updatePropsByModel: (model: any, reactiveProps: Record<string, any>, defaultProps: Record<string, any>, basicPropFilter: PropFilter) => void;
|
|
59
|
+
/**
|
|
60
|
+
* 从 GrapesJS 编辑器中检索 API 列表
|
|
61
|
+
* @param editor GrapesJS 编辑器实例
|
|
62
|
+
* @returns API 列表数组
|
|
63
|
+
*/
|
|
64
|
+
export declare function retrieveApiList(editor: Editor): Array<{
|
|
65
|
+
id: string;
|
|
66
|
+
label: string;
|
|
67
|
+
baseUrl: string;
|
|
68
|
+
url: string;
|
|
69
|
+
method: string;
|
|
70
|
+
params: any;
|
|
71
|
+
responseType: string;
|
|
72
|
+
response: any;
|
|
73
|
+
}>;
|
|
74
|
+
/**
|
|
75
|
+
* 更新属性
|
|
76
|
+
* @param reactiveProps 响应式属性对象
|
|
77
|
+
* @param props DOM 属性集合
|
|
78
|
+
* @param defaultProps 默认属性对象
|
|
79
|
+
* @param basicPropFilter 基础属性过滤器函数
|
|
80
|
+
*/
|
|
81
|
+
export declare function updateProps(reactiveProps: Record<string, any>, props: NamedNodeMap, defaultProps: Record<string, any>, basicPropFilter: PropFilter): void;
|
|
82
|
+
/**
|
|
83
|
+
* 验证数据
|
|
84
|
+
* @param rules 验证规则
|
|
85
|
+
* @param dataSetField 数据集字段
|
|
86
|
+
* @param val 要验证的值
|
|
87
|
+
* @param successHandler 成功回调函数
|
|
88
|
+
* @param errorHandler 错误回调函数
|
|
89
|
+
*/
|
|
90
|
+
export declare const validateData: (rules: Ref<Record<string, any>>, dataSetField: Ref<string>, val: Ref<any>, successHandler: () => void, errorHandler: (errors: any[]) => void) => void;
|
|
91
|
+
/**
|
|
92
|
+
* 将字符串转换为正则表达式
|
|
93
|
+
* @param pattern 正则表达式字符串
|
|
94
|
+
* @returns 正则表达式对象,如果转换失败则返回 null
|
|
95
|
+
*/
|
|
96
|
+
export declare function stringToRegPattern(pattern: string): RegExp | null;
|
|
97
|
+
/**
|
|
98
|
+
* 处理验证规则数组,将字符串 pattern 转换为正则表达式
|
|
99
|
+
* @param rules 验证规则数组
|
|
100
|
+
* @returns 处理后的验证规则数组
|
|
101
|
+
*/
|
|
102
|
+
export declare function processValidationRules(rules: any[]): any[];
|
|
103
|
+
/**
|
|
104
|
+
* 处理 @index 逻辑:从 dataset 名称中提取索引并返回 index + 1
|
|
105
|
+
* @param dataset 数据集名称,可能包含数组下标如 "items[0]"
|
|
106
|
+
* @returns 索引加1的值,如果没有匹配到索引则返回 1
|
|
107
|
+
*/
|
|
108
|
+
export declare function getIndexPlusOne(dataset: string): number;
|
|
109
|
+
export {};
|
|
110
|
+
//# sourceMappingURL=baseUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"baseUtils.d.ts","sourceRoot":"","sources":["../../src/base/baseUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,KAAK,UAAU,GAAG,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;AAExF;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAClC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAChC,IAAI,CAON;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,EAAE,CASzE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAClC,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,GAAG,GACb,IAAI,CAWN;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAClC,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,GAAG,GACb,IAAI,CAWN;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAClC,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,GAAG,GACb,IAAI,CAeN;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAClC,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,GAAG,GACb,IAAI,CAWN;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAClC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAChC,IAAI,CAMN;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,UACtB,GAAG,iBACK,OAAO,MAAM,EAAE,GAAG,CAAC,gBACpB,OAAO,MAAM,EAAE,GAAG,CAAC,mBAChB,UAAU,KAC1B,IAuCF,CAAC;AAyBF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,GAAG,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,GAAG,CAAC;CACf,CAAC,CAqCD;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CACzB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAClC,KAAK,EAAE,YAAY,EACnB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACjC,eAAe,EAAE,UAAU,GAC1B,IAAI,CAkCN;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,UAChB,IAAI,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC,gBACjB,IAAI,MAAM,CAAC,OACpB,IAAI,GAAG,CAAC,kBACG,MAAM,IAAI,yBACH,GAAG,EAAE,KAAK,IAAI,KACpC,IAcF,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAkBjE;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE,CAqB1D;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CASvD"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { cloneDeep as u } from "lodash-es";
|
|
2
|
+
import h from "async-validator";
|
|
3
|
+
function d(t, e) {
|
|
4
|
+
Object.entries(e).forEach(([n, r]) => {
|
|
5
|
+
(r === !0 || r === !1) && m(t, n, t[n]);
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
function A(t) {
|
|
9
|
+
const e = [];
|
|
10
|
+
return Object.entries(t).forEach(([n, r]) => {
|
|
11
|
+
(r === !0 || r === !1) && e.push(n);
|
|
12
|
+
}), e;
|
|
13
|
+
}
|
|
14
|
+
function F(t, e, n) {
|
|
15
|
+
if (typeof n == "string")
|
|
16
|
+
try {
|
|
17
|
+
t[e] = JSON.parse(n);
|
|
18
|
+
} catch (r) {
|
|
19
|
+
console.error("Failed to parse JSON:", r), t[e] = void 0;
|
|
20
|
+
}
|
|
21
|
+
else
|
|
22
|
+
t[e] = n;
|
|
23
|
+
}
|
|
24
|
+
function O(t, e, n) {
|
|
25
|
+
if (typeof n == "string")
|
|
26
|
+
try {
|
|
27
|
+
t[e] = parseInt(n, 10);
|
|
28
|
+
} catch (r) {
|
|
29
|
+
console.error("Failed to parse integer:", r), t[e] = void 0;
|
|
30
|
+
}
|
|
31
|
+
else
|
|
32
|
+
t[e] = n;
|
|
33
|
+
}
|
|
34
|
+
function m(t, e, n) {
|
|
35
|
+
if (typeof n == "string") {
|
|
36
|
+
if (n === "") {
|
|
37
|
+
t[e] = void 0;
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
try {
|
|
41
|
+
t[e] = n === "true";
|
|
42
|
+
} catch (r) {
|
|
43
|
+
console.error("Failed to parse boolean:", r), t[e] = void 0;
|
|
44
|
+
}
|
|
45
|
+
} else
|
|
46
|
+
t[e] = n;
|
|
47
|
+
}
|
|
48
|
+
function x(t, e, n) {
|
|
49
|
+
if (typeof n == "string")
|
|
50
|
+
try {
|
|
51
|
+
t[e] = parseFloat(n);
|
|
52
|
+
} catch (r) {
|
|
53
|
+
console.error("Failed to parse float:", r), t[e] = void 0;
|
|
54
|
+
}
|
|
55
|
+
else
|
|
56
|
+
t[e] = n;
|
|
57
|
+
}
|
|
58
|
+
function y(t, e) {
|
|
59
|
+
Object.entries(e).forEach(([n, r]) => {
|
|
60
|
+
t[n] === void 0 && (t[n] = r);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
const E = (t, e, n, r) => {
|
|
64
|
+
const c = t.props();
|
|
65
|
+
if (typeof c == "object" && c !== null) {
|
|
66
|
+
const l = Object.entries({
|
|
67
|
+
...c,
|
|
68
|
+
...c.attributes || {}
|
|
69
|
+
}).map(([o, s]) => ({ name: o, value: s }));
|
|
70
|
+
l.filter((o) => o.name.indexOf("comp-") === 0).forEach((o) => {
|
|
71
|
+
const s = o.name.replace("comp-", "");
|
|
72
|
+
try {
|
|
73
|
+
Array.isArray(o.value) || typeof o.value == "object" && o.value !== null ? e[s] = u(o.value) : e[s] = o.value, r(e, s, o.value);
|
|
74
|
+
} catch (f) {
|
|
75
|
+
console.error(`Failed to parse value for key ${s}:`, f), e[s] = o.value;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
const a = l.find((o) => o.name === "id");
|
|
79
|
+
a && a.value && (e.id = a.value);
|
|
80
|
+
} else
|
|
81
|
+
console.error("model.props() did not return an object:", e);
|
|
82
|
+
d(e, n), y(e, n);
|
|
83
|
+
};
|
|
84
|
+
function i(t, e) {
|
|
85
|
+
if (!t || typeof t != "object")
|
|
86
|
+
return null;
|
|
87
|
+
if (t[e] !== void 0)
|
|
88
|
+
return t[e];
|
|
89
|
+
for (const n in t)
|
|
90
|
+
if (t.hasOwnProperty(n) && typeof t[n] == "object") {
|
|
91
|
+
const r = i(t[n], e);
|
|
92
|
+
if (r !== null)
|
|
93
|
+
return r;
|
|
94
|
+
}
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
function j(t) {
|
|
98
|
+
var n, r;
|
|
99
|
+
const e = [];
|
|
100
|
+
if (t.DataSources.get("planDesign")) {
|
|
101
|
+
const c = (r = (n = t.DataSources.get("planDesign")) == null ? void 0 : n.getRecord("1")) == null ? void 0 : r.get("data"), l = i(c, "java.controller");
|
|
102
|
+
l && l.forEach((a) => {
|
|
103
|
+
const o = i(a, "接口"), s = i(a, "url路径");
|
|
104
|
+
o && o.forEach((f) => {
|
|
105
|
+
e.push({
|
|
106
|
+
id: s + (f == null ? void 0 : f.url路径),
|
|
107
|
+
label: f == null ? void 0 : f.接口描述,
|
|
108
|
+
baseUrl: s,
|
|
109
|
+
url: f.url路径,
|
|
110
|
+
method: f.请求类型,
|
|
111
|
+
params: f.请求参数,
|
|
112
|
+
responseType: f.返回数据类型,
|
|
113
|
+
response: f.返回数据字段
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
return e;
|
|
119
|
+
}
|
|
120
|
+
function w(t, e, n, r) {
|
|
121
|
+
typeof e == "object" && e !== null ? (Array.from(e).filter((l) => l.name.indexOf("comp-") === 0).forEach((l) => {
|
|
122
|
+
let a = l.name.replace("comp-", "");
|
|
123
|
+
Object.keys(n).forEach((o) => {
|
|
124
|
+
o.toLowerCase() === a.toLowerCase() && (a = o);
|
|
125
|
+
});
|
|
126
|
+
try {
|
|
127
|
+
Array.isArray(l.value) || typeof l.value == "object" && l.value !== null ? t[a] = u(l.value) : t[a] = l.value, r(t, a, l.value);
|
|
128
|
+
} catch (o) {
|
|
129
|
+
console.error(`Failed to parse value for key ${a}:`, o), t[a] = l.value;
|
|
130
|
+
}
|
|
131
|
+
}), d(t, n), y(t, n)) : console.error("props did not return an object:", t);
|
|
132
|
+
}
|
|
133
|
+
const D = (t, e, n, r, c) => {
|
|
134
|
+
if (!t.value[e.value]) {
|
|
135
|
+
console.warn(`No validation rules for ${e.value}`), r();
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
new h(t.value).validate({ [e.value]: n.value }).then(() => {
|
|
139
|
+
r();
|
|
140
|
+
}).catch(({ errors: a }) => {
|
|
141
|
+
c(a);
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
function g(t) {
|
|
145
|
+
if (!t || typeof t != "string")
|
|
146
|
+
return null;
|
|
147
|
+
try {
|
|
148
|
+
let e = t.trim();
|
|
149
|
+
return e.startsWith("/") && e.endsWith("/") && (e = e.slice(1, -1)), new RegExp(e);
|
|
150
|
+
} catch (e) {
|
|
151
|
+
return console.error("Invalid regex pattern:", t, e), null;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
function R(t) {
|
|
155
|
+
return !t || !Array.isArray(t) ? [] : t.map((e) => {
|
|
156
|
+
const n = { ...e };
|
|
157
|
+
if (n.pattern && typeof n.pattern == "string" && n.pattern !== "") {
|
|
158
|
+
const r = g(n.pattern);
|
|
159
|
+
r ? n.pattern = r : delete n.pattern;
|
|
160
|
+
}
|
|
161
|
+
return n;
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
function I(t) {
|
|
165
|
+
const e = t.match(/\[(\d+)\]$/);
|
|
166
|
+
return e && e[1] ? parseInt(e[1], 10) + 1 : 1;
|
|
167
|
+
}
|
|
168
|
+
export {
|
|
169
|
+
d as boolPropFilter,
|
|
170
|
+
m as boolPropFormatter,
|
|
171
|
+
A as boolPropNames,
|
|
172
|
+
y as defaultFilter,
|
|
173
|
+
x as floatPropFormatter,
|
|
174
|
+
I as getIndexPlusOne,
|
|
175
|
+
O as intPropFormatter,
|
|
176
|
+
F as jsonPropFormatter,
|
|
177
|
+
R as processValidationRules,
|
|
178
|
+
j as retrieveApiList,
|
|
179
|
+
g as stringToRegPattern,
|
|
180
|
+
w as updateProps,
|
|
181
|
+
E as updatePropsByModel,
|
|
182
|
+
D as validateData
|
|
183
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("lodash-es"),m=require("async-validator");function f(t,e){Object.entries(e).forEach(([r,n])=>{(n===!0||n===!1)&&h(t,r,t[r])})}function b(t){const e=[];return Object.entries(t).forEach(([r,n])=>{(n===!0||n===!1)&&e.push(r)}),e}function v(t,e,r){if(typeof r=="string")try{t[e]=JSON.parse(r)}catch(n){console.error("Failed to parse JSON:",n),t[e]=void 0}else t[e]=r}function F(t,e,r){if(typeof r=="string")try{t[e]=parseInt(r,10)}catch(n){console.error("Failed to parse integer:",n),t[e]=void 0}else t[e]=r}function h(t,e,r){if(typeof r=="string"){if(r===""){t[e]=void 0;return}try{t[e]=r==="true"}catch(n){console.error("Failed to parse boolean:",n),t[e]=void 0}}else t[e]=r}function O(t,e,r){if(typeof r=="string")try{t[e]=parseFloat(r)}catch(n){console.error("Failed to parse float:",n),t[e]=void 0}else t[e]=r}function d(t,e){Object.entries(e).forEach(([r,n])=>{t[r]===void 0&&(t[r]=n)})}const A=(t,e,r,n)=>{const c=t.props();if(typeof c=="object"&&c!==null){const l=Object.entries({...c,...c.attributes||{}}).map(([o,i])=>({name:o,value:i}));l.filter(o=>o.name.indexOf("comp-")===0).forEach(o=>{const i=o.name.replace("comp-","");try{Array.isArray(o.value)||typeof o.value=="object"&&o.value!==null?e[i]=y.cloneDeep(o.value):e[i]=o.value,n(e,i,o.value)}catch(s){console.error(`Failed to parse value for key ${i}:`,s),e[i]=o.value}});const a=l.find(o=>o.name==="id");a&&a.value&&(e.id=a.value)}else console.error("model.props() did not return an object:",e);f(e,r),d(e,r)};function u(t,e){if(!t||typeof t!="object")return null;if(t[e]!==void 0)return t[e];for(const r in t)if(t.hasOwnProperty(r)&&typeof t[r]=="object"){const n=u(t[r],e);if(n!==null)return n}return null}function j(t){var r,n;const e=[];if(t.DataSources.get("planDesign")){const c=(n=(r=t.DataSources.get("planDesign"))==null?void 0:r.getRecord("1"))==null?void 0:n.get("data"),l=u(c,"java.controller");l&&l.forEach(a=>{const o=u(a,"接口"),i=u(a,"url路径");o&&o.forEach(s=>{e.push({id:i+(s==null?void 0:s.url路径),label:s==null?void 0:s.接口描述,baseUrl:i,url:s.url路径,method:s.请求类型,params:s.请求参数,responseType:s.返回数据类型,response:s.返回数据字段})})})}return e}function E(t,e,r,n){typeof e=="object"&&e!==null?(Array.from(e).filter(l=>l.name.indexOf("comp-")===0).forEach(l=>{let a=l.name.replace("comp-","");Object.keys(r).forEach(o=>{o.toLowerCase()===a.toLowerCase()&&(a=o)});try{Array.isArray(l.value)||typeof l.value=="object"&&l.value!==null?t[a]=y.cloneDeep(l.value):t[a]=l.value,n(t,a,l.value)}catch(o){console.error(`Failed to parse value for key ${a}:`,o),t[a]=l.value}}),f(t,r),d(t,r)):console.error("props did not return an object:",t)}const x=(t,e,r,n,c)=>{if(!t.value[e.value]){console.warn(`No validation rules for ${e.value}`),n();return}new m(t.value).validate({[e.value]:r.value}).then(()=>{n()}).catch(({errors:a})=>{c(a)})};function g(t){if(!t||typeof t!="string")return null;try{let e=t.trim();return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),new RegExp(e)}catch(e){return console.error("Invalid regex pattern:",t,e),null}}function D(t){return!t||!Array.isArray(t)?[]:t.map(e=>{const r={...e};if(r.pattern&&typeof r.pattern=="string"&&r.pattern!==""){const n=g(r.pattern);n?r.pattern=n:delete r.pattern}return r})}function R(t){const e=t.match(/\[(\d+)\]$/);return e&&e[1]?parseInt(e[1],10)+1:1}exports.boolPropFilter=f;exports.boolPropFormatter=h;exports.boolPropNames=b;exports.defaultFilter=d;exports.floatPropFormatter=O;exports.getIndexPlusOne=R;exports.intPropFormatter=F;exports.jsonPropFormatter=v;exports.processValidationRules=D;exports.retrieveApiList=j;exports.stringToRegPattern=g;exports.updateProps=E;exports.updatePropsByModel=A;exports.validateData=x;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/base/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moduleLoader.d.ts","sourceRoot":"","sources":["../../src/base/moduleLoader.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc;;;;;EAmB1B,CAAC;AAEF,eAAO,MAAM,UAAU,YAKtB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
let l = null, t = null, e = null, n = null;
|
|
2
|
+
const r = async () => {
|
|
3
|
+
if (!l || !t) {
|
|
4
|
+
const [u, o, a, d] = await Promise.all([
|
|
5
|
+
import("vue"),
|
|
6
|
+
import("ant-design-vue"),
|
|
7
|
+
import("../node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.12_typescript@5.3.3_/node_modules/ant-design-vue/es/locale/zh_CN.esm.js"),
|
|
8
|
+
import("dayjs")
|
|
9
|
+
]);
|
|
10
|
+
l = u, t = o, e = a.default, n = d.default;
|
|
11
|
+
}
|
|
12
|
+
return { Vue: l, Antd: t, Locale: e, dayjs: n };
|
|
13
|
+
}, c = () => {
|
|
14
|
+
l = null, t = null, e = null, n = null;
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
c as clearCache,
|
|
18
|
+
r as loadVueAndAntd
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var s=Object.create;var i=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var p=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var _=(e,l,t,o)=>{if(l&&typeof l=="object"||typeof l=="function")for(let n of m(l))!y.call(e,n)&&n!==t&&i(e,n,{get:()=>l[n],enumerable:!(o=f(l,n))||o.enumerable});return e};var r=(e,l,t)=>(t=e!=null?s(p(e)):{},_(l||!e||!e.__esModule?i(t,"default",{value:e,enumerable:!0}):t,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=e=>Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"}));let u=null,a=null,d=null,c=null;const j=async()=>{if(!u||!a){const[e,l,t,o]=await Promise.all([import("vue"),import("ant-design-vue"),Promise.resolve().then(()=>b(require("../node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.12_typescript@5.3.3_/node_modules/ant-design-vue/es/locale/zh_CN.js.js"))),import("dayjs")]);u=e,a=l,d=t.default,c=o.default}return{Vue:u,Antd:a,Locale:d,dayjs:c}},A=()=>{u=null,a=null,d=null,c=null};exports.clearCache=A;exports.loadVueAndAntd=j;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
interface MountOptions {
|
|
2
|
+
el: HTMLElement;
|
|
3
|
+
componentImporter?: () => Promise<any>;
|
|
4
|
+
component?: any;
|
|
5
|
+
props?: Record<string, any>;
|
|
6
|
+
hasContainer?: boolean;
|
|
7
|
+
customTheme?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 优化版 mountVueComponent:使用单例 app + createVNode + render 模式
|
|
11
|
+
*/
|
|
12
|
+
export declare const mountVueComponent: ({ el, componentImporter, component, props, hasContainer, customTheme, }: MountOptions) => Promise<{
|
|
13
|
+
vnode: any;
|
|
14
|
+
unmount: () => void;
|
|
15
|
+
}>;
|
|
16
|
+
/**
|
|
17
|
+
* 彻底清除全局应用(包括全局 ConfigProvider 与其 DOM)
|
|
18
|
+
* - 调用后,将恢复到未加载任何 Vue/Antd 的初始状态
|
|
19
|
+
* - 如果想再次 mountVueComponent,需要走完整的初始化流程
|
|
20
|
+
*/
|
|
21
|
+
export declare function cleanupGlobalApp(): void;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=mountVueComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mountVueComponent.d.ts","sourceRoot":"","sources":["../../src/base/mountVueComponent.ts"],"names":[],"mappings":"AAEA,UAAU,YAAY;IACpB,EAAE,EAAE,WAAW,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC;IACvC,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAaD;;GAEG;AACH,eAAO,MAAM,iBAAiB,4EAO3B,YAAY;;;EAwJd,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,gBAAgB,SA8B/B"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { loadVueAndAntd as E } from "./moduleLoader.esm.js";
|
|
2
|
+
let d = !1, c = null, t, e, i, h, l;
|
|
3
|
+
const G = async ({
|
|
4
|
+
el: o,
|
|
5
|
+
componentImporter: f,
|
|
6
|
+
component: w,
|
|
7
|
+
props: _ = {},
|
|
8
|
+
hasContainer: L,
|
|
9
|
+
customTheme: C
|
|
10
|
+
}) => {
|
|
11
|
+
var g;
|
|
12
|
+
let b;
|
|
13
|
+
try {
|
|
14
|
+
if (d && (e === null || t === null))
|
|
15
|
+
throw console.warn("mountVueComponent called after cleanup, aborting mount"), new Error("Component mounting aborted: system is in cleanup state");
|
|
16
|
+
d || (c || (c = (async () => {
|
|
17
|
+
const { Vue: r, Antd: m, Locale: p } = await E();
|
|
18
|
+
if (!r || !m || !p)
|
|
19
|
+
throw console.error("loadVueAndAntd failed to load required libraries:", { Vue: !!r, Antd: !!m, Locale: !!p }), new Error("Failed to load required Vue/Antd libraries");
|
|
20
|
+
t = r, e = m, i = p, l = t.createApp({}), e.install && typeof e.install == "function" ? l.use(e) : e.default && e.default.install ? l.use(e.default) : console.warn("AntdLib does not have a valid install method, skipping global registration"), window.__GLS_PINIA__ && l.use(window.__GLS_PINIA__), h = l._context, d = !0;
|
|
21
|
+
})()), await c), o.addEventListener("mousedown", b);
|
|
22
|
+
let a;
|
|
23
|
+
if (w)
|
|
24
|
+
a = w;
|
|
25
|
+
else if (typeof f == "function")
|
|
26
|
+
[a] = await Promise.all([f()]);
|
|
27
|
+
else
|
|
28
|
+
throw new Error('Either "component" or "componentImporter" must be provided.');
|
|
29
|
+
const V = a.default || a;
|
|
30
|
+
let u = o, n = null;
|
|
31
|
+
if (L && (n = document.createElement("div"), n.style.width = "auto", n.style.height = "auto", o.appendChild(n), u = n), !e || !t || !i)
|
|
32
|
+
throw console.warn("Required libraries not available:", {
|
|
33
|
+
AntdLib: !!e,
|
|
34
|
+
VueLib: !!t,
|
|
35
|
+
LocaleLang: !!i
|
|
36
|
+
}), new Error("Required libraries not available. Component mounting aborted.");
|
|
37
|
+
const { ConfigProvider: y, theme: A } = e, v = (C || ((g = window.__GLS_COMPS__) == null ? void 0 : g.theme)) === "dark" ? A.darkAlgorithm : A.lightAlgorithm, s = t.createVNode(
|
|
38
|
+
y,
|
|
39
|
+
{
|
|
40
|
+
getPopupContainer: () => u,
|
|
41
|
+
locale: i,
|
|
42
|
+
theme: {
|
|
43
|
+
algorithm: v
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
default: () => t.h(V, _)
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
return s.appContext = h, t.render(s, u), {
|
|
51
|
+
vnode: s,
|
|
52
|
+
unmount: () => {
|
|
53
|
+
try {
|
|
54
|
+
t.render(null, u), n && n.parentNode && n.parentNode.removeChild(n);
|
|
55
|
+
} catch (r) {
|
|
56
|
+
console.error("Failed to unmount Vue component:", r);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
} catch (a) {
|
|
61
|
+
throw console.error("Failed to mount Vue component:", a), a;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
function q() {
|
|
65
|
+
try {
|
|
66
|
+
l && (l.unmount(), l = null), d = !1, c = null, t = null, e = null, i = null, h = null, import("./moduleLoader.esm.js").then((o) => {
|
|
67
|
+
o.clearCache && o.clearCache();
|
|
68
|
+
}).catch((o) => {
|
|
69
|
+
console.warn("Failed to clear module loader cache:", o);
|
|
70
|
+
}), console.info("Global Vue/Antd application has been thoroughly cleaned up.");
|
|
71
|
+
} catch (o) {
|
|
72
|
+
console.error("Failed to cleanup global application:", o);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
q as cleanupGlobalApp,
|
|
77
|
+
G as mountVueComponent
|
|
78
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./moduleLoader.js.js");let d=!1,c=null,t,e,i,h,l;const P=async({el:o,componentImporter:f,component:b,props:_={},hasContainer:L,customTheme:C})=>{var g;let w;try{if(d&&(e===null||t===null))throw console.warn("mountVueComponent called after cleanup, aborting mount"),new Error("Component mounting aborted: system is in cleanup state");d||(c||(c=(async()=>{const{Vue:r,Antd:m,Locale:p}=await E.loadVueAndAntd();if(!r||!m||!p)throw console.error("loadVueAndAntd failed to load required libraries:",{Vue:!!r,Antd:!!m,Locale:!!p}),new Error("Failed to load required Vue/Antd libraries");t=r,e=m,i=p,l=t.createApp({}),e.install&&typeof e.install=="function"?l.use(e):e.default&&e.default.install?l.use(e.default):console.warn("AntdLib does not have a valid install method, skipping global registration"),window.__GLS_PINIA__&&l.use(window.__GLS_PINIA__),h=l._context,d=!0})()),await c),o.addEventListener("mousedown",w);let a;if(b)a=b;else if(typeof f=="function")[a]=await Promise.all([f()]);else throw new Error('Either "component" or "componentImporter" must be provided.');const V=a.default||a;let u=o,n=null;if(L&&(n=document.createElement("div"),n.style.width="auto",n.style.height="auto",o.appendChild(n),u=n),!e||!t||!i)throw console.warn("Required libraries not available:",{AntdLib:!!e,VueLib:!!t,LocaleLang:!!i}),new Error("Required libraries not available. Component mounting aborted.");const{ConfigProvider:y,theme:A}=e,v=(C||((g=window.__GLS_COMPS__)==null?void 0:g.theme))==="dark"?A.darkAlgorithm:A.lightAlgorithm,s=t.createVNode(y,{getPopupContainer:()=>u,locale:i,theme:{algorithm:v}},{default:()=>t.h(V,_)});return s.appContext=h,t.render(s,u),{vnode:s,unmount:()=>{try{t.render(null,u),n&&n.parentNode&&n.parentNode.removeChild(n)}catch(r){console.error("Failed to unmount Vue component:",r)}}}}catch(a){throw console.error("Failed to mount Vue component:",a),a}};function N(){try{l&&(l.unmount(),l=null),d=!1,c=null,t=null,e=null,i=null,h=null,Promise.resolve().then(()=>require("./moduleLoader.js.js")).then(o=>{o.clearCache&&o.clearCache()}).catch(o=>{console.warn("Failed to clear module loader cache:",o)}),console.info("Global Vue/Antd application has been thoroughly cleaned up.")}catch(o){console.error("Failed to cleanup global application:",o)}}exports.cleanupGlobalApp=N;exports.mountVueComponent=P;
|