x-essential-lib 0.6.1 → 0.6.3

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