x-essential-lib 0.5.66 → 0.5.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
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-f4ad116e]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-f4ad116e]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-f4ad116e]{transform-origin:20px 20px;animation:lds-spinner-f4ad116e 1.2s linear infinite}.lds-spinner div[data-v-f4ad116e]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-f4ad116e]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-f4ad116e]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-f4ad116e]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-f4ad116e]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-f4ad116e]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-f4ad116e]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-f4ad116e]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-f4ad116e]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-f4ad116e]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-f4ad116e]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-f4ad116e]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-f4ad116e]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-f4ad116e{0%{opacity:1}to{opacity:0}}.x-cont[data-v-8c2268ea]{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 { ref as i, computed as g, onMounted as A, onBeforeUnmount as j, defineComponent as T, watch as G, resolveComponent as h, openBlock as D, createBlock as O, unref as z, isRef as J, withKeys as F, withModifiers as U, withCtx as w, createVNode as y, createTextVNode as q, toDisplayString as S, createElementBlock as H, normalizeStyle as ge, pushScopeId as ve, popScopeId as me, createElementVNode as m, reactive as he, Fragment as we, renderList as xe, createCommentVNode as ye } from "vue";
2
+ import { ref as i, computed as g, onMounted as q, onBeforeUnmount as j, defineComponent as T, watch as G, resolveComponent as h, openBlock as D, createBlock as O, unref as z, isRef as J, withKeys as F, withModifiers as U, withCtx as w, createVNode as y, createTextVNode as A, toDisplayString as S, createElementBlock as H, normalizeStyle as ge, pushScopeId as ve, popScopeId as me, createElementVNode as m, reactive as he, Fragment as we, renderList as xe, createCommentVNode as ye } from "vue";
3
3
  import { useLocale as Q, useTheme as Y, useDisplay as ke } from "vuetify";
4
4
  import { defineStore as le } from "pinia";
5
5
  import Ce from "axios";
@@ -121,7 +121,7 @@ function X(e, a) {
121
121
  );
122
122
  }
123
123
  var I = X(De, { path: "/" });
124
- function lt(e) {
124
+ function ot(e) {
125
125
  const a = Ce.create({
126
126
  timeout: 6e3
127
127
  });
@@ -132,7 +132,7 @@ function lt(e) {
132
132
  }
133
133
  ), a.interceptors.response.use(
134
134
  (t) => Se(t),
135
- (t) => Ae(t, e.onError)
135
+ (t) => qe(t, e.onError)
136
136
  ), a;
137
137
  }
138
138
  function Re(e) {
@@ -145,19 +145,19 @@ function Ve(e, a) {
145
145
  function Se(e) {
146
146
  return e.data;
147
147
  }
148
- function Ae(e, a) {
148
+ function qe(e, a) {
149
149
  var o;
150
150
  const t = e.response;
151
151
  if (!t)
152
152
  return Promise.reject(e);
153
- t.status === 401 && qe();
153
+ t.status === 401 && Ae();
154
154
  let l = (o = t.data) == null ? void 0 : o.message;
155
155
  return l || (l = {
156
156
  code: t.status,
157
157
  message: t.statusText
158
158
  }), a(l), Promise.reject(e);
159
159
  }
160
- function qe() {
160
+ function Ae() {
161
161
  I.remove("accessToken"), I.remove("refreshToken"), I.remove("activeOrg"), ne().replace({ path: "/passport/login" });
162
162
  }
163
163
  function Ie(e) {
@@ -179,7 +179,7 @@ function Ie(e) {
179
179
  const u = function() {
180
180
  return window.eventBus || (window.eventBus = Ie()), window.eventBus;
181
181
  }();
182
- async function nt(e) {
182
+ async function lt(e) {
183
183
  return new Promise((a) => {
184
184
  setTimeout(a, e);
185
185
  });
@@ -193,16 +193,11 @@ async function P(e, a, t) {
193
193
  r();
194
194
  });
195
195
  }
196
- function Oe(e) {
197
- var l;
198
- const a = "single-spa-application:" + e, t = (l = document.getElementById(a)) == null ? void 0 : l.classList;
199
- t && t.remove("app-left", "app-right");
200
- }
201
- function je(e, a) {
196
+ function Oe(e, a) {
202
197
  var o;
203
198
  const t = "single-spa-application:" + e, l = (o = document.getElementById(t)) == null ? void 0 : o.classList;
204
- l && (l.remove("app-left", "app-right"), setTimeout(() => {
205
- a ? l.add("app-left") : l.add("app-right");
199
+ l && (l.remove("app-left", "app-right", "app-reset"), a ? l.add("app-left") : l.add("app-right"), setTimeout(() => {
200
+ l.add("app-reset");
206
201
  }, 0));
207
202
  }
208
203
  let ae = Date.now();
@@ -210,11 +205,11 @@ function ce() {
210
205
  const e = Date.now();
211
206
  return e - ae > 500 ? (ae = e, !0) : !1;
212
207
  }
213
- let Te = 0;
208
+ let je = 0;
214
209
  function ue() {
215
- return ++Te;
210
+ return ++je;
216
211
  }
217
- async function rt(e) {
212
+ async function nt(e) {
218
213
  if (!ce())
219
214
  return;
220
215
  let a = !1, t;
@@ -223,7 +218,7 @@ async function rt(e) {
223
218
  }, o = ue();
224
219
  return u.on("confirmDlgResult" + o, l), u.emit("confirmDlg", { ...e, seq: o }), await P(() => a), console.log("confirm dlg closed", o, a, t), u.off("confirmDlgResult" + o, l), t;
225
220
  }
226
- async function ct(e) {
221
+ async function rt(e) {
227
222
  if (!ce())
228
223
  return;
229
224
  let a = !1, t;
@@ -232,25 +227,25 @@ async function ct(e) {
232
227
  }, o = ue();
233
228
  return u.on("promptDlgResult" + o, l), u.emit("promptDlg", { ...e, seq: o }), await P(() => a), console.log("prompt dlg closed", o, a, t), u.off("promptDlgResult" + o, l), t;
234
229
  }
235
- function ut() {
230
+ function ct() {
236
231
  u.emit("openWaitDlg");
237
232
  }
238
- function pt() {
233
+ function ut() {
239
234
  u.emit("closeWaitDlg");
240
235
  }
241
- function st(e, a) {
236
+ function pt(e, a) {
242
237
  u.emit("message", { type: "error", text: e, timeout: a });
243
238
  }
244
- function _t(e, a) {
239
+ function st(e, a) {
245
240
  u.emit("message", { type: "info", text: e, timeout: a });
246
241
  }
247
- function dt(e, a) {
242
+ function _t(e, a) {
248
243
  u.emit("message", { type: "success", text: e, timeout: a });
249
244
  }
250
- function ft(e, a) {
245
+ function dt(e, a) {
251
246
  u.emit("message", { type: "warning", text: e, timeout: a });
252
247
  }
253
- var Be = /* @__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_calc_space = "list_calc_space", e.get_calc_space = "get_calc_space", e.create_calc_space = "create_calc_space", e.delete_calc_space = "delete_calc_space", e.update_calc_space = "update_calc_space", e.arrange_calc_space = "arrange_calc_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_calc_layer = "open_calc_layer", e.list_db_space = "list_db_space", e.get_db_space = "get_db_space", e.create_db_space = "create_db_space", e.delete_db_space = "delete_db_space", e.update_db_space = "update_db_space", e.arrange_db_space = "arrange_db_space", e.list_model_group = "list_model_group", e.create_model_group = "create_model_group", e.delete_model_group = "delete_model_group", e.update_model_group = "update_model_group", e.arrange_model_group = "arrange_model_group", e.list_model = "list_model", e.get_model = "get_model", e.create_model = "create_model", e.delete_model = "delete_model", e.update_model = "update_model", e.get_model_data = "get_model_data", e.create_model_data = "create_model_data", e.delete_model_data = "delete_model_data", e.update_model_data = "update_model_data", e.get_graph = "get_graph", e.update_graph = "update_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_asset_space = "list_asset_space", e.get_asset_space = "get_asset_space", e.create_asset_space = "create_asset_space", e.delete_asset_space = "delete_asset_space", e.update_asset_space = "update_asset_space", e.arrange_asset_space = "arrange_asset_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_asset = "list_asset", e.get_asset = "get_asset", e.create_asset = "create_asset", e.delete_asset = "delete_asset", e.update_asset = "update_asset", e.move_asset = "move_asset", e.open_asset_layer = "open_asset_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_model = "filter_model", e))(Be || {});
248
+ var Te = /* @__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_calc_space = "list_calc_space", e.get_calc_space = "get_calc_space", e.create_calc_space = "create_calc_space", e.delete_calc_space = "delete_calc_space", e.update_calc_space = "update_calc_space", e.arrange_calc_space = "arrange_calc_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_calc_layer = "open_calc_layer", e.list_db_space = "list_db_space", e.get_db_space = "get_db_space", e.create_db_space = "create_db_space", e.delete_db_space = "delete_db_space", e.update_db_space = "update_db_space", e.arrange_db_space = "arrange_db_space", e.list_model_group = "list_model_group", e.create_model_group = "create_model_group", e.delete_model_group = "delete_model_group", e.update_model_group = "update_model_group", e.arrange_model_group = "arrange_model_group", e.list_model = "list_model", e.get_model = "get_model", e.create_model = "create_model", e.delete_model = "delete_model", e.update_model = "update_model", e.get_model_data = "get_model_data", e.create_model_data = "create_model_data", e.delete_model_data = "delete_model_data", e.update_model_data = "update_model_data", e.get_graph = "get_graph", e.update_graph = "update_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_asset_space = "list_asset_space", e.get_asset_space = "get_asset_space", e.create_asset_space = "create_asset_space", e.delete_asset_space = "delete_asset_space", e.update_asset_space = "update_asset_space", e.arrange_asset_space = "arrange_asset_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_asset = "list_asset", e.get_asset = "get_asset", e.create_asset = "create_asset", e.delete_asset = "delete_asset", e.update_asset = "update_asset", e.move_asset = "move_asset", e.open_asset_layer = "open_asset_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_model = "filter_model", e))(Te || {});
254
249
  function oe(e, a) {
255
250
  if (!e)
256
251
  return !1;
@@ -264,7 +259,7 @@ function oe(e, a) {
264
259
  return !1;
265
260
  }), Object.keys(t).length <= 0);
266
261
  }
267
- const Ee = [
262
+ const Be = [
268
263
  {
269
264
  app: "x-passport-mf",
270
265
  path: "/passport/login",
@@ -375,7 +370,7 @@ const Ee = [
375
370
  function K(e) {
376
371
  let a, t = 0;
377
372
  const l = e.split("/").filter((o) => o.trim() !== "");
378
- return Ee.forEach((o) => {
373
+ return Be.forEach((o) => {
379
374
  const r = o.path.split("/").filter((c) => c.trim() !== "");
380
375
  let n = 0;
381
376
  for (let c = 0; c < l.length && !(c >= r.length || l[c] !== r[c]); c++)
@@ -395,16 +390,16 @@ function b(e, a) {
395
390
  if (console.info(`~~~~routeChange~~~~ ${a} -> ${e}`), !o)
396
391
  return;
397
392
  const r = l.app === o.app, n = l.path === o.path, c = l.level >= o.level;
398
- r ? n ? N.value = "" : (N.value = c ? "inner-left" : "inner-right", Oe(l.app)) : (N.value = "", je(l.app, c));
393
+ r ? n ? N.value = "" : N.value = c ? "inner-left" : "inner-right" : (N.value = "", Oe(l.app, c));
399
394
  }
400
- function Me() {
395
+ function Ee() {
401
396
  return !!I.get("accessToken");
402
397
  }
403
- function Ue() {
398
+ function Me() {
404
399
  return !!I.get("activeOrg");
405
400
  }
406
- function it(e, a, t) {
407
- const l = Me(), o = Ue(), r = K(e.path);
401
+ function ft(e, a, t) {
402
+ const l = Ee(), o = Me(), r = K(e.path);
408
403
  if (!r) {
409
404
  t();
410
405
  return;
@@ -454,13 +449,13 @@ function ee(e, a) {
454
449
  }), o = (r) => {
455
450
  a == null || a(r), l.value = !0;
456
451
  };
457
- return A(() => {
452
+ return q(() => {
458
453
  u.on(e, o);
459
454
  }), j(() => {
460
455
  u.off(e, o);
461
456
  }), { open: l };
462
457
  }
463
- const $e = /* @__PURE__ */ T({
458
+ const Ue = /* @__PURE__ */ T({
464
459
  __name: "index",
465
460
  setup(e) {
466
461
  const a = Q(), { open: t } = ee("confirmDlgInternal"), l = i(""), o = i(""), r = i(), n = i(), c = g(() => {
@@ -480,7 +475,7 @@ const $e = /* @__PURE__ */ T({
480
475
  const R = (d) => {
481
476
  l.value = d.title, o.value = d.text, r.value = d.cancel, n.value = d.confirm, C = d.seq, f = !1, t.value = !0;
482
477
  };
483
- A(() => {
478
+ q(() => {
484
479
  u.on("confirmDlg", R);
485
480
  }), j(() => {
486
481
  u.off("confirmDlg", R);
@@ -507,7 +502,7 @@ const $e = /* @__PURE__ */ T({
507
502
  default: w(() => [
508
503
  y(V, null, {
509
504
  default: w(() => [
510
- q(S(o.value), 1)
505
+ A(S(o.value), 1)
511
506
  ]),
512
507
  _: 1
513
508
  }),
@@ -519,7 +514,7 @@ const $e = /* @__PURE__ */ T({
519
514
  variant: "text"
520
515
  }, {
521
516
  default: w(() => [
522
- q(S(p.value), 1)
517
+ A(S(p.value), 1)
523
518
  ]),
524
519
  _: 1
525
520
  }, 8, ["color"]),
@@ -529,7 +524,7 @@ const $e = /* @__PURE__ */ T({
529
524
  variant: "text"
530
525
  }, {
531
526
  default: w(() => [
532
- q(S(v.value), 1)
527
+ A(S(v.value), 1)
533
528
  ]),
534
529
  _: 1
535
530
  }, 8, ["color"])
@@ -544,7 +539,7 @@ const $e = /* @__PURE__ */ T({
544
539
  }, 8, ["modelValue", "onKeydown"]);
545
540
  };
546
541
  }
547
- }), Le = (e) => (ve("data-v-f4ad116e"), e = e(), me(), e), We = /* @__PURE__ */ Le(() => /* @__PURE__ */ m("div", { class: "lds-spinner" }, [
542
+ }), $e = (e) => (ve("data-v-f4ad116e"), e = e(), me(), e), Le = /* @__PURE__ */ $e(() => /* @__PURE__ */ m("div", { class: "lds-spinner" }, [
548
543
  /* @__PURE__ */ m("div"),
549
544
  /* @__PURE__ */ m("div"),
550
545
  /* @__PURE__ */ m("div"),
@@ -557,9 +552,9 @@ const $e = /* @__PURE__ */ T({
557
552
  /* @__PURE__ */ m("div"),
558
553
  /* @__PURE__ */ m("div"),
559
554
  /* @__PURE__ */ m("div")
560
- ], -1)), ze = [
561
- We
562
- ], Fe = /* @__PURE__ */ T({
555
+ ], -1)), We = [
556
+ Le
557
+ ], ze = /* @__PURE__ */ T({
563
558
  __name: "index",
564
559
  props: {
565
560
  zIndex: {
@@ -575,14 +570,14 @@ const $e = /* @__PURE__ */ T({
575
570
  return (o, r) => (D(), H("div", {
576
571
  class: "x-cont",
577
572
  style: ge(l.value)
578
- }, ze, 4));
573
+ }, We, 4));
579
574
  }
580
575
  }), pe = (e, a) => {
581
576
  const t = e.__vccOpts || e;
582
577
  for (const [l, o] of a)
583
578
  t[l] = o;
584
579
  return t;
585
- }, Ke = /* @__PURE__ */ pe(Fe, [["__scopeId", "data-v-f4ad116e"]]), Ne = /* @__PURE__ */ T({
580
+ }, Fe = /* @__PURE__ */ pe(ze, [["__scopeId", "data-v-f4ad116e"]]), Ke = /* @__PURE__ */ T({
586
581
  __name: "item",
587
582
  props: {
588
583
  id: {},
@@ -593,7 +588,7 @@ const $e = /* @__PURE__ */ T({
593
588
  emits: ["timeout"],
594
589
  setup(e, { emit: a }) {
595
590
  const t = e, l = i(!0), o = a;
596
- return A(() => {
591
+ return q(() => {
597
592
  setTimeout(() => {
598
593
  o("timeout", t.id);
599
594
  }, t.timeout);
@@ -615,11 +610,11 @@ const $e = /* @__PURE__ */ T({
615
610
  }, null, 8, ["modelValue", "type", "text"]);
616
611
  };
617
612
  }
618
- }), He = /* @__PURE__ */ T({
613
+ }), Ne = /* @__PURE__ */ T({
619
614
  __name: "index",
620
615
  setup(e) {
621
616
  const a = he({ items: [] });
622
- A(() => {
617
+ q(() => {
623
618
  u.on("message", t);
624
619
  }), j(() => {
625
620
  u.off("message", t);
@@ -642,7 +637,7 @@ const $e = /* @__PURE__ */ T({
642
637
  }, ["stop"])),
643
638
  class: "x-cont d-flex flex-column-reverse align-center"
644
639
  }, [
645
- (D(!0), H(we, null, xe(a.items, (s) => (D(), O(Ne, {
640
+ (D(!0), H(we, null, xe(a.items, (s) => (D(), O(Ke, {
646
641
  onTimeout: l,
647
642
  id: s.id,
648
643
  type: s.type,
@@ -652,7 +647,7 @@ const $e = /* @__PURE__ */ T({
652
647
  }, null, 8, ["id", "type", "text", "timeout"]))), 128))
653
648
  ]));
654
649
  }
655
- }), Xe = /* @__PURE__ */ pe(He, [["__scopeId", "data-v-8c2268ea"]]), Ge = /* @__PURE__ */ T({
650
+ }), He = /* @__PURE__ */ pe(Ne, [["__scopeId", "data-v-8c2268ea"]]), Xe = /* @__PURE__ */ T({
656
651
  __name: "index",
657
652
  setup(e) {
658
653
  const a = Q(), { open: t } = ee("promptDlgInternal"), l = i(""), o = i(""), r = i(), n = i(), c = i(), p = i(""), s = i(), v = i(), C = g(() => {
@@ -673,7 +668,7 @@ const $e = /* @__PURE__ */ T({
673
668
  var x;
674
669
  l.value = _.title, o.value = _.text, r.value = _.label, n.value = _.placeholder, c.value = _.rules, p.value = _.value, s.value = _.cancel, v.value = _.confirm, k = _.seq, V = !1, t.value = !0, await P(() => d.value !== void 0, 1e3), (x = d.value) == null || x.focus();
675
670
  };
676
- A(() => {
671
+ q(() => {
677
672
  u.on("promptDlg", B);
678
673
  }), j(() => {
679
674
  u.off("promptDlg", B);
@@ -700,7 +695,7 @@ const $e = /* @__PURE__ */ T({
700
695
  default: w(() => [
701
696
  o.value ? (D(), O(E, { key: 0 }, {
702
697
  default: w(() => [
703
- q(S(o.value), 1)
698
+ A(S(o.value), 1)
704
699
  ]),
705
700
  _: 1
706
701
  })) : ye("", !0),
@@ -726,7 +721,7 @@ const $e = /* @__PURE__ */ T({
726
721
  variant: "text"
727
722
  }, {
728
723
  default: w(() => [
729
- q(S(f.value), 1)
724
+ A(S(f.value), 1)
730
725
  ]),
731
726
  _: 1
732
727
  }, 8, ["color"]),
@@ -736,7 +731,7 @@ const $e = /* @__PURE__ */ T({
736
731
  variant: "text"
737
732
  }, {
738
733
  default: w(() => [
739
- q(S($.value), 1)
734
+ A(S($.value), 1)
740
735
  ]),
741
736
  _: 1
742
737
  }, 8, ["color"])
@@ -751,7 +746,7 @@ const $e = /* @__PURE__ */ T({
751
746
  }, 8, ["modelValue", "onKeydown"]);
752
747
  };
753
748
  }
754
- }), Je = { class: "mx-auto my-auto" }, Qe = { class: "d-flex align-center justify-center w-100 h-100" }, Ye = /* @__PURE__ */ T({
749
+ }), Ge = { class: "mx-auto my-auto" }, Je = { class: "d-flex align-center justify-center w-100 h-100" }, Qe = /* @__PURE__ */ T({
755
750
  __name: "index",
756
751
  setup(e) {
757
752
  const a = Q(), { open: t } = ee("waitDlg"), l = () => {
@@ -759,7 +754,7 @@ const $e = /* @__PURE__ */ T({
759
754
  }, o = () => {
760
755
  t.value = !1;
761
756
  };
762
- return A(() => {
757
+ return q(() => {
763
758
  u.on("openWaitDlg", l), u.on("closeWaitDlg", o);
764
759
  }), j(() => {
765
760
  u.off("openWaitDlg", l), u.off("closeWaitDlg", o);
@@ -773,14 +768,14 @@ const $e = /* @__PURE__ */ T({
773
768
  fullscreen: ""
774
769
  }, {
775
770
  default: w(() => [
776
- m("div", Je, [
771
+ m("div", Ge, [
777
772
  y(c, {
778
773
  width: "300px",
779
774
  height: "80px",
780
775
  loading: ""
781
776
  }, {
782
777
  default: w(() => [
783
- m("div", Qe, [
778
+ m("div", Je, [
784
779
  m("span", null, S(z(a).t("waitingResponse")), 1)
785
780
  ])
786
781
  ]),
@@ -792,10 +787,10 @@ const $e = /* @__PURE__ */ T({
792
787
  }, 8, ["modelValue"]);
793
788
  };
794
789
  }
795
- }), Ze = (e) => {
796
- e.component("x-confirm-dlg", $e), e.component("x-loading", Ke), e.component("x-message", Xe), e.component("x-prompt-dlg", Ge), e.component("x-wait-dlg", Ye);
790
+ }), Ye = (e) => {
791
+ e.component("x-confirm-dlg", Ue), e.component("x-loading", Fe), e.component("x-message", He), e.component("x-prompt-dlg", Xe), e.component("x-wait-dlg", Qe);
797
792
  };
798
- function gt() {
793
+ function it() {
799
794
  const e = Y(), a = g(() => e.global.current.value.colors.primary), t = g(() => e.global.current.value.colors.secondary), l = g(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), o = g(() => e.current.value.dark ? "#272727" : "#eeeeee"), r = g(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), n = g(() => e.current.value.dark ? "#303030" : "#f6f6f6"), c = g(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
800
795
  return {
801
796
  primaryColor: a,
@@ -807,7 +802,7 @@ function gt() {
807
802
  borderColor: c
808
803
  };
809
804
  }
810
- function vt() {
805
+ function gt() {
811
806
  const e = be(), a = ne(), t = Z(), l = re(), o = () => {
812
807
  console.log("onPause");
813
808
  }, r = () => {
@@ -839,13 +834,13 @@ function vt() {
839
834
  return;
840
835
  }
841
836
  };
842
- A(() => {
837
+ q(() => {
843
838
  u.on("pause", o), u.on("resume", r), u.on("backbutton", n), u.on("darkChange", c), u.on("localeChange", p), u.on("permissionChange", s), u.on("lastAppPathChange", v), window.addEventListener("keydown", C), u.emit("microAppReady");
844
839
  }), j(() => {
845
840
  u.off("pause", o), u.off("resume", r), u.off("backbutton", n), u.off("darkChange", c), u.off("localeChange", p), u.off("permissionChange", s), u.off("lastAppPathChange", v), window.removeEventListener("keydown", C);
846
841
  });
847
842
  }
848
- function mt() {
843
+ function vt() {
849
844
  const e = Z();
850
845
  function a(t, l) {
851
846
  const o = e.permissionObjects[t];
@@ -853,37 +848,36 @@ function mt() {
853
848
  }
854
849
  return { verifyPermission: a };
855
850
  }
856
- function ht() {
851
+ function mt() {
857
852
  const e = Y(), a = ke(), t = g(() => e.current.value.dark), l = g(() => !!window.cordova), o = g(() => a.width.value <= 1280 ? a.width.value + "px" : a.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
858
853
  return { dark: t, sysBarAvail: l, compactWidth: o };
859
854
  }
860
- const wt = { install: Ze };
855
+ const ht = { install: Ye };
861
856
  export {
862
- Be as Permission,
863
- je as appAppear,
864
- Oe as clearAppAppear,
865
- pt as closeWaitDlg,
866
- lt as createAxios,
867
- wt as default,
857
+ Te as Permission,
858
+ Oe as appAppear,
859
+ ut as closeWaitDlg,
860
+ ot as createAxios,
861
+ ht as default,
868
862
  u as eventBus,
869
863
  oe as isExist,
870
864
  K as matchRouteMeta,
871
- st as messageError,
872
- _t as messageInfo,
873
- dt as messageSuccess,
874
- ft as messageWarning,
875
- it as onBeforeEach,
876
- rt as openConfirmDlg,
877
- ct as openPromptDlg,
878
- ut as openWaitDlg,
865
+ pt as messageError,
866
+ st as messageInfo,
867
+ _t as messageSuccess,
868
+ dt as messageWarning,
869
+ ft as onBeforeEach,
870
+ nt as openConfirmDlg,
871
+ rt as openPromptDlg,
872
+ ct as openWaitDlg,
879
873
  N as routeTransName,
880
- gt as useColor,
874
+ it as useColor,
881
875
  Z as useGlobalStore,
882
- vt as useMicroApp,
883
- mt as usePermission,
884
- ht as useSystem,
876
+ gt as useMicroApp,
877
+ vt as usePermission,
878
+ mt as useSystem,
885
879
  re as useViewMgrStore,
886
880
  ee as useViewStack,
887
- nt as waitMs,
881
+ lt as waitMs,
888
882
  P as waitUtil
889
883
  };
@@ -2,5 +2,4 @@ import { Emitter, EventType } from 'mitt';
2
2
  export declare const eventBus: Emitter<Record<EventType, unknown>>;
3
3
  export declare function waitMs(ms: number): Promise<void>;
4
4
  export declare function waitUtil(conditionFunc: () => boolean, timeout?: number, interval?: number): Promise<boolean>;
5
- export declare function clearAppAppear(name: string): void;
6
5
  export declare function appAppear(name: string, forward: boolean): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
3
  "private": false,
4
- "version": "0.5.66",
4
+ "version": "0.5.67",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",