rtcpts 0.0.4 → 0.0.5
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/j-q-confirm-dialog/index.d.ts +20 -1
- package/dist/index.css +1 -1
- package/dist/rtcpt.cjs.js +1 -1
- package/dist/rtcpt.es.js +561 -557
- package/package.json +1 -1
package/dist/rtcpt.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as U, ref as h, computed as C, resolveComponent as N, createBlock as Y, openBlock as m, createElementBlock as T, createCommentVNode as $, Fragment as ee, renderList as ne, normalizeClass as V, createElementVNode as y, renderSlot as O, createVNode as
|
|
1
|
+
import { defineComponent as U, ref as h, computed as C, resolveComponent as N, createBlock as Y, openBlock as m, createElementBlock as T, createCommentVNode as $, Fragment as ee, renderList as ne, normalizeClass as V, createElementVNode as y, renderSlot as O, createVNode as z, inject as Ve, toDisplayString as w, watch as G, withCtx as I, normalizeStyle as H, getCurrentInstance as Et, resolveDirective as tt, withDirectives as oe, vShow as ie, createTextVNode as W, Suspense as $t, resolveDynamicComponent as Mt, mergeProps as Te, toHandlers as Yt, createApp as Vt, nextTick as de, onMounted as he, onUnmounted as Qt, h as Pt, createSlots as we, withModifiers as _, reactive as De, Transition as qt, normalizeProps as ue, guardReactiveProps as ge, onBeforeUnmount as Ut, withKeys as Bt, isRef as gt } from "vue";
|
|
2
2
|
import { QIcon as le, copyToClipboard as Zt, QBtn as re, QCardActions as Rt, QCardSection as ve, QCard as Se, QPopupProxy as Ae, ClosePopup as Dt, QInnerLoading as At, QDialog as Nt, QInput as Pe, QTooltip as Le, QItemSection as Ct, QItem as jt, QList as Wt, QMenu as xt, QTree as Gt, QField as ke, QDate as zt, date as R, QSelect as nt, QOptionGroup as Ht, QSpinner as Ft, QPagination as Jt, QTd as Kt, QTh as Xt, QTable as _t, useDialogPluginComponent as mt, setCssVar as Ce } from "quasar";
|
|
3
3
|
import { _ as B } from "./charts-DFQ978tO.js";
|
|
4
4
|
import { i as Ls, a as ks, b as Os, c as Es, d as $s, e as Ys } from "./charts-DFQ978tO.js";
|
|
@@ -31,16 +31,16 @@ const en = U({
|
|
|
31
31
|
await Zt(e.text), t.value = !0, n && clearTimeout(n), n = setTimeout(() => {
|
|
32
32
|
t.value = !1, n = null;
|
|
33
33
|
}, e.revertDelay);
|
|
34
|
-
} catch (
|
|
35
|
-
console.error("复制失败:",
|
|
34
|
+
} catch (i) {
|
|
35
|
+
console.error("复制失败:", i);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
|
-
function tn(e, t, n, l, r,
|
|
42
|
-
const
|
|
43
|
-
return m(), Y(
|
|
41
|
+
function tn(e, t, n, l, r, s) {
|
|
42
|
+
const i = N("q-icon");
|
|
43
|
+
return m(), Y(i, {
|
|
44
44
|
name: e.iconName,
|
|
45
45
|
size: "16px",
|
|
46
46
|
color: e.iconColor,
|
|
@@ -86,19 +86,19 @@ const nn = /* @__PURE__ */ B(en, [["render", tn]]), ln = U({
|
|
|
86
86
|
});
|
|
87
87
|
return {
|
|
88
88
|
innerValue: n,
|
|
89
|
-
getKey: (o,
|
|
90
|
-
updateItem: (o,
|
|
89
|
+
getKey: (o, a) => o.id || o.key || a,
|
|
90
|
+
updateItem: (o, a) => {
|
|
91
91
|
const c = [...n.value];
|
|
92
|
-
typeof
|
|
92
|
+
typeof a == "object" && !Array.isArray(a) && typeof c[o] == "object" && !Array.isArray(c[o]) ? c[o] = { ...c[o], ...a } : c[o] = a, n.value = c;
|
|
93
93
|
},
|
|
94
94
|
addItem: (o) => {
|
|
95
|
-
const
|
|
96
|
-
|
|
95
|
+
const a = [...n.value];
|
|
96
|
+
a.splice(o, 0, JSON.parse(JSON.stringify(e.defaultNewItem))), n.value = a;
|
|
97
97
|
},
|
|
98
98
|
removeItem: (o) => {
|
|
99
99
|
if (n.value.length <= e.minItems) return;
|
|
100
|
-
const
|
|
101
|
-
|
|
100
|
+
const a = [...n.value];
|
|
101
|
+
a.splice(o, 1), n.value = a;
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
}
|
|
@@ -109,19 +109,19 @@ const nn = /* @__PURE__ */ B(en, [["render", tn]]), ln = U({
|
|
|
109
109
|
key: 0,
|
|
110
110
|
class: "list-footer-actions"
|
|
111
111
|
};
|
|
112
|
-
function rn(e, t, n, l, r,
|
|
113
|
-
const
|
|
112
|
+
function rn(e, t, n, l, r, s) {
|
|
113
|
+
const i = N("q-btn");
|
|
114
114
|
return m(), T("div", null, [
|
|
115
|
-
(m(!0), T(ee, null, ne(e.innerValue, (o,
|
|
116
|
-
key: e.getKey(o,
|
|
115
|
+
(m(!0), T(ee, null, ne(e.innerValue, (o, a) => (m(), T("div", {
|
|
116
|
+
key: e.getKey(o, a),
|
|
117
117
|
class: V(["q-mb-md list-item-row relative-position", { "compact-item": e.actionMode === "compact" }])
|
|
118
118
|
}, [
|
|
119
119
|
y("div", on, [
|
|
120
120
|
O(e.$slots, "item-content", {
|
|
121
121
|
item: o,
|
|
122
|
-
index:
|
|
122
|
+
index: a,
|
|
123
123
|
updateItem: e.updateItem,
|
|
124
|
-
isLast:
|
|
124
|
+
isLast: a === e.innerValue.length - 1,
|
|
125
125
|
addItem: e.addItem,
|
|
126
126
|
removeItem: e.removeItem,
|
|
127
127
|
canAdd: e.innerValue.length < e.maxItems,
|
|
@@ -130,14 +130,14 @@ function rn(e, t, n, l, r, a) {
|
|
|
130
130
|
}, void 0, !0)
|
|
131
131
|
]),
|
|
132
132
|
e.actionMode === "compact" && e.innerValue.length > e.minItems && e.showRemoveButton ? (m(), T("div", an, [
|
|
133
|
-
|
|
133
|
+
z(i, {
|
|
134
134
|
icon: "close",
|
|
135
135
|
flat: "",
|
|
136
136
|
round: "",
|
|
137
137
|
dense: "",
|
|
138
138
|
color: "grey",
|
|
139
139
|
size: "sm",
|
|
140
|
-
onClick: (c) => e.removeItem(
|
|
140
|
+
onClick: (c) => e.removeItem(a)
|
|
141
141
|
}, null, 8, ["onClick"])
|
|
142
142
|
])) : $("", !0)
|
|
143
143
|
], 2))), 128)),
|
|
@@ -147,7 +147,7 @@ function rn(e, t, n, l, r, a) {
|
|
|
147
147
|
canAdd: e.innerValue.length < e.maxItems && e.showAddButton,
|
|
148
148
|
nextIndex: e.innerValue.length
|
|
149
149
|
}, () => [
|
|
150
|
-
e.innerValue.length < e.maxItems && e.showAddButton ? (m(), Y(
|
|
150
|
+
e.innerValue.length < e.maxItems && e.showAddButton ? (m(), Y(i, {
|
|
151
151
|
key: 0,
|
|
152
152
|
label: "添加新项",
|
|
153
153
|
icon: "add",
|
|
@@ -202,17 +202,17 @@ const os = /* @__PURE__ */ B(ln, [["render", rn], ["__scopeId", "data-v-22406c09
|
|
|
202
202
|
},
|
|
203
203
|
slots: Object,
|
|
204
204
|
setup(e) {
|
|
205
|
-
const t = Ve(lt, h([])), n = Ve(ot, h([])), l = C(() => e.pagePermissionId && e.pagePermissionId.length > 0 ? e.pagePermissionId : n.value || []), r = C(() => e.pageActionPermissionId && e.pageActionPermissionId.length > 0 ? e.pageActionPermissionId : t.value || []),
|
|
205
|
+
const t = Ve(lt, h([])), n = Ve(ot, h([])), l = C(() => e.pagePermissionId && e.pagePermissionId.length > 0 ? e.pagePermissionId : n.value || []), r = C(() => e.pageActionPermissionId && e.pageActionPermissionId.length > 0 ? e.pageActionPermissionId : t.value || []), s = C(() => {
|
|
206
206
|
const o = e.code;
|
|
207
207
|
return o ? l.value.includes(o) || r.value.includes(o) : !0;
|
|
208
|
-
}),
|
|
208
|
+
}), i = C(() => !!(s.value || !e.rmDom));
|
|
209
209
|
return {
|
|
210
|
-
hasPermission:
|
|
211
|
-
canRender:
|
|
210
|
+
hasPermission: s,
|
|
211
|
+
canRender: i
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
214
|
}), dn = { key: 0 };
|
|
215
|
-
function cn(e, t, n, l, r,
|
|
215
|
+
function cn(e, t, n, l, r, s) {
|
|
216
216
|
return e.hasPermission ? O(e.$slots, "default", { key: 0 }) : (m(), T(ee, { key: 1 }, [
|
|
217
217
|
e.rmDom ? $("", !0) : (m(), T("span", dn, w(e.defaultContent), 1))
|
|
218
218
|
], 64));
|
|
@@ -313,7 +313,7 @@ const In = U({
|
|
|
313
313
|
emits: ["update:modelValue", "saved", "confirm"],
|
|
314
314
|
slots: Object,
|
|
315
315
|
setup(e, { emit: t }) {
|
|
316
|
-
const { t: n } = K(), l = h(null), r = h(e.modelValue),
|
|
316
|
+
const { t: n } = K(), l = h(null), r = h(e.modelValue), s = h(null), i = h(!1), o = (M) => {
|
|
317
317
|
r.value = M;
|
|
318
318
|
};
|
|
319
319
|
G(
|
|
@@ -323,22 +323,22 @@ const In = U({
|
|
|
323
323
|
},
|
|
324
324
|
{ immediate: !0 }
|
|
325
325
|
);
|
|
326
|
-
const
|
|
326
|
+
const a = () => {
|
|
327
327
|
r.value = e.modelValue ?? "";
|
|
328
328
|
}, c = async () => {
|
|
329
329
|
var d;
|
|
330
330
|
let M = !0;
|
|
331
|
-
if (
|
|
331
|
+
if (s.value && typeof s.value.validate == "function" && (M = s.value.validate()), !!M) {
|
|
332
332
|
if (r.value !== e.modelValue) {
|
|
333
|
-
|
|
333
|
+
i.value = !0;
|
|
334
334
|
const p = (A = {}) => {
|
|
335
|
-
var E,
|
|
335
|
+
var E, j, D;
|
|
336
336
|
const { success: v = !0, close: Q = v, resetValue: q = !v } = A;
|
|
337
|
-
if (
|
|
337
|
+
if (i.value = !1, v) {
|
|
338
338
|
g();
|
|
339
339
|
return;
|
|
340
340
|
}
|
|
341
|
-
q && (r.value = e.modelValue ?? "", (
|
|
341
|
+
q && (r.value = e.modelValue ?? "", (j = (E = s.value) == null ? void 0 : E.resetValidation) == null || j.call(E)), Q && ((D = l.value) == null || D.hide());
|
|
342
342
|
};
|
|
343
343
|
t("confirm", r.value, p);
|
|
344
344
|
return;
|
|
@@ -346,45 +346,45 @@ const In = U({
|
|
|
346
346
|
(d = l.value) == null || d.hide();
|
|
347
347
|
}
|
|
348
348
|
}, u = (M) => {
|
|
349
|
-
|
|
349
|
+
s.value = M;
|
|
350
350
|
}, g = () => {
|
|
351
351
|
var M;
|
|
352
352
|
t("update:modelValue", r.value), t("saved", r.value), (M = l.value) == null || M.hide();
|
|
353
353
|
};
|
|
354
354
|
return {
|
|
355
355
|
t: n,
|
|
356
|
-
saveLoading:
|
|
356
|
+
saveLoading: i,
|
|
357
357
|
popupRef: l,
|
|
358
358
|
tempValue: r,
|
|
359
359
|
updateTempValue: o,
|
|
360
|
-
handleProxyShow:
|
|
360
|
+
handleProxyShow: a,
|
|
361
361
|
handleSave: c,
|
|
362
|
-
editorRef:
|
|
362
|
+
editorRef: s,
|
|
363
363
|
setEditorRef: u
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
366
|
}), Dn = { class: "row items-end no-wrap jc-editable-proxy" }, An = { class: "q-pr-sm display-value" };
|
|
367
|
-
function Nn(e, t, n, l, r,
|
|
368
|
-
const
|
|
367
|
+
function Nn(e, t, n, l, r, s) {
|
|
368
|
+
const i = N("q-card-section"), o = N("q-btn"), a = N("q-card-actions"), c = N("q-card"), u = N("q-popup-proxy"), g = N("q-icon"), M = N("j-c-permission");
|
|
369
369
|
return m(), T("div", Dn, [
|
|
370
370
|
y("div", An, [
|
|
371
371
|
O(e.$slots, "display", {}, () => [
|
|
372
372
|
y("span", null, w(e.modelValue), 1)
|
|
373
373
|
], !0)
|
|
374
374
|
]),
|
|
375
|
-
|
|
375
|
+
z(M, {
|
|
376
376
|
code: e.code,
|
|
377
377
|
"rm-dom": !0
|
|
378
378
|
}, {
|
|
379
379
|
default: I(() => [
|
|
380
|
-
|
|
380
|
+
z(g, {
|
|
381
381
|
name: "app:edit",
|
|
382
382
|
class: "cursor-pointer",
|
|
383
383
|
size: e.iconSize,
|
|
384
384
|
style: H(e.iconStyle)
|
|
385
385
|
}, {
|
|
386
386
|
default: I(() => [
|
|
387
|
-
|
|
387
|
+
z(u, {
|
|
388
388
|
ref: "popupRef",
|
|
389
389
|
"transition-show": "jump-down",
|
|
390
390
|
"transition-hide": "jump-up",
|
|
@@ -392,11 +392,11 @@ function Nn(e, t, n, l, r, a) {
|
|
|
392
392
|
onShow: e.handleProxyShow
|
|
393
393
|
}, {
|
|
394
394
|
default: I(() => [
|
|
395
|
-
|
|
395
|
+
z(c, {
|
|
396
396
|
style: H({ width: e.popupWidth })
|
|
397
397
|
}, {
|
|
398
398
|
default: I(() => [
|
|
399
|
-
|
|
399
|
+
z(i, { class: "q-pt-md q-px-md q-pb-none" }, {
|
|
400
400
|
default: I(() => [
|
|
401
401
|
O(e.$slots, "editor", {
|
|
402
402
|
tempValue: e.tempValue,
|
|
@@ -406,12 +406,12 @@ function Nn(e, t, n, l, r, a) {
|
|
|
406
406
|
]),
|
|
407
407
|
_: 3
|
|
408
408
|
}),
|
|
409
|
-
|
|
409
|
+
z(a, {
|
|
410
410
|
align: "right",
|
|
411
411
|
class: V(["q-pb-md q-px-md", { "q-pt-none": e.required, "q-pt-md": !e.required }])
|
|
412
412
|
}, {
|
|
413
413
|
default: I(() => [
|
|
414
|
-
|
|
414
|
+
z(o, {
|
|
415
415
|
dense: "",
|
|
416
416
|
label: e.t("action.confirm"),
|
|
417
417
|
color: "primary",
|
|
@@ -484,7 +484,7 @@ const as = /* @__PURE__ */ B(In, [["render", Nn], ["__scopeId", "data-v-ab93db6b
|
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
486
|
}), jn = { key: 0 };
|
|
487
|
-
function zn(e, t, n, l, r,
|
|
487
|
+
function zn(e, t, n, l, r, s) {
|
|
488
488
|
return e.hasValue ? O(e.$slots, "default", { key: 0 }) : (m(), T(ee, { key: 1 }, [
|
|
489
489
|
e.rmDom ? $("", !0) : (m(), T("span", jn, w(e.defaultContent), 1))
|
|
490
490
|
], 64));
|
|
@@ -500,13 +500,13 @@ function bn(e) {
|
|
|
500
500
|
if (t[2]) {
|
|
501
501
|
const r = t[2].trim();
|
|
502
502
|
if (r.startsWith("[")) {
|
|
503
|
-
const
|
|
504
|
-
if (
|
|
505
|
-
const o = r.substring(1,
|
|
503
|
+
const s = r.indexOf("]");
|
|
504
|
+
if (s !== -1) {
|
|
505
|
+
const o = r.substring(1, s).split(",").map((c) => c.trim().replace(/^['"](.*)['"]$/, "$1")).filter((c) => c.length > 0);
|
|
506
506
|
l.push(o);
|
|
507
|
-
const
|
|
508
|
-
if (
|
|
509
|
-
const c =
|
|
507
|
+
const a = r.substring(s + 1).trim();
|
|
508
|
+
if (a.startsWith(",")) {
|
|
509
|
+
const c = a.substring(1).split(",").map((u) => {
|
|
510
510
|
const g = u.trim();
|
|
511
511
|
if (g === "true") return !0;
|
|
512
512
|
if (g === "false") return !1;
|
|
@@ -517,12 +517,12 @@ function bn(e) {
|
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
} else
|
|
520
|
-
l = r.split(",").map((
|
|
521
|
-
const
|
|
522
|
-
if (
|
|
523
|
-
if (
|
|
524
|
-
const o = Number(
|
|
525
|
-
return isNaN(o) ?
|
|
520
|
+
l = r.split(",").map((s) => {
|
|
521
|
+
const i = s.trim();
|
|
522
|
+
if (i === "true") return !0;
|
|
523
|
+
if (i === "false") return !1;
|
|
524
|
+
const o = Number(i);
|
|
525
|
+
return isNaN(o) ? i : o;
|
|
526
526
|
});
|
|
527
527
|
}
|
|
528
528
|
return { name: n, args: l };
|
|
@@ -530,23 +530,23 @@ function bn(e) {
|
|
|
530
530
|
return { name: e, args: [] };
|
|
531
531
|
}
|
|
532
532
|
function Tn(e, t, n = [], l) {
|
|
533
|
-
const
|
|
534
|
-
if (!
|
|
533
|
+
const s = st(l)[e];
|
|
534
|
+
if (!s)
|
|
535
535
|
return console.warn(`Rule '${e}' not found in formRules.`), !0;
|
|
536
|
-
let
|
|
537
|
-
if (Array.isArray(
|
|
538
|
-
|
|
539
|
-
else if (typeof
|
|
540
|
-
const o =
|
|
536
|
+
let i = [];
|
|
537
|
+
if (Array.isArray(s))
|
|
538
|
+
i = s;
|
|
539
|
+
else if (typeof s == "function") {
|
|
540
|
+
const o = s(...n);
|
|
541
541
|
if (Array.isArray(o))
|
|
542
|
-
|
|
542
|
+
i = o;
|
|
543
543
|
else
|
|
544
544
|
return console.error(`[JQSelectNewValue] Rule '${e}' function did not return an array of validation functions.`), !0;
|
|
545
545
|
}
|
|
546
|
-
for (const o of
|
|
547
|
-
const
|
|
548
|
-
if (
|
|
549
|
-
return
|
|
546
|
+
for (const o of i) {
|
|
547
|
+
const a = o(t);
|
|
548
|
+
if (a !== !0)
|
|
549
|
+
return a;
|
|
550
550
|
}
|
|
551
551
|
return !0;
|
|
552
552
|
}
|
|
@@ -569,11 +569,11 @@ function st(e) {
|
|
|
569
569
|
percentageRules(t = ["left", "right"]) {
|
|
570
570
|
const n = t.includes("left"), l = t.includes("right"), r = /^(100(?:\.0{1,2})?|\d{1,2}(?:\.\d{1,2})?)$/;
|
|
571
571
|
return [
|
|
572
|
-
(
|
|
573
|
-
const
|
|
574
|
-
if (!r.test(
|
|
572
|
+
(s) => {
|
|
573
|
+
const i = String(s).trim();
|
|
574
|
+
if (!r.test(i))
|
|
575
575
|
return e("messages.formRules.percentageInvalid");
|
|
576
|
-
const o = parseFloat(
|
|
576
|
+
const o = parseFloat(i);
|
|
577
577
|
return !n && o === 0 ? e("messages.formRules.over0") : !l && o === 100 ? e("messages.formRules.less100") : !0;
|
|
578
578
|
}
|
|
579
579
|
];
|
|
@@ -599,22 +599,22 @@ function st(e) {
|
|
|
599
599
|
ip: "1.1.1.1",
|
|
600
600
|
ipPort: "1.1.1.1:8080",
|
|
601
601
|
path: "/test/example"
|
|
602
|
-
},
|
|
603
|
-
const
|
|
604
|
-
if (!
|
|
602
|
+
}, i = [(o) => {
|
|
603
|
+
const a = String(o || "").trim();
|
|
604
|
+
if (!a) return !0;
|
|
605
605
|
let c = "";
|
|
606
606
|
return t.some((g) => {
|
|
607
607
|
switch (g) {
|
|
608
608
|
case "url":
|
|
609
|
-
return c = r.url, l.url.test(
|
|
609
|
+
return c = r.url, l.url.test(a);
|
|
610
610
|
case "domain":
|
|
611
|
-
return c = r.domain, l.domain.test(
|
|
611
|
+
return c = r.domain, l.domain.test(a);
|
|
612
612
|
case "ip":
|
|
613
|
-
return
|
|
613
|
+
return a.includes(":") ? !1 : (c = r.ip, l.ip.test(a));
|
|
614
614
|
case "ip-port":
|
|
615
|
-
return c = r.ipPort, l.ipPort.test(
|
|
615
|
+
return c = r.ipPort, l.ipPort.test(a);
|
|
616
616
|
case "path":
|
|
617
|
-
return c = r.path, l.path.test(
|
|
617
|
+
return c = r.path, l.path.test(a);
|
|
618
618
|
default:
|
|
619
619
|
return !1;
|
|
620
620
|
}
|
|
@@ -622,10 +622,10 @@ function st(e) {
|
|
|
622
622
|
example: c
|
|
623
623
|
});
|
|
624
624
|
}];
|
|
625
|
-
return n &&
|
|
626
|
-
const
|
|
627
|
-
return !
|
|
628
|
-
}),
|
|
625
|
+
return n && i.unshift((o) => {
|
|
626
|
+
const a = Array.isArray(o) && o.length === 0, c = o == null || o === "";
|
|
627
|
+
return !a && !c || e("messages.formRules.required");
|
|
628
|
+
}), i;
|
|
629
629
|
},
|
|
630
630
|
email: [
|
|
631
631
|
(t) => /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/gi.test(t) ? !0 : e("messages.formRules.emailInvalid")
|
|
@@ -637,8 +637,8 @@ function st(e) {
|
|
|
637
637
|
return [
|
|
638
638
|
(l) => {
|
|
639
639
|
l = Number(l);
|
|
640
|
-
const r = Number.isInteger(l),
|
|
641
|
-
return r &&
|
|
640
|
+
const r = Number.isInteger(l), s = l >= t && l <= n;
|
|
641
|
+
return r && s || e("messages.formRules.rangeInt", { min: t, max: n });
|
|
642
642
|
}
|
|
643
643
|
];
|
|
644
644
|
},
|
|
@@ -675,7 +675,7 @@ class wn {
|
|
|
675
675
|
je = t;
|
|
676
676
|
}
|
|
677
677
|
show({ type: t, content: n, position: l, isNotify: r }) {
|
|
678
|
-
const
|
|
678
|
+
const s = Object.assign(hn, {
|
|
679
679
|
message: n,
|
|
680
680
|
position: l ?? "top",
|
|
681
681
|
multiLine: r ?? !1,
|
|
@@ -691,26 +691,26 @@ class wn {
|
|
|
691
691
|
classes: `q-message-style q-message-style--${t}`
|
|
692
692
|
});
|
|
693
693
|
try {
|
|
694
|
-
je != null && je.notify ? je.notify(
|
|
695
|
-
} catch (
|
|
696
|
-
console.log(
|
|
694
|
+
je != null && je.notify ? je.notify(s) : (console.error("[JQMessage] Quasar Notify plugin not available. Make sure rtcptInit has been called."), alert(s.message));
|
|
695
|
+
} catch (i) {
|
|
696
|
+
console.log(i), alert(s.message);
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
700
|
const Qe = new wn();
|
|
701
701
|
function vn(e, t = { size: 5, accept: ["xls", "xlsx"] }) {
|
|
702
|
-
const n = e[0], { size: l, accept: r } = t, { t:
|
|
702
|
+
const n = e[0], { size: l, accept: r } = t, { t: s } = K();
|
|
703
703
|
if (l < n.size / Math.pow(1024, l)) {
|
|
704
704
|
Qe.show({
|
|
705
|
-
content:
|
|
705
|
+
content: s("messages.jQFile.maxFileSizeIs", { max: l }),
|
|
706
706
|
type: "error"
|
|
707
707
|
});
|
|
708
708
|
return;
|
|
709
709
|
}
|
|
710
|
-
let
|
|
711
|
-
if (
|
|
710
|
+
let i = n.name.substring(n.name.lastIndexOf(".")).toLowerCase();
|
|
711
|
+
if (i = i.replace(".", ""), r.indexOf(i) === -1) {
|
|
712
712
|
Qe.show({
|
|
713
|
-
content:
|
|
713
|
+
content: s("messages.jQFile.unsupportFileFormat"),
|
|
714
714
|
type: "error"
|
|
715
715
|
});
|
|
716
716
|
return;
|
|
@@ -751,12 +751,12 @@ const Sn = U({
|
|
|
751
751
|
mounted() {
|
|
752
752
|
},
|
|
753
753
|
setup(e, { emit: t, expose: n }) {
|
|
754
|
-
const l = h(!1), r = h(!1),
|
|
755
|
-
let c = h(
|
|
756
|
-
const g = st(
|
|
754
|
+
const l = h(!1), r = h(!1), s = h(null), i = h(e.showConfirm), o = Et(), { t: a } = K();
|
|
755
|
+
let c = h(a("action.cancel")), u = h(a("action.confirm"));
|
|
756
|
+
const g = st(a), M = vn, d = C(() => ({
|
|
757
757
|
...e.componentBind,
|
|
758
758
|
dialogInstance: {
|
|
759
|
-
open:
|
|
759
|
+
open: j,
|
|
760
760
|
close: D,
|
|
761
761
|
setLoading: k,
|
|
762
762
|
changeCancelText: v,
|
|
@@ -778,40 +778,40 @@ const Sn = U({
|
|
|
778
778
|
}, E = () => {
|
|
779
779
|
var P, J;
|
|
780
780
|
((P = o == null ? void 0 : o.refs) == null ? void 0 : P.dynamicCompRef).handleClickConfirm && ((J = o == null ? void 0 : o.refs) == null ? void 0 : J.dynamicCompRef).handleClickConfirm();
|
|
781
|
-
},
|
|
781
|
+
}, j = () => {
|
|
782
782
|
l.value = !0;
|
|
783
783
|
}, D = () => {
|
|
784
784
|
l.value = !1;
|
|
785
785
|
}, k = (P) => {
|
|
786
786
|
r.value = P;
|
|
787
787
|
}, S = (P) => {
|
|
788
|
-
|
|
788
|
+
i.value = P;
|
|
789
789
|
}, Z = () => {
|
|
790
790
|
e.dialogId && it.destroy(e.dialogId);
|
|
791
791
|
};
|
|
792
|
-
return n({ open:
|
|
792
|
+
return n({ open: j, close: D, setLoading: k, setConfirmVisible: S, changeCancelText: v, changeConfirmText: Q, rules: g }), {
|
|
793
793
|
persistent: A,
|
|
794
|
-
dynamicCompRef:
|
|
794
|
+
dynamicCompRef: s,
|
|
795
795
|
cancelText: c,
|
|
796
796
|
confirmText: u,
|
|
797
797
|
visible: l,
|
|
798
798
|
getDataLoading: r,
|
|
799
799
|
computedComponentBind: d,
|
|
800
800
|
computedDialogWidth: p,
|
|
801
|
-
open:
|
|
801
|
+
open: j,
|
|
802
802
|
close: D,
|
|
803
803
|
destroy: Z,
|
|
804
804
|
handleClickCancel: q,
|
|
805
805
|
handleClickConfirm: E,
|
|
806
|
-
confirmBtnVisible:
|
|
806
|
+
confirmBtnVisible: i,
|
|
807
807
|
setConfirmVisible: S,
|
|
808
808
|
rules: g,
|
|
809
|
-
t:
|
|
809
|
+
t: a
|
|
810
810
|
};
|
|
811
811
|
}
|
|
812
812
|
}), Ln = { class: "loading-mask" }, kn = { class: "dialog-title" }, On = { class: "async-component-loading-mask" };
|
|
813
|
-
function En(e, t, n, l, r,
|
|
814
|
-
const
|
|
813
|
+
function En(e, t, n, l, r, s) {
|
|
814
|
+
const i = N("q-inner-loading"), o = N("q-btn"), a = N("q-card-section"), c = N("q-card"), u = N("q-dialog"), g = tt("close-popup");
|
|
815
815
|
return m(), Y(u, {
|
|
816
816
|
class: V(["j-q-dialog", { "right-panel": e.position === "right" }]),
|
|
817
817
|
modelValue: e.visible,
|
|
@@ -827,13 +827,13 @@ function En(e, t, n, l, r, a) {
|
|
|
827
827
|
"transition-hide": e.position === "right" ? "slide-right" : "jump-up"
|
|
828
828
|
}, {
|
|
829
829
|
default: I(() => [
|
|
830
|
-
|
|
830
|
+
z(c, {
|
|
831
831
|
class: "dialog-main",
|
|
832
832
|
style: H(e.computedDialogWidth)
|
|
833
833
|
}, {
|
|
834
834
|
default: I(() => [
|
|
835
835
|
oe(y("div", Ln, [
|
|
836
|
-
|
|
836
|
+
z(i, {
|
|
837
837
|
showing: e.getDataLoading,
|
|
838
838
|
label: e.t("messages.loading"),
|
|
839
839
|
color: "primary",
|
|
@@ -843,7 +843,7 @@ function En(e, t, n, l, r, a) {
|
|
|
843
843
|
], 512), [
|
|
844
844
|
[ie, e.getDataLoading]
|
|
845
845
|
]),
|
|
846
|
-
e.showHeader ? (m(), Y(
|
|
846
|
+
e.showHeader ? (m(), Y(a, {
|
|
847
847
|
key: 0,
|
|
848
848
|
class: "dialog-header q-pa-none"
|
|
849
849
|
}, {
|
|
@@ -853,7 +853,7 @@ function En(e, t, n, l, r, a) {
|
|
|
853
853
|
W(w(e.title), 1)
|
|
854
854
|
], !0)
|
|
855
855
|
]),
|
|
856
|
-
oe(
|
|
856
|
+
oe(z(o, {
|
|
857
857
|
class: "dialog-close",
|
|
858
858
|
icon: "close",
|
|
859
859
|
dense: "",
|
|
@@ -868,7 +868,7 @@ function En(e, t, n, l, r, a) {
|
|
|
868
868
|
(m(), Y($t, null, {
|
|
869
869
|
default: I(() => [
|
|
870
870
|
y("div", null, [
|
|
871
|
-
|
|
871
|
+
z(a, {
|
|
872
872
|
class: "dialog-body",
|
|
873
873
|
style: H({ "min-height": typeof e.minHeight == "string" ? e.minHeight : `${e.minHeight}px` })
|
|
874
874
|
}, {
|
|
@@ -878,12 +878,12 @@ function En(e, t, n, l, r, a) {
|
|
|
878
878
|
]),
|
|
879
879
|
_: 3
|
|
880
880
|
}, 8, ["style"]),
|
|
881
|
-
e.showFooter ? (m(), Y(
|
|
881
|
+
e.showFooter ? (m(), Y(a, {
|
|
882
882
|
key: 0,
|
|
883
883
|
class: "q-pa-none dialog-footer"
|
|
884
884
|
}, {
|
|
885
885
|
default: I(() => [
|
|
886
|
-
|
|
886
|
+
z(o, {
|
|
887
887
|
label: e.cancelText,
|
|
888
888
|
unelevated: "",
|
|
889
889
|
"no-caps": "",
|
|
@@ -905,10 +905,10 @@ function En(e, t, n, l, r, a) {
|
|
|
905
905
|
])
|
|
906
906
|
]),
|
|
907
907
|
fallback: I(() => [
|
|
908
|
-
|
|
908
|
+
z(a, null, {
|
|
909
909
|
default: I(() => [
|
|
910
910
|
y("div", On, [
|
|
911
|
-
|
|
911
|
+
z(i, {
|
|
912
912
|
showing: !0,
|
|
913
913
|
label: e.t("action.loading"),
|
|
914
914
|
color: "primary",
|
|
@@ -944,21 +944,21 @@ const it = {
|
|
|
944
944
|
async register(e) {
|
|
945
945
|
const t = Math.random().toString(36).slice(2), n = Vt($n, { ...e, dialogId: t });
|
|
946
946
|
ae.router && n.use(ae.router), ae.store && n.use(ae.store), ae.i18n && n.use(ae.i18n), ae.plugins && ae.plugins.forEach((c) => n.use(c));
|
|
947
|
-
const { Quasar: l, Notify: r, Dialog:
|
|
947
|
+
const { Quasar: l, Notify: r, Dialog: s, Loading: i } = await import("quasar");
|
|
948
948
|
n.use(l, {
|
|
949
949
|
plugins: {
|
|
950
950
|
Notify: r,
|
|
951
|
-
Dialog:
|
|
952
|
-
Loading:
|
|
951
|
+
Dialog: s,
|
|
952
|
+
Loading: i
|
|
953
953
|
},
|
|
954
954
|
animations: "all"
|
|
955
955
|
}), ae.iconMapFn && (n.config.globalProperties.$q.iconMapFn = ae.iconMapFn);
|
|
956
956
|
const o = document.createElement("div");
|
|
957
957
|
document.body.appendChild(o);
|
|
958
|
-
const
|
|
959
|
-
return Ge.set(t, { app: n, appInstance:
|
|
960
|
-
|
|
961
|
-
}).then((c) => c),
|
|
958
|
+
const a = n.mount(o);
|
|
959
|
+
return Ge.set(t, { app: n, appInstance: a }), de(() => {
|
|
960
|
+
a.open();
|
|
961
|
+
}).then((c) => c), a;
|
|
962
962
|
},
|
|
963
963
|
destroy(e) {
|
|
964
964
|
const t = Ge.get(e);
|
|
@@ -990,14 +990,14 @@ const it = {
|
|
|
990
990
|
},
|
|
991
991
|
setup(e, { slots: t }) {
|
|
992
992
|
const n = h(null), l = h(0), r = h(e.defaultCollapsed);
|
|
993
|
-
let
|
|
994
|
-
const o = 5, { t:
|
|
993
|
+
let s = null, i = 0;
|
|
994
|
+
const o = 5, { t: a } = K(), c = () => {
|
|
995
995
|
if (n.value) {
|
|
996
|
-
|
|
996
|
+
s && s.disconnect();
|
|
997
997
|
const A = n.value.scrollHeight;
|
|
998
|
-
A > 0 ? (l.value = A,
|
|
998
|
+
A > 0 ? (l.value = A, i = 0) : n.value.children.length > 0 && i < o && (i++, setTimeout(() => {
|
|
999
999
|
c();
|
|
1000
|
-
}, 100)),
|
|
1000
|
+
}, 100)), s && n.value && s.observe(n.value, {
|
|
1001
1001
|
childList: !0,
|
|
1002
1002
|
subtree: !0
|
|
1003
1003
|
});
|
|
@@ -1009,7 +1009,7 @@ const it = {
|
|
|
1009
1009
|
var v;
|
|
1010
1010
|
const A = (v = t.default) == null ? void 0 : v.call(t);
|
|
1011
1011
|
A && it.register({
|
|
1012
|
-
title: e.dialogTitle ||
|
|
1012
|
+
title: e.dialogTitle || a("action.viewAll"),
|
|
1013
1013
|
maxWidth: e.dialogMaxWidth,
|
|
1014
1014
|
minHeight: "auto",
|
|
1015
1015
|
showHeader: !0,
|
|
@@ -1021,24 +1021,24 @@ const it = {
|
|
|
1021
1021
|
};
|
|
1022
1022
|
return he(() => {
|
|
1023
1023
|
de(() => {
|
|
1024
|
-
c(), n.value && (
|
|
1024
|
+
c(), n.value && (s = new MutationObserver(() => {
|
|
1025
1025
|
de(c);
|
|
1026
|
-
}),
|
|
1026
|
+
}), s.observe(n.value, {
|
|
1027
1027
|
childList: !0,
|
|
1028
1028
|
subtree: !0
|
|
1029
1029
|
}));
|
|
1030
1030
|
});
|
|
1031
1031
|
}), Qt(() => {
|
|
1032
|
-
|
|
1032
|
+
s && (s.disconnect(), s = null);
|
|
1033
1033
|
}), {
|
|
1034
|
-
t:
|
|
1034
|
+
t: a,
|
|
1035
1035
|
contentWrapperRef: n,
|
|
1036
1036
|
isCollapsed: r,
|
|
1037
1037
|
needsToggle: u,
|
|
1038
1038
|
toggleList: d,
|
|
1039
1039
|
currentStyle: g,
|
|
1040
1040
|
remeasure: () => {
|
|
1041
|
-
|
|
1041
|
+
i = 0, de(c);
|
|
1042
1042
|
}
|
|
1043
1043
|
};
|
|
1044
1044
|
}
|
|
@@ -1046,7 +1046,7 @@ const it = {
|
|
|
1046
1046
|
key: 0,
|
|
1047
1047
|
class: "jc-toggle-overlay"
|
|
1048
1048
|
};
|
|
1049
|
-
function Un(e, t, n, l, r,
|
|
1049
|
+
function Un(e, t, n, l, r, s) {
|
|
1050
1050
|
return m(), T("div", Qn, [
|
|
1051
1051
|
y("div", Pn, [
|
|
1052
1052
|
y("div", {
|
|
@@ -1059,7 +1059,7 @@ function Un(e, t, n, l, r, a) {
|
|
|
1059
1059
|
e.needsToggle ? (m(), T("div", qn, [
|
|
1060
1060
|
y("span", {
|
|
1061
1061
|
class: "link-type",
|
|
1062
|
-
onClick: t[0] || (t[0] = (...
|
|
1062
|
+
onClick: t[0] || (t[0] = (...i) => e.toggleList && e.toggleList(...i))
|
|
1063
1063
|
}, [
|
|
1064
1064
|
e.viewInDialog ? (m(), T(ee, { key: 0 }, [
|
|
1065
1065
|
W(w(e.t("action.viewAll")), 1)
|
|
@@ -1115,9 +1115,9 @@ const is = /* @__PURE__ */ B(Vn, [["render", Un], ["__scopeId", "data-v-48376fdd
|
|
|
1115
1115
|
slots: Object,
|
|
1116
1116
|
setup(e) {
|
|
1117
1117
|
const t = C(() => {
|
|
1118
|
-
const r = e.value,
|
|
1119
|
-
if (!(r === null || !
|
|
1120
|
-
return
|
|
1118
|
+
const r = e.value, s = e.options, i = e.matchKeys;
|
|
1119
|
+
if (!(r === null || !s || s.length === 0))
|
|
1120
|
+
return s.find((o) => i.some((a) => o[a] !== void 0 && o[a] === r));
|
|
1121
1121
|
}), n = C(() => !!t.value), l = C(() => t.value ? t.value.label : e.defaultContent);
|
|
1122
1122
|
return {
|
|
1123
1123
|
hasMatch: n,
|
|
@@ -1125,7 +1125,7 @@ const is = /* @__PURE__ */ B(Vn, [["render", Un], ["__scopeId", "data-v-48376fdd
|
|
|
1125
1125
|
};
|
|
1126
1126
|
}
|
|
1127
1127
|
}), Zn = { key: 0 };
|
|
1128
|
-
function Rn(e, t, n, l, r,
|
|
1128
|
+
function Rn(e, t, n, l, r, s) {
|
|
1129
1129
|
return e.hasMatch ? O(e.$slots, "default", {
|
|
1130
1130
|
key: 0,
|
|
1131
1131
|
label: e.displayLabel
|
|
@@ -1165,7 +1165,7 @@ const rs = /* @__PURE__ */ B(Bn, [["render", Rn]]), Wn = U({
|
|
|
1165
1165
|
},
|
|
1166
1166
|
slots: Object,
|
|
1167
1167
|
setup(e, { emit: t, slots: n, expose: l }) {
|
|
1168
|
-
const { t: r } = K(),
|
|
1168
|
+
const { t: r } = K(), s = h(e.modelValue ?? ""), i = h(null), o = h(e.customType !== "secret" && e.customType !== "password"), a = C(() => {
|
|
1169
1169
|
const d = String(e.modelValue ?? "");
|
|
1170
1170
|
if (e.customType === "secret" && !o.value) {
|
|
1171
1171
|
if (d.length === 0)
|
|
@@ -1176,7 +1176,7 @@ const rs = /* @__PURE__ */ B(Bn, [["render", Rn]]), Wn = U({
|
|
|
1176
1176
|
return `${p}***${A}`;
|
|
1177
1177
|
}
|
|
1178
1178
|
return d;
|
|
1179
|
-
}), c = C(() => e.customType === "secret" ?
|
|
1179
|
+
}), c = C(() => e.customType === "secret" ? a.value : s.value), u = C(() => ({
|
|
1180
1180
|
"input-password": e.customType === "password" && !o.value,
|
|
1181
1181
|
"j-q-input--table": e.label,
|
|
1182
1182
|
"j-q-input--form": !e.label && e.type !== "textarea" && !e.smInput,
|
|
@@ -1186,14 +1186,14 @@ const rs = /* @__PURE__ */ B(Bn, [["render", Rn]]), Wn = U({
|
|
|
1186
1186
|
G(
|
|
1187
1187
|
() => e.modelValue,
|
|
1188
1188
|
(d) => {
|
|
1189
|
-
d !==
|
|
1189
|
+
d !== s.value && (s.value = d);
|
|
1190
1190
|
},
|
|
1191
1191
|
{ immediate: !0 }
|
|
1192
1192
|
), G(
|
|
1193
|
-
() =>
|
|
1193
|
+
() => s.value,
|
|
1194
1194
|
(d, p) => {
|
|
1195
1195
|
if (d !== p && e.inputLimitFn && !e.inputLimitFn(d)) {
|
|
1196
|
-
|
|
1196
|
+
s.value = p;
|
|
1197
1197
|
return;
|
|
1198
1198
|
}
|
|
1199
1199
|
t("update:modelValue", d);
|
|
@@ -1207,29 +1207,29 @@ const rs = /* @__PURE__ */ B(Bn, [["render", Rn]]), Wn = U({
|
|
|
1207
1207
|
return l({
|
|
1208
1208
|
validate: () => {
|
|
1209
1209
|
var d;
|
|
1210
|
-
return ((d =
|
|
1210
|
+
return ((d = i.value) == null ? void 0 : d.validate()) ?? !1;
|
|
1211
1211
|
},
|
|
1212
1212
|
resetValidation: () => {
|
|
1213
1213
|
var d;
|
|
1214
|
-
return (d =
|
|
1214
|
+
return (d = i.value) == null ? void 0 : d.resetValidation();
|
|
1215
1215
|
},
|
|
1216
1216
|
toggleVisibility: M
|
|
1217
1217
|
}), {
|
|
1218
1218
|
t: r,
|
|
1219
|
-
innerModel:
|
|
1219
|
+
innerModel: s,
|
|
1220
1220
|
computedInputValue: c,
|
|
1221
|
-
computedDisplayValue:
|
|
1221
|
+
computedDisplayValue: a,
|
|
1222
1222
|
computedClass: u,
|
|
1223
1223
|
change: g,
|
|
1224
|
-
qInputRef:
|
|
1224
|
+
qInputRef: i,
|
|
1225
1225
|
isContentVisible: o,
|
|
1226
1226
|
toggleVisibility: M
|
|
1227
1227
|
};
|
|
1228
1228
|
}
|
|
1229
1229
|
});
|
|
1230
|
-
function xn(e, t, n, l, r,
|
|
1231
|
-
const
|
|
1232
|
-
return m(), Y(
|
|
1230
|
+
function xn(e, t, n, l, r, s) {
|
|
1231
|
+
const i = N("q-input");
|
|
1232
|
+
return m(), Y(i, {
|
|
1233
1233
|
class: V(["j-q-input", e.computedClass]),
|
|
1234
1234
|
"model-value": e.computedInputValue,
|
|
1235
1235
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.innerModel = o),
|
|
@@ -1308,8 +1308,8 @@ const wt = /* @__PURE__ */ B(Wn, [["render", xn]]), Gn = U({
|
|
|
1308
1308
|
};
|
|
1309
1309
|
}
|
|
1310
1310
|
}), Hn = { class: "row items-center" }, Fn = { class: "form-content" }, Jn = { class: "form-value__inner" }, Kn = { class: "form-item-detail-wrapper" };
|
|
1311
|
-
function Xn(e, t, n, l, r,
|
|
1312
|
-
const
|
|
1311
|
+
function Xn(e, t, n, l, r, s) {
|
|
1312
|
+
const i = N("q-tooltip"), o = N("q-icon");
|
|
1313
1313
|
return m(), T("div", {
|
|
1314
1314
|
class: V(["j-q-form-label", [e.directionClass, { required: e.required }]])
|
|
1315
1315
|
}, [
|
|
@@ -1326,7 +1326,7 @@ function Xn(e, t, n, l, r, a) {
|
|
|
1326
1326
|
class: "q-ml-xs"
|
|
1327
1327
|
}, {
|
|
1328
1328
|
default: I(() => [
|
|
1329
|
-
|
|
1329
|
+
z(i, {
|
|
1330
1330
|
anchor: "top middle",
|
|
1331
1331
|
self: "bottom middle",
|
|
1332
1332
|
offset: [10, 10]
|
|
@@ -1382,35 +1382,35 @@ const _n = /* @__PURE__ */ B(Gn, [["render", Xn]]), el = U({
|
|
|
1382
1382
|
setup(e, { emit: t }) {
|
|
1383
1383
|
const { t: n } = K(), l = C({
|
|
1384
1384
|
get: () => e.modelValue,
|
|
1385
|
-
set: (
|
|
1386
|
-
t("update:modelValue",
|
|
1385
|
+
set: (a) => {
|
|
1386
|
+
t("update:modelValue", a);
|
|
1387
1387
|
}
|
|
1388
1388
|
});
|
|
1389
1389
|
return {
|
|
1390
1390
|
computedPlaceholder: C(() => e.placeholder || n("messages.pleaseEnter")),
|
|
1391
1391
|
innerValue: l,
|
|
1392
|
-
updateItem: (
|
|
1392
|
+
updateItem: (a, c) => {
|
|
1393
1393
|
const u = String(c ?? "");
|
|
1394
|
-
if (l.value[
|
|
1394
|
+
if (l.value[a] !== u) {
|
|
1395
1395
|
const g = [...l.value];
|
|
1396
|
-
g[
|
|
1396
|
+
g[a] = u, l.value = g;
|
|
1397
1397
|
}
|
|
1398
1398
|
},
|
|
1399
|
-
addItem: (
|
|
1399
|
+
addItem: (a) => {
|
|
1400
1400
|
const c = [...l.value];
|
|
1401
|
-
c.splice(
|
|
1401
|
+
c.splice(a, 0, e.defaultNewValue), l.value = c;
|
|
1402
1402
|
},
|
|
1403
|
-
removeItem: (
|
|
1403
|
+
removeItem: (a) => {
|
|
1404
1404
|
const c = [...l.value];
|
|
1405
|
-
c.splice(
|
|
1405
|
+
c.splice(a, 1), l.value = c;
|
|
1406
1406
|
}
|
|
1407
1407
|
};
|
|
1408
1408
|
}
|
|
1409
1409
|
}), tl = { class: "col-6" }, nl = { style: { "margin-top": "4px" } };
|
|
1410
|
-
function ll(e, t, n, l, r,
|
|
1411
|
-
const
|
|
1410
|
+
function ll(e, t, n, l, r, s) {
|
|
1411
|
+
const i = N("j-q-input"), o = N("q-btn"), a = N("j-q-form-label");
|
|
1412
1412
|
return m(), T("div", null, [
|
|
1413
|
-
|
|
1413
|
+
z(a, {
|
|
1414
1414
|
label: e.label,
|
|
1415
1415
|
required: e.required
|
|
1416
1416
|
}, {
|
|
@@ -1420,7 +1420,7 @@ function ll(e, t, n, l, r, a) {
|
|
|
1420
1420
|
class: "row q-col-gutter-sm"
|
|
1421
1421
|
}, [
|
|
1422
1422
|
y("div", tl, [
|
|
1423
|
-
|
|
1423
|
+
z(i, {
|
|
1424
1424
|
"model-value": c,
|
|
1425
1425
|
"onUpdate:modelValue": (g) => e.updateItem(u, g),
|
|
1426
1426
|
rules: e.rules,
|
|
@@ -1527,7 +1527,7 @@ const us = /* @__PURE__ */ B(el, [["render", ll]]), ol = U({
|
|
|
1527
1527
|
action: (e) => !0
|
|
1528
1528
|
},
|
|
1529
1529
|
setup(e, { emit: t }) {
|
|
1530
|
-
const { t: n } = K(), l = C(() => e.translate ?? n), r = Ve(lt, h([])),
|
|
1530
|
+
const { t: n } = K(), l = C(() => e.translate ?? n), r = Ve(lt, h([])), s = Ve(ot, h([])), i = (D, k, S) => typeof D == "function" ? !!D(k) : typeof D == "boolean" ? D : S, o = (D) => i(D.visible, e.item, !0), a = (D) => i(D.disabled, e.item, !1), c = (D) => D ? s.value.includes(D) || r.value.includes(D) : !0, u = (D) => o(D) ? c(D.permissionCode) : !1, g = C(() => e.actions.some((D) => u(D))), M = C(() => typeof e.fit == "boolean" ? e.fit : e.preset === "option"), d = C(() => {
|
|
1531
1531
|
if (e.preset === "action")
|
|
1532
1532
|
return e.offset ?? [5, 10];
|
|
1533
1533
|
}), p = C(() => {
|
|
@@ -1536,13 +1536,13 @@ const us = /* @__PURE__ */ B(el, [["render", ll]]), ol = U({
|
|
|
1536
1536
|
}), A = C(() => {
|
|
1537
1537
|
if (e.preset === "action")
|
|
1538
1538
|
return e.self ?? "top start";
|
|
1539
|
-
}), v = C(() => e.preset !== "action" ? void 0 : { minWidth: e.listMinWidth ?? "80px" }), Q = C(() => e.menuClass ?? void 0), q = C(() => e.preset === "option" ? { "styling-menu-option": "" } : e.preset === "action" ? { "styling-menu-action": "" } : {}), E = (D) => typeof D.label == "function" ? D.label({ item: e.item, action: D }) : typeof D.label == "string" && D.label ? D.label : D.i18nKey ? l.value(D.i18nKey) : "",
|
|
1539
|
+
}), v = C(() => e.preset !== "action" ? void 0 : { minWidth: e.listMinWidth ?? "80px" }), Q = C(() => e.menuClass ?? void 0), q = C(() => e.preset === "option" ? { "styling-menu-option": "" } : e.preset === "action" ? { "styling-menu-action": "" } : {}), E = (D) => typeof D.label == "function" ? D.label({ item: e.item, action: D }) : typeof D.label == "string" && D.label ? D.label : D.i18nKey ? l.value(D.i18nKey) : "", j = async (D) => {
|
|
1540
1540
|
t("action", { action: D, item: e.item }), D.onClick && await D.onClick(e.item);
|
|
1541
1541
|
};
|
|
1542
1542
|
return {
|
|
1543
1543
|
hasVisibleActions: g,
|
|
1544
1544
|
isActionVisible: o,
|
|
1545
|
-
isActionDisabled:
|
|
1545
|
+
isActionDisabled: a,
|
|
1546
1546
|
shouldShowAction: u,
|
|
1547
1547
|
preset: C(() => e.preset),
|
|
1548
1548
|
computedFit: M,
|
|
@@ -1553,25 +1553,25 @@ const us = /* @__PURE__ */ B(el, [["render", ll]]), ol = U({
|
|
|
1553
1553
|
computedMenuClass: Q,
|
|
1554
1554
|
computedMenuAttrs: q,
|
|
1555
1555
|
getActionLabel: E,
|
|
1556
|
-
handleActionClick:
|
|
1556
|
+
handleActionClick: j
|
|
1557
1557
|
};
|
|
1558
1558
|
}
|
|
1559
1559
|
}), al = {
|
|
1560
1560
|
key: 0,
|
|
1561
1561
|
class: "jc-more-menu"
|
|
1562
1562
|
}, sl = { class: "jc-more-menu__icon" };
|
|
1563
|
-
function il(e, t, n, l, r,
|
|
1564
|
-
const
|
|
1563
|
+
function il(e, t, n, l, r, s) {
|
|
1564
|
+
const i = N("q-icon"), o = N("q-item-section"), a = N("q-item"), c = N("j-c-permission"), u = N("q-list"), g = N("q-menu"), M = tt("close-popup");
|
|
1565
1565
|
return e.hasVisibleActions ? (m(), T("div", al, [
|
|
1566
1566
|
y("div", sl, [
|
|
1567
1567
|
O(e.$slots, "trigger", {}, () => [
|
|
1568
|
-
|
|
1568
|
+
z(i, {
|
|
1569
1569
|
class: "cursor-pointer",
|
|
1570
1570
|
name: "more_vert",
|
|
1571
1571
|
size: e.triggerSize
|
|
1572
1572
|
}, null, 8, ["size"])
|
|
1573
1573
|
], !0),
|
|
1574
|
-
|
|
1574
|
+
z(g, Te({
|
|
1575
1575
|
fit: e.computedFit,
|
|
1576
1576
|
class: e.computedMenuClass,
|
|
1577
1577
|
offset: e.computedOffset,
|
|
@@ -1579,7 +1579,7 @@ function il(e, t, n, l, r, a) {
|
|
|
1579
1579
|
self: e.computedSelf
|
|
1580
1580
|
}, e.computedMenuAttrs), {
|
|
1581
1581
|
default: I(() => [
|
|
1582
|
-
|
|
1582
|
+
z(u, {
|
|
1583
1583
|
dense: e.dense,
|
|
1584
1584
|
style: H(e.computedListStyle)
|
|
1585
1585
|
}, {
|
|
@@ -1591,14 +1591,14 @@ function il(e, t, n, l, r, a) {
|
|
|
1591
1591
|
"default-content": d.defaultContent ?? "--"
|
|
1592
1592
|
}, {
|
|
1593
1593
|
default: I(() => [
|
|
1594
|
-
e.shouldShowAction(d) ? oe((m(), Y(
|
|
1594
|
+
e.shouldShowAction(d) ? oe((m(), Y(a, {
|
|
1595
1595
|
key: 0,
|
|
1596
1596
|
clickable: d.clickable ?? !0,
|
|
1597
1597
|
disable: e.isActionDisabled(d),
|
|
1598
1598
|
onClick: (A) => e.handleActionClick(d)
|
|
1599
1599
|
}, {
|
|
1600
1600
|
default: I(() => [
|
|
1601
|
-
|
|
1601
|
+
z(o, null, {
|
|
1602
1602
|
default: I(() => [
|
|
1603
1603
|
W(w(e.getActionLabel(d)), 1)
|
|
1604
1604
|
]),
|
|
@@ -1667,14 +1667,14 @@ const dl = U({
|
|
|
1667
1667
|
};
|
|
1668
1668
|
}
|
|
1669
1669
|
});
|
|
1670
|
-
function cl(e, t, n, l, r,
|
|
1671
|
-
const
|
|
1670
|
+
function cl(e, t, n, l, r, s) {
|
|
1671
|
+
const i = N("q-tooltip"), o = tt("j-q-tooltip");
|
|
1672
1672
|
return oe((m(), T("div", {
|
|
1673
1673
|
class: V(["block", e.ellipsisClass]),
|
|
1674
1674
|
style: H(e.computedStyle)
|
|
1675
1675
|
}, [
|
|
1676
1676
|
W(w(e.content) + " ", 1),
|
|
1677
|
-
|
|
1677
|
+
z(i, {
|
|
1678
1678
|
class: V([e.toolTipClass, "j-q-tooltip-content"]),
|
|
1679
1679
|
anchor: "top middle",
|
|
1680
1680
|
self: "bottom middle",
|
|
@@ -1740,27 +1740,27 @@ const rt = /* @__PURE__ */ B(dl, [["render", cl]]), Ml = U({
|
|
|
1740
1740
|
change: (e) => !0
|
|
1741
1741
|
},
|
|
1742
1742
|
setup(e, { emit: t }) {
|
|
1743
|
-
const n = (
|
|
1744
|
-
if (e.disable || e.modelValue ===
|
|
1743
|
+
const n = (i) => {
|
|
1744
|
+
if (e.disable || e.modelValue === i)
|
|
1745
1745
|
return;
|
|
1746
|
-
const o = e.options.find((
|
|
1747
|
-
o != null && o.disable || (t("update:modelValue",
|
|
1748
|
-
}, l = (
|
|
1749
|
-
if (!(
|
|
1750
|
-
return typeof
|
|
1746
|
+
const o = e.options.find((a) => a.value === i);
|
|
1747
|
+
o != null && o.disable || (t("update:modelValue", i), t("change", i));
|
|
1748
|
+
}, l = (i, o) => i.value === null || i.value === void 0 ? String(o) : String(i.value), r = (i) => {
|
|
1749
|
+
if (!(i == null || i === ""))
|
|
1750
|
+
return typeof i == "number" ? `${i}px` : i;
|
|
1751
1751
|
};
|
|
1752
1752
|
return {
|
|
1753
1753
|
handleClickTab: n,
|
|
1754
1754
|
slotKey: l,
|
|
1755
|
-
getItemLabelStyle: (
|
|
1756
|
-
const o = r(
|
|
1757
|
-
return o ? `${
|
|
1755
|
+
getItemLabelStyle: (i) => {
|
|
1756
|
+
const o = r(i.maxWidth ?? e.itemMaxWidth), a = "display:inline-block; vertical-align:middle;";
|
|
1757
|
+
return o ? `${a} max-width:${o};` : `${a}`;
|
|
1758
1758
|
}
|
|
1759
1759
|
};
|
|
1760
1760
|
}
|
|
1761
1761
|
}), gl = ["onClick"];
|
|
1762
|
-
function ml(e, t, n, l, r,
|
|
1763
|
-
const
|
|
1762
|
+
function ml(e, t, n, l, r, s) {
|
|
1763
|
+
const i = N("JQTooltip");
|
|
1764
1764
|
return m(), T("div", null, [
|
|
1765
1765
|
y("ul", {
|
|
1766
1766
|
class: V(["j-c-tabs", {
|
|
@@ -1771,27 +1771,27 @@ function ml(e, t, n, l, r, a) {
|
|
|
1771
1771
|
"j-c-tabs--expand": e.expand
|
|
1772
1772
|
}])
|
|
1773
1773
|
}, [
|
|
1774
|
-
(m(!0), T(ee, null, ne(e.options, (o,
|
|
1775
|
-
key:
|
|
1774
|
+
(m(!0), T(ee, null, ne(e.options, (o, a) => (m(), T("li", {
|
|
1775
|
+
key: a,
|
|
1776
1776
|
class: V({
|
|
1777
1777
|
active: e.modelValue === o.value,
|
|
1778
1778
|
"is-disabled": e.disable || o.disable
|
|
1779
1779
|
}),
|
|
1780
1780
|
onClick: (c) => e.handleClickTab(o.value)
|
|
1781
1781
|
}, [
|
|
1782
|
-
O(e.$slots, `item-${e.slotKey(o,
|
|
1782
|
+
O(e.$slots, `item-${e.slotKey(o, a)}`, {
|
|
1783
1783
|
item: o,
|
|
1784
|
-
index:
|
|
1784
|
+
index: a,
|
|
1785
1785
|
active: e.modelValue === o.value,
|
|
1786
1786
|
labelStyle: e.getItemLabelStyle(o)
|
|
1787
1787
|
}, () => [
|
|
1788
1788
|
O(e.$slots, "item", {
|
|
1789
1789
|
item: o,
|
|
1790
|
-
index:
|
|
1790
|
+
index: a,
|
|
1791
1791
|
active: e.modelValue === o.value,
|
|
1792
1792
|
labelStyle: e.getItemLabelStyle(o)
|
|
1793
1793
|
}, () => [
|
|
1794
|
-
|
|
1794
|
+
z(i, {
|
|
1795
1795
|
content: o.label,
|
|
1796
1796
|
lines: 1,
|
|
1797
1797
|
"content-style": e.getItemLabelStyle(o)
|
|
@@ -1818,7 +1818,7 @@ const cs = /* @__PURE__ */ B(Ml, [["render", ml], ["__scopeId", "data-v-cc043f30
|
|
|
1818
1818
|
key: 0,
|
|
1819
1819
|
class: "title-line__extra"
|
|
1820
1820
|
};
|
|
1821
|
-
function Il(e, t, n, l, r,
|
|
1821
|
+
function Il(e, t, n, l, r, s) {
|
|
1822
1822
|
return m(), T("div", null, [
|
|
1823
1823
|
y("div", fl, [
|
|
1824
1824
|
y("span", null, [
|
|
@@ -1848,23 +1848,23 @@ const Ms = /* @__PURE__ */ B(pl, [["render", Il], ["__scopeId", "data-v-634ec7db
|
|
|
1848
1848
|
},
|
|
1849
1849
|
emits: ["update:modelValue"],
|
|
1850
1850
|
setup(e, { emit: t, expose: n }) {
|
|
1851
|
-
const l = h(null), { t: r } = K(),
|
|
1851
|
+
const l = h(null), { t: r } = K(), s = h(e.modelValue ?? []), i = C(() => e.tickStrategy === "strict" && !e.multiple), o = C({
|
|
1852
1852
|
get() {
|
|
1853
|
-
return e.modelValue ??
|
|
1853
|
+
return e.modelValue ?? s.value;
|
|
1854
1854
|
},
|
|
1855
|
-
set(
|
|
1856
|
-
let c =
|
|
1857
|
-
if (
|
|
1858
|
-
const u = Array.isArray(
|
|
1855
|
+
set(a) {
|
|
1856
|
+
let c = a;
|
|
1857
|
+
if (i.value) {
|
|
1858
|
+
const u = Array.isArray(a) ? a : [], g = u.length > 0 ? u[u.length - 1] : void 0;
|
|
1859
1859
|
c = g ? [g] : [];
|
|
1860
1860
|
}
|
|
1861
|
-
|
|
1861
|
+
s.value = c, t("update:modelValue", c);
|
|
1862
1862
|
}
|
|
1863
1863
|
});
|
|
1864
1864
|
return G(
|
|
1865
1865
|
() => e.modelValue,
|
|
1866
|
-
(
|
|
1867
|
-
|
|
1866
|
+
(a) => {
|
|
1867
|
+
s.value = a ?? [];
|
|
1868
1868
|
}
|
|
1869
1869
|
), n({
|
|
1870
1870
|
qTreeRef: l
|
|
@@ -1875,12 +1875,12 @@ const Ms = /* @__PURE__ */ B(pl, [["render", Il], ["__scopeId", "data-v-634ec7db
|
|
|
1875
1875
|
};
|
|
1876
1876
|
}
|
|
1877
1877
|
}), Al = { class: "q-tree-label-wrapper" }, Nl = { class: "q-tree-label-truncate" };
|
|
1878
|
-
function Cl(e, t, n, l, r,
|
|
1879
|
-
const
|
|
1878
|
+
function Cl(e, t, n, l, r, s) {
|
|
1879
|
+
const i = N("j-q-tooltip"), o = N("q-tree");
|
|
1880
1880
|
return m(), Y(o, {
|
|
1881
1881
|
ref: "main",
|
|
1882
1882
|
ticked: e.computedValue,
|
|
1883
|
-
"onUpdate:ticked": t[0] || (t[0] = (
|
|
1883
|
+
"onUpdate:ticked": t[0] || (t[0] = (a) => e.computedValue = a),
|
|
1884
1884
|
"default-expand-all": "",
|
|
1885
1885
|
"label-key": e.optionLabel,
|
|
1886
1886
|
"node-key": e.optionValue,
|
|
@@ -1888,14 +1888,14 @@ function Cl(e, t, n, l, r, a) {
|
|
|
1888
1888
|
"tick-strategy": e.tickStrategy,
|
|
1889
1889
|
"no-nodes-label": e.t("messages.noData")
|
|
1890
1890
|
}, {
|
|
1891
|
-
"default-header": I((
|
|
1891
|
+
"default-header": I((a) => [
|
|
1892
1892
|
y("div", Al, [
|
|
1893
|
-
|
|
1894
|
-
content:
|
|
1893
|
+
z(i, {
|
|
1894
|
+
content: a.node[e.optionLabel],
|
|
1895
1895
|
style: { "max-width": "320px" }
|
|
1896
1896
|
}, {
|
|
1897
1897
|
default: I(() => [
|
|
1898
|
-
y("div", Nl, w(
|
|
1898
|
+
y("div", Nl, w(a.node[e.optionLabel]), 1)
|
|
1899
1899
|
]),
|
|
1900
1900
|
_: 2
|
|
1901
1901
|
}, 1032, ["content"])
|
|
@@ -1936,49 +1936,49 @@ const jl = /* @__PURE__ */ B(Dl, [["render", Cl]]), zl = U({
|
|
|
1936
1936
|
},
|
|
1937
1937
|
slots: Object,
|
|
1938
1938
|
setup(e, { emit: t, expose: n }) {
|
|
1939
|
-
const l = h(null), { t: r } = K(),
|
|
1939
|
+
const l = h(null), { t: r } = K(), s = h(!1), i = h(""), o = h([]), a = h(e.modelValue ?? []), c = C(() => e.tickStrategy === "strict" && !e.multiple), u = C({
|
|
1940
1940
|
get() {
|
|
1941
|
-
return e.modelValue ||
|
|
1941
|
+
return e.modelValue || a.value;
|
|
1942
1942
|
},
|
|
1943
1943
|
set(E) {
|
|
1944
|
-
let
|
|
1945
|
-
|
|
1944
|
+
let j = E;
|
|
1945
|
+
a.value = j, t("update:modelValue", j), c.value && j != null && j.length && (s.value = !1);
|
|
1946
1946
|
}
|
|
1947
1947
|
}), g = C({
|
|
1948
1948
|
get() {
|
|
1949
|
-
return e.disable || e.readonly ? !1 :
|
|
1949
|
+
return e.disable || e.readonly ? !1 : s.value;
|
|
1950
1950
|
},
|
|
1951
1951
|
set(E) {
|
|
1952
|
-
|
|
1952
|
+
s.value = E;
|
|
1953
1953
|
}
|
|
1954
1954
|
});
|
|
1955
1955
|
G(
|
|
1956
1956
|
() => e.modelValue,
|
|
1957
1957
|
(E) => {
|
|
1958
|
-
|
|
1958
|
+
a.value = E ?? [];
|
|
1959
1959
|
}
|
|
1960
|
-
), G(
|
|
1961
|
-
E || (
|
|
1960
|
+
), G(s, (E) => {
|
|
1961
|
+
E || (i.value = "");
|
|
1962
1962
|
});
|
|
1963
1963
|
const M = () => {
|
|
1964
1964
|
var k;
|
|
1965
1965
|
if (!((k = u.value) != null && k.length)) return;
|
|
1966
|
-
const E = [],
|
|
1966
|
+
const E = [], j = (S) => {
|
|
1967
1967
|
var Z, P;
|
|
1968
|
-
(Z = S.children) != null && Z.length && S.children.forEach(
|
|
1968
|
+
(Z = S.children) != null && Z.length && S.children.forEach(j), (P = u.value) != null && P.includes(S[e.optionValue]) && E.push(S);
|
|
1969
1969
|
};
|
|
1970
|
-
return (e.options || []).forEach(
|
|
1970
|
+
return (e.options || []).forEach(j), E;
|
|
1971
1971
|
}, d = C(() => {
|
|
1972
|
-
var
|
|
1973
|
-
if (!((
|
|
1972
|
+
var j;
|
|
1973
|
+
if (!((j = u.value) != null && j.length)) return;
|
|
1974
1974
|
if (e.valueDisplayFn) return e.valueDisplayFn(u.value, e.options || []);
|
|
1975
1975
|
const E = M();
|
|
1976
1976
|
return E == null ? void 0 : E.map((D) => D[e.optionLabel]).toString();
|
|
1977
|
-
}), p = C(() => e.options || []), A = C(() =>
|
|
1977
|
+
}), p = C(() => e.options || []), A = C(() => i.value ? o.value : p.value), v = (E) => {
|
|
1978
1978
|
if (o.value = [], !E) return;
|
|
1979
|
-
let
|
|
1979
|
+
let j;
|
|
1980
1980
|
try {
|
|
1981
|
-
|
|
1981
|
+
j = new RegExp(E.toString(), "i");
|
|
1982
1982
|
} catch {
|
|
1983
1983
|
return;
|
|
1984
1984
|
}
|
|
@@ -1986,7 +1986,7 @@ const jl = /* @__PURE__ */ B(Dl, [["render", Cl]]), zl = U({
|
|
|
1986
1986
|
var te, me;
|
|
1987
1987
|
const Z = { ...k }, P = ((te = k[e.optionLabel]) == null ? void 0 : te.toString()) || "";
|
|
1988
1988
|
let J = !1;
|
|
1989
|
-
if (
|
|
1989
|
+
if (j.test(P) && (J = !0), (me = k.children) != null && me.length) {
|
|
1990
1990
|
const ce = [];
|
|
1991
1991
|
k.children.forEach((Ne) => {
|
|
1992
1992
|
D(Ne, ce) && (J = !0);
|
|
@@ -2009,7 +2009,7 @@ const jl = /* @__PURE__ */ B(Dl, [["render", Cl]]), zl = U({
|
|
|
2009
2009
|
computedValue: u,
|
|
2010
2010
|
computedValueDisplay: d,
|
|
2011
2011
|
popupVisible: g,
|
|
2012
|
-
inputValue:
|
|
2012
|
+
inputValue: i,
|
|
2013
2013
|
computedTreeOptions: A,
|
|
2014
2014
|
onUpdateInputValue: v,
|
|
2015
2015
|
handleClear: Q,
|
|
@@ -2020,8 +2020,8 @@ const jl = /* @__PURE__ */ B(Dl, [["render", Cl]]), zl = U({
|
|
|
2020
2020
|
key: 0,
|
|
2021
2021
|
class: "j-c-tree-select-popup__header"
|
|
2022
2022
|
}, wl = { class: "j-c-tree-select-popup__main" };
|
|
2023
|
-
function vl(e, t, n, l, r,
|
|
2024
|
-
const
|
|
2023
|
+
function vl(e, t, n, l, r, s) {
|
|
2024
|
+
const i = N("q-icon"), o = N("j-q-input"), a = N("j-c-tree"), c = N("q-popup-proxy"), u = N("q-field");
|
|
2025
2025
|
return m(), Y(u, {
|
|
2026
2026
|
class: V(["j-c-tree-select", {
|
|
2027
2027
|
"j-c-tree-select--table": e.label,
|
|
@@ -2048,13 +2048,13 @@ function vl(e, t, n, l, r, a) {
|
|
|
2048
2048
|
append: I(() => {
|
|
2049
2049
|
var g;
|
|
2050
2050
|
return [
|
|
2051
|
-
e.clearable && !e.readonly && !e.disable && ((g = e.computedValue) != null && g.length) ? (m(), Y(
|
|
2051
|
+
e.clearable && !e.readonly && !e.disable && ((g = e.computedValue) != null && g.length) ? (m(), Y(i, {
|
|
2052
2052
|
key: 0,
|
|
2053
2053
|
name: e.clearIcon,
|
|
2054
2054
|
class: "cursor-pointer q-field__focusable-action",
|
|
2055
2055
|
onMousedown: _(e.handleClearClick, ["stop"])
|
|
2056
2056
|
}, null, 8, ["name", "onMousedown"])) : $("", !0),
|
|
2057
|
-
e.readonly || e.disable ? $("", !0) : (m(), Y(
|
|
2057
|
+
e.readonly || e.disable ? $("", !0) : (m(), Y(i, {
|
|
2058
2058
|
key: 1,
|
|
2059
2059
|
name: e.dropdownIcon,
|
|
2060
2060
|
size: e.label ? "18px" : "20px",
|
|
@@ -2066,7 +2066,7 @@ function vl(e, t, n, l, r, a) {
|
|
|
2066
2066
|
oe(y("div", { class: "float-placeholder" }, w(e.t("messages.pleaseSelect")), 513), [
|
|
2067
2067
|
[ie, !e.label && (e.computedValue === null || e.computedValue === void 0 || Array.isArray(e.computedValue) && e.computedValue.length === 0)]
|
|
2068
2068
|
]),
|
|
2069
|
-
|
|
2069
|
+
z(c, {
|
|
2070
2070
|
modelValue: e.popupVisible,
|
|
2071
2071
|
"onUpdate:modelValue": t[2] || (t[2] = (g) => e.popupVisible = g),
|
|
2072
2072
|
style: { "border-top-left-radius": "4px", "border-top-right-radius": "4px" }
|
|
@@ -2074,7 +2074,7 @@ function vl(e, t, n, l, r, a) {
|
|
|
2074
2074
|
default: I(() => [
|
|
2075
2075
|
y("div", Tl, [
|
|
2076
2076
|
e.filterable ? (m(), T("div", hl, [
|
|
2077
|
-
|
|
2077
|
+
z(o, {
|
|
2078
2078
|
modelValue: e.inputValue,
|
|
2079
2079
|
"onUpdate:modelValue": [
|
|
2080
2080
|
t[0] || (t[0] = (g) => e.inputValue = g),
|
|
@@ -2088,7 +2088,7 @@ function vl(e, t, n, l, r, a) {
|
|
|
2088
2088
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "readonly", "disable"])
|
|
2089
2089
|
])) : $("", !0),
|
|
2090
2090
|
y("div", wl, [
|
|
2091
|
-
|
|
2091
|
+
z(a, {
|
|
2092
2092
|
ref: "treeRef",
|
|
2093
2093
|
modelValue: e.computedValue,
|
|
2094
2094
|
"onUpdate:modelValue": t[1] || (t[1] = (g) => e.computedValue = g),
|
|
@@ -2124,7 +2124,7 @@ const gs = /* @__PURE__ */ B(zl, [["render", vl]]), Sl = { username: "current_us
|
|
|
2124
2124
|
label: { type: String, default: "" }
|
|
2125
2125
|
},
|
|
2126
2126
|
setup(e, { emit: t, expose: n }) {
|
|
2127
|
-
const l = C(() => `search_history__${Sl.username}__${e.searchKey}`), r = h(null),
|
|
2127
|
+
const l = C(() => `search_history__${Sl.username}__${e.searchKey}`), r = h(null), s = De({
|
|
2128
2128
|
maxLength: 5,
|
|
2129
2129
|
width: {
|
|
2130
2130
|
eid: "250px"
|
|
@@ -2135,49 +2135,49 @@ const gs = /* @__PURE__ */ B(zl, [["render", vl]]), Sl = { username: "current_us
|
|
|
2135
2135
|
uniqueKey: l.value
|
|
2136
2136
|
});
|
|
2137
2137
|
he(() => {
|
|
2138
|
-
|
|
2138
|
+
i();
|
|
2139
2139
|
}), G(
|
|
2140
2140
|
() => e.modelValue,
|
|
2141
2141
|
(d) => {
|
|
2142
|
-
|
|
2142
|
+
s.filterList = s.list.filter((p) => p.value.includes(d));
|
|
2143
2143
|
}
|
|
2144
2144
|
);
|
|
2145
|
-
const
|
|
2145
|
+
const i = () => {
|
|
2146
2146
|
try {
|
|
2147
2147
|
const d = pt(), p = JSON.parse(d);
|
|
2148
|
-
|
|
2148
|
+
s.list = p[l.value] || [];
|
|
2149
2149
|
} catch (d) {
|
|
2150
|
-
console.error("Failed to load search history:", d),
|
|
2150
|
+
console.error("Failed to load search history:", d), s.list = [];
|
|
2151
2151
|
}
|
|
2152
2152
|
}, o = () => {
|
|
2153
|
-
|
|
2153
|
+
i();
|
|
2154
2154
|
const d = e.modelValue;
|
|
2155
|
-
d ?
|
|
2156
|
-
},
|
|
2157
|
-
|
|
2155
|
+
d ? s.filterList = s.list.filter((p) => p.value.includes(d)) : s.filterList = s.list, s.visible = !0;
|
|
2156
|
+
}, a = () => {
|
|
2157
|
+
s.visible = !1;
|
|
2158
2158
|
}, c = () => {
|
|
2159
|
-
|
|
2159
|
+
s.filterList = s.list, r.value.blur();
|
|
2160
2160
|
}, u = (d) => {
|
|
2161
2161
|
const p = String(d ?? "");
|
|
2162
|
-
t("update:model-value", p),
|
|
2162
|
+
t("update:model-value", p), s.filterList = s.list.filter((A) => A.value.includes(p));
|
|
2163
2163
|
}, g = (d) => {
|
|
2164
|
-
t("update:model-value", d.value),
|
|
2164
|
+
t("update:model-value", d.value), s.visible = !1;
|
|
2165
2165
|
}, M = (d) => {
|
|
2166
|
-
if (!d ||
|
|
2167
|
-
|
|
2166
|
+
if (!d || s.list.find((A) => A.value === d)) return;
|
|
2167
|
+
s.list.length >= s.maxLength && s.list.pop(), s.list.unshift({ id: +/* @__PURE__ */ new Date(), value: d });
|
|
2168
2168
|
let p;
|
|
2169
2169
|
try {
|
|
2170
2170
|
p = JSON.parse(pt());
|
|
2171
2171
|
} catch {
|
|
2172
2172
|
p = {};
|
|
2173
2173
|
}
|
|
2174
|
-
p[l.value] =
|
|
2174
|
+
p[l.value] = s.list, Ll(JSON.stringify(p));
|
|
2175
2175
|
};
|
|
2176
2176
|
return n({ saveHistory: M }), {
|
|
2177
2177
|
inputRef: r,
|
|
2178
|
-
historyParams:
|
|
2178
|
+
historyParams: s,
|
|
2179
2179
|
onFocus: o,
|
|
2180
|
-
onBlur:
|
|
2180
|
+
onBlur: a,
|
|
2181
2181
|
onClear: c,
|
|
2182
2182
|
onUpdateValue: u,
|
|
2183
2183
|
onSelectItem: g,
|
|
@@ -2186,13 +2186,13 @@ const gs = /* @__PURE__ */ B(zl, [["render", vl]]), Sl = { username: "current_us
|
|
|
2186
2186
|
};
|
|
2187
2187
|
}
|
|
2188
2188
|
}), Ol = { class: "j-q-autocomplete-list-container" }, El = ["onMousedown"], $l = { class: "value" };
|
|
2189
|
-
function Yl(e, t, n, l, r,
|
|
2190
|
-
const
|
|
2189
|
+
function Yl(e, t, n, l, r, s) {
|
|
2190
|
+
const i = N("q-input");
|
|
2191
2191
|
return m(), T("div", {
|
|
2192
2192
|
class: "j-q-autocomplete",
|
|
2193
2193
|
style: H(`width: ${e.historyParams.width[e.searchId] || "auto"}`)
|
|
2194
2194
|
}, [
|
|
2195
|
-
|
|
2195
|
+
z(i, Te({
|
|
2196
2196
|
class: {
|
|
2197
2197
|
"j-q-input--table": e.label,
|
|
2198
2198
|
"j-q-input--form": !e.label
|
|
@@ -2219,7 +2219,7 @@ function Yl(e, t, n, l, r, a) {
|
|
|
2219
2219
|
y("ul", null, [
|
|
2220
2220
|
(m(!0), T(ee, null, ne(e.historyParams.filterList, (o) => (m(), T("li", {
|
|
2221
2221
|
key: o.id,
|
|
2222
|
-
onMousedown: (
|
|
2222
|
+
onMousedown: (a) => e.onSelectItem(o)
|
|
2223
2223
|
}, [
|
|
2224
2224
|
y("span", $l, w(o.value), 1)
|
|
2225
2225
|
], 40, El))), 128))
|
|
@@ -2253,7 +2253,7 @@ const ms = /* @__PURE__ */ B(kl, [["render", Yl], ["__scopeId", "data-v-cd4f47bd
|
|
|
2253
2253
|
emits: ["confirm"],
|
|
2254
2254
|
slots: Object,
|
|
2255
2255
|
setup(e, { emit: t }) {
|
|
2256
|
-
const { t: n } = K(), l = h(null), r = C(() => e.confirmText || n("action.confirm")),
|
|
2256
|
+
const { t: n } = K(), l = h(null), r = C(() => e.confirmText || n("action.confirm")), s = C(() => e.cancelText || n("action.cancel"));
|
|
2257
2257
|
return {
|
|
2258
2258
|
popupRef: l,
|
|
2259
2259
|
handleCancel: () => {
|
|
@@ -2263,22 +2263,22 @@ const ms = /* @__PURE__ */ B(kl, [["render", Yl], ["__scopeId", "data-v-cd4f47bd
|
|
|
2263
2263
|
l.value.hide(), t("confirm");
|
|
2264
2264
|
},
|
|
2265
2265
|
computedConfirmText: r,
|
|
2266
|
-
computedCancelText:
|
|
2266
|
+
computedCancelText: s
|
|
2267
2267
|
};
|
|
2268
2268
|
}
|
|
2269
2269
|
}), Ql = { class: "inline-block" }, Pl = { class: "title" }, ql = { class: "j-q-confirm-actions" };
|
|
2270
|
-
function Ul(e, t, n, l, r,
|
|
2271
|
-
const
|
|
2270
|
+
function Ul(e, t, n, l, r, s) {
|
|
2271
|
+
const i = N("q-card-section"), o = N("q-card"), a = N("q-popup-proxy");
|
|
2272
2272
|
return m(), T("div", Ql, [
|
|
2273
2273
|
O(e.$slots, "default", {}, void 0, !0),
|
|
2274
|
-
|
|
2274
|
+
z(a, { ref: "popupRef" }, {
|
|
2275
2275
|
default: I(() => [
|
|
2276
|
-
|
|
2276
|
+
z(o, {
|
|
2277
2277
|
class: "j-q-confirm",
|
|
2278
2278
|
flat: ""
|
|
2279
2279
|
}, {
|
|
2280
2280
|
default: I(() => [
|
|
2281
|
-
|
|
2281
|
+
z(i, { class: "row items-center q-pa-none" }, {
|
|
2282
2282
|
default: I(() => [
|
|
2283
2283
|
y("span", Pl, w(e.title), 1)
|
|
2284
2284
|
]),
|
|
@@ -2341,18 +2341,18 @@ const ps = /* @__PURE__ */ B(Vl, [["render", Ul], ["__scopeId", "data-v-0525ec02
|
|
|
2341
2341
|
},
|
|
2342
2342
|
slots: Object,
|
|
2343
2343
|
setup(e, { emit: t, expose: n, slots: l }) {
|
|
2344
|
-
const r = h(!1),
|
|
2344
|
+
const r = h(!1), s = h(null), { t: i } = K(), o = C({
|
|
2345
2345
|
get() {
|
|
2346
2346
|
const A = e.modelValue;
|
|
2347
2347
|
if (A == null || A === "")
|
|
2348
2348
|
return null;
|
|
2349
2349
|
if (e.range) {
|
|
2350
2350
|
if (typeof A == "object" && A !== null) {
|
|
2351
|
-
const Q = A.from, q = A.to, E = He(Q),
|
|
2352
|
-
if (E ||
|
|
2351
|
+
const Q = A.from, q = A.to, E = He(Q), j = He(q);
|
|
2352
|
+
if (E || j)
|
|
2353
2353
|
return {
|
|
2354
2354
|
from: E ? R.formatDate(E, e.mask) : "",
|
|
2355
|
-
to:
|
|
2355
|
+
to: j ? R.formatDate(j, e.mask) : ""
|
|
2356
2356
|
};
|
|
2357
2357
|
}
|
|
2358
2358
|
return null;
|
|
@@ -2378,7 +2378,7 @@ const ps = /* @__PURE__ */ B(Vl, [["render", Ul], ["__scopeId", "data-v-0525ec02
|
|
|
2378
2378
|
}
|
|
2379
2379
|
t("update:modelValue", A), A && (e.range || (r.value = !1));
|
|
2380
2380
|
}
|
|
2381
|
-
}),
|
|
2381
|
+
}), a = C(() => {
|
|
2382
2382
|
if (e.valueDisplayFn)
|
|
2383
2383
|
return String(e.valueDisplayFn(e.modelValue) ?? "");
|
|
2384
2384
|
const A = o.value;
|
|
@@ -2395,17 +2395,17 @@ const ps = /* @__PURE__ */ B(Vl, [["render", Ul], ["__scopeId", "data-v-0525ec02
|
|
|
2395
2395
|
}, M = (A) => {
|
|
2396
2396
|
t("hide", A);
|
|
2397
2397
|
}, d = () => {
|
|
2398
|
-
o.value = null,
|
|
2398
|
+
o.value = null, s.value.blur();
|
|
2399
2399
|
}, p = () => {
|
|
2400
2400
|
d();
|
|
2401
2401
|
};
|
|
2402
2402
|
return n({ popupVisible: r }), {
|
|
2403
|
-
t:
|
|
2404
|
-
fieldRef:
|
|
2403
|
+
t: i,
|
|
2404
|
+
fieldRef: s,
|
|
2405
2405
|
handleClear: d,
|
|
2406
2406
|
handleClearClick: p,
|
|
2407
2407
|
computedValue: o,
|
|
2408
|
-
computedValueDisplay:
|
|
2408
|
+
computedValueDisplay: a,
|
|
2409
2409
|
popupVisible: r,
|
|
2410
2410
|
hasPopupPrepend: c,
|
|
2411
2411
|
onHidePopup: M,
|
|
@@ -2418,8 +2418,8 @@ const ps = /* @__PURE__ */ B(Vl, [["render", Ul], ["__scopeId", "data-v-0525ec02
|
|
|
2418
2418
|
key: 0,
|
|
2419
2419
|
class: "date-popup-prepend"
|
|
2420
2420
|
};
|
|
2421
|
-
function Wl(e, t, n, l, r,
|
|
2422
|
-
const
|
|
2421
|
+
function Wl(e, t, n, l, r, s) {
|
|
2422
|
+
const i = N("q-date"), o = N("q-popup-proxy"), a = N("q-icon"), c = N("q-field");
|
|
2423
2423
|
return m(), Y(c, {
|
|
2424
2424
|
ref: "fieldRef",
|
|
2425
2425
|
class: V(["j-q-date", {
|
|
@@ -2443,7 +2443,7 @@ function Wl(e, t, n, l, r, a) {
|
|
|
2443
2443
|
y("div", Zl, w(e.computedValueDisplay), 1)
|
|
2444
2444
|
]),
|
|
2445
2445
|
append: I(() => [
|
|
2446
|
-
e.clearable && !e.readonly && !e.disable && e.computedValue ? (m(), Y(
|
|
2446
|
+
e.clearable && !e.readonly && !e.disable && e.computedValue ? (m(), Y(a, {
|
|
2447
2447
|
key: 0,
|
|
2448
2448
|
name: "app:clear",
|
|
2449
2449
|
class: "cursor-pointer q-field__focusable-action",
|
|
@@ -2456,7 +2456,7 @@ function Wl(e, t, n, l, r, a) {
|
|
|
2456
2456
|
oe(y("div", { class: "float-placeholder" }, w(e.t("messages.pleaseSelect")), 513), [
|
|
2457
2457
|
[ie, !e.computedValueDisplay && !e.label]
|
|
2458
2458
|
]),
|
|
2459
|
-
|
|
2459
|
+
z(o, {
|
|
2460
2460
|
modelValue: e.popupVisible,
|
|
2461
2461
|
"onUpdate:modelValue": t[1] || (t[1] = (u) => e.popupVisible = u),
|
|
2462
2462
|
onHide: e.onHidePopup
|
|
@@ -2469,7 +2469,7 @@ function Wl(e, t, n, l, r, a) {
|
|
|
2469
2469
|
e.slots["popup-prepend"] ? (m(), T("div", Rl, [
|
|
2470
2470
|
O(e.$slots, "popup-prepend")
|
|
2471
2471
|
])) : $("", !0),
|
|
2472
|
-
|
|
2472
|
+
z(i, {
|
|
2473
2473
|
modelValue: e.computedValue,
|
|
2474
2474
|
"onUpdate:modelValue": t[0] || (t[0] = (u) => e.computedValue = u),
|
|
2475
2475
|
minimal: "",
|
|
@@ -2535,7 +2535,7 @@ const fs = /* @__PURE__ */ B(Bl, [["render", Wl]]), xl = "rtcpt", vt = `${xl}_th
|
|
|
2535
2535
|
emits: ["hide", "update:modelValue"],
|
|
2536
2536
|
slots: Object,
|
|
2537
2537
|
setup(e, { emit: t, expose: n, slots: l }) {
|
|
2538
|
-
const { t: r } = K(),
|
|
2538
|
+
const { t: r } = K(), s = h(!1), i = h(null), o = h(!1), a = h(!1), c = () => ({
|
|
2539
2539
|
h: parseInt(e.endhhmmss[0], 10) || 0,
|
|
2540
2540
|
m: parseInt(e.endhhmmss[1], 10) || 0,
|
|
2541
2541
|
s: parseInt(e.endhhmmss[2], 10) || 0
|
|
@@ -2565,13 +2565,13 @@ const fs = /* @__PURE__ */ B(Bl, [["render", Wl]]), xl = "rtcpt", vt = `${xl}_th
|
|
|
2565
2565
|
} catch {
|
|
2566
2566
|
yt(JSON.stringify({ datetimeTooltipVisible: !1 }));
|
|
2567
2567
|
}
|
|
2568
|
-
}, d = h({ from: null, to: null }), p = h(""), A = De(fe(null)), v = De(fe(null)), Q = h(null), q = h(""), E = De(fe(null)),
|
|
2568
|
+
}, d = h({ from: null, to: null }), p = h(""), A = De(fe(null)), v = De(fe(null)), Q = h(null), q = h(""), E = De(fe(null)), j = C({
|
|
2569
2569
|
get: () => typeof e.modelValue == "string" && e.modelValue === "" ? null : e.modelValue,
|
|
2570
2570
|
set: (L) => t("update:modelValue", L)
|
|
2571
2571
|
}), D = () => {
|
|
2572
2572
|
if (o.value) return;
|
|
2573
|
-
|
|
2574
|
-
const L =
|
|
2573
|
+
a.value = !0;
|
|
2574
|
+
const L = j.value;
|
|
2575
2575
|
if (e.range) {
|
|
2576
2576
|
const f = L || { from: null, to: null }, b = se(f.from);
|
|
2577
2577
|
Object.assign(A, fe(f.from));
|
|
@@ -2587,27 +2587,27 @@ const fs = /* @__PURE__ */ B(Bl, [["render", Wl]]), xl = "rtcpt", vt = `${xl}_th
|
|
|
2587
2587
|
Object.assign(E, fe(L)), Q.value = f ? R.formatDate(f, Ie) : null, q.value = f ? R.formatDate(f, Fe) : "";
|
|
2588
2588
|
}
|
|
2589
2589
|
de(() => {
|
|
2590
|
-
|
|
2590
|
+
a.value = !1;
|
|
2591
2591
|
});
|
|
2592
2592
|
};
|
|
2593
2593
|
G(() => e.modelValue, D, { immediate: !0 }), G(
|
|
2594
2594
|
p,
|
|
2595
2595
|
(L, f) => {
|
|
2596
|
-
if (e.range && !
|
|
2596
|
+
if (e.range && !a.value)
|
|
2597
2597
|
if (typeof L == "object" && L !== null) {
|
|
2598
2598
|
const b = L.from, x = L.to;
|
|
2599
2599
|
if (f && typeof f == "object" && f !== null ? (b !== f.from && Object.assign(A, { h: 0, m: 0, s: 0 }), x !== f.to && Object.assign(v, c())) : (Object.assign(A, { h: 0, m: 0, s: 0 }), Object.assign(v, c())), b && x) {
|
|
2600
2600
|
const F = Me(b, A), X = Me(x, v);
|
|
2601
2601
|
if (d.value.from = F, d.value.to = X, F && X) {
|
|
2602
2602
|
const pe = se(F), ct = se(X);
|
|
2603
|
-
pe && ct && pe.getTime() > ct.getTime() ?
|
|
2603
|
+
pe && ct && pe.getTime() > ct.getTime() ? j.value = { from: X, to: F } : j.value = { from: F, to: X };
|
|
2604
2604
|
}
|
|
2605
2605
|
}
|
|
2606
2606
|
} else typeof L == "string" && f && typeof f == "object" && (Object.assign(A, { h: 0, m: 0, s: 0 }), d.value.from = Me(L, A));
|
|
2607
2607
|
},
|
|
2608
2608
|
{ deep: !0 }
|
|
2609
2609
|
), G(q, (L, f) => {
|
|
2610
|
-
e.range || o.value ||
|
|
2610
|
+
e.range || o.value || a.value || (L !== f && Object.assign(E, { h: 0, m: 0, s: 0 }), Q.value = Me(L, E));
|
|
2611
2611
|
});
|
|
2612
2612
|
const k = (L) => {
|
|
2613
2613
|
if (L === "single")
|
|
@@ -2621,14 +2621,14 @@ const fs = /* @__PURE__ */ B(Bl, [["render", Wl]]), xl = "rtcpt", vt = `${xl}_th
|
|
|
2621
2621
|
G(
|
|
2622
2622
|
d,
|
|
2623
2623
|
(L) => {
|
|
2624
|
-
if (!(!e.range ||
|
|
2624
|
+
if (!(!e.range || a.value) && L.from && L.to) {
|
|
2625
2625
|
const f = se(L.from), b = se(L.to);
|
|
2626
|
-
f && b && f.getTime() > b.getTime() ?
|
|
2626
|
+
f && b && f.getTime() > b.getTime() ? j.value = { from: L.to, to: L.from } : j.value = L;
|
|
2627
2627
|
}
|
|
2628
2628
|
},
|
|
2629
2629
|
{ deep: !0 }
|
|
2630
2630
|
), G(Q, (L) => {
|
|
2631
|
-
e.range ||
|
|
2631
|
+
e.range || a.value || (j.value = L);
|
|
2632
2632
|
});
|
|
2633
2633
|
const S = (L, f, b, x) => C({
|
|
2634
2634
|
get: () => String(L[f]).padStart(2, "0"),
|
|
@@ -2636,9 +2636,9 @@ const fs = /* @__PURE__ */ B(Bl, [["render", Wl]]), xl = "rtcpt", vt = `${xl}_th
|
|
|
2636
2636
|
let X = parseInt(F, 10);
|
|
2637
2637
|
isNaN(X) && (X = 0), L[f] = Gl(X, b), k(x);
|
|
2638
2638
|
}
|
|
2639
|
-
}), Z = S(A, "h", 23, "from"), P = S(A, "m", 59, "from"), J = S(A, "s", 59, "from"), te = S(v, "h", 23, "to"), me = S(v, "m", 59, "to"), ce = S(v, "s", 59, "to"), Ne = S(E, "h", 23, "single"), Ee = S(E, "m", 59, "single"), qe = S(E, "s", 59, "single"), Ue = () =>
|
|
2639
|
+
}), Z = S(A, "h", 23, "from"), P = S(A, "m", 59, "from"), J = S(A, "s", 59, "from"), te = S(v, "h", 23, "to"), me = S(v, "m", 59, "to"), ce = S(v, "s", 59, "to"), Ne = S(E, "h", 23, "single"), Ee = S(E, "m", 59, "single"), qe = S(E, "s", 59, "single"), Ue = () => s.value = !1, $e = () => {
|
|
2640
2640
|
var L;
|
|
2641
|
-
o.value = !0, e.range ? (d.value = { from: null, to: null }, Object.assign(A, { h: 0, m: 0, s: 0 }), Object.assign(v, c()), p.value = { from: "", to: "" }) : (Q.value = null, Object.assign(E, { h: 0, m: 0, s: 0 }), q.value = ""),
|
|
2641
|
+
o.value = !0, e.range ? (d.value = { from: null, to: null }, Object.assign(A, { h: 0, m: 0, s: 0 }), Object.assign(v, c()), p.value = { from: "", to: "" }) : (Q.value = null, Object.assign(E, { h: 0, m: 0, s: 0 }), q.value = ""), j.value = null, (L = i.value) == null || L.blur(), s.value = !1, setTimeout(() => o.value = !1, 0);
|
|
2642
2642
|
}, Be = () => {
|
|
2643
2643
|
$e();
|
|
2644
2644
|
}, Ze = (L, f, b, x, F) => {
|
|
@@ -2660,22 +2660,22 @@ const fs = /* @__PURE__ */ B(Bl, [["render", Wl]]), xl = "rtcpt", vt = `${xl}_th
|
|
|
2660
2660
|
}
|
|
2661
2661
|
return "";
|
|
2662
2662
|
}), Ye = () => {
|
|
2663
|
-
e.disable || e.readonly || (D(),
|
|
2663
|
+
e.disable || e.readonly || (D(), s.value = !0, u.value && (g && clearTimeout(g), g = setTimeout(() => {
|
|
2664
2664
|
M();
|
|
2665
2665
|
}, 2e3)));
|
|
2666
2666
|
}, We = (L) => {
|
|
2667
2667
|
t("hide", L);
|
|
2668
2668
|
};
|
|
2669
|
-
return n({ popupVisible:
|
|
2669
|
+
return n({ popupVisible: s }), {
|
|
2670
2670
|
t: r,
|
|
2671
|
-
fieldRef:
|
|
2672
|
-
popupVisible:
|
|
2671
|
+
fieldRef: i,
|
|
2672
|
+
popupVisible: s,
|
|
2673
2673
|
handleClear: $e,
|
|
2674
2674
|
handleClearClick: Be,
|
|
2675
2675
|
handleFieldClick: Ye,
|
|
2676
2676
|
handleConfirm: Ue,
|
|
2677
2677
|
handleTimeWheel: Ze,
|
|
2678
|
-
computedValue:
|
|
2678
|
+
computedValue: j,
|
|
2679
2679
|
computedValueDisplay: Re,
|
|
2680
2680
|
currentRangeDate: p,
|
|
2681
2681
|
currentSingleDate: q,
|
|
@@ -2704,8 +2704,8 @@ const fs = /* @__PURE__ */ B(Bl, [["render", Wl]]), xl = "rtcpt", vt = `${xl}_th
|
|
|
2704
2704
|
key: 0,
|
|
2705
2705
|
class: "datetime-scroll-tooltip"
|
|
2706
2706
|
}, no = { class: "tooltip-content" }, lo = { class: "row column q-mb-sm q-mt-auto" }, oo = { class: "fs-12 text-grey h-30 row items-center q-mt-sm" }, ao = { class: "row q-gutter-x-xs items-center" }, so = { class: "row column q-mb-md" }, io = { class: "fs-12 text-grey h-30 row items-center" }, ro = { class: "row q-gutter-x-xs items-center" }, uo = { class: "row column q-mb-sm q-mt-auto" }, co = { class: "fs-12 text-grey h-30 row items-center q-mt-sm" }, Mo = { class: "row q-gutter-x-xs items-center" };
|
|
2707
|
-
function go(e, t, n, l, r,
|
|
2708
|
-
const
|
|
2707
|
+
function go(e, t, n, l, r, s) {
|
|
2708
|
+
const i = N("q-date"), o = N("q-icon"), a = N("q-input"), c = N("q-btn"), u = N("q-popup-proxy"), g = N("q-field");
|
|
2709
2709
|
return m(), Y(g, {
|
|
2710
2710
|
ref: "fieldRef",
|
|
2711
2711
|
class: V(["j-q-datetime j-q-datetime-range", {
|
|
@@ -2741,7 +2741,7 @@ function go(e, t, n, l, r, a) {
|
|
|
2741
2741
|
oe(y("div", { class: "float-placeholder" }, w(e.t("messages.pleaseSelect")), 513), [
|
|
2742
2742
|
[ie, !e.computedValueDisplay && !e.label]
|
|
2743
2743
|
]),
|
|
2744
|
-
|
|
2744
|
+
z(u, {
|
|
2745
2745
|
modelValue: e.popupVisible,
|
|
2746
2746
|
"onUpdate:modelValue": t[19] || (t[19] = (M) => e.popupVisible = M),
|
|
2747
2747
|
onHide: e.onHidePopup
|
|
@@ -2752,7 +2752,7 @@ function go(e, t, n, l, r, a) {
|
|
|
2752
2752
|
O(e.$slots, "popup-prepend")
|
|
2753
2753
|
])) : $("", !0),
|
|
2754
2754
|
y("div", _l, [
|
|
2755
|
-
|
|
2755
|
+
z(i, {
|
|
2756
2756
|
"model-value": e.range ? e.currentRangeDate : e.currentSingleDate,
|
|
2757
2757
|
"onUpdate:modelValue": t[0] || (t[0] = (M) => e.range ? e.currentRangeDate = M : e.currentSingleDate = M),
|
|
2758
2758
|
minimal: "",
|
|
@@ -2760,12 +2760,12 @@ function go(e, t, n, l, r, a) {
|
|
|
2760
2760
|
range: e.range
|
|
2761
2761
|
}, null, 8, ["model-value", "options", "range"]),
|
|
2762
2762
|
y("div", eo, [
|
|
2763
|
-
|
|
2763
|
+
z(qt, { name: "tooltip-fade" }, {
|
|
2764
2764
|
default: I(() => [
|
|
2765
2765
|
e.showScrollTooltip ? (m(), T("div", to, [
|
|
2766
2766
|
y("div", no, [
|
|
2767
2767
|
W(w(e.t("messages.date.scrollTooltip")) + " ", 1),
|
|
2768
|
-
|
|
2768
|
+
z(o, {
|
|
2769
2769
|
name: "close",
|
|
2770
2770
|
size: "14px",
|
|
2771
2771
|
class: "tooltip-close",
|
|
@@ -2781,7 +2781,7 @@ function go(e, t, n, l, r, a) {
|
|
|
2781
2781
|
y("div", lo, [
|
|
2782
2782
|
y("div", oo, w(e.t("messages.date.start")), 1),
|
|
2783
2783
|
y("div", ao, [
|
|
2784
|
-
|
|
2784
|
+
z(a, {
|
|
2785
2785
|
key: "fromH",
|
|
2786
2786
|
modelValue: e.fromH,
|
|
2787
2787
|
"onUpdate:modelValue": t[1] || (t[1] = (M) => e.fromH = M),
|
|
@@ -2793,7 +2793,7 @@ function go(e, t, n, l, r, a) {
|
|
|
2793
2793
|
onWheel: t[2] || (t[2] = _((M) => e.handleTimeWheel(M, e.fromTimeParts, "h", 23, "from"), ["prevent"]))
|
|
2794
2794
|
}, null, 8, ["modelValue", "label"]),
|
|
2795
2795
|
t[21] || (t[21] = y("div", { class: "text-caption" }, ":", -1)),
|
|
2796
|
-
|
|
2796
|
+
z(a, {
|
|
2797
2797
|
key: "fromM",
|
|
2798
2798
|
modelValue: e.fromM,
|
|
2799
2799
|
"onUpdate:modelValue": t[3] || (t[3] = (M) => e.fromM = M),
|
|
@@ -2805,7 +2805,7 @@ function go(e, t, n, l, r, a) {
|
|
|
2805
2805
|
onWheel: t[4] || (t[4] = _((M) => e.handleTimeWheel(M, e.fromTimeParts, "m", 59, "from"), ["prevent"]))
|
|
2806
2806
|
}, null, 8, ["modelValue", "label"]),
|
|
2807
2807
|
t[22] || (t[22] = y("div", { class: "text-caption" }, ":", -1)),
|
|
2808
|
-
|
|
2808
|
+
z(a, {
|
|
2809
2809
|
key: "fromS",
|
|
2810
2810
|
modelValue: e.fromS,
|
|
2811
2811
|
"onUpdate:modelValue": t[5] || (t[5] = (M) => e.fromS = M),
|
|
@@ -2821,7 +2821,7 @@ function go(e, t, n, l, r, a) {
|
|
|
2821
2821
|
y("div", so, [
|
|
2822
2822
|
y("div", io, w(e.t("messages.date.end")), 1),
|
|
2823
2823
|
y("div", ro, [
|
|
2824
|
-
|
|
2824
|
+
z(a, {
|
|
2825
2825
|
key: "toH",
|
|
2826
2826
|
modelValue: e.toH,
|
|
2827
2827
|
"onUpdate:modelValue": t[7] || (t[7] = (M) => e.toH = M),
|
|
@@ -2833,7 +2833,7 @@ function go(e, t, n, l, r, a) {
|
|
|
2833
2833
|
onWheel: t[8] || (t[8] = _((M) => e.handleTimeWheel(M, e.toTimeParts, "h", 23, "to"), ["prevent"]))
|
|
2834
2834
|
}, null, 8, ["modelValue", "label"]),
|
|
2835
2835
|
t[23] || (t[23] = y("div", { class: "text-caption" }, ":", -1)),
|
|
2836
|
-
|
|
2836
|
+
z(a, {
|
|
2837
2837
|
key: "toM",
|
|
2838
2838
|
modelValue: e.toM,
|
|
2839
2839
|
"onUpdate:modelValue": t[9] || (t[9] = (M) => e.toM = M),
|
|
@@ -2845,7 +2845,7 @@ function go(e, t, n, l, r, a) {
|
|
|
2845
2845
|
onWheel: t[10] || (t[10] = _((M) => e.handleTimeWheel(M, e.toTimeParts, "m", 59, "to"), ["prevent"]))
|
|
2846
2846
|
}, null, 8, ["modelValue", "label"]),
|
|
2847
2847
|
t[24] || (t[24] = y("div", { class: "text-caption" }, ":", -1)),
|
|
2848
|
-
|
|
2848
|
+
z(a, {
|
|
2849
2849
|
key: "toS",
|
|
2850
2850
|
modelValue: e.toS,
|
|
2851
2851
|
"onUpdate:modelValue": t[11] || (t[11] = (M) => e.toS = M),
|
|
@@ -2862,7 +2862,7 @@ function go(e, t, n, l, r, a) {
|
|
|
2862
2862
|
y("div", uo, [
|
|
2863
2863
|
y("div", co, w(e.t("messages.date.hour")) + "/" + w(e.t("messages.date.minute")) + "/" + w(e.t("messages.date.second")), 1),
|
|
2864
2864
|
y("div", Mo, [
|
|
2865
|
-
|
|
2865
|
+
z(a, {
|
|
2866
2866
|
key: "singleH",
|
|
2867
2867
|
modelValue: e.singleH,
|
|
2868
2868
|
"onUpdate:modelValue": t[13] || (t[13] = (M) => e.singleH = M),
|
|
@@ -2874,7 +2874,7 @@ function go(e, t, n, l, r, a) {
|
|
|
2874
2874
|
onWheel: t[14] || (t[14] = _((M) => e.handleTimeWheel(M, e.singleTimeParts, "h", 23, "single"), ["prevent"]))
|
|
2875
2875
|
}, null, 8, ["modelValue", "label"]),
|
|
2876
2876
|
t[25] || (t[25] = y("div", { class: "text-caption" }, ":", -1)),
|
|
2877
|
-
|
|
2877
|
+
z(a, {
|
|
2878
2878
|
key: "singleM",
|
|
2879
2879
|
modelValue: e.singleM,
|
|
2880
2880
|
"onUpdate:modelValue": t[15] || (t[15] = (M) => e.singleM = M),
|
|
@@ -2886,7 +2886,7 @@ function go(e, t, n, l, r, a) {
|
|
|
2886
2886
|
onWheel: t[16] || (t[16] = _((M) => e.handleTimeWheel(M, e.singleTimeParts, "m", 59, "single"), ["prevent"]))
|
|
2887
2887
|
}, null, 8, ["modelValue", "label"]),
|
|
2888
2888
|
t[26] || (t[26] = y("div", { class: "text-caption" }, ":", -1)),
|
|
2889
|
-
|
|
2889
|
+
z(a, {
|
|
2890
2890
|
key: "singleS",
|
|
2891
2891
|
modelValue: e.singleS,
|
|
2892
2892
|
"onUpdate:modelValue": t[17] || (t[17] = (M) => e.singleS = M),
|
|
@@ -2904,7 +2904,7 @@ function go(e, t, n, l, r, a) {
|
|
|
2904
2904
|
y("div", { class: "row q-gutter-x-xs items-center" })
|
|
2905
2905
|
], -1))
|
|
2906
2906
|
], 64)),
|
|
2907
|
-
|
|
2907
|
+
z(c, {
|
|
2908
2908
|
label: e.t("messages.date.confirm"),
|
|
2909
2909
|
onClick: e.handleConfirm,
|
|
2910
2910
|
unelevated: "",
|
|
@@ -2927,14 +2927,14 @@ function et(e) {
|
|
|
2927
2927
|
return e === !1 ? !1 : e === 0 || String(e) === "0" || e ? e : "--";
|
|
2928
2928
|
}
|
|
2929
2929
|
function St(e) {
|
|
2930
|
-
const { size: t, unit: n = "B", maxUnit: l, numberFormatOptions: r } = e, { size:
|
|
2931
|
-
return `${
|
|
2930
|
+
const { size: t, unit: n = "B", maxUnit: l, numberFormatOptions: r } = e, { size: s, unit: i } = Oe({ size: t, unit: n }, { maxUnit: l });
|
|
2931
|
+
return `${s.toLocaleString(void 0, r)} ${i}`;
|
|
2932
2932
|
}
|
|
2933
2933
|
function Oe(e, t) {
|
|
2934
|
-
const n = ["B", "KB", "MB", "GB", "TB"], { size: l, unit: r = "B" } = e,
|
|
2935
|
-
if (
|
|
2936
|
-
const
|
|
2937
|
-
return
|
|
2934
|
+
const n = ["B", "KB", "MB", "GB", "TB"], { size: l, unit: r = "B" } = e, s = n.indexOf(r);
|
|
2935
|
+
if (s === -1 || s === n.length - 1) return { size: l, unit: r };
|
|
2936
|
+
const i = (t == null ? void 0 : t.maxUnit) || "TB", o = n.indexOf(i);
|
|
2937
|
+
return s === o ? { size: l, unit: r } : l < 1024 ? { size: l, unit: r } : Oe({ size: l / 1024, unit: n[s + 1] }, t);
|
|
2938
2938
|
}
|
|
2939
2939
|
function ut(e, t = "--") {
|
|
2940
2940
|
return (n, l) => n === 0 || n === "0" ? e ? e(n, l) : n : n ? e ? e(n, l) : n.toString() : t;
|
|
@@ -2968,10 +2968,10 @@ function mo(e = "YYYY-MM-DD HH:mm:ss", t = "--") {
|
|
|
2968
2968
|
if (!n || n === "Invalid Date")
|
|
2969
2969
|
return t;
|
|
2970
2970
|
try {
|
|
2971
|
-
const
|
|
2972
|
-
return !
|
|
2973
|
-
} catch (
|
|
2974
|
-
return console.error("Date formatting failed:",
|
|
2971
|
+
const s = R.formatDate(r, e);
|
|
2972
|
+
return !s || s === "Invalid Date" ? t : s;
|
|
2973
|
+
} catch (s) {
|
|
2974
|
+
return console.error("Date formatting failed:", s), t;
|
|
2975
2975
|
}
|
|
2976
2976
|
};
|
|
2977
2977
|
}
|
|
@@ -2991,14 +2991,14 @@ function po(e = "--", t) {
|
|
|
2991
2991
|
function fo(e = "--", t) {
|
|
2992
2992
|
return ut((l) => {
|
|
2993
2993
|
const r = ["B", "KB", "MB", "GB", "TB"];
|
|
2994
|
-
let
|
|
2994
|
+
let s = typeof l == "string" ? Number(l) : l, i = (t == null ? void 0 : t.unit) || "B";
|
|
2995
2995
|
const o = (t == null ? void 0 : t.digits) ?? 2;
|
|
2996
|
-
if (
|
|
2997
|
-
return `${
|
|
2998
|
-
let
|
|
2999
|
-
for (
|
|
3000
|
-
|
|
3001
|
-
return `${
|
|
2996
|
+
if (s === 0)
|
|
2997
|
+
return `${s.toFixed(o)} ${i}`;
|
|
2998
|
+
let a = r.indexOf(i);
|
|
2999
|
+
for (a === -1 && (a = 0, i = "B"); a < r.length - 1 && s % 1024 === 0; )
|
|
3000
|
+
s = s / 1024, a++, i = r[a];
|
|
3001
|
+
return `${s.toFixed(o)} ${i}`;
|
|
3002
3002
|
}, e);
|
|
3003
3003
|
}
|
|
3004
3004
|
const yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -3045,7 +3045,7 @@ const yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3045
3045
|
setup(e, { slots: t }) {
|
|
3046
3046
|
const n = (d) => d.visible === void 0 || d.visible === null ? !0 : typeof d.visible == "boolean" ? d.visible : typeof d.visible == "function" ? d.visible(e.data) : !0, l = C(() => e.items.filter((d) => n(d))), r = C(() => e.layout === "horizontal-left" ? {
|
|
3047
3047
|
"--label-width": e.labelWidth
|
|
3048
|
-
} : {}),
|
|
3048
|
+
} : {}), s = C(() => e.items.filter((d) => Reflect.has(t, `item-value-${d.name}`))), i = (d, p) => {
|
|
3049
3049
|
const { options: A, findByKey: v, displayKey: Q = "label" } = d;
|
|
3050
3050
|
if (!A || !v)
|
|
3051
3051
|
return p;
|
|
@@ -3055,14 +3055,14 @@ const yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3055
3055
|
let p = e.data[d.name];
|
|
3056
3056
|
if (p == null || p === "")
|
|
3057
3057
|
return "--";
|
|
3058
|
-
if (d.options && d.findByKey && (p =
|
|
3058
|
+
if (d.options && d.findByKey && (p = i(d, p)), d.format && typeof d.format == "function" && (p = d.format(p, e.data)), d.date) {
|
|
3059
3059
|
if (d.date === !0 && typeof d.date == "boolean")
|
|
3060
3060
|
return be(p);
|
|
3061
3061
|
if (typeof d.date == "string")
|
|
3062
3062
|
return be(p, d.date);
|
|
3063
3063
|
}
|
|
3064
3064
|
return String(p);
|
|
3065
|
-
},
|
|
3065
|
+
}, a = (d) => {
|
|
3066
3066
|
let p = e.data[d.name];
|
|
3067
3067
|
const { options: A, findByKey: v } = d;
|
|
3068
3068
|
if (!A || !v)
|
|
@@ -3072,14 +3072,14 @@ const yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3072
3072
|
}, c = (d) => d.onClick ? d.clickable === void 0 || d.clickable === null ? !0 : typeof d.clickable == "boolean" ? d.clickable : typeof d.clickable == "function" ? d.clickable(e.data) : !1 : !1;
|
|
3073
3073
|
return {
|
|
3074
3074
|
visibleItems: l,
|
|
3075
|
-
getOptionClass:
|
|
3076
|
-
computedSlotItems:
|
|
3075
|
+
getOptionClass: a,
|
|
3076
|
+
computedSlotItems: s,
|
|
3077
3077
|
getDefaultValue: o,
|
|
3078
3078
|
getCopyValue: (d) => {
|
|
3079
3079
|
let p = e.data[d.name];
|
|
3080
3080
|
if (p == null || p === "")
|
|
3081
3081
|
return "";
|
|
3082
|
-
if (d.options && d.findByKey && (p =
|
|
3082
|
+
if (d.options && d.findByKey && (p = i(d, p)), d.format && typeof d.format == "function" && (p = d.format(p, e.data), typeof p == "string" && p.includes("<"))) {
|
|
3083
3083
|
const A = document.createElement("div");
|
|
3084
3084
|
A.innerHTML = p, p = A.textContent || A.innerText || "";
|
|
3085
3085
|
}
|
|
@@ -3114,8 +3114,8 @@ const yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3114
3114
|
key: 0,
|
|
3115
3115
|
class: "value-suffix q-ml-xs"
|
|
3116
3116
|
};
|
|
3117
|
-
function $o(e, t, n, l, r,
|
|
3118
|
-
const
|
|
3117
|
+
function $o(e, t, n, l, r, s) {
|
|
3118
|
+
const i = N("q-tooltip"), o = N("q-icon"), a = N("j-q-tooltip"), c = N("j-c-copy");
|
|
3119
3119
|
return e.layout === "vertical" ? (m(), T("div", {
|
|
3120
3120
|
key: 0,
|
|
3121
3121
|
class: V(["row", e.gutter])
|
|
@@ -3133,7 +3133,7 @@ function $o(e, t, n, l, r, a) {
|
|
|
3133
3133
|
class: "q-ml-xs tip-icon"
|
|
3134
3134
|
}, {
|
|
3135
3135
|
default: I(() => [
|
|
3136
|
-
|
|
3136
|
+
z(i, {
|
|
3137
3137
|
class: "j-q-tooltip-content",
|
|
3138
3138
|
anchor: "top middle",
|
|
3139
3139
|
self: "bottom middle",
|
|
@@ -3167,7 +3167,7 @@ function $o(e, t, n, l, r, a) {
|
|
|
3167
3167
|
innerHTML: e.getDefaultValue(u),
|
|
3168
3168
|
class: V([e.getOptionClass(u), "html-content"]),
|
|
3169
3169
|
style: H(e.getHtmlStyle(u))
|
|
3170
|
-
}, null, 14, No)) : (m(), Y(
|
|
3170
|
+
}, null, 14, No)) : (m(), Y(a, {
|
|
3171
3171
|
key: 2,
|
|
3172
3172
|
content: e.getDefaultValue(u),
|
|
3173
3173
|
lines: u.whiteSpace || 1,
|
|
@@ -3206,7 +3206,7 @@ function $o(e, t, n, l, r, a) {
|
|
|
3206
3206
|
class: "q-ml-xs tip-icon"
|
|
3207
3207
|
}, {
|
|
3208
3208
|
default: I(() => [
|
|
3209
|
-
|
|
3209
|
+
z(i, {
|
|
3210
3210
|
anchor: "top middle",
|
|
3211
3211
|
self: "bottom middle",
|
|
3212
3212
|
offset: [10, 10],
|
|
@@ -3237,7 +3237,7 @@ function $o(e, t, n, l, r, a) {
|
|
|
3237
3237
|
innerHTML: e.getDefaultValue(u),
|
|
3238
3238
|
class: V([e.getOptionClass(u), "html-content"]),
|
|
3239
3239
|
style: H(e.getHtmlStyle(u))
|
|
3240
|
-
}, null, 14, ho)) : (m(), Y(
|
|
3240
|
+
}, null, 14, ho)) : (m(), Y(a, {
|
|
3241
3241
|
key: 2,
|
|
3242
3242
|
content: e.getDefaultValue(u),
|
|
3243
3243
|
lines: u.whiteSpace || 1,
|
|
@@ -3278,7 +3278,7 @@ function $o(e, t, n, l, r, a) {
|
|
|
3278
3278
|
class: "q-ml-xs tip-icon"
|
|
3279
3279
|
}, {
|
|
3280
3280
|
default: I(() => [
|
|
3281
|
-
|
|
3281
|
+
z(i, {
|
|
3282
3282
|
anchor: "top middle",
|
|
3283
3283
|
self: "bottom middle",
|
|
3284
3284
|
offset: [10, 10],
|
|
@@ -3309,7 +3309,7 @@ function $o(e, t, n, l, r, a) {
|
|
|
3309
3309
|
innerHTML: e.getDefaultValue(u),
|
|
3310
3310
|
class: V([e.getOptionClass(u), "html-content"]),
|
|
3311
3311
|
style: H(e.getHtmlStyle(u))
|
|
3312
|
-
}, null, 14, Oo)) : (m(), Y(
|
|
3312
|
+
}, null, 14, Oo)) : (m(), Y(a, {
|
|
3313
3313
|
key: 2,
|
|
3314
3314
|
content: e.getDefaultValue(u),
|
|
3315
3315
|
lines: u.whiteSpace || 1,
|
|
@@ -3354,25 +3354,25 @@ const Is = /* @__PURE__ */ B(Io, [["render", $o], ["__scopeId", "data-v-dd8b449a
|
|
|
3354
3354
|
},
|
|
3355
3355
|
slots: Object,
|
|
3356
3356
|
setup(e, { emit: t, slots: n }) {
|
|
3357
|
-
const { t: l } = K(), r = h(null),
|
|
3357
|
+
const { t: l } = K(), r = h(null), s = h(e.modelValue ?? []), i = C({
|
|
3358
3358
|
get() {
|
|
3359
|
-
return e.modelValue ??
|
|
3359
|
+
return e.modelValue ?? s.value ?? [];
|
|
3360
3360
|
},
|
|
3361
3361
|
set(D) {
|
|
3362
|
-
t("update:modelValue", D),
|
|
3362
|
+
t("update:modelValue", D), s.value = D;
|
|
3363
3363
|
}
|
|
3364
|
-
}), o = h(!1),
|
|
3365
|
-
const k =
|
|
3364
|
+
}), o = h(!1), a = C(() => Number(e.maxlength) || 0), c = C(() => a.value > 0 && a.value <= i.value.length), u = (D) => D != null && D.length ? Array.from(D) : [], g = async (D) => {
|
|
3365
|
+
const k = i.value.length, S = a.value - k;
|
|
3366
3366
|
let Z = [...D];
|
|
3367
|
-
if (
|
|
3368
|
-
Qe.show({ type: "error", content: l("messages.jQFile.maxlength", { count:
|
|
3367
|
+
if (a.value > 0 && S <= 0) {
|
|
3368
|
+
Qe.show({ type: "error", content: l("messages.jQFile.maxlength", { count: a.value }) });
|
|
3369
3369
|
return;
|
|
3370
3370
|
}
|
|
3371
|
-
if (
|
|
3371
|
+
if (a.value > 0 && Z.length > S && (Z = Z.slice(0, S)), e.beforeHandle) {
|
|
3372
3372
|
const P = await e.beforeHandle(Z);
|
|
3373
|
-
P && (
|
|
3373
|
+
P && (i.value = [...i.value, ...P]);
|
|
3374
3374
|
} else
|
|
3375
|
-
|
|
3375
|
+
i.value = [...i.value, ...Z];
|
|
3376
3376
|
}, M = () => {
|
|
3377
3377
|
var D;
|
|
3378
3378
|
(D = r.value) == null || D.click();
|
|
@@ -3394,14 +3394,14 @@ const Is = /* @__PURE__ */ B(Io, [["render", $o], ["__scopeId", "data-v-dd8b449a
|
|
|
3394
3394
|
const { size: k, unit: S } = Oe({ size: D.size });
|
|
3395
3395
|
return `${k.toLocaleString()} ${S}`;
|
|
3396
3396
|
}, E = (D, k) => {
|
|
3397
|
-
const S = [...
|
|
3398
|
-
S.splice(k, 1),
|
|
3399
|
-
},
|
|
3397
|
+
const S = [...i.value];
|
|
3398
|
+
S.splice(k, 1), i.value = S;
|
|
3399
|
+
}, j = C(() => Reflect.has(n, "hint"));
|
|
3400
3400
|
return {
|
|
3401
3401
|
t: l,
|
|
3402
3402
|
fileInputRef: r,
|
|
3403
|
-
computedValue:
|
|
3404
|
-
computedMaxlength:
|
|
3403
|
+
computedValue: i,
|
|
3404
|
+
computedMaxlength: a,
|
|
3405
3405
|
isDragging: o,
|
|
3406
3406
|
isMaxlength: c,
|
|
3407
3407
|
browseFile: M,
|
|
@@ -3412,7 +3412,7 @@ const Is = /* @__PURE__ */ B(Io, [["render", $o], ["__scopeId", "data-v-dd8b449a
|
|
|
3412
3412
|
dropFile: p,
|
|
3413
3413
|
getFileSizeDisplay: q,
|
|
3414
3414
|
deleteFile: E,
|
|
3415
|
-
hasSlotHint:
|
|
3415
|
+
hasSlotHint: j
|
|
3416
3416
|
};
|
|
3417
3417
|
}
|
|
3418
3418
|
}), Vo = { class: "j-q-file" }, Qo = { class: "fs-14 q-mt-sm" }, Po = { class: "text-grey fs-12 q-mt-xs" }, qo = { class: "file-filers" }, Uo = { class: "filer-content" }, Bo = ["title"], Zo = {
|
|
@@ -3422,10 +3422,10 @@ const Is = /* @__PURE__ */ B(Io, [["render", $o], ["__scopeId", "data-v-dd8b449a
|
|
|
3422
3422
|
key: 0,
|
|
3423
3423
|
class: "file-hint"
|
|
3424
3424
|
};
|
|
3425
|
-
function xo(e, t, n, l, r,
|
|
3426
|
-
const
|
|
3425
|
+
function xo(e, t, n, l, r, s) {
|
|
3426
|
+
const i = N("q-icon"), o = N("q-btn"), a = N("q-field");
|
|
3427
3427
|
return m(), T("div", Vo, [
|
|
3428
|
-
|
|
3428
|
+
z(a, {
|
|
3429
3429
|
modelValue: e.computedValue,
|
|
3430
3430
|
"onUpdate:modelValue": t[6] || (t[6] = (c) => e.computedValue = c),
|
|
3431
3431
|
borderless: "",
|
|
@@ -3444,7 +3444,7 @@ function xo(e, t, n, l, r, a) {
|
|
|
3444
3444
|
onDrop: t[3] || (t[3] = _((...c) => e.dropFile && e.dropFile(...c), ["prevent"])),
|
|
3445
3445
|
onClick: t[4] || (t[4] = (...c) => e.browseFile && e.browseFile(...c))
|
|
3446
3446
|
}, [
|
|
3447
|
-
|
|
3447
|
+
z(i, {
|
|
3448
3448
|
class: "action-icon",
|
|
3449
3449
|
name: "app:upload",
|
|
3450
3450
|
size: "32px"
|
|
@@ -3468,7 +3468,7 @@ function xo(e, t, n, l, r, a) {
|
|
|
3468
3468
|
}, w(c.name), 9, Bo),
|
|
3469
3469
|
c.size ? (m(), T("div", Zo, w(e.getFileSizeDisplay(c)), 1)) : $("", !0)
|
|
3470
3470
|
]),
|
|
3471
|
-
|
|
3471
|
+
z(o, {
|
|
3472
3472
|
class: "filer-remove",
|
|
3473
3473
|
dense: "",
|
|
3474
3474
|
flat: "",
|
|
@@ -3524,7 +3524,7 @@ const Ds = /* @__PURE__ */ B(Yo, [["render", xo]]), Go = U({
|
|
|
3524
3524
|
"update:modelValue": (e) => !0
|
|
3525
3525
|
},
|
|
3526
3526
|
setup(e, { emit: t, expose: n, slots: l }) {
|
|
3527
|
-
const r = h(e.modelValue ?? []),
|
|
3527
|
+
const r = h(e.modelValue ?? []), s = h(null), { t: i } = K(), o = h(""), a = C(() => Object.keys(l)), c = (p, A) => {
|
|
3528
3528
|
A(() => {
|
|
3529
3529
|
});
|
|
3530
3530
|
}, u = (p, A) => {
|
|
@@ -3532,16 +3532,16 @@ const Ds = /* @__PURE__ */ B(Yo, [["render", xo]]), Go = U({
|
|
|
3532
3532
|
const v = p.trim();
|
|
3533
3533
|
if (o.value = "", v.length > 0) {
|
|
3534
3534
|
if (e.maxlength > 0 && r.value && r.value.length >= e.maxlength) {
|
|
3535
|
-
o.value =
|
|
3535
|
+
o.value = i("messages.formRules.maxLengthExceeded", { max: e.maxlength }), (Q = s.value) == null || Q.focus();
|
|
3536
3536
|
return;
|
|
3537
3537
|
}
|
|
3538
3538
|
if (!e.allowDuplicates && r.value && r.value.includes(v)) {
|
|
3539
|
-
o.value =
|
|
3539
|
+
o.value = i("messages.formRules.duplicateItemNotAllowed", { value: v }), (q = s.value) == null || q.focus();
|
|
3540
3540
|
return;
|
|
3541
3541
|
}
|
|
3542
|
-
let
|
|
3542
|
+
let j = !0;
|
|
3543
3543
|
const { name: D, args: k } = bn(e.addRulesName);
|
|
3544
|
-
e.addRulesName && (
|
|
3544
|
+
e.addRulesName && (j = Tn(D, v, k, i)), j === !0 && A(v, "add"), j !== !0 && (o.value = j, (E = s.value) == null || E.focus());
|
|
3545
3545
|
}
|
|
3546
3546
|
};
|
|
3547
3547
|
G(
|
|
@@ -3554,7 +3554,7 @@ const Ds = /* @__PURE__ */ B(Yo, [["render", xo]]), Go = U({
|
|
|
3554
3554
|
() => r.value,
|
|
3555
3555
|
(p) => {
|
|
3556
3556
|
var A;
|
|
3557
|
-
t("update:modelValue", p), o.value = "", e.rules && e.rules.length > 0 && ((A =
|
|
3557
|
+
t("update:modelValue", p), o.value = "", e.rules && e.rules.length > 0 && ((A = s.value) == null || A.validate());
|
|
3558
3558
|
}
|
|
3559
3559
|
);
|
|
3560
3560
|
const g = (p) => {
|
|
@@ -3567,28 +3567,28 @@ const Ds = /* @__PURE__ */ B(Yo, [["render", xo]]), Go = U({
|
|
|
3567
3567
|
return n({
|
|
3568
3568
|
validate: () => {
|
|
3569
3569
|
var p;
|
|
3570
|
-
return ((p =
|
|
3570
|
+
return ((p = s.value) == null ? void 0 : p.validate()) ?? !1;
|
|
3571
3571
|
},
|
|
3572
3572
|
resetValidation: () => {
|
|
3573
3573
|
var p;
|
|
3574
|
-
return (p =
|
|
3574
|
+
return (p = s.value) == null ? void 0 : p.resetValidation();
|
|
3575
3575
|
}
|
|
3576
3576
|
}), {
|
|
3577
|
-
t:
|
|
3577
|
+
t: i,
|
|
3578
3578
|
newValueErrorMessage: o,
|
|
3579
3579
|
innerModel: r,
|
|
3580
|
-
qSelectRef:
|
|
3580
|
+
qSelectRef: s,
|
|
3581
3581
|
filterFn: c,
|
|
3582
3582
|
handleNewValue: u,
|
|
3583
3583
|
handleUpdateModelValue: g,
|
|
3584
3584
|
handleBlur: d,
|
|
3585
3585
|
change: M,
|
|
3586
|
-
slotNames:
|
|
3586
|
+
slotNames: a
|
|
3587
3587
|
};
|
|
3588
3588
|
}
|
|
3589
3589
|
}), Ho = { class: "select-selected-item" };
|
|
3590
|
-
function Fo(e, t, n, l, r,
|
|
3591
|
-
const
|
|
3590
|
+
function Fo(e, t, n, l, r, s) {
|
|
3591
|
+
const i = N("q-icon"), o = N("q-select");
|
|
3592
3592
|
return m(), Y(o, {
|
|
3593
3593
|
class: "j-q-select-new-value",
|
|
3594
3594
|
"model-value": e.innerModel,
|
|
@@ -3618,21 +3618,21 @@ function Fo(e, t, n, l, r, a) {
|
|
|
3618
3618
|
error: !!e.newValueErrorMessage,
|
|
3619
3619
|
"error-message": e.newValueErrorMessage
|
|
3620
3620
|
}, we({ _: 2 }, [
|
|
3621
|
-
ne(e.slotNames, (
|
|
3622
|
-
name:
|
|
3621
|
+
ne(e.slotNames, (a) => ({
|
|
3622
|
+
name: a,
|
|
3623
3623
|
fn: I((c) => [
|
|
3624
|
-
O(e.$slots,
|
|
3624
|
+
O(e.$slots, a, ue(ge(c)))
|
|
3625
3625
|
])
|
|
3626
3626
|
})),
|
|
3627
3627
|
e.useChips ? {
|
|
3628
3628
|
name: "selected-item",
|
|
3629
|
-
fn: I((
|
|
3629
|
+
fn: I((a) => [
|
|
3630
3630
|
y("span", Ho, [
|
|
3631
|
-
y("span", null, w(
|
|
3632
|
-
|
|
3631
|
+
y("span", null, w(a.opt), 1),
|
|
3632
|
+
z(i, {
|
|
3633
3633
|
name: "close",
|
|
3634
3634
|
class: "cursor-pointer q-ml-xs",
|
|
3635
|
-
onClick: _((c) =>
|
|
3635
|
+
onClick: _((c) => a.removeAtIndex(a.index), ["stop"]),
|
|
3636
3636
|
color: "grey"
|
|
3637
3637
|
}, null, 8, ["onClick"])
|
|
3638
3638
|
])
|
|
@@ -3677,8 +3677,8 @@ const As = /* @__PURE__ */ B(Go, [["render", Fo]]), Jo = U({
|
|
|
3677
3677
|
},
|
|
3678
3678
|
// q-option-group 不支持 slots 扩展,故省略 slots 定义
|
|
3679
3679
|
setup(e, { emit: t }) {
|
|
3680
|
-
const n = h(e.modelValue ?? null), l = C(() => e.options ? e.options.map((
|
|
3681
|
-
...
|
|
3680
|
+
const n = h(e.modelValue ?? null), l = C(() => e.options ? e.options.map((i) => ({
|
|
3681
|
+
...i,
|
|
3682
3682
|
...{
|
|
3683
3683
|
radio: {
|
|
3684
3684
|
checkedIcon: "app:radio-checked",
|
|
@@ -3693,29 +3693,29 @@ const As = /* @__PURE__ */ B(Go, [["render", Fo]]), Jo = U({
|
|
|
3693
3693
|
})) : []), r = C(() => e.inline ? "" : `inline-span-${e.inlineSpanCount}`);
|
|
3694
3694
|
return G(
|
|
3695
3695
|
() => e.modelValue,
|
|
3696
|
-
(
|
|
3697
|
-
|
|
3696
|
+
(i) => {
|
|
3697
|
+
i !== n.value && (n.value = i ?? null);
|
|
3698
3698
|
},
|
|
3699
3699
|
{ immediate: !0 }
|
|
3700
3700
|
// 立即执行一次,确保初始值设置正确
|
|
3701
3701
|
), G(
|
|
3702
3702
|
() => n.value,
|
|
3703
|
-
(
|
|
3704
|
-
t("update:modelValue",
|
|
3703
|
+
(i) => {
|
|
3704
|
+
t("update:modelValue", i);
|
|
3705
3705
|
}
|
|
3706
3706
|
), {
|
|
3707
3707
|
computedInlineSpanClass: r,
|
|
3708
3708
|
innerModel: n,
|
|
3709
3709
|
computedOptions: l,
|
|
3710
|
-
change: (
|
|
3711
|
-
t("change",
|
|
3710
|
+
change: (i) => {
|
|
3711
|
+
t("change", i);
|
|
3712
3712
|
}
|
|
3713
3713
|
};
|
|
3714
3714
|
}
|
|
3715
3715
|
});
|
|
3716
|
-
function Ko(e, t, n, l, r,
|
|
3716
|
+
function Ko(e, t, n, l, r, s) {
|
|
3717
3717
|
var u;
|
|
3718
|
-
const
|
|
3718
|
+
const i = N("q-tooltip"), o = N("q-icon"), a = N("q-option-group"), c = N("q-field");
|
|
3719
3719
|
return m(), Y(c, {
|
|
3720
3720
|
class: V(["j-q-option-group no-border-field", [{ "inline-block": e.inline, "q-mb-xs": !((u = e.rules) != null && u.length) }, e.filedClass]]),
|
|
3721
3721
|
label: e.label,
|
|
@@ -3730,7 +3730,7 @@ function Ko(e, t, n, l, r, a) {
|
|
|
3730
3730
|
"onUpdate:modelValue": t[1] || (t[1] = (g) => e.innerModel = g)
|
|
3731
3731
|
}, {
|
|
3732
3732
|
control: I(() => [
|
|
3733
|
-
|
|
3733
|
+
z(a, {
|
|
3734
3734
|
modelValue: e.innerModel,
|
|
3735
3735
|
"onUpdate:modelValue": t[0] || (t[0] = (g) => e.innerModel = g),
|
|
3736
3736
|
class: V(e.computedInlineSpanClass),
|
|
@@ -3752,7 +3752,7 @@ function Ko(e, t, n, l, r, a) {
|
|
|
3752
3752
|
class: "q-ml-xs"
|
|
3753
3753
|
}, {
|
|
3754
3754
|
default: I(() => [
|
|
3755
|
-
|
|
3755
|
+
z(i, {
|
|
3756
3756
|
anchor: "top middle",
|
|
3757
3757
|
self: "bottom middle",
|
|
3758
3758
|
offset: [10, 10]
|
|
@@ -3803,19 +3803,19 @@ const Ns = /* @__PURE__ */ B(Jo, [["render", Ko], ["__scopeId", "data-v-cd2d30aa
|
|
|
3803
3803
|
};
|
|
3804
3804
|
}), r = () => {
|
|
3805
3805
|
e.trigger === "click" && t.value && t.value.toggle();
|
|
3806
|
-
}, a = () => {
|
|
3807
|
-
e.trigger === "hover" && t.value && t.value.show();
|
|
3808
3806
|
}, s = () => {
|
|
3807
|
+
e.trigger === "hover" && t.value && t.value.show();
|
|
3808
|
+
}, i = () => {
|
|
3809
3809
|
e.trigger === "hover" && t.value && t.value.hide();
|
|
3810
3810
|
};
|
|
3811
3811
|
return he(() => {
|
|
3812
|
-
var
|
|
3813
|
-
const o = ((
|
|
3814
|
-
o && (e.trigger === "click" ? o.addEventListener("click", r) : e.trigger === "hover" && (o.addEventListener("mouseenter",
|
|
3812
|
+
var a;
|
|
3813
|
+
const o = ((a = n.value) == null ? void 0 : a.$el) || document.querySelector(".inline-block");
|
|
3814
|
+
o && (e.trigger === "click" ? o.addEventListener("click", r) : e.trigger === "hover" && (o.addEventListener("mouseenter", s), o.addEventListener("mouseleave", i)));
|
|
3815
3815
|
}), Ut(() => {
|
|
3816
|
-
var
|
|
3817
|
-
const o = ((
|
|
3818
|
-
o && (e.trigger === "click" ? o.removeEventListener("click", r) : e.trigger === "hover" && (o.removeEventListener("mouseenter",
|
|
3816
|
+
var a;
|
|
3817
|
+
const o = ((a = n.value) == null ? void 0 : a.$el) || document.querySelector(".inline-block");
|
|
3818
|
+
o && (e.trigger === "click" ? o.removeEventListener("click", r) : e.trigger === "hover" && (o.removeEventListener("mouseenter", s), o.removeEventListener("mouseleave", i)));
|
|
3819
3819
|
}), {
|
|
3820
3820
|
popupRef: t,
|
|
3821
3821
|
rootRef: n,
|
|
@@ -3823,22 +3823,22 @@ const Ns = /* @__PURE__ */ B(Jo, [["render", Ko], ["__scopeId", "data-v-cd2d30aa
|
|
|
3823
3823
|
};
|
|
3824
3824
|
}
|
|
3825
3825
|
}), _o = { class: "inline-block" }, ea = { class: "text-body2 text-grey" };
|
|
3826
|
-
function ta(e, t, n, l, r,
|
|
3827
|
-
const
|
|
3826
|
+
function ta(e, t, n, l, r, s) {
|
|
3827
|
+
const i = N("q-card-section"), o = N("q-card"), a = N("q-popup-proxy");
|
|
3828
3828
|
return m(), T("div", _o, [
|
|
3829
3829
|
O(e.$slots, "default", {}, void 0, !0),
|
|
3830
|
-
|
|
3830
|
+
z(a, {
|
|
3831
3831
|
ref: "popupRef",
|
|
3832
3832
|
offset: [12, 12]
|
|
3833
3833
|
}, {
|
|
3834
3834
|
default: I(() => [
|
|
3835
|
-
|
|
3835
|
+
z(o, {
|
|
3836
3836
|
class: "j-q-popover",
|
|
3837
3837
|
flat: "",
|
|
3838
3838
|
style: H(e.popoverStyle)
|
|
3839
3839
|
}, {
|
|
3840
3840
|
default: I(() => [
|
|
3841
|
-
|
|
3841
|
+
z(i, { class: "q-pa-sm" }, {
|
|
3842
3842
|
default: I(() => [
|
|
3843
3843
|
O(e.$slots, "content", {}, () => [
|
|
3844
3844
|
y("span", ea, w(e.title), 1)
|
|
@@ -3873,24 +3873,24 @@ const Cs = /* @__PURE__ */ B(Xo, [["render", ta], ["__scopeId", "data-v-8de7d551
|
|
|
3873
3873
|
},
|
|
3874
3874
|
slots: Object,
|
|
3875
3875
|
setup(e, { emit: t, expose: n }) {
|
|
3876
|
-
const { t: l } = K(), r = h(null),
|
|
3876
|
+
const { t: l } = K(), r = h(null), s = h({});
|
|
3877
3877
|
G(
|
|
3878
3878
|
() => e.modelValue,
|
|
3879
|
-
(
|
|
3880
|
-
Object.keys(
|
|
3879
|
+
(a) => {
|
|
3880
|
+
Object.keys(s.value).length === 0 && (s.value = JSON.parse(JSON.stringify(a)));
|
|
3881
3881
|
},
|
|
3882
3882
|
{ deep: !0, immediate: !0 }
|
|
3883
3883
|
);
|
|
3884
|
-
const
|
|
3884
|
+
const i = () => {
|
|
3885
3885
|
t("query");
|
|
3886
3886
|
}, o = () => {
|
|
3887
|
-
const
|
|
3888
|
-
t("update:modelValue",
|
|
3887
|
+
const a = JSON.parse(JSON.stringify(s.value));
|
|
3888
|
+
t("update:modelValue", a), t("reset");
|
|
3889
3889
|
};
|
|
3890
3890
|
return n({ searchFormRef: r }), {
|
|
3891
3891
|
t: l,
|
|
3892
3892
|
searchFormRef: r,
|
|
3893
|
-
handleClickQuery:
|
|
3893
|
+
handleClickQuery: i,
|
|
3894
3894
|
handleClickReset: o
|
|
3895
3895
|
};
|
|
3896
3896
|
}
|
|
@@ -3901,8 +3901,8 @@ const Cs = /* @__PURE__ */ B(Xo, [["render", ta], ["__scopeId", "data-v-8de7d551
|
|
|
3901
3901
|
key: 0,
|
|
3902
3902
|
class: "default-operation-buttons"
|
|
3903
3903
|
}, ra = { class: "search-bar-extra-operation" };
|
|
3904
|
-
function ua(e, t, n, l, r,
|
|
3905
|
-
const
|
|
3904
|
+
function ua(e, t, n, l, r, s) {
|
|
3905
|
+
const i = N("q-btn");
|
|
3906
3906
|
return m(), T("div", null, [
|
|
3907
3907
|
y("div", la, [
|
|
3908
3908
|
y("div", oa, [
|
|
@@ -3910,7 +3910,7 @@ function ua(e, t, n, l, r, a) {
|
|
|
3910
3910
|
y("div", sa, [
|
|
3911
3911
|
O(e.$slots, "default"),
|
|
3912
3912
|
e.operationVisible ? (m(), T("div", ia, [
|
|
3913
|
-
|
|
3913
|
+
z(i, {
|
|
3914
3914
|
color: "primary",
|
|
3915
3915
|
loading: e.queryLoading,
|
|
3916
3916
|
"no-caps": "",
|
|
@@ -3923,7 +3923,7 @@ function ua(e, t, n, l, r, a) {
|
|
|
3923
3923
|
]),
|
|
3924
3924
|
_: 1
|
|
3925
3925
|
}, 8, ["loading", "onClick"]),
|
|
3926
|
-
e.resetVisible ? (m(), Y(
|
|
3926
|
+
e.resetVisible ? (m(), Y(i, {
|
|
3927
3927
|
key: 0,
|
|
3928
3928
|
class: "operation-reset",
|
|
3929
3929
|
loading: e.resetLoading,
|
|
@@ -3990,18 +3990,18 @@ const js = /* @__PURE__ */ B(na, [["render", ua]]), da = U({
|
|
|
3990
3990
|
},
|
|
3991
3991
|
slots: Object,
|
|
3992
3992
|
setup(e, { emit: t, slots: n, expose: l }) {
|
|
3993
|
-
const r = h(null), { t:
|
|
3993
|
+
const r = h(null), { t: s } = K(), i = h(!1), o = C({
|
|
3994
3994
|
get() {
|
|
3995
3995
|
return e.multiple && (e.modelValue === null || e.modelValue === void 0) ? [] : e.modelValue;
|
|
3996
3996
|
},
|
|
3997
|
-
set(
|
|
3998
|
-
t("update:modelValue",
|
|
3997
|
+
set(j) {
|
|
3998
|
+
t("update:modelValue", j);
|
|
3999
3999
|
}
|
|
4000
|
-
}),
|
|
4001
|
-
const D = (
|
|
4000
|
+
}), a = h(e.options), c = h(""), u = h(void 0), g = C(() => !!e.optionValue), M = C(() => u.value ? u.value : c.value ? e.options.filter((j) => {
|
|
4001
|
+
const D = (j == null ? void 0 : j[e.optionLabel]) ?? JSON.stringify(j);
|
|
4002
4002
|
return String(D).toLowerCase().includes(c.value.toLowerCase());
|
|
4003
4003
|
}) : e.options), d = C(() => {
|
|
4004
|
-
const
|
|
4004
|
+
const j = e.options, D = j.length;
|
|
4005
4005
|
let k = o.value;
|
|
4006
4006
|
if (e.valueDisplayFn)
|
|
4007
4007
|
return e.valueDisplayFn(k);
|
|
@@ -4010,28 +4010,28 @@ const js = /* @__PURE__ */ B(na, [["render", ua]]), da = U({
|
|
|
4010
4010
|
if (e.multiple)
|
|
4011
4011
|
return (Array.isArray(k) ? k : []).map((P) => {
|
|
4012
4012
|
if (g.value) {
|
|
4013
|
-
const J =
|
|
4013
|
+
const J = j.find((te) => (te == null ? void 0 : te[e.optionValue]) === P);
|
|
4014
4014
|
return !J && D === 0 ? "" : (J == null ? void 0 : J[e.optionLabel]) ?? P;
|
|
4015
4015
|
}
|
|
4016
4016
|
return (P == null ? void 0 : P[e.optionLabel]) ?? P;
|
|
4017
4017
|
}).filter(Boolean).join(", ");
|
|
4018
4018
|
if (g.value) {
|
|
4019
|
-
const S =
|
|
4019
|
+
const S = j.find((Z) => (Z == null ? void 0 : Z[e.optionValue]) === k);
|
|
4020
4020
|
return !S && D === 0 ? "" : (S == null ? void 0 : S[e.optionLabel]) ?? k;
|
|
4021
4021
|
}
|
|
4022
4022
|
return (k == null ? void 0 : k[e.optionLabel]) ?? k;
|
|
4023
|
-
}), p = (
|
|
4023
|
+
}), p = (j) => {
|
|
4024
4024
|
const D = o.value;
|
|
4025
4025
|
if (!Array.isArray(D)) return "";
|
|
4026
|
-
const k = D[
|
|
4026
|
+
const k = D[j], S = e.options.find((Z) => (Z == null ? void 0 : Z[e.optionValue]) === k);
|
|
4027
4027
|
return (S == null ? void 0 : S[e.optionLabel]) ?? k;
|
|
4028
|
-
}, A = (
|
|
4028
|
+
}, A = (j) => {
|
|
4029
4029
|
const D = o.value;
|
|
4030
4030
|
if (!Array.isArray(D)) return;
|
|
4031
|
-
const k = D[
|
|
4031
|
+
const k = D[j];
|
|
4032
4032
|
return g.value ? e.options.find((S) => (S == null ? void 0 : S[e.optionValue]) === k) : typeof k == "object" && k !== null ? k : void 0;
|
|
4033
|
-
}, v = (
|
|
4034
|
-
const S =
|
|
4033
|
+
}, v = (j, D, k) => {
|
|
4034
|
+
const S = j.trim().toLowerCase();
|
|
4035
4035
|
if (e.filterFn) {
|
|
4036
4036
|
try {
|
|
4037
4037
|
e.filterFn(S, (Z) => {
|
|
@@ -4053,38 +4053,38 @@ const js = /* @__PURE__ */ B(na, [["render", ua]]), da = U({
|
|
|
4053
4053
|
D(e.options);
|
|
4054
4054
|
c.value = S, u.value = void 0;
|
|
4055
4055
|
}, Q = C(() => {
|
|
4056
|
-
let
|
|
4057
|
-
return e.popupContentClass && (
|
|
4056
|
+
let j = "j-q-select-popup select-popup-content height1";
|
|
4057
|
+
return e.popupContentClass && (j += ` ${e.popupContentClass}`), j;
|
|
4058
4058
|
}), q = () => {
|
|
4059
4059
|
de(() => {
|
|
4060
4060
|
if (r.value) {
|
|
4061
|
-
const
|
|
4062
|
-
D && (
|
|
4061
|
+
const j = r.value.$el, D = j == null ? void 0 : j.querySelector(".q-field__native span");
|
|
4062
|
+
D && (i.value = D.scrollWidth > D.clientWidth);
|
|
4063
4063
|
}
|
|
4064
4064
|
});
|
|
4065
|
-
}, E = C(() => e.filterable &&
|
|
4065
|
+
}, E = C(() => e.filterable && i.value ? !1 : e.filterable ?? e.useInput);
|
|
4066
4066
|
return G([o, d], () => {
|
|
4067
4067
|
e.filterable && q();
|
|
4068
4068
|
}), he(() => {
|
|
4069
4069
|
e.filterable && q();
|
|
4070
4070
|
}), G(
|
|
4071
4071
|
o,
|
|
4072
|
-
(
|
|
4073
|
-
e.multiple && e.closeOnSelect && r.value && Array.isArray(
|
|
4072
|
+
(j, D) => {
|
|
4073
|
+
e.multiple && e.closeOnSelect && r.value && Array.isArray(j) && Array.isArray(D) && j.length !== D.length && r.value.hidePopup();
|
|
4074
4074
|
},
|
|
4075
4075
|
{ deep: !0 }
|
|
4076
4076
|
), l({
|
|
4077
|
-
copyOptions:
|
|
4077
|
+
copyOptions: a,
|
|
4078
4078
|
validate: () => {
|
|
4079
|
-
var
|
|
4080
|
-
return ((
|
|
4079
|
+
var j;
|
|
4080
|
+
return ((j = r.value) == null ? void 0 : j.validate()) ?? !1;
|
|
4081
4081
|
},
|
|
4082
4082
|
resetValidation: () => {
|
|
4083
|
-
var
|
|
4084
|
-
return (
|
|
4083
|
+
var j;
|
|
4084
|
+
return (j = r.value) == null ? void 0 : j.resetValidation();
|
|
4085
4085
|
}
|
|
4086
4086
|
}), {
|
|
4087
|
-
t:
|
|
4087
|
+
t: s,
|
|
4088
4088
|
qSelectRef: r,
|
|
4089
4089
|
innerValue: o,
|
|
4090
4090
|
computedEmitValue: g,
|
|
@@ -4099,8 +4099,8 @@ const js = /* @__PURE__ */ B(na, [["render", ua]]), da = U({
|
|
|
4099
4099
|
};
|
|
4100
4100
|
}
|
|
4101
4101
|
}), ca = { class: "select-selected-item" };
|
|
4102
|
-
function Ma(e, t, n, l, r,
|
|
4103
|
-
const
|
|
4102
|
+
function Ma(e, t, n, l, r, s) {
|
|
4103
|
+
const i = N("q-spinner"), o = N("q-icon"), a = N("q-item-section"), c = N("q-item"), u = N("q-select");
|
|
4104
4104
|
return m(), Y(u, {
|
|
4105
4105
|
ref: "qSelectRef",
|
|
4106
4106
|
class: V([{
|
|
@@ -4140,7 +4140,7 @@ function Ma(e, t, n, l, r, a) {
|
|
|
4140
4140
|
"hide-dropdown-icon": e.readonly
|
|
4141
4141
|
}, we({
|
|
4142
4142
|
loading: I(() => [
|
|
4143
|
-
|
|
4143
|
+
z(i, {
|
|
4144
4144
|
color: "primary",
|
|
4145
4145
|
size: "14px",
|
|
4146
4146
|
thickness: 2
|
|
@@ -4213,9 +4213,9 @@ function Ma(e, t, n, l, r, a) {
|
|
|
4213
4213
|
name: "no-option",
|
|
4214
4214
|
fn: I(() => [
|
|
4215
4215
|
O(e.$slots, "no-option", {}, () => [
|
|
4216
|
-
|
|
4216
|
+
z(c, { dense: e.dense }, {
|
|
4217
4217
|
default: I(() => [
|
|
4218
|
-
|
|
4218
|
+
z(a, { class: "text-grey text-caption" }, {
|
|
4219
4219
|
default: I(() => [
|
|
4220
4220
|
W(w(e.t("messages.noData")), 1)
|
|
4221
4221
|
]),
|
|
@@ -4244,12 +4244,12 @@ function ga(e) {
|
|
|
4244
4244
|
rowsPerPage: t,
|
|
4245
4245
|
rowsNumber: 0
|
|
4246
4246
|
});
|
|
4247
|
-
return { paginationInfo: n, getPaginationParam: () => n, getNum: () => n.page, setNum: (
|
|
4248
|
-
n.page =
|
|
4249
|
-
}, setSize: (
|
|
4250
|
-
n.rowsPerPage =
|
|
4251
|
-
}, setTotal: (
|
|
4252
|
-
n.rowsNumber =
|
|
4247
|
+
return { paginationInfo: n, getPaginationParam: () => n, getNum: () => n.page, setNum: (a) => {
|
|
4248
|
+
n.page = a ?? 1;
|
|
4249
|
+
}, setSize: (a) => {
|
|
4250
|
+
n.rowsPerPage = a ?? t;
|
|
4251
|
+
}, setTotal: (a) => {
|
|
4252
|
+
n.rowsNumber = a ?? 0;
|
|
4253
4253
|
} };
|
|
4254
4254
|
}
|
|
4255
4255
|
const ma = U({
|
|
@@ -4278,11 +4278,11 @@ const ma = U({
|
|
|
4278
4278
|
totalPage: 0,
|
|
4279
4279
|
// 初始化为 0,等计算
|
|
4280
4280
|
currentPage: ""
|
|
4281
|
-
}), r = kt,
|
|
4281
|
+
}), r = kt, s = C(() => {
|
|
4282
4282
|
const { rowsNumber: g, rowsPerPage: M } = l, d = Math.ceil(g / M);
|
|
4283
4283
|
return d < 1 ? 1 : d;
|
|
4284
|
-
}),
|
|
4285
|
-
const g =
|
|
4284
|
+
}), i = C(() => `${l.page} / ${l.totalPage}`), o = C(() => {
|
|
4285
|
+
const g = s.value.toString();
|
|
4286
4286
|
return Array(g.length).fill("#").join("");
|
|
4287
4287
|
});
|
|
4288
4288
|
G(
|
|
@@ -4292,13 +4292,13 @@ const ma = U({
|
|
|
4292
4292
|
},
|
|
4293
4293
|
{ deep: !0, immediate: !0 }
|
|
4294
4294
|
), G(
|
|
4295
|
-
|
|
4295
|
+
s,
|
|
4296
4296
|
(g) => {
|
|
4297
4297
|
l.totalPage = g;
|
|
4298
4298
|
},
|
|
4299
4299
|
{ immediate: !0 }
|
|
4300
4300
|
);
|
|
4301
|
-
const
|
|
4301
|
+
const a = () => {
|
|
4302
4302
|
const g = {
|
|
4303
4303
|
page: l.page,
|
|
4304
4304
|
rowsPerPage: l.rowsPerPage,
|
|
@@ -4306,21 +4306,21 @@ const ma = U({
|
|
|
4306
4306
|
};
|
|
4307
4307
|
t("pagination", g);
|
|
4308
4308
|
}, c = () => {
|
|
4309
|
-
l.page = 1,
|
|
4309
|
+
l.page = 1, a();
|
|
4310
4310
|
}, u = () => {
|
|
4311
4311
|
if (l.currentPage) {
|
|
4312
4312
|
let g = Number(l.currentPage);
|
|
4313
|
-
isNaN(g) || g < 1 ? g = 1 : g >
|
|
4313
|
+
isNaN(g) || g < 1 ? g = 1 : g > s.value && (g = s.value), l.page = g, l.currentPage = "";
|
|
4314
4314
|
}
|
|
4315
|
-
l.page < 1 && (l.page = 1), l.page >
|
|
4315
|
+
l.page < 1 && (l.page = 1), l.page > s.value && (l.page = s.value), a();
|
|
4316
4316
|
};
|
|
4317
4317
|
return {
|
|
4318
4318
|
t: n,
|
|
4319
4319
|
internalInfo: l,
|
|
4320
4320
|
rowNumbersArr: r,
|
|
4321
|
-
currentPagePlaceholder:
|
|
4321
|
+
currentPagePlaceholder: i,
|
|
4322
4322
|
currentPageMask: o,
|
|
4323
|
-
maxPage:
|
|
4323
|
+
maxPage: s,
|
|
4324
4324
|
handleRowsPerPageChange: c,
|
|
4325
4325
|
handlePageChange: u,
|
|
4326
4326
|
paginationInput: u,
|
|
@@ -4328,14 +4328,14 @@ const ma = U({
|
|
|
4328
4328
|
};
|
|
4329
4329
|
}
|
|
4330
4330
|
}), pa = { class: "row items-center justify-end" }, fa = { style: { "margin-top": "4px" } }, ya = { style: { "margin-top": "4px", "margin-right": "24px" } }, Ia = { style: { "margin-left": "24px" } };
|
|
4331
|
-
function Da(e, t, n, l, r,
|
|
4332
|
-
const
|
|
4331
|
+
function Da(e, t, n, l, r, s) {
|
|
4332
|
+
const i = N("q-select"), o = N("q-pagination"), a = N("q-input");
|
|
4333
4333
|
return m(), T("div", null, [
|
|
4334
4334
|
y("div", pa, [
|
|
4335
4335
|
y("div", fa, [
|
|
4336
4336
|
y("span", null, w(e.t("messages.pagination.total", { total: e.internalInfo.rowsNumber })), 1)
|
|
4337
4337
|
]),
|
|
4338
|
-
|
|
4338
|
+
z(i, {
|
|
4339
4339
|
class: "my-pagination",
|
|
4340
4340
|
modelValue: e.internalInfo.rowsPerPage,
|
|
4341
4341
|
"onUpdate:modelValue": [
|
|
@@ -4354,7 +4354,7 @@ function Da(e, t, n, l, r, a) {
|
|
|
4354
4354
|
y("div", ya, [
|
|
4355
4355
|
y("span", null, w(e.t("messages.pagination.pieces_page")), 1)
|
|
4356
4356
|
]),
|
|
4357
|
-
|
|
4357
|
+
z(o, {
|
|
4358
4358
|
modelValue: e.internalInfo.page,
|
|
4359
4359
|
"onUpdate:modelValue": [
|
|
4360
4360
|
t[1] || (t[1] = (c) => e.internalInfo.page = c),
|
|
@@ -4372,7 +4372,7 @@ function Da(e, t, n, l, r, a) {
|
|
|
4372
4372
|
ripple: !1
|
|
4373
4373
|
}, null, 8, ["modelValue", "max", "onUpdate:modelValue"]),
|
|
4374
4374
|
y("p", Ia, w(e.t("messages.pagination.goto")), 1),
|
|
4375
|
-
|
|
4375
|
+
z(a, {
|
|
4376
4376
|
autofocus: !1,
|
|
4377
4377
|
modelValue: e.internalInfo.currentPage,
|
|
4378
4378
|
"onUpdate:modelValue": t[2] || (t[2] = (c) => e.internalInfo.currentPage = c),
|
|
@@ -4421,12 +4421,12 @@ const Aa = /* @__PURE__ */ B(ma, [["render", Da]]), Na = U({
|
|
|
4421
4421
|
},
|
|
4422
4422
|
slots: Object,
|
|
4423
4423
|
setup(e, { emit: t, expose: n, slots: l }) {
|
|
4424
|
-
const { t: r } = K(),
|
|
4424
|
+
const { t: r } = K(), s = h(null), i = h([]), o = h(/* @__PURE__ */ new Map()), a = h(/* @__PURE__ */ new Map()), c = (f) => Reflect.has(l, f), u = C({
|
|
4425
4425
|
get() {
|
|
4426
|
-
return e.selected ??
|
|
4426
|
+
return e.selected ?? i.value;
|
|
4427
4427
|
},
|
|
4428
4428
|
set(f) {
|
|
4429
|
-
t("update:selected", f),
|
|
4429
|
+
t("update:selected", f), i.value = f;
|
|
4430
4430
|
}
|
|
4431
4431
|
}), g = C(() => e.tableHeaderClass), M = C(() => {
|
|
4432
4432
|
var f;
|
|
@@ -4443,7 +4443,7 @@ const Aa = /* @__PURE__ */ B(ma, [["render", Da]]), Na = U({
|
|
|
4443
4443
|
}), v = C(() => {
|
|
4444
4444
|
var f;
|
|
4445
4445
|
return ((f = e.columns) == null ? void 0 : f.filter(({ limitWidth: b, whiteSpace: x, onClick: F, name: X }) => b && !x && !F && !Reflect.has(l, `body-cell-${X}`))) || [];
|
|
4446
|
-
}), { paginationInfo: Q, getPaginationParam: q, getNum: E, setNum:
|
|
4446
|
+
}), { paginationInfo: Q, getPaginationParam: q, getNum: E, setNum: j, setTotal: D, setSize: k } = ga(), S = C(() => ({
|
|
4447
4447
|
rowsPerPage: 0
|
|
4448
4448
|
})), Z = () => {
|
|
4449
4449
|
t("changeNum", Q), e.autoScrollOnChangePage && te();
|
|
@@ -4453,7 +4453,7 @@ const Aa = /* @__PURE__ */ B(ma, [["render", Da]]), Na = U({
|
|
|
4453
4453
|
t("paginationChange", f), e.autoScrollOnChangePage && te();
|
|
4454
4454
|
}, te = () => {
|
|
4455
4455
|
var b;
|
|
4456
|
-
const f = (b =
|
|
4456
|
+
const f = (b = s.value) == null ? void 0 : b.$el;
|
|
4457
4457
|
f == null || f.scrollIntoView({ behavior: "smooth" });
|
|
4458
4458
|
}, me = (f, b) => f.format && typeof f.format == "function" ? f.format(b) : b, ce = (f, b) => {
|
|
4459
4459
|
f.onClick && typeof f.onClick == "function" && f.onClick(b);
|
|
@@ -4494,12 +4494,12 @@ const Aa = /* @__PURE__ */ B(ma, [["render", Da]]), Na = U({
|
|
|
4494
4494
|
}, Ye = (f) => {
|
|
4495
4495
|
const b = o.value.get(f);
|
|
4496
4496
|
if (!b) {
|
|
4497
|
-
|
|
4497
|
+
a.value.set(f, !1);
|
|
4498
4498
|
return;
|
|
4499
4499
|
}
|
|
4500
4500
|
const x = b.scrollWidth > b.clientWidth || b.scrollHeight > b.clientHeight;
|
|
4501
|
-
|
|
4502
|
-
}, We = (f) =>
|
|
4501
|
+
a.value.set(f, x);
|
|
4502
|
+
}, We = (f) => a.value.get(f) || !1, L = () => {
|
|
4503
4503
|
de(() => {
|
|
4504
4504
|
o.value.forEach((f, b) => {
|
|
4505
4505
|
Ye(b);
|
|
@@ -4509,7 +4509,7 @@ const Aa = /* @__PURE__ */ B(ma, [["render", Da]]), Na = U({
|
|
|
4509
4509
|
return G(
|
|
4510
4510
|
() => e.rows,
|
|
4511
4511
|
() => {
|
|
4512
|
-
o.value.clear(),
|
|
4512
|
+
o.value.clear(), a.value.clear(), L();
|
|
4513
4513
|
},
|
|
4514
4514
|
{ deep: !0 }
|
|
4515
4515
|
), G(
|
|
@@ -4518,11 +4518,11 @@ const Aa = /* @__PURE__ */ B(ma, [["render", Da]]), Na = U({
|
|
|
4518
4518
|
b && !f && L();
|
|
4519
4519
|
}
|
|
4520
4520
|
), n({
|
|
4521
|
-
JQTableRef:
|
|
4521
|
+
JQTableRef: s,
|
|
4522
4522
|
paginationInfo: Q,
|
|
4523
4523
|
getPaginationParam: q,
|
|
4524
4524
|
getNum: E,
|
|
4525
|
-
setNum:
|
|
4525
|
+
setNum: j,
|
|
4526
4526
|
setTotal: D,
|
|
4527
4527
|
setSize: k,
|
|
4528
4528
|
scrollTop: te,
|
|
@@ -4530,7 +4530,7 @@ const Aa = /* @__PURE__ */ B(ma, [["render", Da]]), Na = U({
|
|
|
4530
4530
|
DEFAULT_ROWS_PER_PAGE: dt
|
|
4531
4531
|
}), {
|
|
4532
4532
|
t: r,
|
|
4533
|
-
JQTableRef:
|
|
4533
|
+
JQTableRef: s,
|
|
4534
4534
|
computedSelected: u,
|
|
4535
4535
|
hasSlot: c,
|
|
4536
4536
|
computedTableHeaderClass: g,
|
|
@@ -4542,7 +4542,7 @@ const Aa = /* @__PURE__ */ B(ma, [["render", Da]]), Na = U({
|
|
|
4542
4542
|
paginationInfo: Q,
|
|
4543
4543
|
getPaginationParam: q,
|
|
4544
4544
|
getNum: E,
|
|
4545
|
-
setNum:
|
|
4545
|
+
setNum: j,
|
|
4546
4546
|
setTotal: D,
|
|
4547
4547
|
setSize: k,
|
|
4548
4548
|
clacPagination: S,
|
|
@@ -4562,8 +4562,8 @@ const Aa = /* @__PURE__ */ B(ma, [["render", Da]]), Na = U({
|
|
|
4562
4562
|
};
|
|
4563
4563
|
}
|
|
4564
4564
|
}), Ca = ["onClick"];
|
|
4565
|
-
function ja(e, t, n, l, r,
|
|
4566
|
-
const
|
|
4565
|
+
function ja(e, t, n, l, r, s) {
|
|
4566
|
+
const i = N("q-th"), o = N("q-td"), a = N("q-tooltip"), c = N("q-inner-loading"), u = N("q-table"), g = N("Pagination");
|
|
4567
4567
|
return m(), T("div", {
|
|
4568
4568
|
class: "j-q-table-container",
|
|
4569
4569
|
style: H({
|
|
@@ -4571,7 +4571,7 @@ function ja(e, t, n, l, r, a) {
|
|
|
4571
4571
|
"--cell-max-width-small": `${e.cellMaxWidthSmall}px`
|
|
4572
4572
|
})
|
|
4573
4573
|
}, [
|
|
4574
|
-
|
|
4574
|
+
z(u, {
|
|
4575
4575
|
ref: "JQTableRef",
|
|
4576
4576
|
selected: e.computedSelected,
|
|
4577
4577
|
"onUpdate:selected": t[0] || (t[0] = (M) => e.computedSelected = M),
|
|
@@ -4588,7 +4588,7 @@ function ja(e, t, n, l, r, a) {
|
|
|
4588
4588
|
"binary-state-sort": !1
|
|
4589
4589
|
}, we({
|
|
4590
4590
|
loading: I(() => [
|
|
4591
|
-
|
|
4591
|
+
z(c, {
|
|
4592
4592
|
showing: "",
|
|
4593
4593
|
label: e.t("messages.loading"),
|
|
4594
4594
|
color: "primary",
|
|
@@ -4625,7 +4625,7 @@ function ja(e, t, n, l, r, a) {
|
|
|
4625
4625
|
ne(e.computedSlotHeaderCellColumns, (M) => ({
|
|
4626
4626
|
name: `header-cell-${M.name}`,
|
|
4627
4627
|
fn: I((d) => [
|
|
4628
|
-
|
|
4628
|
+
z(i, { props: d }, {
|
|
4629
4629
|
default: I(() => [
|
|
4630
4630
|
O(e.$slots, `header-cell-${M.name}`, ue(ge(d)))
|
|
4631
4631
|
]),
|
|
@@ -4636,7 +4636,7 @@ function ja(e, t, n, l, r, a) {
|
|
|
4636
4636
|
ne(e.computedSlotBodyCellColumns, (M) => ({
|
|
4637
4637
|
name: `body-cell-${M.name}`,
|
|
4638
4638
|
fn: I((d) => [
|
|
4639
|
-
|
|
4639
|
+
z(o, { props: d }, {
|
|
4640
4640
|
default: I(() => [
|
|
4641
4641
|
M.limitWidth ? (m(), T("div", {
|
|
4642
4642
|
key: 0,
|
|
@@ -4653,7 +4653,7 @@ function ja(e, t, n, l, r, a) {
|
|
|
4653
4653
|
ne(e.computedLimitWidthColumns, (M) => ({
|
|
4654
4654
|
name: `body-cell-${M.name}`,
|
|
4655
4655
|
fn: I((d) => [
|
|
4656
|
-
|
|
4656
|
+
z(o, { props: d }, {
|
|
4657
4657
|
default: I(() => [
|
|
4658
4658
|
y("div", {
|
|
4659
4659
|
class: "cell-limit-width",
|
|
@@ -4667,7 +4667,7 @@ function ja(e, t, n, l, r, a) {
|
|
|
4667
4667
|
ne(e.computedWhiteSpaceColumns, (M) => ({
|
|
4668
4668
|
name: `body-cell-${M.name}`,
|
|
4669
4669
|
fn: I((d) => [
|
|
4670
|
-
|
|
4670
|
+
z(o, {
|
|
4671
4671
|
props: d,
|
|
4672
4672
|
style: H(e.getCellStyle(M))
|
|
4673
4673
|
}, {
|
|
@@ -4676,7 +4676,7 @@ function ja(e, t, n, l, r, a) {
|
|
|
4676
4676
|
class: V(e.getCellClass(M)),
|
|
4677
4677
|
ref: (p) => e.setEllipsisRef(p, `${M.name}-${d.row[e.rowKey]}`)
|
|
4678
4678
|
}, w(e.formatColumnValue(M, d.value)), 3),
|
|
4679
|
-
e.shouldShowTooltip(`${M.name}-${d.row[e.rowKey]}`) ? (m(), Y(
|
|
4679
|
+
e.shouldShowTooltip(`${M.name}-${d.row[e.rowKey]}`) ? (m(), Y(a, {
|
|
4680
4680
|
key: 0,
|
|
4681
4681
|
style: H(e.getTooltipStyle()),
|
|
4682
4682
|
class: V(e.getTooltipClass()),
|
|
@@ -4697,7 +4697,7 @@ function ja(e, t, n, l, r, a) {
|
|
|
4697
4697
|
ne(e.computedClickableColumns, (M) => ({
|
|
4698
4698
|
name: `body-cell-${M.name}`,
|
|
4699
4699
|
fn: I((d) => [
|
|
4700
|
-
|
|
4700
|
+
z(o, {
|
|
4701
4701
|
props: d,
|
|
4702
4702
|
style: H(e.getCellStyle(M))
|
|
4703
4703
|
}, {
|
|
@@ -4708,7 +4708,7 @@ function ja(e, t, n, l, r, a) {
|
|
|
4708
4708
|
ref: M.whiteSpace ? (p) => e.setEllipsisRef(p, `${M.name}-${d.row[e.rowKey]}`) : void 0,
|
|
4709
4709
|
onClick: (p) => e.handleColumnClick(M, d.row)
|
|
4710
4710
|
}, w(e.formatColumnValue(M, d.value)), 11, Ca),
|
|
4711
|
-
M.whiteSpace && e.shouldShowTooltip(`${M.name}-${d.row[e.rowKey]}`) ? (m(), Y(
|
|
4711
|
+
M.whiteSpace && e.shouldShowTooltip(`${M.name}-${d.row[e.rowKey]}`) ? (m(), Y(a, {
|
|
4712
4712
|
key: 0,
|
|
4713
4713
|
style: H(e.getTooltipStyle()),
|
|
4714
4714
|
class: V(e.getTooltipClass(M)),
|
|
@@ -4726,7 +4726,7 @@ function ja(e, t, n, l, r, a) {
|
|
|
4726
4726
|
class: V(e.getCellClass(M)),
|
|
4727
4727
|
ref: M.whiteSpace ? (p) => e.setEllipsisRef(p, `${M.name}-${d.row[e.rowKey]}`) : void 0
|
|
4728
4728
|
}, w(e.formatColumnValue(M, d.value)), 3),
|
|
4729
|
-
M.whiteSpace && e.shouldShowTooltip(`${M.name}-${d.row[e.rowKey]}`) ? (m(), Y(
|
|
4729
|
+
M.whiteSpace && e.shouldShowTooltip(`${M.name}-${d.row[e.rowKey]}`) ? (m(), Y(a, {
|
|
4730
4730
|
key: 0,
|
|
4731
4731
|
style: H(e.getTooltipStyle()),
|
|
4732
4732
|
class: V(e.getTooltipClass(M)),
|
|
@@ -4770,24 +4770,27 @@ const bs = /* @__PURE__ */ B(Na, [["render", ja]]), za = U({
|
|
|
4770
4770
|
content: { type: String, default: "" },
|
|
4771
4771
|
confirmButtonText: { type: String, default: "" },
|
|
4772
4772
|
cancelButtonText: { type: String, default: "" },
|
|
4773
|
-
|
|
4773
|
+
cancel: { type: Boolean, default: !0 },
|
|
4774
|
+
isDelete: { type: Boolean, default: !1 },
|
|
4775
|
+
color: { type: String, default: "" }
|
|
4774
4776
|
},
|
|
4775
4777
|
setup(e) {
|
|
4776
|
-
const { t } = K(), { dialogRef: n, onDialogHide: l, onDialogOK: r, onDialogCancel:
|
|
4778
|
+
const { t } = K(), { dialogRef: n, onDialogHide: l, onDialogOK: r, onDialogCancel: s } = mt(), i = C(() => e.confirmButtonText || t("action.confirm")), o = C(() => e.cancelButtonText || t("action.cancel")), a = C(() => e.color || (e.isDelete ? "negative" : "primary"));
|
|
4777
4779
|
return {
|
|
4778
4780
|
dialogRef: n,
|
|
4779
4781
|
onDialogHide: l,
|
|
4780
4782
|
onOKClick() {
|
|
4781
4783
|
r();
|
|
4782
4784
|
},
|
|
4783
|
-
onCancelClick:
|
|
4785
|
+
onCancelClick: s,
|
|
4784
4786
|
computedCancelText: o,
|
|
4785
|
-
computedConfirmText:
|
|
4787
|
+
computedConfirmText: i,
|
|
4788
|
+
computedButtonColor: a
|
|
4786
4789
|
};
|
|
4787
4790
|
}
|
|
4788
4791
|
}), ba = { class: "title" };
|
|
4789
|
-
function Ta(e, t, n, l, r,
|
|
4790
|
-
const
|
|
4792
|
+
function Ta(e, t, n, l, r, s) {
|
|
4793
|
+
const i = N("q-icon"), o = N("q-card-section"), a = N("q-btn"), c = N("q-card"), u = N("q-dialog");
|
|
4791
4794
|
return m(), Y(u, {
|
|
4792
4795
|
ref: "dialogRef",
|
|
4793
4796
|
onHide: e.onDialogHide,
|
|
@@ -4796,11 +4799,11 @@ function Ta(e, t, n, l, r, a) {
|
|
|
4796
4799
|
persistent: ""
|
|
4797
4800
|
}, {
|
|
4798
4801
|
default: I(() => [
|
|
4799
|
-
|
|
4802
|
+
z(c, { class: "q-dialog-plugin" }, {
|
|
4800
4803
|
default: I(() => [
|
|
4801
|
-
|
|
4804
|
+
z(o, { class: "row items-center no-wrap" }, {
|
|
4802
4805
|
default: I(() => [
|
|
4803
|
-
e.isDelete ? (m(), Y(
|
|
4806
|
+
e.isDelete ? (m(), Y(i, {
|
|
4804
4807
|
key: 0,
|
|
4805
4808
|
name: "app:delete-confirm",
|
|
4806
4809
|
class: "q-mr-sm",
|
|
@@ -4810,24 +4813,25 @@ function Ta(e, t, n, l, r, a) {
|
|
|
4810
4813
|
]),
|
|
4811
4814
|
_: 1
|
|
4812
4815
|
}),
|
|
4813
|
-
|
|
4816
|
+
z(o, { class: "q-pt-none content" }, {
|
|
4814
4817
|
default: I(() => [
|
|
4815
4818
|
W(w(e.content), 1)
|
|
4816
4819
|
]),
|
|
4817
4820
|
_: 1
|
|
4818
4821
|
}),
|
|
4819
|
-
|
|
4822
|
+
z(o, { class: "row q-gutter-sm justify-end" }, {
|
|
4820
4823
|
default: I(() => [
|
|
4821
|
-
|
|
4824
|
+
e.cancel ? (m(), Y(a, {
|
|
4825
|
+
key: 0,
|
|
4822
4826
|
outline: "",
|
|
4823
4827
|
label: e.computedCancelText,
|
|
4824
4828
|
onClick: e.onCancelClick,
|
|
4825
4829
|
"no-caps": "",
|
|
4826
4830
|
ripple: !1,
|
|
4827
4831
|
style: { "min-width": "80px" }
|
|
4828
|
-
}, null, 8, ["label", "onClick"]),
|
|
4829
|
-
|
|
4830
|
-
color: e.
|
|
4832
|
+
}, null, 8, ["label", "onClick"])) : $("", !0),
|
|
4833
|
+
z(a, {
|
|
4834
|
+
color: e.computedButtonColor,
|
|
4831
4835
|
label: e.computedConfirmText,
|
|
4832
4836
|
onClick: e.onOKClick,
|
|
4833
4837
|
"no-caps": "",
|
|
@@ -4845,7 +4849,7 @@ function Ta(e, t, n, l, r, a) {
|
|
|
4845
4849
|
_: 1
|
|
4846
4850
|
}, 8, ["onHide"]);
|
|
4847
4851
|
}
|
|
4848
|
-
const ha = /* @__PURE__ */ B(za, [["render", Ta], ["__scopeId", "data-v-
|
|
4852
|
+
const ha = /* @__PURE__ */ B(za, [["render", Ta], ["__scopeId", "data-v-22401d59"]]);
|
|
4849
4853
|
let ze = null;
|
|
4850
4854
|
class wa {
|
|
4851
4855
|
/**
|
|
@@ -4857,24 +4861,24 @@ class wa {
|
|
|
4857
4861
|
/**
|
|
4858
4862
|
* 弹出自定义确认对话框,返回一个 Promise,resolve(true) 表示确定,resolve(false) 表示取消/关闭。
|
|
4859
4863
|
*/
|
|
4860
|
-
async show({ title: t, color: n, content: l, confirmButtonText: r, cancelButtonText:
|
|
4861
|
-
return ze != null && ze.dialog ? new Promise((
|
|
4864
|
+
async show({ title: t, color: n, content: l, confirmButtonText: r, cancelButtonText: s, showCancelButton: i, isDelete: o }) {
|
|
4865
|
+
return ze != null && ze.dialog ? new Promise((a) => {
|
|
4862
4866
|
ze.dialog({
|
|
4863
4867
|
component: ha,
|
|
4864
|
-
cancel:
|
|
4868
|
+
cancel: i === void 0 ? !0 : i,
|
|
4865
4869
|
componentProps: {
|
|
4866
4870
|
title: t,
|
|
4867
4871
|
color: n,
|
|
4868
4872
|
content: l,
|
|
4869
4873
|
confirmButtonText: r,
|
|
4870
|
-
cancelButtonText:
|
|
4871
|
-
cancel:
|
|
4874
|
+
cancelButtonText: s,
|
|
4875
|
+
cancel: i === void 0 ? !0 : i,
|
|
4872
4876
|
isDelete: o
|
|
4873
4877
|
}
|
|
4874
4878
|
}).onOk(() => {
|
|
4875
|
-
|
|
4879
|
+
a(!0);
|
|
4876
4880
|
}).onCancel(() => {
|
|
4877
|
-
|
|
4881
|
+
a(!1);
|
|
4878
4882
|
}).onDismiss(() => {
|
|
4879
4883
|
});
|
|
4880
4884
|
}) : (console.error("[JQConfirmDialog] Quasar Dialog plugin not available. Make sure rtcptInit has been called."), Promise.resolve(!1));
|
|
@@ -4951,7 +4955,7 @@ const va = new wa(), Sa = U({
|
|
|
4951
4955
|
click: (e) => !0
|
|
4952
4956
|
},
|
|
4953
4957
|
setup(e, { emit: t, expose: n, slots: l }) {
|
|
4954
|
-
const r = h(null),
|
|
4958
|
+
const r = h(null), s = C(() => ({ "j-q-button-label": (l.icon || e.icon) && (l.default || e.label) })), i = C(() => [
|
|
4955
4959
|
"primary",
|
|
4956
4960
|
"secondary"
|
|
4957
4961
|
/* SECONDARY */
|
|
@@ -4968,12 +4972,12 @@ const va = new wa(), Sa = U({
|
|
|
4968
4972
|
} : {
|
|
4969
4973
|
"j-q-button--text": e.type === "text"
|
|
4970
4974
|
/* TEXT */
|
|
4971
|
-
}), o = (
|
|
4972
|
-
t("click",
|
|
4975
|
+
}), o = (a) => {
|
|
4976
|
+
t("click", a);
|
|
4973
4977
|
};
|
|
4974
4978
|
return n({}), {
|
|
4975
|
-
computedClass:
|
|
4976
|
-
iconPadding:
|
|
4979
|
+
computedClass: i,
|
|
4980
|
+
iconPadding: s,
|
|
4977
4981
|
click: o,
|
|
4978
4982
|
qBtnRef: r
|
|
4979
4983
|
};
|
|
@@ -4982,8 +4986,8 @@ const va = new wa(), Sa = U({
|
|
|
4982
4986
|
key: 0,
|
|
4983
4987
|
class: "j-q-button-prefix-icon"
|
|
4984
4988
|
};
|
|
4985
|
-
function ka(e, t, n, l, r,
|
|
4986
|
-
const
|
|
4989
|
+
function ka(e, t, n, l, r, s) {
|
|
4990
|
+
const i = N("q-tooltip"), o = N("q-btn");
|
|
4987
4991
|
return m(), Y(o, Te({
|
|
4988
4992
|
class: e.computedClass,
|
|
4989
4993
|
loading: e.loading
|
|
@@ -5006,7 +5010,7 @@ function ka(e, t, n, l, r, a) {
|
|
|
5006
5010
|
W(w(e.label), 1)
|
|
5007
5011
|
], !0)
|
|
5008
5012
|
], 2),
|
|
5009
|
-
e.tips ? (m(), Y(
|
|
5013
|
+
e.tips ? (m(), Y(i, {
|
|
5010
5014
|
key: 1,
|
|
5011
5015
|
class: "j-q-button-tooltip",
|
|
5012
5016
|
anchor: "top middle",
|
|
@@ -5035,14 +5039,14 @@ function Ot(e, t = {}) {
|
|
|
5035
5039
|
if (!Array.isArray(e))
|
|
5036
5040
|
return [];
|
|
5037
5041
|
const { optionLabel: n = "label", optionValue: l = "value", optionChildren: r = "children" } = t;
|
|
5038
|
-
return e.map((
|
|
5039
|
-
const
|
|
5040
|
-
label:
|
|
5042
|
+
return e.map((s) => {
|
|
5043
|
+
const i = String(s[n] ?? ""), o = s[l], a = {
|
|
5044
|
+
label: i,
|
|
5041
5045
|
value: o,
|
|
5042
|
-
row:
|
|
5046
|
+
row: s
|
|
5043
5047
|
// 保留原始对象
|
|
5044
|
-
}, c =
|
|
5045
|
-
return Array.isArray(c) && c.length > 0 && (
|
|
5048
|
+
}, c = s[r];
|
|
5049
|
+
return Array.isArray(c) && c.length > 0 && (a.children = Ot(c, t)), a;
|
|
5046
5050
|
});
|
|
5047
5051
|
}
|
|
5048
5052
|
const Oa = (e, t) => {
|
|
@@ -5159,7 +5163,7 @@ function Ka(...e) {
|
|
|
5159
5163
|
};
|
|
5160
5164
|
}
|
|
5161
5165
|
function hs(e) {
|
|
5162
|
-
const { app: t, router: n, store: l, i18n: r, pagePermissionIds:
|
|
5166
|
+
const { app: t, router: n, store: l, i18n: r, pagePermissionIds: s, pageActionPermissionIds: i, defaultLanguage: o, colors: a } = e;
|
|
5163
5167
|
es(t);
|
|
5164
5168
|
const c = t.config.globalProperties.$q;
|
|
5165
5169
|
c ? (pn(c), Qe.setQuasarInstance(c), va.setQuasarInstance(c), _a(c)) : console.warn("[rtcpt] Quasar instance not found. Make sure you have installed Quasar."), o ? Xe(o).catch((g) => {
|
|
@@ -5173,20 +5177,20 @@ function hs(e) {
|
|
|
5173
5177
|
store: l,
|
|
5174
5178
|
i18n: r,
|
|
5175
5179
|
iconMapFn: u
|
|
5176
|
-
}),
|
|
5177
|
-
const g = gt(
|
|
5180
|
+
}), s) {
|
|
5181
|
+
const g = gt(s) ? s : h(s);
|
|
5178
5182
|
console.log("[rtcpt] Permission IDs provided:", g.value), t.provide(ot, g);
|
|
5179
5183
|
}
|
|
5180
|
-
if (
|
|
5181
|
-
const g = gt(
|
|
5184
|
+
if (i) {
|
|
5185
|
+
const g = gt(i) ? i : h(i);
|
|
5182
5186
|
console.log("[rtcpt] Action Permission IDs provided:", g.value), t.provide(lt, g);
|
|
5183
5187
|
}
|
|
5184
|
-
|
|
5188
|
+
a && c && Xa(a), console.log("[rtcpt] Initialization started..."), c && (c.iconMapFn = Ka(c.iconMapFn, u)), console.log("[rtcpt] Initialization completed successfully.");
|
|
5185
5189
|
}
|
|
5186
5190
|
function Xa(e, t) {
|
|
5187
5191
|
const n = { ...Fa, ...e }, l = document.documentElement;
|
|
5188
|
-
Object.entries(n).forEach(([r,
|
|
5189
|
-
l.style.setProperty(`--j-color-${r}`,
|
|
5192
|
+
Object.entries(n).forEach(([r, s]) => {
|
|
5193
|
+
l.style.setProperty(`--j-color-${r}`, s);
|
|
5190
5194
|
}), n.primary && Ce("primary", n.primary), n.negative && Ce("negative", n.negative), n.green && Ce("positive", n.green), n.yellow && Ce("warning", n.yellow), n.dark && Ce("dark", n.dark), console.log("[rtcpt] Custom colors applied:", e);
|
|
5191
5195
|
}
|
|
5192
5196
|
function _a(e) {
|