x-essential-lib 0.6.4 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,22 +1,22 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.id="x-essential-lib",a.appendChild(document.createTextNode('.x-cont[data-v-7ab74c70]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-7ab74c70]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-7ab74c70]{transform-origin:20px 20px;animation:lds-spinner-7ab74c70 1.2s linear infinite}.lds-spinner div[data-v-7ab74c70]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-7ab74c70]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-7ab74c70]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-7ab74c70]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-7ab74c70]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-7ab74c70]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-7ab74c70]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-7ab74c70]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-7ab74c70]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-7ab74c70]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-7ab74c70]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-7ab74c70]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-7ab74c70]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-7ab74c70{0%{opacity:1}to{opacity:0}}.x-item[data-v-d5cfe252]{width:600px}@media (max-width: 600px){.x-item[data-v-d5cfe252]{width:calc(100vw - 16px)}}.x-cont[data-v-d525e6f5]{position:absolute;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(a)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- import { ref as d, defineComponent as T, computed as g, onMounted as V, onBeforeUnmount as I, watch as N, resolveComponent as h, openBlock as D, createBlock as O, withKeys as F, withModifiers as W, withCtx as w, createVNode as b, createTextVNode as E, toDisplayString as q, createElementBlock as J, 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 ye, getCurrentInstance as xe } from "vue";
3
- import { useI18n as P } from "vue-i18n";
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 F, withModifiers as W, withCtx as w, createVNode as C, createTextVNode as E, toDisplayString as q, createElementBlock as Q, normalizeStyle as ne, pushScopeId as fe, popScopeId as ge, createElementVNode as v, createCommentVNode as re, unref as le, Fragment as ve, renderList as me, getCurrentScope as he, onScopeDispose as we, watchEffect as ye, getCurrentInstance as xe } from "vue";
3
+ import { useI18n as Y } from "vue-i18n";
4
4
  import { defineStore as ce } from "pinia";
5
5
  import ke from "axios";
6
- import { useRouter as ue, useRoute as be } from "vue-router";
7
- import { useTheme as ee, useDisplay as Ce } from "vuetify";
8
- const Z = ce("global", () => {
9
- const e = d(), a = d("en"), t = d({}), n = d(""), o = d("");
6
+ import { useRouter as ue, useRoute as Ce } from "vue-router";
7
+ import { useTheme as P, useDisplay as be } from "vuetify";
8
+ const G = ce("global", () => {
9
+ const e = d(), o = d("en"), t = d({}), n = d(""), a = d("");
10
10
  return {
11
11
  dark: e,
12
- locale: a,
12
+ locale: o,
13
13
  permissionObjects: t,
14
14
  permissionChecksum: n,
15
- lastAppPath: o
15
+ lastAppPath: a
16
16
  };
17
17
  }), $ = ce("viewMgr", () => {
18
18
  const e = d([]);
19
- function a() {
19
+ function o() {
20
20
  return e.value.length <= 0;
21
21
  }
22
22
  function t() {
@@ -25,17 +25,17 @@ const Z = ce("global", () => {
25
25
  return e.value[u - 1];
26
26
  }
27
27
  function n(u) {
28
- return e.value.find((p) => p === u) !== void 0;
28
+ return e.value.find((s) => s === u) !== void 0;
29
29
  }
30
- function o(u) {
31
- const p = e.value.findIndex((_) => _ === u);
32
- p !== -1 && e.value.splice(p, 1), e.value.push(u);
30
+ function a(u) {
31
+ const s = e.value.findIndex((_) => _ === u);
32
+ s !== -1 && e.value.splice(s, 1), e.value.push(u);
33
33
  }
34
- function r(u) {
35
- const p = e.value.findIndex((_) => _ === u);
36
- p !== -1 && e.value.splice(p, 1);
34
+ function l(u) {
35
+ const s = e.value.findIndex((_) => _ === u);
36
+ s !== -1 && e.value.splice(s, 1);
37
37
  }
38
- function l() {
38
+ function r() {
39
39
  console.assert(e.value.length > 0), e.value.pop();
40
40
  }
41
41
  function c() {
@@ -43,19 +43,19 @@ const Z = ce("global", () => {
43
43
  }
44
44
  return {
45
45
  views: e,
46
- isEmpty: a,
46
+ isEmpty: o,
47
47
  lastView: t,
48
48
  hasView: n,
49
- addView: o,
50
- delView: r,
51
- popView: l,
49
+ addView: a,
50
+ delView: l,
51
+ popView: r,
52
52
  clearViews: c
53
53
  };
54
54
  });
55
55
  /*! js-cookie v3.0.5 | MIT */
56
56
  function X(e) {
57
- for (var a = 1; a < arguments.length; a++) {
58
- var t = arguments[a];
57
+ for (var o = 1; o < arguments.length; o++) {
58
+ var t = arguments[o];
59
59
  for (var n in t)
60
60
  e[n] = t[n];
61
61
  }
@@ -72,188 +72,190 @@ var De = {
72
72
  );
73
73
  }
74
74
  };
75
- function Y(e, a) {
76
- function t(o, r, l) {
75
+ function J(e, o) {
76
+ function t(a, l, r) {
77
77
  if (!(typeof document > "u")) {
78
- l = X({}, a, 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
+ r = X({}, o, r), typeof r.expires == "number" && (r.expires = new Date(Date.now() + r.expires * 864e5)), r.expires && (r.expires = r.expires.toUTCString()), a = encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
79
79
  var c = "";
80
- for (var u in l)
81
- l[u] && (c += "; " + u, l[u] !== !0 && (c += "=" + l[u].split(";")[0]));
82
- return document.cookie = o + "=" + e.write(r, o) + c;
80
+ for (var u in r)
81
+ r[u] && (c += "; " + u, r[u] !== !0 && (c += "=" + r[u].split(";")[0]));
82
+ return document.cookie = a + "=" + e.write(l, a) + c;
83
83
  }
84
84
  }
85
- function n(o) {
86
- if (!(typeof document > "u" || arguments.length && !o)) {
87
- for (var r = document.cookie ? document.cookie.split("; ") : [], l = {}, c = 0; c < r.length; c++) {
88
- var u = r[c].split("="), p = u.slice(1).join("=");
85
+ function n(a) {
86
+ if (!(typeof document > "u" || arguments.length && !a)) {
87
+ for (var l = document.cookie ? document.cookie.split("; ") : [], r = {}, c = 0; c < l.length; c++) {
88
+ var u = l[c].split("="), s = u.slice(1).join("=");
89
89
  try {
90
90
  var _ = decodeURIComponent(u[0]);
91
- if (l[_] = e.read(p, _), o === _)
91
+ if (r[_] = e.read(s, _), a === _)
92
92
  break;
93
93
  } catch {
94
94
  }
95
95
  }
96
- return o ? l[o] : l;
96
+ return a ? r[a] : r;
97
97
  }
98
98
  }
99
99
  return Object.create(
100
100
  {
101
101
  set: t,
102
102
  get: n,
103
- remove: function(o, r) {
103
+ remove: function(a, l) {
104
104
  t(
105
- o,
105
+ a,
106
106
  "",
107
- X({}, r, {
107
+ X({}, l, {
108
108
  expires: -1
109
109
  })
110
110
  );
111
111
  },
112
- withAttributes: function(o) {
113
- return Y(this.converter, X({}, this.attributes, o));
112
+ withAttributes: function(a) {
113
+ return J(this.converter, X({}, this.attributes, a));
114
114
  },
115
- withConverter: function(o) {
116
- return Y(X({}, this.converter, o), this.attributes);
115
+ withConverter: function(a) {
116
+ return J(X({}, this.converter, a), this.attributes);
117
117
  }
118
118
  },
119
119
  {
120
- attributes: { value: Object.freeze(a) },
120
+ attributes: { value: Object.freeze(o) },
121
121
  converter: { value: Object.freeze(e) }
122
122
  }
123
123
  );
124
124
  }
125
- var j = Y(De, { path: "/" });
125
+ var j = J(De, { path: "/" });
126
126
  function xt(e) {
127
- const a = ke.create({
127
+ const o = ke.create({
128
128
  timeout: 6e3
129
129
  });
130
- return a.defaults.baseURL = e.baseUrl, a.interceptors.request.use(
130
+ return o.defaults.baseURL = e.baseUrl, o.interceptors.request.use(
131
131
  (t) => Le(t),
132
132
  (t) => {
133
133
  Ve(t, e.onError);
134
134
  }
135
- ), a.interceptors.response.use(
135
+ ), o.interceptors.response.use(
136
136
  (t) => Me(t),
137
137
  (t) => Se(t, e.onError)
138
- ), a;
138
+ ), o;
139
139
  }
140
140
  function Le(e) {
141
- const a = j.get("accessToken") ?? "";
142
- return e.headers.Authorization = "Basic " + a, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
141
+ const o = j.get("accessToken") ?? "";
142
+ return e.headers.Authorization = "Basic " + o, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
143
143
  }
144
- function Ve(e, a) {
145
- console.error(e), a("request timeout");
144
+ function Ve(e, o) {
145
+ console.error(e), o("request timeout");
146
146
  }
147
147
  function Me(e) {
148
148
  return e.data;
149
149
  }
150
- function Se(e, a) {
151
- var o;
150
+ function Se(e, o) {
151
+ var a;
152
152
  const t = e.response;
153
153
  if (!t)
154
154
  return Promise.reject(e);
155
155
  t.status === 401 && Ae();
156
- let n = (o = t.data) == null ? void 0 : o.message;
156
+ let n = (a = t.data) == null ? void 0 : a.message;
157
157
  return n || (n = {
158
158
  code: t.status,
159
159
  message: t.statusText
160
- }), a(n), Promise.reject(e);
160
+ }), o(n), Promise.reject(e);
161
161
  }
162
162
  function Ae() {
163
163
  j.remove("accessToken"), j.remove("refreshToken"), j.remove("activeOrg"), ue().replace({ path: "/passport/login" });
164
164
  }
165
165
  function qe(e) {
166
- return { all: e = e || /* @__PURE__ */ new Map(), on: function(a, t) {
167
- var n = e.get(a);
168
- n ? n.push(t) : e.set(a, [t]);
169
- }, off: function(a, t) {
170
- var n = e.get(a);
171
- n && (t ? n.splice(n.indexOf(t) >>> 0, 1) : e.set(a, []));
172
- }, emit: function(a, t) {
173
- var n = e.get(a);
174
- n && n.slice().map(function(o) {
175
- o(t);
176
- }), (n = e.get("*")) && n.slice().map(function(o) {
177
- o(a, t);
166
+ return { all: e = e || /* @__PURE__ */ new Map(), on: function(o, t) {
167
+ var n = e.get(o);
168
+ n ? n.push(t) : e.set(o, [t]);
169
+ }, off: function(o, t) {
170
+ var n = e.get(o);
171
+ n && (t ? n.splice(n.indexOf(t) >>> 0, 1) : e.set(o, []));
172
+ }, emit: function(o, t) {
173
+ var n = e.get(o);
174
+ n && n.slice().map(function(a) {
175
+ a(t);
176
+ }), (n = e.get("*")) && n.slice().map(function(a) {
177
+ a(o, t);
178
178
  });
179
179
  } };
180
180
  }
181
- const s = function() {
181
+ const p = function() {
182
182
  return window.eventBus || (window.eventBus = qe()), window.eventBus;
183
183
  }();
184
184
  async function kt(e) {
185
- return new Promise((a) => {
186
- setTimeout(a, e);
185
+ return new Promise((o) => {
186
+ setTimeout(o, e);
187
187
  });
188
188
  }
189
- async function G(e, a, t) {
189
+ async function ee(e, o, t) {
190
190
  const n = Date.now();
191
- return new Promise((o) => {
192
- const r = async () => {
193
- e() ? o(!0) : a && Date.now() - n > a ? o(!1) : setTimeout(r, t ?? 30);
191
+ return new Promise((a) => {
192
+ const l = async () => {
193
+ e() ? a(!0) : o && Date.now() - n > o ? a(!1) : setTimeout(l, t ?? 30);
194
194
  };
195
- r();
195
+ l();
196
196
  });
197
197
  }
198
- async function Re(e, a) {
198
+ function Re(e, o) {
199
199
  const t = document.getElementById("single-spa-application:" + e);
200
- t && (t.classList.remove("app-left", "app-right", "app-reset"), a ? t.classList.add("app-left") : t.classList.add("app-right"), await G(() => t.hasChildNodes(), 5e3), t.classList.add("app-reset"));
200
+ t && (t.classList.remove("app-left", "app-right", "app-reset"), o ? t.classList.add("app-left") : t.classList.add("app-right"), setTimeout(() => {
201
+ t.classList.add("app-reset");
202
+ }, 50));
201
203
  }
202
- let ae = Date.now();
203
- function se() {
204
+ let oe = Date.now();
205
+ function pe() {
204
206
  const e = Date.now();
205
- return e - ae > 500 ? (ae = e, !0) : !1;
207
+ return e - oe > 500 ? (oe = e, !0) : !1;
206
208
  }
207
209
  let Ie = 0;
208
- function pe() {
210
+ function se() {
209
211
  return ++Ie;
210
212
  }
211
- async function bt(e) {
212
- if (!se())
213
+ async function Ct(e) {
214
+ if (!pe())
213
215
  return;
214
- let a = !1, t;
215
- const n = (r) => {
216
- t = r, a = !0;
217
- }, o = pe();
218
- return s.on("confirmDlgResult" + o, n), s.emit("confirmDlg", { ...e, seq: o }), await G(() => a), s.off("confirmDlgResult" + o, n), t;
216
+ let o = !1, t;
217
+ const n = (l) => {
218
+ t = l, o = !0;
219
+ }, a = se();
220
+ return p.on("confirmDlgResult" + a, n), p.emit("confirmDlg", { ...e, seq: a }), await ee(() => o), p.off("confirmDlgResult" + a, n), t;
219
221
  }
220
- async function Ct(e) {
221
- if (!se())
222
+ async function bt(e) {
223
+ if (!pe())
222
224
  return;
223
- let a = !1, t;
224
- const n = (r) => {
225
- t = r, a = !0;
226
- }, o = pe();
227
- return s.on("promptDlgResult" + o, n), s.emit("promptDlg", { ...e, seq: o }), await G(() => a), s.off("promptDlgResult" + o, n), t;
225
+ let o = !1, t;
226
+ const n = (l) => {
227
+ t = l, o = !0;
228
+ }, a = se();
229
+ return p.on("promptDlgResult" + a, n), p.emit("promptDlg", { ...e, seq: a }), await ee(() => o), p.off("promptDlgResult" + a, n), t;
228
230
  }
229
231
  function Dt(e) {
230
- s.emit("openWaitDlg", { text: e });
232
+ p.emit("openWaitDlg", { text: e });
231
233
  }
232
234
  function Lt() {
233
- s.emit("closeWaitDlg");
235
+ p.emit("closeWaitDlg");
234
236
  }
235
- function Vt(e, a) {
236
- s.emit("message", { type: "error", text: e, timeout: a });
237
+ function Vt(e, o) {
238
+ p.emit("message", { type: "error", text: e, timeout: o });
237
239
  }
238
- function Mt(e, a) {
239
- s.emit("message", { type: "info", text: e, timeout: a });
240
+ function Mt(e, o) {
241
+ p.emit("message", { type: "info", text: e, timeout: o });
240
242
  }
241
- function St(e, a) {
242
- s.emit("message", { type: "success", text: e, timeout: a });
243
+ function St(e, o) {
244
+ p.emit("message", { type: "success", text: e, timeout: o });
243
245
  }
244
- function At(e, a) {
245
- s.emit("message", { type: "warning", text: e, timeout: a });
246
+ function At(e, o) {
247
+ p.emit("message", { type: "warning", text: e, timeout: o });
246
248
  }
247
- 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 || {});
248
- function oe(e, a) {
249
+ 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_compute_space = "list_compute_space", e.get_compute_space = "get_compute_space", e.create_compute_space = "create_compute_space", e.delete_compute_space = "delete_compute_space", e.update_compute_space = "update_compute_space", e.arrange_compute_space = "arrange_compute_space", e.list_func_group = "list_func_group", e.create_func_group = "create_func_group", e.delete_func_group = "delete_func_group", e.update_func_group = "update_func_group", e.arrange_func_group = "arrange_func_group", e.list_func = "list_func", e.get_func = "get_func", e.create_func = "create_func", e.delete_func = "delete_func", e.update_func = "update_func", e.debug_func = "debug_func", e.call_func = "call_func", e.list_func_release = "list_func_release", e.get_func_release = "get_func_release", e.create_func_release = "create_func_release", e.delete_func_release = "delete_func_release", e.deploy_func_release = "deploy_func_release", e.list_flow_group = "list_flow_group", e.create_flow_group = "create_flow_group", e.delete_flow_group = "delete_flow_group", e.update_flow_group = "update_flow_group", e.arrange_flow_group = "arrange_flow_group", e.list_flow = "list_flow", e.get_flow = "get_flow", e.create_flow = "create_flow", e.delete_flow = "delete_flow", e.update_flow = "update_flow", e.call_flow = "call_flow", e.list_flow_release = "list_flow_release", e.get_flow_release = "get_flow_release", e.create_flow_release = "create_flow_release", e.delete_flow_release = "delete_flow_release", e.deploy_flow_release = "deploy_flow_release", e.list_task = "list_task", e.get_task = "get_task", e.create_task = "create_task", e.delete_task = "delete_task", e.update_task = "update_task", e.call_task = "call_task", e.open_compute_layer = "open_compute_layer", e.list_data_space = "list_data_space", e.get_data_space = "get_data_space", e.create_data_space = "create_data_space", e.delete_data_space = "delete_data_space", e.update_data_space = "update_data_space", e.arrange_data_space = "arrange_data_space", e.list_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_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_model = "filter_model", e))(Oe || {});
250
+ function ae(e, o) {
249
251
  if (!e)
250
252
  return !1;
251
253
  let t = e;
252
- return Object.keys(t).length <= 0 || (a.split("/").forEach((o) => {
254
+ return Object.keys(t).length <= 0 || (o.split("/").forEach((a) => {
253
255
  if (Object.keys(t).length <= 0)
254
256
  return !0;
255
- if (t[o])
256
- t = t[o];
257
+ if (t[a])
258
+ t = t[a];
257
259
  else
258
260
  return !1;
259
261
  }), Object.keys(t).length <= 0);
@@ -367,29 +369,29 @@ const Ee = [
367
369
  }
368
370
  ];
369
371
  function K(e) {
370
- let a, t = 0;
371
- const n = e.split("/").filter((o) => o.trim() !== "");
372
- return Ee.forEach((o) => {
373
- const r = o.path.split("/").filter((c) => c.trim() !== "");
374
- let l = 0;
375
- for (let c = 0; c < n.length && !(c >= r.length || n[c] !== r[c]); c++)
376
- l++;
377
- l > 0 && l > t && (a = o, t = l);
378
- }), a;
379
- }
380
- const Q = d("");
381
- function L(e, a) {
382
- const t = Z();
383
- a === "/" && (a = t.lastAppPath);
384
- const n = K(e), o = K(a);
372
+ let o, t = 0;
373
+ const n = e.split("/").filter((a) => a.trim() !== "");
374
+ return Ee.forEach((a) => {
375
+ const l = a.path.split("/").filter((c) => c.trim() !== "");
376
+ let r = 0;
377
+ for (let c = 0; c < n.length && !(c >= l.length || n[c] !== l[c]); c++)
378
+ r++;
379
+ r > 0 && r > t && (o = a, t = r);
380
+ }), o;
381
+ }
382
+ const N = d("");
383
+ function L(e, o) {
384
+ const t = G();
385
+ o === "/" && (o = t.lastAppPath);
386
+ const n = K(e), a = K(o);
385
387
  if (!n) {
386
388
  console.assert(!1);
387
389
  return;
388
390
  }
389
- if (console.info(`~~~~routeChange~~~~ ${a} -> ${e}`), !o)
391
+ if (console.info(`~~~~routeChange~~~~ ${o} -> ${e}`), !a)
390
392
  return;
391
- const r = n.app === o.app, l = n.path === o.path, c = n.level >= o.level;
392
- r ? l ? Q.value = "" : Q.value = c ? "inner-left" : "inner-right" : (Q.value = "", Re(n.app, c));
393
+ const l = n.app === a.app, r = n.path === a.path, c = n.level >= a.level;
394
+ l ? r ? N.value = "" : N.value = c ? "inner-left" : "inner-right" : (N.value = "", Re(n.app, c));
393
395
  }
394
396
  function je() {
395
397
  return !!j.get("accessToken");
@@ -397,74 +399,74 @@ function je() {
397
399
  function Te() {
398
400
  return !!j.get("activeOrg");
399
401
  }
400
- function qt(e, a, t) {
401
- const n = je(), o = Te(), r = K(e.path);
402
- if (!r) {
402
+ function qt(e, o, t) {
403
+ const n = je(), a = Te(), l = K(e.path);
404
+ if (!l) {
403
405
  console.assert(!1), t();
404
406
  return;
405
407
  }
406
- if (r.requiredState === "auth")
408
+ if (l.requiredState === "auth")
407
409
  if (n)
408
- if (o) {
409
- const l = "/main";
410
- L(l, a.path), t({ path: l });
410
+ if (a) {
411
+ const r = "/main";
412
+ L(r, o.path), t({ path: r });
411
413
  } else
412
- L(e.path, a.path), t();
414
+ L(e.path, o.path), t();
413
415
  else {
414
- const l = "/passport/login";
415
- L(l, a.path), t({ path: l });
416
+ const r = "/passport/login";
417
+ L(r, o.path), t({ path: r });
416
418
  }
417
- else if (r.requiredState === "org")
419
+ else if (l.requiredState === "org")
418
420
  if (n)
419
- if (o)
420
- L(e.path, a.path), t();
421
+ if (a)
422
+ L(e.path, o.path), t();
421
423
  else {
422
- const l = "/org/joinOrCreate";
423
- L(l, a.path), t({ path: l });
424
+ const r = "/org/joinOrCreate";
425
+ L(r, o.path), t({ path: r });
424
426
  }
425
427
  else {
426
- const l = "/passport/login";
427
- L(l, a.path), t({ path: l });
428
+ const r = "/passport/login";
429
+ L(r, o.path), t({ path: r });
428
430
  }
429
431
  else if (n)
430
- if (o) {
431
- const l = "/main";
432
- L(l, a.path), t({ path: l });
432
+ if (a) {
433
+ const r = "/main";
434
+ L(r, o.path), t({ path: r });
433
435
  } else {
434
- const l = "/org/joinOrCreate";
435
- L(l, a.path), t({ path: l });
436
+ const r = "/org/joinOrCreate";
437
+ L(r, o.path), t({ path: r });
436
438
  }
437
439
  else
438
- L(e.path, a.path), t();
440
+ L(e.path, o.path), t();
439
441
  }
440
442
  const Be = /* @__PURE__ */ T({
441
443
  __name: "index",
442
444
  setup(e) {
443
- const { t: a } = P(), t = $(), n = g({
445
+ const { t: o } = Y(), t = $(), n = g({
444
446
  get() {
445
447
  return t.hasView("confirmDlg");
446
448
  },
447
449
  set(m) {
448
450
  m ? t.addView("confirmDlg") : t.delView("confirmDlg");
449
451
  }
450
- }), o = d(""), r = d(""), l = d(""), c = d(""), u = d(""), p = d("");
452
+ }), a = d(""), l = d(""), r = d(""), c = d(""), u = d(""), s = d("");
451
453
  let _ = 0, y = !1;
452
454
  const i = (m) => {
453
- var x, C, S, R;
454
- o.value = m.title, r.value = m.text, l.value = ((x = m.cancel) == null ? void 0 : x.color) ?? "primary", c.value = ((C = m.cancel) == null ? void 0 : C.text) ?? a("dlg.common.cancel"), u.value = ((S = m.confirm) == null ? void 0 : S.color) ?? "primary", p.value = ((R = m.confirm) == null ? void 0 : R.text) ?? a("dlg.common.confirm"), _ = m.seq, y = !1, n.value = !0;
455
+ var x, b, S, R;
456
+ a.value = m.title, l.value = m.text, r.value = ((x = m.cancel) == null ? void 0 : x.color) ?? "primary", c.value = ((b = m.cancel) == null ? void 0 : b.text) ?? o("dlg.common.cancel"), u.value = ((S = m.confirm) == null ? void 0 : S.color) ?? "primary", s.value = ((R = m.confirm) == null ? void 0 : R.text) ?? o("dlg.common.confirm"), _ = m.seq, y = !1, n.value = !0;
455
457
  };
456
458
  V(() => {
457
- s.on("confirmDlg", i);
459
+ p.on("confirmDlg", i);
458
460
  }), I(() => {
459
- s.off("confirmDlg", i);
461
+ p.off("confirmDlg", i);
460
462
  });
461
463
  const M = () => {
462
- n.value = !1, y || (s.emit("confirmDlgResult" + _, !0), y = !0);
464
+ n.value = !1, y || (p.emit("confirmDlgResult" + _, !0), y = !0);
463
465
  };
464
- return N(n, (m) => {
465
- !m && !y && (s.emit("confirmDlgResult" + _, !1), y = !0);
466
+ return Z(n, (m) => {
467
+ !m && !y && (p.emit("confirmDlgResult" + _, !1), y = !0);
466
468
  }), (m, x) => {
467
- const C = h("v-card-text"), S = h("v-btn"), R = h("v-card-actions"), f = h("v-card"), k = h("v-dialog");
469
+ const b = h("v-card-text"), S = h("v-btn"), R = h("v-card-actions"), f = h("v-card"), k = h("v-dialog");
468
470
  return D(), O(k, {
469
471
  modelValue: n.value,
470
472
  "onUpdate:modelValue": x[1] || (x[1] = (A) => n.value = A),
@@ -476,18 +478,18 @@ const Be = /* @__PURE__ */ T({
476
478
  ]
477
479
  }, {
478
480
  default: w(() => [
479
- b(f, { title: o.value }, {
481
+ C(f, { title: a.value }, {
480
482
  default: w(() => [
481
- b(C, null, {
483
+ C(b, null, {
482
484
  default: w(() => [
483
- E(q(r.value), 1)
485
+ E(q(l.value), 1)
484
486
  ]),
485
487
  _: 1
486
488
  }),
487
- b(R, { class: "d-flex justify-end" }, {
489
+ C(R, { class: "d-flex justify-end" }, {
488
490
  default: w(() => [
489
- b(S, {
490
- color: l.value,
491
+ C(S, {
492
+ color: r.value,
491
493
  variant: "text",
492
494
  onClick: x[0] || (x[0] = (A) => n.value = !1)
493
495
  }, {
@@ -496,13 +498,13 @@ const Be = /* @__PURE__ */ T({
496
498
  ]),
497
499
  _: 1
498
500
  }, 8, ["color"]),
499
- b(S, {
501
+ C(S, {
500
502
  color: u.value,
501
503
  variant: "text",
502
504
  onClick: M
503
505
  }, {
504
506
  default: w(() => [
505
- E(q(p.value), 1)
507
+ E(q(s.value), 1)
506
508
  ]),
507
509
  _: 1
508
510
  }, 8, ["color"])
@@ -538,23 +540,23 @@ const Be = /* @__PURE__ */ T({
538
540
  zIndex: { default: 1 }
539
541
  },
540
542
  setup(e) {
541
- const a = ee(), t = e, n = g(() => ({
542
- background: a.current.value.dark ? "#1e1e1e" : "#ffffff",
543
+ const o = P(), t = e, n = g(() => ({
544
+ background: o.current.value.dark ? "#1e1e1e" : "#ffffff",
543
545
  zIndex: t.zIndex
544
546
  }));
545
- return (o, r) => (D(), J("div", {
547
+ return (a, l) => (D(), Q("div", {
546
548
  class: "x-cont",
547
549
  style: ne(n.value)
548
550
  }, $e, 4));
549
551
  }
550
- }), te = (e, a) => {
552
+ }), te = (e, o) => {
551
553
  const t = e.__vccOpts || e;
552
- for (const [n, o] of a)
553
- t[n] = o;
554
+ for (const [n, a] of o)
555
+ t[n] = a;
554
556
  return t;
555
557
  }, ze = /* @__PURE__ */ te(He, [["__scopeId", "data-v-7ab74c70"]]);
556
- var Xe = "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", Fe = "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", Ke = "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", Ne = "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", Ze = "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";
557
- const Ge = /* @__PURE__ */ T({
558
+ var Xe = "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", Fe = "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", Ke = "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";
559
+ const Ne = /* @__PURE__ */ T({
558
560
  __name: "item",
559
561
  props: {
560
562
  id: {},
@@ -563,89 +565,89 @@ const Ge = /* @__PURE__ */ T({
563
565
  timeout: { default: 5e3 }
564
566
  },
565
567
  emits: ["timeout"],
566
- setup(e, { emit: a }) {
568
+ setup(e, { emit: o }) {
567
569
  const t = e, n = g(() => ({
568
570
  width: "calc(100% - 64px)",
569
571
  overflowWrap: "break-word"
570
- })), o = g(() => {
572
+ })), a = g(() => {
571
573
  switch (t.type) {
572
574
  case "success":
573
575
  return Fe;
574
576
  case "info":
575
- return Ze;
577
+ return Ge;
576
578
  case "error":
577
- return Ne;
579
+ return Ze;
578
580
  case "warning":
579
581
  return Xe;
580
582
  default:
581
583
  return "";
582
584
  }
583
- }), r = d(!0), l = a;
585
+ }), l = d(!0), r = o;
584
586
  return V(() => {
585
587
  setTimeout(() => {
586
- l("timeout", t.id);
588
+ r("timeout", t.id);
587
589
  }, t.timeout);
588
- }), N(r, (c) => {
589
- c || l("timeout", t.id);
590
+ }), Z(l, (c) => {
591
+ c || r("timeout", t.id);
590
592
  }), (c, u) => {
591
- const p = h("v-icon"), _ = h("v-sheet");
593
+ const s = h("v-icon"), _ = h("v-sheet");
592
594
  return D(), O(_, {
593
595
  class: "x-item d-flex align-center py-2 mb-2",
594
596
  color: t.type,
595
597
  elevation: 1
596
598
  }, {
597
599
  default: w(() => [
598
- o.value ? (D(), O(p, {
600
+ a.value ? (D(), O(s, {
599
601
  key: 0,
600
602
  class: "mx-1",
601
- icon: o.value
602
- }, null, 8, ["icon"])) : le("", !0),
603
+ icon: a.value
604
+ }, null, 8, ["icon"])) : re("", !0),
603
605
  v("div", {
604
606
  style: ne(n.value)
605
607
  }, q(t.text), 5),
606
- b(p, {
608
+ C(s, {
607
609
  class: "mx-1",
608
- icon: re(Ke),
609
- onClick: u[0] || (u[0] = (y) => l("timeout", t.id))
610
+ icon: le(Ke),
611
+ onClick: u[0] || (u[0] = (y) => r("timeout", t.id))
610
612
  }, null, 8, ["icon"])
611
613
  ]),
612
614
  _: 1
613
615
  }, 8, ["color"]);
614
616
  };
615
617
  }
616
- }), Qe = /* @__PURE__ */ te(Ge, [["__scopeId", "data-v-d5cfe252"]]), Je = /* @__PURE__ */ T({
618
+ }), Qe = /* @__PURE__ */ te(Ne, [["__scopeId", "data-v-d5cfe252"]]), Je = /* @__PURE__ */ T({
617
619
  __name: "index",
618
620
  setup(e) {
619
- const a = d([]);
621
+ const o = d([]);
620
622
  V(() => {
621
- s.on("message", t);
623
+ p.on("message", t);
622
624
  }), I(() => {
623
- s.off("message", t);
625
+ p.off("message", t);
624
626
  });
625
627
  const t = (c) => {
626
- r(c.type, c.text, c.timeout);
628
+ l(c.type, c.text, c.timeout);
627
629
  }, n = (c) => {
628
- l(c);
630
+ r(c);
629
631
  };
630
- let o = 0;
631
- const r = (c, u, p) => {
632
- const _ = o++;
633
- a.value.push({ id: _, type: c, text: u, timeout: p });
634
- }, l = (c) => {
635
- const u = a.value.findIndex((p) => p.id === c);
636
- u >= 0 && a.value.splice(u, 1);
632
+ let a = 0;
633
+ const l = (c, u, s) => {
634
+ const _ = a++;
635
+ o.value.push({ id: _, type: c, text: u, timeout: s });
636
+ }, r = (c) => {
637
+ const u = o.value.findIndex((s) => s.id === c);
638
+ u >= 0 && o.value.splice(u, 1);
637
639
  };
638
- return (c, u) => (D(), J("div", {
640
+ return (c, u) => (D(), Q("div", {
639
641
  class: "x-cont d-flex flex-column-reverse align-center",
640
642
  onClick: u[0] || (u[0] = W(() => {
641
643
  }, ["stop"]))
642
644
  }, [
643
- (D(!0), J(ve, null, me(a.value, (p) => (D(), O(Qe, {
644
- id: p.id,
645
- key: p.id,
646
- type: p.type,
647
- text: p.text,
648
- timeout: p.timeout,
645
+ (D(!0), Q(ve, null, me(o.value, (s) => (D(), O(Qe, {
646
+ id: s.id,
647
+ key: s.id,
648
+ type: s.type,
649
+ text: s.text,
650
+ timeout: s.timeout,
649
651
  onTimeout: n
650
652
  }, null, 8, ["id", "type", "text", "timeout"]))), 128))
651
653
  ]));
@@ -653,29 +655,29 @@ const Ge = /* @__PURE__ */ T({
653
655
  }), Ye = /* @__PURE__ */ te(Je, [["__scopeId", "data-v-d525e6f5"]]), Pe = /* @__PURE__ */ T({
654
656
  __name: "index",
655
657
  setup(e) {
656
- const { t: a } = P(), t = $(), n = g({
658
+ const { t: o } = Y(), t = $(), n = g({
657
659
  get() {
658
660
  return t.hasView("promptDlg");
659
661
  },
660
662
  set(f) {
661
663
  f ? t.addView("promptDlg") : t.delView("promptDlg");
662
664
  }
663
- }), o = d(""), r = d(""), l = d(""), c = d(""), u = d(), p = d(""), _ = d(""), y = d(""), i = d(""), M = d(""), m = d();
664
- let x = 0, C = !1;
665
+ }), a = d(""), l = d(""), r = d(""), c = d(""), u = d(), s = d(""), _ = d(""), y = d(""), i = d(""), M = d(""), m = d();
666
+ let x = 0, b = !1;
665
667
  const S = async (f) => {
666
668
  var k, A, H, z, B;
667
- 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", y.value = ((A = f.cancel) == null ? void 0 : A.text) ?? a("dlg.common.cancel"), i.value = ((H = f.confirm) == null ? void 0 : H.color) ?? "primary", M.value = ((z = f.confirm) == null ? void 0 : z.text) ?? a("dlg.common.confirm"), x = f.seq, C = !1, n.value = !0, await G(() => !!m.value, 1e3), (B = m.value) == null || B.focus();
669
+ a.value = f.title, l.value = f.text, r.value = f.label, c.value = f.placeholder, u.value = f.rules, s.value = f.value, _.value = ((k = f.cancel) == null ? void 0 : k.color) ?? "primary", y.value = ((A = f.cancel) == null ? void 0 : A.text) ?? o("dlg.common.cancel"), i.value = ((H = f.confirm) == null ? void 0 : H.color) ?? "primary", M.value = ((z = f.confirm) == null ? void 0 : z.text) ?? o("dlg.common.confirm"), x = f.seq, b = !1, n.value = !0, await ee(() => !!m.value, 1e3), (B = m.value) == null || B.focus();
668
670
  };
669
671
  V(() => {
670
- s.on("promptDlg", S);
672
+ p.on("promptDlg", S);
671
673
  }), I(() => {
672
- s.off("promptDlg", S);
674
+ p.off("promptDlg", S);
673
675
  });
674
676
  const R = () => {
675
- n.value = !1, C || (s.emit("promptDlgResult" + x, p.value ?? ""), C = !0);
677
+ n.value = !1, b || (p.emit("promptDlgResult" + x, s.value ?? ""), b = !0);
676
678
  };
677
- return N(n, (f) => {
678
- !f && !C && (s.emit("promptDlgResult" + x, void 0), C = !0);
679
+ return Z(n, (f) => {
680
+ !f && !b && (p.emit("promptDlgResult" + x, void 0), b = !0);
679
681
  }), (f, k) => {
680
682
  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");
681
683
  return D(), O(ie, {
@@ -689,31 +691,31 @@ const Ge = /* @__PURE__ */ T({
689
691
  ]
690
692
  }, {
691
693
  default: w(() => [
692
- b(_e, { title: o.value }, {
694
+ C(_e, { title: a.value }, {
693
695
  default: w(() => [
694
- r.value ? (D(), O(A, { key: 0 }, {
696
+ l.value ? (D(), O(A, { key: 0 }, {
695
697
  default: w(() => [
696
- E(q(r.value), 1)
698
+ E(q(l.value), 1)
697
699
  ]),
698
700
  _: 1
699
- })) : le("", !0),
700
- b(z, { class: "mx-3" }, {
701
+ })) : re("", !0),
702
+ C(z, { class: "mx-3" }, {
701
703
  default: w(() => [
702
- b(H, {
704
+ C(H, {
703
705
  ref_key: "target",
704
706
  ref: m,
705
- modelValue: p.value,
706
- "onUpdate:modelValue": k[0] || (k[0] = (U) => p.value = U),
707
- label: l.value,
707
+ modelValue: s.value,
708
+ "onUpdate:modelValue": k[0] || (k[0] = (U) => s.value = U),
709
+ label: r.value,
708
710
  placeholder: c.value,
709
711
  rules: u.value
710
712
  }, null, 8, ["modelValue", "label", "placeholder", "rules"])
711
713
  ]),
712
714
  _: 1
713
715
  }),
714
- b(de, { class: "d-flex justify-end" }, {
716
+ C(de, { class: "d-flex justify-end" }, {
715
717
  default: w(() => [
716
- b(B, {
718
+ C(B, {
717
719
  color: _.value,
718
720
  variant: "text",
719
721
  onClick: k[1] || (k[1] = (U) => n.value = !1)
@@ -723,7 +725,7 @@ const Ge = /* @__PURE__ */ T({
723
725
  ]),
724
726
  _: 1
725
727
  }, 8, ["color"]),
726
- b(B, {
728
+ C(B, {
727
729
  color: i.value,
728
730
  variant: "text",
729
731
  onClick: R
@@ -744,27 +746,27 @@ const Ge = /* @__PURE__ */ T({
744
746
  }, 8, ["modelValue", "onKeydown"]);
745
747
  };
746
748
  }
747
- }), 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({
749
+ }), et = { class: "mx-auto my-auto" }, tt = { class: "w-100 h-100 d-flex align-center justify-center" }, ot = { class: "text-body-1" }, at = /* @__PURE__ */ T({
748
750
  __name: "index",
749
751
  setup(e) {
750
- const { t: a } = P(), t = $(), n = g({
752
+ const { t: o } = Y(), t = $(), n = g({
751
753
  get() {
752
754
  return t.hasView("waitDlg");
753
755
  },
754
756
  set(c) {
755
757
  c ? t.addView("waitDlg") : t.delView("waitDlg");
756
758
  }
757
- }), o = d(""), r = (c) => {
758
- o.value = c.text ?? a("dlg.common.waiting"), n.value = !0;
759
- }, l = () => {
759
+ }), a = d(""), l = (c) => {
760
+ a.value = c.text ?? o("dlg.common.waiting"), n.value = !0;
761
+ }, r = () => {
760
762
  n.value = !1;
761
763
  };
762
764
  return V(() => {
763
- s.on("openWaitDlg", r), s.on("closeWaitDlg", l);
765
+ p.on("openWaitDlg", l), p.on("closeWaitDlg", r);
764
766
  }), I(() => {
765
- s.off("openWaitDlg", r), s.off("closeWaitDlg", l);
767
+ p.off("openWaitDlg", l), p.off("closeWaitDlg", r);
766
768
  }), (c, u) => {
767
- const p = h("v-card"), _ = h("v-dialog");
769
+ const s = h("v-card"), _ = h("v-dialog");
768
770
  return D(), O(_, {
769
771
  modelValue: n.value,
770
772
  "onUpdate:modelValue": u[0] || (u[0] = (y) => n.value = y),
@@ -774,14 +776,14 @@ const Ge = /* @__PURE__ */ T({
774
776
  }, {
775
777
  default: w(() => [
776
778
  v("div", et, [
777
- b(p, {
779
+ C(s, {
778
780
  width: "300px",
779
781
  height: "80px",
780
782
  loading: ""
781
783
  }, {
782
784
  default: w(() => [
783
785
  v("div", tt, [
784
- v("span", at, q(o.value), 1)
786
+ v("span", ot, q(a.value), 1)
785
787
  ])
786
788
  ]),
787
789
  _: 1
@@ -793,78 +795,78 @@ const Ge = /* @__PURE__ */ T({
793
795
  };
794
796
  }
795
797
  }), nt = (e) => {
796
- e.component("XConfirmDlg", Be), e.component("XLoading", ze), e.component("XMessage", Ye), e.component("XPromptDlg", Pe), e.component("XWaitDlg", ot);
798
+ e.component("XConfirmDlg", Be), e.component("XLoading", ze), e.component("XMessage", Ye), e.component("XPromptDlg", Pe), e.component("XWaitDlg", at);
797
799
  };
798
800
  function Rt() {
799
- const e = ee(), a = g(() => e.global.current.value.colors.primary), t = 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");
801
+ const e = P(), o = g(() => e.global.current.value.colors.primary), t = g(() => e.global.current.value.colors.secondary), n = g(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), a = g(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = g(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), r = g(() => e.current.value.dark ? "#303030" : "#f6f6f6"), c = g(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
800
802
  return {
801
- primaryColor: a,
803
+ primaryColor: o,
802
804
  secondaryColor: t,
803
805
  backgroundColor0: n,
804
- backgroundColor1: o,
805
- backgroundColor2: r,
806
- highlightColor: l,
806
+ backgroundColor1: a,
807
+ backgroundColor2: l,
808
+ highlightColor: r,
807
809
  borderColor: c
808
810
  };
809
811
  }
810
- function lt(e) {
812
+ function rt(e) {
811
813
  return he() ? (we(e), !0) : !1;
812
814
  }
813
- function rt(e) {
814
- return typeof e == "function" ? e() : re(e);
815
+ function lt(e) {
816
+ return typeof e == "function" ? e() : le(e);
815
817
  }
816
818
  const ct = typeof window < "u" && typeof document < "u";
817
819
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
818
820
  const ut = ct ? window : void 0;
819
- function st() {
820
- const e = d(!1), a = xe();
821
- return a && V(() => {
821
+ function pt() {
822
+ const e = d(!1), o = xe();
823
+ return o && V(() => {
822
824
  e.value = !0;
823
- }, a), e;
825
+ }, o), e;
824
826
  }
825
- function pt(e) {
826
- const a = st();
827
- return g(() => (a.value, !!e()));
827
+ function st(e) {
828
+ const o = pt();
829
+ return g(() => (o.value, !!e()));
828
830
  }
829
- function dt(e, a = {}) {
830
- const { window: t = ut } = a, n = pt(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
831
- let o;
832
- const r = d(!1), l = (p) => {
833
- r.value = p.matches;
831
+ function dt(e, o = {}) {
832
+ const { window: t = ut } = o, n = st(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
833
+ let a;
834
+ const l = d(!1), r = (s) => {
835
+ l.value = s.matches;
834
836
  }, c = () => {
835
- o && ("removeEventListener" in o ? o.removeEventListener("change", l) : o.removeListener(l));
837
+ a && ("removeEventListener" in a ? a.removeEventListener("change", r) : a.removeListener(r));
836
838
  }, u = ye(() => {
837
- n.value && (c(), o = t.matchMedia(rt(e)), "addEventListener" in o ? o.addEventListener("change", l) : o.addListener(l), r.value = o.matches);
839
+ n.value && (c(), a = t.matchMedia(lt(e)), "addEventListener" in a ? a.addEventListener("change", r) : a.addListener(r), l.value = a.matches);
838
840
  });
839
- return lt(() => {
840
- u(), c(), o = void 0;
841
- }), r;
841
+ return rt(() => {
842
+ u(), c(), a = void 0;
843
+ }), l;
842
844
  }
843
845
  function _t(e) {
844
846
  return dt("(prefers-color-scheme: dark)", e);
845
847
  }
846
848
  function it() {
847
- const e = Ce(), a = Z(), t = _t(), n = g(() => typeof a.dark == "boolean" ? a.dark : t.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");
848
- return { dark: n, sysBarAvail: o, compactWidth: r };
849
+ const e = be(), o = G(), t = _t(), n = g(() => typeof o.dark == "boolean" ? o.dark : t.value), a = g(() => !!window.cordova), l = g(() => e.width.value <= 1280 ? e.width.value + "px" : e.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
850
+ return { dark: n, sysBarAvail: a, compactWidth: l };
849
851
  }
850
852
  function It() {
851
- const e = be(), a = ue(), t = ee(), { dark: n } = it(), o = Z(), r = $();
852
- N(
853
+ const e = Ce(), o = ue(), t = P(), { dark: n } = it(), a = G(), l = $();
854
+ Z(
853
855
  n,
854
856
  (i) => {
855
857
  t.global.name.value = i ? "dark" : "light";
856
858
  },
857
859
  { immediate: !0 }
858
860
  );
859
- const l = (i) => {
861
+ const r = (i) => {
860
862
  if (i.key === "Escape") {
861
863
  c();
862
864
  return;
863
865
  }
864
866
  }, c = () => {
865
867
  var M;
866
- if (!r.isEmpty()) {
867
- r.hasView("waitDlg") || r.popView();
868
+ if (!l.isEmpty()) {
869
+ l.hasView("waitDlg") || l.popView();
868
870
  return;
869
871
  }
870
872
  const i = K(e.path);
@@ -873,61 +875,61 @@ function It() {
873
875
  },
874
876
  () => {
875
877
  }
876
- ) : a.back();
878
+ ) : o.back();
877
879
  };
878
880
  V(() => {
879
- window.addEventListener("keydown", l), s.on("backbutton", c);
881
+ window.addEventListener("keydown", r), p.on("backbutton", c);
880
882
  }), I(() => {
881
- window.removeEventListener("keydown", l), s.off("backbutton", c);
883
+ window.removeEventListener("keydown", r), p.off("backbutton", c);
882
884
  });
883
885
  const u = (i) => {
884
- o.dark = i;
885
- }, p = (i) => {
886
- o.locale = i;
886
+ a.dark = i;
887
+ }, s = (i) => {
888
+ a.locale = i;
887
889
  }, _ = (i) => {
888
- o.permissionObjects = i[0], o.permissionChecksum = i[1];
890
+ a.permissionObjects = i[0], a.permissionChecksum = i[1];
889
891
  }, y = (i) => {
890
- o.lastAppPath = i;
892
+ a.lastAppPath = i;
891
893
  };
892
894
  V(() => {
893
- s.on("updateDark", u), s.on("updateLocale", p), s.on("updatePermission", _), s.on("updateLastAppPath", y), s.emit("syncGlobalState");
895
+ p.on("updateDark", u), p.on("updateLocale", s), p.on("updatePermission", _), p.on("updateLastAppPath", y), p.emit("syncGlobalState");
894
896
  }), I(() => {
895
- s.off("updateDark", u), s.off("updateLocale", p), s.off("updatePermission", _), s.off("updateLastAppPath", y);
897
+ p.off("updateDark", u), p.off("updateLocale", s), p.off("updatePermission", _), p.off("updateLastAppPath", y);
896
898
  });
897
899
  }
898
900
  function Ot() {
899
- const e = Z();
900
- function a(t, n) {
901
- const o = e.permissionObjects[t];
902
- return o ? n ? !(!oe(o.includes, n) || oe(o.excludes, n)) : !0 : !1;
901
+ const e = G();
902
+ function o(t, n) {
903
+ const a = e.permissionObjects[t];
904
+ return a ? n ? !(!ae(a.includes, n) || ae(a.excludes, n)) : !0 : !1;
903
905
  }
904
- return { verifyPermission: a };
906
+ return { verifyPermission: o };
905
907
  }
906
- function Et(e, a) {
908
+ function Et(e, o) {
907
909
  const t = $(), n = g({
908
910
  get() {
909
911
  return t.hasView(e);
910
912
  },
911
- set(r) {
912
- r ? t.addView(e) : t.delView(e);
913
+ set(l) {
914
+ l ? t.addView(e) : t.delView(e);
913
915
  }
914
- }), o = (r) => {
915
- a == null || a(r), n.value = !0;
916
+ }), a = (l) => {
917
+ o == null || o(l), n.value = !0;
916
918
  };
917
919
  return V(() => {
918
- s.on(e, o);
920
+ p.on(e, a);
919
921
  }), I(() => {
920
- s.off(e, o);
922
+ p.off(e, a);
921
923
  }), { open: n };
922
924
  }
923
- const ft = (e, a, t) => {
924
- const n = e[a];
925
- return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((o, r) => {
925
+ const ft = (e, o, t) => {
926
+ const n = e[o];
927
+ return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((a, l) => {
926
928
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
927
- r.bind(
929
+ l.bind(
928
930
  null,
929
931
  new Error(
930
- "Unknown variable dynamic import: " + a + (a.split("/").length !== t ? ". Note that variables only represent file names one level deep." : "")
932
+ "Unknown variable dynamic import: " + o + (o.split("/").length !== t ? ". Note that variables only represent file names one level deep." : "")
931
933
  )
932
934
  )
933
935
  );
@@ -943,8 +945,8 @@ export {
943
945
  Lt as closeWaitDlg,
944
946
  xt as createAxios,
945
947
  Tt as default,
946
- s as eventBus,
947
- oe as isExist,
948
+ p as eventBus,
949
+ ae as isExist,
948
950
  jt as loadLocaleMessageEssential,
949
951
  K as matchRouteMeta,
950
952
  Vt as messageError,
@@ -952,17 +954,17 @@ export {
952
954
  St as messageSuccess,
953
955
  At as messageWarning,
954
956
  qt as onBeforeEach,
955
- bt as openConfirmDlg,
956
- Ct as openPromptDlg,
957
+ Ct as openConfirmDlg,
958
+ bt as openPromptDlg,
957
959
  Dt as openWaitDlg,
958
- Q as routeTransName,
960
+ N as routeTransName,
959
961
  Rt as useColor,
960
- Z as useGlobalStore,
962
+ G as useGlobalStore,
961
963
  It as useMicroApp,
962
964
  Ot as usePermission,
963
965
  it as useSystem,
964
966
  $ as useViewMgrStore,
965
967
  Et as useViewStack,
966
968
  kt as waitMs,
967
- G as waitUtil
969
+ ee as waitUtil
968
970
  };
@@ -2,4 +2,4 @@ import { Emitter, EventType } from 'mitt';
2
2
  export declare const eventBus: Emitter<Record<EventType, unknown>>;
3
3
  export declare function waitMs(ms: number): Promise<void>;
4
4
  export declare function waitUtil(conditionFunc: () => boolean, timeout?: number, interval?: number): Promise<boolean>;
5
- export declare function appAppear(name: string, forward: boolean): Promise<void>;
5
+ export declare function appAppear(name: string, forward: boolean): void;
@@ -16,12 +16,12 @@ export declare enum Permission {
16
16
  deploy_app_release = "deploy_app_release",
17
17
  open_app_layer = "open_app_layer",
18
18
  open_app = "open_app",
19
- list_calc_space = "list_calc_space",
20
- get_calc_space = "get_calc_space",
21
- create_calc_space = "create_calc_space",
22
- delete_calc_space = "delete_calc_space",
23
- update_calc_space = "update_calc_space",
24
- arrange_calc_space = "arrange_calc_space",
19
+ list_compute_space = "list_compute_space",
20
+ get_compute_space = "get_compute_space",
21
+ create_compute_space = "create_compute_space",
22
+ delete_compute_space = "delete_compute_space",
23
+ update_compute_space = "update_compute_space",
24
+ arrange_compute_space = "arrange_compute_space",
25
25
  list_func_group = "list_func_group",
26
26
  create_func_group = "create_func_group",
27
27
  delete_func_group = "delete_func_group",
@@ -61,13 +61,13 @@ export declare enum Permission {
61
61
  delete_task = "delete_task",
62
62
  update_task = "update_task",
63
63
  call_task = "call_task",
64
- open_calc_layer = "open_calc_layer",
65
- list_db_space = "list_db_space",
66
- get_db_space = "get_db_space",
67
- create_db_space = "create_db_space",
68
- delete_db_space = "delete_db_space",
69
- update_db_space = "update_db_space",
70
- arrange_db_space = "arrange_db_space",
64
+ open_compute_layer = "open_compute_layer",
65
+ list_data_space = "list_data_space",
66
+ get_data_space = "get_data_space",
67
+ create_data_space = "create_data_space",
68
+ delete_data_space = "delete_data_space",
69
+ update_data_space = "update_data_space",
70
+ arrange_data_space = "arrange_data_space",
71
71
  list_model_group = "list_model_group",
72
72
  create_model_group = "create_model_group",
73
73
  delete_model_group = "delete_model_group",
@@ -87,24 +87,24 @@ export declare enum Permission {
87
87
  list_change = "list_change",
88
88
  apply_change = "apply_change",
89
89
  open_data_layer = "open_data_layer",
90
- list_asset_space = "list_asset_space",
91
- get_asset_space = "get_asset_space",
92
- create_asset_space = "create_asset_space",
93
- delete_asset_space = "delete_asset_space",
94
- update_asset_space = "update_asset_space",
95
- arrange_asset_space = "arrange_asset_space",
90
+ list_resource_space = "list_resource_space",
91
+ get_resource_space = "get_resource_space",
92
+ create_resource_space = "create_resource_space",
93
+ delete_resource_space = "delete_resource_space",
94
+ update_resource_space = "update_resource_space",
95
+ arrange_resource_space = "arrange_resource_space",
96
96
  list_dir = "list_dir",
97
97
  create_dir = "create_dir",
98
98
  delete_dir = "delete_dir",
99
99
  update_dir = "update_dir",
100
100
  move_dir = "move_dir",
101
- list_asset = "list_asset",
102
- get_asset = "get_asset",
103
- create_asset = "create_asset",
104
- delete_asset = "delete_asset",
105
- update_asset = "update_asset",
106
- move_asset = "move_asset",
107
- open_asset_layer = "open_asset_layer",
101
+ list_resource = "list_resource",
102
+ get_resource = "get_resource",
103
+ create_resource = "create_resource",
104
+ delete_resource = "delete_resource",
105
+ update_resource = "update_resource",
106
+ move_resource = "move_resource",
107
+ open_resource_layer = "open_resource_layer",
108
108
  list_org_member = "list_org_member",
109
109
  add_org_member = "add_org_member",
110
110
  remove_org_member = "remove_org_member",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
3
  "private": false,
4
- "version": "0.6.4",
4
+ "version": "0.6.6",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",