kdutify 2.6.1 → 2.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/json/attributes.json +109 -125
- package/dist/json/tags.json +32 -36
- package/dist/json/web-types.json +353 -310
- package/dist/kdutify.css +249 -438
- package/dist/kdutify.css.map +1 -1
- package/dist/kdutify.js +3226 -5789
- package/dist/kdutify.js.map +1 -1
- package/dist/kdutify.min.css +4 -4
- package/dist/kdutify.min.js +3 -3
- package/es5/components/KAlert/KAlert.js +17 -34
- package/es5/components/KAlert/KAlert.js.map +1 -1
- package/es5/components/KAlert/index.js +2 -6
- package/es5/components/KAlert/index.js.map +1 -1
- package/es5/components/KApp/KApp.js +13 -17
- package/es5/components/KApp/KApp.js.map +1 -1
- package/es5/components/KApp/index.js +2 -6
- package/es5/components/KApp/index.js.map +1 -1
- package/es5/components/KAppBar/KAppBar.js +16 -35
- package/es5/components/KAppBar/KAppBar.js.map +1 -1
- package/es5/components/KAppBar/KAppBarNavIcon.js +13 -19
- package/es5/components/KAppBar/KAppBarNavIcon.js.map +1 -1
- package/es5/components/KAppBar/KAppBarTitle.js +5 -10
- package/es5/components/KAppBar/KAppBarTitle.js.map +1 -1
- package/es5/components/KAppBar/index.js +2 -8
- package/es5/components/KAppBar/index.js.map +1 -1
- package/es5/components/KAutocomplete/KAutocomplete.js +30 -77
- package/es5/components/KAutocomplete/KAutocomplete.js.map +1 -1
- package/es5/components/KAutocomplete/index.js +2 -6
- package/es5/components/KAutocomplete/index.js.map +1 -1
- package/es5/components/KAvatar/KAvatar.js +10 -19
- package/es5/components/KAvatar/KAvatar.js.map +1 -1
- package/es5/components/KAvatar/index.js +2 -6
- package/es5/components/KAvatar/index.js.map +1 -1
- package/es5/components/KBadge/KBadge.js +20 -35
- package/es5/components/KBadge/KBadge.js.map +1 -1
- package/es5/components/KBadge/index.js +2 -6
- package/es5/components/KBadge/index.js.map +1 -1
- package/es5/components/KBanner/KBanner.js +20 -34
- package/es5/components/KBanner/KBanner.js.map +1 -1
- package/es5/components/KBanner/index.js +2 -6
- package/es5/components/KBanner/index.js.map +1 -1
- package/es5/components/KBottomNavigation/KBottomNavigation.js +23 -31
- package/es5/components/KBottomNavigation/KBottomNavigation.js.map +1 -1
- package/es5/components/KBottomNavigation/index.js +2 -6
- package/es5/components/KBottomNavigation/index.js.map +1 -1
- package/es5/components/KBottomSheet/KBottomSheet.js +10 -19
- package/es5/components/KBottomSheet/KBottomSheet.js.map +1 -1
- package/es5/components/KBottomSheet/index.js +2 -6
- package/es5/components/KBottomSheet/index.js.map +1 -1
- package/es5/components/KBreadcrumbs/KBreadcrumbs.js +14 -22
- package/es5/components/KBreadcrumbs/KBreadcrumbs.js.map +1 -1
- package/es5/components/KBreadcrumbs/KBreadcrumbsDivider.js +1 -5
- package/es5/components/KBreadcrumbs/KBreadcrumbsDivider.js.map +1 -1
- package/es5/components/KBreadcrumbs/KBreadcrumbsItem.js +14 -20
- package/es5/components/KBreadcrumbs/KBreadcrumbsItem.js.map +1 -1
- package/es5/components/KBreadcrumbs/index.js +6 -12
- package/es5/components/KBreadcrumbs/index.js.map +1 -1
- package/es5/components/KBtn/KBtn.js +30 -58
- package/es5/components/KBtn/KBtn.js.map +1 -1
- package/es5/components/KBtn/index.js +2 -6
- package/es5/components/KBtn/index.js.map +1 -1
- package/es5/components/KBtnToggle/KBtnToggle.js +11 -17
- package/es5/components/KBtnToggle/KBtnToggle.js.map +1 -1
- package/es5/components/KBtnToggle/index.js +2 -6
- package/es5/components/KBtnToggle/index.js.map +1 -1
- package/es5/components/KCalendar/KCalendar.js +29 -73
- package/es5/components/KCalendar/KCalendar.js.map +1 -1
- package/es5/components/KCalendar/KCalendarCategory.js +19 -43
- package/es5/components/KCalendar/KCalendarCategory.js.map +1 -1
- package/es5/components/KCalendar/KCalendarDaily.js +35 -44
- package/es5/components/KCalendar/KCalendarDaily.js.map +1 -1
- package/es5/components/KCalendar/KCalendarMonthly.js +2 -10
- package/es5/components/KCalendar/KCalendarMonthly.js.map +1 -1
- package/es5/components/KCalendar/KCalendarWeekly.js +39 -45
- package/es5/components/KCalendar/KCalendarWeekly.js.map +1 -1
- package/es5/components/KCalendar/index.js +8 -16
- package/es5/components/KCalendar/index.js.map +1 -1
- package/es5/components/KCalendar/mixins/calendar-base.js +4 -20
- package/es5/components/KCalendar/mixins/calendar-base.js.map +1 -1
- package/es5/components/KCalendar/mixins/calendar-with-events.js +56 -119
- package/es5/components/KCalendar/mixins/calendar-with-events.js.map +1 -1
- package/es5/components/KCalendar/mixins/calendar-with-intervals.js +2 -19
- package/es5/components/KCalendar/mixins/calendar-with-intervals.js.map +1 -1
- package/es5/components/KCalendar/mixins/times.js +2 -8
- package/es5/components/KCalendar/mixins/times.js.map +1 -1
- package/es5/components/KCalendar/modes/column.js +1 -8
- package/es5/components/KCalendar/modes/column.js.map +1 -1
- package/es5/components/KCalendar/modes/common.js +15 -47
- package/es5/components/KCalendar/modes/common.js.map +1 -1
- package/es5/components/KCalendar/modes/index.js +1 -5
- package/es5/components/KCalendar/modes/index.js.map +1 -1
- package/es5/components/KCalendar/modes/stack.js +39 -117
- package/es5/components/KCalendar/modes/stack.js.map +1 -1
- package/es5/components/KCalendar/util/events.js +3 -9
- package/es5/components/KCalendar/util/events.js.map +1 -1
- package/es5/components/KCalendar/util/parser.js +8 -14
- package/es5/components/KCalendar/util/parser.js.map +1 -1
- package/es5/components/KCalendar/util/props.js +2 -20
- package/es5/components/KCalendar/util/props.js.map +1 -1
- package/es5/components/KCalendar/util/timestamp.js +64 -188
- package/es5/components/KCalendar/util/timestamp.js.map +1 -1
- package/es5/components/KCard/KCard.js +17 -28
- package/es5/components/KCard/KCard.js.map +1 -1
- package/es5/components/KCard/index.js +6 -15
- package/es5/components/KCard/index.js.map +1 -1
- package/es5/components/KCarousel/KCarousel.js +16 -30
- package/es5/components/KCarousel/KCarousel.js.map +1 -1
- package/es5/components/KCarousel/KCarouselItem.js +13 -22
- package/es5/components/KCarousel/KCarouselItem.js.map +1 -1
- package/es5/components/KCarousel/index.js +2 -7
- package/es5/components/KCarousel/index.js.map +1 -1
- package/es5/components/KCheckbox/KCheckbox.js +17 -27
- package/es5/components/KCheckbox/KCheckbox.js.map +1 -1
- package/es5/components/KCheckbox/KSimpleCheckbox.js +17 -31
- package/es5/components/KCheckbox/KSimpleCheckbox.js.map +1 -1
- package/es5/components/KCheckbox/index.js +2 -7
- package/es5/components/KCheckbox/index.js.map +1 -1
- package/es5/components/KChip/KChip.js +26 -53
- package/es5/components/KChip/KChip.js.map +1 -1
- package/es5/components/KChip/index.js +2 -6
- package/es5/components/KChip/index.js.map +1 -1
- package/es5/components/KChipGroup/KChipGroup.js +12 -17
- package/es5/components/KChipGroup/KChipGroup.js.map +1 -1
- package/es5/components/KChipGroup/index.js +2 -6
- package/es5/components/KChipGroup/index.js.map +1 -1
- package/es5/components/KColorPicker/KColorPicker.js +14 -33
- package/es5/components/KColorPicker/KColorPicker.js.map +1 -1
- package/es5/components/KColorPicker/KColorPickerCanvas.js +6 -17
- package/es5/components/KColorPicker/KColorPickerCanvas.js.map +1 -1
- package/es5/components/KColorPicker/KColorPickerEdit.js +19 -37
- package/es5/components/KColorPicker/KColorPickerEdit.js.map +1 -1
- package/es5/components/KColorPicker/KColorPickerPreview.js +15 -23
- package/es5/components/KColorPicker/KColorPickerPreview.js.map +1 -1
- package/es5/components/KColorPicker/KColorPickerSwatches.js +5 -18
- package/es5/components/KColorPicker/KColorPickerSwatches.js.map +1 -1
- package/es5/components/KColorPicker/index.js +6 -12
- package/es5/components/KColorPicker/index.js.map +1 -1
- package/es5/components/KColorPicker/util/index.js +18 -44
- package/es5/components/KColorPicker/util/index.js.map +1 -1
- package/es5/components/KCombobox/KCombobox.js +39 -68
- package/es5/components/KCombobox/KCombobox.js.map +1 -1
- package/es5/components/KCombobox/index.js +2 -6
- package/es5/components/KCombobox/index.js.map +1 -1
- package/es5/components/KContent/KContent.js +2 -10
- package/es5/components/KContent/KContent.js.map +1 -1
- package/es5/components/KContent/index.js +2 -6
- package/es5/components/KContent/index.js.map +1 -1
- package/es5/components/KCounter/KCounter.js +10 -21
- package/es5/components/KCounter/KCounter.js.map +1 -1
- package/es5/components/KCounter/index.js +2 -6
- package/es5/components/KCounter/index.js.map +1 -1
- package/es5/components/KData/KData.js +28 -71
- package/es5/components/KData/KData.js.map +1 -1
- package/es5/components/KData/index.js +2 -6
- package/es5/components/KData/index.js.map +1 -1
- package/es5/components/KDataIterator/KDataFooter.js +7 -20
- package/es5/components/KDataIterator/KDataFooter.js.map +1 -1
- package/es5/components/KDataIterator/KDataIterator.js +43 -83
- package/es5/components/KDataIterator/KDataIterator.js.map +1 -1
- package/es5/components/KDataIterator/index.js +6 -11
- package/es5/components/KDataIterator/index.js.map +1 -1
- package/es5/components/KDataTable/KDataTable.js +144 -170
- package/es5/components/KDataTable/KDataTable.js.map +1 -1
- package/es5/components/KDataTable/KDataTableHeader.js +15 -24
- package/es5/components/KDataTable/KDataTableHeader.js.map +1 -1
- package/es5/components/KDataTable/KDataTableHeaderDesktop.js +10 -42
- package/es5/components/KDataTable/KDataTableHeaderDesktop.js.map +1 -1
- package/es5/components/KDataTable/KDataTableHeaderMobile.js +7 -29
- package/es5/components/KDataTable/KDataTableHeaderMobile.js.map +1 -1
- package/es5/components/KDataTable/KEditDialog.js +4 -22
- package/es5/components/KDataTable/KEditDialog.js.map +1 -1
- package/es5/components/KDataTable/KSimpleTable.js +10 -18
- package/es5/components/KDataTable/KSimpleTable.js.map +1 -1
- package/es5/components/KDataTable/KVirtualTable.js +5 -13
- package/es5/components/KDataTable/KVirtualTable.js.map +1 -1
- package/es5/components/KDataTable/MobileRow.js +13 -23
- package/es5/components/KDataTable/MobileRow.js.map +1 -1
- package/es5/components/KDataTable/Row.js +14 -29
- package/es5/components/KDataTable/Row.js.map +1 -1
- package/es5/components/KDataTable/RowGroup.js +8 -23
- package/es5/components/KDataTable/RowGroup.js.map +1 -1
- package/es5/components/KDataTable/index.js +5 -14
- package/es5/components/KDataTable/index.js.map +1 -1
- package/es5/components/KDataTable/mixins/header.js +11 -22
- package/es5/components/KDataTable/mixins/header.js.map +1 -1
- package/es5/components/KDatePicker/KDatePicker.js +31 -57
- package/es5/components/KDatePicker/KDatePicker.js.map +1 -1
- package/es5/components/KDatePicker/KDatePickerDateTable.js +3 -29
- package/es5/components/KDatePicker/KDatePickerDateTable.js.map +1 -1
- package/es5/components/KDatePicker/KDatePickerHeader.js +21 -41
- package/es5/components/KDatePicker/KDatePickerHeader.js.map +1 -1
- package/es5/components/KDatePicker/KDatePickerMonthTable.js +3 -15
- package/es5/components/KDatePicker/KDatePickerMonthTable.js.map +1 -1
- package/es5/components/KDatePicker/KDatePickerTitle.js +3 -12
- package/es5/components/KDatePicker/KDatePickerTitle.js.map +1 -1
- package/es5/components/KDatePicker/KDatePickerYears.js +3 -19
- package/es5/components/KDatePicker/KDatePickerYears.js.map +1 -1
- package/es5/components/KDatePicker/index.js +8 -17
- package/es5/components/KDatePicker/index.js.map +1 -1
- package/es5/components/KDatePicker/mixins/date-picker-table.js +24 -59
- package/es5/components/KDatePicker/mixins/date-picker-table.js.map +1 -1
- package/es5/components/KDatePicker/util/createNativeLocaleFormatter.js +11 -25
- package/es5/components/KDatePicker/util/createNativeLocaleFormatter.js.map +1 -1
- package/es5/components/KDatePicker/util/eventHelpers.js +1 -5
- package/es5/components/KDatePicker/util/eventHelpers.js.map +1 -1
- package/es5/components/KDatePicker/util/index.js +5 -11
- package/es5/components/KDatePicker/util/index.js.map +1 -1
- package/es5/components/KDatePicker/util/isDateAllowed.js +0 -1
- package/es5/components/KDatePicker/util/isDateAllowed.js.map +1 -1
- package/es5/components/KDatePicker/util/monthChange.js +10 -22
- package/es5/components/KDatePicker/util/monthChange.js.map +1 -1
- package/es5/components/KDatePicker/util/pad.js +1 -9
- package/es5/components/KDatePicker/util/pad.js.map +1 -1
- package/es5/components/KDatePicker/util/sanitizeDateString.js +14 -25
- package/es5/components/KDatePicker/util/sanitizeDateString.js.map +1 -1
- package/es5/components/KDialog/KDialog.js +57 -96
- package/es5/components/KDialog/KDialog.js.map +1 -1
- package/es5/components/KDialog/index.js +2 -6
- package/es5/components/KDialog/index.js.map +1 -1
- package/es5/components/KDivider/KDivider.js +9 -16
- package/es5/components/KDivider/KDivider.js.map +1 -1
- package/es5/components/KDivider/index.js +2 -6
- package/es5/components/KDivider/index.js.map +1 -1
- package/es5/components/KExpansionPanel/KExpansionPanel.js +10 -19
- package/es5/components/KExpansionPanel/KExpansionPanel.js.map +1 -1
- package/es5/components/KExpansionPanel/KExpansionPanelContent.js +7 -16
- package/es5/components/KExpansionPanel/KExpansionPanelContent.js.map +1 -1
- package/es5/components/KExpansionPanel/KExpansionPanelHeader.js +15 -23
- package/es5/components/KExpansionPanel/KExpansionPanelHeader.js.map +1 -1
- package/es5/components/KExpansionPanel/KExpansionPanels.js +10 -16
- package/es5/components/KExpansionPanel/KExpansionPanels.js.map +1 -1
- package/es5/components/KExpansionPanel/index.js +8 -15
- package/es5/components/KExpansionPanel/index.js.map +1 -1
- package/es5/components/KFileInput/KFileInput.js +33 -61
- package/es5/components/KFileInput/KFileInput.js.map +1 -1
- package/es5/components/KFileInput/index.js +2 -6
- package/es5/components/KFileInput/index.js.map +1 -1
- package/es5/components/KFooter/KFooter.js +14 -21
- package/es5/components/KFooter/KFooter.js.map +1 -1
- package/es5/components/KFooter/index.js +2 -6
- package/es5/components/KFooter/index.js.map +1 -1
- package/es5/components/KForm/KForm.js +16 -37
- package/es5/components/KForm/KForm.js.map +1 -1
- package/es5/components/KForm/index.js +2 -6
- package/es5/components/KForm/index.js.map +1 -1
- package/es5/components/KGrid/KCol.js +36 -65
- package/es5/components/KGrid/KCol.js.map +1 -1
- package/es5/components/KGrid/KContainer.js +6 -18
- package/es5/components/KGrid/KContainer.js.map +1 -1
- package/es5/components/KGrid/KFlex.js +2 -8
- package/es5/components/KGrid/KFlex.js.map +1 -1
- package/es5/components/KGrid/KLayout.js +2 -8
- package/es5/components/KGrid/KLayout.js.map +1 -1
- package/es5/components/KGrid/KRow.js +30 -61
- package/es5/components/KGrid/KRow.js.map +1 -1
- package/es5/components/KGrid/KSpacer.js +1 -6
- package/es5/components/KGrid/KSpacer.js.map +1 -1
- package/es5/components/KGrid/grid.js +6 -12
- package/es5/components/KGrid/grid.js.map +1 -1
- package/es5/components/KGrid/index.js +14 -23
- package/es5/components/KGrid/index.js.map +1 -1
- package/es5/components/KHover/KHover.js +3 -19
- package/es5/components/KHover/KHover.js.map +1 -1
- package/es5/components/KHover/index.js +2 -6
- package/es5/components/KHover/index.js.map +1 -1
- package/es5/components/KIcon/KIcon.js +20 -48
- package/es5/components/KIcon/KIcon.js.map +1 -1
- package/es5/components/KIcon/index.js +2 -6
- package/es5/components/KIcon/index.js.map +1 -1
- package/es5/components/KImg/KImg.js +15 -37
- package/es5/components/KImg/KImg.js.map +1 -1
- package/es5/components/KImg/index.js +2 -6
- package/es5/components/KImg/index.js.map +1 -1
- package/es5/components/KInput/KInput.js +27 -36
- package/es5/components/KInput/KInput.js.map +1 -1
- package/es5/components/KInput/index.js +2 -6
- package/es5/components/KInput/index.js.map +1 -1
- package/es5/components/KItemGroup/KItem.js +21 -23
- package/es5/components/KItemGroup/KItem.js.map +1 -1
- package/es5/components/KItemGroup/KItemGroup.js +46 -57
- package/es5/components/KItemGroup/KItemGroup.js.map +1 -1
- package/es5/components/KItemGroup/index.js +2 -7
- package/es5/components/KItemGroup/index.js.map +1 -1
- package/es5/components/KLabel/KLabel.js +18 -28
- package/es5/components/KLabel/KLabel.js.map +1 -1
- package/es5/components/KLabel/index.js +2 -6
- package/es5/components/KLabel/index.js.map +1 -1
- package/es5/components/KLazy/KLazy.js +10 -17
- package/es5/components/KLazy/KLazy.js.map +1 -1
- package/es5/components/KLazy/index.js +2 -6
- package/es5/components/KLazy/index.js.map +1 -1
- package/es5/components/KList/KList.js +18 -26
- package/es5/components/KList/KList.js.map +1 -1
- package/es5/components/KList/KListGroup.js +21 -38
- package/es5/components/KList/KListGroup.js.map +1 -1
- package/es5/components/KList/KListItem.js +29 -44
- package/es5/components/KList/KListItem.js.map +1 -1
- package/es5/components/KList/KListItemAction.js +4 -10
- package/es5/components/KList/KListItemAction.js.map +1 -1
- package/es5/components/KList/KListItemAvatar.js +10 -16
- package/es5/components/KList/KListItemAvatar.js.map +1 -1
- package/es5/components/KList/KListItemGroup.js +13 -18
- package/es5/components/KList/KListItemGroup.js.map +1 -1
- package/es5/components/KList/KListItemIcon.js +3 -9
- package/es5/components/KList/KListItemIcon.js.map +1 -1
- package/es5/components/KList/index.js +15 -28
- package/es5/components/KList/index.js.map +1 -1
- package/es5/components/KMain/KMain.js +11 -17
- package/es5/components/KMain/KMain.js.map +1 -1
- package/es5/components/KMain/index.js +2 -6
- package/es5/components/KMain/index.js.map +1 -1
- package/es5/components/KMenu/KMenu.js +42 -92
- package/es5/components/KMenu/KMenu.js.map +1 -1
- package/es5/components/KMenu/index.js +2 -6
- package/es5/components/KMenu/index.js.map +1 -1
- package/es5/components/KMessages/KMessages.js +2 -12
- package/es5/components/KMessages/KMessages.js.map +1 -1
- package/es5/components/KMessages/index.js +2 -6
- package/es5/components/KMessages/index.js.map +1 -1
- package/es5/components/KNavigationDrawer/KNavigationDrawer.js +23 -54
- package/es5/components/KNavigationDrawer/KNavigationDrawer.js.map +1 -1
- package/es5/components/KNavigationDrawer/index.js +2 -6
- package/es5/components/KNavigationDrawer/index.js.map +1 -1
- package/es5/components/KOtpInput/KOtpInput.js +46 -116
- package/es5/components/KOtpInput/KOtpInput.js.map +1 -1
- package/es5/components/KOtpInput/index.js +2 -6
- package/es5/components/KOtpInput/index.js.map +1 -1
- package/es5/components/KOverflowBtn/KOverflowBtn.js +17 -27
- package/es5/components/KOverflowBtn/KOverflowBtn.js.map +1 -1
- package/es5/components/KOverflowBtn/index.js +2 -6
- package/es5/components/KOverflowBtn/index.js.map +1 -1
- package/es5/components/KOverlay/KOverlay.js +12 -18
- package/es5/components/KOverlay/KOverlay.js.map +1 -1
- package/es5/components/KOverlay/index.js +2 -6
- package/es5/components/KOverlay/index.js.map +1 -1
- package/es5/components/KPagination/KPagination.js +28 -48
- package/es5/components/KPagination/KPagination.js.map +1 -1
- package/es5/components/KPagination/index.js +2 -6
- package/es5/components/KPagination/index.js.map +1 -1
- package/es5/components/KParallax/KParallax.js +6 -15
- package/es5/components/KParallax/KParallax.js.map +1 -1
- package/es5/components/KParallax/index.js +2 -6
- package/es5/components/KParallax/index.js.map +1 -1
- package/es5/components/KPicker/KPicker.js +14 -24
- package/es5/components/KPicker/KPicker.js.map +1 -1
- package/es5/components/KPicker/index.js +2 -6
- package/es5/components/KPicker/index.js.map +1 -1
- package/es5/components/KProgressCircular/KProgressCircular.js +3 -14
- package/es5/components/KProgressCircular/KProgressCircular.js.map +1 -1
- package/es5/components/KProgressCircular/index.js +2 -6
- package/es5/components/KProgressCircular/index.js.map +1 -1
- package/es5/components/KProgressLinear/KProgressLinear.js +14 -34
- package/es5/components/KProgressLinear/KProgressLinear.js.map +1 -1
- package/es5/components/KProgressLinear/index.js +2 -6
- package/es5/components/KProgressLinear/index.js.map +1 -1
- package/es5/components/KRadioGroup/KRadio.js +32 -47
- package/es5/components/KRadioGroup/KRadio.js.map +1 -1
- package/es5/components/KRadioGroup/KRadioGroup.js +14 -28
- package/es5/components/KRadioGroup/KRadioGroup.js.map +1 -1
- package/es5/components/KRadioGroup/index.js +6 -11
- package/es5/components/KRadioGroup/index.js.map +1 -1
- package/es5/components/KRangeSlider/KRangeSlider.js +24 -58
- package/es5/components/KRangeSlider/KRangeSlider.js.map +1 -1
- package/es5/components/KRangeSlider/index.js +2 -6
- package/es5/components/KRangeSlider/index.js.map +1 -1
- package/es5/components/KRating/KRating.js +10 -41
- package/es5/components/KRating/KRating.js.map +1 -1
- package/es5/components/KRating/index.js +2 -6
- package/es5/components/KRating/index.js.map +1 -1
- package/es5/components/KResponsive/KResponsive.js +4 -11
- package/es5/components/KResponsive/KResponsive.js.map +1 -1
- package/es5/components/KResponsive/index.js +2 -6
- package/es5/components/KResponsive/index.js.map +1 -1
- package/es5/components/KSelect/KSelect.js +143 -209
- package/es5/components/KSelect/KSelect.js.map +1 -1
- package/es5/components/KSelect/KSelectList.js +33 -51
- package/es5/components/KSelect/KSelectList.js.map +1 -1
- package/es5/components/KSelect/index.js +2 -6
- package/es5/components/KSelect/index.js.map +1 -1
- package/es5/components/KSheet/KSheet.js +12 -22
- package/es5/components/KSheet/KSheet.js.map +1 -1
- package/es5/components/KSheet/index.js +2 -6
- package/es5/components/KSheet/index.js.map +1 -1
- package/es5/components/KSkeletonLoader/KSkeletonLoader.js +45 -56
- package/es5/components/KSkeletonLoader/KSkeletonLoader.js.map +1 -1
- package/es5/components/KSkeletonLoader/index.js +2 -6
- package/es5/components/KSkeletonLoader/index.js.map +1 -1
- package/es5/components/KSlideGroup/KSlideGroup.js +88 -115
- package/es5/components/KSlideGroup/KSlideGroup.js.map +1 -1
- package/es5/components/KSlideGroup/KSlideItem.js +3 -11
- package/es5/components/KSlideGroup/KSlideItem.js.map +1 -1
- package/es5/components/KSlideGroup/index.js +2 -7
- package/es5/components/KSlideGroup/index.js.map +1 -1
- package/es5/components/KSlider/KSlider.js +41 -76
- package/es5/components/KSlider/KSlider.js.map +1 -1
- package/es5/components/KSlider/index.js +2 -6
- package/es5/components/KSlider/index.js.map +1 -1
- package/es5/components/KSnackbar/KSnackbar.js +19 -33
- package/es5/components/KSnackbar/KSnackbar.js.map +1 -1
- package/es5/components/KSnackbar/index.js +2 -6
- package/es5/components/KSnackbar/index.js.map +1 -1
- package/es5/components/KSparkline/KSparkline.js +13 -32
- package/es5/components/KSparkline/KSparkline.js.map +1 -1
- package/es5/components/KSparkline/helpers/core.js +12 -20
- package/es5/components/KSparkline/helpers/core.js.map +1 -1
- package/es5/components/KSparkline/helpers/math.js +0 -5
- package/es5/components/KSparkline/helpers/math.js.map +1 -1
- package/es5/components/KSparkline/helpers/path.js +0 -4
- package/es5/components/KSparkline/helpers/path.js.map +1 -1
- package/es5/components/KSparkline/index.js +2 -6
- package/es5/components/KSparkline/index.js.map +1 -1
- package/es5/components/KSpeedDial/KSpeedDial.js +14 -25
- package/es5/components/KSpeedDial/KSpeedDial.js.map +1 -1
- package/es5/components/KSpeedDial/index.js +2 -6
- package/es5/components/KSpeedDial/index.js.map +1 -1
- package/es5/components/KStepper/KStepper.js +13 -22
- package/es5/components/KStepper/KStepper.js.map +1 -1
- package/es5/components/KStepper/KStepperContent.js +11 -21
- package/es5/components/KStepper/KStepperContent.js.map +1 -1
- package/es5/components/KStepper/KStepperStep.js +18 -17
- package/es5/components/KStepper/KStepperStep.js.map +1 -1
- package/es5/components/KStepper/index.js +10 -18
- package/es5/components/KStepper/index.js.map +1 -1
- package/es5/components/KSubheader/KSubheader.js +12 -18
- package/es5/components/KSubheader/KSubheader.js.map +1 -1
- package/es5/components/KSubheader/index.js +2 -6
- package/es5/components/KSubheader/index.js.map +1 -1
- package/es5/components/KSwitch/KSwitch.js +20 -30
- package/es5/components/KSwitch/KSwitch.js.map +1 -1
- package/es5/components/KSwitch/index.js +2 -6
- package/es5/components/KSwitch/index.js.map +1 -1
- package/es5/components/KSystemBar/KSystemBar.js +11 -21
- package/es5/components/KSystemBar/KSystemBar.js.map +1 -1
- package/es5/components/KSystemBar/index.js +2 -6
- package/es5/components/KSystemBar/index.js.map +1 -1
- package/es5/components/KTabs/KTab.js +30 -37
- package/es5/components/KTabs/KTab.js.map +1 -1
- package/es5/components/KTabs/KTabItem.js +2 -9
- package/es5/components/KTabs/KTabItem.js.map +1 -1
- package/es5/components/KTabs/KTabs.js +28 -47
- package/es5/components/KTabs/KTabs.js.map +1 -1
- package/es5/components/KTabs/KTabsBar.js +18 -33
- package/es5/components/KTabs/KTabsBar.js.map +1 -1
- package/es5/components/KTabs/KTabsItems.js +10 -15
- package/es5/components/KTabs/KTabsItems.js.map +1 -1
- package/es5/components/KTabs/KTabsSlider.js +2 -9
- package/es5/components/KTabs/KTabsSlider.js.map +1 -1
- package/es5/components/KTabs/index.js +10 -18
- package/es5/components/KTabs/index.js.map +1 -1
- package/es5/components/KTextField/KTextField.js +38 -91
- package/es5/components/KTextField/KTextField.js.map +1 -1
- package/es5/components/KTextField/index.js +2 -6
- package/es5/components/KTextField/index.js.map +1 -1
- package/es5/components/KTextarea/KTextarea.js +14 -26
- package/es5/components/KTextarea/KTextarea.js.map +1 -1
- package/es5/components/KTextarea/index.js +2 -6
- package/es5/components/KTextarea/index.js.map +1 -1
- package/es5/components/KThemeProvider/KThemeProvider.js +2 -8
- package/es5/components/KThemeProvider/KThemeProvider.js.map +1 -1
- package/es5/components/KThemeProvider/index.js +2 -6
- package/es5/components/KThemeProvider/index.js.map +1 -1
- package/es5/components/KTimePicker/KTimePicker.js +46 -72
- package/es5/components/KTimePicker/KTimePicker.js.map +1 -1
- package/es5/components/KTimePicker/KTimePickerClock.js +20 -43
- package/es5/components/KTimePicker/KTimePickerClock.js.map +1 -1
- package/es5/components/KTimePicker/KTimePickerTitle.js +3 -17
- package/es5/components/KTimePicker/KTimePickerTitle.js.map +1 -1
- package/es5/components/KTimePicker/SelectingTimes.js +0 -2
- package/es5/components/KTimePicker/SelectingTimes.js.map +1 -1
- package/es5/components/KTimePicker/index.js +2 -8
- package/es5/components/KTimePicker/index.js.map +1 -1
- package/es5/components/KTimeline/KTimeline.js +12 -18
- package/es5/components/KTimeline/KTimeline.js.map +1 -1
- package/es5/components/KTimeline/KTimelineItem.js +14 -26
- package/es5/components/KTimeline/KTimelineItem.js.map +1 -1
- package/es5/components/KTimeline/index.js +2 -7
- package/es5/components/KTimeline/index.js.map +1 -1
- package/es5/components/KToolbar/KToolbar.js +20 -35
- package/es5/components/KToolbar/KToolbar.js.map +1 -1
- package/es5/components/KToolbar/index.js +6 -11
- package/es5/components/KToolbar/index.js.map +1 -1
- package/es5/components/KTooltip/KTooltip.js +28 -50
- package/es5/components/KTooltip/KTooltip.js.map +1 -1
- package/es5/components/KTooltip/index.js +2 -6
- package/es5/components/KTooltip/index.js.map +1 -1
- package/es5/components/KTreeview/KTreeview.js +51 -135
- package/es5/components/KTreeview/KTreeview.js.map +1 -1
- package/es5/components/KTreeview/KTreeviewNode.js +17 -47
- package/es5/components/KTreeview/KTreeviewNode.js.map +1 -1
- package/es5/components/KTreeview/index.js +2 -7
- package/es5/components/KTreeview/index.js.map +1 -1
- package/es5/components/KTreeview/util/filterTreeItems.js +0 -8
- package/es5/components/KTreeview/util/filterTreeItems.js.map +1 -1
- package/es5/components/KVirtualScroll/KVirtualScroll.js +2 -10
- package/es5/components/KVirtualScroll/KVirtualScroll.js.map +1 -1
- package/es5/components/KVirtualScroll/index.js +2 -6
- package/es5/components/KVirtualScroll/index.js.map +1 -1
- package/es5/components/KWindow/KWindow.js +17 -40
- package/es5/components/KWindow/KWindow.js.map +1 -1
- package/es5/components/KWindow/KWindowItem.js +16 -31
- package/es5/components/KWindow/KWindowItem.js.map +1 -1
- package/es5/components/KWindow/index.js +2 -7
- package/es5/components/KWindow/index.js.map +1 -1
- package/es5/components/index.js +0 -162
- package/es5/components/index.js.map +1 -1
- package/es5/components/transitions/createTransition.js +10 -21
- package/es5/components/transitions/createTransition.js.map +1 -1
- package/es5/components/transitions/expand-transition.js +6 -13
- package/es5/components/transitions/expand-transition.js.map +1 -1
- package/es5/components/transitions/index.js +26 -52
- package/es5/components/transitions/index.js.map +1 -1
- package/es5/directives/click-outside/index.js +17 -34
- package/es5/directives/click-outside/index.js.map +1 -1
- package/es5/directives/color/index.js +4 -18
- package/es5/directives/color/index.js.map +1 -1
- package/es5/directives/index.js +0 -7
- package/es5/directives/index.js.map +1 -1
- package/es5/directives/intersect/index.js +14 -28
- package/es5/directives/intersect/index.js.map +1 -1
- package/es5/directives/mutate/index.js +17 -28
- package/es5/directives/mutate/index.js.map +1 -1
- package/es5/directives/resize/index.js +6 -13
- package/es5/directives/resize/index.js.map +1 -1
- package/es5/directives/ripple/index.js +21 -85
- package/es5/directives/ripple/index.js.map +1 -1
- package/es5/directives/scroll/index.js +11 -19
- package/es5/directives/scroll/index.js.map +1 -1
- package/es5/directives/touch/index.js +7 -20
- package/es5/directives/touch/index.js.map +1 -1
- package/es5/entry-lib.js +1 -8
- package/es5/entry-lib.js.map +1 -1
- package/es5/framework.js +18 -34
- package/es5/framework.js.map +1 -1
- package/es5/index.js +9 -22
- package/es5/index.js.map +1 -1
- package/es5/install.js +8 -21
- package/es5/install.js.map +1 -1
- package/es5/locale/af.js +8 -3
- package/es5/locale/af.js.map +1 -1
- package/es5/locale/ar.js +28 -23
- package/es5/locale/ar.js.map +1 -1
- package/es5/locale/az.js +8 -3
- package/es5/locale/az.js.map +1 -1
- package/es5/locale/bg.js +8 -3
- package/es5/locale/bg.js.map +1 -1
- package/es5/locale/ca.js +15 -10
- package/es5/locale/ca.js.map +1 -1
- package/es5/locale/ckb.js +8 -3
- package/es5/locale/ckb.js.map +1 -1
- package/es5/locale/cs.js +8 -3
- package/es5/locale/cs.js.map +1 -1
- package/es5/locale/da.js +8 -3
- package/es5/locale/da.js.map +1 -1
- package/es5/locale/de.js +8 -3
- package/es5/locale/de.js.map +1 -1
- package/es5/locale/el.js +8 -3
- package/es5/locale/el.js.map +1 -1
- package/es5/locale/en.js +8 -3
- package/es5/locale/en.js.map +1 -1
- package/es5/locale/es.js +11 -6
- package/es5/locale/es.js.map +1 -1
- package/es5/locale/et.js +8 -3
- package/es5/locale/et.js.map +1 -1
- package/es5/locale/fa.js +8 -3
- package/es5/locale/fa.js.map +1 -1
- package/es5/locale/fi.js +13 -8
- package/es5/locale/fi.js.map +1 -1
- package/es5/locale/fr.js +9 -4
- package/es5/locale/fr.js.map +1 -1
- package/es5/locale/he.js +8 -3
- package/es5/locale/he.js.map +1 -1
- package/es5/locale/hr.js +8 -3
- package/es5/locale/hr.js.map +1 -1
- package/es5/locale/hu.js +8 -3
- package/es5/locale/hu.js.map +1 -1
- package/es5/locale/id.js +8 -3
- package/es5/locale/id.js.map +1 -1
- package/es5/locale/index.js +17 -60
- package/es5/locale/index.js.map +1 -1
- package/es5/locale/it.js +14 -9
- package/es5/locale/it.js.map +1 -1
- package/es5/locale/ja.js +8 -3
- package/es5/locale/ja.js.map +1 -1
- package/es5/locale/ko.js +8 -3
- package/es5/locale/ko.js.map +1 -1
- package/es5/locale/lt.js +8 -3
- package/es5/locale/lt.js.map +1 -1
- package/es5/locale/lv.js +8 -3
- package/es5/locale/lv.js.map +1 -1
- package/es5/locale/nl.js +8 -3
- package/es5/locale/nl.js.map +1 -1
- package/es5/locale/no.js +8 -3
- package/es5/locale/no.js.map +1 -1
- package/es5/locale/pl.js +8 -3
- package/es5/locale/pl.js.map +1 -1
- package/es5/locale/pt.js +8 -3
- package/es5/locale/pt.js.map +1 -1
- package/es5/locale/ro.js +8 -3
- package/es5/locale/ro.js.map +1 -1
- package/es5/locale/ru.js +8 -3
- package/es5/locale/ru.js.map +1 -1
- package/es5/locale/sk.js +8 -3
- package/es5/locale/sk.js.map +1 -1
- package/es5/locale/sl.js +8 -3
- package/es5/locale/sl.js.map +1 -1
- package/es5/locale/sr-Cyrl.js +8 -3
- package/es5/locale/sr-Cyrl.js.map +1 -1
- package/es5/locale/sr-Latn.js +8 -3
- package/es5/locale/sr-Latn.js.map +1 -1
- package/es5/locale/sv.js +8 -3
- package/es5/locale/sv.js.map +1 -1
- package/es5/locale/th.js +8 -3
- package/es5/locale/th.js.map +1 -1
- package/es5/locale/tr.js +8 -3
- package/es5/locale/tr.js.map +1 -1
- package/es5/locale/uk.js +8 -3
- package/es5/locale/uk.js.map +1 -1
- package/es5/locale/vi.js +8 -3
- package/es5/locale/vi.js.map +1 -1
- package/es5/locale/zh-Hans.js +8 -3
- package/es5/locale/zh-Hans.js.map +1 -1
- package/es5/locale/zh-Hant.js +8 -3
- package/es5/locale/zh-Hant.js.map +1 -1
- package/es5/mixins/activatable/index.js +15 -42
- package/es5/mixins/activatable/index.js.map +1 -1
- package/es5/mixins/applicationable/index.js +2 -7
- package/es5/mixins/applicationable/index.js.map +1 -1
- package/es5/mixins/binds-attrs/index.js +2 -9
- package/es5/mixins/binds-attrs/index.js.map +1 -1
- package/es5/mixins/bootable/index.js +2 -10
- package/es5/mixins/bootable/index.js.map +1 -1
- package/es5/mixins/button-group/index.js +1 -6
- package/es5/mixins/button-group/index.js.map +1 -1
- package/es5/mixins/colorable/index.js +28 -51
- package/es5/mixins/colorable/index.js.map +1 -1
- package/es5/mixins/comparable/index.js +2 -8
- package/es5/mixins/comparable/index.js.map +1 -1
- package/es5/mixins/delayable/index.js +2 -9
- package/es5/mixins/delayable/index.js.map +1 -1
- package/es5/mixins/dependent/index.js +7 -26
- package/es5/mixins/dependent/index.js.map +1 -1
- package/es5/mixins/detachable/index.js +13 -28
- package/es5/mixins/detachable/index.js.map +1 -1
- package/es5/mixins/elevatable/index.js +6 -9
- package/es5/mixins/elevatable/index.js.map +1 -1
- package/es5/mixins/filterable/index.js +2 -7
- package/es5/mixins/filterable/index.js.map +1 -1
- package/es5/mixins/groupable/index.js +14 -10
- package/es5/mixins/groupable/index.js.map +1 -1
- package/es5/mixins/intersectable/index.js +4 -9
- package/es5/mixins/intersectable/index.js.map +1 -1
- package/es5/mixins/loadable/index.js +4 -10
- package/es5/mixins/loadable/index.js.map +1 -1
- package/es5/mixins/localable/index.js +2 -7
- package/es5/mixins/localable/index.js.map +1 -1
- package/es5/mixins/measurable/index.js +2 -8
- package/es5/mixins/measurable/index.js.map +1 -1
- package/es5/mixins/menuable/index.js +38 -65
- package/es5/mixins/menuable/index.js.map +1 -1
- package/es5/mixins/mobile/index.js +7 -13
- package/es5/mixins/mobile/index.js.map +1 -1
- package/es5/mixins/mouse/index.js +106 -0
- package/es5/mixins/mouse/index.js.map +1 -0
- package/es5/mixins/overlayable/index.js +9 -39
- package/es5/mixins/overlayable/index.js.map +1 -1
- package/es5/mixins/picker/index.js +5 -16
- package/es5/mixins/picker/index.js.map +1 -1
- package/es5/mixins/picker-button/index.js +2 -14
- package/es5/mixins/picker-button/index.js.map +1 -1
- package/es5/mixins/positionable/index.js +3 -13
- package/es5/mixins/positionable/index.js.map +1 -1
- package/es5/mixins/proxyable/index.js +7 -11
- package/es5/mixins/proxyable/index.js.map +1 -1
- package/es5/mixins/registrable/index.js +5 -9
- package/es5/mixins/registrable/index.js.map +1 -1
- package/es5/mixins/returnable/index.js +2 -8
- package/es5/mixins/returnable/index.js.map +1 -1
- package/es5/mixins/rippleable/index.js +2 -8
- package/es5/mixins/rippleable/index.js.map +1 -1
- package/es5/mixins/roundable/index.js +10 -20
- package/es5/mixins/roundable/index.js.map +1 -1
- package/es5/mixins/routable/index.js +18 -36
- package/es5/mixins/routable/index.js.map +1 -1
- package/es5/mixins/scrollable/index.js +2 -15
- package/es5/mixins/scrollable/index.js.map +1 -1
- package/es5/mixins/selectable/index.js +13 -30
- package/es5/mixins/selectable/index.js.map +1 -1
- package/es5/mixins/sizeable/index.js +2 -7
- package/es5/mixins/sizeable/index.js.map +1 -1
- package/es5/mixins/ssr-bootable/index.js +2 -9
- package/es5/mixins/ssr-bootable/index.js.map +1 -1
- package/es5/mixins/stackable/index.js +17 -30
- package/es5/mixins/stackable/index.js.map +1 -1
- package/es5/mixins/themeable/index.js +11 -20
- package/es5/mixins/themeable/index.js.map +1 -1
- package/es5/mixins/toggleable/index.js +10 -16
- package/es5/mixins/toggleable/index.js.map +1 -1
- package/es5/mixins/transitionable/index.js +2 -7
- package/es5/mixins/transitionable/index.js.map +1 -1
- package/es5/mixins/translatable/index.js +3 -10
- package/es5/mixins/translatable/index.js.map +1 -1
- package/es5/mixins/validatable/index.js +21 -35
- package/es5/mixins/validatable/index.js.map +1 -1
- package/es5/presets/default/index.js +3 -5
- package/es5/presets/default/index.js.map +1 -1
- package/es5/services/application/index.js +18 -41
- package/es5/services/application/index.js.map +1 -1
- package/es5/services/breakpoint/index.js +29 -61
- package/es5/services/breakpoint/index.js.map +1 -1
- package/es5/services/goto/easing-patterns.js +38 -77
- package/es5/services/goto/easing-patterns.js.map +1 -1
- package/es5/services/goto/index.js +29 -64
- package/es5/services/goto/index.js.map +1 -1
- package/es5/services/goto/util.js +1 -10
- package/es5/services/goto/util.js.map +1 -1
- package/es5/services/icons/index.js +23 -39
- package/es5/services/icons/index.js.map +1 -1
- package/es5/services/icons/presets/fa-svg.js +2 -10
- package/es5/services/icons/presets/fa-svg.js.map +1 -1
- package/es5/services/icons/presets/fa.js +2 -3
- package/es5/services/icons/presets/fa.js.map +1 -1
- package/es5/services/icons/presets/fa4.js +1 -2
- package/es5/services/icons/presets/fa4.js.map +1 -1
- package/es5/services/icons/presets/index.js +2 -12
- package/es5/services/icons/presets/index.js.map +1 -1
- package/es5/services/icons/presets/md.js +1 -2
- package/es5/services/icons/presets/md.js.map +1 -1
- package/es5/services/icons/presets/mdi-svg.js +6 -7
- package/es5/services/icons/presets/mdi-svg.js.map +1 -1
- package/es5/services/icons/presets/mdi.js +1 -2
- package/es5/services/icons/presets/mdi.js.map +1 -1
- package/es5/services/index.js +0 -14
- package/es5/services/index.js.map +1 -1
- package/es5/services/lang/index.js +21 -49
- package/es5/services/lang/index.js.map +1 -1
- package/es5/services/presets/index.js +28 -48
- package/es5/services/presets/index.js.map +1 -1
- package/es5/services/service/index.js +8 -15
- package/es5/services/service/index.js.map +1 -1
- package/es5/services/theme/index.js +48 -102
- package/es5/services/theme/index.js.map +1 -1
- package/es5/services/theme/utils.js +22 -63
- package/es5/services/theme/utils.js.map +1 -1
- package/es5/util/color/transformCIELAB.js +0 -4
- package/es5/util/color/transformCIELAB.js.map +1 -1
- package/es5/util/color/transformSRGB.js +14 -21
- package/es5/util/color/transformSRGB.js.map +1 -1
- package/es5/util/colorUtils.js +42 -93
- package/es5/util/colorUtils.js.map +1 -1
- package/es5/util/colors.js +1 -4
- package/es5/util/colors.js.map +1 -1
- package/es5/util/console.js +4 -26
- package/es5/util/console.js.map +1 -1
- package/es5/util/dateTimeUtils.js +1 -13
- package/es5/util/dateTimeUtils.js.map +1 -1
- package/es5/util/dedupeModelListeners.js +0 -1
- package/es5/util/dedupeModelListeners.js.map +1 -1
- package/es5/util/dom.js +4 -9
- package/es5/util/dom.js.map +1 -1
- package/es5/util/helpers.js +74 -192
- package/es5/util/helpers.js.map +1 -1
- package/es5/util/mergeData.js +24 -66
- package/es5/util/mergeData.js.map +1 -1
- package/es5/util/mixins.js +2 -5
- package/es5/util/mixins.js.map +1 -1
- package/es5/util/rebuildFunctionalSlots.js +0 -3
- package/es5/util/rebuildFunctionalSlots.js.map +1 -1
- package/lib/components/KAlert/KAlert.js +13 -42
- package/lib/components/KAlert/KAlert.js.map +1 -1
- package/lib/components/KAlert/index.js.map +1 -1
- package/lib/components/KApp/KApp.js +7 -11
- package/lib/components/KApp/KApp.js.map +1 -1
- package/lib/components/KApp/index.js.map +1 -1
- package/lib/components/KAppBar/KAppBar.js +14 -51
- package/lib/components/KAppBar/KAppBar.js.map +1 -1
- package/lib/components/KAppBar/KAppBarNavIcon.js +4 -6
- package/lib/components/KAppBar/KAppBarNavIcon.js.map +1 -1
- package/lib/components/KAppBar/KAppBarTitle.js +5 -11
- package/lib/components/KAppBar/KAppBarTitle.js.map +1 -1
- package/lib/components/KAppBar/index.js.map +1 -1
- package/lib/components/KAutocomplete/KAutocomplete.js +27 -89
- package/lib/components/KAutocomplete/KAutocomplete.js.map +1 -1
- package/lib/components/KAutocomplete/index.js.map +1 -1
- package/lib/components/KAvatar/KAvatar.js +6 -10
- package/lib/components/KAvatar/KAvatar.js.map +1 -1
- package/lib/components/KAvatar/index.js.map +1 -1
- package/lib/components/KBadge/KBadge.js +6 -24
- package/lib/components/KBadge/KBadge.js.map +1 -1
- package/lib/components/KBadge/index.js.map +1 -1
- package/lib/components/KBanner/KBanner.js +18 -33
- package/lib/components/KBanner/KBanner.js.map +1 -1
- package/lib/components/KBanner/index.js.map +1 -1
- package/lib/components/KBottomNavigation/KBottomNavigation.js +18 -24
- package/lib/components/KBottomNavigation/KBottomNavigation.js.map +1 -1
- package/lib/components/KBottomNavigation/index.js.map +1 -1
- package/lib/components/KBottomSheet/KBottomSheet.js +5 -9
- package/lib/components/KBottomSheet/KBottomSheet.js.map +1 -1
- package/lib/components/KBottomSheet/index.js.map +1 -1
- package/lib/components/KBreadcrumbs/KBreadcrumbs.js +9 -16
- package/lib/components/KBreadcrumbs/KBreadcrumbs.js.map +1 -1
- package/lib/components/KBreadcrumbs/KBreadcrumbsDivider.js.map +1 -1
- package/lib/components/KBreadcrumbs/KBreadcrumbsItem.js +6 -7
- package/lib/components/KBreadcrumbs/KBreadcrumbsItem.js.map +1 -1
- package/lib/components/KBreadcrumbs/index.js.map +1 -1
- package/lib/components/KBtn/KBtn.js +16 -35
- package/lib/components/KBtn/KBtn.js.map +1 -1
- package/lib/components/KBtn/index.js.map +1 -1
- package/lib/components/KBtnToggle/KBtnToggle.js +8 -9
- package/lib/components/KBtnToggle/KBtnToggle.js.map +1 -1
- package/lib/components/KBtnToggle/index.js.map +1 -1
- package/lib/components/KCalendar/KCalendar.js +13 -68
- package/lib/components/KCalendar/KCalendar.js.map +1 -1
- package/lib/components/KCalendar/KCalendarCategory.js +8 -19
- package/lib/components/KCalendar/KCalendarCategory.js.map +1 -1
- package/lib/components/KCalendar/KCalendarDaily.js +28 -45
- package/lib/components/KCalendar/KCalendarDaily.js.map +1 -1
- package/lib/components/KCalendar/KCalendarMonthly.js +4 -8
- package/lib/components/KCalendar/KCalendarMonthly.js.map +1 -1
- package/lib/components/KCalendar/KCalendarWeekly.js +31 -39
- package/lib/components/KCalendar/KCalendarWeekly.js.map +1 -1
- package/lib/components/KCalendar/index.js.map +1 -1
- package/lib/components/KCalendar/mixins/calendar-base.js +6 -21
- package/lib/components/KCalendar/mixins/calendar-base.js.map +1 -1
- package/lib/components/KCalendar/mixins/calendar-with-events.js +39 -100
- package/lib/components/KCalendar/mixins/calendar-with-events.js.map +1 -1
- package/lib/components/KCalendar/mixins/calendar-with-intervals.js +2 -30
- package/lib/components/KCalendar/mixins/calendar-with-intervals.js.map +1 -1
- package/lib/components/KCalendar/mixins/times.js +0 -8
- package/lib/components/KCalendar/mixins/times.js.map +1 -1
- package/lib/components/KCalendar/modes/column.js +0 -2
- package/lib/components/KCalendar/modes/column.js.map +1 -1
- package/lib/components/KCalendar/modes/common.js +0 -12
- package/lib/components/KCalendar/modes/common.js.map +1 -1
- package/lib/components/KCalendar/modes/index.js.map +1 -1
- package/lib/components/KCalendar/modes/stack.js +2 -46
- package/lib/components/KCalendar/modes/stack.js.map +1 -1
- package/lib/components/KCalendar/util/events.js.map +1 -1
- package/lib/components/KCalendar/util/parser.js +2 -3
- package/lib/components/KCalendar/util/parser.js.map +1 -1
- package/lib/components/KCalendar/util/props.js +0 -12
- package/lib/components/KCalendar/util/props.js.map +1 -1
- package/lib/components/KCalendar/util/timestamp.js +2 -61
- package/lib/components/KCalendar/util/timestamp.js.map +1 -1
- package/lib/components/KCard/KCard.js +10 -18
- package/lib/components/KCard/KCard.js.map +1 -1
- package/lib/components/KCard/index.js.map +1 -1
- package/lib/components/KCarousel/KCarousel.js +12 -36
- package/lib/components/KCarousel/KCarousel.js.map +1 -1
- package/lib/components/KCarousel/KCarouselItem.js +8 -12
- package/lib/components/KCarousel/KCarouselItem.js.map +1 -1
- package/lib/components/KCarousel/index.js.map +1 -1
- package/lib/components/KCheckbox/KCheckbox.js +8 -17
- package/lib/components/KCheckbox/KCheckbox.js.map +1 -1
- package/lib/components/KCheckbox/KSimpleCheckbox.js +9 -12
- package/lib/components/KCheckbox/KSimpleCheckbox.js.map +1 -1
- package/lib/components/KCheckbox/index.js.map +1 -1
- package/lib/components/KChip/KChip.js +10 -25
- package/lib/components/KChip/KChip.js.map +1 -1
- package/lib/components/KChip/index.js.map +1 -1
- package/lib/components/KChipGroup/KChipGroup.js +10 -14
- package/lib/components/KChipGroup/KChipGroup.js.map +1 -1
- package/lib/components/KChipGroup/index.js.map +1 -1
- package/lib/components/KColorPicker/KColorPicker.js +6 -17
- package/lib/components/KColorPicker/KColorPicker.js.map +1 -1
- package/lib/components/KColorPicker/KColorPickerCanvas.js +4 -22
- package/lib/components/KColorPicker/KColorPickerCanvas.js.map +1 -1
- package/lib/components/KColorPicker/KColorPickerEdit.js +6 -20
- package/lib/components/KColorPicker/KColorPickerEdit.js.map +1 -1
- package/lib/components/KColorPicker/KColorPickerPreview.js +10 -15
- package/lib/components/KColorPicker/KColorPickerPreview.js.map +1 -1
- package/lib/components/KColorPicker/KColorPickerSwatches.js +4 -10
- package/lib/components/KColorPicker/KColorPickerSwatches.js.map +1 -1
- package/lib/components/KColorPicker/index.js.map +1 -1
- package/lib/components/KColorPicker/util/index.js +8 -19
- package/lib/components/KColorPicker/util/index.js.map +1 -1
- package/lib/components/KCombobox/KCombobox.js +34 -67
- package/lib/components/KCombobox/KCombobox.js.map +1 -1
- package/lib/components/KCombobox/index.js.map +1 -1
- package/lib/components/KContent/KContent.js +0 -4
- package/lib/components/KContent/KContent.js.map +1 -1
- package/lib/components/KContent/index.js.map +1 -1
- package/lib/components/KCounter/KCounter.js +2 -5
- package/lib/components/KCounter/KCounter.js.map +1 -1
- package/lib/components/KCounter/index.js.map +1 -1
- package/lib/components/KData/KData.js +8 -71
- package/lib/components/KData/KData.js.map +1 -1
- package/lib/components/KData/index.js.map +1 -1
- package/lib/components/KDataIterator/KDataFooter.js +7 -24
- package/lib/components/KDataIterator/KDataFooter.js.map +1 -1
- package/lib/components/KDataIterator/KDataIterator.js +21 -59
- package/lib/components/KDataIterator/KDataIterator.js.map +1 -1
- package/lib/components/KDataIterator/index.js.map +1 -1
- package/lib/components/KDataTable/KDataTable.js +112 -124
- package/lib/components/KDataTable/KDataTable.js.map +1 -1
- package/lib/components/KDataTable/KDataTableHeader.js +10 -13
- package/lib/components/KDataTable/KDataTableHeader.js.map +1 -1
- package/lib/components/KDataTable/KDataTableHeaderDesktop.js +1 -18
- package/lib/components/KDataTable/KDataTableHeaderDesktop.js.map +1 -1
- package/lib/components/KDataTable/KDataTableHeaderMobile.js +0 -8
- package/lib/components/KDataTable/KDataTableHeaderMobile.js.map +1 -1
- package/lib/components/KDataTable/KEditDialog.js +8 -20
- package/lib/components/KDataTable/KEditDialog.js.map +1 -1
- package/lib/components/KDataTable/KSimpleTable.js +3 -7
- package/lib/components/KDataTable/KSimpleTable.js.map +1 -1
- package/lib/components/KDataTable/KVirtualTable.js +7 -30
- package/lib/components/KDataTable/KVirtualTable.js.map +1 -1
- package/lib/components/KDataTable/MobileRow.js +4 -9
- package/lib/components/KDataTable/MobileRow.js.map +1 -1
- package/lib/components/KDataTable/Row.js +6 -13
- package/lib/components/KDataTable/Row.js.map +1 -1
- package/lib/components/KDataTable/RowGroup.js +0 -6
- package/lib/components/KDataTable/RowGroup.js.map +1 -1
- package/lib/components/KDataTable/index.js.map +1 -1
- package/lib/components/KDataTable/mixins/header.js +2 -7
- package/lib/components/KDataTable/mixins/header.js.map +1 -1
- package/lib/components/KDatePicker/KDatePicker.js +12 -72
- package/lib/components/KDatePicker/KDatePicker.js.map +1 -1
- package/lib/components/KDatePicker/KDatePickerDateTable.js +3 -28
- package/lib/components/KDatePicker/KDatePickerDateTable.js.map +1 -1
- package/lib/components/KDatePicker/KDatePickerHeader.js +9 -19
- package/lib/components/KDatePicker/KDatePickerHeader.js.map +1 -1
- package/lib/components/KDatePicker/KDatePickerMonthTable.js +3 -11
- package/lib/components/KDatePicker/KDatePickerMonthTable.js.map +1 -1
- package/lib/components/KDatePicker/KDatePickerTitle.js +7 -16
- package/lib/components/KDatePicker/KDatePickerTitle.js.map +1 -1
- package/lib/components/KDatePicker/KDatePickerYears.js +5 -18
- package/lib/components/KDatePicker/KDatePickerYears.js.map +1 -1
- package/lib/components/KDatePicker/index.js.map +1 -1
- package/lib/components/KDatePicker/mixins/date-picker-table.js +9 -34
- package/lib/components/KDatePicker/mixins/date-picker-table.js.map +1 -1
- package/lib/components/KDatePicker/util/createNativeLocaleFormatter.js +0 -3
- package/lib/components/KDatePicker/util/createNativeLocaleFormatter.js.map +1 -1
- package/lib/components/KDatePicker/util/eventHelpers.js +0 -2
- package/lib/components/KDatePicker/util/eventHelpers.js.map +1 -1
- package/lib/components/KDatePicker/util/index.js.map +1 -1
- package/lib/components/KDatePicker/util/isDateAllowed.js.map +1 -1
- package/lib/components/KDatePicker/util/monthChange.js +2 -4
- package/lib/components/KDatePicker/util/monthChange.js.map +1 -1
- package/lib/components/KDatePicker/util/pad.js +1 -6
- package/lib/components/KDatePicker/util/pad.js.map +1 -1
- package/lib/components/KDatePicker/util/sanitizeDateString.js +2 -2
- package/lib/components/KDatePicker/util/sanitizeDateString.js.map +1 -1
- package/lib/components/KDialog/KDialog.js +45 -80
- package/lib/components/KDialog/KDialog.js.map +1 -1
- package/lib/components/KDialog/index.js.map +1 -1
- package/lib/components/KDivider/KDivider.js +2 -6
- package/lib/components/KDivider/KDivider.js.map +1 -1
- package/lib/components/KDivider/index.js.map +1 -1
- package/lib/components/KExpansionPanel/KExpansionPanel.js +3 -17
- package/lib/components/KExpansionPanel/KExpansionPanel.js.map +1 -1
- package/lib/components/KExpansionPanel/KExpansionPanelContent.js +7 -13
- package/lib/components/KExpansionPanel/KExpansionPanelContent.js.map +1 -1
- package/lib/components/KExpansionPanel/KExpansionPanelHeader.js +11 -19
- package/lib/components/KExpansionPanel/KExpansionPanelHeader.js.map +1 -1
- package/lib/components/KExpansionPanel/KExpansionPanels.js +6 -14
- package/lib/components/KExpansionPanel/KExpansionPanels.js.map +1 -1
- package/lib/components/KExpansionPanel/index.js.map +1 -1
- package/lib/components/KFileInput/KFileInput.js +22 -46
- package/lib/components/KFileInput/KFileInput.js.map +1 -1
- package/lib/components/KFileInput/index.js.map +1 -1
- package/lib/components/KFooter/KFooter.js +12 -21
- package/lib/components/KFooter/KFooter.js.map +1 -1
- package/lib/components/KFooter/index.js.map +1 -1
- package/lib/components/KForm/KForm.js +5 -23
- package/lib/components/KForm/KForm.js.map +1 -1
- package/lib/components/KForm/index.js.map +1 -1
- package/lib/components/KGrid/KCol.js +8 -26
- package/lib/components/KGrid/KCol.js.map +1 -1
- package/lib/components/KGrid/KContainer.js +2 -9
- package/lib/components/KGrid/KContainer.js.map +1 -1
- package/lib/components/KGrid/KFlex.js.map +1 -1
- package/lib/components/KGrid/KLayout.js.map +1 -1
- package/lib/components/KGrid/KRow.js +6 -26
- package/lib/components/KGrid/KRow.js.map +1 -1
- package/lib/components/KGrid/KSpacer.js.map +1 -1
- package/lib/components/KGrid/grid.js +2 -8
- package/lib/components/KGrid/grid.js.map +1 -1
- package/lib/components/KGrid/index.js.map +1 -1
- package/lib/components/KHover/KHover.js +3 -15
- package/lib/components/KHover/KHover.js.map +1 -1
- package/lib/components/KHover/index.js.map +1 -1
- package/lib/components/KIcon/KIcon.js +17 -44
- package/lib/components/KIcon/KIcon.js.map +1 -1
- package/lib/components/KIcon/index.js.map +1 -1
- package/lib/components/KImg/KImg.js +12 -40
- package/lib/components/KImg/KImg.js.map +1 -1
- package/lib/components/KImg/index.js.map +1 -1
- package/lib/components/KInput/KInput.js +22 -48
- package/lib/components/KInput/KInput.js.map +1 -1
- package/lib/components/KInput/index.js.map +1 -1
- package/lib/components/KItemGroup/KItem.js +16 -15
- package/lib/components/KItemGroup/KItem.js.map +1 -1
- package/lib/components/KItemGroup/KItemGroup.js +36 -61
- package/lib/components/KItemGroup/KItemGroup.js.map +1 -1
- package/lib/components/KItemGroup/index.js.map +1 -1
- package/lib/components/KLabel/KLabel.js +10 -11
- package/lib/components/KLabel/KLabel.js.map +1 -1
- package/lib/components/KLabel/index.js.map +1 -1
- package/lib/components/KLazy/KLazy.js +6 -10
- package/lib/components/KLazy/KLazy.js.map +1 -1
- package/lib/components/KLazy/index.js.map +1 -1
- package/lib/components/KList/KList.js +8 -15
- package/lib/components/KList/KList.js.map +1 -1
- package/lib/components/KList/KListGroup.js +19 -35
- package/lib/components/KList/KListGroup.js.map +1 -1
- package/lib/components/KList/KListItem.js +24 -35
- package/lib/components/KList/KListItem.js.map +1 -1
- package/lib/components/KList/KListItemAction.js +0 -3
- package/lib/components/KList/KListItemAction.js.map +1 -1
- package/lib/components/KList/KListItemAvatar.js +0 -4
- package/lib/components/KList/KListItemAvatar.js.map +1 -1
- package/lib/components/KList/KListItemGroup.js +10 -12
- package/lib/components/KList/KListItemGroup.js.map +1 -1
- package/lib/components/KList/KListItemIcon.js +0 -3
- package/lib/components/KList/KListItemIcon.js.map +1 -1
- package/lib/components/KList/index.js.map +1 -1
- package/lib/components/KMain/KMain.js +4 -7
- package/lib/components/KMain/KMain.js.map +1 -1
- package/lib/components/KMain/index.js.map +1 -1
- package/lib/components/KMenu/KMenu.js +35 -93
- package/lib/components/KMenu/KMenu.js.map +1 -1
- package/lib/components/KMenu/index.js.map +1 -1
- package/lib/components/KMessages/KMessages.js +4 -9
- package/lib/components/KMessages/KMessages.js.map +1 -1
- package/lib/components/KMessages/index.js.map +1 -1
- package/lib/components/KNavigationDrawer/KNavigationDrawer.js +15 -76
- package/lib/components/KNavigationDrawer/KNavigationDrawer.js.map +1 -1
- package/lib/components/KNavigationDrawer/index.js.map +1 -1
- package/lib/components/KOtpInput/KOtpInput.js +38 -112
- package/lib/components/KOtpInput/KOtpInput.js.map +1 -1
- package/lib/components/KOtpInput/index.js.map +1 -1
- package/lib/components/KOverflowBtn/KOverflowBtn.js +13 -23
- package/lib/components/KOverflowBtn/KOverflowBtn.js.map +1 -1
- package/lib/components/KOverflowBtn/index.js.map +1 -1
- package/lib/components/KOverlay/KOverlay.js +6 -13
- package/lib/components/KOverlay/KOverlay.js.map +1 -1
- package/lib/components/KOverlay/index.js.map +1 -1
- package/lib/components/KPagination/KPagination.js +19 -38
- package/lib/components/KPagination/KPagination.js.map +1 -1
- package/lib/components/KPagination/index.js.map +1 -1
- package/lib/components/KParallax/KParallax.js +4 -13
- package/lib/components/KParallax/KParallax.js.map +1 -1
- package/lib/components/KParallax/index.js.map +1 -1
- package/lib/components/KPicker/KPicker.js +8 -16
- package/lib/components/KPicker/KPicker.js.map +1 -1
- package/lib/components/KPicker/index.js.map +1 -1
- package/lib/components/KProgressCircular/KProgressCircular.js +8 -27
- package/lib/components/KProgressCircular/KProgressCircular.js.map +1 -1
- package/lib/components/KProgressCircular/index.js.map +1 -1
- package/lib/components/KProgressLinear/KProgressLinear.js +8 -39
- package/lib/components/KProgressLinear/KProgressLinear.js.map +1 -1
- package/lib/components/KProgressLinear/index.js.map +1 -1
- package/lib/components/KRadioGroup/KRadio.js +18 -30
- package/lib/components/KRadioGroup/KRadio.js.map +1 -1
- package/lib/components/KRadioGroup/KRadioGroup.js +9 -21
- package/lib/components/KRadioGroup/KRadioGroup.js.map +1 -1
- package/lib/components/KRadioGroup/index.js.map +1 -1
- package/lib/components/KRangeSlider/KRangeSlider.js +11 -41
- package/lib/components/KRangeSlider/KRangeSlider.js.map +1 -1
- package/lib/components/KRangeSlider/index.js.map +1 -1
- package/lib/components/KRating/KRating.js +6 -36
- package/lib/components/KRating/KRating.js.map +1 -1
- package/lib/components/KRating/index.js.map +1 -1
- package/lib/components/KResponsive/KResponsive.js +6 -12
- package/lib/components/KResponsive/KResponsive.js.map +1 -1
- package/lib/components/KResponsive/index.js.map +1 -1
- package/lib/components/KSelect/KSelect.js +98 -173
- package/lib/components/KSelect/KSelect.js.map +1 -1
- package/lib/components/KSelect/KSelectList.js +22 -44
- package/lib/components/KSelect/KSelectList.js.map +1 -1
- package/lib/components/KSelect/index.js.map +1 -1
- package/lib/components/KSheet/KSheet.js +4 -9
- package/lib/components/KSheet/KSheet.js.map +1 -1
- package/lib/components/KSheet/index.js.map +1 -1
- package/lib/components/KSkeletonLoader/KSkeletonLoader.js +29 -40
- package/lib/components/KSkeletonLoader/KSkeletonLoader.js.map +1 -1
- package/lib/components/KSkeletonLoader/index.js.map +1 -1
- package/lib/components/KSlideGroup/KSlideGroup.js +59 -98
- package/lib/components/KSlideGroup/KSlideGroup.js.map +1 -1
- package/lib/components/KSlideGroup/KSlideItem.js +3 -4
- package/lib/components/KSlideGroup/KSlideItem.js.map +1 -1
- package/lib/components/KSlideGroup/index.js.map +1 -1
- package/lib/components/KSlider/KSlider.js +23 -82
- package/lib/components/KSlider/KSlider.js.map +1 -1
- package/lib/components/KSlider/index.js.map +1 -1
- package/lib/components/KSnackbar/KSnackbar.js +9 -27
- package/lib/components/KSnackbar/KSnackbar.js.map +1 -1
- package/lib/components/KSnackbar/index.js.map +1 -1
- package/lib/components/KSparkline/KSparkline.js +7 -39
- package/lib/components/KSparkline/KSparkline.js.map +1 -1
- package/lib/components/KSparkline/helpers/core.js.map +1 -1
- package/lib/components/KSparkline/helpers/math.js +0 -2
- package/lib/components/KSparkline/helpers/math.js.map +1 -1
- package/lib/components/KSparkline/helpers/path.js +0 -3
- package/lib/components/KSparkline/helpers/path.js.map +1 -1
- package/lib/components/KSparkline/index.js.map +1 -1
- package/lib/components/KSpeedDial/KSpeedDial.js +9 -16
- package/lib/components/KSpeedDial/KSpeedDial.js.map +1 -1
- package/lib/components/KSpeedDial/index.js.map +1 -1
- package/lib/components/KStepper/KStepper.js +10 -26
- package/lib/components/KStepper/KStepper.js.map +1 -1
- package/lib/components/KStepper/KStepperContent.js +11 -29
- package/lib/components/KStepper/KStepperContent.js.map +1 -1
- package/lib/components/KStepper/KStepperStep.js +18 -27
- package/lib/components/KStepper/KStepperStep.js.map +1 -1
- package/lib/components/KStepper/index.js.map +1 -1
- package/lib/components/KSubheader/KSubheader.js +5 -7
- package/lib/components/KSubheader/KSubheader.js.map +1 -1
- package/lib/components/KSubheader/index.js.map +1 -1
- package/lib/components/KSwitch/KSwitch.js +14 -23
- package/lib/components/KSwitch/KSwitch.js.map +1 -1
- package/lib/components/KSwitch/index.js.map +1 -1
- package/lib/components/KSystemBar/KSystemBar.js +5 -13
- package/lib/components/KSystemBar/KSystemBar.js.map +1 -1
- package/lib/components/KSystemBar/index.js.map +1 -1
- package/lib/components/KTabs/KTab.js +23 -22
- package/lib/components/KTabs/KTab.js.map +1 -1
- package/lib/components/KTabs/KTabItem.js +0 -2
- package/lib/components/KTabs/KTabItem.js.map +1 -1
- package/lib/components/KTabs/KTabs.js +21 -40
- package/lib/components/KTabs/KTabs.js.map +1 -1
- package/lib/components/KTabs/KTabsBar.js +9 -19
- package/lib/components/KTabs/KTabsBar.js.map +1 -1
- package/lib/components/KTabs/KTabsItems.js +4 -7
- package/lib/components/KTabs/KTabsItems.js.map +1 -1
- package/lib/components/KTabs/KTabsSlider.js +2 -5
- package/lib/components/KTabs/KTabsSlider.js.map +1 -1
- package/lib/components/KTabs/index.js.map +1 -1
- package/lib/components/KTextField/KTextField.js +27 -102
- package/lib/components/KTextField/KTextField.js.map +1 -1
- package/lib/components/KTextField/index.js.map +1 -1
- package/lib/components/KTextarea/KTextarea.js +8 -22
- package/lib/components/KTextarea/KTextarea.js.map +1 -1
- package/lib/components/KTextarea/index.js.map +1 -1
- package/lib/components/KThemeProvider/KThemeProvider.js +0 -4
- package/lib/components/KThemeProvider/KThemeProvider.js.map +1 -1
- package/lib/components/KThemeProvider/index.js.map +1 -1
- package/lib/components/KTimePicker/KTimePicker.js +22 -54
- package/lib/components/KTimePicker/KTimePicker.js.map +1 -1
- package/lib/components/KTimePicker/KTimePickerClock.js +7 -44
- package/lib/components/KTimePicker/KTimePickerClock.js.map +1 -1
- package/lib/components/KTimePicker/KTimePickerTitle.js +5 -14
- package/lib/components/KTimePicker/KTimePickerTitle.js.map +1 -1
- package/lib/components/KTimePicker/SelectingTimes.js +0 -2
- package/lib/components/KTimePicker/SelectingTimes.js.map +1 -1
- package/lib/components/KTimePicker/index.js.map +1 -1
- package/lib/components/KTimeline/KTimeline.js +5 -10
- package/lib/components/KTimeline/KTimeline.js.map +1 -1
- package/lib/components/KTimeline/KTimelineItem.js +7 -20
- package/lib/components/KTimeline/KTimelineItem.js.map +1 -1
- package/lib/components/KTimeline/index.js.map +1 -1
- package/lib/components/KToolbar/KToolbar.js +10 -23
- package/lib/components/KToolbar/KToolbar.js.map +1 -1
- package/lib/components/KToolbar/index.js +2 -2
- package/lib/components/KToolbar/index.js.map +1 -1
- package/lib/components/KTooltip/KTooltip.js +20 -42
- package/lib/components/KTooltip/KTooltip.js.map +1 -1
- package/lib/components/KTooltip/index.js.map +1 -1
- package/lib/components/KTreeview/KTreeview.js +22 -81
- package/lib/components/KTreeview/KTreeview.js.map +1 -1
- package/lib/components/KTreeview/KTreeviewNode.js +5 -33
- package/lib/components/KTreeview/KTreeviewNode.js.map +1 -1
- package/lib/components/KTreeview/index.js.map +1 -1
- package/lib/components/KTreeview/util/filterTreeItems.js +0 -5
- package/lib/components/KTreeview/util/filterTreeItems.js.map +1 -1
- package/lib/components/KVirtualScroll/KVirtualScroll.js +6 -19
- package/lib/components/KVirtualScroll/KVirtualScroll.js.map +1 -1
- package/lib/components/KVirtualScroll/index.js.map +1 -1
- package/lib/components/KWindow/KWindow.js +11 -46
- package/lib/components/KWindow/KWindow.js.map +1 -1
- package/lib/components/KWindow/KWindowItem.js +17 -35
- package/lib/components/KWindow/KWindowItem.js.map +1 -1
- package/lib/components/KWindow/index.js.map +1 -1
- package/lib/components/index.js.map +1 -1
- package/lib/components/transitions/createTransition.js +0 -10
- package/lib/components/transitions/createTransition.js.map +1 -1
- package/lib/components/transitions/expand-transition.js +2 -13
- package/lib/components/transitions/expand-transition.js.map +1 -1
- package/lib/components/transitions/index.js +6 -6
- package/lib/components/transitions/index.js.map +1 -1
- package/lib/directives/click-outside/index.js +12 -27
- package/lib/directives/click-outside/index.js.map +1 -1
- package/lib/directives/color/index.js +0 -10
- package/lib/directives/color/index.js.map +1 -1
- package/lib/directives/index.js.map +1 -1
- package/lib/directives/intersect/index.js +6 -13
- package/lib/directives/intersect/index.js.map +1 -1
- package/lib/directives/mutate/index.js +10 -14
- package/lib/directives/mutate/index.js.map +1 -1
- package/lib/directives/resize/index.js +2 -6
- package/lib/directives/resize/index.js.map +1 -1
- package/lib/directives/ripple/index.js +12 -70
- package/lib/directives/ripple/index.js.map +1 -1
- package/lib/directives/scroll/index.js +2 -5
- package/lib/directives/scroll/index.js.map +1 -1
- package/lib/directives/touch/index.js +2 -12
- package/lib/directives/touch/index.js.map +1 -1
- package/lib/framework.js +11 -14
- package/lib/framework.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/install.js +7 -19
- package/lib/install.js.map +1 -1
- package/lib/locale/af.js +7 -1
- package/lib/locale/af.js.map +1 -1
- package/lib/locale/ar.js +27 -21
- package/lib/locale/ar.js.map +1 -1
- package/lib/locale/az.js +7 -1
- package/lib/locale/az.js.map +1 -1
- package/lib/locale/bg.js +7 -1
- package/lib/locale/bg.js.map +1 -1
- package/lib/locale/ca.js +14 -8
- package/lib/locale/ca.js.map +1 -1
- package/lib/locale/ckb.js +7 -1
- package/lib/locale/ckb.js.map +1 -1
- package/lib/locale/cs.js +7 -1
- package/lib/locale/cs.js.map +1 -1
- package/lib/locale/da.js +7 -1
- package/lib/locale/da.js.map +1 -1
- package/lib/locale/de.js +7 -1
- package/lib/locale/de.js.map +1 -1
- package/lib/locale/el.js +7 -1
- package/lib/locale/el.js.map +1 -1
- package/lib/locale/en.js +7 -1
- package/lib/locale/en.js.map +1 -1
- package/lib/locale/es.js +10 -4
- package/lib/locale/es.js.map +1 -1
- package/lib/locale/et.js +7 -1
- package/lib/locale/et.js.map +1 -1
- package/lib/locale/fa.js +7 -1
- package/lib/locale/fa.js.map +1 -1
- package/lib/locale/fi.js +12 -6
- package/lib/locale/fi.js.map +1 -1
- package/lib/locale/fr.js +8 -2
- package/lib/locale/fr.js.map +1 -1
- package/lib/locale/he.js +7 -1
- package/lib/locale/he.js.map +1 -1
- package/lib/locale/hr.js +7 -1
- package/lib/locale/hr.js.map +1 -1
- package/lib/locale/hu.js +7 -1
- package/lib/locale/hu.js.map +1 -1
- package/lib/locale/id.js +7 -1
- package/lib/locale/id.js.map +1 -1
- package/lib/locale/index.js.map +1 -1
- package/lib/locale/it.js +13 -7
- package/lib/locale/it.js.map +1 -1
- package/lib/locale/ja.js +7 -1
- package/lib/locale/ja.js.map +1 -1
- package/lib/locale/ko.js +7 -1
- package/lib/locale/ko.js.map +1 -1
- package/lib/locale/lt.js +7 -1
- package/lib/locale/lt.js.map +1 -1
- package/lib/locale/lv.js +7 -1
- package/lib/locale/lv.js.map +1 -1
- package/lib/locale/nl.js +7 -1
- package/lib/locale/nl.js.map +1 -1
- package/lib/locale/no.js +7 -1
- package/lib/locale/no.js.map +1 -1
- package/lib/locale/pl.js +7 -1
- package/lib/locale/pl.js.map +1 -1
- package/lib/locale/pt.js +7 -1
- package/lib/locale/pt.js.map +1 -1
- package/lib/locale/ro.js +7 -1
- package/lib/locale/ro.js.map +1 -1
- package/lib/locale/ru.js +7 -1
- package/lib/locale/ru.js.map +1 -1
- package/lib/locale/sk.js +7 -1
- package/lib/locale/sk.js.map +1 -1
- package/lib/locale/sl.js +7 -1
- package/lib/locale/sl.js.map +1 -1
- package/lib/locale/sr-Cyrl.js +7 -1
- package/lib/locale/sr-Cyrl.js.map +1 -1
- package/lib/locale/sr-Latn.js +7 -1
- package/lib/locale/sr-Latn.js.map +1 -1
- package/lib/locale/sv.js +7 -1
- package/lib/locale/sv.js.map +1 -1
- package/lib/locale/th.js +7 -1
- package/lib/locale/th.js.map +1 -1
- package/lib/locale/tr.js +7 -1
- package/lib/locale/tr.js.map +1 -1
- package/lib/locale/uk.js +7 -1
- package/lib/locale/uk.js.map +1 -1
- package/lib/locale/vi.js +7 -1
- package/lib/locale/vi.js.map +1 -1
- package/lib/locale/zh-Hans.js +7 -1
- package/lib/locale/zh-Hans.js.map +1 -1
- package/lib/locale/zh-Hant.js +7 -1
- package/lib/locale/zh-Hant.js.map +1 -1
- package/lib/mixins/activatable/index.js +13 -38
- package/lib/mixins/activatable/index.js.map +1 -1
- package/lib/mixins/applicationable/index.js +2 -14
- package/lib/mixins/applicationable/index.js.map +1 -1
- package/lib/mixins/binds-attrs/index.js +0 -5
- package/lib/mixins/binds-attrs/index.js.map +1 -1
- package/lib/mixins/bootable/index.js +2 -9
- package/lib/mixins/bootable/index.js.map +1 -1
- package/lib/mixins/button-group/index.js +0 -4
- package/lib/mixins/button-group/index.js.map +1 -1
- package/lib/mixins/colorable/index.js +16 -21
- package/lib/mixins/colorable/index.js.map +1 -1
- package/lib/mixins/comparable/index.js.map +1 -1
- package/lib/mixins/delayable/index.js +0 -3
- package/lib/mixins/delayable/index.js.map +1 -1
- package/lib/mixins/dependent/index.js +0 -15
- package/lib/mixins/dependent/index.js.map +1 -1
- package/lib/mixins/detachable/index.js +8 -23
- package/lib/mixins/detachable/index.js.map +1 -1
- package/lib/mixins/elevatable/index.js +0 -2
- package/lib/mixins/elevatable/index.js.map +1 -1
- package/lib/mixins/filterable/index.js +0 -1
- package/lib/mixins/filterable/index.js.map +1 -1
- package/lib/mixins/groupable/index.js +8 -11
- package/lib/mixins/groupable/index.js.map +1 -1
- package/lib/mixins/intersectable/index.js +4 -11
- package/lib/mixins/intersectable/index.js.map +1 -1
- package/lib/mixins/loadable/index.js +2 -4
- package/lib/mixins/loadable/index.js.map +1 -1
- package/lib/mixins/localable/index.js +0 -1
- package/lib/mixins/localable/index.js.map +1 -1
- package/lib/mixins/measurable/index.js +2 -3
- package/lib/mixins/measurable/index.js.map +1 -1
- package/lib/mixins/menuable/index.js +35 -74
- package/lib/mixins/menuable/index.js.map +1 -1
- package/lib/mixins/mobile/index.js +2 -8
- package/lib/mixins/mobile/index.js.map +1 -1
- package/lib/{components/KCalendar/mixins/mouse.js → mixins/mouse/index.js} +30 -52
- package/lib/mixins/mouse/index.js.map +1 -0
- package/lib/mixins/overlayable/index.js +10 -40
- package/lib/mixins/overlayable/index.js.map +1 -1
- package/lib/mixins/picker/index.js +7 -13
- package/lib/mixins/picker/index.js.map +1 -1
- package/lib/mixins/picker-button/index.js +2 -6
- package/lib/mixins/picker-button/index.js.map +1 -1
- package/lib/mixins/positionable/index.js +2 -2
- package/lib/mixins/positionable/index.js.map +1 -1
- package/lib/mixins/proxyable/index.js +0 -6
- package/lib/mixins/proxyable/index.js.map +1 -1
- package/lib/mixins/registrable/index.js +0 -4
- package/lib/mixins/registrable/index.js.map +1 -1
- package/lib/mixins/returnable/index.js +0 -3
- package/lib/mixins/returnable/index.js.map +1 -1
- package/lib/mixins/rippleable/index.js +2 -3
- package/lib/mixins/rippleable/index.js.map +1 -1
- package/lib/mixins/roundable/index.js +0 -5
- package/lib/mixins/roundable/index.js.map +1 -1
- package/lib/mixins/routable/index.js +15 -31
- package/lib/mixins/routable/index.js.map +1 -1
- package/lib/mixins/scrollable/index.js +4 -15
- package/lib/mixins/scrollable/index.js.map +1 -1
- package/lib/mixins/selectable/index.js +10 -31
- package/lib/mixins/selectable/index.js.map +1 -1
- package/lib/mixins/sizeable/index.js +0 -2
- package/lib/mixins/sizeable/index.js.map +1 -1
- package/lib/mixins/ssr-bootable/index.js +0 -3
- package/lib/mixins/ssr-bootable/index.js.map +1 -1
- package/lib/mixins/stackable/index.js +10 -16
- package/lib/mixins/stackable/index.js.map +1 -1
- package/lib/mixins/themeable/index.js +2 -12
- package/lib/mixins/themeable/index.js.map +1 -1
- package/lib/mixins/toggleable/index.js +0 -5
- package/lib/mixins/toggleable/index.js.map +1 -1
- package/lib/mixins/transitionable/index.js.map +1 -1
- package/lib/mixins/translatable/index.js +0 -7
- package/lib/mixins/translatable/index.js.map +1 -1
- package/lib/mixins/validatable/index.js +16 -48
- package/lib/mixins/validatable/index.js.map +1 -1
- package/lib/presets/default/index.js +2 -2
- package/lib/presets/default/index.js.map +1 -1
- package/lib/services/application/index.js +1 -7
- package/lib/services/application/index.js.map +1 -1
- package/lib/services/breakpoint/index.js +10 -27
- package/lib/services/breakpoint/index.js.map +1 -1
- package/lib/services/goto/easing-patterns.js +24 -24
- package/lib/services/goto/easing-patterns.js.map +1 -1
- package/lib/services/goto/index.js +6 -17
- package/lib/services/goto/index.js.map +1 -1
- package/lib/services/goto/util.js +0 -7
- package/lib/services/goto/util.js.map +1 -1
- package/lib/services/icons/index.js +4 -5
- package/lib/services/icons/index.js.map +1 -1
- package/lib/services/icons/presets/fa-svg.js +0 -2
- package/lib/services/icons/presets/fa-svg.js.map +1 -1
- package/lib/services/icons/presets/fa.js +1 -1
- package/lib/services/icons/presets/fa.js.map +1 -1
- package/lib/services/icons/presets/fa4.js.map +1 -1
- package/lib/services/icons/presets/index.js.map +1 -1
- package/lib/services/icons/presets/md.js.map +1 -1
- package/lib/services/icons/presets/mdi-svg.js +5 -5
- package/lib/services/icons/presets/mdi-svg.js.map +1 -1
- package/lib/services/icons/presets/mdi.js.map +1 -1
- package/lib/services/index.js.map +1 -1
- package/lib/services/lang/index.js +2 -11
- package/lib/services/lang/index.js.map +1 -1
- package/lib/services/presets/index.js +8 -11
- package/lib/services/presets/index.js.map +1 -1
- package/lib/services/service/index.js +0 -2
- package/lib/services/service/index.js.map +1 -1
- package/lib/services/theme/index.js +26 -71
- package/lib/services/theme/index.js.map +1 -1
- package/lib/services/theme/utils.js +0 -17
- package/lib/services/theme/utils.js.map +1 -1
- package/lib/util/color/transformCIELAB.js +0 -3
- package/lib/util/color/transformCIELAB.js.map +1 -1
- package/lib/util/color/transformSRGB.js +16 -20
- package/lib/util/color/transformSRGB.js.map +1 -1
- package/lib/util/colorUtils.js +2 -21
- package/lib/util/colorUtils.js.map +1 -1
- package/lib/util/colors.js.map +1 -1
- package/lib/util/console.js +0 -15
- package/lib/util/console.js.map +1 -1
- package/lib/util/dateTimeUtils.js +0 -10
- package/lib/util/dateTimeUtils.js.map +1 -1
- package/lib/util/dedupeModelListeners.js.map +1 -1
- package/lib/util/dom.js +4 -6
- package/lib/util/dom.js.map +1 -1
- package/lib/util/helpers.js +26 -83
- package/lib/util/helpers.js.map +1 -1
- package/lib/util/mergeData.js +6 -31
- package/lib/util/mergeData.js.map +1 -1
- package/lib/util/mixins.js.map +1 -1
- package/lib/util/rebuildFunctionalSlots.js +0 -2
- package/lib/util/rebuildFunctionalSlots.js.map +1 -1
- package/package.json +36 -35
- package/src/components/KAlert/KAlert.ts +4 -3
- package/src/components/KApp/KApp.ts +3 -2
- package/src/components/KAppBar/KAppBarTitle.ts +3 -3
- package/src/components/KAutocomplete/KAutocomplete.sass +0 -4
- package/src/components/KAutocomplete/KAutocomplete.ts +0 -4
- package/src/components/KAvatar/KAvatar.ts +2 -2
- package/src/components/KBanner/KBanner.ts +20 -17
- package/src/components/KBottomNavigation/KBottomNavigation.ts +16 -3
- package/src/components/KBottomSheet/KBottomSheet.ts +1 -4
- package/src/components/KBreadcrumbs/KBreadcrumbs.ts +2 -1
- package/src/components/KBreadcrumbs/KBreadcrumbsItem.ts +2 -1
- package/src/components/KBtn/KBtn.sass +1 -1
- package/src/components/KBtn/KBtn.ts +3 -2
- package/src/components/KCalendar/KCalendar.ts +4 -0
- package/src/components/KCalendar/KCalendarCategory.sass +9 -3
- package/src/components/KCalendar/KCalendarDaily.ts +9 -8
- package/src/components/KCalendar/KCalendarWeekly.ts +16 -2
- package/src/components/KCalendar/mixins/calendar-base.ts +1 -1
- package/src/components/KCalendar/mixins/calendar-with-events.ts +19 -17
- package/src/components/KCard/KCard.ts +2 -1
- package/src/components/KCarousel/KCarousel.ts +1 -0
- package/src/components/KCheckbox/KSimpleCheckbox.ts +3 -2
- package/src/components/KChip/KChip.sass +1 -1
- package/src/components/KChip/KChip.ts +2 -1
- package/src/components/KColorPicker/KColorPickerSwatches.sass +1 -1
- package/src/components/KColorPicker/_variables.scss +2 -1
- package/src/components/KCombobox/KCombobox.ts +2 -1
- package/src/components/KData/KData.ts +2 -4
- package/src/components/KDataIterator/KDataIterator.ts +7 -7
- package/src/components/KDataTable/KDataTable.ts +74 -22
- package/src/components/KDataTable/KDataTableHeaderDesktop.ts +1 -1
- package/src/components/KDataTable/KEditDialog.ts +3 -3
- package/src/components/KDataTable/KSimpleTable.ts +4 -4
- package/src/components/KDataTable/KVirtualTable.ts +3 -3
- package/src/components/KDataTable/MobileRow.ts +2 -2
- package/src/components/KDataTable/Row.ts +2 -2
- package/src/components/KDatePicker/KDatePicker.ts +12 -6
- package/src/components/KDatePicker/KDatePickerHeader.ts +2 -1
- package/src/components/KDialog/KDialog.sass +2 -2
- package/src/components/KDialog/KDialog.ts +17 -23
- package/src/components/KExpansionPanel/KExpansionPanel.sass +2 -2
- package/src/components/KExpansionPanel/KExpansionPanelContent.ts +1 -1
- package/src/components/KExpansionPanel/KExpansionPanelHeader.ts +1 -1
- package/src/components/KFileInput/KFileInput.ts +7 -2
- package/src/components/KFooter/KFooter.ts +2 -2
- package/src/components/KForm/KForm.ts +2 -1
- package/src/components/KImg/KImg.ts +4 -2
- package/src/components/KInput/KInput.sass +1 -4
- package/src/components/KInput/KInput.ts +15 -3
- package/src/components/KItemGroup/KItem.sass +4 -0
- package/src/components/KItemGroup/KItem.ts +12 -1
- package/src/components/KItemGroup/KItemGroup.ts +9 -6
- package/src/components/KLabel/KLabel.ts +5 -4
- package/src/components/KList/KList.ts +3 -1
- package/src/components/KList/KListGroup.ts +7 -5
- package/src/components/KList/KListItem.ts +10 -10
- package/src/components/KMain/KMain.ts +2 -1
- package/src/components/KMenu/KMenu.ts +11 -10
- package/src/components/KNavigationDrawer/KNavigationDrawer.ts +5 -8
- package/src/components/KOtpInput/KOtpInput.ts +24 -42
- package/src/components/KOverflowBtn/KOverflowBtn.ts +3 -0
- package/src/components/KOverlay/KOverlay.ts +2 -1
- package/src/components/KPagination/KPagination.ts +20 -14
- package/src/components/KParallax/KParallax.ts +3 -2
- package/src/components/KPicker/KPicker.ts +4 -4
- package/src/components/KProgressCircular/KProgressCircular.ts +2 -2
- package/src/components/KRadioGroup/KRadio.sass +0 -4
- package/src/components/KRadioGroup/KRadio.ts +11 -4
- package/src/components/KRadioGroup/KRadioGroup.ts +0 -4
- package/src/components/KResponsive/KResponsive.ts +2 -1
- package/src/components/KSelect/KSelect.sass +4 -2
- package/src/components/KSelect/KSelect.ts +29 -16
- package/src/components/KSelect/KSelectList.ts +15 -15
- package/src/components/KSkeletonLoader/KSkeletonLoader.sass +1 -1
- package/src/components/KSkeletonLoader/KSkeletonLoader.ts +10 -5
- package/src/components/KSlideGroup/KSlideGroup.ts +37 -15
- package/src/components/KSlider/KSlider.ts +1 -7
- package/src/components/KSpeedDial/KSpeedDial.ts +3 -2
- package/src/components/KStepper/KStepper.sass +6 -6
- package/src/components/KStepper/KStepper.ts +2 -1
- package/src/components/KStepper/KStepperContent.ts +2 -2
- package/src/components/KStepper/KStepperStep.ts +15 -3
- package/src/components/KSubheader/KSubheader.ts +2 -1
- package/src/components/KSwitch/KSwitch.sass +3 -2
- package/src/components/KSwitch/KSwitch.ts +2 -2
- package/src/components/KSystemBar/KSystemBar.sass +4 -0
- package/src/components/KTabs/KTab.ts +18 -5
- package/src/components/KTabs/KTabs.sass +1 -1
- package/src/components/KTabs/KTabs.ts +12 -2
- package/src/components/KTabs/_variables.scss +1 -0
- package/src/components/KTextField/KTextField.sass +10 -1
- package/src/components/KTextField/KTextField.ts +2 -2
- package/src/components/KTextField/_mixins.sass +7 -7
- package/src/components/KTextarea/KTextarea.sass +22 -0
- package/src/components/KTimePicker/KTimePicker.ts +19 -1
- package/src/components/KTimeline/KTimeline.sass +16 -9
- package/src/components/KTimeline/KTimeline.ts +2 -1
- package/src/components/KTimeline/KTimelineItem.ts +4 -7
- package/src/components/KTimeline/_mixins.sass +4 -3
- package/src/components/KTooltip/KTooltip.ts +15 -9
- package/src/components/KTreeview/KTreeview.ts +6 -1
- package/src/components/KWindow/KWindow.ts +2 -1
- package/src/components/KWindow/KWindowItem.ts +2 -2
- package/src/directives/click-outside/index.ts +2 -2
- package/src/directives/ripple/KRipple.sass +4 -1
- package/src/directives/ripple/index.ts +1 -8
- package/src/globals.d.ts +6 -6
- package/src/install.ts +1 -1
- package/src/locale/af.ts +6 -0
- package/src/locale/ar.ts +26 -20
- package/src/locale/az.ts +6 -0
- package/src/locale/bg.ts +6 -0
- package/src/locale/ca.ts +13 -7
- package/src/locale/ckb.ts +6 -0
- package/src/locale/cs.ts +6 -0
- package/src/locale/da.ts +6 -0
- package/src/locale/de.ts +6 -0
- package/src/locale/el.ts +6 -0
- package/src/locale/en.ts +6 -0
- package/src/locale/es.ts +9 -3
- package/src/locale/et.ts +6 -0
- package/src/locale/fa.ts +6 -0
- package/src/locale/fi.ts +11 -5
- package/src/locale/fr.ts +7 -1
- package/src/locale/he.ts +6 -0
- package/src/locale/hr.ts +6 -0
- package/src/locale/hu.ts +6 -0
- package/src/locale/id.ts +6 -0
- package/src/locale/it.ts +12 -6
- package/src/locale/ja.ts +6 -0
- package/src/locale/ko.ts +6 -0
- package/src/locale/lt.ts +6 -0
- package/src/locale/lv.ts +6 -0
- package/src/locale/nl.ts +6 -0
- package/src/locale/no.ts +6 -0
- package/src/locale/pl.ts +6 -0
- package/src/locale/pt.ts +6 -0
- package/src/locale/ro.ts +6 -0
- package/src/locale/ru.ts +6 -0
- package/src/locale/sk.ts +6 -0
- package/src/locale/sl.ts +6 -0
- package/src/locale/sr-Cyrl.ts +6 -0
- package/src/locale/sr-Latn.ts +6 -0
- package/src/locale/sv.ts +6 -0
- package/src/locale/th.ts +6 -0
- package/src/locale/tr.ts +6 -0
- package/src/locale/uk.ts +6 -0
- package/src/locale/vi.ts +6 -0
- package/src/locale/zh-Hans.ts +6 -0
- package/src/locale/zh-Hant.ts +6 -0
- package/src/mixins/activatable/index.ts +6 -2
- package/src/mixins/binds-attrs/index.ts +2 -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
|
@@ -4,42 +4,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
require("..\\..\\..\\src\\components\\KFileInput\\KFileInput.sass");
|
|
9
|
-
|
|
10
8
|
var _KTextField = _interopRequireDefault(require("../KTextField"));
|
|
11
|
-
|
|
12
9
|
var _KChip = require("../KChip");
|
|
13
|
-
|
|
14
10
|
var _helpers = require("../../util/helpers");
|
|
15
|
-
|
|
16
11
|
var _console = require("../../util/console");
|
|
17
|
-
|
|
18
12
|
var _mergeData = require("../../util/mergeData");
|
|
19
|
-
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
23
|
-
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
24
15
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
25
|
-
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
function
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
41
|
-
|
|
42
|
-
var _default = _KTextField.default.extend({
|
|
16
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
17
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
18
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
19
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
20
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
23
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
24
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
25
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } // Styles
|
|
26
|
+
// Extensions
|
|
27
|
+
// Components
|
|
28
|
+
// Utilities
|
|
29
|
+
var _default = exports.default = _KTextField.default.extend({
|
|
43
30
|
name: 'k-file-input',
|
|
44
31
|
model: {
|
|
45
32
|
prop: 'value',
|
|
@@ -97,7 +84,7 @@ var _default = _KTextField.default.extend({
|
|
|
97
84
|
},
|
|
98
85
|
computed: {
|
|
99
86
|
classes: function classes() {
|
|
100
|
-
return _objectSpread(
|
|
87
|
+
return _objectSpread({}, _KTextField.default.options.computed.classes.call(this), {
|
|
101
88
|
'k-file-input': true
|
|
102
89
|
});
|
|
103
90
|
},
|
|
@@ -106,7 +93,7 @@ var _default = _KTextField.default.extend({
|
|
|
106
93
|
if (!this.showSize) return this.$kdutify.lang.t(this.counterString, fileCount);
|
|
107
94
|
var bytes = this.internalArrayValue.reduce(function (bytes, _ref) {
|
|
108
95
|
var _ref$size = _ref.size,
|
|
109
|
-
|
|
96
|
+
size = _ref$size === void 0 ? 0 : _ref$size;
|
|
110
97
|
return bytes + size;
|
|
111
98
|
}, 0);
|
|
112
99
|
return this.$kdutify.lang.t(this.counterSizeString, fileCount, (0, _helpers.humanReadableFileSize)(bytes, this.base === 1024));
|
|
@@ -131,16 +118,13 @@ var _default = _KTextField.default.extend({
|
|
|
131
118
|
},
|
|
132
119
|
text: function text() {
|
|
133
120
|
var _this = this;
|
|
134
|
-
|
|
135
121
|
if (!this.isDirty && (this.persistentPlaceholder || this.isFocused || !this.hasLabel)) return [this.placeholder];
|
|
136
122
|
return this.internalArrayValue.map(function (file) {
|
|
137
123
|
var _file$name = file.name,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
124
|
+
name = _file$name === void 0 ? '' : _file$name,
|
|
125
|
+
_file$size = file.size,
|
|
126
|
+
size = _file$size === void 0 ? 0 : _file$size;
|
|
142
127
|
var truncatedText = _this.truncateText(name);
|
|
143
|
-
|
|
144
128
|
return !_this.showSize ? truncatedText : "".concat(truncatedText, " (").concat((0, _helpers.humanReadableFileSize)(size, _this.base === 1024), ")");
|
|
145
129
|
});
|
|
146
130
|
},
|
|
@@ -160,7 +144,6 @@ var _default = _KTextField.default.extend({
|
|
|
160
144
|
},
|
|
161
145
|
value: function value(v) {
|
|
162
146
|
var value = this.multiple ? v : v ? [v] : [];
|
|
163
|
-
|
|
164
147
|
if (!(0, _helpers.deepEqual)(value, this.$refs.input.files)) {
|
|
165
148
|
// When the input value is changed programatically, clear the
|
|
166
149
|
// internal input's value so that the `onInput` handler
|
|
@@ -178,7 +161,6 @@ var _default = _KTextField.default.extend({
|
|
|
178
161
|
},
|
|
179
162
|
genChips: function genChips() {
|
|
180
163
|
var _this2 = this;
|
|
181
|
-
|
|
182
164
|
if (!this.isDirty) return [];
|
|
183
165
|
return this.text.map(function (text, index) {
|
|
184
166
|
return _this2.$createElement(_KChip.KChip, {
|
|
@@ -197,33 +179,29 @@ var _default = _KTextField.default.extend({
|
|
|
197
179
|
},
|
|
198
180
|
genControl: function genControl() {
|
|
199
181
|
var render = _KTextField.default.options.methods.genControl.call(this);
|
|
200
|
-
|
|
201
182
|
if (this.hideInput) {
|
|
202
183
|
render.data.style = (0, _mergeData.mergeStyles)(render.data.style, {
|
|
203
184
|
display: 'none'
|
|
204
185
|
});
|
|
205
186
|
}
|
|
206
|
-
|
|
207
187
|
return render;
|
|
208
188
|
},
|
|
209
189
|
genInput: function genInput() {
|
|
210
190
|
var input = _KTextField.default.options.methods.genInput.call(this);
|
|
211
|
-
|
|
212
|
-
|
|
191
|
+
input.data.attrs.multiple = this.multiple;
|
|
192
|
+
// We should not be setting value
|
|
213
193
|
// programmatically on the input
|
|
214
194
|
// when it is using type="file"
|
|
215
|
-
|
|
216
|
-
|
|
195
|
+
delete input.data.domProps.value;
|
|
196
|
+
// This solves an issue in Safari where
|
|
217
197
|
// nothing happens when adding a file
|
|
218
|
-
//
|
|
219
|
-
|
|
198
|
+
// due to the input event not firing
|
|
220
199
|
delete input.data.on.input;
|
|
221
200
|
input.data.on.change = this.onInput;
|
|
222
201
|
return [this.genSelections(), input];
|
|
223
202
|
},
|
|
224
203
|
genPrependSlot: function genPrependSlot() {
|
|
225
204
|
var _this3 = this;
|
|
226
|
-
|
|
227
205
|
if (!this.prependIcon) return null;
|
|
228
206
|
var icon = this.genIcon('prepend', function () {
|
|
229
207
|
_this3.$refs.input.click();
|
|
@@ -238,9 +216,7 @@ var _default = _KTextField.default.extend({
|
|
|
238
216
|
},
|
|
239
217
|
genSelections: function genSelections() {
|
|
240
218
|
var _this4 = this;
|
|
241
|
-
|
|
242
219
|
var children = [];
|
|
243
|
-
|
|
244
220
|
if (this.isDirty && this.$scopedSlots.selection) {
|
|
245
221
|
this.internalArrayValue.forEach(function (file, index) {
|
|
246
222
|
if (!_this4.$scopedSlots.selection) return;
|
|
@@ -253,7 +229,6 @@ var _default = _KTextField.default.extend({
|
|
|
253
229
|
} else {
|
|
254
230
|
children.push(this.hasChips && this.isDirty ? this.genChips() : this.genSelectionText());
|
|
255
231
|
}
|
|
256
|
-
|
|
257
232
|
return this.$createElement('div', {
|
|
258
233
|
staticClass: 'k-file-input__text',
|
|
259
234
|
class: {
|
|
@@ -264,23 +239,22 @@ var _default = _KTextField.default.extend({
|
|
|
264
239
|
},
|
|
265
240
|
genTextFieldSlot: function genTextFieldSlot() {
|
|
266
241
|
var _this5 = this;
|
|
267
|
-
|
|
268
242
|
var node = _KTextField.default.options.methods.genTextFieldSlot.call(this);
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
243
|
+
node.data.on = _objectSpread({}, node.data.on || {}, {
|
|
244
|
+
click: function click(e) {
|
|
245
|
+
// Clicking the label already delegates to input element, so we shouldn't click it twice
|
|
246
|
+
if (e.target && e.target.nodeName === 'LABEL') return;
|
|
247
|
+
_this5.$refs.input.click();
|
|
273
248
|
}
|
|
274
249
|
});
|
|
275
250
|
return node;
|
|
276
251
|
},
|
|
277
252
|
onInput: function onInput(e) {
|
|
278
253
|
var files = _toConsumableArray(e.target.files || []);
|
|
279
|
-
|
|
280
|
-
|
|
254
|
+
this.internalValue = this.multiple ? files : files[0];
|
|
255
|
+
// Set initialValue here otherwise isFocused
|
|
281
256
|
// watcher in KTextField will emit a change
|
|
282
257
|
// event whenever the component is blurred
|
|
283
|
-
|
|
284
258
|
this.initialValue = this.internalValue;
|
|
285
259
|
},
|
|
286
260
|
onKeyDown: function onKeyDown(e) {
|
|
@@ -293,6 +267,4 @@ var _default = _KTextField.default.extend({
|
|
|
293
267
|
}
|
|
294
268
|
}
|
|
295
269
|
});
|
|
296
|
-
|
|
297
|
-
exports.default = _default;
|
|
298
270
|
//# sourceMappingURL=KFileInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/KFileInput/KFileInput.ts"],"names":[],"mappings":";;;;;;;AACA;;AAGA;;AAGA;;AAMA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;eAEe,oBAAW,MAAX,CAAkB;AAC/B,EAA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,CAAb;;AAEA,MAAA,IAAI,CAAC,IAAL,CAAW,EAAX,mCACM,IAAI,CAAC,IAAL,CAAW,EAAX,IAAiB,EADvB;AAEE,QAAA,KAAK,EAAE;AAAA,iBAAM,MAAI,CAAC,KAAL,CAAW,KAAX,CAAiB,KAAjB,EAAN;AAAA;AAFT;AAKA,aAAO,IAAP;AACD,KArGM;AAsGP,IAAA,OAtGO,mBAsGE,CAtGF,EAsGU;AACf,UAAM,KAAK,sBAAQ,CAAC,CAAC,MAAF,CAA8B,KAA9B,IAAuC,EAA/C,CAAX;;AAEA,WAAK,aAAL,GAAqB,KAAK,QAAL,GAAgB,KAAhB,GAAwB,KAAK,CAAC,CAAD,CAAlD,CAHe,CAKf;AACA;AACA;;AACA,WAAK,YAAL,GAAoB,KAAK,aAAzB;AACD,KA/GM;AAgHP,IAAA,SAhHO,qBAgHI,CAhHJ,EAgHoB;AACzB,WAAK,KAAL,CAAW,SAAX,EAAsB,CAAtB;AACD,KAlHM;AAmHP,IAAA,YAnHO,wBAmHO,GAnHP,EAmHkB;AACvB,UAAI,GAAG,CAAC,MAAJ,GAAa,MAAM,CAAC,KAAK,cAAN,CAAvB,EAA8C,OAAO,GAAP;AAC9C,UAAM,gBAAgB,GAAG,IAAI,CAAC,KAAL,CAAW,CAAC,MAAM,CAAC,KAAK,cAAN,CAAN,GAA8B,CAA/B,IAAoC,CAA/C,CAAzB;AACA,uBAAU,GAAG,CAAC,KAAJ,CAAU,CAAV,EAAa,gBAAb,CAAV,mBAA4C,GAAG,CAAC,KAAJ,CAAU,GAAG,CAAC,MAAJ,GAAa,gBAAvB,CAA5C;AACD;AAvHM;AAlJsB,CAAlB,C","sourcesContent":["// Styles\nimport './KFileInput.sass'\n\n// Extensions\nimport KTextField from '../KTextField'\n\n// Components\nimport { KChip } from '../KChip'\n\n// Types\nimport { PropValidator } from 'kdu/types/options'\n\n// Utilities\nimport { deepEqual, humanReadableFileSize, wrapInArray } from '../../util/helpers'\nimport { consoleError } from '../../util/console'\nimport { mergeStyles } from '../../util/mergeData'\n\nexport default KTextField.extend({\n name: 'k-file-input',\n\n model: {\n prop: 'value',\n event: 'change',\n },\n\n props: {\n chips: Boolean,\n clearable: {\n type: Boolean,\n default: true,\n },\n counterSizeString: {\n type: String,\n default: '$kdutify.fileInput.counterSize',\n },\n counterString: {\n type: String,\n default: '$kdutify.fileInput.counter',\n },\n hideInput: Boolean,\n multiple: Boolean,\n placeholder: String,\n prependIcon: {\n type: String,\n default: '$file',\n },\n readonly: {\n type: Boolean,\n default: false,\n },\n showSize: {\n type: [Boolean, Number],\n default: false,\n validator: (v: boolean | number) => {\n return (\n typeof v === 'boolean' ||\n [1000, 1024].includes(v)\n )\n },\n } as PropValidator<boolean | 1000 | 1024>,\n smallChips: Boolean,\n truncateLength: {\n type: [Number, String],\n default: 22,\n },\n type: {\n type: String,\n default: 'file',\n },\n value: {\n default: undefined,\n validator: val => {\n return wrapInArray(val).every(v => v != null && typeof v === 'object')\n },\n } as PropValidator<File | File[]>,\n },\n\n computed: {\n classes (): object {\n return {\n ...KTextField.options.computed.classes.call(this),\n 'k-file-input': true,\n }\n },\n computedCounterValue (): string {\n const fileCount = (this.multiple && this.lazyValue)\n ? this.lazyValue.length\n : (this.lazyValue instanceof File) ? 1 : 0\n\n if (!this.showSize) return this.$kdutify.lang.t(this.counterString, fileCount)\n\n const bytes = this.internalArrayValue.reduce((bytes: number, { size = 0 }: File) => {\n return bytes + size\n }, 0)\n\n return this.$kdutify.lang.t(\n this.counterSizeString,\n fileCount,\n humanReadableFileSize(bytes, this.base === 1024)\n )\n },\n internalArrayValue (): File[] {\n return wrapInArray(this.internalValue)\n },\n internalValue: {\n get (): File[] {\n return this.lazyValue\n },\n set (val: File | File[]) {\n this.lazyValue = val\n this.$emit('change', this.lazyValue)\n },\n },\n isDirty (): boolean {\n return this.internalArrayValue.length > 0\n },\n isLabelActive (): boolean {\n return this.isDirty\n },\n text (): string[] {\n if (!this.isDirty && (this.persistentPlaceholder || this.isFocused || !this.hasLabel)) return [this.placeholder]\n\n return this.internalArrayValue.map((file: File) => {\n const {\n name = '',\n size = 0,\n } = file\n\n const truncatedText = this.truncateText(name)\n\n return !this.showSize\n ? truncatedText\n : `${truncatedText} (${humanReadableFileSize(size, this.base === 1024)})`\n })\n },\n base (): 1000 | 1024 | undefined {\n return typeof this.showSize !== 'boolean' ? this.showSize : undefined\n },\n hasChips (): boolean {\n return this.chips || this.smallChips\n },\n },\n\n watch: {\n readonly: {\n handler (v) {\n if (v === true) consoleError('readonly is not supported on <k-file-input>', this)\n },\n immediate: true,\n },\n value (v) {\n const value = this.multiple ? v : v ? [v] : []\n if (!deepEqual(value, this.$refs.input.files)) {\n // When the input value is changed programatically, clear the\n // internal input's value so that the `onInput` handler\n // can be triggered again if the user re-selects the exact\n // same file(s). Ideally, `input.files` should be\n // manipulated directly but that property is readonly.\n this.$refs.input.value = ''\n }\n },\n },\n\n methods: {\n clearableCallback () {\n this.internalValue = this.multiple ? [] : null\n this.$refs.input.value = ''\n },\n genChips () {\n if (!this.isDirty) return []\n\n return this.text.map((text, index) => this.$createElement(KChip, {\n props: { small: this.smallChips },\n on: {\n 'click:close': () => {\n const internalValue = this.internalValue\n internalValue.splice(index, 1)\n this.internalValue = internalValue // Trigger the watcher\n },\n },\n }, [text]))\n },\n genControl () {\n const render = KTextField.options.methods.genControl.call(this)\n\n if (this.hideInput) {\n render.data!.style = mergeStyles(\n render.data!.style,\n { display: 'none' }\n )\n }\n\n return render\n },\n genInput () {\n const input = KTextField.options.methods.genInput.call(this)\n\n input.data!.attrs!.multiple = this.multiple\n\n // We should not be setting value\n // programmatically on the input\n // when it is using type=\"file\"\n delete input.data!.domProps!.value\n\n // This solves an issue in Safari where\n // nothing happens when adding a file\n // do to the input event not firing\n delete input.data!.on!.input\n input.data!.on!.change = this.onInput\n\n return [this.genSelections(), input]\n },\n genPrependSlot () {\n if (!this.prependIcon) return null\n\n const icon = this.genIcon('prepend', () => {\n this.$refs.input.click()\n })\n\n return this.genSlot('prepend', 'outer', [icon])\n },\n genSelectionText (): string[] {\n const length = this.text.length\n\n if (length < 2) return this.text\n if (this.showSize && !this.counter) return [this.computedCounterValue]\n return [this.$kdutify.lang.t(this.counterString, length)]\n },\n genSelections () {\n const children = []\n\n if (this.isDirty && this.$scopedSlots.selection) {\n this.internalArrayValue.forEach((file: File, index: number) => {\n if (!this.$scopedSlots.selection) return\n\n children.push(\n this.$scopedSlots.selection({\n text: this.text[index],\n file,\n index,\n })\n )\n })\n } else {\n children.push(this.hasChips && this.isDirty ? this.genChips() : this.genSelectionText())\n }\n\n return this.$createElement('div', {\n staticClass: 'k-file-input__text',\n class: {\n 'k-file-input__text--placeholder': this.placeholder && !this.isDirty,\n 'k-file-input__text--chips': this.hasChips && !this.$scopedSlots.selection,\n },\n }, children)\n },\n genTextFieldSlot () {\n const node = KTextField.options.methods.genTextFieldSlot.call(this)\n\n node.data!.on = {\n ...(node.data!.on || {}),\n click: () => this.$refs.input.click(),\n }\n\n return node\n },\n onInput (e: Event) {\n const files = [...(e.target as HTMLInputElement).files || []]\n\n this.internalValue = this.multiple ? files : files[0]\n\n // Set initialValue here otherwise isFocused\n // watcher in KTextField will emit a change\n // event whenever the component is blurred\n this.initialValue = this.internalValue\n },\n onKeyDown (e: KeyboardEvent) {\n this.$emit('keydown', e)\n },\n truncateText (str: string) {\n if (str.length < Number(this.truncateLength)) return str\n const charsKeepOneSide = Math.floor((Number(this.truncateLength) - 1) / 2)\n return `${str.slice(0, charsKeepOneSide)}…${str.slice(str.length - charsKeepOneSide)}`\n },\n },\n})\n"],"sourceRoot":"","file":"KFileInput.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/KFileInput/KFileInput.ts"],"names":[],"mappings":";;;;;;AACA,OAAA;AAGA,IAAA,WAAA,GAAA,sBAAA,CAAA,OAAA;AAGA,IAAA,MAAA,GAAA,OAAA;AAMA,IAAA,QAAA,GAAA,OAAA;AACA,IAAA,QAAA,GAAA,OAAA;AACA,IAAA,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AAC,CAAC,MAA2B,CAAC,KAAK,IAAI,EAAE,CAAC;MAE7D,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,QAAQ,GAAG,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC;MAErD;MACA;MACA;MACA,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa;IACxC,CAAC;IACD,SAAS,WAAT,SAAS,CAAE,CAAgB,EAAA;MACzB,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC;IAC1B,CAAC;IACD,YAAY,WAAZ,YAAY,CAAE,GAAW,EAAA;MACvB,IAAI,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG;MACxD,IAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;MAC1E,UAAA,MAAA,CAAU,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,gBAAgB,CAAC,YAAA,MAAA,CAAI,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,GAAG,gBAAgB,CAAC;IACtF;EACD;CACF,CAAC","sourcesContent":["// Styles\nimport './KFileInput.sass'\n\n// Extensions\nimport KTextField from '../KTextField'\n\n// Components\nimport { KChip } from '../KChip'\n\n// Types\nimport { PropValidator } from 'kdu/types/options'\n\n// Utilities\nimport { deepEqual, humanReadableFileSize, wrapInArray } from '../../util/helpers'\nimport { consoleError } from '../../util/console'\nimport { mergeStyles } from '../../util/mergeData'\n\nexport default KTextField.extend({\n name: 'k-file-input',\n\n model: {\n prop: 'value',\n event: 'change',\n },\n\n props: {\n chips: Boolean,\n clearable: {\n type: Boolean,\n default: true,\n },\n counterSizeString: {\n type: String,\n default: '$kdutify.fileInput.counterSize',\n },\n counterString: {\n type: String,\n default: '$kdutify.fileInput.counter',\n },\n hideInput: Boolean,\n multiple: Boolean,\n placeholder: String,\n prependIcon: {\n type: String,\n default: '$file',\n },\n readonly: {\n type: Boolean,\n default: false,\n },\n showSize: {\n type: [Boolean, Number],\n default: false,\n validator: (v: boolean | number) => {\n return (\n typeof v === 'boolean' ||\n [1000, 1024].includes(v)\n )\n },\n } as PropValidator<boolean | 1000 | 1024>,\n smallChips: Boolean,\n truncateLength: {\n type: [Number, String],\n default: 22,\n },\n type: {\n type: String,\n default: 'file',\n },\n value: {\n default: undefined,\n validator: val => {\n return wrapInArray(val).every(v => v != null && typeof v === 'object')\n },\n } as PropValidator<File | File[]>,\n },\n\n computed: {\n classes (): object {\n return {\n ...KTextField.options.computed.classes.call(this),\n 'k-file-input': true,\n }\n },\n computedCounterValue (): string {\n const fileCount = (this.multiple && this.lazyValue)\n ? this.lazyValue.length\n : (this.lazyValue instanceof File) ? 1 : 0\n\n if (!this.showSize) return this.$kdutify.lang.t(this.counterString, fileCount)\n\n const bytes = this.internalArrayValue.reduce((bytes: number, { size = 0 }: File) => {\n return bytes + size\n }, 0)\n\n return this.$kdutify.lang.t(\n this.counterSizeString,\n fileCount,\n humanReadableFileSize(bytes, this.base === 1024)\n )\n },\n internalArrayValue (): File[] {\n return wrapInArray(this.internalValue)\n },\n internalValue: {\n get (): File[] {\n return this.lazyValue\n },\n set (val: File | File[]) {\n this.lazyValue = val\n this.$emit('change', this.lazyValue)\n },\n },\n isDirty (): boolean {\n return this.internalArrayValue.length > 0\n },\n isLabelActive (): boolean {\n return this.isDirty\n },\n text (): string[] {\n if (!this.isDirty && (this.persistentPlaceholder || this.isFocused || !this.hasLabel)) return [this.placeholder]\n\n return this.internalArrayValue.map((file: File) => {\n const {\n name = '',\n size = 0,\n } = file\n\n const truncatedText = this.truncateText(name)\n\n return !this.showSize\n ? truncatedText\n : `${truncatedText} (${humanReadableFileSize(size, this.base === 1024)})`\n })\n },\n base (): 1000 | 1024 | undefined {\n return typeof this.showSize !== 'boolean' ? this.showSize : undefined\n },\n hasChips (): boolean {\n return this.chips || this.smallChips\n },\n },\n\n watch: {\n readonly: {\n handler (v) {\n if (v === true) consoleError('readonly is not supported on <k-file-input>', this)\n },\n immediate: true,\n },\n value (v) {\n const value = this.multiple ? v : v ? [v] : []\n if (!deepEqual(value, this.$refs.input.files)) {\n // When the input value is changed programatically, clear the\n // internal input's value so that the `onInput` handler\n // can be triggered again if the user re-selects the exact\n // same file(s). Ideally, `input.files` should be\n // manipulated directly but that property is readonly.\n this.$refs.input.value = ''\n }\n },\n },\n\n methods: {\n clearableCallback () {\n this.internalValue = this.multiple ? [] : null\n this.$refs.input.value = ''\n },\n genChips () {\n if (!this.isDirty) return []\n\n return this.text.map((text, index) => this.$createElement(KChip, {\n props: { small: this.smallChips },\n on: {\n 'click:close': () => {\n const internalValue = this.internalValue\n internalValue.splice(index, 1)\n this.internalValue = internalValue // Trigger the watcher\n },\n },\n }, [text]))\n },\n genControl () {\n const render = KTextField.options.methods.genControl.call(this)\n\n if (this.hideInput) {\n render.data!.style = mergeStyles(\n render.data!.style,\n { display: 'none' }\n )\n }\n\n return render\n },\n genInput () {\n const input = KTextField.options.methods.genInput.call(this)\n\n input.data!.attrs!.multiple = this.multiple\n\n // We should not be setting value\n // programmatically on the input\n // when it is using type=\"file\"\n delete input.data!.domProps!.value\n\n // This solves an issue in Safari where\n // nothing happens when adding a file\n // due to the input event not firing\n delete input.data!.on!.input\n input.data!.on!.change = this.onInput\n\n return [this.genSelections(), input]\n },\n genPrependSlot () {\n if (!this.prependIcon) return null\n\n const icon = this.genIcon('prepend', () => {\n this.$refs.input.click()\n })\n\n return this.genSlot('prepend', 'outer', [icon])\n },\n genSelectionText (): string[] {\n const length = this.text.length\n\n if (length < 2) return this.text\n if (this.showSize && !this.counter) return [this.computedCounterValue]\n return [this.$kdutify.lang.t(this.counterString, length)]\n },\n genSelections () {\n const children = []\n\n if (this.isDirty && this.$scopedSlots.selection) {\n this.internalArrayValue.forEach((file: File, index: number) => {\n if (!this.$scopedSlots.selection) return\n\n children.push(\n this.$scopedSlots.selection({\n text: this.text[index],\n file,\n index,\n })\n )\n })\n } else {\n children.push(this.hasChips && this.isDirty ? this.genChips() : this.genSelectionText())\n }\n\n return this.$createElement('div', {\n staticClass: 'k-file-input__text',\n class: {\n 'k-file-input__text--placeholder': this.placeholder && !this.isDirty,\n 'k-file-input__text--chips': this.hasChips && !this.$scopedSlots.selection,\n },\n }, children)\n },\n genTextFieldSlot () {\n const node = KTextField.options.methods.genTextFieldSlot.call(this)\n\n node.data!.on = {\n ...(node.data!.on || {}),\n click: (e: MouseEvent) => {\n // Clicking the label already delegates to input element, so we shouldn't click it twice\n if (e.target && (e.target as HTMLElement).nodeName === 'LABEL') return\n\n this.$refs.input.click()\n },\n }\n\n return node\n },\n onInput (e: Event) {\n const files = [...(e.target as HTMLInputElement).files || []]\n\n this.internalValue = this.multiple ? files : files[0]\n\n // Set initialValue here otherwise isFocused\n // watcher in KTextField will emit a change\n // event whenever the component is blurred\n this.initialValue = this.internalValue\n },\n onKeyDown (e: KeyboardEvent) {\n this.$emit('keydown', e)\n },\n truncateText (str: string) {\n if (str.length < Number(this.truncateLength)) return str\n const charsKeepOneSide = Math.floor((Number(this.truncateLength) - 1) / 2)\n return `${str.slice(0, charsKeepOneSide)}…${str.slice(str.length - charsKeepOneSide)}`\n },\n },\n})\n"],"sourceRoot":"","file":"KFileInput.js"}
|
|
@@ -10,11 +10,7 @@ Object.defineProperty(exports, "KFileInput", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
exports.default = void 0;
|
|
13
|
-
|
|
14
13
|
var _KFileInput = _interopRequireDefault(require("./KFileInput"));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var _default = _KFileInput.default;
|
|
19
|
-
exports.default = _default;
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
var _default = exports.default = _KFileInput.default;
|
|
20
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/KFileInput/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/KFileInput/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,IAAA,WAAA,GAAA,sBAAA,CAAA,OAAA;AAAqC,SAAA,uBAAA,CAAA,WAAA,CAAA,IAAA,CAAA,CAAA,UAAA,GAAA,CAAA,KAAA,OAAA,EAAA,CAAA;AAAA,IAAA,QAAA,GAAA,OAAA,CAAA,OAAA,GAGtB,mBAAU","sourcesContent":["import KFileInput from './KFileInput'\n\nexport { KFileInput }\nexport default KFileInput\n"],"sourceRoot":"","file":"index.js"}
|
|
@@ -4,29 +4,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
require("..\\..\\..\\src\\components\\KFooter\\KFooter.sass");
|
|
9
|
-
|
|
10
8
|
var _KSheet = _interopRequireDefault(require("../KSheet/KSheet"));
|
|
11
|
-
|
|
12
9
|
var _applicationable = _interopRequireDefault(require("../../mixins/applicationable"));
|
|
13
|
-
|
|
14
10
|
var _ssrBootable = _interopRequireDefault(require("../../mixins/ssr-bootable"));
|
|
15
|
-
|
|
16
11
|
var _mixins = _interopRequireDefault(require("../../util/mixins"));
|
|
17
|
-
|
|
18
12
|
var _helpers = require("../../util/helpers");
|
|
19
|
-
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
15
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } // Styles
|
|
20
|
+
// Components
|
|
21
|
+
// Mixins
|
|
22
|
+
// Utilities
|
|
28
23
|
/* @kdujs/component */
|
|
29
|
-
var _default = (0, _mixins.default)(_KSheet.default, (0, _applicationable.default)('footer', ['height', 'inset']), _ssrBootable.default).extend({
|
|
24
|
+
var _default = exports.default = (0, _mixins.default)(_KSheet.default, (0, _applicationable.default)('footer', ['height', 'inset']), _ssrBootable.default).extend({
|
|
30
25
|
name: 'k-footer',
|
|
31
26
|
props: {
|
|
32
27
|
height: {
|
|
@@ -45,7 +40,7 @@ var _default = (0, _mixins.default)(_KSheet.default, (0, _applicationable.defaul
|
|
|
45
40
|
return this.inset ? 'insetFooter' : 'footer';
|
|
46
41
|
},
|
|
47
42
|
classes: function classes() {
|
|
48
|
-
return _objectSpread(
|
|
43
|
+
return _objectSpread({}, _KSheet.default.options.computed.classes.call(this), {
|
|
49
44
|
'k-footer--absolute': this.absolute,
|
|
50
45
|
'k-footer--fixed': !this.absolute && (this.app || this.fixed),
|
|
51
46
|
'k-footer--padless': this.padless,
|
|
@@ -69,7 +64,7 @@ var _default = (0, _mixins.default)(_KSheet.default, (0, _applicationable.defaul
|
|
|
69
64
|
},
|
|
70
65
|
styles: function styles() {
|
|
71
66
|
var height = parseInt(this.height);
|
|
72
|
-
return _objectSpread(
|
|
67
|
+
return _objectSpread({}, _KSheet.default.options.computed.styles.call(this), {
|
|
73
68
|
height: isNaN(height) ? height : (0, _helpers.convertToUnit)(height),
|
|
74
69
|
left: (0, _helpers.convertToUnit)(this.computedLeft),
|
|
75
70
|
right: (0, _helpers.convertToUnit)(this.computedRight),
|
|
@@ -89,9 +84,7 @@ var _default = (0, _mixins.default)(_KSheet.default, (0, _applicationable.defaul
|
|
|
89
84
|
class: this.classes,
|
|
90
85
|
style: this.styles
|
|
91
86
|
});
|
|
92
|
-
return h(this.tag, data,
|
|
87
|
+
return h(this.tag, data, (0, _helpers.getSlot)(this));
|
|
93
88
|
}
|
|
94
89
|
});
|
|
95
|
-
|
|
96
|
-
exports.default = _default;
|
|
97
90
|
//# sourceMappingURL=KFooter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/KFooter/KFooter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/KFooter/KFooter.ts"],"names":[],"mappings":";;;;;;AACA,OAAA;AAGA,IAAA,OAAA,GAAA,sBAAA,CAAA,OAAA;AAGA,IAAA,gBAAA,GAAA,sBAAA,CAAA,OAAA;AACA,IAAA,YAAA,GAAA,sBAAA,CAAA,OAAA;AAGA,IAAA,OAAA,GAAA,sBAAA,CAAA,OAAA;AACA,IAAA,QAAA,GAAA,OAAA;AAA2D,S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C,MAAM,CAAC;MAEpC,OAAA,aAAA,KACK,eAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;QAC5C,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,GAAG,IAAA,sBAAa,EAAC,MAAM,CAAC;QACtD,IAAI,EAAE,IAAA,sBAAa,EAAC,IAAI,CAAC,YAAY,CAAC;QACtC,KAAK,EAAE,IAAA,sBAAa,EAAC,IAAI,CAAC,aAAa,CAAC;QACxC,MAAM,EAAE,IAAA,sBAAa,EAAC,IAAI,CAAC,cAAc;MAAC;IAE9C;GACD;EAED,OAAO,EAAE;IACP,iBAAiB,WAAjB,iBAAiB,CAAA,EAAA;MACf,IAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;MAEpC,OAAO,KAAK,CAAC,MAAM,CAAC,GAChB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,YAAY,GAAG,CAAC,GACpC,MAAM;IACZ;GACD;EAED,MAAM,WAAN,MAAM,CAAE,CAAC,EAAA;IACP,IAAM,IAAI,GAAG,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK,EAAE;MAC/C,WAAW,EAAE,UAAU;MACvB,KAAK,EAAE,IAAI,CAAC,OAAO;MACnB,KAAK,EAAE,IAAI,CAAC;KACb,CAAC;IAEF,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,IAAA,gBAAO,EAAC,IAAI,CAAC,CAAC;EACzC;CACD,CAAC","sourcesContent":["// Styles\nimport './KFooter.sass'\n\n// Components\nimport KSheet from '../KSheet/KSheet'\n\n// Mixins\nimport Applicationable from '../../mixins/applicationable'\nimport SSRBootable from '../../mixins/ssr-bootable'\n\n// Utilities\nimport mixins from '../../util/mixins'\nimport { convertToUnit, getSlot } from '../../util/helpers'\n\n// Types\nimport { KNode } from 'kdu/types/knode'\n\n/* @kdujs/component */\nexport default mixins(\n KSheet,\n Applicationable('footer', [\n 'height',\n 'inset',\n ]),\n SSRBootable\n).extend({\n name: 'k-footer',\n\n props: {\n height: {\n default: 'auto',\n type: [Number, String],\n },\n inset: Boolean,\n padless: Boolean,\n tag: {\n type: String,\n default: 'footer',\n },\n },\n\n computed: {\n applicationProperty (): string {\n return this.inset ? 'insetFooter' : 'footer'\n },\n classes (): object {\n return {\n ...KSheet.options.computed.classes.call(this),\n 'k-footer--absolute': this.absolute,\n 'k-footer--fixed': !this.absolute && (this.app || this.fixed),\n 'k-footer--padless': this.padless,\n 'k-footer--inset': this.inset,\n }\n },\n computedBottom (): number | undefined {\n if (!this.isPositioned) return undefined\n\n return this.app\n ? this.$kdutify.application.bottom\n : 0\n },\n computedLeft (): number | undefined {\n if (!this.isPositioned) return undefined\n\n return this.app && this.inset\n ? this.$kdutify.application.left\n : 0\n },\n computedRight (): number | undefined {\n if (!this.isPositioned) return undefined\n\n return this.app && this.inset\n ? this.$kdutify.application.right\n : 0\n },\n isPositioned (): boolean {\n return Boolean(\n this.absolute ||\n this.fixed ||\n this.app\n )\n },\n styles (): object {\n const height = parseInt(this.height)\n\n return {\n ...KSheet.options.computed.styles.call(this),\n height: isNaN(height) ? height : convertToUnit(height),\n left: convertToUnit(this.computedLeft),\n right: convertToUnit(this.computedRight),\n bottom: convertToUnit(this.computedBottom),\n }\n },\n },\n\n methods: {\n updateApplication () {\n const height = parseInt(this.height)\n\n return isNaN(height)\n ? this.$el ? this.$el.clientHeight : 0\n : height\n },\n },\n\n render (h): KNode {\n const data = this.setBackgroundColor(this.color, {\n staticClass: 'k-footer',\n class: this.classes,\n style: this.styles,\n })\n\n return h(this.tag, data, getSlot(this))\n },\n})\n"],"sourceRoot":"","file":"KFooter.js"}
|
|
@@ -10,11 +10,7 @@ Object.defineProperty(exports, "KFooter", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
exports.default = void 0;
|
|
13
|
-
|
|
14
13
|
var _KFooter = _interopRequireDefault(require("./KFooter"));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var _default = _KFooter.default;
|
|
19
|
-
exports.default = _default;
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
var _default = exports.default = _KFooter.default;
|
|
20
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/KFooter/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/KFooter/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,IAAA,QAAA,GAAA,sBAAA,CAAA,OAAA;AAA+B,SAAA,uBAAA,CAAA,WAAA,CAAA,IAAA,CAAA,CAAA,UAAA,GAAA,CAAA,KAAA,OAAA,EAAA,CAAA;AAAA,IAAA,QAAA,GAAA,OAAA,CAAA,OAAA,GAGhB,gBAAO","sourcesContent":["import KFooter from './KFooter'\n\nexport { KFooter }\nexport default KFooter\n"],"sourceRoot":"","file":"index.js"}
|
|
@@ -4,25 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _mixins = _interopRequireDefault(require("../../util/mixins"));
|
|
9
|
-
|
|
10
8
|
var _bindsAttrs = _interopRequireDefault(require("../../mixins/binds-attrs"));
|
|
11
|
-
|
|
12
9
|
var _registrable = require("../../mixins/registrable");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(
|
|
15
|
-
|
|
16
|
-
function ownKeys(
|
|
17
|
-
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
/* @kdujs/component */
|
|
23
|
-
var _default = (0, _mixins.default)(_bindsAttrs.default, (0, _registrable.provide)('form')
|
|
10
|
+
var _helpers = require("../../util/helpers");
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
13
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } // Mixins
|
|
24
18
|
/* @kdujs/component */
|
|
25
|
-
).
|
|
19
|
+
var _default = exports.default = (0, _mixins.default)(_bindsAttrs.default, (0, _registrable.provide)('form')
|
|
20
|
+
/* @kdujs/component */).extend({
|
|
26
21
|
name: 'k-form',
|
|
27
22
|
provide: function provide() {
|
|
28
23
|
return {
|
|
@@ -56,7 +51,6 @@ var _default = (0, _mixins.default)(_bindsAttrs.default, (0, _registrable.provid
|
|
|
56
51
|
methods: {
|
|
57
52
|
watchInput: function watchInput(input) {
|
|
58
53
|
var _this = this;
|
|
59
|
-
|
|
60
54
|
var watcher = function watcher(input) {
|
|
61
55
|
return input.$watch('hasError', function (val) {
|
|
62
56
|
_this.$set(_this.errorBag, input._uid, val);
|
|
@@ -64,37 +58,30 @@ var _default = (0, _mixins.default)(_bindsAttrs.default, (0, _registrable.provid
|
|
|
64
58
|
immediate: true
|
|
65
59
|
});
|
|
66
60
|
};
|
|
67
|
-
|
|
68
61
|
var watchers = {
|
|
69
62
|
_uid: input._uid,
|
|
70
63
|
valid: function valid() {},
|
|
71
64
|
shouldValidate: function shouldValidate() {}
|
|
72
65
|
};
|
|
73
|
-
|
|
74
66
|
if (this.lazyValidation) {
|
|
75
67
|
// Only start watching inputs if we need to
|
|
76
68
|
watchers.shouldValidate = input.$watch('shouldValidate', function (val) {
|
|
77
|
-
if (!val) return;
|
|
78
|
-
|
|
69
|
+
if (!val) return;
|
|
70
|
+
// Only watch if we're not already doing it
|
|
79
71
|
if (_this.errorBag.hasOwnProperty(input._uid)) return;
|
|
80
72
|
watchers.valid = watcher(input);
|
|
81
73
|
});
|
|
82
74
|
} else {
|
|
83
75
|
watchers.valid = watcher(input);
|
|
84
76
|
}
|
|
85
|
-
|
|
86
77
|
return watchers;
|
|
87
78
|
},
|
|
88
|
-
|
|
89
|
-
/** @public */
|
|
90
|
-
validate: function validate() {
|
|
79
|
+
/** @public */validate: function validate() {
|
|
91
80
|
return this.inputs.filter(function (input) {
|
|
92
81
|
return !input.validate(true);
|
|
93
82
|
}).length === 0;
|
|
94
83
|
},
|
|
95
|
-
|
|
96
|
-
/** @public */
|
|
97
|
-
reset: function reset() {
|
|
84
|
+
/** @public */reset: function reset() {
|
|
98
85
|
this.inputs.forEach(function (input) {
|
|
99
86
|
return input.reset();
|
|
100
87
|
});
|
|
@@ -102,7 +89,6 @@ var _default = (0, _mixins.default)(_bindsAttrs.default, (0, _registrable.provid
|
|
|
102
89
|
},
|
|
103
90
|
resetErrorBag: function resetErrorBag() {
|
|
104
91
|
var _this2 = this;
|
|
105
|
-
|
|
106
92
|
if (this.lazyValidation) {
|
|
107
93
|
// Account for timeout in validatable
|
|
108
94
|
setTimeout(function () {
|
|
@@ -110,9 +96,7 @@ var _default = (0, _mixins.default)(_bindsAttrs.default, (0, _registrable.provid
|
|
|
110
96
|
}, 0);
|
|
111
97
|
}
|
|
112
98
|
},
|
|
113
|
-
|
|
114
|
-
/** @public */
|
|
115
|
-
resetValidation: function resetValidation() {
|
|
99
|
+
/** @public */resetValidation: function resetValidation() {
|
|
116
100
|
this.inputs.forEach(function (input) {
|
|
117
101
|
return input.resetValidation();
|
|
118
102
|
});
|
|
@@ -130,12 +114,10 @@ var _default = (0, _mixins.default)(_bindsAttrs.default, (0, _registrable.provid
|
|
|
130
114
|
var unwatch = this.watchers.find(function (i) {
|
|
131
115
|
return i._uid === found._uid;
|
|
132
116
|
});
|
|
133
|
-
|
|
134
117
|
if (unwatch) {
|
|
135
118
|
unwatch.valid();
|
|
136
119
|
unwatch.shouldValidate();
|
|
137
120
|
}
|
|
138
|
-
|
|
139
121
|
this.watchers = this.watchers.filter(function (i) {
|
|
140
122
|
return i._uid !== found._uid;
|
|
141
123
|
});
|
|
@@ -147,7 +129,6 @@ var _default = (0, _mixins.default)(_bindsAttrs.default, (0, _registrable.provid
|
|
|
147
129
|
},
|
|
148
130
|
render: function render(h) {
|
|
149
131
|
var _this3 = this;
|
|
150
|
-
|
|
151
132
|
return h('form', {
|
|
152
133
|
staticClass: 'k-form',
|
|
153
134
|
attrs: _objectSpread({
|
|
@@ -158,9 +139,7 @@ var _default = (0, _mixins.default)(_bindsAttrs.default, (0, _registrable.provid
|
|
|
158
139
|
return _this3.$emit('submit', e);
|
|
159
140
|
}
|
|
160
141
|
}
|
|
161
|
-
},
|
|
142
|
+
}, (0, _helpers.getSlot)(this));
|
|
162
143
|
}
|
|
163
144
|
});
|
|
164
|
-
|
|
165
|
-
exports.default = _default;
|
|
166
145
|
//# sourceMappingURL=KForm.js.map
|