quasar 2.18.3 → 2.18.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/QField.json +1 -1
- package/dist/api/QFile.json +1 -1
- package/dist/api/QInput.json +1 -1
- package/dist/api/QSelect.json +1 -1
- package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
- package/dist/icon-set/eva-icons.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v6.umd.prod.js +1 -1
- package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
- package/dist/icon-set/line-awesome.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
- package/dist/icon-set/material-icons.umd.prod.js +1 -1
- package/dist/icon-set/material-symbols-outlined.umd.prod.js +1 -1
- package/dist/icon-set/material-symbols-rounded.umd.prod.js +1 -1
- package/dist/icon-set/material-symbols-sharp.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v7.umd.prod.js +1 -1
- package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-symbols-outlined.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-symbols-rounded.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-symbols-sharp.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v7.umd.prod.js +1 -1
- package/dist/icon-set/svg-themify.umd.prod.js +1 -1
- package/dist/icon-set/themify.umd.prod.js +1 -1
- package/dist/lang/ar-TN.umd.prod.js +1 -1
- package/dist/lang/ar.umd.prod.js +1 -1
- package/dist/lang/az-Latn.umd.prod.js +1 -1
- package/dist/lang/bg.umd.prod.js +1 -1
- package/dist/lang/bn.umd.prod.js +1 -1
- package/dist/lang/bs-BA.umd.prod.js +1 -1
- package/dist/lang/ca.umd.prod.js +1 -1
- package/dist/lang/cs.umd.prod.js +1 -1
- package/dist/lang/da.umd.prod.js +1 -1
- package/dist/lang/de-CH.umd.prod.js +1 -1
- package/dist/lang/de-DE.umd.prod.js +1 -1
- package/dist/lang/de.umd.prod.js +1 -1
- package/dist/lang/el.umd.prod.js +1 -1
- package/dist/lang/en-GB.umd.prod.js +1 -1
- package/dist/lang/en-US.umd.prod.js +1 -1
- package/dist/lang/eo.umd.prod.js +1 -1
- package/dist/lang/es.umd.prod.js +1 -1
- package/dist/lang/et.umd.prod.js +1 -1
- package/dist/lang/eu.umd.prod.js +1 -1
- package/dist/lang/fa-IR.umd.prod.js +1 -1
- package/dist/lang/fa.umd.prod.js +1 -1
- package/dist/lang/fi.umd.prod.js +1 -1
- package/dist/lang/fr.umd.prod.js +1 -1
- package/dist/lang/gn.umd.prod.js +1 -1
- package/dist/lang/he.umd.prod.js +1 -1
- package/dist/lang/hi.umd.prod.js +1 -1
- package/dist/lang/hr.umd.prod.js +1 -1
- package/dist/lang/hu.umd.prod.js +1 -1
- package/dist/lang/id.umd.prod.js +1 -1
- package/dist/lang/is.umd.prod.js +1 -1
- package/dist/lang/it.umd.prod.js +1 -1
- package/dist/lang/ja.umd.prod.js +1 -1
- package/dist/lang/kk.umd.prod.js +1 -1
- package/dist/lang/km.umd.prod.js +1 -1
- package/dist/lang/ko-KR.umd.prod.js +1 -1
- package/dist/lang/kur-CKB.umd.prod.js +1 -1
- package/dist/lang/lt.umd.prod.js +1 -1
- package/dist/lang/lu.umd.prod.js +1 -1
- package/dist/lang/lv.umd.prod.js +1 -1
- package/dist/lang/mk.umd.prod.js +1 -1
- package/dist/lang/ml.umd.prod.js +1 -1
- package/dist/lang/mm.umd.prod.js +1 -1
- package/dist/lang/ms-MY.umd.prod.js +1 -1
- package/dist/lang/ms.umd.prod.js +1 -1
- package/dist/lang/my.umd.prod.js +1 -1
- package/dist/lang/nb-NO.umd.prod.js +1 -1
- package/dist/lang/nl.umd.prod.js +1 -1
- package/dist/lang/pl.umd.prod.js +1 -1
- package/dist/lang/pt-BR.umd.prod.js +1 -1
- package/dist/lang/pt.umd.prod.js +1 -1
- package/dist/lang/ro.umd.prod.js +1 -1
- package/dist/lang/ru.umd.prod.js +1 -1
- package/dist/lang/sk.umd.prod.js +1 -1
- package/dist/lang/sl.umd.prod.js +1 -1
- package/dist/lang/sm.umd.prod.js +1 -1
- package/dist/lang/sq.umd.prod.js +1 -1
- package/dist/lang/sr-CYR.umd.prod.js +1 -1
- package/dist/lang/sr.umd.prod.js +1 -1
- package/dist/lang/sv.umd.prod.js +1 -1
- package/dist/lang/ta.umd.prod.js +1 -1
- package/dist/lang/th.umd.prod.js +1 -1
- package/dist/lang/tl.umd.prod.js +1 -1
- package/dist/lang/tr.umd.prod.js +1 -1
- package/dist/lang/ug.umd.prod.js +1 -1
- package/dist/lang/uk.umd.prod.js +1 -1
- package/dist/lang/ur-PK.umd.prod.js +1 -1
- package/dist/lang/uz-Cyrl.umd.prod.js +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 +390 -361
- package/dist/quasar.sass +1 -1
- package/dist/quasar.server.prod.cjs +26 -26
- package/dist/quasar.server.prod.js +26 -26
- package/dist/quasar.umd.js +42 -13
- package/dist/quasar.umd.prod.js +29 -29
- 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 +1 -1
- package/src/components/input/use-mask.js +46 -13
- package/src/components/input/use-mask.json +55 -4
- package/src/composables/private.use-validate/use-validate.json +6 -6
package/dist/quasar.client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Quasar Framework v2.18.
|
|
2
|
+
* Quasar Framework v2.18.4
|
|
3
3
|
* (c) 2015-present Razvan Stoenescu
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1405,7 +1405,7 @@ function prepareApp(app2, uiOpts, pluginOpts) {
|
|
|
1405
1405
|
}
|
|
1406
1406
|
var install_quasar_default = false ? function(parentApp, opts = {}, ssrContext) {
|
|
1407
1407
|
const $q = {
|
|
1408
|
-
version: "2.18.
|
|
1408
|
+
version: "2.18.4",
|
|
1409
1409
|
config: opts.config || {}
|
|
1410
1410
|
};
|
|
1411
1411
|
Object.assign(ssrContext, {
|
|
@@ -1435,7 +1435,7 @@ var install_quasar_default = false ? function(parentApp, opts = {}, ssrContext)
|
|
|
1435
1435
|
ssrContext
|
|
1436
1436
|
});
|
|
1437
1437
|
} : function(parentApp, opts = {}) {
|
|
1438
|
-
const $q = { version: "2.18.
|
|
1438
|
+
const $q = { version: "2.18.4" };
|
|
1439
1439
|
if (globalConfigIsFrozen === false) {
|
|
1440
1440
|
if (opts.config !== void 0) {
|
|
1441
1441
|
Object.assign(globalConfig, opts.config);
|
|
@@ -16242,10 +16242,10 @@ var QInnerLoading_default = createComponent({
|
|
|
16242
16242
|
});
|
|
16243
16243
|
|
|
16244
16244
|
// src/components/input/QInput.js
|
|
16245
|
-
import { h as h61, ref as ref39, computed as
|
|
16245
|
+
import { h as h61, ref as ref39, computed as computed68, watch as watch26, onBeforeUnmount as onBeforeUnmount27, onMounted as onMounted18, nextTick as nextTick13, getCurrentInstance as getCurrentInstance49 } from "vue";
|
|
16246
16246
|
|
|
16247
16247
|
// src/components/input/use-mask.js
|
|
16248
|
-
import { ref as ref38, watch as watch25, nextTick as nextTick12 } from "vue";
|
|
16248
|
+
import { ref as ref38, computed as computed67, watch as watch25, nextTick as nextTick12 } from "vue";
|
|
16249
16249
|
var NAMED_MASKS = {
|
|
16250
16250
|
date: "####/##/##",
|
|
16251
16251
|
datetime: "####/##/## ##:##",
|
|
@@ -16254,7 +16254,7 @@ var NAMED_MASKS = {
|
|
|
16254
16254
|
phone: "(###) ### - ####",
|
|
16255
16255
|
card: "#### #### #### ####"
|
|
16256
16256
|
};
|
|
16257
|
-
var
|
|
16257
|
+
var { tokenMap: DEFAULT_TOKEN_MAP, tokenKeys: DEFAULT_TOKEN_MAP_KEYS } = getTokenMap({
|
|
16258
16258
|
"#": { pattern: "[\\d]", negate: "[^\\d]" },
|
|
16259
16259
|
S: { pattern: "[a-zA-Z]", negate: "[^a-zA-Z]" },
|
|
16260
16260
|
N: { pattern: "[0-9a-zA-Z]", negate: "[^0-9a-zA-Z]" },
|
|
@@ -16262,22 +16262,51 @@ var TOKENS = {
|
|
|
16262
16262
|
a: { pattern: "[a-zA-Z]", negate: "[^a-zA-Z]", transform: (v) => v.toLocaleLowerCase() },
|
|
16263
16263
|
X: { pattern: "[0-9a-zA-Z]", negate: "[^0-9a-zA-Z]", transform: (v) => v.toLocaleUpperCase() },
|
|
16264
16264
|
x: { pattern: "[0-9a-zA-Z]", negate: "[^0-9a-zA-Z]", transform: (v) => v.toLocaleLowerCase() }
|
|
16265
|
-
};
|
|
16266
|
-
var KEYS = Object.keys(TOKENS);
|
|
16267
|
-
KEYS.forEach((key) => {
|
|
16268
|
-
TOKENS[key].regex = new RegExp(TOKENS[key].pattern);
|
|
16269
16265
|
});
|
|
16270
|
-
|
|
16266
|
+
function getTokenMap(tokens) {
|
|
16267
|
+
const tokenKeys = Object.keys(tokens);
|
|
16268
|
+
const tokenMap = {};
|
|
16269
|
+
tokenKeys.forEach((key) => {
|
|
16270
|
+
const entry = tokens[key];
|
|
16271
|
+
tokenMap[key] = {
|
|
16272
|
+
...entry,
|
|
16273
|
+
regex: new RegExp(entry.pattern)
|
|
16274
|
+
};
|
|
16275
|
+
});
|
|
16276
|
+
return { tokenMap, tokenKeys };
|
|
16277
|
+
}
|
|
16278
|
+
function getTokenRegexMask(keys) {
|
|
16279
|
+
return new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|([" + keys.join("") + "])|(.)", "g");
|
|
16280
|
+
}
|
|
16271
16281
|
var escRegex = /[.*+?^${}()|[\]\\]/g;
|
|
16282
|
+
var DEFAULT_TOKEN_REGEX_MASK = getTokenRegexMask(DEFAULT_TOKEN_MAP_KEYS);
|
|
16272
16283
|
var MARKER = String.fromCharCode(1);
|
|
16273
16284
|
var useMaskProps = {
|
|
16274
16285
|
mask: String,
|
|
16275
16286
|
reverseFillMask: Boolean,
|
|
16276
16287
|
fillMask: [Boolean, String],
|
|
16277
|
-
unmaskedValue: Boolean
|
|
16288
|
+
unmaskedValue: Boolean,
|
|
16289
|
+
maskTokens: Object
|
|
16278
16290
|
};
|
|
16279
16291
|
function use_mask_default(props4, emit, emitValue, inputRef) {
|
|
16280
16292
|
let maskMarked, maskReplaced, computedMask, computedUnmask, pastedTextStart, selectionAnchor;
|
|
16293
|
+
const tokens = computed67(() => {
|
|
16294
|
+
if (props4.maskTokens === void 0 || props4.maskTokens === null) {
|
|
16295
|
+
return {
|
|
16296
|
+
tokenMap: DEFAULT_TOKEN_MAP,
|
|
16297
|
+
tokenRegexMask: DEFAULT_TOKEN_REGEX_MASK
|
|
16298
|
+
};
|
|
16299
|
+
}
|
|
16300
|
+
const { tokenMap: customTokens } = getTokenMap(props4.maskTokens);
|
|
16301
|
+
const tokenMap = {
|
|
16302
|
+
...DEFAULT_TOKEN_MAP,
|
|
16303
|
+
...customTokens
|
|
16304
|
+
};
|
|
16305
|
+
return {
|
|
16306
|
+
tokenMap,
|
|
16307
|
+
tokenRegexMask: getTokenRegexMask(Object.keys(tokenMap))
|
|
16308
|
+
};
|
|
16309
|
+
});
|
|
16281
16310
|
const hasMask = ref38(null);
|
|
16282
16311
|
const innerValue = ref38(getInitialMaskedValue());
|
|
16283
16312
|
function getIsTypeText() {
|
|
@@ -16331,9 +16360,9 @@ function use_mask_default(props4, emit, emitValue, inputRef) {
|
|
|
16331
16360
|
}
|
|
16332
16361
|
const localComputedMask = NAMED_MASKS[props4.mask] === void 0 ? props4.mask : NAMED_MASKS[props4.mask], fillChar = typeof props4.fillMask === "string" && props4.fillMask.length !== 0 ? props4.fillMask.slice(0, 1) : "_", fillCharEscaped = fillChar.replace(escRegex, "\\$&"), unmask = [], extract = [], mask = [];
|
|
16333
16362
|
let firstMatch = props4.reverseFillMask === true, unmaskChar = "", negateChar = "";
|
|
16334
|
-
localComputedMask.replace(tokenRegexMask, (_, char1, esc, token2, char2) => {
|
|
16363
|
+
localComputedMask.replace(tokens.value.tokenRegexMask, (_, char1, esc, token2, char2) => {
|
|
16335
16364
|
if (token2 !== void 0) {
|
|
16336
|
-
const c =
|
|
16365
|
+
const c = tokens.value.tokenMap[token2];
|
|
16337
16366
|
mask.push(c);
|
|
16338
16367
|
negateChar = c.negate;
|
|
16339
16368
|
if (firstMatch === true) {
|
|
@@ -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,7 +18419,7 @@ var QPagination_default = createComponent({
|
|
|
18390
18419
|
function setByOffset(offset2) {
|
|
18391
18420
|
model.value = model.value + offset2;
|
|
18392
18421
|
}
|
|
18393
|
-
const inputEvents =
|
|
18422
|
+
const inputEvents = computed81(() => {
|
|
18394
18423
|
function updateModel2() {
|
|
18395
18424
|
model.value = newPage.value;
|
|
18396
18425
|
newPage.value = null;
|
|
@@ -18714,7 +18743,7 @@ var QParallax_default = createComponent({
|
|
|
18714
18743
|
});
|
|
18715
18744
|
|
|
18716
18745
|
// src/components/popup-edit/QPopupEdit.js
|
|
18717
|
-
import { h as h77, ref as ref47, computed as
|
|
18746
|
+
import { h as h77, ref as ref47, computed as computed82, nextTick as nextTick14, getCurrentInstance as getCurrentInstance62 } from "vue";
|
|
18718
18747
|
|
|
18719
18748
|
// src/utils/clone/clone.js
|
|
18720
18749
|
function cloneDeep(data, hash = /* @__PURE__ */ new WeakMap()) {
|
|
@@ -18789,7 +18818,7 @@ var QPopupEdit_default = createComponent({
|
|
|
18789
18818
|
const initialValue = ref47("");
|
|
18790
18819
|
const currentModel = ref47("");
|
|
18791
18820
|
let validated = false;
|
|
18792
|
-
const scope =
|
|
18821
|
+
const scope = computed82(() => {
|
|
18793
18822
|
return injectProp({
|
|
18794
18823
|
initialValue: initialValue.value,
|
|
18795
18824
|
validate: props4.validate,
|
|
@@ -18900,7 +18929,7 @@ var QPopupEdit_default = createComponent({
|
|
|
18900
18929
|
});
|
|
18901
18930
|
|
|
18902
18931
|
// src/components/popup-proxy/QPopupProxy.js
|
|
18903
|
-
import { h as h78, ref as ref48, computed as
|
|
18932
|
+
import { h as h78, ref as ref48, computed as computed83, watch as watch33, getCurrentInstance as getCurrentInstance63 } from "vue";
|
|
18904
18933
|
var QPopupProxy_default = createComponent({
|
|
18905
18934
|
name: "QPopupProxy",
|
|
18906
18935
|
props: {
|
|
@@ -18916,13 +18945,13 @@ var QPopupProxy_default = createComponent({
|
|
|
18916
18945
|
const { $q } = proxy;
|
|
18917
18946
|
const showing = ref48(false);
|
|
18918
18947
|
const popupRef = ref48(null);
|
|
18919
|
-
const breakpoint =
|
|
18948
|
+
const breakpoint = computed83(() => parseInt(props4.breakpoint, 10));
|
|
18920
18949
|
const { canShow } = use_anchor_default({ showing });
|
|
18921
18950
|
function getType() {
|
|
18922
18951
|
return $q.screen.width < breakpoint.value || $q.screen.height < breakpoint.value ? "dialog" : "menu";
|
|
18923
18952
|
}
|
|
18924
18953
|
const type = ref48(getType());
|
|
18925
|
-
const popupProps =
|
|
18954
|
+
const popupProps = computed83(
|
|
18926
18955
|
() => type.value === "menu" ? { maxHeight: "99vh" } : {}
|
|
18927
18956
|
);
|
|
18928
18957
|
watch33(() => getType(), (val) => {
|
|
@@ -18980,7 +19009,7 @@ var QPopupProxy_default = createComponent({
|
|
|
18980
19009
|
});
|
|
18981
19010
|
|
|
18982
19011
|
// src/components/linear-progress/QLinearProgress.js
|
|
18983
|
-
import { h as h79, computed as
|
|
19012
|
+
import { h as h79, computed as computed84, getCurrentInstance as getCurrentInstance64 } from "vue";
|
|
18984
19013
|
var defaultSizes3 = {
|
|
18985
19014
|
xs: 2,
|
|
18986
19015
|
sm: 4,
|
|
@@ -19020,26 +19049,26 @@ var QLinearProgress_default = createComponent({
|
|
|
19020
19049
|
const { proxy } = getCurrentInstance64();
|
|
19021
19050
|
const isDark = use_dark_default(props4, proxy.$q);
|
|
19022
19051
|
const sizeStyle = use_size_default(props4, defaultSizes3);
|
|
19023
|
-
const motion =
|
|
19024
|
-
const widthReverse =
|
|
19025
|
-
const style2 =
|
|
19052
|
+
const motion = computed84(() => props4.indeterminate === true || props4.query === true);
|
|
19053
|
+
const widthReverse = computed84(() => props4.reverse !== props4.query);
|
|
19054
|
+
const style2 = computed84(() => ({
|
|
19026
19055
|
...sizeStyle.value !== null ? sizeStyle.value : {},
|
|
19027
19056
|
"--q-linear-progress-speed": `${props4.animationSpeed}ms`
|
|
19028
19057
|
}));
|
|
19029
|
-
const classes =
|
|
19058
|
+
const classes = computed84(
|
|
19030
19059
|
() => "q-linear-progress" + (props4.color !== void 0 ? ` text-${props4.color}` : "") + (props4.reverse === true || props4.query === true ? " q-linear-progress--reverse" : "") + (props4.rounded === true ? " rounded-borders" : "")
|
|
19031
19060
|
);
|
|
19032
|
-
const trackStyle =
|
|
19033
|
-
const transitionSuffix =
|
|
19034
|
-
const trackClass =
|
|
19061
|
+
const trackStyle = computed84(() => width2(props4.buffer !== void 0 ? props4.buffer : 1, widthReverse.value, proxy.$q));
|
|
19062
|
+
const transitionSuffix = computed84(() => `with${props4.instantFeedback === true ? "out" : ""}-transition`);
|
|
19063
|
+
const trackClass = computed84(
|
|
19035
19064
|
() => `q-linear-progress__track absolute-full q-linear-progress__track--${transitionSuffix.value} q-linear-progress__track--${isDark.value === true ? "dark" : "light"}` + (props4.trackColor !== void 0 ? ` bg-${props4.trackColor}` : "")
|
|
19036
19065
|
);
|
|
19037
|
-
const modelStyle =
|
|
19038
|
-
const modelClass =
|
|
19066
|
+
const modelStyle = computed84(() => width2(motion.value === true ? 1 : props4.value, widthReverse.value, proxy.$q));
|
|
19067
|
+
const modelClass = computed84(
|
|
19039
19068
|
() => `q-linear-progress__model absolute-full q-linear-progress__model--${transitionSuffix.value} q-linear-progress__model--${motion.value === true ? "in" : ""}determinate`
|
|
19040
19069
|
);
|
|
19041
|
-
const stripeStyle =
|
|
19042
|
-
const stripeClass =
|
|
19070
|
+
const stripeStyle = computed84(() => ({ width: `${props4.value * 100}%` }));
|
|
19071
|
+
const stripeClass = computed84(
|
|
19043
19072
|
() => `q-linear-progress__stripe absolute-${props4.reverse === true ? "right" : "left"} q-linear-progress__stripe--${transitionSuffix.value}`
|
|
19044
19073
|
);
|
|
19045
19074
|
return () => {
|
|
@@ -19072,7 +19101,7 @@ var QLinearProgress_default = createComponent({
|
|
|
19072
19101
|
});
|
|
19073
19102
|
|
|
19074
19103
|
// src/components/pull-to-refresh/QPullToRefresh.js
|
|
19075
|
-
import { h as h80, ref as ref49, computed as
|
|
19104
|
+
import { h as h80, ref as ref49, computed as computed85, watch as watch34, onMounted as onMounted21, onBeforeUnmount as onBeforeUnmount31, getCurrentInstance as getCurrentInstance65 } from "vue";
|
|
19076
19105
|
var PULLER_HEIGHT = 40;
|
|
19077
19106
|
var OFFSET_TOP = 20;
|
|
19078
19107
|
var QPullToRefresh_default = createComponent({
|
|
@@ -19095,11 +19124,11 @@ var QPullToRefresh_default = createComponent({
|
|
|
19095
19124
|
const pullPosition = ref49(-PULLER_HEIGHT);
|
|
19096
19125
|
const animating = ref49(false);
|
|
19097
19126
|
const positionCSS = ref49({});
|
|
19098
|
-
const style2 =
|
|
19127
|
+
const style2 = computed85(() => ({
|
|
19099
19128
|
opacity: pullRatio.value,
|
|
19100
19129
|
transform: `translateY(${pullPosition.value}px) rotate(${pullRatio.value * 360}deg)`
|
|
19101
19130
|
}));
|
|
19102
|
-
const classes =
|
|
19131
|
+
const classes = computed85(
|
|
19103
19132
|
() => "q-pull-to-refresh__puller row flex-center" + (animating.value === true ? " q-pull-to-refresh__puller--animating" : "") + (props4.bgColor !== void 0 ? ` bg-${props4.bgColor}` : "")
|
|
19104
19133
|
);
|
|
19105
19134
|
function pull(event) {
|
|
@@ -19145,7 +19174,7 @@ var QPullToRefresh_default = createComponent({
|
|
|
19145
19174
|
state.value = newState;
|
|
19146
19175
|
}
|
|
19147
19176
|
}
|
|
19148
|
-
const directives =
|
|
19177
|
+
const directives = computed85(() => {
|
|
19149
19178
|
const modifiers = { down: true };
|
|
19150
19179
|
if (props4.noMouse !== true) {
|
|
19151
19180
|
modifiers.mouse = true;
|
|
@@ -19157,7 +19186,7 @@ var QPullToRefresh_default = createComponent({
|
|
|
19157
19186
|
modifiers
|
|
19158
19187
|
]];
|
|
19159
19188
|
});
|
|
19160
|
-
const contentClass =
|
|
19189
|
+
const contentClass = computed85(
|
|
19161
19190
|
() => `q-pull-to-refresh__content${pulling.value === true ? " no-pointer-events" : ""}`
|
|
19162
19191
|
);
|
|
19163
19192
|
function trigger3() {
|
|
@@ -19225,7 +19254,7 @@ var QPullToRefresh_default = createComponent({
|
|
|
19225
19254
|
});
|
|
19226
19255
|
|
|
19227
19256
|
// src/components/range/QRange.js
|
|
19228
|
-
import { h as h81, ref as ref50, computed as
|
|
19257
|
+
import { h as h81, ref as ref50, computed as computed86, watch as watch35, getCurrentInstance as getCurrentInstance66 } from "vue";
|
|
19229
19258
|
var dragType = {
|
|
19230
19259
|
MIN: 0,
|
|
19231
19260
|
RANGE: 1,
|
|
@@ -19258,7 +19287,7 @@ var QRange_default = createComponent({
|
|
|
19258
19287
|
updateValue: updateValue2,
|
|
19259
19288
|
updatePosition,
|
|
19260
19289
|
getDragging,
|
|
19261
|
-
formAttrs:
|
|
19290
|
+
formAttrs: computed86(() => ({
|
|
19262
19291
|
type: "hidden",
|
|
19263
19292
|
name: props4.name,
|
|
19264
19293
|
value: `${props4.modelValue.min}|${props4.modelValue.max}`
|
|
@@ -19277,11 +19306,11 @@ var QRange_default = createComponent({
|
|
|
19277
19306
|
normalizeModel
|
|
19278
19307
|
);
|
|
19279
19308
|
normalizeModel();
|
|
19280
|
-
const modelMinRatio =
|
|
19281
|
-
const modelMaxRatio =
|
|
19282
|
-
const ratioMin =
|
|
19283
|
-
const ratioMax =
|
|
19284
|
-
const selectionBarStyle =
|
|
19309
|
+
const modelMinRatio = computed86(() => methods.convertModelToRatio(model.value.min));
|
|
19310
|
+
const modelMaxRatio = computed86(() => methods.convertModelToRatio(model.value.max));
|
|
19311
|
+
const ratioMin = computed86(() => state.active.value === true ? curMinRatio.value : modelMinRatio.value);
|
|
19312
|
+
const ratioMax = computed86(() => state.active.value === true ? curMaxRatio.value : modelMaxRatio.value);
|
|
19313
|
+
const selectionBarStyle = computed86(() => {
|
|
19285
19314
|
const acc = {
|
|
19286
19315
|
[state.positionProp.value]: `${100 * ratioMin.value}%`,
|
|
19287
19316
|
[state.sizeProp.value]: `${100 * (ratioMax.value - ratioMin.value)}%`
|
|
@@ -19291,7 +19320,7 @@ var QRange_default = createComponent({
|
|
|
19291
19320
|
}
|
|
19292
19321
|
return acc;
|
|
19293
19322
|
});
|
|
19294
|
-
const trackContainerEvents =
|
|
19323
|
+
const trackContainerEvents = computed86(() => {
|
|
19295
19324
|
if (state.editable.value !== true) {
|
|
19296
19325
|
return {};
|
|
19297
19326
|
}
|
|
@@ -19321,10 +19350,10 @@ var QRange_default = createComponent({
|
|
|
19321
19350
|
onKeyup: methods.onKeyup
|
|
19322
19351
|
} : {};
|
|
19323
19352
|
}
|
|
19324
|
-
const thumbTabindex =
|
|
19325
|
-
const trackContainerTabindex =
|
|
19353
|
+
const thumbTabindex = computed86(() => props4.dragOnlyRange !== true ? state.tabindex.value : null);
|
|
19354
|
+
const trackContainerTabindex = computed86(() => $q.platform.is.mobile !== true && (props4.dragRange || props4.dragOnlyRange === true) ? state.tabindex.value : null);
|
|
19326
19355
|
const minThumbRef = ref50(null);
|
|
19327
|
-
const minEvents =
|
|
19356
|
+
const minEvents = computed86(() => getEvents("min"));
|
|
19328
19357
|
const getMinThumb = methods.getThumbRenderFn({
|
|
19329
19358
|
focusValue: "min",
|
|
19330
19359
|
getNodeData: () => ({
|
|
@@ -19334,12 +19363,12 @@ var QRange_default = createComponent({
|
|
|
19334
19363
|
tabindex: thumbTabindex.value
|
|
19335
19364
|
}),
|
|
19336
19365
|
ratio: ratioMin,
|
|
19337
|
-
label:
|
|
19338
|
-
thumbColor:
|
|
19339
|
-
labelColor:
|
|
19340
|
-
labelTextColor:
|
|
19366
|
+
label: computed86(() => props4.leftLabelValue !== void 0 ? props4.leftLabelValue : model.value.min),
|
|
19367
|
+
thumbColor: computed86(() => props4.leftThumbColor || props4.thumbColor || props4.color),
|
|
19368
|
+
labelColor: computed86(() => props4.leftLabelColor || props4.labelColor),
|
|
19369
|
+
labelTextColor: computed86(() => props4.leftLabelTextColor || props4.labelTextColor)
|
|
19341
19370
|
});
|
|
19342
|
-
const maxEvents =
|
|
19371
|
+
const maxEvents = computed86(() => getEvents("max"));
|
|
19343
19372
|
const getMaxThumb = methods.getThumbRenderFn({
|
|
19344
19373
|
focusValue: "max",
|
|
19345
19374
|
getNodeData: () => ({
|
|
@@ -19348,10 +19377,10 @@ var QRange_default = createComponent({
|
|
|
19348
19377
|
tabindex: thumbTabindex.value
|
|
19349
19378
|
}),
|
|
19350
19379
|
ratio: ratioMax,
|
|
19351
|
-
label:
|
|
19352
|
-
thumbColor:
|
|
19353
|
-
labelColor:
|
|
19354
|
-
labelTextColor:
|
|
19380
|
+
label: computed86(() => props4.rightLabelValue !== void 0 ? props4.rightLabelValue : model.value.max),
|
|
19381
|
+
thumbColor: computed86(() => props4.rightThumbColor || props4.thumbColor || props4.color),
|
|
19382
|
+
labelColor: computed86(() => props4.rightLabelColor || props4.labelColor),
|
|
19383
|
+
labelTextColor: computed86(() => props4.rightLabelTextColor || props4.labelTextColor)
|
|
19355
19384
|
});
|
|
19356
19385
|
function updateValue2(change) {
|
|
19357
19386
|
if (model.value.min !== props4.modelValue.min || model.value.max !== props4.modelValue.max) {
|
|
@@ -19507,7 +19536,7 @@ var QRange_default = createComponent({
|
|
|
19507
19536
|
});
|
|
19508
19537
|
|
|
19509
19538
|
// src/components/rating/QRating.js
|
|
19510
|
-
import { h as h82, ref as ref51, computed as
|
|
19539
|
+
import { h as h82, ref as ref51, computed as computed87, onBeforeUpdate as onBeforeUpdate2, getCurrentInstance as getCurrentInstance67 } from "vue";
|
|
19511
19540
|
var QRating_default = createComponent({
|
|
19512
19541
|
name: "QRating",
|
|
19513
19542
|
props: {
|
|
@@ -19541,13 +19570,13 @@ var QRating_default = createComponent({
|
|
|
19541
19570
|
const injectFormInput = useFormInject(formAttrs);
|
|
19542
19571
|
const mouseModel = ref51(0);
|
|
19543
19572
|
let iconRefs = {};
|
|
19544
|
-
const editable =
|
|
19573
|
+
const editable = computed87(
|
|
19545
19574
|
() => props4.readonly !== true && props4.disable !== true
|
|
19546
19575
|
);
|
|
19547
|
-
const classes =
|
|
19576
|
+
const classes = computed87(
|
|
19548
19577
|
() => `q-rating row inline items-center q-rating--${editable.value === true ? "" : "non-"}editable` + (props4.noDimming === true ? " q-rating--no-dimming" : "") + (props4.disable === true ? " disabled" : "") + (props4.color !== void 0 && Array.isArray(props4.color) === false ? ` text-${props4.color}` : "")
|
|
19549
19578
|
);
|
|
19550
|
-
const iconData =
|
|
19579
|
+
const iconData = computed87(() => {
|
|
19551
19580
|
const iconLen = Array.isArray(props4.icon) === true ? props4.icon.length : 0, selIconLen = Array.isArray(props4.iconSelected) === true ? props4.iconSelected.length : 0, halfIconLen = Array.isArray(props4.iconHalf) === true ? props4.iconHalf.length : 0, colorLen = Array.isArray(props4.color) === true ? props4.color.length : 0, selColorLen = Array.isArray(props4.colorSelected) === true ? props4.colorSelected.length : 0, halfColorLen = Array.isArray(props4.colorHalf) === true ? props4.colorHalf.length : 0;
|
|
19552
19581
|
return {
|
|
19553
19582
|
iconLen,
|
|
@@ -19564,7 +19593,7 @@ var QRating_default = createComponent({
|
|
|
19564
19593
|
halfColor: halfColorLen > 0 ? props4.colorHalf[halfColorLen - 1] : props4.colorHalf
|
|
19565
19594
|
};
|
|
19566
19595
|
});
|
|
19567
|
-
const iconLabel =
|
|
19596
|
+
const iconLabel = computed87(() => {
|
|
19568
19597
|
if (typeof props4.iconAriaLabel === "string") {
|
|
19569
19598
|
const label = props4.iconAriaLabel.length !== 0 ? `${props4.iconAriaLabel} ` : "";
|
|
19570
19599
|
return (i) => `${label}${i}`;
|
|
@@ -19577,7 +19606,7 @@ var QRating_default = createComponent({
|
|
|
19577
19606
|
}
|
|
19578
19607
|
return (i, label) => `${label} ${i}`;
|
|
19579
19608
|
});
|
|
19580
|
-
const stars =
|
|
19609
|
+
const stars = computed87(() => {
|
|
19581
19610
|
const acc = [], icons = iconData.value, ceil = Math.ceil(props4.modelValue), tabindex = editable.value === true ? 0 : null;
|
|
19582
19611
|
const halfIndex = props4.iconHalf === void 0 || ceil === props4.modelValue ? -1 : ceil;
|
|
19583
19612
|
for (let i = 1; i <= props4.max; i++) {
|
|
@@ -19595,7 +19624,7 @@ var QRating_default = createComponent({
|
|
|
19595
19624
|
}
|
|
19596
19625
|
return acc;
|
|
19597
19626
|
});
|
|
19598
|
-
const attributes =
|
|
19627
|
+
const attributes = computed87(() => {
|
|
19599
19628
|
const attrs = { role: "radiogroup" };
|
|
19600
19629
|
if (props4.disable === true) {
|
|
19601
19630
|
attrs["aria-disabled"] = "true";
|
|
@@ -19712,7 +19741,7 @@ var QResponsive_default = createComponent({
|
|
|
19712
19741
|
});
|
|
19713
19742
|
|
|
19714
19743
|
// src/components/scroll-area/QScrollArea.js
|
|
19715
|
-
import { h as h85, ref as ref52, computed as
|
|
19744
|
+
import { h as h85, ref as ref52, computed as computed88, watch as watch36, onActivated as onActivated5, onDeactivated as onDeactivated7, onBeforeUnmount as onBeforeUnmount32, getCurrentInstance as getCurrentInstance68 } from "vue";
|
|
19716
19745
|
|
|
19717
19746
|
// src/components/scroll-area/ScrollAreaControls.js
|
|
19718
19747
|
import { h as h84, withDirectives as withDirectives6 } from "vue";
|
|
@@ -19826,14 +19855,14 @@ var QScrollArea_default = createComponent({
|
|
|
19826
19855
|
const isDark = use_dark_default(props4, proxy.$q);
|
|
19827
19856
|
let timer2 = null, panRefPos;
|
|
19828
19857
|
const targetRef = ref52(null);
|
|
19829
|
-
const classes =
|
|
19858
|
+
const classes = computed88(
|
|
19830
19859
|
() => "q-scrollarea" + (isDark.value === true ? " q-scrollarea--dark" : "")
|
|
19831
19860
|
);
|
|
19832
19861
|
Object.assign(container, {
|
|
19833
|
-
verticalInner:
|
|
19834
|
-
horizontalInner:
|
|
19862
|
+
verticalInner: computed88(() => container.vertical.value - props4.verticalOffset[0] - props4.verticalOffset[1]),
|
|
19863
|
+
horizontalInner: computed88(() => container.horizontal.value - props4.horizontalOffset[0] - props4.horizontalOffset[1])
|
|
19835
19864
|
});
|
|
19836
|
-
scroll.vertical.percentage =
|
|
19865
|
+
scroll.vertical.percentage = computed88(() => {
|
|
19837
19866
|
const diff2 = scroll.vertical.size.value - container.vertical.value;
|
|
19838
19867
|
if (diff2 <= 0) {
|
|
19839
19868
|
return 0;
|
|
@@ -19841,9 +19870,9 @@ var QScrollArea_default = createComponent({
|
|
|
19841
19870
|
const p = between(scroll.vertical.position.value / diff2, 0, 1);
|
|
19842
19871
|
return Math.round(p * 1e4) / 1e4;
|
|
19843
19872
|
});
|
|
19844
|
-
scroll.vertical.thumbHidden =
|
|
19845
|
-
scroll.vertical.thumbStart =
|
|
19846
|
-
scroll.vertical.thumbSize =
|
|
19873
|
+
scroll.vertical.thumbHidden = computed88(() => (props4.visible === null ? hover.value : props4.visible) !== true && tempShowing.value === false && panning.value === false || scroll.vertical.size.value <= container.vertical.value + 1);
|
|
19874
|
+
scroll.vertical.thumbStart = computed88(() => props4.verticalOffset[0] + scroll.vertical.percentage.value * (container.verticalInner.value - scroll.vertical.thumbSize.value));
|
|
19875
|
+
scroll.vertical.thumbSize = computed88(
|
|
19847
19876
|
() => Math.round(
|
|
19848
19877
|
between(
|
|
19849
19878
|
container.verticalInner.value * container.verticalInner.value / scroll.vertical.size.value,
|
|
@@ -19852,16 +19881,16 @@ var QScrollArea_default = createComponent({
|
|
|
19852
19881
|
)
|
|
19853
19882
|
)
|
|
19854
19883
|
);
|
|
19855
|
-
scroll.vertical.style =
|
|
19884
|
+
scroll.vertical.style = computed88(() => ({
|
|
19856
19885
|
...props4.thumbStyle,
|
|
19857
19886
|
...props4.verticalThumbStyle,
|
|
19858
19887
|
top: `${scroll.vertical.thumbStart.value}px`,
|
|
19859
19888
|
height: `${scroll.vertical.thumbSize.value}px`,
|
|
19860
19889
|
right: `${props4.horizontalOffset[1]}px`
|
|
19861
19890
|
}));
|
|
19862
|
-
scroll.vertical.thumbClass =
|
|
19863
|
-
scroll.vertical.barClass =
|
|
19864
|
-
scroll.horizontal.percentage =
|
|
19891
|
+
scroll.vertical.thumbClass = computed88(() => "q-scrollarea__thumb q-scrollarea__thumb--v absolute-right" + (scroll.vertical.thumbHidden.value === true ? " q-scrollarea__thumb--invisible" : ""));
|
|
19892
|
+
scroll.vertical.barClass = computed88(() => "q-scrollarea__bar q-scrollarea__bar--v absolute-right" + (scroll.vertical.thumbHidden.value === true ? " q-scrollarea__bar--invisible" : ""));
|
|
19893
|
+
scroll.horizontal.percentage = computed88(() => {
|
|
19865
19894
|
const diff2 = scroll.horizontal.size.value - container.horizontal.value;
|
|
19866
19895
|
if (diff2 <= 0) {
|
|
19867
19896
|
return 0;
|
|
@@ -19869,9 +19898,9 @@ var QScrollArea_default = createComponent({
|
|
|
19869
19898
|
const p = between(Math.abs(scroll.horizontal.position.value) / diff2, 0, 1);
|
|
19870
19899
|
return Math.round(p * 1e4) / 1e4;
|
|
19871
19900
|
});
|
|
19872
|
-
scroll.horizontal.thumbHidden =
|
|
19873
|
-
scroll.horizontal.thumbStart =
|
|
19874
|
-
scroll.horizontal.thumbSize =
|
|
19901
|
+
scroll.horizontal.thumbHidden = computed88(() => (props4.visible === null ? hover.value : props4.visible) !== true && tempShowing.value === false && panning.value === false || scroll.horizontal.size.value <= container.horizontal.value + 1);
|
|
19902
|
+
scroll.horizontal.thumbStart = computed88(() => props4.horizontalOffset[0] + scroll.horizontal.percentage.value * (container.horizontalInner.value - scroll.horizontal.thumbSize.value));
|
|
19903
|
+
scroll.horizontal.thumbSize = computed88(
|
|
19875
19904
|
() => Math.round(
|
|
19876
19905
|
between(
|
|
19877
19906
|
container.horizontalInner.value * container.horizontalInner.value / scroll.horizontal.size.value,
|
|
@@ -19880,16 +19909,16 @@ var QScrollArea_default = createComponent({
|
|
|
19880
19909
|
)
|
|
19881
19910
|
)
|
|
19882
19911
|
);
|
|
19883
|
-
scroll.horizontal.style =
|
|
19912
|
+
scroll.horizontal.style = computed88(() => ({
|
|
19884
19913
|
...props4.thumbStyle,
|
|
19885
19914
|
...props4.horizontalThumbStyle,
|
|
19886
19915
|
[proxy.$q.lang.rtl === true ? "right" : "left"]: `${scroll.horizontal.thumbStart.value}px`,
|
|
19887
19916
|
width: `${scroll.horizontal.thumbSize.value}px`,
|
|
19888
19917
|
bottom: `${props4.verticalOffset[1]}px`
|
|
19889
19918
|
}));
|
|
19890
|
-
scroll.horizontal.thumbClass =
|
|
19891
|
-
scroll.horizontal.barClass =
|
|
19892
|
-
const mainStyle =
|
|
19919
|
+
scroll.horizontal.thumbClass = computed88(() => "q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom" + (scroll.horizontal.thumbHidden.value === true ? " q-scrollarea__thumb--invisible" : ""));
|
|
19920
|
+
scroll.horizontal.barClass = computed88(() => "q-scrollarea__bar q-scrollarea__bar--h absolute-bottom" + (scroll.horizontal.thumbHidden.value === true ? " q-scrollarea__bar--invisible" : ""));
|
|
19921
|
+
const mainStyle = computed88(() => scroll.vertical.thumbHidden.value === true && scroll.horizontal.thumbHidden.value === true ? props4.contentStyle : props4.contentActiveStyle);
|
|
19893
19922
|
function getScroll() {
|
|
19894
19923
|
const info = {};
|
|
19895
19924
|
axisList.forEach((axis) => {
|
|
@@ -20124,10 +20153,10 @@ var QScrollArea_default = createComponent({
|
|
|
20124
20153
|
});
|
|
20125
20154
|
|
|
20126
20155
|
// src/components/select/QSelect.js
|
|
20127
|
-
import { h as h87, ref as ref54, computed as
|
|
20156
|
+
import { h as h87, ref as ref54, computed as computed90, watch as watch38, onBeforeUpdate as onBeforeUpdate3, onUpdated, onBeforeUnmount as onBeforeUnmount34, nextTick as nextTick16, getCurrentInstance as getCurrentInstance70 } from "vue";
|
|
20128
20157
|
|
|
20129
20158
|
// src/components/virtual-scroll/use-virtual-scroll.js
|
|
20130
|
-
import { h as h86, ref as ref53, computed as
|
|
20159
|
+
import { h as h86, ref as ref53, computed as computed89, watch as watch37, onActivated as onActivated6, onDeactivated as onDeactivated8, onBeforeMount as onBeforeMount2, onBeforeUnmount as onBeforeUnmount33, nextTick as nextTick15, getCurrentInstance as getCurrentInstance69 } from "vue";
|
|
20131
20160
|
var aggBucketSize = 1e3;
|
|
20132
20161
|
var scrollToEdges = [
|
|
20133
20162
|
"start",
|
|
@@ -20306,12 +20335,12 @@ function useVirtualScroll({
|
|
|
20306
20335
|
const afterRef = ref53(null);
|
|
20307
20336
|
const contentRef = ref53(null);
|
|
20308
20337
|
const virtualScrollSliceRange = ref53({ from: 0, to: 0 });
|
|
20309
|
-
const colspanAttr =
|
|
20338
|
+
const colspanAttr = computed89(() => props4.tableColspan !== void 0 ? props4.tableColspan : 100);
|
|
20310
20339
|
if (virtualScrollItemSizeComputed === void 0) {
|
|
20311
|
-
virtualScrollItemSizeComputed =
|
|
20340
|
+
virtualScrollItemSizeComputed = computed89(() => props4.virtualScrollItemSize);
|
|
20312
20341
|
}
|
|
20313
|
-
const needsReset =
|
|
20314
|
-
const needsSliceRecalc =
|
|
20342
|
+
const needsReset = computed89(() => virtualScrollItemSizeComputed.value + ";" + props4.virtualScrollHorizontal);
|
|
20343
|
+
const needsSliceRecalc = computed89(
|
|
20315
20344
|
() => needsReset.value + ";" + props4.virtualScrollSliceRatioBefore + ";" + props4.virtualScrollSliceRatioAfter
|
|
20316
20345
|
);
|
|
20317
20346
|
watch37(needsSliceRecalc, () => {
|
|
@@ -20771,8 +20800,8 @@ var QSelect_default = createComponent({
|
|
|
20771
20800
|
const menuContentRef = ref54(null);
|
|
20772
20801
|
const nameProp = useFormInputNameAttr(props4);
|
|
20773
20802
|
const onComposition = use_key_composition_default(onInput);
|
|
20774
|
-
const virtualScrollLength =
|
|
20775
|
-
const virtualScrollItemSizeComputed =
|
|
20803
|
+
const virtualScrollLength = computed90(() => Array.isArray(props4.options) ? props4.options.length : 0);
|
|
20804
|
+
const virtualScrollItemSizeComputed = computed90(() => props4.virtualScrollItemSize === void 0 ? props4.optionsDense === true ? 24 : 48 : props4.virtualScrollItemSize);
|
|
20776
20805
|
const {
|
|
20777
20806
|
virtualScrollSliceRange,
|
|
20778
20807
|
virtualScrollSliceSizeComputed,
|
|
@@ -20788,7 +20817,7 @@ var QSelect_default = createComponent({
|
|
|
20788
20817
|
virtualScrollItemSizeComputed
|
|
20789
20818
|
});
|
|
20790
20819
|
const state = useFieldState();
|
|
20791
|
-
const innerValue =
|
|
20820
|
+
const innerValue = computed90(() => {
|
|
20792
20821
|
const mapNull = props4.mapOptions === true && props4.multiple !== true, val = props4.modelValue !== void 0 && (props4.modelValue !== null || mapNull === true) ? props4.multiple === true && Array.isArray(props4.modelValue) ? props4.modelValue : [props4.modelValue] : [];
|
|
20793
20822
|
if (props4.mapOptions === true && Array.isArray(props4.options) === true) {
|
|
20794
20823
|
const cache = props4.mapOptions === true && innerValueCache !== void 0 ? innerValueCache : [];
|
|
@@ -20797,7 +20826,7 @@ var QSelect_default = createComponent({
|
|
|
20797
20826
|
}
|
|
20798
20827
|
return val;
|
|
20799
20828
|
});
|
|
20800
|
-
const innerFieldProps =
|
|
20829
|
+
const innerFieldProps = computed90(() => {
|
|
20801
20830
|
const acc = {};
|
|
20802
20831
|
fieldPropsList.forEach((key) => {
|
|
20803
20832
|
const val = props4[key];
|
|
@@ -20807,9 +20836,9 @@ var QSelect_default = createComponent({
|
|
|
20807
20836
|
});
|
|
20808
20837
|
return acc;
|
|
20809
20838
|
});
|
|
20810
|
-
const isOptionsDark =
|
|
20811
|
-
const hasValue =
|
|
20812
|
-
const computedInputClass =
|
|
20839
|
+
const isOptionsDark = computed90(() => props4.optionsDark === null ? state.isDark.value : props4.optionsDark);
|
|
20840
|
+
const hasValue = computed90(() => fieldValueIsFilled(innerValue.value));
|
|
20841
|
+
const computedInputClass = computed90(() => {
|
|
20813
20842
|
let cls = "q-field__input q-placeholder col";
|
|
20814
20843
|
if (props4.hideSelected === true || innerValue.value.length === 0) {
|
|
20815
20844
|
return [cls, props4.inputClass];
|
|
@@ -20817,18 +20846,18 @@ var QSelect_default = createComponent({
|
|
|
20817
20846
|
cls += " q-field__input--padding";
|
|
20818
20847
|
return props4.inputClass === void 0 ? cls : [cls, props4.inputClass];
|
|
20819
20848
|
});
|
|
20820
|
-
const menuContentClass =
|
|
20849
|
+
const menuContentClass = computed90(
|
|
20821
20850
|
() => (props4.virtualScrollHorizontal === true ? "q-virtual-scroll--horizontal" : "") + (props4.popupContentClass ? " " + props4.popupContentClass : "")
|
|
20822
20851
|
);
|
|
20823
|
-
const noOptions =
|
|
20824
|
-
const selectedString =
|
|
20852
|
+
const noOptions = computed90(() => virtualScrollLength.value === 0);
|
|
20853
|
+
const selectedString = computed90(
|
|
20825
20854
|
() => innerValue.value.map((opt) => getOptionLabel.value(opt)).join(", ")
|
|
20826
20855
|
);
|
|
20827
|
-
const ariaCurrentValue =
|
|
20828
|
-
const needsHtmlFn =
|
|
20829
|
-
const valueAsHtml =
|
|
20830
|
-
const tabindex =
|
|
20831
|
-
const comboboxAttrs =
|
|
20856
|
+
const ariaCurrentValue = computed90(() => props4.displayValue !== void 0 ? props4.displayValue : selectedString.value);
|
|
20857
|
+
const needsHtmlFn = computed90(() => props4.optionsHtml === true ? () => true : (opt) => opt?.html === true);
|
|
20858
|
+
const valueAsHtml = computed90(() => props4.displayValueHtml === true || props4.displayValue === void 0 && (props4.optionsHtml === true || innerValue.value.some(needsHtmlFn.value)));
|
|
20859
|
+
const tabindex = computed90(() => state.focused.value === true ? props4.tabindex : -1);
|
|
20860
|
+
const comboboxAttrs = computed90(() => {
|
|
20832
20861
|
const attrs = {
|
|
20833
20862
|
tabindex: props4.tabindex,
|
|
20834
20863
|
role: "combobox",
|
|
@@ -20843,12 +20872,12 @@ var QSelect_default = createComponent({
|
|
|
20843
20872
|
}
|
|
20844
20873
|
return attrs;
|
|
20845
20874
|
});
|
|
20846
|
-
const listboxAttrs =
|
|
20875
|
+
const listboxAttrs = computed90(() => ({
|
|
20847
20876
|
id: `${state.targetUid.value}_lb`,
|
|
20848
20877
|
role: "listbox",
|
|
20849
20878
|
"aria-multiselectable": props4.multiple === true ? "true" : "false"
|
|
20850
20879
|
}));
|
|
20851
|
-
const selectedScope =
|
|
20880
|
+
const selectedScope = computed90(() => {
|
|
20852
20881
|
return innerValue.value.map((opt, i) => ({
|
|
20853
20882
|
index: i,
|
|
20854
20883
|
opt,
|
|
@@ -20859,7 +20888,7 @@ var QSelect_default = createComponent({
|
|
|
20859
20888
|
tabindex: tabindex.value
|
|
20860
20889
|
}));
|
|
20861
20890
|
});
|
|
20862
|
-
const optionScope =
|
|
20891
|
+
const optionScope = computed90(() => {
|
|
20863
20892
|
if (virtualScrollLength.value === 0) {
|
|
20864
20893
|
return [];
|
|
20865
20894
|
}
|
|
@@ -20906,16 +20935,16 @@ var QSelect_default = createComponent({
|
|
|
20906
20935
|
};
|
|
20907
20936
|
});
|
|
20908
20937
|
});
|
|
20909
|
-
const dropdownArrowIcon =
|
|
20910
|
-
const squaredMenu =
|
|
20938
|
+
const dropdownArrowIcon = computed90(() => props4.dropdownIcon !== void 0 ? props4.dropdownIcon : $q.iconSet.arrow.dropdown);
|
|
20939
|
+
const squaredMenu = computed90(
|
|
20911
20940
|
() => props4.optionsCover === false && props4.outlined !== true && props4.standout !== true && props4.borderless !== true && props4.rounded !== true
|
|
20912
20941
|
);
|
|
20913
|
-
const computedOptionsSelectedClass =
|
|
20914
|
-
const getOptionValue =
|
|
20915
|
-
const getOptionLabel =
|
|
20916
|
-
const isOptionDisabled =
|
|
20917
|
-
const innerOptionsValue =
|
|
20918
|
-
const inputControlEvents =
|
|
20942
|
+
const computedOptionsSelectedClass = computed90(() => props4.optionsSelectedClass !== void 0 ? props4.optionsSelectedClass : props4.color !== void 0 ? `text-${props4.color}` : "");
|
|
20943
|
+
const getOptionValue = computed90(() => getPropValueFn2(props4.optionValue, "value"));
|
|
20944
|
+
const getOptionLabel = computed90(() => getPropValueFn2(props4.optionLabel, "label"));
|
|
20945
|
+
const isOptionDisabled = computed90(() => getPropValueFn2(props4.optionDisable, "disable"));
|
|
20946
|
+
const innerOptionsValue = computed90(() => innerValue.value.map(getOptionValue.value));
|
|
20947
|
+
const inputControlEvents = computed90(() => {
|
|
20919
20948
|
const evt = {
|
|
20920
20949
|
onInput,
|
|
20921
20950
|
// Safari < 10.2 & UIWebView doesn't fire compositionend when
|
|
@@ -21656,14 +21685,14 @@ var QSelect_default = createComponent({
|
|
|
21656
21685
|
});
|
|
21657
21686
|
Object.assign(state, {
|
|
21658
21687
|
innerValue,
|
|
21659
|
-
fieldClass:
|
|
21688
|
+
fieldClass: computed90(
|
|
21660
21689
|
() => `q-select q-field--auto-height q-select--with${props4.useInput !== true ? "out" : ""}-input q-select--with${props4.useChips !== true ? "out" : ""}-chips q-select--${props4.multiple === true ? "multiple" : "single"}`
|
|
21661
21690
|
),
|
|
21662
21691
|
inputRef,
|
|
21663
21692
|
targetRef,
|
|
21664
21693
|
hasValue,
|
|
21665
21694
|
showPopup,
|
|
21666
|
-
floatingLabel:
|
|
21695
|
+
floatingLabel: computed90(
|
|
21667
21696
|
() => props4.hideSelected !== true && hasValue.value === true || typeof inputValue.value === "number" || inputValue.value.length !== 0 || fieldValueIsFilled(props4.displayValue)
|
|
21668
21697
|
),
|
|
21669
21698
|
getControlChild: () => {
|
|
@@ -21755,7 +21784,7 @@ var QSelect_default = createComponent({
|
|
|
21755
21784
|
});
|
|
21756
21785
|
|
|
21757
21786
|
// src/components/skeleton/QSkeleton.js
|
|
21758
|
-
import { h as h88, computed as
|
|
21787
|
+
import { h as h88, computed as computed91, getCurrentInstance as getCurrentInstance71 } from "vue";
|
|
21759
21788
|
var skeletonTypes = [
|
|
21760
21789
|
"text",
|
|
21761
21790
|
"rect",
|
|
@@ -21812,7 +21841,7 @@ var QSkeleton_default = createComponent({
|
|
|
21812
21841
|
setup(props4, { slots }) {
|
|
21813
21842
|
const vm2 = getCurrentInstance71();
|
|
21814
21843
|
const isDark = use_dark_default(props4, vm2.proxy.$q);
|
|
21815
|
-
const style2 =
|
|
21844
|
+
const style2 = computed91(() => {
|
|
21816
21845
|
const size2 = props4.size !== void 0 ? [props4.size, props4.size] : [props4.width, props4.height];
|
|
21817
21846
|
return {
|
|
21818
21847
|
"--q-skeleton-speed": `${props4.animationSpeed}ms`,
|
|
@@ -21820,7 +21849,7 @@ var QSkeleton_default = createComponent({
|
|
|
21820
21849
|
height: size2[1]
|
|
21821
21850
|
};
|
|
21822
21851
|
});
|
|
21823
|
-
const classes =
|
|
21852
|
+
const classes = computed91(
|
|
21824
21853
|
() => `q-skeleton q-skeleton--${isDark.value === true ? "dark" : "light"} q-skeleton--type-${props4.type}` + (props4.animation !== "none" ? ` q-skeleton--anim q-skeleton--anim-${props4.animation}` : "") + (props4.square === true ? " q-skeleton--square" : "") + (props4.bordered === true ? " q-skeleton--bordered" : "")
|
|
21825
21854
|
);
|
|
21826
21855
|
return () => h88(props4.tag, {
|
|
@@ -21831,7 +21860,7 @@ var QSkeleton_default = createComponent({
|
|
|
21831
21860
|
});
|
|
21832
21861
|
|
|
21833
21862
|
// src/components/slide-item/QSlideItem.js
|
|
21834
|
-
import { h as h89, ref as ref55, computed as
|
|
21863
|
+
import { h as h89, ref as ref55, computed as computed92, withDirectives as withDirectives7, onBeforeUnmount as onBeforeUnmount35, onBeforeUpdate as onBeforeUpdate4, getCurrentInstance as getCurrentInstance72 } from "vue";
|
|
21835
21864
|
var slotsDef = [
|
|
21836
21865
|
["left", "center", "start", "width"],
|
|
21837
21866
|
["right", "center", "end", "width"],
|
|
@@ -21856,8 +21885,8 @@ var QSlideItem_default = createComponent({
|
|
|
21856
21885
|
const { getCache } = use_render_cache_default();
|
|
21857
21886
|
const contentRef = ref55(null);
|
|
21858
21887
|
let timer2 = null, pan = {}, dirRefs = {}, dirContentRefs = {};
|
|
21859
|
-
const langDir =
|
|
21860
|
-
const classes =
|
|
21888
|
+
const langDir = computed92(() => $q.lang.rtl === true ? { left: "right", right: "left" } : { left: "left", right: "right" });
|
|
21889
|
+
const classes = computed92(
|
|
21861
21890
|
() => "q-slide-item q-item-type overflow-hidden" + (isDark.value === true ? " q-slide-item--dark q-dark" : "")
|
|
21862
21891
|
);
|
|
21863
21892
|
function reset() {
|
|
@@ -22444,7 +22473,7 @@ var QSpinnerTail_default = createComponent({
|
|
|
22444
22473
|
});
|
|
22445
22474
|
|
|
22446
22475
|
// src/components/splitter/QSplitter.js
|
|
22447
|
-
import { h as h113, ref as ref56, computed as
|
|
22476
|
+
import { h as h113, ref as ref56, computed as computed93, watch as watch39, nextTick as nextTick17, getCurrentInstance as getCurrentInstance73 } from "vue";
|
|
22448
22477
|
var QSplitter_default = createComponent({
|
|
22449
22478
|
name: "QSplitter",
|
|
22450
22479
|
props: {
|
|
@@ -22484,16 +22513,16 @@ var QSplitter_default = createComponent({
|
|
|
22484
22513
|
before: ref56(null),
|
|
22485
22514
|
after: ref56(null)
|
|
22486
22515
|
};
|
|
22487
|
-
const classes =
|
|
22516
|
+
const classes = computed93(
|
|
22488
22517
|
() => `q-splitter no-wrap ${props4.horizontal === true ? "q-splitter--horizontal column" : "q-splitter--vertical row"} q-splitter--${props4.disable === true ? "disabled" : "workable"}` + (isDark.value === true ? " q-splitter--dark" : "")
|
|
22489
22518
|
);
|
|
22490
|
-
const propName =
|
|
22491
|
-
const side =
|
|
22492
|
-
const computedLimits =
|
|
22519
|
+
const propName = computed93(() => props4.horizontal === true ? "height" : "width");
|
|
22520
|
+
const side = computed93(() => props4.reverse !== true ? "before" : "after");
|
|
22521
|
+
const computedLimits = computed93(() => props4.limits !== void 0 ? props4.limits : props4.unit === "%" ? [10, 90] : [50, Infinity]);
|
|
22493
22522
|
function getCSSValue(value2) {
|
|
22494
22523
|
return (props4.unit === "%" ? value2 : Math.round(value2)) + props4.unit;
|
|
22495
22524
|
}
|
|
22496
|
-
const styles =
|
|
22525
|
+
const styles = computed93(() => ({
|
|
22497
22526
|
[side.value]: {
|
|
22498
22527
|
[propName.value]: getCSSValue(props4.modelValue)
|
|
22499
22528
|
}
|
|
@@ -22523,7 +22552,7 @@ var QSplitter_default = createComponent({
|
|
|
22523
22552
|
emit("update:modelValue", __normalized);
|
|
22524
22553
|
}
|
|
22525
22554
|
}
|
|
22526
|
-
const sepDirective =
|
|
22555
|
+
const sepDirective = computed93(() => {
|
|
22527
22556
|
return [[
|
|
22528
22557
|
TouchPan_default,
|
|
22529
22558
|
pan,
|
|
@@ -22597,10 +22626,10 @@ var QSplitter_default = createComponent({
|
|
|
22597
22626
|
});
|
|
22598
22627
|
|
|
22599
22628
|
// src/components/stepper/QStep.js
|
|
22600
|
-
import { h as h115, ref as ref58, computed as
|
|
22629
|
+
import { h as h115, ref as ref58, computed as computed95, inject as inject10, getCurrentInstance as getCurrentInstance75, KeepAlive as KeepAlive2 } from "vue";
|
|
22601
22630
|
|
|
22602
22631
|
// src/components/stepper/StepHeader.js
|
|
22603
|
-
import { h as h114, ref as ref57, computed as
|
|
22632
|
+
import { h as h114, ref as ref57, computed as computed94, withDirectives as withDirectives8, getCurrentInstance as getCurrentInstance74 } from "vue";
|
|
22604
22633
|
var StepHeader_default = createComponent({
|
|
22605
22634
|
name: "StepHeader",
|
|
22606
22635
|
props: {
|
|
@@ -22611,27 +22640,27 @@ var StepHeader_default = createComponent({
|
|
|
22611
22640
|
setup(props4, { attrs }) {
|
|
22612
22641
|
const { proxy: { $q } } = getCurrentInstance74();
|
|
22613
22642
|
const blurRef = ref57(null);
|
|
22614
|
-
const isActive =
|
|
22615
|
-
const isDisable =
|
|
22643
|
+
const isActive = computed94(() => props4.stepper.modelValue === props4.step.name);
|
|
22644
|
+
const isDisable = computed94(() => {
|
|
22616
22645
|
const opt = props4.step.disable;
|
|
22617
22646
|
return opt === true || opt === "";
|
|
22618
22647
|
});
|
|
22619
|
-
const isError =
|
|
22648
|
+
const isError = computed94(() => {
|
|
22620
22649
|
const opt = props4.step.error;
|
|
22621
22650
|
return opt === true || opt === "";
|
|
22622
22651
|
});
|
|
22623
|
-
const isDone =
|
|
22652
|
+
const isDone = computed94(() => {
|
|
22624
22653
|
const opt = props4.step.done;
|
|
22625
22654
|
return isDisable.value === false && (opt === true || opt === "");
|
|
22626
22655
|
});
|
|
22627
|
-
const headerNav =
|
|
22656
|
+
const headerNav = computed94(() => {
|
|
22628
22657
|
const opt = props4.step.headerNav, nav = opt === true || opt === "" || opt === void 0;
|
|
22629
22658
|
return isDisable.value === false && props4.stepper.headerNav && nav;
|
|
22630
22659
|
});
|
|
22631
|
-
const hasPrefix =
|
|
22660
|
+
const hasPrefix = computed94(() => {
|
|
22632
22661
|
return props4.step.prefix && (isActive.value === false || props4.stepper.activeIcon === "none") && (isError.value === false || props4.stepper.errorIcon === "none") && (isDone.value === false || props4.stepper.doneIcon === "none");
|
|
22633
22662
|
});
|
|
22634
|
-
const icon =
|
|
22663
|
+
const icon = computed94(() => {
|
|
22635
22664
|
const defaultIcon = props4.step.icon || props4.stepper.inactiveIcon;
|
|
22636
22665
|
if (isActive.value === true) {
|
|
22637
22666
|
const icon2 = props4.step.activeIcon || props4.stepper.activeIcon;
|
|
@@ -22647,7 +22676,7 @@ var StepHeader_default = createComponent({
|
|
|
22647
22676
|
}
|
|
22648
22677
|
return defaultIcon;
|
|
22649
22678
|
});
|
|
22650
|
-
const color =
|
|
22679
|
+
const color = computed94(() => {
|
|
22651
22680
|
const errorColor = isError.value === true ? props4.step.errorColor || props4.stepper.errorColor : void 0;
|
|
22652
22681
|
if (isActive.value === true) {
|
|
22653
22682
|
const color2 = props4.step.activeColor || props4.stepper.activeColor || props4.step.color;
|
|
@@ -22661,10 +22690,10 @@ var StepHeader_default = createComponent({
|
|
|
22661
22690
|
}
|
|
22662
22691
|
return props4.step.color || props4.stepper.inactiveColor;
|
|
22663
22692
|
});
|
|
22664
|
-
const classes =
|
|
22693
|
+
const classes = computed94(() => {
|
|
22665
22694
|
return "q-stepper__tab col-grow flex items-center no-wrap relative-position" + (color.value !== void 0 ? ` text-${color.value}` : "") + (isError.value === true ? " q-stepper__tab--error q-stepper__tab--error-with-" + (hasPrefix.value === true ? "prefix" : "icon") : "") + (isActive.value === true ? " q-stepper__tab--active" : "") + (isDone.value === true ? " q-stepper__tab--done" : "") + (headerNav.value === true ? " q-stepper__tab--navigation q-focusable q-hoverable" : "") + (isDisable.value === true ? " q-stepper__tab--disabled" : "");
|
|
22666
22695
|
});
|
|
22667
|
-
const ripple =
|
|
22696
|
+
const ripple = computed94(() => props4.stepper.headerNav !== true ? false : headerNav.value);
|
|
22668
22697
|
function onActivate() {
|
|
22669
22698
|
blurRef.value?.focus();
|
|
22670
22699
|
isActive.value === false && props4.goToPanel(props4.step.name);
|
|
@@ -22765,8 +22794,8 @@ var QStep_default = createComponent({
|
|
|
22765
22794
|
}
|
|
22766
22795
|
const { getCache } = use_render_cache_default();
|
|
22767
22796
|
const rootRef = ref58(null);
|
|
22768
|
-
const isActive =
|
|
22769
|
-
const scrollEvent =
|
|
22797
|
+
const isActive = computed95(() => $stepper.value.modelValue === props4.name);
|
|
22798
|
+
const scrollEvent = computed95(() => $q.platform.is.ios !== true && $q.platform.is.chrome === true || isActive.value !== true || $stepper.value.vertical !== true ? {} : {
|
|
22770
22799
|
onScroll(e) {
|
|
22771
22800
|
const { target: target2 } = e;
|
|
22772
22801
|
if (target2.scrollTop > 0) {
|
|
@@ -22775,7 +22804,7 @@ var QStep_default = createComponent({
|
|
|
22775
22804
|
props4.onScroll !== void 0 && emit("scroll", e);
|
|
22776
22805
|
}
|
|
22777
22806
|
});
|
|
22778
|
-
const contentKey =
|
|
22807
|
+
const contentKey = computed95(() => typeof props4.name === "string" || typeof props4.name === "number" ? props4.name : String(props4.name));
|
|
22779
22808
|
function getStepContent() {
|
|
22780
22809
|
const vertical = $stepper.value.vertical;
|
|
22781
22810
|
if (vertical === true && $stepper.value.keepAlive === true) {
|
|
@@ -22809,7 +22838,7 @@ var QStep_default = createComponent({
|
|
|
22809
22838
|
});
|
|
22810
22839
|
|
|
22811
22840
|
// src/components/stepper/QStepper.js
|
|
22812
|
-
import { h as h116, computed as
|
|
22841
|
+
import { h as h116, computed as computed96, provide as provide6, getCurrentInstance as getCurrentInstance76 } from "vue";
|
|
22813
22842
|
var camelRE = /(-\w)/g;
|
|
22814
22843
|
function camelizeProps(props4) {
|
|
22815
22844
|
const acc = {};
|
|
@@ -22854,16 +22883,16 @@ var QStepper_default = createComponent({
|
|
|
22854
22883
|
keepAliveProps,
|
|
22855
22884
|
needsUniqueKeepAliveWrapper
|
|
22856
22885
|
} = use_panel_default();
|
|
22857
|
-
provide6(stepperKey,
|
|
22886
|
+
provide6(stepperKey, computed96(() => ({
|
|
22858
22887
|
goToPanel,
|
|
22859
22888
|
keepAliveProps,
|
|
22860
22889
|
needsUniqueKeepAliveWrapper,
|
|
22861
22890
|
...props4
|
|
22862
22891
|
})));
|
|
22863
|
-
const classes =
|
|
22892
|
+
const classes = computed96(
|
|
22864
22893
|
() => `q-stepper q-stepper--${props4.vertical === true ? "vertical" : "horizontal"}` + (props4.flat === true ? " q-stepper--flat" : "") + (props4.bordered === true ? " q-stepper--bordered" : "") + (isDark.value === true ? " q-stepper--dark q-dark" : "")
|
|
22865
22894
|
);
|
|
22866
|
-
const headerClasses =
|
|
22895
|
+
const headerClasses = computed96(
|
|
22867
22896
|
() => `q-stepper__header row items-stretch justify-between q-stepper__header--${props4.alternativeLabels === true ? "alternative" : "standard"}-labels` + (props4.flat === false || props4.bordered === true ? " q-stepper__header--border" : "") + (props4.contracted === true ? " q-stepper__header--contracted" : "") + (props4.headerClass !== void 0 ? ` ${props4.headerClass}` : "")
|
|
22868
22897
|
);
|
|
22869
22898
|
function getContent() {
|
|
@@ -22919,7 +22948,7 @@ var QStepperNavigation_default = createComponent({
|
|
|
22919
22948
|
});
|
|
22920
22949
|
|
|
22921
22950
|
// src/components/table/QTable.js
|
|
22922
|
-
import { h as h121, ref as ref62, computed as
|
|
22951
|
+
import { h as h121, ref as ref62, computed as computed103, watch as watch44, getCurrentInstance as getCurrentInstance78 } from "vue";
|
|
22923
22952
|
|
|
22924
22953
|
// src/components/table/QTh.js
|
|
22925
22954
|
import { h as h118, getCurrentInstance as getCurrentInstance77 } from "vue";
|
|
@@ -22977,7 +23006,7 @@ var QTh_default = createComponent({
|
|
|
22977
23006
|
});
|
|
22978
23007
|
|
|
22979
23008
|
// src/components/virtual-scroll/QVirtualScroll.js
|
|
22980
|
-
import { h as h120, ref as ref59, computed as
|
|
23009
|
+
import { h as h120, ref as ref59, computed as computed97, watch as watch40, onBeforeMount as onBeforeMount3, onMounted as onMounted22, onBeforeUnmount as onBeforeUnmount36, onActivated as onActivated7, onDeactivated as onDeactivated9 } from "vue";
|
|
22981
23010
|
|
|
22982
23011
|
// src/components/table/get-table-middle.js
|
|
22983
23012
|
import { h as h119 } from "vue";
|
|
@@ -23013,7 +23042,7 @@ var QVirtualScroll_default = createComponent({
|
|
|
23013
23042
|
setup(props4, { slots, attrs }) {
|
|
23014
23043
|
let localScrollTarget;
|
|
23015
23044
|
const rootRef = ref59(null);
|
|
23016
|
-
const virtualScrollLength =
|
|
23045
|
+
const virtualScrollLength = computed97(() => props4.itemsSize >= 0 && props4.itemsFn !== void 0 ? parseInt(props4.itemsSize, 10) : Array.isArray(props4.items) ? props4.items.length : 0);
|
|
23017
23046
|
const {
|
|
23018
23047
|
virtualScrollSliceRange,
|
|
23019
23048
|
localResetVirtualScroll,
|
|
@@ -23024,7 +23053,7 @@ var QVirtualScroll_default = createComponent({
|
|
|
23024
23053
|
getVirtualScrollTarget,
|
|
23025
23054
|
getVirtualScrollEl
|
|
23026
23055
|
});
|
|
23027
|
-
const virtualScrollScope =
|
|
23056
|
+
const virtualScrollScope = computed97(() => {
|
|
23028
23057
|
if (virtualScrollLength.value === 0) {
|
|
23029
23058
|
return [];
|
|
23030
23059
|
}
|
|
@@ -23034,10 +23063,10 @@ var QVirtualScroll_default = createComponent({
|
|
|
23034
23063
|
});
|
|
23035
23064
|
return props4.itemsFn === void 0 ? props4.items.slice(virtualScrollSliceRange.value.from, virtualScrollSliceRange.value.to).map(mapFn) : props4.itemsFn(virtualScrollSliceRange.value.from, virtualScrollSliceRange.value.to - virtualScrollSliceRange.value.from).map(mapFn);
|
|
23036
23065
|
});
|
|
23037
|
-
const classes =
|
|
23066
|
+
const classes = computed97(
|
|
23038
23067
|
() => "q-virtual-scroll q-virtual-scroll" + (props4.virtualScrollHorizontal === true ? "--horizontal" : "--vertical") + (props4.scrollTarget !== void 0 ? "" : " scroll")
|
|
23039
23068
|
);
|
|
23040
|
-
const attributes =
|
|
23069
|
+
const attributes = computed97(() => props4.scrollTarget !== void 0 ? {} : { tabindex: 0 });
|
|
23041
23070
|
watch40(virtualScrollLength, () => {
|
|
23042
23071
|
localResetVirtualScroll();
|
|
23043
23072
|
});
|
|
@@ -23105,7 +23134,7 @@ var QVirtualScroll_default = createComponent({
|
|
|
23105
23134
|
});
|
|
23106
23135
|
|
|
23107
23136
|
// src/components/table/table-sort.js
|
|
23108
|
-
import { computed as
|
|
23137
|
+
import { computed as computed98 } from "vue";
|
|
23109
23138
|
|
|
23110
23139
|
// src/utils/private.sort/sort.js
|
|
23111
23140
|
function sortDate(a, b) {
|
|
@@ -23123,11 +23152,11 @@ var useTableSortProps = {
|
|
|
23123
23152
|
}
|
|
23124
23153
|
};
|
|
23125
23154
|
function useTableSort(props4, computedPagination, colList, setPagination) {
|
|
23126
|
-
const columnToSort =
|
|
23155
|
+
const columnToSort = computed98(() => {
|
|
23127
23156
|
const { sortBy } = computedPagination.value;
|
|
23128
23157
|
return sortBy ? colList.value.find((def) => def.name === sortBy) || null : null;
|
|
23129
23158
|
});
|
|
23130
|
-
const computedSortMethod =
|
|
23159
|
+
const computedSortMethod = computed98(() => props4.sortMethod !== void 0 ? props4.sortMethod : (data, sortBy, descending) => {
|
|
23131
23160
|
const col = colList.value.find((def) => def.name === sortBy);
|
|
23132
23161
|
if (col === void 0 || col.field === void 0) {
|
|
23133
23162
|
return data;
|
|
@@ -23202,13 +23231,13 @@ function useTableSort(props4, computedPagination, colList, setPagination) {
|
|
|
23202
23231
|
}
|
|
23203
23232
|
|
|
23204
23233
|
// src/components/table/table-filter.js
|
|
23205
|
-
import { computed as
|
|
23234
|
+
import { computed as computed99, watch as watch41, nextTick as nextTick18 } from "vue";
|
|
23206
23235
|
var useTableFilterProps = {
|
|
23207
23236
|
filter: [String, Object],
|
|
23208
23237
|
filterMethod: Function
|
|
23209
23238
|
};
|
|
23210
23239
|
function useTableFilter(props4, setPagination) {
|
|
23211
|
-
const computedFilterMethod =
|
|
23240
|
+
const computedFilterMethod = computed99(() => props4.filterMethod !== void 0 ? props4.filterMethod : (rows, terms, cols, cellValue) => {
|
|
23212
23241
|
const lowerTerms = terms ? terms.toLowerCase() : "";
|
|
23213
23242
|
return rows.filter(
|
|
23214
23243
|
(row) => cols.some((col) => {
|
|
@@ -23231,7 +23260,7 @@ function useTableFilter(props4, setPagination) {
|
|
|
23231
23260
|
}
|
|
23232
23261
|
|
|
23233
23262
|
// src/components/table/table-pagination.js
|
|
23234
|
-
import { ref as ref60, computed as
|
|
23263
|
+
import { ref as ref60, computed as computed100, watch as watch42, nextTick as nextTick19 } from "vue";
|
|
23235
23264
|
function samePagination(oldPag, newPag) {
|
|
23236
23265
|
for (const prop in newPag) {
|
|
23237
23266
|
if (newPag[prop] !== oldPag[prop]) {
|
|
@@ -23267,11 +23296,11 @@ function useTablePaginationState(vm2, getCellValue) {
|
|
|
23267
23296
|
rowsPerPage: props4.rowsPerPageOptions.length !== 0 ? props4.rowsPerPageOptions[0] : 5
|
|
23268
23297
|
}, props4.pagination)
|
|
23269
23298
|
);
|
|
23270
|
-
const computedPagination =
|
|
23299
|
+
const computedPagination = computed100(() => {
|
|
23271
23300
|
const pag = props4["onUpdate:pagination"] !== void 0 ? { ...innerPagination.value, ...props4.pagination } : innerPagination.value;
|
|
23272
23301
|
return fixPagination(pag);
|
|
23273
23302
|
});
|
|
23274
|
-
const isServerSide =
|
|
23303
|
+
const isServerSide = computed100(() => computedPagination.value.rowsNumber !== void 0);
|
|
23275
23304
|
function sendServerRequest(pagination) {
|
|
23276
23305
|
requestServerInteraction({
|
|
23277
23306
|
pagination,
|
|
@@ -23318,22 +23347,22 @@ function useTablePaginationState(vm2, getCellValue) {
|
|
|
23318
23347
|
}
|
|
23319
23348
|
function useTablePagination(vm2, innerPagination, computedPagination, isServerSide, setPagination, filteredSortedRowsNumber) {
|
|
23320
23349
|
const { props: props4, emit, proxy: { $q } } = vm2;
|
|
23321
|
-
const computedRowsNumber =
|
|
23322
|
-
const firstRowIndex =
|
|
23350
|
+
const computedRowsNumber = computed100(() => isServerSide.value === true ? computedPagination.value.rowsNumber || 0 : filteredSortedRowsNumber.value);
|
|
23351
|
+
const firstRowIndex = computed100(() => {
|
|
23323
23352
|
const { page, rowsPerPage } = computedPagination.value;
|
|
23324
23353
|
return (page - 1) * rowsPerPage;
|
|
23325
23354
|
});
|
|
23326
|
-
const lastRowIndex =
|
|
23355
|
+
const lastRowIndex = computed100(() => {
|
|
23327
23356
|
const { page, rowsPerPage } = computedPagination.value;
|
|
23328
23357
|
return page * rowsPerPage;
|
|
23329
23358
|
});
|
|
23330
|
-
const isFirstPage =
|
|
23331
|
-
const pagesNumber =
|
|
23359
|
+
const isFirstPage = computed100(() => computedPagination.value.page === 1);
|
|
23360
|
+
const pagesNumber = computed100(() => computedPagination.value.rowsPerPage === 0 ? 1 : Math.max(
|
|
23332
23361
|
1,
|
|
23333
23362
|
Math.ceil(computedRowsNumber.value / computedPagination.value.rowsPerPage)
|
|
23334
23363
|
));
|
|
23335
|
-
const isLastPage =
|
|
23336
|
-
const computedRowsPerPageOptions =
|
|
23364
|
+
const isLastPage = computed100(() => lastRowIndex.value === 0 ? true : computedPagination.value.page >= pagesNumber.value);
|
|
23365
|
+
const computedRowsPerPageOptions = computed100(() => {
|
|
23337
23366
|
const opts = props4.rowsPerPageOptions.includes(innerPagination.value.rowsPerPage) ? props4.rowsPerPageOptions : [innerPagination.value.rowsPerPage].concat(props4.rowsPerPageOptions);
|
|
23338
23367
|
return opts.map((count) => ({
|
|
23339
23368
|
label: count === 0 ? $q.lang.table.allRows : "" + count,
|
|
@@ -23386,7 +23415,7 @@ function useTablePagination(vm2, innerPagination, computedPagination, isServerSi
|
|
|
23386
23415
|
}
|
|
23387
23416
|
|
|
23388
23417
|
// src/components/table/table-row-selection.js
|
|
23389
|
-
import { computed as
|
|
23418
|
+
import { computed as computed101 } from "vue";
|
|
23390
23419
|
var useTableRowSelectionProps = {
|
|
23391
23420
|
selection: {
|
|
23392
23421
|
type: String,
|
|
@@ -23400,31 +23429,31 @@ var useTableRowSelectionProps = {
|
|
|
23400
23429
|
};
|
|
23401
23430
|
var useTableRowSelectionEmits = ["update:selected", "selection"];
|
|
23402
23431
|
function useTableRowSelection(props4, emit, computedRows, getRowKey) {
|
|
23403
|
-
const selectedKeys =
|
|
23432
|
+
const selectedKeys = computed101(() => {
|
|
23404
23433
|
const keys = {};
|
|
23405
23434
|
props4.selected.map(getRowKey.value).forEach((key) => {
|
|
23406
23435
|
keys[key] = true;
|
|
23407
23436
|
});
|
|
23408
23437
|
return keys;
|
|
23409
23438
|
});
|
|
23410
|
-
const hasSelectionMode =
|
|
23439
|
+
const hasSelectionMode = computed101(() => {
|
|
23411
23440
|
return props4.selection !== "none";
|
|
23412
23441
|
});
|
|
23413
|
-
const singleSelection =
|
|
23442
|
+
const singleSelection = computed101(() => {
|
|
23414
23443
|
return props4.selection === "single";
|
|
23415
23444
|
});
|
|
23416
|
-
const multipleSelection =
|
|
23445
|
+
const multipleSelection = computed101(() => {
|
|
23417
23446
|
return props4.selection === "multiple";
|
|
23418
23447
|
});
|
|
23419
|
-
const allRowsSelected =
|
|
23448
|
+
const allRowsSelected = computed101(
|
|
23420
23449
|
() => computedRows.value.length !== 0 && computedRows.value.every(
|
|
23421
23450
|
(row) => selectedKeys.value[getRowKey.value(row)] === true
|
|
23422
23451
|
)
|
|
23423
23452
|
);
|
|
23424
|
-
const someRowsSelected =
|
|
23453
|
+
const someRowsSelected = computed101(
|
|
23425
23454
|
() => allRowsSelected.value !== true && computedRows.value.some((row) => selectedKeys.value[getRowKey.value(row)] === true)
|
|
23426
23455
|
);
|
|
23427
|
-
const rowsSelectedNumber =
|
|
23456
|
+
const rowsSelectedNumber = computed101(() => props4.selected.length);
|
|
23428
23457
|
function isRowSelected(key) {
|
|
23429
23458
|
return selectedKeys.value[key] === true;
|
|
23430
23459
|
}
|
|
@@ -23497,12 +23526,12 @@ function useTableRowExpand(props4, emit) {
|
|
|
23497
23526
|
}
|
|
23498
23527
|
|
|
23499
23528
|
// src/components/table/table-column-selection.js
|
|
23500
|
-
import { computed as
|
|
23529
|
+
import { computed as computed102 } from "vue";
|
|
23501
23530
|
var useTableColumnSelectionProps = {
|
|
23502
23531
|
visibleColumns: Array
|
|
23503
23532
|
};
|
|
23504
23533
|
function useTableColumnSelection(props4, computedPagination, hasSelectionMode) {
|
|
23505
|
-
const colList =
|
|
23534
|
+
const colList = computed102(() => {
|
|
23506
23535
|
if (props4.columns !== void 0) {
|
|
23507
23536
|
return props4.columns;
|
|
23508
23537
|
}
|
|
@@ -23515,7 +23544,7 @@ function useTableColumnSelection(props4, computedPagination, hasSelectionMode) {
|
|
|
23515
23544
|
sortable: true
|
|
23516
23545
|
})) : [];
|
|
23517
23546
|
});
|
|
23518
|
-
const computedCols =
|
|
23547
|
+
const computedCols = computed102(() => {
|
|
23519
23548
|
const { sortBy, descending } = computedPagination.value;
|
|
23520
23549
|
const cols = props4.visibleColumns !== void 0 ? colList.value.filter((col) => col.required === true || props4.visibleColumns.includes(col.name) === true) : colList.value;
|
|
23521
23550
|
return cols.map((col) => {
|
|
@@ -23531,14 +23560,14 @@ function useTableColumnSelection(props4, computedPagination, hasSelectionMode) {
|
|
|
23531
23560
|
};
|
|
23532
23561
|
});
|
|
23533
23562
|
});
|
|
23534
|
-
const computedColsMap =
|
|
23563
|
+
const computedColsMap = computed102(() => {
|
|
23535
23564
|
const names = {};
|
|
23536
23565
|
computedCols.value.forEach((col) => {
|
|
23537
23566
|
names[col.name] = col;
|
|
23538
23567
|
});
|
|
23539
23568
|
return names;
|
|
23540
23569
|
});
|
|
23541
|
-
const computedColspan =
|
|
23570
|
+
const computedColspan = computed102(() => {
|
|
23542
23571
|
return props4.tableColspan !== void 0 ? props4.tableColspan : computedCols.value.length + (hasSelectionMode.value === true ? 1 : 0);
|
|
23543
23572
|
});
|
|
23544
23573
|
return {
|
|
@@ -23640,17 +23669,17 @@ var QTable_default = createComponent({
|
|
|
23640
23669
|
const { proxy: { $q } } = vm2;
|
|
23641
23670
|
const isDark = use_dark_default(props4, $q);
|
|
23642
23671
|
const { inFullscreen, toggleFullscreen } = use_fullscreen_default();
|
|
23643
|
-
const getRowKey =
|
|
23672
|
+
const getRowKey = computed103(() => typeof props4.rowKey === "function" ? props4.rowKey : (row) => row[props4.rowKey]);
|
|
23644
23673
|
const rootRef = ref62(null);
|
|
23645
23674
|
const virtScrollRef = ref62(null);
|
|
23646
|
-
const hasVirtScroll =
|
|
23647
|
-
const cardDefaultClass =
|
|
23675
|
+
const hasVirtScroll = computed103(() => props4.grid !== true && props4.virtualScroll === true);
|
|
23676
|
+
const cardDefaultClass = computed103(
|
|
23648
23677
|
() => " q-table__card" + (isDark.value === true ? " q-table__card--dark q-dark" : "") + (props4.square === true ? " q-table--square" : "") + (props4.flat === true ? " q-table--flat" : "") + (props4.bordered === true ? " q-table--bordered" : "")
|
|
23649
23678
|
);
|
|
23650
|
-
const containerClass =
|
|
23679
|
+
const containerClass = computed103(
|
|
23651
23680
|
() => `q-table__container q-table--${props4.separator}-separator column no-wrap` + (props4.grid === true ? " q-table--grid" : cardDefaultClass.value) + (isDark.value === true ? " q-table--dark" : "") + (props4.dense === true ? " q-table--dense" : "") + (props4.wrapCells === false ? " q-table--no-wrap" : "") + (inFullscreen.value === true ? " fullscreen scroll" : "")
|
|
23652
23681
|
);
|
|
23653
|
-
const rootContainerClass =
|
|
23682
|
+
const rootContainerClass = computed103(
|
|
23654
23683
|
() => containerClass.value + (props4.loading === true ? " q-table--loading" : "")
|
|
23655
23684
|
);
|
|
23656
23685
|
watch44(
|
|
@@ -23668,7 +23697,7 @@ var QTable_default = createComponent({
|
|
|
23668
23697
|
} = useTablePaginationState(vm2, getCellValue);
|
|
23669
23698
|
const { computedFilterMethod } = useTableFilter(props4, setPagination);
|
|
23670
23699
|
const { isRowExpanded, setExpanded, updateExpanded } = useTableRowExpand(props4, emit);
|
|
23671
|
-
const filteredSortedRows =
|
|
23700
|
+
const filteredSortedRows = computed103(() => {
|
|
23672
23701
|
let rows = props4.rows;
|
|
23673
23702
|
if (isServerSide.value === true || rows.length === 0) {
|
|
23674
23703
|
return rows;
|
|
@@ -23686,8 +23715,8 @@ var QTable_default = createComponent({
|
|
|
23686
23715
|
}
|
|
23687
23716
|
return rows;
|
|
23688
23717
|
});
|
|
23689
|
-
const filteredSortedRowsNumber =
|
|
23690
|
-
const computedRows =
|
|
23718
|
+
const filteredSortedRowsNumber = computed103(() => filteredSortedRows.value.length);
|
|
23719
|
+
const computedRows = computed103(() => {
|
|
23691
23720
|
let rows = filteredSortedRows.value;
|
|
23692
23721
|
if (isServerSide.value === true) {
|
|
23693
23722
|
return rows;
|
|
@@ -23730,8 +23759,8 @@ var QTable_default = createComponent({
|
|
|
23730
23759
|
nextPage,
|
|
23731
23760
|
lastPage
|
|
23732
23761
|
} = useTablePagination(vm2, innerPagination, computedPagination, isServerSide, setPagination, filteredSortedRowsNumber);
|
|
23733
|
-
const nothingToDisplay =
|
|
23734
|
-
const virtProps =
|
|
23762
|
+
const nothingToDisplay = computed103(() => computedRows.value.length === 0);
|
|
23763
|
+
const virtProps = computed103(() => {
|
|
23735
23764
|
const acc = {};
|
|
23736
23765
|
commonVirtScrollPropsList.forEach((p) => {
|
|
23737
23766
|
acc[p] = props4[p];
|
|
@@ -23957,7 +23986,7 @@ var QTable_default = createComponent({
|
|
|
23957
23986
|
const val = typeof col.field === "function" ? col.field(row) : row[col.field];
|
|
23958
23987
|
return col.format !== void 0 ? col.format(val, row) : val;
|
|
23959
23988
|
}
|
|
23960
|
-
const marginalsScope =
|
|
23989
|
+
const marginalsScope = computed103(() => ({
|
|
23961
23990
|
pagination: computedPagination.value,
|
|
23962
23991
|
pagesNumber: pagesNumber.value,
|
|
23963
23992
|
isFirstPage: isFirstPage.value,
|
|
@@ -24008,7 +24037,7 @@ var QTable_default = createComponent({
|
|
|
24008
24037
|
if (child.length === 0) return;
|
|
24009
24038
|
return h121("div", { class: topClass }, child);
|
|
24010
24039
|
}
|
|
24011
|
-
const headerSelectedValue =
|
|
24040
|
+
const headerSelectedValue = computed103(() => someRowsSelected.value === true ? null : allRowsSelected.value);
|
|
24012
24041
|
function getTHead() {
|
|
24013
24042
|
const child = getTHeadTR();
|
|
24014
24043
|
if (props4.loading === true && slots.loading === void 0) {
|
|
@@ -24092,7 +24121,7 @@ var QTable_default = createComponent({
|
|
|
24092
24121
|
val
|
|
24093
24122
|
);
|
|
24094
24123
|
}
|
|
24095
|
-
const navIcon =
|
|
24124
|
+
const navIcon = computed103(() => {
|
|
24096
24125
|
const ico = [
|
|
24097
24126
|
props4.iconFirstPage || $q.iconSet.table.firstPage,
|
|
24098
24127
|
props4.iconPrevPage || $q.iconSet.table.prevPage,
|
|
@@ -24366,7 +24395,7 @@ var QTable_default = createComponent({
|
|
|
24366
24395
|
});
|
|
24367
24396
|
|
|
24368
24397
|
// src/components/table/QTr.js
|
|
24369
|
-
import { h as h122, computed as
|
|
24398
|
+
import { h as h122, computed as computed104 } from "vue";
|
|
24370
24399
|
var QTr_default = createComponent({
|
|
24371
24400
|
name: "QTr",
|
|
24372
24401
|
props: {
|
|
@@ -24374,7 +24403,7 @@ var QTr_default = createComponent({
|
|
|
24374
24403
|
noHover: Boolean
|
|
24375
24404
|
},
|
|
24376
24405
|
setup(props4, { slots }) {
|
|
24377
|
-
const classes =
|
|
24406
|
+
const classes = computed104(
|
|
24378
24407
|
() => "q-tr" + (props4.props === void 0 || props4.props.header === true ? "" : " " + props4.props.__trClass) + (props4.noHover === true ? " q-tr--no-hover" : "")
|
|
24379
24408
|
);
|
|
24380
24409
|
return () => h122("tr", {
|
|
@@ -24385,7 +24414,7 @@ var QTr_default = createComponent({
|
|
|
24385
24414
|
});
|
|
24386
24415
|
|
|
24387
24416
|
// src/components/table/QTd.js
|
|
24388
|
-
import { h as h123, computed as
|
|
24417
|
+
import { h as h123, computed as computed105, getCurrentInstance as getCurrentInstance79 } from "vue";
|
|
24389
24418
|
var QTd_default = createComponent({
|
|
24390
24419
|
name: "QTd",
|
|
24391
24420
|
props: {
|
|
@@ -24395,7 +24424,7 @@ var QTd_default = createComponent({
|
|
|
24395
24424
|
},
|
|
24396
24425
|
setup(props4, { slots }) {
|
|
24397
24426
|
const vm2 = getCurrentInstance79();
|
|
24398
|
-
const classes =
|
|
24427
|
+
const classes = computed105(
|
|
24399
24428
|
() => "q-td" + (props4.autoWidth === true ? " q-table--col-auto-width" : "") + (props4.noHover === true ? " q-td--no-hover" : "") + " "
|
|
24400
24429
|
);
|
|
24401
24430
|
return () => {
|
|
@@ -24415,7 +24444,7 @@ var QTd_default = createComponent({
|
|
|
24415
24444
|
});
|
|
24416
24445
|
|
|
24417
24446
|
// src/components/tabs/QRouteTab.js
|
|
24418
|
-
import { computed as
|
|
24447
|
+
import { computed as computed106, watch as watch45 } from "vue";
|
|
24419
24448
|
var QRouteTab_default = createComponent({
|
|
24420
24449
|
name: "QRouteTab",
|
|
24421
24450
|
props: {
|
|
@@ -24432,7 +24461,7 @@ var QRouteTab_default = createComponent({
|
|
|
24432
24461
|
slots,
|
|
24433
24462
|
emit,
|
|
24434
24463
|
{
|
|
24435
|
-
exact:
|
|
24464
|
+
exact: computed106(() => props4.exact),
|
|
24436
24465
|
...routeData
|
|
24437
24466
|
}
|
|
24438
24467
|
);
|
|
@@ -24445,7 +24474,7 @@ var QRouteTab_default = createComponent({
|
|
|
24445
24474
|
});
|
|
24446
24475
|
|
|
24447
24476
|
// src/components/time/QTime.js
|
|
24448
|
-
import { h as h124, ref as ref63, computed as
|
|
24477
|
+
import { h as h124, ref as ref63, computed as computed107, watch as watch46, withDirectives as withDirectives9, Transition as Transition13, nextTick as nextTick20, getCurrentInstance as getCurrentInstance80 } from "vue";
|
|
24449
24478
|
function getViewByModel(model, withSeconds) {
|
|
24450
24479
|
if (model.hour !== null) {
|
|
24451
24480
|
if (model.minute === null) {
|
|
@@ -24504,9 +24533,9 @@ var QTime_default = createComponent({
|
|
|
24504
24533
|
const injectFormInput = useFormInject(formAttrs);
|
|
24505
24534
|
let draggingClockRect, dragCache;
|
|
24506
24535
|
const clockRef = ref63(null);
|
|
24507
|
-
const mask =
|
|
24508
|
-
const locale =
|
|
24509
|
-
const defaultDateModel =
|
|
24536
|
+
const mask = computed107(() => getMask());
|
|
24537
|
+
const locale = computed107(() => getLocale2());
|
|
24538
|
+
const defaultDateModel = computed107(() => getDefaultDateModel());
|
|
24510
24539
|
const model = __splitDate(
|
|
24511
24540
|
props4.modelValue,
|
|
24512
24541
|
mask.value,
|
|
@@ -24519,10 +24548,10 @@ var QTime_default = createComponent({
|
|
|
24519
24548
|
const view = ref63(getViewByModel(model));
|
|
24520
24549
|
const innerModel = ref63(model);
|
|
24521
24550
|
const isAM = ref63(model.hour === null || model.hour < 12);
|
|
24522
|
-
const classes =
|
|
24551
|
+
const classes = computed107(
|
|
24523
24552
|
() => `q-time q-time--${props4.landscape === true ? "landscape" : "portrait"}` + (isDark.value === true ? " q-time--dark q-dark" : "") + (props4.disable === true ? " disabled" : props4.readonly === true ? " q-time--readonly" : "") + (props4.bordered === true ? " q-time--bordered" : "") + (props4.square === true ? " q-time--square no-border-radius" : "") + (props4.flat === true ? " q-time--flat no-shadow" : "")
|
|
24524
24553
|
);
|
|
24525
|
-
const stringModel =
|
|
24554
|
+
const stringModel = computed107(() => {
|
|
24526
24555
|
const time = innerModel.value;
|
|
24527
24556
|
return {
|
|
24528
24557
|
hour: time.hour === null ? "--" : computedFormat24h.value === true ? pad(time.hour) : String(
|
|
@@ -24532,8 +24561,8 @@ var QTime_default = createComponent({
|
|
|
24532
24561
|
second: time.second === null ? "--" : pad(time.second)
|
|
24533
24562
|
};
|
|
24534
24563
|
});
|
|
24535
|
-
const computedFormat24h =
|
|
24536
|
-
const pointerStyle =
|
|
24564
|
+
const computedFormat24h = computed107(() => props4.format24h !== null ? props4.format24h : $q.lang.date.format24h);
|
|
24565
|
+
const pointerStyle = computed107(() => {
|
|
24537
24566
|
const forHour = view.value === "hour", divider = forHour === true ? 12 : 60, amount = innerModel.value[view.value], degrees = Math.round(amount * (360 / divider)) - 180;
|
|
24538
24567
|
let transform = `rotate(${degrees}deg) translateX(-50%)`;
|
|
24539
24568
|
if (forHour === true && computedFormat24h.value === true && innerModel.value.hour >= 12) {
|
|
@@ -24541,12 +24570,12 @@ var QTime_default = createComponent({
|
|
|
24541
24570
|
}
|
|
24542
24571
|
return { transform };
|
|
24543
24572
|
});
|
|
24544
|
-
const minLink =
|
|
24545
|
-
const secLink =
|
|
24546
|
-
const hourInSelection =
|
|
24547
|
-
const minuteInSelection =
|
|
24548
|
-
const secondInSelection =
|
|
24549
|
-
const validHours =
|
|
24573
|
+
const minLink = computed107(() => innerModel.value.hour !== null);
|
|
24574
|
+
const secLink = computed107(() => minLink.value === true && innerModel.value.minute !== null);
|
|
24575
|
+
const hourInSelection = computed107(() => props4.hourOptions !== void 0 ? (val) => props4.hourOptions.includes(val) : props4.options !== void 0 ? (val) => props4.options(val, null, null) : null);
|
|
24576
|
+
const minuteInSelection = computed107(() => props4.minuteOptions !== void 0 ? (val) => props4.minuteOptions.includes(val) : props4.options !== void 0 ? (val) => props4.options(innerModel.value.hour, val, null) : null);
|
|
24577
|
+
const secondInSelection = computed107(() => props4.secondOptions !== void 0 ? (val) => props4.secondOptions.includes(val) : props4.options !== void 0 ? (val) => props4.options(innerModel.value.hour, innerModel.value.minute, val) : null);
|
|
24578
|
+
const validHours = computed107(() => {
|
|
24550
24579
|
if (hourInSelection.value === null) {
|
|
24551
24580
|
return null;
|
|
24552
24581
|
}
|
|
@@ -24554,9 +24583,9 @@ var QTime_default = createComponent({
|
|
|
24554
24583
|
const pm = getValidValues(12, 11, hourInSelection.value);
|
|
24555
24584
|
return { am, pm, values: am.values.concat(pm.values) };
|
|
24556
24585
|
});
|
|
24557
|
-
const validMinutes =
|
|
24558
|
-
const validSeconds =
|
|
24559
|
-
const viewValidOptions =
|
|
24586
|
+
const validMinutes = computed107(() => minuteInSelection.value !== null ? getValidValues(0, 59, minuteInSelection.value) : null);
|
|
24587
|
+
const validSeconds = computed107(() => secondInSelection.value !== null ? getValidValues(0, 59, secondInSelection.value) : null);
|
|
24588
|
+
const viewValidOptions = computed107(() => {
|
|
24560
24589
|
switch (view.value) {
|
|
24561
24590
|
case "hour":
|
|
24562
24591
|
return validHours.value;
|
|
@@ -24566,7 +24595,7 @@ var QTime_default = createComponent({
|
|
|
24566
24595
|
return validSeconds.value;
|
|
24567
24596
|
}
|
|
24568
24597
|
});
|
|
24569
|
-
const positions =
|
|
24598
|
+
const positions = computed107(() => {
|
|
24570
24599
|
let start, end, offset2 = 0, step = 1;
|
|
24571
24600
|
const values = viewValidOptions.value !== null ? viewValidOptions.value.values : void 0;
|
|
24572
24601
|
if (view.value === "hour") {
|
|
@@ -24592,7 +24621,7 @@ var QTime_default = createComponent({
|
|
|
24592
24621
|
}
|
|
24593
24622
|
return pos;
|
|
24594
24623
|
});
|
|
24595
|
-
const clockDirectives =
|
|
24624
|
+
const clockDirectives = computed107(() => {
|
|
24596
24625
|
return [[
|
|
24597
24626
|
TouchPan_default,
|
|
24598
24627
|
onPan,
|
|
@@ -25068,7 +25097,7 @@ var QTime_default = createComponent({
|
|
|
25068
25097
|
});
|
|
25069
25098
|
|
|
25070
25099
|
// src/components/timeline/QTimeline.js
|
|
25071
|
-
import { h as h125, computed as
|
|
25100
|
+
import { h as h125, computed as computed108, provide as provide7, getCurrentInstance as getCurrentInstance81 } from "vue";
|
|
25072
25101
|
var QTimeline_default = createComponent({
|
|
25073
25102
|
name: "QTimeline",
|
|
25074
25103
|
props: {
|
|
@@ -25092,7 +25121,7 @@ var QTimeline_default = createComponent({
|
|
|
25092
25121
|
const vm2 = getCurrentInstance81();
|
|
25093
25122
|
const isDark = use_dark_default(props4, vm2.proxy.$q);
|
|
25094
25123
|
provide7(timelineKey, props4);
|
|
25095
|
-
const classes =
|
|
25124
|
+
const classes = computed108(
|
|
25096
25125
|
() => `q-timeline q-timeline--${props4.layout} q-timeline--${props4.layout}--${props4.side}` + (isDark.value === true ? " q-timeline--dark" : "")
|
|
25097
25126
|
);
|
|
25098
25127
|
return () => h125("ul", { class: classes.value }, hSlot(slots.default));
|
|
@@ -25100,7 +25129,7 @@ var QTimeline_default = createComponent({
|
|
|
25100
25129
|
});
|
|
25101
25130
|
|
|
25102
25131
|
// src/components/timeline/QTimelineEntry.js
|
|
25103
|
-
import { h as h126, computed as
|
|
25132
|
+
import { h as h126, computed as computed109, inject as inject11 } from "vue";
|
|
25104
25133
|
var QTimelineEntry_default = createComponent({
|
|
25105
25134
|
name: "QTimelineEntry",
|
|
25106
25135
|
props: {
|
|
@@ -25127,13 +25156,13 @@ var QTimelineEntry_default = createComponent({
|
|
|
25127
25156
|
console.error("QTimelineEntry needs to be child of QTimeline");
|
|
25128
25157
|
return emptyRenderFn;
|
|
25129
25158
|
}
|
|
25130
|
-
const classes =
|
|
25159
|
+
const classes = computed109(
|
|
25131
25160
|
() => `q-timeline__entry q-timeline__entry--${props4.side}` + (props4.icon !== void 0 || props4.avatar !== void 0 ? " q-timeline__entry--icon" : "")
|
|
25132
25161
|
);
|
|
25133
|
-
const dotClass =
|
|
25162
|
+
const dotClass = computed109(
|
|
25134
25163
|
() => `q-timeline__dot text-${props4.color || $timeline.color}`
|
|
25135
25164
|
);
|
|
25136
|
-
const reverse =
|
|
25165
|
+
const reverse = computed109(
|
|
25137
25166
|
() => $timeline.layout === "comfortable" && $timeline.side === "left"
|
|
25138
25167
|
);
|
|
25139
25168
|
return () => {
|
|
@@ -25188,14 +25217,14 @@ var QTimelineEntry_default = createComponent({
|
|
|
25188
25217
|
});
|
|
25189
25218
|
|
|
25190
25219
|
// src/components/toolbar/QToolbar.js
|
|
25191
|
-
import { h as h127, computed as
|
|
25220
|
+
import { h as h127, computed as computed110 } from "vue";
|
|
25192
25221
|
var QToolbar_default = createComponent({
|
|
25193
25222
|
name: "QToolbar",
|
|
25194
25223
|
props: {
|
|
25195
25224
|
inset: Boolean
|
|
25196
25225
|
},
|
|
25197
25226
|
setup(props4, { slots }) {
|
|
25198
|
-
const classes =
|
|
25227
|
+
const classes = computed110(
|
|
25199
25228
|
() => "q-toolbar row no-wrap items-center" + (props4.inset === true ? " q-toolbar--inset" : "")
|
|
25200
25229
|
);
|
|
25201
25230
|
return () => h127("div", { class: classes.value, role: "toolbar" }, hSlot(slots.default));
|
|
@@ -25203,14 +25232,14 @@ var QToolbar_default = createComponent({
|
|
|
25203
25232
|
});
|
|
25204
25233
|
|
|
25205
25234
|
// src/components/toolbar/QToolbarTitle.js
|
|
25206
|
-
import { h as h128, computed as
|
|
25235
|
+
import { h as h128, computed as computed111 } from "vue";
|
|
25207
25236
|
var QToolbarTitle_default = createComponent({
|
|
25208
25237
|
name: "QToolbarTitle",
|
|
25209
25238
|
props: {
|
|
25210
25239
|
shrink: Boolean
|
|
25211
25240
|
},
|
|
25212
25241
|
setup(props4, { slots }) {
|
|
25213
|
-
const classes =
|
|
25242
|
+
const classes = computed111(
|
|
25214
25243
|
() => "q-toolbar__title ellipsis" + (props4.shrink === true ? " col-shrink" : "")
|
|
25215
25244
|
);
|
|
25216
25245
|
return () => h128("div", { class: classes.value }, hSlot(slots.default));
|
|
@@ -25221,7 +25250,7 @@ var QToolbarTitle_default = createComponent({
|
|
|
25221
25250
|
import {
|
|
25222
25251
|
h as h129,
|
|
25223
25252
|
ref as ref64,
|
|
25224
|
-
computed as
|
|
25253
|
+
computed as computed112,
|
|
25225
25254
|
watch as watch47,
|
|
25226
25255
|
withDirectives as withDirectives10,
|
|
25227
25256
|
vShow as vShow2,
|
|
@@ -25297,22 +25326,22 @@ var QTree_default = createComponent({
|
|
|
25297
25326
|
onBeforeUpdate5(() => {
|
|
25298
25327
|
blurTargets = {};
|
|
25299
25328
|
});
|
|
25300
|
-
const classes =
|
|
25329
|
+
const classes = computed112(
|
|
25301
25330
|
() => `q-tree q-tree--${props4.dense === true ? "dense" : "standard"}` + (props4.noConnectors === true ? " q-tree--no-connectors" : "") + (isDark.value === true ? " q-tree--dark" : "") + (props4.color !== void 0 ? ` text-${props4.color}` : "")
|
|
25302
25331
|
);
|
|
25303
|
-
const hasSelection =
|
|
25304
|
-
const computedIcon =
|
|
25305
|
-
const computedControlColor =
|
|
25306
|
-
const textColorClass =
|
|
25307
|
-
const selectedColorClass =
|
|
25332
|
+
const hasSelection = computed112(() => props4.selected !== void 0);
|
|
25333
|
+
const computedIcon = computed112(() => props4.icon || $q.iconSet.tree.icon);
|
|
25334
|
+
const computedControlColor = computed112(() => props4.controlColor || props4.color);
|
|
25335
|
+
const textColorClass = computed112(() => props4.textColor !== void 0 ? ` text-${props4.textColor}` : "");
|
|
25336
|
+
const selectedColorClass = computed112(() => {
|
|
25308
25337
|
const color = props4.selectedColor || props4.color;
|
|
25309
25338
|
return color ? ` text-${color}` : "";
|
|
25310
25339
|
});
|
|
25311
|
-
const computedFilterMethod =
|
|
25340
|
+
const computedFilterMethod = computed112(() => props4.filterMethod !== void 0 ? props4.filterMethod : (node, filter) => {
|
|
25312
25341
|
const filt = filter.toLowerCase();
|
|
25313
25342
|
return node[props4.labelKey] && node[props4.labelKey].toLowerCase().indexOf(filt) !== -1;
|
|
25314
25343
|
});
|
|
25315
|
-
const meta =
|
|
25344
|
+
const meta = computed112(() => {
|
|
25316
25345
|
const meta2 = {};
|
|
25317
25346
|
const travel = (node, parent) => {
|
|
25318
25347
|
const tickStrategy = node.tickStrategy || (parent ? parent.tickStrategy : props4.tickStrategy);
|
|
@@ -25756,7 +25785,7 @@ var QTree_default = createComponent({
|
|
|
25756
25785
|
});
|
|
25757
25786
|
|
|
25758
25787
|
// src/components/uploader/uploader-core.js
|
|
25759
|
-
import { h as h130, ref as ref65, isRef, computed as
|
|
25788
|
+
import { h as h130, ref as ref65, isRef, computed as computed113, watch as watch48, provide as provide8, onBeforeUnmount as onBeforeUnmount37, getCurrentInstance as getCurrentInstance83 } from "vue";
|
|
25760
25789
|
function getProgressLabel(p) {
|
|
25761
25790
|
return (p * 100).toFixed(2) + "%";
|
|
25762
25791
|
}
|
|
@@ -25809,7 +25838,7 @@ function getRenderer(getPlugin, expose) {
|
|
|
25809
25838
|
file.__progressLabel = getProgressLabel(file.__progress);
|
|
25810
25839
|
proxy.$forceUpdate();
|
|
25811
25840
|
}
|
|
25812
|
-
const editable =
|
|
25841
|
+
const editable = computed113(() => props4.disable !== true && props4.readonly !== true);
|
|
25813
25842
|
const dnd = ref65(false);
|
|
25814
25843
|
const rootRef = ref65(null);
|
|
25815
25844
|
const inputRef = ref65(null);
|
|
@@ -25844,20 +25873,20 @@ function getRenderer(getPlugin, expose) {
|
|
|
25844
25873
|
state.isBusy = ref65(false);
|
|
25845
25874
|
}
|
|
25846
25875
|
const uploadSize = ref65(0);
|
|
25847
|
-
const uploadProgress =
|
|
25848
|
-
const uploadProgressLabel =
|
|
25849
|
-
const uploadSizeLabel =
|
|
25850
|
-
const canAddFiles =
|
|
25876
|
+
const uploadProgress = computed113(() => uploadSize.value === 0 ? 0 : state.uploadedSize.value / uploadSize.value);
|
|
25877
|
+
const uploadProgressLabel = computed113(() => getProgressLabel(uploadProgress.value));
|
|
25878
|
+
const uploadSizeLabel = computed113(() => humanStorageSize(uploadSize.value));
|
|
25879
|
+
const canAddFiles = computed113(
|
|
25851
25880
|
() => editable.value === true && state.isUploading.value !== true && (props4.multiple === true || state.queuedFiles.value.length === 0) && (props4.maxFiles === void 0 || state.files.value.length < maxFilesNumber.value) && (props4.maxTotalSize === void 0 || uploadSize.value < maxTotalSizeNumber.value)
|
|
25852
25881
|
);
|
|
25853
|
-
const canUpload =
|
|
25882
|
+
const canUpload = computed113(
|
|
25854
25883
|
() => editable.value === true && state.isBusy.value !== true && state.isUploading.value !== true && state.queuedFiles.value.length !== 0
|
|
25855
25884
|
);
|
|
25856
25885
|
provide8(uploaderKey, renderInput);
|
|
25857
|
-
const classes =
|
|
25886
|
+
const classes = computed113(
|
|
25858
25887
|
() => "q-uploader column no-wrap" + (isDark.value === true ? " q-uploader--dark q-dark" : "") + (props4.bordered === true ? " q-uploader--bordered" : "") + (props4.square === true ? " q-uploader--square no-border-radius" : "") + (props4.flat === true ? " q-uploader--flat no-shadow" : "") + (props4.disable === true ? " disabled q-uploader--disable" : "") + (dnd.value === true ? " q-uploader--dnd" : "")
|
|
25859
25888
|
);
|
|
25860
|
-
const colorClass =
|
|
25889
|
+
const colorClass = computed113(
|
|
25861
25890
|
() => "q-uploader__header" + (props4.color !== void 0 ? ` bg-${props4.color}` : "") + (props4.textColor !== void 0 ? ` text-${props4.textColor}` : "")
|
|
25862
25891
|
);
|
|
25863
25892
|
watch48(state.isUploading, (newVal, oldVal) => {
|
|
@@ -26153,7 +26182,7 @@ var create_uploader_component_default = ({ name: name2, props: props4, emits: em
|
|
|
26153
26182
|
});
|
|
26154
26183
|
|
|
26155
26184
|
// src/components/uploader/xhr-uploader-plugin.js
|
|
26156
|
-
import { ref as ref66, computed as
|
|
26185
|
+
import { ref as ref66, computed as computed114 } from "vue";
|
|
26157
26186
|
function getFn(prop) {
|
|
26158
26187
|
return typeof prop === "function" ? prop : () => prop;
|
|
26159
26188
|
}
|
|
@@ -26180,7 +26209,7 @@ function injectPlugin({ props: props4, emit, helpers }) {
|
|
|
26180
26209
|
const xhrs = ref66([]);
|
|
26181
26210
|
const promises = ref66([]);
|
|
26182
26211
|
const workingThreads = ref66(0);
|
|
26183
|
-
const xhrProps =
|
|
26212
|
+
const xhrProps = computed114(() => ({
|
|
26184
26213
|
url: getFn(props4.url),
|
|
26185
26214
|
method: getFn(props4.method),
|
|
26186
26215
|
headers: getFn(props4.headers),
|
|
@@ -26190,8 +26219,8 @@ function injectPlugin({ props: props4, emit, helpers }) {
|
|
|
26190
26219
|
sendRaw: getFn(props4.sendRaw),
|
|
26191
26220
|
batch: getFn(props4.batch)
|
|
26192
26221
|
}));
|
|
26193
|
-
const isUploading =
|
|
26194
|
-
const isBusy =
|
|
26222
|
+
const isUploading = computed114(() => workingThreads.value > 0);
|
|
26223
|
+
const isBusy = computed114(() => promises.value.length !== 0);
|
|
26195
26224
|
let abortPromises;
|
|
26196
26225
|
function abort() {
|
|
26197
26226
|
xhrs.value.forEach((x) => {
|
|
@@ -26371,7 +26400,7 @@ var QUploaderAddTrigger_default = createComponent({
|
|
|
26371
26400
|
});
|
|
26372
26401
|
|
|
26373
26402
|
// src/components/video/QVideo.js
|
|
26374
|
-
import { h as h131, computed as
|
|
26403
|
+
import { h as h131, computed as computed115 } from "vue";
|
|
26375
26404
|
var QVideo_default = createComponent({
|
|
26376
26405
|
name: "QVideo",
|
|
26377
26406
|
props: {
|
|
@@ -26396,7 +26425,7 @@ var QVideo_default = createComponent({
|
|
|
26396
26425
|
},
|
|
26397
26426
|
setup(props4) {
|
|
26398
26427
|
const ratioStyle = use_ratio_default(props4);
|
|
26399
|
-
const classes =
|
|
26428
|
+
const classes = computed115(
|
|
26400
26429
|
() => "q-video" + (props4.ratio !== void 0 ? " q-video--responsive" : "")
|
|
26401
26430
|
);
|
|
26402
26431
|
return () => h131("div", {
|
|
@@ -28410,7 +28439,7 @@ if (true) {
|
|
|
28410
28439
|
var Cookies_default = Plugin6;
|
|
28411
28440
|
|
|
28412
28441
|
// src/plugins/dialog/component/DialogPluginComponent.js
|
|
28413
|
-
import { h as h134, ref as ref69, computed as
|
|
28442
|
+
import { h as h134, ref as ref69, computed as computed116, watch as watch49, toRaw as toRaw3, getCurrentInstance as getCurrentInstance85 } from "vue";
|
|
28414
28443
|
var DialogPluginComponent_default = createComponent({
|
|
28415
28444
|
name: "DialogPluginComponent",
|
|
28416
28445
|
props: {
|
|
@@ -28445,32 +28474,32 @@ var DialogPluginComponent_default = createComponent({
|
|
|
28445
28474
|
const model = ref69(
|
|
28446
28475
|
props4.prompt !== void 0 ? props4.prompt.model : props4.options !== void 0 ? props4.options.model : void 0
|
|
28447
28476
|
);
|
|
28448
|
-
const classes =
|
|
28477
|
+
const classes = computed116(
|
|
28449
28478
|
() => "q-dialog-plugin" + (isDark.value === true ? " q-dialog-plugin--dark q-dark" : "") + (props4.progress !== false ? " q-dialog-plugin--progress" : "")
|
|
28450
28479
|
);
|
|
28451
|
-
const vmColor =
|
|
28480
|
+
const vmColor = computed116(
|
|
28452
28481
|
() => props4.color || (isDark.value === true ? "amber" : "primary")
|
|
28453
28482
|
);
|
|
28454
|
-
const spinner =
|
|
28483
|
+
const spinner = computed116(() => props4.progress === false ? null : isObject(props4.progress) === true ? {
|
|
28455
28484
|
component: props4.progress.spinner || QSpinner_default,
|
|
28456
28485
|
props: { color: props4.progress.color || vmColor.value }
|
|
28457
28486
|
} : {
|
|
28458
28487
|
component: QSpinner_default,
|
|
28459
28488
|
props: { color: vmColor.value }
|
|
28460
28489
|
});
|
|
28461
|
-
const hasForm =
|
|
28490
|
+
const hasForm = computed116(
|
|
28462
28491
|
() => props4.prompt !== void 0 || props4.options !== void 0
|
|
28463
28492
|
);
|
|
28464
|
-
const formProps =
|
|
28493
|
+
const formProps = computed116(() => {
|
|
28465
28494
|
if (hasForm.value !== true) {
|
|
28466
28495
|
return {};
|
|
28467
28496
|
}
|
|
28468
28497
|
const { model: model2, isValid: isValid2, items, ...formProps2 } = props4.prompt !== void 0 ? props4.prompt : props4.options;
|
|
28469
28498
|
return formProps2;
|
|
28470
28499
|
});
|
|
28471
|
-
const okLabel =
|
|
28472
|
-
const cancelLabel =
|
|
28473
|
-
const okDisabled =
|
|
28500
|
+
const okLabel = computed116(() => isObject(props4.ok) === true ? $q.lang.label.ok : props4.ok === true ? $q.lang.label.ok : props4.ok);
|
|
28501
|
+
const cancelLabel = computed116(() => isObject(props4.cancel) === true ? $q.lang.label.cancel : props4.cancel === true ? $q.lang.label.cancel : props4.cancel);
|
|
28502
|
+
const okDisabled = computed116(() => {
|
|
28474
28503
|
if (props4.prompt !== void 0) {
|
|
28475
28504
|
return props4.prompt.isValid !== void 0 && props4.prompt.isValid(model.value) !== true;
|
|
28476
28505
|
}
|
|
@@ -28479,7 +28508,7 @@ var DialogPluginComponent_default = createComponent({
|
|
|
28479
28508
|
}
|
|
28480
28509
|
return false;
|
|
28481
28510
|
});
|
|
28482
|
-
const okProps =
|
|
28511
|
+
const okProps = computed116(() => ({
|
|
28483
28512
|
color: vmColor.value,
|
|
28484
28513
|
label: okLabel.value,
|
|
28485
28514
|
ripple: false,
|
|
@@ -28488,7 +28517,7 @@ var DialogPluginComponent_default = createComponent({
|
|
|
28488
28517
|
"data-autofocus": props4.focus === "ok" && hasForm.value !== true || void 0,
|
|
28489
28518
|
onClick: onOk
|
|
28490
28519
|
}));
|
|
28491
|
-
const cancelProps =
|
|
28520
|
+
const cancelProps = computed116(() => ({
|
|
28492
28521
|
color: vmColor.value,
|
|
28493
28522
|
label: cancelLabel.value,
|
|
28494
28523
|
ripple: false,
|
|
@@ -29571,7 +29600,7 @@ useDialogPluginComponent.emits = emits2;
|
|
|
29571
29600
|
useDialogPluginComponent.emitsObject = get_emits_object_default(emits2);
|
|
29572
29601
|
|
|
29573
29602
|
// src/composables/use-meta/use-meta.js
|
|
29574
|
-
import { computed as
|
|
29603
|
+
import { computed as computed117, watch as watch50, onActivated as onActivated8, onDeactivated as onDeactivated10, onUnmounted as onUnmounted3, useSSRContext } from "vue";
|
|
29575
29604
|
function use_meta_default(metaOptions) {
|
|
29576
29605
|
if (false) {
|
|
29577
29606
|
const ssrContext = useSSRContext();
|
|
@@ -29581,7 +29610,7 @@ function use_meta_default(metaOptions) {
|
|
|
29581
29610
|
} else {
|
|
29582
29611
|
const meta = { active: true };
|
|
29583
29612
|
if (typeof metaOptions === "function") {
|
|
29584
|
-
const content =
|
|
29613
|
+
const content = computed117(metaOptions);
|
|
29585
29614
|
meta.val = content.value;
|
|
29586
29615
|
watch50(content, (val) => {
|
|
29587
29616
|
meta.val = val;
|
|
@@ -29919,7 +29948,7 @@ function runSequentialPromises(sequentialPromises, { threadsNumber = 1, abortOnF
|
|
|
29919
29948
|
|
|
29920
29949
|
// src/index.dev.js
|
|
29921
29950
|
var Quasar = {
|
|
29922
|
-
version: "2.18.
|
|
29951
|
+
version: "2.18.4",
|
|
29923
29952
|
install: install_quasar_default,
|
|
29924
29953
|
// TODO: remove in Qv3 (should only be used through the plugin)
|
|
29925
29954
|
// We provide a deprecated fallback here
|