quasar 2.18.3 → 2.18.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +1 -1
- package/dist/lang/uz-Latn.umd.prod.js +1 -1
- 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 +408 -381
- package/dist/quasar.css +16 -10
- package/dist/quasar.prod.css +1 -1
- package/dist/quasar.rtl.css +17 -13
- package/dist/quasar.rtl.prod.css +1 -1
- package/dist/quasar.sass +21 -22
- package/dist/quasar.server.prod.cjs +20 -20
- package/dist/quasar.server.prod.js +20 -20
- package/dist/quasar.umd.js +61 -34
- package/dist/quasar.umd.prod.js +25 -25
- 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/package.json +3 -3
- package/src/components/field/QField.sass +21 -22
- package/src/components/input/use-mask.js +46 -13
- package/src/components/input/use-mask.json +55 -4
- package/src/components/pagination/QPagination.js +15 -12
- package/src/composables/private.use-field/use-field.js +6 -6
- 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.5
|
|
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.5",
|
|
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.5" };
|
|
1439
1439
|
if (globalConfigIsFrozen === false) {
|
|
1440
1440
|
if (opts.config !== void 0) {
|
|
1441
1441
|
Object.assign(globalConfig, opts.config);
|
|
@@ -14742,6 +14742,11 @@ function use_field_default(state) {
|
|
|
14742
14742
|
state.getShadowControl()
|
|
14743
14743
|
);
|
|
14744
14744
|
}
|
|
14745
|
+
hasLabel.value === true && node.push(
|
|
14746
|
+
h52("div", {
|
|
14747
|
+
class: labelClass.value
|
|
14748
|
+
}, hSlot(slots.label, props4.label))
|
|
14749
|
+
);
|
|
14745
14750
|
if (state.getControl !== void 0) {
|
|
14746
14751
|
node.push(state.getControl());
|
|
14747
14752
|
} else if (slots.rawControl !== void 0) {
|
|
@@ -14757,11 +14762,6 @@ function use_field_default(state) {
|
|
|
14757
14762
|
}, slots.control(controlSlotScope.value))
|
|
14758
14763
|
);
|
|
14759
14764
|
}
|
|
14760
|
-
hasLabel.value === true && node.push(
|
|
14761
|
-
h52("div", {
|
|
14762
|
-
class: labelClass.value
|
|
14763
|
-
}, hSlot(slots.label, props4.label))
|
|
14764
|
-
);
|
|
14765
14765
|
props4.suffix !== void 0 && props4.suffix !== null && node.push(
|
|
14766
14766
|
h52("div", {
|
|
14767
14767
|
class: "q-field__suffix no-pointer-events row items-center"
|
|
@@ -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) {
|
|
@@ -16681,16 +16710,16 @@ var QInput_default = createComponent({
|
|
|
16681
16710
|
/* type guard */
|
|
16682
16711
|
true
|
|
16683
16712
|
);
|
|
16684
|
-
const hasValue =
|
|
16713
|
+
const hasValue = computed68(() => fieldValueIsFilled(innerValue.value));
|
|
16685
16714
|
const onComposition = use_key_composition_default(onInput);
|
|
16686
16715
|
const state = useFieldState({ changeEvent: true });
|
|
16687
|
-
const isTextarea =
|
|
16716
|
+
const isTextarea = computed68(
|
|
16688
16717
|
() => props4.type === "textarea" || props4.autogrow === true
|
|
16689
16718
|
);
|
|
16690
|
-
const isTypeText =
|
|
16719
|
+
const isTypeText = computed68(
|
|
16691
16720
|
() => isTextarea.value === true || ["text", "search", "url", "tel", "password"].includes(props4.type)
|
|
16692
16721
|
);
|
|
16693
|
-
const onEvents =
|
|
16722
|
+
const onEvents = computed68(() => {
|
|
16694
16723
|
const evt = {
|
|
16695
16724
|
...state.splitAttrs.listeners.value,
|
|
16696
16725
|
onInput,
|
|
@@ -16713,7 +16742,7 @@ var QInput_default = createComponent({
|
|
|
16713
16742
|
}
|
|
16714
16743
|
return evt;
|
|
16715
16744
|
});
|
|
16716
|
-
const inputAttrs =
|
|
16745
|
+
const inputAttrs = computed68(() => {
|
|
16717
16746
|
const attrs2 = {
|
|
16718
16747
|
tabindex: 0,
|
|
16719
16748
|
"data-autofocus": props4.autofocus === true || void 0,
|
|
@@ -16900,16 +16929,16 @@ var QInput_default = createComponent({
|
|
|
16900
16929
|
});
|
|
16901
16930
|
Object.assign(state, {
|
|
16902
16931
|
innerValue,
|
|
16903
|
-
fieldClass:
|
|
16932
|
+
fieldClass: computed68(
|
|
16904
16933
|
() => `q-${isTextarea.value === true ? "textarea" : "input"}` + (props4.autogrow === true ? " q-textarea--autogrow" : "")
|
|
16905
16934
|
),
|
|
16906
|
-
hasShadow:
|
|
16935
|
+
hasShadow: computed68(
|
|
16907
16936
|
() => props4.type !== "file" && typeof props4.shadowText === "string" && props4.shadowText.length !== 0
|
|
16908
16937
|
),
|
|
16909
16938
|
inputRef,
|
|
16910
16939
|
emitValue,
|
|
16911
16940
|
hasValue,
|
|
16912
|
-
floatingLabel:
|
|
16941
|
+
floatingLabel: computed68(
|
|
16913
16942
|
() => hasValue.value === true && (props4.type !== "number" || isNaN(innerValue.value) === false) || fieldValueIsFilled(props4.displayValue)
|
|
16914
16943
|
),
|
|
16915
16944
|
getControl: () => {
|
|
@@ -16947,7 +16976,7 @@ var QInput_default = createComponent({
|
|
|
16947
16976
|
});
|
|
16948
16977
|
|
|
16949
16978
|
// src/components/intersection/QIntersection.js
|
|
16950
|
-
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";
|
|
16951
16980
|
|
|
16952
16981
|
// src/directives/intersection/Intersection.js
|
|
16953
16982
|
var defaultCfg = {
|
|
@@ -17038,7 +17067,7 @@ var QIntersection_default = createComponent({
|
|
|
17038
17067
|
},
|
|
17039
17068
|
setup(props4, { slots, emit }) {
|
|
17040
17069
|
const showing = ref40(isRuntimeSsrPreHydration.value === true ? props4.ssrPrerender : false);
|
|
17041
|
-
const intersectionProps =
|
|
17070
|
+
const intersectionProps = computed69(() => props4.root !== void 0 || props4.margin !== void 0 || props4.threshold !== void 0 ? {
|
|
17042
17071
|
handler: trigger3,
|
|
17043
17072
|
cfg: {
|
|
17044
17073
|
root: props4.root,
|
|
@@ -17046,10 +17075,10 @@ var QIntersection_default = createComponent({
|
|
|
17046
17075
|
threshold: props4.threshold
|
|
17047
17076
|
}
|
|
17048
17077
|
} : trigger3);
|
|
17049
|
-
const hasDirective =
|
|
17078
|
+
const hasDirective = computed69(
|
|
17050
17079
|
() => props4.disable !== true && (isRuntimeSsrPreHydration.value !== true || props4.once !== true || props4.ssrPrerender !== true)
|
|
17051
17080
|
);
|
|
17052
|
-
const directives =
|
|
17081
|
+
const directives = computed69(() => {
|
|
17053
17082
|
return [[
|
|
17054
17083
|
Intersection_default,
|
|
17055
17084
|
intersectionProps.value,
|
|
@@ -17057,7 +17086,7 @@ var QIntersection_default = createComponent({
|
|
|
17057
17086
|
{ once: props4.once }
|
|
17058
17087
|
]];
|
|
17059
17088
|
});
|
|
17060
|
-
const transitionStyle =
|
|
17089
|
+
const transitionStyle = computed69(
|
|
17061
17090
|
() => `--q-transition-duration: ${props4.transitionDuration}ms`
|
|
17062
17091
|
);
|
|
17063
17092
|
function trigger3(entry) {
|
|
@@ -17093,7 +17122,7 @@ var QIntersection_default = createComponent({
|
|
|
17093
17122
|
});
|
|
17094
17123
|
|
|
17095
17124
|
// src/components/item/QList.js
|
|
17096
|
-
import { h as h63, computed as
|
|
17125
|
+
import { h as h63, computed as computed70, getCurrentInstance as getCurrentInstance50 } from "vue";
|
|
17097
17126
|
var roleAttrExceptions = ["ul", "ol"];
|
|
17098
17127
|
var QList_default = createComponent({
|
|
17099
17128
|
name: "QList",
|
|
@@ -17111,10 +17140,10 @@ var QList_default = createComponent({
|
|
|
17111
17140
|
setup(props4, { slots }) {
|
|
17112
17141
|
const vm2 = getCurrentInstance50();
|
|
17113
17142
|
const isDark = use_dark_default(props4, vm2.proxy.$q);
|
|
17114
|
-
const role =
|
|
17143
|
+
const role = computed70(
|
|
17115
17144
|
() => roleAttrExceptions.includes(props4.tag) ? null : "list"
|
|
17116
17145
|
);
|
|
17117
|
-
const classes =
|
|
17146
|
+
const classes = computed70(
|
|
17118
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" : "")
|
|
17119
17148
|
);
|
|
17120
17149
|
return () => h63(props4.tag, { class: classes.value, role: role.value }, hSlot(slots.default));
|
|
@@ -17122,7 +17151,7 @@ var QList_default = createComponent({
|
|
|
17122
17151
|
});
|
|
17123
17152
|
|
|
17124
17153
|
// src/components/knob/QKnob.js
|
|
17125
|
-
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";
|
|
17126
17155
|
var keyCodes2 = [34, 37, 40, 33, 39, 38];
|
|
17127
17156
|
var commonPropsName = Object.keys(useCircularCommonProps);
|
|
17128
17157
|
var QKnob_default = createComponent({
|
|
@@ -17154,8 +17183,8 @@ var QKnob_default = createComponent({
|
|
|
17154
17183
|
const { $q } = proxy;
|
|
17155
17184
|
const model = ref41(props4.modelValue);
|
|
17156
17185
|
const dragging = ref41(false);
|
|
17157
|
-
const innerMin =
|
|
17158
|
-
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);
|
|
17159
17188
|
let centerPosition;
|
|
17160
17189
|
function normalizeModel() {
|
|
17161
17190
|
model.value = props4.modelValue === null ? innerMin.value : between(props4.modelValue, innerMin.value, innerMax.value);
|
|
@@ -17166,21 +17195,21 @@ var QKnob_default = createComponent({
|
|
|
17166
17195
|
normalizeModel
|
|
17167
17196
|
);
|
|
17168
17197
|
normalizeModel();
|
|
17169
|
-
const editable =
|
|
17170
|
-
const classes =
|
|
17198
|
+
const editable = computed71(() => props4.disable === false && props4.readonly === false);
|
|
17199
|
+
const classes = computed71(
|
|
17171
17200
|
() => "q-knob non-selectable" + (editable.value === true ? " q-knob--editable" : props4.disable === true ? " disabled" : "")
|
|
17172
17201
|
);
|
|
17173
|
-
const decimals =
|
|
17174
|
-
const step =
|
|
17175
|
-
const instantFeedback =
|
|
17176
|
-
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 ? {
|
|
17177
17206
|
onMousedown,
|
|
17178
17207
|
onClick,
|
|
17179
17208
|
onKeydown: onKeydown2,
|
|
17180
17209
|
onKeyup: onKeyup2
|
|
17181
17210
|
} : {});
|
|
17182
|
-
const attrs =
|
|
17183
|
-
const circularProps =
|
|
17211
|
+
const attrs = computed71(() => editable.value === true ? { tabindex: props4.tabindex } : { [`aria-${props4.disable === true ? "disabled" : "readonly"}`]: "true" });
|
|
17212
|
+
const circularProps = computed71(() => {
|
|
17184
17213
|
const agg = {};
|
|
17185
17214
|
commonPropsName.forEach((name2) => {
|
|
17186
17215
|
agg[name2] = props4[name2];
|
|
@@ -17199,7 +17228,7 @@ var QKnob_default = createComponent({
|
|
|
17199
17228
|
updatePosition(event.evt);
|
|
17200
17229
|
}
|
|
17201
17230
|
}
|
|
17202
|
-
const directives =
|
|
17231
|
+
const directives = computed71(() => {
|
|
17203
17232
|
return [[
|
|
17204
17233
|
TouchPan_default,
|
|
17205
17234
|
pan,
|
|
@@ -17309,7 +17338,7 @@ var QKnob_default = createComponent({
|
|
|
17309
17338
|
});
|
|
17310
17339
|
|
|
17311
17340
|
// src/components/layout/QLayout.js
|
|
17312
|
-
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";
|
|
17313
17342
|
|
|
17314
17343
|
// src/components/scroll-observer/QScrollObserver.js
|
|
17315
17344
|
import { watch as watch28, onMounted as onMounted19, onBeforeUnmount as onBeforeUnmount28, getCurrentInstance as getCurrentInstance52 } from "vue";
|
|
@@ -17430,12 +17459,12 @@ var QLayout_default = createComponent({
|
|
|
17430
17459
|
const scroll = ref42({ position: 0, direction: "down", inflectionPoint: 0 });
|
|
17431
17460
|
const containerHeight = ref42(0);
|
|
17432
17461
|
const scrollbarWidth = ref42(isRuntimeSsrPreHydration.value === true ? 0 : getScrollbarWidth());
|
|
17433
|
-
const classes =
|
|
17462
|
+
const classes = computed72(
|
|
17434
17463
|
() => "q-layout q-layout--" + (props4.container === true ? "containerized" : "standard")
|
|
17435
17464
|
);
|
|
17436
|
-
const style2 =
|
|
17437
|
-
const targetStyle =
|
|
17438
|
-
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 ? {
|
|
17439
17468
|
[$q.lang.rtl === true ? "right" : "left"]: 0,
|
|
17440
17469
|
[$q.lang.rtl === true ? "left" : "right"]: `-${scrollbarWidth.value}px`,
|
|
17441
17470
|
width: `calc(100% + ${scrollbarWidth.value}px)`
|
|
@@ -17487,14 +17516,14 @@ var QLayout_default = createComponent({
|
|
|
17487
17516
|
let animateTimer = null;
|
|
17488
17517
|
const $layout = {
|
|
17489
17518
|
instances: {},
|
|
17490
|
-
view:
|
|
17491
|
-
isContainer:
|
|
17519
|
+
view: computed72(() => props4.view),
|
|
17520
|
+
isContainer: computed72(() => props4.container),
|
|
17492
17521
|
rootRef,
|
|
17493
17522
|
height: height2,
|
|
17494
17523
|
containerHeight,
|
|
17495
17524
|
scrollbarWidth,
|
|
17496
|
-
totalWidth:
|
|
17497
|
-
rows:
|
|
17525
|
+
totalWidth: computed72(() => width3.value + scrollbarWidth.value),
|
|
17526
|
+
rows: computed72(() => {
|
|
17498
17527
|
const rows = props4.view.toLowerCase().split(" ");
|
|
17499
17528
|
return {
|
|
17500
17529
|
top: rows[0].split(""),
|
|
@@ -17587,7 +17616,7 @@ var QLayout_default = createComponent({
|
|
|
17587
17616
|
});
|
|
17588
17617
|
|
|
17589
17618
|
// src/components/markup-table/QMarkupTable.js
|
|
17590
|
-
import { h as h66, computed as
|
|
17619
|
+
import { h as h66, computed as computed73, getCurrentInstance as getCurrentInstance54 } from "vue";
|
|
17591
17620
|
var separatorValues = ["horizontal", "vertical", "cell", "none"];
|
|
17592
17621
|
var QMarkupTable_default = createComponent({
|
|
17593
17622
|
name: "QMarkupTable",
|
|
@@ -17607,7 +17636,7 @@ var QMarkupTable_default = createComponent({
|
|
|
17607
17636
|
setup(props4, { slots }) {
|
|
17608
17637
|
const vm2 = getCurrentInstance54();
|
|
17609
17638
|
const isDark = use_dark_default(props4, vm2.proxy.$q);
|
|
17610
|
-
const classes =
|
|
17639
|
+
const classes = computed73(
|
|
17611
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" : "")
|
|
17612
17641
|
);
|
|
17613
17642
|
return () => h66("div", {
|
|
@@ -17651,10 +17680,10 @@ var QNoSsr_default = createComponent({
|
|
|
17651
17680
|
});
|
|
17652
17681
|
|
|
17653
17682
|
// src/components/option-group/QOptionGroup.js
|
|
17654
|
-
import { h as h70, computed as
|
|
17683
|
+
import { h as h70, computed as computed76, getCurrentInstance as getCurrentInstance56 } from "vue";
|
|
17655
17684
|
|
|
17656
17685
|
// src/components/radio/QRadio.js
|
|
17657
|
-
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";
|
|
17658
17687
|
var createSvg = () => h68("svg", {
|
|
17659
17688
|
key: "svg",
|
|
17660
17689
|
class: "q-radio__bg absolute non-selectable",
|
|
@@ -17693,19 +17722,19 @@ var QRadio_default = createComponent({
|
|
|
17693
17722
|
const sizeStyle = use_size_default(props4, option_sizes_default);
|
|
17694
17723
|
const rootRef = ref43(null);
|
|
17695
17724
|
const { refocusTargetEl, refocusTarget } = use_refocus_target_default(props4, rootRef);
|
|
17696
|
-
const isTrue =
|
|
17697
|
-
const classes =
|
|
17725
|
+
const isTrue = computed74(() => toRaw2(props4.modelValue) === toRaw2(props4.val));
|
|
17726
|
+
const classes = computed74(
|
|
17698
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" : "")
|
|
17699
17728
|
);
|
|
17700
|
-
const innerClass =
|
|
17729
|
+
const innerClass = computed74(() => {
|
|
17701
17730
|
const color = props4.color !== void 0 && (props4.keepColor === true || isTrue.value === true) ? ` text-${props4.color}` : "";
|
|
17702
17731
|
return `q-radio__inner relative-position q-radio__inner--${isTrue.value === true ? "truthy" : "falsy"}${color}`;
|
|
17703
17732
|
});
|
|
17704
|
-
const icon =
|
|
17733
|
+
const icon = computed74(
|
|
17705
17734
|
() => (isTrue.value === true ? props4.checkedIcon : props4.uncheckedIcon) || null
|
|
17706
17735
|
);
|
|
17707
|
-
const tabindex =
|
|
17708
|
-
const formAttrs =
|
|
17736
|
+
const tabindex = computed74(() => props4.disable === true ? -1 : props4.tabindex || 0);
|
|
17737
|
+
const formAttrs = computed74(() => {
|
|
17709
17738
|
const prop = { type: "radio" };
|
|
17710
17739
|
props4.name !== void 0 && Object.assign(prop, {
|
|
17711
17740
|
// see https://vuejs.org/guide/extras/render-function.html#creating-vnodes (.prop)
|
|
@@ -17788,7 +17817,7 @@ var QRadio_default = createComponent({
|
|
|
17788
17817
|
});
|
|
17789
17818
|
|
|
17790
17819
|
// src/components/toggle/QToggle.js
|
|
17791
|
-
import { h as h69, computed as
|
|
17820
|
+
import { h as h69, computed as computed75 } from "vue";
|
|
17792
17821
|
var QToggle_default = createComponent({
|
|
17793
17822
|
name: "QToggle",
|
|
17794
17823
|
props: {
|
|
@@ -17799,10 +17828,10 @@ var QToggle_default = createComponent({
|
|
|
17799
17828
|
emits: useCheckboxEmits,
|
|
17800
17829
|
setup(props4) {
|
|
17801
17830
|
function getInner(isTrue, isIndeterminate) {
|
|
17802
|
-
const icon =
|
|
17831
|
+
const icon = computed75(
|
|
17803
17832
|
() => (isTrue.value === true ? props4.checkedIcon : isIndeterminate.value === true ? props4.indeterminateIcon : props4.uncheckedIcon) || props4.icon
|
|
17804
17833
|
);
|
|
17805
|
-
const color =
|
|
17834
|
+
const color = computed75(() => isTrue.value === true ? props4.iconColor : null);
|
|
17806
17835
|
return () => [
|
|
17807
17836
|
h69("div", { class: "q-toggle__track" }),
|
|
17808
17837
|
h69(
|
|
@@ -17876,11 +17905,11 @@ var QOptionGroup_default = createComponent({
|
|
|
17876
17905
|
console.error("q-option-group: model should be array in your case");
|
|
17877
17906
|
}
|
|
17878
17907
|
const isDark = use_dark_default(props4, $q);
|
|
17879
|
-
const component =
|
|
17880
|
-
const getOptionValue =
|
|
17881
|
-
const getOptionLabel =
|
|
17882
|
-
const getOptionDisable =
|
|
17883
|
-
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) => ({
|
|
17884
17913
|
val: getOptionValue.value(opt),
|
|
17885
17914
|
name: opt.name === void 0 ? props4.name : opt.name,
|
|
17886
17915
|
disable: props4.disable || getOptionDisable.value(opt),
|
|
@@ -17893,10 +17922,10 @@ var QOptionGroup_default = createComponent({
|
|
|
17893
17922
|
dense: props4.dense,
|
|
17894
17923
|
keepColor: opt.keepColor === void 0 ? props4.keepColor : opt.keepColor
|
|
17895
17924
|
})));
|
|
17896
|
-
const classes =
|
|
17925
|
+
const classes = computed76(
|
|
17897
17926
|
() => "q-option-group q-gutter-x-sm" + (props4.inline === true ? " q-option-group--inline" : "")
|
|
17898
17927
|
);
|
|
17899
|
-
const attrs =
|
|
17928
|
+
const attrs = computed76(() => {
|
|
17900
17929
|
const attrs2 = { role: "group" };
|
|
17901
17930
|
if (props4.type === "radio") {
|
|
17902
17931
|
attrs2.role = "radiogroup";
|
|
@@ -17927,7 +17956,7 @@ var QOptionGroup_default = createComponent({
|
|
|
17927
17956
|
});
|
|
17928
17957
|
|
|
17929
17958
|
// src/components/page/QPage.js
|
|
17930
|
-
import { h as h71, computed as
|
|
17959
|
+
import { h as h71, computed as computed77, inject as inject7, getCurrentInstance as getCurrentInstance57 } from "vue";
|
|
17931
17960
|
var QPage_default = createComponent({
|
|
17932
17961
|
name: "QPage",
|
|
17933
17962
|
props: {
|
|
@@ -17946,7 +17975,7 @@ var QPage_default = createComponent({
|
|
|
17946
17975
|
console.error("QPage needs to be child of QPageContainer");
|
|
17947
17976
|
return emptyRenderFn;
|
|
17948
17977
|
}
|
|
17949
|
-
const style2 =
|
|
17978
|
+
const style2 = computed77(() => {
|
|
17950
17979
|
const offset2 = ($layout.header.space === true ? $layout.header.size : 0) + ($layout.footer.space === true ? $layout.footer.size : 0);
|
|
17951
17980
|
if (typeof props4.styleFn === "function") {
|
|
17952
17981
|
const height2 = $layout.isContainer.value === true ? $layout.containerHeight.value : $q.screen.height;
|
|
@@ -17956,7 +17985,7 @@ var QPage_default = createComponent({
|
|
|
17956
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"
|
|
17957
17986
|
};
|
|
17958
17987
|
});
|
|
17959
|
-
const classes =
|
|
17988
|
+
const classes = computed77(
|
|
17960
17989
|
() => `q-page${props4.padding === true ? " q-layout-padding" : ""}`
|
|
17961
17990
|
);
|
|
17962
17991
|
return () => h71("main", {
|
|
@@ -17967,7 +17996,7 @@ var QPage_default = createComponent({
|
|
|
17967
17996
|
});
|
|
17968
17997
|
|
|
17969
17998
|
// src/components/page/QPageContainer.js
|
|
17970
|
-
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";
|
|
17971
18000
|
var QPageContainer_default = createComponent({
|
|
17972
18001
|
name: "QPageContainer",
|
|
17973
18002
|
setup(_, { slots }) {
|
|
@@ -17978,7 +18007,7 @@ var QPageContainer_default = createComponent({
|
|
|
17978
18007
|
return emptyRenderFn;
|
|
17979
18008
|
}
|
|
17980
18009
|
provide5(pageContainerKey, true);
|
|
17981
|
-
const style2 =
|
|
18010
|
+
const style2 = computed78(() => {
|
|
17982
18011
|
const css2 = {};
|
|
17983
18012
|
if ($layout.header.space === true) {
|
|
17984
18013
|
css2.paddingTop = `${$layout.header.size}px`;
|
|
@@ -18002,10 +18031,10 @@ var QPageContainer_default = createComponent({
|
|
|
18002
18031
|
});
|
|
18003
18032
|
|
|
18004
18033
|
// src/components/page-scroller/QPageScroller.js
|
|
18005
|
-
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";
|
|
18006
18035
|
|
|
18007
18036
|
// src/components/page-sticky/use-page-sticky.js
|
|
18008
|
-
import { h as h73, computed as
|
|
18037
|
+
import { h as h73, computed as computed79, inject as inject9, getCurrentInstance as getCurrentInstance59 } from "vue";
|
|
18009
18038
|
var usePageStickyProps = {
|
|
18010
18039
|
position: {
|
|
18011
18040
|
type: String,
|
|
@@ -18034,7 +18063,7 @@ function use_page_sticky_default() {
|
|
|
18034
18063
|
console.error("QPageSticky needs to be child of QLayout");
|
|
18035
18064
|
return emptyRenderFn;
|
|
18036
18065
|
}
|
|
18037
|
-
const attach =
|
|
18066
|
+
const attach = computed79(() => {
|
|
18038
18067
|
const pos = props4.position;
|
|
18039
18068
|
return {
|
|
18040
18069
|
top: pos.indexOf("top") !== -1,
|
|
@@ -18045,11 +18074,11 @@ function use_page_sticky_default() {
|
|
|
18045
18074
|
horizontal: pos === "left" || pos === "right"
|
|
18046
18075
|
};
|
|
18047
18076
|
});
|
|
18048
|
-
const top =
|
|
18049
|
-
const right =
|
|
18050
|
-
const bottom =
|
|
18051
|
-
const left =
|
|
18052
|
-
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(() => {
|
|
18053
18082
|
let posX = 0, posY = 0;
|
|
18054
18083
|
const side = attach.value;
|
|
18055
18084
|
const dir = $q.lang.rtl === true ? -1 : 1;
|
|
@@ -18084,7 +18113,7 @@ function use_page_sticky_default() {
|
|
|
18084
18113
|
}
|
|
18085
18114
|
return css2;
|
|
18086
18115
|
});
|
|
18087
|
-
const classes =
|
|
18116
|
+
const classes = computed79(
|
|
18088
18117
|
() => `q-page-sticky row flex-center fixed-${props4.position} q-page-sticky--${props4.expand === true ? "expand" : "shrink"}`
|
|
18089
18118
|
);
|
|
18090
18119
|
function getStickyContent(slots) {
|
|
@@ -18129,7 +18158,7 @@ var QPageScroller_default = createComponent({
|
|
|
18129
18158
|
const { $layout, getStickyContent } = use_page_sticky_default();
|
|
18130
18159
|
const rootRef = ref44(null);
|
|
18131
18160
|
let heightWatcher;
|
|
18132
|
-
const scrollHeight =
|
|
18161
|
+
const scrollHeight = computed80(() => $layout.height.value - ($layout.isContainer.value === true ? $layout.containerHeight.value : $q.screen.height));
|
|
18133
18162
|
function isVisible() {
|
|
18134
18163
|
return props4.reverse === true ? scrollHeight.value - $layout.scroll.value.position > props4.scrollOffset : $layout.scroll.value.position > props4.scrollOffset;
|
|
18135
18164
|
}
|
|
@@ -18196,7 +18225,7 @@ var QPageSticky_default = createComponent({
|
|
|
18196
18225
|
});
|
|
18197
18226
|
|
|
18198
18227
|
// src/components/pagination/QPagination.js
|
|
18199
|
-
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";
|
|
18200
18229
|
function getBool(val, otherwise) {
|
|
18201
18230
|
return [true, false].includes(val) ? val : otherwise;
|
|
18202
18231
|
}
|
|
@@ -18281,16 +18310,16 @@ var QPagination_default = createComponent({
|
|
|
18281
18310
|
const { proxy } = getCurrentInstance61();
|
|
18282
18311
|
const { $q } = proxy;
|
|
18283
18312
|
const isDark = use_dark_default(props4, $q);
|
|
18284
|
-
const minProp =
|
|
18285
|
-
const maxProp =
|
|
18286
|
-
const maxPagesProp =
|
|
18287
|
-
const inputPlaceholder =
|
|
18288
|
-
const boundaryLinksProp =
|
|
18289
|
-
const boundaryNumbersProp =
|
|
18290
|
-
const directionLinksProp =
|
|
18291
|
-
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));
|
|
18292
18321
|
const newPage = ref45(null);
|
|
18293
|
-
const model =
|
|
18322
|
+
const model = computed81({
|
|
18294
18323
|
get: () => props4.modelValue,
|
|
18295
18324
|
set: (val) => {
|
|
18296
18325
|
val = parseInt(val, 10);
|
|
@@ -18304,12 +18333,12 @@ var QPagination_default = createComponent({
|
|
|
18304
18333
|
watch31(() => `${minProp.value}|${maxProp.value}`, () => {
|
|
18305
18334
|
model.value = props4.modelValue;
|
|
18306
18335
|
});
|
|
18307
|
-
const classes =
|
|
18336
|
+
const classes = computed81(
|
|
18308
18337
|
() => "q-pagination row no-wrap items-center" + (props4.disable === true ? " disabled" : "")
|
|
18309
18338
|
);
|
|
18310
|
-
const gutterProp =
|
|
18311
|
-
const gutterStyle =
|
|
18312
|
-
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(() => {
|
|
18313
18342
|
const ico = [
|
|
18314
18343
|
props4.iconFirst || $q.iconSet.pagination.first,
|
|
18315
18344
|
props4.iconPrev || $q.iconSet.pagination.prev,
|
|
@@ -18318,12 +18347,12 @@ var QPagination_default = createComponent({
|
|
|
18318
18347
|
];
|
|
18319
18348
|
return $q.lang.rtl === true ? ico.reverse() : ico;
|
|
18320
18349
|
});
|
|
18321
|
-
const attrs =
|
|
18350
|
+
const attrs = computed81(() => ({
|
|
18322
18351
|
"aria-disabled": props4.disable === true ? "true" : "false",
|
|
18323
18352
|
role: "navigation"
|
|
18324
18353
|
}));
|
|
18325
|
-
const btnDesignProp =
|
|
18326
|
-
const btnProps =
|
|
18354
|
+
const btnDesignProp = computed81(() => getBtnDesign(props4, "flat"));
|
|
18355
|
+
const btnProps = computed81(() => ({
|
|
18327
18356
|
[btnDesignProp.value]: true,
|
|
18328
18357
|
round: props4.round,
|
|
18329
18358
|
rounded: props4.rounded,
|
|
@@ -18333,19 +18362,19 @@ var QPagination_default = createComponent({
|
|
|
18333
18362
|
size: props4.size,
|
|
18334
18363
|
ripple: props4.ripple !== null ? props4.ripple : true
|
|
18335
18364
|
}));
|
|
18336
|
-
const btnActiveDesignProp =
|
|
18365
|
+
const btnActiveDesignProp = computed81(() => {
|
|
18337
18366
|
const acc = { [btnDesignProp.value]: false };
|
|
18338
18367
|
if (props4.activeDesign !== "") {
|
|
18339
18368
|
acc[props4.activeDesign] = true;
|
|
18340
18369
|
}
|
|
18341
18370
|
return acc;
|
|
18342
18371
|
});
|
|
18343
|
-
const activeBtnProps =
|
|
18372
|
+
const activeBtnProps = computed81(() => ({
|
|
18344
18373
|
...btnActiveDesignProp.value,
|
|
18345
18374
|
color: props4.activeColor || props4.color,
|
|
18346
18375
|
textColor: props4.activeTextColor || props4.textColor
|
|
18347
18376
|
}));
|
|
18348
|
-
const btnConfig =
|
|
18377
|
+
const btnConfig = computed81(() => {
|
|
18349
18378
|
let maxPages = Math.max(
|
|
18350
18379
|
maxPagesProp.value,
|
|
18351
18380
|
1 + (ellipsesProp.value ? 2 : 0) + (boundaryNumbersProp.value ? 2 : 0)
|
|
@@ -18390,21 +18419,17 @@ var QPagination_default = createComponent({
|
|
|
18390
18419
|
function setByOffset(offset2) {
|
|
18391
18420
|
model.value = model.value + offset2;
|
|
18392
18421
|
}
|
|
18393
|
-
|
|
18394
|
-
|
|
18395
|
-
|
|
18396
|
-
|
|
18397
|
-
|
|
18398
|
-
|
|
18399
|
-
|
|
18400
|
-
|
|
18401
|
-
|
|
18402
|
-
|
|
18403
|
-
|
|
18404
|
-
},
|
|
18405
|
-
onBlur: updateModel2
|
|
18406
|
-
};
|
|
18407
|
-
});
|
|
18422
|
+
function updateModel2() {
|
|
18423
|
+
model.value = newPage.value;
|
|
18424
|
+
newPage.value = null;
|
|
18425
|
+
$q.platform.is.mobile === true && document.activeElement.blur();
|
|
18426
|
+
}
|
|
18427
|
+
function onInputValue(val) {
|
|
18428
|
+
newPage.value = val;
|
|
18429
|
+
}
|
|
18430
|
+
function onKeyup2(e) {
|
|
18431
|
+
isKeyCode(e, 13) === true && updateModel2();
|
|
18432
|
+
}
|
|
18408
18433
|
function getBtn2(cfg, page, active) {
|
|
18409
18434
|
const data = {
|
|
18410
18435
|
"aria-label": page,
|
|
@@ -18551,7 +18576,9 @@ var QPagination_default = createComponent({
|
|
|
18551
18576
|
placeholder: inputPlaceholder.value,
|
|
18552
18577
|
min: minProp.value,
|
|
18553
18578
|
max: maxProp.value,
|
|
18554
|
-
|
|
18579
|
+
"onUpdate:modelValue": onInputValue,
|
|
18580
|
+
onKeyup: onKeyup2,
|
|
18581
|
+
onBlur: updateModel2
|
|
18555
18582
|
}) : h75("div", {
|
|
18556
18583
|
class: "q-pagination__middle row justify-center"
|
|
18557
18584
|
}, contentMiddle),
|
|
@@ -18714,7 +18741,7 @@ var QParallax_default = createComponent({
|
|
|
18714
18741
|
});
|
|
18715
18742
|
|
|
18716
18743
|
// src/components/popup-edit/QPopupEdit.js
|
|
18717
|
-
import { h as h77, ref as ref47, computed as
|
|
18744
|
+
import { h as h77, ref as ref47, computed as computed82, nextTick as nextTick14, getCurrentInstance as getCurrentInstance62 } from "vue";
|
|
18718
18745
|
|
|
18719
18746
|
// src/utils/clone/clone.js
|
|
18720
18747
|
function cloneDeep(data, hash = /* @__PURE__ */ new WeakMap()) {
|
|
@@ -18789,7 +18816,7 @@ var QPopupEdit_default = createComponent({
|
|
|
18789
18816
|
const initialValue = ref47("");
|
|
18790
18817
|
const currentModel = ref47("");
|
|
18791
18818
|
let validated = false;
|
|
18792
|
-
const scope =
|
|
18819
|
+
const scope = computed82(() => {
|
|
18793
18820
|
return injectProp({
|
|
18794
18821
|
initialValue: initialValue.value,
|
|
18795
18822
|
validate: props4.validate,
|
|
@@ -18900,7 +18927,7 @@ var QPopupEdit_default = createComponent({
|
|
|
18900
18927
|
});
|
|
18901
18928
|
|
|
18902
18929
|
// src/components/popup-proxy/QPopupProxy.js
|
|
18903
|
-
import { h as h78, ref as ref48, computed as
|
|
18930
|
+
import { h as h78, ref as ref48, computed as computed83, watch as watch33, getCurrentInstance as getCurrentInstance63 } from "vue";
|
|
18904
18931
|
var QPopupProxy_default = createComponent({
|
|
18905
18932
|
name: "QPopupProxy",
|
|
18906
18933
|
props: {
|
|
@@ -18916,13 +18943,13 @@ var QPopupProxy_default = createComponent({
|
|
|
18916
18943
|
const { $q } = proxy;
|
|
18917
18944
|
const showing = ref48(false);
|
|
18918
18945
|
const popupRef = ref48(null);
|
|
18919
|
-
const breakpoint =
|
|
18946
|
+
const breakpoint = computed83(() => parseInt(props4.breakpoint, 10));
|
|
18920
18947
|
const { canShow } = use_anchor_default({ showing });
|
|
18921
18948
|
function getType() {
|
|
18922
18949
|
return $q.screen.width < breakpoint.value || $q.screen.height < breakpoint.value ? "dialog" : "menu";
|
|
18923
18950
|
}
|
|
18924
18951
|
const type = ref48(getType());
|
|
18925
|
-
const popupProps =
|
|
18952
|
+
const popupProps = computed83(
|
|
18926
18953
|
() => type.value === "menu" ? { maxHeight: "99vh" } : {}
|
|
18927
18954
|
);
|
|
18928
18955
|
watch33(() => getType(), (val) => {
|
|
@@ -18980,7 +19007,7 @@ var QPopupProxy_default = createComponent({
|
|
|
18980
19007
|
});
|
|
18981
19008
|
|
|
18982
19009
|
// src/components/linear-progress/QLinearProgress.js
|
|
18983
|
-
import { h as h79, computed as
|
|
19010
|
+
import { h as h79, computed as computed84, getCurrentInstance as getCurrentInstance64 } from "vue";
|
|
18984
19011
|
var defaultSizes3 = {
|
|
18985
19012
|
xs: 2,
|
|
18986
19013
|
sm: 4,
|
|
@@ -19020,26 +19047,26 @@ var QLinearProgress_default = createComponent({
|
|
|
19020
19047
|
const { proxy } = getCurrentInstance64();
|
|
19021
19048
|
const isDark = use_dark_default(props4, proxy.$q);
|
|
19022
19049
|
const sizeStyle = use_size_default(props4, defaultSizes3);
|
|
19023
|
-
const motion =
|
|
19024
|
-
const widthReverse =
|
|
19025
|
-
const style2 =
|
|
19050
|
+
const motion = computed84(() => props4.indeterminate === true || props4.query === true);
|
|
19051
|
+
const widthReverse = computed84(() => props4.reverse !== props4.query);
|
|
19052
|
+
const style2 = computed84(() => ({
|
|
19026
19053
|
...sizeStyle.value !== null ? sizeStyle.value : {},
|
|
19027
19054
|
"--q-linear-progress-speed": `${props4.animationSpeed}ms`
|
|
19028
19055
|
}));
|
|
19029
|
-
const classes =
|
|
19056
|
+
const classes = computed84(
|
|
19030
19057
|
() => "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" : "")
|
|
19031
19058
|
);
|
|
19032
|
-
const trackStyle =
|
|
19033
|
-
const transitionSuffix =
|
|
19034
|
-
const trackClass =
|
|
19059
|
+
const trackStyle = computed84(() => width2(props4.buffer !== void 0 ? props4.buffer : 1, widthReverse.value, proxy.$q));
|
|
19060
|
+
const transitionSuffix = computed84(() => `with${props4.instantFeedback === true ? "out" : ""}-transition`);
|
|
19061
|
+
const trackClass = computed84(
|
|
19035
19062
|
() => `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}` : "")
|
|
19036
19063
|
);
|
|
19037
|
-
const modelStyle =
|
|
19038
|
-
const modelClass =
|
|
19064
|
+
const modelStyle = computed84(() => width2(motion.value === true ? 1 : props4.value, widthReverse.value, proxy.$q));
|
|
19065
|
+
const modelClass = computed84(
|
|
19039
19066
|
() => `q-linear-progress__model absolute-full q-linear-progress__model--${transitionSuffix.value} q-linear-progress__model--${motion.value === true ? "in" : ""}determinate`
|
|
19040
19067
|
);
|
|
19041
|
-
const stripeStyle =
|
|
19042
|
-
const stripeClass =
|
|
19068
|
+
const stripeStyle = computed84(() => ({ width: `${props4.value * 100}%` }));
|
|
19069
|
+
const stripeClass = computed84(
|
|
19043
19070
|
() => `q-linear-progress__stripe absolute-${props4.reverse === true ? "right" : "left"} q-linear-progress__stripe--${transitionSuffix.value}`
|
|
19044
19071
|
);
|
|
19045
19072
|
return () => {
|
|
@@ -19072,7 +19099,7 @@ var QLinearProgress_default = createComponent({
|
|
|
19072
19099
|
});
|
|
19073
19100
|
|
|
19074
19101
|
// src/components/pull-to-refresh/QPullToRefresh.js
|
|
19075
|
-
import { h as h80, ref as ref49, computed as
|
|
19102
|
+
import { h as h80, ref as ref49, computed as computed85, watch as watch34, onMounted as onMounted21, onBeforeUnmount as onBeforeUnmount31, getCurrentInstance as getCurrentInstance65 } from "vue";
|
|
19076
19103
|
var PULLER_HEIGHT = 40;
|
|
19077
19104
|
var OFFSET_TOP = 20;
|
|
19078
19105
|
var QPullToRefresh_default = createComponent({
|
|
@@ -19095,11 +19122,11 @@ var QPullToRefresh_default = createComponent({
|
|
|
19095
19122
|
const pullPosition = ref49(-PULLER_HEIGHT);
|
|
19096
19123
|
const animating = ref49(false);
|
|
19097
19124
|
const positionCSS = ref49({});
|
|
19098
|
-
const style2 =
|
|
19125
|
+
const style2 = computed85(() => ({
|
|
19099
19126
|
opacity: pullRatio.value,
|
|
19100
19127
|
transform: `translateY(${pullPosition.value}px) rotate(${pullRatio.value * 360}deg)`
|
|
19101
19128
|
}));
|
|
19102
|
-
const classes =
|
|
19129
|
+
const classes = computed85(
|
|
19103
19130
|
() => "q-pull-to-refresh__puller row flex-center" + (animating.value === true ? " q-pull-to-refresh__puller--animating" : "") + (props4.bgColor !== void 0 ? ` bg-${props4.bgColor}` : "")
|
|
19104
19131
|
);
|
|
19105
19132
|
function pull(event) {
|
|
@@ -19145,7 +19172,7 @@ var QPullToRefresh_default = createComponent({
|
|
|
19145
19172
|
state.value = newState;
|
|
19146
19173
|
}
|
|
19147
19174
|
}
|
|
19148
|
-
const directives =
|
|
19175
|
+
const directives = computed85(() => {
|
|
19149
19176
|
const modifiers = { down: true };
|
|
19150
19177
|
if (props4.noMouse !== true) {
|
|
19151
19178
|
modifiers.mouse = true;
|
|
@@ -19157,7 +19184,7 @@ var QPullToRefresh_default = createComponent({
|
|
|
19157
19184
|
modifiers
|
|
19158
19185
|
]];
|
|
19159
19186
|
});
|
|
19160
|
-
const contentClass =
|
|
19187
|
+
const contentClass = computed85(
|
|
19161
19188
|
() => `q-pull-to-refresh__content${pulling.value === true ? " no-pointer-events" : ""}`
|
|
19162
19189
|
);
|
|
19163
19190
|
function trigger3() {
|
|
@@ -19225,7 +19252,7 @@ var QPullToRefresh_default = createComponent({
|
|
|
19225
19252
|
});
|
|
19226
19253
|
|
|
19227
19254
|
// src/components/range/QRange.js
|
|
19228
|
-
import { h as h81, ref as ref50, computed as
|
|
19255
|
+
import { h as h81, ref as ref50, computed as computed86, watch as watch35, getCurrentInstance as getCurrentInstance66 } from "vue";
|
|
19229
19256
|
var dragType = {
|
|
19230
19257
|
MIN: 0,
|
|
19231
19258
|
RANGE: 1,
|
|
@@ -19258,7 +19285,7 @@ var QRange_default = createComponent({
|
|
|
19258
19285
|
updateValue: updateValue2,
|
|
19259
19286
|
updatePosition,
|
|
19260
19287
|
getDragging,
|
|
19261
|
-
formAttrs:
|
|
19288
|
+
formAttrs: computed86(() => ({
|
|
19262
19289
|
type: "hidden",
|
|
19263
19290
|
name: props4.name,
|
|
19264
19291
|
value: `${props4.modelValue.min}|${props4.modelValue.max}`
|
|
@@ -19277,11 +19304,11 @@ var QRange_default = createComponent({
|
|
|
19277
19304
|
normalizeModel
|
|
19278
19305
|
);
|
|
19279
19306
|
normalizeModel();
|
|
19280
|
-
const modelMinRatio =
|
|
19281
|
-
const modelMaxRatio =
|
|
19282
|
-
const ratioMin =
|
|
19283
|
-
const ratioMax =
|
|
19284
|
-
const selectionBarStyle =
|
|
19307
|
+
const modelMinRatio = computed86(() => methods.convertModelToRatio(model.value.min));
|
|
19308
|
+
const modelMaxRatio = computed86(() => methods.convertModelToRatio(model.value.max));
|
|
19309
|
+
const ratioMin = computed86(() => state.active.value === true ? curMinRatio.value : modelMinRatio.value);
|
|
19310
|
+
const ratioMax = computed86(() => state.active.value === true ? curMaxRatio.value : modelMaxRatio.value);
|
|
19311
|
+
const selectionBarStyle = computed86(() => {
|
|
19285
19312
|
const acc = {
|
|
19286
19313
|
[state.positionProp.value]: `${100 * ratioMin.value}%`,
|
|
19287
19314
|
[state.sizeProp.value]: `${100 * (ratioMax.value - ratioMin.value)}%`
|
|
@@ -19291,7 +19318,7 @@ var QRange_default = createComponent({
|
|
|
19291
19318
|
}
|
|
19292
19319
|
return acc;
|
|
19293
19320
|
});
|
|
19294
|
-
const trackContainerEvents =
|
|
19321
|
+
const trackContainerEvents = computed86(() => {
|
|
19295
19322
|
if (state.editable.value !== true) {
|
|
19296
19323
|
return {};
|
|
19297
19324
|
}
|
|
@@ -19321,10 +19348,10 @@ var QRange_default = createComponent({
|
|
|
19321
19348
|
onKeyup: methods.onKeyup
|
|
19322
19349
|
} : {};
|
|
19323
19350
|
}
|
|
19324
|
-
const thumbTabindex =
|
|
19325
|
-
const trackContainerTabindex =
|
|
19351
|
+
const thumbTabindex = computed86(() => props4.dragOnlyRange !== true ? state.tabindex.value : null);
|
|
19352
|
+
const trackContainerTabindex = computed86(() => $q.platform.is.mobile !== true && (props4.dragRange || props4.dragOnlyRange === true) ? state.tabindex.value : null);
|
|
19326
19353
|
const minThumbRef = ref50(null);
|
|
19327
|
-
const minEvents =
|
|
19354
|
+
const minEvents = computed86(() => getEvents("min"));
|
|
19328
19355
|
const getMinThumb = methods.getThumbRenderFn({
|
|
19329
19356
|
focusValue: "min",
|
|
19330
19357
|
getNodeData: () => ({
|
|
@@ -19334,12 +19361,12 @@ var QRange_default = createComponent({
|
|
|
19334
19361
|
tabindex: thumbTabindex.value
|
|
19335
19362
|
}),
|
|
19336
19363
|
ratio: ratioMin,
|
|
19337
|
-
label:
|
|
19338
|
-
thumbColor:
|
|
19339
|
-
labelColor:
|
|
19340
|
-
labelTextColor:
|
|
19364
|
+
label: computed86(() => props4.leftLabelValue !== void 0 ? props4.leftLabelValue : model.value.min),
|
|
19365
|
+
thumbColor: computed86(() => props4.leftThumbColor || props4.thumbColor || props4.color),
|
|
19366
|
+
labelColor: computed86(() => props4.leftLabelColor || props4.labelColor),
|
|
19367
|
+
labelTextColor: computed86(() => props4.leftLabelTextColor || props4.labelTextColor)
|
|
19341
19368
|
});
|
|
19342
|
-
const maxEvents =
|
|
19369
|
+
const maxEvents = computed86(() => getEvents("max"));
|
|
19343
19370
|
const getMaxThumb = methods.getThumbRenderFn({
|
|
19344
19371
|
focusValue: "max",
|
|
19345
19372
|
getNodeData: () => ({
|
|
@@ -19348,10 +19375,10 @@ var QRange_default = createComponent({
|
|
|
19348
19375
|
tabindex: thumbTabindex.value
|
|
19349
19376
|
}),
|
|
19350
19377
|
ratio: ratioMax,
|
|
19351
|
-
label:
|
|
19352
|
-
thumbColor:
|
|
19353
|
-
labelColor:
|
|
19354
|
-
labelTextColor:
|
|
19378
|
+
label: computed86(() => props4.rightLabelValue !== void 0 ? props4.rightLabelValue : model.value.max),
|
|
19379
|
+
thumbColor: computed86(() => props4.rightThumbColor || props4.thumbColor || props4.color),
|
|
19380
|
+
labelColor: computed86(() => props4.rightLabelColor || props4.labelColor),
|
|
19381
|
+
labelTextColor: computed86(() => props4.rightLabelTextColor || props4.labelTextColor)
|
|
19355
19382
|
});
|
|
19356
19383
|
function updateValue2(change) {
|
|
19357
19384
|
if (model.value.min !== props4.modelValue.min || model.value.max !== props4.modelValue.max) {
|
|
@@ -19507,7 +19534,7 @@ var QRange_default = createComponent({
|
|
|
19507
19534
|
});
|
|
19508
19535
|
|
|
19509
19536
|
// src/components/rating/QRating.js
|
|
19510
|
-
import { h as h82, ref as ref51, computed as
|
|
19537
|
+
import { h as h82, ref as ref51, computed as computed87, onBeforeUpdate as onBeforeUpdate2, getCurrentInstance as getCurrentInstance67 } from "vue";
|
|
19511
19538
|
var QRating_default = createComponent({
|
|
19512
19539
|
name: "QRating",
|
|
19513
19540
|
props: {
|
|
@@ -19541,13 +19568,13 @@ var QRating_default = createComponent({
|
|
|
19541
19568
|
const injectFormInput = useFormInject(formAttrs);
|
|
19542
19569
|
const mouseModel = ref51(0);
|
|
19543
19570
|
let iconRefs = {};
|
|
19544
|
-
const editable =
|
|
19571
|
+
const editable = computed87(
|
|
19545
19572
|
() => props4.readonly !== true && props4.disable !== true
|
|
19546
19573
|
);
|
|
19547
|
-
const classes =
|
|
19574
|
+
const classes = computed87(
|
|
19548
19575
|
() => `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}` : "")
|
|
19549
19576
|
);
|
|
19550
|
-
const iconData =
|
|
19577
|
+
const iconData = computed87(() => {
|
|
19551
19578
|
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;
|
|
19552
19579
|
return {
|
|
19553
19580
|
iconLen,
|
|
@@ -19564,7 +19591,7 @@ var QRating_default = createComponent({
|
|
|
19564
19591
|
halfColor: halfColorLen > 0 ? props4.colorHalf[halfColorLen - 1] : props4.colorHalf
|
|
19565
19592
|
};
|
|
19566
19593
|
});
|
|
19567
|
-
const iconLabel =
|
|
19594
|
+
const iconLabel = computed87(() => {
|
|
19568
19595
|
if (typeof props4.iconAriaLabel === "string") {
|
|
19569
19596
|
const label = props4.iconAriaLabel.length !== 0 ? `${props4.iconAriaLabel} ` : "";
|
|
19570
19597
|
return (i) => `${label}${i}`;
|
|
@@ -19577,7 +19604,7 @@ var QRating_default = createComponent({
|
|
|
19577
19604
|
}
|
|
19578
19605
|
return (i, label) => `${label} ${i}`;
|
|
19579
19606
|
});
|
|
19580
|
-
const stars =
|
|
19607
|
+
const stars = computed87(() => {
|
|
19581
19608
|
const acc = [], icons = iconData.value, ceil = Math.ceil(props4.modelValue), tabindex = editable.value === true ? 0 : null;
|
|
19582
19609
|
const halfIndex = props4.iconHalf === void 0 || ceil === props4.modelValue ? -1 : ceil;
|
|
19583
19610
|
for (let i = 1; i <= props4.max; i++) {
|
|
@@ -19595,7 +19622,7 @@ var QRating_default = createComponent({
|
|
|
19595
19622
|
}
|
|
19596
19623
|
return acc;
|
|
19597
19624
|
});
|
|
19598
|
-
const attributes =
|
|
19625
|
+
const attributes = computed87(() => {
|
|
19599
19626
|
const attrs = { role: "radiogroup" };
|
|
19600
19627
|
if (props4.disable === true) {
|
|
19601
19628
|
attrs["aria-disabled"] = "true";
|
|
@@ -19712,7 +19739,7 @@ var QResponsive_default = createComponent({
|
|
|
19712
19739
|
});
|
|
19713
19740
|
|
|
19714
19741
|
// src/components/scroll-area/QScrollArea.js
|
|
19715
|
-
import { h as h85, ref as ref52, computed as
|
|
19742
|
+
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";
|
|
19716
19743
|
|
|
19717
19744
|
// src/components/scroll-area/ScrollAreaControls.js
|
|
19718
19745
|
import { h as h84, withDirectives as withDirectives6 } from "vue";
|
|
@@ -19826,14 +19853,14 @@ var QScrollArea_default = createComponent({
|
|
|
19826
19853
|
const isDark = use_dark_default(props4, proxy.$q);
|
|
19827
19854
|
let timer2 = null, panRefPos;
|
|
19828
19855
|
const targetRef = ref52(null);
|
|
19829
|
-
const classes =
|
|
19856
|
+
const classes = computed88(
|
|
19830
19857
|
() => "q-scrollarea" + (isDark.value === true ? " q-scrollarea--dark" : "")
|
|
19831
19858
|
);
|
|
19832
19859
|
Object.assign(container, {
|
|
19833
|
-
verticalInner:
|
|
19834
|
-
horizontalInner:
|
|
19860
|
+
verticalInner: computed88(() => container.vertical.value - props4.verticalOffset[0] - props4.verticalOffset[1]),
|
|
19861
|
+
horizontalInner: computed88(() => container.horizontal.value - props4.horizontalOffset[0] - props4.horizontalOffset[1])
|
|
19835
19862
|
});
|
|
19836
|
-
scroll.vertical.percentage =
|
|
19863
|
+
scroll.vertical.percentage = computed88(() => {
|
|
19837
19864
|
const diff2 = scroll.vertical.size.value - container.vertical.value;
|
|
19838
19865
|
if (diff2 <= 0) {
|
|
19839
19866
|
return 0;
|
|
@@ -19841,9 +19868,9 @@ var QScrollArea_default = createComponent({
|
|
|
19841
19868
|
const p = between(scroll.vertical.position.value / diff2, 0, 1);
|
|
19842
19869
|
return Math.round(p * 1e4) / 1e4;
|
|
19843
19870
|
});
|
|
19844
|
-
scroll.vertical.thumbHidden =
|
|
19845
|
-
scroll.vertical.thumbStart =
|
|
19846
|
-
scroll.vertical.thumbSize =
|
|
19871
|
+
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);
|
|
19872
|
+
scroll.vertical.thumbStart = computed88(() => props4.verticalOffset[0] + scroll.vertical.percentage.value * (container.verticalInner.value - scroll.vertical.thumbSize.value));
|
|
19873
|
+
scroll.vertical.thumbSize = computed88(
|
|
19847
19874
|
() => Math.round(
|
|
19848
19875
|
between(
|
|
19849
19876
|
container.verticalInner.value * container.verticalInner.value / scroll.vertical.size.value,
|
|
@@ -19852,16 +19879,16 @@ var QScrollArea_default = createComponent({
|
|
|
19852
19879
|
)
|
|
19853
19880
|
)
|
|
19854
19881
|
);
|
|
19855
|
-
scroll.vertical.style =
|
|
19882
|
+
scroll.vertical.style = computed88(() => ({
|
|
19856
19883
|
...props4.thumbStyle,
|
|
19857
19884
|
...props4.verticalThumbStyle,
|
|
19858
19885
|
top: `${scroll.vertical.thumbStart.value}px`,
|
|
19859
19886
|
height: `${scroll.vertical.thumbSize.value}px`,
|
|
19860
19887
|
right: `${props4.horizontalOffset[1]}px`
|
|
19861
19888
|
}));
|
|
19862
|
-
scroll.vertical.thumbClass =
|
|
19863
|
-
scroll.vertical.barClass =
|
|
19864
|
-
scroll.horizontal.percentage =
|
|
19889
|
+
scroll.vertical.thumbClass = computed88(() => "q-scrollarea__thumb q-scrollarea__thumb--v absolute-right" + (scroll.vertical.thumbHidden.value === true ? " q-scrollarea__thumb--invisible" : ""));
|
|
19890
|
+
scroll.vertical.barClass = computed88(() => "q-scrollarea__bar q-scrollarea__bar--v absolute-right" + (scroll.vertical.thumbHidden.value === true ? " q-scrollarea__bar--invisible" : ""));
|
|
19891
|
+
scroll.horizontal.percentage = computed88(() => {
|
|
19865
19892
|
const diff2 = scroll.horizontal.size.value - container.horizontal.value;
|
|
19866
19893
|
if (diff2 <= 0) {
|
|
19867
19894
|
return 0;
|
|
@@ -19869,9 +19896,9 @@ var QScrollArea_default = createComponent({
|
|
|
19869
19896
|
const p = between(Math.abs(scroll.horizontal.position.value) / diff2, 0, 1);
|
|
19870
19897
|
return Math.round(p * 1e4) / 1e4;
|
|
19871
19898
|
});
|
|
19872
|
-
scroll.horizontal.thumbHidden =
|
|
19873
|
-
scroll.horizontal.thumbStart =
|
|
19874
|
-
scroll.horizontal.thumbSize =
|
|
19899
|
+
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);
|
|
19900
|
+
scroll.horizontal.thumbStart = computed88(() => props4.horizontalOffset[0] + scroll.horizontal.percentage.value * (container.horizontalInner.value - scroll.horizontal.thumbSize.value));
|
|
19901
|
+
scroll.horizontal.thumbSize = computed88(
|
|
19875
19902
|
() => Math.round(
|
|
19876
19903
|
between(
|
|
19877
19904
|
container.horizontalInner.value * container.horizontalInner.value / scroll.horizontal.size.value,
|
|
@@ -19880,16 +19907,16 @@ var QScrollArea_default = createComponent({
|
|
|
19880
19907
|
)
|
|
19881
19908
|
)
|
|
19882
19909
|
);
|
|
19883
|
-
scroll.horizontal.style =
|
|
19910
|
+
scroll.horizontal.style = computed88(() => ({
|
|
19884
19911
|
...props4.thumbStyle,
|
|
19885
19912
|
...props4.horizontalThumbStyle,
|
|
19886
19913
|
[proxy.$q.lang.rtl === true ? "right" : "left"]: `${scroll.horizontal.thumbStart.value}px`,
|
|
19887
19914
|
width: `${scroll.horizontal.thumbSize.value}px`,
|
|
19888
19915
|
bottom: `${props4.verticalOffset[1]}px`
|
|
19889
19916
|
}));
|
|
19890
|
-
scroll.horizontal.thumbClass =
|
|
19891
|
-
scroll.horizontal.barClass =
|
|
19892
|
-
const mainStyle =
|
|
19917
|
+
scroll.horizontal.thumbClass = computed88(() => "q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom" + (scroll.horizontal.thumbHidden.value === true ? " q-scrollarea__thumb--invisible" : ""));
|
|
19918
|
+
scroll.horizontal.barClass = computed88(() => "q-scrollarea__bar q-scrollarea__bar--h absolute-bottom" + (scroll.horizontal.thumbHidden.value === true ? " q-scrollarea__bar--invisible" : ""));
|
|
19919
|
+
const mainStyle = computed88(() => scroll.vertical.thumbHidden.value === true && scroll.horizontal.thumbHidden.value === true ? props4.contentStyle : props4.contentActiveStyle);
|
|
19893
19920
|
function getScroll() {
|
|
19894
19921
|
const info = {};
|
|
19895
19922
|
axisList.forEach((axis) => {
|
|
@@ -20124,10 +20151,10 @@ var QScrollArea_default = createComponent({
|
|
|
20124
20151
|
});
|
|
20125
20152
|
|
|
20126
20153
|
// src/components/select/QSelect.js
|
|
20127
|
-
import { h as h87, ref as ref54, computed as
|
|
20154
|
+
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";
|
|
20128
20155
|
|
|
20129
20156
|
// src/components/virtual-scroll/use-virtual-scroll.js
|
|
20130
|
-
import { h as h86, ref as ref53, computed as
|
|
20157
|
+
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";
|
|
20131
20158
|
var aggBucketSize = 1e3;
|
|
20132
20159
|
var scrollToEdges = [
|
|
20133
20160
|
"start",
|
|
@@ -20306,12 +20333,12 @@ function useVirtualScroll({
|
|
|
20306
20333
|
const afterRef = ref53(null);
|
|
20307
20334
|
const contentRef = ref53(null);
|
|
20308
20335
|
const virtualScrollSliceRange = ref53({ from: 0, to: 0 });
|
|
20309
|
-
const colspanAttr =
|
|
20336
|
+
const colspanAttr = computed89(() => props4.tableColspan !== void 0 ? props4.tableColspan : 100);
|
|
20310
20337
|
if (virtualScrollItemSizeComputed === void 0) {
|
|
20311
|
-
virtualScrollItemSizeComputed =
|
|
20338
|
+
virtualScrollItemSizeComputed = computed89(() => props4.virtualScrollItemSize);
|
|
20312
20339
|
}
|
|
20313
|
-
const needsReset =
|
|
20314
|
-
const needsSliceRecalc =
|
|
20340
|
+
const needsReset = computed89(() => virtualScrollItemSizeComputed.value + ";" + props4.virtualScrollHorizontal);
|
|
20341
|
+
const needsSliceRecalc = computed89(
|
|
20315
20342
|
() => needsReset.value + ";" + props4.virtualScrollSliceRatioBefore + ";" + props4.virtualScrollSliceRatioAfter
|
|
20316
20343
|
);
|
|
20317
20344
|
watch37(needsSliceRecalc, () => {
|
|
@@ -20771,8 +20798,8 @@ var QSelect_default = createComponent({
|
|
|
20771
20798
|
const menuContentRef = ref54(null);
|
|
20772
20799
|
const nameProp = useFormInputNameAttr(props4);
|
|
20773
20800
|
const onComposition = use_key_composition_default(onInput);
|
|
20774
|
-
const virtualScrollLength =
|
|
20775
|
-
const virtualScrollItemSizeComputed =
|
|
20801
|
+
const virtualScrollLength = computed90(() => Array.isArray(props4.options) ? props4.options.length : 0);
|
|
20802
|
+
const virtualScrollItemSizeComputed = computed90(() => props4.virtualScrollItemSize === void 0 ? props4.optionsDense === true ? 24 : 48 : props4.virtualScrollItemSize);
|
|
20776
20803
|
const {
|
|
20777
20804
|
virtualScrollSliceRange,
|
|
20778
20805
|
virtualScrollSliceSizeComputed,
|
|
@@ -20788,7 +20815,7 @@ var QSelect_default = createComponent({
|
|
|
20788
20815
|
virtualScrollItemSizeComputed
|
|
20789
20816
|
});
|
|
20790
20817
|
const state = useFieldState();
|
|
20791
|
-
const innerValue =
|
|
20818
|
+
const innerValue = computed90(() => {
|
|
20792
20819
|
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] : [];
|
|
20793
20820
|
if (props4.mapOptions === true && Array.isArray(props4.options) === true) {
|
|
20794
20821
|
const cache = props4.mapOptions === true && innerValueCache !== void 0 ? innerValueCache : [];
|
|
@@ -20797,7 +20824,7 @@ var QSelect_default = createComponent({
|
|
|
20797
20824
|
}
|
|
20798
20825
|
return val;
|
|
20799
20826
|
});
|
|
20800
|
-
const innerFieldProps =
|
|
20827
|
+
const innerFieldProps = computed90(() => {
|
|
20801
20828
|
const acc = {};
|
|
20802
20829
|
fieldPropsList.forEach((key) => {
|
|
20803
20830
|
const val = props4[key];
|
|
@@ -20807,9 +20834,9 @@ var QSelect_default = createComponent({
|
|
|
20807
20834
|
});
|
|
20808
20835
|
return acc;
|
|
20809
20836
|
});
|
|
20810
|
-
const isOptionsDark =
|
|
20811
|
-
const hasValue =
|
|
20812
|
-
const computedInputClass =
|
|
20837
|
+
const isOptionsDark = computed90(() => props4.optionsDark === null ? state.isDark.value : props4.optionsDark);
|
|
20838
|
+
const hasValue = computed90(() => fieldValueIsFilled(innerValue.value));
|
|
20839
|
+
const computedInputClass = computed90(() => {
|
|
20813
20840
|
let cls = "q-field__input q-placeholder col";
|
|
20814
20841
|
if (props4.hideSelected === true || innerValue.value.length === 0) {
|
|
20815
20842
|
return [cls, props4.inputClass];
|
|
@@ -20817,18 +20844,18 @@ var QSelect_default = createComponent({
|
|
|
20817
20844
|
cls += " q-field__input--padding";
|
|
20818
20845
|
return props4.inputClass === void 0 ? cls : [cls, props4.inputClass];
|
|
20819
20846
|
});
|
|
20820
|
-
const menuContentClass =
|
|
20847
|
+
const menuContentClass = computed90(
|
|
20821
20848
|
() => (props4.virtualScrollHorizontal === true ? "q-virtual-scroll--horizontal" : "") + (props4.popupContentClass ? " " + props4.popupContentClass : "")
|
|
20822
20849
|
);
|
|
20823
|
-
const noOptions =
|
|
20824
|
-
const selectedString =
|
|
20850
|
+
const noOptions = computed90(() => virtualScrollLength.value === 0);
|
|
20851
|
+
const selectedString = computed90(
|
|
20825
20852
|
() => innerValue.value.map((opt) => getOptionLabel.value(opt)).join(", ")
|
|
20826
20853
|
);
|
|
20827
|
-
const ariaCurrentValue =
|
|
20828
|
-
const needsHtmlFn =
|
|
20829
|
-
const valueAsHtml =
|
|
20830
|
-
const tabindex =
|
|
20831
|
-
const comboboxAttrs =
|
|
20854
|
+
const ariaCurrentValue = computed90(() => props4.displayValue !== void 0 ? props4.displayValue : selectedString.value);
|
|
20855
|
+
const needsHtmlFn = computed90(() => props4.optionsHtml === true ? () => true : (opt) => opt?.html === true);
|
|
20856
|
+
const valueAsHtml = computed90(() => props4.displayValueHtml === true || props4.displayValue === void 0 && (props4.optionsHtml === true || innerValue.value.some(needsHtmlFn.value)));
|
|
20857
|
+
const tabindex = computed90(() => state.focused.value === true ? props4.tabindex : -1);
|
|
20858
|
+
const comboboxAttrs = computed90(() => {
|
|
20832
20859
|
const attrs = {
|
|
20833
20860
|
tabindex: props4.tabindex,
|
|
20834
20861
|
role: "combobox",
|
|
@@ -20843,12 +20870,12 @@ var QSelect_default = createComponent({
|
|
|
20843
20870
|
}
|
|
20844
20871
|
return attrs;
|
|
20845
20872
|
});
|
|
20846
|
-
const listboxAttrs =
|
|
20873
|
+
const listboxAttrs = computed90(() => ({
|
|
20847
20874
|
id: `${state.targetUid.value}_lb`,
|
|
20848
20875
|
role: "listbox",
|
|
20849
20876
|
"aria-multiselectable": props4.multiple === true ? "true" : "false"
|
|
20850
20877
|
}));
|
|
20851
|
-
const selectedScope =
|
|
20878
|
+
const selectedScope = computed90(() => {
|
|
20852
20879
|
return innerValue.value.map((opt, i) => ({
|
|
20853
20880
|
index: i,
|
|
20854
20881
|
opt,
|
|
@@ -20859,7 +20886,7 @@ var QSelect_default = createComponent({
|
|
|
20859
20886
|
tabindex: tabindex.value
|
|
20860
20887
|
}));
|
|
20861
20888
|
});
|
|
20862
|
-
const optionScope =
|
|
20889
|
+
const optionScope = computed90(() => {
|
|
20863
20890
|
if (virtualScrollLength.value === 0) {
|
|
20864
20891
|
return [];
|
|
20865
20892
|
}
|
|
@@ -20906,16 +20933,16 @@ var QSelect_default = createComponent({
|
|
|
20906
20933
|
};
|
|
20907
20934
|
});
|
|
20908
20935
|
});
|
|
20909
|
-
const dropdownArrowIcon =
|
|
20910
|
-
const squaredMenu =
|
|
20936
|
+
const dropdownArrowIcon = computed90(() => props4.dropdownIcon !== void 0 ? props4.dropdownIcon : $q.iconSet.arrow.dropdown);
|
|
20937
|
+
const squaredMenu = computed90(
|
|
20911
20938
|
() => props4.optionsCover === false && props4.outlined !== true && props4.standout !== true && props4.borderless !== true && props4.rounded !== true
|
|
20912
20939
|
);
|
|
20913
|
-
const computedOptionsSelectedClass =
|
|
20914
|
-
const getOptionValue =
|
|
20915
|
-
const getOptionLabel =
|
|
20916
|
-
const isOptionDisabled =
|
|
20917
|
-
const innerOptionsValue =
|
|
20918
|
-
const inputControlEvents =
|
|
20940
|
+
const computedOptionsSelectedClass = computed90(() => props4.optionsSelectedClass !== void 0 ? props4.optionsSelectedClass : props4.color !== void 0 ? `text-${props4.color}` : "");
|
|
20941
|
+
const getOptionValue = computed90(() => getPropValueFn2(props4.optionValue, "value"));
|
|
20942
|
+
const getOptionLabel = computed90(() => getPropValueFn2(props4.optionLabel, "label"));
|
|
20943
|
+
const isOptionDisabled = computed90(() => getPropValueFn2(props4.optionDisable, "disable"));
|
|
20944
|
+
const innerOptionsValue = computed90(() => innerValue.value.map(getOptionValue.value));
|
|
20945
|
+
const inputControlEvents = computed90(() => {
|
|
20919
20946
|
const evt = {
|
|
20920
20947
|
onInput,
|
|
20921
20948
|
// Safari < 10.2 & UIWebView doesn't fire compositionend when
|
|
@@ -21656,14 +21683,14 @@ var QSelect_default = createComponent({
|
|
|
21656
21683
|
});
|
|
21657
21684
|
Object.assign(state, {
|
|
21658
21685
|
innerValue,
|
|
21659
|
-
fieldClass:
|
|
21686
|
+
fieldClass: computed90(
|
|
21660
21687
|
() => `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"}`
|
|
21661
21688
|
),
|
|
21662
21689
|
inputRef,
|
|
21663
21690
|
targetRef,
|
|
21664
21691
|
hasValue,
|
|
21665
21692
|
showPopup,
|
|
21666
|
-
floatingLabel:
|
|
21693
|
+
floatingLabel: computed90(
|
|
21667
21694
|
() => props4.hideSelected !== true && hasValue.value === true || typeof inputValue.value === "number" || inputValue.value.length !== 0 || fieldValueIsFilled(props4.displayValue)
|
|
21668
21695
|
),
|
|
21669
21696
|
getControlChild: () => {
|
|
@@ -21755,7 +21782,7 @@ var QSelect_default = createComponent({
|
|
|
21755
21782
|
});
|
|
21756
21783
|
|
|
21757
21784
|
// src/components/skeleton/QSkeleton.js
|
|
21758
|
-
import { h as h88, computed as
|
|
21785
|
+
import { h as h88, computed as computed91, getCurrentInstance as getCurrentInstance71 } from "vue";
|
|
21759
21786
|
var skeletonTypes = [
|
|
21760
21787
|
"text",
|
|
21761
21788
|
"rect",
|
|
@@ -21812,7 +21839,7 @@ var QSkeleton_default = createComponent({
|
|
|
21812
21839
|
setup(props4, { slots }) {
|
|
21813
21840
|
const vm2 = getCurrentInstance71();
|
|
21814
21841
|
const isDark = use_dark_default(props4, vm2.proxy.$q);
|
|
21815
|
-
const style2 =
|
|
21842
|
+
const style2 = computed91(() => {
|
|
21816
21843
|
const size2 = props4.size !== void 0 ? [props4.size, props4.size] : [props4.width, props4.height];
|
|
21817
21844
|
return {
|
|
21818
21845
|
"--q-skeleton-speed": `${props4.animationSpeed}ms`,
|
|
@@ -21820,7 +21847,7 @@ var QSkeleton_default = createComponent({
|
|
|
21820
21847
|
height: size2[1]
|
|
21821
21848
|
};
|
|
21822
21849
|
});
|
|
21823
|
-
const classes =
|
|
21850
|
+
const classes = computed91(
|
|
21824
21851
|
() => `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" : "")
|
|
21825
21852
|
);
|
|
21826
21853
|
return () => h88(props4.tag, {
|
|
@@ -21831,7 +21858,7 @@ var QSkeleton_default = createComponent({
|
|
|
21831
21858
|
});
|
|
21832
21859
|
|
|
21833
21860
|
// src/components/slide-item/QSlideItem.js
|
|
21834
|
-
import { h as h89, ref as ref55, computed as
|
|
21861
|
+
import { h as h89, ref as ref55, computed as computed92, withDirectives as withDirectives7, onBeforeUnmount as onBeforeUnmount35, onBeforeUpdate as onBeforeUpdate4, getCurrentInstance as getCurrentInstance72 } from "vue";
|
|
21835
21862
|
var slotsDef = [
|
|
21836
21863
|
["left", "center", "start", "width"],
|
|
21837
21864
|
["right", "center", "end", "width"],
|
|
@@ -21856,8 +21883,8 @@ var QSlideItem_default = createComponent({
|
|
|
21856
21883
|
const { getCache } = use_render_cache_default();
|
|
21857
21884
|
const contentRef = ref55(null);
|
|
21858
21885
|
let timer2 = null, pan = {}, dirRefs = {}, dirContentRefs = {};
|
|
21859
|
-
const langDir =
|
|
21860
|
-
const classes =
|
|
21886
|
+
const langDir = computed92(() => $q.lang.rtl === true ? { left: "right", right: "left" } : { left: "left", right: "right" });
|
|
21887
|
+
const classes = computed92(
|
|
21861
21888
|
() => "q-slide-item q-item-type overflow-hidden" + (isDark.value === true ? " q-slide-item--dark q-dark" : "")
|
|
21862
21889
|
);
|
|
21863
21890
|
function reset() {
|
|
@@ -22444,7 +22471,7 @@ var QSpinnerTail_default = createComponent({
|
|
|
22444
22471
|
});
|
|
22445
22472
|
|
|
22446
22473
|
// src/components/splitter/QSplitter.js
|
|
22447
|
-
import { h as h113, ref as ref56, computed as
|
|
22474
|
+
import { h as h113, ref as ref56, computed as computed93, watch as watch39, nextTick as nextTick17, getCurrentInstance as getCurrentInstance73 } from "vue";
|
|
22448
22475
|
var QSplitter_default = createComponent({
|
|
22449
22476
|
name: "QSplitter",
|
|
22450
22477
|
props: {
|
|
@@ -22484,16 +22511,16 @@ var QSplitter_default = createComponent({
|
|
|
22484
22511
|
before: ref56(null),
|
|
22485
22512
|
after: ref56(null)
|
|
22486
22513
|
};
|
|
22487
|
-
const classes =
|
|
22514
|
+
const classes = computed93(
|
|
22488
22515
|
() => `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" : "")
|
|
22489
22516
|
);
|
|
22490
|
-
const propName =
|
|
22491
|
-
const side =
|
|
22492
|
-
const computedLimits =
|
|
22517
|
+
const propName = computed93(() => props4.horizontal === true ? "height" : "width");
|
|
22518
|
+
const side = computed93(() => props4.reverse !== true ? "before" : "after");
|
|
22519
|
+
const computedLimits = computed93(() => props4.limits !== void 0 ? props4.limits : props4.unit === "%" ? [10, 90] : [50, Infinity]);
|
|
22493
22520
|
function getCSSValue(value2) {
|
|
22494
22521
|
return (props4.unit === "%" ? value2 : Math.round(value2)) + props4.unit;
|
|
22495
22522
|
}
|
|
22496
|
-
const styles =
|
|
22523
|
+
const styles = computed93(() => ({
|
|
22497
22524
|
[side.value]: {
|
|
22498
22525
|
[propName.value]: getCSSValue(props4.modelValue)
|
|
22499
22526
|
}
|
|
@@ -22523,7 +22550,7 @@ var QSplitter_default = createComponent({
|
|
|
22523
22550
|
emit("update:modelValue", __normalized);
|
|
22524
22551
|
}
|
|
22525
22552
|
}
|
|
22526
|
-
const sepDirective =
|
|
22553
|
+
const sepDirective = computed93(() => {
|
|
22527
22554
|
return [[
|
|
22528
22555
|
TouchPan_default,
|
|
22529
22556
|
pan,
|
|
@@ -22597,10 +22624,10 @@ var QSplitter_default = createComponent({
|
|
|
22597
22624
|
});
|
|
22598
22625
|
|
|
22599
22626
|
// src/components/stepper/QStep.js
|
|
22600
|
-
import { h as h115, ref as ref58, computed as
|
|
22627
|
+
import { h as h115, ref as ref58, computed as computed95, inject as inject10, getCurrentInstance as getCurrentInstance75, KeepAlive as KeepAlive2 } from "vue";
|
|
22601
22628
|
|
|
22602
22629
|
// src/components/stepper/StepHeader.js
|
|
22603
|
-
import { h as h114, ref as ref57, computed as
|
|
22630
|
+
import { h as h114, ref as ref57, computed as computed94, withDirectives as withDirectives8, getCurrentInstance as getCurrentInstance74 } from "vue";
|
|
22604
22631
|
var StepHeader_default = createComponent({
|
|
22605
22632
|
name: "StepHeader",
|
|
22606
22633
|
props: {
|
|
@@ -22611,27 +22638,27 @@ var StepHeader_default = createComponent({
|
|
|
22611
22638
|
setup(props4, { attrs }) {
|
|
22612
22639
|
const { proxy: { $q } } = getCurrentInstance74();
|
|
22613
22640
|
const blurRef = ref57(null);
|
|
22614
|
-
const isActive =
|
|
22615
|
-
const isDisable =
|
|
22641
|
+
const isActive = computed94(() => props4.stepper.modelValue === props4.step.name);
|
|
22642
|
+
const isDisable = computed94(() => {
|
|
22616
22643
|
const opt = props4.step.disable;
|
|
22617
22644
|
return opt === true || opt === "";
|
|
22618
22645
|
});
|
|
22619
|
-
const isError =
|
|
22646
|
+
const isError = computed94(() => {
|
|
22620
22647
|
const opt = props4.step.error;
|
|
22621
22648
|
return opt === true || opt === "";
|
|
22622
22649
|
});
|
|
22623
|
-
const isDone =
|
|
22650
|
+
const isDone = computed94(() => {
|
|
22624
22651
|
const opt = props4.step.done;
|
|
22625
22652
|
return isDisable.value === false && (opt === true || opt === "");
|
|
22626
22653
|
});
|
|
22627
|
-
const headerNav =
|
|
22654
|
+
const headerNav = computed94(() => {
|
|
22628
22655
|
const opt = props4.step.headerNav, nav = opt === true || opt === "" || opt === void 0;
|
|
22629
22656
|
return isDisable.value === false && props4.stepper.headerNav && nav;
|
|
22630
22657
|
});
|
|
22631
|
-
const hasPrefix =
|
|
22658
|
+
const hasPrefix = computed94(() => {
|
|
22632
22659
|
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");
|
|
22633
22660
|
});
|
|
22634
|
-
const icon =
|
|
22661
|
+
const icon = computed94(() => {
|
|
22635
22662
|
const defaultIcon = props4.step.icon || props4.stepper.inactiveIcon;
|
|
22636
22663
|
if (isActive.value === true) {
|
|
22637
22664
|
const icon2 = props4.step.activeIcon || props4.stepper.activeIcon;
|
|
@@ -22647,7 +22674,7 @@ var StepHeader_default = createComponent({
|
|
|
22647
22674
|
}
|
|
22648
22675
|
return defaultIcon;
|
|
22649
22676
|
});
|
|
22650
|
-
const color =
|
|
22677
|
+
const color = computed94(() => {
|
|
22651
22678
|
const errorColor = isError.value === true ? props4.step.errorColor || props4.stepper.errorColor : void 0;
|
|
22652
22679
|
if (isActive.value === true) {
|
|
22653
22680
|
const color2 = props4.step.activeColor || props4.stepper.activeColor || props4.step.color;
|
|
@@ -22661,10 +22688,10 @@ var StepHeader_default = createComponent({
|
|
|
22661
22688
|
}
|
|
22662
22689
|
return props4.step.color || props4.stepper.inactiveColor;
|
|
22663
22690
|
});
|
|
22664
|
-
const classes =
|
|
22691
|
+
const classes = computed94(() => {
|
|
22665
22692
|
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" : "");
|
|
22666
22693
|
});
|
|
22667
|
-
const ripple =
|
|
22694
|
+
const ripple = computed94(() => props4.stepper.headerNav !== true ? false : headerNav.value);
|
|
22668
22695
|
function onActivate() {
|
|
22669
22696
|
blurRef.value?.focus();
|
|
22670
22697
|
isActive.value === false && props4.goToPanel(props4.step.name);
|
|
@@ -22765,8 +22792,8 @@ var QStep_default = createComponent({
|
|
|
22765
22792
|
}
|
|
22766
22793
|
const { getCache } = use_render_cache_default();
|
|
22767
22794
|
const rootRef = ref58(null);
|
|
22768
|
-
const isActive =
|
|
22769
|
-
const scrollEvent =
|
|
22795
|
+
const isActive = computed95(() => $stepper.value.modelValue === props4.name);
|
|
22796
|
+
const scrollEvent = computed95(() => $q.platform.is.ios !== true && $q.platform.is.chrome === true || isActive.value !== true || $stepper.value.vertical !== true ? {} : {
|
|
22770
22797
|
onScroll(e) {
|
|
22771
22798
|
const { target: target2 } = e;
|
|
22772
22799
|
if (target2.scrollTop > 0) {
|
|
@@ -22775,7 +22802,7 @@ var QStep_default = createComponent({
|
|
|
22775
22802
|
props4.onScroll !== void 0 && emit("scroll", e);
|
|
22776
22803
|
}
|
|
22777
22804
|
});
|
|
22778
|
-
const contentKey =
|
|
22805
|
+
const contentKey = computed95(() => typeof props4.name === "string" || typeof props4.name === "number" ? props4.name : String(props4.name));
|
|
22779
22806
|
function getStepContent() {
|
|
22780
22807
|
const vertical = $stepper.value.vertical;
|
|
22781
22808
|
if (vertical === true && $stepper.value.keepAlive === true) {
|
|
@@ -22809,7 +22836,7 @@ var QStep_default = createComponent({
|
|
|
22809
22836
|
});
|
|
22810
22837
|
|
|
22811
22838
|
// src/components/stepper/QStepper.js
|
|
22812
|
-
import { h as h116, computed as
|
|
22839
|
+
import { h as h116, computed as computed96, provide as provide6, getCurrentInstance as getCurrentInstance76 } from "vue";
|
|
22813
22840
|
var camelRE = /(-\w)/g;
|
|
22814
22841
|
function camelizeProps(props4) {
|
|
22815
22842
|
const acc = {};
|
|
@@ -22854,16 +22881,16 @@ var QStepper_default = createComponent({
|
|
|
22854
22881
|
keepAliveProps,
|
|
22855
22882
|
needsUniqueKeepAliveWrapper
|
|
22856
22883
|
} = use_panel_default();
|
|
22857
|
-
provide6(stepperKey,
|
|
22884
|
+
provide6(stepperKey, computed96(() => ({
|
|
22858
22885
|
goToPanel,
|
|
22859
22886
|
keepAliveProps,
|
|
22860
22887
|
needsUniqueKeepAliveWrapper,
|
|
22861
22888
|
...props4
|
|
22862
22889
|
})));
|
|
22863
|
-
const classes =
|
|
22890
|
+
const classes = computed96(
|
|
22864
22891
|
() => `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" : "")
|
|
22865
22892
|
);
|
|
22866
|
-
const headerClasses =
|
|
22893
|
+
const headerClasses = computed96(
|
|
22867
22894
|
() => `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}` : "")
|
|
22868
22895
|
);
|
|
22869
22896
|
function getContent() {
|
|
@@ -22919,7 +22946,7 @@ var QStepperNavigation_default = createComponent({
|
|
|
22919
22946
|
});
|
|
22920
22947
|
|
|
22921
22948
|
// src/components/table/QTable.js
|
|
22922
|
-
import { h as h121, ref as ref62, computed as
|
|
22949
|
+
import { h as h121, ref as ref62, computed as computed103, watch as watch44, getCurrentInstance as getCurrentInstance78 } from "vue";
|
|
22923
22950
|
|
|
22924
22951
|
// src/components/table/QTh.js
|
|
22925
22952
|
import { h as h118, getCurrentInstance as getCurrentInstance77 } from "vue";
|
|
@@ -22977,7 +23004,7 @@ var QTh_default = createComponent({
|
|
|
22977
23004
|
});
|
|
22978
23005
|
|
|
22979
23006
|
// src/components/virtual-scroll/QVirtualScroll.js
|
|
22980
|
-
import { h as h120, ref as ref59, computed as
|
|
23007
|
+
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";
|
|
22981
23008
|
|
|
22982
23009
|
// src/components/table/get-table-middle.js
|
|
22983
23010
|
import { h as h119 } from "vue";
|
|
@@ -23013,7 +23040,7 @@ var QVirtualScroll_default = createComponent({
|
|
|
23013
23040
|
setup(props4, { slots, attrs }) {
|
|
23014
23041
|
let localScrollTarget;
|
|
23015
23042
|
const rootRef = ref59(null);
|
|
23016
|
-
const virtualScrollLength =
|
|
23043
|
+
const virtualScrollLength = computed97(() => props4.itemsSize >= 0 && props4.itemsFn !== void 0 ? parseInt(props4.itemsSize, 10) : Array.isArray(props4.items) ? props4.items.length : 0);
|
|
23017
23044
|
const {
|
|
23018
23045
|
virtualScrollSliceRange,
|
|
23019
23046
|
localResetVirtualScroll,
|
|
@@ -23024,7 +23051,7 @@ var QVirtualScroll_default = createComponent({
|
|
|
23024
23051
|
getVirtualScrollTarget,
|
|
23025
23052
|
getVirtualScrollEl
|
|
23026
23053
|
});
|
|
23027
|
-
const virtualScrollScope =
|
|
23054
|
+
const virtualScrollScope = computed97(() => {
|
|
23028
23055
|
if (virtualScrollLength.value === 0) {
|
|
23029
23056
|
return [];
|
|
23030
23057
|
}
|
|
@@ -23034,10 +23061,10 @@ var QVirtualScroll_default = createComponent({
|
|
|
23034
23061
|
});
|
|
23035
23062
|
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);
|
|
23036
23063
|
});
|
|
23037
|
-
const classes =
|
|
23064
|
+
const classes = computed97(
|
|
23038
23065
|
() => "q-virtual-scroll q-virtual-scroll" + (props4.virtualScrollHorizontal === true ? "--horizontal" : "--vertical") + (props4.scrollTarget !== void 0 ? "" : " scroll")
|
|
23039
23066
|
);
|
|
23040
|
-
const attributes =
|
|
23067
|
+
const attributes = computed97(() => props4.scrollTarget !== void 0 ? {} : { tabindex: 0 });
|
|
23041
23068
|
watch40(virtualScrollLength, () => {
|
|
23042
23069
|
localResetVirtualScroll();
|
|
23043
23070
|
});
|
|
@@ -23105,7 +23132,7 @@ var QVirtualScroll_default = createComponent({
|
|
|
23105
23132
|
});
|
|
23106
23133
|
|
|
23107
23134
|
// src/components/table/table-sort.js
|
|
23108
|
-
import { computed as
|
|
23135
|
+
import { computed as computed98 } from "vue";
|
|
23109
23136
|
|
|
23110
23137
|
// src/utils/private.sort/sort.js
|
|
23111
23138
|
function sortDate(a, b) {
|
|
@@ -23123,11 +23150,11 @@ var useTableSortProps = {
|
|
|
23123
23150
|
}
|
|
23124
23151
|
};
|
|
23125
23152
|
function useTableSort(props4, computedPagination, colList, setPagination) {
|
|
23126
|
-
const columnToSort =
|
|
23153
|
+
const columnToSort = computed98(() => {
|
|
23127
23154
|
const { sortBy } = computedPagination.value;
|
|
23128
23155
|
return sortBy ? colList.value.find((def) => def.name === sortBy) || null : null;
|
|
23129
23156
|
});
|
|
23130
|
-
const computedSortMethod =
|
|
23157
|
+
const computedSortMethod = computed98(() => props4.sortMethod !== void 0 ? props4.sortMethod : (data, sortBy, descending) => {
|
|
23131
23158
|
const col = colList.value.find((def) => def.name === sortBy);
|
|
23132
23159
|
if (col === void 0 || col.field === void 0) {
|
|
23133
23160
|
return data;
|
|
@@ -23202,13 +23229,13 @@ function useTableSort(props4, computedPagination, colList, setPagination) {
|
|
|
23202
23229
|
}
|
|
23203
23230
|
|
|
23204
23231
|
// src/components/table/table-filter.js
|
|
23205
|
-
import { computed as
|
|
23232
|
+
import { computed as computed99, watch as watch41, nextTick as nextTick18 } from "vue";
|
|
23206
23233
|
var useTableFilterProps = {
|
|
23207
23234
|
filter: [String, Object],
|
|
23208
23235
|
filterMethod: Function
|
|
23209
23236
|
};
|
|
23210
23237
|
function useTableFilter(props4, setPagination) {
|
|
23211
|
-
const computedFilterMethod =
|
|
23238
|
+
const computedFilterMethod = computed99(() => props4.filterMethod !== void 0 ? props4.filterMethod : (rows, terms, cols, cellValue) => {
|
|
23212
23239
|
const lowerTerms = terms ? terms.toLowerCase() : "";
|
|
23213
23240
|
return rows.filter(
|
|
23214
23241
|
(row) => cols.some((col) => {
|
|
@@ -23231,7 +23258,7 @@ function useTableFilter(props4, setPagination) {
|
|
|
23231
23258
|
}
|
|
23232
23259
|
|
|
23233
23260
|
// src/components/table/table-pagination.js
|
|
23234
|
-
import { ref as ref60, computed as
|
|
23261
|
+
import { ref as ref60, computed as computed100, watch as watch42, nextTick as nextTick19 } from "vue";
|
|
23235
23262
|
function samePagination(oldPag, newPag) {
|
|
23236
23263
|
for (const prop in newPag) {
|
|
23237
23264
|
if (newPag[prop] !== oldPag[prop]) {
|
|
@@ -23267,11 +23294,11 @@ function useTablePaginationState(vm2, getCellValue) {
|
|
|
23267
23294
|
rowsPerPage: props4.rowsPerPageOptions.length !== 0 ? props4.rowsPerPageOptions[0] : 5
|
|
23268
23295
|
}, props4.pagination)
|
|
23269
23296
|
);
|
|
23270
|
-
const computedPagination =
|
|
23297
|
+
const computedPagination = computed100(() => {
|
|
23271
23298
|
const pag = props4["onUpdate:pagination"] !== void 0 ? { ...innerPagination.value, ...props4.pagination } : innerPagination.value;
|
|
23272
23299
|
return fixPagination(pag);
|
|
23273
23300
|
});
|
|
23274
|
-
const isServerSide =
|
|
23301
|
+
const isServerSide = computed100(() => computedPagination.value.rowsNumber !== void 0);
|
|
23275
23302
|
function sendServerRequest(pagination) {
|
|
23276
23303
|
requestServerInteraction({
|
|
23277
23304
|
pagination,
|
|
@@ -23318,22 +23345,22 @@ function useTablePaginationState(vm2, getCellValue) {
|
|
|
23318
23345
|
}
|
|
23319
23346
|
function useTablePagination(vm2, innerPagination, computedPagination, isServerSide, setPagination, filteredSortedRowsNumber) {
|
|
23320
23347
|
const { props: props4, emit, proxy: { $q } } = vm2;
|
|
23321
|
-
const computedRowsNumber =
|
|
23322
|
-
const firstRowIndex =
|
|
23348
|
+
const computedRowsNumber = computed100(() => isServerSide.value === true ? computedPagination.value.rowsNumber || 0 : filteredSortedRowsNumber.value);
|
|
23349
|
+
const firstRowIndex = computed100(() => {
|
|
23323
23350
|
const { page, rowsPerPage } = computedPagination.value;
|
|
23324
23351
|
return (page - 1) * rowsPerPage;
|
|
23325
23352
|
});
|
|
23326
|
-
const lastRowIndex =
|
|
23353
|
+
const lastRowIndex = computed100(() => {
|
|
23327
23354
|
const { page, rowsPerPage } = computedPagination.value;
|
|
23328
23355
|
return page * rowsPerPage;
|
|
23329
23356
|
});
|
|
23330
|
-
const isFirstPage =
|
|
23331
|
-
const pagesNumber =
|
|
23357
|
+
const isFirstPage = computed100(() => computedPagination.value.page === 1);
|
|
23358
|
+
const pagesNumber = computed100(() => computedPagination.value.rowsPerPage === 0 ? 1 : Math.max(
|
|
23332
23359
|
1,
|
|
23333
23360
|
Math.ceil(computedRowsNumber.value / computedPagination.value.rowsPerPage)
|
|
23334
23361
|
));
|
|
23335
|
-
const isLastPage =
|
|
23336
|
-
const computedRowsPerPageOptions =
|
|
23362
|
+
const isLastPage = computed100(() => lastRowIndex.value === 0 ? true : computedPagination.value.page >= pagesNumber.value);
|
|
23363
|
+
const computedRowsPerPageOptions = computed100(() => {
|
|
23337
23364
|
const opts = props4.rowsPerPageOptions.includes(innerPagination.value.rowsPerPage) ? props4.rowsPerPageOptions : [innerPagination.value.rowsPerPage].concat(props4.rowsPerPageOptions);
|
|
23338
23365
|
return opts.map((count) => ({
|
|
23339
23366
|
label: count === 0 ? $q.lang.table.allRows : "" + count,
|
|
@@ -23386,7 +23413,7 @@ function useTablePagination(vm2, innerPagination, computedPagination, isServerSi
|
|
|
23386
23413
|
}
|
|
23387
23414
|
|
|
23388
23415
|
// src/components/table/table-row-selection.js
|
|
23389
|
-
import { computed as
|
|
23416
|
+
import { computed as computed101 } from "vue";
|
|
23390
23417
|
var useTableRowSelectionProps = {
|
|
23391
23418
|
selection: {
|
|
23392
23419
|
type: String,
|
|
@@ -23400,31 +23427,31 @@ var useTableRowSelectionProps = {
|
|
|
23400
23427
|
};
|
|
23401
23428
|
var useTableRowSelectionEmits = ["update:selected", "selection"];
|
|
23402
23429
|
function useTableRowSelection(props4, emit, computedRows, getRowKey) {
|
|
23403
|
-
const selectedKeys =
|
|
23430
|
+
const selectedKeys = computed101(() => {
|
|
23404
23431
|
const keys = {};
|
|
23405
23432
|
props4.selected.map(getRowKey.value).forEach((key) => {
|
|
23406
23433
|
keys[key] = true;
|
|
23407
23434
|
});
|
|
23408
23435
|
return keys;
|
|
23409
23436
|
});
|
|
23410
|
-
const hasSelectionMode =
|
|
23437
|
+
const hasSelectionMode = computed101(() => {
|
|
23411
23438
|
return props4.selection !== "none";
|
|
23412
23439
|
});
|
|
23413
|
-
const singleSelection =
|
|
23440
|
+
const singleSelection = computed101(() => {
|
|
23414
23441
|
return props4.selection === "single";
|
|
23415
23442
|
});
|
|
23416
|
-
const multipleSelection =
|
|
23443
|
+
const multipleSelection = computed101(() => {
|
|
23417
23444
|
return props4.selection === "multiple";
|
|
23418
23445
|
});
|
|
23419
|
-
const allRowsSelected =
|
|
23446
|
+
const allRowsSelected = computed101(
|
|
23420
23447
|
() => computedRows.value.length !== 0 && computedRows.value.every(
|
|
23421
23448
|
(row) => selectedKeys.value[getRowKey.value(row)] === true
|
|
23422
23449
|
)
|
|
23423
23450
|
);
|
|
23424
|
-
const someRowsSelected =
|
|
23451
|
+
const someRowsSelected = computed101(
|
|
23425
23452
|
() => allRowsSelected.value !== true && computedRows.value.some((row) => selectedKeys.value[getRowKey.value(row)] === true)
|
|
23426
23453
|
);
|
|
23427
|
-
const rowsSelectedNumber =
|
|
23454
|
+
const rowsSelectedNumber = computed101(() => props4.selected.length);
|
|
23428
23455
|
function isRowSelected(key) {
|
|
23429
23456
|
return selectedKeys.value[key] === true;
|
|
23430
23457
|
}
|
|
@@ -23497,12 +23524,12 @@ function useTableRowExpand(props4, emit) {
|
|
|
23497
23524
|
}
|
|
23498
23525
|
|
|
23499
23526
|
// src/components/table/table-column-selection.js
|
|
23500
|
-
import { computed as
|
|
23527
|
+
import { computed as computed102 } from "vue";
|
|
23501
23528
|
var useTableColumnSelectionProps = {
|
|
23502
23529
|
visibleColumns: Array
|
|
23503
23530
|
};
|
|
23504
23531
|
function useTableColumnSelection(props4, computedPagination, hasSelectionMode) {
|
|
23505
|
-
const colList =
|
|
23532
|
+
const colList = computed102(() => {
|
|
23506
23533
|
if (props4.columns !== void 0) {
|
|
23507
23534
|
return props4.columns;
|
|
23508
23535
|
}
|
|
@@ -23515,7 +23542,7 @@ function useTableColumnSelection(props4, computedPagination, hasSelectionMode) {
|
|
|
23515
23542
|
sortable: true
|
|
23516
23543
|
})) : [];
|
|
23517
23544
|
});
|
|
23518
|
-
const computedCols =
|
|
23545
|
+
const computedCols = computed102(() => {
|
|
23519
23546
|
const { sortBy, descending } = computedPagination.value;
|
|
23520
23547
|
const cols = props4.visibleColumns !== void 0 ? colList.value.filter((col) => col.required === true || props4.visibleColumns.includes(col.name) === true) : colList.value;
|
|
23521
23548
|
return cols.map((col) => {
|
|
@@ -23531,14 +23558,14 @@ function useTableColumnSelection(props4, computedPagination, hasSelectionMode) {
|
|
|
23531
23558
|
};
|
|
23532
23559
|
});
|
|
23533
23560
|
});
|
|
23534
|
-
const computedColsMap =
|
|
23561
|
+
const computedColsMap = computed102(() => {
|
|
23535
23562
|
const names = {};
|
|
23536
23563
|
computedCols.value.forEach((col) => {
|
|
23537
23564
|
names[col.name] = col;
|
|
23538
23565
|
});
|
|
23539
23566
|
return names;
|
|
23540
23567
|
});
|
|
23541
|
-
const computedColspan =
|
|
23568
|
+
const computedColspan = computed102(() => {
|
|
23542
23569
|
return props4.tableColspan !== void 0 ? props4.tableColspan : computedCols.value.length + (hasSelectionMode.value === true ? 1 : 0);
|
|
23543
23570
|
});
|
|
23544
23571
|
return {
|
|
@@ -23640,17 +23667,17 @@ var QTable_default = createComponent({
|
|
|
23640
23667
|
const { proxy: { $q } } = vm2;
|
|
23641
23668
|
const isDark = use_dark_default(props4, $q);
|
|
23642
23669
|
const { inFullscreen, toggleFullscreen } = use_fullscreen_default();
|
|
23643
|
-
const getRowKey =
|
|
23670
|
+
const getRowKey = computed103(() => typeof props4.rowKey === "function" ? props4.rowKey : (row) => row[props4.rowKey]);
|
|
23644
23671
|
const rootRef = ref62(null);
|
|
23645
23672
|
const virtScrollRef = ref62(null);
|
|
23646
|
-
const hasVirtScroll =
|
|
23647
|
-
const cardDefaultClass =
|
|
23673
|
+
const hasVirtScroll = computed103(() => props4.grid !== true && props4.virtualScroll === true);
|
|
23674
|
+
const cardDefaultClass = computed103(
|
|
23648
23675
|
() => " 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" : "")
|
|
23649
23676
|
);
|
|
23650
|
-
const containerClass =
|
|
23677
|
+
const containerClass = computed103(
|
|
23651
23678
|
() => `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" : "")
|
|
23652
23679
|
);
|
|
23653
|
-
const rootContainerClass =
|
|
23680
|
+
const rootContainerClass = computed103(
|
|
23654
23681
|
() => containerClass.value + (props4.loading === true ? " q-table--loading" : "")
|
|
23655
23682
|
);
|
|
23656
23683
|
watch44(
|
|
@@ -23668,7 +23695,7 @@ var QTable_default = createComponent({
|
|
|
23668
23695
|
} = useTablePaginationState(vm2, getCellValue);
|
|
23669
23696
|
const { computedFilterMethod } = useTableFilter(props4, setPagination);
|
|
23670
23697
|
const { isRowExpanded, setExpanded, updateExpanded } = useTableRowExpand(props4, emit);
|
|
23671
|
-
const filteredSortedRows =
|
|
23698
|
+
const filteredSortedRows = computed103(() => {
|
|
23672
23699
|
let rows = props4.rows;
|
|
23673
23700
|
if (isServerSide.value === true || rows.length === 0) {
|
|
23674
23701
|
return rows;
|
|
@@ -23686,8 +23713,8 @@ var QTable_default = createComponent({
|
|
|
23686
23713
|
}
|
|
23687
23714
|
return rows;
|
|
23688
23715
|
});
|
|
23689
|
-
const filteredSortedRowsNumber =
|
|
23690
|
-
const computedRows =
|
|
23716
|
+
const filteredSortedRowsNumber = computed103(() => filteredSortedRows.value.length);
|
|
23717
|
+
const computedRows = computed103(() => {
|
|
23691
23718
|
let rows = filteredSortedRows.value;
|
|
23692
23719
|
if (isServerSide.value === true) {
|
|
23693
23720
|
return rows;
|
|
@@ -23730,8 +23757,8 @@ var QTable_default = createComponent({
|
|
|
23730
23757
|
nextPage,
|
|
23731
23758
|
lastPage
|
|
23732
23759
|
} = useTablePagination(vm2, innerPagination, computedPagination, isServerSide, setPagination, filteredSortedRowsNumber);
|
|
23733
|
-
const nothingToDisplay =
|
|
23734
|
-
const virtProps =
|
|
23760
|
+
const nothingToDisplay = computed103(() => computedRows.value.length === 0);
|
|
23761
|
+
const virtProps = computed103(() => {
|
|
23735
23762
|
const acc = {};
|
|
23736
23763
|
commonVirtScrollPropsList.forEach((p) => {
|
|
23737
23764
|
acc[p] = props4[p];
|
|
@@ -23957,7 +23984,7 @@ var QTable_default = createComponent({
|
|
|
23957
23984
|
const val = typeof col.field === "function" ? col.field(row) : row[col.field];
|
|
23958
23985
|
return col.format !== void 0 ? col.format(val, row) : val;
|
|
23959
23986
|
}
|
|
23960
|
-
const marginalsScope =
|
|
23987
|
+
const marginalsScope = computed103(() => ({
|
|
23961
23988
|
pagination: computedPagination.value,
|
|
23962
23989
|
pagesNumber: pagesNumber.value,
|
|
23963
23990
|
isFirstPage: isFirstPage.value,
|
|
@@ -24008,7 +24035,7 @@ var QTable_default = createComponent({
|
|
|
24008
24035
|
if (child.length === 0) return;
|
|
24009
24036
|
return h121("div", { class: topClass }, child);
|
|
24010
24037
|
}
|
|
24011
|
-
const headerSelectedValue =
|
|
24038
|
+
const headerSelectedValue = computed103(() => someRowsSelected.value === true ? null : allRowsSelected.value);
|
|
24012
24039
|
function getTHead() {
|
|
24013
24040
|
const child = getTHeadTR();
|
|
24014
24041
|
if (props4.loading === true && slots.loading === void 0) {
|
|
@@ -24092,7 +24119,7 @@ var QTable_default = createComponent({
|
|
|
24092
24119
|
val
|
|
24093
24120
|
);
|
|
24094
24121
|
}
|
|
24095
|
-
const navIcon =
|
|
24122
|
+
const navIcon = computed103(() => {
|
|
24096
24123
|
const ico = [
|
|
24097
24124
|
props4.iconFirstPage || $q.iconSet.table.firstPage,
|
|
24098
24125
|
props4.iconPrevPage || $q.iconSet.table.prevPage,
|
|
@@ -24366,7 +24393,7 @@ var QTable_default = createComponent({
|
|
|
24366
24393
|
});
|
|
24367
24394
|
|
|
24368
24395
|
// src/components/table/QTr.js
|
|
24369
|
-
import { h as h122, computed as
|
|
24396
|
+
import { h as h122, computed as computed104 } from "vue";
|
|
24370
24397
|
var QTr_default = createComponent({
|
|
24371
24398
|
name: "QTr",
|
|
24372
24399
|
props: {
|
|
@@ -24374,7 +24401,7 @@ var QTr_default = createComponent({
|
|
|
24374
24401
|
noHover: Boolean
|
|
24375
24402
|
},
|
|
24376
24403
|
setup(props4, { slots }) {
|
|
24377
|
-
const classes =
|
|
24404
|
+
const classes = computed104(
|
|
24378
24405
|
() => "q-tr" + (props4.props === void 0 || props4.props.header === true ? "" : " " + props4.props.__trClass) + (props4.noHover === true ? " q-tr--no-hover" : "")
|
|
24379
24406
|
);
|
|
24380
24407
|
return () => h122("tr", {
|
|
@@ -24385,7 +24412,7 @@ var QTr_default = createComponent({
|
|
|
24385
24412
|
});
|
|
24386
24413
|
|
|
24387
24414
|
// src/components/table/QTd.js
|
|
24388
|
-
import { h as h123, computed as
|
|
24415
|
+
import { h as h123, computed as computed105, getCurrentInstance as getCurrentInstance79 } from "vue";
|
|
24389
24416
|
var QTd_default = createComponent({
|
|
24390
24417
|
name: "QTd",
|
|
24391
24418
|
props: {
|
|
@@ -24395,7 +24422,7 @@ var QTd_default = createComponent({
|
|
|
24395
24422
|
},
|
|
24396
24423
|
setup(props4, { slots }) {
|
|
24397
24424
|
const vm2 = getCurrentInstance79();
|
|
24398
|
-
const classes =
|
|
24425
|
+
const classes = computed105(
|
|
24399
24426
|
() => "q-td" + (props4.autoWidth === true ? " q-table--col-auto-width" : "") + (props4.noHover === true ? " q-td--no-hover" : "") + " "
|
|
24400
24427
|
);
|
|
24401
24428
|
return () => {
|
|
@@ -24415,7 +24442,7 @@ var QTd_default = createComponent({
|
|
|
24415
24442
|
});
|
|
24416
24443
|
|
|
24417
24444
|
// src/components/tabs/QRouteTab.js
|
|
24418
|
-
import { computed as
|
|
24445
|
+
import { computed as computed106, watch as watch45 } from "vue";
|
|
24419
24446
|
var QRouteTab_default = createComponent({
|
|
24420
24447
|
name: "QRouteTab",
|
|
24421
24448
|
props: {
|
|
@@ -24432,7 +24459,7 @@ var QRouteTab_default = createComponent({
|
|
|
24432
24459
|
slots,
|
|
24433
24460
|
emit,
|
|
24434
24461
|
{
|
|
24435
|
-
exact:
|
|
24462
|
+
exact: computed106(() => props4.exact),
|
|
24436
24463
|
...routeData
|
|
24437
24464
|
}
|
|
24438
24465
|
);
|
|
@@ -24445,7 +24472,7 @@ var QRouteTab_default = createComponent({
|
|
|
24445
24472
|
});
|
|
24446
24473
|
|
|
24447
24474
|
// src/components/time/QTime.js
|
|
24448
|
-
import { h as h124, ref as ref63, computed as
|
|
24475
|
+
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";
|
|
24449
24476
|
function getViewByModel(model, withSeconds) {
|
|
24450
24477
|
if (model.hour !== null) {
|
|
24451
24478
|
if (model.minute === null) {
|
|
@@ -24504,9 +24531,9 @@ var QTime_default = createComponent({
|
|
|
24504
24531
|
const injectFormInput = useFormInject(formAttrs);
|
|
24505
24532
|
let draggingClockRect, dragCache;
|
|
24506
24533
|
const clockRef = ref63(null);
|
|
24507
|
-
const mask =
|
|
24508
|
-
const locale =
|
|
24509
|
-
const defaultDateModel =
|
|
24534
|
+
const mask = computed107(() => getMask());
|
|
24535
|
+
const locale = computed107(() => getLocale2());
|
|
24536
|
+
const defaultDateModel = computed107(() => getDefaultDateModel());
|
|
24510
24537
|
const model = __splitDate(
|
|
24511
24538
|
props4.modelValue,
|
|
24512
24539
|
mask.value,
|
|
@@ -24519,10 +24546,10 @@ var QTime_default = createComponent({
|
|
|
24519
24546
|
const view = ref63(getViewByModel(model));
|
|
24520
24547
|
const innerModel = ref63(model);
|
|
24521
24548
|
const isAM = ref63(model.hour === null || model.hour < 12);
|
|
24522
|
-
const classes =
|
|
24549
|
+
const classes = computed107(
|
|
24523
24550
|
() => `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" : "")
|
|
24524
24551
|
);
|
|
24525
|
-
const stringModel =
|
|
24552
|
+
const stringModel = computed107(() => {
|
|
24526
24553
|
const time = innerModel.value;
|
|
24527
24554
|
return {
|
|
24528
24555
|
hour: time.hour === null ? "--" : computedFormat24h.value === true ? pad(time.hour) : String(
|
|
@@ -24532,8 +24559,8 @@ var QTime_default = createComponent({
|
|
|
24532
24559
|
second: time.second === null ? "--" : pad(time.second)
|
|
24533
24560
|
};
|
|
24534
24561
|
});
|
|
24535
|
-
const computedFormat24h =
|
|
24536
|
-
const pointerStyle =
|
|
24562
|
+
const computedFormat24h = computed107(() => props4.format24h !== null ? props4.format24h : $q.lang.date.format24h);
|
|
24563
|
+
const pointerStyle = computed107(() => {
|
|
24537
24564
|
const forHour = view.value === "hour", divider = forHour === true ? 12 : 60, amount = innerModel.value[view.value], degrees = Math.round(amount * (360 / divider)) - 180;
|
|
24538
24565
|
let transform = `rotate(${degrees}deg) translateX(-50%)`;
|
|
24539
24566
|
if (forHour === true && computedFormat24h.value === true && innerModel.value.hour >= 12) {
|
|
@@ -24541,12 +24568,12 @@ var QTime_default = createComponent({
|
|
|
24541
24568
|
}
|
|
24542
24569
|
return { transform };
|
|
24543
24570
|
});
|
|
24544
|
-
const minLink =
|
|
24545
|
-
const secLink =
|
|
24546
|
-
const hourInSelection =
|
|
24547
|
-
const minuteInSelection =
|
|
24548
|
-
const secondInSelection =
|
|
24549
|
-
const validHours =
|
|
24571
|
+
const minLink = computed107(() => innerModel.value.hour !== null);
|
|
24572
|
+
const secLink = computed107(() => minLink.value === true && innerModel.value.minute !== null);
|
|
24573
|
+
const hourInSelection = computed107(() => props4.hourOptions !== void 0 ? (val) => props4.hourOptions.includes(val) : props4.options !== void 0 ? (val) => props4.options(val, null, null) : null);
|
|
24574
|
+
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);
|
|
24575
|
+
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);
|
|
24576
|
+
const validHours = computed107(() => {
|
|
24550
24577
|
if (hourInSelection.value === null) {
|
|
24551
24578
|
return null;
|
|
24552
24579
|
}
|
|
@@ -24554,9 +24581,9 @@ var QTime_default = createComponent({
|
|
|
24554
24581
|
const pm = getValidValues(12, 11, hourInSelection.value);
|
|
24555
24582
|
return { am, pm, values: am.values.concat(pm.values) };
|
|
24556
24583
|
});
|
|
24557
|
-
const validMinutes =
|
|
24558
|
-
const validSeconds =
|
|
24559
|
-
const viewValidOptions =
|
|
24584
|
+
const validMinutes = computed107(() => minuteInSelection.value !== null ? getValidValues(0, 59, minuteInSelection.value) : null);
|
|
24585
|
+
const validSeconds = computed107(() => secondInSelection.value !== null ? getValidValues(0, 59, secondInSelection.value) : null);
|
|
24586
|
+
const viewValidOptions = computed107(() => {
|
|
24560
24587
|
switch (view.value) {
|
|
24561
24588
|
case "hour":
|
|
24562
24589
|
return validHours.value;
|
|
@@ -24566,7 +24593,7 @@ var QTime_default = createComponent({
|
|
|
24566
24593
|
return validSeconds.value;
|
|
24567
24594
|
}
|
|
24568
24595
|
});
|
|
24569
|
-
const positions =
|
|
24596
|
+
const positions = computed107(() => {
|
|
24570
24597
|
let start, end, offset2 = 0, step = 1;
|
|
24571
24598
|
const values = viewValidOptions.value !== null ? viewValidOptions.value.values : void 0;
|
|
24572
24599
|
if (view.value === "hour") {
|
|
@@ -24592,7 +24619,7 @@ var QTime_default = createComponent({
|
|
|
24592
24619
|
}
|
|
24593
24620
|
return pos;
|
|
24594
24621
|
});
|
|
24595
|
-
const clockDirectives =
|
|
24622
|
+
const clockDirectives = computed107(() => {
|
|
24596
24623
|
return [[
|
|
24597
24624
|
TouchPan_default,
|
|
24598
24625
|
onPan,
|
|
@@ -25068,7 +25095,7 @@ var QTime_default = createComponent({
|
|
|
25068
25095
|
});
|
|
25069
25096
|
|
|
25070
25097
|
// src/components/timeline/QTimeline.js
|
|
25071
|
-
import { h as h125, computed as
|
|
25098
|
+
import { h as h125, computed as computed108, provide as provide7, getCurrentInstance as getCurrentInstance81 } from "vue";
|
|
25072
25099
|
var QTimeline_default = createComponent({
|
|
25073
25100
|
name: "QTimeline",
|
|
25074
25101
|
props: {
|
|
@@ -25092,7 +25119,7 @@ var QTimeline_default = createComponent({
|
|
|
25092
25119
|
const vm2 = getCurrentInstance81();
|
|
25093
25120
|
const isDark = use_dark_default(props4, vm2.proxy.$q);
|
|
25094
25121
|
provide7(timelineKey, props4);
|
|
25095
|
-
const classes =
|
|
25122
|
+
const classes = computed108(
|
|
25096
25123
|
() => `q-timeline q-timeline--${props4.layout} q-timeline--${props4.layout}--${props4.side}` + (isDark.value === true ? " q-timeline--dark" : "")
|
|
25097
25124
|
);
|
|
25098
25125
|
return () => h125("ul", { class: classes.value }, hSlot(slots.default));
|
|
@@ -25100,7 +25127,7 @@ var QTimeline_default = createComponent({
|
|
|
25100
25127
|
});
|
|
25101
25128
|
|
|
25102
25129
|
// src/components/timeline/QTimelineEntry.js
|
|
25103
|
-
import { h as h126, computed as
|
|
25130
|
+
import { h as h126, computed as computed109, inject as inject11 } from "vue";
|
|
25104
25131
|
var QTimelineEntry_default = createComponent({
|
|
25105
25132
|
name: "QTimelineEntry",
|
|
25106
25133
|
props: {
|
|
@@ -25127,13 +25154,13 @@ var QTimelineEntry_default = createComponent({
|
|
|
25127
25154
|
console.error("QTimelineEntry needs to be child of QTimeline");
|
|
25128
25155
|
return emptyRenderFn;
|
|
25129
25156
|
}
|
|
25130
|
-
const classes =
|
|
25157
|
+
const classes = computed109(
|
|
25131
25158
|
() => `q-timeline__entry q-timeline__entry--${props4.side}` + (props4.icon !== void 0 || props4.avatar !== void 0 ? " q-timeline__entry--icon" : "")
|
|
25132
25159
|
);
|
|
25133
|
-
const dotClass =
|
|
25160
|
+
const dotClass = computed109(
|
|
25134
25161
|
() => `q-timeline__dot text-${props4.color || $timeline.color}`
|
|
25135
25162
|
);
|
|
25136
|
-
const reverse =
|
|
25163
|
+
const reverse = computed109(
|
|
25137
25164
|
() => $timeline.layout === "comfortable" && $timeline.side === "left"
|
|
25138
25165
|
);
|
|
25139
25166
|
return () => {
|
|
@@ -25188,14 +25215,14 @@ var QTimelineEntry_default = createComponent({
|
|
|
25188
25215
|
});
|
|
25189
25216
|
|
|
25190
25217
|
// src/components/toolbar/QToolbar.js
|
|
25191
|
-
import { h as h127, computed as
|
|
25218
|
+
import { h as h127, computed as computed110 } from "vue";
|
|
25192
25219
|
var QToolbar_default = createComponent({
|
|
25193
25220
|
name: "QToolbar",
|
|
25194
25221
|
props: {
|
|
25195
25222
|
inset: Boolean
|
|
25196
25223
|
},
|
|
25197
25224
|
setup(props4, { slots }) {
|
|
25198
|
-
const classes =
|
|
25225
|
+
const classes = computed110(
|
|
25199
25226
|
() => "q-toolbar row no-wrap items-center" + (props4.inset === true ? " q-toolbar--inset" : "")
|
|
25200
25227
|
);
|
|
25201
25228
|
return () => h127("div", { class: classes.value, role: "toolbar" }, hSlot(slots.default));
|
|
@@ -25203,14 +25230,14 @@ var QToolbar_default = createComponent({
|
|
|
25203
25230
|
});
|
|
25204
25231
|
|
|
25205
25232
|
// src/components/toolbar/QToolbarTitle.js
|
|
25206
|
-
import { h as h128, computed as
|
|
25233
|
+
import { h as h128, computed as computed111 } from "vue";
|
|
25207
25234
|
var QToolbarTitle_default = createComponent({
|
|
25208
25235
|
name: "QToolbarTitle",
|
|
25209
25236
|
props: {
|
|
25210
25237
|
shrink: Boolean
|
|
25211
25238
|
},
|
|
25212
25239
|
setup(props4, { slots }) {
|
|
25213
|
-
const classes =
|
|
25240
|
+
const classes = computed111(
|
|
25214
25241
|
() => "q-toolbar__title ellipsis" + (props4.shrink === true ? " col-shrink" : "")
|
|
25215
25242
|
);
|
|
25216
25243
|
return () => h128("div", { class: classes.value }, hSlot(slots.default));
|
|
@@ -25221,7 +25248,7 @@ var QToolbarTitle_default = createComponent({
|
|
|
25221
25248
|
import {
|
|
25222
25249
|
h as h129,
|
|
25223
25250
|
ref as ref64,
|
|
25224
|
-
computed as
|
|
25251
|
+
computed as computed112,
|
|
25225
25252
|
watch as watch47,
|
|
25226
25253
|
withDirectives as withDirectives10,
|
|
25227
25254
|
vShow as vShow2,
|
|
@@ -25297,22 +25324,22 @@ var QTree_default = createComponent({
|
|
|
25297
25324
|
onBeforeUpdate5(() => {
|
|
25298
25325
|
blurTargets = {};
|
|
25299
25326
|
});
|
|
25300
|
-
const classes =
|
|
25327
|
+
const classes = computed112(
|
|
25301
25328
|
() => `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}` : "")
|
|
25302
25329
|
);
|
|
25303
|
-
const hasSelection =
|
|
25304
|
-
const computedIcon =
|
|
25305
|
-
const computedControlColor =
|
|
25306
|
-
const textColorClass =
|
|
25307
|
-
const selectedColorClass =
|
|
25330
|
+
const hasSelection = computed112(() => props4.selected !== void 0);
|
|
25331
|
+
const computedIcon = computed112(() => props4.icon || $q.iconSet.tree.icon);
|
|
25332
|
+
const computedControlColor = computed112(() => props4.controlColor || props4.color);
|
|
25333
|
+
const textColorClass = computed112(() => props4.textColor !== void 0 ? ` text-${props4.textColor}` : "");
|
|
25334
|
+
const selectedColorClass = computed112(() => {
|
|
25308
25335
|
const color = props4.selectedColor || props4.color;
|
|
25309
25336
|
return color ? ` text-${color}` : "";
|
|
25310
25337
|
});
|
|
25311
|
-
const computedFilterMethod =
|
|
25338
|
+
const computedFilterMethod = computed112(() => props4.filterMethod !== void 0 ? props4.filterMethod : (node, filter) => {
|
|
25312
25339
|
const filt = filter.toLowerCase();
|
|
25313
25340
|
return node[props4.labelKey] && node[props4.labelKey].toLowerCase().indexOf(filt) !== -1;
|
|
25314
25341
|
});
|
|
25315
|
-
const meta =
|
|
25342
|
+
const meta = computed112(() => {
|
|
25316
25343
|
const meta2 = {};
|
|
25317
25344
|
const travel = (node, parent) => {
|
|
25318
25345
|
const tickStrategy = node.tickStrategy || (parent ? parent.tickStrategy : props4.tickStrategy);
|
|
@@ -25756,7 +25783,7 @@ var QTree_default = createComponent({
|
|
|
25756
25783
|
});
|
|
25757
25784
|
|
|
25758
25785
|
// src/components/uploader/uploader-core.js
|
|
25759
|
-
import { h as h130, ref as ref65, isRef, computed as
|
|
25786
|
+
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";
|
|
25760
25787
|
function getProgressLabel(p) {
|
|
25761
25788
|
return (p * 100).toFixed(2) + "%";
|
|
25762
25789
|
}
|
|
@@ -25809,7 +25836,7 @@ function getRenderer(getPlugin, expose) {
|
|
|
25809
25836
|
file.__progressLabel = getProgressLabel(file.__progress);
|
|
25810
25837
|
proxy.$forceUpdate();
|
|
25811
25838
|
}
|
|
25812
|
-
const editable =
|
|
25839
|
+
const editable = computed113(() => props4.disable !== true && props4.readonly !== true);
|
|
25813
25840
|
const dnd = ref65(false);
|
|
25814
25841
|
const rootRef = ref65(null);
|
|
25815
25842
|
const inputRef = ref65(null);
|
|
@@ -25844,20 +25871,20 @@ function getRenderer(getPlugin, expose) {
|
|
|
25844
25871
|
state.isBusy = ref65(false);
|
|
25845
25872
|
}
|
|
25846
25873
|
const uploadSize = ref65(0);
|
|
25847
|
-
const uploadProgress =
|
|
25848
|
-
const uploadProgressLabel =
|
|
25849
|
-
const uploadSizeLabel =
|
|
25850
|
-
const canAddFiles =
|
|
25874
|
+
const uploadProgress = computed113(() => uploadSize.value === 0 ? 0 : state.uploadedSize.value / uploadSize.value);
|
|
25875
|
+
const uploadProgressLabel = computed113(() => getProgressLabel(uploadProgress.value));
|
|
25876
|
+
const uploadSizeLabel = computed113(() => humanStorageSize(uploadSize.value));
|
|
25877
|
+
const canAddFiles = computed113(
|
|
25851
25878
|
() => 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)
|
|
25852
25879
|
);
|
|
25853
|
-
const canUpload =
|
|
25880
|
+
const canUpload = computed113(
|
|
25854
25881
|
() => editable.value === true && state.isBusy.value !== true && state.isUploading.value !== true && state.queuedFiles.value.length !== 0
|
|
25855
25882
|
);
|
|
25856
25883
|
provide8(uploaderKey, renderInput);
|
|
25857
|
-
const classes =
|
|
25884
|
+
const classes = computed113(
|
|
25858
25885
|
() => "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" : "")
|
|
25859
25886
|
);
|
|
25860
|
-
const colorClass =
|
|
25887
|
+
const colorClass = computed113(
|
|
25861
25888
|
() => "q-uploader__header" + (props4.color !== void 0 ? ` bg-${props4.color}` : "") + (props4.textColor !== void 0 ? ` text-${props4.textColor}` : "")
|
|
25862
25889
|
);
|
|
25863
25890
|
watch48(state.isUploading, (newVal, oldVal) => {
|
|
@@ -26153,7 +26180,7 @@ var create_uploader_component_default = ({ name: name2, props: props4, emits: em
|
|
|
26153
26180
|
});
|
|
26154
26181
|
|
|
26155
26182
|
// src/components/uploader/xhr-uploader-plugin.js
|
|
26156
|
-
import { ref as ref66, computed as
|
|
26183
|
+
import { ref as ref66, computed as computed114 } from "vue";
|
|
26157
26184
|
function getFn(prop) {
|
|
26158
26185
|
return typeof prop === "function" ? prop : () => prop;
|
|
26159
26186
|
}
|
|
@@ -26180,7 +26207,7 @@ function injectPlugin({ props: props4, emit, helpers }) {
|
|
|
26180
26207
|
const xhrs = ref66([]);
|
|
26181
26208
|
const promises = ref66([]);
|
|
26182
26209
|
const workingThreads = ref66(0);
|
|
26183
|
-
const xhrProps =
|
|
26210
|
+
const xhrProps = computed114(() => ({
|
|
26184
26211
|
url: getFn(props4.url),
|
|
26185
26212
|
method: getFn(props4.method),
|
|
26186
26213
|
headers: getFn(props4.headers),
|
|
@@ -26190,8 +26217,8 @@ function injectPlugin({ props: props4, emit, helpers }) {
|
|
|
26190
26217
|
sendRaw: getFn(props4.sendRaw),
|
|
26191
26218
|
batch: getFn(props4.batch)
|
|
26192
26219
|
}));
|
|
26193
|
-
const isUploading =
|
|
26194
|
-
const isBusy =
|
|
26220
|
+
const isUploading = computed114(() => workingThreads.value > 0);
|
|
26221
|
+
const isBusy = computed114(() => promises.value.length !== 0);
|
|
26195
26222
|
let abortPromises;
|
|
26196
26223
|
function abort() {
|
|
26197
26224
|
xhrs.value.forEach((x) => {
|
|
@@ -26371,7 +26398,7 @@ var QUploaderAddTrigger_default = createComponent({
|
|
|
26371
26398
|
});
|
|
26372
26399
|
|
|
26373
26400
|
// src/components/video/QVideo.js
|
|
26374
|
-
import { h as h131, computed as
|
|
26401
|
+
import { h as h131, computed as computed115 } from "vue";
|
|
26375
26402
|
var QVideo_default = createComponent({
|
|
26376
26403
|
name: "QVideo",
|
|
26377
26404
|
props: {
|
|
@@ -26396,7 +26423,7 @@ var QVideo_default = createComponent({
|
|
|
26396
26423
|
},
|
|
26397
26424
|
setup(props4) {
|
|
26398
26425
|
const ratioStyle = use_ratio_default(props4);
|
|
26399
|
-
const classes =
|
|
26426
|
+
const classes = computed115(
|
|
26400
26427
|
() => "q-video" + (props4.ratio !== void 0 ? " q-video--responsive" : "")
|
|
26401
26428
|
);
|
|
26402
26429
|
return () => h131("div", {
|
|
@@ -28410,7 +28437,7 @@ if (true) {
|
|
|
28410
28437
|
var Cookies_default = Plugin6;
|
|
28411
28438
|
|
|
28412
28439
|
// src/plugins/dialog/component/DialogPluginComponent.js
|
|
28413
|
-
import { h as h134, ref as ref69, computed as
|
|
28440
|
+
import { h as h134, ref as ref69, computed as computed116, watch as watch49, toRaw as toRaw3, getCurrentInstance as getCurrentInstance85 } from "vue";
|
|
28414
28441
|
var DialogPluginComponent_default = createComponent({
|
|
28415
28442
|
name: "DialogPluginComponent",
|
|
28416
28443
|
props: {
|
|
@@ -28445,32 +28472,32 @@ var DialogPluginComponent_default = createComponent({
|
|
|
28445
28472
|
const model = ref69(
|
|
28446
28473
|
props4.prompt !== void 0 ? props4.prompt.model : props4.options !== void 0 ? props4.options.model : void 0
|
|
28447
28474
|
);
|
|
28448
|
-
const classes =
|
|
28475
|
+
const classes = computed116(
|
|
28449
28476
|
() => "q-dialog-plugin" + (isDark.value === true ? " q-dialog-plugin--dark q-dark" : "") + (props4.progress !== false ? " q-dialog-plugin--progress" : "")
|
|
28450
28477
|
);
|
|
28451
|
-
const vmColor =
|
|
28478
|
+
const vmColor = computed116(
|
|
28452
28479
|
() => props4.color || (isDark.value === true ? "amber" : "primary")
|
|
28453
28480
|
);
|
|
28454
|
-
const spinner =
|
|
28481
|
+
const spinner = computed116(() => props4.progress === false ? null : isObject(props4.progress) === true ? {
|
|
28455
28482
|
component: props4.progress.spinner || QSpinner_default,
|
|
28456
28483
|
props: { color: props4.progress.color || vmColor.value }
|
|
28457
28484
|
} : {
|
|
28458
28485
|
component: QSpinner_default,
|
|
28459
28486
|
props: { color: vmColor.value }
|
|
28460
28487
|
});
|
|
28461
|
-
const hasForm =
|
|
28488
|
+
const hasForm = computed116(
|
|
28462
28489
|
() => props4.prompt !== void 0 || props4.options !== void 0
|
|
28463
28490
|
);
|
|
28464
|
-
const formProps =
|
|
28491
|
+
const formProps = computed116(() => {
|
|
28465
28492
|
if (hasForm.value !== true) {
|
|
28466
28493
|
return {};
|
|
28467
28494
|
}
|
|
28468
28495
|
const { model: model2, isValid: isValid2, items, ...formProps2 } = props4.prompt !== void 0 ? props4.prompt : props4.options;
|
|
28469
28496
|
return formProps2;
|
|
28470
28497
|
});
|
|
28471
|
-
const okLabel =
|
|
28472
|
-
const cancelLabel =
|
|
28473
|
-
const okDisabled =
|
|
28498
|
+
const okLabel = computed116(() => isObject(props4.ok) === true ? $q.lang.label.ok : props4.ok === true ? $q.lang.label.ok : props4.ok);
|
|
28499
|
+
const cancelLabel = computed116(() => isObject(props4.cancel) === true ? $q.lang.label.cancel : props4.cancel === true ? $q.lang.label.cancel : props4.cancel);
|
|
28500
|
+
const okDisabled = computed116(() => {
|
|
28474
28501
|
if (props4.prompt !== void 0) {
|
|
28475
28502
|
return props4.prompt.isValid !== void 0 && props4.prompt.isValid(model.value) !== true;
|
|
28476
28503
|
}
|
|
@@ -28479,7 +28506,7 @@ var DialogPluginComponent_default = createComponent({
|
|
|
28479
28506
|
}
|
|
28480
28507
|
return false;
|
|
28481
28508
|
});
|
|
28482
|
-
const okProps =
|
|
28509
|
+
const okProps = computed116(() => ({
|
|
28483
28510
|
color: vmColor.value,
|
|
28484
28511
|
label: okLabel.value,
|
|
28485
28512
|
ripple: false,
|
|
@@ -28488,7 +28515,7 @@ var DialogPluginComponent_default = createComponent({
|
|
|
28488
28515
|
"data-autofocus": props4.focus === "ok" && hasForm.value !== true || void 0,
|
|
28489
28516
|
onClick: onOk
|
|
28490
28517
|
}));
|
|
28491
|
-
const cancelProps =
|
|
28518
|
+
const cancelProps = computed116(() => ({
|
|
28492
28519
|
color: vmColor.value,
|
|
28493
28520
|
label: cancelLabel.value,
|
|
28494
28521
|
ripple: false,
|
|
@@ -29571,7 +29598,7 @@ useDialogPluginComponent.emits = emits2;
|
|
|
29571
29598
|
useDialogPluginComponent.emitsObject = get_emits_object_default(emits2);
|
|
29572
29599
|
|
|
29573
29600
|
// src/composables/use-meta/use-meta.js
|
|
29574
|
-
import { computed as
|
|
29601
|
+
import { computed as computed117, watch as watch50, onActivated as onActivated8, onDeactivated as onDeactivated10, onUnmounted as onUnmounted3, useSSRContext } from "vue";
|
|
29575
29602
|
function use_meta_default(metaOptions) {
|
|
29576
29603
|
if (false) {
|
|
29577
29604
|
const ssrContext = useSSRContext();
|
|
@@ -29581,7 +29608,7 @@ function use_meta_default(metaOptions) {
|
|
|
29581
29608
|
} else {
|
|
29582
29609
|
const meta = { active: true };
|
|
29583
29610
|
if (typeof metaOptions === "function") {
|
|
29584
|
-
const content =
|
|
29611
|
+
const content = computed117(metaOptions);
|
|
29585
29612
|
meta.val = content.value;
|
|
29586
29613
|
watch50(content, (val) => {
|
|
29587
29614
|
meta.val = val;
|
|
@@ -29919,7 +29946,7 @@ function runSequentialPromises(sequentialPromises, { threadsNumber = 1, abortOnF
|
|
|
29919
29946
|
|
|
29920
29947
|
// src/index.dev.js
|
|
29921
29948
|
var Quasar = {
|
|
29922
|
-
version: "2.18.
|
|
29949
|
+
version: "2.18.5",
|
|
29923
29950
|
install: install_quasar_default,
|
|
29924
29951
|
// TODO: remove in Qv3 (should only be used through the plugin)
|
|
29925
29952
|
// We provide a deprecated fallback here
|