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