quasar 2.18.2 → 2.18.4
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/api/QField.json +1 -1
- package/dist/api/QFile.json +1 -1
- package/dist/api/QInput.json +1 -1
- package/dist/api/QSelect.json +1 -1
- package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
- package/dist/icon-set/eva-icons.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v6.umd.prod.js +1 -1
- package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
- package/dist/icon-set/line-awesome.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
- package/dist/icon-set/material-icons.umd.prod.js +1 -1
- package/dist/icon-set/material-symbols-outlined.umd.prod.js +1 -1
- package/dist/icon-set/material-symbols-rounded.umd.prod.js +1 -1
- package/dist/icon-set/material-symbols-sharp.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v7.umd.prod.js +1 -1
- package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-symbols-outlined.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-symbols-rounded.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-symbols-sharp.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v7.umd.prod.js +1 -1
- package/dist/icon-set/svg-themify.umd.prod.js +1 -1
- package/dist/icon-set/themify.umd.prod.js +1 -1
- package/dist/lang/ar-TN.umd.prod.js +1 -1
- package/dist/lang/ar.umd.prod.js +1 -1
- package/dist/lang/az-Latn.umd.prod.js +1 -1
- package/dist/lang/bg.umd.prod.js +1 -1
- package/dist/lang/bn.umd.prod.js +1 -1
- package/dist/lang/bs-BA.umd.prod.js +1 -1
- package/dist/lang/ca.umd.prod.js +1 -1
- package/dist/lang/cs.umd.prod.js +1 -1
- package/dist/lang/da.umd.prod.js +1 -1
- package/dist/lang/de-CH.umd.prod.js +1 -1
- package/dist/lang/de-DE.umd.prod.js +1 -1
- package/dist/lang/de.umd.prod.js +1 -1
- package/dist/lang/el.umd.prod.js +1 -1
- package/dist/lang/en-GB.umd.prod.js +1 -1
- package/dist/lang/en-US.umd.prod.js +1 -1
- package/dist/lang/eo.umd.prod.js +1 -1
- package/dist/lang/es.umd.prod.js +1 -1
- package/dist/lang/et.umd.prod.js +1 -1
- package/dist/lang/eu.umd.prod.js +1 -1
- package/dist/lang/fa-IR.umd.prod.js +1 -1
- package/dist/lang/fa.umd.prod.js +1 -1
- package/dist/lang/fi.umd.prod.js +1 -1
- package/dist/lang/fr.umd.prod.js +1 -1
- package/dist/lang/gn.umd.prod.js +1 -1
- package/dist/lang/he.umd.prod.js +1 -1
- package/dist/lang/hi.umd.prod.js +1 -1
- package/dist/lang/hr.umd.prod.js +1 -1
- package/dist/lang/hu.umd.prod.js +1 -1
- package/dist/lang/id.umd.prod.js +1 -1
- package/dist/lang/is.umd.prod.js +1 -1
- package/dist/lang/it.umd.prod.js +1 -1
- package/dist/lang/ja.umd.prod.js +1 -1
- package/dist/lang/kk.umd.prod.js +1 -1
- package/dist/lang/km.umd.prod.js +1 -1
- package/dist/lang/ko-KR.umd.prod.js +1 -1
- package/dist/lang/kur-CKB.umd.prod.js +1 -1
- package/dist/lang/lt.umd.prod.js +1 -1
- package/dist/lang/lu.umd.prod.js +1 -1
- package/dist/lang/lv.umd.prod.js +1 -1
- package/dist/lang/mk.umd.prod.js +1 -1
- package/dist/lang/ml.umd.prod.js +1 -1
- package/dist/lang/mm.umd.prod.js +1 -1
- package/dist/lang/ms-MY.umd.prod.js +1 -1
- package/dist/lang/ms.umd.prod.js +1 -1
- package/dist/lang/my.umd.prod.js +1 -1
- package/dist/lang/nb-NO.umd.prod.js +1 -1
- package/dist/lang/nl.umd.prod.js +1 -1
- package/dist/lang/pl.umd.prod.js +1 -1
- package/dist/lang/pt-BR.umd.prod.js +1 -1
- package/dist/lang/pt.umd.prod.js +1 -1
- package/dist/lang/ro.umd.prod.js +1 -1
- package/dist/lang/ru.umd.prod.js +1 -1
- package/dist/lang/sk.umd.prod.js +1 -1
- package/dist/lang/sl.umd.prod.js +1 -1
- package/dist/lang/sm.umd.prod.js +1 -1
- package/dist/lang/sq.umd.prod.js +1 -1
- package/dist/lang/sr-CYR.umd.prod.js +1 -1
- package/dist/lang/sr.umd.prod.js +1 -1
- package/dist/lang/sv.umd.prod.js +1 -1
- package/dist/lang/ta.umd.prod.js +1 -1
- package/dist/lang/th.umd.prod.js +1 -1
- package/dist/lang/tl.umd.prod.js +1 -1
- package/dist/lang/tr.umd.prod.js +1 -1
- package/dist/lang/ug.umd.prod.js +1 -1
- package/dist/lang/uk.umd.prod.js +1 -1
- package/dist/lang/ur-PK.umd.prod.js +1 -1
- package/dist/lang/uz-Cyrl.umd.prod.js +2 -2
- package/dist/lang/uz-Latn.umd.prod.js +2 -2
- package/dist/lang/vi.umd.prod.js +1 -1
- package/dist/lang/zh-CN.umd.prod.js +1 -1
- package/dist/lang/zh-TW.umd.prod.js +1 -1
- package/dist/quasar.client.js +400 -365
- package/dist/quasar.sass +1 -1
- package/dist/quasar.server.prod.cjs +25 -25
- package/dist/quasar.server.prod.js +25 -25
- package/dist/quasar.umd.js +52 -17
- package/dist/quasar.umd.prod.js +26 -26
- package/dist/types/index.d.ts +26 -0
- package/dist/vetur/quasar-attributes.json +1 -1
- package/dist/vetur/quasar-tags.json +1 -1
- package/dist/web-types/web-types.json +1 -1
- package/lang/uz-Cyrl.js +9 -4
- package/lang/uz-Latn.js +9 -4
- package/package.json +3 -3
- package/src/components/input/use-mask.js +58 -17
- package/src/components/input/use-mask.json +55 -4
- package/src/composables/private.use-validate/use-validate.json +6 -6
package/dist/quasar.client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Quasar Framework v2.18.
|
|
2
|
+
* Quasar Framework v2.18.4
|
|
3
3
|
* (c) 2015-present Razvan Stoenescu
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1405,7 +1405,7 @@ function prepareApp(app2, uiOpts, pluginOpts) {
|
|
|
1405
1405
|
}
|
|
1406
1406
|
var install_quasar_default = false ? function(parentApp, opts = {}, ssrContext) {
|
|
1407
1407
|
const $q = {
|
|
1408
|
-
version: "2.18.
|
|
1408
|
+
version: "2.18.4",
|
|
1409
1409
|
config: opts.config || {}
|
|
1410
1410
|
};
|
|
1411
1411
|
Object.assign(ssrContext, {
|
|
@@ -1435,7 +1435,7 @@ var install_quasar_default = false ? function(parentApp, opts = {}, ssrContext)
|
|
|
1435
1435
|
ssrContext
|
|
1436
1436
|
});
|
|
1437
1437
|
} : function(parentApp, opts = {}) {
|
|
1438
|
-
const $q = { version: "2.18.
|
|
1438
|
+
const $q = { version: "2.18.4" };
|
|
1439
1439
|
if (globalConfigIsFrozen === false) {
|
|
1440
1440
|
if (opts.config !== void 0) {
|
|
1441
1441
|
Object.assign(globalConfig, opts.config);
|
|
@@ -16242,10 +16242,10 @@ var QInnerLoading_default = createComponent({
|
|
|
16242
16242
|
});
|
|
16243
16243
|
|
|
16244
16244
|
// src/components/input/QInput.js
|
|
16245
|
-
import { h as h61, ref as ref39, computed as
|
|
16245
|
+
import { h as h61, ref as ref39, computed as computed68, watch as watch26, onBeforeUnmount as onBeforeUnmount27, onMounted as onMounted18, nextTick as nextTick13, getCurrentInstance as getCurrentInstance49 } from "vue";
|
|
16246
16246
|
|
|
16247
16247
|
// src/components/input/use-mask.js
|
|
16248
|
-
import { ref as ref38, watch as watch25, nextTick as nextTick12 } from "vue";
|
|
16248
|
+
import { ref as ref38, computed as computed67, watch as watch25, nextTick as nextTick12 } from "vue";
|
|
16249
16249
|
var NAMED_MASKS = {
|
|
16250
16250
|
date: "####/##/##",
|
|
16251
16251
|
datetime: "####/##/## ##:##",
|
|
@@ -16254,7 +16254,7 @@ var NAMED_MASKS = {
|
|
|
16254
16254
|
phone: "(###) ### - ####",
|
|
16255
16255
|
card: "#### #### #### ####"
|
|
16256
16256
|
};
|
|
16257
|
-
var
|
|
16257
|
+
var { tokenMap: DEFAULT_TOKEN_MAP, tokenKeys: DEFAULT_TOKEN_MAP_KEYS } = getTokenMap({
|
|
16258
16258
|
"#": { pattern: "[\\d]", negate: "[^\\d]" },
|
|
16259
16259
|
S: { pattern: "[a-zA-Z]", negate: "[^a-zA-Z]" },
|
|
16260
16260
|
N: { pattern: "[0-9a-zA-Z]", negate: "[^0-9a-zA-Z]" },
|
|
@@ -16262,22 +16262,51 @@ var TOKENS = {
|
|
|
16262
16262
|
a: { pattern: "[a-zA-Z]", negate: "[^a-zA-Z]", transform: (v) => v.toLocaleLowerCase() },
|
|
16263
16263
|
X: { pattern: "[0-9a-zA-Z]", negate: "[^0-9a-zA-Z]", transform: (v) => v.toLocaleUpperCase() },
|
|
16264
16264
|
x: { pattern: "[0-9a-zA-Z]", negate: "[^0-9a-zA-Z]", transform: (v) => v.toLocaleLowerCase() }
|
|
16265
|
-
};
|
|
16266
|
-
var KEYS = Object.keys(TOKENS);
|
|
16267
|
-
KEYS.forEach((key) => {
|
|
16268
|
-
TOKENS[key].regex = new RegExp(TOKENS[key].pattern);
|
|
16269
16265
|
});
|
|
16270
|
-
|
|
16266
|
+
function getTokenMap(tokens) {
|
|
16267
|
+
const tokenKeys = Object.keys(tokens);
|
|
16268
|
+
const tokenMap = {};
|
|
16269
|
+
tokenKeys.forEach((key) => {
|
|
16270
|
+
const entry = tokens[key];
|
|
16271
|
+
tokenMap[key] = {
|
|
16272
|
+
...entry,
|
|
16273
|
+
regex: new RegExp(entry.pattern)
|
|
16274
|
+
};
|
|
16275
|
+
});
|
|
16276
|
+
return { tokenMap, tokenKeys };
|
|
16277
|
+
}
|
|
16278
|
+
function getTokenRegexMask(keys) {
|
|
16279
|
+
return new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|([" + keys.join("") + "])|(.)", "g");
|
|
16280
|
+
}
|
|
16271
16281
|
var escRegex = /[.*+?^${}()|[\]\\]/g;
|
|
16282
|
+
var DEFAULT_TOKEN_REGEX_MASK = getTokenRegexMask(DEFAULT_TOKEN_MAP_KEYS);
|
|
16272
16283
|
var MARKER = String.fromCharCode(1);
|
|
16273
16284
|
var useMaskProps = {
|
|
16274
16285
|
mask: String,
|
|
16275
16286
|
reverseFillMask: Boolean,
|
|
16276
16287
|
fillMask: [Boolean, String],
|
|
16277
|
-
unmaskedValue: Boolean
|
|
16288
|
+
unmaskedValue: Boolean,
|
|
16289
|
+
maskTokens: Object
|
|
16278
16290
|
};
|
|
16279
16291
|
function use_mask_default(props4, emit, emitValue, inputRef) {
|
|
16280
16292
|
let maskMarked, maskReplaced, computedMask, computedUnmask, pastedTextStart, selectionAnchor;
|
|
16293
|
+
const tokens = computed67(() => {
|
|
16294
|
+
if (props4.maskTokens === void 0 || props4.maskTokens === null) {
|
|
16295
|
+
return {
|
|
16296
|
+
tokenMap: DEFAULT_TOKEN_MAP,
|
|
16297
|
+
tokenRegexMask: DEFAULT_TOKEN_REGEX_MASK
|
|
16298
|
+
};
|
|
16299
|
+
}
|
|
16300
|
+
const { tokenMap: customTokens } = getTokenMap(props4.maskTokens);
|
|
16301
|
+
const tokenMap = {
|
|
16302
|
+
...DEFAULT_TOKEN_MAP,
|
|
16303
|
+
...customTokens
|
|
16304
|
+
};
|
|
16305
|
+
return {
|
|
16306
|
+
tokenMap,
|
|
16307
|
+
tokenRegexMask: getTokenRegexMask(Object.keys(tokenMap))
|
|
16308
|
+
};
|
|
16309
|
+
});
|
|
16281
16310
|
const hasMask = ref38(null);
|
|
16282
16311
|
const innerValue = ref38(getInitialMaskedValue());
|
|
16283
16312
|
function getIsTypeText() {
|
|
@@ -16331,9 +16360,9 @@ function use_mask_default(props4, emit, emitValue, inputRef) {
|
|
|
16331
16360
|
}
|
|
16332
16361
|
const localComputedMask = NAMED_MASKS[props4.mask] === void 0 ? props4.mask : NAMED_MASKS[props4.mask], fillChar = typeof props4.fillMask === "string" && props4.fillMask.length !== 0 ? props4.fillMask.slice(0, 1) : "_", fillCharEscaped = fillChar.replace(escRegex, "\\$&"), unmask = [], extract = [], mask = [];
|
|
16333
16362
|
let firstMatch = props4.reverseFillMask === true, unmaskChar = "", negateChar = "";
|
|
16334
|
-
localComputedMask.replace(tokenRegexMask, (_, char1, esc, token2, char2) => {
|
|
16363
|
+
localComputedMask.replace(tokens.value.tokenRegexMask, (_, char1, esc, token2, char2) => {
|
|
16335
16364
|
if (token2 !== void 0) {
|
|
16336
|
-
const c =
|
|
16365
|
+
const c = tokens.value.tokenMap[token2];
|
|
16337
16366
|
mask.push(c);
|
|
16338
16367
|
negateChar = c.negate;
|
|
16339
16368
|
if (firstMatch === true) {
|
|
@@ -16390,7 +16419,7 @@ function use_mask_default(props4, emit, emitValue, inputRef) {
|
|
|
16390
16419
|
function updateMaskValue(rawVal, updateMaskInternalsFlag, inputType) {
|
|
16391
16420
|
const inp = inputRef.value, end = inp.selectionEnd, endReverse = inp.value.length - end, unmasked = unmaskValue(rawVal);
|
|
16392
16421
|
updateMaskInternalsFlag === true && updateMaskInternals();
|
|
16393
|
-
const preMasked = maskValue(unmasked), masked = props4.fillMask !== false ? fillWithMask(preMasked) : preMasked, changed2 = innerValue.value !== masked;
|
|
16422
|
+
const preMasked = maskValue(unmasked, updateMaskInternalsFlag), masked = props4.fillMask !== false ? fillWithMask(preMasked) : preMasked, changed2 = innerValue.value !== masked;
|
|
16394
16423
|
inp.value !== masked && (inp.value = masked);
|
|
16395
16424
|
changed2 === true && (innerValue.value = masked);
|
|
16396
16425
|
document.activeElement === inp && nextTick12(() => {
|
|
@@ -16545,12 +16574,12 @@ function use_mask_default(props4, emit, emitValue, inputRef) {
|
|
|
16545
16574
|
inp.setSelectionRange(start, inp.selectionEnd, "forward");
|
|
16546
16575
|
}
|
|
16547
16576
|
}
|
|
16548
|
-
function maskValue(val) {
|
|
16577
|
+
function maskValue(val, updateMaskInternalsFlag) {
|
|
16549
16578
|
if (val === void 0 || val === null || val === "") {
|
|
16550
16579
|
return "";
|
|
16551
16580
|
}
|
|
16552
16581
|
if (props4.reverseFillMask === true) {
|
|
16553
|
-
return maskValueReverse(val);
|
|
16582
|
+
return maskValueReverse(val, updateMaskInternalsFlag);
|
|
16554
16583
|
}
|
|
16555
16584
|
const mask = computedMask;
|
|
16556
16585
|
let valIndex = 0, output = "";
|
|
@@ -16558,6 +16587,9 @@ function use_mask_default(props4, emit, emitValue, inputRef) {
|
|
|
16558
16587
|
const valChar = val[valIndex], maskDef = mask[maskIndex];
|
|
16559
16588
|
if (typeof maskDef === "string") {
|
|
16560
16589
|
output += maskDef;
|
|
16590
|
+
if (updateMaskInternalsFlag === true && valChar === maskDef) {
|
|
16591
|
+
valIndex++;
|
|
16592
|
+
}
|
|
16561
16593
|
} else if (valChar !== void 0 && maskDef.regex.test(valChar)) {
|
|
16562
16594
|
output += maskDef.transform !== void 0 ? maskDef.transform(valChar) : valChar;
|
|
16563
16595
|
valIndex++;
|
|
@@ -16567,7 +16599,7 @@ function use_mask_default(props4, emit, emitValue, inputRef) {
|
|
|
16567
16599
|
}
|
|
16568
16600
|
return output;
|
|
16569
16601
|
}
|
|
16570
|
-
function maskValueReverse(val) {
|
|
16602
|
+
function maskValueReverse(val, updateMaskInternalsFlag) {
|
|
16571
16603
|
const mask = computedMask, firstTokenIndex = maskMarked.indexOf(MARKER);
|
|
16572
16604
|
let valIndex = val.length - 1, output = "";
|
|
16573
16605
|
for (let maskIndex = mask.length - 1; maskIndex >= 0 && valIndex !== -1; maskIndex--) {
|
|
@@ -16575,6 +16607,9 @@ function use_mask_default(props4, emit, emitValue, inputRef) {
|
|
|
16575
16607
|
let valChar = val[valIndex];
|
|
16576
16608
|
if (typeof maskDef === "string") {
|
|
16577
16609
|
output = maskDef + output;
|
|
16610
|
+
if (updateMaskInternalsFlag === true && valChar === maskDef) {
|
|
16611
|
+
valIndex--;
|
|
16612
|
+
}
|
|
16578
16613
|
} else if (valChar !== void 0 && maskDef.regex.test(valChar)) {
|
|
16579
16614
|
do {
|
|
16580
16615
|
output = (maskDef.transform !== void 0 ? maskDef.transform(valChar) : valChar) + output;
|
|
@@ -16675,16 +16710,16 @@ var QInput_default = createComponent({
|
|
|
16675
16710
|
/* type guard */
|
|
16676
16711
|
true
|
|
16677
16712
|
);
|
|
16678
|
-
const hasValue =
|
|
16713
|
+
const hasValue = computed68(() => fieldValueIsFilled(innerValue.value));
|
|
16679
16714
|
const onComposition = use_key_composition_default(onInput);
|
|
16680
16715
|
const state = useFieldState({ changeEvent: true });
|
|
16681
|
-
const isTextarea =
|
|
16716
|
+
const isTextarea = computed68(
|
|
16682
16717
|
() => props4.type === "textarea" || props4.autogrow === true
|
|
16683
16718
|
);
|
|
16684
|
-
const isTypeText =
|
|
16719
|
+
const isTypeText = computed68(
|
|
16685
16720
|
() => isTextarea.value === true || ["text", "search", "url", "tel", "password"].includes(props4.type)
|
|
16686
16721
|
);
|
|
16687
|
-
const onEvents =
|
|
16722
|
+
const onEvents = computed68(() => {
|
|
16688
16723
|
const evt = {
|
|
16689
16724
|
...state.splitAttrs.listeners.value,
|
|
16690
16725
|
onInput,
|
|
@@ -16707,7 +16742,7 @@ var QInput_default = createComponent({
|
|
|
16707
16742
|
}
|
|
16708
16743
|
return evt;
|
|
16709
16744
|
});
|
|
16710
|
-
const inputAttrs =
|
|
16745
|
+
const inputAttrs = computed68(() => {
|
|
16711
16746
|
const attrs2 = {
|
|
16712
16747
|
tabindex: 0,
|
|
16713
16748
|
"data-autofocus": props4.autofocus === true || void 0,
|
|
@@ -16894,16 +16929,16 @@ var QInput_default = createComponent({
|
|
|
16894
16929
|
});
|
|
16895
16930
|
Object.assign(state, {
|
|
16896
16931
|
innerValue,
|
|
16897
|
-
fieldClass:
|
|
16932
|
+
fieldClass: computed68(
|
|
16898
16933
|
() => `q-${isTextarea.value === true ? "textarea" : "input"}` + (props4.autogrow === true ? " q-textarea--autogrow" : "")
|
|
16899
16934
|
),
|
|
16900
|
-
hasShadow:
|
|
16935
|
+
hasShadow: computed68(
|
|
16901
16936
|
() => props4.type !== "file" && typeof props4.shadowText === "string" && props4.shadowText.length !== 0
|
|
16902
16937
|
),
|
|
16903
16938
|
inputRef,
|
|
16904
16939
|
emitValue,
|
|
16905
16940
|
hasValue,
|
|
16906
|
-
floatingLabel:
|
|
16941
|
+
floatingLabel: computed68(
|
|
16907
16942
|
() => hasValue.value === true && (props4.type !== "number" || isNaN(innerValue.value) === false) || fieldValueIsFilled(props4.displayValue)
|
|
16908
16943
|
),
|
|
16909
16944
|
getControl: () => {
|
|
@@ -16941,7 +16976,7 @@ var QInput_default = createComponent({
|
|
|
16941
16976
|
});
|
|
16942
16977
|
|
|
16943
16978
|
// src/components/intersection/QIntersection.js
|
|
16944
|
-
import { h as h62, ref as ref40, computed as
|
|
16979
|
+
import { h as h62, ref as ref40, computed as computed69, Transition as Transition11 } from "vue";
|
|
16945
16980
|
|
|
16946
16981
|
// src/directives/intersection/Intersection.js
|
|
16947
16982
|
var defaultCfg = {
|
|
@@ -17032,7 +17067,7 @@ var QIntersection_default = createComponent({
|
|
|
17032
17067
|
},
|
|
17033
17068
|
setup(props4, { slots, emit }) {
|
|
17034
17069
|
const showing = ref40(isRuntimeSsrPreHydration.value === true ? props4.ssrPrerender : false);
|
|
17035
|
-
const intersectionProps =
|
|
17070
|
+
const intersectionProps = computed69(() => props4.root !== void 0 || props4.margin !== void 0 || props4.threshold !== void 0 ? {
|
|
17036
17071
|
handler: trigger3,
|
|
17037
17072
|
cfg: {
|
|
17038
17073
|
root: props4.root,
|
|
@@ -17040,10 +17075,10 @@ var QIntersection_default = createComponent({
|
|
|
17040
17075
|
threshold: props4.threshold
|
|
17041
17076
|
}
|
|
17042
17077
|
} : trigger3);
|
|
17043
|
-
const hasDirective =
|
|
17078
|
+
const hasDirective = computed69(
|
|
17044
17079
|
() => props4.disable !== true && (isRuntimeSsrPreHydration.value !== true || props4.once !== true || props4.ssrPrerender !== true)
|
|
17045
17080
|
);
|
|
17046
|
-
const directives =
|
|
17081
|
+
const directives = computed69(() => {
|
|
17047
17082
|
return [[
|
|
17048
17083
|
Intersection_default,
|
|
17049
17084
|
intersectionProps.value,
|
|
@@ -17051,7 +17086,7 @@ var QIntersection_default = createComponent({
|
|
|
17051
17086
|
{ once: props4.once }
|
|
17052
17087
|
]];
|
|
17053
17088
|
});
|
|
17054
|
-
const transitionStyle =
|
|
17089
|
+
const transitionStyle = computed69(
|
|
17055
17090
|
() => `--q-transition-duration: ${props4.transitionDuration}ms`
|
|
17056
17091
|
);
|
|
17057
17092
|
function trigger3(entry) {
|
|
@@ -17087,7 +17122,7 @@ var QIntersection_default = createComponent({
|
|
|
17087
17122
|
});
|
|
17088
17123
|
|
|
17089
17124
|
// src/components/item/QList.js
|
|
17090
|
-
import { h as h63, computed as
|
|
17125
|
+
import { h as h63, computed as computed70, getCurrentInstance as getCurrentInstance50 } from "vue";
|
|
17091
17126
|
var roleAttrExceptions = ["ul", "ol"];
|
|
17092
17127
|
var QList_default = createComponent({
|
|
17093
17128
|
name: "QList",
|
|
@@ -17105,10 +17140,10 @@ var QList_default = createComponent({
|
|
|
17105
17140
|
setup(props4, { slots }) {
|
|
17106
17141
|
const vm2 = getCurrentInstance50();
|
|
17107
17142
|
const isDark = use_dark_default(props4, vm2.proxy.$q);
|
|
17108
|
-
const role =
|
|
17143
|
+
const role = computed70(
|
|
17109
17144
|
() => roleAttrExceptions.includes(props4.tag) ? null : "list"
|
|
17110
17145
|
);
|
|
17111
|
-
const classes =
|
|
17146
|
+
const classes = computed70(
|
|
17112
17147
|
() => "q-list" + (props4.bordered === true ? " q-list--bordered" : "") + (props4.dense === true ? " q-list--dense" : "") + (props4.separator === true ? " q-list--separator" : "") + (isDark.value === true ? " q-list--dark" : "") + (props4.padding === true ? " q-list--padding" : "")
|
|
17113
17148
|
);
|
|
17114
17149
|
return () => h63(props4.tag, { class: classes.value, role: role.value }, hSlot(slots.default));
|
|
@@ -17116,7 +17151,7 @@ var QList_default = createComponent({
|
|
|
17116
17151
|
});
|
|
17117
17152
|
|
|
17118
17153
|
// src/components/knob/QKnob.js
|
|
17119
|
-
import { h as h64, ref as ref41, computed as
|
|
17154
|
+
import { h as h64, ref as ref41, computed as computed71, watch as watch27, getCurrentInstance as getCurrentInstance51 } from "vue";
|
|
17120
17155
|
var keyCodes2 = [34, 37, 40, 33, 39, 38];
|
|
17121
17156
|
var commonPropsName = Object.keys(useCircularCommonProps);
|
|
17122
17157
|
var QKnob_default = createComponent({
|
|
@@ -17148,8 +17183,8 @@ var QKnob_default = createComponent({
|
|
|
17148
17183
|
const { $q } = proxy;
|
|
17149
17184
|
const model = ref41(props4.modelValue);
|
|
17150
17185
|
const dragging = ref41(false);
|
|
17151
|
-
const innerMin =
|
|
17152
|
-
const innerMax =
|
|
17186
|
+
const innerMin = computed71(() => isNaN(props4.innerMin) === true || props4.innerMin < props4.min ? props4.min : props4.innerMin);
|
|
17187
|
+
const innerMax = computed71(() => isNaN(props4.innerMax) === true || props4.innerMax > props4.max ? props4.max : props4.innerMax);
|
|
17153
17188
|
let centerPosition;
|
|
17154
17189
|
function normalizeModel() {
|
|
17155
17190
|
model.value = props4.modelValue === null ? innerMin.value : between(props4.modelValue, innerMin.value, innerMax.value);
|
|
@@ -17160,21 +17195,21 @@ var QKnob_default = createComponent({
|
|
|
17160
17195
|
normalizeModel
|
|
17161
17196
|
);
|
|
17162
17197
|
normalizeModel();
|
|
17163
|
-
const editable =
|
|
17164
|
-
const classes =
|
|
17198
|
+
const editable = computed71(() => props4.disable === false && props4.readonly === false);
|
|
17199
|
+
const classes = computed71(
|
|
17165
17200
|
() => "q-knob non-selectable" + (editable.value === true ? " q-knob--editable" : props4.disable === true ? " disabled" : "")
|
|
17166
17201
|
);
|
|
17167
|
-
const decimals =
|
|
17168
|
-
const step =
|
|
17169
|
-
const instantFeedback =
|
|
17170
|
-
const onEvents = $q.platform.is.mobile === true ?
|
|
17202
|
+
const decimals = computed71(() => (String(props4.step).trim().split(".")[1] || "").length);
|
|
17203
|
+
const step = computed71(() => props4.step === 0 ? 1 : props4.step);
|
|
17204
|
+
const instantFeedback = computed71(() => props4.instantFeedback === true || dragging.value === true);
|
|
17205
|
+
const onEvents = $q.platform.is.mobile === true ? computed71(() => editable.value === true ? { onClick } : {}) : computed71(() => editable.value === true ? {
|
|
17171
17206
|
onMousedown,
|
|
17172
17207
|
onClick,
|
|
17173
17208
|
onKeydown: onKeydown2,
|
|
17174
17209
|
onKeyup: onKeyup2
|
|
17175
17210
|
} : {});
|
|
17176
|
-
const attrs =
|
|
17177
|
-
const circularProps =
|
|
17211
|
+
const attrs = computed71(() => editable.value === true ? { tabindex: props4.tabindex } : { [`aria-${props4.disable === true ? "disabled" : "readonly"}`]: "true" });
|
|
17212
|
+
const circularProps = computed71(() => {
|
|
17178
17213
|
const agg = {};
|
|
17179
17214
|
commonPropsName.forEach((name2) => {
|
|
17180
17215
|
agg[name2] = props4[name2];
|
|
@@ -17193,7 +17228,7 @@ var QKnob_default = createComponent({
|
|
|
17193
17228
|
updatePosition(event.evt);
|
|
17194
17229
|
}
|
|
17195
17230
|
}
|
|
17196
|
-
const directives =
|
|
17231
|
+
const directives = computed71(() => {
|
|
17197
17232
|
return [[
|
|
17198
17233
|
TouchPan_default,
|
|
17199
17234
|
pan,
|
|
@@ -17303,7 +17338,7 @@ var QKnob_default = createComponent({
|
|
|
17303
17338
|
});
|
|
17304
17339
|
|
|
17305
17340
|
// src/components/layout/QLayout.js
|
|
17306
|
-
import { h as h65, ref as ref42, reactive as reactive3, computed as
|
|
17341
|
+
import { h as h65, ref as ref42, reactive as reactive3, computed as computed72, watch as watch29, provide as provide4, onUnmounted as onUnmounted2, getCurrentInstance as getCurrentInstance53 } from "vue";
|
|
17307
17342
|
|
|
17308
17343
|
// src/components/scroll-observer/QScrollObserver.js
|
|
17309
17344
|
import { watch as watch28, onMounted as onMounted19, onBeforeUnmount as onBeforeUnmount28, getCurrentInstance as getCurrentInstance52 } from "vue";
|
|
@@ -17424,12 +17459,12 @@ var QLayout_default = createComponent({
|
|
|
17424
17459
|
const scroll = ref42({ position: 0, direction: "down", inflectionPoint: 0 });
|
|
17425
17460
|
const containerHeight = ref42(0);
|
|
17426
17461
|
const scrollbarWidth = ref42(isRuntimeSsrPreHydration.value === true ? 0 : getScrollbarWidth());
|
|
17427
|
-
const classes =
|
|
17462
|
+
const classes = computed72(
|
|
17428
17463
|
() => "q-layout q-layout--" + (props4.container === true ? "containerized" : "standard")
|
|
17429
17464
|
);
|
|
17430
|
-
const style2 =
|
|
17431
|
-
const targetStyle =
|
|
17432
|
-
const targetChildStyle =
|
|
17465
|
+
const style2 = computed72(() => props4.container === false ? { minHeight: $q.screen.height + "px" } : null);
|
|
17466
|
+
const targetStyle = computed72(() => scrollbarWidth.value !== 0 ? { [$q.lang.rtl === true ? "left" : "right"]: `${scrollbarWidth.value}px` } : null);
|
|
17467
|
+
const targetChildStyle = computed72(() => scrollbarWidth.value !== 0 ? {
|
|
17433
17468
|
[$q.lang.rtl === true ? "right" : "left"]: 0,
|
|
17434
17469
|
[$q.lang.rtl === true ? "left" : "right"]: `-${scrollbarWidth.value}px`,
|
|
17435
17470
|
width: `calc(100% + ${scrollbarWidth.value}px)`
|
|
@@ -17481,14 +17516,14 @@ var QLayout_default = createComponent({
|
|
|
17481
17516
|
let animateTimer = null;
|
|
17482
17517
|
const $layout = {
|
|
17483
17518
|
instances: {},
|
|
17484
|
-
view:
|
|
17485
|
-
isContainer:
|
|
17519
|
+
view: computed72(() => props4.view),
|
|
17520
|
+
isContainer: computed72(() => props4.container),
|
|
17486
17521
|
rootRef,
|
|
17487
17522
|
height: height2,
|
|
17488
17523
|
containerHeight,
|
|
17489
17524
|
scrollbarWidth,
|
|
17490
|
-
totalWidth:
|
|
17491
|
-
rows:
|
|
17525
|
+
totalWidth: computed72(() => width3.value + scrollbarWidth.value),
|
|
17526
|
+
rows: computed72(() => {
|
|
17492
17527
|
const rows = props4.view.toLowerCase().split(" ");
|
|
17493
17528
|
return {
|
|
17494
17529
|
top: rows[0].split(""),
|
|
@@ -17581,7 +17616,7 @@ var QLayout_default = createComponent({
|
|
|
17581
17616
|
});
|
|
17582
17617
|
|
|
17583
17618
|
// src/components/markup-table/QMarkupTable.js
|
|
17584
|
-
import { h as h66, computed as
|
|
17619
|
+
import { h as h66, computed as computed73, getCurrentInstance as getCurrentInstance54 } from "vue";
|
|
17585
17620
|
var separatorValues = ["horizontal", "vertical", "cell", "none"];
|
|
17586
17621
|
var QMarkupTable_default = createComponent({
|
|
17587
17622
|
name: "QMarkupTable",
|
|
@@ -17601,7 +17636,7 @@ var QMarkupTable_default = createComponent({
|
|
|
17601
17636
|
setup(props4, { slots }) {
|
|
17602
17637
|
const vm2 = getCurrentInstance54();
|
|
17603
17638
|
const isDark = use_dark_default(props4, vm2.proxy.$q);
|
|
17604
|
-
const classes =
|
|
17639
|
+
const classes = computed73(
|
|
17605
17640
|
() => `q-markup-table q-table__container q-table__card q-table--${props4.separator}-separator` + (isDark.value === true ? " q-table--dark q-table__card--dark q-dark" : "") + (props4.dense === true ? " q-table--dense" : "") + (props4.flat === true ? " q-table--flat" : "") + (props4.bordered === true ? " q-table--bordered" : "") + (props4.square === true ? " q-table--square" : "") + (props4.wrapCells === false ? " q-table--no-wrap" : "")
|
|
17606
17641
|
);
|
|
17607
17642
|
return () => h66("div", {
|
|
@@ -17645,10 +17680,10 @@ var QNoSsr_default = createComponent({
|
|
|
17645
17680
|
});
|
|
17646
17681
|
|
|
17647
17682
|
// src/components/option-group/QOptionGroup.js
|
|
17648
|
-
import { h as h70, computed as
|
|
17683
|
+
import { h as h70, computed as computed76, getCurrentInstance as getCurrentInstance56 } from "vue";
|
|
17649
17684
|
|
|
17650
17685
|
// src/components/radio/QRadio.js
|
|
17651
|
-
import { h as h68, ref as ref43, computed as
|
|
17686
|
+
import { h as h68, ref as ref43, computed as computed74, getCurrentInstance as getCurrentInstance55, toRaw as toRaw2 } from "vue";
|
|
17652
17687
|
var createSvg = () => h68("svg", {
|
|
17653
17688
|
key: "svg",
|
|
17654
17689
|
class: "q-radio__bg absolute non-selectable",
|
|
@@ -17687,19 +17722,19 @@ var QRadio_default = createComponent({
|
|
|
17687
17722
|
const sizeStyle = use_size_default(props4, option_sizes_default);
|
|
17688
17723
|
const rootRef = ref43(null);
|
|
17689
17724
|
const { refocusTargetEl, refocusTarget } = use_refocus_target_default(props4, rootRef);
|
|
17690
|
-
const isTrue =
|
|
17691
|
-
const classes =
|
|
17725
|
+
const isTrue = computed74(() => toRaw2(props4.modelValue) === toRaw2(props4.val));
|
|
17726
|
+
const classes = computed74(
|
|
17692
17727
|
() => "q-radio cursor-pointer no-outline row inline no-wrap items-center" + (props4.disable === true ? " disabled" : "") + (isDark.value === true ? " q-radio--dark" : "") + (props4.dense === true ? " q-radio--dense" : "") + (props4.leftLabel === true ? " reverse" : "")
|
|
17693
17728
|
);
|
|
17694
|
-
const innerClass =
|
|
17729
|
+
const innerClass = computed74(() => {
|
|
17695
17730
|
const color = props4.color !== void 0 && (props4.keepColor === true || isTrue.value === true) ? ` text-${props4.color}` : "";
|
|
17696
17731
|
return `q-radio__inner relative-position q-radio__inner--${isTrue.value === true ? "truthy" : "falsy"}${color}`;
|
|
17697
17732
|
});
|
|
17698
|
-
const icon =
|
|
17733
|
+
const icon = computed74(
|
|
17699
17734
|
() => (isTrue.value === true ? props4.checkedIcon : props4.uncheckedIcon) || null
|
|
17700
17735
|
);
|
|
17701
|
-
const tabindex =
|
|
17702
|
-
const formAttrs =
|
|
17736
|
+
const tabindex = computed74(() => props4.disable === true ? -1 : props4.tabindex || 0);
|
|
17737
|
+
const formAttrs = computed74(() => {
|
|
17703
17738
|
const prop = { type: "radio" };
|
|
17704
17739
|
props4.name !== void 0 && Object.assign(prop, {
|
|
17705
17740
|
// see https://vuejs.org/guide/extras/render-function.html#creating-vnodes (.prop)
|
|
@@ -17782,7 +17817,7 @@ var QRadio_default = createComponent({
|
|
|
17782
17817
|
});
|
|
17783
17818
|
|
|
17784
17819
|
// src/components/toggle/QToggle.js
|
|
17785
|
-
import { h as h69, computed as
|
|
17820
|
+
import { h as h69, computed as computed75 } from "vue";
|
|
17786
17821
|
var QToggle_default = createComponent({
|
|
17787
17822
|
name: "QToggle",
|
|
17788
17823
|
props: {
|
|
@@ -17793,10 +17828,10 @@ var QToggle_default = createComponent({
|
|
|
17793
17828
|
emits: useCheckboxEmits,
|
|
17794
17829
|
setup(props4) {
|
|
17795
17830
|
function getInner(isTrue, isIndeterminate) {
|
|
17796
|
-
const icon =
|
|
17831
|
+
const icon = computed75(
|
|
17797
17832
|
() => (isTrue.value === true ? props4.checkedIcon : isIndeterminate.value === true ? props4.indeterminateIcon : props4.uncheckedIcon) || props4.icon
|
|
17798
17833
|
);
|
|
17799
|
-
const color =
|
|
17834
|
+
const color = computed75(() => isTrue.value === true ? props4.iconColor : null);
|
|
17800
17835
|
return () => [
|
|
17801
17836
|
h69("div", { class: "q-toggle__track" }),
|
|
17802
17837
|
h69(
|
|
@@ -17870,11 +17905,11 @@ var QOptionGroup_default = createComponent({
|
|
|
17870
17905
|
console.error("q-option-group: model should be array in your case");
|
|
17871
17906
|
}
|
|
17872
17907
|
const isDark = use_dark_default(props4, $q);
|
|
17873
|
-
const component =
|
|
17874
|
-
const getOptionValue =
|
|
17875
|
-
const getOptionLabel =
|
|
17876
|
-
const getOptionDisable =
|
|
17877
|
-
const innerOptions =
|
|
17908
|
+
const component = computed76(() => components[props4.type]);
|
|
17909
|
+
const getOptionValue = computed76(() => getPropValueFn(props4.optionValue, "value"));
|
|
17910
|
+
const getOptionLabel = computed76(() => getPropValueFn(props4.optionLabel, "label"));
|
|
17911
|
+
const getOptionDisable = computed76(() => getPropValueFn(props4.optionDisable, "disable"));
|
|
17912
|
+
const innerOptions = computed76(() => props4.options.map((opt) => ({
|
|
17878
17913
|
val: getOptionValue.value(opt),
|
|
17879
17914
|
name: opt.name === void 0 ? props4.name : opt.name,
|
|
17880
17915
|
disable: props4.disable || getOptionDisable.value(opt),
|
|
@@ -17887,10 +17922,10 @@ var QOptionGroup_default = createComponent({
|
|
|
17887
17922
|
dense: props4.dense,
|
|
17888
17923
|
keepColor: opt.keepColor === void 0 ? props4.keepColor : opt.keepColor
|
|
17889
17924
|
})));
|
|
17890
|
-
const classes =
|
|
17925
|
+
const classes = computed76(
|
|
17891
17926
|
() => "q-option-group q-gutter-x-sm" + (props4.inline === true ? " q-option-group--inline" : "")
|
|
17892
17927
|
);
|
|
17893
|
-
const attrs =
|
|
17928
|
+
const attrs = computed76(() => {
|
|
17894
17929
|
const attrs2 = { role: "group" };
|
|
17895
17930
|
if (props4.type === "radio") {
|
|
17896
17931
|
attrs2.role = "radiogroup";
|
|
@@ -17921,7 +17956,7 @@ var QOptionGroup_default = createComponent({
|
|
|
17921
17956
|
});
|
|
17922
17957
|
|
|
17923
17958
|
// src/components/page/QPage.js
|
|
17924
|
-
import { h as h71, computed as
|
|
17959
|
+
import { h as h71, computed as computed77, inject as inject7, getCurrentInstance as getCurrentInstance57 } from "vue";
|
|
17925
17960
|
var QPage_default = createComponent({
|
|
17926
17961
|
name: "QPage",
|
|
17927
17962
|
props: {
|
|
@@ -17940,7 +17975,7 @@ var QPage_default = createComponent({
|
|
|
17940
17975
|
console.error("QPage needs to be child of QPageContainer");
|
|
17941
17976
|
return emptyRenderFn;
|
|
17942
17977
|
}
|
|
17943
|
-
const style2 =
|
|
17978
|
+
const style2 = computed77(() => {
|
|
17944
17979
|
const offset2 = ($layout.header.space === true ? $layout.header.size : 0) + ($layout.footer.space === true ? $layout.footer.size : 0);
|
|
17945
17980
|
if (typeof props4.styleFn === "function") {
|
|
17946
17981
|
const height2 = $layout.isContainer.value === true ? $layout.containerHeight.value : $q.screen.height;
|
|
@@ -17950,7 +17985,7 @@ var QPage_default = createComponent({
|
|
|
17950
17985
|
minHeight: $layout.isContainer.value === true ? $layout.containerHeight.value - offset2 + "px" : $q.screen.height === 0 ? offset2 !== 0 ? `calc(100vh - ${offset2}px)` : "100vh" : $q.screen.height - offset2 + "px"
|
|
17951
17986
|
};
|
|
17952
17987
|
});
|
|
17953
|
-
const classes =
|
|
17988
|
+
const classes = computed77(
|
|
17954
17989
|
() => `q-page${props4.padding === true ? " q-layout-padding" : ""}`
|
|
17955
17990
|
);
|
|
17956
17991
|
return () => h71("main", {
|
|
@@ -17961,7 +17996,7 @@ var QPage_default = createComponent({
|
|
|
17961
17996
|
});
|
|
17962
17997
|
|
|
17963
17998
|
// src/components/page/QPageContainer.js
|
|
17964
|
-
import { h as h72, computed as
|
|
17999
|
+
import { h as h72, computed as computed78, provide as provide5, inject as inject8, getCurrentInstance as getCurrentInstance58 } from "vue";
|
|
17965
18000
|
var QPageContainer_default = createComponent({
|
|
17966
18001
|
name: "QPageContainer",
|
|
17967
18002
|
setup(_, { slots }) {
|
|
@@ -17972,7 +18007,7 @@ var QPageContainer_default = createComponent({
|
|
|
17972
18007
|
return emptyRenderFn;
|
|
17973
18008
|
}
|
|
17974
18009
|
provide5(pageContainerKey, true);
|
|
17975
|
-
const style2 =
|
|
18010
|
+
const style2 = computed78(() => {
|
|
17976
18011
|
const css2 = {};
|
|
17977
18012
|
if ($layout.header.space === true) {
|
|
17978
18013
|
css2.paddingTop = `${$layout.header.size}px`;
|
|
@@ -17996,10 +18031,10 @@ var QPageContainer_default = createComponent({
|
|
|
17996
18031
|
});
|
|
17997
18032
|
|
|
17998
18033
|
// src/components/page-scroller/QPageScroller.js
|
|
17999
|
-
import { h as h74, ref as ref44, computed as
|
|
18034
|
+
import { h as h74, ref as ref44, computed as computed80, watch as watch30, onBeforeUnmount as onBeforeUnmount29, getCurrentInstance as getCurrentInstance60, Transition as Transition12 } from "vue";
|
|
18000
18035
|
|
|
18001
18036
|
// src/components/page-sticky/use-page-sticky.js
|
|
18002
|
-
import { h as h73, computed as
|
|
18037
|
+
import { h as h73, computed as computed79, inject as inject9, getCurrentInstance as getCurrentInstance59 } from "vue";
|
|
18003
18038
|
var usePageStickyProps = {
|
|
18004
18039
|
position: {
|
|
18005
18040
|
type: String,
|
|
@@ -18028,7 +18063,7 @@ function use_page_sticky_default() {
|
|
|
18028
18063
|
console.error("QPageSticky needs to be child of QLayout");
|
|
18029
18064
|
return emptyRenderFn;
|
|
18030
18065
|
}
|
|
18031
|
-
const attach =
|
|
18066
|
+
const attach = computed79(() => {
|
|
18032
18067
|
const pos = props4.position;
|
|
18033
18068
|
return {
|
|
18034
18069
|
top: pos.indexOf("top") !== -1,
|
|
@@ -18039,11 +18074,11 @@ function use_page_sticky_default() {
|
|
|
18039
18074
|
horizontal: pos === "left" || pos === "right"
|
|
18040
18075
|
};
|
|
18041
18076
|
});
|
|
18042
|
-
const top =
|
|
18043
|
-
const right =
|
|
18044
|
-
const bottom =
|
|
18045
|
-
const left =
|
|
18046
|
-
const style2 =
|
|
18077
|
+
const top = computed79(() => $layout.header.offset);
|
|
18078
|
+
const right = computed79(() => $layout.right.offset);
|
|
18079
|
+
const bottom = computed79(() => $layout.footer.offset);
|
|
18080
|
+
const left = computed79(() => $layout.left.offset);
|
|
18081
|
+
const style2 = computed79(() => {
|
|
18047
18082
|
let posX = 0, posY = 0;
|
|
18048
18083
|
const side = attach.value;
|
|
18049
18084
|
const dir = $q.lang.rtl === true ? -1 : 1;
|
|
@@ -18078,7 +18113,7 @@ function use_page_sticky_default() {
|
|
|
18078
18113
|
}
|
|
18079
18114
|
return css2;
|
|
18080
18115
|
});
|
|
18081
|
-
const classes =
|
|
18116
|
+
const classes = computed79(
|
|
18082
18117
|
() => `q-page-sticky row flex-center fixed-${props4.position} q-page-sticky--${props4.expand === true ? "expand" : "shrink"}`
|
|
18083
18118
|
);
|
|
18084
18119
|
function getStickyContent(slots) {
|
|
@@ -18123,7 +18158,7 @@ var QPageScroller_default = createComponent({
|
|
|
18123
18158
|
const { $layout, getStickyContent } = use_page_sticky_default();
|
|
18124
18159
|
const rootRef = ref44(null);
|
|
18125
18160
|
let heightWatcher;
|
|
18126
|
-
const scrollHeight =
|
|
18161
|
+
const scrollHeight = computed80(() => $layout.height.value - ($layout.isContainer.value === true ? $layout.containerHeight.value : $q.screen.height));
|
|
18127
18162
|
function isVisible() {
|
|
18128
18163
|
return props4.reverse === true ? scrollHeight.value - $layout.scroll.value.position > props4.scrollOffset : $layout.scroll.value.position > props4.scrollOffset;
|
|
18129
18164
|
}
|
|
@@ -18190,7 +18225,7 @@ var QPageSticky_default = createComponent({
|
|
|
18190
18225
|
});
|
|
18191
18226
|
|
|
18192
18227
|
// src/components/pagination/QPagination.js
|
|
18193
|
-
import { h as h75, ref as ref45, watch as watch31, computed as
|
|
18228
|
+
import { h as h75, ref as ref45, watch as watch31, computed as computed81, getCurrentInstance as getCurrentInstance61 } from "vue";
|
|
18194
18229
|
function getBool(val, otherwise) {
|
|
18195
18230
|
return [true, false].includes(val) ? val : otherwise;
|
|
18196
18231
|
}
|
|
@@ -18275,16 +18310,16 @@ var QPagination_default = createComponent({
|
|
|
18275
18310
|
const { proxy } = getCurrentInstance61();
|
|
18276
18311
|
const { $q } = proxy;
|
|
18277
18312
|
const isDark = use_dark_default(props4, $q);
|
|
18278
|
-
const minProp =
|
|
18279
|
-
const maxProp =
|
|
18280
|
-
const maxPagesProp =
|
|
18281
|
-
const inputPlaceholder =
|
|
18282
|
-
const boundaryLinksProp =
|
|
18283
|
-
const boundaryNumbersProp =
|
|
18284
|
-
const directionLinksProp =
|
|
18285
|
-
const ellipsesProp =
|
|
18313
|
+
const minProp = computed81(() => parseInt(props4.min, 10));
|
|
18314
|
+
const maxProp = computed81(() => parseInt(props4.max, 10));
|
|
18315
|
+
const maxPagesProp = computed81(() => parseInt(props4.maxPages, 10));
|
|
18316
|
+
const inputPlaceholder = computed81(() => model.value + " / " + maxProp.value);
|
|
18317
|
+
const boundaryLinksProp = computed81(() => getBool(props4.boundaryLinks, props4.input));
|
|
18318
|
+
const boundaryNumbersProp = computed81(() => getBool(props4.boundaryNumbers, !props4.input));
|
|
18319
|
+
const directionLinksProp = computed81(() => getBool(props4.directionLinks, props4.input));
|
|
18320
|
+
const ellipsesProp = computed81(() => getBool(props4.ellipses, !props4.input));
|
|
18286
18321
|
const newPage = ref45(null);
|
|
18287
|
-
const model =
|
|
18322
|
+
const model = computed81({
|
|
18288
18323
|
get: () => props4.modelValue,
|
|
18289
18324
|
set: (val) => {
|
|
18290
18325
|
val = parseInt(val, 10);
|
|
@@ -18298,12 +18333,12 @@ var QPagination_default = createComponent({
|
|
|
18298
18333
|
watch31(() => `${minProp.value}|${maxProp.value}`, () => {
|
|
18299
18334
|
model.value = props4.modelValue;
|
|
18300
18335
|
});
|
|
18301
|
-
const classes =
|
|
18336
|
+
const classes = computed81(
|
|
18302
18337
|
() => "q-pagination row no-wrap items-center" + (props4.disable === true ? " disabled" : "")
|
|
18303
18338
|
);
|
|
18304
|
-
const gutterProp =
|
|
18305
|
-
const gutterStyle =
|
|
18306
|
-
const icons =
|
|
18339
|
+
const gutterProp = computed81(() => props4.gutter in btnPadding ? `${btnPadding[props4.gutter]}px` : props4.gutter || null);
|
|
18340
|
+
const gutterStyle = computed81(() => gutterProp.value !== null ? `--q-pagination-gutter-parent:-${gutterProp.value};--q-pagination-gutter-child:${gutterProp.value}` : null);
|
|
18341
|
+
const icons = computed81(() => {
|
|
18307
18342
|
const ico = [
|
|
18308
18343
|
props4.iconFirst || $q.iconSet.pagination.first,
|
|
18309
18344
|
props4.iconPrev || $q.iconSet.pagination.prev,
|
|
@@ -18312,12 +18347,12 @@ var QPagination_default = createComponent({
|
|
|
18312
18347
|
];
|
|
18313
18348
|
return $q.lang.rtl === true ? ico.reverse() : ico;
|
|
18314
18349
|
});
|
|
18315
|
-
const attrs =
|
|
18350
|
+
const attrs = computed81(() => ({
|
|
18316
18351
|
"aria-disabled": props4.disable === true ? "true" : "false",
|
|
18317
18352
|
role: "navigation"
|
|
18318
18353
|
}));
|
|
18319
|
-
const btnDesignProp =
|
|
18320
|
-
const btnProps =
|
|
18354
|
+
const btnDesignProp = computed81(() => getBtnDesign(props4, "flat"));
|
|
18355
|
+
const btnProps = computed81(() => ({
|
|
18321
18356
|
[btnDesignProp.value]: true,
|
|
18322
18357
|
round: props4.round,
|
|
18323
18358
|
rounded: props4.rounded,
|
|
@@ -18327,19 +18362,19 @@ var QPagination_default = createComponent({
|
|
|
18327
18362
|
size: props4.size,
|
|
18328
18363
|
ripple: props4.ripple !== null ? props4.ripple : true
|
|
18329
18364
|
}));
|
|
18330
|
-
const btnActiveDesignProp =
|
|
18365
|
+
const btnActiveDesignProp = computed81(() => {
|
|
18331
18366
|
const acc = { [btnDesignProp.value]: false };
|
|
18332
18367
|
if (props4.activeDesign !== "") {
|
|
18333
18368
|
acc[props4.activeDesign] = true;
|
|
18334
18369
|
}
|
|
18335
18370
|
return acc;
|
|
18336
18371
|
});
|
|
18337
|
-
const activeBtnProps =
|
|
18372
|
+
const activeBtnProps = computed81(() => ({
|
|
18338
18373
|
...btnActiveDesignProp.value,
|
|
18339
18374
|
color: props4.activeColor || props4.color,
|
|
18340
18375
|
textColor: props4.activeTextColor || props4.textColor
|
|
18341
18376
|
}));
|
|
18342
|
-
const btnConfig =
|
|
18377
|
+
const btnConfig = computed81(() => {
|
|
18343
18378
|
let maxPages = Math.max(
|
|
18344
18379
|
maxPagesProp.value,
|
|
18345
18380
|
1 + (ellipsesProp.value ? 2 : 0) + (boundaryNumbersProp.value ? 2 : 0)
|
|
@@ -18384,7 +18419,7 @@ var QPagination_default = createComponent({
|
|
|
18384
18419
|
function setByOffset(offset2) {
|
|
18385
18420
|
model.value = model.value + offset2;
|
|
18386
18421
|
}
|
|
18387
|
-
const inputEvents =
|
|
18422
|
+
const inputEvents = computed81(() => {
|
|
18388
18423
|
function updateModel2() {
|
|
18389
18424
|
model.value = newPage.value;
|
|
18390
18425
|
newPage.value = null;
|
|
@@ -18708,7 +18743,7 @@ var QParallax_default = createComponent({
|
|
|
18708
18743
|
});
|
|
18709
18744
|
|
|
18710
18745
|
// src/components/popup-edit/QPopupEdit.js
|
|
18711
|
-
import { h as h77, ref as ref47, computed as
|
|
18746
|
+
import { h as h77, ref as ref47, computed as computed82, nextTick as nextTick14, getCurrentInstance as getCurrentInstance62 } from "vue";
|
|
18712
18747
|
|
|
18713
18748
|
// src/utils/clone/clone.js
|
|
18714
18749
|
function cloneDeep(data, hash = /* @__PURE__ */ new WeakMap()) {
|
|
@@ -18783,7 +18818,7 @@ var QPopupEdit_default = createComponent({
|
|
|
18783
18818
|
const initialValue = ref47("");
|
|
18784
18819
|
const currentModel = ref47("");
|
|
18785
18820
|
let validated = false;
|
|
18786
|
-
const scope =
|
|
18821
|
+
const scope = computed82(() => {
|
|
18787
18822
|
return injectProp({
|
|
18788
18823
|
initialValue: initialValue.value,
|
|
18789
18824
|
validate: props4.validate,
|
|
@@ -18894,7 +18929,7 @@ var QPopupEdit_default = createComponent({
|
|
|
18894
18929
|
});
|
|
18895
18930
|
|
|
18896
18931
|
// src/components/popup-proxy/QPopupProxy.js
|
|
18897
|
-
import { h as h78, ref as ref48, computed as
|
|
18932
|
+
import { h as h78, ref as ref48, computed as computed83, watch as watch33, getCurrentInstance as getCurrentInstance63 } from "vue";
|
|
18898
18933
|
var QPopupProxy_default = createComponent({
|
|
18899
18934
|
name: "QPopupProxy",
|
|
18900
18935
|
props: {
|
|
@@ -18910,13 +18945,13 @@ var QPopupProxy_default = createComponent({
|
|
|
18910
18945
|
const { $q } = proxy;
|
|
18911
18946
|
const showing = ref48(false);
|
|
18912
18947
|
const popupRef = ref48(null);
|
|
18913
|
-
const breakpoint =
|
|
18948
|
+
const breakpoint = computed83(() => parseInt(props4.breakpoint, 10));
|
|
18914
18949
|
const { canShow } = use_anchor_default({ showing });
|
|
18915
18950
|
function getType() {
|
|
18916
18951
|
return $q.screen.width < breakpoint.value || $q.screen.height < breakpoint.value ? "dialog" : "menu";
|
|
18917
18952
|
}
|
|
18918
18953
|
const type = ref48(getType());
|
|
18919
|
-
const popupProps =
|
|
18954
|
+
const popupProps = computed83(
|
|
18920
18955
|
() => type.value === "menu" ? { maxHeight: "99vh" } : {}
|
|
18921
18956
|
);
|
|
18922
18957
|
watch33(() => getType(), (val) => {
|
|
@@ -18974,7 +19009,7 @@ var QPopupProxy_default = createComponent({
|
|
|
18974
19009
|
});
|
|
18975
19010
|
|
|
18976
19011
|
// src/components/linear-progress/QLinearProgress.js
|
|
18977
|
-
import { h as h79, computed as
|
|
19012
|
+
import { h as h79, computed as computed84, getCurrentInstance as getCurrentInstance64 } from "vue";
|
|
18978
19013
|
var defaultSizes3 = {
|
|
18979
19014
|
xs: 2,
|
|
18980
19015
|
sm: 4,
|
|
@@ -19014,26 +19049,26 @@ var QLinearProgress_default = createComponent({
|
|
|
19014
19049
|
const { proxy } = getCurrentInstance64();
|
|
19015
19050
|
const isDark = use_dark_default(props4, proxy.$q);
|
|
19016
19051
|
const sizeStyle = use_size_default(props4, defaultSizes3);
|
|
19017
|
-
const motion =
|
|
19018
|
-
const widthReverse =
|
|
19019
|
-
const style2 =
|
|
19052
|
+
const motion = computed84(() => props4.indeterminate === true || props4.query === true);
|
|
19053
|
+
const widthReverse = computed84(() => props4.reverse !== props4.query);
|
|
19054
|
+
const style2 = computed84(() => ({
|
|
19020
19055
|
...sizeStyle.value !== null ? sizeStyle.value : {},
|
|
19021
19056
|
"--q-linear-progress-speed": `${props4.animationSpeed}ms`
|
|
19022
19057
|
}));
|
|
19023
|
-
const classes =
|
|
19058
|
+
const classes = computed84(
|
|
19024
19059
|
() => "q-linear-progress" + (props4.color !== void 0 ? ` text-${props4.color}` : "") + (props4.reverse === true || props4.query === true ? " q-linear-progress--reverse" : "") + (props4.rounded === true ? " rounded-borders" : "")
|
|
19025
19060
|
);
|
|
19026
|
-
const trackStyle =
|
|
19027
|
-
const transitionSuffix =
|
|
19028
|
-
const trackClass =
|
|
19061
|
+
const trackStyle = computed84(() => width2(props4.buffer !== void 0 ? props4.buffer : 1, widthReverse.value, proxy.$q));
|
|
19062
|
+
const transitionSuffix = computed84(() => `with${props4.instantFeedback === true ? "out" : ""}-transition`);
|
|
19063
|
+
const trackClass = computed84(
|
|
19029
19064
|
() => `q-linear-progress__track absolute-full q-linear-progress__track--${transitionSuffix.value} q-linear-progress__track--${isDark.value === true ? "dark" : "light"}` + (props4.trackColor !== void 0 ? ` bg-${props4.trackColor}` : "")
|
|
19030
19065
|
);
|
|
19031
|
-
const modelStyle =
|
|
19032
|
-
const modelClass =
|
|
19066
|
+
const modelStyle = computed84(() => width2(motion.value === true ? 1 : props4.value, widthReverse.value, proxy.$q));
|
|
19067
|
+
const modelClass = computed84(
|
|
19033
19068
|
() => `q-linear-progress__model absolute-full q-linear-progress__model--${transitionSuffix.value} q-linear-progress__model--${motion.value === true ? "in" : ""}determinate`
|
|
19034
19069
|
);
|
|
19035
|
-
const stripeStyle =
|
|
19036
|
-
const stripeClass =
|
|
19070
|
+
const stripeStyle = computed84(() => ({ width: `${props4.value * 100}%` }));
|
|
19071
|
+
const stripeClass = computed84(
|
|
19037
19072
|
() => `q-linear-progress__stripe absolute-${props4.reverse === true ? "right" : "left"} q-linear-progress__stripe--${transitionSuffix.value}`
|
|
19038
19073
|
);
|
|
19039
19074
|
return () => {
|
|
@@ -19066,7 +19101,7 @@ var QLinearProgress_default = createComponent({
|
|
|
19066
19101
|
});
|
|
19067
19102
|
|
|
19068
19103
|
// src/components/pull-to-refresh/QPullToRefresh.js
|
|
19069
|
-
import { h as h80, ref as ref49, computed as
|
|
19104
|
+
import { h as h80, ref as ref49, computed as computed85, watch as watch34, onMounted as onMounted21, onBeforeUnmount as onBeforeUnmount31, getCurrentInstance as getCurrentInstance65 } from "vue";
|
|
19070
19105
|
var PULLER_HEIGHT = 40;
|
|
19071
19106
|
var OFFSET_TOP = 20;
|
|
19072
19107
|
var QPullToRefresh_default = createComponent({
|
|
@@ -19089,11 +19124,11 @@ var QPullToRefresh_default = createComponent({
|
|
|
19089
19124
|
const pullPosition = ref49(-PULLER_HEIGHT);
|
|
19090
19125
|
const animating = ref49(false);
|
|
19091
19126
|
const positionCSS = ref49({});
|
|
19092
|
-
const style2 =
|
|
19127
|
+
const style2 = computed85(() => ({
|
|
19093
19128
|
opacity: pullRatio.value,
|
|
19094
19129
|
transform: `translateY(${pullPosition.value}px) rotate(${pullRatio.value * 360}deg)`
|
|
19095
19130
|
}));
|
|
19096
|
-
const classes =
|
|
19131
|
+
const classes = computed85(
|
|
19097
19132
|
() => "q-pull-to-refresh__puller row flex-center" + (animating.value === true ? " q-pull-to-refresh__puller--animating" : "") + (props4.bgColor !== void 0 ? ` bg-${props4.bgColor}` : "")
|
|
19098
19133
|
);
|
|
19099
19134
|
function pull(event) {
|
|
@@ -19139,7 +19174,7 @@ var QPullToRefresh_default = createComponent({
|
|
|
19139
19174
|
state.value = newState;
|
|
19140
19175
|
}
|
|
19141
19176
|
}
|
|
19142
|
-
const directives =
|
|
19177
|
+
const directives = computed85(() => {
|
|
19143
19178
|
const modifiers = { down: true };
|
|
19144
19179
|
if (props4.noMouse !== true) {
|
|
19145
19180
|
modifiers.mouse = true;
|
|
@@ -19151,7 +19186,7 @@ var QPullToRefresh_default = createComponent({
|
|
|
19151
19186
|
modifiers
|
|
19152
19187
|
]];
|
|
19153
19188
|
});
|
|
19154
|
-
const contentClass =
|
|
19189
|
+
const contentClass = computed85(
|
|
19155
19190
|
() => `q-pull-to-refresh__content${pulling.value === true ? " no-pointer-events" : ""}`
|
|
19156
19191
|
);
|
|
19157
19192
|
function trigger3() {
|
|
@@ -19219,7 +19254,7 @@ var QPullToRefresh_default = createComponent({
|
|
|
19219
19254
|
});
|
|
19220
19255
|
|
|
19221
19256
|
// src/components/range/QRange.js
|
|
19222
|
-
import { h as h81, ref as ref50, computed as
|
|
19257
|
+
import { h as h81, ref as ref50, computed as computed86, watch as watch35, getCurrentInstance as getCurrentInstance66 } from "vue";
|
|
19223
19258
|
var dragType = {
|
|
19224
19259
|
MIN: 0,
|
|
19225
19260
|
RANGE: 1,
|
|
@@ -19252,7 +19287,7 @@ var QRange_default = createComponent({
|
|
|
19252
19287
|
updateValue: updateValue2,
|
|
19253
19288
|
updatePosition,
|
|
19254
19289
|
getDragging,
|
|
19255
|
-
formAttrs:
|
|
19290
|
+
formAttrs: computed86(() => ({
|
|
19256
19291
|
type: "hidden",
|
|
19257
19292
|
name: props4.name,
|
|
19258
19293
|
value: `${props4.modelValue.min}|${props4.modelValue.max}`
|
|
@@ -19271,11 +19306,11 @@ var QRange_default = createComponent({
|
|
|
19271
19306
|
normalizeModel
|
|
19272
19307
|
);
|
|
19273
19308
|
normalizeModel();
|
|
19274
|
-
const modelMinRatio =
|
|
19275
|
-
const modelMaxRatio =
|
|
19276
|
-
const ratioMin =
|
|
19277
|
-
const ratioMax =
|
|
19278
|
-
const selectionBarStyle =
|
|
19309
|
+
const modelMinRatio = computed86(() => methods.convertModelToRatio(model.value.min));
|
|
19310
|
+
const modelMaxRatio = computed86(() => methods.convertModelToRatio(model.value.max));
|
|
19311
|
+
const ratioMin = computed86(() => state.active.value === true ? curMinRatio.value : modelMinRatio.value);
|
|
19312
|
+
const ratioMax = computed86(() => state.active.value === true ? curMaxRatio.value : modelMaxRatio.value);
|
|
19313
|
+
const selectionBarStyle = computed86(() => {
|
|
19279
19314
|
const acc = {
|
|
19280
19315
|
[state.positionProp.value]: `${100 * ratioMin.value}%`,
|
|
19281
19316
|
[state.sizeProp.value]: `${100 * (ratioMax.value - ratioMin.value)}%`
|
|
@@ -19285,7 +19320,7 @@ var QRange_default = createComponent({
|
|
|
19285
19320
|
}
|
|
19286
19321
|
return acc;
|
|
19287
19322
|
});
|
|
19288
|
-
const trackContainerEvents =
|
|
19323
|
+
const trackContainerEvents = computed86(() => {
|
|
19289
19324
|
if (state.editable.value !== true) {
|
|
19290
19325
|
return {};
|
|
19291
19326
|
}
|
|
@@ -19315,10 +19350,10 @@ var QRange_default = createComponent({
|
|
|
19315
19350
|
onKeyup: methods.onKeyup
|
|
19316
19351
|
} : {};
|
|
19317
19352
|
}
|
|
19318
|
-
const thumbTabindex =
|
|
19319
|
-
const trackContainerTabindex =
|
|
19353
|
+
const thumbTabindex = computed86(() => props4.dragOnlyRange !== true ? state.tabindex.value : null);
|
|
19354
|
+
const trackContainerTabindex = computed86(() => $q.platform.is.mobile !== true && (props4.dragRange || props4.dragOnlyRange === true) ? state.tabindex.value : null);
|
|
19320
19355
|
const minThumbRef = ref50(null);
|
|
19321
|
-
const minEvents =
|
|
19356
|
+
const minEvents = computed86(() => getEvents("min"));
|
|
19322
19357
|
const getMinThumb = methods.getThumbRenderFn({
|
|
19323
19358
|
focusValue: "min",
|
|
19324
19359
|
getNodeData: () => ({
|
|
@@ -19328,12 +19363,12 @@ var QRange_default = createComponent({
|
|
|
19328
19363
|
tabindex: thumbTabindex.value
|
|
19329
19364
|
}),
|
|
19330
19365
|
ratio: ratioMin,
|
|
19331
|
-
label:
|
|
19332
|
-
thumbColor:
|
|
19333
|
-
labelColor:
|
|
19334
|
-
labelTextColor:
|
|
19366
|
+
label: computed86(() => props4.leftLabelValue !== void 0 ? props4.leftLabelValue : model.value.min),
|
|
19367
|
+
thumbColor: computed86(() => props4.leftThumbColor || props4.thumbColor || props4.color),
|
|
19368
|
+
labelColor: computed86(() => props4.leftLabelColor || props4.labelColor),
|
|
19369
|
+
labelTextColor: computed86(() => props4.leftLabelTextColor || props4.labelTextColor)
|
|
19335
19370
|
});
|
|
19336
|
-
const maxEvents =
|
|
19371
|
+
const maxEvents = computed86(() => getEvents("max"));
|
|
19337
19372
|
const getMaxThumb = methods.getThumbRenderFn({
|
|
19338
19373
|
focusValue: "max",
|
|
19339
19374
|
getNodeData: () => ({
|
|
@@ -19342,10 +19377,10 @@ var QRange_default = createComponent({
|
|
|
19342
19377
|
tabindex: thumbTabindex.value
|
|
19343
19378
|
}),
|
|
19344
19379
|
ratio: ratioMax,
|
|
19345
|
-
label:
|
|
19346
|
-
thumbColor:
|
|
19347
|
-
labelColor:
|
|
19348
|
-
labelTextColor:
|
|
19380
|
+
label: computed86(() => props4.rightLabelValue !== void 0 ? props4.rightLabelValue : model.value.max),
|
|
19381
|
+
thumbColor: computed86(() => props4.rightThumbColor || props4.thumbColor || props4.color),
|
|
19382
|
+
labelColor: computed86(() => props4.rightLabelColor || props4.labelColor),
|
|
19383
|
+
labelTextColor: computed86(() => props4.rightLabelTextColor || props4.labelTextColor)
|
|
19349
19384
|
});
|
|
19350
19385
|
function updateValue2(change) {
|
|
19351
19386
|
if (model.value.min !== props4.modelValue.min || model.value.max !== props4.modelValue.max) {
|
|
@@ -19501,7 +19536,7 @@ var QRange_default = createComponent({
|
|
|
19501
19536
|
});
|
|
19502
19537
|
|
|
19503
19538
|
// src/components/rating/QRating.js
|
|
19504
|
-
import { h as h82, ref as ref51, computed as
|
|
19539
|
+
import { h as h82, ref as ref51, computed as computed87, onBeforeUpdate as onBeforeUpdate2, getCurrentInstance as getCurrentInstance67 } from "vue";
|
|
19505
19540
|
var QRating_default = createComponent({
|
|
19506
19541
|
name: "QRating",
|
|
19507
19542
|
props: {
|
|
@@ -19535,13 +19570,13 @@ var QRating_default = createComponent({
|
|
|
19535
19570
|
const injectFormInput = useFormInject(formAttrs);
|
|
19536
19571
|
const mouseModel = ref51(0);
|
|
19537
19572
|
let iconRefs = {};
|
|
19538
|
-
const editable =
|
|
19573
|
+
const editable = computed87(
|
|
19539
19574
|
() => props4.readonly !== true && props4.disable !== true
|
|
19540
19575
|
);
|
|
19541
|
-
const classes =
|
|
19576
|
+
const classes = computed87(
|
|
19542
19577
|
() => `q-rating row inline items-center q-rating--${editable.value === true ? "" : "non-"}editable` + (props4.noDimming === true ? " q-rating--no-dimming" : "") + (props4.disable === true ? " disabled" : "") + (props4.color !== void 0 && Array.isArray(props4.color) === false ? ` text-${props4.color}` : "")
|
|
19543
19578
|
);
|
|
19544
|
-
const iconData =
|
|
19579
|
+
const iconData = computed87(() => {
|
|
19545
19580
|
const iconLen = Array.isArray(props4.icon) === true ? props4.icon.length : 0, selIconLen = Array.isArray(props4.iconSelected) === true ? props4.iconSelected.length : 0, halfIconLen = Array.isArray(props4.iconHalf) === true ? props4.iconHalf.length : 0, colorLen = Array.isArray(props4.color) === true ? props4.color.length : 0, selColorLen = Array.isArray(props4.colorSelected) === true ? props4.colorSelected.length : 0, halfColorLen = Array.isArray(props4.colorHalf) === true ? props4.colorHalf.length : 0;
|
|
19546
19581
|
return {
|
|
19547
19582
|
iconLen,
|
|
@@ -19558,7 +19593,7 @@ var QRating_default = createComponent({
|
|
|
19558
19593
|
halfColor: halfColorLen > 0 ? props4.colorHalf[halfColorLen - 1] : props4.colorHalf
|
|
19559
19594
|
};
|
|
19560
19595
|
});
|
|
19561
|
-
const iconLabel =
|
|
19596
|
+
const iconLabel = computed87(() => {
|
|
19562
19597
|
if (typeof props4.iconAriaLabel === "string") {
|
|
19563
19598
|
const label = props4.iconAriaLabel.length !== 0 ? `${props4.iconAriaLabel} ` : "";
|
|
19564
19599
|
return (i) => `${label}${i}`;
|
|
@@ -19571,7 +19606,7 @@ var QRating_default = createComponent({
|
|
|
19571
19606
|
}
|
|
19572
19607
|
return (i, label) => `${label} ${i}`;
|
|
19573
19608
|
});
|
|
19574
|
-
const stars =
|
|
19609
|
+
const stars = computed87(() => {
|
|
19575
19610
|
const acc = [], icons = iconData.value, ceil = Math.ceil(props4.modelValue), tabindex = editable.value === true ? 0 : null;
|
|
19576
19611
|
const halfIndex = props4.iconHalf === void 0 || ceil === props4.modelValue ? -1 : ceil;
|
|
19577
19612
|
for (let i = 1; i <= props4.max; i++) {
|
|
@@ -19589,7 +19624,7 @@ var QRating_default = createComponent({
|
|
|
19589
19624
|
}
|
|
19590
19625
|
return acc;
|
|
19591
19626
|
});
|
|
19592
|
-
const attributes =
|
|
19627
|
+
const attributes = computed87(() => {
|
|
19593
19628
|
const attrs = { role: "radiogroup" };
|
|
19594
19629
|
if (props4.disable === true) {
|
|
19595
19630
|
attrs["aria-disabled"] = "true";
|
|
@@ -19706,7 +19741,7 @@ var QResponsive_default = createComponent({
|
|
|
19706
19741
|
});
|
|
19707
19742
|
|
|
19708
19743
|
// src/components/scroll-area/QScrollArea.js
|
|
19709
|
-
import { h as h85, ref as ref52, computed as
|
|
19744
|
+
import { h as h85, ref as ref52, computed as computed88, watch as watch36, onActivated as onActivated5, onDeactivated as onDeactivated7, onBeforeUnmount as onBeforeUnmount32, getCurrentInstance as getCurrentInstance68 } from "vue";
|
|
19710
19745
|
|
|
19711
19746
|
// src/components/scroll-area/ScrollAreaControls.js
|
|
19712
19747
|
import { h as h84, withDirectives as withDirectives6 } from "vue";
|
|
@@ -19820,14 +19855,14 @@ var QScrollArea_default = createComponent({
|
|
|
19820
19855
|
const isDark = use_dark_default(props4, proxy.$q);
|
|
19821
19856
|
let timer2 = null, panRefPos;
|
|
19822
19857
|
const targetRef = ref52(null);
|
|
19823
|
-
const classes =
|
|
19858
|
+
const classes = computed88(
|
|
19824
19859
|
() => "q-scrollarea" + (isDark.value === true ? " q-scrollarea--dark" : "")
|
|
19825
19860
|
);
|
|
19826
19861
|
Object.assign(container, {
|
|
19827
|
-
verticalInner:
|
|
19828
|
-
horizontalInner:
|
|
19862
|
+
verticalInner: computed88(() => container.vertical.value - props4.verticalOffset[0] - props4.verticalOffset[1]),
|
|
19863
|
+
horizontalInner: computed88(() => container.horizontal.value - props4.horizontalOffset[0] - props4.horizontalOffset[1])
|
|
19829
19864
|
});
|
|
19830
|
-
scroll.vertical.percentage =
|
|
19865
|
+
scroll.vertical.percentage = computed88(() => {
|
|
19831
19866
|
const diff2 = scroll.vertical.size.value - container.vertical.value;
|
|
19832
19867
|
if (diff2 <= 0) {
|
|
19833
19868
|
return 0;
|
|
@@ -19835,9 +19870,9 @@ var QScrollArea_default = createComponent({
|
|
|
19835
19870
|
const p = between(scroll.vertical.position.value / diff2, 0, 1);
|
|
19836
19871
|
return Math.round(p * 1e4) / 1e4;
|
|
19837
19872
|
});
|
|
19838
|
-
scroll.vertical.thumbHidden =
|
|
19839
|
-
scroll.vertical.thumbStart =
|
|
19840
|
-
scroll.vertical.thumbSize =
|
|
19873
|
+
scroll.vertical.thumbHidden = computed88(() => (props4.visible === null ? hover.value : props4.visible) !== true && tempShowing.value === false && panning.value === false || scroll.vertical.size.value <= container.vertical.value + 1);
|
|
19874
|
+
scroll.vertical.thumbStart = computed88(() => props4.verticalOffset[0] + scroll.vertical.percentage.value * (container.verticalInner.value - scroll.vertical.thumbSize.value));
|
|
19875
|
+
scroll.vertical.thumbSize = computed88(
|
|
19841
19876
|
() => Math.round(
|
|
19842
19877
|
between(
|
|
19843
19878
|
container.verticalInner.value * container.verticalInner.value / scroll.vertical.size.value,
|
|
@@ -19846,16 +19881,16 @@ var QScrollArea_default = createComponent({
|
|
|
19846
19881
|
)
|
|
19847
19882
|
)
|
|
19848
19883
|
);
|
|
19849
|
-
scroll.vertical.style =
|
|
19884
|
+
scroll.vertical.style = computed88(() => ({
|
|
19850
19885
|
...props4.thumbStyle,
|
|
19851
19886
|
...props4.verticalThumbStyle,
|
|
19852
19887
|
top: `${scroll.vertical.thumbStart.value}px`,
|
|
19853
19888
|
height: `${scroll.vertical.thumbSize.value}px`,
|
|
19854
19889
|
right: `${props4.horizontalOffset[1]}px`
|
|
19855
19890
|
}));
|
|
19856
|
-
scroll.vertical.thumbClass =
|
|
19857
|
-
scroll.vertical.barClass =
|
|
19858
|
-
scroll.horizontal.percentage =
|
|
19891
|
+
scroll.vertical.thumbClass = computed88(() => "q-scrollarea__thumb q-scrollarea__thumb--v absolute-right" + (scroll.vertical.thumbHidden.value === true ? " q-scrollarea__thumb--invisible" : ""));
|
|
19892
|
+
scroll.vertical.barClass = computed88(() => "q-scrollarea__bar q-scrollarea__bar--v absolute-right" + (scroll.vertical.thumbHidden.value === true ? " q-scrollarea__bar--invisible" : ""));
|
|
19893
|
+
scroll.horizontal.percentage = computed88(() => {
|
|
19859
19894
|
const diff2 = scroll.horizontal.size.value - container.horizontal.value;
|
|
19860
19895
|
if (diff2 <= 0) {
|
|
19861
19896
|
return 0;
|
|
@@ -19863,9 +19898,9 @@ var QScrollArea_default = createComponent({
|
|
|
19863
19898
|
const p = between(Math.abs(scroll.horizontal.position.value) / diff2, 0, 1);
|
|
19864
19899
|
return Math.round(p * 1e4) / 1e4;
|
|
19865
19900
|
});
|
|
19866
|
-
scroll.horizontal.thumbHidden =
|
|
19867
|
-
scroll.horizontal.thumbStart =
|
|
19868
|
-
scroll.horizontal.thumbSize =
|
|
19901
|
+
scroll.horizontal.thumbHidden = computed88(() => (props4.visible === null ? hover.value : props4.visible) !== true && tempShowing.value === false && panning.value === false || scroll.horizontal.size.value <= container.horizontal.value + 1);
|
|
19902
|
+
scroll.horizontal.thumbStart = computed88(() => props4.horizontalOffset[0] + scroll.horizontal.percentage.value * (container.horizontalInner.value - scroll.horizontal.thumbSize.value));
|
|
19903
|
+
scroll.horizontal.thumbSize = computed88(
|
|
19869
19904
|
() => Math.round(
|
|
19870
19905
|
between(
|
|
19871
19906
|
container.horizontalInner.value * container.horizontalInner.value / scroll.horizontal.size.value,
|
|
@@ -19874,16 +19909,16 @@ var QScrollArea_default = createComponent({
|
|
|
19874
19909
|
)
|
|
19875
19910
|
)
|
|
19876
19911
|
);
|
|
19877
|
-
scroll.horizontal.style =
|
|
19912
|
+
scroll.horizontal.style = computed88(() => ({
|
|
19878
19913
|
...props4.thumbStyle,
|
|
19879
19914
|
...props4.horizontalThumbStyle,
|
|
19880
19915
|
[proxy.$q.lang.rtl === true ? "right" : "left"]: `${scroll.horizontal.thumbStart.value}px`,
|
|
19881
19916
|
width: `${scroll.horizontal.thumbSize.value}px`,
|
|
19882
19917
|
bottom: `${props4.verticalOffset[1]}px`
|
|
19883
19918
|
}));
|
|
19884
|
-
scroll.horizontal.thumbClass =
|
|
19885
|
-
scroll.horizontal.barClass =
|
|
19886
|
-
const mainStyle =
|
|
19919
|
+
scroll.horizontal.thumbClass = computed88(() => "q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom" + (scroll.horizontal.thumbHidden.value === true ? " q-scrollarea__thumb--invisible" : ""));
|
|
19920
|
+
scroll.horizontal.barClass = computed88(() => "q-scrollarea__bar q-scrollarea__bar--h absolute-bottom" + (scroll.horizontal.thumbHidden.value === true ? " q-scrollarea__bar--invisible" : ""));
|
|
19921
|
+
const mainStyle = computed88(() => scroll.vertical.thumbHidden.value === true && scroll.horizontal.thumbHidden.value === true ? props4.contentStyle : props4.contentActiveStyle);
|
|
19887
19922
|
function getScroll() {
|
|
19888
19923
|
const info = {};
|
|
19889
19924
|
axisList.forEach((axis) => {
|
|
@@ -20118,10 +20153,10 @@ var QScrollArea_default = createComponent({
|
|
|
20118
20153
|
});
|
|
20119
20154
|
|
|
20120
20155
|
// src/components/select/QSelect.js
|
|
20121
|
-
import { h as h87, ref as ref54, computed as
|
|
20156
|
+
import { h as h87, ref as ref54, computed as computed90, watch as watch38, onBeforeUpdate as onBeforeUpdate3, onUpdated, onBeforeUnmount as onBeforeUnmount34, nextTick as nextTick16, getCurrentInstance as getCurrentInstance70 } from "vue";
|
|
20122
20157
|
|
|
20123
20158
|
// src/components/virtual-scroll/use-virtual-scroll.js
|
|
20124
|
-
import { h as h86, ref as ref53, computed as
|
|
20159
|
+
import { h as h86, ref as ref53, computed as computed89, watch as watch37, onActivated as onActivated6, onDeactivated as onDeactivated8, onBeforeMount as onBeforeMount2, onBeforeUnmount as onBeforeUnmount33, nextTick as nextTick15, getCurrentInstance as getCurrentInstance69 } from "vue";
|
|
20125
20160
|
var aggBucketSize = 1e3;
|
|
20126
20161
|
var scrollToEdges = [
|
|
20127
20162
|
"start",
|
|
@@ -20300,12 +20335,12 @@ function useVirtualScroll({
|
|
|
20300
20335
|
const afterRef = ref53(null);
|
|
20301
20336
|
const contentRef = ref53(null);
|
|
20302
20337
|
const virtualScrollSliceRange = ref53({ from: 0, to: 0 });
|
|
20303
|
-
const colspanAttr =
|
|
20338
|
+
const colspanAttr = computed89(() => props4.tableColspan !== void 0 ? props4.tableColspan : 100);
|
|
20304
20339
|
if (virtualScrollItemSizeComputed === void 0) {
|
|
20305
|
-
virtualScrollItemSizeComputed =
|
|
20340
|
+
virtualScrollItemSizeComputed = computed89(() => props4.virtualScrollItemSize);
|
|
20306
20341
|
}
|
|
20307
|
-
const needsReset =
|
|
20308
|
-
const needsSliceRecalc =
|
|
20342
|
+
const needsReset = computed89(() => virtualScrollItemSizeComputed.value + ";" + props4.virtualScrollHorizontal);
|
|
20343
|
+
const needsSliceRecalc = computed89(
|
|
20309
20344
|
() => needsReset.value + ";" + props4.virtualScrollSliceRatioBefore + ";" + props4.virtualScrollSliceRatioAfter
|
|
20310
20345
|
);
|
|
20311
20346
|
watch37(needsSliceRecalc, () => {
|
|
@@ -20765,8 +20800,8 @@ var QSelect_default = createComponent({
|
|
|
20765
20800
|
const menuContentRef = ref54(null);
|
|
20766
20801
|
const nameProp = useFormInputNameAttr(props4);
|
|
20767
20802
|
const onComposition = use_key_composition_default(onInput);
|
|
20768
|
-
const virtualScrollLength =
|
|
20769
|
-
const virtualScrollItemSizeComputed =
|
|
20803
|
+
const virtualScrollLength = computed90(() => Array.isArray(props4.options) ? props4.options.length : 0);
|
|
20804
|
+
const virtualScrollItemSizeComputed = computed90(() => props4.virtualScrollItemSize === void 0 ? props4.optionsDense === true ? 24 : 48 : props4.virtualScrollItemSize);
|
|
20770
20805
|
const {
|
|
20771
20806
|
virtualScrollSliceRange,
|
|
20772
20807
|
virtualScrollSliceSizeComputed,
|
|
@@ -20782,7 +20817,7 @@ var QSelect_default = createComponent({
|
|
|
20782
20817
|
virtualScrollItemSizeComputed
|
|
20783
20818
|
});
|
|
20784
20819
|
const state = useFieldState();
|
|
20785
|
-
const innerValue =
|
|
20820
|
+
const innerValue = computed90(() => {
|
|
20786
20821
|
const mapNull = props4.mapOptions === true && props4.multiple !== true, val = props4.modelValue !== void 0 && (props4.modelValue !== null || mapNull === true) ? props4.multiple === true && Array.isArray(props4.modelValue) ? props4.modelValue : [props4.modelValue] : [];
|
|
20787
20822
|
if (props4.mapOptions === true && Array.isArray(props4.options) === true) {
|
|
20788
20823
|
const cache = props4.mapOptions === true && innerValueCache !== void 0 ? innerValueCache : [];
|
|
@@ -20791,7 +20826,7 @@ var QSelect_default = createComponent({
|
|
|
20791
20826
|
}
|
|
20792
20827
|
return val;
|
|
20793
20828
|
});
|
|
20794
|
-
const innerFieldProps =
|
|
20829
|
+
const innerFieldProps = computed90(() => {
|
|
20795
20830
|
const acc = {};
|
|
20796
20831
|
fieldPropsList.forEach((key) => {
|
|
20797
20832
|
const val = props4[key];
|
|
@@ -20801,9 +20836,9 @@ var QSelect_default = createComponent({
|
|
|
20801
20836
|
});
|
|
20802
20837
|
return acc;
|
|
20803
20838
|
});
|
|
20804
|
-
const isOptionsDark =
|
|
20805
|
-
const hasValue =
|
|
20806
|
-
const computedInputClass =
|
|
20839
|
+
const isOptionsDark = computed90(() => props4.optionsDark === null ? state.isDark.value : props4.optionsDark);
|
|
20840
|
+
const hasValue = computed90(() => fieldValueIsFilled(innerValue.value));
|
|
20841
|
+
const computedInputClass = computed90(() => {
|
|
20807
20842
|
let cls = "q-field__input q-placeholder col";
|
|
20808
20843
|
if (props4.hideSelected === true || innerValue.value.length === 0) {
|
|
20809
20844
|
return [cls, props4.inputClass];
|
|
@@ -20811,18 +20846,18 @@ var QSelect_default = createComponent({
|
|
|
20811
20846
|
cls += " q-field__input--padding";
|
|
20812
20847
|
return props4.inputClass === void 0 ? cls : [cls, props4.inputClass];
|
|
20813
20848
|
});
|
|
20814
|
-
const menuContentClass =
|
|
20849
|
+
const menuContentClass = computed90(
|
|
20815
20850
|
() => (props4.virtualScrollHorizontal === true ? "q-virtual-scroll--horizontal" : "") + (props4.popupContentClass ? " " + props4.popupContentClass : "")
|
|
20816
20851
|
);
|
|
20817
|
-
const noOptions =
|
|
20818
|
-
const selectedString =
|
|
20852
|
+
const noOptions = computed90(() => virtualScrollLength.value === 0);
|
|
20853
|
+
const selectedString = computed90(
|
|
20819
20854
|
() => innerValue.value.map((opt) => getOptionLabel.value(opt)).join(", ")
|
|
20820
20855
|
);
|
|
20821
|
-
const ariaCurrentValue =
|
|
20822
|
-
const needsHtmlFn =
|
|
20823
|
-
const valueAsHtml =
|
|
20824
|
-
const tabindex =
|
|
20825
|
-
const comboboxAttrs =
|
|
20856
|
+
const ariaCurrentValue = computed90(() => props4.displayValue !== void 0 ? props4.displayValue : selectedString.value);
|
|
20857
|
+
const needsHtmlFn = computed90(() => props4.optionsHtml === true ? () => true : (opt) => opt?.html === true);
|
|
20858
|
+
const valueAsHtml = computed90(() => props4.displayValueHtml === true || props4.displayValue === void 0 && (props4.optionsHtml === true || innerValue.value.some(needsHtmlFn.value)));
|
|
20859
|
+
const tabindex = computed90(() => state.focused.value === true ? props4.tabindex : -1);
|
|
20860
|
+
const comboboxAttrs = computed90(() => {
|
|
20826
20861
|
const attrs = {
|
|
20827
20862
|
tabindex: props4.tabindex,
|
|
20828
20863
|
role: "combobox",
|
|
@@ -20837,12 +20872,12 @@ var QSelect_default = createComponent({
|
|
|
20837
20872
|
}
|
|
20838
20873
|
return attrs;
|
|
20839
20874
|
});
|
|
20840
|
-
const listboxAttrs =
|
|
20875
|
+
const listboxAttrs = computed90(() => ({
|
|
20841
20876
|
id: `${state.targetUid.value}_lb`,
|
|
20842
20877
|
role: "listbox",
|
|
20843
20878
|
"aria-multiselectable": props4.multiple === true ? "true" : "false"
|
|
20844
20879
|
}));
|
|
20845
|
-
const selectedScope =
|
|
20880
|
+
const selectedScope = computed90(() => {
|
|
20846
20881
|
return innerValue.value.map((opt, i) => ({
|
|
20847
20882
|
index: i,
|
|
20848
20883
|
opt,
|
|
@@ -20853,7 +20888,7 @@ var QSelect_default = createComponent({
|
|
|
20853
20888
|
tabindex: tabindex.value
|
|
20854
20889
|
}));
|
|
20855
20890
|
});
|
|
20856
|
-
const optionScope =
|
|
20891
|
+
const optionScope = computed90(() => {
|
|
20857
20892
|
if (virtualScrollLength.value === 0) {
|
|
20858
20893
|
return [];
|
|
20859
20894
|
}
|
|
@@ -20900,16 +20935,16 @@ var QSelect_default = createComponent({
|
|
|
20900
20935
|
};
|
|
20901
20936
|
});
|
|
20902
20937
|
});
|
|
20903
|
-
const dropdownArrowIcon =
|
|
20904
|
-
const squaredMenu =
|
|
20938
|
+
const dropdownArrowIcon = computed90(() => props4.dropdownIcon !== void 0 ? props4.dropdownIcon : $q.iconSet.arrow.dropdown);
|
|
20939
|
+
const squaredMenu = computed90(
|
|
20905
20940
|
() => props4.optionsCover === false && props4.outlined !== true && props4.standout !== true && props4.borderless !== true && props4.rounded !== true
|
|
20906
20941
|
);
|
|
20907
|
-
const computedOptionsSelectedClass =
|
|
20908
|
-
const getOptionValue =
|
|
20909
|
-
const getOptionLabel =
|
|
20910
|
-
const isOptionDisabled =
|
|
20911
|
-
const innerOptionsValue =
|
|
20912
|
-
const inputControlEvents =
|
|
20942
|
+
const computedOptionsSelectedClass = computed90(() => props4.optionsSelectedClass !== void 0 ? props4.optionsSelectedClass : props4.color !== void 0 ? `text-${props4.color}` : "");
|
|
20943
|
+
const getOptionValue = computed90(() => getPropValueFn2(props4.optionValue, "value"));
|
|
20944
|
+
const getOptionLabel = computed90(() => getPropValueFn2(props4.optionLabel, "label"));
|
|
20945
|
+
const isOptionDisabled = computed90(() => getPropValueFn2(props4.optionDisable, "disable"));
|
|
20946
|
+
const innerOptionsValue = computed90(() => innerValue.value.map(getOptionValue.value));
|
|
20947
|
+
const inputControlEvents = computed90(() => {
|
|
20913
20948
|
const evt = {
|
|
20914
20949
|
onInput,
|
|
20915
20950
|
// Safari < 10.2 & UIWebView doesn't fire compositionend when
|
|
@@ -21650,14 +21685,14 @@ var QSelect_default = createComponent({
|
|
|
21650
21685
|
});
|
|
21651
21686
|
Object.assign(state, {
|
|
21652
21687
|
innerValue,
|
|
21653
|
-
fieldClass:
|
|
21688
|
+
fieldClass: computed90(
|
|
21654
21689
|
() => `q-select q-field--auto-height q-select--with${props4.useInput !== true ? "out" : ""}-input q-select--with${props4.useChips !== true ? "out" : ""}-chips q-select--${props4.multiple === true ? "multiple" : "single"}`
|
|
21655
21690
|
),
|
|
21656
21691
|
inputRef,
|
|
21657
21692
|
targetRef,
|
|
21658
21693
|
hasValue,
|
|
21659
21694
|
showPopup,
|
|
21660
|
-
floatingLabel:
|
|
21695
|
+
floatingLabel: computed90(
|
|
21661
21696
|
() => props4.hideSelected !== true && hasValue.value === true || typeof inputValue.value === "number" || inputValue.value.length !== 0 || fieldValueIsFilled(props4.displayValue)
|
|
21662
21697
|
),
|
|
21663
21698
|
getControlChild: () => {
|
|
@@ -21749,7 +21784,7 @@ var QSelect_default = createComponent({
|
|
|
21749
21784
|
});
|
|
21750
21785
|
|
|
21751
21786
|
// src/components/skeleton/QSkeleton.js
|
|
21752
|
-
import { h as h88, computed as
|
|
21787
|
+
import { h as h88, computed as computed91, getCurrentInstance as getCurrentInstance71 } from "vue";
|
|
21753
21788
|
var skeletonTypes = [
|
|
21754
21789
|
"text",
|
|
21755
21790
|
"rect",
|
|
@@ -21806,7 +21841,7 @@ var QSkeleton_default = createComponent({
|
|
|
21806
21841
|
setup(props4, { slots }) {
|
|
21807
21842
|
const vm2 = getCurrentInstance71();
|
|
21808
21843
|
const isDark = use_dark_default(props4, vm2.proxy.$q);
|
|
21809
|
-
const style2 =
|
|
21844
|
+
const style2 = computed91(() => {
|
|
21810
21845
|
const size2 = props4.size !== void 0 ? [props4.size, props4.size] : [props4.width, props4.height];
|
|
21811
21846
|
return {
|
|
21812
21847
|
"--q-skeleton-speed": `${props4.animationSpeed}ms`,
|
|
@@ -21814,7 +21849,7 @@ var QSkeleton_default = createComponent({
|
|
|
21814
21849
|
height: size2[1]
|
|
21815
21850
|
};
|
|
21816
21851
|
});
|
|
21817
|
-
const classes =
|
|
21852
|
+
const classes = computed91(
|
|
21818
21853
|
() => `q-skeleton q-skeleton--${isDark.value === true ? "dark" : "light"} q-skeleton--type-${props4.type}` + (props4.animation !== "none" ? ` q-skeleton--anim q-skeleton--anim-${props4.animation}` : "") + (props4.square === true ? " q-skeleton--square" : "") + (props4.bordered === true ? " q-skeleton--bordered" : "")
|
|
21819
21854
|
);
|
|
21820
21855
|
return () => h88(props4.tag, {
|
|
@@ -21825,7 +21860,7 @@ var QSkeleton_default = createComponent({
|
|
|
21825
21860
|
});
|
|
21826
21861
|
|
|
21827
21862
|
// src/components/slide-item/QSlideItem.js
|
|
21828
|
-
import { h as h89, ref as ref55, computed as
|
|
21863
|
+
import { h as h89, ref as ref55, computed as computed92, withDirectives as withDirectives7, onBeforeUnmount as onBeforeUnmount35, onBeforeUpdate as onBeforeUpdate4, getCurrentInstance as getCurrentInstance72 } from "vue";
|
|
21829
21864
|
var slotsDef = [
|
|
21830
21865
|
["left", "center", "start", "width"],
|
|
21831
21866
|
["right", "center", "end", "width"],
|
|
@@ -21850,8 +21885,8 @@ var QSlideItem_default = createComponent({
|
|
|
21850
21885
|
const { getCache } = use_render_cache_default();
|
|
21851
21886
|
const contentRef = ref55(null);
|
|
21852
21887
|
let timer2 = null, pan = {}, dirRefs = {}, dirContentRefs = {};
|
|
21853
|
-
const langDir =
|
|
21854
|
-
const classes =
|
|
21888
|
+
const langDir = computed92(() => $q.lang.rtl === true ? { left: "right", right: "left" } : { left: "left", right: "right" });
|
|
21889
|
+
const classes = computed92(
|
|
21855
21890
|
() => "q-slide-item q-item-type overflow-hidden" + (isDark.value === true ? " q-slide-item--dark q-dark" : "")
|
|
21856
21891
|
);
|
|
21857
21892
|
function reset() {
|
|
@@ -22438,7 +22473,7 @@ var QSpinnerTail_default = createComponent({
|
|
|
22438
22473
|
});
|
|
22439
22474
|
|
|
22440
22475
|
// src/components/splitter/QSplitter.js
|
|
22441
|
-
import { h as h113, ref as ref56, computed as
|
|
22476
|
+
import { h as h113, ref as ref56, computed as computed93, watch as watch39, nextTick as nextTick17, getCurrentInstance as getCurrentInstance73 } from "vue";
|
|
22442
22477
|
var QSplitter_default = createComponent({
|
|
22443
22478
|
name: "QSplitter",
|
|
22444
22479
|
props: {
|
|
@@ -22478,16 +22513,16 @@ var QSplitter_default = createComponent({
|
|
|
22478
22513
|
before: ref56(null),
|
|
22479
22514
|
after: ref56(null)
|
|
22480
22515
|
};
|
|
22481
|
-
const classes =
|
|
22516
|
+
const classes = computed93(
|
|
22482
22517
|
() => `q-splitter no-wrap ${props4.horizontal === true ? "q-splitter--horizontal column" : "q-splitter--vertical row"} q-splitter--${props4.disable === true ? "disabled" : "workable"}` + (isDark.value === true ? " q-splitter--dark" : "")
|
|
22483
22518
|
);
|
|
22484
|
-
const propName =
|
|
22485
|
-
const side =
|
|
22486
|
-
const computedLimits =
|
|
22519
|
+
const propName = computed93(() => props4.horizontal === true ? "height" : "width");
|
|
22520
|
+
const side = computed93(() => props4.reverse !== true ? "before" : "after");
|
|
22521
|
+
const computedLimits = computed93(() => props4.limits !== void 0 ? props4.limits : props4.unit === "%" ? [10, 90] : [50, Infinity]);
|
|
22487
22522
|
function getCSSValue(value2) {
|
|
22488
22523
|
return (props4.unit === "%" ? value2 : Math.round(value2)) + props4.unit;
|
|
22489
22524
|
}
|
|
22490
|
-
const styles =
|
|
22525
|
+
const styles = computed93(() => ({
|
|
22491
22526
|
[side.value]: {
|
|
22492
22527
|
[propName.value]: getCSSValue(props4.modelValue)
|
|
22493
22528
|
}
|
|
@@ -22517,7 +22552,7 @@ var QSplitter_default = createComponent({
|
|
|
22517
22552
|
emit("update:modelValue", __normalized);
|
|
22518
22553
|
}
|
|
22519
22554
|
}
|
|
22520
|
-
const sepDirective =
|
|
22555
|
+
const sepDirective = computed93(() => {
|
|
22521
22556
|
return [[
|
|
22522
22557
|
TouchPan_default,
|
|
22523
22558
|
pan,
|
|
@@ -22591,10 +22626,10 @@ var QSplitter_default = createComponent({
|
|
|
22591
22626
|
});
|
|
22592
22627
|
|
|
22593
22628
|
// src/components/stepper/QStep.js
|
|
22594
|
-
import { h as h115, ref as ref58, computed as
|
|
22629
|
+
import { h as h115, ref as ref58, computed as computed95, inject as inject10, getCurrentInstance as getCurrentInstance75, KeepAlive as KeepAlive2 } from "vue";
|
|
22595
22630
|
|
|
22596
22631
|
// src/components/stepper/StepHeader.js
|
|
22597
|
-
import { h as h114, ref as ref57, computed as
|
|
22632
|
+
import { h as h114, ref as ref57, computed as computed94, withDirectives as withDirectives8, getCurrentInstance as getCurrentInstance74 } from "vue";
|
|
22598
22633
|
var StepHeader_default = createComponent({
|
|
22599
22634
|
name: "StepHeader",
|
|
22600
22635
|
props: {
|
|
@@ -22605,27 +22640,27 @@ var StepHeader_default = createComponent({
|
|
|
22605
22640
|
setup(props4, { attrs }) {
|
|
22606
22641
|
const { proxy: { $q } } = getCurrentInstance74();
|
|
22607
22642
|
const blurRef = ref57(null);
|
|
22608
|
-
const isActive =
|
|
22609
|
-
const isDisable =
|
|
22643
|
+
const isActive = computed94(() => props4.stepper.modelValue === props4.step.name);
|
|
22644
|
+
const isDisable = computed94(() => {
|
|
22610
22645
|
const opt = props4.step.disable;
|
|
22611
22646
|
return opt === true || opt === "";
|
|
22612
22647
|
});
|
|
22613
|
-
const isError =
|
|
22648
|
+
const isError = computed94(() => {
|
|
22614
22649
|
const opt = props4.step.error;
|
|
22615
22650
|
return opt === true || opt === "";
|
|
22616
22651
|
});
|
|
22617
|
-
const isDone =
|
|
22652
|
+
const isDone = computed94(() => {
|
|
22618
22653
|
const opt = props4.step.done;
|
|
22619
22654
|
return isDisable.value === false && (opt === true || opt === "");
|
|
22620
22655
|
});
|
|
22621
|
-
const headerNav =
|
|
22656
|
+
const headerNav = computed94(() => {
|
|
22622
22657
|
const opt = props4.step.headerNav, nav = opt === true || opt === "" || opt === void 0;
|
|
22623
22658
|
return isDisable.value === false && props4.stepper.headerNav && nav;
|
|
22624
22659
|
});
|
|
22625
|
-
const hasPrefix =
|
|
22660
|
+
const hasPrefix = computed94(() => {
|
|
22626
22661
|
return props4.step.prefix && (isActive.value === false || props4.stepper.activeIcon === "none") && (isError.value === false || props4.stepper.errorIcon === "none") && (isDone.value === false || props4.stepper.doneIcon === "none");
|
|
22627
22662
|
});
|
|
22628
|
-
const icon =
|
|
22663
|
+
const icon = computed94(() => {
|
|
22629
22664
|
const defaultIcon = props4.step.icon || props4.stepper.inactiveIcon;
|
|
22630
22665
|
if (isActive.value === true) {
|
|
22631
22666
|
const icon2 = props4.step.activeIcon || props4.stepper.activeIcon;
|
|
@@ -22641,7 +22676,7 @@ var StepHeader_default = createComponent({
|
|
|
22641
22676
|
}
|
|
22642
22677
|
return defaultIcon;
|
|
22643
22678
|
});
|
|
22644
|
-
const color =
|
|
22679
|
+
const color = computed94(() => {
|
|
22645
22680
|
const errorColor = isError.value === true ? props4.step.errorColor || props4.stepper.errorColor : void 0;
|
|
22646
22681
|
if (isActive.value === true) {
|
|
22647
22682
|
const color2 = props4.step.activeColor || props4.stepper.activeColor || props4.step.color;
|
|
@@ -22655,10 +22690,10 @@ var StepHeader_default = createComponent({
|
|
|
22655
22690
|
}
|
|
22656
22691
|
return props4.step.color || props4.stepper.inactiveColor;
|
|
22657
22692
|
});
|
|
22658
|
-
const classes =
|
|
22693
|
+
const classes = computed94(() => {
|
|
22659
22694
|
return "q-stepper__tab col-grow flex items-center no-wrap relative-position" + (color.value !== void 0 ? ` text-${color.value}` : "") + (isError.value === true ? " q-stepper__tab--error q-stepper__tab--error-with-" + (hasPrefix.value === true ? "prefix" : "icon") : "") + (isActive.value === true ? " q-stepper__tab--active" : "") + (isDone.value === true ? " q-stepper__tab--done" : "") + (headerNav.value === true ? " q-stepper__tab--navigation q-focusable q-hoverable" : "") + (isDisable.value === true ? " q-stepper__tab--disabled" : "");
|
|
22660
22695
|
});
|
|
22661
|
-
const ripple =
|
|
22696
|
+
const ripple = computed94(() => props4.stepper.headerNav !== true ? false : headerNav.value);
|
|
22662
22697
|
function onActivate() {
|
|
22663
22698
|
blurRef.value?.focus();
|
|
22664
22699
|
isActive.value === false && props4.goToPanel(props4.step.name);
|
|
@@ -22759,8 +22794,8 @@ var QStep_default = createComponent({
|
|
|
22759
22794
|
}
|
|
22760
22795
|
const { getCache } = use_render_cache_default();
|
|
22761
22796
|
const rootRef = ref58(null);
|
|
22762
|
-
const isActive =
|
|
22763
|
-
const scrollEvent =
|
|
22797
|
+
const isActive = computed95(() => $stepper.value.modelValue === props4.name);
|
|
22798
|
+
const scrollEvent = computed95(() => $q.platform.is.ios !== true && $q.platform.is.chrome === true || isActive.value !== true || $stepper.value.vertical !== true ? {} : {
|
|
22764
22799
|
onScroll(e) {
|
|
22765
22800
|
const { target: target2 } = e;
|
|
22766
22801
|
if (target2.scrollTop > 0) {
|
|
@@ -22769,7 +22804,7 @@ var QStep_default = createComponent({
|
|
|
22769
22804
|
props4.onScroll !== void 0 && emit("scroll", e);
|
|
22770
22805
|
}
|
|
22771
22806
|
});
|
|
22772
|
-
const contentKey =
|
|
22807
|
+
const contentKey = computed95(() => typeof props4.name === "string" || typeof props4.name === "number" ? props4.name : String(props4.name));
|
|
22773
22808
|
function getStepContent() {
|
|
22774
22809
|
const vertical = $stepper.value.vertical;
|
|
22775
22810
|
if (vertical === true && $stepper.value.keepAlive === true) {
|
|
@@ -22803,7 +22838,7 @@ var QStep_default = createComponent({
|
|
|
22803
22838
|
});
|
|
22804
22839
|
|
|
22805
22840
|
// src/components/stepper/QStepper.js
|
|
22806
|
-
import { h as h116, computed as
|
|
22841
|
+
import { h as h116, computed as computed96, provide as provide6, getCurrentInstance as getCurrentInstance76 } from "vue";
|
|
22807
22842
|
var camelRE = /(-\w)/g;
|
|
22808
22843
|
function camelizeProps(props4) {
|
|
22809
22844
|
const acc = {};
|
|
@@ -22848,16 +22883,16 @@ var QStepper_default = createComponent({
|
|
|
22848
22883
|
keepAliveProps,
|
|
22849
22884
|
needsUniqueKeepAliveWrapper
|
|
22850
22885
|
} = use_panel_default();
|
|
22851
|
-
provide6(stepperKey,
|
|
22886
|
+
provide6(stepperKey, computed96(() => ({
|
|
22852
22887
|
goToPanel,
|
|
22853
22888
|
keepAliveProps,
|
|
22854
22889
|
needsUniqueKeepAliveWrapper,
|
|
22855
22890
|
...props4
|
|
22856
22891
|
})));
|
|
22857
|
-
const classes =
|
|
22892
|
+
const classes = computed96(
|
|
22858
22893
|
() => `q-stepper q-stepper--${props4.vertical === true ? "vertical" : "horizontal"}` + (props4.flat === true ? " q-stepper--flat" : "") + (props4.bordered === true ? " q-stepper--bordered" : "") + (isDark.value === true ? " q-stepper--dark q-dark" : "")
|
|
22859
22894
|
);
|
|
22860
|
-
const headerClasses =
|
|
22895
|
+
const headerClasses = computed96(
|
|
22861
22896
|
() => `q-stepper__header row items-stretch justify-between q-stepper__header--${props4.alternativeLabels === true ? "alternative" : "standard"}-labels` + (props4.flat === false || props4.bordered === true ? " q-stepper__header--border" : "") + (props4.contracted === true ? " q-stepper__header--contracted" : "") + (props4.headerClass !== void 0 ? ` ${props4.headerClass}` : "")
|
|
22862
22897
|
);
|
|
22863
22898
|
function getContent() {
|
|
@@ -22913,7 +22948,7 @@ var QStepperNavigation_default = createComponent({
|
|
|
22913
22948
|
});
|
|
22914
22949
|
|
|
22915
22950
|
// src/components/table/QTable.js
|
|
22916
|
-
import { h as h121, ref as ref62, computed as
|
|
22951
|
+
import { h as h121, ref as ref62, computed as computed103, watch as watch44, getCurrentInstance as getCurrentInstance78 } from "vue";
|
|
22917
22952
|
|
|
22918
22953
|
// src/components/table/QTh.js
|
|
22919
22954
|
import { h as h118, getCurrentInstance as getCurrentInstance77 } from "vue";
|
|
@@ -22971,7 +23006,7 @@ var QTh_default = createComponent({
|
|
|
22971
23006
|
});
|
|
22972
23007
|
|
|
22973
23008
|
// src/components/virtual-scroll/QVirtualScroll.js
|
|
22974
|
-
import { h as h120, ref as ref59, computed as
|
|
23009
|
+
import { h as h120, ref as ref59, computed as computed97, watch as watch40, onBeforeMount as onBeforeMount3, onMounted as onMounted22, onBeforeUnmount as onBeforeUnmount36, onActivated as onActivated7, onDeactivated as onDeactivated9 } from "vue";
|
|
22975
23010
|
|
|
22976
23011
|
// src/components/table/get-table-middle.js
|
|
22977
23012
|
import { h as h119 } from "vue";
|
|
@@ -23007,7 +23042,7 @@ var QVirtualScroll_default = createComponent({
|
|
|
23007
23042
|
setup(props4, { slots, attrs }) {
|
|
23008
23043
|
let localScrollTarget;
|
|
23009
23044
|
const rootRef = ref59(null);
|
|
23010
|
-
const virtualScrollLength =
|
|
23045
|
+
const virtualScrollLength = computed97(() => props4.itemsSize >= 0 && props4.itemsFn !== void 0 ? parseInt(props4.itemsSize, 10) : Array.isArray(props4.items) ? props4.items.length : 0);
|
|
23011
23046
|
const {
|
|
23012
23047
|
virtualScrollSliceRange,
|
|
23013
23048
|
localResetVirtualScroll,
|
|
@@ -23018,7 +23053,7 @@ var QVirtualScroll_default = createComponent({
|
|
|
23018
23053
|
getVirtualScrollTarget,
|
|
23019
23054
|
getVirtualScrollEl
|
|
23020
23055
|
});
|
|
23021
|
-
const virtualScrollScope =
|
|
23056
|
+
const virtualScrollScope = computed97(() => {
|
|
23022
23057
|
if (virtualScrollLength.value === 0) {
|
|
23023
23058
|
return [];
|
|
23024
23059
|
}
|
|
@@ -23028,10 +23063,10 @@ var QVirtualScroll_default = createComponent({
|
|
|
23028
23063
|
});
|
|
23029
23064
|
return props4.itemsFn === void 0 ? props4.items.slice(virtualScrollSliceRange.value.from, virtualScrollSliceRange.value.to).map(mapFn) : props4.itemsFn(virtualScrollSliceRange.value.from, virtualScrollSliceRange.value.to - virtualScrollSliceRange.value.from).map(mapFn);
|
|
23030
23065
|
});
|
|
23031
|
-
const classes =
|
|
23066
|
+
const classes = computed97(
|
|
23032
23067
|
() => "q-virtual-scroll q-virtual-scroll" + (props4.virtualScrollHorizontal === true ? "--horizontal" : "--vertical") + (props4.scrollTarget !== void 0 ? "" : " scroll")
|
|
23033
23068
|
);
|
|
23034
|
-
const attributes =
|
|
23069
|
+
const attributes = computed97(() => props4.scrollTarget !== void 0 ? {} : { tabindex: 0 });
|
|
23035
23070
|
watch40(virtualScrollLength, () => {
|
|
23036
23071
|
localResetVirtualScroll();
|
|
23037
23072
|
});
|
|
@@ -23099,7 +23134,7 @@ var QVirtualScroll_default = createComponent({
|
|
|
23099
23134
|
});
|
|
23100
23135
|
|
|
23101
23136
|
// src/components/table/table-sort.js
|
|
23102
|
-
import { computed as
|
|
23137
|
+
import { computed as computed98 } from "vue";
|
|
23103
23138
|
|
|
23104
23139
|
// src/utils/private.sort/sort.js
|
|
23105
23140
|
function sortDate(a, b) {
|
|
@@ -23117,11 +23152,11 @@ var useTableSortProps = {
|
|
|
23117
23152
|
}
|
|
23118
23153
|
};
|
|
23119
23154
|
function useTableSort(props4, computedPagination, colList, setPagination) {
|
|
23120
|
-
const columnToSort =
|
|
23155
|
+
const columnToSort = computed98(() => {
|
|
23121
23156
|
const { sortBy } = computedPagination.value;
|
|
23122
23157
|
return sortBy ? colList.value.find((def) => def.name === sortBy) || null : null;
|
|
23123
23158
|
});
|
|
23124
|
-
const computedSortMethod =
|
|
23159
|
+
const computedSortMethod = computed98(() => props4.sortMethod !== void 0 ? props4.sortMethod : (data, sortBy, descending) => {
|
|
23125
23160
|
const col = colList.value.find((def) => def.name === sortBy);
|
|
23126
23161
|
if (col === void 0 || col.field === void 0) {
|
|
23127
23162
|
return data;
|
|
@@ -23196,13 +23231,13 @@ function useTableSort(props4, computedPagination, colList, setPagination) {
|
|
|
23196
23231
|
}
|
|
23197
23232
|
|
|
23198
23233
|
// src/components/table/table-filter.js
|
|
23199
|
-
import { computed as
|
|
23234
|
+
import { computed as computed99, watch as watch41, nextTick as nextTick18 } from "vue";
|
|
23200
23235
|
var useTableFilterProps = {
|
|
23201
23236
|
filter: [String, Object],
|
|
23202
23237
|
filterMethod: Function
|
|
23203
23238
|
};
|
|
23204
23239
|
function useTableFilter(props4, setPagination) {
|
|
23205
|
-
const computedFilterMethod =
|
|
23240
|
+
const computedFilterMethod = computed99(() => props4.filterMethod !== void 0 ? props4.filterMethod : (rows, terms, cols, cellValue) => {
|
|
23206
23241
|
const lowerTerms = terms ? terms.toLowerCase() : "";
|
|
23207
23242
|
return rows.filter(
|
|
23208
23243
|
(row) => cols.some((col) => {
|
|
@@ -23225,7 +23260,7 @@ function useTableFilter(props4, setPagination) {
|
|
|
23225
23260
|
}
|
|
23226
23261
|
|
|
23227
23262
|
// src/components/table/table-pagination.js
|
|
23228
|
-
import { ref as ref60, computed as
|
|
23263
|
+
import { ref as ref60, computed as computed100, watch as watch42, nextTick as nextTick19 } from "vue";
|
|
23229
23264
|
function samePagination(oldPag, newPag) {
|
|
23230
23265
|
for (const prop in newPag) {
|
|
23231
23266
|
if (newPag[prop] !== oldPag[prop]) {
|
|
@@ -23261,11 +23296,11 @@ function useTablePaginationState(vm2, getCellValue) {
|
|
|
23261
23296
|
rowsPerPage: props4.rowsPerPageOptions.length !== 0 ? props4.rowsPerPageOptions[0] : 5
|
|
23262
23297
|
}, props4.pagination)
|
|
23263
23298
|
);
|
|
23264
|
-
const computedPagination =
|
|
23299
|
+
const computedPagination = computed100(() => {
|
|
23265
23300
|
const pag = props4["onUpdate:pagination"] !== void 0 ? { ...innerPagination.value, ...props4.pagination } : innerPagination.value;
|
|
23266
23301
|
return fixPagination(pag);
|
|
23267
23302
|
});
|
|
23268
|
-
const isServerSide =
|
|
23303
|
+
const isServerSide = computed100(() => computedPagination.value.rowsNumber !== void 0);
|
|
23269
23304
|
function sendServerRequest(pagination) {
|
|
23270
23305
|
requestServerInteraction({
|
|
23271
23306
|
pagination,
|
|
@@ -23312,22 +23347,22 @@ function useTablePaginationState(vm2, getCellValue) {
|
|
|
23312
23347
|
}
|
|
23313
23348
|
function useTablePagination(vm2, innerPagination, computedPagination, isServerSide, setPagination, filteredSortedRowsNumber) {
|
|
23314
23349
|
const { props: props4, emit, proxy: { $q } } = vm2;
|
|
23315
|
-
const computedRowsNumber =
|
|
23316
|
-
const firstRowIndex =
|
|
23350
|
+
const computedRowsNumber = computed100(() => isServerSide.value === true ? computedPagination.value.rowsNumber || 0 : filteredSortedRowsNumber.value);
|
|
23351
|
+
const firstRowIndex = computed100(() => {
|
|
23317
23352
|
const { page, rowsPerPage } = computedPagination.value;
|
|
23318
23353
|
return (page - 1) * rowsPerPage;
|
|
23319
23354
|
});
|
|
23320
|
-
const lastRowIndex =
|
|
23355
|
+
const lastRowIndex = computed100(() => {
|
|
23321
23356
|
const { page, rowsPerPage } = computedPagination.value;
|
|
23322
23357
|
return page * rowsPerPage;
|
|
23323
23358
|
});
|
|
23324
|
-
const isFirstPage =
|
|
23325
|
-
const pagesNumber =
|
|
23359
|
+
const isFirstPage = computed100(() => computedPagination.value.page === 1);
|
|
23360
|
+
const pagesNumber = computed100(() => computedPagination.value.rowsPerPage === 0 ? 1 : Math.max(
|
|
23326
23361
|
1,
|
|
23327
23362
|
Math.ceil(computedRowsNumber.value / computedPagination.value.rowsPerPage)
|
|
23328
23363
|
));
|
|
23329
|
-
const isLastPage =
|
|
23330
|
-
const computedRowsPerPageOptions =
|
|
23364
|
+
const isLastPage = computed100(() => lastRowIndex.value === 0 ? true : computedPagination.value.page >= pagesNumber.value);
|
|
23365
|
+
const computedRowsPerPageOptions = computed100(() => {
|
|
23331
23366
|
const opts = props4.rowsPerPageOptions.includes(innerPagination.value.rowsPerPage) ? props4.rowsPerPageOptions : [innerPagination.value.rowsPerPage].concat(props4.rowsPerPageOptions);
|
|
23332
23367
|
return opts.map((count) => ({
|
|
23333
23368
|
label: count === 0 ? $q.lang.table.allRows : "" + count,
|
|
@@ -23380,7 +23415,7 @@ function useTablePagination(vm2, innerPagination, computedPagination, isServerSi
|
|
|
23380
23415
|
}
|
|
23381
23416
|
|
|
23382
23417
|
// src/components/table/table-row-selection.js
|
|
23383
|
-
import { computed as
|
|
23418
|
+
import { computed as computed101 } from "vue";
|
|
23384
23419
|
var useTableRowSelectionProps = {
|
|
23385
23420
|
selection: {
|
|
23386
23421
|
type: String,
|
|
@@ -23394,31 +23429,31 @@ var useTableRowSelectionProps = {
|
|
|
23394
23429
|
};
|
|
23395
23430
|
var useTableRowSelectionEmits = ["update:selected", "selection"];
|
|
23396
23431
|
function useTableRowSelection(props4, emit, computedRows, getRowKey) {
|
|
23397
|
-
const selectedKeys =
|
|
23432
|
+
const selectedKeys = computed101(() => {
|
|
23398
23433
|
const keys = {};
|
|
23399
23434
|
props4.selected.map(getRowKey.value).forEach((key) => {
|
|
23400
23435
|
keys[key] = true;
|
|
23401
23436
|
});
|
|
23402
23437
|
return keys;
|
|
23403
23438
|
});
|
|
23404
|
-
const hasSelectionMode =
|
|
23439
|
+
const hasSelectionMode = computed101(() => {
|
|
23405
23440
|
return props4.selection !== "none";
|
|
23406
23441
|
});
|
|
23407
|
-
const singleSelection =
|
|
23442
|
+
const singleSelection = computed101(() => {
|
|
23408
23443
|
return props4.selection === "single";
|
|
23409
23444
|
});
|
|
23410
|
-
const multipleSelection =
|
|
23445
|
+
const multipleSelection = computed101(() => {
|
|
23411
23446
|
return props4.selection === "multiple";
|
|
23412
23447
|
});
|
|
23413
|
-
const allRowsSelected =
|
|
23448
|
+
const allRowsSelected = computed101(
|
|
23414
23449
|
() => computedRows.value.length !== 0 && computedRows.value.every(
|
|
23415
23450
|
(row) => selectedKeys.value[getRowKey.value(row)] === true
|
|
23416
23451
|
)
|
|
23417
23452
|
);
|
|
23418
|
-
const someRowsSelected =
|
|
23453
|
+
const someRowsSelected = computed101(
|
|
23419
23454
|
() => allRowsSelected.value !== true && computedRows.value.some((row) => selectedKeys.value[getRowKey.value(row)] === true)
|
|
23420
23455
|
);
|
|
23421
|
-
const rowsSelectedNumber =
|
|
23456
|
+
const rowsSelectedNumber = computed101(() => props4.selected.length);
|
|
23422
23457
|
function isRowSelected(key) {
|
|
23423
23458
|
return selectedKeys.value[key] === true;
|
|
23424
23459
|
}
|
|
@@ -23491,12 +23526,12 @@ function useTableRowExpand(props4, emit) {
|
|
|
23491
23526
|
}
|
|
23492
23527
|
|
|
23493
23528
|
// src/components/table/table-column-selection.js
|
|
23494
|
-
import { computed as
|
|
23529
|
+
import { computed as computed102 } from "vue";
|
|
23495
23530
|
var useTableColumnSelectionProps = {
|
|
23496
23531
|
visibleColumns: Array
|
|
23497
23532
|
};
|
|
23498
23533
|
function useTableColumnSelection(props4, computedPagination, hasSelectionMode) {
|
|
23499
|
-
const colList =
|
|
23534
|
+
const colList = computed102(() => {
|
|
23500
23535
|
if (props4.columns !== void 0) {
|
|
23501
23536
|
return props4.columns;
|
|
23502
23537
|
}
|
|
@@ -23509,7 +23544,7 @@ function useTableColumnSelection(props4, computedPagination, hasSelectionMode) {
|
|
|
23509
23544
|
sortable: true
|
|
23510
23545
|
})) : [];
|
|
23511
23546
|
});
|
|
23512
|
-
const computedCols =
|
|
23547
|
+
const computedCols = computed102(() => {
|
|
23513
23548
|
const { sortBy, descending } = computedPagination.value;
|
|
23514
23549
|
const cols = props4.visibleColumns !== void 0 ? colList.value.filter((col) => col.required === true || props4.visibleColumns.includes(col.name) === true) : colList.value;
|
|
23515
23550
|
return cols.map((col) => {
|
|
@@ -23525,14 +23560,14 @@ function useTableColumnSelection(props4, computedPagination, hasSelectionMode) {
|
|
|
23525
23560
|
};
|
|
23526
23561
|
});
|
|
23527
23562
|
});
|
|
23528
|
-
const computedColsMap =
|
|
23563
|
+
const computedColsMap = computed102(() => {
|
|
23529
23564
|
const names = {};
|
|
23530
23565
|
computedCols.value.forEach((col) => {
|
|
23531
23566
|
names[col.name] = col;
|
|
23532
23567
|
});
|
|
23533
23568
|
return names;
|
|
23534
23569
|
});
|
|
23535
|
-
const computedColspan =
|
|
23570
|
+
const computedColspan = computed102(() => {
|
|
23536
23571
|
return props4.tableColspan !== void 0 ? props4.tableColspan : computedCols.value.length + (hasSelectionMode.value === true ? 1 : 0);
|
|
23537
23572
|
});
|
|
23538
23573
|
return {
|
|
@@ -23634,17 +23669,17 @@ var QTable_default = createComponent({
|
|
|
23634
23669
|
const { proxy: { $q } } = vm2;
|
|
23635
23670
|
const isDark = use_dark_default(props4, $q);
|
|
23636
23671
|
const { inFullscreen, toggleFullscreen } = use_fullscreen_default();
|
|
23637
|
-
const getRowKey =
|
|
23672
|
+
const getRowKey = computed103(() => typeof props4.rowKey === "function" ? props4.rowKey : (row) => row[props4.rowKey]);
|
|
23638
23673
|
const rootRef = ref62(null);
|
|
23639
23674
|
const virtScrollRef = ref62(null);
|
|
23640
|
-
const hasVirtScroll =
|
|
23641
|
-
const cardDefaultClass =
|
|
23675
|
+
const hasVirtScroll = computed103(() => props4.grid !== true && props4.virtualScroll === true);
|
|
23676
|
+
const cardDefaultClass = computed103(
|
|
23642
23677
|
() => " q-table__card" + (isDark.value === true ? " q-table__card--dark q-dark" : "") + (props4.square === true ? " q-table--square" : "") + (props4.flat === true ? " q-table--flat" : "") + (props4.bordered === true ? " q-table--bordered" : "")
|
|
23643
23678
|
);
|
|
23644
|
-
const containerClass =
|
|
23679
|
+
const containerClass = computed103(
|
|
23645
23680
|
() => `q-table__container q-table--${props4.separator}-separator column no-wrap` + (props4.grid === true ? " q-table--grid" : cardDefaultClass.value) + (isDark.value === true ? " q-table--dark" : "") + (props4.dense === true ? " q-table--dense" : "") + (props4.wrapCells === false ? " q-table--no-wrap" : "") + (inFullscreen.value === true ? " fullscreen scroll" : "")
|
|
23646
23681
|
);
|
|
23647
|
-
const rootContainerClass =
|
|
23682
|
+
const rootContainerClass = computed103(
|
|
23648
23683
|
() => containerClass.value + (props4.loading === true ? " q-table--loading" : "")
|
|
23649
23684
|
);
|
|
23650
23685
|
watch44(
|
|
@@ -23662,7 +23697,7 @@ var QTable_default = createComponent({
|
|
|
23662
23697
|
} = useTablePaginationState(vm2, getCellValue);
|
|
23663
23698
|
const { computedFilterMethod } = useTableFilter(props4, setPagination);
|
|
23664
23699
|
const { isRowExpanded, setExpanded, updateExpanded } = useTableRowExpand(props4, emit);
|
|
23665
|
-
const filteredSortedRows =
|
|
23700
|
+
const filteredSortedRows = computed103(() => {
|
|
23666
23701
|
let rows = props4.rows;
|
|
23667
23702
|
if (isServerSide.value === true || rows.length === 0) {
|
|
23668
23703
|
return rows;
|
|
@@ -23680,8 +23715,8 @@ var QTable_default = createComponent({
|
|
|
23680
23715
|
}
|
|
23681
23716
|
return rows;
|
|
23682
23717
|
});
|
|
23683
|
-
const filteredSortedRowsNumber =
|
|
23684
|
-
const computedRows =
|
|
23718
|
+
const filteredSortedRowsNumber = computed103(() => filteredSortedRows.value.length);
|
|
23719
|
+
const computedRows = computed103(() => {
|
|
23685
23720
|
let rows = filteredSortedRows.value;
|
|
23686
23721
|
if (isServerSide.value === true) {
|
|
23687
23722
|
return rows;
|
|
@@ -23724,8 +23759,8 @@ var QTable_default = createComponent({
|
|
|
23724
23759
|
nextPage,
|
|
23725
23760
|
lastPage
|
|
23726
23761
|
} = useTablePagination(vm2, innerPagination, computedPagination, isServerSide, setPagination, filteredSortedRowsNumber);
|
|
23727
|
-
const nothingToDisplay =
|
|
23728
|
-
const virtProps =
|
|
23762
|
+
const nothingToDisplay = computed103(() => computedRows.value.length === 0);
|
|
23763
|
+
const virtProps = computed103(() => {
|
|
23729
23764
|
const acc = {};
|
|
23730
23765
|
commonVirtScrollPropsList.forEach((p) => {
|
|
23731
23766
|
acc[p] = props4[p];
|
|
@@ -23951,7 +23986,7 @@ var QTable_default = createComponent({
|
|
|
23951
23986
|
const val = typeof col.field === "function" ? col.field(row) : row[col.field];
|
|
23952
23987
|
return col.format !== void 0 ? col.format(val, row) : val;
|
|
23953
23988
|
}
|
|
23954
|
-
const marginalsScope =
|
|
23989
|
+
const marginalsScope = computed103(() => ({
|
|
23955
23990
|
pagination: computedPagination.value,
|
|
23956
23991
|
pagesNumber: pagesNumber.value,
|
|
23957
23992
|
isFirstPage: isFirstPage.value,
|
|
@@ -24002,7 +24037,7 @@ var QTable_default = createComponent({
|
|
|
24002
24037
|
if (child.length === 0) return;
|
|
24003
24038
|
return h121("div", { class: topClass }, child);
|
|
24004
24039
|
}
|
|
24005
|
-
const headerSelectedValue =
|
|
24040
|
+
const headerSelectedValue = computed103(() => someRowsSelected.value === true ? null : allRowsSelected.value);
|
|
24006
24041
|
function getTHead() {
|
|
24007
24042
|
const child = getTHeadTR();
|
|
24008
24043
|
if (props4.loading === true && slots.loading === void 0) {
|
|
@@ -24086,7 +24121,7 @@ var QTable_default = createComponent({
|
|
|
24086
24121
|
val
|
|
24087
24122
|
);
|
|
24088
24123
|
}
|
|
24089
|
-
const navIcon =
|
|
24124
|
+
const navIcon = computed103(() => {
|
|
24090
24125
|
const ico = [
|
|
24091
24126
|
props4.iconFirstPage || $q.iconSet.table.firstPage,
|
|
24092
24127
|
props4.iconPrevPage || $q.iconSet.table.prevPage,
|
|
@@ -24360,7 +24395,7 @@ var QTable_default = createComponent({
|
|
|
24360
24395
|
});
|
|
24361
24396
|
|
|
24362
24397
|
// src/components/table/QTr.js
|
|
24363
|
-
import { h as h122, computed as
|
|
24398
|
+
import { h as h122, computed as computed104 } from "vue";
|
|
24364
24399
|
var QTr_default = createComponent({
|
|
24365
24400
|
name: "QTr",
|
|
24366
24401
|
props: {
|
|
@@ -24368,7 +24403,7 @@ var QTr_default = createComponent({
|
|
|
24368
24403
|
noHover: Boolean
|
|
24369
24404
|
},
|
|
24370
24405
|
setup(props4, { slots }) {
|
|
24371
|
-
const classes =
|
|
24406
|
+
const classes = computed104(
|
|
24372
24407
|
() => "q-tr" + (props4.props === void 0 || props4.props.header === true ? "" : " " + props4.props.__trClass) + (props4.noHover === true ? " q-tr--no-hover" : "")
|
|
24373
24408
|
);
|
|
24374
24409
|
return () => h122("tr", {
|
|
@@ -24379,7 +24414,7 @@ var QTr_default = createComponent({
|
|
|
24379
24414
|
});
|
|
24380
24415
|
|
|
24381
24416
|
// src/components/table/QTd.js
|
|
24382
|
-
import { h as h123, computed as
|
|
24417
|
+
import { h as h123, computed as computed105, getCurrentInstance as getCurrentInstance79 } from "vue";
|
|
24383
24418
|
var QTd_default = createComponent({
|
|
24384
24419
|
name: "QTd",
|
|
24385
24420
|
props: {
|
|
@@ -24389,7 +24424,7 @@ var QTd_default = createComponent({
|
|
|
24389
24424
|
},
|
|
24390
24425
|
setup(props4, { slots }) {
|
|
24391
24426
|
const vm2 = getCurrentInstance79();
|
|
24392
|
-
const classes =
|
|
24427
|
+
const classes = computed105(
|
|
24393
24428
|
() => "q-td" + (props4.autoWidth === true ? " q-table--col-auto-width" : "") + (props4.noHover === true ? " q-td--no-hover" : "") + " "
|
|
24394
24429
|
);
|
|
24395
24430
|
return () => {
|
|
@@ -24409,7 +24444,7 @@ var QTd_default = createComponent({
|
|
|
24409
24444
|
});
|
|
24410
24445
|
|
|
24411
24446
|
// src/components/tabs/QRouteTab.js
|
|
24412
|
-
import { computed as
|
|
24447
|
+
import { computed as computed106, watch as watch45 } from "vue";
|
|
24413
24448
|
var QRouteTab_default = createComponent({
|
|
24414
24449
|
name: "QRouteTab",
|
|
24415
24450
|
props: {
|
|
@@ -24426,7 +24461,7 @@ var QRouteTab_default = createComponent({
|
|
|
24426
24461
|
slots,
|
|
24427
24462
|
emit,
|
|
24428
24463
|
{
|
|
24429
|
-
exact:
|
|
24464
|
+
exact: computed106(() => props4.exact),
|
|
24430
24465
|
...routeData
|
|
24431
24466
|
}
|
|
24432
24467
|
);
|
|
@@ -24439,7 +24474,7 @@ var QRouteTab_default = createComponent({
|
|
|
24439
24474
|
});
|
|
24440
24475
|
|
|
24441
24476
|
// src/components/time/QTime.js
|
|
24442
|
-
import { h as h124, ref as ref63, computed as
|
|
24477
|
+
import { h as h124, ref as ref63, computed as computed107, watch as watch46, withDirectives as withDirectives9, Transition as Transition13, nextTick as nextTick20, getCurrentInstance as getCurrentInstance80 } from "vue";
|
|
24443
24478
|
function getViewByModel(model, withSeconds) {
|
|
24444
24479
|
if (model.hour !== null) {
|
|
24445
24480
|
if (model.minute === null) {
|
|
@@ -24498,9 +24533,9 @@ var QTime_default = createComponent({
|
|
|
24498
24533
|
const injectFormInput = useFormInject(formAttrs);
|
|
24499
24534
|
let draggingClockRect, dragCache;
|
|
24500
24535
|
const clockRef = ref63(null);
|
|
24501
|
-
const mask =
|
|
24502
|
-
const locale =
|
|
24503
|
-
const defaultDateModel =
|
|
24536
|
+
const mask = computed107(() => getMask());
|
|
24537
|
+
const locale = computed107(() => getLocale2());
|
|
24538
|
+
const defaultDateModel = computed107(() => getDefaultDateModel());
|
|
24504
24539
|
const model = __splitDate(
|
|
24505
24540
|
props4.modelValue,
|
|
24506
24541
|
mask.value,
|
|
@@ -24513,10 +24548,10 @@ var QTime_default = createComponent({
|
|
|
24513
24548
|
const view = ref63(getViewByModel(model));
|
|
24514
24549
|
const innerModel = ref63(model);
|
|
24515
24550
|
const isAM = ref63(model.hour === null || model.hour < 12);
|
|
24516
|
-
const classes =
|
|
24551
|
+
const classes = computed107(
|
|
24517
24552
|
() => `q-time q-time--${props4.landscape === true ? "landscape" : "portrait"}` + (isDark.value === true ? " q-time--dark q-dark" : "") + (props4.disable === true ? " disabled" : props4.readonly === true ? " q-time--readonly" : "") + (props4.bordered === true ? " q-time--bordered" : "") + (props4.square === true ? " q-time--square no-border-radius" : "") + (props4.flat === true ? " q-time--flat no-shadow" : "")
|
|
24518
24553
|
);
|
|
24519
|
-
const stringModel =
|
|
24554
|
+
const stringModel = computed107(() => {
|
|
24520
24555
|
const time = innerModel.value;
|
|
24521
24556
|
return {
|
|
24522
24557
|
hour: time.hour === null ? "--" : computedFormat24h.value === true ? pad(time.hour) : String(
|
|
@@ -24526,8 +24561,8 @@ var QTime_default = createComponent({
|
|
|
24526
24561
|
second: time.second === null ? "--" : pad(time.second)
|
|
24527
24562
|
};
|
|
24528
24563
|
});
|
|
24529
|
-
const computedFormat24h =
|
|
24530
|
-
const pointerStyle =
|
|
24564
|
+
const computedFormat24h = computed107(() => props4.format24h !== null ? props4.format24h : $q.lang.date.format24h);
|
|
24565
|
+
const pointerStyle = computed107(() => {
|
|
24531
24566
|
const forHour = view.value === "hour", divider = forHour === true ? 12 : 60, amount = innerModel.value[view.value], degrees = Math.round(amount * (360 / divider)) - 180;
|
|
24532
24567
|
let transform = `rotate(${degrees}deg) translateX(-50%)`;
|
|
24533
24568
|
if (forHour === true && computedFormat24h.value === true && innerModel.value.hour >= 12) {
|
|
@@ -24535,12 +24570,12 @@ var QTime_default = createComponent({
|
|
|
24535
24570
|
}
|
|
24536
24571
|
return { transform };
|
|
24537
24572
|
});
|
|
24538
|
-
const minLink =
|
|
24539
|
-
const secLink =
|
|
24540
|
-
const hourInSelection =
|
|
24541
|
-
const minuteInSelection =
|
|
24542
|
-
const secondInSelection =
|
|
24543
|
-
const validHours =
|
|
24573
|
+
const minLink = computed107(() => innerModel.value.hour !== null);
|
|
24574
|
+
const secLink = computed107(() => minLink.value === true && innerModel.value.minute !== null);
|
|
24575
|
+
const hourInSelection = computed107(() => props4.hourOptions !== void 0 ? (val) => props4.hourOptions.includes(val) : props4.options !== void 0 ? (val) => props4.options(val, null, null) : null);
|
|
24576
|
+
const minuteInSelection = computed107(() => props4.minuteOptions !== void 0 ? (val) => props4.minuteOptions.includes(val) : props4.options !== void 0 ? (val) => props4.options(innerModel.value.hour, val, null) : null);
|
|
24577
|
+
const secondInSelection = computed107(() => props4.secondOptions !== void 0 ? (val) => props4.secondOptions.includes(val) : props4.options !== void 0 ? (val) => props4.options(innerModel.value.hour, innerModel.value.minute, val) : null);
|
|
24578
|
+
const validHours = computed107(() => {
|
|
24544
24579
|
if (hourInSelection.value === null) {
|
|
24545
24580
|
return null;
|
|
24546
24581
|
}
|
|
@@ -24548,9 +24583,9 @@ var QTime_default = createComponent({
|
|
|
24548
24583
|
const pm = getValidValues(12, 11, hourInSelection.value);
|
|
24549
24584
|
return { am, pm, values: am.values.concat(pm.values) };
|
|
24550
24585
|
});
|
|
24551
|
-
const validMinutes =
|
|
24552
|
-
const validSeconds =
|
|
24553
|
-
const viewValidOptions =
|
|
24586
|
+
const validMinutes = computed107(() => minuteInSelection.value !== null ? getValidValues(0, 59, minuteInSelection.value) : null);
|
|
24587
|
+
const validSeconds = computed107(() => secondInSelection.value !== null ? getValidValues(0, 59, secondInSelection.value) : null);
|
|
24588
|
+
const viewValidOptions = computed107(() => {
|
|
24554
24589
|
switch (view.value) {
|
|
24555
24590
|
case "hour":
|
|
24556
24591
|
return validHours.value;
|
|
@@ -24560,7 +24595,7 @@ var QTime_default = createComponent({
|
|
|
24560
24595
|
return validSeconds.value;
|
|
24561
24596
|
}
|
|
24562
24597
|
});
|
|
24563
|
-
const positions =
|
|
24598
|
+
const positions = computed107(() => {
|
|
24564
24599
|
let start, end, offset2 = 0, step = 1;
|
|
24565
24600
|
const values = viewValidOptions.value !== null ? viewValidOptions.value.values : void 0;
|
|
24566
24601
|
if (view.value === "hour") {
|
|
@@ -24586,7 +24621,7 @@ var QTime_default = createComponent({
|
|
|
24586
24621
|
}
|
|
24587
24622
|
return pos;
|
|
24588
24623
|
});
|
|
24589
|
-
const clockDirectives =
|
|
24624
|
+
const clockDirectives = computed107(() => {
|
|
24590
24625
|
return [[
|
|
24591
24626
|
TouchPan_default,
|
|
24592
24627
|
onPan,
|
|
@@ -25062,7 +25097,7 @@ var QTime_default = createComponent({
|
|
|
25062
25097
|
});
|
|
25063
25098
|
|
|
25064
25099
|
// src/components/timeline/QTimeline.js
|
|
25065
|
-
import { h as h125, computed as
|
|
25100
|
+
import { h as h125, computed as computed108, provide as provide7, getCurrentInstance as getCurrentInstance81 } from "vue";
|
|
25066
25101
|
var QTimeline_default = createComponent({
|
|
25067
25102
|
name: "QTimeline",
|
|
25068
25103
|
props: {
|
|
@@ -25086,7 +25121,7 @@ var QTimeline_default = createComponent({
|
|
|
25086
25121
|
const vm2 = getCurrentInstance81();
|
|
25087
25122
|
const isDark = use_dark_default(props4, vm2.proxy.$q);
|
|
25088
25123
|
provide7(timelineKey, props4);
|
|
25089
|
-
const classes =
|
|
25124
|
+
const classes = computed108(
|
|
25090
25125
|
() => `q-timeline q-timeline--${props4.layout} q-timeline--${props4.layout}--${props4.side}` + (isDark.value === true ? " q-timeline--dark" : "")
|
|
25091
25126
|
);
|
|
25092
25127
|
return () => h125("ul", { class: classes.value }, hSlot(slots.default));
|
|
@@ -25094,7 +25129,7 @@ var QTimeline_default = createComponent({
|
|
|
25094
25129
|
});
|
|
25095
25130
|
|
|
25096
25131
|
// src/components/timeline/QTimelineEntry.js
|
|
25097
|
-
import { h as h126, computed as
|
|
25132
|
+
import { h as h126, computed as computed109, inject as inject11 } from "vue";
|
|
25098
25133
|
var QTimelineEntry_default = createComponent({
|
|
25099
25134
|
name: "QTimelineEntry",
|
|
25100
25135
|
props: {
|
|
@@ -25121,13 +25156,13 @@ var QTimelineEntry_default = createComponent({
|
|
|
25121
25156
|
console.error("QTimelineEntry needs to be child of QTimeline");
|
|
25122
25157
|
return emptyRenderFn;
|
|
25123
25158
|
}
|
|
25124
|
-
const classes =
|
|
25159
|
+
const classes = computed109(
|
|
25125
25160
|
() => `q-timeline__entry q-timeline__entry--${props4.side}` + (props4.icon !== void 0 || props4.avatar !== void 0 ? " q-timeline__entry--icon" : "")
|
|
25126
25161
|
);
|
|
25127
|
-
const dotClass =
|
|
25162
|
+
const dotClass = computed109(
|
|
25128
25163
|
() => `q-timeline__dot text-${props4.color || $timeline.color}`
|
|
25129
25164
|
);
|
|
25130
|
-
const reverse =
|
|
25165
|
+
const reverse = computed109(
|
|
25131
25166
|
() => $timeline.layout === "comfortable" && $timeline.side === "left"
|
|
25132
25167
|
);
|
|
25133
25168
|
return () => {
|
|
@@ -25182,14 +25217,14 @@ var QTimelineEntry_default = createComponent({
|
|
|
25182
25217
|
});
|
|
25183
25218
|
|
|
25184
25219
|
// src/components/toolbar/QToolbar.js
|
|
25185
|
-
import { h as h127, computed as
|
|
25220
|
+
import { h as h127, computed as computed110 } from "vue";
|
|
25186
25221
|
var QToolbar_default = createComponent({
|
|
25187
25222
|
name: "QToolbar",
|
|
25188
25223
|
props: {
|
|
25189
25224
|
inset: Boolean
|
|
25190
25225
|
},
|
|
25191
25226
|
setup(props4, { slots }) {
|
|
25192
|
-
const classes =
|
|
25227
|
+
const classes = computed110(
|
|
25193
25228
|
() => "q-toolbar row no-wrap items-center" + (props4.inset === true ? " q-toolbar--inset" : "")
|
|
25194
25229
|
);
|
|
25195
25230
|
return () => h127("div", { class: classes.value, role: "toolbar" }, hSlot(slots.default));
|
|
@@ -25197,14 +25232,14 @@ var QToolbar_default = createComponent({
|
|
|
25197
25232
|
});
|
|
25198
25233
|
|
|
25199
25234
|
// src/components/toolbar/QToolbarTitle.js
|
|
25200
|
-
import { h as h128, computed as
|
|
25235
|
+
import { h as h128, computed as computed111 } from "vue";
|
|
25201
25236
|
var QToolbarTitle_default = createComponent({
|
|
25202
25237
|
name: "QToolbarTitle",
|
|
25203
25238
|
props: {
|
|
25204
25239
|
shrink: Boolean
|
|
25205
25240
|
},
|
|
25206
25241
|
setup(props4, { slots }) {
|
|
25207
|
-
const classes =
|
|
25242
|
+
const classes = computed111(
|
|
25208
25243
|
() => "q-toolbar__title ellipsis" + (props4.shrink === true ? " col-shrink" : "")
|
|
25209
25244
|
);
|
|
25210
25245
|
return () => h128("div", { class: classes.value }, hSlot(slots.default));
|
|
@@ -25215,7 +25250,7 @@ var QToolbarTitle_default = createComponent({
|
|
|
25215
25250
|
import {
|
|
25216
25251
|
h as h129,
|
|
25217
25252
|
ref as ref64,
|
|
25218
|
-
computed as
|
|
25253
|
+
computed as computed112,
|
|
25219
25254
|
watch as watch47,
|
|
25220
25255
|
withDirectives as withDirectives10,
|
|
25221
25256
|
vShow as vShow2,
|
|
@@ -25291,22 +25326,22 @@ var QTree_default = createComponent({
|
|
|
25291
25326
|
onBeforeUpdate5(() => {
|
|
25292
25327
|
blurTargets = {};
|
|
25293
25328
|
});
|
|
25294
|
-
const classes =
|
|
25329
|
+
const classes = computed112(
|
|
25295
25330
|
() => `q-tree q-tree--${props4.dense === true ? "dense" : "standard"}` + (props4.noConnectors === true ? " q-tree--no-connectors" : "") + (isDark.value === true ? " q-tree--dark" : "") + (props4.color !== void 0 ? ` text-${props4.color}` : "")
|
|
25296
25331
|
);
|
|
25297
|
-
const hasSelection =
|
|
25298
|
-
const computedIcon =
|
|
25299
|
-
const computedControlColor =
|
|
25300
|
-
const textColorClass =
|
|
25301
|
-
const selectedColorClass =
|
|
25332
|
+
const hasSelection = computed112(() => props4.selected !== void 0);
|
|
25333
|
+
const computedIcon = computed112(() => props4.icon || $q.iconSet.tree.icon);
|
|
25334
|
+
const computedControlColor = computed112(() => props4.controlColor || props4.color);
|
|
25335
|
+
const textColorClass = computed112(() => props4.textColor !== void 0 ? ` text-${props4.textColor}` : "");
|
|
25336
|
+
const selectedColorClass = computed112(() => {
|
|
25302
25337
|
const color = props4.selectedColor || props4.color;
|
|
25303
25338
|
return color ? ` text-${color}` : "";
|
|
25304
25339
|
});
|
|
25305
|
-
const computedFilterMethod =
|
|
25340
|
+
const computedFilterMethod = computed112(() => props4.filterMethod !== void 0 ? props4.filterMethod : (node, filter) => {
|
|
25306
25341
|
const filt = filter.toLowerCase();
|
|
25307
25342
|
return node[props4.labelKey] && node[props4.labelKey].toLowerCase().indexOf(filt) !== -1;
|
|
25308
25343
|
});
|
|
25309
|
-
const meta =
|
|
25344
|
+
const meta = computed112(() => {
|
|
25310
25345
|
const meta2 = {};
|
|
25311
25346
|
const travel = (node, parent) => {
|
|
25312
25347
|
const tickStrategy = node.tickStrategy || (parent ? parent.tickStrategy : props4.tickStrategy);
|
|
@@ -25750,7 +25785,7 @@ var QTree_default = createComponent({
|
|
|
25750
25785
|
});
|
|
25751
25786
|
|
|
25752
25787
|
// src/components/uploader/uploader-core.js
|
|
25753
|
-
import { h as h130, ref as ref65, isRef, computed as
|
|
25788
|
+
import { h as h130, ref as ref65, isRef, computed as computed113, watch as watch48, provide as provide8, onBeforeUnmount as onBeforeUnmount37, getCurrentInstance as getCurrentInstance83 } from "vue";
|
|
25754
25789
|
function getProgressLabel(p) {
|
|
25755
25790
|
return (p * 100).toFixed(2) + "%";
|
|
25756
25791
|
}
|
|
@@ -25803,7 +25838,7 @@ function getRenderer(getPlugin, expose) {
|
|
|
25803
25838
|
file.__progressLabel = getProgressLabel(file.__progress);
|
|
25804
25839
|
proxy.$forceUpdate();
|
|
25805
25840
|
}
|
|
25806
|
-
const editable =
|
|
25841
|
+
const editable = computed113(() => props4.disable !== true && props4.readonly !== true);
|
|
25807
25842
|
const dnd = ref65(false);
|
|
25808
25843
|
const rootRef = ref65(null);
|
|
25809
25844
|
const inputRef = ref65(null);
|
|
@@ -25838,20 +25873,20 @@ function getRenderer(getPlugin, expose) {
|
|
|
25838
25873
|
state.isBusy = ref65(false);
|
|
25839
25874
|
}
|
|
25840
25875
|
const uploadSize = ref65(0);
|
|
25841
|
-
const uploadProgress =
|
|
25842
|
-
const uploadProgressLabel =
|
|
25843
|
-
const uploadSizeLabel =
|
|
25844
|
-
const canAddFiles =
|
|
25876
|
+
const uploadProgress = computed113(() => uploadSize.value === 0 ? 0 : state.uploadedSize.value / uploadSize.value);
|
|
25877
|
+
const uploadProgressLabel = computed113(() => getProgressLabel(uploadProgress.value));
|
|
25878
|
+
const uploadSizeLabel = computed113(() => humanStorageSize(uploadSize.value));
|
|
25879
|
+
const canAddFiles = computed113(
|
|
25845
25880
|
() => editable.value === true && state.isUploading.value !== true && (props4.multiple === true || state.queuedFiles.value.length === 0) && (props4.maxFiles === void 0 || state.files.value.length < maxFilesNumber.value) && (props4.maxTotalSize === void 0 || uploadSize.value < maxTotalSizeNumber.value)
|
|
25846
25881
|
);
|
|
25847
|
-
const canUpload =
|
|
25882
|
+
const canUpload = computed113(
|
|
25848
25883
|
() => editable.value === true && state.isBusy.value !== true && state.isUploading.value !== true && state.queuedFiles.value.length !== 0
|
|
25849
25884
|
);
|
|
25850
25885
|
provide8(uploaderKey, renderInput);
|
|
25851
|
-
const classes =
|
|
25886
|
+
const classes = computed113(
|
|
25852
25887
|
() => "q-uploader column no-wrap" + (isDark.value === true ? " q-uploader--dark q-dark" : "") + (props4.bordered === true ? " q-uploader--bordered" : "") + (props4.square === true ? " q-uploader--square no-border-radius" : "") + (props4.flat === true ? " q-uploader--flat no-shadow" : "") + (props4.disable === true ? " disabled q-uploader--disable" : "") + (dnd.value === true ? " q-uploader--dnd" : "")
|
|
25853
25888
|
);
|
|
25854
|
-
const colorClass =
|
|
25889
|
+
const colorClass = computed113(
|
|
25855
25890
|
() => "q-uploader__header" + (props4.color !== void 0 ? ` bg-${props4.color}` : "") + (props4.textColor !== void 0 ? ` text-${props4.textColor}` : "")
|
|
25856
25891
|
);
|
|
25857
25892
|
watch48(state.isUploading, (newVal, oldVal) => {
|
|
@@ -26147,7 +26182,7 @@ var create_uploader_component_default = ({ name: name2, props: props4, emits: em
|
|
|
26147
26182
|
});
|
|
26148
26183
|
|
|
26149
26184
|
// src/components/uploader/xhr-uploader-plugin.js
|
|
26150
|
-
import { ref as ref66, computed as
|
|
26185
|
+
import { ref as ref66, computed as computed114 } from "vue";
|
|
26151
26186
|
function getFn(prop) {
|
|
26152
26187
|
return typeof prop === "function" ? prop : () => prop;
|
|
26153
26188
|
}
|
|
@@ -26174,7 +26209,7 @@ function injectPlugin({ props: props4, emit, helpers }) {
|
|
|
26174
26209
|
const xhrs = ref66([]);
|
|
26175
26210
|
const promises = ref66([]);
|
|
26176
26211
|
const workingThreads = ref66(0);
|
|
26177
|
-
const xhrProps =
|
|
26212
|
+
const xhrProps = computed114(() => ({
|
|
26178
26213
|
url: getFn(props4.url),
|
|
26179
26214
|
method: getFn(props4.method),
|
|
26180
26215
|
headers: getFn(props4.headers),
|
|
@@ -26184,8 +26219,8 @@ function injectPlugin({ props: props4, emit, helpers }) {
|
|
|
26184
26219
|
sendRaw: getFn(props4.sendRaw),
|
|
26185
26220
|
batch: getFn(props4.batch)
|
|
26186
26221
|
}));
|
|
26187
|
-
const isUploading =
|
|
26188
|
-
const isBusy =
|
|
26222
|
+
const isUploading = computed114(() => workingThreads.value > 0);
|
|
26223
|
+
const isBusy = computed114(() => promises.value.length !== 0);
|
|
26189
26224
|
let abortPromises;
|
|
26190
26225
|
function abort() {
|
|
26191
26226
|
xhrs.value.forEach((x) => {
|
|
@@ -26365,7 +26400,7 @@ var QUploaderAddTrigger_default = createComponent({
|
|
|
26365
26400
|
});
|
|
26366
26401
|
|
|
26367
26402
|
// src/components/video/QVideo.js
|
|
26368
|
-
import { h as h131, computed as
|
|
26403
|
+
import { h as h131, computed as computed115 } from "vue";
|
|
26369
26404
|
var QVideo_default = createComponent({
|
|
26370
26405
|
name: "QVideo",
|
|
26371
26406
|
props: {
|
|
@@ -26390,7 +26425,7 @@ var QVideo_default = createComponent({
|
|
|
26390
26425
|
},
|
|
26391
26426
|
setup(props4) {
|
|
26392
26427
|
const ratioStyle = use_ratio_default(props4);
|
|
26393
|
-
const classes =
|
|
26428
|
+
const classes = computed115(
|
|
26394
26429
|
() => "q-video" + (props4.ratio !== void 0 ? " q-video--responsive" : "")
|
|
26395
26430
|
);
|
|
26396
26431
|
return () => h131("div", {
|
|
@@ -28404,7 +28439,7 @@ if (true) {
|
|
|
28404
28439
|
var Cookies_default = Plugin6;
|
|
28405
28440
|
|
|
28406
28441
|
// src/plugins/dialog/component/DialogPluginComponent.js
|
|
28407
|
-
import { h as h134, ref as ref69, computed as
|
|
28442
|
+
import { h as h134, ref as ref69, computed as computed116, watch as watch49, toRaw as toRaw3, getCurrentInstance as getCurrentInstance85 } from "vue";
|
|
28408
28443
|
var DialogPluginComponent_default = createComponent({
|
|
28409
28444
|
name: "DialogPluginComponent",
|
|
28410
28445
|
props: {
|
|
@@ -28439,32 +28474,32 @@ var DialogPluginComponent_default = createComponent({
|
|
|
28439
28474
|
const model = ref69(
|
|
28440
28475
|
props4.prompt !== void 0 ? props4.prompt.model : props4.options !== void 0 ? props4.options.model : void 0
|
|
28441
28476
|
);
|
|
28442
|
-
const classes =
|
|
28477
|
+
const classes = computed116(
|
|
28443
28478
|
() => "q-dialog-plugin" + (isDark.value === true ? " q-dialog-plugin--dark q-dark" : "") + (props4.progress !== false ? " q-dialog-plugin--progress" : "")
|
|
28444
28479
|
);
|
|
28445
|
-
const vmColor =
|
|
28480
|
+
const vmColor = computed116(
|
|
28446
28481
|
() => props4.color || (isDark.value === true ? "amber" : "primary")
|
|
28447
28482
|
);
|
|
28448
|
-
const spinner =
|
|
28483
|
+
const spinner = computed116(() => props4.progress === false ? null : isObject(props4.progress) === true ? {
|
|
28449
28484
|
component: props4.progress.spinner || QSpinner_default,
|
|
28450
28485
|
props: { color: props4.progress.color || vmColor.value }
|
|
28451
28486
|
} : {
|
|
28452
28487
|
component: QSpinner_default,
|
|
28453
28488
|
props: { color: vmColor.value }
|
|
28454
28489
|
});
|
|
28455
|
-
const hasForm =
|
|
28490
|
+
const hasForm = computed116(
|
|
28456
28491
|
() => props4.prompt !== void 0 || props4.options !== void 0
|
|
28457
28492
|
);
|
|
28458
|
-
const formProps =
|
|
28493
|
+
const formProps = computed116(() => {
|
|
28459
28494
|
if (hasForm.value !== true) {
|
|
28460
28495
|
return {};
|
|
28461
28496
|
}
|
|
28462
28497
|
const { model: model2, isValid: isValid2, items, ...formProps2 } = props4.prompt !== void 0 ? props4.prompt : props4.options;
|
|
28463
28498
|
return formProps2;
|
|
28464
28499
|
});
|
|
28465
|
-
const okLabel =
|
|
28466
|
-
const cancelLabel =
|
|
28467
|
-
const okDisabled =
|
|
28500
|
+
const okLabel = computed116(() => isObject(props4.ok) === true ? $q.lang.label.ok : props4.ok === true ? $q.lang.label.ok : props4.ok);
|
|
28501
|
+
const cancelLabel = computed116(() => isObject(props4.cancel) === true ? $q.lang.label.cancel : props4.cancel === true ? $q.lang.label.cancel : props4.cancel);
|
|
28502
|
+
const okDisabled = computed116(() => {
|
|
28468
28503
|
if (props4.prompt !== void 0) {
|
|
28469
28504
|
return props4.prompt.isValid !== void 0 && props4.prompt.isValid(model.value) !== true;
|
|
28470
28505
|
}
|
|
@@ -28473,7 +28508,7 @@ var DialogPluginComponent_default = createComponent({
|
|
|
28473
28508
|
}
|
|
28474
28509
|
return false;
|
|
28475
28510
|
});
|
|
28476
|
-
const okProps =
|
|
28511
|
+
const okProps = computed116(() => ({
|
|
28477
28512
|
color: vmColor.value,
|
|
28478
28513
|
label: okLabel.value,
|
|
28479
28514
|
ripple: false,
|
|
@@ -28482,7 +28517,7 @@ var DialogPluginComponent_default = createComponent({
|
|
|
28482
28517
|
"data-autofocus": props4.focus === "ok" && hasForm.value !== true || void 0,
|
|
28483
28518
|
onClick: onOk
|
|
28484
28519
|
}));
|
|
28485
|
-
const cancelProps =
|
|
28520
|
+
const cancelProps = computed116(() => ({
|
|
28486
28521
|
color: vmColor.value,
|
|
28487
28522
|
label: cancelLabel.value,
|
|
28488
28523
|
ripple: false,
|
|
@@ -29565,7 +29600,7 @@ useDialogPluginComponent.emits = emits2;
|
|
|
29565
29600
|
useDialogPluginComponent.emitsObject = get_emits_object_default(emits2);
|
|
29566
29601
|
|
|
29567
29602
|
// src/composables/use-meta/use-meta.js
|
|
29568
|
-
import { computed as
|
|
29603
|
+
import { computed as computed117, watch as watch50, onActivated as onActivated8, onDeactivated as onDeactivated10, onUnmounted as onUnmounted3, useSSRContext } from "vue";
|
|
29569
29604
|
function use_meta_default(metaOptions) {
|
|
29570
29605
|
if (false) {
|
|
29571
29606
|
const ssrContext = useSSRContext();
|
|
@@ -29575,7 +29610,7 @@ function use_meta_default(metaOptions) {
|
|
|
29575
29610
|
} else {
|
|
29576
29611
|
const meta = { active: true };
|
|
29577
29612
|
if (typeof metaOptions === "function") {
|
|
29578
|
-
const content =
|
|
29613
|
+
const content = computed117(metaOptions);
|
|
29579
29614
|
meta.val = content.value;
|
|
29580
29615
|
watch50(content, (val) => {
|
|
29581
29616
|
meta.val = val;
|
|
@@ -29913,7 +29948,7 @@ function runSequentialPromises(sequentialPromises, { threadsNumber = 1, abortOnF
|
|
|
29913
29948
|
|
|
29914
29949
|
// src/index.dev.js
|
|
29915
29950
|
var Quasar = {
|
|
29916
|
-
version: "2.18.
|
|
29951
|
+
version: "2.18.4",
|
|
29917
29952
|
install: install_quasar_default,
|
|
29918
29953
|
// TODO: remove in Qv3 (should only be used through the plugin)
|
|
29919
29954
|
// We provide a deprecated fallback here
|