x-essential-lib 0.7.19 → 0.7.20

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
@@ -5,15 +5,15 @@ import { useTheme as ce, useDisplay as je } from "vuetify";
5
5
  import { useRouter as ue, useRoute as Re } from "vue-router";
6
6
  import qe from "axios";
7
7
  function Ve() {
8
- const e = ce(), t = y(() => e.global.current.value.colors.primary), a = y(() => e.global.current.value.colors.secondary), o = y(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), n = y(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = y(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), c = y(() => e.current.value.dark ? "#303030" : "#f6f6f6"), r = y(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
8
+ const e = ce(), t = y(() => e.global.current.value.colors.primary), a = y(() => e.global.current.value.colors.secondary), o = y(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), r = y(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = y(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), c = y(() => e.current.value.dark ? "#303030" : "#f6f6f6"), n = y(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
9
9
  return {
10
10
  primaryColor: t,
11
11
  secondaryColor: a,
12
12
  backgroundColor0: o,
13
- backgroundColor1: n,
13
+ backgroundColor1: r,
14
14
  backgroundColor2: l,
15
15
  highlightColor: c,
16
- borderColor: r
16
+ borderColor: n
17
17
  };
18
18
  }
19
19
  /*! js-cookie v3.0.5 | MIT */
@@ -37,47 +37,47 @@ var Ae = {
37
37
  }
38
38
  };
39
39
  function J(e, t) {
40
- function a(n, l, c) {
40
+ function a(r, l, c) {
41
41
  if (!(typeof document > "u")) {
42
- c = X({}, t, c), typeof c.expires == "number" && (c.expires = new Date(Date.now() + c.expires * 864e5)), c.expires && (c.expires = c.expires.toUTCString()), n = encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
43
- var r = "";
42
+ c = X({}, t, c), typeof c.expires == "number" && (c.expires = new Date(Date.now() + c.expires * 864e5)), c.expires && (c.expires = c.expires.toUTCString()), r = encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
43
+ var n = "";
44
44
  for (var u in c)
45
- c[u] && (r += "; " + u, c[u] !== !0 && (r += "=" + c[u].split(";")[0]));
46
- return document.cookie = n + "=" + e.write(l, n) + r;
45
+ c[u] && (n += "; " + u, c[u] !== !0 && (n += "=" + c[u].split(";")[0]));
46
+ return document.cookie = r + "=" + e.write(l, r) + n;
47
47
  }
48
48
  }
49
- function o(n) {
50
- if (!(typeof document > "u" || arguments.length && !n)) {
51
- for (var l = document.cookie ? document.cookie.split("; ") : [], c = {}, r = 0; r < l.length; r++) {
52
- var u = l[r].split("="), _ = u.slice(1).join("=");
49
+ function o(r) {
50
+ if (!(typeof document > "u" || arguments.length && !r)) {
51
+ for (var l = document.cookie ? document.cookie.split("; ") : [], c = {}, n = 0; n < l.length; n++) {
52
+ var u = l[n].split("="), _ = u.slice(1).join("=");
53
53
  try {
54
54
  var g = decodeURIComponent(u[0]);
55
- if (c[g] = e.read(_, g), n === g)
55
+ if (c[g] = e.read(_, g), r === g)
56
56
  break;
57
57
  } catch {
58
58
  }
59
59
  }
60
- return n ? c[n] : c;
60
+ return r ? c[r] : c;
61
61
  }
62
62
  }
63
63
  return Object.create(
64
64
  {
65
65
  set: a,
66
66
  get: o,
67
- remove: function(n, l) {
67
+ remove: function(r, l) {
68
68
  a(
69
- n,
69
+ r,
70
70
  "",
71
71
  X({}, l, {
72
72
  expires: -1
73
73
  })
74
74
  );
75
75
  },
76
- withAttributes: function(n) {
77
- return J(this.converter, X({}, this.attributes, n));
76
+ withAttributes: function(r) {
77
+ return J(this.converter, X({}, this.attributes, r));
78
78
  },
79
- withConverter: function(n) {
80
- return J(X({}, this.converter, n), this.attributes);
79
+ withConverter: function(r) {
80
+ return J(X({}, this.converter, r), this.attributes);
81
81
  }
82
82
  },
83
83
  {
@@ -112,9 +112,9 @@ function Te(e) {
112
112
  return e.data;
113
113
  }
114
114
  function Be(e, t) {
115
- var n, l;
115
+ var r, l;
116
116
  const o = e.response;
117
- return o && (o.status === 401 && Ee(), (n = o.data) != null && n.message ? t((l = o.data) == null ? void 0 : l.message) : t({
117
+ return o && (o.status === 401 && Ee(), (r = o.data) != null && r.message ? t((l = o.data) == null ? void 0 : l.message) : t({
118
118
  code: o.status,
119
119
  message: o.statusText
120
120
  })), Promise.reject(e);
@@ -131,10 +131,10 @@ function Ue(e) {
131
131
  o && (a ? o.splice(o.indexOf(a) >>> 0, 1) : e.set(t, []));
132
132
  }, emit: function(t, a) {
133
133
  var o = e.get(t);
134
- o && o.slice().map(function(n) {
135
- n(a);
136
- }), (o = e.get("*")) && o.slice().map(function(n) {
137
- n(t, a);
134
+ o && o.slice().map(function(r) {
135
+ r(a);
136
+ }), (o = e.get("*")) && o.slice().map(function(r) {
137
+ r(t, a);
138
138
  });
139
139
  } };
140
140
  }
@@ -148,9 +148,9 @@ async function Et(e) {
148
148
  }
149
149
  async function te(e, t, a) {
150
150
  const o = Date.now();
151
- return new Promise((n) => {
151
+ return new Promise((r) => {
152
152
  const l = async () => {
153
- e() ? n(!0) : t && Date.now() - o > t ? n(!1) : setTimeout(l, a ?? 30);
153
+ e() ? r(!0) : t && Date.now() - o > t ? r(!1) : setTimeout(l, a ?? 30);
154
154
  };
155
155
  l();
156
156
  });
@@ -161,10 +161,10 @@ function We(e, t) {
161
161
  a.classList.add("app-reset");
162
162
  }, 50));
163
163
  }
164
- let ne = Date.now();
164
+ let re = Date.now();
165
165
  function pe() {
166
166
  const e = Date.now();
167
- return e - ne > 500 ? (ne = e, !0) : !1;
167
+ return e - re > 500 ? (re = e, !0) : !1;
168
168
  }
169
169
  let $e = 0;
170
170
  function se() {
@@ -176,8 +176,8 @@ async function Ut(e) {
176
176
  let t = !1, a;
177
177
  const o = (l) => {
178
178
  a = l, t = !0;
179
- }, n = se();
180
- return p.on("confirmDlgResult" + n, o), p.emit("confirmDlg", { ...e, seq: n }), await te(() => t), p.off("confirmDlgResult" + n, o), a;
179
+ }, r = se();
180
+ return p.on("confirmDlgResult" + r, o), p.emit("confirmDlg", { ...e, seq: r }), await te(() => t), p.off("confirmDlgResult" + r, o), a;
181
181
  }
182
182
  async function Wt(e) {
183
183
  if (!pe())
@@ -185,8 +185,8 @@ async function Wt(e) {
185
185
  let t = !1, a;
186
186
  const o = (l) => {
187
187
  a = l, t = !0;
188
- }, n = se();
189
- return p.on("promptDlgResult" + n, o), p.emit("promptDlg", { ...e, seq: n }), await te(() => t), p.off("promptDlgResult" + n, o), a;
188
+ }, r = se();
189
+ return p.on("promptDlgResult" + r, o), p.emit("promptDlg", { ...e, seq: r }), await te(() => t), p.off("promptDlgResult" + r, o), a;
190
190
  }
191
191
  function $t(e) {
192
192
  p.emit("openWaitDlg", { text: e });
@@ -206,25 +206,25 @@ function Xt(e, t) {
206
206
  function Ft(e, t) {
207
207
  p.emit("message", { type: "warning", text: e, timeout: t });
208
208
  }
209
- var He = /* @__PURE__ */ ((e) => (e.list_app_group = "list_app_group", e.create_app_group = "create_app_group", e.delete_app_group = "delete_app_group", e.update_app_group = "update_app_group", e.arrange_app_group = "arrange_app_group", e.list_app = "list_app", e.get_app = "get_app", e.create_app = "create_app", e.delete_app = "delete_app", e.update_app = "update_app", e.list_app_release = "list_app_release", e.get_app_release = "get_app_release", e.create_app_release = "create_app_release", e.delete_app_release = "delete_app_release", e.deploy_app_release = "deploy_app_release", e.open_app_layer = "open_app_layer", e.open_app = "open_app", e.list_compute_space = "list_compute_space", e.get_compute_space = "get_compute_space", e.create_compute_space = "create_compute_space", e.delete_compute_space = "delete_compute_space", e.update_compute_space = "update_compute_space", e.arrange_compute_space = "arrange_compute_space", e.list_func_group = "list_func_group", e.create_func_group = "create_func_group", e.delete_func_group = "delete_func_group", e.update_func_group = "update_func_group", e.arrange_func_group = "arrange_func_group", e.list_func = "list_func", e.get_func = "get_func", e.create_func = "create_func", e.delete_func = "delete_func", e.update_func = "update_func", e.debug_func = "debug_func", e.call_func = "call_func", e.list_func_release = "list_func_release", e.get_func_release = "get_func_release", e.create_func_release = "create_func_release", e.delete_func_release = "delete_func_release", e.deploy_func_release = "deploy_func_release", e.list_flow_group = "list_flow_group", e.create_flow_group = "create_flow_group", e.delete_flow_group = "delete_flow_group", e.update_flow_group = "update_flow_group", e.arrange_flow_group = "arrange_flow_group", e.list_flow = "list_flow", e.get_flow = "get_flow", e.create_flow = "create_flow", e.delete_flow = "delete_flow", e.update_flow = "update_flow", e.debug_flow = "debug_flow", e.call_flow = "call_flow", e.list_flow_release = "list_flow_release", e.get_flow_release = "get_flow_release", e.create_flow_release = "create_flow_release", e.delete_flow_release = "delete_flow_release", e.deploy_flow_release = "deploy_flow_release", e.list_task = "list_task", e.get_task = "get_task", e.create_task = "create_task", e.delete_task = "delete_task", e.update_task = "update_task", e.call_task = "call_task", e.open_compute_layer = "open_compute_layer", e.list_data_space = "list_data_space", e.get_data_space = "get_data_space", e.create_data_space = "create_data_space", e.delete_data_space = "delete_data_space", e.update_data_space = "update_data_space", e.arrange_data_space = "arrange_data_space", e.list_table_group = "list_table_group", e.create_table_group = "create_table_group", e.delete_table_group = "delete_table_group", e.update_table_group = "update_table_group", e.arrange_table_group = "arrange_table_group", e.list_table = "list_table", e.get_table = "get_table", e.create_table = "create_table", e.delete_table = "delete_table", e.update_table = "update_table", e.get_data = "get_data", e.create_data = "create_data", e.delete_data = "delete_data", e.update_data = "update_data", e.get_relation_graph = "get_relation_graph", e.update_relation_graph = "update_relation_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_resource_space = "list_resource_space", e.get_resource_space = "get_resource_space", e.create_resource_space = "create_resource_space", e.delete_resource_space = "delete_resource_space", e.update_resource_space = "update_resource_space", e.arrange_resource_space = "arrange_resource_space", e.list_dir = "list_dir", e.create_dir = "create_dir", e.delete_dir = "delete_dir", e.update_dir = "update_dir", e.move_dir = "move_dir", e.list_resource = "list_resource", e.get_resource = "get_resource", e.create_resource = "create_resource", e.delete_resource = "delete_resource", e.update_resource = "update_resource", e.move_resource = "move_resource", e.open_resource_layer = "open_resource_layer", e.list_org_member = "list_org_member", e.add_org_member = "add_org_member", e.remove_org_member = "remove_org_member", e.update_org_member = "update_org_member", e.list_org_role = "list_org_role", e.get_org_role = "get_org_role", e.create_org_role = "create_org_role", e.delete_org_role = "delete_org_role", e.update_org_role = "update_org_role", e.arrange_org_role = "arrange_org_role", e.get_org_structure = "get_org_structure", e.update_org_structure = "update_org_structure", e.filter_table = "filter_table", e))(He || {});
210
- function re(e, t) {
209
+ var He = /* @__PURE__ */ ((e) => (e.list_app_group = "list_app_group", e.create_app_group = "create_app_group", e.delete_app_group = "delete_app_group", e.update_app_group = "update_app_group", e.arrange_app_group = "arrange_app_group", e.list_app = "list_app", e.get_app = "get_app", e.create_app = "create_app", e.delete_app = "delete_app", e.update_app = "update_app", e.list_app_release = "list_app_release", e.get_app_release = "get_app_release", e.create_app_release = "create_app_release", e.delete_app_release = "delete_app_release", e.deploy_app_release = "deploy_app_release", e.open_app_layer = "open_app_layer", e.open_app = "open_app", e.list_compute_space = "list_compute_space", e.get_compute_space = "get_compute_space", e.create_compute_space = "create_compute_space", e.delete_compute_space = "delete_compute_space", e.update_compute_space = "update_compute_space", e.arrange_compute_space = "arrange_compute_space", e.list_func_group = "list_func_group", e.create_func_group = "create_func_group", e.delete_func_group = "delete_func_group", e.update_func_group = "update_func_group", e.arrange_func_group = "arrange_func_group", e.list_func = "list_func", e.get_func = "get_func", e.create_func = "create_func", e.delete_func = "delete_func", e.update_func = "update_func", e.debug_func = "debug_func", e.call_func = "call_func", e.list_func_release = "list_func_release", e.get_func_release = "get_func_release", e.create_func_release = "create_func_release", e.delete_func_release = "delete_func_release", e.deploy_func_release = "deploy_func_release", e.list_flow_group = "list_flow_group", e.create_flow_group = "create_flow_group", e.delete_flow_group = "delete_flow_group", e.update_flow_group = "update_flow_group", e.arrange_flow_group = "arrange_flow_group", e.list_flow = "list_flow", e.get_flow = "get_flow", e.create_flow = "create_flow", e.delete_flow = "delete_flow", e.update_flow = "update_flow", e.debug_flow = "debug_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_group = "list_org_role_group", e.create_org_role_group = "create_org_role_group", e.delete_org_role_group = "delete_org_role_group", e.update_org_role_group = "update_org_role_group", e.arrange_org_role_group = "arrange_org_role_group", 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.get_org_structure = "get_org_structure", e.update_org_structure = "update_org_structure", e.filter_table = "filter_table", e))(He || {});
210
+ function ne(e, t) {
211
211
  if (!e)
212
212
  return !1;
213
213
  let a = e;
214
- return Object.keys(a).length <= 0 || (t.split("/").forEach((n) => {
214
+ return Object.keys(a).length <= 0 || (t.split("/").forEach((r) => {
215
215
  if (Object.keys(a).length <= 0)
216
216
  return !0;
217
- if (a[n])
218
- a = a[n];
217
+ if (a[r])
218
+ a = a[r];
219
219
  else
220
220
  return !1;
221
221
  }), Object.keys(a).length <= 0);
222
222
  }
223
223
  function Ke(e, t, a) {
224
224
  const o = e[t];
225
- return o ? a ? !(!re(o.includes, a) || re(o.excludes, a)) : !0 : !1;
225
+ return o ? a ? !(!ne(o.includes, a) || ne(o.excludes, a)) : !0 : !1;
226
226
  }
227
- const _e = "essentialDark", ie = "essentialLocale", de = "essentialPermissionObjects", fe = "essentialPermissionChecksum", ge = "essentialLastAppPath", ve = "essentialViews";
227
+ const _e = "essentialDark", de = "essentialLocale", ie = "essentialPermissionObjects", fe = "essentialPermissionChecksum", ge = "essentialLastAppPath", ve = "essentialViews";
228
228
  function ze(e) {
229
229
  O(_e, e);
230
230
  }
@@ -232,16 +232,16 @@ function Zt() {
232
232
  return I(_e);
233
233
  }
234
234
  function Xe(e) {
235
- O(ie, e);
235
+ O(de, e);
236
236
  }
237
237
  function Nt() {
238
- return I(ie);
238
+ return I(de);
239
239
  }
240
240
  function Fe(e) {
241
- O(de, e);
241
+ O(ie, e);
242
242
  }
243
243
  function Ze() {
244
- return I(de);
244
+ return I(ie);
245
245
  }
246
246
  function Ne(e) {
247
247
  O(fe, e);
@@ -371,27 +371,27 @@ const Ye = [
371
371
  ];
372
372
  function Z(e) {
373
373
  let t, a = 0;
374
- const o = e.split("/").filter((n) => n.trim() !== "");
375
- return Ye.forEach((n) => {
376
- const l = n.path.split("/").filter((r) => r.trim() !== "");
374
+ const o = e.split("/").filter((r) => r.trim() !== "");
375
+ return Ye.forEach((r) => {
376
+ const l = r.path.split("/").filter((n) => n.trim() !== "");
377
377
  let c = 0;
378
- for (let r = 0; r < o.length && !(r >= l.length || o[r] !== l[r]); r++)
378
+ for (let n = 0; n < o.length && !(n >= l.length || o[n] !== l[n]); n++)
379
379
  c++;
380
- c > 0 && c > a && (t = n, a = c);
380
+ c > 0 && c > a && (t = r, a = c);
381
381
  }), t;
382
382
  }
383
383
  const G = f("");
384
384
  function S(e, t, a) {
385
385
  t === "/" && (t = a);
386
- const o = Z(e), n = Z(t);
386
+ const o = Z(e), r = Z(t);
387
387
  if (!o) {
388
388
  console.assert(!1);
389
389
  return;
390
390
  }
391
- if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !n)
391
+ if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !r)
392
392
  return;
393
- const l = o.app === n.app, c = o.path === n.path, r = o.level >= n.level;
394
- l ? c ? G.value = "" : G.value = r ? "inner-left" : "inner-right" : (G.value = "", We(o.app, r));
393
+ const l = o.app === r.app, c = o.path === r.path, n = o.level >= r.level;
394
+ l ? c ? G.value = "" : G.value = n ? "inner-left" : "inner-right" : (G.value = "", We(o.app, n));
395
395
  }
396
396
  function Pe() {
397
397
  return !!A.get("accessToken");
@@ -400,41 +400,41 @@ function et() {
400
400
  return !!A.get("activeOrg");
401
401
  }
402
402
  function Jt(e, t, a, o) {
403
- const n = Pe(), l = et(), c = Z(e.path);
403
+ const r = Pe(), l = et(), c = Z(e.path);
404
404
  if (!c) {
405
405
  console.assert(!1), a();
406
406
  return;
407
407
  }
408
408
  if (c.requiredState === "auth")
409
- if (n)
409
+ if (r)
410
410
  if (l) {
411
- const r = "/main";
412
- S(r, t.path, o), a({ path: r });
411
+ const n = "/main";
412
+ S(n, t.path, o), a({ path: n });
413
413
  } else
414
414
  S(e.path, t.path, o), a();
415
415
  else {
416
- const r = "/passport/login";
417
- S(r, t.path, o), a({ path: r });
416
+ const n = "/passport/login";
417
+ S(n, t.path, o), a({ path: n });
418
418
  }
419
419
  else if (c.requiredState === "org")
420
- if (n)
420
+ if (r)
421
421
  if (l)
422
422
  S(e.path, t.path, o), a();
423
423
  else {
424
- const r = "/org/joinOrCreate";
425
- S(r, t.path, o), a({ path: r });
424
+ const n = "/org/joinOrCreate";
425
+ S(n, t.path, o), a({ path: n });
426
426
  }
427
427
  else {
428
- const r = "/passport/login";
429
- S(r, t.path, o), a({ path: r });
428
+ const n = "/passport/login";
429
+ S(n, t.path, o), a({ path: n });
430
430
  }
431
- else if (n)
431
+ else if (r)
432
432
  if (l) {
433
- const r = "/main";
434
- S(r, t.path, o), a({ path: r });
433
+ const n = "/main";
434
+ S(n, t.path, o), a({ path: n });
435
435
  } else {
436
- const r = "/org/joinOrCreate";
437
- S(r, t.path, o), a({ path: r });
436
+ const n = "/org/joinOrCreate";
437
+ S(n, t.path, o), a({ path: n });
438
438
  }
439
439
  else
440
440
  S(e.path, t.path, o), a();
@@ -456,13 +456,13 @@ function ot(e, t) {
456
456
  const a = e.value.findIndex((o) => o === t);
457
457
  a >= 0 && e.value.splice(a, 1);
458
458
  }
459
- function nt(e) {
459
+ function rt(e) {
460
460
  console.assert(e.value.length > 0), e.value.pop();
461
461
  }
462
462
  function Pt(e) {
463
463
  e.value = [];
464
464
  }
465
- function rt(e) {
465
+ function nt(e) {
466
466
  return xe() ? (be(e), !0) : !1;
467
467
  }
468
468
  function lt(e) {
@@ -483,25 +483,25 @@ function st(e) {
483
483
  }
484
484
  function _t(e, t = {}) {
485
485
  const { window: a = ut } = t, o = st(() => a && "matchMedia" in a && typeof a.matchMedia == "function");
486
- let n;
486
+ let r;
487
487
  const l = f(!1), c = (_) => {
488
488
  l.value = _.matches;
489
- }, r = () => {
490
- n && ("removeEventListener" in n ? n.removeEventListener("change", c) : n.removeListener(c));
489
+ }, n = () => {
490
+ r && ("removeEventListener" in r ? r.removeEventListener("change", c) : r.removeListener(c));
491
491
  }, u = ke(() => {
492
- o.value && (r(), n = a.matchMedia(lt(e)), "addEventListener" in n ? n.addEventListener("change", c) : n.addListener(c), l.value = n.matches);
492
+ o.value && (n(), r = a.matchMedia(lt(e)), "addEventListener" in r ? r.addEventListener("change", c) : r.addListener(c), l.value = r.matches);
493
493
  });
494
- return rt(() => {
495
- u(), r(), n = void 0;
494
+ return nt(() => {
495
+ u(), n(), r = void 0;
496
496
  }), l;
497
497
  }
498
- function it(e) {
498
+ function dt(e) {
499
499
  return _t("(prefers-color-scheme: dark)", e);
500
500
  }
501
- function ea(e, t, a, o, n, l) {
502
- const c = Re(), r = ue();
503
- ze(e), Xe(t), Fe(a), Ne(o), Ge(n), Qe(l);
504
- const u = ce(), _ = it();
501
+ function ea(e, t, a, o, r, l) {
502
+ const c = Re(), n = ue();
503
+ ze(e), Xe(t), Fe(a), Ne(o), Ge(r), Qe(l);
504
+ const u = ce(), _ = dt();
505
505
  N(
506
506
  e,
507
507
  () => {
@@ -518,7 +518,7 @@ function ea(e, t, a, o, n, l) {
518
518
  }, v = () => {
519
519
  var x;
520
520
  if (!tt(l)) {
521
- me(l, "waitDlg") || nt(l);
521
+ me(l, "waitDlg") || rt(l);
522
522
  return;
523
523
  }
524
524
  const s = Z(c.path);
@@ -527,7 +527,7 @@ function ea(e, t, a, o, n, l) {
527
527
  },
528
528
  () => {
529
529
  }
530
- ) : r.back();
530
+ ) : n.back();
531
531
  };
532
532
  T(() => {
533
533
  window.addEventListener("keydown", g), p.on("backbutton", v);
@@ -538,16 +538,16 @@ function ea(e, t, a, o, n, l) {
538
538
  e.value = s;
539
539
  }, k = (s) => {
540
540
  t.value = s;
541
- }, i = (s) => {
541
+ }, d = (s) => {
542
542
  const x = s;
543
543
  a.value = x[0], o.value = x[1];
544
544
  }, D = (s) => {
545
- n.value = s;
545
+ r.value = s;
546
546
  };
547
547
  Le(() => {
548
- p.on("updateDark", L), p.on("updateLocale", k), p.on("updatePermission", i), p.on("updateLastAppPath", D), p.emit("syncGlobalState");
548
+ p.on("updateDark", L), p.on("updateLocale", k), p.on("updatePermission", d), p.on("updateLastAppPath", D), p.emit("syncGlobalState");
549
549
  }), W(() => {
550
- p.off("updateDark", L), p.off("updateLocale", k), p.off("updatePermission", i), p.off("updateLastAppPath", D);
550
+ p.off("updateDark", L), p.off("updateLocale", k), p.off("updatePermission", d), p.off("updateLastAppPath", D);
551
551
  });
552
552
  }
553
553
  function ta() {
@@ -573,38 +573,38 @@ function ae(e, t) {
573
573
  set(l) {
574
574
  l ? at(a, e) : ot(a, e);
575
575
  }
576
- }), n = (l) => {
576
+ }), r = (l) => {
577
577
  t == null || t(l), o.value = !0;
578
578
  };
579
579
  return T(() => {
580
- p.on(e, n);
580
+ p.on(e, r);
581
581
  }), W(() => {
582
- p.off(e, n);
582
+ p.off(e, r);
583
583
  }), { open: o };
584
584
  }
585
- const dt = /* @__PURE__ */ B({
585
+ const it = /* @__PURE__ */ B({
586
586
  __name: "index",
587
587
  setup(e) {
588
- const { t } = ee(), a = f(""), o = f(""), n = f(""), l = f(""), c = f(""), r = f("");
588
+ const { t } = ee(), a = f(""), o = f(""), r = f(""), l = f(""), c = f(""), n = f("");
589
589
  let u = 0, _ = !1;
590
590
  const g = (k) => {
591
591
  var D, s, x, M;
592
- const i = k;
593
- a.value = i.title, o.value = i.text, n.value = ((D = i.cancel) == null ? void 0 : D.color) ?? "primary", l.value = ((s = i.cancel) == null ? void 0 : s.text) ?? t("dlg.common.cancel"), c.value = ((x = i.confirm) == null ? void 0 : x.color) ?? "primary", r.value = ((M = i.confirm) == null ? void 0 : M.text) ?? t("dlg.common.confirm"), u = i.seq, _ = !1, v.value = !0;
592
+ const d = k;
593
+ a.value = d.title, o.value = d.text, r.value = ((D = d.cancel) == null ? void 0 : D.color) ?? "primary", l.value = ((s = d.cancel) == null ? void 0 : s.text) ?? t("dlg.common.cancel"), c.value = ((x = d.confirm) == null ? void 0 : x.color) ?? "primary", n.value = ((M = d.confirm) == null ? void 0 : M.text) ?? t("dlg.common.confirm"), u = d.seq, _ = !1, v.value = !0;
594
594
  }, { open: v } = ae("confirmDlg", g), L = () => {
595
595
  v.value = !1, _ || (p.emit("confirmDlgResult" + u, !0), _ = !0);
596
596
  };
597
597
  return N(v, (k) => {
598
598
  !k && !_ && (p.emit("confirmDlgResult" + u, !1), _ = !0);
599
- }), (k, i) => {
600
- const D = h("v-card-text"), s = h("v-btn"), x = h("v-card-actions"), M = h("v-card"), d = h("v-dialog");
601
- return C(), q(d, {
599
+ }), (k, d) => {
600
+ const D = h("v-card-text"), s = h("v-btn"), x = h("v-card-actions"), M = h("v-card"), i = h("v-dialog");
601
+ return C(), q(i, {
602
602
  modelValue: H(v),
603
- "onUpdate:modelValue": i[1] || (i[1] = (j) => Y(v) ? v.value = j : null),
603
+ "onUpdate:modelValue": d[1] || (d[1] = (j) => Y(v) ? v.value = j : null),
604
604
  transition: "dialog-top-transition",
605
605
  "max-width": "600px",
606
606
  onKeydown: [
607
- i[2] || (i[2] = F($((j) => v.value = !1, ["stop", "prevent"]), ["esc"])),
607
+ d[2] || (d[2] = F($((j) => v.value = !1, ["stop", "prevent"]), ["esc"])),
608
608
  F($(L, ["stop", "prevent"]), ["enter"])
609
609
  ]
610
610
  }, {
@@ -620,9 +620,9 @@ const dt = /* @__PURE__ */ B({
620
620
  b(x, { class: "d-flex justify-end" }, {
621
621
  default: w(() => [
622
622
  b(s, {
623
- color: n.value,
623
+ color: r.value,
624
624
  variant: "text",
625
- onClick: i[0] || (i[0] = (j) => v.value = !1)
625
+ onClick: d[0] || (d[0] = (j) => v.value = !1)
626
626
  }, {
627
627
  default: w(() => [
628
628
  V(R(l.value), 1)
@@ -635,7 +635,7 @@ const dt = /* @__PURE__ */ B({
635
635
  onClick: L
636
636
  }, {
637
637
  default: w(() => [
638
- V(R(r.value), 1)
638
+ V(R(n.value), 1)
639
639
  ]),
640
640
  _: 1
641
641
  }, 8, ["color"])
@@ -661,11 +661,11 @@ const dt = /* @__PURE__ */ B({
661
661
  background: t.value,
662
662
  zIndex: e.zIndex
663
663
  }));
664
- return (o, n) => o.open ? (C(), Q("div", {
664
+ return (o, r) => o.open ? (C(), Q("div", {
665
665
  key: 0,
666
666
  class: "x-cont",
667
667
  style: le(a.value)
668
- }, n[0] || (n[0] = [
668
+ }, r[0] || (r[0] = [
669
669
  m("div", { class: "lds-spinner" }, [
670
670
  m("div"),
671
671
  m("div"),
@@ -684,8 +684,8 @@ const dt = /* @__PURE__ */ B({
684
684
  }
685
685
  }), oe = (e, t) => {
686
686
  const a = e.__vccOpts || e;
687
- for (const [o, n] of t)
688
- a[o] = n;
687
+ for (const [o, r] of t)
688
+ a[o] = r;
689
689
  return a;
690
690
  }, gt = /* @__PURE__ */ oe(ft, [["__scopeId", "data-v-4fee730c"]]);
691
691
  var vt = "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", mt = "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", ht = "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", wt = "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", yt = "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";
@@ -702,7 +702,7 @@ const xt = /* @__PURE__ */ B({
702
702
  const a = e, o = y(() => ({
703
703
  width: "calc(100% - 64px)",
704
704
  overflowWrap: "break-word"
705
- })), n = y(() => {
705
+ })), r = y(() => {
706
706
  switch (a.type) {
707
707
  case "success":
708
708
  return mt;
@@ -720,9 +720,9 @@ const xt = /* @__PURE__ */ B({
720
720
  setTimeout(() => {
721
721
  c("timeout", a.id);
722
722
  }, a.timeout);
723
- }), N(l, (r) => {
724
- r || c("timeout", a.id);
725
- }), (r, u) => {
723
+ }), N(l, (n) => {
724
+ n || c("timeout", a.id);
725
+ }), (n, u) => {
726
726
  const _ = h("v-icon"), g = h("v-sheet");
727
727
  return C(), q(g, {
728
728
  class: "x-item d-flex align-center py-2 mb-2",
@@ -730,10 +730,10 @@ const xt = /* @__PURE__ */ B({
730
730
  elevation: 1
731
731
  }, {
732
732
  default: w(() => [
733
- n.value ? (C(), q(_, {
733
+ r.value ? (C(), q(_, {
734
734
  key: 0,
735
735
  class: "mx-1",
736
- icon: n.value
736
+ icon: r.value
737
737
  }, null, 8, ["icon"])) : P("", !0),
738
738
  m("div", {
739
739
  style: le(o.value)
@@ -757,21 +757,21 @@ const xt = /* @__PURE__ */ B({
757
757
  }), W(() => {
758
758
  p.off("message", a);
759
759
  });
760
- const a = (r) => {
761
- const { type: u, text: _, timeout: g } = r;
760
+ const a = (n) => {
761
+ const { type: u, text: _, timeout: g } = n;
762
762
  l(u, _, g);
763
- }, o = (r) => {
764
- c(r);
763
+ }, o = (n) => {
764
+ c(n);
765
765
  };
766
- let n = 0;
767
- const l = (r, u, _) => {
768
- const g = n++;
769
- t.value.push({ id: g, type: r, text: u, timeout: _ });
770
- }, c = (r) => {
771
- const u = t.value.findIndex((_) => _.id === r);
766
+ let r = 0;
767
+ const l = (n, u, _) => {
768
+ const g = r++;
769
+ t.value.push({ id: g, type: n, text: u, timeout: _ });
770
+ }, c = (n) => {
771
+ const u = t.value.findIndex((_) => _.id === n);
772
772
  u >= 0 && t.value.splice(u, 1);
773
773
  };
774
- return (r, u) => (C(), Q("div", {
774
+ return (n, u) => (C(), Q("div", {
775
775
  class: "x-cont d-flex flex-column-reverse align-center",
776
776
  onClick: u[0] || (u[0] = $(() => {
777
777
  }, ["stop"]))
@@ -789,26 +789,26 @@ const xt = /* @__PURE__ */ B({
789
789
  }), Ct = /* @__PURE__ */ oe(kt, [["__scopeId", "data-v-8fd5d800"]]), Lt = /* @__PURE__ */ B({
790
790
  __name: "index",
791
791
  setup(e) {
792
- const { t } = ee(), a = f(""), o = f(""), n = f(""), l = f(""), c = f(), r = f(""), u = f(""), _ = f(""), g = f(""), v = f(""), L = Se("target");
793
- let k = 0, i = !1;
792
+ const { t } = ee(), a = f(""), o = f(""), r = f(""), l = f(""), c = f(), n = f(""), u = f(""), _ = f(""), g = f(""), v = f(""), L = Se("target");
793
+ let k = 0, d = !1;
794
794
  const D = async (M) => {
795
795
  var j, K, z, E;
796
- const d = M;
797
- a.value = d.title, o.value = d.text, n.value = d.label, l.value = d.placeholder, c.value = d.rules, r.value = d.value, u.value = ((j = d.cancel) == null ? void 0 : j.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 = ((E = d.confirm) == null ? void 0 : E.text) ?? t("dlg.common.confirm"), k = d.seq, i = !1, s.value = !0, await te(() => !!L.value), L.value.focus();
796
+ const i = M;
797
+ a.value = i.title, o.value = i.text, r.value = i.label, l.value = i.placeholder, c.value = i.rules, n.value = i.value, u.value = ((j = i.cancel) == null ? void 0 : j.color) ?? "primary", _.value = ((K = i.cancel) == null ? void 0 : K.text) ?? t("dlg.common.cancel"), g.value = ((z = i.confirm) == null ? void 0 : z.color) ?? "primary", v.value = ((E = i.confirm) == null ? void 0 : E.text) ?? t("dlg.common.confirm"), k = i.seq, d = !1, s.value = !0, await te(() => !!L.value), L.value.focus();
798
798
  }, { open: s } = ae("promptDlg", D), x = () => {
799
- s.value = !1, i || (p.emit("promptDlgResult" + k, r.value ?? ""), i = !0);
799
+ s.value = !1, d || (p.emit("promptDlgResult" + k, n.value ?? ""), d = !0);
800
800
  };
801
801
  return N(s, (M) => {
802
- !M && !i && (p.emit("promptDlgResult" + k, void 0), i = !0);
803
- }), (M, d) => {
802
+ !M && !d && (p.emit("promptDlgResult" + k, void 0), d = !0);
803
+ }), (M, i) => {
804
804
  const j = h("v-card-text"), K = h("v-text-field"), z = h("v-form"), E = h("v-btn"), he = h("v-card-actions"), we = h("v-card"), ye = h("v-dialog");
805
805
  return C(), q(ye, {
806
806
  modelValue: H(s),
807
- "onUpdate:modelValue": d[2] || (d[2] = (U) => Y(s) ? s.value = U : null),
807
+ "onUpdate:modelValue": i[2] || (i[2] = (U) => Y(s) ? s.value = U : null),
808
808
  transition: "dialog-top-transition",
809
809
  "max-width": "600px",
810
810
  onKeydown: [
811
- d[3] || (d[3] = F($((U) => s.value = !1, ["stop", "prevent"]), ["esc"])),
811
+ i[3] || (i[3] = F($((U) => s.value = !1, ["stop", "prevent"]), ["esc"])),
812
812
  F($(x, ["stop", "prevent"]), ["enter"])
813
813
  ]
814
814
  }, {
@@ -826,9 +826,9 @@ const xt = /* @__PURE__ */ B({
826
826
  b(K, {
827
827
  ref_key: "target",
828
828
  ref: L,
829
- modelValue: r.value,
830
- "onUpdate:modelValue": d[0] || (d[0] = (U) => r.value = U),
831
- label: n.value,
829
+ modelValue: n.value,
830
+ "onUpdate:modelValue": i[0] || (i[0] = (U) => n.value = U),
831
+ label: r.value,
832
832
  placeholder: l.value,
833
833
  rules: c.value
834
834
  }, null, 8, ["modelValue", "label", "placeholder", "rules"])
@@ -840,7 +840,7 @@ const xt = /* @__PURE__ */ B({
840
840
  b(E, {
841
841
  color: u.value,
842
842
  variant: "text",
843
- onClick: d[1] || (d[1] = (U) => s.value = !1)
843
+ onClick: i[1] || (i[1] = (U) => s.value = !1)
844
844
  }, {
845
845
  default: w(() => [
846
846
  V(R(_.value), 1)
@@ -872,20 +872,20 @@ const xt = /* @__PURE__ */ B({
872
872
  __name: "index",
873
873
  setup(e) {
874
874
  const { t } = ee(), a = f(""), o = (c) => {
875
- const r = c;
876
- a.value = r.text ?? t("dlg.common.waiting"), l.value = !0;
877
- }, n = () => {
875
+ const n = c;
876
+ a.value = n.text ?? t("dlg.common.waiting"), l.value = !0;
877
+ }, r = () => {
878
878
  l.value = !1;
879
879
  }, { open: l } = ae("waitDlg", o);
880
880
  return T(() => {
881
- p.on("closeWaitDlg", n);
881
+ p.on("closeWaitDlg", r);
882
882
  }), W(() => {
883
- p.off("closeWaitDlg", n);
884
- }), (c, r) => {
883
+ p.off("closeWaitDlg", r);
884
+ }), (c, n) => {
885
885
  const u = h("v-card"), _ = h("v-dialog");
886
886
  return C(), q(_, {
887
887
  modelValue: H(l),
888
- "onUpdate:modelValue": r[0] || (r[0] = (g) => Y(l) ? l.value = g : null),
888
+ "onUpdate:modelValue": n[0] || (n[0] = (g) => Y(l) ? l.value = g : null),
889
889
  persistent: "",
890
890
  "no-click-animation": "",
891
891
  fullscreen: ""
@@ -911,10 +911,10 @@ const xt = /* @__PURE__ */ B({
911
911
  };
912
912
  }
913
913
  }), Rt = (e) => {
914
- e.component("XConfirmDlg", dt), e.component("XLoading", gt), e.component("XMessage", Ct), e.component("XPromptDlg", Lt), e.component("XWaitDlg", jt);
914
+ e.component("XConfirmDlg", it), e.component("XLoading", gt), e.component("XMessage", Ct), e.component("XPromptDlg", Lt), e.component("XWaitDlg", jt);
915
915
  }, qt = (e, t, a) => {
916
916
  const o = e[t];
917
- return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((n, l) => {
917
+ return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((r, l) => {
918
918
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
919
919
  l.bind(
920
920
  null,
@@ -928,7 +928,7 @@ const xt = /* @__PURE__ */ B({
928
928
  async function oa(e) {
929
929
  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;
930
930
  }
931
- const na = { install: Rt };
931
+ const ra = { install: Rt };
932
932
  export {
933
933
  He as Permission,
934
934
  at as addView,
@@ -936,7 +936,7 @@ export {
936
936
  Pt as clearViews,
937
937
  Ht as closeWaitDlg,
938
938
  Bt as createAxios,
939
- na as default,
939
+ ra as default,
940
940
  ot as delView,
941
941
  p as eventBus,
942
942
  me as hasView,
@@ -947,7 +947,7 @@ export {
947
947
  Ze as injectPermissionObjects,
948
948
  Je as injectViews,
949
949
  tt as isEmpty,
950
- re as isExist,
950
+ ne as isExist,
951
951
  Yt as lastView,
952
952
  oa as loadLocaleMessageEssential,
953
953
  Z as matchRouteMeta,
@@ -959,7 +959,7 @@ export {
959
959
  Ut as openConfirmDlg,
960
960
  Wt as openPromptDlg,
961
961
  $t as openWaitDlg,
962
- nt as popView,
962
+ rt as popView,
963
963
  ze as provideDark,
964
964
  Ge as provideLastAppPath,
965
965
  Xe as provideLocale,
@@ -110,12 +110,16 @@ export declare enum Permission {
110
110
  add_org_member = "add_org_member",
111
111
  remove_org_member = "remove_org_member",
112
112
  update_org_member = "update_org_member",
113
+ list_org_role_group = "list_org_role_group",
114
+ create_org_role_group = "create_org_role_group",
115
+ delete_org_role_group = "delete_org_role_group",
116
+ update_org_role_group = "update_org_role_group",
117
+ arrange_org_role_group = "arrange_org_role_group",
113
118
  list_org_role = "list_org_role",
114
119
  get_org_role = "get_org_role",
115
120
  create_org_role = "create_org_role",
116
121
  delete_org_role = "delete_org_role",
117
122
  update_org_role = "update_org_role",
118
- arrange_org_role = "arrange_org_role",
119
123
  get_org_structure = "get_org_structure",
120
124
  update_org_structure = "update_org_structure",
121
125
  filter_table = "filter_table"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
3
  "private": false,
4
- "version": "0.7.19",
4
+ "version": "0.7.20",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",