No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
44 | 44 | type: [Boolean, String], |
|
45 | 45 | default: '$prev', |
|
46 | 46 | }, |
|
47 | - | reverse: { |
|
48 | - | type: Boolean, |
|
49 | - | default: undefined, |
|
50 | - | }, |
|
47 | + | reverse: Boolean, |
|
51 | 48 | showArrows: Boolean, |
|
52 | 49 | showArrowsOnHover: Boolean, |
|
53 | 50 | touch: Object as PropType<TouchHandlers>, |
60 | 57 | ||
61 | 58 | data () { |
|
62 | 59 | return { |
|
63 | - | changedByDelimiters: false, |
|
64 | 60 | internalHeight: undefined as undefined | string, // This can be fixed by child class. |
|
65 | 61 | transitionHeight: undefined as undefined | string, // Intermediate height during transition. |
|
66 | 62 | transitionCount: 0, // Number of windows in transition state. |
83 | 79 | if (!this.isBooted) return '' |
|
84 | 80 | ||
85 | 81 | const axis = this.vertical ? 'y' : 'x' |
|
86 | - | const reverse = this.$vuetify.rtl && axis === 'x' ? !this.internalReverse : this.internalReverse |
|
82 | + | const reverse = this.internalReverse ? !this.isReverse : this.isReverse |
|
87 | 83 | const direction = reverse ? '-reverse' : '' |
|
88 | 84 | ||
89 | 85 | return `v-window-${axis}${direction}-transition` |
105 | 101 | }) |
|
106 | 102 | }, |
|
107 | 103 | internalReverse (): boolean { |
|
108 | - | return this.reverse ? !this.isReverse : this.isReverse |
|
104 | + | return this.$vuetify.rtl ? !this.reverse : this.reverse |
|
109 | 105 | }, |
|
110 | 106 | }, |
|
111 | 107 | ||
112 | 108 | watch: { |
|
113 | - | internalIndex: 'updateReverse', |
|
109 | + | internalIndex (val, oldVal) { |
|
110 | + | this.isReverse = this.updateReverse(val, oldVal) |
|
111 | + | }, |
|
114 | 112 | }, |
|
115 | 113 | ||
116 | 114 | mounted () { |
138 | 136 | genIcon ( |
|
139 | 137 | direction: 'prev' | 'next', |
|
140 | 138 | icon: string, |
|
141 | - | fn: () => void |
|
139 | + | click: () => void |
|
142 | 140 | ) { |
|
143 | 141 | return this.$createElement('div', { |
|
144 | 142 | staticClass: `v-window__${direction}`, |
148 | 146 | attrs: { |
|
149 | 147 | 'aria-label': this.$vuetify.lang.t(`$vuetify.carousel.${direction}`), |
|
150 | 148 | }, |
|
151 | - | on: { |
|
152 | - | click: () => { |
|
153 | - | this.changedByDelimiters = true |
|
154 | - | fn() |
|
155 | - | }, |
|
156 | - | }, |
|
149 | + | on: { click }, |
|
157 | 150 | }, [ |
|
158 | 151 | this.$createElement(VIcon, { |
|
159 | 152 | props: { large: true }, |
211 | 204 | return prevIndex |
|
212 | 205 | }, |
|
213 | 206 | next () { |
|
214 | - | this.isReverse = this.$vuetify.rtl |
|
215 | - | ||
216 | 207 | /* istanbul ignore if */ |
|
217 | 208 | if (!this.hasActiveItems || !this.hasNext) return |
|
218 | 209 |
222 | 213 | this.internalValue = this.getValue(item, nextIndex) |
|
223 | 214 | }, |
|
224 | 215 | prev () { |
|
225 | - | this.isReverse = !this.$vuetify.rtl |
|
226 | - | ||
227 | 216 | /* istanbul ignore if */ |
|
228 | 217 | if (!this.hasActiveItems || !this.hasPrev) return |
|
229 | 218 |
233 | 222 | this.internalValue = this.getValue(item, lastIndex) |
|
234 | 223 | }, |
|
235 | 224 | updateReverse (val: number, oldVal: number) { |
|
236 | - | if (this.changedByDelimiters) { |
|
237 | - | this.changedByDelimiters = false |
|
238 | - | return |
|
225 | + | const lastIndex = this.items.length - 1 |
|
226 | + | ||
227 | + | if (val === lastIndex && oldVal === 0) { |
|
228 | + | return true |
|
229 | + | } else if (val === 0 && oldVal === lastIndex) { |
|
230 | + | return false |
|
231 | + | } else { |
|
232 | + | return val < oldVal |
|
239 | 233 | } |
|
240 | - | ||
241 | - | this.isReverse = val < oldVal |
|
242 | 234 | }, |
|
243 | 235 | }, |
|
244 | 236 |
Learn more Showing 64 files with coverage changes found.
packages/vuetify/src/components/VColorPicker/VColorPickerPreview.ts
packages/vuetify/src/components/VSlideGroup/VSlideGroup.ts
packages/vuetify/src/components/VDataTable/VDataTableHeaderDesktop.ts
packages/vuetify/src/components/VAlert/VAlert.ts
packages/vuetify/src/util/console.ts
packages/vuetify/src/components/VImg/VImg.ts
packages/vuetify/src/components/VNavigationDrawer/VNavigationDrawer.ts
packages/vuetify/src/directives/color/index.ts
packages/vuetify/src/install.ts
packages/vuetify/src/components/VLazy/VLazy.ts
packages/vuetify/src/components/VCalendar/VCalendarCategory.ts
packages/vuetify/src/components/VTreeview/util/filterTreeItems.ts
packages/vuetify/src/components/VDatePicker/util/createNativeLocaleFormatter.ts
packages/vuetify/src/components/transitions/createTransition.ts
packages/vuetify/src/services/theme/utils.ts
packages/vuetify/src/directives/mutate/index.ts
packages/vuetify/src/util/color/transformSRGB.ts
packages/vuetify/src/components/VItemGroup/VItemGroup.ts
packages/vuetify/src/components/VCalendar/mixins/mouse.ts
packages/vuetify/src/util/color/transformCIELAB.ts
packages/vuetify/src/mixins/proxyable/index.ts
packages/vuetify/src/mixins/picker-button/index.ts
packages/vuetify/src/services/icons/presets/fa-svg.ts
packages/vuetify/src/components/VSparkline/helpers/core.ts
packages/vuetify/src/mixins/groupable/index.ts
packages/vuetify/src/components/VSnackbar/VSnackbar.ts
packages/vuetify/src/directives/intersect/index.ts
packages/vuetify/src/components/VDataTable/VSimpleTable.ts
packages/vuetify/src/services/lang/index.ts
packages/vuetify/src/services/application/index.ts
packages/vuetify/src/mixins/toggleable/index.ts
packages/vuetify/src/directives/click-outside/index.ts
packages/vuetify/src/services/theme/index.ts
packages/vuetify/src/components/VWindow/VWindow.ts
packages/vuetify/src/components/VDataTable/VDataTable.ts
packages/vuetify/src/util/colorUtils.ts
packages/vuetify/src/components/VCalendar/util/timestamp.ts
packages/vuetify/src/components/VCheckbox/VCheckbox.ts
packages/vuetify/src/util/mergeData.ts
packages/vuetify/src/components/VInput/VInput.ts
packages/vuetify/src/components/VSparkline/VSparkline.ts
packages/vuetify/src/components/VSwitch/VSwitch.ts
packages/vuetify/src/components/VSelect/VSelectList.ts
packages/vuetify/src/components/VIcon/VIcon.ts
packages/vuetify/src/directives/ripple/index.ts
packages/vuetify/src/components/VCalendar/VCalendarWeekly.ts
packages/vuetify/src/components/VCalendar/util/events.ts
packages/vuetify/src/services/presets/index.ts
packages/vuetify/src/services/goto/index.ts
packages/vuetify/src/components/VColorPicker/VColorPickerEdit.ts
packages/vuetify/src/components/VDatePicker/VDatePicker.ts
packages/vuetify/src/components/VMenu/VMenu.ts
packages/vuetify/src/util/helpers.ts
packages/vuetify/src/components/VTabs/VTabs.ts
packages/vuetify/src/components/VAutocomplete/VAutocomplete.ts
packages/vuetify/src/components/VTimePicker/VTimePicker.ts
packages/vuetify/src/components/VSlider/VSlider.ts
packages/vuetify/src/components/VDialog/VDialog.ts
packages/vuetify/src/components/VSelect/VSelect.ts
packages/vuetify/src/components/VData/VData.ts
packages/vuetify/src/components/VTextField/VTextField.ts
packages/vuetify/src/mixins/themeable/index.ts
packages/vuetify/src/components/VColorPicker/util/index.ts
packages/vuetify/src/components/VCalendar/mixins/calendar-with-events.ts
Files | Coverage |
---|---|
VAlert | -1.12% 92.86% |
VApp | 93.33% |
VAppBar | 95.74% |
VAutocomplete | 0.59% 95.98% |
VAvatar | 100.00% |
VBadge | 93.15% |
VBanner | 94.23% |
VBottomNavigation | 93.48% |
VBottomSheet | 0.00% |
VBreadcrumbs | 87.80% |
VBtn | 100.00% |
VBtnToggle | 78.57% |
VCalendar | 0.95% 60.23% |
VCard | 66.67% |
VCarousel | 87.50% |
VCheckbox | 0.12% 92.19% |
VChip | 100.00% |
VChipGroup | 82.35% |
VColorPicker | 0.72% 94.33% |
VCombobox | 86.44% |
VContent | 0.00% |
VCounter | 100.00% |
VData | +1.11% 93.36% |
VDataIterator | 94.82% |
VDataTable | -0.09% 90.44% |
VDatePicker | 0.48% 94.68% |
VDialog | +1.51% 74.01% |
VDivider | 100.00% |
VExpansionPanel | 92.08% |
VFileInput | 89.66% |
VFooter | 91.49% |
VForm | 90.91% |
VGrid | 56.41% |
VHover | 88.89% |
VIcon | 0.17% 99.17% |
VImg | -0.96% 98.04% |
VInput | 0.11% 95.83% |
VItemGroup | 0.03% 95.10% |
VLabel | 100.00% |
VLazy | 0.54% 87.50% |
VList | 93.97% |
VMain | 76.92% |
VMenu | 0.55% 83.26% |
VMessages | 100.00% |
VNavigationDrawer | -0.59% 90.41% |
VOverflowBtn | 74.55% |
VOverlay | 100.00% |
VPagination | 96.43% |
VParallax | 70.97% |
VPicker | 100.00% |
VProgressCircular | 100.00% |
VProgressLinear | 100.00% |
VRadioGroup | 86.46% |
VRangeSlider | 83.17% |
VRating | 96.55% |
VResponsive | 100.00% |
VSelect | +1.31% 91.81% |
VSheet | 100.00% |
VSkeletonLoader | 95.00% |
VSlideGroup | -2.38% 74.17% |
VSlider | 0.67% 98.17% |
VSnackbar | 0.06% 95.65% |
VSparkline | 0.20% 86.93% |
VSpeedDial | 87.50% |
VStepper | 77.71% |
VSubheader | 100.00% |
VSwitch | 0.26% 88.64% |
VSystemBar | 88.46% |
VTabs | 0.73% 89.50% |
VTextField | +1.52% 98.20% |
VTextarea | 92.68% |
VThemeProvider | 100.00% |
VTimePicker | 0.34% 95.55% |
VTimeline | 91.30% |
VToolbar | 81.03% |
VTooltip | 95.65% |
VTreeview | 0.01% 97.61% |
VVirtualScroll | 89.47% |
VWindow | 0.03% 94.48% |
transitions | 0.46% 54.12% |
index.ts | 0.00% |
Folder Totals (81 files) | 85.95% |
Project Totals (368 files) | 87.00% |
#12357
7ce2ceb
adf3ed7
5077c3c