quasar 2.6.1 → 2.6.4

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 (137) hide show
  1. package/dist/api/Notify.json +68 -734
  2. package/dist/api/QBreadcrumbsEl.json +5 -5
  3. package/dist/api/QBtn.json +2 -2
  4. package/dist/api/QBtnDropdown.json +2 -2
  5. package/dist/api/QExpansionItem.json +5 -5
  6. package/dist/api/QItem.json +5 -5
  7. package/dist/api/QRouteTab.json +5 -5
  8. package/dist/api/QTable.json +14 -0
  9. package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
  10. package/dist/icon-set/eva-icons.umd.prod.js +1 -1
  11. package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
  12. package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
  13. package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +1 -1
  14. package/dist/icon-set/fontawesome-v6.umd.prod.js +1 -1
  15. package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
  16. package/dist/icon-set/line-awesome.umd.prod.js +1 -1
  17. package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
  18. package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
  19. package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
  20. package/dist/icon-set/material-icons.umd.prod.js +1 -1
  21. package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
  22. package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
  23. package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
  24. package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
  25. package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
  26. package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
  27. package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +6 -0
  28. package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +1 -1
  29. package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
  30. package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
  31. package/dist/icon-set/svg-ionicons-v6.umd.prod.js +1 -1
  32. package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
  33. package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
  34. package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
  35. package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
  36. package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
  37. package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
  38. package/dist/icon-set/svg-themify.umd.prod.js +1 -1
  39. package/dist/icon-set/themify.umd.prod.js +1 -1
  40. package/dist/lang/ar-TN.umd.prod.js +6 -0
  41. package/dist/lang/ar.umd.prod.js +1 -1
  42. package/dist/lang/az-Latn.umd.prod.js +1 -1
  43. package/dist/lang/bg.umd.prod.js +1 -1
  44. package/dist/lang/bn.umd.prod.js +1 -1
  45. package/dist/lang/ca.umd.prod.js +1 -1
  46. package/dist/lang/cs.umd.prod.js +1 -1
  47. package/dist/lang/da.umd.prod.js +1 -1
  48. package/dist/lang/de.umd.prod.js +1 -1
  49. package/dist/lang/el.umd.prod.js +1 -1
  50. package/dist/lang/en-GB.umd.prod.js +1 -1
  51. package/dist/lang/en-US.umd.prod.js +1 -1
  52. package/dist/lang/eo.umd.prod.js +1 -1
  53. package/dist/lang/es.umd.prod.js +1 -1
  54. package/dist/lang/et.umd.prod.js +1 -1
  55. package/dist/lang/eu.umd.prod.js +1 -1
  56. package/dist/lang/fa-IR.umd.prod.js +1 -1
  57. package/dist/lang/fa.umd.prod.js +1 -1
  58. package/dist/lang/fi.umd.prod.js +1 -1
  59. package/dist/lang/fr.umd.prod.js +1 -1
  60. package/dist/lang/gn.umd.prod.js +1 -1
  61. package/dist/lang/he.umd.prod.js +1 -1
  62. package/dist/lang/hr.umd.prod.js +1 -1
  63. package/dist/lang/hu.umd.prod.js +1 -1
  64. package/dist/lang/id.umd.prod.js +1 -1
  65. package/dist/lang/is.umd.prod.js +1 -1
  66. package/dist/lang/it.umd.prod.js +1 -1
  67. package/dist/lang/ja.umd.prod.js +1 -1
  68. package/dist/lang/km.umd.prod.js +1 -1
  69. package/dist/lang/ko-KR.umd.prod.js +1 -1
  70. package/dist/lang/kur-CKB.umd.prod.js +1 -1
  71. package/dist/lang/kz.umd.prod.js +1 -1
  72. package/dist/lang/lt.umd.prod.js +1 -1
  73. package/dist/lang/lu.umd.prod.js +1 -1
  74. package/dist/lang/lv.umd.prod.js +1 -1
  75. package/dist/lang/ml.umd.prod.js +1 -1
  76. package/dist/lang/ms.umd.prod.js +1 -1
  77. package/dist/lang/my.umd.prod.js +1 -1
  78. package/dist/lang/nb-NO.umd.prod.js +1 -1
  79. package/dist/lang/nl.umd.prod.js +1 -1
  80. package/dist/lang/pl.umd.prod.js +1 -1
  81. package/dist/lang/pt-BR.umd.prod.js +1 -1
  82. package/dist/lang/pt.umd.prod.js +1 -1
  83. package/dist/lang/ro.umd.prod.js +1 -1
  84. package/dist/lang/ru.umd.prod.js +1 -1
  85. package/dist/lang/sk.umd.prod.js +1 -1
  86. package/dist/lang/sl.umd.prod.js +1 -1
  87. package/dist/lang/sr-CYR.umd.prod.js +1 -1
  88. package/dist/lang/sr.umd.prod.js +1 -1
  89. package/dist/lang/sv.umd.prod.js +1 -1
  90. package/dist/lang/ta.umd.prod.js +1 -1
  91. package/dist/lang/th.umd.prod.js +1 -1
  92. package/dist/lang/tr.umd.prod.js +1 -1
  93. package/dist/lang/ug.umd.prod.js +1 -1
  94. package/dist/lang/uk.umd.prod.js +1 -1
  95. package/dist/lang/vi.umd.prod.js +1 -1
  96. package/dist/lang/zh-CN.umd.prod.js +1 -1
  97. package/dist/lang/zh-TW.umd.prod.js +1 -1
  98. package/dist/quasar.cjs.prod.js +2 -2
  99. package/dist/quasar.css +12 -20
  100. package/dist/quasar.esm.prod.js +2 -2
  101. package/dist/quasar.prod.css +1 -1
  102. package/dist/quasar.rtl.css +27 -39
  103. package/dist/quasar.rtl.prod.css +1 -1
  104. package/dist/quasar.sass +9 -15
  105. package/dist/quasar.umd.js +88 -33
  106. package/dist/quasar.umd.prod.js +2 -2
  107. package/dist/types/api/qnotify.d.ts +9 -0
  108. package/dist/types/api.d.ts +1 -0
  109. package/dist/types/index.d.ts +176 -753
  110. package/dist/vetur/quasar-attributes.json +28 -24
  111. package/dist/vetur/quasar-tags.json +1 -0
  112. package/dist/web-types/web-types.json +34 -25
  113. package/icon-set/svg-fontawesome-v5.js +197 -0
  114. package/icon-set/svg-fontawesome-v5.mjs +197 -0
  115. package/lang/ar-TN.js +101 -0
  116. package/lang/ar-TN.mjs +96 -0
  117. package/lang/index.json +4 -0
  118. package/package.json +7 -5
  119. package/src/components/btn/use-btn.json +2 -2
  120. package/src/components/checkbox/QCheckbox.js +1 -1
  121. package/src/components/checkbox/QCheckbox.sass +5 -9
  122. package/src/components/dialog-plugin/DialogPlugin.js +4 -4
  123. package/src/components/editor/editor-caret.js +1 -1
  124. package/src/components/fab/QFab.js +1 -1
  125. package/src/components/icon/QIcon.js +3 -4
  126. package/src/components/radio/QRadio.js +1 -1
  127. package/src/components/radio/QRadio.sass +5 -9
  128. package/src/components/select/QSelect.js +15 -0
  129. package/src/components/table/QTable.js +4 -0
  130. package/src/components/table/QTable.json +4 -0
  131. package/src/components/table/QTh.js +5 -2
  132. package/src/components/virtual-scroll/QVirtualScroll.js +9 -1
  133. package/src/composables/private/__tests__/use-transition.spec.js +2 -2
  134. package/src/composables/private/use-router-link.json +5 -5
  135. package/src/plugins/Notify.json +55 -533
  136. package/src/utils/date.js +8 -12
  137. package/src/utils/extend.js +33 -5
@@ -71,6 +71,9 @@ export default createComponent({
71
71
  wrapCells: Boolean,
72
72
 
73
73
  virtualScroll: Boolean,
74
+ virtualScrollTarget: {
75
+ default: void 0
76
+ },
74
77
  ...commonVirtPropsObj,
75
78
 
76
79
  noDataLabel: String,
@@ -313,6 +316,7 @@ export default createComponent({
313
316
  class: props.tableClass,
314
317
  style: props.tableStyle,
315
318
  ...virtProps.value,
319
+ scrollTarget: props.virtualScrollTarget,
316
320
  items: computedRows.value,
317
321
  type: '__qtable',
318
322
  tableColspan: computedColspan.value,
@@ -39,6 +39,10 @@
39
39
  "category": "virtual-scroll"
40
40
  },
41
41
 
42
+ "virtual-scroll-target": {
43
+ "extends": "scroll-target"
44
+ },
45
+
42
46
  "virtual-scroll-slice-size": {
43
47
  "type": [ "Number", "String" ],
44
48
  "desc": "Minimum number of rows to render in the virtual list",
@@ -19,10 +19,13 @@ export default createComponent({
19
19
  const vm = getCurrentInstance()
20
20
  const { proxy: { $q } } = vm
21
21
 
22
+ const onClick = evt => { emit('click', evt) }
23
+
22
24
  return () => {
23
25
  if (props.props === void 0) {
24
26
  return h('th', {
25
- class: props.autoWidth === true ? 'q-table--col-auto-width' : ''
27
+ class: props.autoWidth === true ? 'q-table--col-auto-width' : '',
28
+ onClick
26
29
  }, hSlot(slots.default))
27
30
  }
28
31
 
@@ -60,7 +63,7 @@ export default createComponent({
60
63
  style: col.headerStyle,
61
64
  onClick: evt => {
62
65
  col.sortable === true && props.props.sort(col) // eslint-disable-line
63
- emit('click', evt)
66
+ onClick(evt)
64
67
  }
65
68
  }
66
69
 
@@ -1,4 +1,4 @@
1
- import { h, ref, computed, watch, onBeforeMount, onMounted, onBeforeUnmount } from 'vue'
1
+ import { h, ref, computed, watch, onBeforeMount, onMounted, onBeforeUnmount, onActivated, onDeactivated } from 'vue'
2
2
 
3
3
  import QList from '../item/QList.js'
4
4
  import QMarkupTable from '../markup-table/QMarkupTable.js'
@@ -136,6 +136,14 @@ export default createComponent({
136
136
  configureScrollTarget()
137
137
  })
138
138
 
139
+ onActivated(() => {
140
+ configureScrollTarget()
141
+ })
142
+
143
+ onDeactivated(() => {
144
+ unconfigureScrollTarget()
145
+ })
146
+
139
147
  onBeforeUnmount(() => {
140
148
  unconfigureScrollTarget()
141
149
  })
@@ -13,7 +13,7 @@ describe('use-transition API', () => {
13
13
  .should('have.class', 'q-transition--fade-enter-active')
14
14
  })
15
15
 
16
- it('should use a different show transtion if defined', () => {
16
+ it('should use a different show transition if defined', () => {
17
17
  const transition = 'scale'
18
18
  mount(WrapperOne, {
19
19
  attrs: {
@@ -40,7 +40,7 @@ describe('use-transition API', () => {
40
40
  .should('have.class', 'q-transition--fade-leave-active')
41
41
  })
42
42
 
43
- it('should use a different hide transtion if defined', () => {
43
+ it('should use a different hide transition if defined', () => {
44
44
  const transition = 'scale'
45
45
  mount(WrapperOne, {
46
46
  attrs: {
@@ -2,7 +2,7 @@
2
2
  "props": {
3
3
  "to": {
4
4
  "type": [ "String", "Object" ],
5
- "desc": "Equivalent to Vue Router <router-link> 'to' property; Superseeded by 'href' prop if used",
5
+ "desc": "Equivalent to Vue Router <router-link> 'to' property; Superseded by 'href' prop if used",
6
6
  "examples": [
7
7
  "/home/dashboard",
8
8
  ":to=\"{ name: 'my-route-name' }\""
@@ -12,26 +12,26 @@
12
12
 
13
13
  "exact": {
14
14
  "type": "Boolean",
15
- "desc": "Equivalent to Vue Router <router-link> 'exact' property; Superseeded by 'href' prop if used",
15
+ "desc": "Equivalent to Vue Router <router-link> 'exact' property; Superseded by 'href' prop if used",
16
16
  "category": "navigation"
17
17
  },
18
18
 
19
19
  "replace": {
20
20
  "type": "Boolean",
21
- "desc": "Equivalent to Vue Router <router-link> 'replace' property; Superseeded by 'href' prop if used",
21
+ "desc": "Equivalent to Vue Router <router-link> 'replace' property; Superseded by 'href' prop if used",
22
22
  "category": "navigation"
23
23
  },
24
24
 
25
25
  "active-class": {
26
26
  "type": "String",
27
- "desc": "Equivalent to Vue Router <router-link> 'active-class' property; Superseeded by 'href' prop if used",
27
+ "desc": "Equivalent to Vue Router <router-link> 'active-class' property; Superseded by 'href' prop if used",
28
28
  "examples": [ "my-active-class" ],
29
29
  "category": "navigation"
30
30
  },
31
31
 
32
32
  "exact-active-class": {
33
33
  "type": "String",
34
- "desc": "Equivalent to Vue Router <router-link> 'active-class' property; Superseeded by 'href' prop if used",
34
+ "desc": "Equivalent to Vue Router <router-link> 'active-class' property; Superseded by 'href' prop if used",
35
35
  "examples": [ "my-exact-active-class" ],
36
36
  "category": "navigation"
37
37
  },