x-essential-lib 0.1.3 → 0.1.5
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 +138 -134
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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 ae, inject as A, computed as d, defineComponent as I, useModel as H, ref as
|
|
2
|
+
import { getCurrentInstance as ae, inject as A, computed as d, defineComponent as I, useModel as H, ref as _, onMounted as W, onBeforeUnmount as U, watch as O, resolveComponent as p, openBlock as k, createBlock as M, withKeys as L, withModifiers as R, withCtx as v, createVNode as x, createTextVNode as h, toDisplayString as b, createElementBlock as z, normalizeStyle as se, pushScopeId as ce, popScopeId as ue, createElementVNode as g, reactive as ie, Fragment as de, renderList as fe, unref as me } from "vue";
|
|
3
3
|
function pe(e) {
|
|
4
4
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(n, t) {
|
|
5
5
|
var o = e.get(n);
|
|
@@ -17,7 +17,7 @@ function pe(e) {
|
|
|
17
17
|
} };
|
|
18
18
|
}
|
|
19
19
|
const a = pe();
|
|
20
|
-
async function
|
|
20
|
+
async function Ee(e) {
|
|
21
21
|
return new Promise((n) => {
|
|
22
22
|
setTimeout(n, e);
|
|
23
23
|
});
|
|
@@ -50,17 +50,17 @@ function ve() {
|
|
|
50
50
|
const n = J(e).type;
|
|
51
51
|
return B((n == null ? void 0 : n.aliasName) || (n == null ? void 0 : n.name));
|
|
52
52
|
}
|
|
53
|
-
const
|
|
53
|
+
const ge = Symbol.for("vuetify:locale");
|
|
54
54
|
function P() {
|
|
55
|
-
const e = A(
|
|
55
|
+
const e = A(ge);
|
|
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
|
|
60
|
+
const _e = Symbol.for("vuetify:display");
|
|
61
|
+
function xe() {
|
|
62
62
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ve();
|
|
63
|
-
const t = A(
|
|
63
|
+
const t = A(_e);
|
|
64
64
|
if (!t)
|
|
65
65
|
throw new Error("Could not find Vuetify display injection");
|
|
66
66
|
const o = d(() => {
|
|
@@ -77,15 +77,15 @@ function ye() {
|
|
|
77
77
|
mobile: o
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
const
|
|
80
|
+
const ye = Symbol.for("vuetify:theme");
|
|
81
81
|
function F() {
|
|
82
82
|
J("useTheme");
|
|
83
|
-
const e = A(
|
|
83
|
+
const e = A(ye, 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 we = /* @__PURE__ */ I({
|
|
89
89
|
__name: "index",
|
|
90
90
|
props: {
|
|
91
91
|
modelValue: { type: Boolean, required: !0 },
|
|
@@ -93,22 +93,22 @@ const qe = /* @__PURE__ */ I({
|
|
|
93
93
|
},
|
|
94
94
|
emits: ["update:modelValue"],
|
|
95
95
|
setup(e) {
|
|
96
|
-
const n = P(), t = H(e, "modelValue"), o =
|
|
97
|
-
var
|
|
98
|
-
return ((
|
|
96
|
+
const n = P(), t = H(e, "modelValue"), o = _(""), l = _(""), s = _(), u = _(), i = d(() => {
|
|
97
|
+
var c;
|
|
98
|
+
return ((c = s.value) == null ? void 0 : c.color) ?? "primary";
|
|
99
99
|
}), m = d(() => {
|
|
100
|
-
var
|
|
101
|
-
return ((
|
|
100
|
+
var c;
|
|
101
|
+
return ((c = s.value) == null ? void 0 : c.text) ?? n.t("cancel");
|
|
102
102
|
}), f = d(() => {
|
|
103
|
-
var
|
|
104
|
-
return ((
|
|
103
|
+
var c;
|
|
104
|
+
return ((c = u.value) == null ? void 0 : c.color) ?? "primary";
|
|
105
105
|
}), C = d(() => {
|
|
106
|
-
var
|
|
107
|
-
return ((
|
|
106
|
+
var c;
|
|
107
|
+
return ((c = u.value) == null ? void 0 : c.text) ?? n.t("confirm");
|
|
108
108
|
});
|
|
109
|
-
let
|
|
110
|
-
const E = (
|
|
111
|
-
o.value =
|
|
109
|
+
let S = 0, D = !1;
|
|
110
|
+
const E = (c) => {
|
|
111
|
+
o.value = c.title, l.value = c.text, s.value = c.cancel, u.value = c.confirm, S = c.seq, D = !1, t.value = !0;
|
|
112
112
|
};
|
|
113
113
|
W(() => {
|
|
114
114
|
a.on("confirmDlg", E);
|
|
@@ -116,41 +116,41 @@ const qe = /* @__PURE__ */ I({
|
|
|
116
116
|
a.off("confirmDlg", E);
|
|
117
117
|
});
|
|
118
118
|
const N = () => {
|
|
119
|
-
t.value = !1, D || (a.emit("confirmDlgResult" +
|
|
119
|
+
t.value = !1, D || (a.emit("confirmDlgResult" + S, !0), D = !0);
|
|
120
120
|
};
|
|
121
|
-
return O(t, (
|
|
122
|
-
!
|
|
123
|
-
}), (
|
|
124
|
-
const V = p("v-card-title"), j = p("v-card-text"),
|
|
121
|
+
return O(t, (c) => {
|
|
122
|
+
!c && !D && (a.emit("confirmDlgResult" + S, !1), D = !0);
|
|
123
|
+
}), (c, w) => {
|
|
124
|
+
const V = p("v-card-title"), j = p("v-card-text"), T = p("v-btn"), r = p("v-card-actions"), y = p("v-card"), K = p("v-dialog");
|
|
125
125
|
return k(), M(K, {
|
|
126
126
|
modelValue: t.value,
|
|
127
|
-
"onUpdate:modelValue": w[1] || (w[1] = (
|
|
127
|
+
"onUpdate:modelValue": w[1] || (w[1] = ($) => t.value = $),
|
|
128
128
|
onKeydown: [
|
|
129
|
-
w[2] || (w[2] = L(R((
|
|
129
|
+
w[2] || (w[2] = L(R(($) => t.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
130
130
|
L(R(N, ["stop", "prevent"]), ["enter"])
|
|
131
131
|
],
|
|
132
132
|
transition: "dialog-top-transition",
|
|
133
133
|
"max-width": "600px"
|
|
134
134
|
}, {
|
|
135
135
|
default: v(() => [
|
|
136
|
-
y
|
|
136
|
+
x(y, null, {
|
|
137
137
|
default: v(() => [
|
|
138
|
-
|
|
138
|
+
x(V, null, {
|
|
139
139
|
default: v(() => [
|
|
140
140
|
h(b(o.value), 1)
|
|
141
141
|
]),
|
|
142
142
|
_: 1
|
|
143
143
|
}),
|
|
144
|
-
|
|
144
|
+
x(j, null, {
|
|
145
145
|
default: v(() => [
|
|
146
146
|
h(b(l.value), 1)
|
|
147
147
|
]),
|
|
148
148
|
_: 1
|
|
149
149
|
}),
|
|
150
|
-
|
|
150
|
+
x(r, { class: "d-flex justify-end" }, {
|
|
151
151
|
default: v(() => [
|
|
152
|
-
|
|
153
|
-
onClick: w[0] || (w[0] = (
|
|
152
|
+
x(T, {
|
|
153
|
+
onClick: w[0] || (w[0] = ($) => t.value = !1),
|
|
154
154
|
color: i.value,
|
|
155
155
|
variant: "text"
|
|
156
156
|
}, {
|
|
@@ -159,7 +159,7 @@ const qe = /* @__PURE__ */ I({
|
|
|
159
159
|
]),
|
|
160
160
|
_: 1
|
|
161
161
|
}, 8, ["color"]),
|
|
162
|
-
|
|
162
|
+
x(T, {
|
|
163
163
|
onClick: N,
|
|
164
164
|
color: f.value,
|
|
165
165
|
variant: "text"
|
|
@@ -180,22 +180,22 @@ const qe = /* @__PURE__ */ I({
|
|
|
180
180
|
}, 8, ["modelValue", "onKeydown"]);
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
|
-
}),
|
|
184
|
-
/* @__PURE__ */
|
|
185
|
-
/* @__PURE__ */
|
|
186
|
-
/* @__PURE__ */
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
/* @__PURE__ */
|
|
189
|
-
/* @__PURE__ */
|
|
190
|
-
/* @__PURE__ */
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
-
/* @__PURE__ */
|
|
193
|
-
/* @__PURE__ */
|
|
194
|
-
/* @__PURE__ */
|
|
195
|
-
/* @__PURE__ */
|
|
196
|
-
], -1)),
|
|
197
|
-
|
|
198
|
-
],
|
|
183
|
+
}), be = (e) => (ce("data-v-a8f3d91f"), e = e(), ue(), e), he = /* @__PURE__ */ be(() => /* @__PURE__ */ g("div", { class: "lds-spinner" }, [
|
|
184
|
+
/* @__PURE__ */ g("div"),
|
|
185
|
+
/* @__PURE__ */ g("div"),
|
|
186
|
+
/* @__PURE__ */ g("div"),
|
|
187
|
+
/* @__PURE__ */ g("div"),
|
|
188
|
+
/* @__PURE__ */ g("div"),
|
|
189
|
+
/* @__PURE__ */ g("div"),
|
|
190
|
+
/* @__PURE__ */ g("div"),
|
|
191
|
+
/* @__PURE__ */ g("div"),
|
|
192
|
+
/* @__PURE__ */ g("div"),
|
|
193
|
+
/* @__PURE__ */ g("div"),
|
|
194
|
+
/* @__PURE__ */ g("div"),
|
|
195
|
+
/* @__PURE__ */ g("div")
|
|
196
|
+
], -1)), ke = [
|
|
197
|
+
he
|
|
198
|
+
], Ce = /* @__PURE__ */ I({
|
|
199
199
|
__name: "index",
|
|
200
200
|
props: {
|
|
201
201
|
zIndex: {
|
|
@@ -211,14 +211,14 @@ const qe = /* @__PURE__ */ I({
|
|
|
211
211
|
return (l, s) => (k(), z("div", {
|
|
212
212
|
class: "x-cont",
|
|
213
213
|
style: se(o.value)
|
|
214
|
-
},
|
|
214
|
+
}, ke, 4));
|
|
215
215
|
}
|
|
216
216
|
}), Q = (e, n) => {
|
|
217
217
|
const t = e.__vccOpts || e;
|
|
218
218
|
for (const [o, l] of n)
|
|
219
219
|
t[o] = l;
|
|
220
220
|
return t;
|
|
221
|
-
},
|
|
221
|
+
}, De = /* @__PURE__ */ Q(Ce, [["__scopeId", "data-v-a8f3d91f"]]), Ve = /* @__PURE__ */ I({
|
|
222
222
|
__name: "item",
|
|
223
223
|
props: {
|
|
224
224
|
id: {
|
|
@@ -240,31 +240,31 @@ const qe = /* @__PURE__ */ I({
|
|
|
240
240
|
},
|
|
241
241
|
emits: ["timeout"],
|
|
242
242
|
setup(e, { emit: n }) {
|
|
243
|
-
const t = e, o =
|
|
244
|
-
let
|
|
243
|
+
const t = e, o = _(!0), l = n, s = d(() => {
|
|
244
|
+
let u = "";
|
|
245
245
|
switch (t.type) {
|
|
246
246
|
case "error":
|
|
247
|
-
|
|
247
|
+
u = "cancel";
|
|
248
248
|
break;
|
|
249
249
|
case "info":
|
|
250
|
-
|
|
250
|
+
u = "info";
|
|
251
251
|
break;
|
|
252
252
|
case "success":
|
|
253
|
-
|
|
253
|
+
u = "check-circle";
|
|
254
254
|
break;
|
|
255
255
|
case "warning":
|
|
256
|
-
|
|
256
|
+
u = "error";
|
|
257
257
|
break;
|
|
258
258
|
}
|
|
259
|
-
return
|
|
259
|
+
return u;
|
|
260
260
|
});
|
|
261
261
|
return W(() => {
|
|
262
262
|
setTimeout(() => {
|
|
263
263
|
l("timeout", t.id);
|
|
264
264
|
}, t.timeout);
|
|
265
|
-
}), O(o, (
|
|
266
|
-
|
|
267
|
-
}), (
|
|
265
|
+
}), O(o, (u) => {
|
|
266
|
+
u || l("timeout", t.id);
|
|
267
|
+
}), (u, i) => {
|
|
268
268
|
const m = p("v-alert");
|
|
269
269
|
return k(), M(m, {
|
|
270
270
|
modelValue: o.value,
|
|
@@ -281,7 +281,7 @@ const qe = /* @__PURE__ */ I({
|
|
|
281
281
|
}, null, 8, ["modelValue", "type", "icon", "text"]);
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
|
-
}),
|
|
284
|
+
}), Ie = /* @__PURE__ */ I({
|
|
285
285
|
__name: "index",
|
|
286
286
|
setup(e) {
|
|
287
287
|
const n = ie({ items: [] });
|
|
@@ -293,13 +293,13 @@ const qe = /* @__PURE__ */ I({
|
|
|
293
293
|
const t = (i) => {
|
|
294
294
|
s(i.type, i.text, i.timeout);
|
|
295
295
|
}, o = (i) => {
|
|
296
|
-
|
|
296
|
+
u(i);
|
|
297
297
|
};
|
|
298
298
|
let l = 0;
|
|
299
299
|
const s = (i, m, f) => {
|
|
300
300
|
const C = l++;
|
|
301
301
|
n.items.push({ id: C, type: i, text: m, timeout: f });
|
|
302
|
-
},
|
|
302
|
+
}, u = (i) => {
|
|
303
303
|
const m = n.items.findIndex((f) => f.id === i);
|
|
304
304
|
m >= 0 && n.items.splice(m, 1);
|
|
305
305
|
};
|
|
@@ -308,7 +308,7 @@ const qe = /* @__PURE__ */ I({
|
|
|
308
308
|
}, ["stop"])),
|
|
309
309
|
class: "x-cont d-flex flex-column-reverse align-center"
|
|
310
310
|
}, [
|
|
311
|
-
(k(!0), z(de, null, fe(n.items, (f) => (k(), M(
|
|
311
|
+
(k(!0), z(de, null, fe(n.items, (f) => (k(), M(Ve, {
|
|
312
312
|
onTimeout: o,
|
|
313
313
|
id: f.id,
|
|
314
314
|
type: f.type,
|
|
@@ -318,7 +318,7 @@ const qe = /* @__PURE__ */ I({
|
|
|
318
318
|
}, null, 8, ["id", "type", "text", "timeout"]))), 128))
|
|
319
319
|
]));
|
|
320
320
|
}
|
|
321
|
-
}),
|
|
321
|
+
}), Se = /* @__PURE__ */ Q(Ie, [["__scopeId", "data-v-70ed4b89"]]), Te = /* @__PURE__ */ I({
|
|
322
322
|
__name: "index",
|
|
323
323
|
props: {
|
|
324
324
|
modelValue: { type: Boolean, required: !0 },
|
|
@@ -326,7 +326,7 @@ const qe = /* @__PURE__ */ I({
|
|
|
326
326
|
},
|
|
327
327
|
emits: ["update:modelValue"],
|
|
328
328
|
setup(e) {
|
|
329
|
-
const n = P(), t = H(e, "modelValue"), o =
|
|
329
|
+
const n = P(), t = H(e, "modelValue"), o = _(""), l = _(""), s = _(), u = _(), i = _(), m = _(""), f = _(), C = _(), S = d(() => {
|
|
330
330
|
var r;
|
|
331
331
|
return ((r = f.value) == null ? void 0 : r.color) ?? "primary";
|
|
332
332
|
}), D = d(() => {
|
|
@@ -338,68 +338,68 @@ const qe = /* @__PURE__ */ I({
|
|
|
338
338
|
}), N = d(() => {
|
|
339
339
|
var r;
|
|
340
340
|
return ((r = C.value) == null ? void 0 : r.text) ?? n.t("confirm");
|
|
341
|
-
}),
|
|
341
|
+
}), c = _();
|
|
342
342
|
let w = 0, V = !1;
|
|
343
343
|
const j = async (r) => {
|
|
344
|
-
var
|
|
345
|
-
o.value = r.title, l.value = r.text, s.value = r.label,
|
|
344
|
+
var y;
|
|
345
|
+
o.value = r.title, l.value = r.text, s.value = r.label, u.value = r.placeholder, i.value = r.rules, m.value = r.value, f.value = r.cancel, C.value = r.confirm, w = r.seq, V = !1, t.value = !0, await X(() => c.value !== void 0, 1e3), (y = c.value) == null || y.focus();
|
|
346
346
|
};
|
|
347
347
|
W(() => {
|
|
348
348
|
a.on("promptDlg", j);
|
|
349
349
|
}), U(() => {
|
|
350
350
|
a.off("promptDlg", j);
|
|
351
351
|
});
|
|
352
|
-
const
|
|
352
|
+
const T = () => {
|
|
353
353
|
t.value = !1, V || (a.emit("promptDlgResult" + w, m.value ?? ""), V = !0);
|
|
354
354
|
};
|
|
355
355
|
return O(t, (r) => {
|
|
356
356
|
!r && !V && (a.emit("promptDlgResult" + w, void 0), V = !0);
|
|
357
|
-
}), (r,
|
|
358
|
-
const K = p("v-card-title"),
|
|
357
|
+
}), (r, y) => {
|
|
358
|
+
const K = p("v-card-title"), $ = p("v-card-text"), te = p("v-text-field"), ne = p("v-form"), Z = p("v-btn"), oe = p("v-card-actions"), le = p("v-card"), re = p("v-dialog");
|
|
359
359
|
return k(), M(re, {
|
|
360
360
|
modelValue: t.value,
|
|
361
|
-
"onUpdate:modelValue":
|
|
361
|
+
"onUpdate:modelValue": y[2] || (y[2] = (q) => t.value = q),
|
|
362
362
|
onKeydown: [
|
|
363
|
-
|
|
364
|
-
L(R(
|
|
363
|
+
y[3] || (y[3] = L(R((q) => t.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
364
|
+
L(R(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
|
+
x(le, null, {
|
|
371
371
|
default: v(() => [
|
|
372
|
-
|
|
372
|
+
x(K, null, {
|
|
373
373
|
default: v(() => [
|
|
374
374
|
h(b(o.value), 1)
|
|
375
375
|
]),
|
|
376
376
|
_: 1
|
|
377
377
|
}),
|
|
378
|
-
|
|
378
|
+
x($, null, {
|
|
379
379
|
default: v(() => [
|
|
380
380
|
h(b(l.value), 1)
|
|
381
381
|
]),
|
|
382
382
|
_: 1
|
|
383
383
|
}),
|
|
384
|
-
|
|
384
|
+
x(ne, { class: "mx-3" }, {
|
|
385
385
|
default: v(() => [
|
|
386
|
-
|
|
386
|
+
x(te, {
|
|
387
387
|
modelValue: m.value,
|
|
388
|
-
"onUpdate:modelValue":
|
|
388
|
+
"onUpdate:modelValue": y[0] || (y[0] = (q) => m.value = q),
|
|
389
389
|
label: s.value,
|
|
390
|
-
placeholder:
|
|
390
|
+
placeholder: u.value,
|
|
391
391
|
rules: i.value,
|
|
392
392
|
ref_key: "target",
|
|
393
|
-
ref:
|
|
393
|
+
ref: c
|
|
394
394
|
}, null, 8, ["modelValue", "label", "placeholder", "rules"])
|
|
395
395
|
]),
|
|
396
396
|
_: 1
|
|
397
397
|
}),
|
|
398
|
-
|
|
398
|
+
x(oe, { class: "d-flex justify-end" }, {
|
|
399
399
|
default: v(() => [
|
|
400
|
-
|
|
401
|
-
onClick:
|
|
402
|
-
color:
|
|
400
|
+
x(Z, {
|
|
401
|
+
onClick: y[1] || (y[1] = (q) => t.value = !1),
|
|
402
|
+
color: S.value,
|
|
403
403
|
variant: "text"
|
|
404
404
|
}, {
|
|
405
405
|
default: v(() => [
|
|
@@ -407,8 +407,8 @@ const qe = /* @__PURE__ */ I({
|
|
|
407
407
|
]),
|
|
408
408
|
_: 1
|
|
409
409
|
}, 8, ["color"]),
|
|
410
|
-
|
|
411
|
-
onClick:
|
|
410
|
+
x(Z, {
|
|
411
|
+
onClick: T,
|
|
412
412
|
color: E.value,
|
|
413
413
|
variant: "text"
|
|
414
414
|
}, {
|
|
@@ -428,10 +428,10 @@ const qe = /* @__PURE__ */ I({
|
|
|
428
428
|
}, 8, ["modelValue", "onKeydown"]);
|
|
429
429
|
};
|
|
430
430
|
}
|
|
431
|
-
}),
|
|
431
|
+
}), $e = { class: "mx-auto my-auto" }, qe = { class: "d-flex align-center justify-center w-100 h-100" }, Be = /* @__PURE__ */ I({
|
|
432
432
|
__name: "index",
|
|
433
433
|
setup(e) {
|
|
434
|
-
const n = P(), t =
|
|
434
|
+
const n = P(), t = _(!1), o = () => {
|
|
435
435
|
t.value = !0;
|
|
436
436
|
}, l = () => {
|
|
437
437
|
t.value = !1;
|
|
@@ -440,25 +440,25 @@ const qe = /* @__PURE__ */ I({
|
|
|
440
440
|
a.on("openWaitDlg", o), a.on("closeWaitDlg", l);
|
|
441
441
|
}), U(() => {
|
|
442
442
|
a.off("openWaitDlg", o), a.off("closeWaitDlg", l);
|
|
443
|
-
}), (s,
|
|
443
|
+
}), (s, u) => {
|
|
444
444
|
const i = p("v-card"), m = p("v-dialog");
|
|
445
445
|
return k(), M(m, {
|
|
446
446
|
"model-value": t.value,
|
|
447
|
-
"onUpdate:modelValue":
|
|
447
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => t.value = f),
|
|
448
448
|
persistent: "",
|
|
449
449
|
"no-click-animation": "",
|
|
450
450
|
fullscreen: ""
|
|
451
451
|
}, {
|
|
452
452
|
default: v(() => [
|
|
453
|
-
|
|
454
|
-
|
|
453
|
+
g("div", $e, [
|
|
454
|
+
x(i, {
|
|
455
455
|
width: "300px",
|
|
456
456
|
height: "80px",
|
|
457
457
|
loading: ""
|
|
458
458
|
}, {
|
|
459
459
|
default: v(() => [
|
|
460
|
-
|
|
461
|
-
|
|
460
|
+
g("div", qe, [
|
|
461
|
+
g("span", null, b(me(n).t("waitingResponse")), 1)
|
|
462
462
|
])
|
|
463
463
|
]),
|
|
464
464
|
_: 1
|
|
@@ -470,20 +470,20 @@ const qe = /* @__PURE__ */ I({
|
|
|
470
470
|
};
|
|
471
471
|
}
|
|
472
472
|
});
|
|
473
|
-
function
|
|
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"), l = d(() => e.current.value.dark ? "#272727" : "#eeeeee"), s = d(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"),
|
|
473
|
+
function Ne() {
|
|
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"), l = d(() => e.current.value.dark ? "#272727" : "#eeeeee"), s = d(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), u = d(() => e.current.value.dark ? "#303030" : "#f6f6f6"), i = d(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
475
475
|
return {
|
|
476
476
|
primaryColor: n,
|
|
477
477
|
secondaryColor: t,
|
|
478
478
|
backgroundColor0: o,
|
|
479
479
|
backgroundColor1: l,
|
|
480
480
|
backgroundColor2: s,
|
|
481
|
-
highlightColor:
|
|
481
|
+
highlightColor: u,
|
|
482
482
|
borderColor: i
|
|
483
483
|
};
|
|
484
484
|
}
|
|
485
|
-
function
|
|
486
|
-
const e = F(), { width: n } =
|
|
485
|
+
function je() {
|
|
486
|
+
const e = F(), { width: n } = xe(), t = d(() => e.current.value.dark), o = _(""), l = d(() => !!window.cordova), s = d(() => n.value <= 1280 ? n.value + "px" : n.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
|
|
487
487
|
return { dark: t, routeTransName: o, sysBarAvail: l, compactWidth: s };
|
|
488
488
|
}
|
|
489
489
|
let G = Date.now();
|
|
@@ -491,11 +491,11 @@ function Y() {
|
|
|
491
491
|
const e = Date.now();
|
|
492
492
|
return e - G > 500 ? (G = e, !0) : !1;
|
|
493
493
|
}
|
|
494
|
-
let
|
|
494
|
+
let Re = 0;
|
|
495
495
|
function ee() {
|
|
496
|
-
return
|
|
496
|
+
return ++Re;
|
|
497
497
|
}
|
|
498
|
-
async function
|
|
498
|
+
async function Le(e) {
|
|
499
499
|
if (!Y())
|
|
500
500
|
return;
|
|
501
501
|
let n = !1, t;
|
|
@@ -504,7 +504,7 @@ async function je(e) {
|
|
|
504
504
|
}, l = ee();
|
|
505
505
|
return a.on("confirmDlgResult" + l, o), a.emit("confirmDlg", { ...e, seq: l }), await X(() => n), a.off("confirmDlgResult" + l, o), t;
|
|
506
506
|
}
|
|
507
|
-
async function
|
|
507
|
+
async function Ue(e) {
|
|
508
508
|
if (!Y())
|
|
509
509
|
return;
|
|
510
510
|
let n = !1, t;
|
|
@@ -513,25 +513,25 @@ async function Le(e) {
|
|
|
513
513
|
}, l = ee();
|
|
514
514
|
return a.on("promptDlgResult" + l, o), a.emit("promptDlg", { ...e, seq: l }), await X(() => n), a.off("promptDlgResult" + l, o), t;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function Ke() {
|
|
517
517
|
a.emit("openWaitDlg");
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function ze() {
|
|
520
520
|
a.emit("closeWaitDlg");
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Ae(e, n) {
|
|
523
523
|
a.emit("message", { type: "error", text: e, timeout: n });
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function Oe(e, n) {
|
|
526
526
|
a.emit("message", { type: "info", text: e, timeout: n });
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function Xe(e, n) {
|
|
529
529
|
a.emit("message", { type: "success", text: e, timeout: n });
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function Pe(e, n) {
|
|
532
532
|
a.emit("message", { type: "warning", text: e, timeout: n });
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function Fe(e) {
|
|
535
535
|
var o, l;
|
|
536
536
|
if (!window.appAppear) {
|
|
537
537
|
window.appAppear = !0;
|
|
@@ -542,23 +542,27 @@ function Pe(e) {
|
|
|
542
542
|
t.add("app-reset");
|
|
543
543
|
}, 0));
|
|
544
544
|
}
|
|
545
|
+
const We = (e) => {
|
|
546
|
+
e.component("x-confirm-dlg", we), e.component("x-loading", De), e.component("x-message", Se), e.component("x-prompt-dlg", Te), e.component("x-wait-dlg", Be);
|
|
547
|
+
}, Ze = { install: We };
|
|
545
548
|
export {
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
Ae as
|
|
555
|
-
Oe as
|
|
556
|
-
Xe as
|
|
557
|
-
|
|
558
|
-
Le as
|
|
559
|
-
Ue as
|
|
560
|
-
|
|
561
|
-
Ne as
|
|
562
|
-
|
|
549
|
+
we as XConfirmDlg,
|
|
550
|
+
De as XLoading,
|
|
551
|
+
Se as XMessage,
|
|
552
|
+
Te as XPromptDlg,
|
|
553
|
+
Be as XWaitDlg,
|
|
554
|
+
Fe as appAppear,
|
|
555
|
+
ze as closeWaitDlg,
|
|
556
|
+
Ze as default,
|
|
557
|
+
Ae as messageError,
|
|
558
|
+
Oe as messageInfo,
|
|
559
|
+
Xe as messageSuccess,
|
|
560
|
+
Pe as messageWarning,
|
|
561
|
+
Le as openConfirmDlg,
|
|
562
|
+
Ue as openPromptDlg,
|
|
563
|
+
Ke as openWaitDlg,
|
|
564
|
+
Ne as useColor,
|
|
565
|
+
je as useSystem,
|
|
566
|
+
Ee as waitMs,
|
|
563
567
|
X as waitUtil
|
|
564
568
|
};
|