quasar 2.17.3 → 2.17.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/Notify.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 +2 -2
- package/dist/icon-set/material-symbols-rounded.umd.prod.js +2 -2
- package/dist/icon-set/material-symbols-sharp.umd.prod.js +2 -2
- 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 +2 -2
- 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/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/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.client.js +101 -286
- package/dist/quasar.sass +1 -1
- package/dist/quasar.server.prod.cjs +6 -6
- package/dist/quasar.server.prod.js +6 -6
- package/dist/quasar.umd.js +101 -286
- package/dist/quasar.umd.prod.js +5 -5
- package/dist/web-types/web-types.json +1 -1
- package/icon-set/material-symbols-outlined.js +1 -1
- package/icon-set/material-symbols-rounded.js +1 -1
- package/icon-set/material-symbols-sharp.js +1 -1
- package/icon-set/svg-material-symbols-outlined.js +2 -2
- package/icon-set/svg-material-symbols-rounded.js +2 -2
- package/icon-set/svg-material-symbols-sharp.js +2 -2
- package/package.json +4 -4
- package/src/components/btn/QBtn.js +6 -6
- package/src/components/date/QDate.js +6 -9
- package/src/components/editor/editor-caret.js +7 -5
- package/src/components/editor/editor-utils.js +1 -3
- package/src/components/file/QFile.js +1 -3
- package/src/components/infinite-scroll/QInfiniteScroll.js +10 -6
- package/src/components/input/QInput.js +2 -8
- package/src/components/input/use-mask.js +2 -5
- package/src/components/knob/QKnob.js +1 -3
- package/src/components/layout/QLayout.js +1 -4
- package/src/components/pagination/QPagination.js +2 -3
- package/src/components/popup-edit/QPopupEdit.js +1 -3
- package/src/components/pull-to-refresh/QPullToRefresh.js +5 -8
- package/src/components/range/QRange.js +1 -3
- package/src/components/scroll-area/QScrollArea.js +1 -3
- package/src/components/scroll-observer/QScrollObserver.js +1 -3
- package/src/components/select/QSelect.js +34 -36
- package/src/components/slide-item/QSlideItem.js +4 -3
- package/src/components/slider/QSlider.js +1 -3
- package/src/components/table/QTable.js +3 -10
- package/src/components/table/table-pagination.js +1 -3
- package/src/components/tabs/QTabs.js +1 -1
- package/src/components/time/QTime.js +6 -6
- package/src/components/tooltip/QTooltip.js +4 -1
- package/src/components/tree/QTree.js +1 -3
- package/src/components/uploader/uploader-core.js +1 -3
- package/src/components/uploader/xhr-uploader-plugin.js +1 -3
- package/src/components/virtual-scroll/use-virtual-scroll.js +14 -18
- package/src/composables/private.use-anchor/use-anchor.js +1 -3
- package/src/composables/private.use-field/use-field.js +6 -6
- package/src/composables/private.use-file/use-file-dom-props.js +1 -4
- package/src/composables/private.use-fullscreen/use-fullscreen.js +2 -6
- package/src/composables/private.use-model-toggle/use-model-toggle.js +4 -12
- package/src/composables/private.use-panel/use-panel.js +12 -4
- package/src/directives/morph/Morph.js +5 -6
- package/src/directives/ripple/Ripple.js +1 -3
- package/src/directives/touch-hold/TouchHold.js +4 -3
- package/src/directives/touch-pan/TouchPan.js +7 -12
- package/src/directives/touch-repeat/TouchRepeat.js +4 -12
- package/src/directives/touch-swipe/TouchSwipe.js +7 -12
- package/src/plugins/notify/Notify.json +2 -2
- package/src/plugins/private.history/History.js +3 -9
- package/src/utils/date/date.js +2 -6
- package/src/utils/dom/dom.js +1 -3
- package/src/utils/morph/morph.js +4 -5
- package/src/utils/open-url/open-url.js +1 -0
- package/src/utils/private.click-outside/click-outside.js +2 -6
- package/src/utils/private.position-engine/position-engine.js +1 -3
- package/src/utils/scroll/prevent-scroll.js +4 -12
|
@@ -421,9 +421,7 @@ export default createComponent({
|
|
|
421
421
|
}
|
|
422
422
|
|
|
423
423
|
function onPan (event) {
|
|
424
|
-
if (shouldAbortInteraction() === true)
|
|
425
|
-
return
|
|
426
|
-
}
|
|
424
|
+
if (shouldAbortInteraction() === true) return
|
|
427
425
|
|
|
428
426
|
if (event.isFirst === true) {
|
|
429
427
|
draggingClockRect = getClockRect()
|
|
@@ -745,9 +743,11 @@ export default createComponent({
|
|
|
745
743
|
return
|
|
746
744
|
}
|
|
747
745
|
|
|
748
|
-
if (
|
|
749
|
-
|
|
750
|
-
|
|
746
|
+
if (
|
|
747
|
+
innerModel.value.hour === null
|
|
748
|
+
|| innerModel.value.minute === null
|
|
749
|
+
|| (props.withSeconds === true && innerModel.value.second === null)
|
|
750
|
+
) return
|
|
751
751
|
|
|
752
752
|
updateValue()
|
|
753
753
|
}
|
|
@@ -243,7 +243,10 @@ export default createComponent({
|
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
function configureAnchorEl () {
|
|
246
|
-
if (
|
|
246
|
+
if (
|
|
247
|
+
props.noParentEvent === true
|
|
248
|
+
|| anchorEl.value === null
|
|
249
|
+
) return
|
|
247
250
|
|
|
248
251
|
const evts = $q.platform.is.mobile === true
|
|
249
252
|
? [
|
|
@@ -320,9 +320,7 @@ export default createComponent({
|
|
|
320
320
|
|
|
321
321
|
function setExpanded (key, state, node = getNodeByKey(key), m = meta.value[ key ]) {
|
|
322
322
|
if (m.lazy && m.lazy !== 'loaded') {
|
|
323
|
-
if (m.lazy === 'loading')
|
|
324
|
-
return
|
|
325
|
-
}
|
|
323
|
+
if (m.lazy === 'loading') return
|
|
326
324
|
|
|
327
325
|
lazy.value[ key ] = 'loading'
|
|
328
326
|
if (Array.isArray(node[ props.childrenKey ]) !== true) {
|
|
@@ -183,9 +183,7 @@ function injectPlugin ({ props, emit, helpers }) {
|
|
|
183
183
|
}, false)
|
|
184
184
|
|
|
185
185
|
xhr.onreadystatechange = () => {
|
|
186
|
-
if (xhr.readyState < 4)
|
|
187
|
-
return
|
|
188
|
-
}
|
|
186
|
+
if (xhr.readyState < 4) return
|
|
189
187
|
|
|
190
188
|
if (xhr.status && xhr.status < 400) {
|
|
191
189
|
helpers.uploadedFiles.value = helpers.uploadedFiles.value.concat(files)
|
|
@@ -20,18 +20,14 @@ const filterProto = Array.prototype.filter
|
|
|
20
20
|
const setOverflowAnchor = __QUASAR_SSR__ || window.getComputedStyle(document.body).overflowAnchor === void 0
|
|
21
21
|
? noop
|
|
22
22
|
: function (contentEl, index) {
|
|
23
|
-
if (contentEl === null)
|
|
24
|
-
return
|
|
25
|
-
}
|
|
23
|
+
if (contentEl === null) return
|
|
26
24
|
|
|
27
25
|
if (contentEl._qOverflowAnimationFrame !== void 0) {
|
|
28
26
|
cancelAnimationFrame(contentEl._qOverflowAnimationFrame)
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
contentEl._qOverflowAnimationFrame = requestAnimationFrame(() => {
|
|
32
|
-
if (contentEl === null)
|
|
33
|
-
return
|
|
34
|
-
}
|
|
30
|
+
if (contentEl === null) return
|
|
35
31
|
|
|
36
32
|
contentEl._qOverflowAnimationFrame = void 0
|
|
37
33
|
const children = contentEl.children || []
|
|
@@ -279,9 +275,11 @@ export function useVirtualScroll ({
|
|
|
279
275
|
function scrollTo (toIndex, edge) {
|
|
280
276
|
const scrollEl = getVirtualScrollTarget()
|
|
281
277
|
|
|
282
|
-
if (
|
|
283
|
-
|
|
284
|
-
|
|
278
|
+
if (
|
|
279
|
+
scrollEl === void 0
|
|
280
|
+
|| scrollEl === null
|
|
281
|
+
|| scrollEl.nodeType === 8
|
|
282
|
+
) return
|
|
285
283
|
|
|
286
284
|
const scrollDetails = getScrollDetails(
|
|
287
285
|
scrollEl,
|
|
@@ -308,9 +306,11 @@ export function useVirtualScroll ({
|
|
|
308
306
|
function localOnVirtualScrollEvt () {
|
|
309
307
|
const scrollEl = getVirtualScrollTarget()
|
|
310
308
|
|
|
311
|
-
if (
|
|
312
|
-
|
|
313
|
-
|
|
309
|
+
if (
|
|
310
|
+
scrollEl === void 0
|
|
311
|
+
|| scrollEl === null
|
|
312
|
+
|| scrollEl.nodeType === 8
|
|
313
|
+
) return
|
|
314
314
|
|
|
315
315
|
const
|
|
316
316
|
scrollDetails = getScrollDetails(
|
|
@@ -326,9 +326,7 @@ export function useVirtualScroll ({
|
|
|
326
326
|
listLastIndex = virtualScrollLength.value - 1,
|
|
327
327
|
listEndOffset = scrollDetails.scrollMaxSize - scrollDetails.offsetStart - scrollDetails.offsetEnd - virtualScrollPaddingAfter.value
|
|
328
328
|
|
|
329
|
-
if (prevScrollStart === scrollDetails.scrollStart)
|
|
330
|
-
return
|
|
331
|
-
}
|
|
329
|
+
if (prevScrollStart === scrollDetails.scrollStart) return
|
|
332
330
|
|
|
333
331
|
if (scrollDetails.scrollMaxSize <= 0) {
|
|
334
332
|
setVirtualScrollSliceRange(scrollEl, scrollDetails, 0, 0)
|
|
@@ -456,9 +454,7 @@ export function useVirtualScroll ({
|
|
|
456
454
|
requestAnimationFrame(() => {
|
|
457
455
|
// if the scroll was changed give up
|
|
458
456
|
// (another call to setVirtualScrollSliceRange before animation frame)
|
|
459
|
-
if (prevScrollStart !== scrollDetails.scrollStart)
|
|
460
|
-
return
|
|
461
|
-
}
|
|
457
|
+
if (prevScrollStart !== scrollDetails.scrollStart) return
|
|
462
458
|
|
|
463
459
|
if (rangeChanged === true) {
|
|
464
460
|
updateVirtualScrollSizes(from)
|
|
@@ -311,9 +311,7 @@ export default function (state) {
|
|
|
311
311
|
|| state.controlRef.value === null
|
|
312
312
|
|| state.controlRef.value.contains(document.activeElement) !== false
|
|
313
313
|
)
|
|
314
|
-
)
|
|
315
|
-
return
|
|
316
|
-
}
|
|
314
|
+
) return
|
|
317
315
|
|
|
318
316
|
if (state.focused.value === true) {
|
|
319
317
|
state.focused.value = false
|
|
@@ -502,9 +500,11 @@ export default function (state) {
|
|
|
502
500
|
|
|
503
501
|
const hasCounter = props.counter === true || slots.counter !== void 0
|
|
504
502
|
|
|
505
|
-
if (
|
|
506
|
-
|
|
507
|
-
|
|
503
|
+
if (
|
|
504
|
+
props.hideBottomSpace === true
|
|
505
|
+
&& hasCounter === false
|
|
506
|
+
&& msg === void 0
|
|
507
|
+
) return
|
|
508
508
|
|
|
509
509
|
const main = h('div', {
|
|
510
510
|
key,
|
|
@@ -44,9 +44,7 @@ export default function () {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
function setFullscreen () {
|
|
47
|
-
if (inFullscreen.value === true)
|
|
48
|
-
return
|
|
49
|
-
}
|
|
47
|
+
if (inFullscreen.value === true) return
|
|
50
48
|
|
|
51
49
|
inFullscreen.value = true
|
|
52
50
|
container = proxy.$el.parentNode
|
|
@@ -65,9 +63,7 @@ export default function () {
|
|
|
65
63
|
}
|
|
66
64
|
|
|
67
65
|
function exitFullscreen () {
|
|
68
|
-
if (inFullscreen.value !== true)
|
|
69
|
-
return
|
|
70
|
-
}
|
|
66
|
+
if (inFullscreen.value !== true) return
|
|
71
67
|
|
|
72
68
|
if (historyEntry !== void 0) {
|
|
73
69
|
History.remove(historyEntry)
|
|
@@ -44,9 +44,7 @@ export default function ({
|
|
|
44
44
|
props.disable === true
|
|
45
45
|
|| (evt !== void 0 && evt.qAnchorHandled === true)
|
|
46
46
|
|| (canShow !== void 0 && canShow(evt) !== true)
|
|
47
|
-
)
|
|
48
|
-
return
|
|
49
|
-
}
|
|
47
|
+
) return
|
|
50
48
|
|
|
51
49
|
const listener = props[ 'onUpdate:modelValue' ] !== void 0
|
|
52
50
|
|
|
@@ -66,9 +64,7 @@ export default function ({
|
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
function processShow (evt) {
|
|
69
|
-
if (showing.value === true)
|
|
70
|
-
return
|
|
71
|
-
}
|
|
67
|
+
if (showing.value === true) return
|
|
72
68
|
|
|
73
69
|
showing.value = true
|
|
74
70
|
|
|
@@ -83,9 +79,7 @@ export default function ({
|
|
|
83
79
|
}
|
|
84
80
|
|
|
85
81
|
function hide (evt) {
|
|
86
|
-
if (__QUASAR_SSR_SERVER__ || props.disable === true)
|
|
87
|
-
return
|
|
88
|
-
}
|
|
82
|
+
if (__QUASAR_SSR_SERVER__ || props.disable === true) return
|
|
89
83
|
|
|
90
84
|
const listener = props[ 'onUpdate:modelValue' ] !== void 0
|
|
91
85
|
|
|
@@ -105,9 +99,7 @@ export default function ({
|
|
|
105
99
|
}
|
|
106
100
|
|
|
107
101
|
function processHide (evt) {
|
|
108
|
-
if (showing.value === false)
|
|
109
|
-
return
|
|
110
|
-
}
|
|
102
|
+
if (showing.value === false) return
|
|
111
103
|
|
|
112
104
|
showing.value = false
|
|
113
105
|
|
|
@@ -54,9 +54,18 @@ export default function () {
|
|
|
54
54
|
|
|
55
55
|
let panels, forcedPanelTransition
|
|
56
56
|
|
|
57
|
-
const panelIndex = ref(null)
|
|
58
57
|
const panelTransition = ref(null)
|
|
59
58
|
|
|
59
|
+
/*
|
|
60
|
+
* Should not be reactive because it's assigned on render
|
|
61
|
+
* and it will trigger a subsequent useless render.
|
|
62
|
+
*
|
|
63
|
+
* Should be an object though, because it is being exported.
|
|
64
|
+
* Otherwise, the current value would be exported and no subsequent
|
|
65
|
+
* updates will be reflected in the exported value.
|
|
66
|
+
*/
|
|
67
|
+
const panelIndex = { value: null }
|
|
68
|
+
|
|
60
69
|
function onSwipe (evt) {
|
|
61
70
|
const dir = props.vertical === true ? 'up' : 'left'
|
|
62
71
|
goToPanelByOffset((proxy.$q.lang.rtl === true ? -1 : 1) * (evt.direction === dir ? 1 : -1))
|
|
@@ -178,6 +187,7 @@ export default function () {
|
|
|
178
187
|
setTimeout(() => {
|
|
179
188
|
forcedPanelTransition = false
|
|
180
189
|
})
|
|
190
|
+
|
|
181
191
|
return
|
|
182
192
|
}
|
|
183
193
|
|
|
@@ -227,9 +237,7 @@ export default function () {
|
|
|
227
237
|
}
|
|
228
238
|
|
|
229
239
|
function getPanelContent () {
|
|
230
|
-
if (panels.length === 0)
|
|
231
|
-
return
|
|
232
|
-
}
|
|
240
|
+
if (panels.length === 0) return
|
|
233
241
|
|
|
234
242
|
return props.animated === true
|
|
235
243
|
? [ h(Transition, { name: panelTransition.value }, getPanelContentChild) ]
|
|
@@ -21,9 +21,10 @@ function changeClass (ctx, action) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
function trigger (group) {
|
|
24
|
-
if (
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
if (
|
|
25
|
+
group.animating === true
|
|
26
|
+
|| group.queue.length < 2
|
|
27
|
+
) return
|
|
27
28
|
|
|
28
29
|
const [ from, to ] = group.queue
|
|
29
30
|
|
|
@@ -45,9 +46,7 @@ function trigger (group) {
|
|
|
45
46
|
onEnd (dir, aborted) {
|
|
46
47
|
to.opts.onEnd !== void 0 && to.opts.onEnd(dir, aborted)
|
|
47
48
|
|
|
48
|
-
if (aborted === true)
|
|
49
|
-
return
|
|
50
|
-
}
|
|
49
|
+
if (aborted === true) return
|
|
51
50
|
|
|
52
51
|
from.animating = false
|
|
53
52
|
to.animating = false
|
|
@@ -80,9 +80,7 @@ export default createDirective(__QUASAR_SSR_SERVER__
|
|
|
80
80
|
beforeMount (el, binding) {
|
|
81
81
|
const cfg = binding.instance.$.appContext.config.globalProperties.$q.config || {}
|
|
82
82
|
|
|
83
|
-
if (cfg.ripple === false)
|
|
84
|
-
return
|
|
85
|
-
}
|
|
83
|
+
if (cfg.ripple === false) return
|
|
86
84
|
|
|
87
85
|
const ctx = {
|
|
88
86
|
cfg,
|
|
@@ -14,9 +14,10 @@ export default createDirective(__QUASAR_SSR_SERVER__
|
|
|
14
14
|
const { modifiers } = binding
|
|
15
15
|
|
|
16
16
|
// early return, we don't need to do anything
|
|
17
|
-
if (
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
if (
|
|
18
|
+
modifiers.mouse !== true
|
|
19
|
+
&& client.has.touch !== true
|
|
20
|
+
) return
|
|
20
21
|
|
|
21
22
|
const ctx = {
|
|
22
23
|
handler: binding.value,
|
|
@@ -126,9 +126,10 @@ export default createDirective(__QUASAR_SSR_SERVER__
|
|
|
126
126
|
|
|
127
127
|
beforeMount (el, { value, modifiers }) {
|
|
128
128
|
// early return, we don't need to do anything
|
|
129
|
-
if (
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
if (
|
|
130
|
+
modifiers.mouse !== true
|
|
131
|
+
&& client.has.touch !== true
|
|
132
|
+
) return
|
|
132
133
|
|
|
133
134
|
function handleEvent (evt, mouseEvent) {
|
|
134
135
|
if (modifiers.mouse === true && mouseEvent === true) {
|
|
@@ -232,9 +233,7 @@ export default createDirective(__QUASAR_SSR_SERVER__
|
|
|
232
233
|
},
|
|
233
234
|
|
|
234
235
|
move (evt) {
|
|
235
|
-
if (ctx.event === void 0)
|
|
236
|
-
return
|
|
237
|
-
}
|
|
236
|
+
if (ctx.event === void 0) return
|
|
238
237
|
|
|
239
238
|
const
|
|
240
239
|
pos = position(evt),
|
|
@@ -246,9 +245,7 @@ export default createDirective(__QUASAR_SSR_SERVER__
|
|
|
246
245
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=161464
|
|
247
246
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=721341
|
|
248
247
|
// https://github.com/quasarframework/quasar/issues/10721
|
|
249
|
-
if (distX === 0 && distY === 0)
|
|
250
|
-
return
|
|
251
|
-
}
|
|
248
|
+
if (distX === 0 && distY === 0) return
|
|
252
249
|
|
|
253
250
|
ctx.lastEvt = evt
|
|
254
251
|
|
|
@@ -352,9 +349,7 @@ export default createDirective(__QUASAR_SSR_SERVER__
|
|
|
352
349
|
},
|
|
353
350
|
|
|
354
351
|
end (evt, abort) {
|
|
355
|
-
if (ctx.event === void 0)
|
|
356
|
-
return
|
|
357
|
-
}
|
|
352
|
+
if (ctx.event === void 0) return
|
|
358
353
|
|
|
359
354
|
cleanEvt(ctx, 'temp')
|
|
360
355
|
client.is.firefox === true && preventDraggable(el, false)
|
|
@@ -46,9 +46,7 @@ export default createDirective(__QUASAR_SSR_SERVER__
|
|
|
46
46
|
modifiers.mouse !== true
|
|
47
47
|
&& client.has.touch !== true
|
|
48
48
|
&& keyboard.length === 0
|
|
49
|
-
)
|
|
50
|
-
return
|
|
51
|
-
}
|
|
49
|
+
) return
|
|
52
50
|
|
|
53
51
|
const durations = typeof arg === 'string' && arg.length !== 0
|
|
54
52
|
? arg.split(':').map(val => parseInt(val, 10))
|
|
@@ -77,9 +75,7 @@ export default createDirective(__QUASAR_SSR_SERVER__
|
|
|
77
75
|
if (durations[ 0 ] === 0 || ctx.event !== void 0) {
|
|
78
76
|
stopAndPrevent(evt)
|
|
79
77
|
el.focus()
|
|
80
|
-
if (ctx.event !== void 0)
|
|
81
|
-
return
|
|
82
|
-
}
|
|
78
|
+
if (ctx.event !== void 0) return
|
|
83
79
|
}
|
|
84
80
|
|
|
85
81
|
addEvt(ctx, 'temp', [
|
|
@@ -140,9 +136,7 @@ export default createDirective(__QUASAR_SSR_SERVER__
|
|
|
140
136
|
const fn = () => {
|
|
141
137
|
ctx.timer = void 0
|
|
142
138
|
|
|
143
|
-
if (ctx.event === void 0)
|
|
144
|
-
return
|
|
145
|
-
}
|
|
139
|
+
if (ctx.event === void 0) return
|
|
146
140
|
|
|
147
141
|
if (ctx.event.repeatCount === 0) {
|
|
148
142
|
ctx.event.evt = evt
|
|
@@ -190,9 +184,7 @@ export default createDirective(__QUASAR_SSR_SERVER__
|
|
|
190
184
|
},
|
|
191
185
|
|
|
192
186
|
end (evt) {
|
|
193
|
-
if (ctx.event === void 0)
|
|
194
|
-
return
|
|
195
|
-
}
|
|
187
|
+
if (ctx.event === void 0) return
|
|
196
188
|
|
|
197
189
|
ctx.styleCleanup !== void 0 && ctx.styleCleanup(true)
|
|
198
190
|
evt !== void 0 && ctx.event.repeatCount > 0 && stopAndPrevent(evt)
|
|
@@ -29,9 +29,10 @@ export default createDirective(__QUASAR_SSR_SERVER__
|
|
|
29
29
|
|
|
30
30
|
beforeMount (el, { value, arg, modifiers }) {
|
|
31
31
|
// early return, we don't need to do anything
|
|
32
|
-
if (
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
if (
|
|
33
|
+
modifiers.mouse !== true
|
|
34
|
+
&& client.has.touch !== true
|
|
35
|
+
) return
|
|
35
36
|
|
|
36
37
|
const mouseCapture = modifiers.mouseCapture === true ? 'Capture' : ''
|
|
37
38
|
|
|
@@ -79,9 +80,7 @@ export default createDirective(__QUASAR_SSR_SERVER__
|
|
|
79
80
|
},
|
|
80
81
|
|
|
81
82
|
move (evt) {
|
|
82
|
-
if (ctx.event === void 0)
|
|
83
|
-
return
|
|
84
|
-
}
|
|
83
|
+
if (ctx.event === void 0) return
|
|
85
84
|
|
|
86
85
|
if (ctx.event.dir !== false) {
|
|
87
86
|
stopAndPrevent(evt)
|
|
@@ -90,9 +89,7 @@ export default createDirective(__QUASAR_SSR_SERVER__
|
|
|
90
89
|
|
|
91
90
|
const time = Date.now() - ctx.event.time
|
|
92
91
|
|
|
93
|
-
if (time === 0)
|
|
94
|
-
return
|
|
95
|
-
}
|
|
92
|
+
if (time === 0) return
|
|
96
93
|
|
|
97
94
|
const
|
|
98
95
|
pos = position(evt),
|
|
@@ -220,9 +217,7 @@ export default createDirective(__QUASAR_SSR_SERVER__
|
|
|
220
217
|
},
|
|
221
218
|
|
|
222
219
|
end (evt) {
|
|
223
|
-
if (ctx.event === void 0)
|
|
224
|
-
return
|
|
225
|
-
}
|
|
220
|
+
if (ctx.event === void 0) return
|
|
226
221
|
|
|
227
222
|
cleanEvt(ctx, 'temp')
|
|
228
223
|
client.is.firefox === true && preventDraggable(el, false)
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
},
|
|
188
188
|
"...": {
|
|
189
189
|
"type": "Any",
|
|
190
|
-
"desc": "Any other QBtn prop
|
|
190
|
+
"desc": "Any other QBtn prop except 'onClick' (use 'handler' instead, only possible with UI config)",
|
|
191
191
|
"examples": [ "label: 'Learn more'", "color: 'primary'" ]
|
|
192
192
|
}
|
|
193
193
|
},
|
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
},
|
|
406
406
|
"...": {
|
|
407
407
|
"type": "Any",
|
|
408
|
-
"desc": "Any other QBtn prop
|
|
408
|
+
"desc": "Any other QBtn prop except 'onClick' (use 'handler' instead)",
|
|
409
409
|
"examples": [ "label: 'Learn more'", "color: 'primary'" ]
|
|
410
410
|
}
|
|
411
411
|
},
|
|
@@ -47,15 +47,11 @@ export default {
|
|
|
47
47
|
|
|
48
48
|
const { cordova, capacitor } = client.is
|
|
49
49
|
|
|
50
|
-
if (cordova !== true && capacitor !== true)
|
|
51
|
-
return
|
|
52
|
-
}
|
|
50
|
+
if (cordova !== true && capacitor !== true) return
|
|
53
51
|
|
|
54
52
|
const qConf = $q.config[ cordova === true ? 'cordova' : 'capacitor' ]
|
|
55
53
|
|
|
56
|
-
if (qConf !== void 0 && qConf.backButton === false)
|
|
57
|
-
return
|
|
58
|
-
}
|
|
54
|
+
if (qConf !== void 0 && qConf.backButton === false) return
|
|
59
55
|
|
|
60
56
|
// if the '@capacitor/app' plugin is not installed
|
|
61
57
|
// then we got nothing to do
|
|
@@ -64,9 +60,7 @@ export default {
|
|
|
64
60
|
capacitor === true
|
|
65
61
|
// and it's also not in Capacitor's main instance
|
|
66
62
|
&& (window.Capacitor === void 0 || window.Capacitor.Plugins.App === void 0)
|
|
67
|
-
)
|
|
68
|
-
return
|
|
69
|
-
}
|
|
63
|
+
) return
|
|
70
64
|
|
|
71
65
|
this.add = entry => {
|
|
72
66
|
if (entry.condition === void 0) {
|
package/src/utils/date/date.js
CHANGED
|
@@ -979,15 +979,11 @@ export function formatDate (val, mask, dateLocale, __forcedYear, __forcedTimezon
|
|
|
979
979
|
(val !== 0 && !val)
|
|
980
980
|
|| val === Infinity
|
|
981
981
|
|| val === -Infinity
|
|
982
|
-
)
|
|
983
|
-
return
|
|
984
|
-
}
|
|
982
|
+
) return
|
|
985
983
|
|
|
986
984
|
const date = new Date(val)
|
|
987
985
|
|
|
988
|
-
if (isNaN(date))
|
|
989
|
-
return
|
|
990
|
-
}
|
|
986
|
+
if (isNaN(date)) return
|
|
991
987
|
|
|
992
988
|
if (mask === void 0) {
|
|
993
989
|
mask = defaultMask
|
package/src/utils/dom/dom.js
CHANGED
package/src/utils/morph/morph.js
CHANGED
|
@@ -269,7 +269,6 @@ export default function morph (_options) {
|
|
|
269
269
|
const elTo = getElement(elements.to)
|
|
270
270
|
if (cancelStatus === true || isValidElement(elTo) !== true) {
|
|
271
271
|
typeof elFrom.qMorphCancel === 'function' && elFrom.qMorphCancel()
|
|
272
|
-
|
|
273
272
|
return
|
|
274
273
|
}
|
|
275
274
|
// we clean other morphs running on this element
|
|
@@ -318,7 +317,6 @@ export default function morph (_options) {
|
|
|
318
317
|
const animate = () => {
|
|
319
318
|
if (cancelStatus === true) {
|
|
320
319
|
typeof elTo.qMorphCancel === 'function' && elTo.qMorphCancel()
|
|
321
|
-
|
|
322
320
|
return
|
|
323
321
|
}
|
|
324
322
|
|
|
@@ -887,9 +885,10 @@ export default function morph (_options) {
|
|
|
887
885
|
elTo.style.animation = `${ options.duration }ms ${ options.easing } ${ options.delay }ms ${ animationDirection } ${ options.fill } ${ qAnimId }`
|
|
888
886
|
|
|
889
887
|
const cleanup = evt => {
|
|
890
|
-
if (
|
|
891
|
-
|
|
892
|
-
|
|
888
|
+
if (
|
|
889
|
+
evt === Object(evt)
|
|
890
|
+
&& evt.animationName !== qAnimId
|
|
891
|
+
) return
|
|
893
892
|
|
|
894
893
|
elTo.removeEventListener('animationend', cleanup)
|
|
895
894
|
elTo.removeEventListener('animationcancel', cleanup)
|
|
@@ -19,9 +19,7 @@ function globalHandler (evt) {
|
|
|
19
19
|
target === void 0
|
|
20
20
|
|| target.nodeType === 8
|
|
21
21
|
|| target.classList.contains('no-pointer-events') === true
|
|
22
|
-
)
|
|
23
|
-
return
|
|
24
|
-
}
|
|
22
|
+
) return
|
|
25
23
|
|
|
26
24
|
// check last portal vm if it's
|
|
27
25
|
// a QDialog and not in seamless mode
|
|
@@ -40,9 +38,7 @@ function globalHandler (evt) {
|
|
|
40
38
|
break
|
|
41
39
|
}
|
|
42
40
|
|
|
43
|
-
if (proxy.props.seamless !== true)
|
|
44
|
-
return
|
|
45
|
-
}
|
|
41
|
+
if (proxy.props.seamless !== true) return
|
|
46
42
|
|
|
47
43
|
portalIndex--
|
|
48
44
|
}
|
|
@@ -111,9 +111,7 @@ export function setPosition (cfg, retryNumber = 0) {
|
|
|
111
111
|
cfg.targetEl === null
|
|
112
112
|
|| cfg.anchorEl === null
|
|
113
113
|
|| retryNumber > 5 // we should try only a few times
|
|
114
|
-
)
|
|
115
|
-
return
|
|
116
|
-
}
|
|
114
|
+
) return
|
|
117
115
|
|
|
118
116
|
// some browsers report zero height or width because
|
|
119
117
|
// we are trying too early to get these dimensions
|