x-essential-lib 0.7.6 → 0.7.7

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,3 +1 @@
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;
1
+ export declare function useMicroApp(): void;
@@ -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 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";
3
3
  import { useI18n as P } from "vue-i18n";
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 Bt() {
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() {
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 Ie = {
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) {
127
- const t = Re.create({
89
+ var V = J(Ie, { path: "/" });
90
+ function Ot(e) {
91
+ const t = Oe.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) => Te(a),
132
96
  (a) => {
133
- $e(a, e.onError);
97
+ Ee(a, e.onError);
134
98
  }
135
99
  ), t.interceptors.response.use(
136
- (a) => Ke(a),
137
- (a) => ze(a, e.onError)
100
+ (a) => Be(a),
101
+ (a) => Ue(a, e.onError)
138
102
  ), t;
139
103
  }
140
- function He(e) {
104
+ function Te(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 Ee(e, t) {
145
109
  console.error(e), t("request timeout");
146
110
  }
147
- function Ke(e) {
111
+ function Be(e) {
148
112
  return e.data;
149
113
  }
150
- function ze(e, t) {
114
+ function Ue(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 && We(), (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 We() {
159
123
  V.remove("accessToken"), V.remove("refreshToken"), V.remove("activeOrg"), ue().replace({ path: "/passport/login" });
160
124
  }
161
- function Fe(e) {
125
+ function He(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]);
@@ -174,10 +138,10 @@ function Fe(e) {
174
138
  });
175
139
  } };
176
140
  }
177
- const p = function() {
178
- return window.eventBus || (window.eventBus = Fe()), window.eventBus;
141
+ const s = function() {
142
+ return window.eventBus || (window.eventBus = He()), window.eventBus;
179
143
  }();
180
- async function Wt(e) {
144
+ async function It(e) {
181
145
  return new Promise((t) => {
182
146
  setTimeout(t, e);
183
147
  });
@@ -191,58 +155,58 @@ async function te(e, t, a) {
191
155
  l();
192
156
  });
193
157
  }
194
- function Ze(e, t) {
158
+ function $e(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");
198
162
  }, 50));
199
163
  }
200
164
  let ne = Date.now();
201
- function pe() {
165
+ function se() {
202
166
  const e = Date.now();
203
167
  return e - ne > 500 ? (ne = e, !0) : !1;
204
168
  }
205
- let Ne = 0;
206
- function se() {
207
- return ++Ne;
169
+ let Ke = 0;
170
+ function pe() {
171
+ return ++Ke;
208
172
  }
209
- async function Ht(e) {
210
- if (!pe())
173
+ async function Tt(e) {
174
+ if (!se())
211
175
  return;
212
176
  let t = !1, a;
213
177
  const n = (l) => {
214
178
  a = l, t = !0;
215
- }, o = se();
216
- return p.on("confirmDlgResult" + o, n), p.emit("confirmDlg", { ...e, seq: o }), await te(() => t), p.off("confirmDlgResult" + o, n), a;
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;
217
181
  }
218
- async function $t(e) {
219
- if (!pe())
182
+ async function Et(e) {
183
+ if (!se())
220
184
  return;
221
185
  let t = !1, a;
222
186
  const n = (l) => {
223
187
  a = l, t = !0;
224
- }, o = se();
225
- return p.on("promptDlgResult" + o, n), p.emit("promptDlg", { ...e, seq: o }), await te(() => t), p.off("promptDlgResult" + o, n), a;
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;
226
190
  }
227
- function Kt(e) {
228
- p.emit("openWaitDlg", { text: e });
191
+ function Bt(e) {
192
+ s.emit("openWaitDlg", { text: e });
229
193
  }
230
- function zt() {
231
- p.emit("closeWaitDlg");
194
+ function Ut() {
195
+ s.emit("closeWaitDlg");
232
196
  }
233
- function Xt(e, t) {
234
- p.emit("message", { type: "error", text: e, timeout: t });
197
+ function Wt(e, t) {
198
+ s.emit("message", { type: "error", text: e, timeout: t });
235
199
  }
236
- function Ft(e, t) {
237
- p.emit("message", { type: "info", text: e, timeout: t });
200
+ function Ht(e, t) {
201
+ s.emit("message", { type: "info", text: e, timeout: t });
238
202
  }
239
- function Zt(e, t) {
240
- p.emit("message", { type: "success", text: e, timeout: t });
203
+ function $t(e, t) {
204
+ s.emit("message", { type: "success", text: e, timeout: t });
241
205
  }
242
- function Nt(e, t) {
243
- p.emit("message", { type: "warning", text: e, timeout: t });
206
+ function Kt(e, t) {
207
+ s.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 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 || {});
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 zt(e) {
225
+ O(_e, e);
262
226
  }
263
- function Je() {
264
- return T(_e);
227
+ function Xe() {
228
+ return I(_e);
265
229
  }
266
- function Ye(e) {
267
- I(ie, e);
230
+ function Xt(e) {
231
+ O(ie, e);
268
232
  }
269
- function Gt() {
270
- return T(ie);
233
+ function Fe() {
234
+ return I(ie);
271
235
  }
272
- function Pe(e) {
273
- I(de, e);
236
+ function Ft(e) {
237
+ O(de, e);
274
238
  }
275
- function et() {
276
- return T(de);
239
+ function me() {
240
+ return I(de);
277
241
  }
278
- function tt(e) {
279
- I(fe, e);
242
+ function Zt(e) {
243
+ O(fe, e);
280
244
  }
281
- function Qt() {
282
- return T(fe);
245
+ function Ze() {
246
+ return I(fe);
283
247
  }
284
- function at(e) {
285
- I(ge, e);
248
+ function Nt(e) {
249
+ O(ge, e);
286
250
  }
287
- function ot() {
288
- return T(ge);
251
+ function he() {
252
+ return I(ge);
289
253
  }
290
- function nt(e) {
291
- I(ve, e);
254
+ function Gt(e) {
255
+ O(ve, e);
292
256
  }
293
- function rt() {
294
- return T(ve);
257
+ function we() {
258
+ return I(ve);
295
259
  }
296
- const lt = [
260
+ const Ne = [
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 Ne.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 = he();
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 = "", $e(n.app, c));
428
392
  }
429
- function ct() {
393
+ function Ge() {
430
394
  return !!V.get("accessToken");
431
395
  }
432
- function ut() {
396
+ function Qe() {
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 = Ge(), o = Qe(), l = Z(e.path);
437
401
  if (!l) {
438
402
  console.assert(!1), a();
439
403
  return;
@@ -472,125 +436,160 @@ function Jt(e, t, a) {
472
436
  else
473
437
  M(e.path, t.path), a();
474
438
  }
475
- function pt(e) {
439
+ function Je(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
- function me(e, t) {
445
+ function ye(e, t) {
482
446
  return !!e.value.find((a) => a === t);
483
447
  }
484
- function st(e, t) {
448
+ function Ye(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 Pe(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 et(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 tt(e) {
463
+ return Ce() ? (Le(e), !0) : !1;
464
+ }
465
+ function at(e) {
466
+ return typeof e == "function" ? e() : $(e);
467
+ }
468
+ const ot = typeof window < "u" && typeof document < "u";
469
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
470
+ const nt = ot ? window : void 0;
471
+ function rt() {
472
+ const e = f(!1), t = Ae();
473
+ return t && T(() => {
474
+ e.value = !0;
475
+ }, t), e;
501
476
  }
502
- function ea(e, t, a, n, o, l) {
503
- 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();
477
+ function lt(e) {
478
+ const t = rt();
479
+ return y(() => (t.value, !!e()));
480
+ }
481
+ function ct(e, t = {}) {
482
+ const { window: a = nt } = t, n = lt(() => 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 = De(() => {
489
+ n.value && (c(), o = a.matchMedia(at(e)), "addEventListener" in o ? o.addEventListener("change", r) : o.addListener(r), l.value = o.matches);
490
+ });
491
+ return tt(() => {
492
+ u(), c(), o = void 0;
493
+ }), l;
494
+ }
495
+ function ut(e) {
496
+ return ct("(prefers-color-scheme: dark)", e);
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();
506
500
  N(
507
- s,
508
- (_) => {
509
- u.global.name.value = _ ? "dark" : "light";
501
+ a,
502
+ () => {
503
+ let p = !1;
504
+ typeof a.value == "boolean" ? p = a.value : p = _.value, u.global.name.value = p ? "dark" : "light";
510
505
  },
511
506
  { immediate: !0 }
512
507
  );
513
- const g = (_) => {
514
- if (_.key === "Escape") {
508
+ const g = (p) => {
509
+ if (p.key === "Escape") {
515
510
  v();
516
511
  return;
517
512
  }
518
513
  }, v = () => {
519
514
  var x;
520
- if (!pt(l)) {
521
- me(l, "waitDlg") || it(l);
515
+ if (!Je(c)) {
516
+ ye(c, "waitDlg") || et(c);
522
517
  return;
523
518
  }
524
- const _ = Z(r.path);
525
- (_ == null ? void 0 : _.level) === 0 ? (x = navigator == null ? void 0 : navigator.Backbutton) == null || x.goHome(
519
+ const p = Z(e.path);
520
+ (p == null ? void 0 : p.level) === 0 ? (x = navigator == null ? void 0 : navigator.Backbutton) == null || x.goHome(
526
521
  () => {
527
522
  },
528
523
  () => {
529
524
  }
530
- ) : c.back();
525
+ ) : t.back();
531
526
  };
532
- O(() => {
533
- window.addEventListener("keydown", g), p.on("backbutton", v);
527
+ T(() => {
528
+ window.addEventListener("keydown", g), s.on("backbutton", v);
534
529
  }), W(() => {
535
- window.removeEventListener("keydown", g), p.off("backbutton", v);
530
+ window.removeEventListener("keydown", g), s.off("backbutton", v);
536
531
  });
537
- const L = (_) => {
538
- e.value = _;
539
- }, b = (_) => {
540
- t.value = _;
541
- }, i = (_) => {
542
- const x = _;
543
- a.value = x[0], n.value = x[1];
544
- }, D = (_) => {
545
- o.value = _;
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;
546
541
  };
547
- Le(() => {
548
- p.on("updateDark", L), p.on("updateLocale", b), p.on("updatePermission", i), p.on("updateLastAppPath", D), p.emit("syncGlobalState");
542
+ Me(() => {
543
+ s.on("updateDark", L), s.on("updateLocale", b), s.on("updatePermission", i), s.on("updateLastAppPath", D), s.emit("syncGlobalState");
549
544
  }), W(() => {
550
- p.off("updateDark", L), p.off("updateLocale", b), p.off("updatePermission", i), p.off("updateLastAppPath", D);
545
+ s.off("updateDark", L), s.off("updateLocale", b), s.off("updatePermission", i), s.off("updateLastAppPath", D);
551
546
  });
552
547
  }
553
- function ta() {
554
- const e = et();
548
+ function ea() {
549
+ const e = me();
555
550
  function t(a, n) {
556
551
  const o = e.value[a];
557
552
  return o ? n ? !(!re(o.includes, n) || re(o.excludes, n)) : !0 : !1;
558
553
  }
559
554
  return { verifyPermission: t };
560
555
  }
556
+ 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");
558
+ return { sysBarAvail: e, compactWidth: a };
559
+ }
561
560
  function ae(e, t) {
562
- const a = rt(), n = y({
561
+ const a = we(), n = y({
563
562
  get() {
564
- return me(a, e);
563
+ return ye(a, e);
565
564
  },
566
565
  set(l) {
567
- l ? st(a, e) : _t(a, e);
566
+ l ? Ye(a, e) : Pe(a, e);
568
567
  }
569
568
  }), o = (l) => {
570
569
  t == null || t(l), n.value = !0;
571
570
  };
572
- return O(() => {
573
- p.on(e, o);
571
+ return T(() => {
572
+ s.on(e, o);
574
573
  }), W(() => {
575
- p.off(e, o);
574
+ s.off(e, o);
576
575
  }), { open: n };
577
576
  }
578
- const ft = /* @__PURE__ */ E({
577
+ const st = /* @__PURE__ */ E({
579
578
  __name: "index",
580
579
  setup(e) {
581
580
  const { t } = P(), a = f(""), n = f(""), o = f(""), l = f(""), r = f(""), c = f("");
582
- let u = 0, s = !1;
581
+ let u = 0, _ = !1;
583
582
  const g = (b) => {
584
- var D, _, x, A;
583
+ var D, p, x, A;
585
584
  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;
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;
587
586
  }, { open: v } = ae("confirmDlg", g), L = () => {
588
- v.value = !1, s || (p.emit("confirmDlgResult" + u, !0), s = !0);
587
+ v.value = !1, _ || (s.emit("confirmDlgResult" + u, !0), _ = !0);
589
588
  };
590
589
  return N(v, (b) => {
591
- !b && !s && (p.emit("confirmDlgResult" + u, !1), s = !0);
590
+ !b && !_ && (s.emit("confirmDlgResult" + u, !1), _ = !0);
592
591
  }), (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");
592
+ const D = h("v-card-text"), p = h("v-btn"), x = h("v-card-actions"), A = h("v-card"), d = h("v-dialog");
594
593
  return C(), R(d, {
595
594
  modelValue: $(v),
596
595
  "onUpdate:modelValue": i[1] || (i[1] = (S) => Y(v) ? v.value = S : null),
@@ -612,7 +611,7 @@ const ft = /* @__PURE__ */ E({
612
611
  }),
613
612
  k(x, { class: "d-flex justify-end" }, {
614
613
  default: w(() => [
615
- k(_, {
614
+ k(p, {
616
615
  color: o.value,
617
616
  variant: "text",
618
617
  onClick: i[0] || (i[0] = (S) => v.value = !1)
@@ -622,7 +621,7 @@ const ft = /* @__PURE__ */ E({
622
621
  ]),
623
622
  _: 1
624
623
  }, 8, ["color"]),
625
- k(_, {
624
+ k(p, {
626
625
  color: r.value,
627
626
  variant: "text",
628
627
  onClick: L
@@ -643,7 +642,7 @@ const ft = /* @__PURE__ */ E({
643
642
  }, 8, ["modelValue", "onKeydown"]);
644
643
  };
645
644
  }
646
- }), gt = /* @__PURE__ */ E({
645
+ }), pt = /* @__PURE__ */ E({
647
646
  __name: "index",
648
647
  props: {
649
648
  zIndex: { default: 1 }
@@ -678,9 +677,9 @@ const ft = /* @__PURE__ */ E({
678
677
  for (const [n, o] of t)
679
678
  a[n] = o;
680
679
  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({
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({
684
683
  __name: "item",
685
684
  props: {
686
685
  id: {},
@@ -696,32 +695,32 @@ const kt = /* @__PURE__ */ E({
696
695
  })), o = y(() => {
697
696
  switch (a.type) {
698
697
  case "success":
699
- return ht;
698
+ return dt;
700
699
  case "info":
701
- return xt;
700
+ return vt;
702
701
  case "error":
703
- return yt;
702
+ return gt;
704
703
  case "warning":
705
- return mt;
704
+ return it;
706
705
  default:
707
706
  return "";
708
707
  }
709
708
  }), l = f(!0), r = t;
710
- return O(() => {
709
+ return T(() => {
711
710
  setTimeout(() => {
712
711
  r("timeout", a.id);
713
712
  }, a.timeout);
714
713
  }), N(l, (c) => {
715
714
  c || r("timeout", a.id);
716
715
  }), (c, u) => {
717
- const s = h("v-icon"), g = h("v-sheet");
716
+ const _ = h("v-icon"), g = h("v-sheet");
718
717
  return C(), R(g, {
719
718
  class: "x-item d-flex align-center py-2 mb-2",
720
719
  color: a.type,
721
720
  elevation: 1
722
721
  }, {
723
722
  default: w(() => [
724
- o.value ? (C(), R(s, {
723
+ o.value ? (C(), R(_, {
725
724
  key: 0,
726
725
  class: "mx-1",
727
726
  icon: o.value
@@ -729,9 +728,9 @@ const kt = /* @__PURE__ */ E({
729
728
  m("div", {
730
729
  style: le(n.value)
731
730
  }, j(a.text), 5),
732
- k(s, {
731
+ k(_, {
733
732
  class: "mx-1",
734
- icon: $(wt),
733
+ icon: $(ft),
735
734
  onClick: u[0] || (u[0] = (v) => r("timeout", a.id))
736
735
  }, null, 8, ["icon"])
737
736
  ]),
@@ -739,27 +738,27 @@ const kt = /* @__PURE__ */ E({
739
738
  }, 8, ["color"]);
740
739
  };
741
740
  }
742
- }), bt = /* @__PURE__ */ oe(kt, [["__scopeId", "data-v-d5cfe252"]]), Ct = /* @__PURE__ */ E({
741
+ }), ht = /* @__PURE__ */ oe(mt, [["__scopeId", "data-v-d5cfe252"]]), wt = /* @__PURE__ */ E({
743
742
  __name: "index",
744
743
  setup(e) {
745
744
  const t = f([]);
746
- O(() => {
747
- p.on("message", a);
745
+ T(() => {
746
+ s.on("message", a);
748
747
  }), W(() => {
749
- p.off("message", a);
748
+ s.off("message", a);
750
749
  });
751
750
  const a = (c) => {
752
- const { type: u, text: s, timeout: g } = c;
753
- l(u, s, g);
751
+ const { type: u, text: _, timeout: g } = c;
752
+ l(u, _, g);
754
753
  }, n = (c) => {
755
754
  r(c);
756
755
  };
757
756
  let o = 0;
758
- const l = (c, u, s) => {
757
+ const l = (c, u, _) => {
759
758
  const g = o++;
760
- t.value.push({ id: g, type: c, text: u, timeout: s });
759
+ t.value.push({ id: g, type: c, text: u, timeout: _ });
761
760
  }, r = (c) => {
762
- const u = t.value.findIndex((s) => s.id === c);
761
+ const u = t.value.findIndex((_) => _.id === c);
763
762
  u >= 0 && t.value.splice(u, 1);
764
763
  };
765
764
  return (c, u) => (C(), Q("div", {
@@ -767,44 +766,44 @@ const kt = /* @__PURE__ */ E({
767
766
  onClick: u[0] || (u[0] = H(() => {
768
767
  }, ["stop"]))
769
768
  }, [
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,
769
+ (C(!0), Q(Se, null, je(t.value, (_) => (C(), R(ht, {
770
+ id: _.id,
771
+ key: _.id,
772
+ type: _.type,
773
+ text: _.text,
774
+ timeout: _.timeout,
776
775
  onTimeout: n
777
776
  }, null, 8, ["id", "type", "text", "timeout"]))), 128))
778
777
  ]));
779
778
  }
780
- }), Lt = /* @__PURE__ */ oe(Ct, [["__scopeId", "data-v-8fd5d800"]]), Dt = /* @__PURE__ */ E({
779
+ }), yt = /* @__PURE__ */ oe(wt, [["__scopeId", "data-v-8fd5d800"]]), xt = /* @__PURE__ */ E({
781
780
  __name: "index",
782
781
  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");
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");
784
783
  let b = 0, i = !1;
785
784
  const D = async (A) => {
786
785
  var S, K, z, B;
787
786
  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);
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);
791
790
  };
792
- return N(_, (A) => {
793
- !A && !i && (p.emit("promptDlgResult" + b, void 0), i = !0);
791
+ return N(p, (A) => {
792
+ !A && !i && (s.emit("promptDlgResult" + b, void 0), i = !0);
794
793
  }), (A, d) => {
795
- 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
- return C(), R(ye, {
797
- modelValue: $(_),
798
- "onUpdate:modelValue": d[2] || (d[2] = (U) => Y(_) ? _.value = U : null),
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),
799
798
  transition: "dialog-top-transition",
800
799
  "max-width": "600px",
801
800
  onKeydown: [
802
- d[3] || (d[3] = F(H((U) => _.value = !1, ["stop", "prevent"]), ["esc"])),
801
+ d[3] || (d[3] = F(H((U) => p.value = !1, ["stop", "prevent"]), ["esc"])),
803
802
  F(H(x, ["stop", "prevent"]), ["enter"])
804
803
  ]
805
804
  }, {
806
805
  default: w(() => [
807
- k(we, { title: a.value }, {
806
+ k(ke, { title: a.value }, {
808
807
  default: w(() => [
809
808
  n.value ? (C(), R(S, { key: 0 }, {
810
809
  default: w(() => [
@@ -826,15 +825,15 @@ const kt = /* @__PURE__ */ E({
826
825
  ]),
827
826
  _: 1
828
827
  }),
829
- k(he, { class: "d-flex justify-end" }, {
828
+ k(xe, { class: "d-flex justify-end" }, {
830
829
  default: w(() => [
831
830
  k(B, {
832
831
  color: u.value,
833
832
  variant: "text",
834
- onClick: d[1] || (d[1] = (U) => _.value = !1)
833
+ onClick: d[1] || (d[1] = (U) => p.value = !1)
835
834
  }, {
836
835
  default: w(() => [
837
- q(j(s.value), 1)
836
+ q(j(_.value), 1)
838
837
  ]),
839
838
  _: 1
840
839
  }, 8, ["color"]),
@@ -859,7 +858,7 @@ const kt = /* @__PURE__ */ E({
859
858
  }, 8, ["modelValue", "onKeydown"]);
860
859
  };
861
860
  }
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({
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
862
  __name: "index",
864
863
  setup(e) {
865
864
  const { t } = P(), a = f(""), n = (r) => {
@@ -868,13 +867,13 @@ const kt = /* @__PURE__ */ E({
868
867
  }, o = () => {
869
868
  l.value = !1;
870
869
  }, { open: l } = ae("waitDlg", n);
871
- return O(() => {
872
- p.on("closeWaitDlg", o);
870
+ return T(() => {
871
+ s.on("closeWaitDlg", o);
873
872
  }), W(() => {
874
- p.off("closeWaitDlg", o);
873
+ s.off("closeWaitDlg", o);
875
874
  }), (r, c) => {
876
- const u = h("v-card"), s = h("v-dialog");
877
- return C(), R(s, {
875
+ const u = h("v-card"), _ = h("v-dialog");
876
+ return C(), R(_, {
878
877
  modelValue: $(l),
879
878
  "onUpdate:modelValue": c[0] || (c[0] = (g) => Y(l) ? l.value = g : null),
880
879
  persistent: "",
@@ -882,15 +881,15 @@ const kt = /* @__PURE__ */ E({
882
881
  fullscreen: ""
883
882
  }, {
884
883
  default: w(() => [
885
- m("div", At, [
884
+ m("div", kt, [
886
885
  k(u, {
887
886
  width: "300px",
888
887
  height: "80px",
889
888
  loading: ""
890
889
  }, {
891
890
  default: w(() => [
892
- m("div", Mt, [
893
- m("span", St, j(a.value), 1)
891
+ m("div", bt, [
892
+ m("span", Ct, j(a.value), 1)
894
893
  ])
895
894
  ]),
896
895
  _: 1
@@ -901,9 +900,9 @@ const kt = /* @__PURE__ */ E({
901
900
  }, 8, ["modelValue"]);
902
901
  };
903
902
  }
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) => {
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) => {
907
906
  const n = e[t];
908
907
  return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((o, l) => {
909
908
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
@@ -917,52 +916,52 @@ const kt = /* @__PURE__ */ E({
917
916
  });
918
917
  };
919
918
  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;
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
920
  }
922
- const oa = { install: Rt };
921
+ const oa = { install: Dt };
923
922
  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,
923
+ ze as Permission,
924
+ Ye as addView,
925
+ $e as appAppear,
926
+ Yt as clearViews,
927
+ Ut as closeWaitDlg,
928
+ Ot as createAxios,
930
929
  oa as default,
931
- _t as delView,
932
- p as eventBus,
933
- 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,
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,
941
940
  re as isExist,
942
- Yt as lastView,
941
+ Jt as lastView,
943
942
  aa as loadLocaleMessageEssential,
944
943
  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,
944
+ Wt as messageError,
945
+ Ht as messageInfo,
946
+ $t as messageSuccess,
947
+ Kt as messageWarning,
948
+ 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,
960
959
  G as routeTransName,
961
- Bt as useColor,
962
- ea as useMicroApp,
963
- ta as usePermission,
964
- dt as useSystem,
960
+ Vt as useColor,
961
+ Pt as useMicroApp,
962
+ ea as usePermission,
963
+ ta as useSystem,
965
964
  ae as useViewStack,
966
- Wt as waitMs,
965
+ It as waitMs,
967
966
  te as waitUtil
968
967
  };
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.7",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",