@duxweb/dvha-naiveui 1.2.7 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/autoComplete/autoComplete.cjs +1 -1
- package/dist/cjs/components/cascader/cascader.cjs +1 -1
- package/dist/cjs/components/mention/mention.cjs +1 -1
- package/dist/cjs/components/select/select.cjs +1 -1
- package/dist/cjs/components/transfer/transfer.cjs +1 -1
- package/dist/cjs/components/tree/tree.cjs +1 -1
- package/dist/cjs/components/treeSelect/treeSelect.cjs +1 -1
- package/dist/cjs/hooks/menu.cjs +1 -1
- package/dist/cjs/hooks/tab.cjs +1 -1
- package/dist/cjs/hooks/table.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/{@overlastic_vue@0.8.7_typescript@5.9.3 → @overlastic_vue@0.8.7_typescript@6.0.2}/node_modules/@overlastic/vue/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/{@tanstack_vue-query@5.95.2_vue@3.5.31_typescript@5.9.3_ → @tanstack_vue-query@5.95.2_vue@3.5.31_typescript@6.0.2_}/node_modules/@tanstack/vue-query/build/modern/useBaseQuery.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/{@tanstack_vue-query@5.95.2_vue@3.5.31_typescript@5.9.3_ → @tanstack_vue-query@5.95.2_vue@3.5.31_typescript@6.0.2_}/node_modules/@tanstack/vue-query/build/modern/useMutation.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/{@tanstack_vue-query@5.95.2_vue@3.5.31_typescript@5.9.3_ → @tanstack_vue-query@5.95.2_vue@3.5.31_typescript@6.0.2_}/node_modules/@tanstack/vue-query/build/modern/useQueryClient.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/{@tanstack_vue-query@5.95.2_vue@3.5.31_typescript@5.9.3_ → @tanstack_vue-query@5.95.2_vue@3.5.31_typescript@6.0.2_}/node_modules/@tanstack/vue-query/build/modern/utils.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/@vueuse_core@14.2.1_vue@3.5.31_typescript@6.0.2_/node_modules/@vueuse/core/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/@vueuse_shared@14.2.1_vue@3.5.31_typescript@6.0.2_/node_modules/@vueuse/shared/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/pinia@3.0.4_typescript@6.0.2_vue@3.5.31_typescript@6.0.2_/node_modules/pinia/dist/pinia.cjs +5 -1
- package/dist/cjs/node_modules/.pnpm/vue-router@4.6.4_vue@3.5.31_typescript@6.0.2_/node_modules/vue-router/dist/vue-router.cjs +1 -1
- package/dist/cjs/packages/core/dist/esm/components/loader/remote/loader.cjs +1 -1
- package/dist/cjs/packages/core/dist/esm/components/overlay/overlay.cjs +1 -1
- package/dist/cjs/packages/core/dist/esm/hooks/auth.cjs +1 -1
- package/dist/cjs/packages/core/dist/esm/hooks/data.cjs +1 -1
- package/dist/cjs/packages/core/dist/esm/hooks/importCsv.cjs +1 -1
- package/dist/cjs/packages/core/dist/esm/hooks/list.cjs +1 -1
- package/dist/cjs/packages/core/dist/esm/hooks/manage.cjs +1 -1
- package/dist/cjs/packages/core/dist/esm/hooks/menu.cjs +1 -1
- package/dist/cjs/packages/core/dist/esm/hooks/overlay.cjs +1 -1
- package/dist/cjs/packages/core/dist/esm/hooks/upload.cjs +1 -1
- package/dist/cjs/packages/core/dist/esm/main.cjs +1 -1
- package/dist/cjs/packages/core/dist/esm/provider/app.cjs +1 -1
- package/dist/cjs/packages/core/dist/esm/stores/auth.cjs +1 -1
- package/dist/cjs/packages/core/dist/esm/stores/i18n.cjs +1 -1
- package/dist/cjs/packages/core/dist/esm/stores/manage.cjs +1 -1
- package/dist/cjs/packages/core/dist/esm/stores/route.cjs +1 -1
- package/dist/cjs/packages/core/dist/esm/stores/tab.cjs +1 -1
- package/dist/esm/components/autoComplete/autoComplete.js +4 -4
- package/dist/esm/components/cascader/cascader.js +4 -4
- package/dist/esm/components/mention/mention.js +1 -1
- package/dist/esm/components/select/select.js +5 -5
- package/dist/esm/components/transfer/transfer.js +1 -1
- package/dist/esm/components/tree/tree.js +4 -4
- package/dist/esm/components/treeSelect/treeSelect.js +4 -4
- package/dist/esm/hooks/menu.js +6 -6
- package/dist/esm/hooks/tab.js +4 -4
- package/dist/esm/hooks/table.js +6 -6
- package/dist/esm/node_modules/.pnpm/{@overlastic_vue@0.8.7_typescript@5.9.3 → @overlastic_vue@0.8.7_typescript@6.0.2}/node_modules/@overlastic/vue/dist/index.js +2 -2
- package/dist/esm/node_modules/.pnpm/{@tanstack_vue-query@5.95.2_vue@3.5.31_typescript@5.9.3_ → @tanstack_vue-query@5.95.2_vue@3.5.31_typescript@6.0.2_}/node_modules/@tanstack/vue-query/build/modern/useBaseQuery.js +2 -2
- package/dist/esm/node_modules/.pnpm/{@tanstack_vue-query@5.95.2_vue@3.5.31_typescript@5.9.3_ → @tanstack_vue-query@5.95.2_vue@3.5.31_typescript@6.0.2_}/node_modules/@tanstack/vue-query/build/modern/useInfiniteQuery.js +1 -1
- package/dist/esm/node_modules/.pnpm/{@tanstack_vue-query@5.95.2_vue@3.5.31_typescript@5.9.3_ → @tanstack_vue-query@5.95.2_vue@3.5.31_typescript@6.0.2_}/node_modules/@tanstack/vue-query/build/modern/useMutation.js +2 -2
- package/dist/esm/node_modules/.pnpm/{@tanstack_vue-query@5.95.2_vue@3.5.31_typescript@5.9.3_ → @tanstack_vue-query@5.95.2_vue@3.5.31_typescript@6.0.2_}/node_modules/@tanstack/vue-query/build/modern/useQuery.js +1 -1
- package/dist/esm/node_modules/.pnpm/{@tanstack_vue-query@5.95.2_vue@3.5.31_typescript@5.9.3_ → @tanstack_vue-query@5.95.2_vue@3.5.31_typescript@6.0.2_}/node_modules/@tanstack/vue-query/build/modern/useQueryClient.js +2 -2
- package/dist/esm/node_modules/.pnpm/{@tanstack_vue-query@5.95.2_vue@3.5.31_typescript@5.9.3_ → @tanstack_vue-query@5.95.2_vue@3.5.31_typescript@6.0.2_}/node_modules/@tanstack/vue-query/build/modern/utils.js +2 -2
- package/dist/esm/node_modules/.pnpm/@vueuse_core@14.2.1_vue@3.5.31_typescript@6.0.2_/node_modules/@vueuse/core/dist/index.js +101 -19
- package/dist/esm/node_modules/.pnpm/@vueuse_shared@14.2.1_vue@3.5.31_typescript@6.0.2_/node_modules/@vueuse/shared/dist/index.js +92 -24
- package/dist/esm/node_modules/.pnpm/pinia@3.0.4_typescript@6.0.2_vue@3.5.31_typescript@6.0.2_/node_modules/pinia/dist/pinia.js +285 -38
- package/dist/esm/node_modules/.pnpm/vue-router@4.6.4_vue@3.5.31_typescript@6.0.2_/node_modules/vue-router/dist/vue-router.js +4 -1
- package/dist/esm/node_modules/.pnpm/{vue3-sfc-loader@0.9.5_lodash@4.17.23_vue@3.5.31_typescript@5.9.3_ → vue3-sfc-loader@0.9.5_lodash@4.17.23_vue@3.5.31_typescript@6.0.2_}/node_modules/vue3-sfc-loader/dist/vue3-sfc-loader.esm.js +1 -1
- package/dist/esm/packages/core/dist/esm/components/loader/remote/loader.js +1 -1
- package/dist/esm/packages/core/dist/esm/components/overlay/overlay.js +1 -1
- package/dist/esm/packages/core/dist/esm/hooks/auth.js +1 -1
- package/dist/esm/packages/core/dist/esm/hooks/data.js +3 -3
- package/dist/esm/packages/core/dist/esm/hooks/importCsv.js +1 -1
- package/dist/esm/packages/core/dist/esm/hooks/list.js +2 -2
- package/dist/esm/packages/core/dist/esm/hooks/manage.js +1 -1
- package/dist/esm/packages/core/dist/esm/hooks/menu.js +2 -2
- package/dist/esm/packages/core/dist/esm/hooks/overlay.js +1 -1
- package/dist/esm/packages/core/dist/esm/hooks/upload.js +1 -1
- package/dist/esm/packages/core/dist/esm/main.js +1 -1
- package/dist/esm/packages/core/dist/esm/provider/app.js +1 -1
- package/dist/esm/packages/core/dist/esm/stores/auth.js +1 -1
- package/dist/esm/packages/core/dist/esm/stores/i18n.js +1 -1
- package/dist/esm/packages/core/dist/esm/stores/manage.js +1 -1
- package/dist/esm/packages/core/dist/esm/stores/route.js +1 -1
- package/dist/esm/packages/core/dist/esm/stores/tab.js +1 -1
- package/dist/types/hooks/tab.d.ts +27 -9
- package/package.json +3 -3
- package/dist/cjs/node_modules/.pnpm/@vueuse_core@14.2.1_vue@3.5.31_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@vueuse_shared@14.2.1_vue@3.5.31_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/pinia@3.0.4_typescript@5.9.3_vue@3.5.31_typescript@5.9.3_/node_modules/pinia/dist/pinia.cjs +0 -5
- package/dist/cjs/node_modules/.pnpm/vue-router@4.6.4_vue@3.5.31_typescript@5.9.3_/node_modules/vue-router/dist/devtools-EWN81iOl.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/vue-router@4.6.4_vue@3.5.31_typescript@5.9.3_/node_modules/vue-router/dist/vue-router.cjs +0 -1
- package/dist/esm/node_modules/.pnpm/@vueuse_core@14.2.1_vue@3.5.31_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js +0 -89
- package/dist/esm/node_modules/.pnpm/@vueuse_shared@14.2.1_vue@3.5.31_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js +0 -77
- package/dist/esm/node_modules/.pnpm/pinia@3.0.4_typescript@5.9.3_vue@3.5.31_typescript@5.9.3_/node_modules/pinia/dist/pinia.js +0 -354
- package/dist/esm/node_modules/.pnpm/vue-router@4.6.4_vue@3.5.31_typescript@5.9.3_/node_modules/vue-router/dist/devtools-EWN81iOl.js +0 -10
- package/dist/esm/node_modules/.pnpm/vue-router@4.6.4_vue@3.5.31_typescript@5.9.3_/node_modules/vue-router/dist/vue-router.js +0 -14
- /package/dist/cjs/node_modules/.pnpm/{@tanstack_vue-query@5.95.2_vue@3.5.31_typescript@5.9.3_ → @tanstack_vue-query@5.95.2_vue@3.5.31_typescript@6.0.2_}/node_modules/@tanstack/vue-query/build/modern/useInfiniteQuery.cjs +0 -0
- /package/dist/cjs/node_modules/.pnpm/{@tanstack_vue-query@5.95.2_vue@3.5.31_typescript@5.9.3_ → @tanstack_vue-query@5.95.2_vue@3.5.31_typescript@6.0.2_}/node_modules/@tanstack/vue-query/build/modern/useQuery.cjs +0 -0
- /package/dist/cjs/node_modules/.pnpm/{pinia-plugin-persistedstate@4.7.1_pinia@3.0.4_typescript@5.9.3_vue@3.5.31_typescript@5.9.3__ → pinia-plugin-persistedstate@4.7.1_pinia@3.0.4_typescript@6.0.2_vue@3.5.31_typescript@6.0.2__}/node_modules/pinia-plugin-persistedstate/dist/index.cjs +0 -0
- /package/dist/cjs/node_modules/.pnpm/{vue-demi@0.14.10_vue@3.5.31_typescript@5.9.3_ → vue-demi@0.14.10_vue@3.5.31_typescript@6.0.2_}/node_modules/vue-demi/lib/index.cjs +0 -0
- /package/dist/cjs/node_modules/.pnpm/{vue3-sfc-loader@0.9.5_lodash@4.17.23_vue@3.5.31_typescript@5.9.3_ → vue3-sfc-loader@0.9.5_lodash@4.17.23_vue@3.5.31_typescript@6.0.2_}/node_modules/vue3-sfc-loader/dist/vue3-sfc-loader.esm.cjs +0 -0
- /package/dist/esm/node_modules/.pnpm/{pinia-plugin-persistedstate@4.7.1_pinia@3.0.4_typescript@5.9.3_vue@3.5.31_typescript@5.9.3__ → pinia-plugin-persistedstate@4.7.1_pinia@3.0.4_typescript@6.0.2_vue@3.5.31_typescript@6.0.2__}/node_modules/pinia-plugin-persistedstate/dist/index.js +0 -0
- /package/dist/esm/node_modules/.pnpm/{vue-demi@0.14.10_vue@3.5.31_typescript@5.9.3_ → vue-demi@0.14.10_vue@3.5.31_typescript@6.0.2_}/node_modules/vue-demi/lib/index.js +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { toRef as e } from "../../node_modules/.pnpm/@vue_reactivity@3.5.31/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js";
|
|
2
2
|
import { computed as t, createVNode as n, defineComponent as r, mergeProps as i } from "../../node_modules/.pnpm/@vue_runtime-core@3.5.31/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js";
|
|
3
3
|
import "../../node_modules/.pnpm/vue@3.5.31_typescript@6.0.2/node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
|
4
|
-
import {
|
|
4
|
+
import { useVModel as a } from "../../node_modules/.pnpm/@vueuse_core@14.2.1_vue@3.5.31_typescript@6.0.2_/node_modules/@vueuse/core/dist/index.js";
|
|
5
|
+
import { s as o } from "../../packages/core/dist/esm/hooks/tree.js";
|
|
5
6
|
import "../../packages/core/dist/esm/index.js";
|
|
6
|
-
import { useVModel as o } from "../../node_modules/.pnpm/@vueuse_core@14.2.1_vue@3.5.31_typescript@6.0.2_/node_modules/@vueuse/core/dist/index.js";
|
|
7
7
|
import s from "../../node_modules/.pnpm/naive-ui@2.44.1_vue@3.5.31_typescript@6.0.2_/node_modules/naive-ui/es/cascader/src/Cascader.js";
|
|
8
8
|
import c from "../../node_modules/.pnpm/naive-ui@2.44.1_vue@3.5.31_typescript@6.0.2_/node_modules/naive-ui/es/spin/src/Spin.js";
|
|
9
9
|
//#region src/components/cascader/cascader.tsx
|
|
@@ -15,10 +15,10 @@ var l = /* @__PURE__ */ r({
|
|
|
15
15
|
},
|
|
16
16
|
extends: s,
|
|
17
17
|
setup(r, { emit: l, slots: u }) {
|
|
18
|
-
let d = e(r, "path", ""), f = e(r, "params", {}), p =
|
|
18
|
+
let d = e(r, "path", ""), f = e(r, "params", {}), p = a(r, "value", l, {
|
|
19
19
|
passive: !0,
|
|
20
20
|
defaultValue: r.defaultValue
|
|
21
|
-
}), { options: m, loading: h } =
|
|
21
|
+
}), { options: m, loading: h } = o({
|
|
22
22
|
path: d,
|
|
23
23
|
params: f
|
|
24
24
|
}), g = t(() => {
|
|
@@ -2,8 +2,8 @@ import { ref as e, toRef as t } from "../../node_modules/.pnpm/@vue_reactivity@3
|
|
|
2
2
|
import { createVNode as n, defineComponent as r, mergeProps as i } from "../../node_modules/.pnpm/@vue_runtime-core@3.5.31/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js";
|
|
3
3
|
import "../../node_modules/.pnpm/vue@3.5.31_typescript@6.0.2/node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
|
4
4
|
import { w as a } from "../../packages/core/dist/esm/hooks/data.js";
|
|
5
|
-
import "../../packages/core/dist/esm/index.js";
|
|
6
5
|
import { useVModel as o } from "../../node_modules/.pnpm/@vueuse_core@14.2.1_vue@3.5.31_typescript@6.0.2_/node_modules/@vueuse/core/dist/index.js";
|
|
6
|
+
import "../../packages/core/dist/esm/index.js";
|
|
7
7
|
import s from "../../node_modules/.pnpm/naive-ui@2.44.1_vue@3.5.31_typescript@6.0.2_/node_modules/naive-ui/es/mention/src/Mention.js";
|
|
8
8
|
//#region src/components/mention/mention.tsx
|
|
9
9
|
var c = /* @__PURE__ */ r({
|
|
@@ -3,9 +3,9 @@ import { computed as t, createVNode as n, defineComponent as r, isVNode as i, me
|
|
|
3
3
|
import "../../node_modules/.pnpm/vue@3.5.31_typescript@6.0.2/node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
|
4
4
|
import s from "../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isEqual.js";
|
|
5
5
|
import { n as c } from "../../packages/core/dist/esm/hooks/i18n.js";
|
|
6
|
-
import {
|
|
6
|
+
import { useVModel as l } from "../../node_modules/.pnpm/@vueuse_core@14.2.1_vue@3.5.31_typescript@6.0.2_/node_modules/@vueuse/core/dist/index.js";
|
|
7
|
+
import { u } from "../../packages/core/dist/esm/hooks/select.js";
|
|
7
8
|
import "../../packages/core/dist/esm/index.js";
|
|
8
|
-
import { useVModel as u } from "../../node_modules/.pnpm/@vueuse_core@14.2.1_vue@3.5.31_typescript@6.0.2_/node_modules/@vueuse/core/dist/index.js";
|
|
9
9
|
import d from "../../node_modules/.pnpm/naive-ui@2.44.1_vue@3.5.31_typescript@6.0.2_/node_modules/naive-ui/es/tag/src/Tag.js";
|
|
10
10
|
import f from "../../node_modules/.pnpm/naive-ui@2.44.1_vue@3.5.31_typescript@6.0.2_/node_modules/naive-ui/es/avatar/src/Avatar.js";
|
|
11
11
|
import p from "../../node_modules/.pnpm/naive-ui@2.44.1_vue@3.5.31_typescript@6.0.2_/node_modules/naive-ui/es/select/src/Select.js";
|
|
@@ -41,13 +41,13 @@ var y = /* @__PURE__ */ r({
|
|
|
41
41
|
},
|
|
42
42
|
extends: p,
|
|
43
43
|
setup(r, { emit: i, slots: y }) {
|
|
44
|
-
let { t: x } = c(), S = e(r, "params", {}), C = e(r, "path"), w =
|
|
44
|
+
let { t: x } = c(), S = e(r, "params", {}), C = e(r, "path"), w = l(r, "value", i, {
|
|
45
45
|
passive: !0,
|
|
46
46
|
defaultValue: r.defaultValue
|
|
47
|
-
}), T =
|
|
47
|
+
}), T = l(r, "option", i, {
|
|
48
48
|
passive: !0,
|
|
49
49
|
defaultValue: r.multiple ? [] : null
|
|
50
|
-
}), E = e(r, "labelField", "name"), D = e(r, "valueField", "id"), O = e(r, "avatarField", ""), k = e(r, "imageField", ""), A = e(r, "descField", ""), { onSearch: j, loading: M, pagination: N, options: P, pageCount: F, refetch: I } =
|
|
50
|
+
}), E = e(r, "labelField", "name"), D = e(r, "valueField", "id"), O = e(r, "avatarField", ""), k = e(r, "imageField", ""), A = e(r, "descField", ""), { onSearch: j, loading: M, pagination: N, options: P, pageCount: F, refetch: I } = u({
|
|
51
51
|
path: C,
|
|
52
52
|
params: S,
|
|
53
53
|
defaultValue: w,
|
|
@@ -2,8 +2,8 @@ import { ref as e, toRef as t } from "../../node_modules/.pnpm/@vue_reactivity@3
|
|
|
2
2
|
import { createVNode as n, defineComponent as r, mergeProps as i, watch as a } from "../../node_modules/.pnpm/@vue_runtime-core@3.5.31/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js";
|
|
3
3
|
import "../../node_modules/.pnpm/vue@3.5.31_typescript@6.0.2/node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
|
4
4
|
import { p as o } from "../../packages/core/dist/esm/hooks/data.js";
|
|
5
|
-
import "../../packages/core/dist/esm/index.js";
|
|
6
5
|
import { useVModel as s } from "../../node_modules/.pnpm/@vueuse_core@14.2.1_vue@3.5.31_typescript@6.0.2_/node_modules/@vueuse/core/dist/index.js";
|
|
6
|
+
import "../../packages/core/dist/esm/index.js";
|
|
7
7
|
import c from "../../node_modules/.pnpm/naive-ui@2.44.1_vue@3.5.31_typescript@6.0.2_/node_modules/naive-ui/es/avatar/src/Avatar.js";
|
|
8
8
|
import l from "../../node_modules/.pnpm/naive-ui@2.44.1_vue@3.5.31_typescript@6.0.2_/node_modules/naive-ui/es/spin/src/Spin.js";
|
|
9
9
|
import u from "../../node_modules/.pnpm/naive-ui@2.44.1_vue@3.5.31_typescript@6.0.2_/node_modules/naive-ui/es/transfer/src/Transfer.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as e, toRef as t } from "../../node_modules/.pnpm/@vue_reactivity@3.5.31/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js";
|
|
2
2
|
import { computed as n, createVNode as r, defineComponent as i, mergeProps as a, watch as o } from "../../node_modules/.pnpm/@vue_runtime-core@3.5.31/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js";
|
|
3
3
|
import "../../node_modules/.pnpm/vue@3.5.31_typescript@6.0.2/node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
|
4
|
-
import { s } from "../../
|
|
4
|
+
import { useVModel as s } from "../../node_modules/.pnpm/@vueuse_core@14.2.1_vue@3.5.31_typescript@6.0.2_/node_modules/@vueuse/core/dist/index.js";
|
|
5
|
+
import { s as c } from "../../packages/core/dist/esm/hooks/tree.js";
|
|
5
6
|
import "../../packages/core/dist/esm/index.js";
|
|
6
|
-
import { useVModel as c } from "../../node_modules/.pnpm/@vueuse_core@14.2.1_vue@3.5.31_typescript@6.0.2_/node_modules/@vueuse/core/dist/index.js";
|
|
7
7
|
import l from "../../node_modules/.pnpm/naive-ui@2.44.1_vue@3.5.31_typescript@6.0.2_/node_modules/naive-ui/es/scrollbar/src/Scrollbar.js";
|
|
8
8
|
import u from "../../node_modules/.pnpm/naive-ui@2.44.1_vue@3.5.31_typescript@6.0.2_/node_modules/naive-ui/es/spin/src/Spin.js";
|
|
9
9
|
import d from "../../node_modules/.pnpm/naive-ui@2.44.1_vue@3.5.31_typescript@6.0.2_/node_modules/naive-ui/es/tree/src/Tree.js";
|
|
@@ -20,11 +20,11 @@ var f = /* @__PURE__ */ i({
|
|
|
20
20
|
},
|
|
21
21
|
extends: d,
|
|
22
22
|
setup(i, { emit: f }) {
|
|
23
|
-
let p = t(i, "params", {}), m = t(i, "path", ""), h =
|
|
23
|
+
let p = t(i, "params", {}), m = t(i, "path", ""), h = s(i, "value", f, {
|
|
24
24
|
passive: !0,
|
|
25
25
|
deep: !0,
|
|
26
26
|
defaultValue: i.defaultValue || []
|
|
27
|
-
}), g = e([]), { options: _, loading: v, expanded: y } =
|
|
27
|
+
}), g = e([]), { options: _, loading: v, expanded: y } = c({
|
|
28
28
|
path: m,
|
|
29
29
|
params: p,
|
|
30
30
|
...i.hookProps
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { toRef as e } from "../../node_modules/.pnpm/@vue_reactivity@3.5.31/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js";
|
|
2
2
|
import { createVNode as t, defineComponent as n, mergeProps as r } from "../../node_modules/.pnpm/@vue_runtime-core@3.5.31/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js";
|
|
3
3
|
import "../../node_modules/.pnpm/vue@3.5.31_typescript@6.0.2/node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
|
4
|
-
import {
|
|
4
|
+
import { useVModel as i } from "../../node_modules/.pnpm/@vueuse_core@14.2.1_vue@3.5.31_typescript@6.0.2_/node_modules/@vueuse/core/dist/index.js";
|
|
5
|
+
import { s as a } from "../../packages/core/dist/esm/hooks/tree.js";
|
|
5
6
|
import "../../packages/core/dist/esm/index.js";
|
|
6
|
-
import { useVModel as a } from "../../node_modules/.pnpm/@vueuse_core@14.2.1_vue@3.5.31_typescript@6.0.2_/node_modules/@vueuse/core/dist/index.js";
|
|
7
7
|
import o from "../../node_modules/.pnpm/naive-ui@2.44.1_vue@3.5.31_typescript@6.0.2_/node_modules/naive-ui/es/tree-select/src/TreeSelect.js";
|
|
8
8
|
//#region src/components/treeSelect/treeSelect.tsx
|
|
9
9
|
var s = /* @__PURE__ */ n({
|
|
@@ -15,11 +15,11 @@ var s = /* @__PURE__ */ n({
|
|
|
15
15
|
},
|
|
16
16
|
extends: o,
|
|
17
17
|
setup(n, { emit: s }) {
|
|
18
|
-
let c = e(n, "params", {}), l = e(n, "path", ""), u =
|
|
18
|
+
let c = e(n, "params", {}), l = e(n, "path", ""), u = i(n, "value", s, {
|
|
19
19
|
passive: !0,
|
|
20
20
|
deep: !0,
|
|
21
21
|
defaultValue: n.defaultValue || []
|
|
22
|
-
}), { options: d, loading: f } =
|
|
22
|
+
}), { options: d, loading: f } = a({
|
|
23
23
|
path: l,
|
|
24
24
|
params: c,
|
|
25
25
|
...n.hookProps
|
package/dist/esm/hooks/menu.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { computed as e, h as t } from "../node_modules/.pnpm/@vue_runtime-core@3.5.31/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js";
|
|
2
2
|
import "../node_modules/.pnpm/vue@3.5.31_typescript@6.0.2/node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { RouterLink as n } from "../node_modules/.pnpm/vue-router@4.6.4_vue@3.5.31_typescript@6.0.2_/node_modules/vue-router/dist/vue-router.js";
|
|
4
|
+
import { e as r } from "../packages/core/dist/esm/utils/tree.js";
|
|
5
|
+
import { l as i } from "../packages/core/dist/esm/hooks/menu.js";
|
|
5
6
|
import "../packages/core/dist/esm/index.js";
|
|
6
|
-
import { RouterLink as i } from "../node_modules/.pnpm/vue-router@4.6.4_vue@3.5.31_typescript@6.0.2_/node_modules/vue-router/dist/vue-router.js";
|
|
7
7
|
//#region src/hooks/menu.ts
|
|
8
8
|
function a(a) {
|
|
9
|
-
let o =
|
|
9
|
+
let o = i(a);
|
|
10
10
|
return {
|
|
11
|
-
options: e(() =>
|
|
11
|
+
options: e(() => r(o.getMenu(!0).map((e) => ({
|
|
12
12
|
...e,
|
|
13
13
|
key: e.name,
|
|
14
14
|
icon: e?.icon ? () => t("div", { class: `${e.icon} size-5` }) : void 0,
|
|
15
15
|
labelName: e.label,
|
|
16
|
-
label: () => e.path ? t(
|
|
16
|
+
label: () => e.path ? t(n, { to: { path: e.path } }, { default: () => e.label }) : e.label
|
|
17
17
|
})), {
|
|
18
18
|
idKey: "key",
|
|
19
19
|
parentKey: "parent",
|
package/dist/esm/hooks/tab.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { computed as e } from "../node_modules/.pnpm/@vue_runtime-core@3.5.31/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js";
|
|
2
2
|
import "../node_modules/.pnpm/vue@3.5.31_typescript@6.0.2/node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
|
3
|
-
import {
|
|
3
|
+
import { storeToRefs as t } from "../node_modules/.pnpm/pinia@3.0.4_typescript@6.0.2_vue@3.5.31_typescript@6.0.2_/node_modules/pinia/dist/pinia.js";
|
|
4
|
+
import { i as n } from "../packages/core/dist/esm/stores/tab.js";
|
|
5
|
+
import { useRouter as r } from "../node_modules/.pnpm/vue-router@4.6.4_vue@3.5.31_typescript@6.0.2_/node_modules/vue-router/dist/vue-router.js";
|
|
4
6
|
import "../packages/core/dist/esm/index.js";
|
|
5
|
-
import { useRouter as n } from "../node_modules/.pnpm/vue-router@4.6.4_vue@3.5.31_typescript@6.0.2_/node_modules/vue-router/dist/vue-router.js";
|
|
6
|
-
import { storeToRefs as r } from "../node_modules/.pnpm/pinia@3.0.4_typescript@6.0.2_vue@3.5.31_typescript@6.0.2_/node_modules/pinia/dist/pinia.js";
|
|
7
7
|
//#region src/hooks/tab.ts
|
|
8
8
|
function i() {
|
|
9
|
-
let i =
|
|
9
|
+
let i = n(), { tabs: a, current: o } = t(i), s = r(), c = (e) => e.tabKey || e.path || "", l = e(() => ({
|
|
10
10
|
value: o.value,
|
|
11
11
|
defaultValue: o.value || "",
|
|
12
12
|
onClose: (e) => {
|
package/dist/esm/hooks/table.js
CHANGED
|
@@ -2,21 +2,21 @@ import { ref as e, toRef as t, unref as n } from "../node_modules/.pnpm/@vue_rea
|
|
|
2
2
|
import { computed as r, watch as i } from "../node_modules/.pnpm/@vue_runtime-core@3.5.31/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js";
|
|
3
3
|
import "../node_modules/.pnpm/vue@3.5.31_typescript@6.0.2/node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
|
4
4
|
import a from "../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { watchDebounced as o } from "../node_modules/.pnpm/@vueuse_shared@14.2.1_vue@3.5.31_typescript@6.0.2_/node_modules/@vueuse/shared/dist/index.js";
|
|
6
|
+
import { d as s } from "../packages/core/dist/esm/hooks/list.js";
|
|
7
|
+
import { n as c } from "../packages/core/dist/esm/utils/tree.js";
|
|
7
8
|
import "../packages/core/dist/esm/index.js";
|
|
8
|
-
import { watchDebounced as c } from "../node_modules/.pnpm/@vueuse_shared@14.2.1_vue@3.5.31_typescript@6.0.2_/node_modules/@vueuse/shared/dist/index.js";
|
|
9
9
|
//#region src/hooks/table.tsx
|
|
10
10
|
function l(l) {
|
|
11
11
|
let u = r(() => n(l.filters) || {}), d = r(() => n(l.sorters) || {}), f = t(l, "columns", []), p = e({}), m = e([]), h = e({
|
|
12
12
|
...u.value,
|
|
13
13
|
...p.value
|
|
14
|
-
}), g = e({ ...d.value }), _ =
|
|
14
|
+
}), g = e({ ...d.value }), _ = s({
|
|
15
15
|
...l,
|
|
16
16
|
filters: h,
|
|
17
17
|
sorters: g
|
|
18
18
|
});
|
|
19
|
-
|
|
19
|
+
o([u, p], ([e, t]) => {
|
|
20
20
|
let n = {
|
|
21
21
|
...e || {},
|
|
22
22
|
...t || {}
|
|
@@ -48,7 +48,7 @@ function l(l) {
|
|
|
48
48
|
m.value = e;
|
|
49
49
|
};
|
|
50
50
|
i([() => l?.expanded, _.list], ([e, t]) => {
|
|
51
|
-
e && (m.value =
|
|
51
|
+
e && (m.value = c(t, l.key || "id", "children"));
|
|
52
52
|
});
|
|
53
53
|
let T = r(() => ({
|
|
54
54
|
page: _.page.value,
|
|
@@ -2,10 +2,10 @@ import { markRaw as e, ref as t } from "../../../../../@vue_reactivity@3.5.31/no
|
|
|
2
2
|
import { Fragment as n, defineComponent as r, h as i, provide as a } from "../../../../../@vue_runtime-core@3.5.31/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js";
|
|
3
3
|
import { createApp as o } from "../../../../../@vue_runtime-dom@3.5.31/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js";
|
|
4
4
|
import "../../../../../vue@3.5.31_typescript@6.0.2/node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
|
5
|
-
import "../../../../../vue-demi@0.14.10_vue@3.5.31_typescript@
|
|
5
|
+
import "../../../../../vue-demi@0.14.10_vue@3.5.31_typescript@6.0.2_/node_modules/vue-demi/lib/index.js";
|
|
6
6
|
import { createConstructor as s } from "../../../../../@overlastic_core@0.8.7/node_modules/@overlastic/core/dist/index.js";
|
|
7
7
|
import { pascalCase as c } from "../../../../../pascal-case@3.1.2/node_modules/pascal-case/dist.es2015/index.js";
|
|
8
|
-
//#region ../../node_modules/.pnpm/@overlastic+vue@0.8.7_typescript@
|
|
8
|
+
//#region ../../node_modules/.pnpm/@overlastic+vue@0.8.7_typescript@6.0.2/node_modules/@overlastic/vue/dist/index.js
|
|
9
9
|
var l = { appContext: null }, u = Symbol("OverlayScripts"), d = Symbol("OverlayInstances");
|
|
10
10
|
r({
|
|
11
11
|
name: "Field",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getCurrentScope as e, onScopeDispose as t, reactive as n, readonly as r, shallowReactive as i, shallowReadonly as a, toRefs as o } from "../../../../../../@vue_reactivity@3.5.31/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js";
|
|
2
2
|
import { computed as s, watch as c } from "../../../../../../@vue_runtime-core@3.5.31/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js";
|
|
3
3
|
import { shouldThrowError as l } from "../../../../../../@tanstack_query-core@5.95.2/node_modules/@tanstack/query-core/build/modern/utils.js";
|
|
4
|
-
import "../../../../../../vue-demi@0.14.10_vue@3.5.31_typescript@
|
|
4
|
+
import "../../../../../../vue-demi@0.14.10_vue@3.5.31_typescript@6.0.2_/node_modules/vue-demi/lib/index.js";
|
|
5
5
|
import { cloneDeepUnref as u, updateState as d } from "./utils.js";
|
|
6
6
|
import { useQueryClient as f } from "./useQueryClient.js";
|
|
7
|
-
//#region ../../node_modules/.pnpm/@tanstack+vue-query@5.95.2_vue@3.5.31_typescript@
|
|
7
|
+
//#region ../../node_modules/.pnpm/@tanstack+vue-query@5.95.2_vue@3.5.31_typescript@6.0.2_/node_modules/@tanstack/vue-query/build/modern/useBaseQuery.js
|
|
8
8
|
function p(p, m, h) {
|
|
9
9
|
process.env.NODE_ENV === "development" && (e() || console.warn("vue-query composable like \"useQuery()\" should only be used inside a \"setup()\" function or a running effect scope. They might otherwise lead to memory leaks."));
|
|
10
10
|
let g = h || f(), _ = s(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InfiniteQueryObserver as e } from "../../../../../../@tanstack_query-core@5.95.2/node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.js";
|
|
2
2
|
import { useBaseQuery as t } from "./useBaseQuery.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/@tanstack+vue-query@5.95.2_vue@3.5.31_typescript@
|
|
3
|
+
//#region ../../node_modules/.pnpm/@tanstack+vue-query@5.95.2_vue@3.5.31_typescript@6.0.2_/node_modules/@tanstack/vue-query/build/modern/useInfiniteQuery.js
|
|
4
4
|
function n(n, r) {
|
|
5
5
|
return t(e, n, r);
|
|
6
6
|
}
|
|
@@ -2,10 +2,10 @@ import { getCurrentScope as e, onScopeDispose as t, reactive as n, readonly as r
|
|
|
2
2
|
import { computed as s, watch as c } from "../../../../../../@vue_runtime-core@3.5.31/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js";
|
|
3
3
|
import { shouldThrowError as l } from "../../../../../../@tanstack_query-core@5.95.2/node_modules/@tanstack/query-core/build/modern/utils.js";
|
|
4
4
|
import { MutationObserver as u } from "../../../../../../@tanstack_query-core@5.95.2/node_modules/@tanstack/query-core/build/modern/mutationObserver.js";
|
|
5
|
-
import "../../../../../../vue-demi@0.14.10_vue@3.5.31_typescript@
|
|
5
|
+
import "../../../../../../vue-demi@0.14.10_vue@3.5.31_typescript@6.0.2_/node_modules/vue-demi/lib/index.js";
|
|
6
6
|
import { cloneDeepUnref as d, updateState as f } from "./utils.js";
|
|
7
7
|
import { useQueryClient as p } from "./useQueryClient.js";
|
|
8
|
-
//#region ../../node_modules/.pnpm/@tanstack+vue-query@5.95.2_vue@3.5.31_typescript@
|
|
8
|
+
//#region ../../node_modules/.pnpm/@tanstack+vue-query@5.95.2_vue@3.5.31_typescript@6.0.2_/node_modules/@tanstack/vue-query/build/modern/useMutation.js
|
|
9
9
|
function m(m, h) {
|
|
10
10
|
process.env.NODE_ENV === "development" && (e() || console.warn("vue-query composable like \"useQuery()\" should only be used inside a \"setup()\" function or a running effect scope. They might otherwise lead to memory leaks."));
|
|
11
11
|
let g = h || p(), _ = s(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QueryObserver as e } from "../../../../../../@tanstack_query-core@5.95.2/node_modules/@tanstack/query-core/build/modern/queryObserver.js";
|
|
2
2
|
import { useBaseQuery as t } from "./useBaseQuery.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/@tanstack+vue-query@5.95.2_vue@3.5.31_typescript@
|
|
3
|
+
//#region ../../node_modules/.pnpm/@tanstack+vue-query@5.95.2_vue@3.5.31_typescript@6.0.2_/node_modules/@tanstack/vue-query/build/modern/useQuery.js
|
|
4
4
|
function n(n, r) {
|
|
5
5
|
return t(e, n, r);
|
|
6
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { hasInjectionContext as e, inject as t } from "../../../../../../@vue_runtime-core@3.5.31/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js";
|
|
2
|
-
import "../../../../../../vue-demi@0.14.10_vue@3.5.31_typescript@
|
|
2
|
+
import "../../../../../../vue-demi@0.14.10_vue@3.5.31_typescript@6.0.2_/node_modules/vue-demi/lib/index.js";
|
|
3
3
|
import { getClientKey as n } from "./utils.js";
|
|
4
|
-
//#region ../../node_modules/.pnpm/@tanstack+vue-query@5.95.2_vue@3.5.31_typescript@
|
|
4
|
+
//#region ../../node_modules/.pnpm/@tanstack+vue-query@5.95.2_vue@3.5.31_typescript@6.0.2_/node_modules/@tanstack/vue-query/build/modern/useQueryClient.js
|
|
5
5
|
function r(r = "") {
|
|
6
6
|
if (!e()) throw Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");
|
|
7
7
|
let i = t(n(r));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isRef as e, unref as t } from "../../../../../../@vue_reactivity@3.5.31/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js";
|
|
2
|
-
import "../../../../../../vue-demi@0.14.10_vue@3.5.31_typescript@
|
|
3
|
-
//#region ../../node_modules/.pnpm/@tanstack+vue-query@5.95.2_vue@3.5.31_typescript@
|
|
2
|
+
import "../../../../../../vue-demi@0.14.10_vue@3.5.31_typescript@6.0.2_/node_modules/vue-demi/lib/index.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/@tanstack+vue-query@5.95.2_vue@3.5.31_typescript@6.0.2_/node_modules/@tanstack/vue-query/build/modern/utils.js
|
|
4
4
|
var n = "VUE_QUERY_CLIENT";
|
|
5
5
|
function r(e) {
|
|
6
6
|
return `${n}${e ? `:${e}` : ""}`;
|
|
@@ -1,26 +1,108 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { computed as
|
|
1
|
+
import { readonly as e, ref as t, shallowRef as n, toValue as r } from "../../../../../@vue_reactivity@3.5.31/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js";
|
|
2
|
+
import { computed as i, getCurrentInstance as a, nextTick as o, watch as s, watchEffect as c } from "../../../../../@vue_runtime-core@3.5.31/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js";
|
|
3
3
|
import "../../../../../vue@3.5.31_typescript@6.0.2/node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
|
4
|
-
import { isClient as
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { createEventHook as l, hasOwn as u, isClient as d, isDef as f, useIntervalFn as p } from "../../../../../@vueuse_shared@14.2.1_vue@3.5.31_typescript@6.0.2_/node_modules/@vueuse/shared/dist/index.js";
|
|
5
|
+
//#region ../../node_modules/.pnpm/@vueuse+core@14.2.1_vue@3.5.31_typescript@6.0.2_/node_modules/@vueuse/core/dist/index.js
|
|
6
|
+
var m = d ? window.document : void 0;
|
|
7
|
+
d && window.navigator, d && window.location;
|
|
8
|
+
function h(e) {
|
|
9
|
+
let t = r(e);
|
|
10
|
+
return t?.$el ?? t;
|
|
11
|
+
}
|
|
12
|
+
function g(e) {
|
|
7
13
|
return JSON.parse(JSON.stringify(e));
|
|
8
14
|
}
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
function _(e) {
|
|
16
|
+
if ("interval" in e || "immediate" in e) {
|
|
17
|
+
let { interval: t = 1e3, immediate: n = !1 } = e;
|
|
18
|
+
return (e) => p(e, t, { immediate: n });
|
|
19
|
+
}
|
|
20
|
+
return (e) => p(e, 1e3, { immediate: !1 });
|
|
21
|
+
}
|
|
22
|
+
function v(e, t = {}) {
|
|
23
|
+
let i = n(r(e)), { scheduler: a = _(t), onTick: o, onComplete: s } = t, c = a(() => {
|
|
24
|
+
let e = i.value - 1;
|
|
25
|
+
i.value = e < 0 ? 0 : e, o?.(), i.value <= 0 && (c.pause(), s?.());
|
|
26
|
+
}), l = (t) => {
|
|
27
|
+
i.value = r(t) ?? r(e);
|
|
28
|
+
};
|
|
29
|
+
return {
|
|
30
|
+
remaining: i,
|
|
31
|
+
reset: l,
|
|
32
|
+
stop: () => {
|
|
33
|
+
c.pause(), l();
|
|
34
|
+
},
|
|
35
|
+
start: (e) => {
|
|
36
|
+
l(e), c.resume();
|
|
37
|
+
},
|
|
38
|
+
pause: c.pause,
|
|
39
|
+
resume: () => {
|
|
40
|
+
c.isActive.value || i.value > 0 && c.resume();
|
|
41
|
+
},
|
|
42
|
+
isActive: c.isActive
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
var y = {
|
|
46
|
+
multiple: !0,
|
|
47
|
+
accept: "*",
|
|
48
|
+
reset: !1,
|
|
49
|
+
directory: !1
|
|
50
|
+
};
|
|
51
|
+
function b(e) {
|
|
52
|
+
if (!e) return null;
|
|
53
|
+
if (e instanceof FileList) return e;
|
|
54
|
+
let t = new DataTransfer();
|
|
55
|
+
for (let n of e) t.items.add(n);
|
|
56
|
+
return t.files;
|
|
57
|
+
}
|
|
58
|
+
function x(n = {}) {
|
|
59
|
+
let { document: a = m } = n, o = t(b(n.initialFiles)), { on: s, trigger: d } = l(), { on: f, trigger: p } = l(), g = i(() => {
|
|
60
|
+
let e = h(n.input) ?? (a ? a.createElement("input") : void 0);
|
|
61
|
+
return e && (e.type = "file", e.onchange = (e) => {
|
|
62
|
+
o.value = e.target.files, d(o.value);
|
|
63
|
+
}, e.oncancel = () => {
|
|
64
|
+
p();
|
|
65
|
+
}), e;
|
|
66
|
+
}), _ = () => {
|
|
67
|
+
o.value = null, g.value && g.value.value && (g.value.value = "", d(null));
|
|
68
|
+
}, v = (e) => {
|
|
69
|
+
let t = g.value;
|
|
70
|
+
t && (t.multiple = r(e.multiple), t.accept = r(e.accept), t.webkitdirectory = r(e.directory), u(e, "capture") && (t.capture = r(e.capture)));
|
|
71
|
+
};
|
|
72
|
+
return c(() => {
|
|
73
|
+
v(n);
|
|
74
|
+
}), {
|
|
75
|
+
files: e(o),
|
|
76
|
+
open: (e) => {
|
|
77
|
+
let t = g.value;
|
|
78
|
+
if (!t) return;
|
|
79
|
+
let i = {
|
|
80
|
+
...y,
|
|
81
|
+
...n,
|
|
82
|
+
...e
|
|
83
|
+
};
|
|
84
|
+
v(i), r(i.reset) && _(), t.click();
|
|
85
|
+
},
|
|
86
|
+
reset: _,
|
|
87
|
+
onCancel: f,
|
|
88
|
+
onChange: s
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
function S(e, n, r, c = {}) {
|
|
92
|
+
var l, u;
|
|
93
|
+
let { clone: d = !1, passive: p = !1, eventName: m, deep: h = !1, defaultValue: _, shouldEmit: v } = c, y = a(), b = r || y?.emit || (y == null || (l = y.$emit) == null ? void 0 : l.bind(y)) || (y == null || (u = y.proxy) == null || (u = u.$emit) == null ? void 0 : u.bind(y?.proxy)), x = m;
|
|
94
|
+
n ||= "modelValue", x ||= `update:${n.toString()}`;
|
|
95
|
+
let S = (e) => d ? typeof d == "function" ? d(e) : g(e) : e, C = () => f(e[n]) ? S(e[n]) : _, w = (e) => {
|
|
14
96
|
v ? v(e) && b(x, e) : b(x, e);
|
|
15
97
|
};
|
|
16
|
-
if (
|
|
17
|
-
let
|
|
18
|
-
return
|
|
19
|
-
|
|
20
|
-
}),
|
|
21
|
-
!
|
|
22
|
-
}, { deep:
|
|
23
|
-
} else return
|
|
98
|
+
if (p) {
|
|
99
|
+
let r = t(C()), i = !1;
|
|
100
|
+
return s(() => e[n], (e) => {
|
|
101
|
+
i || (i = !0, r.value = S(e), o(() => i = !1));
|
|
102
|
+
}), s(r, (t) => {
|
|
103
|
+
!i && (t !== e[n] || h) && w(t);
|
|
104
|
+
}, { deep: h }), r;
|
|
105
|
+
} else return i({
|
|
24
106
|
get() {
|
|
25
107
|
return C();
|
|
26
108
|
},
|
|
@@ -30,4 +112,4 @@ function c(a, c, l, u = {}) {
|
|
|
30
112
|
});
|
|
31
113
|
}
|
|
32
114
|
//#endregion
|
|
33
|
-
export {
|
|
115
|
+
export { v as useCountdown, x as useFileDialog, S as useVModel };
|
|
@@ -1,11 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { watch as
|
|
1
|
+
import { getCurrentScope as e, isRef as t, onScopeDispose as n, reactive as r, shallowReadonly as i, shallowRef as a, toValue as o, unref as s } from "../../../../../@vue_reactivity@3.5.31/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js";
|
|
2
|
+
import { computed as c, watch as l } from "../../../../../@vue_runtime-core@3.5.31/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js";
|
|
3
3
|
import "../../../../../vue@3.5.31_typescript@6.0.2/node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/@vueuse+shared@14.2.1_vue@3.5.31_typescript@6.0.2_/node_modules/@vueuse/shared/dist/index.js
|
|
5
|
-
|
|
5
|
+
function u(t, r) {
|
|
6
|
+
return e() ? (n(t, r), !0) : !1;
|
|
7
|
+
}
|
|
8
|
+
function d() {
|
|
9
|
+
let e = /* @__PURE__ */ new Set(), t = (t) => {
|
|
10
|
+
e.delete(t);
|
|
11
|
+
};
|
|
12
|
+
return {
|
|
13
|
+
on: (n) => {
|
|
14
|
+
e.add(n);
|
|
15
|
+
let r = () => t(n);
|
|
16
|
+
return u(r), { off: r };
|
|
17
|
+
},
|
|
18
|
+
off: t,
|
|
19
|
+
trigger: (...t) => Promise.all(Array.from(e).map((e) => e(...t))),
|
|
20
|
+
clear: () => {
|
|
21
|
+
e.clear();
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
var f = typeof window < "u" && typeof document < "u";
|
|
6
26
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
7
|
-
var
|
|
8
|
-
function
|
|
27
|
+
var p = (e) => e !== void 0, m = () => {}, h = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
|
|
28
|
+
function g(e, t) {
|
|
9
29
|
function n(...n) {
|
|
10
30
|
return new Promise((r, i) => {
|
|
11
31
|
Promise.resolve(e(() => t.apply(this, n), {
|
|
@@ -17,32 +37,80 @@ function a(e, t) {
|
|
|
17
37
|
}
|
|
18
38
|
return n;
|
|
19
39
|
}
|
|
20
|
-
var
|
|
21
|
-
function
|
|
22
|
-
let
|
|
23
|
-
clearTimeout(e),
|
|
24
|
-
},
|
|
25
|
-
return (
|
|
26
|
-
let l = e
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}, u)),
|
|
31
|
-
|
|
40
|
+
var _ = (e) => e();
|
|
41
|
+
function v(e, t = {}) {
|
|
42
|
+
let n, r, i = m, a = (e) => {
|
|
43
|
+
clearTimeout(e), i(), i = m;
|
|
44
|
+
}, s;
|
|
45
|
+
return (c) => {
|
|
46
|
+
let l = o(e), u = o(t.maxWait);
|
|
47
|
+
return n && a(n), l <= 0 || u !== void 0 && u <= 0 ? (r &&= (a(r), void 0), Promise.resolve(c())) : new Promise((e, o) => {
|
|
48
|
+
i = t.rejectOnCancel ? o : e, s = c, u && !r && (r = setTimeout(() => {
|
|
49
|
+
n && a(n), r = void 0, e(s());
|
|
50
|
+
}, u)), n = setTimeout(() => {
|
|
51
|
+
r && a(r), r = void 0, e(c());
|
|
32
52
|
}, l);
|
|
33
53
|
});
|
|
34
54
|
};
|
|
35
55
|
}
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
-
|
|
56
|
+
function y(e) {
|
|
57
|
+
return t(e) ? r(new Proxy({}, {
|
|
58
|
+
get(t, n, r) {
|
|
59
|
+
return s(Reflect.get(e.value, n, r));
|
|
60
|
+
},
|
|
61
|
+
set(n, r, i) {
|
|
62
|
+
return t(e.value[r]) && !t(i) ? e.value[r].value = i : e.value[r] = i, !0;
|
|
63
|
+
},
|
|
64
|
+
deleteProperty(t, n) {
|
|
65
|
+
return Reflect.deleteProperty(e.value, n);
|
|
66
|
+
},
|
|
67
|
+
has(t, n) {
|
|
68
|
+
return Reflect.has(e.value, n);
|
|
69
|
+
},
|
|
70
|
+
ownKeys() {
|
|
71
|
+
return Object.keys(e.value);
|
|
72
|
+
},
|
|
73
|
+
getOwnPropertyDescriptor() {
|
|
74
|
+
return {
|
|
75
|
+
enumerable: !0,
|
|
76
|
+
configurable: !0
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
})) : r(e);
|
|
80
|
+
}
|
|
81
|
+
function b(e) {
|
|
82
|
+
return y(c(e));
|
|
83
|
+
}
|
|
84
|
+
function x(e, t, n = {}) {
|
|
85
|
+
let { eventFilter: r = _, ...i } = n;
|
|
86
|
+
return l(e, g(r, t), i);
|
|
87
|
+
}
|
|
88
|
+
function S(e, n = 1e3, r = {}) {
|
|
89
|
+
let { immediate: s = !0, immediateCallback: c = !1 } = r, d = null, p = a(!1);
|
|
90
|
+
function m() {
|
|
91
|
+
d &&= (clearInterval(d), null);
|
|
92
|
+
}
|
|
93
|
+
function h() {
|
|
94
|
+
p.value = !1, m();
|
|
95
|
+
}
|
|
96
|
+
function g() {
|
|
97
|
+
let t = o(n);
|
|
98
|
+
t <= 0 || (p.value = !0, c && e(), m(), p.value && (d = setInterval(e, t)));
|
|
99
|
+
}
|
|
100
|
+
return s && f && g(), (t(n) || typeof n == "function") && u(l(n, () => {
|
|
101
|
+
p.value && f && g();
|
|
102
|
+
})), u(h), {
|
|
103
|
+
isActive: i(p),
|
|
104
|
+
pause: h,
|
|
105
|
+
resume: g
|
|
106
|
+
};
|
|
39
107
|
}
|
|
40
|
-
function
|
|
108
|
+
function C(e, t, n = {}) {
|
|
41
109
|
let { debounce: r = 0, maxWait: i = void 0, ...a } = n;
|
|
42
|
-
return
|
|
110
|
+
return x(e, t, {
|
|
43
111
|
...a,
|
|
44
|
-
eventFilter:
|
|
112
|
+
eventFilter: v(r, { maxWait: i })
|
|
45
113
|
});
|
|
46
114
|
}
|
|
47
115
|
//#endregion
|
|
48
|
-
export {
|
|
116
|
+
export { _ as bypassFilter, d as createEventHook, g as createFilterWrapper, v as debounceFilter, h as hasOwn, f as isClient, p as isDef, m as noop, b as reactiveComputed, y as toReactive, u as tryOnScopeDispose, S as useIntervalFn, C as watchDebounced, x as watchWithFilter };
|