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
@@ -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
  */
@@ -1604,7 +1604,7 @@ function prepareApp (app, uiOpts, pluginOpts) {
1604
1604
  }
1605
1605
 
1606
1606
  var installQuasar = function (parentApp, opts = {}) {
1607
- const $q = { version: '2.8.2' };
1607
+ const $q = { version: '2.8.3' };
1608
1608
 
1609
1609
  if (globalConfigIsFrozen === false) {
1610
1610
  if (opts.config !== void 0) {
@@ -18628,11 +18628,13 @@ function useFile ({
18628
18628
  file.__key = file.webkitRelativePath + file.lastModified + file.name + file.size;
18629
18629
  });
18630
18630
 
18631
- // Avoid duplicate files
18632
- const filenameMap = currentFileList.map(entry => entry.__key);
18633
- files = filterFiles(files, rejectedFiles, 'duplicate', file => {
18634
- return filenameMap.includes(file.__key) === false
18635
- });
18631
+ if (append !== true) {
18632
+ // Avoid duplicate files
18633
+ const filenameMap = currentFileList.map(entry => entry.__key);
18634
+ files = filterFiles(files, rejectedFiles, 'duplicate', file => {
18635
+ return filenameMap.includes(file.__key) === false
18636
+ });
18637
+ }
18636
18638
 
18637
18639
  if (files.length === 0) { return done() }
18638
18640
 
@@ -20519,7 +20521,7 @@ function useValidate (focused, innerLoading) {
20519
20521
  let res;
20520
20522
 
20521
20523
  if (typeof rule === 'function') {
20522
- res = rule(val);
20524
+ res = rule(val, testPattern);
20523
20525
  }
20524
20526
  else if (typeof rule === 'string' && testPattern[ rule ] !== void 0) {
20525
20527
  res = testPattern[ rule ](val);
@@ -23315,6 +23317,9 @@ var QInput = createComponent({
23315
23317
  ],
23316
23318
 
23317
23319
  setup (props, { emit, attrs }) {
23320
+ const { proxy } = getCurrentInstance();
23321
+ const { $q } = proxy;
23322
+
23318
23323
  const temp = {};
23319
23324
  let emitCachedValue = NaN, typedNumber, stopValueWatcher, emitTimer, emitValueFn;
23320
23325
 
@@ -23561,21 +23566,24 @@ var QInput = createComponent({
23561
23566
 
23562
23567
  // textarea only
23563
23568
  function adjustHeight () {
23564
- const inp = inputRef.value;
23565
- if (inp !== null) {
23566
- const parentStyle = inp.parentNode.style;
23567
- const { overflow } = inp.style;
23568
-
23569
- // reset height of textarea to a small size to detect the real height
23570
- // but keep the total control size the same
23571
- parentStyle.marginBottom = (inp.scrollHeight - 1) + 'px';
23572
- inp.style.height = '1px';
23573
- inp.style.overflow = 'hidden';
23574
-
23575
- inp.style.height = inp.scrollHeight + 'px';
23576
- inp.style.overflow = overflow;
23577
- parentStyle.marginBottom = '';
23578
- }
23569
+ requestAnimationFrame(() => {
23570
+ const inp = inputRef.value;
23571
+ if (inp !== null) {
23572
+ const parentStyle = inp.parentNode.style;
23573
+ const { overflow } = inp.style;
23574
+
23575
+ // reset height of textarea to a small size to detect the real height
23576
+ // but keep the total control size the same
23577
+ // Firefox rulez #14263, #14344
23578
+ $q.platform.is.firefox !== true && (inp.style.overflow = 'hidden');
23579
+ inp.style.height = '1px';
23580
+ parentStyle.marginBottom = (inp.scrollHeight - 1) + 'px';
23581
+
23582
+ inp.style.height = inp.scrollHeight + 'px';
23583
+ inp.style.overflow = overflow;
23584
+ parentStyle.marginBottom = '';
23585
+ }
23586
+ });
23579
23587
  }
23580
23588
 
23581
23589
  function onChange (e) {
@@ -23678,8 +23686,7 @@ var QInput = createComponent({
23678
23686
  const renderFn = useField(state);
23679
23687
 
23680
23688
  // expose public methods
23681
- const vm = getCurrentInstance();
23682
- Object.assign(vm.proxy, {
23689
+ Object.assign(proxy, {
23683
23690
  focus,
23684
23691
  select,
23685
23692
  getNativeElement: () => inputRef.value
@@ -39642,7 +39649,7 @@ function useQuasar () {
39642
39649
  */
39643
39650
 
39644
39651
  const Quasar = {
39645
- version: '2.8.2',
39652
+ version: '2.8.3',
39646
39653
  install: installQuasar,
39647
39654
  lang: Plugin$8,
39648
39655
  iconSet: Plugin$7