kdutify 2.6.1 → 2.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/json/attributes.json +109 -125
- package/dist/json/tags.json +32 -36
- package/dist/json/web-types.json +353 -310
- package/dist/kdutify.css +249 -438
- package/dist/kdutify.css.map +1 -1
- package/dist/kdutify.js +3375 -5938
- package/dist/kdutify.js.map +1 -1
- package/dist/kdutify.min.css +4 -4
- package/dist/kdutify.min.js +3 -3
- package/es5/components/KAlert/KAlert.js +18 -35
- package/es5/components/KAlert/KAlert.js.map +1 -1
- package/es5/components/KAlert/index.js +2 -6
- package/es5/components/KAlert/index.js.map +1 -1
- package/es5/components/KApp/KApp.js +14 -18
- package/es5/components/KApp/KApp.js.map +1 -1
- package/es5/components/KApp/index.js +2 -6
- package/es5/components/KApp/index.js.map +1 -1
- package/es5/components/KAppBar/KAppBar.js +17 -36
- package/es5/components/KAppBar/KAppBar.js.map +1 -1
- package/es5/components/KAppBar/KAppBarNavIcon.js +13 -19
- package/es5/components/KAppBar/KAppBarNavIcon.js.map +1 -1
- package/es5/components/KAppBar/KAppBarTitle.js +5 -10
- package/es5/components/KAppBar/KAppBarTitle.js.map +1 -1
- package/es5/components/KAppBar/index.js +2 -8
- package/es5/components/KAppBar/index.js.map +1 -1
- package/es5/components/KAutocomplete/KAutocomplete.js +31 -78
- package/es5/components/KAutocomplete/KAutocomplete.js.map +1 -1
- package/es5/components/KAutocomplete/index.js +2 -6
- package/es5/components/KAutocomplete/index.js.map +1 -1
- package/es5/components/KAvatar/KAvatar.js +11 -20
- package/es5/components/KAvatar/KAvatar.js.map +1 -1
- package/es5/components/KAvatar/index.js +2 -6
- package/es5/components/KAvatar/index.js.map +1 -1
- package/es5/components/KBadge/KBadge.js +21 -36
- package/es5/components/KBadge/KBadge.js.map +1 -1
- package/es5/components/KBadge/index.js +2 -6
- package/es5/components/KBadge/index.js.map +1 -1
- package/es5/components/KBanner/KBanner.js +21 -35
- package/es5/components/KBanner/KBanner.js.map +1 -1
- package/es5/components/KBanner/index.js +2 -6
- package/es5/components/KBanner/index.js.map +1 -1
- package/es5/components/KBottomNavigation/KBottomNavigation.js +24 -32
- package/es5/components/KBottomNavigation/KBottomNavigation.js.map +1 -1
- package/es5/components/KBottomNavigation/index.js +2 -6
- package/es5/components/KBottomNavigation/index.js.map +1 -1
- package/es5/components/KBottomSheet/KBottomSheet.js +11 -20
- package/es5/components/KBottomSheet/KBottomSheet.js.map +1 -1
- package/es5/components/KBottomSheet/index.js +2 -6
- package/es5/components/KBottomSheet/index.js.map +1 -1
- package/es5/components/KBreadcrumbs/KBreadcrumbs.js +15 -23
- package/es5/components/KBreadcrumbs/KBreadcrumbs.js.map +1 -1
- package/es5/components/KBreadcrumbs/KBreadcrumbsDivider.js +1 -5
- package/es5/components/KBreadcrumbs/KBreadcrumbsDivider.js.map +1 -1
- package/es5/components/KBreadcrumbs/KBreadcrumbsItem.js +14 -20
- package/es5/components/KBreadcrumbs/KBreadcrumbsItem.js.map +1 -1
- package/es5/components/KBreadcrumbs/index.js +6 -12
- package/es5/components/KBreadcrumbs/index.js.map +1 -1
- package/es5/components/KBtn/KBtn.js +31 -59
- package/es5/components/KBtn/KBtn.js.map +1 -1
- package/es5/components/KBtn/index.js +2 -6
- package/es5/components/KBtn/index.js.map +1 -1
- package/es5/components/KBtnToggle/KBtnToggle.js +12 -18
- package/es5/components/KBtnToggle/KBtnToggle.js.map +1 -1
- package/es5/components/KBtnToggle/index.js +2 -6
- package/es5/components/KBtnToggle/index.js.map +1 -1
- package/es5/components/KCalendar/KCalendar.js +29 -73
- package/es5/components/KCalendar/KCalendar.js.map +1 -1
- package/es5/components/KCalendar/KCalendarCategory.js +20 -44
- package/es5/components/KCalendar/KCalendarCategory.js.map +1 -1
- package/es5/components/KCalendar/KCalendarDaily.js +36 -45
- package/es5/components/KCalendar/KCalendarDaily.js.map +1 -1
- package/es5/components/KCalendar/KCalendarMonthly.js +3 -11
- package/es5/components/KCalendar/KCalendarMonthly.js.map +1 -1
- package/es5/components/KCalendar/KCalendarWeekly.js +40 -46
- package/es5/components/KCalendar/KCalendarWeekly.js.map +1 -1
- package/es5/components/KCalendar/index.js +8 -16
- package/es5/components/KCalendar/index.js.map +1 -1
- package/es5/components/KCalendar/mixins/calendar-base.js +4 -20
- package/es5/components/KCalendar/mixins/calendar-base.js.map +1 -1
- package/es5/components/KCalendar/mixins/calendar-with-events.js +57 -120
- package/es5/components/KCalendar/mixins/calendar-with-events.js.map +1 -1
- package/es5/components/KCalendar/mixins/calendar-with-intervals.js +2 -19
- package/es5/components/KCalendar/mixins/calendar-with-intervals.js.map +1 -1
- package/es5/components/KCalendar/mixins/times.js +2 -8
- package/es5/components/KCalendar/mixins/times.js.map +1 -1
- package/es5/components/KCalendar/modes/column.js +1 -8
- package/es5/components/KCalendar/modes/column.js.map +1 -1
- package/es5/components/KCalendar/modes/common.js +15 -47
- package/es5/components/KCalendar/modes/common.js.map +1 -1
- package/es5/components/KCalendar/modes/index.js +1 -5
- package/es5/components/KCalendar/modes/index.js.map +1 -1
- package/es5/components/KCalendar/modes/stack.js +51 -129
- package/es5/components/KCalendar/modes/stack.js.map +1 -1
- package/es5/components/KCalendar/util/events.js +3 -9
- package/es5/components/KCalendar/util/events.js.map +1 -1
- package/es5/components/KCalendar/util/parser.js +8 -14
- package/es5/components/KCalendar/util/parser.js.map +1 -1
- package/es5/components/KCalendar/util/props.js +2 -20
- package/es5/components/KCalendar/util/props.js.map +1 -1
- package/es5/components/KCalendar/util/timestamp.js +64 -188
- package/es5/components/KCalendar/util/timestamp.js.map +1 -1
- package/es5/components/KCard/KCard.js +18 -29
- package/es5/components/KCard/KCard.js.map +1 -1
- package/es5/components/KCard/index.js +6 -15
- package/es5/components/KCard/index.js.map +1 -1
- package/es5/components/KCarousel/KCarousel.js +17 -31
- package/es5/components/KCarousel/KCarousel.js.map +1 -1
- package/es5/components/KCarousel/KCarouselItem.js +13 -22
- package/es5/components/KCarousel/KCarouselItem.js.map +1 -1
- package/es5/components/KCarousel/index.js +2 -7
- package/es5/components/KCarousel/index.js.map +1 -1
- package/es5/components/KCheckbox/KCheckbox.js +19 -29
- package/es5/components/KCheckbox/KCheckbox.js.map +1 -1
- package/es5/components/KCheckbox/KSimpleCheckbox.js +18 -32
- package/es5/components/KCheckbox/KSimpleCheckbox.js.map +1 -1
- package/es5/components/KCheckbox/index.js +2 -7
- package/es5/components/KCheckbox/index.js.map +1 -1
- package/es5/components/KChip/KChip.js +27 -54
- package/es5/components/KChip/KChip.js.map +1 -1
- package/es5/components/KChip/index.js +2 -6
- package/es5/components/KChip/index.js.map +1 -1
- package/es5/components/KChipGroup/KChipGroup.js +13 -18
- package/es5/components/KChipGroup/KChipGroup.js.map +1 -1
- package/es5/components/KChipGroup/index.js +2 -6
- package/es5/components/KChipGroup/index.js.map +1 -1
- package/es5/components/KColorPicker/KColorPicker.js +15 -34
- package/es5/components/KColorPicker/KColorPicker.js.map +1 -1
- package/es5/components/KColorPicker/KColorPickerCanvas.js +7 -18
- package/es5/components/KColorPicker/KColorPickerCanvas.js.map +1 -1
- package/es5/components/KColorPicker/KColorPickerEdit.js +20 -38
- package/es5/components/KColorPicker/KColorPickerEdit.js.map +1 -1
- package/es5/components/KColorPicker/KColorPickerPreview.js +16 -24
- package/es5/components/KColorPicker/KColorPickerPreview.js.map +1 -1
- package/es5/components/KColorPicker/KColorPickerSwatches.js +6 -19
- package/es5/components/KColorPicker/KColorPickerSwatches.js.map +1 -1
- package/es5/components/KColorPicker/index.js +6 -12
- package/es5/components/KColorPicker/index.js.map +1 -1
- package/es5/components/KColorPicker/util/index.js +18 -44
- package/es5/components/KColorPicker/util/index.js.map +1 -1
- package/es5/components/KCombobox/KCombobox.js +40 -69
- package/es5/components/KCombobox/KCombobox.js.map +1 -1
- package/es5/components/KCombobox/index.js +2 -6
- package/es5/components/KCombobox/index.js.map +1 -1
- package/es5/components/KContent/KContent.js +2 -10
- package/es5/components/KContent/KContent.js.map +1 -1
- package/es5/components/KContent/index.js +2 -6
- package/es5/components/KContent/index.js.map +1 -1
- package/es5/components/KCounter/KCounter.js +11 -22
- package/es5/components/KCounter/KCounter.js.map +1 -1
- package/es5/components/KCounter/index.js +2 -6
- package/es5/components/KCounter/index.js.map +1 -1
- package/es5/components/KData/KData.js +28 -71
- package/es5/components/KData/KData.js.map +1 -1
- package/es5/components/KData/index.js +2 -6
- package/es5/components/KData/index.js.map +1 -1
- package/es5/components/KDataIterator/KDataFooter.js +8 -21
- package/es5/components/KDataIterator/KDataFooter.js.map +1 -1
- package/es5/components/KDataIterator/KDataIterator.js +43 -83
- package/es5/components/KDataIterator/KDataIterator.js.map +1 -1
- package/es5/components/KDataIterator/index.js +6 -11
- package/es5/components/KDataIterator/index.js.map +1 -1
- package/es5/components/KDataTable/KDataTable.js +145 -171
- package/es5/components/KDataTable/KDataTable.js.map +1 -1
- package/es5/components/KDataTable/KDataTableHeader.js +16 -25
- package/es5/components/KDataTable/KDataTableHeader.js.map +1 -1
- package/es5/components/KDataTable/KDataTableHeaderDesktop.js +10 -42
- package/es5/components/KDataTable/KDataTableHeaderDesktop.js.map +1 -1
- package/es5/components/KDataTable/KDataTableHeaderMobile.js +7 -29
- package/es5/components/KDataTable/KDataTableHeaderMobile.js.map +1 -1
- package/es5/components/KDataTable/KEditDialog.js +5 -23
- package/es5/components/KDataTable/KEditDialog.js.map +1 -1
- package/es5/components/KDataTable/KSimpleTable.js +11 -19
- package/es5/components/KDataTable/KSimpleTable.js.map +1 -1
- package/es5/components/KDataTable/KVirtualTable.js +6 -14
- package/es5/components/KDataTable/KVirtualTable.js.map +1 -1
- package/es5/components/KDataTable/MobileRow.js +13 -23
- package/es5/components/KDataTable/MobileRow.js.map +1 -1
- package/es5/components/KDataTable/Row.js +14 -29
- package/es5/components/KDataTable/Row.js.map +1 -1
- package/es5/components/KDataTable/RowGroup.js +8 -23
- package/es5/components/KDataTable/RowGroup.js.map +1 -1
- package/es5/components/KDataTable/index.js +5 -14
- package/es5/components/KDataTable/index.js.map +1 -1
- package/es5/components/KDataTable/mixins/header.js +11 -22
- package/es5/components/KDataTable/mixins/header.js.map +1 -1
- package/es5/components/KDatePicker/KDatePicker.js +31 -57
- package/es5/components/KDatePicker/KDatePicker.js.map +1 -1
- package/es5/components/KDatePicker/KDatePickerDateTable.js +3 -29
- package/es5/components/KDatePicker/KDatePickerDateTable.js.map +1 -1
- package/es5/components/KDatePicker/KDatePickerHeader.js +22 -42
- package/es5/components/KDatePicker/KDatePickerHeader.js.map +1 -1
- package/es5/components/KDatePicker/KDatePickerMonthTable.js +3 -15
- package/es5/components/KDatePicker/KDatePickerMonthTable.js.map +1 -1
- package/es5/components/KDatePicker/KDatePickerTitle.js +4 -13
- package/es5/components/KDatePicker/KDatePickerTitle.js.map +1 -1
- package/es5/components/KDatePicker/KDatePickerYears.js +4 -20
- package/es5/components/KDatePicker/KDatePickerYears.js.map +1 -1
- package/es5/components/KDatePicker/index.js +8 -17
- package/es5/components/KDatePicker/index.js.map +1 -1
- package/es5/components/KDatePicker/mixins/date-picker-table.js +25 -60
- package/es5/components/KDatePicker/mixins/date-picker-table.js.map +1 -1
- package/es5/components/KDatePicker/util/createNativeLocaleFormatter.js +11 -25
- package/es5/components/KDatePicker/util/createNativeLocaleFormatter.js.map +1 -1
- package/es5/components/KDatePicker/util/eventHelpers.js +1 -5
- package/es5/components/KDatePicker/util/eventHelpers.js.map +1 -1
- package/es5/components/KDatePicker/util/index.js +5 -11
- package/es5/components/KDatePicker/util/index.js.map +1 -1
- package/es5/components/KDatePicker/util/isDateAllowed.js +0 -1
- package/es5/components/KDatePicker/util/isDateAllowed.js.map +1 -1
- package/es5/components/KDatePicker/util/monthChange.js +13 -25
- package/es5/components/KDatePicker/util/monthChange.js.map +1 -1
- package/es5/components/KDatePicker/util/pad.js +1 -9
- package/es5/components/KDatePicker/util/pad.js.map +1 -1
- package/es5/components/KDatePicker/util/sanitizeDateString.js +14 -25
- package/es5/components/KDatePicker/util/sanitizeDateString.js.map +1 -1
- package/es5/components/KDialog/KDialog.js +58 -97
- package/es5/components/KDialog/KDialog.js.map +1 -1
- package/es5/components/KDialog/index.js +2 -6
- package/es5/components/KDialog/index.js.map +1 -1
- package/es5/components/KDivider/KDivider.js +10 -17
- package/es5/components/KDivider/KDivider.js.map +1 -1
- package/es5/components/KDivider/index.js +2 -6
- package/es5/components/KDivider/index.js.map +1 -1
- package/es5/components/KExpansionPanel/KExpansionPanel.js +10 -19
- package/es5/components/KExpansionPanel/KExpansionPanel.js.map +1 -1
- package/es5/components/KExpansionPanel/KExpansionPanelContent.js +7 -16
- package/es5/components/KExpansionPanel/KExpansionPanelContent.js.map +1 -1
- package/es5/components/KExpansionPanel/KExpansionPanelHeader.js +15 -23
- package/es5/components/KExpansionPanel/KExpansionPanelHeader.js.map +1 -1
- package/es5/components/KExpansionPanel/KExpansionPanels.js +11 -17
- package/es5/components/KExpansionPanel/KExpansionPanels.js.map +1 -1
- package/es5/components/KExpansionPanel/index.js +8 -15
- package/es5/components/KExpansionPanel/index.js.map +1 -1
- package/es5/components/KFileInput/KFileInput.js +34 -62
- package/es5/components/KFileInput/KFileInput.js.map +1 -1
- package/es5/components/KFileInput/index.js +2 -6
- package/es5/components/KFileInput/index.js.map +1 -1
- package/es5/components/KFooter/KFooter.js +15 -22
- package/es5/components/KFooter/KFooter.js.map +1 -1
- package/es5/components/KFooter/index.js +2 -6
- package/es5/components/KFooter/index.js.map +1 -1
- package/es5/components/KForm/KForm.js +16 -37
- package/es5/components/KForm/KForm.js.map +1 -1
- package/es5/components/KForm/index.js +2 -6
- package/es5/components/KForm/index.js.map +1 -1
- package/es5/components/KGrid/KCol.js +37 -66
- package/es5/components/KGrid/KCol.js.map +1 -1
- package/es5/components/KGrid/KContainer.js +8 -20
- package/es5/components/KGrid/KContainer.js.map +1 -1
- package/es5/components/KGrid/KFlex.js +3 -9
- package/es5/components/KGrid/KFlex.js.map +1 -1
- package/es5/components/KGrid/KLayout.js +3 -9
- package/es5/components/KGrid/KLayout.js.map +1 -1
- package/es5/components/KGrid/KRow.js +31 -62
- package/es5/components/KGrid/KRow.js.map +1 -1
- package/es5/components/KGrid/KSpacer.js +2 -7
- package/es5/components/KGrid/KSpacer.js.map +1 -1
- package/es5/components/KGrid/grid.js +6 -12
- package/es5/components/KGrid/grid.js.map +1 -1
- package/es5/components/KGrid/index.js +14 -23
- package/es5/components/KGrid/index.js.map +1 -1
- package/es5/components/KHover/KHover.js +3 -19
- package/es5/components/KHover/KHover.js.map +1 -1
- package/es5/components/KHover/index.js +2 -6
- package/es5/components/KHover/index.js.map +1 -1
- package/es5/components/KIcon/KIcon.js +21 -49
- package/es5/components/KIcon/KIcon.js.map +1 -1
- package/es5/components/KIcon/index.js +2 -6
- package/es5/components/KIcon/index.js.map +1 -1
- package/es5/components/KImg/KImg.js +16 -38
- package/es5/components/KImg/KImg.js.map +1 -1
- package/es5/components/KImg/index.js +2 -6
- package/es5/components/KImg/index.js.map +1 -1
- package/es5/components/KInput/KInput.js +28 -37
- package/es5/components/KInput/KInput.js.map +1 -1
- package/es5/components/KInput/index.js +2 -6
- package/es5/components/KInput/index.js.map +1 -1
- package/es5/components/KItemGroup/KItem.js +21 -23
- package/es5/components/KItemGroup/KItem.js.map +1 -1
- package/es5/components/KItemGroup/KItemGroup.js +47 -58
- package/es5/components/KItemGroup/KItemGroup.js.map +1 -1
- package/es5/components/KItemGroup/index.js +2 -7
- package/es5/components/KItemGroup/index.js.map +1 -1
- package/es5/components/KLabel/KLabel.js +19 -29
- package/es5/components/KLabel/KLabel.js.map +1 -1
- package/es5/components/KLabel/index.js +2 -6
- package/es5/components/KLabel/index.js.map +1 -1
- package/es5/components/KLazy/KLazy.js +10 -17
- package/es5/components/KLazy/KLazy.js.map +1 -1
- package/es5/components/KLazy/index.js +2 -6
- package/es5/components/KLazy/index.js.map +1 -1
- package/es5/components/KList/KList.js +19 -27
- package/es5/components/KList/KList.js.map +1 -1
- package/es5/components/KList/KListGroup.js +22 -39
- package/es5/components/KList/KListGroup.js.map +1 -1
- package/es5/components/KList/KListItem.js +30 -45
- package/es5/components/KList/KListItem.js.map +1 -1
- package/es5/components/KList/KListItemAction.js +4 -10
- package/es5/components/KList/KListItemAction.js.map +1 -1
- package/es5/components/KList/KListItemAvatar.js +10 -16
- package/es5/components/KList/KListItemAvatar.js.map +1 -1
- package/es5/components/KList/KListItemGroup.js +14 -19
- package/es5/components/KList/KListItemGroup.js.map +1 -1
- package/es5/components/KList/KListItemIcon.js +3 -9
- package/es5/components/KList/KListItemIcon.js.map +1 -1
- package/es5/components/KList/index.js +15 -28
- package/es5/components/KList/index.js.map +1 -1
- package/es5/components/KMain/KMain.js +12 -18
- package/es5/components/KMain/KMain.js.map +1 -1
- package/es5/components/KMain/index.js +2 -6
- package/es5/components/KMain/index.js.map +1 -1
- package/es5/components/KMenu/KMenu.js +43 -93
- package/es5/components/KMenu/KMenu.js.map +1 -1
- package/es5/components/KMenu/index.js +2 -6
- package/es5/components/KMenu/index.js.map +1 -1
- package/es5/components/KMessages/KMessages.js +3 -13
- package/es5/components/KMessages/KMessages.js.map +1 -1
- package/es5/components/KMessages/index.js +2 -6
- package/es5/components/KMessages/index.js.map +1 -1
- package/es5/components/KNavigationDrawer/KNavigationDrawer.js +32 -63
- package/es5/components/KNavigationDrawer/KNavigationDrawer.js.map +1 -1
- package/es5/components/KNavigationDrawer/index.js +2 -6
- package/es5/components/KNavigationDrawer/index.js.map +1 -1
- package/es5/components/KOtpInput/KOtpInput.js +48 -118
- package/es5/components/KOtpInput/KOtpInput.js.map +1 -1
- package/es5/components/KOtpInput/index.js +2 -6
- package/es5/components/KOtpInput/index.js.map +1 -1
- package/es5/components/KOverflowBtn/KOverflowBtn.js +18 -28
- package/es5/components/KOverflowBtn/KOverflowBtn.js.map +1 -1
- package/es5/components/KOverflowBtn/index.js +2 -6
- package/es5/components/KOverflowBtn/index.js.map +1 -1
- package/es5/components/KOverlay/KOverlay.js +13 -19
- package/es5/components/KOverlay/KOverlay.js.map +1 -1
- package/es5/components/KOverlay/index.js +2 -6
- package/es5/components/KOverlay/index.js.map +1 -1
- package/es5/components/KPagination/KPagination.js +29 -49
- package/es5/components/KPagination/KPagination.js.map +1 -1
- package/es5/components/KPagination/index.js +2 -6
- package/es5/components/KPagination/index.js.map +1 -1
- package/es5/components/KParallax/KParallax.js +7 -16
- package/es5/components/KParallax/KParallax.js.map +1 -1
- package/es5/components/KParallax/index.js +2 -6
- package/es5/components/KParallax/index.js.map +1 -1
- package/es5/components/KPicker/KPicker.js +16 -26
- package/es5/components/KPicker/KPicker.js.map +1 -1
- package/es5/components/KPicker/index.js +2 -6
- package/es5/components/KPicker/index.js.map +1 -1
- package/es5/components/KProgressCircular/KProgressCircular.js +4 -15
- package/es5/components/KProgressCircular/KProgressCircular.js.map +1 -1
- package/es5/components/KProgressCircular/index.js +2 -6
- package/es5/components/KProgressCircular/index.js.map +1 -1
- package/es5/components/KProgressLinear/KProgressLinear.js +15 -35
- package/es5/components/KProgressLinear/KProgressLinear.js.map +1 -1
- package/es5/components/KProgressLinear/index.js +2 -6
- package/es5/components/KProgressLinear/index.js.map +1 -1
- package/es5/components/KRadioGroup/KRadio.js +33 -48
- package/es5/components/KRadioGroup/KRadio.js.map +1 -1
- package/es5/components/KRadioGroup/KRadioGroup.js +16 -30
- package/es5/components/KRadioGroup/KRadioGroup.js.map +1 -1
- package/es5/components/KRadioGroup/index.js +6 -11
- package/es5/components/KRadioGroup/index.js.map +1 -1
- package/es5/components/KRangeSlider/KRangeSlider.js +25 -59
- package/es5/components/KRangeSlider/KRangeSlider.js.map +1 -1
- package/es5/components/KRangeSlider/index.js +2 -6
- package/es5/components/KRangeSlider/index.js.map +1 -1
- package/es5/components/KRating/KRating.js +11 -42
- package/es5/components/KRating/KRating.js.map +1 -1
- package/es5/components/KRating/index.js +2 -6
- package/es5/components/KRating/index.js.map +1 -1
- package/es5/components/KResponsive/KResponsive.js +5 -12
- package/es5/components/KResponsive/KResponsive.js.map +1 -1
- package/es5/components/KResponsive/index.js +2 -6
- package/es5/components/KResponsive/index.js.map +1 -1
- package/es5/components/KSelect/KSelect.js +145 -211
- package/es5/components/KSelect/KSelect.js.map +1 -1
- package/es5/components/KSelect/KSelectList.js +33 -51
- package/es5/components/KSelect/KSelectList.js.map +1 -1
- package/es5/components/KSelect/index.js +2 -6
- package/es5/components/KSelect/index.js.map +1 -1
- package/es5/components/KSheet/KSheet.js +13 -23
- package/es5/components/KSheet/KSheet.js.map +1 -1
- package/es5/components/KSheet/index.js +2 -6
- package/es5/components/KSheet/index.js.map +1 -1
- package/es5/components/KSkeletonLoader/KSkeletonLoader.js +46 -57
- package/es5/components/KSkeletonLoader/KSkeletonLoader.js.map +1 -1
- package/es5/components/KSkeletonLoader/index.js +2 -6
- package/es5/components/KSkeletonLoader/index.js.map +1 -1
- package/es5/components/KSlideGroup/KSlideGroup.js +89 -116
- package/es5/components/KSlideGroup/KSlideGroup.js.map +1 -1
- package/es5/components/KSlideGroup/KSlideItem.js +3 -11
- package/es5/components/KSlideGroup/KSlideItem.js.map +1 -1
- package/es5/components/KSlideGroup/index.js +2 -7
- package/es5/components/KSlideGroup/index.js.map +1 -1
- package/es5/components/KSlider/KSlider.js +42 -77
- package/es5/components/KSlider/KSlider.js.map +1 -1
- package/es5/components/KSlider/index.js +2 -6
- package/es5/components/KSlider/index.js.map +1 -1
- package/es5/components/KSnackbar/KSnackbar.js +20 -34
- package/es5/components/KSnackbar/KSnackbar.js.map +1 -1
- package/es5/components/KSnackbar/index.js +2 -6
- package/es5/components/KSnackbar/index.js.map +1 -1
- package/es5/components/KSparkline/KSparkline.js +13 -32
- package/es5/components/KSparkline/KSparkline.js.map +1 -1
- package/es5/components/KSparkline/helpers/core.js +12 -20
- package/es5/components/KSparkline/helpers/core.js.map +1 -1
- package/es5/components/KSparkline/helpers/math.js +4 -9
- package/es5/components/KSparkline/helpers/math.js.map +1 -1
- package/es5/components/KSparkline/helpers/path.js +2 -6
- package/es5/components/KSparkline/helpers/path.js.map +1 -1
- package/es5/components/KSparkline/index.js +2 -6
- package/es5/components/KSparkline/index.js.map +1 -1
- package/es5/components/KSpeedDial/KSpeedDial.js +15 -26
- package/es5/components/KSpeedDial/KSpeedDial.js.map +1 -1
- package/es5/components/KSpeedDial/index.js +2 -6
- package/es5/components/KSpeedDial/index.js.map +1 -1
- package/es5/components/KStepper/KStepper.js +14 -23
- package/es5/components/KStepper/KStepper.js.map +1 -1
- package/es5/components/KStepper/KStepperContent.js +11 -21
- package/es5/components/KStepper/KStepperContent.js.map +1 -1
- package/es5/components/KStepper/KStepperStep.js +18 -17
- package/es5/components/KStepper/KStepperStep.js.map +1 -1
- package/es5/components/KStepper/index.js +10 -18
- package/es5/components/KStepper/index.js.map +1 -1
- package/es5/components/KSubheader/KSubheader.js +13 -19
- package/es5/components/KSubheader/KSubheader.js.map +1 -1
- package/es5/components/KSubheader/index.js +2 -6
- package/es5/components/KSubheader/index.js.map +1 -1
- package/es5/components/KSwitch/KSwitch.js +22 -32
- package/es5/components/KSwitch/KSwitch.js.map +1 -1
- package/es5/components/KSwitch/index.js +2 -6
- package/es5/components/KSwitch/index.js.map +1 -1
- package/es5/components/KSystemBar/KSystemBar.js +12 -22
- package/es5/components/KSystemBar/KSystemBar.js.map +1 -1
- package/es5/components/KSystemBar/index.js +2 -6
- package/es5/components/KSystemBar/index.js.map +1 -1
- package/es5/components/KTabs/KTab.js +30 -37
- package/es5/components/KTabs/KTab.js.map +1 -1
- package/es5/components/KTabs/KTabItem.js +2 -9
- package/es5/components/KTabs/KTabItem.js.map +1 -1
- package/es5/components/KTabs/KTabs.js +34 -53
- package/es5/components/KTabs/KTabs.js.map +1 -1
- package/es5/components/KTabs/KTabsBar.js +18 -33
- package/es5/components/KTabs/KTabsBar.js.map +1 -1
- package/es5/components/KTabs/KTabsItems.js +10 -15
- package/es5/components/KTabs/KTabsItems.js.map +1 -1
- package/es5/components/KTabs/KTabsSlider.js +2 -9
- package/es5/components/KTabs/KTabsSlider.js.map +1 -1
- package/es5/components/KTabs/index.js +10 -18
- package/es5/components/KTabs/index.js.map +1 -1
- package/es5/components/KTextField/KTextField.js +39 -92
- package/es5/components/KTextField/KTextField.js.map +1 -1
- package/es5/components/KTextField/index.js +2 -6
- package/es5/components/KTextField/index.js.map +1 -1
- package/es5/components/KTextarea/KTextarea.js +15 -27
- package/es5/components/KTextarea/KTextarea.js.map +1 -1
- package/es5/components/KTextarea/index.js +2 -6
- package/es5/components/KTextarea/index.js.map +1 -1
- package/es5/components/KThemeProvider/KThemeProvider.js +2 -8
- package/es5/components/KThemeProvider/KThemeProvider.js.map +1 -1
- package/es5/components/KThemeProvider/index.js +2 -6
- package/es5/components/KThemeProvider/index.js.map +1 -1
- package/es5/components/KTimePicker/KTimePicker.js +46 -72
- package/es5/components/KTimePicker/KTimePicker.js.map +1 -1
- package/es5/components/KTimePicker/KTimePickerClock.js +21 -44
- package/es5/components/KTimePicker/KTimePickerClock.js.map +1 -1
- package/es5/components/KTimePicker/KTimePickerTitle.js +4 -18
- package/es5/components/KTimePicker/KTimePickerTitle.js.map +1 -1
- package/es5/components/KTimePicker/SelectingTimes.js +0 -2
- package/es5/components/KTimePicker/SelectingTimes.js.map +1 -1
- package/es5/components/KTimePicker/index.js +2 -8
- package/es5/components/KTimePicker/index.js.map +1 -1
- package/es5/components/KTimeline/KTimeline.js +13 -19
- package/es5/components/KTimeline/KTimeline.js.map +1 -1
- package/es5/components/KTimeline/KTimelineItem.js +14 -26
- package/es5/components/KTimeline/KTimelineItem.js.map +1 -1
- package/es5/components/KTimeline/index.js +2 -7
- package/es5/components/KTimeline/index.js.map +1 -1
- package/es5/components/KToolbar/KToolbar.js +21 -36
- package/es5/components/KToolbar/KToolbar.js.map +1 -1
- package/es5/components/KToolbar/index.js +6 -11
- package/es5/components/KToolbar/index.js.map +1 -1
- package/es5/components/KTooltip/KTooltip.js +29 -51
- package/es5/components/KTooltip/KTooltip.js.map +1 -1
- package/es5/components/KTooltip/index.js +2 -6
- package/es5/components/KTooltip/index.js.map +1 -1
- package/es5/components/KTreeview/KTreeview.js +52 -136
- package/es5/components/KTreeview/KTreeview.js.map +1 -1
- package/es5/components/KTreeview/KTreeviewNode.js +17 -47
- package/es5/components/KTreeview/KTreeviewNode.js.map +1 -1
- package/es5/components/KTreeview/index.js +2 -7
- package/es5/components/KTreeview/index.js.map +1 -1
- package/es5/components/KTreeview/util/filterTreeItems.js +0 -8
- package/es5/components/KTreeview/util/filterTreeItems.js.map +1 -1
- package/es5/components/KVirtualScroll/KVirtualScroll.js +3 -11
- package/es5/components/KVirtualScroll/KVirtualScroll.js.map +1 -1
- package/es5/components/KVirtualScroll/index.js +2 -6
- package/es5/components/KVirtualScroll/index.js.map +1 -1
- package/es5/components/KWindow/KWindow.js +18 -41
- package/es5/components/KWindow/KWindow.js.map +1 -1
- package/es5/components/KWindow/KWindowItem.js +16 -31
- package/es5/components/KWindow/KWindowItem.js.map +1 -1
- package/es5/components/KWindow/index.js +2 -7
- package/es5/components/KWindow/index.js.map +1 -1
- package/es5/components/index.js +0 -162
- package/es5/components/index.js.map +1 -1
- package/es5/components/transitions/createTransition.js +10 -21
- package/es5/components/transitions/createTransition.js.map +1 -1
- package/es5/components/transitions/expand-transition.js +6 -13
- package/es5/components/transitions/expand-transition.js.map +1 -1
- package/es5/components/transitions/index.js +26 -52
- package/es5/components/transitions/index.js.map +1 -1
- package/es5/directives/click-outside/index.js +17 -34
- package/es5/directives/click-outside/index.js.map +1 -1
- package/es5/directives/color/index.js +4 -18
- package/es5/directives/color/index.js.map +1 -1
- package/es5/directives/index.js +0 -7
- package/es5/directives/index.js.map +1 -1
- package/es5/directives/intersect/index.js +14 -28
- package/es5/directives/intersect/index.js.map +1 -1
- package/es5/directives/mutate/index.js +17 -28
- package/es5/directives/mutate/index.js.map +1 -1
- package/es5/directives/resize/index.js +6 -13
- package/es5/directives/resize/index.js.map +1 -1
- package/es5/directives/ripple/index.js +22 -86
- package/es5/directives/ripple/index.js.map +1 -1
- package/es5/directives/scroll/index.js +11 -19
- package/es5/directives/scroll/index.js.map +1 -1
- package/es5/directives/touch/index.js +7 -20
- package/es5/directives/touch/index.js.map +1 -1
- package/es5/entry-lib.js +1 -8
- package/es5/entry-lib.js.map +1 -1
- package/es5/framework.js +18 -34
- package/es5/framework.js.map +1 -1
- package/es5/index.js +9 -22
- package/es5/index.js.map +1 -1
- package/es5/install.js +8 -21
- package/es5/install.js.map +1 -1
- package/es5/locale/af.js +8 -3
- package/es5/locale/af.js.map +1 -1
- package/es5/locale/ar.js +28 -23
- package/es5/locale/ar.js.map +1 -1
- package/es5/locale/az.js +8 -3
- package/es5/locale/az.js.map +1 -1
- package/es5/locale/bg.js +8 -3
- package/es5/locale/bg.js.map +1 -1
- package/es5/locale/ca.js +15 -10
- package/es5/locale/ca.js.map +1 -1
- package/es5/locale/ckb.js +8 -3
- package/es5/locale/ckb.js.map +1 -1
- package/es5/locale/cs.js +8 -3
- package/es5/locale/cs.js.map +1 -1
- package/es5/locale/da.js +8 -3
- package/es5/locale/da.js.map +1 -1
- package/es5/locale/de.js +8 -3
- package/es5/locale/de.js.map +1 -1
- package/es5/locale/el.js +8 -3
- package/es5/locale/el.js.map +1 -1
- package/es5/locale/en.js +8 -3
- package/es5/locale/en.js.map +1 -1
- package/es5/locale/es.js +11 -6
- package/es5/locale/es.js.map +1 -1
- package/es5/locale/et.js +8 -3
- package/es5/locale/et.js.map +1 -1
- package/es5/locale/fa.js +8 -3
- package/es5/locale/fa.js.map +1 -1
- package/es5/locale/fi.js +13 -8
- package/es5/locale/fi.js.map +1 -1
- package/es5/locale/fr.js +9 -4
- package/es5/locale/fr.js.map +1 -1
- package/es5/locale/he.js +8 -3
- package/es5/locale/he.js.map +1 -1
- package/es5/locale/hr.js +8 -3
- package/es5/locale/hr.js.map +1 -1
- package/es5/locale/hu.js +8 -3
- package/es5/locale/hu.js.map +1 -1
- package/es5/locale/id.js +8 -3
- package/es5/locale/id.js.map +1 -1
- package/es5/locale/index.js +17 -60
- package/es5/locale/index.js.map +1 -1
- package/es5/locale/it.js +14 -9
- package/es5/locale/it.js.map +1 -1
- package/es5/locale/ja.js +8 -3
- package/es5/locale/ja.js.map +1 -1
- package/es5/locale/ko.js +8 -3
- package/es5/locale/ko.js.map +1 -1
- package/es5/locale/lt.js +8 -3
- package/es5/locale/lt.js.map +1 -1
- package/es5/locale/lv.js +8 -3
- package/es5/locale/lv.js.map +1 -1
- package/es5/locale/nl.js +8 -3
- package/es5/locale/nl.js.map +1 -1
- package/es5/locale/no.js +8 -3
- package/es5/locale/no.js.map +1 -1
- package/es5/locale/pl.js +8 -3
- package/es5/locale/pl.js.map +1 -1
- package/es5/locale/pt.js +8 -3
- package/es5/locale/pt.js.map +1 -1
- package/es5/locale/ro.js +8 -3
- package/es5/locale/ro.js.map +1 -1
- package/es5/locale/ru.js +8 -3
- package/es5/locale/ru.js.map +1 -1
- package/es5/locale/sk.js +8 -3
- package/es5/locale/sk.js.map +1 -1
- package/es5/locale/sl.js +8 -3
- package/es5/locale/sl.js.map +1 -1
- package/es5/locale/sr-Cyrl.js +8 -3
- package/es5/locale/sr-Cyrl.js.map +1 -1
- package/es5/locale/sr-Latn.js +8 -3
- package/es5/locale/sr-Latn.js.map +1 -1
- package/es5/locale/sv.js +8 -3
- package/es5/locale/sv.js.map +1 -1
- package/es5/locale/th.js +8 -3
- package/es5/locale/th.js.map +1 -1
- package/es5/locale/tr.js +8 -3
- package/es5/locale/tr.js.map +1 -1
- package/es5/locale/uk.js +8 -3
- package/es5/locale/uk.js.map +1 -1
- package/es5/locale/vi.js +8 -3
- package/es5/locale/vi.js.map +1 -1
- package/es5/locale/zh-Hans.js +8 -3
- package/es5/locale/zh-Hans.js.map +1 -1
- package/es5/locale/zh-Hant.js +8 -3
- package/es5/locale/zh-Hant.js.map +1 -1
- package/es5/mixins/activatable/index.js +15 -42
- package/es5/mixins/activatable/index.js.map +1 -1
- package/es5/mixins/applicationable/index.js +2 -7
- package/es5/mixins/applicationable/index.js.map +1 -1
- package/es5/mixins/binds-attrs/index.js +4 -11
- package/es5/mixins/binds-attrs/index.js.map +1 -1
- package/es5/mixins/bootable/index.js +9 -17
- package/es5/mixins/bootable/index.js.map +1 -1
- package/es5/mixins/button-group/index.js +1 -6
- package/es5/mixins/button-group/index.js.map +1 -1
- package/es5/mixins/colorable/index.js +28 -51
- package/es5/mixins/colorable/index.js.map +1 -1
- package/es5/mixins/comparable/index.js +2 -8
- package/es5/mixins/comparable/index.js.map +1 -1
- package/es5/mixins/delayable/index.js +12 -19
- package/es5/mixins/delayable/index.js.map +1 -1
- package/es5/mixins/dependent/index.js +7 -26
- package/es5/mixins/dependent/index.js.map +1 -1
- package/es5/mixins/detachable/index.js +13 -28
- package/es5/mixins/detachable/index.js.map +1 -1
- package/es5/mixins/elevatable/index.js +6 -9
- package/es5/mixins/elevatable/index.js.map +1 -1
- package/es5/mixins/filterable/index.js +2 -7
- package/es5/mixins/filterable/index.js.map +1 -1
- package/es5/mixins/groupable/index.js +14 -10
- package/es5/mixins/groupable/index.js.map +1 -1
- package/es5/mixins/intersectable/index.js +4 -9
- package/es5/mixins/intersectable/index.js.map +1 -1
- package/es5/mixins/loadable/index.js +12 -18
- package/es5/mixins/loadable/index.js.map +1 -1
- package/es5/mixins/localable/index.js +2 -7
- package/es5/mixins/localable/index.js.map +1 -1
- package/es5/mixins/measurable/index.js +2 -8
- package/es5/mixins/measurable/index.js.map +1 -1
- package/es5/mixins/menuable/index.js +38 -65
- package/es5/mixins/menuable/index.js.map +1 -1
- package/es5/mixins/mobile/index.js +7 -13
- package/es5/mixins/mobile/index.js.map +1 -1
- package/es5/mixins/mouse/index.js +106 -0
- package/es5/mixins/mouse/index.js.map +1 -0
- package/es5/mixins/overlayable/index.js +9 -39
- package/es5/mixins/overlayable/index.js.map +1 -1
- package/es5/mixins/picker/index.js +5 -16
- package/es5/mixins/picker/index.js.map +1 -1
- package/es5/mixins/picker-button/index.js +2 -14
- package/es5/mixins/picker-button/index.js.map +1 -1
- package/es5/mixins/positionable/index.js +28 -38
- package/es5/mixins/positionable/index.js.map +1 -1
- package/es5/mixins/proxyable/index.js +7 -11
- package/es5/mixins/proxyable/index.js.map +1 -1
- package/es5/mixins/registrable/index.js +5 -9
- package/es5/mixins/registrable/index.js.map +1 -1
- package/es5/mixins/returnable/index.js +2 -8
- package/es5/mixins/returnable/index.js.map +1 -1
- package/es5/mixins/rippleable/index.js +2 -8
- package/es5/mixins/rippleable/index.js.map +1 -1
- package/es5/mixins/roundable/index.js +10 -20
- package/es5/mixins/roundable/index.js.map +1 -1
- package/es5/mixins/routable/index.js +18 -36
- package/es5/mixins/routable/index.js.map +1 -1
- package/es5/mixins/scrollable/index.js +20 -33
- package/es5/mixins/scrollable/index.js.map +1 -1
- package/es5/mixins/selectable/index.js +13 -30
- package/es5/mixins/selectable/index.js.map +1 -1
- package/es5/mixins/sizeable/index.js +2 -7
- package/es5/mixins/sizeable/index.js.map +1 -1
- package/es5/mixins/ssr-bootable/index.js +9 -16
- package/es5/mixins/ssr-bootable/index.js.map +1 -1
- package/es5/mixins/stackable/index.js +17 -30
- package/es5/mixins/stackable/index.js.map +1 -1
- package/es5/mixins/themeable/index.js +11 -20
- package/es5/mixins/themeable/index.js.map +1 -1
- package/es5/mixins/toggleable/index.js +10 -16
- package/es5/mixins/toggleable/index.js.map +1 -1
- package/es5/mixins/transitionable/index.js +2 -7
- package/es5/mixins/transitionable/index.js.map +1 -1
- package/es5/mixins/translatable/index.js +3 -10
- package/es5/mixins/translatable/index.js.map +1 -1
- package/es5/mixins/validatable/index.js +21 -35
- package/es5/mixins/validatable/index.js.map +1 -1
- package/es5/presets/default/index.js +4 -6
- package/es5/presets/default/index.js.map +1 -1
- package/es5/services/application/index.js +18 -41
- package/es5/services/application/index.js.map +1 -1
- package/es5/services/breakpoint/index.js +29 -61
- package/es5/services/breakpoint/index.js.map +1 -1
- package/es5/services/goto/easing-patterns.js +38 -77
- package/es5/services/goto/easing-patterns.js.map +1 -1
- package/es5/services/goto/index.js +29 -64
- package/es5/services/goto/index.js.map +1 -1
- package/es5/services/goto/util.js +1 -10
- package/es5/services/goto/util.js.map +1 -1
- package/es5/services/icons/index.js +23 -39
- package/es5/services/icons/index.js.map +1 -1
- package/es5/services/icons/presets/fa-svg.js +2 -10
- package/es5/services/icons/presets/fa-svg.js.map +1 -1
- package/es5/services/icons/presets/fa.js +2 -3
- package/es5/services/icons/presets/fa.js.map +1 -1
- package/es5/services/icons/presets/fa4.js +1 -2
- package/es5/services/icons/presets/fa4.js.map +1 -1
- package/es5/services/icons/presets/index.js +2 -12
- package/es5/services/icons/presets/index.js.map +1 -1
- package/es5/services/icons/presets/md.js +1 -2
- package/es5/services/icons/presets/md.js.map +1 -1
- package/es5/services/icons/presets/mdi-svg.js +6 -7
- package/es5/services/icons/presets/mdi-svg.js.map +1 -1
- package/es5/services/icons/presets/mdi.js +1 -2
- package/es5/services/icons/presets/mdi.js.map +1 -1
- package/es5/services/index.js +0 -14
- package/es5/services/index.js.map +1 -1
- package/es5/services/lang/index.js +21 -49
- package/es5/services/lang/index.js.map +1 -1
- package/es5/services/presets/index.js +28 -48
- package/es5/services/presets/index.js.map +1 -1
- package/es5/services/service/index.js +8 -15
- package/es5/services/service/index.js.map +1 -1
- package/es5/services/theme/index.js +48 -102
- package/es5/services/theme/index.js.map +1 -1
- package/es5/services/theme/utils.js +26 -67
- package/es5/services/theme/utils.js.map +1 -1
- package/es5/util/color/transformCIELAB.js +0 -4
- package/es5/util/color/transformCIELAB.js.map +1 -1
- package/es5/util/color/transformSRGB.js +14 -21
- package/es5/util/color/transformSRGB.js.map +1 -1
- package/es5/util/colorUtils.js +55 -106
- package/es5/util/colorUtils.js.map +1 -1
- package/es5/util/colors.js +1 -4
- package/es5/util/colors.js.map +1 -1
- package/es5/util/console.js +4 -26
- package/es5/util/console.js.map +1 -1
- package/es5/util/dateTimeUtils.js +1 -13
- package/es5/util/dateTimeUtils.js.map +1 -1
- package/es5/util/dedupeModelListeners.js +3 -4
- package/es5/util/dedupeModelListeners.js.map +1 -1
- package/es5/util/dom.js +8 -13
- package/es5/util/dom.js.map +1 -1
- package/es5/util/helpers.js +88 -206
- package/es5/util/helpers.js.map +1 -1
- package/es5/util/mergeData.js +24 -66
- package/es5/util/mergeData.js.map +1 -1
- package/es5/util/mixins.js +2 -5
- package/es5/util/mixins.js.map +1 -1
- package/es5/util/rebuildFunctionalSlots.js +0 -3
- package/es5/util/rebuildFunctionalSlots.js.map +1 -1
- package/lib/components/KAlert/KAlert.js +13 -42
- package/lib/components/KAlert/KAlert.js.map +1 -1
- package/lib/components/KAlert/index.js.map +1 -1
- package/lib/components/KApp/KApp.js +7 -11
- package/lib/components/KApp/KApp.js.map +1 -1
- package/lib/components/KApp/index.js.map +1 -1
- package/lib/components/KAppBar/KAppBar.js +14 -51
- package/lib/components/KAppBar/KAppBar.js.map +1 -1
- package/lib/components/KAppBar/KAppBarNavIcon.js +4 -6
- package/lib/components/KAppBar/KAppBarNavIcon.js.map +1 -1
- package/lib/components/KAppBar/KAppBarTitle.js +5 -11
- package/lib/components/KAppBar/KAppBarTitle.js.map +1 -1
- package/lib/components/KAppBar/index.js.map +1 -1
- package/lib/components/KAutocomplete/KAutocomplete.js +27 -89
- package/lib/components/KAutocomplete/KAutocomplete.js.map +1 -1
- package/lib/components/KAutocomplete/index.js.map +1 -1
- package/lib/components/KAvatar/KAvatar.js +6 -10
- package/lib/components/KAvatar/KAvatar.js.map +1 -1
- package/lib/components/KAvatar/index.js.map +1 -1
- package/lib/components/KBadge/KBadge.js +6 -24
- package/lib/components/KBadge/KBadge.js.map +1 -1
- package/lib/components/KBadge/index.js.map +1 -1
- package/lib/components/KBanner/KBanner.js +18 -33
- package/lib/components/KBanner/KBanner.js.map +1 -1
- package/lib/components/KBanner/index.js.map +1 -1
- package/lib/components/KBottomNavigation/KBottomNavigation.js +18 -24
- package/lib/components/KBottomNavigation/KBottomNavigation.js.map +1 -1
- package/lib/components/KBottomNavigation/index.js.map +1 -1
- package/lib/components/KBottomSheet/KBottomSheet.js +5 -9
- package/lib/components/KBottomSheet/KBottomSheet.js.map +1 -1
- package/lib/components/KBottomSheet/index.js.map +1 -1
- package/lib/components/KBreadcrumbs/KBreadcrumbs.js +9 -16
- package/lib/components/KBreadcrumbs/KBreadcrumbs.js.map +1 -1
- package/lib/components/KBreadcrumbs/KBreadcrumbsDivider.js.map +1 -1
- package/lib/components/KBreadcrumbs/KBreadcrumbsItem.js +6 -7
- package/lib/components/KBreadcrumbs/KBreadcrumbsItem.js.map +1 -1
- package/lib/components/KBreadcrumbs/index.js.map +1 -1
- package/lib/components/KBtn/KBtn.js +16 -35
- package/lib/components/KBtn/KBtn.js.map +1 -1
- package/lib/components/KBtn/index.js.map +1 -1
- package/lib/components/KBtnToggle/KBtnToggle.js +8 -9
- package/lib/components/KBtnToggle/KBtnToggle.js.map +1 -1
- package/lib/components/KBtnToggle/index.js.map +1 -1
- package/lib/components/KCalendar/KCalendar.js +13 -68
- package/lib/components/KCalendar/KCalendar.js.map +1 -1
- package/lib/components/KCalendar/KCalendarCategory.js +8 -19
- package/lib/components/KCalendar/KCalendarCategory.js.map +1 -1
- package/lib/components/KCalendar/KCalendarDaily.js +28 -45
- package/lib/components/KCalendar/KCalendarDaily.js.map +1 -1
- package/lib/components/KCalendar/KCalendarMonthly.js +4 -8
- package/lib/components/KCalendar/KCalendarMonthly.js.map +1 -1
- package/lib/components/KCalendar/KCalendarWeekly.js +31 -39
- package/lib/components/KCalendar/KCalendarWeekly.js.map +1 -1
- package/lib/components/KCalendar/index.js.map +1 -1
- package/lib/components/KCalendar/mixins/calendar-base.js +6 -21
- package/lib/components/KCalendar/mixins/calendar-base.js.map +1 -1
- package/lib/components/KCalendar/mixins/calendar-with-events.js +39 -100
- package/lib/components/KCalendar/mixins/calendar-with-events.js.map +1 -1
- package/lib/components/KCalendar/mixins/calendar-with-intervals.js +2 -30
- package/lib/components/KCalendar/mixins/calendar-with-intervals.js.map +1 -1
- package/lib/components/KCalendar/mixins/times.js +0 -8
- package/lib/components/KCalendar/mixins/times.js.map +1 -1
- package/lib/components/KCalendar/modes/column.js +0 -2
- package/lib/components/KCalendar/modes/column.js.map +1 -1
- package/lib/components/KCalendar/modes/common.js +0 -12
- package/lib/components/KCalendar/modes/common.js.map +1 -1
- package/lib/components/KCalendar/modes/index.js.map +1 -1
- package/lib/components/KCalendar/modes/stack.js +14 -58
- package/lib/components/KCalendar/modes/stack.js.map +1 -1
- package/lib/components/KCalendar/util/events.js.map +1 -1
- package/lib/components/KCalendar/util/parser.js +2 -3
- package/lib/components/KCalendar/util/parser.js.map +1 -1
- package/lib/components/KCalendar/util/props.js +0 -12
- package/lib/components/KCalendar/util/props.js.map +1 -1
- package/lib/components/KCalendar/util/timestamp.js +2 -61
- package/lib/components/KCalendar/util/timestamp.js.map +1 -1
- package/lib/components/KCard/KCard.js +10 -18
- package/lib/components/KCard/KCard.js.map +1 -1
- package/lib/components/KCard/index.js.map +1 -1
- package/lib/components/KCarousel/KCarousel.js +12 -36
- package/lib/components/KCarousel/KCarousel.js.map +1 -1
- package/lib/components/KCarousel/KCarouselItem.js +8 -12
- package/lib/components/KCarousel/KCarouselItem.js.map +1 -1
- package/lib/components/KCarousel/index.js.map +1 -1
- package/lib/components/KCheckbox/KCheckbox.js +9 -18
- package/lib/components/KCheckbox/KCheckbox.js.map +1 -1
- package/lib/components/KCheckbox/KSimpleCheckbox.js +10 -13
- package/lib/components/KCheckbox/KSimpleCheckbox.js.map +1 -1
- package/lib/components/KCheckbox/index.js.map +1 -1
- package/lib/components/KChip/KChip.js +11 -26
- package/lib/components/KChip/KChip.js.map +1 -1
- package/lib/components/KChip/index.js.map +1 -1
- package/lib/components/KChipGroup/KChipGroup.js +10 -14
- package/lib/components/KChipGroup/KChipGroup.js.map +1 -1
- package/lib/components/KChipGroup/index.js.map +1 -1
- package/lib/components/KColorPicker/KColorPicker.js +6 -17
- package/lib/components/KColorPicker/KColorPicker.js.map +1 -1
- package/lib/components/KColorPicker/KColorPickerCanvas.js +4 -22
- package/lib/components/KColorPicker/KColorPickerCanvas.js.map +1 -1
- package/lib/components/KColorPicker/KColorPickerEdit.js +6 -20
- package/lib/components/KColorPicker/KColorPickerEdit.js.map +1 -1
- package/lib/components/KColorPicker/KColorPickerPreview.js +10 -15
- package/lib/components/KColorPicker/KColorPickerPreview.js.map +1 -1
- package/lib/components/KColorPicker/KColorPickerSwatches.js +4 -10
- package/lib/components/KColorPicker/KColorPickerSwatches.js.map +1 -1
- package/lib/components/KColorPicker/index.js.map +1 -1
- package/lib/components/KColorPicker/util/index.js +8 -19
- package/lib/components/KColorPicker/util/index.js.map +1 -1
- package/lib/components/KCombobox/KCombobox.js +34 -67
- package/lib/components/KCombobox/KCombobox.js.map +1 -1
- package/lib/components/KCombobox/index.js.map +1 -1
- package/lib/components/KContent/KContent.js +0 -4
- package/lib/components/KContent/KContent.js.map +1 -1
- package/lib/components/KContent/index.js.map +1 -1
- package/lib/components/KCounter/KCounter.js +2 -5
- package/lib/components/KCounter/KCounter.js.map +1 -1
- package/lib/components/KCounter/index.js.map +1 -1
- package/lib/components/KData/KData.js +8 -71
- package/lib/components/KData/KData.js.map +1 -1
- package/lib/components/KData/index.js.map +1 -1
- package/lib/components/KDataIterator/KDataFooter.js +7 -24
- package/lib/components/KDataIterator/KDataFooter.js.map +1 -1
- package/lib/components/KDataIterator/KDataIterator.js +21 -59
- package/lib/components/KDataIterator/KDataIterator.js.map +1 -1
- package/lib/components/KDataIterator/index.js.map +1 -1
- package/lib/components/KDataTable/KDataTable.js +112 -124
- package/lib/components/KDataTable/KDataTable.js.map +1 -1
- package/lib/components/KDataTable/KDataTableHeader.js +10 -13
- package/lib/components/KDataTable/KDataTableHeader.js.map +1 -1
- package/lib/components/KDataTable/KDataTableHeaderDesktop.js +1 -18
- package/lib/components/KDataTable/KDataTableHeaderDesktop.js.map +1 -1
- package/lib/components/KDataTable/KDataTableHeaderMobile.js +0 -8
- package/lib/components/KDataTable/KDataTableHeaderMobile.js.map +1 -1
- package/lib/components/KDataTable/KEditDialog.js +8 -20
- package/lib/components/KDataTable/KEditDialog.js.map +1 -1
- package/lib/components/KDataTable/KSimpleTable.js +4 -8
- package/lib/components/KDataTable/KSimpleTable.js.map +1 -1
- package/lib/components/KDataTable/KVirtualTable.js +7 -30
- package/lib/components/KDataTable/KVirtualTable.js.map +1 -1
- package/lib/components/KDataTable/MobileRow.js +4 -9
- package/lib/components/KDataTable/MobileRow.js.map +1 -1
- package/lib/components/KDataTable/Row.js +6 -13
- package/lib/components/KDataTable/Row.js.map +1 -1
- package/lib/components/KDataTable/RowGroup.js +0 -6
- package/lib/components/KDataTable/RowGroup.js.map +1 -1
- package/lib/components/KDataTable/index.js.map +1 -1
- package/lib/components/KDataTable/mixins/header.js +2 -7
- package/lib/components/KDataTable/mixins/header.js.map +1 -1
- package/lib/components/KDatePicker/KDatePicker.js +12 -72
- package/lib/components/KDatePicker/KDatePicker.js.map +1 -1
- package/lib/components/KDatePicker/KDatePickerDateTable.js +3 -28
- package/lib/components/KDatePicker/KDatePickerDateTable.js.map +1 -1
- package/lib/components/KDatePicker/KDatePickerHeader.js +9 -19
- package/lib/components/KDatePicker/KDatePickerHeader.js.map +1 -1
- package/lib/components/KDatePicker/KDatePickerMonthTable.js +3 -11
- package/lib/components/KDatePicker/KDatePickerMonthTable.js.map +1 -1
- package/lib/components/KDatePicker/KDatePickerTitle.js +7 -16
- package/lib/components/KDatePicker/KDatePickerTitle.js.map +1 -1
- package/lib/components/KDatePicker/KDatePickerYears.js +5 -18
- package/lib/components/KDatePicker/KDatePickerYears.js.map +1 -1
- package/lib/components/KDatePicker/index.js.map +1 -1
- package/lib/components/KDatePicker/mixins/date-picker-table.js +9 -34
- package/lib/components/KDatePicker/mixins/date-picker-table.js.map +1 -1
- package/lib/components/KDatePicker/util/createNativeLocaleFormatter.js +0 -3
- package/lib/components/KDatePicker/util/createNativeLocaleFormatter.js.map +1 -1
- package/lib/components/KDatePicker/util/eventHelpers.js +0 -2
- package/lib/components/KDatePicker/util/eventHelpers.js.map +1 -1
- package/lib/components/KDatePicker/util/index.js.map +1 -1
- package/lib/components/KDatePicker/util/isDateAllowed.js.map +1 -1
- package/lib/components/KDatePicker/util/monthChange.js +5 -7
- package/lib/components/KDatePicker/util/monthChange.js.map +1 -1
- package/lib/components/KDatePicker/util/pad.js +1 -6
- package/lib/components/KDatePicker/util/pad.js.map +1 -1
- package/lib/components/KDatePicker/util/sanitizeDateString.js +2 -2
- package/lib/components/KDatePicker/util/sanitizeDateString.js.map +1 -1
- package/lib/components/KDialog/KDialog.js +45 -80
- package/lib/components/KDialog/KDialog.js.map +1 -1
- package/lib/components/KDialog/index.js.map +1 -1
- package/lib/components/KDivider/KDivider.js +2 -6
- package/lib/components/KDivider/KDivider.js.map +1 -1
- package/lib/components/KDivider/index.js.map +1 -1
- package/lib/components/KExpansionPanel/KExpansionPanel.js +3 -17
- package/lib/components/KExpansionPanel/KExpansionPanel.js.map +1 -1
- package/lib/components/KExpansionPanel/KExpansionPanelContent.js +7 -13
- package/lib/components/KExpansionPanel/KExpansionPanelContent.js.map +1 -1
- package/lib/components/KExpansionPanel/KExpansionPanelHeader.js +11 -19
- package/lib/components/KExpansionPanel/KExpansionPanelHeader.js.map +1 -1
- package/lib/components/KExpansionPanel/KExpansionPanels.js +6 -14
- package/lib/components/KExpansionPanel/KExpansionPanels.js.map +1 -1
- package/lib/components/KExpansionPanel/index.js.map +1 -1
- package/lib/components/KFileInput/KFileInput.js +22 -46
- package/lib/components/KFileInput/KFileInput.js.map +1 -1
- package/lib/components/KFileInput/index.js.map +1 -1
- package/lib/components/KFooter/KFooter.js +12 -21
- package/lib/components/KFooter/KFooter.js.map +1 -1
- package/lib/components/KFooter/index.js.map +1 -1
- package/lib/components/KForm/KForm.js +5 -23
- package/lib/components/KForm/KForm.js.map +1 -1
- package/lib/components/KForm/index.js.map +1 -1
- package/lib/components/KGrid/KCol.js +9 -27
- package/lib/components/KGrid/KCol.js.map +1 -1
- package/lib/components/KGrid/KContainer.js +4 -11
- package/lib/components/KGrid/KContainer.js.map +1 -1
- package/lib/components/KGrid/KFlex.js +1 -1
- package/lib/components/KGrid/KFlex.js.map +1 -1
- package/lib/components/KGrid/KLayout.js +1 -1
- package/lib/components/KGrid/KLayout.js.map +1 -1
- package/lib/components/KGrid/KRow.js +7 -27
- package/lib/components/KGrid/KRow.js.map +1 -1
- package/lib/components/KGrid/KSpacer.js +1 -1
- package/lib/components/KGrid/KSpacer.js.map +1 -1
- package/lib/components/KGrid/grid.js +2 -8
- package/lib/components/KGrid/grid.js.map +1 -1
- package/lib/components/KGrid/index.js.map +1 -1
- package/lib/components/KHover/KHover.js +3 -15
- package/lib/components/KHover/KHover.js.map +1 -1
- package/lib/components/KHover/index.js.map +1 -1
- package/lib/components/KIcon/KIcon.js +17 -44
- package/lib/components/KIcon/KIcon.js.map +1 -1
- package/lib/components/KIcon/index.js.map +1 -1
- package/lib/components/KImg/KImg.js +12 -40
- package/lib/components/KImg/KImg.js.map +1 -1
- package/lib/components/KImg/index.js.map +1 -1
- package/lib/components/KInput/KInput.js +22 -48
- package/lib/components/KInput/KInput.js.map +1 -1
- package/lib/components/KInput/index.js.map +1 -1
- package/lib/components/KItemGroup/KItem.js +16 -15
- package/lib/components/KItemGroup/KItem.js.map +1 -1
- package/lib/components/KItemGroup/KItemGroup.js +37 -62
- package/lib/components/KItemGroup/KItemGroup.js.map +1 -1
- package/lib/components/KItemGroup/index.js.map +1 -1
- package/lib/components/KLabel/KLabel.js +10 -11
- package/lib/components/KLabel/KLabel.js.map +1 -1
- package/lib/components/KLabel/index.js.map +1 -1
- package/lib/components/KLazy/KLazy.js +6 -10
- package/lib/components/KLazy/KLazy.js.map +1 -1
- package/lib/components/KLazy/index.js.map +1 -1
- package/lib/components/KList/KList.js +8 -15
- package/lib/components/KList/KList.js.map +1 -1
- package/lib/components/KList/KListGroup.js +19 -35
- package/lib/components/KList/KListGroup.js.map +1 -1
- package/lib/components/KList/KListItem.js +24 -35
- package/lib/components/KList/KListItem.js.map +1 -1
- package/lib/components/KList/KListItemAction.js +0 -3
- package/lib/components/KList/KListItemAction.js.map +1 -1
- package/lib/components/KList/KListItemAvatar.js +0 -4
- package/lib/components/KList/KListItemAvatar.js.map +1 -1
- package/lib/components/KList/KListItemGroup.js +10 -12
- package/lib/components/KList/KListItemGroup.js.map +1 -1
- package/lib/components/KList/KListItemIcon.js +0 -3
- package/lib/components/KList/KListItemIcon.js.map +1 -1
- package/lib/components/KList/index.js.map +1 -1
- package/lib/components/KMain/KMain.js +4 -7
- package/lib/components/KMain/KMain.js.map +1 -1
- package/lib/components/KMain/index.js.map +1 -1
- package/lib/components/KMenu/KMenu.js +35 -93
- package/lib/components/KMenu/KMenu.js.map +1 -1
- package/lib/components/KMenu/index.js.map +1 -1
- package/lib/components/KMessages/KMessages.js +4 -9
- package/lib/components/KMessages/KMessages.js.map +1 -1
- package/lib/components/KMessages/index.js.map +1 -1
- package/lib/components/KNavigationDrawer/KNavigationDrawer.js +23 -84
- package/lib/components/KNavigationDrawer/KNavigationDrawer.js.map +1 -1
- package/lib/components/KNavigationDrawer/index.js.map +1 -1
- package/lib/components/KOtpInput/KOtpInput.js +39 -113
- package/lib/components/KOtpInput/KOtpInput.js.map +1 -1
- package/lib/components/KOtpInput/index.js.map +1 -1
- package/lib/components/KOverflowBtn/KOverflowBtn.js +13 -23
- package/lib/components/KOverflowBtn/KOverflowBtn.js.map +1 -1
- package/lib/components/KOverflowBtn/index.js.map +1 -1
- package/lib/components/KOverlay/KOverlay.js +6 -13
- package/lib/components/KOverlay/KOverlay.js.map +1 -1
- package/lib/components/KOverlay/index.js.map +1 -1
- package/lib/components/KPagination/KPagination.js +20 -39
- package/lib/components/KPagination/KPagination.js.map +1 -1
- package/lib/components/KPagination/index.js.map +1 -1
- package/lib/components/KParallax/KParallax.js +4 -13
- package/lib/components/KParallax/KParallax.js.map +1 -1
- package/lib/components/KParallax/index.js.map +1 -1
- package/lib/components/KPicker/KPicker.js +9 -17
- package/lib/components/KPicker/KPicker.js.map +1 -1
- package/lib/components/KPicker/index.js.map +1 -1
- package/lib/components/KProgressCircular/KProgressCircular.js +8 -27
- package/lib/components/KProgressCircular/KProgressCircular.js.map +1 -1
- package/lib/components/KProgressCircular/index.js.map +1 -1
- package/lib/components/KProgressLinear/KProgressLinear.js +8 -39
- package/lib/components/KProgressLinear/KProgressLinear.js.map +1 -1
- package/lib/components/KProgressLinear/index.js.map +1 -1
- package/lib/components/KRadioGroup/KRadio.js +19 -31
- package/lib/components/KRadioGroup/KRadio.js.map +1 -1
- package/lib/components/KRadioGroup/KRadioGroup.js +10 -22
- package/lib/components/KRadioGroup/KRadioGroup.js.map +1 -1
- package/lib/components/KRadioGroup/index.js.map +1 -1
- package/lib/components/KRangeSlider/KRangeSlider.js +11 -41
- package/lib/components/KRangeSlider/KRangeSlider.js.map +1 -1
- package/lib/components/KRangeSlider/index.js.map +1 -1
- package/lib/components/KRating/KRating.js +6 -36
- package/lib/components/KRating/KRating.js.map +1 -1
- package/lib/components/KRating/index.js.map +1 -1
- package/lib/components/KResponsive/KResponsive.js +6 -12
- package/lib/components/KResponsive/KResponsive.js.map +1 -1
- package/lib/components/KResponsive/index.js.map +1 -1
- package/lib/components/KSelect/KSelect.js +99 -174
- package/lib/components/KSelect/KSelect.js.map +1 -1
- package/lib/components/KSelect/KSelectList.js +22 -44
- package/lib/components/KSelect/KSelectList.js.map +1 -1
- package/lib/components/KSelect/index.js.map +1 -1
- package/lib/components/KSheet/KSheet.js +4 -9
- package/lib/components/KSheet/KSheet.js.map +1 -1
- package/lib/components/KSheet/index.js.map +1 -1
- package/lib/components/KSkeletonLoader/KSkeletonLoader.js +29 -40
- package/lib/components/KSkeletonLoader/KSkeletonLoader.js.map +1 -1
- package/lib/components/KSkeletonLoader/index.js.map +1 -1
- package/lib/components/KSlideGroup/KSlideGroup.js +59 -98
- package/lib/components/KSlideGroup/KSlideGroup.js.map +1 -1
- package/lib/components/KSlideGroup/KSlideItem.js +3 -4
- package/lib/components/KSlideGroup/KSlideItem.js.map +1 -1
- package/lib/components/KSlideGroup/index.js.map +1 -1
- package/lib/components/KSlider/KSlider.js +23 -82
- package/lib/components/KSlider/KSlider.js.map +1 -1
- package/lib/components/KSlider/index.js.map +1 -1
- package/lib/components/KSnackbar/KSnackbar.js +9 -27
- package/lib/components/KSnackbar/KSnackbar.js.map +1 -1
- package/lib/components/KSnackbar/index.js.map +1 -1
- package/lib/components/KSparkline/KSparkline.js +7 -39
- package/lib/components/KSparkline/KSparkline.js.map +1 -1
- package/lib/components/KSparkline/helpers/core.js.map +1 -1
- package/lib/components/KSparkline/helpers/math.js +4 -6
- package/lib/components/KSparkline/helpers/math.js.map +1 -1
- package/lib/components/KSparkline/helpers/path.js +2 -5
- package/lib/components/KSparkline/helpers/path.js.map +1 -1
- package/lib/components/KSparkline/index.js.map +1 -1
- package/lib/components/KSpeedDial/KSpeedDial.js +9 -16
- package/lib/components/KSpeedDial/KSpeedDial.js.map +1 -1
- package/lib/components/KSpeedDial/index.js.map +1 -1
- package/lib/components/KStepper/KStepper.js +10 -26
- package/lib/components/KStepper/KStepper.js.map +1 -1
- package/lib/components/KStepper/KStepperContent.js +11 -29
- package/lib/components/KStepper/KStepperContent.js.map +1 -1
- package/lib/components/KStepper/KStepperStep.js +18 -27
- package/lib/components/KStepper/KStepperStep.js.map +1 -1
- package/lib/components/KStepper/index.js.map +1 -1
- package/lib/components/KSubheader/KSubheader.js +5 -7
- package/lib/components/KSubheader/KSubheader.js.map +1 -1
- package/lib/components/KSubheader/index.js.map +1 -1
- package/lib/components/KSwitch/KSwitch.js +15 -24
- package/lib/components/KSwitch/KSwitch.js.map +1 -1
- package/lib/components/KSwitch/index.js.map +1 -1
- package/lib/components/KSystemBar/KSystemBar.js +5 -13
- package/lib/components/KSystemBar/KSystemBar.js.map +1 -1
- package/lib/components/KSystemBar/index.js.map +1 -1
- package/lib/components/KTabs/KTab.js +23 -22
- package/lib/components/KTabs/KTab.js.map +1 -1
- package/lib/components/KTabs/KTabItem.js +0 -2
- package/lib/components/KTabs/KTabItem.js.map +1 -1
- package/lib/components/KTabs/KTabs.js +26 -45
- package/lib/components/KTabs/KTabs.js.map +1 -1
- package/lib/components/KTabs/KTabsBar.js +9 -19
- package/lib/components/KTabs/KTabsBar.js.map +1 -1
- package/lib/components/KTabs/KTabsItems.js +4 -7
- package/lib/components/KTabs/KTabsItems.js.map +1 -1
- package/lib/components/KTabs/KTabsSlider.js +2 -5
- package/lib/components/KTabs/KTabsSlider.js.map +1 -1
- package/lib/components/KTabs/index.js.map +1 -1
- package/lib/components/KTextField/KTextField.js +27 -102
- package/lib/components/KTextField/KTextField.js.map +1 -1
- package/lib/components/KTextField/index.js.map +1 -1
- package/lib/components/KTextarea/KTextarea.js +8 -22
- package/lib/components/KTextarea/KTextarea.js.map +1 -1
- package/lib/components/KTextarea/index.js.map +1 -1
- package/lib/components/KThemeProvider/KThemeProvider.js +0 -4
- package/lib/components/KThemeProvider/KThemeProvider.js.map +1 -1
- package/lib/components/KThemeProvider/index.js.map +1 -1
- package/lib/components/KTimePicker/KTimePicker.js +22 -54
- package/lib/components/KTimePicker/KTimePicker.js.map +1 -1
- package/lib/components/KTimePicker/KTimePickerClock.js +7 -44
- package/lib/components/KTimePicker/KTimePickerClock.js.map +1 -1
- package/lib/components/KTimePicker/KTimePickerTitle.js +5 -14
- package/lib/components/KTimePicker/KTimePickerTitle.js.map +1 -1
- package/lib/components/KTimePicker/SelectingTimes.js +0 -2
- package/lib/components/KTimePicker/SelectingTimes.js.map +1 -1
- package/lib/components/KTimePicker/index.js.map +1 -1
- package/lib/components/KTimeline/KTimeline.js +6 -11
- package/lib/components/KTimeline/KTimeline.js.map +1 -1
- package/lib/components/KTimeline/KTimelineItem.js +7 -20
- package/lib/components/KTimeline/KTimelineItem.js.map +1 -1
- package/lib/components/KTimeline/index.js.map +1 -1
- package/lib/components/KToolbar/KToolbar.js +10 -23
- package/lib/components/KToolbar/KToolbar.js.map +1 -1
- package/lib/components/KToolbar/index.js +2 -2
- package/lib/components/KToolbar/index.js.map +1 -1
- package/lib/components/KTooltip/KTooltip.js +20 -42
- package/lib/components/KTooltip/KTooltip.js.map +1 -1
- package/lib/components/KTooltip/index.js.map +1 -1
- package/lib/components/KTreeview/KTreeview.js +22 -81
- package/lib/components/KTreeview/KTreeview.js.map +1 -1
- package/lib/components/KTreeview/KTreeviewNode.js +5 -33
- package/lib/components/KTreeview/KTreeviewNode.js.map +1 -1
- package/lib/components/KTreeview/index.js.map +1 -1
- package/lib/components/KTreeview/util/filterTreeItems.js +0 -5
- package/lib/components/KTreeview/util/filterTreeItems.js.map +1 -1
- package/lib/components/KVirtualScroll/KVirtualScroll.js +6 -19
- package/lib/components/KVirtualScroll/KVirtualScroll.js.map +1 -1
- package/lib/components/KVirtualScroll/index.js.map +1 -1
- package/lib/components/KWindow/KWindow.js +11 -46
- package/lib/components/KWindow/KWindow.js.map +1 -1
- package/lib/components/KWindow/KWindowItem.js +17 -35
- package/lib/components/KWindow/KWindowItem.js.map +1 -1
- package/lib/components/KWindow/index.js.map +1 -1
- package/lib/components/index.js.map +1 -1
- package/lib/components/transitions/createTransition.js +0 -10
- package/lib/components/transitions/createTransition.js.map +1 -1
- package/lib/components/transitions/expand-transition.js +2 -13
- package/lib/components/transitions/expand-transition.js.map +1 -1
- package/lib/components/transitions/index.js +6 -6
- package/lib/components/transitions/index.js.map +1 -1
- package/lib/directives/click-outside/index.js +12 -27
- package/lib/directives/click-outside/index.js.map +1 -1
- package/lib/directives/color/index.js +0 -10
- package/lib/directives/color/index.js.map +1 -1
- package/lib/directives/index.js.map +1 -1
- package/lib/directives/intersect/index.js +6 -13
- package/lib/directives/intersect/index.js.map +1 -1
- package/lib/directives/mutate/index.js +10 -14
- package/lib/directives/mutate/index.js.map +1 -1
- package/lib/directives/resize/index.js +2 -6
- package/lib/directives/resize/index.js.map +1 -1
- package/lib/directives/ripple/index.js +12 -70
- package/lib/directives/ripple/index.js.map +1 -1
- package/lib/directives/scroll/index.js +2 -5
- package/lib/directives/scroll/index.js.map +1 -1
- package/lib/directives/touch/index.js +2 -12
- package/lib/directives/touch/index.js.map +1 -1
- package/lib/framework.js +11 -14
- package/lib/framework.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/install.js +7 -19
- package/lib/install.js.map +1 -1
- package/lib/locale/af.js +7 -1
- package/lib/locale/af.js.map +1 -1
- package/lib/locale/ar.js +27 -21
- package/lib/locale/ar.js.map +1 -1
- package/lib/locale/az.js +7 -1
- package/lib/locale/az.js.map +1 -1
- package/lib/locale/bg.js +7 -1
- package/lib/locale/bg.js.map +1 -1
- package/lib/locale/ca.js +14 -8
- package/lib/locale/ca.js.map +1 -1
- package/lib/locale/ckb.js +7 -1
- package/lib/locale/ckb.js.map +1 -1
- package/lib/locale/cs.js +7 -1
- package/lib/locale/cs.js.map +1 -1
- package/lib/locale/da.js +7 -1
- package/lib/locale/da.js.map +1 -1
- package/lib/locale/de.js +7 -1
- package/lib/locale/de.js.map +1 -1
- package/lib/locale/el.js +7 -1
- package/lib/locale/el.js.map +1 -1
- package/lib/locale/en.js +7 -1
- package/lib/locale/en.js.map +1 -1
- package/lib/locale/es.js +10 -4
- package/lib/locale/es.js.map +1 -1
- package/lib/locale/et.js +7 -1
- package/lib/locale/et.js.map +1 -1
- package/lib/locale/fa.js +7 -1
- package/lib/locale/fa.js.map +1 -1
- package/lib/locale/fi.js +12 -6
- package/lib/locale/fi.js.map +1 -1
- package/lib/locale/fr.js +8 -2
- package/lib/locale/fr.js.map +1 -1
- package/lib/locale/he.js +7 -1
- package/lib/locale/he.js.map +1 -1
- package/lib/locale/hr.js +7 -1
- package/lib/locale/hr.js.map +1 -1
- package/lib/locale/hu.js +7 -1
- package/lib/locale/hu.js.map +1 -1
- package/lib/locale/id.js +7 -1
- package/lib/locale/id.js.map +1 -1
- package/lib/locale/index.js.map +1 -1
- package/lib/locale/it.js +13 -7
- package/lib/locale/it.js.map +1 -1
- package/lib/locale/ja.js +7 -1
- package/lib/locale/ja.js.map +1 -1
- package/lib/locale/ko.js +7 -1
- package/lib/locale/ko.js.map +1 -1
- package/lib/locale/lt.js +7 -1
- package/lib/locale/lt.js.map +1 -1
- package/lib/locale/lv.js +7 -1
- package/lib/locale/lv.js.map +1 -1
- package/lib/locale/nl.js +7 -1
- package/lib/locale/nl.js.map +1 -1
- package/lib/locale/no.js +7 -1
- package/lib/locale/no.js.map +1 -1
- package/lib/locale/pl.js +7 -1
- package/lib/locale/pl.js.map +1 -1
- package/lib/locale/pt.js +7 -1
- package/lib/locale/pt.js.map +1 -1
- package/lib/locale/ro.js +7 -1
- package/lib/locale/ro.js.map +1 -1
- package/lib/locale/ru.js +7 -1
- package/lib/locale/ru.js.map +1 -1
- package/lib/locale/sk.js +7 -1
- package/lib/locale/sk.js.map +1 -1
- package/lib/locale/sl.js +7 -1
- package/lib/locale/sl.js.map +1 -1
- package/lib/locale/sr-Cyrl.js +7 -1
- package/lib/locale/sr-Cyrl.js.map +1 -1
- package/lib/locale/sr-Latn.js +7 -1
- package/lib/locale/sr-Latn.js.map +1 -1
- package/lib/locale/sv.js +7 -1
- package/lib/locale/sv.js.map +1 -1
- package/lib/locale/th.js +7 -1
- package/lib/locale/th.js.map +1 -1
- package/lib/locale/tr.js +7 -1
- package/lib/locale/tr.js.map +1 -1
- package/lib/locale/uk.js +7 -1
- package/lib/locale/uk.js.map +1 -1
- package/lib/locale/vi.js +7 -1
- package/lib/locale/vi.js.map +1 -1
- package/lib/locale/zh-Hans.js +7 -1
- package/lib/locale/zh-Hans.js.map +1 -1
- package/lib/locale/zh-Hant.js +7 -1
- package/lib/locale/zh-Hant.js.map +1 -1
- package/lib/mixins/activatable/index.js +13 -38
- package/lib/mixins/activatable/index.js.map +1 -1
- package/lib/mixins/applicationable/index.js +2 -14
- package/lib/mixins/applicationable/index.js.map +1 -1
- package/lib/mixins/binds-attrs/index.js +2 -7
- package/lib/mixins/binds-attrs/index.js.map +1 -1
- package/lib/mixins/bootable/index.js +9 -16
- package/lib/mixins/bootable/index.js.map +1 -1
- package/lib/mixins/button-group/index.js +0 -4
- package/lib/mixins/button-group/index.js.map +1 -1
- package/lib/mixins/colorable/index.js +16 -21
- package/lib/mixins/colorable/index.js.map +1 -1
- package/lib/mixins/comparable/index.js.map +1 -1
- package/lib/mixins/delayable/index.js +10 -13
- package/lib/mixins/delayable/index.js.map +1 -1
- package/lib/mixins/dependent/index.js +0 -15
- package/lib/mixins/dependent/index.js.map +1 -1
- package/lib/mixins/detachable/index.js +8 -23
- package/lib/mixins/detachable/index.js.map +1 -1
- package/lib/mixins/elevatable/index.js +0 -2
- package/lib/mixins/elevatable/index.js.map +1 -1
- package/lib/mixins/filterable/index.js +0 -1
- package/lib/mixins/filterable/index.js.map +1 -1
- package/lib/mixins/groupable/index.js +8 -11
- package/lib/mixins/groupable/index.js.map +1 -1
- package/lib/mixins/intersectable/index.js +4 -11
- package/lib/mixins/intersectable/index.js.map +1 -1
- package/lib/mixins/loadable/index.js +10 -12
- package/lib/mixins/loadable/index.js.map +1 -1
- package/lib/mixins/localable/index.js +0 -1
- package/lib/mixins/localable/index.js.map +1 -1
- package/lib/mixins/measurable/index.js +2 -3
- package/lib/mixins/measurable/index.js.map +1 -1
- package/lib/mixins/menuable/index.js +35 -74
- package/lib/mixins/menuable/index.js.map +1 -1
- package/lib/mixins/mobile/index.js +2 -8
- package/lib/mixins/mobile/index.js.map +1 -1
- package/lib/{components/KCalendar/mixins/mouse.js → mixins/mouse/index.js} +30 -52
- package/lib/mixins/mouse/index.js.map +1 -0
- package/lib/mixins/overlayable/index.js +10 -40
- package/lib/mixins/overlayable/index.js.map +1 -1
- package/lib/mixins/picker/index.js +7 -13
- package/lib/mixins/picker/index.js.map +1 -1
- package/lib/mixins/picker-button/index.js +2 -6
- package/lib/mixins/picker-button/index.js.map +1 -1
- package/lib/mixins/positionable/index.js +26 -26
- package/lib/mixins/positionable/index.js.map +1 -1
- package/lib/mixins/proxyable/index.js +0 -6
- package/lib/mixins/proxyable/index.js.map +1 -1
- package/lib/mixins/registrable/index.js +0 -4
- package/lib/mixins/registrable/index.js.map +1 -1
- package/lib/mixins/returnable/index.js +0 -3
- package/lib/mixins/returnable/index.js.map +1 -1
- package/lib/mixins/rippleable/index.js +2 -3
- package/lib/mixins/rippleable/index.js.map +1 -1
- package/lib/mixins/roundable/index.js +0 -5
- package/lib/mixins/roundable/index.js.map +1 -1
- package/lib/mixins/routable/index.js +15 -31
- package/lib/mixins/routable/index.js.map +1 -1
- package/lib/mixins/scrollable/index.js +22 -33
- package/lib/mixins/scrollable/index.js.map +1 -1
- package/lib/mixins/selectable/index.js +10 -31
- package/lib/mixins/selectable/index.js.map +1 -1
- package/lib/mixins/sizeable/index.js +0 -2
- package/lib/mixins/sizeable/index.js.map +1 -1
- package/lib/mixins/ssr-bootable/index.js +7 -10
- package/lib/mixins/ssr-bootable/index.js.map +1 -1
- package/lib/mixins/stackable/index.js +10 -16
- package/lib/mixins/stackable/index.js.map +1 -1
- package/lib/mixins/themeable/index.js +2 -12
- package/lib/mixins/themeable/index.js.map +1 -1
- package/lib/mixins/toggleable/index.js +0 -5
- package/lib/mixins/toggleable/index.js.map +1 -1
- package/lib/mixins/transitionable/index.js.map +1 -1
- package/lib/mixins/translatable/index.js +0 -7
- package/lib/mixins/translatable/index.js.map +1 -1
- package/lib/mixins/validatable/index.js +16 -48
- package/lib/mixins/validatable/index.js.map +1 -1
- package/lib/presets/default/index.js +2 -2
- package/lib/presets/default/index.js.map +1 -1
- package/lib/services/application/index.js +1 -7
- package/lib/services/application/index.js.map +1 -1
- package/lib/services/breakpoint/index.js +10 -27
- package/lib/services/breakpoint/index.js.map +1 -1
- package/lib/services/goto/easing-patterns.js +24 -24
- package/lib/services/goto/easing-patterns.js.map +1 -1
- package/lib/services/goto/index.js +6 -17
- package/lib/services/goto/index.js.map +1 -1
- package/lib/services/goto/util.js +0 -7
- package/lib/services/goto/util.js.map +1 -1
- package/lib/services/icons/index.js +4 -5
- package/lib/services/icons/index.js.map +1 -1
- package/lib/services/icons/presets/fa-svg.js +0 -2
- package/lib/services/icons/presets/fa-svg.js.map +1 -1
- package/lib/services/icons/presets/fa.js +1 -1
- package/lib/services/icons/presets/fa.js.map +1 -1
- package/lib/services/icons/presets/fa4.js.map +1 -1
- package/lib/services/icons/presets/index.js.map +1 -1
- package/lib/services/icons/presets/md.js.map +1 -1
- package/lib/services/icons/presets/mdi-svg.js +5 -5
- package/lib/services/icons/presets/mdi-svg.js.map +1 -1
- package/lib/services/icons/presets/mdi.js.map +1 -1
- package/lib/services/index.js.map +1 -1
- package/lib/services/lang/index.js +2 -11
- package/lib/services/lang/index.js.map +1 -1
- package/lib/services/presets/index.js +8 -11
- package/lib/services/presets/index.js.map +1 -1
- package/lib/services/service/index.js +0 -2
- package/lib/services/service/index.js.map +1 -1
- package/lib/services/theme/index.js +26 -71
- package/lib/services/theme/index.js.map +1 -1
- package/lib/services/theme/utils.js +4 -21
- package/lib/services/theme/utils.js.map +1 -1
- package/lib/util/color/transformCIELAB.js +0 -3
- package/lib/util/color/transformCIELAB.js.map +1 -1
- package/lib/util/color/transformSRGB.js +16 -20
- package/lib/util/color/transformSRGB.js.map +1 -1
- package/lib/util/colorUtils.js +15 -34
- package/lib/util/colorUtils.js.map +1 -1
- package/lib/util/colors.js.map +1 -1
- package/lib/util/console.js +0 -15
- package/lib/util/console.js.map +1 -1
- package/lib/util/dateTimeUtils.js +0 -10
- package/lib/util/dateTimeUtils.js.map +1 -1
- package/lib/util/dedupeModelListeners.js +3 -3
- package/lib/util/dedupeModelListeners.js.map +1 -1
- package/lib/util/dom.js +8 -10
- package/lib/util/dom.js.map +1 -1
- package/lib/util/helpers.js +40 -97
- package/lib/util/helpers.js.map +1 -1
- package/lib/util/mergeData.js +6 -31
- package/lib/util/mergeData.js.map +1 -1
- package/lib/util/mixins.js.map +1 -1
- package/lib/util/rebuildFunctionalSlots.js +0 -2
- package/lib/util/rebuildFunctionalSlots.js.map +1 -1
- package/package.json +36 -36
- package/src/components/KAlert/KAlert.ts +4 -3
- package/src/components/KApp/KApp.ts +3 -2
- package/src/components/KAppBar/KAppBarTitle.ts +3 -3
- package/src/components/KAutocomplete/KAutocomplete.sass +0 -4
- package/src/components/KAutocomplete/KAutocomplete.ts +0 -4
- package/src/components/KAvatar/KAvatar.ts +2 -2
- package/src/components/KBanner/KBanner.ts +20 -17
- package/src/components/KBottomNavigation/KBottomNavigation.ts +16 -3
- package/src/components/KBottomSheet/KBottomSheet.ts +1 -4
- package/src/components/KBreadcrumbs/KBreadcrumbs.ts +2 -1
- package/src/components/KBreadcrumbs/KBreadcrumbsItem.ts +2 -1
- package/src/components/KBtn/KBtn.sass +1 -1
- package/src/components/KBtn/KBtn.ts +3 -2
- package/src/components/KCalendar/KCalendar.ts +4 -0
- package/src/components/KCalendar/KCalendarCategory.sass +9 -3
- package/src/components/KCalendar/KCalendarDaily.ts +9 -8
- package/src/components/KCalendar/KCalendarWeekly.ts +16 -2
- package/src/components/KCalendar/mixins/calendar-base.ts +1 -1
- package/src/components/KCalendar/mixins/calendar-with-events.ts +19 -17
- package/src/components/KCard/KCard.ts +2 -1
- package/src/components/KCarousel/KCarousel.ts +1 -0
- package/src/components/KCheckbox/KSimpleCheckbox.ts +3 -2
- package/src/components/KChip/KChip.sass +1 -1
- package/src/components/KChip/KChip.ts +2 -1
- package/src/components/KColorPicker/KColorPickerSwatches.sass +1 -1
- package/src/components/KColorPicker/_variables.scss +2 -1
- package/src/components/KCombobox/KCombobox.ts +2 -1
- package/src/components/KData/KData.ts +2 -4
- package/src/components/KDataIterator/KDataIterator.ts +7 -7
- package/src/components/KDataTable/KDataTable.ts +74 -22
- package/src/components/KDataTable/KDataTableHeaderDesktop.ts +1 -1
- package/src/components/KDataTable/KEditDialog.ts +3 -3
- package/src/components/KDataTable/KSimpleTable.ts +4 -4
- package/src/components/KDataTable/KVirtualTable.ts +3 -3
- package/src/components/KDataTable/MobileRow.ts +2 -2
- package/src/components/KDataTable/Row.ts +2 -2
- package/src/components/KDatePicker/KDatePicker.ts +12 -6
- package/src/components/KDatePicker/KDatePickerHeader.ts +2 -1
- package/src/components/KDialog/KDialog.sass +2 -2
- package/src/components/KDialog/KDialog.ts +17 -23
- package/src/components/KExpansionPanel/KExpansionPanel.sass +2 -2
- package/src/components/KExpansionPanel/KExpansionPanelContent.ts +1 -1
- package/src/components/KExpansionPanel/KExpansionPanelHeader.ts +1 -1
- package/src/components/KFileInput/KFileInput.ts +7 -2
- package/src/components/KFooter/KFooter.ts +2 -2
- package/src/components/KForm/KForm.ts +2 -1
- package/src/components/KImg/KImg.ts +4 -2
- package/src/components/KInput/KInput.sass +1 -4
- package/src/components/KInput/KInput.ts +15 -3
- package/src/components/KItemGroup/KItem.sass +4 -0
- package/src/components/KItemGroup/KItem.ts +12 -1
- package/src/components/KItemGroup/KItemGroup.ts +9 -6
- package/src/components/KLabel/KLabel.ts +5 -4
- package/src/components/KList/KList.ts +3 -1
- package/src/components/KList/KListGroup.ts +7 -5
- package/src/components/KList/KListItem.ts +10 -10
- package/src/components/KMain/KMain.ts +2 -1
- package/src/components/KMenu/KMenu.ts +11 -10
- package/src/components/KNavigationDrawer/KNavigationDrawer.ts +5 -8
- package/src/components/KOtpInput/KOtpInput.ts +24 -42
- package/src/components/KOverflowBtn/KOverflowBtn.ts +3 -0
- package/src/components/KOverlay/KOverlay.ts +2 -1
- package/src/components/KPagination/KPagination.ts +20 -14
- package/src/components/KParallax/KParallax.ts +3 -2
- package/src/components/KPicker/KPicker.ts +4 -4
- package/src/components/KProgressCircular/KProgressCircular.ts +2 -2
- package/src/components/KRadioGroup/KRadio.sass +0 -4
- package/src/components/KRadioGroup/KRadio.ts +11 -4
- package/src/components/KRadioGroup/KRadioGroup.ts +0 -4
- package/src/components/KResponsive/KResponsive.ts +2 -1
- package/src/components/KSelect/KSelect.sass +4 -2
- package/src/components/KSelect/KSelect.ts +29 -16
- package/src/components/KSelect/KSelectList.ts +15 -15
- package/src/components/KSkeletonLoader/KSkeletonLoader.sass +1 -1
- package/src/components/KSkeletonLoader/KSkeletonLoader.ts +10 -5
- package/src/components/KSlideGroup/KSlideGroup.ts +37 -15
- package/src/components/KSlider/KSlider.ts +1 -7
- package/src/components/KSpeedDial/KSpeedDial.ts +3 -2
- package/src/components/KStepper/KStepper.sass +6 -6
- package/src/components/KStepper/KStepper.ts +2 -1
- package/src/components/KStepper/KStepperContent.ts +2 -2
- package/src/components/KStepper/KStepperStep.ts +15 -3
- package/src/components/KSubheader/KSubheader.ts +2 -1
- package/src/components/KSwitch/KSwitch.sass +3 -2
- package/src/components/KSwitch/KSwitch.ts +2 -2
- package/src/components/KSystemBar/KSystemBar.sass +4 -0
- package/src/components/KTabs/KTab.ts +18 -5
- package/src/components/KTabs/KTabs.sass +1 -1
- package/src/components/KTabs/KTabs.ts +12 -2
- package/src/components/KTabs/_variables.scss +1 -0
- package/src/components/KTextField/KTextField.sass +10 -1
- package/src/components/KTextField/KTextField.ts +2 -2
- package/src/components/KTextField/_mixins.sass +7 -7
- package/src/components/KTextarea/KTextarea.sass +22 -0
- package/src/components/KTimePicker/KTimePicker.ts +19 -1
- package/src/components/KTimeline/KTimeline.sass +16 -9
- package/src/components/KTimeline/KTimeline.ts +2 -1
- package/src/components/KTimeline/KTimelineItem.ts +4 -7
- package/src/components/KTimeline/_mixins.sass +4 -3
- package/src/components/KTooltip/KTooltip.ts +15 -9
- package/src/components/KTreeview/KTreeview.ts +6 -1
- package/src/components/KWindow/KWindow.ts +2 -1
- package/src/components/KWindow/KWindowItem.ts +2 -2
- package/src/directives/click-outside/index.ts +2 -2
- package/src/directives/ripple/KRipple.sass +4 -1
- package/src/directives/ripple/index.ts +1 -8
- package/src/globals.d.ts +6 -6
- package/src/install.ts +1 -1
- package/src/locale/af.ts +6 -0
- package/src/locale/ar.ts +26 -20
- package/src/locale/az.ts +6 -0
- package/src/locale/bg.ts +6 -0
- package/src/locale/ca.ts +13 -7
- package/src/locale/ckb.ts +6 -0
- package/src/locale/cs.ts +6 -0
- package/src/locale/da.ts +6 -0
- package/src/locale/de.ts +6 -0
- package/src/locale/el.ts +6 -0
- package/src/locale/en.ts +6 -0
- package/src/locale/es.ts +9 -3
- package/src/locale/et.ts +6 -0
- package/src/locale/fa.ts +6 -0
- package/src/locale/fi.ts +11 -5
- package/src/locale/fr.ts +7 -1
- package/src/locale/he.ts +6 -0
- package/src/locale/hr.ts +6 -0
- package/src/locale/hu.ts +6 -0
- package/src/locale/id.ts +6 -0
- package/src/locale/it.ts +12 -6
- package/src/locale/ja.ts +6 -0
- package/src/locale/ko.ts +6 -0
- package/src/locale/lt.ts +6 -0
- package/src/locale/lv.ts +6 -0
- package/src/locale/nl.ts +6 -0
- package/src/locale/no.ts +6 -0
- package/src/locale/pl.ts +6 -0
- package/src/locale/pt.ts +6 -0
- package/src/locale/ro.ts +6 -0
- package/src/locale/ru.ts +6 -0
- package/src/locale/sk.ts +6 -0
- package/src/locale/sl.ts +6 -0
- package/src/locale/sr-Cyrl.ts +6 -0
- package/src/locale/sr-Latn.ts +6 -0
- package/src/locale/sv.ts +6 -0
- package/src/locale/th.ts +6 -0
- package/src/locale/tr.ts +6 -0
- package/src/locale/uk.ts +6 -0
- package/src/locale/vi.ts +6 -0
- package/src/locale/zh-Hans.ts +6 -0
- package/src/locale/zh-Hant.ts +6 -0
- package/src/mixins/activatable/index.ts +6 -2
- package/src/mixins/binds-attrs/index.ts +2 -4
- package/src/mixins/dependent/index.ts +3 -3
- package/src/mixins/detachable/index.ts +3 -3
- package/src/mixins/groupable/index.ts +9 -2
- package/src/mixins/loadable/index.ts +2 -1
- package/src/mixins/menuable/index.ts +14 -9
- package/src/{components/KCalendar/mixins/mouse.ts → mixins/mouse/index.ts} +27 -16
- package/src/mixins/overlayable/index.ts +8 -8
- package/src/mixins/picker/index.ts +2 -1
- package/src/mixins/routable/index.ts +5 -8
- package/src/mixins/selectable/index.ts +6 -4
- package/src/mixins/validatable/index.ts +10 -4
- package/src/services/application/index.ts +1 -1
- package/src/services/icons/presets/fa.ts +1 -1
- package/src/services/icons/presets/mdi-svg.ts +5 -5
- package/src/styles/components/_selection-controls.sass +3 -0
- package/src/styles/settings/_variables.scss +4 -3
- package/src/util/helpers.ts +12 -17
- package/types/index.d.ts +8 -2
- package/types/lib.d.ts +2 -0
- package/LICENSE.md +0 -21
- package/es5/components/KCalendar/mixins/mouse.js +0 -117
- package/es5/components/KCalendar/mixins/mouse.js.map +0 -1
- package/es5/util/component.js +0 -11
- package/es5/util/component.js.map +0 -1
- package/lib/components/KCalendar/mixins/mouse.js.map +0 -1
- package/lib/util/component.js +0 -4
- package/lib/util/component.js.map +0 -1
- package/src/directives/ripple/_variables.scss +0 -6
- package/src/util/component.ts +0 -21
- package/types/.npmignore +0 -2
|
@@ -3,11 +3,11 @@ import KDatePickerTitle from './KDatePickerTitle';
|
|
|
3
3
|
import KDatePickerHeader from './KDatePickerHeader';
|
|
4
4
|
import KDatePickerDateTable from './KDatePickerDateTable';
|
|
5
5
|
import KDatePickerMonthTable from './KDatePickerMonthTable';
|
|
6
|
-
import KDatePickerYears from './KDatePickerYears';
|
|
7
|
-
|
|
6
|
+
import KDatePickerYears from './KDatePickerYears';
|
|
7
|
+
// Mixins
|
|
8
8
|
import Localable from '../../mixins/localable';
|
|
9
|
-
import Picker from '../../mixins/picker';
|
|
10
|
-
|
|
9
|
+
import Picker from '../../mixins/picker';
|
|
10
|
+
// Utils
|
|
11
11
|
import isDateAllowed from './util/isDateAllowed';
|
|
12
12
|
import mixins from '../../util/mixins';
|
|
13
13
|
import { wrapInArray } from '../../util/helpers';
|
|
@@ -89,7 +89,7 @@ export default mixins(Localable, Picker).extend({
|
|
|
89
89
|
type: {
|
|
90
90
|
type: String,
|
|
91
91
|
default: 'date',
|
|
92
|
-
validator: type => ['date', 'month'].includes(type)
|
|
92
|
+
validator: type => ['date', 'month'].includes(type) // TODO: year
|
|
93
93
|
},
|
|
94
94
|
value: [Array, String],
|
|
95
95
|
weekdayFormat: Function,
|
|
@@ -97,7 +97,6 @@ export default mixins(Localable, Picker).extend({
|
|
|
97
97
|
yearFormat: Function,
|
|
98
98
|
yearIcon: String
|
|
99
99
|
},
|
|
100
|
-
|
|
101
100
|
data() {
|
|
102
101
|
const now = new Date();
|
|
103
102
|
return {
|
|
@@ -112,27 +111,22 @@ export default mixins(Localable, Picker).extend({
|
|
|
112
111
|
if (this.pickerDate) {
|
|
113
112
|
return this.pickerDate;
|
|
114
113
|
}
|
|
115
|
-
|
|
116
114
|
const multipleValue = wrapInArray(this.value);
|
|
117
115
|
const date = multipleValue[multipleValue.length - 1] || (typeof this.showCurrent === 'string' ? this.showCurrent : `${now.getFullYear()}-${now.getMonth() + 1}`);
|
|
118
116
|
return sanitizeDateString(date, this.type === 'date' ? 'month' : 'year');
|
|
119
117
|
})()
|
|
120
118
|
};
|
|
121
119
|
},
|
|
122
|
-
|
|
123
120
|
computed: {
|
|
124
121
|
multipleValue() {
|
|
125
122
|
return wrapInArray(this.value);
|
|
126
123
|
},
|
|
127
|
-
|
|
128
124
|
isMultiple() {
|
|
129
125
|
return this.multiple || this.range;
|
|
130
126
|
},
|
|
131
|
-
|
|
132
127
|
lastValue() {
|
|
133
128
|
return this.isMultiple ? this.multipleValue[this.multipleValue.length - 1] : this.value;
|
|
134
129
|
},
|
|
135
|
-
|
|
136
130
|
selectedMonths() {
|
|
137
131
|
if (!this.value || this.type === 'month') {
|
|
138
132
|
return this.value;
|
|
@@ -142,43 +136,33 @@ export default mixins(Localable, Picker).extend({
|
|
|
142
136
|
return this.value.substr(0, 7);
|
|
143
137
|
}
|
|
144
138
|
},
|
|
145
|
-
|
|
146
139
|
current() {
|
|
147
140
|
if (this.showCurrent === true) {
|
|
148
141
|
return sanitizeDateString(`${this.now.getFullYear()}-${this.now.getMonth() + 1}-${this.now.getDate()}`, this.type);
|
|
149
142
|
}
|
|
150
|
-
|
|
151
143
|
return this.showCurrent || null;
|
|
152
144
|
},
|
|
153
|
-
|
|
154
145
|
inputDate() {
|
|
155
146
|
return this.type === 'date' ? `${this.inputYear}-${pad(this.inputMonth + 1)}-${pad(this.inputDay)}` : `${this.inputYear}-${pad(this.inputMonth + 1)}`;
|
|
156
147
|
},
|
|
157
|
-
|
|
158
148
|
tableMonth() {
|
|
159
149
|
return Number((this.pickerDate || this.tableDate).split('-')[1]) - 1;
|
|
160
150
|
},
|
|
161
|
-
|
|
162
151
|
tableYear() {
|
|
163
152
|
return Number((this.pickerDate || this.tableDate).split('-')[0]);
|
|
164
153
|
},
|
|
165
|
-
|
|
166
154
|
minMonth() {
|
|
167
155
|
return this.min ? sanitizeDateString(this.min, 'month') : null;
|
|
168
156
|
},
|
|
169
|
-
|
|
170
157
|
maxMonth() {
|
|
171
158
|
return this.max ? sanitizeDateString(this.max, 'month') : null;
|
|
172
159
|
},
|
|
173
|
-
|
|
174
160
|
minYear() {
|
|
175
161
|
return this.min ? sanitizeDateString(this.min, 'year') : null;
|
|
176
162
|
},
|
|
177
|
-
|
|
178
163
|
maxYear() {
|
|
179
164
|
return this.max ? sanitizeDateString(this.max, 'year') : null;
|
|
180
165
|
},
|
|
181
|
-
|
|
182
166
|
formatters() {
|
|
183
167
|
return {
|
|
184
168
|
year: this.yearFormat || createNativeLocaleFormatter(this.currentLocale, {
|
|
@@ -190,21 +174,17 @@ export default mixins(Localable, Picker).extend({
|
|
|
190
174
|
titleDate: this.titleDateFormat || (this.isMultiple ? this.defaultTitleMultipleDateFormatter : this.defaultTitleDateFormatter)
|
|
191
175
|
};
|
|
192
176
|
},
|
|
193
|
-
|
|
194
177
|
defaultTitleMultipleDateFormatter() {
|
|
195
178
|
return dates => {
|
|
196
179
|
if (!dates.length) {
|
|
197
180
|
return '-';
|
|
198
181
|
}
|
|
199
|
-
|
|
200
182
|
if (dates.length === 1) {
|
|
201
183
|
return this.defaultTitleDateFormatter(dates[0]);
|
|
202
184
|
}
|
|
203
|
-
|
|
204
185
|
return this.$kdutify.lang.t(this.selectedItemsText, dates.length);
|
|
205
186
|
};
|
|
206
187
|
},
|
|
207
|
-
|
|
208
188
|
defaultTitleDateFormatter() {
|
|
209
189
|
const titleFormats = {
|
|
210
190
|
year: {
|
|
@@ -230,27 +210,20 @@ export default mixins(Localable, Picker).extend({
|
|
|
230
210
|
year: 4
|
|
231
211
|
}[this.type]
|
|
232
212
|
});
|
|
233
|
-
|
|
234
213
|
const landscapeFormatter = date => titleDateFormatter(date).replace(/([^\d\s])([\d])/g, (match, nonDigit, digit) => `${nonDigit} ${digit}`).replace(', ', ',<br>');
|
|
235
|
-
|
|
236
214
|
return this.landscape ? landscapeFormatter : titleDateFormatter;
|
|
237
215
|
}
|
|
238
|
-
|
|
239
216
|
},
|
|
240
217
|
watch: {
|
|
241
218
|
internalActivePicker: {
|
|
242
219
|
immediate: true,
|
|
243
|
-
|
|
244
220
|
handler(val) {
|
|
245
221
|
this.$emit('update:active-picker', val);
|
|
246
222
|
}
|
|
247
|
-
|
|
248
223
|
},
|
|
249
|
-
|
|
250
224
|
activePicker(val) {
|
|
251
225
|
this.internalActivePicker = val;
|
|
252
226
|
},
|
|
253
|
-
|
|
254
227
|
tableDate(val, prev) {
|
|
255
228
|
// Make a ISO 8601 strings from val and prev for comparision, otherwise it will incorrectly
|
|
256
229
|
// compare for example '2000-9' and '2000-10'
|
|
@@ -258,7 +231,6 @@ export default mixins(Localable, Picker).extend({
|
|
|
258
231
|
this.isReversing = sanitizeDateString(val, sanitizeType) < sanitizeDateString(prev, sanitizeType);
|
|
259
232
|
this.$emit('update:picker-date', val);
|
|
260
233
|
},
|
|
261
|
-
|
|
262
234
|
pickerDate(val) {
|
|
263
235
|
if (val) {
|
|
264
236
|
this.tableDate = val;
|
|
@@ -268,37 +240,28 @@ export default mixins(Localable, Picker).extend({
|
|
|
268
240
|
this.tableDate = sanitizeDateString(this.lastValue, 'year');
|
|
269
241
|
}
|
|
270
242
|
},
|
|
271
|
-
|
|
272
243
|
value(newValue, oldValue) {
|
|
273
244
|
this.checkMultipleProp();
|
|
274
245
|
this.setInputDate();
|
|
275
|
-
|
|
276
246
|
if (!this.isMultiple && this.value && !this.pickerDate || this.isMultiple && this.multipleValue.length && (!oldValue || !oldValue.length) && !this.pickerDate) {
|
|
277
247
|
this.tableDate = sanitizeDateString(this.inputDate, this.type === 'month' ? 'year' : 'month');
|
|
278
248
|
}
|
|
279
249
|
},
|
|
280
|
-
|
|
281
250
|
type(type) {
|
|
282
251
|
this.internalActivePicker = type.toUpperCase();
|
|
283
|
-
|
|
284
252
|
if (this.value && this.value.length) {
|
|
285
253
|
const output = this.multipleValue.map(val => sanitizeDateString(val, type)).filter(this.isDateAllowed);
|
|
286
254
|
this.$emit('input', this.isMultiple ? output : output[0]);
|
|
287
255
|
}
|
|
288
256
|
}
|
|
289
|
-
|
|
290
257
|
},
|
|
291
|
-
|
|
292
258
|
created() {
|
|
293
259
|
this.checkMultipleProp();
|
|
294
|
-
|
|
295
260
|
if (this.pickerDate !== this.tableDate) {
|
|
296
261
|
this.$emit('update:picker-date', this.tableDate);
|
|
297
262
|
}
|
|
298
|
-
|
|
299
263
|
this.setInputDate();
|
|
300
264
|
},
|
|
301
|
-
|
|
302
265
|
methods: {
|
|
303
266
|
emitInput(newInput) {
|
|
304
267
|
if (this.range) {
|
|
@@ -309,57 +272,45 @@ export default mixins(Localable, Picker).extend({
|
|
|
309
272
|
this.$emit('input', output);
|
|
310
273
|
this.$emit('change', output);
|
|
311
274
|
}
|
|
312
|
-
|
|
313
275
|
return;
|
|
314
276
|
}
|
|
315
|
-
|
|
316
277
|
const output = this.multiple ? this.multipleValue.indexOf(newInput) === -1 ? this.multipleValue.concat([newInput]) : this.multipleValue.filter(x => x !== newInput) : newInput;
|
|
317
278
|
this.$emit('input', output);
|
|
318
279
|
this.multiple || this.$emit('change', newInput);
|
|
319
280
|
},
|
|
320
|
-
|
|
321
281
|
checkMultipleProp() {
|
|
322
282
|
if (this.value == null) return;
|
|
323
283
|
const valueType = this.value.constructor.name;
|
|
324
284
|
const expected = this.isMultiple ? 'Array' : 'String';
|
|
325
|
-
|
|
326
285
|
if (valueType !== expected) {
|
|
327
286
|
consoleWarn(`Value must be ${this.isMultiple ? 'an' : 'a'} ${expected}, got ${valueType}`, this);
|
|
328
287
|
}
|
|
329
288
|
},
|
|
330
|
-
|
|
331
289
|
isDateAllowed(value) {
|
|
332
290
|
return isDateAllowed(value, this.min, this.max, this.allowedDates);
|
|
333
291
|
},
|
|
334
|
-
|
|
335
292
|
yearClick(value) {
|
|
336
293
|
this.inputYear = value;
|
|
337
|
-
|
|
338
294
|
if (this.type === 'month') {
|
|
339
295
|
this.tableDate = `${value}`;
|
|
340
296
|
} else {
|
|
341
297
|
this.tableDate = `${value}-${pad((this.tableMonth || 0) + 1)}`;
|
|
342
298
|
}
|
|
343
|
-
|
|
344
299
|
this.internalActivePicker = 'MONTH';
|
|
345
|
-
|
|
346
300
|
if (this.reactive && !this.readonly && !this.isMultiple && this.isDateAllowed(this.inputDate)) {
|
|
347
301
|
this.$emit('input', this.inputDate);
|
|
348
302
|
}
|
|
349
303
|
},
|
|
350
|
-
|
|
351
304
|
monthClick(value) {
|
|
352
|
-
|
|
353
|
-
this.
|
|
354
|
-
|
|
305
|
+
const [year, month] = value.split('-');
|
|
306
|
+
this.inputYear = parseInt(year, 10);
|
|
307
|
+
this.inputMonth = parseInt(month, 10) - 1;
|
|
355
308
|
if (this.type === 'date') {
|
|
356
309
|
if (this.inputDay) {
|
|
357
310
|
this.inputDay = Math.min(this.inputDay, daysInMonth(this.inputYear, this.inputMonth + 1));
|
|
358
311
|
}
|
|
359
|
-
|
|
360
312
|
this.tableDate = value;
|
|
361
313
|
this.internalActivePicker = 'DATE';
|
|
362
|
-
|
|
363
314
|
if (this.reactive && !this.readonly && !this.isMultiple && this.isDateAllowed(this.inputDate)) {
|
|
364
315
|
this.$emit('input', this.inputDate);
|
|
365
316
|
}
|
|
@@ -367,14 +318,13 @@ export default mixins(Localable, Picker).extend({
|
|
|
367
318
|
this.emitInput(this.inputDate);
|
|
368
319
|
}
|
|
369
320
|
},
|
|
370
|
-
|
|
371
321
|
dateClick(value) {
|
|
372
|
-
|
|
373
|
-
this.
|
|
374
|
-
this.
|
|
322
|
+
const [year, month, day] = value.split('-');
|
|
323
|
+
this.inputYear = parseInt(year, 10);
|
|
324
|
+
this.inputMonth = parseInt(month, 10) - 1;
|
|
325
|
+
this.inputDay = parseInt(day, 10);
|
|
375
326
|
this.emitInput(this.inputDate);
|
|
376
327
|
},
|
|
377
|
-
|
|
378
328
|
genPickerTitle() {
|
|
379
329
|
return this.$createElement(KDatePickerTitle, {
|
|
380
330
|
props: {
|
|
@@ -392,7 +342,6 @@ export default mixins(Localable, Picker).extend({
|
|
|
392
342
|
}
|
|
393
343
|
});
|
|
394
344
|
},
|
|
395
|
-
|
|
396
345
|
genTableHeader() {
|
|
397
346
|
return this.$createElement(KDatePickerHeader, {
|
|
398
347
|
props: {
|
|
@@ -417,7 +366,6 @@ export default mixins(Localable, Picker).extend({
|
|
|
417
366
|
}
|
|
418
367
|
});
|
|
419
368
|
},
|
|
420
|
-
|
|
421
369
|
genDateTable() {
|
|
422
370
|
return this.$createElement(KDatePickerDateTable, {
|
|
423
371
|
props: {
|
|
@@ -452,7 +400,6 @@ export default mixins(Localable, Picker).extend({
|
|
|
452
400
|
}
|
|
453
401
|
});
|
|
454
402
|
},
|
|
455
|
-
|
|
456
403
|
genMonthTable() {
|
|
457
404
|
return this.$createElement(KDatePickerMonthTable, {
|
|
458
405
|
props: {
|
|
@@ -482,7 +429,6 @@ export default mixins(Localable, Picker).extend({
|
|
|
482
429
|
}
|
|
483
430
|
});
|
|
484
431
|
},
|
|
485
|
-
|
|
486
432
|
genYears() {
|
|
487
433
|
return this.$createElement(KDatePickerYears, {
|
|
488
434
|
props: {
|
|
@@ -499,20 +445,17 @@ export default mixins(Localable, Picker).extend({
|
|
|
499
445
|
}
|
|
500
446
|
});
|
|
501
447
|
},
|
|
502
|
-
|
|
503
448
|
genPickerBody() {
|
|
504
449
|
const children = this.internalActivePicker === 'YEAR' ? [this.genYears()] : [this.genTableHeader(), this.internalActivePicker === 'DATE' ? this.genDateTable() : this.genMonthTable()];
|
|
505
450
|
return this.$createElement('div', {
|
|
506
451
|
key: this.internalActivePicker
|
|
507
452
|
}, children);
|
|
508
453
|
},
|
|
509
|
-
|
|
510
454
|
setInputDate() {
|
|
511
455
|
if (this.lastValue) {
|
|
512
456
|
const array = this.lastValue.split('-');
|
|
513
457
|
this.inputYear = parseInt(array[0], 10);
|
|
514
458
|
this.inputMonth = parseInt(array[1], 10) - 1;
|
|
515
|
-
|
|
516
459
|
if (this.type === 'date') {
|
|
517
460
|
this.inputDay = parseInt(array[2], 10);
|
|
518
461
|
}
|
|
@@ -522,12 +465,9 @@ export default mixins(Localable, Picker).extend({
|
|
|
522
465
|
this.inputDay = this.inputDay || this.now.getDate();
|
|
523
466
|
}
|
|
524
467
|
}
|
|
525
|
-
|
|
526
468
|
},
|
|
527
|
-
|
|
528
469
|
render() {
|
|
529
470
|
return this.genPicker('k-picker--date');
|
|
530
471
|
}
|
|
531
|
-
|
|
532
472
|
});
|
|
533
473
|
//# sourceMappingURL=KDatePicker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/KDatePicker/KDatePicker.ts"],"names":[],"mappings":"AAAA;AACA,OAAO,gBAAP,MAA6B,oBAA7B;AACA,OAAO,iBAAP,MAA8B,qBAA9B;AACA,OAAO,oBAAP,MAAiC,wBAAjC;AACA,OAAO,qBAAP,MAAkC,yBAAlC;AACA,OAAO,gBAAP,MAA6B,oBAA7B,C,CAEA;;AACA,OAAO,SAAP,MAAsB,wBAAtB;AACA,OAAO,MAAP,MAAmB,qBAAnB,C,CAEA;;AACA,OAAO,aAAP,MAA0B,sBAA1B;AACA,OAAO,MAAP,MAAmB,mBAAnB;AACA,SAAS,WAAT,QAA4B,oBAA5B;AACA,SAAS,WAAT,QAA4B,6BAA5B;AACA,SAAS,WAAT,QAA4B,oBAA5B;AACA,SACE,uBADF,EAEE,2B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CAAvC,GAEb,CACF,KAAK,cAAL,EADE,EAEF,KAAK,oBAAL,KAA8B,MAA9B,GAAuC,KAAK,YAAL,EAAvC,GAA6D,KAAK,aAAL,EAF3D,CAFJ;AAOA,aAAO,KAAK,cAAL,CAAoB,KAApB,EAA2B;AAChC,QAAA,GAAG,EAAE,KAAK;AADsB,OAA3B,EAEJ,QAFI,CAAP;AAGD,KAzMM;;AA0MP,IAAA,YAAY,GAAA;AACV,UAAI,KAAK,SAAT,EAAoB;AAClB,cAAM,KAAK,GAAG,KAAK,SAAL,CAAe,KAAf,CAAqB,GAArB,CAAd;AACA,aAAK,SAAL,GAAiB,QAAQ,CAAC,KAAK,CAAC,CAAD,CAAN,EAAW,EAAX,CAAzB;AACA,aAAK,UAAL,GAAkB,QAAQ,CAAC,KAAK,CAAC,CAAD,CAAN,EAAW,EAAX,CAAR,GAAyB,CAA3C;;AACA,YAAI,KAAK,IAAL,KAAc,MAAlB,EAA0B;AACxB,eAAK,QAAL,GAAgB,QAAQ,CAAC,KAAK,CAAC,CAAD,CAAN,EAAW,EAAX,CAAxB;AACD;AACF,OAPD,MAOO;AACL,aAAK,SAAL,GAAiB,KAAK,SAAL,IAAkB,KAAK,GAAL,CAAS,WAAT,EAAnC;AACA,aAAK,UAAL,GAAkB,KAAK,UAAL,IAAmB,IAAnB,GAA0B,KAAK,UAA/B,GAA4C,KAAK,GAAL,CAAS,QAAT,EAA9D;AACA,aAAK,QAAL,GAAgB,KAAK,QAAL,IAAiB,KAAK,GAAL,CAAS,OAAT,EAAjC;AACD;AACF;;AAvNM,GA/PF;;AAydP,EAAA,MAAM,GAAA;AACJ,WAAO,KAAK,SAAL,CAAe,gBAAf,CAAP;AACD;;AA3dM,CAJM,CAAf","sourcesContent":["// Components\nimport KDatePickerTitle from './KDatePickerTitle'\nimport KDatePickerHeader from './KDatePickerHeader'\nimport KDatePickerDateTable from './KDatePickerDateTable'\nimport KDatePickerMonthTable from './KDatePickerMonthTable'\nimport KDatePickerYears from './KDatePickerYears'\n\n// Mixins\nimport Localable from '../../mixins/localable'\nimport Picker from '../../mixins/picker'\n\n// Utils\nimport isDateAllowed from './util/isDateAllowed'\nimport mixins from '../../util/mixins'\nimport { wrapInArray } from '../../util/helpers'\nimport { daysInMonth } from '../KCalendar/util/timestamp'\nimport { consoleWarn } from '../../util/console'\nimport {\n createItemTypeListeners,\n createNativeLocaleFormatter,\n pad,\n sanitizeDateString,\n} from './util'\n\n// Types\nimport {\n PropType,\n PropValidator,\n} from 'kdu/types/options'\nimport { KNode } from 'kdu'\nimport {\n DatePickerFormatter,\n DatePickerMultipleFormatter,\n DatePickerAllowedDatesFunction,\n DatePickerEventColors,\n DatePickerEvents,\n DatePickerType,\n} from 'kdutify/types'\n\ntype DatePickerValue = string | string[] | undefined\ninterface Formatters {\n year: DatePickerFormatter\n titleDate: DatePickerFormatter | DatePickerMultipleFormatter\n}\n\ntype ActivePicker = 'DATE' | 'MONTH' | 'YEAR';\n\nexport default mixins(\n Localable,\n Picker,\n/* @kdujs/component */\n).extend({\n name: 'k-date-picker',\n\n props: {\n activePicker: String as PropType<ActivePicker>,\n allowedDates: Function as PropType<DatePickerAllowedDatesFunction | undefined>,\n // Function formatting the day in date picker table\n dayFormat: Function as PropType<DatePickerAllowedDatesFunction | undefined>,\n disabled: Boolean,\n events: {\n type: [Array, Function, Object],\n default: () => null,\n } as PropValidator<DatePickerEvents | null>,\n eventColor: {\n type: [Array, Function, Object, String],\n default: () => 'warning',\n } as PropValidator<DatePickerEventColors>,\n firstDayOfWeek: {\n type: [String, Number],\n default: 0,\n },\n // Function formatting the tableDate in the day/month table header\n headerDateFormat: Function as PropType<DatePickerFormatter | undefined>,\n localeFirstDayOfYear: {\n type: [String, Number],\n default: 0,\n },\n max: String,\n min: String,\n // Function formatting month in the months table\n monthFormat: Function as PropType<DatePickerFormatter | undefined>,\n multiple: Boolean,\n nextIcon: {\n type: String,\n default: '$next',\n },\n nextMonthAriaLabel: {\n type: String,\n default: '$kdutify.datePicker.nextMonthAriaLabel',\n },\n nextYearAriaLabel: {\n type: String,\n default: '$kdutify.datePicker.nextYearAriaLabel',\n },\n pickerDate: String,\n prevIcon: {\n type: String,\n default: '$prev',\n },\n prevMonthAriaLabel: {\n type: String,\n default: '$kdutify.datePicker.prevMonthAriaLabel',\n },\n prevYearAriaLabel: {\n type: String,\n default: '$kdutify.datePicker.prevYearAriaLabel',\n },\n range: Boolean,\n reactive: Boolean,\n readonly: Boolean,\n scrollable: Boolean,\n showCurrent: {\n type: [Boolean, String],\n default: true,\n },\n selectedItemsText: {\n type: String,\n default: '$kdutify.datePicker.itemsSelected',\n },\n showAdjacentMonths: Boolean,\n showWeek: Boolean,\n // Function formatting currently selected date in the picker title\n titleDateFormat: Function as PropType<DatePickerFormatter | DatePickerMultipleFormatter | undefined>,\n type: {\n type: String,\n default: 'date',\n validator: (type: any) => ['date', 'month'].includes(type), // TODO: year\n } as PropValidator<DatePickerType>,\n value: [Array, String] as PropType<DatePickerValue>,\n weekdayFormat: Function as PropType<DatePickerFormatter | undefined>,\n // Function formatting the year in table header and pickup title\n yearFormat: Function as PropType<DatePickerFormatter | undefined>,\n yearIcon: String,\n },\n\n data () {\n const now = new Date()\n return {\n internalActivePicker: this.type.toUpperCase(),\n inputDay: null as number | null,\n inputMonth: null as number | null,\n inputYear: null as number | null,\n isReversing: false,\n now,\n // tableDate is a string in 'YYYY' / 'YYYY-M' format (leading zero for month is not required)\n tableDate: (() => {\n if (this.pickerDate) {\n return this.pickerDate\n }\n\n const multipleValue = wrapInArray(this.value)\n const date = multipleValue[multipleValue.length - 1] ||\n (typeof this.showCurrent === 'string' ? this.showCurrent : `${now.getFullYear()}-${now.getMonth() + 1}`)\n return sanitizeDateString(date as string, this.type === 'date' ? 'month' : 'year')\n })(),\n }\n },\n\n computed: {\n multipleValue (): string[] {\n return wrapInArray(this.value)\n },\n isMultiple (): boolean {\n return this.multiple || this.range\n },\n lastValue (): string | null {\n return this.isMultiple ? this.multipleValue[this.multipleValue.length - 1] : (this.value as string | null)\n },\n selectedMonths (): string | string[] | undefined {\n if (!this.value || this.type === 'month') {\n return this.value\n } else if (this.isMultiple) {\n return this.multipleValue.map(val => val.substr(0, 7))\n } else {\n return (this.value as string).substr(0, 7)\n }\n },\n current (): string | null {\n if (this.showCurrent === true) {\n return sanitizeDateString(`${this.now.getFullYear()}-${this.now.getMonth() + 1}-${this.now.getDate()}`, this.type)\n }\n\n return this.showCurrent || null\n },\n inputDate (): string {\n return this.type === 'date'\n ? `${this.inputYear}-${pad(this.inputMonth! + 1)}-${pad(this.inputDay!)}`\n : `${this.inputYear}-${pad(this.inputMonth! + 1)}`\n },\n tableMonth (): number {\n return Number((this.pickerDate || this.tableDate).split('-')[1]) - 1\n },\n tableYear (): number {\n return Number((this.pickerDate || this.tableDate).split('-')[0])\n },\n minMonth (): string | null {\n return this.min ? sanitizeDateString(this.min, 'month') : null\n },\n maxMonth (): string | null {\n return this.max ? sanitizeDateString(this.max, 'month') : null\n },\n minYear (): string | null {\n return this.min ? sanitizeDateString(this.min, 'year') : null\n },\n maxYear (): string | null {\n return this.max ? sanitizeDateString(this.max, 'year') : null\n },\n formatters (): Formatters {\n return {\n year: this.yearFormat || createNativeLocaleFormatter(this.currentLocale, { year: 'numeric', timeZone: 'UTC' }, { length: 4 }),\n titleDate: this.titleDateFormat ||\n (this.isMultiple ? this.defaultTitleMultipleDateFormatter : this.defaultTitleDateFormatter),\n }\n },\n defaultTitleMultipleDateFormatter (): DatePickerMultipleFormatter {\n return dates => {\n if (!dates.length) {\n return '-'\n }\n\n if (dates.length === 1) {\n return this.defaultTitleDateFormatter(dates[0])\n }\n\n return this.$kdutify.lang.t(this.selectedItemsText, dates.length)\n }\n },\n defaultTitleDateFormatter (): DatePickerFormatter {\n const titleFormats = {\n year: { year: 'numeric', timeZone: 'UTC' },\n month: { month: 'long', timeZone: 'UTC' },\n date: { weekday: 'short', month: 'short', day: 'numeric', timeZone: 'UTC' },\n }\n\n const titleDateFormatter = createNativeLocaleFormatter(this.currentLocale, titleFormats[this.type], {\n start: 0,\n length: { date: 10, month: 7, year: 4 }[this.type],\n })\n\n const landscapeFormatter = (date: string) => titleDateFormatter(date)\n .replace(/([^\\d\\s])([\\d])/g, (match, nonDigit, digit) => `${nonDigit} ${digit}`)\n .replace(', ', ',<br>')\n\n return this.landscape ? landscapeFormatter : titleDateFormatter\n },\n },\n\n watch: {\n internalActivePicker: {\n immediate: true,\n handler (val: ActivePicker) {\n this.$emit('update:active-picker', val)\n },\n },\n activePicker (val: ActivePicker) {\n this.internalActivePicker = val\n },\n tableDate (val: string, prev: string) {\n // Make a ISO 8601 strings from val and prev for comparision, otherwise it will incorrectly\n // compare for example '2000-9' and '2000-10'\n const sanitizeType = this.type === 'month' ? 'year' : 'month'\n this.isReversing = sanitizeDateString(val, sanitizeType) < sanitizeDateString(prev, sanitizeType)\n this.$emit('update:picker-date', val)\n },\n pickerDate (val: string | null) {\n if (val) {\n this.tableDate = val\n } else if (this.lastValue && this.type === 'date') {\n this.tableDate = sanitizeDateString(this.lastValue, 'month')\n } else if (this.lastValue && this.type === 'month') {\n this.tableDate = sanitizeDateString(this.lastValue, 'year')\n }\n },\n value (newValue: DatePickerValue, oldValue: DatePickerValue) {\n this.checkMultipleProp()\n this.setInputDate()\n\n if (\n (!this.isMultiple && this.value && !this.pickerDate) ||\n (this.isMultiple && this.multipleValue.length && (!oldValue || !oldValue.length) && !this.pickerDate)\n ) {\n this.tableDate = sanitizeDateString(this.inputDate, this.type === 'month' ? 'year' : 'month')\n }\n },\n type (type: DatePickerType) {\n this.internalActivePicker = type.toUpperCase()\n\n if (this.value && this.value.length) {\n const output = this.multipleValue\n .map((val: string) => sanitizeDateString(val, type))\n .filter(this.isDateAllowed)\n this.$emit('input', this.isMultiple ? output : output[0])\n }\n },\n },\n\n created () {\n this.checkMultipleProp()\n\n if (this.pickerDate !== this.tableDate) {\n this.$emit('update:picker-date', this.tableDate)\n }\n this.setInputDate()\n },\n\n methods: {\n emitInput (newInput: string) {\n if (this.range) {\n if (this.multipleValue.length !== 1) {\n this.$emit('input', [newInput])\n } else {\n const output = [this.multipleValue[0], newInput]\n this.$emit('input', output)\n this.$emit('change', output)\n }\n return\n }\n\n const output = this.multiple\n ? (\n this.multipleValue.indexOf(newInput) === -1\n ? this.multipleValue.concat([newInput])\n : this.multipleValue.filter(x => x !== newInput)\n )\n : newInput\n\n this.$emit('input', output)\n this.multiple || this.$emit('change', newInput)\n },\n checkMultipleProp () {\n if (this.value == null) return\n const valueType = this.value.constructor.name\n const expected = this.isMultiple ? 'Array' : 'String'\n if (valueType !== expected) {\n consoleWarn(`Value must be ${this.isMultiple ? 'an' : 'a'} ${expected}, got ${valueType}`, this)\n }\n },\n isDateAllowed (value: string): boolean {\n return isDateAllowed(value, this.min, this.max, this.allowedDates)\n },\n yearClick (value: number) {\n this.inputYear = value\n if (this.type === 'month') {\n this.tableDate = `${value}`\n } else {\n this.tableDate = `${value}-${pad((this.tableMonth || 0) + 1)}`\n }\n this.internalActivePicker = 'MONTH'\n if (this.reactive && !this.readonly && !this.isMultiple && this.isDateAllowed(this.inputDate)) {\n this.$emit('input', this.inputDate)\n }\n },\n monthClick (value: string) {\n this.inputYear = parseInt(value.split('-')[0], 10)\n this.inputMonth = parseInt(value.split('-')[1], 10) - 1\n if (this.type === 'date') {\n if (this.inputDay) {\n this.inputDay = Math.min(this.inputDay, daysInMonth(this.inputYear, this.inputMonth + 1))\n }\n\n this.tableDate = value\n this.internalActivePicker = 'DATE'\n if (this.reactive && !this.readonly && !this.isMultiple && this.isDateAllowed(this.inputDate)) {\n this.$emit('input', this.inputDate)\n }\n } else {\n this.emitInput(this.inputDate)\n }\n },\n dateClick (value: string) {\n this.inputYear = parseInt(value.split('-')[0], 10)\n this.inputMonth = parseInt(value.split('-')[1], 10) - 1\n this.inputDay = parseInt(value.split('-')[2], 10)\n this.emitInput(this.inputDate)\n },\n genPickerTitle (): KNode {\n return this.$createElement(KDatePickerTitle, {\n props: {\n date: this.value ? (this.formatters.titleDate as (value: any) => string)(this.isMultiple ? this.multipleValue : this.value) : '',\n disabled: this.disabled,\n readonly: this.readonly,\n selectingYear: this.internalActivePicker === 'YEAR',\n year: this.formatters.year(this.multipleValue.length ? `${this.inputYear}` : this.tableDate),\n yearIcon: this.yearIcon,\n value: this.multipleValue[0],\n },\n slot: 'title',\n on: {\n 'update:selecting-year': (value: boolean) => this.internalActivePicker = value ? 'YEAR' : this.type.toUpperCase(),\n },\n })\n },\n genTableHeader (): KNode {\n return this.$createElement(KDatePickerHeader, {\n props: {\n nextIcon: this.nextIcon,\n color: this.color,\n dark: this.dark,\n disabled: this.disabled,\n format: this.headerDateFormat,\n light: this.light,\n locale: this.locale,\n min: this.internalActivePicker === 'DATE' ? this.minMonth : this.minYear,\n max: this.internalActivePicker === 'DATE' ? this.maxMonth : this.maxYear,\n nextAriaLabel: this.internalActivePicker === 'DATE' ? this.nextMonthAriaLabel : this.nextYearAriaLabel,\n prevAriaLabel: this.internalActivePicker === 'DATE' ? this.prevMonthAriaLabel : this.prevYearAriaLabel,\n prevIcon: this.prevIcon,\n readonly: this.readonly,\n value: this.internalActivePicker === 'DATE' ? `${pad(this.tableYear, 4)}-${pad(this.tableMonth + 1)}` : `${pad(this.tableYear, 4)}`,\n },\n on: {\n toggle: () => this.internalActivePicker = (this.internalActivePicker === 'DATE' ? 'MONTH' : 'YEAR'),\n input: (value: string) => this.tableDate = value,\n },\n })\n },\n genDateTable (): KNode {\n return this.$createElement(KDatePickerDateTable, {\n props: {\n allowedDates: this.allowedDates,\n color: this.color,\n current: this.current,\n dark: this.dark,\n disabled: this.disabled,\n events: this.events,\n eventColor: this.eventColor,\n firstDayOfWeek: this.firstDayOfWeek,\n format: this.dayFormat,\n light: this.light,\n locale: this.locale,\n localeFirstDayOfYear: this.localeFirstDayOfYear,\n min: this.min,\n max: this.max,\n range: this.range,\n readonly: this.readonly,\n scrollable: this.scrollable,\n showAdjacentMonths: this.showAdjacentMonths,\n showWeek: this.showWeek,\n tableDate: `${pad(this.tableYear, 4)}-${pad(this.tableMonth + 1)}`,\n value: this.value,\n weekdayFormat: this.weekdayFormat,\n },\n ref: 'table',\n on: {\n input: this.dateClick,\n 'update:table-date': (value: string) => this.tableDate = value,\n ...createItemTypeListeners(this, ':date'),\n },\n })\n },\n genMonthTable (): KNode {\n return this.$createElement(KDatePickerMonthTable, {\n props: {\n allowedDates: this.type === 'month' ? this.allowedDates : null,\n color: this.color,\n current: this.current ? sanitizeDateString(this.current, 'month') : null,\n dark: this.dark,\n disabled: this.disabled,\n events: this.type === 'month' ? this.events : null,\n eventColor: this.type === 'month' ? this.eventColor : null,\n format: this.monthFormat,\n light: this.light,\n locale: this.locale,\n min: this.minMonth,\n max: this.maxMonth,\n range: this.range,\n readonly: this.readonly && this.type === 'month',\n scrollable: this.scrollable,\n value: this.selectedMonths,\n tableDate: `${pad(this.tableYear, 4)}`,\n },\n ref: 'table',\n on: {\n input: this.monthClick,\n 'update:table-date': (value: string) => this.tableDate = value,\n ...createItemTypeListeners(this, ':month'),\n },\n })\n },\n genYears (): KNode {\n return this.$createElement(KDatePickerYears, {\n props: {\n color: this.color,\n format: this.yearFormat,\n locale: this.locale,\n min: this.minYear,\n max: this.maxYear,\n value: this.tableYear,\n },\n on: {\n input: this.yearClick,\n ...createItemTypeListeners(this, ':year'),\n },\n })\n },\n genPickerBody (): KNode {\n const children = this.internalActivePicker === 'YEAR' ? [\n this.genYears(),\n ] : [\n this.genTableHeader(),\n this.internalActivePicker === 'DATE' ? this.genDateTable() : this.genMonthTable(),\n ]\n\n return this.$createElement('div', {\n key: this.internalActivePicker,\n }, children)\n },\n setInputDate () {\n if (this.lastValue) {\n const array = this.lastValue.split('-')\n this.inputYear = parseInt(array[0], 10)\n this.inputMonth = parseInt(array[1], 10) - 1\n if (this.type === 'date') {\n this.inputDay = parseInt(array[2], 10)\n }\n } else {\n this.inputYear = this.inputYear || this.now.getFullYear()\n this.inputMonth = this.inputMonth == null ? this.inputMonth : this.now.getMonth()\n this.inputDay = this.inputDay || this.now.getDate()\n }\n },\n },\n\n render (): KNode {\n return this.genPicker('k-picker--date')\n },\n})\n"],"sourceRoot":"","file":"KDatePicker.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/KDatePicker/KDatePicker.ts"],"names":[],"mappings":"AAAA;AACA,OAAO,gBAAgB,MAAM,oBAAoB;AACjD,OAAO,iBAAiB,MAAM,qBAAqB;AACnD,OAAO,oBAAoB,MAAM,wBAAwB;AACzD,OAAO,qBAAqB,MAAM,yBAAyB;AAC3D,OAAO,gBAAgB,MAAM,oBAAoB;AAEjD;AACA,OAAO,SAAS,MAAM,wBAAwB;AAC9C,OAAO,MAAM,MAAM,qBAAqB;AAExC;AACA,OAAO,aAAa,MAAM,sBAAsB;AAChD,OAAO,MAAM,MAAM,mBAAmB;AACtC,SAAS,WAAW,QAAQ,oBAAoB;AAChD,SAAS,WAAW,QAAQ,6BAA6B;AACzD,SAAS,WAAW,QAAQ,oBAAoB;AAChD,SACE,uBAAuB,EACvB,2BAA2B,EAC3B,GAAG,EACH,kBAAkB,QACb,QAAQ;AAyBf,eAAe,MAAM,CACnB,SAAS,EACT,MAAM,CAEP,CAAC,MAAM,CAAC;EACP,IAAI,EAAE,eAAe;EAErB,KAAK,EAAE;IACL,YAAY,EAAE,MAAgC;IAC9C,YAAY,EAAE,QAAgE;IAC9E;IACA,SAAS,EAAE,QAAgE;IAC3E,QAAQ,EAAE,OAAO;IACjB,MAAM,EAAE;MACN,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC;MAC/B,OAAO,EAAE,CAAA,KAAM;KAC0B;IAC3C,UAAU,EAAE;MACV,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC;MACvC,OAAO,EAAE,CAAA,KAAM;KACwB;IACzC,cAAc,EAAE;MACd,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;MACtB,OAAO,EAAE;KACV;IAC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,IAAI,CAAC,GAAG,CAAC,WAAW,CAAA,CAAE;QACzD,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,IAAI,GAAG,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAA,CAAE;QACjF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,CAAA,CAAE;MACpD;IACH;GACD;EAED,MAAM,CAAA,EAAA;IACJ,OAAO,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC;EACzC;CACD,CAAC","sourcesContent":["// Components\nimport KDatePickerTitle from './KDatePickerTitle'\nimport KDatePickerHeader from './KDatePickerHeader'\nimport KDatePickerDateTable from './KDatePickerDateTable'\nimport KDatePickerMonthTable from './KDatePickerMonthTable'\nimport KDatePickerYears from './KDatePickerYears'\n\n// Mixins\nimport Localable from '../../mixins/localable'\nimport Picker from '../../mixins/picker'\n\n// Utils\nimport isDateAllowed from './util/isDateAllowed'\nimport mixins from '../../util/mixins'\nimport { wrapInArray } from '../../util/helpers'\nimport { daysInMonth } from '../KCalendar/util/timestamp'\nimport { consoleWarn } from '../../util/console'\nimport {\n createItemTypeListeners,\n createNativeLocaleFormatter,\n pad,\n sanitizeDateString,\n} from './util'\n\n// Types\nimport {\n PropType,\n PropValidator,\n} from 'kdu/types/options'\nimport { KNode } from 'kdu'\nimport {\n DatePickerFormatter,\n DatePickerMultipleFormatter,\n DatePickerAllowedDatesFunction,\n DatePickerEventColors,\n DatePickerEvents,\n DatePickerType,\n} from 'kdutify/types'\n\ntype DatePickerValue = string | string[] | undefined\ninterface Formatters {\n year: DatePickerFormatter\n titleDate: DatePickerFormatter | DatePickerMultipleFormatter\n}\n\ntype ActivePicker = 'DATE' | 'MONTH' | 'YEAR';\n\nexport default mixins(\n Localable,\n Picker,\n/* @kdujs/component */\n).extend({\n name: 'k-date-picker',\n\n props: {\n activePicker: String as PropType<ActivePicker>,\n allowedDates: Function as PropType<DatePickerAllowedDatesFunction | undefined>,\n // Function formatting the day in date picker table\n dayFormat: Function as PropType<DatePickerAllowedDatesFunction | undefined>,\n disabled: Boolean,\n events: {\n type: [Array, Function, Object],\n default: () => null,\n } as PropValidator<DatePickerEvents | null>,\n eventColor: {\n type: [Array, Function, Object, String],\n default: () => 'warning',\n } as PropValidator<DatePickerEventColors>,\n firstDayOfWeek: {\n type: [String, Number],\n default: 0,\n },\n // Function formatting the tableDate in the day/month table header\n headerDateFormat: Function as PropType<DatePickerFormatter | undefined>,\n localeFirstDayOfYear: {\n type: [String, Number],\n default: 0,\n },\n max: String,\n min: String,\n // Function formatting month in the months table\n monthFormat: Function as PropType<DatePickerFormatter | undefined>,\n multiple: Boolean,\n nextIcon: {\n type: String,\n default: '$next',\n },\n nextMonthAriaLabel: {\n type: String,\n default: '$kdutify.datePicker.nextMonthAriaLabel',\n },\n nextYearAriaLabel: {\n type: String,\n default: '$kdutify.datePicker.nextYearAriaLabel',\n },\n pickerDate: String,\n prevIcon: {\n type: String,\n default: '$prev',\n },\n prevMonthAriaLabel: {\n type: String,\n default: '$kdutify.datePicker.prevMonthAriaLabel',\n },\n prevYearAriaLabel: {\n type: String,\n default: '$kdutify.datePicker.prevYearAriaLabel',\n },\n range: Boolean,\n reactive: Boolean,\n readonly: Boolean,\n scrollable: Boolean,\n showCurrent: {\n type: [Boolean, String],\n default: true,\n },\n selectedItemsText: {\n type: String,\n default: '$kdutify.datePicker.itemsSelected',\n },\n showAdjacentMonths: Boolean,\n showWeek: Boolean,\n // Function formatting currently selected date in the picker title\n titleDateFormat: Function as PropType<DatePickerFormatter | DatePickerMultipleFormatter | undefined>,\n type: {\n type: String,\n default: 'date',\n validator: (type: any) => ['date', 'month'].includes(type), // TODO: year\n } as PropValidator<DatePickerType>,\n value: [Array, String] as PropType<DatePickerValue>,\n weekdayFormat: Function as PropType<DatePickerFormatter | undefined>,\n // Function formatting the year in table header and pickup title\n yearFormat: Function as PropType<DatePickerFormatter | undefined>,\n yearIcon: String,\n },\n\n data () {\n const now = new Date()\n return {\n internalActivePicker: this.type.toUpperCase(),\n inputDay: null as number | null,\n inputMonth: null as number | null,\n inputYear: null as number | null,\n isReversing: false,\n now,\n // tableDate is a string in 'YYYY' / 'YYYY-M' format (leading zero for month is not required)\n tableDate: (() => {\n if (this.pickerDate) {\n return this.pickerDate\n }\n\n const multipleValue = wrapInArray(this.value)\n const date = multipleValue[multipleValue.length - 1] ||\n (typeof this.showCurrent === 'string' ? this.showCurrent : `${now.getFullYear()}-${now.getMonth() + 1}`)\n return sanitizeDateString(date as string, this.type === 'date' ? 'month' : 'year')\n })(),\n }\n },\n\n computed: {\n multipleValue (): string[] {\n return wrapInArray(this.value)\n },\n isMultiple (): boolean {\n return this.multiple || this.range\n },\n lastValue (): string | null {\n return this.isMultiple ? this.multipleValue[this.multipleValue.length - 1] : (this.value as string | null)\n },\n selectedMonths (): string | string[] | undefined {\n if (!this.value || this.type === 'month') {\n return this.value\n } else if (this.isMultiple) {\n return this.multipleValue.map(val => val.substr(0, 7))\n } else {\n return (this.value as string).substr(0, 7)\n }\n },\n current (): string | null {\n if (this.showCurrent === true) {\n return sanitizeDateString(`${this.now.getFullYear()}-${this.now.getMonth() + 1}-${this.now.getDate()}`, this.type)\n }\n\n return this.showCurrent || null\n },\n inputDate (): string {\n return this.type === 'date'\n ? `${this.inputYear}-${pad(this.inputMonth! + 1)}-${pad(this.inputDay!)}`\n : `${this.inputYear}-${pad(this.inputMonth! + 1)}`\n },\n tableMonth (): number {\n return Number((this.pickerDate || this.tableDate).split('-')[1]) - 1\n },\n tableYear (): number {\n return Number((this.pickerDate || this.tableDate).split('-')[0])\n },\n minMonth (): string | null {\n return this.min ? sanitizeDateString(this.min, 'month') : null\n },\n maxMonth (): string | null {\n return this.max ? sanitizeDateString(this.max, 'month') : null\n },\n minYear (): string | null {\n return this.min ? sanitizeDateString(this.min, 'year') : null\n },\n maxYear (): string | null {\n return this.max ? sanitizeDateString(this.max, 'year') : null\n },\n formatters (): Formatters {\n return {\n year: this.yearFormat || createNativeLocaleFormatter(this.currentLocale, { year: 'numeric', timeZone: 'UTC' }, { length: 4 }),\n titleDate: this.titleDateFormat ||\n (this.isMultiple ? this.defaultTitleMultipleDateFormatter : this.defaultTitleDateFormatter),\n }\n },\n defaultTitleMultipleDateFormatter (): DatePickerMultipleFormatter {\n return dates => {\n if (!dates.length) {\n return '-'\n }\n\n if (dates.length === 1) {\n return this.defaultTitleDateFormatter(dates[0])\n }\n\n return this.$kdutify.lang.t(this.selectedItemsText, dates.length)\n }\n },\n defaultTitleDateFormatter (): DatePickerFormatter {\n const titleFormats = {\n year: { year: 'numeric', timeZone: 'UTC' },\n month: { month: 'long', timeZone: 'UTC' },\n date: { weekday: 'short', month: 'short', day: 'numeric', timeZone: 'UTC' },\n } as const\n\n const titleDateFormatter = createNativeLocaleFormatter(this.currentLocale, titleFormats[this.type], {\n start: 0,\n length: { date: 10, month: 7, year: 4 }[this.type],\n })\n\n const landscapeFormatter = (date: string) => titleDateFormatter(date)\n .replace(/([^\\d\\s])([\\d])/g, (match, nonDigit, digit) => `${nonDigit} ${digit}`)\n .replace(', ', ',<br>')\n\n return this.landscape ? landscapeFormatter : titleDateFormatter\n },\n },\n\n watch: {\n internalActivePicker: {\n immediate: true,\n handler (val: ActivePicker) {\n this.$emit('update:active-picker', val)\n },\n },\n activePicker (val: ActivePicker) {\n this.internalActivePicker = val\n },\n tableDate (val: string, prev: string) {\n // Make a ISO 8601 strings from val and prev for comparision, otherwise it will incorrectly\n // compare for example '2000-9' and '2000-10'\n const sanitizeType = this.type === 'month' ? 'year' : 'month'\n this.isReversing = sanitizeDateString(val, sanitizeType) < sanitizeDateString(prev, sanitizeType)\n this.$emit('update:picker-date', val)\n },\n pickerDate (val: string | null) {\n if (val) {\n this.tableDate = val\n } else if (this.lastValue && this.type === 'date') {\n this.tableDate = sanitizeDateString(this.lastValue, 'month')\n } else if (this.lastValue && this.type === 'month') {\n this.tableDate = sanitizeDateString(this.lastValue, 'year')\n }\n },\n value (newValue: DatePickerValue, oldValue: DatePickerValue) {\n this.checkMultipleProp()\n this.setInputDate()\n\n if (\n (!this.isMultiple && this.value && !this.pickerDate) ||\n (this.isMultiple && this.multipleValue.length && (!oldValue || !oldValue.length) && !this.pickerDate)\n ) {\n this.tableDate = sanitizeDateString(this.inputDate, this.type === 'month' ? 'year' : 'month')\n }\n },\n type (type: DatePickerType) {\n this.internalActivePicker = type.toUpperCase()\n\n if (this.value && this.value.length) {\n const output = this.multipleValue\n .map((val: string) => sanitizeDateString(val, type))\n .filter(this.isDateAllowed)\n this.$emit('input', this.isMultiple ? output : output[0])\n }\n },\n },\n\n created () {\n this.checkMultipleProp()\n\n if (this.pickerDate !== this.tableDate) {\n this.$emit('update:picker-date', this.tableDate)\n }\n this.setInputDate()\n },\n\n methods: {\n emitInput (newInput: string) {\n if (this.range) {\n if (this.multipleValue.length !== 1) {\n this.$emit('input', [newInput])\n } else {\n const output = [this.multipleValue[0], newInput]\n this.$emit('input', output)\n this.$emit('change', output)\n }\n return\n }\n\n const output = this.multiple\n ? (\n this.multipleValue.indexOf(newInput) === -1\n ? this.multipleValue.concat([newInput])\n : this.multipleValue.filter(x => x !== newInput)\n )\n : newInput\n\n this.$emit('input', output)\n this.multiple || this.$emit('change', newInput)\n },\n checkMultipleProp () {\n if (this.value == null) return\n const valueType = this.value.constructor.name\n const expected = this.isMultiple ? 'Array' : 'String'\n if (valueType !== expected) {\n consoleWarn(`Value must be ${this.isMultiple ? 'an' : 'a'} ${expected}, got ${valueType}`, this)\n }\n },\n isDateAllowed (value: string): boolean {\n return isDateAllowed(value, this.min, this.max, this.allowedDates)\n },\n yearClick (value: number) {\n this.inputYear = value\n if (this.type === 'month') {\n this.tableDate = `${value}`\n } else {\n this.tableDate = `${value}-${pad((this.tableMonth || 0) + 1)}`\n }\n this.internalActivePicker = 'MONTH'\n if (this.reactive && !this.readonly && !this.isMultiple && this.isDateAllowed(this.inputDate)) {\n this.$emit('input', this.inputDate)\n }\n },\n monthClick (value: string) {\n const [year, month] = value.split('-')\n\n this.inputYear = parseInt(year, 10)\n this.inputMonth = parseInt(month, 10) - 1\n\n if (this.type === 'date') {\n if (this.inputDay) {\n this.inputDay = Math.min(this.inputDay, daysInMonth(this.inputYear, this.inputMonth + 1))\n }\n\n this.tableDate = value\n this.internalActivePicker = 'DATE'\n if (this.reactive && !this.readonly && !this.isMultiple && this.isDateAllowed(this.inputDate)) {\n this.$emit('input', this.inputDate)\n }\n } else {\n this.emitInput(this.inputDate)\n }\n },\n dateClick (value: string) {\n const [year, month, day] = value.split('-')\n\n this.inputYear = parseInt(year, 10)\n this.inputMonth = parseInt(month, 10) - 1\n this.inputDay = parseInt(day, 10)\n\n this.emitInput(this.inputDate)\n },\n genPickerTitle (): KNode {\n return this.$createElement(KDatePickerTitle, {\n props: {\n date: this.value ? (this.formatters.titleDate as (value: any) => string)(this.isMultiple ? this.multipleValue : this.value) : '',\n disabled: this.disabled,\n readonly: this.readonly,\n selectingYear: this.internalActivePicker === 'YEAR',\n year: this.formatters.year(this.multipleValue.length ? `${this.inputYear}` : this.tableDate),\n yearIcon: this.yearIcon,\n value: this.multipleValue[0],\n },\n slot: 'title',\n on: {\n 'update:selecting-year': (value: boolean) => this.internalActivePicker = value ? 'YEAR' : this.type.toUpperCase(),\n },\n })\n },\n genTableHeader (): KNode {\n return this.$createElement(KDatePickerHeader, {\n props: {\n nextIcon: this.nextIcon,\n color: this.color,\n dark: this.dark,\n disabled: this.disabled,\n format: this.headerDateFormat,\n light: this.light,\n locale: this.locale,\n min: this.internalActivePicker === 'DATE' ? this.minMonth : this.minYear,\n max: this.internalActivePicker === 'DATE' ? this.maxMonth : this.maxYear,\n nextAriaLabel: this.internalActivePicker === 'DATE' ? this.nextMonthAriaLabel : this.nextYearAriaLabel,\n prevAriaLabel: this.internalActivePicker === 'DATE' ? this.prevMonthAriaLabel : this.prevYearAriaLabel,\n prevIcon: this.prevIcon,\n readonly: this.readonly,\n value: this.internalActivePicker === 'DATE' ? `${pad(this.tableYear, 4)}-${pad(this.tableMonth + 1)}` : `${pad(this.tableYear, 4)}`,\n },\n on: {\n toggle: () => this.internalActivePicker = (this.internalActivePicker === 'DATE' ? 'MONTH' : 'YEAR'),\n input: (value: string) => this.tableDate = value,\n },\n })\n },\n genDateTable (): KNode {\n return this.$createElement(KDatePickerDateTable, {\n props: {\n allowedDates: this.allowedDates,\n color: this.color,\n current: this.current,\n dark: this.dark,\n disabled: this.disabled,\n events: this.events,\n eventColor: this.eventColor,\n firstDayOfWeek: this.firstDayOfWeek,\n format: this.dayFormat,\n light: this.light,\n locale: this.locale,\n localeFirstDayOfYear: this.localeFirstDayOfYear,\n min: this.min,\n max: this.max,\n range: this.range,\n readonly: this.readonly,\n scrollable: this.scrollable,\n showAdjacentMonths: this.showAdjacentMonths,\n showWeek: this.showWeek,\n tableDate: `${pad(this.tableYear, 4)}-${pad(this.tableMonth + 1)}`,\n value: this.value,\n weekdayFormat: this.weekdayFormat,\n },\n ref: 'table',\n on: {\n input: this.dateClick,\n 'update:table-date': (value: string) => this.tableDate = value,\n ...createItemTypeListeners(this, ':date'),\n },\n })\n },\n genMonthTable (): KNode {\n return this.$createElement(KDatePickerMonthTable, {\n props: {\n allowedDates: this.type === 'month' ? this.allowedDates : null,\n color: this.color,\n current: this.current ? sanitizeDateString(this.current, 'month') : null,\n dark: this.dark,\n disabled: this.disabled,\n events: this.type === 'month' ? this.events : null,\n eventColor: this.type === 'month' ? this.eventColor : null,\n format: this.monthFormat,\n light: this.light,\n locale: this.locale,\n min: this.minMonth,\n max: this.maxMonth,\n range: this.range,\n readonly: this.readonly && this.type === 'month',\n scrollable: this.scrollable,\n value: this.selectedMonths,\n tableDate: `${pad(this.tableYear, 4)}`,\n },\n ref: 'table',\n on: {\n input: this.monthClick,\n 'update:table-date': (value: string) => this.tableDate = value,\n ...createItemTypeListeners(this, ':month'),\n },\n })\n },\n genYears (): KNode {\n return this.$createElement(KDatePickerYears, {\n props: {\n color: this.color,\n format: this.yearFormat,\n locale: this.locale,\n min: this.minYear,\n max: this.maxYear,\n value: this.tableYear,\n },\n on: {\n input: this.yearClick,\n ...createItemTypeListeners(this, ':year'),\n },\n })\n },\n genPickerBody (): KNode {\n const children = this.internalActivePicker === 'YEAR' ? [\n this.genYears(),\n ] : [\n this.genTableHeader(),\n this.internalActivePicker === 'DATE' ? this.genDateTable() : this.genMonthTable(),\n ]\n\n return this.$createElement('div', {\n key: this.internalActivePicker,\n }, children)\n },\n setInputDate () {\n if (this.lastValue) {\n const array = this.lastValue.split('-')\n this.inputYear = parseInt(array[0], 10)\n this.inputMonth = parseInt(array[1], 10) - 1\n if (this.type === 'date') {\n this.inputDay = parseInt(array[2], 10)\n }\n } else {\n this.inputYear = this.inputYear || this.now.getFullYear()\n this.inputMonth = this.inputMonth == null ? this.inputMonth : this.now.getMonth()\n this.inputDay = this.inputDay || this.now.getDate()\n }\n },\n },\n\n render (): KNode {\n return this.genPicker('k-picker--date')\n },\n})\n"],"sourceRoot":"","file":"KDatePicker.js"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
// Mixins
|
|
2
|
-
import DatePickerTable from './mixins/date-picker-table';
|
|
3
|
-
|
|
2
|
+
import DatePickerTable from './mixins/date-picker-table';
|
|
3
|
+
// Utils
|
|
4
4
|
import { weekNumber } from '../../util/dateTimeUtils';
|
|
5
5
|
import { pad, createNativeLocaleFormatter, monthChange } from './util';
|
|
6
6
|
import { createRange } from '../../util/helpers';
|
|
7
7
|
import mixins from '../../util/mixins';
|
|
8
8
|
export default mixins(DatePickerTable
|
|
9
|
-
/* @kdujs/component */
|
|
10
|
-
).extend({
|
|
9
|
+
/* @kdujs/component */).extend({
|
|
11
10
|
name: 'k-date-picker-date-table',
|
|
12
11
|
props: {
|
|
13
12
|
firstDayOfWeek: {
|
|
@@ -32,113 +31,89 @@ export default mixins(DatePickerTable
|
|
|
32
31
|
length: 2
|
|
33
32
|
});
|
|
34
33
|
},
|
|
35
|
-
|
|
36
34
|
weekdayFormatter() {
|
|
37
35
|
return this.weekdayFormat || createNativeLocaleFormatter(this.currentLocale, {
|
|
38
36
|
weekday: 'narrow',
|
|
39
37
|
timeZone: 'UTC'
|
|
40
38
|
});
|
|
41
39
|
},
|
|
42
|
-
|
|
43
40
|
weekDays() {
|
|
44
41
|
const first = parseInt(this.firstDayOfWeek, 10);
|
|
45
42
|
return this.weekdayFormatter ? createRange(7).map(i => this.weekdayFormatter(`2017-01-${first + i + 15}`)) // 2017-01-15 is Sunday
|
|
46
43
|
: createRange(7).map(i => ['S', 'M', 'T', 'W', 'T', 'F', 'S'][(i + first) % 7]);
|
|
47
44
|
}
|
|
48
|
-
|
|
49
45
|
},
|
|
50
46
|
methods: {
|
|
51
47
|
calculateTableDate(delta) {
|
|
52
48
|
return monthChange(this.tableDate, Math.sign(delta || 1));
|
|
53
49
|
},
|
|
54
|
-
|
|
55
50
|
genTHead() {
|
|
56
51
|
const days = this.weekDays.map(day => this.$createElement('th', day));
|
|
57
|
-
|
|
58
52
|
if (this.showWeek) {
|
|
59
53
|
days.unshift(this.$createElement('th'));
|
|
60
54
|
}
|
|
61
|
-
|
|
62
55
|
return this.$createElement('thead', this.genTR(days));
|
|
63
56
|
},
|
|
64
|
-
|
|
65
57
|
// Returns number of the days from the firstDayOfWeek to the first day of the current month
|
|
66
58
|
weekDaysBeforeFirstDayOfTheMonth() {
|
|
67
59
|
const firstDayOfTheMonth = new Date(`${this.displayedYear}-${pad(this.displayedMonth + 1)}-01T00:00:00+00:00`);
|
|
68
60
|
const weekDay = firstDayOfTheMonth.getUTCDay();
|
|
69
61
|
return (weekDay - parseInt(this.firstDayOfWeek) + 7) % 7;
|
|
70
62
|
},
|
|
71
|
-
|
|
72
63
|
getWeekNumber(dayInMonth) {
|
|
73
64
|
return weekNumber(this.displayedYear, this.displayedMonth, dayInMonth, parseInt(this.firstDayOfWeek), parseInt(this.localeFirstDayOfYear));
|
|
74
65
|
},
|
|
75
|
-
|
|
76
66
|
genWeekNumber(weekNumber) {
|
|
77
67
|
return this.$createElement('td', [this.$createElement('small', {
|
|
78
68
|
staticClass: 'k-date-picker-table--date__week'
|
|
79
69
|
}, String(weekNumber).padStart(2, '0'))]);
|
|
80
70
|
},
|
|
81
|
-
|
|
82
71
|
// eslint-disable-next-line max-statements
|
|
83
72
|
genTBody() {
|
|
84
73
|
const children = [];
|
|
85
74
|
const daysInMonth = new Date(this.displayedYear, this.displayedMonth + 1, 0).getDate();
|
|
86
75
|
let rows = [];
|
|
87
76
|
let day = this.weekDaysBeforeFirstDayOfTheMonth();
|
|
88
|
-
|
|
89
77
|
if (this.showWeek) {
|
|
90
78
|
rows.push(this.genWeekNumber(this.getWeekNumber(1)));
|
|
91
79
|
}
|
|
92
|
-
|
|
93
80
|
const prevMonthYear = this.displayedMonth ? this.displayedYear : this.displayedYear - 1;
|
|
94
81
|
const prevMonth = (this.displayedMonth + 11) % 12;
|
|
95
82
|
const firstDayFromPreviousMonth = new Date(this.displayedYear, this.displayedMonth, 0).getDate();
|
|
96
83
|
const cellsInRow = this.showWeek ? 8 : 7;
|
|
97
|
-
|
|
98
84
|
while (day--) {
|
|
99
85
|
const date = `${prevMonthYear}-${pad(prevMonth + 1)}-${pad(firstDayFromPreviousMonth - day)}`;
|
|
100
86
|
rows.push(this.$createElement('td', this.showAdjacentMonths ? [this.genButton(date, true, 'date', this.formatter, true)] : []));
|
|
101
87
|
}
|
|
102
|
-
|
|
103
88
|
for (day = 1; day <= daysInMonth; day++) {
|
|
104
89
|
const date = `${this.displayedYear}-${pad(this.displayedMonth + 1)}-${pad(day)}`;
|
|
105
90
|
rows.push(this.$createElement('td', [this.genButton(date, true, 'date', this.formatter)]));
|
|
106
|
-
|
|
107
91
|
if (rows.length % cellsInRow === 0) {
|
|
108
92
|
children.push(this.genTR(rows));
|
|
109
93
|
rows = [];
|
|
110
|
-
|
|
111
94
|
if (this.showWeek && (day < daysInMonth || this.showAdjacentMonths)) {
|
|
112
95
|
rows.push(this.genWeekNumber(this.getWeekNumber(day + 7)));
|
|
113
96
|
}
|
|
114
97
|
}
|
|
115
98
|
}
|
|
116
|
-
|
|
117
99
|
const nextMonthYear = this.displayedMonth === 11 ? this.displayedYear + 1 : this.displayedYear;
|
|
118
100
|
const nextMonth = (this.displayedMonth + 1) % 12;
|
|
119
101
|
let nextMonthDay = 1;
|
|
120
|
-
|
|
121
102
|
while (rows.length < cellsInRow) {
|
|
122
103
|
const date = `${nextMonthYear}-${pad(nextMonth + 1)}-${pad(nextMonthDay++)}`;
|
|
123
104
|
rows.push(this.$createElement('td', this.showAdjacentMonths ? [this.genButton(date, true, 'date', this.formatter, true)] : []));
|
|
124
105
|
}
|
|
125
|
-
|
|
126
106
|
if (rows.length) {
|
|
127
107
|
children.push(this.genTR(rows));
|
|
128
108
|
}
|
|
129
|
-
|
|
130
109
|
return this.$createElement('tbody', children);
|
|
131
110
|
},
|
|
132
|
-
|
|
133
111
|
genTR(children) {
|
|
134
112
|
return [this.$createElement('tr', children)];
|
|
135
113
|
}
|
|
136
|
-
|
|
137
114
|
},
|
|
138
|
-
|
|
139
115
|
render() {
|
|
140
116
|
return this.genTable('k-date-picker-table k-date-picker-table--date', [this.genTHead(), this.genTBody()], this.calculateTableDate);
|
|
141
117
|
}
|
|
142
|
-
|
|
143
118
|
});
|
|
144
119
|
//# sourceMappingURL=KDatePickerDateTable.js.map
|