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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Quasar Framework v2.17.4
2
+ * Quasar Framework v2.17.6
3
3
  * (c) 2015-present Razvan Stoenescu
4
4
  * Released under the MIT License.
5
5
  */
@@ -800,19 +800,13 @@ var History_default = {
800
800
  install({ $q }) {
801
801
  if (this.__installed === true) return;
802
802
  const { cordova: cordova2, capacitor } = client.is;
803
- if (cordova2 !== true && capacitor !== true) {
804
- return;
805
- }
803
+ if (cordova2 !== true && capacitor !== true) return;
806
804
  const qConf = $q.config[cordova2 === true ? "cordova" : "capacitor"];
807
- if (qConf !== void 0 && qConf.backButton === false) {
808
- return;
809
- }
805
+ if (qConf !== void 0 && qConf.backButton === false) return;
810
806
  if (
811
807
  // if we're on Capacitor mode
812
808
  capacitor === true && (window.Capacitor === void 0 || window.Capacitor.Plugins.App === void 0)
813
- ) {
814
- return;
815
- }
809
+ ) return;
816
810
  this.add = (entry) => {
817
811
  if (entry.condition === void 0) {
818
812
  entry.condition = getTrue;
@@ -1398,7 +1392,7 @@ function prepareApp(app2, uiOpts, pluginOpts) {
1398
1392
  }
1399
1393
  var install_quasar_default = false ? function(parentApp, opts = {}, ssrContext) {
1400
1394
  const $q = {
1401
- version: "2.17.4",
1395
+ version: "2.17.6",
1402
1396
  config: opts.config || {}
1403
1397
  };
1404
1398
  Object.assign(ssrContext, {
@@ -1428,7 +1422,7 @@ var install_quasar_default = false ? function(parentApp, opts = {}, ssrContext)
1428
1422
  ssrContext
1429
1423
  });
1430
1424
  } : function(parentApp, opts = {}) {
1431
- const $q = { version: "2.17.4" };
1425
+ const $q = { version: "2.17.6" };
1432
1426
  if (globalConfigIsFrozen === false) {
1433
1427
  if (opts.config !== void 0) {
1434
1428
  Object.assign(globalConfig, opts.config);
@@ -2499,9 +2493,7 @@ function cssBatch(elements, style2) {
2499
2493
  elements.forEach((el) => css(el, style2));
2500
2494
  }
2501
2495
  function ready(fn) {
2502
- if (typeof fn !== "function") {
2503
- return;
2504
- }
2496
+ if (typeof fn !== "function") return;
2505
2497
  if (document.readyState !== "loading") {
2506
2498
  return fn();
2507
2499
  }
@@ -2612,9 +2604,7 @@ var Ripple_default = createDirective(
2612
2604
  name: "ripple",
2613
2605
  beforeMount(el, binding) {
2614
2606
  const cfg = binding.instance.$.appContext.config.globalProperties.$q.config || {};
2615
- if (cfg.ripple === false) {
2616
- return;
2617
- }
2607
+ if (cfg.ripple === false) return;
2618
2608
  const ctx = {
2619
2609
  cfg,
2620
2610
  enabled: binding.value !== false,
@@ -2901,9 +2891,7 @@ var QBtn_default = createComponent({
2901
2891
  function onClick(e) {
2902
2892
  if (rootRef.value === null) return;
2903
2893
  if (e !== void 0) {
2904
- if (e.defaultPrevented === true) {
2905
- return;
2906
- }
2894
+ if (e.defaultPrevented === true) return;
2907
2895
  const el = document.activeElement;
2908
2896
  if (props4.type === "submit" && el !== document.body && rootRef.value.contains(el) === false && el.contains(rootRef.value) === false) {
2909
2897
  rootRef.value.focus();
@@ -2965,9 +2953,7 @@ var QBtn_default = createComponent({
2965
2953
  }
2966
2954
  function onPressEnd(e) {
2967
2955
  if (rootRef.value === null) return;
2968
- if (e !== void 0 && e.type === "blur" && document.activeElement === rootRef.value) {
2969
- return;
2970
- }
2956
+ if (e !== void 0 && e.type === "blur" && document.activeElement === rootRef.value) return;
2971
2957
  if (e !== void 0 && e.type === "keyup") {
2972
2958
  if (keyboardTarget === rootRef.value && isKeyCode(e, [13, 32]) === true) {
2973
2959
  const evt = new MouseEvent("click", e);
@@ -3190,9 +3176,7 @@ function use_anchor_default({
3190
3176
  prevent,
3191
3177
  mobileTouch(evt) {
3192
3178
  anchorEvents.mobileCleanup(evt);
3193
- if (canShow(evt) !== true) {
3194
- return;
3195
- }
3179
+ if (canShow(evt) !== true) return;
3196
3180
  proxy.hide(evt);
3197
3181
  anchorEl.value.classList.add("non-selectable");
3198
3182
  const target2 = evt.target;
@@ -3386,9 +3370,7 @@ function use_model_toggle_default({
3386
3370
  }
3387
3371
  }
3388
3372
  function show(evt) {
3389
- if (props4.disable === true || evt !== void 0 && evt.qAnchorHandled === true || canShow !== void 0 && canShow(evt) !== true) {
3390
- return;
3391
- }
3373
+ if (props4.disable === true || evt !== void 0 && evt.qAnchorHandled === true || canShow !== void 0 && canShow(evt) !== true) return;
3392
3374
  const listener = props4["onUpdate:modelValue"] !== void 0;
3393
3375
  if (listener === true && true) {
3394
3376
  emit("update:modelValue", true);
@@ -3404,9 +3386,7 @@ function use_model_toggle_default({
3404
3386
  }
3405
3387
  }
3406
3388
  function processShow(evt) {
3407
- if (showing.value === true) {
3408
- return;
3409
- }
3389
+ if (showing.value === true) return;
3410
3390
  showing.value = true;
3411
3391
  emit("beforeShow", evt);
3412
3392
  if (handleShow !== void 0) {
@@ -3416,9 +3396,7 @@ function use_model_toggle_default({
3416
3396
  }
3417
3397
  }
3418
3398
  function hide(evt) {
3419
- if (props4.disable === true) {
3420
- return;
3421
- }
3399
+ if (props4.disable === true) return;
3422
3400
  const listener = props4["onUpdate:modelValue"] !== void 0;
3423
3401
  if (listener === true && true) {
3424
3402
  emit("update:modelValue", false);
@@ -3434,9 +3412,7 @@ function use_model_toggle_default({
3434
3412
  }
3435
3413
  }
3436
3414
  function processHide(evt) {
3437
- if (showing.value === false) {
3438
- return;
3439
- }
3415
+ if (showing.value === false) return;
3440
3416
  showing.value = false;
3441
3417
  emit("beforeHide", evt);
3442
3418
  if (handleHide !== void 0) {
@@ -3970,9 +3946,7 @@ function globalHandler(evt) {
3970
3946
  timer = null;
3971
3947
  }
3972
3948
  const target2 = evt.target;
3973
- if (target2 === void 0 || target2.nodeType === 8 || target2.classList.contains("no-pointer-events") === true) {
3974
- return;
3975
- }
3949
+ if (target2 === void 0 || target2.nodeType === 8 || target2.classList.contains("no-pointer-events") === true) return;
3976
3950
  let portalIndex2 = portalProxyList.length - 1;
3977
3951
  while (portalIndex2 >= 0) {
3978
3952
  const proxy = portalProxyList[portalIndex2].$;
@@ -3983,9 +3957,7 @@ function globalHandler(evt) {
3983
3957
  if (proxy.type.name !== "QDialog") {
3984
3958
  break;
3985
3959
  }
3986
- if (proxy.props.seamless !== true) {
3987
- return;
3988
- }
3960
+ if (proxy.props.seamless !== true) return;
3989
3961
  portalIndex2--;
3990
3962
  }
3991
3963
  for (let i = registeredList.length - 1; i >= 0; i--) {
@@ -4124,9 +4096,7 @@ function getTopLeftProps(anchorProps, targetProps, anchorOrigin, selfOrigin) {
4124
4096
  };
4125
4097
  }
4126
4098
  function setPosition(cfg, retryNumber = 0) {
4127
- if (cfg.targetEl === null || cfg.anchorEl === null || retryNumber > 5) {
4128
- return;
4129
- }
4099
+ if (cfg.targetEl === null || cfg.anchorEl === null || retryNumber > 5) return;
4130
4100
  if (cfg.targetEl.offsetHeight === 0 || cfg.targetEl.offsetWidth === 0) {
4131
4101
  setTimeout(() => {
4132
4102
  setPosition(cfg, retryNumber + 1);
@@ -5053,9 +5023,7 @@ var TouchSwipe_default = createDirective(
5053
5023
  false ? { name: "touch-swipe", getSSRProps: noop_ssr_directive_transform_default } : {
5054
5024
  name: "touch-swipe",
5055
5025
  beforeMount(el, { value: value2, arg, modifiers }) {
5056
- if (modifiers.mouse !== true && client.has.touch !== true) {
5057
- return;
5058
- }
5026
+ if (modifiers.mouse !== true && client.has.touch !== true) return;
5059
5027
  const mouseCapture = modifiers.mouseCapture === true ? "Capture" : "";
5060
5028
  const ctx = {
5061
5029
  handler: value2,
@@ -5094,17 +5062,13 @@ var TouchSwipe_default = createDirective(
5094
5062
  };
5095
5063
  },
5096
5064
  move(evt) {
5097
- if (ctx.event === void 0) {
5098
- return;
5099
- }
5065
+ if (ctx.event === void 0) return;
5100
5066
  if (ctx.event.dir !== false) {
5101
5067
  stopAndPrevent(evt);
5102
5068
  return;
5103
5069
  }
5104
5070
  const time = Date.now() - ctx.event.time;
5105
- if (time === 0) {
5106
- return;
5107
- }
5071
+ if (time === 0) return;
5108
5072
  const pos = position(evt), distX = pos.left - ctx.event.x, absX = Math.abs(distX), distY = pos.top - ctx.event.y, absY = Math.abs(distY);
5109
5073
  if (ctx.event.mouse !== true) {
5110
5074
  if (absX < ctx.sensitivity[1] && absY < ctx.sensitivity[1]) {
@@ -5171,9 +5135,7 @@ var TouchSwipe_default = createDirective(
5171
5135
  }
5172
5136
  },
5173
5137
  end(evt) {
5174
- if (ctx.event === void 0) {
5175
- return;
5176
- }
5138
+ if (ctx.event === void 0) return;
5177
5139
  cleanEvt(ctx, "temp");
5178
5140
  client.is.firefox === true && preventDraggable(el, false);
5179
5141
  ctx.styleCleanup !== void 0 && ctx.styleCleanup(true);
@@ -5276,8 +5238,8 @@ function use_panel_default() {
5276
5238
  const { getCache } = use_render_cache_default();
5277
5239
  const { registerTimeout } = use_timeout_default();
5278
5240
  let panels, forcedPanelTransition;
5279
- const panelIndex = ref10(null);
5280
5241
  const panelTransition = ref10(null);
5242
+ const panelIndex = { value: null };
5281
5243
  function onSwipe(evt) {
5282
5244
  const dir = props4.vertical === true ? "up" : "left";
5283
5245
  goToPanelByOffset((proxy.$q.lang.rtl === true ? -1 : 1) * (evt.direction === dir ? 1 : -1));
@@ -5401,9 +5363,7 @@ function use_panel_default() {
5401
5363
  ];
5402
5364
  }
5403
5365
  function getPanelContent() {
5404
- if (panels.length === 0) {
5405
- return;
5406
- }
5366
+ if (panels.length === 0) return;
5407
5367
  return props4.animated === true ? [h21(Transition3, { name: panelTransition.value }, getPanelContentChild)] : getPanelContentChild();
5408
5368
  }
5409
5369
  function updatePanelsList(slots) {
@@ -5473,9 +5433,7 @@ function use_fullscreen_default() {
5473
5433
  }
5474
5434
  }
5475
5435
  function setFullscreen() {
5476
- if (inFullscreen.value === true) {
5477
- return;
5478
- }
5436
+ if (inFullscreen.value === true) return;
5479
5437
  inFullscreen.value = true;
5480
5438
  container = proxy.$el.parentNode;
5481
5439
  container.replaceChild(fullscreenFillerNode, proxy.$el);
@@ -5490,9 +5448,7 @@ function use_fullscreen_default() {
5490
5448
  History_default.add(historyEntry);
5491
5449
  }
5492
5450
  function exitFullscreen() {
5493
- if (inFullscreen.value !== true) {
5494
- return;
5495
- }
5451
+ if (inFullscreen.value !== true) return;
5496
5452
  if (historyEntry !== void 0) {
5497
5453
  History_default.remove(historyEntry);
5498
5454
  historyEntry = void 0;
@@ -6556,9 +6512,7 @@ var TouchPan_default = createDirective(
6556
6512
  false ? { name: "touch-pan", getSSRProps: noop_ssr_directive_transform_default } : {
6557
6513
  name: "touch-pan",
6558
6514
  beforeMount(el, { value: value2, modifiers }) {
6559
- if (modifiers.mouse !== true && client.has.touch !== true) {
6560
- return;
6561
- }
6515
+ if (modifiers.mouse !== true && client.has.touch !== true) return;
6562
6516
  function handleEvent(evt, mouseEvent) {
6563
6517
  if (modifiers.mouse === true && mouseEvent === true) {
6564
6518
  stopAndPrevent(evt);
@@ -6628,13 +6582,9 @@ var TouchPan_default = createDirective(
6628
6582
  };
6629
6583
  },
6630
6584
  move(evt) {
6631
- if (ctx.event === void 0) {
6632
- return;
6633
- }
6585
+ if (ctx.event === void 0) return;
6634
6586
  const pos = position(evt), distX = pos.left - ctx.event.x, distY = pos.top - ctx.event.y;
6635
- if (distX === 0 && distY === 0) {
6636
- return;
6637
- }
6587
+ if (distX === 0 && distY === 0) return;
6638
6588
  ctx.lastEvt = evt;
6639
6589
  const isMouseEvt = ctx.event.mouse === true;
6640
6590
  const start = () => {
@@ -6705,9 +6655,7 @@ var TouchPan_default = createDirective(
6705
6655
  }
6706
6656
  },
6707
6657
  end(evt, abort) {
6708
- if (ctx.event === void 0) {
6709
- return;
6710
- }
6658
+ if (ctx.event === void 0) return;
6711
6659
  cleanEvt(ctx, "temp");
6712
6660
  client.is.firefox === true && preventDraggable(el, false);
6713
6661
  if (abort === true) {
@@ -7347,9 +7295,7 @@ var QSlider_default = createComponent({
7347
7295
  state.focus.value = true;
7348
7296
  }
7349
7297
  function onKeydown2(evt) {
7350
- if (!keyCodes.includes(evt.keyCode)) {
7351
- return;
7352
- }
7298
+ if (keyCodes.includes(evt.keyCode) === false) return;
7353
7299
  stopAndPrevent(evt);
7354
7300
  const stepVal = ([34, 33].includes(evt.keyCode) ? 10 : 1) * state.keyStep.value, offset2 = ([34, 37, 40].includes(evt.keyCode) ? -1 : 1) * (state.isReversed.value === true ? -1 : 1) * (props4.vertical === true ? -1 : 1) * stepVal;
7355
7301
  model.value = between(
@@ -7645,7 +7591,7 @@ var QTabs_default = createComponent({
7645
7591
  }
7646
7592
  function recalculateScroll() {
7647
7593
  registerScrollTick(() => {
7648
- updateContainer({
7594
+ rootRef.value && updateContainer({
7649
7595
  width: rootRef.value.offsetWidth,
7650
7596
  height: rootRef.value.offsetHeight
7651
7597
  });
@@ -10110,13 +10056,9 @@ var formatter = {
10110
10056
  }
10111
10057
  };
10112
10058
  function formatDate(val, mask, dateLocale, __forcedYear, __forcedTimezoneOffset) {
10113
- if (val !== 0 && !val || val === Infinity || val === -Infinity) {
10114
- return;
10115
- }
10059
+ if (val !== 0 && !val || val === Infinity || val === -Infinity) return;
10116
10060
  const date = new Date(val);
10117
- if (isNaN(date)) {
10118
- return;
10119
- }
10061
+ if (isNaN(date)) return;
10120
10062
  if (mask === void 0) {
10121
10063
  mask = defaultMask;
10122
10064
  }
@@ -10432,16 +10374,12 @@ var QDate_default = createComponent({
10432
10374
  return map;
10433
10375
  });
10434
10376
  const rangeView = computed43(() => {
10435
- if (editRange.value === null) {
10436
- return;
10437
- }
10377
+ if (editRange.value === null) return;
10438
10378
  const { init, initHash, final, finalHash } = editRange.value;
10439
10379
  const [from, to] = initHash <= finalHash ? [init, final] : [final, init];
10440
10380
  const fromHash = getMonthHash(from);
10441
10381
  const toHash = getMonthHash(to);
10442
- if (fromHash !== viewMonthHash.value && toHash !== viewMonthHash.value) {
10443
- return;
10444
- }
10382
+ if (fromHash !== viewMonthHash.value && toHash !== viewMonthHash.value) return;
10445
10383
  const view2 = {};
10446
10384
  if (fromHash === viewMonthHash.value) {
10447
10385
  view2.from = from.day;
@@ -10881,9 +10819,7 @@ var QDate_default = createComponent({
10881
10819
  emitValue(value2, "add", date);
10882
10820
  }
10883
10821
  function removeFromModel(date) {
10884
- if (props4.noUnset === true) {
10885
- return;
10886
- }
10822
+ if (props4.noUnset === true) return;
10887
10823
  let model = null;
10888
10824
  if (props4.multiple === true && Array.isArray(props4.modelValue) === true) {
10889
10825
  const val = encodeEntry(date);
@@ -11336,9 +11272,7 @@ function onAppleScroll(e) {
11336
11272
  }
11337
11273
  }
11338
11274
  function onAppleResize(evt) {
11339
- if (vpPendingUpdate === true) {
11340
- return;
11341
- }
11275
+ if (vpPendingUpdate === true) return;
11342
11276
  vpPendingUpdate = true;
11343
11277
  requestAnimationFrame(() => {
11344
11278
  vpPendingUpdate = false;
@@ -11415,17 +11349,11 @@ function prevent_scroll_default(state) {
11415
11349
  closeTimer = null;
11416
11350
  return;
11417
11351
  }
11418
- if (registered > 1) {
11419
- return;
11420
- }
11352
+ if (registered > 1) return;
11421
11353
  } else {
11422
- if (registered === 0) {
11423
- return;
11424
- }
11354
+ if (registered === 0) return;
11425
11355
  registered--;
11426
- if (registered > 0) {
11427
- return;
11428
- }
11356
+ if (registered > 0) return;
11429
11357
  action = "remove";
11430
11358
  if (client.is.ios === true && client.is.nativeMobile === true) {
11431
11359
  closeTimer !== null && clearTimeout(closeTimer);
@@ -12466,11 +12394,7 @@ var Caret = class {
12466
12394
  if (link === null) {
12467
12395
  const selection = this.selectWord(this.selection);
12468
12396
  const url = selection ? selection.toString() : "";
12469
- if (!url.length) {
12470
- if (!this.range || !this.range.cloneContents().querySelector("img")) {
12471
- return;
12472
- }
12473
- }
12397
+ if (!url.length && (!this.range || !this.range.cloneContents().querySelector("img"))) return;
12474
12398
  this.eVm.editLinkUrl.value = urlRegex.test(url) ? url : "https://";
12475
12399
  document.execCommand("createLink", false, this.eVm.editLinkUrl.value);
12476
12400
  this.save(selection.getRangeAt(0));
@@ -13039,9 +12963,7 @@ function getLinkEditor(eVm) {
13039
12963
  link = evt.target.value;
13040
12964
  },
13041
12965
  onKeydown: (evt) => {
13042
- if (shouldIgnoreKey(evt) === true) {
13043
- return;
13044
- }
12966
+ if (shouldIgnoreKey(evt) === true) return;
13045
12967
  switch (evt.keyCode) {
13046
12968
  case 13:
13047
12969
  prevent(evt);
@@ -14686,9 +14608,7 @@ function use_field_default(state) {
14686
14608
  focusoutTimer !== null && clearTimeout(focusoutTimer);
14687
14609
  focusoutTimer = setTimeout(() => {
14688
14610
  focusoutTimer = null;
14689
- if (document.hasFocus() === true && (state.hasPopupOpen === true || state.controlRef === void 0 || state.controlRef.value === null || state.controlRef.value.contains(document.activeElement) !== false)) {
14690
- return;
14691
- }
14611
+ if (document.hasFocus() === true && (state.hasPopupOpen === true || state.controlRef === void 0 || state.controlRef.value === null || state.controlRef.value.contains(document.activeElement) !== false)) return;
14692
14612
  if (state.focused.value === true) {
14693
14613
  state.focused.value = false;
14694
14614
  emit("blur", e);
@@ -14835,9 +14755,7 @@ function use_field_default(state) {
14835
14755
  }
14836
14756
  }
14837
14757
  const hasCounter = props4.counter === true || slots.counter !== void 0;
14838
- if (props4.hideBottomSpace === true && hasCounter === false && msg === void 0) {
14839
- return;
14840
- }
14758
+ if (props4.hideBottomSpace === true && hasCounter === false && msg === void 0) return;
14841
14759
  const main = h52("div", {
14842
14760
  key,
14843
14761
  class: "q-field__messages col"
@@ -15131,9 +15049,7 @@ function use_file_dom_props_default(props4, typeGuard) {
15131
15049
  }
15132
15050
  }
15133
15051
  return typeGuard === true ? computed59(() => {
15134
- if (props4.type !== "file") {
15135
- return;
15136
- }
15052
+ if (props4.type !== "file") return;
15137
15053
  return getFormDomProps();
15138
15054
  }) : computed59(getFormDomProps);
15139
15055
  }
@@ -15242,9 +15158,7 @@ var QFile_default = createComponent({
15242
15158
  fileInput.value = "";
15243
15159
  }
15244
15160
  if (files === void 0) return;
15245
- if (props4.multiple === true ? props4.modelValue && files.every((f) => innerValue.value.includes(f)) : props4.modelValue === files[0]) {
15246
- return;
15247
- }
15161
+ if (props4.multiple === true ? props4.modelValue && files.every((f) => innerValue.value.includes(f)) : props4.modelValue === files[0]) return;
15248
15162
  emitValue(
15249
15163
  isAppending.value === true ? innerValue.value.concat(files) : files
15250
15164
  );
@@ -16078,9 +15992,7 @@ var QInfiniteScroll_default = createComponent({
16078
15992
  () => "q-infinite-scroll__loading" + (isFetching.value === true ? "" : " invisible")
16079
15993
  );
16080
15994
  function immediatePoll() {
16081
- if (props4.disable === true || isFetching.value === true || isWorking.value === false) {
16082
- return;
16083
- }
15995
+ if (props4.disable === true || isFetching.value === true || isWorking.value === false) return;
16084
15996
  const scrollHeight = getScrollHeight(localScrollTarget), scrollPosition = getVerticalScrollPosition(localScrollTarget), containerHeight = height(localScrollTarget);
16085
15997
  if (props4.reverse === false) {
16086
15998
  if (Math.round(scrollPosition + containerHeight + props4.offset) >= Math.round(scrollHeight)) {
@@ -16091,9 +16003,7 @@ var QInfiniteScroll_default = createComponent({
16091
16003
  }
16092
16004
  }
16093
16005
  function trigger3() {
16094
- if (props4.disable === true || isFetching.value === true || isWorking.value === false) {
16095
- return;
16096
- }
16006
+ if (props4.disable === true || isFetching.value === true || isWorking.value === false) return;
16097
16007
  index++;
16098
16008
  isFetching.value = true;
16099
16009
  const heightBefore = getScrollHeight(localScrollTarget);
@@ -16575,9 +16485,7 @@ function use_mask_default(props4, emit, emitValue, inputRef) {
16575
16485
  }
16576
16486
  function onMaskedKeydown(e) {
16577
16487
  emit("keydown", e);
16578
- if (shouldIgnoreKey(e) === true || e.altKey === true) {
16579
- return;
16580
- }
16488
+ if (shouldIgnoreKey(e) === true || e.altKey === true) return;
16581
16489
  const inp = inputRef.value, start = inp.selectionStart, end = inp.selectionEnd;
16582
16490
  if (!e.shiftKey) {
16583
16491
  selectionAnchor = void 0;
@@ -16795,9 +16703,7 @@ var QInput_default = createComponent({
16795
16703
  if (hasMask.value === true) {
16796
16704
  if (stopValueWatcher === true) {
16797
16705
  stopValueWatcher = false;
16798
- if (String(v) === emitCachedValue) {
16799
- return;
16800
- }
16706
+ if (String(v) === emitCachedValue) return;
16801
16707
  }
16802
16708
  updateMaskValue(v);
16803
16709
  } else if (innerValue.value !== v) {
@@ -16841,9 +16747,7 @@ var QInput_default = createComponent({
16841
16747
  emit("paste", e);
16842
16748
  }
16843
16749
  function onInput(e) {
16844
- if (!e || !e.target) {
16845
- return;
16846
- }
16750
+ if (!e || !e.target) return;
16847
16751
  if (props4.type === "file") {
16848
16752
  emit("update:modelValue", e.target.files);
16849
16753
  return;
@@ -17279,9 +17183,7 @@ var QKnob_default = createComponent({
17279
17183
  updatePosition(evt, true);
17280
17184
  }
17281
17185
  function onKeydown2(evt) {
17282
- if (!keyCodes2.includes(evt.keyCode)) {
17283
- return;
17284
- }
17186
+ if (keyCodes2.includes(evt.keyCode) === false) return;
17285
17187
  stopAndPrevent(evt);
17286
17188
  const stepVal = ([34, 33].includes(evt.keyCode) ? 10 : 1) * step.value, offset2 = [34, 37, 40].includes(evt.keyCode) ? -stepVal : stepVal;
17287
17189
  model.value = between(
@@ -17415,9 +17317,7 @@ var QScrollObserver_default = createComponent({
17415
17317
  top: top - scroll.position.top,
17416
17318
  left: left - scroll.position.left
17417
17319
  };
17418
- if (props4.axis === "vertical" && delta.top === 0 || props4.axis === "horizontal" && delta.left === 0) {
17419
- return;
17420
- }
17320
+ if (props4.axis === "vertical" && delta.top === 0 || props4.axis === "horizontal" && delta.left === 0) return;
17421
17321
  const curDir = Math.abs(delta.top) >= Math.abs(delta.left) ? delta.top < 0 ? "up" : "down" : delta.left < 0 ? "left" : "right";
17422
17322
  scroll.position = { top, left };
17423
17323
  scroll.directionChanged = scroll.direction !== curDir;
@@ -17589,9 +17489,7 @@ var QLayout_default = createComponent({
17589
17489
  el.classList.remove("hide-scrollbar");
17590
17490
  }, hideScrollbar = function() {
17591
17491
  if (timer2 === null) {
17592
- if (el.scrollHeight > $q.screen.height) {
17593
- return;
17594
- }
17492
+ if (el.scrollHeight > $q.screen.height) return;
17595
17493
  el.classList.add("hide-scrollbar");
17596
17494
  } else {
17597
17495
  clearTimeout(timer2);
@@ -18356,9 +18254,7 @@ var QPagination_default = createComponent({
18356
18254
  get: () => props4.modelValue,
18357
18255
  set: (val) => {
18358
18256
  val = parseInt(val, 10);
18359
- if (props4.disable || isNaN(val)) {
18360
- return;
18361
- }
18257
+ if (props4.disable || isNaN(val)) return;
18362
18258
  const value2 = between(val, minProp.value, maxProp.value);
18363
18259
  if (props4.modelValue !== value2) {
18364
18260
  emit("update:modelValue", value2);
@@ -18861,9 +18757,7 @@ var QPopupEdit_default = createComponent({
18861
18757
  });
18862
18758
  });
18863
18759
  function set2() {
18864
- if (props4.validate(currentModel.value) === false) {
18865
- return;
18866
- }
18760
+ if (props4.validate(currentModel.value) === false) return;
18867
18761
  if (hasModelChanged() === true) {
18868
18762
  emit("save", currentModel.value, initialValue.value);
18869
18763
  emit("update:modelValue", currentModel.value);
@@ -19191,11 +19085,11 @@ var QPullToRefresh_default = createComponent({
19191
19085
  return false;
19192
19086
  }
19193
19087
  pulling.value = true;
19194
- const { top, left } = $el.getBoundingClientRect();
19088
+ const { top, left } = proxy.$el.getBoundingClientRect();
19195
19089
  positionCSS.value = {
19196
19090
  top: top + "px",
19197
19091
  left: left + "px",
19198
- width: window.getComputedStyle($el).getPropertyValue("width")
19092
+ width: window.getComputedStyle(proxy.$el).getPropertyValue("width")
19199
19093
  };
19200
19094
  }
19201
19095
  prevent(event.evt);
@@ -19229,7 +19123,7 @@ var QPullToRefresh_default = createComponent({
19229
19123
  });
19230
19124
  });
19231
19125
  }
19232
- let $el, localScrollTarget, timer2 = null;
19126
+ let localScrollTarget, timer2 = null;
19233
19127
  function animateTo({ pos, ratio }, done) {
19234
19128
  animating.value = true;
19235
19129
  pullPosition.value = pos;
@@ -19244,13 +19138,10 @@ var QPullToRefresh_default = createComponent({
19244
19138
  }, 300);
19245
19139
  }
19246
19140
  function updateScrollTarget() {
19247
- localScrollTarget = getScrollTarget($el, props4.scrollTarget);
19141
+ localScrollTarget = getScrollTarget(proxy.$el, props4.scrollTarget);
19248
19142
  }
19249
19143
  watch34(() => props4.scrollTarget, updateScrollTarget);
19250
- onMounted21(() => {
19251
- $el = proxy.$el;
19252
- updateScrollTarget();
19253
- });
19144
+ onMounted21(updateScrollTarget);
19254
19145
  onBeforeUnmount31(() => {
19255
19146
  timer2 !== null && clearTimeout(timer2);
19256
19147
  });
@@ -19520,9 +19411,7 @@ var QRange_default = createComponent({
19520
19411
  }
19521
19412
  }
19522
19413
  function onKeydown2(evt) {
19523
- if (!keyCodes.includes(evt.keyCode)) {
19524
- return;
19525
- }
19414
+ if (keyCodes.includes(evt.keyCode) === false) return;
19526
19415
  stopAndPrevent(evt);
19527
19416
  const stepVal = ([34, 33].includes(evt.keyCode) ? 10 : 1) * state.keyStep.value, offset2 = ([34, 37, 40].includes(evt.keyCode) ? -1 : 1) * (state.isReversed.value === true ? -1 : 1) * (props4.vertical === true ? -1 : 1) * stepVal;
19528
19417
  if (state.focus.value === "both") {
@@ -20021,9 +19910,7 @@ var QScrollArea_default = createComponent({
20021
19910
  function onPanThumb(e, axis) {
20022
19911
  const data = scroll[axis];
20023
19912
  if (e.isFirst === true) {
20024
- if (data.thumbHidden.value === true) {
20025
- return;
20026
- }
19913
+ if (data.thumbHidden.value === true) return;
20027
19914
  panRefPos = data.position.value;
20028
19915
  panning.value = true;
20029
19916
  } else if (panning.value !== true) {
@@ -20208,16 +20095,12 @@ var scrollToEdges = [
20208
20095
  ];
20209
20096
  var filterProto = Array.prototype.filter;
20210
20097
  var setOverflowAnchor = __QUASAR_SSR__ || window.getComputedStyle(document.body).overflowAnchor === void 0 ? noop : function(contentEl, index) {
20211
- if (contentEl === null) {
20212
- return;
20213
- }
20098
+ if (contentEl === null) return;
20214
20099
  if (contentEl._qOverflowAnimationFrame !== void 0) {
20215
20100
  cancelAnimationFrame(contentEl._qOverflowAnimationFrame);
20216
20101
  }
20217
20102
  contentEl._qOverflowAnimationFrame = requestAnimationFrame(() => {
20218
- if (contentEl === null) {
20219
- return;
20220
- }
20103
+ if (contentEl === null) return;
20221
20104
  contentEl._qOverflowAnimationFrame = void 0;
20222
20105
  const children = contentEl.children || [];
20223
20106
  filterProto.call(children, (el2) => el2.dataset && el2.dataset.qVsAnchor !== void 0).forEach((el2) => {
@@ -20399,9 +20282,7 @@ function useVirtualScroll({
20399
20282
  }
20400
20283
  function scrollTo(toIndex, edge) {
20401
20284
  const scrollEl = getVirtualScrollTarget();
20402
- if (scrollEl === void 0 || scrollEl === null || scrollEl.nodeType === 8) {
20403
- return;
20404
- }
20285
+ if (scrollEl === void 0 || scrollEl === null || scrollEl.nodeType === 8) return;
20405
20286
  const scrollDetails = getScrollDetails(
20406
20287
  scrollEl,
20407
20288
  getVirtualScrollEl(),
@@ -20423,9 +20304,7 @@ function useVirtualScroll({
20423
20304
  }
20424
20305
  function localOnVirtualScrollEvt() {
20425
20306
  const scrollEl = getVirtualScrollTarget();
20426
- if (scrollEl === void 0 || scrollEl === null || scrollEl.nodeType === 8) {
20427
- return;
20428
- }
20307
+ if (scrollEl === void 0 || scrollEl === null || scrollEl.nodeType === 8) return;
20429
20308
  const scrollDetails = getScrollDetails(
20430
20309
  scrollEl,
20431
20310
  getVirtualScrollEl(),
@@ -20436,9 +20315,7 @@ function useVirtualScroll({
20436
20315
  props4.virtualScrollStickySizeStart,
20437
20316
  props4.virtualScrollStickySizeEnd
20438
20317
  ), listLastIndex = virtualScrollLength.value - 1, listEndOffset = scrollDetails.scrollMaxSize - scrollDetails.offsetStart - scrollDetails.offsetEnd - virtualScrollPaddingAfter.value;
20439
- if (prevScrollStart === scrollDetails.scrollStart) {
20440
- return;
20441
- }
20318
+ if (prevScrollStart === scrollDetails.scrollStart) return;
20442
20319
  if (scrollDetails.scrollMaxSize <= 0) {
20443
20320
  setVirtualScrollSliceRange(scrollEl, scrollDetails, 0, 0);
20444
20321
  return;
@@ -20520,9 +20397,7 @@ function useVirtualScroll({
20520
20397
  });
20521
20398
  }
20522
20399
  requestAnimationFrame(() => {
20523
- if (prevScrollStart !== scrollDetails.scrollStart) {
20524
- return;
20525
- }
20400
+ if (prevScrollStart !== scrollDetails.scrollStart) return;
20526
20401
  if (rangeChanged === true) {
20527
20402
  updateVirtualScrollSizes(from);
20528
20403
  }
@@ -21061,21 +20936,15 @@ var QSelect_default = createComponent({
21061
20936
  emit("update:modelValue", props4.multiple === true ? [val] : val);
21062
20937
  return;
21063
20938
  }
21064
- if (unique === true && isOptionSelected(opt) === true) {
21065
- return;
21066
- }
21067
- if (props4.maxValues !== void 0 && props4.modelValue.length >= props4.maxValues) {
21068
- return;
21069
- }
20939
+ if (unique === true && isOptionSelected(opt) === true) return;
20940
+ if (props4.maxValues !== void 0 && props4.modelValue.length >= props4.maxValues) return;
21070
20941
  const model = props4.modelValue.slice();
21071
20942
  emit("add", { index: model.length, value: val });
21072
20943
  model.push(val);
21073
20944
  emit("update:modelValue", model);
21074
20945
  }
21075
20946
  function toggleOption(opt, keepOpen) {
21076
- if (state.editable.value !== true || opt === void 0 || isOptionDisabled.value(opt) === true) {
21077
- return;
21078
- }
20947
+ if (state.editable.value !== true || opt === void 0 || isOptionDisabled.value(opt) === true) return;
21079
20948
  const optValue = getOptionValue.value(opt);
21080
20949
  if (props4.multiple !== true) {
21081
20950
  if (keepOpen !== true) {
@@ -21104,9 +20973,7 @@ var QSelect_default = createComponent({
21104
20973
  if (index !== -1) {
21105
20974
  emit("remove", { index, value: model.splice(index, 1)[0] });
21106
20975
  } else {
21107
- if (props4.maxValues !== void 0 && model.length >= props4.maxValues) {
21108
- return;
21109
- }
20976
+ if (props4.maxValues !== void 0 && model.length >= props4.maxValues) return;
21110
20977
  const val = props4.emitValue === true ? optValue : opt;
21111
20978
  emit("add", { index: model.length, value: val });
21112
20979
  model.push(val);
@@ -21206,9 +21073,7 @@ var QSelect_default = createComponent({
21206
21073
  }
21207
21074
  function onTargetKeydown(e) {
21208
21075
  emit("keydown", e);
21209
- if (shouldIgnoreKey(e) === true) {
21210
- return;
21211
- }
21076
+ if (shouldIgnoreKey(e) === true) return;
21212
21077
  const newValueModeValid = inputValue.value.length !== 0 && (props4.newValueMode !== void 0 || props4.onNewValue !== void 0);
21213
21078
  const tabShouldSelect = e.shiftKey !== true && props4.disableTabSelection !== true && props4.multiple !== true && (optionIndex.value !== -1 || newValueModeValid === true);
21214
21079
  if (e.keyCode === 27) {
@@ -21292,16 +21157,12 @@ var QSelect_default = createComponent({
21292
21157
  if (newValueModeValid === true) {
21293
21158
  const done = (val, mode) => {
21294
21159
  if (mode) {
21295
- if (validateNewValueMode(mode) !== true) {
21296
- return;
21297
- }
21160
+ if (validateNewValueMode(mode) !== true) return;
21298
21161
  } else {
21299
21162
  mode = props4.newValueMode;
21300
21163
  }
21301
21164
  updateInputValue("", props4.multiple !== true, true);
21302
- if (val === void 0 || val === null) {
21303
- return;
21304
- }
21165
+ if (val === void 0 || val === null) return;
21305
21166
  const fn = mode === "toggle" ? toggleOption : add;
21306
21167
  fn(val, mode === "add-unique");
21307
21168
  if (props4.multiple !== true) {
@@ -21314,9 +21175,7 @@ var QSelect_default = createComponent({
21314
21175
  } else {
21315
21176
  done(inputValue.value);
21316
21177
  }
21317
- if (props4.multiple !== true) {
21318
- return;
21319
- }
21178
+ if (props4.multiple !== true) return;
21320
21179
  }
21321
21180
  if (menu.value === true) {
21322
21181
  closeMenu();
@@ -21424,9 +21283,7 @@ var QSelect_default = createComponent({
21424
21283
  clearTimeout(inputValueTimer);
21425
21284
  inputValueTimer = null;
21426
21285
  }
21427
- if (e && e.target && e.target.qComposing === true) {
21428
- return;
21429
- }
21286
+ if (e && e.target && e.target.qComposing === true) return;
21430
21287
  setInputValue(e.target.value || "");
21431
21288
  userInputValue = true;
21432
21289
  defaultInputValue = inputValue.value;
@@ -21464,9 +21321,7 @@ var QSelect_default = createComponent({
21464
21321
  }
21465
21322
  }
21466
21323
  function filter(val, keepClosed, afterUpdateFn) {
21467
- if (props4.onFilter === void 0 || keepClosed !== true && state.focused.value !== true) {
21468
- return;
21469
- }
21324
+ if (props4.onFilter === void 0 || keepClosed !== true && state.focused.value !== true) return;
21470
21325
  if (state.innerLoading.value === true) {
21471
21326
  emit("filterAbort");
21472
21327
  } else {
@@ -21636,9 +21491,7 @@ var QSelect_default = createComponent({
21636
21491
  setVirtualScrollSize();
21637
21492
  }
21638
21493
  function closeMenu() {
21639
- if (dialog.value === true) {
21640
- return;
21641
- }
21494
+ if (dialog.value === true) return;
21642
21495
  optionIndex.value = -1;
21643
21496
  if (menu.value === true) {
21644
21497
  menu.value = false;
@@ -21656,9 +21509,7 @@ var QSelect_default = createComponent({
21656
21509
  }
21657
21510
  }
21658
21511
  function showPopup(e) {
21659
- if (state.editable.value !== true) {
21660
- return;
21661
- }
21512
+ if (state.editable.value !== true) return;
21662
21513
  if (hasDialog === true) {
21663
21514
  state.onControlFocusin(e);
21664
21515
  dialog.value = true;
@@ -22017,9 +21868,7 @@ var QSlideItem_default = createComponent({
22017
21868
  showing = dir === 2 ? "top" : "bottom";
22018
21869
  dist = evt.distance.y;
22019
21870
  }
22020
- if (pan.dir !== null && Math.abs(dir) !== Math.abs(pan.dir)) {
22021
- return;
22022
- }
21871
+ if (pan.dir !== null && Math.abs(dir) !== Math.abs(pan.dir)) return;
22023
21872
  if (pan.dir !== dir) {
22024
21873
  ["left", "right", "top", "bottom"].forEach((d) => {
22025
21874
  if (dirRefs[d]) {
@@ -23445,9 +23294,7 @@ function useTablePagination(vm2, innerPagination, computedPagination, isServerSi
23445
23294
  }));
23446
23295
  });
23447
23296
  watch42(pagesNumber, (lastPage2, oldLastPage) => {
23448
- if (lastPage2 === oldLastPage) {
23449
- return;
23450
- }
23297
+ if (lastPage2 === oldLastPage) return;
23451
23298
  const currentPage = computedPagination.value.page;
23452
23299
  if (lastPage2 && !currentPage) {
23453
23300
  setPagination({ page: 1 });
@@ -24088,9 +23935,7 @@ var QTable_default = createComponent({
24088
23935
  ])
24089
23936
  );
24090
23937
  }
24091
- if (child.length === 0) {
24092
- return;
24093
- }
23938
+ if (child.length === 0) return;
24094
23939
  return h121("div", { class: topClass }, child);
24095
23940
  }
24096
23941
  const headerSelectedValue = computed102(() => someRowsSelected.value === true ? null : allRowsSelected.value);
@@ -24187,13 +24032,9 @@ var QTable_default = createComponent({
24187
24032
  return $q.lang.rtl === true ? ico.reverse() : ico;
24188
24033
  });
24189
24034
  function getBottomDiv() {
24190
- if (props4.hideBottom === true) {
24191
- return;
24192
- }
24035
+ if (props4.hideBottom === true) return;
24193
24036
  if (nothingToDisplay.value === true) {
24194
- if (props4.hideNoData === true) {
24195
- return;
24196
- }
24037
+ if (props4.hideNoData === true) return;
24197
24038
  const message = props4.loading === true ? props4.loadingLabel || $q.lang.table.loading : props4.filter ? props4.noResultsLabel || $q.lang.table.noResults : props4.noDataLabel || $q.lang.table.noData;
24198
24039
  const noData = slots["no-data"];
24199
24040
  const children = noData !== void 0 ? [noData({ message, icon: $q.iconSet.table.warning, filter: props4.filter })] : [
@@ -24758,9 +24599,7 @@ var QTime_default = createComponent({
24758
24599
  };
24759
24600
  }
24760
24601
  function onPan(event) {
24761
- if (shouldAbortInteraction() === true) {
24762
- return;
24763
- }
24602
+ if (shouldAbortInteraction() === true) return;
24764
24603
  if (event.isFirst === true) {
24765
24604
  draggingClockRect = getClockRect();
24766
24605
  dragCache = updateClock(event.evt, draggingClockRect);
@@ -24984,9 +24823,7 @@ var QTime_default = createComponent({
24984
24823
  goToViewWhenHasModel("second");
24985
24824
  return;
24986
24825
  }
24987
- if (innerModel.value.hour === null || innerModel.value.minute === null || props4.withSeconds === true && innerModel.value.second === null) {
24988
- return;
24989
- }
24826
+ if (innerModel.value.hour === null || innerModel.value.minute === null || props4.withSeconds === true && innerModel.value.second === null) return;
24990
24827
  updateValue2();
24991
24828
  }
24992
24829
  function updateValue2(obj) {
@@ -25517,9 +25354,7 @@ var QTree_default = createComponent({
25517
25354
  }
25518
25355
  function setExpanded(key, state, node = getNodeByKey(key), m = meta.value[key]) {
25519
25356
  if (m.lazy && m.lazy !== "loaded") {
25520
- if (m.lazy === "loading") {
25521
- return;
25522
- }
25357
+ if (m.lazy === "loading") return;
25523
25358
  lazy.value[key] = "loading";
25524
25359
  if (Array.isArray(node[props4.childrenKey]) !== true) {
25525
25360
  node[props4.childrenKey] = [];
@@ -25969,9 +25804,7 @@ function getRenderer(getPlugin, expose) {
25969
25804
  });
25970
25805
  }
25971
25806
  function batchRemoveFiles(statusList, cb) {
25972
- if (props4.disable === true) {
25973
- return;
25974
- }
25807
+ if (props4.disable === true) return;
25975
25808
  const removed = {
25976
25809
  files: [],
25977
25810
  size: 0
@@ -26369,9 +26202,7 @@ function injectPlugin({ props: props4, emit, helpers }) {
26369
26202
  }
26370
26203
  }, false);
26371
26204
  xhr2.onreadystatechange = () => {
26372
- if (xhr2.readyState < 4) {
26373
- return;
26374
- }
26205
+ if (xhr2.readyState < 4) return;
26375
26206
  if (xhr2.status && xhr2.status < 400) {
26376
26207
  helpers.uploadedFiles.value = helpers.uploadedFiles.value.concat(files);
26377
26208
  files.forEach((f) => {
@@ -27216,9 +27047,7 @@ function morph(_options) {
27216
27047
  elToClone.style.animation = `${options.duration}ms ${options.easing} ${options.delay}ms ${animationDirection} ${options.fill} ${qAnimId}-to`;
27217
27048
  elTo.style.animation = `${options.duration}ms ${options.easing} ${options.delay}ms ${animationDirection} ${options.fill} ${qAnimId}`;
27218
27049
  const cleanup = (evt) => {
27219
- if (evt === Object(evt) && evt.animationName !== qAnimId) {
27220
- return;
27221
- }
27050
+ if (evt === Object(evt) && evt.animationName !== qAnimId) return;
27222
27051
  elTo.removeEventListener("animationend", cleanup);
27223
27052
  elTo.removeEventListener("animationcancel", cleanup);
27224
27053
  commonCleanup();
@@ -27317,9 +27146,7 @@ function changeClass(ctx, action) {
27317
27146
  }
27318
27147
  }
27319
27148
  function trigger2(group) {
27320
- if (group.animating === true || group.queue.length < 2) {
27321
- return;
27322
- }
27149
+ if (group.animating === true || group.queue.length < 2) return;
27323
27150
  const [from, to] = group.queue;
27324
27151
  group.animating = true;
27325
27152
  from.animating = true;
@@ -27336,9 +27163,7 @@ function trigger2(group) {
27336
27163
  ...to.opts,
27337
27164
  onEnd(dir, aborted) {
27338
27165
  to.opts.onEnd !== void 0 && to.opts.onEnd(dir, aborted);
27339
- if (aborted === true) {
27340
- return;
27341
- }
27166
+ if (aborted === true) return;
27342
27167
  from.animating = false;
27343
27168
  to.animating = false;
27344
27169
  group.animating = false;
@@ -27614,9 +27439,7 @@ var TouchHold_default = createDirective(
27614
27439
  name: "touch-hold",
27615
27440
  beforeMount(el, binding) {
27616
27441
  const { modifiers } = binding;
27617
- if (modifiers.mouse !== true && client.has.touch !== true) {
27618
- return;
27619
- }
27442
+ if (modifiers.mouse !== true && client.has.touch !== true) return;
27620
27443
  const ctx = {
27621
27444
  handler: binding.value,
27622
27445
  noop,
@@ -27760,9 +27583,7 @@ var TouchRepeat_default = createDirective(
27760
27583
  }
27761
27584
  return acc;
27762
27585
  }, []);
27763
- if (modifiers.mouse !== true && client.has.touch !== true && keyboard.length === 0) {
27764
- return;
27765
- }
27586
+ if (modifiers.mouse !== true && client.has.touch !== true && keyboard.length === 0) return;
27766
27587
  const durations = typeof arg === "string" && arg.length !== 0 ? arg.split(":").map((val) => parseInt(val, 10)) : [0, 600, 300];
27767
27588
  const durationsLast = durations.length - 1;
27768
27589
  const ctx = {
@@ -27783,9 +27604,7 @@ var TouchRepeat_default = createDirective(
27783
27604
  if (durations[0] === 0 || ctx.event !== void 0) {
27784
27605
  stopAndPrevent(evt);
27785
27606
  el.focus();
27786
- if (ctx.event !== void 0) {
27787
- return;
27788
- }
27607
+ if (ctx.event !== void 0) return;
27789
27608
  }
27790
27609
  addEvt(ctx, "temp", [
27791
27610
  [document, "keyup", "end", "notPassiveCapture"],
@@ -27836,9 +27655,7 @@ var TouchRepeat_default = createDirective(
27836
27655
  };
27837
27656
  const fn = () => {
27838
27657
  ctx.timer = void 0;
27839
- if (ctx.event === void 0) {
27840
- return;
27841
- }
27658
+ if (ctx.event === void 0) return;
27842
27659
  if (ctx.event.repeatCount === 0) {
27843
27660
  ctx.event.evt = evt;
27844
27661
  if (keyboardEvent === true) {
@@ -27872,9 +27689,7 @@ var TouchRepeat_default = createDirective(
27872
27689
  }
27873
27690
  },
27874
27691
  end(evt) {
27875
- if (ctx.event === void 0) {
27876
- return;
27877
- }
27692
+ if (ctx.event === void 0) return;
27878
27693
  ctx.styleCleanup !== void 0 && ctx.styleCleanup(true);
27879
27694
  evt !== void 0 && ctx.event.repeatCount > 0 && stopAndPrevent(evt);
27880
27695
  cleanEvt(ctx, "temp");
@@ -30014,7 +29829,7 @@ function runSequentialPromises(sequentialPromises, { threadsNumber = 1, abortOnF
30014
29829
 
30015
29830
  // src/index.dev.js
30016
29831
  var Quasar = {
30017
- version: "2.17.4",
29832
+ version: "2.17.6",
30018
29833
  install: install_quasar_default,
30019
29834
  // TODO: remove in Qv3 (should only be used through the plugin)
30020
29835
  // We provide a deprecated fallback here