quasar 2.8.2 → 2.8.3

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 (121) hide show
  1. package/dist/api/Loading.json +0 -1
  2. package/dist/api/QField.json +2 -1
  3. package/dist/api/QFile.json +2 -1
  4. package/dist/api/QInput.json +2 -1
  5. package/dist/api/QSelect.json +2 -1
  6. package/dist/api/QUploader.json +4 -0
  7. package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
  8. package/dist/icon-set/eva-icons.umd.prod.js +1 -1
  9. package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
  10. package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
  11. package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +1 -1
  12. package/dist/icon-set/fontawesome-v6.umd.prod.js +1 -1
  13. package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
  14. package/dist/icon-set/line-awesome.umd.prod.js +1 -1
  15. package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
  16. package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
  17. package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
  18. package/dist/icon-set/material-icons.umd.prod.js +1 -1
  19. package/dist/icon-set/material-symbols-outlined.umd.prod.js +1 -1
  20. package/dist/icon-set/material-symbols-rounded.umd.prod.js +1 -1
  21. package/dist/icon-set/material-symbols-sharp.umd.prod.js +1 -1
  22. package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
  23. package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
  24. package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
  25. package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
  26. package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
  27. package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
  28. package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
  29. package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +1 -1
  30. package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
  31. package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
  32. package/dist/icon-set/svg-ionicons-v6.umd.prod.js +1 -1
  33. package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
  34. package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
  35. package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
  36. package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
  37. package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
  38. package/dist/icon-set/svg-material-symbols-outlined.umd.prod.js +1 -1
  39. package/dist/icon-set/svg-material-symbols-rounded.umd.prod.js +1 -1
  40. package/dist/icon-set/svg-material-symbols-sharp.umd.prod.js +1 -1
  41. package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
  42. package/dist/icon-set/svg-themify.umd.prod.js +1 -1
  43. package/dist/icon-set/themify.umd.prod.js +1 -1
  44. package/dist/lang/ar-TN.umd.prod.js +1 -1
  45. package/dist/lang/ar.umd.prod.js +1 -1
  46. package/dist/lang/az-Latn.umd.prod.js +1 -1
  47. package/dist/lang/bg.umd.prod.js +1 -1
  48. package/dist/lang/bn.umd.prod.js +1 -1
  49. package/dist/lang/ca.umd.prod.js +1 -1
  50. package/dist/lang/cs.umd.prod.js +1 -1
  51. package/dist/lang/da.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/hr.umd.prod.js +1 -1
  67. package/dist/lang/hu.umd.prod.js +1 -1
  68. package/dist/lang/id.umd.prod.js +1 -1
  69. package/dist/lang/is.umd.prod.js +1 -1
  70. package/dist/lang/it.umd.prod.js +1 -1
  71. package/dist/lang/ja.umd.prod.js +1 -1
  72. package/dist/lang/km.umd.prod.js +1 -1
  73. package/dist/lang/ko-KR.umd.prod.js +1 -1
  74. package/dist/lang/kur-CKB.umd.prod.js +1 -1
  75. package/dist/lang/kz.umd.prod.js +1 -1
  76. package/dist/lang/lt.umd.prod.js +1 -1
  77. package/dist/lang/lu.umd.prod.js +1 -1
  78. package/dist/lang/lv.umd.prod.js +1 -1
  79. package/dist/lang/ml.umd.prod.js +1 -1
  80. package/dist/lang/mm.umd.prod.js +1 -1
  81. package/dist/lang/ms.umd.prod.js +1 -1
  82. package/dist/lang/my.umd.prod.js +1 -1
  83. package/dist/lang/nb-NO.umd.prod.js +1 -1
  84. package/dist/lang/nl.umd.prod.js +1 -1
  85. package/dist/lang/pl.umd.prod.js +1 -1
  86. package/dist/lang/pt-BR.umd.prod.js +1 -1
  87. package/dist/lang/pt.umd.prod.js +1 -1
  88. package/dist/lang/ro.umd.prod.js +1 -1
  89. package/dist/lang/ru.umd.prod.js +1 -1
  90. package/dist/lang/sk.umd.prod.js +1 -1
  91. package/dist/lang/sl.umd.prod.js +1 -1
  92. package/dist/lang/sm.umd.prod.js +1 -1
  93. package/dist/lang/sr-CYR.umd.prod.js +1 -1
  94. package/dist/lang/sr.umd.prod.js +1 -1
  95. package/dist/lang/sv.umd.prod.js +1 -1
  96. package/dist/lang/ta.umd.prod.js +1 -1
  97. package/dist/lang/th.umd.prod.js +1 -1
  98. package/dist/lang/tr.umd.prod.js +1 -1
  99. package/dist/lang/ug.umd.prod.js +1 -1
  100. package/dist/lang/uk.umd.prod.js +1 -1
  101. package/dist/lang/uz-Cyrl.umd.prod.js +1 -1
  102. package/dist/lang/uz-Latn.umd.prod.js +1 -1
  103. package/dist/lang/vi.umd.prod.js +1 -1
  104. package/dist/lang/zh-CN.umd.prod.js +1 -1
  105. package/dist/lang/zh-TW.umd.prod.js +1 -1
  106. package/dist/quasar.cjs.prod.js +2 -2
  107. package/dist/quasar.esm.js +33 -26
  108. package/dist/quasar.esm.prod.js +2 -2
  109. package/dist/quasar.sass +1 -1
  110. package/dist/quasar.umd.js +33 -26
  111. package/dist/quasar.umd.prod.js +2 -2
  112. package/dist/types/api/validation.d.ts +22 -2
  113. package/dist/types/index.d.ts +5 -8
  114. package/dist/web-types/web-types.json +5 -5
  115. package/package.json +1 -1
  116. package/src/components/input/QInput.js +22 -17
  117. package/src/components/uploader/QUploader.json +5 -0
  118. package/src/composables/private/use-file.js +7 -5
  119. package/src/composables/private/use-validate.js +1 -1
  120. package/src/composables/private/use-validate.json +2 -1
  121. package/src/plugins/Loading.json +0 -1
package/dist/quasar.sass CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Quasar Framework v2.8.2
2
+ * Quasar Framework v2.8.3
3
3
  * (c) 2015-present Razvan Stoenescu
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Quasar Framework v2.8.2
2
+ * Quasar Framework v2.8.3
3
3
  * (c) 2015-present Razvan Stoenescu
4
4
  * Released under the MIT License.
5
5
  */
@@ -1606,7 +1606,7 @@
1606
1606
  }
1607
1607
 
1608
1608
  var installQuasar = function (parentApp, opts = {}) {
1609
- const $q = { version: '2.8.2' };
1609
+ const $q = { version: '2.8.3' };
1610
1610
 
1611
1611
  if (globalConfigIsFrozen === false) {
1612
1612
  if (opts.config !== void 0) {
@@ -18630,11 +18630,13 @@
18630
18630
  file.__key = file.webkitRelativePath + file.lastModified + file.name + file.size;
18631
18631
  });
18632
18632
 
18633
- // Avoid duplicate files
18634
- const filenameMap = currentFileList.map(entry => entry.__key);
18635
- files = filterFiles(files, rejectedFiles, 'duplicate', file => {
18636
- return filenameMap.includes(file.__key) === false
18637
- });
18633
+ if (append !== true) {
18634
+ // Avoid duplicate files
18635
+ const filenameMap = currentFileList.map(entry => entry.__key);
18636
+ files = filterFiles(files, rejectedFiles, 'duplicate', file => {
18637
+ return filenameMap.includes(file.__key) === false
18638
+ });
18639
+ }
18638
18640
 
18639
18641
  if (files.length === 0) { return done() }
18640
18642
 
@@ -20548,7 +20550,7 @@
20548
20550
  let res;
20549
20551
 
20550
20552
  if (typeof rule === 'function') {
20551
- res = rule(val);
20553
+ res = rule(val, testPattern);
20552
20554
  }
20553
20555
  else if (typeof rule === 'string' && testPattern[ rule ] !== void 0) {
20554
20556
  res = testPattern[ rule ](val);
@@ -23339,6 +23341,9 @@
23339
23341
  ],
23340
23342
 
23341
23343
  setup (props, { emit, attrs }) {
23344
+ const { proxy } = vue.getCurrentInstance();
23345
+ const { $q } = proxy;
23346
+
23342
23347
  const temp = {};
23343
23348
  let emitCachedValue = NaN, typedNumber, stopValueWatcher, emitTimer, emitValueFn;
23344
23349
 
@@ -23585,21 +23590,24 @@
23585
23590
 
23586
23591
  // textarea only
23587
23592
  function adjustHeight () {
23588
- const inp = inputRef.value;
23589
- if (inp !== null) {
23590
- const parentStyle = inp.parentNode.style;
23591
- const { overflow } = inp.style;
23592
-
23593
- // reset height of textarea to a small size to detect the real height
23594
- // but keep the total control size the same
23595
- parentStyle.marginBottom = (inp.scrollHeight - 1) + 'px';
23596
- inp.style.height = '1px';
23597
- inp.style.overflow = 'hidden';
23598
-
23599
- inp.style.height = inp.scrollHeight + 'px';
23600
- inp.style.overflow = overflow;
23601
- parentStyle.marginBottom = '';
23602
- }
23593
+ requestAnimationFrame(() => {
23594
+ const inp = inputRef.value;
23595
+ if (inp !== null) {
23596
+ const parentStyle = inp.parentNode.style;
23597
+ const { overflow } = inp.style;
23598
+
23599
+ // reset height of textarea to a small size to detect the real height
23600
+ // but keep the total control size the same
23601
+ // Firefox rulez #14263, #14344
23602
+ $q.platform.is.firefox !== true && (inp.style.overflow = 'hidden');
23603
+ inp.style.height = '1px';
23604
+ parentStyle.marginBottom = (inp.scrollHeight - 1) + 'px';
23605
+
23606
+ inp.style.height = inp.scrollHeight + 'px';
23607
+ inp.style.overflow = overflow;
23608
+ parentStyle.marginBottom = '';
23609
+ }
23610
+ });
23603
23611
  }
23604
23612
 
23605
23613
  function onChange (e) {
@@ -23702,8 +23710,7 @@
23702
23710
  const renderFn = useField(state);
23703
23711
 
23704
23712
  // expose public methods
23705
- const vm = vue.getCurrentInstance();
23706
- Object.assign(vm.proxy, {
23713
+ Object.assign(proxy, {
23707
23714
  focus,
23708
23715
  select,
23709
23716
  getNativeElement: () => inputRef.value
@@ -39827,7 +39834,7 @@
39827
39834
  */
39828
39835
 
39829
39836
  var index_umd = {
39830
- version: '2.8.2',
39837
+ version: '2.8.3',
39831
39838
  install (app, opts) {
39832
39839
  installQuasar(app, {
39833
39840
  components,