quasar 2.16.4 → 2.16.6
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/QRange.json +1 -1
- package/dist/api/QSlider.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 +2 -2
- package/dist/icon-set/svg-material-symbols-rounded.umd.prod.js +2 -2
- package/dist/icon-set/svg-material-symbols-sharp.umd.prod.js +2 -2
- 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/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/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/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.addon.prod.css +1 -1
- package/dist/quasar.addon.rtl.prod.css +1 -1
- package/dist/quasar.client.js +66 -128
- package/dist/quasar.css +2 -2
- package/dist/quasar.prod.css +1 -1
- package/dist/quasar.rtl.css +2 -2
- package/dist/quasar.rtl.prod.css +1 -1
- package/dist/quasar.sass +5 -5
- package/dist/quasar.server.prod.cjs +3 -3
- package/dist/quasar.server.prod.js +3 -3
- package/dist/quasar.umd.js +65 -126
- package/dist/quasar.umd.prod.js +3 -3
- package/dist/types/api/slider.d.ts +0 -2
- package/dist/types/composables.d.ts +7 -9
- package/dist/types/index.d.ts +4 -5
- package/dist/types/utils/format.d.ts +1 -1
- package/dist/web-types/web-types.json +1 -1
- package/package.json +8 -8
- package/src/components/layout/QLayout.sass +2 -2
- package/src/components/skeleton/QSkeleton.sass +3 -3
- package/src/components/slider/use-slider.json +2 -2
package/dist/quasar.client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Quasar Framework v2.16.
|
|
2
|
+
* Quasar Framework v2.16.6
|
|
3
3
|
* (c) 2015-present Razvan Stoenescu
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
// src/flags.dev.js
|
|
9
9
|
var attachPoint = null;
|
|
10
10
|
function getAttachPoint() {
|
|
11
|
-
if (attachPoint !== null)
|
|
12
|
-
return attachPoint;
|
|
11
|
+
if (attachPoint !== null) return attachPoint;
|
|
13
12
|
return attachPoint = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {};
|
|
14
13
|
}
|
|
15
14
|
if (typeof __QUASAR_SSR__ !== "boolean") {
|
|
@@ -449,8 +448,7 @@ var Screen_default = createReactivePlugin({
|
|
|
449
448
|
setDebounce: noop,
|
|
450
449
|
install({ $q, onSSRHydrated }) {
|
|
451
450
|
$q.screen = this;
|
|
452
|
-
if (false)
|
|
453
|
-
return;
|
|
451
|
+
if (false) return;
|
|
454
452
|
if (this.__installed === true) {
|
|
455
453
|
if ($q.config.screen !== void 0) {
|
|
456
454
|
if ($q.config.screen.bodyClasses === false) {
|
|
@@ -560,8 +558,7 @@ var Plugin = createReactivePlugin({
|
|
|
560
558
|
}, {
|
|
561
559
|
__media: void 0,
|
|
562
560
|
set(val) {
|
|
563
|
-
if (false)
|
|
564
|
-
return;
|
|
561
|
+
if (false) return;
|
|
565
562
|
Plugin.mode = val;
|
|
566
563
|
if (val === "auto") {
|
|
567
564
|
if (Plugin.__media === void 0) {
|
|
@@ -640,10 +637,8 @@ function isKeyCode(evt, keyCodes4) {
|
|
|
640
637
|
|
|
641
638
|
// src/plugins/private.body/Body.js
|
|
642
639
|
function getMobilePlatform(is) {
|
|
643
|
-
if (is.ios === true)
|
|
644
|
-
|
|
645
|
-
if (is.android === true)
|
|
646
|
-
return "android";
|
|
640
|
+
if (is.ios === true) return "ios";
|
|
641
|
+
if (is.android === true) return "android";
|
|
647
642
|
}
|
|
648
643
|
function getBodyClasses({ is, has: has2, within }, cfg) {
|
|
649
644
|
const cls = [
|
|
@@ -723,8 +718,7 @@ var Body_default = {
|
|
|
723
718
|
}
|
|
724
719
|
return;
|
|
725
720
|
}
|
|
726
|
-
if (this.__installed === true)
|
|
727
|
-
return;
|
|
721
|
+
if (this.__installed === true) return;
|
|
728
722
|
if (isRuntimeSsrPreHydration.value === true) {
|
|
729
723
|
applyClientSsrCorrections();
|
|
730
724
|
} else {
|
|
@@ -769,8 +763,7 @@ var History_default = {
|
|
|
769
763
|
add: noop,
|
|
770
764
|
remove: noop,
|
|
771
765
|
install({ $q }) {
|
|
772
|
-
if (this.__installed === true)
|
|
773
|
-
return;
|
|
766
|
+
if (this.__installed === true) return;
|
|
774
767
|
const { cordova: cordova2, capacitor } = client.is;
|
|
775
768
|
if (cordova2 !== true && capacitor !== true) {
|
|
776
769
|
return;
|
|
@@ -920,8 +913,7 @@ var en_US_default = {
|
|
|
920
913
|
|
|
921
914
|
// src/plugins/lang/Lang.js
|
|
922
915
|
function getLocale() {
|
|
923
|
-
if (false)
|
|
924
|
-
return;
|
|
916
|
+
if (false) return;
|
|
925
917
|
const val = Array.isArray(navigator.languages) === true && navigator.languages.length !== 0 ? navigator.languages[0] : navigator.language;
|
|
926
918
|
if (typeof val === "string") {
|
|
927
919
|
return val.split(/[-_]/).map((v, i) => i === 0 ? v.toLowerCase() : i > 1 || v.length < 4 ? v.toUpperCase() : v[0].toUpperCase() + v.slice(1).toLowerCase()).join("-");
|
|
@@ -1371,7 +1363,7 @@ function prepareApp(app2, uiOpts, pluginOpts) {
|
|
|
1371
1363
|
}
|
|
1372
1364
|
var install_quasar_default = false ? function(parentApp, opts = {}, ssrContext) {
|
|
1373
1365
|
const $q = {
|
|
1374
|
-
version: "2.16.
|
|
1366
|
+
version: "2.16.6",
|
|
1375
1367
|
config: opts.config || {}
|
|
1376
1368
|
};
|
|
1377
1369
|
Object.assign(ssrContext, {
|
|
@@ -1401,7 +1393,7 @@ var install_quasar_default = false ? function(parentApp, opts = {}, ssrContext)
|
|
|
1401
1393
|
ssrContext
|
|
1402
1394
|
});
|
|
1403
1395
|
} : function(parentApp, opts = {}) {
|
|
1404
|
-
const $q = { version: "2.16.
|
|
1396
|
+
const $q = { version: "2.16.6" };
|
|
1405
1397
|
if (globalConfigIsFrozen === false) {
|
|
1406
1398
|
if (opts.config !== void 0) {
|
|
1407
1399
|
Object.assign(globalConfig, opts.config);
|
|
@@ -1509,8 +1501,7 @@ function inc(p, amount) {
|
|
|
1509
1501
|
function highjackAjax(stackEntry) {
|
|
1510
1502
|
highjackCount++;
|
|
1511
1503
|
stack.push(stackEntry);
|
|
1512
|
-
if (highjackCount > 1)
|
|
1513
|
-
return;
|
|
1504
|
+
if (highjackCount > 1) return;
|
|
1514
1505
|
xhr.prototype.open = function(_, url) {
|
|
1515
1506
|
const stopStack = [];
|
|
1516
1507
|
const loadStart = () => {
|
|
@@ -2140,13 +2131,11 @@ var QBreadcrumbs_default = createComponent({
|
|
|
2140
2131
|
const sepClass = computed10(() => props4.separatorColor ? ` text-${props4.separatorColor}` : "");
|
|
2141
2132
|
const activeClass = computed10(() => ` text-${props4.activeColor}`);
|
|
2142
2133
|
return () => {
|
|
2143
|
-
if (slots.default === void 0)
|
|
2144
|
-
return;
|
|
2134
|
+
if (slots.default === void 0) return;
|
|
2145
2135
|
const vnodes = getNormalizedVNodes(
|
|
2146
2136
|
hSlot(slots.default)
|
|
2147
2137
|
);
|
|
2148
|
-
if (vnodes.length === 0)
|
|
2149
|
-
return;
|
|
2138
|
+
if (vnodes.length === 0) return;
|
|
2150
2139
|
let els = 1;
|
|
2151
2140
|
const child = [], len = vnodes.filter((c) => c.type !== void 0 && c.type.name === "QBreadcrumbsEl").length, separator = slots.separator !== void 0 ? slots.separator : () => props4.separator;
|
|
2152
2141
|
vnodes.forEach((comp) => {
|
|
@@ -2661,14 +2650,10 @@ var formTypes = ["button", "submit", "reset"];
|
|
|
2661
2650
|
var mediaTypeRE = /[^\s]\/[^\s]/;
|
|
2662
2651
|
var btnDesignOptions = ["flat", "outline", "push", "unelevated"];
|
|
2663
2652
|
function getBtnDesign(props4, defaultValue) {
|
|
2664
|
-
if (props4.flat === true)
|
|
2665
|
-
|
|
2666
|
-
if (props4.
|
|
2667
|
-
|
|
2668
|
-
if (props4.push === true)
|
|
2669
|
-
return "push";
|
|
2670
|
-
if (props4.unelevated === true)
|
|
2671
|
-
return "unelevated";
|
|
2653
|
+
if (props4.flat === true) return "flat";
|
|
2654
|
+
if (props4.outline === true) return "outline";
|
|
2655
|
+
if (props4.push === true) return "push";
|
|
2656
|
+
if (props4.unelevated === true) return "unelevated";
|
|
2672
2657
|
return defaultValue;
|
|
2673
2658
|
}
|
|
2674
2659
|
function getBtnDesignAttr(props4) {
|
|
@@ -2879,8 +2864,7 @@ var QBtn_default = createComponent({
|
|
|
2879
2864
|
...onEvents.value
|
|
2880
2865
|
}));
|
|
2881
2866
|
function onClick(e) {
|
|
2882
|
-
if (rootRef.value === null)
|
|
2883
|
-
return;
|
|
2867
|
+
if (rootRef.value === null) return;
|
|
2884
2868
|
if (e !== void 0) {
|
|
2885
2869
|
if (e.defaultPrevented === true) {
|
|
2886
2870
|
return;
|
|
@@ -2901,8 +2885,7 @@ var QBtn_default = createComponent({
|
|
|
2901
2885
|
navigateOnClick(e);
|
|
2902
2886
|
}
|
|
2903
2887
|
function onKeydown2(e) {
|
|
2904
|
-
if (rootRef.value === null)
|
|
2905
|
-
return;
|
|
2888
|
+
if (rootRef.value === null) return;
|
|
2906
2889
|
emit("keydown", e);
|
|
2907
2890
|
if (isKeyCode(e, [13, 32]) === true && keyboardTarget !== rootRef.value) {
|
|
2908
2891
|
keyboardTarget !== null && cleanup();
|
|
@@ -2917,11 +2900,9 @@ var QBtn_default = createComponent({
|
|
|
2917
2900
|
}
|
|
2918
2901
|
}
|
|
2919
2902
|
function onTouchstart(e) {
|
|
2920
|
-
if (rootRef.value === null)
|
|
2921
|
-
return;
|
|
2903
|
+
if (rootRef.value === null) return;
|
|
2922
2904
|
emit("touchstart", e);
|
|
2923
|
-
if (e.defaultPrevented === true)
|
|
2924
|
-
return;
|
|
2905
|
+
if (e.defaultPrevented === true) return;
|
|
2925
2906
|
if (touchTarget !== rootRef.value) {
|
|
2926
2907
|
touchTarget !== null && cleanup();
|
|
2927
2908
|
touchTarget = rootRef.value;
|
|
@@ -2937,8 +2918,7 @@ var QBtn_default = createComponent({
|
|
|
2937
2918
|
}, 200);
|
|
2938
2919
|
}
|
|
2939
2920
|
function onMousedown(e) {
|
|
2940
|
-
if (rootRef.value === null)
|
|
2941
|
-
return;
|
|
2921
|
+
if (rootRef.value === null) return;
|
|
2942
2922
|
e.qSkipRipple = avoidMouseRipple === true;
|
|
2943
2923
|
emit("mousedown", e);
|
|
2944
2924
|
if (e.defaultPrevented !== true && mouseTarget !== rootRef.value) {
|
|
@@ -2949,8 +2929,7 @@ var QBtn_default = createComponent({
|
|
|
2949
2929
|
}
|
|
2950
2930
|
}
|
|
2951
2931
|
function onPressEnd(e) {
|
|
2952
|
-
if (rootRef.value === null)
|
|
2953
|
-
return;
|
|
2932
|
+
if (rootRef.value === null) return;
|
|
2954
2933
|
if (e !== void 0 && e.type === "blur" && document.activeElement === rootRef.value) {
|
|
2955
2934
|
return;
|
|
2956
2935
|
}
|
|
@@ -3208,8 +3187,7 @@ function use_anchor_default({
|
|
|
3208
3187
|
}
|
|
3209
3188
|
});
|
|
3210
3189
|
configureAnchorEl = function(context = props4.contextMenu) {
|
|
3211
|
-
if (props4.noParentEvent === true || anchorEl.value === null)
|
|
3212
|
-
return;
|
|
3190
|
+
if (props4.noParentEvent === true || anchorEl.value === null) return;
|
|
3213
3191
|
let evts;
|
|
3214
3192
|
if (context === true) {
|
|
3215
3193
|
if (proxy.$q.platform.is.mobile === true) {
|
|
@@ -3631,8 +3609,7 @@ function use_portal_default(vm2, innerRef, renderPortalContent, type) {
|
|
|
3631
3609
|
}
|
|
3632
3610
|
function hidePortal(isReady) {
|
|
3633
3611
|
portalIsAccessible.value = false;
|
|
3634
|
-
if (isReady !== true)
|
|
3635
|
-
return;
|
|
3612
|
+
if (isReady !== true) return;
|
|
3636
3613
|
removeFocusWaitFlag(focusObj);
|
|
3637
3614
|
portalIsActive.value = false;
|
|
3638
3615
|
const index = portalProxyList.indexOf(vm2.proxy);
|
|
@@ -6283,8 +6260,7 @@ var QChip_default = createComponent({
|
|
|
6283
6260
|
return child;
|
|
6284
6261
|
}
|
|
6285
6262
|
return () => {
|
|
6286
|
-
if (props4.modelValue === false)
|
|
6287
|
-
return;
|
|
6263
|
+
if (props4.modelValue === false) return;
|
|
6288
6264
|
const data = {
|
|
6289
6265
|
class: classes.value,
|
|
6290
6266
|
style: sizeStyle.value
|
|
@@ -7644,8 +7620,7 @@ var QTabs_default = createComponent({
|
|
|
7644
7620
|
});
|
|
7645
7621
|
}
|
|
7646
7622
|
function updateContainer(domSize) {
|
|
7647
|
-
if (domProps.value === void 0 || contentRef.value === null)
|
|
7648
|
-
return;
|
|
7623
|
+
if (domProps.value === void 0 || contentRef.value === null) return;
|
|
7649
7624
|
const size2 = domSize[domProps.value.container], scrollSize = Math.min(
|
|
7650
7625
|
contentRef.value[domProps.value.scroll],
|
|
7651
7626
|
Array.prototype.reduce.call(
|
|
@@ -7700,8 +7675,7 @@ var QTabs_default = createComponent({
|
|
|
7700
7675
|
}
|
|
7701
7676
|
function updateArrows() {
|
|
7702
7677
|
const content = contentRef.value;
|
|
7703
|
-
if (content === null)
|
|
7704
|
-
return;
|
|
7678
|
+
if (content === null) return;
|
|
7705
7679
|
const rect = content.getBoundingClientRect(), pos = props4.vertical === true ? content.scrollTop : Math.abs(content.scrollLeft);
|
|
7706
7680
|
if (isRTL.value === true) {
|
|
7707
7681
|
leftArrow.value = Math.ceil(pos + rect.width) < content.scrollWidth - 1;
|
|
@@ -7737,8 +7711,7 @@ var QTabs_default = createComponent({
|
|
|
7737
7711
|
(el) => el === fromEl || el.matches && el.matches(".q-tab.q-focusable") === true
|
|
7738
7712
|
);
|
|
7739
7713
|
const len = tabs.length;
|
|
7740
|
-
if (len === 0)
|
|
7741
|
-
return;
|
|
7714
|
+
if (len === 0) return;
|
|
7742
7715
|
if (keyCode === 36) {
|
|
7743
7716
|
scrollToTabEl(tabs[0]);
|
|
7744
7717
|
tabs[0].focus();
|
|
@@ -8649,8 +8622,7 @@ var QColor_default = createComponent({
|
|
|
8649
8622
|
}
|
|
8650
8623
|
function changeSpectrum(left, top, change) {
|
|
8651
8624
|
const panel = spectrumRef.value;
|
|
8652
|
-
if (panel === null)
|
|
8653
|
-
return;
|
|
8625
|
+
if (panel === null) return;
|
|
8654
8626
|
const width3 = panel.clientWidth, height2 = panel.clientHeight, rect = panel.getBoundingClientRect();
|
|
8655
8627
|
let x = Math.min(width3, Math.max(0, left - rect.left));
|
|
8656
8628
|
if ($q.lang.rtl === true) {
|
|
@@ -9171,12 +9143,9 @@ function isLeapJalaaliYear(jy) {
|
|
|
9171
9143
|
return jalCalLeap(jy) === 0;
|
|
9172
9144
|
}
|
|
9173
9145
|
function jalaaliMonthLength(jy, jm) {
|
|
9174
|
-
if (jm <= 6)
|
|
9175
|
-
|
|
9176
|
-
if (
|
|
9177
|
-
return 30;
|
|
9178
|
-
if (isLeapJalaaliYear(jy))
|
|
9179
|
-
return 30;
|
|
9146
|
+
if (jm <= 6) return 31;
|
|
9147
|
+
if (jm <= 11) return 30;
|
|
9148
|
+
if (isLeapJalaaliYear(jy)) return 30;
|
|
9180
9149
|
return 29;
|
|
9181
9150
|
}
|
|
9182
9151
|
function jalCalLeap(jy) {
|
|
@@ -10866,8 +10835,7 @@ var QDate_default = createComponent({
|
|
|
10866
10835
|
emit("update:modelValue", (props4.multiple === true ? model : model[0]) || null, reason);
|
|
10867
10836
|
}
|
|
10868
10837
|
function getHeader() {
|
|
10869
|
-
if (props4.minimal === true)
|
|
10870
|
-
return;
|
|
10838
|
+
if (props4.minimal === true) return;
|
|
10871
10839
|
return h38("div", {
|
|
10872
10840
|
class: "q-date__header " + headerClass.value
|
|
10873
10841
|
}, [
|
|
@@ -11571,8 +11539,7 @@ var QDialog_default = createComponent({
|
|
|
11571
11539
|
function focus(selector) {
|
|
11572
11540
|
addFocusFn(() => {
|
|
11573
11541
|
let node = innerRef.value;
|
|
11574
|
-
if (node === null)
|
|
11575
|
-
return;
|
|
11542
|
+
if (node === null) return;
|
|
11576
11543
|
if (selector !== void 0) {
|
|
11577
11544
|
const target2 = node.querySelector(selector);
|
|
11578
11545
|
if (target2 !== null) {
|
|
@@ -11992,8 +11959,7 @@ var QDrawer_default = createComponent({
|
|
|
11992
11959
|
applyPosition();
|
|
11993
11960
|
});
|
|
11994
11961
|
watch15(() => props4.mini, () => {
|
|
11995
|
-
if (props4.noMiniAnimation)
|
|
11996
|
-
return;
|
|
11962
|
+
if (props4.noMiniAnimation) return;
|
|
11997
11963
|
if (props4.modelValue === true) {
|
|
11998
11964
|
animateMini();
|
|
11999
11965
|
$layout.animate();
|
|
@@ -12660,8 +12626,7 @@ var QTooltip_default = createComponent({
|
|
|
12660
12626
|
}, props4.hideDelay);
|
|
12661
12627
|
}
|
|
12662
12628
|
function configureAnchorEl() {
|
|
12663
|
-
if (props4.noParentEvent === true || anchorEl.value === null)
|
|
12664
|
-
return;
|
|
12629
|
+
if (props4.noParentEvent === true || anchorEl.value === null) return;
|
|
12665
12630
|
const evts = $q.platform.is.mobile === true ? [
|
|
12666
12631
|
[anchorEl.value, "touchstart", "delayShow", "passive"]
|
|
12667
12632
|
] : [
|
|
@@ -15203,8 +15168,7 @@ var QFile_default = createComponent({
|
|
|
15203
15168
|
if (fileInput !== void 0 && fileInput !== null) {
|
|
15204
15169
|
fileInput.value = "";
|
|
15205
15170
|
}
|
|
15206
|
-
if (files === void 0)
|
|
15207
|
-
return;
|
|
15171
|
+
if (files === void 0) return;
|
|
15208
15172
|
if (props4.multiple === true ? props4.modelValue && files.every((f) => innerValue.value.includes(f)) : props4.modelValue === files[0]) {
|
|
15209
15173
|
return;
|
|
15210
15174
|
}
|
|
@@ -15382,8 +15346,7 @@ var QFooter_default = createComponent({
|
|
|
15382
15346
|
updateLayout("size", height2);
|
|
15383
15347
|
}
|
|
15384
15348
|
function updateRevealed() {
|
|
15385
|
-
if (props4.reveal !== true)
|
|
15386
|
-
return;
|
|
15349
|
+
if (props4.reveal !== true) return;
|
|
15387
15350
|
const { direction, position: position2, inflectionPoint } = $layout.scroll.value;
|
|
15388
15351
|
updateLocal(revealed, direction === "up" || position2 - inflectionPoint < 100 || $layout.height.value - containerHeight.value - position2 - size2.value < 300);
|
|
15389
15352
|
}
|
|
@@ -15536,8 +15499,7 @@ var QForm_default = createComponent({
|
|
|
15536
15499
|
}
|
|
15537
15500
|
function focus() {
|
|
15538
15501
|
addFocusFn(() => {
|
|
15539
|
-
if (rootRef.value === null)
|
|
15540
|
-
return;
|
|
15502
|
+
if (rootRef.value === null) return;
|
|
15541
15503
|
const target2 = rootRef.value.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || rootRef.value.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || rootRef.value.querySelector("[autofocus], [data-autofocus]") || Array.prototype.find.call(rootRef.value.querySelectorAll("[tabindex]"), (el) => el.tabIndex !== -1);
|
|
15542
15504
|
target2 !== null && target2 !== void 0 && target2.focus({ preventScroll: true });
|
|
15543
15505
|
});
|
|
@@ -15873,8 +15835,7 @@ var QImg_default = createComponent({
|
|
|
15873
15835
|
}
|
|
15874
15836
|
}
|
|
15875
15837
|
function waitForCompleteness(target2, count) {
|
|
15876
|
-
if (count === 1e3 || vmIsDestroyed(vm2) === true)
|
|
15877
|
-
return;
|
|
15838
|
+
if (count === 1e3 || vmIsDestroyed(vm2) === true) return;
|
|
15878
15839
|
if (target2.complete === true) {
|
|
15879
15840
|
onReady(target2);
|
|
15880
15841
|
} else {
|
|
@@ -15884,8 +15845,7 @@ var QImg_default = createComponent({
|
|
|
15884
15845
|
}
|
|
15885
15846
|
}
|
|
15886
15847
|
function onReady(target2) {
|
|
15887
|
-
if (vmIsDestroyed(vm2) === true)
|
|
15888
|
-
return;
|
|
15848
|
+
if (vmIsDestroyed(vm2) === true) return;
|
|
15889
15849
|
position2.value = position2.value ^ 1;
|
|
15890
15850
|
images[position2.value].value = null;
|
|
15891
15851
|
clearLoading();
|
|
@@ -16639,8 +16599,7 @@ var isPlainText = /[a-z0-9_ -]$/i;
|
|
|
16639
16599
|
function use_key_composition_default(onInput) {
|
|
16640
16600
|
return function onComposition(e) {
|
|
16641
16601
|
if (e.type === "compositionend" || e.type === "change") {
|
|
16642
|
-
if (e.target.qComposing !== true)
|
|
16643
|
-
return;
|
|
16602
|
+
if (e.target.qComposing !== true) return;
|
|
16644
16603
|
e.target.qComposing = false;
|
|
16645
16604
|
onInput(e);
|
|
16646
16605
|
} else if (e.type === "compositionupdate" && e.target.qComposing !== true && typeof e.data === "string") {
|
|
@@ -18578,8 +18537,7 @@ function frame_debounce_default(fn) {
|
|
|
18578
18537
|
let wait = false, frame, callArgs;
|
|
18579
18538
|
function debounced() {
|
|
18580
18539
|
callArgs = arguments;
|
|
18581
|
-
if (wait === true)
|
|
18582
|
-
return;
|
|
18540
|
+
if (wait === true) return;
|
|
18583
18541
|
wait = true;
|
|
18584
18542
|
frame = window.requestAnimationFrame(() => {
|
|
18585
18543
|
fn.apply(this, callArgs);
|
|
@@ -18727,10 +18685,8 @@ import { h as h77, ref as ref47, computed as computed81, nextTick as nextTick15,
|
|
|
18727
18685
|
|
|
18728
18686
|
// src/utils/clone/clone.js
|
|
18729
18687
|
function cloneDeep(data, hash = /* @__PURE__ */ new WeakMap()) {
|
|
18730
|
-
if (Object(data) !== data)
|
|
18731
|
-
|
|
18732
|
-
if (hash.has(data))
|
|
18733
|
-
return hash.get(data);
|
|
18688
|
+
if (Object(data) !== data) return data;
|
|
18689
|
+
if (hash.has(data)) return hash.get(data);
|
|
18734
18690
|
const result = data instanceof Date ? new Date(data) : data instanceof RegExp ? new RegExp(data.source, data.flags) : data instanceof Set ? /* @__PURE__ */ new Set() : data instanceof Map ? /* @__PURE__ */ new Map() : typeof data.constructor !== "function" ? /* @__PURE__ */ Object.create(null) : data.prototype !== void 0 && typeof data.prototype.constructor === "function" ? data : new data.constructor();
|
|
18735
18691
|
if (typeof data.constructor === "function" && typeof data.valueOf === "function") {
|
|
18736
18692
|
const val = data.valueOf();
|
|
@@ -18897,8 +18853,7 @@ var QPopupEdit_default = createComponent({
|
|
|
18897
18853
|
updatePosition
|
|
18898
18854
|
});
|
|
18899
18855
|
return () => {
|
|
18900
|
-
if (props4.disable === true)
|
|
18901
|
-
return;
|
|
18856
|
+
if (props4.disable === true) return;
|
|
18902
18857
|
return h77(QMenu_default, {
|
|
18903
18858
|
ref: menuRef,
|
|
18904
18859
|
class: "q-popup-edit",
|
|
@@ -20025,8 +19980,7 @@ var QScrollArea_default = createComponent({
|
|
|
20025
19980
|
};
|
|
20026
19981
|
});
|
|
20027
19982
|
onActivated5(() => {
|
|
20028
|
-
if (scrollPosition === null)
|
|
20029
|
-
return;
|
|
19983
|
+
if (scrollPosition === null) return;
|
|
20030
19984
|
const scrollTarget = targetRef.value;
|
|
20031
19985
|
if (scrollTarget !== null) {
|
|
20032
19986
|
setHorizontalScrollPosition(scrollTarget, scrollPosition.left);
|
|
@@ -20636,8 +20590,7 @@ function useVirtualScroll({
|
|
|
20636
20590
|
shouldActivate = true;
|
|
20637
20591
|
});
|
|
20638
20592
|
onActivated6(() => {
|
|
20639
|
-
if (shouldActivate !== true)
|
|
20640
|
-
return;
|
|
20593
|
+
if (shouldActivate !== true) return;
|
|
20641
20594
|
const scrollEl = getVirtualScrollTarget();
|
|
20642
20595
|
if (prevScrollStart !== void 0 && scrollEl !== void 0 && scrollEl !== null && scrollEl.nodeType !== 8) {
|
|
20643
20596
|
setScroll2(
|
|
@@ -21035,8 +20988,7 @@ var QSelect_default = createComponent({
|
|
|
21035
20988
|
emit("update:modelValue", model);
|
|
21036
20989
|
}
|
|
21037
20990
|
function setOptionIndex(index) {
|
|
21038
|
-
if ($q.platform.is.desktop !== true)
|
|
21039
|
-
return;
|
|
20991
|
+
if ($q.platform.is.desktop !== true) return;
|
|
21040
20992
|
const val = index !== -1 && index < virtualScrollLength.value ? index : -1;
|
|
21041
20993
|
if (optionIndex.value !== val) {
|
|
21042
20994
|
optionIndex.value = val;
|
|
@@ -21151,8 +21103,7 @@ var QSelect_default = createComponent({
|
|
|
21151
21103
|
closeMenu();
|
|
21152
21104
|
return;
|
|
21153
21105
|
}
|
|
21154
|
-
if (e.target === void 0 || e.target.id !== state.targetUid.value || state.editable.value !== true)
|
|
21155
|
-
return;
|
|
21106
|
+
if (e.target === void 0 || e.target.id !== state.targetUid.value || state.editable.value !== true) return;
|
|
21156
21107
|
if (e.keyCode === 40 && state.innerLoading.value !== true && menu.value === false) {
|
|
21157
21108
|
stopAndPrevent(e);
|
|
21158
21109
|
showPopup();
|
|
@@ -21216,8 +21167,7 @@ var QSelect_default = createComponent({
|
|
|
21216
21167
|
}
|
|
21217
21168
|
return;
|
|
21218
21169
|
}
|
|
21219
|
-
if (e.keyCode !== 13 && (e.keyCode !== 32 || props4.useInput === true || searchBuffer !== "") && (e.keyCode !== 9 || tabShouldSelect === false))
|
|
21220
|
-
return;
|
|
21170
|
+
if (e.keyCode !== 13 && (e.keyCode !== 32 || props4.useInput === true || searchBuffer !== "") && (e.keyCode !== 9 || tabShouldSelect === false)) return;
|
|
21221
21171
|
e.keyCode !== 9 && stopAndPrevent(e);
|
|
21222
21172
|
if (optionIndex.value !== -1 && optionIndex.value < optionsLength) {
|
|
21223
21173
|
toggleOption(props4.options[optionIndex.value]);
|
|
@@ -23966,10 +23916,8 @@ var QSplitter_default = createComponent({
|
|
|
23966
23916
|
limits: {
|
|
23967
23917
|
type: Array,
|
|
23968
23918
|
validator: (v) => {
|
|
23969
|
-
if (v.length !== 2)
|
|
23970
|
-
|
|
23971
|
-
if (typeof v[0] !== "number" || typeof v[1] !== "number")
|
|
23972
|
-
return false;
|
|
23919
|
+
if (v.length !== 2) return false;
|
|
23920
|
+
if (typeof v[0] !== "number" || typeof v[1] !== "number") return false;
|
|
23973
23921
|
return v[0] >= 0 && v[0] <= v[1];
|
|
23974
23922
|
}
|
|
23975
23923
|
},
|
|
@@ -24453,8 +24401,7 @@ var QTh_default = createComponent({
|
|
|
24453
24401
|
const name2 = vm2.vnode.key;
|
|
24454
24402
|
if (name2) {
|
|
24455
24403
|
col = props4.props.colsMap[name2];
|
|
24456
|
-
if (col === void 0)
|
|
24457
|
-
return;
|
|
24404
|
+
if (col === void 0) return;
|
|
24458
24405
|
} else {
|
|
24459
24406
|
col = props4.props.col;
|
|
24460
24407
|
}
|
|
@@ -25877,8 +25824,7 @@ var QTd_default = createComponent({
|
|
|
25877
25824
|
}
|
|
25878
25825
|
const name2 = vm2.vnode.key;
|
|
25879
25826
|
const col = (props4.props.colsMap !== void 0 ? props4.props.colsMap[name2] : null) || props4.props.col;
|
|
25880
|
-
if (col === void 0)
|
|
25881
|
-
return;
|
|
25827
|
+
if (col === void 0) return;
|
|
25882
25828
|
const { row } = props4.props;
|
|
25883
25829
|
return h122("td", {
|
|
25884
25830
|
class: classes.value + col.__tdClass(row),
|
|
@@ -26270,8 +26216,7 @@ var QTime_default = createComponent({
|
|
|
26270
26216
|
const payload = e.keyCode === 37 ? -1 : 1;
|
|
26271
26217
|
if (validHours.value !== null) {
|
|
26272
26218
|
const values = computedFormat24h.value === true ? validHours.value.values : validHours.value[isAM.value === true ? "am" : "pm"].values;
|
|
26273
|
-
if (values.length === 0)
|
|
26274
|
-
return;
|
|
26219
|
+
if (values.length === 0) return;
|
|
26275
26220
|
if (innerModel.value.hour === null) {
|
|
26276
26221
|
setHour(values[0]);
|
|
26277
26222
|
} else {
|
|
@@ -26291,8 +26236,7 @@ var QTime_default = createComponent({
|
|
|
26291
26236
|
const payload = e.keyCode === 37 ? -1 : 1;
|
|
26292
26237
|
if (validMinutes.value !== null) {
|
|
26293
26238
|
const values = validMinutes.value.values;
|
|
26294
|
-
if (values.length === 0)
|
|
26295
|
-
return;
|
|
26239
|
+
if (values.length === 0) return;
|
|
26296
26240
|
if (innerModel.value.minute === null) {
|
|
26297
26241
|
setMinute(values[0]);
|
|
26298
26242
|
} else {
|
|
@@ -26312,8 +26256,7 @@ var QTime_default = createComponent({
|
|
|
26312
26256
|
const payload = e.keyCode === 37 ? -1 : 1;
|
|
26313
26257
|
if (validSeconds.value !== null) {
|
|
26314
26258
|
const values = validSeconds.value.values;
|
|
26315
|
-
if (values.length === 0)
|
|
26316
|
-
return;
|
|
26259
|
+
if (values.length === 0) return;
|
|
26317
26260
|
if (innerModel.value.seconds === null) {
|
|
26318
26261
|
setSecond(values[0]);
|
|
26319
26262
|
} else {
|
|
@@ -27394,8 +27337,7 @@ function getRenderer(getPlugin, expose) {
|
|
|
27394
27337
|
}
|
|
27395
27338
|
}
|
|
27396
27339
|
function removeFile(file) {
|
|
27397
|
-
if (props4.disable)
|
|
27398
|
-
return;
|
|
27340
|
+
if (props4.disable) return;
|
|
27399
27341
|
if (file.__status === "uploaded") {
|
|
27400
27342
|
state.uploadedFiles.value = state.uploadedFiles.value.filter((f) => f.__key !== file.__key);
|
|
27401
27343
|
} else if (file.__status === "uploading") {
|
|
@@ -27427,8 +27369,7 @@ function getRenderer(getPlugin, expose) {
|
|
|
27427
27369
|
if (fileInput !== void 0 && fileInput !== null) {
|
|
27428
27370
|
fileInput.value = "";
|
|
27429
27371
|
}
|
|
27430
|
-
if (localFiles === void 0)
|
|
27431
|
-
return;
|
|
27372
|
+
if (localFiles === void 0) return;
|
|
27432
27373
|
localFiles.forEach((file) => {
|
|
27433
27374
|
state.updateFileStatus(file, "idle");
|
|
27434
27375
|
uploadSize.value += file.size;
|
|
@@ -27754,8 +27695,7 @@ function injectPlugin({ props: props4, emit, helpers }) {
|
|
|
27754
27695
|
});
|
|
27755
27696
|
let uploadIndex = 0, uploadIndexSize = 0, localUploadedSize = 0, maxUploadSize = 0, aborted;
|
|
27756
27697
|
xhr2.upload.addEventListener("progress", (e) => {
|
|
27757
|
-
if (aborted === true)
|
|
27758
|
-
return;
|
|
27698
|
+
if (aborted === true) return;
|
|
27759
27699
|
const loaded = Math.min(maxUploadSize, e.loaded);
|
|
27760
27700
|
helpers.uploadedSize.value += loaded - localUploadedSize;
|
|
27761
27701
|
localUploadedSize = loaded;
|
|
@@ -30168,8 +30108,7 @@ var Plugin7 = createReactivePlugin({
|
|
|
30168
30108
|
isActive: false
|
|
30169
30109
|
}, {
|
|
30170
30110
|
show(opts) {
|
|
30171
|
-
if (false)
|
|
30172
|
-
return;
|
|
30111
|
+
if (false) return;
|
|
30173
30112
|
props3 = registerProps(opts);
|
|
30174
30113
|
const { group } = props3;
|
|
30175
30114
|
Plugin7.isActive = true;
|
|
@@ -30295,8 +30234,7 @@ var Plugin8 = createReactivePlugin({
|
|
|
30295
30234
|
setDefaults: noop,
|
|
30296
30235
|
install({ $q, parentApp }) {
|
|
30297
30236
|
$q.loadingBar = this;
|
|
30298
|
-
if (false)
|
|
30299
|
-
return;
|
|
30237
|
+
if (false) return;
|
|
30300
30238
|
if (this.__installed === true) {
|
|
30301
30239
|
if ($q.config.loadingBar !== void 0) {
|
|
30302
30240
|
this.setDefaults($q.config.loadingBar);
|
|
@@ -31421,7 +31359,7 @@ function runSequentialPromises(sequentialPromises, { threadsNumber = 1, abortOnF
|
|
|
31421
31359
|
|
|
31422
31360
|
// src/index.dev.js
|
|
31423
31361
|
var Quasar = {
|
|
31424
|
-
version: "2.16.
|
|
31362
|
+
version: "2.16.6",
|
|
31425
31363
|
install: install_quasar_default,
|
|
31426
31364
|
// TODO: remove in Qv3 (should only be used through the plugin)
|
|
31427
31365
|
// We provide a deprecated fallback here
|
package/dist/quasar.css
CHANGED
|
@@ -3031,7 +3031,7 @@ body.body--dark .q-knob--editable:focus:before {
|
|
|
3031
3031
|
}
|
|
3032
3032
|
|
|
3033
3033
|
body.q-ios-padding .q-layout--standard .q-header > .q-toolbar:nth-child(1),
|
|
3034
|
-
body.q-ios-padding .q-layout--standard .q-header > .q-tabs:nth-child(1) .q-
|
|
3034
|
+
body.q-ios-padding .q-layout--standard .q-header > .q-tabs:nth-child(1) .q-tabs__content,
|
|
3035
3035
|
body.q-ios-padding .q-layout--standard .q-drawer--top-padding .q-drawer__content {
|
|
3036
3036
|
padding-top: 20px;
|
|
3037
3037
|
min-height: 70px;
|
|
@@ -3039,7 +3039,7 @@ body.q-ios-padding .q-layout--standard .q-drawer--top-padding .q-drawer__content
|
|
|
3039
3039
|
min-height: calc(env(safe-area-inset-top) + 50px);
|
|
3040
3040
|
}
|
|
3041
3041
|
body.q-ios-padding .q-layout--standard .q-footer > .q-toolbar:last-child,
|
|
3042
|
-
body.q-ios-padding .q-layout--standard .q-footer > .q-tabs:last-child .q-
|
|
3042
|
+
body.q-ios-padding .q-layout--standard .q-footer > .q-tabs:nth-last-child(1 of :not(.q-layout__shadow)) .q-tabs__content,
|
|
3043
3043
|
body.q-ios-padding .q-layout--standard .q-drawer--top-padding .q-drawer__content {
|
|
3044
3044
|
padding-bottom: env(safe-area-inset-bottom);
|
|
3045
3045
|
min-height: calc(env(safe-area-inset-bottom) + 50px);
|