x-essential-lib 0.7.4 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/composables/microApp.d.ts +3 -1
- package/dist/composables/system.d.ts +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +428 -398
- package/dist/utils/provideInject.d.ts +11 -0
- package/package.json +1 -3
- package/dist/store/global.d.ts +0 -20
- package/dist/store/index.d.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -1,42 +1,67 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.id="x-essential-lib",a.appendChild(document.createTextNode('.x-cont[data-v-7ab74c70]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-7ab74c70]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-7ab74c70]{transform-origin:20px 20px;animation:lds-spinner-7ab74c70 1.2s linear infinite}.lds-spinner div[data-v-7ab74c70]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-7ab74c70]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-7ab74c70]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-7ab74c70]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-7ab74c70]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-7ab74c70]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-7ab74c70]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-7ab74c70]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-7ab74c70]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-7ab74c70]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-7ab74c70]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-7ab74c70]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-7ab74c70]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-7ab74c70{0%{opacity:1}to{opacity:0}}.x-item[data-v-d5cfe252]{width:600px}@media (max-width: 600px){.x-item[data-v-d5cfe252]{width:calc(100vw - 16px)}}.x-cont[data-v-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,
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { useTheme as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const e = P(), t = y(() => e.global.current.value.colors.primary), a = y(() => e.global.current.value.colors.secondary), r = y(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), o = y(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = y(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), n = y(() => e.current.value.dark ? "#303030" : "#f6f6f6"), c = y(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
2
|
+
import { computed as y, getCurrentScope as xe, onScopeDispose as ke, unref as $, ref as f, watchEffect as be, getCurrentInstance as Ce, onMounted as O, provide as I, inject as T, watch as N, onBeforeUnmount as W, onBeforeMount as Le, defineComponent as E, resolveComponent as h, openBlock as C, createBlock as R, isRef as Y, withKeys as F, withModifiers as H, withCtx as w, createVNode as k, createTextVNode as q, toDisplayString as j, createElementBlock as Q, normalizeStyle as le, createElementVNode as m, createCommentVNode as ce, Fragment as De, renderList as Ae, useTemplateRef as Me } from "vue";
|
|
3
|
+
import { useI18n as P } from "vue-i18n";
|
|
4
|
+
import { useTheme as ee, useDisplay as Se } from "vuetify";
|
|
5
|
+
import { useRouter as ue, useRoute as je } from "vue-router";
|
|
6
|
+
import Re from "axios";
|
|
7
|
+
function Bt() {
|
|
8
|
+
const e = ee(), t = y(() => e.global.current.value.colors.primary), a = y(() => e.global.current.value.colors.secondary), n = y(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), o = y(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = y(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), r = y(() => e.current.value.dark ? "#303030" : "#f6f6f6"), c = y(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
10
9
|
return {
|
|
11
10
|
primaryColor: t,
|
|
12
11
|
secondaryColor: a,
|
|
13
|
-
backgroundColor0:
|
|
12
|
+
backgroundColor0: n,
|
|
14
13
|
backgroundColor1: o,
|
|
15
14
|
backgroundColor2: l,
|
|
16
|
-
highlightColor:
|
|
15
|
+
highlightColor: r,
|
|
17
16
|
borderColor: c
|
|
18
17
|
};
|
|
19
18
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
function qe(e) {
|
|
20
|
+
return xe() ? (ke(e), !0) : !1;
|
|
21
|
+
}
|
|
22
|
+
function Ve(e) {
|
|
23
|
+
return typeof e == "function" ? e() : $(e);
|
|
24
|
+
}
|
|
25
|
+
const Oe = typeof window < "u" && typeof document < "u";
|
|
26
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
27
|
+
const Ie = Oe ? window : void 0;
|
|
28
|
+
function Te() {
|
|
29
|
+
const e = f(!1), t = Ce();
|
|
30
|
+
return t && O(() => {
|
|
31
|
+
e.value = !0;
|
|
32
|
+
}, t), e;
|
|
33
|
+
}
|
|
34
|
+
function Ee(e) {
|
|
35
|
+
const t = Te();
|
|
36
|
+
return y(() => (t.value, !!e()));
|
|
37
|
+
}
|
|
38
|
+
function Be(e, t = {}) {
|
|
39
|
+
const { window: a = Ie } = t, n = Ee(() => a && "matchMedia" in a && typeof a.matchMedia == "function");
|
|
40
|
+
let o;
|
|
41
|
+
const l = f(!1), r = (s) => {
|
|
42
|
+
l.value = s.matches;
|
|
43
|
+
}, c = () => {
|
|
44
|
+
o && ("removeEventListener" in o ? o.removeEventListener("change", r) : o.removeListener(r));
|
|
45
|
+
}, u = be(() => {
|
|
46
|
+
n.value && (c(), o = a.matchMedia(Ve(e)), "addEventListener" in o ? o.addEventListener("change", r) : o.addListener(r), l.value = o.matches);
|
|
47
|
+
});
|
|
48
|
+
return qe(() => {
|
|
49
|
+
u(), c(), o = void 0;
|
|
50
|
+
}), l;
|
|
51
|
+
}
|
|
52
|
+
function Ue(e) {
|
|
53
|
+
return Be("(prefers-color-scheme: dark)", e);
|
|
54
|
+
}
|
|
30
55
|
/*! js-cookie v3.0.5 | MIT */
|
|
31
|
-
function
|
|
56
|
+
function X(e) {
|
|
32
57
|
for (var t = 1; t < arguments.length; t++) {
|
|
33
58
|
var a = arguments[t];
|
|
34
|
-
for (var
|
|
35
|
-
e[
|
|
59
|
+
for (var n in a)
|
|
60
|
+
e[n] = a[n];
|
|
36
61
|
}
|
|
37
62
|
return e;
|
|
38
63
|
}
|
|
39
|
-
var
|
|
64
|
+
var We = {
|
|
40
65
|
read: function(e) {
|
|
41
66
|
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
42
67
|
},
|
|
@@ -47,48 +72,48 @@ var Me = {
|
|
|
47
72
|
);
|
|
48
73
|
}
|
|
49
74
|
};
|
|
50
|
-
function
|
|
51
|
-
function a(o, l,
|
|
75
|
+
function J(e, t) {
|
|
76
|
+
function a(o, l, r) {
|
|
52
77
|
if (!(typeof document > "u")) {
|
|
53
|
-
|
|
78
|
+
r = X({}, t, r), typeof r.expires == "number" && (r.expires = new Date(Date.now() + r.expires * 864e5)), r.expires && (r.expires = r.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
54
79
|
var c = "";
|
|
55
|
-
for (var u in
|
|
56
|
-
|
|
80
|
+
for (var u in r)
|
|
81
|
+
r[u] && (c += "; " + u, r[u] !== !0 && (c += "=" + r[u].split(";")[0]));
|
|
57
82
|
return document.cookie = o + "=" + e.write(l, o) + c;
|
|
58
83
|
}
|
|
59
84
|
}
|
|
60
|
-
function
|
|
85
|
+
function n(o) {
|
|
61
86
|
if (!(typeof document > "u" || arguments.length && !o)) {
|
|
62
|
-
for (var l = document.cookie ? document.cookie.split("; ") : [],
|
|
87
|
+
for (var l = document.cookie ? document.cookie.split("; ") : [], r = {}, c = 0; c < l.length; c++) {
|
|
63
88
|
var u = l[c].split("="), s = u.slice(1).join("=");
|
|
64
89
|
try {
|
|
65
90
|
var g = decodeURIComponent(u[0]);
|
|
66
|
-
if (
|
|
91
|
+
if (r[g] = e.read(s, g), o === g)
|
|
67
92
|
break;
|
|
68
93
|
} catch {
|
|
69
94
|
}
|
|
70
95
|
}
|
|
71
|
-
return o ?
|
|
96
|
+
return o ? r[o] : r;
|
|
72
97
|
}
|
|
73
98
|
}
|
|
74
99
|
return Object.create(
|
|
75
100
|
{
|
|
76
101
|
set: a,
|
|
77
|
-
get:
|
|
102
|
+
get: n,
|
|
78
103
|
remove: function(o, l) {
|
|
79
104
|
a(
|
|
80
105
|
o,
|
|
81
106
|
"",
|
|
82
|
-
|
|
107
|
+
X({}, l, {
|
|
83
108
|
expires: -1
|
|
84
109
|
})
|
|
85
110
|
);
|
|
86
111
|
},
|
|
87
112
|
withAttributes: function(o) {
|
|
88
|
-
return
|
|
113
|
+
return J(this.converter, X({}, this.attributes, o));
|
|
89
114
|
},
|
|
90
115
|
withConverter: function(o) {
|
|
91
|
-
return
|
|
116
|
+
return J(X({}, this.converter, o), this.attributes);
|
|
92
117
|
}
|
|
93
118
|
},
|
|
94
119
|
{
|
|
@@ -97,127 +122,127 @@ function Q(e, t) {
|
|
|
97
122
|
}
|
|
98
123
|
);
|
|
99
124
|
}
|
|
100
|
-
var
|
|
101
|
-
function
|
|
102
|
-
const t =
|
|
125
|
+
var V = J(We, { path: "/" });
|
|
126
|
+
function Ut(e) {
|
|
127
|
+
const t = Re.create({
|
|
103
128
|
timeout: 6e3
|
|
104
129
|
});
|
|
105
130
|
return t.defaults.baseURL = e.baseUrl, t.interceptors.request.use(
|
|
106
|
-
(a) =>
|
|
131
|
+
(a) => He(a),
|
|
107
132
|
(a) => {
|
|
108
|
-
|
|
133
|
+
$e(a, e.onError);
|
|
109
134
|
}
|
|
110
135
|
), t.interceptors.response.use(
|
|
111
|
-
(a) =>
|
|
112
|
-
(a) =>
|
|
136
|
+
(a) => Ke(a),
|
|
137
|
+
(a) => ze(a, e.onError)
|
|
113
138
|
), t;
|
|
114
139
|
}
|
|
115
|
-
function
|
|
116
|
-
const t =
|
|
140
|
+
function He(e) {
|
|
141
|
+
const t = V.get("accessToken") ?? "";
|
|
117
142
|
return e.headers.Authorization = "Basic " + t, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
|
|
118
143
|
}
|
|
119
|
-
function
|
|
144
|
+
function $e(e, t) {
|
|
120
145
|
console.error(e), t("request timeout");
|
|
121
146
|
}
|
|
122
|
-
function
|
|
147
|
+
function Ke(e) {
|
|
123
148
|
return e.data;
|
|
124
149
|
}
|
|
125
|
-
function
|
|
150
|
+
function ze(e, t) {
|
|
126
151
|
var o, l;
|
|
127
|
-
const
|
|
128
|
-
return
|
|
129
|
-
code:
|
|
130
|
-
message:
|
|
152
|
+
const n = e.response;
|
|
153
|
+
return n && (n.status === 401 && Xe(), (o = n.data) != null && o.message ? t((l = n.data) == null ? void 0 : l.message) : t({
|
|
154
|
+
code: n.status,
|
|
155
|
+
message: n.statusText
|
|
131
156
|
})), Promise.reject(e);
|
|
132
157
|
}
|
|
133
|
-
function
|
|
134
|
-
|
|
158
|
+
function Xe() {
|
|
159
|
+
V.remove("accessToken"), V.remove("refreshToken"), V.remove("activeOrg"), ue().replace({ path: "/passport/login" });
|
|
135
160
|
}
|
|
136
|
-
function
|
|
161
|
+
function Fe(e) {
|
|
137
162
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, a) {
|
|
138
|
-
var
|
|
139
|
-
|
|
163
|
+
var n = e.get(t);
|
|
164
|
+
n ? n.push(a) : e.set(t, [a]);
|
|
140
165
|
}, off: function(t, a) {
|
|
141
|
-
var
|
|
142
|
-
|
|
166
|
+
var n = e.get(t);
|
|
167
|
+
n && (a ? n.splice(n.indexOf(a) >>> 0, 1) : e.set(t, []));
|
|
143
168
|
}, emit: function(t, a) {
|
|
144
|
-
var
|
|
145
|
-
|
|
169
|
+
var n = e.get(t);
|
|
170
|
+
n && n.slice().map(function(o) {
|
|
146
171
|
o(a);
|
|
147
|
-
}), (
|
|
172
|
+
}), (n = e.get("*")) && n.slice().map(function(o) {
|
|
148
173
|
o(t, a);
|
|
149
174
|
});
|
|
150
175
|
} };
|
|
151
176
|
}
|
|
152
177
|
const p = function() {
|
|
153
|
-
return window.eventBus || (window.eventBus =
|
|
178
|
+
return window.eventBus || (window.eventBus = Fe()), window.eventBus;
|
|
154
179
|
}();
|
|
155
|
-
async function
|
|
180
|
+
async function Wt(e) {
|
|
156
181
|
return new Promise((t) => {
|
|
157
182
|
setTimeout(t, e);
|
|
158
183
|
});
|
|
159
184
|
}
|
|
160
|
-
async function
|
|
161
|
-
const
|
|
185
|
+
async function te(e, t, a) {
|
|
186
|
+
const n = Date.now();
|
|
162
187
|
return new Promise((o) => {
|
|
163
188
|
const l = async () => {
|
|
164
|
-
e() ? o(!0) : t && Date.now() -
|
|
189
|
+
e() ? o(!0) : t && Date.now() - n > t ? o(!1) : setTimeout(l, a ?? 30);
|
|
165
190
|
};
|
|
166
191
|
l();
|
|
167
192
|
});
|
|
168
193
|
}
|
|
169
|
-
function
|
|
194
|
+
function Ze(e, t) {
|
|
170
195
|
const a = document.getElementById("single-spa-application:" + e);
|
|
171
196
|
a && (a.classList.remove("app-left", "app-right", "app-reset"), t ? a.classList.add("app-left") : a.classList.add("app-right"), setTimeout(() => {
|
|
172
197
|
a.classList.add("app-reset");
|
|
173
198
|
}, 50));
|
|
174
199
|
}
|
|
175
|
-
let
|
|
176
|
-
function
|
|
200
|
+
let ne = Date.now();
|
|
201
|
+
function pe() {
|
|
177
202
|
const e = Date.now();
|
|
178
|
-
return e -
|
|
203
|
+
return e - ne > 500 ? (ne = e, !0) : !1;
|
|
179
204
|
}
|
|
180
|
-
let
|
|
181
|
-
function
|
|
182
|
-
return ++
|
|
205
|
+
let Ne = 0;
|
|
206
|
+
function se() {
|
|
207
|
+
return ++Ne;
|
|
183
208
|
}
|
|
184
|
-
async function
|
|
185
|
-
if (!
|
|
209
|
+
async function Ht(e) {
|
|
210
|
+
if (!pe())
|
|
186
211
|
return;
|
|
187
212
|
let t = !1, a;
|
|
188
|
-
const
|
|
213
|
+
const n = (l) => {
|
|
189
214
|
a = l, t = !0;
|
|
190
|
-
}, o =
|
|
191
|
-
return p.on("confirmDlgResult" + o,
|
|
215
|
+
}, o = se();
|
|
216
|
+
return p.on("confirmDlgResult" + o, n), p.emit("confirmDlg", { ...e, seq: o }), await te(() => t), p.off("confirmDlgResult" + o, n), a;
|
|
192
217
|
}
|
|
193
|
-
async function
|
|
194
|
-
if (!
|
|
218
|
+
async function $t(e) {
|
|
219
|
+
if (!pe())
|
|
195
220
|
return;
|
|
196
221
|
let t = !1, a;
|
|
197
|
-
const
|
|
222
|
+
const n = (l) => {
|
|
198
223
|
a = l, t = !0;
|
|
199
|
-
}, o =
|
|
200
|
-
return p.on("promptDlgResult" + o,
|
|
224
|
+
}, o = se();
|
|
225
|
+
return p.on("promptDlgResult" + o, n), p.emit("promptDlg", { ...e, seq: o }), await te(() => t), p.off("promptDlgResult" + o, n), a;
|
|
201
226
|
}
|
|
202
|
-
function
|
|
227
|
+
function Kt(e) {
|
|
203
228
|
p.emit("openWaitDlg", { text: e });
|
|
204
229
|
}
|
|
205
|
-
function
|
|
230
|
+
function zt() {
|
|
206
231
|
p.emit("closeWaitDlg");
|
|
207
232
|
}
|
|
208
|
-
function
|
|
233
|
+
function Xt(e, t) {
|
|
209
234
|
p.emit("message", { type: "error", text: e, timeout: t });
|
|
210
235
|
}
|
|
211
|
-
function
|
|
236
|
+
function Ft(e, t) {
|
|
212
237
|
p.emit("message", { type: "info", text: e, timeout: t });
|
|
213
238
|
}
|
|
214
|
-
function
|
|
239
|
+
function Zt(e, t) {
|
|
215
240
|
p.emit("message", { type: "success", text: e, timeout: t });
|
|
216
241
|
}
|
|
217
|
-
function
|
|
242
|
+
function Nt(e, t) {
|
|
218
243
|
p.emit("message", { type: "warning", text: e, timeout: t });
|
|
219
244
|
}
|
|
220
|
-
var
|
|
245
|
+
var Ge = /* @__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))(Ge || {});
|
|
221
246
|
function re(e, t) {
|
|
222
247
|
if (!e)
|
|
223
248
|
return !1;
|
|
@@ -231,14 +256,44 @@ function re(e, t) {
|
|
|
231
256
|
return !1;
|
|
232
257
|
}), Object.keys(a).length <= 0);
|
|
233
258
|
}
|
|
234
|
-
const
|
|
235
|
-
function
|
|
236
|
-
|
|
259
|
+
const _e = "essentialDark", ie = "essentialLocale", de = "essentialPermissionObjects", fe = "essentialPermissionChecksum", ge = "essentialLastAppPath", ve = "essentialViews";
|
|
260
|
+
function Qe(e) {
|
|
261
|
+
I(_e, e);
|
|
262
|
+
}
|
|
263
|
+
function Je() {
|
|
264
|
+
return T(_e);
|
|
265
|
+
}
|
|
266
|
+
function Ye(e) {
|
|
267
|
+
I(ie, e);
|
|
268
|
+
}
|
|
269
|
+
function Gt() {
|
|
270
|
+
return T(ie);
|
|
271
|
+
}
|
|
272
|
+
function Pe(e) {
|
|
273
|
+
I(de, e);
|
|
274
|
+
}
|
|
275
|
+
function et() {
|
|
276
|
+
return T(de);
|
|
237
277
|
}
|
|
238
|
-
function
|
|
239
|
-
|
|
278
|
+
function tt(e) {
|
|
279
|
+
I(fe, e);
|
|
240
280
|
}
|
|
241
|
-
|
|
281
|
+
function Qt() {
|
|
282
|
+
return T(fe);
|
|
283
|
+
}
|
|
284
|
+
function at(e) {
|
|
285
|
+
I(ge, e);
|
|
286
|
+
}
|
|
287
|
+
function ot() {
|
|
288
|
+
return T(ge);
|
|
289
|
+
}
|
|
290
|
+
function nt(e) {
|
|
291
|
+
I(ve, e);
|
|
292
|
+
}
|
|
293
|
+
function rt() {
|
|
294
|
+
return T(ve);
|
|
295
|
+
}
|
|
296
|
+
const lt = [
|
|
242
297
|
{
|
|
243
298
|
app: "x-passport-mf",
|
|
244
299
|
path: "/passport/login",
|
|
@@ -346,268 +401,234 @@ const Ue = [
|
|
|
346
401
|
mainActive: 2
|
|
347
402
|
}
|
|
348
403
|
];
|
|
349
|
-
function
|
|
404
|
+
function Z(e) {
|
|
350
405
|
let t, a = 0;
|
|
351
|
-
const
|
|
352
|
-
return
|
|
406
|
+
const n = e.split("/").filter((o) => o.trim() !== "");
|
|
407
|
+
return lt.forEach((o) => {
|
|
353
408
|
const l = o.path.split("/").filter((c) => c.trim() !== "");
|
|
354
|
-
let
|
|
355
|
-
for (let c = 0; c <
|
|
356
|
-
|
|
357
|
-
|
|
409
|
+
let r = 0;
|
|
410
|
+
for (let c = 0; c < n.length && !(c >= l.length || n[c] !== l[c]); c++)
|
|
411
|
+
r++;
|
|
412
|
+
r > 0 && r > a && (t = o, a = r);
|
|
358
413
|
}), t;
|
|
359
414
|
}
|
|
360
|
-
const G =
|
|
361
|
-
function
|
|
362
|
-
const a =
|
|
363
|
-
t === "/" && (t = a.
|
|
364
|
-
const
|
|
365
|
-
if (!
|
|
415
|
+
const G = f("");
|
|
416
|
+
function M(e, t) {
|
|
417
|
+
const a = ot();
|
|
418
|
+
t === "/" && (t = a.value);
|
|
419
|
+
const n = Z(e), o = Z(t);
|
|
420
|
+
if (!n) {
|
|
366
421
|
console.assert(!1);
|
|
367
422
|
return;
|
|
368
423
|
}
|
|
369
424
|
if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !o)
|
|
370
425
|
return;
|
|
371
|
-
const l =
|
|
372
|
-
l ?
|
|
426
|
+
const l = n.app === o.app, r = n.path === o.path, c = n.level >= o.level;
|
|
427
|
+
l ? r ? G.value = "" : G.value = c ? "inner-left" : "inner-right" : (G.value = "", Ze(n.app, c));
|
|
373
428
|
}
|
|
374
|
-
function
|
|
375
|
-
return !!
|
|
429
|
+
function ct() {
|
|
430
|
+
return !!V.get("accessToken");
|
|
376
431
|
}
|
|
377
|
-
function
|
|
378
|
-
return !!
|
|
432
|
+
function ut() {
|
|
433
|
+
return !!V.get("activeOrg");
|
|
379
434
|
}
|
|
380
|
-
function
|
|
381
|
-
const
|
|
435
|
+
function Jt(e, t, a) {
|
|
436
|
+
const n = ct(), o = ut(), l = Z(e.path);
|
|
382
437
|
if (!l) {
|
|
383
438
|
console.assert(!1), a();
|
|
384
439
|
return;
|
|
385
440
|
}
|
|
386
441
|
if (l.requiredState === "auth")
|
|
387
|
-
if (
|
|
442
|
+
if (n)
|
|
388
443
|
if (o) {
|
|
389
|
-
const
|
|
390
|
-
|
|
444
|
+
const r = "/main";
|
|
445
|
+
M(r, t.path), a({ path: r });
|
|
391
446
|
} else
|
|
392
|
-
|
|
447
|
+
M(e.path, t.path), a();
|
|
393
448
|
else {
|
|
394
|
-
const
|
|
395
|
-
|
|
449
|
+
const r = "/passport/login";
|
|
450
|
+
M(r, t.path), a({ path: r });
|
|
396
451
|
}
|
|
397
452
|
else if (l.requiredState === "org")
|
|
398
|
-
if (
|
|
453
|
+
if (n)
|
|
399
454
|
if (o)
|
|
400
|
-
|
|
455
|
+
M(e.path, t.path), a();
|
|
401
456
|
else {
|
|
402
|
-
const
|
|
403
|
-
|
|
457
|
+
const r = "/org/joinOrCreate";
|
|
458
|
+
M(r, t.path), a({ path: r });
|
|
404
459
|
}
|
|
405
460
|
else {
|
|
406
|
-
const
|
|
407
|
-
|
|
461
|
+
const r = "/passport/login";
|
|
462
|
+
M(r, t.path), a({ path: r });
|
|
408
463
|
}
|
|
409
|
-
else if (
|
|
464
|
+
else if (n)
|
|
410
465
|
if (o) {
|
|
411
|
-
const
|
|
412
|
-
|
|
466
|
+
const r = "/main";
|
|
467
|
+
M(r, t.path), a({ path: r });
|
|
413
468
|
} else {
|
|
414
|
-
const
|
|
415
|
-
|
|
469
|
+
const r = "/org/joinOrCreate";
|
|
470
|
+
M(r, t.path), a({ path: r });
|
|
416
471
|
}
|
|
417
472
|
else
|
|
418
|
-
|
|
473
|
+
M(e.path, t.path), a();
|
|
419
474
|
}
|
|
420
|
-
function
|
|
475
|
+
function pt(e) {
|
|
421
476
|
return e.value.length <= 0;
|
|
422
477
|
}
|
|
423
|
-
function
|
|
478
|
+
function Yt(e) {
|
|
424
479
|
return e.value.at(-1);
|
|
425
480
|
}
|
|
426
|
-
function
|
|
481
|
+
function me(e, t) {
|
|
427
482
|
return !!e.value.find((a) => a === t);
|
|
428
483
|
}
|
|
429
|
-
function
|
|
430
|
-
const a = e.value.findIndex((
|
|
484
|
+
function st(e, t) {
|
|
485
|
+
const a = e.value.findIndex((n) => n === t);
|
|
431
486
|
a >= 0 && e.value.splice(a, 1), e.value.push(t);
|
|
432
487
|
}
|
|
433
|
-
function
|
|
434
|
-
const a = e.value.findIndex((
|
|
488
|
+
function _t(e, t) {
|
|
489
|
+
const a = e.value.findIndex((n) => n === t);
|
|
435
490
|
a >= 0 && e.value.splice(a, 1);
|
|
436
491
|
}
|
|
437
|
-
function
|
|
492
|
+
function it(e) {
|
|
438
493
|
console.assert(e.value.length > 0), e.value.pop();
|
|
439
494
|
}
|
|
440
|
-
function
|
|
495
|
+
function Pt(e) {
|
|
441
496
|
e.value = [];
|
|
442
497
|
}
|
|
443
|
-
function
|
|
444
|
-
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
e.value = !0;
|
|
456
|
-
}, t), e;
|
|
457
|
-
}
|
|
458
|
-
function Je(e) {
|
|
459
|
-
const t = Qe();
|
|
460
|
-
return y(() => (t.value, !!e()));
|
|
461
|
-
}
|
|
462
|
-
function Ye(e, t = {}) {
|
|
463
|
-
const { window: a = Ne } = t, r = Je(() => a && "matchMedia" in a && typeof a.matchMedia == "function");
|
|
464
|
-
let o;
|
|
465
|
-
const l = _(!1), n = (s) => {
|
|
466
|
-
l.value = s.matches;
|
|
467
|
-
}, c = () => {
|
|
468
|
-
o && ("removeEventListener" in o ? o.removeEventListener("change", n) : o.removeListener(n));
|
|
469
|
-
}, u = ye(() => {
|
|
470
|
-
r.value && (c(), o = a.matchMedia(Ze(e)), "addEventListener" in o ? o.addEventListener("change", n) : o.addListener(n), l.value = o.matches);
|
|
471
|
-
});
|
|
472
|
-
return Fe(() => {
|
|
473
|
-
u(), c(), o = void 0;
|
|
474
|
-
}), l;
|
|
475
|
-
}
|
|
476
|
-
function Pe(e) {
|
|
477
|
-
return Ye("(prefers-color-scheme: dark)", e);
|
|
478
|
-
}
|
|
479
|
-
function et() {
|
|
480
|
-
const e = Le(), t = Z(), a = Pe(), r = y(() => typeof t.dark == "boolean" ? t.dark : a.value), o = y(() => !!window.cordova), l = y(() => e.width.value <= 1280 ? e.width.value + "px" : e.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
|
|
481
|
-
return { dark: r, sysBarAvail: o, compactWidth: l };
|
|
482
|
-
}
|
|
483
|
-
function Ht() {
|
|
484
|
-
const e = De(), t = ce(), a = P(), { dark: r } = et(), o = Z(), l = _e();
|
|
485
|
-
F(
|
|
486
|
-
r,
|
|
487
|
-
(d) => {
|
|
488
|
-
a.global.name.value = d ? "dark" : "light";
|
|
498
|
+
function dt() {
|
|
499
|
+
const e = Je(), t = Ue(), a = y(() => typeof e.value == "boolean" ? e.value : t.value), n = y(() => !!window.cordova), o = Se(), l = y(() => o.width.value <= 1280 ? o.width.value + "px" : o.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
|
|
500
|
+
return { finalDark: a, sysBarAvail: n, compactWidth: l };
|
|
501
|
+
}
|
|
502
|
+
function ea(e, t, a, n, o, l) {
|
|
503
|
+
const r = je(), c = ue();
|
|
504
|
+
Qe(e), Ye(t), Pe(a), tt(n), at(o), nt(l);
|
|
505
|
+
const u = ee(), { finalDark: s } = dt();
|
|
506
|
+
N(
|
|
507
|
+
s,
|
|
508
|
+
(_) => {
|
|
509
|
+
u.global.name.value = _ ? "dark" : "light";
|
|
489
510
|
},
|
|
490
511
|
{ immediate: !0 }
|
|
491
512
|
);
|
|
492
|
-
const
|
|
493
|
-
if (
|
|
494
|
-
|
|
513
|
+
const g = (_) => {
|
|
514
|
+
if (_.key === "Escape") {
|
|
515
|
+
v();
|
|
495
516
|
return;
|
|
496
517
|
}
|
|
497
|
-
},
|
|
518
|
+
}, v = () => {
|
|
498
519
|
var x;
|
|
499
|
-
if (
|
|
500
|
-
|
|
520
|
+
if (!pt(l)) {
|
|
521
|
+
me(l, "waitDlg") || it(l);
|
|
501
522
|
return;
|
|
502
523
|
}
|
|
503
|
-
const
|
|
504
|
-
(
|
|
524
|
+
const _ = Z(r.path);
|
|
525
|
+
(_ == null ? void 0 : _.level) === 0 ? (x = navigator == null ? void 0 : navigator.Backbutton) == null || x.goHome(
|
|
505
526
|
() => {
|
|
506
527
|
},
|
|
507
528
|
() => {
|
|
508
529
|
}
|
|
509
|
-
) :
|
|
530
|
+
) : c.back();
|
|
510
531
|
};
|
|
511
|
-
|
|
512
|
-
window.addEventListener("keydown",
|
|
513
|
-
}),
|
|
514
|
-
window.removeEventListener("keydown",
|
|
532
|
+
O(() => {
|
|
533
|
+
window.addEventListener("keydown", g), p.on("backbutton", v);
|
|
534
|
+
}), W(() => {
|
|
535
|
+
window.removeEventListener("keydown", g), p.off("backbutton", v);
|
|
515
536
|
});
|
|
516
|
-
const
|
|
517
|
-
|
|
518
|
-
},
|
|
519
|
-
|
|
520
|
-
},
|
|
521
|
-
const x =
|
|
522
|
-
|
|
523
|
-
},
|
|
524
|
-
o.
|
|
537
|
+
const L = (_) => {
|
|
538
|
+
e.value = _;
|
|
539
|
+
}, b = (_) => {
|
|
540
|
+
t.value = _;
|
|
541
|
+
}, i = (_) => {
|
|
542
|
+
const x = _;
|
|
543
|
+
a.value = x[0], n.value = x[1];
|
|
544
|
+
}, D = (_) => {
|
|
545
|
+
o.value = _;
|
|
525
546
|
};
|
|
526
|
-
|
|
527
|
-
p.on("updateDark",
|
|
528
|
-
}),
|
|
529
|
-
p.off("updateDark",
|
|
547
|
+
Le(() => {
|
|
548
|
+
p.on("updateDark", L), p.on("updateLocale", b), p.on("updatePermission", i), p.on("updateLastAppPath", D), p.emit("syncGlobalState");
|
|
549
|
+
}), W(() => {
|
|
550
|
+
p.off("updateDark", L), p.off("updateLocale", b), p.off("updatePermission", i), p.off("updateLastAppPath", D);
|
|
530
551
|
});
|
|
531
552
|
}
|
|
532
|
-
function
|
|
533
|
-
const e =
|
|
534
|
-
function t(a,
|
|
535
|
-
const o = e.
|
|
536
|
-
return o ?
|
|
553
|
+
function ta() {
|
|
554
|
+
const e = et();
|
|
555
|
+
function t(a, n) {
|
|
556
|
+
const o = e.value[a];
|
|
557
|
+
return o ? n ? !(!re(o.includes, n) || re(o.excludes, n)) : !0 : !1;
|
|
537
558
|
}
|
|
538
559
|
return { verifyPermission: t };
|
|
539
560
|
}
|
|
540
|
-
function
|
|
541
|
-
const a =
|
|
561
|
+
function ae(e, t) {
|
|
562
|
+
const a = rt(), n = y({
|
|
542
563
|
get() {
|
|
543
|
-
return
|
|
564
|
+
return me(a, e);
|
|
544
565
|
},
|
|
545
566
|
set(l) {
|
|
546
|
-
l ?
|
|
567
|
+
l ? st(a, e) : _t(a, e);
|
|
547
568
|
}
|
|
548
569
|
}), o = (l) => {
|
|
549
|
-
t == null || t(l),
|
|
570
|
+
t == null || t(l), n.value = !0;
|
|
550
571
|
};
|
|
551
|
-
return
|
|
572
|
+
return O(() => {
|
|
552
573
|
p.on(e, o);
|
|
553
|
-
}),
|
|
574
|
+
}), W(() => {
|
|
554
575
|
p.off(e, o);
|
|
555
|
-
}), { open:
|
|
576
|
+
}), { open: n };
|
|
556
577
|
}
|
|
557
|
-
const
|
|
578
|
+
const ft = /* @__PURE__ */ E({
|
|
558
579
|
__name: "index",
|
|
559
580
|
setup(e) {
|
|
560
|
-
const { t } =
|
|
581
|
+
const { t } = P(), a = f(""), n = f(""), o = f(""), l = f(""), r = f(""), c = f("");
|
|
561
582
|
let u = 0, s = !1;
|
|
562
|
-
const g = (
|
|
563
|
-
var
|
|
564
|
-
const
|
|
565
|
-
a.value =
|
|
566
|
-
}, { open:
|
|
567
|
-
|
|
583
|
+
const g = (b) => {
|
|
584
|
+
var D, _, x, A;
|
|
585
|
+
const i = b;
|
|
586
|
+
a.value = i.title, n.value = i.text, o.value = ((D = i.cancel) == null ? void 0 : D.color) ?? "primary", l.value = ((_ = i.cancel) == null ? void 0 : _.text) ?? t("dlg.common.cancel"), r.value = ((x = i.confirm) == null ? void 0 : x.color) ?? "primary", c.value = ((A = i.confirm) == null ? void 0 : A.text) ?? t("dlg.common.confirm"), u = i.seq, s = !1, v.value = !0;
|
|
587
|
+
}, { open: v } = ae("confirmDlg", g), L = () => {
|
|
588
|
+
v.value = !1, s || (p.emit("confirmDlgResult" + u, !0), s = !0);
|
|
568
589
|
};
|
|
569
|
-
return
|
|
570
|
-
!
|
|
571
|
-
}), (
|
|
572
|
-
const
|
|
573
|
-
return C(),
|
|
574
|
-
modelValue:
|
|
575
|
-
"onUpdate:modelValue":
|
|
590
|
+
return N(v, (b) => {
|
|
591
|
+
!b && !s && (p.emit("confirmDlgResult" + u, !1), s = !0);
|
|
592
|
+
}), (b, i) => {
|
|
593
|
+
const D = h("v-card-text"), _ = h("v-btn"), x = h("v-card-actions"), A = h("v-card"), d = h("v-dialog");
|
|
594
|
+
return C(), R(d, {
|
|
595
|
+
modelValue: $(v),
|
|
596
|
+
"onUpdate:modelValue": i[1] || (i[1] = (S) => Y(v) ? v.value = S : null),
|
|
576
597
|
transition: "dialog-top-transition",
|
|
577
598
|
"max-width": "600px",
|
|
578
599
|
onKeydown: [
|
|
579
|
-
|
|
580
|
-
|
|
600
|
+
i[2] || (i[2] = F(H((S) => v.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
601
|
+
F(H(L, ["stop", "prevent"]), ["enter"])
|
|
581
602
|
]
|
|
582
603
|
}, {
|
|
583
604
|
default: w(() => [
|
|
584
|
-
k(
|
|
605
|
+
k(A, { title: a.value }, {
|
|
585
606
|
default: w(() => [
|
|
586
|
-
k(
|
|
607
|
+
k(D, null, {
|
|
587
608
|
default: w(() => [
|
|
588
|
-
j(
|
|
609
|
+
q(j(n.value), 1)
|
|
589
610
|
]),
|
|
590
611
|
_: 1
|
|
591
612
|
}),
|
|
592
|
-
k(
|
|
613
|
+
k(x, { class: "d-flex justify-end" }, {
|
|
593
614
|
default: w(() => [
|
|
594
|
-
k(
|
|
615
|
+
k(_, {
|
|
595
616
|
color: o.value,
|
|
596
617
|
variant: "text",
|
|
597
|
-
onClick:
|
|
618
|
+
onClick: i[0] || (i[0] = (S) => v.value = !1)
|
|
598
619
|
}, {
|
|
599
620
|
default: w(() => [
|
|
600
|
-
j(
|
|
621
|
+
q(j(l.value), 1)
|
|
601
622
|
]),
|
|
602
623
|
_: 1
|
|
603
624
|
}, 8, ["color"]),
|
|
604
|
-
k(
|
|
605
|
-
color:
|
|
625
|
+
k(_, {
|
|
626
|
+
color: r.value,
|
|
606
627
|
variant: "text",
|
|
607
|
-
onClick:
|
|
628
|
+
onClick: L
|
|
608
629
|
}, {
|
|
609
630
|
default: w(() => [
|
|
610
|
-
j(
|
|
631
|
+
q(j(c.value), 1)
|
|
611
632
|
]),
|
|
612
633
|
_: 1
|
|
613
634
|
}, 8, ["color"])
|
|
@@ -622,44 +643,44 @@ const tt = /* @__PURE__ */ O({
|
|
|
622
643
|
}, 8, ["modelValue", "onKeydown"]);
|
|
623
644
|
};
|
|
624
645
|
}
|
|
625
|
-
}),
|
|
646
|
+
}), gt = /* @__PURE__ */ E({
|
|
626
647
|
__name: "index",
|
|
627
648
|
props: {
|
|
628
649
|
zIndex: { default: 1 }
|
|
629
650
|
},
|
|
630
651
|
setup(e) {
|
|
631
|
-
const t =
|
|
652
|
+
const t = ee(), a = e, n = y(() => ({
|
|
632
653
|
background: t.current.value.dark ? "#1e1e1e" : "#ffffff",
|
|
633
654
|
zIndex: a.zIndex
|
|
634
655
|
}));
|
|
635
|
-
return (o, l) => (C(),
|
|
656
|
+
return (o, l) => (C(), Q("div", {
|
|
636
657
|
class: "x-cont",
|
|
637
|
-
style:
|
|
658
|
+
style: le(n.value)
|
|
638
659
|
}, l[0] || (l[0] = [
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
660
|
+
m("div", { class: "lds-spinner" }, [
|
|
661
|
+
m("div"),
|
|
662
|
+
m("div"),
|
|
663
|
+
m("div"),
|
|
664
|
+
m("div"),
|
|
665
|
+
m("div"),
|
|
666
|
+
m("div"),
|
|
667
|
+
m("div"),
|
|
668
|
+
m("div"),
|
|
669
|
+
m("div"),
|
|
670
|
+
m("div"),
|
|
671
|
+
m("div"),
|
|
672
|
+
m("div")
|
|
652
673
|
], -1)
|
|
653
674
|
]), 4));
|
|
654
675
|
}
|
|
655
|
-
}),
|
|
676
|
+
}), oe = (e, t) => {
|
|
656
677
|
const a = e.__vccOpts || e;
|
|
657
|
-
for (const [
|
|
658
|
-
a[
|
|
678
|
+
for (const [n, o] of t)
|
|
679
|
+
a[n] = o;
|
|
659
680
|
return a;
|
|
660
|
-
},
|
|
661
|
-
var
|
|
662
|
-
const
|
|
681
|
+
}, vt = /* @__PURE__ */ oe(gt, [["__scopeId", "data-v-7ab74c70"]]);
|
|
682
|
+
var mt = "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", ht = "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", wt = "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", yt = "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", xt = "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";
|
|
683
|
+
const kt = /* @__PURE__ */ E({
|
|
663
684
|
__name: "item",
|
|
664
685
|
props: {
|
|
665
686
|
id: {},
|
|
@@ -669,161 +690,161 @@ const pt = /* @__PURE__ */ O({
|
|
|
669
690
|
},
|
|
670
691
|
emits: ["timeout"],
|
|
671
692
|
setup(e, { emit: t }) {
|
|
672
|
-
const a = e,
|
|
693
|
+
const a = e, n = y(() => ({
|
|
673
694
|
width: "calc(100% - 64px)",
|
|
674
695
|
overflowWrap: "break-word"
|
|
675
696
|
})), o = y(() => {
|
|
676
697
|
switch (a.type) {
|
|
677
698
|
case "success":
|
|
678
|
-
return
|
|
699
|
+
return ht;
|
|
679
700
|
case "info":
|
|
680
|
-
return
|
|
701
|
+
return xt;
|
|
681
702
|
case "error":
|
|
682
|
-
return
|
|
703
|
+
return yt;
|
|
683
704
|
case "warning":
|
|
684
|
-
return
|
|
705
|
+
return mt;
|
|
685
706
|
default:
|
|
686
707
|
return "";
|
|
687
708
|
}
|
|
688
|
-
}), l =
|
|
689
|
-
return
|
|
709
|
+
}), l = f(!0), r = t;
|
|
710
|
+
return O(() => {
|
|
690
711
|
setTimeout(() => {
|
|
691
|
-
|
|
712
|
+
r("timeout", a.id);
|
|
692
713
|
}, a.timeout);
|
|
693
|
-
}),
|
|
694
|
-
c ||
|
|
714
|
+
}), N(l, (c) => {
|
|
715
|
+
c || r("timeout", a.id);
|
|
695
716
|
}), (c, u) => {
|
|
696
717
|
const s = h("v-icon"), g = h("v-sheet");
|
|
697
|
-
return C(),
|
|
718
|
+
return C(), R(g, {
|
|
698
719
|
class: "x-item d-flex align-center py-2 mb-2",
|
|
699
720
|
color: a.type,
|
|
700
721
|
elevation: 1
|
|
701
722
|
}, {
|
|
702
723
|
default: w(() => [
|
|
703
|
-
o.value ? (C(),
|
|
724
|
+
o.value ? (C(), R(s, {
|
|
704
725
|
key: 0,
|
|
705
726
|
class: "mx-1",
|
|
706
727
|
icon: o.value
|
|
707
|
-
}, null, 8, ["icon"])) :
|
|
708
|
-
|
|
709
|
-
style:
|
|
710
|
-
},
|
|
728
|
+
}, null, 8, ["icon"])) : ce("", !0),
|
|
729
|
+
m("div", {
|
|
730
|
+
style: le(n.value)
|
|
731
|
+
}, j(a.text), 5),
|
|
711
732
|
k(s, {
|
|
712
733
|
class: "mx-1",
|
|
713
|
-
icon:
|
|
714
|
-
onClick: u[0] || (u[0] = (
|
|
734
|
+
icon: $(wt),
|
|
735
|
+
onClick: u[0] || (u[0] = (v) => r("timeout", a.id))
|
|
715
736
|
}, null, 8, ["icon"])
|
|
716
737
|
]),
|
|
717
738
|
_: 1
|
|
718
739
|
}, 8, ["color"]);
|
|
719
740
|
};
|
|
720
741
|
}
|
|
721
|
-
}),
|
|
742
|
+
}), bt = /* @__PURE__ */ oe(kt, [["__scopeId", "data-v-d5cfe252"]]), Ct = /* @__PURE__ */ E({
|
|
722
743
|
__name: "index",
|
|
723
744
|
setup(e) {
|
|
724
|
-
const t =
|
|
725
|
-
|
|
745
|
+
const t = f([]);
|
|
746
|
+
O(() => {
|
|
726
747
|
p.on("message", a);
|
|
727
|
-
}),
|
|
748
|
+
}), W(() => {
|
|
728
749
|
p.off("message", a);
|
|
729
750
|
});
|
|
730
751
|
const a = (c) => {
|
|
731
752
|
const { type: u, text: s, timeout: g } = c;
|
|
732
753
|
l(u, s, g);
|
|
733
|
-
},
|
|
734
|
-
|
|
754
|
+
}, n = (c) => {
|
|
755
|
+
r(c);
|
|
735
756
|
};
|
|
736
757
|
let o = 0;
|
|
737
758
|
const l = (c, u, s) => {
|
|
738
759
|
const g = o++;
|
|
739
760
|
t.value.push({ id: g, type: c, text: u, timeout: s });
|
|
740
|
-
},
|
|
761
|
+
}, r = (c) => {
|
|
741
762
|
const u = t.value.findIndex((s) => s.id === c);
|
|
742
763
|
u >= 0 && t.value.splice(u, 1);
|
|
743
764
|
};
|
|
744
|
-
return (c, u) => (C(),
|
|
765
|
+
return (c, u) => (C(), Q("div", {
|
|
745
766
|
class: "x-cont d-flex flex-column-reverse align-center",
|
|
746
|
-
onClick: u[0] || (u[0] =
|
|
767
|
+
onClick: u[0] || (u[0] = H(() => {
|
|
747
768
|
}, ["stop"]))
|
|
748
769
|
}, [
|
|
749
|
-
(C(!0),
|
|
770
|
+
(C(!0), Q(De, null, Ae(t.value, (s) => (C(), R(bt, {
|
|
750
771
|
id: s.id,
|
|
751
772
|
key: s.id,
|
|
752
773
|
type: s.type,
|
|
753
774
|
text: s.text,
|
|
754
775
|
timeout: s.timeout,
|
|
755
|
-
onTimeout:
|
|
776
|
+
onTimeout: n
|
|
756
777
|
}, null, 8, ["id", "type", "text", "timeout"]))), 128))
|
|
757
778
|
]));
|
|
758
779
|
}
|
|
759
|
-
}),
|
|
780
|
+
}), Lt = /* @__PURE__ */ oe(Ct, [["__scopeId", "data-v-8fd5d800"]]), Dt = /* @__PURE__ */ E({
|
|
760
781
|
__name: "index",
|
|
761
782
|
setup(e) {
|
|
762
|
-
const { t } =
|
|
763
|
-
let
|
|
764
|
-
const
|
|
765
|
-
var S,
|
|
766
|
-
const
|
|
767
|
-
a.value =
|
|
768
|
-
}, { open:
|
|
769
|
-
|
|
783
|
+
const { t } = P(), a = f(""), n = f(""), o = f(""), l = f(""), r = f(), c = f(""), u = f(""), s = f(""), g = f(""), v = f(""), L = Me("target");
|
|
784
|
+
let b = 0, i = !1;
|
|
785
|
+
const D = async (A) => {
|
|
786
|
+
var S, K, z, B;
|
|
787
|
+
const d = A;
|
|
788
|
+
a.value = d.title, n.value = d.text, o.value = d.label, l.value = d.placeholder, r.value = d.rules, c.value = d.value, u.value = ((S = d.cancel) == null ? void 0 : S.color) ?? "primary", s.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"), b = d.seq, i = !1, _.value = !0, await te(() => !!L.value), L.value.focus();
|
|
789
|
+
}, { open: _ } = ae("promptDlg", D), x = () => {
|
|
790
|
+
_.value = !1, i || (p.emit("promptDlgResult" + b, c.value ?? ""), i = !0);
|
|
770
791
|
};
|
|
771
|
-
return
|
|
772
|
-
!
|
|
773
|
-
}), (
|
|
774
|
-
const S = h("v-card-text"),
|
|
775
|
-
return C(),
|
|
776
|
-
modelValue:
|
|
777
|
-
"onUpdate:modelValue":
|
|
792
|
+
return N(_, (A) => {
|
|
793
|
+
!A && !i && (p.emit("promptDlgResult" + b, void 0), i = !0);
|
|
794
|
+
}), (A, d) => {
|
|
795
|
+
const S = 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");
|
|
796
|
+
return C(), R(ye, {
|
|
797
|
+
modelValue: $(_),
|
|
798
|
+
"onUpdate:modelValue": d[2] || (d[2] = (U) => Y(_) ? _.value = U : null),
|
|
778
799
|
transition: "dialog-top-transition",
|
|
779
800
|
"max-width": "600px",
|
|
780
801
|
onKeydown: [
|
|
781
|
-
|
|
782
|
-
|
|
802
|
+
d[3] || (d[3] = F(H((U) => _.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
803
|
+
F(H(x, ["stop", "prevent"]), ["enter"])
|
|
783
804
|
]
|
|
784
805
|
}, {
|
|
785
806
|
default: w(() => [
|
|
786
|
-
k(
|
|
807
|
+
k(we, { title: a.value }, {
|
|
787
808
|
default: w(() => [
|
|
788
|
-
|
|
809
|
+
n.value ? (C(), R(S, { key: 0 }, {
|
|
789
810
|
default: w(() => [
|
|
790
|
-
j(
|
|
811
|
+
q(j(n.value), 1)
|
|
791
812
|
]),
|
|
792
813
|
_: 1
|
|
793
|
-
})) :
|
|
794
|
-
k(
|
|
814
|
+
})) : ce("", !0),
|
|
815
|
+
k(z, { class: "mx-3" }, {
|
|
795
816
|
default: w(() => [
|
|
796
|
-
k(
|
|
817
|
+
k(K, {
|
|
797
818
|
ref_key: "target",
|
|
798
|
-
ref:
|
|
819
|
+
ref: L,
|
|
799
820
|
modelValue: c.value,
|
|
800
|
-
"onUpdate:modelValue":
|
|
821
|
+
"onUpdate:modelValue": d[0] || (d[0] = (U) => c.value = U),
|
|
801
822
|
label: o.value,
|
|
802
823
|
placeholder: l.value,
|
|
803
|
-
rules:
|
|
824
|
+
rules: r.value
|
|
804
825
|
}, null, 8, ["modelValue", "label", "placeholder", "rules"])
|
|
805
826
|
]),
|
|
806
827
|
_: 1
|
|
807
828
|
}),
|
|
808
|
-
k(
|
|
829
|
+
k(he, { class: "d-flex justify-end" }, {
|
|
809
830
|
default: w(() => [
|
|
810
|
-
k(
|
|
831
|
+
k(B, {
|
|
811
832
|
color: u.value,
|
|
812
833
|
variant: "text",
|
|
813
|
-
onClick:
|
|
834
|
+
onClick: d[1] || (d[1] = (U) => _.value = !1)
|
|
814
835
|
}, {
|
|
815
836
|
default: w(() => [
|
|
816
|
-
j(
|
|
837
|
+
q(j(s.value), 1)
|
|
817
838
|
]),
|
|
818
839
|
_: 1
|
|
819
840
|
}, 8, ["color"]),
|
|
820
|
-
k(
|
|
841
|
+
k(B, {
|
|
821
842
|
color: g.value,
|
|
822
843
|
variant: "text",
|
|
823
|
-
onClick:
|
|
844
|
+
onClick: x
|
|
824
845
|
}, {
|
|
825
846
|
default: w(() => [
|
|
826
|
-
j(
|
|
847
|
+
q(j(v.value), 1)
|
|
827
848
|
]),
|
|
828
849
|
_: 1
|
|
829
850
|
}, 8, ["color"])
|
|
@@ -838,38 +859,38 @@ const pt = /* @__PURE__ */ O({
|
|
|
838
859
|
}, 8, ["modelValue", "onKeydown"]);
|
|
839
860
|
};
|
|
840
861
|
}
|
|
841
|
-
}),
|
|
862
|
+
}), At = { 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({
|
|
842
863
|
__name: "index",
|
|
843
864
|
setup(e) {
|
|
844
|
-
const { t } =
|
|
845
|
-
const c =
|
|
865
|
+
const { t } = P(), a = f(""), n = (r) => {
|
|
866
|
+
const c = r;
|
|
846
867
|
a.value = c.text ?? t("dlg.common.waiting"), l.value = !0;
|
|
847
868
|
}, o = () => {
|
|
848
869
|
l.value = !1;
|
|
849
|
-
}, { open: l } =
|
|
850
|
-
return
|
|
870
|
+
}, { open: l } = ae("waitDlg", n);
|
|
871
|
+
return O(() => {
|
|
851
872
|
p.on("closeWaitDlg", o);
|
|
852
|
-
}),
|
|
873
|
+
}), W(() => {
|
|
853
874
|
p.off("closeWaitDlg", o);
|
|
854
|
-
}), (
|
|
875
|
+
}), (r, c) => {
|
|
855
876
|
const u = h("v-card"), s = h("v-dialog");
|
|
856
|
-
return C(),
|
|
857
|
-
modelValue:
|
|
858
|
-
"onUpdate:modelValue": c[0] || (c[0] = (g) =>
|
|
877
|
+
return C(), R(s, {
|
|
878
|
+
modelValue: $(l),
|
|
879
|
+
"onUpdate:modelValue": c[0] || (c[0] = (g) => Y(l) ? l.value = g : null),
|
|
859
880
|
persistent: "",
|
|
860
881
|
"no-click-animation": "",
|
|
861
882
|
fullscreen: ""
|
|
862
883
|
}, {
|
|
863
884
|
default: w(() => [
|
|
864
|
-
|
|
885
|
+
m("div", At, [
|
|
865
886
|
k(u, {
|
|
866
887
|
width: "300px",
|
|
867
888
|
height: "80px",
|
|
868
889
|
loading: ""
|
|
869
890
|
}, {
|
|
870
891
|
default: w(() => [
|
|
871
|
-
|
|
872
|
-
|
|
892
|
+
m("div", Mt, [
|
|
893
|
+
m("span", St, j(a.value), 1)
|
|
873
894
|
])
|
|
874
895
|
]),
|
|
875
896
|
_: 1
|
|
@@ -880,11 +901,11 @@ const pt = /* @__PURE__ */ O({
|
|
|
880
901
|
}, 8, ["modelValue"]);
|
|
881
902
|
};
|
|
882
903
|
}
|
|
883
|
-
}),
|
|
884
|
-
e.component("XConfirmDlg",
|
|
885
|
-
},
|
|
886
|
-
const
|
|
887
|
-
return
|
|
904
|
+
}), Rt = (e) => {
|
|
905
|
+
e.component("XConfirmDlg", ft), e.component("XLoading", vt), e.component("XMessage", Lt), e.component("XPromptDlg", Dt), e.component("XWaitDlg", jt);
|
|
906
|
+
}, qt = (e, t, a) => {
|
|
907
|
+
const n = e[t];
|
|
908
|
+
return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((o, l) => {
|
|
888
909
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
889
910
|
l.bind(
|
|
890
911
|
null,
|
|
@@ -895,44 +916,53 @@ const pt = /* @__PURE__ */ O({
|
|
|
895
916
|
);
|
|
896
917
|
});
|
|
897
918
|
};
|
|
898
|
-
async function
|
|
899
|
-
return (await
|
|
919
|
+
async function aa(e) {
|
|
920
|
+
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;
|
|
900
921
|
}
|
|
901
|
-
const
|
|
922
|
+
const oa = { install: Rt };
|
|
902
923
|
export {
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
924
|
+
Ge as Permission,
|
|
925
|
+
st as addView,
|
|
926
|
+
Ze as appAppear,
|
|
927
|
+
Pt as clearViews,
|
|
928
|
+
zt as closeWaitDlg,
|
|
929
|
+
Ut as createAxios,
|
|
930
|
+
oa as default,
|
|
931
|
+
_t as delView,
|
|
911
932
|
p as eventBus,
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
933
|
+
me as hasView,
|
|
934
|
+
Je as injectDark,
|
|
935
|
+
ot as injectLastAppPath,
|
|
936
|
+
Gt as injectLocale,
|
|
937
|
+
Qt as injectPermissionChecksum,
|
|
938
|
+
et as injectPermissionObjects,
|
|
939
|
+
rt as injectViews,
|
|
940
|
+
pt as isEmpty,
|
|
915
941
|
re as isExist,
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
942
|
+
Yt as lastView,
|
|
943
|
+
aa as loadLocaleMessageEssential,
|
|
944
|
+
Z as matchRouteMeta,
|
|
945
|
+
Xt as messageError,
|
|
946
|
+
Ft as messageInfo,
|
|
947
|
+
Zt as messageSuccess,
|
|
948
|
+
Nt as messageWarning,
|
|
949
|
+
Jt as onBeforeEach,
|
|
950
|
+
Ht as openConfirmDlg,
|
|
951
|
+
$t as openPromptDlg,
|
|
952
|
+
Kt as openWaitDlg,
|
|
953
|
+
it as popView,
|
|
954
|
+
Qe as provideDark,
|
|
955
|
+
at as provideLastAppPath,
|
|
956
|
+
Ye as provideLocale,
|
|
957
|
+
tt as providePermissionChecksum,
|
|
958
|
+
Pe as providePermissionObjects,
|
|
959
|
+
nt as provideViews,
|
|
929
960
|
G as routeTransName,
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
ee as waitUtil
|
|
961
|
+
Bt as useColor,
|
|
962
|
+
ea as useMicroApp,
|
|
963
|
+
ta as usePermission,
|
|
964
|
+
dt as useSystem,
|
|
965
|
+
ae as useViewStack,
|
|
966
|
+
Wt as waitMs,
|
|
967
|
+
te as waitUtil
|
|
938
968
|
};
|