@kokoccc/vuetify 1.0.1
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/package.json +116 -0
- package/src/components/VAlert/VAlert.sass +190 -0
- package/src/components/VAlert/VAlert.ts +256 -0
- package/src/components/VAlert/__tests__/VAlert.spec.ts +222 -0
- package/src/components/VAlert/__tests__/__snapshots__/VAlert.spec.ts.snap +69 -0
- package/src/components/VAlert/_variables.scss +16 -0
- package/src/components/VAlert/index.ts +4 -0
- package/src/components/VApp/VApp.sass +44 -0
- package/src/components/VApp/VApp.ts +60 -0
- package/src/components/VApp/__tests__/VApp.spec.ts +78 -0
- package/src/components/VApp/__tests__/__snapshots__/VApp.spec.ts.snap +21 -0
- package/src/components/VApp/index.ts +4 -0
- package/src/components/VAppBar/VAppBar.sass +55 -0
- package/src/components/VAppBar/VAppBar.ts +293 -0
- package/src/components/VAppBar/VAppBarNavIcon.ts +26 -0
- package/src/components/VAppBar/VAppBarTitle.ts +82 -0
- package/src/components/VAppBar/__tests__/VAppBar.spec.ts +521 -0
- package/src/components/VAppBar/__tests__/VAppBarNavIcon.spec.ts +26 -0
- package/src/components/VAppBar/__tests__/__snapshots__/VAppBar.spec.ts.snap +35 -0
- package/src/components/VAppBar/__tests__/__snapshots__/VAppBarNavIcon.spec.ts.snap +14 -0
- package/src/components/VAppBar/_variables.scss +7 -0
- package/src/components/VAppBar/index.ts +13 -0
- package/src/components/VAutocomplete/VAutocomplete.sass +41 -0
- package/src/components/VAutocomplete/VAutocomplete.ts +480 -0
- package/src/components/VAutocomplete/__tests__/VAutocomplete.spec.ts +585 -0
- package/src/components/VAutocomplete/__tests__/VAutocomplete2.spec.ts +498 -0
- package/src/components/VAutocomplete/__tests__/VAutocomplete3.spec.ts +318 -0
- package/src/components/VAutocomplete/_variables.scss +5 -0
- package/src/components/VAutocomplete/index.ts +4 -0
- package/src/components/VAvatar/VAvatar.sass +22 -0
- package/src/components/VAvatar/VAvatar.ts +60 -0
- package/src/components/VAvatar/__tests__/VAvatar.spec.ts +97 -0
- package/src/components/VAvatar/__tests__/__snapshots__/VAvatar.spec.ts.snap +8 -0
- package/src/components/VAvatar/_variables.scss +3 -0
- package/src/components/VAvatar/index.ts +4 -0
- package/src/components/VBadge/VBadge.sass +108 -0
- package/src/components/VBadge/VBadge.ts +206 -0
- package/src/components/VBadge/__tests__/VBadge.spec.ts +150 -0
- package/src/components/VBadge/__tests__/__snapshots__/VBadge.spec.ts.snap +42 -0
- package/src/components/VBadge/_variables.scss +21 -0
- package/src/components/VBadge/index.ts +4 -0
- package/src/components/VBanner/VBanner.sass +148 -0
- package/src/components/VBanner/VBanner.ts +175 -0
- package/src/components/VBanner/__tests__/VBanner.spec.ts +227 -0
- package/src/components/VBanner/__tests__/__snapshots__/VBanner.spec.ts.snap +126 -0
- package/src/components/VBanner/_variables.scss +19 -0
- package/src/components/VBanner/index.ts +4 -0
- package/src/components/VBottomNavigation/VBottomNavigation.sass +89 -0
- package/src/components/VBottomNavigation/VBottomNavigation.ts +168 -0
- package/src/components/VBottomNavigation/__tests__/VBottomNavigation.spec.ts +144 -0
- package/src/components/VBottomNavigation/__tests__/__snapshots__/VBottomNavigation.spec.ts.snap +53 -0
- package/src/components/VBottomNavigation/_variables.scss +7 -0
- package/src/components/VBottomNavigation/index.ts +4 -0
- package/src/components/VBottomSheet/VBottomSheet.sass +23 -0
- package/src/components/VBottomSheet/VBottomSheet.ts +30 -0
- package/src/components/VBottomSheet/_variables.scss +3 -0
- package/src/components/VBottomSheet/index.ts +4 -0
- package/src/components/VBreadcrumbs/VBreadcrumbs.sass +45 -0
- package/src/components/VBreadcrumbs/VBreadcrumbs.ts +82 -0
- package/src/components/VBreadcrumbs/VBreadcrumbsDivider.ts +3 -0
- package/src/components/VBreadcrumbs/VBreadcrumbsItem.ts +48 -0
- package/src/components/VBreadcrumbs/__tests__/VBreadcrumbs.spec.ts +213 -0
- package/src/components/VBreadcrumbs/__tests__/VBreadcrumbsItem.spec.ts +44 -0
- package/src/components/VBreadcrumbs/__tests__/__snapshots__/VBreadcrumbs.spec.ts.snap +108 -0
- package/src/components/VBreadcrumbs/__tests__/__snapshots__/VBreadcrumbsItem.spec.ts.snap +17 -0
- package/src/components/VBreadcrumbs/_variables.scss +8 -0
- package/src/components/VBreadcrumbs/index.ts +13 -0
- package/src/components/VBtn/VBtn.sass +249 -0
- package/src/components/VBtn/VBtn.ts +223 -0
- package/src/components/VBtn/__tests__/VBtn.spec.ts +306 -0
- package/src/components/VBtn/__tests__/__snapshots__/VBtn.spec.ts.snap +61 -0
- package/src/components/VBtn/_variables.scss +73 -0
- package/src/components/VBtn/index.ts +4 -0
- package/src/components/VBtnToggle/VBtnToggle.sass +99 -0
- package/src/components/VBtnToggle/VBtnToggle.ts +55 -0
- package/src/components/VBtnToggle/__tests__/VBtnToggle.spec.ts +40 -0
- package/src/components/VBtnToggle/_variables.scss +11 -0
- package/src/components/VBtnToggle/index.ts +4 -0
- package/src/components/VCalendar/VCalendar.ts +383 -0
- package/src/components/VCalendar/VCalendarCategory.sass +100 -0
- package/src/components/VCalendar/VCalendarCategory.ts +143 -0
- package/src/components/VCalendar/VCalendarDaily.sass +140 -0
- package/src/components/VCalendar/VCalendarDaily.ts +250 -0
- package/src/components/VCalendar/VCalendarMonthly.ts +30 -0
- package/src/components/VCalendar/VCalendarWeekly.sass +118 -0
- package/src/components/VCalendar/VCalendarWeekly.ts +225 -0
- package/src/components/VCalendar/__tests__/VCalendar.spec.ts +129 -0
- package/src/components/VCalendar/__tests__/VCalendarCategory.spec.ts +112 -0
- package/src/components/VCalendar/__tests__/VCalendarDaily.spec.ts +187 -0
- package/src/components/VCalendar/__tests__/__snapshots__/VCalendar.spec.ts.snap +3378 -0
- package/src/components/VCalendar/__tests__/__snapshots__/VCalendarDaily.spec.ts.snap +9127 -0
- package/src/components/VCalendar/_variables.scss +34 -0
- package/src/components/VCalendar/index.ts +17 -0
- package/src/components/VCalendar/mixins/__tests__/__snapshots__/calendar-base.spec.ts.snap +225 -0
- package/src/components/VCalendar/mixins/__tests__/__snapshots__/calendar-with-events.spec.ts.snap +3 -0
- package/src/components/VCalendar/mixins/__tests__/__snapshots__/calendar-with-intervals.spec.ts.snap +4566 -0
- package/src/components/VCalendar/mixins/__tests__/__snapshots__/times.spec.ts.snap +19 -0
- package/src/components/VCalendar/mixins/__tests__/calendar-base.spec.ts +179 -0
- package/src/components/VCalendar/mixins/__tests__/calendar-with-events.spec.ts +228 -0
- package/src/components/VCalendar/mixins/__tests__/calendar-with-intervals.spec.ts +360 -0
- package/src/components/VCalendar/mixins/__tests__/times.spec.ts +80 -0
- package/src/components/VCalendar/mixins/calendar-base.ts +118 -0
- package/src/components/VCalendar/mixins/calendar-with-events.sass +67 -0
- package/src/components/VCalendar/mixins/calendar-with-events.ts +511 -0
- package/src/components/VCalendar/mixins/calendar-with-intervals.ts +164 -0
- package/src/components/VCalendar/mixins/times.ts +74 -0
- package/src/components/VCalendar/modes/__tests__/__snapshots__/common.spec.ts.snap +185 -0
- package/src/components/VCalendar/modes/__tests__/common.spec.ts +77 -0
- package/src/components/VCalendar/modes/column.ts +21 -0
- package/src/components/VCalendar/modes/common.ts +140 -0
- package/src/components/VCalendar/modes/index.ts +8 -0
- package/src/components/VCalendar/modes/stack.ts +255 -0
- package/src/components/VCalendar/util/__tests__/__snapshots__/events.spec.ts.snap +231 -0
- package/src/components/VCalendar/util/__tests__/__snapshots__/timestamp.spec.ts.snap +396 -0
- package/src/components/VCalendar/util/__tests__/events.spec.ts +85 -0
- package/src/components/VCalendar/util/__tests__/props.spec.ts +15 -0
- package/src/components/VCalendar/util/__tests__/timestamp.spec.ts +512 -0
- package/src/components/VCalendar/util/events.ts +52 -0
- package/src/components/VCalendar/util/parser.ts +30 -0
- package/src/components/VCalendar/util/props.ts +261 -0
- package/src/components/VCalendar/util/timestamp.ts +480 -0
- package/src/components/VCard/VCard.sass +155 -0
- package/src/components/VCard/VCard.ts +92 -0
- package/src/components/VCard/__tests__/VCard.spec.ts +122 -0
- package/src/components/VCard/__tests__/__snapshots__/VCard.spec.ts.snap +61 -0
- package/src/components/VCard/_variables.scss +29 -0
- package/src/components/VCard/index.ts +25 -0
- package/src/components/VCarousel/VCarousel.sass +61 -0
- package/src/components/VCarousel/VCarousel.ts +232 -0
- package/src/components/VCarousel/VCarouselItem.ts +73 -0
- package/src/components/VCarousel/__tests__/VCarousel.spec.ts +227 -0
- package/src/components/VCarousel/__tests__/VCarouselItem.spec.ts +33 -0
- package/src/components/VCarousel/__tests__/__snapshots__/VCarousel.spec.ts.snap +31 -0
- package/src/components/VCarousel/_variables.scss +8 -0
- package/src/components/VCarousel/index.ts +11 -0
- package/src/components/VCheckbox/VCheckbox.sass +9 -0
- package/src/components/VCheckbox/VCheckbox.ts +124 -0
- package/src/components/VCheckbox/VSimpleCheckbox.sass +16 -0
- package/src/components/VCheckbox/VSimpleCheckbox.ts +148 -0
- package/src/components/VCheckbox/__tests__/VCheckbox.spec.ts +379 -0
- package/src/components/VCheckbox/__tests__/VSimpleCheckbox.spec.ts +65 -0
- package/src/components/VCheckbox/__tests__/__snapshots__/VCheckbox.spec.ts.snap +170 -0
- package/src/components/VCheckbox/_variables.scss +4 -0
- package/src/components/VCheckbox/index.ts +10 -0
- package/src/components/VChip/VChip.sass +204 -0
- package/src/components/VChip/VChip.ts +204 -0
- package/src/components/VChip/__tests__/VChip.spec.ts +169 -0
- package/src/components/VChip/__tests__/__snapshots__/VChip.spec.ts.snap +22 -0
- package/src/components/VChip/_variables.scss +52 -0
- package/src/components/VChip/index.ts +4 -0
- package/src/components/VChipGroup/VChipGroup.sass +27 -0
- package/src/components/VChipGroup/VChipGroup.ts +55 -0
- package/src/components/VChipGroup/__tests__/VChipGroup.spec.ts +65 -0
- package/src/components/VChipGroup/__tests__/__snapshots__/VChipGroup.spec.ts.snap +53 -0
- package/src/components/VChipGroup/_variables.scss +6 -0
- package/src/components/VChipGroup/index.ts +4 -0
- package/src/components/VColorPicker/VColorPicker.sass +32 -0
- package/src/components/VColorPicker/VColorPicker.ts +178 -0
- package/src/components/VColorPicker/VColorPickerCanvas.sass +23 -0
- package/src/components/VColorPicker/VColorPickerCanvas.ts +173 -0
- package/src/components/VColorPicker/VColorPickerEdit.sass +31 -0
- package/src/components/VColorPicker/VColorPickerEdit.ts +185 -0
- package/src/components/VColorPicker/VColorPickerPreview.sass +66 -0
- package/src/components/VColorPicker/VColorPickerPreview.ts +113 -0
- package/src/components/VColorPicker/VColorPickerSwatches.sass +34 -0
- package/src/components/VColorPicker/VColorPickerSwatches.ts +113 -0
- package/src/components/VColorPicker/__tests__/VColorPicker.spec.ts +198 -0
- package/src/components/VColorPicker/__tests__/VColorPickerCanvas.spec.ts +111 -0
- package/src/components/VColorPicker/__tests__/VColorPickerEdit.spec.ts +147 -0
- package/src/components/VColorPicker/__tests__/VColorPickerPreview.spec.ts +143 -0
- package/src/components/VColorPicker/__tests__/__snapshots__/VColorPicker.spec.ts.snap +2247 -0
- package/src/components/VColorPicker/__tests__/__snapshots__/VColorPickerCanvas.spec.ts.snap +82 -0
- package/src/components/VColorPicker/__tests__/__snapshots__/VColorPickerEdit.spec.ts.snap +314 -0
- package/src/components/VColorPicker/_variables.scss +25 -0
- package/src/components/VColorPicker/index.ts +6 -0
- package/src/components/VColorPicker/util/__tests__/index.spec.ts +81 -0
- package/src/components/VColorPicker/util/index.ts +168 -0
- package/src/components/VCombobox/VCombobox.ts +302 -0
- package/src/components/VCombobox/__tests__/VCombobox-multiple.spec.ts +722 -0
- package/src/components/VCombobox/__tests__/VCombobox.spec.ts +385 -0
- package/src/components/VCombobox/index.ts +4 -0
- package/src/components/VContent/VContent.ts +36 -0
- package/src/components/VContent/index.ts +5 -0
- package/src/components/VCounter/VCounter.sass +11 -0
- package/src/components/VCounter/VCounter.ts +40 -0
- package/src/components/VCounter/__tests__/VCounter.spec.ts +41 -0
- package/src/components/VCounter/__tests__/__snapshots__/VCounter.spec.ts.snap +7 -0
- package/src/components/VCounter/_variables.scss +5 -0
- package/src/components/VCounter/index.ts +4 -0
- package/src/components/VData/VData.ts +394 -0
- package/src/components/VData/__tests__/VData.spec.ts +578 -0
- package/src/components/VData/__tests__/__snapshots__/VData.spec.ts.snap +159 -0
- package/src/components/VData/index.ts +5 -0
- package/src/components/VDataIterator/VDataFooter.sass +71 -0
- package/src/components/VDataIterator/VDataFooter.ts +224 -0
- package/src/components/VDataIterator/VDataIterator.ts +370 -0
- package/src/components/VDataIterator/__tests__/VDataFooter.spec.ts +200 -0
- package/src/components/VDataIterator/__tests__/VDataIterator.spec.ts +318 -0
- package/src/components/VDataIterator/__tests__/__snapshots__/VDataFooter.spec.ts.snap +460 -0
- package/src/components/VDataIterator/__tests__/__snapshots__/VDataIterator.spec.ts.snap +438 -0
- package/src/components/VDataIterator/_variables.scss +13 -0
- package/src/components/VDataIterator/index.ts +10 -0
- package/src/components/VDataTable/MobileRow.ts +66 -0
- package/src/components/VDataTable/Row.ts +66 -0
- package/src/components/VDataTable/RowGroup.ts +67 -0
- package/src/components/VDataTable/VDataTable.sass +98 -0
- package/src/components/VDataTable/VDataTable.ts +661 -0
- package/src/components/VDataTable/VDataTableHeader.sass +80 -0
- package/src/components/VDataTable/VDataTableHeader.ts +42 -0
- package/src/components/VDataTable/VDataTableHeaderDesktop.ts +125 -0
- package/src/components/VDataTable/VDataTableHeaderMobile.ts +97 -0
- package/src/components/VDataTable/VEditDialog.sass +22 -0
- package/src/components/VDataTable/VEditDialog.ts +133 -0
- package/src/components/VDataTable/VSimpleTable.sass +179 -0
- package/src/components/VDataTable/VSimpleTable.ts +52 -0
- package/src/components/VDataTable/VVirtualTable.sass +13 -0
- package/src/components/VDataTable/VVirtualTable.ts +163 -0
- package/src/components/VDataTable/__tests__/MobileRow.spec.ts +127 -0
- package/src/components/VDataTable/__tests__/Row.spec.ts +129 -0
- package/src/components/VDataTable/__tests__/RowGroup.spec.ts +38 -0
- package/src/components/VDataTable/__tests__/VDataTable.spec.ts +1058 -0
- package/src/components/VDataTable/__tests__/VDataTableHeader.spec.ts +167 -0
- package/src/components/VDataTable/__tests__/VEditDialog.spec.ts +231 -0
- package/src/components/VDataTable/__tests__/VSimpleTable.spec.ts +146 -0
- package/src/components/VDataTable/__tests__/VVirtualTable.spec.ts +51 -0
- package/src/components/VDataTable/__tests__/__snapshots__/MobileRow.spec.ts.snap +139 -0
- package/src/components/VDataTable/__tests__/__snapshots__/Row.spec.ts.snap +77 -0
- package/src/components/VDataTable/__tests__/__snapshots__/RowGroup.spec.ts.snap +13 -0
- package/src/components/VDataTable/__tests__/__snapshots__/VDataTable.spec.ts.snap +13237 -0
- package/src/components/VDataTable/__tests__/__snapshots__/VDataTableHeader.spec.ts.snap +841 -0
- package/src/components/VDataTable/__tests__/__snapshots__/VEditDialog.spec.ts.snap +48 -0
- package/src/components/VDataTable/__tests__/__snapshots__/VSimpleTable.spec.ts.snap +95 -0
- package/src/components/VDataTable/__tests__/__snapshots__/VVirtualTable.spec.ts.snap +77 -0
- package/src/components/VDataTable/_variables.scss +24 -0
- package/src/components/VDataTable/index.ts +22 -0
- package/src/components/VDataTable/mixins/__tests__/__snapshots__/header.spec.ts.snap +78 -0
- package/src/components/VDataTable/mixins/__tests__/header.spec.ts +109 -0
- package/src/components/VDataTable/mixins/header.ts +74 -0
- package/src/components/VDatePicker/VDatePicker.ts +539 -0
- package/src/components/VDatePicker/VDatePickerDateTable.ts +154 -0
- package/src/components/VDatePicker/VDatePickerHeader.sass +46 -0
- package/src/components/VDatePicker/VDatePickerHeader.ts +164 -0
- package/src/components/VDatePicker/VDatePickerMonthTable.ts +58 -0
- package/src/components/VDatePicker/VDatePickerTable.sass +84 -0
- package/src/components/VDatePicker/VDatePickerTitle.sass +37 -0
- package/src/components/VDatePicker/VDatePickerTitle.ts +121 -0
- package/src/components/VDatePicker/VDatePickerYears.sass +30 -0
- package/src/components/VDatePicker/VDatePickerYears.ts +116 -0
- package/src/components/VDatePicker/__tests__/VDatePicker.date.spec.ts +782 -0
- package/src/components/VDatePicker/__tests__/VDatePicker.month.spec.ts +377 -0
- package/src/components/VDatePicker/__tests__/VDatePickerDateTable.spec.ts +304 -0
- package/src/components/VDatePicker/__tests__/VDatePickerHeader.spec.ts +228 -0
- package/src/components/VDatePicker/__tests__/VDatePickerMonthTable.spec.ts +242 -0
- package/src/components/VDatePicker/__tests__/VDatePickerTitle.spec.ts +148 -0
- package/src/components/VDatePicker/__tests__/VDatePickerYears.spec.ts +89 -0
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePicker.date.spec.ts.snap +4664 -0
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePicker.month.spec.ts.snap +1151 -0
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerDateTable.spec.ts.snap +3387 -0
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerHeader.spec.ts.snap +165 -0
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerMonthTable.spec.ts.snap +783 -0
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerTitle.spec.ts.snap +73 -0
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerYears.spec.ts.snap +609 -0
- package/src/components/VDatePicker/_variables.scss +42 -0
- package/src/components/VDatePicker/index.ts +26 -0
- package/src/components/VDatePicker/mixins/date-picker-table.ts +273 -0
- package/src/components/VDatePicker/util/__tests__/createNativeLocaleFormatter.spec.ts +34 -0
- package/src/components/VDatePicker/util/__tests__/monthChange.spec.ts +10 -0
- package/src/components/VDatePicker/util/__tests__/pad.spec.ts +18 -0
- package/src/components/VDatePicker/util/__tests__/sanitizeDateString.spec.ts +10 -0
- package/src/components/VDatePicker/util/createNativeLocaleFormatter.ts +43 -0
- package/src/components/VDatePicker/util/eventHelpers.ts +41 -0
- package/src/components/VDatePicker/util/index.ts +17 -0
- package/src/components/VDatePicker/util/isDateAllowed.ts +7 -0
- package/src/components/VDatePicker/util/monthChange.ts +17 -0
- package/src/components/VDatePicker/util/pad.ts +16 -0
- package/src/components/VDatePicker/util/sanitizeDateString.ts +8 -0
- package/src/components/VDialog/VDialog.sass +106 -0
- package/src/components/VDialog/VDialog.ts +335 -0
- package/src/components/VDialog/__tests__/VDialog.spec.ts +359 -0
- package/src/components/VDialog/__tests__/__snapshots__/VDialog.spec.ts.snap +51 -0
- package/src/components/VDialog/_variables.scss +13 -0
- package/src/components/VDialog/index.ts +4 -0
- package/src/components/VDivider/VDivider.sass +40 -0
- package/src/components/VDivider/VDivider.ts +40 -0
- package/src/components/VDivider/__tests__/VDivider.spec.ts +98 -0
- package/src/components/VDivider/__tests__/__snapshots__/VDivider.spec.ts.snap +8 -0
- package/src/components/VDivider/_variables.scss +5 -0
- package/src/components/VDivider/index.ts +4 -0
- package/src/components/VExpansionPanel/VExpansionPanel.sass +211 -0
- package/src/components/VExpansionPanel/VExpansionPanel.ts +98 -0
- package/src/components/VExpansionPanel/VExpansionPanelContent.ts +73 -0
- package/src/components/VExpansionPanel/VExpansionPanelHeader.ts +120 -0
- package/src/components/VExpansionPanel/VExpansionPanels.ts +79 -0
- package/src/components/VExpansionPanel/__tests__/VExpansionPanel.spec.ts +178 -0
- package/src/components/VExpansionPanel/__tests__/VExpansionPanelHeader.spec.ts +41 -0
- package/src/components/VExpansionPanel/__tests__/VExpansionPanels.spec.ts +48 -0
- package/src/components/VExpansionPanel/__tests__/__snapshots__/VExpansionPanel.spec.ts.snap +37 -0
- package/src/components/VExpansionPanel/_variables.scss +13 -0
- package/src/components/VExpansionPanel/index.ts +15 -0
- package/src/components/VFileInput/VFileInput.sass +60 -0
- package/src/components/VFileInput/VFileInput.ts +302 -0
- package/src/components/VFileInput/__tests__/VFileInput.spec.ts +333 -0
- package/src/components/VFileInput/__tests__/__snapshots__/VFileInput.spec.ts.snap +627 -0
- package/src/components/VFileInput/_variables.scss +6 -0
- package/src/components/VFileInput/index.ts +4 -0
- package/src/components/VFooter/VFooter.sass +39 -0
- package/src/components/VFooter/VFooter.ts +116 -0
- package/src/components/VFooter/__tests__/VFooter.spec.ts +76 -0
- package/src/components/VFooter/_variables.scss +10 -0
- package/src/components/VFooter/index.ts +4 -0
- package/src/components/VForm/VForm.ts +170 -0
- package/src/components/VForm/__tests__/VForm.spec.ts +276 -0
- package/src/components/VForm/index.ts +4 -0
- package/src/components/VGrid/VCol.ts +139 -0
- package/src/components/VGrid/VContainer.ts +68 -0
- package/src/components/VGrid/VFlex.ts +5 -0
- package/src/components/VGrid/VGrid.sass +41 -0
- package/src/components/VGrid/VLayout.ts +5 -0
- package/src/components/VGrid/VRow.ts +138 -0
- package/src/components/VGrid/VSpacer.ts +4 -0
- package/src/components/VGrid/__tests__/VCol.spec.ts +151 -0
- package/src/components/VGrid/__tests__/VContainer.spec.ts +83 -0
- package/src/components/VGrid/__tests__/VFlex.spec.ts +28 -0
- package/src/components/VGrid/__tests__/VGrid.spec.ts +74 -0
- package/src/components/VGrid/__tests__/VLayout.spec.ts +28 -0
- package/src/components/VGrid/__tests__/__snapshots__/VContainer.spec.ts.snap +6 -0
- package/src/components/VGrid/__tests__/__snapshots__/VFlex.spec.ts.snap +6 -0
- package/src/components/VGrid/__tests__/__snapshots__/VLayout.spec.ts.snap +6 -0
- package/src/components/VGrid/_grid.sass +117 -0
- package/src/components/VGrid/_mixins.sass +72 -0
- package/src/components/VGrid/grid.ts +55 -0
- package/src/components/VGrid/index.ts +26 -0
- package/src/components/VHover/VHover.ts +79 -0
- package/src/components/VHover/__tests__/VHover.spec.ts +119 -0
- package/src/components/VHover/index.ts +4 -0
- package/src/components/VIcon/VIcon.sass +73 -0
- package/src/components/VIcon/VIcon.ts +298 -0
- package/src/components/VIcon/__tests__/VIcon.spec.ts +328 -0
- package/src/components/VIcon/__tests__/__snapshots__/VIcon.spec.ts.snap +74 -0
- package/src/components/VIcon/_variables.scss +4 -0
- package/src/components/VIcon/index.ts +4 -0
- package/src/components/VImg/VImg.sass +30 -0
- package/src/components/VImg/VImg.ts +312 -0
- package/src/components/VImg/__tests__/VImg.spec.ts +196 -0
- package/src/components/VImg/__tests__/__snapshots__/VImg.spec.ts.snap +203 -0
- package/src/components/VImg/_variables.scss +3 -0
- package/src/components/VImg/index.ts +4 -0
- package/src/components/VInput/VInput.sass +132 -0
- package/src/components/VInput/VInput.ts +348 -0
- package/src/components/VInput/__tests__/VInput.spec.ts +215 -0
- package/src/components/VInput/__tests__/__snapshots__/VInput.spec.ts.snap +193 -0
- package/src/components/VInput/_variables.scss +14 -0
- package/src/components/VInput/index.ts +4 -0
- package/src/components/VItemGroup/VItem.sass +4 -0
- package/src/components/VItemGroup/VItem.ts +88 -0
- package/src/components/VItemGroup/VItemGroup.sass +7 -0
- package/src/components/VItemGroup/VItemGroup.ts +285 -0
- package/src/components/VItemGroup/__tests__/VItem.spec.ts +72 -0
- package/src/components/VItemGroup/__tests__/VItemGroup.spec.ts +408 -0
- package/src/components/VItemGroup/__tests__/__snapshots__/VItem.spec.ts.snap +13 -0
- package/src/components/VItemGroup/_variables.scss +3 -0
- package/src/components/VItemGroup/index.ts +14 -0
- package/src/components/VLabel/VLabel.sass +14 -0
- package/src/components/VLabel/VLabel.ts +65 -0
- package/src/components/VLabel/__tests__/VLabel.spec.ts +277 -0
- package/src/components/VLabel/_variables.scss +5 -0
- package/src/components/VLabel/index.ts +4 -0
- package/src/components/VLazy/VLazy.ts +88 -0
- package/src/components/VLazy/__tests__/VLazy.spec.ts +70 -0
- package/src/components/VLazy/__tests__/__snapshots__/VLazy.spec.ts.snap +15 -0
- package/src/components/VLazy/index.ts +4 -0
- package/src/components/VList/VList.sass +98 -0
- package/src/components/VList/VList.ts +102 -0
- package/src/components/VList/VListGroup.sass +111 -0
- package/src/components/VList/VListGroup.ts +228 -0
- package/src/components/VList/VListItem.sass +268 -0
- package/src/components/VList/VListItem.ts +232 -0
- package/src/components/VList/VListItemAction.ts +23 -0
- package/src/components/VList/VListItemAvatar.ts +35 -0
- package/src/components/VList/VListItemGroup.sass +5 -0
- package/src/components/VList/VListItemGroup.ts +45 -0
- package/src/components/VList/VListItemIcon.ts +17 -0
- package/src/components/VList/__tests__/VList.spec.ts +86 -0
- package/src/components/VList/__tests__/VListGroup.spec.ts +201 -0
- package/src/components/VList/__tests__/VListItem.spec.ts +328 -0
- package/src/components/VList/__tests__/VListItemAction.spec.ts +80 -0
- package/src/components/VList/__tests__/VListItemAvatar.spec.ts +33 -0
- package/src/components/VList/__tests__/VListItemGroup.spec.ts +30 -0
- package/src/components/VList/__tests__/__snapshots__/VList.spec.ts.snap +36 -0
- package/src/components/VList/__tests__/__snapshots__/VListGroup.spec.ts.snap +18 -0
- package/src/components/VList/__tests__/__snapshots__/VListItem.spec.ts.snap +16 -0
- package/src/components/VList/__tests__/__snapshots__/VListItemAction.spec.ts.snap +43 -0
- package/src/components/VList/__tests__/__snapshots__/VListItemAvatar.spec.ts.snap +8 -0
- package/src/components/VList/_mixins.sass +18 -0
- package/src/components/VList/_variables.scss +67 -0
- package/src/components/VList/index.ts +40 -0
- package/src/components/VMain/VMain.sass +22 -0
- package/src/components/VMain/VMain.ts +54 -0
- package/src/components/VMain/__tests__/VMain.spec.ts +95 -0
- package/src/components/VMain/__tests__/__snapshots__/VMain.spec.ts.snap +10 -0
- package/src/components/VMain/_variables.scss +6 -0
- package/src/components/VMain/index.ts +5 -0
- package/src/components/VMenu/VMenu.sass +70 -0
- package/src/components/VMenu/VMenu.ts +535 -0
- package/src/components/VMenu/__tests__/VMenu.spec.ts +445 -0
- package/src/components/VMenu/__tests__/__snapshots__/VMenu.spec.ts.snap +37 -0
- package/src/components/VMenu/_variables.scss +4 -0
- package/src/components/VMenu/index.ts +4 -0
- package/src/components/VMessages/VMessages.sass +25 -0
- package/src/components/VMessages/VMessages.ts +59 -0
- package/src/components/VMessages/__tests__/VMessages.spec.ts +117 -0
- package/src/components/VMessages/__tests__/__snapshots__/VMessages.spec.ts.snap +59 -0
- package/src/components/VMessages/_variables.scss +5 -0
- package/src/components/VMessages/index.ts +4 -0
- package/src/components/VNavigationDrawer/VNavigationDrawer.sass +127 -0
- package/src/components/VNavigationDrawer/VNavigationDrawer.ts +477 -0
- package/src/components/VNavigationDrawer/__tests__/VNavigationDrawer.spec.ts +552 -0
- package/src/components/VNavigationDrawer/_variables.scss +4 -0
- package/src/components/VNavigationDrawer/index.ts +4 -0
- package/src/components/VOtpInput/VOtpInput.sass +37 -0
- package/src/components/VOtpInput/VOtpInput.ts +357 -0
- package/src/components/VOtpInput/__tests__/VOtpInput.spec.ts +267 -0
- package/src/components/VOtpInput/_variables.scss +4 -0
- package/src/components/VOtpInput/index.ts +4 -0
- package/src/components/VOverflowBtn/VOverflowBtn.sass +151 -0
- package/src/components/VOverflowBtn/VOverflowBtn.ts +117 -0
- package/src/components/VOverflowBtn/__tests__/VOverflowBtn.spec.ts +129 -0
- package/src/components/VOverflowBtn/__tests__/__snapshots__/VOverflowBtn.spec.ts.snap +189 -0
- package/src/components/VOverflowBtn/_variables.scss +24 -0
- package/src/components/VOverflowBtn/index.ts +4 -0
- package/src/components/VOverlay/VOverlay.sass +42 -0
- package/src/components/VOverlay/VOverlay.ts +109 -0
- package/src/components/VOverlay/__tests__/VOverlay.spec.ts +38 -0
- package/src/components/VOverlay/_variables.scss +3 -0
- package/src/components/VOverlay/index.ts +5 -0
- package/src/components/VPagination/VPagination.sass +82 -0
- package/src/components/VPagination/VPagination.ts +272 -0
- package/src/components/VPagination/__tests__/VPagination.spec.ts +312 -0
- package/src/components/VPagination/__tests__/__snapshots__/VPagination.spec.ts.snap +584 -0
- package/src/components/VPagination/_variables.scss +16 -0
- package/src/components/VPagination/index.ts +4 -0
- package/src/components/VParallax/VParallax.sass +37 -0
- package/src/components/VParallax/VParallax.ts +108 -0
- package/src/components/VParallax/__tests__/VParallax.spec.ts +52 -0
- package/src/components/VParallax/__tests__/__snapshots__/VParallax.spec.ts.snap +46 -0
- package/src/components/VParallax/_variables.scss +4 -0
- package/src/components/VParallax/index.ts +4 -0
- package/src/components/VPicker/VPicker.sass +94 -0
- package/src/components/VPicker/VPicker.ts +95 -0
- package/src/components/VPicker/__tests__/VPicker.spec.ts +99 -0
- package/src/components/VPicker/__tests__/__snapshots__/VPicker.spec.ts.snap +81 -0
- package/src/components/VPicker/_variables.scss +8 -0
- package/src/components/VPicker/index.ts +4 -0
- package/src/components/VProgressCircular/VProgressCircular.sass +67 -0
- package/src/components/VProgressCircular/VProgressCircular.ts +164 -0
- package/src/components/VProgressCircular/__tests__/VProgressCircular.spec.ts +158 -0
- package/src/components/VProgressCircular/__tests__/__snapshots__/VProgressCircular.spec.ts.snap +298 -0
- package/src/components/VProgressCircular/_variables.scss +7 -0
- package/src/components/VProgressCircular/index.ts +4 -0
- package/src/components/VProgressLinear/VProgressLinear.sass +273 -0
- package/src/components/VProgressLinear/VProgressLinear.ts +291 -0
- package/src/components/VProgressLinear/__tests__/VProgressLinear.spec.ts +603 -0
- package/src/components/VProgressLinear/__tests__/__snapshots__/VProgressLinear.spec.ts.snap +328 -0
- package/src/components/VProgressLinear/_variables.scss +16 -0
- package/src/components/VProgressLinear/index.ts +4 -0
- package/src/components/VRadioGroup/VRadio.sass +21 -0
- package/src/components/VRadioGroup/VRadio.ts +193 -0
- package/src/components/VRadioGroup/VRadioGroup.sass +39 -0
- package/src/components/VRadioGroup/VRadioGroup.ts +111 -0
- package/src/components/VRadioGroup/__tests__/VRadio.spec.ts +156 -0
- package/src/components/VRadioGroup/__tests__/VRadioGroup.spec.ts +40 -0
- package/src/components/VRadioGroup/__tests__/__snapshots__/VRadio.spec.ts.snap +118 -0
- package/src/components/VRadioGroup/__tests__/__snapshots__/VRadioGroup.spec.ts.snap +57 -0
- package/src/components/VRadioGroup/_variables.scss +4 -0
- package/src/components/VRadioGroup/index.ts +11 -0
- package/src/components/VRangeSlider/VRangeSlider.sass +19 -0
- package/src/components/VRangeSlider/VRangeSlider.ts +272 -0
- package/src/components/VRangeSlider/__tests__/VRangeSlider.spec.ts +216 -0
- package/src/components/VRangeSlider/__tests__/__snapshots__/VRangeSlider.spec.ts.snap +123 -0
- package/src/components/VRangeSlider/index.ts +4 -0
- package/src/components/VRating/VRating.sass +28 -0
- package/src/components/VRating/VRating.ts +262 -0
- package/src/components/VRating/__tests__/VRating.spec.ts +284 -0
- package/src/components/VRating/__tests__/__snapshots__/VRating.spec.ts.snap +21 -0
- package/src/components/VRating/_variables.scss +5 -0
- package/src/components/VRating/index.ts +4 -0
- package/src/components/VResponsive/VResponsive.sass +23 -0
- package/src/components/VResponsive/VResponsive.ts +60 -0
- package/src/components/VResponsive/__tests__/VResponsive.spec.ts +52 -0
- package/src/components/VResponsive/__tests__/__snapshots__/VResponsive.spec.ts.snap +31 -0
- package/src/components/VResponsive/_variables.scss +3 -0
- package/src/components/VResponsive/index.ts +4 -0
- package/src/components/VSelect/VSelect.sass +164 -0
- package/src/components/VSelect/VSelect.ts +951 -0
- package/src/components/VSelect/VSelectList.ts +282 -0
- package/src/components/VSelect/__tests__/VSelect.spec.ts +567 -0
- package/src/components/VSelect/__tests__/VSelect2.spec.ts +560 -0
- package/src/components/VSelect/__tests__/VSelect3.spec.ts +510 -0
- package/src/components/VSelect/__tests__/VSelect4.spec.ts +438 -0
- package/src/components/VSelect/__tests__/VSelectList.spec.ts +144 -0
- package/src/components/VSelect/__tests__/__snapshots__/VSelect.spec.ts.snap +367 -0
- package/src/components/VSelect/__tests__/__snapshots__/VSelect2.spec.ts.snap +209 -0
- package/src/components/VSelect/__tests__/__snapshots__/VSelect3.spec.ts.snap +47 -0
- package/src/components/VSelect/__tests__/__snapshots__/VSelectList.spec.ts.snap +115 -0
- package/src/components/VSelect/_variables.scss +22 -0
- package/src/components/VSelect/index.ts +4 -0
- package/src/components/VSheet/VSheet.sass +15 -0
- package/src/components/VSheet/VSheet.ts +69 -0
- package/src/components/VSheet/__tests__/VSheet.spec.ts +48 -0
- package/src/components/VSheet/__tests__/__snapshots__/VSheet.spec.ts.snap +11 -0
- package/src/components/VSheet/_variables.scss +6 -0
- package/src/components/VSheet/index.ts +4 -0
- package/src/components/VSkeletonLoader/VSkeletonLoader.sass +377 -0
- package/src/components/VSkeletonLoader/VSkeletonLoader.ts +204 -0
- package/src/components/VSkeletonLoader/__tests__/VSkeletonLoader.spec.ts +145 -0
- package/src/components/VSkeletonLoader/__tests__/__snapshots__/VSkeletonLoader.spec.ts.snap +1039 -0
- package/src/components/VSkeletonLoader/_variables.scss +54 -0
- package/src/components/VSkeletonLoader/index.ts +4 -0
- package/src/components/VSlideGroup/VSlideGroup.sass +51 -0
- package/src/components/VSlideGroup/VSlideGroup.ts +542 -0
- package/src/components/VSlideGroup/VSlideItem.ts +16 -0
- package/src/components/VSlideGroup/__tests__/VSlideGroup.spec.ts +398 -0
- package/src/components/VSlideGroup/__tests__/__snapshots__/VSlideGroup.spec.ts.snap +26 -0
- package/src/components/VSlideGroup/_variables.scss +3 -0
- package/src/components/VSlideGroup/index.ts +14 -0
- package/src/components/VSlider/VSlider.sass +305 -0
- package/src/components/VSlider/VSlider.ts +611 -0
- package/src/components/VSlider/__tests__/VSlider.spec.ts +553 -0
- package/src/components/VSlider/__tests__/__snapshots__/VSlider.spec.ts.snap +802 -0
- package/src/components/VSlider/_variables.scss +26 -0
- package/src/components/VSlider/index.ts +4 -0
- package/src/components/VSnackbar/VSnackbar.sass +142 -0
- package/src/components/VSnackbar/VSnackbar.ts +214 -0
- package/src/components/VSnackbar/__tests__/VSnackbar.spec.ts +143 -0
- package/src/components/VSnackbar/_variables.scss +40 -0
- package/src/components/VSnackbar/index.ts +4 -0
- package/src/components/VSparkline/VSparkline.ts +384 -0
- package/src/components/VSparkline/__tests__/VSparkline.spec.ts +278 -0
- package/src/components/VSparkline/__tests__/__snapshots__/VSparkline.spec.ts.snap +1141 -0
- package/src/components/VSparkline/helpers/core.ts +51 -0
- package/src/components/VSparkline/helpers/math.ts +31 -0
- package/src/components/VSparkline/helpers/path.ts +38 -0
- package/src/components/VSparkline/index.ts +5 -0
- package/src/components/VSpeedDial/VSpeedDial.sass +79 -0
- package/src/components/VSpeedDial/VSpeedDial.ts +99 -0
- package/src/components/VSpeedDial/__tests__/VSpeedDial.spec.ts +93 -0
- package/src/components/VSpeedDial/__tests__/__snapshots__/VSpeedDial.spec.ts.snap +25 -0
- package/src/components/VSpeedDial/_variables.scss +5 -0
- package/src/components/VSpeedDial/index.ts +4 -0
- package/src/components/VStepper/VStepper.sass +236 -0
- package/src/components/VStepper/VStepper.ts +143 -0
- package/src/components/VStepper/VStepperContent.ts +167 -0
- package/src/components/VStepper/VStepperStep.ts +160 -0
- package/src/components/VStepper/__tests__/VStepper.spec.ts +34 -0
- package/src/components/VStepper/__tests__/VStepperContent.spec.ts +311 -0
- package/src/components/VStepper/__tests__/VStepperStep.spec.ts +162 -0
- package/src/components/VStepper/__tests__/__snapshots__/VStepperStep.spec.ts.snap +90 -0
- package/src/components/VStepper/_variables.scss +31 -0
- package/src/components/VStepper/index.ts +25 -0
- package/src/components/VSubheader/VSubheader.sass +15 -0
- package/src/components/VSubheader/VSubheader.ts +33 -0
- package/src/components/VSubheader/__tests__/VSubheader.spec.ts +62 -0
- package/src/components/VSubheader/__tests__/__snapshots__/VSubheader.spec.ts.snap +21 -0
- package/src/components/VSubheader/_variables.scss +6 -0
- package/src/components/VSubheader/index.ts +4 -0
- package/src/components/VSwitch/VSwitch.sass +133 -0
- package/src/components/VSwitch/VSwitch.ts +138 -0
- package/src/components/VSwitch/__tests__/VSwitch.spec.ts +106 -0
- package/src/components/VSwitch/__tests__/__snapshots__/VSwitch.spec.ts.snap +52 -0
- package/src/components/VSwitch/_variables.scss +30 -0
- package/src/components/VSwitch/index.ts +4 -0
- package/src/components/VSystemBar/VSystemBar.sass +44 -0
- package/src/components/VSystemBar/VSystemBar.ts +76 -0
- package/src/components/VSystemBar/__tests__/VSystemBar.spec.ts +128 -0
- package/src/components/VSystemBar/_variables.scss +9 -0
- package/src/components/VSystemBar/index.ts +4 -0
- package/src/components/VTabs/VTab.ts +136 -0
- package/src/components/VTabs/VTabItem.ts +24 -0
- package/src/components/VTabs/VTabs.sass +228 -0
- package/src/components/VTabs/VTabs.ts +338 -0
- package/src/components/VTabs/VTabsBar.ts +105 -0
- package/src/components/VTabs/VTabsItems.ts +39 -0
- package/src/components/VTabs/VTabsSlider.ts +20 -0
- package/src/components/VTabs/__tests__/VTab.spec.ts +127 -0
- package/src/components/VTabs/__tests__/VTabs.spec.ts +318 -0
- package/src/components/VTabs/__tests__/VTabsBar.spec.ts +102 -0
- package/src/components/VTabs/__tests__/VTabsSlider.spec.ts +32 -0
- package/src/components/VTabs/__tests__/__snapshots__/VTabs.spec.ts.snap +19 -0
- package/src/components/VTabs/_variables.scss +18 -0
- package/src/components/VTabs/index.ts +17 -0
- package/src/components/VTextField/VTextField.sass +526 -0
- package/src/components/VTextField/VTextField.ts +546 -0
- package/src/components/VTextField/__tests__/VTextField.spec.ts +992 -0
- package/src/components/VTextField/__tests__/__snapshots__/VTextField.spec.ts.snap +301 -0
- package/src/components/VTextField/_mixins.sass +18 -0
- package/src/components/VTextField/_variables.scss +51 -0
- package/src/components/VTextField/index.ts +4 -0
- package/src/components/VTextarea/VTextarea.sass +113 -0
- package/src/components/VTextarea/VTextarea.ts +117 -0
- package/src/components/VTextarea/__tests__/VTextarea.spec.ts +275 -0
- package/src/components/VTextarea/__tests__/__snapshots__/VTextarea.spec.ts.snap +121 -0
- package/src/components/VTextarea/_variables.scss +15 -0
- package/src/components/VTextarea/index.ts +4 -0
- package/src/components/VThemeProvider/VThemeProvider.ts +29 -0
- package/src/components/VThemeProvider/__tests__/VThemeProvider.spec.ts +80 -0
- package/src/components/VThemeProvider/index.ts +4 -0
- package/src/components/VTimePicker/SelectingTimes.ts +7 -0
- package/src/components/VTimePicker/VTimePicker.ts +489 -0
- package/src/components/VTimePicker/VTimePickerClock.sass +148 -0
- package/src/components/VTimePicker/VTimePickerClock.ts +278 -0
- package/src/components/VTimePicker/VTimePickerTitle.sass +65 -0
- package/src/components/VTimePicker/VTimePickerTitle.ts +83 -0
- package/src/components/VTimePicker/__tests__/VTimePicker.spec.ts +828 -0
- package/src/components/VTimePicker/__tests__/VTimePickerClock.spec.ts +323 -0
- package/src/components/VTimePicker/__tests__/VTimePickerTitle.spec.ts +189 -0
- package/src/components/VTimePicker/__tests__/__snapshots__/VTimePicker.spec.ts.snap +2761 -0
- package/src/components/VTimePicker/__tests__/__snapshots__/VTimePickerClock.spec.ts.snap +286 -0
- package/src/components/VTimePicker/__tests__/__snapshots__/VTimePickerTitle.spec.ts.snap +185 -0
- package/src/components/VTimePicker/_variables.scss +28 -0
- package/src/components/VTimePicker/index.ts +13 -0
- package/src/components/VTimeline/VTimeline.sass +167 -0
- package/src/components/VTimeline/VTimeline.ts +45 -0
- package/src/components/VTimeline/VTimelineItem.ts +115 -0
- package/src/components/VTimeline/__tests__/VTimeline.spec.ts +10 -0
- package/src/components/VTimeline/__tests__/VTimelineItem.spec.ts +66 -0
- package/src/components/VTimeline/__tests__/__snapshots__/VTimeline.spec.ts.snap +6 -0
- package/src/components/VTimeline/__tests__/__snapshots__/VTimelineItem.spec.ts.snap +74 -0
- package/src/components/VTimeline/_mixins.sass +43 -0
- package/src/components/VTimeline/_variables.scss +18 -0
- package/src/components/VTimeline/index.ts +11 -0
- package/src/components/VToolbar/VToolbar.sass +160 -0
- package/src/components/VToolbar/VToolbar.ts +167 -0
- package/src/components/VToolbar/__tests__/VToolbar.spec.ts +129 -0
- package/src/components/VToolbar/__tests__/__snapshots__/VToolbar.spec.ts.snap +31 -0
- package/src/components/VToolbar/_variables.scss +19 -0
- package/src/components/VToolbar/index.ts +22 -0
- package/src/components/VTooltip/VTooltip.sass +36 -0
- package/src/components/VTooltip/VTooltip.ts +223 -0
- package/src/components/VTooltip/__tests__/VTooltip.spec.ts +246 -0
- package/src/components/VTooltip/__tests__/__snapshots__/VTooltip.spec.ts.snap +110 -0
- package/src/components/VTooltip/_variables.scss +11 -0
- package/src/components/VTooltip/index.ts +4 -0
- package/src/components/VTreeview/VTreeview.sass +144 -0
- package/src/components/VTreeview/VTreeview.ts +442 -0
- package/src/components/VTreeview/VTreeviewNode.ts +356 -0
- package/src/components/VTreeview/__tests__/VTreeview.spec.ts +872 -0
- package/src/components/VTreeview/__tests__/VTreeviewNode.spec.ts +185 -0
- package/src/components/VTreeview/__tests__/__snapshots__/VTreeview.spec.ts.snap +1058 -0
- package/src/components/VTreeview/__tests__/__snapshots__/VTreeviewNode.spec.ts.snap +148 -0
- package/src/components/VTreeview/_mixins.sass +18 -0
- package/src/components/VTreeview/_variables.scss +10 -0
- package/src/components/VTreeview/index.ts +11 -0
- package/src/components/VTreeview/util/__tests__/filterTreeItems.spec.ts +20 -0
- package/src/components/VTreeview/util/filterTreeItems.ts +39 -0
- package/src/components/VVirtualScroll/VVirtualScroll.sass +15 -0
- package/src/components/VVirtualScroll/VVirtualScroll.ts +124 -0
- package/src/components/VVirtualScroll/__tests__/VVirtualScroll.spec.ts +108 -0
- package/src/components/VVirtualScroll/__tests__/__snapshots__/VVirtualScroll.spec.ts.snap +76 -0
- package/src/components/VVirtualScroll/index.ts +4 -0
- package/src/components/VWindow/VWindow.sass +108 -0
- package/src/components/VWindow/VWindow.ts +288 -0
- package/src/components/VWindow/VWindowItem.ts +157 -0
- package/src/components/VWindow/__tests__/VWindow.spec.ts +479 -0
- package/src/components/VWindow/__tests__/VWindowItem.spec.ts +344 -0
- package/src/components/VWindow/__tests__/__snapshots__/VWindow.spec.ts.snap +59 -0
- package/src/components/VWindow/__tests__/__snapshots__/VWindowItem.spec.ts.snap +36 -0
- package/src/components/VWindow/_variables.scss +5 -0
- package/src/components/VWindow/index.ts +11 -0
- package/src/components/index.ts +81 -0
- package/src/components/transitions/createTransition.ts +124 -0
- package/src/components/transitions/expand-transition.ts +86 -0
- package/src/components/transitions/index.ts +59 -0
- package/src/directives/click-outside/__tests__/click-outside-shadow-dom.spec.ts +118 -0
- package/src/directives/click-outside/__tests__/click-outside.spec.ts +111 -0
- package/src/directives/click-outside/index.ts +119 -0
- package/src/directives/color/__tests__/color.spec.ts +154 -0
- package/src/directives/color/index.ts +108 -0
- package/src/directives/index.ts +7 -0
- package/src/directives/intersect/__tests__/intersect.spec.ts +53 -0
- package/src/directives/intersect/index.ts +112 -0
- package/src/directives/mutate/__tests__/mutate.spec.ts +155 -0
- package/src/directives/mutate/index.ts +84 -0
- package/src/directives/resize/__tests__/resize.spec.ts +30 -0
- package/src/directives/resize/index.ts +60 -0
- package/src/directives/ripple/VRipple.sass +39 -0
- package/src/directives/ripple/__tests__/ripple.spec.ts +160 -0
- package/src/directives/ripple/index.ts +342 -0
- package/src/directives/scroll/__tests__/scroll.spec.ts +130 -0
- package/src/directives/scroll/index.ts +68 -0
- package/src/directives/touch/__tests__/touch.spec.ts +103 -0
- package/src/directives/touch/index.ts +135 -0
- package/src/entry-lib.ts +4 -0
- package/src/framework.ts +80 -0
- package/src/globals.d.ts +163 -0
- package/src/index.ts +19 -0
- package/src/install.ts +79 -0
- package/src/locale/__tests__/index.spec.ts +24 -0
- package/src/locale/af.ts +75 -0
- package/src/locale/ar.ts +75 -0
- package/src/locale/az.ts +75 -0
- package/src/locale/bg.ts +75 -0
- package/src/locale/ca.ts +75 -0
- package/src/locale/ckb.ts +75 -0
- package/src/locale/cs.ts +75 -0
- package/src/locale/da.ts +75 -0
- package/src/locale/de.ts +75 -0
- package/src/locale/el.ts +75 -0
- package/src/locale/en.ts +75 -0
- package/src/locale/es.ts +75 -0
- package/src/locale/et.ts +75 -0
- package/src/locale/fa.ts +75 -0
- package/src/locale/fi.ts +75 -0
- package/src/locale/fr.ts +75 -0
- package/src/locale/he.ts +75 -0
- package/src/locale/hr.ts +75 -0
- package/src/locale/hu.ts +75 -0
- package/src/locale/id.ts +75 -0
- package/src/locale/index.ts +42 -0
- package/src/locale/it.ts +75 -0
- package/src/locale/ja.ts +75 -0
- package/src/locale/ko.ts +75 -0
- package/src/locale/lt.ts +75 -0
- package/src/locale/lv.ts +75 -0
- package/src/locale/nl.ts +75 -0
- package/src/locale/no.ts +75 -0
- package/src/locale/pl.ts +75 -0
- package/src/locale/pt.ts +75 -0
- package/src/locale/ro.ts +75 -0
- package/src/locale/ru.ts +75 -0
- package/src/locale/sk.ts +75 -0
- package/src/locale/sl.ts +75 -0
- package/src/locale/sr-Cyrl.ts +75 -0
- package/src/locale/sr-Latn.ts +75 -0
- package/src/locale/sv.ts +75 -0
- package/src/locale/th.ts +75 -0
- package/src/locale/tr.ts +75 -0
- package/src/locale/uk.ts +75 -0
- package/src/locale/vi.ts +75 -0
- package/src/locale/zh-Hans.ts +75 -0
- package/src/locale/zh-Hant.ts +75 -0
- package/src/mixins/activatable/__tests__/__snapshots__/activatable.spec.ts.snap +20 -0
- package/src/mixins/activatable/__tests__/activatable.spec.ts +191 -0
- package/src/mixins/activatable/index.ts +224 -0
- package/src/mixins/applicationable/__tests__/applicationable.spec.ts +131 -0
- package/src/mixins/applicationable/index.ts +79 -0
- package/src/mixins/binds-attrs/index.ts +33 -0
- package/src/mixins/bootable/__tests__/bootable.spec.ts +90 -0
- package/src/mixins/bootable/index.ts +56 -0
- package/src/mixins/button-group/index.ts +26 -0
- package/src/mixins/colorable/__tests__/colorable.spec.ts +112 -0
- package/src/mixins/colorable/index.ts +118 -0
- package/src/mixins/comparable/index.ts +13 -0
- package/src/mixins/delayable/index.ts +50 -0
- package/src/mixins/dependent/__tests__/dependent.spec.ts +136 -0
- package/src/mixins/dependent/index.ts +89 -0
- package/src/mixins/detachable/__tests__/detachable.spec.ts +121 -0
- package/src/mixins/detachable/index.ts +175 -0
- package/src/mixins/elevatable/__tests__/elevatable.spec.ts +51 -0
- package/src/mixins/elevatable/index.ts +22 -0
- package/src/mixins/filterable/index.ts +13 -0
- package/src/mixins/groupable/index.ts +85 -0
- package/src/mixins/intersectable/__tests__/intersectable.spec.ts +45 -0
- package/src/mixins/intersectable/index.ts +54 -0
- package/src/mixins/loadable/index.ts +47 -0
- package/src/mixins/localable/index.ts +15 -0
- package/src/mixins/measurable/index.ts +42 -0
- package/src/mixins/menuable/__tests__/menuable.spec.ts +142 -0
- package/src/mixins/menuable/index.ts +431 -0
- package/src/mixins/mobile/__tests__/mobile.spec.ts +56 -0
- package/src/mixins/mobile/index.ts +53 -0
- package/src/mixins/mouse/__tests__/mouse.spec.ts +104 -0
- package/src/mixins/mouse/index.ts +124 -0
- package/src/mixins/overlayable/__tests__/overlayable.spec.ts +119 -0
- package/src/mixins/overlayable/index.ts +264 -0
- package/src/mixins/picker/index.ts +76 -0
- package/src/mixins/picker-button/index.ts +38 -0
- package/src/mixins/positionable/index.ts +54 -0
- package/src/mixins/proxyable/__tests__/proxyable.spec.ts +65 -0
- package/src/mixins/proxyable/index.ts +57 -0
- package/src/mixins/registrable/__tests__/registrable.spec.ts +31 -0
- package/src/mixins/registrable/index.ts +48 -0
- package/src/mixins/returnable/index.ts +34 -0
- package/src/mixins/rippleable/__tests__/__snapshots__/rippleable.spec.ts.snap +6 -0
- package/src/mixins/rippleable/__tests__/rippleable.spec.ts +29 -0
- package/src/mixins/rippleable/index.ts +41 -0
- package/src/mixins/roundable/__tests__/roundable.spec.ts +40 -0
- package/src/mixins/roundable/index.ts +36 -0
- package/src/mixins/routable/__tests__/routable.spec.ts +105 -0
- package/src/mixins/routable/index.ts +162 -0
- package/src/mixins/scrollable/__tests__/scrollable.spec.ts +144 -0
- package/src/mixins/scrollable/index.ts +104 -0
- package/src/mixins/selectable/__tests__/selectable.spec.ts +53 -0
- package/src/mixins/selectable/index.ts +171 -0
- package/src/mixins/sizeable/index.ts +32 -0
- package/src/mixins/ssr-bootable/index.ts +27 -0
- package/src/mixins/stackable/index.ts +65 -0
- package/src/mixins/themeable/index.ts +107 -0
- package/src/mixins/toggleable/index.ts +33 -0
- package/src/mixins/transitionable/index.ts +11 -0
- package/src/mixins/translatable/index.ts +60 -0
- package/src/mixins/validatable/__tests__/validatable.spec.ts +531 -0
- package/src/mixins/validatable/index.ts +283 -0
- package/src/presets/default/index.ts +70 -0
- package/src/services/application/__tests__/application.spec.ts +29 -0
- package/src/services/application/index.ts +55 -0
- package/src/services/breakpoint/__tests__/breakpoint.spec.ts +300 -0
- package/src/services/breakpoint/index.ts +194 -0
- package/src/services/goto/__tests__/easing-patterns.spec.ts +23 -0
- package/src/services/goto/__tests__/goto.spec.ts +214 -0
- package/src/services/goto/easing-patterns.ts +28 -0
- package/src/services/goto/index.ts +92 -0
- package/src/services/goto/util.ts +89 -0
- package/src/services/icons/__tests__/__snapshots__/icons.spec.ts.snap +77 -0
- package/src/services/icons/__tests__/icons.spec.ts +31 -0
- package/src/services/icons/index.ts +39 -0
- package/src/services/icons/presets/fa-svg.ts +23 -0
- package/src/services/icons/presets/fa.ts +39 -0
- package/src/services/icons/presets/fa4.ts +39 -0
- package/src/services/icons/presets/index.ts +15 -0
- package/src/services/icons/presets/md.ts +39 -0
- package/src/services/icons/presets/mdi-svg.ts +39 -0
- package/src/services/icons/presets/mdi.ts +39 -0
- package/src/services/index.ts +7 -0
- package/src/services/lang/__tests__/lang.spec.ts +70 -0
- package/src/services/lang/index.ts +88 -0
- package/src/services/presets/__tests__/__snapshots__/presets.spec.ts.snap +11 -0
- package/src/services/presets/__tests__/presets.spec.ts +51 -0
- package/src/services/presets/index.ts +44 -0
- package/src/services/service/index.ts +11 -0
- package/src/services/theme/__tests__/__snapshots__/theme-utils.spec.ts.snap +231 -0
- package/src/services/theme/__tests__/__snapshots__/theme.spec.ts.snap +5705 -0
- package/src/services/theme/__tests__/theme-utils.spec.ts +55 -0
- package/src/services/theme/__tests__/theme.spec.ts +284 -0
- package/src/services/theme/index.ts +256 -0
- package/src/services/theme/utils.ts +145 -0
- package/src/styles/components/_index.sass +1 -0
- package/src/styles/components/_selection-controls.sass +119 -0
- package/src/styles/elements/_blockquote.sass +4 -0
- package/src/styles/elements/_code.sass +23 -0
- package/src/styles/elements/_global.sass +23 -0
- package/src/styles/elements/_headings.sass +8 -0
- package/src/styles/elements/_index.sass +6 -0
- package/src/styles/elements/_lists.sass +3 -0
- package/src/styles/elements/_typography.sass +88 -0
- package/src/styles/generic/_animations.scss +13 -0
- package/src/styles/generic/_colors.scss +44 -0
- package/src/styles/generic/_elevation.scss +10 -0
- package/src/styles/generic/_index.scss +5 -0
- package/src/styles/generic/_reset.scss +281 -0
- package/src/styles/generic/_transitions.scss +317 -0
- package/src/styles/main.sass +7 -0
- package/src/styles/settings/_colors.scss +422 -0
- package/src/styles/settings/_dark.scss +153 -0
- package/src/styles/settings/_elevations.scss +101 -0
- package/src/styles/settings/_index.sass +10 -0
- package/src/styles/settings/_light.scss +134 -0
- package/src/styles/settings/_theme.scss +1 -0
- package/src/styles/settings/_utilities.scss +432 -0
- package/src/styles/settings/_variables.scss +266 -0
- package/src/styles/styles.sass +2 -0
- package/src/styles/tools/_bootable.sass +3 -0
- package/src/styles/tools/_display.sass +8 -0
- package/src/styles/tools/_elevation.sass +5 -0
- package/src/styles/tools/_functions.sass +70 -0
- package/src/styles/tools/_index.sass +18 -0
- package/src/styles/tools/_radius.sass +6 -0
- package/src/styles/tools/_rtl.sass +7 -0
- package/src/styles/tools/_sheet.sass +14 -0
- package/src/styles/tools/_states.sass +17 -0
- package/src/styles/tools/_theme.sass +5 -0
- package/src/styles/tools/_utilities.sass +61 -0
- package/src/styles/utilities/_display.sass +6 -0
- package/src/styles/utilities/_index.sass +42 -0
- package/src/styles/utilities/_screenreaders.sass +13 -0
- package/src/styles/utilities/_text.sass +8 -0
- package/src/styles/utilities/_transition.sass +4 -0
- package/src/util/__tests__/__snapshots__/helpers.spec.ts.snap +11 -0
- package/src/util/__tests__/colorUtils.spec.ts +162 -0
- package/src/util/__tests__/console.spec.ts +132 -0
- package/src/util/__tests__/dateTimeUtils.spec.ts +24 -0
- package/src/util/__tests__/dom.spec.ts +45 -0
- package/src/util/__tests__/helpers.spec.ts +470 -0
- package/src/util/__tests__/mergeData.spec.ts +104 -0
- package/src/util/color/transformCIELAB.ts +36 -0
- package/src/util/color/transformSRGB.ts +66 -0
- package/src/util/colorUtils.ts +249 -0
- package/src/util/colors.ts +339 -0
- package/src/util/console.ts +133 -0
- package/src/util/dateTimeUtils.ts +54 -0
- package/src/util/dedupeModelListeners.ts +18 -0
- package/src/util/dom.ts +24 -0
- package/src/util/helpers.ts +579 -0
- package/src/util/legacyEventsMixin.ts +34 -0
- package/src/util/make-directive-activatable.ts +55 -0
- package/src/util/mergeData.ts +166 -0
- package/src/util/mixins.ts +28 -0
- package/src/util/rebuildFunctionalSlots.ts +13 -0
- package/types/alacarte.d.ts +46 -0
- package/types/colors.d.ts +107 -0
- package/types/index.d.ts +308 -0
- package/types/lib.d.ts +378 -0
- package/types/services/application.d.ts +24 -0
- package/types/services/breakpoint.d.ts +42 -0
- package/types/services/goto.d.ts +30 -0
- package/types/services/icons.d.ts +68 -0
- package/types/services/index.d.ts +17 -0
- package/types/services/lang.d.ts +19 -0
- package/types/services/presets.d.ts +65 -0
- package/types/services/theme.d.ts +80 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { VuetifyIcons } from 'vuetify/types/services/icons'
|
|
2
|
+
|
|
3
|
+
const icons: VuetifyIcons = {
|
|
4
|
+
complete: 'check',
|
|
5
|
+
cancel: 'cancel',
|
|
6
|
+
close: 'close',
|
|
7
|
+
delete: 'cancel', // delete (e.g. v-chip close)
|
|
8
|
+
clear: 'clear',
|
|
9
|
+
success: 'check_circle',
|
|
10
|
+
info: 'info',
|
|
11
|
+
warning: 'priority_high',
|
|
12
|
+
error: 'warning',
|
|
13
|
+
prev: 'chevron_left',
|
|
14
|
+
next: 'chevron_right',
|
|
15
|
+
checkboxOn: 'check_box',
|
|
16
|
+
checkboxOff: 'check_box_outline_blank',
|
|
17
|
+
checkboxIndeterminate: 'indeterminate_check_box',
|
|
18
|
+
delimiter: 'fiber_manual_record', // for carousel
|
|
19
|
+
sort: 'arrow_upward',
|
|
20
|
+
expand: 'keyboard_arrow_down',
|
|
21
|
+
menu: 'menu',
|
|
22
|
+
subgroup: 'arrow_drop_down',
|
|
23
|
+
dropdown: 'arrow_drop_down',
|
|
24
|
+
radioOn: 'radio_button_checked',
|
|
25
|
+
radioOff: 'radio_button_unchecked',
|
|
26
|
+
edit: 'edit',
|
|
27
|
+
ratingEmpty: 'star_border',
|
|
28
|
+
ratingFull: 'star',
|
|
29
|
+
ratingHalf: 'star_half',
|
|
30
|
+
loading: 'cached',
|
|
31
|
+
first: 'first_page',
|
|
32
|
+
last: 'last_page',
|
|
33
|
+
unfold: 'unfold_more',
|
|
34
|
+
file: 'attach_file',
|
|
35
|
+
plus: 'add',
|
|
36
|
+
minus: 'remove',
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export default icons
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { VuetifyIcons } from 'vuetify/types/services/icons'
|
|
2
|
+
|
|
3
|
+
const icons: VuetifyIcons = {
|
|
4
|
+
complete: 'M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z',
|
|
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
|
+
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
|
+
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: '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
|
+
prev: 'M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z',
|
|
14
|
+
next: 'M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z',
|
|
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',
|
|
16
|
+
checkboxOff: 'M19,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,3M19,5V19H5V5H19Z',
|
|
17
|
+
checkboxIndeterminate: 'M17,13H7V11H17M19,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',
|
|
18
|
+
delimiter: 'M12,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', // for carousel
|
|
19
|
+
sort: 'M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z',
|
|
20
|
+
expand: 'M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z',
|
|
21
|
+
menu: 'M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z',
|
|
22
|
+
subgroup: 'M7,10L12,15L17,10H7Z',
|
|
23
|
+
dropdown: 'M7,10L12,15L17,10H7Z',
|
|
24
|
+
radioOn: 'M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,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,2M12,7C9.24,7 7,9.24 7,12C7,14.76 9.24,17 12,17C14.76,17 17,14.76 17,12C17,9.24 14.76,7 12,7Z',
|
|
25
|
+
radioOff: 'M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,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',
|
|
26
|
+
edit: 'M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z',
|
|
27
|
+
ratingEmpty: 'M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z',
|
|
28
|
+
ratingFull: 'M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z',
|
|
29
|
+
ratingHalf: 'M12,15.4V6.1L13.71,10.13L18.09,10.5L14.77,13.39L15.76,17.67M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z',
|
|
30
|
+
loading: 'M19,8L15,12H18C18,15.31 15.31,18 12,18C11,18 10.03,17.75 9.2,17.3L7.74,18.76C8.97,19.54 10.43,20 12,20C16.42,20 20,16.42 20,12H23M6,12C6,8.69 8.69,6 12,6C13,6 13.97,6.25 14.8,6.7L16.26,5.24C15.03,4.46 13.57,4 12,4C7.58,4 4,7.58 4,12H1L5,16L9,12',
|
|
31
|
+
first: 'M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z',
|
|
32
|
+
last: 'M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z',
|
|
33
|
+
unfold: 'M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z',
|
|
34
|
+
file: 'M16.5,6V17.5C16.5,19.71 14.71,21.5 12.5,21.5C10.29,21.5 8.5,19.71 8.5,17.5V5C8.5,3.62 9.62,2.5 11,2.5C12.38,2.5 13.5,3.62 13.5,5V15.5C13.5,16.05 13.05,16.5 12.5,16.5C11.95,16.5 11.5,16.05 11.5,15.5V6H10V15.5C10,16.88 11.12,18 12.5,18C13.88,18 15,16.88 15,15.5V5C15,2.79 13.21,1 11,1C8.79,1 7,2.79 7,5V17.5C7,20.54 9.46,23 12.5,23C15.54,23 18,20.54 18,17.5V6H16.5Z',
|
|
35
|
+
plus: 'M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z',
|
|
36
|
+
minus: 'M19,13H5V11H19V13Z',
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export default icons
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { VuetifyIcons } from 'vuetify/types/services/icons'
|
|
2
|
+
|
|
3
|
+
const icons: VuetifyIcons = {
|
|
4
|
+
complete: 'mdi-check',
|
|
5
|
+
cancel: 'mdi-close-circle',
|
|
6
|
+
close: 'mdi-close',
|
|
7
|
+
delete: 'mdi-close-circle', // delete (e.g. v-chip close)
|
|
8
|
+
clear: 'mdi-close',
|
|
9
|
+
success: 'mdi-check-circle',
|
|
10
|
+
info: 'mdi-information',
|
|
11
|
+
warning: 'mdi-exclamation',
|
|
12
|
+
error: 'mdi-alert',
|
|
13
|
+
prev: 'mdi-chevron-left',
|
|
14
|
+
next: 'mdi-chevron-right',
|
|
15
|
+
checkboxOn: 'mdi-checkbox-marked',
|
|
16
|
+
checkboxOff: 'mdi-checkbox-blank-outline',
|
|
17
|
+
checkboxIndeterminate: 'mdi-minus-box',
|
|
18
|
+
delimiter: 'mdi-circle', // for carousel
|
|
19
|
+
sort: 'mdi-arrow-up',
|
|
20
|
+
expand: 'mdi-chevron-down',
|
|
21
|
+
menu: 'mdi-menu',
|
|
22
|
+
subgroup: 'mdi-menu-down',
|
|
23
|
+
dropdown: 'mdi-menu-down',
|
|
24
|
+
radioOn: 'mdi-radiobox-marked',
|
|
25
|
+
radioOff: 'mdi-radiobox-blank',
|
|
26
|
+
edit: 'mdi-pencil',
|
|
27
|
+
ratingEmpty: 'mdi-star-outline',
|
|
28
|
+
ratingFull: 'mdi-star',
|
|
29
|
+
ratingHalf: 'mdi-star-half-full',
|
|
30
|
+
loading: 'mdi-cached',
|
|
31
|
+
first: 'mdi-page-first',
|
|
32
|
+
last: 'mdi-page-last',
|
|
33
|
+
unfold: 'mdi-unfold-more-horizontal',
|
|
34
|
+
file: 'mdi-paperclip',
|
|
35
|
+
plus: 'mdi-plus',
|
|
36
|
+
minus: 'mdi-minus',
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export default icons
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// Service
|
|
2
|
+
import { Lang } from '../index'
|
|
3
|
+
|
|
4
|
+
// Preset
|
|
5
|
+
import { preset } from '../../../presets/default'
|
|
6
|
+
|
|
7
|
+
describe('$vuetify.lang', () => {
|
|
8
|
+
let lang: Lang
|
|
9
|
+
|
|
10
|
+
beforeEach(() => {
|
|
11
|
+
lang = new Lang(preset)
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
it('should fall back to en', () => {
|
|
15
|
+
Object.assign(lang.locales.en, { foo: 'bar', bar: 'baz' })
|
|
16
|
+
lang.locales.foreign = { foo: 'foreignBar' }
|
|
17
|
+
lang.current = 'foreign'
|
|
18
|
+
|
|
19
|
+
expect(lang.t('$vuetify.foo')).toBe('foreignBar')
|
|
20
|
+
|
|
21
|
+
expect(lang.t('$vuetify.bar')).toBe('baz')
|
|
22
|
+
expect('Translation key "bar" not found, falling back to default').toHaveBeenTipped()
|
|
23
|
+
|
|
24
|
+
expect(lang.t('$vuetify.baz')).toBe('$vuetify.baz')
|
|
25
|
+
expect('Translation key "baz" not found, falling back to default').toHaveBeenTipped()
|
|
26
|
+
expect('Translation key "baz" not found in fallback').toHaveBeenWarned()
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
it('should ignore unprefixed strings', () => {
|
|
30
|
+
expect(lang.t('foo.bar.baz')).toBe('foo.bar.baz')
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
it('should use a different default', () => {
|
|
34
|
+
lang = new Lang({
|
|
35
|
+
...preset,
|
|
36
|
+
lang: {
|
|
37
|
+
current: 'foreign',
|
|
38
|
+
locales: {
|
|
39
|
+
foreign: { foo: 'foreignBar' },
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
})
|
|
43
|
+
|
|
44
|
+
expect(lang.t('$vuetify.foo')).toBe('foreignBar')
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
it('should use a custom translator', () => {
|
|
48
|
+
const translator = jest.fn(str => str)
|
|
49
|
+
|
|
50
|
+
lang = new Lang({
|
|
51
|
+
...preset,
|
|
52
|
+
lang: { t: translator },
|
|
53
|
+
})
|
|
54
|
+
|
|
55
|
+
lang.t('$vuetify.foobar', 'fizzbuzz')
|
|
56
|
+
|
|
57
|
+
expect(translator).toHaveBeenCalledWith('$vuetify.foobar', 'fizzbuzz')
|
|
58
|
+
})
|
|
59
|
+
|
|
60
|
+
it('should replace params on a non-prefixed key', () => {
|
|
61
|
+
lang = new Lang({
|
|
62
|
+
...preset,
|
|
63
|
+
lang: { t: str => str },
|
|
64
|
+
})
|
|
65
|
+
|
|
66
|
+
const translated = lang.t('{2} bar {0} foo {1}', 'hello', 'world', '!')
|
|
67
|
+
|
|
68
|
+
expect(translated).toBe('! bar hello foo world')
|
|
69
|
+
})
|
|
70
|
+
})
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// Extensions
|
|
2
|
+
import { Service } from '../service'
|
|
3
|
+
|
|
4
|
+
// Utilities
|
|
5
|
+
import { getObjectValueByPath } from '../../util/helpers'
|
|
6
|
+
import { consoleError, consoleWarn } from '../../util/console'
|
|
7
|
+
|
|
8
|
+
// Types
|
|
9
|
+
import { VuetifyPreset } from 'vuetify/types/services/presets'
|
|
10
|
+
import {
|
|
11
|
+
VuetifyLocale,
|
|
12
|
+
Lang as ILang,
|
|
13
|
+
} from 'vuetify/types/services/lang'
|
|
14
|
+
|
|
15
|
+
const LANG_PREFIX = '$vuetify.'
|
|
16
|
+
const fallback = Symbol('Lang fallback')
|
|
17
|
+
|
|
18
|
+
function getTranslation (
|
|
19
|
+
locale: VuetifyLocale,
|
|
20
|
+
key: string,
|
|
21
|
+
usingDefault = false,
|
|
22
|
+
defaultLocale: VuetifyLocale
|
|
23
|
+
): string {
|
|
24
|
+
const shortKey = key.replace(LANG_PREFIX, '')
|
|
25
|
+
let translation = getObjectValueByPath(locale, shortKey, fallback) as string | typeof fallback
|
|
26
|
+
|
|
27
|
+
if (translation === fallback) {
|
|
28
|
+
if (usingDefault) {
|
|
29
|
+
consoleError(`Translation key "${shortKey}" not found in fallback`)
|
|
30
|
+
translation = key
|
|
31
|
+
} else {
|
|
32
|
+
consoleWarn(`Translation key "${shortKey}" not found, falling back to default`)
|
|
33
|
+
translation = getTranslation(defaultLocale, key, true, defaultLocale)
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return translation
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export class Lang extends Service implements ILang {
|
|
41
|
+
static property: 'lang' = 'lang'
|
|
42
|
+
|
|
43
|
+
public current: ILang['current']
|
|
44
|
+
|
|
45
|
+
public defaultLocale = 'en'
|
|
46
|
+
|
|
47
|
+
public locales: ILang['locales']
|
|
48
|
+
|
|
49
|
+
private translator: ILang['t']
|
|
50
|
+
|
|
51
|
+
constructor (preset: VuetifyPreset) {
|
|
52
|
+
super()
|
|
53
|
+
|
|
54
|
+
const {
|
|
55
|
+
current,
|
|
56
|
+
locales,
|
|
57
|
+
t,
|
|
58
|
+
} = preset[Lang.property]
|
|
59
|
+
|
|
60
|
+
this.current = current
|
|
61
|
+
this.locales = locales
|
|
62
|
+
this.translator = t || this.defaultTranslator
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
public currentLocale (key: string) {
|
|
66
|
+
const translation = this.locales[this.current]
|
|
67
|
+
const defaultLocale = this.locales[this.defaultLocale]
|
|
68
|
+
|
|
69
|
+
return getTranslation(translation, key, false, defaultLocale)
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
public t (key: string, ...params: any[]) {
|
|
73
|
+
if (!key.startsWith(LANG_PREFIX)) return this.replace(key, params)
|
|
74
|
+
|
|
75
|
+
return this.translator(key, ...params)
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
private defaultTranslator (key: string, ...params: any[]) {
|
|
79
|
+
return this.replace(this.currentLocale(key), params)
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
private replace (str: string, params: any[]) {
|
|
83
|
+
return str.replace(/\{(\d+)\}/g, (match: string, index: string) => {
|
|
84
|
+
/* istanbul ignore next */
|
|
85
|
+
return String(params[+index])
|
|
86
|
+
})
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`$vuetify.presets should merge user and default preset 1`] = `"{\\"breakpoint\\":{\\"mobileBreakpoint\\":1264,\\"scrollBarWidth\\":16,\\"thresholds\\":{\\"xs\\":200,\\"sm\\":960,\\"md\\":1280,\\"lg\\":1920}},\\"icons\\":{\\"iconfont\\":\\"md\\",\\"values\\":{\\"complete\\":\\"bar\\"}},\\"lang\\":{\\"current\\":\\"en\\",\\"locales\\":{\\"en\\":{\\"badge\\":\\"Foobar\\",\\"close\\":\\"Close\\",\\"dataIterator\\":{\\"noResultsText\\":\\"Fizzbuzz\\",\\"loadingText\\":\\"Loading items...\\"},\\"dataTable\\":{\\"itemsPerPageText\\":\\"Rows per page:\\",\\"ariaLabel\\":{\\"sortDescending\\":\\"Sorted descending.\\",\\"sortAscending\\":\\"Sorted ascending.\\",\\"sortNone\\":\\"Not sorted.\\",\\"activateNone\\":\\"Activate to remove sorting.\\",\\"activateDescending\\":\\"Activate to sort descending.\\",\\"activateAscending\\":\\"Activate to sort ascending.\\"},\\"sortBy\\":\\"Sort by\\"},\\"dataFooter\\":{\\"itemsPerPageText\\":\\"Items per page:\\",\\"itemsPerPageAll\\":\\"All\\",\\"nextPage\\":\\"Next page\\",\\"prevPage\\":\\"Previous page\\",\\"firstPage\\":\\"First page\\",\\"lastPage\\":\\"Last page\\",\\"pageText\\":\\"{0}-{1} of {2}\\"},\\"datePicker\\":{\\"itemsSelected\\":\\"{0} selected\\",\\"nextMonthAriaLabel\\":\\"Next month\\",\\"nextYearAriaLabel\\":\\"Next year\\",\\"prevMonthAriaLabel\\":\\"Previous month\\",\\"prevYearAriaLabel\\":\\"Previous year\\"},\\"noDataText\\":\\"No data available\\",\\"carousel\\":{\\"prev\\":\\"Previous visual\\",\\"next\\":\\"Next visual\\",\\"ariaLabel\\":{\\"delimiter\\":\\"Carousel slide {0} of {1}\\"}},\\"calendar\\":{\\"moreEvents\\":\\"{0} more\\"},\\"input\\":{\\"clear\\":\\"Clear {0}\\",\\"prependAction\\":\\"{0} prepended action\\",\\"appendAction\\":\\"{0} appended action\\"},\\"fileInput\\":{\\"counter\\":\\"{0} files\\",\\"counterSize\\":\\"{0} files ({1} in total)\\"},\\"timePicker\\":{\\"am\\":\\"AM\\",\\"pm\\":\\"PM\\"},\\"pagination\\":{\\"ariaLabel\\":{\\"wrapper\\":\\"Pagination Navigation\\",\\"next\\":\\"Next page\\",\\"previous\\":\\"Previous page\\",\\"page\\":\\"Goto Page {0}\\",\\"currentPage\\":\\"Current Page, Page {0}\\"}},\\"rating\\":{\\"ariaLabel\\":{\\"icon\\":\\"Rating {0} of {1}\\"}},\\"loading\\":\\"Loading...\\"}}},\\"rtl\\":true,\\"theme\\":{\\"dark\\":true,\\"default\\":\\"light\\",\\"disable\\":false,\\"options\\":{\\"variations\\":true},\\"themes\\":{\\"light\\":{\\"primary\\":\\"blue\\",\\"secondary\\":{\\"darken4\\":\\"red\\"},\\"accent\\":\\"#82B1FF\\",\\"error\\":\\"#FF5252\\",\\"info\\":\\"#2196F3\\",\\"success\\":\\"#4CAF50\\",\\"warning\\":\\"#FB8C00\\"},\\"dark\\":{\\"primary\\":\\"#2196F3\\",\\"secondary\\":\\"#424242\\",\\"accent\\":\\"#FF4081\\",\\"error\\":\\"#FF5252\\",\\"info\\":\\"#2196F3\\",\\"success\\":\\"#4CAF50\\",\\"warning\\":\\"#FB8C00\\"}}}}"`;
|
|
4
|
+
|
|
5
|
+
exports[`$vuetify.presets should merge user and default preset 2`] = `undefined`;
|
|
6
|
+
|
|
7
|
+
exports[`$vuetify.presets should merge user and default preset 3`] = `"{\\"en\\":{\\"badge\\":\\"Foobar\\",\\"close\\":\\"Close\\",\\"dataIterator\\":{\\"noResultsText\\":\\"Fizzbuzz\\",\\"loadingText\\":\\"Loading items...\\"},\\"dataTable\\":{\\"itemsPerPageText\\":\\"Rows per page:\\",\\"ariaLabel\\":{\\"sortDescending\\":\\"Sorted descending.\\",\\"sortAscending\\":\\"Sorted ascending.\\",\\"sortNone\\":\\"Not sorted.\\",\\"activateNone\\":\\"Activate to remove sorting.\\",\\"activateDescending\\":\\"Activate to sort descending.\\",\\"activateAscending\\":\\"Activate to sort ascending.\\"},\\"sortBy\\":\\"Sort by\\"},\\"dataFooter\\":{\\"itemsPerPageText\\":\\"Items per page:\\",\\"itemsPerPageAll\\":\\"All\\",\\"nextPage\\":\\"Next page\\",\\"prevPage\\":\\"Previous page\\",\\"firstPage\\":\\"First page\\",\\"lastPage\\":\\"Last page\\",\\"pageText\\":\\"{0}-{1} of {2}\\"},\\"datePicker\\":{\\"itemsSelected\\":\\"{0} selected\\",\\"nextMonthAriaLabel\\":\\"Next month\\",\\"nextYearAriaLabel\\":\\"Next year\\",\\"prevMonthAriaLabel\\":\\"Previous month\\",\\"prevYearAriaLabel\\":\\"Previous year\\"},\\"noDataText\\":\\"No data available\\",\\"carousel\\":{\\"prev\\":\\"Previous visual\\",\\"next\\":\\"Next visual\\",\\"ariaLabel\\":{\\"delimiter\\":\\"Carousel slide {0} of {1}\\"}},\\"calendar\\":{\\"moreEvents\\":\\"{0} more\\"},\\"input\\":{\\"clear\\":\\"Clear {0}\\",\\"prependAction\\":\\"{0} prepended action\\",\\"appendAction\\":\\"{0} appended action\\"},\\"fileInput\\":{\\"counter\\":\\"{0} files\\",\\"counterSize\\":\\"{0} files ({1} in total)\\"},\\"timePicker\\":{\\"am\\":\\"AM\\",\\"pm\\":\\"PM\\"},\\"pagination\\":{\\"ariaLabel\\":{\\"wrapper\\":\\"Pagination Navigation\\",\\"next\\":\\"Next page\\",\\"previous\\":\\"Previous page\\",\\"page\\":\\"Goto Page {0}\\",\\"currentPage\\":\\"Current Page, Page {0}\\"}},\\"rating\\":{\\"ariaLabel\\":{\\"icon\\":\\"Rating {0} of {1}\\"}},\\"loading\\":\\"Loading...\\"}}"`;
|
|
8
|
+
|
|
9
|
+
exports[`$vuetify.presets should merge user and default preset 4`] = `"{\\"dark\\":{\\"primary\\":\\"#2196F3\\",\\"secondary\\":\\"#424242\\",\\"accent\\":\\"#FF4081\\",\\"error\\":\\"#FF5252\\",\\"info\\":\\"#2196F3\\",\\"success\\":\\"#4CAF50\\",\\"warning\\":\\"#FB8C00\\"},\\"light\\":{\\"primary\\":\\"blue\\",\\"secondary\\":{\\"darken4\\":\\"red\\"},\\"accent\\":\\"#82B1FF\\",\\"error\\":\\"#FF5252\\",\\"info\\":\\"#2196F3\\",\\"success\\":\\"#4CAF50\\",\\"warning\\":\\"#FB8C00\\"}}"`;
|
|
10
|
+
|
|
11
|
+
exports[`$vuetify.presets should merge user and default preset 5`] = `"{\\"xs\\":200,\\"sm\\":960,\\"md\\":1280,\\"lg\\":1920}"`;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// Types
|
|
2
|
+
import Framework from '../../../framework'
|
|
3
|
+
import { Breakpoint } from 'vuetify/types/services/breakpoint'
|
|
4
|
+
import { Icons } from 'vuetify/types/services/icons'
|
|
5
|
+
import { Lang } from 'vuetify/types/services/lang'
|
|
6
|
+
import { Theme } from 'vuetify/types/services/theme'
|
|
7
|
+
|
|
8
|
+
describe('$vuetify.presets', () => {
|
|
9
|
+
it('should merge user and default preset', () => {
|
|
10
|
+
const vuetify = new Framework({
|
|
11
|
+
rtl: true,
|
|
12
|
+
breakpoint: {
|
|
13
|
+
thresholds: { xs: 200 },
|
|
14
|
+
},
|
|
15
|
+
icons: {
|
|
16
|
+
iconfont: 'md',
|
|
17
|
+
values: { complete: 'bar' },
|
|
18
|
+
},
|
|
19
|
+
lang: {
|
|
20
|
+
locales: {
|
|
21
|
+
en: {
|
|
22
|
+
badge: 'Foobar',
|
|
23
|
+
dataIterator: { noResultsText: 'Fizzbuzz' },
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
theme: {
|
|
28
|
+
dark: true,
|
|
29
|
+
themes: {
|
|
30
|
+
light: {
|
|
31
|
+
primary: 'blue',
|
|
32
|
+
// https://github.com/vuetifyjs/vuetify/issues/10100
|
|
33
|
+
secondary: { darken4: 'red' },
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
expect(JSON.stringify(vuetify.preset)).toMatchSnapshot()
|
|
40
|
+
|
|
41
|
+
const icons: Icons = vuetify.framework as any
|
|
42
|
+
const lang: Lang = vuetify.framework.lang as any
|
|
43
|
+
const itheme: Theme = vuetify.framework.theme as any
|
|
44
|
+
const breakpoints: Breakpoint = vuetify.framework.breakpoint as any
|
|
45
|
+
|
|
46
|
+
expect(JSON.stringify(icons.values)).toMatchSnapshot()
|
|
47
|
+
expect(JSON.stringify(lang.locales)).toMatchSnapshot()
|
|
48
|
+
expect(JSON.stringify(itheme.themes)).toMatchSnapshot()
|
|
49
|
+
expect(JSON.stringify(breakpoints.thresholds)).toMatchSnapshot()
|
|
50
|
+
})
|
|
51
|
+
})
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Preset
|
|
2
|
+
import { preset as Preset } from '../../presets/default'
|
|
3
|
+
|
|
4
|
+
// Utilities
|
|
5
|
+
import { consoleWarn } from '../../util/console'
|
|
6
|
+
import { mergeDeep } from '../../util/helpers'
|
|
7
|
+
|
|
8
|
+
// Types
|
|
9
|
+
import Vuetify from 'vuetify/types'
|
|
10
|
+
import { Service } from '../service'
|
|
11
|
+
import {
|
|
12
|
+
UserVuetifyPreset,
|
|
13
|
+
VuetifyPreset,
|
|
14
|
+
} from 'vuetify/types/services/presets'
|
|
15
|
+
|
|
16
|
+
export class Presets extends Service {
|
|
17
|
+
static property: 'presets' = 'presets'
|
|
18
|
+
|
|
19
|
+
constructor (
|
|
20
|
+
parentPreset: Partial<UserVuetifyPreset>,
|
|
21
|
+
parent: Vuetify,
|
|
22
|
+
) {
|
|
23
|
+
super()
|
|
24
|
+
|
|
25
|
+
// The default preset
|
|
26
|
+
const defaultPreset = mergeDeep({}, Preset)
|
|
27
|
+
// The user provided preset
|
|
28
|
+
const { userPreset } = parent
|
|
29
|
+
// The user provided global preset
|
|
30
|
+
const {
|
|
31
|
+
preset: globalPreset = {},
|
|
32
|
+
...preset
|
|
33
|
+
} = userPreset
|
|
34
|
+
|
|
35
|
+
if (globalPreset.preset != null) {
|
|
36
|
+
consoleWarn('Global presets do not support the **preset** option, it can be safely omitted')
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
parent.preset = mergeDeep(
|
|
40
|
+
mergeDeep(defaultPreset, globalPreset),
|
|
41
|
+
preset
|
|
42
|
+
) as VuetifyPreset
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`theme-utilities.ts should generate css vars 1`] = `
|
|
4
|
+
":root {
|
|
5
|
+
--v-anchor-base: #c42742;
|
|
6
|
+
--v-primary-base: #c42742;
|
|
7
|
+
--v-primary-lighten5: #2c0447;
|
|
8
|
+
--v-primary-lighten4: #cfa854;
|
|
9
|
+
--v-primary-lighten3: #dd88cc;
|
|
10
|
+
--v-primary-lighten2: #b49921;
|
|
11
|
+
--v-primary-lighten1: #f899c7;
|
|
12
|
+
--v-primary-darken1: #0169dc;
|
|
13
|
+
--v-primary-darken2: #c28fd0;
|
|
14
|
+
--v-primary-darken3: #fbe002;
|
|
15
|
+
--v-primary-darken4: #33303a;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.v-application a { color: var(--v-anchor-base); }
|
|
19
|
+
.v-application .primary {
|
|
20
|
+
background-color: var(--v-primary-base) !important;
|
|
21
|
+
border-color: var(--v-primary-base) !important;
|
|
22
|
+
}
|
|
23
|
+
.v-application .primary--text {
|
|
24
|
+
color: var(--v-primary-base) !important;
|
|
25
|
+
caret-color: var(--v-primary-base) !important;
|
|
26
|
+
}
|
|
27
|
+
.v-application .primary.lighten-5 {
|
|
28
|
+
background-color: var(--v-primary-lighten5) !important;
|
|
29
|
+
border-color: var(--v-primary-lighten5) !important;
|
|
30
|
+
}
|
|
31
|
+
.v-application .primary--text.text--lighten-5 {
|
|
32
|
+
color: var(--v-primary-lighten5) !important;
|
|
33
|
+
caret-color: var(--v-primary-lighten5) !important;
|
|
34
|
+
}
|
|
35
|
+
.v-application .primary.lighten-4 {
|
|
36
|
+
background-color: var(--v-primary-lighten4) !important;
|
|
37
|
+
border-color: var(--v-primary-lighten4) !important;
|
|
38
|
+
}
|
|
39
|
+
.v-application .primary--text.text--lighten-4 {
|
|
40
|
+
color: var(--v-primary-lighten4) !important;
|
|
41
|
+
caret-color: var(--v-primary-lighten4) !important;
|
|
42
|
+
}
|
|
43
|
+
.v-application .primary.lighten-3 {
|
|
44
|
+
background-color: var(--v-primary-lighten3) !important;
|
|
45
|
+
border-color: var(--v-primary-lighten3) !important;
|
|
46
|
+
}
|
|
47
|
+
.v-application .primary--text.text--lighten-3 {
|
|
48
|
+
color: var(--v-primary-lighten3) !important;
|
|
49
|
+
caret-color: var(--v-primary-lighten3) !important;
|
|
50
|
+
}
|
|
51
|
+
.v-application .primary.lighten-2 {
|
|
52
|
+
background-color: var(--v-primary-lighten2) !important;
|
|
53
|
+
border-color: var(--v-primary-lighten2) !important;
|
|
54
|
+
}
|
|
55
|
+
.v-application .primary--text.text--lighten-2 {
|
|
56
|
+
color: var(--v-primary-lighten2) !important;
|
|
57
|
+
caret-color: var(--v-primary-lighten2) !important;
|
|
58
|
+
}
|
|
59
|
+
.v-application .primary.lighten-1 {
|
|
60
|
+
background-color: var(--v-primary-lighten1) !important;
|
|
61
|
+
border-color: var(--v-primary-lighten1) !important;
|
|
62
|
+
}
|
|
63
|
+
.v-application .primary--text.text--lighten-1 {
|
|
64
|
+
color: var(--v-primary-lighten1) !important;
|
|
65
|
+
caret-color: var(--v-primary-lighten1) !important;
|
|
66
|
+
}
|
|
67
|
+
.v-application .primary.darken-1 {
|
|
68
|
+
background-color: var(--v-primary-darken1) !important;
|
|
69
|
+
border-color: var(--v-primary-darken1) !important;
|
|
70
|
+
}
|
|
71
|
+
.v-application .primary--text.text--darken-1 {
|
|
72
|
+
color: var(--v-primary-darken1) !important;
|
|
73
|
+
caret-color: var(--v-primary-darken1) !important;
|
|
74
|
+
}
|
|
75
|
+
.v-application .primary.darken-2 {
|
|
76
|
+
background-color: var(--v-primary-darken2) !important;
|
|
77
|
+
border-color: var(--v-primary-darken2) !important;
|
|
78
|
+
}
|
|
79
|
+
.v-application .primary--text.text--darken-2 {
|
|
80
|
+
color: var(--v-primary-darken2) !important;
|
|
81
|
+
caret-color: var(--v-primary-darken2) !important;
|
|
82
|
+
}
|
|
83
|
+
.v-application .primary.darken-3 {
|
|
84
|
+
background-color: var(--v-primary-darken3) !important;
|
|
85
|
+
border-color: var(--v-primary-darken3) !important;
|
|
86
|
+
}
|
|
87
|
+
.v-application .primary--text.text--darken-3 {
|
|
88
|
+
color: var(--v-primary-darken3) !important;
|
|
89
|
+
caret-color: var(--v-primary-darken3) !important;
|
|
90
|
+
}
|
|
91
|
+
.v-application .primary.darken-4 {
|
|
92
|
+
background-color: var(--v-primary-darken4) !important;
|
|
93
|
+
border-color: var(--v-primary-darken4) !important;
|
|
94
|
+
}
|
|
95
|
+
.v-application .primary--text.text--darken-4 {
|
|
96
|
+
color: var(--v-primary-darken4) !important;
|
|
97
|
+
caret-color: var(--v-primary-darken4) !important;
|
|
98
|
+
}"
|
|
99
|
+
`;
|
|
100
|
+
|
|
101
|
+
exports[`theme-utilities.ts should generate styles 1`] = `
|
|
102
|
+
".v-application a { color: #c42742; }
|
|
103
|
+
.v-application .primary {
|
|
104
|
+
background-color: #c42742 !important;
|
|
105
|
+
border-color: #c42742 !important;
|
|
106
|
+
}
|
|
107
|
+
.v-application .primary--text {
|
|
108
|
+
color: #c42742 !important;
|
|
109
|
+
caret-color: #c42742 !important;
|
|
110
|
+
}
|
|
111
|
+
.v-application .primary.lighten-5 {
|
|
112
|
+
background-color: #2c0447 !important;
|
|
113
|
+
border-color: #2c0447 !important;
|
|
114
|
+
}
|
|
115
|
+
.v-application .primary--text.text--lighten-5 {
|
|
116
|
+
color: #2c0447 !important;
|
|
117
|
+
caret-color: #2c0447 !important;
|
|
118
|
+
}
|
|
119
|
+
.v-application .primary.lighten-4 {
|
|
120
|
+
background-color: #cfa854 !important;
|
|
121
|
+
border-color: #cfa854 !important;
|
|
122
|
+
}
|
|
123
|
+
.v-application .primary--text.text--lighten-4 {
|
|
124
|
+
color: #cfa854 !important;
|
|
125
|
+
caret-color: #cfa854 !important;
|
|
126
|
+
}
|
|
127
|
+
.v-application .primary.lighten-3 {
|
|
128
|
+
background-color: #dd88cc !important;
|
|
129
|
+
border-color: #dd88cc !important;
|
|
130
|
+
}
|
|
131
|
+
.v-application .primary--text.text--lighten-3 {
|
|
132
|
+
color: #dd88cc !important;
|
|
133
|
+
caret-color: #dd88cc !important;
|
|
134
|
+
}
|
|
135
|
+
.v-application .primary.lighten-2 {
|
|
136
|
+
background-color: #b49921 !important;
|
|
137
|
+
border-color: #b49921 !important;
|
|
138
|
+
}
|
|
139
|
+
.v-application .primary--text.text--lighten-2 {
|
|
140
|
+
color: #b49921 !important;
|
|
141
|
+
caret-color: #b49921 !important;
|
|
142
|
+
}
|
|
143
|
+
.v-application .primary.lighten-1 {
|
|
144
|
+
background-color: #f899c7 !important;
|
|
145
|
+
border-color: #f899c7 !important;
|
|
146
|
+
}
|
|
147
|
+
.v-application .primary--text.text--lighten-1 {
|
|
148
|
+
color: #f899c7 !important;
|
|
149
|
+
caret-color: #f899c7 !important;
|
|
150
|
+
}
|
|
151
|
+
.v-application .primary.darken-1 {
|
|
152
|
+
background-color: #0169dc !important;
|
|
153
|
+
border-color: #0169dc !important;
|
|
154
|
+
}
|
|
155
|
+
.v-application .primary--text.text--darken-1 {
|
|
156
|
+
color: #0169dc !important;
|
|
157
|
+
caret-color: #0169dc !important;
|
|
158
|
+
}
|
|
159
|
+
.v-application .primary.darken-2 {
|
|
160
|
+
background-color: #c28fd0 !important;
|
|
161
|
+
border-color: #c28fd0 !important;
|
|
162
|
+
}
|
|
163
|
+
.v-application .primary--text.text--darken-2 {
|
|
164
|
+
color: #c28fd0 !important;
|
|
165
|
+
caret-color: #c28fd0 !important;
|
|
166
|
+
}
|
|
167
|
+
.v-application .primary.darken-3 {
|
|
168
|
+
background-color: #fbe002 !important;
|
|
169
|
+
border-color: #fbe002 !important;
|
|
170
|
+
}
|
|
171
|
+
.v-application .primary--text.text--darken-3 {
|
|
172
|
+
color: #fbe002 !important;
|
|
173
|
+
caret-color: #fbe002 !important;
|
|
174
|
+
}
|
|
175
|
+
.v-application .primary.darken-4 {
|
|
176
|
+
background-color: #33303a !important;
|
|
177
|
+
border-color: #33303a !important;
|
|
178
|
+
}
|
|
179
|
+
.v-application .primary--text.text--darken-4 {
|
|
180
|
+
color: #33303a !important;
|
|
181
|
+
caret-color: #33303a !important;
|
|
182
|
+
}"
|
|
183
|
+
`;
|
|
184
|
+
|
|
185
|
+
exports[`theme-utilities.ts should parse a theme or theme item 1`] = `
|
|
186
|
+
Object {
|
|
187
|
+
"anchor": "#000000",
|
|
188
|
+
"primary": Object {
|
|
189
|
+
"base": "#000000",
|
|
190
|
+
"darken1": "#000000",
|
|
191
|
+
"darken2": "#000000",
|
|
192
|
+
"darken3": "#000000",
|
|
193
|
+
"darken4": "#000000",
|
|
194
|
+
"lighten1": "#1b1b1b",
|
|
195
|
+
"lighten2": "#303030",
|
|
196
|
+
"lighten3": "#474747",
|
|
197
|
+
"lighten4": "#5e5e5e",
|
|
198
|
+
"lighten5": "#777777",
|
|
199
|
+
},
|
|
200
|
+
"secondary": Object {
|
|
201
|
+
"base": "#ffffff",
|
|
202
|
+
"darken1": "#e2e2e2",
|
|
203
|
+
"darken2": "#c6c6c6",
|
|
204
|
+
"darken3": "#ababab",
|
|
205
|
+
"darken4": "#919191",
|
|
206
|
+
"lighten1": "#ffffff",
|
|
207
|
+
"lighten2": "#ffffff",
|
|
208
|
+
"lighten3": "#ffffff",
|
|
209
|
+
"lighten4": "#ffffff",
|
|
210
|
+
"lighten5": "#ffffff",
|
|
211
|
+
},
|
|
212
|
+
}
|
|
213
|
+
`;
|
|
214
|
+
|
|
215
|
+
exports[`theme-utilities.ts should parse a theme or theme item 2`] = `
|
|
216
|
+
Object {
|
|
217
|
+
"anchor": "#c42742",
|
|
218
|
+
"primary": Object {
|
|
219
|
+
"base": "#c42742",
|
|
220
|
+
"darken1": "#0169dc",
|
|
221
|
+
"darken2": "#c28fd0",
|
|
222
|
+
"darken3": "#fbe002",
|
|
223
|
+
"darken4": "#33303a",
|
|
224
|
+
"lighten1": "#f899c7",
|
|
225
|
+
"lighten2": "#b49921",
|
|
226
|
+
"lighten3": "#dd88cc",
|
|
227
|
+
"lighten4": "#cfa854",
|
|
228
|
+
"lighten5": "#2c0447",
|
|
229
|
+
},
|
|
230
|
+
}
|
|
231
|
+
`;
|