@katlux/toolkit 0.1.0-beta.1 → 0.1.0-beta.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/module.d.mts +5 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +23 -14
- package/dist/runtime/app.config.d.ts +9 -0
- package/dist/runtime/components/KAccordion/KAccordion.global.d.vue.ts +13 -0
- package/dist/runtime/components/KAccordion/KAccordion.global.vue +15 -0
- package/dist/runtime/components/KAccordion/KAccordion.global.vue.d.ts +13 -0
- package/dist/runtime/components/KAccordion/KAccordion.logic.d.ts +9 -0
- package/dist/runtime/components/KAccordion/KAccordion.logic.js +38 -0
- package/dist/runtime/components/KAccordion/KAccordionItem.global.d.vue.ts +21 -0
- package/dist/runtime/components/KAccordion/KAccordionItem.global.vue +20 -0
- package/dist/runtime/components/KAccordion/KAccordionItem.global.vue.d.ts +21 -0
- package/dist/runtime/components/KAccordion/KAccordionItem.logic.d.ts +17 -0
- package/dist/runtime/components/KAccordion/KAccordionItem.logic.js +59 -0
- package/dist/runtime/components/KAlert/KAlert.global.d.vue.ts +3 -0
- package/dist/runtime/components/KAlert/KAlert.global.vue +9 -0
- package/dist/runtime/components/KAlert/KAlert.global.vue.d.ts +3 -0
- package/dist/runtime/components/KAlert/KAlert.logic.d.ts +4 -0
- package/dist/runtime/components/KAlert/KAlert.logic.js +4 -0
- package/dist/runtime/components/KBulkActions/KBulkActions.global.d.vue.ts +9 -0
- package/dist/runtime/components/KBulkActions/KBulkActions.global.vue +32 -0
- package/dist/runtime/components/KBulkActions/KBulkActions.global.vue.d.ts +9 -0
- package/dist/runtime/components/KBulkActions/KBulkActions.logic.d.ts +19 -0
- package/dist/runtime/components/KBulkActions/KBulkActions.logic.js +24 -0
- package/dist/runtime/components/KButton/KButton.global.d.vue.ts +56 -0
- package/dist/runtime/components/KButton/KButton.global.vue +24 -0
- package/dist/runtime/components/KButton/KButton.global.vue.d.ts +56 -0
- package/dist/runtime/components/KButton/KButton.logic.d.ts +54 -0
- package/dist/runtime/components/KButton/KButton.logic.js +42 -0
- package/dist/runtime/components/KCalendar/KCalendar.global.d.vue.ts +68 -0
- package/dist/runtime/components/KCalendar/KCalendar.global.vue +39 -0
- package/dist/runtime/components/KCalendar/KCalendar.global.vue.d.ts +68 -0
- package/dist/runtime/components/KCalendar/KCalendar.logic.d.ts +246 -0
- package/dist/runtime/components/KCalendar/KCalendar.logic.js +166 -0
- package/dist/runtime/components/KCalendar/KCalendarMonth.global.d.vue.ts +74 -0
- package/dist/runtime/components/KCalendar/KCalendarMonth.global.vue +33 -0
- package/dist/runtime/components/KCalendar/KCalendarMonth.global.vue.d.ts +74 -0
- package/dist/runtime/components/KCalendar/KCalendarMonth.logic.d.ts +54 -0
- package/dist/runtime/components/KCalendar/KCalendarMonth.logic.js +122 -0
- package/dist/runtime/components/KCalendar/KCalendarWeek.global.d.vue.ts +3 -0
- package/dist/runtime/components/KCalendar/KCalendarWeek.global.vue +9 -0
- package/dist/runtime/components/KCalendar/KCalendarWeek.global.vue.d.ts +3 -0
- package/dist/runtime/components/KCalendar/KCalendarWeek.logic.d.ts +4 -0
- package/dist/runtime/components/KCalendar/KCalendarWeek.logic.js +4 -0
- package/dist/runtime/components/KCalendar/recurringUtils.d.ts +11 -0
- package/dist/runtime/components/KCalendar/recurringUtils.js +191 -0
- package/dist/runtime/components/KCalendar/types.d.ts +38 -0
- package/dist/runtime/components/KCalendar/types.js +1 -0
- package/dist/runtime/components/KCheckbox/KCheckbox.global.d.vue.ts +34 -0
- package/dist/runtime/components/KCheckbox/KCheckbox.global.vue +21 -0
- package/dist/runtime/components/KCheckbox/KCheckbox.global.vue.d.ts +34 -0
- package/dist/runtime/components/KCheckbox/KCheckbox.logic.d.ts +28 -0
- package/dist/runtime/components/KCheckbox/KCheckbox.logic.js +20 -0
- package/dist/runtime/components/KCombobox/KCombobox.global.d.vue.ts +99 -0
- package/dist/runtime/components/KCombobox/KCombobox.global.vue +43 -0
- package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +99 -0
- package/dist/runtime/components/KCombobox/KCombobox.logic.d.ts +0 -0
- package/dist/runtime/components/KCombobox/KCombobox.logic.js +140 -0
- package/dist/runtime/components/KContextMenu/KContextMenu.global.d.vue.ts +3 -0
- package/dist/runtime/components/KContextMenu/KContextMenu.global.vue +9 -0
- package/dist/runtime/components/KContextMenu/KContextMenu.global.vue.d.ts +3 -0
- package/dist/runtime/components/KContextMenu/KContextMenu.logic.d.ts +4 -0
- package/dist/runtime/components/KContextMenu/KContextMenu.logic.js +4 -0
- package/dist/runtime/components/KDatatable/KDataIterator.global.d.vue.ts +23 -0
- package/dist/runtime/components/KDatatable/KDataIterator.global.vue +53 -0
- package/dist/runtime/components/KDatatable/KDataIterator.global.vue.d.ts +23 -0
- package/dist/runtime/components/KDatatable/KDataIterator.logic.d.ts +0 -0
- package/dist/runtime/components/KDatatable/KDataIterator.logic.js +37 -0
- package/dist/runtime/components/KDatatable/KDatatable.global.d.vue.ts +23 -0
- package/dist/runtime/components/KDatatable/KDatatable.global.vue +46 -0
- package/dist/runtime/components/KDatatable/KDatatable.global.vue.d.ts +23 -0
- package/dist/runtime/components/KDatatable/KDatatable.logic.d.ts +0 -0
- package/dist/runtime/components/KDatatable/KDatatable.logic.js +19 -0
- package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +42 -0
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue +45 -0
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +42 -0
- package/dist/runtime/components/KDatePicker/KDatePicker.logic.d.ts +33 -0
- package/dist/runtime/components/KDatePicker/KDatePicker.logic.js +63 -0
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.d.vue.ts +60 -0
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue +48 -0
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +60 -0
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.d.ts +45 -0
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.js +77 -0
- package/dist/runtime/components/KDropdown/KDropdown.global.d.vue.ts +28 -0
- package/dist/runtime/components/KDropdown/KDropdown.global.vue +21 -0
- package/dist/runtime/components/KDropdown/KDropdown.global.vue.d.ts +28 -0
- package/dist/runtime/components/KDropdown/KDropdown.logic.d.ts +21 -0
- package/dist/runtime/components/KDropdown/KDropdown.logic.js +31 -0
- package/dist/runtime/components/KGantt/KGantt.global.d.vue.ts +172 -0
- package/dist/runtime/components/KGantt/KGantt.global.vue +73 -0
- package/dist/runtime/components/KGantt/KGantt.global.vue.d.ts +172 -0
- package/dist/runtime/components/KGantt/KGantt.logic.d.ts +190 -0
- package/dist/runtime/components/KGantt/KGantt.logic.js +310 -0
- package/dist/runtime/components/KGrid/KGrid.global.d.vue.ts +60 -0
- package/dist/runtime/components/KGrid/KGrid.global.vue +18 -0
- package/dist/runtime/components/KGrid/KGrid.global.vue.d.ts +60 -0
- package/dist/runtime/components/KGrid/KGrid.logic.d.ts +37 -0
- package/dist/runtime/components/KGrid/KGrid.logic.js +53 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.global.d.vue.ts +73 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.global.vue +40 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.global.vue.d.ts +73 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.logic.d.ts +46 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.logic.js +58 -0
- package/dist/runtime/components/KHourSelect/KHourSelect.global.d.vue.ts +55 -0
- package/dist/runtime/components/KHourSelect/KHourSelect.global.vue +30 -0
- package/dist/runtime/components/KHourSelect/KHourSelect.global.vue.d.ts +55 -0
- package/dist/runtime/components/KHourSelect/KHourSelect.logic.d.ts +34 -0
- package/dist/runtime/components/KHourSelect/KHourSelect.logic.js +69 -0
- package/dist/runtime/components/KIcon/KIcon.global.d.vue.ts +41 -0
- package/dist/runtime/components/KIcon/KIcon.global.vue +19 -0
- package/dist/runtime/components/KIcon/KIcon.global.vue.d.ts +41 -0
- package/dist/runtime/components/KIcon/KIcon.logic.d.ts +29 -0
- package/dist/runtime/components/KIcon/KIcon.logic.js +41 -0
- package/dist/runtime/components/KLoader/KLoader.global.d.vue.ts +33 -0
- package/dist/runtime/components/KLoader/KLoader.global.vue +22 -0
- package/dist/runtime/components/KLoader/KLoader.global.vue.d.ts +33 -0
- package/dist/runtime/components/KLoader/KLoader.logic.d.ts +22 -0
- package/dist/runtime/components/KLoader/KLoader.logic.js +24 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.d.vue.ts +45 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue +25 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue.d.ts +45 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.d.ts +66 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.js +186 -0
- package/dist/runtime/components/KModal/KModal.global.d.vue.ts +6 -0
- package/dist/runtime/components/KModal/KModal.global.vue +23 -0
- package/dist/runtime/components/KModal/KModal.global.vue.d.ts +6 -0
- package/dist/runtime/components/KModal/KModal.logic.d.ts +8 -0
- package/dist/runtime/components/KModal/KModal.logic.js +16 -0
- package/dist/runtime/components/KPagination/KPagination.global.d.vue.ts +7 -0
- package/dist/runtime/components/KPagination/KPagination.global.vue +45 -0
- package/dist/runtime/components/KPagination/KPagination.global.vue.d.ts +7 -0
- package/dist/runtime/components/KPagination/KPagination.logic.d.ts +20 -0
- package/dist/runtime/components/KPagination/KPagination.logic.js +73 -0
- package/dist/runtime/components/KPanel/KPanel.global.d.vue.ts +33 -0
- package/dist/runtime/components/KPanel/KPanel.global.vue +19 -0
- package/dist/runtime/components/KPanel/KPanel.global.vue.d.ts +33 -0
- package/dist/runtime/components/KPanel/KPanel.logic.d.ts +20 -0
- package/dist/runtime/components/KPanel/KPanel.logic.js +17 -0
- package/dist/runtime/components/KRadiobox/KRadiobox.global.d.vue.ts +37 -0
- package/dist/runtime/components/KRadiobox/KRadiobox.global.vue +22 -0
- package/dist/runtime/components/KRadiobox/KRadiobox.global.vue.d.ts +37 -0
- package/dist/runtime/components/KRadiobox/KRadiobox.logic.d.ts +22 -0
- package/dist/runtime/components/KRadiobox/KRadiobox.logic.js +20 -0
- package/dist/runtime/components/KRangeSlider/KRangeSlider.global.d.vue.ts +66 -0
- package/dist/runtime/components/KRangeSlider/KRangeSlider.global.vue +36 -0
- package/dist/runtime/components/KRangeSlider/KRangeSlider.global.vue.d.ts +66 -0
- package/dist/runtime/components/KRangeSlider/KRangeSlider.logic.d.ts +52 -0
- package/dist/runtime/components/KRangeSlider/KRangeSlider.logic.js +65 -0
- package/dist/runtime/components/KSearchTree/KSearchTree.global.d.vue.ts +3 -0
- package/dist/runtime/components/KSearchTree/KSearchTree.global.vue +9 -0
- package/dist/runtime/components/KSearchTree/KSearchTree.global.vue.d.ts +3 -0
- package/dist/runtime/components/KSearchTree/KSearchTree.logic.d.ts +4 -0
- package/dist/runtime/components/KSearchTree/KSearchTree.logic.js +4 -0
- package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.global.d.vue.ts +3 -0
- package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.global.vue +9 -0
- package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.global.vue.d.ts +3 -0
- package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.logic.d.ts +4 -0
- package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.logic.js +4 -0
- package/dist/runtime/components/KSlider/KSlider.global.d.vue.ts +55 -0
- package/dist/runtime/components/KSlider/KSlider.global.vue +31 -0
- package/dist/runtime/components/KSlider/KSlider.global.vue.d.ts +55 -0
- package/dist/runtime/components/KSlider/KSlider.logic.d.ts +45 -0
- package/dist/runtime/components/KSlider/KSlider.logic.js +45 -0
- package/dist/runtime/components/KTabs/KTabItem.global.d.vue.ts +21 -0
- package/dist/runtime/components/KTabs/KTabItem.global.vue +20 -0
- package/dist/runtime/components/KTabs/KTabItem.global.vue.d.ts +21 -0
- package/dist/runtime/components/KTabs/KTabItem.logic.d.ts +17 -0
- package/dist/runtime/components/KTabs/KTabItem.logic.js +37 -0
- package/dist/runtime/components/KTabs/KTabs.global.d.vue.ts +3 -0
- package/dist/runtime/components/KTabs/KTabs.global.vue +20 -0
- package/dist/runtime/components/KTabs/KTabs.global.vue.d.ts +3 -0
- package/dist/runtime/components/KTabs/KTabs.logic.d.ts +8 -0
- package/dist/runtime/components/KTabs/KTabs.logic.js +49 -0
- package/dist/runtime/components/KTextarea/KTextarea.global.d.vue.ts +36 -0
- package/dist/runtime/components/KTextarea/KTextarea.global.vue +19 -0
- package/dist/runtime/components/KTextarea/KTextarea.global.vue.d.ts +36 -0
- package/dist/runtime/components/KTextarea/KTextarea.logic.d.ts +31 -0
- package/dist/runtime/components/KTextarea/KTextarea.logic.js +24 -0
- package/dist/runtime/components/KTextbox/KTextbox.global.d.vue.ts +36 -0
- package/dist/runtime/components/KTextbox/KTextbox.global.vue +20 -0
- package/dist/runtime/components/KTextbox/KTextbox.global.vue.d.ts +36 -0
- package/dist/runtime/components/KTextbox/KTextbox.logic.d.ts +33 -0
- package/dist/runtime/components/KTextbox/KTextbox.logic.js +32 -0
- package/dist/runtime/components/KThree/KThree.global.d.vue.ts +3 -0
- package/dist/runtime/components/KThree/KThree.global.vue +7 -0
- package/dist/runtime/components/KThree/KThree.global.vue.d.ts +3 -0
- package/dist/runtime/components/KTooltip/KTooltip.global.d.vue.ts +3 -0
- package/dist/runtime/components/KTooltip/KTooltip.global.vue +9 -0
- package/dist/runtime/components/KTooltip/KTooltip.global.vue.d.ts +3 -0
- package/dist/runtime/components/KTooltip/KTooltip.logic.d.ts +4 -0
- package/dist/runtime/components/KTooltip/KTooltip.logic.js +4 -0
- package/dist/runtime/components/KTree/KTree.global.d.vue.ts +77 -0
- package/dist/runtime/components/KTree/KTree.global.vue +36 -0
- package/dist/runtime/components/KTree/KTree.global.vue.d.ts +77 -0
- package/dist/runtime/components/KTree/KTree.logic.d.ts +51 -0
- package/dist/runtime/components/KTree/KTree.logic.js +65 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +119 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue +66 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +119 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.d.ts +0 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.js +58 -0
- package/dist/runtime/components/KTreeView/KTreeView.global.d.vue.ts +94 -0
- package/dist/runtime/components/KTreeView/KTreeView.global.vue +69 -0
- package/dist/runtime/components/KTreeView/KTreeView.global.vue.d.ts +94 -0
- package/dist/runtime/components/KTreeView/KTreeView.logic.d.ts +80 -0
- package/dist/runtime/components/KTreeView/KTreeView.logic.js +90 -0
- package/dist/runtime/composables/useDebounce.d.ts +7 -0
- package/dist/runtime/composables/useDebounce.js +11 -0
- package/dist/runtime/composables/useFilterLogic.d.ts +20 -0
- package/dist/runtime/composables/useFilterLogic.js +170 -0
- package/dist/runtime/composables/usePresetComponent.d.ts +2 -0
- package/dist/runtime/composables/usePresetComponent.js +36 -0
- package/dist/runtime/composables/useRemainingTime.d.ts +3 -0
- package/dist/runtime/composables/useRemainingTime.js +17 -0
- package/dist/runtime/composables/useSortLogic.d.ts +4 -0
- package/dist/runtime/composables/useSortLogic.js +55 -0
- package/dist/runtime/composables/useTemplate.d.ts +47 -0
- package/dist/runtime/composables/useTemplate.js +70 -0
- package/dist/runtime/directives/clickOutside.d.ts +7 -0
- package/dist/runtime/directives/clickOutside.js +45 -0
- package/dist/runtime/directives/index.d.ts +1 -0
- package/dist/runtime/directives/index.js +1 -0
- package/dist/runtime/plugins/PresetPlugin.d.ts +11 -0
- package/dist/runtime/plugins/PresetPlugin.js +34 -0
- package/dist/runtime/plugins/registerDirectives.d.ts +2 -0
- package/dist/runtime/plugins/registerDirectives.js +5 -0
- package/dist/runtime/presets/default/assets/scss/css-variables.css +151 -0
- package/dist/runtime/presets/default/assets/scss/docs.css +42 -0
- package/dist/runtime/presets/default/assets/scss/index.css +211 -0
- package/dist/runtime/presets/default/assets/scss/mixins.css +0 -0
- package/dist/runtime/presets/default/assets/scss/reset.css +16 -0
- package/dist/runtime/presets/default/assets/svg/calendar.svg +9 -0
- package/dist/runtime/presets/default/assets/svg/check.svg +3 -0
- package/dist/runtime/presets/default/assets/svg/chevron.svg +3 -0
- package/dist/runtime/presets/default/assets/svg/close.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/file.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/folder.svg +3 -0
- package/dist/runtime/presets/default/assets/svg/search.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/user.svg +4 -0
- package/dist/runtime/presets/default/components/KAccordion/KAccordion.d.vue.ts +3 -0
- package/dist/runtime/presets/default/components/KAccordion/KAccordion.vue +9 -0
- package/dist/runtime/presets/default/components/KAccordion/KAccordion.vue.d.ts +3 -0
- package/dist/runtime/presets/default/components/KAccordion/KAccordionItem.d.vue.ts +8 -0
- package/dist/runtime/presets/default/components/KAccordion/KAccordionItem.vue +50 -0
- package/dist/runtime/presets/default/components/KAccordion/KAccordionItem.vue.d.ts +8 -0
- package/dist/runtime/presets/default/components/KAlert/KAlert.d.vue.ts +3 -0
- package/dist/runtime/presets/default/components/KAlert/KAlert.vue +5 -0
- package/dist/runtime/presets/default/components/KAlert/KAlert.vue.d.ts +3 -0
- package/dist/runtime/presets/default/components/KBulkActions/KBulkActions.d.vue.ts +17 -0
- package/dist/runtime/presets/default/components/KBulkActions/KBulkActions.vue +38 -0
- package/dist/runtime/presets/default/components/KBulkActions/KBulkActions.vue.d.ts +17 -0
- package/dist/runtime/presets/default/components/KButton/KButton.d.vue.ts +11 -0
- package/dist/runtime/presets/default/components/KButton/KButton.vue +444 -0
- package/dist/runtime/presets/default/components/KButton/KButton.vue.d.ts +11 -0
- package/dist/runtime/presets/default/components/KCalendar/KCalendar.d.vue.ts +18 -0
- package/dist/runtime/presets/default/components/KCalendar/KCalendar.vue +80 -0
- package/dist/runtime/presets/default/components/KCalendar/KCalendar.vue.d.ts +18 -0
- package/dist/runtime/presets/default/components/KCalendar/KCalendarMonth.d.vue.ts +15 -0
- package/dist/runtime/presets/default/components/KCalendar/KCalendarMonth.vue +189 -0
- package/dist/runtime/presets/default/components/KCalendar/KCalendarMonth.vue.d.ts +15 -0
- package/dist/runtime/presets/default/components/KCalendar/KCalendarWeek.d.vue.ts +3 -0
- package/dist/runtime/presets/default/components/KCalendar/KCalendarWeek.vue +5 -0
- package/dist/runtime/presets/default/components/KCalendar/KCalendarWeek.vue.d.ts +3 -0
- package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.d.vue.ts +12 -0
- package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.vue +51 -0
- package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.vue.d.ts +12 -0
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.d.vue.ts +23 -0
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue +96 -0
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue.d.ts +23 -0
- package/dist/runtime/presets/default/components/KCombobox/KComboboxList.d.vue.ts +17 -0
- package/dist/runtime/presets/default/components/KCombobox/KComboboxList.vue +82 -0
- package/dist/runtime/presets/default/components/KCombobox/KComboboxList.vue.d.ts +17 -0
- package/dist/runtime/presets/default/components/KContextMenu/KContextMenu.d.vue.ts +3 -0
- package/dist/runtime/presets/default/components/KContextMenu/KContextMenu.vue +5 -0
- package/dist/runtime/presets/default/components/KContextMenu/KContextMenu.vue.d.ts +3 -0
- package/dist/runtime/presets/default/components/KDataIterator/KDataIterator.d.vue.ts +24 -0
- package/dist/runtime/presets/default/components/KDataIterator/KDataIterator.vue +57 -0
- package/dist/runtime/presets/default/components/KDataIterator/KDataIterator.vue.d.ts +24 -0
- package/dist/runtime/presets/default/components/KDatatable/KDatatable.d.vue.ts +23 -0
- package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue +138 -0
- package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue.d.ts +23 -0
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.d.vue.ts +21 -0
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue +33 -0
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue.d.ts +21 -0
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.d.vue.ts +25 -0
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue +66 -0
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue.d.ts +25 -0
- package/dist/runtime/presets/default/components/KDropdown/KDropdown.d.vue.ts +8 -0
- package/dist/runtime/presets/default/components/KDropdown/KDropdown.vue +33 -0
- package/dist/runtime/presets/default/components/KDropdown/KDropdown.vue.d.ts +8 -0
- package/dist/runtime/presets/default/components/KGantt/KGantt.d.vue.ts +49 -0
- package/dist/runtime/presets/default/components/KGantt/KGantt.vue +304 -0
- package/dist/runtime/presets/default/components/KGantt/KGantt.vue.d.ts +49 -0
- package/dist/runtime/presets/default/components/KGantt/KGanttRuler.d.vue.ts +8 -0
- package/dist/runtime/presets/default/components/KGantt/KGanttRuler.vue +51 -0
- package/dist/runtime/presets/default/components/KGantt/KGanttRuler.vue.d.ts +8 -0
- package/dist/runtime/presets/default/components/KGantt/KGanttTimeline.d.vue.ts +41 -0
- package/dist/runtime/presets/default/components/KGantt/KGanttTimeline.vue +188 -0
- package/dist/runtime/presets/default/components/KGantt/KGanttTimeline.vue.d.ts +41 -0
- package/dist/runtime/presets/default/components/KGrid/KGrid.d.vue.ts +6 -0
- package/dist/runtime/presets/default/components/KGrid/KGrid.vue +70 -0
- package/dist/runtime/presets/default/components/KGrid/KGrid.vue.d.ts +6 -0
- package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.d.vue.ts +20 -0
- package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue +51 -0
- package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue.d.ts +20 -0
- package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.d.vue.ts +8 -0
- package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.vue +43 -0
- package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.vue.d.ts +8 -0
- package/dist/runtime/presets/default/components/KIcon/KIcon.d.vue.ts +9 -0
- package/dist/runtime/presets/default/components/KIcon/KIcon.vue +30 -0
- package/dist/runtime/presets/default/components/KIcon/KIcon.vue.d.ts +9 -0
- package/dist/runtime/presets/default/components/KLoader/KLoader.d.vue.ts +9 -0
- package/dist/runtime/presets/default/components/KLoader/KLoader.vue +60 -0
- package/dist/runtime/presets/default/components/KLoader/KLoader.vue.d.ts +9 -0
- package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.d.vue.ts +15 -0
- package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue +101 -0
- package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue.d.ts +15 -0
- package/dist/runtime/presets/default/components/KModal/KModal.d.vue.ts +7 -0
- package/dist/runtime/presets/default/components/KModal/KModal.vue +42 -0
- package/dist/runtime/presets/default/components/KModal/KModal.vue.d.ts +7 -0
- package/dist/runtime/presets/default/components/KPagination/KPagination.d.vue.ts +18 -0
- package/dist/runtime/presets/default/components/KPagination/KPagination.vue +70 -0
- package/dist/runtime/presets/default/components/KPagination/KPagination.vue.d.ts +18 -0
- package/dist/runtime/presets/default/components/KPanel/KPanel.d.vue.ts +12 -0
- package/dist/runtime/presets/default/components/KPanel/KPanel.vue +47 -0
- package/dist/runtime/presets/default/components/KPanel/KPanel.vue.d.ts +12 -0
- package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.d.vue.ts +17 -0
- package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.vue +43 -0
- package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.vue.d.ts +17 -0
- package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.d.vue.ts +19 -0
- package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.vue +156 -0
- package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.vue.d.ts +19 -0
- package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.d.vue.ts +3 -0
- package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.vue +5 -0
- package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.vue.d.ts +3 -0
- package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.d.vue.ts +3 -0
- package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.vue +5 -0
- package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.vue.d.ts +3 -0
- package/dist/runtime/presets/default/components/KSlider/KSlider.d.vue.ts +15 -0
- package/dist/runtime/presets/default/components/KSlider/KSlider.vue +121 -0
- package/dist/runtime/presets/default/components/KSlider/KSlider.vue.d.ts +15 -0
- package/dist/runtime/presets/default/components/KTabs/KTabItem.d.vue.ts +8 -0
- package/dist/runtime/presets/default/components/KTabs/KTabItem.vue +46 -0
- package/dist/runtime/presets/default/components/KTabs/KTabItem.vue.d.ts +8 -0
- package/dist/runtime/presets/default/components/KTabs/KTabs.d.vue.ts +8 -0
- package/dist/runtime/presets/default/components/KTabs/KTabs.vue +16 -0
- package/dist/runtime/presets/default/components/KTabs/KTabs.vue.d.ts +8 -0
- package/dist/runtime/presets/default/components/KTextarea/KTextarea.d.vue.ts +15 -0
- package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue +29 -0
- package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue.d.ts +15 -0
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.d.vue.ts +13 -0
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue +45 -0
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue.d.ts +13 -0
- package/dist/runtime/presets/default/components/KTooltip/KTooltip.d.vue.ts +3 -0
- package/dist/runtime/presets/default/components/KTooltip/KTooltip.vue +5 -0
- package/dist/runtime/presets/default/components/KTooltip/KTooltip.vue.d.ts +3 -0
- package/dist/runtime/presets/default/components/KTree/KTree.d.vue.ts +23 -0
- package/dist/runtime/presets/default/components/KTree/KTree.vue +126 -0
- package/dist/runtime/presets/default/components/KTree/KTree.vue.d.ts +23 -0
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.d.vue.ts +28 -0
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue +80 -0
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue.d.ts +28 -0
- package/dist/runtime/presets/default/components/KTreeView/KTreeCell.d.vue.ts +10 -0
- package/dist/runtime/presets/default/components/KTreeView/KTreeCell.vue +52 -0
- package/dist/runtime/presets/default/components/KTreeView/KTreeCell.vue.d.ts +10 -0
- package/dist/runtime/presets/default/components/KTreeView/KTreeView.d.vue.ts +24 -0
- package/dist/runtime/presets/default/components/KTreeView/KTreeView.vue +55 -0
- package/dist/runtime/presets/default/components/KTreeView/KTreeView.vue.d.ts +24 -0
- package/dist/runtime/utils/PresetResolver.d.ts +64 -0
- package/dist/runtime/utils/PresetResolver.js +100 -0
- package/dist/types.d.mts +4 -10
- package/package.json +3 -3
- package/dist/module.d.cts +0 -2
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
step: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
default: number;
|
|
5
|
+
};
|
|
6
|
+
format: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
startHour: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
endHour: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
18
|
+
modelValue: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
placeholder: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
disabled: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
31
|
+
"update:modelValue": (value: string) => any;
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
step: {
|
|
34
|
+
type: NumberConstructor;
|
|
35
|
+
default: number;
|
|
36
|
+
};
|
|
37
|
+
format: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
startHour: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
endHour: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: undefined;
|
|
48
|
+
};
|
|
49
|
+
modelValue: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
placeholder: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
disabled: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
}>> & Readonly<{
|
|
62
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
63
|
+
}>, {
|
|
64
|
+
disabled: boolean;
|
|
65
|
+
modelValue: string;
|
|
66
|
+
placeholder: string;
|
|
67
|
+
format: string;
|
|
68
|
+
step: number;
|
|
69
|
+
startHour: string;
|
|
70
|
+
endHour: string;
|
|
71
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
72
|
+
declare const _default: typeof __VLS_export;
|
|
73
|
+
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export interface KHourPickerProps {
|
|
2
|
+
step?: number;
|
|
3
|
+
format?: string;
|
|
4
|
+
startHour?: string;
|
|
5
|
+
endHour?: string;
|
|
6
|
+
modelValue?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const KHourPickerDefaultProps: {
|
|
11
|
+
step: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
format: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
startHour: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
endHour: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: undefined;
|
|
26
|
+
};
|
|
27
|
+
modelValue: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
placeholder: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
disabled: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare function useKHourPickerLogic(props: KHourPickerProps, emit: (event: string, ...args: any[]) => void): {
|
|
41
|
+
isOpen: import("vue").Ref<boolean, boolean>;
|
|
42
|
+
inputValue: import("vue").Ref<string, string>;
|
|
43
|
+
toggleDropdown: () => void;
|
|
44
|
+
closeDropdown: () => void;
|
|
45
|
+
onTimeSelect: (time: string) => void;
|
|
46
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ref, watch } from "vue";
|
|
2
|
+
export const KHourPickerDefaultProps = {
|
|
3
|
+
step: {
|
|
4
|
+
type: Number,
|
|
5
|
+
default: 30
|
|
6
|
+
// minutes
|
|
7
|
+
},
|
|
8
|
+
format: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: "HH:mm"
|
|
11
|
+
},
|
|
12
|
+
startHour: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "00:00"
|
|
15
|
+
},
|
|
16
|
+
endHour: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: void 0
|
|
19
|
+
},
|
|
20
|
+
modelValue: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: ""
|
|
23
|
+
},
|
|
24
|
+
placeholder: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: ""
|
|
27
|
+
},
|
|
28
|
+
disabled: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: false
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export function useKHourPickerLogic(props, emit) {
|
|
34
|
+
const isOpen = ref(false);
|
|
35
|
+
const inputValue = ref(props.modelValue || "");
|
|
36
|
+
const toggleDropdown = () => {
|
|
37
|
+
if (props.disabled) return;
|
|
38
|
+
isOpen.value = !isOpen.value;
|
|
39
|
+
};
|
|
40
|
+
const closeDropdown = () => {
|
|
41
|
+
isOpen.value = false;
|
|
42
|
+
};
|
|
43
|
+
const onTimeSelect = (time) => {
|
|
44
|
+
inputValue.value = time;
|
|
45
|
+
emit("update:modelValue", time);
|
|
46
|
+
closeDropdown();
|
|
47
|
+
};
|
|
48
|
+
watch(() => props.modelValue, (val) => {
|
|
49
|
+
inputValue.value = val || "";
|
|
50
|
+
});
|
|
51
|
+
return {
|
|
52
|
+
isOpen,
|
|
53
|
+
inputValue,
|
|
54
|
+
toggleDropdown,
|
|
55
|
+
closeDropdown,
|
|
56
|
+
onTimeSelect
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
step: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
default: number;
|
|
5
|
+
};
|
|
6
|
+
format: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
startHour: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
endHour: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
18
|
+
modelValue: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
23
|
+
"update:modelValue": (value: string) => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
step: {
|
|
26
|
+
type: NumberConstructor;
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
format: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
startHour: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
endHour: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
41
|
+
modelValue: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
}>> & Readonly<{
|
|
46
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
47
|
+
}>, {
|
|
48
|
+
modelValue: string;
|
|
49
|
+
format: string;
|
|
50
|
+
step: number;
|
|
51
|
+
startHour: string;
|
|
52
|
+
endHour: string;
|
|
53
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
54
|
+
declare const _default: typeof __VLS_export;
|
|
55
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useKHourSelectLogic, KHourSelectDefaultProps } from "./KHourSelect.logic";
|
|
3
|
+
import { usePresetComponent } from "../../composables/usePresetComponent";
|
|
4
|
+
import { computed } from "vue";
|
|
5
|
+
import KHourSelectDefault from "../../presets/default/components/KHourSelect/KHourSelect.vue";
|
|
6
|
+
const props = defineProps(KHourSelectDefaultProps);
|
|
7
|
+
const emit = defineEmits(["update:modelValue"]);
|
|
8
|
+
const {
|
|
9
|
+
timeSlots,
|
|
10
|
+
selectedTime,
|
|
11
|
+
selectTime
|
|
12
|
+
} = useKHourSelectLogic(props);
|
|
13
|
+
const presetComponent = usePresetComponent("KHourSelect", KHourSelectDefault);
|
|
14
|
+
const templateProps = computed(() => ({
|
|
15
|
+
timeSlots: timeSlots.value,
|
|
16
|
+
selectedTime: selectedTime.value,
|
|
17
|
+
selectTime: handleSelectTime
|
|
18
|
+
}));
|
|
19
|
+
const handleSelectTime = (time) => {
|
|
20
|
+
selectTime(time);
|
|
21
|
+
emit("update:modelValue", time);
|
|
22
|
+
};
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<template lang="pug">
|
|
26
|
+
component(
|
|
27
|
+
:is="presetComponent"
|
|
28
|
+
v-bind="templateProps"
|
|
29
|
+
)
|
|
30
|
+
</template>
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
step: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
default: number;
|
|
5
|
+
};
|
|
6
|
+
format: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
startHour: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
endHour: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
18
|
+
modelValue: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
23
|
+
"update:modelValue": (value: string) => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
step: {
|
|
26
|
+
type: NumberConstructor;
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
format: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
startHour: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
endHour: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
41
|
+
modelValue: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
}>> & Readonly<{
|
|
46
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
47
|
+
}>, {
|
|
48
|
+
modelValue: string;
|
|
49
|
+
format: string;
|
|
50
|
+
step: number;
|
|
51
|
+
startHour: string;
|
|
52
|
+
endHour: string;
|
|
53
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
54
|
+
declare const _default: typeof __VLS_export;
|
|
55
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface KHourSelectProps {
|
|
2
|
+
step?: number;
|
|
3
|
+
format?: string;
|
|
4
|
+
startHour?: string;
|
|
5
|
+
endHour?: string;
|
|
6
|
+
modelValue?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const KHourSelectDefaultProps: {
|
|
9
|
+
step: {
|
|
10
|
+
type: NumberConstructor;
|
|
11
|
+
default: number;
|
|
12
|
+
};
|
|
13
|
+
format: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
startHour: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
endHour: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: undefined;
|
|
24
|
+
};
|
|
25
|
+
modelValue: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare function useKHourSelectLogic(props: KHourSelectProps): {
|
|
31
|
+
timeSlots: import("vue").ComputedRef<string[]>;
|
|
32
|
+
selectedTime: import("vue").Ref<string, string>;
|
|
33
|
+
selectTime: (time: string) => void;
|
|
34
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ref, computed } from "vue";
|
|
2
|
+
export const KHourSelectDefaultProps = {
|
|
3
|
+
step: {
|
|
4
|
+
type: Number,
|
|
5
|
+
default: 30
|
|
6
|
+
// minutes
|
|
7
|
+
},
|
|
8
|
+
format: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: "HH:mm"
|
|
11
|
+
},
|
|
12
|
+
startHour: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "00:00"
|
|
15
|
+
},
|
|
16
|
+
endHour: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: void 0
|
|
19
|
+
// will be computed as one step before 00:00
|
|
20
|
+
},
|
|
21
|
+
modelValue: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ""
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
export function useKHourSelectLogic(props) {
|
|
27
|
+
const selectedTime = ref(props.modelValue || "");
|
|
28
|
+
const timeSlots = computed(() => {
|
|
29
|
+
const slots = [];
|
|
30
|
+
const stepMinutes = props.step || 30;
|
|
31
|
+
const [startHourNum, startMinNum] = (props.startHour || "00:00").split(":").map(Number);
|
|
32
|
+
let totalMinutes = startHourNum * 60 + startMinNum;
|
|
33
|
+
let endTotalMinutes;
|
|
34
|
+
if (props.endHour) {
|
|
35
|
+
const [endHourNum, endMinNum] = props.endHour.split(":").map(Number);
|
|
36
|
+
endTotalMinutes = endHourNum * 60 + endMinNum;
|
|
37
|
+
} else {
|
|
38
|
+
endTotalMinutes = 24 * 60 - stepMinutes;
|
|
39
|
+
}
|
|
40
|
+
while (totalMinutes <= endTotalMinutes) {
|
|
41
|
+
const hours = Math.floor(totalMinutes / 60);
|
|
42
|
+
const minutes = totalMinutes % 60;
|
|
43
|
+
const timeStr = formatTime(hours, minutes, props.format || "HH:mm");
|
|
44
|
+
slots.push(timeStr);
|
|
45
|
+
totalMinutes += stepMinutes;
|
|
46
|
+
}
|
|
47
|
+
return slots;
|
|
48
|
+
});
|
|
49
|
+
const formatTime = (hours, minutes, format) => {
|
|
50
|
+
const h24 = hours;
|
|
51
|
+
const h12 = hours % 12 || 12;
|
|
52
|
+
const period = hours < 12 ? "AM" : "PM";
|
|
53
|
+
let formatted = format;
|
|
54
|
+
formatted = formatted.replace("HH", h24.toString().padStart(2, "0"));
|
|
55
|
+
formatted = formatted.replace("hh", h12.toString().padStart(2, "0"));
|
|
56
|
+
formatted = formatted.replace("mm", minutes.toString().padStart(2, "0"));
|
|
57
|
+
formatted = formatted.replace("A", period);
|
|
58
|
+
formatted = formatted.replace("a", period.toLowerCase());
|
|
59
|
+
return formatted;
|
|
60
|
+
};
|
|
61
|
+
const selectTime = (time) => {
|
|
62
|
+
selectedTime.value = time;
|
|
63
|
+
};
|
|
64
|
+
return {
|
|
65
|
+
timeSlots,
|
|
66
|
+
selectedTime,
|
|
67
|
+
selectTime
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
iconname: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: boolean;
|
|
5
|
+
};
|
|
6
|
+
width: {
|
|
7
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
10
|
+
height: {
|
|
11
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
rotate: {
|
|
15
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
16
|
+
default: number;
|
|
17
|
+
};
|
|
18
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
iconname: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
required: boolean;
|
|
22
|
+
};
|
|
23
|
+
width: {
|
|
24
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
25
|
+
default: undefined;
|
|
26
|
+
};
|
|
27
|
+
height: {
|
|
28
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
31
|
+
rotate: {
|
|
32
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
}>> & Readonly<{}>, {
|
|
36
|
+
rotate: string | number;
|
|
37
|
+
width: string | number;
|
|
38
|
+
height: string | number;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
|
+
declare const _default: typeof __VLS_export;
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useKIconLogic, KIconDefaultProps } from "./KIcon.logic";
|
|
3
|
+
import { usePresetComponent } from "../../composables/usePresetComponent";
|
|
4
|
+
import { computed } from "vue";
|
|
5
|
+
import KIconDefault from "../../presets/default/components/KIcon/KIcon.vue";
|
|
6
|
+
const props = defineProps(KIconDefaultProps);
|
|
7
|
+
const { widthPx, heightPx, iconComponent } = useKIconLogic(props);
|
|
8
|
+
const presetComponent = usePresetComponent("KIcon", KIconDefault);
|
|
9
|
+
const templateProps = computed(() => ({
|
|
10
|
+
widthPx: widthPx.value,
|
|
11
|
+
heightPx: heightPx.value,
|
|
12
|
+
iconComponent: iconComponent.value,
|
|
13
|
+
rotate: props.rotate
|
|
14
|
+
}));
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template lang="pug">
|
|
18
|
+
component(:is="presetComponent" v-bind="templateProps")
|
|
19
|
+
</template>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
iconname: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: boolean;
|
|
5
|
+
};
|
|
6
|
+
width: {
|
|
7
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
10
|
+
height: {
|
|
11
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
rotate: {
|
|
15
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
16
|
+
default: number;
|
|
17
|
+
};
|
|
18
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
iconname: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
required: boolean;
|
|
22
|
+
};
|
|
23
|
+
width: {
|
|
24
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
25
|
+
default: undefined;
|
|
26
|
+
};
|
|
27
|
+
height: {
|
|
28
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
31
|
+
rotate: {
|
|
32
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
}>> & Readonly<{}>, {
|
|
36
|
+
rotate: string | number;
|
|
37
|
+
width: string | number;
|
|
38
|
+
height: string | number;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
|
+
declare const _default: typeof __VLS_export;
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface KIconProps {
|
|
2
|
+
iconname: string;
|
|
3
|
+
width?: number | string;
|
|
4
|
+
height?: number | string;
|
|
5
|
+
rotate?: number | string;
|
|
6
|
+
}
|
|
7
|
+
export declare const KIconDefaultProps: {
|
|
8
|
+
iconname: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
required: boolean;
|
|
11
|
+
};
|
|
12
|
+
width: {
|
|
13
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
height: {
|
|
17
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
rotate: {
|
|
21
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare function useKIconLogic(props: KIconProps): {
|
|
26
|
+
widthPx: import("vue").ComputedRef<string | undefined>;
|
|
27
|
+
heightPx: import("vue").ComputedRef<string>;
|
|
28
|
+
iconComponent: import("vue").ComputedRef<any>;
|
|
29
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { computed } from "vue";
|
|
2
|
+
export const KIconDefaultProps = {
|
|
3
|
+
iconname: {
|
|
4
|
+
type: String,
|
|
5
|
+
required: true
|
|
6
|
+
},
|
|
7
|
+
width: {
|
|
8
|
+
type: [Number, String],
|
|
9
|
+
default: void 0
|
|
10
|
+
},
|
|
11
|
+
height: {
|
|
12
|
+
type: [Number, String],
|
|
13
|
+
default: 12
|
|
14
|
+
},
|
|
15
|
+
rotate: {
|
|
16
|
+
type: [Number, String],
|
|
17
|
+
default: 0
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
export function useKIconLogic(props) {
|
|
21
|
+
const modules = import.meta.glob("../../presets/default/assets/svg/*.svg", { eager: true });
|
|
22
|
+
const iconMap = {};
|
|
23
|
+
for (const path in modules) {
|
|
24
|
+
const match = path.match(/([^/]+)\.svg$/);
|
|
25
|
+
if (match) {
|
|
26
|
+
iconMap[match[1]] = modules[path].default;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
const widthPx = computed(
|
|
30
|
+
() => typeof props.width === "number" || typeof props.width === "string" ? `${props.width}px` : props.width
|
|
31
|
+
);
|
|
32
|
+
const heightPx = computed(
|
|
33
|
+
() => typeof props.height === "number" || typeof props.height === "string" ? `${props.height}px` : props.height ? props.height : "12px"
|
|
34
|
+
);
|
|
35
|
+
const iconComponent = computed(() => iconMap[props.iconname] || null);
|
|
36
|
+
return {
|
|
37
|
+
widthPx,
|
|
38
|
+
heightPx,
|
|
39
|
+
iconComponent
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
loading: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
overlay: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
size: {
|
|
11
|
+
type: PropType<"small" | "medium" | "large">;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
loading: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
overlay: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
size: {
|
|
24
|
+
type: PropType<"small" | "medium" | "large">;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
}>> & Readonly<{}>, {
|
|
28
|
+
size: any;
|
|
29
|
+
overlay: boolean;
|
|
30
|
+
loading: boolean;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { useKLoaderLogic, KLoaderDefaultProps } from "./KLoader.logic";
|
|
4
|
+
import { usePresetComponent } from "../../composables/usePresetComponent";
|
|
5
|
+
import KLoaderDefault from "../../presets/default/components/KLoader/KLoader.vue";
|
|
6
|
+
const props = defineProps(KLoaderDefaultProps);
|
|
7
|
+
const { loaderClasses } = useKLoaderLogic(props);
|
|
8
|
+
const presetComponent = usePresetComponent("KLoader", KLoaderDefault);
|
|
9
|
+
const templateProps = computed(() => ({
|
|
10
|
+
loading: props.loading,
|
|
11
|
+
overlay: props.overlay,
|
|
12
|
+
size: props.size,
|
|
13
|
+
loaderClasses: loaderClasses.value
|
|
14
|
+
}));
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template lang="pug">
|
|
18
|
+
component(
|
|
19
|
+
:is="presetComponent"
|
|
20
|
+
v-bind="templateProps"
|
|
21
|
+
)
|
|
22
|
+
</template>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
loading: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
overlay: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
size: {
|
|
11
|
+
type: PropType<"small" | "medium" | "large">;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
loading: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
overlay: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
size: {
|
|
24
|
+
type: PropType<"small" | "medium" | "large">;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
}>> & Readonly<{}>, {
|
|
28
|
+
size: any;
|
|
29
|
+
overlay: boolean;
|
|
30
|
+
loading: boolean;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|