x-essential-lib 0.7.1 → 0.7.2
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 +221 -221
- package/dist/utils/permission.d.ts +17 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
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-d525e6f5]{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 { ref as
|
|
2
|
+
import { ref as _, defineComponent as T, computed as g, onMounted as V, onBeforeUnmount as I, watch as Z, resolveComponent as h, openBlock as D, createBlock as O, withKeys as F, withModifiers as W, withCtx as w, createVNode as k, createTextVNode as E, toDisplayString as q, createElementBlock as Q, normalizeStyle as re, createElementVNode as v, createCommentVNode as ne, unref as le, Fragment as fe, renderList as ge, getCurrentScope as ve, onScopeDispose as me, watchEffect as he, getCurrentInstance as we } from "vue";
|
|
3
3
|
import { useI18n as Y } from "vue-i18n";
|
|
4
4
|
import { defineStore as ce } from "pinia";
|
|
5
5
|
import ye from "axios";
|
|
6
6
|
import { useRouter as ue, useRoute as xe } from "vue-router";
|
|
7
|
-
import { useTheme as P, useDisplay as
|
|
7
|
+
import { useTheme as P, useDisplay as be } from "vuetify";
|
|
8
8
|
const G = ce("global", () => {
|
|
9
|
-
const e =
|
|
9
|
+
const e = _(), a = _("en"), t = _({}), r = _(""), o = _("");
|
|
10
10
|
return {
|
|
11
11
|
dark: e,
|
|
12
|
-
locale:
|
|
12
|
+
locale: a,
|
|
13
13
|
permissionObjects: t,
|
|
14
14
|
permissionChecksum: r,
|
|
15
|
-
lastAppPath:
|
|
15
|
+
lastAppPath: o
|
|
16
16
|
};
|
|
17
17
|
}), H = ce("viewMgr", () => {
|
|
18
|
-
const e =
|
|
19
|
-
function
|
|
18
|
+
const e = _([]);
|
|
19
|
+
function a() {
|
|
20
20
|
return e.value.length <= 0;
|
|
21
21
|
}
|
|
22
22
|
function t() {
|
|
@@ -27,12 +27,12 @@ const G = ce("global", () => {
|
|
|
27
27
|
function r(u) {
|
|
28
28
|
return e.value.find((s) => s === u) !== void 0;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
const s = e.value.findIndex((
|
|
30
|
+
function o(u) {
|
|
31
|
+
const s = e.value.findIndex((d) => d === u);
|
|
32
32
|
s !== -1 && e.value.splice(s, 1), e.value.push(u);
|
|
33
33
|
}
|
|
34
34
|
function l(u) {
|
|
35
|
-
const s = e.value.findIndex((
|
|
35
|
+
const s = e.value.findIndex((d) => d === u);
|
|
36
36
|
s !== -1 && e.value.splice(s, 1);
|
|
37
37
|
}
|
|
38
38
|
function n() {
|
|
@@ -43,10 +43,10 @@ const G = ce("global", () => {
|
|
|
43
43
|
}
|
|
44
44
|
return {
|
|
45
45
|
views: e,
|
|
46
|
-
isEmpty:
|
|
46
|
+
isEmpty: a,
|
|
47
47
|
lastView: t,
|
|
48
48
|
hasView: r,
|
|
49
|
-
addView:
|
|
49
|
+
addView: o,
|
|
50
50
|
delView: l,
|
|
51
51
|
popView: n,
|
|
52
52
|
clearViews: c
|
|
@@ -54,14 +54,14 @@ const G = ce("global", () => {
|
|
|
54
54
|
});
|
|
55
55
|
/*! js-cookie v3.0.5 | MIT */
|
|
56
56
|
function X(e) {
|
|
57
|
-
for (var
|
|
58
|
-
var t = arguments[
|
|
57
|
+
for (var a = 1; a < arguments.length; a++) {
|
|
58
|
+
var t = arguments[a];
|
|
59
59
|
for (var r in t)
|
|
60
60
|
e[r] = t[r];
|
|
61
61
|
}
|
|
62
62
|
return e;
|
|
63
63
|
}
|
|
64
|
-
var
|
|
64
|
+
var ke = {
|
|
65
65
|
read: function(e) {
|
|
66
66
|
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
67
67
|
},
|
|
@@ -72,109 +72,109 @@ var Ce = {
|
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
|
-
function J(e,
|
|
76
|
-
function t(
|
|
75
|
+
function J(e, a) {
|
|
76
|
+
function t(o, l, n) {
|
|
77
77
|
if (!(typeof document > "u")) {
|
|
78
|
-
n = X({},
|
|
78
|
+
n = X({}, a, n), typeof n.expires == "number" && (n.expires = new Date(Date.now() + n.expires * 864e5)), n.expires && (n.expires = n.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
79
79
|
var c = "";
|
|
80
80
|
for (var u in n)
|
|
81
81
|
n[u] && (c += "; " + u, n[u] !== !0 && (c += "=" + n[u].split(";")[0]));
|
|
82
|
-
return document.cookie =
|
|
82
|
+
return document.cookie = o + "=" + e.write(l, o) + c;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
function r(
|
|
86
|
-
if (!(typeof document > "u" || arguments.length && !
|
|
85
|
+
function r(o) {
|
|
86
|
+
if (!(typeof document > "u" || arguments.length && !o)) {
|
|
87
87
|
for (var l = document.cookie ? document.cookie.split("; ") : [], n = {}, c = 0; c < l.length; c++) {
|
|
88
88
|
var u = l[c].split("="), s = u.slice(1).join("=");
|
|
89
89
|
try {
|
|
90
|
-
var
|
|
91
|
-
if (n[
|
|
90
|
+
var d = decodeURIComponent(u[0]);
|
|
91
|
+
if (n[d] = e.read(s, d), o === d)
|
|
92
92
|
break;
|
|
93
93
|
} catch {
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
return
|
|
96
|
+
return o ? n[o] : n;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
return Object.create(
|
|
100
100
|
{
|
|
101
101
|
set: t,
|
|
102
102
|
get: r,
|
|
103
|
-
remove: function(
|
|
103
|
+
remove: function(o, l) {
|
|
104
104
|
t(
|
|
105
|
-
|
|
105
|
+
o,
|
|
106
106
|
"",
|
|
107
107
|
X({}, l, {
|
|
108
108
|
expires: -1
|
|
109
109
|
})
|
|
110
110
|
);
|
|
111
111
|
},
|
|
112
|
-
withAttributes: function(
|
|
113
|
-
return J(this.converter, X({}, this.attributes,
|
|
112
|
+
withAttributes: function(o) {
|
|
113
|
+
return J(this.converter, X({}, this.attributes, o));
|
|
114
114
|
},
|
|
115
|
-
withConverter: function(
|
|
116
|
-
return J(X({}, this.converter,
|
|
115
|
+
withConverter: function(o) {
|
|
116
|
+
return J(X({}, this.converter, o), this.attributes);
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
|
-
attributes: { value: Object.freeze(
|
|
120
|
+
attributes: { value: Object.freeze(a) },
|
|
121
121
|
converter: { value: Object.freeze(e) }
|
|
122
122
|
}
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
|
-
var j = J(
|
|
125
|
+
var j = J(ke, { path: "/" });
|
|
126
126
|
function vt(e) {
|
|
127
|
-
const
|
|
127
|
+
const a = ye.create({
|
|
128
128
|
timeout: 6e3
|
|
129
129
|
});
|
|
130
|
-
return
|
|
131
|
-
(t) =>
|
|
130
|
+
return a.defaults.baseURL = e.baseUrl, a.interceptors.request.use(
|
|
131
|
+
(t) => Ce(t),
|
|
132
132
|
(t) => {
|
|
133
133
|
De(t, e.onError);
|
|
134
134
|
}
|
|
135
|
-
),
|
|
135
|
+
), a.interceptors.response.use(
|
|
136
136
|
(t) => Le(t),
|
|
137
137
|
(t) => Ve(t, e.onError)
|
|
138
|
-
),
|
|
138
|
+
), a;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
const
|
|
142
|
-
return e.headers.Authorization = "Basic " +
|
|
140
|
+
function Ce(e) {
|
|
141
|
+
const a = j.get("accessToken") ?? "";
|
|
142
|
+
return e.headers.Authorization = "Basic " + a, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
|
|
143
143
|
}
|
|
144
|
-
function De(e,
|
|
145
|
-
console.error(e),
|
|
144
|
+
function De(e, a) {
|
|
145
|
+
console.error(e), a("request timeout");
|
|
146
146
|
}
|
|
147
147
|
function Le(e) {
|
|
148
148
|
return e.data;
|
|
149
149
|
}
|
|
150
|
-
function Ve(e,
|
|
151
|
-
var
|
|
150
|
+
function Ve(e, a) {
|
|
151
|
+
var o;
|
|
152
152
|
const t = e.response;
|
|
153
153
|
if (!t)
|
|
154
154
|
return Promise.reject(e);
|
|
155
155
|
t.status === 401 && Me();
|
|
156
|
-
let r = (
|
|
156
|
+
let r = (o = t.data) == null ? void 0 : o.message;
|
|
157
157
|
return r || (r = {
|
|
158
158
|
code: t.status,
|
|
159
159
|
message: t.statusText
|
|
160
|
-
}),
|
|
160
|
+
}), a(r), Promise.reject(e);
|
|
161
161
|
}
|
|
162
162
|
function Me() {
|
|
163
163
|
j.remove("accessToken"), j.remove("refreshToken"), j.remove("activeOrg"), ue().replace({ path: "/passport/login" });
|
|
164
164
|
}
|
|
165
165
|
function Se(e) {
|
|
166
|
-
return { all: e = e || /* @__PURE__ */ new Map(), on: function(
|
|
167
|
-
var r = e.get(
|
|
168
|
-
r ? r.push(t) : e.set(
|
|
169
|
-
}, off: function(
|
|
170
|
-
var r = e.get(
|
|
171
|
-
r && (t ? r.splice(r.indexOf(t) >>> 0, 1) : e.set(
|
|
172
|
-
}, emit: function(
|
|
173
|
-
var r = e.get(
|
|
174
|
-
r && r.slice().map(function(
|
|
175
|
-
|
|
176
|
-
}), (r = e.get("*")) && r.slice().map(function(
|
|
177
|
-
a
|
|
166
|
+
return { all: e = e || /* @__PURE__ */ new Map(), on: function(a, t) {
|
|
167
|
+
var r = e.get(a);
|
|
168
|
+
r ? r.push(t) : e.set(a, [t]);
|
|
169
|
+
}, off: function(a, t) {
|
|
170
|
+
var r = e.get(a);
|
|
171
|
+
r && (t ? r.splice(r.indexOf(t) >>> 0, 1) : e.set(a, []));
|
|
172
|
+
}, emit: function(a, t) {
|
|
173
|
+
var r = e.get(a);
|
|
174
|
+
r && r.slice().map(function(o) {
|
|
175
|
+
o(t);
|
|
176
|
+
}), (r = e.get("*")) && r.slice().map(function(o) {
|
|
177
|
+
o(a, t);
|
|
178
178
|
});
|
|
179
179
|
} };
|
|
180
180
|
}
|
|
@@ -182,29 +182,29 @@ const p = function() {
|
|
|
182
182
|
return window.eventBus || (window.eventBus = Se()), window.eventBus;
|
|
183
183
|
}();
|
|
184
184
|
async function mt(e) {
|
|
185
|
-
return new Promise((
|
|
186
|
-
setTimeout(
|
|
185
|
+
return new Promise((a) => {
|
|
186
|
+
setTimeout(a, e);
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
async function ee(e,
|
|
189
|
+
async function ee(e, a, t) {
|
|
190
190
|
const r = Date.now();
|
|
191
|
-
return new Promise((
|
|
191
|
+
return new Promise((o) => {
|
|
192
192
|
const l = async () => {
|
|
193
|
-
e() ?
|
|
193
|
+
e() ? o(!0) : a && Date.now() - r > a ? o(!1) : setTimeout(l, t ?? 30);
|
|
194
194
|
};
|
|
195
195
|
l();
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
-
function Ae(e,
|
|
198
|
+
function Ae(e, a) {
|
|
199
199
|
const t = document.getElementById("single-spa-application:" + e);
|
|
200
|
-
t && (t.classList.remove("app-left", "app-right", "app-reset"),
|
|
200
|
+
t && (t.classList.remove("app-left", "app-right", "app-reset"), a ? t.classList.add("app-left") : t.classList.add("app-right"), setTimeout(() => {
|
|
201
201
|
t.classList.add("app-reset");
|
|
202
202
|
}, 50));
|
|
203
203
|
}
|
|
204
|
-
let
|
|
204
|
+
let ae = Date.now();
|
|
205
205
|
function pe() {
|
|
206
206
|
const e = Date.now();
|
|
207
|
-
return e -
|
|
207
|
+
return e - ae > 500 ? (ae = e, !0) : !1;
|
|
208
208
|
}
|
|
209
209
|
let qe = 0;
|
|
210
210
|
function se() {
|
|
@@ -213,20 +213,20 @@ function se() {
|
|
|
213
213
|
async function ht(e) {
|
|
214
214
|
if (!pe())
|
|
215
215
|
return;
|
|
216
|
-
let
|
|
216
|
+
let a = !1, t;
|
|
217
217
|
const r = (l) => {
|
|
218
|
-
t = l,
|
|
219
|
-
},
|
|
220
|
-
return p.on("confirmDlgResult" +
|
|
218
|
+
t = l, a = !0;
|
|
219
|
+
}, o = se();
|
|
220
|
+
return p.on("confirmDlgResult" + o, r), p.emit("confirmDlg", { ...e, seq: o }), await ee(() => a), p.off("confirmDlgResult" + o, r), t;
|
|
221
221
|
}
|
|
222
222
|
async function wt(e) {
|
|
223
223
|
if (!pe())
|
|
224
224
|
return;
|
|
225
|
-
let
|
|
225
|
+
let a = !1, t;
|
|
226
226
|
const r = (l) => {
|
|
227
|
-
t = l,
|
|
228
|
-
},
|
|
229
|
-
return p.on("promptDlgResult" +
|
|
227
|
+
t = l, a = !0;
|
|
228
|
+
}, o = se();
|
|
229
|
+
return p.on("promptDlgResult" + o, r), p.emit("promptDlg", { ...e, seq: o }), await ee(() => a), p.off("promptDlgResult" + o, r), t;
|
|
230
230
|
}
|
|
231
231
|
function yt(e) {
|
|
232
232
|
p.emit("openWaitDlg", { text: e });
|
|
@@ -234,28 +234,28 @@ function yt(e) {
|
|
|
234
234
|
function xt() {
|
|
235
235
|
p.emit("closeWaitDlg");
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
p.emit("message", { type: "error", text: e, timeout:
|
|
237
|
+
function bt(e, a) {
|
|
238
|
+
p.emit("message", { type: "error", text: e, timeout: a });
|
|
239
239
|
}
|
|
240
|
-
function
|
|
241
|
-
p.emit("message", { type: "info", text: e, timeout:
|
|
240
|
+
function kt(e, a) {
|
|
241
|
+
p.emit("message", { type: "info", text: e, timeout: a });
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
p.emit("message", { type: "success", text: e, timeout:
|
|
243
|
+
function Ct(e, a) {
|
|
244
|
+
p.emit("message", { type: "success", text: e, timeout: a });
|
|
245
245
|
}
|
|
246
|
-
function Dt(e,
|
|
247
|
-
p.emit("message", { type: "warning", text: e, timeout:
|
|
246
|
+
function Dt(e, a) {
|
|
247
|
+
p.emit("message", { type: "warning", text: e, timeout: a });
|
|
248
248
|
}
|
|
249
|
-
var Re = /* @__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.
|
|
250
|
-
function
|
|
249
|
+
var Re = /* @__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))(Re || {});
|
|
250
|
+
function oe(e, a) {
|
|
251
251
|
if (!e)
|
|
252
252
|
return !1;
|
|
253
253
|
let t = e;
|
|
254
|
-
return Object.keys(t).length <= 0 || (
|
|
254
|
+
return Object.keys(t).length <= 0 || (a.split("/").forEach((o) => {
|
|
255
255
|
if (Object.keys(t).length <= 0)
|
|
256
256
|
return !0;
|
|
257
|
-
if (t[
|
|
258
|
-
t = t[
|
|
257
|
+
if (t[o])
|
|
258
|
+
t = t[o];
|
|
259
259
|
else
|
|
260
260
|
return !1;
|
|
261
261
|
}), Object.keys(t).length <= 0);
|
|
@@ -369,28 +369,28 @@ const Ie = [
|
|
|
369
369
|
}
|
|
370
370
|
];
|
|
371
371
|
function K(e) {
|
|
372
|
-
let
|
|
373
|
-
const r = e.split("/").filter((
|
|
374
|
-
return Ie.forEach((
|
|
375
|
-
const l =
|
|
372
|
+
let a, t = 0;
|
|
373
|
+
const r = e.split("/").filter((o) => o.trim() !== "");
|
|
374
|
+
return Ie.forEach((o) => {
|
|
375
|
+
const l = o.path.split("/").filter((c) => c.trim() !== "");
|
|
376
376
|
let n = 0;
|
|
377
377
|
for (let c = 0; c < r.length && !(c >= l.length || r[c] !== l[c]); c++)
|
|
378
378
|
n++;
|
|
379
|
-
n > 0 && n > t && (
|
|
380
|
-
}),
|
|
379
|
+
n > 0 && n > t && (a = o, t = n);
|
|
380
|
+
}), a;
|
|
381
381
|
}
|
|
382
|
-
const N =
|
|
383
|
-
function L(e,
|
|
382
|
+
const N = _("");
|
|
383
|
+
function L(e, a) {
|
|
384
384
|
const t = G();
|
|
385
|
-
|
|
386
|
-
const r = K(e),
|
|
385
|
+
a === "/" && (a = t.lastAppPath);
|
|
386
|
+
const r = K(e), o = K(a);
|
|
387
387
|
if (!r) {
|
|
388
388
|
console.assert(!1);
|
|
389
389
|
return;
|
|
390
390
|
}
|
|
391
|
-
if (console.info(`~~~~routeChange~~~~ ${
|
|
391
|
+
if (console.info(`~~~~routeChange~~~~ ${a} -> ${e}`), !o)
|
|
392
392
|
return;
|
|
393
|
-
const l = r.app ===
|
|
393
|
+
const l = r.app === o.app, n = r.path === o.path, c = r.level >= o.level;
|
|
394
394
|
l ? n ? N.value = "" : N.value = c ? "inner-left" : "inner-right" : (N.value = "", Ae(r.app, c));
|
|
395
395
|
}
|
|
396
396
|
function Oe() {
|
|
@@ -399,61 +399,61 @@ function Oe() {
|
|
|
399
399
|
function Ee() {
|
|
400
400
|
return !!j.get("activeOrg");
|
|
401
401
|
}
|
|
402
|
-
function Lt(e,
|
|
403
|
-
const r = Oe(),
|
|
402
|
+
function Lt(e, a, t) {
|
|
403
|
+
const r = Oe(), o = Ee(), l = K(e.path);
|
|
404
404
|
if (!l) {
|
|
405
405
|
console.assert(!1), t();
|
|
406
406
|
return;
|
|
407
407
|
}
|
|
408
408
|
if (l.requiredState === "auth")
|
|
409
409
|
if (r)
|
|
410
|
-
if (
|
|
410
|
+
if (o) {
|
|
411
411
|
const n = "/main";
|
|
412
|
-
L(n,
|
|
412
|
+
L(n, a.path), t({ path: n });
|
|
413
413
|
} else
|
|
414
|
-
L(e.path,
|
|
414
|
+
L(e.path, a.path), t();
|
|
415
415
|
else {
|
|
416
416
|
const n = "/passport/login";
|
|
417
|
-
L(n,
|
|
417
|
+
L(n, a.path), t({ path: n });
|
|
418
418
|
}
|
|
419
419
|
else if (l.requiredState === "org")
|
|
420
420
|
if (r)
|
|
421
|
-
if (
|
|
422
|
-
L(e.path,
|
|
421
|
+
if (o)
|
|
422
|
+
L(e.path, a.path), t();
|
|
423
423
|
else {
|
|
424
424
|
const n = "/org/joinOrCreate";
|
|
425
|
-
L(n,
|
|
425
|
+
L(n, a.path), t({ path: n });
|
|
426
426
|
}
|
|
427
427
|
else {
|
|
428
428
|
const n = "/passport/login";
|
|
429
|
-
L(n,
|
|
429
|
+
L(n, a.path), t({ path: n });
|
|
430
430
|
}
|
|
431
431
|
else if (r)
|
|
432
|
-
if (
|
|
432
|
+
if (o) {
|
|
433
433
|
const n = "/main";
|
|
434
|
-
L(n,
|
|
434
|
+
L(n, a.path), t({ path: n });
|
|
435
435
|
} else {
|
|
436
436
|
const n = "/org/joinOrCreate";
|
|
437
|
-
L(n,
|
|
437
|
+
L(n, a.path), t({ path: n });
|
|
438
438
|
}
|
|
439
439
|
else
|
|
440
|
-
L(e.path,
|
|
440
|
+
L(e.path, a.path), t();
|
|
441
441
|
}
|
|
442
442
|
const je = /* @__PURE__ */ T({
|
|
443
443
|
__name: "index",
|
|
444
444
|
setup(e) {
|
|
445
|
-
const { t:
|
|
445
|
+
const { t: a } = Y(), t = H(), r = g({
|
|
446
446
|
get() {
|
|
447
447
|
return t.hasView("confirmDlg");
|
|
448
448
|
},
|
|
449
449
|
set(m) {
|
|
450
450
|
m ? t.addView("confirmDlg") : t.delView("confirmDlg");
|
|
451
451
|
}
|
|
452
|
-
}),
|
|
453
|
-
let
|
|
452
|
+
}), o = _(""), l = _(""), n = _(""), c = _(""), u = _(""), s = _("");
|
|
453
|
+
let d = 0, y = !1;
|
|
454
454
|
const i = (m) => {
|
|
455
|
-
var x,
|
|
456
|
-
|
|
455
|
+
var x, C, S, R;
|
|
456
|
+
o.value = m.title, l.value = m.text, n.value = ((x = m.cancel) == null ? void 0 : x.color) ?? "primary", c.value = ((C = m.cancel) == null ? void 0 : C.text) ?? a("dlg.common.cancel"), u.value = ((S = m.confirm) == null ? void 0 : S.color) ?? "primary", s.value = ((R = m.confirm) == null ? void 0 : R.text) ?? a("dlg.common.confirm"), d = m.seq, y = !1, r.value = !0;
|
|
457
457
|
};
|
|
458
458
|
V(() => {
|
|
459
459
|
p.on("confirmDlg", i);
|
|
@@ -461,13 +461,13 @@ const je = /* @__PURE__ */ T({
|
|
|
461
461
|
p.off("confirmDlg", i);
|
|
462
462
|
});
|
|
463
463
|
const M = () => {
|
|
464
|
-
r.value = !1, y || (p.emit("confirmDlgResult" +
|
|
464
|
+
r.value = !1, y || (p.emit("confirmDlgResult" + d, !0), y = !0);
|
|
465
465
|
};
|
|
466
466
|
return Z(r, (m) => {
|
|
467
|
-
!m && !y && (p.emit("confirmDlgResult" +
|
|
467
|
+
!m && !y && (p.emit("confirmDlgResult" + d, !1), y = !0);
|
|
468
468
|
}), (m, x) => {
|
|
469
|
-
const
|
|
470
|
-
return D(), O(
|
|
469
|
+
const C = h("v-card-text"), S = h("v-btn"), R = h("v-card-actions"), f = h("v-card"), b = h("v-dialog");
|
|
470
|
+
return D(), O(b, {
|
|
471
471
|
modelValue: r.value,
|
|
472
472
|
"onUpdate:modelValue": x[1] || (x[1] = (A) => r.value = A),
|
|
473
473
|
transition: "dialog-top-transition",
|
|
@@ -478,17 +478,17 @@ const je = /* @__PURE__ */ T({
|
|
|
478
478
|
]
|
|
479
479
|
}, {
|
|
480
480
|
default: w(() => [
|
|
481
|
-
|
|
481
|
+
k(f, { title: o.value }, {
|
|
482
482
|
default: w(() => [
|
|
483
|
-
C
|
|
483
|
+
k(C, null, {
|
|
484
484
|
default: w(() => [
|
|
485
485
|
E(q(l.value), 1)
|
|
486
486
|
]),
|
|
487
487
|
_: 1
|
|
488
488
|
}),
|
|
489
|
-
|
|
489
|
+
k(R, { class: "d-flex justify-end" }, {
|
|
490
490
|
default: w(() => [
|
|
491
|
-
|
|
491
|
+
k(S, {
|
|
492
492
|
color: n.value,
|
|
493
493
|
variant: "text",
|
|
494
494
|
onClick: x[0] || (x[0] = (A) => r.value = !1)
|
|
@@ -498,7 +498,7 @@ const je = /* @__PURE__ */ T({
|
|
|
498
498
|
]),
|
|
499
499
|
_: 1
|
|
500
500
|
}, 8, ["color"]),
|
|
501
|
-
|
|
501
|
+
k(S, {
|
|
502
502
|
color: u.value,
|
|
503
503
|
variant: "text",
|
|
504
504
|
onClick: M
|
|
@@ -525,11 +525,11 @@ const je = /* @__PURE__ */ T({
|
|
|
525
525
|
zIndex: { default: 1 }
|
|
526
526
|
},
|
|
527
527
|
setup(e) {
|
|
528
|
-
const
|
|
529
|
-
background:
|
|
528
|
+
const a = P(), t = e, r = g(() => ({
|
|
529
|
+
background: a.current.value.dark ? "#1e1e1e" : "#ffffff",
|
|
530
530
|
zIndex: t.zIndex
|
|
531
531
|
}));
|
|
532
|
-
return (
|
|
532
|
+
return (o, l) => (D(), Q("div", {
|
|
533
533
|
class: "x-cont",
|
|
534
534
|
style: re(r.value)
|
|
535
535
|
}, l[0] || (l[0] = [
|
|
@@ -549,10 +549,10 @@ const je = /* @__PURE__ */ T({
|
|
|
549
549
|
], -1)
|
|
550
550
|
]), 4));
|
|
551
551
|
}
|
|
552
|
-
}), te = (e,
|
|
552
|
+
}), te = (e, a) => {
|
|
553
553
|
const t = e.__vccOpts || e;
|
|
554
|
-
for (const [r,
|
|
555
|
-
t[r] =
|
|
554
|
+
for (const [r, o] of a)
|
|
555
|
+
t[r] = o;
|
|
556
556
|
return t;
|
|
557
557
|
}, Be = /* @__PURE__ */ te(Te, [["__scopeId", "data-v-7ab74c70"]]);
|
|
558
558
|
var Ue = "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", We = "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", He = "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", $e = "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", ze = "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";
|
|
@@ -565,11 +565,11 @@ const Xe = /* @__PURE__ */ T({
|
|
|
565
565
|
timeout: { default: 5e3 }
|
|
566
566
|
},
|
|
567
567
|
emits: ["timeout"],
|
|
568
|
-
setup(e, { emit:
|
|
568
|
+
setup(e, { emit: a }) {
|
|
569
569
|
const t = e, r = g(() => ({
|
|
570
570
|
width: "calc(100% - 64px)",
|
|
571
571
|
overflowWrap: "break-word"
|
|
572
|
-
})),
|
|
572
|
+
})), o = g(() => {
|
|
573
573
|
switch (t.type) {
|
|
574
574
|
case "success":
|
|
575
575
|
return We;
|
|
@@ -582,7 +582,7 @@ const Xe = /* @__PURE__ */ T({
|
|
|
582
582
|
default:
|
|
583
583
|
return "";
|
|
584
584
|
}
|
|
585
|
-
}), l =
|
|
585
|
+
}), l = _(!0), n = a;
|
|
586
586
|
return V(() => {
|
|
587
587
|
setTimeout(() => {
|
|
588
588
|
n("timeout", t.id);
|
|
@@ -590,22 +590,22 @@ const Xe = /* @__PURE__ */ T({
|
|
|
590
590
|
}), Z(l, (c) => {
|
|
591
591
|
c || n("timeout", t.id);
|
|
592
592
|
}), (c, u) => {
|
|
593
|
-
const s = h("v-icon"),
|
|
594
|
-
return D(), O(
|
|
593
|
+
const s = h("v-icon"), d = h("v-sheet");
|
|
594
|
+
return D(), O(d, {
|
|
595
595
|
class: "x-item d-flex align-center py-2 mb-2",
|
|
596
596
|
color: t.type,
|
|
597
597
|
elevation: 1
|
|
598
598
|
}, {
|
|
599
599
|
default: w(() => [
|
|
600
|
-
|
|
600
|
+
o.value ? (D(), O(s, {
|
|
601
601
|
key: 0,
|
|
602
602
|
class: "mx-1",
|
|
603
|
-
icon:
|
|
603
|
+
icon: o.value
|
|
604
604
|
}, null, 8, ["icon"])) : ne("", !0),
|
|
605
605
|
v("div", {
|
|
606
606
|
style: re(r.value)
|
|
607
607
|
}, q(t.text), 5),
|
|
608
|
-
|
|
608
|
+
k(s, {
|
|
609
609
|
class: "mx-1",
|
|
610
610
|
icon: le(He),
|
|
611
611
|
onClick: u[0] || (u[0] = (y) => n("timeout", t.id))
|
|
@@ -618,7 +618,7 @@ const Xe = /* @__PURE__ */ T({
|
|
|
618
618
|
}), Fe = /* @__PURE__ */ te(Xe, [["__scopeId", "data-v-d5cfe252"]]), Ke = /* @__PURE__ */ T({
|
|
619
619
|
__name: "index",
|
|
620
620
|
setup(e) {
|
|
621
|
-
const
|
|
621
|
+
const a = _([]);
|
|
622
622
|
V(() => {
|
|
623
623
|
p.on("message", t);
|
|
624
624
|
}), I(() => {
|
|
@@ -629,20 +629,20 @@ const Xe = /* @__PURE__ */ T({
|
|
|
629
629
|
}, r = (c) => {
|
|
630
630
|
n(c);
|
|
631
631
|
};
|
|
632
|
-
let
|
|
632
|
+
let o = 0;
|
|
633
633
|
const l = (c, u, s) => {
|
|
634
|
-
const
|
|
635
|
-
|
|
634
|
+
const d = o++;
|
|
635
|
+
a.value.push({ id: d, type: c, text: u, timeout: s });
|
|
636
636
|
}, n = (c) => {
|
|
637
|
-
const u =
|
|
638
|
-
u >= 0 &&
|
|
637
|
+
const u = a.value.findIndex((s) => s.id === c);
|
|
638
|
+
u >= 0 && a.value.splice(u, 1);
|
|
639
639
|
};
|
|
640
640
|
return (c, u) => (D(), Q("div", {
|
|
641
641
|
class: "x-cont d-flex flex-column-reverse align-center",
|
|
642
642
|
onClick: u[0] || (u[0] = W(() => {
|
|
643
643
|
}, ["stop"]))
|
|
644
644
|
}, [
|
|
645
|
-
(D(!0), Q(fe, null, ge(
|
|
645
|
+
(D(!0), Q(fe, null, ge(a.value, (s) => (D(), O(Fe, {
|
|
646
646
|
id: s.id,
|
|
647
647
|
key: s.id,
|
|
648
648
|
type: s.type,
|
|
@@ -655,18 +655,18 @@ const Xe = /* @__PURE__ */ T({
|
|
|
655
655
|
}), Ze = /* @__PURE__ */ te(Ke, [["__scopeId", "data-v-d525e6f5"]]), Ge = /* @__PURE__ */ T({
|
|
656
656
|
__name: "index",
|
|
657
657
|
setup(e) {
|
|
658
|
-
const { t:
|
|
658
|
+
const { t: a } = Y(), t = H(), r = g({
|
|
659
659
|
get() {
|
|
660
660
|
return t.hasView("promptDlg");
|
|
661
661
|
},
|
|
662
662
|
set(f) {
|
|
663
663
|
f ? t.addView("promptDlg") : t.delView("promptDlg");
|
|
664
664
|
}
|
|
665
|
-
}),
|
|
666
|
-
let x = 0,
|
|
665
|
+
}), o = _(""), l = _(""), n = _(""), c = _(""), u = _(), s = _(""), d = _(""), y = _(""), i = _(""), M = _(""), m = _();
|
|
666
|
+
let x = 0, C = !1;
|
|
667
667
|
const S = async (f) => {
|
|
668
|
-
var
|
|
669
|
-
|
|
668
|
+
var b, A, $, z, B;
|
|
669
|
+
o.value = f.title, l.value = f.text, n.value = f.label, c.value = f.placeholder, u.value = f.rules, s.value = f.value, d.value = ((b = f.cancel) == null ? void 0 : b.color) ?? "primary", y.value = ((A = f.cancel) == null ? void 0 : A.text) ?? a("dlg.common.cancel"), i.value = (($ = f.confirm) == null ? void 0 : $.color) ?? "primary", M.value = ((z = f.confirm) == null ? void 0 : z.text) ?? a("dlg.common.confirm"), x = f.seq, C = !1, r.value = !0, await ee(() => !!m.value, 1e3), (B = m.value) == null || B.focus();
|
|
670
670
|
};
|
|
671
671
|
V(() => {
|
|
672
672
|
p.on("promptDlg", S);
|
|
@@ -674,24 +674,24 @@ const Xe = /* @__PURE__ */ T({
|
|
|
674
674
|
p.off("promptDlg", S);
|
|
675
675
|
});
|
|
676
676
|
const R = () => {
|
|
677
|
-
r.value = !1,
|
|
677
|
+
r.value = !1, C || (p.emit("promptDlgResult" + x, s.value ?? ""), C = !0);
|
|
678
678
|
};
|
|
679
679
|
return Z(r, (f) => {
|
|
680
|
-
!f && !
|
|
681
|
-
}), (f,
|
|
682
|
-
const A = h("v-card-text"), $ = h("v-text-field"), z = h("v-form"), B = h("v-btn"),
|
|
680
|
+
!f && !C && (p.emit("promptDlgResult" + x, void 0), C = !0);
|
|
681
|
+
}), (f, b) => {
|
|
682
|
+
const A = h("v-card-text"), $ = h("v-text-field"), z = h("v-form"), B = h("v-btn"), _e = h("v-card-actions"), de = h("v-card"), ie = h("v-dialog");
|
|
683
683
|
return D(), O(ie, {
|
|
684
684
|
modelValue: r.value,
|
|
685
|
-
"onUpdate:modelValue":
|
|
685
|
+
"onUpdate:modelValue": b[2] || (b[2] = (U) => r.value = U),
|
|
686
686
|
transition: "dialog-top-transition",
|
|
687
687
|
"max-width": "600px",
|
|
688
688
|
onKeydown: [
|
|
689
|
-
|
|
689
|
+
b[3] || (b[3] = F(W((U) => r.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
690
690
|
F(W(R, ["stop", "prevent"]), ["enter"])
|
|
691
691
|
]
|
|
692
692
|
}, {
|
|
693
693
|
default: w(() => [
|
|
694
|
-
|
|
694
|
+
k(de, { title: o.value }, {
|
|
695
695
|
default: w(() => [
|
|
696
696
|
l.value ? (D(), O(A, { key: 0 }, {
|
|
697
697
|
default: w(() => [
|
|
@@ -699,13 +699,13 @@ const Xe = /* @__PURE__ */ T({
|
|
|
699
699
|
]),
|
|
700
700
|
_: 1
|
|
701
701
|
})) : ne("", !0),
|
|
702
|
-
|
|
702
|
+
k(z, { class: "mx-3" }, {
|
|
703
703
|
default: w(() => [
|
|
704
|
-
|
|
704
|
+
k($, {
|
|
705
705
|
ref_key: "target",
|
|
706
706
|
ref: m,
|
|
707
707
|
modelValue: s.value,
|
|
708
|
-
"onUpdate:modelValue":
|
|
708
|
+
"onUpdate:modelValue": b[0] || (b[0] = (U) => s.value = U),
|
|
709
709
|
label: n.value,
|
|
710
710
|
placeholder: c.value,
|
|
711
711
|
rules: u.value
|
|
@@ -713,19 +713,19 @@ const Xe = /* @__PURE__ */ T({
|
|
|
713
713
|
]),
|
|
714
714
|
_: 1
|
|
715
715
|
}),
|
|
716
|
-
|
|
716
|
+
k(_e, { class: "d-flex justify-end" }, {
|
|
717
717
|
default: w(() => [
|
|
718
|
-
|
|
719
|
-
color:
|
|
718
|
+
k(B, {
|
|
719
|
+
color: d.value,
|
|
720
720
|
variant: "text",
|
|
721
|
-
onClick:
|
|
721
|
+
onClick: b[1] || (b[1] = (U) => r.value = !1)
|
|
722
722
|
}, {
|
|
723
723
|
default: w(() => [
|
|
724
724
|
E(q(y.value), 1)
|
|
725
725
|
]),
|
|
726
726
|
_: 1
|
|
727
727
|
}, 8, ["color"]),
|
|
728
|
-
|
|
728
|
+
k(B, {
|
|
729
729
|
color: i.value,
|
|
730
730
|
variant: "text",
|
|
731
731
|
onClick: R
|
|
@@ -749,15 +749,15 @@ const Xe = /* @__PURE__ */ T({
|
|
|
749
749
|
}), Ne = { class: "mx-auto my-auto" }, Qe = { class: "w-100 h-100 d-flex align-center justify-center" }, Je = { class: "text-body-1" }, Ye = /* @__PURE__ */ T({
|
|
750
750
|
__name: "index",
|
|
751
751
|
setup(e) {
|
|
752
|
-
const { t:
|
|
752
|
+
const { t: a } = Y(), t = H(), r = g({
|
|
753
753
|
get() {
|
|
754
754
|
return t.hasView("waitDlg");
|
|
755
755
|
},
|
|
756
756
|
set(c) {
|
|
757
757
|
c ? t.addView("waitDlg") : t.delView("waitDlg");
|
|
758
758
|
}
|
|
759
|
-
}),
|
|
760
|
-
|
|
759
|
+
}), o = _(""), l = (c) => {
|
|
760
|
+
o.value = c.text ?? a("dlg.common.waiting"), r.value = !0;
|
|
761
761
|
}, n = () => {
|
|
762
762
|
r.value = !1;
|
|
763
763
|
};
|
|
@@ -766,8 +766,8 @@ const Xe = /* @__PURE__ */ T({
|
|
|
766
766
|
}), I(() => {
|
|
767
767
|
p.off("openWaitDlg", l), p.off("closeWaitDlg", n);
|
|
768
768
|
}), (c, u) => {
|
|
769
|
-
const s = h("v-card"),
|
|
770
|
-
return D(), O(
|
|
769
|
+
const s = h("v-card"), d = h("v-dialog");
|
|
770
|
+
return D(), O(d, {
|
|
771
771
|
modelValue: r.value,
|
|
772
772
|
"onUpdate:modelValue": u[0] || (u[0] = (y) => r.value = y),
|
|
773
773
|
persistent: "",
|
|
@@ -776,14 +776,14 @@ const Xe = /* @__PURE__ */ T({
|
|
|
776
776
|
}, {
|
|
777
777
|
default: w(() => [
|
|
778
778
|
v("div", Ne, [
|
|
779
|
-
|
|
779
|
+
k(s, {
|
|
780
780
|
width: "300px",
|
|
781
781
|
height: "80px",
|
|
782
782
|
loading: ""
|
|
783
783
|
}, {
|
|
784
784
|
default: w(() => [
|
|
785
785
|
v("div", Qe, [
|
|
786
|
-
v("span", Je, q(
|
|
786
|
+
v("span", Je, q(o.value), 1)
|
|
787
787
|
])
|
|
788
788
|
]),
|
|
789
789
|
_: 1
|
|
@@ -798,12 +798,12 @@ const Xe = /* @__PURE__ */ T({
|
|
|
798
798
|
e.component("XConfirmDlg", je), e.component("XLoading", Be), e.component("XMessage", Ze), e.component("XPromptDlg", Ge), e.component("XWaitDlg", Ye);
|
|
799
799
|
};
|
|
800
800
|
function Vt() {
|
|
801
|
-
const e = P(),
|
|
801
|
+
const e = P(), a = g(() => e.global.current.value.colors.primary), t = g(() => e.global.current.value.colors.secondary), r = g(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), o = g(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = g(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), n = g(() => e.current.value.dark ? "#303030" : "#f6f6f6"), c = g(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
802
802
|
return {
|
|
803
|
-
primaryColor:
|
|
803
|
+
primaryColor: a,
|
|
804
804
|
secondaryColor: t,
|
|
805
805
|
backgroundColor0: r,
|
|
806
|
-
backgroundColor1:
|
|
806
|
+
backgroundColor1: o,
|
|
807
807
|
backgroundColor2: l,
|
|
808
808
|
highlightColor: n,
|
|
809
809
|
borderColor: c
|
|
@@ -815,42 +815,42 @@ function et(e) {
|
|
|
815
815
|
function tt(e) {
|
|
816
816
|
return typeof e == "function" ? e() : le(e);
|
|
817
817
|
}
|
|
818
|
-
const
|
|
818
|
+
const at = typeof window < "u" && typeof document < "u";
|
|
819
819
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
820
|
-
const
|
|
820
|
+
const ot = at ? window : void 0;
|
|
821
821
|
function rt() {
|
|
822
|
-
const e =
|
|
823
|
-
return
|
|
822
|
+
const e = _(!1), a = we();
|
|
823
|
+
return a && V(() => {
|
|
824
824
|
e.value = !0;
|
|
825
|
-
},
|
|
825
|
+
}, a), e;
|
|
826
826
|
}
|
|
827
827
|
function nt(e) {
|
|
828
|
-
const
|
|
829
|
-
return g(() => (
|
|
828
|
+
const a = rt();
|
|
829
|
+
return g(() => (a.value, !!e()));
|
|
830
830
|
}
|
|
831
|
-
function lt(e,
|
|
832
|
-
const { window: t =
|
|
833
|
-
let
|
|
834
|
-
const l =
|
|
831
|
+
function lt(e, a = {}) {
|
|
832
|
+
const { window: t = ot } = a, r = nt(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
|
|
833
|
+
let o;
|
|
834
|
+
const l = _(!1), n = (s) => {
|
|
835
835
|
l.value = s.matches;
|
|
836
836
|
}, c = () => {
|
|
837
|
-
|
|
837
|
+
o && ("removeEventListener" in o ? o.removeEventListener("change", n) : o.removeListener(n));
|
|
838
838
|
}, u = he(() => {
|
|
839
|
-
r.value && (c(),
|
|
839
|
+
r.value && (c(), o = t.matchMedia(tt(e)), "addEventListener" in o ? o.addEventListener("change", n) : o.addListener(n), l.value = o.matches);
|
|
840
840
|
});
|
|
841
841
|
return et(() => {
|
|
842
|
-
u(), c(),
|
|
842
|
+
u(), c(), o = void 0;
|
|
843
843
|
}), l;
|
|
844
844
|
}
|
|
845
845
|
function ct(e) {
|
|
846
846
|
return lt("(prefers-color-scheme: dark)", e);
|
|
847
847
|
}
|
|
848
848
|
function ut() {
|
|
849
|
-
const e =
|
|
850
|
-
return { dark: r, sysBarAvail:
|
|
849
|
+
const e = be(), a = G(), t = ct(), r = g(() => typeof a.dark == "boolean" ? a.dark : t.value), o = g(() => !!window.cordova), l = g(() => e.width.value <= 1280 ? e.width.value + "px" : e.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
|
|
850
|
+
return { dark: r, sysBarAvail: o, compactWidth: l };
|
|
851
851
|
}
|
|
852
852
|
function Mt() {
|
|
853
|
-
const e = xe(),
|
|
853
|
+
const e = xe(), a = ue(), t = P(), { dark: r } = ut(), o = G(), l = H();
|
|
854
854
|
Z(
|
|
855
855
|
r,
|
|
856
856
|
(i) => {
|
|
@@ -875,7 +875,7 @@ function Mt() {
|
|
|
875
875
|
},
|
|
876
876
|
() => {
|
|
877
877
|
}
|
|
878
|
-
) :
|
|
878
|
+
) : a.back();
|
|
879
879
|
};
|
|
880
880
|
V(() => {
|
|
881
881
|
window.addEventListener("keydown", n), p.on("backbutton", c);
|
|
@@ -883,29 +883,29 @@ function Mt() {
|
|
|
883
883
|
window.removeEventListener("keydown", n), p.off("backbutton", c);
|
|
884
884
|
});
|
|
885
885
|
const u = (i) => {
|
|
886
|
-
|
|
886
|
+
o.dark = i;
|
|
887
887
|
}, s = (i) => {
|
|
888
|
-
|
|
889
|
-
},
|
|
890
|
-
|
|
888
|
+
o.locale = i;
|
|
889
|
+
}, d = (i) => {
|
|
890
|
+
o.permissionObjects = i[0], o.permissionChecksum = i[1];
|
|
891
891
|
}, y = (i) => {
|
|
892
|
-
|
|
892
|
+
o.lastAppPath = i;
|
|
893
893
|
};
|
|
894
894
|
V(() => {
|
|
895
|
-
p.on("updateDark", u), p.on("updateLocale", s), p.on("updatePermission",
|
|
895
|
+
p.on("updateDark", u), p.on("updateLocale", s), p.on("updatePermission", d), p.on("updateLastAppPath", y), p.emit("syncGlobalState");
|
|
896
896
|
}), I(() => {
|
|
897
|
-
p.off("updateDark", u), p.off("updateLocale", s), p.off("updatePermission",
|
|
897
|
+
p.off("updateDark", u), p.off("updateLocale", s), p.off("updatePermission", d), p.off("updateLastAppPath", y);
|
|
898
898
|
});
|
|
899
899
|
}
|
|
900
900
|
function St() {
|
|
901
901
|
const e = G();
|
|
902
|
-
function
|
|
903
|
-
const
|
|
904
|
-
return
|
|
902
|
+
function a(t, r) {
|
|
903
|
+
const o = e.permissionObjects[t];
|
|
904
|
+
return o ? r ? !(!oe(o.includes, r) || oe(o.excludes, r)) : !0 : !1;
|
|
905
905
|
}
|
|
906
|
-
return { verifyPermission:
|
|
906
|
+
return { verifyPermission: a };
|
|
907
907
|
}
|
|
908
|
-
function At(e,
|
|
908
|
+
function At(e, a) {
|
|
909
909
|
const t = H(), r = g({
|
|
910
910
|
get() {
|
|
911
911
|
return t.hasView(e);
|
|
@@ -913,23 +913,23 @@ function At(e, o) {
|
|
|
913
913
|
set(l) {
|
|
914
914
|
l ? t.addView(e) : t.delView(e);
|
|
915
915
|
}
|
|
916
|
-
}),
|
|
917
|
-
|
|
916
|
+
}), o = (l) => {
|
|
917
|
+
a == null || a(l), r.value = !0;
|
|
918
918
|
};
|
|
919
919
|
return V(() => {
|
|
920
|
-
p.on(e,
|
|
920
|
+
p.on(e, o);
|
|
921
921
|
}), I(() => {
|
|
922
|
-
p.off(e,
|
|
922
|
+
p.off(e, o);
|
|
923
923
|
}), { open: r };
|
|
924
924
|
}
|
|
925
|
-
const pt = (e,
|
|
926
|
-
const r = e[
|
|
927
|
-
return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((
|
|
925
|
+
const pt = (e, a, t) => {
|
|
926
|
+
const r = e[a];
|
|
927
|
+
return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((o, l) => {
|
|
928
928
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
929
929
|
l.bind(
|
|
930
930
|
null,
|
|
931
931
|
new Error(
|
|
932
|
-
"Unknown variable dynamic import: " +
|
|
932
|
+
"Unknown variable dynamic import: " + a + (a.split("/").length !== t ? ". Note that variables only represent file names one level deep." : "")
|
|
933
933
|
)
|
|
934
934
|
)
|
|
935
935
|
);
|
|
@@ -946,12 +946,12 @@ export {
|
|
|
946
946
|
vt as createAxios,
|
|
947
947
|
Rt as default,
|
|
948
948
|
p as eventBus,
|
|
949
|
-
|
|
949
|
+
oe as isExist,
|
|
950
950
|
qt as loadLocaleMessageEssential,
|
|
951
951
|
K as matchRouteMeta,
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
952
|
+
bt as messageError,
|
|
953
|
+
kt as messageInfo,
|
|
954
|
+
Ct as messageSuccess,
|
|
955
955
|
Dt as messageWarning,
|
|
956
956
|
Lt as onBeforeEach,
|
|
957
957
|
ht as openConfirmDlg,
|
|
@@ -68,22 +68,22 @@ export declare enum Permission {
|
|
|
68
68
|
delete_data_space = "delete_data_space",
|
|
69
69
|
update_data_space = "update_data_space",
|
|
70
70
|
arrange_data_space = "arrange_data_space",
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
71
|
+
list_table_group = "list_table_group",
|
|
72
|
+
create_table_group = "create_table_group",
|
|
73
|
+
delete_table_group = "delete_table_group",
|
|
74
|
+
update_table_group = "update_table_group",
|
|
75
|
+
arrange_table_group = "arrange_table_group",
|
|
76
|
+
list_table = "list_table",
|
|
77
|
+
get_table = "get_table",
|
|
78
|
+
create_table = "create_table",
|
|
79
|
+
delete_table = "delete_table",
|
|
80
|
+
update_table = "update_table",
|
|
81
|
+
get_data = "get_data",
|
|
82
|
+
create_data = "create_data",
|
|
83
|
+
delete_data = "delete_data",
|
|
84
|
+
update_data = "update_data",
|
|
85
|
+
get_relation_graph = "get_relation_graph",
|
|
86
|
+
update_relation_graph = "update_relation_graph",
|
|
87
87
|
list_change = "list_change",
|
|
88
88
|
apply_change = "apply_change",
|
|
89
89
|
open_data_layer = "open_data_layer",
|
|
@@ -117,7 +117,7 @@ export declare enum Permission {
|
|
|
117
117
|
arrange_org_role = "arrange_org_role",
|
|
118
118
|
get_org_structure = "get_org_structure",
|
|
119
119
|
update_org_structure = "update_org_structure",
|
|
120
|
-
|
|
120
|
+
filter_table = "filter_table"
|
|
121
121
|
}
|
|
122
122
|
type InstanceTree = {
|
|
123
123
|
[key: string]: InstanceTree;
|