kdutify 2.6.1 → 2.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/json/attributes.json +109 -125
- package/dist/json/tags.json +32 -36
- package/dist/json/web-types.json +353 -310
- package/dist/kdutify.css +249 -438
- package/dist/kdutify.css.map +1 -1
- package/dist/kdutify.js +3375 -5938
- package/dist/kdutify.js.map +1 -1
- package/dist/kdutify.min.css +4 -4
- package/dist/kdutify.min.js +3 -3
- package/es5/components/KAlert/KAlert.js +18 -35
- package/es5/components/KAlert/KAlert.js.map +1 -1
- package/es5/components/KAlert/index.js +2 -6
- package/es5/components/KAlert/index.js.map +1 -1
- package/es5/components/KApp/KApp.js +14 -18
- package/es5/components/KApp/KApp.js.map +1 -1
- package/es5/components/KApp/index.js +2 -6
- package/es5/components/KApp/index.js.map +1 -1
- package/es5/components/KAppBar/KAppBar.js +17 -36
- package/es5/components/KAppBar/KAppBar.js.map +1 -1
- package/es5/components/KAppBar/KAppBarNavIcon.js +13 -19
- package/es5/components/KAppBar/KAppBarNavIcon.js.map +1 -1
- package/es5/components/KAppBar/KAppBarTitle.js +5 -10
- package/es5/components/KAppBar/KAppBarTitle.js.map +1 -1
- package/es5/components/KAppBar/index.js +2 -8
- package/es5/components/KAppBar/index.js.map +1 -1
- package/es5/components/KAutocomplete/KAutocomplete.js +31 -78
- package/es5/components/KAutocomplete/KAutocomplete.js.map +1 -1
- package/es5/components/KAutocomplete/index.js +2 -6
- package/es5/components/KAutocomplete/index.js.map +1 -1
- package/es5/components/KAvatar/KAvatar.js +11 -20
- package/es5/components/KAvatar/KAvatar.js.map +1 -1
- package/es5/components/KAvatar/index.js +2 -6
- package/es5/components/KAvatar/index.js.map +1 -1
- package/es5/components/KBadge/KBadge.js +21 -36
- package/es5/components/KBadge/KBadge.js.map +1 -1
- package/es5/components/KBadge/index.js +2 -6
- package/es5/components/KBadge/index.js.map +1 -1
- package/es5/components/KBanner/KBanner.js +21 -35
- package/es5/components/KBanner/KBanner.js.map +1 -1
- package/es5/components/KBanner/index.js +2 -6
- package/es5/components/KBanner/index.js.map +1 -1
- package/es5/components/KBottomNavigation/KBottomNavigation.js +24 -32
- package/es5/components/KBottomNavigation/KBottomNavigation.js.map +1 -1
- package/es5/components/KBottomNavigation/index.js +2 -6
- package/es5/components/KBottomNavigation/index.js.map +1 -1
- package/es5/components/KBottomSheet/KBottomSheet.js +11 -20
- package/es5/components/KBottomSheet/KBottomSheet.js.map +1 -1
- package/es5/components/KBottomSheet/index.js +2 -6
- package/es5/components/KBottomSheet/index.js.map +1 -1
- package/es5/components/KBreadcrumbs/KBreadcrumbs.js +15 -23
- package/es5/components/KBreadcrumbs/KBreadcrumbs.js.map +1 -1
- package/es5/components/KBreadcrumbs/KBreadcrumbsDivider.js +1 -5
- package/es5/components/KBreadcrumbs/KBreadcrumbsDivider.js.map +1 -1
- package/es5/components/KBreadcrumbs/KBreadcrumbsItem.js +14 -20
- package/es5/components/KBreadcrumbs/KBreadcrumbsItem.js.map +1 -1
- package/es5/components/KBreadcrumbs/index.js +6 -12
- package/es5/components/KBreadcrumbs/index.js.map +1 -1
- package/es5/components/KBtn/KBtn.js +31 -59
- package/es5/components/KBtn/KBtn.js.map +1 -1
- package/es5/components/KBtn/index.js +2 -6
- package/es5/components/KBtn/index.js.map +1 -1
- package/es5/components/KBtnToggle/KBtnToggle.js +12 -18
- package/es5/components/KBtnToggle/KBtnToggle.js.map +1 -1
- package/es5/components/KBtnToggle/index.js +2 -6
- package/es5/components/KBtnToggle/index.js.map +1 -1
- package/es5/components/KCalendar/KCalendar.js +29 -73
- package/es5/components/KCalendar/KCalendar.js.map +1 -1
- package/es5/components/KCalendar/KCalendarCategory.js +20 -44
- package/es5/components/KCalendar/KCalendarCategory.js.map +1 -1
- package/es5/components/KCalendar/KCalendarDaily.js +36 -45
- package/es5/components/KCalendar/KCalendarDaily.js.map +1 -1
- package/es5/components/KCalendar/KCalendarMonthly.js +3 -11
- package/es5/components/KCalendar/KCalendarMonthly.js.map +1 -1
- package/es5/components/KCalendar/KCalendarWeekly.js +40 -46
- package/es5/components/KCalendar/KCalendarWeekly.js.map +1 -1
- package/es5/components/KCalendar/index.js +8 -16
- package/es5/components/KCalendar/index.js.map +1 -1
- package/es5/components/KCalendar/mixins/calendar-base.js +4 -20
- package/es5/components/KCalendar/mixins/calendar-base.js.map +1 -1
- package/es5/components/KCalendar/mixins/calendar-with-events.js +57 -120
- package/es5/components/KCalendar/mixins/calendar-with-events.js.map +1 -1
- package/es5/components/KCalendar/mixins/calendar-with-intervals.js +2 -19
- package/es5/components/KCalendar/mixins/calendar-with-intervals.js.map +1 -1
- package/es5/components/KCalendar/mixins/times.js +2 -8
- package/es5/components/KCalendar/mixins/times.js.map +1 -1
- package/es5/components/KCalendar/modes/column.js +1 -8
- package/es5/components/KCalendar/modes/column.js.map +1 -1
- package/es5/components/KCalendar/modes/common.js +15 -47
- package/es5/components/KCalendar/modes/common.js.map +1 -1
- package/es5/components/KCalendar/modes/index.js +1 -5
- package/es5/components/KCalendar/modes/index.js.map +1 -1
- package/es5/components/KCalendar/modes/stack.js +51 -129
- package/es5/components/KCalendar/modes/stack.js.map +1 -1
- package/es5/components/KCalendar/util/events.js +3 -9
- package/es5/components/KCalendar/util/events.js.map +1 -1
- package/es5/components/KCalendar/util/parser.js +8 -14
- package/es5/components/KCalendar/util/parser.js.map +1 -1
- package/es5/components/KCalendar/util/props.js +2 -20
- package/es5/components/KCalendar/util/props.js.map +1 -1
- package/es5/components/KCalendar/util/timestamp.js +64 -188
- package/es5/components/KCalendar/util/timestamp.js.map +1 -1
- package/es5/components/KCard/KCard.js +18 -29
- package/es5/components/KCard/KCard.js.map +1 -1
- package/es5/components/KCard/index.js +6 -15
- package/es5/components/KCard/index.js.map +1 -1
- package/es5/components/KCarousel/KCarousel.js +17 -31
- package/es5/components/KCarousel/KCarousel.js.map +1 -1
- package/es5/components/KCarousel/KCarouselItem.js +13 -22
- package/es5/components/KCarousel/KCarouselItem.js.map +1 -1
- package/es5/components/KCarousel/index.js +2 -7
- package/es5/components/KCarousel/index.js.map +1 -1
- package/es5/components/KCheckbox/KCheckbox.js +19 -29
- package/es5/components/KCheckbox/KCheckbox.js.map +1 -1
- package/es5/components/KCheckbox/KSimpleCheckbox.js +18 -32
- package/es5/components/KCheckbox/KSimpleCheckbox.js.map +1 -1
- package/es5/components/KCheckbox/index.js +2 -7
- package/es5/components/KCheckbox/index.js.map +1 -1
- package/es5/components/KChip/KChip.js +27 -54
- package/es5/components/KChip/KChip.js.map +1 -1
- package/es5/components/KChip/index.js +2 -6
- package/es5/components/KChip/index.js.map +1 -1
- package/es5/components/KChipGroup/KChipGroup.js +13 -18
- package/es5/components/KChipGroup/KChipGroup.js.map +1 -1
- package/es5/components/KChipGroup/index.js +2 -6
- package/es5/components/KChipGroup/index.js.map +1 -1
- package/es5/components/KColorPicker/KColorPicker.js +15 -34
- package/es5/components/KColorPicker/KColorPicker.js.map +1 -1
- package/es5/components/KColorPicker/KColorPickerCanvas.js +7 -18
- package/es5/components/KColorPicker/KColorPickerCanvas.js.map +1 -1
- package/es5/components/KColorPicker/KColorPickerEdit.js +20 -38
- package/es5/components/KColorPicker/KColorPickerEdit.js.map +1 -1
- package/es5/components/KColorPicker/KColorPickerPreview.js +16 -24
- package/es5/components/KColorPicker/KColorPickerPreview.js.map +1 -1
- package/es5/components/KColorPicker/KColorPickerSwatches.js +6 -19
- package/es5/components/KColorPicker/KColorPickerSwatches.js.map +1 -1
- package/es5/components/KColorPicker/index.js +6 -12
- package/es5/components/KColorPicker/index.js.map +1 -1
- package/es5/components/KColorPicker/util/index.js +18 -44
- package/es5/components/KColorPicker/util/index.js.map +1 -1
- package/es5/components/KCombobox/KCombobox.js +40 -69
- package/es5/components/KCombobox/KCombobox.js.map +1 -1
- package/es5/components/KCombobox/index.js +2 -6
- package/es5/components/KCombobox/index.js.map +1 -1
- package/es5/components/KContent/KContent.js +2 -10
- package/es5/components/KContent/KContent.js.map +1 -1
- package/es5/components/KContent/index.js +2 -6
- package/es5/components/KContent/index.js.map +1 -1
- package/es5/components/KCounter/KCounter.js +11 -22
- package/es5/components/KCounter/KCounter.js.map +1 -1
- package/es5/components/KCounter/index.js +2 -6
- package/es5/components/KCounter/index.js.map +1 -1
- package/es5/components/KData/KData.js +28 -71
- package/es5/components/KData/KData.js.map +1 -1
- package/es5/components/KData/index.js +2 -6
- package/es5/components/KData/index.js.map +1 -1
- package/es5/components/KDataIterator/KDataFooter.js +8 -21
- package/es5/components/KDataIterator/KDataFooter.js.map +1 -1
- package/es5/components/KDataIterator/KDataIterator.js +43 -83
- package/es5/components/KDataIterator/KDataIterator.js.map +1 -1
- package/es5/components/KDataIterator/index.js +6 -11
- package/es5/components/KDataIterator/index.js.map +1 -1
- package/es5/components/KDataTable/KDataTable.js +145 -171
- package/es5/components/KDataTable/KDataTable.js.map +1 -1
- package/es5/components/KDataTable/KDataTableHeader.js +16 -25
- package/es5/components/KDataTable/KDataTableHeader.js.map +1 -1
- package/es5/components/KDataTable/KDataTableHeaderDesktop.js +10 -42
- package/es5/components/KDataTable/KDataTableHeaderDesktop.js.map +1 -1
- package/es5/components/KDataTable/KDataTableHeaderMobile.js +7 -29
- package/es5/components/KDataTable/KDataTableHeaderMobile.js.map +1 -1
- package/es5/components/KDataTable/KEditDialog.js +5 -23
- package/es5/components/KDataTable/KEditDialog.js.map +1 -1
- package/es5/components/KDataTable/KSimpleTable.js +11 -19
- package/es5/components/KDataTable/KSimpleTable.js.map +1 -1
- package/es5/components/KDataTable/KVirtualTable.js +6 -14
- package/es5/components/KDataTable/KVirtualTable.js.map +1 -1
- package/es5/components/KDataTable/MobileRow.js +13 -23
- package/es5/components/KDataTable/MobileRow.js.map +1 -1
- package/es5/components/KDataTable/Row.js +14 -29
- package/es5/components/KDataTable/Row.js.map +1 -1
- package/es5/components/KDataTable/RowGroup.js +8 -23
- package/es5/components/KDataTable/RowGroup.js.map +1 -1
- package/es5/components/KDataTable/index.js +5 -14
- package/es5/components/KDataTable/index.js.map +1 -1
- package/es5/components/KDataTable/mixins/header.js +11 -22
- package/es5/components/KDataTable/mixins/header.js.map +1 -1
- package/es5/components/KDatePicker/KDatePicker.js +31 -57
- package/es5/components/KDatePicker/KDatePicker.js.map +1 -1
- package/es5/components/KDatePicker/KDatePickerDateTable.js +3 -29
- package/es5/components/KDatePicker/KDatePickerDateTable.js.map +1 -1
- package/es5/components/KDatePicker/KDatePickerHeader.js +22 -42
- package/es5/components/KDatePicker/KDatePickerHeader.js.map +1 -1
- package/es5/components/KDatePicker/KDatePickerMonthTable.js +3 -15
- package/es5/components/KDatePicker/KDatePickerMonthTable.js.map +1 -1
- package/es5/components/KDatePicker/KDatePickerTitle.js +4 -13
- package/es5/components/KDatePicker/KDatePickerTitle.js.map +1 -1
- package/es5/components/KDatePicker/KDatePickerYears.js +4 -20
- package/es5/components/KDatePicker/KDatePickerYears.js.map +1 -1
- package/es5/components/KDatePicker/index.js +8 -17
- package/es5/components/KDatePicker/index.js.map +1 -1
- package/es5/components/KDatePicker/mixins/date-picker-table.js +25 -60
- package/es5/components/KDatePicker/mixins/date-picker-table.js.map +1 -1
- package/es5/components/KDatePicker/util/createNativeLocaleFormatter.js +11 -25
- package/es5/components/KDatePicker/util/createNativeLocaleFormatter.js.map +1 -1
- package/es5/components/KDatePicker/util/eventHelpers.js +1 -5
- package/es5/components/KDatePicker/util/eventHelpers.js.map +1 -1
- package/es5/components/KDatePicker/util/index.js +5 -11
- package/es5/components/KDatePicker/util/index.js.map +1 -1
- package/es5/components/KDatePicker/util/isDateAllowed.js +0 -1
- package/es5/components/KDatePicker/util/isDateAllowed.js.map +1 -1
- package/es5/components/KDatePicker/util/monthChange.js +13 -25
- package/es5/components/KDatePicker/util/monthChange.js.map +1 -1
- package/es5/components/KDatePicker/util/pad.js +1 -9
- package/es5/components/KDatePicker/util/pad.js.map +1 -1
- package/es5/components/KDatePicker/util/sanitizeDateString.js +14 -25
- package/es5/components/KDatePicker/util/sanitizeDateString.js.map +1 -1
- package/es5/components/KDialog/KDialog.js +58 -97
- package/es5/components/KDialog/KDialog.js.map +1 -1
- package/es5/components/KDialog/index.js +2 -6
- package/es5/components/KDialog/index.js.map +1 -1
- package/es5/components/KDivider/KDivider.js +10 -17
- package/es5/components/KDivider/KDivider.js.map +1 -1
- package/es5/components/KDivider/index.js +2 -6
- package/es5/components/KDivider/index.js.map +1 -1
- package/es5/components/KExpansionPanel/KExpansionPanel.js +10 -19
- package/es5/components/KExpansionPanel/KExpansionPanel.js.map +1 -1
- package/es5/components/KExpansionPanel/KExpansionPanelContent.js +7 -16
- package/es5/components/KExpansionPanel/KExpansionPanelContent.js.map +1 -1
- package/es5/components/KExpansionPanel/KExpansionPanelHeader.js +15 -23
- package/es5/components/KExpansionPanel/KExpansionPanelHeader.js.map +1 -1
- package/es5/components/KExpansionPanel/KExpansionPanels.js +11 -17
- package/es5/components/KExpansionPanel/KExpansionPanels.js.map +1 -1
- package/es5/components/KExpansionPanel/index.js +8 -15
- package/es5/components/KExpansionPanel/index.js.map +1 -1
- package/es5/components/KFileInput/KFileInput.js +34 -62
- package/es5/components/KFileInput/KFileInput.js.map +1 -1
- package/es5/components/KFileInput/index.js +2 -6
- package/es5/components/KFileInput/index.js.map +1 -1
- package/es5/components/KFooter/KFooter.js +15 -22
- package/es5/components/KFooter/KFooter.js.map +1 -1
- package/es5/components/KFooter/index.js +2 -6
- package/es5/components/KFooter/index.js.map +1 -1
- package/es5/components/KForm/KForm.js +16 -37
- package/es5/components/KForm/KForm.js.map +1 -1
- package/es5/components/KForm/index.js +2 -6
- package/es5/components/KForm/index.js.map +1 -1
- package/es5/components/KGrid/KCol.js +37 -66
- package/es5/components/KGrid/KCol.js.map +1 -1
- package/es5/components/KGrid/KContainer.js +8 -20
- package/es5/components/KGrid/KContainer.js.map +1 -1
- package/es5/components/KGrid/KFlex.js +3 -9
- package/es5/components/KGrid/KFlex.js.map +1 -1
- package/es5/components/KGrid/KLayout.js +3 -9
- package/es5/components/KGrid/KLayout.js.map +1 -1
- package/es5/components/KGrid/KRow.js +31 -62
- package/es5/components/KGrid/KRow.js.map +1 -1
- package/es5/components/KGrid/KSpacer.js +2 -7
- package/es5/components/KGrid/KSpacer.js.map +1 -1
- package/es5/components/KGrid/grid.js +6 -12
- package/es5/components/KGrid/grid.js.map +1 -1
- package/es5/components/KGrid/index.js +14 -23
- package/es5/components/KGrid/index.js.map +1 -1
- package/es5/components/KHover/KHover.js +3 -19
- package/es5/components/KHover/KHover.js.map +1 -1
- package/es5/components/KHover/index.js +2 -6
- package/es5/components/KHover/index.js.map +1 -1
- package/es5/components/KIcon/KIcon.js +21 -49
- package/es5/components/KIcon/KIcon.js.map +1 -1
- package/es5/components/KIcon/index.js +2 -6
- package/es5/components/KIcon/index.js.map +1 -1
- package/es5/components/KImg/KImg.js +16 -38
- package/es5/components/KImg/KImg.js.map +1 -1
- package/es5/components/KImg/index.js +2 -6
- package/es5/components/KImg/index.js.map +1 -1
- package/es5/components/KInput/KInput.js +28 -37
- package/es5/components/KInput/KInput.js.map +1 -1
- package/es5/components/KInput/index.js +2 -6
- package/es5/components/KInput/index.js.map +1 -1
- package/es5/components/KItemGroup/KItem.js +21 -23
- package/es5/components/KItemGroup/KItem.js.map +1 -1
- package/es5/components/KItemGroup/KItemGroup.js +47 -58
- package/es5/components/KItemGroup/KItemGroup.js.map +1 -1
- package/es5/components/KItemGroup/index.js +2 -7
- package/es5/components/KItemGroup/index.js.map +1 -1
- package/es5/components/KLabel/KLabel.js +19 -29
- package/es5/components/KLabel/KLabel.js.map +1 -1
- package/es5/components/KLabel/index.js +2 -6
- package/es5/components/KLabel/index.js.map +1 -1
- package/es5/components/KLazy/KLazy.js +10 -17
- package/es5/components/KLazy/KLazy.js.map +1 -1
- package/es5/components/KLazy/index.js +2 -6
- package/es5/components/KLazy/index.js.map +1 -1
- package/es5/components/KList/KList.js +19 -27
- package/es5/components/KList/KList.js.map +1 -1
- package/es5/components/KList/KListGroup.js +22 -39
- package/es5/components/KList/KListGroup.js.map +1 -1
- package/es5/components/KList/KListItem.js +30 -45
- package/es5/components/KList/KListItem.js.map +1 -1
- package/es5/components/KList/KListItemAction.js +4 -10
- package/es5/components/KList/KListItemAction.js.map +1 -1
- package/es5/components/KList/KListItemAvatar.js +10 -16
- package/es5/components/KList/KListItemAvatar.js.map +1 -1
- package/es5/components/KList/KListItemGroup.js +14 -19
- package/es5/components/KList/KListItemGroup.js.map +1 -1
- package/es5/components/KList/KListItemIcon.js +3 -9
- package/es5/components/KList/KListItemIcon.js.map +1 -1
- package/es5/components/KList/index.js +15 -28
- package/es5/components/KList/index.js.map +1 -1
- package/es5/components/KMain/KMain.js +12 -18
- package/es5/components/KMain/KMain.js.map +1 -1
- package/es5/components/KMain/index.js +2 -6
- package/es5/components/KMain/index.js.map +1 -1
- package/es5/components/KMenu/KMenu.js +43 -93
- package/es5/components/KMenu/KMenu.js.map +1 -1
- package/es5/components/KMenu/index.js +2 -6
- package/es5/components/KMenu/index.js.map +1 -1
- package/es5/components/KMessages/KMessages.js +3 -13
- package/es5/components/KMessages/KMessages.js.map +1 -1
- package/es5/components/KMessages/index.js +2 -6
- package/es5/components/KMessages/index.js.map +1 -1
- package/es5/components/KNavigationDrawer/KNavigationDrawer.js +32 -63
- package/es5/components/KNavigationDrawer/KNavigationDrawer.js.map +1 -1
- package/es5/components/KNavigationDrawer/index.js +2 -6
- package/es5/components/KNavigationDrawer/index.js.map +1 -1
- package/es5/components/KOtpInput/KOtpInput.js +48 -118
- package/es5/components/KOtpInput/KOtpInput.js.map +1 -1
- package/es5/components/KOtpInput/index.js +2 -6
- package/es5/components/KOtpInput/index.js.map +1 -1
- package/es5/components/KOverflowBtn/KOverflowBtn.js +18 -28
- package/es5/components/KOverflowBtn/KOverflowBtn.js.map +1 -1
- package/es5/components/KOverflowBtn/index.js +2 -6
- package/es5/components/KOverflowBtn/index.js.map +1 -1
- package/es5/components/KOverlay/KOverlay.js +13 -19
- package/es5/components/KOverlay/KOverlay.js.map +1 -1
- package/es5/components/KOverlay/index.js +2 -6
- package/es5/components/KOverlay/index.js.map +1 -1
- package/es5/components/KPagination/KPagination.js +29 -49
- package/es5/components/KPagination/KPagination.js.map +1 -1
- package/es5/components/KPagination/index.js +2 -6
- package/es5/components/KPagination/index.js.map +1 -1
- package/es5/components/KParallax/KParallax.js +7 -16
- package/es5/components/KParallax/KParallax.js.map +1 -1
- package/es5/components/KParallax/index.js +2 -6
- package/es5/components/KParallax/index.js.map +1 -1
- package/es5/components/KPicker/KPicker.js +16 -26
- package/es5/components/KPicker/KPicker.js.map +1 -1
- package/es5/components/KPicker/index.js +2 -6
- package/es5/components/KPicker/index.js.map +1 -1
- package/es5/components/KProgressCircular/KProgressCircular.js +4 -15
- package/es5/components/KProgressCircular/KProgressCircular.js.map +1 -1
- package/es5/components/KProgressCircular/index.js +2 -6
- package/es5/components/KProgressCircular/index.js.map +1 -1
- package/es5/components/KProgressLinear/KProgressLinear.js +15 -35
- package/es5/components/KProgressLinear/KProgressLinear.js.map +1 -1
- package/es5/components/KProgressLinear/index.js +2 -6
- package/es5/components/KProgressLinear/index.js.map +1 -1
- package/es5/components/KRadioGroup/KRadio.js +33 -48
- package/es5/components/KRadioGroup/KRadio.js.map +1 -1
- package/es5/components/KRadioGroup/KRadioGroup.js +16 -30
- package/es5/components/KRadioGroup/KRadioGroup.js.map +1 -1
- package/es5/components/KRadioGroup/index.js +6 -11
- package/es5/components/KRadioGroup/index.js.map +1 -1
- package/es5/components/KRangeSlider/KRangeSlider.js +25 -59
- package/es5/components/KRangeSlider/KRangeSlider.js.map +1 -1
- package/es5/components/KRangeSlider/index.js +2 -6
- package/es5/components/KRangeSlider/index.js.map +1 -1
- package/es5/components/KRating/KRating.js +11 -42
- package/es5/components/KRating/KRating.js.map +1 -1
- package/es5/components/KRating/index.js +2 -6
- package/es5/components/KRating/index.js.map +1 -1
- package/es5/components/KResponsive/KResponsive.js +5 -12
- package/es5/components/KResponsive/KResponsive.js.map +1 -1
- package/es5/components/KResponsive/index.js +2 -6
- package/es5/components/KResponsive/index.js.map +1 -1
- package/es5/components/KSelect/KSelect.js +145 -211
- package/es5/components/KSelect/KSelect.js.map +1 -1
- package/es5/components/KSelect/KSelectList.js +33 -51
- package/es5/components/KSelect/KSelectList.js.map +1 -1
- package/es5/components/KSelect/index.js +2 -6
- package/es5/components/KSelect/index.js.map +1 -1
- package/es5/components/KSheet/KSheet.js +13 -23
- package/es5/components/KSheet/KSheet.js.map +1 -1
- package/es5/components/KSheet/index.js +2 -6
- package/es5/components/KSheet/index.js.map +1 -1
- package/es5/components/KSkeletonLoader/KSkeletonLoader.js +46 -57
- package/es5/components/KSkeletonLoader/KSkeletonLoader.js.map +1 -1
- package/es5/components/KSkeletonLoader/index.js +2 -6
- package/es5/components/KSkeletonLoader/index.js.map +1 -1
- package/es5/components/KSlideGroup/KSlideGroup.js +89 -116
- package/es5/components/KSlideGroup/KSlideGroup.js.map +1 -1
- package/es5/components/KSlideGroup/KSlideItem.js +3 -11
- package/es5/components/KSlideGroup/KSlideItem.js.map +1 -1
- package/es5/components/KSlideGroup/index.js +2 -7
- package/es5/components/KSlideGroup/index.js.map +1 -1
- package/es5/components/KSlider/KSlider.js +42 -77
- package/es5/components/KSlider/KSlider.js.map +1 -1
- package/es5/components/KSlider/index.js +2 -6
- package/es5/components/KSlider/index.js.map +1 -1
- package/es5/components/KSnackbar/KSnackbar.js +20 -34
- package/es5/components/KSnackbar/KSnackbar.js.map +1 -1
- package/es5/components/KSnackbar/index.js +2 -6
- package/es5/components/KSnackbar/index.js.map +1 -1
- package/es5/components/KSparkline/KSparkline.js +13 -32
- package/es5/components/KSparkline/KSparkline.js.map +1 -1
- package/es5/components/KSparkline/helpers/core.js +12 -20
- package/es5/components/KSparkline/helpers/core.js.map +1 -1
- package/es5/components/KSparkline/helpers/math.js +4 -9
- package/es5/components/KSparkline/helpers/math.js.map +1 -1
- package/es5/components/KSparkline/helpers/path.js +2 -6
- package/es5/components/KSparkline/helpers/path.js.map +1 -1
- package/es5/components/KSparkline/index.js +2 -6
- package/es5/components/KSparkline/index.js.map +1 -1
- package/es5/components/KSpeedDial/KSpeedDial.js +15 -26
- package/es5/components/KSpeedDial/KSpeedDial.js.map +1 -1
- package/es5/components/KSpeedDial/index.js +2 -6
- package/es5/components/KSpeedDial/index.js.map +1 -1
- package/es5/components/KStepper/KStepper.js +14 -23
- package/es5/components/KStepper/KStepper.js.map +1 -1
- package/es5/components/KStepper/KStepperContent.js +11 -21
- package/es5/components/KStepper/KStepperContent.js.map +1 -1
- package/es5/components/KStepper/KStepperStep.js +18 -17
- package/es5/components/KStepper/KStepperStep.js.map +1 -1
- package/es5/components/KStepper/index.js +10 -18
- package/es5/components/KStepper/index.js.map +1 -1
- package/es5/components/KSubheader/KSubheader.js +13 -19
- package/es5/components/KSubheader/KSubheader.js.map +1 -1
- package/es5/components/KSubheader/index.js +2 -6
- package/es5/components/KSubheader/index.js.map +1 -1
- package/es5/components/KSwitch/KSwitch.js +22 -32
- package/es5/components/KSwitch/KSwitch.js.map +1 -1
- package/es5/components/KSwitch/index.js +2 -6
- package/es5/components/KSwitch/index.js.map +1 -1
- package/es5/components/KSystemBar/KSystemBar.js +12 -22
- package/es5/components/KSystemBar/KSystemBar.js.map +1 -1
- package/es5/components/KSystemBar/index.js +2 -6
- package/es5/components/KSystemBar/index.js.map +1 -1
- package/es5/components/KTabs/KTab.js +30 -37
- package/es5/components/KTabs/KTab.js.map +1 -1
- package/es5/components/KTabs/KTabItem.js +2 -9
- package/es5/components/KTabs/KTabItem.js.map +1 -1
- package/es5/components/KTabs/KTabs.js +34 -53
- package/es5/components/KTabs/KTabs.js.map +1 -1
- package/es5/components/KTabs/KTabsBar.js +18 -33
- package/es5/components/KTabs/KTabsBar.js.map +1 -1
- package/es5/components/KTabs/KTabsItems.js +10 -15
- package/es5/components/KTabs/KTabsItems.js.map +1 -1
- package/es5/components/KTabs/KTabsSlider.js +2 -9
- package/es5/components/KTabs/KTabsSlider.js.map +1 -1
- package/es5/components/KTabs/index.js +10 -18
- package/es5/components/KTabs/index.js.map +1 -1
- package/es5/components/KTextField/KTextField.js +39 -92
- package/es5/components/KTextField/KTextField.js.map +1 -1
- package/es5/components/KTextField/index.js +2 -6
- package/es5/components/KTextField/index.js.map +1 -1
- package/es5/components/KTextarea/KTextarea.js +15 -27
- package/es5/components/KTextarea/KTextarea.js.map +1 -1
- package/es5/components/KTextarea/index.js +2 -6
- package/es5/components/KTextarea/index.js.map +1 -1
- package/es5/components/KThemeProvider/KThemeProvider.js +2 -8
- package/es5/components/KThemeProvider/KThemeProvider.js.map +1 -1
- package/es5/components/KThemeProvider/index.js +2 -6
- package/es5/components/KThemeProvider/index.js.map +1 -1
- package/es5/components/KTimePicker/KTimePicker.js +46 -72
- package/es5/components/KTimePicker/KTimePicker.js.map +1 -1
- package/es5/components/KTimePicker/KTimePickerClock.js +21 -44
- package/es5/components/KTimePicker/KTimePickerClock.js.map +1 -1
- package/es5/components/KTimePicker/KTimePickerTitle.js +4 -18
- package/es5/components/KTimePicker/KTimePickerTitle.js.map +1 -1
- package/es5/components/KTimePicker/SelectingTimes.js +0 -2
- package/es5/components/KTimePicker/SelectingTimes.js.map +1 -1
- package/es5/components/KTimePicker/index.js +2 -8
- package/es5/components/KTimePicker/index.js.map +1 -1
- package/es5/components/KTimeline/KTimeline.js +13 -19
- package/es5/components/KTimeline/KTimeline.js.map +1 -1
- package/es5/components/KTimeline/KTimelineItem.js +14 -26
- package/es5/components/KTimeline/KTimelineItem.js.map +1 -1
- package/es5/components/KTimeline/index.js +2 -7
- package/es5/components/KTimeline/index.js.map +1 -1
- package/es5/components/KToolbar/KToolbar.js +21 -36
- package/es5/components/KToolbar/KToolbar.js.map +1 -1
- package/es5/components/KToolbar/index.js +6 -11
- package/es5/components/KToolbar/index.js.map +1 -1
- package/es5/components/KTooltip/KTooltip.js +29 -51
- package/es5/components/KTooltip/KTooltip.js.map +1 -1
- package/es5/components/KTooltip/index.js +2 -6
- package/es5/components/KTooltip/index.js.map +1 -1
- package/es5/components/KTreeview/KTreeview.js +52 -136
- package/es5/components/KTreeview/KTreeview.js.map +1 -1
- package/es5/components/KTreeview/KTreeviewNode.js +17 -47
- package/es5/components/KTreeview/KTreeviewNode.js.map +1 -1
- package/es5/components/KTreeview/index.js +2 -7
- package/es5/components/KTreeview/index.js.map +1 -1
- package/es5/components/KTreeview/util/filterTreeItems.js +0 -8
- package/es5/components/KTreeview/util/filterTreeItems.js.map +1 -1
- package/es5/components/KVirtualScroll/KVirtualScroll.js +3 -11
- package/es5/components/KVirtualScroll/KVirtualScroll.js.map +1 -1
- package/es5/components/KVirtualScroll/index.js +2 -6
- package/es5/components/KVirtualScroll/index.js.map +1 -1
- package/es5/components/KWindow/KWindow.js +18 -41
- package/es5/components/KWindow/KWindow.js.map +1 -1
- package/es5/components/KWindow/KWindowItem.js +16 -31
- package/es5/components/KWindow/KWindowItem.js.map +1 -1
- package/es5/components/KWindow/index.js +2 -7
- package/es5/components/KWindow/index.js.map +1 -1
- package/es5/components/index.js +0 -162
- package/es5/components/index.js.map +1 -1
- package/es5/components/transitions/createTransition.js +10 -21
- package/es5/components/transitions/createTransition.js.map +1 -1
- package/es5/components/transitions/expand-transition.js +6 -13
- package/es5/components/transitions/expand-transition.js.map +1 -1
- package/es5/components/transitions/index.js +26 -52
- package/es5/components/transitions/index.js.map +1 -1
- package/es5/directives/click-outside/index.js +17 -34
- package/es5/directives/click-outside/index.js.map +1 -1
- package/es5/directives/color/index.js +4 -18
- package/es5/directives/color/index.js.map +1 -1
- package/es5/directives/index.js +0 -7
- package/es5/directives/index.js.map +1 -1
- package/es5/directives/intersect/index.js +14 -28
- package/es5/directives/intersect/index.js.map +1 -1
- package/es5/directives/mutate/index.js +17 -28
- package/es5/directives/mutate/index.js.map +1 -1
- package/es5/directives/resize/index.js +6 -13
- package/es5/directives/resize/index.js.map +1 -1
- package/es5/directives/ripple/index.js +22 -86
- package/es5/directives/ripple/index.js.map +1 -1
- package/es5/directives/scroll/index.js +11 -19
- package/es5/directives/scroll/index.js.map +1 -1
- package/es5/directives/touch/index.js +7 -20
- package/es5/directives/touch/index.js.map +1 -1
- package/es5/entry-lib.js +1 -8
- package/es5/entry-lib.js.map +1 -1
- package/es5/framework.js +18 -34
- package/es5/framework.js.map +1 -1
- package/es5/index.js +9 -22
- package/es5/index.js.map +1 -1
- package/es5/install.js +8 -21
- package/es5/install.js.map +1 -1
- package/es5/locale/af.js +8 -3
- package/es5/locale/af.js.map +1 -1
- package/es5/locale/ar.js +28 -23
- package/es5/locale/ar.js.map +1 -1
- package/es5/locale/az.js +8 -3
- package/es5/locale/az.js.map +1 -1
- package/es5/locale/bg.js +8 -3
- package/es5/locale/bg.js.map +1 -1
- package/es5/locale/ca.js +15 -10
- package/es5/locale/ca.js.map +1 -1
- package/es5/locale/ckb.js +8 -3
- package/es5/locale/ckb.js.map +1 -1
- package/es5/locale/cs.js +8 -3
- package/es5/locale/cs.js.map +1 -1
- package/es5/locale/da.js +8 -3
- package/es5/locale/da.js.map +1 -1
- package/es5/locale/de.js +8 -3
- package/es5/locale/de.js.map +1 -1
- package/es5/locale/el.js +8 -3
- package/es5/locale/el.js.map +1 -1
- package/es5/locale/en.js +8 -3
- package/es5/locale/en.js.map +1 -1
- package/es5/locale/es.js +11 -6
- package/es5/locale/es.js.map +1 -1
- package/es5/locale/et.js +8 -3
- package/es5/locale/et.js.map +1 -1
- package/es5/locale/fa.js +8 -3
- package/es5/locale/fa.js.map +1 -1
- package/es5/locale/fi.js +13 -8
- package/es5/locale/fi.js.map +1 -1
- package/es5/locale/fr.js +9 -4
- package/es5/locale/fr.js.map +1 -1
- package/es5/locale/he.js +8 -3
- package/es5/locale/he.js.map +1 -1
- package/es5/locale/hr.js +8 -3
- package/es5/locale/hr.js.map +1 -1
- package/es5/locale/hu.js +8 -3
- package/es5/locale/hu.js.map +1 -1
- package/es5/locale/id.js +8 -3
- package/es5/locale/id.js.map +1 -1
- package/es5/locale/index.js +17 -60
- package/es5/locale/index.js.map +1 -1
- package/es5/locale/it.js +14 -9
- package/es5/locale/it.js.map +1 -1
- package/es5/locale/ja.js +8 -3
- package/es5/locale/ja.js.map +1 -1
- package/es5/locale/ko.js +8 -3
- package/es5/locale/ko.js.map +1 -1
- package/es5/locale/lt.js +8 -3
- package/es5/locale/lt.js.map +1 -1
- package/es5/locale/lv.js +8 -3
- package/es5/locale/lv.js.map +1 -1
- package/es5/locale/nl.js +8 -3
- package/es5/locale/nl.js.map +1 -1
- package/es5/locale/no.js +8 -3
- package/es5/locale/no.js.map +1 -1
- package/es5/locale/pl.js +8 -3
- package/es5/locale/pl.js.map +1 -1
- package/es5/locale/pt.js +8 -3
- package/es5/locale/pt.js.map +1 -1
- package/es5/locale/ro.js +8 -3
- package/es5/locale/ro.js.map +1 -1
- package/es5/locale/ru.js +8 -3
- package/es5/locale/ru.js.map +1 -1
- package/es5/locale/sk.js +8 -3
- package/es5/locale/sk.js.map +1 -1
- package/es5/locale/sl.js +8 -3
- package/es5/locale/sl.js.map +1 -1
- package/es5/locale/sr-Cyrl.js +8 -3
- package/es5/locale/sr-Cyrl.js.map +1 -1
- package/es5/locale/sr-Latn.js +8 -3
- package/es5/locale/sr-Latn.js.map +1 -1
- package/es5/locale/sv.js +8 -3
- package/es5/locale/sv.js.map +1 -1
- package/es5/locale/th.js +8 -3
- package/es5/locale/th.js.map +1 -1
- package/es5/locale/tr.js +8 -3
- package/es5/locale/tr.js.map +1 -1
- package/es5/locale/uk.js +8 -3
- package/es5/locale/uk.js.map +1 -1
- package/es5/locale/vi.js +8 -3
- package/es5/locale/vi.js.map +1 -1
- package/es5/locale/zh-Hans.js +8 -3
- package/es5/locale/zh-Hans.js.map +1 -1
- package/es5/locale/zh-Hant.js +8 -3
- package/es5/locale/zh-Hant.js.map +1 -1
- package/es5/mixins/activatable/index.js +15 -42
- package/es5/mixins/activatable/index.js.map +1 -1
- package/es5/mixins/applicationable/index.js +2 -7
- package/es5/mixins/applicationable/index.js.map +1 -1
- package/es5/mixins/binds-attrs/index.js +4 -11
- package/es5/mixins/binds-attrs/index.js.map +1 -1
- package/es5/mixins/bootable/index.js +9 -17
- package/es5/mixins/bootable/index.js.map +1 -1
- package/es5/mixins/button-group/index.js +1 -6
- package/es5/mixins/button-group/index.js.map +1 -1
- package/es5/mixins/colorable/index.js +28 -51
- package/es5/mixins/colorable/index.js.map +1 -1
- package/es5/mixins/comparable/index.js +2 -8
- package/es5/mixins/comparable/index.js.map +1 -1
- package/es5/mixins/delayable/index.js +12 -19
- package/es5/mixins/delayable/index.js.map +1 -1
- package/es5/mixins/dependent/index.js +7 -26
- package/es5/mixins/dependent/index.js.map +1 -1
- package/es5/mixins/detachable/index.js +13 -28
- package/es5/mixins/detachable/index.js.map +1 -1
- package/es5/mixins/elevatable/index.js +6 -9
- package/es5/mixins/elevatable/index.js.map +1 -1
- package/es5/mixins/filterable/index.js +2 -7
- package/es5/mixins/filterable/index.js.map +1 -1
- package/es5/mixins/groupable/index.js +14 -10
- package/es5/mixins/groupable/index.js.map +1 -1
- package/es5/mixins/intersectable/index.js +4 -9
- package/es5/mixins/intersectable/index.js.map +1 -1
- package/es5/mixins/loadable/index.js +12 -18
- package/es5/mixins/loadable/index.js.map +1 -1
- package/es5/mixins/localable/index.js +2 -7
- package/es5/mixins/localable/index.js.map +1 -1
- package/es5/mixins/measurable/index.js +2 -8
- package/es5/mixins/measurable/index.js.map +1 -1
- package/es5/mixins/menuable/index.js +38 -65
- package/es5/mixins/menuable/index.js.map +1 -1
- package/es5/mixins/mobile/index.js +7 -13
- package/es5/mixins/mobile/index.js.map +1 -1
- package/es5/mixins/mouse/index.js +106 -0
- package/es5/mixins/mouse/index.js.map +1 -0
- package/es5/mixins/overlayable/index.js +9 -39
- package/es5/mixins/overlayable/index.js.map +1 -1
- package/es5/mixins/picker/index.js +5 -16
- package/es5/mixins/picker/index.js.map +1 -1
- package/es5/mixins/picker-button/index.js +2 -14
- package/es5/mixins/picker-button/index.js.map +1 -1
- package/es5/mixins/positionable/index.js +28 -38
- package/es5/mixins/positionable/index.js.map +1 -1
- package/es5/mixins/proxyable/index.js +7 -11
- package/es5/mixins/proxyable/index.js.map +1 -1
- package/es5/mixins/registrable/index.js +5 -9
- package/es5/mixins/registrable/index.js.map +1 -1
- package/es5/mixins/returnable/index.js +2 -8
- package/es5/mixins/returnable/index.js.map +1 -1
- package/es5/mixins/rippleable/index.js +2 -8
- package/es5/mixins/rippleable/index.js.map +1 -1
- package/es5/mixins/roundable/index.js +10 -20
- package/es5/mixins/roundable/index.js.map +1 -1
- package/es5/mixins/routable/index.js +18 -36
- package/es5/mixins/routable/index.js.map +1 -1
- package/es5/mixins/scrollable/index.js +20 -33
- package/es5/mixins/scrollable/index.js.map +1 -1
- package/es5/mixins/selectable/index.js +13 -30
- package/es5/mixins/selectable/index.js.map +1 -1
- package/es5/mixins/sizeable/index.js +2 -7
- package/es5/mixins/sizeable/index.js.map +1 -1
- package/es5/mixins/ssr-bootable/index.js +9 -16
- package/es5/mixins/ssr-bootable/index.js.map +1 -1
- package/es5/mixins/stackable/index.js +17 -30
- package/es5/mixins/stackable/index.js.map +1 -1
- package/es5/mixins/themeable/index.js +11 -20
- package/es5/mixins/themeable/index.js.map +1 -1
- package/es5/mixins/toggleable/index.js +10 -16
- package/es5/mixins/toggleable/index.js.map +1 -1
- package/es5/mixins/transitionable/index.js +2 -7
- package/es5/mixins/transitionable/index.js.map +1 -1
- package/es5/mixins/translatable/index.js +3 -10
- package/es5/mixins/translatable/index.js.map +1 -1
- package/es5/mixins/validatable/index.js +21 -35
- package/es5/mixins/validatable/index.js.map +1 -1
- package/es5/presets/default/index.js +4 -6
- package/es5/presets/default/index.js.map +1 -1
- package/es5/services/application/index.js +18 -41
- package/es5/services/application/index.js.map +1 -1
- package/es5/services/breakpoint/index.js +29 -61
- package/es5/services/breakpoint/index.js.map +1 -1
- package/es5/services/goto/easing-patterns.js +38 -77
- package/es5/services/goto/easing-patterns.js.map +1 -1
- package/es5/services/goto/index.js +29 -64
- package/es5/services/goto/index.js.map +1 -1
- package/es5/services/goto/util.js +1 -10
- package/es5/services/goto/util.js.map +1 -1
- package/es5/services/icons/index.js +23 -39
- package/es5/services/icons/index.js.map +1 -1
- package/es5/services/icons/presets/fa-svg.js +2 -10
- package/es5/services/icons/presets/fa-svg.js.map +1 -1
- package/es5/services/icons/presets/fa.js +2 -3
- package/es5/services/icons/presets/fa.js.map +1 -1
- package/es5/services/icons/presets/fa4.js +1 -2
- package/es5/services/icons/presets/fa4.js.map +1 -1
- package/es5/services/icons/presets/index.js +2 -12
- package/es5/services/icons/presets/index.js.map +1 -1
- package/es5/services/icons/presets/md.js +1 -2
- package/es5/services/icons/presets/md.js.map +1 -1
- package/es5/services/icons/presets/mdi-svg.js +6 -7
- package/es5/services/icons/presets/mdi-svg.js.map +1 -1
- package/es5/services/icons/presets/mdi.js +1 -2
- package/es5/services/icons/presets/mdi.js.map +1 -1
- package/es5/services/index.js +0 -14
- package/es5/services/index.js.map +1 -1
- package/es5/services/lang/index.js +21 -49
- package/es5/services/lang/index.js.map +1 -1
- package/es5/services/presets/index.js +28 -48
- package/es5/services/presets/index.js.map +1 -1
- package/es5/services/service/index.js +8 -15
- package/es5/services/service/index.js.map +1 -1
- package/es5/services/theme/index.js +48 -102
- package/es5/services/theme/index.js.map +1 -1
- package/es5/services/theme/utils.js +26 -67
- package/es5/services/theme/utils.js.map +1 -1
- package/es5/util/color/transformCIELAB.js +0 -4
- package/es5/util/color/transformCIELAB.js.map +1 -1
- package/es5/util/color/transformSRGB.js +14 -21
- package/es5/util/color/transformSRGB.js.map +1 -1
- package/es5/util/colorUtils.js +55 -106
- package/es5/util/colorUtils.js.map +1 -1
- package/es5/util/colors.js +1 -4
- package/es5/util/colors.js.map +1 -1
- package/es5/util/console.js +4 -26
- package/es5/util/console.js.map +1 -1
- package/es5/util/dateTimeUtils.js +1 -13
- package/es5/util/dateTimeUtils.js.map +1 -1
- package/es5/util/dedupeModelListeners.js +3 -4
- package/es5/util/dedupeModelListeners.js.map +1 -1
- package/es5/util/dom.js +8 -13
- package/es5/util/dom.js.map +1 -1
- package/es5/util/helpers.js +88 -206
- package/es5/util/helpers.js.map +1 -1
- package/es5/util/mergeData.js +24 -66
- package/es5/util/mergeData.js.map +1 -1
- package/es5/util/mixins.js +2 -5
- package/es5/util/mixins.js.map +1 -1
- package/es5/util/rebuildFunctionalSlots.js +0 -3
- package/es5/util/rebuildFunctionalSlots.js.map +1 -1
- package/lib/components/KAlert/KAlert.js +13 -42
- package/lib/components/KAlert/KAlert.js.map +1 -1
- package/lib/components/KAlert/index.js.map +1 -1
- package/lib/components/KApp/KApp.js +7 -11
- package/lib/components/KApp/KApp.js.map +1 -1
- package/lib/components/KApp/index.js.map +1 -1
- package/lib/components/KAppBar/KAppBar.js +14 -51
- package/lib/components/KAppBar/KAppBar.js.map +1 -1
- package/lib/components/KAppBar/KAppBarNavIcon.js +4 -6
- package/lib/components/KAppBar/KAppBarNavIcon.js.map +1 -1
- package/lib/components/KAppBar/KAppBarTitle.js +5 -11
- package/lib/components/KAppBar/KAppBarTitle.js.map +1 -1
- package/lib/components/KAppBar/index.js.map +1 -1
- package/lib/components/KAutocomplete/KAutocomplete.js +27 -89
- package/lib/components/KAutocomplete/KAutocomplete.js.map +1 -1
- package/lib/components/KAutocomplete/index.js.map +1 -1
- package/lib/components/KAvatar/KAvatar.js +6 -10
- package/lib/components/KAvatar/KAvatar.js.map +1 -1
- package/lib/components/KAvatar/index.js.map +1 -1
- package/lib/components/KBadge/KBadge.js +6 -24
- package/lib/components/KBadge/KBadge.js.map +1 -1
- package/lib/components/KBadge/index.js.map +1 -1
- package/lib/components/KBanner/KBanner.js +18 -33
- package/lib/components/KBanner/KBanner.js.map +1 -1
- package/lib/components/KBanner/index.js.map +1 -1
- package/lib/components/KBottomNavigation/KBottomNavigation.js +18 -24
- package/lib/components/KBottomNavigation/KBottomNavigation.js.map +1 -1
- package/lib/components/KBottomNavigation/index.js.map +1 -1
- package/lib/components/KBottomSheet/KBottomSheet.js +5 -9
- package/lib/components/KBottomSheet/KBottomSheet.js.map +1 -1
- package/lib/components/KBottomSheet/index.js.map +1 -1
- package/lib/components/KBreadcrumbs/KBreadcrumbs.js +9 -16
- package/lib/components/KBreadcrumbs/KBreadcrumbs.js.map +1 -1
- package/lib/components/KBreadcrumbs/KBreadcrumbsDivider.js.map +1 -1
- package/lib/components/KBreadcrumbs/KBreadcrumbsItem.js +6 -7
- package/lib/components/KBreadcrumbs/KBreadcrumbsItem.js.map +1 -1
- package/lib/components/KBreadcrumbs/index.js.map +1 -1
- package/lib/components/KBtn/KBtn.js +16 -35
- package/lib/components/KBtn/KBtn.js.map +1 -1
- package/lib/components/KBtn/index.js.map +1 -1
- package/lib/components/KBtnToggle/KBtnToggle.js +8 -9
- package/lib/components/KBtnToggle/KBtnToggle.js.map +1 -1
- package/lib/components/KBtnToggle/index.js.map +1 -1
- package/lib/components/KCalendar/KCalendar.js +13 -68
- package/lib/components/KCalendar/KCalendar.js.map +1 -1
- package/lib/components/KCalendar/KCalendarCategory.js +8 -19
- package/lib/components/KCalendar/KCalendarCategory.js.map +1 -1
- package/lib/components/KCalendar/KCalendarDaily.js +28 -45
- package/lib/components/KCalendar/KCalendarDaily.js.map +1 -1
- package/lib/components/KCalendar/KCalendarMonthly.js +4 -8
- package/lib/components/KCalendar/KCalendarMonthly.js.map +1 -1
- package/lib/components/KCalendar/KCalendarWeekly.js +31 -39
- package/lib/components/KCalendar/KCalendarWeekly.js.map +1 -1
- package/lib/components/KCalendar/index.js.map +1 -1
- package/lib/components/KCalendar/mixins/calendar-base.js +6 -21
- package/lib/components/KCalendar/mixins/calendar-base.js.map +1 -1
- package/lib/components/KCalendar/mixins/calendar-with-events.js +39 -100
- package/lib/components/KCalendar/mixins/calendar-with-events.js.map +1 -1
- package/lib/components/KCalendar/mixins/calendar-with-intervals.js +2 -30
- package/lib/components/KCalendar/mixins/calendar-with-intervals.js.map +1 -1
- package/lib/components/KCalendar/mixins/times.js +0 -8
- package/lib/components/KCalendar/mixins/times.js.map +1 -1
- package/lib/components/KCalendar/modes/column.js +0 -2
- package/lib/components/KCalendar/modes/column.js.map +1 -1
- package/lib/components/KCalendar/modes/common.js +0 -12
- package/lib/components/KCalendar/modes/common.js.map +1 -1
- package/lib/components/KCalendar/modes/index.js.map +1 -1
- package/lib/components/KCalendar/modes/stack.js +14 -58
- package/lib/components/KCalendar/modes/stack.js.map +1 -1
- package/lib/components/KCalendar/util/events.js.map +1 -1
- package/lib/components/KCalendar/util/parser.js +2 -3
- package/lib/components/KCalendar/util/parser.js.map +1 -1
- package/lib/components/KCalendar/util/props.js +0 -12
- package/lib/components/KCalendar/util/props.js.map +1 -1
- package/lib/components/KCalendar/util/timestamp.js +2 -61
- package/lib/components/KCalendar/util/timestamp.js.map +1 -1
- package/lib/components/KCard/KCard.js +10 -18
- package/lib/components/KCard/KCard.js.map +1 -1
- package/lib/components/KCard/index.js.map +1 -1
- package/lib/components/KCarousel/KCarousel.js +12 -36
- package/lib/components/KCarousel/KCarousel.js.map +1 -1
- package/lib/components/KCarousel/KCarouselItem.js +8 -12
- package/lib/components/KCarousel/KCarouselItem.js.map +1 -1
- package/lib/components/KCarousel/index.js.map +1 -1
- package/lib/components/KCheckbox/KCheckbox.js +9 -18
- package/lib/components/KCheckbox/KCheckbox.js.map +1 -1
- package/lib/components/KCheckbox/KSimpleCheckbox.js +10 -13
- package/lib/components/KCheckbox/KSimpleCheckbox.js.map +1 -1
- package/lib/components/KCheckbox/index.js.map +1 -1
- package/lib/components/KChip/KChip.js +11 -26
- package/lib/components/KChip/KChip.js.map +1 -1
- package/lib/components/KChip/index.js.map +1 -1
- package/lib/components/KChipGroup/KChipGroup.js +10 -14
- package/lib/components/KChipGroup/KChipGroup.js.map +1 -1
- package/lib/components/KChipGroup/index.js.map +1 -1
- package/lib/components/KColorPicker/KColorPicker.js +6 -17
- package/lib/components/KColorPicker/KColorPicker.js.map +1 -1
- package/lib/components/KColorPicker/KColorPickerCanvas.js +4 -22
- package/lib/components/KColorPicker/KColorPickerCanvas.js.map +1 -1
- package/lib/components/KColorPicker/KColorPickerEdit.js +6 -20
- package/lib/components/KColorPicker/KColorPickerEdit.js.map +1 -1
- package/lib/components/KColorPicker/KColorPickerPreview.js +10 -15
- package/lib/components/KColorPicker/KColorPickerPreview.js.map +1 -1
- package/lib/components/KColorPicker/KColorPickerSwatches.js +4 -10
- package/lib/components/KColorPicker/KColorPickerSwatches.js.map +1 -1
- package/lib/components/KColorPicker/index.js.map +1 -1
- package/lib/components/KColorPicker/util/index.js +8 -19
- package/lib/components/KColorPicker/util/index.js.map +1 -1
- package/lib/components/KCombobox/KCombobox.js +34 -67
- package/lib/components/KCombobox/KCombobox.js.map +1 -1
- package/lib/components/KCombobox/index.js.map +1 -1
- package/lib/components/KContent/KContent.js +0 -4
- package/lib/components/KContent/KContent.js.map +1 -1
- package/lib/components/KContent/index.js.map +1 -1
- package/lib/components/KCounter/KCounter.js +2 -5
- package/lib/components/KCounter/KCounter.js.map +1 -1
- package/lib/components/KCounter/index.js.map +1 -1
- package/lib/components/KData/KData.js +8 -71
- package/lib/components/KData/KData.js.map +1 -1
- package/lib/components/KData/index.js.map +1 -1
- package/lib/components/KDataIterator/KDataFooter.js +7 -24
- package/lib/components/KDataIterator/KDataFooter.js.map +1 -1
- package/lib/components/KDataIterator/KDataIterator.js +21 -59
- package/lib/components/KDataIterator/KDataIterator.js.map +1 -1
- package/lib/components/KDataIterator/index.js.map +1 -1
- package/lib/components/KDataTable/KDataTable.js +112 -124
- package/lib/components/KDataTable/KDataTable.js.map +1 -1
- package/lib/components/KDataTable/KDataTableHeader.js +10 -13
- package/lib/components/KDataTable/KDataTableHeader.js.map +1 -1
- package/lib/components/KDataTable/KDataTableHeaderDesktop.js +1 -18
- package/lib/components/KDataTable/KDataTableHeaderDesktop.js.map +1 -1
- package/lib/components/KDataTable/KDataTableHeaderMobile.js +0 -8
- package/lib/components/KDataTable/KDataTableHeaderMobile.js.map +1 -1
- package/lib/components/KDataTable/KEditDialog.js +8 -20
- package/lib/components/KDataTable/KEditDialog.js.map +1 -1
- package/lib/components/KDataTable/KSimpleTable.js +4 -8
- package/lib/components/KDataTable/KSimpleTable.js.map +1 -1
- package/lib/components/KDataTable/KVirtualTable.js +7 -30
- package/lib/components/KDataTable/KVirtualTable.js.map +1 -1
- package/lib/components/KDataTable/MobileRow.js +4 -9
- package/lib/components/KDataTable/MobileRow.js.map +1 -1
- package/lib/components/KDataTable/Row.js +6 -13
- package/lib/components/KDataTable/Row.js.map +1 -1
- package/lib/components/KDataTable/RowGroup.js +0 -6
- package/lib/components/KDataTable/RowGroup.js.map +1 -1
- package/lib/components/KDataTable/index.js.map +1 -1
- package/lib/components/KDataTable/mixins/header.js +2 -7
- package/lib/components/KDataTable/mixins/header.js.map +1 -1
- package/lib/components/KDatePicker/KDatePicker.js +12 -72
- package/lib/components/KDatePicker/KDatePicker.js.map +1 -1
- package/lib/components/KDatePicker/KDatePickerDateTable.js +3 -28
- package/lib/components/KDatePicker/KDatePickerDateTable.js.map +1 -1
- package/lib/components/KDatePicker/KDatePickerHeader.js +9 -19
- package/lib/components/KDatePicker/KDatePickerHeader.js.map +1 -1
- package/lib/components/KDatePicker/KDatePickerMonthTable.js +3 -11
- package/lib/components/KDatePicker/KDatePickerMonthTable.js.map +1 -1
- package/lib/components/KDatePicker/KDatePickerTitle.js +7 -16
- package/lib/components/KDatePicker/KDatePickerTitle.js.map +1 -1
- package/lib/components/KDatePicker/KDatePickerYears.js +5 -18
- package/lib/components/KDatePicker/KDatePickerYears.js.map +1 -1
- package/lib/components/KDatePicker/index.js.map +1 -1
- package/lib/components/KDatePicker/mixins/date-picker-table.js +9 -34
- package/lib/components/KDatePicker/mixins/date-picker-table.js.map +1 -1
- package/lib/components/KDatePicker/util/createNativeLocaleFormatter.js +0 -3
- package/lib/components/KDatePicker/util/createNativeLocaleFormatter.js.map +1 -1
- package/lib/components/KDatePicker/util/eventHelpers.js +0 -2
- package/lib/components/KDatePicker/util/eventHelpers.js.map +1 -1
- package/lib/components/KDatePicker/util/index.js.map +1 -1
- package/lib/components/KDatePicker/util/isDateAllowed.js.map +1 -1
- package/lib/components/KDatePicker/util/monthChange.js +5 -7
- package/lib/components/KDatePicker/util/monthChange.js.map +1 -1
- package/lib/components/KDatePicker/util/pad.js +1 -6
- package/lib/components/KDatePicker/util/pad.js.map +1 -1
- package/lib/components/KDatePicker/util/sanitizeDateString.js +2 -2
- package/lib/components/KDatePicker/util/sanitizeDateString.js.map +1 -1
- package/lib/components/KDialog/KDialog.js +45 -80
- package/lib/components/KDialog/KDialog.js.map +1 -1
- package/lib/components/KDialog/index.js.map +1 -1
- package/lib/components/KDivider/KDivider.js +2 -6
- package/lib/components/KDivider/KDivider.js.map +1 -1
- package/lib/components/KDivider/index.js.map +1 -1
- package/lib/components/KExpansionPanel/KExpansionPanel.js +3 -17
- package/lib/components/KExpansionPanel/KExpansionPanel.js.map +1 -1
- package/lib/components/KExpansionPanel/KExpansionPanelContent.js +7 -13
- package/lib/components/KExpansionPanel/KExpansionPanelContent.js.map +1 -1
- package/lib/components/KExpansionPanel/KExpansionPanelHeader.js +11 -19
- package/lib/components/KExpansionPanel/KExpansionPanelHeader.js.map +1 -1
- package/lib/components/KExpansionPanel/KExpansionPanels.js +6 -14
- package/lib/components/KExpansionPanel/KExpansionPanels.js.map +1 -1
- package/lib/components/KExpansionPanel/index.js.map +1 -1
- package/lib/components/KFileInput/KFileInput.js +22 -46
- package/lib/components/KFileInput/KFileInput.js.map +1 -1
- package/lib/components/KFileInput/index.js.map +1 -1
- package/lib/components/KFooter/KFooter.js +12 -21
- package/lib/components/KFooter/KFooter.js.map +1 -1
- package/lib/components/KFooter/index.js.map +1 -1
- package/lib/components/KForm/KForm.js +5 -23
- package/lib/components/KForm/KForm.js.map +1 -1
- package/lib/components/KForm/index.js.map +1 -1
- package/lib/components/KGrid/KCol.js +9 -27
- package/lib/components/KGrid/KCol.js.map +1 -1
- package/lib/components/KGrid/KContainer.js +4 -11
- package/lib/components/KGrid/KContainer.js.map +1 -1
- package/lib/components/KGrid/KFlex.js +1 -1
- package/lib/components/KGrid/KFlex.js.map +1 -1
- package/lib/components/KGrid/KLayout.js +1 -1
- package/lib/components/KGrid/KLayout.js.map +1 -1
- package/lib/components/KGrid/KRow.js +7 -27
- package/lib/components/KGrid/KRow.js.map +1 -1
- package/lib/components/KGrid/KSpacer.js +1 -1
- package/lib/components/KGrid/KSpacer.js.map +1 -1
- package/lib/components/KGrid/grid.js +2 -8
- package/lib/components/KGrid/grid.js.map +1 -1
- package/lib/components/KGrid/index.js.map +1 -1
- package/lib/components/KHover/KHover.js +3 -15
- package/lib/components/KHover/KHover.js.map +1 -1
- package/lib/components/KHover/index.js.map +1 -1
- package/lib/components/KIcon/KIcon.js +17 -44
- package/lib/components/KIcon/KIcon.js.map +1 -1
- package/lib/components/KIcon/index.js.map +1 -1
- package/lib/components/KImg/KImg.js +12 -40
- package/lib/components/KImg/KImg.js.map +1 -1
- package/lib/components/KImg/index.js.map +1 -1
- package/lib/components/KInput/KInput.js +22 -48
- package/lib/components/KInput/KInput.js.map +1 -1
- package/lib/components/KInput/index.js.map +1 -1
- package/lib/components/KItemGroup/KItem.js +16 -15
- package/lib/components/KItemGroup/KItem.js.map +1 -1
- package/lib/components/KItemGroup/KItemGroup.js +37 -62
- package/lib/components/KItemGroup/KItemGroup.js.map +1 -1
- package/lib/components/KItemGroup/index.js.map +1 -1
- package/lib/components/KLabel/KLabel.js +10 -11
- package/lib/components/KLabel/KLabel.js.map +1 -1
- package/lib/components/KLabel/index.js.map +1 -1
- package/lib/components/KLazy/KLazy.js +6 -10
- package/lib/components/KLazy/KLazy.js.map +1 -1
- package/lib/components/KLazy/index.js.map +1 -1
- package/lib/components/KList/KList.js +8 -15
- package/lib/components/KList/KList.js.map +1 -1
- package/lib/components/KList/KListGroup.js +19 -35
- package/lib/components/KList/KListGroup.js.map +1 -1
- package/lib/components/KList/KListItem.js +24 -35
- package/lib/components/KList/KListItem.js.map +1 -1
- package/lib/components/KList/KListItemAction.js +0 -3
- package/lib/components/KList/KListItemAction.js.map +1 -1
- package/lib/components/KList/KListItemAvatar.js +0 -4
- package/lib/components/KList/KListItemAvatar.js.map +1 -1
- package/lib/components/KList/KListItemGroup.js +10 -12
- package/lib/components/KList/KListItemGroup.js.map +1 -1
- package/lib/components/KList/KListItemIcon.js +0 -3
- package/lib/components/KList/KListItemIcon.js.map +1 -1
- package/lib/components/KList/index.js.map +1 -1
- package/lib/components/KMain/KMain.js +4 -7
- package/lib/components/KMain/KMain.js.map +1 -1
- package/lib/components/KMain/index.js.map +1 -1
- package/lib/components/KMenu/KMenu.js +35 -93
- package/lib/components/KMenu/KMenu.js.map +1 -1
- package/lib/components/KMenu/index.js.map +1 -1
- package/lib/components/KMessages/KMessages.js +4 -9
- package/lib/components/KMessages/KMessages.js.map +1 -1
- package/lib/components/KMessages/index.js.map +1 -1
- package/lib/components/KNavigationDrawer/KNavigationDrawer.js +23 -84
- package/lib/components/KNavigationDrawer/KNavigationDrawer.js.map +1 -1
- package/lib/components/KNavigationDrawer/index.js.map +1 -1
- package/lib/components/KOtpInput/KOtpInput.js +39 -113
- package/lib/components/KOtpInput/KOtpInput.js.map +1 -1
- package/lib/components/KOtpInput/index.js.map +1 -1
- package/lib/components/KOverflowBtn/KOverflowBtn.js +13 -23
- package/lib/components/KOverflowBtn/KOverflowBtn.js.map +1 -1
- package/lib/components/KOverflowBtn/index.js.map +1 -1
- package/lib/components/KOverlay/KOverlay.js +6 -13
- package/lib/components/KOverlay/KOverlay.js.map +1 -1
- package/lib/components/KOverlay/index.js.map +1 -1
- package/lib/components/KPagination/KPagination.js +20 -39
- package/lib/components/KPagination/KPagination.js.map +1 -1
- package/lib/components/KPagination/index.js.map +1 -1
- package/lib/components/KParallax/KParallax.js +4 -13
- package/lib/components/KParallax/KParallax.js.map +1 -1
- package/lib/components/KParallax/index.js.map +1 -1
- package/lib/components/KPicker/KPicker.js +9 -17
- package/lib/components/KPicker/KPicker.js.map +1 -1
- package/lib/components/KPicker/index.js.map +1 -1
- package/lib/components/KProgressCircular/KProgressCircular.js +8 -27
- package/lib/components/KProgressCircular/KProgressCircular.js.map +1 -1
- package/lib/components/KProgressCircular/index.js.map +1 -1
- package/lib/components/KProgressLinear/KProgressLinear.js +8 -39
- package/lib/components/KProgressLinear/KProgressLinear.js.map +1 -1
- package/lib/components/KProgressLinear/index.js.map +1 -1
- package/lib/components/KRadioGroup/KRadio.js +19 -31
- package/lib/components/KRadioGroup/KRadio.js.map +1 -1
- package/lib/components/KRadioGroup/KRadioGroup.js +10 -22
- package/lib/components/KRadioGroup/KRadioGroup.js.map +1 -1
- package/lib/components/KRadioGroup/index.js.map +1 -1
- package/lib/components/KRangeSlider/KRangeSlider.js +11 -41
- package/lib/components/KRangeSlider/KRangeSlider.js.map +1 -1
- package/lib/components/KRangeSlider/index.js.map +1 -1
- package/lib/components/KRating/KRating.js +6 -36
- package/lib/components/KRating/KRating.js.map +1 -1
- package/lib/components/KRating/index.js.map +1 -1
- package/lib/components/KResponsive/KResponsive.js +6 -12
- package/lib/components/KResponsive/KResponsive.js.map +1 -1
- package/lib/components/KResponsive/index.js.map +1 -1
- package/lib/components/KSelect/KSelect.js +99 -174
- package/lib/components/KSelect/KSelect.js.map +1 -1
- package/lib/components/KSelect/KSelectList.js +22 -44
- package/lib/components/KSelect/KSelectList.js.map +1 -1
- package/lib/components/KSelect/index.js.map +1 -1
- package/lib/components/KSheet/KSheet.js +4 -9
- package/lib/components/KSheet/KSheet.js.map +1 -1
- package/lib/components/KSheet/index.js.map +1 -1
- package/lib/components/KSkeletonLoader/KSkeletonLoader.js +29 -40
- package/lib/components/KSkeletonLoader/KSkeletonLoader.js.map +1 -1
- package/lib/components/KSkeletonLoader/index.js.map +1 -1
- package/lib/components/KSlideGroup/KSlideGroup.js +59 -98
- package/lib/components/KSlideGroup/KSlideGroup.js.map +1 -1
- package/lib/components/KSlideGroup/KSlideItem.js +3 -4
- package/lib/components/KSlideGroup/KSlideItem.js.map +1 -1
- package/lib/components/KSlideGroup/index.js.map +1 -1
- package/lib/components/KSlider/KSlider.js +23 -82
- package/lib/components/KSlider/KSlider.js.map +1 -1
- package/lib/components/KSlider/index.js.map +1 -1
- package/lib/components/KSnackbar/KSnackbar.js +9 -27
- package/lib/components/KSnackbar/KSnackbar.js.map +1 -1
- package/lib/components/KSnackbar/index.js.map +1 -1
- package/lib/components/KSparkline/KSparkline.js +7 -39
- package/lib/components/KSparkline/KSparkline.js.map +1 -1
- package/lib/components/KSparkline/helpers/core.js.map +1 -1
- package/lib/components/KSparkline/helpers/math.js +4 -6
- package/lib/components/KSparkline/helpers/math.js.map +1 -1
- package/lib/components/KSparkline/helpers/path.js +2 -5
- package/lib/components/KSparkline/helpers/path.js.map +1 -1
- package/lib/components/KSparkline/index.js.map +1 -1
- package/lib/components/KSpeedDial/KSpeedDial.js +9 -16
- package/lib/components/KSpeedDial/KSpeedDial.js.map +1 -1
- package/lib/components/KSpeedDial/index.js.map +1 -1
- package/lib/components/KStepper/KStepper.js +10 -26
- package/lib/components/KStepper/KStepper.js.map +1 -1
- package/lib/components/KStepper/KStepperContent.js +11 -29
- package/lib/components/KStepper/KStepperContent.js.map +1 -1
- package/lib/components/KStepper/KStepperStep.js +18 -27
- package/lib/components/KStepper/KStepperStep.js.map +1 -1
- package/lib/components/KStepper/index.js.map +1 -1
- package/lib/components/KSubheader/KSubheader.js +5 -7
- package/lib/components/KSubheader/KSubheader.js.map +1 -1
- package/lib/components/KSubheader/index.js.map +1 -1
- package/lib/components/KSwitch/KSwitch.js +15 -24
- package/lib/components/KSwitch/KSwitch.js.map +1 -1
- package/lib/components/KSwitch/index.js.map +1 -1
- package/lib/components/KSystemBar/KSystemBar.js +5 -13
- package/lib/components/KSystemBar/KSystemBar.js.map +1 -1
- package/lib/components/KSystemBar/index.js.map +1 -1
- package/lib/components/KTabs/KTab.js +23 -22
- package/lib/components/KTabs/KTab.js.map +1 -1
- package/lib/components/KTabs/KTabItem.js +0 -2
- package/lib/components/KTabs/KTabItem.js.map +1 -1
- package/lib/components/KTabs/KTabs.js +26 -45
- package/lib/components/KTabs/KTabs.js.map +1 -1
- package/lib/components/KTabs/KTabsBar.js +9 -19
- package/lib/components/KTabs/KTabsBar.js.map +1 -1
- package/lib/components/KTabs/KTabsItems.js +4 -7
- package/lib/components/KTabs/KTabsItems.js.map +1 -1
- package/lib/components/KTabs/KTabsSlider.js +2 -5
- package/lib/components/KTabs/KTabsSlider.js.map +1 -1
- package/lib/components/KTabs/index.js.map +1 -1
- package/lib/components/KTextField/KTextField.js +27 -102
- package/lib/components/KTextField/KTextField.js.map +1 -1
- package/lib/components/KTextField/index.js.map +1 -1
- package/lib/components/KTextarea/KTextarea.js +8 -22
- package/lib/components/KTextarea/KTextarea.js.map +1 -1
- package/lib/components/KTextarea/index.js.map +1 -1
- package/lib/components/KThemeProvider/KThemeProvider.js +0 -4
- package/lib/components/KThemeProvider/KThemeProvider.js.map +1 -1
- package/lib/components/KThemeProvider/index.js.map +1 -1
- package/lib/components/KTimePicker/KTimePicker.js +22 -54
- package/lib/components/KTimePicker/KTimePicker.js.map +1 -1
- package/lib/components/KTimePicker/KTimePickerClock.js +7 -44
- package/lib/components/KTimePicker/KTimePickerClock.js.map +1 -1
- package/lib/components/KTimePicker/KTimePickerTitle.js +5 -14
- package/lib/components/KTimePicker/KTimePickerTitle.js.map +1 -1
- package/lib/components/KTimePicker/SelectingTimes.js +0 -2
- package/lib/components/KTimePicker/SelectingTimes.js.map +1 -1
- package/lib/components/KTimePicker/index.js.map +1 -1
- package/lib/components/KTimeline/KTimeline.js +6 -11
- package/lib/components/KTimeline/KTimeline.js.map +1 -1
- package/lib/components/KTimeline/KTimelineItem.js +7 -20
- package/lib/components/KTimeline/KTimelineItem.js.map +1 -1
- package/lib/components/KTimeline/index.js.map +1 -1
- package/lib/components/KToolbar/KToolbar.js +10 -23
- package/lib/components/KToolbar/KToolbar.js.map +1 -1
- package/lib/components/KToolbar/index.js +2 -2
- package/lib/components/KToolbar/index.js.map +1 -1
- package/lib/components/KTooltip/KTooltip.js +20 -42
- package/lib/components/KTooltip/KTooltip.js.map +1 -1
- package/lib/components/KTooltip/index.js.map +1 -1
- package/lib/components/KTreeview/KTreeview.js +22 -81
- package/lib/components/KTreeview/KTreeview.js.map +1 -1
- package/lib/components/KTreeview/KTreeviewNode.js +5 -33
- package/lib/components/KTreeview/KTreeviewNode.js.map +1 -1
- package/lib/components/KTreeview/index.js.map +1 -1
- package/lib/components/KTreeview/util/filterTreeItems.js +0 -5
- package/lib/components/KTreeview/util/filterTreeItems.js.map +1 -1
- package/lib/components/KVirtualScroll/KVirtualScroll.js +6 -19
- package/lib/components/KVirtualScroll/KVirtualScroll.js.map +1 -1
- package/lib/components/KVirtualScroll/index.js.map +1 -1
- package/lib/components/KWindow/KWindow.js +11 -46
- package/lib/components/KWindow/KWindow.js.map +1 -1
- package/lib/components/KWindow/KWindowItem.js +17 -35
- package/lib/components/KWindow/KWindowItem.js.map +1 -1
- package/lib/components/KWindow/index.js.map +1 -1
- package/lib/components/index.js.map +1 -1
- package/lib/components/transitions/createTransition.js +0 -10
- package/lib/components/transitions/createTransition.js.map +1 -1
- package/lib/components/transitions/expand-transition.js +2 -13
- package/lib/components/transitions/expand-transition.js.map +1 -1
- package/lib/components/transitions/index.js +6 -6
- package/lib/components/transitions/index.js.map +1 -1
- package/lib/directives/click-outside/index.js +12 -27
- package/lib/directives/click-outside/index.js.map +1 -1
- package/lib/directives/color/index.js +0 -10
- package/lib/directives/color/index.js.map +1 -1
- package/lib/directives/index.js.map +1 -1
- package/lib/directives/intersect/index.js +6 -13
- package/lib/directives/intersect/index.js.map +1 -1
- package/lib/directives/mutate/index.js +10 -14
- package/lib/directives/mutate/index.js.map +1 -1
- package/lib/directives/resize/index.js +2 -6
- package/lib/directives/resize/index.js.map +1 -1
- package/lib/directives/ripple/index.js +12 -70
- package/lib/directives/ripple/index.js.map +1 -1
- package/lib/directives/scroll/index.js +2 -5
- package/lib/directives/scroll/index.js.map +1 -1
- package/lib/directives/touch/index.js +2 -12
- package/lib/directives/touch/index.js.map +1 -1
- package/lib/framework.js +11 -14
- package/lib/framework.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/install.js +7 -19
- package/lib/install.js.map +1 -1
- package/lib/locale/af.js +7 -1
- package/lib/locale/af.js.map +1 -1
- package/lib/locale/ar.js +27 -21
- package/lib/locale/ar.js.map +1 -1
- package/lib/locale/az.js +7 -1
- package/lib/locale/az.js.map +1 -1
- package/lib/locale/bg.js +7 -1
- package/lib/locale/bg.js.map +1 -1
- package/lib/locale/ca.js +14 -8
- package/lib/locale/ca.js.map +1 -1
- package/lib/locale/ckb.js +7 -1
- package/lib/locale/ckb.js.map +1 -1
- package/lib/locale/cs.js +7 -1
- package/lib/locale/cs.js.map +1 -1
- package/lib/locale/da.js +7 -1
- package/lib/locale/da.js.map +1 -1
- package/lib/locale/de.js +7 -1
- package/lib/locale/de.js.map +1 -1
- package/lib/locale/el.js +7 -1
- package/lib/locale/el.js.map +1 -1
- package/lib/locale/en.js +7 -1
- package/lib/locale/en.js.map +1 -1
- package/lib/locale/es.js +10 -4
- package/lib/locale/es.js.map +1 -1
- package/lib/locale/et.js +7 -1
- package/lib/locale/et.js.map +1 -1
- package/lib/locale/fa.js +7 -1
- package/lib/locale/fa.js.map +1 -1
- package/lib/locale/fi.js +12 -6
- package/lib/locale/fi.js.map +1 -1
- package/lib/locale/fr.js +8 -2
- package/lib/locale/fr.js.map +1 -1
- package/lib/locale/he.js +7 -1
- package/lib/locale/he.js.map +1 -1
- package/lib/locale/hr.js +7 -1
- package/lib/locale/hr.js.map +1 -1
- package/lib/locale/hu.js +7 -1
- package/lib/locale/hu.js.map +1 -1
- package/lib/locale/id.js +7 -1
- package/lib/locale/id.js.map +1 -1
- package/lib/locale/index.js.map +1 -1
- package/lib/locale/it.js +13 -7
- package/lib/locale/it.js.map +1 -1
- package/lib/locale/ja.js +7 -1
- package/lib/locale/ja.js.map +1 -1
- package/lib/locale/ko.js +7 -1
- package/lib/locale/ko.js.map +1 -1
- package/lib/locale/lt.js +7 -1
- package/lib/locale/lt.js.map +1 -1
- package/lib/locale/lv.js +7 -1
- package/lib/locale/lv.js.map +1 -1
- package/lib/locale/nl.js +7 -1
- package/lib/locale/nl.js.map +1 -1
- package/lib/locale/no.js +7 -1
- package/lib/locale/no.js.map +1 -1
- package/lib/locale/pl.js +7 -1
- package/lib/locale/pl.js.map +1 -1
- package/lib/locale/pt.js +7 -1
- package/lib/locale/pt.js.map +1 -1
- package/lib/locale/ro.js +7 -1
- package/lib/locale/ro.js.map +1 -1
- package/lib/locale/ru.js +7 -1
- package/lib/locale/ru.js.map +1 -1
- package/lib/locale/sk.js +7 -1
- package/lib/locale/sk.js.map +1 -1
- package/lib/locale/sl.js +7 -1
- package/lib/locale/sl.js.map +1 -1
- package/lib/locale/sr-Cyrl.js +7 -1
- package/lib/locale/sr-Cyrl.js.map +1 -1
- package/lib/locale/sr-Latn.js +7 -1
- package/lib/locale/sr-Latn.js.map +1 -1
- package/lib/locale/sv.js +7 -1
- package/lib/locale/sv.js.map +1 -1
- package/lib/locale/th.js +7 -1
- package/lib/locale/th.js.map +1 -1
- package/lib/locale/tr.js +7 -1
- package/lib/locale/tr.js.map +1 -1
- package/lib/locale/uk.js +7 -1
- package/lib/locale/uk.js.map +1 -1
- package/lib/locale/vi.js +7 -1
- package/lib/locale/vi.js.map +1 -1
- package/lib/locale/zh-Hans.js +7 -1
- package/lib/locale/zh-Hans.js.map +1 -1
- package/lib/locale/zh-Hant.js +7 -1
- package/lib/locale/zh-Hant.js.map +1 -1
- package/lib/mixins/activatable/index.js +13 -38
- package/lib/mixins/activatable/index.js.map +1 -1
- package/lib/mixins/applicationable/index.js +2 -14
- package/lib/mixins/applicationable/index.js.map +1 -1
- package/lib/mixins/binds-attrs/index.js +2 -7
- package/lib/mixins/binds-attrs/index.js.map +1 -1
- package/lib/mixins/bootable/index.js +9 -16
- package/lib/mixins/bootable/index.js.map +1 -1
- package/lib/mixins/button-group/index.js +0 -4
- package/lib/mixins/button-group/index.js.map +1 -1
- package/lib/mixins/colorable/index.js +16 -21
- package/lib/mixins/colorable/index.js.map +1 -1
- package/lib/mixins/comparable/index.js.map +1 -1
- package/lib/mixins/delayable/index.js +10 -13
- package/lib/mixins/delayable/index.js.map +1 -1
- package/lib/mixins/dependent/index.js +0 -15
- package/lib/mixins/dependent/index.js.map +1 -1
- package/lib/mixins/detachable/index.js +8 -23
- package/lib/mixins/detachable/index.js.map +1 -1
- package/lib/mixins/elevatable/index.js +0 -2
- package/lib/mixins/elevatable/index.js.map +1 -1
- package/lib/mixins/filterable/index.js +0 -1
- package/lib/mixins/filterable/index.js.map +1 -1
- package/lib/mixins/groupable/index.js +8 -11
- package/lib/mixins/groupable/index.js.map +1 -1
- package/lib/mixins/intersectable/index.js +4 -11
- package/lib/mixins/intersectable/index.js.map +1 -1
- package/lib/mixins/loadable/index.js +10 -12
- package/lib/mixins/loadable/index.js.map +1 -1
- package/lib/mixins/localable/index.js +0 -1
- package/lib/mixins/localable/index.js.map +1 -1
- package/lib/mixins/measurable/index.js +2 -3
- package/lib/mixins/measurable/index.js.map +1 -1
- package/lib/mixins/menuable/index.js +35 -74
- package/lib/mixins/menuable/index.js.map +1 -1
- package/lib/mixins/mobile/index.js +2 -8
- package/lib/mixins/mobile/index.js.map +1 -1
- package/lib/{components/KCalendar/mixins/mouse.js → mixins/mouse/index.js} +30 -52
- package/lib/mixins/mouse/index.js.map +1 -0
- package/lib/mixins/overlayable/index.js +10 -40
- package/lib/mixins/overlayable/index.js.map +1 -1
- package/lib/mixins/picker/index.js +7 -13
- package/lib/mixins/picker/index.js.map +1 -1
- package/lib/mixins/picker-button/index.js +2 -6
- package/lib/mixins/picker-button/index.js.map +1 -1
- package/lib/mixins/positionable/index.js +26 -26
- package/lib/mixins/positionable/index.js.map +1 -1
- package/lib/mixins/proxyable/index.js +0 -6
- package/lib/mixins/proxyable/index.js.map +1 -1
- package/lib/mixins/registrable/index.js +0 -4
- package/lib/mixins/registrable/index.js.map +1 -1
- package/lib/mixins/returnable/index.js +0 -3
- package/lib/mixins/returnable/index.js.map +1 -1
- package/lib/mixins/rippleable/index.js +2 -3
- package/lib/mixins/rippleable/index.js.map +1 -1
- package/lib/mixins/roundable/index.js +0 -5
- package/lib/mixins/roundable/index.js.map +1 -1
- package/lib/mixins/routable/index.js +15 -31
- package/lib/mixins/routable/index.js.map +1 -1
- package/lib/mixins/scrollable/index.js +22 -33
- package/lib/mixins/scrollable/index.js.map +1 -1
- package/lib/mixins/selectable/index.js +10 -31
- package/lib/mixins/selectable/index.js.map +1 -1
- package/lib/mixins/sizeable/index.js +0 -2
- package/lib/mixins/sizeable/index.js.map +1 -1
- package/lib/mixins/ssr-bootable/index.js +7 -10
- package/lib/mixins/ssr-bootable/index.js.map +1 -1
- package/lib/mixins/stackable/index.js +10 -16
- package/lib/mixins/stackable/index.js.map +1 -1
- package/lib/mixins/themeable/index.js +2 -12
- package/lib/mixins/themeable/index.js.map +1 -1
- package/lib/mixins/toggleable/index.js +0 -5
- package/lib/mixins/toggleable/index.js.map +1 -1
- package/lib/mixins/transitionable/index.js.map +1 -1
- package/lib/mixins/translatable/index.js +0 -7
- package/lib/mixins/translatable/index.js.map +1 -1
- package/lib/mixins/validatable/index.js +16 -48
- package/lib/mixins/validatable/index.js.map +1 -1
- package/lib/presets/default/index.js +2 -2
- package/lib/presets/default/index.js.map +1 -1
- package/lib/services/application/index.js +1 -7
- package/lib/services/application/index.js.map +1 -1
- package/lib/services/breakpoint/index.js +10 -27
- package/lib/services/breakpoint/index.js.map +1 -1
- package/lib/services/goto/easing-patterns.js +24 -24
- package/lib/services/goto/easing-patterns.js.map +1 -1
- package/lib/services/goto/index.js +6 -17
- package/lib/services/goto/index.js.map +1 -1
- package/lib/services/goto/util.js +0 -7
- package/lib/services/goto/util.js.map +1 -1
- package/lib/services/icons/index.js +4 -5
- package/lib/services/icons/index.js.map +1 -1
- package/lib/services/icons/presets/fa-svg.js +0 -2
- package/lib/services/icons/presets/fa-svg.js.map +1 -1
- package/lib/services/icons/presets/fa.js +1 -1
- package/lib/services/icons/presets/fa.js.map +1 -1
- package/lib/services/icons/presets/fa4.js.map +1 -1
- package/lib/services/icons/presets/index.js.map +1 -1
- package/lib/services/icons/presets/md.js.map +1 -1
- package/lib/services/icons/presets/mdi-svg.js +5 -5
- package/lib/services/icons/presets/mdi-svg.js.map +1 -1
- package/lib/services/icons/presets/mdi.js.map +1 -1
- package/lib/services/index.js.map +1 -1
- package/lib/services/lang/index.js +2 -11
- package/lib/services/lang/index.js.map +1 -1
- package/lib/services/presets/index.js +8 -11
- package/lib/services/presets/index.js.map +1 -1
- package/lib/services/service/index.js +0 -2
- package/lib/services/service/index.js.map +1 -1
- package/lib/services/theme/index.js +26 -71
- package/lib/services/theme/index.js.map +1 -1
- package/lib/services/theme/utils.js +4 -21
- package/lib/services/theme/utils.js.map +1 -1
- package/lib/util/color/transformCIELAB.js +0 -3
- package/lib/util/color/transformCIELAB.js.map +1 -1
- package/lib/util/color/transformSRGB.js +16 -20
- package/lib/util/color/transformSRGB.js.map +1 -1
- package/lib/util/colorUtils.js +15 -34
- package/lib/util/colorUtils.js.map +1 -1
- package/lib/util/colors.js.map +1 -1
- package/lib/util/console.js +0 -15
- package/lib/util/console.js.map +1 -1
- package/lib/util/dateTimeUtils.js +0 -10
- package/lib/util/dateTimeUtils.js.map +1 -1
- package/lib/util/dedupeModelListeners.js +3 -3
- package/lib/util/dedupeModelListeners.js.map +1 -1
- package/lib/util/dom.js +8 -10
- package/lib/util/dom.js.map +1 -1
- package/lib/util/helpers.js +40 -97
- package/lib/util/helpers.js.map +1 -1
- package/lib/util/mergeData.js +6 -31
- package/lib/util/mergeData.js.map +1 -1
- package/lib/util/mixins.js.map +1 -1
- package/lib/util/rebuildFunctionalSlots.js +0 -2
- package/lib/util/rebuildFunctionalSlots.js.map +1 -1
- package/package.json +36 -36
- package/src/components/KAlert/KAlert.ts +4 -3
- package/src/components/KApp/KApp.ts +3 -2
- package/src/components/KAppBar/KAppBarTitle.ts +3 -3
- package/src/components/KAutocomplete/KAutocomplete.sass +0 -4
- package/src/components/KAutocomplete/KAutocomplete.ts +0 -4
- package/src/components/KAvatar/KAvatar.ts +2 -2
- package/src/components/KBanner/KBanner.ts +20 -17
- package/src/components/KBottomNavigation/KBottomNavigation.ts +16 -3
- package/src/components/KBottomSheet/KBottomSheet.ts +1 -4
- package/src/components/KBreadcrumbs/KBreadcrumbs.ts +2 -1
- package/src/components/KBreadcrumbs/KBreadcrumbsItem.ts +2 -1
- package/src/components/KBtn/KBtn.sass +1 -1
- package/src/components/KBtn/KBtn.ts +3 -2
- package/src/components/KCalendar/KCalendar.ts +4 -0
- package/src/components/KCalendar/KCalendarCategory.sass +9 -3
- package/src/components/KCalendar/KCalendarDaily.ts +9 -8
- package/src/components/KCalendar/KCalendarWeekly.ts +16 -2
- package/src/components/KCalendar/mixins/calendar-base.ts +1 -1
- package/src/components/KCalendar/mixins/calendar-with-events.ts +19 -17
- package/src/components/KCard/KCard.ts +2 -1
- package/src/components/KCarousel/KCarousel.ts +1 -0
- package/src/components/KCheckbox/KSimpleCheckbox.ts +3 -2
- package/src/components/KChip/KChip.sass +1 -1
- package/src/components/KChip/KChip.ts +2 -1
- package/src/components/KColorPicker/KColorPickerSwatches.sass +1 -1
- package/src/components/KColorPicker/_variables.scss +2 -1
- package/src/components/KCombobox/KCombobox.ts +2 -1
- package/src/components/KData/KData.ts +2 -4
- package/src/components/KDataIterator/KDataIterator.ts +7 -7
- package/src/components/KDataTable/KDataTable.ts +74 -22
- package/src/components/KDataTable/KDataTableHeaderDesktop.ts +1 -1
- package/src/components/KDataTable/KEditDialog.ts +3 -3
- package/src/components/KDataTable/KSimpleTable.ts +4 -4
- package/src/components/KDataTable/KVirtualTable.ts +3 -3
- package/src/components/KDataTable/MobileRow.ts +2 -2
- package/src/components/KDataTable/Row.ts +2 -2
- package/src/components/KDatePicker/KDatePicker.ts +12 -6
- package/src/components/KDatePicker/KDatePickerHeader.ts +2 -1
- package/src/components/KDialog/KDialog.sass +2 -2
- package/src/components/KDialog/KDialog.ts +17 -23
- package/src/components/KExpansionPanel/KExpansionPanel.sass +2 -2
- package/src/components/KExpansionPanel/KExpansionPanelContent.ts +1 -1
- package/src/components/KExpansionPanel/KExpansionPanelHeader.ts +1 -1
- package/src/components/KFileInput/KFileInput.ts +7 -2
- package/src/components/KFooter/KFooter.ts +2 -2
- package/src/components/KForm/KForm.ts +2 -1
- package/src/components/KImg/KImg.ts +4 -2
- package/src/components/KInput/KInput.sass +1 -4
- package/src/components/KInput/KInput.ts +15 -3
- package/src/components/KItemGroup/KItem.sass +4 -0
- package/src/components/KItemGroup/KItem.ts +12 -1
- package/src/components/KItemGroup/KItemGroup.ts +9 -6
- package/src/components/KLabel/KLabel.ts +5 -4
- package/src/components/KList/KList.ts +3 -1
- package/src/components/KList/KListGroup.ts +7 -5
- package/src/components/KList/KListItem.ts +10 -10
- package/src/components/KMain/KMain.ts +2 -1
- package/src/components/KMenu/KMenu.ts +11 -10
- package/src/components/KNavigationDrawer/KNavigationDrawer.ts +5 -8
- package/src/components/KOtpInput/KOtpInput.ts +24 -42
- package/src/components/KOverflowBtn/KOverflowBtn.ts +3 -0
- package/src/components/KOverlay/KOverlay.ts +2 -1
- package/src/components/KPagination/KPagination.ts +20 -14
- package/src/components/KParallax/KParallax.ts +3 -2
- package/src/components/KPicker/KPicker.ts +4 -4
- package/src/components/KProgressCircular/KProgressCircular.ts +2 -2
- package/src/components/KRadioGroup/KRadio.sass +0 -4
- package/src/components/KRadioGroup/KRadio.ts +11 -4
- package/src/components/KRadioGroup/KRadioGroup.ts +0 -4
- package/src/components/KResponsive/KResponsive.ts +2 -1
- package/src/components/KSelect/KSelect.sass +4 -2
- package/src/components/KSelect/KSelect.ts +29 -16
- package/src/components/KSelect/KSelectList.ts +15 -15
- package/src/components/KSkeletonLoader/KSkeletonLoader.sass +1 -1
- package/src/components/KSkeletonLoader/KSkeletonLoader.ts +10 -5
- package/src/components/KSlideGroup/KSlideGroup.ts +37 -15
- package/src/components/KSlider/KSlider.ts +1 -7
- package/src/components/KSpeedDial/KSpeedDial.ts +3 -2
- package/src/components/KStepper/KStepper.sass +6 -6
- package/src/components/KStepper/KStepper.ts +2 -1
- package/src/components/KStepper/KStepperContent.ts +2 -2
- package/src/components/KStepper/KStepperStep.ts +15 -3
- package/src/components/KSubheader/KSubheader.ts +2 -1
- package/src/components/KSwitch/KSwitch.sass +3 -2
- package/src/components/KSwitch/KSwitch.ts +2 -2
- package/src/components/KSystemBar/KSystemBar.sass +4 -0
- package/src/components/KTabs/KTab.ts +18 -5
- package/src/components/KTabs/KTabs.sass +1 -1
- package/src/components/KTabs/KTabs.ts +12 -2
- package/src/components/KTabs/_variables.scss +1 -0
- package/src/components/KTextField/KTextField.sass +10 -1
- package/src/components/KTextField/KTextField.ts +2 -2
- package/src/components/KTextField/_mixins.sass +7 -7
- package/src/components/KTextarea/KTextarea.sass +22 -0
- package/src/components/KTimePicker/KTimePicker.ts +19 -1
- package/src/components/KTimeline/KTimeline.sass +16 -9
- package/src/components/KTimeline/KTimeline.ts +2 -1
- package/src/components/KTimeline/KTimelineItem.ts +4 -7
- package/src/components/KTimeline/_mixins.sass +4 -3
- package/src/components/KTooltip/KTooltip.ts +15 -9
- package/src/components/KTreeview/KTreeview.ts +6 -1
- package/src/components/KWindow/KWindow.ts +2 -1
- package/src/components/KWindow/KWindowItem.ts +2 -2
- package/src/directives/click-outside/index.ts +2 -2
- package/src/directives/ripple/KRipple.sass +4 -1
- package/src/directives/ripple/index.ts +1 -8
- package/src/globals.d.ts +6 -6
- package/src/install.ts +1 -1
- package/src/locale/af.ts +6 -0
- package/src/locale/ar.ts +26 -20
- package/src/locale/az.ts +6 -0
- package/src/locale/bg.ts +6 -0
- package/src/locale/ca.ts +13 -7
- package/src/locale/ckb.ts +6 -0
- package/src/locale/cs.ts +6 -0
- package/src/locale/da.ts +6 -0
- package/src/locale/de.ts +6 -0
- package/src/locale/el.ts +6 -0
- package/src/locale/en.ts +6 -0
- package/src/locale/es.ts +9 -3
- package/src/locale/et.ts +6 -0
- package/src/locale/fa.ts +6 -0
- package/src/locale/fi.ts +11 -5
- package/src/locale/fr.ts +7 -1
- package/src/locale/he.ts +6 -0
- package/src/locale/hr.ts +6 -0
- package/src/locale/hu.ts +6 -0
- package/src/locale/id.ts +6 -0
- package/src/locale/it.ts +12 -6
- package/src/locale/ja.ts +6 -0
- package/src/locale/ko.ts +6 -0
- package/src/locale/lt.ts +6 -0
- package/src/locale/lv.ts +6 -0
- package/src/locale/nl.ts +6 -0
- package/src/locale/no.ts +6 -0
- package/src/locale/pl.ts +6 -0
- package/src/locale/pt.ts +6 -0
- package/src/locale/ro.ts +6 -0
- package/src/locale/ru.ts +6 -0
- package/src/locale/sk.ts +6 -0
- package/src/locale/sl.ts +6 -0
- package/src/locale/sr-Cyrl.ts +6 -0
- package/src/locale/sr-Latn.ts +6 -0
- package/src/locale/sv.ts +6 -0
- package/src/locale/th.ts +6 -0
- package/src/locale/tr.ts +6 -0
- package/src/locale/uk.ts +6 -0
- package/src/locale/vi.ts +6 -0
- package/src/locale/zh-Hans.ts +6 -0
- package/src/locale/zh-Hant.ts +6 -0
- package/src/mixins/activatable/index.ts +6 -2
- package/src/mixins/binds-attrs/index.ts +2 -4
- package/src/mixins/dependent/index.ts +3 -3
- package/src/mixins/detachable/index.ts +3 -3
- package/src/mixins/groupable/index.ts +9 -2
- package/src/mixins/loadable/index.ts +2 -1
- package/src/mixins/menuable/index.ts +14 -9
- package/src/{components/KCalendar/mixins/mouse.ts → mixins/mouse/index.ts} +27 -16
- package/src/mixins/overlayable/index.ts +8 -8
- package/src/mixins/picker/index.ts +2 -1
- package/src/mixins/routable/index.ts +5 -8
- package/src/mixins/selectable/index.ts +6 -4
- package/src/mixins/validatable/index.ts +10 -4
- package/src/services/application/index.ts +1 -1
- package/src/services/icons/presets/fa.ts +1 -1
- package/src/services/icons/presets/mdi-svg.ts +5 -5
- package/src/styles/components/_selection-controls.sass +3 -0
- package/src/styles/settings/_variables.scss +4 -3
- package/src/util/helpers.ts +12 -17
- package/types/index.d.ts +8 -2
- package/types/lib.d.ts +2 -0
- package/LICENSE.md +0 -21
- package/es5/components/KCalendar/mixins/mouse.js +0 -117
- package/es5/components/KCalendar/mixins/mouse.js.map +0 -1
- package/es5/util/component.js +0 -11
- package/es5/util/component.js.map +0 -1
- package/lib/components/KCalendar/mixins/mouse.js.map +0 -1
- package/lib/util/component.js +0 -4
- package/lib/util/component.js.map +0 -1
- package/src/directives/ripple/_variables.scss +0 -6
- package/src/util/component.ts +0 -21
- package/types/.npmignore +0 -2
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
// Styles
|
|
2
|
-
import "
|
|
2
|
+
import "../../../src/components/KRadioGroup/KRadio.sass";
|
|
3
3
|
import KLabel from '../KLabel';
|
|
4
4
|
import KIcon from '../KIcon';
|
|
5
|
-
import KInput from '../KInput';
|
|
6
|
-
|
|
5
|
+
import KInput from '../KInput';
|
|
6
|
+
// Mixins
|
|
7
7
|
import BindsAttrs from '../../mixins/binds-attrs';
|
|
8
8
|
import Colorable from '../../mixins/colorable';
|
|
9
9
|
import { factory as GroupableFactory } from '../../mixins/groupable';
|
|
10
10
|
import Rippleable from '../../mixins/rippleable';
|
|
11
11
|
import Themeable from '../../mixins/themeable';
|
|
12
|
-
import Selectable, { prevent } from '../../mixins/selectable';
|
|
13
|
-
|
|
12
|
+
import Selectable, { prevent } from '../../mixins/selectable';
|
|
13
|
+
// Utilities
|
|
14
14
|
import { getSlot } from '../../util/helpers';
|
|
15
15
|
import mixins from '../../util/mixins';
|
|
16
16
|
import { mergeListeners } from '../../util/mergeData';
|
|
17
17
|
const baseMixins = mixins(BindsAttrs, Colorable, Rippleable, GroupableFactory('radioGroup'), Themeable);
|
|
18
18
|
/* @kdujs/component */
|
|
19
|
-
|
|
20
19
|
export default baseMixins.extend().extend({
|
|
21
20
|
name: 'k-radio',
|
|
22
21
|
inheritAttrs: false,
|
|
23
22
|
props: {
|
|
24
|
-
disabled:
|
|
23
|
+
disabled: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: null
|
|
26
|
+
},
|
|
25
27
|
id: String,
|
|
26
28
|
label: String,
|
|
27
29
|
name: String,
|
|
@@ -33,7 +35,10 @@ export default baseMixins.extend().extend({
|
|
|
33
35
|
type: String,
|
|
34
36
|
default: '$radioOn'
|
|
35
37
|
},
|
|
36
|
-
readonly:
|
|
38
|
+
readonly: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: null
|
|
41
|
+
},
|
|
37
42
|
value: {
|
|
38
43
|
default: null
|
|
39
44
|
}
|
|
@@ -50,49 +55,40 @@ export default baseMixins.extend().extend({
|
|
|
50
55
|
...this.groupClasses
|
|
51
56
|
};
|
|
52
57
|
},
|
|
53
|
-
|
|
54
58
|
computedColor() {
|
|
59
|
+
if (this.isDisabled) return undefined;
|
|
55
60
|
return Selectable.options.computed.computedColor.call(this);
|
|
56
61
|
},
|
|
57
|
-
|
|
58
62
|
computedIcon() {
|
|
59
63
|
return this.isActive ? this.onIcon : this.offIcon;
|
|
60
64
|
},
|
|
61
|
-
|
|
62
65
|
computedId() {
|
|
63
66
|
return KInput.options.computed.computedId.call(this);
|
|
64
67
|
},
|
|
65
|
-
|
|
66
68
|
hasLabel: KInput.options.computed.hasLabel,
|
|
67
|
-
|
|
68
69
|
hasState() {
|
|
69
70
|
return (this.radioGroup || {}).hasState;
|
|
70
71
|
},
|
|
71
|
-
|
|
72
72
|
isDisabled() {
|
|
73
|
-
|
|
73
|
+
var _a;
|
|
74
|
+
return (_a = this.disabled) !== null && _a !== void 0 ? _a : !!this.radioGroup && this.radioGroup.isDisabled;
|
|
74
75
|
},
|
|
75
|
-
|
|
76
76
|
isReadonly() {
|
|
77
|
-
|
|
77
|
+
var _a;
|
|
78
|
+
return (_a = this.readonly) !== null && _a !== void 0 ? _a : !!this.radioGroup && this.radioGroup.isReadonly;
|
|
78
79
|
},
|
|
79
|
-
|
|
80
80
|
computedName() {
|
|
81
81
|
if (this.name || !this.radioGroup) {
|
|
82
82
|
return this.name;
|
|
83
83
|
}
|
|
84
|
-
|
|
85
84
|
return this.radioGroup.name || `radio-${this.radioGroup._uid}`;
|
|
86
85
|
},
|
|
87
|
-
|
|
88
86
|
rippleState() {
|
|
89
87
|
return Selectable.options.computed.rippleState.call(this);
|
|
90
88
|
},
|
|
91
|
-
|
|
92
89
|
validationState() {
|
|
93
90
|
return (this.radioGroup || {}).validationState || this.computedColor;
|
|
94
91
|
}
|
|
95
|
-
|
|
96
92
|
},
|
|
97
93
|
methods: {
|
|
98
94
|
genInput(args) {
|
|
@@ -101,7 +97,6 @@ export default baseMixins.extend().extend({
|
|
|
101
97
|
// genInput method is exactly what we need
|
|
102
98
|
return Selectable.options.methods.genInput.call(this, 'radio', args);
|
|
103
99
|
},
|
|
104
|
-
|
|
105
100
|
genLabel() {
|
|
106
101
|
if (!this.hasLabel) return null;
|
|
107
102
|
return this.$createElement(KLabel, {
|
|
@@ -118,7 +113,6 @@ export default baseMixins.extend().extend({
|
|
|
118
113
|
}
|
|
119
114
|
}, getSlot(this, 'label') || this.label);
|
|
120
115
|
},
|
|
121
|
-
|
|
122
116
|
genRadio() {
|
|
123
117
|
const {
|
|
124
118
|
title,
|
|
@@ -136,25 +130,20 @@ export default baseMixins.extend().extend({
|
|
|
136
130
|
...radioAttrs
|
|
137
131
|
}), this.genRipple(this.setTextColor(this.rippleState))]);
|
|
138
132
|
},
|
|
139
|
-
|
|
140
133
|
onFocus(e) {
|
|
141
134
|
this.isFocused = true;
|
|
142
135
|
this.$emit('focus', e);
|
|
143
136
|
},
|
|
144
|
-
|
|
145
137
|
onBlur(e) {
|
|
146
138
|
this.isFocused = false;
|
|
147
139
|
this.$emit('blur', e);
|
|
148
140
|
},
|
|
149
|
-
|
|
150
141
|
onChange() {
|
|
151
142
|
if (this.isDisabled || this.isReadonly || this.isActive) return;
|
|
152
143
|
this.toggle();
|
|
153
144
|
},
|
|
154
|
-
|
|
155
|
-
onKeydown: () => {}
|
|
145
|
+
onKeydown: () => {} // Override default with noop
|
|
156
146
|
},
|
|
157
|
-
|
|
158
147
|
render(h) {
|
|
159
148
|
const data = {
|
|
160
149
|
staticClass: 'k-radio',
|
|
@@ -168,6 +157,5 @@ export default baseMixins.extend().extend({
|
|
|
168
157
|
};
|
|
169
158
|
return h('div', data, [this.genRadio(), this.genLabel()]);
|
|
170
159
|
}
|
|
171
|
-
|
|
172
160
|
});
|
|
173
161
|
//# sourceMappingURL=KRadio.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/KRadioGroup/KRadio.ts"],"names":[],"mappings":"AAAA;AACA,OAAO,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/KRadioGroup/KRadio.ts"],"names":[],"mappings":"AAAA;AACA,OAAO,iDAAe;AAItB,OAAO,MAAM,MAAM,WAAW;AAC9B,OAAO,KAAK,MAAM,UAAU;AAC5B,OAAO,MAAM,MAAM,WAAW;AAE9B;AACA,OAAO,UAAU,MAAM,0BAA0B;AACjD,OAAO,SAAS,MAAM,wBAAwB;AAC9C,SAAS,OAAO,IAAI,gBAAgB,QAAQ,wBAAwB;AACpE,OAAO,UAAU,MAAM,yBAAyB;AAChD,OAAO,SAAS,MAAM,wBAAwB;AAC9C,OAAO,UAAU,IAAI,OAAO,QAAQ,yBAAyB;AAE7D;AACA,SAAS,OAAO,QAAQ,oBAAoB;AAI5C,OAAO,MAAM,MAAM,mBAAmB;AACtC,SAAS,cAAc,QAAQ,sBAAsB;AAErD,MAAM,UAAU,GAAG,MAAM,CACvB,UAAU,EACV,SAAS,EACT,UAAU,EACV,gBAAgB,CAAC,YAAY,CAAC,EAC9B,SAAS,CACV;AAMD;AACA,eAAe,UAAU,CAAC,MAAM,CAAA,CAAW,CAAC,MAAM,CAAC;EACjD,IAAI,EAAE,SA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EAAE;MAEzD,IAAI,CAAC,MAAM,CAAA,CAAE;IACf,CAAC;IACD,SAAS,EAAE,CAAA,KAAK,CAAE,CAAC,CAAE;GACtB;EAED,MAAM,CAAE,CAAC,EAAA;IACP,MAAM,IAAI,GAAc;MACtB,WAAW,EAAE,SAAS;MACtB,KAAK,EAAE,IAAI,CAAC,OAAO;MACnB,EAAE,EAAE,cAAc,CAAC;QACjB,KAAK,EAAE,IAAI,CAAC;OACb,EAAE,IAAI,CAAC,UAAU,CAAC;MACnB,KAAK,EAAE;QAAE,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC;MAAK;KAClC;IAED,OAAO,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,CACpB,IAAI,CAAC,QAAQ,CAAA,CAAE,EACf,IAAI,CAAC,QAAQ,CAAA,CAAE,CAChB,CAAC;EACJ;CACD,CAAC","sourcesContent":["// Styles\nimport './KRadio.sass'\n\n// Components\nimport KRadioGroup from './KRadioGroup'\nimport KLabel from '../KLabel'\nimport KIcon from '../KIcon'\nimport KInput from '../KInput'\n\n// Mixins\nimport BindsAttrs from '../../mixins/binds-attrs'\nimport Colorable from '../../mixins/colorable'\nimport { factory as GroupableFactory } from '../../mixins/groupable'\nimport Rippleable from '../../mixins/rippleable'\nimport Themeable from '../../mixins/themeable'\nimport Selectable, { prevent } from '../../mixins/selectable'\n\n// Utilities\nimport { getSlot } from '../../util/helpers'\n\n// Types\nimport { KNode, KNodeData } from 'kdu'\nimport mixins from '../../util/mixins'\nimport { mergeListeners } from '../../util/mergeData'\n\nconst baseMixins = mixins(\n BindsAttrs,\n Colorable,\n Rippleable,\n GroupableFactory('radioGroup'),\n Themeable\n)\n\ninterface options extends InstanceType<typeof baseMixins> {\n radioGroup: InstanceType<typeof KRadioGroup>\n}\n\n/* @kdujs/component */\nexport default baseMixins.extend<options>().extend({\n name: 'k-radio',\n\n inheritAttrs: false,\n\n props: {\n disabled: {\n type: Boolean,\n default: null,\n },\n id: String,\n label: String,\n name: String,\n offIcon: {\n type: String,\n default: '$radioOff',\n },\n onIcon: {\n type: String,\n default: '$radioOn',\n },\n readonly: {\n type: Boolean,\n default: null,\n },\n value: {\n default: null,\n },\n },\n\n data: () => ({\n isFocused: false,\n }),\n\n computed: {\n classes (): object {\n return {\n 'k-radio--is-disabled': this.isDisabled,\n 'k-radio--is-focused': this.isFocused,\n ...this.themeClasses,\n ...this.groupClasses,\n }\n },\n computedColor (): string | undefined {\n if (this.isDisabled) return undefined\n return Selectable.options.computed.computedColor.call(this)\n },\n computedIcon (): string {\n return this.isActive\n ? this.onIcon\n : this.offIcon\n },\n computedId (): string {\n return KInput.options.computed.computedId.call(this)\n },\n hasLabel: KInput.options.computed.hasLabel,\n hasState (): boolean {\n return (this.radioGroup || {}).hasState\n },\n isDisabled (): boolean {\n return this.disabled ?? (\n !!this.radioGroup &&\n this.radioGroup.isDisabled\n )\n },\n isReadonly (): boolean {\n return this.readonly ?? (\n !!this.radioGroup &&\n this.radioGroup.isReadonly\n )\n },\n computedName (): string {\n if (this.name || !this.radioGroup) {\n return this.name\n }\n\n return this.radioGroup.name || `radio-${this.radioGroup._uid}`\n },\n rippleState (): string | undefined {\n return Selectable.options.computed.rippleState.call(this)\n },\n validationState (): string | undefined {\n return (this.radioGroup || {}).validationState || this.computedColor\n },\n },\n\n methods: {\n genInput (args: any) {\n // We can't actually use the mixin directly because\n // it's made for standalone components, but its\n // genInput method is exactly what we need\n return Selectable.options.methods.genInput.call(this, 'radio', args)\n },\n genLabel () {\n if (!this.hasLabel) return null\n\n return this.$createElement(KLabel, {\n on: {\n // Label shouldn't cause the input to focus\n click: prevent,\n },\n attrs: {\n for: this.computedId,\n },\n props: {\n color: this.validationState,\n focused: this.hasState,\n },\n }, getSlot(this, 'label') || this.label)\n },\n genRadio () {\n const { title, ...radioAttrs } = this.attrs$\n\n return this.$createElement('div', {\n staticClass: 'k-input--selection-controls__input',\n }, [\n this.$createElement(KIcon, this.setTextColor(this.validationState, {\n props: {\n dense: this.radioGroup && this.radioGroup.dense,\n },\n }), this.computedIcon),\n this.genInput({\n name: this.computedName,\n value: this.value,\n ...radioAttrs,\n }),\n this.genRipple(this.setTextColor(this.rippleState)),\n ])\n },\n onFocus (e: Event) {\n this.isFocused = true\n this.$emit('focus', e)\n },\n onBlur (e: Event) {\n this.isFocused = false\n this.$emit('blur', e)\n },\n onChange () {\n if (this.isDisabled || this.isReadonly || this.isActive) return\n\n this.toggle()\n },\n onKeydown: () => {}, // Override default with noop\n },\n\n render (h): KNode {\n const data: KNodeData = {\n staticClass: 'k-radio',\n class: this.classes,\n on: mergeListeners({\n click: this.onChange,\n }, this.listeners$),\n attrs: { title: this.attrs$.title },\n }\n\n return h('div', data, [\n this.genRadio(),\n this.genLabel(),\n ])\n },\n})\n"],"sourceRoot":"","file":"KRadio.js"}
|
|
@@ -1,25 +1,20 @@
|
|
|
1
1
|
// Styles
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
|
|
2
|
+
import "../../../src/styles/components/_selection-controls.sass";
|
|
3
|
+
import "../../../src/components/KRadioGroup/KRadioGroup.sass";
|
|
4
|
+
// Extensions
|
|
5
5
|
import KInput from '../KInput';
|
|
6
|
-
import { BaseItemGroup } from '../KItemGroup/KItemGroup';
|
|
7
|
-
|
|
8
|
-
import Comparable from '../../mixins/comparable'; // Types
|
|
9
|
-
|
|
6
|
+
import { BaseItemGroup } from '../KItemGroup/KItemGroup';
|
|
7
|
+
// Types
|
|
10
8
|
import mixins from '../../util/mixins';
|
|
11
|
-
const baseMixins = mixins(
|
|
9
|
+
const baseMixins = mixins(BaseItemGroup, KInput);
|
|
12
10
|
/* @kdujs/component */
|
|
13
|
-
|
|
14
11
|
export default baseMixins.extend({
|
|
15
12
|
name: 'k-radio-group',
|
|
16
|
-
|
|
17
13
|
provide() {
|
|
18
14
|
return {
|
|
19
15
|
radioGroup: this
|
|
20
16
|
};
|
|
21
17
|
},
|
|
22
|
-
|
|
23
18
|
props: {
|
|
24
19
|
column: {
|
|
25
20
|
type: Boolean,
|
|
@@ -38,13 +33,13 @@ export default baseMixins.extend({
|
|
|
38
33
|
},
|
|
39
34
|
computed: {
|
|
40
35
|
classes() {
|
|
41
|
-
return {
|
|
36
|
+
return {
|
|
37
|
+
...KInput.options.computed.classes.call(this),
|
|
42
38
|
'k-input--selection-controls k-input--radio-group': true,
|
|
43
39
|
'k-input--radio-group--column': this.column && !this.row,
|
|
44
40
|
'k-input--radio-group--row': this.row
|
|
45
41
|
};
|
|
46
42
|
}
|
|
47
|
-
|
|
48
43
|
},
|
|
49
44
|
methods: {
|
|
50
45
|
genDefaultSlot() {
|
|
@@ -57,33 +52,26 @@ export default baseMixins.extend({
|
|
|
57
52
|
}
|
|
58
53
|
}, KInput.options.methods.genDefaultSlot.call(this));
|
|
59
54
|
},
|
|
60
|
-
|
|
61
55
|
genInputSlot() {
|
|
62
56
|
const render = KInput.options.methods.genInputSlot.call(this);
|
|
63
57
|
delete render.data.on.click;
|
|
64
58
|
return render;
|
|
65
59
|
},
|
|
66
|
-
|
|
67
60
|
genLabel() {
|
|
68
61
|
const label = KInput.options.methods.genLabel.call(this);
|
|
69
62
|
if (!label) return null;
|
|
70
|
-
label.data.attrs.id = this.computedId;
|
|
71
|
-
|
|
63
|
+
label.data.attrs.id = this.computedId;
|
|
64
|
+
// WAI considers this an orphaned label
|
|
72
65
|
delete label.data.attrs.for;
|
|
73
66
|
label.tag = 'legend';
|
|
74
67
|
return label;
|
|
75
68
|
},
|
|
76
|
-
|
|
77
69
|
onClick: BaseItemGroup.options.methods.onClick
|
|
78
70
|
},
|
|
79
|
-
|
|
80
71
|
render(h) {
|
|
81
72
|
const knode = KInput.options.render.call(this, h);
|
|
82
|
-
|
|
83
73
|
this._b(knode.data, 'div', this.attrs$);
|
|
84
|
-
|
|
85
74
|
return knode;
|
|
86
75
|
}
|
|
87
|
-
|
|
88
76
|
});
|
|
89
77
|
//# sourceMappingURL=KRadioGroup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/KRadioGroup/KRadioGroup.ts"],"names":[],"mappings":"AAAA;AACA,OAAO
|
|
1
|
+
{"version":3,"sources":["../../../src/components/KRadioGroup/KRadioGroup.ts"],"names":[],"mappings":"AAAA;AACA,OAAO,yDAAkD;AACzD,OAAO,sDAAoB;AAE3B;AACA,OAAO,MAAM,MAAM,WAAW;AAC9B,SAAS,aAAa,QAAQ,0BAA0B;AAExD;AACA,OAAO,MAAM,MAAM,mBAAmB;AAGtC,MAAM,UAAU,GAAG,MAAM,CACvB,aAAa,EACb,MAAM,CACP;AAED;AACA,eAAe,UAAU,CAAC,MAAM,CAAC;EAC/B,IAAI,EAAE,eAAe;EAErB,OAAO,CAAA,EAAA;IACL,OAAO;MACL,UAAU,EAAE;KACb;EACH,CAAC;EAED,KAAK,EAAE;IACL,MAAM,EAAE;MACN,IAAI,EAAE,OAAO;MACb,OAAO,EAAE;KACV;IACD,MAAM,EAAE;MACN,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;MACtB,OAAO,EAAE;KACV;IACD,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,OAAO;IACZ;IACA;IACA;IACA,KAAK,EAAE;GACR;EAED,QAAQ,EAAE;IACR,OAAO,CAAA,EAAA;MACL,OAAO;QACL,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;QAC7C,kDAAkD,EAAE,IAAI;QACxD,8BAA8B,EAAE,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG;QACxD,2BAA2B,EAAE,IAAI,CAAC;OACnC;IACH;GACD;EAED,OAAO,EAAE;IACP,cAAc,CAAA,EAAA;MACZ,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE;QAChC,WAAW,EAAE,6BAA6B;QAC1C,KAAK,EAAE;UACL,EAAE,EAAE,IAAI,CAAC,EAAE;UACX,IAAI,EAAE,YAAY;UAClB,iBAAiB,EAAE,IAAI,CAAC;QACzB;OACF,EAAE,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IACD,YAAY,CAAA,EAAA;MACV,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;MAE7D,OAAO,MAAM,CAAC,IAAK,CAAC,EAAG,CAAC,KAAK;MAE7B,OAAO,MAAM;IACf,CAAC;IACD,QAAQ,CAAA,EAAA;MACN,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;MAExD,IAAI,CAAC,KAAK,EAAE,OAAO,IAAI;MAEvB,KAAK,CAAC,IAAK,CAAC,KAAM,CAAC,EAAE,GAAG,IAAI,CAAC,UAAU;MACvC;MACA,OAAO,KAAK,CAAC,IAAK,CAAC,KAAM,CAAC,GAAG;MAC7B,KAAK,CAAC,GAAG,GAAG,QAAQ;MAEpB,OAAO,KAAK;IACd,CAAC;IACD,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,OAAO,CAAC;GACxC;EAED,MAAM,CAAE,CAAC,EAAA;IACP,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IAEjD,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,IAAK,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC;IAExC,OAAO,KAAK;EACd;CACD,CAAC","sourcesContent":["// Styles\nimport '../../styles/components/_selection-controls.sass'\nimport './KRadioGroup.sass'\n\n// Extensions\nimport KInput from '../KInput'\nimport { BaseItemGroup } from '../KItemGroup/KItemGroup'\n\n// Types\nimport mixins from '../../util/mixins'\nimport { PropType } from 'kdu'\n\nconst baseMixins = mixins(\n BaseItemGroup,\n KInput\n)\n\n/* @kdujs/component */\nexport default baseMixins.extend({\n name: 'k-radio-group',\n\n provide () {\n return {\n radioGroup: this,\n }\n },\n\n props: {\n column: {\n type: Boolean,\n default: true,\n },\n height: {\n type: [Number, String],\n default: 'auto',\n },\n name: String,\n row: Boolean,\n // If no value set on KRadio\n // will match valueComparator\n // force default to null\n value: null as unknown as PropType<any>,\n },\n\n computed: {\n classes (): object {\n return {\n ...KInput.options.computed.classes.call(this),\n 'k-input--selection-controls k-input--radio-group': true,\n 'k-input--radio-group--column': this.column && !this.row,\n 'k-input--radio-group--row': this.row,\n }\n },\n },\n\n methods: {\n genDefaultSlot () {\n return this.$createElement('div', {\n staticClass: 'k-input--radio-group__input',\n attrs: {\n id: this.id,\n role: 'radiogroup',\n 'aria-labelledby': this.computedId,\n },\n }, KInput.options.methods.genDefaultSlot.call(this))\n },\n genInputSlot () {\n const render = KInput.options.methods.genInputSlot.call(this)\n\n delete render.data!.on!.click\n\n return render\n },\n genLabel () {\n const label = KInput.options.methods.genLabel.call(this)\n\n if (!label) return null\n\n label.data!.attrs!.id = this.computedId\n // WAI considers this an orphaned label\n delete label.data!.attrs!.for\n label.tag = 'legend'\n\n return label\n },\n onClick: BaseItemGroup.options.methods.onClick,\n },\n\n render (h) {\n const knode = KInput.options.render.call(this, h)\n\n this._b(knode.data!, 'div', this.attrs$)\n\n return knode\n },\n})\n"],"sourceRoot":"","file":"KRadioGroup.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/KRadioGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/KRadioGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,eAAe;AACvC,OAAO,MAAM,MAAM,UAAU;AAE7B,SAAS,WAAW,EAAE,MAAM;AAE5B,eAAe;EACb,uBAAuB,EAAE;IACvB,WAAW;IACX;EACD;CACF","sourcesContent":["import KRadioGroup from './KRadioGroup'\nimport KRadio from './KRadio'\n\nexport { KRadioGroup, KRadio }\n\nexport default {\n $_kdutify_subcomponents: {\n KRadioGroup,\n KRadio,\n },\n}\n"],"sourceRoot":"","file":"index.js"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
// Styles
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
import KSlider from '../KSlider';
|
|
5
|
-
|
|
2
|
+
import "../../../src/components/KRangeSlider/KRangeSlider.sass";
|
|
3
|
+
// Components
|
|
4
|
+
import KSlider from '../KSlider';
|
|
5
|
+
// Helpers
|
|
6
6
|
import { addOnceEventListener, createRange, deepEqual, passiveSupported } from '../../util/helpers';
|
|
7
7
|
/* @kdujs/component */
|
|
8
|
-
|
|
9
8
|
export default KSlider.extend({
|
|
10
9
|
name: 'k-range-slider',
|
|
11
10
|
props: {
|
|
@@ -14,53 +13,45 @@ export default KSlider.extend({
|
|
|
14
13
|
default: () => [0, 0]
|
|
15
14
|
}
|
|
16
15
|
},
|
|
17
|
-
|
|
18
16
|
data() {
|
|
19
17
|
return {
|
|
20
18
|
activeThumb: null,
|
|
21
19
|
lazyValue: this.value
|
|
22
20
|
};
|
|
23
21
|
},
|
|
24
|
-
|
|
25
22
|
computed: {
|
|
26
23
|
classes() {
|
|
27
|
-
return {
|
|
24
|
+
return {
|
|
25
|
+
...KSlider.options.computed.classes.call(this),
|
|
28
26
|
'k-input--range-slider': true
|
|
29
27
|
};
|
|
30
28
|
},
|
|
31
|
-
|
|
32
29
|
internalValue: {
|
|
33
30
|
get() {
|
|
34
31
|
return this.lazyValue;
|
|
35
32
|
},
|
|
36
|
-
|
|
37
33
|
set(val) {
|
|
38
34
|
// Round value to ensure the
|
|
39
35
|
// entire slider range can
|
|
40
36
|
// be selected with step
|
|
41
|
-
let value = val.map((v = 0) => this.roundValue(Math.min(Math.max(v, this.minValue), this.maxValue)));
|
|
42
|
-
|
|
37
|
+
let value = val.map((v = 0) => this.roundValue(Math.min(Math.max(v, this.minValue), this.maxValue)));
|
|
38
|
+
// Switch values if range and wrong order
|
|
43
39
|
if (value[0] > value[1] || value[1] < value[0]) {
|
|
44
40
|
if (this.activeThumb !== null) {
|
|
45
41
|
const toFocus = this.activeThumb === 1 ? 0 : 1;
|
|
46
42
|
const el = this.$refs[`thumb_${toFocus}`];
|
|
47
43
|
el.focus();
|
|
48
44
|
}
|
|
49
|
-
|
|
50
45
|
value = [value[1], value[0]];
|
|
51
46
|
}
|
|
52
|
-
|
|
53
47
|
this.lazyValue = value;
|
|
54
48
|
if (!deepEqual(value, this.value)) this.$emit('input', value);
|
|
55
49
|
this.validate();
|
|
56
50
|
}
|
|
57
|
-
|
|
58
51
|
},
|
|
59
|
-
|
|
60
52
|
inputWidth() {
|
|
61
53
|
return this.internalValue.map(v => (this.roundValue(v) - this.minValue) / (this.maxValue - this.minValue) * 100);
|
|
62
54
|
}
|
|
63
|
-
|
|
64
55
|
},
|
|
65
56
|
methods: {
|
|
66
57
|
getTrackStyle(startLength, endLength, startPadding = 0, endPadding = 0) {
|
|
@@ -74,11 +65,9 @@ export default KSlider.extend({
|
|
|
74
65
|
[endDir]: end
|
|
75
66
|
};
|
|
76
67
|
},
|
|
77
|
-
|
|
78
68
|
getIndexOfClosestValue(arr, v) {
|
|
79
69
|
if (Math.abs(arr[0] - v) < Math.abs(arr[1] - v)) return 0;else return 1;
|
|
80
70
|
},
|
|
81
|
-
|
|
82
71
|
genInput() {
|
|
83
72
|
return createRange(2).map(i => {
|
|
84
73
|
const input = KSlider.options.methods.genInput.call(this);
|
|
@@ -89,7 +78,6 @@ export default KSlider.extend({
|
|
|
89
78
|
return input;
|
|
90
79
|
});
|
|
91
80
|
},
|
|
92
|
-
|
|
93
81
|
genTrackContainer() {
|
|
94
82
|
const children = [];
|
|
95
83
|
const padding = this.isDisabled ? 10 : 0;
|
|
@@ -116,46 +104,38 @@ export default KSlider.extend({
|
|
|
116
104
|
ref: 'track'
|
|
117
105
|
}, children);
|
|
118
106
|
},
|
|
119
|
-
|
|
120
107
|
genChildren() {
|
|
121
108
|
return [this.genInput(), this.genTrackContainer(), this.genSteps(), createRange(2).map(index => {
|
|
122
109
|
const value = this.internalValue[index];
|
|
123
|
-
|
|
124
110
|
const onFocus = e => {
|
|
125
111
|
this.isFocused = true;
|
|
126
112
|
this.activeThumb = index;
|
|
127
113
|
this.$emit('focus', e);
|
|
128
114
|
};
|
|
129
|
-
|
|
130
115
|
const onBlur = e => {
|
|
131
116
|
this.isFocused = false;
|
|
132
117
|
this.activeThumb = null;
|
|
133
118
|
this.$emit('blur', e);
|
|
134
119
|
};
|
|
135
|
-
|
|
136
120
|
const valueWidth = this.inputWidth[index];
|
|
137
121
|
const isActive = this.isActive && this.activeThumb === index;
|
|
138
122
|
const isFocused = this.isFocused && this.activeThumb === index;
|
|
139
123
|
return this.genThumbContainer(value, valueWidth, isActive, isFocused, onFocus, onBlur, `thumb_${index}`);
|
|
140
124
|
})];
|
|
141
125
|
},
|
|
142
|
-
|
|
143
126
|
reevaluateSelected(value) {
|
|
144
127
|
this.activeThumb = this.getIndexOfClosestValue(this.internalValue, value);
|
|
145
128
|
const refName = `thumb_${this.activeThumb}`;
|
|
146
129
|
const thumbRef = this.$refs[refName];
|
|
147
130
|
thumbRef.focus();
|
|
148
131
|
},
|
|
149
|
-
|
|
150
132
|
onSliderMouseDown(e) {
|
|
151
|
-
var
|
|
152
|
-
|
|
133
|
+
var _a;
|
|
153
134
|
const value = this.parseMouseMove(e);
|
|
154
135
|
this.reevaluateSelected(value);
|
|
155
136
|
this.oldValue = this.internalValue;
|
|
156
137
|
this.isActive = true;
|
|
157
|
-
|
|
158
|
-
if ((_e$target = e.target) != null && _e$target.matches('.k-slider__thumb-container, .k-slider__thumb-container *')) {
|
|
138
|
+
if ((_a = e.target) === null || _a === void 0 ? void 0 : _a.matches('.k-slider__thumb-container, .k-slider__thumb-container *')) {
|
|
159
139
|
this.thumbPressed = true;
|
|
160
140
|
const domRect = e.target.getBoundingClientRect();
|
|
161
141
|
const touch = 'touches' in e ? e.touches[0] : e;
|
|
@@ -167,7 +147,6 @@ export default KSlider.extend({
|
|
|
167
147
|
this.thumbPressed = true;
|
|
168
148
|
}, 300);
|
|
169
149
|
}
|
|
170
|
-
|
|
171
150
|
const mouseUpOptions = passiveSupported ? {
|
|
172
151
|
passive: true,
|
|
173
152
|
capture: true
|
|
@@ -175,41 +154,34 @@ export default KSlider.extend({
|
|
|
175
154
|
const mouseMoveOptions = passiveSupported ? {
|
|
176
155
|
passive: true
|
|
177
156
|
} : false;
|
|
178
|
-
const isTouchEvent =
|
|
157
|
+
const isTouchEvent = 'touches' in e;
|
|
179
158
|
this.onMouseMove(e);
|
|
180
159
|
this.app.addEventListener(isTouchEvent ? 'touchmove' : 'mousemove', this.onMouseMove, mouseMoveOptions);
|
|
181
160
|
addOnceEventListener(this.app, isTouchEvent ? 'touchend' : 'mouseup', this.onSliderMouseUp, mouseUpOptions);
|
|
182
161
|
this.$emit('start', this.internalValue);
|
|
183
162
|
},
|
|
184
|
-
|
|
185
163
|
onSliderClick(e) {
|
|
186
164
|
if (!this.isActive) {
|
|
187
165
|
if (this.noClick) {
|
|
188
166
|
this.noClick = false;
|
|
189
167
|
return;
|
|
190
168
|
}
|
|
191
|
-
|
|
192
169
|
const value = this.parseMouseMove(e);
|
|
193
170
|
this.reevaluateSelected(value);
|
|
194
171
|
this.setInternalValue(value);
|
|
195
172
|
this.$emit('change', this.internalValue);
|
|
196
173
|
}
|
|
197
174
|
},
|
|
198
|
-
|
|
199
175
|
onMouseMove(e) {
|
|
200
176
|
const value = this.parseMouseMove(e);
|
|
201
|
-
|
|
202
177
|
if (e.type === 'mousemove') {
|
|
203
178
|
this.thumbPressed = true;
|
|
204
179
|
}
|
|
205
|
-
|
|
206
180
|
if (this.activeThumb === null) {
|
|
207
181
|
this.activeThumb = this.getIndexOfClosestValue(this.internalValue, value);
|
|
208
182
|
}
|
|
209
|
-
|
|
210
183
|
this.setInternalValue(value);
|
|
211
184
|
},
|
|
212
|
-
|
|
213
185
|
onKeyDown(e) {
|
|
214
186
|
if (this.activeThumb === null) return;
|
|
215
187
|
const value = this.parseKeyDown(e, this.internalValue[this.activeThumb]);
|
|
@@ -217,13 +189,11 @@ export default KSlider.extend({
|
|
|
217
189
|
this.setInternalValue(value);
|
|
218
190
|
this.$emit('change', this.internalValue);
|
|
219
191
|
},
|
|
220
|
-
|
|
221
192
|
setInternalValue(value) {
|
|
222
193
|
this.internalValue = this.internalValue.map((v, i) => {
|
|
223
194
|
if (i === this.activeThumb) return value;else return Number(v);
|
|
224
195
|
});
|
|
225
196
|
}
|
|
226
|
-
|
|
227
197
|
}
|
|
228
198
|
});
|
|
229
199
|
//# sourceMappingURL=KRangeSlider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/KRangeSlider/KRangeSlider.ts"],"names":[],"mappings":"AAAA;AACA,OAAO,8DAAP,C,CAEA;;AACA,OAAO,OAAP,MAAoB,YAApB,C,CAEA;;AACA,SACE,oBADF,EAEE,WAFF,EAGE,SAHF,EAIE,gBAJF,QAKO,oBALP;AAUA;;AACA,eAAe,OAAO,CAAC,MAAR,CAAe;AAC5B,EAAA,IAAI,EAAE,gBADsB;AAG5B,EAAA,KAAK,EAAE;AACL,IAAA,KAAK,EAAE;AACL,MAAA,IAAI,EAAE,KADD;AAEL,MAAA,OAAO,EAAE,MAAO,CAAC,CAAD,EAAI,CAAJ;AAFX;AADF,GAHqB;;AAU5B,EAAA,IAAI,GAAA;AACF,WAAO;AACL,MAAA,WAAW,EAAE,IADR;AAEL,MAAA,SAAS,EAAE,KAAK;AAFX,KAAP;AAID,GAf2B;;AAiB5B,EAAA,QAAQ,EAAE;AACR,IAAA,OAAO,GAAA;AACL,aAAO,EACL,GAAG,OAAO,CAAC,OAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,IAAjC,CAAsC,IAAtC,CADE;AAEL,iCAAyB;AAFpB,OAAP;AAID,KANO;;AAOR,IAAA,aAAa,EAAE;AACb,MAAA,GAAG,GAAA;AACD,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B,EAA+B;AAC7B,aAAK,WAAL,GAAmB,KAAK,sBAAL,CAA4B,KAAK,aAAjC,EAAgD,KAAhD,CAAnB;AACD;;AAED,WAAK,gBAAL,CAAsB,KAAtB;AACD,KAjKM;;AAkKP,IAAA,SAAS,CAAE,CAAF,EAAkB;AACzB,UAAI,KAAK,WAAL,KAAqB,IAAzB,EAA+B;AAE/B,YAAM,KAAK,GAAG,KAAK,YAAL,CAAkB,CAAlB,EAAqB,KAAK,aAAL,CAAmB,KAAK,WAAxB,CAArB,CAAd;AAEA,UAAI,KAAK,IAAI,IAAb,EAAmB;AAEnB,WAAK,gBAAL,CAAsB,KAAtB;AACA,WAAK,KAAL,CAAW,QAAX,EAAqB,KAAK,aAA1B;AACD,KA3KM;;AA4KP,IAAA,gBAAgB,CAAE,KAAF,EAAe;AAC7B,WAAK,aAAL,GAAqB,KAAK,aAAL,CAAmB,GAAnB,CAAuB,CAAC,CAAD,EAAY,CAAZ,KAAyB;AACnE,YAAI,CAAC,KAAK,KAAK,WAAf,EAA4B,OAAO,KAAP,CAA5B,KACK,OAAO,MAAM,CAAC,CAAD,CAAb;AACN,OAHoB,CAArB;AAID;;AAjLM;AAzDmB,CAAf,CAAf","sourcesContent":["// Styles\nimport './KRangeSlider.sass'\n\n// Components\nimport KSlider from '../KSlider'\n\n// Helpers\nimport {\n addOnceEventListener,\n createRange,\n deepEqual,\n passiveSupported,\n} from '../../util/helpers'\n\n// Types\nimport { PropValidator } from 'kdu/types/options'\n\n/* @kdujs/component */\nexport default KSlider.extend({\n name: 'k-range-slider',\n\n props: {\n value: {\n type: Array,\n default: () => ([0, 0]),\n } as unknown as PropValidator<[number, number]>,\n },\n\n data () {\n return {\n activeThumb: null as null | number,\n lazyValue: this.value,\n }\n },\n\n computed: {\n classes (): object {\n return {\n ...KSlider.options.computed.classes.call(this),\n 'k-input--range-slider': true,\n }\n },\n internalValue: {\n get (): number[] {\n return this.lazyValue\n },\n set (val: number[]) {\n // Round value to ensure the\n // entire slider range can\n // be selected with step\n let value = val.map((v = 0) => this.roundValue(Math.min(Math.max(v, this.minValue), this.maxValue)))\n\n // Switch values if range and wrong order\n if (value[0] > value[1] || value[1] < value[0]) {\n if (this.activeThumb !== null) {\n const toFocus = this.activeThumb === 1 ? 0 : 1\n const el = this.$refs[`thumb_${toFocus}`] as HTMLElement\n el.focus()\n }\n value = [value[1], value[0]]\n }\n\n this.lazyValue = value\n if (!deepEqual(value, this.value)) this.$emit('input', value)\n\n this.validate()\n },\n },\n inputWidth (): number[] {\n return this.internalValue.map((v: number) => (\n this.roundValue(v) - this.minValue) / (this.maxValue - this.minValue) * 100\n )\n },\n },\n\n methods: {\n getTrackStyle (startLength: number, endLength: number, startPadding = 0, endPadding = 0) {\n const startDir = this.vertical ? this.$kdutify.rtl ? 'top' : 'bottom' : this.$kdutify.rtl ? 'right' : 'left'\n const endDir = this.vertical ? 'height' : 'width'\n\n const start = `calc(${startLength}% + ${startPadding}px)`\n const end = `calc(${endLength}% + ${endPadding}px)`\n\n return {\n transition: this.trackTransition,\n [startDir]: start,\n [endDir]: end,\n }\n },\n getIndexOfClosestValue (arr: number[], v: number) {\n if (Math.abs(arr[0] - v) < Math.abs(arr[1] - v)) return 0\n else return 1\n },\n genInput () {\n return createRange(2).map(i => {\n const input = KSlider.options.methods.genInput.call(this)\n\n input.data = input.data || {}\n input.data.attrs = input.data.attrs || {}\n input.data.attrs.value = this.internalValue[i]\n input.data.attrs.id = `input-${i ? 'max' : 'min'}-${this._uid}`\n\n return input\n })\n },\n genTrackContainer () {\n const children = []\n\n const padding = this.isDisabled ? 10 : 0\n const sections: { class: string, color: string | undefined, styles: [number, number, number, number] }[] = [\n {\n class: 'k-slider__track-background',\n color: this.computedTrackColor,\n styles: [0, this.inputWidth[0], 0, -padding],\n },\n {\n class: this.isDisabled ? 'k-slider__track-background' : 'k-slider__track-fill',\n color: this.isDisabled ? this.computedTrackColor : this.computedTrackFillColor,\n styles: [this.inputWidth[0], Math.abs(this.inputWidth[1] - this.inputWidth[0]), padding, padding * -2],\n },\n {\n class: 'k-slider__track-background',\n color: this.computedTrackColor,\n styles: [this.inputWidth[1], Math.abs(100 - this.inputWidth[1]), padding, -padding],\n },\n ]\n\n if (this.$kdutify.rtl) sections.reverse()\n\n children.push(...sections.map(section => this.$createElement('div', this.setBackgroundColor(section.color, {\n staticClass: section.class,\n style: this.getTrackStyle(...section.styles),\n }))))\n\n return this.$createElement('div', {\n staticClass: 'k-slider__track-container',\n ref: 'track',\n }, children)\n },\n genChildren () {\n return [\n this.genInput(),\n this.genTrackContainer(),\n this.genSteps(),\n createRange(2).map(index => {\n const value = this.internalValue[index]\n const onFocus = (e: Event) => {\n this.isFocused = true\n this.activeThumb = index\n\n this.$emit('focus', e)\n }\n\n const onBlur = (e: Event) => {\n this.isFocused = false\n this.activeThumb = null\n\n this.$emit('blur', e)\n }\n\n const valueWidth = this.inputWidth[index]\n const isActive = this.isActive && this.activeThumb === index\n const isFocused = this.isFocused && this.activeThumb === index\n\n return this.genThumbContainer(value, valueWidth, isActive, isFocused, onFocus, onBlur, `thumb_${index}`)\n }),\n ]\n },\n reevaluateSelected (value: number) {\n this.activeThumb = this.getIndexOfClosestValue(this.internalValue, value)\n const refName = `thumb_${this.activeThumb}`\n const thumbRef = this.$refs[refName] as HTMLElement\n thumbRef.focus()\n },\n onSliderMouseDown (e: MouseEvent | TouchEvent) {\n const value = this.parseMouseMove(e)\n\n this.reevaluateSelected(value)\n\n this.oldValue = this.internalValue\n this.isActive = true\n\n if ((e.target as Element)?.matches('.k-slider__thumb-container, .k-slider__thumb-container *')) {\n this.thumbPressed = true\n const domRect = (e.target as Element).getBoundingClientRect()\n const touch = 'touches' in e ? e.touches[0] : e\n this.startOffset = this.vertical\n ? touch.clientY - (domRect.top + domRect.height / 2)\n : touch.clientX - (domRect.left + domRect.width / 2)\n } else {\n this.startOffset = 0\n window.clearTimeout(this.mouseTimeout)\n this.mouseTimeout = window.setTimeout(() => {\n this.thumbPressed = true\n }, 300)\n }\n\n const mouseUpOptions = passiveSupported ? { passive: true, capture: true } : true\n const mouseMoveOptions = passiveSupported ? { passive: true } : false\n\n const isTouchEvent = 'touches' in e\n\n this.onMouseMove(e)\n this.app.addEventListener(isTouchEvent ? 'touchmove' : 'mousemove', this.onMouseMove, mouseMoveOptions)\n addOnceEventListener(this.app, isTouchEvent ? 'touchend' : 'mouseup', this.onSliderMouseUp, mouseUpOptions)\n\n this.$emit('start', this.internalValue)\n },\n onSliderClick (e: MouseEvent) {\n if (!this.isActive) {\n if (this.noClick) {\n this.noClick = false\n return\n }\n\n const value = this.parseMouseMove(e)\n\n this.reevaluateSelected(value)\n\n this.setInternalValue(value)\n\n this.$emit('change', this.internalValue)\n }\n },\n onMouseMove (e: MouseEvent | TouchEvent) {\n const value = this.parseMouseMove(e)\n\n if (e.type === 'mousemove') {\n this.thumbPressed = true\n }\n\n if (this.activeThumb === null) {\n this.activeThumb = this.getIndexOfClosestValue(this.internalValue, value)\n }\n\n this.setInternalValue(value)\n },\n onKeyDown (e: KeyboardEvent) {\n if (this.activeThumb === null) return\n\n const value = this.parseKeyDown(e, this.internalValue[this.activeThumb])\n\n if (value == null) return\n\n this.setInternalValue(value)\n this.$emit('change', this.internalValue)\n },\n setInternalValue (value: number) {\n this.internalValue = this.internalValue.map((v: number, i: number) => {\n if (i === this.activeThumb) return value\n else return Number(v)\n })\n },\n },\n})\n"],"sourceRoot":"","file":"KRangeSlider.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/KRangeSlider/KRangeSlider.ts"],"names":[],"mappings":"AAAA;AACA,OAAO,wDAAqB;AAE5B;AACA,OAAO,OAAO,MAAM,YAAY;AAEhC;AACA,SACE,oBAAoB,EACpB,WAAW,EACX,SAAS,EACT,gBAAgB,QACX,oBAAoB;AAK3B;AACA,eAAe,OAAO,CAAC,MAAM,CAAC;EAC5B,IAAI,EAAE,gBAAgB;EAEtB,KAAK,EAAE;IACL,KAAK,EAAE;MACL,IAAI,EAAE,KAAK;MACX,O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A;MAC7B,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAS,EAAE,CAAS,KAAI;QACnE,IAAI,CAAC,KAAK,IAAI,CAAC,WAAW,EAAE,OAAO,KAAK,CAAA,KACnC,OAAO,MAAM,CAAC,CAAC,CAAC;MACvB,CAAC,CAAC;IACJ;EACD;CACF,CAAC","sourcesContent":["// Styles\nimport './KRangeSlider.sass'\n\n// Components\nimport KSlider from '../KSlider'\n\n// Helpers\nimport {\n addOnceEventListener,\n createRange,\n deepEqual,\n passiveSupported,\n} from '../../util/helpers'\n\n// Types\nimport { PropValidator } from 'kdu/types/options'\n\n/* @kdujs/component */\nexport default KSlider.extend({\n name: 'k-range-slider',\n\n props: {\n value: {\n type: Array,\n default: () => ([0, 0]),\n } as unknown as PropValidator<[number, number]>,\n },\n\n data () {\n return {\n activeThumb: null as null | number,\n lazyValue: this.value,\n }\n },\n\n computed: {\n classes (): object {\n return {\n ...KSlider.options.computed.classes.call(this),\n 'k-input--range-slider': true,\n }\n },\n internalValue: {\n get (): number[] {\n return this.lazyValue\n },\n set (val: number[]) {\n // Round value to ensure the\n // entire slider range can\n // be selected with step\n let value = val.map((v = 0) => this.roundValue(Math.min(Math.max(v, this.minValue), this.maxValue)))\n\n // Switch values if range and wrong order\n if (value[0] > value[1] || value[1] < value[0]) {\n if (this.activeThumb !== null) {\n const toFocus = this.activeThumb === 1 ? 0 : 1\n const el = this.$refs[`thumb_${toFocus}`] as HTMLElement\n el.focus()\n }\n value = [value[1], value[0]]\n }\n\n this.lazyValue = value\n if (!deepEqual(value, this.value)) this.$emit('input', value)\n\n this.validate()\n },\n },\n inputWidth (): number[] {\n return this.internalValue.map((v: number) => (\n this.roundValue(v) - this.minValue) / (this.maxValue - this.minValue) * 100\n )\n },\n },\n\n methods: {\n getTrackStyle (startLength: number, endLength: number, startPadding = 0, endPadding = 0) {\n const startDir = this.vertical ? this.$kdutify.rtl ? 'top' : 'bottom' : this.$kdutify.rtl ? 'right' : 'left'\n const endDir = this.vertical ? 'height' : 'width'\n\n const start = `calc(${startLength}% + ${startPadding}px)`\n const end = `calc(${endLength}% + ${endPadding}px)`\n\n return {\n transition: this.trackTransition,\n [startDir]: start,\n [endDir]: end,\n }\n },\n getIndexOfClosestValue (arr: number[], v: number) {\n if (Math.abs(arr[0] - v) < Math.abs(arr[1] - v)) return 0\n else return 1\n },\n genInput () {\n return createRange(2).map(i => {\n const input = KSlider.options.methods.genInput.call(this)\n\n input.data = input.data || {}\n input.data.attrs = input.data.attrs || {}\n input.data.attrs.value = this.internalValue[i]\n input.data.attrs.id = `input-${i ? 'max' : 'min'}-${this._uid}`\n\n return input\n })\n },\n genTrackContainer () {\n const children = []\n\n const padding = this.isDisabled ? 10 : 0\n const sections: { class: string, color: string | undefined, styles: [number, number, number, number] }[] = [\n {\n class: 'k-slider__track-background',\n color: this.computedTrackColor,\n styles: [0, this.inputWidth[0], 0, -padding],\n },\n {\n class: this.isDisabled ? 'k-slider__track-background' : 'k-slider__track-fill',\n color: this.isDisabled ? this.computedTrackColor : this.computedTrackFillColor,\n styles: [this.inputWidth[0], Math.abs(this.inputWidth[1] - this.inputWidth[0]), padding, padding * -2],\n },\n {\n class: 'k-slider__track-background',\n color: this.computedTrackColor,\n styles: [this.inputWidth[1], Math.abs(100 - this.inputWidth[1]), padding, -padding],\n },\n ]\n\n if (this.$kdutify.rtl) sections.reverse()\n\n children.push(...sections.map(section => this.$createElement('div', this.setBackgroundColor(section.color, {\n staticClass: section.class,\n style: this.getTrackStyle(...section.styles),\n }))))\n\n return this.$createElement('div', {\n staticClass: 'k-slider__track-container',\n ref: 'track',\n }, children)\n },\n genChildren () {\n return [\n this.genInput(),\n this.genTrackContainer(),\n this.genSteps(),\n createRange(2).map(index => {\n const value = this.internalValue[index]\n const onFocus = (e: Event) => {\n this.isFocused = true\n this.activeThumb = index\n\n this.$emit('focus', e)\n }\n\n const onBlur = (e: Event) => {\n this.isFocused = false\n this.activeThumb = null\n\n this.$emit('blur', e)\n }\n\n const valueWidth = this.inputWidth[index]\n const isActive = this.isActive && this.activeThumb === index\n const isFocused = this.isFocused && this.activeThumb === index\n\n return this.genThumbContainer(value, valueWidth, isActive, isFocused, onFocus, onBlur, `thumb_${index}`)\n }),\n ]\n },\n reevaluateSelected (value: number) {\n this.activeThumb = this.getIndexOfClosestValue(this.internalValue, value)\n const refName = `thumb_${this.activeThumb}`\n const thumbRef = this.$refs[refName] as HTMLElement\n thumbRef.focus()\n },\n onSliderMouseDown (e: MouseEvent | TouchEvent) {\n const value = this.parseMouseMove(e)\n\n this.reevaluateSelected(value)\n\n this.oldValue = this.internalValue\n this.isActive = true\n\n if ((e.target as Element)?.matches('.k-slider__thumb-container, .k-slider__thumb-container *')) {\n this.thumbPressed = true\n const domRect = (e.target as Element).getBoundingClientRect()\n const touch = 'touches' in e ? e.touches[0] : e\n this.startOffset = this.vertical\n ? touch.clientY - (domRect.top + domRect.height / 2)\n : touch.clientX - (domRect.left + domRect.width / 2)\n } else {\n this.startOffset = 0\n window.clearTimeout(this.mouseTimeout)\n this.mouseTimeout = window.setTimeout(() => {\n this.thumbPressed = true\n }, 300)\n }\n\n const mouseUpOptions = passiveSupported ? { passive: true, capture: true } : true\n const mouseMoveOptions = passiveSupported ? { passive: true } : false\n\n const isTouchEvent = 'touches' in e\n\n this.onMouseMove(e)\n this.app.addEventListener(isTouchEvent ? 'touchmove' : 'mousemove', this.onMouseMove, mouseMoveOptions)\n addOnceEventListener(this.app, isTouchEvent ? 'touchend' : 'mouseup', this.onSliderMouseUp, mouseUpOptions)\n\n this.$emit('start', this.internalValue)\n },\n onSliderClick (e: MouseEvent) {\n if (!this.isActive) {\n if (this.noClick) {\n this.noClick = false\n return\n }\n\n const value = this.parseMouseMove(e)\n\n this.reevaluateSelected(value)\n\n this.setInternalValue(value)\n\n this.$emit('change', this.internalValue)\n }\n },\n onMouseMove (e: MouseEvent | TouchEvent) {\n const value = this.parseMouseMove(e)\n\n if (e.type === 'mousemove') {\n this.thumbPressed = true\n }\n\n if (this.activeThumb === null) {\n this.activeThumb = this.getIndexOfClosestValue(this.internalValue, value)\n }\n\n this.setInternalValue(value)\n },\n onKeyDown (e: KeyboardEvent) {\n if (this.activeThumb === null) return\n\n const value = this.parseKeyDown(e, this.internalValue[this.activeThumb])\n\n if (value == null) return\n\n this.setInternalValue(value)\n this.$emit('change', this.internalValue)\n },\n setInternalValue (value: number) {\n this.internalValue = this.internalValue.map((v: number, i: number) => {\n if (i === this.activeThumb) return value\n else return Number(v)\n })\n },\n },\n})\n"],"sourceRoot":"","file":"KRangeSlider.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/KRangeSlider/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/KRangeSlider/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB;AAEzC,SAAS,YAAY;AACrB,eAAe,YAAY","sourcesContent":["import KRangeSlider from './KRangeSlider'\n\nexport { KRangeSlider }\nexport default KRangeSlider\n"],"sourceRoot":"","file":"index.js"}
|