quasar 2.7.0 → 2.7.1

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 (115) hide show
  1. package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
  2. package/dist/icon-set/eva-icons.umd.prod.js +1 -1
  3. package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
  4. package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
  5. package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +1 -1
  6. package/dist/icon-set/fontawesome-v6.umd.prod.js +1 -1
  7. package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
  8. package/dist/icon-set/line-awesome.umd.prod.js +1 -1
  9. package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
  10. package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
  11. package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
  12. package/dist/icon-set/material-icons.umd.prod.js +1 -1
  13. package/dist/icon-set/material-symbols-outlined.umd.prod.js +1 -1
  14. package/dist/icon-set/material-symbols-rounded.umd.prod.js +1 -1
  15. package/dist/icon-set/material-symbols-sharp.umd.prod.js +1 -1
  16. package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
  17. package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
  18. package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
  19. package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
  20. package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
  21. package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
  22. package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
  23. package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +1 -1
  24. package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
  25. package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
  26. package/dist/icon-set/svg-ionicons-v6.umd.prod.js +1 -1
  27. package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
  28. package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
  29. package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
  30. package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
  31. package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
  32. package/dist/icon-set/svg-material-symbols-outlined.umd.prod.js +1 -1
  33. package/dist/icon-set/svg-material-symbols-rounded.umd.prod.js +1 -1
  34. package/dist/icon-set/svg-material-symbols-sharp.umd.prod.js +1 -1
  35. package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
  36. package/dist/icon-set/svg-themify.umd.prod.js +1 -1
  37. package/dist/icon-set/themify.umd.prod.js +1 -1
  38. package/dist/lang/ar-TN.umd.prod.js +1 -1
  39. package/dist/lang/ar.umd.prod.js +1 -1
  40. package/dist/lang/az-Latn.umd.prod.js +1 -1
  41. package/dist/lang/bg.umd.prod.js +1 -1
  42. package/dist/lang/bn.umd.prod.js +1 -1
  43. package/dist/lang/ca.umd.prod.js +1 -1
  44. package/dist/lang/cs.umd.prod.js +1 -1
  45. package/dist/lang/da.umd.prod.js +1 -1
  46. package/dist/lang/de.umd.prod.js +1 -1
  47. package/dist/lang/el.umd.prod.js +1 -1
  48. package/dist/lang/en-GB.umd.prod.js +1 -1
  49. package/dist/lang/en-US.umd.prod.js +1 -1
  50. package/dist/lang/eo.umd.prod.js +1 -1
  51. package/dist/lang/es.umd.prod.js +1 -1
  52. package/dist/lang/et.umd.prod.js +1 -1
  53. package/dist/lang/eu.umd.prod.js +1 -1
  54. package/dist/lang/fa-IR.umd.prod.js +1 -1
  55. package/dist/lang/fa.umd.prod.js +1 -1
  56. package/dist/lang/fi.umd.prod.js +1 -1
  57. package/dist/lang/fr.umd.prod.js +1 -1
  58. package/dist/lang/gn.umd.prod.js +1 -1
  59. package/dist/lang/he.umd.prod.js +1 -1
  60. package/dist/lang/hr.umd.prod.js +1 -1
  61. package/dist/lang/hu.umd.prod.js +1 -1
  62. package/dist/lang/id.umd.prod.js +1 -1
  63. package/dist/lang/is.umd.prod.js +1 -1
  64. package/dist/lang/it.umd.prod.js +1 -1
  65. package/dist/lang/ja.umd.prod.js +1 -1
  66. package/dist/lang/km.umd.prod.js +1 -1
  67. package/dist/lang/ko-KR.umd.prod.js +1 -1
  68. package/dist/lang/kur-CKB.umd.prod.js +1 -1
  69. package/dist/lang/kz.umd.prod.js +1 -1
  70. package/dist/lang/lt.umd.prod.js +1 -1
  71. package/dist/lang/lu.umd.prod.js +1 -1
  72. package/dist/lang/lv.umd.prod.js +1 -1
  73. package/dist/lang/ml.umd.prod.js +1 -1
  74. package/dist/lang/mm.umd.prod.js +1 -1
  75. package/dist/lang/ms.umd.prod.js +1 -1
  76. package/dist/lang/my.umd.prod.js +1 -1
  77. package/dist/lang/nb-NO.umd.prod.js +1 -1
  78. package/dist/lang/nl.umd.prod.js +1 -1
  79. package/dist/lang/pl.umd.prod.js +1 -1
  80. package/dist/lang/pt-BR.umd.prod.js +1 -1
  81. package/dist/lang/pt.umd.prod.js +1 -1
  82. package/dist/lang/ro.umd.prod.js +1 -1
  83. package/dist/lang/ru.umd.prod.js +1 -1
  84. package/dist/lang/sk.umd.prod.js +1 -1
  85. package/dist/lang/sl.umd.prod.js +1 -1
  86. package/dist/lang/sr-CYR.umd.prod.js +1 -1
  87. package/dist/lang/sr.umd.prod.js +1 -1
  88. package/dist/lang/sv.umd.prod.js +1 -1
  89. package/dist/lang/ta.umd.prod.js +1 -1
  90. package/dist/lang/th.umd.prod.js +1 -1
  91. package/dist/lang/tr.umd.prod.js +1 -1
  92. package/dist/lang/ug.umd.prod.js +1 -1
  93. package/dist/lang/uk.umd.prod.js +1 -1
  94. package/dist/lang/vi.umd.prod.js +1 -1
  95. package/dist/lang/zh-CN.umd.prod.js +1 -1
  96. package/dist/lang/zh-TW.umd.prod.js +1 -1
  97. package/dist/quasar.cjs.prod.js +2 -2
  98. package/dist/quasar.css +0 -5
  99. package/dist/quasar.esm.prod.js +2 -2
  100. package/dist/quasar.prod.css +1 -1
  101. package/dist/quasar.rtl.css +0 -6
  102. package/dist/quasar.rtl.prod.css +1 -1
  103. package/dist/quasar.sass +1 -5
  104. package/dist/quasar.umd.js +49 -31
  105. package/dist/quasar.umd.prod.js +2 -2
  106. package/dist/web-types/web-types.json +1 -1
  107. package/package.json +6 -5
  108. package/src/components/badge/QBadge.js +2 -2
  109. package/src/components/checkbox/use-checkbox.js +8 -7
  110. package/src/components/input/QInput.js +1 -1
  111. package/src/components/radio/QRadio.js +2 -2
  112. package/src/components/select/QSelect.js +1 -1
  113. package/src/components/tabs/QTabs.sass +0 -6
  114. package/src/composables/private/use-key-composition.js +15 -8
  115. package/src/utils/private/global-dialog.js +22 -10
package/dist/quasar.sass CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Quasar Framework v2.7.0
2
+ * Quasar Framework v2.7.1
3
3
  * (c) 2015-present Razvan Stoenescu
4
4
  * Released under the MIT License.
5
5
  */
@@ -4373,10 +4373,6 @@ body.desktop .q-table > tbody > tr:not(.q-tr--no-hover):hover > td:not(.q-td--no
4373
4373
  min-height: 36px
4374
4374
  &--full
4375
4375
  min-height: 52px
4376
- @media (min-width: $breakpoint-lg-min)
4377
- .q-header, .q-footer
4378
- .q-tab__content
4379
- min-width: 128px
4380
4376
  .q-time
4381
4377
  box-shadow: $shadow-2
4382
4378
  border-radius: $generic-border-radius
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Quasar Framework v2.7.0
2
+ * Quasar Framework v2.7.1
3
3
  * (c) 2015-present Razvan Stoenescu
4
4
  * Released under the MIT License.
5
5
  */
@@ -1603,7 +1603,7 @@
1603
1603
  }
1604
1604
 
1605
1605
  var installQuasar = function (parentApp, opts = {}) {
1606
- const $q = { version: '2.7.0' };
1606
+ const $q = { version: '2.7.1' };
1607
1607
 
1608
1608
  if (globalConfigIsFrozen === false) {
1609
1609
  if (opts.config !== void 0) {
@@ -2364,7 +2364,7 @@
2364
2364
  style: style.value,
2365
2365
  role: 'alert',
2366
2366
  'aria-label': props.label
2367
- }, props.label !== void 0 ? props.label : hSlot(slots.default))
2367
+ }, hMergeSlot(slots.default, props.label !== void 0 ? [ props.label ] : []))
2368
2368
  }
2369
2369
  });
2370
2370
 
@@ -7272,22 +7272,23 @@
7272
7272
  props.val !== void 0 && Array.isArray(props.modelValue)
7273
7273
  );
7274
7274
 
7275
- const index = vue.computed(() => (
7276
- modelIsArray.value === true
7277
- ? props.modelValue.indexOf(props.val)
7275
+ const index = vue.computed(() => {
7276
+ const val = vue.toRaw(props.val);
7277
+ return modelIsArray.value === true
7278
+ ? props.modelValue.findIndex(opt => vue.toRaw(opt) === val)
7278
7279
  : -1
7279
- ));
7280
+ });
7280
7281
 
7281
7282
  const isTrue = vue.computed(() => (
7282
7283
  modelIsArray.value === true
7283
7284
  ? index.value > -1
7284
- : props.modelValue === props.trueValue
7285
+ : vue.toRaw(props.modelValue) === vue.toRaw(props.trueValue)
7285
7286
  ));
7286
7287
 
7287
7288
  const isFalse = vue.computed(() => (
7288
7289
  modelIsArray.value === true
7289
7290
  ? index.value === -1
7290
- : props.modelValue === props.falseValue
7291
+ : vue.toRaw(props.modelValue) === vue.toRaw(props.falseValue)
7291
7292
  ));
7292
7293
 
7293
7294
  const isIndeterminate = vue.computed(() =>
@@ -23236,26 +23237,31 @@
23236
23237
  const isJapanese = /[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/;
23237
23238
  const isChinese = /[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u;
23238
23239
  const isKorean = /[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/;
23240
+ const isPlainText = /[a-z0-9_ -]$/i;
23239
23241
 
23240
23242
  function useKeyComposition (onInput) {
23241
23243
  return function onComposition (e) {
23242
23244
  if (e.type === 'compositionend' || e.type === 'change') {
23243
- if (e.target.composing !== true) { return }
23244
- e.target.composing = false;
23245
+ if (e.target.qComposing !== true) { return }
23246
+ e.target.qComposing = false;
23245
23247
  onInput(e);
23246
23248
  }
23247
23249
  else if (e.type === 'compositionupdate') {
23248
23250
  if (
23249
- typeof e.data === 'string'
23250
- && isJapanese.test(e.data) === false
23251
- && isChinese.test(e.data) === false
23252
- && isKorean.test(e.data) === false
23251
+ e.target.qComposing !== true
23252
+ && typeof e.data === 'string'
23253
23253
  ) {
23254
- e.target.composing = false;
23254
+ const isComposing = client.is.firefox === true
23255
+ ? isPlainText.test(e.data) === false
23256
+ : isJapanese.test(e.data) === true && isChinese.test(e.data) === true && isKorean.test(e.data) === true;
23257
+
23258
+ if (isComposing === true) {
23259
+ e.target.qComposing = true;
23260
+ }
23255
23261
  }
23256
23262
  }
23257
23263
  else {
23258
- e.target.composing = true;
23264
+ e.target.qComposing = true;
23259
23265
  }
23260
23266
  }
23261
23267
  }
@@ -23458,7 +23464,7 @@
23458
23464
  }
23459
23465
 
23460
23466
  function onInput (e) {
23461
- if (!e || !e.target || e.target.composing === true) {
23467
+ if (!e || !e.target || e.target.qComposing === true) {
23462
23468
  return
23463
23469
  }
23464
23470
 
@@ -24671,7 +24677,7 @@
24671
24677
  const rootRef = vue.ref(null);
24672
24678
  const { refocusTargetEl, refocusTarget } = useRefocusTarget(props, rootRef);
24673
24679
 
24674
- const isTrue = vue.computed(() => props.modelValue === props.val);
24680
+ const isTrue = vue.computed(() => vue.toRaw(props.modelValue) === vue.toRaw(props.val));
24675
24681
 
24676
24682
  const classes = vue.computed(() =>
24677
24683
  'q-radio cursor-pointer no-outline row inline no-wrap items-center'
@@ -29223,7 +29229,7 @@
29223
29229
  function onInput (e) {
29224
29230
  clearTimeout(inputTimer);
29225
29231
 
29226
- if (e && e.target && e.target.composing === true) {
29232
+ if (e && e.target && e.target.qComposing === true) {
29227
29233
  return
29228
29234
  }
29229
29235
 
@@ -38083,19 +38089,31 @@
38083
38089
  const applyState = cmd => {
38084
38090
  if (dialogRef.value !== null && dialogRef.value[ cmd ] !== void 0) {
38085
38091
  dialogRef.value[ cmd ]();
38092
+ return
38086
38093
  }
38087
- else if (
38094
+
38095
+ const target = vm.$.subTree;
38096
+
38097
+ if (target && target.component) {
38088
38098
  // account for "script setup" way of declaring component
38089
- vm.$.subTree
38090
- && vm.$.subTree.component
38091
- && vm.$.subTree.component.proxy
38092
- && vm.$.subTree.component.proxy[ cmd ]
38093
- ) {
38094
- vm.$.subTree.component.proxy[ cmd ]();
38095
- }
38096
- else {
38097
- console.error('[Quasar] Incorrectly defined Dialog component');
38099
+ if (target.component.proxy && target.component.proxy[ cmd ]) {
38100
+ target.component.proxy[ cmd ]();
38101
+ return
38102
+ }
38103
+
38104
+ // account for "script setup" + async component way of declaring component
38105
+ if (
38106
+ target.component.subTree &&
38107
+ target.component.subTree.component &&
38108
+ target.component.subTree.component.proxy &&
38109
+ target.component.subTree.component.proxy[ cmd ]
38110
+ ) {
38111
+ target.component.subTree.component.proxy[ cmd ]();
38112
+ return
38113
+ }
38098
38114
  }
38115
+
38116
+ console.error('[Quasar] Incorrectly defined Dialog component');
38099
38117
  };
38100
38118
 
38101
38119
  const
@@ -39698,7 +39716,7 @@
39698
39716
  });
39699
39717
 
39700
39718
  var index_umd = {
39701
- version: '2.7.0',
39719
+ version: '2.7.1',
39702
39720
  install (app, opts) {
39703
39721
  installQuasar(app, {
39704
39722
  components,