@duxweb/dvha-pro 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/dialog/dialog.cjs +1 -1
- package/dist/cjs/components/drawer/drawer.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/modal/modal.cjs +1 -1
- 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/drawer.cjs +1 -1
- package/dist/cjs/hooks/table/media.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/@vueuse_integrations@13.3.0_async-validator@4.2.5_axios@1.10.0_focus-trap@7.6.5_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/integrations/useFocusTrap.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/{focus-trap → .pnpm/focus-trap@7.6.5/node_modules/focus-trap}/dist/focus-trap.esm.cjs +1 -1
- 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/page.cjs +1 -1
- package/dist/cjs/pages/login.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/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 +1 -0
- 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 +1 -1
- package/dist/esm/components/dialog/dialog.js +1 -1
- package/dist/esm/components/drawer/drawer.js +1 -1
- package/dist/esm/components/form/pageForm.js +4 -3
- package/dist/esm/components/form/settingForm.js +14 -13
- package/dist/esm/components/layout/list.js +4 -3
- package/dist/esm/components/layout/table.js +4 -3
- package/dist/esm/components/modal/modal.js +1 -1
- 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/drawer.js +4 -3
- package/dist/esm/hooks/table/media.js +4 -3
- 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/{@vueuse → .pnpm/@vueuse_integrations@13.3.0_async-validator@4.2.5_axios@1.10.0_focus-trap@7.6.5_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse}/integrations/useFocusTrap.js +2 -2
- 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/{focus-trap → .pnpm/focus-trap@7.6.5/node_modules/focus-trap}/dist/focus-trap.esm.js +1 -1
- 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 +1 -1
- package/dist/esm/pages/layout/page.js +10 -9
- package/dist/esm/pages/login.js +7 -6
- package/dist/esm/pages/menu/button.js +9 -8
- package/dist/esm/pages/menu/cmd.js +7 -6
- package/dist/esm/pages/menu/main.js +9 -8
- package/dist/esm/pages/menu/mobile.js +12 -11
- package/dist/esm/pages/page404.js +2 -1
- package/dist/esm/pages/pageStatus.js +4 -3
- package/dist/esm/theme/naiveTheme.js +1 -1
- package/dist/esm/theme/uno.css.js +1 -0
- package/dist/types/components/layout/list.d.ts +4 -1
- package/dist/types/components/list/card.d.ts +3 -3
- package/dist/types/components/list/list.d.ts +3 -3
- package/dist/types/hooks/modal.d.ts +1 -1
- package/package.json +17 -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/colorizr/dist/index.cjs +0 -1
- 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/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/colorizr/dist/index.js +0 -318
- 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/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/cjs/node_modules/{@vueuse → .pnpm/@vueuse_shared@13.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse}/shared/index.cjs +0 -0
- /package/dist/cjs/node_modules/{tabbable → .pnpm/tabbable@6.2.0/node_modules/tabbable}/dist/index.esm.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/node_modules/{@vueuse → .pnpm/@vueuse_shared@13.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse}/shared/index.js +0 -0
- /package/dist/esm/node_modules/{tabbable → .pnpm/tabbable@6.2.0/node_modules/tabbable}/dist/index.esm.js +0 -0
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as e, createVNode as r } from "vue";
|
|
2
2
|
import { NDrawer as p } from "naive-ui";
|
|
3
3
|
import "@duxweb/dvha-core";
|
|
4
4
|
import "vue-router";
|
|
5
|
-
import "
|
|
5
|
+
import "@overlastic/vue";
|
|
6
6
|
import "clsx";
|
|
7
7
|
import "jinrishici";
|
|
8
8
|
import "lodash-es";
|
|
9
9
|
import "@vueuse/core";
|
|
10
10
|
import "vee-validate";
|
|
11
11
|
import "@vee-validate/i18n";
|
|
12
|
+
import "colorizr";
|
|
13
|
+
import "vue-command-palette";
|
|
14
|
+
import { DuxMenuMain as m } from "./main.js";
|
|
12
15
|
import "@duxweb/dvha-naiveui";
|
|
13
16
|
import "../page404.js";
|
|
14
|
-
import { useUI as
|
|
15
|
-
|
|
16
|
-
import { DuxMenuMain as i } from "./main.js";
|
|
17
|
-
const U = /* @__PURE__ */ t({
|
|
17
|
+
import { useUI as i } from "../../hooks/ui.js";
|
|
18
|
+
const I = /* @__PURE__ */ e({
|
|
18
19
|
name: "DuxMobileMenu",
|
|
19
20
|
props: {},
|
|
20
21
|
setup(n) {
|
|
21
22
|
const {
|
|
22
23
|
menuMobileCollapsed: o
|
|
23
|
-
} =
|
|
24
|
-
return () =>
|
|
24
|
+
} = i();
|
|
25
|
+
return () => r(p, {
|
|
25
26
|
show: o.value,
|
|
26
|
-
onUpdateShow: (
|
|
27
|
+
onUpdateShow: (t) => o.value = t,
|
|
27
28
|
width: 250,
|
|
28
29
|
placement: "left"
|
|
29
30
|
}, {
|
|
30
|
-
default: () => [
|
|
31
|
+
default: () => [r(m, {
|
|
31
32
|
open: !0
|
|
32
33
|
}, null)]
|
|
33
34
|
});
|
|
34
35
|
}
|
|
35
36
|
});
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
+
I as DuxMobileMenu
|
|
38
39
|
};
|
|
@@ -6,12 +6,13 @@ import "clsx";
|
|
|
6
6
|
import "jinrishici";
|
|
7
7
|
import "lodash-es";
|
|
8
8
|
import { DuxDrawEmpty as f } from "../components/draw/drawEmpty.js";
|
|
9
|
-
import "
|
|
9
|
+
import "@overlastic/vue";
|
|
10
10
|
import "@vueuse/core";
|
|
11
11
|
import "vee-validate";
|
|
12
12
|
import "@duxweb/dvha-naiveui";
|
|
13
13
|
import "pinia";
|
|
14
14
|
import "@vee-validate/i18n";
|
|
15
|
+
import "colorizr";
|
|
15
16
|
import "vue-command-palette";
|
|
16
17
|
import { DuxPageStatus as d } from "./pageStatus.js";
|
|
17
18
|
function g(o) {
|
|
@@ -4,7 +4,7 @@ import "naive-ui";
|
|
|
4
4
|
import "clsx";
|
|
5
5
|
import "jinrishici";
|
|
6
6
|
import "lodash-es";
|
|
7
|
-
import "
|
|
7
|
+
import "@overlastic/vue";
|
|
8
8
|
import "@vueuse/core";
|
|
9
9
|
import "vee-validate";
|
|
10
10
|
import "@duxweb/dvha-core";
|
|
@@ -12,9 +12,10 @@ import "vue-router";
|
|
|
12
12
|
import "@duxweb/dvha-naiveui";
|
|
13
13
|
import "pinia";
|
|
14
14
|
import "@vee-validate/i18n";
|
|
15
|
+
import "colorizr";
|
|
15
16
|
import "vue-command-palette";
|
|
16
17
|
import "./page404.js";
|
|
17
|
-
const
|
|
18
|
+
const b = /* @__PURE__ */ c({
|
|
18
19
|
name: "DuxPageStatus",
|
|
19
20
|
props: {
|
|
20
21
|
title: String,
|
|
@@ -46,5 +47,5 @@ const P = /* @__PURE__ */ c({
|
|
|
46
47
|
}
|
|
47
48
|
});
|
|
48
49
|
export {
|
|
49
|
-
|
|
50
|
+
b as DuxPageStatus
|
|
50
51
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const r = `/* layer: properties */
|
|
2
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*, ::before, ::after, ::backdrop{--un-text-opacity:100%;--un-bg-opacity:100%;--un-divide-y-reverse:0;--un-border-style:solid;--un-divide-x-reverse:0;--un-divide-opacity:100%;--un-shadow-opacity:100%;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-to-opacity:100%;--un-outline-style:solid;--un-fill-opacity:100%;}}
|
|
2
3
|
@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
3
4
|
@property --un-outline-style{syntax:"*";inherits:false;initial-value:solid;}
|
|
4
5
|
@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { JsonSchemaNode } from '@duxweb/dvha-core';
|
|
2
|
-
import type { TablePagination } from '@duxweb/dvha-naiveui';
|
|
3
2
|
import type { PropType } from 'vue';
|
|
4
3
|
import type { UseActionItem } from '../../hooks';
|
|
4
|
+
export interface TablePagination {
|
|
5
|
+
page: number;
|
|
6
|
+
pageSize: number;
|
|
7
|
+
}
|
|
5
8
|
export interface ListPageTools {
|
|
6
9
|
import?: boolean;
|
|
7
10
|
export?: boolean;
|
|
@@ -33,7 +33,7 @@ export declare const DuxCardPage: import("vue").DefineComponent<import("vue").Ex
|
|
|
33
33
|
type: import("vue").PropType<import("@duxweb/dvha-core").JsonSchemaNode[]>;
|
|
34
34
|
};
|
|
35
35
|
pagination: {
|
|
36
|
-
type: import("vue").PropType<boolean | import("
|
|
36
|
+
type: import("vue").PropType<boolean | import("..").TablePagination>;
|
|
37
37
|
default: boolean;
|
|
38
38
|
};
|
|
39
39
|
tabs: {
|
|
@@ -68,7 +68,7 @@ export declare const DuxCardPage: import("vue").DefineComponent<import("vue").Ex
|
|
|
68
68
|
type: import("vue").PropType<import("@duxweb/dvha-core").JsonSchemaNode[]>;
|
|
69
69
|
};
|
|
70
70
|
pagination: {
|
|
71
|
-
type: import("vue").PropType<boolean | import("
|
|
71
|
+
type: import("vue").PropType<boolean | import("..").TablePagination>;
|
|
72
72
|
default: boolean;
|
|
73
73
|
};
|
|
74
74
|
tabs: {
|
|
@@ -90,7 +90,7 @@ export declare const DuxCardPage: import("vue").DefineComponent<import("vue").Ex
|
|
|
90
90
|
}>> & Readonly<{}>, {
|
|
91
91
|
checkable: boolean;
|
|
92
92
|
rowKey: string;
|
|
93
|
-
pagination: boolean | import("
|
|
93
|
+
pagination: boolean | import("..").TablePagination;
|
|
94
94
|
actions: import("../..").UseActionItem[];
|
|
95
95
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
96
96
|
colWidth: {
|
|
@@ -20,7 +20,7 @@ export declare const DuxListPage: import("vue").DefineComponent<{}, () => import
|
|
|
20
20
|
type: import("vue").PropType<import("@duxweb/dvha-core").JsonSchemaNode[]>;
|
|
21
21
|
};
|
|
22
22
|
pagination: {
|
|
23
|
-
type: import("vue").PropType<boolean | import("
|
|
23
|
+
type: import("vue").PropType<boolean | import("..").TablePagination>;
|
|
24
24
|
default: boolean;
|
|
25
25
|
};
|
|
26
26
|
tabs: {
|
|
@@ -55,7 +55,7 @@ export declare const DuxListPage: import("vue").DefineComponent<{}, () => import
|
|
|
55
55
|
type: import("vue").PropType<import("@duxweb/dvha-core").JsonSchemaNode[]>;
|
|
56
56
|
};
|
|
57
57
|
pagination: {
|
|
58
|
-
type: import("vue").PropType<boolean | import("
|
|
58
|
+
type: import("vue").PropType<boolean | import("..").TablePagination>;
|
|
59
59
|
default: boolean;
|
|
60
60
|
};
|
|
61
61
|
tabs: {
|
|
@@ -77,7 +77,7 @@ export declare const DuxListPage: import("vue").DefineComponent<{}, () => import
|
|
|
77
77
|
}>> & Readonly<{}>, {
|
|
78
78
|
checkable: boolean;
|
|
79
79
|
rowKey: string;
|
|
80
|
-
pagination: boolean | import("
|
|
80
|
+
pagination: boolean | import("..").TablePagination;
|
|
81
81
|
actions: import("../..").UseActionItem[];
|
|
82
82
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, SlotsType<{
|
|
83
83
|
default: (props: ListPageSlotProps) => any;
|
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.6",
|
|
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,30 +31,24 @@
|
|
|
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
|
-
"@duxweb/dvha-core": "^0.1.
|
|
46
|
-
"@duxweb/dvha-naiveui": "^1.0.
|
|
35
|
+
"@duxweb/dvha-core": "^0.1.22",
|
|
36
|
+
"@duxweb/dvha-naiveui": "^1.0.11",
|
|
47
37
|
"@iconify-json/tabler": "^1.2.18",
|
|
38
|
+
"@overlastic/vue": "^0.8.1",
|
|
48
39
|
"@unocss/preset-icons": "^66.2.1",
|
|
40
|
+
"@unocss/preset-typography": "^66.2.3",
|
|
49
41
|
"@unocss/runtime": "^66.2.1",
|
|
50
42
|
"@vee-validate/i18n": "^4.15.1",
|
|
51
43
|
"@vee-validate/rules": "^4.15.1",
|
|
52
44
|
"@vueuse/core": "^13.3.0",
|
|
53
45
|
"@vueuse/integrations": "^13.3.0",
|
|
54
46
|
"clsx": "^2.1.1",
|
|
47
|
+
"colorizr": "^3.0.8",
|
|
55
48
|
"jinrishici": "^1.0.6",
|
|
56
49
|
"jsep": "^1.4.0",
|
|
57
50
|
"lodash-es": "^4.17.21",
|
|
58
|
-
"naive-ui": "^2.
|
|
51
|
+
"naive-ui": "^2.42.0",
|
|
59
52
|
"pinia": "^3.0.3",
|
|
60
53
|
"pinia-plugin-persistedstate": "^4.3.0",
|
|
61
54
|
"sass-embedded": "^1.89.1",
|
|
@@ -63,11 +56,19 @@
|
|
|
63
56
|
"vee-validate": "^4.15.1",
|
|
64
57
|
"vue": "^3.5.0",
|
|
65
58
|
"vue-command-palette": "^0.2.3",
|
|
66
|
-
"vue-router": "^4.
|
|
59
|
+
"vue-router": "^4.5.1"
|
|
67
60
|
},
|
|
68
61
|
"devDependencies": {
|
|
69
62
|
"@unocss/cli": "^66.2.1",
|
|
70
63
|
"rimraf": "^6.0.1",
|
|
71
64
|
"vue-tsc": "^2.2.10"
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"clean": "rimraf dist",
|
|
68
|
+
"build": "pnpm run clean && vue-tsc --noEmit && pnpm run build:uno && vite build && pnpm run build:types",
|
|
69
|
+
"build:types": "vue-tsc --declaration --emitDeclarationOnly --outDir dist/types",
|
|
70
|
+
"build:uno": "unocss -c uno.config.ts './src/**/*' -o ./src/theme/uno.css",
|
|
71
|
+
"lint": "eslint .",
|
|
72
|
+
"lint:fix": "eslint . --fix"
|
|
72
73
|
}
|
|
73
|
-
}
|
|
74
|
+
}
|
|
@@ -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"});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 +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 +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
|
-
};
|