quasar 2.17.4 → 2.17.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.
Files changed (168) hide show
  1. package/dist/api/Notify.json +1 -1
  2. package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
  3. package/dist/icon-set/eva-icons.umd.prod.js +1 -1
  4. package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
  5. package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
  6. package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +1 -1
  7. package/dist/icon-set/fontawesome-v6.umd.prod.js +1 -1
  8. package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
  9. package/dist/icon-set/line-awesome.umd.prod.js +1 -1
  10. package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
  11. package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
  12. package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
  13. package/dist/icon-set/material-icons.umd.prod.js +1 -1
  14. package/dist/icon-set/material-symbols-outlined.umd.prod.js +1 -1
  15. package/dist/icon-set/material-symbols-rounded.umd.prod.js +1 -1
  16. package/dist/icon-set/material-symbols-sharp.umd.prod.js +1 -1
  17. package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
  18. package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
  19. package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
  20. package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
  21. package/dist/icon-set/mdi-v7.umd.prod.js +1 -1
  22. package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +2 -2
  23. package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
  24. package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
  25. package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +1 -1
  26. package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
  27. package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
  28. package/dist/icon-set/svg-ionicons-v6.umd.prod.js +1 -1
  29. package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
  30. package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
  31. package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
  32. package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
  33. package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
  34. package/dist/icon-set/svg-material-symbols-outlined.umd.prod.js +1 -1
  35. package/dist/icon-set/svg-material-symbols-rounded.umd.prod.js +1 -1
  36. package/dist/icon-set/svg-material-symbols-sharp.umd.prod.js +1 -1
  37. package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
  38. package/dist/icon-set/svg-mdi-v7.umd.prod.js +1 -1
  39. package/dist/icon-set/svg-themify.umd.prod.js +1 -1
  40. package/dist/icon-set/themify.umd.prod.js +1 -1
  41. package/dist/lang/ar-TN.umd.prod.js +1 -1
  42. package/dist/lang/ar.umd.prod.js +1 -1
  43. package/dist/lang/az-Latn.umd.prod.js +1 -1
  44. package/dist/lang/bg.umd.prod.js +1 -1
  45. package/dist/lang/bn.umd.prod.js +1 -1
  46. package/dist/lang/bs-BA.umd.prod.js +1 -1
  47. package/dist/lang/ca.umd.prod.js +1 -1
  48. package/dist/lang/cs.umd.prod.js +1 -1
  49. package/dist/lang/da.umd.prod.js +1 -1
  50. package/dist/lang/de-CH.umd.prod.js +1 -1
  51. package/dist/lang/de-DE.umd.prod.js +1 -1
  52. package/dist/lang/de.umd.prod.js +1 -1
  53. package/dist/lang/el.umd.prod.js +1 -1
  54. package/dist/lang/en-GB.umd.prod.js +1 -1
  55. package/dist/lang/en-US.umd.prod.js +1 -1
  56. package/dist/lang/eo.umd.prod.js +1 -1
  57. package/dist/lang/es.umd.prod.js +1 -1
  58. package/dist/lang/et.umd.prod.js +1 -1
  59. package/dist/lang/eu.umd.prod.js +1 -1
  60. package/dist/lang/fa-IR.umd.prod.js +1 -1
  61. package/dist/lang/fa.umd.prod.js +1 -1
  62. package/dist/lang/fi.umd.prod.js +1 -1
  63. package/dist/lang/fr.umd.prod.js +1 -1
  64. package/dist/lang/gn.umd.prod.js +1 -1
  65. package/dist/lang/he.umd.prod.js +1 -1
  66. package/dist/lang/hi.umd.prod.js +1 -1
  67. package/dist/lang/hr.umd.prod.js +1 -1
  68. package/dist/lang/hu.umd.prod.js +1 -1
  69. package/dist/lang/id.umd.prod.js +1 -1
  70. package/dist/lang/is.umd.prod.js +1 -1
  71. package/dist/lang/it.umd.prod.js +1 -1
  72. package/dist/lang/ja.umd.prod.js +1 -1
  73. package/dist/lang/kk.umd.prod.js +1 -1
  74. package/dist/lang/km.umd.prod.js +1 -1
  75. package/dist/lang/ko-KR.umd.prod.js +1 -1
  76. package/dist/lang/kur-CKB.umd.prod.js +1 -1
  77. package/dist/lang/lt.umd.prod.js +1 -1
  78. package/dist/lang/lu.umd.prod.js +1 -1
  79. package/dist/lang/lv.umd.prod.js +1 -1
  80. package/dist/lang/mk.umd.prod.js +1 -1
  81. package/dist/lang/ml.umd.prod.js +1 -1
  82. package/dist/lang/mm.umd.prod.js +1 -1
  83. package/dist/lang/ms-MY.umd.prod.js +1 -1
  84. package/dist/lang/ms.umd.prod.js +1 -1
  85. package/dist/lang/my.umd.prod.js +1 -1
  86. package/dist/lang/nb-NO.umd.prod.js +1 -1
  87. package/dist/lang/nl.umd.prod.js +1 -1
  88. package/dist/lang/pl.umd.prod.js +1 -1
  89. package/dist/lang/pt-BR.umd.prod.js +1 -1
  90. package/dist/lang/pt.umd.prod.js +1 -1
  91. package/dist/lang/ro.umd.prod.js +1 -1
  92. package/dist/lang/ru.umd.prod.js +1 -1
  93. package/dist/lang/sk.umd.prod.js +1 -1
  94. package/dist/lang/sl.umd.prod.js +1 -1
  95. package/dist/lang/sm.umd.prod.js +1 -1
  96. package/dist/lang/sr-CYR.umd.prod.js +1 -1
  97. package/dist/lang/sr.umd.prod.js +1 -1
  98. package/dist/lang/sv.umd.prod.js +1 -1
  99. package/dist/lang/ta.umd.prod.js +1 -1
  100. package/dist/lang/th.umd.prod.js +1 -1
  101. package/dist/lang/tl.umd.prod.js +1 -1
  102. package/dist/lang/tr.umd.prod.js +1 -1
  103. package/dist/lang/ug.umd.prod.js +1 -1
  104. package/dist/lang/uk.umd.prod.js +1 -1
  105. package/dist/lang/uz-Cyrl.umd.prod.js +1 -1
  106. package/dist/lang/uz-Latn.umd.prod.js +1 -1
  107. package/dist/lang/vi.umd.prod.js +1 -1
  108. package/dist/lang/zh-CN.umd.prod.js +2 -2
  109. package/dist/lang/zh-TW.umd.prod.js +1 -1
  110. package/dist/quasar.client.js +101 -286
  111. package/dist/quasar.sass +1 -1
  112. package/dist/quasar.server.prod.cjs +6 -6
  113. package/dist/quasar.server.prod.js +6 -6
  114. package/dist/quasar.umd.js +101 -286
  115. package/dist/quasar.umd.prod.js +5 -5
  116. package/dist/web-types/web-types.json +1 -1
  117. package/lang/index.json +1 -1
  118. package/lang/zh-CN.js +1 -1
  119. package/package.json +3 -3
  120. package/src/components/btn/QBtn.js +6 -6
  121. package/src/components/date/QDate.js +6 -9
  122. package/src/components/editor/editor-caret.js +7 -5
  123. package/src/components/editor/editor-utils.js +1 -3
  124. package/src/components/file/QFile.js +1 -3
  125. package/src/components/infinite-scroll/QInfiniteScroll.js +10 -6
  126. package/src/components/input/QInput.js +2 -8
  127. package/src/components/input/use-mask.js +2 -5
  128. package/src/components/knob/QKnob.js +1 -3
  129. package/src/components/layout/QLayout.js +1 -4
  130. package/src/components/pagination/QPagination.js +2 -3
  131. package/src/components/popup-edit/QPopupEdit.js +1 -3
  132. package/src/components/pull-to-refresh/QPullToRefresh.js +5 -8
  133. package/src/components/range/QRange.js +1 -3
  134. package/src/components/scroll-area/QScrollArea.js +1 -3
  135. package/src/components/scroll-observer/QScrollObserver.js +1 -3
  136. package/src/components/select/QSelect.js +34 -36
  137. package/src/components/slide-item/QSlideItem.js +4 -3
  138. package/src/components/slider/QSlider.js +1 -3
  139. package/src/components/table/QTable.js +3 -10
  140. package/src/components/table/table-pagination.js +1 -3
  141. package/src/components/tabs/QTabs.js +1 -1
  142. package/src/components/time/QTime.js +6 -6
  143. package/src/components/tooltip/QTooltip.js +4 -1
  144. package/src/components/tree/QTree.js +1 -3
  145. package/src/components/uploader/uploader-core.js +1 -3
  146. package/src/components/uploader/xhr-uploader-plugin.js +1 -3
  147. package/src/components/virtual-scroll/use-virtual-scroll.js +14 -18
  148. package/src/composables/private.use-anchor/use-anchor.js +1 -3
  149. package/src/composables/private.use-field/use-field.js +6 -6
  150. package/src/composables/private.use-file/use-file-dom-props.js +1 -4
  151. package/src/composables/private.use-fullscreen/use-fullscreen.js +2 -6
  152. package/src/composables/private.use-model-toggle/use-model-toggle.js +4 -12
  153. package/src/composables/private.use-panel/use-panel.js +12 -4
  154. package/src/directives/morph/Morph.js +5 -6
  155. package/src/directives/ripple/Ripple.js +1 -3
  156. package/src/directives/touch-hold/TouchHold.js +4 -3
  157. package/src/directives/touch-pan/TouchPan.js +7 -12
  158. package/src/directives/touch-repeat/TouchRepeat.js +4 -12
  159. package/src/directives/touch-swipe/TouchSwipe.js +7 -12
  160. package/src/plugins/notify/Notify.json +2 -2
  161. package/src/plugins/private.history/History.js +3 -9
  162. package/src/utils/date/date.js +2 -6
  163. package/src/utils/dom/dom.js +1 -3
  164. package/src/utils/morph/morph.js +4 -5
  165. package/src/utils/open-url/open-url.js +1 -0
  166. package/src/utils/private.click-outside/click-outside.js +2 -6
  167. package/src/utils/private.position-engine/position-engine.js +1 -3
  168. package/src/utils/scroll/prevent-scroll.js +4 -12
@@ -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) {
@@ -203,9 +203,7 @@ export function getRenderer (getPlugin, expose) {
203
203
  }
204
204
 
205
205
  function batchRemoveFiles (statusList, cb) {
206
- if (props.disable === true) {
207
- return
208
- }
206
+ if (props.disable === true) return
209
207
 
210
208
  const removed = {
211
209
  files: [],
@@ -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 (scrollEl === void 0 || scrollEl === null || scrollEl.nodeType === 8) {
283
- return
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 (scrollEl === void 0 || scrollEl === null || scrollEl.nodeType === 8) {
312
- return
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)
@@ -73,9 +73,7 @@ export default function ({
73
73
  mobileTouch (evt) {
74
74
  anchorEvents.mobileCleanup(evt)
75
75
 
76
- if (canShow(evt) !== true) {
77
- return
78
- }
76
+ if (canShow(evt) !== true) return
79
77
 
80
78
  proxy.hide(evt)
81
79
  anchorEl.value.classList.add('non-selectable')
@@ -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 (props.hideBottomSpace === true && hasCounter === false && msg === void 0) {
506
- return
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,
@@ -34,10 +34,7 @@ export default function (props, typeGuard) {
34
34
 
35
35
  return typeGuard === true
36
36
  ? computed(() => {
37
- if (props.type !== 'file') {
38
- return
39
- }
40
-
37
+ if (props.type !== 'file') return
41
38
  return getFormDomProps()
42
39
  })
43
40
  : computed(getFormDomProps)
@@ -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 (group.animating === true || group.queue.length < 2) {
25
- return
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 (modifiers.mouse !== true && client.has.touch !== true) {
18
- return
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 (modifiers.mouse !== true && client.has.touch !== true) {
130
- return
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 (modifiers.mouse !== true && client.has.touch !== true) {
33
- return
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 expect 'onClick' (use 'handler' instead, only possible with UI config)",
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 expect 'onClick' (use 'handler' instead)",
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) {
@@ -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
@@ -37,9 +37,7 @@ export function cssBatch (elements, style) {
37
37
  }
38
38
 
39
39
  export function ready (fn) {
40
- if (typeof fn !== 'function') {
41
- return
42
- }
40
+ if (typeof fn !== 'function') return
43
41
 
44
42
  if (document.readyState !== 'loading') {
45
43
  return fn()
@@ -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 (evt === Object(evt) && evt.animationName !== qAnimId) {
891
- return
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)
@@ -60,6 +60,7 @@ export default (url, reject, windowFeatures) => {
60
60
  openWindow(url, reject, windowFeatures)
61
61
  }
62
62
  })
63
+
63
64
  return
64
65
  }
65
66
 
@@ -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
@@ -60,9 +60,7 @@ function onAppleScroll (e) {
60
60
  }
61
61
 
62
62
  function onAppleResize (evt) {
63
- if (vpPendingUpdate === true) {
64
- return
65
- }
63
+ if (vpPendingUpdate === true) return
66
64
 
67
65
  vpPendingUpdate = true
68
66
 
@@ -171,20 +169,14 @@ export default function (state) {
171
169
  return
172
170
  }
173
171
 
174
- if (registered > 1) {
175
- return
176
- }
172
+ if (registered > 1) return
177
173
  }
178
174
  else {
179
- if (registered === 0) {
180
- return
181
- }
175
+ if (registered === 0) return
182
176
 
183
177
  registered--
184
178
 
185
- if (registered > 0) {
186
- return
187
- }
179
+ if (registered > 0) return
188
180
 
189
181
  action = 'remove'
190
182