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