x-essential-lib 0.9.4 → 0.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
  export * from './color';
2
2
  export * from './microApp';
3
+ export * from './nameHelper';
3
4
  export * from './permission';
4
5
  export * from './system';
5
6
  export * from './viewStack';
@@ -0,0 +1,5 @@
1
+ export declare function useNameHelper(): {
2
+ nameOfVerbObject: (verb: string, object: string) => string;
3
+ nameOfObjectsInstance: (objects: string[], instance?: string) => string;
4
+ nameOfDeleteObjectText: (object: string) => string;
5
+ };
@@ -1,6 +1,6 @@
1
1
  export declare function useSystem(): {
2
2
  sysBarAvail: import("vue").ComputedRef<boolean>;
3
3
  compactWidth: import("vue").ComputedRef<string>;
4
+ isCurvedScreen: import("vue").ComputedRef<boolean>;
4
5
  isMobile: () => boolean;
5
- isCurvedScreen: () => boolean;
6
6
  };
@@ -103,6 +103,7 @@ const e = {
103
103
  common: {
104
104
  cancel: "Cancel",
105
105
  confirm: "Confirm",
106
+ deleteObjectText: "Do you want to delete 「{name}」?",
106
107
  responding: "Responding..."
107
108
  }
108
109
  }, a = {
@@ -103,6 +103,7 @@ const e = {
103
103
  common: {
104
104
  cancel: "取消",
105
105
  confirm: "确定",
106
+ deleteObjectText: "你想要删除「{name}」?",
106
107
  responding: "响应中..."
107
108
  }
108
109
  }, a = {
package/dist/index.js CHANGED
@@ -1,47 +1,47 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var d=document.createElement("style");d.id="x-essential-lib",d.appendChild(document.createTextNode('.fade-leave-active[data-v-83c3cd1d]{transition:opacity .5s ease}.fade-leave-to[data-v-83c3cd1d]{opacity:0}.x-cont[data-v-83c3cd1d]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-83c3cd1d]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-83c3cd1d]{transform-origin:20px 20px;animation:lds-spinner-83c3cd1d 1.2s linear infinite}.lds-spinner div[data-v-83c3cd1d]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-83c3cd1d]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-83c3cd1d]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-83c3cd1d]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-83c3cd1d]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-83c3cd1d]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-83c3cd1d]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-83c3cd1d]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-83c3cd1d]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-83c3cd1d]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-83c3cd1d]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-83c3cd1d]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-83c3cd1d]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-83c3cd1d{0%{opacity:1}to{opacity:0}}.x-item[data-v-f1f60167]{width:600px}@media (max-width: 600px){.x-item[data-v-f1f60167]{width:calc(100vw - 16px)}}.x-cont[data-v-b482df18]{position:fixed;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(d)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- import { computed as V, provide as U, inject as $, ref as p, watchEffect as le, onMounted as N, onBeforeUnmount as K, onBeforeMount as we, defineComponent as A, watch as F, resolveComponent as v, createBlock as L, openBlock as q, withKeys as z, unref as E, withModifiers as M, isRef as W, withCtx as g, createVNode as b, createTextVNode as B, toDisplayString as R, Transition as ke, createElementBlock as P, createCommentVNode as ee, normalizeStyle as ue, createElementVNode as k, Fragment as De, renderList as Ce, useTemplateRef as ce } from "vue";
3
- import { useI18n as G } from "vue-i18n";
4
- import { useTheme as se, useDisplay as Ve } from "vuetify";
5
- import { useRouter as pe, useRoute as qe } from "vue-router";
6
- import je from "axios";
7
- import { a as T, m as Se, u as Re } from "./vendor.waod39c6.js";
8
- function Oe() {
9
- const e = se(), t = V(() => e.global.current.value.colors.primary), a = V(() => e.global.current.value.colors.secondary), o = V(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), l = V(() => e.current.value.dark ? "#272727" : "#eeeeee"), r = V(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), s = V(() => e.current.value.dark ? "#303030" : "#f6f6f6"), n = V(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
2
+ import { computed as j, provide as E, inject as U, ref as _, watchEffect as le, onMounted as N, onBeforeUnmount as K, onBeforeMount as we, defineComponent as $, watch as G, resolveComponent as v, createBlock as I, openBlock as V, withKeys as H, unref as A, withModifiers as M, isRef as W, withCtx as g, createVNode as b, createTextVNode as L, toDisplayString as S, Transition as ke, createElementBlock as P, createCommentVNode as ee, normalizeStyle as ue, createElementVNode as k, Fragment as De, renderList as Oe, useTemplateRef as ce } from "vue";
3
+ import { useI18n as X } from "vue-i18n";
4
+ import { useTheme as se, useDisplay as je } from "vuetify";
5
+ import { useRouter as pe, useRoute as Ve } from "vue-router";
6
+ import Ce from "axios";
7
+ import { a as T, m as qe, u as Se } from "./vendor.waod39c6.js";
8
+ function Re() {
9
+ const e = se(), t = j(() => e.global.current.value.colors.primary), a = j(() => e.global.current.value.colors.secondary), o = j(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), l = j(() => e.current.value.dark ? "#272727" : "#eeeeee"), r = j(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), u = j(() => e.current.value.dark ? "#303030" : "#f6f6f6"), n = j(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
10
10
  return {
11
11
  primaryColor: t,
12
12
  secondaryColor: a,
13
13
  backgroundColor0: o,
14
14
  backgroundColor1: l,
15
15
  backgroundColor2: r,
16
- highlightColor: s,
16
+ highlightColor: u,
17
17
  borderColor: n
18
18
  };
19
19
  }
20
20
  function kt(e) {
21
- const t = je.create({
21
+ const t = Ce.create({
22
22
  timeout: 6e3
23
23
  });
24
24
  return t.defaults.baseURL = e.baseUrl, t.interceptors.request.use(
25
25
  (a) => Te(a),
26
26
  (a) => {
27
- Le(a, e.onError);
27
+ Ie(a, e.onError);
28
28
  }
29
29
  ), t.interceptors.response.use(
30
- (a) => Be(a),
31
- (a) => Ie(a, e.onError)
30
+ (a) => Le(a),
31
+ (a) => Be(a, e.onError)
32
32
  ), t;
33
33
  }
34
34
  function Te(e) {
35
35
  const t = T.get("accessToken") ?? "";
36
36
  return e.headers.Authorization = "Basic " + t, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
37
37
  }
38
- function Le(e, t) {
38
+ function Ie(e, t) {
39
39
  console.error(e), t("request timeout");
40
40
  }
41
- function Be(e) {
41
+ function Le(e) {
42
42
  return e.data;
43
43
  }
44
- function Ie(e, t) {
44
+ function Be(e, t) {
45
45
  const o = e.response;
46
46
  return o && (o.status === 401 && Me(), o.data?.message ? t(o.data?.message) : t({
47
47
  code: o.status,
@@ -56,15 +56,15 @@ const Dt = (function() {
56
56
  router: null,
57
57
  i18n: null
58
58
  }, console.log("globalObjects created")), window.globalObjects;
59
- })(), u = (function() {
60
- return window.eventBus || (window.eventBus = Se(), console.log("eventBus created")), window.eventBus;
59
+ })(), c = (function() {
60
+ return window.eventBus || (window.eventBus = qe(), console.log("eventBus created")), window.eventBus;
61
61
  })();
62
- async function Ct(e) {
62
+ async function Ot(e) {
63
63
  return new Promise((t) => {
64
64
  setTimeout(t, e);
65
65
  });
66
66
  }
67
- async function X(e, t, a) {
67
+ async function z(e, t, a) {
68
68
  const o = Date.now();
69
69
  return new Promise((l) => {
70
70
  const r = async () => {
@@ -73,7 +73,7 @@ async function X(e, t, a) {
73
73
  r();
74
74
  });
75
75
  }
76
- function Ae(e, t) {
76
+ function $e(e, t) {
77
77
  const a = document.getElementById("single-spa-application:" + e);
78
78
  a && (a.classList.remove("app-left", "app-right", "app-reset"), t ? a.classList.add("app-left") : a.classList.add("app-right"), setTimeout(() => {
79
79
  a.classList.add("app-reset");
@@ -84,56 +84,56 @@ function te() {
84
84
  const e = Date.now();
85
85
  return e - ne > 500 ? (ne = e, !0) : !1;
86
86
  }
87
- let Ee = 0;
87
+ let Ae = 0;
88
88
  function ae() {
89
- return ++Ee;
89
+ return ++Ae;
90
90
  }
91
- async function Vt(e) {
91
+ async function jt(e) {
92
92
  if (!te())
93
93
  return;
94
94
  let t = !1, a;
95
95
  const o = (r) => {
96
96
  a = r, t = !0;
97
97
  }, l = ae();
98
- return u.on("confirmDlgResult" + l, o), u.emit("confirmDlg", { ...e, seq: l }), await X(() => t), u.off("confirmDlgResult" + l, o), a;
98
+ return c.on("confirmDlgResult" + l, o), c.emit("confirmDlg", { ...e, seq: l }), await z(() => t), c.off("confirmDlgResult" + l, o), a;
99
99
  }
100
- async function qt(e) {
100
+ async function Vt(e) {
101
101
  if (!te())
102
102
  return;
103
103
  let t = !1, a;
104
104
  const o = (r) => {
105
105
  a = r, t = !0;
106
106
  }, l = ae();
107
- return u.on("numberDlgResult" + l, o), u.emit("numberDlg", { ...e, seq: l }), await X(() => t), u.off("numberDlgResult" + l, o), a;
107
+ return c.on("numberDlgResult" + l, o), c.emit("numberDlg", { ...e, seq: l }), await z(() => t), c.off("numberDlgResult" + l, o), a;
108
108
  }
109
- async function jt(e) {
109
+ async function Ct(e) {
110
110
  if (!te())
111
111
  return;
112
112
  let t = !1, a;
113
113
  const o = (r) => {
114
114
  a = r, t = !0;
115
115
  }, l = ae();
116
- return u.on("promptDlgResult" + l, o), u.emit("promptDlg", { ...e, seq: l }), await X(() => t), u.off("promptDlgResult" + l, o), a;
116
+ return c.on("promptDlgResult" + l, o), c.emit("promptDlg", { ...e, seq: l }), await z(() => t), c.off("promptDlgResult" + l, o), a;
117
117
  }
118
- function St(e) {
119
- u.emit("waitDlg", { text: e });
118
+ function qt(e) {
119
+ c.emit("waitDlg", { text: e });
120
120
  }
121
- function Rt() {
122
- u.emit("closeWaitDlg");
121
+ function St() {
122
+ c.emit("closeWaitDlg");
123
123
  }
124
- function Ot(e, t) {
125
- u.emit("message", { type: "error", text: e, timeout: t });
124
+ function Rt(e, t) {
125
+ c.emit("message", { type: "error", text: e, timeout: t });
126
126
  }
127
127
  function Tt(e, t) {
128
- u.emit("message", { type: "info", text: e, timeout: t });
128
+ c.emit("message", { type: "info", text: e, timeout: t });
129
129
  }
130
- function Lt(e, t) {
131
- u.emit("message", { type: "success", text: e, timeout: t });
130
+ function It(e, t) {
131
+ c.emit("message", { type: "success", text: e, timeout: t });
132
132
  }
133
- function Bt(e, t) {
134
- u.emit("message", { type: "warning", text: e, timeout: t });
133
+ function Lt(e, t) {
134
+ c.emit("message", { type: "warning", text: e, timeout: t });
135
135
  }
136
- var Ue = /* @__PURE__ */ ((e) => (e.list_app_group = "list_app_group", e.create_app_group = "create_app_group", e.delete_app_group = "delete_app_group", e.update_app_group = "update_app_group", e.arrange_app_group = "arrange_app_group", e.list_app = "list_app", e.get_app = "get_app", e.create_app = "create_app", e.delete_app = "delete_app", e.update_app = "update_app", e.list_app_release = "list_app_release", e.get_app_release = "get_app_release", e.create_app_release = "create_app_release", e.delete_app_release = "delete_app_release", e.deploy_app_release = "deploy_app_release", e.open_app_layer = "open_app_layer", e.open_app = "open_app", e.list_compute_space = "list_compute_space", e.get_compute_space = "get_compute_space", e.create_compute_space = "create_compute_space", e.delete_compute_space = "delete_compute_space", e.update_compute_space = "update_compute_space", e.arrange_compute_space = "arrange_compute_space", e.list_func_group = "list_func_group", e.create_func_group = "create_func_group", e.delete_func_group = "delete_func_group", e.update_func_group = "update_func_group", e.arrange_func_group = "arrange_func_group", e.list_func = "list_func", e.get_func = "get_func", e.create_func = "create_func", e.delete_func = "delete_func", e.update_func = "update_func", e.debug_func = "debug_func", e.call_func = "call_func", e.list_func_release = "list_func_release", e.get_func_release = "get_func_release", e.create_func_release = "create_func_release", e.delete_func_release = "delete_func_release", e.deploy_func_release = "deploy_func_release", e.list_flow_group = "list_flow_group", e.create_flow_group = "create_flow_group", e.delete_flow_group = "delete_flow_group", e.update_flow_group = "update_flow_group", e.arrange_flow_group = "arrange_flow_group", e.list_flow = "list_flow", e.get_flow = "get_flow", e.create_flow = "create_flow", e.delete_flow = "delete_flow", e.update_flow = "update_flow", e.debug_flow = "debug_flow", e.call_flow = "call_flow", e.list_flow_release = "list_flow_release", e.get_flow_release = "get_flow_release", e.create_flow_release = "create_flow_release", e.delete_flow_release = "delete_flow_release", e.deploy_flow_release = "deploy_flow_release", e.list_task = "list_task", e.get_task = "get_task", e.create_task = "create_task", e.delete_task = "delete_task", e.update_task = "update_task", e.call_task = "call_task", e.open_compute_layer = "open_compute_layer", e.list_data_space = "list_data_space", e.get_data_space = "get_data_space", e.create_data_space = "create_data_space", e.delete_data_space = "delete_data_space", e.update_data_space = "update_data_space", e.arrange_data_space = "arrange_data_space", e.list_table_group = "list_table_group", e.create_table_group = "create_table_group", e.delete_table_group = "delete_table_group", e.update_table_group = "update_table_group", e.arrange_table_group = "arrange_table_group", e.list_table = "list_table", e.get_table = "get_table", e.create_table = "create_table", e.delete_table = "delete_table", e.update_table = "update_table", e.get_data = "get_data", e.create_data = "create_data", e.delete_data = "delete_data", e.update_data = "update_data", e.get_relation_graph = "get_relation_graph", e.update_relation_graph = "update_relation_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_resource_space = "list_resource_space", e.get_resource_space = "get_resource_space", e.create_resource_space = "create_resource_space", e.delete_resource_space = "delete_resource_space", e.update_resource_space = "update_resource_space", e.arrange_resource_space = "arrange_resource_space", e.list_dir = "list_dir", e.create_dir = "create_dir", e.delete_dir = "delete_dir", e.update_dir = "update_dir", e.move_dir = "move_dir", e.list_resource = "list_resource", e.get_resource = "get_resource", e.create_resource = "create_resource", e.delete_resource = "delete_resource", e.update_resource = "update_resource", e.move_resource = "move_resource", e.open_resource_layer = "open_resource_layer", e.list_org_member = "list_org_member", e.add_org_member = "add_org_member", e.remove_org_member = "remove_org_member", e.update_org_member = "update_org_member", e.list_org_role_group = "list_org_role_group", e.create_org_role_group = "create_org_role_group", e.delete_org_role_group = "delete_org_role_group", e.update_org_role_group = "update_org_role_group", e.arrange_org_role_group = "arrange_org_role_group", e.list_org_role = "list_org_role", e.get_org_role = "get_org_role", e.create_org_role = "create_org_role", e.delete_org_role = "delete_org_role", e.update_org_role = "update_org_role", e.get_org_structure = "get_org_structure", e.update_org_structure = "update_org_structure", e.filter_table = "filter_table", e))(Ue || {});
136
+ 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_compute_space = "list_compute_space", e.get_compute_space = "get_compute_space", e.create_compute_space = "create_compute_space", e.delete_compute_space = "delete_compute_space", e.update_compute_space = "update_compute_space", e.arrange_compute_space = "arrange_compute_space", e.list_func_group = "list_func_group", e.create_func_group = "create_func_group", e.delete_func_group = "delete_func_group", e.update_func_group = "update_func_group", e.arrange_func_group = "arrange_func_group", e.list_func = "list_func", e.get_func = "get_func", e.create_func = "create_func", e.delete_func = "delete_func", e.update_func = "update_func", e.debug_func = "debug_func", e.call_func = "call_func", e.list_func_release = "list_func_release", e.get_func_release = "get_func_release", e.create_func_release = "create_func_release", e.delete_func_release = "delete_func_release", e.deploy_func_release = "deploy_func_release", e.list_flow_group = "list_flow_group", e.create_flow_group = "create_flow_group", e.delete_flow_group = "delete_flow_group", e.update_flow_group = "update_flow_group", e.arrange_flow_group = "arrange_flow_group", e.list_flow = "list_flow", e.get_flow = "get_flow", e.create_flow = "create_flow", e.delete_flow = "delete_flow", e.update_flow = "update_flow", e.debug_flow = "debug_flow", e.call_flow = "call_flow", e.list_flow_release = "list_flow_release", e.get_flow_release = "get_flow_release", e.create_flow_release = "create_flow_release", e.delete_flow_release = "delete_flow_release", e.deploy_flow_release = "deploy_flow_release", e.list_task = "list_task", e.get_task = "get_task", e.create_task = "create_task", e.delete_task = "delete_task", e.update_task = "update_task", e.call_task = "call_task", e.open_compute_layer = "open_compute_layer", e.list_data_space = "list_data_space", e.get_data_space = "get_data_space", e.create_data_space = "create_data_space", e.delete_data_space = "delete_data_space", e.update_data_space = "update_data_space", e.arrange_data_space = "arrange_data_space", e.list_table_group = "list_table_group", e.create_table_group = "create_table_group", e.delete_table_group = "delete_table_group", e.update_table_group = "update_table_group", e.arrange_table_group = "arrange_table_group", e.list_table = "list_table", e.get_table = "get_table", e.create_table = "create_table", e.delete_table = "delete_table", e.update_table = "update_table", e.get_data = "get_data", e.create_data = "create_data", e.delete_data = "delete_data", e.update_data = "update_data", e.get_relation_graph = "get_relation_graph", e.update_relation_graph = "update_relation_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_resource_space = "list_resource_space", e.get_resource_space = "get_resource_space", e.create_resource_space = "create_resource_space", e.delete_resource_space = "delete_resource_space", e.update_resource_space = "update_resource_space", e.arrange_resource_space = "arrange_resource_space", e.list_dir = "list_dir", e.create_dir = "create_dir", e.delete_dir = "delete_dir", e.update_dir = "update_dir", e.move_dir = "move_dir", e.list_resource = "list_resource", e.get_resource = "get_resource", e.create_resource = "create_resource", e.delete_resource = "delete_resource", e.update_resource = "update_resource", e.move_resource = "move_resource", e.open_resource_layer = "open_resource_layer", e.list_org_member = "list_org_member", e.add_org_member = "add_org_member", e.remove_org_member = "remove_org_member", e.update_org_member = "update_org_member", e.list_org_role_group = "list_org_role_group", e.create_org_role_group = "create_org_role_group", e.delete_org_role_group = "delete_org_role_group", e.update_org_role_group = "update_org_role_group", e.arrange_org_role_group = "arrange_org_role_group", e.list_org_role = "list_org_role", e.get_org_role = "get_org_role", e.create_org_role = "create_org_role", e.delete_org_role = "delete_org_role", e.update_org_role = "update_org_role", e.get_org_structure = "get_org_structure", e.update_org_structure = "update_org_structure", e.filter_table = "filter_table", e))(Ee || {});
137
137
  function re(e, t) {
138
138
  if (!e)
139
139
  return !1;
@@ -147,46 +147,46 @@ function re(e, t) {
147
147
  return !1;
148
148
  }), Object.keys(a).length <= 0);
149
149
  }
150
- function $e(e, t, a) {
150
+ function Ue(e, t, a) {
151
151
  const o = e[t];
152
152
  return o ? a ? !(!re(o.includes, a) || re(o.excludes, a)) : !0 : !1;
153
153
  }
154
154
  const _e = "essentialDark", de = "essentialLocale", ie = "essentialPermissionObjects", fe = "essentialPermissionChecksum", ge = "essentialLastAppPath", ve = "essentialViews";
155
155
  function Ke(e) {
156
- U(_e, e);
156
+ E(_e, e);
157
157
  }
158
- function It() {
159
- return $(_e);
158
+ function Bt() {
159
+ return U(_e);
160
160
  }
161
161
  function Ne(e) {
162
- U(de, e);
162
+ E(de, e);
163
163
  }
164
164
  function Mt() {
165
- return $(de);
165
+ return U(de);
166
166
  }
167
167
  function We(e) {
168
- U(ie, e);
168
+ E(ie, e);
169
169
  }
170
170
  function Xe() {
171
- return $(ie);
171
+ return U(ie);
172
172
  }
173
173
  function ze(e) {
174
- U(fe, e);
174
+ E(fe, e);
175
175
  }
176
- function At() {
177
- return $(fe);
176
+ function $t() {
177
+ return U(fe);
178
178
  }
179
179
  function He(e) {
180
- U(ge, e);
180
+ E(ge, e);
181
181
  }
182
- function Et() {
183
- return $(ge);
182
+ function At() {
183
+ return U(ge);
184
184
  }
185
185
  function Fe(e) {
186
- U(ve, e);
186
+ E(ve, e);
187
187
  }
188
188
  function Ge() {
189
- return $(ve);
189
+ return U(ve);
190
190
  }
191
191
  const Je = [
192
192
  {
@@ -299,29 +299,29 @@ const Je = [
299
299
  mainActive: 2
300
300
  }
301
301
  ];
302
- function H(e) {
302
+ function F(e) {
303
303
  let t, a = 0;
304
304
  const o = e.split("/").filter((l) => l.trim() !== "");
305
305
  return Je.forEach((l) => {
306
306
  const r = l.path.split("/").filter((n) => n.trim() !== "");
307
- let s = 0;
307
+ let u = 0;
308
308
  for (let n = 0; n < o.length && !(n >= r.length || o[n] !== r[n]); n++)
309
- s++;
310
- s > 0 && s > a && (t = l, a = s);
309
+ u++;
310
+ u > 0 && u > a && (t = l, a = u);
311
311
  }), t;
312
312
  }
313
- const Z = p("");
314
- function O(e, t, a) {
313
+ const Z = _("");
314
+ function R(e, t, a) {
315
315
  t === "/" && (t = a);
316
- const o = H(e), l = H(t);
316
+ const o = F(e), l = F(t);
317
317
  if (!o) {
318
318
  console.assert(!1);
319
319
  return;
320
320
  }
321
321
  if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !l)
322
322
  return;
323
- const r = o.app === l.app, s = o.path === l.path, n = o.level >= l.level;
324
- r ? s ? Z.value = "" : Z.value = n ? "inner-left" : "inner-right" : (Z.value = "", Ae(o.app, n));
323
+ const r = o.app === l.app, u = o.path === l.path, n = o.level >= l.level;
324
+ r ? u ? Z.value = "" : Z.value = n ? "inner-left" : "inner-right" : (Z.value = "", $e(o.app, n));
325
325
  }
326
326
  function Qe() {
327
327
  return !!T.get("accessToken");
@@ -329,50 +329,50 @@ function Qe() {
329
329
  function Ye() {
330
330
  return !!T.get("activeOrg");
331
331
  }
332
- function Ut(e, t, a, o) {
333
- const l = Qe(), r = Ye(), s = H(e.path);
334
- if (!s) {
332
+ function Et(e, t, a, o) {
333
+ const l = Qe(), r = Ye(), u = F(e.path);
334
+ if (!u) {
335
335
  console.assert(!1), a();
336
336
  return;
337
337
  }
338
- if (s.requiredState === "auth")
338
+ if (u.requiredState === "auth")
339
339
  if (l)
340
340
  if (r) {
341
341
  const n = "/main";
342
- O(n, t.path, o), a({ path: n });
342
+ R(n, t.path, o), a({ path: n });
343
343
  } else
344
- O(e.path, t.path, o), a();
344
+ R(e.path, t.path, o), a();
345
345
  else {
346
346
  const n = "/passport/login";
347
- O(n, t.path, o), a({ path: n });
347
+ R(n, t.path, o), a({ path: n });
348
348
  }
349
- else if (s.requiredState === "org")
349
+ else if (u.requiredState === "org")
350
350
  if (l)
351
351
  if (r)
352
- O(e.path, t.path, o), a();
352
+ R(e.path, t.path, o), a();
353
353
  else {
354
354
  const n = "/org/joinOrCreate";
355
- O(n, t.path, o), a({ path: n });
355
+ R(n, t.path, o), a({ path: n });
356
356
  }
357
357
  else {
358
358
  const n = "/passport/login";
359
- O(n, t.path, o), a({ path: n });
359
+ R(n, t.path, o), a({ path: n });
360
360
  }
361
361
  else if (l)
362
362
  if (r) {
363
363
  const n = "/main";
364
- O(n, t.path, o), a({ path: n });
364
+ R(n, t.path, o), a({ path: n });
365
365
  } else {
366
366
  const n = "/org/joinOrCreate";
367
- O(n, t.path, o), a({ path: n });
367
+ R(n, t.path, o), a({ path: n });
368
368
  }
369
369
  else
370
- O(e.path, t.path, o), a();
370
+ R(e.path, t.path, o), a();
371
371
  }
372
372
  function Ze(e) {
373
373
  return e.value.length <= 0;
374
374
  }
375
- function $t(e) {
375
+ function Ut(e) {
376
376
  if (e.value.length > 0)
377
377
  return e.value[e.value.length - 1];
378
378
  }
@@ -394,21 +394,21 @@ function Kt(e) {
394
394
  e.value = [];
395
395
  }
396
396
  function Nt(e, t, a, o, l, r) {
397
- const s = qe(), n = pe(), _ = Re(), c = p(!1);
397
+ const u = Ve(), n = pe(), p = Se(), s = _(!1);
398
398
  le(() => {
399
399
  let f = !1;
400
- typeof e.value == "boolean" ? f = e.value : f = _.value, c.value = f;
401
- }), Ke(c), Ne(t), We(a), ze(o), He(l), Fe(r);
400
+ typeof e.value == "boolean" ? f = e.value : f = p.value, s.value = f;
401
+ }), Ke(s), Ne(t), We(a), ze(o), He(l), Fe(r);
402
402
  const x = se();
403
403
  le(() => {
404
- x.change(c.value ? "dark" : "light");
404
+ x.change(s.value ? "dark" : "light");
405
405
  });
406
406
  const D = () => {
407
407
  if (!Ze(r)) {
408
408
  me(r, "waitDlg") || tt(r);
409
409
  return;
410
410
  }
411
- const f = H(s.path);
411
+ const f = F(u.path);
412
412
  if (!f) {
413
413
  console.assert(!1);
414
414
  return;
@@ -428,9 +428,9 @@ function Nt(e, t, a, o, l, r) {
428
428
  D();
429
429
  };
430
430
  N(() => {
431
- window.addEventListener("keydown", y), u.on("backbutton", h);
431
+ window.addEventListener("keydown", y), c.on("backbutton", h);
432
432
  }), K(() => {
433
- window.removeEventListener("keydown", y), u.off("backbutton", h);
433
+ window.removeEventListener("keydown", y), c.off("backbutton", h);
434
434
  });
435
435
  const i = (f) => {
436
436
  e.value = f;
@@ -439,19 +439,33 @@ function Nt(e, t, a, o, l, r) {
439
439
  }, d = (f) => {
440
440
  const m = f;
441
441
  a.value = m[0], o.value = m[1];
442
- }, j = (f) => {
442
+ }, C = (f) => {
443
443
  l.value = f;
444
444
  };
445
445
  we(() => {
446
- u.on("updateDark", i), u.on("updateLocale", w), u.on("updatePermission", d), u.on("updateLastAppPath", j), u.emit("syncGlobalState");
446
+ c.on("updateDark", i), c.on("updateLocale", w), c.on("updatePermission", d), c.on("updateLastAppPath", C), c.emit("syncGlobalState");
447
447
  }), K(() => {
448
- u.off("updateDark", i), u.off("updateLocale", w), u.off("updatePermission", d), u.off("updateLastAppPath", j);
448
+ c.off("updateDark", i), c.off("updateLocale", w), c.off("updatePermission", d), c.off("updateLastAppPath", C);
449
449
  });
450
450
  }
451
451
  function Wt() {
452
+ const { locale: e, t } = X();
453
+ return {
454
+ nameOfVerbObject: (r, u) => e.value === "en" ? `${t(r)} ${t(u)}` : `${t(r)}${t(u)}`,
455
+ nameOfObjectsInstance: (r, u) => {
456
+ const n = [];
457
+ for (const s of r)
458
+ n.push(t(s));
459
+ let p = n.join(" / ");
460
+ return u && (p += ` <${u}>`), p;
461
+ },
462
+ nameOfDeleteObjectText: (r) => t("dlg.common.deleteObjectText", { name: t(r) })
463
+ };
464
+ }
465
+ function Xt() {
452
466
  const e = Xe();
453
467
  function t(a, o) {
454
- return $e(
468
+ return Ue(
455
469
  e.value,
456
470
  a,
457
471
  o ?? ""
@@ -459,20 +473,17 @@ function Wt() {
459
473
  }
460
474
  return { verifyPermission: t };
461
475
  }
462
- function Xt() {
463
- const e = V(() => !!window.cordova), t = Ve(), a = V(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
464
- function o() {
476
+ function zt() {
477
+ const e = j(() => !!window.cordova), t = je(), a = j(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px"), o = j(() => t.xs.value);
478
+ function l() {
465
479
  return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
466
480
  navigator.userAgent
467
481
  );
468
482
  }
469
- function l() {
470
- return !!t.xs.value;
471
- }
472
- return { sysBarAvail: e, compactWidth: a, isMobile: o, isCurvedScreen: l };
483
+ return { sysBarAvail: e, compactWidth: a, isCurvedScreen: o, isMobile: l };
473
484
  }
474
485
  function J(e, t) {
475
- const a = Ge(), o = V({
486
+ const a = Ge(), o = j({
476
487
  get() {
477
488
  return me(a, e);
478
489
  },
@@ -483,35 +494,35 @@ function J(e, t) {
483
494
  t?.(r), o.value = !0;
484
495
  };
485
496
  return N(() => {
486
- u.on(e, l);
497
+ c.on(e, l);
487
498
  }), K(() => {
488
- u.off(e, l);
499
+ c.off(e, l);
489
500
  }), { open: o };
490
501
  }
491
- const at = /* @__PURE__ */ A({
502
+ const at = /* @__PURE__ */ $({
492
503
  __name: "index",
493
504
  setup(e) {
494
- const { t } = G(), a = p(""), o = p(""), l = p(""), r = p(""), s = p(""), n = p("");
495
- let _ = 0, c = !1;
505
+ const { t } = X(), a = _(""), o = _(""), l = _(""), r = _(""), u = _(""), n = _("");
506
+ let p = 0, s = !1;
496
507
  const x = (h) => {
497
508
  const i = h;
498
- a.value = i.title, o.value = i.text, l.value = i.cancel?.color ?? "primary", r.value = i.cancel?.text ?? t("dlg.common.cancel"), s.value = i.confirm?.color ?? "primary", n.value = i.confirm?.text ?? t("dlg.common.confirm"), _ = i.seq, c = !1, D.value = !0;
509
+ a.value = i.title, o.value = i.text, l.value = i.cancel?.color ?? "primary", r.value = i.cancel?.text ?? t("dlg.common.cancel"), u.value = i.confirm?.color ?? "primary", n.value = i.confirm?.text ?? t("dlg.common.confirm"), p = i.seq, s = !1, D.value = !0;
499
510
  }, { open: D } = J("confirmDlg", x), y = () => {
500
- D.value = !1, c || (u.emit("confirmDlgResult" + _, !0), c = !0);
511
+ D.value = !1, s || (c.emit("confirmDlgResult" + p, !0), s = !0);
501
512
  };
502
- return F(D, (h) => {
503
- !h && !c && (u.emit("confirmDlgResult" + _, !1), c = !0);
513
+ return G(D, (h) => {
514
+ !h && !s && (c.emit("confirmDlgResult" + p, !1), s = !0);
504
515
  }), (h, i) => {
505
- const w = v("v-card-text"), d = v("v-btn"), j = v("v-card-actions"), f = v("v-card"), m = v("v-dialog");
506
- return q(), L(m, {
507
- modelValue: E(D),
508
- "onUpdate:modelValue": i[1] || (i[1] = (C) => W(D) ? D.value = C : null),
516
+ const w = v("v-card-text"), d = v("v-btn"), C = v("v-card-actions"), f = v("v-card"), m = v("v-dialog");
517
+ return V(), I(m, {
518
+ modelValue: A(D),
519
+ "onUpdate:modelValue": i[1] || (i[1] = (O) => W(D) ? D.value = O : null),
509
520
  attach: "",
510
521
  "max-width": "600px",
511
522
  transition: "dialog-top-transition",
512
523
  onKeydown: [
513
- z(M(y, ["stop", "prevent"]), ["enter"]),
514
- i[2] || (i[2] = z(M((C) => D.value = !1, ["stop", "prevent"]), ["esc"]))
524
+ H(M(y, ["stop", "prevent"]), ["enter"]),
525
+ i[2] || (i[2] = H(M((O) => D.value = !1, ["stop", "prevent"]), ["esc"]))
515
526
  ]
516
527
  }, {
517
528
  default: g(() => [
@@ -519,29 +530,29 @@ const at = /* @__PURE__ */ A({
519
530
  default: g(() => [
520
531
  b(w, null, {
521
532
  default: g(() => [
522
- B(R(o.value), 1)
533
+ L(S(o.value), 1)
523
534
  ]),
524
535
  _: 1
525
536
  }),
526
- b(j, { class: "d-flex justify-end" }, {
537
+ b(C, { class: "d-flex justify-end" }, {
527
538
  default: g(() => [
528
539
  b(d, {
529
540
  color: l.value,
530
541
  variant: "text",
531
- onClick: i[0] || (i[0] = (C) => D.value = !1)
542
+ onClick: i[0] || (i[0] = (O) => D.value = !1)
532
543
  }, {
533
544
  default: g(() => [
534
- B(R(r.value), 1)
545
+ L(S(r.value), 1)
535
546
  ]),
536
547
  _: 1
537
548
  }, 8, ["color"]),
538
549
  b(d, {
539
- color: s.value,
550
+ color: u.value,
540
551
  variant: "text",
541
552
  onClick: y
542
553
  }, {
543
554
  default: g(() => [
544
- B(R(n.value), 1)
555
+ L(S(n.value), 1)
545
556
  ]),
546
557
  _: 1
547
558
  }, 8, ["color"])
@@ -556,21 +567,21 @@ const at = /* @__PURE__ */ A({
556
567
  }, 8, ["modelValue", "onKeydown"]);
557
568
  };
558
569
  }
559
- }), ot = /* @__PURE__ */ A({
570
+ }), ot = /* @__PURE__ */ $({
560
571
  __name: "index",
561
572
  props: {
562
573
  open: { type: Boolean, default: !0 },
563
574
  zIndex: { default: 1 }
564
575
  },
565
576
  setup(e) {
566
- const { backgroundColor2: t } = Oe(), a = V(() => ({
577
+ const { backgroundColor2: t } = Re(), a = j(() => ({
567
578
  background: t.value,
568
579
  zIndex: e.zIndex
569
580
  }));
570
581
  let o = 0;
571
- return (l, r) => (q(), L(ke, { name: "fade" }, {
582
+ return (l, r) => (V(), I(ke, { name: "fade" }, {
572
583
  default: g(() => [
573
- e.open ? (q(), P("div", {
584
+ e.open ? (V(), P("div", {
574
585
  key: W(o) ? ++o.value : ++o,
575
586
  class: "x-cont",
576
587
  style: ue(a.value)
@@ -599,7 +610,7 @@ const at = /* @__PURE__ */ A({
599
610
  for (const [o, l] of t)
600
611
  a[o] = l;
601
612
  return a;
602
- }, lt = /* @__PURE__ */ oe(ot, [["__scopeId", "data-v-83c3cd1d"]]), nt = /* @__PURE__ */ A({
613
+ }, lt = /* @__PURE__ */ oe(ot, [["__scopeId", "data-v-83c3cd1d"]]), nt = /* @__PURE__ */ $({
603
614
  __name: "item",
604
615
  props: {
605
616
  id: {},
@@ -609,10 +620,10 @@ const at = /* @__PURE__ */ A({
609
620
  },
610
621
  emits: ["timeout"],
611
622
  setup(e, { emit: t }) {
612
- const a = V(() => ({
623
+ const a = j(() => ({
613
624
  width: "calc(100% - 64px)",
614
625
  overflowWrap: "break-word"
615
- })), o = V(() => {
626
+ })), o = j(() => {
616
627
  switch (e.type) {
617
628
  case "success":
618
629
  return "mdi-check-circle";
@@ -625,30 +636,30 @@ const at = /* @__PURE__ */ A({
625
636
  default:
626
637
  return "";
627
638
  }
628
- }), l = p(!0), r = t;
639
+ }), l = _(!0), r = t;
629
640
  return N(() => {
630
641
  setTimeout(() => {
631
642
  r("timeout", e.id);
632
643
  }, e.timeout);
633
- }), F(l, (s) => {
634
- s || r("timeout", e.id);
635
- }), (s, n) => {
636
- const _ = v("v-icon"), c = v("v-sheet");
637
- return q(), L(c, {
644
+ }), G(l, (u) => {
645
+ u || r("timeout", e.id);
646
+ }), (u, n) => {
647
+ const p = v("v-icon"), s = v("v-sheet");
648
+ return V(), I(s, {
638
649
  class: "x-item d-flex align-center py-2 mb-2",
639
650
  color: e.type,
640
651
  elevation: 1
641
652
  }, {
642
653
  default: g(() => [
643
- o.value ? (q(), L(_, {
654
+ o.value ? (V(), I(p, {
644
655
  key: 0,
645
656
  class: "mx-1",
646
657
  icon: o.value
647
658
  }, null, 8, ["icon"])) : ee("", !0),
648
659
  k("div", {
649
660
  style: ue(a.value)
650
- }, R(e.text), 5),
651
- b(_, {
661
+ }, S(e.text), 5),
662
+ b(p, {
652
663
  class: "mx-1",
653
664
  icon: "mdi-close",
654
665
  onClick: n[0] || (n[0] = (x) => r("timeout", e.id))
@@ -658,83 +669,83 @@ const at = /* @__PURE__ */ A({
658
669
  }, 8, ["color"]);
659
670
  };
660
671
  }
661
- }), rt = /* @__PURE__ */ oe(nt, [["__scopeId", "data-v-f1f60167"]]), ut = /* @__PURE__ */ A({
672
+ }), rt = /* @__PURE__ */ oe(nt, [["__scopeId", "data-v-f1f60167"]]), ut = /* @__PURE__ */ $({
662
673
  __name: "index",
663
674
  setup(e) {
664
- const t = p([]);
675
+ const t = _([]);
665
676
  N(() => {
666
- u.on("message", a);
677
+ c.on("message", a);
667
678
  }), K(() => {
668
- u.off("message", a);
679
+ c.off("message", a);
669
680
  });
670
681
  const a = (n) => {
671
- const { type: _, text: c, timeout: x } = n;
672
- r(_, c, x);
682
+ const { type: p, text: s, timeout: x } = n;
683
+ r(p, s, x);
673
684
  }, o = (n) => {
674
- s(n);
685
+ u(n);
675
686
  };
676
687
  let l = 0;
677
- const r = (n, _, c) => {
688
+ const r = (n, p, s) => {
678
689
  const x = l++;
679
- t.value.push({ id: x, type: n, text: _, timeout: c });
680
- }, s = (n) => {
681
- const _ = t.value.findIndex((c) => c.id === n);
682
- _ >= 0 && t.value.splice(_, 1);
690
+ t.value.push({ id: x, type: n, text: p, timeout: s });
691
+ }, u = (n) => {
692
+ const p = t.value.findIndex((s) => s.id === n);
693
+ p >= 0 && t.value.splice(p, 1);
683
694
  };
684
- return (n, _) => (q(), P("div", {
695
+ return (n, p) => (V(), P("div", {
685
696
  class: "x-cont d-flex flex-column-reverse align-center",
686
- onClick: _[0] || (_[0] = M(() => {
697
+ onClick: p[0] || (p[0] = M(() => {
687
698
  }, ["stop"]))
688
699
  }, [
689
- (q(!0), P(De, null, Ce(t.value, (c) => (q(), L(rt, {
690
- id: c.id,
691
- key: c.id,
692
- text: c.text,
693
- timeout: c.timeout,
694
- type: c.type,
700
+ (V(!0), P(De, null, Oe(t.value, (s) => (V(), I(rt, {
701
+ id: s.id,
702
+ key: s.id,
703
+ text: s.text,
704
+ timeout: s.timeout,
705
+ type: s.type,
695
706
  onTimeout: o
696
707
  }, null, 8, ["id", "text", "timeout", "type"]))), 128))
697
708
  ]));
698
709
  }
699
- }), ct = /* @__PURE__ */ oe(ut, [["__scopeId", "data-v-b482df18"]]), st = /* @__PURE__ */ A({
710
+ }), ct = /* @__PURE__ */ oe(ut, [["__scopeId", "data-v-b482df18"]]), st = /* @__PURE__ */ $({
700
711
  __name: "index",
701
712
  setup(e) {
702
- const { t } = G(), a = p(""), o = p(0), l = p(), r = p(-1 / 0), s = p(1 / 0), n = p(1);
703
- let _ = 0, c = !1;
713
+ const { t } = X(), a = _(""), o = _(0), l = _(), r = _(-1 / 0), u = _(1 / 0), n = _(1);
714
+ let p = 0, s = !1;
704
715
  const x = ce("target"), D = async (w) => {
705
- a.value = w.title, o.value = w.value, l.value = w.precision, r.value = w.min, s.value = w.max, n.value = w.step, _ = w.seq, c = !1, y.value = !0, await X(() => !!x.value), x.value.focus();
706
- }, { open: y } = J("numberDlg", D), h = p(!1), i = () => {
707
- y.value = !1, c || (u.emit(`numberDlgResult${_}`, o.value), c = !0);
716
+ a.value = w.title, o.value = w.value, l.value = w.precision, r.value = w.min, u.value = w.max, n.value = w.step, p = w.seq, s = !1, y.value = !0, await z(() => !!x.value), x.value.focus();
717
+ }, { open: y } = J("numberDlg", D), h = _(!1), i = () => {
718
+ y.value = !1, s || (c.emit(`numberDlgResult${p}`, o.value), s = !0);
708
719
  };
709
- return F(y, (w) => {
710
- !w && !c && (u.emit(`numberDlgResult${_}`, void 0), c = !0);
720
+ return G(y, (w) => {
721
+ !w && !s && (c.emit(`numberDlgResult${p}`, void 0), s = !0);
711
722
  }), (w, d) => {
712
- const j = v("v-number-input"), f = v("v-btn"), m = v("v-card-actions"), C = v("v-form"), Q = v("v-card"), Y = v("v-dialog");
713
- return q(), L(Y, {
714
- modelValue: E(y),
715
- "onUpdate:modelValue": d[3] || (d[3] = (S) => W(y) ? y.value = S : null),
723
+ const C = v("v-number-input"), f = v("v-btn"), m = v("v-card-actions"), O = v("v-form"), Q = v("v-card"), Y = v("v-dialog");
724
+ return V(), I(Y, {
725
+ modelValue: A(y),
726
+ "onUpdate:modelValue": d[3] || (d[3] = (q) => W(y) ? y.value = q : null),
716
727
  attach: "",
717
728
  "max-width": "600px",
718
729
  transition: "dialog-top-transition",
719
- onKeydown: d[4] || (d[4] = z(M((S) => y.value = !1, ["stop", "prevent"]), ["esc"]))
730
+ onKeydown: d[4] || (d[4] = H(M((q) => y.value = !1, ["stop", "prevent"]), ["esc"]))
720
731
  }, {
721
732
  default: g(() => [
722
733
  b(Q, { title: a.value }, {
723
734
  default: g(() => [
724
- b(C, {
735
+ b(O, {
725
736
  modelValue: h.value,
726
- "onUpdate:modelValue": d[2] || (d[2] = (S) => h.value = S),
737
+ "onUpdate:modelValue": d[2] || (d[2] = (q) => h.value = q),
727
738
  class: "mx-3",
728
739
  onSubmit: M(i, ["prevent"])
729
740
  }, {
730
741
  default: g(() => [
731
- b(j, {
742
+ b(C, {
732
743
  ref_key: "target",
733
744
  ref: x,
734
745
  modelValue: o.value,
735
- "onUpdate:modelValue": d[0] || (d[0] = (S) => o.value = S),
746
+ "onUpdate:modelValue": d[0] || (d[0] = (q) => o.value = q),
736
747
  "control-variant": "stacked",
737
- max: s.value,
748
+ max: u.value,
738
749
  min: r.value,
739
750
  precision: l.value,
740
751
  step: n.value
@@ -744,10 +755,10 @@ const at = /* @__PURE__ */ A({
744
755
  b(f, {
745
756
  color: "primary",
746
757
  variant: "text",
747
- onClick: d[1] || (d[1] = (S) => y.value = !1)
758
+ onClick: d[1] || (d[1] = (q) => y.value = !1)
748
759
  }, {
749
760
  default: g(() => [
750
- B(R(E(t)("dlg.common.cancel")), 1)
761
+ L(S(A(t)("dlg.common.cancel")), 1)
751
762
  ]),
752
763
  _: 1
753
764
  }),
@@ -758,7 +769,7 @@ const at = /* @__PURE__ */ A({
758
769
  variant: "text"
759
770
  }, {
760
771
  default: g(() => [
761
- B(R(E(t)("dlg.common.confirm")), 1)
772
+ L(S(A(t)("dlg.common.confirm")), 1)
762
773
  ]),
763
774
  _: 1
764
775
  }, 8, ["disabled"])
@@ -776,40 +787,40 @@ const at = /* @__PURE__ */ A({
776
787
  }, 8, ["modelValue"]);
777
788
  };
778
789
  }
779
- }), pt = /* @__PURE__ */ A({
790
+ }), pt = /* @__PURE__ */ $({
780
791
  __name: "index",
781
792
  setup(e) {
782
- const { t } = G(), a = p(""), o = p(""), l = p(""), r = p(""), s = p(), n = p(""), _ = p(""), c = p(""), x = p(""), D = p("");
793
+ const { t } = X(), a = _(""), o = _(""), l = _(""), r = _(""), u = _(), n = _(""), p = _(""), s = _(""), x = _(""), D = _("");
783
794
  let y = 0, h = !1;
784
795
  const i = ce("target"), w = async (m) => {
785
- a.value = m.title, o.value = m.text, l.value = m.label, r.value = m.placeholder, s.value = m.rules, n.value = m.value, _.value = m.cancel?.color ?? "primary", c.value = m.cancel?.text ?? t("dlg.common.cancel"), x.value = m.confirm?.color ?? "primary", D.value = m.confirm?.text ?? t("dlg.common.confirm"), y = m.seq, h = !1, d.value = !0, await X(() => !!i.value), i.value.focus();
786
- }, { open: d } = J("promptDlg", w), j = p(!1), f = () => {
787
- d.value = !1, h || (u.emit("promptDlgResult" + y, n.value ?? ""), h = !0);
796
+ a.value = m.title, o.value = m.text, l.value = m.label, r.value = m.placeholder, u.value = m.rules, n.value = m.value, p.value = m.cancel?.color ?? "primary", s.value = m.cancel?.text ?? t("dlg.common.cancel"), x.value = m.confirm?.color ?? "primary", D.value = m.confirm?.text ?? t("dlg.common.confirm"), y = m.seq, h = !1, d.value = !0, await z(() => !!i.value), i.value.focus();
797
+ }, { open: d } = J("promptDlg", w), C = _(!1), f = () => {
798
+ d.value = !1, h || (c.emit("promptDlgResult" + y, n.value ?? ""), h = !0);
788
799
  };
789
- return F(d, (m) => {
790
- !m && !h && (u.emit("promptDlgResult" + y, void 0), h = !0);
791
- }), (m, C) => {
792
- const Q = v("v-card-text"), Y = v("v-text-field"), S = v("v-btn"), be = v("v-card-actions"), ye = v("v-form"), xe = v("v-card"), he = v("v-dialog");
793
- return q(), L(he, {
794
- modelValue: E(d),
795
- "onUpdate:modelValue": C[3] || (C[3] = (I) => W(d) ? d.value = I : null),
800
+ return G(d, (m) => {
801
+ !m && !h && (c.emit("promptDlgResult" + y, void 0), h = !0);
802
+ }), (m, O) => {
803
+ const Q = v("v-card-text"), Y = v("v-text-field"), q = v("v-btn"), be = v("v-card-actions"), ye = v("v-form"), xe = v("v-card"), he = v("v-dialog");
804
+ return V(), I(he, {
805
+ modelValue: A(d),
806
+ "onUpdate:modelValue": O[3] || (O[3] = (B) => W(d) ? d.value = B : null),
796
807
  attach: "",
797
808
  "max-width": "600px",
798
809
  transition: "dialog-top-transition",
799
- onKeydown: C[4] || (C[4] = z(M((I) => d.value = !1, ["stop", "prevent"]), ["esc"]))
810
+ onKeydown: O[4] || (O[4] = H(M((B) => d.value = !1, ["stop", "prevent"]), ["esc"]))
800
811
  }, {
801
812
  default: g(() => [
802
813
  b(xe, { title: a.value }, {
803
814
  default: g(() => [
804
- o.value ? (q(), L(Q, { key: 0 }, {
815
+ o.value ? (V(), I(Q, { key: 0 }, {
805
816
  default: g(() => [
806
- B(R(o.value), 1)
817
+ L(S(o.value), 1)
807
818
  ]),
808
819
  _: 1
809
820
  })) : ee("", !0),
810
821
  b(ye, {
811
- modelValue: j.value,
812
- "onUpdate:modelValue": C[2] || (C[2] = (I) => j.value = I),
822
+ modelValue: C.value,
823
+ "onUpdate:modelValue": O[2] || (O[2] = (B) => C.value = B),
813
824
  class: "mx-3",
814
825
  onSubmit: M(f, ["prevent"])
815
826
  }, {
@@ -818,31 +829,31 @@ const at = /* @__PURE__ */ A({
818
829
  ref_key: "target",
819
830
  ref: i,
820
831
  modelValue: n.value,
821
- "onUpdate:modelValue": C[0] || (C[0] = (I) => n.value = I),
832
+ "onUpdate:modelValue": O[0] || (O[0] = (B) => n.value = B),
822
833
  label: l.value,
823
834
  placeholder: r.value,
824
- rules: s.value
835
+ rules: u.value
825
836
  }, null, 8, ["modelValue", "label", "placeholder", "rules"]),
826
837
  b(be, { class: "d-flex justify-end" }, {
827
838
  default: g(() => [
828
- b(S, {
829
- color: _.value,
839
+ b(q, {
840
+ color: p.value,
830
841
  variant: "text",
831
- onClick: C[1] || (C[1] = (I) => d.value = !1)
842
+ onClick: O[1] || (O[1] = (B) => d.value = !1)
832
843
  }, {
833
844
  default: g(() => [
834
- B(R(c.value), 1)
845
+ L(S(s.value), 1)
835
846
  ]),
836
847
  _: 1
837
848
  }, 8, ["color"]),
838
- b(S, {
849
+ b(q, {
839
850
  color: x.value,
840
- disabled: !j.value,
851
+ disabled: !C.value,
841
852
  type: "submit",
842
853
  variant: "text"
843
854
  }, {
844
855
  default: g(() => [
845
- B(R(D.value), 1)
856
+ L(S(D.value), 1)
846
857
  ]),
847
858
  _: 1
848
859
  }, 8, ["color", "disabled"])
@@ -860,23 +871,23 @@ const at = /* @__PURE__ */ A({
860
871
  }, 8, ["modelValue"]);
861
872
  };
862
873
  }
863
- }), _t = { class: "ma-auto" }, dt = { class: "w-100 h-100 d-flex align-center justify-center" }, it = { class: "text-body-1" }, ft = /* @__PURE__ */ A({
874
+ }), _t = { class: "ma-auto" }, dt = { class: "w-100 h-100 d-flex align-center justify-center" }, it = { class: "text-body-1" }, ft = /* @__PURE__ */ $({
864
875
  __name: "index",
865
876
  setup(e) {
866
- const { t } = G(), a = p(""), o = (s) => {
867
- const n = s;
877
+ const { t } = X(), a = _(""), o = (u) => {
878
+ const n = u;
868
879
  a.value = n.text ?? t("dlg.common.responding"), r.value = !0;
869
880
  }, l = () => {
870
881
  r.value = !1;
871
882
  }, { open: r } = J("waitDlg", o);
872
883
  return N(() => {
873
- u.on("closeWaitDlg", l);
884
+ c.on("closeWaitDlg", l);
874
885
  }), K(() => {
875
- u.off("closeWaitDlg", l);
876
- }), (s, n) => {
877
- const _ = v("v-card"), c = v("v-dialog");
878
- return q(), L(c, {
879
- modelValue: E(r),
886
+ c.off("closeWaitDlg", l);
887
+ }), (u, n) => {
888
+ const p = v("v-card"), s = v("v-dialog");
889
+ return V(), I(s, {
890
+ modelValue: A(r),
880
891
  "onUpdate:modelValue": n[0] || (n[0] = (x) => W(r) ? r.value = x : null),
881
892
  attach: "",
882
893
  fullscreen: "",
@@ -885,14 +896,14 @@ const at = /* @__PURE__ */ A({
885
896
  }, {
886
897
  default: g(() => [
887
898
  k("div", _t, [
888
- b(_, {
899
+ b(p, {
889
900
  height: "80px",
890
901
  loading: "",
891
902
  width: "300px"
892
903
  }, {
893
904
  default: g(() => [
894
905
  k("div", dt, [
895
- k("span", it, R(a.value), 1)
906
+ k("span", it, S(a.value), 1)
896
907
  ])
897
908
  ]),
898
909
  _: 1
@@ -911,42 +922,42 @@ const at = /* @__PURE__ */ A({
911
922
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + t + (t.split("/").length !== a ? ". Note that variables only represent file names one level deep." : ""))));
912
923
  });
913
924
  };
914
- async function zt(e) {
915
- return (await vt(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.is028vmn.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.bda4v4ye.js") }), `./locales/${e}/index.ts`, 4)).default;
925
+ async function Ht(e) {
926
+ return (await vt(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.b4pdkbnt.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.jx2nrjh0.js") }), `./locales/${e}/index.ts`, 4)).default;
916
927
  }
917
- const Ht = { install: gt };
928
+ const Ft = { install: gt };
918
929
  export {
919
- Ue as Permission,
930
+ Ee as Permission,
920
931
  Pe as addView,
921
- Ae as appAppear,
932
+ $e as appAppear,
922
933
  Kt as clearViews,
923
- Rt as closeWaitDlg,
934
+ St as closeWaitDlg,
924
935
  kt as createAxios,
925
- Ht as default,
936
+ Ft as default,
926
937
  et as delView,
927
- u as eventBus,
938
+ c as eventBus,
928
939
  Dt as globalObjects,
929
940
  me as hasView,
930
- It as injectDark,
931
- Et as injectLastAppPath,
941
+ Bt as injectDark,
942
+ At as injectLastAppPath,
932
943
  Mt as injectLocale,
933
- At as injectPermissionChecksum,
944
+ $t as injectPermissionChecksum,
934
945
  Xe as injectPermissionObjects,
935
946
  Ge as injectViews,
936
947
  Ze as isEmpty,
937
948
  re as isExist,
938
- $t as lastView,
939
- zt as loadLocaleMessageEssential,
940
- H as matchRouteMeta,
941
- Ot as messageError,
949
+ Ut as lastView,
950
+ Ht as loadLocaleMessageEssential,
951
+ F as matchRouteMeta,
952
+ Rt as messageError,
942
953
  Tt as messageInfo,
943
- Lt as messageSuccess,
944
- Bt as messageWarning,
945
- Ut as onBeforeEach,
946
- Vt as openConfirmDlg,
947
- qt as openNumberDlg,
948
- jt as openPromptDlg,
949
- St as openWaitDlg,
954
+ It as messageSuccess,
955
+ Lt as messageWarning,
956
+ Et as onBeforeEach,
957
+ jt as openConfirmDlg,
958
+ Vt as openNumberDlg,
959
+ Ct as openPromptDlg,
960
+ qt as openWaitDlg,
950
961
  tt as popView,
951
962
  Ke as provideDark,
952
963
  He as provideLastAppPath,
@@ -955,12 +966,13 @@ export {
955
966
  We as providePermissionObjects,
956
967
  Fe as provideViews,
957
968
  Z as routeTransName,
958
- Oe as useColor,
969
+ Re as useColor,
959
970
  Nt as useMicroApp,
960
- Wt as usePermission,
961
- Xt as useSystem,
971
+ Wt as useNameHelper,
972
+ Xt as usePermission,
973
+ zt as useSystem,
962
974
  J as useViewStack,
963
- $e as verifyPermission,
964
- Ct as waitMs,
965
- X as waitUtil
975
+ Ue as verifyPermission,
976
+ Ot as waitMs,
977
+ z as waitUtil
966
978
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
3
  "private": false,
4
- "version": "0.9.4",
4
+ "version": "0.9.6",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",