x-essential-lib 0.7.18 → 0.7.20
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/index.js +310 -315
- package/dist/utils/permission.d.ts +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var
|
|
2
|
-
import { computed as y, provide as O, inject as I, ref as f, getCurrentScope as xe, onScopeDispose as be, unref as H, watchEffect as ke, getCurrentInstance as Ce, onMounted as T, watch as N, onBeforeUnmount as W, onBeforeMount as Le, defineComponent as B, resolveComponent as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.id="x-essential-lib",e.appendChild(document.createTextNode('.x-cont[data-v-4fee730c]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-4fee730c]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-4fee730c]{transform-origin:20px 20px;animation:lds-spinner-4fee730c 1.2s linear infinite}.lds-spinner div[data-v-4fee730c]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-4fee730c]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-4fee730c]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-4fee730c]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-4fee730c]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-4fee730c]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-4fee730c]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-4fee730c]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-4fee730c]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-4fee730c]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-4fee730c]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-4fee730c]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-4fee730c]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-4fee730c{0%{opacity:1}to{opacity:0}}.x-item[data-v-d5cfe252]{width:600px}@media (max-width: 600px){.x-item[data-v-d5cfe252]{width:calc(100vw - 16px)}}.x-cont[data-v-8fd5d800]{position:absolute;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
import { computed as y, provide as O, inject as I, ref as f, getCurrentScope as xe, onScopeDispose as be, unref as H, watchEffect as ke, getCurrentInstance as Ce, onMounted as T, watch as N, onBeforeUnmount as W, onBeforeMount as Le, defineComponent as B, resolveComponent as h, openBlock as C, createBlock as q, isRef as Y, withKeys as F, withModifiers as $, withCtx as w, createVNode as b, createTextVNode as V, toDisplayString as R, createElementBlock as Q, normalizeStyle as le, createElementVNode as m, createCommentVNode as P, Fragment as De, renderList as Me, useTemplateRef as Se } from "vue";
|
|
3
3
|
import { useI18n as ee } from "vue-i18n";
|
|
4
|
-
import { useTheme as ce, useDisplay as
|
|
5
|
-
import { useRouter as ue, useRoute as
|
|
6
|
-
import
|
|
7
|
-
function
|
|
8
|
-
const e = ce(), t = y(() => e.global.current.value.colors.primary), a = y(() => e.global.current.value.colors.secondary), o = y(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"),
|
|
4
|
+
import { useTheme as ce, useDisplay as je } from "vuetify";
|
|
5
|
+
import { useRouter as ue, useRoute as Re } from "vue-router";
|
|
6
|
+
import qe from "axios";
|
|
7
|
+
function Ve() {
|
|
8
|
+
const e = ce(), t = y(() => e.global.current.value.colors.primary), a = y(() => e.global.current.value.colors.secondary), o = y(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), r = y(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = y(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), c = y(() => e.current.value.dark ? "#303030" : "#f6f6f6"), n = y(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
9
9
|
return {
|
|
10
10
|
primaryColor: t,
|
|
11
11
|
secondaryColor: a,
|
|
12
12
|
backgroundColor0: o,
|
|
13
|
-
backgroundColor1:
|
|
13
|
+
backgroundColor1: r,
|
|
14
14
|
backgroundColor2: l,
|
|
15
15
|
highlightColor: c,
|
|
16
|
-
borderColor:
|
|
16
|
+
borderColor: n
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
/*! js-cookie v3.0.5 | MIT */
|
|
@@ -25,7 +25,7 @@ function X(e) {
|
|
|
25
25
|
}
|
|
26
26
|
return e;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
28
|
+
var Ae = {
|
|
29
29
|
read: function(e) {
|
|
30
30
|
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
31
31
|
},
|
|
@@ -37,47 +37,47 @@ var Oe = {
|
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
function J(e, t) {
|
|
40
|
-
function a(
|
|
40
|
+
function a(r, l, c) {
|
|
41
41
|
if (!(typeof document > "u")) {
|
|
42
|
-
c = X({}, t, c), typeof c.expires == "number" && (c.expires = new Date(Date.now() + c.expires * 864e5)), c.expires && (c.expires = c.expires.toUTCString()),
|
|
43
|
-
var
|
|
42
|
+
c = X({}, t, c), typeof c.expires == "number" && (c.expires = new Date(Date.now() + c.expires * 864e5)), c.expires && (c.expires = c.expires.toUTCString()), r = encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
43
|
+
var n = "";
|
|
44
44
|
for (var u in c)
|
|
45
|
-
c[u] && (
|
|
46
|
-
return document.cookie =
|
|
45
|
+
c[u] && (n += "; " + u, c[u] !== !0 && (n += "=" + c[u].split(";")[0]));
|
|
46
|
+
return document.cookie = r + "=" + e.write(l, r) + n;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
function o(
|
|
50
|
-
if (!(typeof document > "u" || arguments.length && !
|
|
51
|
-
for (var l = document.cookie ? document.cookie.split("; ") : [], c = {},
|
|
52
|
-
var u = l[
|
|
49
|
+
function o(r) {
|
|
50
|
+
if (!(typeof document > "u" || arguments.length && !r)) {
|
|
51
|
+
for (var l = document.cookie ? document.cookie.split("; ") : [], c = {}, n = 0; n < l.length; n++) {
|
|
52
|
+
var u = l[n].split("="), _ = u.slice(1).join("=");
|
|
53
53
|
try {
|
|
54
54
|
var g = decodeURIComponent(u[0]);
|
|
55
|
-
if (c[g] = e.read(_, g),
|
|
55
|
+
if (c[g] = e.read(_, g), r === g)
|
|
56
56
|
break;
|
|
57
57
|
} catch {
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
return
|
|
60
|
+
return r ? c[r] : c;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
return Object.create(
|
|
64
64
|
{
|
|
65
65
|
set: a,
|
|
66
66
|
get: o,
|
|
67
|
-
remove: function(
|
|
67
|
+
remove: function(r, l) {
|
|
68
68
|
a(
|
|
69
|
-
|
|
69
|
+
r,
|
|
70
70
|
"",
|
|
71
71
|
X({}, l, {
|
|
72
72
|
expires: -1
|
|
73
73
|
})
|
|
74
74
|
);
|
|
75
75
|
},
|
|
76
|
-
withAttributes: function(
|
|
77
|
-
return J(this.converter, X({}, this.attributes,
|
|
76
|
+
withAttributes: function(r) {
|
|
77
|
+
return J(this.converter, X({}, this.attributes, r));
|
|
78
78
|
},
|
|
79
|
-
withConverter: function(
|
|
80
|
-
return J(X({}, this.converter,
|
|
79
|
+
withConverter: function(r) {
|
|
80
|
+
return J(X({}, this.converter, r), this.attributes);
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
{
|
|
@@ -86,43 +86,43 @@ function J(e, t) {
|
|
|
86
86
|
}
|
|
87
87
|
);
|
|
88
88
|
}
|
|
89
|
-
var A = J(
|
|
90
|
-
function
|
|
91
|
-
const t =
|
|
89
|
+
var A = J(Ae, { path: "/" });
|
|
90
|
+
function Bt(e) {
|
|
91
|
+
const t = qe.create({
|
|
92
92
|
timeout: 6e3
|
|
93
93
|
});
|
|
94
94
|
return t.defaults.baseURL = e.baseUrl, t.interceptors.request.use(
|
|
95
|
-
(a) =>
|
|
95
|
+
(a) => Oe(a),
|
|
96
96
|
(a) => {
|
|
97
|
-
|
|
97
|
+
Ie(a, e.onError);
|
|
98
98
|
}
|
|
99
99
|
), t.interceptors.response.use(
|
|
100
|
-
(a) =>
|
|
101
|
-
(a) =>
|
|
100
|
+
(a) => Te(a),
|
|
101
|
+
(a) => Be(a, e.onError)
|
|
102
102
|
), t;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Oe(e) {
|
|
105
105
|
const t = A.get("accessToken") ?? "";
|
|
106
106
|
return e.headers.Authorization = "Basic " + t, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Ie(e, t) {
|
|
109
109
|
console.error(e), t("request timeout");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Te(e) {
|
|
112
112
|
return e.data;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
var
|
|
114
|
+
function Be(e, t) {
|
|
115
|
+
var r, l;
|
|
116
116
|
const o = e.response;
|
|
117
|
-
return o && (o.status === 401 &&
|
|
117
|
+
return o && (o.status === 401 && Ee(), (r = o.data) != null && r.message ? t((l = o.data) == null ? void 0 : l.message) : t({
|
|
118
118
|
code: o.status,
|
|
119
119
|
message: o.statusText
|
|
120
120
|
})), Promise.reject(e);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Ee() {
|
|
123
123
|
A.remove("accessToken"), A.remove("refreshToken"), A.remove("activeOrg"), ue().replace({ path: "/passport/login" });
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Ue(e) {
|
|
126
126
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, a) {
|
|
127
127
|
var o = e.get(t);
|
|
128
128
|
o ? o.push(a) : e.set(t, [a]);
|
|
@@ -131,137 +131,137 @@ function We(e) {
|
|
|
131
131
|
o && (a ? o.splice(o.indexOf(a) >>> 0, 1) : e.set(t, []));
|
|
132
132
|
}, emit: function(t, a) {
|
|
133
133
|
var o = e.get(t);
|
|
134
|
-
o && o.slice().map(function(
|
|
135
|
-
|
|
136
|
-
}), (o = e.get("*")) && o.slice().map(function(
|
|
137
|
-
|
|
134
|
+
o && o.slice().map(function(r) {
|
|
135
|
+
r(a);
|
|
136
|
+
}), (o = e.get("*")) && o.slice().map(function(r) {
|
|
137
|
+
r(t, a);
|
|
138
138
|
});
|
|
139
139
|
} };
|
|
140
140
|
}
|
|
141
141
|
const p = function() {
|
|
142
|
-
return window.eventBus || (window.eventBus =
|
|
142
|
+
return window.eventBus || (window.eventBus = Ue()), window.eventBus;
|
|
143
143
|
}();
|
|
144
|
-
async function
|
|
144
|
+
async function Et(e) {
|
|
145
145
|
return new Promise((t) => {
|
|
146
146
|
setTimeout(t, e);
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
async function te(e, t, a) {
|
|
150
150
|
const o = Date.now();
|
|
151
|
-
return new Promise((
|
|
151
|
+
return new Promise((r) => {
|
|
152
152
|
const l = async () => {
|
|
153
|
-
e() ?
|
|
153
|
+
e() ? r(!0) : t && Date.now() - o > t ? r(!1) : setTimeout(l, a ?? 30);
|
|
154
154
|
};
|
|
155
155
|
l();
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function We(e, t) {
|
|
159
159
|
const a = document.getElementById("single-spa-application:" + e);
|
|
160
160
|
a && (a.classList.remove("app-left", "app-right", "app-reset"), t ? a.classList.add("app-left") : a.classList.add("app-right"), setTimeout(() => {
|
|
161
161
|
a.classList.add("app-reset");
|
|
162
162
|
}, 50));
|
|
163
163
|
}
|
|
164
|
-
let
|
|
164
|
+
let re = Date.now();
|
|
165
165
|
function pe() {
|
|
166
166
|
const e = Date.now();
|
|
167
|
-
return e -
|
|
167
|
+
return e - re > 500 ? (re = e, !0) : !1;
|
|
168
168
|
}
|
|
169
|
-
let
|
|
169
|
+
let $e = 0;
|
|
170
170
|
function se() {
|
|
171
|
-
return
|
|
171
|
+
return ++$e;
|
|
172
172
|
}
|
|
173
|
-
async function
|
|
173
|
+
async function Ut(e) {
|
|
174
174
|
if (!pe())
|
|
175
175
|
return;
|
|
176
176
|
let t = !1, a;
|
|
177
177
|
const o = (l) => {
|
|
178
178
|
a = l, t = !0;
|
|
179
|
-
},
|
|
180
|
-
return p.on("confirmDlgResult" +
|
|
179
|
+
}, r = se();
|
|
180
|
+
return p.on("confirmDlgResult" + r, o), p.emit("confirmDlg", { ...e, seq: r }), await te(() => t), p.off("confirmDlgResult" + r, o), a;
|
|
181
181
|
}
|
|
182
|
-
async function
|
|
182
|
+
async function Wt(e) {
|
|
183
183
|
if (!pe())
|
|
184
184
|
return;
|
|
185
185
|
let t = !1, a;
|
|
186
186
|
const o = (l) => {
|
|
187
187
|
a = l, t = !0;
|
|
188
|
-
},
|
|
189
|
-
return p.on("promptDlgResult" +
|
|
188
|
+
}, r = se();
|
|
189
|
+
return p.on("promptDlgResult" + r, o), p.emit("promptDlg", { ...e, seq: r }), await te(() => t), p.off("promptDlgResult" + r, o), a;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function $t(e) {
|
|
192
192
|
p.emit("openWaitDlg", { text: e });
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function Ht() {
|
|
195
195
|
p.emit("closeWaitDlg");
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Kt(e, t) {
|
|
198
198
|
p.emit("message", { type: "error", text: e, timeout: t });
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function zt(e, t) {
|
|
201
201
|
p.emit("message", { type: "info", text: e, timeout: t });
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Xt(e, t) {
|
|
204
204
|
p.emit("message", { type: "success", text: e, timeout: t });
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Ft(e, t) {
|
|
207
207
|
p.emit("message", { type: "warning", text: e, timeout: t });
|
|
208
208
|
}
|
|
209
|
-
var
|
|
210
|
-
function
|
|
209
|
+
var He = /* @__PURE__ */ ((e) => (e.list_app_group = "list_app_group", e.create_app_group = "create_app_group", e.delete_app_group = "delete_app_group", e.update_app_group = "update_app_group", e.arrange_app_group = "arrange_app_group", e.list_app = "list_app", e.get_app = "get_app", e.create_app = "create_app", e.delete_app = "delete_app", e.update_app = "update_app", e.list_app_release = "list_app_release", e.get_app_release = "get_app_release", e.create_app_release = "create_app_release", e.delete_app_release = "delete_app_release", e.deploy_app_release = "deploy_app_release", e.open_app_layer = "open_app_layer", e.open_app = "open_app", e.list_compute_space = "list_compute_space", e.get_compute_space = "get_compute_space", e.create_compute_space = "create_compute_space", e.delete_compute_space = "delete_compute_space", e.update_compute_space = "update_compute_space", e.arrange_compute_space = "arrange_compute_space", e.list_func_group = "list_func_group", e.create_func_group = "create_func_group", e.delete_func_group = "delete_func_group", e.update_func_group = "update_func_group", e.arrange_func_group = "arrange_func_group", e.list_func = "list_func", e.get_func = "get_func", e.create_func = "create_func", e.delete_func = "delete_func", e.update_func = "update_func", e.debug_func = "debug_func", e.call_func = "call_func", e.list_func_release = "list_func_release", e.get_func_release = "get_func_release", e.create_func_release = "create_func_release", e.delete_func_release = "delete_func_release", e.deploy_func_release = "deploy_func_release", e.list_flow_group = "list_flow_group", e.create_flow_group = "create_flow_group", e.delete_flow_group = "delete_flow_group", e.update_flow_group = "update_flow_group", e.arrange_flow_group = "arrange_flow_group", e.list_flow = "list_flow", e.get_flow = "get_flow", e.create_flow = "create_flow", e.delete_flow = "delete_flow", e.update_flow = "update_flow", e.debug_flow = "debug_flow", e.call_flow = "call_flow", e.list_flow_release = "list_flow_release", e.get_flow_release = "get_flow_release", e.create_flow_release = "create_flow_release", e.delete_flow_release = "delete_flow_release", e.deploy_flow_release = "deploy_flow_release", e.list_task = "list_task", e.get_task = "get_task", e.create_task = "create_task", e.delete_task = "delete_task", e.update_task = "update_task", e.call_task = "call_task", e.open_compute_layer = "open_compute_layer", e.list_data_space = "list_data_space", e.get_data_space = "get_data_space", e.create_data_space = "create_data_space", e.delete_data_space = "delete_data_space", e.update_data_space = "update_data_space", e.arrange_data_space = "arrange_data_space", e.list_table_group = "list_table_group", e.create_table_group = "create_table_group", e.delete_table_group = "delete_table_group", e.update_table_group = "update_table_group", e.arrange_table_group = "arrange_table_group", e.list_table = "list_table", e.get_table = "get_table", e.create_table = "create_table", e.delete_table = "delete_table", e.update_table = "update_table", e.get_data = "get_data", e.create_data = "create_data", e.delete_data = "delete_data", e.update_data = "update_data", e.get_relation_graph = "get_relation_graph", e.update_relation_graph = "update_relation_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_resource_space = "list_resource_space", e.get_resource_space = "get_resource_space", e.create_resource_space = "create_resource_space", e.delete_resource_space = "delete_resource_space", e.update_resource_space = "update_resource_space", e.arrange_resource_space = "arrange_resource_space", e.list_dir = "list_dir", e.create_dir = "create_dir", e.delete_dir = "delete_dir", e.update_dir = "update_dir", e.move_dir = "move_dir", e.list_resource = "list_resource", e.get_resource = "get_resource", e.create_resource = "create_resource", e.delete_resource = "delete_resource", e.update_resource = "update_resource", e.move_resource = "move_resource", e.open_resource_layer = "open_resource_layer", e.list_org_member = "list_org_member", e.add_org_member = "add_org_member", e.remove_org_member = "remove_org_member", e.update_org_member = "update_org_member", e.list_org_role_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))(He || {});
|
|
210
|
+
function ne(e, t) {
|
|
211
211
|
if (!e)
|
|
212
212
|
return !1;
|
|
213
213
|
let a = e;
|
|
214
|
-
return Object.keys(a).length <= 0 || (t.split("/").forEach((
|
|
214
|
+
return Object.keys(a).length <= 0 || (t.split("/").forEach((r) => {
|
|
215
215
|
if (Object.keys(a).length <= 0)
|
|
216
216
|
return !0;
|
|
217
|
-
if (a[
|
|
218
|
-
a = a[
|
|
217
|
+
if (a[r])
|
|
218
|
+
a = a[r];
|
|
219
219
|
else
|
|
220
220
|
return !1;
|
|
221
221
|
}), Object.keys(a).length <= 0);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Ke(e, t, a) {
|
|
224
224
|
const o = e[t];
|
|
225
|
-
return o ? a ? !(!
|
|
225
|
+
return o ? a ? !(!ne(o.includes, a) || ne(o.excludes, a)) : !0 : !1;
|
|
226
226
|
}
|
|
227
|
-
const _e = "essentialDark",
|
|
228
|
-
function
|
|
227
|
+
const _e = "essentialDark", de = "essentialLocale", ie = "essentialPermissionObjects", fe = "essentialPermissionChecksum", ge = "essentialLastAppPath", ve = "essentialViews";
|
|
228
|
+
function ze(e) {
|
|
229
229
|
O(_e, e);
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function Zt() {
|
|
232
232
|
return I(_e);
|
|
233
233
|
}
|
|
234
|
+
function Xe(e) {
|
|
235
|
+
O(de, e);
|
|
236
|
+
}
|
|
237
|
+
function Nt() {
|
|
238
|
+
return I(de);
|
|
239
|
+
}
|
|
234
240
|
function Fe(e) {
|
|
235
241
|
O(ie, e);
|
|
236
242
|
}
|
|
237
|
-
function
|
|
243
|
+
function Ze() {
|
|
238
244
|
return I(ie);
|
|
239
245
|
}
|
|
240
|
-
function
|
|
241
|
-
O(de, e);
|
|
242
|
-
}
|
|
243
|
-
function Ne() {
|
|
244
|
-
return I(de);
|
|
245
|
-
}
|
|
246
|
-
function Ge(e) {
|
|
246
|
+
function Ne(e) {
|
|
247
247
|
O(fe, e);
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Gt() {
|
|
250
250
|
return I(fe);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function Ge(e) {
|
|
253
253
|
O(ge, e);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function Qt() {
|
|
256
256
|
return I(ge);
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function Qe(e) {
|
|
259
259
|
O(ve, e);
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function Je() {
|
|
262
262
|
return I(ve);
|
|
263
263
|
}
|
|
264
|
-
const
|
|
264
|
+
const Ye = [
|
|
265
265
|
{
|
|
266
266
|
app: "x-passport-mf",
|
|
267
267
|
path: "/passport/login",
|
|
@@ -371,136 +371,136 @@ const Pe = [
|
|
|
371
371
|
];
|
|
372
372
|
function Z(e) {
|
|
373
373
|
let t, a = 0;
|
|
374
|
-
const o = e.split("/").filter((
|
|
375
|
-
return
|
|
376
|
-
const l =
|
|
374
|
+
const o = e.split("/").filter((r) => r.trim() !== "");
|
|
375
|
+
return Ye.forEach((r) => {
|
|
376
|
+
const l = r.path.split("/").filter((n) => n.trim() !== "");
|
|
377
377
|
let c = 0;
|
|
378
|
-
for (let
|
|
378
|
+
for (let n = 0; n < o.length && !(n >= l.length || o[n] !== l[n]); n++)
|
|
379
379
|
c++;
|
|
380
|
-
c > 0 && c > a && (t =
|
|
380
|
+
c > 0 && c > a && (t = r, a = c);
|
|
381
381
|
}), t;
|
|
382
382
|
}
|
|
383
383
|
const G = f("");
|
|
384
384
|
function S(e, t, a) {
|
|
385
385
|
t === "/" && (t = a);
|
|
386
|
-
const o = Z(e),
|
|
386
|
+
const o = Z(e), r = Z(t);
|
|
387
387
|
if (!o) {
|
|
388
388
|
console.assert(!1);
|
|
389
389
|
return;
|
|
390
390
|
}
|
|
391
|
-
if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !
|
|
391
|
+
if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !r)
|
|
392
392
|
return;
|
|
393
|
-
const l = o.app ===
|
|
394
|
-
l ? c ? G.value = "" : G.value =
|
|
393
|
+
const l = o.app === r.app, c = o.path === r.path, n = o.level >= r.level;
|
|
394
|
+
l ? c ? G.value = "" : G.value = n ? "inner-left" : "inner-right" : (G.value = "", We(o.app, n));
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function Pe() {
|
|
397
397
|
return !!A.get("accessToken");
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function et() {
|
|
400
400
|
return !!A.get("activeOrg");
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
const
|
|
402
|
+
function Jt(e, t, a, o) {
|
|
403
|
+
const r = Pe(), l = et(), c = Z(e.path);
|
|
404
404
|
if (!c) {
|
|
405
405
|
console.assert(!1), a();
|
|
406
406
|
return;
|
|
407
407
|
}
|
|
408
408
|
if (c.requiredState === "auth")
|
|
409
|
-
if (
|
|
409
|
+
if (r)
|
|
410
410
|
if (l) {
|
|
411
|
-
const
|
|
412
|
-
S(
|
|
411
|
+
const n = "/main";
|
|
412
|
+
S(n, t.path, o), a({ path: n });
|
|
413
413
|
} else
|
|
414
414
|
S(e.path, t.path, o), a();
|
|
415
415
|
else {
|
|
416
|
-
const
|
|
417
|
-
S(
|
|
416
|
+
const n = "/passport/login";
|
|
417
|
+
S(n, t.path, o), a({ path: n });
|
|
418
418
|
}
|
|
419
419
|
else if (c.requiredState === "org")
|
|
420
|
-
if (
|
|
420
|
+
if (r)
|
|
421
421
|
if (l)
|
|
422
422
|
S(e.path, t.path, o), a();
|
|
423
423
|
else {
|
|
424
|
-
const
|
|
425
|
-
S(
|
|
424
|
+
const n = "/org/joinOrCreate";
|
|
425
|
+
S(n, t.path, o), a({ path: n });
|
|
426
426
|
}
|
|
427
427
|
else {
|
|
428
|
-
const
|
|
429
|
-
S(
|
|
428
|
+
const n = "/passport/login";
|
|
429
|
+
S(n, t.path, o), a({ path: n });
|
|
430
430
|
}
|
|
431
|
-
else if (
|
|
431
|
+
else if (r)
|
|
432
432
|
if (l) {
|
|
433
|
-
const
|
|
434
|
-
S(
|
|
433
|
+
const n = "/main";
|
|
434
|
+
S(n, t.path, o), a({ path: n });
|
|
435
435
|
} else {
|
|
436
|
-
const
|
|
437
|
-
S(
|
|
436
|
+
const n = "/org/joinOrCreate";
|
|
437
|
+
S(n, t.path, o), a({ path: n });
|
|
438
438
|
}
|
|
439
439
|
else
|
|
440
440
|
S(e.path, t.path, o), a();
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function tt(e) {
|
|
443
443
|
return e.value.length <= 0;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function Yt(e) {
|
|
446
446
|
return e.value.at(-1);
|
|
447
447
|
}
|
|
448
448
|
function me(e, t) {
|
|
449
449
|
return !!e.value.find((a) => a === t);
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function at(e, t) {
|
|
452
452
|
const a = e.value.findIndex((o) => o === t);
|
|
453
453
|
a >= 0 && e.value.splice(a, 1), e.value.push(t);
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function ot(e, t) {
|
|
456
456
|
const a = e.value.findIndex((o) => o === t);
|
|
457
457
|
a >= 0 && e.value.splice(a, 1);
|
|
458
458
|
}
|
|
459
459
|
function rt(e) {
|
|
460
460
|
console.assert(e.value.length > 0), e.value.pop();
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function Pt(e) {
|
|
463
463
|
e.value = [];
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function nt(e) {
|
|
466
466
|
return xe() ? (be(e), !0) : !1;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function lt(e) {
|
|
469
469
|
return typeof e == "function" ? e() : H(e);
|
|
470
470
|
}
|
|
471
|
-
const
|
|
471
|
+
const ct = typeof window < "u" && typeof document < "u";
|
|
472
472
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
473
|
-
const
|
|
474
|
-
function
|
|
473
|
+
const ut = ct ? window : void 0;
|
|
474
|
+
function pt() {
|
|
475
475
|
const e = f(!1), t = Ce();
|
|
476
476
|
return t && T(() => {
|
|
477
477
|
e.value = !0;
|
|
478
478
|
}, t), e;
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
const t =
|
|
480
|
+
function st(e) {
|
|
481
|
+
const t = pt();
|
|
482
482
|
return y(() => (t.value, !!e()));
|
|
483
483
|
}
|
|
484
|
-
function
|
|
485
|
-
const { window: a =
|
|
486
|
-
let
|
|
484
|
+
function _t(e, t = {}) {
|
|
485
|
+
const { window: a = ut } = t, o = st(() => a && "matchMedia" in a && typeof a.matchMedia == "function");
|
|
486
|
+
let r;
|
|
487
487
|
const l = f(!1), c = (_) => {
|
|
488
488
|
l.value = _.matches;
|
|
489
|
-
},
|
|
490
|
-
|
|
489
|
+
}, n = () => {
|
|
490
|
+
r && ("removeEventListener" in r ? r.removeEventListener("change", c) : r.removeListener(c));
|
|
491
491
|
}, u = ke(() => {
|
|
492
|
-
o.value && (
|
|
492
|
+
o.value && (n(), r = a.matchMedia(lt(e)), "addEventListener" in r ? r.addEventListener("change", c) : r.addListener(c), l.value = r.matches);
|
|
493
493
|
});
|
|
494
|
-
return
|
|
495
|
-
u(),
|
|
494
|
+
return nt(() => {
|
|
495
|
+
u(), n(), r = void 0;
|
|
496
496
|
}), l;
|
|
497
497
|
}
|
|
498
498
|
function dt(e) {
|
|
499
|
-
return
|
|
499
|
+
return _t("(prefers-color-scheme: dark)", e);
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
const c =
|
|
503
|
-
|
|
501
|
+
function ea(e, t, a, o, r, l) {
|
|
502
|
+
const c = Re(), n = ue();
|
|
503
|
+
ze(e), Xe(t), Fe(a), Ne(o), Ge(r), Qe(l);
|
|
504
504
|
const u = ce(), _ = dt();
|
|
505
505
|
N(
|
|
506
506
|
e,
|
|
@@ -517,7 +517,7 @@ function ta(e, t, a, o, n, l) {
|
|
|
517
517
|
}
|
|
518
518
|
}, v = () => {
|
|
519
519
|
var x;
|
|
520
|
-
if (!
|
|
520
|
+
if (!tt(l)) {
|
|
521
521
|
me(l, "waitDlg") || rt(l);
|
|
522
522
|
return;
|
|
523
523
|
}
|
|
@@ -527,7 +527,7 @@ function ta(e, t, a, o, n, l) {
|
|
|
527
527
|
},
|
|
528
528
|
() => {
|
|
529
529
|
}
|
|
530
|
-
) :
|
|
530
|
+
) : n.back();
|
|
531
531
|
};
|
|
532
532
|
T(() => {
|
|
533
533
|
window.addEventListener("keydown", g), p.on("backbutton", v);
|
|
@@ -538,22 +538,22 @@ function ta(e, t, a, o, n, l) {
|
|
|
538
538
|
e.value = s;
|
|
539
539
|
}, k = (s) => {
|
|
540
540
|
t.value = s;
|
|
541
|
-
},
|
|
541
|
+
}, d = (s) => {
|
|
542
542
|
const x = s;
|
|
543
543
|
a.value = x[0], o.value = x[1];
|
|
544
544
|
}, D = (s) => {
|
|
545
|
-
|
|
545
|
+
r.value = s;
|
|
546
546
|
};
|
|
547
547
|
Le(() => {
|
|
548
|
-
p.on("updateDark", L), p.on("updateLocale", k), p.on("updatePermission",
|
|
548
|
+
p.on("updateDark", L), p.on("updateLocale", k), p.on("updatePermission", d), p.on("updateLastAppPath", D), p.emit("syncGlobalState");
|
|
549
549
|
}), W(() => {
|
|
550
|
-
p.off("updateDark", L), p.off("updateLocale", k), p.off("updatePermission",
|
|
550
|
+
p.off("updateDark", L), p.off("updateLocale", k), p.off("updatePermission", d), p.off("updateLastAppPath", D);
|
|
551
551
|
});
|
|
552
552
|
}
|
|
553
|
-
function
|
|
554
|
-
const e =
|
|
553
|
+
function ta() {
|
|
554
|
+
const e = Ze();
|
|
555
555
|
function t(a, o) {
|
|
556
|
-
return
|
|
556
|
+
return Ke(
|
|
557
557
|
e.value,
|
|
558
558
|
a,
|
|
559
559
|
o
|
|
@@ -561,70 +561,70 @@ function aa() {
|
|
|
561
561
|
}
|
|
562
562
|
return { verifyPermission: t };
|
|
563
563
|
}
|
|
564
|
-
function
|
|
565
|
-
const e = y(() => !!window.cordova), t =
|
|
564
|
+
function aa() {
|
|
565
|
+
const e = y(() => !!window.cordova), t = je(), a = y(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
|
|
566
566
|
return { sysBarAvail: e, compactWidth: a };
|
|
567
567
|
}
|
|
568
568
|
function ae(e, t) {
|
|
569
|
-
const a =
|
|
569
|
+
const a = Je(), o = y({
|
|
570
570
|
get() {
|
|
571
571
|
return me(a, e);
|
|
572
572
|
},
|
|
573
573
|
set(l) {
|
|
574
|
-
l ?
|
|
574
|
+
l ? at(a, e) : ot(a, e);
|
|
575
575
|
}
|
|
576
|
-
}),
|
|
576
|
+
}), r = (l) => {
|
|
577
577
|
t == null || t(l), o.value = !0;
|
|
578
578
|
};
|
|
579
579
|
return T(() => {
|
|
580
|
-
p.on(e,
|
|
580
|
+
p.on(e, r);
|
|
581
581
|
}), W(() => {
|
|
582
|
-
p.off(e,
|
|
582
|
+
p.off(e, r);
|
|
583
583
|
}), { open: o };
|
|
584
584
|
}
|
|
585
|
-
const
|
|
585
|
+
const it = /* @__PURE__ */ B({
|
|
586
586
|
__name: "index",
|
|
587
587
|
setup(e) {
|
|
588
|
-
const { t } = ee(), a = f(""), o = f(""),
|
|
588
|
+
const { t } = ee(), a = f(""), o = f(""), r = f(""), l = f(""), c = f(""), n = f("");
|
|
589
589
|
let u = 0, _ = !1;
|
|
590
590
|
const g = (k) => {
|
|
591
591
|
var D, s, x, M;
|
|
592
|
-
const
|
|
593
|
-
a.value =
|
|
592
|
+
const d = k;
|
|
593
|
+
a.value = d.title, o.value = d.text, r.value = ((D = d.cancel) == null ? void 0 : D.color) ?? "primary", l.value = ((s = d.cancel) == null ? void 0 : s.text) ?? t("dlg.common.cancel"), c.value = ((x = d.confirm) == null ? void 0 : x.color) ?? "primary", n.value = ((M = d.confirm) == null ? void 0 : M.text) ?? t("dlg.common.confirm"), u = d.seq, _ = !1, v.value = !0;
|
|
594
594
|
}, { open: v } = ae("confirmDlg", g), L = () => {
|
|
595
595
|
v.value = !1, _ || (p.emit("confirmDlgResult" + u, !0), _ = !0);
|
|
596
596
|
};
|
|
597
597
|
return N(v, (k) => {
|
|
598
598
|
!k && !_ && (p.emit("confirmDlgResult" + u, !1), _ = !0);
|
|
599
|
-
}), (k,
|
|
600
|
-
const D =
|
|
601
|
-
return C(), q(
|
|
599
|
+
}), (k, d) => {
|
|
600
|
+
const D = h("v-card-text"), s = h("v-btn"), x = h("v-card-actions"), M = h("v-card"), i = h("v-dialog");
|
|
601
|
+
return C(), q(i, {
|
|
602
602
|
modelValue: H(v),
|
|
603
|
-
"onUpdate:modelValue":
|
|
603
|
+
"onUpdate:modelValue": d[1] || (d[1] = (j) => Y(v) ? v.value = j : null),
|
|
604
604
|
transition: "dialog-top-transition",
|
|
605
605
|
"max-width": "600px",
|
|
606
606
|
onKeydown: [
|
|
607
|
-
|
|
607
|
+
d[2] || (d[2] = F($((j) => v.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
608
608
|
F($(L, ["stop", "prevent"]), ["enter"])
|
|
609
609
|
]
|
|
610
610
|
}, {
|
|
611
|
-
default:
|
|
611
|
+
default: w(() => [
|
|
612
612
|
b(M, { title: a.value }, {
|
|
613
|
-
default:
|
|
613
|
+
default: w(() => [
|
|
614
614
|
b(D, null, {
|
|
615
|
-
default:
|
|
615
|
+
default: w(() => [
|
|
616
616
|
V(R(o.value), 1)
|
|
617
617
|
]),
|
|
618
618
|
_: 1
|
|
619
619
|
}),
|
|
620
620
|
b(x, { class: "d-flex justify-end" }, {
|
|
621
|
-
default:
|
|
621
|
+
default: w(() => [
|
|
622
622
|
b(s, {
|
|
623
|
-
color:
|
|
623
|
+
color: r.value,
|
|
624
624
|
variant: "text",
|
|
625
|
-
onClick:
|
|
625
|
+
onClick: d[0] || (d[0] = (j) => v.value = !1)
|
|
626
626
|
}, {
|
|
627
|
-
default:
|
|
627
|
+
default: w(() => [
|
|
628
628
|
V(R(l.value), 1)
|
|
629
629
|
]),
|
|
630
630
|
_: 1
|
|
@@ -634,8 +634,8 @@ const ft = /* @__PURE__ */ B({
|
|
|
634
634
|
variant: "text",
|
|
635
635
|
onClick: L
|
|
636
636
|
}, {
|
|
637
|
-
default:
|
|
638
|
-
V(R(
|
|
637
|
+
default: w(() => [
|
|
638
|
+
V(R(n.value), 1)
|
|
639
639
|
]),
|
|
640
640
|
_: 1
|
|
641
641
|
}, 8, ["color"])
|
|
@@ -650,51 +650,46 @@ const ft = /* @__PURE__ */ B({
|
|
|
650
650
|
}, 8, ["modelValue", "onKeydown"]);
|
|
651
651
|
};
|
|
652
652
|
}
|
|
653
|
-
}),
|
|
653
|
+
}), ft = /* @__PURE__ */ B({
|
|
654
654
|
__name: "index",
|
|
655
655
|
props: {
|
|
656
656
|
open: { type: Boolean, default: !0 },
|
|
657
657
|
zIndex: { default: 1 }
|
|
658
658
|
},
|
|
659
659
|
setup(e) {
|
|
660
|
-
const { backgroundColor2: t } =
|
|
660
|
+
const { backgroundColor2: t } = Ve(), a = y(() => ({
|
|
661
661
|
background: t.value,
|
|
662
662
|
zIndex: e.zIndex
|
|
663
663
|
}));
|
|
664
|
-
return (o,
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
], -1)
|
|
685
|
-
]), 4)) : P("", !0)
|
|
686
|
-
]),
|
|
687
|
-
_: 1
|
|
688
|
-
}));
|
|
664
|
+
return (o, r) => o.open ? (C(), Q("div", {
|
|
665
|
+
key: 0,
|
|
666
|
+
class: "x-cont",
|
|
667
|
+
style: le(a.value)
|
|
668
|
+
}, r[0] || (r[0] = [
|
|
669
|
+
m("div", { class: "lds-spinner" }, [
|
|
670
|
+
m("div"),
|
|
671
|
+
m("div"),
|
|
672
|
+
m("div"),
|
|
673
|
+
m("div"),
|
|
674
|
+
m("div"),
|
|
675
|
+
m("div"),
|
|
676
|
+
m("div"),
|
|
677
|
+
m("div"),
|
|
678
|
+
m("div"),
|
|
679
|
+
m("div"),
|
|
680
|
+
m("div"),
|
|
681
|
+
m("div")
|
|
682
|
+
], -1)
|
|
683
|
+
]), 4)) : P("", !0);
|
|
689
684
|
}
|
|
690
685
|
}), oe = (e, t) => {
|
|
691
686
|
const a = e.__vccOpts || e;
|
|
692
|
-
for (const [o,
|
|
693
|
-
a[o] =
|
|
687
|
+
for (const [o, r] of t)
|
|
688
|
+
a[o] = r;
|
|
694
689
|
return a;
|
|
695
|
-
},
|
|
696
|
-
var
|
|
697
|
-
const
|
|
690
|
+
}, gt = /* @__PURE__ */ oe(ft, [["__scopeId", "data-v-4fee730c"]]);
|
|
691
|
+
var vt = "M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z", mt = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z", ht = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", wt = "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z", yt = "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z";
|
|
692
|
+
const xt = /* @__PURE__ */ B({
|
|
698
693
|
__name: "item",
|
|
699
694
|
props: {
|
|
700
695
|
id: {},
|
|
@@ -707,16 +702,16 @@ const bt = /* @__PURE__ */ B({
|
|
|
707
702
|
const a = e, o = y(() => ({
|
|
708
703
|
width: "calc(100% - 64px)",
|
|
709
704
|
overflowWrap: "break-word"
|
|
710
|
-
})),
|
|
705
|
+
})), r = y(() => {
|
|
711
706
|
switch (a.type) {
|
|
712
707
|
case "success":
|
|
713
|
-
return
|
|
708
|
+
return mt;
|
|
714
709
|
case "info":
|
|
715
|
-
return xt;
|
|
716
|
-
case "error":
|
|
717
710
|
return yt;
|
|
711
|
+
case "error":
|
|
712
|
+
return wt;
|
|
718
713
|
case "warning":
|
|
719
|
-
return
|
|
714
|
+
return vt;
|
|
720
715
|
default:
|
|
721
716
|
return "";
|
|
722
717
|
}
|
|
@@ -725,27 +720,27 @@ const bt = /* @__PURE__ */ B({
|
|
|
725
720
|
setTimeout(() => {
|
|
726
721
|
c("timeout", a.id);
|
|
727
722
|
}, a.timeout);
|
|
728
|
-
}), N(l, (
|
|
729
|
-
|
|
730
|
-
}), (
|
|
731
|
-
const _ =
|
|
723
|
+
}), N(l, (n) => {
|
|
724
|
+
n || c("timeout", a.id);
|
|
725
|
+
}), (n, u) => {
|
|
726
|
+
const _ = h("v-icon"), g = h("v-sheet");
|
|
732
727
|
return C(), q(g, {
|
|
733
728
|
class: "x-item d-flex align-center py-2 mb-2",
|
|
734
729
|
color: a.type,
|
|
735
730
|
elevation: 1
|
|
736
731
|
}, {
|
|
737
|
-
default:
|
|
738
|
-
|
|
732
|
+
default: w(() => [
|
|
733
|
+
r.value ? (C(), q(_, {
|
|
739
734
|
key: 0,
|
|
740
735
|
class: "mx-1",
|
|
741
|
-
icon:
|
|
736
|
+
icon: r.value
|
|
742
737
|
}, null, 8, ["icon"])) : P("", !0),
|
|
743
738
|
m("div", {
|
|
744
739
|
style: le(o.value)
|
|
745
740
|
}, R(a.text), 5),
|
|
746
741
|
b(_, {
|
|
747
742
|
class: "mx-1",
|
|
748
|
-
icon: H(
|
|
743
|
+
icon: H(ht),
|
|
749
744
|
onClick: u[0] || (u[0] = (v) => c("timeout", a.id))
|
|
750
745
|
}, null, 8, ["icon"])
|
|
751
746
|
]),
|
|
@@ -753,7 +748,7 @@ const bt = /* @__PURE__ */ B({
|
|
|
753
748
|
}, 8, ["color"]);
|
|
754
749
|
};
|
|
755
750
|
}
|
|
756
|
-
}),
|
|
751
|
+
}), bt = /* @__PURE__ */ oe(xt, [["__scopeId", "data-v-d5cfe252"]]), kt = /* @__PURE__ */ B({
|
|
757
752
|
__name: "index",
|
|
758
753
|
setup(e) {
|
|
759
754
|
const t = f([]);
|
|
@@ -762,26 +757,26 @@ const bt = /* @__PURE__ */ B({
|
|
|
762
757
|
}), W(() => {
|
|
763
758
|
p.off("message", a);
|
|
764
759
|
});
|
|
765
|
-
const a = (
|
|
766
|
-
const { type: u, text: _, timeout: g } =
|
|
760
|
+
const a = (n) => {
|
|
761
|
+
const { type: u, text: _, timeout: g } = n;
|
|
767
762
|
l(u, _, g);
|
|
768
|
-
}, o = (
|
|
769
|
-
c(
|
|
763
|
+
}, o = (n) => {
|
|
764
|
+
c(n);
|
|
770
765
|
};
|
|
771
|
-
let
|
|
772
|
-
const l = (
|
|
773
|
-
const g =
|
|
774
|
-
t.value.push({ id: g, type:
|
|
775
|
-
}, c = (
|
|
776
|
-
const u = t.value.findIndex((_) => _.id ===
|
|
766
|
+
let r = 0;
|
|
767
|
+
const l = (n, u, _) => {
|
|
768
|
+
const g = r++;
|
|
769
|
+
t.value.push({ id: g, type: n, text: u, timeout: _ });
|
|
770
|
+
}, c = (n) => {
|
|
771
|
+
const u = t.value.findIndex((_) => _.id === n);
|
|
777
772
|
u >= 0 && t.value.splice(u, 1);
|
|
778
773
|
};
|
|
779
|
-
return (
|
|
774
|
+
return (n, u) => (C(), Q("div", {
|
|
780
775
|
class: "x-cont d-flex flex-column-reverse align-center",
|
|
781
776
|
onClick: u[0] || (u[0] = $(() => {
|
|
782
777
|
}, ["stop"]))
|
|
783
778
|
}, [
|
|
784
|
-
(C(!0), Q(
|
|
779
|
+
(C(!0), Q(De, null, Me(t.value, (_) => (C(), q(bt, {
|
|
785
780
|
id: _.id,
|
|
786
781
|
key: _.id,
|
|
787
782
|
type: _.type,
|
|
@@ -791,49 +786,49 @@ const bt = /* @__PURE__ */ B({
|
|
|
791
786
|
}, null, 8, ["id", "type", "text", "timeout"]))), 128))
|
|
792
787
|
]));
|
|
793
788
|
}
|
|
794
|
-
}),
|
|
789
|
+
}), Ct = /* @__PURE__ */ oe(kt, [["__scopeId", "data-v-8fd5d800"]]), Lt = /* @__PURE__ */ B({
|
|
795
790
|
__name: "index",
|
|
796
791
|
setup(e) {
|
|
797
|
-
const { t } = ee(), a = f(""), o = f(""),
|
|
798
|
-
let k = 0,
|
|
792
|
+
const { t } = ee(), a = f(""), o = f(""), r = f(""), l = f(""), c = f(), n = f(""), u = f(""), _ = f(""), g = f(""), v = f(""), L = Se("target");
|
|
793
|
+
let k = 0, d = !1;
|
|
799
794
|
const D = async (M) => {
|
|
800
795
|
var j, K, z, E;
|
|
801
|
-
const
|
|
802
|
-
a.value =
|
|
796
|
+
const i = M;
|
|
797
|
+
a.value = i.title, o.value = i.text, r.value = i.label, l.value = i.placeholder, c.value = i.rules, n.value = i.value, u.value = ((j = i.cancel) == null ? void 0 : j.color) ?? "primary", _.value = ((K = i.cancel) == null ? void 0 : K.text) ?? t("dlg.common.cancel"), g.value = ((z = i.confirm) == null ? void 0 : z.color) ?? "primary", v.value = ((E = i.confirm) == null ? void 0 : E.text) ?? t("dlg.common.confirm"), k = i.seq, d = !1, s.value = !0, await te(() => !!L.value), L.value.focus();
|
|
803
798
|
}, { open: s } = ae("promptDlg", D), x = () => {
|
|
804
|
-
s.value = !1,
|
|
799
|
+
s.value = !1, d || (p.emit("promptDlgResult" + k, n.value ?? ""), d = !0);
|
|
805
800
|
};
|
|
806
801
|
return N(s, (M) => {
|
|
807
|
-
!M && !
|
|
808
|
-
}), (M,
|
|
809
|
-
const j =
|
|
802
|
+
!M && !d && (p.emit("promptDlgResult" + k, void 0), d = !0);
|
|
803
|
+
}), (M, i) => {
|
|
804
|
+
const j = h("v-card-text"), K = h("v-text-field"), z = h("v-form"), E = h("v-btn"), he = h("v-card-actions"), we = h("v-card"), ye = h("v-dialog");
|
|
810
805
|
return C(), q(ye, {
|
|
811
806
|
modelValue: H(s),
|
|
812
|
-
"onUpdate:modelValue":
|
|
807
|
+
"onUpdate:modelValue": i[2] || (i[2] = (U) => Y(s) ? s.value = U : null),
|
|
813
808
|
transition: "dialog-top-transition",
|
|
814
809
|
"max-width": "600px",
|
|
815
810
|
onKeydown: [
|
|
816
|
-
|
|
811
|
+
i[3] || (i[3] = F($((U) => s.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
817
812
|
F($(x, ["stop", "prevent"]), ["enter"])
|
|
818
813
|
]
|
|
819
814
|
}, {
|
|
820
|
-
default:
|
|
815
|
+
default: w(() => [
|
|
821
816
|
b(we, { title: a.value }, {
|
|
822
|
-
default:
|
|
817
|
+
default: w(() => [
|
|
823
818
|
o.value ? (C(), q(j, { key: 0 }, {
|
|
824
|
-
default:
|
|
819
|
+
default: w(() => [
|
|
825
820
|
V(R(o.value), 1)
|
|
826
821
|
]),
|
|
827
822
|
_: 1
|
|
828
823
|
})) : P("", !0),
|
|
829
824
|
b(z, { class: "mx-3" }, {
|
|
830
|
-
default:
|
|
825
|
+
default: w(() => [
|
|
831
826
|
b(K, {
|
|
832
827
|
ref_key: "target",
|
|
833
828
|
ref: L,
|
|
834
|
-
modelValue:
|
|
835
|
-
"onUpdate:modelValue":
|
|
836
|
-
label:
|
|
829
|
+
modelValue: n.value,
|
|
830
|
+
"onUpdate:modelValue": i[0] || (i[0] = (U) => n.value = U),
|
|
831
|
+
label: r.value,
|
|
837
832
|
placeholder: l.value,
|
|
838
833
|
rules: c.value
|
|
839
834
|
}, null, 8, ["modelValue", "label", "placeholder", "rules"])
|
|
@@ -841,13 +836,13 @@ const bt = /* @__PURE__ */ B({
|
|
|
841
836
|
_: 1
|
|
842
837
|
}),
|
|
843
838
|
b(he, { class: "d-flex justify-end" }, {
|
|
844
|
-
default:
|
|
839
|
+
default: w(() => [
|
|
845
840
|
b(E, {
|
|
846
841
|
color: u.value,
|
|
847
842
|
variant: "text",
|
|
848
|
-
onClick:
|
|
843
|
+
onClick: i[1] || (i[1] = (U) => s.value = !1)
|
|
849
844
|
}, {
|
|
850
|
-
default:
|
|
845
|
+
default: w(() => [
|
|
851
846
|
V(R(_.value), 1)
|
|
852
847
|
]),
|
|
853
848
|
_: 1
|
|
@@ -857,7 +852,7 @@ const bt = /* @__PURE__ */ B({
|
|
|
857
852
|
variant: "text",
|
|
858
853
|
onClick: x
|
|
859
854
|
}, {
|
|
860
|
-
default:
|
|
855
|
+
default: w(() => [
|
|
861
856
|
V(R(v.value), 1)
|
|
862
857
|
]),
|
|
863
858
|
_: 1
|
|
@@ -873,38 +868,38 @@ const bt = /* @__PURE__ */ B({
|
|
|
873
868
|
}, 8, ["modelValue", "onKeydown"]);
|
|
874
869
|
};
|
|
875
870
|
}
|
|
876
|
-
}),
|
|
871
|
+
}), Dt = { class: "mx-auto my-auto" }, Mt = { class: "w-100 h-100 d-flex align-center justify-center" }, St = { class: "text-body-1" }, jt = /* @__PURE__ */ B({
|
|
877
872
|
__name: "index",
|
|
878
873
|
setup(e) {
|
|
879
874
|
const { t } = ee(), a = f(""), o = (c) => {
|
|
880
|
-
const
|
|
881
|
-
a.value =
|
|
882
|
-
},
|
|
875
|
+
const n = c;
|
|
876
|
+
a.value = n.text ?? t("dlg.common.waiting"), l.value = !0;
|
|
877
|
+
}, r = () => {
|
|
883
878
|
l.value = !1;
|
|
884
879
|
}, { open: l } = ae("waitDlg", o);
|
|
885
880
|
return T(() => {
|
|
886
|
-
p.on("closeWaitDlg",
|
|
881
|
+
p.on("closeWaitDlg", r);
|
|
887
882
|
}), W(() => {
|
|
888
|
-
p.off("closeWaitDlg",
|
|
889
|
-
}), (c,
|
|
890
|
-
const u =
|
|
883
|
+
p.off("closeWaitDlg", r);
|
|
884
|
+
}), (c, n) => {
|
|
885
|
+
const u = h("v-card"), _ = h("v-dialog");
|
|
891
886
|
return C(), q(_, {
|
|
892
887
|
modelValue: H(l),
|
|
893
|
-
"onUpdate:modelValue":
|
|
888
|
+
"onUpdate:modelValue": n[0] || (n[0] = (g) => Y(l) ? l.value = g : null),
|
|
894
889
|
persistent: "",
|
|
895
890
|
"no-click-animation": "",
|
|
896
891
|
fullscreen: ""
|
|
897
892
|
}, {
|
|
898
|
-
default:
|
|
899
|
-
m("div",
|
|
893
|
+
default: w(() => [
|
|
894
|
+
m("div", Dt, [
|
|
900
895
|
b(u, {
|
|
901
896
|
width: "300px",
|
|
902
897
|
height: "80px",
|
|
903
898
|
loading: ""
|
|
904
899
|
}, {
|
|
905
|
-
default:
|
|
906
|
-
m("div",
|
|
907
|
-
m("span",
|
|
900
|
+
default: w(() => [
|
|
901
|
+
m("div", Mt, [
|
|
902
|
+
m("span", St, R(a.value), 1)
|
|
908
903
|
])
|
|
909
904
|
]),
|
|
910
905
|
_: 1
|
|
@@ -915,11 +910,11 @@ const bt = /* @__PURE__ */ B({
|
|
|
915
910
|
}, 8, ["modelValue"]);
|
|
916
911
|
};
|
|
917
912
|
}
|
|
918
|
-
}),
|
|
919
|
-
e.component("XConfirmDlg",
|
|
920
|
-
},
|
|
913
|
+
}), Rt = (e) => {
|
|
914
|
+
e.component("XConfirmDlg", it), e.component("XLoading", gt), e.component("XMessage", Ct), e.component("XPromptDlg", Lt), e.component("XWaitDlg", jt);
|
|
915
|
+
}, qt = (e, t, a) => {
|
|
921
916
|
const o = e[t];
|
|
922
|
-
return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((
|
|
917
|
+
return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((r, l) => {
|
|
923
918
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
924
919
|
l.bind(
|
|
925
920
|
null,
|
|
@@ -930,54 +925,54 @@ const bt = /* @__PURE__ */ B({
|
|
|
930
925
|
);
|
|
931
926
|
});
|
|
932
927
|
};
|
|
933
|
-
async function
|
|
934
|
-
return (await
|
|
928
|
+
async function oa(e) {
|
|
929
|
+
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;
|
|
935
930
|
}
|
|
936
|
-
const ra = { install:
|
|
931
|
+
const ra = { install: Rt };
|
|
937
932
|
export {
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
933
|
+
He as Permission,
|
|
934
|
+
at as addView,
|
|
935
|
+
We as appAppear,
|
|
936
|
+
Pt as clearViews,
|
|
937
|
+
Ht as closeWaitDlg,
|
|
938
|
+
Bt as createAxios,
|
|
944
939
|
ra as default,
|
|
945
|
-
|
|
940
|
+
ot as delView,
|
|
946
941
|
p as eventBus,
|
|
947
942
|
me as hasView,
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
943
|
+
Zt as injectDark,
|
|
944
|
+
Qt as injectLastAppPath,
|
|
945
|
+
Nt as injectLocale,
|
|
946
|
+
Gt as injectPermissionChecksum,
|
|
947
|
+
Ze as injectPermissionObjects,
|
|
948
|
+
Je as injectViews,
|
|
949
|
+
tt as isEmpty,
|
|
950
|
+
ne as isExist,
|
|
951
|
+
Yt as lastView,
|
|
952
|
+
oa as loadLocaleMessageEssential,
|
|
958
953
|
Z as matchRouteMeta,
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
954
|
+
Kt as messageError,
|
|
955
|
+
zt as messageInfo,
|
|
956
|
+
Xt as messageSuccess,
|
|
957
|
+
Ft as messageWarning,
|
|
958
|
+
Jt as onBeforeEach,
|
|
959
|
+
Ut as openConfirmDlg,
|
|
960
|
+
Wt as openPromptDlg,
|
|
961
|
+
$t as openWaitDlg,
|
|
967
962
|
rt as popView,
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
963
|
+
ze as provideDark,
|
|
964
|
+
Ge as provideLastAppPath,
|
|
965
|
+
Xe as provideLocale,
|
|
966
|
+
Ne as providePermissionChecksum,
|
|
967
|
+
Fe as providePermissionObjects,
|
|
968
|
+
Qe as provideViews,
|
|
974
969
|
G as routeTransName,
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
970
|
+
Ve as useColor,
|
|
971
|
+
ea as useMicroApp,
|
|
972
|
+
ta as usePermission,
|
|
973
|
+
aa as useSystem,
|
|
979
974
|
ae as useViewStack,
|
|
980
|
-
|
|
981
|
-
|
|
975
|
+
Ke as verifyPermission,
|
|
976
|
+
Et as waitMs,
|
|
982
977
|
te as waitUtil
|
|
983
978
|
};
|
|
@@ -110,12 +110,16 @@ export declare enum Permission {
|
|
|
110
110
|
add_org_member = "add_org_member",
|
|
111
111
|
remove_org_member = "remove_org_member",
|
|
112
112
|
update_org_member = "update_org_member",
|
|
113
|
+
list_org_role_group = "list_org_role_group",
|
|
114
|
+
create_org_role_group = "create_org_role_group",
|
|
115
|
+
delete_org_role_group = "delete_org_role_group",
|
|
116
|
+
update_org_role_group = "update_org_role_group",
|
|
117
|
+
arrange_org_role_group = "arrange_org_role_group",
|
|
113
118
|
list_org_role = "list_org_role",
|
|
114
119
|
get_org_role = "get_org_role",
|
|
115
120
|
create_org_role = "create_org_role",
|
|
116
121
|
delete_org_role = "delete_org_role",
|
|
117
122
|
update_org_role = "update_org_role",
|
|
118
|
-
arrange_org_role = "arrange_org_role",
|
|
119
123
|
get_org_structure = "get_org_structure",
|
|
120
124
|
update_org_structure = "update_org_structure",
|
|
121
125
|
filter_table = "filter_table"
|