@duxweb/dvha-pro 0.0.5 → 0.0.7
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/LICENSE +21 -0
- package/dist/cjs/_virtual/_commonjsHelpers.cjs +1 -0
- package/dist/cjs/_virtual/browser.cjs +1 -0
- package/dist/cjs/_virtual/browser2.cjs +1 -0
- package/dist/cjs/_virtual/sourcemap-codec.umd.cjs +1 -0
- package/dist/cjs/_virtual/sourcemap-codec.umd2.cjs +1 -0
- package/dist/cjs/component.cjs +1 -1
- package/dist/cjs/components/card/card.cjs +1 -1
- package/dist/cjs/components/chart/echart.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/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/list/card.cjs +1 -1
- package/dist/cjs/components/list/list.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/modal/modalTab.cjs +1 -1
- package/dist/cjs/components/select/cardSelect.cjs +1 -0
- package/dist/cjs/components/table/tablePage.cjs +1 -1
- package/dist/cjs/config/echart.cjs +1 -0
- package/dist/cjs/config/uno.cjs +1 -1
- package/dist/cjs/config/validate.cjs +1 -1
- package/dist/cjs/dvha-pro.css +1 -1
- package/dist/cjs/hooks/action.cjs +1 -1
- package/dist/cjs/hooks/dialog.cjs +1 -1
- package/dist/cjs/hooks/drawer.cjs +1 -1
- package/dist/cjs/hooks/echart.cjs +1 -0
- package/dist/cjs/hooks/modal.cjs +1 -1
- package/dist/cjs/hooks/table/media.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/main.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/custom.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/loader.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/modern.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/utils.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/trim.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/url.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_core@66.2.3/node_modules/@unocss/core/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_extractor-arbitrary-variants@66.2.3/node_modules/@unocss/extractor-arbitrary-variants/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/browser.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/core.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/shared/preset-icons.DE2iazBM.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/colors.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/index.cjs +391 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/postprocess.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BgkAsChl.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BwwuP5Yw.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CYAfjDEV.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CgvxUQFi.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.dDC8WtZ5.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/theme.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/@unocss_rule-utils@66.2.3/node_modules/@unocss/rule-utils/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.cjs +10 -0
- package/dist/cjs/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/shared/ofetch.03887fc3.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.cjs +1 -0
- 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/theme/naiveTheme.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +28 -6
- package/dist/esm/_virtual/_commonjsHelpers.js +6 -0
- package/dist/esm/_virtual/browser.js +7 -0
- package/dist/esm/_virtual/browser2.js +4 -0
- package/dist/esm/_virtual/sourcemap-codec.umd.js +5 -0
- package/dist/esm/_virtual/sourcemap-codec.umd2.js +4 -0
- package/dist/esm/component.js +44 -42
- package/dist/esm/components/card/card.js +1 -1
- package/dist/esm/components/chart/echart.js +75 -0
- package/dist/esm/components/dialog/dialog.js +87 -93
- package/dist/esm/components/drawer/drawer.js +34 -32
- package/dist/esm/components/form/modalForm.js +1 -1
- package/dist/esm/components/form/pageForm.js +25 -20
- package/dist/esm/components/form/settingForm.js +27 -22
- package/dist/esm/components/layout/list.js +204 -142
- package/dist/esm/components/layout/table.js +211 -145
- package/dist/esm/components/list/card.js +42 -32
- package/dist/esm/components/list/list.js +27 -16
- package/dist/esm/components/modal/modal.js +46 -86
- package/dist/esm/components/modal/modalPage.js +23 -18
- package/dist/esm/components/modal/modalTab.js +11 -11
- package/dist/esm/components/select/cardSelect.js +103 -0
- package/dist/esm/components/table/tablePage.js +21 -18
- package/dist/esm/config/echart.js +456 -0
- package/dist/esm/config/uno.js +16 -13
- package/dist/esm/config/validate.js +2 -2
- package/dist/esm/dvha-pro.css +1 -1
- package/dist/esm/hooks/action.js +46 -45
- package/dist/esm/hooks/dialog.js +24 -7
- package/dist/esm/hooks/drawer.js +14 -9
- package/dist/esm/hooks/echart.js +469 -0
- package/dist/esm/hooks/modal.js +25 -9
- package/dist/esm/hooks/table/media.js +19 -14
- package/dist/esm/index.js +158 -135
- package/dist/esm/main.js +11 -8
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.js +14 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.js +25 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.js +11 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.js +9 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.js +23 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.js +17 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/custom.js +40 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/loader.js +46 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/modern.js +55 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/utils.js +38 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.js +69 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.js +29 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +14 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.js +27 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/trim.js +6 -0
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/url.js +6 -0
- package/dist/esm/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +255 -0
- package/dist/esm/node_modules/.pnpm/@unocss_core@66.2.3/node_modules/@unocss/core/dist/index.js +88 -0
- package/dist/esm/node_modules/.pnpm/@unocss_extractor-arbitrary-variants@66.2.3/node_modules/@unocss/extractor-arbitrary-variants/dist/index.js +51 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/browser.js +17 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/core.js +151 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/shared/preset-icons.DE2iazBM.js +8 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/colors.js +322 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/index.js +547 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/postprocess.js +32 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BgkAsChl.js +2307 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BwwuP5Yw.js +627 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CYAfjDEV.js +7 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CgvxUQFi.js +588 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.dDC8WtZ5.js +51 -0
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/theme.js +553 -0
- package/dist/esm/node_modules/.pnpm/@unocss_rule-utils@66.2.3/node_modules/@unocss/rule-utils/dist/index.js +632 -0
- package/dist/esm/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js +146 -0
- package/dist/esm/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js +97 -0
- package/dist/esm/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.js +56 -0
- package/dist/esm/node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js +608 -0
- package/dist/esm/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js +85 -0
- package/dist/esm/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/index.js +23 -0
- package/dist/esm/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/shared/ofetch.03887fc3.js +219 -0
- package/dist/esm/node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.js +153 -0
- package/dist/esm/pages/authLayout.js +4 -3
- package/dist/esm/pages/layout/global.js +46 -33
- package/dist/esm/pages/layout/page.js +15 -10
- package/dist/esm/pages/login.js +26 -21
- package/dist/esm/pages/menu/avatar.js +14 -14
- package/dist/esm/pages/menu/button.js +19 -14
- package/dist/esm/pages/menu/cmd.js +29 -24
- package/dist/esm/pages/menu/main.js +26 -21
- package/dist/esm/pages/menu/mobile.js +19 -14
- package/dist/esm/pages/page.js +16 -16
- package/dist/esm/pages/page404.js +25 -20
- package/dist/esm/pages/pageStatus.js +13 -8
- package/dist/esm/theme/naiveTheme.js +57 -51
- package/dist/esm/theme/uno.css.js +28 -6
- package/dist/types/components/chart/echart.d.ts +284 -0
- package/dist/types/components/chart/index.d.ts +1 -0
- package/dist/types/components/dialog/dialog.d.ts +1 -20
- package/dist/types/components/drawer/drawer.d.ts +14 -4
- package/dist/types/components/form/formLayout.d.ts +1 -1
- package/dist/types/components/form/modalForm.d.ts +1 -1
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/components/layout/list.d.ts +22 -1
- package/dist/types/components/layout/table.d.ts +22 -1
- package/dist/types/components/list/card.d.ts +41 -3
- package/dist/types/components/list/list.d.ts +46 -5
- package/dist/types/components/modal/modal.d.ts +13 -31
- package/dist/types/components/modal/modalPage.d.ts +3 -6
- package/dist/types/components/panel/alert.d.ts +1 -1
- package/dist/types/components/select/cardSelect.d.ts +88 -0
- package/dist/types/components/select/index.d.ts +1 -0
- package/dist/types/components/table/tablePage.d.ts +28 -2
- package/dist/types/config/echart.d.ts +4 -0
- package/dist/types/config/index.d.ts +1 -0
- package/dist/types/hooks/drawer.d.ts +3 -2
- package/dist/types/hooks/echart.d.ts +166 -0
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/modal.d.ts +10 -5
- package/dist/types/hooks/table/types.d.ts +1 -0
- package/dist/types/main.d.ts +1 -0
- package/dist/types/pages/layout/global.d.ts +1 -0
- package/dist/types/pages/menu/avatar.d.ts +3 -3
- package/dist/types/pages/menu/button.d.ts +3 -3
- package/dist/types/pages/menu/main.d.ts +3 -3
- package/dist/types/pages/page.d.ts +1 -1
- package/package.json +22 -16
- package/dist/cjs/node_modules/@overlastic/core/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/@overlastic/vue/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/@vueuse/integrations/useFocusTrap.cjs +0 -1
- package/dist/cjs/node_modules/@vueuse/shared/index.cjs +0 -1
- package/dist/cjs/node_modules/colorizr/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/focus-trap/dist/focus-trap.esm.cjs +0 -5
- package/dist/cjs/node_modules/lower-case/dist.es2015/index.cjs +0 -1
- package/dist/cjs/node_modules/no-case/dist.es2015/index.cjs +0 -1
- package/dist/cjs/node_modules/pascal-case/dist.es2015/index.cjs +0 -1
- package/dist/cjs/node_modules/tabbable/dist/index.esm.cjs +0 -4
- package/dist/cjs/node_modules/tslib/tslib.es6.cjs +0 -1
- package/dist/esm/node_modules/@overlastic/core/dist/index.js +0 -76
- package/dist/esm/node_modules/@overlastic/vue/dist/index.js +0 -122
- package/dist/esm/node_modules/@vueuse/integrations/useFocusTrap.js +0 -43
- package/dist/esm/node_modules/@vueuse/shared/index.js +0 -6
- package/dist/esm/node_modules/colorizr/dist/index.js +0 -318
- package/dist/esm/node_modules/focus-trap/dist/focus-trap.esm.js +0 -473
- package/dist/esm/node_modules/lower-case/dist.es2015/index.js +0 -6
- package/dist/esm/node_modules/no-case/dist.es2015/index.js +0 -18
- package/dist/esm/node_modules/pascal-case/dist.es2015/index.js +0 -13
- package/dist/esm/node_modules/tabbable/dist/index.esm.js +0 -202
- package/dist/esm/node_modules/tslib/tslib.es6.js +0 -12
- /package/dist/cjs/node_modules/{@iconify-json → .pnpm/@iconify-json_tabler@1.2.19/node_modules/@iconify-json}/tabler/icons.json.cjs +0 -0
- /package/dist/cjs/node_modules/{@vee-validate → .pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate}/i18n/dist/locale/en.json.cjs +0 -0
- /package/dist/cjs/node_modules/{@vee-validate → .pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate}/i18n/dist/locale/zh_CN.json.cjs +0 -0
- /package/dist/esm/node_modules/{@iconify-json → .pnpm/@iconify-json_tabler@1.2.19/node_modules/@iconify-json}/tabler/icons.json.js +0 -0
- /package/dist/esm/node_modules/{@vee-validate → .pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate}/i18n/dist/locale/en.json.js +0 -0
- /package/dist/esm/node_modules/{@vee-validate → .pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate}/i18n/dist/locale/zh_CN.json.js +0 -0
package/dist/esm/index.js
CHANGED
|
@@ -1,139 +1,162 @@
|
|
|
1
1
|
import { DuxApp as e } from "./app.js";
|
|
2
|
-
import { DuxCard as
|
|
3
|
-
import { DuxCarousel as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
2
|
+
import { DuxCard as x } from "./components/card/card.js";
|
|
3
|
+
import { DuxCarousel as a } from "./components/carousel/carousel.js";
|
|
4
|
+
import { DuxChart as p } from "./components/chart/echart.js";
|
|
5
|
+
import { DuxDashboardHello as D } from "./components/dashboard/hello.js";
|
|
6
|
+
import { DuxDashboardHelloBig as s } from "./components/dashboard/helloBig.js";
|
|
7
|
+
import { DuxDashboardQuick as d, DuxDashboardQuickItem as i } from "./components/dashboard/quick.js";
|
|
8
|
+
import { default as h } from "./components/dialog/dialog.js";
|
|
9
|
+
import { DuxDrawApps as b } from "./components/draw/drawApps.js";
|
|
10
|
+
import { DuxDrawAuth as C } from "./components/draw/drawAuth.js";
|
|
11
|
+
import { DuxDrawEmpty as T } from "./components/draw/drawEmpty.js";
|
|
12
|
+
import { DuxDrawEmptyForm as w } from "./components/draw/drawEmptyForm.js";
|
|
13
|
+
import { DuxDrawError as L } from "./components/draw/drawError.js";
|
|
14
|
+
import { default as F } from "./components/drawer/drawer.js";
|
|
15
|
+
import { DuxDrawerPage as B } from "./components/drawer/drawerPage.js";
|
|
16
|
+
import { DuxFormItem as R } from "./components/form/formItem.js";
|
|
17
|
+
import { DuxFormLayout as U } from "./components/form/formLayout.js";
|
|
18
|
+
import { DuxModalForm as H } from "./components/form/modalForm.js";
|
|
19
|
+
import { DuxPageForm as V } from "./components/form/pageForm.js";
|
|
20
|
+
import { DuxSettingForm as N } from "./components/form/settingForm.js";
|
|
21
|
+
import { DuxTableFilter as W } from "./components/layout/filter.js";
|
|
22
|
+
import { DuxListLayout as q } from "./components/layout/list.js";
|
|
23
|
+
import { DuxTableLayout as J } from "./components/layout/table.js";
|
|
24
|
+
import { DuxTableTools as X } from "./components/layout/tools.js";
|
|
25
|
+
import { DuxCardPage as Z } from "./components/list/card.js";
|
|
26
|
+
import { DuxListPage as $ } from "./components/list/list.js";
|
|
27
|
+
import { DuxMedia as or } from "./components/media/media.js";
|
|
28
|
+
import { DuxModal as tr } from "./components/modal/modal.js";
|
|
29
|
+
import { default as ur } from "./components/modal/modalPage.js";
|
|
30
|
+
import { default as mr } from "./components/modal/modalTab.js";
|
|
31
|
+
import { DuxPanelAlert as fr } from "./components/panel/alert.js";
|
|
32
|
+
import { DuxPanelCard as lr } from "./components/panel/setting.js";
|
|
33
|
+
import { DuxSelectCard as nr } from "./components/select/cardSelect.js";
|
|
34
|
+
import { DuxBlockEmpty as ir } from "./components/status/blockEmpty.js";
|
|
35
|
+
import { DuxTablePage as hr } from "./components/table/tablePage.js";
|
|
36
|
+
import { DuxWidgetConnect as br } from "./components/widget/connect.js";
|
|
37
|
+
import { DuxAuthLayout as Cr } from "./pages/authLayout.js";
|
|
38
|
+
import { DuxLayout as Tr } from "./pages/layout.js";
|
|
39
|
+
import { DuxLoginPage as wr } from "./pages/login.js";
|
|
40
|
+
import { default as Lr } from "./pages/menu/avatar.js";
|
|
41
|
+
import { default as Fr } from "./pages/menu/button.js";
|
|
42
|
+
import { DuxMenuCmd as Br } from "./pages/menu/cmd.js";
|
|
43
|
+
import { DuxMenuMain as Rr } from "./pages/menu/main.js";
|
|
44
|
+
import { DuxMobileMenu as Ur } from "./pages/menu/mobile.js";
|
|
45
|
+
import { DuxPage as Hr } from "./pages/page.js";
|
|
46
|
+
import { DuxPage403 as Vr } from "./pages/page403.js";
|
|
47
|
+
import { DuxPage404 as Nr } from "./pages/page404.js";
|
|
48
|
+
import { DuxPage500 as Wr } from "./pages/page500.js";
|
|
49
|
+
import { DuxPageEmpty as qr } from "./pages/pageEmpty.js";
|
|
50
|
+
import { DuxPageLoading as Jr } from "./pages/pageLoading.js";
|
|
51
|
+
import { DuxPageStatus as Xr } from "./pages/pageStatus.js";
|
|
52
|
+
import { generateRainbowFromColor as Zr, getTheme as _r } from "./config/echart.js";
|
|
53
|
+
import { config as ro } from "./config/uno.js";
|
|
54
|
+
import { initVeeValidate as eo } from "./config/validate.js";
|
|
55
|
+
import { useAction as xo, useActionButton as uo, useActionDropdown as ao } from "./hooks/action.js";
|
|
56
|
+
import { useDialog as po } from "./hooks/dialog.js";
|
|
57
|
+
import { useDrawer as Do } from "./hooks/drawer.js";
|
|
58
|
+
import { useEchartBar as so, useEchartCommon as no, useEchartFunnel as io, useEchartLine as go, useEchartMap as ho, useEchartPie as co, useEchartRadar as bo, useEchartRing as Po, useEchartRose as Co, useEchartTreeMap as Mo, useEchartType as To } from "./hooks/echart.js";
|
|
59
|
+
import { useModal as wo } from "./hooks/modal.js";
|
|
60
|
+
import { useTable as Lo } from "./hooks/table.js";
|
|
61
|
+
import { useTableColumn as Fo } from "./hooks/table/column.js";
|
|
62
|
+
import { useTableColumnImage as Bo } from "./hooks/table/image.js";
|
|
63
|
+
import { useTableColumnMap as Ro } from "./hooks/table/map.js";
|
|
64
|
+
import { useTableColumnMedia as Uo } from "./hooks/table/media.js";
|
|
65
|
+
import { useTableColumnStatus as Ho } from "./hooks/table/status.js";
|
|
66
|
+
import { useTableColumnSwitch as Vo } from "./hooks/table/switch.js";
|
|
67
|
+
import { useUI as No } from "./hooks/ui.js";
|
|
68
|
+
import { default as Wo } from "./langs/en-US.json.js";
|
|
69
|
+
import { default as qo } from "./langs/zh-CN.json.js";
|
|
70
|
+
import { createDuxPro as Jo } from "./main.js";
|
|
71
|
+
import { useUIStore as Xo } from "./stores/ui.js";
|
|
72
|
+
import { themeOverrides as Zo } from "./theme/naiveTheme.js";
|
|
73
|
+
import { presetTheme as $o } from "./theme/presetTheme.js";
|
|
68
74
|
export {
|
|
69
75
|
e as DuxApp,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
p as
|
|
76
|
-
D as
|
|
77
|
-
s as
|
|
78
|
-
|
|
79
|
-
i as
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
C as
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
L as
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
76
|
+
Cr as DuxAuthLayout,
|
|
77
|
+
ir as DuxBlockEmpty,
|
|
78
|
+
x as DuxCard,
|
|
79
|
+
Z as DuxCardPage,
|
|
80
|
+
a as DuxCarousel,
|
|
81
|
+
p as DuxChart,
|
|
82
|
+
D as DuxDashboardHello,
|
|
83
|
+
s as DuxDashboardHelloBig,
|
|
84
|
+
d as DuxDashboardQuick,
|
|
85
|
+
i as DuxDashboardQuickItem,
|
|
86
|
+
h as DuxDialog,
|
|
87
|
+
b as DuxDrawApps,
|
|
88
|
+
C as DuxDrawAuth,
|
|
89
|
+
T as DuxDrawEmpty,
|
|
90
|
+
w as DuxDrawEmptyForm,
|
|
91
|
+
L as DuxDrawError,
|
|
92
|
+
F as DuxDrawer,
|
|
93
|
+
B as DuxDrawerPage,
|
|
94
|
+
R as DuxFormItem,
|
|
95
|
+
U as DuxFormLayout,
|
|
96
|
+
Tr as DuxLayout,
|
|
97
|
+
q as DuxListLayout,
|
|
98
|
+
$ as DuxListPage,
|
|
99
|
+
wr as DuxLoginPage,
|
|
100
|
+
or as DuxMedia,
|
|
101
|
+
Lr as DuxMenuAvatar,
|
|
102
|
+
Fr as DuxMenuButton,
|
|
103
|
+
Br as DuxMenuCmd,
|
|
104
|
+
Rr as DuxMenuMain,
|
|
105
|
+
Ur as DuxMobileMenu,
|
|
106
|
+
tr as DuxModal,
|
|
107
|
+
H as DuxModalForm,
|
|
108
|
+
Hr as DuxPage,
|
|
109
|
+
Vr as DuxPage403,
|
|
110
|
+
Nr as DuxPage404,
|
|
111
|
+
Wr as DuxPage500,
|
|
112
|
+
qr as DuxPageEmpty,
|
|
113
|
+
V as DuxPageForm,
|
|
114
|
+
Jr as DuxPageLoading,
|
|
115
|
+
Xr as DuxPageStatus,
|
|
116
|
+
fr as DuxPanelAlert,
|
|
117
|
+
lr as DuxPanelCard,
|
|
118
|
+
nr as DuxSelectCard,
|
|
119
|
+
N as DuxSettingForm,
|
|
120
|
+
W as DuxTableFilter,
|
|
121
|
+
J as DuxTableLayout,
|
|
122
|
+
hr as DuxTablePage,
|
|
123
|
+
X as DuxTableTools,
|
|
124
|
+
br as DuxWidgetConnect,
|
|
125
|
+
ur as ModalPage,
|
|
126
|
+
mr as ModalTab,
|
|
127
|
+
ro as config,
|
|
128
|
+
Jo as createDuxPro,
|
|
129
|
+
Wo as enUS,
|
|
130
|
+
Zr as generateRainbowFromColor,
|
|
131
|
+
_r as getTheme,
|
|
132
|
+
eo as initVeeValidate,
|
|
133
|
+
$o as presetTheme,
|
|
134
|
+
Zo as themeOverrides,
|
|
135
|
+
xo as useAction,
|
|
136
|
+
uo as useActionButton,
|
|
137
|
+
ao as useActionDropdown,
|
|
138
|
+
po as useDialog,
|
|
139
|
+
Do as useDrawer,
|
|
140
|
+
so as useEchartBar,
|
|
141
|
+
no as useEchartCommon,
|
|
142
|
+
io as useEchartFunnel,
|
|
143
|
+
go as useEchartLine,
|
|
144
|
+
ho as useEchartMap,
|
|
145
|
+
co as useEchartPie,
|
|
146
|
+
bo as useEchartRadar,
|
|
147
|
+
Po as useEchartRing,
|
|
148
|
+
Co as useEchartRose,
|
|
149
|
+
Mo as useEchartTreeMap,
|
|
150
|
+
To as useEchartType,
|
|
151
|
+
wo as useModal,
|
|
152
|
+
Lo as useTable,
|
|
153
|
+
Fo as useTableColumn,
|
|
154
|
+
Bo as useTableColumnImage,
|
|
155
|
+
Ro as useTableColumnMap,
|
|
156
|
+
Uo as useTableColumnMedia,
|
|
157
|
+
Ho as useTableColumnStatus,
|
|
158
|
+
Vo as useTableColumnSwitch,
|
|
159
|
+
No as useUI,
|
|
160
|
+
Xo as useUIStore,
|
|
161
|
+
qo as zhCN
|
|
139
162
|
};
|
package/dist/esm/main.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import o from "@unocss/runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import r from "vue-echarts";
|
|
3
|
+
import i from "./component.js";
|
|
4
|
+
import "@ant-design/colors";
|
|
5
|
+
import { config as e } from "./config/uno.js";
|
|
6
|
+
import { initVeeValidate as m } from "./config/validate.js";
|
|
7
|
+
import "echarts";
|
|
5
8
|
/* empty css */
|
|
6
|
-
function
|
|
7
|
-
return
|
|
8
|
-
defaults:
|
|
9
|
+
function d() {
|
|
10
|
+
return m(), o({
|
|
11
|
+
defaults: e(!1),
|
|
9
12
|
bypassDefined: !0
|
|
10
13
|
}), {
|
|
11
14
|
install(t) {
|
|
12
|
-
t.use(
|
|
15
|
+
t.component("v-chart", r), t.use(i);
|
|
13
16
|
}
|
|
14
17
|
};
|
|
15
18
|
}
|
|
16
19
|
export {
|
|
17
|
-
|
|
20
|
+
d as createDuxPro
|
|
18
21
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defaultIconTransformations as t } from "../icon/defaults.js";
|
|
2
|
+
const e = Object.freeze({
|
|
3
|
+
width: null,
|
|
4
|
+
height: null
|
|
5
|
+
}), n = Object.freeze({
|
|
6
|
+
// Dimensions
|
|
7
|
+
...e,
|
|
8
|
+
// Transformations
|
|
9
|
+
...t
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
n as defaultIconCustomisations,
|
|
13
|
+
e as defaultIconSizeCustomisations
|
|
14
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const e = Object.freeze(
|
|
2
|
+
{
|
|
3
|
+
left: 0,
|
|
4
|
+
top: 0,
|
|
5
|
+
width: 16,
|
|
6
|
+
height: 16
|
|
7
|
+
}
|
|
8
|
+
), t = Object.freeze({
|
|
9
|
+
rotate: 0,
|
|
10
|
+
vFlip: !1,
|
|
11
|
+
hFlip: !1
|
|
12
|
+
}), o = Object.freeze({
|
|
13
|
+
...e,
|
|
14
|
+
...t
|
|
15
|
+
}), n = Object.freeze({
|
|
16
|
+
...o,
|
|
17
|
+
body: "",
|
|
18
|
+
hidden: !1
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
n as defaultExtendedIconProps,
|
|
22
|
+
e as defaultIconDimensions,
|
|
23
|
+
o as defaultIconProps,
|
|
24
|
+
t as defaultIconTransformations
|
|
25
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defaultExtendedIconProps as f, defaultIconTransformations as r } from "./defaults.js";
|
|
2
|
+
import { mergeIconTransformations as t } from "./transformations.js";
|
|
3
|
+
function a(e, i) {
|
|
4
|
+
const n = t(e, i);
|
|
5
|
+
for (const o in f)
|
|
6
|
+
o in r ? o in e && !(o in n) && (n[o] = r[o]) : o in i ? n[o] = i[o] : o in e && (n[o] = e[o]);
|
|
7
|
+
return n;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
a as mergeIconData
|
|
11
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { mergeIconData as s } from "../icon/merge.js";
|
|
2
|
+
import { getIconsTree as f } from "./tree.js";
|
|
3
|
+
function i(r, o, n) {
|
|
4
|
+
const u = r.icons, l = r.aliases || /* @__PURE__ */ Object.create(null);
|
|
5
|
+
let t = {};
|
|
6
|
+
function c(e) {
|
|
7
|
+
t = s(
|
|
8
|
+
u[e] || l[e],
|
|
9
|
+
t
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
return c(o), n.forEach(c), s(r, t);
|
|
13
|
+
}
|
|
14
|
+
function g(r, o) {
|
|
15
|
+
if (r.icons[o])
|
|
16
|
+
return i(r, o, []);
|
|
17
|
+
const n = f(r, [o])[o];
|
|
18
|
+
return n ? i(r, o, n) : null;
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
g as getIconData,
|
|
22
|
+
i as internalGetIconData
|
|
23
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function u(o, i) {
|
|
2
|
+
const s = o.icons, e = o.aliases || /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null);
|
|
3
|
+
function r(c) {
|
|
4
|
+
if (s[c])
|
|
5
|
+
return t[c] = [];
|
|
6
|
+
if (!(c in t)) {
|
|
7
|
+
t[c] = null;
|
|
8
|
+
const n = e[c] && e[c].parent, l = n && r(n);
|
|
9
|
+
l && (t[c] = [n].concat(l));
|
|
10
|
+
}
|
|
11
|
+
return t[c];
|
|
12
|
+
}
|
|
13
|
+
return (i || Object.keys(s).concat(Object.keys(e))).forEach(r), t;
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
u as getIconsTree
|
|
17
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import n from "../../../../../../../../_virtual/browser.js";
|
|
2
|
+
import { mergeIconProps as s } from "./utils.js";
|
|
3
|
+
import { trimSVG as c } from "../svg/trim.js";
|
|
4
|
+
const d = n("@iconify-loader:custom");
|
|
5
|
+
async function y(u, f, e, a) {
|
|
6
|
+
var i;
|
|
7
|
+
let r;
|
|
8
|
+
d(`${f}:${e}`);
|
|
9
|
+
try {
|
|
10
|
+
if (typeof u == "function")
|
|
11
|
+
r = await u(e);
|
|
12
|
+
else {
|
|
13
|
+
const t = u[e];
|
|
14
|
+
r = typeof t == "function" ? await t() : t;
|
|
15
|
+
}
|
|
16
|
+
} catch (t) {
|
|
17
|
+
console.warn(
|
|
18
|
+
`Failed to load custom icon "${e}" in "${f}":`,
|
|
19
|
+
t
|
|
20
|
+
);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
if (r) {
|
|
24
|
+
const t = r.indexOf("<svg");
|
|
25
|
+
t > 0 && (r = r.slice(t));
|
|
26
|
+
const { transform: m } = (a == null ? void 0 : a.customizations) ?? {};
|
|
27
|
+
return r = typeof m == "function" ? await m(r, f, e) : r, r.startsWith("<svg") ? await s(
|
|
28
|
+
((i = a == null ? void 0 : a.customizations) == null ? void 0 : i.trimCustomSvg) === !0 ? c(r) : r,
|
|
29
|
+
f,
|
|
30
|
+
e,
|
|
31
|
+
a,
|
|
32
|
+
void 0
|
|
33
|
+
) : (console.warn(
|
|
34
|
+
`Custom icon "${e}" in "${f}" is not a valid SVG`
|
|
35
|
+
), r);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
y as getCustomIcon
|
|
40
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { getCustomIcon as m } from "./custom.js";
|
|
2
|
+
import { searchForIcon as c } from "./modern.js";
|
|
3
|
+
import "../../../../../../../../_virtual/browser.js";
|
|
4
|
+
const g = async (e, r, a) => {
|
|
5
|
+
var u;
|
|
6
|
+
const f = (u = a == null ? void 0 : a.customCollections) == null ? void 0 : u[e];
|
|
7
|
+
if (f)
|
|
8
|
+
if (typeof f == "function") {
|
|
9
|
+
let t;
|
|
10
|
+
try {
|
|
11
|
+
t = await f(r);
|
|
12
|
+
} catch (s) {
|
|
13
|
+
console.warn(
|
|
14
|
+
`Failed to load custom icon "${r}" in "${e}":`,
|
|
15
|
+
s
|
|
16
|
+
);
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
if (t) {
|
|
20
|
+
if (typeof t == "string")
|
|
21
|
+
return await m(
|
|
22
|
+
() => t,
|
|
23
|
+
e,
|
|
24
|
+
r,
|
|
25
|
+
a
|
|
26
|
+
);
|
|
27
|
+
if ("icons" in t) {
|
|
28
|
+
const s = [
|
|
29
|
+
r,
|
|
30
|
+
r.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
|
|
31
|
+
r.replace(/([a-z])(\d+)/g, "$1-$2")
|
|
32
|
+
];
|
|
33
|
+
return await c(
|
|
34
|
+
t,
|
|
35
|
+
e,
|
|
36
|
+
s,
|
|
37
|
+
a
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
} else
|
|
42
|
+
return await m(f, e, r, a);
|
|
43
|
+
};
|
|
44
|
+
export {
|
|
45
|
+
g as loadIcon
|
|
46
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { iconToSVG as w, isUnsetKeyword as z } from "../svg/build.js";
|
|
2
|
+
import { getIconData as I } from "../icon-set/get-icon.js";
|
|
3
|
+
import { calculateSize as v } from "../svg/size.js";
|
|
4
|
+
import { mergeIconProps as D } from "./utils.js";
|
|
5
|
+
import C from "../../../../../../../../_virtual/browser.js";
|
|
6
|
+
import { defaultIconCustomisations as S } from "../customisations/defaults.js";
|
|
7
|
+
const j = C("@iconify-loader:icon");
|
|
8
|
+
async function O(d, a, l, e) {
|
|
9
|
+
let t;
|
|
10
|
+
const { customize: s } = (e == null ? void 0 : e.customizations) ?? {};
|
|
11
|
+
for (const r of l)
|
|
12
|
+
if (t = I(d, r), t) {
|
|
13
|
+
j(`${a}:${r}`);
|
|
14
|
+
let i = {
|
|
15
|
+
...S
|
|
16
|
+
};
|
|
17
|
+
typeof s == "function" && (t = Object.assign({}, t), i = s(
|
|
18
|
+
i,
|
|
19
|
+
t,
|
|
20
|
+
`${a}:${r}`
|
|
21
|
+
) ?? i);
|
|
22
|
+
const {
|
|
23
|
+
attributes: { width: h, height: b, ...y },
|
|
24
|
+
body: $
|
|
25
|
+
} = w(t, i), f = e == null ? void 0 : e.scale;
|
|
26
|
+
return await D(
|
|
27
|
+
// DON'T remove space on <svg >
|
|
28
|
+
`<svg >${$}</svg>`,
|
|
29
|
+
a,
|
|
30
|
+
r,
|
|
31
|
+
e,
|
|
32
|
+
() => ({ ...y }),
|
|
33
|
+
(o) => {
|
|
34
|
+
const n = (m, u) => {
|
|
35
|
+
const g = o[m];
|
|
36
|
+
let c;
|
|
37
|
+
if (!z(g)) {
|
|
38
|
+
if (g)
|
|
39
|
+
return;
|
|
40
|
+
typeof f == "number" ? f && (c = v(
|
|
41
|
+
// Base on result from iconToSVG() or 1em
|
|
42
|
+
u ?? "1em",
|
|
43
|
+
f
|
|
44
|
+
)) : c = u;
|
|
45
|
+
}
|
|
46
|
+
c ? o[m] = c : delete o[m];
|
|
47
|
+
};
|
|
48
|
+
n("width", h), n("height", b);
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
O as searchForIcon
|
|
55
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { isUnsetKeyword as r } from "../svg/build.js";
|
|
2
|
+
import { calculateSize as S } from "../svg/size.js";
|
|
3
|
+
const O = /\swidth\s*=\s*["']([\w.]+)["']/, $ = /\sheight\s*=\s*["']([\w.]+)["']/, a = /<svg\s+/;
|
|
4
|
+
function b(l, f, u) {
|
|
5
|
+
const c = l.slice(0, l.indexOf(">")), s = (h, x) => {
|
|
6
|
+
const i = x.exec(c), w = i != null, d = f[h];
|
|
7
|
+
return !d && !r(d) && (typeof u == "number" ? u > 0 && (f[h] = S(
|
|
8
|
+
// Base on result from iconToSVG() or 1em
|
|
9
|
+
(i == null ? void 0 : i[1]) ?? "1em",
|
|
10
|
+
u
|
|
11
|
+
)) : i && (f[h] = i[1])), w;
|
|
12
|
+
};
|
|
13
|
+
return [s("width", O), s("height", $)];
|
|
14
|
+
}
|
|
15
|
+
async function R(l, f, u, c, s, h) {
|
|
16
|
+
const { scale: x, addXmlNs: i = !1 } = c ?? {}, { additionalProps: w = {}, iconCustomizer: d } = (c == null ? void 0 : c.customizations) ?? {}, e = await (s == null ? void 0 : s()) ?? {};
|
|
17
|
+
await (d == null ? void 0 : d(f, u, e)), Object.keys(w).forEach((n) => {
|
|
18
|
+
const t = w[n];
|
|
19
|
+
t != null && (e[n] = t);
|
|
20
|
+
}), h == null || h(e);
|
|
21
|
+
const [y, k] = b(l, e, x);
|
|
22
|
+
i && (!l.includes("xmlns=") && !e.xmlns && (e.xmlns = "http://www.w3.org/2000/svg"), !l.includes("xmlns:xlink=") && l.includes("xlink:") && !e["xmlns:xlink"] && (e["xmlns:xlink"] = "http://www.w3.org/1999/xlink"));
|
|
23
|
+
const m = Object.keys(e).map(
|
|
24
|
+
(n) => n === "width" && y || n === "height" && k ? null : `${n}="${e[n]}"`
|
|
25
|
+
).filter((n) => n != null);
|
|
26
|
+
if (m.length && (l = l.replace(a, `<svg ${m.join(" ")} `)), c) {
|
|
27
|
+
const { defaultStyle: n, defaultClass: t } = c;
|
|
28
|
+
t && !l.includes("class=") && (l = l.replace(a, `<svg class="${t}" `)), n && !l.includes("style=") && (l = l.replace(a, `<svg style="${n}" `));
|
|
29
|
+
}
|
|
30
|
+
const g = c == null ? void 0 : c.usedProps;
|
|
31
|
+
return g && (Object.keys(w).forEach((n) => {
|
|
32
|
+
const t = e[n];
|
|
33
|
+
t != null && (g[n] = t);
|
|
34
|
+
}), typeof e.width < "u" && e.width !== null && (g.width = e.width), typeof e.height < "u" && e.height !== null && (g.height = e.height)), l;
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
R as mergeIconProps
|
|
38
|
+
};
|