quasar 2.5.3 → 2.6.0

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 (242) hide show
  1. package/README.md +1 -1
  2. package/dist/api/BottomSheet.json +1 -1
  3. package/dist/api/Dialog.json +9 -2
  4. package/dist/api/Notify.json +205 -5
  5. package/dist/api/QAvatar.json +1 -1
  6. package/dist/api/QBreadcrumbsEl.json +1 -1
  7. package/dist/api/QBtn.json +4 -4
  8. package/dist/api/QBtnDropdown.json +17 -17
  9. package/dist/api/QCarousel.json +4 -4
  10. package/dist/api/QCheckbox.json +1 -1
  11. package/dist/api/QChip.json +5 -5
  12. package/dist/api/QDialog.json +13 -13
  13. package/dist/api/QDrawer.json +16 -16
  14. package/dist/api/QExpansionItem.json +15 -15
  15. package/dist/api/QFab.json +15 -15
  16. package/dist/api/QFabAction.json +3 -3
  17. package/dist/api/QField.json +2 -2
  18. package/dist/api/QFile.json +1 -1
  19. package/dist/api/QForm.json +12 -3
  20. package/dist/api/QIcon.json +4 -2
  21. package/dist/api/QInput.json +2 -2
  22. package/dist/api/QKnob.json +23 -0
  23. package/dist/api/QMenu.json +13 -13
  24. package/dist/api/QPagination.json +4 -4
  25. package/dist/api/QPopupEdit.json +6 -6
  26. package/dist/api/QPopupProxy.json +13 -13
  27. package/dist/api/QRadio.json +1 -1
  28. package/dist/api/QRange.json +1 -1
  29. package/dist/api/QRouteTab.json +2 -2
  30. package/dist/api/QSelect.json +18 -5
  31. package/dist/api/QSlider.json +1 -1
  32. package/dist/api/QStep.json +4 -4
  33. package/dist/api/QStepper.json +4 -4
  34. package/dist/api/QTab.json +1 -1
  35. package/dist/api/QTable.json +6 -6
  36. package/dist/api/QTimelineEntry.json +1 -1
  37. package/dist/api/QToggle.json +2 -2
  38. package/dist/api/QTooltip.json +13 -13
  39. package/dist/api/QTree.json +1 -1
  40. package/dist/api/QUploader.json +1 -1
  41. package/dist/api/TouchHold.json +1 -1
  42. package/dist/api/TouchPan.json +1 -1
  43. package/dist/api/TouchRepeat.json +1 -1
  44. package/dist/api/TouchSwipe.json +1 -1
  45. package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
  46. package/dist/icon-set/eva-icons.umd.prod.js +1 -1
  47. package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
  48. package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
  49. package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +6 -0
  50. package/dist/icon-set/fontawesome-v6.umd.prod.js +6 -0
  51. package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
  52. package/dist/icon-set/line-awesome.umd.prod.js +1 -1
  53. package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
  54. package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
  55. package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
  56. package/dist/icon-set/material-icons.umd.prod.js +1 -1
  57. package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
  58. package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
  59. package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
  60. package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
  61. package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +2 -2
  62. package/dist/icon-set/svg-eva-icons.umd.prod.js +2 -2
  63. package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +2 -2
  64. package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +6 -0
  65. package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
  66. package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
  67. package/dist/icon-set/svg-ionicons-v6.umd.prod.js +2 -2
  68. package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
  69. package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
  70. package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
  71. package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
  72. package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
  73. package/dist/icon-set/svg-mdi-v4.umd.prod.js +1 -1
  74. package/dist/icon-set/svg-mdi-v5.umd.prod.js +1 -1
  75. package/dist/icon-set/svg-mdi-v6.umd.prod.js +2 -2
  76. package/dist/icon-set/svg-themify.umd.prod.js +2 -2
  77. package/dist/icon-set/themify.umd.prod.js +1 -1
  78. package/dist/lang/ar.umd.prod.js +1 -1
  79. package/dist/lang/az-Latn.umd.prod.js +1 -1
  80. package/dist/lang/bg.umd.prod.js +1 -1
  81. package/dist/lang/bn.umd.prod.js +1 -1
  82. package/dist/lang/ca.umd.prod.js +1 -1
  83. package/dist/lang/cs.umd.prod.js +1 -1
  84. package/dist/lang/da.umd.prod.js +1 -1
  85. package/dist/lang/de.umd.prod.js +1 -1
  86. package/dist/lang/el.umd.prod.js +1 -1
  87. package/dist/lang/en-GB.umd.prod.js +1 -1
  88. package/dist/lang/en-US.umd.prod.js +1 -1
  89. package/dist/lang/eo.umd.prod.js +1 -1
  90. package/dist/lang/es.umd.prod.js +1 -1
  91. package/dist/lang/et.umd.prod.js +1 -1
  92. package/dist/lang/eu.umd.prod.js +6 -0
  93. package/dist/lang/fa-IR.umd.prod.js +1 -1
  94. package/dist/lang/fa.umd.prod.js +1 -1
  95. package/dist/lang/fi.umd.prod.js +1 -1
  96. package/dist/lang/fr.umd.prod.js +1 -1
  97. package/dist/lang/gn.umd.prod.js +1 -1
  98. package/dist/lang/he.umd.prod.js +1 -1
  99. package/dist/lang/hr.umd.prod.js +1 -1
  100. package/dist/lang/hu.umd.prod.js +1 -1
  101. package/dist/lang/id.umd.prod.js +1 -1
  102. package/dist/lang/is.umd.prod.js +1 -1
  103. package/dist/lang/it.umd.prod.js +1 -1
  104. package/dist/lang/ja.umd.prod.js +1 -1
  105. package/dist/lang/km.umd.prod.js +1 -1
  106. package/dist/lang/ko-KR.umd.prod.js +1 -1
  107. package/dist/lang/kur-CKB.umd.prod.js +1 -1
  108. package/dist/lang/kz.umd.prod.js +6 -0
  109. package/dist/lang/lt.umd.prod.js +1 -1
  110. package/dist/lang/lu.umd.prod.js +1 -1
  111. package/dist/lang/lv.umd.prod.js +1 -1
  112. package/dist/lang/ml.umd.prod.js +1 -1
  113. package/dist/lang/ms.umd.prod.js +1 -1
  114. package/dist/lang/my.umd.prod.js +1 -1
  115. package/dist/lang/nb-NO.umd.prod.js +1 -1
  116. package/dist/lang/nl.umd.prod.js +1 -1
  117. package/dist/lang/pl.umd.prod.js +1 -1
  118. package/dist/lang/pt-BR.umd.prod.js +1 -1
  119. package/dist/lang/pt.umd.prod.js +1 -1
  120. package/dist/lang/ro.umd.prod.js +1 -1
  121. package/dist/lang/ru.umd.prod.js +1 -1
  122. package/dist/lang/sk.umd.prod.js +1 -1
  123. package/dist/lang/sl.umd.prod.js +1 -1
  124. package/dist/lang/sr-CYR.umd.prod.js +1 -1
  125. package/dist/lang/sr.umd.prod.js +1 -1
  126. package/dist/lang/sv.umd.prod.js +1 -1
  127. package/dist/lang/ta.umd.prod.js +1 -1
  128. package/dist/lang/th.umd.prod.js +1 -1
  129. package/dist/lang/tr.umd.prod.js +1 -1
  130. package/dist/lang/ug.umd.prod.js +2 -2
  131. package/dist/lang/uk.umd.prod.js +1 -1
  132. package/dist/lang/vi.umd.prod.js +1 -1
  133. package/dist/lang/zh-CN.umd.prod.js +1 -1
  134. package/dist/lang/zh-TW.umd.prod.js +1 -1
  135. package/dist/quasar.cjs.prod.js +2 -2
  136. package/dist/quasar.css +4 -6
  137. package/dist/quasar.esm.prod.js +2 -2
  138. package/dist/quasar.prod.css +1 -1
  139. package/dist/quasar.rtl.css +4 -6
  140. package/dist/quasar.rtl.prod.css +1 -1
  141. package/dist/quasar.sass +3 -1
  142. package/dist/quasar.umd.js +560 -505
  143. package/dist/quasar.umd.prod.js +2 -2
  144. package/dist/types/extras/icon-set.d.ts +3 -0
  145. package/dist/types/globals.d.ts +2 -2
  146. package/dist/types/index.d.ts +254 -136
  147. package/dist/vetur/quasar-attributes.json +50 -38
  148. package/dist/vetur/quasar-tags.json +3 -0
  149. package/dist/web-types/web-types.json +129 -93
  150. package/icon-set/fontawesome-v6-pro.js +128 -0
  151. package/icon-set/fontawesome-v6.js +128 -0
  152. package/icon-set/svg-fontawesome-v6.js +198 -0
  153. package/lang/eu.js +91 -0
  154. package/lang/index.json +8 -0
  155. package/lang/kz.js +95 -0
  156. package/lang/ug.js +49 -50
  157. package/package.json +1 -1
  158. package/src/api-file-example.json +2 -2
  159. package/src/api.extends.json +22 -33
  160. package/src/components/btn/QBtn.js +16 -14
  161. package/src/components/btn/QBtn.json +3 -6
  162. package/src/components/btn/use-btn.js +7 -7
  163. package/src/components/carousel/QCarousel.json +2 -4
  164. package/src/components/checkbox/use-checkbox.json +2 -4
  165. package/src/components/chip/QChip.json +1 -3
  166. package/src/components/date/QDate.js +20 -19
  167. package/src/components/date/use-datetime.js +3 -1
  168. package/src/components/dialog/QDialog.js +11 -11
  169. package/src/components/dialog-bottom-sheet/BottomSheet.js +11 -11
  170. package/src/components/dialog-plugin/DialogPlugin.js +9 -8
  171. package/src/components/editor/QEditor.js +10 -10
  172. package/src/components/editor/editor-utils.js +2 -2
  173. package/src/components/fab/QFabAction.json +1 -3
  174. package/src/components/field/QField.json +2 -6
  175. package/src/components/file/QFile.js +2 -1
  176. package/src/components/form/QForm.json +10 -7
  177. package/src/components/icon/QIcon.js +6 -2
  178. package/src/components/icon/QIcon.json +1 -3
  179. package/src/components/infinite-scroll/QInfiniteScroll.js +3 -1
  180. package/src/components/inner-loading/QInnerLoading.js +7 -7
  181. package/src/components/input/QInput.js +4 -1
  182. package/src/components/input/QInput.json +2 -6
  183. package/src/components/input/use-mask.js +2 -2
  184. package/src/components/knob/QKnob.js +51 -42
  185. package/src/components/knob/QKnob.json +22 -0
  186. package/src/components/linear-progress/QLinearProgress.sass +1 -0
  187. package/src/components/menu/QMenu.js +13 -13
  188. package/src/components/page-scroller/QPageScroller.js +4 -4
  189. package/src/components/pull-to-refresh/QPullToRefresh.js +5 -5
  190. package/src/components/radio/QRadio.json +2 -4
  191. package/src/components/select/QSelect.js +14 -7
  192. package/src/components/select/QSelect.json +14 -8
  193. package/src/components/slide-transition/QSlideTransition.js +4 -4
  194. package/src/components/slider/use-slider.js +4 -4
  195. package/src/components/slider/use-slider.json +1 -1
  196. package/src/components/stepper/QStep.js +6 -6
  197. package/src/components/stepper/QStep.json +3 -0
  198. package/src/components/stepper/QStepper.json +3 -0
  199. package/src/components/stepper/QStepper.sass +1 -0
  200. package/src/components/stepper/StepHeader.js +23 -8
  201. package/src/components/table/QTable.json +5 -13
  202. package/src/components/table/table-column-selection.js +6 -6
  203. package/src/components/table/table-sort.js +2 -2
  204. package/src/components/tabs/QRouteTab.json +2 -3
  205. package/src/components/tabs/QTabs.js +4 -4
  206. package/src/components/tabs/use-tab.js +11 -8
  207. package/src/components/time/QTime.js +5 -5
  208. package/src/components/tooltip/QTooltip.js +12 -12
  209. package/src/components/uploader/uploader-core.js +11 -10
  210. package/src/components/virtual-scroll/QVirtualScroll.js +3 -3
  211. package/src/components/virtual-scroll/use-virtual-scroll.js +20 -20
  212. package/src/composables/private/use-field.js +25 -17
  213. package/src/composables/private/use-file-dom-props.js +5 -5
  214. package/src/composables/private/use-file.js +15 -12
  215. package/src/composables/private/use-file.json +1 -3
  216. package/src/composables/private/use-router-link.js +3 -3
  217. package/src/directives/Morph.js +12 -3
  218. package/src/directives/TouchHold.json +2 -3
  219. package/src/directives/TouchPan.json +2 -3
  220. package/src/directives/TouchRepeat.json +2 -3
  221. package/src/directives/TouchSwipe.json +2 -3
  222. package/src/install-quasar.js +37 -36
  223. package/src/plugins/AddressbarColor.js +7 -7
  224. package/src/plugins/Cookies.js +5 -1
  225. package/src/plugins/Dialog.json +3 -2
  226. package/src/plugins/Loading.js +3 -2
  227. package/src/plugins/LoadingBar.js +12 -5
  228. package/src/plugins/Notify.js +11 -4
  229. package/src/plugins/Notify.json +102 -2
  230. package/src/utils/create-meta-mixin.js +4 -4
  231. package/src/utils/create-uploader-component.js +2 -1
  232. package/src/utils/event.js +3 -3
  233. package/src/utils/extend.js +6 -34
  234. package/src/utils/morph.js +19 -17
  235. package/src/utils/private/is.js +3 -14
  236. package/src/utils/private/noop-ssr-directive-transform.js +1 -1
  237. package/src/utils/private/web-storage.js +3 -2
  238. package/wrappers/index.js +33 -5
  239. package/wrappers/index.mjs +63 -0
  240. package/dist/ssr-directives/Morph.js +0 -55
  241. package/dist/ssr-directives/index.js +0 -14
  242. package/src/directives/Morph.ssr.js +0 -45
@@ -337,7 +337,7 @@ export default createComponent({
337
337
  itemProps[ 'aria-selected' ] = itemProps.active === true ? 'true' : 'false'
338
338
 
339
339
  if ($q.platform.is.desktop === true) {
340
- itemProps.onMousemove = () => { setOptionIndex(index) }
340
+ itemProps.onMousemove = () => { menu.value === true && setOptionIndex(index) }
341
341
  }
342
342
  }
343
343
 
@@ -602,7 +602,7 @@ export default createComponent({
602
602
 
603
603
  return typeof val === 'function'
604
604
  ? val
605
- : opt => (Object(opt) === opt && val in opt ? opt[ val ] : opt)
605
+ : opt => (opt !== null && typeof opt === 'object' && val in opt ? opt[ val ] : opt)
606
606
  }
607
607
 
608
608
  function isOptionSelected (opt) {
@@ -975,6 +975,8 @@ export default createComponent({
975
975
  }
976
976
 
977
977
  function getInput (fromDialog, isTarget) {
978
+ const attrs = isTarget === true ? { ...comboboxAttrs.value, ...state.splitAttrs.attributes.value } : void 0
979
+
978
980
  const data = {
979
981
  ref: isTarget === true ? targetRef : void 0,
980
982
  key: 'i_t',
@@ -983,8 +985,7 @@ export default createComponent({
983
985
  value: inputValue.value !== void 0 ? inputValue.value : '',
984
986
  // required for Android in order to show ENTER key when in form
985
987
  type: 'search',
986
- ...comboboxAttrs.value,
987
- ...state.splitAttrs.attributes.value,
988
+ ...attrs,
988
989
  id: isTarget === true ? state.targetUid.value : void 0,
989
990
  maxlength: props.maxlength,
990
991
  autocomplete: props.autocomplete,
@@ -1385,6 +1386,7 @@ export default createComponent({
1385
1386
  Object.assign(proxy, {
1386
1387
  showPopup, hidePopup,
1387
1388
  removeAtIndex, add, toggleOption,
1389
+ getOptionIndex: () => optionIndex.value,
1388
1390
  setOptionIndex, moveOptionSelection,
1389
1391
  filter, updateMenuPosition, updateInputValue,
1390
1392
  isOptionSelected,
@@ -1463,13 +1465,16 @@ export default createComponent({
1463
1465
  }
1464
1466
  // there can be only one (when dialog is opened the control in dialog should be target)
1465
1467
  else if (state.editable.value === true) {
1468
+ const attrs = isTarget === true ? comboboxAttrs.value : void 0
1469
+
1466
1470
  child.push(
1467
- h('div', {
1471
+ h('input', {
1468
1472
  ref: isTarget === true ? targetRef : void 0,
1469
1473
  key: 'd_t',
1470
1474
  class: 'q-select__focus-target',
1471
1475
  id: isTarget === true ? state.targetUid.value : void 0,
1472
- ...comboboxAttrs.value,
1476
+ readonly: true,
1477
+ ...attrs,
1473
1478
  onKeydown: onTargetKeydown,
1474
1479
  onKeyup: onTargetKeyup,
1475
1480
  onKeypress: onTargetKeypress
@@ -1499,9 +1504,11 @@ export default createComponent({
1499
1504
  )
1500
1505
  }
1501
1506
 
1507
+ const attrs = props.useInput === true || isTarget !== true ? void 0 : state.splitAttrs.attributes.value
1508
+
1502
1509
  return h('div', {
1503
1510
  class: 'q-field__native row items-center',
1504
- ...state.splitAttrs.attributes.value
1511
+ ...attrs
1505
1512
  }, child)
1506
1513
  },
1507
1514
 
@@ -628,9 +628,7 @@
628
628
  "desc": "Emitted when the select options menu or dialog is shown.",
629
629
  "params": {
630
630
  "evt": {
631
- "type": "Object",
632
- "desc": "JS event object",
633
- "__exemption": [ "examples" ]
631
+ "extends": "evt"
634
632
  }
635
633
  }
636
634
  },
@@ -639,9 +637,7 @@
639
637
  "desc": "Emitted when the select options menu or dialog is hidden.",
640
638
  "params": {
641
639
  "evt": {
642
- "type": "Object",
643
- "desc": "JS event object",
644
- "__exemption": [ "examples" ]
640
+ "extends": "evt"
645
641
  }
646
642
  }
647
643
  },
@@ -718,13 +714,23 @@
718
714
  }
719
715
  },
720
716
 
717
+ "getOptionIndex": {
718
+ "desc": "Gets current focused option index from menu; It's -1 if no option is focused",
719
+ "returns": {
720
+ "type": "Number",
721
+ "desc": "Index of option from menu; It's -1 if no option is focused",
722
+ "examples": [ -1, 0, 10 ]
723
+ },
724
+ "addedIn": "v2.5.4"
725
+ },
726
+
721
727
  "setOptionIndex": {
722
- "desc": "Sets option from menu as 'focused'",
728
+ "desc": "Sets option from menu as 'focused'; -1 to focus none",
723
729
  "params": {
724
730
  "index": {
725
731
  "type": "Number",
726
732
  "required": true,
727
- "desc": "Index of option from menu",
733
+ "desc": "Index of option from menu; -1 to focus none",
728
734
  "examples": [ 10 ]
729
735
  }
730
736
  }
@@ -65,8 +65,8 @@ export default createComponent({
65
65
 
66
66
  timer = setTimeout(() => {
67
67
  el.style.height = `${ el.scrollHeight }px`
68
- animListener = ev => {
69
- if (Object(ev) !== ev || ev.target === el) {
68
+ animListener = evt => {
69
+ if (Object(evt) !== evt || evt.target === el) {
70
70
  end(el, 'show')
71
71
  }
72
72
  }
@@ -91,8 +91,8 @@ export default createComponent({
91
91
 
92
92
  timer = setTimeout(() => {
93
93
  el.style.height = 0
94
- animListener = ev => {
95
- if (Object(ev) !== ev || ev.target === el) {
94
+ animListener = evt => {
95
+ if (Object(evt) !== evt || evt.target === el) {
96
96
  end(el, 'hide')
97
97
  }
98
98
  }
@@ -7,7 +7,7 @@ import { useFormProps, useFormInject } from '../../composables/private/use-form.
7
7
 
8
8
  import { between } from '../../utils/format.js'
9
9
  import { position } from '../../utils/event.js'
10
- import { isNumber } from '../../utils/private/is.js'
10
+ import { isNumber, isObject } from '../../utils/private/is.js'
11
11
  import { hDir } from '../../utils/private/render.js'
12
12
 
13
13
  const markerPrefixClass = 'q-slider__marker-labels'
@@ -340,7 +340,7 @@ export default function ({ updateValue, updatePosition, getDragging, formAttrs }
340
340
  if (typeof def === 'function') {
341
341
  return markerTicks.value.map(value => {
342
342
  const item = def(value)
343
- return Object(item) === item ? { ...item, value } : { value, label: item }
343
+ return isObject(item) === true ? { ...item, value } : { value, label: item }
344
344
  })
345
345
  }
346
346
 
@@ -348,14 +348,14 @@ export default function ({ updateValue, updatePosition, getDragging, formAttrs }
348
348
 
349
349
  if (Array.isArray(def) === true) {
350
350
  return def
351
- .map(item => (Object(item) === item ? item : { value: item }))
351
+ .map(item => (isObject(item) === true ? item : { value: item }))
352
352
  .filter(filterFn)
353
353
  }
354
354
 
355
355
  return Object.keys(def).map(key => {
356
356
  const item = def[ key ]
357
357
  const value = Number(key)
358
- return Object(item) === item ? { ...item, value } : { value, label: item }
358
+ return isObject(item) === true ? { ...item, value } : { value, label: item }
359
359
  }).filter(filterFn)
360
360
  }
361
361
 
@@ -29,7 +29,7 @@
29
29
  "inner-max": {
30
30
  "type": "Number",
31
31
  "desc": "Inner maximum value of the model; Use in case you need the model value to be inside of the track's min-max values; Needs to be lower or equal to 'max' prop; Defaults to 'max' prop",
32
- "examples": [ ":max-value=\"100\"" ],
32
+ "examples": [ ":inner-max=\"100\"" ],
33
33
  "category": "model",
34
34
  "addedIn": "v2.4"
35
35
  },
@@ -75,14 +75,14 @@ export default createComponent({
75
75
  || $stepper.value.vertical !== true
76
76
  ? {}
77
77
  : {
78
- onScroll (e) {
79
- const { target } = e
80
- if (target.scrollTop > 0) {
81
- target.scrollTop = 0
78
+ onScroll (e) {
79
+ const { target } = e
80
+ if (target.scrollTop > 0) {
81
+ target.scrollTop = 0
82
+ }
83
+ attrs.onScroll !== void 0 && attrs.onScroll(e)
82
84
  }
83
- attrs.onScroll !== void 0 && attrs.onScroll(e)
84
85
  }
85
- }
86
86
  ))
87
87
 
88
88
  const contentKey = computed(() => (
@@ -45,6 +45,7 @@
45
45
 
46
46
  "done-icon": {
47
47
  "extends": "icon",
48
+ "desc": "Icon name following Quasar convention; If 'none' (String) is used as value, then it will defer to prefix or the regular icon for this state; Make sure you have the icon library installed unless you are using 'img:' prefix",
48
49
  "category": "header"
49
50
  },
50
51
 
@@ -55,6 +56,7 @@
55
56
 
56
57
  "active-icon": {
57
58
  "extends": "icon",
59
+ "desc": "Icon name following Quasar convention; If 'none' (String) is used as value, then it will defer to prefix or the regular icon for this state; Make sure you have the icon library installed unless you are using 'img:' prefix",
58
60
  "category": "header"
59
61
  },
60
62
 
@@ -65,6 +67,7 @@
65
67
 
66
68
  "error-icon": {
67
69
  "extends": "icon",
70
+ "desc": "Icon name following Quasar convention; If 'none' (String) is used as value, then it will defer to prefix or the regular icon for this state; Make sure you have the icon library installed unless you are using 'img:' prefix",
68
71
  "category": "header"
69
72
  },
70
73
 
@@ -54,6 +54,7 @@
54
54
 
55
55
  "done-icon": {
56
56
  "extends": "icon",
57
+ "desc": "Icon name following Quasar convention; If 'none' (String) is used as value, then it will defer to prefix or the regular icon for this state; Make sure you have the icon library installed unless you are using 'img:' prefix",
57
58
  "category": "header"
58
59
  },
59
60
 
@@ -64,6 +65,7 @@
64
65
 
65
66
  "active-icon": {
66
67
  "extends": "icon",
68
+ "desc": "Icon name following Quasar convention; If 'none' (String) is used as value, then it will defer to prefix or the regular icon for this state; Make sure you have the icon library installed unless you are using 'img:' prefix",
67
69
  "category": "header"
68
70
  },
69
71
 
@@ -74,6 +76,7 @@
74
76
 
75
77
  "error-icon": {
76
78
  "extends": "icon",
79
+ "desc": "Icon name following Quasar convention; If 'none' (String) is used as value, then it will defer to prefix or the regular icon for this state; Make sure you have the icon library installed unless you are using 'img:' prefix",
77
80
  "category": "header"
78
81
  },
79
82
 
@@ -52,6 +52,7 @@
52
52
  &--error
53
53
  color: var(--q-negative)
54
54
 
55
+ &--error-with-icon
55
56
  .q-stepper__dot
56
57
  background: transparent !important
57
58
  span
@@ -47,23 +47,36 @@ export default createComponent({
47
47
 
48
48
  const hasPrefix = computed(() => {
49
49
  return props.step.prefix
50
- && isActive.value === false
51
- && isError.value === false
52
- && isDone.value === false
50
+ && (isActive.value === false || props.stepper.activeIcon === 'none')
51
+ && (isError.value === false || props.stepper.errorIcon === 'none')
52
+ && (isDone.value === false || props.stepper.doneIcon === 'none')
53
53
  })
54
54
 
55
55
  const icon = computed(() => {
56
+ const defaultIcon = props.step.icon || props.stepper.inactiveIcon
57
+
56
58
  if (isActive.value === true) {
57
- return props.step.activeIcon || props.stepper.activeIcon || $q.iconSet.stepper.active
59
+ const icon = props.step.activeIcon || props.stepper.activeIcon
60
+ return icon === 'none'
61
+ ? defaultIcon
62
+ : icon || $q.iconSet.stepper.active
58
63
  }
64
+
59
65
  if (isError.value === true) {
60
- return props.step.errorIcon || props.stepper.errorIcon || $q.iconSet.stepper.error
66
+ const icon = props.step.errorIcon || props.stepper.errorIcon
67
+ return icon === 'none'
68
+ ? defaultIcon
69
+ : icon || $q.iconSet.stepper.error
61
70
  }
71
+
62
72
  if (isDisable.value === false && isDone.value === true) {
63
- return props.step.doneIcon || props.stepper.doneIcon || $q.iconSet.stepper.done
73
+ const icon = props.step.doneIcon || props.stepper.doneIcon
74
+ return icon === 'none'
75
+ ? defaultIcon
76
+ : icon || $q.iconSet.stepper.done
64
77
  }
65
78
 
66
- return props.step.icon || props.stepper.inactiveIcon
79
+ return defaultIcon
67
80
  })
68
81
 
69
82
  const color = computed(() => {
@@ -90,7 +103,9 @@ export default createComponent({
90
103
  const classes = computed(() => {
91
104
  return 'q-stepper__tab col-grow flex items-center no-wrap relative-position'
92
105
  + (color.value !== void 0 ? ` text-${ color.value }` : '')
93
- + (isError.value === true ? ' q-stepper__tab--error' : '')
106
+ + (isError.value === true
107
+ ? ' q-stepper__tab--error q-stepper__tab--error-with-' + (hasPrefix.value === true ? 'prefix' : 'icon')
108
+ : '')
94
109
  + (isActive.value === true ? ' q-stepper__tab--active' : '')
95
110
  + (isDone.value === true ? ' q-stepper__tab--done' : '')
96
111
  + (headerNav.value === true ? ' q-stepper__tab--navigation q-focusable q-hoverable' : '')
@@ -1867,9 +1867,7 @@
1867
1867
  "desc": "Emitted when user clicks/taps on a row; Is not emitted when using body/row/item scoped slots",
1868
1868
  "params": {
1869
1869
  "evt": {
1870
- "type": "Object",
1871
- "desc": "JS event object",
1872
- "__exemption": [ "examples" ]
1870
+ "extends": "evt"
1873
1871
  },
1874
1872
 
1875
1873
  "row": {
@@ -1890,9 +1888,7 @@
1890
1888
  "desc": "Emitted when user quickly double clicks/taps on a row; Is not emitted when using body/row/item scoped slots; Please check JS dblclick event support before using",
1891
1889
  "params": {
1892
1890
  "evt": {
1893
- "type": "Object",
1894
- "desc": "JS event object",
1895
- "__exemption": [ "examples" ]
1891
+ "extends": "evt"
1896
1892
  },
1897
1893
 
1898
1894
  "row": {
@@ -1913,9 +1909,7 @@
1913
1909
  "desc": "Emitted when user right clicks/long taps on a row; Is not emitted when using body/row/item scoped slots",
1914
1910
  "params": {
1915
1911
  "evt": {
1916
- "type": "Object",
1917
- "desc": "JS event object",
1918
- "__exemption": [ "examples" ]
1912
+ "extends": "evt"
1919
1913
  },
1920
1914
 
1921
1915
  "row": {
@@ -2075,10 +2069,8 @@
2075
2069
  "desc": "Were the rows added to selection (true) or removed from selection (false)"
2076
2070
  },
2077
2071
  "evt": {
2078
- "type": "Object",
2079
- "required": true,
2080
- "desc": "JS event object",
2081
- "__exemption": [ "examples" ]
2072
+ "extends": "evt",
2073
+ "required": true
2082
2074
  }
2083
2075
  }
2084
2076
  }
@@ -17,12 +17,12 @@ export function useTableColumnSelection (props, computedPagination, hasSelection
17
17
 
18
18
  return row !== void 0
19
19
  ? Object.keys(row).map(name => ({
20
- name,
21
- label: name.toUpperCase(),
22
- field: name,
23
- align: isNumber(row[ name ]) ? 'right' : 'left',
24
- sortable: true
25
- }))
20
+ name,
21
+ label: name.toUpperCase(),
22
+ field: name,
23
+ align: isNumber(row[ name ]) ? 'right' : 'left',
24
+ sortable: true
25
+ }))
26
26
  : []
27
27
  })
28
28
 
@@ -1,7 +1,7 @@
1
1
  import { computed } from 'vue'
2
2
 
3
3
  import { sortDate } from '../../utils/private/sort.js'
4
- import { isNumber, isDate } from '../../utils/private/is.js'
4
+ import { isNumber, isDate, isObject } from '../../utils/private/is.js'
5
5
 
6
6
  export const useTableSortProps = {
7
7
  sortMethod: Function,
@@ -73,7 +73,7 @@ export function useTableSort (props, computedPagination, colList, setPagination)
73
73
  function sort (col /* String(col name) or Object(col definition) */) {
74
74
  let sortOrder = props.columnSortOrder
75
75
 
76
- if (col === Object(col)) {
76
+ if (isObject(col) === true) {
77
77
  if (col.sortOrder) {
78
78
  sortOrder = col.sortOrder
79
79
  }
@@ -10,9 +10,8 @@
10
10
  "desc": "Emitted when component is clicked (activated)",
11
11
  "params": {
12
12
  "evt": {
13
- "type": "Object",
14
- "desc": "JS event object; If you want to cancel navigation set synchronously 'evt.navigate' to false",
15
- "__exemption": [ "examples" ]
13
+ "extends": "evt",
14
+ "desc": "JS event object; If you want to cancel navigation set synchronously 'evt.navigate' to false"
16
15
  },
17
16
  "navigateFn": {
18
17
  "type": "Function",
@@ -423,11 +423,11 @@ export default createComponent({
423
423
  let wasItActive = wasActive === true
424
424
  ? emptyFn
425
425
  : tab => {
426
- if (model === tab.name.value) {
427
- wasActive = true
428
- wasItActive = emptyFn
429
- }
426
+ if (model === tab.name.value) {
427
+ wasActive = true
428
+ wasItActive = emptyFn
430
429
  }
430
+ }
431
431
 
432
432
  const tabList = getRouteList()
433
433
 
@@ -108,9 +108,12 @@ export default function (props, slots, emit, routerProps) {
108
108
  $tabs.avoidRouteWatcher = false
109
109
  }
110
110
  else {
111
- res.then(() => {
111
+ res.then(err => {
112
112
  $tabs.avoidRouteWatcher = false
113
- $tabs.updateModel({ name: props.name, fromRoute: true })
113
+
114
+ if (err === void 0) {
115
+ $tabs.updateModel({ name: props.name, fromRoute: true })
116
+ }
114
117
  })
115
118
  }
116
119
  }
@@ -167,12 +170,12 @@ export default function (props, slots, emit, routerProps) {
167
170
  props.alert !== false && content.push(
168
171
  props.alertIcon !== void 0
169
172
  ? h(QIcon, {
170
- class: 'q-tab__alert-icon',
171
- color: props.alert !== true
172
- ? props.alert
173
- : void 0,
174
- name: props.alertIcon
175
- })
173
+ class: 'q-tab__alert-icon',
174
+ color: props.alert !== true
175
+ ? props.alert
176
+ : void 0,
177
+ name: props.alertIcon
178
+ })
176
179
  : h('div', {
177
180
  class: 'q-tab__alert'
178
181
  + (props.alert !== true ? ` text-${ props.alert }` : '')
@@ -86,12 +86,14 @@ export default createComponent({
86
86
  const mask = computed(() => getMask())
87
87
  const locale = computed(() => getLocale())
88
88
 
89
+ const defaultDateModel = computed(() => getDefaultDateModel())
90
+
89
91
  const model = __splitDate(
90
92
  props.modelValue,
91
- getMask(),
92
- getLocale(),
93
+ mask.value, // initial mask
94
+ locale.value, // initial locale
93
95
  props.calendar,
94
- getDefaultDateModel()
96
+ defaultDateModel.value
95
97
  )
96
98
 
97
99
  const view = ref(getViewByModel(model))
@@ -131,8 +133,6 @@ export default createComponent({
131
133
  }
132
134
  })
133
135
 
134
- const defaultDateModel = computed(() => getDefaultDateModel())
135
-
136
136
  const computedFormat24h = computed(() => (
137
137
  props.format24h !== null
138
138
  ? props.format24h
@@ -280,18 +280,18 @@ export default createComponent({
280
280
  function getTooltipContent () {
281
281
  return showing.value === true
282
282
  ? h('div', {
283
- ...attrs,
284
- ref: innerRef,
285
- class: [
286
- 'q-tooltip q-tooltip--style q-position-engine no-pointer-events',
287
- attrs.class
288
- ],
289
- style: [
290
- attrs.style,
291
- transitionStyle.value
292
- ],
293
- role: 'complementary'
294
- }, hSlot(slots.default))
283
+ ...attrs,
284
+ ref: innerRef,
285
+ class: [
286
+ 'q-tooltip q-tooltip--style q-position-engine no-pointer-events',
287
+ attrs.class
288
+ ],
289
+ style: [
290
+ attrs.style,
291
+ transitionStyle.value
292
+ ],
293
+ role: 'complementary'
294
+ }, hSlot(slots.default))
295
295
  : null
296
296
  }
297
297
 
@@ -108,6 +108,7 @@ export function getRenderer (getPlugin) {
108
108
  pickFiles,
109
109
  addFiles,
110
110
  onDragover,
111
+ onDragleave,
111
112
  processFiles,
112
113
  getDndNode,
113
114
  maxFilesNumber,
@@ -387,10 +388,10 @@ export function getRenderer (getPlugin) {
387
388
  }, [
388
389
  file.__status === 'failed'
389
390
  ? h(QIcon, {
390
- class: 'q-uploader__file-status',
391
- name: $q.iconSet.type.negative,
392
- color: 'negative'
393
- })
391
+ class: 'q-uploader__file-status',
392
+ name: $q.iconSet.type.negative,
393
+ color: 'negative'
394
+ })
394
395
  : null,
395
396
 
396
397
  h('div', { class: 'q-uploader__file-header-content col' }, [
@@ -404,11 +405,11 @@ export function getRenderer (getPlugin) {
404
405
 
405
406
  file.__status === 'uploading'
406
407
  ? h(QCircularProgress, {
407
- value: file.__progress,
408
- min: 0,
409
- max: 1,
410
- indeterminate: file.__progress === 0
411
- })
408
+ value: file.__progress,
409
+ min: 0,
410
+ max: 1,
411
+ indeterminate: file.__progress === 0
412
+ })
412
413
  : h(QBtn, {
413
414
  round: true,
414
415
  dense: true,
@@ -477,7 +478,7 @@ export function getRenderer (getPlugin) {
477
478
  const data = { ref: rootRef, class: classes.value }
478
479
 
479
480
  if (canAddFiles.value === true) {
480
- data.onDragover = onDragover
481
+ Object.assign(data, { onDragover, onDragleave })
481
482
  }
482
483
 
483
484
  return h('div', data, children)
@@ -148,9 +148,9 @@ export default createComponent({
148
148
 
149
149
  return props.type === '__qtable'
150
150
  ? getTableMiddle(
151
- { ref: rootRef, class: 'q-table__middle ' + classes.value },
152
- __getVirtualChildren()
153
- )
151
+ { ref: rootRef, class: 'q-table__middle ' + classes.value },
152
+ __getVirtualChildren()
153
+ )
154
154
  : h(comps[ props.type ], {
155
155
  ...attrs,
156
156
  ref: rootRef,
@@ -622,17 +622,17 @@ export function useVirtualScroll ({
622
622
  return [
623
623
  tag === 'tbody'
624
624
  ? h(tag, {
625
- class: 'q-virtual-scroll__padding',
626
- key: 'before',
627
- ref: beforeRef
628
- }, [
629
- h('tr', [
630
- h('td', {
631
- style: { [ paddingSize ]: `${ virtualScrollPaddingBefore.value }px`, ...style },
632
- colspan: colspanAttr.value
633
- })
634
- ])
625
+ class: 'q-virtual-scroll__padding',
626
+ key: 'before',
627
+ ref: beforeRef
628
+ }, [
629
+ h('tr', [
630
+ h('td', {
631
+ style: { [ paddingSize ]: `${ virtualScrollPaddingBefore.value }px`, ...style },
632
+ colspan: colspanAttr.value
633
+ })
635
634
  ])
635
+ ])
636
636
  : h(tag, {
637
637
  class: 'q-virtual-scroll__padding',
638
638
  key: 'before',
@@ -650,17 +650,17 @@ export function useVirtualScroll ({
650
650
 
651
651
  tag === 'tbody'
652
652
  ? h(tag, {
653
- class: 'q-virtual-scroll__padding',
654
- key: 'after',
655
- ref: afterRef
656
- }, [
657
- h('tr', [
658
- h('td', {
659
- style: { [ paddingSize ]: `${ virtualScrollPaddingAfter.value }px`, ...style },
660
- colspan: colspanAttr.value
661
- })
662
- ])
653
+ class: 'q-virtual-scroll__padding',
654
+ key: 'after',
655
+ ref: afterRef
656
+ }, [
657
+ h('tr', [
658
+ h('td', {
659
+ style: { [ paddingSize ]: `${ virtualScrollPaddingAfter.value }px`, ...style },
660
+ colspan: colspanAttr.value
661
+ })
663
662
  ])
663
+ ])
664
664
  : h(tag, {
665
665
  class: 'q-virtual-scroll__padding',
666
666
  key: 'after',