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
package/dist/quasar.sass CHANGED
@@ -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
  */
@@ -648,6 +648,7 @@ input[type='search']::-webkit-search-decoration
648
648
  line-height: 1
649
649
  width: 1em
650
650
  height: 1em
651
+ flex-shrink: 0
651
652
  letter-spacing: normal
652
653
  text-transform: none
653
654
  white-space: nowrap
@@ -665,8 +666,8 @@ input[type='search']::-webkit-search-decoration
665
666
  justify-content: center
666
667
  > svg,
667
668
  > img
668
- width: 1em
669
- height: 1em
669
+ width: 100%
670
+ height: 100%
670
671
  .q-icon,
671
672
  .material-icons,
672
673
  .material-icons-outlined,
@@ -4190,7 +4191,7 @@ body.platform-ios
4190
4191
  &--selected
4191
4192
  transform: scale(.95)
4192
4193
  .q-table--horizontal-separator, .q-table--cell-separator
4193
- thead th, tbody tr:not(:last-child) td
4194
+ thead th, tbody tr:not(:last-child) > td
4194
4195
  border-bottom-width: 1px
4195
4196
  .q-table--vertical-separator, .q-table--cell-separator
4196
4197
  td, th
@@ -5517,6 +5518,7 @@ body.q-ios-padding .q-notifications__list
5517
5518
  --q-color-info: #{$info}
5518
5519
  --q-color-warning: #{$warning}
5519
5520
  --q-color-dark: #{$dark}
5521
+ --q-color-dark-page: #{$dark-page}
5520
5522
  .text-dark
5521
5523
  color: $dark !important
5522
5524
  color: var(--q-color-dark) !important
@@ -7500,6 +7502,7 @@ body.desktop
7500
7502
  body.body--dark
7501
7503
  color: #fff
7502
7504
  background: $dark-page
7505
+ background: var(--q-color-dark-page)
7503
7506
  .q-dark
7504
7507
  color: #fff
7505
7508
  background: $grey-9
package/dist/quasar.styl CHANGED
@@ -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
  */
@@ -694,6 +694,7 @@ input[type='search']::-webkit-search-decoration
694
694
  line-height: 1
695
695
  width: 1em
696
696
  height: 1em
697
+ flex-shrink: 0
697
698
  letter-spacing: normal
698
699
  text-transform: none
699
700
  white-space: nowrap
@@ -711,8 +712,8 @@ input[type='search']::-webkit-search-decoration
711
712
  justify-content: center
712
713
  > svg,
713
714
  > img
714
- width: 1em
715
- height: 1em
715
+ width: 100%
716
+ height: 100%
716
717
  .q-icon,
717
718
  .material-icons,
718
719
  .material-icons-outlined,
@@ -4237,7 +4238,7 @@ body.platform-ios
4237
4238
  &--selected
4238
4239
  transform: scale(.95)
4239
4240
  .q-table--horizontal-separator, .q-table--cell-separator
4240
- thead th, tbody tr:not(:last-child) td
4241
+ thead th, tbody tr:not(:last-child) > td
4241
4242
  border-bottom-width: 1px
4242
4243
  .q-table--vertical-separator, .q-table--cell-separator
4243
4244
  td, th
@@ -5561,6 +5562,7 @@ body.q-ios-padding .q-notifications__list
5561
5562
  --q-color-info: $info
5562
5563
  --q-color-warning: $warning
5563
5564
  --q-color-dark: $dark
5565
+ --q-color-dark-page: $dark-page
5564
5566
  .text-dark
5565
5567
  color: $dark !important
5566
5568
  color: var(--q-color-dark) !important
@@ -7546,6 +7548,7 @@ body.desktop
7546
7548
  body.body--dark
7547
7549
  color: #fff
7548
7550
  background: $dark-page
7551
+ background: var(--q-color-dark-page)
7549
7552
  .q-dark
7550
7553
  color: #fff
7551
7554
  background: $grey-9
@@ -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
 
@@ -3397,11 +3397,7 @@
3397
3397
  evt.qSkipRipple !== true &&
3398
3398
  // on ENTER in form IE emits a PointerEvent with negative client cordinates
3399
3399
  (client.is.ie !== true || evt.clientX >= 0) &&
3400
- (
3401
- ctx.modifiers.early === true
3402
- ? ['mousedown', 'touchstart'].includes(evt.type) === true
3403
- : evt.type === 'click'
3404
- )
3400
+ evt.type === (ctx.modifiers.early === true ? 'pointerdown' : 'click')
3405
3401
  ) {
3406
3402
  showRipple(evt, el, ctx, evt.qKeyEvent === true);
3407
3403
  }
@@ -3424,8 +3420,7 @@
3424
3420
  el.__qripple = ctx;
3425
3421
 
3426
3422
  addEvt(ctx, 'main', [
3427
- [ el, 'mousedown', 'start', 'passive' ],
3428
- [ el, 'touchstart', 'start', 'passive' ],
3423
+ [ el, 'pointerdown', 'start', 'passive' ],
3429
3424
  [ el, 'click', 'start', 'passive' ],
3430
3425
  [ el, 'keydown', 'keystart', 'passive' ],
3431
3426
  [ el, 'keyup', 'keystart', 'passive' ]
@@ -4199,7 +4194,7 @@
4199
4194
  },
4200
4195
 
4201
4196
  __pickAnchorEl: function __pickAnchorEl () {
4202
- if (this.target === false || this.target === '') {
4197
+ if (this.target === false || this.target === '' || this.parentEl === null) {
4203
4198
  this.anchorEl = void 0;
4204
4199
  }
4205
4200
  else if (this.target === true) {
@@ -12177,7 +12172,7 @@
12177
12172
  var date = new Date(
12178
12173
  d.year,
12179
12174
  d.month === null ? null : d.month - 1,
12180
- d.day,
12175
+ d.day === null ? 1 : d.day,
12181
12176
  d.hour,
12182
12177
  d.minute,
12183
12178
  d.second,
@@ -18932,7 +18927,7 @@
18932
18927
  staticClass: 'q-field__native row',
18933
18928
  attrs: Object.assign({}, {tabindex: -1},
18934
18929
  this.qAttrs,
18935
- {'data-autofocus': this.autofocus})
18930
+ {'data-autofocus': this.autofocus || void 0})
18936
18931
  }, this.$scopedSlots.control(this.controlSlotScope))
18937
18932
  );
18938
18933
  }
@@ -19110,7 +19105,7 @@
19110
19105
 
19111
19106
  var attrs = this.__getControl === void 0 && this.$scopedSlots.control === void 0
19112
19107
  ? Object.assign({}, this.qAttrs,
19113
- {'data-autofocus': this.autofocus},
19108
+ {'data-autofocus': this.autofocus || void 0},
19114
19109
  this.attrs)
19115
19110
  : this.attrs;
19116
19111
 
@@ -19517,6 +19512,10 @@
19517
19512
 
19518
19513
  isAppending: function isAppending () {
19519
19514
  return this.multiple === true && this.append === true
19515
+ },
19516
+
19517
+ fieldClass: function fieldClass () {
19518
+ return 'q-file q-field--auto-height' + (this.dnd === true ? ' q-file--dnd' : '')
19520
19519
  }
19521
19520
  },
19522
19521
 
@@ -19687,8 +19686,6 @@
19687
19686
  },
19688
19687
 
19689
19688
  created: function created () {
19690
- this.fieldClass = 'q-file q-field--auto-height';
19691
-
19692
19689
  // necessary for QField's clearable
19693
19690
  // and FileValueMixin
19694
19691
  this.type = 'file';
@@ -21491,23 +21488,19 @@
21491
21488
  e.target.qComposing = false;
21492
21489
  this.__onInput(e);
21493
21490
  }
21494
- else if (e.type === 'compositionupdate') {
21495
- if (
21496
- e.target.qComposing !== true &&
21497
- typeof e.data === 'string'
21498
- ) {
21499
- var isComposing = client.is.firefox === true
21500
- ? isPlainText.test(e.data) === false
21501
- : isJapanese.test(e.data) === true && isChinese.test(e.data) === true && isKorean.test(e.data) === true;
21491
+ else if (
21492
+ e.type === 'compositionupdate' &&
21493
+ e.target.qComposing !== true &&
21494
+ typeof e.data === 'string'
21495
+ ) {
21496
+ var isComposing = client.is.firefox === true
21497
+ ? isPlainText.test(e.data) === false
21498
+ : isJapanese.test(e.data) === true || isChinese.test(e.data) === true || isKorean.test(e.data) === true;
21502
21499
 
21503
- if (isComposing === true) {
21504
- e.target.qComposing = true;
21505
- }
21500
+ if (isComposing === true) {
21501
+ e.target.qComposing = true;
21506
21502
  }
21507
21503
  }
21508
- else {
21509
- e.target.qComposing = true;
21510
- }
21511
21504
  }
21512
21505
  }
21513
21506
  };
@@ -21652,7 +21645,7 @@
21652
21645
 
21653
21646
  inputAttrs: function inputAttrs () {
21654
21647
  var attrs = Object.assign({}, {tabindex: 0,
21655
- 'data-autofocus': this.autofocus,
21648
+ 'data-autofocus': this.autofocus || void 0,
21656
21649
  rows: this.type === 'textarea' ? 6 : void 0,
21657
21650
  'aria-label': this.label,
21658
21651
  name: this.nameProp},
@@ -26388,11 +26381,12 @@
26388
26381
  setOverflowAnchor.isSupported = window.getComputedStyle(document.body).overflowAnchor !== void 0;
26389
26382
  }
26390
26383
 
26391
- if (setOverflowAnchor.isSupported === false) {
26384
+ if (setOverflowAnchor.isSupported === false || contentEl === void 0) {
26392
26385
  return
26393
26386
  }
26394
26387
 
26395
- requestAnimationFrame(function () {
26388
+ cancelAnimationFrame(contentEl._qOverflowAnimationFrame);
26389
+ contentEl._qOverflowAnimationFrame = requestAnimationFrame(function () {
26396
26390
  if (contentEl === void 0) {
26397
26391
  return
26398
26392
  }
@@ -27069,15 +27063,20 @@
27069
27063
  this.__updateMenu(show);
27070
27064
  },
27071
27065
 
27072
- virtualScrollLength: function virtualScrollLength () {
27066
+ virtualScrollLength: function virtualScrollLength (newLength, oldLength) {
27073
27067
  var this$1 = this;
27074
27068
 
27075
27069
  if (this.menu === true && this.innerLoading === false) {
27076
- this.reset();
27070
+ this.__resetVirtualScroll(-1, true);
27077
27071
 
27078
27072
  this.$nextTick(function () {
27079
27073
  if (this$1.menu === true && this$1.innerLoading === false) {
27080
- this$1.__updateMenu(true);
27074
+ if (newLength > oldLength) {
27075
+ this$1.__resetVirtualScroll();
27076
+ }
27077
+ else {
27078
+ this$1.__updateMenu(true);
27079
+ }
27081
27080
  }
27082
27081
  });
27083
27082
  }
@@ -28027,7 +28026,7 @@
28027
28026
  maxlength: this.maxlength, // this is converted to prop by QField
28028
28027
  tabindex: this.tabindex,
28029
28028
  autocomplete: this.autocomplete,
28030
- 'data-autofocus': fromDialog === true ? false : this.autofocus,
28029
+ 'data-autofocus': (fromDialog !== true && this.autofocus) || void 0,
28031
28030
  disabled: this.disable === true,
28032
28031
  readonly: this.readonly === true}),
28033
28032
  on: this.inputControlEvents
@@ -36109,7 +36108,8 @@
36109
36108
  'q-uploader--bordered': this.bordered,
36110
36109
  'q-uploader--square no-border-radius': this.square,
36111
36110
  'q-uploader--flat no-shadow': this.flat,
36112
- 'disabled q-uploader--disable': this.disable
36111
+ 'disabled q-uploader--disable': this.disable,
36112
+ 'q-uploader--dnd': this.dnd
36113
36113
  },
36114
36114
  on: this.canAddFiles === true
36115
36115
  ? cache(this, 'drag', {