x-essential-lib 0.6.0 → 0.6.2

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,4 +1,4 @@
1
- export type Type = 'success' | 'info' | 'warning' | 'error';
1
+ import { Type } from './types';
2
2
  interface Props {
3
3
  id: number;
4
4
  type: Type;
@@ -0,0 +1,2 @@
1
+ export declare const types: readonly ["success", "info", "warning", "error"];
2
+ export type Type = (typeof types)[number];
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
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-ea85eb65]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-ea85eb65]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-ea85eb65]{transform-origin:20px 20px;animation:lds-spinner-ea85eb65 1.2s linear infinite}.lds-spinner div[data-v-ea85eb65]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-ea85eb65]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-ea85eb65]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-ea85eb65]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-ea85eb65]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-ea85eb65]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-ea85eb65]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-ea85eb65]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-ea85eb65]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-ea85eb65]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-ea85eb65]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-ea85eb65]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-ea85eb65]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-ea85eb65{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(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- import { ref as d, defineComponent as U, computed as m, onMounted as S, onBeforeUnmount as O, watch as G, resolveComponent as h, openBlock as V, createBlock as T, withKeys as H, withModifiers as W, withCtx as w, createVNode as b, createTextVNode as j, toDisplayString as I, createElementBlock as J, normalizeStyle as de, pushScopeId as _e, popScopeId as ie, createElementVNode as v, reactive as fe, Fragment as ge, renderList as ve, createCommentVNode as me, getCurrentScope as he, onScopeDispose as we, unref as xe, watchEffect as ye, getCurrentInstance as ke } from "vue";
3
- import { useI18n as Z } from "vue-i18n";
4
- import { defineStore as oe } from "pinia";
5
- import be from "axios";
6
- import { useRouter as ne, useRoute as De } from "vue-router";
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-ea85eb65]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-ea85eb65]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-ea85eb65]{transform-origin:20px 20px;animation:lds-spinner-ea85eb65 1.2s linear infinite}.lds-spinner div[data-v-ea85eb65]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-ea85eb65]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-ea85eb65]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-ea85eb65]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-ea85eb65]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-ea85eb65]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-ea85eb65]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-ea85eb65]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-ea85eb65]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-ea85eb65]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-ea85eb65]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-ea85eb65]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-ea85eb65]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-ea85eb65{0%{opacity:1}to{opacity:0}}.x-item[data-v-448d0248]{width:600px}@media (max-width: 600px){.x-item[data-v-448d0248]{width:calc(100vw - 16px)}}.x-cont[data-v-fc1bc7ac]{position:absolute;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
+ import { ref as d, defineComponent as T, computed as g, onMounted as V, onBeforeUnmount as I, watch as Z, resolveComponent as h, openBlock as D, createBlock as O, withKeys as K, withModifiers as W, withCtx as w, createVNode as b, createTextVNode as j, toDisplayString as q, createElementBlock as Q, normalizeStyle as ne, pushScopeId as fe, popScopeId as ge, createElementVNode as v, createCommentVNode as le, unref as re, Fragment as ve, renderList as me, getCurrentScope as he, onScopeDispose as we, watchEffect as xe, getCurrentInstance as ye } from "vue";
3
+ import { useI18n as Y } from "vue-i18n";
4
+ import { defineStore as ce } from "pinia";
5
+ import ke from "axios";
6
+ import { useRouter as ue, useRoute as be } from "vue-router";
7
7
  import { useTheme as P, useDisplay as Ce } from "vuetify";
8
- const Q = oe("global", () => {
8
+ const G = ce("global", () => {
9
9
  const e = d(), t = d("en"), a = d({}), n = d(""), o = d("");
10
10
  return {
11
11
  dark: e,
@@ -14,7 +14,7 @@ const Q = oe("global", () => {
14
14
  permissionChecksum: n,
15
15
  lastAppPath: o
16
16
  };
17
- }), $ = oe("viewMgr", () => {
17
+ }), $ = ce("viewMgr", () => {
18
18
  const e = d([]);
19
19
  function t() {
20
20
  return e.value.length <= 0;
@@ -28,11 +28,11 @@ const Q = oe("global", () => {
28
28
  return e.value.find((p) => p === u) !== void 0;
29
29
  }
30
30
  function o(u) {
31
- const p = e.value.findIndex((i) => i === u);
31
+ const p = e.value.findIndex((_) => _ === u);
32
32
  p !== -1 && e.value.splice(p, 1), e.value.push(u);
33
33
  }
34
34
  function r(u) {
35
- const p = e.value.findIndex((i) => i === u);
35
+ const p = e.value.findIndex((_) => _ === u);
36
36
  p !== -1 && e.value.splice(p, 1);
37
37
  }
38
38
  function l() {
@@ -53,7 +53,7 @@ const Q = oe("global", () => {
53
53
  };
54
54
  });
55
55
  /*! js-cookie v3.0.5 | MIT */
56
- function K(e) {
56
+ function F(e) {
57
57
  for (var t = 1; t < arguments.length; t++) {
58
58
  var a = arguments[t];
59
59
  for (var n in a)
@@ -61,7 +61,7 @@ function K(e) {
61
61
  }
62
62
  return e;
63
63
  }
64
- var Ve = {
64
+ var De = {
65
65
  read: function(e) {
66
66
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
67
67
  },
@@ -72,10 +72,10 @@ var Ve = {
72
72
  );
73
73
  }
74
74
  };
75
- function Y(e, t) {
75
+ function J(e, t) {
76
76
  function a(o, r, l) {
77
77
  if (!(typeof document > "u")) {
78
- l = K({}, t, l), typeof l.expires == "number" && (l.expires = new Date(Date.now() + l.expires * 864e5)), l.expires && (l.expires = l.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
78
+ l = F({}, t, l), typeof l.expires == "number" && (l.expires = new Date(Date.now() + l.expires * 864e5)), l.expires && (l.expires = l.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
79
79
  var c = "";
80
80
  for (var u in l)
81
81
  l[u] && (c += "; " + u, l[u] !== !0 && (c += "=" + l[u].split(";")[0]));
@@ -87,8 +87,8 @@ function Y(e, t) {
87
87
  for (var r = document.cookie ? document.cookie.split("; ") : [], l = {}, c = 0; c < r.length; c++) {
88
88
  var u = r[c].split("="), p = u.slice(1).join("=");
89
89
  try {
90
- var i = decodeURIComponent(u[0]);
91
- if (l[i] = e.read(p, i), o === i)
90
+ var _ = decodeURIComponent(u[0]);
91
+ if (l[_] = e.read(p, _), o === _)
92
92
  break;
93
93
  } catch {
94
94
  }
@@ -104,16 +104,16 @@ function Y(e, t) {
104
104
  a(
105
105
  o,
106
106
  "",
107
- K({}, r, {
107
+ F({}, r, {
108
108
  expires: -1
109
109
  })
110
110
  );
111
111
  },
112
112
  withAttributes: function(o) {
113
- return Y(this.converter, K({}, this.attributes, o));
113
+ return J(this.converter, F({}, this.attributes, o));
114
114
  },
115
115
  withConverter: function(o) {
116
- return Y(K({}, this.converter, o), this.attributes);
116
+ return J(F({}, this.converter, o), this.attributes);
117
117
  }
118
118
  },
119
119
  {
@@ -122,32 +122,32 @@ function Y(e, t) {
122
122
  }
123
123
  );
124
124
  }
125
- var E = Y(Ve, { path: "/" });
126
- function vt(e) {
127
- const t = be.create({
125
+ var E = J(De, { path: "/" });
126
+ function yt(e) {
127
+ const t = ke.create({
128
128
  timeout: 6e3
129
129
  });
130
130
  return t.defaults.baseURL = e.baseUrl, t.interceptors.request.use(
131
- (a) => Se(a),
131
+ (a) => Le(a),
132
132
  (a) => {
133
- qe(a, e.onError);
133
+ Ve(a, e.onError);
134
134
  }
135
135
  ), t.interceptors.response.use(
136
136
  (a) => Me(a),
137
- (a) => Re(a, e.onError)
137
+ (a) => Se(a, e.onError)
138
138
  ), t;
139
139
  }
140
- function Se(e) {
140
+ function Le(e) {
141
141
  const t = E.get("accessToken") ?? "";
142
142
  return e.headers.Authorization = "Basic " + t, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
143
143
  }
144
- function qe(e, t) {
144
+ function Ve(e, t) {
145
145
  console.error(e), t("request timeout");
146
146
  }
147
147
  function Me(e) {
148
148
  return e.data;
149
149
  }
150
- function Re(e, t) {
150
+ function Se(e, t) {
151
151
  var o;
152
152
  const a = e.response;
153
153
  if (!a)
@@ -160,9 +160,9 @@ function Re(e, t) {
160
160
  }), t(n), Promise.reject(e);
161
161
  }
162
162
  function Ae() {
163
- E.remove("accessToken"), E.remove("refreshToken"), E.remove("activeOrg"), ne().replace({ path: "/passport/login" });
163
+ E.remove("accessToken"), E.remove("refreshToken"), E.remove("activeOrg"), ue().replace({ path: "/passport/login" });
164
164
  }
165
- function Ie(e) {
165
+ function qe(e) {
166
166
  return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, a) {
167
167
  var n = e.get(t);
168
168
  n ? n.push(a) : e.set(t, [a]);
@@ -179,9 +179,9 @@ function Ie(e) {
179
179
  } };
180
180
  }
181
181
  const s = function() {
182
- return window.eventBus || (window.eventBus = Ie()), window.eventBus;
182
+ return window.eventBus || (window.eventBus = qe()), window.eventBus;
183
183
  }();
184
- async function mt(e) {
184
+ async function kt(e) {
185
185
  return new Promise((t) => {
186
186
  setTimeout(t, e);
187
187
  });
@@ -195,60 +195,60 @@ async function ee(e, t, a) {
195
195
  r();
196
196
  });
197
197
  }
198
- function Oe(e, t) {
198
+ function Re(e, t) {
199
199
  var o;
200
200
  const a = "single-spa-application:" + e, n = (o = document.getElementById(a)) == null ? void 0 : o.classList;
201
201
  n && (n.remove("app-left", "app-right", "app-reset"), t ? n.add("app-left") : n.add("app-right"), setTimeout(() => {
202
202
  n.add("app-reset");
203
203
  }, 50));
204
204
  }
205
- let te = Date.now();
206
- function le() {
205
+ let ae = Date.now();
206
+ function se() {
207
207
  const e = Date.now();
208
- return e - te > 500 ? (te = e, !0) : !1;
208
+ return e - ae > 500 ? (ae = e, !0) : !1;
209
209
  }
210
- let je = 0;
211
- function re() {
212
- return ++je;
210
+ let Ie = 0;
211
+ function pe() {
212
+ return ++Ie;
213
213
  }
214
- async function ht(e) {
215
- if (!le())
214
+ async function bt(e) {
215
+ if (!se())
216
216
  return;
217
217
  let t = !1, a;
218
218
  const n = (r) => {
219
219
  a = r, t = !0;
220
- }, o = re();
220
+ }, o = pe();
221
221
  return s.on("confirmDlgResult" + o, n), s.emit("confirmDlg", { ...e, seq: o }), await ee(() => t), s.off("confirmDlgResult" + o, n), a;
222
222
  }
223
- async function wt(e) {
224
- if (!le())
223
+ async function Ct(e) {
224
+ if (!se())
225
225
  return;
226
226
  let t = !1, a;
227
227
  const n = (r) => {
228
228
  a = r, t = !0;
229
- }, o = re();
229
+ }, o = pe();
230
230
  return s.on("promptDlgResult" + o, n), s.emit("promptDlg", { ...e, seq: o }), await ee(() => t), s.off("promptDlgResult" + o, n), a;
231
231
  }
232
- function xt(e) {
232
+ function Dt(e) {
233
233
  s.emit("openWaitDlg", { text: e });
234
234
  }
235
- function yt() {
235
+ function Lt() {
236
236
  s.emit("closeWaitDlg");
237
237
  }
238
- function kt(e, t) {
238
+ function Vt(e, t) {
239
239
  s.emit("message", { type: "error", text: e, timeout: t });
240
240
  }
241
- function bt(e, t) {
241
+ function Mt(e, t) {
242
242
  s.emit("message", { type: "info", text: e, timeout: t });
243
243
  }
244
- function Dt(e, t) {
244
+ function St(e, t) {
245
245
  s.emit("message", { type: "success", text: e, timeout: t });
246
246
  }
247
- function Ct(e, t) {
247
+ function At(e, t) {
248
248
  s.emit("message", { type: "warning", text: e, timeout: t });
249
249
  }
250
- var Ee = /* @__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))(Ee || {});
251
- function ae(e, t) {
250
+ var Oe = /* @__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))(Oe || {});
251
+ function oe(e, t) {
252
252
  if (!e)
253
253
  return !1;
254
254
  let a = e;
@@ -261,7 +261,7 @@ function ae(e, t) {
261
261
  return !1;
262
262
  }), Object.keys(a).length <= 0);
263
263
  }
264
- const Te = [
264
+ const je = [
265
265
  {
266
266
  app: "x-passport-mf",
267
267
  path: "/passport/login",
@@ -372,7 +372,7 @@ const Te = [
372
372
  function N(e) {
373
373
  let t, a = 0;
374
374
  const n = e.split("/").filter((o) => o.trim() !== "");
375
- return Te.forEach((o) => {
375
+ return je.forEach((o) => {
376
376
  const r = o.path.split("/").filter((c) => c.trim() !== "");
377
377
  let l = 0;
378
378
  for (let c = 0; c < n.length && !(c >= r.length || n[c] !== r[c]); c++)
@@ -381,8 +381,8 @@ function N(e) {
381
381
  }), t;
382
382
  }
383
383
  const X = d("");
384
- function C(e, t) {
385
- const a = Q();
384
+ function L(e, t) {
385
+ const a = G();
386
386
  t === "/" && (t = a.lastAppPath);
387
387
  const n = N(e), o = N(t);
388
388
  if (!n) {
@@ -392,16 +392,16 @@ function C(e, t) {
392
392
  if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !o)
393
393
  return;
394
394
  const r = n.app === o.app, l = n.path === o.path, c = n.level >= o.level;
395
- r ? l ? X.value = "" : X.value = c ? "inner-left" : "inner-right" : (X.value = "", Oe(n.app, c));
395
+ r ? l ? X.value = "" : X.value = c ? "inner-left" : "inner-right" : (X.value = "", Re(n.app, c));
396
396
  }
397
- function Ue() {
397
+ function Ee() {
398
398
  return !!E.get("accessToken");
399
399
  }
400
- function Be() {
400
+ function Te() {
401
401
  return !!E.get("activeOrg");
402
402
  }
403
- function Vt(e, t, a) {
404
- const n = Ue(), o = Be(), r = N(e.path);
403
+ function qt(e, t, a) {
404
+ const n = Ee(), o = Te(), r = N(e.path);
405
405
  if (!r) {
406
406
  console.assert(!1), a();
407
407
  return;
@@ -410,70 +410,70 @@ function Vt(e, t, a) {
410
410
  if (n)
411
411
  if (o) {
412
412
  const l = "/main";
413
- C(l, t.path), a({ path: l });
413
+ L(l, t.path), a({ path: l });
414
414
  } else
415
- C(e.path, t.path), a();
415
+ L(e.path, t.path), a();
416
416
  else {
417
417
  const l = "/passport/login";
418
- C(l, t.path), a({ path: l });
418
+ L(l, t.path), a({ path: l });
419
419
  }
420
420
  else if (r.requiredState === "org")
421
421
  if (n)
422
422
  if (o)
423
- C(e.path, t.path), a();
423
+ L(e.path, t.path), a();
424
424
  else {
425
425
  const l = "/org/joinOrCreate";
426
- C(l, t.path), a({ path: l });
426
+ L(l, t.path), a({ path: l });
427
427
  }
428
428
  else {
429
429
  const l = "/passport/login";
430
- C(l, t.path), a({ path: l });
430
+ L(l, t.path), a({ path: l });
431
431
  }
432
432
  else if (n)
433
433
  if (o) {
434
434
  const l = "/main";
435
- C(l, t.path), a({ path: l });
435
+ L(l, t.path), a({ path: l });
436
436
  } else {
437
437
  const l = "/org/joinOrCreate";
438
- C(l, t.path), a({ path: l });
438
+ L(l, t.path), a({ path: l });
439
439
  }
440
440
  else
441
- C(e.path, t.path), a();
441
+ L(e.path, t.path), a();
442
442
  }
443
- const Le = /* @__PURE__ */ U({
443
+ const Be = /* @__PURE__ */ T({
444
444
  __name: "index",
445
445
  setup(e) {
446
- const { t } = Z(), a = $(), n = m({
446
+ const { t } = Y(), a = $(), n = g({
447
447
  get() {
448
448
  return a.hasView("confirmDlg");
449
449
  },
450
- set(g) {
451
- g ? a.addView("confirmDlg") : a.delView("confirmDlg");
450
+ set(m) {
451
+ m ? a.addView("confirmDlg") : a.delView("confirmDlg");
452
452
  }
453
453
  }), o = d(""), r = d(""), l = d(""), c = d(""), u = d(""), p = d("");
454
- let i = 0, x = !1;
455
- const _ = (g) => {
456
- var y, D, M, A;
457
- o.value = g.title, r.value = g.text, l.value = ((y = g.cancel) == null ? void 0 : y.color) ?? "primary", c.value = ((D = g.cancel) == null ? void 0 : D.text) ?? t("dlg.common.cancel"), u.value = ((M = g.confirm) == null ? void 0 : M.color) ?? "primary", p.value = ((A = g.confirm) == null ? void 0 : A.text) ?? t("dlg.common.confirm"), i = g.seq, x = !1, n.value = !0;
454
+ let _ = 0, x = !1;
455
+ const i = (m) => {
456
+ var y, C, S, R;
457
+ o.value = m.title, r.value = m.text, l.value = ((y = m.cancel) == null ? void 0 : y.color) ?? "primary", c.value = ((C = m.cancel) == null ? void 0 : C.text) ?? t("dlg.common.cancel"), u.value = ((S = m.confirm) == null ? void 0 : S.color) ?? "primary", p.value = ((R = m.confirm) == null ? void 0 : R.text) ?? t("dlg.common.confirm"), _ = m.seq, x = !1, n.value = !0;
458
458
  };
459
- S(() => {
460
- s.on("confirmDlg", _);
461
- }), O(() => {
462
- s.off("confirmDlg", _);
459
+ V(() => {
460
+ s.on("confirmDlg", i);
461
+ }), I(() => {
462
+ s.off("confirmDlg", i);
463
463
  });
464
- const q = () => {
465
- n.value = !1, x || (s.emit("confirmDlgResult" + i, !0), x = !0);
464
+ const M = () => {
465
+ n.value = !1, x || (s.emit("confirmDlgResult" + _, !0), x = !0);
466
466
  };
467
- return G(n, (g) => {
468
- !g && !x && (s.emit("confirmDlgResult" + i, !1), x = !0);
469
- }), (g, y) => {
470
- const D = h("v-card-text"), M = h("v-btn"), A = h("v-card-actions"), f = h("v-card"), k = h("v-dialog");
471
- return V(), T(k, {
467
+ return Z(n, (m) => {
468
+ !m && !x && (s.emit("confirmDlgResult" + _, !1), x = !0);
469
+ }), (m, y) => {
470
+ const C = h("v-card-text"), S = h("v-btn"), R = h("v-card-actions"), f = h("v-card"), k = h("v-dialog");
471
+ return D(), O(k, {
472
472
  modelValue: n.value,
473
- "onUpdate:modelValue": y[1] || (y[1] = (R) => n.value = R),
473
+ "onUpdate:modelValue": y[1] || (y[1] = (A) => n.value = A),
474
474
  onKeydown: [
475
- y[2] || (y[2] = H(W((R) => n.value = !1, ["stop", "prevent"]), ["esc"])),
476
- H(W(q, ["stop", "prevent"]), ["enter"])
475
+ y[2] || (y[2] = K(W((A) => n.value = !1, ["stop", "prevent"]), ["esc"])),
476
+ K(W(M, ["stop", "prevent"]), ["enter"])
477
477
  ],
478
478
  transition: "dialog-top-transition",
479
479
  "max-width": "600px"
@@ -481,31 +481,31 @@ const Le = /* @__PURE__ */ U({
481
481
  default: w(() => [
482
482
  b(f, { title: o.value }, {
483
483
  default: w(() => [
484
- b(D, null, {
484
+ b(C, null, {
485
485
  default: w(() => [
486
- j(I(r.value), 1)
486
+ j(q(r.value), 1)
487
487
  ]),
488
488
  _: 1
489
489
  }),
490
- b(A, { class: "d-flex justify-end" }, {
490
+ b(R, { class: "d-flex justify-end" }, {
491
491
  default: w(() => [
492
- b(M, {
493
- onClick: y[0] || (y[0] = (R) => n.value = !1),
492
+ b(S, {
493
+ onClick: y[0] || (y[0] = (A) => n.value = !1),
494
494
  color: l.value,
495
495
  variant: "text"
496
496
  }, {
497
497
  default: w(() => [
498
- j(I(c.value), 1)
498
+ j(q(c.value), 1)
499
499
  ]),
500
500
  _: 1
501
501
  }, 8, ["color"]),
502
- b(M, {
503
- onClick: q,
502
+ b(S, {
503
+ onClick: M,
504
504
  color: u.value,
505
505
  variant: "text"
506
506
  }, {
507
507
  default: w(() => [
508
- j(I(p.value), 1)
508
+ j(q(p.value), 1)
509
509
  ]),
510
510
  _: 1
511
511
  }, 8, ["color"])
@@ -520,7 +520,7 @@ const Le = /* @__PURE__ */ U({
520
520
  }, 8, ["modelValue", "onKeydown"]);
521
521
  };
522
522
  }
523
- }), We = (e) => (_e("data-v-ea85eb65"), e = e(), ie(), e), $e = /* @__PURE__ */ We(() => /* @__PURE__ */ v("div", { class: "lds-spinner" }, [
523
+ }), Ue = (e) => (fe("data-v-ea85eb65"), e = e(), ge(), e), We = /* @__PURE__ */ Ue(() => /* @__PURE__ */ v("div", { class: "lds-spinner" }, [
524
524
  /* @__PURE__ */ v("div"),
525
525
  /* @__PURE__ */ v("div"),
526
526
  /* @__PURE__ */ v("div"),
@@ -533,9 +533,9 @@ const Le = /* @__PURE__ */ U({
533
533
  /* @__PURE__ */ v("div"),
534
534
  /* @__PURE__ */ v("div"),
535
535
  /* @__PURE__ */ v("div")
536
- ], -1)), ze = [
537
- $e
538
- ], Fe = /* @__PURE__ */ U({
536
+ ], -1)), $e = [
537
+ We
538
+ ], He = /* @__PURE__ */ T({
539
539
  __name: "index",
540
540
  props: {
541
541
  zIndex: {
@@ -544,21 +544,23 @@ const Le = /* @__PURE__ */ U({
544
544
  }
545
545
  },
546
546
  setup(e) {
547
- const t = P(), a = e, n = m(() => ({
547
+ const t = P(), a = e, n = g(() => ({
548
548
  background: t.current.value.dark ? "#1e1e1e" : "#ffffff",
549
549
  zIndex: a.zIndex
550
550
  }));
551
- return (o, r) => (V(), J("div", {
551
+ return (o, r) => (D(), Q("div", {
552
552
  class: "x-cont",
553
- style: de(n.value)
554
- }, ze, 4));
553
+ style: ne(n.value)
554
+ }, $e, 4));
555
555
  }
556
- }), ce = (e, t) => {
556
+ }), te = (e, t) => {
557
557
  const a = e.__vccOpts || e;
558
558
  for (const [n, o] of t)
559
559
  a[n] = o;
560
560
  return a;
561
- }, Ke = /* @__PURE__ */ ce(Fe, [["__scopeId", "data-v-ea85eb65"]]), He = /* @__PURE__ */ U({
561
+ }, ze = /* @__PURE__ */ te(He, [["__scopeId", "data-v-ea85eb65"]]);
562
+ var Fe = "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", Ke = "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", Ne = "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", Ze = "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", Ge = "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";
563
+ const Xe = /* @__PURE__ */ T({
562
564
  __name: "item",
563
565
  props: {
564
566
  id: {},
@@ -568,36 +570,62 @@ const Le = /* @__PURE__ */ U({
568
570
  },
569
571
  emits: ["timeout"],
570
572
  setup(e, { emit: t }) {
571
- const a = e, n = d(!0), o = t;
572
- return S(() => {
573
+ const a = e, n = g(() => ({
574
+ width: "calc(100% - 64px)",
575
+ overflowWrap: "break-word"
576
+ })), o = g(() => {
577
+ switch (a.type) {
578
+ case "success":
579
+ return Ke;
580
+ case "info":
581
+ return Ge;
582
+ case "error":
583
+ return Ze;
584
+ case "warning":
585
+ return Fe;
586
+ default:
587
+ return "";
588
+ }
589
+ }), r = d(!0), l = t;
590
+ return V(() => {
573
591
  setTimeout(() => {
574
- o("timeout", a.id);
592
+ l("timeout", a.id);
575
593
  }, a.timeout);
576
- }), G(n, (r) => {
577
- r || o("timeout", a.id);
578
- }), (r, l) => {
579
- const c = h("v-alert");
580
- return V(), T(c, {
581
- modelValue: n.value,
582
- "onUpdate:modelValue": l[0] || (l[0] = (u) => n.value = u),
583
- class: "mt-2",
584
- "max-width": "90%",
585
- width: "500px",
586
- elevation: "1",
587
- density: "compact",
588
- closable: "",
589
- type: r.type,
590
- text: r.text
591
- }, null, 8, ["modelValue", "type", "text"]);
594
+ }), Z(r, (c) => {
595
+ c || l("timeout", a.id);
596
+ }), (c, u) => {
597
+ const p = h("v-icon"), _ = h("v-sheet");
598
+ return D(), O(_, {
599
+ class: "x-item d-flex align-center mb-2",
600
+ color: a.type,
601
+ elevation: 1
602
+ }, {
603
+ default: w(() => [
604
+ o.value ? (D(), O(p, {
605
+ key: 0,
606
+ class: "mx-1",
607
+ icon: o.value
608
+ }, null, 8, ["icon"])) : le("", !0),
609
+ v("div", {
610
+ style: ne(n.value)
611
+ }, q(a.text), 5),
612
+ b(p, {
613
+ onClick: u[0] || (u[0] = (x) => l("timeout", a.id)),
614
+ class: "mx-1",
615
+ icon: re(Ne)
616
+ }, null, 8, ["icon"])
617
+ ]),
618
+ _: 1
619
+ }, 8, ["color"]);
592
620
  };
593
621
  }
594
- }), Ne = /* @__PURE__ */ U({
622
+ }), Qe = /* @__PURE__ */ te(Xe, [["__scopeId", "data-v-448d0248"]]), Je = /* @__PURE__ */ T({
595
623
  __name: "index",
596
624
  setup(e) {
597
- const t = fe({ items: [] });
598
- S(() => {
625
+ const t = d([]);
626
+ V(() => {
599
627
  s.on("message", a);
600
- }), O(() => {
628
+ }), I(() => {
601
629
  s.off("message", a);
602
630
  });
603
631
  const a = (c) => {
@@ -607,107 +635,107 @@ const Le = /* @__PURE__ */ U({
607
635
  };
608
636
  let o = 0;
609
637
  const r = (c, u, p) => {
610
- const i = o++;
611
- t.items.push({ id: i, type: c, text: u, timeout: p });
638
+ const _ = o++;
639
+ t.value.push({ id: _, type: c, text: u, timeout: p });
612
640
  }, l = (c) => {
613
- const u = t.items.findIndex((p) => p.id === c);
614
- u >= 0 && t.items.splice(u, 1);
641
+ const u = t.value.findIndex((p) => p.id === c);
642
+ u >= 0 && t.value.splice(u, 1);
615
643
  };
616
- return (c, u) => (V(), J("div", {
644
+ return (c, u) => (D(), Q("div", {
617
645
  onClick: u[0] || (u[0] = W(() => {
618
646
  }, ["stop"])),
619
647
  class: "x-cont d-flex flex-column-reverse align-center"
620
648
  }, [
621
- (V(!0), J(ge, null, ve(t.items, (p) => (V(), T(He, {
649
+ (D(!0), Q(ve, null, me(t.value, (p) => (D(), O(Qe, {
650
+ key: p.id,
622
651
  onTimeout: n,
623
652
  id: p.id,
624
653
  type: p.type,
625
654
  text: p.text,
626
- timeout: p.timeout,
627
- key: p.id
655
+ timeout: p.timeout
628
656
  }, null, 8, ["id", "type", "text", "timeout"]))), 128))
629
657
  ]));
630
658
  }
631
- }), Ge = /* @__PURE__ */ ce(Ne, [["__scopeId", "data-v-8c2268ea"]]), Qe = /* @__PURE__ */ U({
659
+ }), Ye = /* @__PURE__ */ te(Je, [["__scopeId", "data-v-fc1bc7ac"]]), Pe = /* @__PURE__ */ T({
632
660
  __name: "index",
633
661
  setup(e) {
634
- const { t } = Z(), a = $(), n = m({
662
+ const { t } = Y(), a = $(), n = g({
635
663
  get() {
636
664
  return a.hasView("promptDlg");
637
665
  },
638
666
  set(f) {
639
667
  f ? a.addView("promptDlg") : a.delView("promptDlg");
640
668
  }
641
- }), o = d(""), r = d(""), l = d(""), c = d(""), u = d(), p = d(""), i = d(""), x = d(""), _ = d(""), q = d(""), g = d();
642
- let y = 0, D = !1;
643
- const M = async (f) => {
644
- var k, R, z, F, B;
645
- o.value = f.title, r.value = f.text, l.value = f.label, c.value = f.placeholder, u.value = f.rules, p.value = f.value, i.value = ((k = f.cancel) == null ? void 0 : k.color) ?? "primary", x.value = ((R = f.cancel) == null ? void 0 : R.text) ?? t("dlg.common.cancel"), _.value = ((z = f.confirm) == null ? void 0 : z.color) ?? "primary", q.value = ((F = f.confirm) == null ? void 0 : F.text) ?? t("dlg.common.confirm"), y = f.seq, D = !1, n.value = !0, await ee(() => !!g.value, 1e3), (B = g.value) == null || B.focus();
669
+ }), o = d(""), r = d(""), l = d(""), c = d(""), u = d(), p = d(""), _ = d(""), x = d(""), i = d(""), M = d(""), m = d();
670
+ let y = 0, C = !1;
671
+ const S = async (f) => {
672
+ var k, A, H, z, B;
673
+ o.value = f.title, r.value = f.text, l.value = f.label, c.value = f.placeholder, u.value = f.rules, p.value = f.value, _.value = ((k = f.cancel) == null ? void 0 : k.color) ?? "primary", x.value = ((A = f.cancel) == null ? void 0 : A.text) ?? t("dlg.common.cancel"), i.value = ((H = f.confirm) == null ? void 0 : H.color) ?? "primary", M.value = ((z = f.confirm) == null ? void 0 : z.text) ?? t("dlg.common.confirm"), y = f.seq, C = !1, n.value = !0, await ee(() => !!m.value, 1e3), (B = m.value) == null || B.focus();
646
674
  };
647
- S(() => {
648
- s.on("promptDlg", M);
649
- }), O(() => {
650
- s.off("promptDlg", M);
675
+ V(() => {
676
+ s.on("promptDlg", S);
677
+ }), I(() => {
678
+ s.off("promptDlg", S);
651
679
  });
652
- const A = () => {
653
- n.value = !1, D || (s.emit("promptDlgResult" + y, p.value ?? ""), D = !0);
680
+ const R = () => {
681
+ n.value = !1, C || (s.emit("promptDlgResult" + y, p.value ?? ""), C = !0);
654
682
  };
655
- return G(n, (f) => {
656
- !f && !D && (s.emit("promptDlgResult" + y, void 0), D = !0);
683
+ return Z(n, (f) => {
684
+ !f && !C && (s.emit("promptDlgResult" + y, void 0), C = !0);
657
685
  }), (f, k) => {
658
- const R = h("v-card-text"), z = h("v-text-field"), F = h("v-form"), B = h("v-btn"), ue = h("v-card-actions"), se = h("v-card"), pe = h("v-dialog");
659
- return V(), T(pe, {
686
+ const A = h("v-card-text"), H = h("v-text-field"), z = h("v-form"), B = h("v-btn"), de = h("v-card-actions"), _e = h("v-card"), ie = h("v-dialog");
687
+ return D(), O(ie, {
660
688
  modelValue: n.value,
661
- "onUpdate:modelValue": k[2] || (k[2] = (L) => n.value = L),
689
+ "onUpdate:modelValue": k[2] || (k[2] = (U) => n.value = U),
662
690
  onKeydown: [
663
- k[3] || (k[3] = H(W((L) => n.value = !1, ["stop", "prevent"]), ["esc"])),
664
- H(W(A, ["stop", "prevent"]), ["enter"])
691
+ k[3] || (k[3] = K(W((U) => n.value = !1, ["stop", "prevent"]), ["esc"])),
692
+ K(W(R, ["stop", "prevent"]), ["enter"])
665
693
  ],
666
694
  transition: "dialog-top-transition",
667
695
  "max-width": "600px"
668
696
  }, {
669
697
  default: w(() => [
670
- b(se, { title: o.value }, {
698
+ b(_e, { title: o.value }, {
671
699
  default: w(() => [
672
- r.value ? (V(), T(R, { key: 0 }, {
700
+ r.value ? (D(), O(A, { key: 0 }, {
673
701
  default: w(() => [
674
- j(I(r.value), 1)
702
+ j(q(r.value), 1)
675
703
  ]),
676
704
  _: 1
677
- })) : me("", !0),
678
- b(F, { class: "mx-3" }, {
705
+ })) : le("", !0),
706
+ b(z, { class: "mx-3" }, {
679
707
  default: w(() => [
680
- b(z, {
708
+ b(H, {
681
709
  modelValue: p.value,
682
- "onUpdate:modelValue": k[0] || (k[0] = (L) => p.value = L),
710
+ "onUpdate:modelValue": k[0] || (k[0] = (U) => p.value = U),
683
711
  label: l.value,
684
712
  placeholder: c.value,
685
713
  rules: u.value,
686
714
  ref_key: "target",
687
- ref: g
715
+ ref: m
688
716
  }, null, 8, ["modelValue", "label", "placeholder", "rules"])
689
717
  ]),
690
718
  _: 1
691
719
  }),
692
- b(ue, { class: "d-flex justify-end" }, {
720
+ b(de, { class: "d-flex justify-end" }, {
693
721
  default: w(() => [
694
722
  b(B, {
695
- onClick: k[1] || (k[1] = (L) => n.value = !1),
696
- color: i.value,
723
+ onClick: k[1] || (k[1] = (U) => n.value = !1),
724
+ color: _.value,
697
725
  variant: "text"
698
726
  }, {
699
727
  default: w(() => [
700
- j(I(x.value), 1)
728
+ j(q(x.value), 1)
701
729
  ]),
702
730
  _: 1
703
731
  }, 8, ["color"]),
704
732
  b(B, {
705
- onClick: A,
706
- color: _.value,
733
+ onClick: R,
734
+ color: i.value,
707
735
  variant: "text"
708
736
  }, {
709
737
  default: w(() => [
710
- j(I(q.value), 1)
738
+ j(q(M.value), 1)
711
739
  ]),
712
740
  _: 1
713
741
  }, 8, ["color"])
@@ -722,10 +750,10 @@ const Le = /* @__PURE__ */ U({
722
750
  }, 8, ["modelValue", "onKeydown"]);
723
751
  };
724
752
  }
725
- }), Xe = { class: "mx-auto my-auto" }, Je = { class: "w-100 h-100 d-flex align-center justify-center" }, Ye = { class: "text-body-1" }, Ze = /* @__PURE__ */ U({
753
+ }), et = { class: "mx-auto my-auto" }, tt = { class: "w-100 h-100 d-flex align-center justify-center" }, at = { class: "text-body-1" }, ot = /* @__PURE__ */ T({
726
754
  __name: "index",
727
755
  setup(e) {
728
- const { t } = Z(), a = $(), n = m({
756
+ const { t } = Y(), a = $(), n = g({
729
757
  get() {
730
758
  return a.hasView("waitDlg");
731
759
  },
@@ -737,13 +765,13 @@ const Le = /* @__PURE__ */ U({
737
765
  }, l = () => {
738
766
  n.value = !1;
739
767
  };
740
- return S(() => {
768
+ return V(() => {
741
769
  s.on("openWaitDlg", r), s.on("closeWaitDlg", l);
742
- }), O(() => {
770
+ }), I(() => {
743
771
  s.off("openWaitDlg", r), s.off("closeWaitDlg", l);
744
772
  }), (c, u) => {
745
- const p = h("v-card"), i = h("v-dialog");
746
- return V(), T(i, {
773
+ const p = h("v-card"), _ = h("v-dialog");
774
+ return D(), O(_, {
747
775
  modelValue: n.value,
748
776
  "onUpdate:modelValue": u[0] || (u[0] = (x) => n.value = x),
749
777
  persistent: "",
@@ -751,15 +779,15 @@ const Le = /* @__PURE__ */ U({
751
779
  fullscreen: ""
752
780
  }, {
753
781
  default: w(() => [
754
- v("div", Xe, [
782
+ v("div", et, [
755
783
  b(p, {
756
784
  width: "300px",
757
785
  height: "80px",
758
786
  loading: ""
759
787
  }, {
760
788
  default: w(() => [
761
- v("div", Je, [
762
- v("span", Ye, I(o.value), 1)
789
+ v("div", tt, [
790
+ v("span", at, q(o.value), 1)
763
791
  ])
764
792
  ]),
765
793
  _: 1
@@ -770,11 +798,11 @@ const Le = /* @__PURE__ */ U({
770
798
  }, 8, ["modelValue"]);
771
799
  };
772
800
  }
773
- }), Pe = (e) => {
774
- e.component("x-confirm-dlg", Le), e.component("x-loading", Ke), e.component("x-message", Ge), e.component("x-prompt-dlg", Qe), e.component("x-wait-dlg", Ze);
801
+ }), nt = (e) => {
802
+ e.component("x-confirm-dlg", Be), e.component("x-loading", ze), e.component("x-message", Ye), e.component("x-prompt-dlg", Pe), e.component("x-wait-dlg", ot);
775
803
  };
776
- function St() {
777
- const e = P(), t = m(() => e.global.current.value.colors.primary), a = m(() => e.global.current.value.colors.secondary), n = m(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), o = m(() => e.current.value.dark ? "#272727" : "#eeeeee"), r = m(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), l = m(() => e.current.value.dark ? "#303030" : "#f6f6f6"), c = m(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
804
+ function Rt() {
805
+ const e = P(), t = g(() => e.global.current.value.colors.primary), a = g(() => e.global.current.value.colors.secondary), n = g(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), o = g(() => e.current.value.dark ? "#272727" : "#eeeeee"), r = g(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), l = g(() => e.current.value.dark ? "#303030" : "#f6f6f6"), c = g(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
778
806
  return {
779
807
  primaryColor: t,
780
808
  secondaryColor: a,
@@ -785,104 +813,104 @@ function St() {
785
813
  borderColor: c
786
814
  };
787
815
  }
788
- function et(e) {
816
+ function lt(e) {
789
817
  return he() ? (we(e), !0) : !1;
790
818
  }
791
- function tt(e) {
792
- return typeof e == "function" ? e() : xe(e);
819
+ function rt(e) {
820
+ return typeof e == "function" ? e() : re(e);
793
821
  }
794
- const at = typeof window < "u" && typeof document < "u";
822
+ const ct = typeof window < "u" && typeof document < "u";
795
823
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
796
- const ot = at ? window : void 0;
797
- function nt() {
798
- const e = d(!1), t = ke();
799
- return t && S(() => {
824
+ const ut = ct ? window : void 0;
825
+ function st() {
826
+ const e = d(!1), t = ye();
827
+ return t && V(() => {
800
828
  e.value = !0;
801
829
  }, t), e;
802
830
  }
803
- function lt(e) {
804
- const t = nt();
805
- return m(() => (t.value, !!e()));
831
+ function pt(e) {
832
+ const t = st();
833
+ return g(() => (t.value, !!e()));
806
834
  }
807
- function rt(e, t = {}) {
808
- const { window: a = ot } = t, n = lt(() => a && "matchMedia" in a && typeof a.matchMedia == "function");
835
+ function dt(e, t = {}) {
836
+ const { window: a = ut } = t, n = pt(() => a && "matchMedia" in a && typeof a.matchMedia == "function");
809
837
  let o;
810
838
  const r = d(!1), l = (p) => {
811
839
  r.value = p.matches;
812
840
  }, c = () => {
813
841
  o && ("removeEventListener" in o ? o.removeEventListener("change", l) : o.removeListener(l));
814
- }, u = ye(() => {
815
- n.value && (c(), o = a.matchMedia(tt(e)), "addEventListener" in o ? o.addEventListener("change", l) : o.addListener(l), r.value = o.matches);
842
+ }, u = xe(() => {
843
+ n.value && (c(), o = a.matchMedia(rt(e)), "addEventListener" in o ? o.addEventListener("change", l) : o.addListener(l), r.value = o.matches);
816
844
  });
817
- return et(() => {
845
+ return lt(() => {
818
846
  u(), c(), o = void 0;
819
847
  }), r;
820
848
  }
821
- function ct(e) {
822
- return rt("(prefers-color-scheme: dark)", e);
849
+ function _t(e) {
850
+ return dt("(prefers-color-scheme: dark)", e);
823
851
  }
824
- function ut() {
825
- const e = Ce(), t = Q(), a = ct(), n = m(() => typeof t.dark == "boolean" ? t.dark : a.value), o = m(() => !!window.cordova), r = m(() => e.width.value <= 1280 ? e.width.value + "px" : e.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
852
+ function it() {
853
+ const e = Ce(), t = G(), a = _t(), n = g(() => typeof t.dark == "boolean" ? t.dark : a.value), o = g(() => !!window.cordova), r = g(() => e.width.value <= 1280 ? e.width.value + "px" : e.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
826
854
  return { dark: n, sysBarAvail: o, compactWidth: r };
827
855
  }
828
- function qt() {
829
- const e = De(), t = ne(), a = P(), { dark: n } = ut(), o = Q(), r = $();
830
- G(
856
+ function It() {
857
+ const e = be(), t = ue(), a = P(), { dark: n } = it(), o = G(), r = $();
858
+ Z(
831
859
  n,
832
- (_) => {
833
- a.global.name.value = _ ? "dark" : "light";
860
+ (i) => {
861
+ a.global.name.value = i ? "dark" : "light";
834
862
  },
835
863
  { immediate: !0 }
836
864
  );
837
- const l = (_) => {
838
- if (_.key === "Escape") {
865
+ const l = (i) => {
866
+ if (i.key === "Escape") {
839
867
  c();
840
868
  return;
841
869
  }
842
870
  }, c = () => {
843
- var q;
871
+ var M;
844
872
  if (!r.isEmpty()) {
845
873
  r.hasView("waitDlg") || r.popView();
846
874
  return;
847
875
  }
848
- const _ = N(e.path);
849
- (_ == null ? void 0 : _.level) === 0 ? (q = navigator == null ? void 0 : navigator.Backbutton) == null || q.goHome(
876
+ const i = N(e.path);
877
+ (i == null ? void 0 : i.level) === 0 ? (M = navigator == null ? void 0 : navigator.Backbutton) == null || M.goHome(
850
878
  () => {
851
879
  },
852
880
  () => {
853
881
  }
854
882
  ) : t.back();
855
883
  };
856
- S(() => {
884
+ V(() => {
857
885
  window.addEventListener("keydown", l), s.on("backbutton", c);
858
- }), O(() => {
886
+ }), I(() => {
859
887
  window.removeEventListener("keydown", l), s.off("backbutton", c);
860
888
  });
861
- const u = (_) => {
862
- o.dark = _;
863
- }, p = (_) => {
864
- o.locale = _;
865
- }, i = (_) => {
866
- o.permissionObjects = _[0], o.permissionChecksum = _[1];
867
- }, x = (_) => {
868
- o.lastAppPath = _;
889
+ const u = (i) => {
890
+ o.dark = i;
891
+ }, p = (i) => {
892
+ o.locale = i;
893
+ }, _ = (i) => {
894
+ o.permissionObjects = i[0], o.permissionChecksum = i[1];
895
+ }, x = (i) => {
896
+ o.lastAppPath = i;
869
897
  };
870
- S(() => {
871
- s.on("updateDark", u), s.on("updateLocale", p), s.on("updatePermission", i), s.on("updateLastAppPath", x), s.emit("syncGlobalState");
872
- }), O(() => {
873
- s.off("updateDark", u), s.off("updateLocale", p), s.off("updatePermission", i), s.off("updateLastAppPath", x);
898
+ V(() => {
899
+ s.on("updateDark", u), s.on("updateLocale", p), s.on("updatePermission", _), s.on("updateLastAppPath", x), s.emit("syncGlobalState");
900
+ }), I(() => {
901
+ s.off("updateDark", u), s.off("updateLocale", p), s.off("updatePermission", _), s.off("updateLastAppPath", x);
874
902
  });
875
903
  }
876
- function Mt() {
877
- const e = Q();
904
+ function Ot() {
905
+ const e = G();
878
906
  function t(a, n) {
879
907
  const o = e.permissionObjects[a];
880
- return o ? n ? !(!ae(o.includes, n) || ae(o.excludes, n)) : !0 : !1;
908
+ return o ? n ? !(!oe(o.includes, n) || oe(o.excludes, n)) : !0 : !1;
881
909
  }
882
910
  return { verifyPermission: t };
883
911
  }
884
- function Rt(e, t) {
885
- const a = $(), n = m({
912
+ function jt(e, t) {
913
+ const a = $(), n = g({
886
914
  get() {
887
915
  return a.hasView(e);
888
916
  },
@@ -892,13 +920,13 @@ function Rt(e, t) {
892
920
  }), o = (r) => {
893
921
  t == null || t(r), n.value = !0;
894
922
  };
895
- return S(() => {
923
+ return V(() => {
896
924
  s.on(e, o);
897
- }), O(() => {
925
+ }), I(() => {
898
926
  s.off(e, o);
899
927
  }), { open: n };
900
928
  }
901
- const st = (e, t, a) => {
929
+ const ft = (e, t, a) => {
902
930
  const n = e[t];
903
931
  return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((o, r) => {
904
932
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
@@ -911,36 +939,36 @@ const st = (e, t, a) => {
911
939
  );
912
940
  });
913
941
  };
914
- async function At(e) {
915
- return (await st(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./en-iuzmkt0n.js"), "./locales/zhHans/index.ts": () => import("./zhHans-m6y1by9n.js") }), `./locales/${e}/index.ts`, 4)).default;
942
+ async function Et(e) {
943
+ return (await ft(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./en-iuzmkt0n.js"), "./locales/zhHans/index.ts": () => import("./zhHans-m6y1by9n.js") }), `./locales/${e}/index.ts`, 4)).default;
916
944
  }
917
- const It = { install: Pe };
945
+ const Tt = { install: nt };
918
946
  export {
919
- Ee as Permission,
920
- Oe as appAppear,
921
- yt as closeWaitDlg,
922
- vt as createAxios,
923
- It as default,
947
+ Oe as Permission,
948
+ Re as appAppear,
949
+ Lt as closeWaitDlg,
950
+ yt as createAxios,
951
+ Tt as default,
924
952
  s as eventBus,
925
- ae as isExist,
926
- At as loadLocaleMessageEssential,
953
+ oe as isExist,
954
+ Et as loadLocaleMessageEssential,
927
955
  N as matchRouteMeta,
928
- kt as messageError,
929
- bt as messageInfo,
930
- Dt as messageSuccess,
931
- Ct as messageWarning,
932
- Vt as onBeforeEach,
933
- ht as openConfirmDlg,
934
- wt as openPromptDlg,
935
- xt as openWaitDlg,
956
+ Vt as messageError,
957
+ Mt as messageInfo,
958
+ St as messageSuccess,
959
+ At as messageWarning,
960
+ qt as onBeforeEach,
961
+ bt as openConfirmDlg,
962
+ Ct as openPromptDlg,
963
+ Dt as openWaitDlg,
936
964
  X as routeTransName,
937
- St as useColor,
938
- Q as useGlobalStore,
939
- qt as useMicroApp,
940
- Mt as usePermission,
941
- ut as useSystem,
965
+ Rt as useColor,
966
+ G as useGlobalStore,
967
+ It as useMicroApp,
968
+ Ot as usePermission,
969
+ it as useSystem,
942
970
  $ as useViewMgrStore,
943
- Rt as useViewStack,
944
- mt as waitMs,
971
+ jt as useViewStack,
972
+ kt as waitMs,
945
973
  ee as waitUtil
946
974
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
3
  "private": false,
4
- "version": "0.6.0",
4
+ "version": "0.6.2",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -36,6 +36,7 @@
36
36
  "vuetify": "^3.6.12"
37
37
  },
38
38
  "devDependencies": {
39
+ "@mdi/js": "^7.4.47",
39
40
  "@rushstack/eslint-patch": "^1.10.3",
40
41
  "@types/js-cookie": "^3.0.6",
41
42
  "@types/node": "^20.14.10",