x-essential-lib 0.7.11 → 0.7.13

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,5 +1,5 @@
1
1
  interface Props {
2
2
  zIndex?: number;
3
3
  }
4
- declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
5
5
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
2
2
  export default _default;
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.id="x-essential-lib",t.appendChild(document.createTextNode('.x-cont[data-v-44b1d3e4]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-44b1d3e4]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-44b1d3e4]{transform-origin:20px 20px;animation:lds-spinner-44b1d3e4 1.2s linear infinite}.lds-spinner div[data-v-44b1d3e4]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-44b1d3e4]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-44b1d3e4]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-44b1d3e4]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-44b1d3e4]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-44b1d3e4]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-44b1d3e4]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-44b1d3e4]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-44b1d3e4]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-44b1d3e4]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-44b1d3e4]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-44b1d3e4]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-44b1d3e4]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-44b1d3e4{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-8fd5d800]{position:absolute;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(t)}}catch(d){console.error("vite-plugin-css-injected-by-js",d)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.id="x-essential-lib",e.appendChild(document.createTextNode('.x-cont[data-v-ee4ce2cf]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-ee4ce2cf]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-ee4ce2cf]{transform-origin:20px 20px;animation:lds-spinner-ee4ce2cf 1.2s linear infinite}.lds-spinner div[data-v-ee4ce2cf]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-ee4ce2cf]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-ee4ce2cf]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-ee4ce2cf{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-8fd5d800]{position:absolute;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
2
  import { computed as y, provide as O, inject as I, ref as f, getCurrentScope as xe, onScopeDispose as be, unref as H, watchEffect as ke, getCurrentInstance as Ce, onMounted as T, watch as N, onBeforeUnmount as W, onBeforeMount as Le, defineComponent as E, resolveComponent as h, openBlock as C, createBlock as q, isRef as Y, withKeys as F, withModifiers as $, withCtx as w, createVNode as b, createTextVNode as V, toDisplayString as R, createElementBlock as Q, normalizeStyle as re, createElementVNode as m, createCommentVNode as le, Fragment as De, renderList as Me, useTemplateRef as Se } from "vue";
3
3
  import { useI18n as P } from "vue-i18n";
4
4
  import { useTheme as ce, useDisplay as je } from "vuetify";
5
5
  import { useRouter as ue, useRoute as Re } from "vue-router";
6
6
  import qe from "axios";
7
- function Tt() {
7
+ function Ve() {
8
8
  const e = ce(), t = y(() => e.global.current.value.colors.primary), a = y(() => e.global.current.value.colors.secondary), o = y(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), n = y(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = y(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), c = y(() => e.current.value.dark ? "#303030" : "#f6f6f6"), r = y(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
9
9
  return {
10
10
  primaryColor: t,
@@ -25,7 +25,7 @@ function X(e) {
25
25
  }
26
26
  return e;
27
27
  }
28
- var Ve = {
28
+ var Ae = {
29
29
  read: function(e) {
30
30
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
31
31
  },
@@ -86,43 +86,43 @@ function J(e, t) {
86
86
  }
87
87
  );
88
88
  }
89
- var A = J(Ve, { path: "/" });
89
+ var A = J(Ae, { path: "/" });
90
90
  function Et(e) {
91
91
  const t = qe.create({
92
92
  timeout: 6e3
93
93
  });
94
94
  return t.defaults.baseURL = e.baseUrl, t.interceptors.request.use(
95
- (a) => Ae(a),
95
+ (a) => Oe(a),
96
96
  (a) => {
97
- Oe(a, e.onError);
97
+ Ie(a, e.onError);
98
98
  }
99
99
  ), t.interceptors.response.use(
100
- (a) => Ie(a),
101
- (a) => Te(a, e.onError)
100
+ (a) => Te(a),
101
+ (a) => Ee(a, e.onError)
102
102
  ), t;
103
103
  }
104
- function Ae(e) {
104
+ function Oe(e) {
105
105
  const t = A.get("accessToken") ?? "";
106
106
  return e.headers.Authorization = "Basic " + t, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
107
107
  }
108
- function Oe(e, t) {
108
+ function Ie(e, t) {
109
109
  console.error(e), t("request timeout");
110
110
  }
111
- function Ie(e) {
111
+ function Te(e) {
112
112
  return e.data;
113
113
  }
114
- function Te(e, t) {
114
+ function Ee(e, t) {
115
115
  var n, l;
116
116
  const o = e.response;
117
- return o && (o.status === 401 && Ee(), (n = o.data) != null && n.message ? t((l = o.data) == null ? void 0 : l.message) : t({
117
+ return o && (o.status === 401 && Be(), (n = o.data) != null && n.message ? t((l = o.data) == null ? void 0 : l.message) : t({
118
118
  code: o.status,
119
119
  message: o.statusText
120
120
  })), Promise.reject(e);
121
121
  }
122
- function Ee() {
122
+ function Be() {
123
123
  A.remove("accessToken"), A.remove("refreshToken"), A.remove("activeOrg"), ue().replace({ path: "/passport/login" });
124
124
  }
125
- function Be(e) {
125
+ function Ue(e) {
126
126
  return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, a) {
127
127
  var o = e.get(t);
128
128
  o ? o.push(a) : e.set(t, [a]);
@@ -139,7 +139,7 @@ function Be(e) {
139
139
  } };
140
140
  }
141
141
  const s = function() {
142
- return window.eventBus || (window.eventBus = Be()), window.eventBus;
142
+ return window.eventBus || (window.eventBus = Ue()), window.eventBus;
143
143
  }();
144
144
  async function Bt(e) {
145
145
  return new Promise((t) => {
@@ -155,7 +155,7 @@ async function ee(e, t, a) {
155
155
  l();
156
156
  });
157
157
  }
158
- function Ue(e, t) {
158
+ function We(e, t) {
159
159
  const a = document.getElementById("single-spa-application:" + e);
160
160
  a && (a.classList.remove("app-left", "app-right", "app-reset"), t ? a.classList.add("app-left") : a.classList.add("app-right"), setTimeout(() => {
161
161
  a.classList.add("app-reset");
@@ -166,9 +166,9 @@ function se() {
166
166
  const e = Date.now();
167
167
  return e - oe > 500 ? (oe = e, !0) : !1;
168
168
  }
169
- let We = 0;
169
+ let $e = 0;
170
170
  function pe() {
171
- return ++We;
171
+ return ++$e;
172
172
  }
173
173
  async function Ut(e) {
174
174
  if (!se())
@@ -206,7 +206,7 @@ function Xt(e, t) {
206
206
  function Ft(e, t) {
207
207
  s.emit("message", { type: "warning", text: e, timeout: t });
208
208
  }
209
- var $e = /* @__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_table_group = "list_table_group", e.create_table_group = "create_table_group", e.delete_table_group = "delete_table_group", e.update_table_group = "update_table_group", e.arrange_table_group = "arrange_table_group", e.list_table = "list_table", e.get_table = "get_table", e.create_table = "create_table", e.delete_table = "delete_table", e.update_table = "update_table", e.get_data = "get_data", e.create_data = "create_data", e.delete_data = "delete_data", e.update_data = "update_data", e.get_relation_graph = "get_relation_graph", e.update_relation_graph = "update_relation_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_resource_space = "list_resource_space", e.get_resource_space = "get_resource_space", e.create_resource_space = "create_resource_space", e.delete_resource_space = "delete_resource_space", e.update_resource_space = "update_resource_space", e.arrange_resource_space = "arrange_resource_space", e.list_dir = "list_dir", e.create_dir = "create_dir", e.delete_dir = "delete_dir", e.update_dir = "update_dir", e.move_dir = "move_dir", e.list_resource = "list_resource", e.get_resource = "get_resource", e.create_resource = "create_resource", e.delete_resource = "delete_resource", e.update_resource = "update_resource", e.move_resource = "move_resource", e.open_resource_layer = "open_resource_layer", e.list_org_member = "list_org_member", e.add_org_member = "add_org_member", e.remove_org_member = "remove_org_member", e.update_org_member = "update_org_member", e.list_org_role = "list_org_role", e.get_org_role = "get_org_role", e.create_org_role = "create_org_role", e.delete_org_role = "delete_org_role", e.update_org_role = "update_org_role", e.arrange_org_role = "arrange_org_role", e.get_org_structure = "get_org_structure", e.update_org_structure = "update_org_structure", e.filter_table = "filter_table", e))($e || {});
209
+ var He = /* @__PURE__ */ ((e) => (e.list_app_group = "list_app_group", e.create_app_group = "create_app_group", e.delete_app_group = "delete_app_group", e.update_app_group = "update_app_group", e.arrange_app_group = "arrange_app_group", e.list_app = "list_app", e.get_app = "get_app", e.create_app = "create_app", e.delete_app = "delete_app", e.update_app = "update_app", e.list_app_release = "list_app_release", e.get_app_release = "get_app_release", e.create_app_release = "create_app_release", e.delete_app_release = "delete_app_release", e.deploy_app_release = "deploy_app_release", e.open_app_layer = "open_app_layer", e.open_app = "open_app", e.list_compute_space = "list_compute_space", e.get_compute_space = "get_compute_space", e.create_compute_space = "create_compute_space", e.delete_compute_space = "delete_compute_space", e.update_compute_space = "update_compute_space", e.arrange_compute_space = "arrange_compute_space", e.list_func_group = "list_func_group", e.create_func_group = "create_func_group", e.delete_func_group = "delete_func_group", e.update_func_group = "update_func_group", e.arrange_func_group = "arrange_func_group", e.list_func = "list_func", e.get_func = "get_func", e.create_func = "create_func", e.delete_func = "delete_func", e.update_func = "update_func", e.debug_func = "debug_func", e.call_func = "call_func", e.list_func_release = "list_func_release", e.get_func_release = "get_func_release", e.create_func_release = "create_func_release", e.delete_func_release = "delete_func_release", e.deploy_func_release = "deploy_func_release", e.list_flow_group = "list_flow_group", e.create_flow_group = "create_flow_group", e.delete_flow_group = "delete_flow_group", e.update_flow_group = "update_flow_group", e.arrange_flow_group = "arrange_flow_group", e.list_flow = "list_flow", e.get_flow = "get_flow", e.create_flow = "create_flow", e.delete_flow = "delete_flow", e.update_flow = "update_flow", e.debug_flow = "debug_flow", e.call_flow = "call_flow", e.list_flow_release = "list_flow_release", e.get_flow_release = "get_flow_release", e.create_flow_release = "create_flow_release", e.delete_flow_release = "delete_flow_release", e.deploy_flow_release = "deploy_flow_release", e.list_task = "list_task", e.get_task = "get_task", e.create_task = "create_task", e.delete_task = "delete_task", e.update_task = "update_task", e.call_task = "call_task", e.open_compute_layer = "open_compute_layer", e.list_data_space = "list_data_space", e.get_data_space = "get_data_space", e.create_data_space = "create_data_space", e.delete_data_space = "delete_data_space", e.update_data_space = "update_data_space", e.arrange_data_space = "arrange_data_space", e.list_table_group = "list_table_group", e.create_table_group = "create_table_group", e.delete_table_group = "delete_table_group", e.update_table_group = "update_table_group", e.arrange_table_group = "arrange_table_group", e.list_table = "list_table", e.get_table = "get_table", e.create_table = "create_table", e.delete_table = "delete_table", e.update_table = "update_table", e.get_data = "get_data", e.create_data = "create_data", e.delete_data = "delete_data", e.update_data = "update_data", e.get_relation_graph = "get_relation_graph", e.update_relation_graph = "update_relation_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_resource_space = "list_resource_space", e.get_resource_space = "get_resource_space", e.create_resource_space = "create_resource_space", e.delete_resource_space = "delete_resource_space", e.update_resource_space = "update_resource_space", e.arrange_resource_space = "arrange_resource_space", e.list_dir = "list_dir", e.create_dir = "create_dir", e.delete_dir = "delete_dir", e.update_dir = "update_dir", e.move_dir = "move_dir", e.list_resource = "list_resource", e.get_resource = "get_resource", e.create_resource = "create_resource", e.delete_resource = "delete_resource", e.update_resource = "update_resource", e.move_resource = "move_resource", e.open_resource_layer = "open_resource_layer", e.list_org_member = "list_org_member", e.add_org_member = "add_org_member", e.remove_org_member = "remove_org_member", e.update_org_member = "update_org_member", e.list_org_role = "list_org_role", e.get_org_role = "get_org_role", e.create_org_role = "create_org_role", e.delete_org_role = "delete_org_role", e.update_org_role = "update_org_role", e.arrange_org_role = "arrange_org_role", e.get_org_structure = "get_org_structure", e.update_org_structure = "update_org_structure", e.filter_table = "filter_table", e))(He || {});
210
210
  function ne(e, t) {
211
211
  if (!e)
212
212
  return !1;
@@ -220,48 +220,48 @@ function ne(e, t) {
220
220
  return !1;
221
221
  }), Object.keys(a).length <= 0);
222
222
  }
223
- function He(e, t, a) {
223
+ function Ke(e, t, a) {
224
224
  const o = e[t];
225
225
  return o ? a ? !(!ne(o.includes, a) || ne(o.excludes, a)) : !0 : !1;
226
226
  }
227
227
  const _e = "essentialDark", ie = "essentialLocale", de = "essentialPermissionObjects", fe = "essentialPermissionChecksum", ge = "essentialLastAppPath", ve = "essentialViews";
228
- function Ke(e) {
228
+ function ze(e) {
229
229
  O(_e, e);
230
230
  }
231
231
  function Zt() {
232
232
  return I(_e);
233
233
  }
234
- function ze(e) {
234
+ function Xe(e) {
235
235
  O(ie, e);
236
236
  }
237
237
  function Nt() {
238
238
  return I(ie);
239
239
  }
240
- function Xe(e) {
240
+ function Fe(e) {
241
241
  O(de, e);
242
242
  }
243
- function Fe() {
243
+ function Ze() {
244
244
  return I(de);
245
245
  }
246
- function Ze(e) {
246
+ function Ne(e) {
247
247
  O(fe, e);
248
248
  }
249
249
  function Gt() {
250
250
  return I(fe);
251
251
  }
252
- function Ne(e) {
252
+ function Ge(e) {
253
253
  O(ge, e);
254
254
  }
255
255
  function Qt() {
256
256
  return I(ge);
257
257
  }
258
- function Ge(e) {
258
+ function Qe(e) {
259
259
  O(ve, e);
260
260
  }
261
- function Qe() {
261
+ function Je() {
262
262
  return I(ve);
263
263
  }
264
- const Je = [
264
+ const Ye = [
265
265
  {
266
266
  app: "x-passport-mf",
267
267
  path: "/passport/login",
@@ -372,7 +372,7 @@ const Je = [
372
372
  function Z(e) {
373
373
  let t, a = 0;
374
374
  const o = e.split("/").filter((n) => n.trim() !== "");
375
- return Je.forEach((n) => {
375
+ return Ye.forEach((n) => {
376
376
  const l = n.path.split("/").filter((r) => r.trim() !== "");
377
377
  let c = 0;
378
378
  for (let r = 0; r < o.length && !(r >= l.length || o[r] !== l[r]); r++)
@@ -391,16 +391,16 @@ function S(e, t, a) {
391
391
  if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !n)
392
392
  return;
393
393
  const l = o.app === n.app, c = o.path === n.path, r = o.level >= n.level;
394
- l ? c ? G.value = "" : G.value = r ? "inner-left" : "inner-right" : (G.value = "", Ue(o.app, r));
394
+ l ? c ? G.value = "" : G.value = r ? "inner-left" : "inner-right" : (G.value = "", We(o.app, r));
395
395
  }
396
- function Ye() {
396
+ function Pe() {
397
397
  return !!A.get("accessToken");
398
398
  }
399
- function Pe() {
399
+ function et() {
400
400
  return !!A.get("activeOrg");
401
401
  }
402
402
  function Jt(e, t, a, o) {
403
- const n = Ye(), l = Pe(), c = Z(e.path);
403
+ const n = Pe(), l = et(), c = Z(e.path);
404
404
  if (!c) {
405
405
  console.assert(!1), a();
406
406
  return;
@@ -439,7 +439,7 @@ function Jt(e, t, a, o) {
439
439
  else
440
440
  S(e.path, t.path, o), a();
441
441
  }
442
- function et(e) {
442
+ function tt(e) {
443
443
  return e.value.length <= 0;
444
444
  }
445
445
  function Yt(e) {
@@ -448,60 +448,60 @@ function Yt(e) {
448
448
  function me(e, t) {
449
449
  return !!e.value.find((a) => a === t);
450
450
  }
451
- function tt(e, t) {
451
+ function at(e, t) {
452
452
  const a = e.value.findIndex((o) => o === t);
453
453
  a >= 0 && e.value.splice(a, 1), e.value.push(t);
454
454
  }
455
- function at(e, t) {
455
+ function ot(e, t) {
456
456
  const a = e.value.findIndex((o) => o === t);
457
457
  a >= 0 && e.value.splice(a, 1);
458
458
  }
459
- function ot(e) {
459
+ function nt(e) {
460
460
  console.assert(e.value.length > 0), e.value.pop();
461
461
  }
462
462
  function Pt(e) {
463
463
  e.value = [];
464
464
  }
465
- function nt(e) {
465
+ function rt(e) {
466
466
  return xe() ? (be(e), !0) : !1;
467
467
  }
468
- function rt(e) {
468
+ function lt(e) {
469
469
  return typeof e == "function" ? e() : H(e);
470
470
  }
471
- const lt = typeof window < "u" && typeof document < "u";
471
+ const ct = typeof window < "u" && typeof document < "u";
472
472
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
473
- const ct = lt ? window : void 0;
474
- function ut() {
473
+ const ut = ct ? window : void 0;
474
+ function st() {
475
475
  const e = f(!1), t = Ce();
476
476
  return t && T(() => {
477
477
  e.value = !0;
478
478
  }, t), e;
479
479
  }
480
- function st(e) {
481
- const t = ut();
480
+ function pt(e) {
481
+ const t = st();
482
482
  return y(() => (t.value, !!e()));
483
483
  }
484
- function pt(e, t = {}) {
485
- const { window: a = ct } = t, o = st(() => a && "matchMedia" in a && typeof a.matchMedia == "function");
484
+ function _t(e, t = {}) {
485
+ const { window: a = ut } = t, o = pt(() => a && "matchMedia" in a && typeof a.matchMedia == "function");
486
486
  let n;
487
487
  const l = f(!1), c = (_) => {
488
488
  l.value = _.matches;
489
489
  }, r = () => {
490
490
  n && ("removeEventListener" in n ? n.removeEventListener("change", c) : n.removeListener(c));
491
491
  }, u = ke(() => {
492
- o.value && (r(), n = a.matchMedia(rt(e)), "addEventListener" in n ? n.addEventListener("change", c) : n.addListener(c), l.value = n.matches);
492
+ o.value && (r(), n = a.matchMedia(lt(e)), "addEventListener" in n ? n.addEventListener("change", c) : n.addListener(c), l.value = n.matches);
493
493
  });
494
- return nt(() => {
494
+ return rt(() => {
495
495
  u(), r(), n = void 0;
496
496
  }), l;
497
497
  }
498
- function _t(e) {
499
- return pt("(prefers-color-scheme: dark)", e);
498
+ function it(e) {
499
+ return _t("(prefers-color-scheme: dark)", e);
500
500
  }
501
501
  function ea(e, t, a, o, n, l) {
502
502
  const c = Re(), r = ue();
503
- Ke(e), ze(t), Xe(a), Ze(o), Ne(n), Ge(l);
504
- const u = ce(), _ = _t();
503
+ ze(e), Xe(t), Fe(a), Ne(o), Ge(n), Qe(l);
504
+ const u = ce(), _ = it();
505
505
  N(
506
506
  e,
507
507
  () => {
@@ -517,8 +517,8 @@ function ea(e, t, a, o, n, l) {
517
517
  }
518
518
  }, v = () => {
519
519
  var x;
520
- if (!et(l)) {
521
- me(l, "waitDlg") || ot(l);
520
+ if (!tt(l)) {
521
+ me(l, "waitDlg") || nt(l);
522
522
  return;
523
523
  }
524
524
  const p = Z(c.path);
@@ -551,9 +551,9 @@ function ea(e, t, a, o, n, l) {
551
551
  });
552
552
  }
553
553
  function ta() {
554
- const e = Fe();
554
+ const e = Ze();
555
555
  function t(a, o) {
556
- return He(
556
+ return Ke(
557
557
  e.value,
558
558
  a,
559
559
  o
@@ -566,12 +566,12 @@ function aa() {
566
566
  return { sysBarAvail: e, compactWidth: a };
567
567
  }
568
568
  function te(e, t) {
569
- const a = Qe(), o = y({
569
+ const a = Je(), o = y({
570
570
  get() {
571
571
  return me(a, e);
572
572
  },
573
573
  set(l) {
574
- l ? tt(a, e) : at(a, e);
574
+ l ? at(a, e) : ot(a, e);
575
575
  }
576
576
  }), n = (l) => {
577
577
  t == null || t(l), o.value = !0;
@@ -582,7 +582,7 @@ function te(e, t) {
582
582
  s.off(e, n);
583
583
  }), { open: o };
584
584
  }
585
- const it = /* @__PURE__ */ E({
585
+ const dt = /* @__PURE__ */ E({
586
586
  __name: "index",
587
587
  setup(e) {
588
588
  const { t } = P(), a = f(""), o = f(""), n = f(""), l = f(""), c = f(""), r = f("");
@@ -650,19 +650,20 @@ const it = /* @__PURE__ */ E({
650
650
  }, 8, ["modelValue", "onKeydown"]);
651
651
  };
652
652
  }
653
- }), dt = /* @__PURE__ */ E({
653
+ }), ft = /* @__PURE__ */ E({
654
654
  __name: "index",
655
655
  props: {
656
656
  zIndex: { default: 1 }
657
657
  },
658
658
  setup(e) {
659
- const t = y(() => ({
659
+ const { backgroundColor2: t } = Ve(), a = y(() => ({
660
+ background: t.value,
660
661
  zIndex: e.zIndex
661
662
  }));
662
- return (a, o) => (C(), Q("div", {
663
+ return (o, n) => (C(), Q("div", {
663
664
  class: "x-cont",
664
- style: re(t.value)
665
- }, o[0] || (o[0] = [
665
+ style: re(a.value)
666
+ }, n[0] || (n[0] = [
666
667
  m("div", { class: "lds-spinner" }, [
667
668
  m("div"),
668
669
  m("div"),
@@ -684,9 +685,9 @@ const it = /* @__PURE__ */ E({
684
685
  for (const [o, n] of t)
685
686
  a[o] = n;
686
687
  return a;
687
- }, ft = /* @__PURE__ */ ae(dt, [["__scopeId", "data-v-44b1d3e4"]]);
688
- var gt = "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", vt = "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", mt = "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", ht = "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", wt = "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";
689
- const yt = /* @__PURE__ */ E({
688
+ }, gt = /* @__PURE__ */ ae(ft, [["__scopeId", "data-v-ee4ce2cf"]]);
689
+ var vt = "M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z", mt = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z", ht = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", wt = "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z", yt = "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z";
690
+ const xt = /* @__PURE__ */ E({
690
691
  __name: "item",
691
692
  props: {
692
693
  id: {},
@@ -702,13 +703,13 @@ const yt = /* @__PURE__ */ E({
702
703
  })), n = y(() => {
703
704
  switch (a.type) {
704
705
  case "success":
705
- return vt;
706
+ return mt;
706
707
  case "info":
707
- return wt;
708
+ return yt;
708
709
  case "error":
709
- return ht;
710
+ return wt;
710
711
  case "warning":
711
- return gt;
712
+ return vt;
712
713
  default:
713
714
  return "";
714
715
  }
@@ -737,7 +738,7 @@ const yt = /* @__PURE__ */ E({
737
738
  }, R(a.text), 5),
738
739
  b(_, {
739
740
  class: "mx-1",
740
- icon: H(mt),
741
+ icon: H(ht),
741
742
  onClick: u[0] || (u[0] = (v) => c("timeout", a.id))
742
743
  }, null, 8, ["icon"])
743
744
  ]),
@@ -745,7 +746,7 @@ const yt = /* @__PURE__ */ E({
745
746
  }, 8, ["color"]);
746
747
  };
747
748
  }
748
- }), xt = /* @__PURE__ */ ae(yt, [["__scopeId", "data-v-d5cfe252"]]), bt = /* @__PURE__ */ E({
749
+ }), bt = /* @__PURE__ */ ae(xt, [["__scopeId", "data-v-d5cfe252"]]), kt = /* @__PURE__ */ E({
749
750
  __name: "index",
750
751
  setup(e) {
751
752
  const t = f([]);
@@ -773,7 +774,7 @@ const yt = /* @__PURE__ */ E({
773
774
  onClick: u[0] || (u[0] = $(() => {
774
775
  }, ["stop"]))
775
776
  }, [
776
- (C(!0), Q(De, null, Me(t.value, (_) => (C(), q(xt, {
777
+ (C(!0), Q(De, null, Me(t.value, (_) => (C(), q(bt, {
777
778
  id: _.id,
778
779
  key: _.id,
779
780
  type: _.type,
@@ -783,7 +784,7 @@ const yt = /* @__PURE__ */ E({
783
784
  }, null, 8, ["id", "type", "text", "timeout"]))), 128))
784
785
  ]));
785
786
  }
786
- }), kt = /* @__PURE__ */ ae(bt, [["__scopeId", "data-v-8fd5d800"]]), Ct = /* @__PURE__ */ E({
787
+ }), Ct = /* @__PURE__ */ ae(kt, [["__scopeId", "data-v-8fd5d800"]]), Lt = /* @__PURE__ */ E({
787
788
  __name: "index",
788
789
  setup(e) {
789
790
  const { t } = P(), a = f(""), o = f(""), n = f(""), l = f(""), c = f(), r = f(""), u = f(""), _ = f(""), g = f(""), v = f(""), L = Se("target");
@@ -865,7 +866,7 @@ const yt = /* @__PURE__ */ E({
865
866
  }, 8, ["modelValue", "onKeydown"]);
866
867
  };
867
868
  }
868
- }), Lt = { class: "mx-auto my-auto" }, Dt = { class: "w-100 h-100 d-flex align-center justify-center" }, Mt = { class: "text-body-1" }, St = /* @__PURE__ */ E({
869
+ }), Dt = { class: "mx-auto my-auto" }, Mt = { class: "w-100 h-100 d-flex align-center justify-center" }, St = { class: "text-body-1" }, jt = /* @__PURE__ */ E({
869
870
  __name: "index",
870
871
  setup(e) {
871
872
  const { t } = P(), a = f(""), o = (c) => {
@@ -888,15 +889,15 @@ const yt = /* @__PURE__ */ E({
888
889
  fullscreen: ""
889
890
  }, {
890
891
  default: w(() => [
891
- m("div", Lt, [
892
+ m("div", Dt, [
892
893
  b(u, {
893
894
  width: "300px",
894
895
  height: "80px",
895
896
  loading: ""
896
897
  }, {
897
898
  default: w(() => [
898
- m("div", Dt, [
899
- m("span", Mt, R(a.value), 1)
899
+ m("div", Mt, [
900
+ m("span", St, R(a.value), 1)
900
901
  ])
901
902
  ]),
902
903
  _: 1
@@ -907,9 +908,9 @@ const yt = /* @__PURE__ */ E({
907
908
  }, 8, ["modelValue"]);
908
909
  };
909
910
  }
910
- }), jt = (e) => {
911
- e.component("XConfirmDlg", it), e.component("XLoading", ft), e.component("XMessage", kt), e.component("XPromptDlg", Ct), e.component("XWaitDlg", St);
912
- }, Rt = (e, t, a) => {
911
+ }), Rt = (e) => {
912
+ e.component("XConfirmDlg", dt), e.component("XLoading", gt), e.component("XMessage", Ct), e.component("XPromptDlg", Lt), e.component("XWaitDlg", jt);
913
+ }, qt = (e, t, a) => {
913
914
  const o = e[t];
914
915
  return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((n, l) => {
915
916
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
@@ -923,27 +924,27 @@ const yt = /* @__PURE__ */ E({
923
924
  });
924
925
  };
925
926
  async function oa(e) {
926
- return (await Rt(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-iuzmkt0n.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-m6y1by9n.js") }), `./locales/${e}/index.ts`, 4)).default;
927
+ return (await qt(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-iuzmkt0n.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-m6y1by9n.js") }), `./locales/${e}/index.ts`, 4)).default;
927
928
  }
928
- const na = { install: jt };
929
+ const na = { install: Rt };
929
930
  export {
930
- $e as Permission,
931
- tt as addView,
932
- Ue as appAppear,
931
+ He as Permission,
932
+ at as addView,
933
+ We as appAppear,
933
934
  Pt as clearViews,
934
935
  Ht as closeWaitDlg,
935
936
  Et as createAxios,
936
937
  na as default,
937
- at as delView,
938
+ ot as delView,
938
939
  s as eventBus,
939
940
  me as hasView,
940
941
  Zt as injectDark,
941
942
  Qt as injectLastAppPath,
942
943
  Nt as injectLocale,
943
944
  Gt as injectPermissionChecksum,
944
- Fe as injectPermissionObjects,
945
- Qe as injectViews,
946
- et as isEmpty,
945
+ Ze as injectPermissionObjects,
946
+ Je as injectViews,
947
+ tt as isEmpty,
947
948
  ne as isExist,
948
949
  Yt as lastView,
949
950
  oa as loadLocaleMessageEssential,
@@ -956,20 +957,20 @@ export {
956
957
  Ut as openConfirmDlg,
957
958
  Wt as openPromptDlg,
958
959
  $t as openWaitDlg,
959
- ot as popView,
960
- Ke as provideDark,
961
- Ne as provideLastAppPath,
962
- ze as provideLocale,
963
- Ze as providePermissionChecksum,
964
- Xe as providePermissionObjects,
965
- Ge as provideViews,
960
+ nt as popView,
961
+ ze as provideDark,
962
+ Ge as provideLastAppPath,
963
+ Xe as provideLocale,
964
+ Ne as providePermissionChecksum,
965
+ Fe as providePermissionObjects,
966
+ Qe as provideViews,
966
967
  G as routeTransName,
967
- Tt as useColor,
968
+ Ve as useColor,
968
969
  ea as useMicroApp,
969
970
  ta as usePermission,
970
971
  aa as useSystem,
971
972
  te as useViewStack,
972
- He as verifyPermission,
973
+ Ke as verifyPermission,
973
974
  Bt as waitMs,
974
975
  ee as waitUtil
975
976
  };
@@ -49,6 +49,7 @@ export declare enum Permission {
49
49
  create_flow = "create_flow",
50
50
  delete_flow = "delete_flow",
51
51
  update_flow = "update_flow",
52
+ debug_flow = "debug_flow",
52
53
  call_flow = "call_flow",
53
54
  list_flow_release = "list_flow_release",
54
55
  get_flow_release = "get_flow_release",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
3
  "private": false,
4
- "version": "0.7.11",
4
+ "version": "0.7.13",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -50,6 +50,6 @@
50
50
  "vite": "^5.4.9",
51
51
  "vite-plugin-css-injected-by-js": "^3.5.2",
52
52
  "vite-plugin-vuetify": "^2.0.4",
53
- "vue-tsc": "^2.1.6"
53
+ "vue-tsc": "^2.2.0"
54
54
  }
55
55
  }
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;