quasar 1.19.1 → 1.19.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 (136) 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/svg-bootstrap-icons.umd.min.js +1 -1
  21. package/dist/icon-set/svg-eva-icons.umd.min.js +1 -1
  22. package/dist/icon-set/svg-fontawesome-v5.umd.min.js +1 -1
  23. package/dist/icon-set/svg-fontawesome-v6.umd.min.js +1 -1
  24. package/dist/icon-set/svg-ionicons-v4.umd.min.js +1 -1
  25. package/dist/icon-set/svg-ionicons-v5.umd.min.js +1 -1
  26. package/dist/icon-set/svg-ionicons-v6.umd.min.js +1 -1
  27. package/dist/icon-set/svg-line-awesome.umd.min.js +1 -1
  28. package/dist/icon-set/svg-material-icons-outlined.umd.min.js +1 -1
  29. package/dist/icon-set/svg-material-icons-round.umd.min.js +1 -1
  30. package/dist/icon-set/svg-material-icons-sharp.umd.min.js +1 -1
  31. package/dist/icon-set/svg-material-icons.umd.min.js +1 -1
  32. package/dist/icon-set/svg-material-symbols-outlined.umd.min.js +1 -1
  33. package/dist/icon-set/svg-material-symbols-rounded.umd.min.js +1 -1
  34. package/dist/icon-set/svg-material-symbols-sharp.umd.min.js +1 -1
  35. package/dist/icon-set/svg-mdi-v4.umd.min.js +1 -1
  36. package/dist/icon-set/svg-mdi-v5.umd.min.js +1 -1
  37. package/dist/icon-set/svg-mdi-v6.umd.min.js +1 -1
  38. package/dist/icon-set/svg-themify.umd.min.js +1 -1
  39. package/dist/icon-set/themify.umd.min.js +1 -1
  40. package/dist/lang/ar.umd.min.js +1 -1
  41. package/dist/lang/az-latn.umd.min.js +1 -1
  42. package/dist/lang/bg.umd.min.js +1 -1
  43. package/dist/lang/ca.umd.min.js +2 -2
  44. package/dist/lang/cs.umd.min.js +1 -1
  45. package/dist/lang/da.umd.min.js +1 -1
  46. package/dist/lang/de.umd.min.js +1 -1
  47. package/dist/lang/el.umd.min.js +1 -1
  48. package/dist/lang/en-gb.umd.min.js +1 -1
  49. package/dist/lang/en-us.umd.min.js +1 -1
  50. package/dist/lang/eo.umd.min.js +1 -1
  51. package/dist/lang/es.umd.min.js +1 -1
  52. package/dist/lang/et.umd.min.js +1 -1
  53. package/dist/lang/eu.umd.min.js +1 -1
  54. package/dist/lang/fa-ir.umd.min.js +1 -1
  55. package/dist/lang/fa.umd.min.js +1 -1
  56. package/dist/lang/fi.umd.min.js +1 -1
  57. package/dist/lang/fr.umd.min.js +1 -1
  58. package/dist/lang/gn.umd.min.js +1 -1
  59. package/dist/lang/he.umd.min.js +1 -1
  60. package/dist/lang/hr.umd.min.js +1 -1
  61. package/dist/lang/hu.umd.min.js +1 -1
  62. package/dist/lang/id.umd.min.js +1 -1
  63. package/dist/lang/is.umd.min.js +1 -1
  64. package/dist/lang/it.umd.min.js +1 -1
  65. package/dist/lang/ja.umd.min.js +1 -1
  66. package/dist/lang/km.umd.min.js +1 -1
  67. package/dist/lang/ko-kr.umd.min.js +2 -2
  68. package/dist/lang/kur-ckb.umd.min.js +1 -1
  69. package/dist/lang/kz.umd.min.js +1 -1
  70. package/dist/lang/lu.umd.min.js +1 -1
  71. package/dist/lang/lv.umd.min.js +1 -1
  72. package/dist/lang/ml.umd.min.js +1 -1
  73. package/dist/lang/mm.umd.min.js +1 -1
  74. package/dist/lang/ms.umd.min.js +1 -1
  75. package/dist/lang/my.umd.min.js +1 -1
  76. package/dist/lang/nb-no.umd.min.js +1 -1
  77. package/dist/lang/nl.umd.min.js +1 -1
  78. package/dist/lang/pl.umd.min.js +1 -1
  79. package/dist/lang/pt-br.umd.min.js +1 -1
  80. package/dist/lang/pt.umd.min.js +1 -1
  81. package/dist/lang/ro.umd.min.js +1 -1
  82. package/dist/lang/ru.umd.min.js +1 -1
  83. package/dist/lang/sk.umd.min.js +1 -1
  84. package/dist/lang/sl.umd.min.js +1 -1
  85. package/dist/lang/sm.umd.min.js +6 -0
  86. package/dist/lang/sr.umd.min.js +1 -1
  87. package/dist/lang/sv.umd.min.js +1 -1
  88. package/dist/lang/ta.umd.min.js +1 -1
  89. package/dist/lang/th.umd.min.js +1 -1
  90. package/dist/lang/tr.umd.min.js +1 -1
  91. package/dist/lang/ug.umd.min.js +1 -1
  92. package/dist/lang/uk.umd.min.js +1 -1
  93. package/dist/lang/vi.umd.min.js +1 -1
  94. package/dist/lang/zh-hans.umd.min.js +1 -1
  95. package/dist/lang/zh-hant.umd.min.js +1 -1
  96. package/dist/quasar.addon.css +1 -1
  97. package/dist/quasar.addon.rtl.css +1 -1
  98. package/dist/quasar.common.js +2 -2
  99. package/dist/quasar.css +8 -5
  100. package/dist/quasar.esm.js +2 -2
  101. package/dist/quasar.ie.polyfills.js +1 -1
  102. package/dist/quasar.ie.polyfills.umd.min.js +1 -1
  103. package/dist/quasar.min.css +1 -1
  104. package/dist/quasar.rtl.css +7 -4
  105. package/dist/quasar.rtl.min.css +1 -1
  106. package/dist/quasar.sass +7 -4
  107. package/dist/quasar.styl +7 -4
  108. package/dist/quasar.umd.js +37 -37
  109. package/dist/quasar.umd.min.js +2 -2
  110. package/dist/quasar.umd.modern.js +37 -37
  111. package/dist/quasar.umd.modern.min.js +2 -2
  112. package/dist/types/index.d.ts +1 -0
  113. package/dist/web-types/web-types.json +1 -1
  114. package/lang/ca.js +31 -31
  115. package/lang/index.json +4 -0
  116. package/lang/ko-kr.js +21 -21
  117. package/lang/sm.js +93 -0
  118. package/package.json +1 -1
  119. package/src/components/field/QField.js +2 -2
  120. package/src/components/file/QFile.js +4 -2
  121. package/src/components/icon/QIcon.sass +3 -2
  122. package/src/components/icon/QIcon.styl +3 -2
  123. package/src/components/input/QInput.js +1 -1
  124. package/src/components/select/QSelect.js +9 -4
  125. package/src/components/table/QTable.sass +1 -1
  126. package/src/components/table/QTable.styl +1 -1
  127. package/src/components/uploader/QUploaderBase.js +2 -1
  128. package/src/css/core/colors.sass +1 -0
  129. package/src/css/core/colors.styl +1 -0
  130. package/src/css/core/dark.sass +1 -0
  131. package/src/css/core/dark.styl +1 -0
  132. package/src/directives/Ripple.js +2 -7
  133. package/src/mixins/anchor.js +1 -1
  134. package/src/mixins/composition.js +10 -14
  135. package/src/mixins/virtual-scroll.js +3 -2
  136. package/src/utils/date.js +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Quasar Framework v1.19.1
2
+ * Quasar Framework v1.19.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.19.1";
15
+ var version = "1.19.2";
16
16
 
17
17
  /* eslint-disable no-useless-escape */
18
18
 
@@ -3292,11 +3292,7 @@
3292
3292
  evt.qSkipRipple !== true &&
3293
3293
  // on ENTER in form IE emits a PointerEvent with negative client cordinates
3294
3294
  (client.is.ie !== true || evt.clientX >= 0) &&
3295
- (
3296
- ctx.modifiers.early === true
3297
- ? ['mousedown', 'touchstart'].includes(evt.type) === true
3298
- : evt.type === 'click'
3299
- )
3295
+ evt.type === (ctx.modifiers.early === true ? 'pointerdown' : 'click')
3300
3296
  ) {
3301
3297
  showRipple(evt, el, ctx, evt.qKeyEvent === true);
3302
3298
  }
@@ -3319,8 +3315,7 @@
3319
3315
  el.__qripple = ctx;
3320
3316
 
3321
3317
  addEvt(ctx, 'main', [
3322
- [ el, 'mousedown', 'start', 'passive' ],
3323
- [ el, 'touchstart', 'start', 'passive' ],
3318
+ [ el, 'pointerdown', 'start', 'passive' ],
3324
3319
  [ el, 'click', 'start', 'passive' ],
3325
3320
  [ el, 'keydown', 'keystart', 'passive' ],
3326
3321
  [ el, 'keyup', 'keystart', 'passive' ]
@@ -4086,7 +4081,7 @@
4086
4081
  },
4087
4082
 
4088
4083
  __pickAnchorEl () {
4089
- if (this.target === false || this.target === '') {
4084
+ if (this.target === false || this.target === '' || this.parentEl === null) {
4090
4085
  this.anchorEl = void 0;
4091
4086
  }
4092
4087
  else if (this.target === true) {
@@ -11972,7 +11967,7 @@
11972
11967
  const date = new Date(
11973
11968
  d.year,
11974
11969
  d.month === null ? null : d.month - 1,
11975
- d.day,
11970
+ d.day === null ? 1 : d.day,
11976
11971
  d.hour,
11977
11972
  d.minute,
11978
11973
  d.second,
@@ -18641,7 +18636,7 @@
18641
18636
  attrs: {
18642
18637
  tabindex: -1,
18643
18638
  ...this.qAttrs,
18644
- 'data-autofocus': this.autofocus
18639
+ 'data-autofocus': this.autofocus || void 0
18645
18640
  }
18646
18641
  }, this.$scopedSlots.control(this.controlSlotScope))
18647
18642
  );
@@ -18817,7 +18812,7 @@
18817
18812
  const attrs = this.__getControl === void 0 && this.$scopedSlots.control === void 0
18818
18813
  ? {
18819
18814
  ...this.qAttrs,
18820
- 'data-autofocus': this.autofocus,
18815
+ 'data-autofocus': this.autofocus || void 0,
18821
18816
  ...this.attrs
18822
18817
  }
18823
18818
  : this.attrs;
@@ -19225,6 +19220,10 @@
19225
19220
 
19226
19221
  isAppending () {
19227
19222
  return this.multiple === true && this.append === true
19223
+ },
19224
+
19225
+ fieldClass () {
19226
+ return 'q-file q-field--auto-height' + (this.dnd === true ? ' q-file--dnd' : '')
19228
19227
  }
19229
19228
  },
19230
19229
 
@@ -19391,8 +19390,6 @@
19391
19390
  },
19392
19391
 
19393
19392
  created () {
19394
- this.fieldClass = 'q-file q-field--auto-height';
19395
-
19396
19393
  // necessary for QField's clearable
19397
19394
  // and FileValueMixin
19398
19395
  this.type = 'file';
@@ -21166,23 +21163,19 @@
21166
21163
  e.target.qComposing = false;
21167
21164
  this.__onInput(e);
21168
21165
  }
21169
- else if (e.type === 'compositionupdate') {
21170
- if (
21171
- e.target.qComposing !== true &&
21172
- typeof e.data === 'string'
21173
- ) {
21174
- const isComposing = client.is.firefox === true
21175
- ? isPlainText.test(e.data) === false
21176
- : isJapanese.test(e.data) === true && isChinese.test(e.data) === true && isKorean.test(e.data) === true;
21166
+ else if (
21167
+ e.type === 'compositionupdate' &&
21168
+ e.target.qComposing !== true &&
21169
+ typeof e.data === 'string'
21170
+ ) {
21171
+ const isComposing = client.is.firefox === true
21172
+ ? isPlainText.test(e.data) === false
21173
+ : isJapanese.test(e.data) === true || isChinese.test(e.data) === true || isKorean.test(e.data) === true;
21177
21174
 
21178
- if (isComposing === true) {
21179
- e.target.qComposing = true;
21180
- }
21175
+ if (isComposing === true) {
21176
+ e.target.qComposing = true;
21181
21177
  }
21182
21178
  }
21183
- else {
21184
- e.target.qComposing = true;
21185
- }
21186
21179
  }
21187
21180
  }
21188
21181
  };
@@ -21330,7 +21323,7 @@
21330
21323
  inputAttrs () {
21331
21324
  const attrs = {
21332
21325
  tabindex: 0,
21333
- 'data-autofocus': this.autofocus,
21326
+ 'data-autofocus': this.autofocus || void 0,
21334
21327
  rows: this.type === 'textarea' ? 6 : void 0,
21335
21328
  'aria-label': this.label,
21336
21329
  name: this.nameProp,
@@ -25988,11 +25981,12 @@
25988
25981
  setOverflowAnchor.isSupported = window.getComputedStyle(document.body).overflowAnchor !== void 0;
25989
25982
  }
25990
25983
 
25991
- if (setOverflowAnchor.isSupported === false) {
25984
+ if (setOverflowAnchor.isSupported === false || contentEl === void 0) {
25992
25985
  return
25993
25986
  }
25994
25987
 
25995
- requestAnimationFrame(() => {
25988
+ cancelAnimationFrame(contentEl._qOverflowAnimationFrame);
25989
+ contentEl._qOverflowAnimationFrame = requestAnimationFrame(() => {
25996
25990
  if (contentEl === void 0) {
25997
25991
  return
25998
25992
  }
@@ -26662,13 +26656,18 @@
26662
26656
  this.__updateMenu(show);
26663
26657
  },
26664
26658
 
26665
- virtualScrollLength () {
26659
+ virtualScrollLength (newLength, oldLength) {
26666
26660
  if (this.menu === true && this.innerLoading === false) {
26667
- this.reset();
26661
+ this.__resetVirtualScroll(-1, true);
26668
26662
 
26669
26663
  this.$nextTick(() => {
26670
26664
  if (this.menu === true && this.innerLoading === false) {
26671
- this.__updateMenu(true);
26665
+ if (newLength > oldLength) {
26666
+ this.__resetVirtualScroll();
26667
+ }
26668
+ else {
26669
+ this.__updateMenu(true);
26670
+ }
26672
26671
  }
26673
26672
  });
26674
26673
  }
@@ -27586,7 +27585,7 @@
27586
27585
  maxlength: this.maxlength, // this is converted to prop by QField
27587
27586
  tabindex: this.tabindex,
27588
27587
  autocomplete: this.autocomplete,
27589
- 'data-autofocus': fromDialog === true ? false : this.autofocus,
27588
+ 'data-autofocus': (fromDialog !== true && this.autofocus) || void 0,
27590
27589
  disabled: this.disable === true,
27591
27590
  readonly: this.readonly === true
27592
27591
  },
@@ -35554,7 +35553,8 @@
35554
35553
  'q-uploader--bordered': this.bordered,
35555
35554
  'q-uploader--square no-border-radius': this.square,
35556
35555
  'q-uploader--flat no-shadow': this.flat,
35557
- 'disabled q-uploader--disable': this.disable
35556
+ 'disabled q-uploader--disable': this.disable,
35557
+ 'q-uploader--dnd': this.dnd
35558
35558
  },
35559
35559
  on: this.canAddFiles === true
35560
35560
  ? cache(this, 'drag', {