x-essential-lib 0.7.7 → 0.7.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.
@@ -1 +1,3 @@
1
- export declare function useMicroApp(): void;
1
+ import { Ref } from 'vue';
2
+ import { PermissionObjects } from '../utils';
3
+ export declare function useMicroApp(dark: Ref<boolean | undefined>, locale: Ref<string>, permissionObjects: Ref<PermissionObjects>, permissionChecksum: Ref<string>, lastAppPath: Ref<string>, views: Ref<string[]>): void;
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.id="x-essential-lib",a.appendChild(document.createTextNode('.x-cont[data-v-7ab74c70]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-7ab74c70]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-7ab74c70]{transform-origin:20px 20px;animation:lds-spinner-7ab74c70 1.2s linear infinite}.lds-spinner div[data-v-7ab74c70]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-7ab74c70]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-7ab74c70]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-7ab74c70]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-7ab74c70]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-7ab74c70]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-7ab74c70]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-7ab74c70]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-7ab74c70]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-7ab74c70]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-7ab74c70]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-7ab74c70]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-7ab74c70]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-7ab74c70{0%{opacity:1}to{opacity:0}}.x-item[data-v-d5cfe252]{width:600px}@media (max-width: 600px){.x-item[data-v-d5cfe252]{width:calc(100vw - 16px)}}.x-cont[data-v-8fd5d800]{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 { computed as y, provide as O, inject as I, ref as f, getCurrentScope as Ce, onScopeDispose as Le, unref as $, watchEffect as De, getCurrentInstance as Ae, onMounted as T, watch as N, onBeforeUnmount as W, onBeforeMount as Me, defineComponent as E, resolveComponent as h, openBlock as C, createBlock as R, isRef as Y, withKeys as F, withModifiers as H, withCtx as w, createVNode as k, createTextVNode as q, toDisplayString as j, createElementBlock as Q, normalizeStyle as le, createElementVNode as m, createCommentVNode as ce, Fragment as Se, renderList as je, useTemplateRef as Re } from "vue";
2
+ import { computed as y, provide as O, inject as I, ref as f, getCurrentScope as xe, onScopeDispose as be, unref as $, watchEffect as ke, getCurrentInstance as Ce, onMounted as T, watch as N, onBeforeUnmount as W, onBeforeMount as Le, defineComponent as E, resolveComponent as h, openBlock as C, createBlock as R, isRef as Y, withKeys as F, withModifiers as H, withCtx as w, createVNode as b, createTextVNode as q, toDisplayString as j, createElementBlock as Q, normalizeStyle as le, createElementVNode as m, createCommentVNode as ce, Fragment as De, renderList as Ae, useTemplateRef as Me } from "vue";
3
3
  import { useI18n as P } from "vue-i18n";
4
- import { useTheme as ee, useDisplay as qe } from "vuetify";
5
- import { useRouter as ue, useRoute as Ve } from "vue-router";
6
- import Oe from "axios";
7
- function Vt() {
4
+ import { useTheme as ee, useDisplay as Se } from "vuetify";
5
+ import { useRouter as ue, useRoute as je } from "vue-router";
6
+ import Re from "axios";
7
+ function Tt() {
8
8
  const e = ee(), t = y(() => e.global.current.value.colors.primary), a = y(() => e.global.current.value.colors.secondary), n = y(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), o = y(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = y(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), r = y(() => e.current.value.dark ? "#303030" : "#f6f6f6"), c = y(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
9
9
  return {
10
10
  primaryColor: t,
@@ -25,7 +25,7 @@ function X(e) {
25
25
  }
26
26
  return e;
27
27
  }
28
- var Ie = {
28
+ var qe = {
29
29
  read: function(e) {
30
30
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
31
31
  },
@@ -86,43 +86,43 @@ function J(e, t) {
86
86
  }
87
87
  );
88
88
  }
89
- var V = J(Ie, { path: "/" });
90
- function Ot(e) {
91
- const t = Oe.create({
89
+ var V = J(qe, { path: "/" });
90
+ function Et(e) {
91
+ const t = Re.create({
92
92
  timeout: 6e3
93
93
  });
94
94
  return t.defaults.baseURL = e.baseUrl, t.interceptors.request.use(
95
- (a) => Te(a),
95
+ (a) => Ve(a),
96
96
  (a) => {
97
- Ee(a, e.onError);
97
+ Oe(a, e.onError);
98
98
  }
99
99
  ), t.interceptors.response.use(
100
- (a) => Be(a),
101
- (a) => Ue(a, e.onError)
100
+ (a) => Ie(a),
101
+ (a) => Te(a, e.onError)
102
102
  ), t;
103
103
  }
104
- function Te(e) {
104
+ function Ve(e) {
105
105
  const t = V.get("accessToken") ?? "";
106
106
  return e.headers.Authorization = "Basic " + t, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
107
107
  }
108
- function Ee(e, t) {
108
+ function Oe(e, t) {
109
109
  console.error(e), t("request timeout");
110
110
  }
111
- function Be(e) {
111
+ function Ie(e) {
112
112
  return e.data;
113
113
  }
114
- function Ue(e, t) {
114
+ function Te(e, t) {
115
115
  var o, l;
116
116
  const n = e.response;
117
- return n && (n.status === 401 && We(), (o = n.data) != null && o.message ? t((l = n.data) == null ? void 0 : l.message) : t({
117
+ return n && (n.status === 401 && Ee(), (o = n.data) != null && o.message ? t((l = n.data) == null ? void 0 : l.message) : t({
118
118
  code: n.status,
119
119
  message: n.statusText
120
120
  })), Promise.reject(e);
121
121
  }
122
- function We() {
122
+ function Ee() {
123
123
  V.remove("accessToken"), V.remove("refreshToken"), V.remove("activeOrg"), ue().replace({ path: "/passport/login" });
124
124
  }
125
- function He(e) {
125
+ function Be(e) {
126
126
  return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, a) {
127
127
  var n = e.get(t);
128
128
  n ? n.push(a) : e.set(t, [a]);
@@ -138,10 +138,10 @@ function He(e) {
138
138
  });
139
139
  } };
140
140
  }
141
- const s = function() {
142
- return window.eventBus || (window.eventBus = He()), window.eventBus;
141
+ const p = function() {
142
+ return window.eventBus || (window.eventBus = Be()), window.eventBus;
143
143
  }();
144
- async function It(e) {
144
+ async function Bt(e) {
145
145
  return new Promise((t) => {
146
146
  setTimeout(t, e);
147
147
  });
@@ -155,58 +155,58 @@ async function te(e, t, a) {
155
155
  l();
156
156
  });
157
157
  }
158
- function $e(e, t) {
158
+ function Ue(e, t) {
159
159
  const a = document.getElementById("single-spa-application:" + e);
160
160
  a && (a.classList.remove("app-left", "app-right", "app-reset"), t ? a.classList.add("app-left") : a.classList.add("app-right"), setTimeout(() => {
161
161
  a.classList.add("app-reset");
162
162
  }, 50));
163
163
  }
164
164
  let ne = Date.now();
165
- function se() {
165
+ function pe() {
166
166
  const e = Date.now();
167
167
  return e - ne > 500 ? (ne = e, !0) : !1;
168
168
  }
169
- let Ke = 0;
170
- function pe() {
171
- return ++Ke;
169
+ let We = 0;
170
+ function se() {
171
+ return ++We;
172
172
  }
173
- async function Tt(e) {
174
- if (!se())
173
+ async function Ut(e) {
174
+ if (!pe())
175
175
  return;
176
176
  let t = !1, a;
177
177
  const n = (l) => {
178
178
  a = l, t = !0;
179
- }, o = pe();
180
- return s.on("confirmDlgResult" + o, n), s.emit("confirmDlg", { ...e, seq: o }), await te(() => t), s.off("confirmDlgResult" + o, n), a;
179
+ }, o = se();
180
+ return p.on("confirmDlgResult" + o, n), p.emit("confirmDlg", { ...e, seq: o }), await te(() => t), p.off("confirmDlgResult" + o, n), a;
181
181
  }
182
- async function Et(e) {
183
- if (!se())
182
+ async function Wt(e) {
183
+ if (!pe())
184
184
  return;
185
185
  let t = !1, a;
186
186
  const n = (l) => {
187
187
  a = l, t = !0;
188
- }, o = pe();
189
- return s.on("promptDlgResult" + o, n), s.emit("promptDlg", { ...e, seq: o }), await te(() => t), s.off("promptDlgResult" + o, n), a;
188
+ }, o = se();
189
+ return p.on("promptDlgResult" + o, n), p.emit("promptDlg", { ...e, seq: o }), await te(() => t), p.off("promptDlgResult" + o, n), a;
190
190
  }
191
- function Bt(e) {
192
- s.emit("openWaitDlg", { text: e });
191
+ function Ht(e) {
192
+ p.emit("openWaitDlg", { text: e });
193
193
  }
194
- function Ut() {
195
- s.emit("closeWaitDlg");
194
+ function $t() {
195
+ p.emit("closeWaitDlg");
196
196
  }
197
- function Wt(e, t) {
198
- s.emit("message", { type: "error", text: e, timeout: t });
197
+ function Kt(e, t) {
198
+ p.emit("message", { type: "error", text: e, timeout: t });
199
199
  }
200
- function Ht(e, t) {
201
- s.emit("message", { type: "info", text: e, timeout: t });
200
+ function zt(e, t) {
201
+ p.emit("message", { type: "info", text: e, timeout: t });
202
202
  }
203
- function $t(e, t) {
204
- s.emit("message", { type: "success", text: e, timeout: t });
203
+ function Xt(e, t) {
204
+ p.emit("message", { type: "success", text: e, timeout: t });
205
205
  }
206
- function Kt(e, t) {
207
- s.emit("message", { type: "warning", text: e, timeout: t });
206
+ function Ft(e, t) {
207
+ p.emit("message", { type: "warning", text: e, timeout: t });
208
208
  }
209
- var ze = /* @__PURE__ */ ((e) => (e.list_app_group = "list_app_group", e.create_app_group = "create_app_group", e.delete_app_group = "delete_app_group", e.update_app_group = "update_app_group", e.arrange_app_group = "arrange_app_group", e.list_app = "list_app", e.get_app = "get_app", e.create_app = "create_app", e.delete_app = "delete_app", e.update_app = "update_app", e.list_app_release = "list_app_release", e.get_app_release = "get_app_release", e.create_app_release = "create_app_release", e.delete_app_release = "delete_app_release", e.deploy_app_release = "deploy_app_release", e.open_app_layer = "open_app_layer", e.open_app = "open_app", e.list_compute_space = "list_compute_space", e.get_compute_space = "get_compute_space", e.create_compute_space = "create_compute_space", e.delete_compute_space = "delete_compute_space", e.update_compute_space = "update_compute_space", e.arrange_compute_space = "arrange_compute_space", e.list_func_group = "list_func_group", e.create_func_group = "create_func_group", e.delete_func_group = "delete_func_group", e.update_func_group = "update_func_group", e.arrange_func_group = "arrange_func_group", e.list_func = "list_func", e.get_func = "get_func", e.create_func = "create_func", e.delete_func = "delete_func", e.update_func = "update_func", e.debug_func = "debug_func", e.call_func = "call_func", e.list_func_release = "list_func_release", e.get_func_release = "get_func_release", e.create_func_release = "create_func_release", e.delete_func_release = "delete_func_release", e.deploy_func_release = "deploy_func_release", e.list_flow_group = "list_flow_group", e.create_flow_group = "create_flow_group", e.delete_flow_group = "delete_flow_group", e.update_flow_group = "update_flow_group", e.arrange_flow_group = "arrange_flow_group", e.list_flow = "list_flow", e.get_flow = "get_flow", e.create_flow = "create_flow", e.delete_flow = "delete_flow", e.update_flow = "update_flow", e.call_flow = "call_flow", e.list_flow_release = "list_flow_release", e.get_flow_release = "get_flow_release", e.create_flow_release = "create_flow_release", e.delete_flow_release = "delete_flow_release", e.deploy_flow_release = "deploy_flow_release", e.list_task = "list_task", e.get_task = "get_task", e.create_task = "create_task", e.delete_task = "delete_task", e.update_task = "update_task", e.call_task = "call_task", e.open_compute_layer = "open_compute_layer", e.list_data_space = "list_data_space", e.get_data_space = "get_data_space", e.create_data_space = "create_data_space", e.delete_data_space = "delete_data_space", e.update_data_space = "update_data_space", e.arrange_data_space = "arrange_data_space", e.list_table_group = "list_table_group", e.create_table_group = "create_table_group", e.delete_table_group = "delete_table_group", e.update_table_group = "update_table_group", e.arrange_table_group = "arrange_table_group", e.list_table = "list_table", e.get_table = "get_table", e.create_table = "create_table", e.delete_table = "delete_table", e.update_table = "update_table", e.get_data = "get_data", e.create_data = "create_data", e.delete_data = "delete_data", e.update_data = "update_data", e.get_relation_graph = "get_relation_graph", e.update_relation_graph = "update_relation_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_resource_space = "list_resource_space", e.get_resource_space = "get_resource_space", e.create_resource_space = "create_resource_space", e.delete_resource_space = "delete_resource_space", e.update_resource_space = "update_resource_space", e.arrange_resource_space = "arrange_resource_space", e.list_dir = "list_dir", e.create_dir = "create_dir", e.delete_dir = "delete_dir", e.update_dir = "update_dir", e.move_dir = "move_dir", e.list_resource = "list_resource", e.get_resource = "get_resource", e.create_resource = "create_resource", e.delete_resource = "delete_resource", e.update_resource = "update_resource", e.move_resource = "move_resource", e.open_resource_layer = "open_resource_layer", e.list_org_member = "list_org_member", e.add_org_member = "add_org_member", e.remove_org_member = "remove_org_member", e.update_org_member = "update_org_member", e.list_org_role = "list_org_role", e.get_org_role = "get_org_role", e.create_org_role = "create_org_role", e.delete_org_role = "delete_org_role", e.update_org_role = "update_org_role", e.arrange_org_role = "arrange_org_role", e.get_org_structure = "get_org_structure", e.update_org_structure = "update_org_structure", e.filter_table = "filter_table", e))(ze || {});
209
+ var He = /* @__PURE__ */ ((e) => (e.list_app_group = "list_app_group", e.create_app_group = "create_app_group", e.delete_app_group = "delete_app_group", e.update_app_group = "update_app_group", e.arrange_app_group = "arrange_app_group", e.list_app = "list_app", e.get_app = "get_app", e.create_app = "create_app", e.delete_app = "delete_app", e.update_app = "update_app", e.list_app_release = "list_app_release", e.get_app_release = "get_app_release", e.create_app_release = "create_app_release", e.delete_app_release = "delete_app_release", e.deploy_app_release = "deploy_app_release", e.open_app_layer = "open_app_layer", e.open_app = "open_app", e.list_compute_space = "list_compute_space", e.get_compute_space = "get_compute_space", e.create_compute_space = "create_compute_space", e.delete_compute_space = "delete_compute_space", e.update_compute_space = "update_compute_space", e.arrange_compute_space = "arrange_compute_space", e.list_func_group = "list_func_group", e.create_func_group = "create_func_group", e.delete_func_group = "delete_func_group", e.update_func_group = "update_func_group", e.arrange_func_group = "arrange_func_group", e.list_func = "list_func", e.get_func = "get_func", e.create_func = "create_func", e.delete_func = "delete_func", e.update_func = "update_func", e.debug_func = "debug_func", e.call_func = "call_func", e.list_func_release = "list_func_release", e.get_func_release = "get_func_release", e.create_func_release = "create_func_release", e.delete_func_release = "delete_func_release", e.deploy_func_release = "deploy_func_release", e.list_flow_group = "list_flow_group", e.create_flow_group = "create_flow_group", e.delete_flow_group = "delete_flow_group", e.update_flow_group = "update_flow_group", e.arrange_flow_group = "arrange_flow_group", e.list_flow = "list_flow", e.get_flow = "get_flow", e.create_flow = "create_flow", e.delete_flow = "delete_flow", e.update_flow = "update_flow", e.call_flow = "call_flow", e.list_flow_release = "list_flow_release", e.get_flow_release = "get_flow_release", e.create_flow_release = "create_flow_release", e.delete_flow_release = "delete_flow_release", e.deploy_flow_release = "deploy_flow_release", e.list_task = "list_task", e.get_task = "get_task", e.create_task = "create_task", e.delete_task = "delete_task", e.update_task = "update_task", e.call_task = "call_task", e.open_compute_layer = "open_compute_layer", e.list_data_space = "list_data_space", e.get_data_space = "get_data_space", e.create_data_space = "create_data_space", e.delete_data_space = "delete_data_space", e.update_data_space = "update_data_space", e.arrange_data_space = "arrange_data_space", e.list_table_group = "list_table_group", e.create_table_group = "create_table_group", e.delete_table_group = "delete_table_group", e.update_table_group = "update_table_group", e.arrange_table_group = "arrange_table_group", e.list_table = "list_table", e.get_table = "get_table", e.create_table = "create_table", e.delete_table = "delete_table", e.update_table = "update_table", e.get_data = "get_data", e.create_data = "create_data", e.delete_data = "delete_data", e.update_data = "update_data", e.get_relation_graph = "get_relation_graph", e.update_relation_graph = "update_relation_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_resource_space = "list_resource_space", e.get_resource_space = "get_resource_space", e.create_resource_space = "create_resource_space", e.delete_resource_space = "delete_resource_space", e.update_resource_space = "update_resource_space", e.arrange_resource_space = "arrange_resource_space", e.list_dir = "list_dir", e.create_dir = "create_dir", e.delete_dir = "delete_dir", e.update_dir = "update_dir", e.move_dir = "move_dir", e.list_resource = "list_resource", e.get_resource = "get_resource", e.create_resource = "create_resource", e.delete_resource = "delete_resource", e.update_resource = "update_resource", e.move_resource = "move_resource", e.open_resource_layer = "open_resource_layer", e.list_org_member = "list_org_member", e.add_org_member = "add_org_member", e.remove_org_member = "remove_org_member", e.update_org_member = "update_org_member", e.list_org_role = "list_org_role", e.get_org_role = "get_org_role", e.create_org_role = "create_org_role", e.delete_org_role = "delete_org_role", e.update_org_role = "update_org_role", e.arrange_org_role = "arrange_org_role", e.get_org_structure = "get_org_structure", e.update_org_structure = "update_org_structure", e.filter_table = "filter_table", e))(He || {});
210
210
  function re(e, t) {
211
211
  if (!e)
212
212
  return !1;
@@ -221,43 +221,43 @@ function re(e, t) {
221
221
  }), Object.keys(a).length <= 0);
222
222
  }
223
223
  const _e = "essentialDark", ie = "essentialLocale", de = "essentialPermissionObjects", fe = "essentialPermissionChecksum", ge = "essentialLastAppPath", ve = "essentialViews";
224
- function zt(e) {
224
+ function $e(e) {
225
225
  O(_e, e);
226
226
  }
227
- function Xe() {
227
+ function Zt() {
228
228
  return I(_e);
229
229
  }
230
- function Xt(e) {
230
+ function Ke(e) {
231
231
  O(ie, e);
232
232
  }
233
- function Fe() {
233
+ function Nt() {
234
234
  return I(ie);
235
235
  }
236
- function Ft(e) {
236
+ function ze(e) {
237
237
  O(de, e);
238
238
  }
239
- function me() {
239
+ function Xe() {
240
240
  return I(de);
241
241
  }
242
- function Zt(e) {
242
+ function Fe(e) {
243
243
  O(fe, e);
244
244
  }
245
- function Ze() {
245
+ function Gt() {
246
246
  return I(fe);
247
247
  }
248
- function Nt(e) {
248
+ function Ze(e) {
249
249
  O(ge, e);
250
250
  }
251
- function he() {
251
+ function Ne() {
252
252
  return I(ge);
253
253
  }
254
- function Gt(e) {
254
+ function Ge(e) {
255
255
  O(ve, e);
256
256
  }
257
- function we() {
257
+ function Qe() {
258
258
  return I(ve);
259
259
  }
260
- const Ne = [
260
+ const Je = [
261
261
  {
262
262
  app: "x-passport-mf",
263
263
  path: "/passport/login",
@@ -368,7 +368,7 @@ const Ne = [
368
368
  function Z(e) {
369
369
  let t, a = 0;
370
370
  const n = e.split("/").filter((o) => o.trim() !== "");
371
- return Ne.forEach((o) => {
371
+ return Je.forEach((o) => {
372
372
  const l = o.path.split("/").filter((c) => c.trim() !== "");
373
373
  let r = 0;
374
374
  for (let c = 0; c < n.length && !(c >= l.length || n[c] !== l[c]); c++)
@@ -378,7 +378,7 @@ function Z(e) {
378
378
  }
379
379
  const G = f("");
380
380
  function M(e, t) {
381
- const a = he();
381
+ const a = Ne();
382
382
  t === "/" && (t = a.value);
383
383
  const n = Z(e), o = Z(t);
384
384
  if (!n) {
@@ -388,16 +388,16 @@ function M(e, t) {
388
388
  if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !o)
389
389
  return;
390
390
  const l = n.app === o.app, r = n.path === o.path, c = n.level >= o.level;
391
- l ? r ? G.value = "" : G.value = c ? "inner-left" : "inner-right" : (G.value = "", $e(n.app, c));
391
+ l ? r ? G.value = "" : G.value = c ? "inner-left" : "inner-right" : (G.value = "", Ue(n.app, c));
392
392
  }
393
- function Ge() {
393
+ function Ye() {
394
394
  return !!V.get("accessToken");
395
395
  }
396
- function Qe() {
396
+ function Pe() {
397
397
  return !!V.get("activeOrg");
398
398
  }
399
399
  function Qt(e, t, a) {
400
- const n = Ge(), o = Qe(), l = Z(e.path);
400
+ const n = Ye(), o = Pe(), l = Z(e.path);
401
401
  if (!l) {
402
402
  console.assert(!1), a();
403
403
  return;
@@ -436,117 +436,119 @@ function Qt(e, t, a) {
436
436
  else
437
437
  M(e.path, t.path), a();
438
438
  }
439
- function Je(e) {
439
+ function et(e) {
440
440
  return e.value.length <= 0;
441
441
  }
442
442
  function Jt(e) {
443
443
  return e.value.at(-1);
444
444
  }
445
- function ye(e, t) {
445
+ function me(e, t) {
446
446
  return !!e.value.find((a) => a === t);
447
447
  }
448
- function Ye(e, t) {
448
+ function tt(e, t) {
449
449
  const a = e.value.findIndex((n) => n === t);
450
450
  a >= 0 && e.value.splice(a, 1), e.value.push(t);
451
451
  }
452
- function Pe(e, t) {
452
+ function at(e, t) {
453
453
  const a = e.value.findIndex((n) => n === t);
454
454
  a >= 0 && e.value.splice(a, 1);
455
455
  }
456
- function et(e) {
456
+ function ot(e) {
457
457
  console.assert(e.value.length > 0), e.value.pop();
458
458
  }
459
459
  function Yt(e) {
460
460
  e.value = [];
461
461
  }
462
- function tt(e) {
463
- return Ce() ? (Le(e), !0) : !1;
462
+ function nt(e) {
463
+ return xe() ? (be(e), !0) : !1;
464
464
  }
465
- function at(e) {
465
+ function rt(e) {
466
466
  return typeof e == "function" ? e() : $(e);
467
467
  }
468
- const ot = typeof window < "u" && typeof document < "u";
468
+ const lt = typeof window < "u" && typeof document < "u";
469
469
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
470
- const nt = ot ? window : void 0;
471
- function rt() {
472
- const e = f(!1), t = Ae();
470
+ const ct = lt ? window : void 0;
471
+ function ut() {
472
+ const e = f(!1), t = Ce();
473
473
  return t && T(() => {
474
474
  e.value = !0;
475
475
  }, t), e;
476
476
  }
477
- function lt(e) {
478
- const t = rt();
477
+ function pt(e) {
478
+ const t = ut();
479
479
  return y(() => (t.value, !!e()));
480
480
  }
481
- function ct(e, t = {}) {
482
- const { window: a = nt } = t, n = lt(() => a && "matchMedia" in a && typeof a.matchMedia == "function");
481
+ function st(e, t = {}) {
482
+ const { window: a = ct } = t, n = pt(() => a && "matchMedia" in a && typeof a.matchMedia == "function");
483
483
  let o;
484
484
  const l = f(!1), r = (_) => {
485
485
  l.value = _.matches;
486
486
  }, c = () => {
487
487
  o && ("removeEventListener" in o ? o.removeEventListener("change", r) : o.removeListener(r));
488
- }, u = De(() => {
489
- n.value && (c(), o = a.matchMedia(at(e)), "addEventListener" in o ? o.addEventListener("change", r) : o.addListener(r), l.value = o.matches);
488
+ }, u = ke(() => {
489
+ n.value && (c(), o = a.matchMedia(rt(e)), "addEventListener" in o ? o.addEventListener("change", r) : o.addListener(r), l.value = o.matches);
490
490
  });
491
- return tt(() => {
491
+ return nt(() => {
492
492
  u(), c(), o = void 0;
493
493
  }), l;
494
494
  }
495
- function ut(e) {
496
- return ct("(prefers-color-scheme: dark)", e);
495
+ function _t(e) {
496
+ return st("(prefers-color-scheme: dark)", e);
497
497
  }
498
- function Pt() {
499
- const e = Ve(), t = ue(), a = Xe(), n = Fe(), o = me(), l = Ze(), r = he(), c = we(), u = ee(), _ = ut();
498
+ function Pt(e, t, a, n, o, l) {
499
+ const r = je(), c = ue();
500
+ $e(e), Ke(t), ze(a), Fe(n), Ze(o), Ge(l);
501
+ const u = ee(), _ = _t();
500
502
  N(
501
- a,
503
+ e,
502
504
  () => {
503
- let p = !1;
504
- typeof a.value == "boolean" ? p = a.value : p = _.value, u.global.name.value = p ? "dark" : "light";
505
+ let s = !1;
506
+ typeof e.value == "boolean" ? s = e.value : s = _.value, u.global.name.value = s ? "dark" : "light";
505
507
  },
506
508
  { immediate: !0 }
507
509
  );
508
- const g = (p) => {
509
- if (p.key === "Escape") {
510
+ const g = (s) => {
511
+ if (s.key === "Escape") {
510
512
  v();
511
513
  return;
512
514
  }
513
515
  }, v = () => {
514
516
  var x;
515
- if (!Je(c)) {
516
- ye(c, "waitDlg") || et(c);
517
+ if (!et(l)) {
518
+ me(l, "waitDlg") || ot(l);
517
519
  return;
518
520
  }
519
- const p = Z(e.path);
520
- (p == null ? void 0 : p.level) === 0 ? (x = navigator == null ? void 0 : navigator.Backbutton) == null || x.goHome(
521
+ const s = Z(r.path);
522
+ (s == null ? void 0 : s.level) === 0 ? (x = navigator == null ? void 0 : navigator.Backbutton) == null || x.goHome(
521
523
  () => {
522
524
  },
523
525
  () => {
524
526
  }
525
- ) : t.back();
527
+ ) : c.back();
526
528
  };
527
529
  T(() => {
528
- window.addEventListener("keydown", g), s.on("backbutton", v);
530
+ window.addEventListener("keydown", g), p.on("backbutton", v);
529
531
  }), W(() => {
530
- window.removeEventListener("keydown", g), s.off("backbutton", v);
532
+ window.removeEventListener("keydown", g), p.off("backbutton", v);
531
533
  });
532
- const L = (p) => {
533
- a.value = p;
534
- }, b = (p) => {
535
- n.value = p;
536
- }, i = (p) => {
537
- const x = p;
538
- o.value = x[0], l.value = x[1];
539
- }, D = (p) => {
540
- r.value = p;
534
+ const L = (s) => {
535
+ e.value = s;
536
+ }, k = (s) => {
537
+ t.value = s;
538
+ }, i = (s) => {
539
+ const x = s;
540
+ a.value = x[0], n.value = x[1];
541
+ }, D = (s) => {
542
+ o.value = s;
541
543
  };
542
- Me(() => {
543
- s.on("updateDark", L), s.on("updateLocale", b), s.on("updatePermission", i), s.on("updateLastAppPath", D), s.emit("syncGlobalState");
544
+ Le(() => {
545
+ p.on("updateDark", L), p.on("updateLocale", k), p.on("updatePermission", i), p.on("updateLastAppPath", D), p.emit("syncGlobalState");
544
546
  }), W(() => {
545
- s.off("updateDark", L), s.off("updateLocale", b), s.off("updatePermission", i), s.off("updateLastAppPath", D);
547
+ p.off("updateDark", L), p.off("updateLocale", k), p.off("updatePermission", i), p.off("updateLastAppPath", D);
546
548
  });
547
549
  }
548
550
  function ea() {
549
- const e = me();
551
+ const e = Xe();
550
552
  function t(a, n) {
551
553
  const o = e.value[a];
552
554
  return o ? n ? !(!re(o.includes, n) || re(o.excludes, n)) : !0 : !1;
@@ -554,42 +556,42 @@ function ea() {
554
556
  return { verifyPermission: t };
555
557
  }
556
558
  function ta() {
557
- const e = y(() => !!window.cordova), t = qe(), a = y(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
559
+ const e = y(() => !!window.cordova), t = Se(), a = y(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
558
560
  return { sysBarAvail: e, compactWidth: a };
559
561
  }
560
562
  function ae(e, t) {
561
- const a = we(), n = y({
563
+ const a = Qe(), n = y({
562
564
  get() {
563
- return ye(a, e);
565
+ return me(a, e);
564
566
  },
565
567
  set(l) {
566
- l ? Ye(a, e) : Pe(a, e);
568
+ l ? tt(a, e) : at(a, e);
567
569
  }
568
570
  }), o = (l) => {
569
571
  t == null || t(l), n.value = !0;
570
572
  };
571
573
  return T(() => {
572
- s.on(e, o);
574
+ p.on(e, o);
573
575
  }), W(() => {
574
- s.off(e, o);
576
+ p.off(e, o);
575
577
  }), { open: n };
576
578
  }
577
- const st = /* @__PURE__ */ E({
579
+ const it = /* @__PURE__ */ E({
578
580
  __name: "index",
579
581
  setup(e) {
580
582
  const { t } = P(), a = f(""), n = f(""), o = f(""), l = f(""), r = f(""), c = f("");
581
583
  let u = 0, _ = !1;
582
- const g = (b) => {
583
- var D, p, x, A;
584
- const i = b;
585
- a.value = i.title, n.value = i.text, o.value = ((D = i.cancel) == null ? void 0 : D.color) ?? "primary", l.value = ((p = i.cancel) == null ? void 0 : p.text) ?? t("dlg.common.cancel"), r.value = ((x = i.confirm) == null ? void 0 : x.color) ?? "primary", c.value = ((A = i.confirm) == null ? void 0 : A.text) ?? t("dlg.common.confirm"), u = i.seq, _ = !1, v.value = !0;
584
+ const g = (k) => {
585
+ var D, s, x, A;
586
+ const i = k;
587
+ a.value = i.title, n.value = i.text, o.value = ((D = i.cancel) == null ? void 0 : D.color) ?? "primary", l.value = ((s = i.cancel) == null ? void 0 : s.text) ?? t("dlg.common.cancel"), r.value = ((x = i.confirm) == null ? void 0 : x.color) ?? "primary", c.value = ((A = i.confirm) == null ? void 0 : A.text) ?? t("dlg.common.confirm"), u = i.seq, _ = !1, v.value = !0;
586
588
  }, { open: v } = ae("confirmDlg", g), L = () => {
587
- v.value = !1, _ || (s.emit("confirmDlgResult" + u, !0), _ = !0);
589
+ v.value = !1, _ || (p.emit("confirmDlgResult" + u, !0), _ = !0);
588
590
  };
589
- return N(v, (b) => {
590
- !b && !_ && (s.emit("confirmDlgResult" + u, !1), _ = !0);
591
- }), (b, i) => {
592
- const D = h("v-card-text"), p = h("v-btn"), x = h("v-card-actions"), A = h("v-card"), d = h("v-dialog");
591
+ return N(v, (k) => {
592
+ !k && !_ && (p.emit("confirmDlgResult" + u, !1), _ = !0);
593
+ }), (k, i) => {
594
+ const D = h("v-card-text"), s = h("v-btn"), x = h("v-card-actions"), A = h("v-card"), d = h("v-dialog");
593
595
  return C(), R(d, {
594
596
  modelValue: $(v),
595
597
  "onUpdate:modelValue": i[1] || (i[1] = (S) => Y(v) ? v.value = S : null),
@@ -601,17 +603,17 @@ const st = /* @__PURE__ */ E({
601
603
  ]
602
604
  }, {
603
605
  default: w(() => [
604
- k(A, { title: a.value }, {
606
+ b(A, { title: a.value }, {
605
607
  default: w(() => [
606
- k(D, null, {
608
+ b(D, null, {
607
609
  default: w(() => [
608
610
  q(j(n.value), 1)
609
611
  ]),
610
612
  _: 1
611
613
  }),
612
- k(x, { class: "d-flex justify-end" }, {
614
+ b(x, { class: "d-flex justify-end" }, {
613
615
  default: w(() => [
614
- k(p, {
616
+ b(s, {
615
617
  color: o.value,
616
618
  variant: "text",
617
619
  onClick: i[0] || (i[0] = (S) => v.value = !1)
@@ -621,7 +623,7 @@ const st = /* @__PURE__ */ E({
621
623
  ]),
622
624
  _: 1
623
625
  }, 8, ["color"]),
624
- k(p, {
626
+ b(s, {
625
627
  color: r.value,
626
628
  variant: "text",
627
629
  onClick: L
@@ -642,7 +644,7 @@ const st = /* @__PURE__ */ E({
642
644
  }, 8, ["modelValue", "onKeydown"]);
643
645
  };
644
646
  }
645
- }), pt = /* @__PURE__ */ E({
647
+ }), dt = /* @__PURE__ */ E({
646
648
  __name: "index",
647
649
  props: {
648
650
  zIndex: { default: 1 }
@@ -677,9 +679,9 @@ const st = /* @__PURE__ */ E({
677
679
  for (const [n, o] of t)
678
680
  a[n] = o;
679
681
  return a;
680
- }, _t = /* @__PURE__ */ oe(pt, [["__scopeId", "data-v-7ab74c70"]]);
681
- var it = "M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z", dt = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z", ft = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", gt = "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z", vt = "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z";
682
- const mt = /* @__PURE__ */ E({
682
+ }, ft = /* @__PURE__ */ oe(dt, [["__scopeId", "data-v-7ab74c70"]]);
683
+ var gt = "M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z", vt = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z", mt = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", ht = "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z", wt = "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z";
684
+ const yt = /* @__PURE__ */ E({
683
685
  __name: "item",
684
686
  props: {
685
687
  id: {},
@@ -695,13 +697,13 @@ const mt = /* @__PURE__ */ E({
695
697
  })), o = y(() => {
696
698
  switch (a.type) {
697
699
  case "success":
698
- return dt;
699
- case "info":
700
700
  return vt;
701
+ case "info":
702
+ return wt;
701
703
  case "error":
702
- return gt;
704
+ return ht;
703
705
  case "warning":
704
- return it;
706
+ return gt;
705
707
  default:
706
708
  return "";
707
709
  }
@@ -728,9 +730,9 @@ const mt = /* @__PURE__ */ E({
728
730
  m("div", {
729
731
  style: le(n.value)
730
732
  }, j(a.text), 5),
731
- k(_, {
733
+ b(_, {
732
734
  class: "mx-1",
733
- icon: $(ft),
735
+ icon: $(mt),
734
736
  onClick: u[0] || (u[0] = (v) => r("timeout", a.id))
735
737
  }, null, 8, ["icon"])
736
738
  ]),
@@ -738,14 +740,14 @@ const mt = /* @__PURE__ */ E({
738
740
  }, 8, ["color"]);
739
741
  };
740
742
  }
741
- }), ht = /* @__PURE__ */ oe(mt, [["__scopeId", "data-v-d5cfe252"]]), wt = /* @__PURE__ */ E({
743
+ }), xt = /* @__PURE__ */ oe(yt, [["__scopeId", "data-v-d5cfe252"]]), bt = /* @__PURE__ */ E({
742
744
  __name: "index",
743
745
  setup(e) {
744
746
  const t = f([]);
745
747
  T(() => {
746
- s.on("message", a);
748
+ p.on("message", a);
747
749
  }), W(() => {
748
- s.off("message", a);
750
+ p.off("message", a);
749
751
  });
750
752
  const a = (c) => {
751
753
  const { type: u, text: _, timeout: g } = c;
@@ -766,7 +768,7 @@ const mt = /* @__PURE__ */ E({
766
768
  onClick: u[0] || (u[0] = H(() => {
767
769
  }, ["stop"]))
768
770
  }, [
769
- (C(!0), Q(Se, null, je(t.value, (_) => (C(), R(ht, {
771
+ (C(!0), Q(De, null, Ae(t.value, (_) => (C(), R(xt, {
770
772
  id: _.id,
771
773
  key: _.id,
772
774
  type: _.type,
@@ -776,34 +778,34 @@ const mt = /* @__PURE__ */ E({
776
778
  }, null, 8, ["id", "type", "text", "timeout"]))), 128))
777
779
  ]));
778
780
  }
779
- }), yt = /* @__PURE__ */ oe(wt, [["__scopeId", "data-v-8fd5d800"]]), xt = /* @__PURE__ */ E({
781
+ }), kt = /* @__PURE__ */ oe(bt, [["__scopeId", "data-v-8fd5d800"]]), Ct = /* @__PURE__ */ E({
780
782
  __name: "index",
781
783
  setup(e) {
782
- const { t } = P(), a = f(""), n = f(""), o = f(""), l = f(""), r = f(), c = f(""), u = f(""), _ = f(""), g = f(""), v = f(""), L = Re("target");
783
- let b = 0, i = !1;
784
+ const { t } = P(), a = f(""), n = f(""), o = f(""), l = f(""), r = f(), c = f(""), u = f(""), _ = f(""), g = f(""), v = f(""), L = Me("target");
785
+ let k = 0, i = !1;
784
786
  const D = async (A) => {
785
787
  var S, K, z, B;
786
788
  const d = A;
787
- a.value = d.title, n.value = d.text, o.value = d.label, l.value = d.placeholder, r.value = d.rules, c.value = d.value, u.value = ((S = d.cancel) == null ? void 0 : S.color) ?? "primary", _.value = ((K = d.cancel) == null ? void 0 : K.text) ?? t("dlg.common.cancel"), g.value = ((z = d.confirm) == null ? void 0 : z.color) ?? "primary", v.value = ((B = d.confirm) == null ? void 0 : B.text) ?? t("dlg.common.confirm"), b = d.seq, i = !1, p.value = !0, await te(() => !!L.value), L.value.focus();
788
- }, { open: p } = ae("promptDlg", D), x = () => {
789
- p.value = !1, i || (s.emit("promptDlgResult" + b, c.value ?? ""), i = !0);
789
+ a.value = d.title, n.value = d.text, o.value = d.label, l.value = d.placeholder, r.value = d.rules, c.value = d.value, u.value = ((S = d.cancel) == null ? void 0 : S.color) ?? "primary", _.value = ((K = d.cancel) == null ? void 0 : K.text) ?? t("dlg.common.cancel"), g.value = ((z = d.confirm) == null ? void 0 : z.color) ?? "primary", v.value = ((B = d.confirm) == null ? void 0 : B.text) ?? t("dlg.common.confirm"), k = d.seq, i = !1, s.value = !0, await te(() => !!L.value), L.value.focus();
790
+ }, { open: s } = ae("promptDlg", D), x = () => {
791
+ s.value = !1, i || (p.emit("promptDlgResult" + k, c.value ?? ""), i = !0);
790
792
  };
791
- return N(p, (A) => {
792
- !A && !i && (s.emit("promptDlgResult" + b, void 0), i = !0);
793
+ return N(s, (A) => {
794
+ !A && !i && (p.emit("promptDlgResult" + k, void 0), i = !0);
793
795
  }), (A, d) => {
794
- const S = h("v-card-text"), K = h("v-text-field"), z = h("v-form"), B = h("v-btn"), xe = h("v-card-actions"), ke = h("v-card"), be = h("v-dialog");
795
- return C(), R(be, {
796
- modelValue: $(p),
797
- "onUpdate:modelValue": d[2] || (d[2] = (U) => Y(p) ? p.value = U : null),
796
+ const S = h("v-card-text"), K = h("v-text-field"), z = h("v-form"), B = h("v-btn"), he = h("v-card-actions"), we = h("v-card"), ye = h("v-dialog");
797
+ return C(), R(ye, {
798
+ modelValue: $(s),
799
+ "onUpdate:modelValue": d[2] || (d[2] = (U) => Y(s) ? s.value = U : null),
798
800
  transition: "dialog-top-transition",
799
801
  "max-width": "600px",
800
802
  onKeydown: [
801
- d[3] || (d[3] = F(H((U) => p.value = !1, ["stop", "prevent"]), ["esc"])),
803
+ d[3] || (d[3] = F(H((U) => s.value = !1, ["stop", "prevent"]), ["esc"])),
802
804
  F(H(x, ["stop", "prevent"]), ["enter"])
803
805
  ]
804
806
  }, {
805
807
  default: w(() => [
806
- k(ke, { title: a.value }, {
808
+ b(we, { title: a.value }, {
807
809
  default: w(() => [
808
810
  n.value ? (C(), R(S, { key: 0 }, {
809
811
  default: w(() => [
@@ -811,9 +813,9 @@ const mt = /* @__PURE__ */ E({
811
813
  ]),
812
814
  _: 1
813
815
  })) : ce("", !0),
814
- k(z, { class: "mx-3" }, {
816
+ b(z, { class: "mx-3" }, {
815
817
  default: w(() => [
816
- k(K, {
818
+ b(K, {
817
819
  ref_key: "target",
818
820
  ref: L,
819
821
  modelValue: c.value,
@@ -825,19 +827,19 @@ const mt = /* @__PURE__ */ E({
825
827
  ]),
826
828
  _: 1
827
829
  }),
828
- k(xe, { class: "d-flex justify-end" }, {
830
+ b(he, { class: "d-flex justify-end" }, {
829
831
  default: w(() => [
830
- k(B, {
832
+ b(B, {
831
833
  color: u.value,
832
834
  variant: "text",
833
- onClick: d[1] || (d[1] = (U) => p.value = !1)
835
+ onClick: d[1] || (d[1] = (U) => s.value = !1)
834
836
  }, {
835
837
  default: w(() => [
836
838
  q(j(_.value), 1)
837
839
  ]),
838
840
  _: 1
839
841
  }, 8, ["color"]),
840
- k(B, {
842
+ b(B, {
841
843
  color: g.value,
842
844
  variant: "text",
843
845
  onClick: x
@@ -858,7 +860,7 @@ const mt = /* @__PURE__ */ E({
858
860
  }, 8, ["modelValue", "onKeydown"]);
859
861
  };
860
862
  }
861
- }), kt = { class: "mx-auto my-auto" }, bt = { class: "w-100 h-100 d-flex align-center justify-center" }, Ct = { class: "text-body-1" }, Lt = /* @__PURE__ */ E({
863
+ }), Lt = { class: "mx-auto my-auto" }, Dt = { class: "w-100 h-100 d-flex align-center justify-center" }, At = { class: "text-body-1" }, Mt = /* @__PURE__ */ E({
862
864
  __name: "index",
863
865
  setup(e) {
864
866
  const { t } = P(), a = f(""), n = (r) => {
@@ -868,9 +870,9 @@ const mt = /* @__PURE__ */ E({
868
870
  l.value = !1;
869
871
  }, { open: l } = ae("waitDlg", n);
870
872
  return T(() => {
871
- s.on("closeWaitDlg", o);
873
+ p.on("closeWaitDlg", o);
872
874
  }), W(() => {
873
- s.off("closeWaitDlg", o);
875
+ p.off("closeWaitDlg", o);
874
876
  }), (r, c) => {
875
877
  const u = h("v-card"), _ = h("v-dialog");
876
878
  return C(), R(_, {
@@ -881,15 +883,15 @@ const mt = /* @__PURE__ */ E({
881
883
  fullscreen: ""
882
884
  }, {
883
885
  default: w(() => [
884
- m("div", kt, [
885
- k(u, {
886
+ m("div", Lt, [
887
+ b(u, {
886
888
  width: "300px",
887
889
  height: "80px",
888
890
  loading: ""
889
891
  }, {
890
892
  default: w(() => [
891
- m("div", bt, [
892
- m("span", Ct, j(a.value), 1)
893
+ m("div", Dt, [
894
+ m("span", At, j(a.value), 1)
893
895
  ])
894
896
  ]),
895
897
  _: 1
@@ -900,9 +902,9 @@ const mt = /* @__PURE__ */ E({
900
902
  }, 8, ["modelValue"]);
901
903
  };
902
904
  }
903
- }), Dt = (e) => {
904
- e.component("XConfirmDlg", st), e.component("XLoading", _t), e.component("XMessage", yt), e.component("XPromptDlg", xt), e.component("XWaitDlg", Lt);
905
- }, At = (e, t, a) => {
905
+ }), St = (e) => {
906
+ e.component("XConfirmDlg", it), e.component("XLoading", ft), e.component("XMessage", kt), e.component("XPromptDlg", Ct), e.component("XWaitDlg", Mt);
907
+ }, jt = (e, t, a) => {
906
908
  const n = e[t];
907
909
  return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((o, l) => {
908
910
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
@@ -916,52 +918,52 @@ const mt = /* @__PURE__ */ E({
916
918
  });
917
919
  };
918
920
  async function aa(e) {
919
- return (await At(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-iuzmkt0n.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-m6y1by9n.js") }), `./locales/${e}/index.ts`, 4)).default;
921
+ return (await jt(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-iuzmkt0n.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-m6y1by9n.js") }), `./locales/${e}/index.ts`, 4)).default;
920
922
  }
921
- const oa = { install: Dt };
923
+ const oa = { install: St };
922
924
  export {
923
- ze as Permission,
924
- Ye as addView,
925
- $e as appAppear,
925
+ He as Permission,
926
+ tt as addView,
927
+ Ue as appAppear,
926
928
  Yt as clearViews,
927
- Ut as closeWaitDlg,
928
- Ot as createAxios,
929
+ $t as closeWaitDlg,
930
+ Et as createAxios,
929
931
  oa as default,
930
- Pe as delView,
931
- s as eventBus,
932
- ye as hasView,
933
- Xe as injectDark,
934
- he as injectLastAppPath,
935
- Fe as injectLocale,
936
- Ze as injectPermissionChecksum,
937
- me as injectPermissionObjects,
938
- we as injectViews,
939
- Je as isEmpty,
932
+ at as delView,
933
+ p as eventBus,
934
+ me as hasView,
935
+ Zt as injectDark,
936
+ Ne as injectLastAppPath,
937
+ Nt as injectLocale,
938
+ Gt as injectPermissionChecksum,
939
+ Xe as injectPermissionObjects,
940
+ Qe as injectViews,
941
+ et as isEmpty,
940
942
  re as isExist,
941
943
  Jt as lastView,
942
944
  aa as loadLocaleMessageEssential,
943
945
  Z as matchRouteMeta,
944
- Wt as messageError,
945
- Ht as messageInfo,
946
- $t as messageSuccess,
947
- Kt as messageWarning,
946
+ Kt as messageError,
947
+ zt as messageInfo,
948
+ Xt as messageSuccess,
949
+ Ft as messageWarning,
948
950
  Qt as onBeforeEach,
949
- Tt as openConfirmDlg,
950
- Et as openPromptDlg,
951
- Bt as openWaitDlg,
952
- et as popView,
953
- zt as provideDark,
954
- Nt as provideLastAppPath,
955
- Xt as provideLocale,
956
- Zt as providePermissionChecksum,
957
- Ft as providePermissionObjects,
958
- Gt as provideViews,
951
+ Ut as openConfirmDlg,
952
+ Wt as openPromptDlg,
953
+ Ht as openWaitDlg,
954
+ ot as popView,
955
+ $e as provideDark,
956
+ Ze as provideLastAppPath,
957
+ Ke as provideLocale,
958
+ Fe as providePermissionChecksum,
959
+ ze as providePermissionObjects,
960
+ Ge as provideViews,
959
961
  G as routeTransName,
960
- Vt as useColor,
962
+ Tt as useColor,
961
963
  Pt as useMicroApp,
962
964
  ea as usePermission,
963
965
  ta as useSystem,
964
966
  ae as useViewStack,
965
- It as waitMs,
967
+ Bt as waitMs,
966
968
  te as waitUtil
967
969
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
3
  "private": false,
4
- "version": "0.7.7",
4
+ "version": "0.7.8",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",