x-essential-lib 0.1.6 → 0.1.8

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 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 XMessage: DefineComponent<{}, {}, unknown>
43
+ export declare const XWaitDlg: DefineComponent<{}, {}, unknown>
43
44
 
44
45
  export declare function useColor(): {
45
46
  primaryColor: ComputedRef<string>
@@ -109,22 +110,8 @@ export declare function messageWarning(text: string, timeout?: number)
109
110
 
110
111
  export declare function appAppear(name: string)
111
112
 
112
- type RequiredState = 'auth' | 'org'
113
-
114
- interface RouteMeta {
115
- path: string
116
- level: number
117
- requiredState?: RequiredState
118
- }
119
-
120
- export declare const routeMetas: RouteMeta[]
121
-
122
- export declare function matchRouteMeta(path: string): RouteMeta | undefined
123
-
124
- interface PathInfo {
125
- app: string
126
- path: string
127
- level: number
128
- }
129
-
130
- export declare function getPathInfo(path: string): PathInfo
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
- (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 K, computed as d, defineComponent as q, useModel as H, ref as _, onMounted as R, onBeforeUnmount as L, watch as O, resolveComponent as m, openBlock as k, createBlock as W, withKeys as A, withModifiers as B, withCtx as v, createVNode as x, createTextVNode as b, toDisplayString as w, createElementBlock as U, normalizeStyle as se, pushScopeId as ue, popScopeId as ie, createElementVNode as g, reactive as ce, Fragment as de, renderList as pe, unref as fe } from "vue";
3
- function me(e) {
4
- return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, n) {
5
- var o = e.get(t);
6
- o ? o.push(n) : e.set(t, [n]);
7
- }, off: function(t, n) {
8
- var o = e.get(t);
9
- o && (n ? o.splice(o.indexOf(n) >>> 0, 1) : e.set(t, []));
10
- }, emit: function(t, n) {
11
- var o = e.get(t);
12
- o && o.slice().map(function(l) {
13
- l(n);
14
- }), (o = e.get("*")) && o.slice().map(function(l) {
15
- l(t, n);
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 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
+ return { all: e = e || /* @__PURE__ */ new Map(), on: function(n, t) {
5
+ var r = e.get(n);
6
+ r ? r.push(t) : e.set(n, [t]);
7
+ }, off: function(n, t) {
8
+ var r = e.get(n);
9
+ r && (t ? r.splice(r.indexOf(t) >>> 0, 1) : e.set(n, []));
10
+ }, emit: function(n, t) {
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 i = me();
20
- async function je(e) {
21
- return new Promise((t) => {
22
- setTimeout(t, e);
19
+ const u = xe();
20
+ async function Xe(e) {
21
+ return new Promise((n) => {
22
+ setTimeout(n, e);
23
23
  });
24
24
  }
25
- async function z(e, t, n) {
26
- const o = Date.now();
27
- return new Promise((l) => {
28
- const r = async () => {
29
- e() ? l(!0) : t && Date.now() - o > t ? l(!1) : setTimeout(r, n ?? 30);
25
+ async function H(e, n, t) {
26
+ const r = Date.now();
27
+ return new Promise((o) => {
28
+ const s = async () => {
29
+ e() ? o(!0) : n && Date.now() - r > n ? o(!1) : setTimeout(s, t ?? 30);
30
30
  };
31
- r();
31
+ s();
32
32
  });
33
33
  }
34
- function M() {
34
+ function T() {
35
35
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
36
- if (M.cache.has(e))
37
- return M.cache.get(e);
38
- const t = e.replace(/[^a-z]/gi, "-").replace(/\B([A-Z])/g, "-$1").toLowerCase();
39
- return M.cache.set(e, t), t;
36
+ if (T.cache.has(e))
37
+ return T.cache.get(e);
38
+ const n = e.replace(/[^a-z]/gi, "-").replace(/\B([A-Z])/g, "-$1").toLowerCase();
39
+ return T.cache.set(e, n), n;
40
40
  }
41
- M.cache = /* @__PURE__ */ new Map();
42
- function J(e, t) {
43
- const n = ae();
44
- if (!n)
41
+ T.cache = /* @__PURE__ */ new Map();
42
+ function te(e, n) {
43
+ const t = de();
44
+ if (!t)
45
45
  throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);
46
- return n;
46
+ return t;
47
47
  }
48
- function ve() {
48
+ function ye() {
49
49
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "composables";
50
- const t = J(e).type;
51
- return M((t == null ? void 0 : t.aliasName) || (t == null ? void 0 : t.name));
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 ge = Symbol.for("vuetify:locale");
54
- function X() {
55
- const e = K(ge);
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 _e = Symbol.for("vuetify:display");
61
- function xe() {
62
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ve();
63
- const n = K(_e);
64
- if (!n)
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
+ if (!t)
65
65
  throw new Error("Could not find Vuetify display injection");
66
- const o = d(() => {
66
+ const r = p(() => {
67
67
  if (!e.mobileBreakpoint)
68
- return n.mobile.value;
69
- const r = typeof e.mobileBreakpoint == "number" ? e.mobileBreakpoint : n.thresholds.value[e.mobileBreakpoint];
70
- return n.width.value < r;
71
- }), l = d(() => t ? {
72
- [`${t}--mobile`]: o.value
68
+ return t.mobile.value;
69
+ const s = typeof e.mobileBreakpoint == "number" ? e.mobileBreakpoint : t.thresholds.value[e.mobileBreakpoint];
70
+ return t.width.value < s;
71
+ }), o = p(() => n ? {
72
+ [`${n}--mobile`]: r.value
73
73
  } : {});
74
74
  return {
75
- ...n,
76
- displayClasses: l,
77
- mobile: o
75
+ ...t,
76
+ displayClasses: o,
77
+ mobile: r
78
78
  };
79
79
  }
80
- const ye = Symbol.for("vuetify:theme");
81
- function F() {
82
- J("useTheme");
83
- const e = K(ye, null);
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 he = /* @__PURE__ */ q({
88
+ const De = /* @__PURE__ */ I({
89
89
  __name: "index",
90
90
  props: {
91
91
  modelValue: { type: Boolean, required: !0 },
@@ -93,79 +93,79 @@ const he = /* @__PURE__ */ q({
93
93
  },
94
94
  emits: ["update:modelValue"],
95
95
  setup(e) {
96
- const t = X(), n = H(e, "modelValue"), o = _(""), l = _(""), r = _(), s = _(), a = d(() => {
97
- var c;
98
- return ((c = r.value) == null ? void 0 : c.color) ?? "primary";
99
- }), f = d(() => {
100
- var c;
101
- return ((c = r.value) == null ? void 0 : c.text) ?? t.t("cancel");
102
- }), p = d(() => {
103
- var c;
104
- return ((c = s.value) == null ? void 0 : c.color) ?? "primary";
105
- }), C = d(() => {
106
- var c;
107
- return ((c = s.value) == null ? void 0 : c.text) ?? t.t("confirm");
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 V = 0, D = !1;
110
- const E = (c) => {
111
- o.value = c.title, l.value = c.text, r.value = c.cancel, s.value = c.confirm, V = c.seq, D = !1, n.value = !0;
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
- R(() => {
114
- i.on("confirmDlg", E);
115
- }), L(() => {
116
- i.off("confirmDlg", E);
113
+ $(() => {
114
+ u.on("confirmDlg", U);
115
+ }), W(() => {
116
+ u.off("confirmDlg", U);
117
117
  });
118
- const N = () => {
119
- n.value = !1, D || (i.emit("confirmDlgResult" + V, !0), D = !0);
118
+ const j = () => {
119
+ t.value = !1, D || (u.emit("confirmDlgResult" + q, !0), D = !0);
120
120
  };
121
- return O(n, (c) => {
122
- !c && !D && (i.emit("confirmDlgResult" + V, !1), D = !0);
123
- }), (c, h) => {
124
- const S = m("v-card-title"), j = m("v-card-text"), I = m("v-btn"), u = m("v-card-actions"), y = m("v-card"), P = m("v-dialog");
125
- return k(), W(P, {
126
- modelValue: n.value,
127
- "onUpdate:modelValue": h[1] || (h[1] = (T) => n.value = T),
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
+ modelValue: t.value,
127
+ "onUpdate:modelValue": w[1] || (w[1] = (B) => t.value = B),
128
128
  onKeydown: [
129
- h[2] || (h[2] = A(B((T) => n.value = !1, ["stop", "prevent"]), ["esc"])),
130
- A(B(N, ["stop", "prevent"]), ["enter"])
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(y, null, {
136
+ h(x, null, {
137
137
  default: v(() => [
138
- x(S, null, {
138
+ h(S, null, {
139
139
  default: v(() => [
140
- b(w(o.value), 1)
140
+ b(C(r.value), 1)
141
141
  ]),
142
142
  _: 1
143
143
  }),
144
- x(j, null, {
144
+ h(A, null, {
145
145
  default: v(() => [
146
- b(w(l.value), 1)
146
+ b(C(o.value), 1)
147
147
  ]),
148
148
  _: 1
149
149
  }),
150
- x(u, { class: "d-flex justify-end" }, {
150
+ h(c, { class: "d-flex justify-end" }, {
151
151
  default: v(() => [
152
- x(I, {
153
- onClick: h[0] || (h[0] = (T) => n.value = !1),
152
+ h(V, {
153
+ onClick: w[0] || (w[0] = (B) => t.value = !1),
154
154
  color: a.value,
155
155
  variant: "text"
156
156
  }, {
157
157
  default: v(() => [
158
- b(w(f.value), 1)
158
+ b(C(i.value), 1)
159
159
  ]),
160
160
  _: 1
161
161
  }, 8, ["color"]),
162
- x(I, {
163
- onClick: N,
164
- color: p.value,
162
+ h(V, {
163
+ onClick: j,
164
+ color: f.value,
165
165
  variant: "text"
166
166
  }, {
167
167
  default: v(() => [
168
- b(w(C.value), 1)
168
+ b(C(y.value), 1)
169
169
  ]),
170
170
  _: 1
171
171
  }, 8, ["color"])
@@ -180,7 +180,7 @@ const he = /* @__PURE__ */ q({
180
180
  }, 8, ["modelValue", "onKeydown"]);
181
181
  };
182
182
  }
183
- }), we = (e) => (ue("data-v-a8f3d91f"), e = e(), ie(), e), be = /* @__PURE__ */ we(() => /* @__PURE__ */ g("div", { class: "lds-spinner" }, [
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 he = /* @__PURE__ */ q({
193
193
  /* @__PURE__ */ g("div"),
194
194
  /* @__PURE__ */ g("div"),
195
195
  /* @__PURE__ */ g("div")
196
- ], -1)), ke = [
197
- be
198
- ], Ce = /* @__PURE__ */ q({
196
+ ], -1)), Ie = [
197
+ qe
198
+ ], Ve = /* @__PURE__ */ I({
199
199
  __name: "index",
200
200
  props: {
201
201
  zIndex: {
@@ -204,21 +204,21 @@ const he = /* @__PURE__ */ q({
204
204
  }
205
205
  },
206
206
  setup(e) {
207
- const t = F(), n = e, o = d(() => ({
208
- background: t.current.value.dark ? "#1e1e1e" : "#ffffff",
209
- zIndex: n.zIndex
207
+ const n = G(), t = e, r = p(() => ({
208
+ background: n.current.value.dark ? "#1e1e1e" : "#ffffff",
209
+ zIndex: t.zIndex
210
210
  }));
211
- return (l, r) => (k(), U("div", {
211
+ return (o, s) => (k(), N("div", {
212
212
  class: "x-cont",
213
- style: se(o.value)
214
- }, ke, 4));
213
+ style: pe(r.value)
214
+ }, Ie, 4));
215
215
  }
216
- }), Q = (e, t) => {
217
- const n = e.__vccOpts || e;
218
- for (const [o, l] of t)
219
- n[o] = l;
220
- return n;
221
- }, De = /* @__PURE__ */ Q(Ce, [["__scopeId", "data-v-a8f3d91f"]]), Se = /* @__PURE__ */ q({
216
+ }), ne = (e, n) => {
217
+ const t = e.__vccOpts || e;
218
+ for (const [r, o] of n)
219
+ t[r] = o;
220
+ return t;
221
+ }, Be = /* @__PURE__ */ ne(Ve, [["__scopeId", "data-v-a8f3d91f"]]), Re = /* @__PURE__ */ I({
222
222
  __name: "item",
223
223
  props: {
224
224
  id: {
@@ -239,39 +239,39 @@ const he = /* @__PURE__ */ q({
239
239
  }
240
240
  },
241
241
  emits: ["timeout"],
242
- setup(e, { emit: t }) {
243
- const n = e, o = _(!0), l = t, r = d(() => {
244
- let s = "";
245
- switch (n.type) {
242
+ setup(e, { emit: n }) {
243
+ const t = e, r = _(!0), o = n, s = p(() => {
244
+ let l = "";
245
+ switch (t.type) {
246
246
  case "error":
247
- s = "cancel";
247
+ l = "cancel";
248
248
  break;
249
249
  case "info":
250
- s = "info";
250
+ l = "info";
251
251
  break;
252
252
  case "success":
253
- s = "check-circle";
253
+ l = "check-circle";
254
254
  break;
255
255
  case "warning":
256
- s = "error";
256
+ l = "error";
257
257
  break;
258
258
  }
259
- return s;
259
+ return l;
260
260
  });
261
- return R(() => {
261
+ return $(() => {
262
262
  setTimeout(() => {
263
- l("timeout", n.id);
264
- }, n.timeout);
265
- }), O(o, (s) => {
266
- s || l("timeout", n.id);
267
- }), (s, a) => {
268
- const f = m("v-alert");
269
- return k(), W(f, {
270
- modelValue: o.value,
271
- "onUpdate:modelValue": a[0] || (a[0] = (p) => o.value = p),
263
+ o("timeout", t.id);
264
+ }, t.timeout);
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
- icon: r.value,
274
+ icon: s.value,
275
275
  text: e.text,
276
276
  "max-width": "90%",
277
277
  width: "500px",
@@ -281,44 +281,44 @@ const he = /* @__PURE__ */ q({
281
281
  }, null, 8, ["modelValue", "type", "icon", "text"]);
282
282
  };
283
283
  }
284
- }), qe = /* @__PURE__ */ q({
284
+ }), Te = /* @__PURE__ */ I({
285
285
  __name: "index",
286
286
  setup(e) {
287
- const t = ce({ items: [] });
288
- R(() => {
289
- i.on("message", n);
290
- }), L(() => {
291
- i.off("message", n);
287
+ const n = ve({ items: [] });
288
+ $(() => {
289
+ u.on("message", t);
290
+ }), W(() => {
291
+ u.off("message", t);
292
292
  });
293
- const n = (a) => {
294
- r(a.type, a.text, a.timeout);
295
- }, o = (a) => {
296
- s(a);
293
+ const t = (a) => {
294
+ s(a.type, a.text, a.timeout);
295
+ }, r = (a) => {
296
+ l(a);
297
297
  };
298
- let l = 0;
299
- const r = (a, f, p) => {
300
- const C = l++;
301
- t.items.push({ id: C, type: a, text: f, timeout: p });
302
- }, s = (a) => {
303
- const f = t.items.findIndex((p) => p.id === a);
304
- f >= 0 && t.items.splice(f, 1);
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 (a, f) => (k(), U("div", {
307
- onClick: f[0] || (f[0] = B(() => {
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), U(de, null, pe(t.items, (p) => (k(), W(Se, {
312
- onTimeout: o,
313
- id: p.id,
314
- type: p.type,
315
- text: p.text,
316
- timeout: p.timeout,
317
- key: p.id
311
+ (k(!0), N(ge, null, _e(n.items, (f) => (k(), E(Re, {
312
+ onTimeout: r,
313
+ id: f.id,
314
+ type: f.type,
315
+ text: f.text,
316
+ timeout: f.timeout,
317
+ key: f.id
318
318
  }, null, 8, ["id", "type", "text", "timeout"]))), 128))
319
319
  ]));
320
320
  }
321
- }), Ve = /* @__PURE__ */ Q(qe, [["__scopeId", "data-v-70ed4b89"]]), Ie = /* @__PURE__ */ q({
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 he = /* @__PURE__ */ q({
326
326
  },
327
327
  emits: ["update:modelValue"],
328
328
  setup(e) {
329
- const t = X(), n = H(e, "modelValue"), o = _(""), l = _(""), r = _(), s = _(), a = _(), f = _(""), p = _(), C = _(), V = d(() => {
330
- var u;
331
- return ((u = p.value) == null ? void 0 : u.color) ?? "primary";
332
- }), D = d(() => {
333
- var u;
334
- return ((u = p.value) == null ? void 0 : u.text) ?? t.t("cancel");
335
- }), E = d(() => {
336
- var u;
337
- return ((u = C.value) == null ? void 0 : u.color) ?? "primary";
338
- }), N = d(() => {
339
- var u;
340
- return ((u = C.value) == null ? void 0 : u.text) ?? t.t("confirm");
341
- }), c = _();
342
- let h = 0, S = !1;
343
- const j = async (u) => {
344
- var y;
345
- o.value = u.title, l.value = u.text, r.value = u.label, s.value = u.placeholder, a.value = u.rules, f.value = u.value, p.value = u.cancel, C.value = u.confirm, h = u.seq, S = !1, n.value = !0, await z(() => c.value !== void 0, 1e3), (y = c.value) == null || y.focus();
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
- R(() => {
348
- i.on("promptDlg", j);
349
- }), L(() => {
350
- i.off("promptDlg", j);
347
+ $(() => {
348
+ u.on("promptDlg", A);
349
+ }), W(() => {
350
+ u.off("promptDlg", A);
351
351
  });
352
- const I = () => {
353
- n.value = !1, S || (i.emit("promptDlgResult" + h, f.value ?? ""), S = !0);
352
+ const V = () => {
353
+ t.value = !1, S || (u.emit("promptDlgResult" + w, i.value ?? ""), S = !0);
354
354
  };
355
- return O(n, (u) => {
356
- !u && !S && (i.emit("promptDlgResult" + h, void 0), S = !0);
357
- }), (u, y) => {
358
- const P = m("v-card-title"), T = m("v-card-text"), te = m("v-text-field"), ne = m("v-form"), Z = m("v-btn"), oe = m("v-card-actions"), le = m("v-card"), re = m("v-dialog");
359
- return k(), W(re, {
360
- modelValue: n.value,
361
- "onUpdate:modelValue": y[2] || (y[2] = ($) => n.value = $),
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
+ modelValue: t.value,
361
+ "onUpdate:modelValue": x[2] || (x[2] = (R) => t.value = R),
362
362
  onKeydown: [
363
- y[3] || (y[3] = A(B(($) => n.value = !1, ["stop", "prevent"]), ["esc"])),
364
- A(B(I, ["stop", "prevent"]), ["enter"])
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
- x(le, null, {
370
+ h(ce, null, {
371
371
  default: v(() => [
372
- x(P, null, {
372
+ h(z, null, {
373
373
  default: v(() => [
374
- b(w(o.value), 1)
374
+ b(C(r.value), 1)
375
375
  ]),
376
376
  _: 1
377
377
  }),
378
- x(T, null, {
378
+ h(B, null, {
379
379
  default: v(() => [
380
- b(w(l.value), 1)
380
+ b(C(o.value), 1)
381
381
  ]),
382
382
  _: 1
383
383
  }),
384
- x(ne, { class: "mx-3" }, {
384
+ h(se, { class: "mx-3" }, {
385
385
  default: v(() => [
386
- x(te, {
387
- modelValue: f.value,
388
- "onUpdate:modelValue": y[0] || (y[0] = ($) => f.value = $),
389
- label: r.value,
390
- placeholder: s.value,
386
+ h(ae, {
387
+ modelValue: i.value,
388
+ "onUpdate:modelValue": x[0] || (x[0] = (R) => i.value = R),
389
+ label: s.value,
390
+ placeholder: l.value,
391
391
  rules: a.value,
392
392
  ref_key: "target",
393
- ref: c
393
+ ref: d
394
394
  }, null, 8, ["modelValue", "label", "placeholder", "rules"])
395
395
  ]),
396
396
  _: 1
397
397
  }),
398
- x(oe, { class: "d-flex justify-end" }, {
398
+ h(ie, { class: "d-flex justify-end" }, {
399
399
  default: v(() => [
400
- x(Z, {
401
- onClick: y[1] || (y[1] = ($) => n.value = !1),
402
- color: V.value,
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
- b(w(D.value), 1)
406
+ b(C(D.value), 1)
407
407
  ]),
408
408
  _: 1
409
409
  }, 8, ["color"]),
410
- x(Z, {
411
- onClick: I,
412
- color: E.value,
410
+ h(J, {
411
+ onClick: V,
412
+ color: U.value,
413
413
  variant: "text"
414
414
  }, {
415
415
  default: v(() => [
416
- b(w(N.value), 1)
416
+ b(C(j.value), 1)
417
417
  ]),
418
418
  _: 1
419
419
  }, 8, ["color"])
@@ -428,37 +428,37 @@ const he = /* @__PURE__ */ q({
428
428
  }, 8, ["modelValue", "onKeydown"]);
429
429
  };
430
430
  }
431
- }), Te = { class: "mx-auto my-auto" }, $e = { class: "d-flex align-center justify-center w-100 h-100" }, Me = /* @__PURE__ */ q({
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 t = X(), n = _(!1), o = () => {
435
- n.value = !0;
436
- }, l = () => {
437
- n.value = !1;
434
+ const n = Z(), t = _(!1), r = () => {
435
+ t.value = !0;
436
+ }, o = () => {
437
+ t.value = !1;
438
438
  };
439
- return R(() => {
440
- i.on("openWaitDlg", o), i.on("closeWaitDlg", l);
441
- }), L(() => {
442
- i.off("openWaitDlg", o), i.off("closeWaitDlg", l);
443
- }), (r, s) => {
444
- const a = m("v-card"), f = m("v-dialog");
445
- return k(), W(f, {
446
- "model-value": n.value,
447
- "onUpdate:modelValue": s[0] || (s[0] = (p) => n.value = p),
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
+ "model-value": t.value,
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", Te, [
454
- x(a, {
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", $e, [
461
- g("span", null, w(fe(t).t("waitingResponse")), 1)
460
+ g("div", Ue, [
461
+ g("span", null, C(he(n).t("waitingResponse")), 1)
462
462
  ])
463
463
  ]),
464
464
  _: 1
@@ -470,79 +470,150 @@ const he = /* @__PURE__ */ q({
470
470
  };
471
471
  }
472
472
  });
473
- function Ae() {
474
- const e = F(), t = d(() => e.global.current.value.colors.primary), n = d(() => e.global.current.value.colors.secondary), o = d(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), l = d(() => e.current.value.dark ? "#272727" : "#eeeeee"), r = d(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), s = d(() => e.current.value.dark ? "#303030" : "#f6f6f6"), a = d(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
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
- primaryColor: t,
477
- secondaryColor: n,
478
- backgroundColor0: o,
479
- backgroundColor1: l,
480
- backgroundColor2: r,
481
- highlightColor: s,
476
+ primaryColor: n,
477
+ secondaryColor: t,
478
+ backgroundColor0: r,
479
+ backgroundColor1: o,
480
+ backgroundColor2: s,
481
+ highlightColor: l,
482
482
  borderColor: a
483
483
  };
484
484
  }
485
- function Le() {
486
- const e = F(), { width: t } = xe(), n = d(() => e.current.value.dark), o = _(""), l = d(() => !!window.cordova), r = d(() => t.value <= 1280 ? t.value + "px" : t.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
487
- return { dark: n, routeTransName: o, sysBarAvail: l, compactWidth: r };
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 G = Date.now();
490
- function Y() {
489
+ let Q = Date.now();
490
+ function oe() {
491
491
  const e = Date.now();
492
- return e - G > 500 ? (G = e, !0) : !1;
492
+ return e - Q > 500 ? (Q = e, !0) : !1;
493
493
  }
494
- let Be = 0;
495
- function ee() {
496
- return ++Be;
494
+ let Pe = 0;
495
+ function re() {
496
+ return ++Pe;
497
497
  }
498
- async function Pe(e) {
499
- if (!Y())
498
+ async function He(e) {
499
+ if (!oe())
500
500
  return;
501
- let t = !1, n;
502
- const o = (r) => {
503
- n = r, t = !0;
504
- }, l = ee();
505
- return i.on("confirmDlgResult" + l, o), i.emit("confirmDlg", { ...e, seq: l }), await z(() => t), i.off("confirmDlgResult" + l, o), n;
501
+ let n = !1, t;
502
+ const r = (s) => {
503
+ t = s, n = !0;
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 Ue(e) {
508
- if (!Y())
507
+ async function Ze(e) {
508
+ if (!oe())
509
509
  return;
510
- let t = !1, n;
511
- const o = (r) => {
512
- n = r, t = !0;
513
- }, l = ee();
514
- return i.on("promptDlgResult" + l, o), i.emit("promptDlg", { ...e, seq: l }), await z(() => t), i.off("promptDlgResult" + l, o), n;
510
+ let n = !1, t;
511
+ const r = (s) => {
512
+ t = s, n = !0;
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 Ke() {
517
- i.emit("openWaitDlg");
516
+ function Ge() {
517
+ u.emit("openWaitDlg");
518
518
  }
519
- function Oe() {
520
- i.emit("closeWaitDlg");
519
+ function Je() {
520
+ u.emit("closeWaitDlg");
521
521
  }
522
- function ze(e, t) {
523
- i.emit("message", { type: "error", text: e, timeout: t });
522
+ function Qe(e, n) {
523
+ u.emit("message", { type: "error", text: e, timeout: n });
524
524
  }
525
- function Xe(e, t) {
526
- i.emit("message", { type: "info", text: e, timeout: t });
525
+ function Ye(e, n) {
526
+ u.emit("message", { type: "info", text: e, timeout: n });
527
527
  }
528
- function Fe(e, t) {
529
- i.emit("message", { type: "success", text: e, timeout: t });
528
+ function et(e, n) {
529
+ u.emit("message", { type: "success", text: e, timeout: n });
530
530
  }
531
- function Ze(e, t) {
532
- i.emit("message", { type: "warning", text: e, timeout: t });
531
+ function tt(e, n) {
532
+ u.emit("message", { type: "warning", text: e, timeout: n });
533
533
  }
534
- function Ge(e) {
535
- var o, l;
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 t = "single-spa-application:" + e, n = (o = document.getElementById(t)) == null ? void 0 : o.classList;
541
- n && (n.remove("app-left", "app-right", "app-reset"), (l = window.routeExtras) != null && l.forward ? n.add("app-left") : n.add("app-right"), setTimeout(() => {
542
- n.add("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
+ t.add("app-reset");
543
543
  }, 0));
544
544
  }
545
- const Re = [
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 = [
546
617
  { path: "/passport/login", level: 0 },
547
618
  { path: "/passport/loginAccount", level: 1 },
548
619
  { path: "/passport/register", level: 1 },
@@ -562,50 +633,80 @@ const Re = [
562
633
  { path: "/calc", level: 1, requiredState: "org" },
563
634
  { path: "/data", level: 1, requiredState: "org" }
564
635
  ];
565
- function We(e) {
566
- let t, n = 0;
567
- const o = e.split("/");
568
- return Re.forEach((l) => {
569
- const r = l.path.split("/");
570
- let s = 0;
571
- for (let a = 0; a < o.length && !(a >= r.length || o[a] !== r[a]); a++)
572
- s++;
573
- s >= n && (t = l, n = s);
574
- }), t;
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;
575
646
  }
576
- function He(e) {
647
+ function Y(e) {
577
648
  if (e === "/")
578
649
  return { app: "", path: "/", level: -1 };
579
- const t = We(e);
580
- if (!t)
650
+ const n = le(e);
651
+ if (!n)
581
652
  return { app: "invalidApp", path: "/invalidApp/invalidRoute", level: -1 };
582
- const n = e.split("/");
583
- return console.assert(n.length >= 2), { app: n[1], path: t.path, level: t.level };
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();
584
687
  }
585
- const Ee = (e) => {
586
- e.component("x-confirm-dlg", he), e.component("x-loading", De), e.component("x-message", Ve), e.component("x-prompt-dlg", Ie), e.component("x-wait-dlg", Me);
587
- }, Je = { install: Ee };
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 };
588
691
  export {
589
- he as XConfirmDlg,
590
- De as XLoading,
591
- Ve as XMessage,
592
- Ie as XPromptDlg,
593
- Me as XWaitDlg,
594
- Ge as appAppear,
595
- Oe as closeWaitDlg,
596
- Je as default,
597
- He as getPathInfo,
598
- We as matchRouteMeta,
599
- ze as messageError,
600
- Xe as messageInfo,
601
- Fe as messageSuccess,
602
- Ze as messageWarning,
603
- Pe as openConfirmDlg,
604
- Ue as openPromptDlg,
605
- Ke as openWaitDlg,
606
- Re as routeMetas,
607
- Ae as useColor,
608
- Le as useSystem,
609
- je as waitMs,
610
- z as waitUtil
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
611
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.6",
4
+ "version": "0.1.8",
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",