kdutify 2.6.0 → 2.7.2
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 +3226 -5789
- 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 +17 -34
- 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 +13 -17
- 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 +16 -35
- 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 +30 -77
- 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 +10 -19
- 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 +20 -35
- 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 +20 -34
- 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 +23 -31
- 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 +10 -19
- 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 +14 -22
- 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 +30 -58
- 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 +11 -17
- 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 +19 -43
- package/es5/components/KCalendar/KCalendarCategory.js.map +1 -1
- package/es5/components/KCalendar/KCalendarDaily.js +35 -44
- package/es5/components/KCalendar/KCalendarDaily.js.map +1 -1
- package/es5/components/KCalendar/KCalendarMonthly.js +2 -10
- package/es5/components/KCalendar/KCalendarMonthly.js.map +1 -1
- package/es5/components/KCalendar/KCalendarWeekly.js +39 -45
- 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 +56 -119
- 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 +39 -117
- 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 +17 -28
- 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 +16 -30
- 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 +17 -27
- package/es5/components/KCheckbox/KCheckbox.js.map +1 -1
- package/es5/components/KCheckbox/KSimpleCheckbox.js +17 -31
- 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 +26 -53
- 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 +12 -17
- 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 +14 -33
- package/es5/components/KColorPicker/KColorPicker.js.map +1 -1
- package/es5/components/KColorPicker/KColorPickerCanvas.js +6 -17
- package/es5/components/KColorPicker/KColorPickerCanvas.js.map +1 -1
- package/es5/components/KColorPicker/KColorPickerEdit.js +19 -37
- package/es5/components/KColorPicker/KColorPickerEdit.js.map +1 -1
- package/es5/components/KColorPicker/KColorPickerPreview.js +15 -23
- package/es5/components/KColorPicker/KColorPickerPreview.js.map +1 -1
- package/es5/components/KColorPicker/KColorPickerSwatches.js +5 -18
- 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 +39 -68
- 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 +10 -21
- 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 +7 -20
- 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 +144 -170
- package/es5/components/KDataTable/KDataTable.js.map +1 -1
- package/es5/components/KDataTable/KDataTableHeader.js +15 -24
- 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 +4 -22
- package/es5/components/KDataTable/KEditDialog.js.map +1 -1
- package/es5/components/KDataTable/KSimpleTable.js +10 -18
- package/es5/components/KDataTable/KSimpleTable.js.map +1 -1
- package/es5/components/KDataTable/KVirtualTable.js +5 -13
- 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 +21 -41
- 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 +3 -12
- package/es5/components/KDatePicker/KDatePickerTitle.js.map +1 -1
- package/es5/components/KDatePicker/KDatePickerYears.js +3 -19
- 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 +24 -59
- 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 +10 -22
- 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 +57 -96
- 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 +9 -16
- 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 +10 -16
- 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 +33 -61
- 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 +14 -21
- 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 +36 -65
- package/es5/components/KGrid/KCol.js.map +1 -1
- package/es5/components/KGrid/KContainer.js +6 -18
- package/es5/components/KGrid/KContainer.js.map +1 -1
- package/es5/components/KGrid/KFlex.js +2 -8
- package/es5/components/KGrid/KFlex.js.map +1 -1
- package/es5/components/KGrid/KLayout.js +2 -8
- package/es5/components/KGrid/KLayout.js.map +1 -1
- package/es5/components/KGrid/KRow.js +30 -61
- package/es5/components/KGrid/KRow.js.map +1 -1
- package/es5/components/KGrid/KSpacer.js +1 -6
- 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 +20 -48
- 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 +15 -37
- 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 +27 -36
- 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 +46 -57
- 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 +18 -28
- 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 +18 -26
- package/es5/components/KList/KList.js.map +1 -1
- package/es5/components/KList/KListGroup.js +21 -38
- package/es5/components/KList/KListGroup.js.map +1 -1
- package/es5/components/KList/KListItem.js +29 -44
- 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 +13 -18
- 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 +11 -17
- 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 +42 -92
- 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 +2 -12
- 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 +23 -54
- 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 +46 -116
- 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 +17 -27
- 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 +12 -18
- 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 +28 -48
- 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 +6 -15
- 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 +14 -24
- 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 +3 -14
- 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 +14 -34
- 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 +32 -47
- package/es5/components/KRadioGroup/KRadio.js.map +1 -1
- package/es5/components/KRadioGroup/KRadioGroup.js +14 -28
- 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 +24 -58
- 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 +10 -41
- 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 +4 -11
- 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 +143 -209
- 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 +12 -22
- 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 +45 -56
- 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 +88 -115
- 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 +41 -76
- 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 +19 -33
- 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 +0 -5
- package/es5/components/KSparkline/helpers/math.js.map +1 -1
- package/es5/components/KSparkline/helpers/path.js +0 -4
- 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 +14 -25
- 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 +13 -22
- 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 +12 -18
- 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 +20 -30
- 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 +11 -21
- 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 +28 -47
- 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 +38 -91
- 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 +14 -26
- 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 +20 -43
- package/es5/components/KTimePicker/KTimePickerClock.js.map +1 -1
- package/es5/components/KTimePicker/KTimePickerTitle.js +3 -17
- 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 +12 -18
- 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 +20 -35
- 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 +28 -50
- 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 +51 -135
- 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 +2 -10
- 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 +17 -40
- 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 +21 -85
- 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 +2 -9
- package/es5/mixins/binds-attrs/index.js.map +1 -1
- package/es5/mixins/bootable/index.js +2 -10
- 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 +2 -9
- 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 +4 -10
- 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 +3 -13
- 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 +2 -15
- 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 +2 -9
- 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 +3 -5
- 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 +22 -63
- 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 +42 -93
- 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 +0 -1
- package/es5/util/dedupeModelListeners.js.map +1 -1
- package/es5/util/dom.js +4 -9
- package/es5/util/dom.js.map +1 -1
- package/es5/util/helpers.js +74 -192
- 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 +2 -46
- 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 +8 -17
- package/lib/components/KCheckbox/KCheckbox.js.map +1 -1
- package/lib/components/KCheckbox/KSimpleCheckbox.js +9 -12
- package/lib/components/KCheckbox/KSimpleCheckbox.js.map +1 -1
- package/lib/components/KCheckbox/index.js.map +1 -1
- package/lib/components/KChip/KChip.js +10 -25
- 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 +3 -7
- 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 +2 -4
- 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 +8 -26
- package/lib/components/KGrid/KCol.js.map +1 -1
- package/lib/components/KGrid/KContainer.js +2 -9
- package/lib/components/KGrid/KContainer.js.map +1 -1
- package/lib/components/KGrid/KFlex.js.map +1 -1
- package/lib/components/KGrid/KLayout.js.map +1 -1
- package/lib/components/KGrid/KRow.js +6 -26
- package/lib/components/KGrid/KRow.js.map +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 +36 -61
- 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 +15 -76
- package/lib/components/KNavigationDrawer/KNavigationDrawer.js.map +1 -1
- package/lib/components/KNavigationDrawer/index.js.map +1 -1
- package/lib/components/KOtpInput/KOtpInput.js +38 -112
- 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 +19 -38
- 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 +8 -16
- 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 +18 -30
- package/lib/components/KRadioGroup/KRadio.js.map +1 -1
- package/lib/components/KRadioGroup/KRadioGroup.js +9 -21
- 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 +98 -173
- 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 +0 -2
- package/lib/components/KSparkline/helpers/math.js.map +1 -1
- package/lib/components/KSparkline/helpers/path.js +0 -3
- 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 +14 -23
- 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 +21 -40
- 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 +5 -10
- 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 +0 -5
- package/lib/mixins/binds-attrs/index.js.map +1 -1
- package/lib/mixins/bootable/index.js +2 -9
- 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 +0 -3
- 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 +2 -4
- 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 +2 -2
- 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 +4 -15
- 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 +0 -3
- 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 +0 -17
- 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 +2 -21
- 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.map +1 -1
- package/lib/util/dom.js +4 -6
- package/lib/util/dom.js.map +1 -1
- package/lib/util/helpers.js +26 -83
- 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 +37 -35
- 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 -2
- 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/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
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
// Styles
|
|
2
|
-
import "..\\..\\..\\src\\components\\KCalendar\\KCalendarDaily.sass";
|
|
3
|
-
|
|
4
|
-
import Resize from '../../directives/resize';
|
|
5
|
-
|
|
6
|
-
import KBtn from '../KBtn';
|
|
7
|
-
|
|
8
|
-
import CalendarWithIntervals from './mixins/calendar-with-intervals';
|
|
9
|
-
|
|
2
|
+
import "..\\..\\..\\src\\components\\KCalendar\\KCalendarDaily.sass";
|
|
3
|
+
// Directives
|
|
4
|
+
import Resize from '../../directives/resize';
|
|
5
|
+
// Components
|
|
6
|
+
import KBtn from '../KBtn';
|
|
7
|
+
// Mixins
|
|
8
|
+
import CalendarWithIntervals from './mixins/calendar-with-intervals';
|
|
9
|
+
// Util
|
|
10
10
|
import { convertToUnit, getSlot } from '../../util/helpers';
|
|
11
11
|
/* @kdujs/component */
|
|
12
|
-
|
|
13
12
|
export default CalendarWithIntervals.extend({
|
|
14
13
|
name: 'k-calendar-daily',
|
|
15
14
|
directives: {
|
|
@@ -25,28 +24,22 @@ export default CalendarWithIntervals.extend({
|
|
|
25
24
|
...this.themeClasses
|
|
26
25
|
};
|
|
27
26
|
}
|
|
28
|
-
|
|
29
27
|
},
|
|
30
|
-
|
|
31
28
|
mounted() {
|
|
32
29
|
this.init();
|
|
33
30
|
},
|
|
34
|
-
|
|
35
31
|
methods: {
|
|
36
32
|
init() {
|
|
37
33
|
this.$nextTick(this.onResize);
|
|
38
34
|
},
|
|
39
|
-
|
|
40
35
|
onResize() {
|
|
41
36
|
this.scrollPush = this.getScrollPush();
|
|
42
37
|
},
|
|
43
|
-
|
|
44
38
|
getScrollPush() {
|
|
45
39
|
const area = this.$refs.scrollArea;
|
|
46
40
|
const pane = this.$refs.pane;
|
|
47
41
|
return area && pane ? area.offsetWidth - pane.offsetWidth : 0;
|
|
48
42
|
},
|
|
49
|
-
|
|
50
43
|
genHead() {
|
|
51
44
|
return this.$createElement('div', {
|
|
52
45
|
staticClass: 'k-calendar-daily__head',
|
|
@@ -55,7 +48,6 @@ export default CalendarWithIntervals.extend({
|
|
|
55
48
|
}
|
|
56
49
|
}, [this.genHeadIntervals(), ...this.genHeadDays()]);
|
|
57
50
|
},
|
|
58
|
-
|
|
59
51
|
genHeadIntervals() {
|
|
60
52
|
const width = convertToUnit(this.intervalWidth);
|
|
61
53
|
return this.$createElement('div', {
|
|
@@ -65,22 +57,22 @@ export default CalendarWithIntervals.extend({
|
|
|
65
57
|
}
|
|
66
58
|
}, getSlot(this, 'interval-header'));
|
|
67
59
|
},
|
|
68
|
-
|
|
69
60
|
genHeadDays() {
|
|
70
61
|
return this.days.map(this.genHeadDay);
|
|
71
62
|
},
|
|
72
|
-
|
|
73
63
|
genHeadDay(day, index) {
|
|
74
64
|
return this.$createElement('div', {
|
|
75
65
|
key: day.date,
|
|
76
66
|
staticClass: 'k-calendar-daily_head-day',
|
|
77
67
|
class: this.getRelativeClasses(day),
|
|
78
|
-
on: this.getDefaultMouseEventHandlers(':day',
|
|
79
|
-
return
|
|
68
|
+
on: this.getDefaultMouseEventHandlers(':day', nativeEvent => {
|
|
69
|
+
return {
|
|
70
|
+
nativeEvent,
|
|
71
|
+
...this.getSlotScope(day)
|
|
72
|
+
};
|
|
80
73
|
})
|
|
81
74
|
}, [this.genHeadWeekday(day), this.genHeadDayLabel(day), ...this.genDayHeader(day, index)]);
|
|
82
75
|
},
|
|
83
|
-
|
|
84
76
|
genDayHeader(day, index) {
|
|
85
77
|
return getSlot(this, 'day-header', () => ({
|
|
86
78
|
week: this.days,
|
|
@@ -88,20 +80,17 @@ export default CalendarWithIntervals.extend({
|
|
|
88
80
|
index
|
|
89
81
|
})) || [];
|
|
90
82
|
},
|
|
91
|
-
|
|
92
83
|
genHeadWeekday(day) {
|
|
93
84
|
const color = day.present ? this.color : undefined;
|
|
94
85
|
return this.$createElement('div', this.setTextColor(color, {
|
|
95
86
|
staticClass: 'k-calendar-daily_head-weekday'
|
|
96
87
|
}), this.weekdayFormatter(day, this.shortWeekdays));
|
|
97
88
|
},
|
|
98
|
-
|
|
99
89
|
genHeadDayLabel(day) {
|
|
100
90
|
return this.$createElement('div', {
|
|
101
91
|
staticClass: 'k-calendar-daily_head-day-label'
|
|
102
92
|
}, getSlot(this, 'day-label-header', day) || [this.genHeadDayButton(day)]);
|
|
103
93
|
},
|
|
104
|
-
|
|
105
94
|
genHeadDayButton(day) {
|
|
106
95
|
const color = day.present ? this.color : 'transparent';
|
|
107
96
|
return this.$createElement(KBtn, {
|
|
@@ -121,25 +110,25 @@ export default CalendarWithIntervals.extend({
|
|
|
121
110
|
prevent: true,
|
|
122
111
|
result: false
|
|
123
112
|
}
|
|
124
|
-
},
|
|
125
|
-
return
|
|
113
|
+
}, nativeEvent => {
|
|
114
|
+
return {
|
|
115
|
+
nativeEvent,
|
|
116
|
+
...day
|
|
117
|
+
};
|
|
126
118
|
})
|
|
127
119
|
}, this.dayFormatter(day, false));
|
|
128
120
|
},
|
|
129
|
-
|
|
130
121
|
genBody() {
|
|
131
122
|
return this.$createElement('div', {
|
|
132
123
|
staticClass: 'k-calendar-daily__body'
|
|
133
124
|
}, [this.genScrollArea()]);
|
|
134
125
|
},
|
|
135
|
-
|
|
136
126
|
genScrollArea() {
|
|
137
127
|
return this.$createElement('div', {
|
|
138
128
|
ref: 'scrollArea',
|
|
139
129
|
staticClass: 'k-calendar-daily__scroll-area'
|
|
140
130
|
}, [this.genPane()]);
|
|
141
131
|
},
|
|
142
|
-
|
|
143
132
|
genPane() {
|
|
144
133
|
return this.$createElement('div', {
|
|
145
134
|
ref: 'pane',
|
|
@@ -149,36 +138,33 @@ export default CalendarWithIntervals.extend({
|
|
|
149
138
|
}
|
|
150
139
|
}, [this.genDayContainer()]);
|
|
151
140
|
},
|
|
152
|
-
|
|
153
141
|
genDayContainer() {
|
|
154
142
|
return this.$createElement('div', {
|
|
155
143
|
staticClass: 'k-calendar-daily__day-container'
|
|
156
144
|
}, [this.genBodyIntervals(), ...this.genDays()]);
|
|
157
145
|
},
|
|
158
|
-
|
|
159
146
|
genDays() {
|
|
160
147
|
return this.days.map(this.genDay);
|
|
161
148
|
},
|
|
162
|
-
|
|
163
149
|
genDay(day, index) {
|
|
164
150
|
return this.$createElement('div', {
|
|
165
151
|
key: day.date,
|
|
166
152
|
staticClass: 'k-calendar-daily__day',
|
|
167
153
|
class: this.getRelativeClasses(day),
|
|
168
|
-
on: this.getDefaultMouseEventHandlers(':time',
|
|
169
|
-
return
|
|
154
|
+
on: this.getDefaultMouseEventHandlers(':time', nativeEvent => {
|
|
155
|
+
return {
|
|
156
|
+
nativeEvent,
|
|
157
|
+
...this.getSlotScope(this.getTimestampAtEvent(nativeEvent, day))
|
|
158
|
+
};
|
|
170
159
|
})
|
|
171
160
|
}, [...this.genDayIntervals(index), ...this.genDayBody(day)]);
|
|
172
161
|
},
|
|
173
|
-
|
|
174
162
|
genDayBody(day) {
|
|
175
163
|
return getSlot(this, 'day-body', () => this.getSlotScope(day)) || [];
|
|
176
164
|
},
|
|
177
|
-
|
|
178
165
|
genDayIntervals(index) {
|
|
179
166
|
return this.intervals[index].map(this.genDayInterval);
|
|
180
167
|
},
|
|
181
|
-
|
|
182
168
|
genDayInterval(interval) {
|
|
183
169
|
const height = convertToUnit(this.intervalHeight);
|
|
184
170
|
const styler = this.intervalStyle || this.intervalStyleDefault;
|
|
@@ -193,7 +179,6 @@ export default CalendarWithIntervals.extend({
|
|
|
193
179
|
const children = getSlot(this, 'interval', () => this.getSlotScope(interval));
|
|
194
180
|
return this.$createElement('div', data, children);
|
|
195
181
|
},
|
|
196
|
-
|
|
197
182
|
genBodyIntervals() {
|
|
198
183
|
const width = convertToUnit(this.intervalWidth);
|
|
199
184
|
const data = {
|
|
@@ -201,18 +186,19 @@ export default CalendarWithIntervals.extend({
|
|
|
201
186
|
style: {
|
|
202
187
|
width
|
|
203
188
|
},
|
|
204
|
-
on: this.getDefaultMouseEventHandlers(':interval',
|
|
205
|
-
return
|
|
189
|
+
on: this.getDefaultMouseEventHandlers(':interval', nativeEvent => {
|
|
190
|
+
return {
|
|
191
|
+
nativeEvent,
|
|
192
|
+
...this.getTimestampAtEvent(nativeEvent, this.parsedStart)
|
|
193
|
+
};
|
|
206
194
|
})
|
|
207
195
|
};
|
|
208
196
|
return this.$createElement('div', data, this.genIntervalLabels());
|
|
209
197
|
},
|
|
210
|
-
|
|
211
198
|
genIntervalLabels() {
|
|
212
199
|
if (!this.intervals.length) return null;
|
|
213
200
|
return this.intervals[0].map(this.genIntervalLabel);
|
|
214
201
|
},
|
|
215
|
-
|
|
216
202
|
genIntervalLabel(interval) {
|
|
217
203
|
const height = convertToUnit(this.intervalHeight);
|
|
218
204
|
const short = this.shortIntervals;
|
|
@@ -229,9 +215,7 @@ export default CalendarWithIntervals.extend({
|
|
|
229
215
|
staticClass: 'k-calendar-daily__interval-text'
|
|
230
216
|
}, label)]);
|
|
231
217
|
}
|
|
232
|
-
|
|
233
218
|
},
|
|
234
|
-
|
|
235
219
|
render(h) {
|
|
236
220
|
return h('div', {
|
|
237
221
|
class: this.classes,
|
|
@@ -249,6 +233,5 @@ export default CalendarWithIntervals.extend({
|
|
|
249
233
|
}]
|
|
250
234
|
}, [!this.hideHeader ? this.genHead() : '', this.genBody()]);
|
|
251
235
|
}
|
|
252
|
-
|
|
253
236
|
});
|
|
254
237
|
//# sourceMappingURL=KCalendarDaily.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/KCalendar/KCalendarDaily.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CAAD,IAAkB;AAC3B,UAAA,CAAC,CAAC,cAAF;AACD;AAHC,OAFU;AAOd,MAAA,UAAU,EAAE,CAAC;AACX,QAAA,SAAS,EAAE;AAAE,UAAA,KAAK,EAAE;AAAT,SADA;AAEX,QAAA,IAAI,EAAE,QAFK;AAGX,QAAA,KAAK,EAAE,KAAK;AAHD,OAAD;AAPE,KAAR,EAYL,CACD,CAAC,KAAK,UAAN,GAAmB,KAAK,OAAL,EAAnB,GAAoC,EADnC,EAED,KAAK,OAAL,EAFC,CAZK,CAAR;AAgBD;;AA7OyC,CAA7B,CAAf","sourcesContent":["// Styles\nimport './KCalendarDaily.sass'\n\n// Types\nimport { KNode } from 'kdu'\n\n// Directives\nimport Resize from '../../directives/resize'\n\n// Components\nimport KBtn from '../KBtn'\n\n// Mixins\nimport CalendarWithIntervals from './mixins/calendar-with-intervals'\n\n// Util\nimport { convertToUnit, getSlot } from '../../util/helpers'\nimport { CalendarTimestamp } from 'kdutify/types'\n\n/* @kdujs/component */\nexport default CalendarWithIntervals.extend({\n name: 'k-calendar-daily',\n\n directives: { Resize },\n\n data: () => ({\n scrollPush: 0,\n }),\n\n computed: {\n classes (): object {\n return {\n 'k-calendar-daily': true,\n ...this.themeClasses,\n }\n },\n },\n\n mounted () {\n this.init()\n },\n\n methods: {\n init () {\n this.$nextTick(this.onResize)\n },\n onResize () {\n this.scrollPush = this.getScrollPush()\n },\n getScrollPush (): number {\n const area = this.$refs.scrollArea as HTMLElement\n const pane = this.$refs.pane as HTMLElement\n\n return area && pane ? (area.offsetWidth - pane.offsetWidth) : 0\n },\n genHead (): KNode {\n return this.$createElement('div', {\n staticClass: 'k-calendar-daily__head',\n style: {\n marginRight: this.scrollPush + 'px',\n },\n }, [\n this.genHeadIntervals(),\n ...this.genHeadDays(),\n ])\n },\n genHeadIntervals (): KNode {\n const width: string | undefined = convertToUnit(this.intervalWidth)\n\n return this.$createElement('div', {\n staticClass: 'k-calendar-daily__intervals-head',\n style: {\n width,\n },\n }, getSlot(this, 'interval-header'))\n },\n genHeadDays (): KNode[] {\n return this.days.map(this.genHeadDay)\n },\n genHeadDay (day: CalendarTimestamp, index: number): KNode {\n return this.$createElement('div', {\n key: day.date,\n staticClass: 'k-calendar-daily_head-day',\n class: this.getRelativeClasses(day),\n on: this.getDefaultMouseEventHandlers(':day', _e => {\n return this.getSlotScope(day)\n }),\n }, [\n this.genHeadWeekday(day),\n this.genHeadDayLabel(day),\n ...this.genDayHeader(day, index),\n ])\n },\n genDayHeader (day: CalendarTimestamp, index: number): KNode[] {\n return getSlot(this, 'day-header', () => ({\n week: this.days, ...day, index,\n })) || []\n },\n genHeadWeekday (day: CalendarTimestamp): KNode {\n const color = day.present ? this.color : undefined\n\n return this.$createElement('div', this.setTextColor(color, {\n staticClass: 'k-calendar-daily_head-weekday',\n }), this.weekdayFormatter(day, this.shortWeekdays))\n },\n genHeadDayLabel (day: CalendarTimestamp): KNode {\n return this.$createElement('div', {\n staticClass: 'k-calendar-daily_head-day-label',\n }, getSlot(this, 'day-label-header', day) || [this.genHeadDayButton(day)])\n },\n genHeadDayButton (day: CalendarTimestamp): KNode {\n const color = day.present ? this.color : 'transparent'\n\n return this.$createElement(KBtn, {\n props: {\n color,\n fab: true,\n depressed: true,\n },\n on: this.getMouseEventHandlers({\n 'click:date': { event: 'click', stop: true },\n 'contextmenu:date': { event: 'contextmenu', stop: true, prevent: true, result: false },\n }, _e => {\n return day\n }),\n }, this.dayFormatter(day, false))\n },\n genBody (): KNode {\n return this.$createElement('div', {\n staticClass: 'k-calendar-daily__body',\n }, [\n this.genScrollArea(),\n ])\n },\n genScrollArea (): KNode {\n return this.$createElement('div', {\n ref: 'scrollArea',\n staticClass: 'k-calendar-daily__scroll-area',\n }, [\n this.genPane(),\n ])\n },\n genPane (): KNode {\n return this.$createElement('div', {\n ref: 'pane',\n staticClass: 'k-calendar-daily__pane',\n style: {\n height: convertToUnit(this.bodyHeight),\n },\n }, [\n this.genDayContainer(),\n ])\n },\n genDayContainer (): KNode {\n return this.$createElement('div', {\n staticClass: 'k-calendar-daily__day-container',\n }, [\n this.genBodyIntervals(),\n ...this.genDays(),\n ])\n },\n genDays (): KNode[] {\n return this.days.map(this.genDay)\n },\n genDay (day: CalendarTimestamp, index: number): KNode {\n return this.$createElement('div', {\n key: day.date,\n staticClass: 'k-calendar-daily__day',\n class: this.getRelativeClasses(day),\n on: this.getDefaultMouseEventHandlers(':time', e => {\n return this.getSlotScope(this.getTimestampAtEvent(e, day))\n }),\n }, [\n ...this.genDayIntervals(index),\n ...this.genDayBody(day),\n ])\n },\n genDayBody (day: CalendarTimestamp): KNode[] {\n return getSlot(this, 'day-body', () => this.getSlotScope(day)) || []\n },\n genDayIntervals (index: number): KNode[] {\n return this.intervals[index].map(this.genDayInterval)\n },\n genDayInterval (interval: CalendarTimestamp): KNode {\n const height: string | undefined = convertToUnit(this.intervalHeight)\n const styler = this.intervalStyle || this.intervalStyleDefault\n\n const data = {\n key: interval.time,\n staticClass: 'k-calendar-daily__day-interval',\n style: {\n height,\n ...styler(interval),\n },\n }\n\n const children = getSlot(this, 'interval', () => this.getSlotScope(interval))\n\n return this.$createElement('div', data, children)\n },\n genBodyIntervals (): KNode {\n const width: string | undefined = convertToUnit(this.intervalWidth)\n const data = {\n staticClass: 'k-calendar-daily__intervals-body',\n style: {\n width,\n },\n on: this.getDefaultMouseEventHandlers(':interval', e => {\n return this.getTimestampAtEvent(e, this.parsedStart)\n }),\n }\n\n return this.$createElement('div', data, this.genIntervalLabels())\n },\n genIntervalLabels (): KNode[] | null {\n if (!this.intervals.length) return null\n\n return this.intervals[0].map(this.genIntervalLabel)\n },\n genIntervalLabel (interval: CalendarTimestamp): KNode {\n const height: string | undefined = convertToUnit(this.intervalHeight)\n const short: boolean = this.shortIntervals\n const shower = this.showIntervalLabel || this.showIntervalLabelDefault\n const show = shower(interval)\n const label = show ? this.intervalFormatter(interval, short) : undefined\n\n return this.$createElement('div', {\n key: interval.time,\n staticClass: 'k-calendar-daily__interval',\n style: {\n height,\n },\n }, [\n this.$createElement('div', {\n staticClass: 'k-calendar-daily__interval-text',\n }, label),\n ])\n },\n },\n\n render (h): KNode {\n return h('div', {\n class: this.classes,\n on: {\n dragstart: (e: MouseEvent) => {\n e.preventDefault()\n },\n },\n directives: [{\n modifiers: { quiet: true },\n name: 'resize',\n value: this.onResize,\n }],\n }, [\n !this.hideHeader ? this.genHead() : '',\n this.genBody(),\n ])\n },\n})\n"],"sourceRoot":"","file":"KCalendarDaily.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/KCalendar/KCalendarDaily.ts"],"names":[],"mappings":"AAAA;AACA,OAAO,6DAAuB;AAK9B;AACA,OAAO,MAAM,MAAM,yBAAyB;AAE5C;AACA,OAAO,IAAI,MAAM,SAAS;AAE1B;AACA,OAAO,qBAAqB,MAAM,kCAAkC;AAEpE;AACA,SAAS,aAAa,EAAE,OAAO,QAAQ,oBAAoB;AAG3D;AACA,eAAe,qBAAqB,CAAC,MAAM,CAAC;EAC1C,IAAI,EAAE,kBAAkB;EAExB,UAAU,EAAE;IAAE;EAAM,CAAE;EAEtB,IAAI,EAAE,CAAA,MAAO;IACX,UAAU,EAAE;GACb,CAAC;EAEF,QAAQ,EAAE;IACR,OAAO,CAAA,EAAA;MACL,OAAO;QACL,kBAAkB,EAAE,IAAI;QACxB,GAAG,IAAI,CAAC;OACT;IACH;GACD;EAED,OAAO,CAAA,EAAA;IACL,IAAI,CAAC,IAAI,CAAA,CAAE;EACb,CAAC;EAED,OAAO,EAAE;IACP,IAAI,CAAA,EAAA;MACF,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;IAC/B,CAAC;IACD,QAAQ,CAAA,EAAA;MACN,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,aAAa,CAAA,CAAE;IACxC,CAAC;IACD,aAAa,CAAA,EAAA;MACX,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,UAAyB;MACjD,MAAM,IAAI,GAAG,IAAI,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AAE;OACd,EAAE,KAAK,CAAC,CACV,CAAC;IACJ;GACD;EAED,MAAM,CAAE,CAAC,EAAA;IACP,OAAO,CAAC,CAAC,KAAK,EAAE;MACd,KAAK,EAAE,IAAI,CAAC,OAAO;MACnB,EAAE,EAAE;QACF,SAAS,EAAG,CAAa,IAAI;UAC3B,CAAC,CAAC,cAAc,CAAA,CAAE;QACpB;OACD;MACD,UAAU,EAAE,CAAC;QACX,SAAS,EAAE;UAAE,KAAK,EAAE;QAAI,CAAE;QAC1B,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,IAAI,CAAC;OACb;KACF,EAAE,CACD,CAAC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,OAAO,CAAA,CAAE,GAAG,EAAE,EACtC,IAAI,CAAC,OAAO,CAAA,CAAE,CACf,CAAC;EACJ;CACD,CAAC","sourcesContent":["// Styles\nimport './KCalendarDaily.sass'\n\n// Types\nimport { KNode } from 'kdu'\n\n// Directives\nimport Resize from '../../directives/resize'\n\n// Components\nimport KBtn from '../KBtn'\n\n// Mixins\nimport CalendarWithIntervals from './mixins/calendar-with-intervals'\n\n// Util\nimport { convertToUnit, getSlot } from '../../util/helpers'\nimport { CalendarTimestamp } from 'kdutify/types'\n\n/* @kdujs/component */\nexport default CalendarWithIntervals.extend({\n name: 'k-calendar-daily',\n\n directives: { Resize },\n\n data: () => ({\n scrollPush: 0,\n }),\n\n computed: {\n classes (): object {\n return {\n 'k-calendar-daily': true,\n ...this.themeClasses,\n }\n },\n },\n\n mounted () {\n this.init()\n },\n\n methods: {\n init () {\n this.$nextTick(this.onResize)\n },\n onResize () {\n this.scrollPush = this.getScrollPush()\n },\n getScrollPush (): number {\n const area = this.$refs.scrollArea as HTMLElement\n const pane = this.$refs.pane as HTMLElement\n\n return area && pane ? (area.offsetWidth - pane.offsetWidth) : 0\n },\n genHead (): KNode {\n return this.$createElement('div', {\n staticClass: 'k-calendar-daily__head',\n style: {\n marginRight: this.scrollPush + 'px',\n },\n }, [\n this.genHeadIntervals(),\n ...this.genHeadDays(),\n ])\n },\n genHeadIntervals (): KNode {\n const width: string | undefined = convertToUnit(this.intervalWidth)\n\n return this.$createElement('div', {\n staticClass: 'k-calendar-daily__intervals-head',\n style: {\n width,\n },\n }, getSlot(this, 'interval-header'))\n },\n genHeadDays (): KNode[] {\n return this.days.map(this.genHeadDay)\n },\n genHeadDay (day: CalendarTimestamp, index: number): KNode {\n return this.$createElement('div', {\n key: day.date,\n staticClass: 'k-calendar-daily_head-day',\n class: this.getRelativeClasses(day),\n on: this.getDefaultMouseEventHandlers(':day', nativeEvent => {\n return { nativeEvent, ...this.getSlotScope(day) }\n }),\n }, [\n this.genHeadWeekday(day),\n this.genHeadDayLabel(day),\n ...this.genDayHeader(day, index),\n ])\n },\n genDayHeader (day: CalendarTimestamp, index: number): KNode[] {\n return getSlot(this, 'day-header', () => ({\n week: this.days, ...day, index,\n })) || []\n },\n genHeadWeekday (day: CalendarTimestamp): KNode {\n const color = day.present ? this.color : undefined\n\n return this.$createElement('div', this.setTextColor(color, {\n staticClass: 'k-calendar-daily_head-weekday',\n }), this.weekdayFormatter(day, this.shortWeekdays))\n },\n genHeadDayLabel (day: CalendarTimestamp): KNode {\n return this.$createElement('div', {\n staticClass: 'k-calendar-daily_head-day-label',\n }, getSlot(this, 'day-label-header', day) || [this.genHeadDayButton(day)])\n },\n genHeadDayButton (day: CalendarTimestamp): KNode {\n const color = day.present ? this.color : 'transparent'\n\n return this.$createElement(KBtn, {\n props: {\n color,\n fab: true,\n depressed: true,\n },\n on: this.getMouseEventHandlers({\n 'click:date': { event: 'click', stop: true },\n 'contextmenu:date': { event: 'contextmenu', stop: true, prevent: true, result: false },\n }, nativeEvent => {\n return { nativeEvent, ...day }\n }),\n }, this.dayFormatter(day, false))\n },\n genBody (): KNode {\n return this.$createElement('div', {\n staticClass: 'k-calendar-daily__body',\n }, [\n this.genScrollArea(),\n ])\n },\n genScrollArea (): KNode {\n return this.$createElement('div', {\n ref: 'scrollArea',\n staticClass: 'k-calendar-daily__scroll-area',\n }, [\n this.genPane(),\n ])\n },\n genPane (): KNode {\n return this.$createElement('div', {\n ref: 'pane',\n staticClass: 'k-calendar-daily__pane',\n style: {\n height: convertToUnit(this.bodyHeight),\n },\n }, [\n this.genDayContainer(),\n ])\n },\n genDayContainer (): KNode {\n return this.$createElement('div', {\n staticClass: 'k-calendar-daily__day-container',\n }, [\n this.genBodyIntervals(),\n ...this.genDays(),\n ])\n },\n genDays (): KNode[] {\n return this.days.map(this.genDay)\n },\n genDay (day: CalendarTimestamp, index: number): KNode {\n return this.$createElement('div', {\n key: day.date,\n staticClass: 'k-calendar-daily__day',\n class: this.getRelativeClasses(day),\n on: this.getDefaultMouseEventHandlers(':time', nativeEvent => {\n return { nativeEvent, ...this.getSlotScope(this.getTimestampAtEvent(nativeEvent, day)) }\n }),\n }, [\n ...this.genDayIntervals(index),\n ...this.genDayBody(day),\n ])\n },\n genDayBody (day: CalendarTimestamp): KNode[] {\n return getSlot(this, 'day-body', () => this.getSlotScope(day)) || []\n },\n genDayIntervals (index: number): KNode[] {\n return this.intervals[index].map(this.genDayInterval)\n },\n genDayInterval (interval: CalendarTimestamp): KNode {\n const height: string | undefined = convertToUnit(this.intervalHeight)\n const styler = this.intervalStyle || this.intervalStyleDefault\n\n const data = {\n key: interval.time,\n staticClass: 'k-calendar-daily__day-interval',\n style: {\n height,\n ...styler(interval),\n },\n\n }\n\n const children = getSlot(this, 'interval', () => this.getSlotScope(interval))\n\n return this.$createElement('div', data, children)\n },\n genBodyIntervals (): KNode {\n const width: string | undefined = convertToUnit(this.intervalWidth)\n const data = {\n staticClass: 'k-calendar-daily__intervals-body',\n style: {\n width,\n },\n on: this.getDefaultMouseEventHandlers(':interval', nativeEvent => {\n return { nativeEvent, ...this.getTimestampAtEvent(nativeEvent, this.parsedStart) }\n }),\n }\n\n return this.$createElement('div', data, this.genIntervalLabels())\n },\n genIntervalLabels (): KNode[] | null {\n if (!this.intervals.length) return null\n\n return this.intervals[0].map(this.genIntervalLabel)\n },\n genIntervalLabel (interval: CalendarTimestamp): KNode {\n const height: string | undefined = convertToUnit(this.intervalHeight)\n const short: boolean = this.shortIntervals\n const shower = this.showIntervalLabel || this.showIntervalLabelDefault\n const show = shower(interval)\n const label = show ? this.intervalFormatter(interval, short) : undefined\n\n return this.$createElement('div', {\n key: interval.time,\n staticClass: 'k-calendar-daily__interval',\n style: {\n height,\n },\n }, [\n this.$createElement('div', {\n staticClass: 'k-calendar-daily__interval-text',\n }, label),\n ])\n },\n },\n\n render (h): KNode {\n return h('div', {\n class: this.classes,\n on: {\n dragstart: (e: MouseEvent) => {\n e.preventDefault()\n },\n },\n directives: [{\n modifiers: { quiet: true },\n name: 'resize',\n value: this.onResize,\n }],\n }, [\n !this.hideHeader ? this.genHead() : '',\n this.genBody(),\n ])\n },\n})\n"],"sourceRoot":"","file":"KCalendarDaily.js"}
|
|
@@ -1,26 +1,22 @@
|
|
|
1
1
|
// Styles
|
|
2
|
-
import "..\\..\\..\\src\\components\\KCalendar\\KCalendarWeekly.sass";
|
|
3
|
-
|
|
4
|
-
import KCalendarWeekly from './KCalendarWeekly';
|
|
5
|
-
|
|
2
|
+
import "..\\..\\..\\src\\components\\KCalendar\\KCalendarWeekly.sass";
|
|
3
|
+
// Mixins
|
|
4
|
+
import KCalendarWeekly from './KCalendarWeekly';
|
|
5
|
+
// Util
|
|
6
6
|
import { parseTimestamp, getStartOfMonth, getEndOfMonth } from './util/timestamp';
|
|
7
7
|
/* @kdujs/component */
|
|
8
|
-
|
|
9
8
|
export default KCalendarWeekly.extend({
|
|
10
9
|
name: 'k-calendar-monthly',
|
|
11
10
|
computed: {
|
|
12
11
|
staticClass() {
|
|
13
12
|
return 'k-calendar-monthly k-calendar-weekly';
|
|
14
13
|
},
|
|
15
|
-
|
|
16
14
|
parsedStart() {
|
|
17
15
|
return getStartOfMonth(parseTimestamp(this.start, true));
|
|
18
16
|
},
|
|
19
|
-
|
|
20
17
|
parsedEnd() {
|
|
21
18
|
return getEndOfMonth(parseTimestamp(this.end, true));
|
|
22
19
|
}
|
|
23
|
-
|
|
24
20
|
}
|
|
25
21
|
});
|
|
26
22
|
//# sourceMappingURL=KCalendarMonthly.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/KCalendar/KCalendarMonthly.ts"],"names":[],"mappings":"AAAA;AACA,OAAO,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/KCalendar/KCalendarMonthly.ts"],"names":[],"mappings":"AAAA;AACA,OAAO,8DAAwB;AAE/B;AACA,OAAO,eAAe,MAAM,mBAAmB;AAE/C;AACA,SAAS,cAAc,EAAE,eAAe,EAAE,aAAa,QAAQ,kBAAkB;AAGjF;AACA,eAAe,eAAe,CAAC,MAAM,CAAC;EACpC,IAAI,EAAE,oBAAoB;EAE1B,QAAQ,EAAE;IACR,WAAW,CAAA,EAAA;MACT,OAAO,sCAAsC;IAC/C,CAAC;IACD,WAAW,CAAA,EAAA;MACT,OAAO,eAAe,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;IACD,SAAS,CAAA,EAAA;MACP,OAAO,aAAa,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IACtD;EACD;CAEF,CAAC","sourcesContent":["// Styles\nimport './KCalendarWeekly.sass'\n\n// Mixins\nimport KCalendarWeekly from './KCalendarWeekly'\n\n// Util\nimport { parseTimestamp, getStartOfMonth, getEndOfMonth } from './util/timestamp'\nimport { CalendarTimestamp } from 'kdutify/types'\n\n/* @kdujs/component */\nexport default KCalendarWeekly.extend({\n name: 'k-calendar-monthly',\n\n computed: {\n staticClass (): string {\n return 'k-calendar-monthly k-calendar-weekly'\n },\n parsedStart (): CalendarTimestamp {\n return getStartOfMonth(parseTimestamp(this.start, true))\n },\n parsedEnd (): CalendarTimestamp {\n return getEndOfMonth(parseTimestamp(this.end, true))\n },\n },\n\n})\n"],"sourceRoot":"","file":"KCalendarMonthly.js"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
// Styles
|
|
2
|
-
import "..\\..\\..\\src\\components\\KCalendar\\KCalendarWeekly.sass";
|
|
3
|
-
|
|
4
|
-
import KBtn from '../KBtn';
|
|
5
|
-
|
|
6
|
-
import CalendarBase from './mixins/calendar-base';
|
|
7
|
-
|
|
2
|
+
import "..\\..\\..\\src\\components\\KCalendar\\KCalendarWeekly.sass";
|
|
3
|
+
// Components
|
|
4
|
+
import KBtn from '../KBtn';
|
|
5
|
+
// Mixins
|
|
6
|
+
import CalendarBase from './mixins/calendar-base';
|
|
7
|
+
// Util
|
|
8
8
|
import { getSlot } from '../../util/helpers';
|
|
9
9
|
import { weekNumber } from '../../util/dateTimeUtils';
|
|
10
10
|
import props from './util/props';
|
|
11
11
|
import { createDayList, getDayIdentifier, createNativeLocaleFormatter } from './util/timestamp';
|
|
12
12
|
/* @kdujs/component */
|
|
13
|
-
|
|
14
13
|
export default CalendarBase.extend({
|
|
15
14
|
name: 'k-calendar-weekly',
|
|
16
15
|
props: props.weeks,
|
|
@@ -18,34 +17,28 @@ export default CalendarBase.extend({
|
|
|
18
17
|
staticClass() {
|
|
19
18
|
return 'k-calendar-weekly';
|
|
20
19
|
},
|
|
21
|
-
|
|
22
20
|
classes() {
|
|
23
21
|
return this.themeClasses;
|
|
24
22
|
},
|
|
25
|
-
|
|
26
23
|
parsedMinWeeks() {
|
|
27
24
|
return parseInt(this.minWeeks);
|
|
28
25
|
},
|
|
29
|
-
|
|
30
26
|
days() {
|
|
31
27
|
const minDays = this.parsedMinWeeks * this.parsedWeekdays.length;
|
|
32
28
|
const start = this.getStartOfWeek(this.parsedStart);
|
|
33
29
|
const end = this.getEndOfWeek(this.parsedEnd);
|
|
34
30
|
return createDayList(start, end, this.times.today, this.weekdaySkips, Number.MAX_SAFE_INTEGER, minDays);
|
|
35
31
|
},
|
|
36
|
-
|
|
37
32
|
todayWeek() {
|
|
38
33
|
const today = this.times.today;
|
|
39
34
|
const start = this.getStartOfWeek(today);
|
|
40
35
|
const end = this.getEndOfWeek(today);
|
|
41
36
|
return createDayList(start, end, today, this.weekdaySkips, this.parsedWeekdays.length, this.parsedWeekdays.length);
|
|
42
37
|
},
|
|
43
|
-
|
|
44
38
|
monthFormatter() {
|
|
45
39
|
if (this.monthFormat) {
|
|
46
40
|
return this.monthFormat;
|
|
47
41
|
}
|
|
48
|
-
|
|
49
42
|
const longOptions = {
|
|
50
43
|
timeZone: 'UTC',
|
|
51
44
|
month: 'long'
|
|
@@ -56,84 +49,86 @@ export default CalendarBase.extend({
|
|
|
56
49
|
};
|
|
57
50
|
return createNativeLocaleFormatter(this.currentLocale, (_tms, short) => short ? shortOptions : longOptions);
|
|
58
51
|
}
|
|
59
|
-
|
|
60
52
|
},
|
|
61
53
|
methods: {
|
|
62
54
|
isOutside(day) {
|
|
63
55
|
const dayIdentifier = getDayIdentifier(day);
|
|
64
56
|
return dayIdentifier < getDayIdentifier(this.parsedStart) || dayIdentifier > getDayIdentifier(this.parsedEnd);
|
|
65
57
|
},
|
|
66
|
-
|
|
67
58
|
genHead() {
|
|
68
59
|
return this.$createElement('div', {
|
|
69
|
-
staticClass: 'k-calendar-weekly__head'
|
|
60
|
+
staticClass: 'k-calendar-weekly__head',
|
|
61
|
+
attrs: {
|
|
62
|
+
role: 'row'
|
|
63
|
+
}
|
|
70
64
|
}, this.genHeadDays());
|
|
71
65
|
},
|
|
72
|
-
|
|
73
66
|
genHeadDays() {
|
|
74
67
|
const header = this.todayWeek.map(this.genHeadDay);
|
|
75
|
-
|
|
76
68
|
if (this.showWeek) {
|
|
77
69
|
header.unshift(this.$createElement('div', {
|
|
78
70
|
staticClass: 'k-calendar-weekly__head-weeknumber'
|
|
79
71
|
}));
|
|
80
72
|
}
|
|
81
|
-
|
|
82
73
|
return header;
|
|
83
74
|
},
|
|
84
|
-
|
|
85
75
|
genHeadDay(day, index) {
|
|
86
76
|
const outside = this.isOutside(this.days[index]);
|
|
87
77
|
const color = day.present ? this.color : undefined;
|
|
88
78
|
return this.$createElement('div', this.setTextColor(color, {
|
|
89
79
|
key: day.date,
|
|
90
80
|
staticClass: 'k-calendar-weekly__head-weekday',
|
|
91
|
-
class: this.getRelativeClasses(day, outside)
|
|
81
|
+
class: this.getRelativeClasses(day, outside),
|
|
82
|
+
attrs: {
|
|
83
|
+
role: 'columnheader'
|
|
84
|
+
}
|
|
92
85
|
}), this.weekdayFormatter(day, this.shortWeekdays));
|
|
93
86
|
},
|
|
94
|
-
|
|
95
87
|
genWeeks() {
|
|
96
88
|
const days = this.days;
|
|
97
89
|
const weekDays = this.parsedWeekdays.length;
|
|
98
90
|
const weeks = [];
|
|
99
|
-
|
|
100
91
|
for (let i = 0; i < days.length; i += weekDays) {
|
|
101
92
|
weeks.push(this.genWeek(days.slice(i, i + weekDays), this.getWeekNumber(days[i])));
|
|
102
93
|
}
|
|
103
|
-
|
|
104
94
|
return weeks;
|
|
105
95
|
},
|
|
106
|
-
|
|
107
96
|
genWeek(week, weekNumber) {
|
|
108
97
|
const weekNodes = week.map((day, index) => this.genDay(day, index, week));
|
|
109
|
-
|
|
110
98
|
if (this.showWeek) {
|
|
111
99
|
weekNodes.unshift(this.genWeekNumber(weekNumber));
|
|
112
100
|
}
|
|
113
|
-
|
|
114
101
|
return this.$createElement('div', {
|
|
115
102
|
key: week[0].date,
|
|
116
|
-
staticClass: 'k-calendar-weekly__week'
|
|
103
|
+
staticClass: 'k-calendar-weekly__week',
|
|
104
|
+
attrs: {
|
|
105
|
+
role: 'row'
|
|
106
|
+
}
|
|
117
107
|
}, weekNodes);
|
|
118
108
|
},
|
|
119
|
-
|
|
120
109
|
getWeekNumber(determineDay) {
|
|
121
110
|
return weekNumber(determineDay.year, determineDay.month - 1, determineDay.day, this.parsedWeekdays[0], parseInt(this.localeFirstDayOfYear));
|
|
122
111
|
},
|
|
123
|
-
|
|
124
112
|
genWeekNumber(weekNumber) {
|
|
125
113
|
return this.$createElement('div', {
|
|
126
114
|
staticClass: 'k-calendar-weekly__weeknumber'
|
|
127
115
|
}, [this.$createElement('small', String(weekNumber))]);
|
|
128
116
|
},
|
|
129
|
-
|
|
130
117
|
genDay(day, index, week) {
|
|
131
118
|
const outside = this.isOutside(day);
|
|
132
119
|
return this.$createElement('div', {
|
|
133
120
|
key: day.date,
|
|
134
121
|
staticClass: 'k-calendar-weekly__day',
|
|
135
122
|
class: this.getRelativeClasses(day, outside),
|
|
136
|
-
|
|
123
|
+
attrs: {
|
|
124
|
+
role: 'cell'
|
|
125
|
+
},
|
|
126
|
+
on: this.getDefaultMouseEventHandlers(':day', nativeEvent => {
|
|
127
|
+
return {
|
|
128
|
+
nativeEvent,
|
|
129
|
+
...day
|
|
130
|
+
};
|
|
131
|
+
})
|
|
137
132
|
}, [this.genDayLabel(day), ...(getSlot(this, 'day', () => ({
|
|
138
133
|
outside,
|
|
139
134
|
index,
|
|
@@ -141,13 +136,11 @@ export default CalendarBase.extend({
|
|
|
141
136
|
...day
|
|
142
137
|
})) || [])]);
|
|
143
138
|
},
|
|
144
|
-
|
|
145
139
|
genDayLabel(day) {
|
|
146
140
|
return this.$createElement('div', {
|
|
147
141
|
staticClass: 'k-calendar-weekly__day-label'
|
|
148
142
|
}, getSlot(this, 'day-label', day) || [this.genDayLabelButton(day)]);
|
|
149
143
|
},
|
|
150
|
-
|
|
151
144
|
genDayLabelButton(day) {
|
|
152
145
|
const color = day.present ? this.color : 'transparent';
|
|
153
146
|
const hasMonth = day.day === 1 && this.showMonthOnFirst;
|
|
@@ -169,19 +162,19 @@ export default CalendarBase.extend({
|
|
|
169
162
|
prevent: true,
|
|
170
163
|
result: false
|
|
171
164
|
}
|
|
172
|
-
},
|
|
165
|
+
}, nativeEvent => ({
|
|
166
|
+
nativeEvent,
|
|
167
|
+
...day
|
|
168
|
+
}))
|
|
173
169
|
}, hasMonth ? this.monthFormatter(day, this.shortMonths) + ' ' + this.dayFormatter(day, false) : this.dayFormatter(day, false));
|
|
174
170
|
},
|
|
175
|
-
|
|
176
171
|
genDayMonth(day) {
|
|
177
172
|
const color = day.present ? this.color : undefined;
|
|
178
173
|
return this.$createElement('div', this.setTextColor(color, {
|
|
179
174
|
staticClass: 'k-calendar-weekly__day-month'
|
|
180
175
|
}), getSlot(this, 'day-month', day) || this.monthFormatter(day, this.shortMonths));
|
|
181
176
|
}
|
|
182
|
-
|
|
183
177
|
},
|
|
184
|
-
|
|
185
178
|
render(h) {
|
|
186
179
|
return h('div', {
|
|
187
180
|
staticClass: this.staticClass,
|
|
@@ -193,6 +186,5 @@ export default CalendarBase.extend({
|
|
|
193
186
|
}
|
|
194
187
|
}, [!this.hideHeader ? this.genHead() : '', ...this.genWeeks()]);
|
|
195
188
|
}
|
|
196
|
-
|
|
197
189
|
});
|
|
198
190
|
//# sourceMappingURL=KCalendarWeekly.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/KCalendar/KCalendarWeekly.ts"],"names":[],"mappings":"AAAA;AACA,OAAO,8DAAP,C,CAKA;;AACA,OAAO,IAAP,MAAiB,SAAjB,C,CAEA;;AACA,OAAO,YAAP,MAAyB,wBAAzB,C,CAEA;;AACA,SAAS,OAAT,QAAwB,oBAAxB;AACA,SAAS,UAAT,QAA2B,0BAA3B;AACA,OAAO,KAAP,MAAkB,cAAlB;AACA,SACE,aADF,EAEE,gBAFF,EAGE,2BAHF,QAIO,kBAJP;AAOA;;AACA,eAAe,YAAY,CAAC,MAAb,CAAoB;AACjC,EAAA,IAAI,EAAE,mBAD2B;AAGjC,EAAA,KAAK,EAAE,KAAK,CAAC,KAHoB;AAKjC,EAAA,QAAQ,EAAE;AACR,IAAA,WAAW,GAAA;AACT,aAAO,mBAAP;AACD,KAHO;;AAIR,IAAA,OAAO,GAAA;AACL,aAAO,KAAK,YAAZ;AACD,KANO;;AAOR,IAAA,cAAc,GAAA;AACZ,aAAO,QAAQ,CAAC,KAAK,QAAN,CAAf;AACD,KATO;;AAUR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AACD;AAHC;AAHU,KAAR,EAQL,CACD,CAAC,KAAK,UAAN,GAAmB,KAAK,OAAL,EAAnB,GAAoC,EADnC,EAED,GAAG,KAAK,QAAL,EAFF,CARK,CAAR;AAYD;;AA9LgC,CAApB,CAAf","sourcesContent":["// Styles\nimport './KCalendarWeekly.sass'\n\n// Types\nimport { KNode } from 'kdu'\n\n// Components\nimport KBtn from '../KBtn'\n\n// Mixins\nimport CalendarBase from './mixins/calendar-base'\n\n// Util\nimport { getSlot } from '../../util/helpers'\nimport { weekNumber } from '../../util/dateTimeUtils'\nimport props from './util/props'\nimport {\n createDayList,\n getDayIdentifier,\n createNativeLocaleFormatter,\n} from './util/timestamp'\nimport { CalendarTimestamp, CalendarFormatter } from 'kdutify/types'\n\n/* @kdujs/component */\nexport default CalendarBase.extend({\n name: 'k-calendar-weekly',\n\n props: props.weeks,\n\n computed: {\n staticClass (): string {\n return 'k-calendar-weekly'\n },\n classes (): object {\n return this.themeClasses\n },\n parsedMinWeeks (): number {\n return parseInt(this.minWeeks)\n },\n days (): CalendarTimestamp[] {\n const minDays = this.parsedMinWeeks * this.parsedWeekdays.length\n const start = this.getStartOfWeek(this.parsedStart)\n const end = this.getEndOfWeek(this.parsedEnd)\n\n return createDayList(\n start,\n end,\n this.times.today,\n this.weekdaySkips,\n Number.MAX_SAFE_INTEGER,\n minDays\n )\n },\n todayWeek (): CalendarTimestamp[] {\n const today = this.times.today\n const start = this.getStartOfWeek(today)\n const end = this.getEndOfWeek(today)\n\n return createDayList(\n start,\n end,\n today,\n this.weekdaySkips,\n this.parsedWeekdays.length,\n this.parsedWeekdays.length\n )\n },\n monthFormatter (): CalendarFormatter {\n if (this.monthFormat) {\n return this.monthFormat as CalendarFormatter\n }\n\n const longOptions = { timeZone: 'UTC', month: 'long' }\n const shortOptions = { timeZone: 'UTC', month: 'short' }\n\n return createNativeLocaleFormatter(\n this.currentLocale,\n (_tms, short) => short ? shortOptions : longOptions\n )\n },\n },\n\n methods: {\n isOutside (day: CalendarTimestamp): boolean {\n const dayIdentifier = getDayIdentifier(day)\n\n return dayIdentifier < getDayIdentifier(this.parsedStart) ||\n dayIdentifier > getDayIdentifier(this.parsedEnd)\n },\n genHead (): KNode {\n return this.$createElement('div', {\n staticClass: 'k-calendar-weekly__head',\n }, this.genHeadDays())\n },\n genHeadDays (): KNode[] {\n const header = this.todayWeek.map(this.genHeadDay)\n\n if (this.showWeek) {\n header.unshift(this.$createElement('div', {\n staticClass: 'k-calendar-weekly__head-weeknumber',\n }))\n }\n\n return header\n },\n genHeadDay (day: CalendarTimestamp, index: number): KNode {\n const outside = this.isOutside(this.days[index])\n const color = day.present ? this.color : undefined\n\n return this.$createElement('div', this.setTextColor(color, {\n key: day.date,\n staticClass: 'k-calendar-weekly__head-weekday',\n class: this.getRelativeClasses(day, outside),\n }), this.weekdayFormatter(day, this.shortWeekdays))\n },\n genWeeks (): KNode[] {\n const days = this.days\n const weekDays = this.parsedWeekdays.length\n const weeks: KNode[] = []\n\n for (let i = 0; i < days.length; i += weekDays) {\n weeks.push(this.genWeek(days.slice(i, i + weekDays), this.getWeekNumber(days[i])))\n }\n\n return weeks\n },\n genWeek (week: CalendarTimestamp[], weekNumber: number): KNode {\n const weekNodes = week.map((day, index) => this.genDay(day, index, week))\n\n if (this.showWeek) {\n weekNodes.unshift(this.genWeekNumber(weekNumber))\n }\n\n return this.$createElement('div', {\n key: week[0].date,\n staticClass: 'k-calendar-weekly__week',\n }, weekNodes)\n },\n getWeekNumber (determineDay: CalendarTimestamp) {\n return weekNumber(\n determineDay.year,\n determineDay.month - 1,\n determineDay.day,\n this.parsedWeekdays[0],\n parseInt(this.localeFirstDayOfYear)\n )\n },\n genWeekNumber (weekNumber: number) {\n return this.$createElement('div', {\n staticClass: 'k-calendar-weekly__weeknumber',\n }, [\n this.$createElement('small', String(weekNumber)),\n ])\n },\n genDay (day: CalendarTimestamp, index: number, week: CalendarTimestamp[]): KNode {\n const outside = this.isOutside(day)\n\n return this.$createElement('div', {\n key: day.date,\n staticClass: 'k-calendar-weekly__day',\n class: this.getRelativeClasses(day, outside),\n on: this.getDefaultMouseEventHandlers(':day', _e => day),\n }, [\n this.genDayLabel(day),\n ...(getSlot(this, 'day', () => ({ outside, index, week, ...day })) || []),\n ])\n },\n genDayLabel (day: CalendarTimestamp): KNode {\n return this.$createElement('div', {\n staticClass: 'k-calendar-weekly__day-label',\n }, getSlot(this, 'day-label', day) || [this.genDayLabelButton(day)])\n },\n genDayLabelButton (day: CalendarTimestamp): KNode {\n const color = day.present ? this.color : 'transparent'\n const hasMonth = day.day === 1 && this.showMonthOnFirst\n\n return this.$createElement(KBtn, {\n props: {\n color,\n fab: true,\n depressed: true,\n small: true,\n },\n on: this.getMouseEventHandlers({\n 'click:date': { event: 'click', stop: true },\n 'contextmenu:date': { event: 'contextmenu', stop: true, prevent: true, result: false },\n }, _e => day),\n }, hasMonth\n ? this.monthFormatter(day, this.shortMonths) + ' ' + this.dayFormatter(day, false)\n : this.dayFormatter(day, false)\n )\n },\n genDayMonth (day: CalendarTimestamp): KNode | string {\n const color = day.present ? this.color : undefined\n\n return this.$createElement('div', this.setTextColor(color, {\n staticClass: 'k-calendar-weekly__day-month',\n }), getSlot(this, 'day-month', day) || this.monthFormatter(day, this.shortMonths))\n },\n },\n\n render (h): KNode {\n return h('div', {\n staticClass: this.staticClass,\n class: this.classes,\n on: {\n dragstart: (e: MouseEvent) => {\n e.preventDefault()\n },\n },\n }, [\n !this.hideHeader ? this.genHead() : '',\n ...this.genWeeks(),\n ])\n },\n})\n"],"sourceRoot":"","file":"KCalendarWeekly.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/KCalendar/KCalendarWeekly.ts"],"names":[],"mappings":"AAAA;AACA,OAAO,8DAAwB;AAK/B;AACA,OAAO,IAAI,MAAM,SAAS;AAE1B;AACA,OAAO,YAAY,MAAM,wBAAwB;AAEjD;AACA,SAAS,OAAO,QAAQ,oBAAoB;AAC5C,SAAS,UAAU,QAAQ,0BAA0B;A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I,CAAC,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE;QACzD,WAAW,EAAE;OACd,CAAC,EAAE,OAAO,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,CAAC,IAAI,IAAI,CAAC,cAAc,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IACpF;GACD;EAED,MAAM,CAAE,CAAC,EAAA;IACP,OAAO,CAAC,CAAC,KAAK,EAAE;MACd,WAAW,EAAE,IAAI,CAAC,WAAW;MAC7B,KAAK,EAAE,IAAI,CAAC,OAAO;MACnB,EAAE,EAAE;QACF,SAAS,EAAG,CAAa,IAAI;UAC3B,CAAC,CAAC,cAAc,CAAA,CAAE;QACpB;MACD;KACF,EAAE,CACD,CAAC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,OAAO,CAAA,CAAE,GAAG,EAAE,EACtC,GAAG,IAAI,CAAC,QAAQ,CAAA,CAAE,CACnB,CAAC;EACJ;CACD,CAAC","sourcesContent":["// Styles\nimport './KCalendarWeekly.sass'\n\n// Types\nimport { KNode } from 'kdu'\n\n// Components\nimport KBtn from '../KBtn'\n\n// Mixins\nimport CalendarBase from './mixins/calendar-base'\n\n// Util\nimport { getSlot } from '../../util/helpers'\nimport { weekNumber } from '../../util/dateTimeUtils'\nimport props from './util/props'\nimport {\n createDayList,\n getDayIdentifier,\n createNativeLocaleFormatter,\n} from './util/timestamp'\nimport { CalendarTimestamp, CalendarFormatter } from 'kdutify/types'\n\n/* @kdujs/component */\nexport default CalendarBase.extend({\n name: 'k-calendar-weekly',\n\n props: props.weeks,\n\n computed: {\n staticClass (): string {\n return 'k-calendar-weekly'\n },\n classes (): object {\n return this.themeClasses\n },\n parsedMinWeeks (): number {\n return parseInt(this.minWeeks)\n },\n days (): CalendarTimestamp[] {\n const minDays = this.parsedMinWeeks * this.parsedWeekdays.length\n const start = this.getStartOfWeek(this.parsedStart)\n const end = this.getEndOfWeek(this.parsedEnd)\n\n return createDayList(\n start,\n end,\n this.times.today,\n this.weekdaySkips,\n Number.MAX_SAFE_INTEGER,\n minDays\n )\n },\n todayWeek (): CalendarTimestamp[] {\n const today = this.times.today\n const start = this.getStartOfWeek(today)\n const end = this.getEndOfWeek(today)\n\n return createDayList(\n start,\n end,\n today,\n this.weekdaySkips,\n this.parsedWeekdays.length,\n this.parsedWeekdays.length\n )\n },\n monthFormatter (): CalendarFormatter {\n if (this.monthFormat) {\n return this.monthFormat as CalendarFormatter\n }\n\n const longOptions = { timeZone: 'UTC', month: 'long' }\n const shortOptions = { timeZone: 'UTC', month: 'short' }\n\n return createNativeLocaleFormatter(\n this.currentLocale,\n (_tms, short) => short ? shortOptions : longOptions\n )\n },\n },\n\n methods: {\n isOutside (day: CalendarTimestamp): boolean {\n const dayIdentifier = getDayIdentifier(day)\n\n return dayIdentifier < getDayIdentifier(this.parsedStart) ||\n dayIdentifier > getDayIdentifier(this.parsedEnd)\n },\n genHead (): KNode {\n return this.$createElement('div', {\n staticClass: 'k-calendar-weekly__head',\n attrs: {\n role: 'row',\n },\n }, this.genHeadDays())\n },\n genHeadDays (): KNode[] {\n const header = this.todayWeek.map(this.genHeadDay)\n\n if (this.showWeek) {\n header.unshift(this.$createElement('div', {\n staticClass: 'k-calendar-weekly__head-weeknumber',\n }))\n }\n\n return header\n },\n genHeadDay (day: CalendarTimestamp, index: number): KNode {\n const outside = this.isOutside(this.days[index])\n const color = day.present ? this.color : undefined\n\n return this.$createElement('div', this.setTextColor(color, {\n key: day.date,\n staticClass: 'k-calendar-weekly__head-weekday',\n class: this.getRelativeClasses(day, outside),\n attrs: {\n role: 'columnheader',\n },\n }), this.weekdayFormatter(day, this.shortWeekdays))\n },\n genWeeks (): KNode[] {\n const days = this.days\n const weekDays = this.parsedWeekdays.length\n const weeks: KNode[] = []\n\n for (let i = 0; i < days.length; i += weekDays) {\n weeks.push(this.genWeek(days.slice(i, i + weekDays), this.getWeekNumber(days[i])))\n }\n\n return weeks\n },\n genWeek (week: CalendarTimestamp[], weekNumber: number): KNode {\n const weekNodes = week.map((day, index) => this.genDay(day, index, week))\n\n if (this.showWeek) {\n weekNodes.unshift(this.genWeekNumber(weekNumber))\n }\n\n return this.$createElement('div', {\n key: week[0].date,\n staticClass: 'k-calendar-weekly__week',\n attrs: {\n role: 'row',\n },\n }, weekNodes)\n },\n getWeekNumber (determineDay: CalendarTimestamp) {\n return weekNumber(\n determineDay.year,\n determineDay.month - 1,\n determineDay.day,\n this.parsedWeekdays[0],\n parseInt(this.localeFirstDayOfYear)\n )\n },\n genWeekNumber (weekNumber: number) {\n return this.$createElement('div', {\n staticClass: 'k-calendar-weekly__weeknumber',\n }, [\n this.$createElement('small', String(weekNumber)),\n ])\n },\n genDay (day: CalendarTimestamp, index: number, week: CalendarTimestamp[]): KNode {\n const outside = this.isOutside(day)\n\n return this.$createElement('div', {\n key: day.date,\n staticClass: 'k-calendar-weekly__day',\n class: this.getRelativeClasses(day, outside),\n attrs: {\n role: 'cell',\n },\n on: this.getDefaultMouseEventHandlers(':day', nativeEvent => {\n return { nativeEvent, ...day }\n }),\n }, [\n this.genDayLabel(day),\n ...(getSlot(this, 'day', () => ({ outside, index, week, ...day })) || []),\n ])\n },\n genDayLabel (day: CalendarTimestamp): KNode {\n return this.$createElement('div', {\n staticClass: 'k-calendar-weekly__day-label',\n }, getSlot(this, 'day-label', day) || [this.genDayLabelButton(day)])\n },\n genDayLabelButton (day: CalendarTimestamp): KNode {\n const color = day.present ? this.color : 'transparent'\n const hasMonth = day.day === 1 && this.showMonthOnFirst\n\n return this.$createElement(KBtn, {\n props: {\n color,\n fab: true,\n depressed: true,\n small: true,\n },\n on: this.getMouseEventHandlers({\n 'click:date': { event: 'click', stop: true },\n 'contextmenu:date': { event: 'contextmenu', stop: true, prevent: true, result: false },\n }, nativeEvent => ({ nativeEvent, ...day })),\n }, hasMonth\n ? this.monthFormatter(day, this.shortMonths) + ' ' + this.dayFormatter(day, false)\n : this.dayFormatter(day, false)\n )\n },\n genDayMonth (day: CalendarTimestamp): KNode | string {\n const color = day.present ? this.color : undefined\n\n return this.$createElement('div', this.setTextColor(color, {\n staticClass: 'k-calendar-weekly__day-month',\n }), getSlot(this, 'day-month', day) || this.monthFormatter(day, this.shortMonths))\n },\n },\n\n render (h): KNode {\n return h('div', {\n staticClass: this.staticClass,\n class: this.classes,\n on: {\n dragstart: (e: MouseEvent) => {\n e.preventDefault()\n },\n },\n }, [\n !this.hideHeader ? this.genHead() : '',\n ...this.genWeeks(),\n ])\n },\n})\n"],"sourceRoot":"","file":"KCalendarWeekly.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/KCalendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/KCalendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa;AACnC,OAAO,cAAc,MAAM,kBAAkB;AAC7C,OAAO,eAAe,MAAM,mBAAmB;AAC/C,OAAO,gBAAgB,MAAM,oBAAoB;AACjD,OAAO,iBAAiB,MAAM,qBAAqB;AAEnD,SAAS,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB;AAExF,eAAe;EACb,uBAAuB,EAAE;IACvB,SAAS;IACT,iBAAiB;IACjB,cAAc;IACd,eAAe;IACf;EACD;CACF","sourcesContent":["import KCalendar from './KCalendar'\nimport KCalendarDaily from './KCalendarDaily'\nimport KCalendarWeekly from './KCalendarWeekly'\nimport KCalendarMonthly from './KCalendarMonthly'\nimport KCalendarCategory from './KCalendarCategory'\n\nexport { KCalendar, KCalendarCategory, KCalendarDaily, KCalendarWeekly, KCalendarMonthly }\n\nexport default {\n $_kdutify_subcomponents: {\n KCalendar,\n KCalendarCategory,\n KCalendarDaily,\n KCalendarWeekly,\n KCalendarMonthly,\n },\n}\n"],"sourceRoot":"","file":"index.js"}
|