@duxweb/dvha-core 1.1.10 → 1.1.11
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("@overlastic/vue"),r=e.defineComponent({name:"DuxOverlay",props:{component:Function,componentProps:Object,mask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},duration:{type:Number,default:300},zIndex:{type:Number,default:1e3}},setup(t){const{visible:o,confirm:s,cancel:n}=c.useDisclosure({duration:t.duration}),a=t?.componentProps||{};a.onConfirm=s,a.onClose=n;const l=e.defineAsyncComponent(t.component),i=()=>{t.maskClosable&&n()};return()=>e.createVNode("div",{class:"fixed inset-0 flex items-center justify-center overflow-auto",style:{zIndex:t.zIndex}},[e.createVNode(e.Transition,{enterActiveClass:"transition-opacity",enterFromClass:"opacity-0",enterToClass:"opacity-100",leaveActiveClass:"transition-opacity",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},{default:()=>[o.value&&t.mask&&e.createVNode("div",{class:"fixed inset-0 bg-black bg-opacity-30",style:{transitionDuration:`${t.duration}ms`},onClick:i},null)]}),e.createVNode(e.Transition,{enterActiveClass:"transition-all",enterFromClass:"opacity-0 scale-95",enterToClass:"opacity-100 scale-100",leaveActiveClass:"transition-all",leaveFromClass:"opacity-100 scale-100",leaveToClass:"opacity-0 scale-95"},{default:()=>[o.value&&e.createVNode(l,a,null)]})])}});exports.DuxOverlay=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@overlastic/vue");require("vue");require("vue-router");require("pinia");require("lodash-es");require("@tanstack/vue-query");require("json-2-csv");require("@vee-validate/rules");require("vee-validate");require("@vueuse/core");require("./json/index.cjs");require("../utils/bus.cjs");require("colorizr");require("axios");require("clsx");const i=require("../components/overlay/overlay.cjs");function q(){const e=u.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@overlastic/vue");require("vue");require("vue-router");require("pinia");require("lodash-es");require("@tanstack/vue-query");require("json-2-csv");require("@vee-validate/rules");require("vee-validate");require("@vueuse/core");require("./json/index.cjs");require("../utils/bus.cjs");require("colorizr");require("axios");require("clsx");const i=require("../components/overlay/overlay.cjs");function q(){const e=u.useOverlay(i.DuxOverlay);return{show:r=>e(r)}}exports.useOverlay=q;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as r, defineAsyncComponent as u, createVNode as t, Transition as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as r, defineAsyncComponent as u, createVNode as t, Transition as s } from "vue";
|
|
2
|
+
import { useDisclosure as m } from "@overlastic/vue";
|
|
3
|
+
const C = /* @__PURE__ */ r({
|
|
4
4
|
name: "DuxOverlay",
|
|
5
5
|
props: {
|
|
6
6
|
component: Function,
|
|
@@ -25,12 +25,12 @@ const v = /* @__PURE__ */ r({
|
|
|
25
25
|
setup(e) {
|
|
26
26
|
const {
|
|
27
27
|
visible: o,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
confirm: l,
|
|
29
|
+
cancel: n
|
|
30
30
|
} = m({
|
|
31
31
|
duration: e.duration
|
|
32
32
|
}), a = e?.componentProps || {};
|
|
33
|
-
a.onConfirm =
|
|
33
|
+
a.onConfirm = l, a.onClose = n;
|
|
34
34
|
const i = u(e.component), c = () => {
|
|
35
35
|
e.maskClosable && n();
|
|
36
36
|
};
|
|
@@ -39,7 +39,7 @@ const v = /* @__PURE__ */ r({
|
|
|
39
39
|
style: {
|
|
40
40
|
zIndex: e.zIndex
|
|
41
41
|
}
|
|
42
|
-
}, [t(
|
|
42
|
+
}, [t(s, {
|
|
43
43
|
enterActiveClass: "transition-opacity",
|
|
44
44
|
enterFromClass: "opacity-0",
|
|
45
45
|
enterToClass: "opacity-100",
|
|
@@ -54,7 +54,7 @@ const v = /* @__PURE__ */ r({
|
|
|
54
54
|
},
|
|
55
55
|
onClick: c
|
|
56
56
|
}, null)]
|
|
57
|
-
}), t(
|
|
57
|
+
}), t(s, {
|
|
58
58
|
enterActiveClass: "transition-all",
|
|
59
59
|
enterFromClass: "opacity-0 scale-95",
|
|
60
60
|
enterToClass: "opacity-100 scale-100",
|
|
@@ -67,5 +67,5 @@ const v = /* @__PURE__ */ r({
|
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
export {
|
|
70
|
-
|
|
70
|
+
C as DuxOverlay
|
|
71
71
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useOverlay as t } from "@overlastic/vue";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "pinia";
|
|
@@ -14,12 +14,12 @@ import "colorizr";
|
|
|
14
14
|
import "axios";
|
|
15
15
|
import "clsx";
|
|
16
16
|
import { DuxOverlay as m } from "../components/overlay/overlay.js";
|
|
17
|
-
function
|
|
17
|
+
function $() {
|
|
18
18
|
const r = t(m);
|
|
19
19
|
return {
|
|
20
20
|
show: (o) => r(o)
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
$ as useOverlay
|
|
25
25
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duxweb/dvha-core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.11",
|
|
5
5
|
"author": "DuxWeb",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -28,34 +28,34 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@overlastic/vue": "^0.8.
|
|
32
|
-
"@tanstack/vue-query": "^5.
|
|
31
|
+
"@overlastic/vue": "^0.8.3",
|
|
32
|
+
"@tanstack/vue-query": "^5.90.7",
|
|
33
33
|
"@vee-validate/rules": "^4.15.1",
|
|
34
|
-
"@vueuse/core": "^
|
|
35
|
-
"@vueuse/integrations": "^
|
|
36
|
-
"axios": "^1.
|
|
34
|
+
"@vueuse/core": "^14.0.0",
|
|
35
|
+
"@vueuse/integrations": "^14.0.0",
|
|
36
|
+
"axios": "^1.13.2",
|
|
37
37
|
"clsx": "^2.1.1",
|
|
38
38
|
"colorizr": "^3.0.8",
|
|
39
39
|
"crypto-js": "^4.2.0",
|
|
40
|
-
"dayjs": "^1.11.
|
|
40
|
+
"dayjs": "^1.11.19",
|
|
41
41
|
"jsep": "^1.4.0",
|
|
42
|
-
"json-2-csv": "^5.5.
|
|
42
|
+
"json-2-csv": "^5.5.10",
|
|
43
43
|
"lodash-es": "^4.17.21",
|
|
44
|
-
"mathjs": "^
|
|
45
|
-
"mime": "^4.0
|
|
44
|
+
"mathjs": "^15.1.0",
|
|
45
|
+
"mime": "^4.1.0",
|
|
46
46
|
"mitt": "^3.0.1",
|
|
47
|
-
"pinia": "^3.0.
|
|
48
|
-
"pinia-plugin-persistedstate": "^4.
|
|
47
|
+
"pinia": "^3.0.4",
|
|
48
|
+
"pinia-plugin-persistedstate": "^4.7.1",
|
|
49
49
|
"tslib": "^2.8.1",
|
|
50
50
|
"vee-validate": "^4.15.1",
|
|
51
|
-
"vue": "^3.5.
|
|
52
|
-
"vue-i18n": "^11.1.
|
|
53
|
-
"vue-router": "^4.
|
|
51
|
+
"vue": "^3.5.24",
|
|
52
|
+
"vue-i18n": "^11.1.12",
|
|
53
|
+
"vue-router": "^4.6.3",
|
|
54
54
|
"vue3-sfc-loader": "^0.9.5"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"rimraf": "^6.0
|
|
58
|
-
"vue-tsc": "^
|
|
57
|
+
"rimraf": "^6.1.0",
|
|
58
|
+
"vue-tsc": "^3.1.3"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"clean": "rimraf dist",
|