vuetify 2.6.5 → 2.6.8

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 (237) hide show
  1. package/dist/json/attributes.json +2 -2
  2. package/dist/json/web-types.json +7 -7
  3. package/dist/vuetify.css +48 -69
  4. package/dist/vuetify.css.map +1 -1
  5. package/dist/vuetify.js +450 -319
  6. package/dist/vuetify.js.map +1 -1
  7. package/dist/vuetify.min.css +2 -2
  8. package/dist/vuetify.min.js +2 -2
  9. package/es5/components/VAutocomplete/VAutocomplete.js +3 -3
  10. package/es5/components/VAutocomplete/VAutocomplete.js.map +1 -1
  11. package/es5/components/VBtn/VBtn.js +2 -2
  12. package/es5/components/VBtn/VBtn.js.map +1 -1
  13. package/es5/components/VCalendar/mixins/calendar-with-events.js +6 -5
  14. package/es5/components/VCalendar/mixins/calendar-with-events.js.map +1 -1
  15. package/es5/components/VCalendar/mixins/mouse.js +4 -4
  16. package/es5/components/VCalendar/mixins/mouse.js.map +1 -1
  17. package/es5/components/VCheckbox/VSimpleCheckbox.js +5 -5
  18. package/es5/components/VCheckbox/VSimpleCheckbox.js.map +1 -1
  19. package/es5/components/VCombobox/VCombobox.js +2 -2
  20. package/es5/components/VCombobox/VCombobox.js.map +1 -1
  21. package/es5/components/VDataIterator/VDataFooter.js +5 -2
  22. package/es5/components/VDataIterator/VDataFooter.js.map +1 -1
  23. package/es5/components/VDataTable/Row.js +2 -2
  24. package/es5/components/VDataTable/Row.js.map +1 -1
  25. package/es5/components/VDataTable/VDataTable.js +54 -43
  26. package/es5/components/VDataTable/VDataTable.js.map +1 -1
  27. package/es5/components/VDataTable/mixins/header.js +4 -3
  28. package/es5/components/VDataTable/mixins/header.js.map +1 -1
  29. package/es5/components/VDatePicker/VDatePicker.js +30 -6
  30. package/es5/components/VDatePicker/VDatePicker.js.map +1 -1
  31. package/es5/components/VDialog/VDialog.js +20 -17
  32. package/es5/components/VDialog/VDialog.js.map +1 -1
  33. package/es5/components/VItemGroup/VItemGroup.js +4 -2
  34. package/es5/components/VItemGroup/VItemGroup.js.map +1 -1
  35. package/es5/components/VList/VListItem.js +5 -3
  36. package/es5/components/VList/VListItem.js.map +1 -1
  37. package/es5/components/VMenu/VMenu.js +2 -2
  38. package/es5/components/VMenu/VMenu.js.map +1 -1
  39. package/es5/components/VOtpInput/VOtpInput.js +33 -64
  40. package/es5/components/VOtpInput/VOtpInput.js.map +1 -1
  41. package/es5/components/VOverflowBtn/VOverflowBtn.js +3 -0
  42. package/es5/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
  43. package/es5/components/VRadioGroup/VRadio.js +2 -1
  44. package/es5/components/VRadioGroup/VRadio.js.map +1 -1
  45. package/es5/components/VRangeSlider/VRangeSlider.js +4 -3
  46. package/es5/components/VRangeSlider/VRangeSlider.js.map +1 -1
  47. package/es5/components/VSelect/VSelect.js +10 -6
  48. package/es5/components/VSelect/VSelect.js.map +1 -1
  49. package/es5/components/VSelect/VSelectList.js +2 -1
  50. package/es5/components/VSelect/VSelectList.js.map +1 -1
  51. package/es5/components/VSkeletonLoader/VSkeletonLoader.js +4 -4
  52. package/es5/components/VSkeletonLoader/VSkeletonLoader.js.map +1 -1
  53. package/es5/components/VSlideGroup/VSlideGroup.js +43 -23
  54. package/es5/components/VSlideGroup/VSlideGroup.js.map +1 -1
  55. package/es5/components/VSlider/VSlider.js +8 -11
  56. package/es5/components/VSlider/VSlider.js.map +1 -1
  57. package/es5/components/VSparkline/VSparkline.js +2 -1
  58. package/es5/components/VSparkline/VSparkline.js.map +1 -1
  59. package/es5/components/VTabs/VTabs.js +10 -0
  60. package/es5/components/VTabs/VTabs.js.map +1 -1
  61. package/es5/components/VTextField/VTextField.js +5 -5
  62. package/es5/components/VTextField/VTextField.js.map +1 -1
  63. package/es5/components/VTextarea/VTextarea.js +2 -2
  64. package/es5/components/VTextarea/VTextarea.js.map +1 -1
  65. package/es5/components/VTimePicker/VTimePicker.js.map +1 -1
  66. package/es5/components/VTreeview/VTreeview.js +5 -4
  67. package/es5/components/VTreeview/VTreeview.js.map +1 -1
  68. package/es5/components/VTreeview/VTreeviewNode.js +2 -1
  69. package/es5/components/VTreeview/VTreeviewNode.js.map +1 -1
  70. package/es5/components/VWindow/VWindow.js +5 -6
  71. package/es5/components/VWindow/VWindow.js.map +1 -1
  72. package/es5/directives/click-outside/index.js +2 -2
  73. package/es5/directives/click-outside/index.js.map +1 -1
  74. package/es5/directives/intersect/index.js +5 -5
  75. package/es5/directives/intersect/index.js.map +1 -1
  76. package/es5/directives/mutate/index.js +2 -2
  77. package/es5/directives/mutate/index.js.map +1 -1
  78. package/es5/directives/resize/index.js +2 -2
  79. package/es5/directives/resize/index.js.map +1 -1
  80. package/es5/directives/scroll/index.js +2 -2
  81. package/es5/directives/scroll/index.js.map +1 -1
  82. package/es5/framework.js +1 -1
  83. package/es5/locale/ca.js +7 -7
  84. package/es5/locale/ca.js.map +1 -1
  85. package/es5/mixins/activatable/index.js +1 -3
  86. package/es5/mixins/activatable/index.js.map +1 -1
  87. package/es5/mixins/binds-attrs/index.js.map +1 -1
  88. package/es5/mixins/dependent/index.js.map +1 -1
  89. package/es5/mixins/detachable/index.js.map +1 -1
  90. package/es5/mixins/overlayable/index.js +1 -1
  91. package/es5/mixins/overlayable/index.js.map +1 -1
  92. package/es5/mixins/routable/index.js +2 -2
  93. package/es5/mixins/routable/index.js.map +1 -1
  94. package/es5/services/icons/presets/mdi-svg.js +5 -5
  95. package/es5/services/icons/presets/mdi-svg.js.map +1 -1
  96. package/es5/util/helpers.js +1 -1
  97. package/es5/util/helpers.js.map +1 -1
  98. package/lib/components/VAutocomplete/VAutocomplete.js +3 -3
  99. package/lib/components/VAutocomplete/VAutocomplete.js.map +1 -1
  100. package/lib/components/VBtn/VBtn.js +2 -2
  101. package/lib/components/VBtn/VBtn.js.map +1 -1
  102. package/lib/components/VCalendar/mixins/calendar-with-events.js +4 -4
  103. package/lib/components/VCalendar/mixins/calendar-with-events.js.map +1 -1
  104. package/lib/components/VCalendar/mixins/mouse.js +4 -4
  105. package/lib/components/VCalendar/mixins/mouse.js.map +1 -1
  106. package/lib/components/VCheckbox/VSimpleCheckbox.js +3 -2
  107. package/lib/components/VCheckbox/VSimpleCheckbox.js.map +1 -1
  108. package/lib/components/VCombobox/VCombobox.js +2 -2
  109. package/lib/components/VCombobox/VCombobox.js.map +1 -1
  110. package/lib/components/VDataIterator/VDataFooter.js +5 -2
  111. package/lib/components/VDataIterator/VDataFooter.js.map +1 -1
  112. package/lib/components/VDataTable/Row.js +2 -2
  113. package/lib/components/VDataTable/Row.js.map +1 -1
  114. package/lib/components/VDataTable/VDataTable.js +15 -5
  115. package/lib/components/VDataTable/VDataTable.js.map +1 -1
  116. package/lib/components/VDataTable/mixins/header.js +2 -2
  117. package/lib/components/VDataTable/mixins/header.js.map +1 -1
  118. package/lib/components/VDatePicker/VDatePicker.js +9 -6
  119. package/lib/components/VDatePicker/VDatePicker.js.map +1 -1
  120. package/lib/components/VDialog/VDialog.js +18 -14
  121. package/lib/components/VDialog/VDialog.js.map +1 -1
  122. package/lib/components/VItemGroup/VItemGroup.js +2 -2
  123. package/lib/components/VItemGroup/VItemGroup.js.map +1 -1
  124. package/lib/components/VList/VListItem.js +5 -3
  125. package/lib/components/VList/VListItem.js.map +1 -1
  126. package/lib/components/VMenu/VMenu.js +2 -2
  127. package/lib/components/VMenu/VMenu.js.map +1 -1
  128. package/lib/components/VOtpInput/VOtpInput.js +32 -61
  129. package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
  130. package/lib/components/VOverflowBtn/VOverflowBtn.js +4 -0
  131. package/lib/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
  132. package/lib/components/VRadioGroup/VRadio.js +2 -1
  133. package/lib/components/VRadioGroup/VRadio.js.map +1 -1
  134. package/lib/components/VRangeSlider/VRangeSlider.js +2 -2
  135. package/lib/components/VRangeSlider/VRangeSlider.js.map +1 -1
  136. package/lib/components/VSelect/VSelect.js +10 -6
  137. package/lib/components/VSelect/VSelect.js.map +1 -1
  138. package/lib/components/VSelect/VSelectList.js +2 -1
  139. package/lib/components/VSelect/VSelectList.js.map +1 -1
  140. package/lib/components/VSkeletonLoader/VSkeletonLoader.js +4 -4
  141. package/lib/components/VSkeletonLoader/VSkeletonLoader.js.map +1 -1
  142. package/lib/components/VSlideGroup/VSlideGroup.js +23 -7
  143. package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
  144. package/lib/components/VSlider/VSlider.js +6 -11
  145. package/lib/components/VSlider/VSlider.js.map +1 -1
  146. package/lib/components/VSparkline/VSparkline.js +2 -1
  147. package/lib/components/VSparkline/VSparkline.js.map +1 -1
  148. package/lib/components/VTabs/VTabs.js +10 -0
  149. package/lib/components/VTabs/VTabs.js.map +1 -1
  150. package/lib/components/VTextField/VTextField.js +5 -5
  151. package/lib/components/VTextField/VTextField.js.map +1 -1
  152. package/lib/components/VTextarea/VTextarea.js +2 -2
  153. package/lib/components/VTextarea/VTextarea.js.map +1 -1
  154. package/lib/components/VTimePicker/VTimePicker.js.map +1 -1
  155. package/lib/components/VTreeview/VTreeview.js +5 -4
  156. package/lib/components/VTreeview/VTreeview.js.map +1 -1
  157. package/lib/components/VTreeview/VTreeviewNode.js +2 -1
  158. package/lib/components/VTreeview/VTreeviewNode.js.map +1 -1
  159. package/lib/components/VWindow/VWindow.js +3 -3
  160. package/lib/components/VWindow/VWindow.js.map +1 -1
  161. package/lib/directives/click-outside/index.js +2 -2
  162. package/lib/directives/click-outside/index.js.map +1 -1
  163. package/lib/directives/intersect/index.js +4 -4
  164. package/lib/directives/intersect/index.js.map +1 -1
  165. package/lib/directives/mutate/index.js +2 -2
  166. package/lib/directives/mutate/index.js.map +1 -1
  167. package/lib/directives/resize/index.js +2 -2
  168. package/lib/directives/resize/index.js.map +1 -1
  169. package/lib/directives/scroll/index.js +2 -2
  170. package/lib/directives/scroll/index.js.map +1 -1
  171. package/lib/framework.js +1 -1
  172. package/lib/locale/ca.js +7 -7
  173. package/lib/locale/ca.js.map +1 -1
  174. package/lib/mixins/activatable/index.js +1 -3
  175. package/lib/mixins/activatable/index.js.map +1 -1
  176. package/lib/mixins/binds-attrs/index.js.map +1 -1
  177. package/lib/mixins/dependent/index.js.map +1 -1
  178. package/lib/mixins/detachable/index.js.map +1 -1
  179. package/lib/mixins/overlayable/index.js +1 -1
  180. package/lib/mixins/overlayable/index.js.map +1 -1
  181. package/lib/mixins/routable/index.js +4 -3
  182. package/lib/mixins/routable/index.js.map +1 -1
  183. package/lib/services/icons/presets/mdi-svg.js +5 -5
  184. package/lib/services/icons/presets/mdi-svg.js.map +1 -1
  185. package/lib/util/helpers.js +1 -1
  186. package/lib/util/helpers.js.map +1 -1
  187. package/package.json +3 -2
  188. package/src/components/VAutocomplete/VAutocomplete.sass +0 -4
  189. package/src/components/VBtn/VBtn.sass +1 -1
  190. package/src/components/VCheckbox/VSimpleCheckbox.ts +3 -2
  191. package/src/components/VChip/VChip.sass +1 -1
  192. package/src/components/VDataTable/VDataTable.ts +4 -1
  193. package/src/components/VDataTable/__tests__/__snapshots__/VDataTable.spec.ts.snap +14 -14
  194. package/src/components/VDatePicker/VDatePicker.ts +12 -6
  195. package/src/components/VDialog/VDialog.sass +1 -1
  196. package/src/components/VDialog/VDialog.ts +9 -6
  197. package/src/components/VDialog/__tests__/VDialog.spec.ts +5 -5
  198. package/src/components/VDialog/__tests__/__snapshots__/VDialog.spec.ts.snap +4 -16
  199. package/src/components/VExpansionPanel/VExpansionPanel.sass +2 -2
  200. package/src/components/VInput/VInput.sass +2 -5
  201. package/src/components/VItemGroup/VItemGroup.ts +2 -2
  202. package/src/components/VItemGroup/__tests__/VItemGroup.spec.ts +29 -0
  203. package/src/components/VList/VListItem.ts +5 -3
  204. package/src/components/VList/__tests__/VListItem.spec.ts +12 -0
  205. package/src/components/VOtpInput/VOtpInput.ts +23 -43
  206. package/src/components/VOtpInput/__tests__/VOtpInput.spec.ts +3 -27
  207. package/src/components/VOverflowBtn/VOverflowBtn.ts +3 -0
  208. package/src/components/VOverflowBtn/__tests__/VOverflowBtn.spec.ts +18 -0
  209. package/src/components/VOverflowBtn/__tests__/__snapshots__/VOverflowBtn.spec.ts.snap +104 -4
  210. package/src/components/VRadioGroup/VRadio.sass +0 -4
  211. package/src/components/VRangeSlider/__tests__/VRangeSlider.spec.ts +2 -2
  212. package/src/components/VRangeSlider/__tests__/__snapshots__/VRangeSlider.spec.ts.snap +2 -2
  213. package/src/components/VSelect/VSelect.sass +4 -2
  214. package/src/components/VSelect/VSelect.ts +2 -2
  215. package/src/components/VSkeletonLoader/VSkeletonLoader.sass +1 -1
  216. package/src/components/VSlideGroup/VSlideGroup.ts +21 -9
  217. package/src/components/VSlider/VSlider.ts +1 -7
  218. package/src/components/VSlider/__tests__/VSlider.spec.ts +3 -2
  219. package/src/components/VTabs/VTabs.ts +10 -0
  220. package/src/components/VTimePicker/VTimePicker.ts +1 -1
  221. package/src/components/VTimeline/VTimeline.sass +16 -9
  222. package/src/components/VTimeline/_mixins.sass +4 -3
  223. package/src/globals.d.ts +6 -6
  224. package/src/locale/ca.ts +7 -7
  225. package/src/mixins/applicationable/__tests__/applicationable.spec.ts +1 -1
  226. package/src/mixins/binds-attrs/index.ts +2 -2
  227. package/src/mixins/dependent/index.ts +3 -3
  228. package/src/mixins/detachable/index.ts +3 -3
  229. package/src/mixins/overlayable/index.ts +7 -7
  230. package/src/services/icons/presets/mdi-svg.ts +5 -5
  231. package/src/styles/components/_selection-controls.sass +3 -0
  232. package/src/util/helpers.ts +2 -2
  233. package/es5/util/component.js +0 -11
  234. package/es5/util/component.js.map +0 -1
  235. package/lib/util/component.js +0 -4
  236. package/lib/util/component.js.map +0 -1
  237. package/src/util/component.ts +0 -21
@@ -3,7 +3,6 @@
3
3
  +theme(v-select) using ($material)
4
4
  .v-select__selections
5
5
  color: map-deep-get($material, 'text', 'primary')
6
- min-height: $select-selections-min-height
7
6
 
8
7
  &.v-input--is-disabled
9
8
  .v-select__selections
@@ -64,7 +63,6 @@
64
63
  input
65
64
  flex: 1 1 // Doesn't resize on IE11 with 3rd param
66
65
  min-width: 0
67
- pointer-events: none
68
66
  position: relative
69
67
 
70
68
  &:not(.v-text-field--single-line) input
@@ -119,6 +117,9 @@
119
117
  .v-select__selections
120
118
  flex-direction: row-reverse
121
119
 
120
+ &.v-input--is-disabled:not(.v-input--is-readonly):not(.v-autocomplete)
121
+ pointer-events: none
122
+
122
123
  &__selections
123
124
  align-items: center
124
125
  display: flex
@@ -133,6 +134,7 @@
133
134
 
134
135
  &--comma
135
136
  margin: $select-selections-margin
137
+ min-height: $select-selections-min-height
136
138
  overflow: hidden
137
139
  text-overflow: ellipsis
138
140
  white-space: nowrap
@@ -157,7 +157,7 @@ export default baseMixins.extend<options>().extend({
157
157
  computedCounterValue (): number {
158
158
  const value = this.multiple
159
159
  ? this.selectedItems
160
- : (this.getText(this.selectedItems[0]) || '').toString()
160
+ : (this.getText(this.selectedItems[0]) ?? '').toString()
161
161
 
162
162
  if (typeof this.counterValue === 'function') {
163
163
  return this.counterValue(value)
@@ -650,7 +650,7 @@ export default baseMixins.extend<options>().extend({
650
650
  this.keyboardLookupLastTime = now
651
651
 
652
652
  const index = this.allItems.findIndex(item => {
653
- const text = (this.getText(item) || '').toString()
653
+ const text = (this.getText(item) ?? '').toString()
654
654
 
655
655
  return text.toLowerCase().startsWith(this.keyboardLookupPrefix)
656
656
  })
@@ -209,7 +209,7 @@
209
209
  ~ .v-skeleton-loader__card-heading
210
210
  border-radius: 0
211
211
 
212
- &::first-child, &::last-child
212
+ &:first-child, &:last-child
213
213
  border-radius: inherit
214
214
 
215
215
  &__list-item
@@ -127,7 +127,7 @@ export const BaseSlideGroup = mixins<options &
127
127
  },
128
128
  showArrows: {
129
129
  type: [Boolean, String],
130
- validator: v => (
130
+ validator: (v: any) => (
131
131
  typeof v === 'boolean' || [
132
132
  'always',
133
133
  'desktop',
@@ -138,7 +138,6 @@ export const BaseSlideGroup = mixins<options &
138
138
  },
139
139
 
140
140
  data: () => ({
141
- internalItemsLength: 0,
142
141
  isOverflowing: false,
143
142
  resizeTimeout: 0,
144
143
  startX: 0,
@@ -231,13 +230,26 @@ export const BaseSlideGroup = mixins<options &
231
230
  },
232
231
  },
233
232
 
234
- beforeUpdate () {
235
- this.internalItemsLength = (this.$children || []).length
236
- },
237
-
238
- updated () {
239
- if (this.internalItemsLength === (this.$children || []).length) return
240
- this.setWidths()
233
+ mounted () {
234
+ if (typeof ResizeObserver !== 'undefined') {
235
+ const obs = new ResizeObserver(() => {
236
+ this.onResize()
237
+ })
238
+ obs.observe(this.$el)
239
+ obs.observe(this.$refs.content)
240
+ this.$on('hook:destroyed', () => {
241
+ obs.disconnect()
242
+ })
243
+ } else {
244
+ let itemsLength = 0
245
+ this.$on('hook:beforeUpdate', () => {
246
+ itemsLength = (this.$refs.content?.children || []).length
247
+ })
248
+ this.$on('hook:updated', () => {
249
+ if (itemsLength === (this.$refs.content?.children || []).length) return
250
+ this.setWidths()
251
+ })
252
+ }
241
253
  },
242
254
 
243
255
  methods: {
@@ -221,16 +221,10 @@ export default mixins<options &
221
221
  handler (v: number) {
222
222
  this.internalValue = v
223
223
  },
224
+ immediate: true,
224
225
  },
225
226
  },
226
227
 
227
- // If done in as immediate in
228
- // value watcher, causes issues
229
- // with vue-test-utils
230
- beforeMount () {
231
- this.internalValue = this.value
232
- },
233
-
234
228
  mounted () {
235
229
  // Without a v-app, iOS does not work with body selectors
236
230
  this.app = document.querySelector('[data-app]') ||
@@ -559,7 +559,7 @@ describe('VSlider.ts', () => {
559
559
 
560
560
  it('should set value to min value if given a NaN value', () => {
561
561
  const input = jest.fn()
562
- const wrapper = mountFunction({
562
+ mountFunction({
563
563
  propsData: {
564
564
  min: -20,
565
565
  max: 20,
@@ -570,7 +570,8 @@ describe('VSlider.ts', () => {
570
570
  },
571
571
  })
572
572
 
573
- expect(wrapper.vm.internalValue).toBe(-20)
573
+ expect(input).toHaveBeenCalledTimes(1)
574
+ expect(input).toHaveBeenCalledWith(-20)
574
575
  })
575
576
 
576
577
  it('should correctly handle initial value of zero (#7320)', () => {
@@ -141,6 +141,16 @@ export default baseMixins.extend<options>().extend({
141
141
  },
142
142
 
143
143
  mounted () {
144
+ if (typeof ResizeObserver !== 'undefined') {
145
+ const obs = new ResizeObserver(() => {
146
+ this.onResize()
147
+ })
148
+ obs.observe(this.$el)
149
+ this.$on('hook:destroyed', () => {
150
+ obs.disconnect()
151
+ })
152
+ }
153
+
144
154
  this.$nextTick(() => {
145
155
  window.setTimeout(this.callSlider, 30)
146
156
  })
@@ -40,7 +40,7 @@ export default mixins(
40
40
  format: {
41
41
  type: String as PropType<'ampm' | '24hr'>,
42
42
  default: 'ampm',
43
- validator (val) {
43
+ validator (val: any) {
44
44
  return ['ampm', '24hr'].includes(val)
45
45
  },
46
46
  },
@@ -2,6 +2,12 @@
2
2
  @import './_variables.scss'
3
3
  @import './_mixins.sass'
4
4
 
5
+ /**
6
+ * .v-timeline::before - center divider
7
+ * .v-card::before - arrow shadow (conflicts with active link overlay)
8
+ * .v-card::after - arrow
9
+ */
10
+
5
11
  // Theme
6
12
  +theme(v-timeline) using ($material)
7
13
  &::before
@@ -12,7 +18,7 @@
12
18
  background: map-get($material, 'cards')
13
19
 
14
20
  .v-card
15
- &::before
21
+ &:not(.v-card--link)::before
16
22
  border-right-color: $shadow-key-ambient-opacity
17
23
 
18
24
  // Elements
@@ -20,7 +26,7 @@
20
26
  padding-top: $timeline-item-padding
21
27
  position: relative
22
28
 
23
- &:before
29
+ &::before
24
30
  bottom: 0
25
31
  content: ''
26
32
  height: 100%
@@ -85,7 +91,8 @@
85
91
  // Wedge
86
92
  .v-timeline-item__body
87
93
  > .v-card:not(.v-card--flat)
88
- &:before, &:after
94
+ &:not(.v-card--link)::before,
95
+ &::after
89
96
  content: ''
90
97
  position: absolute
91
98
  border-top: $timeline-wedge-size solid transparent
@@ -93,10 +100,10 @@
93
100
  border-right: $timeline-wedge-size solid black
94
101
  top: calc(50% - #{$timeline-wedge-size})
95
102
 
96
- &:after
103
+ &::after
97
104
  border-right-color: inherit
98
105
 
99
- &:before
106
+ &:not(.v-card--link)::before
100
107
  top: calc(50% - #{$timeline-wedge-size} + 2px)
101
108
 
102
109
  // Modifiers
@@ -106,12 +113,12 @@
106
113
 
107
114
  .v-timeline-item__body
108
115
  > .v-card
109
- &:before
110
- top: calc(0% + #{$timeline-wedge-size} + 2px)
111
-
112
- &:after
116
+ &::after
113
117
  top: calc(0% + #{$timeline-wedge-size})
114
118
 
119
+ &:not(.v-card--link)::before
120
+ top: calc(0% + #{$timeline-wedge-size} + 2px)
121
+
115
122
  .v-timeline:not(.v-timeline--dense):not(.v-timeline--reverse)
116
123
  +timeline-line-align($timeline-divider-center, left, right)
117
124
 
@@ -9,8 +9,9 @@
9
9
  width: $inner-dot-size
10
10
 
11
11
  @mixin timeline-wedge-align($direction)
12
- .v-timeline-item__body
13
- > .v-card:before, .v-card:after
12
+ .v-timeline-item__body > .v-card
13
+ &:not(.v-card--link)::before,
14
+ &::after
14
15
  +ltr()
15
16
  transform: rotate(if($direction == right, 180deg, 0))
16
17
  #{$direction}: -($timeline-wedge-size)
@@ -32,7 +33,7 @@
32
33
  text-align: if($direction == left, left, right)
33
34
 
34
35
  @mixin timeline-line-align($center, $first, $second)
35
- &:before
36
+ &::before
36
37
  +ltr()
37
38
  #{$first}: calc(#{$center} - #{$timeline-line-width / 2})
38
39
  #{$second}: initial
package/src/globals.d.ts CHANGED
@@ -105,8 +105,8 @@ declare module 'vue/types/options' {
105
105
  }
106
106
 
107
107
  declare module 'vue/types/vue' {
108
- export type OptionsVue<Instance extends Vue, Data, Methods, Computed, Props, Options = {}> = VueConstructor<
109
- CombinedVueInstance<Instance, Data, Methods, Computed, Props> & Vue,
108
+ export type OptionsVue<Instance extends Vue, Data, Methods, Computed, Props, SetupBindings, Options = {}> = VueConstructor<
109
+ CombinedVueInstance<Instance, Data, Methods, Computed, Props, SetupBindings> & Vue,
110
110
  Options
111
111
  >
112
112
 
@@ -154,10 +154,10 @@ declare module 'vue/types/vue' {
154
154
  $_vuetify_installed?: true
155
155
  options: Options
156
156
 
157
- extend<Data, Methods, Computed, Options, PropNames extends string = never> (options?: ThisTypedComponentOptionsWithArrayProps<V, Data, Methods, Computed, PropNames> & Options): OptionsVue<V, Data, Methods, Computed, Record<PropNames, any>, Options>
158
- extend<Data, Methods, Computed, Props, Options> (options?: ThisTypedComponentOptionsWithRecordProps<V, Data, Methods, Computed, Props> & Options): OptionsVue<V, Data, Methods, Computed, Props, Options>
159
- extend<Options, PropNames extends string = never> (definition: FunctionalComponentOptions<Record<PropNames, any>, PropNames[]> & Options): OptionsVue<V, {}, {}, {}, Record<PropNames, any>, Options>
157
+ extend<Data, Methods, Computed, Options, SetupBindings, PropNames extends string = never> (options?: ThisTypedComponentOptionsWithArrayProps<V, Data, Methods, Computed, PropNames, SetupBindings> & Options): OptionsVue<V, Data, Methods, Computed, Record<PropNames, any>, SetupBindings, Options>
158
+ extend<Data, Methods, Computed, Props, Options, SetupBindings> (options?: ThisTypedComponentOptionsWithRecordProps<V, Data, Methods, Computed, Props, SetupBindings> & Options): OptionsVue<V, Data, Methods, Computed, Props, SetupBindings, Options>
159
+ extend<Options, SetupBindings, PropNames extends string = never> (definition: FunctionalComponentOptions<Record<PropNames, any>, PropNames[]> & Options): OptionsVue<V, {}, {}, {}, Record<PropNames, any>, SetupBindings, Options>
160
160
  extend<Props, Options> (definition: FunctionalComponentOptions<Props, RecordPropsDefinition<Props>> & Options): OptionsVue<V, {}, {}, {}, Props, Options>
161
- extend<V extends Vue = Vue> (options?: ComponentOptions<V> & Options): OptionsVue<V, {}, {}, {}, {}, Options>
161
+ extend<V extends Vue = Vue> (options?: ComponentOptions<V> & Options): OptionsVue<V, {}, {}, {}, {}, {}, Options>
162
162
  }
163
163
  }
package/src/locale/ca.ts CHANGED
@@ -8,12 +8,12 @@ export default {
8
8
  dataTable: {
9
9
  itemsPerPageText: 'Files per pàgina:',
10
10
  ariaLabel: {
11
- sortDescending: 'Ordre descendent. Premi per treure la ordenació.',
12
- sortAscending: 'Ordre ascendent. Premi per ordenar descendent.',
13
- sortNone: 'Sense ordenar. Premi per ordenar ascendent.',
14
- activateNone: 'Activate to remove sorting.',
15
- activateDescending: 'Activate to sort descending.',
16
- activateAscending: 'Activate to sort ascending.',
11
+ sortDescending: 'Ordre descendent.',
12
+ sortAscending: 'Ordre ascendent.',
13
+ sortNone: 'Sense ordenar.',
14
+ activateNone: 'Premi per treure la ordenació.',
15
+ activateDescending: 'Premi per ordenar descendent.',
16
+ activateAscending: 'Premi per ordenar ascendent.',
17
17
  },
18
18
  sortBy: 'Ordenat per',
19
19
  },
@@ -63,7 +63,7 @@ export default {
63
63
  },
64
64
  rating: {
65
65
  ariaLabel: {
66
- icon: 'Rating {0} of {1}',
66
+ icon: 'Puntuació {0} de {1}',
67
67
  },
68
68
  },
69
69
  }
@@ -68,7 +68,7 @@ describe('applicationable.js', () => {
68
68
  mixins: [Applicationable(null, ['foo', 'bar'])],
69
69
  })
70
70
 
71
- expect(wrapper.vm._watchers).toHaveLength(6)
71
+ expect(wrapper.vm._scope.effects).toHaveLength(6)
72
72
  })
73
73
 
74
74
  it('should call to remove application on destroy', async () => {
@@ -1,11 +1,11 @@
1
- import Vue, { WatchHandler } from 'vue'
1
+ import Vue from 'vue'
2
2
 
3
3
  /**
4
4
  * This mixin provides `attrs$` and `listeners$` to work around
5
5
  * vue bug https://github.com/vuejs/vue/issues/10115
6
6
  */
7
7
 
8
- function makeWatcher (property: string): ThisType<Vue> & WatchHandler<any> {
8
+ function makeWatcher (property: string): ThisType<Vue> & ((val: any, oldVal: any) => void) {
9
9
  return function (this: Vue, val, oldVal) {
10
10
  for (const attr in oldVal) {
11
11
  if (!Object.prototype.hasOwnProperty.call(val, attr)) {
@@ -3,10 +3,10 @@ import Vue from 'vue'
3
3
  import mixins from '../../util/mixins'
4
4
  import { VOverlay } from '../../components/VOverlay'
5
5
 
6
- interface options extends Vue {
6
+ interface options {
7
7
  $el: HTMLElement
8
8
  $refs: {
9
- content: HTMLElement
9
+ content?: HTMLElement
10
10
  }
11
11
  overlay?: InstanceType<typeof VOverlay>
12
12
  }
@@ -31,7 +31,7 @@ function searchChildren (children: Vue[]): DependentInstance[] {
31
31
  }
32
32
 
33
33
  /* @vue/component */
34
- export default mixins<options>().extend({
34
+ export default mixins<Vue & options>().extend({
35
35
  name: 'dependent',
36
36
 
37
37
  data () {
@@ -7,13 +7,13 @@ import mixins, { ExtractVue } from '../../util/mixins'
7
7
  import { consoleWarn } from '../../util/console'
8
8
 
9
9
  // Types
10
- import Vue, { PropOptions } from 'vue'
10
+ import { PropOptions } from 'vue'
11
11
  import { VNode } from 'vue/types'
12
12
 
13
- interface options extends Vue {
13
+ interface options {
14
14
  $el: HTMLElement
15
15
  $refs: {
16
- content: HTMLElement
16
+ content?: HTMLElement
17
17
  }
18
18
  }
19
19
 
@@ -128,8 +128,8 @@ export default Vue.extend<Vue & Toggleable & Stackable & options>().extend({
128
128
 
129
129
  showScroll && this.showScroll()
130
130
  },
131
- scrollListener (e: WheelEvent & KeyboardEvent) {
132
- if (e.type === 'keydown') {
131
+ scrollListener (e: WheelEvent | KeyboardEvent) {
132
+ if ('key' in e) {
133
133
  if (
134
134
  ['INPUT', 'TEXTAREA', 'SELECT'].includes((e.target as Element).tagName) ||
135
135
  // https://github.com/vuetifyjs/vuetify/issues/4715
@@ -150,7 +150,7 @@ export default Vue.extend<Vue & Toggleable & Stackable & options>().extend({
150
150
 
151
151
  if (e.target === this.overlay ||
152
152
  (e.type !== 'keydown' && e.target === document.body) ||
153
- this.checkPath(e)) e.preventDefault()
153
+ this.checkPath(e as WheelEvent)) e.preventDefault()
154
154
  },
155
155
  hasScrollbar (el?: Element) {
156
156
  if (!el || el.nodeType !== Node.ELEMENT_NODE) return false
@@ -224,14 +224,14 @@ export default Vue.extend<Vue & Toggleable & Stackable & options>().extend({
224
224
  if (this.$vuetify.breakpoint.smAndDown) {
225
225
  document.documentElement!.classList.add('overflow-y-hidden')
226
226
  } else {
227
- addPassiveEventListener(window, 'wheel', this.scrollListener as EventHandlerNonNull, { passive: false })
228
- window.addEventListener('keydown', this.scrollListener as EventHandlerNonNull)
227
+ addPassiveEventListener(window, 'wheel', this.scrollListener, { passive: false })
228
+ window.addEventListener('keydown', this.scrollListener)
229
229
  }
230
230
  },
231
231
  showScroll () {
232
232
  document.documentElement!.classList.remove('overflow-y-hidden')
233
- window.removeEventListener('wheel', this.scrollListener as EventHandlerNonNull)
234
- window.removeEventListener('keydown', this.scrollListener as EventHandlerNonNull)
233
+ window.removeEventListener('wheel', this.scrollListener)
234
+ window.removeEventListener('keydown', this.scrollListener)
235
235
  },
236
236
  },
237
237
  })
@@ -5,11 +5,11 @@ const icons: VuetifyIcons = {
5
5
  cancel: 'M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z',
6
6
  close: 'M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z',
7
7
  delete: 'M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z', // delete (e.g. v-chip close)
8
- clear: 'M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z',
9
- success: 'M12,2C17.52,2 22,6.48 22,12C22,17.52 17.52,22 12,22C6.48,22 2,17.52 2,12C2,6.48 6.48,2 12,2M11,16.5L18,9.5L16.59,8.09L11,13.67L7.91,10.59L6.5,12L11,16.5Z',
10
- info: 'M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z',
11
- warning: 'M11,4.5H13V15.5H11V4.5M13,17.5V19.5H11V17.5H13Z',
12
- error: 'M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z',
8
+ clear: 'M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z',
9
+ success: 'M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z',
10
+ info: 'M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2ZM13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z',
11
+ warning: 'M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z',
12
+ error: 'M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z',
13
13
  prev: 'M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z',
14
14
  next: 'M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z',
15
15
  checkboxOn: 'M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z',
@@ -109,6 +109,9 @@
109
109
  .v-icon
110
110
  color: inherit
111
111
 
112
+ &.v-input--is-disabled:not(.v-input--is-readonly)
113
+ pointer-events: none
114
+
112
115
  .v-input--selection-controls__input:hover
113
116
  .v-input--selection-controls__ripple:before
114
117
  background: currentColor
@@ -59,7 +59,7 @@ try {
59
59
  get: () => {
60
60
  passiveSupported = true
61
61
  },
62
- })
62
+ }) as EventListener & EventListenerOptions
63
63
 
64
64
  window.addEventListener('testListener', testListenerOpts, testListenerOpts)
65
65
  window.removeEventListener('testListener', testListenerOpts, testListenerOpts)
@@ -70,7 +70,7 @@ export { passiveSupported }
70
70
  export function addPassiveEventListener (
71
71
  el: EventTarget,
72
72
  event: string,
73
- cb: EventHandlerNonNull | (() => void),
73
+ cb: (event: any) => void,
74
74
  options: {}
75
75
  ): void {
76
76
  el.addEventListener(event, cb, passiveSupported ? options : false)
@@ -1,11 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = component;
7
-
8
- function component(options) {
9
- return options;
10
- }
11
- //# sourceMappingURL=component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/util/component.ts"],"names":[],"mappings":";;;;;;;AAkBc,SAAU,SAAV,CAAwB,OAAxB,EAAkC;AAC9C,SAAO,OAAP;AACD","sourcesContent":["/* eslint-disable max-len, import/export */\nimport {\n ComponentOptions,\n RecordPropsDefinition,\n ThisTypedComponentOptionsWithArrayProps,\n ThisTypedComponentOptionsWithRecordProps,\n} from 'vue/types/options'\nimport { Vue } from 'vue/types/vue'\nimport { FunctionalComponentOptions } from 'vue'\n\ntype V = Vue\n\n// Maybe don't actually use this, it doesn't work very well\nexport default function component<Data, Methods, Computed, PropNames extends string = never> (options?: ThisTypedComponentOptionsWithArrayProps<V, Data, Methods, Computed, PropNames>): ThisTypedComponentOptionsWithArrayProps<V, Data, Methods, Computed, PropNames>\nexport default function component<Data, Methods, Computed, Props> (options?: ThisTypedComponentOptionsWithRecordProps<V, Data, Methods, Computed, Props>): ThisTypedComponentOptionsWithRecordProps<V, Data, Methods, Computed, Props>\nexport default function component<PropNames extends string = never> (definition: FunctionalComponentOptions<Record<PropNames, any>, PropNames[]>): FunctionalComponentOptions<Record<PropNames, any>, PropNames[]>\nexport default function component<Props> (definition: FunctionalComponentOptions<Props, RecordPropsDefinition<Props>>): FunctionalComponentOptions<Props, RecordPropsDefinition<Props>>\nexport default function component (options?: ComponentOptions<V>): ComponentOptions<V>\nexport default function component<T> (options: T): T {\n return options\n}\n"],"sourceRoot":"","file":"component.js"}
@@ -1,4 +0,0 @@
1
- export default function component(options) {
2
- return options;
3
- }
4
- //# sourceMappingURL=component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/util/component.ts"],"names":[],"mappings":"AAkBA,eAAc,SAAU,SAAV,CAAwB,OAAxB,EAAkC;AAC9C,SAAO,OAAP;AACD","sourcesContent":["/* eslint-disable max-len, import/export */\nimport {\n ComponentOptions,\n RecordPropsDefinition,\n ThisTypedComponentOptionsWithArrayProps,\n ThisTypedComponentOptionsWithRecordProps,\n} from 'vue/types/options'\nimport { Vue } from 'vue/types/vue'\nimport { FunctionalComponentOptions } from 'vue'\n\ntype V = Vue\n\n// Maybe don't actually use this, it doesn't work very well\nexport default function component<Data, Methods, Computed, PropNames extends string = never> (options?: ThisTypedComponentOptionsWithArrayProps<V, Data, Methods, Computed, PropNames>): ThisTypedComponentOptionsWithArrayProps<V, Data, Methods, Computed, PropNames>\nexport default function component<Data, Methods, Computed, Props> (options?: ThisTypedComponentOptionsWithRecordProps<V, Data, Methods, Computed, Props>): ThisTypedComponentOptionsWithRecordProps<V, Data, Methods, Computed, Props>\nexport default function component<PropNames extends string = never> (definition: FunctionalComponentOptions<Record<PropNames, any>, PropNames[]>): FunctionalComponentOptions<Record<PropNames, any>, PropNames[]>\nexport default function component<Props> (definition: FunctionalComponentOptions<Props, RecordPropsDefinition<Props>>): FunctionalComponentOptions<Props, RecordPropsDefinition<Props>>\nexport default function component (options?: ComponentOptions<V>): ComponentOptions<V>\nexport default function component<T> (options: T): T {\n return options\n}\n"],"sourceRoot":"","file":"component.js"}
@@ -1,21 +0,0 @@
1
- /* eslint-disable max-len, import/export */
2
- import {
3
- ComponentOptions,
4
- RecordPropsDefinition,
5
- ThisTypedComponentOptionsWithArrayProps,
6
- ThisTypedComponentOptionsWithRecordProps,
7
- } from 'vue/types/options'
8
- import { Vue } from 'vue/types/vue'
9
- import { FunctionalComponentOptions } from 'vue'
10
-
11
- type V = Vue
12
-
13
- // Maybe don't actually use this, it doesn't work very well
14
- export default function component<Data, Methods, Computed, PropNames extends string = never> (options?: ThisTypedComponentOptionsWithArrayProps<V, Data, Methods, Computed, PropNames>): ThisTypedComponentOptionsWithArrayProps<V, Data, Methods, Computed, PropNames>
15
- export default function component<Data, Methods, Computed, Props> (options?: ThisTypedComponentOptionsWithRecordProps<V, Data, Methods, Computed, Props>): ThisTypedComponentOptionsWithRecordProps<V, Data, Methods, Computed, Props>
16
- export default function component<PropNames extends string = never> (definition: FunctionalComponentOptions<Record<PropNames, any>, PropNames[]>): FunctionalComponentOptions<Record<PropNames, any>, PropNames[]>
17
- export default function component<Props> (definition: FunctionalComponentOptions<Props, RecordPropsDefinition<Props>>): FunctionalComponentOptions<Props, RecordPropsDefinition<Props>>
18
- export default function component (options?: ComponentOptions<V>): ComponentOptions<V>
19
- export default function component<T> (options: T): T {
20
- return options
21
- }