quasar 2.17.4 → 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.
Files changed (166) 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 +1 -1
  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/package.json +3 -3
  118. package/src/components/btn/QBtn.js +6 -6
  119. package/src/components/date/QDate.js +6 -9
  120. package/src/components/editor/editor-caret.js +7 -5
  121. package/src/components/editor/editor-utils.js +1 -3
  122. package/src/components/file/QFile.js +1 -3
  123. package/src/components/infinite-scroll/QInfiniteScroll.js +10 -6
  124. package/src/components/input/QInput.js +2 -8
  125. package/src/components/input/use-mask.js +2 -5
  126. package/src/components/knob/QKnob.js +1 -3
  127. package/src/components/layout/QLayout.js +1 -4
  128. package/src/components/pagination/QPagination.js +2 -3
  129. package/src/components/popup-edit/QPopupEdit.js +1 -3
  130. package/src/components/pull-to-refresh/QPullToRefresh.js +5 -8
  131. package/src/components/range/QRange.js +1 -3
  132. package/src/components/scroll-area/QScrollArea.js +1 -3
  133. package/src/components/scroll-observer/QScrollObserver.js +1 -3
  134. package/src/components/select/QSelect.js +34 -36
  135. package/src/components/slide-item/QSlideItem.js +4 -3
  136. package/src/components/slider/QSlider.js +1 -3
  137. package/src/components/table/QTable.js +3 -10
  138. package/src/components/table/table-pagination.js +1 -3
  139. package/src/components/tabs/QTabs.js +1 -1
  140. package/src/components/time/QTime.js +6 -6
  141. package/src/components/tooltip/QTooltip.js +4 -1
  142. package/src/components/tree/QTree.js +1 -3
  143. package/src/components/uploader/uploader-core.js +1 -3
  144. package/src/components/uploader/xhr-uploader-plugin.js +1 -3
  145. package/src/components/virtual-scroll/use-virtual-scroll.js +14 -18
  146. package/src/composables/private.use-anchor/use-anchor.js +1 -3
  147. package/src/composables/private.use-field/use-field.js +6 -6
  148. package/src/composables/private.use-file/use-file-dom-props.js +1 -4
  149. package/src/composables/private.use-fullscreen/use-fullscreen.js +2 -6
  150. package/src/composables/private.use-model-toggle/use-model-toggle.js +4 -12
  151. package/src/composables/private.use-panel/use-panel.js +12 -4
  152. package/src/directives/morph/Morph.js +5 -6
  153. package/src/directives/ripple/Ripple.js +1 -3
  154. package/src/directives/touch-hold/TouchHold.js +4 -3
  155. package/src/directives/touch-pan/TouchPan.js +7 -12
  156. package/src/directives/touch-repeat/TouchRepeat.js +4 -12
  157. package/src/directives/touch-swipe/TouchSwipe.js +7 -12
  158. package/src/plugins/notify/Notify.json +2 -2
  159. package/src/plugins/private.history/History.js +3 -9
  160. package/src/utils/date/date.js +2 -6
  161. package/src/utils/dom/dom.js +1 -3
  162. package/src/utils/morph/morph.js +4 -5
  163. package/src/utils/open-url/open-url.js +1 -0
  164. package/src/utils/private.click-outside/click-outside.js +2 -6
  165. package/src/utils/private.position-engine/position-engine.js +1 -3
  166. package/src/utils/scroll/prevent-scroll.js +4 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasar",
3
- "version": "2.17.4",
3
+ "version": "2.17.5",
4
4
  "description": "Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time",
5
5
  "type": "module",
6
6
  "module": "dist/quasar.client.js",
@@ -66,7 +66,6 @@
66
66
  "diff": "^5.2.0",
67
67
  "esbuild": "^0.24.0",
68
68
  "eslint": "^8.57.0",
69
- "fast-glob": "^3.3.2",
70
69
  "fs-extra": "^11.2.0",
71
70
  "kolorist": "^1.8.0",
72
71
  "open": "^10.1.0",
@@ -74,9 +73,10 @@
74
73
  "prettier": "^3.3.3",
75
74
  "sass-embedded": "^1.80.2",
76
75
  "table": "^6.8.2",
76
+ "tinyglobby": "^0.2.10",
77
77
  "typescript": "^5.6.2",
78
78
  "vue": "^3.5.5",
79
- "@quasar/extras": "1.16.13",
79
+ "@quasar/extras": "1.16.15",
80
80
  "eslint-config-quasar": "0.0.1"
81
81
  },
82
82
  "vetur": {
@@ -118,9 +118,7 @@ export default createComponent({
118
118
  if (rootRef.value === null) return
119
119
 
120
120
  if (e !== void 0) {
121
- if (e.defaultPrevented === true) {
122
- return
123
- }
121
+ if (e.defaultPrevented === true) return
124
122
 
125
123
  const el = document.activeElement
126
124
  // focus button if it came from ENTER on form
@@ -219,9 +217,11 @@ export default createComponent({
219
217
  if (rootRef.value === null) return
220
218
 
221
219
  // needed for IE (because it emits blur when focusing button from focus helper)
222
- if (e !== void 0 && e.type === 'blur' && document.activeElement === rootRef.value) {
223
- return
224
- }
220
+ if (
221
+ e !== void 0
222
+ && e.type === 'blur'
223
+ && document.activeElement === rootRef.value
224
+ ) return
225
225
 
226
226
  if (e !== void 0 && e.type === 'keyup') {
227
227
  if (keyboardTarget === rootRef.value && isKeyCode(e, [ 13, 32 ]) === true) {
@@ -434,9 +434,7 @@ export default createComponent({
434
434
  })
435
435
 
436
436
  const rangeView = computed(() => {
437
- if (editRange.value === null) {
438
- return
439
- }
437
+ if (editRange.value === null) return
440
438
 
441
439
  const { init, initHash, final, finalHash } = editRange.value
442
440
 
@@ -447,9 +445,10 @@ export default createComponent({
447
445
  const fromHash = getMonthHash(from)
448
446
  const toHash = getMonthHash(to)
449
447
 
450
- if (fromHash !== viewMonthHash.value && toHash !== viewMonthHash.value) {
451
- return
452
- }
448
+ if (
449
+ fromHash !== viewMonthHash.value
450
+ && toHash !== viewMonthHash.value
451
+ ) return
453
452
 
454
453
  const view = {}
455
454
 
@@ -1043,9 +1042,7 @@ export default createComponent({
1043
1042
  }
1044
1043
 
1045
1044
  function removeFromModel (date) {
1046
- if (props.noUnset === true) {
1047
- return
1048
- }
1045
+ if (props.noUnset === true) return
1049
1046
 
1050
1047
  let model = null
1051
1048
 
@@ -296,11 +296,13 @@ export default class Caret {
296
296
  const selection = this.selectWord(this.selection)
297
297
  const url = selection ? selection.toString() : ''
298
298
 
299
- if (!url.length) {
300
- if (!this.range || !this.range.cloneContents().querySelector('img')) {
301
- return
302
- }
303
- }
299
+ if (
300
+ !url.length
301
+ && (
302
+ !this.range
303
+ || !this.range.cloneContents().querySelector('img')
304
+ )
305
+ ) return
304
306
 
305
307
  this.eVm.editLinkUrl.value = urlRegex.test(url) ? url : 'https://'
306
308
  document.execCommand('createLink', false, this.eVm.editLinkUrl.value)
@@ -246,9 +246,7 @@ export function getLinkEditor (eVm) {
246
246
  link = evt.target.value
247
247
  },
248
248
  onKeydown: evt => {
249
- if (shouldIgnoreKey(evt) === true) {
250
- return
251
- }
249
+ if (shouldIgnoreKey(evt) === true) return
252
250
 
253
251
  switch (evt.keyCode) {
254
252
  case 13: // ENTER key
@@ -163,9 +163,7 @@ export default createComponent({
163
163
  props.multiple === true
164
164
  ? props.modelValue && files.every(f => innerValue.value.includes(f))
165
165
  : props.modelValue === files[ 0 ]
166
- ) {
167
- return
168
- }
166
+ ) return
169
167
 
170
168
  emitValue(
171
169
  isAppending.value === true
@@ -51,9 +51,11 @@ export default createComponent({
51
51
  )
52
52
 
53
53
  function immediatePoll () {
54
- if (props.disable === true || isFetching.value === true || isWorking.value === false) {
55
- return
56
- }
54
+ if (
55
+ props.disable === true
56
+ || isFetching.value === true
57
+ || isWorking.value === false
58
+ ) return
57
59
 
58
60
  const
59
61
  scrollHeight = getScrollHeight(localScrollTarget),
@@ -71,9 +73,11 @@ export default createComponent({
71
73
  }
72
74
 
73
75
  function trigger () {
74
- if (props.disable === true || isFetching.value === true || isWorking.value === false) {
75
- return
76
- }
76
+ if (
77
+ props.disable === true
78
+ || isFetching.value === true
79
+ || isWorking.value === false
80
+ ) return
77
81
 
78
82
  index++
79
83
  isFetching.value = true
@@ -149,10 +149,7 @@ export default createComponent({
149
149
  if (hasMask.value === true) {
150
150
  if (stopValueWatcher === true) {
151
151
  stopValueWatcher = false
152
-
153
- if (String(v) === emitCachedValue) {
154
- return
155
- }
152
+ if (String(v) === emitCachedValue) return
156
153
  }
157
154
 
158
155
  updateMaskValue(v)
@@ -219,9 +216,7 @@ export default createComponent({
219
216
  }
220
217
 
221
218
  function onInput (e) {
222
- if (!e || !e.target) {
223
- return
224
- }
219
+ if (!e || !e.target) return
225
220
 
226
221
  if (props.type === 'file') {
227
222
  emit('update:modelValue', e.target.files)
@@ -232,7 +227,6 @@ export default createComponent({
232
227
 
233
228
  if (e.target.qComposing === true) {
234
229
  temp.value = val
235
-
236
230
  return
237
231
  }
238
232
 
@@ -241,7 +241,6 @@ export default function (props, emit, emitValue, inputRef) {
241
241
  if (masked === maskReplaced) {
242
242
  const cursor = props.reverseFillMask === true ? maskReplaced.length : 0
243
243
  inp.setSelectionRange(cursor, cursor, 'forward')
244
-
245
244
  return
246
245
  }
247
246
 
@@ -254,8 +253,8 @@ export default function (props, emit, emitValue, inputRef) {
254
253
  cursor++
255
254
  }
256
255
  }
257
- moveCursor.right(inp, cursor)
258
256
 
257
+ moveCursor.right(inp, cursor)
259
258
  return
260
259
  }
261
260
 
@@ -438,9 +437,7 @@ export default function (props, emit, emitValue, inputRef) {
438
437
  if (
439
438
  shouldIgnoreKey(e) === true
440
439
  || e.altKey === true // let browser handle these
441
- ) {
442
- return
443
- }
440
+ ) return
444
441
 
445
442
  const
446
443
  inp = inputRef.value,
@@ -166,9 +166,7 @@ export default createComponent({
166
166
  }
167
167
 
168
168
  function onKeydown (evt) {
169
- if (!keyCodes.includes(evt.keyCode)) {
170
- return
171
- }
169
+ if (keyCodes.includes(evt.keyCode) === false) return
172
170
 
173
171
  stopAndPrevent(evt)
174
172
 
@@ -187,10 +187,7 @@ export default createComponent({
187
187
  function hideScrollbar () {
188
188
  if (timer === null) {
189
189
  // if it has no scrollbar then there's nothing to do
190
-
191
- if (el.scrollHeight > $q.screen.height) {
192
- return
193
- }
190
+ if (el.scrollHeight > $q.screen.height) return
194
191
 
195
192
  el.classList.add('hide-scrollbar')
196
193
  }
@@ -133,9 +133,8 @@ export default createComponent({
133
133
  get: () => props.modelValue,
134
134
  set: val => {
135
135
  val = parseInt(val, 10)
136
- if (props.disable || isNaN(val)) {
137
- return
138
- }
136
+ if (props.disable || isNaN(val)) return
137
+
139
138
  const value = between(val, minProp.value, maxProp.value)
140
139
  if (props.modelValue !== value) {
141
140
  emit('update:modelValue', value)
@@ -68,9 +68,7 @@ export default createComponent({
68
68
  })
69
69
 
70
70
  function set () {
71
- if (props.validate(currentModel.value) === false) {
72
- return
73
- }
71
+ if (props.validate(currentModel.value) === false) return
74
72
 
75
73
  if (hasModelChanged() === true) {
76
74
  emit('save', currentModel.value, initialValue.value)
@@ -86,11 +86,11 @@ export default createComponent({
86
86
 
87
87
  pulling.value = true
88
88
 
89
- const { top, left } = $el.getBoundingClientRect()
89
+ const { top, left } = proxy.$el.getBoundingClientRect()
90
90
  positionCSS.value = {
91
91
  top: top + 'px',
92
92
  left: left + 'px',
93
- width: window.getComputedStyle($el).getPropertyValue('width')
93
+ width: window.getComputedStyle(proxy.$el).getPropertyValue('width')
94
94
  }
95
95
  }
96
96
 
@@ -135,7 +135,7 @@ export default createComponent({
135
135
  })
136
136
  }
137
137
 
138
- let $el, localScrollTarget, timer = null
138
+ let localScrollTarget, timer = null
139
139
 
140
140
  function animateTo ({ pos, ratio }, done) {
141
141
  animating.value = true
@@ -154,15 +154,12 @@ export default createComponent({
154
154
  }
155
155
 
156
156
  function updateScrollTarget () {
157
- localScrollTarget = getScrollTarget($el, props.scrollTarget)
157
+ localScrollTarget = getScrollTarget(proxy.$el, props.scrollTarget)
158
158
  }
159
159
 
160
160
  watch(() => props.scrollTarget, updateScrollTarget)
161
161
 
162
- onMounted(() => {
163
- $el = proxy.$el
164
- updateScrollTarget()
165
- })
162
+ onMounted(updateScrollTarget)
166
163
 
167
164
  onBeforeUnmount(() => {
168
165
  timer !== null && clearTimeout(timer)
@@ -319,9 +319,7 @@ export default createComponent({
319
319
  }
320
320
 
321
321
  function onKeydown (evt) {
322
- if (!keyCodes.includes(evt.keyCode)) {
323
- return
324
- }
322
+ if (keyCodes.includes(evt.keyCode) === false) return
325
323
 
326
324
  stopAndPrevent(evt)
327
325
 
@@ -294,9 +294,7 @@ export default createComponent({
294
294
  const data = scroll[ axis ]
295
295
 
296
296
  if (e.isFirst === true) {
297
- if (data.thumbHidden.value === true) {
298
- return
299
- }
297
+ if (data.thumbHidden.value === true) return
300
298
 
301
299
  panRefPos = data.position.value
302
300
  panning.value = true
@@ -66,9 +66,7 @@ export default createComponent({
66
66
  if (
67
67
  (props.axis === 'vertical' && delta.top === 0)
68
68
  || (props.axis === 'horizontal' && delta.left === 0)
69
- ) {
70
- return
71
- }
69
+ ) return
72
70
 
73
71
  const curDir = Math.abs(delta.top) >= Math.abs(delta.left)
74
72
  ? (delta.top < 0 ? 'up' : 'down')
@@ -496,13 +496,15 @@ export default createComponent({
496
496
  return
497
497
  }
498
498
 
499
- if (unique === true && isOptionSelected(opt) === true) {
500
- return
501
- }
499
+ if (
500
+ unique === true
501
+ && isOptionSelected(opt) === true
502
+ ) return
502
503
 
503
- if (props.maxValues !== void 0 && props.modelValue.length >= props.maxValues) {
504
- return
505
- }
504
+ if (
505
+ props.maxValues !== void 0
506
+ && props.modelValue.length >= props.maxValues
507
+ ) return
506
508
 
507
509
  const model = props.modelValue.slice()
508
510
 
@@ -512,9 +514,11 @@ export default createComponent({
512
514
  }
513
515
 
514
516
  function toggleOption (opt, keepOpen) {
515
- if (state.editable.value !== true || opt === void 0 || isOptionDisabled.value(opt) === true) {
516
- return
517
- }
517
+ if (
518
+ state.editable.value !== true
519
+ || opt === void 0
520
+ || isOptionDisabled.value(opt) === true
521
+ ) return
518
522
 
519
523
  const optValue = getOptionValue.value(opt)
520
524
 
@@ -537,6 +541,7 @@ export default createComponent({
537
541
  ) {
538
542
  emit('update:modelValue', props.emitValue === true ? optValue : opt)
539
543
  }
544
+
540
545
  return
541
546
  }
542
547
 
@@ -559,9 +564,10 @@ export default createComponent({
559
564
  emit('remove', { index, value: model.splice(index, 1)[ 0 ] })
560
565
  }
561
566
  else {
562
- if (props.maxValues !== void 0 && model.length >= props.maxValues) {
563
- return
564
- }
567
+ if (
568
+ props.maxValues !== void 0
569
+ && model.length >= props.maxValues
570
+ ) return
565
571
 
566
572
  const val = props.emitValue === true ? optValue : opt
567
573
 
@@ -707,9 +713,7 @@ export default createComponent({
707
713
  function onTargetKeydown (e) {
708
714
  emit('keydown', e)
709
715
 
710
- if (shouldIgnoreKey(e) === true) {
711
- return
712
- }
716
+ if (shouldIgnoreKey(e) === true) return
713
717
 
714
718
  const newValueModeValid = inputValue.value.length !== 0
715
719
  && (props.newValueMode !== void 0 || props.onNewValue !== void 0)
@@ -764,6 +768,7 @@ export default createComponent({
764
768
  else if (props.multiple !== true && props.modelValue !== null) {
765
769
  emit('update:modelValue', null)
766
770
  }
771
+
767
772
  return
768
773
  }
769
774
 
@@ -875,9 +880,7 @@ export default createComponent({
875
880
  if (newValueModeValid === true) {
876
881
  const done = (val, mode) => {
877
882
  if (mode) {
878
- if (validateNewValueMode(mode) !== true) {
879
- return
880
- }
883
+ if (validateNewValueMode(mode) !== true) return
881
884
  }
882
885
  else {
883
886
  mode = props.newValueMode
@@ -885,9 +888,7 @@ export default createComponent({
885
888
 
886
889
  updateInputValue('', props.multiple !== true, true)
887
890
 
888
- if (val === void 0 || val === null) {
889
- return
890
- }
891
+ if (val === void 0 || val === null) return
891
892
 
892
893
  const fn = mode === 'toggle' ? toggleOption : add
893
894
  fn(val, mode === 'add-unique')
@@ -905,9 +906,7 @@ export default createComponent({
905
906
  done(inputValue.value)
906
907
  }
907
908
 
908
- if (props.multiple !== true) {
909
- return
910
- }
909
+ if (props.multiple !== true) return
911
910
  }
912
911
 
913
912
  if (menu.value === true) {
@@ -1044,9 +1043,11 @@ export default createComponent({
1044
1043
  inputValueTimer = null
1045
1044
  }
1046
1045
 
1047
- if (e && e.target && e.target.qComposing === true) {
1048
- return
1049
- }
1046
+ if (
1047
+ e
1048
+ && e.target
1049
+ && e.target.qComposing === true
1050
+ ) return
1050
1051
 
1051
1052
  setInputValue(e.target.value || '')
1052
1053
  // mark it here as user input so that if updateInputValue is called
@@ -1100,9 +1101,10 @@ export default createComponent({
1100
1101
  }
1101
1102
 
1102
1103
  function filter (val, keepClosed, afterUpdateFn) {
1103
- if (props.onFilter === void 0 || (keepClosed !== true && state.focused.value !== true)) {
1104
- return
1105
- }
1104
+ if (
1105
+ props.onFilter === void 0
1106
+ || (keepClosed !== true && state.focused.value !== true)
1107
+ ) return
1106
1108
 
1107
1109
  if (state.innerLoading.value === true) {
1108
1110
  emit('filterAbort')
@@ -1309,9 +1311,7 @@ export default createComponent({
1309
1311
  }
1310
1312
 
1311
1313
  function closeMenu () {
1312
- if (dialog.value === true) {
1313
- return
1314
- }
1314
+ if (dialog.value === true) return
1315
1315
 
1316
1316
  optionIndex.value = -1
1317
1317
 
@@ -1334,9 +1334,7 @@ export default createComponent({
1334
1334
  }
1335
1335
 
1336
1336
  function showPopup (e) {
1337
- if (state.editable.value !== true) {
1338
- return
1339
- }
1337
+ if (state.editable.value !== true) return
1340
1338
 
1341
1339
  if (hasDialog === true) {
1342
1340
  state.onControlFocusin(e)
@@ -134,9 +134,10 @@ export default createComponent({
134
134
  dist = evt.distance.y
135
135
  }
136
136
 
137
- if (pan.dir !== null && Math.abs(dir) !== Math.abs(pan.dir)) {
138
- return
139
- }
137
+ if (
138
+ pan.dir !== null
139
+ && Math.abs(dir) !== Math.abs(pan.dir)
140
+ ) return
140
141
 
141
142
  if (pan.dir !== dir) {
142
143
  [ 'left', 'right', 'top', 'bottom' ].forEach(d => {
@@ -126,9 +126,7 @@ export default createComponent({
126
126
  }
127
127
 
128
128
  function onKeydown (evt) {
129
- if (!keyCodes.includes(evt.keyCode)) {
130
- return
131
- }
129
+ if (keyCodes.includes(evt.keyCode) === false) return
132
130
 
133
131
  stopAndPrevent(evt)
134
132
 
@@ -594,10 +594,7 @@ export default createComponent({
594
594
  )
595
595
  }
596
596
 
597
- if (child.length === 0) {
598
- return
599
- }
600
-
597
+ if (child.length === 0) return
601
598
  return h('div', { class: topClass }, child)
602
599
  }
603
600
 
@@ -726,14 +723,10 @@ export default createComponent({
726
723
  })
727
724
 
728
725
  function getBottomDiv () {
729
- if (props.hideBottom === true) {
730
- return
731
- }
726
+ if (props.hideBottom === true) return
732
727
 
733
728
  if (nothingToDisplay.value === true) {
734
- if (props.hideNoData === true) {
735
- return
736
- }
729
+ if (props.hideNoData === true) return
737
730
 
738
731
  const message = props.loading === true
739
732
  ? props.loadingLabel || $q.lang.table.loading
@@ -157,9 +157,7 @@ export function useTablePagination (vm, innerPagination, computedPagination, isS
157
157
  })
158
158
 
159
159
  watch(pagesNumber, (lastPage, oldLastPage) => {
160
- if (lastPage === oldLastPage) {
161
- return
162
- }
160
+ if (lastPage === oldLastPage) return
163
161
 
164
162
  const currentPage = computedPagination.value.page
165
163
  if (lastPage && !currentPage) {
@@ -177,7 +177,7 @@ export default createComponent({
177
177
 
178
178
  function recalculateScroll () {
179
179
  registerScrollTick(() => {
180
- updateContainer({
180
+ rootRef.value && updateContainer({
181
181
  width: rootRef.value.offsetWidth,
182
182
  height: rootRef.value.offsetHeight
183
183
  })
@@ -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 (innerModel.value.hour === null || innerModel.value.minute === null || (props.withSeconds === true && innerModel.value.second === null)) {
749
- return
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 (props.noParentEvent === true || anchorEl.value === null) return
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) {
@@ -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)