x-essential-lib 0.7.6 → 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,5 +1,4 @@
1
1
  export declare function useSystem(): {
2
- finalDark: import("vue").ComputedRef<boolean>;
3
2
  sysBarAvail: import("vue").ComputedRef<boolean>;
4
3
  compactWidth: import("vue").ComputedRef<string>;
5
4
  };
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, getCurrentScope as xe, onScopeDispose as ke, unref as $, ref as f, watchEffect as be, getCurrentInstance as Ce, onMounted as O, provide as I, inject 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 k, 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";
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
4
  import { useTheme as ee, useDisplay as Se } from "vuetify";
5
5
  import { useRouter as ue, useRoute as je } from "vue-router";
6
6
  import Re from "axios";
7
- function Bt() {
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,
@@ -16,42 +16,6 @@ function Bt() {
16
16
  borderColor: c
17
17
  };
18
18
  }
19
- function qe(e) {
20
- return xe() ? (ke(e), !0) : !1;
21
- }
22
- function Ve(e) {
23
- return typeof e == "function" ? e() : $(e);
24
- }
25
- const Oe = typeof window < "u" && typeof document < "u";
26
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
27
- const Ie = Oe ? window : void 0;
28
- function Te() {
29
- const e = f(!1), t = Ce();
30
- return t && O(() => {
31
- e.value = !0;
32
- }, t), e;
33
- }
34
- function Ee(e) {
35
- const t = Te();
36
- return y(() => (t.value, !!e()));
37
- }
38
- function Be(e, t = {}) {
39
- const { window: a = Ie } = t, n = Ee(() => a && "matchMedia" in a && typeof a.matchMedia == "function");
40
- let o;
41
- const l = f(!1), r = (s) => {
42
- l.value = s.matches;
43
- }, c = () => {
44
- o && ("removeEventListener" in o ? o.removeEventListener("change", r) : o.removeListener(r));
45
- }, u = be(() => {
46
- n.value && (c(), o = a.matchMedia(Ve(e)), "addEventListener" in o ? o.addEventListener("change", r) : o.addListener(r), l.value = o.matches);
47
- });
48
- return qe(() => {
49
- u(), c(), o = void 0;
50
- }), l;
51
- }
52
- function Ue(e) {
53
- return Be("(prefers-color-scheme: dark)", e);
54
- }
55
19
  /*! js-cookie v3.0.5 | MIT */
56
20
  function X(e) {
57
21
  for (var t = 1; t < arguments.length; t++) {
@@ -61,7 +25,7 @@ function X(e) {
61
25
  }
62
26
  return e;
63
27
  }
64
- var We = {
28
+ var qe = {
65
29
  read: function(e) {
66
30
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
67
31
  },
@@ -85,10 +49,10 @@ function J(e, t) {
85
49
  function n(o) {
86
50
  if (!(typeof document > "u" || arguments.length && !o)) {
87
51
  for (var l = document.cookie ? document.cookie.split("; ") : [], r = {}, c = 0; c < l.length; c++) {
88
- var u = l[c].split("="), s = u.slice(1).join("=");
52
+ var u = l[c].split("="), _ = u.slice(1).join("=");
89
53
  try {
90
54
  var g = decodeURIComponent(u[0]);
91
- if (r[g] = e.read(s, g), o === g)
55
+ if (r[g] = e.read(_, g), o === g)
92
56
  break;
93
57
  } catch {
94
58
  }
@@ -122,43 +86,43 @@ function J(e, t) {
122
86
  }
123
87
  );
124
88
  }
125
- var V = J(We, { path: "/" });
126
- function Ut(e) {
89
+ var V = J(qe, { path: "/" });
90
+ function Et(e) {
127
91
  const t = Re.create({
128
92
  timeout: 6e3
129
93
  });
130
94
  return t.defaults.baseURL = e.baseUrl, t.interceptors.request.use(
131
- (a) => He(a),
95
+ (a) => Ve(a),
132
96
  (a) => {
133
- $e(a, e.onError);
97
+ Oe(a, e.onError);
134
98
  }
135
99
  ), t.interceptors.response.use(
136
- (a) => Ke(a),
137
- (a) => ze(a, e.onError)
100
+ (a) => Ie(a),
101
+ (a) => Te(a, e.onError)
138
102
  ), t;
139
103
  }
140
- function He(e) {
104
+ function Ve(e) {
141
105
  const t = V.get("accessToken") ?? "";
142
106
  return e.headers.Authorization = "Basic " + t, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
143
107
  }
144
- function $e(e, t) {
108
+ function Oe(e, t) {
145
109
  console.error(e), t("request timeout");
146
110
  }
147
- function Ke(e) {
111
+ function Ie(e) {
148
112
  return e.data;
149
113
  }
150
- function ze(e, t) {
114
+ function Te(e, t) {
151
115
  var o, l;
152
116
  const n = e.response;
153
- return n && (n.status === 401 && Xe(), (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({
154
118
  code: n.status,
155
119
  message: n.statusText
156
120
  })), Promise.reject(e);
157
121
  }
158
- function Xe() {
122
+ function Ee() {
159
123
  V.remove("accessToken"), V.remove("refreshToken"), V.remove("activeOrg"), ue().replace({ path: "/passport/login" });
160
124
  }
161
- function Fe(e) {
125
+ function Be(e) {
162
126
  return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, a) {
163
127
  var n = e.get(t);
164
128
  n ? n.push(a) : e.set(t, [a]);
@@ -175,9 +139,9 @@ function Fe(e) {
175
139
  } };
176
140
  }
177
141
  const p = function() {
178
- return window.eventBus || (window.eventBus = Fe()), window.eventBus;
142
+ return window.eventBus || (window.eventBus = Be()), window.eventBus;
179
143
  }();
180
- async function Wt(e) {
144
+ async function Bt(e) {
181
145
  return new Promise((t) => {
182
146
  setTimeout(t, e);
183
147
  });
@@ -191,7 +155,7 @@ async function te(e, t, a) {
191
155
  l();
192
156
  });
193
157
  }
194
- function Ze(e, t) {
158
+ function Ue(e, t) {
195
159
  const a = document.getElementById("single-spa-application:" + e);
196
160
  a && (a.classList.remove("app-left", "app-right", "app-reset"), t ? a.classList.add("app-left") : a.classList.add("app-right"), setTimeout(() => {
197
161
  a.classList.add("app-reset");
@@ -202,11 +166,11 @@ function pe() {
202
166
  const e = Date.now();
203
167
  return e - ne > 500 ? (ne = e, !0) : !1;
204
168
  }
205
- let Ne = 0;
169
+ let We = 0;
206
170
  function se() {
207
- return ++Ne;
171
+ return ++We;
208
172
  }
209
- async function Ht(e) {
173
+ async function Ut(e) {
210
174
  if (!pe())
211
175
  return;
212
176
  let t = !1, a;
@@ -215,7 +179,7 @@ async function Ht(e) {
215
179
  }, o = se();
216
180
  return p.on("confirmDlgResult" + o, n), p.emit("confirmDlg", { ...e, seq: o }), await te(() => t), p.off("confirmDlgResult" + o, n), a;
217
181
  }
218
- async function $t(e) {
182
+ async function Wt(e) {
219
183
  if (!pe())
220
184
  return;
221
185
  let t = !1, a;
@@ -224,25 +188,25 @@ async function $t(e) {
224
188
  }, o = se();
225
189
  return p.on("promptDlgResult" + o, n), p.emit("promptDlg", { ...e, seq: o }), await te(() => t), p.off("promptDlgResult" + o, n), a;
226
190
  }
227
- function Kt(e) {
191
+ function Ht(e) {
228
192
  p.emit("openWaitDlg", { text: e });
229
193
  }
230
- function zt() {
194
+ function $t() {
231
195
  p.emit("closeWaitDlg");
232
196
  }
233
- function Xt(e, t) {
197
+ function Kt(e, t) {
234
198
  p.emit("message", { type: "error", text: e, timeout: t });
235
199
  }
236
- function Ft(e, t) {
200
+ function zt(e, t) {
237
201
  p.emit("message", { type: "info", text: e, timeout: t });
238
202
  }
239
- function Zt(e, t) {
203
+ function Xt(e, t) {
240
204
  p.emit("message", { type: "success", text: e, timeout: t });
241
205
  }
242
- function Nt(e, t) {
206
+ function Ft(e, t) {
243
207
  p.emit("message", { type: "warning", text: e, timeout: t });
244
208
  }
245
- var Ge = /* @__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))(Ge || {});
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 || {});
246
210
  function re(e, t) {
247
211
  if (!e)
248
212
  return !1;
@@ -257,43 +221,43 @@ function re(e, t) {
257
221
  }), Object.keys(a).length <= 0);
258
222
  }
259
223
  const _e = "essentialDark", ie = "essentialLocale", de = "essentialPermissionObjects", fe = "essentialPermissionChecksum", ge = "essentialLastAppPath", ve = "essentialViews";
260
- function Qe(e) {
261
- I(_e, e);
224
+ function $e(e) {
225
+ O(_e, e);
262
226
  }
263
- function Je() {
264
- return T(_e);
227
+ function Zt() {
228
+ return I(_e);
265
229
  }
266
- function Ye(e) {
267
- I(ie, e);
230
+ function Ke(e) {
231
+ O(ie, e);
268
232
  }
269
- function Gt() {
270
- return T(ie);
233
+ function Nt() {
234
+ return I(ie);
271
235
  }
272
- function Pe(e) {
273
- I(de, e);
236
+ function ze(e) {
237
+ O(de, e);
274
238
  }
275
- function et() {
276
- return T(de);
239
+ function Xe() {
240
+ return I(de);
277
241
  }
278
- function tt(e) {
279
- I(fe, e);
242
+ function Fe(e) {
243
+ O(fe, e);
280
244
  }
281
- function Qt() {
282
- return T(fe);
245
+ function Gt() {
246
+ return I(fe);
283
247
  }
284
- function at(e) {
285
- I(ge, e);
248
+ function Ze(e) {
249
+ O(ge, e);
286
250
  }
287
- function ot() {
288
- return T(ge);
251
+ function Ne() {
252
+ return I(ge);
289
253
  }
290
- function nt(e) {
291
- I(ve, e);
254
+ function Ge(e) {
255
+ O(ve, e);
292
256
  }
293
- function rt() {
294
- return T(ve);
257
+ function Qe() {
258
+ return I(ve);
295
259
  }
296
- const lt = [
260
+ const Je = [
297
261
  {
298
262
  app: "x-passport-mf",
299
263
  path: "/passport/login",
@@ -404,7 +368,7 @@ const lt = [
404
368
  function Z(e) {
405
369
  let t, a = 0;
406
370
  const n = e.split("/").filter((o) => o.trim() !== "");
407
- return lt.forEach((o) => {
371
+ return Je.forEach((o) => {
408
372
  const l = o.path.split("/").filter((c) => c.trim() !== "");
409
373
  let r = 0;
410
374
  for (let c = 0; c < n.length && !(c >= l.length || n[c] !== l[c]); c++)
@@ -414,7 +378,7 @@ function Z(e) {
414
378
  }
415
379
  const G = f("");
416
380
  function M(e, t) {
417
- const a = ot();
381
+ const a = Ne();
418
382
  t === "/" && (t = a.value);
419
383
  const n = Z(e), o = Z(t);
420
384
  if (!n) {
@@ -424,16 +388,16 @@ function M(e, t) {
424
388
  if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !o)
425
389
  return;
426
390
  const l = n.app === o.app, r = n.path === o.path, c = n.level >= o.level;
427
- l ? r ? G.value = "" : G.value = c ? "inner-left" : "inner-right" : (G.value = "", Ze(n.app, c));
391
+ l ? r ? G.value = "" : G.value = c ? "inner-left" : "inner-right" : (G.value = "", Ue(n.app, c));
428
392
  }
429
- function ct() {
393
+ function Ye() {
430
394
  return !!V.get("accessToken");
431
395
  }
432
- function ut() {
396
+ function Pe() {
433
397
  return !!V.get("activeOrg");
434
398
  }
435
- function Jt(e, t, a) {
436
- const n = ct(), o = ut(), l = Z(e.path);
399
+ function Qt(e, t, a) {
400
+ const n = Ye(), o = Pe(), l = Z(e.path);
437
401
  if (!l) {
438
402
  console.assert(!1), a();
439
403
  return;
@@ -472,125 +436,162 @@ function Jt(e, t, a) {
472
436
  else
473
437
  M(e.path, t.path), a();
474
438
  }
475
- function pt(e) {
439
+ function et(e) {
476
440
  return e.value.length <= 0;
477
441
  }
478
- function Yt(e) {
442
+ function Jt(e) {
479
443
  return e.value.at(-1);
480
444
  }
481
445
  function me(e, t) {
482
446
  return !!e.value.find((a) => a === t);
483
447
  }
484
- function st(e, t) {
448
+ function tt(e, t) {
485
449
  const a = e.value.findIndex((n) => n === t);
486
450
  a >= 0 && e.value.splice(a, 1), e.value.push(t);
487
451
  }
488
- function _t(e, t) {
452
+ function at(e, t) {
489
453
  const a = e.value.findIndex((n) => n === t);
490
454
  a >= 0 && e.value.splice(a, 1);
491
455
  }
492
- function it(e) {
456
+ function ot(e) {
493
457
  console.assert(e.value.length > 0), e.value.pop();
494
458
  }
495
- function Pt(e) {
459
+ function Yt(e) {
496
460
  e.value = [];
497
461
  }
498
- function dt() {
499
- const e = Je(), t = Ue(), a = y(() => typeof e.value == "boolean" ? e.value : t.value), n = y(() => !!window.cordova), o = Se(), l = y(() => o.width.value <= 1280 ? o.width.value + "px" : o.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
500
- return { finalDark: a, sysBarAvail: n, compactWidth: l };
462
+ function nt(e) {
463
+ return xe() ? (be(e), !0) : !1;
464
+ }
465
+ function rt(e) {
466
+ return typeof e == "function" ? e() : $(e);
467
+ }
468
+ const lt = typeof window < "u" && typeof document < "u";
469
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
470
+ const ct = lt ? window : void 0;
471
+ function ut() {
472
+ const e = f(!1), t = Ce();
473
+ return t && T(() => {
474
+ e.value = !0;
475
+ }, t), e;
476
+ }
477
+ function pt(e) {
478
+ const t = ut();
479
+ return y(() => (t.value, !!e()));
480
+ }
481
+ function st(e, t = {}) {
482
+ const { window: a = ct } = t, n = pt(() => a && "matchMedia" in a && typeof a.matchMedia == "function");
483
+ let o;
484
+ const l = f(!1), r = (_) => {
485
+ l.value = _.matches;
486
+ }, c = () => {
487
+ o && ("removeEventListener" in o ? o.removeEventListener("change", r) : o.removeListener(r));
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
+ });
491
+ return nt(() => {
492
+ u(), c(), o = void 0;
493
+ }), l;
494
+ }
495
+ function _t(e) {
496
+ return st("(prefers-color-scheme: dark)", e);
501
497
  }
502
- function ea(e, t, a, n, o, l) {
498
+ function Pt(e, t, a, n, o, l) {
503
499
  const r = je(), c = ue();
504
- Qe(e), Ye(t), Pe(a), tt(n), at(o), nt(l);
505
- const u = ee(), { finalDark: s } = dt();
500
+ $e(e), Ke(t), ze(a), Fe(n), Ze(o), Ge(l);
501
+ const u = ee(), _ = _t();
506
502
  N(
507
- s,
508
- (_) => {
509
- u.global.name.value = _ ? "dark" : "light";
503
+ e,
504
+ () => {
505
+ let s = !1;
506
+ typeof e.value == "boolean" ? s = e.value : s = _.value, u.global.name.value = s ? "dark" : "light";
510
507
  },
511
508
  { immediate: !0 }
512
509
  );
513
- const g = (_) => {
514
- if (_.key === "Escape") {
510
+ const g = (s) => {
511
+ if (s.key === "Escape") {
515
512
  v();
516
513
  return;
517
514
  }
518
515
  }, v = () => {
519
516
  var x;
520
- if (!pt(l)) {
521
- me(l, "waitDlg") || it(l);
517
+ if (!et(l)) {
518
+ me(l, "waitDlg") || ot(l);
522
519
  return;
523
520
  }
524
- const _ = Z(r.path);
525
- (_ == null ? void 0 : _.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(
526
523
  () => {
527
524
  },
528
525
  () => {
529
526
  }
530
527
  ) : c.back();
531
528
  };
532
- O(() => {
529
+ T(() => {
533
530
  window.addEventListener("keydown", g), p.on("backbutton", v);
534
531
  }), W(() => {
535
532
  window.removeEventListener("keydown", g), p.off("backbutton", v);
536
533
  });
537
- const L = (_) => {
538
- e.value = _;
539
- }, b = (_) => {
540
- t.value = _;
541
- }, i = (_) => {
542
- const x = _;
534
+ const L = (s) => {
535
+ e.value = s;
536
+ }, k = (s) => {
537
+ t.value = s;
538
+ }, i = (s) => {
539
+ const x = s;
543
540
  a.value = x[0], n.value = x[1];
544
- }, D = (_) => {
545
- o.value = _;
541
+ }, D = (s) => {
542
+ o.value = s;
546
543
  };
547
544
  Le(() => {
548
- p.on("updateDark", L), p.on("updateLocale", b), p.on("updatePermission", i), p.on("updateLastAppPath", D), p.emit("syncGlobalState");
545
+ p.on("updateDark", L), p.on("updateLocale", k), p.on("updatePermission", i), p.on("updateLastAppPath", D), p.emit("syncGlobalState");
549
546
  }), W(() => {
550
- p.off("updateDark", L), p.off("updateLocale", b), p.off("updatePermission", i), p.off("updateLastAppPath", D);
547
+ p.off("updateDark", L), p.off("updateLocale", k), p.off("updatePermission", i), p.off("updateLastAppPath", D);
551
548
  });
552
549
  }
553
- function ta() {
554
- const e = et();
550
+ function ea() {
551
+ const e = Xe();
555
552
  function t(a, n) {
556
553
  const o = e.value[a];
557
554
  return o ? n ? !(!re(o.includes, n) || re(o.excludes, n)) : !0 : !1;
558
555
  }
559
556
  return { verifyPermission: t };
560
557
  }
558
+ function ta() {
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");
560
+ return { sysBarAvail: e, compactWidth: a };
561
+ }
561
562
  function ae(e, t) {
562
- const a = rt(), n = y({
563
+ const a = Qe(), n = y({
563
564
  get() {
564
565
  return me(a, e);
565
566
  },
566
567
  set(l) {
567
- l ? st(a, e) : _t(a, e);
568
+ l ? tt(a, e) : at(a, e);
568
569
  }
569
570
  }), o = (l) => {
570
571
  t == null || t(l), n.value = !0;
571
572
  };
572
- return O(() => {
573
+ return T(() => {
573
574
  p.on(e, o);
574
575
  }), W(() => {
575
576
  p.off(e, o);
576
577
  }), { open: n };
577
578
  }
578
- const ft = /* @__PURE__ */ E({
579
+ const it = /* @__PURE__ */ E({
579
580
  __name: "index",
580
581
  setup(e) {
581
582
  const { t } = P(), a = f(""), n = f(""), o = f(""), l = f(""), r = f(""), c = f("");
582
- let u = 0, s = !1;
583
- const g = (b) => {
584
- var D, _, x, A;
585
- const i = b;
586
- a.value = i.title, n.value = i.text, o.value = ((D = i.cancel) == null ? void 0 : D.color) ?? "primary", l.value = ((_ = i.cancel) == null ? void 0 : _.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, s = !1, v.value = !0;
583
+ let u = 0, _ = !1;
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;
587
588
  }, { open: v } = ae("confirmDlg", g), L = () => {
588
- v.value = !1, s || (p.emit("confirmDlgResult" + u, !0), s = !0);
589
+ v.value = !1, _ || (p.emit("confirmDlgResult" + u, !0), _ = !0);
589
590
  };
590
- return N(v, (b) => {
591
- !b && !s && (p.emit("confirmDlgResult" + u, !1), s = !0);
592
- }), (b, i) => {
593
- const D = h("v-card-text"), _ = 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");
594
595
  return C(), R(d, {
595
596
  modelValue: $(v),
596
597
  "onUpdate:modelValue": i[1] || (i[1] = (S) => Y(v) ? v.value = S : null),
@@ -602,17 +603,17 @@ const ft = /* @__PURE__ */ E({
602
603
  ]
603
604
  }, {
604
605
  default: w(() => [
605
- k(A, { title: a.value }, {
606
+ b(A, { title: a.value }, {
606
607
  default: w(() => [
607
- k(D, null, {
608
+ b(D, null, {
608
609
  default: w(() => [
609
610
  q(j(n.value), 1)
610
611
  ]),
611
612
  _: 1
612
613
  }),
613
- k(x, { class: "d-flex justify-end" }, {
614
+ b(x, { class: "d-flex justify-end" }, {
614
615
  default: w(() => [
615
- k(_, {
616
+ b(s, {
616
617
  color: o.value,
617
618
  variant: "text",
618
619
  onClick: i[0] || (i[0] = (S) => v.value = !1)
@@ -622,7 +623,7 @@ const ft = /* @__PURE__ */ E({
622
623
  ]),
623
624
  _: 1
624
625
  }, 8, ["color"]),
625
- k(_, {
626
+ b(s, {
626
627
  color: r.value,
627
628
  variant: "text",
628
629
  onClick: L
@@ -643,7 +644,7 @@ const ft = /* @__PURE__ */ E({
643
644
  }, 8, ["modelValue", "onKeydown"]);
644
645
  };
645
646
  }
646
- }), gt = /* @__PURE__ */ E({
647
+ }), dt = /* @__PURE__ */ E({
647
648
  __name: "index",
648
649
  props: {
649
650
  zIndex: { default: 1 }
@@ -678,9 +679,9 @@ const ft = /* @__PURE__ */ E({
678
679
  for (const [n, o] of t)
679
680
  a[n] = o;
680
681
  return a;
681
- }, vt = /* @__PURE__ */ oe(gt, [["__scopeId", "data-v-7ab74c70"]]);
682
- var mt = "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", ht = "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", wt = "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", yt = "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", xt = "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";
683
- const kt = /* @__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({
684
685
  __name: "item",
685
686
  props: {
686
687
  id: {},
@@ -696,32 +697,32 @@ const kt = /* @__PURE__ */ E({
696
697
  })), o = y(() => {
697
698
  switch (a.type) {
698
699
  case "success":
699
- return ht;
700
+ return vt;
700
701
  case "info":
701
- return xt;
702
+ return wt;
702
703
  case "error":
703
- return yt;
704
+ return ht;
704
705
  case "warning":
705
- return mt;
706
+ return gt;
706
707
  default:
707
708
  return "";
708
709
  }
709
710
  }), l = f(!0), r = t;
710
- return O(() => {
711
+ return T(() => {
711
712
  setTimeout(() => {
712
713
  r("timeout", a.id);
713
714
  }, a.timeout);
714
715
  }), N(l, (c) => {
715
716
  c || r("timeout", a.id);
716
717
  }), (c, u) => {
717
- const s = h("v-icon"), g = h("v-sheet");
718
+ const _ = h("v-icon"), g = h("v-sheet");
718
719
  return C(), R(g, {
719
720
  class: "x-item d-flex align-center py-2 mb-2",
720
721
  color: a.type,
721
722
  elevation: 1
722
723
  }, {
723
724
  default: w(() => [
724
- o.value ? (C(), R(s, {
725
+ o.value ? (C(), R(_, {
725
726
  key: 0,
726
727
  class: "mx-1",
727
728
  icon: o.value
@@ -729,9 +730,9 @@ const kt = /* @__PURE__ */ E({
729
730
  m("div", {
730
731
  style: le(n.value)
731
732
  }, j(a.text), 5),
732
- k(s, {
733
+ b(_, {
733
734
  class: "mx-1",
734
- icon: $(wt),
735
+ icon: $(mt),
735
736
  onClick: u[0] || (u[0] = (v) => r("timeout", a.id))
736
737
  }, null, 8, ["icon"])
737
738
  ]),
@@ -739,27 +740,27 @@ const kt = /* @__PURE__ */ E({
739
740
  }, 8, ["color"]);
740
741
  };
741
742
  }
742
- }), bt = /* @__PURE__ */ oe(kt, [["__scopeId", "data-v-d5cfe252"]]), Ct = /* @__PURE__ */ E({
743
+ }), xt = /* @__PURE__ */ oe(yt, [["__scopeId", "data-v-d5cfe252"]]), bt = /* @__PURE__ */ E({
743
744
  __name: "index",
744
745
  setup(e) {
745
746
  const t = f([]);
746
- O(() => {
747
+ T(() => {
747
748
  p.on("message", a);
748
749
  }), W(() => {
749
750
  p.off("message", a);
750
751
  });
751
752
  const a = (c) => {
752
- const { type: u, text: s, timeout: g } = c;
753
- l(u, s, g);
753
+ const { type: u, text: _, timeout: g } = c;
754
+ l(u, _, g);
754
755
  }, n = (c) => {
755
756
  r(c);
756
757
  };
757
758
  let o = 0;
758
- const l = (c, u, s) => {
759
+ const l = (c, u, _) => {
759
760
  const g = o++;
760
- t.value.push({ id: g, type: c, text: u, timeout: s });
761
+ t.value.push({ id: g, type: c, text: u, timeout: _ });
761
762
  }, r = (c) => {
762
- const u = t.value.findIndex((s) => s.id === c);
763
+ const u = t.value.findIndex((_) => _.id === c);
763
764
  u >= 0 && t.value.splice(u, 1);
764
765
  };
765
766
  return (c, u) => (C(), Q("div", {
@@ -767,44 +768,44 @@ const kt = /* @__PURE__ */ E({
767
768
  onClick: u[0] || (u[0] = H(() => {
768
769
  }, ["stop"]))
769
770
  }, [
770
- (C(!0), Q(De, null, Ae(t.value, (s) => (C(), R(bt, {
771
- id: s.id,
772
- key: s.id,
773
- type: s.type,
774
- text: s.text,
775
- timeout: s.timeout,
771
+ (C(!0), Q(De, null, Ae(t.value, (_) => (C(), R(xt, {
772
+ id: _.id,
773
+ key: _.id,
774
+ type: _.type,
775
+ text: _.text,
776
+ timeout: _.timeout,
776
777
  onTimeout: n
777
778
  }, null, 8, ["id", "type", "text", "timeout"]))), 128))
778
779
  ]));
779
780
  }
780
- }), Lt = /* @__PURE__ */ oe(Ct, [["__scopeId", "data-v-8fd5d800"]]), Dt = /* @__PURE__ */ E({
781
+ }), kt = /* @__PURE__ */ oe(bt, [["__scopeId", "data-v-8fd5d800"]]), Ct = /* @__PURE__ */ E({
781
782
  __name: "index",
782
783
  setup(e) {
783
- const { t } = P(), a = f(""), n = f(""), o = f(""), l = f(""), r = f(), c = f(""), u = f(""), s = f(""), g = f(""), v = f(""), L = Me("target");
784
- 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;
785
786
  const D = async (A) => {
786
787
  var S, K, z, B;
787
788
  const d = A;
788
- 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", s.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, _.value = !0, await te(() => !!L.value), L.value.focus();
789
- }, { open: _ } = ae("promptDlg", D), x = () => {
790
- _.value = !1, i || (p.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);
791
792
  };
792
- return N(_, (A) => {
793
- !A && !i && (p.emit("promptDlgResult" + b, void 0), i = !0);
793
+ return N(s, (A) => {
794
+ !A && !i && (p.emit("promptDlgResult" + k, void 0), i = !0);
794
795
  }), (A, d) => {
795
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");
796
797
  return C(), R(ye, {
797
- modelValue: $(_),
798
- "onUpdate:modelValue": d[2] || (d[2] = (U) => Y(_) ? _.value = U : null),
798
+ modelValue: $(s),
799
+ "onUpdate:modelValue": d[2] || (d[2] = (U) => Y(s) ? s.value = U : null),
799
800
  transition: "dialog-top-transition",
800
801
  "max-width": "600px",
801
802
  onKeydown: [
802
- d[3] || (d[3] = F(H((U) => _.value = !1, ["stop", "prevent"]), ["esc"])),
803
+ d[3] || (d[3] = F(H((U) => s.value = !1, ["stop", "prevent"]), ["esc"])),
803
804
  F(H(x, ["stop", "prevent"]), ["enter"])
804
805
  ]
805
806
  }, {
806
807
  default: w(() => [
807
- k(we, { title: a.value }, {
808
+ b(we, { title: a.value }, {
808
809
  default: w(() => [
809
810
  n.value ? (C(), R(S, { key: 0 }, {
810
811
  default: w(() => [
@@ -812,9 +813,9 @@ const kt = /* @__PURE__ */ E({
812
813
  ]),
813
814
  _: 1
814
815
  })) : ce("", !0),
815
- k(z, { class: "mx-3" }, {
816
+ b(z, { class: "mx-3" }, {
816
817
  default: w(() => [
817
- k(K, {
818
+ b(K, {
818
819
  ref_key: "target",
819
820
  ref: L,
820
821
  modelValue: c.value,
@@ -826,19 +827,19 @@ const kt = /* @__PURE__ */ E({
826
827
  ]),
827
828
  _: 1
828
829
  }),
829
- k(he, { class: "d-flex justify-end" }, {
830
+ b(he, { class: "d-flex justify-end" }, {
830
831
  default: w(() => [
831
- k(B, {
832
+ b(B, {
832
833
  color: u.value,
833
834
  variant: "text",
834
- onClick: d[1] || (d[1] = (U) => _.value = !1)
835
+ onClick: d[1] || (d[1] = (U) => s.value = !1)
835
836
  }, {
836
837
  default: w(() => [
837
- q(j(s.value), 1)
838
+ q(j(_.value), 1)
838
839
  ]),
839
840
  _: 1
840
841
  }, 8, ["color"]),
841
- k(B, {
842
+ b(B, {
842
843
  color: g.value,
843
844
  variant: "text",
844
845
  onClick: x
@@ -859,7 +860,7 @@ const kt = /* @__PURE__ */ E({
859
860
  }, 8, ["modelValue", "onKeydown"]);
860
861
  };
861
862
  }
862
- }), At = { class: "mx-auto my-auto" }, Mt = { class: "w-100 h-100 d-flex align-center justify-center" }, St = { class: "text-body-1" }, jt = /* @__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({
863
864
  __name: "index",
864
865
  setup(e) {
865
866
  const { t } = P(), a = f(""), n = (r) => {
@@ -868,13 +869,13 @@ const kt = /* @__PURE__ */ E({
868
869
  }, o = () => {
869
870
  l.value = !1;
870
871
  }, { open: l } = ae("waitDlg", n);
871
- return O(() => {
872
+ return T(() => {
872
873
  p.on("closeWaitDlg", o);
873
874
  }), W(() => {
874
875
  p.off("closeWaitDlg", o);
875
876
  }), (r, c) => {
876
- const u = h("v-card"), s = h("v-dialog");
877
- return C(), R(s, {
877
+ const u = h("v-card"), _ = h("v-dialog");
878
+ return C(), R(_, {
878
879
  modelValue: $(l),
879
880
  "onUpdate:modelValue": c[0] || (c[0] = (g) => Y(l) ? l.value = g : null),
880
881
  persistent: "",
@@ -882,15 +883,15 @@ const kt = /* @__PURE__ */ E({
882
883
  fullscreen: ""
883
884
  }, {
884
885
  default: w(() => [
885
- m("div", At, [
886
- k(u, {
886
+ m("div", Lt, [
887
+ b(u, {
887
888
  width: "300px",
888
889
  height: "80px",
889
890
  loading: ""
890
891
  }, {
891
892
  default: w(() => [
892
- m("div", Mt, [
893
- m("span", St, j(a.value), 1)
893
+ m("div", Dt, [
894
+ m("span", At, j(a.value), 1)
894
895
  ])
895
896
  ]),
896
897
  _: 1
@@ -901,9 +902,9 @@ const kt = /* @__PURE__ */ E({
901
902
  }, 8, ["modelValue"]);
902
903
  };
903
904
  }
904
- }), Rt = (e) => {
905
- e.component("XConfirmDlg", ft), e.component("XLoading", vt), e.component("XMessage", Lt), e.component("XPromptDlg", Dt), e.component("XWaitDlg", jt);
906
- }, qt = (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) => {
907
908
  const n = e[t];
908
909
  return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((o, l) => {
909
910
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
@@ -917,52 +918,52 @@ const kt = /* @__PURE__ */ E({
917
918
  });
918
919
  };
919
920
  async function aa(e) {
920
- return (await qt(/* @__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;
921
922
  }
922
- const oa = { install: Rt };
923
+ const oa = { install: St };
923
924
  export {
924
- Ge as Permission,
925
- st as addView,
926
- Ze as appAppear,
927
- Pt as clearViews,
928
- zt as closeWaitDlg,
929
- Ut as createAxios,
925
+ He as Permission,
926
+ tt as addView,
927
+ Ue as appAppear,
928
+ Yt as clearViews,
929
+ $t as closeWaitDlg,
930
+ Et as createAxios,
930
931
  oa as default,
931
- _t as delView,
932
+ at as delView,
932
933
  p as eventBus,
933
934
  me as hasView,
934
- Je as injectDark,
935
- ot as injectLastAppPath,
936
- Gt as injectLocale,
937
- Qt as injectPermissionChecksum,
938
- et as injectPermissionObjects,
939
- rt as injectViews,
940
- pt as isEmpty,
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,
941
942
  re as isExist,
942
- Yt as lastView,
943
+ Jt as lastView,
943
944
  aa as loadLocaleMessageEssential,
944
945
  Z as matchRouteMeta,
945
- Xt as messageError,
946
- Ft as messageInfo,
947
- Zt as messageSuccess,
948
- Nt as messageWarning,
949
- Jt as onBeforeEach,
950
- Ht as openConfirmDlg,
951
- $t as openPromptDlg,
952
- Kt as openWaitDlg,
953
- it as popView,
954
- Qe as provideDark,
955
- at as provideLastAppPath,
956
- Ye as provideLocale,
957
- tt as providePermissionChecksum,
958
- Pe as providePermissionObjects,
959
- nt as provideViews,
946
+ Kt as messageError,
947
+ zt as messageInfo,
948
+ Xt as messageSuccess,
949
+ Ft as messageWarning,
950
+ Qt as onBeforeEach,
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,
960
961
  G as routeTransName,
961
- Bt as useColor,
962
- ea as useMicroApp,
963
- ta as usePermission,
964
- dt as useSystem,
962
+ Tt as useColor,
963
+ Pt as useMicroApp,
964
+ ea as usePermission,
965
+ ta as useSystem,
965
966
  ae as useViewStack,
966
- Wt as waitMs,
967
+ Bt as waitMs,
967
968
  te as waitUtil
968
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.6",
4
+ "version": "0.7.8",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",