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