quasar 1.22.1 → 1.22.2

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 (131) hide show
  1. package/dist/icon-set/bootstrap-icons.umd.min.js +1 -1
  2. package/dist/icon-set/eva-icons.umd.min.js +1 -1
  3. package/dist/icon-set/fontawesome-v5-pro.umd.min.js +1 -1
  4. package/dist/icon-set/fontawesome-v5.umd.min.js +1 -1
  5. package/dist/icon-set/fontawesome-v6-pro.umd.min.js +1 -1
  6. package/dist/icon-set/fontawesome-v6.umd.min.js +1 -1
  7. package/dist/icon-set/ionicons-v4.umd.min.js +1 -1
  8. package/dist/icon-set/line-awesome.umd.min.js +1 -1
  9. package/dist/icon-set/material-icons-outlined.umd.min.js +1 -1
  10. package/dist/icon-set/material-icons-round.umd.min.js +1 -1
  11. package/dist/icon-set/material-icons-sharp.umd.min.js +1 -1
  12. package/dist/icon-set/material-icons.umd.min.js +1 -1
  13. package/dist/icon-set/material-symbols-outlined.umd.min.js +1 -1
  14. package/dist/icon-set/material-symbols-rounded.umd.min.js +1 -1
  15. package/dist/icon-set/material-symbols-sharp.umd.min.js +1 -1
  16. package/dist/icon-set/mdi-v3.umd.min.js +1 -1
  17. package/dist/icon-set/mdi-v4.umd.min.js +1 -1
  18. package/dist/icon-set/mdi-v5.umd.min.js +1 -1
  19. package/dist/icon-set/mdi-v6.umd.min.js +1 -1
  20. package/dist/icon-set/mdi-v7.umd.min.js +6 -0
  21. package/dist/icon-set/svg-bootstrap-icons.umd.min.js +1 -1
  22. package/dist/icon-set/svg-eva-icons.umd.min.js +1 -1
  23. package/dist/icon-set/svg-fontawesome-v5.umd.min.js +1 -1
  24. package/dist/icon-set/svg-fontawesome-v6.umd.min.js +1 -1
  25. package/dist/icon-set/svg-ionicons-v4.umd.min.js +1 -1
  26. package/dist/icon-set/svg-ionicons-v5.umd.min.js +1 -1
  27. package/dist/icon-set/svg-ionicons-v6.umd.min.js +1 -1
  28. package/dist/icon-set/svg-line-awesome.umd.min.js +1 -1
  29. package/dist/icon-set/svg-material-icons-outlined.umd.min.js +1 -1
  30. package/dist/icon-set/svg-material-icons-round.umd.min.js +1 -1
  31. package/dist/icon-set/svg-material-icons-sharp.umd.min.js +1 -1
  32. package/dist/icon-set/svg-material-icons.umd.min.js +1 -1
  33. package/dist/icon-set/svg-material-symbols-outlined.umd.min.js +1 -1
  34. package/dist/icon-set/svg-material-symbols-rounded.umd.min.js +1 -1
  35. package/dist/icon-set/svg-material-symbols-sharp.umd.min.js +1 -1
  36. package/dist/icon-set/svg-mdi-v4.umd.min.js +1 -1
  37. package/dist/icon-set/svg-mdi-v5.umd.min.js +1 -1
  38. package/dist/icon-set/svg-mdi-v6.umd.min.js +1 -1
  39. package/dist/icon-set/svg-mdi-v7.umd.min.js +6 -0
  40. package/dist/icon-set/svg-themify.umd.min.js +1 -1
  41. package/dist/icon-set/themify.umd.min.js +1 -1
  42. package/dist/lang/ar.umd.min.js +1 -1
  43. package/dist/lang/az-latn.umd.min.js +1 -1
  44. package/dist/lang/bg.umd.min.js +1 -1
  45. package/dist/lang/ca.umd.min.js +1 -1
  46. package/dist/lang/cs.umd.min.js +1 -1
  47. package/dist/lang/da.umd.min.js +1 -1
  48. package/dist/lang/de.umd.min.js +1 -1
  49. package/dist/lang/el.umd.min.js +1 -1
  50. package/dist/lang/en-gb.umd.min.js +1 -1
  51. package/dist/lang/en-us.umd.min.js +1 -1
  52. package/dist/lang/eo.umd.min.js +1 -1
  53. package/dist/lang/es.umd.min.js +1 -1
  54. package/dist/lang/et.umd.min.js +1 -1
  55. package/dist/lang/eu.umd.min.js +1 -1
  56. package/dist/lang/fa-ir.umd.min.js +1 -1
  57. package/dist/lang/fa.umd.min.js +1 -1
  58. package/dist/lang/fi.umd.min.js +1 -1
  59. package/dist/lang/fr.umd.min.js +1 -1
  60. package/dist/lang/gn.umd.min.js +1 -1
  61. package/dist/lang/he.umd.min.js +1 -1
  62. package/dist/lang/hr.umd.min.js +1 -1
  63. package/dist/lang/hu.umd.min.js +1 -1
  64. package/dist/lang/id.umd.min.js +1 -1
  65. package/dist/lang/is.umd.min.js +1 -1
  66. package/dist/lang/it.umd.min.js +1 -1
  67. package/dist/lang/ja.umd.min.js +1 -1
  68. package/dist/lang/km.umd.min.js +1 -1
  69. package/dist/lang/ko-kr.umd.min.js +1 -1
  70. package/dist/lang/kur-ckb.umd.min.js +1 -1
  71. package/dist/lang/kz.umd.min.js +1 -1
  72. package/dist/lang/lu.umd.min.js +1 -1
  73. package/dist/lang/lv.umd.min.js +1 -1
  74. package/dist/lang/ml.umd.min.js +1 -1
  75. package/dist/lang/mm.umd.min.js +1 -1
  76. package/dist/lang/ms.umd.min.js +1 -1
  77. package/dist/lang/my.umd.min.js +1 -1
  78. package/dist/lang/nb-no.umd.min.js +1 -1
  79. package/dist/lang/nl.umd.min.js +1 -1
  80. package/dist/lang/pl.umd.min.js +1 -1
  81. package/dist/lang/pt-br.umd.min.js +1 -1
  82. package/dist/lang/pt.umd.min.js +1 -1
  83. package/dist/lang/ro.umd.min.js +1 -1
  84. package/dist/lang/ru.umd.min.js +1 -1
  85. package/dist/lang/sk.umd.min.js +1 -1
  86. package/dist/lang/sl.umd.min.js +1 -1
  87. package/dist/lang/sm.umd.min.js +1 -1
  88. package/dist/lang/sr.umd.min.js +1 -1
  89. package/dist/lang/sv.umd.min.js +1 -1
  90. package/dist/lang/ta.umd.min.js +1 -1
  91. package/dist/lang/th.umd.min.js +1 -1
  92. package/dist/lang/tr.umd.min.js +1 -1
  93. package/dist/lang/ug.umd.min.js +1 -1
  94. package/dist/lang/uk.umd.min.js +1 -1
  95. package/dist/lang/uz-Cyrl.umd.min.js +1 -1
  96. package/dist/lang/uz-Latn.umd.min.js +1 -1
  97. package/dist/lang/vi.umd.min.js +1 -1
  98. package/dist/lang/zh-hans.umd.min.js +1 -1
  99. package/dist/lang/zh-hant.umd.min.js +1 -1
  100. package/dist/quasar.addon.css +1 -1
  101. package/dist/quasar.addon.rtl.css +1 -1
  102. package/dist/quasar.common.js +2 -2
  103. package/dist/quasar.css +2 -2
  104. package/dist/quasar.esm.js +2 -2
  105. package/dist/quasar.ie.polyfills.js +1 -1
  106. package/dist/quasar.ie.polyfills.umd.min.js +1 -1
  107. package/dist/quasar.min.css +1 -1
  108. package/dist/quasar.rtl.css +6 -3
  109. package/dist/quasar.rtl.min.css +1 -1
  110. package/dist/quasar.sass +3 -2
  111. package/dist/quasar.styl +3 -2
  112. package/dist/quasar.umd.js +49 -38
  113. package/dist/quasar.umd.min.js +2 -2
  114. package/dist/quasar.umd.modern.js +48 -37
  115. package/dist/quasar.umd.modern.min.js +2 -2
  116. package/dist/web-types/web-types.json +1 -1
  117. package/icon-set/mdi-v7.js +141 -0
  118. package/icon-set/svg-mdi-v7.js +225 -0
  119. package/package.json +2 -2
  120. package/src/components/btn-dropdown/QBtnDropdown.js +0 -1
  121. package/src/components/date/QDate.js +3 -1
  122. package/src/components/dialog/QDialog.js +9 -6
  123. package/src/components/expansion-item/QExpansionItem.js +0 -1
  124. package/src/components/fab/QFab.js +3 -6
  125. package/src/components/fab/QFab.sass +2 -1
  126. package/src/components/fab/QFab.styl +2 -1
  127. package/src/components/input/QInput.js +6 -1
  128. package/src/components/item/QList.js +0 -3
  129. package/src/components/menu/QMenu.js +6 -3
  130. package/src/components/select/QSelect.js +12 -8
  131. package/src/mixins/mask.js +2 -0
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Quasar Framework v1.22.1
2
+ * Quasar Framework v1.22.2
3
3
  * (c) 2015-present Razvan Stoenescu
4
4
  * Released under the MIT License.
5
5
  */
@@ -12,7 +12,7 @@
12
12
 
13
13
  Vue = Vue && Object.prototype.hasOwnProperty.call(Vue, 'default') ? Vue['default'] : Vue;
14
14
 
15
- var version = "1.22.1";
15
+ var version = "1.22.2";
16
16
 
17
17
  /* eslint-disable no-useless-escape */
18
18
 
@@ -5520,10 +5520,10 @@
5520
5520
  ? document.activeElement
5521
5521
  : void 0;
5522
5522
 
5523
- EscapeKey.register(this, () => {
5523
+ EscapeKey.register(this, escEvt => {
5524
5524
  if (this.persistent !== true) {
5525
5525
  this.$emit('escape-key');
5526
- this.hide();
5526
+ this.hide(escEvt);
5527
5527
  }
5528
5528
  });
5529
5529
 
@@ -5591,7 +5591,10 @@
5591
5591
  evt.qClickOutside !== true
5592
5592
  )
5593
5593
  ) {
5594
- this.__refocusTarget.focus();
5594
+ ((evt && evt.type.indexOf('key') === 0
5595
+ ? this.__refocusTarget.closest('[tabindex]:not([tabindex^="-"])')
5596
+ : void 0
5597
+ ) || this.__refocusTarget).focus();
5595
5598
  this.__refocusTarget = void 0;
5596
5599
  }
5597
5600
 
@@ -5870,7 +5873,6 @@
5870
5873
  'aria-expanded': this.showing === true ? 'true' : 'false',
5871
5874
  'aria-haspopup': 'true',
5872
5875
  'aria-controls': this.targetUid,
5873
- 'aria-owns': this.targetUid,
5874
5876
  'aria-label': this.toggleAriaLabel || this.$q.lang.label[ this.showing === true ? 'collapse' : 'expand' ](this.label)
5875
5877
  };
5876
5878
 
@@ -13171,7 +13173,9 @@
13171
13173
  },
13172
13174
 
13173
13175
  view () {
13174
- this.$refs.blurTarget !== void 0 && this.$refs.blurTarget.focus();
13176
+ if (this.$refs.blurTarget !== void 0 && this.$el.contains(document.activeElement) === true) {
13177
+ this.$refs.blurTarget.focus();
13178
+ }
13175
13179
  },
13176
13180
 
13177
13181
  'viewModel.year' (year) {
@@ -14918,9 +14922,9 @@
14918
14922
  });
14919
14923
  },
14920
14924
 
14921
- shake (refocusTarget) {
14922
- if (refocusTarget && typeof refocusTarget.focus === 'function') {
14923
- refocusTarget.focus({ preventScroll: true });
14925
+ shake (focusTarget) {
14926
+ if (focusTarget && typeof focusTarget.focus === 'function') {
14927
+ focusTarget.focus({ preventScroll: true });
14924
14928
  }
14925
14929
  else {
14926
14930
  this.focus();
@@ -14957,14 +14961,14 @@
14957
14961
  this.$el.dispatchEvent(create('popup-show', { bubbles: true }));
14958
14962
  this.__updateMaximized(this.maximized);
14959
14963
 
14960
- EscapeKey.register(this, () => {
14964
+ EscapeKey.register(this, escEvt => {
14961
14965
  if (this.seamless !== true) {
14962
14966
  if (this.persistent === true || this.noEscDismiss === true) {
14963
14967
  this.maximized !== true && this.noShake !== true && this.shake();
14964
14968
  }
14965
14969
  else {
14966
14970
  this.$emit('escape-key');
14967
- this.hide();
14971
+ this.hide(escEvt);
14968
14972
  }
14969
14973
  }
14970
14974
  });
@@ -15023,7 +15027,10 @@
15023
15027
 
15024
15028
  // check null for IE
15025
15029
  if (this.__refocusTarget !== void 0 && this.__refocusTarget !== null) {
15026
- this.__refocusTarget.focus(evt);
15030
+ ((evt && evt.type.indexOf('key') === 0
15031
+ ? this.__refocusTarget.closest('[tabindex]:not([tabindex^="-"])')
15032
+ : void 0
15033
+ ) || this.__refocusTarget).focus();
15027
15034
  this.__refocusTarget = void 0;
15028
15035
  }
15029
15036
 
@@ -16087,8 +16094,6 @@
16087
16094
  }
16088
16095
  });
16089
16096
 
16090
- const attrs$4 = { role: 'list' };
16091
-
16092
16097
  var QList = Vue.extend({
16093
16098
  name: 'QList',
16094
16099
 
@@ -16120,7 +16125,6 @@
16120
16125
  render (h) {
16121
16126
  return h(this.tag, {
16122
16127
  class: this.classes,
16123
- attrs: attrs$4,
16124
16128
  on: { ...this.qListeners }
16125
16129
  }, slot(this, 'default'))
16126
16130
  }
@@ -17945,7 +17949,6 @@
17945
17949
  return {
17946
17950
  role: 'button',
17947
17951
  'aria-expanded': this.showing === true ? 'true' : 'false',
17948
- 'aria-owns': this.targetUid,
17949
17952
  'aria-controls': this.targetUid,
17950
17953
  'aria-label': toggleAriaLabel
17951
17954
  }
@@ -18294,13 +18297,11 @@
18294
18297
 
18295
18298
  actionsAttrs () {
18296
18299
  const attrs = {
18297
- id: this.targetUid
18300
+ id: this.targetUid,
18301
+ role: 'menu'
18298
18302
  };
18299
18303
 
18300
- if (this.showing === true) {
18301
- attrs.role = 'menu';
18302
- }
18303
- else {
18304
+ if (this.showing !== true) {
18304
18305
  attrs['aria-hidden'] = 'true';
18305
18306
  }
18306
18307
 
@@ -18316,7 +18317,6 @@
18316
18317
  'aria-expanded': this.showing === true ? 'true' : 'false',
18317
18318
  'aria-haspopup': 'true',
18318
18319
  'aria-controls': this.targetUid,
18319
- 'aria-owns': this.targetUid,
18320
18320
  ...this.qAttrs
18321
18321
  }
18322
18322
  },
@@ -21490,6 +21490,8 @@
21490
21490
  },
21491
21491
 
21492
21492
  __onMaskedKeydown (e) {
21493
+ this.qListeners.keydown !== void 0 && this.$emit('keydown', e);
21494
+
21493
21495
  if (shouldIgnoreKey(e) === true) {
21494
21496
  return
21495
21497
  }
@@ -21771,7 +21773,7 @@
21771
21773
  }
21772
21774
 
21773
21775
  if (this.autogrow === true) {
21774
- on.animationend = this.__adjustHeight;
21776
+ on.animationend = this.__onAnimationend;
21775
21777
  }
21776
21778
 
21777
21779
  return on
@@ -21868,6 +21870,11 @@
21868
21870
  this.autogrow === true && this.__adjustHeight();
21869
21871
  },
21870
21872
 
21873
+ __onAnimationend (e) {
21874
+ this.qListeners.animationend !== void 0 && this.$emit('animationend', e);
21875
+ this.__adjustHeight();
21876
+ },
21877
+
21871
21878
  __emitValue (val, stopWatcher) {
21872
21879
  this.emitValueFn = () => {
21873
21880
  if (
@@ -27297,6 +27304,12 @@
27297
27304
  .join(', ')
27298
27305
  },
27299
27306
 
27307
+ ariaCurrentValue () {
27308
+ return this.displayValue !== void 0
27309
+ ? this.displayValue
27310
+ : this.selectedString
27311
+ },
27312
+
27300
27313
  sanitizeFn () {
27301
27314
  return this.optionsSanitize === true
27302
27315
  ? () => true
@@ -27475,7 +27488,6 @@
27475
27488
  'aria-readonly': this.readonly === true ? 'true' : 'false',
27476
27489
  'aria-autocomplete': this.useInput === true ? 'list' : 'none',
27477
27490
  'aria-expanded': this.menu === true ? 'true' : 'false',
27478
- 'aria-owns': `${this.targetUid}_lb`,
27479
27491
  'aria-controls': `${this.targetUid}_lb`
27480
27492
  };
27481
27493
 
@@ -27487,13 +27499,11 @@
27487
27499
  },
27488
27500
 
27489
27501
  listboxAttrs () {
27490
- const attrs = {
27502
+ return {
27491
27503
  id: `${this.targetUid}_lb`,
27492
27504
  role: 'listbox',
27493
27505
  'aria-multiselectable': this.multiple === true ? 'true' : 'false'
27494
- };
27495
-
27496
- return attrs
27506
+ }
27497
27507
  }
27498
27508
  },
27499
27509
 
@@ -27856,7 +27866,9 @@
27856
27866
  this.useInput !== true &&
27857
27867
  e.key !== void 0 &&
27858
27868
  e.key.length === 1 && // printable char
27859
- e.altKey === e.ctrlKey && // not kbd shortcut
27869
+ e.altKey === false && // not kbd shortcut
27870
+ e.ctrlKey === false && // not kbd shortcut
27871
+ e.metaKey === false && // not kbd shortcut, especially on macOS with Command key
27860
27872
  (e.keyCode !== 32 || this.searchBuffer.length > 0) // space in middle of search
27861
27873
  ) {
27862
27874
  this.menu !== true && this.showPopup(e);
@@ -28014,9 +28026,7 @@
28014
28026
  return [
28015
28027
  h('span', {
28016
28028
  domProps: {
28017
- [this.displayAsText ? 'textContent' : 'innerHTML']: this.displayValue !== void 0
28018
- ? this.displayValue
28019
- : this.selectedString
28029
+ [this.displayAsText ? 'textContent' : 'innerHTML']: this.ariaCurrentValue
28020
28030
  }
28021
28031
  })
28022
28032
  ]
@@ -28057,6 +28067,7 @@
28057
28067
  h('input', {
28058
28068
  key: 'autoinp',
28059
28069
  staticClass: 'q-select__autocomplete-input',
28070
+ domProps: { value: this.ariaCurrentValue },
28060
28071
  attrs: { autocomplete: this.autocomplete, tabindex: -1 },
28061
28072
  on: cache(this, 'autoinp', {
28062
28073
  keyup: this.__onTargetAutocomplete
@@ -31650,7 +31661,7 @@
31650
31661
  }
31651
31662
  });
31652
31663
 
31653
- const attrs$5 = { role: 'tabpanel' };
31664
+ const attrs$4 = { role: 'tabpanel' };
31654
31665
 
31655
31666
  const StepWrapper = Vue.extend({
31656
31667
  name: 'QStepWrapper',
@@ -31747,7 +31758,7 @@
31747
31758
  'div',
31748
31759
  {
31749
31760
  staticClass: 'q-stepper__step',
31750
- attrs: attrs$5,
31761
+ attrs: attrs$4,
31751
31762
  on: this.onEvents
31752
31763
  },
31753
31764
  vertical === true
@@ -34811,7 +34822,7 @@
34811
34822
  }
34812
34823
  });
34813
34824
 
34814
- const attrs$6 = { role: 'toolbar' };
34825
+ const attrs$5 = { role: 'toolbar' };
34815
34826
 
34816
34827
  var QToolbar = Vue.extend({
34817
34828
  name: 'QToolbar',
@@ -34826,7 +34837,7 @@
34826
34837
  return h('div', {
34827
34838
  staticClass: 'q-toolbar row no-wrap items-center',
34828
34839
  class: this.inset ? 'q-toolbar--inset' : null,
34829
- attrs: attrs$6,
34840
+ attrs: attrs$5,
34830
34841
  on: { ...this.qListeners }
34831
34842
  }, slot(this, 'default'))
34832
34843
  }