@duxweb/dvha-pro 1.2.4 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/app.cjs +1 -1
- package/dist/cjs/components/card/card.cjs +1 -1
- package/dist/cjs/components/card/store.cjs +1 -1
- package/dist/cjs/components/carousel/carousel.cjs +1 -1
- package/dist/cjs/components/cascaderPanel/cascaderPanel.cjs +1 -1
- package/dist/cjs/components/chart/echart.cjs +1 -1
- package/dist/cjs/components/code/code.cjs +1 -1
- package/dist/cjs/components/crop/imageCrop.cjs +1 -1
- package/dist/cjs/components/crop/imageCropModal.cjs +1 -1
- package/dist/cjs/components/dashboard/hello.cjs +1 -1
- package/dist/cjs/components/dashboard/helloBig.cjs +1 -1
- package/dist/cjs/components/dashboard/quick.cjs +1 -1
- package/dist/cjs/components/data/dynamicData.cjs +1 -1
- package/dist/cjs/components/data/dynamicSelect.cjs +1 -1
- package/dist/cjs/components/designEditor/editor/preview.cjs +1 -1
- package/dist/cjs/components/designEditor/editor/setting.cjs +1 -1
- package/dist/cjs/components/designEditor/editor.cjs +1 -1
- package/dist/cjs/components/draw/drawApps.cjs +1 -1
- package/dist/cjs/components/draw/drawAuth.cjs +1 -1
- package/dist/cjs/components/draw/drawEmpty.cjs +1 -1
- package/dist/cjs/components/draw/drawEmptyForm.cjs +1 -1
- package/dist/cjs/components/draw/drawError.cjs +1 -1
- package/dist/cjs/components/drawer/drawerPage.cjs +1 -1
- package/dist/cjs/components/editor/aiEditor.cjs +2 -2
- package/dist/cjs/components/flowEditor/components/fieldConfig.cjs +1 -1
- package/dist/cjs/components/flowEditor/components/kvInput.cjs +1 -1
- package/dist/cjs/components/flowEditor/components/nodeCard.cjs +1 -1
- package/dist/cjs/components/flowEditor/components/note.cjs +1 -1
- package/dist/cjs/components/flowEditor/components/setting.cjs +1 -1
- package/dist/cjs/components/flowEditor/components/toolbar.cjs +1 -1
- package/dist/cjs/components/flowEditor/flowEditor.cjs +1 -1
- package/dist/cjs/components/flowEditor/nodes/endNode.cjs +1 -1
- package/dist/cjs/components/flowEditor/nodes/index.cjs +1 -1
- package/dist/cjs/components/flowEditor/nodes/processNode.cjs +1 -1
- package/dist/cjs/components/flowEditor/nodes/startNode.cjs +1 -1
- package/dist/cjs/components/flowEditor/utils/nodeDataUtils.cjs +1 -1
- package/dist/cjs/components/form/drawerForm.cjs +1 -1
- package/dist/cjs/components/form/drawerTabForm.cjs +1 -1
- package/dist/cjs/components/form/formItem.cjs +1 -1
- package/dist/cjs/components/form/formLayout.cjs +1 -1
- package/dist/cjs/components/form/modalForm.cjs +1 -1
- package/dist/cjs/components/form/modalTabForm.cjs +1 -1
- package/dist/cjs/components/form/pageForm.cjs +1 -1
- package/dist/cjs/components/form/pageTabForm.cjs +1 -1
- package/dist/cjs/components/form/settingForm.cjs +1 -1
- package/dist/cjs/components/formEditor/base/base.cjs +1 -1
- package/dist/cjs/components/formEditor/base/setting.cjs +1 -1
- package/dist/cjs/components/formEditor/editor.cjs +1 -1
- package/dist/cjs/components/formEditor/preview.cjs +1 -1
- package/dist/cjs/components/formEditor/renderer.cjs +1 -1
- package/dist/cjs/components/icon/icon.cjs +1 -1
- package/dist/cjs/components/layout/filter.cjs +1 -1
- package/dist/cjs/components/layout/filterLayout.cjs +1 -1
- package/dist/cjs/components/layout/grid.cjs +1 -1
- package/dist/cjs/components/layout/list.cjs +1 -1
- package/dist/cjs/components/layout/table.cjs +1 -1
- package/dist/cjs/components/layout/tools.cjs +1 -1
- package/dist/cjs/components/level/level.cjs +1 -1
- package/dist/cjs/components/list/card.cjs +1 -1
- package/dist/cjs/components/list/item.cjs +1 -1
- package/dist/cjs/components/list/list.cjs +1 -1
- package/dist/cjs/components/mapCoord/mapCoord.cjs +1 -1
- package/dist/cjs/components/media/media.cjs +1 -1
- package/dist/cjs/components/modal/modal.cjs +1 -1
- package/dist/cjs/components/panel/alert.cjs +1 -1
- package/dist/cjs/components/panel/collapse.cjs +1 -1
- package/dist/cjs/components/panel/setting.cjs +1 -1
- package/dist/cjs/components/posterEditor/components/CanvasRuler.cjs +1 -1
- package/dist/cjs/components/posterEditor/elements/index.cjs +1 -1
- package/dist/cjs/components/posterEditor/pages/LeftToolbar.cjs +1 -1
- package/dist/cjs/components/posterEditor/pages/Panel.cjs +1 -1
- package/dist/cjs/components/posterEditor/pages/PanelItem.cjs +1 -1
- package/dist/cjs/components/posterEditor/pages/RightPanel.cjs +1 -1
- package/dist/cjs/components/posterEditor/posterEditor.cjs +1 -1
- package/dist/cjs/components/schemaEditor/schemaEditor.cjs +1 -1
- package/dist/cjs/components/select/checkboxTag.cjs +1 -1
- package/dist/cjs/components/select/dateTag.cjs +1 -1
- package/dist/cjs/components/select/radioTag.cjs +1 -1
- package/dist/cjs/components/select/selectCard.cjs +1 -1
- package/dist/cjs/components/spec/spec.cjs +1 -1
- package/dist/cjs/components/spec/specEditor.cjs +1 -1
- package/dist/cjs/components/stats/number.cjs +1 -1
- package/dist/cjs/components/stats/realTime.cjs +1 -1
- package/dist/cjs/components/status/blockEmpty.cjs +1 -1
- package/dist/cjs/components/status/listEmpty.cjs +1 -1
- package/dist/cjs/components/table/table.cjs +1 -1
- package/dist/cjs/components/table/tablePage.cjs +1 -1
- package/dist/cjs/components/textImageEditor/textImageEditor.cjs +1 -1
- package/dist/cjs/components/tree/treeFilter.cjs +1 -1
- package/dist/cjs/components/upload/file.cjs +1 -1
- package/dist/cjs/components/upload/image.cjs +1 -1
- package/dist/cjs/components/upload/manage/item.cjs +1 -1
- package/dist/cjs/components/upload/selectFile.cjs +1 -1
- package/dist/cjs/components/upload/video.cjs +1 -1
- package/dist/cjs/components/widget/avatar.cjs +1 -1
- package/dist/cjs/components/widget/connect.cjs +1 -1
- package/dist/cjs/components/widget/image.cjs +1 -1
- package/dist/cjs/components/widget/placeholder.cjs +1 -1
- package/dist/cjs/pages/authLayout.cjs +1 -1
- package/dist/cjs/pages/layout/global.cjs +1 -1
- package/dist/cjs/pages/layout/page.cjs +1 -1
- package/dist/cjs/pages/layout/tab.cjs +1 -1
- package/dist/cjs/pages/layout.cjs +1 -1
- package/dist/cjs/pages/loading.cjs +1 -1
- package/dist/cjs/pages/login.cjs +1 -1
- package/dist/cjs/pages/menu/avatar.cjs +1 -1
- package/dist/cjs/pages/menu/cmd.cjs +1 -1
- package/dist/cjs/pages/menu/menuApp.cjs +1 -1
- package/dist/cjs/pages/menu/menuMain.cjs +1 -1
- package/dist/cjs/pages/menu/mobile.cjs +1 -1
- package/dist/cjs/pages/menu/remoteMenuModal.cjs +1 -0
- package/dist/cjs/pages/page.cjs +1 -1
- package/dist/cjs/pages/page403.cjs +1 -1
- package/dist/cjs/pages/page404.cjs +1 -1
- package/dist/cjs/pages/page500.cjs +1 -1
- package/dist/cjs/pages/pageEmpty.cjs +1 -1
- package/dist/cjs/pages/pageException.cjs +1 -1
- package/dist/cjs/pages/pageLoading.cjs +1 -1
- package/dist/cjs/pages/pageStatus.cjs +1 -1
- package/dist/cjs/theme/uno.cjs +57 -9
- package/dist/esm/app.js +3 -1
- package/dist/esm/component.js +2 -0
- package/dist/esm/components/card/card.js +3 -1
- package/dist/esm/components/card/store.js +3 -1
- package/dist/esm/components/carousel/carousel.js +3 -1
- package/dist/esm/components/cascaderPanel/cascaderPanel.js +3 -1
- package/dist/esm/components/chart/echart.js +3 -1
- package/dist/esm/components/code/code.js +3 -1
- package/dist/esm/components/crop/imageCrop.js +3 -1
- package/dist/esm/components/crop/imageCropModal.js +3 -1
- package/dist/esm/components/dashboard/hello.js +3 -1
- package/dist/esm/components/dashboard/helloBig.js +3 -1
- package/dist/esm/components/dashboard/quick.js +3 -1
- package/dist/esm/components/data/dynamicData.js +3 -1
- package/dist/esm/components/data/dynamicSelect.js +3 -1
- package/dist/esm/components/data/selectModal.js +2 -0
- package/dist/esm/components/designEditor/components/grid.js +2 -0
- package/dist/esm/components/designEditor/editor/hook.js +2 -0
- package/dist/esm/components/designEditor/editor/preview.js +3 -1
- package/dist/esm/components/designEditor/editor/setting.js +3 -1
- package/dist/esm/components/designEditor/editor.js +3 -1
- package/dist/esm/components/dialog/dialog.js +2 -0
- package/dist/esm/components/draw/drawApps.js +3 -1
- package/dist/esm/components/draw/drawAuth.js +3 -1
- package/dist/esm/components/draw/drawEmpty.js +3 -1
- package/dist/esm/components/draw/drawEmptyForm.js +3 -1
- package/dist/esm/components/draw/drawError.js +3 -1
- package/dist/esm/components/drawer/drawer.js +2 -0
- package/dist/esm/components/drawer/drawerPage.js +3 -1
- package/dist/esm/components/drawer/drawerTab.js +2 -0
- package/dist/esm/components/editor/aiEditor.js +8 -1
- package/dist/esm/components/flowEditor/components/fieldConfig.js +3 -1
- package/dist/esm/components/flowEditor/components/jsonEditor.js +2 -0
- package/dist/esm/components/flowEditor/components/kvInput.js +3 -1
- package/dist/esm/components/flowEditor/components/nodeCard.js +3 -2
- package/dist/esm/components/flowEditor/components/note.js +3 -1
- package/dist/esm/components/flowEditor/components/setting.js +3 -1
- package/dist/esm/components/flowEditor/components/toolbar.js +3 -1
- package/dist/esm/components/flowEditor/flowEditor.js +3 -1
- package/dist/esm/components/flowEditor/nodes/dynamicNodeFactory.js +2 -0
- package/dist/esm/components/flowEditor/nodes/endNode.js +3 -1
- package/dist/esm/components/flowEditor/nodes/index.js +3 -1
- package/dist/esm/components/flowEditor/nodes/processNode.js +3 -1
- package/dist/esm/components/flowEditor/nodes/startNode.js +3 -1
- package/dist/esm/components/flowEditor/utils/nodeDataUtils.js +3 -1
- package/dist/esm/components/form/drawerForm.js +3 -1
- package/dist/esm/components/form/drawerTabForm.js +3 -1
- package/dist/esm/components/form/formItem.js +3 -1
- package/dist/esm/components/form/formLayout.js +3 -1
- package/dist/esm/components/form/modalForm.js +3 -1
- package/dist/esm/components/form/modalTabForm.js +3 -1
- package/dist/esm/components/form/pageForm.js +3 -1
- package/dist/esm/components/form/pageTabForm.js +3 -1
- package/dist/esm/components/form/settingForm.js +3 -1
- package/dist/esm/components/formEditor/base/base.js +3 -1
- package/dist/esm/components/formEditor/base/json.js +2 -0
- package/dist/esm/components/formEditor/base/options.js +2 -0
- package/dist/esm/components/formEditor/base/setting.js +3 -1
- package/dist/esm/components/formEditor/components/cascader.js +2 -0
- package/dist/esm/components/formEditor/components/cascaderAsync.js +2 -0
- package/dist/esm/components/formEditor/components/checkbox.js +2 -0
- package/dist/esm/components/formEditor/components/color.js +2 -0
- package/dist/esm/components/formEditor/components/date.js +2 -0
- package/dist/esm/components/formEditor/components/dynamicInput.js +2 -0
- package/dist/esm/components/formEditor/components/dynamicTags.js +2 -0
- package/dist/esm/components/formEditor/components/editor.js +2 -0
- package/dist/esm/components/formEditor/components/fileUpload.js +2 -0
- package/dist/esm/components/formEditor/components/imageUpload.js +2 -0
- package/dist/esm/components/formEditor/components/input.js +2 -0
- package/dist/esm/components/formEditor/components/inputNumber.js +2 -0
- package/dist/esm/components/formEditor/components/mentionAsync.js +2 -0
- package/dist/esm/components/formEditor/components/radio.js +2 -0
- package/dist/esm/components/formEditor/components/region.js +2 -0
- package/dist/esm/components/formEditor/components/select.js +2 -0
- package/dist/esm/components/formEditor/components/selectAsync.js +2 -0
- package/dist/esm/components/formEditor/components/sider.js +2 -0
- package/dist/esm/components/formEditor/components/switch.js +2 -0
- package/dist/esm/components/formEditor/components/time.js +2 -0
- package/dist/esm/components/formEditor/components/transferAsync.js +2 -0
- package/dist/esm/components/formEditor/components/treeSelect.js +2 -0
- package/dist/esm/components/formEditor/components/treeSelectAsync.js +2 -0
- package/dist/esm/components/formEditor/editor.js +3 -1
- package/dist/esm/components/formEditor/json.js +2 -0
- package/dist/esm/components/formEditor/preview.js +3 -1
- package/dist/esm/components/formEditor/renderer.js +3 -1
- package/dist/esm/components/icon/icon.js +3 -1
- package/dist/esm/components/icon/iconPicker.js +2 -0
- package/dist/esm/components/layout/filter.js +3 -1
- package/dist/esm/components/layout/filterLayout.js +3 -1
- package/dist/esm/components/layout/grid.js +3 -1
- package/dist/esm/components/layout/list.js +3 -1
- package/dist/esm/components/layout/table.js +3 -1
- package/dist/esm/components/layout/tools.js +3 -1
- package/dist/esm/components/level/level.js +3 -1
- package/dist/esm/components/list/card.js +3 -1
- package/dist/esm/components/list/item.js +3 -2
- package/dist/esm/components/list/list.js +3 -1
- package/dist/esm/components/mapCoord/mapCoord.js +3 -1
- package/dist/esm/components/media/media.js +3 -1
- package/dist/esm/components/modal/modal.js +4 -2
- package/dist/esm/components/modal/modalPage.js +2 -0
- package/dist/esm/components/modal/modalTab.js +2 -0
- package/dist/esm/components/panel/alert.js +3 -1
- package/dist/esm/components/panel/collapse.js +3 -1
- package/dist/esm/components/panel/setting.js +3 -1
- package/dist/esm/components/posterEditor/components/CanvasRuler.js +3 -1
- package/dist/esm/components/posterEditor/elements/circle.js +2 -0
- package/dist/esm/components/posterEditor/elements/image.js +2 -0
- package/dist/esm/components/posterEditor/elements/index.js +3 -2
- package/dist/esm/components/posterEditor/elements/rect.js +2 -0
- package/dist/esm/components/posterEditor/elements/text.js +2 -0
- package/dist/esm/components/posterEditor/hooks/usePosterEditor.js +2 -0
- package/dist/esm/components/posterEditor/pages/LeftToolbar.js +3 -1
- package/dist/esm/components/posterEditor/pages/Panel.js +3 -1
- package/dist/esm/components/posterEditor/pages/PanelItem.js +3 -1
- package/dist/esm/components/posterEditor/pages/RightPanel.js +3 -1
- package/dist/esm/components/posterEditor/posterEditor.js +3 -1
- package/dist/esm/components/schemaEditor/schemaEditor.js +3 -2
- package/dist/esm/components/select/checkboxTag.js +3 -1
- package/dist/esm/components/select/dateTag.js +3 -1
- package/dist/esm/components/select/radioTag.js +3 -1
- package/dist/esm/components/select/selectCard.js +3 -1
- package/dist/esm/components/spec/spec.js +3 -1
- package/dist/esm/components/spec/specEditor.js +3 -1
- package/dist/esm/components/stats/number.js +3 -1
- package/dist/esm/components/stats/realTime.js +3 -1
- package/dist/esm/components/status/blockEmpty.js +3 -1
- package/dist/esm/components/status/listEmpty.js +3 -1
- package/dist/esm/components/table/table.js +3 -1
- package/dist/esm/components/table/tablePage.js +3 -1
- package/dist/esm/components/textImageEditor/textImageEditor.js +3 -2
- package/dist/esm/components/textImageEditor/textModal.js +2 -0
- package/dist/esm/components/tree/treeFilter.js +3 -1
- package/dist/esm/components/upload/config.js +2 -0
- package/dist/esm/components/upload/file.js +3 -2
- package/dist/esm/components/upload/image.js +3 -1
- package/dist/esm/components/upload/manage/item.js +3 -1
- package/dist/esm/components/upload/manager.js +2 -0
- package/dist/esm/components/upload/selectFile.js +3 -1
- package/dist/esm/components/upload/video.js +3 -2
- package/dist/esm/components/widget/avatar.js +3 -1
- package/dist/esm/components/widget/connect.js +3 -1
- package/dist/esm/components/widget/image.js +3 -1
- package/dist/esm/components/widget/placeholder.js +3 -1
- package/dist/esm/config/echart.js +2 -0
- package/dist/esm/config/uno.js +2 -0
- package/dist/esm/config/validate.js +2 -0
- package/dist/esm/hooks/action.js +2 -0
- package/dist/esm/hooks/dialog.js +2 -0
- package/dist/esm/hooks/download.js +2 -0
- package/dist/esm/hooks/drawer.js +2 -0
- package/dist/esm/hooks/echart.js +2 -30
- package/dist/esm/hooks/image.js +2 -0
- package/dist/esm/hooks/level.js +2 -0
- package/dist/esm/hooks/modal.js +2 -0
- package/dist/esm/hooks/table/color.js +2 -0
- package/dist/esm/hooks/table/column.js +2 -0
- package/dist/esm/hooks/table/copy.js +2 -0
- package/dist/esm/hooks/table/hidden.js +2 -0
- package/dist/esm/hooks/table/image.js +2 -0
- package/dist/esm/hooks/table/input.js +2 -0
- package/dist/esm/hooks/table/map.js +2 -0
- package/dist/esm/hooks/table/media.js +2 -0
- package/dist/esm/hooks/table/status.js +2 -0
- package/dist/esm/hooks/table/switch.js +2 -0
- package/dist/esm/hooks/table.js +2 -0
- package/dist/esm/hooks/ui.js +2 -0
- package/dist/esm/langs/en-US.js +1 -0
- package/dist/esm/langs/zh-CN.js +1 -0
- package/dist/esm/main.js +2 -0
- package/dist/esm/pages/authLayout.js +3 -1
- package/dist/esm/pages/layout/global.js +3 -1
- package/dist/esm/pages/layout/page.js +3 -1
- package/dist/esm/pages/layout/tab.js +3 -1
- package/dist/esm/pages/layout.js +3 -1
- package/dist/esm/pages/loading.js +3 -1
- package/dist/esm/pages/login.js +3 -1
- package/dist/esm/pages/menu/avatar.js +91 -61
- package/dist/esm/pages/menu/button.js +2 -0
- package/dist/esm/pages/menu/cmd.js +3 -1
- package/dist/esm/pages/menu/dark.js +2 -0
- package/dist/esm/pages/menu/menuApp.js +66 -47
- package/dist/esm/pages/menu/menuMain.js +3 -1
- package/dist/esm/pages/menu/mobile.js +3 -1
- package/dist/esm/pages/menu/notice.js +2 -0
- package/dist/esm/pages/menu/remoteMenuModal.js +56 -0
- package/dist/esm/pages/page.js +3 -1
- package/dist/esm/pages/page403.js +3 -1
- package/dist/esm/pages/page404.js +3 -1
- package/dist/esm/pages/page500.js +3 -1
- package/dist/esm/pages/pageEmpty.js +3 -1
- package/dist/esm/pages/pageException.js +3 -1
- package/dist/esm/pages/pageLoading.js +3 -1
- package/dist/esm/pages/pageStatus.js +3 -1
- package/dist/esm/static/images/icon/audio.js +2 -0
- package/dist/esm/static/images/icon/excel.js +2 -0
- package/dist/esm/static/images/icon/file.js +2 -0
- package/dist/esm/static/images/icon/folder.js +2 -0
- package/dist/esm/static/images/icon/pdf.js +2 -0
- package/dist/esm/static/images/icon/ppt.js +2 -0
- package/dist/esm/static/images/icon/video.js +2 -0
- package/dist/esm/static/images/icon/word.js +2 -0
- package/dist/esm/stores/ui.js +2 -10
- package/dist/esm/theme/naiveTheme.js +2 -0
- package/dist/esm/theme/presetTheme.js +2 -0
- package/dist/esm/theme/uno.js +3 -1
- package/dist/types/components/editor/aiEditor.d.ts +9 -0
- package/dist/types/components/table/table.d.ts +4 -18
- package/dist/types/components/widget/avatar.d.ts +1 -3
- package/dist/types/components/widget/image.d.ts +1 -3
- package/dist/types/main.d.ts +22 -0
- package/dist/types/pages/menu/remoteMenuModal.d.ts +67 -0
- package/package.json +31 -31
|
@@ -3,6 +3,7 @@ import { useI18n as a } from "@duxweb/dvha-core";
|
|
|
3
3
|
import { NDatePicker as o } from "naive-ui";
|
|
4
4
|
import { useVModel as s } from "@vueuse/core";
|
|
5
5
|
import c from "dayjs";
|
|
6
|
+
//#region src/components/select/dateTag.tsx
|
|
6
7
|
function l(e) {
|
|
7
8
|
if (typeof e.range == "function") return e.range();
|
|
8
9
|
if (e.value) return e.value;
|
|
@@ -63,7 +64,7 @@ function h(e, t) {
|
|
|
63
64
|
days: "components.dateTag.recentDays"
|
|
64
65
|
}[e.unit], { num: e.num }) : "";
|
|
65
66
|
}
|
|
66
|
-
|
|
67
|
+
var g = /* @__PURE__ */ n({
|
|
67
68
|
name: "DuxDateTag",
|
|
68
69
|
props: {
|
|
69
70
|
options: {
|
|
@@ -117,4 +118,5 @@ const g = /* @__PURE__ */ n({
|
|
|
117
118
|
})])]);
|
|
118
119
|
}
|
|
119
120
|
});
|
|
121
|
+
//#endregion
|
|
120
122
|
export { g as DuxDateTag };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createVNode as e, defineComponent as t } from "vue";
|
|
2
2
|
import { useVModel as n } from "@vueuse/core";
|
|
3
|
+
//#region src/components/select/radioTag.tsx
|
|
3
4
|
function r(e, t) {
|
|
4
5
|
return [
|
|
5
6
|
"inline-flex items-center justify-center px-3 py-1.5 rounded-sm text-sm transition-colors duration-150 cursor-pointer select-none",
|
|
@@ -7,7 +8,7 @@ function r(e, t) {
|
|
|
7
8
|
t && "opacity-50 cursor-not-allowed"
|
|
8
9
|
];
|
|
9
10
|
}
|
|
10
|
-
|
|
11
|
+
var i = /* @__PURE__ */ t({
|
|
11
12
|
name: "DuxRadioTag",
|
|
12
13
|
props: {
|
|
13
14
|
options: {
|
|
@@ -47,4 +48,5 @@ const i = /* @__PURE__ */ t({
|
|
|
47
48
|
})]);
|
|
48
49
|
}
|
|
49
50
|
});
|
|
51
|
+
//#endregion
|
|
50
52
|
export { i as DuxRadioTag };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createVNode as e, defineComponent as t } from "vue";
|
|
2
2
|
import { useVModel as n } from "@vueuse/core";
|
|
3
|
-
|
|
3
|
+
//#region src/components/select/selectCard.tsx
|
|
4
|
+
var r = /* @__PURE__ */ t({
|
|
4
5
|
name: "DuxSelectCard",
|
|
5
6
|
props: {
|
|
6
7
|
options: {
|
|
@@ -94,4 +95,5 @@ const r = /* @__PURE__ */ t({
|
|
|
94
95
|
}] }, [n.description])])])]))]);
|
|
95
96
|
}
|
|
96
97
|
});
|
|
98
|
+
//#endregion
|
|
97
99
|
export { r as DuxSelectCard };
|
|
@@ -5,6 +5,7 @@ import { computed as i, createVNode as a, defineComponent as o, mergeProps as s,
|
|
|
5
5
|
import { useI18n as u } from "@duxweb/dvha-core";
|
|
6
6
|
import { NSwitch as d } from "naive-ui";
|
|
7
7
|
import { useVModel as f } from "@vueuse/core";
|
|
8
|
+
//#region src/components/spec/spec.tsx
|
|
8
9
|
var p = "__dux_spec__", m = (e) => `${p}${e}`;
|
|
9
10
|
function h(e = []) {
|
|
10
11
|
return (e || []).map((e) => {
|
|
@@ -40,7 +41,7 @@ function g(e) {
|
|
|
40
41
|
function _(e, t) {
|
|
41
42
|
return t.map((t) => e?.__specs?.[t.id]?.id || e?.[m(t.id)] || "").join("__");
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
+
var v = /* @__PURE__ */ o({
|
|
44
45
|
name: "DuxSpec",
|
|
45
46
|
props: {
|
|
46
47
|
columns: {
|
|
@@ -196,4 +197,5 @@ const v = /* @__PURE__ */ o({
|
|
|
196
197
|
} }), null)]);
|
|
197
198
|
}
|
|
198
199
|
});
|
|
200
|
+
//#endregion
|
|
199
201
|
export { v as DuxSpec };
|
|
@@ -5,6 +5,7 @@ import { useI18n as c } from "@duxweb/dvha-core";
|
|
|
5
5
|
import { NButton as l, NCheckbox as u, NInput as d } from "naive-ui";
|
|
6
6
|
import { useVModel as f } from "@vueuse/core";
|
|
7
7
|
import { VueDraggable as p } from "vue-draggable-plus";
|
|
8
|
+
//#region src/components/spec/specEditor.tsx
|
|
8
9
|
function m(e) {
|
|
9
10
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
|
|
10
11
|
}
|
|
@@ -27,7 +28,7 @@ function _() {
|
|
|
27
28
|
is_image: !1
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
|
-
|
|
31
|
+
var v = /* @__PURE__ */ r({
|
|
31
32
|
name: "DuxSpecEditor",
|
|
32
33
|
props: {
|
|
33
34
|
value: Array,
|
|
@@ -222,4 +223,5 @@ const v = /* @__PURE__ */ r({
|
|
|
222
223
|
};
|
|
223
224
|
}
|
|
224
225
|
});
|
|
226
|
+
//#endregion
|
|
225
227
|
export { v as DuxSpecEditor, _ as createSpec, g as createSpecValue };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createTextVNode as e, createVNode as t, defineComponent as n } from "vue";
|
|
2
|
-
|
|
2
|
+
//#region src/components/stats/number.tsx
|
|
3
|
+
var r = /* @__PURE__ */ n({
|
|
3
4
|
name: "DuxStatsNumber",
|
|
4
5
|
props: {
|
|
5
6
|
title: {
|
|
@@ -32,4 +33,5 @@ const r = /* @__PURE__ */ n({
|
|
|
32
33
|
]);
|
|
33
34
|
}
|
|
34
35
|
});
|
|
36
|
+
//#endregion
|
|
35
37
|
export { r as DuxStatsNumber };
|
|
@@ -6,7 +6,8 @@ import { DuxStatsNumber as n } from "./number.js";
|
|
|
6
6
|
import { Fragment as r, computed as i, createVNode as a, defineComponent as o } from "vue";
|
|
7
7
|
import { useI18n as s } from "@duxweb/dvha-core";
|
|
8
8
|
import { NScrollbar as c } from "naive-ui";
|
|
9
|
-
|
|
9
|
+
//#region src/components/stats/realTime.tsx
|
|
10
|
+
var l = /* @__PURE__ */ o({
|
|
10
11
|
name: "DuxStatsRealTime",
|
|
11
12
|
props: {
|
|
12
13
|
title: {
|
|
@@ -73,4 +74,5 @@ const l = /* @__PURE__ */ o({
|
|
|
73
74
|
});
|
|
74
75
|
}
|
|
75
76
|
});
|
|
77
|
+
//#endregion
|
|
76
78
|
export { l as DuxStatsRealTime };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { createVNode as e, defineComponent as t } from "vue";
|
|
2
2
|
import { useI18n as n } from "@duxweb/dvha-core";
|
|
3
3
|
import r from "clsx";
|
|
4
|
-
|
|
4
|
+
//#region src/components/status/blockEmpty.tsx
|
|
5
|
+
var i = /* @__PURE__ */ t({
|
|
5
6
|
name: "Message",
|
|
6
7
|
props: {
|
|
7
8
|
text: { type: String },
|
|
@@ -151,4 +152,5 @@ const i = /* @__PURE__ */ t({
|
|
|
151
152
|
])]), e("div", { class: "flex flex-col gap-0" }, [e("div", { class: r([t.simple ? "text-center text-muted" : "text-default"]) }, [t.text || i("pages.empty.title")]), !t.simple && e("div", { class: "text-muted" }, [t.desc || i("pages.empty.desc")])])])]);
|
|
152
153
|
}
|
|
153
154
|
});
|
|
155
|
+
//#endregion
|
|
154
156
|
export { i as DuxBlockEmpty };
|
|
@@ -2,7 +2,8 @@ import { DuxDrawEmptyForm as e } from "../draw/drawEmptyForm.js";
|
|
|
2
2
|
import "../draw/index.js";
|
|
3
3
|
import { createVNode as t, defineComponent as n } from "vue";
|
|
4
4
|
import { useI18n as r } from "@duxweb/dvha-core";
|
|
5
|
-
|
|
5
|
+
//#region src/components/status/listEmpty.tsx
|
|
6
|
+
var i = /* @__PURE__ */ n({
|
|
6
7
|
name: "DuxListEmpty",
|
|
7
8
|
props: {
|
|
8
9
|
title: String,
|
|
@@ -18,4 +19,5 @@ const i = /* @__PURE__ */ n({
|
|
|
18
19
|
]);
|
|
19
20
|
}
|
|
20
21
|
});
|
|
22
|
+
//#endregion
|
|
21
23
|
export { i as DuxListEmpty };
|
|
@@ -6,7 +6,8 @@ import { computed as n, createVNode as r, defineComponent as i, mergeProps as a,
|
|
|
6
6
|
import { useI18n as s } from "@duxweb/dvha-core";
|
|
7
7
|
import { NDataTable as c, NPagination as l } from "naive-ui";
|
|
8
8
|
import { useWindowSize as u } from "@vueuse/core";
|
|
9
|
-
|
|
9
|
+
//#region src/components/table/table.tsx
|
|
10
|
+
var d = /* @__PURE__ */ i({
|
|
10
11
|
name: "DuxTable",
|
|
11
12
|
props: {
|
|
12
13
|
path: {
|
|
@@ -44,4 +45,5 @@ const d = /* @__PURE__ */ i({
|
|
|
44
45
|
}), { empty: () => r(t, { bordered: !1 }, null) }), i.pagination && r("div", { class: "flex justify-end p-4 border-t border-muted" }, [r(l, a(m.tablePagination.value, { simple: h.value < 768 }), { prefix: () => r("div", null, [g("components.list.total", { total: m.total.value || 0 })]) })])]);
|
|
45
46
|
}
|
|
46
47
|
});
|
|
48
|
+
//#endregion
|
|
47
49
|
export { d as DuxTable };
|
|
@@ -3,7 +3,8 @@ import "../status/index.js";
|
|
|
3
3
|
import { DuxTableLayout as t } from "../layout/table.js";
|
|
4
4
|
import { computed as n, createVNode as r, defineComponent as i, mergeProps as a, ref as o } from "vue";
|
|
5
5
|
import { NDataTable as s } from "naive-ui";
|
|
6
|
-
|
|
6
|
+
//#region src/components/table/tablePage.tsx
|
|
7
|
+
var c = /* @__PURE__ */ i({
|
|
7
8
|
name: "DuxTablePage",
|
|
8
9
|
props: { tableProps: { type: Object } },
|
|
9
10
|
extends: t,
|
|
@@ -35,4 +36,5 @@ const c = /* @__PURE__ */ i({
|
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
38
|
});
|
|
39
|
+
//#endregion
|
|
38
40
|
export { c as DuxTablePage };
|
|
@@ -9,6 +9,7 @@ import { NButton as d } from "naive-ui";
|
|
|
9
9
|
import f from "clsx";
|
|
10
10
|
import { VueDraggable as p } from "vue-draggable-plus";
|
|
11
11
|
import m from "short-unique-id";
|
|
12
|
+
//#region src/components/textImageEditor/textImageEditor.tsx
|
|
12
13
|
function h(e) {
|
|
13
14
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !o(e);
|
|
14
15
|
}
|
|
@@ -68,8 +69,7 @@ var v = /* @__PURE__ */ a({
|
|
|
68
69
|
innerHTML: e.content || ""
|
|
69
70
|
}, null))]) : i("div", { class: "h-40 flex items-center justify-center text-muted" }, [e.title])])] });
|
|
70
71
|
}
|
|
71
|
-
})
|
|
72
|
-
const y = /* @__PURE__ */ a({
|
|
72
|
+
}), y = /* @__PURE__ */ a({
|
|
73
73
|
name: "DuxTextImageEditor",
|
|
74
74
|
props: {
|
|
75
75
|
value: [String, Array],
|
|
@@ -271,4 +271,5 @@ const y = /* @__PURE__ */ a({
|
|
|
271
271
|
};
|
|
272
272
|
}
|
|
273
273
|
});
|
|
274
|
+
//#endregion
|
|
274
275
|
export { y as DuxTextImageEditor };
|
|
@@ -4,6 +4,7 @@ import { DuxAiEditor as t } from "../editor/aiEditor.js";
|
|
|
4
4
|
import "../editor/index.js";
|
|
5
5
|
import { Fragment as n, createTextVNode as r, createVNode as i, defineComponent as a, ref as o, watch as s } from "vue";
|
|
6
6
|
import { NButton as c } from "naive-ui";
|
|
7
|
+
//#region src/components/textImageEditor/textModal.tsx
|
|
7
8
|
var l = /* @__PURE__ */ a({
|
|
8
9
|
name: "DuxTextImageEditorTextModal",
|
|
9
10
|
props: {
|
|
@@ -67,4 +68,5 @@ var l = /* @__PURE__ */ a({
|
|
|
67
68
|
});
|
|
68
69
|
}
|
|
69
70
|
});
|
|
71
|
+
//#endregion
|
|
70
72
|
export { l as default };
|
|
@@ -5,7 +5,8 @@ import { useCustomMutation as l, useI18n as u, useTree as d } from "@duxweb/dvha
|
|
|
5
5
|
import { NButton as f, NDropdown as p, NInput as m, NScrollbar as h, NSpin as g, NTree as _ } from "naive-ui";
|
|
6
6
|
import { useVModel as v } from "@vueuse/core";
|
|
7
7
|
import y from "clsx";
|
|
8
|
-
|
|
8
|
+
//#region src/components/tree/treeFilter.tsx
|
|
9
|
+
var b = /* @__PURE__ */ i({
|
|
9
10
|
name: "DuxTreeFilter",
|
|
10
11
|
props: {
|
|
11
12
|
title: String,
|
|
@@ -159,4 +160,5 @@ const b = /* @__PURE__ */ i({
|
|
|
159
160
|
] });
|
|
160
161
|
}
|
|
161
162
|
});
|
|
163
|
+
//#endregion
|
|
162
164
|
export { b as DuxTreeFilter };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { computed as e } from "vue";
|
|
2
2
|
import { createLocalUploadDriver as t, createS3UploadDriver as n, useManage as r } from "@duxweb/dvha-core";
|
|
3
|
+
//#region src/components/upload/config.ts
|
|
3
4
|
function i(i) {
|
|
4
5
|
let a = r(), o = e(() => i?.uploadPath || a.config?.apiPath?.upload || "upload"), s = e(() => i?.managePath || a.config?.apiPath?.uploadManager || "uploadManager"), c = e(() => i?.driver || a.config?.upload?.driver || "local"), l = e(() => i?.method || a.config?.upload?.method || "POST");
|
|
5
6
|
return {
|
|
@@ -16,4 +17,5 @@ function i(i) {
|
|
|
16
17
|
method: l
|
|
17
18
|
};
|
|
18
19
|
}
|
|
20
|
+
//#endregion
|
|
19
21
|
export { i as useUploadConfig };
|
|
@@ -8,6 +8,7 @@ import { useI18n as f, useUpload as p } from "@duxweb/dvha-core";
|
|
|
8
8
|
import { NButton as m, NDataTable as h, NProgress as g, useMessage as _ } from "naive-ui";
|
|
9
9
|
import { useDropZone as v, useVModel as y } from "@vueuse/core";
|
|
10
10
|
import b from "mime";
|
|
11
|
+
//#region src/components/upload/file.tsx
|
|
11
12
|
function x(e) {
|
|
12
13
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !c(e);
|
|
13
14
|
}
|
|
@@ -42,8 +43,7 @@ var S = {
|
|
|
42
43
|
empty: "flex items-center justify-center h-full text-muted",
|
|
43
44
|
actions: "flex gap-2"
|
|
44
45
|
}
|
|
45
|
-
}
|
|
46
|
-
const w = /* @__PURE__ */ s({
|
|
46
|
+
}, w = /* @__PURE__ */ s({
|
|
47
47
|
name: "DuxFileUpload",
|
|
48
48
|
props: {
|
|
49
49
|
path: {
|
|
@@ -231,4 +231,5 @@ const w = /* @__PURE__ */ s({
|
|
|
231
231
|
}, { empty: () => o("div", { class: C.table.empty }, [E("components.upload.empty")]) })]);
|
|
232
232
|
}
|
|
233
233
|
});
|
|
234
|
+
//#endregion
|
|
234
235
|
export { w as DuxFileUpload };
|
|
@@ -8,7 +8,8 @@ import { NButton as l, NImage as u, NProgress as d, useMessage as f } from "naiv
|
|
|
8
8
|
import { useVModel as p } from "@vueuse/core";
|
|
9
9
|
import m from "clsx";
|
|
10
10
|
import { VueDraggable as h } from "vue-draggable-plus";
|
|
11
|
-
|
|
11
|
+
//#region src/components/upload/image.tsx
|
|
12
|
+
var g = /* @__PURE__ */ a({
|
|
12
13
|
name: "DuxImageUpload",
|
|
13
14
|
props: {
|
|
14
15
|
path: {
|
|
@@ -167,4 +168,5 @@ const g = /* @__PURE__ */ a({
|
|
|
167
168
|
}, null)])]) : i("div", { class: "i-tabler:plus size-4" }, null)])])] })]);
|
|
168
169
|
}
|
|
169
170
|
});
|
|
171
|
+
//#endregion
|
|
170
172
|
export { g as DuxImageUpload };
|
|
@@ -12,7 +12,8 @@ import { createVNode as l, defineComponent as u } from "vue";
|
|
|
12
12
|
import { useI18n as d } from "@duxweb/dvha-core";
|
|
13
13
|
import { NCheckbox as f, NImage as p } from "naive-ui";
|
|
14
14
|
import m from "clsx";
|
|
15
|
-
|
|
15
|
+
//#region src/components/upload/manage/item.tsx
|
|
16
|
+
var h = /* @__PURE__ */ u({
|
|
16
17
|
name: "DuxFileManageItem",
|
|
17
18
|
props: {
|
|
18
19
|
name: String,
|
|
@@ -128,4 +129,5 @@ const h = /* @__PURE__ */ u({
|
|
|
128
129
|
]);
|
|
129
130
|
}
|
|
130
131
|
});
|
|
132
|
+
//#endregion
|
|
131
133
|
export { h as DuxFileManageItem };
|
|
@@ -8,6 +8,7 @@ import { DuxFileManageItem as i } from "./manage/item.js";
|
|
|
8
8
|
import { computed as a, createTextVNode as o, createVNode as s, defineComponent as c, isVNode as l, nextTick as u, ref as d } from "vue";
|
|
9
9
|
import { useClient as f, useI18n as p, useInfiniteList as m, useUpload as h } from "@duxweb/dvha-core";
|
|
10
10
|
import { NButton as g, NDropdown as _, NInfiniteScroll as v, NInput as y, NSpin as b, NTab as x, NTabs as S, NTooltip as C, useMessage as w } from "naive-ui";
|
|
11
|
+
//#region src/components/upload/manager.tsx
|
|
11
12
|
function T(e) {
|
|
12
13
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !l(e);
|
|
13
14
|
}
|
|
@@ -336,4 +337,5 @@ var E = /* @__PURE__ */ c({
|
|
|
336
337
|
};
|
|
337
338
|
}
|
|
338
339
|
});
|
|
340
|
+
//#endregion
|
|
339
341
|
export { E as default };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { computed as e, createTextVNode as t, createVNode as n, defineComponent as r, ref as i } from "vue";
|
|
2
2
|
import { useI18n as a } from "@duxweb/dvha-core";
|
|
3
3
|
import { useVModel as o } from "@vueuse/core";
|
|
4
|
-
|
|
4
|
+
//#region src/components/upload/selectFile.tsx
|
|
5
|
+
var s = /* @__PURE__ */ r({
|
|
5
6
|
name: "DuxSelectUpload",
|
|
6
7
|
props: {
|
|
7
8
|
maxNum: Number,
|
|
@@ -55,4 +56,5 @@ const s = /* @__PURE__ */ r({
|
|
|
55
56
|
])])])])]);
|
|
56
57
|
}
|
|
57
58
|
});
|
|
59
|
+
//#endregion
|
|
58
60
|
export { s as DuxSelectUpload };
|
|
@@ -8,6 +8,7 @@ import { NButton as f, NProgress as p, useMessage as m } from "naive-ui";
|
|
|
8
8
|
import { useVModel as h } from "@vueuse/core";
|
|
9
9
|
import g from "clsx";
|
|
10
10
|
import { VueDraggable as _ } from "vue-draggable-plus";
|
|
11
|
+
//#region src/components/upload/video.tsx
|
|
11
12
|
var v = /* @__PURE__ */ a({
|
|
12
13
|
name: "DuxVideoThumb",
|
|
13
14
|
props: { src: String },
|
|
@@ -62,8 +63,7 @@ var v = /* @__PURE__ */ a({
|
|
|
62
63
|
class: "size-12 rounded object-cover"
|
|
63
64
|
}, null) : i("div", { class: "i-tabler:video size-6 text-muted" }, null)]);
|
|
64
65
|
}
|
|
65
|
-
})
|
|
66
|
-
const y = /* @__PURE__ */ a({
|
|
66
|
+
}), y = /* @__PURE__ */ a({
|
|
67
67
|
name: "DuxVideoUpload",
|
|
68
68
|
props: {
|
|
69
69
|
path: {
|
|
@@ -222,4 +222,5 @@ const y = /* @__PURE__ */ a({
|
|
|
222
222
|
}, null)])]) : i("div", { class: "i-tabler:plus size-4" }, null)])])] })]);
|
|
223
223
|
}
|
|
224
224
|
});
|
|
225
|
+
//#endregion
|
|
225
226
|
export { y as DuxVideoUpload };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createVNode as e, defineComponent as t, h as n, mergeProps as r } from "vue";
|
|
2
2
|
import { NAvatar as i } from "naive-ui";
|
|
3
|
-
|
|
3
|
+
//#region src/components/widget/avatar.tsx
|
|
4
|
+
var a = /* @__PURE__ */ t({
|
|
4
5
|
name: "DuxAvatar",
|
|
5
6
|
props: {},
|
|
6
7
|
extends: i,
|
|
@@ -56,4 +57,5 @@ const a = /* @__PURE__ */ t({
|
|
|
56
57
|
};
|
|
57
58
|
}
|
|
58
59
|
});
|
|
60
|
+
//#endregion
|
|
59
61
|
export { a as DuxAvatar };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { DuxCard as e } from "../card/card.js";
|
|
2
2
|
import "../card/index.js";
|
|
3
3
|
import { createVNode as t, defineComponent as n } from "vue";
|
|
4
|
-
|
|
4
|
+
//#region src/components/widget/connect.tsx
|
|
5
|
+
var r = /* @__PURE__ */ n({
|
|
5
6
|
name: "DuxWidgetConnect",
|
|
6
7
|
props: {
|
|
7
8
|
title: String,
|
|
@@ -124,4 +125,5 @@ const r = /* @__PURE__ */ n({
|
|
|
124
125
|
])])])] });
|
|
125
126
|
}
|
|
126
127
|
});
|
|
128
|
+
//#endregion
|
|
127
129
|
export { r as DuxWidgetConnect };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { DuxPlaceholder as e } from "./placeholder.js";
|
|
2
2
|
import { createVNode as t, defineComponent as n, h as r, mergeProps as i } from "vue";
|
|
3
3
|
import { NImage as a } from "naive-ui";
|
|
4
|
-
|
|
4
|
+
//#region src/components/widget/image.tsx
|
|
5
|
+
var o = /* @__PURE__ */ n({
|
|
5
6
|
name: "DuxImage",
|
|
6
7
|
props: {},
|
|
7
8
|
extends: a,
|
|
@@ -15,4 +16,5 @@ const o = /* @__PURE__ */ n({
|
|
|
15
16
|
});
|
|
16
17
|
}
|
|
17
18
|
});
|
|
19
|
+
//#endregion
|
|
18
20
|
export { o as DuxImage };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createVNode as e, defineComponent as t } from "vue";
|
|
2
|
-
|
|
2
|
+
//#region src/components/widget/placeholder.tsx
|
|
3
|
+
var n = /* @__PURE__ */ t({
|
|
3
4
|
name: "DuxPlaceholder",
|
|
4
5
|
props: {
|
|
5
6
|
width: {
|
|
@@ -65,4 +66,5 @@ const n = /* @__PURE__ */ t({
|
|
|
65
66
|
]);
|
|
66
67
|
}
|
|
67
68
|
});
|
|
69
|
+
//#endregion
|
|
68
70
|
export { n as DuxPlaceholder };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { generate as e } from "@ant-design/colors";
|
|
2
|
+
//#region src/config/echart.ts
|
|
2
3
|
function t(e, t) {
|
|
3
4
|
let n = (Number(e.h) % 360 + 360) % 360, r = [], i = [
|
|
4
5
|
0,
|
|
@@ -322,4 +323,5 @@ function n(t, n) {
|
|
|
322
323
|
}
|
|
323
324
|
};
|
|
324
325
|
}
|
|
326
|
+
//#endregion
|
|
325
327
|
export { t as generateRainbowFromColor, n as getTheme };
|
package/dist/esm/config/uno.js
CHANGED
|
@@ -3,6 +3,7 @@ import "../theme/index.js";
|
|
|
3
3
|
import t from "@unocss/preset-icons/browser";
|
|
4
4
|
import n from "@unocss/preset-typography";
|
|
5
5
|
import { presetWind4 as r } from "unocss/preset-wind4";
|
|
6
|
+
//#region src/config/uno.ts
|
|
6
7
|
function i(i) {
|
|
7
8
|
let a = { presets: [
|
|
8
9
|
r({ preflights: {
|
|
@@ -15,4 +16,5 @@ function i(i) {
|
|
|
15
16
|
] };
|
|
16
17
|
return i || (a.preflights = [{ getCSS: () => import("../theme/uno.js").then((e) => e.default) }]), a;
|
|
17
18
|
}
|
|
19
|
+
//#endregion
|
|
18
20
|
export { i as config };
|
|
@@ -2,10 +2,12 @@ import { localize as e } from "@vee-validate/i18n";
|
|
|
2
2
|
import t from "@vee-validate/i18n/dist/locale/en.json";
|
|
3
3
|
import n from "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
4
4
|
import { configure as r } from "vee-validate";
|
|
5
|
+
//#region src/config/validate.ts
|
|
5
6
|
function i() {
|
|
6
7
|
r({ generateMessage: e({
|
|
7
8
|
"en-US": t,
|
|
8
9
|
"zh-CN": n
|
|
9
10
|
}) });
|
|
10
11
|
}
|
|
12
|
+
//#endregion
|
|
11
13
|
export { i as initVeeValidate };
|
package/dist/esm/hooks/action.js
CHANGED
|
@@ -5,6 +5,7 @@ import { h as r } from "vue";
|
|
|
5
5
|
import { useCustomMutation as i, useDelete as a, useI18n as o, useInvalidate as s, useManage as c } from "@duxweb/dvha-core";
|
|
6
6
|
import { NButton as l, NDropdown as u, useMessage as d } from "naive-ui";
|
|
7
7
|
import { useRoute as f, useRouter as p } from "vue-router";
|
|
8
|
+
//#region src/hooks/action.tsx
|
|
8
9
|
function m(r) {
|
|
9
10
|
let l = n(), u = t(), m = e(), { t: _ } = o(), v = d(), y = c(), b = p(), x = f(), { invalidate: S } = s(), C = i({
|
|
10
11
|
onSuccess: (e) => {
|
|
@@ -173,4 +174,5 @@ function g() {
|
|
|
173
174
|
}))]);
|
|
174
175
|
} };
|
|
175
176
|
}
|
|
177
|
+
//#endregion
|
|
176
178
|
export { m as useAction, h as useActionButton, g as useActionDropdown };
|
package/dist/esm/hooks/dialog.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import e from "../components/dialog/dialog.js";
|
|
2
2
|
import "../components/index.js";
|
|
3
3
|
import { useOverlay as t } from "@overlastic/vue";
|
|
4
|
+
//#region src/hooks/dialog.tsx
|
|
4
5
|
function n() {
|
|
5
6
|
let n = t(e), r = (e) => n(e);
|
|
6
7
|
return {
|
|
@@ -26,4 +27,5 @@ function n() {
|
|
|
26
27
|
})
|
|
27
28
|
};
|
|
28
29
|
}
|
|
30
|
+
//#endregion
|
|
29
31
|
export { n as useDialog };
|
|
@@ -2,6 +2,7 @@ import { ref as e } from "vue";
|
|
|
2
2
|
import { useClient as t, useI18n as n } from "@duxweb/dvha-core";
|
|
3
3
|
import { useMessage as r } from "naive-ui";
|
|
4
4
|
import i from "dayjs";
|
|
5
|
+
//#region src/hooks/download.ts
|
|
5
6
|
var a = {
|
|
6
7
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "xlsx",
|
|
7
8
|
"application/vnd.ms-excel": "xls",
|
|
@@ -137,4 +138,5 @@ function c() {
|
|
|
137
138
|
}
|
|
138
139
|
};
|
|
139
140
|
}
|
|
141
|
+
//#endregion
|
|
140
142
|
export { c as useDownload };
|
package/dist/esm/hooks/drawer.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import e from "../components/drawer/drawer.js";
|
|
2
2
|
import "../components/index.js";
|
|
3
3
|
import { useOverlay as t } from "@overlastic/vue";
|
|
4
|
+
//#region src/hooks/drawer.tsx
|
|
4
5
|
function n() {
|
|
5
6
|
let n = t(e);
|
|
6
7
|
return { show: (e) => n(e) };
|
|
7
8
|
}
|
|
9
|
+
//#endregion
|
|
8
10
|
export { n as useDrawer };
|
package/dist/esm/hooks/echart.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { computed as e, ref as t, watch as n } from "vue";
|
|
2
2
|
import { add as r } from "lodash-es";
|
|
3
|
-
|
|
4
|
-
* 通用图表配置
|
|
5
|
-
*/
|
|
3
|
+
//#region src/hooks/echart.ts
|
|
6
4
|
function i(e) {
|
|
7
5
|
let t = e?.min ?? !1, n = e?.showLegend ?? !t, r = t && (e?.showXAxisLabel || e?.showYAxisLabel);
|
|
8
6
|
return {
|
|
@@ -21,9 +19,6 @@ function i(e) {
|
|
|
21
19
|
}
|
|
22
20
|
};
|
|
23
21
|
}
|
|
24
|
-
/**
|
|
25
|
-
* 坐标轴图表基础配置
|
|
26
|
-
*/
|
|
27
22
|
function a(t) {
|
|
28
23
|
let n = i(t), r = t?.min ?? !1, a = e(() => t?.labels?.length ? t.labels : Array.isArray(t?.data) && t.data.length > 0 && typeof t.data[0] == "object" && t.data[0] !== null && "name" in t.data[0] ? t.data.map((e) => e.name) : []), o = e(() => {
|
|
29
24
|
if (!t?.data?.length) return [{
|
|
@@ -75,9 +70,6 @@ function a(t) {
|
|
|
75
70
|
isMin: r
|
|
76
71
|
};
|
|
77
72
|
}
|
|
78
|
-
/**
|
|
79
|
-
* 柱状图
|
|
80
|
-
*/
|
|
81
73
|
function o(t) {
|
|
82
74
|
let { commonOption: n, xAxisData: r, seriesData: i, xAxisConfig: o, yAxisConfig: s, isMin: c } = a(t);
|
|
83
75
|
return { option: e(() => {
|
|
@@ -134,9 +126,6 @@ function o(t) {
|
|
|
134
126
|
};
|
|
135
127
|
}) };
|
|
136
128
|
}
|
|
137
|
-
/**
|
|
138
|
-
* 折线图
|
|
139
|
-
*/
|
|
140
129
|
function s(t) {
|
|
141
130
|
let { commonOption: n, xAxisData: r, seriesData: i, xAxisConfig: o, yAxisConfig: s, isMin: c } = a(t);
|
|
142
131
|
return { option: e(() => {
|
|
@@ -182,9 +171,6 @@ function s(t) {
|
|
|
182
171
|
};
|
|
183
172
|
}) };
|
|
184
173
|
}
|
|
185
|
-
/**
|
|
186
|
-
* 饼图系列基础配置
|
|
187
|
-
*/
|
|
188
174
|
function c(r) {
|
|
189
175
|
let a = i(r), o = r?.min ?? !1, s = e(() => r?.data?.map?.((e) => ({
|
|
190
176
|
name: e.name,
|
|
@@ -238,9 +224,6 @@ function l(t) {
|
|
|
238
224
|
legendData: i
|
|
239
225
|
};
|
|
240
226
|
}
|
|
241
|
-
/**
|
|
242
|
-
* 环形图
|
|
243
|
-
*/
|
|
244
227
|
function u(t) {
|
|
245
228
|
let { commonOption: n, data: i, legendData: a, selected: o, shouldShowLegend: s, isMin: l } = c(t), u = e(() => a.value?.reduce((e, t) => r(e, Number(t.value)), 0) || 0);
|
|
246
229
|
return {
|
|
@@ -359,9 +342,6 @@ function f(t) {
|
|
|
359
342
|
legendData: i
|
|
360
343
|
};
|
|
361
344
|
}
|
|
362
|
-
/**
|
|
363
|
-
* 雷达图
|
|
364
|
-
*/
|
|
365
345
|
function p(t) {
|
|
366
346
|
let n = i(t), r = t?.min ?? !1;
|
|
367
347
|
return { option: e(() => {
|
|
@@ -395,9 +375,6 @@ function p(t) {
|
|
|
395
375
|
};
|
|
396
376
|
}) };
|
|
397
377
|
}
|
|
398
|
-
/**
|
|
399
|
-
* 地图
|
|
400
|
-
*/
|
|
401
378
|
function m(t) {
|
|
402
379
|
let n = i(t), r = t?.min ?? !1;
|
|
403
380
|
return { option: e(() => ({
|
|
@@ -422,9 +399,6 @@ function m(t) {
|
|
|
422
399
|
}]
|
|
423
400
|
})) };
|
|
424
401
|
}
|
|
425
|
-
/**
|
|
426
|
-
* 矩形树图
|
|
427
|
-
*/
|
|
428
402
|
function h(t) {
|
|
429
403
|
let n = i(t), r = t?.min ?? !1;
|
|
430
404
|
return { option: e(() => {
|
|
@@ -477,9 +451,6 @@ function h(t) {
|
|
|
477
451
|
};
|
|
478
452
|
}) };
|
|
479
453
|
}
|
|
480
|
-
/**
|
|
481
|
-
* 通用图表类型选择器
|
|
482
|
-
*/
|
|
483
454
|
function g(e, t) {
|
|
484
455
|
switch (e) {
|
|
485
456
|
case "bar": return o(t);
|
|
@@ -494,4 +465,5 @@ function g(e, t) {
|
|
|
494
465
|
default: return o(t);
|
|
495
466
|
}
|
|
496
467
|
}
|
|
468
|
+
//#endregion
|
|
497
469
|
export { o as useEchartBar, i as useEchartCommon, f as useEchartFunnel, s as useEchartLine, m as useEchartMap, l as useEchartPie, p as useEchartRadar, u as useEchartRing, d as useEchartRose, h as useEchartTreeMap, g as useEchartType };
|
package/dist/esm/hooks/image.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h as e, render as t } from "vue";
|
|
2
2
|
import { NImage as n, NImageGroup as r } from "naive-ui";
|
|
3
|
+
//#region src/hooks/image.ts
|
|
3
4
|
function i() {
|
|
4
5
|
let i = document.querySelector("#preview-image");
|
|
5
6
|
if (!i) {
|
|
@@ -18,4 +19,5 @@ function i() {
|
|
|
18
19
|
c.length > 1 ? t(e(r, {}, { default: () => c }), i) : t(c[0], i), i?.querySelectorAll(".n-image img")[o || 0]?.dispatchEvent(s);
|
|
19
20
|
} };
|
|
20
21
|
}
|
|
22
|
+
//#endregion
|
|
21
23
|
export { i as useImagePreview };
|