rtcpts 0.0.60 → 0.0.61
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-button-dropdown/index.d.ts +36 -1
- package/dist/components/j-q-button-dropdown/types.d.ts +11 -1
- package/dist/components/j-q-table/pagination.d.ts +19 -20
- package/dist/index.css +1 -1
- package/dist/rtcpt.cjs.js +1 -1
- package/dist/rtcpt.es.js +814 -797
- package/package.json +1 -1
package/dist/rtcpt.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as B, ref as z, computed as v, resolveComponent as h, createBlock as V, openBlock as y, createElementBlock as w, createCommentVNode as E, Fragment as _, renderList as ee, normalizeClass as q, createElementVNode as C, renderSlot as Y, createVNode as b, inject as Pe, toDisplayString as O, watch as W, nextTick as
|
|
2
|
-
import { QIcon as le, copyToClipboard as
|
|
1
|
+
import { defineComponent as B, ref as z, computed as v, resolveComponent as h, createBlock as V, openBlock as y, createElementBlock as w, createCommentVNode as E, Fragment as _, renderList as ee, normalizeClass as q, createElementVNode as C, renderSlot as Y, createVNode as b, inject as Pe, toDisplayString as O, watch as W, nextTick as se, onMounted as ze, onBeforeUnmount as dn, Teleport as el, Transition as ut, withCtx as D, normalizeStyle as G, createTextVNode as J, mergeProps as me, createSlots as Ye, getCurrentInstance as tl, resolveDirective as xe, withDirectives as oe, vShow as fe, Suspense as nl, resolveDynamicComponent as wt, toHandlers as ll, normalizeProps as ve, guardReactiveProps as Se, withModifiers as te, withKeys as Et, createApp as ol, onUnmounted as al, h as il, vModelText as rl, reactive as Te, isRef as ln } from "vue";
|
|
2
|
+
import { QIcon as le, copyToClipboard as sl, QBtn as Ie, QCardActions as ul, QCardSection as ke, QCard as Le, QPopupProxy as he, ClosePopup as ct, QInnerLoading as pn, QDialog as fn, QInput as dt, QItemSection as pt, QItem as Xe, QSpinner as cl, QSelect as Qe, QList as et, QMenu as Pt, QTooltip as dl, QTree as gn, QField as Ne, QItemLabel as pl, QBtnDropdown as fl, QDate as mn, date as x, QOptionGroup as gl, QPagination as yn, QTd as ml, QTh as yl, QTable as Ml, useDialogPluginComponent as on, setCssVar as We } from "quasar";
|
|
3
3
|
import { _ as Z } from "./charts-fA1hE3y8.js";
|
|
4
4
|
import { i as Rf, a as Uf, b as Bf, c as Zf, d as Wf, e as Ff } from "./charts-fA1hE3y8.js";
|
|
5
5
|
const Il = B({
|
|
@@ -28,7 +28,7 @@ const Il = B({
|
|
|
28
28
|
handleCopy: async () => {
|
|
29
29
|
if (!t.value)
|
|
30
30
|
try {
|
|
31
|
-
await
|
|
31
|
+
await sl(e.text), t.value = !0, n && clearTimeout(n), n = setTimeout(() => {
|
|
32
32
|
t.value = !1, n = null;
|
|
33
33
|
}, e.revertDelay);
|
|
34
34
|
} catch (a) {
|
|
@@ -38,7 +38,7 @@ const Il = B({
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
|
-
function hl(e, t, n, l, o,
|
|
41
|
+
function hl(e, t, n, l, o, r) {
|
|
42
42
|
const a = h("q-icon");
|
|
43
43
|
return y(), V(a, {
|
|
44
44
|
name: e.iconName,
|
|
@@ -135,25 +135,25 @@ const jl = B({
|
|
|
135
135
|
setup(e, { emit: t }) {
|
|
136
136
|
const { t: n } = X(), l = v({
|
|
137
137
|
get: () => e.modelValue,
|
|
138
|
-
set: (
|
|
139
|
-
t("update:modelValue",
|
|
138
|
+
set: (s) => {
|
|
139
|
+
t("update:modelValue", s);
|
|
140
140
|
}
|
|
141
141
|
});
|
|
142
142
|
return {
|
|
143
143
|
innerValue: l,
|
|
144
|
-
getKey: (
|
|
145
|
-
updateItem: (
|
|
144
|
+
getKey: (s, c) => s.id || s.key || c,
|
|
145
|
+
updateItem: (s, c) => {
|
|
146
146
|
const u = [...l.value];
|
|
147
|
-
typeof c == "object" && !Array.isArray(c) && typeof u[
|
|
147
|
+
typeof c == "object" && !Array.isArray(c) && typeof u[s] == "object" && !Array.isArray(u[s]) ? u[s] = { ...u[s], ...c } : u[s] = c, l.value = u;
|
|
148
148
|
},
|
|
149
|
-
addItem: (
|
|
149
|
+
addItem: (s) => {
|
|
150
150
|
const c = [...l.value];
|
|
151
|
-
c.splice(
|
|
151
|
+
c.splice(s, 0, JSON.parse(JSON.stringify(e.defaultNewItem))), l.value = c;
|
|
152
152
|
},
|
|
153
|
-
removeItem: (
|
|
153
|
+
removeItem: (s) => {
|
|
154
154
|
if (l.value.length <= e.minItems) return;
|
|
155
155
|
const c = [...l.value];
|
|
156
|
-
c.splice(
|
|
156
|
+
c.splice(s, 1), l.value = c;
|
|
157
157
|
},
|
|
158
158
|
t: n
|
|
159
159
|
};
|
|
@@ -165,16 +165,16 @@ const jl = B({
|
|
|
165
165
|
key: 0,
|
|
166
166
|
class: "list-footer-actions"
|
|
167
167
|
};
|
|
168
|
-
function zl(e, t, n, l, o,
|
|
168
|
+
function zl(e, t, n, l, o, r) {
|
|
169
169
|
const a = h("q-btn"), i = h("j-q-button");
|
|
170
170
|
return y(), w("div", null, [
|
|
171
|
-
(y(!0), w(_, null, ee(e.innerValue, (
|
|
172
|
-
key: e.getKey(
|
|
171
|
+
(y(!0), w(_, null, ee(e.innerValue, (s, c) => (y(), w("div", {
|
|
172
|
+
key: e.getKey(s, c),
|
|
173
173
|
class: q(["q-mb-md list-item-row relative-position", { "compact-item": e.actionMode === "compact" }])
|
|
174
174
|
}, [
|
|
175
175
|
C("div", wl, [
|
|
176
176
|
Y(e.$slots, "item-content", {
|
|
177
|
-
item:
|
|
177
|
+
item: s,
|
|
178
178
|
index: c,
|
|
179
179
|
updateItem: e.updateItem,
|
|
180
180
|
isLast: c === e.innerValue.length - 1,
|
|
@@ -207,7 +207,7 @@ function zl(e, t, n, l, o, s) {
|
|
|
207
207
|
key: 0,
|
|
208
208
|
label: e.t("action.addNewItem"),
|
|
209
209
|
type: "primary",
|
|
210
|
-
onClick: t[0] || (t[0] = (
|
|
210
|
+
onClick: t[0] || (t[0] = (s) => e.addItem(e.innerValue.length))
|
|
211
211
|
}, null, 8, ["label"])) : E("", !0)
|
|
212
212
|
])
|
|
213
213
|
])) : E("", !0)
|
|
@@ -255,17 +255,17 @@ const of = /* @__PURE__ */ Z(jl, [["render", zl]]), tt = Symbol("pageActionPermi
|
|
|
255
255
|
},
|
|
256
256
|
slots: Object,
|
|
257
257
|
setup(e) {
|
|
258
|
-
const t = Pe(tt, z([])), n = Pe(nt, z([])), l = v(() => e.pagePermissionId && e.pagePermissionId.length > 0 ? e.pagePermissionId : n.value || []), o = v(() => e.pageActionPermissionId && e.pageActionPermissionId.length > 0 ? e.pageActionPermissionId : t.value || []),
|
|
258
|
+
const t = Pe(tt, z([])), n = Pe(nt, z([])), l = v(() => e.pagePermissionId && e.pagePermissionId.length > 0 ? e.pagePermissionId : n.value || []), o = v(() => e.pageActionPermissionId && e.pageActionPermissionId.length > 0 ? e.pageActionPermissionId : t.value || []), r = v(() => {
|
|
259
259
|
const i = e.code;
|
|
260
260
|
return i ? l.value.includes(i) || o.value.includes(i) : !0;
|
|
261
|
-
}), a = v(() => !!(
|
|
261
|
+
}), a = v(() => !!(r.value || !e.rmDom));
|
|
262
262
|
return {
|
|
263
|
-
hasPermission:
|
|
263
|
+
hasPermission: r,
|
|
264
264
|
canRender: a
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
267
|
}), Ll = { key: 0 };
|
|
268
|
-
function $l(e, t, n, l, o,
|
|
268
|
+
function $l(e, t, n, l, o, r) {
|
|
269
269
|
return e.hasPermission ? Y(e.$slots, "default", { key: 0 }) : (y(), w(_, { key: 1 }, [
|
|
270
270
|
e.rmDom ? E("", !0) : (y(), w("span", Ll, O(e.defaultContent), 1))
|
|
271
271
|
], 64));
|
|
@@ -320,9 +320,9 @@ const hn = /* @__PURE__ */ Z(kl, [["render", $l]]), Ol = B({
|
|
|
320
320
|
},
|
|
321
321
|
emits: ["update:modelValue"],
|
|
322
322
|
setup(e, { emit: t }) {
|
|
323
|
-
const n = z(), l = z(), o = z(!1),
|
|
323
|
+
const n = z(), l = z(), o = z(!1), r = z(e.placement);
|
|
324
324
|
let a = null, i = null;
|
|
325
|
-
const
|
|
325
|
+
const s = z({}), c = z({}), u = v(() => e.modelValue !== void 0), d = () => {
|
|
326
326
|
if (!n.value || !l.value) return;
|
|
327
327
|
const M = n.value.getBoundingClientRect(), f = l.value.getBoundingClientRect(), g = e.offset;
|
|
328
328
|
let N = 0, k = 0, R = e.placement;
|
|
@@ -365,7 +365,7 @@ const hn = /* @__PURE__ */ Z(kl, [["render", $l]]), Ol = B({
|
|
|
365
365
|
break;
|
|
366
366
|
}
|
|
367
367
|
const F = window.innerWidth, ie = window.innerHeight;
|
|
368
|
-
if (N < 0 ? R.startsWith("top") && (R = R.replace("top", "bottom"), N = M.bottom + g) : N + f.height > ie && R.startsWith("bottom") && (R = R.replace("bottom", "top"), N = M.top - f.height - g), k < 0 ? k = 8 : k + f.width > F && (k = F - f.width - 8),
|
|
368
|
+
if (N < 0 ? R.startsWith("top") && (R = R.replace("top", "bottom"), N = M.bottom + g) : N + f.height > ie && R.startsWith("bottom") && (R = R.replace("bottom", "top"), N = M.top - f.height - g), k < 0 ? k = 8 : k + f.width > F && (k = F - f.width - 8), r.value = R, s.value = {
|
|
369
369
|
top: `${N + window.scrollY}px`,
|
|
370
370
|
left: `${k + window.scrollX}px`
|
|
371
371
|
}, e.showArrow) {
|
|
@@ -387,12 +387,12 @@ const hn = /* @__PURE__ */ Z(kl, [["render", $l]]), Ol = B({
|
|
|
387
387
|
}
|
|
388
388
|
}, p = () => {
|
|
389
389
|
e.disabled || (i && (clearTimeout(i), i = null), e.openDelay > 0 ? a = setTimeout(() => {
|
|
390
|
-
o.value = !0, u.value && t("update:modelValue", !0),
|
|
390
|
+
o.value = !0, u.value && t("update:modelValue", !0), se(() => {
|
|
391
391
|
requestAnimationFrame(() => {
|
|
392
392
|
d();
|
|
393
393
|
});
|
|
394
394
|
});
|
|
395
|
-
}, e.openDelay) : (o.value = !0, u.value && t("update:modelValue", !0),
|
|
395
|
+
}, e.openDelay) : (o.value = !0, u.value && t("update:modelValue", !0), se(() => {
|
|
396
396
|
requestAnimationFrame(() => {
|
|
397
397
|
d();
|
|
398
398
|
});
|
|
@@ -415,7 +415,7 @@ const hn = /* @__PURE__ */ Z(kl, [["render", $l]]), Ol = B({
|
|
|
415
415
|
W(
|
|
416
416
|
() => e.modelValue,
|
|
417
417
|
(M) => {
|
|
418
|
-
M !== void 0 && (o.value = M, M &&
|
|
418
|
+
M !== void 0 && (o.value = M, M && se(() => {
|
|
419
419
|
d();
|
|
420
420
|
}));
|
|
421
421
|
}
|
|
@@ -436,8 +436,8 @@ const hn = /* @__PURE__ */ Z(kl, [["render", $l]]), Ol = B({
|
|
|
436
436
|
tooltipRef: n,
|
|
437
437
|
popperRef: l,
|
|
438
438
|
visible: o,
|
|
439
|
-
currentPlacement:
|
|
440
|
-
popperStyle:
|
|
439
|
+
currentPlacement: r,
|
|
440
|
+
popperStyle: s,
|
|
441
441
|
arrowStyle: c,
|
|
442
442
|
handleMouseEnter: j,
|
|
443
443
|
handleMouseLeave: A,
|
|
@@ -447,7 +447,7 @@ const hn = /* @__PURE__ */ Z(kl, [["render", $l]]), Ol = B({
|
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
449
|
}), Vl = { class: "j-c-tooltip__content" };
|
|
450
|
-
function El(e, t, n, l, o,
|
|
450
|
+
function El(e, t, n, l, o, r) {
|
|
451
451
|
return y(), w("div", {
|
|
452
452
|
class: "j-c-tooltip",
|
|
453
453
|
ref: "tooltipRef",
|
|
@@ -568,7 +568,7 @@ const be = /* @__PURE__ */ Z(Ol, [["render", El]]), Fe = {
|
|
|
568
568
|
},
|
|
569
569
|
slots: Object,
|
|
570
570
|
setup(e, { emit: t, expose: n, slots: l }) {
|
|
571
|
-
const o = z(null),
|
|
571
|
+
const o = z(null), r = v(() => e.tips != null ? String(e.tips) : ""), a = v(() => ({ "j-q-button-label": (l.icon || e.icon) && (l.default || e.label) })), i = v(() => e.type === we.PRIMARY || e.type === we.SECONDARY ? {
|
|
572
572
|
[`j-q-button--${{
|
|
573
573
|
[Fe.LARGE]: "lg",
|
|
574
574
|
[Fe.NORMAL]: "md",
|
|
@@ -579,7 +579,7 @@ const be = /* @__PURE__ */ Z(Ol, [["render", El]]), Fe = {
|
|
|
579
579
|
"j-q-button--secondary": e.type === we.SECONDARY
|
|
580
580
|
} : {
|
|
581
581
|
"j-q-button--text": e.type === we.TEXT
|
|
582
|
-
}),
|
|
582
|
+
}), s = {
|
|
583
583
|
placement: "top",
|
|
584
584
|
effect: "dark",
|
|
585
585
|
trigger: "hover",
|
|
@@ -589,7 +589,7 @@ const be = /* @__PURE__ */ Z(Ol, [["render", El]]), Fe = {
|
|
|
589
589
|
maxWidth: "300px",
|
|
590
590
|
offset: 5
|
|
591
591
|
}, c = v(() => ({
|
|
592
|
-
...
|
|
592
|
+
...s,
|
|
593
593
|
...e.tooltipConfig
|
|
594
594
|
})), u = (p) => {
|
|
595
595
|
t("click", p);
|
|
@@ -609,14 +609,14 @@ const be = /* @__PURE__ */ Z(Ol, [["render", El]]), Fe = {
|
|
|
609
609
|
iconPadding: a,
|
|
610
610
|
mergedTooltipConfig: c,
|
|
611
611
|
qBtnRef: o,
|
|
612
|
-
tooltipContent:
|
|
612
|
+
tooltipContent: r
|
|
613
613
|
};
|
|
614
614
|
}
|
|
615
615
|
}), Yl = {
|
|
616
616
|
key: 0,
|
|
617
617
|
class: "j-q-button-prefix-icon"
|
|
618
618
|
};
|
|
619
|
-
function Ql(e, t, n, l, o,
|
|
619
|
+
function Ql(e, t, n, l, o, r) {
|
|
620
620
|
const a = h("q-btn"), i = h("j-c-tooltip");
|
|
621
621
|
return y(), V(i, {
|
|
622
622
|
content: e.tooltipContent,
|
|
@@ -718,7 +718,7 @@ const qe = /* @__PURE__ */ Z(Pl, [["render", Ql], ["__scopeId", "data-v-e0ad42a1
|
|
|
718
718
|
emits: ["update:modelValue", "saved", "confirm"],
|
|
719
719
|
slots: Object,
|
|
720
720
|
setup(e, { emit: t }) {
|
|
721
|
-
const { t: n } = X(), l = z(null), o = z(e.modelValue),
|
|
721
|
+
const { t: n } = X(), l = z(null), o = z(e.modelValue), r = z(null), a = z(!1), i = (I) => {
|
|
722
722
|
o.value = I;
|
|
723
723
|
};
|
|
724
724
|
W(
|
|
@@ -728,12 +728,12 @@ const qe = /* @__PURE__ */ Z(Pl, [["render", Ql], ["__scopeId", "data-v-e0ad42a1
|
|
|
728
728
|
},
|
|
729
729
|
{ immediate: !0 }
|
|
730
730
|
);
|
|
731
|
-
const
|
|
731
|
+
const s = () => {
|
|
732
732
|
o.value = e.modelValue ?? "";
|
|
733
733
|
}, c = async () => {
|
|
734
734
|
var j;
|
|
735
735
|
let I = !0;
|
|
736
|
-
if (
|
|
736
|
+
if (r.value && typeof r.value.validate == "function" && (I = r.value.validate()), !!I) {
|
|
737
737
|
if (o.value !== e.modelValue) {
|
|
738
738
|
a.value = !0;
|
|
739
739
|
const A = (m = {}) => {
|
|
@@ -743,7 +743,7 @@ const qe = /* @__PURE__ */ Z(Pl, [["render", Ql], ["__scopeId", "data-v-e0ad42a1
|
|
|
743
743
|
p();
|
|
744
744
|
return;
|
|
745
745
|
}
|
|
746
|
-
$ && (o.value = e.modelValue ?? "", (M = (S =
|
|
746
|
+
$ && (o.value = e.modelValue ?? "", (M = (S = r.value) == null ? void 0 : S.resetValidation) == null || M.call(S)), L && ((f = l.value) == null || f.hide());
|
|
747
747
|
};
|
|
748
748
|
t("confirm", o.value, A);
|
|
749
749
|
return;
|
|
@@ -751,8 +751,8 @@ const qe = /* @__PURE__ */ Z(Pl, [["render", Ql], ["__scopeId", "data-v-e0ad42a1
|
|
|
751
751
|
(j = l.value) == null || j.hide();
|
|
752
752
|
}
|
|
753
753
|
}, u = z(!1), d = (I) => {
|
|
754
|
-
const j =
|
|
755
|
-
|
|
754
|
+
const j = r.value === null;
|
|
755
|
+
r.value = I, j && e.autoDetect && I && se(() => {
|
|
756
756
|
var T, L;
|
|
757
757
|
const A = I, m = ((T = A.$props) == null ? void 0 : T.rules) || ((L = A.$attrs) == null ? void 0 : L.rules) || A.rules;
|
|
758
758
|
u.value = Array.isArray(m) && m.length > 0;
|
|
@@ -768,15 +768,15 @@ const qe = /* @__PURE__ */ Z(Pl, [["render", Ql], ["__scopeId", "data-v-e0ad42a1
|
|
|
768
768
|
popupRef: l,
|
|
769
769
|
tempValue: o,
|
|
770
770
|
updateTempValue: i,
|
|
771
|
-
handleProxyShow:
|
|
771
|
+
handleProxyShow: s,
|
|
772
772
|
handleSave: c,
|
|
773
|
-
editorRef:
|
|
773
|
+
editorRef: r,
|
|
774
774
|
setEditorRef: d
|
|
775
775
|
};
|
|
776
776
|
}
|
|
777
777
|
}), Rl = { class: "row items-end no-wrap jc-editable-proxy" }, Ul = { class: "q-pr-sm display-value" };
|
|
778
|
-
function Bl(e, t, n, l, o,
|
|
779
|
-
const a = h("q-card-section"), i = h("j-q-button"),
|
|
778
|
+
function Bl(e, t, n, l, o, r) {
|
|
779
|
+
const a = h("q-card-section"), i = h("j-q-button"), s = h("q-card-actions"), c = h("q-card"), u = h("q-popup-proxy"), d = h("q-icon"), p = h("j-c-permission");
|
|
780
780
|
return y(), w("div", Rl, [
|
|
781
781
|
C("div", Ul, [
|
|
782
782
|
Y(e.$slots, "display", {}, () => [
|
|
@@ -817,7 +817,7 @@ function Bl(e, t, n, l, o, s) {
|
|
|
817
817
|
]),
|
|
818
818
|
_: 3
|
|
819
819
|
}),
|
|
820
|
-
b(
|
|
820
|
+
b(s, {
|
|
821
821
|
align: "right",
|
|
822
822
|
class: q(["q-pb-md q-px-md", { "q-pt-none": e.noSpacing || (e.autoDetect ? e.hasDetectedRules : e.required), "q-pt-md": !e.noSpacing && (e.autoDetect ? !e.hasDetectedRules : !e.required) }])
|
|
823
823
|
}, {
|
|
@@ -893,12 +893,12 @@ const af = /* @__PURE__ */ Z(ql, [["render", Bl], ["__scopeId", "data-v-3d1377c9
|
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
895
|
}), Wl = { key: 0 };
|
|
896
|
-
function Fl(e, t, n, l, o,
|
|
896
|
+
function Fl(e, t, n, l, o, r) {
|
|
897
897
|
return e.hasValue ? Y(e.$slots, "default", { key: 0 }) : (y(), w(_, { key: 1 }, [
|
|
898
898
|
e.rmDom ? E("", !0) : (y(), w("span", Wl, O(e.defaultContent), 1))
|
|
899
899
|
], 64));
|
|
900
900
|
}
|
|
901
|
-
const
|
|
901
|
+
const rf = /* @__PURE__ */ Z(Zl, [["render", Fl]]);
|
|
902
902
|
function je(e, t) {
|
|
903
903
|
return (n) => {
|
|
904
904
|
const l = String(n || "").trim();
|
|
@@ -1037,13 +1037,13 @@ function ao(e) {
|
|
|
1037
1037
|
if (t[2]) {
|
|
1038
1038
|
const o = t[2].trim();
|
|
1039
1039
|
if (o.startsWith("[")) {
|
|
1040
|
-
const
|
|
1041
|
-
if (
|
|
1042
|
-
const i = o.substring(1,
|
|
1040
|
+
const r = o.indexOf("]");
|
|
1041
|
+
if (r !== -1) {
|
|
1042
|
+
const i = o.substring(1, r).split(",").map((c) => c.trim().replace(/^['"](.*)['"]$/, "$1")).filter((c) => c.length > 0);
|
|
1043
1043
|
l.push(i);
|
|
1044
|
-
const
|
|
1045
|
-
if (
|
|
1046
|
-
const c =
|
|
1044
|
+
const s = o.substring(r + 1).trim();
|
|
1045
|
+
if (s.startsWith(",")) {
|
|
1046
|
+
const c = s.substring(1).split(",").map((u) => {
|
|
1047
1047
|
const d = u.trim();
|
|
1048
1048
|
if (d === "true") return !0;
|
|
1049
1049
|
if (d === "false") return !1;
|
|
@@ -1054,8 +1054,8 @@ function ao(e) {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
}
|
|
1056
1056
|
} else
|
|
1057
|
-
l = o.split(",").map((
|
|
1058
|
-
const a =
|
|
1057
|
+
l = o.split(",").map((r) => {
|
|
1058
|
+
const a = r.trim();
|
|
1059
1059
|
if (a === "true") return !0;
|
|
1060
1060
|
if (a === "false") return !1;
|
|
1061
1061
|
const i = Number(a);
|
|
@@ -1067,23 +1067,23 @@ function ao(e) {
|
|
|
1067
1067
|
return { name: e, args: [] };
|
|
1068
1068
|
}
|
|
1069
1069
|
function io(e, t, n = [], l) {
|
|
1070
|
-
const
|
|
1071
|
-
if (!
|
|
1070
|
+
const r = Ft(l)[e];
|
|
1071
|
+
if (!r)
|
|
1072
1072
|
return console.warn(`Rule '${e}' not found in formRules.`), !0;
|
|
1073
1073
|
let a = [];
|
|
1074
|
-
if (Array.isArray(
|
|
1075
|
-
a =
|
|
1076
|
-
else if (typeof
|
|
1077
|
-
const i =
|
|
1074
|
+
if (Array.isArray(r))
|
|
1075
|
+
a = r;
|
|
1076
|
+
else if (typeof r == "function") {
|
|
1077
|
+
const i = r(...n);
|
|
1078
1078
|
if (Array.isArray(i))
|
|
1079
1079
|
a = i;
|
|
1080
1080
|
else
|
|
1081
1081
|
return console.error(`[JQSelectNewValue] Rule '${e}' function did not return an array of validation functions.`), !0;
|
|
1082
1082
|
}
|
|
1083
1083
|
for (const i of a) {
|
|
1084
|
-
const
|
|
1085
|
-
if (
|
|
1086
|
-
return
|
|
1084
|
+
const s = i(t);
|
|
1085
|
+
if (s !== !0)
|
|
1086
|
+
return s;
|
|
1087
1087
|
}
|
|
1088
1088
|
return !0;
|
|
1089
1089
|
}
|
|
@@ -1106,8 +1106,8 @@ function Ft(e) {
|
|
|
1106
1106
|
percentageRules(t = ["left", "right"]) {
|
|
1107
1107
|
const n = t.includes("left"), l = t.includes("right"), o = /^(100(?:\.0{1,2})?|\d{1,2}(?:\.\d{1,2})?)$/;
|
|
1108
1108
|
return [
|
|
1109
|
-
(
|
|
1110
|
-
const a = String(
|
|
1109
|
+
(r) => {
|
|
1110
|
+
const a = String(r).trim();
|
|
1111
1111
|
if (!o.test(a))
|
|
1112
1112
|
return e("messages.formRules.percentageInvalid");
|
|
1113
1113
|
const i = parseFloat(a);
|
|
@@ -1137,21 +1137,21 @@ function Ft(e) {
|
|
|
1137
1137
|
ipPort: "1.1.1.1:8080",
|
|
1138
1138
|
path: "/test/example"
|
|
1139
1139
|
}, a = [(i) => {
|
|
1140
|
-
const
|
|
1141
|
-
if (!
|
|
1140
|
+
const s = String(i || "").trim();
|
|
1141
|
+
if (!s) return !0;
|
|
1142
1142
|
let c = "";
|
|
1143
1143
|
return t.some((d) => {
|
|
1144
1144
|
switch (d) {
|
|
1145
1145
|
case "url":
|
|
1146
|
-
return c = o.url, l.url.test(
|
|
1146
|
+
return c = o.url, l.url.test(s);
|
|
1147
1147
|
case "domain":
|
|
1148
|
-
return c = o.domain, l.domain.test(
|
|
1148
|
+
return c = o.domain, l.domain.test(s);
|
|
1149
1149
|
case "ip":
|
|
1150
|
-
return
|
|
1150
|
+
return s.includes(":") ? !1 : (c = o.ip, l.ip(s));
|
|
1151
1151
|
case "ip-port":
|
|
1152
|
-
return c = o.ipPort, l.ipPort.test(
|
|
1152
|
+
return c = o.ipPort, l.ipPort.test(s);
|
|
1153
1153
|
case "path":
|
|
1154
|
-
return c = o.path, l.path.test(
|
|
1154
|
+
return c = o.path, l.path.test(s);
|
|
1155
1155
|
default:
|
|
1156
1156
|
return !1;
|
|
1157
1157
|
}
|
|
@@ -1160,8 +1160,8 @@ function Ft(e) {
|
|
|
1160
1160
|
});
|
|
1161
1161
|
}];
|
|
1162
1162
|
return n && a.unshift((i) => {
|
|
1163
|
-
const
|
|
1164
|
-
return !
|
|
1163
|
+
const s = Array.isArray(i) && i.length === 0, c = i == null || i === "";
|
|
1164
|
+
return !s && !c || e("messages.formRules.required");
|
|
1165
1165
|
}), a;
|
|
1166
1166
|
},
|
|
1167
1167
|
email: [
|
|
@@ -1180,8 +1180,8 @@ function Ft(e) {
|
|
|
1180
1180
|
return [
|
|
1181
1181
|
(l) => {
|
|
1182
1182
|
l = Number(l);
|
|
1183
|
-
const o = Number.isInteger(l),
|
|
1184
|
-
return o &&
|
|
1183
|
+
const o = Number.isInteger(l), r = l >= t && l <= n;
|
|
1184
|
+
return o && r || e("messages.formRules.rangeInt", { min: t, max: n });
|
|
1185
1185
|
}
|
|
1186
1186
|
];
|
|
1187
1187
|
},
|
|
@@ -1297,14 +1297,14 @@ function Ft(e) {
|
|
|
1297
1297
|
]
|
|
1298
1298
|
};
|
|
1299
1299
|
}
|
|
1300
|
-
const
|
|
1300
|
+
const ro = {
|
|
1301
1301
|
timeout: 3e3,
|
|
1302
1302
|
html: !0,
|
|
1303
1303
|
progress: !0,
|
|
1304
1304
|
iconSize: "20px"
|
|
1305
1305
|
};
|
|
1306
1306
|
let He = null;
|
|
1307
|
-
class
|
|
1307
|
+
class so {
|
|
1308
1308
|
constructor() {
|
|
1309
1309
|
}
|
|
1310
1310
|
/**
|
|
@@ -1314,7 +1314,7 @@ class ro {
|
|
|
1314
1314
|
He = t;
|
|
1315
1315
|
}
|
|
1316
1316
|
show({ type: t, content: n, position: l, isNotify: o }) {
|
|
1317
|
-
const
|
|
1317
|
+
const r = {
|
|
1318
1318
|
error: "highlight_off",
|
|
1319
1319
|
warn: "o_info",
|
|
1320
1320
|
success: "check_circle"
|
|
@@ -1322,11 +1322,11 @@ class ro {
|
|
|
1322
1322
|
error: "red",
|
|
1323
1323
|
warn: "orange",
|
|
1324
1324
|
success: "green"
|
|
1325
|
-
}[t] || "dark"})`,
|
|
1325
|
+
}[t] || "dark"})`, s = Object.assign(ro, {
|
|
1326
1326
|
message: n,
|
|
1327
1327
|
position: l ?? "top",
|
|
1328
1328
|
multiLine: o ?? !1,
|
|
1329
|
-
icon:
|
|
1329
|
+
icon: r[t] || "o_info",
|
|
1330
1330
|
actions: o ? [
|
|
1331
1331
|
{
|
|
1332
1332
|
color: "primary",
|
|
@@ -1337,26 +1337,26 @@ class ro {
|
|
|
1337
1337
|
classes: `q-message-style q-message-style--${t}`
|
|
1338
1338
|
});
|
|
1339
1339
|
try {
|
|
1340
|
-
He != null && He.notify ? He.notify(
|
|
1340
|
+
He != null && He.notify ? He.notify(s) : (console.error("[JQMessage] Quasar Notify plugin not available. Make sure rtcptInit has been called."), alert(s.message));
|
|
1341
1341
|
} catch (c) {
|
|
1342
|
-
console.log(c), alert(
|
|
1342
|
+
console.log(c), alert(s.message);
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
|
-
const
|
|
1346
|
+
const rt = new so();
|
|
1347
1347
|
function uo(e, t = { size: 5, accept: ["xls", "xlsx"] }) {
|
|
1348
|
-
const n = e[0], { size: l, accept: o } = t, { t:
|
|
1348
|
+
const n = e[0], { size: l, accept: o } = t, { t: r } = X(), a = l * Math.pow(1024, 2);
|
|
1349
1349
|
if (n.size > a) {
|
|
1350
|
-
|
|
1351
|
-
content:
|
|
1350
|
+
rt.show({
|
|
1351
|
+
content: r("messages.jQFile.maxFileSizeIs", { max: l }),
|
|
1352
1352
|
type: "error"
|
|
1353
1353
|
});
|
|
1354
1354
|
return;
|
|
1355
1355
|
}
|
|
1356
1356
|
let i = n.name.substring(n.name.lastIndexOf(".")).toLowerCase();
|
|
1357
1357
|
if (i = i.replace(".", ""), o.indexOf(i) === -1) {
|
|
1358
|
-
|
|
1359
|
-
content:
|
|
1358
|
+
rt.show({
|
|
1359
|
+
content: r("messages.jQFile.unsupportFileFormat"),
|
|
1360
1360
|
type: "error"
|
|
1361
1361
|
});
|
|
1362
1362
|
return;
|
|
@@ -1402,9 +1402,9 @@ const co = B({
|
|
|
1402
1402
|
mounted() {
|
|
1403
1403
|
},
|
|
1404
1404
|
setup(e, { emit: t, expose: n }) {
|
|
1405
|
-
const l = z(!1), o = z(!1),
|
|
1406
|
-
let c = z(
|
|
1407
|
-
const d = Ft(
|
|
1405
|
+
const l = z(!1), o = z(!1), r = z(null), a = z(e.showConfirm), i = tl(), { t: s } = X();
|
|
1406
|
+
let c = z(s("action.cancel")), u = z(s("action.confirm"));
|
|
1407
|
+
const d = Ft(s), p = uo, I = v(() => {
|
|
1408
1408
|
var k;
|
|
1409
1409
|
return {
|
|
1410
1410
|
...e.componentBind,
|
|
@@ -1446,7 +1446,7 @@ const co = B({
|
|
|
1446
1446
|
};
|
|
1447
1447
|
return n({ open: S, close: M, setLoading: f, setConfirmVisible: g, changeCancelText: m, changeConfirmText: T, rules: d }), {
|
|
1448
1448
|
persistent: A,
|
|
1449
|
-
dynamicCompRef:
|
|
1449
|
+
dynamicCompRef: r,
|
|
1450
1450
|
cancelText: c,
|
|
1451
1451
|
confirmText: u,
|
|
1452
1452
|
visible: l,
|
|
@@ -1461,12 +1461,12 @@ const co = B({
|
|
|
1461
1461
|
confirmBtnVisible: a,
|
|
1462
1462
|
setConfirmVisible: g,
|
|
1463
1463
|
rules: d,
|
|
1464
|
-
t:
|
|
1464
|
+
t: s
|
|
1465
1465
|
};
|
|
1466
1466
|
}
|
|
1467
1467
|
}), po = { class: "loading-mask" }, fo = { class: "dialog-title" }, go = { class: "dialog-close-wrapper" }, mo = { class: "async-component-loading-mask" };
|
|
1468
|
-
function yo(e, t, n, l, o,
|
|
1469
|
-
const a = h("q-inner-loading"), i = h("q-icon"),
|
|
1468
|
+
function yo(e, t, n, l, o, r) {
|
|
1469
|
+
const a = h("q-inner-loading"), i = h("q-icon"), s = h("q-card-section"), c = h("j-q-button"), u = h("q-card"), d = h("q-dialog"), p = xe("close-popup");
|
|
1470
1470
|
return y(), V(d, {
|
|
1471
1471
|
class: q(["j-q-dialog", { "right-panel": e.position === "right" }, e.dialogClass]),
|
|
1472
1472
|
modelValue: e.visible,
|
|
@@ -1498,7 +1498,7 @@ function yo(e, t, n, l, o, s) {
|
|
|
1498
1498
|
], 512), [
|
|
1499
1499
|
[fe, e.getDataLoading]
|
|
1500
1500
|
]),
|
|
1501
|
-
e.showHeader ? (y(), V(
|
|
1501
|
+
e.showHeader ? (y(), V(s, {
|
|
1502
1502
|
key: 0,
|
|
1503
1503
|
class: "dialog-header q-pa-none"
|
|
1504
1504
|
}, {
|
|
@@ -1523,7 +1523,7 @@ function yo(e, t, n, l, o, s) {
|
|
|
1523
1523
|
(y(), V(nl, null, {
|
|
1524
1524
|
default: D(() => [
|
|
1525
1525
|
C("div", null, [
|
|
1526
|
-
b(
|
|
1526
|
+
b(s, {
|
|
1527
1527
|
class: "dialog-body scroll",
|
|
1528
1528
|
style: G({ "min-height": typeof e.minHeight == "string" ? e.minHeight : `${e.minHeight}px` })
|
|
1529
1529
|
}, {
|
|
@@ -1533,7 +1533,7 @@ function yo(e, t, n, l, o, s) {
|
|
|
1533
1533
|
]),
|
|
1534
1534
|
_: 3
|
|
1535
1535
|
}, 8, ["style"]),
|
|
1536
|
-
e.showFooter ? (y(), V(
|
|
1536
|
+
e.showFooter ? (y(), V(s, {
|
|
1537
1537
|
key: 0,
|
|
1538
1538
|
class: "q-pa-none dialog-footer"
|
|
1539
1539
|
}, {
|
|
@@ -1557,7 +1557,7 @@ function yo(e, t, n, l, o, s) {
|
|
|
1557
1557
|
])
|
|
1558
1558
|
]),
|
|
1559
1559
|
fallback: D(() => [
|
|
1560
|
-
b(
|
|
1560
|
+
b(s, null, {
|
|
1561
1561
|
default: D(() => [
|
|
1562
1562
|
C("div", mo, [
|
|
1563
1563
|
b(a, {
|
|
@@ -1612,7 +1612,7 @@ const Mo = /* @__PURE__ */ Z(co, [["render", yo], ["__scopeId", "data-v-ae72c3eb
|
|
|
1612
1612
|
},
|
|
1613
1613
|
slots: Object,
|
|
1614
1614
|
setup(e, { emit: t, slots: n, expose: l }) {
|
|
1615
|
-
const { t: o } = X(),
|
|
1615
|
+
const { t: o } = X(), r = z(e.modelValue ?? ""), a = z(null), i = z(e.customType !== "secret" && e.customType !== "password"), s = v(() => {
|
|
1616
1616
|
const j = String(e.modelValue ?? "");
|
|
1617
1617
|
if (e.customType === "secret" && !i.value) {
|
|
1618
1618
|
if (j.length === 0)
|
|
@@ -1623,7 +1623,7 @@ const Mo = /* @__PURE__ */ Z(co, [["render", yo], ["__scopeId", "data-v-ae72c3eb
|
|
|
1623
1623
|
return `${A}***${m}`;
|
|
1624
1624
|
}
|
|
1625
1625
|
return j;
|
|
1626
|
-
}), c = v(() => e.customType === "secret" ?
|
|
1626
|
+
}), c = v(() => e.customType === "secret" ? s.value : r.value), u = v(() => ({
|
|
1627
1627
|
"input-password": e.customType === "password" && !i.value,
|
|
1628
1628
|
"j-q-input--table": e.label,
|
|
1629
1629
|
"j-q-input--form": !e.label && e.type !== "textarea" && !e.smInput,
|
|
@@ -1633,7 +1633,7 @@ const Mo = /* @__PURE__ */ Z(co, [["render", yo], ["__scopeId", "data-v-ae72c3eb
|
|
|
1633
1633
|
W(
|
|
1634
1634
|
() => e.modelValue,
|
|
1635
1635
|
(j) => {
|
|
1636
|
-
j !==
|
|
1636
|
+
j !== r.value && (r.value = j);
|
|
1637
1637
|
},
|
|
1638
1638
|
{ immediate: !0 }
|
|
1639
1639
|
);
|
|
@@ -1645,7 +1645,7 @@ const Mo = /* @__PURE__ */ Z(co, [["render", yo], ["__scopeId", "data-v-ae72c3eb
|
|
|
1645
1645
|
return Number.isFinite(A) && A >= 0 ? A : NaN;
|
|
1646
1646
|
});
|
|
1647
1647
|
W(
|
|
1648
|
-
() =>
|
|
1648
|
+
() => r.value,
|
|
1649
1649
|
(j, A) => {
|
|
1650
1650
|
const m = d.value;
|
|
1651
1651
|
let T = j;
|
|
@@ -1655,14 +1655,14 @@ const Mo = /* @__PURE__ */ Z(co, [["render", yo], ["__scopeId", "data-v-ae72c3eb
|
|
|
1655
1655
|
}
|
|
1656
1656
|
if (T !== j) {
|
|
1657
1657
|
if (e.inputLimitFn && !e.inputLimitFn(T)) {
|
|
1658
|
-
|
|
1658
|
+
r.value = A;
|
|
1659
1659
|
return;
|
|
1660
1660
|
}
|
|
1661
|
-
|
|
1661
|
+
r.value = T;
|
|
1662
1662
|
return;
|
|
1663
1663
|
}
|
|
1664
1664
|
if (j !== A && e.inputLimitFn && !e.inputLimitFn(T)) {
|
|
1665
|
-
|
|
1665
|
+
r.value = A;
|
|
1666
1666
|
return;
|
|
1667
1667
|
}
|
|
1668
1668
|
t("update:modelValue", T);
|
|
@@ -1685,9 +1685,9 @@ const Mo = /* @__PURE__ */ Z(co, [["render", yo], ["__scopeId", "data-v-ae72c3eb
|
|
|
1685
1685
|
toggleVisibility: I
|
|
1686
1686
|
}), {
|
|
1687
1687
|
t: o,
|
|
1688
|
-
innerModel:
|
|
1688
|
+
innerModel: r,
|
|
1689
1689
|
computedInputValue: c,
|
|
1690
|
-
computedDisplayValue:
|
|
1690
|
+
computedDisplayValue: s,
|
|
1691
1691
|
computedClass: u,
|
|
1692
1692
|
change: p,
|
|
1693
1693
|
qInputRef: a,
|
|
@@ -1696,7 +1696,7 @@ const Mo = /* @__PURE__ */ Z(co, [["render", yo], ["__scopeId", "data-v-ae72c3eb
|
|
|
1696
1696
|
};
|
|
1697
1697
|
}
|
|
1698
1698
|
});
|
|
1699
|
-
function ho(e, t, n, l, o,
|
|
1699
|
+
function ho(e, t, n, l, o, r) {
|
|
1700
1700
|
const a = h("q-input");
|
|
1701
1701
|
return y(), V(a, {
|
|
1702
1702
|
class: q(["j-q-input", e.computedClass]),
|
|
@@ -1792,14 +1792,14 @@ const ft = /* @__PURE__ */ Z(Io, [["render", ho]]), Ao = B({
|
|
|
1792
1792
|
},
|
|
1793
1793
|
slots: Object,
|
|
1794
1794
|
setup(e, { emit: t, slots: n, expose: l }) {
|
|
1795
|
-
const o = z(null), { t:
|
|
1795
|
+
const o = z(null), { t: r } = X(), a = z(!1), i = v({
|
|
1796
1796
|
get() {
|
|
1797
1797
|
return e.multiple && (e.modelValue === null || e.modelValue === void 0) ? [] : e.modelValue;
|
|
1798
1798
|
},
|
|
1799
1799
|
set(M) {
|
|
1800
1800
|
t("update:modelValue", M);
|
|
1801
1801
|
}
|
|
1802
|
-
}),
|
|
1802
|
+
}), s = (M) => {
|
|
1803
1803
|
t("manual-change", M);
|
|
1804
1804
|
}, c = z(e.options), u = z(""), d = z(void 0), p = v(() => !!e.optionValue), I = v(() => d.value ? d.value : u.value ? e.options.filter((M) => {
|
|
1805
1805
|
const f = (M == null ? void 0 : M[e.optionLabel]) ?? JSON.stringify(M);
|
|
@@ -1860,7 +1860,7 @@ const ft = /* @__PURE__ */ Z(Io, [["render", ho]]), Ao = B({
|
|
|
1860
1860
|
let M = "j-q-select-popup select-popup-content height1";
|
|
1861
1861
|
return e.popupContentClass && (M += ` ${e.popupContentClass}`), M;
|
|
1862
1862
|
}), $ = () => {
|
|
1863
|
-
|
|
1863
|
+
se(() => {
|
|
1864
1864
|
if (o.value) {
|
|
1865
1865
|
const M = o.value.$el, f = M == null ? void 0 : M.querySelector(".q-field__native span");
|
|
1866
1866
|
f && (a.value = f.scrollWidth > f.clientWidth);
|
|
@@ -1888,7 +1888,7 @@ const ft = /* @__PURE__ */ Z(Io, [["render", ho]]), Ao = B({
|
|
|
1888
1888
|
return (M = o.value) == null ? void 0 : M.resetValidation();
|
|
1889
1889
|
}
|
|
1890
1890
|
}), {
|
|
1891
|
-
t:
|
|
1891
|
+
t: r,
|
|
1892
1892
|
qSelectRef: o,
|
|
1893
1893
|
innerValue: i,
|
|
1894
1894
|
computedEmitValue: p,
|
|
@@ -1900,12 +1900,12 @@ const ft = /* @__PURE__ */ Z(Io, [["render", ho]]), Ao = B({
|
|
|
1900
1900
|
computedPopupContentClass: L,
|
|
1901
1901
|
computedOptions: I,
|
|
1902
1902
|
slots: n,
|
|
1903
|
-
handleManualChange:
|
|
1903
|
+
handleManualChange: s
|
|
1904
1904
|
};
|
|
1905
1905
|
}
|
|
1906
1906
|
}), Do = { class: "select-selected-item" }, Co = { class: "select-selected-item__content" };
|
|
1907
|
-
function vo(e, t, n, l, o,
|
|
1908
|
-
const a = h("q-spinner"), i = h("q-icon"),
|
|
1907
|
+
function vo(e, t, n, l, o, r) {
|
|
1908
|
+
const a = h("q-spinner"), i = h("q-icon"), s = h("q-item-section"), c = h("q-item"), u = h("q-select");
|
|
1909
1909
|
return y(), V(u, {
|
|
1910
1910
|
ref: "qSelectRef",
|
|
1911
1911
|
class: q([{
|
|
@@ -2027,7 +2027,7 @@ function vo(e, t, n, l, o, s) {
|
|
|
2027
2027
|
Y(e.$slots, "no-option", {}, () => [
|
|
2028
2028
|
b(c, { dense: e.dense }, {
|
|
2029
2029
|
default: D(() => [
|
|
2030
|
-
b(
|
|
2030
|
+
b(s, { class: "text-grey text-caption" }, {
|
|
2031
2031
|
default: D(() => [
|
|
2032
2032
|
J(O(e.t("messages.noData")), 1)
|
|
2033
2033
|
]),
|
|
@@ -2121,13 +2121,13 @@ const No = /* @__PURE__ */ Z(Ao, [["render", vo]]), bo = B({
|
|
|
2121
2121
|
"update:modelValue": (e) => !0
|
|
2122
2122
|
},
|
|
2123
2123
|
setup(e, { emit: t, expose: n }) {
|
|
2124
|
-
const l = z(null), o = z(null),
|
|
2125
|
-
W(
|
|
2124
|
+
const l = z(null), o = z(null), r = z(e.modelValue);
|
|
2125
|
+
W(r, (c) => {
|
|
2126
2126
|
t("update:modelValue", c);
|
|
2127
2127
|
}), W(
|
|
2128
2128
|
() => e.modelValue,
|
|
2129
2129
|
(c) => {
|
|
2130
|
-
c !==
|
|
2130
|
+
c !== r.value && (r.value = c);
|
|
2131
2131
|
}
|
|
2132
2132
|
);
|
|
2133
2133
|
const a = () => {
|
|
@@ -2136,7 +2136,7 @@ const No = /* @__PURE__ */ Z(Ao, [["render", vo]]), bo = B({
|
|
|
2136
2136
|
var d, p;
|
|
2137
2137
|
const c = e.type === "select" ? o.value : l.value;
|
|
2138
2138
|
await ((d = c == null ? void 0 : c.validate) == null ? void 0 : d.call(c)) !== !1 && (p = e.dialogInstance) != null && p.resolve && e.dialogInstance.resolve({
|
|
2139
|
-
value:
|
|
2139
|
+
value: r.value,
|
|
2140
2140
|
dialogInstance: e.dialogInstance
|
|
2141
2141
|
});
|
|
2142
2142
|
};
|
|
@@ -2149,19 +2149,19 @@ const No = /* @__PURE__ */ Z(Ao, [["render", vo]]), bo = B({
|
|
|
2149
2149
|
}), {
|
|
2150
2150
|
inputRef: l,
|
|
2151
2151
|
selectRef: o,
|
|
2152
|
-
inputValue:
|
|
2152
|
+
inputValue: r,
|
|
2153
2153
|
onEnterKey: a
|
|
2154
2154
|
};
|
|
2155
2155
|
}
|
|
2156
2156
|
}), jo = { class: "j-q-dialog-prompt-content" };
|
|
2157
|
-
function wo(e, t, n, l, o,
|
|
2157
|
+
function wo(e, t, n, l, o, r) {
|
|
2158
2158
|
const a = h("j-q-input"), i = h("j-q-select");
|
|
2159
2159
|
return y(), w("div", jo, [
|
|
2160
2160
|
e.type === "text" || e.type === "textarea" ? (y(), V(a, me({
|
|
2161
2161
|
key: 0,
|
|
2162
2162
|
ref: "inputRef",
|
|
2163
2163
|
modelValue: e.inputValue,
|
|
2164
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2164
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => e.inputValue = s),
|
|
2165
2165
|
placeholder: e.placeholder,
|
|
2166
2166
|
type: e.type,
|
|
2167
2167
|
rules: e.rules,
|
|
@@ -2172,7 +2172,7 @@ function wo(e, t, n, l, o, s) {
|
|
|
2172
2172
|
key: 1,
|
|
2173
2173
|
ref: "selectRef",
|
|
2174
2174
|
modelValue: e.inputValue,
|
|
2175
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
2175
|
+
"onUpdate:modelValue": t[1] || (t[1] = (s) => e.inputValue = s),
|
|
2176
2176
|
placeholder: e.placeholder,
|
|
2177
2177
|
rules: e.rules,
|
|
2178
2178
|
options: e.options,
|
|
@@ -2241,7 +2241,7 @@ const Ht = {
|
|
|
2241
2241
|
var L;
|
|
2242
2242
|
const t = Math.random().toString(36).slice(2), n = e.dialogType === "text" || e.dialogType === "textarea" || e.dialogType === "select";
|
|
2243
2243
|
let l = null, o = null;
|
|
2244
|
-
const
|
|
2244
|
+
const r = n ? new Promise(($, S) => {
|
|
2245
2245
|
l = $, o = S;
|
|
2246
2246
|
}) : null, a = e.dialogType === "text" ? e.text : e.dialogType === "textarea" ? e.textarea : e.dialogType === "select" ? e.select : null, i = n && a ? {
|
|
2247
2247
|
...e,
|
|
@@ -2285,10 +2285,10 @@ const Ht = {
|
|
|
2285
2285
|
},
|
|
2286
2286
|
componentOn: {}
|
|
2287
2287
|
// 提供空对象避免 v-on 警告
|
|
2288
|
-
} : { ...e, dialogId: t },
|
|
2289
|
-
ce.router &&
|
|
2288
|
+
} : { ...e, dialogId: t }, s = ol(Mo, i);
|
|
2289
|
+
ce.router && s.use(ce.router), ce.store && s.use(ce.store), ce.i18n && s.use(ce.i18n), ce.plugins && ce.plugins.forEach(($) => s.use($));
|
|
2290
2290
|
const { Quasar: c, Notify: u, Dialog: d, Loading: p } = await import("quasar");
|
|
2291
|
-
|
|
2291
|
+
s.use(c, {
|
|
2292
2292
|
plugins: {
|
|
2293
2293
|
Notify: u,
|
|
2294
2294
|
Dialog: d,
|
|
@@ -2296,27 +2296,27 @@ const Ht = {
|
|
|
2296
2296
|
},
|
|
2297
2297
|
animations: "all"
|
|
2298
2298
|
});
|
|
2299
|
-
const I = (L =
|
|
2300
|
-
I != null && I["close-popup"] ||
|
|
2299
|
+
const I = (L = s == null ? void 0 : s._context) == null ? void 0 : L.directives;
|
|
2300
|
+
I != null && I["close-popup"] || s.directive("close-popup", ct);
|
|
2301
2301
|
const j = Qt(), A = zo[j];
|
|
2302
2302
|
if (A)
|
|
2303
2303
|
try {
|
|
2304
2304
|
const $ = await A();
|
|
2305
|
-
|
|
2305
|
+
s.config.globalProperties.$q.lang.set($.default);
|
|
2306
2306
|
} catch ($) {
|
|
2307
2307
|
console.error(`[rtcpt] Failed to load Quasar locale for ${j}:`, $);
|
|
2308
2308
|
}
|
|
2309
2309
|
if (ce.iconMapFn) {
|
|
2310
|
-
const $ =
|
|
2310
|
+
const $ = s.config.globalProperties.$q;
|
|
2311
2311
|
$.iconMapFn = kn($.iconMapFn, ce.iconMapFn);
|
|
2312
2312
|
}
|
|
2313
|
-
ce.pagePermissionIds &&
|
|
2313
|
+
ce.pagePermissionIds && s.provide(nt, ce.pagePermissionIds), ce.pageActionPermissionIds && s.provide(tt, ce.pageActionPermissionIds);
|
|
2314
2314
|
const m = document.createElement("div");
|
|
2315
2315
|
document.body.appendChild(m);
|
|
2316
|
-
const T =
|
|
2317
|
-
return $e.set(t, { app:
|
|
2316
|
+
const T = s.mount(m);
|
|
2317
|
+
return $e.set(t, { app: s, appInstance: T }), se(() => {
|
|
2318
2318
|
T.open();
|
|
2319
|
-
}).then(($) => $), n &&
|
|
2319
|
+
}).then(($) => $), n && r ? r : T;
|
|
2320
2320
|
},
|
|
2321
2321
|
destroy(e) {
|
|
2322
2322
|
const t = $e.get(e);
|
|
@@ -2357,14 +2357,14 @@ const Ht = {
|
|
|
2357
2357
|
},
|
|
2358
2358
|
setup(e, { slots: t }) {
|
|
2359
2359
|
const n = z(null), l = z(0), o = z(e.defaultCollapsed);
|
|
2360
|
-
let
|
|
2361
|
-
const i = 5, { t:
|
|
2360
|
+
let r = null, a = 0;
|
|
2361
|
+
const i = 5, { t: s } = X(), c = () => {
|
|
2362
2362
|
if (n.value) {
|
|
2363
|
-
|
|
2363
|
+
r && r.disconnect();
|
|
2364
2364
|
const A = n.value.scrollHeight;
|
|
2365
2365
|
A > 0 ? (l.value = A, a = 0) : n.value.children.length > 0 && a < i && (a++, setTimeout(() => {
|
|
2366
2366
|
c();
|
|
2367
|
-
}, 100)),
|
|
2367
|
+
}, 100)), r && n.value && r.observe(n.value, {
|
|
2368
2368
|
childList: !0,
|
|
2369
2369
|
subtree: !0
|
|
2370
2370
|
});
|
|
@@ -2376,7 +2376,7 @@ const Ht = {
|
|
|
2376
2376
|
var m;
|
|
2377
2377
|
const A = (m = t.default) == null ? void 0 : m.call(t);
|
|
2378
2378
|
A && Ht.register({
|
|
2379
|
-
title: e.dialogTitle ||
|
|
2379
|
+
title: e.dialogTitle || s("action.viewAll"),
|
|
2380
2380
|
maxWidth: e.dialogMaxWidth,
|
|
2381
2381
|
minHeight: "auto",
|
|
2382
2382
|
showHeader: !0,
|
|
@@ -2387,25 +2387,25 @@ const Ht = {
|
|
|
2387
2387
|
e.viewInDialog ? p() : o.value = !o.value;
|
|
2388
2388
|
};
|
|
2389
2389
|
return ze(() => {
|
|
2390
|
-
|
|
2391
|
-
c(), n.value && (
|
|
2392
|
-
|
|
2393
|
-
}),
|
|
2390
|
+
se(() => {
|
|
2391
|
+
c(), n.value && (r = new MutationObserver(() => {
|
|
2392
|
+
se(c);
|
|
2393
|
+
}), r.observe(n.value, {
|
|
2394
2394
|
childList: !0,
|
|
2395
2395
|
subtree: !0
|
|
2396
2396
|
}));
|
|
2397
2397
|
});
|
|
2398
2398
|
}), al(() => {
|
|
2399
|
-
|
|
2399
|
+
r && (r.disconnect(), r = null);
|
|
2400
2400
|
}), {
|
|
2401
|
-
t:
|
|
2401
|
+
t: s,
|
|
2402
2402
|
contentWrapperRef: n,
|
|
2403
2403
|
isCollapsed: o,
|
|
2404
2404
|
needsToggle: u,
|
|
2405
2405
|
toggleList: I,
|
|
2406
2406
|
currentStyle: d,
|
|
2407
2407
|
remeasure: () => {
|
|
2408
|
-
a = 0,
|
|
2408
|
+
a = 0, se(c);
|
|
2409
2409
|
}
|
|
2410
2410
|
};
|
|
2411
2411
|
}
|
|
@@ -2413,7 +2413,7 @@ const Ht = {
|
|
|
2413
2413
|
key: 0,
|
|
2414
2414
|
class: "jc-toggle-overlay"
|
|
2415
2415
|
};
|
|
2416
|
-
function Eo(e, t, n, l, o,
|
|
2416
|
+
function Eo(e, t, n, l, o, r) {
|
|
2417
2417
|
return y(), w("div", $o, [
|
|
2418
2418
|
C("div", Oo, [
|
|
2419
2419
|
C("div", {
|
|
@@ -2438,7 +2438,7 @@ function Eo(e, t, n, l, o, s) {
|
|
|
2438
2438
|
])
|
|
2439
2439
|
]);
|
|
2440
2440
|
}
|
|
2441
|
-
const
|
|
2441
|
+
const sf = /* @__PURE__ */ Z(Lo, [["render", Eo], ["__scopeId", "data-v-48376fdd"]]), Po = B({
|
|
2442
2442
|
name: "JCFormatLookup",
|
|
2443
2443
|
props: {
|
|
2444
2444
|
/**
|
|
@@ -2482,9 +2482,9 @@ const rf = /* @__PURE__ */ Z(Lo, [["render", Eo], ["__scopeId", "data-v-48376fdd
|
|
|
2482
2482
|
slots: Object,
|
|
2483
2483
|
setup(e) {
|
|
2484
2484
|
const t = v(() => {
|
|
2485
|
-
const o = e.value,
|
|
2486
|
-
if (!(o === null || !
|
|
2487
|
-
return
|
|
2485
|
+
const o = e.value, r = e.options, a = e.matchKeys;
|
|
2486
|
+
if (!(o === null || !r || r.length === 0))
|
|
2487
|
+
return r.find((i) => a.some((s) => i[s] !== void 0 && i[s] === o));
|
|
2488
2488
|
}), n = v(() => !!t.value), l = v(() => t.value ? t.value.label : e.defaultContent);
|
|
2489
2489
|
return {
|
|
2490
2490
|
hasMatch: n,
|
|
@@ -2492,7 +2492,7 @@ const rf = /* @__PURE__ */ Z(Lo, [["render", Eo], ["__scopeId", "data-v-48376fdd
|
|
|
2492
2492
|
};
|
|
2493
2493
|
}
|
|
2494
2494
|
}), Yo = { key: 0 };
|
|
2495
|
-
function Qo(e, t, n, l, o,
|
|
2495
|
+
function Qo(e, t, n, l, o, r) {
|
|
2496
2496
|
return e.hasMatch ? Y(e.$slots, "default", {
|
|
2497
2497
|
key: 0,
|
|
2498
2498
|
label: e.displayLabel
|
|
@@ -2530,7 +2530,7 @@ const uf = /* @__PURE__ */ Z(Po, [["render", Qo]]), qo = B({
|
|
|
2530
2530
|
};
|
|
2531
2531
|
}
|
|
2532
2532
|
}), Ro = { class: "row items-center" }, Uo = { class: "form-content" }, Bo = { class: "form-value__inner" }, Zo = { class: "form-item-detail-wrapper" };
|
|
2533
|
-
function Wo(e, t, n, l, o,
|
|
2533
|
+
function Wo(e, t, n, l, o, r) {
|
|
2534
2534
|
const a = h("q-icon"), i = h("j-c-tooltip");
|
|
2535
2535
|
return y(), w("div", {
|
|
2536
2536
|
class: q(["j-q-form-label", [e.directionClass, { required: e.required }]])
|
|
@@ -2598,35 +2598,35 @@ const Fo = /* @__PURE__ */ Z(qo, [["render", Wo]]), Ho = B({
|
|
|
2598
2598
|
setup(e, { emit: t }) {
|
|
2599
2599
|
const { t: n } = X(), l = v({
|
|
2600
2600
|
get: () => e.modelValue,
|
|
2601
|
-
set: (
|
|
2602
|
-
t("update:modelValue",
|
|
2601
|
+
set: (s) => {
|
|
2602
|
+
t("update:modelValue", s);
|
|
2603
2603
|
}
|
|
2604
2604
|
});
|
|
2605
2605
|
return {
|
|
2606
2606
|
computedPlaceholder: v(() => e.placeholder || n("messages.pleaseEnter")),
|
|
2607
2607
|
innerValue: l,
|
|
2608
|
-
updateItem: (
|
|
2608
|
+
updateItem: (s, c) => {
|
|
2609
2609
|
const u = String(c ?? "");
|
|
2610
|
-
if (l.value[
|
|
2610
|
+
if (l.value[s] !== u) {
|
|
2611
2611
|
const d = [...l.value];
|
|
2612
|
-
d[
|
|
2612
|
+
d[s] = u, l.value = d;
|
|
2613
2613
|
}
|
|
2614
2614
|
},
|
|
2615
|
-
addItem: (
|
|
2615
|
+
addItem: (s) => {
|
|
2616
2616
|
const c = [...l.value];
|
|
2617
|
-
c.splice(
|
|
2617
|
+
c.splice(s, 0, e.defaultNewValue), l.value = c;
|
|
2618
2618
|
},
|
|
2619
|
-
removeItem: (
|
|
2619
|
+
removeItem: (s) => {
|
|
2620
2620
|
const c = [...l.value];
|
|
2621
|
-
c.splice(
|
|
2621
|
+
c.splice(s, 1), l.value = c;
|
|
2622
2622
|
}
|
|
2623
2623
|
};
|
|
2624
2624
|
}
|
|
2625
2625
|
}), Jo = { class: "col-6" }, Go = { style: { "margin-top": "4px" } };
|
|
2626
|
-
function _o(e, t, n, l, o,
|
|
2627
|
-
const a = h("j-q-input"), i = h("q-btn"),
|
|
2626
|
+
function _o(e, t, n, l, o, r) {
|
|
2627
|
+
const a = h("j-q-input"), i = h("q-btn"), s = h("j-q-form-label");
|
|
2628
2628
|
return y(), w("div", null, [
|
|
2629
|
-
b(
|
|
2629
|
+
b(s, {
|
|
2630
2630
|
label: e.label,
|
|
2631
2631
|
required: e.required
|
|
2632
2632
|
}, {
|
|
@@ -2747,7 +2747,7 @@ const cf = /* @__PURE__ */ Z(Ho, [["render", _o]]), Ko = B({
|
|
|
2747
2747
|
action: (e) => !0
|
|
2748
2748
|
},
|
|
2749
2749
|
setup(e, { emit: t, slots: n }) {
|
|
2750
|
-
const { t: l } = X(), o = v(() => e.translate ?? l),
|
|
2750
|
+
const { t: l } = X(), o = v(() => e.translate ?? l), r = Pe(tt, z([])), a = Pe(nt, z([])), i = (g, N, k) => typeof g == "function" ? !!g(N) : typeof g == "boolean" ? g : k, s = (g) => i(g.visible, e.item, !0), c = (g) => i(g.disabled, e.item, !1), u = (g) => g ? a.value.includes(g) || r.value.includes(g) : !0, d = (g) => s(g) ? u(g.permissionCode) : !1, p = v(() => e.actions.some((g) => d(g))), I = v(() => typeof e.fit == "boolean" ? e.fit : e.size === "md"), j = v(() => {
|
|
2751
2751
|
if (e.size === "lg")
|
|
2752
2752
|
return e.offset ?? [5, 10];
|
|
2753
2753
|
}), A = v(() => {
|
|
@@ -2761,7 +2761,7 @@ const cf = /* @__PURE__ */ Z(Ho, [["render", _o]]), Ko = B({
|
|
|
2761
2761
|
}, f = (g) => g.id ? !!n[`menu-icon-${g.id}`] : !1;
|
|
2762
2762
|
return {
|
|
2763
2763
|
hasVisibleActions: p,
|
|
2764
|
-
isActionVisible:
|
|
2764
|
+
isActionVisible: s,
|
|
2765
2765
|
isActionDisabled: c,
|
|
2766
2766
|
shouldShowAction: d,
|
|
2767
2767
|
size: v(() => e.size),
|
|
@@ -2785,8 +2785,8 @@ const cf = /* @__PURE__ */ Z(Ho, [["render", _o]]), Ko = B({
|
|
|
2785
2785
|
key: 0,
|
|
2786
2786
|
class: "jc-more-menu__icon"
|
|
2787
2787
|
}, ea = { key: 1 };
|
|
2788
|
-
function ta(e, t, n, l, o,
|
|
2789
|
-
const a = h("q-icon"), i = h("q-item-section"),
|
|
2788
|
+
function ta(e, t, n, l, o, r) {
|
|
2789
|
+
const a = h("q-icon"), i = h("q-item-section"), s = h("q-item"), c = h("j-c-permission"), u = h("q-list"), d = h("q-menu"), p = xe("close-popup");
|
|
2790
2790
|
return e.hasVisibleActions || e.showEmptyPlaceholder ? (y(), w("div", xo, [
|
|
2791
2791
|
e.hasVisibleActions ? (y(), w("div", Xo, [
|
|
2792
2792
|
Y(e.$slots, "trigger", {}, () => [
|
|
@@ -2816,7 +2816,7 @@ function ta(e, t, n, l, o, s) {
|
|
|
2816
2816
|
"default-content": I.defaultContent ?? "-"
|
|
2817
2817
|
}, {
|
|
2818
2818
|
default: D(() => [
|
|
2819
|
-
e.shouldShowAction(I) ? oe((y(), V(
|
|
2819
|
+
e.shouldShowAction(I) ? oe((y(), V(s, {
|
|
2820
2820
|
key: 0,
|
|
2821
2821
|
clickable: I.clickable ?? !0,
|
|
2822
2822
|
disable: e.isActionDisabled(I),
|
|
@@ -2907,8 +2907,8 @@ const df = /* @__PURE__ */ Z(Ko, [["render", ta], ["__scopeId", "data-v-51a82f6e
|
|
|
2907
2907
|
};
|
|
2908
2908
|
}
|
|
2909
2909
|
});
|
|
2910
|
-
function la(e, t, n, l, o,
|
|
2911
|
-
const a = h("q-item-section"), i = h("q-icon"),
|
|
2910
|
+
function la(e, t, n, l, o, r) {
|
|
2911
|
+
const a = h("q-item-section"), i = h("q-icon"), s = h("nested-menu-item", !0), c = h("q-list"), u = h("q-menu"), d = h("q-item"), p = xe("close-popup");
|
|
2912
2912
|
return oe((y(), V(d, {
|
|
2913
2913
|
clickable: "",
|
|
2914
2914
|
onClick: e.handleClick,
|
|
@@ -2944,7 +2944,7 @@ function la(e, t, n, l, o, s) {
|
|
|
2944
2944
|
default: D(() => [
|
|
2945
2945
|
b(c, { dense: "" }, {
|
|
2946
2946
|
default: D(() => [
|
|
2947
|
-
(y(!0), w(_, null, ee(e.option.children, (I) => (y(), V(
|
|
2947
|
+
(y(!0), w(_, null, ee(e.option.children, (I) => (y(), V(s, {
|
|
2948
2948
|
key: I.value,
|
|
2949
2949
|
option: I,
|
|
2950
2950
|
"selected-value": e.selectedValue,
|
|
@@ -3047,14 +3047,14 @@ const oa = /* @__PURE__ */ Z(na, [["render", la]]), aa = B({
|
|
|
3047
3047
|
set(c) {
|
|
3048
3048
|
t("update:modelValue", c), t("change", c);
|
|
3049
3049
|
}
|
|
3050
|
-
}),
|
|
3050
|
+
}), r = (c, u) => {
|
|
3051
3051
|
if (c == null)
|
|
3052
3052
|
return null;
|
|
3053
3053
|
for (const d of u) {
|
|
3054
3054
|
if (d.value === c)
|
|
3055
3055
|
return d;
|
|
3056
3056
|
if (d.children && d.children.length > 0) {
|
|
3057
|
-
const p =
|
|
3057
|
+
const p = r(c, d.children);
|
|
3058
3058
|
if (p)
|
|
3059
3059
|
return p;
|
|
3060
3060
|
}
|
|
@@ -3072,7 +3072,7 @@ const oa = /* @__PURE__ */ Z(na, [["render", la]]), aa = B({
|
|
|
3072
3072
|
const c = e.optionsOrigin.length > 0 ? e.optionsOrigin : e.options;
|
|
3073
3073
|
if (e.displayValueFn)
|
|
3074
3074
|
return e.displayValueFn(o.value, c);
|
|
3075
|
-
const u =
|
|
3075
|
+
const u = r(o.value, c);
|
|
3076
3076
|
return u ? a(u) : "";
|
|
3077
3077
|
});
|
|
3078
3078
|
return {
|
|
@@ -3088,9 +3088,9 @@ const oa = /* @__PURE__ */ Z(na, [["render", la]]), aa = B({
|
|
|
3088
3088
|
}), ia = {
|
|
3089
3089
|
key: 0,
|
|
3090
3090
|
class: "q-field__native--text"
|
|
3091
|
-
},
|
|
3092
|
-
function
|
|
3093
|
-
const a = h("nested-menu-item"), i = h("q-list"),
|
|
3091
|
+
}, ra = { key: 1 };
|
|
3092
|
+
function sa(e, t, n, l, o, r) {
|
|
3093
|
+
const a = h("nested-menu-item"), i = h("q-list"), s = h("q-menu"), c = h("q-select");
|
|
3094
3094
|
return y(), V(c, {
|
|
3095
3095
|
ref: "qSelectRef",
|
|
3096
3096
|
class: q([
|
|
@@ -3126,11 +3126,11 @@ function ra(e, t, n, l, o, s) {
|
|
|
3126
3126
|
title: e.ellipsis ? e.displayValue : void 0
|
|
3127
3127
|
}, {
|
|
3128
3128
|
selected: D(() => [
|
|
3129
|
-
e.ellipsis ? (y(), w("span", ia, O(e.displayValue), 1)) : (y(), w("span",
|
|
3129
|
+
e.ellipsis ? (y(), w("span", ia, O(e.displayValue), 1)) : (y(), w("span", ra, O(e.displayValue), 1))
|
|
3130
3130
|
]),
|
|
3131
3131
|
option: D(() => [...t[1] || (t[1] = [])]),
|
|
3132
3132
|
default: D(() => [
|
|
3133
|
-
b(
|
|
3133
|
+
b(s, {
|
|
3134
3134
|
fit: "",
|
|
3135
3135
|
"styling-menu-option": "",
|
|
3136
3136
|
"parent-tree": ""
|
|
@@ -3156,7 +3156,7 @@ function ra(e, t, n, l, o, s) {
|
|
|
3156
3156
|
_: 1
|
|
3157
3157
|
}, 8, ["class", "style", "modelValue", "options", "label", "clearable", "popup-content-class", "disable", "readonly", "title"]);
|
|
3158
3158
|
}
|
|
3159
|
-
const pf = /* @__PURE__ */ Z(aa, [["render",
|
|
3159
|
+
const pf = /* @__PURE__ */ Z(aa, [["render", sa]]), ua = B({
|
|
3160
3160
|
name: "JCTable",
|
|
3161
3161
|
components: {
|
|
3162
3162
|
JCCopy: Mn,
|
|
@@ -3205,29 +3205,29 @@ const pf = /* @__PURE__ */ Z(aa, [["render", ra]]), ua = B({
|
|
|
3205
3205
|
}
|
|
3206
3206
|
},
|
|
3207
3207
|
setup(e) {
|
|
3208
|
-
const t = z(null), n = z(/* @__PURE__ */ new Map()), l = z(/* @__PURE__ */ new Map()), o = (f, g) => e.rowKey && f[e.rowKey] !== void 0 ? f[e.rowKey] : g,
|
|
3208
|
+
const t = z(null), n = z(/* @__PURE__ */ new Map()), l = z(/* @__PURE__ */ new Map()), o = (f, g) => e.rowKey && f[e.rowKey] !== void 0 ? f[e.rowKey] : g, r = (f, g) => {
|
|
3209
3209
|
if (typeof g.field == "function")
|
|
3210
3210
|
return g.field(f);
|
|
3211
3211
|
const N = g.field || g.name;
|
|
3212
3212
|
return f[N];
|
|
3213
3213
|
}, a = (f, g) => {
|
|
3214
|
-
const N =
|
|
3214
|
+
const N = r(f, g);
|
|
3215
3215
|
return g.format && typeof g.format == "function" ? g.format(N, f) : N == null ? "-" : String(N);
|
|
3216
3216
|
}, i = (f, g) => {
|
|
3217
|
-
const N =
|
|
3217
|
+
const N = r(f, g);
|
|
3218
3218
|
return N == null || N === "" ? "" : String(N);
|
|
3219
|
-
},
|
|
3219
|
+
}, s = (f, g) => {
|
|
3220
3220
|
if (!f.onClick) return !1;
|
|
3221
3221
|
if (f.clickable === void 0 || f.clickable === null) return !0;
|
|
3222
3222
|
if (typeof f.clickable == "boolean") return f.clickable;
|
|
3223
3223
|
if (typeof f.clickable == "function") {
|
|
3224
|
-
const N =
|
|
3224
|
+
const N = r(g, f);
|
|
3225
3225
|
return f.clickable(N, g);
|
|
3226
3226
|
}
|
|
3227
3227
|
return !1;
|
|
3228
3228
|
}, c = (f, g) => {
|
|
3229
|
-
if (!
|
|
3230
|
-
const N =
|
|
3229
|
+
if (!s(f, g) || !f.onClick) return;
|
|
3230
|
+
const N = r(g, f);
|
|
3231
3231
|
f.onClick(N, g);
|
|
3232
3232
|
}, u = (f) => {
|
|
3233
3233
|
if (f != null)
|
|
@@ -3267,7 +3267,7 @@ const pf = /* @__PURE__ */ Z(aa, [["render", ra]]), ua = B({
|
|
|
3267
3267
|
return g;
|
|
3268
3268
|
}, T = (f, g, N) => {
|
|
3269
3269
|
const k = `${g}-${N}`;
|
|
3270
|
-
f && (n.value.set(k, f),
|
|
3270
|
+
f && (n.value.set(k, f), se(() => {
|
|
3271
3271
|
L(k);
|
|
3272
3272
|
}));
|
|
3273
3273
|
}, L = (f) => {
|
|
@@ -3284,7 +3284,7 @@ const pf = /* @__PURE__ */ Z(aa, [["render", ra]]), ua = B({
|
|
|
3284
3284
|
const k = `${f}-${g}`;
|
|
3285
3285
|
return l.value.get(k) || !1;
|
|
3286
3286
|
}, S = () => {
|
|
3287
|
-
|
|
3287
|
+
se(() => {
|
|
3288
3288
|
n.value.forEach((f, g) => {
|
|
3289
3289
|
L(g);
|
|
3290
3290
|
});
|
|
@@ -3314,10 +3314,10 @@ const pf = /* @__PURE__ */ Z(aa, [["render", ra]]), ua = B({
|
|
|
3314
3314
|
}), {
|
|
3315
3315
|
tableContainerRef: t,
|
|
3316
3316
|
getRowKey: o,
|
|
3317
|
-
getCellValue:
|
|
3317
|
+
getCellValue: r,
|
|
3318
3318
|
formatCellValue: a,
|
|
3319
3319
|
getCopyValue: i,
|
|
3320
|
-
isClickable:
|
|
3320
|
+
isClickable: s,
|
|
3321
3321
|
handleCellClick: c,
|
|
3322
3322
|
getHeaderCellStyle: d,
|
|
3323
3323
|
getBodyCellStyle: p,
|
|
@@ -3335,7 +3335,7 @@ const pf = /* @__PURE__ */ Z(aa, [["render", ra]]), ua = B({
|
|
|
3335
3335
|
key: 0,
|
|
3336
3336
|
class: "j-c-table__empty"
|
|
3337
3337
|
};
|
|
3338
|
-
function Ia(e, t, n, l, o,
|
|
3338
|
+
function Ia(e, t, n, l, o, r) {
|
|
3339
3339
|
const a = h("j-c-tooltip"), i = h("j-c-copy");
|
|
3340
3340
|
return y(), w("div", ca, [
|
|
3341
3341
|
C("div", {
|
|
@@ -3349,29 +3349,29 @@ function Ia(e, t, n, l, o, s) {
|
|
|
3349
3349
|
C("table", da, [
|
|
3350
3350
|
C("thead", null, [
|
|
3351
3351
|
C("tr", null, [
|
|
3352
|
-
(y(!0), w(_, null, ee(e.columns, (
|
|
3353
|
-
key:
|
|
3352
|
+
(y(!0), w(_, null, ee(e.columns, (s, c) => (y(), w("th", {
|
|
3353
|
+
key: s.name || c,
|
|
3354
3354
|
class: q([
|
|
3355
3355
|
"j-c-table__header-cell",
|
|
3356
3356
|
{
|
|
3357
|
-
"j-c-table__header-cell--pinned-left":
|
|
3358
|
-
"j-c-table__header-cell--pinned-right":
|
|
3357
|
+
"j-c-table__header-cell--pinned-left": s.pinLeft || c === 0 && e.firstColumnPinned,
|
|
3358
|
+
"j-c-table__header-cell--pinned-right": s.pinRight || c === e.columns.length - 1 && e.lastColumnPinned
|
|
3359
3359
|
}
|
|
3360
3360
|
]),
|
|
3361
|
-
style: G(e.getHeaderCellStyle(
|
|
3361
|
+
style: G(e.getHeaderCellStyle(s, c))
|
|
3362
3362
|
}, [
|
|
3363
|
-
Y(e.$slots, `header-${
|
|
3364
|
-
column:
|
|
3363
|
+
Y(e.$slots, `header-${s.name}`, {
|
|
3364
|
+
column: s,
|
|
3365
3365
|
index: c
|
|
3366
3366
|
}, () => [
|
|
3367
|
-
C("div", pa, O(
|
|
3367
|
+
C("div", pa, O(s.label || s.name), 1)
|
|
3368
3368
|
], !0)
|
|
3369
3369
|
], 6))), 128))
|
|
3370
3370
|
])
|
|
3371
3371
|
]),
|
|
3372
3372
|
C("tbody", null, [
|
|
3373
|
-
(y(!0), w(_, null, ee(e.rows, (
|
|
3374
|
-
key: e.getRowKey(
|
|
3373
|
+
(y(!0), w(_, null, ee(e.rows, (s, c) => (y(), w("tr", {
|
|
3374
|
+
key: e.getRowKey(s, c),
|
|
3375
3375
|
class: "j-c-table__body-row"
|
|
3376
3376
|
}, [
|
|
3377
3377
|
(y(!0), w(_, null, ee(e.columns, (u, d) => (y(), w("td", {
|
|
@@ -3386,36 +3386,36 @@ function Ia(e, t, n, l, o, s) {
|
|
|
3386
3386
|
style: G(e.getBodyCellStyle(u, d))
|
|
3387
3387
|
}, [
|
|
3388
3388
|
Y(e.$slots, `body-${u.name}`, {
|
|
3389
|
-
row:
|
|
3389
|
+
row: s,
|
|
3390
3390
|
column: u,
|
|
3391
|
-
value: e.getCellValue(
|
|
3391
|
+
value: e.getCellValue(s, u),
|
|
3392
3392
|
rowIndex: c,
|
|
3393
3393
|
colIndex: d
|
|
3394
3394
|
}, () => [
|
|
3395
3395
|
C("div", fa, [
|
|
3396
3396
|
u.maxWidth || u.wrapCount ? (y(), V(a, {
|
|
3397
3397
|
key: 0,
|
|
3398
|
-
content: e.formatCellValue(
|
|
3398
|
+
content: e.formatCellValue(s, u),
|
|
3399
3399
|
disabled: !e.shouldShowTooltip(c, d, u)
|
|
3400
3400
|
}, {
|
|
3401
3401
|
default: D(() => [
|
|
3402
3402
|
C("div", {
|
|
3403
3403
|
ref_for: !0,
|
|
3404
3404
|
ref: (p) => e.setCellRef(p, c, d),
|
|
3405
|
-
class: q(["j-c-table__cell-content", [e.getCellContentClass(u), { "j-c-table__cell-content--clickable": e.isClickable(u,
|
|
3405
|
+
class: q(["j-c-table__cell-content", [e.getCellContentClass(u), { "j-c-table__cell-content--clickable": e.isClickable(u, s) }]]),
|
|
3406
3406
|
style: G(e.getCellContentStyle(u)),
|
|
3407
|
-
onClick: (p) => e.handleCellClick(u,
|
|
3408
|
-
}, O(e.formatCellValue(
|
|
3407
|
+
onClick: (p) => e.handleCellClick(u, s)
|
|
3408
|
+
}, O(e.formatCellValue(s, u)), 15, ga)
|
|
3409
3409
|
]),
|
|
3410
3410
|
_: 2
|
|
3411
3411
|
}, 1032, ["content", "disabled"])) : (y(), w("div", {
|
|
3412
3412
|
key: 1,
|
|
3413
|
-
class: q(["j-c-table__cell-content", { "j-c-table__cell-content--clickable": e.isClickable(u,
|
|
3414
|
-
onClick: (p) => e.handleCellClick(u,
|
|
3415
|
-
}, O(e.formatCellValue(
|
|
3413
|
+
class: q(["j-c-table__cell-content", { "j-c-table__cell-content--clickable": e.isClickable(u, s) }]),
|
|
3414
|
+
onClick: (p) => e.handleCellClick(u, s)
|
|
3415
|
+
}, O(e.formatCellValue(s, u)), 11, ma)),
|
|
3416
3416
|
u.copy ? (y(), w("div", ya, [
|
|
3417
3417
|
b(i, {
|
|
3418
|
-
text: e.getCopyValue(
|
|
3418
|
+
text: e.getCopyValue(s, u)
|
|
3419
3419
|
}, null, 8, ["text"])
|
|
3420
3420
|
])) : E("", !0)
|
|
3421
3421
|
])
|
|
@@ -3478,7 +3478,7 @@ const Da = B({
|
|
|
3478
3478
|
};
|
|
3479
3479
|
}
|
|
3480
3480
|
});
|
|
3481
|
-
function Ca(e, t, n, l, o,
|
|
3481
|
+
function Ca(e, t, n, l, o, r) {
|
|
3482
3482
|
const a = h("q-tooltip"), i = xe("j-q-tooltip");
|
|
3483
3483
|
return oe((y(), w("div", {
|
|
3484
3484
|
class: q(["block", e.ellipsisClass]),
|
|
@@ -3554,7 +3554,7 @@ const va = /* @__PURE__ */ Z(Da, [["render", Ca]]), Na = B({
|
|
|
3554
3554
|
const n = (a) => {
|
|
3555
3555
|
if (e.disable || e.modelValue === a)
|
|
3556
3556
|
return;
|
|
3557
|
-
const i = e.options.find((
|
|
3557
|
+
const i = e.options.find((s) => s.value === a);
|
|
3558
3558
|
i != null && i.disable || (t("update:modelValue", a), t("change", a));
|
|
3559
3559
|
}, l = (a, i) => a.value === null || a.value === void 0 ? String(i) : String(a.value), o = (a) => {
|
|
3560
3560
|
if (!(a == null || a === ""))
|
|
@@ -3564,13 +3564,13 @@ const va = /* @__PURE__ */ Z(Da, [["render", Ca]]), Na = B({
|
|
|
3564
3564
|
handleClickTab: n,
|
|
3565
3565
|
slotKey: l,
|
|
3566
3566
|
getItemLabelStyle: (a) => {
|
|
3567
|
-
const i = o(a.maxWidth ?? e.itemMaxWidth),
|
|
3568
|
-
return i ? `${
|
|
3567
|
+
const i = o(a.maxWidth ?? e.itemMaxWidth), s = "display:inline-block; vertical-align:middle;";
|
|
3568
|
+
return i ? `${s} max-width:${i};` : `${s}`;
|
|
3569
3569
|
}
|
|
3570
3570
|
};
|
|
3571
3571
|
}
|
|
3572
3572
|
}), ba = ["onClick"];
|
|
3573
|
-
function ja(e, t, n, l, o,
|
|
3573
|
+
function ja(e, t, n, l, o, r) {
|
|
3574
3574
|
const a = h("JQTooltip");
|
|
3575
3575
|
return y(), w("div", null, [
|
|
3576
3576
|
C("ul", {
|
|
@@ -3582,23 +3582,23 @@ function ja(e, t, n, l, o, s) {
|
|
|
3582
3582
|
"j-c-tabs--expand": e.expand
|
|
3583
3583
|
}])
|
|
3584
3584
|
}, [
|
|
3585
|
-
(y(!0), w(_, null, ee(e.options, (i,
|
|
3586
|
-
key:
|
|
3585
|
+
(y(!0), w(_, null, ee(e.options, (i, s) => (y(), w("li", {
|
|
3586
|
+
key: s,
|
|
3587
3587
|
class: q({
|
|
3588
3588
|
active: e.modelValue === i.value,
|
|
3589
3589
|
"is-disabled": e.disable || i.disable
|
|
3590
3590
|
}),
|
|
3591
3591
|
onClick: (c) => e.handleClickTab(i.value)
|
|
3592
3592
|
}, [
|
|
3593
|
-
Y(e.$slots, `item-${e.slotKey(i,
|
|
3593
|
+
Y(e.$slots, `item-${e.slotKey(i, s)}`, {
|
|
3594
3594
|
item: i,
|
|
3595
|
-
index:
|
|
3595
|
+
index: s,
|
|
3596
3596
|
active: e.modelValue === i.value,
|
|
3597
3597
|
labelStyle: e.getItemLabelStyle(i)
|
|
3598
3598
|
}, () => [
|
|
3599
3599
|
Y(e.$slots, "item", {
|
|
3600
3600
|
item: i,
|
|
3601
|
-
index:
|
|
3601
|
+
index: s,
|
|
3602
3602
|
active: e.modelValue === i.value,
|
|
3603
3603
|
labelStyle: e.getItemLabelStyle(i)
|
|
3604
3604
|
}, () => [
|
|
@@ -3629,7 +3629,7 @@ const gf = /* @__PURE__ */ Z(Na, [["render", ja], ["__scopeId", "data-v-cc043f30
|
|
|
3629
3629
|
key: 0,
|
|
3630
3630
|
class: "title-line__extra"
|
|
3631
3631
|
};
|
|
3632
|
-
function za(e, t, n, l, o,
|
|
3632
|
+
function za(e, t, n, l, o, r) {
|
|
3633
3633
|
return y(), w("div", null, [
|
|
3634
3634
|
C("div", Sa, [
|
|
3635
3635
|
C("span", null, [
|
|
@@ -3679,20 +3679,20 @@ const mf = /* @__PURE__ */ Z(wa, [["render", za], ["__scopeId", "data-v-634ec7db
|
|
|
3679
3679
|
}
|
|
3680
3680
|
},
|
|
3681
3681
|
setup(e) {
|
|
3682
|
-
const t = z(!1), n = z(), l = z(!1), o = z(!1),
|
|
3682
|
+
const t = z(!1), n = z(), l = z(!1), o = z(!1), r = v(() => {
|
|
3683
3683
|
const u = e.contentStyle;
|
|
3684
3684
|
return e.lines > 1 ? `${u}; -webkit-line-clamp: ${e.lines};` : u;
|
|
3685
3685
|
}), a = v(() => e.lines === 1 ? "ellipsis" : "ellipsis-multi"), i = (u) => e.lines === 1 ? u.scrollWidth > u.clientWidth : u.scrollHeight > u.clientHeight;
|
|
3686
3686
|
return {
|
|
3687
3687
|
canShowTooltip: t,
|
|
3688
3688
|
checkOverflow: i,
|
|
3689
|
-
computedStyle:
|
|
3689
|
+
computedStyle: r,
|
|
3690
3690
|
contentRef: n,
|
|
3691
3691
|
ellipsisClass: a,
|
|
3692
3692
|
handleMouseEnter: () => {
|
|
3693
3693
|
if (l.value = !0, n.value) {
|
|
3694
3694
|
const u = i(n.value);
|
|
3695
|
-
t.value = u, u &&
|
|
3695
|
+
t.value = u, u && se(() => {
|
|
3696
3696
|
o.value = !0;
|
|
3697
3697
|
});
|
|
3698
3698
|
}
|
|
@@ -3705,7 +3705,7 @@ const mf = /* @__PURE__ */ Z(wa, [["render", za], ["__scopeId", "data-v-634ec7db
|
|
|
3705
3705
|
};
|
|
3706
3706
|
}
|
|
3707
3707
|
});
|
|
3708
|
-
function La(e, t, n, l, o,
|
|
3708
|
+
function La(e, t, n, l, o, r) {
|
|
3709
3709
|
const a = h("j-c-tooltip");
|
|
3710
3710
|
return y(), V(a, {
|
|
3711
3711
|
class: "j-c-tooltip-ellipsis-wrapper",
|
|
@@ -3751,16 +3751,16 @@ const gt = /* @__PURE__ */ Z(ka, [["render", La], ["__scopeId", "data-v-d2df8539
|
|
|
3751
3751
|
},
|
|
3752
3752
|
emits: ["update:modelValue"],
|
|
3753
3753
|
setup(e, { emit: t, expose: n }) {
|
|
3754
|
-
const l = z(null), { t: o } = X(),
|
|
3754
|
+
const l = z(null), { t: o } = X(), r = z(e.modelValue ?? []), a = v(() => e.tickStrategy === "strict" && !e.multiple), i = v(() => {
|
|
3755
3755
|
if (!e.leafOnly) return e.options;
|
|
3756
3756
|
const c = (u) => u.map((d) => {
|
|
3757
3757
|
const p = { ...d };
|
|
3758
3758
|
return d.children && d.children.length > 0 && (p.noTick = !0, p.children = c(d.children)), p;
|
|
3759
3759
|
});
|
|
3760
3760
|
return c(e.options);
|
|
3761
|
-
}),
|
|
3761
|
+
}), s = v({
|
|
3762
3762
|
get() {
|
|
3763
|
-
return e.modelValue ??
|
|
3763
|
+
return e.modelValue ?? r.value;
|
|
3764
3764
|
},
|
|
3765
3765
|
set(c) {
|
|
3766
3766
|
let u = c;
|
|
@@ -3768,30 +3768,30 @@ const gt = /* @__PURE__ */ Z(ka, [["render", La], ["__scopeId", "data-v-d2df8539
|
|
|
3768
3768
|
const d = Array.isArray(u) ? u : [], p = d.length > 0 ? d[d.length - 1] : void 0;
|
|
3769
3769
|
u = p ? [p] : [];
|
|
3770
3770
|
}
|
|
3771
|
-
|
|
3771
|
+
r.value = u, t("update:modelValue", u);
|
|
3772
3772
|
}
|
|
3773
3773
|
});
|
|
3774
3774
|
return W(
|
|
3775
3775
|
() => e.modelValue,
|
|
3776
3776
|
(c) => {
|
|
3777
|
-
|
|
3777
|
+
r.value = c ?? [];
|
|
3778
3778
|
}
|
|
3779
3779
|
), n({
|
|
3780
3780
|
qTreeRef: l
|
|
3781
3781
|
}), {
|
|
3782
3782
|
t: o,
|
|
3783
3783
|
mainRef: l,
|
|
3784
|
-
computedValue:
|
|
3784
|
+
computedValue: s,
|
|
3785
3785
|
processedOptions: i
|
|
3786
3786
|
};
|
|
3787
3787
|
}
|
|
3788
3788
|
});
|
|
3789
|
-
function Oa(e, t, n, l, o,
|
|
3789
|
+
function Oa(e, t, n, l, o, r) {
|
|
3790
3790
|
const a = h("j-c-tooltip-ellipsis"), i = h("q-tree");
|
|
3791
3791
|
return y(), V(i, {
|
|
3792
3792
|
ref: "main",
|
|
3793
3793
|
ticked: e.computedValue,
|
|
3794
|
-
"onUpdate:ticked": t[0] || (t[0] = (
|
|
3794
|
+
"onUpdate:ticked": t[0] || (t[0] = (s) => e.computedValue = s),
|
|
3795
3795
|
"default-expand-all": "",
|
|
3796
3796
|
"label-key": e.optionLabel,
|
|
3797
3797
|
"node-key": e.optionValue,
|
|
@@ -3799,9 +3799,9 @@ function Oa(e, t, n, l, o, s) {
|
|
|
3799
3799
|
"tick-strategy": e.tickStrategy,
|
|
3800
3800
|
"no-nodes-label": e.t("messages.noData")
|
|
3801
3801
|
}, {
|
|
3802
|
-
"default-header": D((
|
|
3802
|
+
"default-header": D((s) => [
|
|
3803
3803
|
b(a, {
|
|
3804
|
-
content:
|
|
3804
|
+
content: s.node[e.optionLabel],
|
|
3805
3805
|
"content-style": "max-width: 300px;"
|
|
3806
3806
|
}, null, 8, ["content"])
|
|
3807
3807
|
]),
|
|
@@ -3841,28 +3841,28 @@ const Va = /* @__PURE__ */ Z($a, [["render", Oa]]), Ea = B({
|
|
|
3841
3841
|
},
|
|
3842
3842
|
slots: Object,
|
|
3843
3843
|
setup(e, { emit: t, expose: n }) {
|
|
3844
|
-
const l = z(null), { t: o } = X(),
|
|
3844
|
+
const l = z(null), { t: o } = X(), r = z(!1), a = z(""), i = z([]), s = z(e.modelValue ?? []), c = v(() => e.tickStrategy === "strict" && !e.multiple), u = v({
|
|
3845
3845
|
get() {
|
|
3846
|
-
return e.modelValue ||
|
|
3846
|
+
return e.modelValue || s.value;
|
|
3847
3847
|
},
|
|
3848
3848
|
set($) {
|
|
3849
3849
|
let S = $;
|
|
3850
|
-
|
|
3850
|
+
s.value = S, t("update:modelValue", S), c.value && S != null && S.length && (r.value = !1);
|
|
3851
3851
|
}
|
|
3852
3852
|
}), d = v({
|
|
3853
3853
|
get() {
|
|
3854
|
-
return e.disable || e.readonly ? !1 :
|
|
3854
|
+
return e.disable || e.readonly ? !1 : r.value;
|
|
3855
3855
|
},
|
|
3856
3856
|
set($) {
|
|
3857
|
-
|
|
3857
|
+
r.value = $;
|
|
3858
3858
|
}
|
|
3859
3859
|
});
|
|
3860
3860
|
W(
|
|
3861
3861
|
() => e.modelValue,
|
|
3862
3862
|
($) => {
|
|
3863
|
-
|
|
3863
|
+
s.value = $ ?? [];
|
|
3864
3864
|
}
|
|
3865
|
-
), W(
|
|
3865
|
+
), W(r, ($) => {
|
|
3866
3866
|
$ || (a.value = "");
|
|
3867
3867
|
});
|
|
3868
3868
|
const p = () => {
|
|
@@ -3925,8 +3925,8 @@ const Va = /* @__PURE__ */ Z($a, [["render", Oa]]), Ea = B({
|
|
|
3925
3925
|
key: 0,
|
|
3926
3926
|
class: "j-c-tree-select-popup__header"
|
|
3927
3927
|
}, qa = { class: "j-c-tree-select-popup__main" };
|
|
3928
|
-
function Ra(e, t, n, l, o,
|
|
3929
|
-
const a = h("q-icon"), i = h("j-q-input"),
|
|
3928
|
+
function Ra(e, t, n, l, o, r) {
|
|
3929
|
+
const a = h("q-icon"), i = h("j-q-input"), s = h("j-c-tree"), c = h("q-popup-proxy"), u = h("q-field");
|
|
3930
3930
|
return y(), V(u, {
|
|
3931
3931
|
class: q(["j-c-tree-select", {
|
|
3932
3932
|
"j-c-tree-select--table": e.label,
|
|
@@ -3993,7 +3993,7 @@ function Ra(e, t, n, l, o, s) {
|
|
|
3993
3993
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "readonly", "disable"])
|
|
3994
3994
|
])) : E("", !0),
|
|
3995
3995
|
C("div", qa, [
|
|
3996
|
-
b(
|
|
3996
|
+
b(s, {
|
|
3997
3997
|
ref: "treeRef",
|
|
3998
3998
|
modelValue: e.computedValue,
|
|
3999
3999
|
"onUpdate:modelValue": t[1] || (t[1] = (d) => e.computedValue = d),
|
|
@@ -4045,7 +4045,7 @@ const yf = /* @__PURE__ */ Z(Ea, [["render", Ra]]), Ua = B({
|
|
|
4045
4045
|
},
|
|
4046
4046
|
slots: Object,
|
|
4047
4047
|
setup(e, { emit: t, expose: n }) {
|
|
4048
|
-
const l = z(null), o = z(null), { t:
|
|
4048
|
+
const l = z(null), o = z(null), { t: r } = X(), a = z(!1), i = z(""), s = z([]), c = z(e.modelValue ?? []), u = v({
|
|
4049
4049
|
get() {
|
|
4050
4050
|
return e.modelValue || c.value;
|
|
4051
4051
|
},
|
|
@@ -4080,7 +4080,7 @@ const yf = /* @__PURE__ */ Z(Ea, [["render", Ra]]), Ua = B({
|
|
|
4080
4080
|
L(M);
|
|
4081
4081
|
});
|
|
4082
4082
|
const I = () => {
|
|
4083
|
-
e.filterable &&
|
|
4083
|
+
e.filterable && se(() => {
|
|
4084
4084
|
var M;
|
|
4085
4085
|
(M = o.value) == null || M.focus();
|
|
4086
4086
|
});
|
|
@@ -4098,8 +4098,8 @@ const yf = /* @__PURE__ */ Z(Ea, [["render", Ra]]), Ua = B({
|
|
|
4098
4098
|
if (e.valueDisplayFn) return e.valueDisplayFn(u.value, e.options);
|
|
4099
4099
|
const M = j();
|
|
4100
4100
|
return M == null ? void 0 : M.map((g) => g[e.optionLabel]).toString();
|
|
4101
|
-
}), m = v(() => e.options), T = v(() => i.value ?
|
|
4102
|
-
if (
|
|
4101
|
+
}), m = v(() => e.options), T = v(() => i.value ? s.value : m.value), L = (M) => {
|
|
4102
|
+
if (s.value = [], !M) return;
|
|
4103
4103
|
let f;
|
|
4104
4104
|
try {
|
|
4105
4105
|
f = new RegExp(M.toString(), "i");
|
|
@@ -4118,7 +4118,7 @@ const yf = /* @__PURE__ */ Z(Ea, [["render", Ra]]), Ua = B({
|
|
|
4118
4118
|
}
|
|
4119
4119
|
return ie ? (k.push(R), !0) : !1;
|
|
4120
4120
|
};
|
|
4121
|
-
m.value.forEach((N) => g(N,
|
|
4121
|
+
m.value.forEach((N) => g(N, s.value));
|
|
4122
4122
|
}, $ = () => {
|
|
4123
4123
|
t("update:modelValue", []);
|
|
4124
4124
|
}, S = (M) => {
|
|
@@ -4127,7 +4127,7 @@ const yf = /* @__PURE__ */ Z(Ea, [["render", Ra]]), Ua = B({
|
|
|
4127
4127
|
return n({
|
|
4128
4128
|
getFullValue: j
|
|
4129
4129
|
}), {
|
|
4130
|
-
t:
|
|
4130
|
+
t: r,
|
|
4131
4131
|
treeRef: l,
|
|
4132
4132
|
filterInputRef: o,
|
|
4133
4133
|
computedValue: u,
|
|
@@ -4146,8 +4146,8 @@ const yf = /* @__PURE__ */ Z(Ea, [["render", Ra]]), Ua = B({
|
|
|
4146
4146
|
key: 1,
|
|
4147
4147
|
class: "j-c-org-select-value-display"
|
|
4148
4148
|
}, Wa = { class: "j-c-org-select-popup" }, Fa = { class: "j-c-org-select-popup__main" };
|
|
4149
|
-
function Ha(e, t, n, l, o,
|
|
4150
|
-
const a = h("q-icon"), i = h("j-c-tooltip-ellipsis"),
|
|
4149
|
+
function Ha(e, t, n, l, o, r) {
|
|
4150
|
+
const a = h("q-icon"), i = h("j-c-tooltip-ellipsis"), s = h("q-tree"), c = h("q-popup-proxy"), u = h("q-field");
|
|
4151
4151
|
return y(), V(u, {
|
|
4152
4152
|
class: q(["j-c-org-select", {
|
|
4153
4153
|
"j-c-org-select--table": e.label,
|
|
@@ -4176,7 +4176,7 @@ function Ha(e, t, n, l, o, s) {
|
|
|
4176
4176
|
onMousedown: t[2] || (t[2] = te(() => {
|
|
4177
4177
|
}, ["stop"]))
|
|
4178
4178
|
}, null, 40, Ba)), [
|
|
4179
|
-
[
|
|
4179
|
+
[rl, e.inputValue]
|
|
4180
4180
|
]) : (y(), w("div", Za, [
|
|
4181
4181
|
Y(e.$slots, "value-display", {}, () => [
|
|
4182
4182
|
J(O(e.computedValueDisplay), 1)
|
|
@@ -4215,7 +4215,7 @@ function Ha(e, t, n, l, o, s) {
|
|
|
4215
4215
|
default: D(() => [
|
|
4216
4216
|
C("div", Wa, [
|
|
4217
4217
|
C("div", Fa, [
|
|
4218
|
-
b(
|
|
4218
|
+
b(s, {
|
|
4219
4219
|
ref: "treeRef",
|
|
4220
4220
|
selected: e.treeSelected,
|
|
4221
4221
|
"onUpdate:selected": t[3] || (t[3] = (d) => e.treeSelected = d),
|
|
@@ -4391,11 +4391,11 @@ const Ka = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24
|
|
|
4391
4391
|
}
|
|
4392
4392
|
},
|
|
4393
4393
|
setup(e) {
|
|
4394
|
-
const { t, locale: n } = X(), l = (i) => i.platform === e.platformName, o = (i) => ni[i.icon] || "",
|
|
4394
|
+
const { t, locale: n } = X(), l = (i) => i.platform === e.platformName, o = (i) => ni[i.icon] || "", r = (i) => {
|
|
4395
4395
|
window.location.href = i.path;
|
|
4396
|
-
}, a = v(() => Ke.filter((i) => ((e == null ? void 0 : e.userRoleList) ?? []).some((
|
|
4396
|
+
}, a = v(() => Ke.filter((i) => ((e == null ? void 0 : e.userRoleList) ?? []).some((s) => s.platform === i.platform)));
|
|
4397
4397
|
return {
|
|
4398
|
-
handleClickPlatform:
|
|
4398
|
+
handleClickPlatform: r,
|
|
4399
4399
|
platformList: Ke,
|
|
4400
4400
|
t,
|
|
4401
4401
|
locale: n,
|
|
@@ -4405,16 +4405,16 @@ const Ka = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24
|
|
|
4405
4405
|
};
|
|
4406
4406
|
}
|
|
4407
4407
|
}), oi = ["onClick"], ai = ["innerHTML"];
|
|
4408
|
-
function ii(e, t, n, l, o,
|
|
4408
|
+
function ii(e, t, n, l, o, r) {
|
|
4409
4409
|
const a = h("q-item"), i = h("q-list");
|
|
4410
|
-
return y(!0), w(_, null, ee(e.displayPlatformList, (
|
|
4410
|
+
return y(!0), w(_, null, ee(e.displayPlatformList, (s, c) => (y(), w("div", {
|
|
4411
4411
|
class: "left-menu",
|
|
4412
4412
|
key: c
|
|
4413
4413
|
}, [
|
|
4414
4414
|
b(i, null, {
|
|
4415
4415
|
default: D(() => [
|
|
4416
4416
|
C("div", {
|
|
4417
|
-
onClick: (u) => e.handleClickPlatform(
|
|
4417
|
+
onClick: (u) => e.handleClickPlatform(s),
|
|
4418
4418
|
class: "q-mr-md"
|
|
4419
4419
|
}, [
|
|
4420
4420
|
b(a, {
|
|
@@ -4424,13 +4424,13 @@ function ii(e, t, n, l, o, s) {
|
|
|
4424
4424
|
}, {
|
|
4425
4425
|
default: D(() => [
|
|
4426
4426
|
C("div", {
|
|
4427
|
-
class: q(["left-menu-item", { active: e.isActive(
|
|
4427
|
+
class: q(["left-menu-item", { active: e.isActive(s), "zh-CN": e.locale === "zh-CN" }])
|
|
4428
4428
|
}, [
|
|
4429
4429
|
C("span", {
|
|
4430
4430
|
class: "platform-icon q-mr-sm",
|
|
4431
|
-
innerHTML: e.getPlatformIconSvg(
|
|
4431
|
+
innerHTML: e.getPlatformIconSvg(s)
|
|
4432
4432
|
}, null, 8, ai),
|
|
4433
|
-
J(" " + O(e.t(`platform.${
|
|
4433
|
+
J(" " + O(e.t(`platform.${s.platform}`)), 1)
|
|
4434
4434
|
], 2)
|
|
4435
4435
|
]),
|
|
4436
4436
|
_: 2
|
|
@@ -4441,9 +4441,9 @@ function ii(e, t, n, l, o, s) {
|
|
|
4441
4441
|
}, 1024)
|
|
4442
4442
|
]))), 128);
|
|
4443
4443
|
}
|
|
4444
|
-
const If = /* @__PURE__ */ Z(li, [["render", ii], ["__scopeId", "data-v-c6725588"]]), Ct = () => localStorage.getItem("APP_SEARCH_HISTORY") || "{}",
|
|
4444
|
+
const If = /* @__PURE__ */ Z(li, [["render", ii], ["__scopeId", "data-v-c6725588"]]), Ct = () => localStorage.getItem("APP_SEARCH_HISTORY") || "{}", rn = (e) => {
|
|
4445
4445
|
localStorage.setItem("APP_SEARCH_HISTORY", e);
|
|
4446
|
-
},
|
|
4446
|
+
}, ri = B({
|
|
4447
4447
|
name: "JQAutocomplete",
|
|
4448
4448
|
components: {
|
|
4449
4449
|
JCTooltip: be,
|
|
@@ -4465,7 +4465,7 @@ const If = /* @__PURE__ */ Z(li, [["render", ii], ["__scopeId", "data-v-c6725588
|
|
|
4465
4465
|
list: [],
|
|
4466
4466
|
uniqueKey: `search_history_${e.searchKey}`,
|
|
4467
4467
|
visible: !1
|
|
4468
|
-
}),
|
|
4468
|
+
}), r = v(() => e.deletable ? 25 : 15), a = v(() => `search_history_${e.searchKey}`);
|
|
4469
4469
|
ze(() => {
|
|
4470
4470
|
i();
|
|
4471
4471
|
}), W(
|
|
@@ -4481,7 +4481,7 @@ const If = /* @__PURE__ */ Z(li, [["render", ii], ["__scopeId", "data-v-c6725588
|
|
|
4481
4481
|
} catch (A) {
|
|
4482
4482
|
console.error("Failed to load search history:", A), o.list = [];
|
|
4483
4483
|
}
|
|
4484
|
-
},
|
|
4484
|
+
}, s = () => {
|
|
4485
4485
|
i();
|
|
4486
4486
|
const A = e.modelValue;
|
|
4487
4487
|
A ? o.filterList = o.list.filter((m) => m.value.includes(A)) : o.filterList = o.list, o.visible = !0;
|
|
@@ -4500,7 +4500,7 @@ const If = /* @__PURE__ */ Z(li, [["render", ii], ["__scopeId", "data-v-c6725588
|
|
|
4500
4500
|
} catch {
|
|
4501
4501
|
L = {};
|
|
4502
4502
|
}
|
|
4503
|
-
L[a.value] = o.list,
|
|
4503
|
+
L[a.value] = o.list, rn(JSON.stringify(L));
|
|
4504
4504
|
}, p = (A) => {
|
|
4505
4505
|
const m = String(A ?? "").trim();
|
|
4506
4506
|
t("update:model-value", m), o.filterList = o.list.filter((T) => T.value.includes(m));
|
|
@@ -4516,7 +4516,7 @@ const If = /* @__PURE__ */ Z(li, [["render", ii], ["__scopeId", "data-v-c6725588
|
|
|
4516
4516
|
} catch {
|
|
4517
4517
|
T = {};
|
|
4518
4518
|
}
|
|
4519
|
-
T[a.value] = o.list,
|
|
4519
|
+
T[a.value] = o.list, rn(JSON.stringify(T));
|
|
4520
4520
|
};
|
|
4521
4521
|
return n({ saveHistory: j }), {
|
|
4522
4522
|
historyParams: o,
|
|
@@ -4524,18 +4524,18 @@ const If = /* @__PURE__ */ Z(li, [["render", ii], ["__scopeId", "data-v-c6725588
|
|
|
4524
4524
|
onBlur: c,
|
|
4525
4525
|
onClear: u,
|
|
4526
4526
|
onDeleteItem: d,
|
|
4527
|
-
onFocus:
|
|
4527
|
+
onFocus: s,
|
|
4528
4528
|
onSelectItem: I,
|
|
4529
4529
|
onUpdateValue: p,
|
|
4530
4530
|
saveHistory: j,
|
|
4531
|
-
tooltipOffset:
|
|
4531
|
+
tooltipOffset: r,
|
|
4532
4532
|
uniqueKey: a
|
|
4533
4533
|
};
|
|
4534
4534
|
}
|
|
4535
|
-
}),
|
|
4536
|
-
function pi(e, t, n, l, o,
|
|
4537
|
-
const a = h("q-input"), i = h("j-c-tooltip"),
|
|
4538
|
-
return y(), w("div",
|
|
4535
|
+
}), si = { class: "j-q-autocomplete" }, ui = { class: "j-q-autocomplete-list-container" }, ci = ["onMousedown"], di = { class: "value" };
|
|
4536
|
+
function pi(e, t, n, l, o, r) {
|
|
4537
|
+
const a = h("q-input"), i = h("j-c-tooltip"), s = h("q-icon");
|
|
4538
|
+
return y(), w("div", si, [
|
|
4539
4539
|
b(a, me({
|
|
4540
4540
|
class: {
|
|
4541
4541
|
"j-q-input--table": e.label,
|
|
@@ -4580,7 +4580,7 @@ function pi(e, t, n, l, o, s) {
|
|
|
4580
4580
|
_: 2
|
|
4581
4581
|
}, 1032, ["content", "disabled", "offset"])
|
|
4582
4582
|
], 40, ci),
|
|
4583
|
-
e.deletable ? (y(), V(
|
|
4583
|
+
e.deletable ? (y(), V(s, {
|
|
4584
4584
|
key: 0,
|
|
4585
4585
|
name: "app:clear",
|
|
4586
4586
|
class: "delete-icon q-ml-xs",
|
|
@@ -4593,7 +4593,7 @@ function pi(e, t, n, l, o, s) {
|
|
|
4593
4593
|
])
|
|
4594
4594
|
]);
|
|
4595
4595
|
}
|
|
4596
|
-
const hf = /* @__PURE__ */ Z(
|
|
4596
|
+
const hf = /* @__PURE__ */ Z(ri, [["render", pi], ["__scopeId", "data-v-f7d0b6f1"]]), Je = {
|
|
4597
4597
|
LARGE: "large",
|
|
4598
4598
|
NORMAL: "normal",
|
|
4599
4599
|
SMALL: "small"
|
|
@@ -4628,6 +4628,14 @@ const hf = /* @__PURE__ */ Z(si, [["render", pi], ["__scopeId", "data-v-f7d0b6f1
|
|
|
4628
4628
|
type: Array,
|
|
4629
4629
|
default: () => []
|
|
4630
4630
|
},
|
|
4631
|
+
/**
|
|
4632
|
+
* 传递给菜单项 onClick 的业务数据
|
|
4633
|
+
* @default null
|
|
4634
|
+
*/
|
|
4635
|
+
item: {
|
|
4636
|
+
type: null,
|
|
4637
|
+
default: null
|
|
4638
|
+
},
|
|
4631
4639
|
/**
|
|
4632
4640
|
* 按钮大小
|
|
4633
4641
|
* @default 'large'
|
|
@@ -4654,6 +4662,14 @@ const hf = /* @__PURE__ */ Z(si, [["render", pi], ["__scopeId", "data-v-f7d0b6f1
|
|
|
4654
4662
|
type: String,
|
|
4655
4663
|
default: null
|
|
4656
4664
|
},
|
|
4665
|
+
/**
|
|
4666
|
+
* 是否隐藏下拉箭头
|
|
4667
|
+
* @default false
|
|
4668
|
+
*/
|
|
4669
|
+
hideDropdownArrow: {
|
|
4670
|
+
type: Boolean,
|
|
4671
|
+
default: !1
|
|
4672
|
+
},
|
|
4657
4673
|
/**
|
|
4658
4674
|
* 是否禁用
|
|
4659
4675
|
* @default false
|
|
@@ -4696,16 +4712,17 @@ const hf = /* @__PURE__ */ Z(si, [["render", pi], ["__scopeId", "data-v-f7d0b6f1
|
|
|
4696
4712
|
},
|
|
4697
4713
|
slots: Object,
|
|
4698
4714
|
setup(e, { emit: t, expose: n }) {
|
|
4699
|
-
const l = z(null), o = Pe(nt, z([])),
|
|
4715
|
+
const l = z(null), o = Pe(nt, z([])), r = Pe(tt, z([])), a = v(() => e.items.filter((d) => d.code ? o.value.includes(d.code) || r.value.includes(d.code) : !0)), i = v(() => e.dropdownIcon || e.type === vt.SECONDARY ? "app:dropdown-btn" : "app:dropdown-btn-white"), s = v(() => ({
|
|
4700
4716
|
"j-q-button-dropdown": !0,
|
|
4701
4717
|
[`j-q-button-dropdown--${{
|
|
4702
4718
|
[Je.LARGE]: "lg",
|
|
4703
4719
|
[Je.NORMAL]: "md",
|
|
4704
4720
|
[Je.SMALL]: "sm"
|
|
4705
4721
|
}[e.size]}`]: !0,
|
|
4706
|
-
[`j-q-button-dropdown--${e.type}`]: !0
|
|
4722
|
+
[`j-q-button-dropdown--${e.type}`]: !0,
|
|
4723
|
+
"j-q-button-dropdown--hide-arrow": e.hideDropdownArrow
|
|
4707
4724
|
})), c = (d) => {
|
|
4708
|
-
t("select", d), d.onClick && d.onClick();
|
|
4725
|
+
t("select", d), d.onClick && d.onClick(e.item);
|
|
4709
4726
|
};
|
|
4710
4727
|
return n({
|
|
4711
4728
|
get $el() {
|
|
@@ -4726,15 +4743,15 @@ const hf = /* @__PURE__ */ Z(si, [["render", pi], ["__scopeId", "data-v-f7d0b6f1
|
|
|
4726
4743
|
}
|
|
4727
4744
|
}), {
|
|
4728
4745
|
qBtnDropdownRef: l,
|
|
4729
|
-
computedClass:
|
|
4746
|
+
computedClass: s,
|
|
4730
4747
|
computedIcon: i,
|
|
4731
4748
|
filteredItems: a,
|
|
4732
4749
|
handleItemClick: c
|
|
4733
4750
|
};
|
|
4734
4751
|
}
|
|
4735
4752
|
}), gi = { class: "j-q-button-dropdown-list" };
|
|
4736
|
-
function mi(e, t, n, l, o,
|
|
4737
|
-
const a = h("q-icon"), i = h("q-item-section"),
|
|
4753
|
+
function mi(e, t, n, l, o, r) {
|
|
4754
|
+
const a = h("q-icon"), i = h("q-item-section"), s = h("q-item-label"), c = h("q-item"), u = h("q-list"), d = h("q-btn-dropdown"), p = xe("close-popup");
|
|
4738
4755
|
return e.filteredItems.length > 0 || e.$slots.default ? (y(), V(d, me({
|
|
4739
4756
|
key: 0,
|
|
4740
4757
|
ref: "qBtnDropdownRef",
|
|
@@ -4777,7 +4794,7 @@ function mi(e, t, n, l, o, s) {
|
|
|
4777
4794
|
}, 1024)) : E("", !0),
|
|
4778
4795
|
b(i, null, {
|
|
4779
4796
|
default: D(() => [
|
|
4780
|
-
b(
|
|
4797
|
+
b(s, null, {
|
|
4781
4798
|
default: D(() => [
|
|
4782
4799
|
J(O(I.label), 1)
|
|
4783
4800
|
]),
|
|
@@ -4808,7 +4825,7 @@ function mi(e, t, n, l, o, s) {
|
|
|
4808
4825
|
} : void 0
|
|
4809
4826
|
]), 1040, ["class", "dropdown-icon", "label", "disable", "menu-anchor", "menu-self", "menu-offset"])) : E("", !0);
|
|
4810
4827
|
}
|
|
4811
|
-
const Af = /* @__PURE__ */ Z(fi, [["render", mi], ["__scopeId", "data-v-
|
|
4828
|
+
const Af = /* @__PURE__ */ Z(fi, [["render", mi], ["__scopeId", "data-v-16a9113b"]]), yi = B({
|
|
4812
4829
|
name: "JQConfirm",
|
|
4813
4830
|
components: {
|
|
4814
4831
|
QPopupProxy: he,
|
|
@@ -4833,7 +4850,7 @@ const Af = /* @__PURE__ */ Z(fi, [["render", mi], ["__scopeId", "data-v-cb8acc10
|
|
|
4833
4850
|
emits: ["confirm"],
|
|
4834
4851
|
slots: Object,
|
|
4835
4852
|
setup(e, { emit: t }) {
|
|
4836
|
-
const { t: n } = X(), l = z(null), o = v(() => e.confirmText || n("action.confirm")),
|
|
4853
|
+
const { t: n } = X(), l = z(null), o = v(() => e.confirmText || n("action.confirm")), r = v(() => e.cancelText || n("action.cancel"));
|
|
4837
4854
|
return {
|
|
4838
4855
|
popupRef: l,
|
|
4839
4856
|
handleCancel: () => {
|
|
@@ -4843,17 +4860,17 @@ const Af = /* @__PURE__ */ Z(fi, [["render", mi], ["__scopeId", "data-v-cb8acc10
|
|
|
4843
4860
|
l.value.hide(), t("confirm");
|
|
4844
4861
|
},
|
|
4845
4862
|
computedConfirmText: o,
|
|
4846
|
-
computedCancelText:
|
|
4863
|
+
computedCancelText: r
|
|
4847
4864
|
};
|
|
4848
4865
|
}
|
|
4849
4866
|
}), Mi = { class: "inline-block" }, Ii = { class: "title" }, hi = { class: "j-q-confirm-actions" };
|
|
4850
|
-
function Ai(e, t, n, l, o,
|
|
4851
|
-
const a = h("q-card-section"), i = h("j-q-button"),
|
|
4867
|
+
function Ai(e, t, n, l, o, r) {
|
|
4868
|
+
const a = h("q-card-section"), i = h("j-q-button"), s = h("q-card"), c = h("q-popup-proxy");
|
|
4852
4869
|
return y(), w("div", Mi, [
|
|
4853
4870
|
Y(e.$slots, "default", {}, void 0, !0),
|
|
4854
4871
|
b(c, { ref: "popupRef" }, {
|
|
4855
4872
|
default: D(() => [
|
|
4856
|
-
b(
|
|
4873
|
+
b(s, {
|
|
4857
4874
|
class: "j-q-confirm",
|
|
4858
4875
|
flat: ""
|
|
4859
4876
|
}, {
|
|
@@ -4927,7 +4944,7 @@ const Df = /* @__PURE__ */ Z(yi, [["render", Ai], ["__scopeId", "data-v-e5c79a0f
|
|
|
4927
4944
|
},
|
|
4928
4945
|
slots: Object,
|
|
4929
4946
|
setup(e, { emit: t, expose: n, slots: l }) {
|
|
4930
|
-
const o = z(!1),
|
|
4947
|
+
const o = z(!1), r = z(null), { t: a } = X(), i = v({
|
|
4931
4948
|
get() {
|
|
4932
4949
|
const m = e.modelValue;
|
|
4933
4950
|
if (m == null || m === "")
|
|
@@ -4970,7 +4987,7 @@ const Df = /* @__PURE__ */ Z(yi, [["render", Ai], ["__scopeId", "data-v-e5c79a0f
|
|
|
4970
4987
|
}
|
|
4971
4988
|
t("update:modelValue", T), m && (e.range || (o.value = !1));
|
|
4972
4989
|
}
|
|
4973
|
-
}),
|
|
4990
|
+
}), s = v(() => {
|
|
4974
4991
|
if (e.valueDisplayFn)
|
|
4975
4992
|
return String(e.valueDisplayFn(e.modelValue) ?? "");
|
|
4976
4993
|
const m = i.value;
|
|
@@ -4990,7 +5007,7 @@ const Df = /* @__PURE__ */ Z(yi, [["render", Ai], ["__scopeId", "data-v-e5c79a0f
|
|
|
4990
5007
|
}, p = (m) => {
|
|
4991
5008
|
t("hide", m);
|
|
4992
5009
|
}, I = () => {
|
|
4993
|
-
i.value = null,
|
|
5010
|
+
i.value = null, r.value.blur();
|
|
4994
5011
|
}, j = () => {
|
|
4995
5012
|
I();
|
|
4996
5013
|
};
|
|
@@ -4998,11 +5015,11 @@ const Df = /* @__PURE__ */ Z(yi, [["render", Ai], ["__scopeId", "data-v-e5c79a0f
|
|
|
4998
5015
|
o.value = !1;
|
|
4999
5016
|
}, popupVisible: o }), {
|
|
5000
5017
|
t: a,
|
|
5001
|
-
fieldRef:
|
|
5018
|
+
fieldRef: r,
|
|
5002
5019
|
handleClear: I,
|
|
5003
5020
|
handleClearClick: j,
|
|
5004
5021
|
computedValue: i,
|
|
5005
|
-
computedValueDisplay:
|
|
5022
|
+
computedValueDisplay: s,
|
|
5006
5023
|
popupVisible: o,
|
|
5007
5024
|
hasPopupPrepend: c,
|
|
5008
5025
|
onHidePopup: p,
|
|
@@ -5015,8 +5032,8 @@ const Df = /* @__PURE__ */ Z(yi, [["render", Ai], ["__scopeId", "data-v-e5c79a0f
|
|
|
5015
5032
|
key: 0,
|
|
5016
5033
|
class: "date-popup-prepend"
|
|
5017
5034
|
};
|
|
5018
|
-
function Ni(e, t, n, l, o,
|
|
5019
|
-
const a = h("q-date"), i = h("q-popup-proxy"),
|
|
5035
|
+
function Ni(e, t, n, l, o, r) {
|
|
5036
|
+
const a = h("q-date"), i = h("q-popup-proxy"), s = h("q-icon"), c = h("q-field");
|
|
5020
5037
|
return y(), V(c, {
|
|
5021
5038
|
ref: "fieldRef",
|
|
5022
5039
|
class: q(["j-q-date", {
|
|
@@ -5040,7 +5057,7 @@ function Ni(e, t, n, l, o, s) {
|
|
|
5040
5057
|
C("div", Ci, O(e.computedValueDisplay), 1)
|
|
5041
5058
|
]),
|
|
5042
5059
|
append: D(() => [
|
|
5043
|
-
e.clearable && !e.readonly && !e.disable && e.computedValue ? (y(), V(
|
|
5060
|
+
e.clearable && !e.readonly && !e.disable && e.computedValue ? (y(), V(s, {
|
|
5044
5061
|
key: 0,
|
|
5045
5062
|
name: "app:clear",
|
|
5046
5063
|
class: "cursor-pointer q-field__focusable-action",
|
|
@@ -5084,7 +5101,7 @@ function Ni(e, t, n, l, o, s) {
|
|
|
5084
5101
|
_: 3
|
|
5085
5102
|
}, 8, ["class", "modelValue", "dense", "disable", "label", "outlined", "rules", "title", "onClear"]);
|
|
5086
5103
|
}
|
|
5087
|
-
const Cf = /* @__PURE__ */ Z(Di, [["render", Ni]]), bi = "rtcpt", Ln = `${bi}_third_component_state`,
|
|
5104
|
+
const Cf = /* @__PURE__ */ Z(Di, [["render", Ni]]), bi = "rtcpt", Ln = `${bi}_third_component_state`, sn = () => localStorage.getItem(Ln), un = (e) => {
|
|
5088
5105
|
localStorage.setItem(Ln, e);
|
|
5089
5106
|
}, Ee = "YYYY-MM-DD HH:mm:ss", bt = "YYYY/MM/DD", ji = (e, t) => Math.min(t, Math.max(0, Math.floor(e))), wi = (e, t) => {
|
|
5090
5107
|
const n = t + 1;
|
|
@@ -5132,7 +5149,7 @@ const Cf = /* @__PURE__ */ Z(Di, [["render", Ni]]), bi = "rtcpt", Ln = `${bi}_th
|
|
|
5132
5149
|
emits: ["hide", "update:modelValue"],
|
|
5133
5150
|
slots: Object,
|
|
5134
5151
|
setup(e, { emit: t, expose: n, slots: l }) {
|
|
5135
|
-
const { t: o } = X(),
|
|
5152
|
+
const { t: o } = X(), r = z(!1), a = z(null), i = z(!1), s = (Q) => Array.from({ length: Q }, (H, K) => String(K).padStart(2, "0")), c = s(24), u = s(60), d = { height: "180px", maxHeight: "180px" }, p = z(!1), I = () => ({
|
|
5136
5153
|
h: parseInt(e.endhhmmss[0], 10) || 0,
|
|
5137
5154
|
m: parseInt(e.endhhmmss[1], 10) || 0,
|
|
5138
5155
|
s: parseInt(e.endhhmmss[2], 10) || 0
|
|
@@ -5141,7 +5158,7 @@ const Cf = /* @__PURE__ */ Z(Di, [["render", Ni]]), bi = "rtcpt", Ln = `${bi}_th
|
|
|
5141
5158
|
ze(() => {
|
|
5142
5159
|
if (e.showTooltip)
|
|
5143
5160
|
try {
|
|
5144
|
-
const Q =
|
|
5161
|
+
const Q = sn();
|
|
5145
5162
|
if (Q) {
|
|
5146
5163
|
const H = JSON.parse(Q);
|
|
5147
5164
|
j.value = H.datetimeTooltipVisible !== !1;
|
|
@@ -5156,7 +5173,7 @@ const Cf = /* @__PURE__ */ Z(Di, [["render", Ni]]), bi = "rtcpt", Ln = `${bi}_th
|
|
|
5156
5173
|
const m = () => {
|
|
5157
5174
|
j.value = !1, A && (clearTimeout(A), A = null);
|
|
5158
5175
|
try {
|
|
5159
|
-
const Q =
|
|
5176
|
+
const Q = sn();
|
|
5160
5177
|
let H = Q ? JSON.parse(Q) : {};
|
|
5161
5178
|
H.datetimeTooltipVisible = !1, un(JSON.stringify(H));
|
|
5162
5179
|
} catch {
|
|
@@ -5172,8 +5189,8 @@ const Cf = /* @__PURE__ */ Z(Di, [["render", Ni]]), bi = "rtcpt", Ln = `${bi}_th
|
|
|
5172
5189
|
if (e.range) {
|
|
5173
5190
|
const H = Q || { from: null, to: null }, K = ge(H.from);
|
|
5174
5191
|
Object.assign($, Oe(H.from));
|
|
5175
|
-
const ne = K ? x.formatDate(K, bt) : "", ae = ge(H.to),
|
|
5176
|
-
|
|
5192
|
+
const ne = K ? x.formatDate(K, bt) : "", ae = ge(H.to), re = Oe(H.to);
|
|
5193
|
+
re.h === 0 && re.m === 0 && re.s === 0 && ae ? Object.assign(S, I()) : Object.assign(S, re);
|
|
5177
5194
|
const De = ae ? x.formatDate(ae, bt) : "";
|
|
5178
5195
|
T.value = {
|
|
5179
5196
|
from: K ? x.formatDate(K, Ee) : null,
|
|
@@ -5183,7 +5200,7 @@ const Cf = /* @__PURE__ */ Z(Di, [["render", Ni]]), bi = "rtcpt", Ln = `${bi}_th
|
|
|
5183
5200
|
const H = ge(Q);
|
|
5184
5201
|
Object.assign(g, Oe(Q)), M.value = H ? x.formatDate(H, Ee) : null, f.value = H ? x.formatDate(H, bt) : "";
|
|
5185
5202
|
}
|
|
5186
|
-
|
|
5203
|
+
se(() => {
|
|
5187
5204
|
p.value = !1;
|
|
5188
5205
|
});
|
|
5189
5206
|
};
|
|
@@ -5194,10 +5211,10 @@ const Cf = /* @__PURE__ */ Z(Di, [["render", Ni]]), bi = "rtcpt", Ln = `${bi}_th
|
|
|
5194
5211
|
if (typeof Q == "object" && Q !== null) {
|
|
5195
5212
|
const K = Q.from, ne = Q.to;
|
|
5196
5213
|
if (H && typeof H == "object" && H !== null ? (K !== H.from && Object.assign($, { h: 0, m: 0, s: 0 }), ne !== H.to && Object.assign(S, I())) : (Object.assign($, { h: 0, m: 0, s: 0 }), Object.assign(S, I())), K && ne) {
|
|
5197
|
-
const ae = Ce(K, $),
|
|
5198
|
-
if (T.value.from = ae, T.value.to =
|
|
5199
|
-
const De = ge(ae), nn = ge(
|
|
5200
|
-
De && nn && De.getTime() > nn.getTime() ? N.value = { from:
|
|
5214
|
+
const ae = Ce(K, $), re = Ce(ne, S);
|
|
5215
|
+
if (T.value.from = ae, T.value.to = re, ae && re) {
|
|
5216
|
+
const De = ge(ae), nn = ge(re);
|
|
5217
|
+
De && nn && De.getTime() > nn.getTime() ? N.value = { from: re, to: ae } : N.value = { from: ae, to: re };
|
|
5201
5218
|
}
|
|
5202
5219
|
}
|
|
5203
5220
|
} else if (typeof Q == "string" && Q) {
|
|
@@ -5235,18 +5252,18 @@ const Cf = /* @__PURE__ */ Z(Di, [["render", Ni]]), bi = "rtcpt", Ln = `${bi}_th
|
|
|
5235
5252
|
const F = (Q, H, K, ne) => v({
|
|
5236
5253
|
get: () => String(Q[H]).padStart(2, "0"),
|
|
5237
5254
|
set: (ae) => {
|
|
5238
|
-
let
|
|
5239
|
-
isNaN(
|
|
5255
|
+
let re = parseInt(ae, 10);
|
|
5256
|
+
isNaN(re) && (re = 0), Q[H] = ji(re, K), R(ne);
|
|
5240
5257
|
}
|
|
5241
|
-
}), ie = F($, "h", 23, "from"), pe = F($, "m", 59, "from"), de = F($, "s", 59, "from"), Me = F(S, "h", 23, "to"), Ue = F(S, "m", 59, "to"), mt = F(S, "s", 59, "to"), yt = F(g, "h", 23, "single"), Mt = F(g, "m", 59, "single"), ot = F(g, "s", 59, "single"), It = () =>
|
|
5258
|
+
}), ie = F($, "h", 23, "from"), pe = F($, "m", 59, "from"), de = F($, "s", 59, "from"), Me = F(S, "h", 23, "to"), Ue = F(S, "m", 59, "to"), mt = F(S, "s", 59, "to"), yt = F(g, "h", 23, "single"), Mt = F(g, "m", 59, "single"), ot = F(g, "s", 59, "single"), It = () => r.value = !1, Be = () => {
|
|
5242
5259
|
var Q;
|
|
5243
|
-
i.value = !0, e.range ? (T.value = { from: null, to: null }, Object.assign($, { h: 0, m: 0, s: 0 }), Object.assign(S, I()), L.value = { from: "", to: "" }) : (M.value = null, Object.assign(g, { h: 0, m: 0, s: 0 }), f.value = ""), N.value = null, (Q = a.value) == null || Q.blur(),
|
|
5260
|
+
i.value = !0, e.range ? (T.value = { from: null, to: null }, Object.assign($, { h: 0, m: 0, s: 0 }), Object.assign(S, I()), L.value = { from: "", to: "" }) : (M.value = null, Object.assign(g, { h: 0, m: 0, s: 0 }), f.value = ""), N.value = null, (Q = a.value) == null || Q.blur(), r.value = !1, setTimeout(() => i.value = !1, 0);
|
|
5244
5261
|
}, P = () => {
|
|
5245
5262
|
Be();
|
|
5246
5263
|
}, U = (Q, H, K, ne, ae) => {
|
|
5247
5264
|
Q.preventDefault();
|
|
5248
|
-
const
|
|
5249
|
-
H[K] = wi(H[K] +
|
|
5265
|
+
const re = Q.deltaY > 0 ? -1 : 1;
|
|
5266
|
+
H[K] = wi(H[K] + re, ne), R(ae);
|
|
5250
5267
|
}, ue = v(() => {
|
|
5251
5268
|
if (e.valueDisplayFn) return String(e.valueDisplayFn(e.modelValue) ?? "");
|
|
5252
5269
|
if (e.range) {
|
|
@@ -5262,18 +5279,18 @@ const Cf = /* @__PURE__ */ Z(Di, [["render", Ni]]), bi = "rtcpt", Ln = `${bi}_th
|
|
|
5262
5279
|
}
|
|
5263
5280
|
return "";
|
|
5264
5281
|
}), Ze = () => {
|
|
5265
|
-
e.disable || e.readonly || (k(),
|
|
5282
|
+
e.disable || e.readonly || (k(), r.value = !0, j.value && (A && clearTimeout(A), A = setTimeout(() => {
|
|
5266
5283
|
m();
|
|
5267
5284
|
}, 2e3)));
|
|
5268
5285
|
}, ht = (Q) => {
|
|
5269
5286
|
t("hide", Q);
|
|
5270
5287
|
};
|
|
5271
5288
|
return n({ closePopup: () => {
|
|
5272
|
-
|
|
5273
|
-
}, popupVisible:
|
|
5289
|
+
r.value = !1;
|
|
5290
|
+
}, popupVisible: r }), {
|
|
5274
5291
|
t: o,
|
|
5275
5292
|
fieldRef: a,
|
|
5276
|
-
popupVisible:
|
|
5293
|
+
popupVisible: r,
|
|
5277
5294
|
handleClear: Be,
|
|
5278
5295
|
handleClearClick: P,
|
|
5279
5296
|
handleFieldClick: Ze,
|
|
@@ -5311,8 +5328,8 @@ const Cf = /* @__PURE__ */ Z(Di, [["render", Ni]]), bi = "rtcpt", Ln = `${bi}_th
|
|
|
5311
5328
|
key: 0,
|
|
5312
5329
|
class: "datetime-scroll-tooltip"
|
|
5313
5330
|
}, Vi = { class: "tooltip-content" }, Ei = { class: "row column q-mb-sm q-mt-auto" }, Pi = { class: "fs-12 text-grey h-30 row items-center q-mt-sm" }, Yi = { class: "row q-gutter-x-xs items-center" }, Qi = { class: "row column q-mb-md" }, qi = { class: "fs-12 text-grey h-30 row items-center" }, Ri = { class: "row q-gutter-x-xs items-center" }, Ui = { class: "row column q-mb-sm q-mt-auto" }, Bi = { class: "fs-12 text-grey h-30 row items-center q-mt-sm" }, Zi = { class: "row q-gutter-x-xs items-center" };
|
|
5314
|
-
function Wi(e, t, n, l, o,
|
|
5315
|
-
const a = h("q-date"), i = h("q-icon"),
|
|
5331
|
+
function Wi(e, t, n, l, o, r) {
|
|
5332
|
+
const a = h("q-date"), i = h("q-icon"), s = h("q-select"), c = h("q-btn"), u = h("q-popup-proxy"), d = h("q-field");
|
|
5316
5333
|
return y(), V(d, {
|
|
5317
5334
|
ref: "fieldRef",
|
|
5318
5335
|
class: q(["j-q-datetime j-q-datetime-range", {
|
|
@@ -5390,7 +5407,7 @@ function Wi(e, t, n, l, o, s) {
|
|
|
5390
5407
|
C("div", Ei, [
|
|
5391
5408
|
C("div", Pi, O(e.t("messages.date.start")), 1),
|
|
5392
5409
|
C("div", Yi, [
|
|
5393
|
-
b(
|
|
5410
|
+
b(s, {
|
|
5394
5411
|
key: "fromH",
|
|
5395
5412
|
modelValue: e.fromH,
|
|
5396
5413
|
"onUpdate:modelValue": t[1] || (t[1] = (p) => e.fromH = p),
|
|
@@ -5403,7 +5420,7 @@ function Wi(e, t, n, l, o, s) {
|
|
|
5403
5420
|
onWheel: t[2] || (t[2] = te((p) => e.handleTimeWheel(p, e.fromTimeParts, "h", 23, "from"), ["prevent"]))
|
|
5404
5421
|
}, null, 8, ["modelValue", "label", "options", "popup-content-style"]),
|
|
5405
5422
|
t[21] || (t[21] = C("div", { class: "text-caption" }, ":", -1)),
|
|
5406
|
-
b(
|
|
5423
|
+
b(s, {
|
|
5407
5424
|
key: "fromM",
|
|
5408
5425
|
modelValue: e.fromM,
|
|
5409
5426
|
"onUpdate:modelValue": t[3] || (t[3] = (p) => e.fromM = p),
|
|
@@ -5416,7 +5433,7 @@ function Wi(e, t, n, l, o, s) {
|
|
|
5416
5433
|
onWheel: t[4] || (t[4] = te((p) => e.handleTimeWheel(p, e.fromTimeParts, "m", 59, "from"), ["prevent"]))
|
|
5417
5434
|
}, null, 8, ["modelValue", "label", "options", "popup-content-style"]),
|
|
5418
5435
|
t[22] || (t[22] = C("div", { class: "text-caption" }, ":", -1)),
|
|
5419
|
-
b(
|
|
5436
|
+
b(s, {
|
|
5420
5437
|
key: "fromS",
|
|
5421
5438
|
modelValue: e.fromS,
|
|
5422
5439
|
"onUpdate:modelValue": t[5] || (t[5] = (p) => e.fromS = p),
|
|
@@ -5433,7 +5450,7 @@ function Wi(e, t, n, l, o, s) {
|
|
|
5433
5450
|
C("div", Qi, [
|
|
5434
5451
|
C("div", qi, O(e.t("messages.date.end")), 1),
|
|
5435
5452
|
C("div", Ri, [
|
|
5436
|
-
b(
|
|
5453
|
+
b(s, {
|
|
5437
5454
|
key: "toH",
|
|
5438
5455
|
modelValue: e.toH,
|
|
5439
5456
|
"onUpdate:modelValue": t[7] || (t[7] = (p) => e.toH = p),
|
|
@@ -5446,7 +5463,7 @@ function Wi(e, t, n, l, o, s) {
|
|
|
5446
5463
|
onWheel: t[8] || (t[8] = te((p) => e.handleTimeWheel(p, e.toTimeParts, "h", 23, "to"), ["prevent"]))
|
|
5447
5464
|
}, null, 8, ["modelValue", "label", "options", "popup-content-style"]),
|
|
5448
5465
|
t[23] || (t[23] = C("div", { class: "text-caption" }, ":", -1)),
|
|
5449
|
-
b(
|
|
5466
|
+
b(s, {
|
|
5450
5467
|
key: "toM",
|
|
5451
5468
|
modelValue: e.toM,
|
|
5452
5469
|
"onUpdate:modelValue": t[9] || (t[9] = (p) => e.toM = p),
|
|
@@ -5459,7 +5476,7 @@ function Wi(e, t, n, l, o, s) {
|
|
|
5459
5476
|
onWheel: t[10] || (t[10] = te((p) => e.handleTimeWheel(p, e.toTimeParts, "m", 59, "to"), ["prevent"]))
|
|
5460
5477
|
}, null, 8, ["modelValue", "label", "options", "popup-content-style"]),
|
|
5461
5478
|
t[24] || (t[24] = C("div", { class: "text-caption" }, ":", -1)),
|
|
5462
|
-
b(
|
|
5479
|
+
b(s, {
|
|
5463
5480
|
key: "toS",
|
|
5464
5481
|
modelValue: e.toS,
|
|
5465
5482
|
"onUpdate:modelValue": t[11] || (t[11] = (p) => e.toS = p),
|
|
@@ -5477,7 +5494,7 @@ function Wi(e, t, n, l, o, s) {
|
|
|
5477
5494
|
C("div", Ui, [
|
|
5478
5495
|
C("div", Bi, O(e.t("messages.date.hour")) + "/" + O(e.t("messages.date.minute")) + "/" + O(e.t("messages.date.second")), 1),
|
|
5479
5496
|
C("div", Zi, [
|
|
5480
|
-
b(
|
|
5497
|
+
b(s, {
|
|
5481
5498
|
key: "singleH",
|
|
5482
5499
|
modelValue: e.singleH,
|
|
5483
5500
|
"onUpdate:modelValue": t[13] || (t[13] = (p) => e.singleH = p),
|
|
@@ -5490,7 +5507,7 @@ function Wi(e, t, n, l, o, s) {
|
|
|
5490
5507
|
onWheel: t[14] || (t[14] = te((p) => e.handleTimeWheel(p, e.singleTimeParts, "h", 23, "single"), ["prevent"]))
|
|
5491
5508
|
}, null, 8, ["modelValue", "label", "options", "popup-content-style"]),
|
|
5492
5509
|
t[25] || (t[25] = C("div", { class: "text-caption" }, ":", -1)),
|
|
5493
|
-
b(
|
|
5510
|
+
b(s, {
|
|
5494
5511
|
key: "singleM",
|
|
5495
5512
|
modelValue: e.singleM,
|
|
5496
5513
|
"onUpdate:modelValue": t[15] || (t[15] = (p) => e.singleM = p),
|
|
@@ -5503,7 +5520,7 @@ function Wi(e, t, n, l, o, s) {
|
|
|
5503
5520
|
onWheel: t[16] || (t[16] = te((p) => e.handleTimeWheel(p, e.singleTimeParts, "m", 59, "single"), ["prevent"]))
|
|
5504
5521
|
}, null, 8, ["modelValue", "label", "options", "popup-content-style"]),
|
|
5505
5522
|
t[26] || (t[26] = C("div", { class: "text-caption" }, ":", -1)),
|
|
5506
|
-
b(
|
|
5523
|
+
b(s, {
|
|
5507
5524
|
key: "singleS",
|
|
5508
5525
|
modelValue: e.singleS,
|
|
5509
5526
|
"onUpdate:modelValue": t[17] || (t[17] = (p) => e.singleS = p),
|
|
@@ -5558,13 +5575,13 @@ const vf = /* @__PURE__ */ Z(Si, [["render", Wi]]), Fi = B({
|
|
|
5558
5575
|
const { locale: n } = X(), l = v(() => new Array(12).fill(0).map((S, M) => ({ YYYY: e.year, MI: M }))), o = v(() => {
|
|
5559
5576
|
const S = e.locale || n.value;
|
|
5560
5577
|
return new Intl.DateTimeFormat(S, { month: "short" });
|
|
5561
|
-
}),
|
|
5562
|
-
if (!(!e.range || !e.rangeStartValue || !
|
|
5563
|
-
return { from: Math.min(e.rangeStartValue,
|
|
5578
|
+
}), r = z(void 0), a = v(() => {
|
|
5579
|
+
if (!(!e.range || !e.rangeStartValue || !r.value))
|
|
5580
|
+
return { from: Math.min(e.rangeStartValue, r.value), to: Math.max(e.rangeStartValue, r.value) };
|
|
5564
5581
|
}), i = (S, M) => {
|
|
5565
5582
|
const { YYYY: f, MI: g } = M;
|
|
5566
|
-
|
|
5567
|
-
},
|
|
5583
|
+
r.value = new Date(f, g).getTime();
|
|
5584
|
+
}, s = (S) => {
|
|
5568
5585
|
if (!a.value) return !1;
|
|
5569
5586
|
const { YYYY: M, MI: f } = S;
|
|
5570
5587
|
return new Date(M, f).getTime() === a.value.from;
|
|
@@ -5576,7 +5593,7 @@ const vf = /* @__PURE__ */ Z(Si, [["render", Wi]]), Fi = B({
|
|
|
5576
5593
|
if (!a.value) return !1;
|
|
5577
5594
|
const { YYYY: M, MI: f } = S;
|
|
5578
5595
|
return new Date(M, f).getTime() === a.value.to;
|
|
5579
|
-
}, d = (S) =>
|
|
5596
|
+
}, d = (S) => s(S) || c(S) || u(S), p = (S) => {
|
|
5580
5597
|
var g;
|
|
5581
5598
|
const { YYYY: M, MI: f } = S;
|
|
5582
5599
|
return (g = e.optionDisabledFn) == null ? void 0 : g.call(e, new Date(M, f).getTime(), { rangeStartValue: e.rangeStartValue });
|
|
@@ -5600,7 +5617,7 @@ const vf = /* @__PURE__ */ Z(Si, [["render", Wi]]), Fi = B({
|
|
|
5600
5617
|
computedMonthItems: l,
|
|
5601
5618
|
itemValueDisplayFormatter: o,
|
|
5602
5619
|
strokeItem: i,
|
|
5603
|
-
isItemRangingFrom:
|
|
5620
|
+
isItemRangingFrom: s,
|
|
5604
5621
|
isItemRangingIn: c,
|
|
5605
5622
|
isItemRangingTo: u,
|
|
5606
5623
|
isItemRanging: d,
|
|
@@ -5619,7 +5636,7 @@ const vf = /* @__PURE__ */ Z(Si, [["render", Wi]]), Fi = B({
|
|
|
5619
5636
|
};
|
|
5620
5637
|
}
|
|
5621
5638
|
}), Hi = { class: "j-q-month-list" }, Ji = ["onMouseenter"];
|
|
5622
|
-
function Gi(e, t, n, l, o,
|
|
5639
|
+
function Gi(e, t, n, l, o, r) {
|
|
5623
5640
|
const a = h("q-btn");
|
|
5624
5641
|
return y(), w("ul", Hi, [
|
|
5625
5642
|
(y(!0), w(_, null, ee(e.computedMonthItems, (i) => (y(), w("li", {
|
|
@@ -5634,7 +5651,7 @@ function Gi(e, t, n, l, o, s) {
|
|
|
5634
5651
|
"month-item--active-in": e.isItemActiveIn(i),
|
|
5635
5652
|
"month-item--active-to": e.isItemActiveTo(i)
|
|
5636
5653
|
}]),
|
|
5637
|
-
onMouseenter: (
|
|
5654
|
+
onMouseenter: (s) => e.strokeItem(s, i)
|
|
5638
5655
|
}, [
|
|
5639
5656
|
b(a, {
|
|
5640
5657
|
class: "month-handler",
|
|
@@ -5642,7 +5659,7 @@ function Gi(e, t, n, l, o, s) {
|
|
|
5642
5659
|
disable: e.isItemDisabled(i),
|
|
5643
5660
|
flat: !e.isItemActive(i),
|
|
5644
5661
|
unelevated: "",
|
|
5645
|
-
onClick: (
|
|
5662
|
+
onClick: (s) => e.pickItem(i)
|
|
5646
5663
|
}, {
|
|
5647
5664
|
default: D(() => [
|
|
5648
5665
|
J(O(e.itemValueDisplayFormatter.format(new Date(i.YYYY, i.MI))), 1)
|
|
@@ -5672,14 +5689,14 @@ const _i = /* @__PURE__ */ Z(Fi, [["render", Gi]]), Ki = (e) => {
|
|
|
5672
5689
|
"update:modelValue": (e) => !0
|
|
5673
5690
|
},
|
|
5674
5691
|
setup(e, { emit: t }) {
|
|
5675
|
-
const n = v(() => new Array(20).fill(0).map((i,
|
|
5692
|
+
const n = v(() => new Array(20).fill(0).map((i, s) => e.intervalStartYear + s)), l = (/* @__PURE__ */ new Date()).getFullYear();
|
|
5676
5693
|
return {
|
|
5677
5694
|
computedYearItems: n,
|
|
5678
5695
|
isCurrentYear: (i) => i === l,
|
|
5679
5696
|
isItemActive: (i) => {
|
|
5680
5697
|
if (!e.modelValue) return !1;
|
|
5681
|
-
const
|
|
5682
|
-
return (
|
|
5698
|
+
const s = Ki(e.modelValue);
|
|
5699
|
+
return (s == null ? void 0 : s.getFullYear()) === i;
|
|
5683
5700
|
},
|
|
5684
5701
|
pickItem: (i) => {
|
|
5685
5702
|
t("update:modelValue", new Date(i, 0));
|
|
@@ -5687,7 +5704,7 @@ const _i = /* @__PURE__ */ Z(Fi, [["render", Gi]]), Ki = (e) => {
|
|
|
5687
5704
|
};
|
|
5688
5705
|
}
|
|
5689
5706
|
}), Xi = { class: "j-q-year-list" };
|
|
5690
|
-
function
|
|
5707
|
+
function er(e, t, n, l, o, r) {
|
|
5691
5708
|
const a = h("q-btn");
|
|
5692
5709
|
return y(), w("ul", Xi, [
|
|
5693
5710
|
(y(!0), w(_, null, ee(e.computedYearItems, (i) => (y(), w("li", {
|
|
@@ -5702,7 +5719,7 @@ function es(e, t, n, l, o, s) {
|
|
|
5702
5719
|
color: e.isItemActive(i) ? "primary" : void 0,
|
|
5703
5720
|
flat: !e.isItemActive(i),
|
|
5704
5721
|
unelevated: "",
|
|
5705
|
-
onClick: (
|
|
5722
|
+
onClick: (s) => e.pickItem(i)
|
|
5706
5723
|
}, {
|
|
5707
5724
|
default: D(() => [
|
|
5708
5725
|
J(O(i), 1)
|
|
@@ -5712,7 +5729,7 @@ function es(e, t, n, l, o, s) {
|
|
|
5712
5729
|
], 2))), 128))
|
|
5713
5730
|
]);
|
|
5714
5731
|
}
|
|
5715
|
-
const
|
|
5732
|
+
const tr = /* @__PURE__ */ Z(xi, [["render", er]]), at = 1900, cn = 275740, jt = 20, nr = (e) => {
|
|
5716
5733
|
if (e === null || typeof e > "u") return null;
|
|
5717
5734
|
if (e instanceof Date) return e;
|
|
5718
5735
|
if (typeof e == "number") return new Date(e);
|
|
@@ -5721,9 +5738,9 @@ const ts = /* @__PURE__ */ Z(xi, [["render", es]]), at = 1900, cn = 275740, jt =
|
|
|
5721
5738
|
return isNaN(t.getTime()) ? null : t;
|
|
5722
5739
|
}
|
|
5723
5740
|
return null;
|
|
5724
|
-
},
|
|
5741
|
+
}, lr = B({
|
|
5725
5742
|
name: "JQYearSelector",
|
|
5726
|
-
components: { QBtn: Ie, QCard: Le, QCardSection: ke, JQYearList:
|
|
5743
|
+
components: { QBtn: Ie, QCard: Le, QCardSection: ke, JQYearList: tr },
|
|
5727
5744
|
props: {
|
|
5728
5745
|
modelValue: { type: [String, Number, Object, Array, Date] }
|
|
5729
5746
|
},
|
|
@@ -5745,19 +5762,19 @@ const ts = /* @__PURE__ */ Z(xi, [["render", es]]), at = 1900, cn = 275740, jt =
|
|
|
5745
5762
|
l.value = d;
|
|
5746
5763
|
}
|
|
5747
5764
|
);
|
|
5748
|
-
const
|
|
5749
|
-
const d =
|
|
5765
|
+
const r = v(() => {
|
|
5766
|
+
const d = nr(o.value);
|
|
5750
5767
|
return d == null ? void 0 : d.getFullYear();
|
|
5751
|
-
}), a = z(at + jt * (((
|
|
5768
|
+
}), a = z(at + jt * (((r.value ?? n.getFullYear()) - at) / jt | 0)), i = v({
|
|
5752
5769
|
get() {
|
|
5753
5770
|
return Math.min(Math.max(at, a.value), cn);
|
|
5754
5771
|
},
|
|
5755
5772
|
set(d) {
|
|
5756
5773
|
a.value = d;
|
|
5757
5774
|
}
|
|
5758
|
-
}),
|
|
5759
|
-
a.value < d ?
|
|
5760
|
-
}, u = v(() =>
|
|
5775
|
+
}), s = z(void 0), c = (d) => {
|
|
5776
|
+
a.value < d ? s.value = "l" : d < a.value && (s.value = "r"), a.value = d;
|
|
5777
|
+
}, u = v(() => s.value ? `year-container-${s.value}` : "year-container");
|
|
5761
5778
|
return {
|
|
5762
5779
|
MIN_INTERVAL_START: at,
|
|
5763
5780
|
MAX_INTERVAL_START: cn,
|
|
@@ -5769,17 +5786,17 @@ const ts = /* @__PURE__ */ Z(xi, [["render", es]]), at = 1900, cn = 275740, jt =
|
|
|
5769
5786
|
setInterval: c
|
|
5770
5787
|
};
|
|
5771
5788
|
}
|
|
5772
|
-
}),
|
|
5773
|
-
function
|
|
5774
|
-
const a = h("q-btn"), i = h("j-q-year-list"),
|
|
5789
|
+
}), or = { class: "year-nav" }, ar = { class: "year-year-container" };
|
|
5790
|
+
function ir(e, t, n, l, o, r) {
|
|
5791
|
+
const a = h("q-btn"), i = h("j-q-year-list"), s = h("q-card-section"), c = h("q-card");
|
|
5775
5792
|
return y(), V(c, {
|
|
5776
5793
|
class: "j-q-year-selector",
|
|
5777
5794
|
flat: ""
|
|
5778
5795
|
}, {
|
|
5779
5796
|
default: D(() => [
|
|
5780
|
-
b(
|
|
5797
|
+
b(s, { class: "year-selector__inner" }, {
|
|
5781
5798
|
default: D(() => [
|
|
5782
|
-
C("div",
|
|
5799
|
+
C("div", or, [
|
|
5783
5800
|
b(a, {
|
|
5784
5801
|
dense: "",
|
|
5785
5802
|
disable: e.intervalStart <= e.MIN_INTERVAL_START,
|
|
@@ -5788,7 +5805,7 @@ function is(e, t, n, l, o, s) {
|
|
|
5788
5805
|
round: "",
|
|
5789
5806
|
onClick: t[0] || (t[0] = (u) => e.setInterval(e.intervalStart - e.INTERVAL_DELTA))
|
|
5790
5807
|
}, null, 8, ["disable"]),
|
|
5791
|
-
C("div",
|
|
5808
|
+
C("div", ar, [
|
|
5792
5809
|
b(ut, { name: e.computedYearContainerTransitionName }, {
|
|
5793
5810
|
default: D(() => [
|
|
5794
5811
|
(y(), V(i, {
|
|
@@ -5817,7 +5834,7 @@ function is(e, t, n, l, o, s) {
|
|
|
5817
5834
|
_: 1
|
|
5818
5835
|
});
|
|
5819
5836
|
}
|
|
5820
|
-
const $n = /* @__PURE__ */ Z(
|
|
5837
|
+
const $n = /* @__PURE__ */ Z(lr, [["render", ir]]), rr = B({
|
|
5821
5838
|
name: "JQMonthSelector",
|
|
5822
5839
|
components: { QBtn: Ie, QCard: Le, QCardSection: ke, JQMonthList: _i, JQYearSelector: $n },
|
|
5823
5840
|
props: {
|
|
@@ -5844,8 +5861,8 @@ const $n = /* @__PURE__ */ Z(ls, [["render", is]]), ss = B({
|
|
|
5844
5861
|
l.value = m;
|
|
5845
5862
|
}
|
|
5846
5863
|
);
|
|
5847
|
-
const
|
|
5848
|
-
|
|
5864
|
+
const r = z(n.getFullYear()), a = z(void 0), i = z(!1), s = v(() => new Date(r.value, 0)), c = (m) => {
|
|
5865
|
+
r.value < m ? a.value = "l" : m < r.value && (a.value = "r"), r.value = m, p();
|
|
5849
5866
|
}, u = (m) => {
|
|
5850
5867
|
c(new Date(m).getFullYear());
|
|
5851
5868
|
}, d = () => {
|
|
@@ -5860,13 +5877,13 @@ const $n = /* @__PURE__ */ Z(ls, [["render", is]]), ss = B({
|
|
|
5860
5877
|
const { from: T } = o.value;
|
|
5861
5878
|
m = T;
|
|
5862
5879
|
}
|
|
5863
|
-
|
|
5880
|
+
r.value = new Date(m).getFullYear() || n.getFullYear();
|
|
5864
5881
|
})();
|
|
5865
5882
|
const I = v(() => a.value ? `options-container-${a.value}` : "options-container"), j = z(void 0);
|
|
5866
5883
|
return {
|
|
5867
5884
|
computedValue: o,
|
|
5868
|
-
year:
|
|
5869
|
-
yearDate:
|
|
5885
|
+
year: r,
|
|
5886
|
+
yearDate: s,
|
|
5870
5887
|
yearPopupVisible: i,
|
|
5871
5888
|
computedOptionsContainerName: I,
|
|
5872
5889
|
rangeStartValue: j,
|
|
@@ -5887,12 +5904,12 @@ const $n = /* @__PURE__ */ Z(ls, [["render", is]]), ss = B({
|
|
|
5887
5904
|
}
|
|
5888
5905
|
};
|
|
5889
5906
|
}
|
|
5890
|
-
}),
|
|
5907
|
+
}), sr = { class: "month-year-nav" }, ur = {
|
|
5891
5908
|
key: 0,
|
|
5892
5909
|
class: "month-year-popup"
|
|
5893
|
-
},
|
|
5894
|
-
function
|
|
5895
|
-
const a = h("q-btn"), i = h("j-q-year-selector"),
|
|
5910
|
+
}, cr = { class: "month-options-container" };
|
|
5911
|
+
function dr(e, t, n, l, o, r) {
|
|
5912
|
+
const a = h("q-btn"), i = h("j-q-year-selector"), s = h("j-q-month-list"), c = h("q-card-section"), u = h("q-card");
|
|
5896
5913
|
return y(), V(u, {
|
|
5897
5914
|
class: "j-q-month-selector",
|
|
5898
5915
|
flat: ""
|
|
@@ -5903,7 +5920,7 @@ function ds(e, t, n, l, o, s) {
|
|
|
5903
5920
|
style: G({ minWidth: e.yearPopupVisible ? "395px" : "320px", minHeight: e.yearPopupVisible ? "250px" : "290px", paddingBottom: e.yearPopupVisible ? "0px" : "16px" })
|
|
5904
5921
|
}, {
|
|
5905
5922
|
default: D(() => [
|
|
5906
|
-
C("div",
|
|
5923
|
+
C("div", sr, [
|
|
5907
5924
|
b(a, {
|
|
5908
5925
|
dense: "",
|
|
5909
5926
|
flat: "",
|
|
@@ -5927,16 +5944,16 @@ function ds(e, t, n, l, o, s) {
|
|
|
5927
5944
|
onClick: t[1] || (t[1] = (d) => e.setYear(e.year + 1))
|
|
5928
5945
|
})
|
|
5929
5946
|
]),
|
|
5930
|
-
e.yearPopupVisible ? (y(), w("div",
|
|
5947
|
+
e.yearPopupVisible ? (y(), w("div", ur, [
|
|
5931
5948
|
b(i, {
|
|
5932
5949
|
"model-value": e.yearDate,
|
|
5933
5950
|
"onUpdate:modelValue": e.handleYearUpdate
|
|
5934
5951
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
5935
5952
|
])) : E("", !0),
|
|
5936
|
-
C("div",
|
|
5953
|
+
C("div", cr, [
|
|
5937
5954
|
b(ut, { name: e.computedOptionsContainerName }, {
|
|
5938
5955
|
default: D(() => [
|
|
5939
|
-
(y(), V(
|
|
5956
|
+
(y(), V(s, {
|
|
5940
5957
|
key: e.year,
|
|
5941
5958
|
"model-value": e.computedValue,
|
|
5942
5959
|
locale: e.locale,
|
|
@@ -5957,9 +5974,9 @@ function ds(e, t, n, l, o, s) {
|
|
|
5957
5974
|
_: 1
|
|
5958
5975
|
});
|
|
5959
5976
|
}
|
|
5960
|
-
const
|
|
5977
|
+
const pr = /* @__PURE__ */ Z(rr, [["render", dr]]), fr = B({
|
|
5961
5978
|
name: "JQDateMonth",
|
|
5962
|
-
components: { QField: Ne, QIcon: le, QPopupProxy: he, JQMonthSelector:
|
|
5979
|
+
components: { QField: Ne, QIcon: le, QPopupProxy: he, JQMonthSelector: pr },
|
|
5963
5980
|
props: {
|
|
5964
5981
|
modelValue: { type: [String, Number, Object] },
|
|
5965
5982
|
clearable: { type: Boolean, default: !0 },
|
|
@@ -5977,7 +5994,7 @@ const ps = /* @__PURE__ */ Z(ss, [["render", ds]]), fs = B({
|
|
|
5977
5994
|
"update:modelValue": (e) => !0
|
|
5978
5995
|
},
|
|
5979
5996
|
setup(e, { emit: t }) {
|
|
5980
|
-
const { t: n, locale: l } = X(), o = z(void 0),
|
|
5997
|
+
const { t: n, locale: l } = X(), o = z(void 0), r = v({
|
|
5981
5998
|
get() {
|
|
5982
5999
|
return e.modelValue ?? o.value;
|
|
5983
6000
|
},
|
|
@@ -5994,17 +6011,17 @@ const ps = /* @__PURE__ */ Z(ss, [["render", ds]]), fs = B({
|
|
|
5994
6011
|
const a = v(() => e.disable), i = v(() => {
|
|
5995
6012
|
const d = e.locale || l.value;
|
|
5996
6013
|
return new Intl.DateTimeFormat(d, { year: "numeric", month: "numeric" });
|
|
5997
|
-
}),
|
|
5998
|
-
if (e.valueDisplayFn) return e.valueDisplayFn(
|
|
5999
|
-
if (!
|
|
6014
|
+
}), s = v(() => {
|
|
6015
|
+
if (e.valueDisplayFn) return e.valueDisplayFn(r.value);
|
|
6016
|
+
if (!r.value) return r.value;
|
|
6000
6017
|
try {
|
|
6001
6018
|
if (e.range) {
|
|
6002
|
-
const { from: d, to: p } =
|
|
6019
|
+
const { from: d, to: p } = r.value, I = i.value.format(new Date(d)), j = i.value.format(new Date(p));
|
|
6003
6020
|
return `${I} - ${j}`;
|
|
6004
6021
|
}
|
|
6005
|
-
return i.value.format(new Date(
|
|
6022
|
+
return i.value.format(new Date(r.value));
|
|
6006
6023
|
} catch {
|
|
6007
|
-
return
|
|
6024
|
+
return r.value;
|
|
6008
6025
|
}
|
|
6009
6026
|
}), c = z(!1), u = v(() => ({
|
|
6010
6027
|
locale: e.locale,
|
|
@@ -6013,16 +6030,16 @@ const ps = /* @__PURE__ */ Z(ss, [["render", ds]]), fs = B({
|
|
|
6013
6030
|
}));
|
|
6014
6031
|
return {
|
|
6015
6032
|
t: n,
|
|
6016
|
-
computedValue:
|
|
6033
|
+
computedValue: r,
|
|
6017
6034
|
computedDisabled: a,
|
|
6018
|
-
computedValueDisplay:
|
|
6035
|
+
computedValueDisplay: s,
|
|
6019
6036
|
popupVisible: c,
|
|
6020
6037
|
monthProps: u
|
|
6021
6038
|
};
|
|
6022
6039
|
}
|
|
6023
|
-
}),
|
|
6024
|
-
function
|
|
6025
|
-
const a = h("q-icon"), i = h("j-q-month-selector"),
|
|
6040
|
+
}), gr = { class: "month-picker-value-display" };
|
|
6041
|
+
function mr(e, t, n, l, o, r) {
|
|
6042
|
+
const a = h("q-icon"), i = h("j-q-month-selector"), s = h("q-popup-proxy"), c = h("q-field");
|
|
6026
6043
|
return y(), V(c, {
|
|
6027
6044
|
class: q(["j-q-date-month", {
|
|
6028
6045
|
"j-q-date-month--table": e.label,
|
|
@@ -6038,7 +6055,7 @@ function ms(e, t, n, l, o, s) {
|
|
|
6038
6055
|
title: e.computedValueDisplay
|
|
6039
6056
|
}, {
|
|
6040
6057
|
control: D(() => [
|
|
6041
|
-
C("div",
|
|
6058
|
+
C("div", gr, [
|
|
6042
6059
|
Y(e.$slots, "value-display", {}, () => [
|
|
6043
6060
|
J(O(e.computedValueDisplay), 1)
|
|
6044
6061
|
])
|
|
@@ -6057,7 +6074,7 @@ function ms(e, t, n, l, o, s) {
|
|
|
6057
6074
|
oe(C("div", { class: "float-placeholder" }, O(e.t("messages.pleaseSelect")), 513), [
|
|
6058
6075
|
[fe, !e.computedValueDisplay && !e.label]
|
|
6059
6076
|
]),
|
|
6060
|
-
b(
|
|
6077
|
+
b(s, {
|
|
6061
6078
|
modelValue: e.popupVisible,
|
|
6062
6079
|
"onUpdate:modelValue": t[2] || (t[2] = (u) => e.popupVisible = u)
|
|
6063
6080
|
}, {
|
|
@@ -6073,7 +6090,7 @@ function ms(e, t, n, l, o, s) {
|
|
|
6073
6090
|
_: 3
|
|
6074
6091
|
}, 8, ["class", "modelValue", "dense", "disable", "label", "outlined", "rules", "title"]);
|
|
6075
6092
|
}
|
|
6076
|
-
const Nf = /* @__PURE__ */ Z(
|
|
6093
|
+
const Nf = /* @__PURE__ */ Z(fr, [["render", mr]]), yr = (e) => {
|
|
6077
6094
|
if (e === null || typeof e > "u") return null;
|
|
6078
6095
|
if (e instanceof Date) return e;
|
|
6079
6096
|
if (typeof e == "number") return new Date(e);
|
|
@@ -6082,7 +6099,7 @@ const Nf = /* @__PURE__ */ Z(fs, [["render", ms]]), ys = (e) => {
|
|
|
6082
6099
|
return isNaN(t.getTime()) ? null : t;
|
|
6083
6100
|
}
|
|
6084
6101
|
return null;
|
|
6085
|
-
},
|
|
6102
|
+
}, Mr = B({
|
|
6086
6103
|
name: "JQDateYear",
|
|
6087
6104
|
components: { QField: Ne, QIcon: le, QPopupProxy: he, JQYearSelector: $n },
|
|
6088
6105
|
props: {
|
|
@@ -6113,28 +6130,28 @@ const Nf = /* @__PURE__ */ Z(fs, [["render", ms]]), ys = (e) => {
|
|
|
6113
6130
|
l.value = c;
|
|
6114
6131
|
}
|
|
6115
6132
|
);
|
|
6116
|
-
const
|
|
6133
|
+
const r = v(() => e.disable), a = v(() => {
|
|
6117
6134
|
if (e.valueDisplayFn) return e.valueDisplayFn(o.value);
|
|
6118
6135
|
if (!o.value) return o.value;
|
|
6119
6136
|
try {
|
|
6120
|
-
const c =
|
|
6137
|
+
const c = yr(o.value);
|
|
6121
6138
|
return c ? c.getFullYear().toString() : o.value;
|
|
6122
6139
|
} catch {
|
|
6123
6140
|
return o.value;
|
|
6124
6141
|
}
|
|
6125
|
-
}), i = z(!1),
|
|
6142
|
+
}), i = z(!1), s = v(() => ({}));
|
|
6126
6143
|
return {
|
|
6127
6144
|
t: n,
|
|
6128
6145
|
computedValue: o,
|
|
6129
|
-
computedDisabled:
|
|
6146
|
+
computedDisabled: r,
|
|
6130
6147
|
computedValueDisplay: a,
|
|
6131
6148
|
popupVisible: i,
|
|
6132
|
-
yearProps:
|
|
6149
|
+
yearProps: s
|
|
6133
6150
|
};
|
|
6134
6151
|
}
|
|
6135
|
-
}),
|
|
6136
|
-
function
|
|
6137
|
-
const a = h("q-icon"), i = h("j-q-year-selector"),
|
|
6152
|
+
}), Ir = { class: "year-picker-value-display" };
|
|
6153
|
+
function hr(e, t, n, l, o, r) {
|
|
6154
|
+
const a = h("q-icon"), i = h("j-q-year-selector"), s = h("q-popup-proxy"), c = h("q-field");
|
|
6138
6155
|
return y(), V(c, {
|
|
6139
6156
|
class: q(["j-q-date-year", {
|
|
6140
6157
|
"j-q-date-year--table": e.label,
|
|
@@ -6150,7 +6167,7 @@ function hs(e, t, n, l, o, s) {
|
|
|
6150
6167
|
title: e.computedValueDisplay
|
|
6151
6168
|
}, {
|
|
6152
6169
|
control: D(() => [
|
|
6153
|
-
C("div",
|
|
6170
|
+
C("div", Ir, [
|
|
6154
6171
|
Y(e.$slots, "value-display", {}, () => [
|
|
6155
6172
|
J(O(e.computedValueDisplay), 1)
|
|
6156
6173
|
])
|
|
@@ -6170,7 +6187,7 @@ function hs(e, t, n, l, o, s) {
|
|
|
6170
6187
|
oe(C("div", { class: "float-placeholder" }, O(e.t("messages.pleaseSelect")), 513), [
|
|
6171
6188
|
[fe, !e.computedValueDisplay && !e.label]
|
|
6172
6189
|
]),
|
|
6173
|
-
b(
|
|
6190
|
+
b(s, {
|
|
6174
6191
|
modelValue: e.popupVisible,
|
|
6175
6192
|
"onUpdate:modelValue": t[2] || (t[2] = (u) => e.popupVisible = u)
|
|
6176
6193
|
}, {
|
|
@@ -6186,27 +6203,27 @@ function hs(e, t, n, l, o, s) {
|
|
|
6186
6203
|
_: 3
|
|
6187
6204
|
}, 8, ["class", "modelValue", "dense", "disable", "label", "outlined", "rules", "title"]);
|
|
6188
6205
|
}
|
|
6189
|
-
const bf = /* @__PURE__ */ Z(
|
|
6206
|
+
const bf = /* @__PURE__ */ Z(Mr, [["render", hr]]), Ae = "ngiot__management__frontend__storge__", Ar = `${Ae}_username`, Dr = () => localStorage.removeItem(Ar), Cr = `${Ae}_userinfo`, vr = () => localStorage.removeItem(Cr), Nr = `${Ae}cmp_userinfo`, br = () => localStorage.removeItem(Nr), jr = `${Ae}_currentOrg`, wr = () => localStorage.removeItem(jr), Sr = `${Ae}_pagePermissionID`, Tr = () => localStorage.removeItem(Sr), zr = `${Ae}_pageActionPermissionID`, kr = () => localStorage.removeItem(zr), Lr = `${Ae}_token`, $r = () => localStorage.removeItem(Lr), Or = () => {
|
|
6190
6207
|
for (let e of Ke)
|
|
6191
6208
|
localStorage.removeItem(`${Ae}_${e.platform}_sidebarStatus`);
|
|
6192
|
-
},
|
|
6209
|
+
}, Vr = () => {
|
|
6193
6210
|
for (let e of Ke)
|
|
6194
6211
|
localStorage.removeItem(`${Ae}_${e.platform}_tagsView`);
|
|
6195
|
-
},
|
|
6196
|
-
|
|
6212
|
+
}, Er = () => {
|
|
6213
|
+
Or(), Vr(), Dr(), vr(), br(), wr(), Tr(), kr(), $r();
|
|
6197
6214
|
};
|
|
6198
6215
|
function Lt(e) {
|
|
6199
6216
|
return e === !1 ? !1 : e === 0 || String(e) === "0" || e ? e : "-";
|
|
6200
6217
|
}
|
|
6201
6218
|
function On(e) {
|
|
6202
|
-
const { size: t, unit: n = "B", maxUnit: l, numberFormatOptions: o } = e, { size:
|
|
6203
|
-
return `${
|
|
6219
|
+
const { size: t, unit: n = "B", maxUnit: l, numberFormatOptions: o } = e, { size: r, unit: a } = lt({ size: t, unit: n }, { maxUnit: l });
|
|
6220
|
+
return `${r.toLocaleString(void 0, o)} ${a}`;
|
|
6204
6221
|
}
|
|
6205
6222
|
function lt(e, t) {
|
|
6206
|
-
const n = ["B", "KB", "MB", "GB", "TB"], { size: l, unit: o = "B" } = e,
|
|
6207
|
-
if (
|
|
6223
|
+
const n = ["B", "KB", "MB", "GB", "TB"], { size: l, unit: o = "B" } = e, r = n.indexOf(o);
|
|
6224
|
+
if (r === -1 || r === n.length - 1) return { size: l, unit: o };
|
|
6208
6225
|
const a = (t == null ? void 0 : t.maxUnit) || "TB", i = n.indexOf(a);
|
|
6209
|
-
return
|
|
6226
|
+
return r === i ? { size: l, unit: o } : l < 1024 ? { size: l, unit: o } : lt({ size: l / 1024, unit: n[r + 1] }, t);
|
|
6210
6227
|
}
|
|
6211
6228
|
function Gt(e, t = "-") {
|
|
6212
6229
|
return (n, l) => n === 0 || n === "0" ? e ? e(n, l) : n : n ? e ? e(n, l) : n.toString() : t;
|
|
@@ -6232,7 +6249,7 @@ function _e(e, t = "YYYY-MM-DD HH:mm:ss") {
|
|
|
6232
6249
|
const n = Vn(e);
|
|
6233
6250
|
return Lt(n ? x.formatDate(n, t) : e);
|
|
6234
6251
|
}
|
|
6235
|
-
function
|
|
6252
|
+
function Pr(e = "YYYY-MM-DD HH:mm:ss", t = "-") {
|
|
6236
6253
|
return (n, l) => {
|
|
6237
6254
|
if (n === 0 || n === "0")
|
|
6238
6255
|
return String(n);
|
|
@@ -6240,14 +6257,14 @@ function Ps(e = "YYYY-MM-DD HH:mm:ss", t = "-") {
|
|
|
6240
6257
|
if (!n || n === "Invalid Date")
|
|
6241
6258
|
return t;
|
|
6242
6259
|
try {
|
|
6243
|
-
const
|
|
6244
|
-
return !
|
|
6245
|
-
} catch (
|
|
6246
|
-
return console.error("Date formatting failed:",
|
|
6260
|
+
const r = x.formatDate(o, e);
|
|
6261
|
+
return !r || r === "Invalid Date" ? t : r;
|
|
6262
|
+
} catch (r) {
|
|
6263
|
+
return console.error("Date formatting failed:", r), t;
|
|
6247
6264
|
}
|
|
6248
6265
|
};
|
|
6249
6266
|
}
|
|
6250
|
-
function
|
|
6267
|
+
function Yr(e = "-", t) {
|
|
6251
6268
|
return Gt((l) => {
|
|
6252
6269
|
const o = typeof l == "string" ? Number(l) : l;
|
|
6253
6270
|
return Number.isFinite(o) ? On({
|
|
@@ -6260,35 +6277,35 @@ function Ys(e = "-", t) {
|
|
|
6260
6277
|
}) : l;
|
|
6261
6278
|
}, e);
|
|
6262
6279
|
}
|
|
6263
|
-
function
|
|
6280
|
+
function Qr(e = "-", t) {
|
|
6264
6281
|
return Gt((l) => {
|
|
6265
6282
|
const o = ["B", "KB", "MB", "GB", "TB"];
|
|
6266
|
-
let
|
|
6283
|
+
let r = typeof l == "string" ? Number(l) : l, a = (t == null ? void 0 : t.unit) || "B";
|
|
6267
6284
|
const i = (t == null ? void 0 : t.digits) ?? 2;
|
|
6268
|
-
if (
|
|
6269
|
-
return `${
|
|
6270
|
-
let
|
|
6271
|
-
for (
|
|
6272
|
-
|
|
6273
|
-
return `${
|
|
6285
|
+
if (r === 0)
|
|
6286
|
+
return `${r.toFixed(i)} ${a}`;
|
|
6287
|
+
let s = o.indexOf(a);
|
|
6288
|
+
for (s === -1 && (s = 0, a = "B"); s < o.length - 1 && r % 1024 === 0; )
|
|
6289
|
+
r = r / 1024, s++, a = o[s];
|
|
6290
|
+
return `${r.toFixed(i)} ${a}`;
|
|
6274
6291
|
}, e);
|
|
6275
6292
|
}
|
|
6276
|
-
function
|
|
6277
|
-
const o = ["B", "KB", "MB", "GB", "TB"],
|
|
6293
|
+
function qr(e, t, n, l) {
|
|
6294
|
+
const o = ["B", "KB", "MB", "GB", "TB"], r = (l == null ? void 0 : l.digits) ?? 2, a = (l == null ? void 0 : l.showUnit) ?? !0, i = typeof e == "string" ? Number(e) : e;
|
|
6278
6295
|
if (!Number.isFinite(i))
|
|
6279
6296
|
return e;
|
|
6280
|
-
const
|
|
6281
|
-
if (
|
|
6297
|
+
const s = o.indexOf(t), c = o.indexOf(n);
|
|
6298
|
+
if (s === -1 || c === -1)
|
|
6282
6299
|
return e;
|
|
6283
|
-
const u =
|
|
6300
|
+
const u = s - c, p = (i * Math.pow(1024, u)).toFixed(r);
|
|
6284
6301
|
return a ? `${p} ${n}` : Number(p);
|
|
6285
6302
|
}
|
|
6286
|
-
const
|
|
6303
|
+
const Rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6287
6304
|
__proto__: null,
|
|
6288
|
-
convertDataUnit:
|
|
6289
|
-
defaultAutoDataFormat:
|
|
6290
|
-
defaultDataFormat:
|
|
6291
|
-
defaultDateFormat:
|
|
6305
|
+
convertDataUnit: qr,
|
|
6306
|
+
defaultAutoDataFormat: Qr,
|
|
6307
|
+
defaultDataFormat: Yr,
|
|
6308
|
+
defaultDateFormat: Pr,
|
|
6292
6309
|
defaultFill: Lt,
|
|
6293
6310
|
defaultFormat: Gt,
|
|
6294
6311
|
formatDate: _e,
|
|
@@ -6297,9 +6314,9 @@ const Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6297
6314
|
getTitle: Ga,
|
|
6298
6315
|
getUpperSize: lt,
|
|
6299
6316
|
platformList: Ke,
|
|
6300
|
-
resetVariables:
|
|
6317
|
+
resetVariables: Er,
|
|
6301
6318
|
setTitleAndLogo: Ja
|
|
6302
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6319
|
+
}, Symbol.toStringTag, { value: "Module" })), Ur = B({
|
|
6303
6320
|
name: "JQDetailList",
|
|
6304
6321
|
components: {
|
|
6305
6322
|
JCTooltipEllipsis: gt,
|
|
@@ -6331,7 +6348,7 @@ const Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6331
6348
|
},
|
|
6332
6349
|
slots: Object,
|
|
6333
6350
|
setup(e, { slots: t }) {
|
|
6334
|
-
const { t: n } = X(), l = (A) => A.visible === void 0 || A.visible === null ? !0 : typeof A.visible == "boolean" ? A.visible : typeof A.visible == "function" ? A.visible(e.data) : !0, o = v(() => e.items.filter((A) => l(A))),
|
|
6351
|
+
const { t: n } = X(), l = (A) => A.visible === void 0 || A.visible === null ? !0 : typeof A.visible == "boolean" ? A.visible : typeof A.visible == "function" ? A.visible(e.data) : !0, o = v(() => e.items.filter((A) => l(A))), r = v(() => e.layout === "horizontal-left" ? {
|
|
6335
6352
|
"--label-width": e.labelWidth
|
|
6336
6353
|
} : {}), a = v(() => e.items.filter((A) => Reflect.has(t, `item-value-${A.name}`))), i = (A, m) => {
|
|
6337
6354
|
const { options: T, findByKey: L, displayKey: $ = "label" } = A;
|
|
@@ -6339,7 +6356,7 @@ const Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6339
6356
|
return m;
|
|
6340
6357
|
const S = T.find((M) => String(M[L]) === String(m));
|
|
6341
6358
|
return S ? S[$] : m;
|
|
6342
|
-
},
|
|
6359
|
+
}, s = (A) => {
|
|
6343
6360
|
let m = e.data[A.name];
|
|
6344
6361
|
if (m == null || m === "")
|
|
6345
6362
|
return "-";
|
|
@@ -6363,7 +6380,7 @@ const Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6363
6380
|
visibleItems: o,
|
|
6364
6381
|
getOptionClass: c,
|
|
6365
6382
|
computedSlotItems: a,
|
|
6366
|
-
getDefaultValue:
|
|
6383
|
+
getDefaultValue: s,
|
|
6367
6384
|
getCopyValue: (A) => {
|
|
6368
6385
|
let m = e.data[A.name];
|
|
6369
6386
|
if (m == null || m === "")
|
|
@@ -6381,11 +6398,11 @@ const Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6381
6398
|
return String(m);
|
|
6382
6399
|
},
|
|
6383
6400
|
slots: t,
|
|
6384
|
-
containerStyle:
|
|
6401
|
+
containerStyle: r,
|
|
6385
6402
|
isClickable: u,
|
|
6386
6403
|
handleClick: (A) => {
|
|
6387
6404
|
if (!u(A) || !A.onClick) return;
|
|
6388
|
-
const m =
|
|
6405
|
+
const m = s(A);
|
|
6389
6406
|
A.onClick(m);
|
|
6390
6407
|
},
|
|
6391
6408
|
getHtmlStyle: (A) => ({
|
|
@@ -6393,23 +6410,23 @@ const Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6393
6410
|
}),
|
|
6394
6411
|
handleDetailClick: (A) => {
|
|
6395
6412
|
if (!A.onDetailClick) return;
|
|
6396
|
-
const m =
|
|
6413
|
+
const m = s(A);
|
|
6397
6414
|
A.onDetailClick(m, e.data);
|
|
6398
6415
|
}
|
|
6399
6416
|
};
|
|
6400
6417
|
}
|
|
6401
|
-
}),
|
|
6418
|
+
}), Br = { class: "q-mb-xs text-grey text-caption row items-center" }, Zr = ["onClick"], Wr = ["innerHTML"], Fr = {
|
|
6402
6419
|
key: 0,
|
|
6403
6420
|
class: "detail-value-suffix q-ml-xs"
|
|
6404
|
-
},
|
|
6421
|
+
}, Hr = ["onClick"], Jr = { class: "item item-between" }, Gr = { class: "label row items-center" }, _r = { class: "value-wrapper row items-center no-wrap" }, Kr = ["onClick"], xr = ["innerHTML"], Xr = {
|
|
6405
6422
|
key: 0,
|
|
6406
6423
|
class: "value-suffix q-ml-xs"
|
|
6407
|
-
},
|
|
6424
|
+
}, es = ["onClick"], ts = { class: "item item-left" }, ns = { class: "label row items-center" }, ls = { class: "value-wrapper row items-center no-wrap" }, os = ["onClick"], as = ["innerHTML"], is = {
|
|
6408
6425
|
key: 0,
|
|
6409
6426
|
class: "value-suffix q-ml-xs"
|
|
6410
|
-
},
|
|
6411
|
-
function
|
|
6412
|
-
const a = h("q-icon"), i = h("j-c-tooltip"),
|
|
6427
|
+
}, rs = ["onClick"];
|
|
6428
|
+
function ss(e, t, n, l, o, r) {
|
|
6429
|
+
const a = h("q-icon"), i = h("j-c-tooltip"), s = h("j-c-tooltip-ellipsis"), c = h("j-c-copy");
|
|
6413
6430
|
return e.layout === "vertical" ? (y(), w("div", {
|
|
6414
6431
|
key: 0,
|
|
6415
6432
|
class: q(["row", e.gutter])
|
|
@@ -6418,7 +6435,7 @@ function rr(e, t, n, l, o, s) {
|
|
|
6418
6435
|
key: u.name,
|
|
6419
6436
|
class: q([[`col-${u.span || 6}`], "detail-item-container"])
|
|
6420
6437
|
}, [
|
|
6421
|
-
C("div",
|
|
6438
|
+
C("div", Br, [
|
|
6422
6439
|
J(O(u.label) + " ", 1),
|
|
6423
6440
|
u.tip ? (y(), V(i, {
|
|
6424
6441
|
key: 0,
|
|
@@ -6453,17 +6470,17 @@ function rr(e, t, n, l, o, s) {
|
|
|
6453
6470
|
innerHTML: e.getDefaultValue(u),
|
|
6454
6471
|
class: q([e.getOptionClass(u), "html-content"]),
|
|
6455
6472
|
style: G(e.getHtmlStyle(u))
|
|
6456
|
-
}, null, 14,
|
|
6473
|
+
}, null, 14, Wr)) : u.detail ? (y(), w("span", {
|
|
6457
6474
|
key: 2,
|
|
6458
6475
|
class: q(e.getOptionClass(u))
|
|
6459
|
-
}, O(e.getDefaultValue(u)), 3)) : (y(), V(
|
|
6476
|
+
}, O(e.getDefaultValue(u)), 3)) : (y(), V(s, {
|
|
6460
6477
|
key: 3,
|
|
6461
6478
|
content: e.getDefaultValue(u),
|
|
6462
6479
|
lines: u.whiteSpace || 1,
|
|
6463
6480
|
class: q(e.getOptionClass(u))
|
|
6464
6481
|
}, null, 8, ["content", "lines", "class"]))
|
|
6465
|
-
], 10,
|
|
6466
|
-
u.copy || u.detail || e.slots[`item-suffix-${u.name}`] ? (y(), w("div",
|
|
6482
|
+
], 10, Zr),
|
|
6483
|
+
u.copy || u.detail || e.slots[`item-suffix-${u.name}`] ? (y(), w("div", Fr, [
|
|
6467
6484
|
e.slots[`item-suffix-${u.name}`] ? Y(e.$slots, `item-suffix-${u.name}`, {
|
|
6468
6485
|
key: 0,
|
|
6469
6486
|
value: e.data[u.name],
|
|
@@ -6479,7 +6496,7 @@ function rr(e, t, n, l, o, s) {
|
|
|
6479
6496
|
key: 1,
|
|
6480
6497
|
class: "link-type q-ml-xs",
|
|
6481
6498
|
onClick: (d) => e.handleDetailClick(u)
|
|
6482
|
-
}, O(e.t("action.detail")), 9,
|
|
6499
|
+
}, O(e.t("action.detail")), 9, Hr)) : E("", !0)
|
|
6483
6500
|
], 64))
|
|
6484
6501
|
])) : E("", !0)
|
|
6485
6502
|
], 2)
|
|
@@ -6492,8 +6509,8 @@ function rr(e, t, n, l, o, s) {
|
|
|
6492
6509
|
key: u.name,
|
|
6493
6510
|
class: q([`col-${u.span || 6}`])
|
|
6494
6511
|
}, [
|
|
6495
|
-
C("div",
|
|
6496
|
-
C("div",
|
|
6512
|
+
C("div", Jr, [
|
|
6513
|
+
C("div", Gr, [
|
|
6497
6514
|
J(O(u.label) + " ", 1),
|
|
6498
6515
|
u.tip ? (y(), V(i, {
|
|
6499
6516
|
key: 0,
|
|
@@ -6510,7 +6527,7 @@ function rr(e, t, n, l, o, s) {
|
|
|
6510
6527
|
_: 1
|
|
6511
6528
|
}, 8, ["content"])) : E("", !0)
|
|
6512
6529
|
]),
|
|
6513
|
-
C("div",
|
|
6530
|
+
C("div", _r, [
|
|
6514
6531
|
C("div", {
|
|
6515
6532
|
class: q(["value", { clickable: e.isClickable(u), "text-ellipsis": u.detail }]),
|
|
6516
6533
|
onClick: (d) => e.handleClick(u)
|
|
@@ -6526,17 +6543,17 @@ function rr(e, t, n, l, o, s) {
|
|
|
6526
6543
|
innerHTML: e.getDefaultValue(u),
|
|
6527
6544
|
class: q([e.getOptionClass(u), "html-content"]),
|
|
6528
6545
|
style: G(e.getHtmlStyle(u))
|
|
6529
|
-
}, null, 14,
|
|
6546
|
+
}, null, 14, xr)) : u.detail ? (y(), w("span", {
|
|
6530
6547
|
key: 2,
|
|
6531
6548
|
class: q(e.getOptionClass(u))
|
|
6532
|
-
}, O(e.getDefaultValue(u)), 3)) : (y(), V(
|
|
6549
|
+
}, O(e.getDefaultValue(u)), 3)) : (y(), V(s, {
|
|
6533
6550
|
key: 3,
|
|
6534
6551
|
content: e.getDefaultValue(u),
|
|
6535
6552
|
lines: u.whiteSpace || 1,
|
|
6536
6553
|
class: q(e.getOptionClass(u))
|
|
6537
6554
|
}, null, 8, ["content", "lines", "class"]))
|
|
6538
|
-
], 10,
|
|
6539
|
-
u.copy || u.detail || e.slots[`item-suffix-${u.name}`] ? (y(), w("div",
|
|
6555
|
+
], 10, Kr),
|
|
6556
|
+
u.copy || u.detail || e.slots[`item-suffix-${u.name}`] ? (y(), w("div", Xr, [
|
|
6540
6557
|
e.slots[`item-suffix-${u.name}`] ? Y(e.$slots, `item-suffix-${u.name}`, {
|
|
6541
6558
|
key: 0,
|
|
6542
6559
|
value: e.data[u.name],
|
|
@@ -6552,7 +6569,7 @@ function rr(e, t, n, l, o, s) {
|
|
|
6552
6569
|
key: 1,
|
|
6553
6570
|
class: "link-type q-ml-xs",
|
|
6554
6571
|
onClick: (d) => e.handleDetailClick(u)
|
|
6555
|
-
}, O(e.t("action.detail")), 9,
|
|
6572
|
+
}, O(e.t("action.detail")), 9, es)) : E("", !0)
|
|
6556
6573
|
], 64))
|
|
6557
6574
|
])) : E("", !0)
|
|
6558
6575
|
])
|
|
@@ -6567,8 +6584,8 @@ function rr(e, t, n, l, o, s) {
|
|
|
6567
6584
|
key: u.name,
|
|
6568
6585
|
class: q([`col-${u.span || 6}`])
|
|
6569
6586
|
}, [
|
|
6570
|
-
C("div",
|
|
6571
|
-
C("div",
|
|
6587
|
+
C("div", ts, [
|
|
6588
|
+
C("div", ns, [
|
|
6572
6589
|
J(O(u.label) + " ", 1),
|
|
6573
6590
|
u.tip ? (y(), V(i, {
|
|
6574
6591
|
key: 0,
|
|
@@ -6585,7 +6602,7 @@ function rr(e, t, n, l, o, s) {
|
|
|
6585
6602
|
_: 1
|
|
6586
6603
|
}, 8, ["content"])) : E("", !0)
|
|
6587
6604
|
]),
|
|
6588
|
-
C("div",
|
|
6605
|
+
C("div", ls, [
|
|
6589
6606
|
C("div", {
|
|
6590
6607
|
class: q(["value", { clickable: e.isClickable(u), "text-ellipsis": u.detail }]),
|
|
6591
6608
|
onClick: (d) => e.handleClick(u)
|
|
@@ -6601,17 +6618,17 @@ function rr(e, t, n, l, o, s) {
|
|
|
6601
6618
|
innerHTML: e.getDefaultValue(u),
|
|
6602
6619
|
class: q([e.getOptionClass(u), "html-content"]),
|
|
6603
6620
|
style: G(e.getHtmlStyle(u))
|
|
6604
|
-
}, null, 14,
|
|
6621
|
+
}, null, 14, as)) : u.detail ? (y(), w("span", {
|
|
6605
6622
|
key: 2,
|
|
6606
6623
|
class: q(e.getOptionClass(u))
|
|
6607
|
-
}, O(e.getDefaultValue(u)), 3)) : (y(), V(
|
|
6624
|
+
}, O(e.getDefaultValue(u)), 3)) : (y(), V(s, {
|
|
6608
6625
|
key: 3,
|
|
6609
6626
|
content: e.getDefaultValue(u),
|
|
6610
6627
|
lines: u.whiteSpace || 1,
|
|
6611
6628
|
class: q(e.getOptionClass(u))
|
|
6612
6629
|
}, null, 8, ["content", "lines", "class"]))
|
|
6613
|
-
], 10,
|
|
6614
|
-
u.copy || u.detail || e.slots[`item-suffix-${u.name}`] ? (y(), w("div",
|
|
6630
|
+
], 10, os),
|
|
6631
|
+
u.copy || u.detail || e.slots[`item-suffix-${u.name}`] ? (y(), w("div", is, [
|
|
6615
6632
|
e.slots[`item-suffix-${u.name}`] ? Y(e.$slots, `item-suffix-${u.name}`, {
|
|
6616
6633
|
key: 0,
|
|
6617
6634
|
value: e.data[u.name],
|
|
@@ -6627,7 +6644,7 @@ function rr(e, t, n, l, o, s) {
|
|
|
6627
6644
|
key: 1,
|
|
6628
6645
|
class: "link-type q-ml-xs",
|
|
6629
6646
|
onClick: (d) => e.handleDetailClick(u)
|
|
6630
|
-
}, O(e.t("action.detail")), 9,
|
|
6647
|
+
}, O(e.t("action.detail")), 9, rs)) : E("", !0)
|
|
6631
6648
|
], 64))
|
|
6632
6649
|
])) : E("", !0)
|
|
6633
6650
|
])
|
|
@@ -6635,7 +6652,7 @@ function rr(e, t, n, l, o, s) {
|
|
|
6635
6652
|
], 2))), 128))
|
|
6636
6653
|
], 6)) : E("", !0);
|
|
6637
6654
|
}
|
|
6638
|
-
const jf = /* @__PURE__ */ Z(
|
|
6655
|
+
const jf = /* @__PURE__ */ Z(Ur, [["render", ss], ["__scopeId", "data-v-100bb9c9"]]), us = B({
|
|
6639
6656
|
name: "JQFile",
|
|
6640
6657
|
components: {
|
|
6641
6658
|
QField: Ne,
|
|
@@ -6659,21 +6676,21 @@ const jf = /* @__PURE__ */ Z(Us, [["render", rr], ["__scopeId", "data-v-100bb9c9
|
|
|
6659
6676
|
},
|
|
6660
6677
|
slots: Object,
|
|
6661
6678
|
setup(e, { emit: t, slots: n }) {
|
|
6662
|
-
const { t: l } = X(), o = z(null),
|
|
6679
|
+
const { t: l } = X(), o = z(null), r = z(e.modelValue ?? []), a = v({
|
|
6663
6680
|
get() {
|
|
6664
|
-
return e.modelValue ??
|
|
6681
|
+
return e.modelValue ?? r.value ?? [];
|
|
6665
6682
|
},
|
|
6666
6683
|
set(g) {
|
|
6667
|
-
t("update:modelValue", g),
|
|
6684
|
+
t("update:modelValue", g), r.value = g;
|
|
6668
6685
|
}
|
|
6669
|
-
}), i = z(!1),
|
|
6670
|
-
const N = a.value.length, k =
|
|
6686
|
+
}), i = z(!1), s = v(() => Number(e.maxlength) || 0), c = v(() => s.value > 0 && s.value <= a.value.length), u = (g) => g != null && g.length ? Array.from(g) : [], d = async (g) => {
|
|
6687
|
+
const N = a.value.length, k = s.value - N;
|
|
6671
6688
|
let R = [...g];
|
|
6672
|
-
if (
|
|
6673
|
-
|
|
6689
|
+
if (s.value > 0 && k <= 0) {
|
|
6690
|
+
rt.show({ type: "error", content: l("messages.jQFile.maxlength", { count: s.value }) });
|
|
6674
6691
|
return;
|
|
6675
6692
|
}
|
|
6676
|
-
if (
|
|
6693
|
+
if (s.value > 0 && R.length > k && (R = R.slice(0, k)), e.beforeHandle) {
|
|
6677
6694
|
const F = await e.beforeHandle(R);
|
|
6678
6695
|
F && (a.value = [...a.value, ...F]);
|
|
6679
6696
|
} else
|
|
@@ -6714,7 +6731,7 @@ const jf = /* @__PURE__ */ Z(Us, [["render", rr], ["__scopeId", "data-v-100bb9c9
|
|
|
6714
6731
|
t: l,
|
|
6715
6732
|
fileInputRef: o,
|
|
6716
6733
|
computedValue: a,
|
|
6717
|
-
computedMaxlength:
|
|
6734
|
+
computedMaxlength: s,
|
|
6718
6735
|
isDragging: i,
|
|
6719
6736
|
isMaxlength: c,
|
|
6720
6737
|
browseFile: p,
|
|
@@ -6730,31 +6747,31 @@ const jf = /* @__PURE__ */ Z(Us, [["render", rr], ["__scopeId", "data-v-100bb9c9
|
|
|
6730
6747
|
hasSlotHint: f
|
|
6731
6748
|
};
|
|
6732
6749
|
}
|
|
6733
|
-
}),
|
|
6750
|
+
}), cs = { class: "j-q-file" }, ds = { class: "fs-14 q-mt-sm" }, ps = { class: "text-grey fs-12 q-mt-xs" }, fs = {
|
|
6734
6751
|
key: 0,
|
|
6735
6752
|
class: "single-file"
|
|
6736
|
-
},
|
|
6753
|
+
}, gs = { class: "single-file-content" }, ms = { class: "single-file-name" }, ys = {
|
|
6737
6754
|
key: 0,
|
|
6738
6755
|
class: "single-file-size"
|
|
6739
|
-
},
|
|
6756
|
+
}, Ms = { class: "single-file-actions" }, Is = {
|
|
6740
6757
|
key: 1,
|
|
6741
6758
|
class: "file-filers"
|
|
6742
|
-
},
|
|
6759
|
+
}, hs = { class: "filer-content" }, As = ["title"], Ds = {
|
|
6743
6760
|
key: 0,
|
|
6744
6761
|
class: "filer-size"
|
|
6745
|
-
},
|
|
6762
|
+
}, Cs = ["accept", "multiple"], vs = {
|
|
6746
6763
|
key: 0,
|
|
6747
6764
|
class: "download-template"
|
|
6748
|
-
},
|
|
6765
|
+
}, Ns = ["onClick"], bs = { class: "download-template-name" }, js = {
|
|
6749
6766
|
key: 0,
|
|
6750
6767
|
class: "download-template-sep"
|
|
6751
|
-
},
|
|
6768
|
+
}, ws = {
|
|
6752
6769
|
key: 1,
|
|
6753
6770
|
class: "file-hint"
|
|
6754
6771
|
};
|
|
6755
|
-
function
|
|
6756
|
-
const a = h("q-icon"), i = h("j-c-tooltip-ellipsis"),
|
|
6757
|
-
return y(), w("div",
|
|
6772
|
+
function Ss(e, t, n, l, o, r) {
|
|
6773
|
+
const a = h("q-icon"), i = h("j-c-tooltip-ellipsis"), s = h("j-q-button"), c = h("q-btn"), u = h("q-field");
|
|
6774
|
+
return y(), w("div", cs, [
|
|
6758
6775
|
b(u, {
|
|
6759
6776
|
modelValue: e.computedValue,
|
|
6760
6777
|
"onUpdate:modelValue": t[7] || (t[7] = (d) => e.computedValue = d),
|
|
@@ -6779,36 +6796,36 @@ function Sr(e, t, n, l, o, s) {
|
|
|
6779
6796
|
name: "app:upload",
|
|
6780
6797
|
size: "24px"
|
|
6781
6798
|
}),
|
|
6782
|
-
C("p",
|
|
6783
|
-
C("p",
|
|
6799
|
+
C("p", ds, O(e.t("messages.jQFile.click_or_drag_file")), 1),
|
|
6800
|
+
C("p", ps, O(e.t("messages.jQFile.file_type_is", { type: e.accept.split(",").join(" ") })) + ", " + O(e.t("messages.jQFile.max_file_size", {
|
|
6784
6801
|
size: e.maxFileSize
|
|
6785
6802
|
})), 1)
|
|
6786
6803
|
], 34), [
|
|
6787
6804
|
[fe, e.computedValue.length !== Number(e.maxlength)]
|
|
6788
6805
|
]),
|
|
6789
6806
|
e.computedValue.length ? (y(), w(_, { key: 0 }, [
|
|
6790
|
-
e.computedMaxlength === 1 ? (y(), w("div",
|
|
6791
|
-
C("div",
|
|
6807
|
+
e.computedMaxlength === 1 ? (y(), w("div", fs, [
|
|
6808
|
+
C("div", gs, [
|
|
6792
6809
|
b(a, {
|
|
6793
6810
|
name: "app:success",
|
|
6794
6811
|
class: "q-mr-sm",
|
|
6795
6812
|
size: "20px"
|
|
6796
6813
|
}),
|
|
6797
|
-
C("span",
|
|
6814
|
+
C("span", ms, [
|
|
6798
6815
|
b(i, {
|
|
6799
6816
|
content: e.computedValue[0].name
|
|
6800
6817
|
}, null, 8, ["content"])
|
|
6801
6818
|
]),
|
|
6802
|
-
e.computedValue[0].size ? (y(), w("div",
|
|
6819
|
+
e.computedValue[0].size ? (y(), w("div", ys, "(" + O(e.getFileSizeDisplay(e.computedValue[0])) + ")", 1)) : E("", !0)
|
|
6803
6820
|
]),
|
|
6804
|
-
C("div",
|
|
6805
|
-
oe(b(
|
|
6821
|
+
C("div", Ms, [
|
|
6822
|
+
oe(b(s, {
|
|
6806
6823
|
type: "secondary",
|
|
6807
6824
|
size: "small"
|
|
6808
6825
|
}, null, 512), [
|
|
6809
6826
|
[fe, !1]
|
|
6810
6827
|
]),
|
|
6811
|
-
b(
|
|
6828
|
+
b(s, {
|
|
6812
6829
|
type: "secondary",
|
|
6813
6830
|
size: "small",
|
|
6814
6831
|
onClick: e.repickFile
|
|
@@ -6818,7 +6835,7 @@ function Sr(e, t, n, l, o, s) {
|
|
|
6818
6835
|
]),
|
|
6819
6836
|
_: 1
|
|
6820
6837
|
}, 8, ["onClick"]),
|
|
6821
|
-
b(
|
|
6838
|
+
b(s, {
|
|
6822
6839
|
type: "secondary",
|
|
6823
6840
|
size: "small",
|
|
6824
6841
|
onClick: t[5] || (t[5] = (d) => e.deleteFile(e.computedValue[0], 0))
|
|
@@ -6829,17 +6846,17 @@ function Sr(e, t, n, l, o, s) {
|
|
|
6829
6846
|
_: 1
|
|
6830
6847
|
})
|
|
6831
6848
|
])
|
|
6832
|
-
])) : e.computedMaxlength > 1 ? (y(), w("ul",
|
|
6849
|
+
])) : e.computedMaxlength > 1 ? (y(), w("ul", Is, [
|
|
6833
6850
|
(y(!0), w(_, null, ee(e.computedValue, (d, p) => (y(), w("li", {
|
|
6834
6851
|
key: p,
|
|
6835
6852
|
class: "filer-item"
|
|
6836
6853
|
}, [
|
|
6837
|
-
C("div",
|
|
6854
|
+
C("div", hs, [
|
|
6838
6855
|
C("div", {
|
|
6839
6856
|
class: "filer-name text-black",
|
|
6840
6857
|
title: d.name
|
|
6841
|
-
}, O(d.name), 9,
|
|
6842
|
-
d.size ? (y(), w("div",
|
|
6858
|
+
}, O(d.name), 9, As),
|
|
6859
|
+
d.size ? (y(), w("div", Ds, O(e.getFileSizeDisplay(d)), 1)) : E("", !0)
|
|
6843
6860
|
]),
|
|
6844
6861
|
b(c, {
|
|
6845
6862
|
class: "filer-remove",
|
|
@@ -6861,13 +6878,13 @@ function Sr(e, t, n, l, o, s) {
|
|
|
6861
6878
|
multiple: !e.computedMaxlength || 1 < e.computedMaxlength - e.computedValue.length,
|
|
6862
6879
|
type: "file",
|
|
6863
6880
|
onChange: t[6] || (t[6] = (...d) => e.inputFile && e.inputFile(...d))
|
|
6864
|
-
}, null, 40,
|
|
6881
|
+
}, null, 40, Cs), [
|
|
6865
6882
|
[fe, !1]
|
|
6866
6883
|
])
|
|
6867
6884
|
]),
|
|
6868
6885
|
_: 1
|
|
6869
6886
|
}, 8, ["modelValue", "disable", "rules"]),
|
|
6870
|
-
e.templateFiles.length ? (y(), w("div",
|
|
6887
|
+
e.templateFiles.length ? (y(), w("div", vs, [
|
|
6871
6888
|
(y(!0), w(_, null, ee(e.templateFiles, (d, p) => (y(), w("span", {
|
|
6872
6889
|
key: p,
|
|
6873
6890
|
class: "download-template-item",
|
|
@@ -6878,17 +6895,17 @@ function Sr(e, t, n, l, o, s) {
|
|
|
6878
6895
|
size: "16px",
|
|
6879
6896
|
class: "download-template-icon"
|
|
6880
6897
|
}),
|
|
6881
|
-
C("span",
|
|
6882
|
-
p < e.templateFiles.length - 1 ? (y(), w("span",
|
|
6883
|
-
], 8,
|
|
6898
|
+
C("span", bs, O(d.name), 1),
|
|
6899
|
+
p < e.templateFiles.length - 1 ? (y(), w("span", js, "|")) : E("", !0)
|
|
6900
|
+
], 8, Ns))), 128))
|
|
6884
6901
|
])) : E("", !0),
|
|
6885
|
-
e.hasSlotHint ? (y(), w("div",
|
|
6902
|
+
e.hasSlotHint ? (y(), w("div", ws, [
|
|
6886
6903
|
Y(e.$slots, "hint")
|
|
6887
6904
|
])) : E("", !0)
|
|
6888
6905
|
]);
|
|
6889
6906
|
}
|
|
6890
|
-
const wf = /* @__PURE__ */ Z(
|
|
6891
|
-
function
|
|
6907
|
+
const wf = /* @__PURE__ */ Z(us, [["render", Ss]]);
|
|
6908
|
+
function Ts(e, t) {
|
|
6892
6909
|
let n = null;
|
|
6893
6910
|
return ((...l) => {
|
|
6894
6911
|
n && clearTimeout(n), n = setTimeout(() => {
|
|
@@ -6896,7 +6913,7 @@ function Tr(e, t) {
|
|
|
6896
6913
|
}, t);
|
|
6897
6914
|
});
|
|
6898
6915
|
}
|
|
6899
|
-
const
|
|
6916
|
+
const zs = B({
|
|
6900
6917
|
name: "JQInputRecognize",
|
|
6901
6918
|
components: {
|
|
6902
6919
|
JQInput: ft
|
|
@@ -6976,13 +6993,13 @@ const zr = B({
|
|
|
6976
6993
|
"update:recognizedItems": (e) => !0
|
|
6977
6994
|
},
|
|
6978
6995
|
setup(e, { emit: t, expose: n }) {
|
|
6979
|
-
const { t: l } = X(), o = z(null),
|
|
6996
|
+
const { t: l } = X(), o = z(null), r = z(e.modelValue), a = z([]), i = (m) => {
|
|
6980
6997
|
if (!m || !m.trim())
|
|
6981
6998
|
return [];
|
|
6982
6999
|
const T = m.split(/[,,\s\n\r\t]+/).map((L) => L.trim()).filter((L) => L.length > 0);
|
|
6983
7000
|
return e.allowDuplicate ? T : Array.from(new Set(T));
|
|
6984
|
-
},
|
|
6985
|
-
const T =
|
|
7001
|
+
}, s = () => e.recognizeRules.length > 0 ? e.recognizeRules : e.rules, c = (m) => {
|
|
7002
|
+
const T = s();
|
|
6986
7003
|
if (T.length === 0)
|
|
6987
7004
|
return !0;
|
|
6988
7005
|
const L = [];
|
|
@@ -7002,7 +7019,7 @@ const zr = B({
|
|
|
7002
7019
|
L.length > $ ? a.value = L.slice(0, $) : a.value = L;
|
|
7003
7020
|
};
|
|
7004
7021
|
W(
|
|
7005
|
-
() =>
|
|
7022
|
+
() => r.value,
|
|
7006
7023
|
(m) => {
|
|
7007
7024
|
d(m), t("update:modelValue", m);
|
|
7008
7025
|
},
|
|
@@ -7010,10 +7027,10 @@ const zr = B({
|
|
|
7010
7027
|
), W(
|
|
7011
7028
|
() => e.modelValue,
|
|
7012
7029
|
(m) => {
|
|
7013
|
-
m !==
|
|
7030
|
+
m !== r.value && (r.value = m);
|
|
7014
7031
|
}
|
|
7015
7032
|
);
|
|
7016
|
-
const p =
|
|
7033
|
+
const p = Ts((m) => {
|
|
7017
7034
|
t("update:recognizedItems", m);
|
|
7018
7035
|
}, 300);
|
|
7019
7036
|
W(
|
|
@@ -7049,19 +7066,19 @@ const zr = B({
|
|
|
7049
7066
|
}), {
|
|
7050
7067
|
t: l,
|
|
7051
7068
|
inputRef: o,
|
|
7052
|
-
inputValue:
|
|
7069
|
+
inputValue: r,
|
|
7053
7070
|
recognizedItems: a,
|
|
7054
7071
|
computedInputRules: A,
|
|
7055
7072
|
handleChange: I
|
|
7056
7073
|
};
|
|
7057
7074
|
}
|
|
7058
|
-
}),
|
|
7075
|
+
}), ks = { class: "j-q-input-recognize" }, Ls = {
|
|
7059
7076
|
key: 0,
|
|
7060
7077
|
class: "recognized-section"
|
|
7061
|
-
}, $
|
|
7062
|
-
function
|
|
7078
|
+
}, $s = { class: "recognized-label" }, Os = { class: "recognized-items" };
|
|
7079
|
+
function Vs(e, t, n, l, o, r) {
|
|
7063
7080
|
const a = h("j-q-input");
|
|
7064
|
-
return y(), w("div",
|
|
7081
|
+
return y(), w("div", ks, [
|
|
7065
7082
|
b(a, {
|
|
7066
7083
|
ref: "inputRef",
|
|
7067
7084
|
modelValue: e.inputValue,
|
|
@@ -7075,18 +7092,18 @@ function Vr(e, t, n, l, o, s) {
|
|
|
7075
7092
|
maxlength: e.maxlength,
|
|
7076
7093
|
onChange: e.handleChange
|
|
7077
7094
|
}, null, 8, ["modelValue", "rules", "dense", "outlined", "disable", "readonly", "maxlength", "onChange"]),
|
|
7078
|
-
e.recognizedItems.length > 0 ? (y(), w("div",
|
|
7079
|
-
C("div", $
|
|
7080
|
-
C("div",
|
|
7081
|
-
(y(!0), w(_, null, ee(e.recognizedItems, (i,
|
|
7082
|
-
key:
|
|
7095
|
+
e.recognizedItems.length > 0 ? (y(), w("div", Ls, [
|
|
7096
|
+
C("div", $s, O(e.t("messages.inputRecognize.recognized")), 1),
|
|
7097
|
+
C("div", Os, [
|
|
7098
|
+
(y(!0), w(_, null, ee(e.recognizedItems, (i, s) => (y(), w("span", {
|
|
7099
|
+
key: s,
|
|
7083
7100
|
class: "my-label black"
|
|
7084
7101
|
}, O(i), 1))), 128))
|
|
7085
7102
|
])
|
|
7086
7103
|
])) : E("", !0)
|
|
7087
7104
|
]);
|
|
7088
7105
|
}
|
|
7089
|
-
const Sf = /* @__PURE__ */ Z(
|
|
7106
|
+
const Sf = /* @__PURE__ */ Z(zs, [["render", Vs], ["__scopeId", "data-v-16499563"]]), Es = B({
|
|
7090
7107
|
name: "JQNewValue",
|
|
7091
7108
|
components: {
|
|
7092
7109
|
QSelect: Qe,
|
|
@@ -7110,7 +7127,7 @@ const Sf = /* @__PURE__ */ Z(zr, [["render", Vr], ["__scopeId", "data-v-16499563
|
|
|
7110
7127
|
"update:modelValue": (e) => !0
|
|
7111
7128
|
},
|
|
7112
7129
|
setup(e, { emit: t, expose: n, slots: l }) {
|
|
7113
|
-
const o = z(e.modelValue ?? []),
|
|
7130
|
+
const o = z(e.modelValue ?? []), r = z(null), { t: a } = X(), i = z(""), s = v(() => Object.keys(l)), c = (j, A) => {
|
|
7114
7131
|
A(() => {
|
|
7115
7132
|
});
|
|
7116
7133
|
}, u = (j, A) => {
|
|
@@ -7118,16 +7135,16 @@ const Sf = /* @__PURE__ */ Z(zr, [["render", Vr], ["__scopeId", "data-v-16499563
|
|
|
7118
7135
|
const m = j.trim();
|
|
7119
7136
|
if (i.value = "", m.length > 0) {
|
|
7120
7137
|
if (e.maxlength > 0 && o.value && o.value.length >= e.maxlength) {
|
|
7121
|
-
i.value = a("messages.formRules.maxLengthExceeded", { max: e.maxlength }), (T =
|
|
7138
|
+
i.value = a("messages.formRules.maxLengthExceeded", { max: e.maxlength }), (T = r.value) == null || T.focus();
|
|
7122
7139
|
return;
|
|
7123
7140
|
}
|
|
7124
7141
|
if (!e.allowDuplicates && o.value && o.value.includes(m)) {
|
|
7125
|
-
i.value = a("messages.formRules.duplicateItemNotAllowed", { value: m }), (L =
|
|
7142
|
+
i.value = a("messages.formRules.duplicateItemNotAllowed", { value: m }), (L = r.value) == null || L.focus();
|
|
7126
7143
|
return;
|
|
7127
7144
|
}
|
|
7128
7145
|
let S = !0;
|
|
7129
7146
|
const { name: M, args: f } = ao(e.addRulesName);
|
|
7130
|
-
e.addRulesName && (S = io(M, m, f, a)), S === !0 && A(m, "add"), S !== !0 && (i.value = S, ($ =
|
|
7147
|
+
e.addRulesName && (S = io(M, m, f, a)), S === !0 && A(m, "add"), S !== !0 && (i.value = S, ($ = r.value) == null || $.focus());
|
|
7131
7148
|
}
|
|
7132
7149
|
};
|
|
7133
7150
|
W(
|
|
@@ -7140,7 +7157,7 @@ const Sf = /* @__PURE__ */ Z(zr, [["render", Vr], ["__scopeId", "data-v-16499563
|
|
|
7140
7157
|
() => o.value,
|
|
7141
7158
|
(j) => {
|
|
7142
7159
|
var A;
|
|
7143
|
-
t("update:modelValue", j), i.value = "", e.rules && e.rules.length > 0 && ((A =
|
|
7160
|
+
t("update:modelValue", j), i.value = "", e.rules && e.rules.length > 0 && ((A = r.value) == null || A.validate());
|
|
7144
7161
|
}
|
|
7145
7162
|
);
|
|
7146
7163
|
const d = (j) => {
|
|
@@ -7153,27 +7170,27 @@ const Sf = /* @__PURE__ */ Z(zr, [["render", Vr], ["__scopeId", "data-v-16499563
|
|
|
7153
7170
|
return n({
|
|
7154
7171
|
validate: () => {
|
|
7155
7172
|
var j;
|
|
7156
|
-
return ((j =
|
|
7173
|
+
return ((j = r.value) == null ? void 0 : j.validate()) ?? !1;
|
|
7157
7174
|
},
|
|
7158
7175
|
resetValidation: () => {
|
|
7159
7176
|
var j;
|
|
7160
|
-
return (j =
|
|
7177
|
+
return (j = r.value) == null ? void 0 : j.resetValidation();
|
|
7161
7178
|
}
|
|
7162
7179
|
}), {
|
|
7163
7180
|
t: a,
|
|
7164
7181
|
newValueErrorMessage: i,
|
|
7165
7182
|
innerModel: o,
|
|
7166
|
-
qSelectRef:
|
|
7183
|
+
qSelectRef: r,
|
|
7167
7184
|
filterFn: c,
|
|
7168
7185
|
handleNewValue: u,
|
|
7169
7186
|
handleUpdateModelValue: d,
|
|
7170
7187
|
handleBlur: I,
|
|
7171
7188
|
change: p,
|
|
7172
|
-
slotNames:
|
|
7189
|
+
slotNames: s
|
|
7173
7190
|
};
|
|
7174
7191
|
}
|
|
7175
|
-
}),
|
|
7176
|
-
function
|
|
7192
|
+
}), Ps = { class: "select-selected-item" };
|
|
7193
|
+
function Ys(e, t, n, l, o, r) {
|
|
7177
7194
|
const a = h("q-icon"), i = h("q-select");
|
|
7178
7195
|
return y(), V(i, {
|
|
7179
7196
|
class: "j-q-select-new-value",
|
|
@@ -7204,21 +7221,21 @@ function Yr(e, t, n, l, o, s) {
|
|
|
7204
7221
|
error: !!e.newValueErrorMessage,
|
|
7205
7222
|
"error-message": e.newValueErrorMessage
|
|
7206
7223
|
}, Ye({ _: 2 }, [
|
|
7207
|
-
ee(e.slotNames, (
|
|
7208
|
-
name:
|
|
7224
|
+
ee(e.slotNames, (s) => ({
|
|
7225
|
+
name: s,
|
|
7209
7226
|
fn: D((c) => [
|
|
7210
|
-
Y(e.$slots,
|
|
7227
|
+
Y(e.$slots, s, ve(Se(c)))
|
|
7211
7228
|
])
|
|
7212
7229
|
})),
|
|
7213
7230
|
e.useChips ? {
|
|
7214
7231
|
name: "selected-item",
|
|
7215
|
-
fn: D((
|
|
7216
|
-
C("span",
|
|
7217
|
-
C("span", null, O(
|
|
7232
|
+
fn: D((s) => [
|
|
7233
|
+
C("span", Ps, [
|
|
7234
|
+
C("span", null, O(s.opt), 1),
|
|
7218
7235
|
b(a, {
|
|
7219
7236
|
name: "close",
|
|
7220
7237
|
class: "cursor-pointer q-ml-xs",
|
|
7221
|
-
onClick: te((c) =>
|
|
7238
|
+
onClick: te((c) => s.removeAtIndex(s.index), ["stop"]),
|
|
7222
7239
|
color: "grey"
|
|
7223
7240
|
}, null, 8, ["onClick"])
|
|
7224
7241
|
])
|
|
@@ -7227,7 +7244,7 @@ function Yr(e, t, n, l, o, s) {
|
|
|
7227
7244
|
} : void 0
|
|
7228
7245
|
]), 1032, ["model-value", "onUpdate:modelValue", "label", "dense", "disable", "readonly", "rules", "options", "placeholder", "onChange", "onFilter", "onNewValue", "onBlur", "use-chips", "error", "error-message"]);
|
|
7229
7246
|
}
|
|
7230
|
-
const Tf = /* @__PURE__ */ Z(
|
|
7247
|
+
const Tf = /* @__PURE__ */ Z(Es, [["render", Ys]]), Qs = B({
|
|
7231
7248
|
name: "JQOptionGroup",
|
|
7232
7249
|
components: {
|
|
7233
7250
|
QField: Ne,
|
|
@@ -7299,9 +7316,9 @@ const Tf = /* @__PURE__ */ Z(Er, [["render", Yr]]), Qr = B({
|
|
|
7299
7316
|
};
|
|
7300
7317
|
}
|
|
7301
7318
|
});
|
|
7302
|
-
function
|
|
7319
|
+
function qs(e, t, n, l, o, r) {
|
|
7303
7320
|
var u;
|
|
7304
|
-
const a = h("q-icon"), i = h("j-c-tooltip"),
|
|
7321
|
+
const a = h("q-icon"), i = h("j-c-tooltip"), s = h("q-option-group"), c = h("q-field");
|
|
7305
7322
|
return y(), V(c, {
|
|
7306
7323
|
class: q(["j-q-option-group no-border-field", [{ "inline-block": e.inline, "q-mb-xs": !((u = e.rules) != null && u.length) }, e.filedClass]]),
|
|
7307
7324
|
label: e.label,
|
|
@@ -7316,7 +7333,7 @@ function qr(e, t, n, l, o, s) {
|
|
|
7316
7333
|
"onUpdate:modelValue": t[1] || (t[1] = (d) => e.innerModel = d)
|
|
7317
7334
|
}, {
|
|
7318
7335
|
control: D(() => [
|
|
7319
|
-
b(
|
|
7336
|
+
b(s, {
|
|
7320
7337
|
modelValue: e.innerModel,
|
|
7321
7338
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => e.innerModel = d),
|
|
7322
7339
|
class: q(e.computedInlineSpanClass),
|
|
@@ -7352,7 +7369,7 @@ function qr(e, t, n, l, o, s) {
|
|
|
7352
7369
|
_: 1
|
|
7353
7370
|
}, 8, ["label", "disable", "rules", "outlined", "dense", "modelValue", "class"]);
|
|
7354
7371
|
}
|
|
7355
|
-
const zf = /* @__PURE__ */ Z(
|
|
7372
|
+
const zf = /* @__PURE__ */ Z(Qs, [["render", qs], ["__scopeId", "data-v-f0ca5e31"]]), Rs = B({
|
|
7356
7373
|
name: "JQPopover",
|
|
7357
7374
|
components: {
|
|
7358
7375
|
QPopupProxy: he,
|
|
@@ -7383,31 +7400,31 @@ const zf = /* @__PURE__ */ Z(Qr, [["render", qr], ["__scopeId", "data-v-f0ca5e31
|
|
|
7383
7400
|
};
|
|
7384
7401
|
}), o = () => {
|
|
7385
7402
|
e.trigger === "click" && t.value && t.value.toggle();
|
|
7386
|
-
},
|
|
7403
|
+
}, r = () => {
|
|
7387
7404
|
e.trigger === "hover" && t.value && t.value.show();
|
|
7388
7405
|
}, a = () => {
|
|
7389
7406
|
e.trigger === "hover" && t.value && t.value.hide();
|
|
7390
7407
|
};
|
|
7391
7408
|
return ze(() => {
|
|
7392
|
-
var
|
|
7393
|
-
const i = ((
|
|
7394
|
-
i && (e.trigger === "click" ? i.addEventListener("click", o) : e.trigger === "hover" && (i.addEventListener("mouseenter",
|
|
7409
|
+
var s;
|
|
7410
|
+
const i = ((s = n.value) == null ? void 0 : s.$el) || document.querySelector(".inline-block");
|
|
7411
|
+
i && (e.trigger === "click" ? i.addEventListener("click", o) : e.trigger === "hover" && (i.addEventListener("mouseenter", r), i.addEventListener("mouseleave", a)));
|
|
7395
7412
|
}), dn(() => {
|
|
7396
|
-
var
|
|
7397
|
-
const i = ((
|
|
7398
|
-
i && (e.trigger === "click" ? i.removeEventListener("click", o) : e.trigger === "hover" && (i.removeEventListener("mouseenter",
|
|
7413
|
+
var s;
|
|
7414
|
+
const i = ((s = n.value) == null ? void 0 : s.$el) || document.querySelector(".inline-block");
|
|
7415
|
+
i && (e.trigger === "click" ? i.removeEventListener("click", o) : e.trigger === "hover" && (i.removeEventListener("mouseenter", r), i.removeEventListener("mouseleave", a)));
|
|
7399
7416
|
}), {
|
|
7400
7417
|
popupRef: t,
|
|
7401
7418
|
rootRef: n,
|
|
7402
7419
|
popoverStyle: l
|
|
7403
7420
|
};
|
|
7404
7421
|
}
|
|
7405
|
-
}),
|
|
7406
|
-
function
|
|
7407
|
-
const a = h("q-card-section"), i = h("q-card"),
|
|
7408
|
-
return y(), w("div",
|
|
7422
|
+
}), Us = { class: "inline-block" }, Bs = { class: "text-body2 text-grey" };
|
|
7423
|
+
function Zs(e, t, n, l, o, r) {
|
|
7424
|
+
const a = h("q-card-section"), i = h("q-card"), s = h("q-popup-proxy");
|
|
7425
|
+
return y(), w("div", Us, [
|
|
7409
7426
|
Y(e.$slots, "default", {}, void 0, !0),
|
|
7410
|
-
b(
|
|
7427
|
+
b(s, {
|
|
7411
7428
|
ref: "popupRef",
|
|
7412
7429
|
offset: [12, 12]
|
|
7413
7430
|
}, {
|
|
@@ -7421,7 +7438,7 @@ function Zr(e, t, n, l, o, s) {
|
|
|
7421
7438
|
b(a, { class: "q-pa-sm" }, {
|
|
7422
7439
|
default: D(() => [
|
|
7423
7440
|
Y(e.$slots, "content", {}, () => [
|
|
7424
|
-
C("span",
|
|
7441
|
+
C("span", Bs, O(e.title), 1)
|
|
7425
7442
|
], !0)
|
|
7426
7443
|
]),
|
|
7427
7444
|
_: 3
|
|
@@ -7434,7 +7451,7 @@ function Zr(e, t, n, l, o, s) {
|
|
|
7434
7451
|
}, 512)
|
|
7435
7452
|
]);
|
|
7436
7453
|
}
|
|
7437
|
-
const kf = /* @__PURE__ */ Z(
|
|
7454
|
+
const kf = /* @__PURE__ */ Z(Rs, [["render", Zs], ["__scopeId", "data-v-8de7d551"]]), Ws = B({
|
|
7438
7455
|
name: "jQSearchForm",
|
|
7439
7456
|
components: {
|
|
7440
7457
|
JQButton: qe
|
|
@@ -7453,19 +7470,19 @@ const kf = /* @__PURE__ */ Z(Rr, [["render", Zr], ["__scopeId", "data-v-8de7d551
|
|
|
7453
7470
|
},
|
|
7454
7471
|
slots: Object,
|
|
7455
7472
|
setup(e, { emit: t, expose: n }) {
|
|
7456
|
-
const { t: l } = X(), o = z(null),
|
|
7473
|
+
const { t: l } = X(), o = z(null), r = z({});
|
|
7457
7474
|
W(
|
|
7458
7475
|
() => e.modelValue,
|
|
7459
|
-
(
|
|
7460
|
-
Object.keys(
|
|
7476
|
+
(s) => {
|
|
7477
|
+
Object.keys(r.value).length === 0 && (r.value = JSON.parse(JSON.stringify(s)));
|
|
7461
7478
|
},
|
|
7462
7479
|
{ deep: !0, immediate: !0 }
|
|
7463
7480
|
);
|
|
7464
7481
|
const a = () => {
|
|
7465
7482
|
t("query");
|
|
7466
7483
|
}, i = () => {
|
|
7467
|
-
const
|
|
7468
|
-
t("update:modelValue",
|
|
7484
|
+
const s = JSON.parse(JSON.stringify(r.value));
|
|
7485
|
+
t("update:modelValue", s), t("reset");
|
|
7469
7486
|
};
|
|
7470
7487
|
return n({ searchFormRef: o }), {
|
|
7471
7488
|
t: l,
|
|
@@ -7474,22 +7491,22 @@ const kf = /* @__PURE__ */ Z(Rr, [["render", Zr], ["__scopeId", "data-v-8de7d551
|
|
|
7474
7491
|
handleClickReset: i
|
|
7475
7492
|
};
|
|
7476
7493
|
}
|
|
7477
|
-
}),
|
|
7494
|
+
}), Fs = {
|
|
7478
7495
|
ref: "searchFormRef",
|
|
7479
7496
|
class: "j-q-search-bar"
|
|
7480
|
-
},
|
|
7497
|
+
}, Hs = { class: "search-bar-container" }, Js = { class: "search--bar-items-wrapper" }, Gs = { class: "search--bar-items" }, _s = {
|
|
7481
7498
|
key: 0,
|
|
7482
7499
|
class: "default-operation-buttons"
|
|
7483
|
-
},
|
|
7484
|
-
function
|
|
7500
|
+
}, Ks = { class: "search-bar-extra-operation" };
|
|
7501
|
+
function xs(e, t, n, l, o, r) {
|
|
7485
7502
|
const a = h("j-q-button");
|
|
7486
7503
|
return y(), w("div", null, [
|
|
7487
|
-
C("div",
|
|
7488
|
-
C("div",
|
|
7489
|
-
C("div",
|
|
7490
|
-
C("div",
|
|
7504
|
+
C("div", Fs, [
|
|
7505
|
+
C("div", Hs, [
|
|
7506
|
+
C("div", Js, [
|
|
7507
|
+
C("div", Gs, [
|
|
7491
7508
|
Y(e.$slots, "default"),
|
|
7492
|
-
e.operationVisible ? (y(), w("div",
|
|
7509
|
+
e.operationVisible ? (y(), w("div", _s, [
|
|
7493
7510
|
b(a, {
|
|
7494
7511
|
loading: e.queryLoading,
|
|
7495
7512
|
onClick: e.handleClickQuery
|
|
@@ -7512,7 +7529,7 @@ function xr(e, t, n, l, o, s) {
|
|
|
7512
7529
|
_: 1
|
|
7513
7530
|
}, 8, ["loading", "onClick"])) : E("", !0)
|
|
7514
7531
|
])) : E("", !0),
|
|
7515
|
-
C("div",
|
|
7532
|
+
C("div", Ks, [
|
|
7516
7533
|
Y(e.$slots, "extra-operation")
|
|
7517
7534
|
])
|
|
7518
7535
|
])
|
|
@@ -7521,19 +7538,19 @@ function xr(e, t, n, l, o, s) {
|
|
|
7521
7538
|
], 512)
|
|
7522
7539
|
]);
|
|
7523
7540
|
}
|
|
7524
|
-
const Lf = /* @__PURE__ */ Z(
|
|
7525
|
-
function
|
|
7541
|
+
const Lf = /* @__PURE__ */ Z(Ws, [["render", xs]]), _t = 15, En = [10, 15, 20, 30, 50];
|
|
7542
|
+
function Xs(e) {
|
|
7526
7543
|
const t = _t, n = Te({
|
|
7527
7544
|
page: 1,
|
|
7528
7545
|
rowsPerPage: t,
|
|
7529
7546
|
rowsNumber: 0
|
|
7530
7547
|
});
|
|
7531
|
-
return { paginationInfo: n, getPaginationParam: () => n, getNum: () => n.page, setNum: (
|
|
7532
|
-
n.page =
|
|
7533
|
-
}, setSize: (
|
|
7534
|
-
n.rowsPerPage =
|
|
7535
|
-
}, setTotal: (
|
|
7536
|
-
n.rowsNumber =
|
|
7548
|
+
return { paginationInfo: n, getPaginationParam: () => n, getNum: () => n.page, setNum: (s) => {
|
|
7549
|
+
n.page = s ?? 1;
|
|
7550
|
+
}, setSize: (s) => {
|
|
7551
|
+
n.rowsPerPage = s ?? t;
|
|
7552
|
+
}, setTotal: (s) => {
|
|
7553
|
+
n.rowsNumber = s ?? 0;
|
|
7537
7554
|
} };
|
|
7538
7555
|
}
|
|
7539
7556
|
const eu = B({
|
|
@@ -7562,11 +7579,11 @@ const eu = B({
|
|
|
7562
7579
|
totalPage: 0,
|
|
7563
7580
|
// 初始化为 0,等计算
|
|
7564
7581
|
currentPage: ""
|
|
7565
|
-
}), o = En,
|
|
7582
|
+
}), o = En, r = v(() => {
|
|
7566
7583
|
const { rowsNumber: d, rowsPerPage: p } = l, I = Math.ceil(d / p);
|
|
7567
7584
|
return I < 1 ? 1 : I;
|
|
7568
7585
|
}), a = v(() => `${l.page} / ${l.totalPage}`), i = v(() => {
|
|
7569
|
-
const d =
|
|
7586
|
+
const d = r.value.toString();
|
|
7570
7587
|
return Array(d.length).fill("#").join("");
|
|
7571
7588
|
});
|
|
7572
7589
|
W(
|
|
@@ -7576,13 +7593,13 @@ const eu = B({
|
|
|
7576
7593
|
},
|
|
7577
7594
|
{ deep: !0, immediate: !0 }
|
|
7578
7595
|
), W(
|
|
7579
|
-
|
|
7596
|
+
r,
|
|
7580
7597
|
(d) => {
|
|
7581
7598
|
l.totalPage = d;
|
|
7582
7599
|
},
|
|
7583
7600
|
{ immediate: !0 }
|
|
7584
7601
|
);
|
|
7585
|
-
const
|
|
7602
|
+
const s = () => {
|
|
7586
7603
|
const d = {
|
|
7587
7604
|
page: l.page,
|
|
7588
7605
|
rowsPerPage: l.rowsPerPage,
|
|
@@ -7590,13 +7607,13 @@ const eu = B({
|
|
|
7590
7607
|
};
|
|
7591
7608
|
t("pagination", d);
|
|
7592
7609
|
}, c = () => {
|
|
7593
|
-
l.page = 1,
|
|
7610
|
+
l.page = 1, s();
|
|
7594
7611
|
}, u = () => {
|
|
7595
7612
|
if (l.currentPage) {
|
|
7596
7613
|
let d = Number(l.currentPage);
|
|
7597
|
-
isNaN(d) || d < 1 ? d = 1 : d >
|
|
7614
|
+
isNaN(d) || d < 1 ? d = 1 : d > r.value && (d = r.value), l.page = d, l.currentPage = "";
|
|
7598
7615
|
}
|
|
7599
|
-
l.page < 1 && (l.page = 1), l.page >
|
|
7616
|
+
l.page < 1 && (l.page = 1), l.page > r.value && (l.page = r.value), s();
|
|
7600
7617
|
};
|
|
7601
7618
|
return {
|
|
7602
7619
|
t: n,
|
|
@@ -7604,7 +7621,7 @@ const eu = B({
|
|
|
7604
7621
|
rowNumbersArr: o,
|
|
7605
7622
|
currentPagePlaceholder: a,
|
|
7606
7623
|
currentPageMask: i,
|
|
7607
|
-
maxPage:
|
|
7624
|
+
maxPage: r,
|
|
7608
7625
|
handleRowsPerPageChange: c,
|
|
7609
7626
|
handlePageChange: u,
|
|
7610
7627
|
paginationInput: u,
|
|
@@ -7612,8 +7629,8 @@ const eu = B({
|
|
|
7612
7629
|
};
|
|
7613
7630
|
}
|
|
7614
7631
|
}), tu = { class: "row items-center justify-end" }, nu = { style: { "margin-top": "4px" } }, lu = { style: { "margin-top": "4px", "margin-right": "24px" } }, ou = { style: { "margin-left": "24px" } };
|
|
7615
|
-
function au(e, t, n, l, o,
|
|
7616
|
-
const a = h("q-select"), i = h("q-pagination"),
|
|
7632
|
+
function au(e, t, n, l, o, r) {
|
|
7633
|
+
const a = h("q-select"), i = h("q-pagination"), s = h("q-input");
|
|
7617
7634
|
return y(), w("div", null, [
|
|
7618
7635
|
C("div", tu, [
|
|
7619
7636
|
C("div", nu, [
|
|
@@ -7656,7 +7673,7 @@ function au(e, t, n, l, o, s) {
|
|
|
7656
7673
|
ripple: !1
|
|
7657
7674
|
}, null, 8, ["modelValue", "max", "onUpdate:modelValue"]),
|
|
7658
7675
|
C("p", ou, O(e.t("messages.pagination.goto")), 1),
|
|
7659
|
-
b(
|
|
7676
|
+
b(s, {
|
|
7660
7677
|
autofocus: !1,
|
|
7661
7678
|
modelValue: e.internalInfo.currentPage,
|
|
7662
7679
|
"onUpdate:modelValue": t[2] || (t[2] = (c) => e.internalInfo.currentPage = c),
|
|
@@ -7674,7 +7691,7 @@ function au(e, t, n, l, o, s) {
|
|
|
7674
7691
|
])
|
|
7675
7692
|
]);
|
|
7676
7693
|
}
|
|
7677
|
-
const iu = /* @__PURE__ */ Z(eu, [["render", au]]),
|
|
7694
|
+
const iu = /* @__PURE__ */ Z(eu, [["render", au]]), ru = B({
|
|
7678
7695
|
name: "JQTableComponent",
|
|
7679
7696
|
components: {
|
|
7680
7697
|
Pagination: iu,
|
|
@@ -7706,7 +7723,7 @@ const iu = /* @__PURE__ */ Z(eu, [["render", au]]), su = B({
|
|
|
7706
7723
|
},
|
|
7707
7724
|
slots: Object,
|
|
7708
7725
|
setup(e, { emit: t, expose: n, slots: l }) {
|
|
7709
|
-
const { t: o } = X(),
|
|
7726
|
+
const { t: o } = X(), r = z(null), a = z([]), i = z(/* @__PURE__ */ new Map()), s = z(/* @__PURE__ */ new Map()), c = (P) => Reflect.has(l, P), u = v({
|
|
7710
7727
|
get() {
|
|
7711
7728
|
return e.selected ?? a.value;
|
|
7712
7729
|
},
|
|
@@ -7728,7 +7745,7 @@ const iu = /* @__PURE__ */ Z(eu, [["render", au]]), su = B({
|
|
|
7728
7745
|
}), m = v(() => {
|
|
7729
7746
|
var P;
|
|
7730
7747
|
return ((P = e.columns) == null ? void 0 : P.filter(({ limitWidth: U, whiteSpace: ue, onClick: Ze, name: ht }) => U && !ue && !Ze && !Reflect.has(l, `body-cell-${ht}`))) || [];
|
|
7731
|
-
}), { paginationInfo: T, getPaginationParam: L, getNum: $, setNum: S, setTotal: M, setSize: f } =
|
|
7748
|
+
}), { paginationInfo: T, getPaginationParam: L, getNum: $, setNum: S, setTotal: M, setSize: f } = Xs(), g = v(() => ({
|
|
7732
7749
|
rowsPerPage: 0
|
|
7733
7750
|
})), N = () => {
|
|
7734
7751
|
t("changeNum", T), e.autoScrollOnChangePage && F();
|
|
@@ -7738,7 +7755,7 @@ const iu = /* @__PURE__ */ Z(eu, [["render", au]]), su = B({
|
|
|
7738
7755
|
t("paginationChange", P), e.autoScrollOnChangePage && F();
|
|
7739
7756
|
}, F = () => {
|
|
7740
7757
|
var U;
|
|
7741
|
-
const P = (U =
|
|
7758
|
+
const P = (U = r.value) == null ? void 0 : U.$el;
|
|
7742
7759
|
P == null || P.scrollIntoView({ behavior: "smooth" });
|
|
7743
7760
|
}, ie = (P, U) => {
|
|
7744
7761
|
if (P.format && typeof P.format == "function") {
|
|
@@ -7774,19 +7791,19 @@ const iu = /* @__PURE__ */ Z(eu, [["render", au]]), su = B({
|
|
|
7774
7791
|
}
|
|
7775
7792
|
return {};
|
|
7776
7793
|
}, yt = (P) => P.whiteSpace ? `cell-ellipsis cell-ellipsis--${Math.min(Math.max(1, Number(P.whiteSpace) || 1), 3)}` : "", Mt = (P, U) => {
|
|
7777
|
-
P && (i.value.set(U, P),
|
|
7794
|
+
P && (i.value.set(U, P), se(() => {
|
|
7778
7795
|
ot(U);
|
|
7779
7796
|
}));
|
|
7780
7797
|
}, ot = (P) => {
|
|
7781
7798
|
const U = i.value.get(P);
|
|
7782
7799
|
if (!U) {
|
|
7783
|
-
|
|
7800
|
+
s.value.set(P, !1);
|
|
7784
7801
|
return;
|
|
7785
7802
|
}
|
|
7786
7803
|
const ue = U.scrollWidth > U.clientWidth || U.scrollHeight > U.clientHeight;
|
|
7787
|
-
|
|
7788
|
-
}, It = (P) =>
|
|
7789
|
-
|
|
7804
|
+
s.value.set(P, ue);
|
|
7805
|
+
}, It = (P) => s.value.get(P) || !1, Be = () => {
|
|
7806
|
+
se(() => {
|
|
7790
7807
|
i.value.forEach((P, U) => {
|
|
7791
7808
|
ot(U);
|
|
7792
7809
|
});
|
|
@@ -7795,7 +7812,7 @@ const iu = /* @__PURE__ */ Z(eu, [["render", au]]), su = B({
|
|
|
7795
7812
|
return W(
|
|
7796
7813
|
() => e.rows,
|
|
7797
7814
|
() => {
|
|
7798
|
-
i.value.clear(),
|
|
7815
|
+
i.value.clear(), s.value.clear(), Be();
|
|
7799
7816
|
},
|
|
7800
7817
|
{ deep: !0 }
|
|
7801
7818
|
), W(
|
|
@@ -7804,7 +7821,7 @@ const iu = /* @__PURE__ */ Z(eu, [["render", au]]), su = B({
|
|
|
7804
7821
|
U && !P && Be();
|
|
7805
7822
|
}
|
|
7806
7823
|
), n({
|
|
7807
|
-
JQTableRef:
|
|
7824
|
+
JQTableRef: r,
|
|
7808
7825
|
paginationInfo: T,
|
|
7809
7826
|
getPaginationParam: L,
|
|
7810
7827
|
getNum: $,
|
|
@@ -7816,7 +7833,7 @@ const iu = /* @__PURE__ */ Z(eu, [["render", au]]), su = B({
|
|
|
7816
7833
|
DEFAULT_ROWS_PER_PAGE: _t
|
|
7817
7834
|
}), {
|
|
7818
7835
|
t: o,
|
|
7819
|
-
JQTableRef:
|
|
7836
|
+
JQTableRef: r,
|
|
7820
7837
|
computedSelected: u,
|
|
7821
7838
|
hasSlot: c,
|
|
7822
7839
|
computedTableHeaderClass: d,
|
|
@@ -7845,9 +7862,9 @@ const iu = /* @__PURE__ */ Z(eu, [["render", au]]), su = B({
|
|
|
7845
7862
|
shouldShowTooltip: It
|
|
7846
7863
|
};
|
|
7847
7864
|
}
|
|
7848
|
-
}),
|
|
7849
|
-
function uu(e, t, n, l, o,
|
|
7850
|
-
const a = h("q-th"), i = h("q-td"),
|
|
7865
|
+
}), su = ["onClick"];
|
|
7866
|
+
function uu(e, t, n, l, o, r) {
|
|
7867
|
+
const a = h("q-th"), i = h("q-td"), s = h("j-c-tooltip"), c = h("q-inner-loading"), u = h("q-table"), d = h("Pagination");
|
|
7851
7868
|
return y(), w("div", {
|
|
7852
7869
|
class: "j-q-table-container",
|
|
7853
7870
|
style: G({
|
|
@@ -7964,7 +7981,7 @@ function uu(e, t, n, l, o, s) {
|
|
|
7964
7981
|
style: G(e.getCellStyle(p))
|
|
7965
7982
|
}, {
|
|
7966
7983
|
default: D(() => [
|
|
7967
|
-
b(
|
|
7984
|
+
b(s, {
|
|
7968
7985
|
content: e.formatColumnValue(p, I.value),
|
|
7969
7986
|
style: G(e.getCellStyle(p)),
|
|
7970
7987
|
disabled: !e.shouldShowTooltip(`${p.name}-${I.row[e.rowKey]}`),
|
|
@@ -7991,7 +8008,7 @@ function uu(e, t, n, l, o, s) {
|
|
|
7991
8008
|
style: G(e.getCellStyle(p))
|
|
7992
8009
|
}, {
|
|
7993
8010
|
default: D(() => [
|
|
7994
|
-
e.isClickable(p, I.value, I.row) ? (y(), V(
|
|
8011
|
+
e.isClickable(p, I.value, I.row) ? (y(), V(s, {
|
|
7995
8012
|
key: 0,
|
|
7996
8013
|
content: e.formatColumnValue(p, I.value),
|
|
7997
8014
|
style: G(e.getCellStyle(p)),
|
|
@@ -8003,10 +8020,10 @@ function uu(e, t, n, l, o, s) {
|
|
|
8003
8020
|
class: q(["link-type", e.getCellClass(p)]),
|
|
8004
8021
|
ref: p.whiteSpace ? (j) => e.setEllipsisRef(j, `${p.name}-${I.row[e.rowKey]}`) : void 0,
|
|
8005
8022
|
onClick: (j) => e.handleColumnClick(p, I.row)
|
|
8006
|
-
}, O(e.formatColumnValue(p, I.value)), 11,
|
|
8023
|
+
}, O(e.formatColumnValue(p, I.value)), 11, su)
|
|
8007
8024
|
]),
|
|
8008
8025
|
_: 2
|
|
8009
|
-
}, 1032, ["content", "style", "disabled"])) : (y(), V(
|
|
8026
|
+
}, 1032, ["content", "style", "disabled"])) : (y(), V(s, {
|
|
8010
8027
|
key: 1,
|
|
8011
8028
|
content: e.formatColumnValue(p, I.value),
|
|
8012
8029
|
style: G(e.getCellStyle(p)),
|
|
@@ -8036,7 +8053,7 @@ function uu(e, t, n, l, o, s) {
|
|
|
8036
8053
|
Y(e.$slots, "append")
|
|
8037
8054
|
], 4);
|
|
8038
8055
|
}
|
|
8039
|
-
const $f = /* @__PURE__ */ Z(
|
|
8056
|
+
const $f = /* @__PURE__ */ Z(ru, [["render", uu]]), cu = B({
|
|
8040
8057
|
name: "dialogConfirmComponent",
|
|
8041
8058
|
components: {
|
|
8042
8059
|
QDialog: fn,
|
|
@@ -8058,20 +8075,20 @@ const $f = /* @__PURE__ */ Z(su, [["render", uu]]), cu = B({
|
|
|
8058
8075
|
showClose: { type: Boolean, default: !0 }
|
|
8059
8076
|
},
|
|
8060
8077
|
setup(e) {
|
|
8061
|
-
const { t } = X(), { dialogRef: n, onDialogHide: l, onDialogOK: o, onDialogCancel:
|
|
8078
|
+
const { t } = X(), { dialogRef: n, onDialogHide: l, onDialogOK: o, onDialogCancel: r } = on(), a = v(() => e.confirmButtonText || t("action.confirm")), i = v(() => e.cancelButtonText || t("action.cancel")), s = v(() => e.color || (e.isDelete ? "negative" : "primary")), c = v(() => typeof e.icon == "string");
|
|
8062
8079
|
return {
|
|
8063
8080
|
dialogRef: n,
|
|
8064
8081
|
onDialogHide: l,
|
|
8065
8082
|
onOKClick() {
|
|
8066
8083
|
o();
|
|
8067
8084
|
},
|
|
8068
|
-
onCancelClick:
|
|
8085
|
+
onCancelClick: r,
|
|
8069
8086
|
computedCancelText: i,
|
|
8070
8087
|
computedConfirmText: a,
|
|
8071
|
-
computedButtonColor:
|
|
8088
|
+
computedButtonColor: s,
|
|
8072
8089
|
isIconString: c,
|
|
8073
8090
|
onCloseClick: () => {
|
|
8074
|
-
|
|
8091
|
+
r();
|
|
8075
8092
|
}
|
|
8076
8093
|
};
|
|
8077
8094
|
}
|
|
@@ -8079,8 +8096,8 @@ const $f = /* @__PURE__ */ Z(su, [["render", uu]]), cu = B({
|
|
|
8079
8096
|
key: 2,
|
|
8080
8097
|
class: "close"
|
|
8081
8098
|
};
|
|
8082
|
-
function fu(e, t, n, l, o,
|
|
8083
|
-
const a = h("q-icon"), i = h("q-card-section"),
|
|
8099
|
+
function fu(e, t, n, l, o, r) {
|
|
8100
|
+
const a = h("q-icon"), i = h("q-card-section"), s = h("j-q-button"), c = h("q-card"), u = h("q-dialog");
|
|
8084
8101
|
return y(), V(u, {
|
|
8085
8102
|
ref: "dialogRef",
|
|
8086
8103
|
onHide: e.onDialogHide,
|
|
@@ -8127,14 +8144,14 @@ function fu(e, t, n, l, o, s) {
|
|
|
8127
8144
|
}, null, 8, ["innerHTML"]),
|
|
8128
8145
|
b(i, { class: "row q-gutter-sm justify-end footer-section" }, {
|
|
8129
8146
|
default: D(() => [
|
|
8130
|
-
e.cancel ? (y(), V(
|
|
8147
|
+
e.cancel ? (y(), V(s, {
|
|
8131
8148
|
key: 0,
|
|
8132
8149
|
label: e.computedCancelText,
|
|
8133
8150
|
onClick: e.onCancelClick,
|
|
8134
8151
|
type: "secondary",
|
|
8135
8152
|
style: { "min-width": "80px" }
|
|
8136
8153
|
}, null, 8, ["label", "onClick"])) : E("", !0),
|
|
8137
|
-
b(
|
|
8154
|
+
b(s, {
|
|
8138
8155
|
color: e.computedButtonColor,
|
|
8139
8156
|
label: e.computedConfirmText,
|
|
8140
8157
|
onClick: e.onOKClick,
|
|
@@ -8163,7 +8180,7 @@ class mu {
|
|
|
8163
8180
|
/**
|
|
8164
8181
|
* 弹出自定义确认对话框,返回一个 Promise,resolve(true) 表示确定,resolve(false) 表示取消/关闭。
|
|
8165
8182
|
*/
|
|
8166
|
-
async show({ title: t, color: n, content: l, confirmButtonText: o, cancelButtonText:
|
|
8183
|
+
async show({ title: t, color: n, content: l, confirmButtonText: o, cancelButtonText: r, showCancelButton: a, isDelete: i, icon: s, showClose: c }) {
|
|
8167
8184
|
return Ge != null && Ge.dialog ? new Promise((u) => {
|
|
8168
8185
|
Ge.dialog({
|
|
8169
8186
|
component: gu,
|
|
@@ -8173,10 +8190,10 @@ class mu {
|
|
|
8173
8190
|
color: n,
|
|
8174
8191
|
content: l,
|
|
8175
8192
|
confirmButtonText: o,
|
|
8176
|
-
cancelButtonText:
|
|
8193
|
+
cancelButtonText: r,
|
|
8177
8194
|
cancel: a === void 0 ? !0 : a,
|
|
8178
8195
|
isDelete: i,
|
|
8179
|
-
icon:
|
|
8196
|
+
icon: s,
|
|
8180
8197
|
showClose: c
|
|
8181
8198
|
}
|
|
8182
8199
|
}).onOk(() => {
|
|
@@ -8227,7 +8244,7 @@ const yu = new mu(), Mu = 15, Iu = [10, 15, 20, 30, 50], hu = B({
|
|
|
8227
8244
|
}), o = v(() => {
|
|
8228
8245
|
const { total: d, pageSize: p } = l, I = Math.ceil(d / p);
|
|
8229
8246
|
return I < 1 ? 1 : I;
|
|
8230
|
-
}),
|
|
8247
|
+
}), r = v(() => `${l.currentPage} / ${o.value}`), a = v(() => {
|
|
8231
8248
|
const d = o.value.toString();
|
|
8232
8249
|
return Array(d.length).fill("#").join("");
|
|
8233
8250
|
});
|
|
@@ -8259,7 +8276,7 @@ const yu = new mu(), Mu = 15, Iu = [10, 15, 20, 30, 50], hu = B({
|
|
|
8259
8276
|
t: n,
|
|
8260
8277
|
internalInfo: l,
|
|
8261
8278
|
totalPages: o,
|
|
8262
|
-
pagePlaceholder:
|
|
8279
|
+
pagePlaceholder: r,
|
|
8263
8280
|
pageMask: a,
|
|
8264
8281
|
handlePageSizeChange: () => {
|
|
8265
8282
|
l.currentPage = 1, i();
|
|
@@ -8276,8 +8293,8 @@ const yu = new mu(), Mu = 15, Iu = [10, 15, 20, 30, 50], hu = B({
|
|
|
8276
8293
|
};
|
|
8277
8294
|
}
|
|
8278
8295
|
}), Au = { class: "j-q-pagination" }, Du = { class: "row items-center justify-end" }, Cu = { class: "pagination-total" }, vu = { class: "pagination-suffix" }, Nu = { class: "pagination-goto-text" };
|
|
8279
|
-
function bu(e, t, n, l, o,
|
|
8280
|
-
const a = h("q-select"), i = h("q-pagination"),
|
|
8296
|
+
function bu(e, t, n, l, o, r) {
|
|
8297
|
+
const a = h("q-select"), i = h("q-pagination"), s = h("q-input");
|
|
8281
8298
|
return y(), w("div", Au, [
|
|
8282
8299
|
C("div", Du, [
|
|
8283
8300
|
C("div", Cu, [
|
|
@@ -8319,7 +8336,7 @@ function bu(e, t, n, l, o, s) {
|
|
|
8319
8336
|
ripple: !1
|
|
8320
8337
|
}, null, 8, ["modelValue", "max", "onUpdate:modelValue"]),
|
|
8321
8338
|
C("p", Nu, O(e.t("messages.pagination.goto")), 1),
|
|
8322
|
-
b(
|
|
8339
|
+
b(s, {
|
|
8323
8340
|
autofocus: !1,
|
|
8324
8341
|
modelValue: e.internalInfo.inputPage,
|
|
8325
8342
|
"onUpdate:modelValue": t[2] || (t[2] = (c) => e.internalInfo.inputPage = c),
|
|
@@ -8342,41 +8359,41 @@ function Kt(e, t = {}) {
|
|
|
8342
8359
|
if (!Array.isArray(e))
|
|
8343
8360
|
return [];
|
|
8344
8361
|
const { optionLabel: n = "label", optionValue: l = "value", optionChildren: o = "children" } = t;
|
|
8345
|
-
return e.map((
|
|
8346
|
-
const a = String(
|
|
8362
|
+
return e.map((r) => {
|
|
8363
|
+
const a = String(r[n] ?? ""), i = r[l], s = {
|
|
8347
8364
|
label: a,
|
|
8348
8365
|
value: i,
|
|
8349
|
-
row:
|
|
8350
|
-
}, c =
|
|
8351
|
-
return Array.isArray(c) && c.length > 0 && (
|
|
8366
|
+
row: r
|
|
8367
|
+
}, c = r[o];
|
|
8368
|
+
return Array.isArray(c) && c.length > 0 && (s.children = Kt(c, t)), s;
|
|
8352
8369
|
});
|
|
8353
8370
|
}
|
|
8354
8371
|
function ju(e) {
|
|
8355
|
-
let { data: t, key: n, idKey: l, rootId: o, isMapOption:
|
|
8356
|
-
t = t || [], n = n || "parentId", l = l || "id",
|
|
8357
|
-
const i = /* @__PURE__ */ new Map(),
|
|
8372
|
+
let { data: t, key: n, idKey: l, rootId: o, isMapOption: r, labelValue: a } = e;
|
|
8373
|
+
t = t || [], n = n || "parentId", l = l || "id", r = r !== !1, a = a || { label: "name", value: "id" }, o = o || "1";
|
|
8374
|
+
const i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set();
|
|
8358
8375
|
let c = null;
|
|
8359
8376
|
t.forEach((p) => {
|
|
8360
8377
|
const I = { ...p, children: [] };
|
|
8361
|
-
|
|
8378
|
+
r && (I.label = p[a.label], I.value = String(p[a.value].toString())), i.set(String(p[l]), I), p[l].toString() === "1" && p[n].toString() === "0" ? c = I : s.add(String(p[l]));
|
|
8362
8379
|
});
|
|
8363
8380
|
const u = [];
|
|
8364
8381
|
i.forEach((p) => {
|
|
8365
8382
|
if (c) {
|
|
8366
8383
|
if (!(p[l].toString() === "1" && p[n].toString() === "0")) if (c[l] === p[n])
|
|
8367
|
-
c.children.push(p),
|
|
8384
|
+
c.children.push(p), s.delete(String(p[l]));
|
|
8368
8385
|
else {
|
|
8369
8386
|
const I = i.get(String(p[n]));
|
|
8370
|
-
I && (I.children.push(p),
|
|
8387
|
+
I && (I.children.push(p), s.delete(String(p[l])));
|
|
8371
8388
|
}
|
|
8372
8389
|
} else if (p[n].toString() === String(o))
|
|
8373
|
-
u.push(p),
|
|
8390
|
+
u.push(p), s.delete(String(p[l]));
|
|
8374
8391
|
else {
|
|
8375
8392
|
const I = i.get(String(p[n]));
|
|
8376
|
-
I && (I.children.push(p),
|
|
8393
|
+
I && (I.children.push(p), s.delete(String(p[l])));
|
|
8377
8394
|
}
|
|
8378
8395
|
}), c && u.push(c);
|
|
8379
|
-
for (const p of
|
|
8396
|
+
for (const p of s)
|
|
8380
8397
|
u.push(i.get(p));
|
|
8381
8398
|
const d = Array.from(i.values()).map((p) => {
|
|
8382
8399
|
const I = { ...p };
|
|
@@ -8388,7 +8405,7 @@ function ju(e) {
|
|
|
8388
8405
|
};
|
|
8389
8406
|
}
|
|
8390
8407
|
function wu(e) {
|
|
8391
|
-
const { data: t, parentKey: n = "parentId", idKey: l = "id", rootId: o, childrenKey:
|
|
8408
|
+
const { data: t, parentKey: n = "parentId", idKey: l = "id", rootId: o, childrenKey: r = "children" } = e, a = (i, s) => i.reduce((c, u) => u[n] === s ? (u[r] = a(i, u[l]), c.concat(u)) : c, []);
|
|
8392
8409
|
return a(t, o);
|
|
8393
8410
|
}
|
|
8394
8411
|
function Su(e) {
|
|
@@ -8397,28 +8414,28 @@ function Su(e) {
|
|
|
8397
8414
|
allData: n,
|
|
8398
8415
|
parentKey: l = "parentId",
|
|
8399
8416
|
idKey: o = "id",
|
|
8400
|
-
excludeRootParent:
|
|
8417
|
+
excludeRootParent: r = !1,
|
|
8401
8418
|
rootParentValue: a = 0
|
|
8402
|
-
} = e, i = /* @__PURE__ */ new Set(),
|
|
8419
|
+
} = e, i = /* @__PURE__ */ new Set(), s = (c) => {
|
|
8403
8420
|
const u = n.find((d) => d[o] === c);
|
|
8404
8421
|
if (u && u[l] != null && !i.has(u[l])) {
|
|
8405
|
-
if (
|
|
8422
|
+
if (r && u[l] === a)
|
|
8406
8423
|
return;
|
|
8407
|
-
i.add(u[l]),
|
|
8424
|
+
i.add(u[l]), s(u[l]);
|
|
8408
8425
|
}
|
|
8409
8426
|
};
|
|
8410
8427
|
return t.forEach((c) => {
|
|
8411
|
-
|
|
8428
|
+
s(c);
|
|
8412
8429
|
}), Array.from(i);
|
|
8413
8430
|
}
|
|
8414
8431
|
function Tu(e) {
|
|
8415
|
-
const { treeData: t, idList: n, idKey: l = "id", childrenKey: o = "children" } = e,
|
|
8416
|
-
i.forEach((
|
|
8417
|
-
const c =
|
|
8418
|
-
Array.isArray(c) && c.length > 0 && (
|
|
8432
|
+
const { treeData: t, idList: n, idKey: l = "id", childrenKey: o = "children" } = e, r = /* @__PURE__ */ new Set(), a = (i) => {
|
|
8433
|
+
i.forEach((s) => {
|
|
8434
|
+
const c = s[o];
|
|
8435
|
+
Array.isArray(c) && c.length > 0 && (r.add(s[l]), a(c));
|
|
8419
8436
|
});
|
|
8420
8437
|
};
|
|
8421
|
-
return a(t), n.filter((i) => !
|
|
8438
|
+
return a(t), n.filter((i) => !r.has(i));
|
|
8422
8439
|
}
|
|
8423
8440
|
const zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8424
8441
|
__proto__: null,
|
|
@@ -8503,7 +8520,7 @@ function qu(e, t) {
|
|
|
8503
8520
|
if (!Array.isArray(e)) return e;
|
|
8504
8521
|
const n = /* @__PURE__ */ new Set();
|
|
8505
8522
|
return e.filter((l) => {
|
|
8506
|
-
const o = t.map((
|
|
8523
|
+
const o = t.map((r) => l[r]).join("|");
|
|
8507
8524
|
return n.has(o) ? !1 : (n.add(o), !0);
|
|
8508
8525
|
});
|
|
8509
8526
|
}
|
|
@@ -8513,15 +8530,15 @@ function Ru(e, t) {
|
|
|
8513
8530
|
idKey: n = "id",
|
|
8514
8531
|
parentKey: l = "parentId",
|
|
8515
8532
|
childrenKey: o = "children",
|
|
8516
|
-
rootParentValue:
|
|
8533
|
+
rootParentValue: r = null
|
|
8517
8534
|
} = t || {}, a = /* @__PURE__ */ new Map(), i = [];
|
|
8518
|
-
return e.forEach((
|
|
8519
|
-
a.set(
|
|
8520
|
-
}), e.forEach((
|
|
8521
|
-
const c = a.get(
|
|
8535
|
+
return e.forEach((s) => {
|
|
8536
|
+
a.set(s[n], { ...s, [o]: [] });
|
|
8537
|
+
}), e.forEach((s) => {
|
|
8538
|
+
const c = a.get(s[n]);
|
|
8522
8539
|
if (!c) return;
|
|
8523
|
-
const u =
|
|
8524
|
-
if (u ===
|
|
8540
|
+
const u = s[l];
|
|
8541
|
+
if (u === r || u === void 0)
|
|
8525
8542
|
i.push(c);
|
|
8526
8543
|
else {
|
|
8527
8544
|
const d = a.get(u);
|
|
@@ -8532,8 +8549,8 @@ function Ru(e, t) {
|
|
|
8532
8549
|
function Uu(e, t = "children") {
|
|
8533
8550
|
if (!Array.isArray(e)) return e;
|
|
8534
8551
|
const n = [], l = (o) => {
|
|
8535
|
-
o.forEach((
|
|
8536
|
-
const a =
|
|
8552
|
+
o.forEach((r) => {
|
|
8553
|
+
const a = r[t], i = { ...r };
|
|
8537
8554
|
delete i[t], n.push(i), Array.isArray(a) && a.length > 0 && l(a);
|
|
8538
8555
|
});
|
|
8539
8556
|
};
|
|
@@ -8552,9 +8569,9 @@ function Pn(e, t, n = "children") {
|
|
|
8552
8569
|
}
|
|
8553
8570
|
function Bu(e, t, n = "children") {
|
|
8554
8571
|
if (!Array.isArray(e)) return;
|
|
8555
|
-
const l = (o,
|
|
8572
|
+
const l = (o, r, a) => {
|
|
8556
8573
|
o.forEach((i) => {
|
|
8557
|
-
t(i,
|
|
8574
|
+
t(i, r, a), Array.isArray(i[n]) && i[n].length > 0 && l(i[n], i, a + 1);
|
|
8558
8575
|
});
|
|
8559
8576
|
};
|
|
8560
8577
|
l(e, null, 0);
|
|
@@ -8573,16 +8590,16 @@ function Wu(e, t) {
|
|
|
8573
8590
|
}
|
|
8574
8591
|
function Fu(e, t, n = "asc") {
|
|
8575
8592
|
return Array.isArray(e) ? [...e].sort((l, o) => {
|
|
8576
|
-
const
|
|
8577
|
-
return
|
|
8593
|
+
const r = l[t], a = o[t];
|
|
8594
|
+
return r < a ? n === "asc" ? -1 : 1 : r > a ? n === "asc" ? 1 : -1 : 0;
|
|
8578
8595
|
}) : e;
|
|
8579
8596
|
}
|
|
8580
8597
|
function Hu(e, t) {
|
|
8581
8598
|
return Array.isArray(e) ? [...e].sort((n, l) => {
|
|
8582
|
-
for (const { key: o, order:
|
|
8599
|
+
for (const { key: o, order: r = "asc" } of t) {
|
|
8583
8600
|
const a = n[o], i = l[o];
|
|
8584
|
-
if (a < i) return
|
|
8585
|
-
if (a > i) return
|
|
8601
|
+
if (a < i) return r === "asc" ? -1 : 1;
|
|
8602
|
+
if (a > i) return r === "asc" ? 1 : -1;
|
|
8586
8603
|
}
|
|
8587
8604
|
return 0;
|
|
8588
8605
|
}) : e;
|
|
@@ -8651,9 +8668,9 @@ function qn(e, t = 1 / 0) {
|
|
|
8651
8668
|
function nc(e, t, n) {
|
|
8652
8669
|
if (!Array.isArray(e))
|
|
8653
8670
|
return { data: [], page: t, pageSize: n, total: 0, totalPages: 0 };
|
|
8654
|
-
const l = e.length, o = Math.ceil(l / n),
|
|
8671
|
+
const l = e.length, o = Math.ceil(l / n), r = (t - 1) * n, a = r + n;
|
|
8655
8672
|
return {
|
|
8656
|
-
data: e.slice(
|
|
8673
|
+
data: e.slice(r, a),
|
|
8657
8674
|
page: t,
|
|
8658
8675
|
pageSize: n,
|
|
8659
8676
|
total: l,
|
|
@@ -8713,7 +8730,7 @@ async function ic(e) {
|
|
|
8713
8730
|
return console.error("复制失败:", t), !1;
|
|
8714
8731
|
}
|
|
8715
8732
|
}
|
|
8716
|
-
async function
|
|
8733
|
+
async function rc() {
|
|
8717
8734
|
if (navigator.clipboard && window.isSecureContext)
|
|
8718
8735
|
try {
|
|
8719
8736
|
return await navigator.clipboard.readText();
|
|
@@ -8726,7 +8743,7 @@ function xt(e, t) {
|
|
|
8726
8743
|
const n = document.createElement("a");
|
|
8727
8744
|
typeof e == "string" ? n.href = e : n.href = URL.createObjectURL(e), n.download = t, n.style.display = "none", document.body.appendChild(n), n.click(), document.body.removeChild(n), typeof e != "string" && setTimeout(() => URL.revokeObjectURL(n.href), 100);
|
|
8728
8745
|
}
|
|
8729
|
-
function
|
|
8746
|
+
function sc(e, t) {
|
|
8730
8747
|
const n = JSON.stringify(e, null, 2), l = new Blob([n], { type: "application/json" });
|
|
8731
8748
|
xt(l, t);
|
|
8732
8749
|
}
|
|
@@ -8776,8 +8793,8 @@ function gc(e, t = 0) {
|
|
|
8776
8793
|
}
|
|
8777
8794
|
function mc(e) {
|
|
8778
8795
|
if (!e) return !1;
|
|
8779
|
-
const t = e.getBoundingClientRect(), n = window.innerHeight || document.documentElement.clientHeight, l = window.innerWidth || document.documentElement.clientWidth, o = t.top <= n && t.top + t.height >= 0,
|
|
8780
|
-
return o &&
|
|
8796
|
+
const t = e.getBoundingClientRect(), n = window.innerHeight || document.documentElement.clientHeight, l = window.innerWidth || document.documentElement.clientWidth, o = t.top <= n && t.top + t.height >= 0, r = t.left <= l && t.left + t.width >= 0;
|
|
8797
|
+
return o && r;
|
|
8781
8798
|
}
|
|
8782
8799
|
function yc(e = document.documentElement) {
|
|
8783
8800
|
document.fullscreenElement ? document.exitFullscreen() : e.requestFullscreen().catch((t) => {
|
|
@@ -8880,7 +8897,7 @@ const Qc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8880
8897
|
addClass: Ac,
|
|
8881
8898
|
copyToClipboard: ic,
|
|
8882
8899
|
downloadFile: xt,
|
|
8883
|
-
downloadJSON:
|
|
8900
|
+
downloadJSON: sc,
|
|
8884
8901
|
downloadText: uc,
|
|
8885
8902
|
enterFullscreen: Mc,
|
|
8886
8903
|
exitFullscreen: Ic,
|
|
@@ -8903,7 +8920,7 @@ const Qc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8903
8920
|
isScrolledToBottom: Yc,
|
|
8904
8921
|
querySelector: Sc,
|
|
8905
8922
|
querySelectorAll: Tc,
|
|
8906
|
-
readFromClipboard:
|
|
8923
|
+
readFromClipboard: rc,
|
|
8907
8924
|
removeAttribute: Lc,
|
|
8908
8925
|
removeClass: Dc,
|
|
8909
8926
|
scrollTo: Xt,
|
|
@@ -8983,26 +9000,26 @@ function td(e) {
|
|
|
8983
9000
|
if (e === 0) return "零";
|
|
8984
9001
|
if (e < 0 || e > 99999) return String(e);
|
|
8985
9002
|
const l = String(e);
|
|
8986
|
-
let o = "",
|
|
9003
|
+
let o = "", r = 0;
|
|
8987
9004
|
for (let a = 0; a < l.length; a++) {
|
|
8988
|
-
const i = parseInt(l[a]),
|
|
8989
|
-
i === 0 ?
|
|
9005
|
+
const i = parseInt(l[a]), s = n[l.length - 1 - a];
|
|
9006
|
+
i === 0 ? r++ : (r > 0 && (o += "零"), o += t[i] + s, r = 0);
|
|
8990
9007
|
}
|
|
8991
9008
|
return e >= 10 && e < 20 && (o = o.replace("一十", "十")), o;
|
|
8992
9009
|
}
|
|
8993
9010
|
function nd(e) {
|
|
8994
9011
|
const t = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], n = ["", "拾", "佰", "仟", "万", "拾", "佰", "仟", "亿"], l = ["角", "分"];
|
|
8995
9012
|
if (e === 0) return "零元整";
|
|
8996
|
-
const [o,
|
|
9013
|
+
const [o, r = ""] = e.toFixed(2).split(".");
|
|
8997
9014
|
let a = "";
|
|
8998
9015
|
for (let i = 0; i < o.length; i++) {
|
|
8999
|
-
const
|
|
9000
|
-
|
|
9016
|
+
const s = parseInt(o[i]), c = n[o.length - 1 - i];
|
|
9017
|
+
s !== 0 ? a += t[s] + c : a && !a.endsWith("零") && (a += "零");
|
|
9001
9018
|
}
|
|
9002
|
-
if (a = a.replace(/零+$/, "") + "元",
|
|
9003
|
-
for (let i = 0; i < Math.min(
|
|
9004
|
-
const
|
|
9005
|
-
|
|
9019
|
+
if (a = a.replace(/零+$/, "") + "元", r && r !== "00")
|
|
9020
|
+
for (let i = 0; i < Math.min(r.length, 2); i++) {
|
|
9021
|
+
const s = parseInt(r[i]);
|
|
9022
|
+
s !== 0 && (a += t[s] + l[i]);
|
|
9006
9023
|
}
|
|
9007
9024
|
else
|
|
9008
9025
|
a += "整";
|
|
@@ -9025,10 +9042,10 @@ function ad(e) {
|
|
|
9025
9042
|
function id(e, t, n) {
|
|
9026
9043
|
return e >= t && e <= n;
|
|
9027
9044
|
}
|
|
9028
|
-
function
|
|
9045
|
+
function rd(e) {
|
|
9029
9046
|
return Math.abs(e);
|
|
9030
9047
|
}
|
|
9031
|
-
function
|
|
9048
|
+
function sd(e) {
|
|
9032
9049
|
return Math.sqrt(e);
|
|
9033
9050
|
}
|
|
9034
9051
|
function ud(e, t) {
|
|
@@ -9045,7 +9062,7 @@ function cd(e, t) {
|
|
|
9045
9062
|
}
|
|
9046
9063
|
const dd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9047
9064
|
__proto__: null,
|
|
9048
|
-
abs:
|
|
9065
|
+
abs: rd,
|
|
9049
9066
|
add: Zc,
|
|
9050
9067
|
ceil: Jc,
|
|
9051
9068
|
clamp: Bc,
|
|
@@ -9068,23 +9085,23 @@ const dd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9068
9085
|
randomFloat: Rc,
|
|
9069
9086
|
range: Uc,
|
|
9070
9087
|
round: en,
|
|
9071
|
-
sqrt:
|
|
9088
|
+
sqrt: sd,
|
|
9072
9089
|
subtract: Wc,
|
|
9073
9090
|
toChineseMoney: nd,
|
|
9074
9091
|
toChineseNumber: td,
|
|
9075
9092
|
toFixed: _c
|
|
9076
9093
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9077
|
-
function
|
|
9094
|
+
function st(e) {
|
|
9078
9095
|
if (e === null || typeof e != "object") return e;
|
|
9079
9096
|
if (e instanceof Date)
|
|
9080
9097
|
return new Date(e.getTime());
|
|
9081
9098
|
if (e instanceof RegExp)
|
|
9082
9099
|
return new RegExp(e.source, e.flags);
|
|
9083
9100
|
if (Array.isArray(e))
|
|
9084
|
-
return e.map((n) =>
|
|
9101
|
+
return e.map((n) => st(n));
|
|
9085
9102
|
const t = {};
|
|
9086
9103
|
for (const n in e)
|
|
9087
|
-
Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
9104
|
+
Object.prototype.hasOwnProperty.call(e, n) && (t[n] = st(e[n]));
|
|
9088
9105
|
return t;
|
|
9089
9106
|
}
|
|
9090
9107
|
function pd(e) {
|
|
@@ -9096,8 +9113,8 @@ function Zn(...e) {
|
|
|
9096
9113
|
const t = {};
|
|
9097
9114
|
return e.forEach((n) => {
|
|
9098
9115
|
!n || typeof n != "object" || Object.keys(n).forEach((l) => {
|
|
9099
|
-
const o = n[l],
|
|
9100
|
-
o && typeof o == "object" && !Array.isArray(o) &&
|
|
9116
|
+
const o = n[l], r = t[l];
|
|
9117
|
+
o && typeof o == "object" && !Array.isArray(o) && r && typeof r == "object" && !Array.isArray(r) ? t[l] = Zn(r, o) : t[l] = st(o);
|
|
9101
9118
|
});
|
|
9102
9119
|
}), t;
|
|
9103
9120
|
}
|
|
@@ -9122,9 +9139,9 @@ function yd(e, t, n) {
|
|
|
9122
9139
|
if (!e || typeof e != "object") return n;
|
|
9123
9140
|
const l = t.split(".");
|
|
9124
9141
|
let o = e;
|
|
9125
|
-
for (const
|
|
9126
|
-
if (o && typeof o == "object" &&
|
|
9127
|
-
o = o[
|
|
9142
|
+
for (const r of l)
|
|
9143
|
+
if (o && typeof o == "object" && r in o)
|
|
9144
|
+
o = o[r];
|
|
9128
9145
|
else
|
|
9129
9146
|
return n;
|
|
9130
9147
|
return o !== void 0 ? o : n;
|
|
@@ -9133,10 +9150,10 @@ function Wn(e, t, n) {
|
|
|
9133
9150
|
if (!e || typeof e != "object") return;
|
|
9134
9151
|
const l = t.split("."), o = l.pop();
|
|
9135
9152
|
if (!o) return;
|
|
9136
|
-
let
|
|
9153
|
+
let r = e;
|
|
9137
9154
|
for (const a of l)
|
|
9138
|
-
(!(a in
|
|
9139
|
-
|
|
9155
|
+
(!(a in r) || typeof r[a] != "object") && (r[a] = {}), r = r[a];
|
|
9156
|
+
r[o] = n;
|
|
9140
9157
|
}
|
|
9141
9158
|
function Md(e, t) {
|
|
9142
9159
|
if (!e || typeof e != "object") return !1;
|
|
@@ -9166,7 +9183,7 @@ function $t(e, t) {
|
|
|
9166
9183
|
if (e instanceof RegExp && t instanceof RegExp)
|
|
9167
9184
|
return e.toString() === t.toString();
|
|
9168
9185
|
if (Array.isArray(e) && Array.isArray(t))
|
|
9169
|
-
return e.length !== t.length ? !1 : e.every((o,
|
|
9186
|
+
return e.length !== t.length ? !1 : e.every((o, r) => $t(o, t[r]));
|
|
9170
9187
|
const n = Object.keys(e), l = Object.keys(t);
|
|
9171
9188
|
return n.length !== l.length ? !1 : n.every((o) => $t(e[o], t[o]));
|
|
9172
9189
|
}
|
|
@@ -9176,7 +9193,7 @@ function Ot(e) {
|
|
|
9176
9193
|
return e.map((n) => Ot(n));
|
|
9177
9194
|
const t = {};
|
|
9178
9195
|
return Object.keys(e).forEach((n) => {
|
|
9179
|
-
const l = n.replace(/_([a-z])/g, (
|
|
9196
|
+
const l = n.replace(/_([a-z])/g, (r, a) => a.toUpperCase()), o = e[n];
|
|
9180
9197
|
t[l] = typeof o == "object" ? Ot(o) : o;
|
|
9181
9198
|
}), t;
|
|
9182
9199
|
}
|
|
@@ -9200,8 +9217,8 @@ function Dd(e) {
|
|
|
9200
9217
|
if (!e) return {};
|
|
9201
9218
|
const t = e.startsWith("?") ? e.slice(1) : e, n = {};
|
|
9202
9219
|
return t.split("&").forEach((l) => {
|
|
9203
|
-
const [o,
|
|
9204
|
-
o && (o in n ? Array.isArray(n[o]) ? n[o].push(
|
|
9220
|
+
const [o, r] = l.split("=").map(decodeURIComponent);
|
|
9221
|
+
o && (o in n ? Array.isArray(n[o]) ? n[o].push(r) : n[o] = [n[o], r] : n[o] = r);
|
|
9205
9222
|
}), n;
|
|
9206
9223
|
}
|
|
9207
9224
|
function Fn(e, t) {
|
|
@@ -9218,8 +9235,8 @@ function Hn(e, t = "") {
|
|
|
9218
9235
|
if (!e || typeof e != "object") return {};
|
|
9219
9236
|
const n = {};
|
|
9220
9237
|
return Object.keys(e).forEach((l) => {
|
|
9221
|
-
const o = t ? `${t}.${l}` : l,
|
|
9222
|
-
|
|
9238
|
+
const o = t ? `${t}.${l}` : l, r = e[l];
|
|
9239
|
+
r && typeof r == "object" && !Array.isArray(r) ? Object.assign(n, Hn(r, o)) : n[o] = r;
|
|
9223
9240
|
}), n;
|
|
9224
9241
|
}
|
|
9225
9242
|
function vd(e) {
|
|
@@ -9248,7 +9265,7 @@ function wd(e) {
|
|
|
9248
9265
|
}
|
|
9249
9266
|
const Sd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9250
9267
|
__proto__: null,
|
|
9251
|
-
deepClone:
|
|
9268
|
+
deepClone: st,
|
|
9252
9269
|
deepMerge: Zn,
|
|
9253
9270
|
entries: wd,
|
|
9254
9271
|
filterValues: Fn,
|
|
@@ -9275,29 +9292,29 @@ const Sd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9275
9292
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9276
9293
|
function Td(e, t = 300, n = !1) {
|
|
9277
9294
|
let l = null, o = !1;
|
|
9278
|
-
const
|
|
9295
|
+
const r = function(...a) {
|
|
9279
9296
|
l && clearTimeout(l), n && !o ? (e.apply(this, a), o = !0) : l = setTimeout(() => {
|
|
9280
9297
|
e.apply(this, a), o = !1, l = null;
|
|
9281
9298
|
}, t);
|
|
9282
9299
|
};
|
|
9283
|
-
return
|
|
9300
|
+
return r.cancel = () => {
|
|
9284
9301
|
l && (clearTimeout(l), l = null), o = !1;
|
|
9285
|
-
},
|
|
9302
|
+
}, r;
|
|
9286
9303
|
}
|
|
9287
9304
|
function zd(e, t = 300, n) {
|
|
9288
9305
|
const { leading: l = !0, trailing: o = !0 } = n || {};
|
|
9289
|
-
let
|
|
9290
|
-
const
|
|
9306
|
+
let r = null, a = 0, i = null;
|
|
9307
|
+
const s = function(...c) {
|
|
9291
9308
|
const u = Date.now();
|
|
9292
9309
|
!a && !l && (a = u);
|
|
9293
9310
|
const d = t - (u - a);
|
|
9294
|
-
i = c, d <= 0 || d > t ? (
|
|
9295
|
-
a = l ? Date.now() : 0,
|
|
9311
|
+
i = c, d <= 0 || d > t ? (r && (clearTimeout(r), r = null), a = u, e.apply(this, c), i = null) : !r && o && (r = setTimeout(() => {
|
|
9312
|
+
a = l ? Date.now() : 0, r = null, i && (e.apply(this, i), i = null);
|
|
9296
9313
|
}, d));
|
|
9297
9314
|
};
|
|
9298
|
-
return
|
|
9299
|
-
|
|
9300
|
-
},
|
|
9315
|
+
return s.cancel = () => {
|
|
9316
|
+
r && (clearTimeout(r), r = null), a = 0, i = null;
|
|
9317
|
+
}, s;
|
|
9301
9318
|
}
|
|
9302
9319
|
function kd(e) {
|
|
9303
9320
|
let t = !1, n;
|
|
@@ -9313,14 +9330,14 @@ function Gn(e) {
|
|
|
9313
9330
|
}
|
|
9314
9331
|
async function Ld(e, t) {
|
|
9315
9332
|
const { times: n = 3, delay: l = 1e3, onRetry: o } = t || {};
|
|
9316
|
-
let
|
|
9333
|
+
let r;
|
|
9317
9334
|
for (let a = 0; a < n; a++)
|
|
9318
9335
|
try {
|
|
9319
9336
|
return await e();
|
|
9320
9337
|
} catch (i) {
|
|
9321
|
-
|
|
9338
|
+
r = i, o && o(i, a + 1), a < n - 1 && await Gn(l);
|
|
9322
9339
|
}
|
|
9323
|
-
throw
|
|
9340
|
+
throw r;
|
|
9324
9341
|
}
|
|
9325
9342
|
function $d(e, t) {
|
|
9326
9343
|
return Promise.race([
|
|
@@ -9332,11 +9349,11 @@ function $d(e, t) {
|
|
|
9332
9349
|
}
|
|
9333
9350
|
function Od(e, t) {
|
|
9334
9351
|
const n = /* @__PURE__ */ new Map(), l = function(...o) {
|
|
9335
|
-
const
|
|
9336
|
-
if (n.has(
|
|
9337
|
-
return n.get(
|
|
9352
|
+
const r = t ? t(...o) : JSON.stringify(o);
|
|
9353
|
+
if (n.has(r))
|
|
9354
|
+
return n.get(r);
|
|
9338
9355
|
const a = e.apply(this, o);
|
|
9339
|
-
return n.set(
|
|
9356
|
+
return n.set(r, a), a;
|
|
9340
9357
|
};
|
|
9341
9358
|
return l.cache = n, l;
|
|
9342
9359
|
}
|
|
@@ -9354,10 +9371,10 @@ function Ed(e, t = 100) {
|
|
|
9354
9371
|
async function Pd(e, t) {
|
|
9355
9372
|
const n = [], l = [];
|
|
9356
9373
|
for (const o of e) {
|
|
9357
|
-
const
|
|
9358
|
-
n.push(a), l.splice(l.indexOf(
|
|
9374
|
+
const r = o().then((a) => {
|
|
9375
|
+
n.push(a), l.splice(l.indexOf(r), 1);
|
|
9359
9376
|
});
|
|
9360
|
-
l.push(
|
|
9377
|
+
l.push(r), l.length >= t && await Promise.race(l);
|
|
9361
9378
|
}
|
|
9362
9379
|
return await Promise.all(l), n;
|
|
9363
9380
|
}
|
|
@@ -9472,12 +9489,12 @@ function np(e, t) {
|
|
|
9472
9489
|
currency: n = "¥",
|
|
9473
9490
|
decimals: l = 2,
|
|
9474
9491
|
thousandsSeparator: o = ",",
|
|
9475
|
-
decimalSeparator:
|
|
9492
|
+
decimalSeparator: r = "."
|
|
9476
9493
|
} = t || {}, a = typeof e == "string" ? parseFloat(e) : e;
|
|
9477
9494
|
if (isNaN(a)) return e.toString();
|
|
9478
|
-
const i = a.toFixed(l), [
|
|
9479
|
-
let d =
|
|
9480
|
-
return l > 0 && c && (d +=
|
|
9495
|
+
const i = a.toFixed(l), [s, c] = i.split(".");
|
|
9496
|
+
let d = s.replace(/\B(?=(\d{3})+(?!\d))/g, o);
|
|
9497
|
+
return l > 0 && c && (d += r + c), n + d;
|
|
9481
9498
|
}
|
|
9482
9499
|
function lp(e, t = 2) {
|
|
9483
9500
|
if (e === 0) return "0 B";
|
|
@@ -9493,18 +9510,18 @@ function ap(e) {
|
|
|
9493
9510
|
}
|
|
9494
9511
|
function ip(e = 8, t = "alphanumeric") {
|
|
9495
9512
|
const n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", l = "0123456789";
|
|
9496
|
-
let
|
|
9497
|
-
t === "alpha" && (
|
|
9513
|
+
let r = n + l;
|
|
9514
|
+
t === "alpha" && (r = n), t === "number" && (r = l);
|
|
9498
9515
|
let a = "";
|
|
9499
9516
|
for (let i = 0; i < e; i++)
|
|
9500
|
-
a +=
|
|
9517
|
+
a += r.charAt(Math.floor(Math.random() * r.length));
|
|
9501
9518
|
return a;
|
|
9502
9519
|
}
|
|
9503
|
-
function
|
|
9520
|
+
function rp(e) {
|
|
9504
9521
|
const t = Date.now(), n = Math.random().toString(36).substring(2, 8);
|
|
9505
9522
|
return e ? `${e}_${t}_${n}` : `${t}_${n}`;
|
|
9506
9523
|
}
|
|
9507
|
-
function
|
|
9524
|
+
function sp(e, t, n = "...") {
|
|
9508
9525
|
return !e || e.length <= t ? e : e.substring(0, t) + n;
|
|
9509
9526
|
}
|
|
9510
9527
|
function up(e) {
|
|
@@ -9562,7 +9579,7 @@ const Mp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9562
9579
|
formatMoney: np,
|
|
9563
9580
|
formatNumber: tp,
|
|
9564
9581
|
formatPhone: ap,
|
|
9565
|
-
generateUUID:
|
|
9582
|
+
generateUUID: rp,
|
|
9566
9583
|
idCardDesensitize: Wd,
|
|
9567
9584
|
isEmpty: pp,
|
|
9568
9585
|
nameDesensitize: Fd,
|
|
@@ -9576,7 +9593,7 @@ const Mp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9576
9593
|
toCamelCase: xd,
|
|
9577
9594
|
toKebabCase: ep,
|
|
9578
9595
|
toUnderlineCase: Xd,
|
|
9579
|
-
truncate:
|
|
9596
|
+
truncate: sp,
|
|
9580
9597
|
unescapeHtml: dp
|
|
9581
9598
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9582
9599
|
function ye(e) {
|
|
@@ -9587,8 +9604,8 @@ function ye(e) {
|
|
|
9587
9604
|
const l = {};
|
|
9588
9605
|
return n.split("&").forEach((o) => {
|
|
9589
9606
|
if (!o) return;
|
|
9590
|
-
const [
|
|
9591
|
-
|
|
9607
|
+
const [r, a = ""] = o.split("=").map(decodeURIComponent);
|
|
9608
|
+
r && (r in l ? Array.isArray(l[r]) ? l[r].push(a) : l[r] = [l[r], a] : l[r] = a);
|
|
9592
9609
|
}), l;
|
|
9593
9610
|
}
|
|
9594
9611
|
function Re(e) {
|
|
@@ -9611,14 +9628,14 @@ function Ap(e, t = "push") {
|
|
|
9611
9628
|
Object.keys(l).forEach((a) => {
|
|
9612
9629
|
(l[a] === null || l[a] === void 0) && delete l[a];
|
|
9613
9630
|
});
|
|
9614
|
-
const o = Re(l),
|
|
9615
|
-
t === "push" ? window.history.pushState(null, "",
|
|
9631
|
+
const o = Re(l), r = o ? `${window.location.pathname}?${o}` : window.location.pathname;
|
|
9632
|
+
t === "push" ? window.history.pushState(null, "", r) : window.history.replaceState(null, "", r);
|
|
9616
9633
|
}
|
|
9617
9634
|
function Dp(e, t = "push") {
|
|
9618
9635
|
if (typeof window > "u" || !window.history) return;
|
|
9619
9636
|
const n = ye();
|
|
9620
|
-
e.forEach((
|
|
9621
|
-
delete n[
|
|
9637
|
+
e.forEach((r) => {
|
|
9638
|
+
delete n[r];
|
|
9622
9639
|
});
|
|
9623
9640
|
const l = Re(n), o = l ? `${window.location.pathname}?${l}` : window.location.pathname;
|
|
9624
9641
|
t === "push" ? window.history.pushState(null, "", o) : window.history.replaceState(null, "", o);
|
|
@@ -9686,14 +9703,14 @@ function bp(e) {
|
|
|
9686
9703
|
hostname: n = "",
|
|
9687
9704
|
port: l = "",
|
|
9688
9705
|
pathname: o = "",
|
|
9689
|
-
params:
|
|
9706
|
+
params: r = {},
|
|
9690
9707
|
hash: a = ""
|
|
9691
9708
|
} = e;
|
|
9692
9709
|
if (!n) return o;
|
|
9693
9710
|
let i = `${t}://${n}`;
|
|
9694
9711
|
l && (i += `:${l}`), o && (i += o.startsWith("/") ? o : `/${o}`);
|
|
9695
|
-
const
|
|
9696
|
-
return
|
|
9712
|
+
const s = Re(r);
|
|
9713
|
+
return s && (i += `?${s}`), a && (i += a.startsWith("#") ? a : `#${a}`), i;
|
|
9697
9714
|
}
|
|
9698
9715
|
function jp(e) {
|
|
9699
9716
|
return e ? /^(https?:)?\/\//.test(e) : !1;
|
|
@@ -9738,22 +9755,22 @@ function Lp(e) {
|
|
|
9738
9755
|
function $p(e, t) {
|
|
9739
9756
|
if (!e) return "";
|
|
9740
9757
|
if (!t || Object.keys(t).length === 0) return e;
|
|
9741
|
-
const [n, l] = e.split("#"), [o,
|
|
9758
|
+
const [n, l] = e.split("#"), [o, r] = n.split("?"), i = { ...r ? ye("?" + r) : {}, ...t }, s = Re(i);
|
|
9742
9759
|
let c = o;
|
|
9743
|
-
return
|
|
9760
|
+
return s && (c += `?${s}`), l && (c += `#${l}`), c;
|
|
9744
9761
|
}
|
|
9745
9762
|
function Op(e, t) {
|
|
9746
9763
|
if (!e) return "";
|
|
9747
9764
|
if (!t || t.length === 0) return e;
|
|
9748
|
-
const [n, l] = e.split("#"), [o,
|
|
9749
|
-
if (!
|
|
9750
|
-
const a = ye("?" +
|
|
9765
|
+
const [n, l] = e.split("#"), [o, r] = n.split("?");
|
|
9766
|
+
if (!r) return e;
|
|
9767
|
+
const a = ye("?" + r);
|
|
9751
9768
|
t.forEach((c) => {
|
|
9752
9769
|
delete a[c];
|
|
9753
9770
|
});
|
|
9754
9771
|
const i = Re(a);
|
|
9755
|
-
let
|
|
9756
|
-
return i && (
|
|
9772
|
+
let s = o;
|
|
9773
|
+
return i && (s += `?${i}`), l && (s += `#${l}`), s;
|
|
9757
9774
|
}
|
|
9758
9775
|
function _n(e) {
|
|
9759
9776
|
try {
|
|
@@ -9829,17 +9846,17 @@ const qp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9829
9846
|
"dark-strong": "#131523"
|
|
9830
9847
|
};
|
|
9831
9848
|
function Vf(e) {
|
|
9832
|
-
const { app: t, router: n, store: l, i18n: o, pagePermissionIds:
|
|
9849
|
+
const { app: t, router: n, store: l, i18n: o, pagePermissionIds: r, pageActionPermissionIds: a, defaultLanguage: i, colors: s, disableBFCache: c } = e;
|
|
9833
9850
|
c && window.addEventListener("pageshow", (j) => {
|
|
9834
9851
|
j.persisted && window.location.reload();
|
|
9835
9852
|
}), Xp(t);
|
|
9836
9853
|
const u = t.config.globalProperties.$q;
|
|
9837
|
-
u ? (vl(u),
|
|
9854
|
+
u ? (vl(u), rt.setQuasarInstance(u), yu.setQuasarInstance(u), xp(u)) : console.warn("[rtcpt] Quasar instance not found. Make sure you have installed Quasar."), i ? zt(i).catch((j) => {
|
|
9838
9855
|
console.error("[rtcpt] Failed to set default language:", j);
|
|
9839
9856
|
}) : zt("zh-CN").catch((j) => {
|
|
9840
9857
|
console.error("[rtcpt] Failed to load default locale:", j);
|
|
9841
9858
|
});
|
|
9842
|
-
const d = To, p =
|
|
9859
|
+
const d = To, p = r ? ln(r) ? r : z(r) : void 0, I = a ? ln(a) ? a : z(a) : void 0;
|
|
9843
9860
|
Ht.configure({
|
|
9844
9861
|
router: n,
|
|
9845
9862
|
store: l,
|
|
@@ -9847,12 +9864,12 @@ function Vf(e) {
|
|
|
9847
9864
|
iconMapFn: d,
|
|
9848
9865
|
pagePermissionIds: p,
|
|
9849
9866
|
pageActionPermissionIds: I
|
|
9850
|
-
}), p && t.provide(nt, p), I && t.provide(tt, I),
|
|
9867
|
+
}), p && t.provide(nt, p), I && t.provide(tt, I), s && u && Kp(s), u && (u.iconMapFn = kn(u.iconMapFn, d));
|
|
9851
9868
|
}
|
|
9852
9869
|
function Kp(e, t) {
|
|
9853
9870
|
const n = { ..._p, ...e }, l = document.documentElement;
|
|
9854
|
-
Object.entries(n).forEach(([o,
|
|
9855
|
-
l.style.setProperty(`--j-color-${o}`,
|
|
9871
|
+
Object.entries(n).forEach(([o, r]) => {
|
|
9872
|
+
l.style.setProperty(`--j-color-${o}`, r);
|
|
9856
9873
|
}), n.primary && We("primary", n.primary), n.negative && We("negative", n.negative), n.green && We("positive", n.green), n.yellow && We("warning", n.yellow), n.dark && We("dark", n.dark), console.log("[rtcpt] Custom colors applied:", e);
|
|
9857
9874
|
}
|
|
9858
9875
|
function xp(e) {
|
|
@@ -9869,32 +9886,32 @@ function Xp(e) {
|
|
|
9869
9886
|
function Kn(e, t, n = (o) => JSON.stringify(o), l = (o) => JSON.parse(o)) {
|
|
9870
9887
|
const o = e, a = z((() => {
|
|
9871
9888
|
try {
|
|
9872
|
-
const
|
|
9873
|
-
return
|
|
9889
|
+
const s = localStorage.getItem(o);
|
|
9890
|
+
return s ? l(s) : t;
|
|
9874
9891
|
} catch {
|
|
9875
9892
|
return t;
|
|
9876
9893
|
}
|
|
9877
9894
|
})());
|
|
9878
9895
|
W(
|
|
9879
9896
|
a,
|
|
9880
|
-
(
|
|
9897
|
+
(s, c) => {
|
|
9881
9898
|
try {
|
|
9882
|
-
localStorage.setItem(o, n(
|
|
9899
|
+
localStorage.setItem(o, n(s));
|
|
9883
9900
|
} catch (u) {
|
|
9884
9901
|
console.error(`[storageSync] Failed to write ${o}:`, u);
|
|
9885
9902
|
}
|
|
9886
9903
|
},
|
|
9887
9904
|
{ deep: !0 }
|
|
9888
9905
|
);
|
|
9889
|
-
const i = (
|
|
9890
|
-
if (
|
|
9906
|
+
const i = (s) => {
|
|
9907
|
+
if (s.key === o && s.newValue !== null)
|
|
9891
9908
|
try {
|
|
9892
|
-
const c = l(
|
|
9909
|
+
const c = l(s.newValue);
|
|
9893
9910
|
JSON.stringify(a.value) !== JSON.stringify(c) && (a.value = c);
|
|
9894
9911
|
} catch (c) {
|
|
9895
9912
|
console.warn(`[storageSync] Failed to parse storage event for ${o}:`, c);
|
|
9896
9913
|
}
|
|
9897
|
-
else
|
|
9914
|
+
else s.key === o && s.newValue === null && (a.value = t);
|
|
9898
9915
|
};
|
|
9899
9916
|
return window.addEventListener("storage", i), a;
|
|
9900
9917
|
}
|
|
@@ -9909,7 +9926,7 @@ const Yf = {
|
|
|
9909
9926
|
transformTreeUseLabelAndValue: Kt,
|
|
9910
9927
|
JQDownloadFile: ku,
|
|
9911
9928
|
generateDownloadFileName: Lu,
|
|
9912
|
-
...
|
|
9929
|
+
...Rr,
|
|
9913
9930
|
formRules: ko,
|
|
9914
9931
|
array: ac,
|
|
9915
9932
|
dom: Qc,
|
|
@@ -9927,8 +9944,8 @@ export {
|
|
|
9927
9944
|
Mn as JCCopy,
|
|
9928
9945
|
of as JCDuoListEditor,
|
|
9929
9946
|
af as JCEditableProxy,
|
|
9930
|
-
|
|
9931
|
-
|
|
9947
|
+
rf as JCFallback,
|
|
9948
|
+
sf as JCFoldableList,
|
|
9932
9949
|
uf as JCFormatLookup,
|
|
9933
9950
|
cf as JCListEditor,
|
|
9934
9951
|
df as JCMoreMenu,
|
|
@@ -9964,7 +9981,7 @@ export {
|
|
|
9964
9981
|
Fo as JQFormLabel,
|
|
9965
9982
|
ft as JQInput,
|
|
9966
9983
|
Sf as JQInputRecognize,
|
|
9967
|
-
|
|
9984
|
+
rt as JQMessage,
|
|
9968
9985
|
Tf as JQNewValue,
|
|
9969
9986
|
zf as JQOptionGroup,
|
|
9970
9987
|
Of as JQPagination,
|