@verdnatura/vn-front-lib 0.0.11 → 0.0.12
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/{components-BrEjZWQj.js → components-D0b_k2T_.js} +1085 -1058
- package/dist/components-DImdPW9s.cjs +2 -0
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/{composables-DUOUI4DI.js → composables-CAk9XaOa.js} +898 -620
- package/dist/composables-CoozYWaG.cjs +6 -0
- package/dist/composables.cjs +1 -1
- package/dist/composables.js +2 -2
- package/dist/{rolldown-runtime-DF3sbh8G.cjs → rolldown-runtime-mLOUI7ql.cjs} +1 -1
- package/dist/stores.cjs +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/vn-front-lib.cjs +1 -1
- package/dist/vn-front-lib.js +3 -3
- package/lib/components/inputs/VnInput.vue +5 -0
- package/package.json +1 -1
- package/dist/components-Dty6kM2e.cjs +0 -2
- package/dist/composables-ZxHJjJGN.cjs +0 -4
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as u, L as d, M as f, N as p, O as m, P as h, R as g, S as _, T as v, U as y, V as b, W as x, X as S, Y as C,
|
|
2
|
-
import { useStateStore as
|
|
3
|
-
import { onBeforeSave as
|
|
4
|
-
import { Fragment as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import
|
|
7
|
-
//#region
|
|
8
|
-
var
|
|
1
|
+
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as u, L as d, M as f, N as p, O as m, P as h, R as g, S as _, T as v, U as y, V as b, W as x, X as S, Y as C, Z as w, _ as T, b as E, d as ee, f as te, g as D, h as O, j as k, k as A, m as ne, p as j, q as M, t as N, u as re, v as ie, w as P, x as F, y as I, z as L } from "./composables-CAk9XaOa.js";
|
|
2
|
+
import { useStateStore as ae } from "./stores.js";
|
|
3
|
+
import { onBeforeSave as oe } from "./filters.js";
|
|
4
|
+
import { Fragment as se, Teleport as ce, Transition as le, computed as R, createBlock as z, createCommentVNode as B, createElementBlock as ue, createElementVNode as V, createSlots as de, createTextVNode as fe, createVNode as H, getCurrentInstance as U, h as W, inject as pe, mergeModels as me, mergeProps as he, nextTick as G, normalizeClass as ge, normalizeStyle as _e, onActivated as ve, onBeforeUnmount as K, onBeforeUpdate as ye, onDeactivated as be, onMounted as q, onUnmounted as xe, openBlock as J, provide as Se, ref as Y, renderSlot as Ce, toDisplayString as we, unref as X, useAttrs as Te, useModel as Ee, vShow as De, watch as Z, withCtx as Q, withDirectives as Oe, withModifiers as ke } from "vue";
|
|
5
|
+
import { useI18n as Ae } from "vue-i18n";
|
|
6
|
+
import je from "axios";
|
|
7
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/space/QSpace.js
|
|
8
|
+
var Me = C({
|
|
9
9
|
name: "QSpace",
|
|
10
10
|
setup() {
|
|
11
11
|
let e = W("div", { class: "q-space" });
|
|
12
12
|
return () => e;
|
|
13
13
|
}
|
|
14
|
-
}),
|
|
14
|
+
}), Ne = C({
|
|
15
15
|
name: "QCardSection",
|
|
16
16
|
props: {
|
|
17
17
|
tag: {
|
|
@@ -21,32 +21,32 @@ var ke = l({
|
|
|
21
21
|
horizontal: Boolean
|
|
22
22
|
},
|
|
23
23
|
setup(e, { slots: t }) {
|
|
24
|
-
let n =
|
|
25
|
-
return () => W(e.tag, { class: n.value },
|
|
24
|
+
let n = R(() => `q-card__section q-card__section--${e.horizontal ? "horiz row no-wrap" : "vert"}`);
|
|
25
|
+
return () => W(e.tag, { class: n.value }, l(t.default));
|
|
26
26
|
}
|
|
27
|
-
}),
|
|
27
|
+
}), Pe = C({
|
|
28
28
|
name: "QCardActions",
|
|
29
29
|
props: {
|
|
30
|
-
...
|
|
30
|
+
...p,
|
|
31
31
|
vertical: Boolean
|
|
32
32
|
},
|
|
33
33
|
setup(e, { slots: t }) {
|
|
34
|
-
let n =
|
|
35
|
-
return () => W("div", { class: r.value },
|
|
34
|
+
let n = f(e), r = R(() => `q-card__actions ${n.value} q-card__actions--${e.vertical ? "vert column" : "horiz row"}`);
|
|
35
|
+
return () => W("div", { class: r.value }, l(t.default));
|
|
36
36
|
}
|
|
37
|
-
}),
|
|
37
|
+
}), Fe = { dark: {
|
|
38
38
|
type: Boolean,
|
|
39
39
|
default: null
|
|
40
40
|
} };
|
|
41
|
-
function
|
|
42
|
-
return
|
|
41
|
+
function Ie(e, t) {
|
|
42
|
+
return R(() => e.dark === null ? t.dark.isActive : e.dark);
|
|
43
43
|
}
|
|
44
44
|
//#endregion
|
|
45
|
-
//#region
|
|
46
|
-
var
|
|
45
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/card/QCard.js
|
|
46
|
+
var Le = C({
|
|
47
47
|
name: "QCard",
|
|
48
48
|
props: {
|
|
49
|
-
...
|
|
49
|
+
...Fe,
|
|
50
50
|
tag: {
|
|
51
51
|
type: String,
|
|
52
52
|
default: "div"
|
|
@@ -56,16 +56,16 @@ var Pe = l({
|
|
|
56
56
|
bordered: Boolean
|
|
57
57
|
},
|
|
58
58
|
setup(e, { slots: t }) {
|
|
59
|
-
let { proxy: { $q: n } } = U(), r =
|
|
60
|
-
return () => W(e.tag, { class: i.value },
|
|
59
|
+
let { proxy: { $q: n } } = U(), r = Ie(e, n), i = R(() => "q-card" + (r.value ? " q-card--dark q-dark" : "") + (e.bordered ? " q-card--bordered" : "") + (e.square ? " q-card--square no-border-radius" : "") + (e.flat ? " q-card--flat no-shadow" : ""));
|
|
60
|
+
return () => W(e.tag, { class: i.value }, l(t.default));
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
//#endregion
|
|
64
|
-
//#region
|
|
65
|
-
function
|
|
64
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-history/use-history.js
|
|
65
|
+
function Re(e, t, n) {
|
|
66
66
|
let r;
|
|
67
67
|
function i() {
|
|
68
|
-
r !== void 0 && (
|
|
68
|
+
r !== void 0 && (v.remove(r), r = void 0);
|
|
69
69
|
}
|
|
70
70
|
return K(() => {
|
|
71
71
|
e.value && i();
|
|
@@ -75,99 +75,99 @@ function Fe(e, t, n) {
|
|
|
75
75
|
r = {
|
|
76
76
|
condition: () => n.value,
|
|
77
77
|
handler: t
|
|
78
|
-
},
|
|
78
|
+
}, v.add(r);
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
//#endregion
|
|
83
|
-
//#region
|
|
84
|
-
function
|
|
85
|
-
let
|
|
86
|
-
function
|
|
87
|
-
|
|
83
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-timeout/use-timeout.js
|
|
84
|
+
function ze() {
|
|
85
|
+
let e = null, t = U();
|
|
86
|
+
function n() {
|
|
87
|
+
e !== null && (clearTimeout(e), e = null);
|
|
88
88
|
}
|
|
89
|
-
return
|
|
90
|
-
removeTimeout:
|
|
91
|
-
registerTimeout(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
},
|
|
89
|
+
return be(n), K(n), {
|
|
90
|
+
removeTimeout: n,
|
|
91
|
+
registerTimeout(r, i) {
|
|
92
|
+
n(), k(t) || (e = setTimeout(() => {
|
|
93
|
+
e = null, r();
|
|
94
|
+
}, i));
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
98
|
//#endregion
|
|
99
|
-
//#region
|
|
100
|
-
function
|
|
101
|
-
let
|
|
102
|
-
function
|
|
103
|
-
|
|
99
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-tick/use-tick.js
|
|
100
|
+
function Be() {
|
|
101
|
+
let e, t = U();
|
|
102
|
+
function n() {
|
|
103
|
+
e = void 0;
|
|
104
104
|
}
|
|
105
|
-
return
|
|
106
|
-
removeTick:
|
|
107
|
-
registerTick(
|
|
108
|
-
|
|
109
|
-
|
|
105
|
+
return be(n), K(n), {
|
|
106
|
+
removeTick: n,
|
|
107
|
+
registerTick(n) {
|
|
108
|
+
e = n, G(() => {
|
|
109
|
+
e === n && (k(t) || e(), e = void 0);
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
//#endregion
|
|
115
|
-
//#region
|
|
116
|
-
var
|
|
115
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-model-toggle/use-model-toggle.js
|
|
116
|
+
var Ve = {
|
|
117
117
|
modelValue: {
|
|
118
118
|
type: Boolean,
|
|
119
119
|
default: null
|
|
120
120
|
},
|
|
121
121
|
"onUpdate:modelValue": [Function, Array]
|
|
122
|
-
},
|
|
122
|
+
}, He = [
|
|
123
123
|
"beforeShow",
|
|
124
124
|
"show",
|
|
125
125
|
"beforeHide",
|
|
126
126
|
"hide"
|
|
127
127
|
];
|
|
128
|
-
function
|
|
129
|
-
let
|
|
130
|
-
function f(t) {
|
|
131
|
-
e.value ? h(t) : p(t);
|
|
132
|
-
}
|
|
128
|
+
function Ue({ showing: t, canShow: n, hideOnRouteChange: r, handleShow: i, handleHide: a, handleRouteChange: o, processOnMount: s }) {
|
|
129
|
+
let c = U(), { props: l, emit: u, proxy: d } = c, f;
|
|
133
130
|
function p(e) {
|
|
134
|
-
|
|
135
|
-
let n = c["onUpdate:modelValue"] !== void 0;
|
|
136
|
-
n && (l("update:modelValue", !0), d = e, G(() => {
|
|
137
|
-
d === e && (d = void 0);
|
|
138
|
-
})), (c.modelValue === null || !n) && m(e);
|
|
131
|
+
t.value ? g(e) : m(e);
|
|
139
132
|
}
|
|
140
|
-
function m(
|
|
141
|
-
|
|
133
|
+
function m(e) {
|
|
134
|
+
if (l.disable || e?.qAnchorHandled === !0 || n !== void 0 && !n(e)) return;
|
|
135
|
+
let t = l["onUpdate:modelValue"] !== void 0;
|
|
136
|
+
t && (u("update:modelValue", !0), f = e, G(() => {
|
|
137
|
+
f === e && (f = void 0);
|
|
138
|
+
})), (l.modelValue === null || !t) && h(e);
|
|
142
139
|
}
|
|
143
140
|
function h(e) {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
function _(
|
|
154
|
-
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
|
|
141
|
+
t.value || (t.value = !0, u("beforeShow", e), i === void 0 ? u("show", e) : i(e));
|
|
142
|
+
}
|
|
143
|
+
function g(e) {
|
|
144
|
+
if (l.disable) return;
|
|
145
|
+
let t = l["onUpdate:modelValue"] !== void 0;
|
|
146
|
+
t && (u("update:modelValue", !1), f = e, G(() => {
|
|
147
|
+
f === e && (f = void 0);
|
|
148
|
+
})), (l.modelValue === null || !t) && _(e);
|
|
149
|
+
}
|
|
150
|
+
function _(e) {
|
|
151
|
+
t.value && (t.value = !1, u("beforeHide", e), a === void 0 ? u("hide", e) : a(e));
|
|
152
|
+
}
|
|
153
|
+
function v(e) {
|
|
154
|
+
l.disable && e ? l["onUpdate:modelValue"] !== void 0 && u("update:modelValue", !1) : e === !0 !== t.value && (e ? h : _)(f);
|
|
155
|
+
}
|
|
156
|
+
Z(() => l.modelValue, v), r !== void 0 && e(c) && Z(() => d.$route.fullPath, () => {
|
|
157
|
+
r.value && t.value && (o?.(), g());
|
|
158
|
+
}), s && q(() => {
|
|
159
|
+
v(l.modelValue);
|
|
160
160
|
});
|
|
161
|
-
let
|
|
162
|
-
show:
|
|
163
|
-
hide:
|
|
164
|
-
toggle:
|
|
161
|
+
let y = {
|
|
162
|
+
show: m,
|
|
163
|
+
hide: g,
|
|
164
|
+
toggle: p
|
|
165
165
|
};
|
|
166
|
-
return Object.assign(
|
|
166
|
+
return Object.assign(d, y), y;
|
|
167
167
|
}
|
|
168
168
|
//#endregion
|
|
169
|
-
//#region
|
|
170
|
-
var
|
|
169
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-transition/use-transition.js
|
|
170
|
+
var We = {
|
|
171
171
|
transitionShow: {
|
|
172
172
|
type: String,
|
|
173
173
|
default: "fade"
|
|
@@ -181,9 +181,9 @@ var Ve = {
|
|
|
181
181
|
default: 300
|
|
182
182
|
}
|
|
183
183
|
};
|
|
184
|
-
function
|
|
184
|
+
function Ge(e, t = () => {}, n = () => {}) {
|
|
185
185
|
return {
|
|
186
|
-
transitionProps:
|
|
186
|
+
transitionProps: R(() => {
|
|
187
187
|
let r = `q-transition--${e.transitionShow || t()}`, i = `q-transition--${e.transitionHide || n()}`;
|
|
188
188
|
return {
|
|
189
189
|
appear: !0,
|
|
@@ -195,36 +195,36 @@ function He(e, t = () => {}, n = () => {}) {
|
|
|
195
195
|
leaveToClass: `${i}-leave-to`
|
|
196
196
|
};
|
|
197
197
|
}),
|
|
198
|
-
transitionStyle:
|
|
198
|
+
transitionStyle: R(() => `--q-transition-duration: ${e.transitionDuration}ms`)
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
201
|
//#endregion
|
|
202
|
-
//#region
|
|
203
|
-
var
|
|
204
|
-
function
|
|
205
|
-
|
|
202
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.portal/portal.js
|
|
203
|
+
var Ke = [], qe = [], Je = [];
|
|
204
|
+
function Ye(e) {
|
|
205
|
+
Je = Je.filter((t) => t !== e);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
|
|
207
|
+
function Xe(e) {
|
|
208
|
+
Ye(e), Je.push(e);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
|
|
210
|
+
function Ze(e) {
|
|
211
|
+
Ye(e), Je.length === 0 && qe.length !== 0 && (qe.at(-1)(), qe = []);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
|
|
213
|
+
function Qe(e) {
|
|
214
|
+
Je.length === 0 ? e() : qe.push(e);
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
|
|
216
|
+
function $e(e) {
|
|
217
|
+
qe = qe.filter((t) => t !== e);
|
|
218
218
|
}
|
|
219
219
|
//#endregion
|
|
220
|
-
//#region
|
|
221
|
-
var
|
|
220
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-portal/use-portal.js
|
|
221
|
+
var et = C({
|
|
222
222
|
name: "QPortal",
|
|
223
223
|
setup(e, { slots: t }) {
|
|
224
224
|
return () => t.default();
|
|
225
225
|
}
|
|
226
226
|
});
|
|
227
|
-
function
|
|
227
|
+
function tt(e) {
|
|
228
228
|
for (e = e.parent; e != null;) {
|
|
229
229
|
if (e.type.name === "QGlobalDialog") return !0;
|
|
230
230
|
if (e.type.name === "QDialog" || e.type.name === "QMenu") return !1;
|
|
@@ -232,62 +232,62 @@ function Qe(e) {
|
|
|
232
232
|
}
|
|
233
233
|
return !1;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
let a = Y(!1), o = Y(!1), s = null, c = {}, l = i === "dialog" &&
|
|
235
|
+
function nt(e, t, r, i) {
|
|
236
|
+
let a = Y(!1), o = Y(!1), s = null, c = {}, l = i === "dialog" && tt(e);
|
|
237
237
|
function u(t) {
|
|
238
238
|
if (t) {
|
|
239
|
-
|
|
239
|
+
Ze(c), o.value = !0;
|
|
240
240
|
return;
|
|
241
241
|
}
|
|
242
|
-
o.value = !1, a.value || (!l && s === null && (s =
|
|
242
|
+
o.value = !1, a.value || (!l && s === null && (s = n(!1, i)), a.value = !0, Ke.push(e.proxy), Xe(c));
|
|
243
243
|
}
|
|
244
244
|
function d(t) {
|
|
245
245
|
if (o.value = !1, !t) return;
|
|
246
|
-
|
|
247
|
-
let
|
|
248
|
-
|
|
246
|
+
Ze(c), a.value = !1;
|
|
247
|
+
let n = Ke.indexOf(e.proxy);
|
|
248
|
+
n !== -1 && Ke.splice(n, 1), s !== null && (P(s), s = null);
|
|
249
249
|
}
|
|
250
|
-
return
|
|
250
|
+
return xe(() => {
|
|
251
251
|
d(!0);
|
|
252
|
-
}), e.proxy.__qPortal = !0,
|
|
252
|
+
}), e.proxy.__qPortal = !0, S(e.proxy, "contentEl", () => t.value), {
|
|
253
253
|
showPortal: u,
|
|
254
254
|
hidePortal: d,
|
|
255
255
|
portalIsActive: a,
|
|
256
256
|
portalIsAccessible: o,
|
|
257
|
-
renderPortal: () => l ? r() : a.value ? [W(
|
|
257
|
+
renderPortal: () => l ? r() : a.value ? [W(ce, { to: s }, W(et, r))] : void 0
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
260
|
//#endregion
|
|
261
|
-
//#region
|
|
262
|
-
var
|
|
261
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/scroll/scroll.js
|
|
262
|
+
var rt = [Element, String], it = [
|
|
263
263
|
null,
|
|
264
264
|
document,
|
|
265
265
|
document.body,
|
|
266
266
|
document.scrollingElement,
|
|
267
267
|
document.documentElement
|
|
268
268
|
];
|
|
269
|
-
function
|
|
270
|
-
let n =
|
|
269
|
+
function at(e, t) {
|
|
270
|
+
let n = x(t);
|
|
271
271
|
if (n === void 0) {
|
|
272
272
|
if (e == null) return window;
|
|
273
273
|
n = e.closest(".scroll,.scroll-y,.overflow-auto");
|
|
274
274
|
}
|
|
275
|
-
return
|
|
275
|
+
return it.includes(n) ? window : n;
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function ot(e) {
|
|
278
278
|
return e === window ? window.pageYOffset || window.scrollY || document.body.scrollTop || 0 : e.scrollTop;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function st(e) {
|
|
281
281
|
return e === window ? window.pageXOffset || window.scrollX || document.body.scrollLeft || 0 : e.scrollLeft;
|
|
282
282
|
}
|
|
283
|
-
var
|
|
284
|
-
function
|
|
285
|
-
if (
|
|
283
|
+
var ct;
|
|
284
|
+
function lt() {
|
|
285
|
+
if (ct !== void 0) return ct;
|
|
286
286
|
let e = document.createElement("p"), t = document.createElement("div");
|
|
287
|
-
|
|
287
|
+
y(e, {
|
|
288
288
|
width: "100%",
|
|
289
289
|
height: "200px"
|
|
290
|
-
}),
|
|
290
|
+
}), y(t, {
|
|
291
291
|
position: "absolute",
|
|
292
292
|
top: "0px",
|
|
293
293
|
left: "0px",
|
|
@@ -299,110 +299,110 @@ function ot() {
|
|
|
299
299
|
let n = e.offsetWidth;
|
|
300
300
|
t.style.overflow = "scroll";
|
|
301
301
|
let r = e.offsetWidth;
|
|
302
|
-
return n === r && (r = t.clientWidth), t.remove(),
|
|
302
|
+
return n === r && (r = t.clientWidth), t.remove(), ct = n - r, ct;
|
|
303
303
|
}
|
|
304
304
|
//#endregion
|
|
305
|
-
//#region
|
|
306
|
-
var
|
|
307
|
-
function
|
|
305
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/scroll/prevent-scroll.js
|
|
306
|
+
var ut = 0, dt, ft, pt, mt = !1, ht, gt, _t, vt = null;
|
|
307
|
+
function yt(e) {
|
|
308
308
|
e.target === document && (document.scrollingElement.scrollTop = document.scrollingElement.scrollTop);
|
|
309
309
|
}
|
|
310
|
-
function
|
|
311
|
-
|
|
312
|
-
|
|
310
|
+
function bt(e) {
|
|
311
|
+
mt || (mt = !0, requestAnimationFrame(() => {
|
|
312
|
+
mt = !1;
|
|
313
313
|
let { height: t } = e.target, { clientHeight: n, scrollTop: r } = document.scrollingElement;
|
|
314
|
-
(
|
|
314
|
+
(pt === void 0 || t !== window.innerHeight) && (pt = n - t, document.scrollingElement.scrollTop = r), r > pt && (document.scrollingElement.scrollTop -= Math.ceil((r - pt) / 8));
|
|
315
315
|
}));
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function xt(e) {
|
|
318
318
|
let t = document.body, n = window.visualViewport !== void 0;
|
|
319
319
|
if (e === "add") {
|
|
320
|
-
let { overflowY: e, overflowX:
|
|
321
|
-
|
|
322
|
-
} else
|
|
320
|
+
let { overflowY: e, overflowX: i } = window.getComputedStyle(t);
|
|
321
|
+
dt = st(window), ft = ot(window), ht = t.style.left, gt = t.style.top, _t = window.location.pathname, t.style.left = `-${dt}px`, t.style.top = `-${ft}px`, i !== "hidden" && (i === "scroll" || t.scrollWidth > window.innerWidth) && t.classList.add("q-body--force-scrollbar-x"), e !== "hidden" && (e === "scroll" || t.scrollHeight > window.innerHeight) && t.classList.add("q-body--force-scrollbar-y"), document.documentElement.classList.add("q-document--prevent-scroll"), document.qScrollPrevented = !0, r.is.ios && (n ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", bt, g.passiveCapture), window.visualViewport.addEventListener("scroll", bt, g.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", yt, g.passiveCapture));
|
|
322
|
+
} else r.is.ios && (n ? (window.visualViewport.removeEventListener("resize", bt, g.passiveCapture), window.visualViewport.removeEventListener("scroll", bt, g.passiveCapture)) : window.removeEventListener("scroll", yt, g.passiveCapture)), document.documentElement.classList.remove("q-document--prevent-scroll"), t.classList.remove("q-body--force-scrollbar-x", "q-body--force-scrollbar-y"), document.qScrollPrevented = !1, t.style.left = ht, t.style.top = gt, window.location.pathname === _t && window.scrollTo(dt, ft), pt = void 0;
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function St(e) {
|
|
325
325
|
let t = "add";
|
|
326
326
|
if (e === !0) {
|
|
327
|
-
if (
|
|
328
|
-
clearTimeout(
|
|
327
|
+
if (ut++, vt !== null) {
|
|
328
|
+
clearTimeout(vt), vt = null;
|
|
329
329
|
return;
|
|
330
330
|
}
|
|
331
|
-
if (
|
|
331
|
+
if (ut > 1) return;
|
|
332
332
|
} else {
|
|
333
|
-
if (
|
|
334
|
-
if (t = "remove",
|
|
335
|
-
|
|
336
|
-
|
|
333
|
+
if (ut === 0 || (ut--, ut > 0)) return;
|
|
334
|
+
if (t = "remove", r.is.ios && r.is.nativeMobile) {
|
|
335
|
+
vt !== null && clearTimeout(vt), vt = setTimeout(() => {
|
|
336
|
+
xt(t), vt = null;
|
|
337
337
|
}, 100);
|
|
338
338
|
return;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
|
|
341
|
+
xt(t);
|
|
342
342
|
}
|
|
343
343
|
//#endregion
|
|
344
|
-
//#region
|
|
345
|
-
function
|
|
344
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-prevent-scroll/use-prevent-scroll.js
|
|
345
|
+
function Ct() {
|
|
346
346
|
let e;
|
|
347
347
|
return { preventBodyScroll(t) {
|
|
348
|
-
t !== e && (e !== void 0 || t) && (e = t,
|
|
348
|
+
t !== e && (e !== void 0 || t) && (e = t, St(t));
|
|
349
349
|
} };
|
|
350
350
|
}
|
|
351
351
|
//#endregion
|
|
352
|
-
//#region
|
|
353
|
-
var
|
|
354
|
-
function Ct(e) {
|
|
355
|
-
e.keyCode === 27 && (St = !0);
|
|
356
|
-
}
|
|
357
|
-
function wt() {
|
|
358
|
-
St &&= !1;
|
|
359
|
-
}
|
|
360
|
-
function Tt(e) {
|
|
361
|
-
St && p(e, 27) && (St = !1, xt.at(-1)(e));
|
|
362
|
-
}
|
|
352
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.keyboard/escape-key.js
|
|
353
|
+
var wt = [], Tt;
|
|
363
354
|
function Et(e) {
|
|
364
|
-
|
|
355
|
+
e.keyCode === 27 && (Tt = !0);
|
|
365
356
|
}
|
|
366
|
-
function Dt(
|
|
367
|
-
|
|
357
|
+
function Dt() {
|
|
358
|
+
Tt &&= !1;
|
|
368
359
|
}
|
|
369
360
|
function Ot(e) {
|
|
370
|
-
|
|
371
|
-
|
|
361
|
+
Tt && h(e, 27) && (Tt = !1, wt.at(-1)(e));
|
|
362
|
+
}
|
|
363
|
+
function kt(e) {
|
|
364
|
+
window[e]("keydown", Et), window[e]("blur", Dt), window[e]("keyup", Ot), Tt = !1;
|
|
372
365
|
}
|
|
373
|
-
//#endregion
|
|
374
|
-
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.focus/focusout.js
|
|
375
|
-
var kt = [];
|
|
376
366
|
function At(e) {
|
|
377
|
-
|
|
367
|
+
r.is.desktop && (wt.push(e), wt.length === 1 && kt("addEventListener"));
|
|
378
368
|
}
|
|
379
369
|
function jt(e) {
|
|
380
|
-
|
|
370
|
+
let t = wt.indexOf(e);
|
|
371
|
+
t !== -1 && (wt.splice(t, 1), wt.length === 0 && kt("removeEventListener"));
|
|
372
|
+
}
|
|
373
|
+
//#endregion
|
|
374
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.focus/focusout.js
|
|
375
|
+
var Mt = [];
|
|
376
|
+
function Nt(e) {
|
|
377
|
+
Mt.at(-1)(e);
|
|
378
|
+
}
|
|
379
|
+
function Pt(e) {
|
|
380
|
+
r.is.desktop && (Mt.push(e), Mt.length === 1 && document.body.addEventListener("focusin", Nt));
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
let t =
|
|
384
|
-
t !== -1 && (
|
|
382
|
+
function Ft(e) {
|
|
383
|
+
let t = Mt.indexOf(e);
|
|
384
|
+
t !== -1 && (Mt.splice(t, 1), Mt.length === 0 && document.body.removeEventListener("focusin", Nt));
|
|
385
385
|
}
|
|
386
386
|
//#endregion
|
|
387
|
-
//#region
|
|
388
|
-
var
|
|
387
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/dialog/QDialog.js
|
|
388
|
+
var It = 0, Lt = {
|
|
389
389
|
standard: "fixed-full flex-center",
|
|
390
390
|
top: "fixed-top justify-center",
|
|
391
391
|
bottom: "fixed-bottom justify-center",
|
|
392
392
|
right: "fixed-right items-center",
|
|
393
393
|
left: "fixed-left items-center"
|
|
394
|
-
},
|
|
394
|
+
}, Rt = {
|
|
395
395
|
standard: ["scale", "scale"],
|
|
396
396
|
top: ["slide-down", "slide-up"],
|
|
397
397
|
bottom: ["slide-up", "slide-down"],
|
|
398
398
|
right: ["slide-left", "slide-right"],
|
|
399
399
|
left: ["slide-right", "slide-left"]
|
|
400
|
-
},
|
|
400
|
+
}, zt = C({
|
|
401
401
|
name: "QDialog",
|
|
402
402
|
inheritAttrs: !1,
|
|
403
403
|
props: {
|
|
404
|
-
...Re,
|
|
405
404
|
...Ve,
|
|
405
|
+
...We,
|
|
406
406
|
transitionShow: String,
|
|
407
407
|
transitionHide: String,
|
|
408
408
|
persistent: Boolean,
|
|
@@ -433,53 +433,53 @@ var Nt = 0, Pt = {
|
|
|
433
433
|
}
|
|
434
434
|
},
|
|
435
435
|
emits: [
|
|
436
|
-
...
|
|
436
|
+
...He,
|
|
437
437
|
"shake",
|
|
438
438
|
"click",
|
|
439
439
|
"escapeKey"
|
|
440
440
|
],
|
|
441
441
|
setup(e, { slots: t, emit: n, attrs: r }) {
|
|
442
|
-
let i = U(), a = Y(null), o = Y(!1),
|
|
442
|
+
let i = U(), a = Y(null), o = Y(!1), c = Y(!1), u = null, d = null, f = !1, p = !1, m = R(() => !e.persistent && !e.noRouteDismiss && !e.seamless), { preventBodyScroll: h } = Ct(), { registerTimeout: g } = ze(), { registerTick: _, removeTick: v } = Be(), { transitionProps: y, transitionStyle: b } = Ge(e, () => Rt[e.position][0], () => Rt[e.position][1]), x = R(() => b.value + (e.backdropFilter === void 0 ? "" : `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`)), { showPortal: S, hidePortal: C, portalIsAccessible: w, renderPortal: T } = nt(i, a, oe, "dialog"), { hide: E } = Ue({
|
|
443
443
|
showing: o,
|
|
444
|
-
hideOnRouteChange:
|
|
444
|
+
hideOnRouteChange: m,
|
|
445
445
|
handleShow: ne,
|
|
446
|
-
handleHide:
|
|
446
|
+
handleHide: j,
|
|
447
447
|
handleRouteChange: M,
|
|
448
448
|
processOnMount: !0
|
|
449
|
-
}), { addToHistory:
|
|
449
|
+
}), { addToHistory: ee, removeFromHistory: te } = Re(o, E, m), D = R(() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized ? "maximized" : "minimized"} q-dialog__inner--${e.position} ${Lt[e.position]}` + (c.value ? " q-dialog__inner--animating" : "") + (e.fullWidth ? " q-dialog__inner--fullwidth" : "") + (e.fullHeight ? " q-dialog__inner--fullheight" : "") + (e.square ? " q-dialog__inner--square" : "")), O = R(() => o.value && !e.seamless), k = R(() => e.autoClose ? { onClick: I } : {}), A = R(() => [`q-dialog fullscreen no-pointer-events q-dialog--${O.value ? "modal" : "seamless"}`, r.class]);
|
|
450
450
|
Z(() => e.maximized, (e) => {
|
|
451
|
-
o.value &&
|
|
452
|
-
}), Z(
|
|
453
|
-
|
|
451
|
+
o.value && F(e);
|
|
452
|
+
}), Z(O, (e) => {
|
|
453
|
+
h(e), e ? (Pt(ae), At(ie)) : (Ft(ae), jt(ie));
|
|
454
454
|
});
|
|
455
455
|
function ne(t) {
|
|
456
|
-
|
|
456
|
+
ee(), d = !e.noRefocus && document.activeElement !== null ? document.activeElement : null, F(e.maximized), S(), c.value = !0, e.noFocus ? v() : (document.activeElement?.blur(), _(N)), g(() => {
|
|
457
457
|
if (i.proxy.$q.platform.is.ios) {
|
|
458
458
|
if (!e.seamless && document.activeElement) {
|
|
459
459
|
let { top: e, bottom: t } = document.activeElement.getBoundingClientRect(), { innerHeight: n } = window, r = window.visualViewport === void 0 ? n : window.visualViewport.height;
|
|
460
460
|
e > 0 && t > r / 2 && (document.scrollingElement.scrollTop = Math.min(document.scrollingElement.scrollHeight - r, t >= n ? Infinity : Math.ceil(document.scrollingElement.scrollTop + t - r / 2))), document.activeElement.scrollIntoView();
|
|
461
461
|
}
|
|
462
|
-
|
|
462
|
+
p = !0, a.value.click(), p = !1;
|
|
463
463
|
}
|
|
464
|
-
|
|
464
|
+
S(!0), c.value = !1, n("show", t);
|
|
465
465
|
}, e.transitionDuration);
|
|
466
466
|
}
|
|
467
|
-
function
|
|
468
|
-
if (
|
|
469
|
-
let e = (t?.type.indexOf("key") === 0 ?
|
|
470
|
-
|
|
467
|
+
function j(t) {
|
|
468
|
+
if (v(), te(), P(!0), c.value = !0, C(), d !== null) {
|
|
469
|
+
let e = (t?.type.indexOf("key") === 0 ? d.closest("[tabindex]:not([tabindex^=\"-\"])") : void 0) || d;
|
|
470
|
+
d = null, Qe(() => {
|
|
471
471
|
e.isConnected && e.focus();
|
|
472
472
|
});
|
|
473
473
|
}
|
|
474
|
-
|
|
475
|
-
|
|
474
|
+
g(() => {
|
|
475
|
+
C(!0), c.value = !1, n("hide", t);
|
|
476
476
|
}, e.transitionDuration);
|
|
477
477
|
}
|
|
478
478
|
function M() {
|
|
479
|
-
|
|
479
|
+
d = null;
|
|
480
480
|
}
|
|
481
481
|
function N(e) {
|
|
482
|
-
|
|
482
|
+
Qe(() => {
|
|
483
483
|
let t = a.value;
|
|
484
484
|
if (t !== null) {
|
|
485
485
|
if (e !== void 0) {
|
|
@@ -493,72 +493,72 @@ var Nt = 0, Pt = {
|
|
|
493
493
|
}
|
|
494
494
|
});
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function re(e) {
|
|
497
497
|
e && typeof e.focus == "function" ? e.focus({ preventScroll: !0 }) : N(), n("shake");
|
|
498
498
|
let t = a.value;
|
|
499
|
-
t !== null && (t.classList.remove("q-animate--scale"), t.classList.add("q-animate--scale"),
|
|
500
|
-
|
|
499
|
+
t !== null && (t.classList.remove("q-animate--scale"), t.classList.add("q-animate--scale"), u !== null && clearTimeout(u), u = setTimeout(() => {
|
|
500
|
+
u = null, a.value !== null && (t.classList.remove("q-animate--scale"), N());
|
|
501
501
|
}, 170));
|
|
502
502
|
}
|
|
503
|
-
function
|
|
504
|
-
e.seamless || (e.persistent || e.noEscDismiss ? !e.maximized && !e.noShake &&
|
|
503
|
+
function ie() {
|
|
504
|
+
e.seamless || (e.persistent || e.noEscDismiss ? !e.maximized && !e.noShake && re() : (n("escapeKey"), E()));
|
|
505
505
|
}
|
|
506
|
-
function
|
|
507
|
-
|
|
506
|
+
function P(t) {
|
|
507
|
+
u !== null && (clearTimeout(u), u = null), (t || o.value) && (F(!1), e.seamless || (h(!1), Ft(ae), jt(ie))), t || (d = null);
|
|
508
508
|
}
|
|
509
|
-
function
|
|
510
|
-
e ?
|
|
509
|
+
function F(e) {
|
|
510
|
+
e ? f ||= (It < 1 && document.body.classList.add("q-body--dialog"), It++, !0) : f &&= (It < 2 && document.body.classList.remove("q-body--dialog"), It--, !1);
|
|
511
511
|
}
|
|
512
|
-
function
|
|
513
|
-
|
|
512
|
+
function I(e) {
|
|
513
|
+
p || (E(e), n("click", e));
|
|
514
514
|
}
|
|
515
|
-
function
|
|
516
|
-
!e.persistent && !e.noBackdropDismiss ?
|
|
515
|
+
function L(t) {
|
|
516
|
+
!e.persistent && !e.noBackdropDismiss ? E(t) : e.noShake || re();
|
|
517
517
|
}
|
|
518
|
-
function
|
|
519
|
-
!e.allowFocusOutside &&
|
|
518
|
+
function ae(t) {
|
|
519
|
+
!e.allowFocusOutside && w.value && !s(a.value, t.target) && N("[tabindex]:not([tabindex=\"-1\"])");
|
|
520
520
|
}
|
|
521
521
|
Object.assign(i.proxy, {
|
|
522
522
|
focus: N,
|
|
523
|
-
shake:
|
|
523
|
+
shake: re,
|
|
524
524
|
__updateRefocusTarget(e) {
|
|
525
|
-
|
|
525
|
+
d = e || null;
|
|
526
526
|
}
|
|
527
|
-
}), K(
|
|
528
|
-
function
|
|
527
|
+
}), K(P);
|
|
528
|
+
function oe() {
|
|
529
529
|
return W("div", {
|
|
530
530
|
role: "dialog",
|
|
531
|
-
"aria-modal":
|
|
531
|
+
"aria-modal": O.value ? "true" : "false",
|
|
532
532
|
...r,
|
|
533
|
-
class:
|
|
534
|
-
}, [W(
|
|
533
|
+
class: A.value
|
|
534
|
+
}, [W(le, {
|
|
535
535
|
name: "q-transition--fade",
|
|
536
536
|
appear: !0
|
|
537
|
-
}, () =>
|
|
537
|
+
}, () => O.value ? W("div", {
|
|
538
538
|
class: "q-dialog__backdrop fixed-full",
|
|
539
|
-
style:
|
|
539
|
+
style: x.value,
|
|
540
540
|
"aria-hidden": "true",
|
|
541
|
-
onClick:
|
|
542
|
-
}) : null), W(
|
|
541
|
+
onClick: L
|
|
542
|
+
}) : null), W(le, y.value, () => o.value ? W("div", {
|
|
543
543
|
ref: a,
|
|
544
|
-
class:
|
|
545
|
-
style:
|
|
544
|
+
class: D.value,
|
|
545
|
+
style: b.value,
|
|
546
546
|
tabindex: -1,
|
|
547
|
-
...
|
|
548
|
-
},
|
|
547
|
+
...k.value
|
|
548
|
+
}, l(t.default)) : null)]);
|
|
549
549
|
}
|
|
550
|
-
return
|
|
550
|
+
return T;
|
|
551
551
|
}
|
|
552
|
-
}),
|
|
553
|
-
function
|
|
552
|
+
}), Bt = () => !0;
|
|
553
|
+
function Vt(e) {
|
|
554
554
|
let t = {};
|
|
555
555
|
return e.forEach((e) => {
|
|
556
|
-
t[e] =
|
|
556
|
+
t[e] = Bt;
|
|
557
557
|
}), t;
|
|
558
558
|
}
|
|
559
559
|
//#endregion
|
|
560
|
-
//#region
|
|
561
|
-
function
|
|
560
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-dialog-plugin-component/use-dialog-plugin-component.js
|
|
561
|
+
function Ht() {
|
|
562
562
|
let { emit: e, proxy: t } = U(), n = Y(null);
|
|
563
563
|
function r() {
|
|
564
564
|
n.value.show();
|
|
@@ -582,11 +582,11 @@ function zt() {
|
|
|
582
582
|
onDialogCancel: i
|
|
583
583
|
};
|
|
584
584
|
}
|
|
585
|
-
var
|
|
586
|
-
|
|
585
|
+
var Ut = ["ok", "hide"];
|
|
586
|
+
Ht.emits = Ut, Ht.emitsObject = Vt(Ut);
|
|
587
587
|
//#endregion
|
|
588
588
|
//#region lib/components/dialogs/VnConfirm.vue?vue&type=i18n&index=0&lang.i18n
|
|
589
|
-
function
|
|
589
|
+
function Wt(e) {
|
|
590
590
|
let t = e;
|
|
591
591
|
t.__i18n = t.__i18n || [], t.__i18n.push({
|
|
592
592
|
locale: "",
|
|
@@ -612,11 +612,11 @@ function Vt(e) {
|
|
|
612
612
|
}
|
|
613
613
|
//#endregion
|
|
614
614
|
//#region \0plugin-vue:export-helper
|
|
615
|
-
var
|
|
615
|
+
var Gt = (e, t) => {
|
|
616
616
|
let n = e.__vccOpts || e;
|
|
617
617
|
for (let [e, r] of t) n[e] = r;
|
|
618
618
|
return n;
|
|
619
|
-
},
|
|
619
|
+
}, Kt = { class: "text-h6" }, qt = ["innerHTML"], Jt = {
|
|
620
620
|
__name: "VnConfirm",
|
|
621
621
|
props: {
|
|
622
622
|
icon: {
|
|
@@ -657,97 +657,97 @@ var Ht = (e, t) => {
|
|
|
657
657
|
emits: [
|
|
658
658
|
"confirm",
|
|
659
659
|
"cancel",
|
|
660
|
-
...
|
|
660
|
+
...Ht.emits
|
|
661
661
|
],
|
|
662
662
|
setup(e, { expose: t, emit: n }) {
|
|
663
|
-
let { t: r } =
|
|
663
|
+
let { t: r } = Ae(), i = e, a = n;
|
|
664
664
|
t({
|
|
665
|
-
show: () =>
|
|
666
|
-
hide: () =>
|
|
665
|
+
show: () => o.value.show(),
|
|
666
|
+
hide: () => o.value.hide()
|
|
667
667
|
});
|
|
668
|
-
let { dialogRef:
|
|
669
|
-
async function
|
|
668
|
+
let { dialogRef: o, onDialogHide: s, onDialogOK: c, onDialogCancel: l } = Ht(), d = i.title || r("Confirm"), f = i.message || i.message !== !1 && r("Are you sure you want to continue?"), p = Y(!1);
|
|
669
|
+
async function m() {
|
|
670
670
|
if (p.value = !0, i.promise) try {
|
|
671
671
|
await i.promise(i.data);
|
|
672
672
|
} finally {
|
|
673
673
|
p.value = !1;
|
|
674
674
|
}
|
|
675
|
-
|
|
675
|
+
c(i.data);
|
|
676
676
|
}
|
|
677
|
-
function
|
|
678
|
-
a("cancel"),
|
|
677
|
+
function h() {
|
|
678
|
+
a("cancel"), l();
|
|
679
679
|
}
|
|
680
|
-
return (t, n) => (J(),
|
|
680
|
+
return (t, n) => (J(), z(zt, {
|
|
681
681
|
ref_key: "dialogRef",
|
|
682
|
-
ref:
|
|
682
|
+
ref: o,
|
|
683
683
|
persistent: e.persistent,
|
|
684
|
-
onHide: X(
|
|
684
|
+
onHide: X(s)
|
|
685
685
|
}, {
|
|
686
|
-
default: Q(() => [H(
|
|
686
|
+
default: Q(() => [H(Le, { class: ge(["q-pa-sm", e.cardClass]) }, {
|
|
687
687
|
default: Q(() => [
|
|
688
|
-
H(
|
|
688
|
+
H(Ne, { class: "row items-center q-pb-none" }, {
|
|
689
689
|
default: Q(() => [
|
|
690
|
-
e.icon ? (J(),
|
|
690
|
+
e.icon ? (J(), z(u, {
|
|
691
691
|
key: 0,
|
|
692
692
|
icon: e.icon,
|
|
693
693
|
color: "primary",
|
|
694
694
|
"text-color": "white",
|
|
695
695
|
size: "xl"
|
|
696
|
-
}, null, 8, ["icon"])) :
|
|
697
|
-
|
|
698
|
-
H(
|
|
699
|
-
e.closable ? (J(),
|
|
696
|
+
}, null, 8, ["icon"])) : B("", !0),
|
|
697
|
+
V("span", Kt, we(X(d)), 1),
|
|
698
|
+
H(Me),
|
|
699
|
+
e.closable ? (J(), z(A, {
|
|
700
700
|
key: 1,
|
|
701
701
|
icon: "close",
|
|
702
702
|
disable: p.value,
|
|
703
703
|
flat: "",
|
|
704
704
|
round: "",
|
|
705
705
|
dense: "",
|
|
706
|
-
onClick: n[0] ||= (e) =>
|
|
707
|
-
}, null, 8, ["disable"])) :
|
|
706
|
+
onClick: n[0] ||= (e) => h()
|
|
707
|
+
}, null, 8, ["disable"])) : B("", !0)
|
|
708
708
|
]),
|
|
709
709
|
_: 1
|
|
710
710
|
}),
|
|
711
|
-
H(
|
|
711
|
+
H(Ne, {
|
|
712
712
|
class: "q-pb-none",
|
|
713
713
|
"data-cy": "VnConfirm_message"
|
|
714
714
|
}, {
|
|
715
|
-
default: Q(() => [X(f) === !1 ?
|
|
715
|
+
default: Q(() => [X(f) === !1 ? B("", !0) : (J(), ue("span", {
|
|
716
716
|
key: 0,
|
|
717
717
|
innerHTML: X(f)
|
|
718
|
-
}, null, 8,
|
|
718
|
+
}, null, 8, qt))]),
|
|
719
719
|
_: 1
|
|
720
720
|
}),
|
|
721
|
-
H(
|
|
722
|
-
default: Q(() => [
|
|
721
|
+
H(Ne, { class: "row items-center q-pt-none" }, {
|
|
722
|
+
default: Q(() => [Ce(t.$slots, "custom-html", {}, void 0, !0)]),
|
|
723
723
|
_: 3
|
|
724
724
|
}),
|
|
725
|
-
t.$slots.actions ? (J(),
|
|
725
|
+
t.$slots.actions ? (J(), z(Pe, {
|
|
726
726
|
key: 0,
|
|
727
727
|
align: "right"
|
|
728
728
|
}, {
|
|
729
|
-
default: Q(() => [
|
|
730
|
-
confirm:
|
|
731
|
-
cancel:
|
|
729
|
+
default: Q(() => [Ce(t.$slots, "actions", { actions: {
|
|
730
|
+
confirm: m,
|
|
731
|
+
cancel: h
|
|
732
732
|
} }, void 0, !0)]),
|
|
733
733
|
_: 3
|
|
734
|
-
})) : (J(),
|
|
734
|
+
})) : (J(), z(Pe, {
|
|
735
735
|
key: 1,
|
|
736
736
|
align: "right"
|
|
737
737
|
}, {
|
|
738
|
-
default: Q(() => [H(
|
|
738
|
+
default: Q(() => [H(A, {
|
|
739
739
|
label: X(r)("globals.cancel"),
|
|
740
740
|
color: "primary",
|
|
741
741
|
disable: p.value,
|
|
742
742
|
flat: "",
|
|
743
|
-
onClick: n[1] ||= (e) =>
|
|
743
|
+
onClick: n[1] ||= (e) => h(),
|
|
744
744
|
"data-cy": "VnConfirm_cancel"
|
|
745
|
-
}, null, 8, ["label", "disable"]), H(
|
|
745
|
+
}, null, 8, ["label", "disable"]), H(A, {
|
|
746
746
|
label: X(r)("globals.confirm"),
|
|
747
747
|
title: X(r)("globals.confirm"),
|
|
748
748
|
color: "primary",
|
|
749
749
|
loading: p.value,
|
|
750
|
-
onClick: n[2] ||= (e) =>
|
|
750
|
+
onClick: n[2] ||= (e) => m(),
|
|
751
751
|
unelevated: "",
|
|
752
752
|
autofocus: "",
|
|
753
753
|
"data-cy": "VnConfirm_confirm"
|
|
@@ -765,8 +765,8 @@ var Ht = (e, t) => {
|
|
|
765
765
|
}, 8, ["persistent", "onHide"]));
|
|
766
766
|
}
|
|
767
767
|
};
|
|
768
|
-
typeof
|
|
769
|
-
var
|
|
768
|
+
typeof Wt == "function" && Wt(Jt);
|
|
769
|
+
var Yt = /*#__PURE__*/ Gt(Jt, [["__scopeId", "data-v-f01eb4e4"]]), Xt = [
|
|
770
770
|
"text",
|
|
771
771
|
"rect",
|
|
772
772
|
"circle",
|
|
@@ -781,7 +781,7 @@ var Kt = /*#__PURE__*/ Ht(Gt, [["__scopeId", "data-v-f01eb4e4"]]), qt = [
|
|
|
781
781
|
"QRange",
|
|
782
782
|
"QInput",
|
|
783
783
|
"QAvatar"
|
|
784
|
-
],
|
|
784
|
+
], Zt = [
|
|
785
785
|
"wave",
|
|
786
786
|
"pulse",
|
|
787
787
|
"pulse-x",
|
|
@@ -789,22 +789,22 @@ var Kt = /*#__PURE__*/ Ht(Gt, [["__scopeId", "data-v-f01eb4e4"]]), qt = [
|
|
|
789
789
|
"fade",
|
|
790
790
|
"blink",
|
|
791
791
|
"none"
|
|
792
|
-
],
|
|
792
|
+
], Qt = C({
|
|
793
793
|
name: "QSkeleton",
|
|
794
794
|
props: {
|
|
795
|
-
...
|
|
795
|
+
...Fe,
|
|
796
796
|
tag: {
|
|
797
797
|
type: String,
|
|
798
798
|
default: "div"
|
|
799
799
|
},
|
|
800
800
|
type: {
|
|
801
801
|
type: String,
|
|
802
|
-
validator: (e) =>
|
|
802
|
+
validator: (e) => Xt.includes(e),
|
|
803
803
|
default: "rect"
|
|
804
804
|
},
|
|
805
805
|
animation: {
|
|
806
806
|
type: String,
|
|
807
|
-
validator: (e) =>
|
|
807
|
+
validator: (e) => Zt.includes(e),
|
|
808
808
|
default: "wave"
|
|
809
809
|
},
|
|
810
810
|
animationSpeed: {
|
|
@@ -818,52 +818,52 @@ var Kt = /*#__PURE__*/ Ht(Gt, [["__scopeId", "data-v-f01eb4e4"]]), qt = [
|
|
|
818
818
|
height: String
|
|
819
819
|
},
|
|
820
820
|
setup(e, { slots: t }) {
|
|
821
|
-
let n =
|
|
821
|
+
let n = Ie(e, U().proxy.$q), r = R(() => {
|
|
822
822
|
let t = e.size === void 0 ? [e.width, e.height] : [e.size, e.size];
|
|
823
823
|
return {
|
|
824
824
|
"--q-skeleton-speed": `${e.animationSpeed}ms`,
|
|
825
825
|
width: t[0],
|
|
826
826
|
height: t[1]
|
|
827
827
|
};
|
|
828
|
-
}), i =
|
|
828
|
+
}), i = R(() => `q-skeleton q-skeleton--${n.value ? "dark" : "light"} q-skeleton--type-${e.type}` + (e.animation === "none" ? "" : ` q-skeleton--anim q-skeleton--anim-${e.animation}`) + (e.square ? " q-skeleton--square" : "") + (e.bordered ? " q-skeleton--bordered" : ""));
|
|
829
829
|
return () => W(e.tag, {
|
|
830
830
|
class: i.value,
|
|
831
831
|
style: r.value
|
|
832
|
-
},
|
|
832
|
+
}, l(t.default));
|
|
833
833
|
}
|
|
834
|
-
}),
|
|
835
|
-
function
|
|
836
|
-
return J(),
|
|
837
|
-
|
|
834
|
+
}), $t = {}, en = { class: "row q-gutter-md q-mb-md" }, tn = { class: "row q-gutter-md q-mb-md" }, nn = { class: "row q-gutter-md q-mb-md" };
|
|
835
|
+
function rn(e, t) {
|
|
836
|
+
return J(), ue(se, null, [
|
|
837
|
+
V("div", en, [H(Qt, {
|
|
838
838
|
type: "QInput",
|
|
839
839
|
class: "col",
|
|
840
840
|
square: ""
|
|
841
|
-
}), H(
|
|
841
|
+
}), H(Qt, {
|
|
842
842
|
type: "QInput",
|
|
843
843
|
class: "col",
|
|
844
844
|
square: ""
|
|
845
845
|
})]),
|
|
846
|
-
|
|
846
|
+
V("div", tn, [H(Qt, {
|
|
847
847
|
type: "QInput",
|
|
848
848
|
class: "col",
|
|
849
849
|
square: ""
|
|
850
|
-
}), H(
|
|
850
|
+
}), H(Qt, {
|
|
851
851
|
type: "QInput",
|
|
852
852
|
class: "col",
|
|
853
853
|
square: ""
|
|
854
854
|
})]),
|
|
855
|
-
|
|
855
|
+
V("div", nn, [H(Qt, {
|
|
856
856
|
type: "QInput",
|
|
857
857
|
class: "col",
|
|
858
858
|
square: ""
|
|
859
|
-
}), H(
|
|
859
|
+
}), H(Qt, {
|
|
860
860
|
type: "QInput",
|
|
861
861
|
class: "col",
|
|
862
862
|
square: ""
|
|
863
863
|
})])
|
|
864
864
|
], 64);
|
|
865
865
|
}
|
|
866
|
-
var
|
|
866
|
+
var an = /*#__PURE__*/ Gt($t, [["render", rn]]), on = /*#__PURE__*/ Gt({
|
|
867
867
|
__name: "VnSpinner",
|
|
868
868
|
props: {
|
|
869
869
|
size: {
|
|
@@ -883,21 +883,21 @@ var tn = /*#__PURE__*/ Ht(Xt, [["render", en]]), nn = /*#__PURE__*/ Ht({
|
|
|
883
883
|
lg: "56px",
|
|
884
884
|
xl: "72px"
|
|
885
885
|
};
|
|
886
|
-
return (n, r) => e.noTransition ? (J(),
|
|
886
|
+
return (n, r) => e.noTransition ? (J(), ue("div", {
|
|
887
887
|
key: 1,
|
|
888
888
|
class: "vn-spinner",
|
|
889
|
-
style:
|
|
889
|
+
style: _e({
|
|
890
890
|
width: t[e.size] || e.size,
|
|
891
891
|
height: t[e.size] || e.size
|
|
892
892
|
})
|
|
893
|
-
}, null, 4)) : (J(),
|
|
893
|
+
}, null, 4)) : (J(), z(le, {
|
|
894
894
|
key: 0,
|
|
895
895
|
name: "vn-spinner-fade",
|
|
896
896
|
appear: ""
|
|
897
897
|
}, {
|
|
898
|
-
default: Q(() => [
|
|
898
|
+
default: Q(() => [V("div", {
|
|
899
899
|
class: "vn-spinner",
|
|
900
|
-
style:
|
|
900
|
+
style: _e({
|
|
901
901
|
width: t[e.size] || e.size,
|
|
902
902
|
height: t[e.size] || e.size
|
|
903
903
|
})
|
|
@@ -907,16 +907,16 @@ var tn = /*#__PURE__*/ Ht(Xt, [["render", en]]), nn = /*#__PURE__*/ Ht({
|
|
|
907
907
|
}
|
|
908
908
|
}, [["__scopeId", "data-v-e5edebae"]]);
|
|
909
909
|
//#endregion
|
|
910
|
-
//#region
|
|
911
|
-
function
|
|
910
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.selection/selection.js
|
|
911
|
+
function sn() {
|
|
912
912
|
if (window.getSelection !== void 0) {
|
|
913
913
|
let e = window.getSelection();
|
|
914
|
-
e.empty === void 0 ? e.removeAllRanges !== void 0 && (e.removeAllRanges(),
|
|
914
|
+
e.empty === void 0 ? e.removeAllRanges !== void 0 && (e.removeAllRanges(), i.is.mobile || e.addRange(document.createRange())) : e.empty();
|
|
915
915
|
} else document.selection !== void 0 && document.selection.empty();
|
|
916
916
|
}
|
|
917
917
|
//#endregion
|
|
918
|
-
//#region
|
|
919
|
-
var
|
|
918
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-anchor/use-anchor.js
|
|
919
|
+
var cn = {
|
|
920
920
|
target: {
|
|
921
921
|
type: [
|
|
922
922
|
Boolean,
|
|
@@ -927,14 +927,14 @@ var an = {
|
|
|
927
927
|
},
|
|
928
928
|
noParentEvent: Boolean
|
|
929
929
|
};
|
|
930
|
-
({ ...
|
|
931
|
-
function
|
|
932
|
-
let { props: r, proxy: i, emit:
|
|
933
|
-
function
|
|
934
|
-
return
|
|
935
|
-
}
|
|
936
|
-
let
|
|
937
|
-
n === void 0 && (Object.assign(
|
|
930
|
+
({ ...cn });
|
|
931
|
+
function ln({ showing: e, avoidEmit: t, configureAnchorEl: n }) {
|
|
932
|
+
let { props: r, proxy: i, emit: a } = U(), o = Y(null), s = null;
|
|
933
|
+
function l(e) {
|
|
934
|
+
return o.value === null ? !1 : e === void 0 || e.touches === void 0 || e.touches.length <= 1;
|
|
935
|
+
}
|
|
936
|
+
let u = {};
|
|
937
|
+
n === void 0 && (Object.assign(u, {
|
|
938
938
|
hide(e) {
|
|
939
939
|
i.hide(e);
|
|
940
940
|
},
|
|
@@ -942,19 +942,19 @@ function on({ showing: e, avoidEmit: t, configureAnchorEl: n }) {
|
|
|
942
942
|
i.toggle(e), e.qAnchorHandled = !0;
|
|
943
943
|
},
|
|
944
944
|
toggleKey(e) {
|
|
945
|
-
|
|
945
|
+
h(e, 13) && u.toggle(e);
|
|
946
946
|
},
|
|
947
947
|
contextClick(e) {
|
|
948
|
-
i.hide(e),
|
|
948
|
+
i.hide(e), L(e), G(() => {
|
|
949
949
|
i.show(e), e.qAnchorHandled = !0;
|
|
950
950
|
});
|
|
951
951
|
},
|
|
952
|
-
prevent:
|
|
952
|
+
prevent: L,
|
|
953
953
|
mobileTouch(e) {
|
|
954
|
-
if (
|
|
955
|
-
i.hide(e),
|
|
954
|
+
if (u.mobileCleanup(e), !l(e)) return;
|
|
955
|
+
i.hide(e), o.value.classList.add("non-selectable");
|
|
956
956
|
let t = e.target;
|
|
957
|
-
|
|
957
|
+
c(u, "anchor", [
|
|
958
958
|
[
|
|
959
959
|
t,
|
|
960
960
|
"touchmove",
|
|
@@ -974,58 +974,58 @@ function on({ showing: e, avoidEmit: t, configureAnchorEl: n }) {
|
|
|
974
974
|
"passive"
|
|
975
975
|
],
|
|
976
976
|
[
|
|
977
|
-
|
|
977
|
+
o.value,
|
|
978
978
|
"contextmenu",
|
|
979
979
|
"prevent",
|
|
980
980
|
"notPassive"
|
|
981
981
|
]
|
|
982
|
-
]),
|
|
983
|
-
|
|
982
|
+
]), s = setTimeout(() => {
|
|
983
|
+
s = null, i.show(e), e.qAnchorHandled = !0;
|
|
984
984
|
}, 300);
|
|
985
985
|
},
|
|
986
986
|
mobileCleanup(t) {
|
|
987
|
-
|
|
987
|
+
o.value.classList.remove("non-selectable"), s !== null && (clearTimeout(s), s = null), e.value && t !== void 0 && sn();
|
|
988
988
|
}
|
|
989
989
|
}), n = function(e = r.contextMenu) {
|
|
990
|
-
if (r.noParentEvent ||
|
|
990
|
+
if (r.noParentEvent || o.value === null) return;
|
|
991
991
|
let t = e ? i.$q.platform.is.mobile ? [[
|
|
992
|
-
|
|
992
|
+
o.value,
|
|
993
993
|
"touchstart",
|
|
994
994
|
"mobileTouch",
|
|
995
995
|
"passive"
|
|
996
996
|
]] : [[
|
|
997
|
-
|
|
997
|
+
o.value,
|
|
998
998
|
"mousedown",
|
|
999
999
|
"hide",
|
|
1000
1000
|
"passive"
|
|
1001
1001
|
], [
|
|
1002
|
-
|
|
1002
|
+
o.value,
|
|
1003
1003
|
"contextmenu",
|
|
1004
1004
|
"contextClick",
|
|
1005
1005
|
"notPassive"
|
|
1006
1006
|
]] : [[
|
|
1007
|
-
|
|
1007
|
+
o.value,
|
|
1008
1008
|
"click",
|
|
1009
1009
|
"toggle",
|
|
1010
1010
|
"passive"
|
|
1011
1011
|
], [
|
|
1012
|
-
|
|
1012
|
+
o.value,
|
|
1013
1013
|
"keyup",
|
|
1014
1014
|
"toggleKey",
|
|
1015
1015
|
"passive"
|
|
1016
1016
|
]];
|
|
1017
|
-
|
|
1017
|
+
c(u, "anchor", t);
|
|
1018
1018
|
});
|
|
1019
1019
|
function f() {
|
|
1020
|
-
|
|
1020
|
+
d(u, "anchor");
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1023
|
-
for (
|
|
1022
|
+
function p(e) {
|
|
1023
|
+
for (o.value = e; o.value.classList.contains("q-anchor--skip");) o.value = o.value.parentNode;
|
|
1024
1024
|
n();
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1027
|
-
if (r.target === !1 || r.target === "" || i.$el.parentNode === null)
|
|
1028
|
-
else if (r.target === !0)
|
|
1026
|
+
function m() {
|
|
1027
|
+
if (r.target === !1 || r.target === "" || i.$el.parentNode === null) o.value = null;
|
|
1028
|
+
else if (r.target === !0) p(i.$el.parentNode);
|
|
1029
1029
|
else {
|
|
1030
1030
|
let e = r.target;
|
|
1031
1031
|
if (typeof r.target == "string") try {
|
|
@@ -1033,48 +1033,47 @@ function on({ showing: e, avoidEmit: t, configureAnchorEl: n }) {
|
|
|
1033
1033
|
} catch {
|
|
1034
1034
|
e = void 0;
|
|
1035
1035
|
}
|
|
1036
|
-
e == null ? (
|
|
1036
|
+
e == null ? (o.value = null, console.error(`Anchor: target "${r.target}" not found`)) : (o.value = e.$el || e, n());
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
1039
|
return Z(() => r.contextMenu, (e) => {
|
|
1040
|
-
|
|
1040
|
+
o.value !== null && (f(), n(e));
|
|
1041
1041
|
}), Z(() => r.target, () => {
|
|
1042
|
-
|
|
1042
|
+
o.value !== null && f(), m();
|
|
1043
1043
|
}), Z(() => r.noParentEvent, (e) => {
|
|
1044
|
-
|
|
1044
|
+
o.value !== null && (e ? f() : n());
|
|
1045
1045
|
}), q(() => {
|
|
1046
|
-
|
|
1046
|
+
m(), !t && r.modelValue && o.value === null && a("update:modelValue", !1);
|
|
1047
1047
|
}), K(() => {
|
|
1048
|
-
|
|
1048
|
+
s !== null && clearTimeout(s), f();
|
|
1049
1049
|
}), {
|
|
1050
|
-
anchorEl:
|
|
1051
|
-
canShow:
|
|
1052
|
-
anchorEvents:
|
|
1050
|
+
anchorEl: o,
|
|
1051
|
+
canShow: l,
|
|
1052
|
+
anchorEvents: u
|
|
1053
1053
|
};
|
|
1054
1054
|
}
|
|
1055
1055
|
//#endregion
|
|
1056
|
-
//#region
|
|
1057
|
-
function
|
|
1056
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-scroll-target/use-scroll-target.js
|
|
1057
|
+
function un(e, t) {
|
|
1058
1058
|
let n = Y(null), r;
|
|
1059
1059
|
function i(e, t) {
|
|
1060
1060
|
let n = `${t === void 0 ? "remove" : "add"}EventListener`, i = t === void 0 ? r : t;
|
|
1061
|
-
e !== window && e[n]("scroll", i,
|
|
1061
|
+
e !== window && e[n]("scroll", i, g.passive), window[n]("scroll", i, g.passive), r = t;
|
|
1062
1062
|
}
|
|
1063
1063
|
function a() {
|
|
1064
1064
|
n.value !== null && (i(n.value), n.value = null);
|
|
1065
1065
|
}
|
|
1066
|
-
|
|
1066
|
+
return K(Z(() => e.noParentEvent, () => {
|
|
1067
1067
|
n.value !== null && (a(), t());
|
|
1068
|
-
})
|
|
1069
|
-
return K(o), {
|
|
1068
|
+
})), {
|
|
1070
1069
|
localScrollTarget: n,
|
|
1071
1070
|
unconfigureScrollTarget: a,
|
|
1072
1071
|
changeScrollEvent: i
|
|
1073
1072
|
};
|
|
1074
1073
|
}
|
|
1075
1074
|
//#endregion
|
|
1076
|
-
//#region
|
|
1077
|
-
function
|
|
1075
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/uid/uid.js
|
|
1076
|
+
function dn() {
|
|
1078
1077
|
if (typeof crypto > "u") return () => {
|
|
1079
1078
|
throw Error("[Quasar uid()] Secure RNG not available. Cannot generate collision-resistant UUID.");
|
|
1080
1079
|
};
|
|
@@ -1086,41 +1085,41 @@ function cn() {
|
|
|
1086
1085
|
return n += 16, t[r + 6] = t[r + 6] & 15 | 64, t[r + 8] = t[r + 8] & 63 | 128, e[t[r]] + e[t[r + 1]] + e[t[r + 2]] + e[t[r + 3]] + "-" + e[t[r + 4]] + e[t[r + 5]] + "-" + e[t[r + 6]] + e[t[r + 7]] + "-" + e[t[r + 8]] + e[t[r + 9]] + "-" + e[t[r + 10]] + e[t[r + 11]] + e[t[r + 12]] + e[t[r + 13]] + e[t[r + 14]] + e[t[r + 15]];
|
|
1087
1086
|
};
|
|
1088
1087
|
}
|
|
1089
|
-
var
|
|
1088
|
+
var fn = dn();
|
|
1090
1089
|
//#endregion
|
|
1091
|
-
//#region
|
|
1092
|
-
function
|
|
1090
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-id/use-id.js
|
|
1091
|
+
function pn(e) {
|
|
1093
1092
|
return e ?? null;
|
|
1094
1093
|
}
|
|
1095
|
-
function
|
|
1096
|
-
return e ?? (t ? `f_${
|
|
1094
|
+
function mn(e, t) {
|
|
1095
|
+
return e ?? (t ? `f_${fn()}` : null);
|
|
1097
1096
|
}
|
|
1098
|
-
function
|
|
1099
|
-
if (
|
|
1100
|
-
let n = Y(e === void 0 ? null :
|
|
1097
|
+
function hn({ getValue: e, required: t = !0 } = {}) {
|
|
1098
|
+
if (m.value) {
|
|
1099
|
+
let n = Y(e === void 0 ? null : pn(e()));
|
|
1101
1100
|
return t && n.value === null && q(() => {
|
|
1102
|
-
n.value = `f_${
|
|
1101
|
+
n.value = `f_${fn()}`;
|
|
1103
1102
|
}), e !== void 0 && Z(e, (e) => {
|
|
1104
|
-
n.value =
|
|
1103
|
+
n.value = mn(e, t);
|
|
1105
1104
|
}), n;
|
|
1106
1105
|
}
|
|
1107
|
-
return e === void 0 ? Y(`f_${
|
|
1106
|
+
return e === void 0 ? Y(`f_${fn()}`) : R(() => mn(e(), t));
|
|
1108
1107
|
}
|
|
1109
1108
|
//#endregion
|
|
1110
|
-
//#region
|
|
1111
|
-
var
|
|
1112
|
-
function
|
|
1113
|
-
|
|
1109
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.click-outside/click-outside.js
|
|
1110
|
+
var gn = null, { notPassiveCapture: _n } = g, vn = [];
|
|
1111
|
+
function yn(e) {
|
|
1112
|
+
gn !== null && (clearTimeout(gn), gn = null);
|
|
1114
1113
|
let t = e.target;
|
|
1115
1114
|
if (t === void 0 || t.nodeType === 8 || t.classList.contains("no-pointer-events")) return;
|
|
1116
1115
|
let n = null, r = !1;
|
|
1117
|
-
for (let e =
|
|
1118
|
-
let t =
|
|
1116
|
+
for (let e = Ke.length - 1; e >= 0; e--) {
|
|
1117
|
+
let t = Ke[e].$, i = t.type.name;
|
|
1119
1118
|
if (i !== "QTooltip") {
|
|
1120
1119
|
if (i === "QDialog") {
|
|
1121
1120
|
if (t.props.seamless !== !0) {
|
|
1122
1121
|
if (r === !1) return;
|
|
1123
|
-
n = new Set(
|
|
1122
|
+
n = new Set(Ke.slice(e + 1).map((e) => e.contentEl));
|
|
1124
1123
|
break;
|
|
1125
1124
|
}
|
|
1126
1125
|
continue;
|
|
@@ -1128,41 +1127,41 @@ function gn(e) {
|
|
|
1128
1127
|
r = !0;
|
|
1129
1128
|
}
|
|
1130
1129
|
}
|
|
1131
|
-
for (let r =
|
|
1132
|
-
let i =
|
|
1130
|
+
for (let r = vn.length - 1; r >= 0; r--) {
|
|
1131
|
+
let i = vn[r];
|
|
1133
1132
|
if (n !== null && !n.has(i.innerRef.value)) return;
|
|
1134
1133
|
if ((i.anchorEl.value === null || !i.anchorEl.value.contains(t)) && (t === document.body || i.innerRef.value !== null && !i.innerRef.value.contains(t))) e.qClickOutside = !0, i.onClickOutside(e);
|
|
1135
1134
|
else return;
|
|
1136
1135
|
}
|
|
1137
1136
|
}
|
|
1138
|
-
function
|
|
1139
|
-
|
|
1137
|
+
function bn(e) {
|
|
1138
|
+
vn.push(e), vn.length === 1 && (document.addEventListener("mousedown", yn, _n), document.addEventListener("touchstart", yn, _n));
|
|
1140
1139
|
}
|
|
1141
|
-
function
|
|
1142
|
-
let t =
|
|
1143
|
-
t !== -1 && (
|
|
1140
|
+
function xn(e) {
|
|
1141
|
+
let t = vn.indexOf(e);
|
|
1142
|
+
t !== -1 && (vn.splice(t, 1), vn.length === 0 && (gn !== null && (clearTimeout(gn), gn = null), document.removeEventListener("mousedown", yn, _n), document.removeEventListener("touchstart", yn, _n)));
|
|
1144
1143
|
}
|
|
1145
1144
|
//#endregion
|
|
1146
|
-
//#region
|
|
1147
|
-
var
|
|
1145
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.position-engine/position-engine.js
|
|
1146
|
+
var Sn, Cn, wn = [
|
|
1148
1147
|
"top",
|
|
1149
1148
|
"center",
|
|
1150
1149
|
"bottom"
|
|
1151
|
-
],
|
|
1150
|
+
], Tn = [
|
|
1152
1151
|
"left",
|
|
1153
1152
|
"middle",
|
|
1154
1153
|
"right",
|
|
1155
1154
|
"start",
|
|
1156
1155
|
"end"
|
|
1157
1156
|
];
|
|
1158
|
-
function
|
|
1157
|
+
function En(e) {
|
|
1159
1158
|
let t = e.split(" ");
|
|
1160
|
-
return t.length === 2 ?
|
|
1159
|
+
return t.length === 2 ? wn.includes(t[0]) ? Tn.includes(t[1]) ? !0 : (console.error("Anchor/Self position must end with one of left/middle/right/start/end"), !1) : (console.error("Anchor/Self position must start with one of top/center/bottom"), !1) : !1;
|
|
1161
1160
|
}
|
|
1162
|
-
function
|
|
1163
|
-
return !e || e.length
|
|
1161
|
+
function Dn(e) {
|
|
1162
|
+
return !e || !(e.length !== 2 || typeof e[0] != "number" || typeof e[1] != "number");
|
|
1164
1163
|
}
|
|
1165
|
-
var
|
|
1164
|
+
var On = {
|
|
1166
1165
|
"start#ltr": "left",
|
|
1167
1166
|
"start#rtl": "right",
|
|
1168
1167
|
"end#ltr": "right",
|
|
@@ -1173,16 +1172,16 @@ var Tn = {
|
|
|
1173
1172
|
"middle",
|
|
1174
1173
|
"right"
|
|
1175
1174
|
].forEach((e) => {
|
|
1176
|
-
|
|
1175
|
+
On[`${e}#ltr`] = e, On[`${e}#rtl`] = e;
|
|
1177
1176
|
});
|
|
1178
|
-
function
|
|
1177
|
+
function kn(e, t) {
|
|
1179
1178
|
let n = e.split(" ");
|
|
1180
1179
|
return {
|
|
1181
1180
|
vertical: n[0],
|
|
1182
|
-
horizontal:
|
|
1181
|
+
horizontal: On[`${n[1]}#${t ? "rtl" : "ltr"}`]
|
|
1183
1182
|
};
|
|
1184
1183
|
}
|
|
1185
|
-
function
|
|
1184
|
+
function An(e, t) {
|
|
1186
1185
|
let { top: n, left: r, right: i, bottom: a, width: o, height: s } = e.getBoundingClientRect();
|
|
1187
1186
|
return t !== void 0 && (n -= t[1], r -= t[0], a += t[1], i += t[0], o += t[0], s += t[1]), {
|
|
1188
1187
|
top: n,
|
|
@@ -1195,7 +1194,7 @@ function Dn(e, t) {
|
|
|
1195
1194
|
center: n + (a - n) / 2
|
|
1196
1195
|
};
|
|
1197
1196
|
}
|
|
1198
|
-
function
|
|
1197
|
+
function jn(e, t, n) {
|
|
1199
1198
|
let { top: r, left: i } = e.getBoundingClientRect();
|
|
1200
1199
|
return r += t.top, i += t.left, n !== void 0 && (r += n[1], i += n[0]), {
|
|
1201
1200
|
top: r,
|
|
@@ -1208,7 +1207,7 @@ function On(e, t, n) {
|
|
|
1208
1207
|
center: r
|
|
1209
1208
|
};
|
|
1210
1209
|
}
|
|
1211
|
-
function
|
|
1210
|
+
function Mn(e, t) {
|
|
1212
1211
|
return {
|
|
1213
1212
|
top: 0,
|
|
1214
1213
|
center: t / 2,
|
|
@@ -1218,26 +1217,26 @@ function kn(e, t) {
|
|
|
1218
1217
|
right: e
|
|
1219
1218
|
};
|
|
1220
1219
|
}
|
|
1221
|
-
function
|
|
1220
|
+
function Nn(e, t, n, r) {
|
|
1222
1221
|
return {
|
|
1223
1222
|
top: e[n.vertical] - t[r.vertical],
|
|
1224
1223
|
left: e[n.horizontal] - t[r.horizontal]
|
|
1225
1224
|
};
|
|
1226
1225
|
}
|
|
1227
|
-
function
|
|
1226
|
+
function Pn(e, t = 0) {
|
|
1228
1227
|
if (e.targetEl === null || e.anchorEl === null || t > 5) return;
|
|
1229
1228
|
if (e.targetEl.offsetHeight === 0 || e.targetEl.offsetWidth === 0) {
|
|
1230
1229
|
setTimeout(() => {
|
|
1231
|
-
|
|
1230
|
+
Pn(e, t + 1);
|
|
1232
1231
|
}, 10);
|
|
1233
1232
|
return;
|
|
1234
1233
|
}
|
|
1235
|
-
let { targetEl: n, offset:
|
|
1236
|
-
if (
|
|
1234
|
+
let { targetEl: n, offset: i, anchorEl: a, anchorOrigin: o, selfOrigin: s, absoluteOffset: c, fit: l, cover: u, maxHeight: d, maxWidth: f } = e;
|
|
1235
|
+
if (r.is.ios && window.visualViewport !== void 0) {
|
|
1237
1236
|
let e = document.body.style, { offsetLeft: t, offsetTop: n } = window.visualViewport;
|
|
1238
|
-
t !==
|
|
1237
|
+
t !== Sn && (e.setProperty("--q-pe-left", t + "px"), Sn = t), n !== Cn && (e.setProperty("--q-pe-top", n + "px"), Cn = n);
|
|
1239
1238
|
}
|
|
1240
|
-
let { scrollLeft: p, scrollTop: m } = n, h = c === void 0 ?
|
|
1239
|
+
let { scrollLeft: p, scrollTop: m } = n, h = c === void 0 ? An(a, u ? [0, 0] : i) : jn(a, c, i);
|
|
1241
1240
|
Object.assign(n.style, {
|
|
1242
1241
|
top: 0,
|
|
1243
1242
|
left: 0,
|
|
@@ -1258,55 +1257,51 @@ function jn(e, t = 0) {
|
|
|
1258
1257
|
maxHeight: d
|
|
1259
1258
|
};
|
|
1260
1259
|
(l || u) && (b.minWidth = h.width + "px", u && (b.minHeight = h.height + "px")), Object.assign(n.style, b);
|
|
1261
|
-
let x =
|
|
1262
|
-
if (c === void 0 ||
|
|
1260
|
+
let x = Mn(v, y), S = Nn(h, x, o, s);
|
|
1261
|
+
if (c === void 0 || i === void 0) Fn(S, h, x, o, s);
|
|
1263
1262
|
else {
|
|
1264
1263
|
let { top: e, left: t } = S;
|
|
1265
|
-
|
|
1264
|
+
Fn(S, h, x, o, s);
|
|
1266
1265
|
let n = !1;
|
|
1267
1266
|
if (S.top !== e) {
|
|
1268
1267
|
n = !0;
|
|
1269
|
-
let e = 2 *
|
|
1268
|
+
let e = 2 * i[1];
|
|
1270
1269
|
h.center = h.top -= e, h.bottom -= e + 2;
|
|
1271
1270
|
}
|
|
1272
1271
|
if (S.left !== t) {
|
|
1273
1272
|
n = !0;
|
|
1274
|
-
let e = 2 *
|
|
1273
|
+
let e = 2 * i[0];
|
|
1275
1274
|
h.middle = h.left -= e, h.right -= e + 2;
|
|
1276
1275
|
}
|
|
1277
|
-
n && (S =
|
|
1276
|
+
n && (S = Nn(h, x, o, s), Fn(S, h, x, o, s));
|
|
1278
1277
|
}
|
|
1279
1278
|
b = {
|
|
1280
1279
|
top: S.top + "px",
|
|
1281
1280
|
left: S.left + "px"
|
|
1282
1281
|
}, S.maxHeight !== void 0 && (b.maxHeight = S.maxHeight + "px", h.height > S.maxHeight && (b.minHeight = b.maxHeight)), S.maxWidth !== void 0 && (b.maxWidth = S.maxWidth + "px", h.width > S.maxWidth && (b.minWidth = b.maxWidth)), Object.assign(n.style, b), n.scrollTop !== m && (n.scrollTop = m), n.scrollLeft !== p && (n.scrollLeft = p);
|
|
1283
1282
|
}
|
|
1284
|
-
function
|
|
1285
|
-
let a = n.bottom, o = n.right, s =
|
|
1286
|
-
if (e.top < 0 || e.top + a > c)
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
let n = Math.min(l, r.horizontal === "middle" ? t.middle : r.horizontal === i.horizontal ? t.right : t.left);
|
|
1297
|
-
e.maxWidth = Math.min(o, n), e.left = Math.max(0, n - e.maxWidth);
|
|
1298
|
-
} else e.left = Math.max(0, r.horizontal === "middle" ? t.middle : r.horizontal === i.horizontal ? t.left : t.right), e.maxWidth = Math.min(o, l - e.left);
|
|
1299
|
-
}
|
|
1283
|
+
function Fn(e, t, n, r, i) {
|
|
1284
|
+
let a = n.bottom, o = n.right, s = lt(), c = window.innerHeight - s, l = document.body.clientWidth;
|
|
1285
|
+
if (e.top < 0 || e.top + a > c) if (i.vertical === "center") e.top = t[r.vertical] > c / 2 ? Math.max(0, c - a) : 0, e.maxHeight = Math.min(a, c);
|
|
1286
|
+
else if (t[r.vertical] > c / 2) {
|
|
1287
|
+
let n = Math.min(c, r.vertical === "center" ? t.center : r.vertical === i.vertical ? t.bottom : t.top);
|
|
1288
|
+
e.maxHeight = Math.min(a, n), e.top = Math.max(0, n - a);
|
|
1289
|
+
} else e.top = Math.max(0, r.vertical === "center" ? t.center : r.vertical === i.vertical ? t.top : t.bottom), e.maxHeight = Math.min(a, c - e.top);
|
|
1290
|
+
if (e.left < 0 || e.left + o > l) if (e.maxWidth = Math.min(o, l), i.horizontal === "middle") e.left = t[r.horizontal] > l / 2 ? Math.max(0, l - o) : 0;
|
|
1291
|
+
else if (t[r.horizontal] > l / 2) {
|
|
1292
|
+
let n = Math.min(l, r.horizontal === "middle" ? t.middle : r.horizontal === i.horizontal ? t.right : t.left);
|
|
1293
|
+
e.maxWidth = Math.min(o, n), e.left = Math.max(0, n - e.maxWidth);
|
|
1294
|
+
} else e.left = Math.max(0, r.horizontal === "middle" ? t.middle : r.horizontal === i.horizontal ? t.left : t.right), e.maxWidth = Math.min(o, l - e.left);
|
|
1300
1295
|
}
|
|
1301
1296
|
//#endregion
|
|
1302
|
-
//#region
|
|
1303
|
-
var
|
|
1297
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/tooltip/QTooltip.js
|
|
1298
|
+
var In = 0, Ln = C({
|
|
1304
1299
|
name: "QTooltip",
|
|
1305
1300
|
inheritAttrs: !1,
|
|
1306
1301
|
props: {
|
|
1307
|
-
...
|
|
1308
|
-
...Re,
|
|
1302
|
+
...cn,
|
|
1309
1303
|
...Ve,
|
|
1304
|
+
...We,
|
|
1310
1305
|
maxHeight: {
|
|
1311
1306
|
type: String,
|
|
1312
1307
|
default: null
|
|
@@ -1316,29 +1311,29 @@ var Nn = 0, Pn = l({
|
|
|
1316
1311
|
default: null
|
|
1317
1312
|
},
|
|
1318
1313
|
transitionShow: {
|
|
1319
|
-
...
|
|
1314
|
+
...We.transitionShow,
|
|
1320
1315
|
default: "jump-down"
|
|
1321
1316
|
},
|
|
1322
1317
|
transitionHide: {
|
|
1323
|
-
...
|
|
1318
|
+
...We.transitionHide,
|
|
1324
1319
|
default: "jump-up"
|
|
1325
1320
|
},
|
|
1326
1321
|
anchor: {
|
|
1327
1322
|
type: String,
|
|
1328
1323
|
default: "bottom middle",
|
|
1329
|
-
validator:
|
|
1324
|
+
validator: En
|
|
1330
1325
|
},
|
|
1331
1326
|
self: {
|
|
1332
1327
|
type: String,
|
|
1333
1328
|
default: "top middle",
|
|
1334
|
-
validator:
|
|
1329
|
+
validator: En
|
|
1335
1330
|
},
|
|
1336
1331
|
offset: {
|
|
1337
1332
|
type: Array,
|
|
1338
1333
|
default: () => [14, 14],
|
|
1339
|
-
validator:
|
|
1334
|
+
validator: Dn
|
|
1340
1335
|
},
|
|
1341
|
-
scrollTarget:
|
|
1336
|
+
scrollTarget: rt,
|
|
1342
1337
|
delay: {
|
|
1343
1338
|
type: Number,
|
|
1344
1339
|
default: 0
|
|
@@ -1349,80 +1344,80 @@ var Nn = 0, Pn = l({
|
|
|
1349
1344
|
},
|
|
1350
1345
|
persistent: Boolean
|
|
1351
1346
|
},
|
|
1352
|
-
emits: [...
|
|
1353
|
-
setup(e, { slots:
|
|
1354
|
-
let
|
|
1347
|
+
emits: [...He],
|
|
1348
|
+
setup(e, { slots: t, emit: n, attrs: r }) {
|
|
1349
|
+
let i, a, o, s = !1, u, f = U(), { proxy: { $q: p } } = f, m = Y(null), h = Y(!1), g = hn(), _ = R(() => r.id || g.value), v = R(() => kn(e.anchor, p.lang.rtl)), y = R(() => kn(e.self, p.lang.rtl)), x = R(() => !e.persistent), { registerTick: S, removeTick: C } = Be(), { registerTimeout: w } = ze(), { transitionProps: T, transitionStyle: E } = Ge(e), { localScrollTarget: ee, changeScrollEvent: te, unconfigureScrollTarget: D } = un(e, V), { anchorEl: O, canShow: k, anchorEvents: A } = ln({
|
|
1355
1350
|
showing: h,
|
|
1356
|
-
configureAnchorEl:
|
|
1357
|
-
}), { show: ne, hide:
|
|
1351
|
+
configureAnchorEl: ce
|
|
1352
|
+
}), { show: ne, hide: j } = Ue({
|
|
1358
1353
|
showing: h,
|
|
1359
|
-
canShow:
|
|
1360
|
-
handleShow:
|
|
1361
|
-
handleHide:
|
|
1362
|
-
hideOnRouteChange:
|
|
1354
|
+
canShow: k,
|
|
1355
|
+
handleShow: ie,
|
|
1356
|
+
handleHide: P,
|
|
1357
|
+
hideOnRouteChange: x,
|
|
1363
1358
|
processOnMount: !0
|
|
1364
1359
|
});
|
|
1365
|
-
Object.assign(
|
|
1366
|
-
delayShow:
|
|
1367
|
-
delayHide:
|
|
1368
|
-
onFocusin:
|
|
1360
|
+
Object.assign(A, {
|
|
1361
|
+
delayShow: L,
|
|
1362
|
+
delayHide: ae,
|
|
1363
|
+
onFocusin: oe
|
|
1369
1364
|
});
|
|
1370
|
-
let { showPortal: M, hidePortal: N, renderPortal:
|
|
1365
|
+
let { showPortal: M, hidePortal: N, renderPortal: re } = nt(f, m, fe, "tooltip");
|
|
1371
1366
|
if (p.platform.is.mobile) {
|
|
1372
|
-
let
|
|
1373
|
-
anchorEl:
|
|
1367
|
+
let t = {
|
|
1368
|
+
anchorEl: O,
|
|
1374
1369
|
innerRef: m,
|
|
1375
1370
|
onClickOutside(e) {
|
|
1376
|
-
return
|
|
1371
|
+
return j(e), e.target.classList.contains("q-dialog__backdrop") && b(e), !0;
|
|
1377
1372
|
}
|
|
1378
|
-
}
|
|
1379
|
-
Z(
|
|
1380
|
-
(e ?
|
|
1373
|
+
};
|
|
1374
|
+
Z(R(() => e.modelValue === null && !e.persistent && h.value), (e) => {
|
|
1375
|
+
(e ? bn : xn)(t);
|
|
1381
1376
|
}), K(() => {
|
|
1382
|
-
|
|
1377
|
+
xn(t);
|
|
1383
1378
|
});
|
|
1384
1379
|
} else Z(() => (e.modelValue === null || e["onUpdate:modelValue"]) && h.value === !0 && e.persistent !== !0, (e) => {
|
|
1385
|
-
(e === !0 ?
|
|
1380
|
+
(e === !0 ? At : jt)(se);
|
|
1386
1381
|
});
|
|
1387
|
-
function
|
|
1388
|
-
M(),
|
|
1389
|
-
if (
|
|
1390
|
-
|
|
1382
|
+
function ie(t) {
|
|
1383
|
+
M(), B(), S(() => {
|
|
1384
|
+
if (a?.disconnect(), m.value === null) {
|
|
1385
|
+
a = void 0;
|
|
1391
1386
|
return;
|
|
1392
1387
|
}
|
|
1393
|
-
|
|
1388
|
+
a = new MutationObserver(() => I()), a.observe(m.value, {
|
|
1394
1389
|
attributes: !1,
|
|
1395
1390
|
childList: !0,
|
|
1396
1391
|
characterData: !0,
|
|
1397
1392
|
subtree: !0
|
|
1398
|
-
}),
|
|
1399
|
-
}),
|
|
1400
|
-
M(!0),
|
|
1393
|
+
}), I(), V();
|
|
1394
|
+
}), i === void 0 && (i = Z(() => p.screen.width + "|" + p.screen.height + "|" + e.self + "|" + e.anchor + "|" + p.lang.rtl, I)), w(() => {
|
|
1395
|
+
M(!0), n("show", t);
|
|
1401
1396
|
}, e.transitionDuration);
|
|
1402
1397
|
}
|
|
1403
|
-
function
|
|
1404
|
-
|
|
1405
|
-
N(!0),
|
|
1398
|
+
function P(t) {
|
|
1399
|
+
C(), N(), F(), w(() => {
|
|
1400
|
+
N(!0), n("hide", t);
|
|
1406
1401
|
}, e.transitionDuration);
|
|
1407
1402
|
}
|
|
1408
|
-
function
|
|
1409
|
-
|
|
1403
|
+
function F() {
|
|
1404
|
+
a !== void 0 && (a.disconnect(), a = void 0), i !== void 0 && (i(), i = void 0), D(), jt(se), d(A, "tooltipTemp"), ue(), z(!1);
|
|
1410
1405
|
}
|
|
1411
|
-
function
|
|
1412
|
-
|
|
1406
|
+
function I() {
|
|
1407
|
+
Pn({
|
|
1413
1408
|
targetEl: m.value,
|
|
1414
1409
|
offset: e.offset,
|
|
1415
|
-
anchorEl:
|
|
1410
|
+
anchorEl: O.value,
|
|
1416
1411
|
anchorOrigin: v.value,
|
|
1417
1412
|
selfOrigin: y.value,
|
|
1418
1413
|
maxHeight: e.maxHeight,
|
|
1419
1414
|
maxWidth: e.maxWidth
|
|
1420
1415
|
});
|
|
1421
1416
|
}
|
|
1422
|
-
function
|
|
1417
|
+
function L(t) {
|
|
1423
1418
|
if (p.platform.is.mobile) {
|
|
1424
|
-
|
|
1425
|
-
let e =
|
|
1419
|
+
o !== void 0 && (clearTimeout(o), o = void 0), sn(), z(!0);
|
|
1420
|
+
let e = O.value, t = [
|
|
1426
1421
|
"touchmove",
|
|
1427
1422
|
"touchcancel",
|
|
1428
1423
|
"touchend",
|
|
@@ -1433,126 +1428,126 @@ var Nn = 0, Pn = l({
|
|
|
1433
1428
|
"delayHide",
|
|
1434
1429
|
"passiveCapture"
|
|
1435
1430
|
]);
|
|
1436
|
-
|
|
1431
|
+
c(A, "tooltipTemp", t);
|
|
1437
1432
|
}
|
|
1438
|
-
|
|
1433
|
+
w(() => {
|
|
1439
1434
|
ne(t);
|
|
1440
1435
|
}, e.delay);
|
|
1441
1436
|
}
|
|
1442
|
-
function
|
|
1443
|
-
p.platform.is.mobile && (
|
|
1444
|
-
|
|
1445
|
-
}, 10)),
|
|
1446
|
-
|
|
1437
|
+
function ae(t) {
|
|
1438
|
+
p.platform.is.mobile && (d(A, "tooltipTemp"), sn(), o = setTimeout(() => {
|
|
1439
|
+
o = void 0, z(!1);
|
|
1440
|
+
}, 10)), w(() => {
|
|
1441
|
+
j(t);
|
|
1447
1442
|
}, e.hideDelay);
|
|
1448
1443
|
}
|
|
1449
|
-
function
|
|
1444
|
+
function oe(e) {
|
|
1450
1445
|
let t = e.target;
|
|
1451
1446
|
if (t) {
|
|
1452
1447
|
try {
|
|
1453
1448
|
if (t.matches(":focus-visible") === !1) return;
|
|
1454
1449
|
} catch {}
|
|
1455
|
-
|
|
1450
|
+
L(e);
|
|
1456
1451
|
}
|
|
1457
1452
|
}
|
|
1458
|
-
function
|
|
1459
|
-
|
|
1453
|
+
function se(e) {
|
|
1454
|
+
j(e);
|
|
1460
1455
|
}
|
|
1461
|
-
function
|
|
1462
|
-
if (e.noParentEvent ||
|
|
1456
|
+
function ce() {
|
|
1457
|
+
if (e.noParentEvent || O.value === null) return;
|
|
1463
1458
|
let t = p.platform.is.mobile ? [[
|
|
1464
|
-
|
|
1459
|
+
O.value,
|
|
1465
1460
|
"touchstart",
|
|
1466
1461
|
"delayShow",
|
|
1467
1462
|
"passive"
|
|
1468
1463
|
]] : [
|
|
1469
1464
|
[
|
|
1470
|
-
|
|
1465
|
+
O.value,
|
|
1471
1466
|
"mouseenter",
|
|
1472
1467
|
"delayShow",
|
|
1473
1468
|
"passive"
|
|
1474
1469
|
],
|
|
1475
1470
|
[
|
|
1476
|
-
|
|
1471
|
+
O.value,
|
|
1477
1472
|
"mouseleave",
|
|
1478
1473
|
"delayHide",
|
|
1479
1474
|
"passive"
|
|
1480
1475
|
],
|
|
1481
1476
|
[
|
|
1482
|
-
|
|
1477
|
+
O.value,
|
|
1483
1478
|
"focusin",
|
|
1484
1479
|
"onFocusin",
|
|
1485
1480
|
"passive"
|
|
1486
1481
|
],
|
|
1487
1482
|
[
|
|
1488
|
-
|
|
1483
|
+
O.value,
|
|
1489
1484
|
"focusout",
|
|
1490
1485
|
"delayHide",
|
|
1491
1486
|
"passive"
|
|
1492
1487
|
]
|
|
1493
1488
|
];
|
|
1494
|
-
|
|
1489
|
+
c(A, "anchor", t);
|
|
1495
1490
|
}
|
|
1496
|
-
function
|
|
1497
|
-
|
|
1491
|
+
function z(e) {
|
|
1492
|
+
s !== e && (s = e, In += e ? 1 : -1, document.body.classList.toggle("non-selectable", In > 0), !e && o !== void 0 && (clearTimeout(o), o = void 0));
|
|
1498
1493
|
}
|
|
1499
|
-
function
|
|
1500
|
-
let e =
|
|
1494
|
+
function B() {
|
|
1495
|
+
let e = O.value, t = _.value;
|
|
1501
1496
|
if (e === null || t === void 0) return;
|
|
1502
1497
|
let n = (e.getAttribute("aria-describedby") || "").split(/\s+/).filter(Boolean);
|
|
1503
|
-
|
|
1498
|
+
u = {
|
|
1504
1499
|
el: e,
|
|
1505
1500
|
id: t,
|
|
1506
1501
|
added: !n.includes(t)
|
|
1507
|
-
},
|
|
1502
|
+
}, u.added && (n.push(t), e.setAttribute("aria-describedby", n.join(" ")));
|
|
1508
1503
|
}
|
|
1509
|
-
function
|
|
1510
|
-
if (
|
|
1511
|
-
let { el: e, id: t } =
|
|
1504
|
+
function ue() {
|
|
1505
|
+
if (u?.added === !0) {
|
|
1506
|
+
let { el: e, id: t } = u, n = (e.getAttribute("aria-describedby") || "").split(/\s+/).filter((e) => e !== "" && e !== t);
|
|
1512
1507
|
n.length === 0 ? e.removeAttribute("aria-describedby") : e.setAttribute("aria-describedby", n.join(" "));
|
|
1513
1508
|
}
|
|
1514
|
-
|
|
1509
|
+
u = void 0;
|
|
1515
1510
|
}
|
|
1516
|
-
function
|
|
1517
|
-
if (
|
|
1518
|
-
|
|
1519
|
-
let t = e.noParentEvent ?
|
|
1520
|
-
ee
|
|
1511
|
+
function V() {
|
|
1512
|
+
if (O.value !== null || e.scrollTarget !== void 0) {
|
|
1513
|
+
ee.value = at(O.value, e.scrollTarget);
|
|
1514
|
+
let t = e.noParentEvent ? I : j;
|
|
1515
|
+
te(ee.value, t);
|
|
1521
1516
|
}
|
|
1522
1517
|
}
|
|
1523
1518
|
function de() {
|
|
1524
1519
|
return h.value ? W("div", {
|
|
1525
|
-
...
|
|
1520
|
+
...r,
|
|
1526
1521
|
id: _.value,
|
|
1527
1522
|
ref: m,
|
|
1528
|
-
class: ["q-tooltip q-tooltip--style q-position-engine no-pointer-events",
|
|
1529
|
-
style: [
|
|
1523
|
+
class: ["q-tooltip q-tooltip--style q-position-engine no-pointer-events", r.class],
|
|
1524
|
+
style: [r.style, E.value],
|
|
1530
1525
|
role: "tooltip"
|
|
1531
|
-
},
|
|
1526
|
+
}, l(t.default)) : null;
|
|
1532
1527
|
}
|
|
1533
|
-
function
|
|
1534
|
-
return W(
|
|
1528
|
+
function fe() {
|
|
1529
|
+
return W(le, T.value, de);
|
|
1535
1530
|
}
|
|
1536
|
-
return K(
|
|
1531
|
+
return K(F), Object.assign(f.proxy, { updatePosition: I }), re;
|
|
1537
1532
|
}
|
|
1538
|
-
}),
|
|
1539
|
-
function
|
|
1533
|
+
}), Rn = /^on[A-Z]/;
|
|
1534
|
+
function zn() {
|
|
1540
1535
|
let e = U(), { attrs: t } = e, n = {
|
|
1541
1536
|
listeners: Y({}),
|
|
1542
1537
|
attributes: Y({})
|
|
1543
1538
|
};
|
|
1544
1539
|
function r() {
|
|
1545
1540
|
let r = {}, i = {};
|
|
1546
|
-
for (let e in t) e !== "class" && e !== "style" && !
|
|
1547
|
-
for (let t in e.vnode.props)
|
|
1541
|
+
for (let e in t) e !== "class" && e !== "style" && !Rn.test(e) && (r[e] = t[e]);
|
|
1542
|
+
for (let t in e.vnode.props) Rn.test(t) && (i[t] = e.vnode.props[t]);
|
|
1548
1543
|
n.attributes.value = r, n.listeners.value = i;
|
|
1549
1544
|
}
|
|
1550
|
-
return
|
|
1545
|
+
return ye(r), r(), n;
|
|
1551
1546
|
}
|
|
1552
1547
|
//#endregion
|
|
1553
|
-
//#region
|
|
1554
|
-
function
|
|
1555
|
-
let r =
|
|
1548
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-form/use-form-child.js
|
|
1549
|
+
function Bn({ validate: e, resetValidation: t, requiresQForm: n }) {
|
|
1550
|
+
let r = pe(_, !1);
|
|
1556
1551
|
if (r !== !1) {
|
|
1557
1552
|
let { props: n, proxy: i } = U();
|
|
1558
1553
|
Object.assign(i, {
|
|
@@ -1568,27 +1563,27 @@ function Ln({ validate: e, resetValidation: t, requiresQForm: n }) {
|
|
|
1568
1563
|
} else n && console.error("Parent QForm not found on useFormChild()!");
|
|
1569
1564
|
}
|
|
1570
1565
|
//#endregion
|
|
1571
|
-
//#region
|
|
1572
|
-
var
|
|
1573
|
-
date: (e) =>
|
|
1574
|
-
time: (e) =>
|
|
1575
|
-
fulltime: (e) =>
|
|
1576
|
-
timeOrFulltime: (e) =>
|
|
1577
|
-
email: (e) =>
|
|
1578
|
-
hexColor: (e) =>
|
|
1579
|
-
hexaColor: (e) =>
|
|
1580
|
-
hexOrHexaColor: (e) =>
|
|
1581
|
-
rgbColor: (e) =>
|
|
1582
|
-
rgbaColor: (e) =>
|
|
1583
|
-
rgbOrRgbaColor: (e) =>
|
|
1584
|
-
hexOrRgbColor: (e) =>
|
|
1585
|
-
hexaOrRgbaColor: (e) =>
|
|
1586
|
-
anyColor: (e) =>
|
|
1587
|
-
},
|
|
1566
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/patterns/patterns.js
|
|
1567
|
+
var Vn = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, Hn = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, Un = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, Wn = /^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/, Gn = /^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0(\.[\d]+)?|1(\.0+)?)\)$/, Kn = /^-?[\d]+\/(0[1-9]|1[0-2])\/(0[1-9]|[12]\d|3[01])$/, qn = /^([0-1]?\d|2[0-3]):[0-5]\d$/, Jn = /^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/, Yn = /^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/, Xn = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, Zn = {
|
|
1568
|
+
date: (e) => Kn.test(e),
|
|
1569
|
+
time: (e) => qn.test(e),
|
|
1570
|
+
fulltime: (e) => Jn.test(e),
|
|
1571
|
+
timeOrFulltime: (e) => Yn.test(e),
|
|
1572
|
+
email: (e) => Xn.test(e),
|
|
1573
|
+
hexColor: (e) => Vn.test(e),
|
|
1574
|
+
hexaColor: (e) => Hn.test(e),
|
|
1575
|
+
hexOrHexaColor: (e) => Un.test(e),
|
|
1576
|
+
rgbColor: (e) => Wn.test(e),
|
|
1577
|
+
rgbaColor: (e) => Gn.test(e),
|
|
1578
|
+
rgbOrRgbaColor: (e) => Wn.test(e) || Gn.test(e),
|
|
1579
|
+
hexOrRgbColor: (e) => Vn.test(e) || Wn.test(e),
|
|
1580
|
+
hexaOrRgbaColor: (e) => Hn.test(e) || Gn.test(e),
|
|
1581
|
+
anyColor: (e) => Un.test(e) || Wn.test(e) || Gn.test(e)
|
|
1582
|
+
}, Qn = [
|
|
1588
1583
|
!0,
|
|
1589
1584
|
!1,
|
|
1590
1585
|
"ondemand"
|
|
1591
|
-
],
|
|
1586
|
+
], $n = {
|
|
1592
1587
|
modelValue: {},
|
|
1593
1588
|
error: {
|
|
1594
1589
|
type: Boolean,
|
|
@@ -1601,16 +1596,16 @@ var Rn = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, zn = /^#[0-9a-fA-F]{4}([0-9a-fA-F
|
|
|
1601
1596
|
lazyRules: {
|
|
1602
1597
|
type: [Boolean, String],
|
|
1603
1598
|
default: !1,
|
|
1604
|
-
validator: (e) =>
|
|
1599
|
+
validator: (e) => Qn.includes(e)
|
|
1605
1600
|
}
|
|
1606
1601
|
};
|
|
1607
|
-
function
|
|
1602
|
+
function er(e, t) {
|
|
1608
1603
|
let { props: n, proxy: r } = U(), i = Y(!1), a = Y(null), o = Y(!1);
|
|
1609
|
-
|
|
1604
|
+
Bn({
|
|
1610
1605
|
validate: h,
|
|
1611
1606
|
resetValidation: m
|
|
1612
1607
|
});
|
|
1613
|
-
let s = 0, c, l =
|
|
1608
|
+
let s = 0, c, l = R(() => n.rules !== void 0 && n.rules !== null && n.rules.length !== 0), u = R(() => !n.disable && l.value && !t.value), d = R(() => n.error === !0 || i.value), f = R(() => typeof n.errorMessage == "string" && n.errorMessage.length !== 0 ? n.errorMessage : a.value);
|
|
1614
1609
|
Z(() => n.modelValue, () => {
|
|
1615
1610
|
o.value = !0, u.value && n.lazyRules === !1 && g();
|
|
1616
1611
|
});
|
|
@@ -1637,7 +1632,7 @@ function Zn(e, t) {
|
|
|
1637
1632
|
}, d = [];
|
|
1638
1633
|
for (let t = 0; t < n.rules.length; t++) {
|
|
1639
1634
|
let r = n.rules[t], i;
|
|
1640
|
-
if (typeof r == "function" ? i = r(e,
|
|
1635
|
+
if (typeof r == "function" ? i = r(e, Zn) : typeof r == "string" && Zn[r] !== void 0 && (i = Zn[r](e)), i === !1 || typeof i == "string") return u(!0, i), !1;
|
|
1641
1636
|
i !== !0 && i !== void 0 && d.push(i);
|
|
1642
1637
|
}
|
|
1643
1638
|
return d.length === 0 ? (u(!1), !0) : (t.value = !0, Promise.all(d).then((e) => {
|
|
@@ -1646,13 +1641,13 @@ function Zn(e, t) {
|
|
|
1646
1641
|
return r === s && u(t !== void 0, t), t === void 0;
|
|
1647
1642
|
}, (e) => (r === s && (console.error(e), u(!0)), !1)));
|
|
1648
1643
|
}
|
|
1649
|
-
let g =
|
|
1644
|
+
let g = F(h, 0);
|
|
1650
1645
|
return K(() => {
|
|
1651
1646
|
c?.(), g.cancel();
|
|
1652
1647
|
}), Object.assign(r, {
|
|
1653
1648
|
resetValidation: m,
|
|
1654
1649
|
validate: h
|
|
1655
|
-
}),
|
|
1650
|
+
}), S(r, "hasError", () => d.value), {
|
|
1656
1651
|
isDirtyModel: o,
|
|
1657
1652
|
hasRules: l,
|
|
1658
1653
|
hasError: d,
|
|
@@ -1662,13 +1657,13 @@ function Zn(e, t) {
|
|
|
1662
1657
|
};
|
|
1663
1658
|
}
|
|
1664
1659
|
//#endregion
|
|
1665
|
-
//#region
|
|
1666
|
-
function
|
|
1660
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-field/use-field.js
|
|
1661
|
+
function tr(e) {
|
|
1667
1662
|
return e != null && String(e).length !== 0;
|
|
1668
1663
|
}
|
|
1669
|
-
var
|
|
1670
|
-
...
|
|
1671
|
-
|
|
1664
|
+
var nr = {
|
|
1665
|
+
...Fe,
|
|
1666
|
+
...$n,
|
|
1672
1667
|
label: String,
|
|
1673
1668
|
stackLabel: Boolean,
|
|
1674
1669
|
hint: String,
|
|
@@ -1698,196 +1693,196 @@ var $n = {
|
|
|
1698
1693
|
autofocus: Boolean,
|
|
1699
1694
|
for: String,
|
|
1700
1695
|
maxlength: [Number, String]
|
|
1701
|
-
},
|
|
1696
|
+
}, rr = [
|
|
1702
1697
|
"update:modelValue",
|
|
1703
1698
|
"clear",
|
|
1704
1699
|
"focus",
|
|
1705
1700
|
"blur"
|
|
1706
1701
|
];
|
|
1707
|
-
function
|
|
1708
|
-
let { props: r, proxy: i } = U(), a =
|
|
1702
|
+
function ir({ requiredForAttr: e = !0, tagProp: t, changeEvent: n = !1 } = {}) {
|
|
1703
|
+
let { props: r, proxy: i } = U(), a = Ie(r, i.$q), o = hn({
|
|
1709
1704
|
required: e,
|
|
1710
1705
|
getValue: () => r.for
|
|
1711
1706
|
});
|
|
1712
1707
|
return {
|
|
1713
1708
|
requiredForAttr: e,
|
|
1714
1709
|
changeEvent: n,
|
|
1715
|
-
tag: t ?
|
|
1710
|
+
tag: t ? R(() => r.tag) : { value: "label" },
|
|
1716
1711
|
isDark: a,
|
|
1717
|
-
editable:
|
|
1712
|
+
editable: R(() => !r.disable && !r.readonly),
|
|
1718
1713
|
innerLoading: Y(!1),
|
|
1719
1714
|
focused: Y(!1),
|
|
1720
1715
|
hasPopupOpen: !1,
|
|
1721
|
-
splitAttrs:
|
|
1716
|
+
splitAttrs: zn(),
|
|
1722
1717
|
targetUid: o,
|
|
1723
1718
|
rootRef: Y(null),
|
|
1724
1719
|
targetRef: Y(null),
|
|
1725
1720
|
controlRef: Y(null)
|
|
1726
1721
|
};
|
|
1727
1722
|
}
|
|
1728
|
-
function
|
|
1723
|
+
function ar(e, t) {
|
|
1729
1724
|
return t === null ? null : W("div", {
|
|
1730
1725
|
key: e,
|
|
1731
1726
|
class: "q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"
|
|
1732
1727
|
}, t);
|
|
1733
1728
|
}
|
|
1734
|
-
function
|
|
1735
|
-
let { props:
|
|
1736
|
-
e.hasValue === void 0 && (e.hasValue =
|
|
1737
|
-
|
|
1729
|
+
function or(e) {
|
|
1730
|
+
let { props: t, emit: n, slots: r, attrs: i, proxy: a } = U(), { $q: s } = a, c = null;
|
|
1731
|
+
e.hasValue === void 0 && (e.hasValue = R(() => tr(t.modelValue))), e.emitValue === void 0 && (e.emitValue = (e) => {
|
|
1732
|
+
n("update:modelValue", e);
|
|
1738
1733
|
}), e.controlEvents === void 0 && (e.controlEvents = {
|
|
1739
|
-
onFocusin:
|
|
1740
|
-
onFocusout:
|
|
1734
|
+
onFocusin: te,
|
|
1735
|
+
onFocusout: D
|
|
1741
1736
|
}), Object.assign(e, {
|
|
1742
|
-
clearValue:
|
|
1743
|
-
onControlFocusin:
|
|
1744
|
-
onControlFocusout:
|
|
1745
|
-
focus:
|
|
1746
|
-
}), e.computedCounter === void 0 && (e.computedCounter =
|
|
1747
|
-
if (
|
|
1748
|
-
let e = typeof
|
|
1749
|
-
return e + (
|
|
1737
|
+
clearValue: O,
|
|
1738
|
+
onControlFocusin: te,
|
|
1739
|
+
onControlFocusout: D,
|
|
1740
|
+
focus: E
|
|
1741
|
+
}), e.computedCounter === void 0 && (e.computedCounter = R(() => {
|
|
1742
|
+
if (t.counter) {
|
|
1743
|
+
let e = typeof t.modelValue == "string" || typeof t.modelValue == "number" ? String(t.modelValue).length : Array.isArray(t.modelValue) ? t.modelValue.length : 0, n = t.maxlength === void 0 ? t.maxValues : t.maxlength;
|
|
1744
|
+
return e + (n === void 0 ? "" : " / " + n);
|
|
1750
1745
|
}
|
|
1751
1746
|
}));
|
|
1752
|
-
let { isDirtyModel:
|
|
1747
|
+
let { isDirtyModel: u, hasRules: d, hasError: f, errorMessage: p, resetValidation: m } = er(e.focused, e.innerLoading), h = e.floatingLabel === void 0 ? R(() => t.stackLabel || e.focused.value || e.hasValue.value) : R(() => t.stackLabel || e.focused.value || e.floatingLabel.value), g = R(() => t.bottomSlots || t.hint !== void 0 || d.value || t.counter || t.error !== null), _ = R(() => t.filled ? "filled" : t.outlined ? "outlined" : t.borderless ? "borderless" : t.standout ? "standout" : "standard"), v = R(() => `q-field row no-wrap items-start q-field--${_.value}` + (e.fieldClass === void 0 ? "" : ` ${e.fieldClass.value}`) + (t.rounded ? " q-field--rounded" : "") + (t.square ? " q-field--square" : "") + (h.value ? " q-field--float" : "") + (x.value ? " q-field--labeled" : "") + (t.dense ? " q-field--dense" : "") + (t.itemAligned ? " q-field--item-aligned q-item-type" : "") + (e.isDark.value ? " q-field--dark" : "") + (e.getControl === void 0 ? " q-field--auto-height" : "") + (e.focused.value ? " q-field--focused" : "") + (f.value ? " q-field--error" : "") + (f.value || e.focused.value ? " q-field--highlighted" : "") + (!t.hideBottomSpace && g.value ? " q-field--with-bottom" : "") + (t.disable ? " q-field--disabled" : t.readonly ? " q-field--readonly" : "")), y = R(() => "q-field__control relative-position row no-wrap" + (t.bgColor === void 0 ? "" : ` bg-${t.bgColor}`) + (f.value ? " text-negative" : typeof t.standout == "string" && t.standout.length !== 0 && e.focused.value ? ` ${t.standout}` : t.color === void 0 ? "" : ` text-${t.color}`)), x = R(() => t.labelSlot || t.label !== void 0), S = R(() => "q-field__label no-pointer-events absolute ellipsis" + (t.labelColor !== void 0 && !f.value ? ` text-${t.labelColor}` : "")), C = R(() => ({
|
|
1753
1748
|
id: e.targetUid.value,
|
|
1754
1749
|
editable: e.editable.value,
|
|
1755
1750
|
focused: e.focused.value,
|
|
1756
1751
|
floatingLabel: h.value,
|
|
1757
|
-
modelValue:
|
|
1752
|
+
modelValue: t.modelValue,
|
|
1758
1753
|
emitValue: e.emitValue
|
|
1759
|
-
})),
|
|
1760
|
-
let
|
|
1761
|
-
return e.targetUid.value && (
|
|
1754
|
+
})), w = R(() => {
|
|
1755
|
+
let n = {};
|
|
1756
|
+
return e.targetUid.value && (n.for = e.targetUid.value), t.disable && (n["aria-disabled"] = "true"), n;
|
|
1762
1757
|
});
|
|
1763
|
-
function
|
|
1758
|
+
function T() {
|
|
1764
1759
|
let t = document.activeElement, n = e.targetRef?.value;
|
|
1765
1760
|
n && (t === null || t.id !== e.targetUid.value) && (n.hasAttribute("tabindex") || (n = n.querySelector("[tabindex]")), n !== t && n?.focus({ preventScroll: !0 }));
|
|
1766
1761
|
}
|
|
1767
|
-
function
|
|
1768
|
-
|
|
1762
|
+
function E() {
|
|
1763
|
+
Qe(T);
|
|
1769
1764
|
}
|
|
1770
|
-
function
|
|
1771
|
-
|
|
1765
|
+
function ee() {
|
|
1766
|
+
$e(T);
|
|
1772
1767
|
let t = document.activeElement;
|
|
1773
1768
|
t !== null && e.rootRef.value.contains(t) && t.blur();
|
|
1774
1769
|
}
|
|
1775
|
-
function
|
|
1776
|
-
c !== null && (clearTimeout(c), c = null), e.editable.value && !e.focused.value && (e.focused.value = !0,
|
|
1770
|
+
function te(t) {
|
|
1771
|
+
c !== null && (clearTimeout(c), c = null), e.editable.value && !e.focused.value && (e.focused.value = !0, n("focus", t));
|
|
1777
1772
|
}
|
|
1778
|
-
function
|
|
1773
|
+
function D(t, r) {
|
|
1779
1774
|
c !== null && clearTimeout(c), c = setTimeout(() => {
|
|
1780
|
-
c = null, !(document.hasFocus() && (e.hasPopupOpen || e.controlRef === void 0 || e.controlRef.value === null || e.controlRef.value.contains(document.activeElement))) && (e.focused.value && (e.focused.value = !1,
|
|
1775
|
+
c = null, !(document.hasFocus() && (e.hasPopupOpen || e.controlRef === void 0 || e.controlRef.value === null || e.controlRef.value.contains(document.activeElement))) && (e.focused.value && (e.focused.value = !1, n("blur", t)), r?.());
|
|
1781
1776
|
}, 0);
|
|
1782
1777
|
}
|
|
1783
|
-
function
|
|
1784
|
-
|
|
1785
|
-
let e =
|
|
1786
|
-
m(),
|
|
1778
|
+
function O(r) {
|
|
1779
|
+
b(r), s.platform.is.mobile ? e.rootRef.value.contains(document.activeElement) && document.activeElement.blur() : (e.targetRef?.value || e.rootRef.value).focus(), t.type === "file" && (e.inputRef.value.value = null), e.onClear?.(), n("update:modelValue", null), e.changeEvent && n("change", null), n("clear", t.modelValue), G(() => {
|
|
1780
|
+
let e = u.value;
|
|
1781
|
+
m(), u.value = e;
|
|
1787
1782
|
});
|
|
1788
1783
|
}
|
|
1789
|
-
function
|
|
1790
|
-
[13, 32].includes(e.keyCode) &&
|
|
1784
|
+
function k(e) {
|
|
1785
|
+
[13, 32].includes(e.keyCode) && O(e);
|
|
1791
1786
|
}
|
|
1792
1787
|
function A() {
|
|
1793
|
-
let
|
|
1794
|
-
return
|
|
1788
|
+
let n = [];
|
|
1789
|
+
return r.prepend !== void 0 && n.push(W("div", {
|
|
1795
1790
|
class: "q-field__prepend q-field__marginal row no-wrap items-center",
|
|
1796
1791
|
key: "prepend",
|
|
1797
|
-
onClick:
|
|
1798
|
-
},
|
|
1792
|
+
onClick: L
|
|
1793
|
+
}, r.prepend())), n.push(W("div", { class: "q-field__control-container col relative-position row no-wrap q-anchor--skip" }, ne())), f.value && !t.noErrorIcon && n.push(ar("error", [W(M, {
|
|
1799
1794
|
name: s.iconSet.field.error,
|
|
1800
1795
|
color: "negative"
|
|
1801
|
-
})])),
|
|
1796
|
+
})])), t.loading || e.innerLoading.value ? n.push(ar("inner-loading-append", r.loading === void 0 ? [W(o, { color: t.color })] : r.loading())) : t.clearable && e.hasValue.value && e.editable.value && n.push(ar("inner-clearable-append", [W(M, {
|
|
1802
1797
|
class: "q-field__focusable-action",
|
|
1803
|
-
name:
|
|
1798
|
+
name: t.clearIcon || s.iconSet.field.clear,
|
|
1804
1799
|
tabindex: 0,
|
|
1805
1800
|
role: "button",
|
|
1806
1801
|
"aria-hidden": "false",
|
|
1807
1802
|
"aria-label": s.lang.label.clear,
|
|
1808
|
-
onKeyup:
|
|
1809
|
-
onClick:
|
|
1810
|
-
})])),
|
|
1803
|
+
onKeyup: k,
|
|
1804
|
+
onClick: O
|
|
1805
|
+
})])), r.append !== void 0 && n.push(W("div", {
|
|
1811
1806
|
class: "q-field__append q-field__marginal row no-wrap items-center",
|
|
1812
1807
|
key: "append",
|
|
1813
|
-
onClick:
|
|
1814
|
-
},
|
|
1808
|
+
onClick: L
|
|
1809
|
+
}, r.append())), e.getInnerAppend !== void 0 && n.push(ar("inner-append", e.getInnerAppend())), e.getControlChild !== void 0 && n.push(e.getControlChild()), n;
|
|
1815
1810
|
}
|
|
1816
|
-
function
|
|
1817
|
-
let
|
|
1818
|
-
return
|
|
1811
|
+
function ne() {
|
|
1812
|
+
let n = [];
|
|
1813
|
+
return t.prefix !== void 0 && t.prefix !== null && n.push(W("div", { class: "q-field__prefix no-pointer-events row items-center" }, t.prefix)), e.getShadowControl !== void 0 && e.hasShadow.value && n.push(e.getShadowControl()), x.value && n.push(W("div", { class: S.value }, l(r.label, t.label))), e.getControl === void 0 ? r.rawControl === void 0 ? r.control !== void 0 && n.push(W("div", {
|
|
1819
1814
|
ref: e.targetRef,
|
|
1820
1815
|
class: "q-field__native row",
|
|
1821
1816
|
tabindex: -1,
|
|
1822
1817
|
...e.splitAttrs.attributes.value,
|
|
1823
|
-
"data-autofocus":
|
|
1824
|
-
},
|
|
1825
|
-
}
|
|
1826
|
-
function
|
|
1827
|
-
let
|
|
1828
|
-
f.value ? p.value === null ? (
|
|
1829
|
-
let a =
|
|
1830
|
-
if (
|
|
1818
|
+
"data-autofocus": t.autofocus || void 0
|
|
1819
|
+
}, r.control(C.value))) : n.push(r.rawControl()) : n.push(e.getControl()), t.suffix !== void 0 && t.suffix !== null && n.push(W("div", { class: "q-field__suffix no-pointer-events row items-center" }, t.suffix)), n.concat(l(r.default));
|
|
1820
|
+
}
|
|
1821
|
+
function j() {
|
|
1822
|
+
let n, i;
|
|
1823
|
+
f.value ? p.value === null ? (n = l(r.error), i = "q--slot-error") : (n = [W("div", { role: "alert" }, p.value)], i = `q--slot-error-${p.value}`) : (!t.hideHint || e.focused.value) && (t.hint === void 0 ? (n = l(r.hint), i = "q--slot-hint") : (n = [W("div", t.hint)], i = `q--slot-hint-${t.hint}`));
|
|
1824
|
+
let a = t.counter || r.counter !== void 0;
|
|
1825
|
+
if (t.hideBottomSpace && !a && n === void 0) return;
|
|
1831
1826
|
let o = W("div", {
|
|
1832
|
-
key:
|
|
1827
|
+
key: i,
|
|
1833
1828
|
class: "q-field__messages col"
|
|
1834
|
-
},
|
|
1829
|
+
}, n);
|
|
1835
1830
|
return W("div", {
|
|
1836
|
-
class: "q-field__bottom row items-start q-field__bottom--" + (
|
|
1837
|
-
onClick:
|
|
1838
|
-
}, [
|
|
1839
|
-
}
|
|
1840
|
-
let
|
|
1841
|
-
return
|
|
1842
|
-
|
|
1843
|
-
}),
|
|
1844
|
-
|
|
1845
|
-
}),
|
|
1846
|
-
|
|
1831
|
+
class: "q-field__bottom row items-start q-field__bottom--" + (t.hideBottomSpace ? "stale" : "animated"),
|
|
1832
|
+
onClick: L
|
|
1833
|
+
}, [t.hideBottomSpace ? o : W(le, { name: "q-transition--field-message" }, () => o), a ? W("div", { class: "q-field__counter" }, r.counter === void 0 ? e.computedCounter.value : r.counter()) : null]);
|
|
1834
|
+
}
|
|
1835
|
+
let N = !1;
|
|
1836
|
+
return be(() => {
|
|
1837
|
+
N = !0;
|
|
1838
|
+
}), ve(() => {
|
|
1839
|
+
N && t.autofocus && a.focus();
|
|
1840
|
+
}), t.autofocus && q(() => {
|
|
1841
|
+
a.focus();
|
|
1847
1842
|
}), K(() => {
|
|
1848
1843
|
c !== null && clearTimeout(c);
|
|
1849
|
-
}), Object.assign(
|
|
1850
|
-
focus:
|
|
1851
|
-
blur:
|
|
1844
|
+
}), Object.assign(a, {
|
|
1845
|
+
focus: E,
|
|
1846
|
+
blur: ee
|
|
1852
1847
|
}), function() {
|
|
1853
|
-
let
|
|
1848
|
+
let n = e.getControl === void 0 && r.control === void 0 ? {
|
|
1854
1849
|
...e.splitAttrs.attributes.value,
|
|
1855
|
-
"data-autofocus":
|
|
1856
|
-
...
|
|
1857
|
-
} :
|
|
1850
|
+
"data-autofocus": t.autofocus || void 0,
|
|
1851
|
+
...w.value
|
|
1852
|
+
} : w.value;
|
|
1858
1853
|
return W(e.tag.value, {
|
|
1859
1854
|
ref: e.rootRef,
|
|
1860
|
-
class: [
|
|
1861
|
-
style:
|
|
1862
|
-
...
|
|
1855
|
+
class: [v.value, i.class],
|
|
1856
|
+
style: i.style,
|
|
1857
|
+
...n
|
|
1863
1858
|
}, [
|
|
1864
|
-
|
|
1859
|
+
r.before === void 0 ? null : W("div", {
|
|
1865
1860
|
class: "q-field__before q-field__marginal row no-wrap items-center",
|
|
1866
|
-
onClick:
|
|
1867
|
-
},
|
|
1861
|
+
onClick: L
|
|
1862
|
+
}, r.before()),
|
|
1868
1863
|
W("div", { class: "q-field__inner relative-position col self-stretch" }, [W("div", {
|
|
1869
1864
|
ref: e.controlRef,
|
|
1870
|
-
class:
|
|
1865
|
+
class: y.value,
|
|
1871
1866
|
tabindex: -1,
|
|
1872
1867
|
...e.controlEvents
|
|
1873
|
-
}, A()),
|
|
1874
|
-
|
|
1868
|
+
}, A()), g.value ? j() : null]),
|
|
1869
|
+
r.after === void 0 ? null : W("div", {
|
|
1875
1870
|
class: "q-field__after q-field__marginal row no-wrap items-center",
|
|
1876
|
-
onClick:
|
|
1877
|
-
},
|
|
1871
|
+
onClick: L
|
|
1872
|
+
}, r.after())
|
|
1878
1873
|
]);
|
|
1879
1874
|
};
|
|
1880
1875
|
}
|
|
1881
1876
|
//#endregion
|
|
1882
|
-
//#region
|
|
1883
|
-
var
|
|
1877
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/input/use-mask.js
|
|
1878
|
+
var sr = {
|
|
1884
1879
|
date: "####/##/##",
|
|
1885
1880
|
datetime: "####/##/## ##:##",
|
|
1886
1881
|
time: "##:##",
|
|
1887
1882
|
fulltime: "##:##:##",
|
|
1888
1883
|
phone: "(###) ### - ####",
|
|
1889
1884
|
card: "#### #### #### ####"
|
|
1890
|
-
}, { tokenMap:
|
|
1885
|
+
}, { tokenMap: cr, tokenKeys: lr } = ur({
|
|
1891
1886
|
"#": {
|
|
1892
1887
|
pattern: "[\\d]",
|
|
1893
1888
|
negate: "[^\\d]"
|
|
@@ -1921,7 +1916,7 @@ var ir = {
|
|
|
1921
1916
|
transform: (e) => e.toLocaleLowerCase()
|
|
1922
1917
|
}
|
|
1923
1918
|
});
|
|
1924
|
-
function
|
|
1919
|
+
function ur(e) {
|
|
1925
1920
|
let t = Object.keys(e), n = {};
|
|
1926
1921
|
return t.forEach((t) => {
|
|
1927
1922
|
let r = e[t];
|
|
@@ -1934,32 +1929,32 @@ function sr(e) {
|
|
|
1934
1929
|
tokenKeys: t
|
|
1935
1930
|
};
|
|
1936
1931
|
}
|
|
1937
|
-
function
|
|
1932
|
+
function dr(e) {
|
|
1938
1933
|
return RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|([" + e.join("") + "])|(.)", "g");
|
|
1939
1934
|
}
|
|
1940
|
-
var
|
|
1935
|
+
var fr = /[.*+?^${}()|[\]\\]/g, pr = dr(lr), $ = String.fromCodePoint(1), mr = {
|
|
1941
1936
|
mask: String,
|
|
1942
1937
|
reverseFillMask: Boolean,
|
|
1943
1938
|
fillMask: [Boolean, String],
|
|
1944
1939
|
unmaskedValue: Boolean,
|
|
1945
1940
|
maskTokens: Object
|
|
1946
1941
|
};
|
|
1947
|
-
function
|
|
1948
|
-
let i,
|
|
1942
|
+
function hr(e, t, n, r) {
|
|
1943
|
+
let i, o, s, c, l, u, d = R(() => {
|
|
1949
1944
|
if (e.maskTokens === void 0 || e.maskTokens === null) return {
|
|
1950
|
-
tokenMap:
|
|
1951
|
-
tokenRegexMask:
|
|
1945
|
+
tokenMap: cr,
|
|
1946
|
+
tokenRegexMask: pr
|
|
1952
1947
|
};
|
|
1953
|
-
let { tokenMap: t } =
|
|
1954
|
-
...
|
|
1948
|
+
let { tokenMap: t } = ur(e.maskTokens), n = {
|
|
1949
|
+
...cr,
|
|
1955
1950
|
...t
|
|
1956
1951
|
};
|
|
1957
1952
|
return {
|
|
1958
1953
|
tokenMap: n,
|
|
1959
|
-
tokenRegexMask:
|
|
1954
|
+
tokenRegexMask: dr(Object.keys(n))
|
|
1960
1955
|
};
|
|
1961
|
-
}),
|
|
1962
|
-
function
|
|
1956
|
+
}), f = Y(null), p = Y(h());
|
|
1957
|
+
function m() {
|
|
1963
1958
|
return e.autogrow || [
|
|
1964
1959
|
"textarea",
|
|
1965
1960
|
"text",
|
|
@@ -1970,20 +1965,20 @@ function fr(e, t, n, r) {
|
|
|
1970
1965
|
].includes(e.type);
|
|
1971
1966
|
}
|
|
1972
1967
|
Z(() => e.type + e.autogrow, _), Z(() => e.mask, (n) => {
|
|
1973
|
-
if (n !== void 0) v(
|
|
1968
|
+
if (n !== void 0) v(p.value, !0);
|
|
1974
1969
|
else {
|
|
1975
|
-
let n = T(
|
|
1970
|
+
let n = T(p.value);
|
|
1976
1971
|
_(), e.modelValue !== n && t("update:modelValue", n);
|
|
1977
1972
|
}
|
|
1978
1973
|
}), Z(() => e.fillMask + e.reverseFillMask, () => {
|
|
1979
|
-
|
|
1974
|
+
f.value && v(p.value, !0);
|
|
1980
1975
|
}), Z(() => e.unmaskedValue, () => {
|
|
1981
|
-
|
|
1976
|
+
f.value && v(p.value);
|
|
1982
1977
|
}), Z(() => e.maskTokens, () => {
|
|
1983
|
-
|
|
1978
|
+
f.value && v(p.value, !0);
|
|
1984
1979
|
}, { deep: !0 });
|
|
1985
|
-
function
|
|
1986
|
-
if (_(),
|
|
1980
|
+
function h() {
|
|
1981
|
+
if (_(), f.value) {
|
|
1987
1982
|
let t = C(T(e.modelValue));
|
|
1988
1983
|
return e.fillMask === !1 ? t : E(t);
|
|
1989
1984
|
}
|
|
@@ -1999,27 +1994,27 @@ function fr(e, t, n, r) {
|
|
|
1999
1994
|
return n;
|
|
2000
1995
|
}
|
|
2001
1996
|
function _() {
|
|
2002
|
-
if (
|
|
2003
|
-
|
|
1997
|
+
if (f.value = e.mask !== void 0 && e.mask.length !== 0 && m(), !f.value) {
|
|
1998
|
+
c = void 0, i = "", o = "";
|
|
2004
1999
|
return;
|
|
2005
2000
|
}
|
|
2006
|
-
let t =
|
|
2007
|
-
t.replace(
|
|
2001
|
+
let t = sr[e.mask] === void 0 ? e.mask : sr[e.mask], n = typeof e.fillMask == "string" && e.fillMask.length !== 0 ? e.fillMask.slice(0, 1) : "_", r = n.replace(fr, String.raw`\$&`), a = [], l = [], u = [], p = e.reverseFillMask, h = "", g = "";
|
|
2002
|
+
t.replace(d.value.tokenRegexMask, (e, t, n, r, i) => {
|
|
2008
2003
|
if (r !== void 0) {
|
|
2009
|
-
let e =
|
|
2010
|
-
|
|
2004
|
+
let e = d.value.tokenMap[r];
|
|
2005
|
+
u.push(e), g = e.negate, p &&= (l.push("(?:" + g + "+)?(" + e.pattern + "+)?(?:" + g + "+)?(" + e.pattern + "+)?"), !1), l.push("(?:" + g + "+)?(" + e.pattern + ")?");
|
|
2011
2006
|
return;
|
|
2012
2007
|
}
|
|
2013
|
-
if (n !== void 0) h = "\\" + (n === "\\" ? "" : n),
|
|
2008
|
+
if (n !== void 0) h = "\\" + (n === "\\" ? "" : n), u.push(n);
|
|
2014
2009
|
else {
|
|
2015
2010
|
let e = t === void 0 ? i : t;
|
|
2016
|
-
h = e === "\\" ? String.raw`\\\\` : e.replace(
|
|
2011
|
+
h = e === "\\" ? String.raw`\\\\` : e.replace(fr, String.raw`\\$&`), u.push(e);
|
|
2017
2012
|
}
|
|
2018
|
-
|
|
2013
|
+
a.push("([^" + h + "]+)?" + h + "?");
|
|
2019
2014
|
});
|
|
2020
|
-
let _ = RegExp("^" +
|
|
2021
|
-
|
|
2022
|
-
let n = _.exec(e.reverseFillMask ? t : t.slice(0,
|
|
2015
|
+
let _ = RegExp("^" + a.join("") + "(" + (h === "" ? "." : "[^" + h + "]") + "+)?" + (h === "" ? "" : "[" + h + "]*") + "$"), v = l.length - 1, y = l.map((t, n) => n === 0 && e.reverseFillMask ? RegExp("^" + r + "*" + t) : RegExp(n === v ? "^" + t + "(" + (g === "" ? "." : g) + "+)?" + (e.reverseFillMask ? "$" : r + "*") : "^" + t));
|
|
2016
|
+
s = u, c = (t) => {
|
|
2017
|
+
let n = _.exec(e.reverseFillMask ? t : t.slice(0, u.length + 1));
|
|
2023
2018
|
n !== null && (t = n.slice(1).join(""));
|
|
2024
2019
|
let r = [], i = y.length;
|
|
2025
2020
|
for (let e = 0, n = t; e < i; e++) {
|
|
@@ -2028,43 +2023,42 @@ function fr(e, t, n, r) {
|
|
|
2028
2023
|
n = n.slice(t.shift().length), r.push(...t);
|
|
2029
2024
|
}
|
|
2030
2025
|
return r.length === 0 ? t : r.join("");
|
|
2031
|
-
}, i =
|
|
2032
|
-
}
|
|
2033
|
-
function v(t,
|
|
2034
|
-
let
|
|
2035
|
-
|
|
2036
|
-
let m = C(
|
|
2037
|
-
|
|
2038
|
-
if (h ===
|
|
2039
|
-
let t = e.reverseFillMask ?
|
|
2040
|
-
|
|
2026
|
+
}, i = u.map((e) => typeof e == "string" ? e : $).join(""), o = i.split($).join(n);
|
|
2027
|
+
}
|
|
2028
|
+
function v(t, a, s) {
|
|
2029
|
+
let c = r.value, u = c?.selectionEnd ?? 0, d = c === null ? 0 : c.value.length - u, f = T(t);
|
|
2030
|
+
a === !0 && _();
|
|
2031
|
+
let m = C(f, a), h = e.fillMask === !1 ? m : E(m), g = p.value !== h;
|
|
2032
|
+
c !== null && c.value !== h && (c.value = h), g && (p.value = h), c !== null && document.activeElement === c && G(() => {
|
|
2033
|
+
if (h === o) {
|
|
2034
|
+
let t = e.reverseFillMask ? o.length : 0;
|
|
2035
|
+
c.setSelectionRange(t, t, "forward");
|
|
2041
2036
|
return;
|
|
2042
2037
|
}
|
|
2043
2038
|
if (s === "insertFromPaste" && !e.reverseFillMask) {
|
|
2044
|
-
let e =
|
|
2045
|
-
for (let n =
|
|
2046
|
-
b.right(
|
|
2039
|
+
let e = c.selectionEnd, t = u - 1;
|
|
2040
|
+
for (let n = l; n <= t && n < e; n++) i[n] !== $ && t++;
|
|
2041
|
+
b.right(c, t);
|
|
2047
2042
|
return;
|
|
2048
2043
|
}
|
|
2049
2044
|
if (["deleteContentBackward", "deleteContentForward"].includes(s)) {
|
|
2050
|
-
let t = e.reverseFillMask ? u === 0 ? +(h.length > m.length) : Math.max(0, h.length - (h ===
|
|
2051
|
-
|
|
2045
|
+
let t = e.reverseFillMask ? u === 0 ? +(h.length > m.length) : Math.max(0, h.length - (h === o ? 0 : Math.min(m.length, d) + 1)) + 1 : u;
|
|
2046
|
+
c.setSelectionRange(t, t, "forward");
|
|
2052
2047
|
return;
|
|
2053
2048
|
}
|
|
2054
|
-
if (e.reverseFillMask) {
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
} else if (g) {
|
|
2049
|
+
if (e.reverseFillMask) if (g) {
|
|
2050
|
+
let e = Math.max(0, h.length - (h === o ? 0 : Math.min(m.length, d + 1)));
|
|
2051
|
+
e === 1 && u === 1 ? c.setSelectionRange(e, e, "forward") : b.rightReverse(c, e);
|
|
2052
|
+
} else {
|
|
2053
|
+
let e = h.length - d;
|
|
2054
|
+
c.setSelectionRange(e, e, "backward");
|
|
2055
|
+
}
|
|
2056
|
+
else if (g) {
|
|
2063
2057
|
let e = Math.max(0, i.indexOf($), Math.min(m.length, u) - 1);
|
|
2064
|
-
b.right(
|
|
2058
|
+
b.right(c, e);
|
|
2065
2059
|
} else {
|
|
2066
2060
|
let e = u - 1;
|
|
2067
|
-
b.right(
|
|
2061
|
+
b.right(c, e);
|
|
2068
2062
|
}
|
|
2069
2063
|
});
|
|
2070
2064
|
let v = e.unmaskedValue ? T(h) : h;
|
|
@@ -2072,7 +2066,7 @@ function fr(e, t, n, r) {
|
|
|
2072
2066
|
}
|
|
2073
2067
|
function y(e, t, n) {
|
|
2074
2068
|
let r = C(T(e.value));
|
|
2075
|
-
t = Math.max(0, i.indexOf($), Math.min(r.length, t)),
|
|
2069
|
+
t = Math.max(0, i.indexOf($), Math.min(r.length, t)), l = t, e.setSelectionRange(t, n, "forward");
|
|
2076
2070
|
}
|
|
2077
2071
|
let b = {
|
|
2078
2072
|
left(e, t) {
|
|
@@ -2113,24 +2107,24 @@ function fr(e, t, n, r) {
|
|
|
2113
2107
|
}
|
|
2114
2108
|
};
|
|
2115
2109
|
function x(e) {
|
|
2116
|
-
t("click", e),
|
|
2110
|
+
t("click", e), u = void 0;
|
|
2117
2111
|
}
|
|
2118
2112
|
function S(n) {
|
|
2119
|
-
if (t("keydown", n),
|
|
2120
|
-
let i = r.value,
|
|
2121
|
-
if (n.shiftKey || (
|
|
2122
|
-
n.shiftKey &&
|
|
2113
|
+
if (t("keydown", n), a(n) || n.altKey) return;
|
|
2114
|
+
let i = r.value, o = i.selectionStart, s = i.selectionEnd;
|
|
2115
|
+
if (n.shiftKey || (u = void 0), n.keyCode === 37 || n.keyCode === 39) {
|
|
2116
|
+
n.shiftKey && u === void 0 && (u = i.selectionDirection === "forward" ? o : s);
|
|
2123
2117
|
let t = b[(n.keyCode === 39 ? "right" : "left") + (e.reverseFillMask ? "Reverse" : "")];
|
|
2124
|
-
if (n.preventDefault(), t(i,
|
|
2118
|
+
if (n.preventDefault(), t(i, u === o ? s : o), n.shiftKey) {
|
|
2125
2119
|
let e = i.selectionStart;
|
|
2126
|
-
i.setSelectionRange(Math.min(
|
|
2120
|
+
i.setSelectionRange(Math.min(u, e), Math.max(u, e), "forward");
|
|
2127
2121
|
}
|
|
2128
|
-
} else n.keyCode === 8 && !e.reverseFillMask &&
|
|
2122
|
+
} else n.keyCode === 8 && !e.reverseFillMask && o === s ? (b.left(i, o), i.setSelectionRange(i.selectionStart, s, "backward")) : n.keyCode === 46 && e.reverseFillMask && o === s && (b.rightReverse(i, s), i.setSelectionRange(o, i.selectionEnd, "forward"));
|
|
2129
2123
|
}
|
|
2130
2124
|
function C(t, n) {
|
|
2131
2125
|
if (t == null || t === "") return "";
|
|
2132
2126
|
if (e.reverseFillMask) return w(t, n);
|
|
2133
|
-
let r =
|
|
2127
|
+
let r = s, i = 0, a = "";
|
|
2134
2128
|
for (let e = 0; e < r.length; e++) {
|
|
2135
2129
|
let o = t[i], s = r[e];
|
|
2136
2130
|
if (typeof s == "string") a += s, n === !0 && o === s && i++;
|
|
@@ -2140,26 +2134,26 @@ function fr(e, t, n, r) {
|
|
|
2140
2134
|
return a;
|
|
2141
2135
|
}
|
|
2142
2136
|
function w(e, t) {
|
|
2143
|
-
let n =
|
|
2137
|
+
let n = s, r = i.indexOf($), a = e.length - 1, o = "";
|
|
2144
2138
|
for (let i = n.length - 1; i >= 0 && a !== -1; i--) {
|
|
2145
|
-
let
|
|
2146
|
-
if (typeof
|
|
2147
|
-
else if (c !== void 0 &&
|
|
2148
|
-
|
|
2149
|
-
while (r === i && c !== void 0 &&
|
|
2150
|
-
else return
|
|
2139
|
+
let s = n[i], c = e[a];
|
|
2140
|
+
if (typeof s == "string") o = s + o, t === !0 && c === s && a--;
|
|
2141
|
+
else if (c !== void 0 && s.regex.test(c)) do
|
|
2142
|
+
o = (s.transform === void 0 ? c : s.transform(c)) + o, a--, c = e[a];
|
|
2143
|
+
while (r === i && c !== void 0 && s.regex.test(c));
|
|
2144
|
+
else return o;
|
|
2151
2145
|
}
|
|
2152
|
-
return
|
|
2146
|
+
return o;
|
|
2153
2147
|
}
|
|
2154
2148
|
function T(e) {
|
|
2155
|
-
return typeof e != "string" ||
|
|
2149
|
+
return typeof e != "string" || c === void 0 ? typeof e == "number" ? c(String(e)) : e : c(e);
|
|
2156
2150
|
}
|
|
2157
2151
|
function E(t) {
|
|
2158
|
-
return
|
|
2152
|
+
return o.length - t.length <= 0 ? t : e.reverseFillMask && t.length !== 0 ? o.slice(0, -t.length) + t : t + o.slice(t.length);
|
|
2159
2153
|
}
|
|
2160
2154
|
return {
|
|
2161
|
-
innerValue:
|
|
2162
|
-
hasMask:
|
|
2155
|
+
innerValue: p,
|
|
2156
|
+
hasMask: f,
|
|
2163
2157
|
moveCursorForPaste: y,
|
|
2164
2158
|
updateMaskValue: v,
|
|
2165
2159
|
onMaskedKeydown: S,
|
|
@@ -2167,14 +2161,14 @@ function fr(e, t, n, r) {
|
|
|
2167
2161
|
};
|
|
2168
2162
|
}
|
|
2169
2163
|
//#endregion
|
|
2170
|
-
//#region
|
|
2171
|
-
var
|
|
2172
|
-
function
|
|
2173
|
-
return
|
|
2164
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-form/private.use-form.js
|
|
2165
|
+
var gr = { name: String };
|
|
2166
|
+
function _r(e) {
|
|
2167
|
+
return R(() => e.name || e.for);
|
|
2174
2168
|
}
|
|
2175
2169
|
//#endregion
|
|
2176
|
-
//#region
|
|
2177
|
-
function
|
|
2170
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-file/use-file-dom-props.js
|
|
2171
|
+
function vr(e, t) {
|
|
2178
2172
|
function n() {
|
|
2179
2173
|
let t = e.modelValue;
|
|
2180
2174
|
try {
|
|
@@ -2186,30 +2180,30 @@ function hr(e, t) {
|
|
|
2186
2180
|
return { files: void 0 };
|
|
2187
2181
|
}
|
|
2188
2182
|
}
|
|
2189
|
-
return
|
|
2183
|
+
return R(t ? () => {
|
|
2190
2184
|
if (e.type === "file") return n();
|
|
2191
2185
|
} : n);
|
|
2192
2186
|
}
|
|
2193
2187
|
//#endregion
|
|
2194
|
-
//#region
|
|
2195
|
-
var
|
|
2196
|
-
function
|
|
2188
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-key-composition/use-key-composition.js
|
|
2189
|
+
var yr = /[\u3000-\u303F\u3040-\u309F\u30A0-\u30FF\uFF00-\uFF9F\u4E00-\u9FAF\u3400-\u4DBF]/, br = /[\u4E00-\u9FFF\u3400-\u4DBF\u{20000}-\u{2A6DF}\u{2A700}-\u{2B73F}\u{2B740}-\u{2B81F}\u{2B820}-\u{2CEAF}\uF900-\uFAFF\u3300-\u33FF\uFE30-\uFE4F\uF900-\uFAFF\u{2F800}-\u{2FA1F}]/u, xr = /[\u3131-\u314E\u314F-\u3163\uAC00-\uD7A3]/, Sr = /[a-z0-9_ -]$/i;
|
|
2190
|
+
function Cr(e) {
|
|
2197
2191
|
return function(t) {
|
|
2198
2192
|
if (t.type === "compositionend" || t.type === "change") {
|
|
2199
2193
|
if (!t.target.qComposing) return;
|
|
2200
2194
|
t.target.qComposing = !1, e(t);
|
|
2201
|
-
} else t.type === "compositionupdate" && !t.target.qComposing && typeof t.data == "string" && (
|
|
2195
|
+
} else t.type === "compositionupdate" && !t.target.qComposing && typeof t.data == "string" && (r.is.firefox ? !Sr.test(t.data) : yr.test(t.data) || br.test(t.data) || xr.test(t.data)) && (t.target.qComposing = !0);
|
|
2202
2196
|
};
|
|
2203
2197
|
}
|
|
2204
2198
|
//#endregion
|
|
2205
|
-
//#region
|
|
2206
|
-
var
|
|
2199
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/input/QInput.js
|
|
2200
|
+
var wr = C({
|
|
2207
2201
|
name: "QInput",
|
|
2208
2202
|
inheritAttrs: !1,
|
|
2209
2203
|
props: {
|
|
2210
|
-
|
|
2211
|
-
...
|
|
2212
|
-
...
|
|
2204
|
+
...nr,
|
|
2205
|
+
...mr,
|
|
2206
|
+
...gr,
|
|
2213
2207
|
modelValue: [
|
|
2214
2208
|
String,
|
|
2215
2209
|
Number,
|
|
@@ -2235,171 +2229,171 @@ var xr = l({
|
|
|
2235
2229
|
]
|
|
2236
2230
|
},
|
|
2237
2231
|
emits: [
|
|
2238
|
-
...
|
|
2232
|
+
...rr,
|
|
2239
2233
|
"paste",
|
|
2240
2234
|
"change",
|
|
2241
2235
|
"keydown",
|
|
2242
2236
|
"click",
|
|
2243
2237
|
"animationend"
|
|
2244
2238
|
],
|
|
2245
|
-
setup(e, { emit:
|
|
2246
|
-
let { proxy:
|
|
2239
|
+
setup(e, { emit: n, attrs: r }) {
|
|
2240
|
+
let { proxy: i } = U(), { $q: a } = i, o = {}, s = NaN, c = !1, l = !1, u = null, d, f = Y(null), p = _r(e), { innerValue: m, hasMask: h, moveCursorForPaste: g, updateMaskValue: _, onMaskedKeydown: v, onMaskedClick: y } = hr(e, n, N, f), b = vr(e, !0), x = R(() => tr(m.value)), C = Cr(j), w = ir({ changeEvent: !0 }), T = R(() => e.type === "textarea" || e.autogrow), E = R(() => T.value || [
|
|
2247
2241
|
"text",
|
|
2248
2242
|
"search",
|
|
2249
2243
|
"url",
|
|
2250
2244
|
"tel",
|
|
2251
2245
|
"password"
|
|
2252
|
-
].includes(e.type)),
|
|
2253
|
-
let
|
|
2254
|
-
...
|
|
2255
|
-
onInput:
|
|
2246
|
+
].includes(e.type)), ee = R(() => {
|
|
2247
|
+
let n = {
|
|
2248
|
+
...w.splitAttrs.listeners.value,
|
|
2249
|
+
onInput: j,
|
|
2256
2250
|
onPaste: ne,
|
|
2257
|
-
onChange:
|
|
2258
|
-
onBlur:
|
|
2259
|
-
onFocus:
|
|
2251
|
+
onChange: F,
|
|
2252
|
+
onBlur: I,
|
|
2253
|
+
onFocus: t
|
|
2260
2254
|
};
|
|
2261
|
-
return
|
|
2262
|
-
}),
|
|
2255
|
+
return n.onCompositionstart = n.onCompositionupdate = n.onCompositionend = C, h.value && (n.onKeydown = v, n.onClick = y), e.autogrow && (n.onAnimationend = M), n;
|
|
2256
|
+
}), te = R(() => {
|
|
2263
2257
|
let t = {
|
|
2264
2258
|
tabindex: 0,
|
|
2265
2259
|
"data-autofocus": e.autofocus || void 0,
|
|
2266
2260
|
rows: e.type === "textarea" ? 6 : void 0,
|
|
2267
2261
|
"aria-label": e.label,
|
|
2268
|
-
name:
|
|
2269
|
-
...
|
|
2270
|
-
id:
|
|
2262
|
+
name: p.value,
|
|
2263
|
+
...w.splitAttrs.attributes.value,
|
|
2264
|
+
id: w.targetUid.value,
|
|
2271
2265
|
maxlength: e.maxlength,
|
|
2272
2266
|
disabled: e.disable,
|
|
2273
2267
|
readonly: e.readonly
|
|
2274
2268
|
};
|
|
2275
|
-
return
|
|
2269
|
+
return T.value || (t.type = e.type), e.autogrow && (t.rows = 1), t;
|
|
2276
2270
|
});
|
|
2277
2271
|
Z(() => e.type, () => {
|
|
2278
|
-
|
|
2272
|
+
f.value && (f.value.value = e.modelValue);
|
|
2279
2273
|
}), Z(() => e.modelValue, (t) => {
|
|
2280
|
-
if (
|
|
2281
|
-
if (
|
|
2282
|
-
|
|
2283
|
-
} else
|
|
2284
|
-
e.autogrow && G(
|
|
2274
|
+
if (u !== null && (re(), c = !1, l = !1, delete o.value), h.value) {
|
|
2275
|
+
if (l && (l = !1, String(t) === s)) return;
|
|
2276
|
+
_(t);
|
|
2277
|
+
} else m.value !== t && (m.value = t, e.type === "number" && Object.hasOwn(o, "value") && (c ? c = !1 : delete o.value), e.modelModifiers?.trim === !0 && Object.hasOwn(o, "value") && (typeof o.value != "string" || o.value.trim() !== t) && delete o.value);
|
|
2278
|
+
e.autogrow && G(P);
|
|
2285
2279
|
}), Z(() => e.autogrow, (e) => {
|
|
2286
|
-
e ? G(
|
|
2280
|
+
e ? G(P) : f.value !== null && r.rows > 0 && (f.value.style.height = "auto");
|
|
2287
2281
|
}), Z(() => e.dense, () => {
|
|
2288
|
-
e.autogrow && G(
|
|
2282
|
+
e.autogrow && G(P);
|
|
2289
2283
|
});
|
|
2290
|
-
function te() {
|
|
2291
|
-
let e = document.activeElement;
|
|
2292
|
-
d.value !== null && d.value !== e && (e === null || e.id !== S.targetUid.value) && d.value.focus({ preventScroll: !0 });
|
|
2293
|
-
}
|
|
2294
2284
|
function D() {
|
|
2295
|
-
|
|
2285
|
+
let e = document.activeElement;
|
|
2286
|
+
f.value !== null && f.value !== e && (e === null || e.id !== w.targetUid.value) && f.value.focus({ preventScroll: !0 });
|
|
2296
2287
|
}
|
|
2297
2288
|
function O() {
|
|
2298
|
-
|
|
2299
|
-
let e = document.activeElement;
|
|
2300
|
-
e !== null && S.rootRef.value.contains(e) && e.blur();
|
|
2289
|
+
Qe(D);
|
|
2301
2290
|
}
|
|
2302
2291
|
function k() {
|
|
2303
|
-
|
|
2292
|
+
$e(D);
|
|
2293
|
+
let e = document.activeElement;
|
|
2294
|
+
e !== null && w.rootRef.value.contains(e) && e.blur();
|
|
2295
|
+
}
|
|
2296
|
+
function A() {
|
|
2297
|
+
f.value?.select();
|
|
2304
2298
|
}
|
|
2305
|
-
function ne(
|
|
2306
|
-
if (
|
|
2307
|
-
let e =
|
|
2308
|
-
|
|
2299
|
+
function ne(t) {
|
|
2300
|
+
if (h.value && e.reverseFillMask !== !0) {
|
|
2301
|
+
let e = t.target;
|
|
2302
|
+
g(e, e.selectionStart, e.selectionEnd);
|
|
2309
2303
|
}
|
|
2310
|
-
|
|
2304
|
+
n("paste", t);
|
|
2311
2305
|
}
|
|
2312
|
-
function
|
|
2313
|
-
if (!
|
|
2306
|
+
function j(t) {
|
|
2307
|
+
if (!t || !t.target) return;
|
|
2314
2308
|
if (e.type === "file") {
|
|
2315
|
-
|
|
2309
|
+
n("update:modelValue", t.target.files);
|
|
2316
2310
|
return;
|
|
2317
2311
|
}
|
|
2318
|
-
let r =
|
|
2319
|
-
if (
|
|
2320
|
-
|
|
2312
|
+
let r = t.target.value;
|
|
2313
|
+
if (t.target.qComposing) {
|
|
2314
|
+
o.value = r;
|
|
2321
2315
|
return;
|
|
2322
2316
|
}
|
|
2323
|
-
if (
|
|
2324
|
-
else if (e.modelModifiers?.trim === !0 && (
|
|
2325
|
-
let { selectionStart: e, selectionEnd:
|
|
2326
|
-
e !== void 0 &&
|
|
2327
|
-
|
|
2317
|
+
if (h.value) _(r, !1, t.inputType);
|
|
2318
|
+
else if (e.modelModifiers?.trim === !0 && (o.value = r), N(r), E.value && t.target === document.activeElement) {
|
|
2319
|
+
let { selectionStart: e, selectionEnd: n } = t.target;
|
|
2320
|
+
e !== void 0 && n !== void 0 && G(() => {
|
|
2321
|
+
t.target === document.activeElement && r.indexOf(t.target.value) === 0 && t.target.setSelectionRange(e, n);
|
|
2328
2322
|
});
|
|
2329
2323
|
}
|
|
2330
|
-
e.autogrow &&
|
|
2324
|
+
e.autogrow && P();
|
|
2331
2325
|
}
|
|
2332
|
-
function
|
|
2333
|
-
|
|
2326
|
+
function M(e) {
|
|
2327
|
+
n("animationend", e), P();
|
|
2334
2328
|
}
|
|
2335
|
-
function
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
})),
|
|
2340
|
-
}, e.type === "number" && (
|
|
2329
|
+
function N(t, r) {
|
|
2330
|
+
d = () => {
|
|
2331
|
+
u = null, e.type !== "number" && (e.modelModifiers?.trim !== !0 || h.value) && Object.hasOwn(o, "value") && delete o.value, e.modelValue !== t && s !== t && (s = t, r === !0 && (l = !0), n("update:modelValue", t), G(() => {
|
|
2332
|
+
s === t && (s = NaN);
|
|
2333
|
+
})), d = void 0;
|
|
2334
|
+
}, e.type === "number" && (c = !0, o.value = t), e.debounce === void 0 ? d() : (u !== null && clearTimeout(u), o.value = t, u = setTimeout(d, e.debounce));
|
|
2341
2335
|
}
|
|
2342
|
-
function
|
|
2343
|
-
|
|
2336
|
+
function re() {
|
|
2337
|
+
u !== null && (clearTimeout(u), u = null), d = void 0;
|
|
2344
2338
|
}
|
|
2345
|
-
function
|
|
2346
|
-
|
|
2339
|
+
function ie() {
|
|
2340
|
+
re(), c = !1, l = !1, delete o.value;
|
|
2347
2341
|
}
|
|
2348
|
-
function
|
|
2342
|
+
function P() {
|
|
2349
2343
|
requestAnimationFrame(() => {
|
|
2350
|
-
let e =
|
|
2344
|
+
let e = f.value;
|
|
2351
2345
|
if (e !== null) {
|
|
2352
|
-
let t = e.parentNode.style, { scrollTop: n } = e, { overflowY: r, maxHeight:
|
|
2353
|
-
o && (e.style.overflowY = "hidden"), t.marginBottom = e.scrollHeight - 1 + "px", e.style.height = "1px", e.style.height = e.scrollHeight + "px", o && (e.style.overflowY = Number.parseInt(
|
|
2346
|
+
let t = e.parentNode.style, { scrollTop: n } = e, { overflowY: r, maxHeight: i } = a.platform.is.firefox ? {} : window.getComputedStyle(e), o = r !== void 0 && r !== "scroll";
|
|
2347
|
+
o && (e.style.overflowY = "hidden"), t.marginBottom = e.scrollHeight - 1 + "px", e.style.height = "1px", e.style.height = e.scrollHeight + "px", o && (e.style.overflowY = Number.parseInt(i, 10) < e.scrollHeight ? "auto" : "hidden"), t.marginBottom = "", e.scrollTop = n;
|
|
2354
2348
|
}
|
|
2355
2349
|
});
|
|
2356
2350
|
}
|
|
2357
|
-
function
|
|
2358
|
-
|
|
2351
|
+
function F(e) {
|
|
2352
|
+
C(e), u !== null && (clearTimeout(u), u = null), d?.(), n("change", e.target.value);
|
|
2359
2353
|
}
|
|
2360
|
-
function
|
|
2361
|
-
|
|
2362
|
-
|
|
2354
|
+
function I(n) {
|
|
2355
|
+
n !== void 0 && t(n), u !== null && (clearTimeout(u), u = null), d?.(), c = !1, l = !1, delete o.value, e.type !== "file" && setTimeout(() => {
|
|
2356
|
+
f.value !== null && (f.value.value = m.value === void 0 ? "" : m.value);
|
|
2363
2357
|
}, 0);
|
|
2364
2358
|
}
|
|
2365
|
-
function
|
|
2366
|
-
return Object.hasOwn(
|
|
2359
|
+
function L() {
|
|
2360
|
+
return Object.hasOwn(o, "value") ? o.value : m.value === void 0 ? "" : m.value;
|
|
2367
2361
|
}
|
|
2368
2362
|
K(() => {
|
|
2369
|
-
|
|
2363
|
+
I();
|
|
2370
2364
|
}), q(() => {
|
|
2371
|
-
e.autogrow &&
|
|
2372
|
-
}), Object.assign(
|
|
2373
|
-
innerValue:
|
|
2374
|
-
fieldClass:
|
|
2375
|
-
hasShadow:
|
|
2376
|
-
inputRef:
|
|
2377
|
-
emitValue:
|
|
2378
|
-
onClear:
|
|
2379
|
-
hasValue:
|
|
2380
|
-
floatingLabel:
|
|
2381
|
-
getControl: () => W(
|
|
2382
|
-
ref:
|
|
2365
|
+
e.autogrow && P();
|
|
2366
|
+
}), Object.assign(w, {
|
|
2367
|
+
innerValue: m,
|
|
2368
|
+
fieldClass: R(() => `q-${T.value ? "textarea" : "input"}` + (e.autogrow ? " q-textarea--autogrow" : "")),
|
|
2369
|
+
hasShadow: R(() => e.type !== "file" && typeof e.shadowText == "string" && e.shadowText.length !== 0),
|
|
2370
|
+
inputRef: f,
|
|
2371
|
+
emitValue: N,
|
|
2372
|
+
onClear: ie,
|
|
2373
|
+
hasValue: x,
|
|
2374
|
+
floatingLabel: R(() => x.value && (e.type !== "number" || Number.isFinite(Number(m.value))) || tr(e.displayValue)),
|
|
2375
|
+
getControl: () => W(T.value ? "textarea" : "input", {
|
|
2376
|
+
ref: f,
|
|
2383
2377
|
class: ["q-field__native q-placeholder", e.inputClass],
|
|
2384
2378
|
style: e.inputStyle,
|
|
2379
|
+
...te.value,
|
|
2385
2380
|
...ee.value,
|
|
2386
|
-
...
|
|
2387
|
-
...e.type === "file" ? y.value : { value: ie() }
|
|
2381
|
+
...e.type === "file" ? b.value : { value: L() }
|
|
2388
2382
|
}),
|
|
2389
|
-
getShadowControl: () => W("div", { class: "q-field__native q-field__shadow absolute-bottom no-pointer-events" + (
|
|
2383
|
+
getShadowControl: () => W("div", { class: "q-field__native q-field__shadow absolute-bottom no-pointer-events" + (T.value ? "" : " text-no-wrap") }, [W("span", { class: "invisible" }, L()), W("span", e.shadowText)])
|
|
2390
2384
|
});
|
|
2391
|
-
let
|
|
2392
|
-
return Object.assign(
|
|
2393
|
-
focus:
|
|
2394
|
-
blur:
|
|
2395
|
-
select:
|
|
2396
|
-
getNativeElement: () =>
|
|
2397
|
-
}),
|
|
2385
|
+
let ae = or(w);
|
|
2386
|
+
return Object.assign(i, {
|
|
2387
|
+
focus: O,
|
|
2388
|
+
blur: k,
|
|
2389
|
+
select: A,
|
|
2390
|
+
getNativeElement: () => f.value
|
|
2391
|
+
}), S(i, "nativeEl", () => f.value), ae;
|
|
2398
2392
|
}
|
|
2399
2393
|
});
|
|
2400
2394
|
//#endregion
|
|
2401
2395
|
//#region lib/components/inputs/VnInput.vue?vue&type=i18n&index=0&lang.i18n
|
|
2402
|
-
function
|
|
2396
|
+
function Tr(e) {
|
|
2403
2397
|
let t = e;
|
|
2404
2398
|
t.__i18n = t.__i18n || [], t.__i18n.push({
|
|
2405
2399
|
locale: "",
|
|
@@ -2521,9 +2515,9 @@ function Sr(e) {
|
|
|
2521
2515
|
}
|
|
2522
2516
|
//#endregion
|
|
2523
2517
|
//#region lib/components/inputs/VnInput.vue
|
|
2524
|
-
var
|
|
2518
|
+
var Er = {
|
|
2525
2519
|
__name: "VnInput",
|
|
2526
|
-
props: /*@__PURE__*/
|
|
2520
|
+
props: /*@__PURE__*/ me({
|
|
2527
2521
|
isOutlined: {
|
|
2528
2522
|
type: Boolean,
|
|
2529
2523
|
default: !1
|
|
@@ -2551,33 +2545,37 @@ var Cr = {
|
|
|
2551
2545
|
uppercase: {
|
|
2552
2546
|
type: Boolean,
|
|
2553
2547
|
default: !1
|
|
2548
|
+
},
|
|
2549
|
+
clearOnHover: {
|
|
2550
|
+
type: Boolean,
|
|
2551
|
+
default: !1
|
|
2554
2552
|
}
|
|
2555
2553
|
}, {
|
|
2556
2554
|
modelValue: { default: null },
|
|
2557
2555
|
modelModifiers: {}
|
|
2558
2556
|
}),
|
|
2559
|
-
emits: /*@__PURE__*/
|
|
2557
|
+
emits: /*@__PURE__*/ me(["remove"], ["update:modelValue"]),
|
|
2560
2558
|
setup(e, { expose: t, emit: n }) {
|
|
2561
|
-
let r =
|
|
2559
|
+
let r = Te(), { isRequired: i, requiredFieldRule: a } = I(r), { t: o } = Ae(), s = n, c = e, l = Ee(e, "modelValue"), u = [
|
|
2562
2560
|
"number",
|
|
2563
2561
|
"search",
|
|
2564
2562
|
"tel",
|
|
2565
2563
|
"url",
|
|
2566
2564
|
"password"
|
|
2567
|
-
],
|
|
2565
|
+
], d = (e) => {
|
|
2568
2566
|
let t = e;
|
|
2569
2567
|
c.emptyToNull && t === "" && (t = null), l.value = t;
|
|
2570
|
-
},
|
|
2568
|
+
}, f = Y(null), p = Y(!1), m = R(() => c.isOutlined ? {
|
|
2571
2569
|
dense: !0,
|
|
2572
2570
|
outlined: !0,
|
|
2573
2571
|
rounded: !0
|
|
2574
|
-
} : {}),
|
|
2575
|
-
|
|
2576
|
-
},
|
|
2572
|
+
} : {}), h = (e) => {
|
|
2573
|
+
f.value?.focus(e);
|
|
2574
|
+
}, g = (e) => {
|
|
2577
2575
|
G(() => {
|
|
2578
|
-
let t = e.target ||
|
|
2576
|
+
let t = e.target || f.value?.$el?.querySelector("input"), n = e.target.type || t?.getAttribute("type");
|
|
2579
2577
|
if (n !== "email") {
|
|
2580
|
-
if (!
|
|
2578
|
+
if (!u.includes(n)) {
|
|
2581
2579
|
if (t?.setSelectionRange) {
|
|
2582
2580
|
let e = t.value?.length ?? 0;
|
|
2583
2581
|
t.setSelectionRange(e, e);
|
|
@@ -2589,10 +2587,10 @@ var Cr = {
|
|
|
2589
2587
|
});
|
|
2590
2588
|
};
|
|
2591
2589
|
t({
|
|
2592
|
-
focus:
|
|
2593
|
-
vnInputRef:
|
|
2590
|
+
focus: h,
|
|
2591
|
+
vnInputRef: f
|
|
2594
2592
|
});
|
|
2595
|
-
let
|
|
2593
|
+
let _ = R(() => [
|
|
2596
2594
|
a,
|
|
2597
2595
|
...r.rules ?? [],
|
|
2598
2596
|
(e) => {
|
|
@@ -2601,92 +2599,92 @@ var Cr = {
|
|
|
2601
2599
|
let { min: n, max: i } = r, a = n === void 0 ? void 0 : Number(n), s = i === void 0 ? void 0 : Number(i);
|
|
2602
2600
|
return a !== void 0 && a >= 0 && Math.floor(e) < a ? o("inputMin", { value: a }) : s !== void 0 && s > 0 && Math.floor(e) > s ? o("inputMax", { value: s }) : !0;
|
|
2603
2601
|
}
|
|
2604
|
-
]),
|
|
2605
|
-
e.key !== "Backspace" && c.insertable && e.key.match(/[0-9]/) &&
|
|
2606
|
-
},
|
|
2602
|
+
]), v = (e) => {
|
|
2603
|
+
e.key !== "Backspace" && c.insertable && e.key.match(/[0-9]/) && y(e);
|
|
2604
|
+
}, y = (e) => {
|
|
2607
2605
|
e.preventDefault();
|
|
2608
2606
|
let t = e.target, n = t.selectionStart, r = c.maxlength, i = l.value;
|
|
2609
2607
|
i ||= e.key;
|
|
2610
2608
|
let a = e.key;
|
|
2611
|
-
a && !isNaN(a) && n < r &&
|
|
2609
|
+
a && !isNaN(a) && n < r && d(i.substring(0, n) + a + i.substring(n + 1)), G(() => {
|
|
2612
2610
|
t.setSelectionRange(n + 1, n + 1);
|
|
2613
2611
|
});
|
|
2614
|
-
},
|
|
2612
|
+
}, b = () => {
|
|
2615
2613
|
l.value = l.value?.toUpperCase() || "";
|
|
2616
2614
|
};
|
|
2617
2615
|
return q(() => {
|
|
2618
|
-
r.autofocus &&
|
|
2619
|
-
}), (t, n) => (J(),
|
|
2620
|
-
onMouseover: n[1] ||= (e) =>
|
|
2621
|
-
onMouseleave: n[2] ||= (e) =>
|
|
2622
|
-
}, [H(
|
|
2616
|
+
r.autofocus && h();
|
|
2617
|
+
}), (t, n) => (J(), ue("div", {
|
|
2618
|
+
onMouseover: n[1] ||= (e) => p.value = !0,
|
|
2619
|
+
onMouseleave: n[2] ||= (e) => p.value = !1
|
|
2620
|
+
}, [H(wr, he({
|
|
2623
2621
|
ref_key: "vnInputRef",
|
|
2624
|
-
ref:
|
|
2622
|
+
ref: f,
|
|
2625
2623
|
"model-value": X(l),
|
|
2626
|
-
"onUpdate:modelValue":
|
|
2624
|
+
"onUpdate:modelValue": d
|
|
2627
2625
|
}, {
|
|
2628
2626
|
...X(r),
|
|
2629
|
-
...
|
|
2627
|
+
...m.value
|
|
2630
2628
|
}, {
|
|
2631
2629
|
class: { required: X(i) },
|
|
2632
|
-
onKeydown:
|
|
2633
|
-
onFocus:
|
|
2630
|
+
onKeydown: v,
|
|
2631
|
+
onFocus: g,
|
|
2634
2632
|
clearable: !1,
|
|
2635
|
-
rules:
|
|
2633
|
+
rules: _.value,
|
|
2636
2634
|
"lazy-rules": !0,
|
|
2637
2635
|
"hide-bottom-space": "",
|
|
2638
2636
|
"data-cy": (X(r)["data-cy"] ?? X(r).label) + "_input",
|
|
2639
2637
|
dense: ""
|
|
2640
|
-
}),
|
|
2638
|
+
}), de({
|
|
2641
2639
|
append: Q(() => [
|
|
2642
|
-
H(
|
|
2640
|
+
Oe(H(M, {
|
|
2643
2641
|
name: "close",
|
|
2644
2642
|
size: "xs",
|
|
2645
2643
|
class: "cursor-pointer",
|
|
2646
|
-
style:
|
|
2644
|
+
style: _e({ visibility: p.value && X(l) && !X(r).disabled && !X(r).readonly && c.clearable ? "visible" : "hidden" }),
|
|
2647
2645
|
onClick: n[0] ||= () => {
|
|
2648
|
-
|
|
2646
|
+
d(null), f.value?.focus(), s("remove");
|
|
2649
2647
|
}
|
|
2650
2648
|
}, {
|
|
2651
|
-
default: Q(() => [H(
|
|
2652
|
-
default: Q(() => [
|
|
2649
|
+
default: Q(() => [H(Ln, null, {
|
|
2650
|
+
default: Q(() => [fe(we(X(o)("Remove")), 1)]),
|
|
2653
2651
|
_: 1
|
|
2654
2652
|
})]),
|
|
2655
2653
|
_: 1
|
|
2656
|
-
}, 8, ["style"]),
|
|
2657
|
-
!X(r).disabled && !X(r).readonly && c.uppercase ? (J(),
|
|
2654
|
+
}, 8, ["style"]), [[De, !e.clearOnHover || p.value]]),
|
|
2655
|
+
!X(r).disabled && !X(r).readonly && c.uppercase ? (J(), z(M, {
|
|
2658
2656
|
key: 0,
|
|
2659
2657
|
name: "match_case",
|
|
2660
2658
|
size: "xs",
|
|
2661
|
-
onClick:
|
|
2659
|
+
onClick: b,
|
|
2662
2660
|
class: "uppercase-icon"
|
|
2663
2661
|
}, {
|
|
2664
|
-
default: Q(() => [H(
|
|
2665
|
-
default: Q(() => [
|
|
2662
|
+
default: Q(() => [H(Ln, null, {
|
|
2663
|
+
default: Q(() => [fe(we(X(o)("Convert to uppercase")), 1)]),
|
|
2666
2664
|
_: 1
|
|
2667
2665
|
})]),
|
|
2668
2666
|
_: 1
|
|
2669
|
-
})) :
|
|
2670
|
-
t.$slots.append && !X(r).disabled ?
|
|
2671
|
-
e.info ? (J(),
|
|
2667
|
+
})) : B("", !0),
|
|
2668
|
+
t.$slots.append && !X(r).disabled ? Ce(t.$slots, "append", {}, void 0, void 0, 1) : B("", !0),
|
|
2669
|
+
e.info ? (J(), z(M, {
|
|
2672
2670
|
key: 2,
|
|
2673
2671
|
name: "info"
|
|
2674
2672
|
}, {
|
|
2675
|
-
default: Q(() => [H(
|
|
2676
|
-
default: Q(() => [
|
|
2673
|
+
default: Q(() => [H(Ln, { "max-width": "350px" }, {
|
|
2674
|
+
default: Q(() => [fe(we(e.info), 1)]),
|
|
2677
2675
|
_: 1
|
|
2678
2676
|
})]),
|
|
2679
2677
|
_: 1
|
|
2680
|
-
})) :
|
|
2678
|
+
})) : B("", !0)
|
|
2681
2679
|
]),
|
|
2682
2680
|
_: 2
|
|
2683
2681
|
}, [t.$slots.hint ? {
|
|
2684
2682
|
name: "hint",
|
|
2685
|
-
fn: Q(() => [
|
|
2683
|
+
fn: Q(() => [Ce(t.$slots, "hint")]),
|
|
2686
2684
|
key: "0"
|
|
2687
2685
|
} : void 0, t.$slots.prepend ? {
|
|
2688
2686
|
name: "prepend",
|
|
2689
|
-
fn: Q(() => [
|
|
2687
|
+
fn: Q(() => [Ce(t.$slots, "prepend")]),
|
|
2690
2688
|
key: "1"
|
|
2691
2689
|
} : void 0]), 1040, [
|
|
2692
2690
|
"model-value",
|
|
@@ -2696,10 +2694,10 @@ var Cr = {
|
|
|
2696
2694
|
])], 32));
|
|
2697
2695
|
}
|
|
2698
2696
|
};
|
|
2699
|
-
typeof
|
|
2697
|
+
typeof Tr == "function" && Tr(Er);
|
|
2700
2698
|
//#endregion
|
|
2701
2699
|
//#region lib/components/models/VnFetch.vue
|
|
2702
|
-
var
|
|
2700
|
+
var Dr = {
|
|
2703
2701
|
__name: "VnFetch",
|
|
2704
2702
|
props: {
|
|
2705
2703
|
autoLoad: {
|
|
@@ -2744,20 +2742,20 @@ var wr = {
|
|
|
2744
2742
|
...r.filter
|
|
2745
2743
|
};
|
|
2746
2744
|
r.where && !e.where && (t.where = r.where), r.sortBy && (t.order = r.sortBy), r.limit && (t.limit = r.limit);
|
|
2747
|
-
let { data: n } = await
|
|
2745
|
+
let { data: n } = await je.get(r.url, { params: {
|
|
2748
2746
|
filter: JSON.stringify(t),
|
|
2749
2747
|
...r.params
|
|
2750
2748
|
} });
|
|
2751
2749
|
return i("onFetch", n), n;
|
|
2752
2750
|
} catch {}
|
|
2753
2751
|
}
|
|
2754
|
-
return (e, t) => (J(),
|
|
2752
|
+
return (e, t) => (J(), ue("template"));
|
|
2755
2753
|
}
|
|
2756
|
-
},
|
|
2754
|
+
}, Or = C({
|
|
2757
2755
|
name: "QInnerLoading",
|
|
2758
2756
|
props: {
|
|
2759
|
-
...
|
|
2760
|
-
...
|
|
2757
|
+
...Fe,
|
|
2758
|
+
...We,
|
|
2761
2759
|
showing: Boolean,
|
|
2762
2760
|
color: String,
|
|
2763
2761
|
size: {
|
|
@@ -2773,29 +2771,29 @@ var wr = {
|
|
|
2773
2771
|
]
|
|
2774
2772
|
},
|
|
2775
2773
|
setup(e, { slots: t }) {
|
|
2776
|
-
let n =
|
|
2777
|
-
function
|
|
2778
|
-
let t = [W(
|
|
2774
|
+
let n = Ie(e, U().proxy.$q), { transitionProps: r, transitionStyle: i } = Ge(e), a = R(() => "q-inner-loading q--avoid-card-border absolute-full column flex-center" + (n.value ? " q-inner-loading--dark" : "")), s = R(() => "q-inner-loading__label" + (e.labelClass === void 0 ? "" : ` ${e.labelClass}`));
|
|
2775
|
+
function c() {
|
|
2776
|
+
let t = [W(o, {
|
|
2779
2777
|
size: e.size,
|
|
2780
2778
|
color: e.color
|
|
2781
2779
|
})];
|
|
2782
2780
|
return e.label !== void 0 && t.push(W("div", {
|
|
2783
|
-
class:
|
|
2781
|
+
class: s.value,
|
|
2784
2782
|
style: e.labelStyle
|
|
2785
2783
|
}, [e.label])), t;
|
|
2786
2784
|
}
|
|
2787
|
-
function
|
|
2785
|
+
function l() {
|
|
2788
2786
|
return e.showing ? W("div", {
|
|
2789
2787
|
class: a.value,
|
|
2790
2788
|
style: i.value
|
|
2791
|
-
}, t.default === void 0 ?
|
|
2789
|
+
}, t.default === void 0 ? c() : t.default()) : null;
|
|
2792
2790
|
}
|
|
2793
|
-
return () => W(
|
|
2791
|
+
return () => W(le, r.value, l);
|
|
2794
2792
|
}
|
|
2795
2793
|
});
|
|
2796
2794
|
//#endregion
|
|
2797
|
-
//#region
|
|
2798
|
-
function
|
|
2795
|
+
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/form/QForm.js
|
|
2796
|
+
function kr(e) {
|
|
2799
2797
|
let t = e.validate();
|
|
2800
2798
|
return typeof t.then == "function" ? t.then((t) => ({
|
|
2801
2799
|
valid: t,
|
|
@@ -2809,7 +2807,7 @@ function Er(e) {
|
|
|
2809
2807
|
comp: e
|
|
2810
2808
|
});
|
|
2811
2809
|
}
|
|
2812
|
-
var
|
|
2810
|
+
var Ar = C({
|
|
2813
2811
|
name: "QForm",
|
|
2814
2812
|
props: {
|
|
2815
2813
|
autofocus: Boolean,
|
|
@@ -2823,79 +2821,79 @@ var Dr = l({
|
|
|
2823
2821
|
"validationSuccess",
|
|
2824
2822
|
"validationError"
|
|
2825
2823
|
],
|
|
2826
|
-
setup(
|
|
2827
|
-
let
|
|
2828
|
-
function
|
|
2829
|
-
let r = typeof t == "boolean" ? t : !
|
|
2830
|
-
|
|
2824
|
+
setup(e, { slots: t, emit: n }) {
|
|
2825
|
+
let r = U(), i = Y(null), a = 0, o = [];
|
|
2826
|
+
function s(t) {
|
|
2827
|
+
let r = typeof t == "boolean" ? t : !e.noErrorFocus, i = ++a, s = (e, t) => {
|
|
2828
|
+
n(`validation${e ? "Success" : "Error"}`, t);
|
|
2831
2829
|
};
|
|
2832
|
-
return (
|
|
2830
|
+
return (e.greedy ? Promise.all(o.map(kr)).then((e) => e.filter((e) => !e.valid)) : o.reduce((e, t) => e.then(() => kr(t)).then((e) => {
|
|
2833
2831
|
if (!e.valid) throw e;
|
|
2834
|
-
}), Promise.resolve()).catch((e) => [e])).then((
|
|
2835
|
-
if (
|
|
2836
|
-
if (
|
|
2837
|
-
let { comp:
|
|
2838
|
-
if (
|
|
2839
|
-
let
|
|
2840
|
-
|
|
2832
|
+
}), Promise.resolve()).catch((e) => [e])).then((e) => {
|
|
2833
|
+
if (e === void 0 || e.length === 0) return i === a && s(!0), !0;
|
|
2834
|
+
if (i === a) {
|
|
2835
|
+
let { comp: t, err: n } = e[0];
|
|
2836
|
+
if (n !== void 0 && console.error(n), s(!1, t), r) {
|
|
2837
|
+
let t = e.find(({ comp: e }) => typeof e.focus == "function" && !k(e.$));
|
|
2838
|
+
t !== void 0 && t.comp.focus();
|
|
2841
2839
|
}
|
|
2842
2840
|
}
|
|
2843
2841
|
return !1;
|
|
2844
2842
|
});
|
|
2845
2843
|
}
|
|
2846
|
-
function
|
|
2847
|
-
|
|
2844
|
+
function c() {
|
|
2845
|
+
a++, o.forEach((e) => {
|
|
2848
2846
|
typeof e.resetValidation == "function" && e.resetValidation();
|
|
2849
2847
|
});
|
|
2850
2848
|
}
|
|
2851
|
-
function
|
|
2852
|
-
|
|
2853
|
-
let r =
|
|
2854
|
-
|
|
2855
|
-
r ===
|
|
2849
|
+
function u(t) {
|
|
2850
|
+
t !== void 0 && b(t);
|
|
2851
|
+
let r = a + 1;
|
|
2852
|
+
s().then((i) => {
|
|
2853
|
+
r === a && i && (e.onSubmit === void 0 ? t?.target !== void 0 && typeof t.target.submit == "function" && t.target.submit() : n("submit", t));
|
|
2856
2854
|
});
|
|
2857
2855
|
}
|
|
2858
|
-
function
|
|
2859
|
-
|
|
2860
|
-
|
|
2856
|
+
function d(t) {
|
|
2857
|
+
t !== void 0 && b(t), n("reset"), G(() => {
|
|
2858
|
+
c(), e.autofocus && !e.noResetFocus && f();
|
|
2861
2859
|
});
|
|
2862
2860
|
}
|
|
2863
|
-
function
|
|
2864
|
-
|
|
2865
|
-
|
|
2861
|
+
function f() {
|
|
2862
|
+
Qe(() => {
|
|
2863
|
+
i.value !== null && (i.value.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || i.value.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || i.value.querySelector("[autofocus], [data-autofocus]") || Array.prototype.find.call(i.value.querySelectorAll("[tabindex]"), (e) => e.tabIndex !== -1))?.focus({ preventScroll: !0 });
|
|
2866
2864
|
});
|
|
2867
2865
|
}
|
|
2868
|
-
|
|
2866
|
+
Se(_, {
|
|
2869
2867
|
bindComponent(e) {
|
|
2870
|
-
|
|
2868
|
+
o.push(e);
|
|
2871
2869
|
},
|
|
2872
2870
|
unbindComponent(e) {
|
|
2873
|
-
let t =
|
|
2874
|
-
t !== -1 &&
|
|
2871
|
+
let t = o.indexOf(e);
|
|
2872
|
+
t !== -1 && o.splice(t, 1);
|
|
2875
2873
|
}
|
|
2876
2874
|
});
|
|
2877
|
-
let
|
|
2878
|
-
return
|
|
2879
|
-
|
|
2880
|
-
}),
|
|
2881
|
-
|
|
2875
|
+
let p = !1;
|
|
2876
|
+
return be(() => {
|
|
2877
|
+
p = !0;
|
|
2878
|
+
}), ve(() => {
|
|
2879
|
+
p && e.autofocus && f();
|
|
2882
2880
|
}), q(() => {
|
|
2883
|
-
|
|
2884
|
-
}), Object.assign(
|
|
2885
|
-
validate:
|
|
2886
|
-
resetValidation:
|
|
2887
|
-
submit:
|
|
2888
|
-
reset:
|
|
2889
|
-
focus:
|
|
2890
|
-
getValidationComponents: () =>
|
|
2881
|
+
e.autofocus && f();
|
|
2882
|
+
}), Object.assign(r.proxy, {
|
|
2883
|
+
validate: s,
|
|
2884
|
+
resetValidation: c,
|
|
2885
|
+
submit: u,
|
|
2886
|
+
reset: d,
|
|
2887
|
+
focus: f,
|
|
2888
|
+
getValidationComponents: () => o
|
|
2891
2889
|
}), () => W("form", {
|
|
2892
2890
|
class: "q-form",
|
|
2893
|
-
ref:
|
|
2894
|
-
onSubmit:
|
|
2895
|
-
onReset:
|
|
2896
|
-
},
|
|
2891
|
+
ref: i,
|
|
2892
|
+
onSubmit: u,
|
|
2893
|
+
onReset: d
|
|
2894
|
+
}, l(t.default));
|
|
2897
2895
|
}
|
|
2898
|
-
}),
|
|
2896
|
+
}), jr = C({
|
|
2899
2897
|
name: "QBtnGroup",
|
|
2900
2898
|
props: {
|
|
2901
2899
|
unelevated: Boolean,
|
|
@@ -2909,7 +2907,7 @@ var Dr = l({
|
|
|
2909
2907
|
spread: Boolean
|
|
2910
2908
|
},
|
|
2911
2909
|
setup(e, { slots: t }) {
|
|
2912
|
-
let n =
|
|
2910
|
+
let n = R(() => {
|
|
2913
2911
|
let t = [
|
|
2914
2912
|
"unelevated",
|
|
2915
2913
|
"outline",
|
|
@@ -2922,12 +2920,41 @@ var Dr = l({
|
|
|
2922
2920
|
].filter((t) => e[t]).map((e) => `q-btn-group--${e}`).join(" ");
|
|
2923
2921
|
return `q-btn-group row no-wrap${t.length === 0 ? "" : " " + t}` + (e.spread ? " q-btn-group--spread" : " inline");
|
|
2924
2922
|
});
|
|
2925
|
-
return () => W("div", { class: n.value },
|
|
2923
|
+
return () => W("div", { class: n.value }, l(t.default));
|
|
2926
2924
|
}
|
|
2927
|
-
})
|
|
2925
|
+
});
|
|
2926
|
+
//#endregion
|
|
2927
|
+
//#region node_modules/.pnpm/vue-router@5.3.1_@vue+compiler-sfc@3.5.40_pinia@2.3.1_typescript@6.0.3_vue@3.5.40_types_283630f483506a805a78c2ac78846f2d/node_modules/vue-router/dist/devtools-CN5uWJaH.js
|
|
2928
|
+
function Mr(e, t, n) {
|
|
2929
|
+
let r = e.value;
|
|
2930
|
+
if (!r) {
|
|
2931
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2932
|
+
let e = t === "updateGuards" ? "onBeforeRouteUpdate" : "onBeforeRouteLeave";
|
|
2933
|
+
O.VUE_ROUTER_R0020({ fn: e });
|
|
2934
|
+
}
|
|
2935
|
+
return;
|
|
2936
|
+
}
|
|
2937
|
+
let i = r, a = () => {
|
|
2938
|
+
i[t].delete(n);
|
|
2939
|
+
};
|
|
2940
|
+
xe(a), be(a), ve(() => {
|
|
2941
|
+
let r = e.value;
|
|
2942
|
+
process.env.NODE_ENV !== "production" && !r && O.VUE_ROUTER_R0021(), r && (i = r), i[t].add(n);
|
|
2943
|
+
}), i[t].add(n);
|
|
2944
|
+
}
|
|
2945
|
+
function Nr(e) {
|
|
2946
|
+
if (process.env.NODE_ENV !== "production" && !U()) {
|
|
2947
|
+
O.VUE_ROUTER_R0022({ fn: "onBeforeRouteLeave" });
|
|
2948
|
+
return;
|
|
2949
|
+
}
|
|
2950
|
+
Mr(pe(D, {}), "leaveGuards", e);
|
|
2951
|
+
}
|
|
2952
|
+
//#endregion
|
|
2953
|
+
//#region lib/components/models/VnForm.vue
|
|
2954
|
+
var Pr = {
|
|
2928
2955
|
class: "column items-center full-width",
|
|
2929
2956
|
style: { position: "relative" }
|
|
2930
|
-
},
|
|
2957
|
+
}, Fr = ["textContent"], Ir = /*#__PURE__*/ Gt({
|
|
2931
2958
|
__name: "VnForm",
|
|
2932
2959
|
props: {
|
|
2933
2960
|
url: {
|
|
@@ -2973,7 +3000,7 @@ var Dr = l({
|
|
|
2973
3000
|
},
|
|
2974
3001
|
mapper: {
|
|
2975
3002
|
type: Function,
|
|
2976
|
-
default:
|
|
3003
|
+
default: oe
|
|
2977
3004
|
},
|
|
2978
3005
|
clearStoreOnUnmount: {
|
|
2979
3006
|
type: Boolean,
|
|
@@ -3036,13 +3063,13 @@ var Dr = l({
|
|
|
3036
3063
|
"submit"
|
|
3037
3064
|
],
|
|
3038
3065
|
setup(e, { expose: t, emit: n }) {
|
|
3039
|
-
let { push: r } =
|
|
3066
|
+
let { push: r } = ie(), i = ne(), a = N(), o = ae(), { t: s } = Ae(), { validate: c, validations: l } = E(), { notify: u } = re(), d = T(), f = Y(null), p = e, m = n, h = R(() => p.model ?? `formModel_${d?.meta?.title ?? d.name}`).value, g = Y(!1), _ = te(h), v = Y(!1), y = Y(!1), b = Y(!p.observeFormChanges), x = {}, S = R(() => a.get(h)), C = Y(), w = R(() => f.value?.$el), D = R(() => ({
|
|
3040
3067
|
save: {
|
|
3041
3068
|
dataCy: "saveDefaultBtn",
|
|
3042
3069
|
color: "primary",
|
|
3043
3070
|
icon: "save",
|
|
3044
3071
|
label: "globals.save",
|
|
3045
|
-
click: async (e) =>
|
|
3072
|
+
click: async (e) => O(e),
|
|
3046
3073
|
type: "submit"
|
|
3047
3074
|
},
|
|
3048
3075
|
reset: {
|
|
@@ -3050,80 +3077,80 @@ var Dr = l({
|
|
|
3050
3077
|
color: "primary",
|
|
3051
3078
|
icon: "restart_alt",
|
|
3052
3079
|
label: "globals.reset",
|
|
3053
|
-
click: () =>
|
|
3080
|
+
click: () => I()
|
|
3054
3081
|
},
|
|
3055
3082
|
...p.defaultButtons
|
|
3056
|
-
})),
|
|
3057
|
-
await f.value.validate() && await
|
|
3083
|
+
})), O = async (e) => {
|
|
3084
|
+
await f.value.validate() && await P(e);
|
|
3058
3085
|
};
|
|
3059
|
-
function
|
|
3060
|
-
|
|
3086
|
+
function k() {
|
|
3087
|
+
x = p.formUrl ? JSON.parse(d?.query[p.formUrl] ?? "{}") : void 0;
|
|
3061
3088
|
}
|
|
3062
3089
|
q(async () => {
|
|
3063
|
-
!
|
|
3090
|
+
!_.store.url && p.url && _.setOptions({
|
|
3064
3091
|
url: p.url,
|
|
3065
3092
|
filter: p.filter
|
|
3066
|
-
}),
|
|
3093
|
+
}), k(), G(() => g.value = !0), p.formInitialData && x && a.set(h, {
|
|
3067
3094
|
...p.formInitialData,
|
|
3068
|
-
...
|
|
3069
|
-
}), p.formInitialData || (p.autoLoad && p.url ? await
|
|
3070
|
-
t && (
|
|
3095
|
+
...x
|
|
3096
|
+
}), p.formInitialData || (p.autoLoad && p.url ? await M() : _.store.data && oe("onFetch", { val: _.store.data })), p.observeFormChanges && Z(() => C.value, (e, t) => {
|
|
3097
|
+
t && (b.value = !y.value && JSON.stringify(e) !== JSON.stringify(S.value), y.value = !1);
|
|
3071
3098
|
}, { deep: !0 });
|
|
3072
|
-
}), p.url || Z(() =>
|
|
3073
|
-
e && (
|
|
3099
|
+
}), p.url || Z(() => _.store.data, (e) => oe("onFetch", { val: e })), Z(S, async (e) => {
|
|
3100
|
+
e && (C.value = JSON.parse(JSON.stringify(e))), await G(), w.value && ee(w.value);
|
|
3074
3101
|
}, { immediate: !0 }), Z(() => [p.url, p.filter], async () => {
|
|
3075
|
-
a.set(
|
|
3102
|
+
a.set(h, null), I(), await M();
|
|
3076
3103
|
}), p.formInitialData && Z(() => p.formInitialData, (e) => {
|
|
3077
|
-
e && a.set(
|
|
3104
|
+
e && a.set(h, {
|
|
3078
3105
|
...e,
|
|
3079
|
-
...
|
|
3106
|
+
...x
|
|
3080
3107
|
});
|
|
3081
|
-
}),
|
|
3082
|
-
|
|
3083
|
-
component:
|
|
3108
|
+
}), Nr((e, t, n) => {
|
|
3109
|
+
b.value && p.observeFormChanges ? i.dialog({
|
|
3110
|
+
component: Yt,
|
|
3084
3111
|
componentProps: {
|
|
3085
3112
|
title: s("globals.unsavedPopup.title"),
|
|
3086
3113
|
message: s("globals.unsavedPopup.subtitle"),
|
|
3087
3114
|
promise: () => n()
|
|
3088
3115
|
}
|
|
3089
3116
|
}) : n();
|
|
3090
|
-
}),
|
|
3091
|
-
if (
|
|
3092
|
-
p.clearStoreOnUnmount && a.unset(
|
|
3117
|
+
}), xe(() => {
|
|
3118
|
+
if (b.value) return a.set(h, S.value);
|
|
3119
|
+
p.clearStoreOnUnmount && a.unset(h);
|
|
3093
3120
|
});
|
|
3094
|
-
async function
|
|
3121
|
+
async function M() {
|
|
3095
3122
|
try {
|
|
3096
3123
|
let e;
|
|
3097
|
-
e = p.model ? (await
|
|
3124
|
+
e = p.model ? (await _.addFilter({ filter: p.filter })).response?.data : (await je.get(p.url, { params: { filter: JSON.stringify(p.filter) } })).data, Array.isArray(e) && (e = e[0] ?? {}), oe("onFetch", { val: e });
|
|
3098
3125
|
} catch (e) {
|
|
3099
|
-
throw a.set(
|
|
3126
|
+
throw a.set(h, {}), e;
|
|
3100
3127
|
}
|
|
3101
3128
|
}
|
|
3102
|
-
async function
|
|
3103
|
-
if (p.observeFormChanges && !
|
|
3104
|
-
|
|
3129
|
+
async function P() {
|
|
3130
|
+
if (p.observeFormChanges && !b.value) return u("globals.noChanges", "negative");
|
|
3131
|
+
v.value = !0;
|
|
3105
3132
|
try {
|
|
3106
|
-
|
|
3107
|
-
let e = p.urlCreate ? "post" : "patch", t = e === "post" ? p.mapper(
|
|
3108
|
-
p.urlCreate && u("globals.dataCreated", "positive"),
|
|
3109
|
-
val:
|
|
3133
|
+
C.value = le(C.value);
|
|
3134
|
+
let e = p.urlCreate ? "post" : "patch", t = e === "post" ? p.mapper(C.value) : p.mapper(C.value, S.value), n = p.urlCreate || p.urlUpdate || p.url || _.store.url, r = await Promise.resolve(p.saveFn ? p.saveFn(t) : je[p.customMethod ?? e](n, t));
|
|
3135
|
+
p.urlCreate && u("globals.dataCreated", "positive"), b.value = !1, oe("onDataSaved", {
|
|
3136
|
+
val: C.value,
|
|
3110
3137
|
res: r?.data,
|
|
3111
|
-
old:
|
|
3138
|
+
old: S.value,
|
|
3112
3139
|
rawRes: r
|
|
3113
|
-
}), p.reload && await
|
|
3140
|
+
}), p.reload && await _.fetch({});
|
|
3114
3141
|
} catch (e) {
|
|
3115
|
-
throw
|
|
3142
|
+
throw m("onDataSaveFail", C.value), e;
|
|
3116
3143
|
} finally {
|
|
3117
|
-
|
|
3144
|
+
v.value = !1;
|
|
3118
3145
|
}
|
|
3119
3146
|
}
|
|
3120
|
-
async function
|
|
3121
|
-
await
|
|
3147
|
+
async function F() {
|
|
3148
|
+
await P(!0), r({ path: p.goTo });
|
|
3122
3149
|
}
|
|
3123
|
-
function
|
|
3124
|
-
|
|
3150
|
+
function I() {
|
|
3151
|
+
C.value = JSON.parse(JSON.stringify(S.value)), oe("onFetch", { val: S.value }), p.observeFormChanges && (b.value = !1, y.value = !0);
|
|
3125
3152
|
}
|
|
3126
|
-
function
|
|
3153
|
+
function L(e, t, n) {
|
|
3127
3154
|
t(() => {
|
|
3128
3155
|
let { options: t, filterFn: r } = n;
|
|
3129
3156
|
t.value = r(t, e);
|
|
@@ -3131,21 +3158,21 @@ var Dr = l({
|
|
|
3131
3158
|
e.setOptionIndex(-1), e.moveOptionSelection(1, !0);
|
|
3132
3159
|
});
|
|
3133
3160
|
}
|
|
3134
|
-
async function
|
|
3161
|
+
async function oe(e, { val: t, res: n, old: r, rawRes: i } = {
|
|
3135
3162
|
val: null,
|
|
3136
3163
|
res: null,
|
|
3137
3164
|
old: null,
|
|
3138
3165
|
rawRes: null
|
|
3139
3166
|
}) {
|
|
3140
|
-
a.set(
|
|
3167
|
+
a.set(h, t), p.url || (_.store.data = t), m(e, a.get(h), n, r, C, i), w.value && ee(w.value);
|
|
3141
3168
|
}
|
|
3142
|
-
function
|
|
3169
|
+
function le(e) {
|
|
3143
3170
|
if (!p.defaultTrim) return e;
|
|
3144
3171
|
for (let t in e) typeof e[t] == "string" && (e[t] = e[t].trim());
|
|
3145
3172
|
return e;
|
|
3146
3173
|
}
|
|
3147
|
-
async function
|
|
3148
|
-
if (e.key === "Enter" && !p.preventSubmit &&
|
|
3174
|
+
async function de(e) {
|
|
3175
|
+
if (e.key === "Enter" && !p.preventSubmit && b.value) {
|
|
3149
3176
|
let t = e.target;
|
|
3150
3177
|
if (t.type == "textarea" && e.shiftKey) {
|
|
3151
3178
|
let { selectionStart: e, selectionEnd: n } = t;
|
|
@@ -3156,73 +3183,73 @@ var Dr = l({
|
|
|
3156
3183
|
}
|
|
3157
3184
|
}
|
|
3158
3185
|
return t({
|
|
3159
|
-
submitForm:
|
|
3186
|
+
submitForm: O,
|
|
3160
3187
|
myForm: f,
|
|
3161
|
-
save:
|
|
3162
|
-
isLoading:
|
|
3163
|
-
hasChanges:
|
|
3164
|
-
reset:
|
|
3165
|
-
fetch:
|
|
3166
|
-
formData:
|
|
3167
|
-
}), (t, n) => (J(),
|
|
3168
|
-
showing:
|
|
3188
|
+
save: P,
|
|
3189
|
+
isLoading: v,
|
|
3190
|
+
hasChanges: b,
|
|
3191
|
+
reset: I,
|
|
3192
|
+
fetch: M,
|
|
3193
|
+
formData: C
|
|
3194
|
+
}), (t, n) => (J(), ue(se, null, [V("div", Pr, [H(Or, {
|
|
3195
|
+
showing: v.value,
|
|
3169
3196
|
label: X(s)("globals.pleaseWait"),
|
|
3170
3197
|
color: "primary",
|
|
3171
3198
|
style: { "min-width": "100%" }
|
|
3172
3199
|
}, {
|
|
3173
|
-
default: Q(() => [H(X(
|
|
3200
|
+
default: Q(() => [H(X(on), { size: "md" })]),
|
|
3174
3201
|
_: 1
|
|
3175
|
-
}, 8, ["showing", "label"]),
|
|
3202
|
+
}, 8, ["showing", "label"]), C.value ? (J(), z(Ar, he({
|
|
3176
3203
|
key: 0,
|
|
3177
3204
|
id: "vnForm"
|
|
3178
3205
|
}, t.$attrs, {
|
|
3179
3206
|
ref_key: "myForm",
|
|
3180
3207
|
ref: f,
|
|
3181
|
-
onSubmit:
|
|
3182
|
-
onKeyup:
|
|
3183
|
-
onReset:
|
|
3208
|
+
onSubmit: ke(P, ["prevent"]),
|
|
3209
|
+
onKeyup: ke(de, ["prevent"]),
|
|
3210
|
+
onReset: I,
|
|
3184
3211
|
class: ["full-width", [e.paddingClass]],
|
|
3185
3212
|
style: {
|
|
3186
3213
|
maxWidth: e.maxWidth || "none",
|
|
3187
3214
|
width: "100%"
|
|
3188
3215
|
}
|
|
3189
3216
|
}), {
|
|
3190
|
-
default: Q(() => [H(
|
|
3191
|
-
default: Q(() => [e.showTitle ? (J(),
|
|
3217
|
+
default: Q(() => [H(Le, { class: "q-pa-none" }, {
|
|
3218
|
+
default: Q(() => [e.showTitle ? (J(), z(Ne, {
|
|
3192
3219
|
key: 0,
|
|
3193
3220
|
class: "vn-basic-data__header q-px-none q-pb-none"
|
|
3194
3221
|
}, {
|
|
3195
|
-
default: Q(() => [
|
|
3222
|
+
default: Q(() => [V("span", {
|
|
3196
3223
|
class: "text-h6",
|
|
3197
|
-
textContent:
|
|
3198
|
-
}, null, 8,
|
|
3224
|
+
textContent: we(e.title || t.$t("globals.pageTitles.basicData"))
|
|
3225
|
+
}, null, 8, Fr)]),
|
|
3199
3226
|
_: 1
|
|
3200
|
-
})) :
|
|
3201
|
-
data:
|
|
3227
|
+
})) : B("", !0), C.value ? Ce(t.$slots, "form", {
|
|
3228
|
+
data: C.value,
|
|
3202
3229
|
validate: X(c),
|
|
3203
3230
|
validations: X(l)(),
|
|
3204
|
-
filter:
|
|
3205
|
-
}, void 0, !0, 1) : (J(),
|
|
3231
|
+
filter: L
|
|
3232
|
+
}, void 0, !0, 1) : (J(), z(X(an), { key: 2 }))]),
|
|
3206
3233
|
_: 3
|
|
3207
3234
|
})]),
|
|
3208
3235
|
_: 3
|
|
3209
|
-
}, 16, ["class", "style"])) :
|
|
3236
|
+
}, 16, ["class", "style"])) : B("", !0)]), p.defaultActions && X(o)?.isSubToolbarShown() && g.value ? (J(), z(ce, {
|
|
3210
3237
|
key: 0,
|
|
3211
3238
|
to: "#st-actions"
|
|
3212
|
-
}, [H(
|
|
3239
|
+
}, [H(jr, {
|
|
3213
3240
|
push: "",
|
|
3214
3241
|
class: "q-gutter-x-sm"
|
|
3215
3242
|
}, {
|
|
3216
3243
|
default: Q(() => [
|
|
3217
|
-
|
|
3218
|
-
H(
|
|
3219
|
-
label: X(
|
|
3220
|
-
color:
|
|
3221
|
-
icon:
|
|
3244
|
+
Ce(t.$slots, "moreActions", {}, void 0, !0),
|
|
3245
|
+
H(A, {
|
|
3246
|
+
label: X(j)(D.value.reset.label),
|
|
3247
|
+
color: D.value.reset.color,
|
|
3248
|
+
icon: D.value.reset.icon,
|
|
3222
3249
|
flat: "",
|
|
3223
|
-
onClick:
|
|
3224
|
-
disable: !
|
|
3225
|
-
title: X(s)(
|
|
3250
|
+
onClick: D.value.reset.click,
|
|
3251
|
+
disable: !b.value,
|
|
3252
|
+
title: X(s)(D.value.reset.label),
|
|
3226
3253
|
"data-cy": "resetDefaultBtn"
|
|
3227
3254
|
}, null, 8, [
|
|
3228
3255
|
"label",
|
|
@@ -3232,14 +3259,14 @@ var Dr = l({
|
|
|
3232
3259
|
"disable",
|
|
3233
3260
|
"title"
|
|
3234
3261
|
]),
|
|
3235
|
-
H(
|
|
3262
|
+
H(A, {
|
|
3236
3263
|
"data-cy": "saveDefaultBtn",
|
|
3237
|
-
label: X(
|
|
3264
|
+
label: X(j)("globals.save"),
|
|
3238
3265
|
color: "primary",
|
|
3239
3266
|
icon: "save",
|
|
3240
|
-
onClick:
|
|
3241
|
-
disable: !
|
|
3242
|
-
title: X(s)(
|
|
3267
|
+
onClick: D.value.save.click,
|
|
3268
|
+
disable: !b.value,
|
|
3269
|
+
title: X(s)(D.value.save.label),
|
|
3243
3270
|
flat: !!p.goTo
|
|
3244
3271
|
}, null, 8, [
|
|
3245
3272
|
"label",
|
|
@@ -3248,31 +3275,31 @@ var Dr = l({
|
|
|
3248
3275
|
"title",
|
|
3249
3276
|
"flat"
|
|
3250
3277
|
]),
|
|
3251
|
-
p.goTo ? (J(),
|
|
3278
|
+
p.goTo ? (J(), z(A, {
|
|
3252
3279
|
key: 0,
|
|
3253
3280
|
"data-cy": "saveAndContinueDefaultBtn",
|
|
3254
|
-
onClick:
|
|
3255
|
-
label: X(
|
|
3281
|
+
onClick: F,
|
|
3282
|
+
label: X(j)("globals.saveAndContinue") + " " + X(s)("globals." + p.goTo.split("/").pop()),
|
|
3256
3283
|
title: X(s)("globals.saveAndContinue") + " " + X(s)("globals." + p.goTo.split("/").pop()),
|
|
3257
|
-
disable: !
|
|
3284
|
+
disable: !b.value,
|
|
3258
3285
|
color: "primary",
|
|
3259
3286
|
icon: "save"
|
|
3260
3287
|
}, null, 8, [
|
|
3261
3288
|
"label",
|
|
3262
3289
|
"title",
|
|
3263
3290
|
"disable"
|
|
3264
|
-
])) :
|
|
3291
|
+
])) : B("", !0)
|
|
3265
3292
|
]),
|
|
3266
3293
|
_: 3
|
|
3267
|
-
})])) :
|
|
3268
|
-
}
|
|
3269
|
-
}, [["__scopeId", "data-v-ffc76361"]]),
|
|
3270
|
-
VnConfirm: () =>
|
|
3271
|
-
VnFetch: () =>
|
|
3272
|
-
VnForm: () =>
|
|
3273
|
-
VnInput: () =>
|
|
3274
|
-
VnSkeletonForm: () =>
|
|
3275
|
-
VnSpinner: () =>
|
|
3294
|
+
})])) : B("", !0)], 64));
|
|
3295
|
+
}
|
|
3296
|
+
}, [["__scopeId", "data-v-ffc76361"]]), Lr = /* @__PURE__ */ w({
|
|
3297
|
+
VnConfirm: () => Yt,
|
|
3298
|
+
VnFetch: () => Dr,
|
|
3299
|
+
VnForm: () => Ir,
|
|
3300
|
+
VnInput: () => Er,
|
|
3301
|
+
VnSkeletonForm: () => an,
|
|
3302
|
+
VnSpinner: () => on
|
|
3276
3303
|
});
|
|
3277
3304
|
//#endregion
|
|
3278
|
-
export {
|
|
3305
|
+
export { on as a, Er as i, Ir as n, an as o, Dr as r, Yt as s, Lr as t };
|