x-essential-lib 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +12 -1
- package/dist/index.js +410 -266
- package/package.json +5 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DefineComponent, ComputedRef, Ref } from 'vue'
|
|
2
|
+
import { RouteLocationNormalized, NavigationGuardNext } from 'vue-router'
|
|
2
3
|
|
|
3
4
|
export declare const XConfirmDlg: DefineComponent<
|
|
4
5
|
{
|
|
@@ -39,7 +40,7 @@ export declare const XPromptDlg: DefineComponent<
|
|
|
39
40
|
unknown
|
|
40
41
|
>
|
|
41
42
|
|
|
42
|
-
export declare const
|
|
43
|
+
export declare const XWaitDlg: DefineComponent<{}, {}, unknown>
|
|
43
44
|
|
|
44
45
|
export declare function useColor(): {
|
|
45
46
|
primaryColor: ComputedRef<string>
|
|
@@ -96,11 +97,21 @@ interface PromptParams {
|
|
|
96
97
|
export declare function openPromptDlg(params: PromptParams): Promise<any>
|
|
97
98
|
|
|
98
99
|
export declare function openWaitDlg()
|
|
100
|
+
|
|
99
101
|
export declare function closeWaitDlg()
|
|
100
102
|
|
|
101
103
|
export declare function messageError(text: string, timeout?: number)
|
|
104
|
+
|
|
102
105
|
export declare function messageInfo(text: string, timeout?: number)
|
|
106
|
+
|
|
103
107
|
export declare function messageSuccess(text: string, timeout?: number)
|
|
108
|
+
|
|
104
109
|
export declare function messageWarning(text: string, timeout?: number)
|
|
105
110
|
|
|
106
111
|
export declare function appAppear(name: string)
|
|
112
|
+
|
|
113
|
+
export declare function onBeforeEach(
|
|
114
|
+
to: RouteLocationNormalized,
|
|
115
|
+
from: RouteLocationNormalized,
|
|
116
|
+
next: NavigationGuardNext
|
|
117
|
+
): void
|
package/dist/index.js
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode('.x-cont[data-v-a8f3d91f]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-a8f3d91f]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-a8f3d91f]{transform-origin:20px 20px;animation:lds-spinner-a8f3d91f 1.2s linear infinite}.lds-spinner div[data-v-a8f3d91f]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-a8f3d91f]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-a8f3d91f]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-a8f3d91f]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-a8f3d91f]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-a8f3d91f]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-a8f3d91f]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-a8f3d91f]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-a8f3d91f]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-a8f3d91f]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-a8f3d91f]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-a8f3d91f]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-a8f3d91f]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-a8f3d91f{0%{opacity:1}to{opacity:0}}.x-cont[data-v-70ed4b89]{position:absolute;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(a)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
import { getCurrentInstance as
|
|
3
|
-
function
|
|
2
|
+
import { getCurrentInstance as de, inject as X, computed as p, defineComponent as I, useModel as ee, ref as _, onMounted as $, onBeforeUnmount as W, watch as F, resolveComponent as m, openBlock as k, createBlock as E, withKeys as O, withModifiers as M, withCtx as v, createVNode as h, createTextVNode as b, toDisplayString as C, createElementBlock as N, normalizeStyle as pe, pushScopeId as fe, popScopeId as me, createElementVNode as g, reactive as ve, Fragment as ge, renderList as _e, unref as he } from "vue";
|
|
3
|
+
function xe(e) {
|
|
4
4
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(n, t) {
|
|
5
|
-
var
|
|
6
|
-
|
|
5
|
+
var r = e.get(n);
|
|
6
|
+
r ? r.push(t) : e.set(n, [t]);
|
|
7
7
|
}, off: function(n, t) {
|
|
8
|
-
var
|
|
9
|
-
|
|
8
|
+
var r = e.get(n);
|
|
9
|
+
r && (t ? r.splice(r.indexOf(t) >>> 0, 1) : e.set(n, []));
|
|
10
10
|
}, emit: function(n, t) {
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}), (
|
|
15
|
-
|
|
11
|
+
var r = e.get(n);
|
|
12
|
+
r && r.slice().map(function(o) {
|
|
13
|
+
o(t);
|
|
14
|
+
}), (r = e.get("*")) && r.slice().map(function(o) {
|
|
15
|
+
o(n, t);
|
|
16
16
|
});
|
|
17
17
|
} };
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
async function
|
|
19
|
+
const u = xe();
|
|
20
|
+
async function Xe(e) {
|
|
21
21
|
return new Promise((n) => {
|
|
22
22
|
setTimeout(n, e);
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
async function
|
|
26
|
-
const
|
|
27
|
-
return new Promise((
|
|
25
|
+
async function H(e, n, t) {
|
|
26
|
+
const r = Date.now();
|
|
27
|
+
return new Promise((o) => {
|
|
28
28
|
const s = async () => {
|
|
29
|
-
e() ?
|
|
29
|
+
e() ? o(!0) : n && Date.now() - r > n ? o(!1) : setTimeout(s, t ?? 30);
|
|
30
30
|
};
|
|
31
31
|
s();
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function T() {
|
|
35
35
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
36
|
-
if (
|
|
37
|
-
return
|
|
36
|
+
if (T.cache.has(e))
|
|
37
|
+
return T.cache.get(e);
|
|
38
38
|
const n = e.replace(/[^a-z]/gi, "-").replace(/\B([A-Z])/g, "-$1").toLowerCase();
|
|
39
|
-
return
|
|
39
|
+
return T.cache.set(e, n), n;
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
function
|
|
43
|
-
const t =
|
|
41
|
+
T.cache = /* @__PURE__ */ new Map();
|
|
42
|
+
function te(e, n) {
|
|
43
|
+
const t = de();
|
|
44
44
|
if (!t)
|
|
45
45
|
throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);
|
|
46
46
|
return t;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function ye() {
|
|
49
49
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "composables";
|
|
50
|
-
const n =
|
|
51
|
-
return
|
|
50
|
+
const n = te(e).type;
|
|
51
|
+
return T((n == null ? void 0 : n.aliasName) || (n == null ? void 0 : n.name));
|
|
52
52
|
}
|
|
53
|
-
const
|
|
54
|
-
function
|
|
55
|
-
const e =
|
|
53
|
+
const we = Symbol.for("vuetify:locale");
|
|
54
|
+
function Z() {
|
|
55
|
+
const e = X(we);
|
|
56
56
|
if (!e)
|
|
57
57
|
throw new Error("[Vuetify] Could not find injected locale instance");
|
|
58
58
|
return e;
|
|
59
59
|
}
|
|
60
|
-
const
|
|
61
|
-
function
|
|
62
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
63
|
-
const t =
|
|
60
|
+
const Ce = Symbol.for("vuetify:display");
|
|
61
|
+
function be() {
|
|
62
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ye();
|
|
63
|
+
const t = X(Ce);
|
|
64
64
|
if (!t)
|
|
65
65
|
throw new Error("Could not find Vuetify display injection");
|
|
66
|
-
const
|
|
66
|
+
const r = p(() => {
|
|
67
67
|
if (!e.mobileBreakpoint)
|
|
68
68
|
return t.mobile.value;
|
|
69
69
|
const s = typeof e.mobileBreakpoint == "number" ? e.mobileBreakpoint : t.thresholds.value[e.mobileBreakpoint];
|
|
70
70
|
return t.width.value < s;
|
|
71
|
-
}),
|
|
72
|
-
[`${n}--mobile`]:
|
|
71
|
+
}), o = p(() => n ? {
|
|
72
|
+
[`${n}--mobile`]: r.value
|
|
73
73
|
} : {});
|
|
74
74
|
return {
|
|
75
75
|
...t,
|
|
76
|
-
displayClasses:
|
|
77
|
-
mobile:
|
|
76
|
+
displayClasses: o,
|
|
77
|
+
mobile: r
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
const
|
|
81
|
-
function
|
|
82
|
-
|
|
83
|
-
const e =
|
|
80
|
+
const ke = Symbol.for("vuetify:theme");
|
|
81
|
+
function G() {
|
|
82
|
+
te("useTheme");
|
|
83
|
+
const e = X(ke, null);
|
|
84
84
|
if (!e)
|
|
85
85
|
throw new Error("Could not find Vuetify theme injection");
|
|
86
86
|
return e;
|
|
87
87
|
}
|
|
88
|
-
const
|
|
88
|
+
const De = /* @__PURE__ */ I({
|
|
89
89
|
__name: "index",
|
|
90
90
|
props: {
|
|
91
91
|
modelValue: { type: Boolean, required: !0 },
|
|
@@ -93,79 +93,79 @@ const we = /* @__PURE__ */ I({
|
|
|
93
93
|
},
|
|
94
94
|
emits: ["update:modelValue"],
|
|
95
95
|
setup(e) {
|
|
96
|
-
const n =
|
|
97
|
-
var
|
|
98
|
-
return ((
|
|
99
|
-
}),
|
|
100
|
-
var
|
|
101
|
-
return ((
|
|
102
|
-
}), f =
|
|
103
|
-
var
|
|
104
|
-
return ((
|
|
105
|
-
}),
|
|
106
|
-
var
|
|
107
|
-
return ((
|
|
96
|
+
const n = Z(), t = ee(e, "modelValue"), r = _(""), o = _(""), s = _(), l = _(), a = p(() => {
|
|
97
|
+
var d;
|
|
98
|
+
return ((d = s.value) == null ? void 0 : d.color) ?? "primary";
|
|
99
|
+
}), i = p(() => {
|
|
100
|
+
var d;
|
|
101
|
+
return ((d = s.value) == null ? void 0 : d.text) ?? n.t("cancel");
|
|
102
|
+
}), f = p(() => {
|
|
103
|
+
var d;
|
|
104
|
+
return ((d = l.value) == null ? void 0 : d.color) ?? "primary";
|
|
105
|
+
}), y = p(() => {
|
|
106
|
+
var d;
|
|
107
|
+
return ((d = l.value) == null ? void 0 : d.text) ?? n.t("confirm");
|
|
108
108
|
});
|
|
109
|
-
let
|
|
110
|
-
const
|
|
111
|
-
|
|
109
|
+
let q = 0, D = !1;
|
|
110
|
+
const U = (d) => {
|
|
111
|
+
r.value = d.title, o.value = d.text, s.value = d.cancel, l.value = d.confirm, q = d.seq, D = !1, t.value = !0;
|
|
112
112
|
};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}),
|
|
116
|
-
|
|
113
|
+
$(() => {
|
|
114
|
+
u.on("confirmDlg", U);
|
|
115
|
+
}), W(() => {
|
|
116
|
+
u.off("confirmDlg", U);
|
|
117
117
|
});
|
|
118
|
-
const
|
|
119
|
-
t.value = !1, D || (
|
|
118
|
+
const j = () => {
|
|
119
|
+
t.value = !1, D || (u.emit("confirmDlgResult" + q, !0), D = !0);
|
|
120
120
|
};
|
|
121
|
-
return
|
|
122
|
-
!
|
|
123
|
-
}), (
|
|
124
|
-
const
|
|
125
|
-
return k(),
|
|
121
|
+
return F(t, (d) => {
|
|
122
|
+
!d && !D && (u.emit("confirmDlgResult" + q, !1), D = !0);
|
|
123
|
+
}), (d, w) => {
|
|
124
|
+
const S = m("v-card-title"), A = m("v-card-text"), V = m("v-btn"), c = m("v-card-actions"), x = m("v-card"), z = m("v-dialog");
|
|
125
|
+
return k(), E(z, {
|
|
126
126
|
modelValue: t.value,
|
|
127
|
-
"onUpdate:modelValue": w[1] || (w[1] = (
|
|
127
|
+
"onUpdate:modelValue": w[1] || (w[1] = (B) => t.value = B),
|
|
128
128
|
onKeydown: [
|
|
129
|
-
w[2] || (w[2] =
|
|
130
|
-
|
|
129
|
+
w[2] || (w[2] = O(M((B) => t.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
130
|
+
O(M(j, ["stop", "prevent"]), ["enter"])
|
|
131
131
|
],
|
|
132
132
|
transition: "dialog-top-transition",
|
|
133
133
|
"max-width": "600px"
|
|
134
134
|
}, {
|
|
135
135
|
default: v(() => [
|
|
136
|
-
x
|
|
136
|
+
h(x, null, {
|
|
137
137
|
default: v(() => [
|
|
138
|
-
|
|
138
|
+
h(S, null, {
|
|
139
139
|
default: v(() => [
|
|
140
|
-
|
|
140
|
+
b(C(r.value), 1)
|
|
141
141
|
]),
|
|
142
142
|
_: 1
|
|
143
143
|
}),
|
|
144
|
-
|
|
144
|
+
h(A, null, {
|
|
145
145
|
default: v(() => [
|
|
146
|
-
|
|
146
|
+
b(C(o.value), 1)
|
|
147
147
|
]),
|
|
148
148
|
_: 1
|
|
149
149
|
}),
|
|
150
|
-
|
|
150
|
+
h(c, { class: "d-flex justify-end" }, {
|
|
151
151
|
default: v(() => [
|
|
152
|
-
|
|
153
|
-
onClick: w[0] || (w[0] = (
|
|
154
|
-
color:
|
|
152
|
+
h(V, {
|
|
153
|
+
onClick: w[0] || (w[0] = (B) => t.value = !1),
|
|
154
|
+
color: a.value,
|
|
155
155
|
variant: "text"
|
|
156
156
|
}, {
|
|
157
157
|
default: v(() => [
|
|
158
|
-
|
|
158
|
+
b(C(i.value), 1)
|
|
159
159
|
]),
|
|
160
160
|
_: 1
|
|
161
161
|
}, 8, ["color"]),
|
|
162
|
-
|
|
163
|
-
onClick:
|
|
162
|
+
h(V, {
|
|
163
|
+
onClick: j,
|
|
164
164
|
color: f.value,
|
|
165
165
|
variant: "text"
|
|
166
166
|
}, {
|
|
167
167
|
default: v(() => [
|
|
168
|
-
|
|
168
|
+
b(C(y.value), 1)
|
|
169
169
|
]),
|
|
170
170
|
_: 1
|
|
171
171
|
}, 8, ["color"])
|
|
@@ -180,7 +180,7 @@ const we = /* @__PURE__ */ I({
|
|
|
180
180
|
}, 8, ["modelValue", "onKeydown"]);
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
|
-
}),
|
|
183
|
+
}), Se = (e) => (fe("data-v-a8f3d91f"), e = e(), me(), e), qe = /* @__PURE__ */ Se(() => /* @__PURE__ */ g("div", { class: "lds-spinner" }, [
|
|
184
184
|
/* @__PURE__ */ g("div"),
|
|
185
185
|
/* @__PURE__ */ g("div"),
|
|
186
186
|
/* @__PURE__ */ g("div"),
|
|
@@ -193,9 +193,9 @@ const we = /* @__PURE__ */ I({
|
|
|
193
193
|
/* @__PURE__ */ g("div"),
|
|
194
194
|
/* @__PURE__ */ g("div"),
|
|
195
195
|
/* @__PURE__ */ g("div")
|
|
196
|
-
], -1)),
|
|
197
|
-
|
|
198
|
-
],
|
|
196
|
+
], -1)), Ie = [
|
|
197
|
+
qe
|
|
198
|
+
], Ve = /* @__PURE__ */ I({
|
|
199
199
|
__name: "index",
|
|
200
200
|
props: {
|
|
201
201
|
zIndex: {
|
|
@@ -204,21 +204,21 @@ const we = /* @__PURE__ */ I({
|
|
|
204
204
|
}
|
|
205
205
|
},
|
|
206
206
|
setup(e) {
|
|
207
|
-
const n =
|
|
207
|
+
const n = G(), t = e, r = p(() => ({
|
|
208
208
|
background: n.current.value.dark ? "#1e1e1e" : "#ffffff",
|
|
209
209
|
zIndex: t.zIndex
|
|
210
210
|
}));
|
|
211
|
-
return (
|
|
211
|
+
return (o, s) => (k(), N("div", {
|
|
212
212
|
class: "x-cont",
|
|
213
|
-
style:
|
|
214
|
-
},
|
|
213
|
+
style: pe(r.value)
|
|
214
|
+
}, Ie, 4));
|
|
215
215
|
}
|
|
216
|
-
}),
|
|
216
|
+
}), ne = (e, n) => {
|
|
217
217
|
const t = e.__vccOpts || e;
|
|
218
|
-
for (const [
|
|
219
|
-
t[
|
|
218
|
+
for (const [r, o] of n)
|
|
219
|
+
t[r] = o;
|
|
220
220
|
return t;
|
|
221
|
-
},
|
|
221
|
+
}, Be = /* @__PURE__ */ ne(Ve, [["__scopeId", "data-v-a8f3d91f"]]), Re = /* @__PURE__ */ I({
|
|
222
222
|
__name: "item",
|
|
223
223
|
props: {
|
|
224
224
|
id: {
|
|
@@ -240,35 +240,35 @@ const we = /* @__PURE__ */ I({
|
|
|
240
240
|
},
|
|
241
241
|
emits: ["timeout"],
|
|
242
242
|
setup(e, { emit: n }) {
|
|
243
|
-
const t = e,
|
|
244
|
-
let
|
|
243
|
+
const t = e, r = _(!0), o = n, s = p(() => {
|
|
244
|
+
let l = "";
|
|
245
245
|
switch (t.type) {
|
|
246
246
|
case "error":
|
|
247
|
-
|
|
247
|
+
l = "cancel";
|
|
248
248
|
break;
|
|
249
249
|
case "info":
|
|
250
|
-
|
|
250
|
+
l = "info";
|
|
251
251
|
break;
|
|
252
252
|
case "success":
|
|
253
|
-
|
|
253
|
+
l = "check-circle";
|
|
254
254
|
break;
|
|
255
255
|
case "warning":
|
|
256
|
-
|
|
256
|
+
l = "error";
|
|
257
257
|
break;
|
|
258
258
|
}
|
|
259
|
-
return
|
|
259
|
+
return l;
|
|
260
260
|
});
|
|
261
|
-
return
|
|
261
|
+
return $(() => {
|
|
262
262
|
setTimeout(() => {
|
|
263
|
-
|
|
263
|
+
o("timeout", t.id);
|
|
264
264
|
}, t.timeout);
|
|
265
|
-
}),
|
|
266
|
-
|
|
267
|
-
}), (
|
|
268
|
-
const
|
|
269
|
-
return k(),
|
|
270
|
-
modelValue:
|
|
271
|
-
"onUpdate:modelValue":
|
|
265
|
+
}), F(r, (l) => {
|
|
266
|
+
l || o("timeout", t.id);
|
|
267
|
+
}), (l, a) => {
|
|
268
|
+
const i = m("v-alert");
|
|
269
|
+
return k(), E(i, {
|
|
270
|
+
modelValue: r.value,
|
|
271
|
+
"onUpdate:modelValue": a[0] || (a[0] = (f) => r.value = f),
|
|
272
272
|
class: "mt-2",
|
|
273
273
|
type: e.type,
|
|
274
274
|
icon: s.value,
|
|
@@ -281,35 +281,35 @@ const we = /* @__PURE__ */ I({
|
|
|
281
281
|
}, null, 8, ["modelValue", "type", "icon", "text"]);
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
|
-
}),
|
|
284
|
+
}), Te = /* @__PURE__ */ I({
|
|
285
285
|
__name: "index",
|
|
286
286
|
setup(e) {
|
|
287
|
-
const n =
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
}),
|
|
291
|
-
|
|
287
|
+
const n = ve({ items: [] });
|
|
288
|
+
$(() => {
|
|
289
|
+
u.on("message", t);
|
|
290
|
+
}), W(() => {
|
|
291
|
+
u.off("message", t);
|
|
292
292
|
});
|
|
293
|
-
const t = (
|
|
294
|
-
s(
|
|
295
|
-
},
|
|
296
|
-
|
|
293
|
+
const t = (a) => {
|
|
294
|
+
s(a.type, a.text, a.timeout);
|
|
295
|
+
}, r = (a) => {
|
|
296
|
+
l(a);
|
|
297
297
|
};
|
|
298
|
-
let
|
|
299
|
-
const s = (
|
|
300
|
-
const
|
|
301
|
-
n.items.push({ id:
|
|
302
|
-
},
|
|
303
|
-
const
|
|
304
|
-
|
|
298
|
+
let o = 0;
|
|
299
|
+
const s = (a, i, f) => {
|
|
300
|
+
const y = o++;
|
|
301
|
+
n.items.push({ id: y, type: a, text: i, timeout: f });
|
|
302
|
+
}, l = (a) => {
|
|
303
|
+
const i = n.items.findIndex((f) => f.id === a);
|
|
304
|
+
i >= 0 && n.items.splice(i, 1);
|
|
305
305
|
};
|
|
306
|
-
return (
|
|
307
|
-
onClick:
|
|
306
|
+
return (a, i) => (k(), N("div", {
|
|
307
|
+
onClick: i[0] || (i[0] = M(() => {
|
|
308
308
|
}, ["stop"])),
|
|
309
309
|
class: "x-cont d-flex flex-column-reverse align-center"
|
|
310
310
|
}, [
|
|
311
|
-
(k(!0),
|
|
312
|
-
onTimeout:
|
|
311
|
+
(k(!0), N(ge, null, _e(n.items, (f) => (k(), E(Re, {
|
|
312
|
+
onTimeout: r,
|
|
313
313
|
id: f.id,
|
|
314
314
|
type: f.type,
|
|
315
315
|
text: f.text,
|
|
@@ -318,7 +318,7 @@ const we = /* @__PURE__ */ I({
|
|
|
318
318
|
}, null, 8, ["id", "type", "text", "timeout"]))), 128))
|
|
319
319
|
]));
|
|
320
320
|
}
|
|
321
|
-
}),
|
|
321
|
+
}), Me = /* @__PURE__ */ ne(Te, [["__scopeId", "data-v-70ed4b89"]]), $e = /* @__PURE__ */ I({
|
|
322
322
|
__name: "index",
|
|
323
323
|
props: {
|
|
324
324
|
modelValue: { type: Boolean, required: !0 },
|
|
@@ -326,94 +326,94 @@ const we = /* @__PURE__ */ I({
|
|
|
326
326
|
},
|
|
327
327
|
emits: ["update:modelValue"],
|
|
328
328
|
setup(e) {
|
|
329
|
-
const n =
|
|
330
|
-
var
|
|
331
|
-
return ((
|
|
332
|
-
}), D =
|
|
333
|
-
var
|
|
334
|
-
return ((
|
|
335
|
-
}),
|
|
336
|
-
var
|
|
337
|
-
return ((
|
|
338
|
-
}),
|
|
339
|
-
var
|
|
340
|
-
return ((
|
|
341
|
-
}),
|
|
342
|
-
let w = 0,
|
|
343
|
-
const
|
|
344
|
-
var
|
|
345
|
-
|
|
329
|
+
const n = Z(), t = ee(e, "modelValue"), r = _(""), o = _(""), s = _(), l = _(), a = _(), i = _(""), f = _(), y = _(), q = p(() => {
|
|
330
|
+
var c;
|
|
331
|
+
return ((c = f.value) == null ? void 0 : c.color) ?? "primary";
|
|
332
|
+
}), D = p(() => {
|
|
333
|
+
var c;
|
|
334
|
+
return ((c = f.value) == null ? void 0 : c.text) ?? n.t("cancel");
|
|
335
|
+
}), U = p(() => {
|
|
336
|
+
var c;
|
|
337
|
+
return ((c = y.value) == null ? void 0 : c.color) ?? "primary";
|
|
338
|
+
}), j = p(() => {
|
|
339
|
+
var c;
|
|
340
|
+
return ((c = y.value) == null ? void 0 : c.text) ?? n.t("confirm");
|
|
341
|
+
}), d = _();
|
|
342
|
+
let w = 0, S = !1;
|
|
343
|
+
const A = async (c) => {
|
|
344
|
+
var x;
|
|
345
|
+
r.value = c.title, o.value = c.text, s.value = c.label, l.value = c.placeholder, a.value = c.rules, i.value = c.value, f.value = c.cancel, y.value = c.confirm, w = c.seq, S = !1, t.value = !0, await H(() => d.value !== void 0, 1e3), (x = d.value) == null || x.focus();
|
|
346
346
|
};
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
}),
|
|
350
|
-
|
|
347
|
+
$(() => {
|
|
348
|
+
u.on("promptDlg", A);
|
|
349
|
+
}), W(() => {
|
|
350
|
+
u.off("promptDlg", A);
|
|
351
351
|
});
|
|
352
|
-
const
|
|
353
|
-
t.value = !1,
|
|
352
|
+
const V = () => {
|
|
353
|
+
t.value = !1, S || (u.emit("promptDlgResult" + w, i.value ?? ""), S = !0);
|
|
354
354
|
};
|
|
355
|
-
return
|
|
356
|
-
!
|
|
357
|
-
}), (
|
|
358
|
-
const
|
|
359
|
-
return k(),
|
|
355
|
+
return F(t, (c) => {
|
|
356
|
+
!c && !S && (u.emit("promptDlgResult" + w, void 0), S = !0);
|
|
357
|
+
}), (c, x) => {
|
|
358
|
+
const z = m("v-card-title"), B = m("v-card-text"), ae = m("v-text-field"), se = m("v-form"), J = m("v-btn"), ie = m("v-card-actions"), ce = m("v-card"), ue = m("v-dialog");
|
|
359
|
+
return k(), E(ue, {
|
|
360
360
|
modelValue: t.value,
|
|
361
|
-
"onUpdate:modelValue":
|
|
361
|
+
"onUpdate:modelValue": x[2] || (x[2] = (R) => t.value = R),
|
|
362
362
|
onKeydown: [
|
|
363
|
-
|
|
364
|
-
|
|
363
|
+
x[3] || (x[3] = O(M((R) => t.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
364
|
+
O(M(V, ["stop", "prevent"]), ["enter"])
|
|
365
365
|
],
|
|
366
366
|
transition: "dialog-top-transition",
|
|
367
367
|
"max-width": "600px"
|
|
368
368
|
}, {
|
|
369
369
|
default: v(() => [
|
|
370
|
-
|
|
370
|
+
h(ce, null, {
|
|
371
371
|
default: v(() => [
|
|
372
|
-
|
|
372
|
+
h(z, null, {
|
|
373
373
|
default: v(() => [
|
|
374
|
-
|
|
374
|
+
b(C(r.value), 1)
|
|
375
375
|
]),
|
|
376
376
|
_: 1
|
|
377
377
|
}),
|
|
378
|
-
|
|
378
|
+
h(B, null, {
|
|
379
379
|
default: v(() => [
|
|
380
|
-
|
|
380
|
+
b(C(o.value), 1)
|
|
381
381
|
]),
|
|
382
382
|
_: 1
|
|
383
383
|
}),
|
|
384
|
-
|
|
384
|
+
h(se, { class: "mx-3" }, {
|
|
385
385
|
default: v(() => [
|
|
386
|
-
|
|
387
|
-
modelValue:
|
|
388
|
-
"onUpdate:modelValue":
|
|
386
|
+
h(ae, {
|
|
387
|
+
modelValue: i.value,
|
|
388
|
+
"onUpdate:modelValue": x[0] || (x[0] = (R) => i.value = R),
|
|
389
389
|
label: s.value,
|
|
390
|
-
placeholder:
|
|
391
|
-
rules:
|
|
390
|
+
placeholder: l.value,
|
|
391
|
+
rules: a.value,
|
|
392
392
|
ref_key: "target",
|
|
393
|
-
ref:
|
|
393
|
+
ref: d
|
|
394
394
|
}, null, 8, ["modelValue", "label", "placeholder", "rules"])
|
|
395
395
|
]),
|
|
396
396
|
_: 1
|
|
397
397
|
}),
|
|
398
|
-
|
|
398
|
+
h(ie, { class: "d-flex justify-end" }, {
|
|
399
399
|
default: v(() => [
|
|
400
|
-
|
|
401
|
-
onClick:
|
|
402
|
-
color:
|
|
400
|
+
h(J, {
|
|
401
|
+
onClick: x[1] || (x[1] = (R) => t.value = !1),
|
|
402
|
+
color: q.value,
|
|
403
403
|
variant: "text"
|
|
404
404
|
}, {
|
|
405
405
|
default: v(() => [
|
|
406
|
-
|
|
406
|
+
b(C(D.value), 1)
|
|
407
407
|
]),
|
|
408
408
|
_: 1
|
|
409
409
|
}, 8, ["color"]),
|
|
410
|
-
|
|
411
|
-
onClick:
|
|
412
|
-
color:
|
|
410
|
+
h(J, {
|
|
411
|
+
onClick: V,
|
|
412
|
+
color: U.value,
|
|
413
413
|
variant: "text"
|
|
414
414
|
}, {
|
|
415
415
|
default: v(() => [
|
|
416
|
-
|
|
416
|
+
b(C(j.value), 1)
|
|
417
417
|
]),
|
|
418
418
|
_: 1
|
|
419
419
|
}, 8, ["color"])
|
|
@@ -428,37 +428,37 @@ const we = /* @__PURE__ */ I({
|
|
|
428
428
|
}, 8, ["modelValue", "onKeydown"]);
|
|
429
429
|
};
|
|
430
430
|
}
|
|
431
|
-
}),
|
|
431
|
+
}), Ee = { class: "mx-auto my-auto" }, Ue = { class: "d-flex align-center justify-center w-100 h-100" }, je = /* @__PURE__ */ I({
|
|
432
432
|
__name: "index",
|
|
433
433
|
setup(e) {
|
|
434
|
-
const n =
|
|
434
|
+
const n = Z(), t = _(!1), r = () => {
|
|
435
435
|
t.value = !0;
|
|
436
|
-
},
|
|
436
|
+
}, o = () => {
|
|
437
437
|
t.value = !1;
|
|
438
438
|
};
|
|
439
|
-
return
|
|
440
|
-
|
|
441
|
-
}),
|
|
442
|
-
|
|
443
|
-
}), (s,
|
|
444
|
-
const
|
|
445
|
-
return k(),
|
|
439
|
+
return $(() => {
|
|
440
|
+
u.on("openWaitDlg", r), u.on("closeWaitDlg", o);
|
|
441
|
+
}), W(() => {
|
|
442
|
+
u.off("openWaitDlg", r), u.off("closeWaitDlg", o);
|
|
443
|
+
}), (s, l) => {
|
|
444
|
+
const a = m("v-card"), i = m("v-dialog");
|
|
445
|
+
return k(), E(i, {
|
|
446
446
|
"model-value": t.value,
|
|
447
|
-
"onUpdate:modelValue":
|
|
447
|
+
"onUpdate:modelValue": l[0] || (l[0] = (f) => t.value = f),
|
|
448
448
|
persistent: "",
|
|
449
449
|
"no-click-animation": "",
|
|
450
450
|
fullscreen: ""
|
|
451
451
|
}, {
|
|
452
452
|
default: v(() => [
|
|
453
|
-
g("div",
|
|
454
|
-
|
|
453
|
+
g("div", Ee, [
|
|
454
|
+
h(a, {
|
|
455
455
|
width: "300px",
|
|
456
456
|
height: "80px",
|
|
457
457
|
loading: ""
|
|
458
458
|
}, {
|
|
459
459
|
default: v(() => [
|
|
460
|
-
g("div",
|
|
461
|
-
g("span", null,
|
|
460
|
+
g("div", Ue, [
|
|
461
|
+
g("span", null, C(he(n).t("waitingResponse")), 1)
|
|
462
462
|
])
|
|
463
463
|
]),
|
|
464
464
|
_: 1
|
|
@@ -470,99 +470,243 @@ const we = /* @__PURE__ */ I({
|
|
|
470
470
|
};
|
|
471
471
|
}
|
|
472
472
|
});
|
|
473
|
-
function
|
|
474
|
-
const e =
|
|
473
|
+
function Fe() {
|
|
474
|
+
const e = G(), n = p(() => e.global.current.value.colors.primary), t = p(() => e.global.current.value.colors.secondary), r = p(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), o = p(() => e.current.value.dark ? "#272727" : "#eeeeee"), s = p(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), l = p(() => e.current.value.dark ? "#303030" : "#f6f6f6"), a = p(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
475
475
|
return {
|
|
476
476
|
primaryColor: n,
|
|
477
477
|
secondaryColor: t,
|
|
478
|
-
backgroundColor0:
|
|
479
|
-
backgroundColor1:
|
|
478
|
+
backgroundColor0: r,
|
|
479
|
+
backgroundColor1: o,
|
|
480
480
|
backgroundColor2: s,
|
|
481
|
-
highlightColor:
|
|
482
|
-
borderColor:
|
|
481
|
+
highlightColor: l,
|
|
482
|
+
borderColor: a
|
|
483
483
|
};
|
|
484
484
|
}
|
|
485
|
-
function
|
|
486
|
-
const e =
|
|
487
|
-
return { dark: t, routeTransName:
|
|
485
|
+
function Ae() {
|
|
486
|
+
const e = G(), { width: n } = be(), t = p(() => e.current.value.dark), r = _(""), o = p(() => !!window.cordova), s = p(() => n.value <= 1280 ? n.value + "px" : n.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
|
|
487
|
+
return { dark: t, routeTransName: r, sysBarAvail: o, compactWidth: s };
|
|
488
488
|
}
|
|
489
|
-
let
|
|
490
|
-
function
|
|
489
|
+
let Q = Date.now();
|
|
490
|
+
function oe() {
|
|
491
491
|
const e = Date.now();
|
|
492
|
-
return e -
|
|
492
|
+
return e - Q > 500 ? (Q = e, !0) : !1;
|
|
493
493
|
}
|
|
494
|
-
let
|
|
495
|
-
function
|
|
496
|
-
return ++
|
|
494
|
+
let Pe = 0;
|
|
495
|
+
function re() {
|
|
496
|
+
return ++Pe;
|
|
497
497
|
}
|
|
498
|
-
async function
|
|
499
|
-
if (!
|
|
498
|
+
async function He(e) {
|
|
499
|
+
if (!oe())
|
|
500
500
|
return;
|
|
501
501
|
let n = !1, t;
|
|
502
|
-
const
|
|
502
|
+
const r = (s) => {
|
|
503
503
|
t = s, n = !0;
|
|
504
|
-
},
|
|
505
|
-
return
|
|
504
|
+
}, o = re();
|
|
505
|
+
return u.on("confirmDlgResult" + o, r), u.emit("confirmDlg", { ...e, seq: o }), await H(() => n), u.off("confirmDlgResult" + o, r), t;
|
|
506
506
|
}
|
|
507
|
-
async function
|
|
508
|
-
if (!
|
|
507
|
+
async function Ze(e) {
|
|
508
|
+
if (!oe())
|
|
509
509
|
return;
|
|
510
510
|
let n = !1, t;
|
|
511
|
-
const
|
|
511
|
+
const r = (s) => {
|
|
512
512
|
t = s, n = !0;
|
|
513
|
-
},
|
|
514
|
-
return
|
|
513
|
+
}, o = re();
|
|
514
|
+
return u.on("promptDlgResult" + o, r), u.emit("promptDlg", { ...e, seq: o }), await H(() => n), u.off("promptDlgResult" + o, r), t;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
517
|
-
|
|
516
|
+
function Ge() {
|
|
517
|
+
u.emit("openWaitDlg");
|
|
518
518
|
}
|
|
519
|
-
function
|
|
520
|
-
|
|
519
|
+
function Je() {
|
|
520
|
+
u.emit("closeWaitDlg");
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
|
|
522
|
+
function Qe(e, n) {
|
|
523
|
+
u.emit("message", { type: "error", text: e, timeout: n });
|
|
524
524
|
}
|
|
525
|
-
function
|
|
526
|
-
|
|
525
|
+
function Ye(e, n) {
|
|
526
|
+
u.emit("message", { type: "info", text: e, timeout: n });
|
|
527
527
|
}
|
|
528
|
-
function
|
|
529
|
-
|
|
528
|
+
function et(e, n) {
|
|
529
|
+
u.emit("message", { type: "success", text: e, timeout: n });
|
|
530
530
|
}
|
|
531
|
-
function
|
|
532
|
-
|
|
531
|
+
function tt(e, n) {
|
|
532
|
+
u.emit("message", { type: "warning", text: e, timeout: n });
|
|
533
533
|
}
|
|
534
|
-
function
|
|
535
|
-
var
|
|
534
|
+
function nt(e) {
|
|
535
|
+
var r, o;
|
|
536
536
|
if (!window.appAppear) {
|
|
537
537
|
window.appAppear = !0;
|
|
538
538
|
return;
|
|
539
539
|
}
|
|
540
|
-
const n = "single-spa-application:" + e, t = (
|
|
541
|
-
t && (t.remove("app-left", "app-right", "app-reset"), (
|
|
540
|
+
const n = "single-spa-application:" + e, t = (r = document.getElementById(n)) == null ? void 0 : r.classList;
|
|
541
|
+
t && (t.remove("app-left", "app-right", "app-reset"), (o = window.routeExtras) != null && o.forward ? t.add("app-left") : t.add("app-right"), setTimeout(() => {
|
|
542
542
|
t.add("app-reset");
|
|
543
543
|
}, 0));
|
|
544
544
|
}
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
545
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
546
|
+
function P(e) {
|
|
547
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
548
|
+
var t = arguments[n];
|
|
549
|
+
for (var r in t)
|
|
550
|
+
e[r] = t[r];
|
|
551
|
+
}
|
|
552
|
+
return e;
|
|
553
|
+
}
|
|
554
|
+
var Oe = {
|
|
555
|
+
read: function(e) {
|
|
556
|
+
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
557
|
+
},
|
|
558
|
+
write: function(e) {
|
|
559
|
+
return encodeURIComponent(e).replace(
|
|
560
|
+
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
561
|
+
decodeURIComponent
|
|
562
|
+
);
|
|
563
|
+
}
|
|
564
|
+
};
|
|
565
|
+
function K(e, n) {
|
|
566
|
+
function t(o, s, l) {
|
|
567
|
+
if (!(typeof document > "u")) {
|
|
568
|
+
l = P({}, n, l), typeof l.expires == "number" && (l.expires = new Date(Date.now() + l.expires * 864e5)), l.expires && (l.expires = l.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
569
|
+
var a = "";
|
|
570
|
+
for (var i in l)
|
|
571
|
+
l[i] && (a += "; " + i, l[i] !== !0 && (a += "=" + l[i].split(";")[0]));
|
|
572
|
+
return document.cookie = o + "=" + e.write(s, o) + a;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
function r(o) {
|
|
576
|
+
if (!(typeof document > "u" || arguments.length && !o)) {
|
|
577
|
+
for (var s = document.cookie ? document.cookie.split("; ") : [], l = {}, a = 0; a < s.length; a++) {
|
|
578
|
+
var i = s[a].split("="), f = i.slice(1).join("=");
|
|
579
|
+
try {
|
|
580
|
+
var y = decodeURIComponent(i[0]);
|
|
581
|
+
if (l[y] = e.read(f, y), o === y)
|
|
582
|
+
break;
|
|
583
|
+
} catch {
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
return o ? l[o] : l;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
return Object.create(
|
|
590
|
+
{
|
|
591
|
+
set: t,
|
|
592
|
+
get: r,
|
|
593
|
+
remove: function(o, s) {
|
|
594
|
+
t(
|
|
595
|
+
o,
|
|
596
|
+
"",
|
|
597
|
+
P({}, s, {
|
|
598
|
+
expires: -1
|
|
599
|
+
})
|
|
600
|
+
);
|
|
601
|
+
},
|
|
602
|
+
withAttributes: function(o) {
|
|
603
|
+
return K(this.converter, P({}, this.attributes, o));
|
|
604
|
+
},
|
|
605
|
+
withConverter: function(o) {
|
|
606
|
+
return K(P({}, this.converter, o), this.attributes);
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
attributes: { value: Object.freeze(n) },
|
|
611
|
+
converter: { value: Object.freeze(e) }
|
|
612
|
+
}
|
|
613
|
+
);
|
|
614
|
+
}
|
|
615
|
+
K(Oe, { path: "/" });
|
|
616
|
+
const We = [
|
|
617
|
+
{ path: "/passport/login", level: 0 },
|
|
618
|
+
{ path: "/passport/loginAccount", level: 1 },
|
|
619
|
+
{ path: "/passport/register", level: 1 },
|
|
620
|
+
{ path: "/org/joinOrCreate", level: 1, requiredState: "auth" },
|
|
621
|
+
{ path: "/org/manager", level: 1, requiredState: "org" },
|
|
622
|
+
{ path: "/main", level: 0, requiredState: "org" },
|
|
623
|
+
{ path: "/mine/personalInfo", level: 1, requiredState: "org" },
|
|
624
|
+
{ path: "/mine/accountSecurity", level: 2, requiredState: "org" },
|
|
625
|
+
{ path: "/mine/settings", level: 1, requiredState: "org" },
|
|
626
|
+
{ path: "/mine/general", level: 2, requiredState: "org" },
|
|
627
|
+
{ path: "/mine/general/darkMode", level: 3, requiredState: "org" },
|
|
628
|
+
{ path: "/mine/general/language", level: 3, requiredState: "org" },
|
|
629
|
+
{ path: "/app/manager", level: 1, requiredState: "org" },
|
|
630
|
+
{ path: "/app/editor", level: 2, requiredState: "org" },
|
|
631
|
+
{ path: "/app/editor/*", level: 2, requiredState: "org" },
|
|
632
|
+
{ path: "/asset", level: 1, requiredState: "org" },
|
|
633
|
+
{ path: "/calc", level: 1, requiredState: "org" },
|
|
634
|
+
{ path: "/data", level: 1, requiredState: "org" }
|
|
635
|
+
];
|
|
636
|
+
function le(e) {
|
|
637
|
+
let n, t = 0;
|
|
638
|
+
const r = e.split("/");
|
|
639
|
+
return We.forEach((o) => {
|
|
640
|
+
const s = o.path.split("/");
|
|
641
|
+
let l = 0;
|
|
642
|
+
for (let a = 0; a < r.length && !(a >= s.length || r[a] !== s[a]); a++)
|
|
643
|
+
l++;
|
|
644
|
+
l >= t && (n = o, t = l);
|
|
645
|
+
}), n;
|
|
646
|
+
}
|
|
647
|
+
function Y(e) {
|
|
648
|
+
if (e === "/")
|
|
649
|
+
return { app: "", path: "/", level: -1 };
|
|
650
|
+
const n = le(e);
|
|
651
|
+
if (!n)
|
|
652
|
+
return { app: "invalidApp", path: "/invalidApp/invalidRoute", level: -1 };
|
|
653
|
+
const t = e.split("/");
|
|
654
|
+
return console.assert(t.length >= 2), { app: t[1], path: n.path, level: n.level };
|
|
655
|
+
}
|
|
656
|
+
function L(e, n) {
|
|
657
|
+
const t = Y(e), r = Y(n);
|
|
658
|
+
console.info("~~~~before route change~~~~", t, r);
|
|
659
|
+
const o = t.app === r.app, s = t.path === r.path, l = t.level >= r.level;
|
|
660
|
+
if (o) {
|
|
661
|
+
const { routeTransName: a } = Ae();
|
|
662
|
+
s ? a.value = "" : a.value = l ? "inner-left" : "inner-right";
|
|
663
|
+
} else
|
|
664
|
+
window.routeExtras = { forward: l };
|
|
665
|
+
}
|
|
666
|
+
function ze() {
|
|
667
|
+
return !!(void 0)("accessToken");
|
|
668
|
+
}
|
|
669
|
+
function Le() {
|
|
670
|
+
return !!(void 0)("activeOrg");
|
|
671
|
+
}
|
|
672
|
+
function ot(e, n, t) {
|
|
673
|
+
ze(), Le();
|
|
674
|
+
const r = le(e.path);
|
|
675
|
+
if (!r) {
|
|
676
|
+
t();
|
|
677
|
+
return;
|
|
678
|
+
}
|
|
679
|
+
if (r.requiredState === "auth") {
|
|
680
|
+
const o = "/passport/login";
|
|
681
|
+
L(o, n.path), t({ path: o });
|
|
682
|
+
} else if (r.requiredState === "org") {
|
|
683
|
+
const o = "/passport/login";
|
|
684
|
+
L(o, n.path), t({ path: o });
|
|
685
|
+
} else
|
|
686
|
+
L(e.path, n.path), t();
|
|
687
|
+
}
|
|
688
|
+
const Ne = (e) => {
|
|
689
|
+
e.component("x-confirm-dlg", De), e.component("x-loading", Be), e.component("x-message", Me), e.component("x-prompt-dlg", $e), e.component("x-wait-dlg", je);
|
|
690
|
+
}, rt = { install: Ne };
|
|
548
691
|
export {
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
692
|
+
De as XConfirmDlg,
|
|
693
|
+
Be as XLoading,
|
|
694
|
+
Me as XMessage,
|
|
695
|
+
$e as XPromptDlg,
|
|
696
|
+
je as XWaitDlg,
|
|
697
|
+
nt as appAppear,
|
|
698
|
+
Je as closeWaitDlg,
|
|
699
|
+
rt as default,
|
|
700
|
+
Qe as messageError,
|
|
701
|
+
Ye as messageInfo,
|
|
702
|
+
et as messageSuccess,
|
|
703
|
+
tt as messageWarning,
|
|
704
|
+
ot as onBeforeEach,
|
|
705
|
+
He as openConfirmDlg,
|
|
706
|
+
Ze as openPromptDlg,
|
|
707
|
+
Ge as openWaitDlg,
|
|
708
|
+
Fe as useColor,
|
|
709
|
+
Ae as useSystem,
|
|
710
|
+
Xe as waitMs,
|
|
711
|
+
H as waitUtil
|
|
568
712
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-essential-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -22,14 +22,17 @@
|
|
|
22
22
|
"*": "prettier --write ."
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"mitt": "^3.0.1"
|
|
25
|
+
"mitt": "^3.0.1",
|
|
26
|
+
"vue-router": "^4.3.2"
|
|
26
27
|
},
|
|
27
28
|
"peerDependencies": {
|
|
29
|
+
"js-cookie": "^3.0.5",
|
|
28
30
|
"vue": "^3.4.23",
|
|
29
31
|
"vuetify": "^3.5.16"
|
|
30
32
|
},
|
|
31
33
|
"devDependencies": {
|
|
32
34
|
"@rushstack/eslint-patch": "^1.8.0",
|
|
35
|
+
"@types/js-cookie": "^3.0.5",
|
|
33
36
|
"@types/node": "^20.12.2",
|
|
34
37
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
35
38
|
"@vue/eslint-config-prettier": "^9.0.0",
|