x-essential-lib 0.2.13 → 0.2.14
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/composables/index.d.ts +3 -3
- package/dist/index.js +52 -51
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
export * from './color';
|
|
2
|
+
export * from './system';
|
|
3
|
+
export * from './viewStack';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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 { VAlert as ge, VBtn as
|
|
3
|
-
import { ref as f, computed as d, onMounted as D, onBeforeUnmount as A, defineComponent as R, watch as P, resolveComponent as v, openBlock as C, createBlock as E, unref as z, isRef as X, withKeys as K, withModifiers as $, withCtx as g, createVNode as
|
|
2
|
+
import { VAlert as ge, VBtn as _e, VCard as he, VCardActions as xe, VCardText as we, VCardTitle as ye, VDialog as be, VForm as ke, VTextField as Ce } from "vuetify/lib/components/index.mjs";
|
|
3
|
+
import { ref as f, computed as d, onMounted as D, onBeforeUnmount as A, defineComponent as R, watch as P, resolveComponent as v, openBlock as C, createBlock as E, unref as z, isRef as X, withKeys as K, withModifiers as $, withCtx as g, createVNode as h, createTextVNode as k, toDisplayString as b, createElementBlock as H, normalizeStyle as Ve, pushScopeId as qe, popScopeId as Se, createElementVNode as _, reactive as De, Fragment as Re, renderList as Oe, inject as Ie } from "vue";
|
|
4
4
|
import { useLocale as F, useTheme as L, useDisplay as Te } from "vuetify/lib/framework.mjs";
|
|
5
5
|
import { defineStore as le } from "pinia";
|
|
6
6
|
import { useI18n as je } from "vue-i18n";
|
|
@@ -65,7 +65,7 @@ function J(e, n) {
|
|
|
65
65
|
a ? t.addView(e) : t.delView(e);
|
|
66
66
|
}
|
|
67
67
|
}), r = (a) => {
|
|
68
|
-
o.value = !0;
|
|
68
|
+
n == null || n(a), o.value = !0;
|
|
69
69
|
};
|
|
70
70
|
return D(() => {
|
|
71
71
|
c.on(e, r);
|
|
@@ -116,39 +116,39 @@ const Ee = /* @__PURE__ */ R({
|
|
|
116
116
|
"max-width": "600px"
|
|
117
117
|
}, {
|
|
118
118
|
default: g(() => [
|
|
119
|
-
|
|
119
|
+
h(x, null, {
|
|
120
120
|
default: g(() => [
|
|
121
|
-
|
|
121
|
+
h(S, null, {
|
|
122
122
|
default: g(() => [
|
|
123
|
-
b(
|
|
123
|
+
k(b(o.value), 1)
|
|
124
124
|
]),
|
|
125
125
|
_: 1
|
|
126
126
|
}),
|
|
127
|
-
|
|
127
|
+
h(U, null, {
|
|
128
128
|
default: g(() => [
|
|
129
|
-
b(
|
|
129
|
+
k(b(r.value), 1)
|
|
130
130
|
]),
|
|
131
131
|
_: 1
|
|
132
132
|
}),
|
|
133
|
-
|
|
133
|
+
h(i, { class: "d-flex justify-end" }, {
|
|
134
134
|
default: g(() => [
|
|
135
|
-
|
|
135
|
+
h(I, {
|
|
136
136
|
onClick: w[0] || (w[0] = (T) => t.value = !1),
|
|
137
137
|
color: s.value,
|
|
138
138
|
variant: "text"
|
|
139
139
|
}, {
|
|
140
140
|
default: g(() => [
|
|
141
|
-
b(
|
|
141
|
+
k(b(p.value), 1)
|
|
142
142
|
]),
|
|
143
143
|
_: 1
|
|
144
144
|
}, 8, ["color"]),
|
|
145
|
-
|
|
145
|
+
h(I, {
|
|
146
146
|
onClick: B,
|
|
147
147
|
color: m.value,
|
|
148
148
|
variant: "text"
|
|
149
149
|
}, {
|
|
150
150
|
default: g(() => [
|
|
151
|
-
b(
|
|
151
|
+
k(b(V.value), 1)
|
|
152
152
|
]),
|
|
153
153
|
_: 1
|
|
154
154
|
}, 8, ["color"])
|
|
@@ -163,19 +163,19 @@ const Ee = /* @__PURE__ */ R({
|
|
|
163
163
|
}, 8, ["modelValue", "onKeydown"]);
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
|
-
}), Me = (e) => (qe("data-v-a8f3d91f"), e = e(), Se(), e), Be = /* @__PURE__ */ Me(() => /* @__PURE__ */
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
/* @__PURE__ */
|
|
170
|
-
/* @__PURE__ */
|
|
171
|
-
/* @__PURE__ */
|
|
172
|
-
/* @__PURE__ */
|
|
173
|
-
/* @__PURE__ */
|
|
174
|
-
/* @__PURE__ */
|
|
175
|
-
/* @__PURE__ */
|
|
176
|
-
/* @__PURE__ */
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
/* @__PURE__ */
|
|
166
|
+
}), Me = (e) => (qe("data-v-a8f3d91f"), e = e(), Se(), e), Be = /* @__PURE__ */ Me(() => /* @__PURE__ */ _("div", { class: "lds-spinner" }, [
|
|
167
|
+
/* @__PURE__ */ _("div"),
|
|
168
|
+
/* @__PURE__ */ _("div"),
|
|
169
|
+
/* @__PURE__ */ _("div"),
|
|
170
|
+
/* @__PURE__ */ _("div"),
|
|
171
|
+
/* @__PURE__ */ _("div"),
|
|
172
|
+
/* @__PURE__ */ _("div"),
|
|
173
|
+
/* @__PURE__ */ _("div"),
|
|
174
|
+
/* @__PURE__ */ _("div"),
|
|
175
|
+
/* @__PURE__ */ _("div"),
|
|
176
|
+
/* @__PURE__ */ _("div"),
|
|
177
|
+
/* @__PURE__ */ _("div"),
|
|
178
|
+
/* @__PURE__ */ _("div")
|
|
179
179
|
], -1)), Ue = [
|
|
180
180
|
Be
|
|
181
181
|
], We = /* @__PURE__ */ R({
|
|
@@ -345,23 +345,23 @@ const Ee = /* @__PURE__ */ R({
|
|
|
345
345
|
"max-width": "600px"
|
|
346
346
|
}, {
|
|
347
347
|
default: g(() => [
|
|
348
|
-
|
|
348
|
+
h(me, null, {
|
|
349
349
|
default: g(() => [
|
|
350
|
-
|
|
350
|
+
h(N, null, {
|
|
351
351
|
default: g(() => [
|
|
352
|
-
b(
|
|
352
|
+
k(b(o.value), 1)
|
|
353
353
|
]),
|
|
354
354
|
_: 1
|
|
355
355
|
}),
|
|
356
|
-
|
|
356
|
+
h(T, null, {
|
|
357
357
|
default: g(() => [
|
|
358
|
-
b(
|
|
358
|
+
k(b(r.value), 1)
|
|
359
359
|
]),
|
|
360
360
|
_: 1
|
|
361
361
|
}),
|
|
362
|
-
|
|
362
|
+
h(pe, { class: "mx-3" }, {
|
|
363
363
|
default: g(() => [
|
|
364
|
-
|
|
364
|
+
h(de, {
|
|
365
365
|
modelValue: p.value,
|
|
366
366
|
"onUpdate:modelValue": x[0] || (x[0] = (j) => p.value = j),
|
|
367
367
|
label: a.value,
|
|
@@ -373,25 +373,25 @@ const Ee = /* @__PURE__ */ R({
|
|
|
373
373
|
]),
|
|
374
374
|
_: 1
|
|
375
375
|
}),
|
|
376
|
-
|
|
376
|
+
h(fe, { class: "d-flex justify-end" }, {
|
|
377
377
|
default: g(() => [
|
|
378
|
-
|
|
378
|
+
h(Q, {
|
|
379
379
|
onClick: x[1] || (x[1] = (j) => t.value = !1),
|
|
380
380
|
color: O.value,
|
|
381
381
|
variant: "text"
|
|
382
382
|
}, {
|
|
383
383
|
default: g(() => [
|
|
384
|
-
b(
|
|
384
|
+
k(b(q.value), 1)
|
|
385
385
|
]),
|
|
386
386
|
_: 1
|
|
387
387
|
}, 8, ["color"]),
|
|
388
|
-
|
|
388
|
+
h(Q, {
|
|
389
389
|
onClick: I,
|
|
390
390
|
color: M.value,
|
|
391
391
|
variant: "text"
|
|
392
392
|
}, {
|
|
393
393
|
default: g(() => [
|
|
394
|
-
b(
|
|
394
|
+
k(b(B.value), 1)
|
|
395
395
|
]),
|
|
396
396
|
_: 1
|
|
397
397
|
}, 8, ["color"])
|
|
@@ -428,15 +428,15 @@ const Ee = /* @__PURE__ */ R({
|
|
|
428
428
|
fullscreen: ""
|
|
429
429
|
}, {
|
|
430
430
|
default: g(() => [
|
|
431
|
-
|
|
432
|
-
|
|
431
|
+
_("div", Xe, [
|
|
432
|
+
h(s, {
|
|
433
433
|
width: "300px",
|
|
434
434
|
height: "80px",
|
|
435
435
|
loading: ""
|
|
436
436
|
}, {
|
|
437
437
|
default: g(() => [
|
|
438
|
-
|
|
439
|
-
|
|
438
|
+
_("div", Fe, [
|
|
439
|
+
_("span", null, b(z(n).t("waitingResponse")), 1)
|
|
440
440
|
])
|
|
441
441
|
]),
|
|
442
442
|
_: 1
|
|
@@ -448,9 +448,9 @@ const Ee = /* @__PURE__ */ R({
|
|
|
448
448
|
};
|
|
449
449
|
}
|
|
450
450
|
}), Je = (e) => {
|
|
451
|
-
e.component("v-alert", ge), e.component("v-btn",
|
|
451
|
+
e.component("v-alert", ge), e.component("v-btn", _e), e.component("v-card", he), e.component("v-card-actions", xe), e.component("v-card-text", we), e.component("v-card-title", ye), e.component("v-dialog", be), e.component("v-form", ke), e.component("v-text-field", Ce), e.component("x-confirm-dlg", Ee), e.component("x-loading", ze), e.component("x-message", Ne), e.component("x-prompt-dlg", He), e.component("x-wait-dlg", Ge);
|
|
452
452
|
};
|
|
453
|
-
function
|
|
453
|
+
function _t() {
|
|
454
454
|
const e = L(), n = d(() => e.global.current.value.colors.primary), t = d(() => e.global.current.value.colors.secondary), o = d(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), r = d(() => e.current.value.dark ? "#272727" : "#eeeeee"), a = d(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), l = d(() => e.current.value.dark ? "#303030" : "#f6f6f6"), s = d(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
455
455
|
return {
|
|
456
456
|
primaryColor: n,
|
|
@@ -462,7 +462,7 @@ function ht() {
|
|
|
462
462
|
borderColor: s
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function ht() {
|
|
466
466
|
const e = L(), { width: n } = Te(), t = d(() => e.global.name.value), o = d(() => !!window.cordova), r = d(() => n.value <= 1280 ? n.value + "px" : n.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
|
|
467
467
|
return { dark: t, sysBarAvail: o, compactWidth: r };
|
|
468
468
|
}
|
|
@@ -575,7 +575,7 @@ async function yt(e) {
|
|
|
575
575
|
}, r = ce();
|
|
576
576
|
return c.on("confirmDlgResult" + r, o), c.emit("confirmDlg", { ...e, seq: r }), await G(() => n), c.off("confirmDlgResult" + r, o), t;
|
|
577
577
|
}
|
|
578
|
-
async function
|
|
578
|
+
async function bt(e) {
|
|
579
579
|
if (!se())
|
|
580
580
|
return;
|
|
581
581
|
let n = !1, t;
|
|
@@ -584,7 +584,7 @@ async function kt(e) {
|
|
|
584
584
|
}, r = ce();
|
|
585
585
|
return c.on("promptDlgResult" + r, o), c.emit("promptDlg", { ...e, seq: r }), await G(() => n), c.off("promptDlgResult" + r, o), t;
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function kt() {
|
|
588
588
|
c.emit("openWaitDlg");
|
|
589
589
|
}
|
|
590
590
|
function Ct() {
|
|
@@ -737,13 +737,14 @@ export {
|
|
|
737
737
|
Dt as messageWarning,
|
|
738
738
|
It as onBeforeEach,
|
|
739
739
|
yt as openConfirmDlg,
|
|
740
|
-
|
|
741
|
-
|
|
740
|
+
bt as openPromptDlg,
|
|
741
|
+
kt as openWaitDlg,
|
|
742
742
|
re as routeTransName,
|
|
743
|
-
|
|
743
|
+
_t as useColor,
|
|
744
744
|
xt as useGlobalStore,
|
|
745
|
-
|
|
745
|
+
ht as useSystem,
|
|
746
746
|
$e as useViewMgrStore,
|
|
747
|
+
J as useViewStack,
|
|
747
748
|
Ot as verifyPermission,
|
|
748
749
|
gt as waitMs,
|
|
749
750
|
G as waitUtil
|