@duxweb/dvha-pro 0.0.8 → 1.0.15
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/component.cjs +1 -1
- package/dist/cjs/components/card/card.cjs +1 -1
- package/dist/cjs/components/card/store.cjs +1 -0
- package/dist/cjs/components/chart/echart.cjs +1 -1
- package/dist/cjs/components/crop/imageCrop.cjs +1 -0
- package/dist/cjs/components/crop/imageCropModal.cjs +1 -0
- package/dist/cjs/components/dashboard/helloBig.cjs +1 -1
- package/dist/cjs/components/data/dynamicData.cjs +1 -0
- package/dist/cjs/components/data/dynamicSelect.cjs +1 -0
- package/dist/cjs/components/data/selectModal.cjs +1 -0
- package/dist/cjs/components/dialog/dialog.cjs +1 -1
- package/dist/cjs/components/drawer/drawer.cjs +1 -1
- package/dist/cjs/components/editor/aiEditor.cjs +1 -0
- package/dist/cjs/components/form/modalForm.cjs +1 -1
- package/dist/cjs/components/form/pageForm.cjs +1 -1
- package/dist/cjs/components/form/settingForm.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/level/level.cjs +1 -0
- package/dist/cjs/components/media/media.cjs +1 -1
- package/dist/cjs/components/modal/modal.cjs +1 -1
- package/dist/cjs/components/modal/modalPage.cjs +1 -1
- package/dist/cjs/components/panel/setting.cjs +1 -1
- package/dist/cjs/components/stats/number.cjs +1 -0
- package/dist/cjs/components/stats/realTime.cjs +1 -0
- package/dist/cjs/components/status/blockEmpty.cjs +1 -1
- package/dist/cjs/components/upload/file.cjs +1 -0
- package/dist/cjs/components/upload/image.cjs +1 -0
- package/dist/cjs/components/upload/manage/item.cjs +1 -0
- package/dist/cjs/components/upload/manager.cjs +1 -0
- package/dist/cjs/components/widget/avatar.cjs +1 -0
- package/dist/cjs/components/widget/connect.cjs +1 -1
- package/dist/cjs/components/widget/image.cjs +1 -0
- package/dist/cjs/components/widget/placeholder.cjs +1 -0
- package/dist/cjs/config/uno.cjs +1 -1
- package/dist/cjs/config/validate.cjs +1 -1
- package/dist/cjs/hooks/action.cjs +1 -1
- package/dist/cjs/hooks/dialog.cjs +1 -1
- package/dist/cjs/hooks/download.cjs +1 -0
- package/dist/cjs/hooks/drawer.cjs +1 -1
- package/dist/cjs/hooks/echart.cjs +1 -1
- package/dist/cjs/hooks/image.cjs +1 -0
- package/dist/cjs/hooks/level.cjs +1 -0
- package/dist/cjs/hooks/modal.cjs +1 -1
- package/dist/cjs/hooks/table/copy.cjs +1 -1
- package/dist/cjs/hooks/table/image.cjs +1 -1
- package/dist/cjs/hooks/table/input.cjs +1 -1
- package/dist/cjs/hooks/table/media.cjs +1 -1
- package/dist/cjs/hooks/table.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/langs/en-US.json.cjs +1 -1
- package/dist/cjs/langs/zh-CN.json.cjs +1 -1
- package/dist/cjs/main.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/login.cjs +1 -1
- package/dist/cjs/pages/menu/avatar.cjs +1 -1
- package/dist/cjs/pages/menu/button.cjs +1 -1
- package/dist/cjs/pages/menu/cmd.cjs +1 -1
- package/dist/cjs/pages/menu/main.cjs +1 -1
- package/dist/cjs/pages/menu/mobile.cjs +1 -1
- package/dist/cjs/pages/page.cjs +1 -1
- package/dist/cjs/pages/page404.cjs +1 -1
- package/dist/cjs/pages/pageStatus.cjs +1 -1
- package/dist/cjs/static/images/icon/audio.svg.cjs +1 -0
- package/dist/cjs/static/images/icon/excel.svg.cjs +1 -0
- package/dist/cjs/static/images/icon/file.svg.cjs +1 -0
- package/dist/cjs/static/images/icon/folder.svg.cjs +1 -0
- package/dist/cjs/static/images/icon/pdf.svg.cjs +1 -0
- package/dist/cjs/static/images/icon/ppt.svg.cjs +1 -0
- package/dist/cjs/static/images/icon/video.svg.cjs +1 -0
- package/dist/cjs/static/images/icon/word.svg.cjs +1 -0
- package/dist/cjs/stores/ui.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +108 -12
- package/dist/esm/component.js +64 -47
- package/dist/esm/components/card/card.js +22 -21
- package/dist/esm/components/card/store.js +64 -0
- package/dist/esm/components/chart/echart.js +29 -16
- package/dist/esm/components/crop/imageCrop.js +105 -0
- package/dist/esm/components/crop/imageCropModal.js +118 -0
- package/dist/esm/components/dashboard/helloBig.js +3 -2
- package/dist/esm/components/data/dynamicData.js +145 -0
- package/dist/esm/components/data/dynamicSelect.js +109 -0
- package/dist/esm/components/data/selectModal.js +135 -0
- package/dist/esm/components/dialog/dialog.js +50 -38
- package/dist/esm/components/drawer/drawer.js +14 -12
- package/dist/esm/components/editor/aiEditor.js +129 -0
- package/dist/esm/components/form/modalForm.js +66 -40
- package/dist/esm/components/form/pageForm.js +31 -21
- package/dist/esm/components/form/settingForm.js +31 -21
- package/dist/esm/components/layout/list.js +67 -57
- package/dist/esm/components/layout/table.js +59 -49
- package/dist/esm/components/level/level.js +103 -0
- package/dist/esm/components/media/media.js +18 -16
- package/dist/esm/components/modal/modal.js +27 -21
- package/dist/esm/components/modal/modalPage.js +7 -7
- package/dist/esm/components/panel/setting.js +9 -6
- package/dist/esm/components/stats/number.js +49 -0
- package/dist/esm/components/stats/realTime.js +99 -0
- package/dist/esm/components/status/blockEmpty.js +136 -57
- package/dist/esm/components/upload/file.js +258 -0
- package/dist/esm/components/upload/image.js +189 -0
- package/dist/esm/components/upload/manage/item.js +178 -0
- package/dist/esm/components/upload/manager.js +378 -0
- package/dist/esm/components/widget/avatar.js +59 -0
- package/dist/esm/components/widget/connect.js +6 -4
- package/dist/esm/components/widget/image.js +67 -0
- package/dist/esm/components/widget/placeholder.js +83 -0
- package/dist/esm/config/uno.js +6 -6
- package/dist/esm/config/validate.js +2 -2
- package/dist/esm/hooks/action.js +34 -34
- package/dist/esm/hooks/dialog.js +13 -3
- package/dist/esm/hooks/download.js +100 -0
- package/dist/esm/hooks/drawer.js +13 -3
- package/dist/esm/hooks/echart.js +292 -246
- package/dist/esm/hooks/image.js +23 -0
- package/dist/esm/hooks/level.js +75 -0
- package/dist/esm/hooks/modal.js +14 -4
- package/dist/esm/hooks/table/copy.js +14 -11
- package/dist/esm/hooks/table/image.js +55 -17
- package/dist/esm/hooks/table/input.js +35 -33
- package/dist/esm/hooks/table/media.js +17 -7
- package/dist/esm/hooks/table.js +41 -25
- package/dist/esm/index.js +198 -160
- package/dist/esm/langs/en-US.json.js +6 -4
- package/dist/esm/langs/zh-CN.json.js +5 -3
- package/dist/esm/main.js +8 -6
- package/dist/esm/pages/authLayout.js +24 -18
- package/dist/esm/pages/layout/global.js +29 -23
- package/dist/esm/pages/layout/page.js +26 -16
- package/dist/esm/pages/login.js +33 -23
- package/dist/esm/pages/menu/avatar.js +122 -93
- package/dist/esm/pages/menu/button.js +23 -13
- package/dist/esm/pages/menu/cmd.js +41 -31
- package/dist/esm/pages/menu/main.js +38 -28
- package/dist/esm/pages/menu/mobile.js +20 -10
- package/dist/esm/pages/page.js +21 -14
- package/dist/esm/pages/page404.js +15 -5
- package/dist/esm/pages/pageStatus.js +22 -12
- package/dist/esm/static/images/icon/audio.svg.js +4 -0
- package/dist/esm/static/images/icon/excel.svg.js +4 -0
- package/dist/esm/static/images/icon/file.svg.js +4 -0
- package/dist/esm/static/images/icon/folder.svg.js +4 -0
- package/dist/esm/static/images/icon/pdf.svg.js +4 -0
- package/dist/esm/static/images/icon/ppt.svg.js +4 -0
- package/dist/esm/static/images/icon/video.svg.js +4 -0
- package/dist/esm/static/images/icon/word.svg.js +4 -0
- package/dist/esm/stores/ui.js +10 -10
- package/dist/esm/theme/uno.css.js +108 -12
- package/dist/types/components/card/index.d.ts +1 -0
- package/dist/types/components/card/store.d.ts +16 -0
- package/dist/types/components/chart/echart.d.ts +2 -2
- package/dist/types/components/crop/imageCrop.d.ts +40 -0
- package/dist/types/components/crop/imageCropModal.d.ts +7 -0
- package/dist/types/components/crop/index.d.ts +2 -0
- package/dist/types/components/data/dynamicData.d.ts +56 -0
- package/dist/types/components/data/dynamicSelect.d.ts +49 -0
- package/dist/types/components/data/index.d.ts +3 -0
- package/dist/types/components/data/selectModal.d.ts +61 -0
- package/dist/types/components/dialog/dialog.d.ts +2 -0
- package/dist/types/components/editor/aiEditor.d.ts +26 -0
- package/dist/types/components/editor/index.d.ts +1 -0
- package/dist/types/components/index.d.ts +7 -0
- package/dist/types/components/level/index.d.ts +1 -0
- package/dist/types/components/level/level.d.ts +60 -0
- package/dist/types/components/modal/index.d.ts +2 -2
- package/dist/types/components/modal/modal.d.ts +1 -4
- package/dist/types/components/stats/index.d.ts +2 -0
- package/dist/types/components/stats/number.d.ts +50 -0
- package/dist/types/components/stats/realTime.d.ts +56 -0
- package/dist/types/components/upload/file.d.ts +9 -0
- package/dist/types/components/upload/image.d.ts +99 -0
- package/dist/types/components/upload/index.d.ts +4 -0
- package/dist/types/components/upload/manage/item.d.ts +22 -0
- package/dist/types/components/upload/manager.d.ts +37 -0
- package/dist/types/components/widget/avatar.d.ts +159 -0
- package/dist/types/components/widget/image.d.ts +257 -0
- package/dist/types/components/widget/index.d.ts +2 -0
- package/dist/types/components/widget/placeholder.d.ts +22 -0
- package/dist/types/hooks/dialog.d.ts +1 -0
- package/dist/types/hooks/download.d.ts +31 -0
- package/dist/types/hooks/echart.d.ts +14 -0
- package/dist/types/hooks/image.d.ts +3 -0
- package/dist/types/hooks/index.d.ts +3 -0
- package/dist/types/hooks/level.d.ts +19 -0
- package/dist/types/main.d.ts +12 -0
- package/dist/types/static/images/icon/index.d.ts +8 -0
- package/package.json +9 -3
- package/dist/cjs/_virtual/_commonjsHelpers.cjs +0 -1
- package/dist/cjs/_virtual/browser.cjs +0 -1
- package/dist/cjs/_virtual/browser2.cjs +0 -1
- package/dist/cjs/_virtual/sourcemap-codec.umd.cjs +0 -1
- package/dist/cjs/_virtual/sourcemap-codec.umd2.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify-json_tabler@1.2.19/node_modules/@iconify-json/tabler/icons.json.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/custom.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/loader.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/modern.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/utils.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/trim.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/url.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_core@66.2.3/node_modules/@unocss/core/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_extractor-arbitrary-variants@66.2.3/node_modules/@unocss/extractor-arbitrary-variants/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/browser.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/core.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/shared/preset-icons.DE2iazBM.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/colors.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/index.cjs +0 -391
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/postprocess.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BgkAsChl.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BwwuP5Yw.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CYAfjDEV.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CgvxUQFi.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.dDC8WtZ5.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/theme.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_rule-utils@66.2.3/node_modules/@unocss/rule-utils/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate/i18n/dist/locale/en.json.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate/i18n/dist/locale/zh_CN.json.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.cjs +0 -10
- package/dist/cjs/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/shared/ofetch.03887fc3.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.cjs +0 -1
- package/dist/cjs/static/images/placeholder.png.cjs +0 -1
- package/dist/esm/_virtual/_commonjsHelpers.js +0 -6
- package/dist/esm/_virtual/browser.js +0 -7
- package/dist/esm/_virtual/browser2.js +0 -4
- package/dist/esm/_virtual/sourcemap-codec.umd.js +0 -5
- package/dist/esm/_virtual/sourcemap-codec.umd2.js +0 -4
- package/dist/esm/node_modules/.pnpm/@iconify-json_tabler@1.2.19/node_modules/@iconify-json/tabler/icons.json.js +0 -17
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.js +0 -14
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.js +0 -25
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.js +0 -11
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.js +0 -9
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.js +0 -23
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.js +0 -17
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/custom.js +0 -40
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/loader.js +0 -46
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/modern.js +0 -55
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/utils.js +0 -38
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.js +0 -69
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.js +0 -29
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +0 -14
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.js +0 -27
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/trim.js +0 -6
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/url.js +0 -6
- package/dist/esm/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +0 -255
- package/dist/esm/node_modules/.pnpm/@unocss_core@66.2.3/node_modules/@unocss/core/dist/index.js +0 -88
- package/dist/esm/node_modules/.pnpm/@unocss_extractor-arbitrary-variants@66.2.3/node_modules/@unocss/extractor-arbitrary-variants/dist/index.js +0 -51
- package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/browser.js +0 -17
- package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/core.js +0 -151
- package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/shared/preset-icons.DE2iazBM.js +0 -8
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/colors.js +0 -322
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/index.js +0 -547
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/postprocess.js +0 -32
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BgkAsChl.js +0 -2307
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BwwuP5Yw.js +0 -627
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CYAfjDEV.js +0 -7
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CgvxUQFi.js +0 -588
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.dDC8WtZ5.js +0 -51
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/theme.js +0 -553
- package/dist/esm/node_modules/.pnpm/@unocss_rule-utils@66.2.3/node_modules/@unocss/rule-utils/dist/index.js +0 -632
- package/dist/esm/node_modules/.pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate/i18n/dist/locale/en.json.js +0 -9
- package/dist/esm/node_modules/.pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate/i18n/dist/locale/zh_CN.json.js +0 -9
- package/dist/esm/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js +0 -146
- package/dist/esm/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js +0 -97
- package/dist/esm/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.js +0 -56
- package/dist/esm/node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js +0 -608
- package/dist/esm/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js +0 -85
- package/dist/esm/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/index.js +0 -23
- package/dist/esm/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/shared/ofetch.03887fc3.js +0 -219
- package/dist/esm/node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.js +0 -153
- package/dist/esm/static/images/placeholder.png.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const S = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as b, computed as a, createVNode as t } from "vue";
|
|
2
|
+
const S = /* @__PURE__ */ b({
|
|
3
3
|
name: "DuxCard",
|
|
4
4
|
props: {
|
|
5
5
|
size: {
|
|
@@ -64,20 +64,21 @@ const S = /* @__PURE__ */ v({
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
setup(e, {
|
|
67
|
-
slots:
|
|
67
|
+
slots: d
|
|
68
68
|
}) {
|
|
69
|
-
const
|
|
69
|
+
const r = (i) => {
|
|
70
70
|
switch (i) {
|
|
71
71
|
case "small":
|
|
72
|
-
return "
|
|
72
|
+
return "p-2";
|
|
73
73
|
case "large":
|
|
74
|
-
return "
|
|
74
|
+
return "p-6";
|
|
75
75
|
case "medium":
|
|
76
|
-
return "
|
|
76
|
+
return "p-4";
|
|
77
|
+
case "none":
|
|
77
78
|
default:
|
|
78
79
|
return "";
|
|
79
80
|
}
|
|
80
|
-
}, c =
|
|
81
|
+
}, c = a(() => r(e.size)), n = a(() => r(e.headerSize)), o = a(() => r(e.footerSize)), m = a(() => r(e.contentSize)), v = a(() => {
|
|
81
82
|
switch (e.type) {
|
|
82
83
|
case "elevated":
|
|
83
84
|
return "bg-elevated";
|
|
@@ -89,23 +90,23 @@ const S = /* @__PURE__ */ v({
|
|
|
89
90
|
});
|
|
90
91
|
return () => {
|
|
91
92
|
var i, u, l, f;
|
|
92
|
-
return
|
|
93
|
-
class: ["rounded flex flex-col dark:border dark:border-muted", e.divide && "divide-y divide-muted", e.shadow && "shadow-sm", e.bordered && "border border-muted",
|
|
94
|
-
}, [
|
|
95
|
-
class: [n.value, e.headerClass, e.headerBordered
|
|
96
|
-
}, [(i =
|
|
97
|
-
class: ["flex justify-between items-center", n.value, e.headerBordered
|
|
98
|
-
}, [
|
|
93
|
+
return t("div", {
|
|
94
|
+
class: ["rounded flex flex-col dark:border dark:border-muted", e.divide && "divide-y divide-muted", e.shadow && "shadow-sm", e.bordered && "border border-muted", v.value, c.value]
|
|
95
|
+
}, [d.header && t("div", {
|
|
96
|
+
class: [n.value, e.headerClass, e.headerBordered || e.divide ? "border-b border-muted" : "pb-0"]
|
|
97
|
+
}, [(i = d.header) == null ? void 0 : i.call(d)]), e.title && t("div", {
|
|
98
|
+
class: ["flex justify-between items-center", n.value, e.headerBordered || e.divide ? "border-b border-muted" : "pb-0", e.headerClass]
|
|
99
|
+
}, [t("div", {
|
|
99
100
|
class: "flex flex-col"
|
|
100
|
-
}, [
|
|
101
|
+
}, [t("div", {
|
|
101
102
|
class: "text-base"
|
|
102
|
-
}, [e.title]), e.description &&
|
|
103
|
+
}, [e.title]), e.description && t("div", {
|
|
103
104
|
class: "text-sm text-muted"
|
|
104
|
-
}, [e.description])]), (u =
|
|
105
|
-
class: [(e.title ||
|
|
106
|
-
}, [(l =
|
|
105
|
+
}, [e.description])]), (u = d.headerExtra) == null ? void 0 : u.call(d)]), t("div", {
|
|
106
|
+
class: [(e.title || d.header || d.footer) && m.value, e.contentClass]
|
|
107
|
+
}, [(l = d.default) == null ? void 0 : l.call(d)]), d.footer && t("div", {
|
|
107
108
|
class: [o.value, e.footerClass, e.footerBordered && "border-t border-muted"]
|
|
108
|
-
}, [(f =
|
|
109
|
+
}, [(f = d.footer) == null ? void 0 : f.call(d)])]);
|
|
109
110
|
};
|
|
110
111
|
}
|
|
111
112
|
});
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { defineComponent as d, createVNode as t } from "vue";
|
|
2
|
+
import { DuxMedia as l } from "../media/media.js";
|
|
3
|
+
import { DuxCard as u } from "./card.js";
|
|
4
|
+
const c = /* @__PURE__ */ d({
|
|
5
|
+
name: "DuxStatsStore",
|
|
6
|
+
props: {
|
|
7
|
+
title: String,
|
|
8
|
+
avatar: String,
|
|
9
|
+
desc: String
|
|
10
|
+
},
|
|
11
|
+
setup(a, {
|
|
12
|
+
slots: e
|
|
13
|
+
}) {
|
|
14
|
+
return () => t(u, {
|
|
15
|
+
divide: !0,
|
|
16
|
+
footerSize: "small"
|
|
17
|
+
}, {
|
|
18
|
+
header: () => {
|
|
19
|
+
var r;
|
|
20
|
+
return t("div", {
|
|
21
|
+
class: "flex gap-2 items-center"
|
|
22
|
+
}, [t(l, {
|
|
23
|
+
class: "flex-1",
|
|
24
|
+
avatar: !0,
|
|
25
|
+
imageHeight: 46,
|
|
26
|
+
imageWidth: 46,
|
|
27
|
+
image: a.avatar,
|
|
28
|
+
title: a.title,
|
|
29
|
+
desc: a.desc
|
|
30
|
+
}, null), t("div", null, [(r = e.extra) == null ? void 0 : r.call(e)])]);
|
|
31
|
+
},
|
|
32
|
+
default: () => {
|
|
33
|
+
var r, i;
|
|
34
|
+
return t("div", {
|
|
35
|
+
class: "flex flex-col"
|
|
36
|
+
}, [e.header ? t("div", {
|
|
37
|
+
class: "flex flex-col bg-muted rounded p-4 text-muted"
|
|
38
|
+
}, [(r = e.header) == null ? void 0 : r.call(e)]) : null, t("div", {
|
|
39
|
+
class: "grid grid-cols-[repeat(auto-fit,minmax(100px,1fr))] gap-2 pt-2"
|
|
40
|
+
}, [(i = e.default) == null ? void 0 : i.call(e)])]);
|
|
41
|
+
},
|
|
42
|
+
footer: e.footer
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}), f = /* @__PURE__ */ d({
|
|
46
|
+
name: "DuxStatsStoreItem",
|
|
47
|
+
props: {
|
|
48
|
+
label: String,
|
|
49
|
+
value: String
|
|
50
|
+
},
|
|
51
|
+
setup(a) {
|
|
52
|
+
return () => t("div", {
|
|
53
|
+
class: "flex flex-col items-center justify-center"
|
|
54
|
+
}, [t("div", {
|
|
55
|
+
class: "text-lg font-bold"
|
|
56
|
+
}, [a.value]), t("div", {
|
|
57
|
+
class: "text-sm text-muted"
|
|
58
|
+
}, [a.label])]);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
c as DuxStatsStore,
|
|
63
|
+
f as DuxStatsStoreItem
|
|
64
|
+
};
|
|
@@ -1,25 +1,35 @@
|
|
|
1
1
|
import { defineComponent as p, computed as m, createVNode as n, mergeProps as a } from "vue";
|
|
2
|
-
import
|
|
2
|
+
import o from "vue-echarts";
|
|
3
3
|
import "@duxweb/dvha-core";
|
|
4
4
|
import "naive-ui";
|
|
5
5
|
import "vue-router";
|
|
6
6
|
import "@overlastic/vue";
|
|
7
7
|
import "clsx";
|
|
8
|
+
import "@vueuse/core";
|
|
9
|
+
import "vue-cropper";
|
|
8
10
|
import "jinrishici";
|
|
9
11
|
import "lodash-es";
|
|
10
|
-
import "
|
|
12
|
+
import "vue-draggable-plus";
|
|
13
|
+
import "aieditor";
|
|
11
14
|
import "vee-validate";
|
|
12
15
|
import "@vee-validate/i18n";
|
|
13
16
|
import "colorizr";
|
|
14
17
|
import "echarts";
|
|
15
18
|
import "@ant-design/colors";
|
|
19
|
+
import "@unocss/preset-icons/browser";
|
|
16
20
|
import "@unocss/preset-typography";
|
|
21
|
+
import "unocss/preset-wind4";
|
|
22
|
+
import "@vee-validate/i18n/dist/locale/en.json";
|
|
23
|
+
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
17
24
|
import "vue-command-palette";
|
|
18
25
|
import "@duxweb/dvha-naiveui";
|
|
19
26
|
import "../../pages/page404.js";
|
|
27
|
+
import "mime";
|
|
28
|
+
import "dayjs";
|
|
20
29
|
import { useEchartType as u } from "../../hooks/echart.js";
|
|
30
|
+
import "@tanstack/vue-query";
|
|
21
31
|
import "pinia";
|
|
22
|
-
const
|
|
32
|
+
const M = /* @__PURE__ */ p({
|
|
23
33
|
name: "DuxChart",
|
|
24
34
|
props: {
|
|
25
35
|
height: {
|
|
@@ -43,25 +53,28 @@ const k = /* @__PURE__ */ p({
|
|
|
43
53
|
default: ""
|
|
44
54
|
}
|
|
45
55
|
},
|
|
46
|
-
extends:
|
|
56
|
+
extends: o,
|
|
47
57
|
setup(t) {
|
|
48
|
-
const
|
|
58
|
+
const r = m(() => {
|
|
49
59
|
const {
|
|
50
|
-
min:
|
|
51
|
-
height:
|
|
52
|
-
option:
|
|
53
|
-
...
|
|
60
|
+
min: h,
|
|
61
|
+
height: l,
|
|
62
|
+
option: s,
|
|
63
|
+
...e
|
|
54
64
|
} = t;
|
|
55
|
-
return
|
|
65
|
+
return e;
|
|
56
66
|
}), {
|
|
57
|
-
option:
|
|
58
|
-
} = u(t.type,
|
|
59
|
-
|
|
67
|
+
option: i
|
|
68
|
+
} = u(t.type, {
|
|
69
|
+
min: t.min,
|
|
70
|
+
...t.option
|
|
71
|
+
});
|
|
72
|
+
return () => n(o, a({
|
|
60
73
|
style: {
|
|
61
74
|
minHeight: t.height
|
|
62
75
|
}
|
|
63
|
-
},
|
|
64
|
-
option:
|
|
76
|
+
}, r.value, {
|
|
77
|
+
option: i.value,
|
|
65
78
|
autoresize: !0,
|
|
66
79
|
theme: "default",
|
|
67
80
|
initOptions: {
|
|
@@ -71,5 +84,5 @@ const k = /* @__PURE__ */ p({
|
|
|
71
84
|
}
|
|
72
85
|
});
|
|
73
86
|
export {
|
|
74
|
-
|
|
87
|
+
M as DuxChart
|
|
75
88
|
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { defineComponent as d, createVNode as a } from "vue";
|
|
2
|
+
import { useI18n as f, useManage as g, useUpload as v } from "@duxweb/dvha-core";
|
|
3
|
+
import { useVModel as h } from "@vueuse/core";
|
|
4
|
+
import { useMessage as x } from "naive-ui";
|
|
5
|
+
import "vue-router";
|
|
6
|
+
import "@overlastic/vue";
|
|
7
|
+
import "clsx";
|
|
8
|
+
import { DuxAvatar as y } from "../widget/avatar.js";
|
|
9
|
+
import "vue-echarts";
|
|
10
|
+
import "vue-cropper";
|
|
11
|
+
import "jinrishici";
|
|
12
|
+
import "lodash-es";
|
|
13
|
+
import "vue-draggable-plus";
|
|
14
|
+
import "aieditor";
|
|
15
|
+
import "vee-validate";
|
|
16
|
+
import "@vee-validate/i18n";
|
|
17
|
+
import "colorizr";
|
|
18
|
+
import "echarts";
|
|
19
|
+
import "@ant-design/colors";
|
|
20
|
+
import "@unocss/preset-icons/browser";
|
|
21
|
+
import "@unocss/preset-typography";
|
|
22
|
+
import "unocss/preset-wind4";
|
|
23
|
+
import "@vee-validate/i18n/dist/locale/en.json";
|
|
24
|
+
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
25
|
+
import "vue-command-palette";
|
|
26
|
+
import "@duxweb/dvha-naiveui";
|
|
27
|
+
import "../../pages/page404.js";
|
|
28
|
+
import "mime";
|
|
29
|
+
import { useModal as C } from "../../hooks/modal.js";
|
|
30
|
+
import "dayjs";
|
|
31
|
+
import "@tanstack/vue-query";
|
|
32
|
+
import "pinia";
|
|
33
|
+
const $ = /* @__PURE__ */ d({
|
|
34
|
+
name: "DuxImageCrop",
|
|
35
|
+
props: {
|
|
36
|
+
defaultValue: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: ""
|
|
39
|
+
},
|
|
40
|
+
value: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: ""
|
|
43
|
+
},
|
|
44
|
+
path: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: ""
|
|
47
|
+
},
|
|
48
|
+
circle: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: !0
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
setup(t, {
|
|
54
|
+
emit: l
|
|
55
|
+
}) {
|
|
56
|
+
var u;
|
|
57
|
+
const {
|
|
58
|
+
t: p
|
|
59
|
+
} = f(), i = h(t, "value", l, {
|
|
60
|
+
passive: !0,
|
|
61
|
+
defaultValue: t.defaultValue || ""
|
|
62
|
+
}), {
|
|
63
|
+
config: n
|
|
64
|
+
} = g(), s = C(), m = x(), c = v({
|
|
65
|
+
path: t.path || ((u = n.apiPath) == null ? void 0 : u.upload) || "upload",
|
|
66
|
+
autoUpload: !0,
|
|
67
|
+
onSuccess: (e) => {
|
|
68
|
+
var r;
|
|
69
|
+
i.value = (r = e.data) == null ? void 0 : r.url, m.success(p("components.upload.success"));
|
|
70
|
+
},
|
|
71
|
+
onError: (e) => {
|
|
72
|
+
m.error(e.message || p("components.upload.failed"));
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
return () => a("div", {
|
|
76
|
+
class: ["relative size-80px overflow-hidden group", t.circle && "rounded-full"],
|
|
77
|
+
onClick: () => {
|
|
78
|
+
var e, r;
|
|
79
|
+
(r = (e = s.show({
|
|
80
|
+
component: () => import("./imageCropModal.js").then((o) => o.DuxImageCropModal),
|
|
81
|
+
componentProps: {
|
|
82
|
+
value: i.value,
|
|
83
|
+
onConfirm: (o) => {
|
|
84
|
+
i.value = o;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
})) == null ? void 0 : e.then) == null || r.call(e, (o) => {
|
|
88
|
+
o && (o.name = "image.png", o.mime = "image/png", c.addFiles([o], "blob"));
|
|
89
|
+
}).catch(() => {
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}, [a(y, {
|
|
93
|
+
src: i.value,
|
|
94
|
+
circle: t.circle,
|
|
95
|
+
size: 80
|
|
96
|
+
}, null), a("div", {
|
|
97
|
+
class: "absolute size-full bg-gray-900/30 items-center justify-center inset-0 cursor-pointer hidden z-1 group-hover:flex"
|
|
98
|
+
}, [a("div", {
|
|
99
|
+
class: "i-tabler:pencil size-4 text-white/90"
|
|
100
|
+
}, null)])]);
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
export {
|
|
104
|
+
$ as DuxImageCrop
|
|
105
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { defineComponent as v, ref as s, watch as y, createVNode as e, isVNode as g } from "vue";
|
|
2
|
+
import { useI18n as b } from "@duxweb/dvha-core";
|
|
3
|
+
import { useFileDialog as C } from "@vueuse/core";
|
|
4
|
+
import { NButton as r } from "naive-ui";
|
|
5
|
+
import { VueCropper as x } from "vue-cropper";
|
|
6
|
+
import "@overlastic/vue";
|
|
7
|
+
import k from "../modal/modalPage.js";
|
|
8
|
+
function f(t) {
|
|
9
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !g(t);
|
|
10
|
+
}
|
|
11
|
+
const M = /* @__PURE__ */ v({
|
|
12
|
+
props: {
|
|
13
|
+
value: String,
|
|
14
|
+
onConfirm: Function
|
|
15
|
+
},
|
|
16
|
+
setup(t) {
|
|
17
|
+
const {
|
|
18
|
+
t: c
|
|
19
|
+
} = b(), l = s(), i = s(t.value || ""), {
|
|
20
|
+
open: m,
|
|
21
|
+
files: p
|
|
22
|
+
} = C({
|
|
23
|
+
accept: "image/*"
|
|
24
|
+
});
|
|
25
|
+
y(p, (o) => {
|
|
26
|
+
if (o && o.length > 0) {
|
|
27
|
+
const n = o[0], a = new Blob([n], {
|
|
28
|
+
type: n.type
|
|
29
|
+
});
|
|
30
|
+
i.value = URL.createObjectURL(a);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
const d = () => {
|
|
34
|
+
m();
|
|
35
|
+
};
|
|
36
|
+
return () => e(k, {
|
|
37
|
+
title: c("components.crop.title")
|
|
38
|
+
}, {
|
|
39
|
+
default: () => e("div", {
|
|
40
|
+
class: "h-100"
|
|
41
|
+
}, [e(x, {
|
|
42
|
+
ref: l,
|
|
43
|
+
img: i.value,
|
|
44
|
+
autoCrop: !0,
|
|
45
|
+
centerBox: !0,
|
|
46
|
+
canMove: !1,
|
|
47
|
+
fixed: !0,
|
|
48
|
+
outputType: "png",
|
|
49
|
+
mode: "contain"
|
|
50
|
+
}, null)]),
|
|
51
|
+
footer: () => {
|
|
52
|
+
let o, n;
|
|
53
|
+
return e("div", {
|
|
54
|
+
class: "flex-1 flex justify-between items-center"
|
|
55
|
+
}, [e("div", {
|
|
56
|
+
class: "flex items-center gap-2"
|
|
57
|
+
}, [e(r, {
|
|
58
|
+
type: "primary",
|
|
59
|
+
secondary: !0,
|
|
60
|
+
onClick: () => {
|
|
61
|
+
d();
|
|
62
|
+
}
|
|
63
|
+
}, f(o = c("components.crop.select")) ? o : {
|
|
64
|
+
default: () => [o]
|
|
65
|
+
}), e(r, {
|
|
66
|
+
secondary: !0,
|
|
67
|
+
onClick: () => {
|
|
68
|
+
l.value.changeScale(1);
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
default: () => [e("div", {
|
|
72
|
+
class: "i-tabler:zoom-in"
|
|
73
|
+
}, null)]
|
|
74
|
+
}), e(r, {
|
|
75
|
+
secondary: !0,
|
|
76
|
+
onClick: () => {
|
|
77
|
+
l.value.changeScale(-1);
|
|
78
|
+
}
|
|
79
|
+
}, {
|
|
80
|
+
default: () => [e("div", {
|
|
81
|
+
class: "i-tabler:zoom-out"
|
|
82
|
+
}, null)]
|
|
83
|
+
}), e(r, {
|
|
84
|
+
secondary: !0,
|
|
85
|
+
onClick: () => {
|
|
86
|
+
l.value.rotateLeft();
|
|
87
|
+
}
|
|
88
|
+
}, {
|
|
89
|
+
default: () => [e("div", {
|
|
90
|
+
class: "i-tabler:rotate"
|
|
91
|
+
}, null)]
|
|
92
|
+
}), e(r, {
|
|
93
|
+
secondary: !0,
|
|
94
|
+
onClick: () => {
|
|
95
|
+
l.value.rotateRight();
|
|
96
|
+
}
|
|
97
|
+
}, {
|
|
98
|
+
default: () => [e("div", {
|
|
99
|
+
class: "i-tabler:rotate-clockwise"
|
|
100
|
+
}, null)]
|
|
101
|
+
})]), e(r, {
|
|
102
|
+
type: "primary",
|
|
103
|
+
onClick: () => {
|
|
104
|
+
l.value.getCropBlob((a) => {
|
|
105
|
+
var u;
|
|
106
|
+
(u = t.onConfirm) == null || u.call(t, a);
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}, f(n = c("components.crop.confirm")) ? n : {
|
|
110
|
+
default: () => [n]
|
|
111
|
+
})]);
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
export {
|
|
117
|
+
M as DuxImageCropModal
|
|
118
|
+
};
|
|
@@ -2,7 +2,8 @@ import { defineComponent as n, ref as e, onMounted as s, createVNode as a, creat
|
|
|
2
2
|
import f from "clsx";
|
|
3
3
|
import { load as u } from "jinrishici";
|
|
4
4
|
import { DuxCard as g } from "../card/card.js";
|
|
5
|
-
|
|
5
|
+
import "naive-ui";
|
|
6
|
+
const m = /* @__PURE__ */ n({
|
|
6
7
|
name: "DuxDashboardHelloBig",
|
|
7
8
|
props: {
|
|
8
9
|
title: String,
|
|
@@ -340,5 +341,5 @@ const p = /* @__PURE__ */ n({
|
|
|
340
341
|
}
|
|
341
342
|
});
|
|
342
343
|
export {
|
|
343
|
-
|
|
344
|
+
m as DuxDashboardHelloBig
|
|
344
345
|
};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { defineComponent as h, computed as A, createVNode as e, mergeProps as b, h as k } from "vue";
|
|
2
|
+
import { useJsonSchema as g } from "@duxweb/dvha-core";
|
|
3
|
+
import { useVModel as w } from "@vueuse/core";
|
|
4
|
+
import { NTable as C, NButton as d } from "naive-ui";
|
|
5
|
+
import { VueDraggable as D } from "vue-draggable-plus";
|
|
6
|
+
import { DuxBlockEmpty as V } from "../status/blockEmpty.js";
|
|
7
|
+
const E = /* @__PURE__ */ h({
|
|
8
|
+
name: "DuxDynamicData",
|
|
9
|
+
props: {
|
|
10
|
+
createAction: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: !0
|
|
13
|
+
},
|
|
14
|
+
deleteAction: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !0
|
|
17
|
+
},
|
|
18
|
+
columns: Array,
|
|
19
|
+
createCallback: Function,
|
|
20
|
+
onCreate: Function,
|
|
21
|
+
value: {
|
|
22
|
+
type: Array,
|
|
23
|
+
default: []
|
|
24
|
+
},
|
|
25
|
+
defaultValue: {
|
|
26
|
+
type: Array,
|
|
27
|
+
default: []
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
setup(t, {
|
|
31
|
+
emit: s
|
|
32
|
+
}) {
|
|
33
|
+
const l = w(t, "value", s, {
|
|
34
|
+
passive: !0,
|
|
35
|
+
defaultValue: t.defaultValue || [],
|
|
36
|
+
deep: !0
|
|
37
|
+
}), {
|
|
38
|
+
renderAsync: m
|
|
39
|
+
} = g(), y = (n) => {
|
|
40
|
+
var u;
|
|
41
|
+
const r = (u = l.value) == null ? void 0 : u[0][n], a = [...l.value || []].map((i) => ({
|
|
42
|
+
...i,
|
|
43
|
+
[n]: r
|
|
44
|
+
}));
|
|
45
|
+
l.value = [...a];
|
|
46
|
+
}, v = A(() => {
|
|
47
|
+
var r;
|
|
48
|
+
let n = ((r = t.columns) == null ? void 0 : r.length) || 0;
|
|
49
|
+
return (t.createAction || t.deleteAction) && (n += 1), n;
|
|
50
|
+
});
|
|
51
|
+
return () => e(D, b({
|
|
52
|
+
modelValue: l.value
|
|
53
|
+
}, {
|
|
54
|
+
"onUpdate:modelValue": (n) => {
|
|
55
|
+
l.value = n;
|
|
56
|
+
}
|
|
57
|
+
}, {
|
|
58
|
+
handle: ".sort-handle",
|
|
59
|
+
target: ".sort-target",
|
|
60
|
+
animation: 150
|
|
61
|
+
}), {
|
|
62
|
+
default: () => [e("div", {
|
|
63
|
+
class: "overflow-auto w-full"
|
|
64
|
+
}, [e(C, {
|
|
65
|
+
class: "table-fixed w-full"
|
|
66
|
+
}, {
|
|
67
|
+
default: () => {
|
|
68
|
+
var n, r;
|
|
69
|
+
return [e("thead", null, [e("tr", null, [e("th", {
|
|
70
|
+
style: {
|
|
71
|
+
width: "40px"
|
|
72
|
+
}
|
|
73
|
+
}, null), (n = t.columns) == null ? void 0 : n.map((a, u) => e("th", {
|
|
74
|
+
key: u,
|
|
75
|
+
style: {
|
|
76
|
+
width: `${a.width}px`
|
|
77
|
+
}
|
|
78
|
+
}, [e("div", {
|
|
79
|
+
class: "flex items-center justify-between"
|
|
80
|
+
}, [e("div", null, [a.title]), a.copy && e("div", null, [e(d, {
|
|
81
|
+
onClick: () => {
|
|
82
|
+
y(a.key);
|
|
83
|
+
},
|
|
84
|
+
renderIcon: () => e("div", {
|
|
85
|
+
class: "i-tabler:pencil-down t-icon"
|
|
86
|
+
}, null),
|
|
87
|
+
text: !0,
|
|
88
|
+
type: "primary"
|
|
89
|
+
}, null)])])])), (t.createAction || t.deleteAction) && e("th", {
|
|
90
|
+
class: "w-15"
|
|
91
|
+
}, [t.createAction && e(d, {
|
|
92
|
+
tertiary: !0,
|
|
93
|
+
type: "primary",
|
|
94
|
+
circle: !0,
|
|
95
|
+
renderIcon: () => e("div", {
|
|
96
|
+
class: "i-tabler:plus h-4 w-4"
|
|
97
|
+
}, null),
|
|
98
|
+
onClick: () => {
|
|
99
|
+
var a, u;
|
|
100
|
+
t != null && t.onCreate ? t.onCreate() : (l.value || (l.value = []), (u = l.value) == null || u.push(((a = t == null ? void 0 : t.createCallback) == null ? void 0 : a.call(t, l.value)) || {}));
|
|
101
|
+
}
|
|
102
|
+
}, null)])])]), e("tbody", {
|
|
103
|
+
class: "sort-target"
|
|
104
|
+
}, [l.value && ((r = l.value) == null ? void 0 : r.length) > 0 ? l.value.map((a, u) => {
|
|
105
|
+
var i;
|
|
106
|
+
return e("tr", {
|
|
107
|
+
key: u
|
|
108
|
+
}, [e("td", null, [e("div", {
|
|
109
|
+
class: "sort-handle i-tabler:grid-dots size-4 cursor-move"
|
|
110
|
+
}, null)]), (i = t.columns) == null ? void 0 : i.map((c, f) => {
|
|
111
|
+
var o;
|
|
112
|
+
return e("td", {
|
|
113
|
+
key: f
|
|
114
|
+
}, [c.schema ? k(m({
|
|
115
|
+
data: Array.isArray(c.schema) ? c.schema : [c.schema],
|
|
116
|
+
context: {
|
|
117
|
+
rowIndex: u,
|
|
118
|
+
model: l.value,
|
|
119
|
+
row: a
|
|
120
|
+
}
|
|
121
|
+
})) : ((o = c.render) == null ? void 0 : o.call(c, a, u)) || a[c.key]]);
|
|
122
|
+
}), (t.createAction || t.deleteAction) && e("td", {
|
|
123
|
+
class: "w-15"
|
|
124
|
+
}, [t.deleteAction && e(d, {
|
|
125
|
+
tertiary: !0,
|
|
126
|
+
type: "error",
|
|
127
|
+
circle: !0,
|
|
128
|
+
renderIcon: () => e("div", {
|
|
129
|
+
class: "i-tabler:trash h-4 w-4"
|
|
130
|
+
}, null),
|
|
131
|
+
onClick: () => {
|
|
132
|
+
l.value.splice(u, 1);
|
|
133
|
+
}
|
|
134
|
+
}, null)])]);
|
|
135
|
+
}) : e("tr", null, [e("td", {
|
|
136
|
+
colspan: v.value
|
|
137
|
+
}, [e(V, null, null)])])])];
|
|
138
|
+
}
|
|
139
|
+
})])]
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
export {
|
|
144
|
+
E as DuxDynamicData
|
|
145
|
+
};
|