@quickflo/quickview 1.3.3 → 1.4.0
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/{ObjectEntry-rx7WTb4N.js → ObjectEntry-BI74yOA3.js} +2 -2
- package/dist/components/QuickView.vue.d.ts.map +1 -1
- package/dist/{index-BbQuaWiL.js → index-BCRM_dbm.js} +404 -404
- package/dist/quickview.js +1 -1
- package/dist/quickview.umd.cjs +1 -1
- package/dist/types.d.ts +5 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as s, markRaw as Do, defineComponent as Te, h as v, withDirectives as zn, getCurrentInstance as ye, ref as N, reactive as La, onMounted as xt, watch as ie, onBeforeUpdate as Ho, inject as et, onBeforeUnmount as ze, nextTick as Ce, onDeactivated as sn, onActivated as El, Transition as Tt, onUnmounted as No, Teleport as za, unref as ja, createBlock as be, createElementBlock as Z, openBlock as L, resolveDynamicComponent as Fa, toDisplayString as re, normalizeClass as Pe, createVNode as D, createTextVNode as ce, createElementVNode as T, withModifiers as yt, withCtx as H, normalizeStyle as
|
|
1
|
+
import { computed as s, markRaw as Do, defineComponent as Te, h as v, withDirectives as zn, getCurrentInstance as ye, ref as N, reactive as La, onMounted as xt, watch as ie, onBeforeUpdate as Ho, inject as et, onBeforeUnmount as ze, nextTick as Ce, onDeactivated as sn, onActivated as El, Transition as Tt, onUnmounted as No, Teleport as za, unref as ja, createBlock as be, createElementBlock as Z, openBlock as L, resolveDynamicComponent as Fa, toDisplayString as re, normalizeClass as Pe, createVNode as D, createTextVNode as ce, createElementVNode as T, withModifiers as yt, withCtx as H, normalizeStyle as pt, defineAsyncComponent as un, createCommentVNode as ee, onBeforeMount as Pl, Fragment as Ze, renderList as bt, onUpdated as Ia, toRaw as It, shallowReactive as Da, vShow as Ha, provide as Gt, withKeys as bn, createSlots as Na } from "vue";
|
|
2
2
|
const gl = {
|
|
3
3
|
xs: 18,
|
|
4
4
|
sm: 24,
|
|
@@ -23,7 +23,7 @@ function $a(e, n) {
|
|
|
23
23
|
vt(e, l, n[l]);
|
|
24
24
|
return e;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function pe(e) {
|
|
27
27
|
return Do(Te(e));
|
|
28
28
|
}
|
|
29
29
|
function $o(e) {
|
|
@@ -73,7 +73,7 @@ const Yl = "0 0 24 24", ll = (e) => e, ol = (e) => `ionicons ${e}`, Wo = {
|
|
|
73
73
|
sym_o_: "-outlined",
|
|
74
74
|
sym_r_: "-rounded",
|
|
75
75
|
sym_s_: "-sharp"
|
|
76
|
-
}, Ka = new RegExp("^(" + Object.keys(Wo).join("|") + ")"), Qa = new RegExp("^(" + Object.keys(Ko).join("|") + ")"), Jl = new RegExp("^(" + Object.keys(Qo).join("|") + ")"), Xa = /^[Mm]\s?[-+]?\.?\d/, Ga = /^img:/, Ya = /^svguse:/, Ja = /^ion-/, Za = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, me =
|
|
76
|
+
}, Ka = new RegExp("^(" + Object.keys(Wo).join("|") + ")"), Qa = new RegExp("^(" + Object.keys(Ko).join("|") + ")"), Jl = new RegExp("^(" + Object.keys(Qo).join("|") + ")"), Xa = /^[Mm]\s?[-+]?\.?\d/, Ga = /^img:/, Ya = /^svguse:/, Ja = /^ion-/, Za = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, me = pe({
|
|
77
77
|
name: "QIcon",
|
|
78
78
|
props: {
|
|
79
79
|
...cn,
|
|
@@ -111,8 +111,8 @@ const Yl = "0 0 24 24", ll = (e) => e, ol = (e) => `ionicons ${e}`, Wo = {
|
|
|
111
111
|
svg: !0,
|
|
112
112
|
viewBox: g,
|
|
113
113
|
nodes: u.split("&&").map((b) => {
|
|
114
|
-
const [h,
|
|
115
|
-
return v("path", { style:
|
|
114
|
+
const [h, _, x] = b.split("@@");
|
|
115
|
+
return v("path", { style: _, d: h, transform: x });
|
|
116
116
|
})
|
|
117
117
|
};
|
|
118
118
|
}
|
|
@@ -189,7 +189,7 @@ function tr(e) {
|
|
|
189
189
|
)
|
|
190
190
|
};
|
|
191
191
|
}
|
|
192
|
-
const Xo =
|
|
192
|
+
const Xo = pe({
|
|
193
193
|
name: "QSpinner",
|
|
194
194
|
props: {
|
|
195
195
|
...er,
|
|
@@ -410,7 +410,7 @@ function dr({ validate: e, resetValidation: n, requiresQForm: l }) {
|
|
|
410
410
|
});
|
|
411
411
|
} else l === !0 && console.error("Parent QForm not found on useFormChild()!");
|
|
412
412
|
}
|
|
413
|
-
const lo = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, oo = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, ao = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,
|
|
413
|
+
const lo = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, oo = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, ao = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, pn = /^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/, _n = /^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/, rl = {
|
|
414
414
|
date: (e) => /^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),
|
|
415
415
|
time: (e) => /^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),
|
|
416
416
|
fulltime: (e) => /^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),
|
|
@@ -425,12 +425,12 @@ const lo = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, oo = /^#[0-9a-fA-F]{4}([0-9a-fA
|
|
|
425
425
|
hexColor: (e) => lo.test(e),
|
|
426
426
|
hexaColor: (e) => oo.test(e),
|
|
427
427
|
hexOrHexaColor: (e) => ao.test(e),
|
|
428
|
-
rgbColor: (e) =>
|
|
429
|
-
rgbaColor: (e) =>
|
|
430
|
-
rgbOrRgbaColor: (e) =>
|
|
431
|
-
hexOrRgbColor: (e) => lo.test(e) ||
|
|
432
|
-
hexaOrRgbaColor: (e) => oo.test(e) ||
|
|
433
|
-
anyColor: (e) => ao.test(e) ||
|
|
428
|
+
rgbColor: (e) => pn.test(e),
|
|
429
|
+
rgbaColor: (e) => _n.test(e),
|
|
430
|
+
rgbOrRgbaColor: (e) => pn.test(e) || _n.test(e),
|
|
431
|
+
hexOrRgbColor: (e) => lo.test(e) || pn.test(e),
|
|
432
|
+
hexaOrRgbaColor: (e) => oo.test(e) || _n.test(e),
|
|
433
|
+
anyColor: (e) => ao.test(e) || pn.test(e) || _n.test(e)
|
|
434
434
|
};
|
|
435
435
|
function Vl(e, n = 250, l) {
|
|
436
436
|
let t = null;
|
|
@@ -463,7 +463,7 @@ const fr = [!0, !1, "ondemand"], vr = {
|
|
|
463
463
|
};
|
|
464
464
|
function hr(e, n) {
|
|
465
465
|
const { props: l, proxy: t } = ye(), o = N(!1), i = N(null), a = N(!1);
|
|
466
|
-
dr({ validate: x, resetValidation:
|
|
466
|
+
dr({ validate: x, resetValidation: _ });
|
|
467
467
|
let r = 0, c;
|
|
468
468
|
const d = s(
|
|
469
469
|
() => l.rules !== void 0 && l.rules !== null && l.rules.length !== 0
|
|
@@ -481,7 +481,7 @@ function hr(e, n) {
|
|
|
481
481
|
}, { immediate: !0 }), ie(() => l.lazyRules, h), ie(e, (C) => {
|
|
482
482
|
C === !0 ? a.value = !0 : u.value === !0 && l.lazyRules !== "ondemand" && y();
|
|
483
483
|
});
|
|
484
|
-
function
|
|
484
|
+
function _() {
|
|
485
485
|
r++, n.value = !1, a.value = !1, o.value = !1, i.value = null, y.cancel();
|
|
486
486
|
}
|
|
487
487
|
function x(C = l.modelValue) {
|
|
@@ -513,13 +513,13 @@ function hr(e, n) {
|
|
|
513
513
|
const y = Vl(x, 0);
|
|
514
514
|
return ze(() => {
|
|
515
515
|
c?.(), y.cancel();
|
|
516
|
-
}), Object.assign(t, { resetValidation:
|
|
516
|
+
}), Object.assign(t, { resetValidation: _, validate: x }), vt(t, "hasError", () => g.value), {
|
|
517
517
|
isDirtyModel: a,
|
|
518
518
|
hasRules: d,
|
|
519
519
|
hasError: g,
|
|
520
520
|
errorMessage: b,
|
|
521
521
|
validate: x,
|
|
522
|
-
resetValidation:
|
|
522
|
+
resetValidation: _
|
|
523
523
|
};
|
|
524
524
|
}
|
|
525
525
|
const Ne = {
|
|
@@ -603,7 +603,7 @@ function yr(e) {
|
|
|
603
603
|
function an(e) {
|
|
604
604
|
return e != null && ("" + e).length !== 0;
|
|
605
605
|
}
|
|
606
|
-
const
|
|
606
|
+
const pr = {
|
|
607
607
|
...tt,
|
|
608
608
|
...vr,
|
|
609
609
|
label: String,
|
|
@@ -635,7 +635,7 @@ const _r = {
|
|
|
635
635
|
autofocus: Boolean,
|
|
636
636
|
for: String
|
|
637
637
|
}, Fn = {
|
|
638
|
-
...
|
|
638
|
+
...pr,
|
|
639
639
|
maxlength: [Number, String]
|
|
640
640
|
}, Tl = ["update:modelValue", "clear", "focus", "blur"];
|
|
641
641
|
function Bl({ requiredForAttr: e = !0, tagProp: n, changeEvent: l = !1 } = {}) {
|
|
@@ -704,10 +704,10 @@ function Ol(e) {
|
|
|
704
704
|
hasError: u,
|
|
705
705
|
errorMessage: g,
|
|
706
706
|
resetValidation: b
|
|
707
|
-
} = hr(e.focused, e.innerLoading), h = e.floatingLabel !== void 0 ? s(() => n.stackLabel === !0 || e.focused.value === !0 || e.floatingLabel.value === !0) : s(() => n.stackLabel === !0 || e.focused.value === !0 || e.hasValue.value === !0),
|
|
707
|
+
} = hr(e.focused, e.innerLoading), h = e.floatingLabel !== void 0 ? s(() => n.stackLabel === !0 || e.focused.value === !0 || e.floatingLabel.value === !0) : s(() => n.stackLabel === !0 || e.focused.value === !0 || e.hasValue.value === !0), _ = s(
|
|
708
708
|
() => n.bottomSlots === !0 || n.hint !== void 0 || d.value === !0 || n.counter === !0 || n.error !== null
|
|
709
709
|
), x = s(() => n.filled === !0 ? "filled" : n.outlined === !0 ? "outlined" : n.borderless === !0 ? "borderless" : n.standout ? "standout" : "standard"), y = s(
|
|
710
|
-
() => `q-field row no-wrap items-start q-field--${x.value}` + (e.fieldClass !== void 0 ? ` ${e.fieldClass.value}` : "") + (n.rounded === !0 ? " q-field--rounded" : "") + (n.square === !0 ? " q-field--square" : "") + (h.value === !0 ? " q-field--float" : "") + (B.value === !0 ? " q-field--labeled" : "") + (n.dense === !0 ? " q-field--dense" : "") + (n.itemAligned === !0 ? " q-field--item-aligned q-item-type" : "") + (e.isDark.value === !0 ? " q-field--dark" : "") + (e.getControl === void 0 ? " q-field--auto-height" : "") + (e.focused.value === !0 ? " q-field--focused" : "") + (u.value === !0 ? " q-field--error" : "") + (u.value === !0 || e.focused.value === !0 ? " q-field--highlighted" : "") + (n.hideBottomSpace !== !0 &&
|
|
710
|
+
() => `q-field row no-wrap items-start q-field--${x.value}` + (e.fieldClass !== void 0 ? ` ${e.fieldClass.value}` : "") + (n.rounded === !0 ? " q-field--rounded" : "") + (n.square === !0 ? " q-field--square" : "") + (h.value === !0 ? " q-field--float" : "") + (B.value === !0 ? " q-field--labeled" : "") + (n.dense === !0 ? " q-field--dense" : "") + (n.itemAligned === !0 ? " q-field--item-aligned q-item-type" : "") + (e.isDark.value === !0 ? " q-field--dark" : "") + (e.getControl === void 0 ? " q-field--auto-height" : "") + (e.focused.value === !0 ? " q-field--focused" : "") + (u.value === !0 ? " q-field--error" : "") + (u.value === !0 || e.focused.value === !0 ? " q-field--highlighted" : "") + (n.hideBottomSpace !== !0 && _.value === !0 ? " q-field--with-bottom" : "") + (n.disable === !0 ? " q-field--disabled" : n.readonly === !0 ? " q-field--readonly" : "")
|
|
711
711
|
), C = s(
|
|
712
712
|
() => "q-field__control relative-position row no-wrap" + (n.bgColor !== void 0 ? ` bg-${n.bgColor}` : "") + (u.value === !0 ? " text-negative" : typeof n.standout == "string" && n.standout.length !== 0 && e.focused.value === !0 ? ` ${n.standout}` : n.color !== void 0 ? ` text-${n.color}` : "")
|
|
713
713
|
), B = s(
|
|
@@ -889,7 +889,7 @@ function Ol(e) {
|
|
|
889
889
|
tabindex: -1,
|
|
890
890
|
...e.controlEvents
|
|
891
891
|
}, O()),
|
|
892
|
-
|
|
892
|
+
_.value === !0 ? W() : null
|
|
893
893
|
]),
|
|
894
894
|
t.after !== void 0 ? v("div", {
|
|
895
895
|
class: "q-field__after q-field__marginal row no-wrap items-center",
|
|
@@ -901,7 +901,7 @@ function Ol(e) {
|
|
|
901
901
|
function Ml(e) {
|
|
902
902
|
return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
|
|
903
903
|
}
|
|
904
|
-
function
|
|
904
|
+
function _t(e, n) {
|
|
905
905
|
return Ml(e) === !0 ? !1 : [].concat(n).includes(e.keyCode);
|
|
906
906
|
}
|
|
907
907
|
const io = {
|
|
@@ -911,7 +911,7 @@ const io = {
|
|
|
911
911
|
fulltime: "##:##:##",
|
|
912
912
|
phone: "(###) ### - ####",
|
|
913
913
|
card: "#### #### #### ####"
|
|
914
|
-
}, { tokenMap: so, tokenKeys:
|
|
914
|
+
}, { tokenMap: so, tokenKeys: _r } = ea({
|
|
915
915
|
"#": { pattern: "[\\d]", negate: "[^\\d]" },
|
|
916
916
|
S: { pattern: "[a-zA-Z]", negate: "[^a-zA-Z]" },
|
|
917
917
|
N: { pattern: "[0-9a-zA-Z]", negate: "[^0-9a-zA-Z]" },
|
|
@@ -933,7 +933,7 @@ function ea(e) {
|
|
|
933
933
|
function ta(e) {
|
|
934
934
|
return new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|([" + e.join("") + "])|(.)", "g");
|
|
935
935
|
}
|
|
936
|
-
const uo = /[.*+?^${}()|[\]\\]/g, xr = ta(
|
|
936
|
+
const uo = /[.*+?^${}()|[\]\\]/g, xr = ta(_r), Le = "", wr = {
|
|
937
937
|
mask: String,
|
|
938
938
|
reverseFillMask: Boolean,
|
|
939
939
|
fillMask: [Boolean, String],
|
|
@@ -956,7 +956,7 @@ function Sr(e, n, l, t) {
|
|
|
956
956
|
tokenMap: w,
|
|
957
957
|
tokenRegexMask: ta(Object.keys(w))
|
|
958
958
|
};
|
|
959
|
-
}), g = N(null), b = N(
|
|
959
|
+
}), g = N(null), b = N(_());
|
|
960
960
|
function h() {
|
|
961
961
|
return e.autogrow === !0 || ["textarea", "text", "search", "url", "tel", "password"].includes(e.type);
|
|
962
962
|
}
|
|
@@ -972,7 +972,7 @@ function Sr(e, n, l, t) {
|
|
|
972
972
|
}), ie(() => e.unmaskedValue, () => {
|
|
973
973
|
g.value === !0 && C(b.value);
|
|
974
974
|
});
|
|
975
|
-
function
|
|
975
|
+
function _() {
|
|
976
976
|
if (y(), g.value === !0) {
|
|
977
977
|
const q = $(Y(e.modelValue));
|
|
978
978
|
return e.fillMask !== !1 ? Q(q) : q;
|
|
@@ -998,7 +998,7 @@ function Sr(e, n, l, t) {
|
|
|
998
998
|
}
|
|
999
999
|
const q = io[e.mask] === void 0 ? e.mask : io[e.mask], w = typeof e.fillMask == "string" && e.fillMask.length !== 0 ? e.fillMask.slice(0, 1) : "_", R = w.replace(uo, "\\$&"), O = [], P = [], W = [];
|
|
1000
1000
|
let ae = e.reverseFillMask === !0, F = "", E = "";
|
|
1001
|
-
q.replace(u.value.tokenRegexMask, (
|
|
1001
|
+
q.replace(u.value.tokenRegexMask, (p, z, M, U, J) => {
|
|
1002
1002
|
if (U !== void 0) {
|
|
1003
1003
|
const G = u.value.tokenMap[U];
|
|
1004
1004
|
W.push(G), E = G.negate, ae === !0 && (P.push("(?:" + E + "+)?(" + G.pattern + "+)?(?:" + E + "+)?(" + G.pattern + "+)?"), ae = !1), P.push("(?:" + E + "+)?(" + G.pattern + ")?");
|
|
@@ -1011,21 +1011,21 @@ function Sr(e, n, l, t) {
|
|
|
1011
1011
|
});
|
|
1012
1012
|
const S = new RegExp(
|
|
1013
1013
|
"^" + O.join("") + "(" + (F === "" ? "." : "[^" + F + "]") + "+)?" + (F === "" ? "" : "[" + F + "]*") + "$"
|
|
1014
|
-
), oe = P.length - 1, f = P.map((
|
|
1015
|
-
"^" +
|
|
1016
|
-
) : new RegExp("^" +
|
|
1017
|
-
a = W, r = (
|
|
1018
|
-
const z = S.exec(e.reverseFillMask === !0 ?
|
|
1019
|
-
z !== null && (
|
|
1014
|
+
), oe = P.length - 1, f = P.map((p, z) => z === 0 && e.reverseFillMask === !0 ? new RegExp("^" + R + "*" + p) : z === oe ? new RegExp(
|
|
1015
|
+
"^" + p + "(" + (E === "" ? "." : E) + "+)?" + (e.reverseFillMask === !0 ? "$" : R + "*")
|
|
1016
|
+
) : new RegExp("^" + p));
|
|
1017
|
+
a = W, r = (p) => {
|
|
1018
|
+
const z = S.exec(e.reverseFillMask === !0 ? p : p.slice(0, W.length + 1));
|
|
1019
|
+
z !== null && (p = z.slice(1).join(""));
|
|
1020
1020
|
const M = [], U = f.length;
|
|
1021
|
-
for (let J = 0, G =
|
|
1021
|
+
for (let J = 0, G = p; J < U; J++) {
|
|
1022
1022
|
const fe = f[J].exec(G);
|
|
1023
1023
|
if (fe === null)
|
|
1024
1024
|
break;
|
|
1025
1025
|
G = G.slice(fe.shift().length), M.push(...fe);
|
|
1026
1026
|
}
|
|
1027
|
-
return M.length !== 0 ? M.join("") :
|
|
1028
|
-
}, o = W.map((
|
|
1027
|
+
return M.length !== 0 ? M.join("") : p;
|
|
1028
|
+
}, o = W.map((p) => typeof p == "string" ? p : Le).join(""), i = o.split(Le).join(w);
|
|
1029
1029
|
}
|
|
1030
1030
|
function C(q, w, R) {
|
|
1031
1031
|
const O = t.value, P = O.selectionEnd, W = O.value.length - P, ae = Y(q);
|
|
@@ -1039,10 +1039,10 @@ function Sr(e, n, l, t) {
|
|
|
1039
1039
|
}
|
|
1040
1040
|
if (R === "insertFromPaste" && e.reverseFillMask !== !0) {
|
|
1041
1041
|
const f = O.selectionEnd;
|
|
1042
|
-
let
|
|
1043
|
-
for (let z = c; z <=
|
|
1044
|
-
o[z] !== Le &&
|
|
1045
|
-
V.right(O,
|
|
1042
|
+
let p = P - 1;
|
|
1043
|
+
for (let z = c; z <= p && z < f; z++)
|
|
1044
|
+
o[z] !== Le && p++;
|
|
1045
|
+
V.right(O, p);
|
|
1046
1046
|
return;
|
|
1047
1047
|
}
|
|
1048
1048
|
if (["deleteContentBackward", "deleteContentForward"].indexOf(R) !== -1) {
|
|
@@ -1235,7 +1235,7 @@ function oa(e) {
|
|
|
1235
1235
|
} else l.type === "compositionupdate" && l.target.qComposing !== !0 && typeof l.data == "string" && (Xe.is.firefox === !0 ? Er.test(l.data) === !1 : qr.test(l.data) === !0 || Cr.test(l.data) === !0 || Rr.test(l.data) === !0) === !0 && (l.target.qComposing = !0);
|
|
1236
1236
|
};
|
|
1237
1237
|
}
|
|
1238
|
-
const Pr =
|
|
1238
|
+
const Pr = pe({
|
|
1239
1239
|
name: "QInput",
|
|
1240
1240
|
inheritAttrs: !1,
|
|
1241
1241
|
props: {
|
|
@@ -1268,7 +1268,7 @@ const Pr = _e({
|
|
|
1268
1268
|
let a = NaN, r, c, d = null, u;
|
|
1269
1269
|
const g = N(null), b = la(e), {
|
|
1270
1270
|
innerValue: h,
|
|
1271
|
-
hasMask:
|
|
1271
|
+
hasMask: _,
|
|
1272
1272
|
moveCursorForPaste: x,
|
|
1273
1273
|
updateMaskValue: y,
|
|
1274
1274
|
onMaskedKeydown: C,
|
|
@@ -1280,7 +1280,7 @@ const Pr = _e({
|
|
|
1280
1280
|
), Y = s(
|
|
1281
1281
|
() => K.value === !0 || ["text", "search", "url", "tel", "password"].includes(e.type)
|
|
1282
1282
|
), Q = s(() => {
|
|
1283
|
-
const
|
|
1283
|
+
const p = {
|
|
1284
1284
|
...$.splitAttrs.listeners.value,
|
|
1285
1285
|
onInput: P,
|
|
1286
1286
|
onPaste: O,
|
|
@@ -1292,9 +1292,9 @@ const Pr = _e({
|
|
|
1292
1292
|
onBlur: S,
|
|
1293
1293
|
onFocus: ft
|
|
1294
1294
|
};
|
|
1295
|
-
return
|
|
1295
|
+
return p.onCompositionstart = p.onCompositionupdate = p.onCompositionend = j, _.value === !0 && (p.onKeydown = C, p.onClick = B), e.autogrow === !0 && (p.onAnimationend = W), p;
|
|
1296
1296
|
}), q = s(() => {
|
|
1297
|
-
const
|
|
1297
|
+
const p = {
|
|
1298
1298
|
tabindex: 0,
|
|
1299
1299
|
"data-autofocus": e.autofocus === !0 || void 0,
|
|
1300
1300
|
rows: e.type === "textarea" ? 6 : void 0,
|
|
@@ -1306,83 +1306,83 @@ const Pr = _e({
|
|
|
1306
1306
|
disabled: e.disable === !0,
|
|
1307
1307
|
readonly: e.readonly === !0
|
|
1308
1308
|
};
|
|
1309
|
-
return K.value === !1 && (
|
|
1309
|
+
return K.value === !1 && (p.type = e.type), e.autogrow === !0 && (p.rows = 1), p;
|
|
1310
1310
|
});
|
|
1311
1311
|
ie(() => e.type, () => {
|
|
1312
1312
|
g.value && (g.value.value = e.modelValue);
|
|
1313
|
-
}), ie(() => e.modelValue, (
|
|
1314
|
-
if (
|
|
1315
|
-
if (c === !0 && (c = !1, String(
|
|
1313
|
+
}), ie(() => e.modelValue, (p) => {
|
|
1314
|
+
if (_.value === !0) {
|
|
1315
|
+
if (c === !0 && (c = !1, String(p) === a))
|
|
1316
1316
|
return;
|
|
1317
|
-
y(
|
|
1318
|
-
} else h.value !==
|
|
1317
|
+
y(p);
|
|
1318
|
+
} else h.value !== p && (h.value = p, e.type === "number" && i.hasOwnProperty("value") === !0 && (r === !0 ? r = !1 : delete i.value));
|
|
1319
1319
|
e.autogrow === !0 && Ce(F);
|
|
1320
|
-
}), ie(() => e.autogrow, (
|
|
1321
|
-
|
|
1320
|
+
}), ie(() => e.autogrow, (p) => {
|
|
1321
|
+
p === !0 ? Ce(F) : g.value !== null && l.rows > 0 && (g.value.style.height = "auto");
|
|
1322
1322
|
}), ie(() => e.dense, () => {
|
|
1323
1323
|
e.autogrow === !0 && Ce(F);
|
|
1324
1324
|
});
|
|
1325
1325
|
function w() {
|
|
1326
1326
|
jn(() => {
|
|
1327
|
-
const
|
|
1328
|
-
g.value !== null && g.value !==
|
|
1327
|
+
const p = document.activeElement;
|
|
1328
|
+
g.value !== null && g.value !== p && (p === null || p.id !== $.targetUid.value) && g.value.focus({ preventScroll: !0 });
|
|
1329
1329
|
});
|
|
1330
1330
|
}
|
|
1331
1331
|
function R() {
|
|
1332
1332
|
g.value?.select();
|
|
1333
1333
|
}
|
|
1334
|
-
function O(
|
|
1335
|
-
if (
|
|
1336
|
-
const z =
|
|
1334
|
+
function O(p) {
|
|
1335
|
+
if (_.value === !0 && e.reverseFillMask !== !0) {
|
|
1336
|
+
const z = p.target;
|
|
1337
1337
|
x(z, z.selectionStart, z.selectionEnd);
|
|
1338
1338
|
}
|
|
1339
|
-
n("paste",
|
|
1339
|
+
n("paste", p);
|
|
1340
1340
|
}
|
|
1341
|
-
function P(
|
|
1342
|
-
if (!
|
|
1341
|
+
function P(p) {
|
|
1342
|
+
if (!p || !p.target) return;
|
|
1343
1343
|
if (e.type === "file") {
|
|
1344
|
-
n("update:modelValue",
|
|
1344
|
+
n("update:modelValue", p.target.files);
|
|
1345
1345
|
return;
|
|
1346
1346
|
}
|
|
1347
|
-
const z =
|
|
1348
|
-
if (
|
|
1347
|
+
const z = p.target.value;
|
|
1348
|
+
if (p.target.qComposing === !0) {
|
|
1349
1349
|
i.value = z;
|
|
1350
1350
|
return;
|
|
1351
1351
|
}
|
|
1352
|
-
if (
|
|
1353
|
-
y(z, !1,
|
|
1354
|
-
else if (ae(z), Y.value === !0 &&
|
|
1355
|
-
const { selectionStart: M, selectionEnd: U } =
|
|
1352
|
+
if (_.value === !0)
|
|
1353
|
+
y(z, !1, p.inputType);
|
|
1354
|
+
else if (ae(z), Y.value === !0 && p.target === document.activeElement) {
|
|
1355
|
+
const { selectionStart: M, selectionEnd: U } = p.target;
|
|
1356
1356
|
M !== void 0 && U !== void 0 && Ce(() => {
|
|
1357
|
-
|
|
1357
|
+
p.target === document.activeElement && z.indexOf(p.target.value) === 0 && p.target.setSelectionRange(M, U);
|
|
1358
1358
|
});
|
|
1359
1359
|
}
|
|
1360
1360
|
e.autogrow === !0 && F();
|
|
1361
1361
|
}
|
|
1362
|
-
function W(
|
|
1363
|
-
n("animationend",
|
|
1362
|
+
function W(p) {
|
|
1363
|
+
n("animationend", p), F();
|
|
1364
1364
|
}
|
|
1365
|
-
function ae(
|
|
1365
|
+
function ae(p, z) {
|
|
1366
1366
|
u = () => {
|
|
1367
|
-
d = null, e.type !== "number" && i.hasOwnProperty("value") === !0 && delete i.value, e.modelValue !==
|
|
1368
|
-
a ===
|
|
1367
|
+
d = null, e.type !== "number" && i.hasOwnProperty("value") === !0 && delete i.value, e.modelValue !== p && a !== p && (a = p, z === !0 && (c = !0), n("update:modelValue", p), Ce(() => {
|
|
1368
|
+
a === p && (a = NaN);
|
|
1369
1369
|
})), u = void 0;
|
|
1370
|
-
}, e.type === "number" && (r = !0, i.value =
|
|
1370
|
+
}, e.type === "number" && (r = !0, i.value = p), e.debounce !== void 0 ? (d !== null && clearTimeout(d), i.value = p, d = setTimeout(u, e.debounce)) : u();
|
|
1371
1371
|
}
|
|
1372
1372
|
function F() {
|
|
1373
1373
|
requestAnimationFrame(() => {
|
|
1374
|
-
const
|
|
1375
|
-
if (
|
|
1376
|
-
const z =
|
|
1377
|
-
G === !0 && (
|
|
1374
|
+
const p = g.value;
|
|
1375
|
+
if (p !== null) {
|
|
1376
|
+
const z = p.parentNode.style, { scrollTop: M } = p, { overflowY: U, maxHeight: J } = o.platform.is.firefox === !0 ? {} : window.getComputedStyle(p), G = U !== void 0 && U !== "scroll";
|
|
1377
|
+
G === !0 && (p.style.overflowY = "hidden"), z.marginBottom = p.scrollHeight - 1 + "px", p.style.height = "1px", p.style.height = p.scrollHeight + "px", G === !0 && (p.style.overflowY = parseInt(J, 10) < p.scrollHeight ? "auto" : "hidden"), z.marginBottom = "", p.scrollTop = M;
|
|
1378
1378
|
}
|
|
1379
1379
|
});
|
|
1380
1380
|
}
|
|
1381
|
-
function E(
|
|
1382
|
-
j(
|
|
1381
|
+
function E(p) {
|
|
1382
|
+
j(p), d !== null && (clearTimeout(d), d = null), u?.(), n("change", p.target.value);
|
|
1383
1383
|
}
|
|
1384
|
-
function S(
|
|
1385
|
-
|
|
1384
|
+
function S(p) {
|
|
1385
|
+
p !== void 0 && ft(p), d !== null && (clearTimeout(d), d = null), u?.(), r = !1, c = !1, delete i.value, e.type !== "file" && setTimeout(() => {
|
|
1386
1386
|
g.value !== null && (g.value.value = h.value !== void 0 ? h.value : "");
|
|
1387
1387
|
});
|
|
1388
1388
|
}
|
|
@@ -1434,7 +1434,7 @@ const Pr = _e({
|
|
|
1434
1434
|
}), vt(t, "nativeEl", () => g.value), f;
|
|
1435
1435
|
}
|
|
1436
1436
|
});
|
|
1437
|
-
function
|
|
1437
|
+
function pl() {
|
|
1438
1438
|
if (window.getSelection !== void 0) {
|
|
1439
1439
|
const e = window.getSelection();
|
|
1440
1440
|
e.empty !== void 0 ? e.empty() : e.removeAllRanges !== void 0 && (e.removeAllRanges(), yl.is.mobile !== !0 && e.addRange(document.createRange()));
|
|
@@ -1472,7 +1472,7 @@ function ra({
|
|
|
1472
1472
|
o.toggle(h), h.qAnchorHandled = !0;
|
|
1473
1473
|
},
|
|
1474
1474
|
toggleKey(h) {
|
|
1475
|
-
|
|
1475
|
+
_t(h, 13) === !0 && d.toggle(h);
|
|
1476
1476
|
},
|
|
1477
1477
|
contextClick(h) {
|
|
1478
1478
|
o.hide(h), st(h), Ce(() => {
|
|
@@ -1483,31 +1483,31 @@ function ra({
|
|
|
1483
1483
|
mobileTouch(h) {
|
|
1484
1484
|
if (d.mobileCleanup(h), c(h) !== !0) return;
|
|
1485
1485
|
o.hide(h), a.value.classList.add("non-selectable");
|
|
1486
|
-
const
|
|
1486
|
+
const _ = h.target;
|
|
1487
1487
|
ln(d, "anchor", [
|
|
1488
|
-
[
|
|
1489
|
-
[
|
|
1490
|
-
[
|
|
1488
|
+
[_, "touchmove", "mobileCleanup", "passive"],
|
|
1489
|
+
[_, "touchend", "mobileCleanup", "passive"],
|
|
1490
|
+
[_, "touchcancel", "mobileCleanup", "passive"],
|
|
1491
1491
|
[a.value, "contextmenu", "prevent", "notPassive"]
|
|
1492
1492
|
]), r = setTimeout(() => {
|
|
1493
1493
|
r = null, o.show(h), h.qAnchorHandled = !0;
|
|
1494
1494
|
}, 300);
|
|
1495
1495
|
},
|
|
1496
1496
|
mobileCleanup(h) {
|
|
1497
|
-
a.value.classList.remove("non-selectable"), r !== null && (clearTimeout(r), r = null), e.value === !0 && h !== void 0 &&
|
|
1497
|
+
a.value.classList.remove("non-selectable"), r !== null && (clearTimeout(r), r = null), e.value === !0 && h !== void 0 && pl();
|
|
1498
1498
|
}
|
|
1499
1499
|
}), l = function(h = t.contextMenu) {
|
|
1500
1500
|
if (t.noParentEvent === !0 || a.value === null) return;
|
|
1501
|
-
let
|
|
1502
|
-
h === !0 ? o.$q.platform.is.mobile === !0 ?
|
|
1501
|
+
let _;
|
|
1502
|
+
h === !0 ? o.$q.platform.is.mobile === !0 ? _ = [
|
|
1503
1503
|
[a.value, "touchstart", "mobileTouch", "passive"]
|
|
1504
|
-
] :
|
|
1504
|
+
] : _ = [
|
|
1505
1505
|
[a.value, "mousedown", "hide", "passive"],
|
|
1506
1506
|
[a.value, "contextmenu", "contextClick", "notPassive"]
|
|
1507
|
-
] :
|
|
1507
|
+
] : _ = [
|
|
1508
1508
|
[a.value, "click", "toggle", "passive"],
|
|
1509
1509
|
[a.value, "keyup", "toggleKey", "passive"]
|
|
1510
|
-
], ln(d, "anchor",
|
|
1510
|
+
], ln(d, "anchor", _);
|
|
1511
1511
|
});
|
|
1512
1512
|
function u() {
|
|
1513
1513
|
Pn(d, "anchor");
|
|
@@ -1612,7 +1612,7 @@ function Nn({
|
|
|
1612
1612
|
const a = ye(), { props: r, emit: c, proxy: d } = a;
|
|
1613
1613
|
let u;
|
|
1614
1614
|
function g(B) {
|
|
1615
|
-
e.value === !0 ?
|
|
1615
|
+
e.value === !0 ? _(B) : b(B);
|
|
1616
1616
|
}
|
|
1617
1617
|
function b(B) {
|
|
1618
1618
|
if (r.disable === !0 || B?.qAnchorHandled === !0 || n !== void 0 && n(B) !== !0) return;
|
|
@@ -1624,7 +1624,7 @@ function Nn({
|
|
|
1624
1624
|
function h(B) {
|
|
1625
1625
|
e.value !== !0 && (e.value = !0, c("beforeShow", B), t !== void 0 ? t(B) : c("show", B));
|
|
1626
1626
|
}
|
|
1627
|
-
function
|
|
1627
|
+
function _(B) {
|
|
1628
1628
|
if (r.disable === !0) return;
|
|
1629
1629
|
const V = r["onUpdate:modelValue"] !== void 0;
|
|
1630
1630
|
V === !0 && (c("update:modelValue", !1), u = B, Ce(() => {
|
|
@@ -1638,11 +1638,11 @@ function Nn({
|
|
|
1638
1638
|
r.disable === !0 && B === !0 ? r["onUpdate:modelValue"] !== void 0 && c("update:modelValue", !1) : B === !0 !== e.value && (B === !0 ? h : x)(u);
|
|
1639
1639
|
}
|
|
1640
1640
|
ie(() => r.modelValue, y), l !== void 0 && Al(a) === !0 && ie(() => d.$route.fullPath, () => {
|
|
1641
|
-
l.value === !0 && e.value === !0 &&
|
|
1641
|
+
l.value === !0 && e.value === !0 && _();
|
|
1642
1642
|
}), i === !0 && xt(() => {
|
|
1643
1643
|
y(r.modelValue);
|
|
1644
1644
|
});
|
|
1645
|
-
const C = { show: b, hide:
|
|
1645
|
+
const C = { show: b, hide: _, toggle: g };
|
|
1646
1646
|
return Object.assign(d, C), C;
|
|
1647
1647
|
}
|
|
1648
1648
|
const co = {};
|
|
@@ -1688,7 +1688,7 @@ function Lr(e, n, l) {
|
|
|
1688
1688
|
e = Cn(e);
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
|
-
const zr =
|
|
1691
|
+
const zr = pe({
|
|
1692
1692
|
name: "QPortal",
|
|
1693
1693
|
setup(e, { slots: n }) {
|
|
1694
1694
|
return () => n.default();
|
|
@@ -1794,7 +1794,7 @@ function Fl() {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
};
|
|
1796
1796
|
}
|
|
1797
|
-
function
|
|
1797
|
+
function _l(e, n) {
|
|
1798
1798
|
const l = e.style;
|
|
1799
1799
|
for (const t in n)
|
|
1800
1800
|
l[t] = n[t];
|
|
@@ -1841,10 +1841,10 @@ function Nr() {
|
|
|
1841
1841
|
if (xn !== void 0)
|
|
1842
1842
|
return xn;
|
|
1843
1843
|
const e = document.createElement("p"), n = document.createElement("div");
|
|
1844
|
-
|
|
1844
|
+
_l(e, {
|
|
1845
1845
|
width: "100%",
|
|
1846
1846
|
height: "200px"
|
|
1847
|
-
}),
|
|
1847
|
+
}), _l(n, {
|
|
1848
1848
|
position: "absolute",
|
|
1849
1849
|
top: "0px",
|
|
1850
1850
|
left: "0px",
|
|
@@ -1982,7 +1982,7 @@ function Hl(e, n = 0) {
|
|
|
1982
1982
|
const $ = document.body.style, { offsetLeft: K, offsetTop: Y } = window.visualViewport;
|
|
1983
1983
|
K !== fo && ($.setProperty("--q-pe-left", K + "px"), fo = K), Y !== vo && ($.setProperty("--q-pe-top", Y + "px"), vo = Y);
|
|
1984
1984
|
}
|
|
1985
|
-
const { scrollLeft: b, scrollTop: h } = l,
|
|
1985
|
+
const { scrollLeft: b, scrollTop: h } = l, _ = r === void 0 ? Ur(o, d === !0 ? [0, 0] : t) : Wr(o, r, t);
|
|
1986
1986
|
Object.assign(l.style, {
|
|
1987
1987
|
top: 0,
|
|
1988
1988
|
left: 0,
|
|
@@ -1992,33 +1992,33 @@ function Hl(e, n = 0) {
|
|
|
1992
1992
|
maxHeight: u,
|
|
1993
1993
|
visibility: "visible"
|
|
1994
1994
|
});
|
|
1995
|
-
const { offsetWidth: x, offsetHeight: y } = l, { elWidth: C, elHeight: B } = c === !0 || d === !0 ? { elWidth: Math.max(
|
|
1995
|
+
const { offsetWidth: x, offsetHeight: y } = l, { elWidth: C, elHeight: B } = c === !0 || d === !0 ? { elWidth: Math.max(_.width, x), elHeight: d === !0 ? Math.max(_.height, y) : y } : { elWidth: x, elHeight: y };
|
|
1996
1996
|
let V = { maxWidth: g, maxHeight: u };
|
|
1997
|
-
(c === !0 || d === !0) && (V.minWidth =
|
|
1997
|
+
(c === !0 || d === !0) && (V.minWidth = _.width + "px", d === !0 && (V.minHeight = _.height + "px")), Object.assign(l.style, V);
|
|
1998
1998
|
const A = Kr(C, B);
|
|
1999
|
-
let j = ho(
|
|
1999
|
+
let j = ho(_, A, i, a);
|
|
2000
2000
|
if (r === void 0 || t === void 0)
|
|
2001
|
-
il(j,
|
|
2001
|
+
il(j, _, A, i, a);
|
|
2002
2002
|
else {
|
|
2003
2003
|
const { top: $, left: K } = j;
|
|
2004
|
-
il(j,
|
|
2004
|
+
il(j, _, A, i, a);
|
|
2005
2005
|
let Y = !1;
|
|
2006
2006
|
if (j.top !== $) {
|
|
2007
2007
|
Y = !0;
|
|
2008
2008
|
const Q = 2 * t[1];
|
|
2009
|
-
|
|
2009
|
+
_.center = _.top -= Q, _.bottom -= Q + 2;
|
|
2010
2010
|
}
|
|
2011
2011
|
if (j.left !== K) {
|
|
2012
2012
|
Y = !0;
|
|
2013
2013
|
const Q = 2 * t[0];
|
|
2014
|
-
|
|
2014
|
+
_.middle = _.left -= Q, _.right -= Q + 2;
|
|
2015
2015
|
}
|
|
2016
|
-
Y === !0 && (j = ho(
|
|
2016
|
+
Y === !0 && (j = ho(_, A, i, a), il(j, _, A, i, a));
|
|
2017
2017
|
}
|
|
2018
2018
|
V = {
|
|
2019
2019
|
top: j.top + "px",
|
|
2020
2020
|
left: j.left + "px"
|
|
2021
|
-
}, j.maxHeight !== void 0 && (V.maxHeight = j.maxHeight + "px",
|
|
2021
|
+
}, j.maxHeight !== void 0 && (V.maxHeight = j.maxHeight + "px", _.height > j.maxHeight && (V.minHeight = V.maxHeight)), j.maxWidth !== void 0 && (V.maxWidth = j.maxWidth + "px", _.width > j.maxWidth && (V.minWidth = V.maxWidth)), Object.assign(l.style, V), l.scrollTop !== h && (l.scrollTop = h), l.scrollLeft !== b && (l.scrollLeft = b);
|
|
2022
2022
|
}
|
|
2023
2023
|
function il(e, n, l, t, o) {
|
|
2024
2024
|
const i = l.bottom, a = l.right, r = Nr(), c = window.innerHeight - r, d = document.body.clientWidth;
|
|
@@ -2051,7 +2051,7 @@ function il(e, n, l, t, o) {
|
|
|
2051
2051
|
t.horizontal === "middle" ? n.middle : t.horizontal === o.horizontal ? n.left : n.right
|
|
2052
2052
|
), e.maxWidth = Math.min(a, d - e.left);
|
|
2053
2053
|
}
|
|
2054
|
-
const
|
|
2054
|
+
const _e = pe({
|
|
2055
2055
|
name: "QTooltip",
|
|
2056
2056
|
inheritAttrs: !1,
|
|
2057
2057
|
props: {
|
|
@@ -2105,7 +2105,7 @@ const pe = _e({
|
|
|
2105
2105
|
],
|
|
2106
2106
|
setup(e, { slots: n, emit: l, attrs: t }) {
|
|
2107
2107
|
let o, i;
|
|
2108
|
-
const a = ye(), { proxy: { $q: r } } = a, c = N(null), d = N(!1), u = s(() => Mn(e.anchor, r.lang.rtl)), g = s(() => Mn(e.self, r.lang.rtl)), b = s(() => e.persistent !== !0), { registerTick: h, removeTick:
|
|
2108
|
+
const a = ye(), { proxy: { $q: r } } = a, c = N(null), d = N(!1), u = s(() => Mn(e.anchor, r.lang.rtl)), g = s(() => Mn(e.self, r.lang.rtl)), b = s(() => e.persistent !== !0), { registerTick: h, removeTick: _ } = jl(), { registerTimeout: x } = Fl(), { transitionProps: y, transitionStyle: C } = zl(e), { localScrollTarget: B, changeScrollEvent: V, unconfigureScrollTarget: A } = ia(e, oe), { anchorEl: j, canShow: $, anchorEvents: K } = ra({ showing: d, configureAnchorEl: S }), { show: Y, hide: Q } = Nn({
|
|
2109
2109
|
showing: d,
|
|
2110
2110
|
canShow: $,
|
|
2111
2111
|
handleShow: O,
|
|
@@ -2114,7 +2114,7 @@ const pe = _e({
|
|
|
2114
2114
|
processOnMount: !0
|
|
2115
2115
|
});
|
|
2116
2116
|
Object.assign(K, { delayShow: F, delayHide: E });
|
|
2117
|
-
const { showPortal: q, hidePortal: w, renderPortal: R } = Ll(a, c,
|
|
2117
|
+
const { showPortal: q, hidePortal: w, renderPortal: R } = Ll(a, c, p, "tooltip");
|
|
2118
2118
|
if (r.platform.is.mobile === !0) {
|
|
2119
2119
|
const z = {
|
|
2120
2120
|
anchorEl: j,
|
|
@@ -2146,7 +2146,7 @@ const pe = _e({
|
|
|
2146
2146
|
}, e.transitionDuration);
|
|
2147
2147
|
}
|
|
2148
2148
|
function P(z) {
|
|
2149
|
-
|
|
2149
|
+
_(), w(), W(), x(() => {
|
|
2150
2150
|
w(!0), l("hide", z);
|
|
2151
2151
|
}, e.transitionDuration);
|
|
2152
2152
|
}
|
|
@@ -2166,7 +2166,7 @@ const pe = _e({
|
|
|
2166
2166
|
}
|
|
2167
2167
|
function F(z) {
|
|
2168
2168
|
if (r.platform.is.mobile === !0) {
|
|
2169
|
-
|
|
2169
|
+
pl(), document.body.classList.add("non-selectable");
|
|
2170
2170
|
const M = j.value, U = ["touchmove", "touchcancel", "touchend", "click"].map((J) => [M, J, "delayHide", "passiveCapture"]);
|
|
2171
2171
|
ln(K, "tooltipTemp", U);
|
|
2172
2172
|
}
|
|
@@ -2175,7 +2175,7 @@ const pe = _e({
|
|
|
2175
2175
|
}, e.delay);
|
|
2176
2176
|
}
|
|
2177
2177
|
function E(z) {
|
|
2178
|
-
r.platform.is.mobile === !0 && (Pn(K, "tooltipTemp"),
|
|
2178
|
+
r.platform.is.mobile === !0 && (Pn(K, "tooltipTemp"), pl(), setTimeout(() => {
|
|
2179
2179
|
document.body.classList.remove("non-selectable");
|
|
2180
2180
|
}, 10)), x(() => {
|
|
2181
2181
|
Q(z);
|
|
@@ -2213,7 +2213,7 @@ const pe = _e({
|
|
|
2213
2213
|
role: "tooltip"
|
|
2214
2214
|
}, Ve(n.default)) : null;
|
|
2215
2215
|
}
|
|
2216
|
-
function
|
|
2216
|
+
function p() {
|
|
2217
2217
|
return v(Tt, y.value, f);
|
|
2218
2218
|
}
|
|
2219
2219
|
return ze(W), Object.assign(a.proxy, { updatePosition: ae }), R;
|
|
@@ -2232,8 +2232,8 @@ function mo(e, n, l, t) {
|
|
|
2232
2232
|
const o = l.modifiers.color;
|
|
2233
2233
|
let i = l.modifiers.center;
|
|
2234
2234
|
i = i === !0 || t === !0;
|
|
2235
|
-
const a = document.createElement("span"), r = document.createElement("span"), c = Jo(e), { left: d, top: u, width: g, height: b } = n.getBoundingClientRect(), h = Math.sqrt(g * g + b * b),
|
|
2236
|
-
r.className = "q-ripple__inner",
|
|
2235
|
+
const a = document.createElement("span"), r = document.createElement("span"), c = Jo(e), { left: d, top: u, width: g, height: b } = n.getBoundingClientRect(), h = Math.sqrt(g * g + b * b), _ = h / 2, x = `${(g - h) / 2}px`, y = i ? x : `${c.left - d - _}px`, C = `${(b - h) / 2}px`, B = i ? C : `${c.top - u - _}px`;
|
|
2236
|
+
r.className = "q-ripple__inner", _l(r, {
|
|
2237
2237
|
height: `${h}px`,
|
|
2238
2238
|
width: `${h}px`,
|
|
2239
2239
|
transform: `translate3d(${y},${B},0) scale3d(.2,.2,1)`,
|
|
@@ -2276,7 +2276,7 @@ const va = $o(
|
|
|
2276
2276
|
t.enabled === !0 && o.qSkipRipple !== !0 && o.type === (t.modifiers.early === !0 ? "pointerdown" : "click") && mo(o, e, t, o.qKeyEvent === !0);
|
|
2277
2277
|
},
|
|
2278
2278
|
keystart: Qr((o) => {
|
|
2279
|
-
t.enabled === !0 && o.qSkipRipple !== !0 &&
|
|
2279
|
+
t.enabled === !0 && o.qSkipRipple !== !0 && _t(o, t.modifiers.keyCodes) === !0 && o.type === `key${t.modifiers.early === !0 ? "down" : "up"}` && mo(o, e, t, !0);
|
|
2280
2280
|
}, 300)
|
|
2281
2281
|
};
|
|
2282
2282
|
go(t, n), e.__qripple = t, ln(t, "main", [
|
|
@@ -2336,11 +2336,11 @@ function Jr(e, n) {
|
|
|
2336
2336
|
}
|
|
2337
2337
|
return !0;
|
|
2338
2338
|
}
|
|
2339
|
-
function
|
|
2339
|
+
function po(e, n) {
|
|
2340
2340
|
return Array.isArray(n) === !0 ? e.length === n.length && e.every((l, t) => l === n[t]) : e.length === 1 && e[0] === n;
|
|
2341
2341
|
}
|
|
2342
2342
|
function Zr(e, n) {
|
|
2343
|
-
return Array.isArray(e) === !0 ?
|
|
2343
|
+
return Array.isArray(e) === !0 ? po(e, n) : Array.isArray(n) === !0 ? po(n, e) : e === n;
|
|
2344
2344
|
}
|
|
2345
2345
|
function ei(e, n) {
|
|
2346
2346
|
if (Object.keys(e).length !== Object.keys(n).length)
|
|
@@ -2383,7 +2383,7 @@ function ga({ fallbackTag: e, useDisableForRouterLinkProps: n = !0 } = {}) {
|
|
|
2383
2383
|
} : u.value === !0 ? {
|
|
2384
2384
|
href: d.value.href,
|
|
2385
2385
|
target: t.target
|
|
2386
|
-
} : {}),
|
|
2386
|
+
} : {}), _ = s(() => {
|
|
2387
2387
|
if (u.value === !1)
|
|
2388
2388
|
return -1;
|
|
2389
2389
|
const { matched: j } = d.value, { length: $ } = j, K = j[$ - 1];
|
|
@@ -2405,9 +2405,9 @@ function ga({ fallbackTag: e, useDisableForRouterLinkProps: n = !0 } = {}) {
|
|
|
2405
2405
|
) : Q
|
|
2406
2406
|
);
|
|
2407
2407
|
}), x = s(
|
|
2408
|
-
() => u.value === !0 &&
|
|
2408
|
+
() => u.value === !0 && _.value !== -1 && Jr(o.$route.params, d.value.params)
|
|
2409
2409
|
), y = s(
|
|
2410
|
-
() => x.value === !0 &&
|
|
2410
|
+
() => x.value === !0 && _.value === o.$route.matched.length - 1 && ei(o.$route.params, d.value.params)
|
|
2411
2411
|
), C = s(() => u.value === !0 ? y.value === !0 ? ` ${t.exactActiveClass} ${t.activeClass}` : t.exact === !0 ? "" : x.value === !0 ? ` ${t.activeClass}` : "" : "");
|
|
2412
2412
|
function B(j) {
|
|
2413
2413
|
try {
|
|
@@ -2453,7 +2453,7 @@ function ga({ fallbackTag: e, useDisableForRouterLinkProps: n = !0 } = {}) {
|
|
|
2453
2453
|
navigateOnClick: A
|
|
2454
2454
|
};
|
|
2455
2455
|
}
|
|
2456
|
-
const
|
|
2456
|
+
const _o = {
|
|
2457
2457
|
none: 0,
|
|
2458
2458
|
xs: 4,
|
|
2459
2459
|
sm: 8,
|
|
@@ -2526,7 +2526,7 @@ function si(e) {
|
|
|
2526
2526
|
}), c = s(() => {
|
|
2527
2527
|
const y = e.fab === !1 && e.fabMini === !1 ? n.value : {};
|
|
2528
2528
|
return e.padding !== void 0 ? Object.assign({}, y, {
|
|
2529
|
-
padding: e.padding.split(/\s+/).map((C) => C in
|
|
2529
|
+
padding: e.padding.split(/\s+/).map((C) => C in _o ? _o[C] + "px" : C).join(" "),
|
|
2530
2530
|
minWidth: "0",
|
|
2531
2531
|
minHeight: "0"
|
|
2532
2532
|
}) : y;
|
|
@@ -2542,7 +2542,7 @@ function si(e) {
|
|
|
2542
2542
|
"aria-valuemax": 100,
|
|
2543
2543
|
"aria-valuenow": e.percentage
|
|
2544
2544
|
}), y;
|
|
2545
|
-
}),
|
|
2545
|
+
}), _ = s(() => {
|
|
2546
2546
|
let y;
|
|
2547
2547
|
e.color !== void 0 ? e.flat === !0 || e.outline === !0 ? y = `text-${e.textColor || e.color}` : y = `bg-${e.color} text-${e.textColor || "white"}` : e.textColor && (y = `text-${e.textColor}`);
|
|
2548
2548
|
const C = e.round === !0 ? "round" : `rectangle${d.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
|
|
@@ -2551,7 +2551,7 @@ function si(e) {
|
|
|
2551
2551
|
() => l.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
|
|
2552
2552
|
);
|
|
2553
2553
|
return {
|
|
2554
|
-
classes:
|
|
2554
|
+
classes: _,
|
|
2555
2555
|
style: c,
|
|
2556
2556
|
innerClasses: x,
|
|
2557
2557
|
attributes: h,
|
|
@@ -2563,7 +2563,7 @@ function si(e) {
|
|
|
2563
2563
|
}
|
|
2564
2564
|
const { passiveCapture: Je } = Ne;
|
|
2565
2565
|
let Dt = null, Ht = null, Nt = null;
|
|
2566
|
-
const ve =
|
|
2566
|
+
const ve = pe({
|
|
2567
2567
|
name: "QBtn",
|
|
2568
2568
|
props: {
|
|
2569
2569
|
...ii,
|
|
@@ -2583,7 +2583,7 @@ const ve = _e({
|
|
|
2583
2583
|
navigateOnClick: u,
|
|
2584
2584
|
isActionable: g
|
|
2585
2585
|
} = si(e), b = N(null), h = N(null);
|
|
2586
|
-
let
|
|
2586
|
+
let _ = null, x, y = null;
|
|
2587
2587
|
const C = s(
|
|
2588
2588
|
() => e.label !== void 0 && e.label !== null && e.label !== ""
|
|
2589
2589
|
), B = s(() => e.disable === !0 || e.ripple === !1 ? !1 : {
|
|
@@ -2641,10 +2641,10 @@ const ve = _e({
|
|
|
2641
2641
|
}
|
|
2642
2642
|
}
|
|
2643
2643
|
function Y(P) {
|
|
2644
|
-
b.value !== null && (l("keydown", P),
|
|
2644
|
+
b.value !== null && (l("keydown", P), _t(P, [13, 32]) === !0 && Ht !== b.value && (Ht !== null && R(), P.defaultPrevented !== !0 && (P.qAvoidFocus !== !0 && b.value.focus(), Ht = b.value, b.value.classList.add("q-btn--active"), document.addEventListener("keyup", w, !0), b.value.addEventListener("blur", w, Je)), Me(P)));
|
|
2645
2645
|
}
|
|
2646
2646
|
function Q(P) {
|
|
2647
|
-
b.value !== null && (l("touchstart", P), P.defaultPrevented !== !0 && (Dt !== b.value && (Dt !== null && R(), Dt = b.value,
|
|
2647
|
+
b.value !== null && (l("touchstart", P), P.defaultPrevented !== !0 && (Dt !== b.value && (Dt !== null && R(), Dt = b.value, _ = P.target, _.addEventListener("touchcancel", w, Je), _.addEventListener("touchend", w, Je)), x = !0, y !== null && clearTimeout(y), y = setTimeout(() => {
|
|
2648
2648
|
y = null, x = !1;
|
|
2649
2649
|
}, 200)));
|
|
2650
2650
|
}
|
|
@@ -2654,7 +2654,7 @@ const ve = _e({
|
|
|
2654
2654
|
function w(P) {
|
|
2655
2655
|
if (b.value !== null && !(P?.type === "blur" && document.activeElement === b.value)) {
|
|
2656
2656
|
if (P?.type === "keyup") {
|
|
2657
|
-
if (Ht === b.value &&
|
|
2657
|
+
if (Ht === b.value && _t(P, [13, 32]) === !0) {
|
|
2658
2658
|
const W = new MouseEvent("click", P);
|
|
2659
2659
|
W.qKeyEvent = !0, P.defaultPrevented === !0 && st(W), P.cancelBubble === !0 && ft(W), b.value.dispatchEvent(W), Me(P), P.qKeyEvent = !0;
|
|
2660
2660
|
}
|
|
@@ -2665,7 +2665,7 @@ const ve = _e({
|
|
|
2665
2665
|
}
|
|
2666
2666
|
function R(P) {
|
|
2667
2667
|
const W = h.value;
|
|
2668
|
-
P !== !0 && (Dt === b.value || Nt === b.value) && W !== null && W !== document.activeElement && (W.setAttribute("tabindex", -1), W.focus()), Dt === b.value && (
|
|
2668
|
+
P !== !0 && (Dt === b.value || Nt === b.value) && W !== null && W !== document.activeElement && (W.setAttribute("tabindex", -1), W.focus()), Dt === b.value && (_ !== null && (_.removeEventListener("touchcancel", w, Je), _.removeEventListener("touchend", w, Je)), Dt = _ = null), Nt === b.value && (document.removeEventListener("mouseup", w, Je), Nt = null), Ht === b.value && (document.removeEventListener("keyup", w, !0), b.value?.removeEventListener("blur", w, Je), Ht = null), b.value?.classList.remove("q-btn--active");
|
|
2669
2669
|
}
|
|
2670
2670
|
function O(P) {
|
|
2671
2671
|
Me(P), P.qSkipRipple = !0;
|
|
@@ -2860,7 +2860,7 @@ function Of(...e) {
|
|
|
2860
2860
|
return o.length > 0 ? Math.max(...o) : -1;
|
|
2861
2861
|
};
|
|
2862
2862
|
}
|
|
2863
|
-
const fi = (e) => je(1, e === null), vi = (e) => je(1, e === void 0), hi = (e) => je(1, typeof e == "boolean"), mi = (e) => je(1, typeof e == "number" && !isNaN(e)), gi = (e) => je(1, typeof e == "string"), bi = (e) => je(1, Array.isArray(e)),
|
|
2863
|
+
const fi = (e) => je(1, e === null), vi = (e) => je(1, e === void 0), hi = (e) => je(1, typeof e == "boolean"), mi = (e) => je(1, typeof e == "number" && !isNaN(e)), gi = (e) => je(1, typeof e == "string"), bi = (e) => je(1, Array.isArray(e)), pa = (e) => je(1, typeof e == "object" && e !== null && !Array.isArray(e)), yi = /^https?:\/\/[^\s]+$/i, pi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, _i = /^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?(Z|[+-]\d{2}:\d{2})?)?$/, xi = /^[A-Za-z0-9+/]+=*$/, wi = /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/, Si = /^rgba?\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*(,\s*[\d.]+\s*)?\)$/i, ki = /<\s*(html|head|body|div|span|p|a|img|table|form|input|button|script|style|link|meta|header|footer|nav|section|article|aside|main|h[1-6]|ul|ol|li|br|hr)\b[^>]*>/i, qi = (e) => je(10, typeof e == "string" && yi.test(e)), Ci = (e) => je(10, typeof e == "string" && pi.test(e)), Ri = (e) => je(10, typeof e == "string" && _i.test(e)), Ei = (e) => je(
|
|
2864
2864
|
5,
|
|
2865
2865
|
typeof e == "string" && e.length > 100 && e.length % 4 === 0 && xi.test(e)
|
|
2866
2866
|
), Pi = (e) => je(
|
|
@@ -2885,7 +2885,7 @@ const fi = (e) => je(1, e === null), vi = (e) => je(1, e === void 0), hi = (e) =
|
|
|
2885
2885
|
return -1;
|
|
2886
2886
|
const n = Object.keys(e[0]).sort().join(","), l = e.every((t) => Object.keys(t).sort().join(",") === n);
|
|
2887
2887
|
return je(10, l);
|
|
2888
|
-
}, Mi = (e) => je(5,
|
|
2888
|
+
}, Mi = (e) => je(5, pa(e) > 0 && Object.keys(e).length === 0), Ai = (e) => {
|
|
2889
2889
|
if (typeof e != "object" || e === null || Array.isArray(e)) return -1;
|
|
2890
2890
|
const n = e, l = "status" in n && typeof n.status == "number", t = "headers" in n && typeof n.headers == "object", o = "body" in n;
|
|
2891
2891
|
return je(100, l && t && o);
|
|
@@ -3070,7 +3070,7 @@ function ss(e, n, l, t, o, i) {
|
|
|
3070
3070
|
onClick: yt(t.openUrl, ["stop"])
|
|
3071
3071
|
}, {
|
|
3072
3072
|
default: H(() => [
|
|
3073
|
-
D(
|
|
3073
|
+
D(_e, null, {
|
|
3074
3074
|
default: H(() => [...n[1] || (n[1] = [
|
|
3075
3075
|
ce(
|
|
3076
3076
|
"Open in new tab",
|
|
@@ -3175,7 +3175,7 @@ function ys(e) {
|
|
|
3175
3175
|
function wl(e) {
|
|
3176
3176
|
return e < 200 ? "info" : e < 300 ? "success" : e < 400 ? "redirect" : e < 500 ? "client-error" : "server-error";
|
|
3177
3177
|
}
|
|
3178
|
-
function
|
|
3178
|
+
function ps(e) {
|
|
3179
3179
|
switch (wl(e)) {
|
|
3180
3180
|
case "success":
|
|
3181
3181
|
return "positive";
|
|
@@ -3189,7 +3189,7 @@ function _s(e) {
|
|
|
3189
3189
|
return "grey";
|
|
3190
3190
|
}
|
|
3191
3191
|
}
|
|
3192
|
-
const
|
|
3192
|
+
const _s = /* @__PURE__ */ Te({
|
|
3193
3193
|
__name: "DateRenderer",
|
|
3194
3194
|
props: {
|
|
3195
3195
|
context: { type: Object, required: !0 }
|
|
@@ -3234,7 +3234,7 @@ function ks(e, n, l, t, o, i) {
|
|
|
3234
3234
|
)
|
|
3235
3235
|
]);
|
|
3236
3236
|
}
|
|
3237
|
-
const xo = /* @__PURE__ */ Ae(
|
|
3237
|
+
const xo = /* @__PURE__ */ Ae(_s, [["render", ks], ["__scopeId", "data-v-64972e62"], ["__file", "/Users/zachsherbondy/src/github.com/quickview/renderers/smart/DateRenderer.vue"]]), qs = /* @__PURE__ */ Te({
|
|
3238
3238
|
__name: "ColorRenderer",
|
|
3239
3239
|
props: {
|
|
3240
3240
|
context: { type: Object, required: !0 }
|
|
@@ -3251,7 +3251,7 @@ function Es(e, n, l, t, o, i) {
|
|
|
3251
3251
|
"span",
|
|
3252
3252
|
{
|
|
3253
3253
|
class: "color-swatch",
|
|
3254
|
-
style:
|
|
3254
|
+
style: pt({ background: t.colorValue })
|
|
3255
3255
|
},
|
|
3256
3256
|
null,
|
|
3257
3257
|
4
|
|
@@ -3324,7 +3324,7 @@ function Ms(e, n, l, t, o, i) {
|
|
|
3324
3324
|
onClick: t.copyValue
|
|
3325
3325
|
}, {
|
|
3326
3326
|
default: H(() => [
|
|
3327
|
-
D(
|
|
3327
|
+
D(_e, null, {
|
|
3328
3328
|
default: H(() => [...n[1] || (n[1] = [
|
|
3329
3329
|
ce(
|
|
3330
3330
|
"Copy full text",
|
|
@@ -3359,7 +3359,7 @@ function Ms(e, n, l, t, o, i) {
|
|
|
3359
3359
|
)
|
|
3360
3360
|
]);
|
|
3361
3361
|
}
|
|
3362
|
-
const As = /* @__PURE__ */ Ae(Vs, [["render", Ms], ["__scopeId", "data-v-06922b61"], ["__file", "/Users/zachsherbondy/src/github.com/quickview/renderers/smart/LongStringRenderer.vue"]]), Ul =
|
|
3362
|
+
const As = /* @__PURE__ */ Ae(Vs, [["render", Ms], ["__scopeId", "data-v-06922b61"], ["__file", "/Users/zachsherbondy/src/github.com/quickview/renderers/smart/LongStringRenderer.vue"]]), Ul = pe({
|
|
3363
3363
|
name: "QBtnGroup",
|
|
3364
3364
|
props: {
|
|
3365
3365
|
unelevated: Boolean,
|
|
@@ -3406,8 +3406,8 @@ const As = /* @__PURE__ */ Ae(Vs, [["render", Ms], ["__scopeId", "data-v-06922b6
|
|
|
3406
3406
|
}), u = s(() => {
|
|
3407
3407
|
if (!d.value) return "";
|
|
3408
3408
|
const h = atob(i.value.slice(0, 20));
|
|
3409
|
-
let
|
|
3410
|
-
return h.startsWith("ÿØÿ") ?
|
|
3409
|
+
let _ = "image/png";
|
|
3410
|
+
return h.startsWith("ÿØÿ") ? _ = "image/jpeg" : h.startsWith("GIF8") && (_ = "image/gif"), `data:${_};base64,${i.value}`;
|
|
3411
3411
|
});
|
|
3412
3412
|
async function g() {
|
|
3413
3413
|
await Kn(i.value) && t.notify({ message: "Copied to clipboard", icon: "check" });
|
|
@@ -3453,7 +3453,7 @@ function $s(e, n, l, t, o, i) {
|
|
|
3453
3453
|
onClick: n[0] || (n[0] = (a) => t.showDecoded = !t.showDecoded)
|
|
3454
3454
|
}, {
|
|
3455
3455
|
default: H(() => [
|
|
3456
|
-
D(
|
|
3456
|
+
D(_e, null, {
|
|
3457
3457
|
default: H(() => [
|
|
3458
3458
|
ce(
|
|
3459
3459
|
re(t.showDecoded ? "Show encoded" : "Decode"),
|
|
@@ -3476,7 +3476,7 @@ function $s(e, n, l, t, o, i) {
|
|
|
3476
3476
|
onClick: t.copyValue
|
|
3477
3477
|
}, {
|
|
3478
3478
|
default: H(() => [
|
|
3479
|
-
D(
|
|
3479
|
+
D(_e, null, {
|
|
3480
3480
|
default: H(() => [...n[1] || (n[1] = [
|
|
3481
3481
|
ce(
|
|
3482
3482
|
"Copy",
|
|
@@ -3587,7 +3587,7 @@ function Ys(e, n, l, t, o, i) {
|
|
|
3587
3587
|
))
|
|
3588
3588
|
]);
|
|
3589
3589
|
}
|
|
3590
|
-
const Js = /* @__PURE__ */ Ae(Ws, [["render", Ys], ["__scopeId", "data-v-e8c37fcb"], ["__file", "/Users/zachsherbondy/src/github.com/quickview/renderers/smart/JsonStringRenderer.vue"]]), Zs =
|
|
3590
|
+
const Js = /* @__PURE__ */ Ae(Ws, [["render", Ys], ["__scopeId", "data-v-e8c37fcb"], ["__file", "/Users/zachsherbondy/src/github.com/quickview/renderers/smart/JsonStringRenderer.vue"]]), Zs = pe({
|
|
3591
3591
|
name: "QBtnToggle",
|
|
3592
3592
|
props: {
|
|
3593
3593
|
...In,
|
|
@@ -3645,13 +3645,13 @@ const Js = /* @__PURE__ */ Ae(Ws, [["render", Ys], ["__scopeId", "data-v-e8c37fc
|
|
|
3645
3645
|
dense: e.dense,
|
|
3646
3646
|
...a.value
|
|
3647
3647
|
})), c = s(() => e.options.map((b, h) => {
|
|
3648
|
-
const { attrs:
|
|
3648
|
+
const { attrs: _, value: x, slot: y, ...C } = b;
|
|
3649
3649
|
return {
|
|
3650
3650
|
slot: y,
|
|
3651
3651
|
props: {
|
|
3652
3652
|
key: h,
|
|
3653
3653
|
"aria-pressed": x === e.modelValue ? "true" : "false",
|
|
3654
|
-
...
|
|
3654
|
+
..._,
|
|
3655
3655
|
...C,
|
|
3656
3656
|
...r.value,
|
|
3657
3657
|
disable: e.disable === !0 || C.disable === !0,
|
|
@@ -3671,8 +3671,8 @@ const Js = /* @__PURE__ */ Ae(Ws, [["render", Ys], ["__scopeId", "data-v-e8c37fc
|
|
|
3671
3671
|
}
|
|
3672
3672
|
};
|
|
3673
3673
|
}));
|
|
3674
|
-
function d(b, h,
|
|
3675
|
-
e.readonly !== !0 && (e.modelValue === b ? e.clearable === !0 && (l("update:modelValue", null, null), l("clear")) : l("update:modelValue", b, h), l("click",
|
|
3674
|
+
function d(b, h, _) {
|
|
3675
|
+
e.readonly !== !0 && (e.modelValue === b ? e.clearable === !0 && (l("update:modelValue", null, null), l("clear")) : l("update:modelValue", b, h), l("click", _));
|
|
3676
3676
|
}
|
|
3677
3677
|
function u(b, h) {
|
|
3678
3678
|
return b[h] === void 0 ? e[h] : b[h];
|
|
@@ -3717,23 +3717,23 @@ const Js = /* @__PURE__ */ Ae(Ws, [["render", Ys], ["__scopeId", "data-v-e8c37fc
|
|
|
3717
3717
|
C === "preview" && setTimeout(g, 50);
|
|
3718
3718
|
});
|
|
3719
3719
|
function b(C) {
|
|
3720
|
-
a.value = !0, r.value = C.clientY, c.value = i.value, document.addEventListener("mousemove", h), document.addEventListener("mouseup",
|
|
3720
|
+
a.value = !0, r.value = C.clientY, c.value = i.value, document.addEventListener("mousemove", h), document.addEventListener("mouseup", _), document.body.style.cursor = "ns-resize", document.body.style.userSelect = "none";
|
|
3721
3721
|
}
|
|
3722
3722
|
function h(C) {
|
|
3723
3723
|
if (!a.value) return;
|
|
3724
3724
|
const B = C.clientY - r.value, V = c.value + B;
|
|
3725
3725
|
i.value = Math.min(Math.max(V, sl), wo);
|
|
3726
3726
|
}
|
|
3727
|
-
function
|
|
3728
|
-
a.value = !1, document.removeEventListener("mousemove", h), document.removeEventListener("mouseup",
|
|
3727
|
+
function _() {
|
|
3728
|
+
a.value = !1, document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", _), document.body.style.cursor = "", document.body.style.userSelect = "";
|
|
3729
3729
|
}
|
|
3730
3730
|
No(() => {
|
|
3731
|
-
a.value &&
|
|
3731
|
+
a.value && _();
|
|
3732
3732
|
});
|
|
3733
3733
|
function x() {
|
|
3734
3734
|
l.context.onCopy ? l.context.onCopy(d.value, l.context.path) : navigator.clipboard.writeText(d.value);
|
|
3735
3735
|
}
|
|
3736
|
-
const y = { props: l, viewMode: t, iframeRef: o, frameHeight: i, isResizing: a, resizeStartY: r, resizeStartHeight: c, minHeight: sl, maxHeight: wo, htmlContent: d, onIframeLoad: u, adjustIframeHeight: g, startResize: b, onResize: h, stopResize:
|
|
3736
|
+
const y = { props: l, viewMode: t, iframeRef: o, frameHeight: i, isResizing: a, resizeStartY: r, resizeStartHeight: c, minHeight: sl, maxHeight: wo, htmlContent: d, onIframeLoad: u, adjustIframeHeight: g, startResize: b, onResize: h, stopResize: _, copyHtml: x };
|
|
3737
3737
|
return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
|
|
3738
3738
|
}
|
|
3739
3739
|
}), tu = { class: "qv-html-string" }, nu = { class: "html-header" }, lu = {
|
|
@@ -3796,7 +3796,7 @@ function iu(e, n, l, t, o, i) {
|
|
|
3796
3796
|
"div",
|
|
3797
3797
|
{
|
|
3798
3798
|
class: "html-preview",
|
|
3799
|
-
style:
|
|
3799
|
+
style: pt({ height: t.frameHeight + "px" })
|
|
3800
3800
|
},
|
|
3801
3801
|
[
|
|
3802
3802
|
t.isResizing ? (L(), Z("div", au)) : ee("v-if", !0),
|
|
@@ -3831,7 +3831,7 @@ function iu(e, n, l, t, o, i) {
|
|
|
3831
3831
|
]))
|
|
3832
3832
|
]);
|
|
3833
3833
|
}
|
|
3834
|
-
const su = /* @__PURE__ */ Ae(eu, [["render", iu], ["__scopeId", "data-v-b917019a"], ["__file", "/Users/zachsherbondy/src/github.com/quickview/renderers/smart/HtmlStringRenderer.vue"]]), uu = ["ul", "ol"],
|
|
3834
|
+
const su = /* @__PURE__ */ Ae(eu, [["render", iu], ["__scopeId", "data-v-b917019a"], ["__file", "/Users/zachsherbondy/src/github.com/quickview/renderers/smart/HtmlStringRenderer.vue"]]), uu = ["ul", "ol"], _a = pe({
|
|
3835
3835
|
name: "QList",
|
|
3836
3836
|
props: {
|
|
3837
3837
|
...tt,
|
|
@@ -3852,7 +3852,7 @@ const su = /* @__PURE__ */ Ae(eu, [["render", iu], ["__scopeId", "data-v-b917019
|
|
|
3852
3852
|
);
|
|
3853
3853
|
return () => v(e.tag, { class: i.value, role: o.value }, Ve(n.default));
|
|
3854
3854
|
}
|
|
3855
|
-
}), cu = ["horizontal", "vertical", "cell", "none"], du =
|
|
3855
|
+
}), cu = ["horizontal", "vertical", "cell", "none"], du = pe({
|
|
3856
3856
|
name: "QMarkupTable",
|
|
3857
3857
|
props: {
|
|
3858
3858
|
...tt,
|
|
@@ -3989,7 +3989,7 @@ function qa({
|
|
|
3989
3989
|
}) {
|
|
3990
3990
|
const o = ye(), { props: i, emit: a, proxy: r } = o, { $q: c } = r;
|
|
3991
3991
|
let d, u, g, b = [], h;
|
|
3992
|
-
const
|
|
3992
|
+
const _ = N(0), x = N(0), y = N({}), C = N(null), B = N(null), V = N(null), A = N({ from: 0, to: 0 }), j = s(() => i.tableColspan !== void 0 ? i.tableColspan : 100);
|
|
3993
3993
|
t === void 0 && (t = s(() => i.virtualScrollItemSize));
|
|
3994
3994
|
const $ = s(() => t.value + ";" + i.virtualScrollHorizontal), K = s(
|
|
3995
3995
|
() => $.value + ";" + i.virtualScrollSliceRatioBefore + ";" + i.virtualScrollSliceRatioAfter
|
|
@@ -4003,7 +4003,7 @@ function qa({
|
|
|
4003
4003
|
function Q(f) {
|
|
4004
4004
|
W(f === void 0 ? u : f);
|
|
4005
4005
|
}
|
|
4006
|
-
function q(f,
|
|
4006
|
+
function q(f, p) {
|
|
4007
4007
|
const z = n();
|
|
4008
4008
|
if (z == null || z.nodeType === 8) return;
|
|
4009
4009
|
const M = ul(
|
|
@@ -4021,13 +4021,13 @@ function qa({
|
|
|
4021
4021
|
M,
|
|
4022
4022
|
Math.min(e.value - 1, Math.max(0, parseInt(f, 10) || 0)),
|
|
4023
4023
|
0,
|
|
4024
|
-
fu.indexOf(
|
|
4024
|
+
fu.indexOf(p) !== -1 ? p : u !== -1 && f > u ? "end" : "start"
|
|
4025
4025
|
);
|
|
4026
4026
|
}
|
|
4027
4027
|
function w() {
|
|
4028
4028
|
const f = n();
|
|
4029
4029
|
if (f == null || f.nodeType === 8) return;
|
|
4030
|
-
const
|
|
4030
|
+
const p = ul(
|
|
4031
4031
|
f,
|
|
4032
4032
|
l(),
|
|
4033
4033
|
C.value,
|
|
@@ -4036,42 +4036,42 @@ function qa({
|
|
|
4036
4036
|
c.lang.rtl,
|
|
4037
4037
|
i.virtualScrollStickySizeStart,
|
|
4038
4038
|
i.virtualScrollStickySizeEnd
|
|
4039
|
-
), z = e.value - 1, M =
|
|
4040
|
-
if (d ===
|
|
4041
|
-
if (
|
|
4042
|
-
R(f,
|
|
4039
|
+
), z = e.value - 1, M = p.scrollMaxSize - p.offsetStart - p.offsetEnd - x.value;
|
|
4040
|
+
if (d === p.scrollStart) return;
|
|
4041
|
+
if (p.scrollMaxSize <= 0) {
|
|
4042
|
+
R(f, p, 0, 0);
|
|
4043
4043
|
return;
|
|
4044
4044
|
}
|
|
4045
|
-
g !==
|
|
4046
|
-
const U = Math.floor(
|
|
4047
|
-
if (U > 0 && Math.ceil(
|
|
4045
|
+
g !== p.scrollViewSize && ae(p.scrollViewSize), O(A.value.from);
|
|
4046
|
+
const U = Math.floor(p.scrollMaxSize - Math.max(p.scrollViewSize, p.offsetEnd) - Math.min(h[z], p.scrollViewSize / 2));
|
|
4047
|
+
if (U > 0 && Math.ceil(p.scrollStart) >= U) {
|
|
4048
4048
|
R(
|
|
4049
4049
|
f,
|
|
4050
|
-
|
|
4050
|
+
p,
|
|
4051
4051
|
z,
|
|
4052
|
-
|
|
4052
|
+
p.scrollMaxSize - p.offsetEnd - b.reduce(Wt, 0)
|
|
4053
4053
|
);
|
|
4054
4054
|
return;
|
|
4055
4055
|
}
|
|
4056
|
-
let J = 0, G =
|
|
4057
|
-
if (G <= M && G +
|
|
4058
|
-
G -=
|
|
4056
|
+
let J = 0, G = p.scrollStart - p.offsetStart, fe = G;
|
|
4057
|
+
if (G <= M && G + p.scrollViewSize >= _.value)
|
|
4058
|
+
G -= _.value, J = A.value.from, fe = G;
|
|
4059
4059
|
else
|
|
4060
4060
|
for (let X = 0; G >= b[X] && J < z; X++)
|
|
4061
4061
|
G -= b[X], J += it;
|
|
4062
4062
|
for (; G > 0 && J < z; )
|
|
4063
|
-
G -= h[J], G > -
|
|
4063
|
+
G -= h[J], G > -p.scrollViewSize ? (J++, fe = G) : fe = h[J] + G;
|
|
4064
4064
|
R(
|
|
4065
4065
|
f,
|
|
4066
|
-
|
|
4066
|
+
p,
|
|
4067
4067
|
J,
|
|
4068
4068
|
fe
|
|
4069
4069
|
);
|
|
4070
4070
|
}
|
|
4071
|
-
function R(f,
|
|
4071
|
+
function R(f, p, z, M, U) {
|
|
4072
4072
|
const J = typeof U == "string" && U.indexOf("-force") !== -1, G = J === !0 ? U.replace("-force", "") : U, fe = G !== void 0 ? G : "start";
|
|
4073
4073
|
let X = Math.max(0, z - y.value[fe]), Re = X + y.value.total;
|
|
4074
|
-
Re > e.value && (Re = e.value, X = Math.max(0, Re - y.value.total)), d =
|
|
4074
|
+
Re > e.value && (Re = e.value, X = Math.max(0, Re - y.value.total)), d = p.scrollStart;
|
|
4075
4075
|
const Fe = X !== A.value.from || Re !== A.value.to;
|
|
4076
4076
|
if (Fe === !1 && G === void 0) {
|
|
4077
4077
|
E(z);
|
|
@@ -4084,18 +4084,18 @@ function qa({
|
|
|
4084
4084
|
const ct = G !== void 0 ? h.slice(X, z).reduce(Wt, 0) : 0;
|
|
4085
4085
|
if (Fe === !0) {
|
|
4086
4086
|
const Ue = Re >= A.value.from && X <= A.value.to ? A.value.to : Re;
|
|
4087
|
-
A.value = { from: X, to: Ue },
|
|
4088
|
-
A.value.to !== Re && d ===
|
|
4087
|
+
A.value = { from: X, to: Ue }, _.value = Yt(b, h, 0, X), x.value = Yt(b, h, Re, e.value), requestAnimationFrame(() => {
|
|
4088
|
+
A.value.to !== Re && d === p.scrollStart && (A.value = { from: A.value.from, to: Re }, x.value = Yt(b, h, Re, e.value));
|
|
4089
4089
|
});
|
|
4090
4090
|
}
|
|
4091
4091
|
requestAnimationFrame(() => {
|
|
4092
|
-
if (d !==
|
|
4092
|
+
if (d !== p.scrollStart) return;
|
|
4093
4093
|
Fe === !0 && O(X);
|
|
4094
|
-
const Ue = h.slice(X, z).reduce(Wt, 0), We = Ue +
|
|
4094
|
+
const Ue = h.slice(X, z).reduce(Wt, 0), We = Ue + p.offsetStart + _.value, lt = We + h[z];
|
|
4095
4095
|
let I = We + M;
|
|
4096
4096
|
if (G !== void 0) {
|
|
4097
|
-
const ge = Ue - ct, $e =
|
|
4098
|
-
I = J !== !0 && $e < We && lt < $e +
|
|
4097
|
+
const ge = Ue - ct, $e = p.scrollStart + ge;
|
|
4098
|
+
I = J !== !0 && $e < We && lt < $e + p.scrollViewSize ? $e : G === "end" ? lt - p.scrollViewSize : We - (G === "start" ? 0 : Math.round((p.scrollViewSize - h[z]) / 2));
|
|
4099
4099
|
}
|
|
4100
4100
|
d = I, So(
|
|
4101
4101
|
f,
|
|
@@ -4106,10 +4106,10 @@ function qa({
|
|
|
4106
4106
|
});
|
|
4107
4107
|
}
|
|
4108
4108
|
function O(f) {
|
|
4109
|
-
const
|
|
4110
|
-
if (
|
|
4109
|
+
const p = V.value;
|
|
4110
|
+
if (p) {
|
|
4111
4111
|
const z = wa.call(
|
|
4112
|
-
|
|
4112
|
+
p.children,
|
|
4113
4113
|
(X) => X.classList && X.classList.contains("q-virtual-scroll--skip") === !1
|
|
4114
4114
|
), M = z.length, U = i.virtualScrollHorizontal === !0 ? (X) => X.getBoundingClientRect().width : (X) => X.offsetHeight;
|
|
4115
4115
|
let J = f, G, fe;
|
|
@@ -4123,9 +4123,9 @@ function qa({
|
|
|
4123
4123
|
function P() {
|
|
4124
4124
|
V.value?.focus();
|
|
4125
4125
|
}
|
|
4126
|
-
function W(f,
|
|
4126
|
+
function W(f, p) {
|
|
4127
4127
|
const z = 1 * t.value;
|
|
4128
|
-
(
|
|
4128
|
+
(p === !0 || Array.isArray(h) === !1) && (h = []);
|
|
4129
4129
|
const M = h.length;
|
|
4130
4130
|
h.length = e.value;
|
|
4131
4131
|
for (let J = e.value - 1; J >= M; J--)
|
|
@@ -4139,7 +4139,7 @@ function qa({
|
|
|
4139
4139
|
G += h[X];
|
|
4140
4140
|
b.push(G);
|
|
4141
4141
|
}
|
|
4142
|
-
u = -1, d = void 0,
|
|
4142
|
+
u = -1, d = void 0, _.value = Yt(b, h, 0, A.value.from), x.value = Yt(b, h, A.value.to, e.value), f >= 0 ? (O(A.value.from), Ce(() => {
|
|
4143
4143
|
q(f);
|
|
4144
4144
|
})) : S();
|
|
4145
4145
|
}
|
|
@@ -4158,20 +4158,20 @@ function qa({
|
|
|
4158
4158
|
).scrollViewSize);
|
|
4159
4159
|
}
|
|
4160
4160
|
g = f;
|
|
4161
|
-
const
|
|
4161
|
+
const p = parseFloat(i.virtualScrollSliceRatioBefore) || 0, z = parseFloat(i.virtualScrollSliceRatioAfter) || 0, M = 1 + p + z, U = f === void 0 || f <= 0 ? 1 : Math.ceil(f / t.value), J = Math.max(
|
|
4162
4162
|
1,
|
|
4163
4163
|
U,
|
|
4164
4164
|
Math.ceil((i.virtualScrollSliceSize > 0 ? i.virtualScrollSliceSize : 10) / M)
|
|
4165
4165
|
);
|
|
4166
4166
|
y.value = {
|
|
4167
4167
|
total: Math.ceil(J * M),
|
|
4168
|
-
start: Math.ceil(J *
|
|
4169
|
-
center: Math.ceil(J * (0.5 +
|
|
4170
|
-
end: Math.ceil(J * (1 +
|
|
4168
|
+
start: Math.ceil(J * p),
|
|
4169
|
+
center: Math.ceil(J * (0.5 + p)),
|
|
4170
|
+
end: Math.ceil(J * (1 + p)),
|
|
4171
4171
|
view: U
|
|
4172
4172
|
};
|
|
4173
4173
|
}
|
|
4174
|
-
function F(f,
|
|
4174
|
+
function F(f, p) {
|
|
4175
4175
|
const z = i.virtualScrollHorizontal === !0 ? "width" : "height", M = {
|
|
4176
4176
|
["--q-virtual-scroll-item-" + z]: t.value + "px"
|
|
4177
4177
|
};
|
|
@@ -4183,7 +4183,7 @@ function qa({
|
|
|
4183
4183
|
}, [
|
|
4184
4184
|
v("tr", [
|
|
4185
4185
|
v("td", {
|
|
4186
|
-
style: { [z]: `${
|
|
4186
|
+
style: { [z]: `${_.value}px`, ...M },
|
|
4187
4187
|
colspan: j.value
|
|
4188
4188
|
})
|
|
4189
4189
|
])
|
|
@@ -4191,14 +4191,14 @@ function qa({
|
|
|
4191
4191
|
class: "q-virtual-scroll__padding",
|
|
4192
4192
|
key: "before",
|
|
4193
4193
|
ref: C,
|
|
4194
|
-
style: { [z]: `${
|
|
4194
|
+
style: { [z]: `${_.value}px`, ...M }
|
|
4195
4195
|
}),
|
|
4196
4196
|
v(f, {
|
|
4197
4197
|
class: "q-virtual-scroll__content",
|
|
4198
4198
|
key: "content",
|
|
4199
4199
|
ref: V,
|
|
4200
4200
|
tabindex: -1
|
|
4201
|
-
},
|
|
4201
|
+
}, p.flat()),
|
|
4202
4202
|
f === "tbody" ? v(f, {
|
|
4203
4203
|
class: "q-virtual-scroll__padding",
|
|
4204
4204
|
key: "after",
|
|
@@ -4262,9 +4262,9 @@ function qa({
|
|
|
4262
4262
|
};
|
|
4263
4263
|
}
|
|
4264
4264
|
const hu = {
|
|
4265
|
-
list:
|
|
4265
|
+
list: _a,
|
|
4266
4266
|
table: du
|
|
4267
|
-
}, mu = ["list", "table", "__qtable"], Wl =
|
|
4267
|
+
}, mu = ["list", "table", "__qtable"], Wl = pe({
|
|
4268
4268
|
name: "QVirtualScroll",
|
|
4269
4269
|
props: {
|
|
4270
4270
|
...Sl,
|
|
@@ -4290,7 +4290,7 @@ const hu = {
|
|
|
4290
4290
|
onVirtualScrollEvt: d
|
|
4291
4291
|
} = qa({
|
|
4292
4292
|
virtualScrollLength: i,
|
|
4293
|
-
getVirtualScrollTarget:
|
|
4293
|
+
getVirtualScrollTarget: _,
|
|
4294
4294
|
getVirtualScrollEl: h
|
|
4295
4295
|
}), u = s(() => {
|
|
4296
4296
|
if (i.value === 0)
|
|
@@ -4311,7 +4311,7 @@ const hu = {
|
|
|
4311
4311
|
function h() {
|
|
4312
4312
|
return o.value.$el || o.value;
|
|
4313
4313
|
}
|
|
4314
|
-
function
|
|
4314
|
+
function _() {
|
|
4315
4315
|
return t;
|
|
4316
4316
|
}
|
|
4317
4317
|
function x() {
|
|
@@ -4385,11 +4385,11 @@ const ko = 100, gu = /* @__PURE__ */ Te({
|
|
|
4385
4385
|
},
|
|
4386
4386
|
setup(e, { expose: n }) {
|
|
4387
4387
|
n();
|
|
4388
|
-
const l = un(() => import("./ObjectEntry-
|
|
4388
|
+
const l = un(() => import("./ObjectEntry-BI74yOA3.js")), t = e, { copy: o, getIcon: i, getColor: a } = Qn(), r = et("quickview-expansion", null), c = et("quickview-dense", { value: !1 }), d = et("quickview-indent-width"), u = et(
|
|
4389
4389
|
"quickview-key-decorators",
|
|
4390
4390
|
{ value: [] }
|
|
4391
4391
|
), g = s(() => d?.value ?? 12), b = s(() => r ? t.context.path ? r.state.expandedPaths.value[t.context.path] === !0 : !0 : t.context.depth < 1), h = s(() => r ? r.state.highlightedPath.value === t.context.path : !1);
|
|
4392
|
-
function
|
|
4392
|
+
function _(q) {
|
|
4393
4393
|
if (!r) return !1;
|
|
4394
4394
|
const w = Ge(t.context.path, q);
|
|
4395
4395
|
return r.state.highlightedPath.value === w;
|
|
@@ -4419,15 +4419,15 @@ const ko = 100, gu = /* @__PURE__ */ Te({
|
|
|
4419
4419
|
priority: P.tester(w, q, R)
|
|
4420
4420
|
})).filter(({ priority: P }) => P >= 0).sort((P, W) => W.priority - P.priority).map(({ decorator: P }) => P.render(w, q, R));
|
|
4421
4421
|
}
|
|
4422
|
-
const Q = { ObjectEntry: l, props: t, copy: o, getIcon: i, getColor: a, expansion: r, isDense: c, indentWidthRef: d, keyDecorators: u, indentWidth: g, isExpanded: b, isHighlighted: h, isKeyHighlighted:
|
|
4422
|
+
const Q = { ObjectEntry: l, props: t, copy: o, getIcon: i, getColor: a, expansion: r, isDense: c, indentWidthRef: d, keyDecorators: u, indentWidth: g, isExpanded: b, isHighlighted: h, isKeyHighlighted: _, objectValue: x, keys: y, keyCount: C, VIRTUAL_SCROLL_THRESHOLD: ko, useVirtualScroll: B, preview: V, toggle: A, expandSubtree: j, collapseSubtree: $, copyObject: K, getKeyDecorations: Y, get buildPath() {
|
|
4423
4423
|
return Ge;
|
|
4424
4424
|
} };
|
|
4425
4425
|
return Object.defineProperty(Q, "__isScriptSetup", { enumerable: !1, value: !0 }), Q;
|
|
4426
4426
|
}
|
|
4427
|
-
}), bu = ["data-qv-path"], yu = { class: "object-header" },
|
|
4427
|
+
}), bu = ["data-qv-path"], yu = { class: "object-header" }, pu = {
|
|
4428
4428
|
key: 0,
|
|
4429
4429
|
class: "preview"
|
|
4430
|
-
},
|
|
4430
|
+
}, _u = {
|
|
4431
4431
|
key: 1,
|
|
4432
4432
|
class: "bracket"
|
|
4433
4433
|
}, xu = {
|
|
@@ -4462,12 +4462,12 @@ function Su(e, n, l, t, o, i) {
|
|
|
4462
4462
|
)),
|
|
4463
4463
|
t.isExpanded ? ee("v-if", !0) : (L(), Z(
|
|
4464
4464
|
"span",
|
|
4465
|
-
|
|
4465
|
+
pu,
|
|
4466
4466
|
re(t.preview),
|
|
4467
4467
|
1
|
|
4468
4468
|
/* TEXT */
|
|
4469
4469
|
)),
|
|
4470
|
-
t.isExpanded ? ee("v-if", !0) : (L(), Z("span",
|
|
4470
|
+
t.isExpanded ? ee("v-if", !0) : (L(), Z("span", _u, "}")),
|
|
4471
4471
|
!t.isExpanded || l.context.depth === 0 ? (L(), Z(
|
|
4472
4472
|
"span",
|
|
4473
4473
|
xu,
|
|
@@ -4488,7 +4488,7 @@ function Su(e, n, l, t, o, i) {
|
|
|
4488
4488
|
onClick: t.collapseSubtree
|
|
4489
4489
|
}, {
|
|
4490
4490
|
default: H(() => [
|
|
4491
|
-
D(
|
|
4491
|
+
D(_e, null, {
|
|
4492
4492
|
default: H(() => [...n[1] || (n[1] = [
|
|
4493
4493
|
ce(
|
|
4494
4494
|
"Collapse all",
|
|
@@ -4514,7 +4514,7 @@ function Su(e, n, l, t, o, i) {
|
|
|
4514
4514
|
onClick: t.expandSubtree
|
|
4515
4515
|
}, {
|
|
4516
4516
|
default: H(() => [
|
|
4517
|
-
D(
|
|
4517
|
+
D(_e, null, {
|
|
4518
4518
|
default: H(() => [...n[2] || (n[2] = [
|
|
4519
4519
|
ce(
|
|
4520
4520
|
"Expand all",
|
|
@@ -4541,7 +4541,7 @@ function Su(e, n, l, t, o, i) {
|
|
|
4541
4541
|
onClick: t.copyObject
|
|
4542
4542
|
}, {
|
|
4543
4543
|
default: H(() => [
|
|
4544
|
-
D(
|
|
4544
|
+
D(_e, null, {
|
|
4545
4545
|
default: H(() => [...n[3] || (n[3] = [
|
|
4546
4546
|
ce(
|
|
4547
4547
|
"Copy object",
|
|
@@ -4563,7 +4563,7 @@ function Su(e, n, l, t, o, i) {
|
|
|
4563
4563
|
{
|
|
4564
4564
|
key: 0,
|
|
4565
4565
|
class: "object-entries",
|
|
4566
|
-
style:
|
|
4566
|
+
style: pt({
|
|
4567
4567
|
marginLeft: `${t.indentWidth}px`,
|
|
4568
4568
|
paddingLeft: `${Math.max(t.indentWidth, 16)}px`
|
|
4569
4569
|
})
|
|
@@ -4629,7 +4629,7 @@ function Su(e, n, l, t, o, i) {
|
|
|
4629
4629
|
{
|
|
4630
4630
|
key: 1,
|
|
4631
4631
|
class: "closing-bracket",
|
|
4632
|
-
style:
|
|
4632
|
+
style: pt({
|
|
4633
4633
|
marginLeft: `${t.indentWidth}px`,
|
|
4634
4634
|
paddingLeft: `${Math.max(t.indentWidth, 16)}px`
|
|
4635
4635
|
})
|
|
@@ -4654,7 +4654,7 @@ const ku = /* @__PURE__ */ Ae(gu, [["render", Su], ["__scopeId", "data-v-95f1d50
|
|
|
4654
4654
|
md: 14,
|
|
4655
4655
|
lg: 20,
|
|
4656
4656
|
xl: 24
|
|
4657
|
-
}, dt =
|
|
4657
|
+
}, dt = pe({
|
|
4658
4658
|
name: "QChip",
|
|
4659
4659
|
props: {
|
|
4660
4660
|
...tt,
|
|
@@ -4709,7 +4709,7 @@ const ku = /* @__PURE__ */ Ae(gu, [["render", Su], ["__scopeId", "data-v-95f1d50
|
|
|
4709
4709
|
function h(y) {
|
|
4710
4710
|
e.disable || (l("update:selected", !e.selected), l("click", y));
|
|
4711
4711
|
}
|
|
4712
|
-
function
|
|
4712
|
+
function _(y) {
|
|
4713
4713
|
(y.keyCode === void 0 || y.keyCode === 13) && (Me(y), e.disable === !1 && (l("update:modelValue", !1), l("remove")));
|
|
4714
4714
|
}
|
|
4715
4715
|
function x() {
|
|
@@ -4737,8 +4737,8 @@ const ku = /* @__PURE__ */ Ae(gu, [["render", Su], ["__scopeId", "data-v-95f1d50
|
|
|
4737
4737
|
class: "q-chip__icon q-chip__icon--remove cursor-pointer",
|
|
4738
4738
|
name: c.value,
|
|
4739
4739
|
...g.value.remove,
|
|
4740
|
-
onClick:
|
|
4741
|
-
onKeyup:
|
|
4740
|
+
onClick: _,
|
|
4741
|
+
onKeyup: _
|
|
4742
4742
|
})
|
|
4743
4743
|
), y;
|
|
4744
4744
|
}
|
|
@@ -4762,7 +4762,7 @@ const ku = /* @__PURE__ */ Ae(gu, [["render", Su], ["__scopeId", "data-v-95f1d50
|
|
|
4762
4762
|
);
|
|
4763
4763
|
};
|
|
4764
4764
|
}
|
|
4765
|
-
}), Cu =
|
|
4765
|
+
}), Cu = pe({
|
|
4766
4766
|
name: "QTd",
|
|
4767
4767
|
props: {
|
|
4768
4768
|
props: Object,
|
|
@@ -4785,7 +4785,7 @@ const ku = /* @__PURE__ */ Ae(gu, [["render", Su], ["__scopeId", "data-v-95f1d50
|
|
|
4785
4785
|
}, Ve(n.default));
|
|
4786
4786
|
};
|
|
4787
4787
|
}
|
|
4788
|
-
}), Ru =
|
|
4788
|
+
}), Ru = pe({
|
|
4789
4789
|
name: "QTr",
|
|
4790
4790
|
props: {
|
|
4791
4791
|
props: Object,
|
|
@@ -4800,7 +4800,7 @@ const ku = /* @__PURE__ */ Ae(gu, [["render", Su], ["__scopeId", "data-v-95f1d50
|
|
|
4800
4800
|
class: l.value
|
|
4801
4801
|
}, Ve(n.default));
|
|
4802
4802
|
}
|
|
4803
|
-
}), Eu =
|
|
4803
|
+
}), Eu = pe({
|
|
4804
4804
|
name: "QTh",
|
|
4805
4805
|
props: {
|
|
4806
4806
|
props: Object,
|
|
@@ -4853,7 +4853,7 @@ const ku = /* @__PURE__ */ Ae(gu, [["render", Su], ["__scopeId", "data-v-95f1d50
|
|
|
4853
4853
|
md: 8,
|
|
4854
4854
|
lg: 16,
|
|
4855
4855
|
xl: 24
|
|
4856
|
-
}, kl =
|
|
4856
|
+
}, kl = pe({
|
|
4857
4857
|
name: "QSeparator",
|
|
4858
4858
|
props: {
|
|
4859
4859
|
...tt,
|
|
@@ -4880,7 +4880,7 @@ const ku = /* @__PURE__ */ Ae(gu, [["render", Su], ["__scopeId", "data-v-95f1d50
|
|
|
4880
4880
|
"aria-orientation": t.value
|
|
4881
4881
|
});
|
|
4882
4882
|
}
|
|
4883
|
-
}), Vu =
|
|
4883
|
+
}), Vu = pe({
|
|
4884
4884
|
name: "QField",
|
|
4885
4885
|
inheritAttrs: !1,
|
|
4886
4886
|
props: {
|
|
@@ -4896,7 +4896,7 @@ const ku = /* @__PURE__ */ Ae(gu, [["render", Su], ["__scopeId", "data-v-95f1d50
|
|
|
4896
4896
|
Bl({ tagProp: !0 })
|
|
4897
4897
|
);
|
|
4898
4898
|
}
|
|
4899
|
-
}), Ca =
|
|
4899
|
+
}), Ca = pe({
|
|
4900
4900
|
name: "QItem",
|
|
4901
4901
|
props: {
|
|
4902
4902
|
...tt,
|
|
@@ -4922,7 +4922,7 @@ const ku = /* @__PURE__ */ Ae(gu, [["render", Su], ["__scopeId", "data-v-95f1d50
|
|
|
4922
4922
|
() => e.clickable === !0 || i.value === !0 || e.tag === "label"
|
|
4923
4923
|
), h = s(
|
|
4924
4924
|
() => e.disable !== !0 && b.value === !0
|
|
4925
|
-
),
|
|
4925
|
+
), _ = s(
|
|
4926
4926
|
() => "q-item q-item-type row no-wrap" + (e.dense === !0 ? " q-item--dense" : "") + (o.value === !0 ? " q-item--dark" : "") + (i.value === !0 && e.active === null ? r.value : e.active === !0 ? ` q-item--active${e.activeClass !== void 0 ? ` ${e.activeClass}` : ""}` : "") + (e.disable === !0 ? " disabled" : "") + (h.value === !0 ? " q-item--clickable q-link cursor-pointer " + (e.manualFocus === !0 ? "q-manual-focusable" : "q-focusable q-hoverable") + (e.focused === !0 ? " q-manual-focusable--focused" : "") : "")
|
|
4927
4927
|
), x = s(() => e.insetLevel === void 0 ? null : {
|
|
4928
4928
|
["padding" + (t.lang.rtl === !0 ? "Right" : "Left")]: 16 + e.insetLevel * 56 + "px"
|
|
@@ -4931,7 +4931,7 @@ const ku = /* @__PURE__ */ Ae(gu, [["render", Su], ["__scopeId", "data-v-95f1d50
|
|
|
4931
4931
|
h.value === !0 && (g.value !== null && V.qAvoidFocus !== !0 && (V.qKeyEvent !== !0 && document.activeElement === u.value ? g.value.focus() : document.activeElement === g.value && u.value.focus()), d(V));
|
|
4932
4932
|
}
|
|
4933
4933
|
function C(V) {
|
|
4934
|
-
if (h.value === !0 &&
|
|
4934
|
+
if (h.value === !0 && _t(V, [13, 32]) === !0) {
|
|
4935
4935
|
Me(V), V.qKeyEvent = !0;
|
|
4936
4936
|
const A = new MouseEvent("click", V);
|
|
4937
4937
|
A.qKeyEvent = !0, u.value.dispatchEvent(A);
|
|
@@ -4947,7 +4947,7 @@ const ku = /* @__PURE__ */ Ae(gu, [["render", Su], ["__scopeId", "data-v-95f1d50
|
|
|
4947
4947
|
return () => {
|
|
4948
4948
|
const V = {
|
|
4949
4949
|
ref: u,
|
|
4950
|
-
class:
|
|
4950
|
+
class: _.value,
|
|
4951
4951
|
style: x.value,
|
|
4952
4952
|
role: "listitem",
|
|
4953
4953
|
onClick: y,
|
|
@@ -4960,7 +4960,7 @@ const ku = /* @__PURE__ */ Ae(gu, [["render", Su], ["__scopeId", "data-v-95f1d50
|
|
|
4960
4960
|
);
|
|
4961
4961
|
};
|
|
4962
4962
|
}
|
|
4963
|
-
}), Rn =
|
|
4963
|
+
}), Rn = pe({
|
|
4964
4964
|
name: "QItemSection",
|
|
4965
4965
|
props: {
|
|
4966
4966
|
avatar: Boolean,
|
|
@@ -4975,7 +4975,7 @@ const ku = /* @__PURE__ */ Ae(gu, [["render", Su], ["__scopeId", "data-v-95f1d50
|
|
|
4975
4975
|
);
|
|
4976
4976
|
return () => v("div", { class: l.value }, Ve(n.default));
|
|
4977
4977
|
}
|
|
4978
|
-
}), ql =
|
|
4978
|
+
}), ql = pe({
|
|
4979
4979
|
name: "QItemLabel",
|
|
4980
4980
|
props: {
|
|
4981
4981
|
overline: Boolean,
|
|
@@ -5006,7 +5006,7 @@ function Bu() {
|
|
|
5006
5006
|
Kt === !0 && (Kt = !1);
|
|
5007
5007
|
}
|
|
5008
5008
|
function Ou(e) {
|
|
5009
|
-
Kt === !0 && (Kt = !1,
|
|
5009
|
+
Kt === !0 && (Kt = !1, _t(e, 27) === !0 && Pt[Pt.length - 1](e));
|
|
5010
5010
|
}
|
|
5011
5011
|
function Ra(e) {
|
|
5012
5012
|
window[e]("keydown", Tu), window[e]("blur", Bu), window[e]("keyup", Ou), Kt = !1;
|
|
@@ -5029,7 +5029,7 @@ function Cl(e) {
|
|
|
5029
5029
|
const n = Vt.indexOf(e);
|
|
5030
5030
|
n !== -1 && (Vt.splice(n, 1), Vt.length === 0 && document.body.removeEventListener("focusin", Pa));
|
|
5031
5031
|
}
|
|
5032
|
-
const Mu =
|
|
5032
|
+
const Mu = pe({
|
|
5033
5033
|
name: "QMenu",
|
|
5034
5034
|
inheritAttrs: !1,
|
|
5035
5035
|
props: {
|
|
@@ -5079,7 +5079,7 @@ const Mu = _e({
|
|
|
5079
5079
|
let o = null, i, a, r;
|
|
5080
5080
|
const c = ye(), { proxy: d } = c, { $q: u } = d, g = N(null), b = N(!1), h = s(
|
|
5081
5081
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0
|
|
5082
|
-
),
|
|
5082
|
+
), _ = nt(e, u), { registerTick: x, removeTick: y } = jl(), { registerTimeout: C } = Fl(), { transitionProps: B, transitionStyle: V } = zl(e), { localScrollTarget: A, changeScrollEvent: j, unconfigureScrollTarget: $ } = ia(e, z), { anchorEl: K, canShow: Y } = ra({ showing: b }), { hide: Q } = Nn({
|
|
5083
5083
|
showing: b,
|
|
5084
5084
|
canShow: Y,
|
|
5085
5085
|
handleShow: oe,
|
|
@@ -5100,7 +5100,7 @@ const Mu = _e({
|
|
|
5100
5100
|
u.lang.rtl
|
|
5101
5101
|
)
|
|
5102
5102
|
), W = s(() => e.cover === !0 ? P.value : Mn(e.self || "top start", u.lang.rtl)), ae = s(
|
|
5103
|
-
() => (e.square === !0 ? " q-menu--square" : "") + (
|
|
5103
|
+
() => (e.square === !0 ? " q-menu--square" : "") + (_.value === !0 ? " q-menu--dark q-dark" : "")
|
|
5104
5104
|
), F = s(() => e.autoClose === !0 ? { onClick: M } : {}), E = s(
|
|
5105
5105
|
() => b.value === !0 && e.persistent !== !0
|
|
5106
5106
|
);
|
|
@@ -5131,12 +5131,12 @@ const Mu = _e({
|
|
|
5131
5131
|
}, e.transitionDuration);
|
|
5132
5132
|
}
|
|
5133
5133
|
function f(X) {
|
|
5134
|
-
y(), w(),
|
|
5134
|
+
y(), w(), p(!0), o !== null && // menu was hidden from code or ESC plugin
|
|
5135
5135
|
(X === void 0 || X.qClickOutside !== !0) && (((X?.type.indexOf("key") === 0 ? o.closest('[tabindex]:not([tabindex^="-"])') : void 0) || o).focus(), o = null), C(() => {
|
|
5136
5136
|
w(!0), l("hide", X);
|
|
5137
5137
|
}, e.transitionDuration);
|
|
5138
5138
|
}
|
|
5139
|
-
function
|
|
5139
|
+
function p(X) {
|
|
5140
5140
|
i = void 0, a !== void 0 && (a(), a = void 0), (X === !0 || b.value === !0) && (Cl(U), $(), Bn(O), Ln(J)), X !== !0 && (o = null);
|
|
5141
5141
|
}
|
|
5142
5142
|
function z() {
|
|
@@ -5186,7 +5186,7 @@ const Mu = _e({
|
|
|
5186
5186
|
}, Ve(n.default)) : null
|
|
5187
5187
|
);
|
|
5188
5188
|
}
|
|
5189
|
-
return ze(
|
|
5189
|
+
return ze(p), Object.assign(d, { focus: S, updatePosition: G }), R;
|
|
5190
5190
|
}
|
|
5191
5191
|
});
|
|
5192
5192
|
function Au(e, n, l) {
|
|
@@ -5273,7 +5273,7 @@ const Iu = {
|
|
|
5273
5273
|
bottom: ["slide-up", "slide-down"],
|
|
5274
5274
|
right: ["slide-left", "slide-right"],
|
|
5275
5275
|
left: ["slide-right", "slide-left"]
|
|
5276
|
-
}, Ta =
|
|
5276
|
+
}, Ta = pe({
|
|
5277
5277
|
name: "QDialog",
|
|
5278
5278
|
inheritAttrs: !1,
|
|
5279
5279
|
props: {
|
|
@@ -5315,7 +5315,7 @@ const Iu = {
|
|
|
5315
5315
|
let c = null, d = null, u, g;
|
|
5316
5316
|
const b = s(
|
|
5317
5317
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0 && e.seamless !== !0
|
|
5318
|
-
), { preventBodyScroll: h } = Fu(), { registerTimeout:
|
|
5318
|
+
), { preventBodyScroll: h } = Fu(), { registerTimeout: _ } = Fl(), { registerTick: x, removeTick: y } = jl(), { transitionProps: C, transitionStyle: B } = zl(
|
|
5319
5319
|
e,
|
|
5320
5320
|
() => Vo[e.position][0],
|
|
5321
5321
|
() => Vo[e.position][1]
|
|
@@ -5341,10 +5341,10 @@ const Iu = {
|
|
|
5341
5341
|
ie(() => e.maximized, (M) => {
|
|
5342
5342
|
a.value === !0 && S(M);
|
|
5343
5343
|
}), ie(q, (M) => {
|
|
5344
|
-
h(M), M === !0 ? (Va(
|
|
5344
|
+
h(M), M === !0 ? (Va(p), Ea(F)) : (Cl(p), Ln(F));
|
|
5345
5345
|
});
|
|
5346
5346
|
function O(M) {
|
|
5347
|
-
d = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, S(e.maximized), A(), r.value = !0, e.noFocus !== !0 ? (document.activeElement?.blur(), x(W)) : y(),
|
|
5347
|
+
d = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, S(e.maximized), A(), r.value = !0, e.noFocus !== !0 ? (document.activeElement?.blur(), x(W)) : y(), _(() => {
|
|
5348
5348
|
if (o.proxy.$q.platform.is.ios === !0) {
|
|
5349
5349
|
if (e.seamless !== !0 && document.activeElement) {
|
|
5350
5350
|
const { top: U, bottom: J } = document.activeElement.getBoundingClientRect(), { innerHeight: G } = window, fe = window.visualViewport !== void 0 ? window.visualViewport.height : G;
|
|
@@ -5359,7 +5359,7 @@ const Iu = {
|
|
|
5359
5359
|
}, e.transitionDuration);
|
|
5360
5360
|
}
|
|
5361
5361
|
function P(M) {
|
|
5362
|
-
y(), E(!0), r.value = !0, j(), d !== null && (((M?.type.indexOf("key") === 0 ? d.closest('[tabindex]:not([tabindex^="-"])') : void 0) || d).focus(), d = null),
|
|
5362
|
+
y(), E(!0), r.value = !0, j(), d !== null && (((M?.type.indexOf("key") === 0 ? d.closest('[tabindex]:not([tabindex^="-"])') : void 0) || d).focus(), d = null), _(() => {
|
|
5363
5363
|
j(!0), r.value = !1, l("hide", M);
|
|
5364
5364
|
}, e.transitionDuration);
|
|
5365
5365
|
}
|
|
@@ -5389,7 +5389,7 @@ const Iu = {
|
|
|
5389
5389
|
e.seamless !== !0 && (e.persistent === !0 || e.noEscDismiss === !0 ? e.maximized !== !0 && e.noShake !== !0 && ae() : (l("escapeKey"), Y()));
|
|
5390
5390
|
}
|
|
5391
5391
|
function E(M) {
|
|
5392
|
-
c !== null && (clearTimeout(c), c = null), (M === !0 || a.value === !0) && (S(!1), e.seamless !== !0 && (h(!1), Cl(
|
|
5392
|
+
c !== null && (clearTimeout(c), c = null), (M === !0 || a.value === !0) && (S(!1), e.seamless !== !0 && (h(!1), Cl(p), Ln(F))), M !== !0 && (d = null);
|
|
5393
5393
|
}
|
|
5394
5394
|
function S(M) {
|
|
5395
5395
|
M === !0 ? u !== !0 && (Sn < 1 && document.body.classList.add("q-body--dialog"), Sn++, u = !0) : u === !0 && (Sn < 2 && document.body.classList.remove("q-body--dialog"), Sn--, u = !1);
|
|
@@ -5400,7 +5400,7 @@ const Iu = {
|
|
|
5400
5400
|
function f(M) {
|
|
5401
5401
|
e.persistent !== !0 && e.noBackdropDismiss !== !0 ? Y(M) : e.noShake !== !0 && ae();
|
|
5402
5402
|
}
|
|
5403
|
-
function
|
|
5403
|
+
function p(M) {
|
|
5404
5404
|
e.allowFocusOutside !== !0 && $.value === !0 && ca(i.value, M.target) !== !0 && W('[tabindex]:not([tabindex="-1"])');
|
|
5405
5405
|
}
|
|
5406
5406
|
Object.assign(o.proxy, {
|
|
@@ -5535,7 +5535,7 @@ function hl(e, n) {
|
|
|
5535
5535
|
const l = e !== void 0 ? e : n;
|
|
5536
5536
|
return (t) => t !== null && typeof t == "object" && l in t ? t[l] : t;
|
|
5537
5537
|
}
|
|
5538
|
-
const $u =
|
|
5538
|
+
const $u = pe({
|
|
5539
5539
|
name: "QSelect",
|
|
5540
5540
|
inheritAttrs: !1,
|
|
5541
5541
|
props: {
|
|
@@ -5623,7 +5623,7 @@ const $u = _e({
|
|
|
5623
5623
|
],
|
|
5624
5624
|
setup(e, { slots: n, emit: l }) {
|
|
5625
5625
|
const { proxy: t } = ye(), { $q: o } = t, i = N(!1), a = N(!1), r = N(-1), c = N(""), d = N(!1), u = N(!1);
|
|
5626
|
-
let g = null, b = null, h,
|
|
5626
|
+
let g = null, b = null, h, _, x, y = null, C, B, V, A;
|
|
5627
5627
|
const j = N(null), $ = N(null), K = N(null), Y = N(null), Q = N(null), q = la(e), w = oa(k), R = s(() => Array.isArray(e.options) ? e.options.length : 0), O = s(() => e.virtualScrollItemSize === void 0 ? e.optionsDense === !0 ? 24 : 48 : e.virtualScrollItemSize), {
|
|
5628
5628
|
virtualScrollSliceRange: P,
|
|
5629
5629
|
virtualScrollSliceSizeComputed: W,
|
|
@@ -5637,7 +5637,7 @@ const $u = _e({
|
|
|
5637
5637
|
getVirtualScrollTarget: Yn,
|
|
5638
5638
|
getVirtualScrollEl: mn,
|
|
5639
5639
|
virtualScrollItemSizeComputed: O
|
|
5640
|
-
}), f = Bl(),
|
|
5640
|
+
}), f = Bl(), p = s(() => {
|
|
5641
5641
|
const m = e.mapOptions === !0 && e.multiple !== !0, ne = e.modelValue !== void 0 && (e.modelValue !== null || m === !0) ? e.multiple === !0 && Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue] : [];
|
|
5642
5642
|
if (e.mapOptions === !0 && Array.isArray(e.options) === !0) {
|
|
5643
5643
|
const le = e.mapOptions === !0 && h !== void 0 ? h : [], he = ne.map((we) => Gn(we, le));
|
|
@@ -5650,14 +5650,14 @@ const $u = _e({
|
|
|
5650
5650
|
const le = e[ne];
|
|
5651
5651
|
le !== void 0 && (m[ne] = le);
|
|
5652
5652
|
}), m;
|
|
5653
|
-
}), M = s(() => e.optionsDark === null ? f.isDark.value : e.optionsDark), U = s(() => an(
|
|
5653
|
+
}), M = s(() => e.optionsDark === null ? f.isDark.value : e.optionsDark), U = s(() => an(p.value)), J = s(() => {
|
|
5654
5654
|
let m = "q-field__input q-placeholder col";
|
|
5655
|
-
return e.hideSelected === !0 ||
|
|
5655
|
+
return e.hideSelected === !0 || p.value.length === 0 ? [m, e.inputClass] : (m += " q-field__input--padding", e.inputClass === void 0 ? m : [m, e.inputClass]);
|
|
5656
5656
|
}), G = s(
|
|
5657
5657
|
() => (e.virtualScrollHorizontal === !0 ? "q-virtual-scroll--horizontal" : "") + (e.popupContentClass ? " " + e.popupContentClass : "")
|
|
5658
5658
|
), fe = s(() => R.value === 0), X = s(
|
|
5659
|
-
() =>
|
|
5660
|
-
), Re = s(() => e.displayValue !== void 0 ? e.displayValue : X.value), Fe = s(() => e.optionsHtml === !0 ? () => !0 : (m) => m?.html === !0), ut = s(() => e.displayValueHtml === !0 || e.displayValue === void 0 && (e.optionsHtml === !0 ||
|
|
5659
|
+
() => p.value.map((m) => Se.value(m)).join(", ")
|
|
5660
|
+
), Re = s(() => e.displayValue !== void 0 ? e.displayValue : X.value), Fe = s(() => e.optionsHtml === !0 ? () => !0 : (m) => m?.html === !0), ut = s(() => e.displayValueHtml === !0 || e.displayValue === void 0 && (e.optionsHtml === !0 || p.value.some(Fe.value))), He = s(() => f.focused.value === !0 ? e.tabindex : -1), ct = s(() => {
|
|
5661
5661
|
const m = {
|
|
5662
5662
|
tabindex: e.tabindex,
|
|
5663
5663
|
role: "combobox",
|
|
@@ -5672,7 +5672,7 @@ const $u = _e({
|
|
|
5672
5672
|
id: `${f.targetUid.value}_lb`,
|
|
5673
5673
|
role: "listbox",
|
|
5674
5674
|
"aria-multiselectable": e.multiple === !0 ? "true" : "false"
|
|
5675
|
-
})), We = s(() =>
|
|
5675
|
+
})), We = s(() => p.value.map((m, ne) => ({
|
|
5676
5676
|
index: ne,
|
|
5677
5677
|
opt: m,
|
|
5678
5678
|
html: Fe.value(m),
|
|
@@ -5718,7 +5718,7 @@ const $u = _e({
|
|
|
5718
5718
|
});
|
|
5719
5719
|
}), I = s(() => e.dropdownIcon !== void 0 ? e.dropdownIcon : o.iconSet.arrow.dropdown), ge = s(
|
|
5720
5720
|
() => e.optionsCover === !1 && e.outlined !== !0 && e.standout !== !0 && e.borderless !== !0 && e.rounded !== !0
|
|
5721
|
-
), $e = s(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), Be = s(() => hl(e.optionValue, "value")), Se = s(() => hl(e.optionLabel, "label")), Ye = s(() => hl(e.optionDisable, "disable")), ot = s(() =>
|
|
5721
|
+
), $e = s(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), Be = s(() => hl(e.optionValue, "value")), Se = s(() => hl(e.optionLabel, "label")), Ye = s(() => hl(e.optionDisable, "disable")), ot = s(() => p.value.map(Be.value)), Bt = s(() => {
|
|
5722
5722
|
const m = {
|
|
5723
5723
|
onInput: k,
|
|
5724
5724
|
// Safari < 10.2 & UIWebView doesn't fire compositionend when
|
|
@@ -5731,19 +5731,19 @@ const $u = _e({
|
|
|
5731
5731
|
onKeypress: Xt,
|
|
5732
5732
|
onFocus: Qt,
|
|
5733
5733
|
onClick(ne) {
|
|
5734
|
-
|
|
5734
|
+
_ === !0 && ft(ne);
|
|
5735
5735
|
}
|
|
5736
5736
|
};
|
|
5737
5737
|
return m.onCompositionstart = m.onCompositionupdate = m.onCompositionend = w, m;
|
|
5738
5738
|
});
|
|
5739
|
-
ie(
|
|
5739
|
+
ie(p, (m) => {
|
|
5740
5740
|
h = m, e.useInput === !0 && e.fillInput === !0 && e.multiple !== !0 && f.innerLoading.value !== !0 && (a.value !== !0 && i.value !== !0 || U.value !== !0) && (x !== !0 && Ft(), (a.value === !0 || i.value === !0) && se(""));
|
|
5741
5741
|
}, { immediate: !0 }), ie(() => e.fillInput, Ft), ie(i, tl), ie(R, Aa);
|
|
5742
5742
|
function fn(m) {
|
|
5743
5743
|
return e.emitValue === !0 ? Be.value(m) : m;
|
|
5744
5744
|
}
|
|
5745
5745
|
function Ot(m) {
|
|
5746
|
-
if (m !== -1 && m <
|
|
5746
|
+
if (m !== -1 && m < p.value.length)
|
|
5747
5747
|
if (e.multiple === !0) {
|
|
5748
5748
|
const ne = e.modelValue.slice();
|
|
5749
5749
|
l("remove", { index: m, value: ne.splice(m, 1)[0] }), l("update:modelValue", ne);
|
|
@@ -5763,7 +5763,7 @@ const $u = _e({
|
|
|
5763
5763
|
), l("update:modelValue", le);
|
|
5764
5764
|
return;
|
|
5765
5765
|
}
|
|
5766
|
-
if (
|
|
5766
|
+
if (p.value.length === 0) {
|
|
5767
5767
|
l("add", { index: 0, value: le }), l("update:modelValue", e.multiple === !0 ? [le] : le);
|
|
5768
5768
|
return;
|
|
5769
5769
|
}
|
|
@@ -5779,10 +5779,10 @@ const $u = _e({
|
|
|
5779
5779
|
e.fillInput === !0 ? Se.value(m) : "",
|
|
5780
5780
|
!0,
|
|
5781
5781
|
!0
|
|
5782
|
-
), St()), $.value?.focus(), (
|
|
5782
|
+
), St()), $.value?.focus(), (p.value.length === 0 || gt(Be.value(p.value[0]), le) !== !0) && l("update:modelValue", e.emitValue === !0 ? le : m);
|
|
5783
5783
|
return;
|
|
5784
5784
|
}
|
|
5785
|
-
if ((
|
|
5785
|
+
if ((_ !== !0 || d.value === !0) && f.focus(), Qt(), p.value.length === 0) {
|
|
5786
5786
|
const xe = e.emitValue === !0 ? le : m;
|
|
5787
5787
|
l("add", { index: 0, value: xe }), l("update:modelValue", e.multiple === !0 ? [xe] : xe);
|
|
5788
5788
|
return;
|
|
@@ -5830,7 +5830,7 @@ const $u = _e({
|
|
|
5830
5830
|
e.useInput === !0 && $.value !== null && (m === void 0 || $.value === m.target && m.target.value === X.value) && $.value.select();
|
|
5831
5831
|
}
|
|
5832
5832
|
function hn(m) {
|
|
5833
|
-
|
|
5833
|
+
_t(m, 27) === !0 && i.value === !0 && (ft(m), St(), Ft()), l("keyup", m);
|
|
5834
5834
|
}
|
|
5835
5835
|
function At(m) {
|
|
5836
5836
|
const { value: ne } = m.target;
|
|
@@ -5841,7 +5841,7 @@ const $u = _e({
|
|
|
5841
5841
|
if (m.target.value = "", g !== null && (clearTimeout(g), g = null), b !== null && (clearTimeout(b), b = null), Ft(), typeof ne == "string" && ne.length !== 0) {
|
|
5842
5842
|
const le = ne.toLocaleLowerCase(), he = (xe) => {
|
|
5843
5843
|
const Ie = e.options.find((Oe) => String(xe.value(Oe)).toLocaleLowerCase() === le);
|
|
5844
|
-
return Ie === void 0 ? !1 : (
|
|
5844
|
+
return Ie === void 0 ? !1 : (p.value.indexOf(Ie) === -1 ? at(Ie) : St(), !0);
|
|
5845
5845
|
}, we = (xe) => {
|
|
5846
5846
|
he(Be) !== !0 && xe !== !0 && he(Se) !== !0 && se(ne, !0, () => we(!0));
|
|
5847
5847
|
};
|
|
@@ -5915,7 +5915,7 @@ const $u = _e({
|
|
|
5915
5915
|
}
|
|
5916
5916
|
}
|
|
5917
5917
|
function mn() {
|
|
5918
|
-
return
|
|
5918
|
+
return _ === !0 ? Q.value : K.value !== null && K.value.contentEl !== null ? K.value.contentEl : void 0;
|
|
5919
5919
|
}
|
|
5920
5920
|
function Yn() {
|
|
5921
5921
|
return mn();
|
|
@@ -5976,10 +5976,10 @@ const $u = _e({
|
|
|
5976
5976
|
readonly: e.readonly === !0,
|
|
5977
5977
|
...Bt.value
|
|
5978
5978
|
};
|
|
5979
|
-
return m !== !0 &&
|
|
5979
|
+
return m !== !0 && _ === !0 && (Array.isArray(he.class) === !0 ? he.class = [...he.class, "no-pointer-events"] : he.class += " no-pointer-events"), v("input", he);
|
|
5980
5980
|
}
|
|
5981
5981
|
function k(m) {
|
|
5982
|
-
g !== null && (clearTimeout(g), g = null), b !== null && (clearTimeout(b), b = null), !(m && m.target && m.target.qComposing === !0) && (te(m.target.value || ""), x = !0, C = c.value, f.focused.value !== !0 && (
|
|
5982
|
+
g !== null && (clearTimeout(g), g = null), b !== null && (clearTimeout(b), b = null), !(m && m.target && m.target.qComposing === !0) && (te(m.target.value || ""), x = !0, C = c.value, f.focused.value !== !0 && (_ !== !0 || d.value === !0) && f.focus(), e.onFilter !== void 0 && (g = setTimeout(() => {
|
|
5983
5983
|
g = null, se(c.value);
|
|
5984
5984
|
}, e.inputDebounce)));
|
|
5985
5985
|
}
|
|
@@ -5993,7 +5993,7 @@ const $u = _e({
|
|
|
5993
5993
|
}
|
|
5994
5994
|
function se(m, ne, le) {
|
|
5995
5995
|
if (e.onFilter === void 0 || ne !== !0 && f.focused.value !== !0) return;
|
|
5996
|
-
f.innerLoading.value === !0 ? l("filterAbort") : (f.innerLoading.value = !0, u.value = !0), m !== "" && e.multiple !== !0 &&
|
|
5996
|
+
f.innerLoading.value === !0 ? l("filterAbort") : (f.innerLoading.value = !0, u.value = !0), m !== "" && e.multiple !== !0 && p.value.length !== 0 && x !== !0 && m === Se.value(p.value[0]) && (m = "");
|
|
5997
5997
|
const he = setTimeout(() => {
|
|
5998
5998
|
i.value === !0 && (i.value = !1);
|
|
5999
5999
|
}, 10);
|
|
@@ -6119,7 +6119,7 @@ const $u = _e({
|
|
|
6119
6119
|
a.value !== !0 && (r.value = -1, i.value === !0 && (i.value = !1), f.focused.value === !1 && (y !== null && (clearTimeout(y), y = null), f.innerLoading.value === !0 && (l("filterAbort"), f.innerLoading.value = !1, u.value = !1)));
|
|
6120
6120
|
}
|
|
6121
6121
|
function jt(m) {
|
|
6122
|
-
f.editable.value === !0 && (
|
|
6122
|
+
f.editable.value === !0 && (_ === !0 ? (f.onControlFocusin(m), a.value = !0, Ce(() => {
|
|
6123
6123
|
f.focus();
|
|
6124
6124
|
})) : f.focus(), e.onFilter !== void 0 ? se(c.value) : (fe.value !== !0 || n["no-option"] !== void 0) && (i.value = !0));
|
|
6125
6125
|
}
|
|
@@ -6128,7 +6128,7 @@ const $u = _e({
|
|
|
6128
6128
|
}
|
|
6129
6129
|
function Ft() {
|
|
6130
6130
|
e.useInput === !0 && ue(
|
|
6131
|
-
e.multiple !== !0 && e.fillInput === !0 &&
|
|
6131
|
+
e.multiple !== !0 && e.fillInput === !0 && p.value.length !== 0 && Se.value(p.value[0]) || "",
|
|
6132
6132
|
!0,
|
|
6133
6133
|
!0
|
|
6134
6134
|
);
|
|
@@ -6136,8 +6136,8 @@ const $u = _e({
|
|
|
6136
6136
|
function tl(m) {
|
|
6137
6137
|
let ne = -1;
|
|
6138
6138
|
if (m === !0) {
|
|
6139
|
-
if (
|
|
6140
|
-
const le = Be.value(
|
|
6139
|
+
if (p.value.length !== 0) {
|
|
6140
|
+
const le = Be.value(p.value[0]);
|
|
6141
6141
|
ne = e.options.findIndex((he) => gt(Be.value(he), le));
|
|
6142
6142
|
}
|
|
6143
6143
|
ae(ne);
|
|
@@ -6159,7 +6159,7 @@ const $u = _e({
|
|
|
6159
6159
|
m !== void 0 && ft(m), l("popupHide", m), f.hasPopupOpen = !1, f.onControlFocusout(m);
|
|
6160
6160
|
}
|
|
6161
6161
|
function Gl() {
|
|
6162
|
-
|
|
6162
|
+
_ = o.platform.is.mobile !== !0 && e.behavior !== "dialog" ? !1 : e.behavior !== "menu" && (e.useInput === !0 ? n["no-option"] !== void 0 || e.onFilter !== void 0 || fe.value === !1 : !0), B = o.platform.is.ios === !0 && _ === !0 && e.useInput === !0 ? "fade" : e.transitionShow;
|
|
6163
6163
|
}
|
|
6164
6164
|
return Ho(Gl), Ia(Kl), Gl(), ze(() => {
|
|
6165
6165
|
g !== null && clearTimeout(g), b !== null && clearTimeout(b);
|
|
@@ -6181,7 +6181,7 @@ const $u = _e({
|
|
|
6181
6181
|
getOptionValue: (...m) => Be.value.apply(null, m),
|
|
6182
6182
|
getOptionLabel: (...m) => Se.value.apply(null, m)
|
|
6183
6183
|
}), Object.assign(f, {
|
|
6184
|
-
innerValue:
|
|
6184
|
+
innerValue: p,
|
|
6185
6185
|
fieldClass: s(
|
|
6186
6186
|
() => `q-select q-field--auto-height q-select--with${e.useInput !== !0 ? "out" : ""}-input q-select--with${e.useChips !== !0 ? "out" : ""}-chips q-select--${e.multiple === !0 ? "multiple" : "single"}`
|
|
6187
6187
|
),
|
|
@@ -6194,7 +6194,7 @@ const $u = _e({
|
|
|
6194
6194
|
),
|
|
6195
6195
|
getControlChild: () => {
|
|
6196
6196
|
if (f.editable.value !== !1 && (a.value === !0 || fe.value !== !0 || n["no-option"] !== void 0))
|
|
6197
|
-
return
|
|
6197
|
+
return _ === !0 ? mt() : de();
|
|
6198
6198
|
f.hasPopupOpen === !0 && (f.hasPopupOpen = !1);
|
|
6199
6199
|
},
|
|
6200
6200
|
controlEvents: {
|
|
@@ -6207,7 +6207,7 @@ const $u = _e({
|
|
|
6207
6207
|
});
|
|
6208
6208
|
},
|
|
6209
6209
|
onClick(m) {
|
|
6210
|
-
if (st(m),
|
|
6210
|
+
if (st(m), _ !== !0 && i.value === !0) {
|
|
6211
6211
|
zt(), $.value?.focus();
|
|
6212
6212
|
return;
|
|
6213
6213
|
}
|
|
@@ -6215,7 +6215,7 @@ const $u = _e({
|
|
|
6215
6215
|
}
|
|
6216
6216
|
},
|
|
6217
6217
|
getControl: (m) => {
|
|
6218
|
-
const ne = Jn(), le = m === !0 || a.value !== !0 ||
|
|
6218
|
+
const ne = Jn(), le = m === !0 || a.value !== !0 || _ !== !0;
|
|
6219
6219
|
if (e.useInput === !0)
|
|
6220
6220
|
ne.push(Zn(m, le));
|
|
6221
6221
|
else if (f.editable.value === !0) {
|
|
@@ -6280,7 +6280,7 @@ function Mo(e, n, l) {
|
|
|
6280
6280
|
transform: n === !0 ? `translateX(${l.lang.rtl === !0 ? "-" : ""}100%) scale3d(${-e},1,1)` : `scale3d(${e},1,1)`
|
|
6281
6281
|
};
|
|
6282
6282
|
}
|
|
6283
|
-
const Wu =
|
|
6283
|
+
const Wu = pe({
|
|
6284
6284
|
name: "QLinearProgress",
|
|
6285
6285
|
props: {
|
|
6286
6286
|
...tt,
|
|
@@ -6313,7 +6313,7 @@ const Wu = _e({
|
|
|
6313
6313
|
() => `q-linear-progress__track absolute-full q-linear-progress__track--${u.value} q-linear-progress__track--${t.value === !0 ? "dark" : "light"}` + (e.trackColor !== void 0 ? ` bg-${e.trackColor}` : "")
|
|
6314
6314
|
), b = s(() => Mo(i.value === !0 ? 1 : e.value, a.value, l.$q)), h = s(
|
|
6315
6315
|
() => `q-linear-progress__model absolute-full q-linear-progress__model--${u.value} q-linear-progress__model--${i.value === !0 ? "in" : ""}determinate`
|
|
6316
|
-
),
|
|
6316
|
+
), _ = s(() => ({ width: `${e.value * 100}%` })), x = s(
|
|
6317
6317
|
() => `q-linear-progress__stripe absolute-${e.reverse === !0 ? "right" : "left"} q-linear-progress__stripe--${u.value}`
|
|
6318
6318
|
);
|
|
6319
6319
|
return () => {
|
|
@@ -6330,7 +6330,7 @@ const Wu = _e({
|
|
|
6330
6330
|
return e.stripe === !0 && i.value === !1 && y.push(
|
|
6331
6331
|
v("div", {
|
|
6332
6332
|
class: x.value,
|
|
6333
|
-
style:
|
|
6333
|
+
style: _.value
|
|
6334
6334
|
})
|
|
6335
6335
|
), v("div", {
|
|
6336
6336
|
class: c.value,
|
|
@@ -6398,19 +6398,19 @@ function Yu(e, n) {
|
|
|
6398
6398
|
), h = s(() => {
|
|
6399
6399
|
const R = It(l.val);
|
|
6400
6400
|
return b.value === !0 ? l.modelValue.findIndex((O) => It(O) === R) : -1;
|
|
6401
|
-
}),
|
|
6402
|
-
() =>
|
|
6401
|
+
}), _ = s(() => b.value === !0 ? h.value !== -1 : It(l.modelValue) === It(l.trueValue)), x = s(() => b.value === !0 ? h.value === -1 : It(l.modelValue) === It(l.falseValue)), y = s(
|
|
6402
|
+
() => _.value === !1 && x.value === !1
|
|
6403
6403
|
), C = s(() => l.disable === !0 ? -1 : l.tabindex || 0), B = s(
|
|
6404
6404
|
() => `q-${e} cursor-pointer no-outline row inline no-wrap items-center` + (l.disable === !0 ? " disabled" : "") + (r.value === !0 ? ` q-${e}--dark` : "") + (l.dense === !0 ? ` q-${e}--dense` : "") + (l.leftLabel === !0 ? " reverse" : "")
|
|
6405
6405
|
), V = s(() => {
|
|
6406
|
-
const R =
|
|
6406
|
+
const R = _.value === !0 ? "truthy" : x.value === !0 ? "falsy" : "indet", O = l.color !== void 0 && (l.keepColor === !0 || x.value !== !0) ? ` text-${l.color}` : "";
|
|
6407
6407
|
return `q-${e}__inner relative-position non-selectable q-${e}__inner--${R}${O}`;
|
|
6408
6408
|
}), A = s(() => {
|
|
6409
6409
|
const R = { type: "checkbox" };
|
|
6410
6410
|
return l.name !== void 0 && Object.assign(R, {
|
|
6411
6411
|
// see https://vuejs.org/guide/extras/render-function.html#creating-vnodes (.prop)
|
|
6412
|
-
".checked":
|
|
6413
|
-
"^checked":
|
|
6412
|
+
".checked": _.value,
|
|
6413
|
+
"^checked": _.value === !0 ? "checked" : void 0,
|
|
6414
6414
|
name: l.name,
|
|
6415
6415
|
value: b.value === !0 ? l.val : l.trueValue
|
|
6416
6416
|
}), R;
|
|
@@ -6419,7 +6419,7 @@ function Yu(e, n) {
|
|
|
6419
6419
|
tabindex: C.value,
|
|
6420
6420
|
role: "checkbox",
|
|
6421
6421
|
"aria-label": l.label,
|
|
6422
|
-
"aria-checked": y.value === !0 ? "mixed" :
|
|
6422
|
+
"aria-checked": y.value === !0 ? "mixed" : _.value === !0 ? "true" : "false"
|
|
6423
6423
|
};
|
|
6424
6424
|
return l.disable === !0 && (R["aria-disabled"] = "true"), R;
|
|
6425
6425
|
});
|
|
@@ -6428,13 +6428,13 @@ function Yu(e, n) {
|
|
|
6428
6428
|
}
|
|
6429
6429
|
function Y() {
|
|
6430
6430
|
if (b.value === !0) {
|
|
6431
|
-
if (
|
|
6431
|
+
if (_.value === !0) {
|
|
6432
6432
|
const R = l.modelValue.slice();
|
|
6433
6433
|
return R.splice(h.value, 1), R;
|
|
6434
6434
|
}
|
|
6435
6435
|
return l.modelValue.concat([l.val]);
|
|
6436
6436
|
}
|
|
6437
|
-
if (
|
|
6437
|
+
if (_.value === !0) {
|
|
6438
6438
|
if (l.toggleOrder !== "ft" || l.toggleIndeterminate === !1)
|
|
6439
6439
|
return l.falseValue;
|
|
6440
6440
|
} else if (x.value === !0) {
|
|
@@ -6450,7 +6450,7 @@ function Yu(e, n) {
|
|
|
6450
6450
|
function q(R) {
|
|
6451
6451
|
(R.keyCode === 13 || R.keyCode === 32) && K(R);
|
|
6452
6452
|
}
|
|
6453
|
-
const w = n(
|
|
6453
|
+
const w = n(_, y);
|
|
6454
6454
|
return Object.assign(i, { toggle: K }), () => {
|
|
6455
6455
|
const R = w();
|
|
6456
6456
|
l.disable !== !0 && j(
|
|
@@ -6499,7 +6499,7 @@ const Ju = () => v("div", {
|
|
|
6499
6499
|
d: "M4,14H20V10H4"
|
|
6500
6500
|
})
|
|
6501
6501
|
])
|
|
6502
|
-
]), ml =
|
|
6502
|
+
]), ml = pe({
|
|
6503
6503
|
name: "QCheckbox",
|
|
6504
6504
|
props: Xu,
|
|
6505
6505
|
emits: Gu,
|
|
@@ -6585,9 +6585,9 @@ function oc(e, n, l, t) {
|
|
|
6585
6585
|
if (u === void 0 || u.field === void 0)
|
|
6586
6586
|
return r;
|
|
6587
6587
|
const g = d === !0 ? -1 : 1, b = typeof u.field == "function" ? (h) => u.field(h) : (h) => h[u.field];
|
|
6588
|
-
return r.sort((h,
|
|
6589
|
-
let x = b(h), y = b(
|
|
6590
|
-
return u.rawSort !== void 0 ? u.rawSort(x, y, h,
|
|
6588
|
+
return r.sort((h, _) => {
|
|
6589
|
+
let x = b(h), y = b(_);
|
|
6590
|
+
return u.rawSort !== void 0 ? u.rawSort(x, y, h, _) * g : x == null ? -1 * g : y == null ? 1 * g : u.sort !== void 0 ? u.sort(x, y, h, _) * g : Rl(x) === !0 && Rl(y) === !0 ? (x - y) * g : To(x) === !0 && To(y) === !0 ? nc(x, y) * g : typeof x == "boolean" && typeof y == "boolean" ? (x - y) * g : ([x, y] = [x, y].map((C) => (C + "").toLocaleString().toLowerCase()), x < y ? -1 * g : x === y ? 0 : g);
|
|
6591
6591
|
});
|
|
6592
6592
|
});
|
|
6593
6593
|
function a(r) {
|
|
@@ -6708,7 +6708,7 @@ function cc(e, n, l, t, o, i) {
|
|
|
6708
6708
|
}), b = s(() => l.value.page === 1), h = s(() => l.value.rowsPerPage === 0 ? 1 : Math.max(
|
|
6709
6709
|
1,
|
|
6710
6710
|
Math.ceil(d.value / l.value.rowsPerPage)
|
|
6711
|
-
)),
|
|
6711
|
+
)), _ = s(() => g.value === 0 ? !0 : l.value.page >= h.value), x = s(() => (a.rowsPerPageOptions.includes(n.value.rowsPerPage) ? a.rowsPerPageOptions : [n.value.rowsPerPage].concat(a.rowsPerPageOptions)).map((j) => ({
|
|
6712
6712
|
label: j === 0 ? c.lang.table.allRows : "" + j,
|
|
6713
6713
|
value: j
|
|
6714
6714
|
})));
|
|
@@ -6735,7 +6735,7 @@ function cc(e, n, l, t, o, i) {
|
|
|
6735
6735
|
firstRowIndex: u,
|
|
6736
6736
|
lastRowIndex: g,
|
|
6737
6737
|
isFirstPage: b,
|
|
6738
|
-
isLastPage:
|
|
6738
|
+
isLastPage: _,
|
|
6739
6739
|
pagesNumber: h,
|
|
6740
6740
|
computedRowsPerPageOptions: x,
|
|
6741
6741
|
computedRowsNumber: d,
|
|
@@ -6758,27 +6758,27 @@ const dc = {
|
|
|
6758
6758
|
}, fc = ["update:selected", "selection"];
|
|
6759
6759
|
function vc(e, n, l, t) {
|
|
6760
6760
|
const o = s(() => {
|
|
6761
|
-
const
|
|
6761
|
+
const _ = {};
|
|
6762
6762
|
return e.selected.map(t.value).forEach((x) => {
|
|
6763
|
-
|
|
6764
|
-
}),
|
|
6763
|
+
_[x] = !0;
|
|
6764
|
+
}), _;
|
|
6765
6765
|
}), i = s(() => e.selection !== "none"), a = s(() => e.selection === "single"), r = s(() => e.selection === "multiple"), c = s(
|
|
6766
6766
|
() => l.value.length !== 0 && l.value.every(
|
|
6767
|
-
(
|
|
6767
|
+
(_) => o.value[t.value(_)] === !0
|
|
6768
6768
|
)
|
|
6769
6769
|
), d = s(
|
|
6770
|
-
() => c.value !== !0 && l.value.some((
|
|
6770
|
+
() => c.value !== !0 && l.value.some((_) => o.value[t.value(_)] === !0)
|
|
6771
6771
|
), u = s(() => e.selected.length);
|
|
6772
|
-
function g(
|
|
6773
|
-
return o.value[
|
|
6772
|
+
function g(_) {
|
|
6773
|
+
return o.value[_] === !0;
|
|
6774
6774
|
}
|
|
6775
6775
|
function b() {
|
|
6776
6776
|
n("update:selected", []);
|
|
6777
6777
|
}
|
|
6778
|
-
function h(
|
|
6779
|
-
n("selection", { rows: x, added: y, keys:
|
|
6778
|
+
function h(_, x, y, C) {
|
|
6779
|
+
n("selection", { rows: x, added: y, keys: _, evt: C });
|
|
6780
6780
|
const B = a.value === !0 ? y === !0 ? x : [] : y === !0 ? e.selected.concat(x) : e.selected.filter(
|
|
6781
|
-
(V) =>
|
|
6781
|
+
(V) => _.includes(t.value(V)) === !1
|
|
6782
6782
|
);
|
|
6783
6783
|
n("update:selected", B);
|
|
6784
6784
|
}
|
|
@@ -6867,7 +6867,7 @@ const kn = "q-table__bottom row items-center", Ba = {};
|
|
|
6867
6867
|
ka.forEach((e) => {
|
|
6868
6868
|
Ba[e] = {};
|
|
6869
6869
|
});
|
|
6870
|
-
const
|
|
6870
|
+
const pc = pe({
|
|
6871
6871
|
name: "QTable",
|
|
6872
6872
|
props: {
|
|
6873
6873
|
rows: {
|
|
@@ -6952,7 +6952,7 @@ const _c = _e({
|
|
|
6952
6952
|
() => " q-table__card" + (i.value === !0 ? " q-table__card--dark q-dark" : "") + (e.square === !0 ? " q-table--square" : "") + (e.flat === !0 ? " q-table--flat" : "") + (e.bordered === !0 ? " q-table--bordered" : "")
|
|
6953
6953
|
), h = s(
|
|
6954
6954
|
() => `q-table__container q-table--${e.separator}-separator column no-wrap` + (e.grid === !0 ? " q-table--grid" : b.value) + (i.value === !0 ? " q-table--dark" : "") + (e.dense === !0 ? " q-table--dense" : "") + (e.wrapCells === !1 ? " q-table--no-wrap" : "") + (a.value === !0 ? " fullscreen scroll" : "")
|
|
6955
|
-
),
|
|
6955
|
+
), _ = s(
|
|
6956
6956
|
() => h.value + (e.loading === !0 ? " q-table--loading" : "")
|
|
6957
6957
|
);
|
|
6958
6958
|
ie(
|
|
@@ -6993,7 +6993,7 @@ const _c = _e({
|
|
|
6993
6993
|
isRowSelected: F,
|
|
6994
6994
|
clearSelection: E,
|
|
6995
6995
|
updateSelection: S
|
|
6996
|
-
} = vc(e, l, q, c), { colList: oe, computedCols: f, computedColsMap:
|
|
6996
|
+
} = vc(e, l, q, c), { colList: oe, computedCols: f, computedColsMap: p, computedColspan: z } = yc(e, y, w), { columnToSort: M, computedSortMethod: U, sort: J } = oc(e, y, oe, V), {
|
|
6997
6997
|
firstRowIndex: G,
|
|
6998
6998
|
lastRowIndex: fe,
|
|
6999
6999
|
isFirstPage: X,
|
|
@@ -7151,7 +7151,7 @@ const _c = _e({
|
|
|
7151
7151
|
function at(k) {
|
|
7152
7152
|
Object.assign(k, {
|
|
7153
7153
|
cols: f.value,
|
|
7154
|
-
colsMap:
|
|
7154
|
+
colsMap: p.value,
|
|
7155
7155
|
sort: J,
|
|
7156
7156
|
rowIndex: G.value + k.pageIndex,
|
|
7157
7157
|
color: e.color,
|
|
@@ -7267,7 +7267,7 @@ const _c = _e({
|
|
|
7267
7267
|
return Object.assign(k, {
|
|
7268
7268
|
cols: f.value,
|
|
7269
7269
|
sort: J,
|
|
7270
|
-
colsMap:
|
|
7270
|
+
colsMap: p.value,
|
|
7271
7271
|
color: e.color,
|
|
7272
7272
|
dark: i.value,
|
|
7273
7273
|
dense: e.dense
|
|
@@ -7496,7 +7496,7 @@ const _c = _e({
|
|
|
7496
7496
|
computedRows: () => q.value,
|
|
7497
7497
|
computedRowsNumber: () => He.value
|
|
7498
7498
|
}), () => {
|
|
7499
|
-
const k = [Gn()], te = { ref: d, class:
|
|
7499
|
+
const k = [Gn()], te = { ref: d, class: _.value };
|
|
7500
7500
|
return e.grid === !0 ? k.push(gn()) : Object.assign(te, {
|
|
7501
7501
|
class: [te.class, e.cardClass],
|
|
7502
7502
|
style: e.cardStyle
|
|
@@ -7508,7 +7508,7 @@ const _c = _e({
|
|
|
7508
7508
|
), v("div", te, k);
|
|
7509
7509
|
};
|
|
7510
7510
|
}
|
|
7511
|
-
}), qn = 20, zo = 100,
|
|
7511
|
+
}), qn = 20, zo = 100, _c = 32, xc = /* @__PURE__ */ Te({
|
|
7512
7512
|
__name: "ArrayRenderer",
|
|
7513
7513
|
props: {
|
|
7514
7514
|
context: { type: Object, required: !0 }
|
|
@@ -7527,7 +7527,7 @@ const _c = _e({
|
|
|
7527
7527
|
return S.every(
|
|
7528
7528
|
(f) => Object.keys(f).sort().join(",") === oe
|
|
7529
7529
|
);
|
|
7530
|
-
}), h = N("list"),
|
|
7530
|
+
}), h = N("list"), _ = s(() => r ? t.context.path ? r.state.expandedPaths.value[t.context.path] === !0 : !0 : t.context.depth < 1), x = s(() => r ? r.state.highlightedPath.value === t.context.path : !1);
|
|
7531
7531
|
function y(S) {
|
|
7532
7532
|
if (!r) return !1;
|
|
7533
7533
|
const oe = Ge(t.context.path, S), f = r.state.highlightedPath.value;
|
|
@@ -7535,8 +7535,8 @@ const _c = _e({
|
|
|
7535
7535
|
}
|
|
7536
7536
|
function C(S, oe) {
|
|
7537
7537
|
if (!r) return !1;
|
|
7538
|
-
const f = Ge(Ge(t.context.path, S), oe),
|
|
7539
|
-
return
|
|
7538
|
+
const f = Ge(Ge(t.context.path, S), oe), p = r.state.highlightedPath.value;
|
|
7539
|
+
return p === f || (p?.startsWith(f + ".") ?? !1) || (p?.startsWith(f + "[") ?? !1);
|
|
7540
7540
|
}
|
|
7541
7541
|
const B = s(() => t.context.value.map((oe, f) => typeof oe == "object" && oe !== null && !Array.isArray(oe) ? { ...oe, __qv_index: f } : { __qv_value: oe, __qv_index: f })), V = s(() => t.context.value.length), A = s(() => {
|
|
7542
7542
|
const S = t.context.value;
|
|
@@ -7583,13 +7583,13 @@ const _c = _e({
|
|
|
7583
7583
|
o(JSON.stringify(oe[S], null, 2), `row-${S}`);
|
|
7584
7584
|
}
|
|
7585
7585
|
function ae(S) {
|
|
7586
|
-
const f = t.context.value[S],
|
|
7587
|
-
o(
|
|
7586
|
+
const f = t.context.value[S], p = typeof f == "object" && f !== null ? JSON.stringify(f, null, 2) : String(f);
|
|
7587
|
+
o(p, `item-${S}`);
|
|
7588
7588
|
}
|
|
7589
7589
|
function F(S) {
|
|
7590
7590
|
return S === null || typeof S != "object" && typeof S != "function";
|
|
7591
7591
|
}
|
|
7592
|
-
const E = { SmartValue: l, props: t, copy: o, getIcon: i, getColor: a, expansion: r, isDense: c, indentWidthRef: d, indentWidth: u, showAll: g, maxDisplay: qn, isTableable: b, viewMode: h, isExpanded:
|
|
7592
|
+
const E = { SmartValue: l, props: t, copy: o, getIcon: i, getColor: a, expansion: r, isDense: c, indentWidthRef: d, indentWidth: u, showAll: g, maxDisplay: qn, isTableable: b, viewMode: h, isExpanded: _, isHighlighted: x, isIndexHighlighted: y, isCellHighlighted: C, arrayValue: B, length: V, preview: A, displayedItems: j, hasMore: $, VIRTUAL_SCROLL_THRESHOLD: zo, virtualItemSize: _c, useVirtualScroll: K, virtualScrollItems: Y, dataColumns: Q, tableColumns: q, toggle: w, expandSubtree: R, collapseSubtree: O, copyArray: P, copyRow: W, copyItem: ae, isPrimitive: F, get buildPath() {
|
|
7593
7593
|
return Ge;
|
|
7594
7594
|
} };
|
|
7595
7595
|
return Object.defineProperty(E, "__isScriptSetup", { enumerable: !1, value: !0 }), E;
|
|
@@ -7675,7 +7675,7 @@ function Oc(e, n, l, t, o, i) {
|
|
|
7675
7675
|
onClick: n[0] || (n[0] = (a) => t.viewMode = "list")
|
|
7676
7676
|
}, {
|
|
7677
7677
|
default: H(() => [
|
|
7678
|
-
D(
|
|
7678
|
+
D(_e, null, {
|
|
7679
7679
|
default: H(() => [...n[4] || (n[4] = [
|
|
7680
7680
|
ce(
|
|
7681
7681
|
"List view",
|
|
@@ -7699,7 +7699,7 @@ function Oc(e, n, l, t, o, i) {
|
|
|
7699
7699
|
onClick: n[1] || (n[1] = (a) => t.viewMode = "table")
|
|
7700
7700
|
}, {
|
|
7701
7701
|
default: H(() => [
|
|
7702
|
-
D(
|
|
7702
|
+
D(_e, null, {
|
|
7703
7703
|
default: H(() => [...n[5] || (n[5] = [
|
|
7704
7704
|
ce(
|
|
7705
7705
|
"Table view",
|
|
@@ -7729,7 +7729,7 @@ function Oc(e, n, l, t, o, i) {
|
|
|
7729
7729
|
onClick: t.collapseSubtree
|
|
7730
7730
|
}, {
|
|
7731
7731
|
default: H(() => [
|
|
7732
|
-
D(
|
|
7732
|
+
D(_e, null, {
|
|
7733
7733
|
default: H(() => [...n[6] || (n[6] = [
|
|
7734
7734
|
ce(
|
|
7735
7735
|
"Collapse all",
|
|
@@ -7755,7 +7755,7 @@ function Oc(e, n, l, t, o, i) {
|
|
|
7755
7755
|
onClick: t.expandSubtree
|
|
7756
7756
|
}, {
|
|
7757
7757
|
default: H(() => [
|
|
7758
|
-
D(
|
|
7758
|
+
D(_e, null, {
|
|
7759
7759
|
default: H(() => [...n[7] || (n[7] = [
|
|
7760
7760
|
ce(
|
|
7761
7761
|
"Expand all",
|
|
@@ -7782,7 +7782,7 @@ function Oc(e, n, l, t, o, i) {
|
|
|
7782
7782
|
onClick: t.copyArray
|
|
7783
7783
|
}, {
|
|
7784
7784
|
default: H(() => [
|
|
7785
|
-
D(
|
|
7785
|
+
D(_e, null, {
|
|
7786
7786
|
default: H(() => [...n[8] || (n[8] = [
|
|
7787
7787
|
ce(
|
|
7788
7788
|
"Copy array",
|
|
@@ -7805,7 +7805,7 @@ function Oc(e, n, l, t, o, i) {
|
|
|
7805
7805
|
[
|
|
7806
7806
|
ee(" Table View "),
|
|
7807
7807
|
t.viewMode === "table" && t.isTableable ? (L(), Z("div", Rc, [
|
|
7808
|
-
D(
|
|
7808
|
+
D(pc, {
|
|
7809
7809
|
flat: "",
|
|
7810
7810
|
dense: "",
|
|
7811
7811
|
rows: t.arrayValue,
|
|
@@ -7817,7 +7817,7 @@ function Oc(e, n, l, t, o, i) {
|
|
|
7817
7817
|
"rows-per-page-label": t.useVirtualScroll ? "All rows" : "Rows per page",
|
|
7818
7818
|
"row-key": "__qv_index",
|
|
7819
7819
|
class: Pe(["array-table", { "virtual-table": t.useVirtualScroll }]),
|
|
7820
|
-
style:
|
|
7820
|
+
style: pt(t.useVirtualScroll ? "max-height: 500px" : "")
|
|
7821
7821
|
}, {
|
|
7822
7822
|
body: H((a) => [
|
|
7823
7823
|
D(Ru, {
|
|
@@ -7857,7 +7857,7 @@ function Oc(e, n, l, t, o, i) {
|
|
|
7857
7857
|
name: t.getIcon(`row-${a.row.__qv_index}`),
|
|
7858
7858
|
size: "14px"
|
|
7859
7859
|
}, null, 8, ["name"]),
|
|
7860
|
-
D(
|
|
7860
|
+
D(_e, null, {
|
|
7861
7861
|
default: H(() => [...n[9] || (n[9] = [
|
|
7862
7862
|
ce(
|
|
7863
7863
|
"Copy row",
|
|
@@ -7905,7 +7905,7 @@ function Oc(e, n, l, t, o, i) {
|
|
|
7905
7905
|
"div",
|
|
7906
7906
|
{
|
|
7907
7907
|
class: "array-items",
|
|
7908
|
-
style:
|
|
7908
|
+
style: pt({
|
|
7909
7909
|
marginLeft: `${t.indentWidth}px`,
|
|
7910
7910
|
paddingLeft: `${Math.max(t.indentWidth, 16)}px`
|
|
7911
7911
|
})
|
|
@@ -7963,7 +7963,7 @@ function Oc(e, n, l, t, o, i) {
|
|
|
7963
7963
|
onClick: yt((r) => t.copyItem(a.__qv_original_index), ["stop"])
|
|
7964
7964
|
}, {
|
|
7965
7965
|
default: H(() => [
|
|
7966
|
-
D(
|
|
7966
|
+
D(_e, null, {
|
|
7967
7967
|
default: H(() => [...n[10] || (n[10] = [
|
|
7968
7968
|
ce(
|
|
7969
7969
|
"Copy item",
|
|
@@ -8032,7 +8032,7 @@ function Oc(e, n, l, t, o, i) {
|
|
|
8032
8032
|
onClick: yt((c) => t.copyItem(r), ["stop"])
|
|
8033
8033
|
}, {
|
|
8034
8034
|
default: H(() => [
|
|
8035
|
-
D(
|
|
8035
|
+
D(_e, null, {
|
|
8036
8036
|
default: H(() => [...n[11] || (n[11] = [
|
|
8037
8037
|
ce(
|
|
8038
8038
|
"Copy item",
|
|
@@ -8125,7 +8125,7 @@ function jc(e, n, l, t, o, i) {
|
|
|
8125
8125
|
))
|
|
8126
8126
|
]);
|
|
8127
8127
|
}
|
|
8128
|
-
const jo = /* @__PURE__ */ Ae(Ac, [["render", jc], ["__scopeId", "data-v-ac41a1e6"], ["__file", "/Users/zachsherbondy/src/github.com/quickview/renderers/structures/EmptyRenderer.vue"]]), Fc =
|
|
8128
|
+
const jo = /* @__PURE__ */ Ae(Ac, [["render", jc], ["__scopeId", "data-v-ac41a1e6"], ["__file", "/Users/zachsherbondy/src/github.com/quickview/renderers/structures/EmptyRenderer.vue"]]), Fc = pe({
|
|
8129
8129
|
name: "QSlideTransition",
|
|
8130
8130
|
props: {
|
|
8131
8131
|
appear: Boolean,
|
|
@@ -8154,7 +8154,7 @@ const jo = /* @__PURE__ */ Ae(Ac, [["render", jc], ["__scopeId", "data-v-ac41a1e
|
|
|
8154
8154
|
}, x.addEventListener("transitionend", c), r = setTimeout(c, e.duration * 1.1);
|
|
8155
8155
|
}, 100);
|
|
8156
8156
|
}
|
|
8157
|
-
function
|
|
8157
|
+
function _(x, y) {
|
|
8158
8158
|
let C;
|
|
8159
8159
|
i = x, t === !0 ? u() : (d = "show", x.style.overflowY = "hidden", C = x.scrollHeight), g(x, C, y), a = setTimeout(() => {
|
|
8160
8160
|
a = null, x.style.height = 0, c = (B) => {
|
|
@@ -8168,10 +8168,10 @@ const jo = /* @__PURE__ */ Ae(Ac, [["render", jc], ["__scopeId", "data-v-ac41a1e
|
|
|
8168
8168
|
css: !1,
|
|
8169
8169
|
appear: e.appear,
|
|
8170
8170
|
onEnter: h,
|
|
8171
|
-
onLeave:
|
|
8171
|
+
onLeave: _
|
|
8172
8172
|
}, n.default);
|
|
8173
8173
|
}
|
|
8174
|
-
}), qt = Da({}), Ic = Object.keys(Nl), Ct =
|
|
8174
|
+
}), qt = Da({}), Ic = Object.keys(Nl), Ct = pe({
|
|
8175
8175
|
name: "QExpansionItem",
|
|
8176
8176
|
props: {
|
|
8177
8177
|
...Nl,
|
|
@@ -8214,7 +8214,7 @@ const jo = /* @__PURE__ */ Ae(Ac, [["render", jc], ["__scopeId", "data-v-ac41a1e
|
|
|
8214
8214
|
let g, b;
|
|
8215
8215
|
const h = s(
|
|
8216
8216
|
() => `q-expansion-item q-item-type q-expansion-item--${i.value === !0 ? "expanded" : "collapsed"} q-expansion-item--${e.popup === !0 ? "popup" : "standard"}`
|
|
8217
|
-
),
|
|
8217
|
+
), _ = s(() => e.contentInsetLevel === void 0 ? null : {
|
|
8218
8218
|
["padding" + (t.lang.rtl === !0 ? "Right" : "Left")]: e.contentInsetLevel * 56 + "px"
|
|
8219
8219
|
}), x = s(
|
|
8220
8220
|
() => e.disable !== !0 && (e.href !== void 0 || e.to !== void 0 && e.to !== null && e.to !== "")
|
|
@@ -8337,7 +8337,7 @@ const jo = /* @__PURE__ */ Ae(Ac, [["render", jc], ["__scopeId", "data-v-ac41a1e
|
|
|
8337
8337
|
v("div", {
|
|
8338
8338
|
key: "e-content",
|
|
8339
8339
|
class: "q-expansion-item__content relative-position",
|
|
8340
|
-
style:
|
|
8340
|
+
style: _.value,
|
|
8341
8341
|
id: r.value
|
|
8342
8342
|
}, Ve(n.default)),
|
|
8343
8343
|
[[
|
|
@@ -8379,7 +8379,7 @@ const jo = /* @__PURE__ */ Ae(Ac, [["render", jc], ["__scopeId", "data-v-ac41a1e
|
|
|
8379
8379
|
},
|
|
8380
8380
|
setup(e, { expose: n }) {
|
|
8381
8381
|
n();
|
|
8382
|
-
const l = un(() => Promise.resolve().then(() => $n)), t = e, { copy: o, getIcon: i, getColor: a } = Qn(), r = et("quickview-expansion", null), c = N(!1), d = N(!0), u = N(!1), g = N(!1), b = N(!1), h = N("smart"),
|
|
8382
|
+
const l = un(() => Promise.resolve().then(() => $n)), t = e, { copy: o, getIcon: i, getColor: a } = Qn(), r = et("quickview-expansion", null), c = N(!1), d = N(!0), u = N(!1), g = N(!1), b = N(!1), h = N("smart"), _ = N("smart"), x = N("smart");
|
|
8383
8383
|
ie(d, (I) => {
|
|
8384
8384
|
if (I && r) {
|
|
8385
8385
|
const ge = t.context.path || "", $e = ge ? `${ge}.body` : "body";
|
|
@@ -8392,7 +8392,7 @@ const jo = /* @__PURE__ */ Ae(Ac, [["render", jc], ["__scopeId", "data-v-ac41a1e
|
|
|
8392
8392
|
const ge = t.context.path || "", $e = ge ? `${ge}.headers` : "headers";
|
|
8393
8393
|
I.startsWith($e) && (c.value = !0);
|
|
8394
8394
|
const Be = ge ? `${ge}.body` : "body";
|
|
8395
|
-
I.startsWith(Be) && (d.value = !0,
|
|
8395
|
+
I.startsWith(Be) && (d.value = !0, _.value = "smart");
|
|
8396
8396
|
const Se = ge ? `${ge}.text` : "text";
|
|
8397
8397
|
I.startsWith(Se) && (u.value = !0);
|
|
8398
8398
|
const Ye = ge ? `${ge}.timings` : "timings";
|
|
@@ -8447,7 +8447,7 @@ const jo = /* @__PURE__ */ Ae(Ac, [["render", jc], ["__scopeId", "data-v-ac41a1e
|
|
|
8447
8447
|
const ge = Ge(C.value, I);
|
|
8448
8448
|
return r.state.highlightedPath.value === ge;
|
|
8449
8449
|
}
|
|
8450
|
-
const W = s(() =>
|
|
8450
|
+
const W = s(() => ps(y.value.status)), ae = s(() => {
|
|
8451
8451
|
switch (wl(y.value.status)) {
|
|
8452
8452
|
case "success":
|
|
8453
8453
|
return "check_circle";
|
|
@@ -8481,7 +8481,7 @@ const jo = /* @__PURE__ */ Ae(Ac, [["render", jc], ["__scopeId", "data-v-ac41a1e
|
|
|
8481
8481
|
if (!I) return null;
|
|
8482
8482
|
const ge = typeof I == "string" ? I : JSON.stringify(I);
|
|
8483
8483
|
return rn(new Blob([ge]).size);
|
|
8484
|
-
}),
|
|
8484
|
+
}), p = s(() => {
|
|
8485
8485
|
const I = y.value.body;
|
|
8486
8486
|
return typeof I == "string" ? I : JSON.stringify(I, null, 2);
|
|
8487
8487
|
}), z = s(() => {
|
|
@@ -8521,7 +8521,7 @@ const jo = /* @__PURE__ */ Ae(Ac, [["render", jc], ["__scopeId", "data-v-ac41a1e
|
|
|
8521
8521
|
o(J.value, "headers");
|
|
8522
8522
|
}
|
|
8523
8523
|
function Fe() {
|
|
8524
|
-
o(
|
|
8524
|
+
o(p.value, "body");
|
|
8525
8525
|
}
|
|
8526
8526
|
function ut() {
|
|
8527
8527
|
o(U.value, "text");
|
|
@@ -8538,7 +8538,7 @@ const jo = /* @__PURE__ */ Ae(Ac, [["render", jc], ["__scopeId", "data-v-ac41a1e
|
|
|
8538
8538
|
function We() {
|
|
8539
8539
|
o(A.value?.url || "", "request-url");
|
|
8540
8540
|
}
|
|
8541
|
-
const lt = { SmartValue: l, props: t, copy: o, getIcon: i, getColor: a, expansion: r, headersExpanded: c, bodyExpanded: d, textExpanded: u, timingsExpanded: g, requestExpanded: b, headersViewMode: h, bodyViewMode:
|
|
8541
|
+
const lt = { SmartValue: l, props: t, copy: o, getIcon: i, getColor: a, expansion: r, headersExpanded: c, bodyExpanded: d, textExpanded: u, timingsExpanded: g, requestExpanded: b, headersViewMode: h, bodyViewMode: _, requestViewMode: x, response: y, headersPath: C, bodyPath: B, textPath: V, requestData: A, requestPath: j, hasRequestData: $, requestBodyPath: K, requestHeadersPath: Y, requestHeaderCount: Q, hasRequestHeaders: q, hasRequestBody: w, rawRequestHeaders: R, rawRequestBody: O, isHeaderHighlighted: P, statusColor: W, statusIcon: ae, statusLabel: F, hasHeaders: E, headerCount: S, contentType: oe, bodySize: f, rawBody: p, hasText: z, textSize: M, responseText: U, rawHeaders: J, timing: G, timingPhases: fe, formatHeaderValue: X, copyHeaders: Re, copyBody: Fe, copyText: ut, copyUrl: He, copyRequestHeaders: ct, copyRequestBody: Ue, copyRequestUrl: We, get buildPath() {
|
|
8542
8542
|
return Ge;
|
|
8543
8543
|
} };
|
|
8544
8544
|
return Object.defineProperty(lt, "__isScriptSetup", { enumerable: !1, value: !0 }), lt;
|
|
@@ -8558,7 +8558,7 @@ const jo = /* @__PURE__ */ Ae(Ac, [["render", jc], ["__scopeId", "data-v-ac41a1e
|
|
|
8558
8558
|
}, ld = { class: "section-title" }, od = { class: "body-content" }, ad = { class: "body-toolbar" }, rd = { class: "view-toggle" }, id = ["data-qv-path"], sd = {
|
|
8559
8559
|
key: 1,
|
|
8560
8560
|
class: "raw-body"
|
|
8561
|
-
}, ud = { class: "section-title" }, cd = { class: "text-content" }, dd = { class: "text-toolbar" }, fd = ["data-qv-path"], vd = { class: "section-title" }, hd = { class: "timing-content" }, md = { class: "timing-bar" }, gd = ["title"], bd = { class: "timing-legend" }, yd = { class: "timing-label" },
|
|
8561
|
+
}, ud = { class: "section-title" }, cd = { class: "text-content" }, dd = { class: "text-toolbar" }, fd = ["data-qv-path"], vd = { class: "section-title" }, hd = { class: "timing-content" }, md = { class: "timing-bar" }, gd = ["title"], bd = { class: "timing-legend" }, yd = { class: "timing-label" }, pd = { class: "timing-value" }, _d = { class: "section-title" }, xd = ["data-qv-path"], wd = {
|
|
8562
8562
|
key: 0,
|
|
8563
8563
|
class: "request-url-row"
|
|
8564
8564
|
}, Sd = { class: "request-url" }, kd = {
|
|
@@ -8638,7 +8638,7 @@ function Ld(e, n, l, t, o, i) {
|
|
|
8638
8638
|
onClick: t.copyUrl
|
|
8639
8639
|
}, {
|
|
8640
8640
|
default: H(() => [
|
|
8641
|
-
D(
|
|
8641
|
+
D(_e, null, {
|
|
8642
8642
|
default: H(() => [...n[11] || (n[11] = [
|
|
8643
8643
|
ce(
|
|
8644
8644
|
"Copy URL",
|
|
@@ -8656,7 +8656,7 @@ function Ld(e, n, l, t, o, i) {
|
|
|
8656
8656
|
])) : ee("v-if", !0)
|
|
8657
8657
|
]),
|
|
8658
8658
|
ee(" Sections "),
|
|
8659
|
-
D(
|
|
8659
|
+
D(_a, {
|
|
8660
8660
|
class: "http-sections",
|
|
8661
8661
|
dense: ""
|
|
8662
8662
|
}, {
|
|
@@ -8739,7 +8739,7 @@ function Ld(e, n, l, t, o, i) {
|
|
|
8739
8739
|
onClick: t.copyHeaders
|
|
8740
8740
|
}, {
|
|
8741
8741
|
default: H(() => [
|
|
8742
|
-
D(
|
|
8742
|
+
D(_e, null, {
|
|
8743
8743
|
default: H(() => [...n[13] || (n[13] = [
|
|
8744
8744
|
ce(
|
|
8745
8745
|
"Copy headers",
|
|
@@ -8884,7 +8884,7 @@ function Ld(e, n, l, t, o, i) {
|
|
|
8884
8884
|
onClick: t.copyBody
|
|
8885
8885
|
}, {
|
|
8886
8886
|
default: H(() => [
|
|
8887
|
-
D(
|
|
8887
|
+
D(_e, null, {
|
|
8888
8888
|
default: H(() => [...n[15] || (n[15] = [
|
|
8889
8889
|
ce(
|
|
8890
8890
|
"Copy body",
|
|
@@ -8984,7 +8984,7 @@ function Ld(e, n, l, t, o, i) {
|
|
|
8984
8984
|
onClick: t.copyText
|
|
8985
8985
|
}, {
|
|
8986
8986
|
default: H(() => [
|
|
8987
|
-
D(
|
|
8987
|
+
D(_e, null, {
|
|
8988
8988
|
default: H(() => [...n[17] || (n[17] = [
|
|
8989
8989
|
ce(
|
|
8990
8990
|
"Copy text",
|
|
@@ -9049,7 +9049,7 @@ function Ld(e, n, l, t, o, i) {
|
|
|
9049
9049
|
bt(t.timingPhases, (a) => (L(), Z("div", {
|
|
9050
9050
|
key: a.name,
|
|
9051
9051
|
class: "timing-phase",
|
|
9052
|
-
style:
|
|
9052
|
+
style: pt({ width: a.width + "%", background: a.color }),
|
|
9053
9053
|
title: `${a.name}: ${a.duration}ms`
|
|
9054
9054
|
}, null, 12, gd))),
|
|
9055
9055
|
128
|
|
@@ -9068,7 +9068,7 @@ function Ld(e, n, l, t, o, i) {
|
|
|
9068
9068
|
"span",
|
|
9069
9069
|
{
|
|
9070
9070
|
class: "timing-dot",
|
|
9071
|
-
style:
|
|
9071
|
+
style: pt({ background: a.color })
|
|
9072
9072
|
},
|
|
9073
9073
|
null,
|
|
9074
9074
|
4
|
|
@@ -9083,7 +9083,7 @@ function Ld(e, n, l, t, o, i) {
|
|
|
9083
9083
|
),
|
|
9084
9084
|
T(
|
|
9085
9085
|
"span",
|
|
9086
|
-
|
|
9086
|
+
pd,
|
|
9087
9087
|
re(a.duration) + "ms",
|
|
9088
9088
|
1
|
|
9089
9089
|
/* TEXT */
|
|
@@ -9108,7 +9108,7 @@ function Ld(e, n, l, t, o, i) {
|
|
|
9108
9108
|
"expand-icon-class": "expand-icon"
|
|
9109
9109
|
}, {
|
|
9110
9110
|
header: H(() => [
|
|
9111
|
-
T("div",
|
|
9111
|
+
T("div", _d, [
|
|
9112
9112
|
D(me, {
|
|
9113
9113
|
name: "upload",
|
|
9114
9114
|
size: "16px"
|
|
@@ -9164,7 +9164,7 @@ function Ld(e, n, l, t, o, i) {
|
|
|
9164
9164
|
onClick: t.copyRequestUrl
|
|
9165
9165
|
}, {
|
|
9166
9166
|
default: H(() => [
|
|
9167
|
-
D(
|
|
9167
|
+
D(_e, null, {
|
|
9168
9168
|
default: H(() => [...n[21] || (n[21] = [
|
|
9169
9169
|
ce(
|
|
9170
9170
|
"Copy request URL",
|
|
@@ -9239,7 +9239,7 @@ function Ld(e, n, l, t, o, i) {
|
|
|
9239
9239
|
onClick: t.copyRequestHeaders
|
|
9240
9240
|
}, {
|
|
9241
9241
|
default: H(() => [
|
|
9242
|
-
D(
|
|
9242
|
+
D(_e, null, {
|
|
9243
9243
|
default: H(() => [...n[22] || (n[22] = [
|
|
9244
9244
|
ce(
|
|
9245
9245
|
"Copy request headers",
|
|
@@ -9310,7 +9310,7 @@ function Ld(e, n, l, t, o, i) {
|
|
|
9310
9310
|
onClick: t.copyRequestBody
|
|
9311
9311
|
}, {
|
|
9312
9312
|
default: H(() => [
|
|
9313
|
-
D(
|
|
9313
|
+
D(_e, null, {
|
|
9314
9314
|
default: H(() => [...n[24] || (n[24] = [
|
|
9315
9315
|
ce(
|
|
9316
9316
|
"Copy request body",
|
|
@@ -9350,13 +9350,13 @@ function Ld(e, n, l, t, o, i) {
|
|
|
9350
9350
|
})
|
|
9351
9351
|
], 8, Hc);
|
|
9352
9352
|
}
|
|
9353
|
-
const zd = /* @__PURE__ */ Ae(Dc, [["render", Ld], ["__scopeId", "data-v-7227aa88"], ["__file", "/Users/zachsherbondy/src/github.com/quickview/renderers/domain/HttpResponseRenderer.vue"]]), jd =
|
|
9353
|
+
const zd = /* @__PURE__ */ Ae(Dc, [["render", Ld], ["__scopeId", "data-v-7227aa88"], ["__file", "/Users/zachsherbondy/src/github.com/quickview/renderers/domain/HttpResponseRenderer.vue"]]), jd = pe({
|
|
9354
9354
|
name: "QSpace",
|
|
9355
9355
|
setup() {
|
|
9356
9356
|
const e = v("div", { class: "q-space" });
|
|
9357
9357
|
return () => e;
|
|
9358
9358
|
}
|
|
9359
|
-
}), Fo =
|
|
9359
|
+
}), Fo = pe({
|
|
9360
9360
|
name: "QCardSection",
|
|
9361
9361
|
props: {
|
|
9362
9362
|
tag: {
|
|
@@ -9371,7 +9371,7 @@ const zd = /* @__PURE__ */ Ae(Dc, [["render", Ld], ["__scopeId", "data-v-7227aa8
|
|
|
9371
9371
|
);
|
|
9372
9372
|
return () => v(e.tag, { class: l.value }, Ve(n.default));
|
|
9373
9373
|
}
|
|
9374
|
-
}), Fd =
|
|
9374
|
+
}), Fd = pe({
|
|
9375
9375
|
name: "QCard",
|
|
9376
9376
|
props: {
|
|
9377
9377
|
...tt,
|
|
@@ -9411,7 +9411,7 @@ const Id = $o(
|
|
|
9411
9411
|
});
|
|
9412
9412
|
},
|
|
9413
9413
|
handlerKey(t) {
|
|
9414
|
-
|
|
9414
|
+
_t(t, 13) === !0 && l.handler(t);
|
|
9415
9415
|
}
|
|
9416
9416
|
};
|
|
9417
9417
|
e.__qclosepopup = l, e.addEventListener("click", l.handler), e.addEventListener("keyup", l.handlerKey);
|
|
@@ -9461,7 +9461,7 @@ const Id = $o(
|
|
|
9461
9461
|
default:
|
|
9462
9462
|
return "grey";
|
|
9463
9463
|
}
|
|
9464
|
-
}),
|
|
9464
|
+
}), _ = s(() => {
|
|
9465
9465
|
switch (g.value) {
|
|
9466
9466
|
case "image":
|
|
9467
9467
|
return "image";
|
|
@@ -9517,7 +9517,7 @@ const Id = $o(
|
|
|
9517
9517
|
const Q = r.value.url || "";
|
|
9518
9518
|
await Kn(Q) && t.notify({ message: "URL copied to clipboard", icon: "check" });
|
|
9519
9519
|
}
|
|
9520
|
-
const Y = { props: l, $q: t, showContent: o, showFullImage: i, isDownloading: a, file: r, fileName: c, fileSize: d, mimeType: u, mimeCategory: g, mimeLabel: b, mimeColor: h, fileIcon:
|
|
9520
|
+
const Y = { props: l, $q: t, showContent: o, showFullImage: i, isDownloading: a, file: r, fileName: c, fileSize: d, mimeType: u, mimeCategory: g, mimeLabel: b, mimeColor: h, fileIcon: _, truncatedUrl: x, canPreview: y, previewUrl: C, decodedContent: B, togglePreview: V, isCloudStorageUrl: A, canDownload: j, downloadFile: $, copyUrl: K };
|
|
9521
9521
|
return Object.defineProperty(Y, "__isScriptSetup", { enumerable: !1, value: !0 }), Y;
|
|
9522
9522
|
}
|
|
9523
9523
|
}), Hd = ["data-qv-path"], Nd = { class: "file-card" }, $d = ["src"], Ud = { class: "file-info" }, Wd = ["title"], Kd = { class: "file-meta" }, Qd = {
|
|
@@ -9605,7 +9605,7 @@ function nf(e, n, l, t, o, i) {
|
|
|
9605
9605
|
onClick: t.downloadFile
|
|
9606
9606
|
}, {
|
|
9607
9607
|
default: H(() => [
|
|
9608
|
-
t.isDownloading ? ee("v-if", !0) : (L(), be(
|
|
9608
|
+
t.isDownloading ? ee("v-if", !0) : (L(), be(_e, { key: 0 }, {
|
|
9609
9609
|
default: H(() => [...n[3] || (n[3] = [
|
|
9610
9610
|
ce(
|
|
9611
9611
|
"Download",
|
|
@@ -9629,7 +9629,7 @@ function nf(e, n, l, t, o, i) {
|
|
|
9629
9629
|
onClick: t.togglePreview
|
|
9630
9630
|
}, {
|
|
9631
9631
|
default: H(() => [
|
|
9632
|
-
D(
|
|
9632
|
+
D(_e, null, {
|
|
9633
9633
|
default: H(() => [
|
|
9634
9634
|
ce(
|
|
9635
9635
|
re(t.showContent ? "Hide" : "Preview"),
|
|
@@ -9653,7 +9653,7 @@ function nf(e, n, l, t, o, i) {
|
|
|
9653
9653
|
onClick: t.copyUrl
|
|
9654
9654
|
}, {
|
|
9655
9655
|
default: H(() => [
|
|
9656
|
-
D(
|
|
9656
|
+
D(_e, null, {
|
|
9657
9657
|
default: H(() => [...n[4] || (n[4] = [
|
|
9658
9658
|
ce(
|
|
9659
9659
|
"Copy URL",
|
|
@@ -9773,12 +9773,12 @@ const lf = /* @__PURE__ */ Ae(Dd, [["render", nf], ["__scopeId", "data-v-8c9554b
|
|
|
9773
9773
|
},
|
|
9774
9774
|
{ immediate: !0 }
|
|
9775
9775
|
);
|
|
9776
|
-
const u = s(() => t.context.value), g = s(() => u.value.message ? u.value.message : typeof u.value.error == "string" ? u.value.error : typeof u.value.error == "object" && u.value.error?.message ? u.value.error.message : "Unknown error"), b = s(() => u.value.code), h = s(() => u.value.stack || ""),
|
|
9776
|
+
const u = s(() => t.context.value), g = s(() => u.value.message ? u.value.message : typeof u.value.error == "string" ? u.value.error : typeof u.value.error == "object" && u.value.error?.message ? u.value.error.message : "Unknown error"), b = s(() => u.value.code), h = s(() => u.value.stack || ""), _ = s(() => !!u.value.stack), x = s(() => {
|
|
9777
9777
|
if ("details" in u.value && u.value.details != null)
|
|
9778
9778
|
return u.value.details;
|
|
9779
9779
|
const { message: B, error: V, code: A, stack: j, ...$ } = u.value;
|
|
9780
9780
|
return Object.keys($).length > 0 ? $ : null;
|
|
9781
|
-
}), y = s(() => x.value !== null), C = { SmartValue: l, props: t, expansion: o, stackExpanded: i, detailsExpanded: a, basePath: r, detailsPath: c, isHighlighted: d, error: u, errorMessage: g, errorCode: b, errorStack: h, hasStack:
|
|
9781
|
+
}), y = s(() => x.value !== null), C = { SmartValue: l, props: t, expansion: o, stackExpanded: i, detailsExpanded: a, basePath: r, detailsPath: c, isHighlighted: d, error: u, errorMessage: g, errorCode: b, errorStack: h, hasStack: _, errorDetails: x, hasDetails: y };
|
|
9782
9782
|
return Object.defineProperty(C, "__isScriptSetup", { enumerable: !1, value: !0 }), C;
|
|
9783
9783
|
}
|
|
9784
9784
|
}), af = ["data-qv-path"], rf = { class: "error-header" }, sf = { class: "error-message" }, uf = {
|
|
@@ -9865,7 +9865,7 @@ function ff(e, n, l, t, o, i) {
|
|
|
9865
9865
|
const vf = /* @__PURE__ */ Ae(of, [["render", ff], ["__scopeId", "data-v-3f124526"], ["__file", "/Users/zachsherbondy/src/github.com/quickview/renderers/domain/ErrorObjectRenderer.vue"]]);
|
|
9866
9866
|
function Oa() {
|
|
9867
9867
|
const e = new Un();
|
|
9868
|
-
return e.register("http-response", zd, Ai), e.register("file-object", lf, Li), e.register("error-object", vf, zi), e.register("url", us, qi), e.register("email", hs, Ci), e.register("date-string", xo, Ri), e.register("color", Ps, Pi), e.register("json-string", Js, Ti), e.register("html-string", su, Bi), e.register("base64", Us, Ei), e.register("long-string", As, Vi), e.register("empty-array", jo, Oi), e.register("empty-object", jo, Mi), e.register("array", Mc, bi), e.register("object", ku,
|
|
9868
|
+
return e.register("http-response", zd, Ai), e.register("file-object", lf, Li), e.register("error-object", vf, zi), e.register("url", us, qi), e.register("email", hs, Ci), e.register("date-string", xo, Ri), e.register("color", Ps, Pi), e.register("json-string", Js, Ti), e.register("html-string", su, Bi), e.register("base64", Us, Ei), e.register("long-string", As, Vi), e.register("empty-array", jo, Oi), e.register("empty-object", jo, Mi), e.register("array", Mc, bi), e.register("object", ku, pa), e.register("date-object", xo, ji), e.register("null", Hi, fi), e.register("undefined", Wi, vi), e.register("boolean", Xi, hi), e.register("number", Zi, mi), e.register("string", os, gi), e;
|
|
9869
9869
|
}
|
|
9870
9870
|
Oa();
|
|
9871
9871
|
function hf(e = 2) {
|
|
@@ -9926,8 +9926,8 @@ function hf(e = 2) {
|
|
|
9926
9926
|
if (!(d >= u)) {
|
|
9927
9927
|
if (Array.isArray(r))
|
|
9928
9928
|
c && (g[c] = !0), r.forEach((b, h) => {
|
|
9929
|
-
const
|
|
9930
|
-
a(b,
|
|
9929
|
+
const _ = Ge(c, h);
|
|
9930
|
+
a(b, _, d + 1, u, g);
|
|
9931
9931
|
});
|
|
9932
9932
|
else if (typeof r == "object" && r !== null) {
|
|
9933
9933
|
c && (g[c] = !0);
|
|
@@ -9977,24 +9977,24 @@ const gf = /* @__PURE__ */ Te({
|
|
|
9977
9977
|
"quickview-indent-width",
|
|
9978
9978
|
s(() => l.options.indentWidth ?? 24)
|
|
9979
9979
|
);
|
|
9980
|
-
const g = N(""), b = N(""), h = N(!1),
|
|
9980
|
+
const g = N(""), b = N(""), h = N(!1), _ = N(0), x = Vl((S) => {
|
|
9981
9981
|
b.value = S;
|
|
9982
9982
|
}, 150);
|
|
9983
9983
|
ie(g, (S) => {
|
|
9984
9984
|
x(S);
|
|
9985
9985
|
});
|
|
9986
|
-
const y = s(() => l.options.showCopyButtons !== !
|
|
9986
|
+
const y = s(() => l.options.showToolbar !== void 0 ? l.options.showToolbar : l.options.showCopyButtons !== void 0 ? l.options.showCopyButtons : !0), C = s(() => !0), B = s(() => l.options.dense === !0), V = s(() => h.value && g.value.length >= 2 && A.value.length > 0), A = s(() => {
|
|
9987
9987
|
if (!b.value || b.value.length < 2) return [];
|
|
9988
9988
|
const S = [], oe = /* @__PURE__ */ new Set(), f = b.value.toLowerCase();
|
|
9989
|
-
function
|
|
9989
|
+
function p(M, U, J) {
|
|
9990
9990
|
oe.has(M) || (oe.add(M), S.push({ path: M, preview: U, matchType: J }));
|
|
9991
9991
|
}
|
|
9992
9992
|
function z(M, U) {
|
|
9993
|
-
if (!(S.length >= 100) && (U && U.toLowerCase().includes(f) &&
|
|
9993
|
+
if (!(S.length >= 100) && (U && U.toLowerCase().includes(f) && p(U, Ut(M, 60), "path"), M != null)) {
|
|
9994
9994
|
if (typeof M == "string")
|
|
9995
|
-
M.toLowerCase().includes(f) &&
|
|
9995
|
+
M.toLowerCase().includes(f) && p(U, Ut(M, 60), "value");
|
|
9996
9996
|
else if (typeof M == "number" || typeof M == "boolean")
|
|
9997
|
-
String(M).toLowerCase().includes(f) &&
|
|
9997
|
+
String(M).toLowerCase().includes(f) && p(U, String(M), "value");
|
|
9998
9998
|
else if (Array.isArray(M))
|
|
9999
9999
|
M.forEach((J, G) => {
|
|
10000
10000
|
z(J, U ? `${U}[${G}]` : `[${G}]`);
|
|
@@ -10002,7 +10002,7 @@ const gf = /* @__PURE__ */ Te({
|
|
|
10002
10002
|
else if (typeof M == "object")
|
|
10003
10003
|
for (const [J, G] of Object.entries(M)) {
|
|
10004
10004
|
const fe = U ? `${U}.${J}` : J;
|
|
10005
|
-
J.toLowerCase().includes(f) && !oe.has(fe) &&
|
|
10005
|
+
J.toLowerCase().includes(f) && !oe.has(fe) && p(fe, Ut(G, 60), "key"), z(G, fe);
|
|
10006
10006
|
}
|
|
10007
10007
|
}
|
|
10008
10008
|
}
|
|
@@ -10022,13 +10022,13 @@ const gf = /* @__PURE__ */ Te({
|
|
|
10022
10022
|
}
|
|
10023
10023
|
function K(S) {
|
|
10024
10024
|
const oe = Math.min(A.value.length - 1, 19);
|
|
10025
|
-
|
|
10025
|
+
_.value = Math.max(
|
|
10026
10026
|
0,
|
|
10027
|
-
Math.min(oe,
|
|
10027
|
+
Math.min(oe, _.value + S)
|
|
10028
10028
|
), Ce(() => {
|
|
10029
10029
|
const f = r.value;
|
|
10030
10030
|
if (!f) return;
|
|
10031
|
-
const z = f.querySelectorAll(".search-result-item")[
|
|
10031
|
+
const z = f.querySelectorAll(".search-result-item")[_.value];
|
|
10032
10032
|
if (z) {
|
|
10033
10033
|
const M = f.getBoundingClientRect(), U = z.getBoundingClientRect();
|
|
10034
10034
|
U.bottom > M.bottom ? f.scrollTop += U.bottom - M.bottom : U.top < M.top && (f.scrollTop -= M.top - U.top);
|
|
@@ -10036,19 +10036,19 @@ const gf = /* @__PURE__ */ Te({
|
|
|
10036
10036
|
});
|
|
10037
10037
|
}
|
|
10038
10038
|
function Y() {
|
|
10039
|
-
A.value.length > 0 && j(A.value[
|
|
10039
|
+
A.value.length > 0 && j(A.value[_.value].path);
|
|
10040
10040
|
}
|
|
10041
10041
|
function Q() {
|
|
10042
|
-
g.value = "",
|
|
10042
|
+
g.value = "", _.value = 0;
|
|
10043
10043
|
}
|
|
10044
10044
|
function q() {
|
|
10045
|
-
g.value = "", b.value = "",
|
|
10045
|
+
g.value = "", b.value = "", _.value = 0;
|
|
10046
10046
|
}
|
|
10047
10047
|
function w(S) {
|
|
10048
|
-
const f = S.relatedTarget,
|
|
10048
|
+
const f = S.relatedTarget, p = S.target?.closest(
|
|
10049
10049
|
".search-container"
|
|
10050
10050
|
);
|
|
10051
|
-
f &&
|
|
10051
|
+
f && p?.contains(f) || setTimeout(() => {
|
|
10052
10052
|
h.value = !1;
|
|
10053
10053
|
}, 200);
|
|
10054
10054
|
}
|
|
@@ -10069,26 +10069,26 @@ const gf = /* @__PURE__ */ Te({
|
|
|
10069
10069
|
function ae(S, oe) {
|
|
10070
10070
|
if (!oe.length) return;
|
|
10071
10071
|
const f = new Set(oe);
|
|
10072
|
-
function
|
|
10072
|
+
function p(z, M) {
|
|
10073
10073
|
if (z != null) {
|
|
10074
10074
|
if (Array.isArray(z))
|
|
10075
10075
|
z.forEach((U, J) => {
|
|
10076
10076
|
const G = M ? `${M}[${J}]` : `[${J}]`;
|
|
10077
|
-
|
|
10077
|
+
p(U, G);
|
|
10078
10078
|
});
|
|
10079
10079
|
else if (typeof z == "object")
|
|
10080
10080
|
for (const U of Object.keys(z)) {
|
|
10081
10081
|
const J = M ? `${M}.${U}` : U;
|
|
10082
|
-
f.has(U) && u.expand(J),
|
|
10082
|
+
f.has(U) && u.expand(J), p(z[U], J);
|
|
10083
10083
|
}
|
|
10084
10084
|
}
|
|
10085
10085
|
}
|
|
10086
|
-
|
|
10086
|
+
p(S, "");
|
|
10087
10087
|
}
|
|
10088
10088
|
function F(S) {
|
|
10089
|
-
const { expandAll: oe, defaultExpanded: f, maxAutoExpandDepth:
|
|
10089
|
+
const { expandAll: oe, defaultExpanded: f, maxAutoExpandDepth: p } = l.options;
|
|
10090
10090
|
if (oe) {
|
|
10091
|
-
const z =
|
|
10091
|
+
const z = p ?? 10;
|
|
10092
10092
|
u.expandAll(z, S);
|
|
10093
10093
|
} else
|
|
10094
10094
|
u.expandAll(1, S), f?.length && ae(S, f);
|
|
@@ -10101,18 +10101,18 @@ const gf = /* @__PURE__ */ Te({
|
|
|
10101
10101
|
});
|
|
10102
10102
|
}
|
|
10103
10103
|
), ie(A, () => {
|
|
10104
|
-
|
|
10104
|
+
_.value = 0;
|
|
10105
10105
|
});
|
|
10106
|
-
const E = { props: l, copy: t, getIcon: o, getColor: i, contentRef: a, searchResultsListRef: r, activeRegistry: c, expansionState: d, expansionActions: u, searchQuery: g, debouncedSearchQuery: b, searchFocused: h, selectedResultIndex:
|
|
10106
|
+
const E = { props: l, copy: t, getIcon: o, getColor: i, contentRef: a, searchResultsListRef: r, activeRegistry: c, expansionState: d, expansionActions: u, searchQuery: g, debouncedSearchQuery: b, searchFocused: h, selectedResultIndex: _, updateDebouncedQuery: x, showToolbar: y, showSearch: C, isDense: B, showSearchResults: V, searchResults: A, jumpTo: j, scrollToPath: $, navigateResults: K, selectFirstResult: Y, closeSearch: Q, clearSearch: q, onSearchBlur: w, handleCopy: R, copyAll: O, doExpandAll: P, doCollapseAll: W, expandDefaultProperties: ae, initializeExpansion: F, SmartValue: ya };
|
|
10107
10107
|
return Object.defineProperty(E, "__isScriptSetup", { enumerable: !1, value: !0 }), E;
|
|
10108
10108
|
}
|
|
10109
10109
|
}), bf = {
|
|
10110
10110
|
key: 0,
|
|
10111
10111
|
class: "qv-toolbar"
|
|
10112
|
-
}, yf = { class: "toolbar-left" },
|
|
10112
|
+
}, yf = { class: "toolbar-left" }, pf = {
|
|
10113
10113
|
key: 0,
|
|
10114
10114
|
class: "search-container"
|
|
10115
|
-
},
|
|
10115
|
+
}, _f = {
|
|
10116
10116
|
key: 0,
|
|
10117
10117
|
class: "search-results"
|
|
10118
10118
|
}, xf = { class: "search-results-header" }, wf = {
|
|
@@ -10136,7 +10136,7 @@ function Pf(e, n, l, t, o, i) {
|
|
|
10136
10136
|
t.showToolbar ? (L(), Z("div", bf, [
|
|
10137
10137
|
T("div", yf, [
|
|
10138
10138
|
ee(" Search (on the left for primary access) "),
|
|
10139
|
-
t.showSearch ? (L(), Z("div",
|
|
10139
|
+
t.showSearch ? (L(), Z("div", pf, [
|
|
10140
10140
|
D(Pr, {
|
|
10141
10141
|
ref: "searchInputRef",
|
|
10142
10142
|
modelValue: t.searchQuery,
|
|
@@ -10178,7 +10178,7 @@ function Pf(e, n, l, t, o, i) {
|
|
|
10178
10178
|
} : void 0
|
|
10179
10179
|
]), 1032, ["modelValue", "placeholder"]),
|
|
10180
10180
|
ee(" Search Results Dropdown "),
|
|
10181
|
-
t.showSearchResults ? (L(), Z("div",
|
|
10181
|
+
t.showSearchResults ? (L(), Z("div", _f, [
|
|
10182
10182
|
T("div", xf, [
|
|
10183
10183
|
ce(
|
|
10184
10184
|
re(t.searchResults.length) + " result" + re(t.searchResults.length !== 1 ? "s" : "") + " ",
|
|
@@ -10236,7 +10236,7 @@ function Pf(e, n, l, t, o, i) {
|
|
|
10236
10236
|
onClick: t.copyAll
|
|
10237
10237
|
}, {
|
|
10238
10238
|
default: H(() => [
|
|
10239
|
-
D(
|
|
10239
|
+
D(_e, null, {
|
|
10240
10240
|
default: H(() => [...n[5] || (n[5] = [
|
|
10241
10241
|
ce(
|
|
10242
10242
|
"Copy all",
|
|
@@ -10259,7 +10259,7 @@ function Pf(e, n, l, t, o, i) {
|
|
|
10259
10259
|
onClick: t.doCollapseAll
|
|
10260
10260
|
}, {
|
|
10261
10261
|
default: H(() => [
|
|
10262
|
-
D(
|
|
10262
|
+
D(_e, null, {
|
|
10263
10263
|
default: H(() => [...n[6] || (n[6] = [
|
|
10264
10264
|
ce(
|
|
10265
10265
|
"Collapse all",
|
|
@@ -10282,7 +10282,7 @@ function Pf(e, n, l, t, o, i) {
|
|
|
10282
10282
|
onClick: t.doExpandAll
|
|
10283
10283
|
}, {
|
|
10284
10284
|
default: H(() => [
|
|
10285
|
-
D(
|
|
10285
|
+
D(_e, null, {
|
|
10286
10286
|
default: H(() => [...n[7] || (n[7] = [
|
|
10287
10287
|
ce(
|
|
10288
10288
|
"Expand all",
|
|
@@ -10351,7 +10351,7 @@ export {
|
|
|
10351
10351
|
ji as Y,
|
|
10352
10352
|
Af as Z,
|
|
10353
10353
|
Ae as _,
|
|
10354
|
-
|
|
10354
|
+
_e as a,
|
|
10355
10355
|
ms as a0,
|
|
10356
10356
|
gs as a1,
|
|
10357
10357
|
bs as a2,
|
|
@@ -10362,7 +10362,7 @@ export {
|
|
|
10362
10362
|
Ut as a7,
|
|
10363
10363
|
ys as a8,
|
|
10364
10364
|
wl as a9,
|
|
10365
|
-
|
|
10365
|
+
ps as aa,
|
|
10366
10366
|
$n as ab,
|
|
10367
10367
|
zf as b,
|
|
10368
10368
|
Oa as c,
|
|
@@ -10382,7 +10382,7 @@ export {
|
|
|
10382
10382
|
gi as q,
|
|
10383
10383
|
je as r,
|
|
10384
10384
|
bi as s,
|
|
10385
|
-
|
|
10385
|
+
pa as t,
|
|
10386
10386
|
Qn as u,
|
|
10387
10387
|
qi as v,
|
|
10388
10388
|
Ci as w,
|