x-essential-lib 0.7.10 → 0.7.12

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,7 +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<{}>, {
5
- zIndex: number;
6
- }, {}, {}, {}, 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>;
7
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,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-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-8fd5d800]{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 { 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 le, createElementVNode as m, createCommentVNode as ce, Fragment as De, renderList as Me, useTemplateRef as Se } from "vue";
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)}})();
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
- import { useTheme as ee, useDisplay as je } from "vuetify";
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
7
  function Tt() {
8
- const e = ee(), t = y(() => e.global.current.value.colors.primary), a = y(() => e.global.current.value.colors.secondary), o = y(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), n = y(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = y(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), c = y(() => e.current.value.dark ? "#303030" : "#f6f6f6"), r = y(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
8
+ const e = ce(), t = y(() => e.global.current.value.colors.primary), a = y(() => e.global.current.value.colors.secondary), o = y(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), 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,
11
11
  secondaryColor: a,
@@ -138,7 +138,7 @@ function Be(e) {
138
138
  });
139
139
  } };
140
140
  }
141
- const s = function() {
141
+ const p = function() {
142
142
  return window.eventBus || (window.eventBus = Be()), window.eventBus;
143
143
  }();
144
144
  async function Bt(e) {
@@ -146,7 +146,7 @@ async function Bt(e) {
146
146
  setTimeout(t, e);
147
147
  });
148
148
  }
149
- async function te(e, t, a) {
149
+ async function ee(e, t, a) {
150
150
  const o = Date.now();
151
151
  return new Promise((n) => {
152
152
  const l = async () => {
@@ -161,53 +161,53 @@ function Ue(e, t) {
161
161
  a.classList.add("app-reset");
162
162
  }, 50));
163
163
  }
164
- let ne = Date.now();
165
- function se() {
164
+ let oe = Date.now();
165
+ function pe() {
166
166
  const e = Date.now();
167
- return e - ne > 500 ? (ne = e, !0) : !1;
167
+ return e - oe > 500 ? (oe = e, !0) : !1;
168
168
  }
169
169
  let We = 0;
170
- function pe() {
170
+ function se() {
171
171
  return ++We;
172
172
  }
173
173
  async function Ut(e) {
174
- if (!se())
174
+ if (!pe())
175
175
  return;
176
176
  let t = !1, a;
177
177
  const o = (l) => {
178
178
  a = l, t = !0;
179
- }, n = pe();
180
- return s.on("confirmDlgResult" + n, o), s.emit("confirmDlg", { ...e, seq: n }), await te(() => t), s.off("confirmDlgResult" + n, o), a;
179
+ }, n = se();
180
+ return p.on("confirmDlgResult" + n, o), p.emit("confirmDlg", { ...e, seq: n }), await ee(() => t), p.off("confirmDlgResult" + n, o), a;
181
181
  }
182
182
  async function Wt(e) {
183
- if (!se())
183
+ if (!pe())
184
184
  return;
185
185
  let t = !1, a;
186
186
  const o = (l) => {
187
187
  a = l, t = !0;
188
- }, n = pe();
189
- return s.on("promptDlgResult" + n, o), s.emit("promptDlg", { ...e, seq: n }), await te(() => t), s.off("promptDlgResult" + n, o), a;
188
+ }, n = se();
189
+ return p.on("promptDlgResult" + n, o), p.emit("promptDlg", { ...e, seq: n }), await ee(() => t), p.off("promptDlgResult" + n, o), a;
190
190
  }
191
191
  function $t(e) {
192
- s.emit("openWaitDlg", { text: e });
192
+ p.emit("openWaitDlg", { text: e });
193
193
  }
194
194
  function Ht() {
195
- s.emit("closeWaitDlg");
195
+ p.emit("closeWaitDlg");
196
196
  }
197
197
  function Kt(e, t) {
198
- s.emit("message", { type: "error", text: e, timeout: t });
198
+ p.emit("message", { type: "error", text: e, timeout: t });
199
199
  }
200
200
  function zt(e, t) {
201
- s.emit("message", { type: "info", text: e, timeout: t });
201
+ p.emit("message", { type: "info", text: e, timeout: t });
202
202
  }
203
203
  function Xt(e, t) {
204
- s.emit("message", { type: "success", text: e, timeout: t });
204
+ p.emit("message", { type: "success", text: e, timeout: t });
205
205
  }
206
206
  function Ft(e, t) {
207
- s.emit("message", { type: "warning", text: e, timeout: t });
207
+ p.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 || {});
210
- function re(e, t) {
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.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))($e || {});
210
+ function ne(e, t) {
211
211
  if (!e)
212
212
  return !1;
213
213
  let a = e;
@@ -222,7 +222,7 @@ function re(e, t) {
222
222
  }
223
223
  function He(e, t, a) {
224
224
  const o = e[t];
225
- return o ? a ? !(!re(o.includes, a) || re(o.excludes, a)) : !0 : !1;
225
+ return o ? a ? !(!ne(o.includes, a) || ne(o.excludes, a)) : !0 : !1;
226
226
  }
227
227
  const _e = "essentialDark", ie = "essentialLocale", de = "essentialPermissionObjects", fe = "essentialPermissionChecksum", ge = "essentialLastAppPath", ve = "essentialViews";
228
228
  function Ke(e) {
@@ -477,12 +477,12 @@ function ut() {
477
477
  e.value = !0;
478
478
  }, t), e;
479
479
  }
480
- function st(e) {
480
+ function pt(e) {
481
481
  const t = ut();
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 st(e, t = {}) {
485
+ const { window: a = ct } = 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;
@@ -496,22 +496,22 @@ function pt(e, t = {}) {
496
496
  }), l;
497
497
  }
498
498
  function _t(e) {
499
- return pt("(prefers-color-scheme: dark)", e);
499
+ return st("(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
503
  Ke(e), ze(t), Xe(a), Ze(o), Ne(n), Ge(l);
504
- const u = ee(), _ = _t();
504
+ const u = ce(), _ = _t();
505
505
  N(
506
506
  e,
507
507
  () => {
508
- let p = !1;
509
- typeof e.value == "boolean" ? p = e.value : p = _.value, u.global.name.value = p ? "dark" : "light";
508
+ let s = !1;
509
+ typeof e.value == "boolean" ? s = e.value : s = _.value, u.global.name.value = s ? "dark" : "light";
510
510
  },
511
511
  { immediate: !0 }
512
512
  );
513
- const g = (p) => {
514
- if (p.key === "Escape") {
513
+ const g = (s) => {
514
+ if (s.key === "Escape") {
515
515
  v();
516
516
  return;
517
517
  }
@@ -521,8 +521,8 @@ function ea(e, t, a, o, n, l) {
521
521
  me(l, "waitDlg") || ot(l);
522
522
  return;
523
523
  }
524
- const p = Z(c.path);
525
- (p == null ? void 0 : p.level) === 0 ? (x = navigator == null ? void 0 : navigator.Backbutton) == null || x.goHome(
524
+ const s = Z(c.path);
525
+ (s == null ? void 0 : s.level) === 0 ? (x = navigator == null ? void 0 : navigator.Backbutton) == null || x.goHome(
526
526
  () => {
527
527
  },
528
528
  () => {
@@ -530,24 +530,24 @@ function ea(e, t, a, o, n, l) {
530
530
  ) : r.back();
531
531
  };
532
532
  T(() => {
533
- window.addEventListener("keydown", g), s.on("backbutton", v);
533
+ window.addEventListener("keydown", g), p.on("backbutton", v);
534
534
  }), W(() => {
535
- window.removeEventListener("keydown", g), s.off("backbutton", v);
535
+ window.removeEventListener("keydown", g), p.off("backbutton", v);
536
536
  });
537
- const L = (p) => {
538
- e.value = p;
539
- }, k = (p) => {
540
- t.value = p;
541
- }, i = (p) => {
542
- const x = p;
537
+ const L = (s) => {
538
+ e.value = s;
539
+ }, k = (s) => {
540
+ t.value = s;
541
+ }, i = (s) => {
542
+ const x = s;
543
543
  a.value = x[0], o.value = x[1];
544
- }, D = (p) => {
545
- n.value = p;
544
+ }, D = (s) => {
545
+ n.value = s;
546
546
  };
547
547
  Le(() => {
548
- s.on("updateDark", L), s.on("updateLocale", k), s.on("updatePermission", i), s.on("updateLastAppPath", D), s.emit("syncGlobalState");
548
+ p.on("updateDark", L), p.on("updateLocale", k), p.on("updatePermission", i), p.on("updateLastAppPath", D), p.emit("syncGlobalState");
549
549
  }), W(() => {
550
- s.off("updateDark", L), s.off("updateLocale", k), s.off("updatePermission", i), s.off("updateLastAppPath", D);
550
+ p.off("updateDark", L), p.off("updateLocale", k), p.off("updatePermission", i), p.off("updateLastAppPath", D);
551
551
  });
552
552
  }
553
553
  function ta() {
@@ -565,7 +565,7 @@ function aa() {
565
565
  const e = y(() => !!window.cordova), t = je(), a = y(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
566
566
  return { sysBarAvail: e, compactWidth: a };
567
567
  }
568
- function ae(e, t) {
568
+ function te(e, t) {
569
569
  const a = Qe(), o = y({
570
570
  get() {
571
571
  return me(a, e);
@@ -577,9 +577,9 @@ function ae(e, t) {
577
577
  t == null || t(l), o.value = !0;
578
578
  };
579
579
  return T(() => {
580
- s.on(e, n);
580
+ p.on(e, n);
581
581
  }), W(() => {
582
- s.off(e, n);
582
+ p.off(e, n);
583
583
  }), { open: o };
584
584
  }
585
585
  const it = /* @__PURE__ */ E({
@@ -588,16 +588,16 @@ const it = /* @__PURE__ */ E({
588
588
  const { t } = P(), a = f(""), o = f(""), n = f(""), l = f(""), c = f(""), r = f("");
589
589
  let u = 0, _ = !1;
590
590
  const g = (k) => {
591
- var D, p, x, M;
591
+ var D, s, x, M;
592
592
  const i = k;
593
- a.value = i.title, o.value = i.text, n.value = ((D = i.cancel) == null ? void 0 : D.color) ?? "primary", l.value = ((p = i.cancel) == null ? void 0 : p.text) ?? t("dlg.common.cancel"), c.value = ((x = i.confirm) == null ? void 0 : x.color) ?? "primary", r.value = ((M = i.confirm) == null ? void 0 : M.text) ?? t("dlg.common.confirm"), u = i.seq, _ = !1, v.value = !0;
594
- }, { open: v } = ae("confirmDlg", g), L = () => {
595
- v.value = !1, _ || (s.emit("confirmDlgResult" + u, !0), _ = !0);
593
+ a.value = i.title, o.value = i.text, n.value = ((D = i.cancel) == null ? void 0 : D.color) ?? "primary", l.value = ((s = i.cancel) == null ? void 0 : s.text) ?? t("dlg.common.cancel"), c.value = ((x = i.confirm) == null ? void 0 : x.color) ?? "primary", r.value = ((M = i.confirm) == null ? void 0 : M.text) ?? t("dlg.common.confirm"), u = i.seq, _ = !1, v.value = !0;
594
+ }, { open: v } = te("confirmDlg", g), L = () => {
595
+ v.value = !1, _ || (p.emit("confirmDlgResult" + u, !0), _ = !0);
596
596
  };
597
597
  return N(v, (k) => {
598
- !k && !_ && (s.emit("confirmDlgResult" + u, !1), _ = !0);
598
+ !k && !_ && (p.emit("confirmDlgResult" + u, !1), _ = !0);
599
599
  }), (k, i) => {
600
- const D = h("v-card-text"), p = h("v-btn"), x = h("v-card-actions"), M = h("v-card"), d = h("v-dialog");
600
+ const D = h("v-card-text"), s = h("v-btn"), x = h("v-card-actions"), M = h("v-card"), d = h("v-dialog");
601
601
  return C(), q(d, {
602
602
  modelValue: H(v),
603
603
  "onUpdate:modelValue": i[1] || (i[1] = (j) => Y(v) ? v.value = j : null),
@@ -619,7 +619,7 @@ const it = /* @__PURE__ */ E({
619
619
  }),
620
620
  b(x, { class: "d-flex justify-end" }, {
621
621
  default: w(() => [
622
- b(p, {
622
+ b(s, {
623
623
  color: n.value,
624
624
  variant: "text",
625
625
  onClick: i[0] || (i[0] = (j) => v.value = !1)
@@ -629,7 +629,7 @@ const it = /* @__PURE__ */ E({
629
629
  ]),
630
630
  _: 1
631
631
  }, 8, ["color"]),
632
- b(p, {
632
+ b(s, {
633
633
  color: c.value,
634
634
  variant: "text",
635
635
  onClick: L
@@ -656,14 +656,13 @@ const it = /* @__PURE__ */ E({
656
656
  zIndex: { default: 1 }
657
657
  },
658
658
  setup(e) {
659
- const t = ee(), a = e, o = y(() => ({
660
- background: t.current.value.dark ? "#1e1e1e" : "#ffffff",
661
- zIndex: a.zIndex
659
+ const t = y(() => ({
660
+ zIndex: e.zIndex
662
661
  }));
663
- return (n, l) => (C(), Q("div", {
662
+ return (a, o) => (C(), Q("div", {
664
663
  class: "x-cont",
665
- style: le(o.value)
666
- }, l[0] || (l[0] = [
664
+ style: re(t.value)
665
+ }, o[0] || (o[0] = [
667
666
  m("div", { class: "lds-spinner" }, [
668
667
  m("div"),
669
668
  m("div"),
@@ -680,12 +679,12 @@ const it = /* @__PURE__ */ E({
680
679
  ], -1)
681
680
  ]), 4));
682
681
  }
683
- }), oe = (e, t) => {
682
+ }), ae = (e, t) => {
684
683
  const a = e.__vccOpts || e;
685
684
  for (const [o, n] of t)
686
685
  a[o] = n;
687
686
  return a;
688
- }, ft = /* @__PURE__ */ oe(dt, [["__scopeId", "data-v-7ab74c70"]]);
687
+ }, ft = /* @__PURE__ */ ae(dt, [["__scopeId", "data-v-44b1d3e4"]]);
689
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";
690
689
  const yt = /* @__PURE__ */ E({
691
690
  __name: "item",
@@ -732,9 +731,9 @@ const yt = /* @__PURE__ */ E({
732
731
  key: 0,
733
732
  class: "mx-1",
734
733
  icon: n.value
735
- }, null, 8, ["icon"])) : ce("", !0),
734
+ }, null, 8, ["icon"])) : le("", !0),
736
735
  m("div", {
737
- style: le(o.value)
736
+ style: re(o.value)
738
737
  }, R(a.text), 5),
739
738
  b(_, {
740
739
  class: "mx-1",
@@ -746,14 +745,14 @@ const yt = /* @__PURE__ */ E({
746
745
  }, 8, ["color"]);
747
746
  };
748
747
  }
749
- }), xt = /* @__PURE__ */ oe(yt, [["__scopeId", "data-v-d5cfe252"]]), bt = /* @__PURE__ */ E({
748
+ }), xt = /* @__PURE__ */ ae(yt, [["__scopeId", "data-v-d5cfe252"]]), bt = /* @__PURE__ */ E({
750
749
  __name: "index",
751
750
  setup(e) {
752
751
  const t = f([]);
753
752
  T(() => {
754
- s.on("message", a);
753
+ p.on("message", a);
755
754
  }), W(() => {
756
- s.off("message", a);
755
+ p.off("message", a);
757
756
  });
758
757
  const a = (r) => {
759
758
  const { type: u, text: _, timeout: g } = r;
@@ -784,7 +783,7 @@ const yt = /* @__PURE__ */ E({
784
783
  }, null, 8, ["id", "type", "text", "timeout"]))), 128))
785
784
  ]));
786
785
  }
787
- }), kt = /* @__PURE__ */ oe(bt, [["__scopeId", "data-v-8fd5d800"]]), Ct = /* @__PURE__ */ E({
786
+ }), kt = /* @__PURE__ */ ae(bt, [["__scopeId", "data-v-8fd5d800"]]), Ct = /* @__PURE__ */ E({
788
787
  __name: "index",
789
788
  setup(e) {
790
789
  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");
@@ -792,21 +791,21 @@ const yt = /* @__PURE__ */ E({
792
791
  const D = async (M) => {
793
792
  var j, K, z, B;
794
793
  const d = M;
795
- a.value = d.title, o.value = d.text, n.value = d.label, l.value = d.placeholder, c.value = d.rules, r.value = d.value, u.value = ((j = d.cancel) == null ? void 0 : j.color) ?? "primary", _.value = ((K = d.cancel) == null ? void 0 : K.text) ?? t("dlg.common.cancel"), g.value = ((z = d.confirm) == null ? void 0 : z.color) ?? "primary", v.value = ((B = d.confirm) == null ? void 0 : B.text) ?? t("dlg.common.confirm"), k = d.seq, i = !1, p.value = !0, await te(() => !!L.value), L.value.focus();
796
- }, { open: p } = ae("promptDlg", D), x = () => {
797
- p.value = !1, i || (s.emit("promptDlgResult" + k, r.value ?? ""), i = !0);
794
+ a.value = d.title, o.value = d.text, n.value = d.label, l.value = d.placeholder, c.value = d.rules, r.value = d.value, u.value = ((j = d.cancel) == null ? void 0 : j.color) ?? "primary", _.value = ((K = d.cancel) == null ? void 0 : K.text) ?? t("dlg.common.cancel"), g.value = ((z = d.confirm) == null ? void 0 : z.color) ?? "primary", v.value = ((B = d.confirm) == null ? void 0 : B.text) ?? t("dlg.common.confirm"), k = d.seq, i = !1, s.value = !0, await ee(() => !!L.value), L.value.focus();
795
+ }, { open: s } = te("promptDlg", D), x = () => {
796
+ s.value = !1, i || (p.emit("promptDlgResult" + k, r.value ?? ""), i = !0);
798
797
  };
799
- return N(p, (M) => {
800
- !M && !i && (s.emit("promptDlgResult" + k, void 0), i = !0);
798
+ return N(s, (M) => {
799
+ !M && !i && (p.emit("promptDlgResult" + k, void 0), i = !0);
801
800
  }), (M, d) => {
802
801
  const j = h("v-card-text"), K = h("v-text-field"), z = h("v-form"), B = h("v-btn"), he = h("v-card-actions"), we = h("v-card"), ye = h("v-dialog");
803
802
  return C(), q(ye, {
804
- modelValue: H(p),
805
- "onUpdate:modelValue": d[2] || (d[2] = (U) => Y(p) ? p.value = U : null),
803
+ modelValue: H(s),
804
+ "onUpdate:modelValue": d[2] || (d[2] = (U) => Y(s) ? s.value = U : null),
806
805
  transition: "dialog-top-transition",
807
806
  "max-width": "600px",
808
807
  onKeydown: [
809
- d[3] || (d[3] = F($((U) => p.value = !1, ["stop", "prevent"]), ["esc"])),
808
+ d[3] || (d[3] = F($((U) => s.value = !1, ["stop", "prevent"]), ["esc"])),
810
809
  F($(x, ["stop", "prevent"]), ["enter"])
811
810
  ]
812
811
  }, {
@@ -818,7 +817,7 @@ const yt = /* @__PURE__ */ E({
818
817
  V(R(o.value), 1)
819
818
  ]),
820
819
  _: 1
821
- })) : ce("", !0),
820
+ })) : le("", !0),
822
821
  b(z, { class: "mx-3" }, {
823
822
  default: w(() => [
824
823
  b(K, {
@@ -838,7 +837,7 @@ const yt = /* @__PURE__ */ E({
838
837
  b(B, {
839
838
  color: u.value,
840
839
  variant: "text",
841
- onClick: d[1] || (d[1] = (U) => p.value = !1)
840
+ onClick: d[1] || (d[1] = (U) => s.value = !1)
842
841
  }, {
843
842
  default: w(() => [
844
843
  V(R(_.value), 1)
@@ -874,11 +873,11 @@ const yt = /* @__PURE__ */ E({
874
873
  a.value = r.text ?? t("dlg.common.waiting"), l.value = !0;
875
874
  }, n = () => {
876
875
  l.value = !1;
877
- }, { open: l } = ae("waitDlg", o);
876
+ }, { open: l } = te("waitDlg", o);
878
877
  return T(() => {
879
- s.on("closeWaitDlg", n);
878
+ p.on("closeWaitDlg", n);
880
879
  }), W(() => {
881
- s.off("closeWaitDlg", n);
880
+ p.off("closeWaitDlg", n);
882
881
  }), (c, r) => {
883
882
  const u = h("v-card"), _ = h("v-dialog");
884
883
  return C(), q(_, {
@@ -936,7 +935,7 @@ export {
936
935
  Et as createAxios,
937
936
  na as default,
938
937
  at as delView,
939
- s as eventBus,
938
+ p as eventBus,
940
939
  me as hasView,
941
940
  Zt as injectDark,
942
941
  Qt as injectLastAppPath,
@@ -945,7 +944,7 @@ export {
945
944
  Fe as injectPermissionObjects,
946
945
  Qe as injectViews,
947
946
  et as isEmpty,
948
- re as isExist,
947
+ ne as isExist,
949
948
  Yt as lastView,
950
949
  oa as loadLocaleMessageEssential,
951
950
  Z as matchRouteMeta,
@@ -969,8 +968,8 @@ export {
969
968
  ea as useMicroApp,
970
969
  ta as usePermission,
971
970
  aa as useSystem,
972
- ae as useViewStack,
971
+ te as useViewStack,
973
972
  He as verifyPermission,
974
973
  Bt as waitMs,
975
- te as waitUtil
974
+ ee as waitUtil
976
975
  };
@@ -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.10",
4
+ "version": "0.7.12",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -23,11 +23,9 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@vueuse/core": "^11.1.0",
26
- "js-cookie": "^3.0.5",
27
- "mitt": "^3.0.1"
28
- },
29
- "peerDependencies": {
30
26
  "axios": "^1.7.7",
27
+ "js-cookie": "^3.0.5",
28
+ "mitt": "^3.0.1",
31
29
  "vue": "^3.5.12",
32
30
  "vue-i18n": "^10.0.4",
33
31
  "vue-router": "^4.4.3",
@@ -52,6 +50,6 @@
52
50
  "vite": "^5.4.9",
53
51
  "vite-plugin-css-injected-by-js": "^3.5.2",
54
52
  "vite-plugin-vuetify": "^2.0.4",
55
- "vue-tsc": "^2.1.6"
53
+ "vue-tsc": "^2.2.0"
56
54
  }
57
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;