@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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duxweb/dvha-pro",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.7",
|
|
5
5
|
"author": "DuxWeb",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"require": "./dist/cjs/index.cjs"
|
|
20
20
|
},
|
|
21
21
|
"./style.css": {
|
|
22
|
-
"dvha:development": "./src/theme/style.scss",
|
|
23
22
|
"import": "./dist/esm/dvha-pro.css",
|
|
24
23
|
"require": "./dist/cjs/dvha-pro.css"
|
|
25
24
|
}
|
|
@@ -32,42 +31,49 @@
|
|
|
32
31
|
"README.md",
|
|
33
32
|
"dist"
|
|
34
33
|
],
|
|
35
|
-
"scripts": {
|
|
36
|
-
"clean": "rimraf dist",
|
|
37
|
-
"build": "bun run clean && vue-tsc --noEmit && vite build && bun run build:types",
|
|
38
|
-
"build:types": "vue-tsc --declaration --emitDeclarationOnly --outDir dist/types",
|
|
39
|
-
"build:uno": "unocss -c uno.config.ts './src/**/*' -o ./src/theme/uno.css",
|
|
40
|
-
"prepublishOnly": "bun run build",
|
|
41
|
-
"lint": "eslint .",
|
|
42
|
-
"lint:fix": "eslint . --fix"
|
|
43
|
-
},
|
|
44
34
|
"dependencies": {
|
|
45
|
-
"@
|
|
46
|
-
"@duxweb/dvha-
|
|
35
|
+
"@ant-design/colors": "^7.2.1",
|
|
36
|
+
"@duxweb/dvha-core": "^0.1.23",
|
|
37
|
+
"@duxweb/dvha-naiveui": "^1.0.12",
|
|
47
38
|
"@iconify-json/tabler": "^1.2.18",
|
|
39
|
+
"@overlastic/vue": "^0.8.1",
|
|
48
40
|
"@unocss/preset-icons": "^66.2.1",
|
|
41
|
+
"@unocss/preset-typography": "^66.2.3",
|
|
49
42
|
"@unocss/runtime": "^66.2.1",
|
|
50
43
|
"@vee-validate/i18n": "^4.15.1",
|
|
51
44
|
"@vee-validate/rules": "^4.15.1",
|
|
52
45
|
"@vueuse/core": "^13.3.0",
|
|
53
46
|
"@vueuse/integrations": "^13.3.0",
|
|
54
47
|
"clsx": "^2.1.1",
|
|
48
|
+
"colorizr": "^3.0.8",
|
|
49
|
+
"echarts": "^5.6.0",
|
|
55
50
|
"jinrishici": "^1.0.6",
|
|
56
51
|
"jsep": "^1.4.0",
|
|
57
52
|
"lodash-es": "^4.17.21",
|
|
58
|
-
"
|
|
53
|
+
"mathjs": "^14.5.2",
|
|
54
|
+
"naive-ui": "^2.42.0",
|
|
59
55
|
"pinia": "^3.0.3",
|
|
60
56
|
"pinia-plugin-persistedstate": "^4.3.0",
|
|
61
57
|
"sass-embedded": "^1.89.1",
|
|
58
|
+
"tslib": "^2.8.1",
|
|
62
59
|
"unocss": "^66.2.1",
|
|
63
60
|
"vee-validate": "^4.15.1",
|
|
64
61
|
"vue": "^3.5.0",
|
|
65
62
|
"vue-command-palette": "^0.2.3",
|
|
66
|
-
"vue-
|
|
63
|
+
"vue-echarts": "^7.0.3",
|
|
64
|
+
"vue-router": "^4.5.1"
|
|
67
65
|
},
|
|
68
66
|
"devDependencies": {
|
|
69
67
|
"@unocss/cli": "^66.2.1",
|
|
70
68
|
"rimraf": "^6.0.1",
|
|
71
69
|
"vue-tsc": "^2.2.10"
|
|
70
|
+
},
|
|
71
|
+
"scripts": {
|
|
72
|
+
"clean": "rimraf dist",
|
|
73
|
+
"build": "pnpm run clean && vue-tsc --noEmit && pnpm run build:uno && vite build && pnpm run build:types",
|
|
74
|
+
"build:types": "vue-tsc --declaration --emitDeclarationOnly --outDir dist/types",
|
|
75
|
+
"build:uno": "unocss -c uno.config.ts './src/**/*' -o ./src/theme/uno.css",
|
|
76
|
+
"lint": "eslint .",
|
|
77
|
+
"lint:fix": "eslint . --fix"
|
|
72
78
|
}
|
|
73
|
-
}
|
|
79
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var m="unified-overlay";function y(e="",n=document.body){const t=document.createElement("div");return e&&(t.id=e),n!==!1&&n.appendChild(t),t}var r={position:null,spaces:{}};function v(e=m,n=!0){return r.spaces[e]||(r.spaces[e]=0),n?`${e}--${++r.spaces[e]}`:e}function g(e=m){return r.spaces[e]||0}function b(){let e,n;const t=new Promise((i,l)=>{e=i,n=l});return t.resolve=i=>(e(i),t),t.reject=n,t}function E(){typeof window>"u"&&typeof document>"u"||document.addEventListener("click",e=>{if(e.target instanceof Element){const{left:n,top:t,width:i,height:l}=e.target.getBoundingClientRect();n>0||t>0?r.position={x:n+i/2,y:t+l/2}:r.position=null}else r.position=null;setTimeout(()=>r.position=null,64)})}function I(e,n={}){const{container:t}=n;function i(f,a){function d(c,o){const u=b(),p=v(o.id,o.autoIncrement),C=g(o.id),P=t?o.root:document.body,h=y(p,P);return e(f,c,Object.assign(o,{position:r.position,id:p,deferred:u,index:C,container:h})),u}let s;function w(c,o){return s||(s=d(c,o),s.finally(()=>s=void 0)),s}function x(c,o){const u={...a,...o};return u.only?w(c,u):d(c,u)}return x}function l(f,a,d){return i(f,d)(a)}return{define:i,render:l}}E();function j(){}function D(e){return new Promise(n=>setTimeout(n,e))}exports.UnifiedOverlayProviderID=m;exports.createConstructor=I;exports.createDeferred=b;exports.defineGlobalElement=y;exports.defineName=v;exports.delay=D;exports.getIndex=g;exports.noop=j;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),y=require("@vueuse/core"),f=require("../../core/dist/index.cjs"),p=require("../../../pascal-case/dist.es2015/index.cjs");var j={appContext:null},d=Symbol("OverlayScripts"),m=Symbol("OverlayInstances");function b(e={}){const{duration:r=0,immediate:t=!0,model:s="visible",automatic:o=!0}=e,i=n.inject(d,_(s,e)),a=Reflect.get(i,"in_dec"),{visible:l,deferred:c,vanish:u}=i;async function v(){return l.value=!1,await f.delay(r),u==null||u(),Promise.resolve()}return!a&&o&&(c==null||c.then(v).catch(v)),!a&&t&&n.onMounted(()=>l.value=!0),n.provide(d,null),i}function _(e,r={}){const{reject:t="reject",resolve:s="resolve"}=r.events||{},o=n.getCurrentInstance();if(!o)throw new Error("Please use useExtendOverlay in component setup");const i=y.useVModel(o.props,e,o.emit,{passive:!0});return{reject:c=>{o==null||o.emit(t,c),i.value=!1},resolve:c=>{o==null||o.emit(s,c),i.value=!1},vanish:f.noop,visible:i,in_dec:!0}}function h(e){const{reject:r}=e.deferred||{},{vanish:t}=e,s=n.ref(!1);function o(){t==null||t(),r==null||r()}return{resolve:e.deferred.resolve,reject:e.deferred.reject,deferred:e.deferred,visible:s,vanish:o}}var{define:g}=f.createConstructor((e,r,t)=>{const{id:s,deferred:o,render:i,vanish:a}=t,l=n.defineComponent({name:p.pascalCase(s),setup:()=>{const u=h({vanish:c,deferred:o});n.provide(d,u)},render:()=>n.h(e,r)});function c(){a(l)}i(l,r)},{container:!1});function O(e){const{render:r,vanish:t}=n.inject(m);return g(e,{render:r,vanish:t})}function C(e,r){var t;const s=(r==null?void 0:r.app)||((t=j.appContext)==null?void 0:t.app);s&&(e.config.globalProperties=s.config.globalProperties,Object.assign(e._context,s._context))}f.createConstructor((e,r,t)=>{const{container:s,id:o,deferred:i,appContext:a}=t;function l(){u.unmount(),s.remove()}const c=n.defineComponent({name:p.pascalCase(o),setup:()=>{const v=h({vanish:l,deferred:i});n.provide(d,v)},render:()=>n.h(e,r)}),u=n.createApp(c);return C(u,a),u.mount(s),l});n.defineComponent({name:"Field",props:{is:{type:[String,Number,Object],default:""}},setup(e){return()=>typeof e.is=="string"||typeof e.is=="number"?e.is:e.is?n.h(e.is):null}});var x=n.defineComponent({setup(e,{slots:r}){const t=n.ref([]);function s(i,a){console.log({Instance:i,props:a}),t.value.push({Instance:n.markRaw(i),props:a})}function o(i){t.value=t.value.filter(({Instance:a})=>a!==i)}return n.provide(m,{render:s,vanish:o}),()=>{var i;return n.h(n.Fragment,[...t.value.map(({Instance:a,props:l},c)=>n.h(a,{...l,key:c})),(i=r.default)==null?void 0:i.call(r)])}}});exports.OverlaysProvider=x;exports.useExtendOverlay=b;exports.useOverlayInject=O;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@vueuse/core"),g=require("../shared/index.cjs"),T=require("../../focus-trap/dist/focus-trap.esm.cjs"),a=require("vue");function y(l,s={}){let e;const{immediate:f,...v}=s,u=a.shallowRef(!1),c=a.shallowRef(!1),n=t=>e&&e.activate(t),i=t=>e&&e.deactivate(t),p=()=>{e&&(e.pause(),c.value=!0)},d=()=>{e&&(e.unpause(),c.value=!1)},h=a.computed(()=>{const t=a.toValue(l);return o.toArray(t).map(m=>{const r=a.toValue(m);return typeof r=="string"?r:o.unrefElement(r)}).filter(g.notNullish)});return a.watch(h,t=>{t.length&&(e=T.createFocusTrap(t,{...v,onActivate(){u.value=!0,s.onActivate&&s.onActivate()},onDeactivate(){u.value=!1,s.onDeactivate&&s.onDeactivate()}}),f&&n())},{flush:"post"}),o.tryOnScopeDispose(()=>i()),{hasFocus:u,isPaused:c,activate:n,deactivate:i,pause:p,unpause:d}}exports.useFocusTrap=y;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const o=e=>e!=null;exports.notNullish=o;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var or=Object.defineProperty,lr=(r,t)=>{for(var e in t)or(r,e,{get:t[e],enumerable:!0})},x={hsl:["h","s","l"],oklab:["l","a","b"],oklch:["l","c","h"],rgb:["r","g","b"]},sr=["hsl","oklab","oklch","rgb"],q=Math.PI/180,M={l:[.3963377773761749,.2158037573099136],m:[-.1055613458156586,-.0638541728258133],s:[-.0894841775298119,-1.2914855480194092]},f={l:[.4122214708,.5363325363,.0514459929],m:[.2119034982,.6806995451,.1073969566],s:[.0883024619,.2817188376,.6299787005]},g={l:[.2104542553,.793617785,.0040720468],a:[1.9779984951,2.428592205,.4505937099],b:[.0259040371,.7827717662,.808675766]},k={r:[4.076741636075958,-3.307711539258063,.2309699031821043],g:[-1.2684379732850315,2.609757349287688,-.341319376002657],b:[-.0041960761386756,-.7034186179359362,1.7076146940746117]},F=5,cr=180/Math.PI,L={inputHex:"input is required and must be a hex",invalid:"invalid input"};function i(r,t){if(r)return;if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error("invariant requires an error message argument");const e=t?new Error(t):new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");throw e.name="colorizr",e}function d(r){return ar(r)?/^#([\da-f]{3,4}|[\da-f]{6,8})$/i.test(r):!1}function V(r){if(!S(r))return!1;const t=Object.entries(r);return!!t.length&&t.every(([e,n])=>e==="h"?n>=0&&n<=360:e==="alpha"?n>=0&&n<=1:x.hsl.includes(e)&&n>=0&&n<=100)}function z(r){if(!S(r))return!1;const t=Object.entries(r);return!!t.length&&t.every(([e,n])=>e==="l"?n>=0&&n<=100:e==="alpha"?n>=0&&n<=1:x.oklab.includes(e)&&n>=-1&&n<=1)}function K(r){if(!S(r))return!1;const t=Object.entries(r);return!!t.length&&t.every(([e,n])=>e==="l"?n>=0&&n<=100:e==="alpha"?n>=0&&n<=1:x.oklch.includes(e)&&n>=0&&n<=(e==="h"?360:1))}function A(r){return typeof r=="number"&&!Number.isNaN(r)}function S(r){if(!r)return!1;const{toString:t}=Object.prototype,e=Object.getPrototypeOf(r);return t.call(r)==="[object Object]"&&(e===null||e===Object.getPrototypeOf({}))}function Y(r){if(!S(r))return!1;const t=Object.entries(r);return!!t.length&&t.every(([e,n])=>e==="alpha"?n>=0&&n<=1:x.rgb.includes(e)&&n>=0&&n<=255)}function ar(r,t=!0){const e=typeof r=="string";return t?e&&!!r.trim().length:e}function O(r,t=0,e=100){return Math.min(Math.max(r,t),e)}function B(r,t,e){switch(i(A(r),"Input is not a number"),i(sr.includes(t),`Invalid model${`: ${t}`}`),i(x[t].includes(e),`Invalid key${e?`: ${e}`:""}`),t){case"hsl":return i(x.hsl.includes(e),"Invalid key"),["l","s"].includes(e)?O(r):O(r,0,360);case"rgb":return i(x.rgb.includes(e),"Invalid key"),O(r,0,255);default:throw new Error("Invalid inputs")}}function h(r,t){const e=x[t],n={hsl:V,oklab:z,oklch:K,rgb:Y};i(S(r)||Array.isArray(r),L.invalid);const o=Array.isArray(r)?{[e[0]]:r[0],[e[1]]:r[1],[e[2]]:r[2]}:r;return i(n[t](o),`invalid ${t} color`),o}function w(r,t=F,e=!0){const n=new Map(Object.entries(r));for(const[o,l]of n.entries())n.set(o,u(l,t,e));return Object.fromEntries(n)}function u(r,t=2,e=!0){if(!A(r)||r===0)return 0;if(e){const c=10**t;return Math.round(r*c)/c}const n=Math.abs(r);let o=Math.abs(Math.ceil(Math.log(n)/Math.LN10));o===0?o=2:o>t&&(o=t);let l=t-(o<0?0:o);l<=1&&t>1?l=2:(l>t||l===0)&&(l=t);const s=10**l;return Math.round(r*s)/s}var hr={};lr(hr,{hex2hsl:()=>J,hex2oklab:()=>Q,hex2oklch:()=>U,hex2rgb:()=>j,hsl2hex:()=>W,hsl2oklab:()=>X,hsl2oklch:()=>Z,hsl2rgb:()=>I,oklab2hex:()=>rr,oklab2hsl:()=>tr,oklab2oklch:()=>C,oklab2rgb:()=>N,oklch2hex:()=>er,oklch2hsl:()=>nr,oklch2oklab:()=>T,oklch2rgb:()=>y,rgb2hex:()=>H,rgb2hsl:()=>_,rgb2oklab:()=>E,rgb2oklch:()=>$});function p(r){i(d(r),L.inputHex);let t=r.replace("#","");if(t.length===3||t.length===4){const n=[...t];t="",n.forEach(o=>{t+=`${o}${o}`})}const e=`#${t}`;return i(d(e),"invalid hex"),e}function j(r){i(d(r),L.inputHex);const t=p(r).slice(1);return{r:parseInt(t.charAt(0)+t.charAt(1),16),g:parseInt(t.charAt(2)+t.charAt(3),16),b:parseInt(t.charAt(4)+t.charAt(5),16)}}function _(r){const t=h(r,"rgb"),e=B(t.r,"rgb","r")/255,n=B(t.g,"rgb","g")/255,o=B(t.b,"rgb","b")/255,l=Math.min(e,n,o),s=Math.max(e,n,o),c=s-l;let a=0,b;const v=(s+l)/2;let m;switch(s){case e:m=c?(n-o)/c:0,a=60*m;break;case n:m=(o-e)/c,a=60*m+120;break;case o:m=(e-n)/c,a=60*m+240;break}return a<0&&(a=360+a),l===s?b=0:b=v<.5?c/(2*v):c/(2-2*v),{h:Math.abs(+(a%360).toFixed(2)),s:+(b*100).toFixed(2),l:+(v*100).toFixed(2)}}function J(r){return i(d(r),L.inputHex),_(j(r))}var{cbrt:P,sign:ir}=Math;function R(r){const t=Math.abs(r);return t<.04045?r/12.92:(ir(r)||1)*((t+.055)/1.055)**2.4}function E(r,t=F){const e=h(r,"rgb"),[n,o,l]=[R(e.r/255),R(e.g/255),R(e.b/255)],s=P(f.l[0]*n+f.l[1]*o+f.l[2]*l),c=P(f.m[0]*n+f.m[1]*o+f.m[2]*l),a=P(f.s[0]*n+f.s[1]*o+f.s[2]*l),b={l:g.l[0]*s+g.l[1]*c-g.l[2]*a,a:g.a[0]*s-g.a[1]*c+g.a[2]*a,b:g.b[0]*s+g.b[1]*c-g.b[2]*a};return w(b,t)}function Q(r,t){return i(d(r),L.inputHex),E(j(r),t)}var{atan2:br,sqrt:ur}=Math;function C(r,t){const{l:e,a:n,b:o}=w(h(r,"oklab")),l=ur(n**2+o**2);let s=(br(o,n)*cr+360)%360;return u(l*1e4)===0&&(s=0),w({l:e,c:l,h:s},t)}function $(r,t){const e=h(r,"rgb");return C(E(e,t),t)}function U(r,t){return i(d(r),L.inputHex),$(j(r),t)}function G(r,t,e){i(A(r)&&A(t)&&A(e),"point, chroma and h are required");let n=e;return n<0&&(n+=1),n>1&&(n-=1),n<1/6?u(r+(t-r)*6*n,4):n<1/2?u(t,4):n<2/3?u(r+(t-r)*(2/3-n)*6,4):u(r,4)}function I(r){const t=h(r,"hsl"),e=u(t.h)/360,n=u(t.s)/100,o=u(t.l)/100;let l,s,c,a,b;return n===0?(l=o,s=o,c=o):(b=o<.5?o*(1+n):o+n-o*n,a=2*o-b,l=G(a,b,e+1/3),s=G(a,b,e),c=G(a,b,e-1/3)),{r:Math.round(l*255),g:Math.round(s*255),b:Math.round(c*255)}}function H(r){const t=h(r,"rgb");return`#${Object.values(t).map(e=>`0${Math.floor(e).toString(16)}`.slice(-2)).join("")}`}function W(r){const t=h(r,"hsl");return H(I(t))}function X(r,t){const e=h(r,"hsl");return E(I(e),t)}function Z(r,t){const e=h(r,"hsl");return $(I(e),t)}var{abs:fr}=Math;function D(r){const t=fr(r),e=r<0?-1:1;return t>.0031308?e*(t**(1/2.4)*1.055-.055):r*12.92}function N(r,t=0){const{l:e,a:n,b:o}=h(r,"oklab"),l=(e+M.l[0]*n+M.l[1]*o)**3,s=(e+M.m[0]*n+M.m[1]*o)**3,c=(e+M.s[0]*n+M.s[1]*o)**3,a=255*D(k.r[0]*l+k.r[1]*s+k.r[2]*c),b=255*D(k.g[0]*l+k.g[1]*s+k.g[2]*c),v=255*D(k.b[0]*l+k.b[1]*s+k.b[2]*c);return{r:O(u(a,t),0,255),g:O(u(b,t),0,255),b:O(u(v,t),0,255)}}function rr(r){const t=h(r,"oklab");return H(N(t))}function tr(r){const t=h(r,"oklab");return _(N(t))}var{sin:gr,cos:kr}=Math;function T(r,t){let{l:e,c:n,h:o}=h(r,"oklch");return(Number.isNaN(o)||o<0)&&(o=0),w({l:e,a:n*kr(o*q),b:n*gr(o*q)},t)}function y(r,t=0){const e=h(r,"oklch");return N(T(e),t)}function er(r){const t=h(r,"oklch");return H(y(t))}function nr(r){const t=h(r,"oklch");return _(y(t))}exports.formatHex=p;exports.hex2hsl=J;exports.hex2oklab=Q;exports.hex2oklch=U;exports.hex2rgb=j;exports.hsl2hex=W;exports.hsl2oklab=X;exports.hsl2oklch=Z;exports.hsl2rgb=I;exports.isHSL=V;exports.isHex=d;exports.isLAB=z;exports.isLCH=K;exports.isRGB=Y;exports.oklab2hex=rr;exports.oklab2hsl=tr;exports.oklab2oklch=C;exports.oklab2rgb=N;exports.oklch2hex=er;exports.oklch2hsl=nr;exports.oklch2oklab=T;exports.oklch2rgb=y;exports.rgb2hex=H;exports.rgb2hsl=_;exports.rgb2oklab=E;exports.rgb2oklch=$;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../../tabbable/dist/index.esm.cjs");/*!
|
|
2
|
-
* focus-trap 7.6.5
|
|
3
|
-
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
4
|
-
*/function _(r,t){(t==null||t>r.length)&&(t=r.length);for(var o=0,u=Array(t);o<t;o++)u[o]=r[o];return u}function ee(r){if(Array.isArray(r))return _(r)}function te(r,t,o){return(t=oe(t))in r?Object.defineProperty(r,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[t]=o,r}function ae(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function ne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
5
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);t&&(u=u.filter(function(y){return Object.getOwnPropertyDescriptor(r,y).enumerable})),o.push.apply(o,u)}return o}function J(r){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?z(Object(o),!0).forEach(function(u){te(r,u,o[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):z(Object(o)).forEach(function(u){Object.defineProperty(r,u,Object.getOwnPropertyDescriptor(o,u))})}return r}function re(r){return ee(r)||ae(r)||ue(r)||ne()}function ie(r,t){if(typeof r!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var u=o.call(r,t);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function oe(r){var t=ie(r,"string");return typeof t=="symbol"?t:t+""}function ue(r,t){if(r){if(typeof r=="string")return _(r,t);var o={}.toString.call(r).slice(8,-1);return o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set"?Array.from(r):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_(r,t):void 0}}var Q={activateTrap:function(t,o){if(t.length>0){var u=t[t.length-1];u!==o&&u._setPausedState(!0)}var y=t.indexOf(o);y===-1||t.splice(y,1),t.push(o)},deactivateTrap:function(t,o){var u=t.indexOf(o);u!==-1&&t.splice(u,1),t.length>0&&!t[t.length-1]._isManuallyPaused()&&t[t.length-1]._setPausedState(!1)}},se=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},ce=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},K=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},le=function(t){return K(t)&&!t.shiftKey},fe=function(t){return K(t)&&t.shiftKey},X=function(t){return setTimeout(t,0)},R=function(t){for(var o=arguments.length,u=new Array(o>1?o-1:0),y=1;y<o;y++)u[y-1]=arguments[y];return typeof t=="function"?t.apply(void 0,u):t},j=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},de=[],ve=function(t,o){var u=(o==null?void 0:o.document)||document,y=(o==null?void 0:o.trapStack)||de,f=J({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:le,isKeyBackward:fe},o),n={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},g,h=function(e,a,i){return e&&e[a]!==void 0?e[a]:f[i||a]},N=function(e,a){var i=typeof(a==null?void 0:a.composedPath)=="function"?a.composedPath():void 0;return n.containerGroups.findIndex(function(c){var l=c.container,v=c.tabbableNodes;return l.contains(e)||(i==null?void 0:i.includes(l))||v.find(function(s){return s===e})})},k=function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=a.hasFallback,c=i===void 0?!1:i,l=a.params,v=l===void 0?[]:l,s=f[e];if(typeof s=="function"&&(s=s.apply(void 0,re(v))),s===!0&&(s=void 0),!s){if(s===void 0||s===!1)return s;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var b=s;if(typeof s=="string"){try{b=u.querySelector(s)}catch(p){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(p.message,'"'))}if(!b&&!c)throw new Error("`".concat(e,"` as selector refers to no known node"))}return b},E=function(){var e=k("initialFocus",{hasFallback:!0});if(e===!1)return!1;if(e===void 0||e&&!m.isFocusable(e,f.tabbableOptions))if(N(u.activeElement)>=0)e=u.activeElement;else{var a=n.tabbableGroups[0],i=a&&a.firstTabbableNode;e=i||k("fallbackFocus")}else e===null&&(e=k("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},P=function(){if(n.containerGroups=n.containers.map(function(e){var a=m.tabbable(e,f.tabbableOptions),i=m.focusable(e,f.tabbableOptions),c=a.length>0?a[0]:void 0,l=a.length>0?a[a.length-1]:void 0,v=i.find(function(p){return m.isTabbable(p)}),s=i.slice().reverse().find(function(p){return m.isTabbable(p)}),b=!!a.find(function(p){return m.getTabIndex(p)>0});return{container:e,tabbableNodes:a,focusableNodes:i,posTabIndexesFound:b,firstTabbableNode:c,lastTabbableNode:l,firstDomTabbableNode:v,lastDomTabbableNode:s,nextTabbableNode:function(T){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,F=a.indexOf(T);return F<0?O?i.slice(i.indexOf(T)+1).find(function(A){return m.isTabbable(A)}):i.slice(0,i.indexOf(T)).reverse().find(function(A){return m.isTabbable(A)}):a[F+(O?1:-1)]}}}),n.tabbableGroups=n.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),n.tabbableGroups.length<=0&&!k("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(n.containerGroups.find(function(e){return e.posTabIndexesFound})&&n.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},L=function(e){var a=e.activeElement;if(a)return a.shadowRoot&&a.shadowRoot.activeElement!==null?L(a.shadowRoot):a},w=function(e){if(e!==!1&&e!==L(document)){if(!e||!e.focus){w(E());return}e.focus({preventScroll:!!f.preventScroll}),n.mostRecentlyFocusedNode=e,se(e)&&e.select()}},x=function(e){var a=k("setReturnFocus",{params:[e]});return a||(a===!1?!1:e)},G=function(e){var a=e.target,i=e.event,c=e.isBackward,l=c===void 0?!1:c;a=a||j(i),P();var v=null;if(n.tabbableGroups.length>0){var s=N(a,i),b=s>=0?n.containerGroups[s]:void 0;if(s<0)l?v=n.tabbableGroups[n.tabbableGroups.length-1].lastTabbableNode:v=n.tabbableGroups[0].firstTabbableNode;else if(l){var p=n.tabbableGroups.findIndex(function(C){var S=C.firstTabbableNode;return a===S});if(p<0&&(b.container===a||m.isFocusable(a,f.tabbableOptions)&&!m.isTabbable(a,f.tabbableOptions)&&!b.nextTabbableNode(a,!1))&&(p=s),p>=0){var T=p===0?n.tabbableGroups.length-1:p-1,O=n.tabbableGroups[T];v=m.getTabIndex(a)>=0?O.lastTabbableNode:O.lastDomTabbableNode}else K(i)||(v=b.nextTabbableNode(a,!1))}else{var F=n.tabbableGroups.findIndex(function(C){var S=C.lastTabbableNode;return a===S});if(F<0&&(b.container===a||m.isFocusable(a,f.tabbableOptions)&&!m.isTabbable(a,f.tabbableOptions)&&!b.nextTabbableNode(a))&&(F=s),F>=0){var A=F===n.tabbableGroups.length-1?0:F+1,W=n.tabbableGroups[A];v=m.getTabIndex(a)>=0?W.firstTabbableNode:W.firstDomTabbableNode}else K(i)||(v=b.nextTabbableNode(a))}}else v=k("fallbackFocus");return v},I=function(e){var a=j(e);if(!(N(a,e)>=0)){if(R(f.clickOutsideDeactivates,e)){g.deactivate({returnFocus:f.returnFocusOnDeactivate});return}R(f.allowOutsideClick,e)||e.preventDefault()}},M=function(e){var a=j(e),i=N(a,e)>=0;if(i||a instanceof Document)i&&(n.mostRecentlyFocusedNode=a);else{e.stopImmediatePropagation();var c,l=!0;if(n.mostRecentlyFocusedNode)if(m.getTabIndex(n.mostRecentlyFocusedNode)>0){var v=N(n.mostRecentlyFocusedNode),s=n.containerGroups[v].tabbableNodes;if(s.length>0){var b=s.findIndex(function(p){return p===n.mostRecentlyFocusedNode});b>=0&&(f.isKeyForward(n.recentNavEvent)?b+1<s.length&&(c=s[b+1],l=!1):b-1>=0&&(c=s[b-1],l=!1))}}else n.containerGroups.some(function(p){return p.tabbableNodes.some(function(T){return m.getTabIndex(T)>0})})||(l=!1);else l=!1;l&&(c=G({target:n.mostRecentlyFocusedNode,isBackward:f.isKeyBackward(n.recentNavEvent)})),w(c||n.mostRecentlyFocusedNode||E())}n.recentNavEvent=void 0},Z=function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n.recentNavEvent=e;var i=G({event:e,isBackward:a});i&&(K(e)&&e.preventDefault(),w(i))},$=function(e){(f.isKeyForward(e)||f.isKeyBackward(e))&&Z(e,f.isKeyBackward(e))},q=function(e){ce(e)&&R(f.escapeDeactivates,e)!==!1&&(e.preventDefault(),g.deactivate())},H=function(e){var a=j(e);N(a,e)>=0||R(f.clickOutsideDeactivates,e)||R(f.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},Y=function(){if(n.active)return Q.activateTrap(y,g),n.delayInitialFocusTimer=f.delayInitialFocus?X(function(){w(E())}):w(E()),u.addEventListener("focusin",M,!0),u.addEventListener("mousedown",I,{capture:!0,passive:!1}),u.addEventListener("touchstart",I,{capture:!0,passive:!1}),u.addEventListener("click",H,{capture:!0,passive:!1}),u.addEventListener("keydown",$,{capture:!0,passive:!1}),u.addEventListener("keydown",q),g},V=function(){if(n.active)return u.removeEventListener("focusin",M,!0),u.removeEventListener("mousedown",I,!0),u.removeEventListener("touchstart",I,!0),u.removeEventListener("click",H,!0),u.removeEventListener("keydown",$,!0),u.removeEventListener("keydown",q),g},U=function(e){var a=e.some(function(i){var c=Array.from(i.removedNodes);return c.some(function(l){return l===n.mostRecentlyFocusedNode})});a&&w(E())},B=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(U):void 0,D=function(){B&&(B.disconnect(),n.active&&!n.paused&&n.containers.map(function(e){B.observe(e,{subtree:!0,childList:!0})}))};return g={get active(){return n.active},get paused(){return n.paused},activate:function(e){if(n.active)return this;var a=h(e,"onActivate"),i=h(e,"onPostActivate"),c=h(e,"checkCanFocusTrap");c||P(),n.active=!0,n.paused=!1,n.nodeFocusedBeforeActivation=L(u),a==null||a();var l=function(){c&&P(),Y(),D(),i==null||i()};return c?(c(n.containers.concat()).then(l,l),this):(l(),this)},deactivate:function(e){if(!n.active)return this;var a=J({onDeactivate:f.onDeactivate,onPostDeactivate:f.onPostDeactivate,checkCanReturnFocus:f.checkCanReturnFocus},e);clearTimeout(n.delayInitialFocusTimer),n.delayInitialFocusTimer=void 0,V(),n.active=!1,n.paused=!1,D(),Q.deactivateTrap(y,g);var i=h(a,"onDeactivate"),c=h(a,"onPostDeactivate"),l=h(a,"checkCanReturnFocus"),v=h(a,"returnFocus","returnFocusOnDeactivate");i==null||i();var s=function(){X(function(){v&&w(x(n.nodeFocusedBeforeActivation)),c==null||c()})};return v&&l?(l(x(n.nodeFocusedBeforeActivation)).then(s,s),this):(s(),this)},pause:function(e){return n.active?(n.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return n.active?(n.manuallyPaused=!1,y[y.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var a=[].concat(e).filter(Boolean);return n.containers=a.map(function(i){return typeof i=="string"?u.querySelector(i):i}),n.active&&P(),D(),this}},Object.defineProperties(g,{_isManuallyPaused:{value:function(){return n.manuallyPaused}},_setPausedState:{value:function(e,a){if(n.paused===e)return this;if(n.paused=e,e){var i=h(a,"onPause"),c=h(a,"onPostPause");i==null||i(),V(),D(),c==null||c()}else{var l=h(a,"onUnpause"),v=h(a,"onPostUnpause");l==null||l(),P(),Y(),D(),v==null||v()}return this}}}),g.updateContainerElements(t),g};exports.createFocusTrap=ve;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(e){return e.toLowerCase()}exports.lowerCase=o;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../../lower-case/dist.es2015/index.cjs");var p=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],A=/[^A-Z0-9]+/gi;function R(i,e){e===void 0&&(e={});for(var r=e.splitRegexp,n=r===void 0?p:r,t=e.stripRegexp,u=t===void 0?A:t,d=e.transform,v=d===void 0?f.lowerCase:d,s=e.delimiter,o=s===void 0?" ":s,a=g(g(i,n,"$1\0$2"),u,"\0"),l=0,c=a.length;a.charAt(l)==="\0";)l++;for(;a.charAt(c-1)==="\0";)c--;return a.slice(l,c).split("\0").map(v).join(o)}function g(i,e,r){return e instanceof RegExp?i.replace(e,r):e.reduce(function(n,t){return n.replace(t,r)},i)}exports.noCase=R;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../tslib/tslib.es6.cjs"),i=require("../../no-case/dist.es2015/index.cjs");function t(e,r){var a=e.charAt(0),s=e.substr(1).toLowerCase();return r>0&&a>="0"&&a<="9"?"_"+a+s:""+a.toUpperCase()+s}function o(e,r){return r===void 0&&(r={}),i.noCase(e,n.__assign({delimiter:"",transform:t},r))}exports.pascalCase=o;exports.pascalCaseTransform=t;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!
|
|
2
|
-
* tabbable 6.2.0
|
|
3
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
|
-
*/var w=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],v=w.join(","),I=typeof Element>"u",o=I?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,b=!I&&Element.prototype.getRootNode?function(i){var t;return i==null||(t=i.getRootNode)===null||t===void 0?void 0:t.call(i)}:function(i){return i==null?void 0:i.ownerDocument},h=function i(t,e){var r;e===void 0&&(e=!0);var a=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),l=a===""||a==="true",n=l||e&&t&&i(t.parentNode);return n},A=function(t){var e,r=t==null||(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"contenteditable");return r===""||r==="true"},m=function(t,e,r){if(h(t))return[];var a=Array.prototype.slice.apply(t.querySelectorAll(v));return e&&o.call(t,v)&&a.unshift(t),a=a.filter(r),a},N=function i(t,e,r){for(var a=[],l=Array.from(t);l.length;){var n=l.shift();if(!h(n,!1))if(n.tagName==="SLOT"){var u=n.assignedElements(),c=u.length?u:n.children,s=i(c,!0,r);r.flatten?a.push.apply(a,s):a.push({scopeParent:n,candidates:s})}else{var f=o.call(n,v);f&&r.filter(n)&&(e||!t.includes(n))&&a.push(n);var d=n.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(n),E=!h(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(n));if(d&&E){var p=i(d===!0?n.children:d.children,!0,r);r.flatten?a.push.apply(a,p):a.push({scopeParent:n,candidates:p})}else l.unshift.apply(l,n.children)}}return a},R=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},y=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||A(t))&&!R(t)?0:t.tabIndex},x=function(t,e){var r=y(t);return r<0&&e&&!R(t)?0:r},O=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},C=function(t){return t.tagName==="INPUT"},F=function(t){return C(t)&&t.type==="hidden"},D=function(t){var e=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return e},M=function(t,e){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===e)return t[r]},k=function(t){if(!t.name)return!0;var e=t.form||b(t),r=function(u){return e.querySelectorAll('input[type="radio"][name="'+u+'"]')},a;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")a=r(window.CSS.escape(t.name));else try{a=r(t.name)}catch(n){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",n.message),!1}var l=M(a,t.form);return!l||l===t},L=function(t){return C(t)&&t.type==="radio"},P=function(t){return L(t)&&!k(t)},B=function(t){var e,r=t&&b(t),a=(e=r)===null||e===void 0?void 0:e.host,l=!1;if(r&&r!==t){var n,u,c;for(l=!!((n=a)!==null&&n!==void 0&&(u=n.ownerDocument)!==null&&u!==void 0&&u.contains(a)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!l&&a;){var s,f,d;r=b(a),a=(s=r)===null||s===void 0?void 0:s.host,l=!!((f=a)!==null&&f!==void 0&&(d=f.ownerDocument)!==null&&d!==void 0&&d.contains(a))}}return l},T=function(t){var e=t.getBoundingClientRect(),r=e.width,a=e.height;return r===0&&a===0},q=function(t,e){var r=e.displayCheck,a=e.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var l=o.call(t,"details>summary:first-of-type"),n=l?t.parentElement:t;if(o.call(n,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof a=="function"){for(var u=t;t;){var c=t.parentElement,s=b(t);if(c&&!c.shadowRoot&&a(c)===!0)return T(t);t.assignedSlot?t=t.assignedSlot:!c&&s!==t.ownerDocument?t=s.host:t=c}t=u}if(B(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return T(t);return!1},U=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if(e.tagName==="FIELDSET"&&e.disabled){for(var r=0;r<e.children.length;r++){var a=e.children.item(r);if(a.tagName==="LEGEND")return o.call(e,"fieldset[disabled] *")?!0:!a.contains(t)}return!0}e=e.parentElement}return!1},g=function(t,e){return!(e.disabled||h(e)||F(e)||q(e,t)||D(e)||U(e))},S=function(t,e){return!(P(e)||y(e)<0||!g(t,e))},V=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},j=function i(t){var e=[],r=[];return t.forEach(function(a,l){var n=!!a.scopeParent,u=n?a.scopeParent:a,c=x(u,n),s=n?i(a.candidates):u;c===0?n?e.push.apply(e,s):e.push(u):r.push({documentOrder:l,tabIndex:c,item:a,isScope:n,content:s})}),r.sort(O).reduce(function(a,l){return l.isScope?a.push.apply(a,l.content):a.push(l.content),a},[]).concat(e)},W=function(t,e){e=e||{};var r;return e.getShadowRoot?r=N([t],e.includeContainer,{filter:S.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:V}):r=m(t,e.includeContainer,S.bind(null,e)),j(r)},Z=function(t,e){e=e||{};var r;return e.getShadowRoot?r=N([t],e.includeContainer,{filter:g.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):r=m(t,e.includeContainer,g.bind(null,e)),r},z=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return o.call(t,v)===!1?!1:S(e,t)},G=w.concat("iframe").join(","),X=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return o.call(t,G)===!1?!1:g(e,t)};exports.focusable=Z;exports.getTabIndex=y;exports.isFocusable=X;exports.isTabbable=z;exports.tabbable=W;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.__assign=function(){return exports.__assign=Object.assign||function(s){for(var r,e=1,t=arguments.length;e<t;e++){r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(s[n]=r[n])}return s},exports.__assign.apply(this,arguments)};
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
var p = "unified-overlay";
|
|
2
|
-
function b(e = "", n = document.body) {
|
|
3
|
-
const t = document.createElement("div");
|
|
4
|
-
return e && (t.id = e), n !== !1 && n.appendChild(t), t;
|
|
5
|
-
}
|
|
6
|
-
var i = {
|
|
7
|
-
position: null,
|
|
8
|
-
spaces: {}
|
|
9
|
-
};
|
|
10
|
-
function h(e = p, n = !0) {
|
|
11
|
-
return i.spaces[e] || (i.spaces[e] = 0), n ? `${e}--${++i.spaces[e]}` : e;
|
|
12
|
-
}
|
|
13
|
-
function C(e = p) {
|
|
14
|
-
return i.spaces[e] || 0;
|
|
15
|
-
}
|
|
16
|
-
function E() {
|
|
17
|
-
let e, n;
|
|
18
|
-
const t = new Promise((r, s) => {
|
|
19
|
-
e = r, n = s;
|
|
20
|
-
});
|
|
21
|
-
return t.resolve = (r) => (e(r), t), t.reject = n, t;
|
|
22
|
-
}
|
|
23
|
-
function P() {
|
|
24
|
-
typeof window > "u" && typeof document > "u" || document.addEventListener("click", (e) => {
|
|
25
|
-
if (e.target instanceof Element) {
|
|
26
|
-
const { left: n, top: t, width: r, height: s } = e.target.getBoundingClientRect();
|
|
27
|
-
n > 0 || t > 0 ? i.position = { x: n + r / 2, y: t + s / 2 } : i.position = null;
|
|
28
|
-
} else
|
|
29
|
-
i.position = null;
|
|
30
|
-
setTimeout(() => i.position = null, 64);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
function j(e, n = {}) {
|
|
34
|
-
const { container: t } = n;
|
|
35
|
-
function r(d, a) {
|
|
36
|
-
function f(c, o) {
|
|
37
|
-
const u = E(), m = h(o.id, o.autoIncrement), g = C(o.id), w = t ? o.root : document.body, x = b(m, w);
|
|
38
|
-
return e(d, c, Object.assign(o, {
|
|
39
|
-
position: i.position,
|
|
40
|
-
id: m,
|
|
41
|
-
deferred: u,
|
|
42
|
-
index: g,
|
|
43
|
-
container: x
|
|
44
|
-
})), u;
|
|
45
|
-
}
|
|
46
|
-
let l;
|
|
47
|
-
function y(c, o) {
|
|
48
|
-
return l || (l = f(c, o), l.finally(() => l = void 0)), l;
|
|
49
|
-
}
|
|
50
|
-
function v(c, o) {
|
|
51
|
-
const u = { ...a, ...o };
|
|
52
|
-
return u.only ? y(c, u) : f(c, u);
|
|
53
|
-
}
|
|
54
|
-
return v;
|
|
55
|
-
}
|
|
56
|
-
function s(d, a, f) {
|
|
57
|
-
return r(d, f)(a);
|
|
58
|
-
}
|
|
59
|
-
return { define: r, render: s };
|
|
60
|
-
}
|
|
61
|
-
P();
|
|
62
|
-
function I() {
|
|
63
|
-
}
|
|
64
|
-
function k(e) {
|
|
65
|
-
return new Promise((n) => setTimeout(n, e));
|
|
66
|
-
}
|
|
67
|
-
export {
|
|
68
|
-
p as UnifiedOverlayProviderID,
|
|
69
|
-
j as createConstructor,
|
|
70
|
-
E as createDeferred,
|
|
71
|
-
b as defineGlobalElement,
|
|
72
|
-
h as defineName,
|
|
73
|
-
k as delay,
|
|
74
|
-
C as getIndex,
|
|
75
|
-
I as noop
|
|
76
|
-
};
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { defineComponent as f, h as u, ref as p, provide as m, Fragment as g, markRaw as x, inject as h, onMounted as I, getCurrentInstance as O, createApp as P } from "vue";
|
|
2
|
-
import { useVModel as C } from "@vueuse/core";
|
|
3
|
-
import { createConstructor as y, noop as S, delay as w } from "../../core/dist/index.js";
|
|
4
|
-
import { pascalCase as j } from "../../../pascal-case/dist.es2015/index.js";
|
|
5
|
-
var E = {
|
|
6
|
-
appContext: null
|
|
7
|
-
}, d = Symbol("OverlayScripts"), _ = Symbol("OverlayInstances");
|
|
8
|
-
function D(e = {}) {
|
|
9
|
-
const { duration: t = 0, immediate: n = !0, model: o = "visible", automatic: i = !0 } = e, r = h(d, k(o, e)), s = Reflect.get(r, "in_dec"), { visible: c, deferred: a, vanish: l } = r;
|
|
10
|
-
async function v() {
|
|
11
|
-
return c.value = !1, await w(t), l == null || l(), Promise.resolve();
|
|
12
|
-
}
|
|
13
|
-
return !s && i && (a == null || a.then(v).catch(v)), !s && n && I(() => c.value = !0), m(d, null), r;
|
|
14
|
-
}
|
|
15
|
-
function k(e, t = {}) {
|
|
16
|
-
const { reject: n = "reject", resolve: o = "resolve" } = t.events || {}, i = O();
|
|
17
|
-
if (!i)
|
|
18
|
-
throw new Error("Please use useExtendOverlay in component setup");
|
|
19
|
-
const r = C(i.props, e, i.emit, { passive: !0 });
|
|
20
|
-
return {
|
|
21
|
-
reject: (a) => {
|
|
22
|
-
i == null || i.emit(n, a), r.value = !1;
|
|
23
|
-
},
|
|
24
|
-
resolve: (a) => {
|
|
25
|
-
i == null || i.emit(o, a), r.value = !1;
|
|
26
|
-
},
|
|
27
|
-
vanish: S,
|
|
28
|
-
visible: r,
|
|
29
|
-
in_dec: !0
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
function b(e) {
|
|
33
|
-
const { reject: t } = e.deferred || {}, { vanish: n } = e, o = p(!1);
|
|
34
|
-
function i() {
|
|
35
|
-
n == null || n(), t == null || t();
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
resolve: e.deferred.resolve,
|
|
39
|
-
reject: e.deferred.reject,
|
|
40
|
-
deferred: e.deferred,
|
|
41
|
-
visible: o,
|
|
42
|
-
vanish: i
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
var { define: F } = y((e, t, n) => {
|
|
46
|
-
const { id: o, deferred: i, render: r, vanish: s } = n, c = f({
|
|
47
|
-
name: j(o),
|
|
48
|
-
setup: () => {
|
|
49
|
-
const l = b({ vanish: a, deferred: i });
|
|
50
|
-
m(d, l);
|
|
51
|
-
},
|
|
52
|
-
render: () => u(e, t)
|
|
53
|
-
});
|
|
54
|
-
function a() {
|
|
55
|
-
s(c);
|
|
56
|
-
}
|
|
57
|
-
r(c, t);
|
|
58
|
-
}, { container: !1 });
|
|
59
|
-
function N(e) {
|
|
60
|
-
const { render: t, vanish: n } = h(_);
|
|
61
|
-
return F(e, { render: t, vanish: n });
|
|
62
|
-
}
|
|
63
|
-
function K(e, t) {
|
|
64
|
-
var n;
|
|
65
|
-
const o = (t == null ? void 0 : t.app) || ((n = E.appContext) == null ? void 0 : n.app);
|
|
66
|
-
o && (e.config.globalProperties = o.config.globalProperties, Object.assign(e._context, o._context));
|
|
67
|
-
}
|
|
68
|
-
y((e, t, n) => {
|
|
69
|
-
const { container: o, id: i, deferred: r, appContext: s } = n;
|
|
70
|
-
function c() {
|
|
71
|
-
l.unmount(), o.remove();
|
|
72
|
-
}
|
|
73
|
-
const a = f({
|
|
74
|
-
name: j(i),
|
|
75
|
-
setup: () => {
|
|
76
|
-
const v = b({
|
|
77
|
-
vanish: c,
|
|
78
|
-
deferred: r
|
|
79
|
-
});
|
|
80
|
-
m(d, v);
|
|
81
|
-
},
|
|
82
|
-
render: () => u(e, t)
|
|
83
|
-
}), l = P(a);
|
|
84
|
-
return K(l, s), l.mount(o), c;
|
|
85
|
-
});
|
|
86
|
-
f({
|
|
87
|
-
name: "Field",
|
|
88
|
-
props: {
|
|
89
|
-
is: {
|
|
90
|
-
type: [String, Number, Object],
|
|
91
|
-
default: ""
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
setup(e) {
|
|
95
|
-
return () => typeof e.is == "string" || typeof e.is == "number" ? e.is : e.is ? u(e.is) : null;
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
var V = f({
|
|
99
|
-
setup(e, { slots: t }) {
|
|
100
|
-
const n = p([]);
|
|
101
|
-
function o(r, s) {
|
|
102
|
-
console.log({ Instance: r, props: s }), n.value.push({ Instance: x(r), props: s });
|
|
103
|
-
}
|
|
104
|
-
function i(r) {
|
|
105
|
-
n.value = n.value.filter(({ Instance: s }) => s !== r);
|
|
106
|
-
}
|
|
107
|
-
return m(_, { render: o, vanish: i }), () => {
|
|
108
|
-
var r;
|
|
109
|
-
return u(g, [
|
|
110
|
-
...n.value.map(
|
|
111
|
-
({ Instance: s, props: c }, a) => u(s, { ...c, key: a })
|
|
112
|
-
),
|
|
113
|
-
(r = t.default) == null ? void 0 : r.call(t)
|
|
114
|
-
]);
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
export {
|
|
119
|
-
V as OverlaysProvider,
|
|
120
|
-
D as useExtendOverlay,
|
|
121
|
-
N as useOverlayInject
|
|
122
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { toArray as g, unrefElement as A, tryOnScopeDispose as D } from "@vueuse/core";
|
|
2
|
-
import { notNullish as y } from "../shared/index.js";
|
|
3
|
-
import { createFocusTrap as F } from "../../focus-trap/dist/focus-trap.esm.js";
|
|
4
|
-
import { shallowRef as n, computed as T, toValue as i, watch as w } from "vue";
|
|
5
|
-
function N(f, a = {}) {
|
|
6
|
-
let t;
|
|
7
|
-
const { immediate: l, ...p } = a, o = n(!1), r = n(!1), c = (e) => t && t.activate(e), u = (e) => t && t.deactivate(e), v = () => {
|
|
8
|
-
t && (t.pause(), r.value = !0);
|
|
9
|
-
}, m = () => {
|
|
10
|
-
t && (t.unpause(), r.value = !1);
|
|
11
|
-
}, h = T(() => {
|
|
12
|
-
const e = i(f);
|
|
13
|
-
return g(e).map((d) => {
|
|
14
|
-
const s = i(d);
|
|
15
|
-
return typeof s == "string" ? s : A(s);
|
|
16
|
-
}).filter(y);
|
|
17
|
-
});
|
|
18
|
-
return w(
|
|
19
|
-
h,
|
|
20
|
-
(e) => {
|
|
21
|
-
e.length && (t = F(e, {
|
|
22
|
-
...p,
|
|
23
|
-
onActivate() {
|
|
24
|
-
o.value = !0, a.onActivate && a.onActivate();
|
|
25
|
-
},
|
|
26
|
-
onDeactivate() {
|
|
27
|
-
o.value = !1, a.onDeactivate && a.onDeactivate();
|
|
28
|
-
}
|
|
29
|
-
}), l && c());
|
|
30
|
-
},
|
|
31
|
-
{ flush: "post" }
|
|
32
|
-
), D(() => u()), {
|
|
33
|
-
hasFocus: o,
|
|
34
|
-
isPaused: r,
|
|
35
|
-
activate: c,
|
|
36
|
-
deactivate: u,
|
|
37
|
-
pause: v,
|
|
38
|
-
unpause: m
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
export {
|
|
42
|
-
N as useFocusTrap
|
|
43
|
-
};
|