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.
- package/dist/json/attributes.json +2 -2
- package/dist/json/web-types.json +7 -7
- package/dist/vuetify.css +48 -69
- package/dist/vuetify.css.map +1 -1
- package/dist/vuetify.js +450 -319
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +2 -2
- package/es5/components/VAutocomplete/VAutocomplete.js +3 -3
- package/es5/components/VAutocomplete/VAutocomplete.js.map +1 -1
- package/es5/components/VBtn/VBtn.js +2 -2
- package/es5/components/VBtn/VBtn.js.map +1 -1
- package/es5/components/VCalendar/mixins/calendar-with-events.js +6 -5
- package/es5/components/VCalendar/mixins/calendar-with-events.js.map +1 -1
- package/es5/components/VCalendar/mixins/mouse.js +4 -4
- package/es5/components/VCalendar/mixins/mouse.js.map +1 -1
- package/es5/components/VCheckbox/VSimpleCheckbox.js +5 -5
- package/es5/components/VCheckbox/VSimpleCheckbox.js.map +1 -1
- package/es5/components/VCombobox/VCombobox.js +2 -2
- package/es5/components/VCombobox/VCombobox.js.map +1 -1
- package/es5/components/VDataIterator/VDataFooter.js +5 -2
- package/es5/components/VDataIterator/VDataFooter.js.map +1 -1
- package/es5/components/VDataTable/Row.js +2 -2
- package/es5/components/VDataTable/Row.js.map +1 -1
- package/es5/components/VDataTable/VDataTable.js +54 -43
- package/es5/components/VDataTable/VDataTable.js.map +1 -1
- package/es5/components/VDataTable/mixins/header.js +4 -3
- package/es5/components/VDataTable/mixins/header.js.map +1 -1
- package/es5/components/VDatePicker/VDatePicker.js +30 -6
- package/es5/components/VDatePicker/VDatePicker.js.map +1 -1
- package/es5/components/VDialog/VDialog.js +20 -17
- package/es5/components/VDialog/VDialog.js.map +1 -1
- package/es5/components/VItemGroup/VItemGroup.js +4 -2
- package/es5/components/VItemGroup/VItemGroup.js.map +1 -1
- package/es5/components/VList/VListItem.js +5 -3
- package/es5/components/VList/VListItem.js.map +1 -1
- package/es5/components/VMenu/VMenu.js +2 -2
- package/es5/components/VMenu/VMenu.js.map +1 -1
- package/es5/components/VOtpInput/VOtpInput.js +33 -64
- package/es5/components/VOtpInput/VOtpInput.js.map +1 -1
- package/es5/components/VOverflowBtn/VOverflowBtn.js +3 -0
- package/es5/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
- package/es5/components/VRadioGroup/VRadio.js +2 -1
- package/es5/components/VRadioGroup/VRadio.js.map +1 -1
- package/es5/components/VRangeSlider/VRangeSlider.js +4 -3
- package/es5/components/VRangeSlider/VRangeSlider.js.map +1 -1
- package/es5/components/VSelect/VSelect.js +10 -6
- package/es5/components/VSelect/VSelect.js.map +1 -1
- package/es5/components/VSelect/VSelectList.js +2 -1
- package/es5/components/VSelect/VSelectList.js.map +1 -1
- package/es5/components/VSkeletonLoader/VSkeletonLoader.js +4 -4
- package/es5/components/VSkeletonLoader/VSkeletonLoader.js.map +1 -1
- package/es5/components/VSlideGroup/VSlideGroup.js +43 -23
- package/es5/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/es5/components/VSlider/VSlider.js +8 -11
- package/es5/components/VSlider/VSlider.js.map +1 -1
- package/es5/components/VSparkline/VSparkline.js +2 -1
- package/es5/components/VSparkline/VSparkline.js.map +1 -1
- package/es5/components/VTabs/VTabs.js +10 -0
- package/es5/components/VTabs/VTabs.js.map +1 -1
- package/es5/components/VTextField/VTextField.js +5 -5
- package/es5/components/VTextField/VTextField.js.map +1 -1
- package/es5/components/VTextarea/VTextarea.js +2 -2
- package/es5/components/VTextarea/VTextarea.js.map +1 -1
- package/es5/components/VTimePicker/VTimePicker.js.map +1 -1
- package/es5/components/VTreeview/VTreeview.js +5 -4
- package/es5/components/VTreeview/VTreeview.js.map +1 -1
- package/es5/components/VTreeview/VTreeviewNode.js +2 -1
- package/es5/components/VTreeview/VTreeviewNode.js.map +1 -1
- package/es5/components/VWindow/VWindow.js +5 -6
- package/es5/components/VWindow/VWindow.js.map +1 -1
- package/es5/directives/click-outside/index.js +2 -2
- package/es5/directives/click-outside/index.js.map +1 -1
- package/es5/directives/intersect/index.js +5 -5
- package/es5/directives/intersect/index.js.map +1 -1
- package/es5/directives/mutate/index.js +2 -2
- package/es5/directives/mutate/index.js.map +1 -1
- package/es5/directives/resize/index.js +2 -2
- package/es5/directives/resize/index.js.map +1 -1
- package/es5/directives/scroll/index.js +2 -2
- package/es5/directives/scroll/index.js.map +1 -1
- package/es5/framework.js +1 -1
- package/es5/locale/ca.js +7 -7
- package/es5/locale/ca.js.map +1 -1
- package/es5/mixins/activatable/index.js +1 -3
- package/es5/mixins/activatable/index.js.map +1 -1
- package/es5/mixins/binds-attrs/index.js.map +1 -1
- package/es5/mixins/dependent/index.js.map +1 -1
- package/es5/mixins/detachable/index.js.map +1 -1
- package/es5/mixins/overlayable/index.js +1 -1
- package/es5/mixins/overlayable/index.js.map +1 -1
- package/es5/mixins/routable/index.js +2 -2
- package/es5/mixins/routable/index.js.map +1 -1
- package/es5/services/icons/presets/mdi-svg.js +5 -5
- package/es5/services/icons/presets/mdi-svg.js.map +1 -1
- package/es5/util/helpers.js +1 -1
- package/es5/util/helpers.js.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.js +3 -3
- package/lib/components/VAutocomplete/VAutocomplete.js.map +1 -1
- package/lib/components/VBtn/VBtn.js +2 -2
- package/lib/components/VBtn/VBtn.js.map +1 -1
- package/lib/components/VCalendar/mixins/calendar-with-events.js +4 -4
- package/lib/components/VCalendar/mixins/calendar-with-events.js.map +1 -1
- package/lib/components/VCalendar/mixins/mouse.js +4 -4
- package/lib/components/VCalendar/mixins/mouse.js.map +1 -1
- package/lib/components/VCheckbox/VSimpleCheckbox.js +3 -2
- package/lib/components/VCheckbox/VSimpleCheckbox.js.map +1 -1
- package/lib/components/VCombobox/VCombobox.js +2 -2
- package/lib/components/VCombobox/VCombobox.js.map +1 -1
- package/lib/components/VDataIterator/VDataFooter.js +5 -2
- package/lib/components/VDataIterator/VDataFooter.js.map +1 -1
- package/lib/components/VDataTable/Row.js +2 -2
- package/lib/components/VDataTable/Row.js.map +1 -1
- package/lib/components/VDataTable/VDataTable.js +15 -5
- package/lib/components/VDataTable/VDataTable.js.map +1 -1
- package/lib/components/VDataTable/mixins/header.js +2 -2
- package/lib/components/VDataTable/mixins/header.js.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.js +9 -6
- package/lib/components/VDatePicker/VDatePicker.js.map +1 -1
- package/lib/components/VDialog/VDialog.js +18 -14
- package/lib/components/VDialog/VDialog.js.map +1 -1
- package/lib/components/VItemGroup/VItemGroup.js +2 -2
- package/lib/components/VItemGroup/VItemGroup.js.map +1 -1
- package/lib/components/VList/VListItem.js +5 -3
- package/lib/components/VList/VListItem.js.map +1 -1
- package/lib/components/VMenu/VMenu.js +2 -2
- package/lib/components/VMenu/VMenu.js.map +1 -1
- package/lib/components/VOtpInput/VOtpInput.js +32 -61
- package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
- package/lib/components/VOverflowBtn/VOverflowBtn.js +4 -0
- package/lib/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
- package/lib/components/VRadioGroup/VRadio.js +2 -1
- package/lib/components/VRadioGroup/VRadio.js.map +1 -1
- package/lib/components/VRangeSlider/VRangeSlider.js +2 -2
- package/lib/components/VRangeSlider/VRangeSlider.js.map +1 -1
- package/lib/components/VSelect/VSelect.js +10 -6
- package/lib/components/VSelect/VSelect.js.map +1 -1
- package/lib/components/VSelect/VSelectList.js +2 -1
- package/lib/components/VSelect/VSelectList.js.map +1 -1
- package/lib/components/VSkeletonLoader/VSkeletonLoader.js +4 -4
- package/lib/components/VSkeletonLoader/VSkeletonLoader.js.map +1 -1
- package/lib/components/VSlideGroup/VSlideGroup.js +23 -7
- package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/lib/components/VSlider/VSlider.js +6 -11
- package/lib/components/VSlider/VSlider.js.map +1 -1
- package/lib/components/VSparkline/VSparkline.js +2 -1
- package/lib/components/VSparkline/VSparkline.js.map +1 -1
- package/lib/components/VTabs/VTabs.js +10 -0
- package/lib/components/VTabs/VTabs.js.map +1 -1
- package/lib/components/VTextField/VTextField.js +5 -5
- package/lib/components/VTextField/VTextField.js.map +1 -1
- package/lib/components/VTextarea/VTextarea.js +2 -2
- package/lib/components/VTextarea/VTextarea.js.map +1 -1
- package/lib/components/VTimePicker/VTimePicker.js.map +1 -1
- package/lib/components/VTreeview/VTreeview.js +5 -4
- package/lib/components/VTreeview/VTreeview.js.map +1 -1
- package/lib/components/VTreeview/VTreeviewNode.js +2 -1
- package/lib/components/VTreeview/VTreeviewNode.js.map +1 -1
- package/lib/components/VWindow/VWindow.js +3 -3
- package/lib/components/VWindow/VWindow.js.map +1 -1
- package/lib/directives/click-outside/index.js +2 -2
- package/lib/directives/click-outside/index.js.map +1 -1
- package/lib/directives/intersect/index.js +4 -4
- package/lib/directives/intersect/index.js.map +1 -1
- package/lib/directives/mutate/index.js +2 -2
- package/lib/directives/mutate/index.js.map +1 -1
- package/lib/directives/resize/index.js +2 -2
- package/lib/directives/resize/index.js.map +1 -1
- package/lib/directives/scroll/index.js +2 -2
- package/lib/directives/scroll/index.js.map +1 -1
- package/lib/framework.js +1 -1
- package/lib/locale/ca.js +7 -7
- package/lib/locale/ca.js.map +1 -1
- package/lib/mixins/activatable/index.js +1 -3
- package/lib/mixins/activatable/index.js.map +1 -1
- package/lib/mixins/binds-attrs/index.js.map +1 -1
- package/lib/mixins/dependent/index.js.map +1 -1
- package/lib/mixins/detachable/index.js.map +1 -1
- package/lib/mixins/overlayable/index.js +1 -1
- package/lib/mixins/overlayable/index.js.map +1 -1
- package/lib/mixins/routable/index.js +4 -3
- package/lib/mixins/routable/index.js.map +1 -1
- package/lib/services/icons/presets/mdi-svg.js +5 -5
- package/lib/services/icons/presets/mdi-svg.js.map +1 -1
- package/lib/util/helpers.js +1 -1
- package/lib/util/helpers.js.map +1 -1
- package/package.json +3 -2
- package/src/components/VAutocomplete/VAutocomplete.sass +0 -4
- package/src/components/VBtn/VBtn.sass +1 -1
- package/src/components/VCheckbox/VSimpleCheckbox.ts +3 -2
- package/src/components/VChip/VChip.sass +1 -1
- package/src/components/VDataTable/VDataTable.ts +4 -1
- package/src/components/VDataTable/__tests__/__snapshots__/VDataTable.spec.ts.snap +14 -14
- package/src/components/VDatePicker/VDatePicker.ts +12 -6
- package/src/components/VDialog/VDialog.sass +1 -1
- package/src/components/VDialog/VDialog.ts +9 -6
- package/src/components/VDialog/__tests__/VDialog.spec.ts +5 -5
- package/src/components/VDialog/__tests__/__snapshots__/VDialog.spec.ts.snap +4 -16
- package/src/components/VExpansionPanel/VExpansionPanel.sass +2 -2
- package/src/components/VInput/VInput.sass +2 -5
- package/src/components/VItemGroup/VItemGroup.ts +2 -2
- package/src/components/VItemGroup/__tests__/VItemGroup.spec.ts +29 -0
- package/src/components/VList/VListItem.ts +5 -3
- package/src/components/VList/__tests__/VListItem.spec.ts +12 -0
- package/src/components/VOtpInput/VOtpInput.ts +23 -43
- package/src/components/VOtpInput/__tests__/VOtpInput.spec.ts +3 -27
- package/src/components/VOverflowBtn/VOverflowBtn.ts +3 -0
- package/src/components/VOverflowBtn/__tests__/VOverflowBtn.spec.ts +18 -0
- package/src/components/VOverflowBtn/__tests__/__snapshots__/VOverflowBtn.spec.ts.snap +104 -4
- package/src/components/VRadioGroup/VRadio.sass +0 -4
- package/src/components/VRangeSlider/__tests__/VRangeSlider.spec.ts +2 -2
- package/src/components/VRangeSlider/__tests__/__snapshots__/VRangeSlider.spec.ts.snap +2 -2
- package/src/components/VSelect/VSelect.sass +4 -2
- package/src/components/VSelect/VSelect.ts +2 -2
- package/src/components/VSkeletonLoader/VSkeletonLoader.sass +1 -1
- package/src/components/VSlideGroup/VSlideGroup.ts +21 -9
- package/src/components/VSlider/VSlider.ts +1 -7
- package/src/components/VSlider/__tests__/VSlider.spec.ts +3 -2
- package/src/components/VTabs/VTabs.ts +10 -0
- package/src/components/VTimePicker/VTimePicker.ts +1 -1
- package/src/components/VTimeline/VTimeline.sass +16 -9
- package/src/components/VTimeline/_mixins.sass +4 -3
- package/src/globals.d.ts +6 -6
- package/src/locale/ca.ts +7 -7
- package/src/mixins/applicationable/__tests__/applicationable.spec.ts +1 -1
- package/src/mixins/binds-attrs/index.ts +2 -2
- package/src/mixins/dependent/index.ts +3 -3
- package/src/mixins/detachable/index.ts +3 -3
- package/src/mixins/overlayable/index.ts +7 -7
- package/src/services/icons/presets/mdi-svg.ts +5 -5
- package/src/styles/components/_selection-controls.sass +3 -0
- package/src/util/helpers.ts +2 -2
- package/es5/util/component.js +0 -11
- package/es5/util/component.js.map +0 -1
- package/lib/util/component.js +0 -4
- package/lib/util/component.js.map +0 -1
- 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])
|
|
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)
|
|
653
|
+
const text = (this.getText(item) ?? '').toString()
|
|
654
654
|
|
|
655
655
|
return text.toLowerCase().startsWith(this.keyboardLookupPrefix)
|
|
656
656
|
})
|
|
@@ -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
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
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
|
-
|
|
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(
|
|
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
|
})
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
12
|
-
sortAscending: 'Ordre ascendent.
|
|
13
|
-
sortNone: 'Sense ordenar.
|
|
14
|
-
activateNone: '
|
|
15
|
-
activateDescending: '
|
|
16
|
-
activateAscending: '
|
|
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: '
|
|
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.
|
|
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
|
|
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> &
|
|
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
|
|
6
|
+
interface options {
|
|
7
7
|
$el: HTMLElement
|
|
8
8
|
$refs: {
|
|
9
|
-
content
|
|
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
|
|
10
|
+
import { PropOptions } from 'vue'
|
|
11
11
|
import { VNode } from 'vue/types'
|
|
12
12
|
|
|
13
|
-
interface options
|
|
13
|
+
interface options {
|
|
14
14
|
$el: HTMLElement
|
|
15
15
|
$refs: {
|
|
16
|
-
content
|
|
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
|
|
132
|
-
if (
|
|
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
|
|
228
|
-
window.addEventListener('keydown', this.scrollListener
|
|
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
|
|
234
|
-
window.removeEventListener('keydown', this.scrollListener
|
|
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: '
|
|
9
|
-
success: 'M12
|
|
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: '
|
|
12
|
-
error: '
|
|
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',
|
package/src/util/helpers.ts
CHANGED
|
@@ -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:
|
|
73
|
+
cb: (event: any) => void,
|
|
74
74
|
options: {}
|
|
75
75
|
): void {
|
|
76
76
|
el.addEventListener(event, cb, passiveSupported ? options : false)
|
package/es5/util/component.js
DELETED
|
@@ -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"}
|
package/lib/util/component.js
DELETED
|
@@ -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"}
|
package/src/util/component.ts
DELETED
|
@@ -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
|
-
}
|