@katlux/toolkit 0.1.0-beta.1 → 0.1.0-beta.12
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/compiled/composables/useDebounce.mjs +11 -0
- package/dist/compiled/composables/useFilterLogic.mjs +170 -0
- package/dist/compiled/composables/usePresetComponent.mjs +36 -0
- package/dist/compiled/composables/useRemainingTime.mjs +17 -0
- package/dist/compiled/composables/useSortLogic.mjs +55 -0
- package/dist/compiled/composables/useTemplate.mjs +70 -0
- package/dist/compiled/utils/PresetResolver.mjs +100 -0
- package/dist/module.cjs +32 -0
- package/dist/module.d.cts +5 -2
- package/dist/module.d.mts +5 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +25 -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 +72 -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 +20 -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 +12 -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 +29 -0
- package/dist/runtime/components/KLoader/KLoader.logic.js +25 -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 +77 -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 +97 -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 +83 -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 +46 -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 +6 -5
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
isOpen: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
fullWidth: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
|
+
"update:isOpen": (value: boolean) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
isOpen: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
fullWidth: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
}>> & Readonly<{
|
|
22
|
+
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
isOpen: boolean;
|
|
25
|
+
fullWidth: boolean;
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface KDropdownProps {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
fullWidth: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface KDropdownEmits {
|
|
6
|
+
(e: 'update:isOpen', value: boolean): void;
|
|
7
|
+
}
|
|
8
|
+
export declare const KDropdownDefaultProps: {
|
|
9
|
+
isOpen: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
fullWidth: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare function useKDropdownLogic(props: KDropdownProps, emit: KDropdownEmits): {
|
|
19
|
+
open: import("vue").Ref<boolean, boolean>;
|
|
20
|
+
clickoutside: () => void;
|
|
21
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ref, watch, onMounted } from "vue";
|
|
2
|
+
export const KDropdownDefaultProps = {
|
|
3
|
+
isOpen: {
|
|
4
|
+
type: Boolean,
|
|
5
|
+
default: false
|
|
6
|
+
},
|
|
7
|
+
fullWidth: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
default: false
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
export function useKDropdownLogic(props, emit) {
|
|
13
|
+
const open = ref(false);
|
|
14
|
+
const clickoutside = () => {
|
|
15
|
+
open.value = false;
|
|
16
|
+
emit("update:isOpen", open.value);
|
|
17
|
+
};
|
|
18
|
+
watch(
|
|
19
|
+
() => props.isOpen,
|
|
20
|
+
(newValue) => {
|
|
21
|
+
open.value = newValue;
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
onMounted(() => {
|
|
25
|
+
open.value = props.isOpen;
|
|
26
|
+
});
|
|
27
|
+
return {
|
|
28
|
+
open,
|
|
29
|
+
clickoutside
|
|
30
|
+
};
|
|
31
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
dataProvider: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
required: boolean;
|
|
5
|
+
};
|
|
6
|
+
columns: {
|
|
7
|
+
type: ArrayConstructor;
|
|
8
|
+
required: boolean;
|
|
9
|
+
};
|
|
10
|
+
treeColumnIndex: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
bulkActions: {
|
|
15
|
+
type: ArrayConstructor;
|
|
16
|
+
default: () => never[];
|
|
17
|
+
};
|
|
18
|
+
rowActions: {
|
|
19
|
+
type: ArrayConstructor;
|
|
20
|
+
default: () => never[];
|
|
21
|
+
};
|
|
22
|
+
startDate: {
|
|
23
|
+
type: (DateConstructor | NumberConstructor | StringConstructor)[];
|
|
24
|
+
default: null;
|
|
25
|
+
};
|
|
26
|
+
endDate: {
|
|
27
|
+
type: (DateConstructor | NumberConstructor | StringConstructor)[];
|
|
28
|
+
default: null;
|
|
29
|
+
};
|
|
30
|
+
startingPoint: {
|
|
31
|
+
type: (DateConstructor | NumberConstructor | StringConstructor)[];
|
|
32
|
+
default: null;
|
|
33
|
+
};
|
|
34
|
+
endingPoint: {
|
|
35
|
+
type: (DateConstructor | NumberConstructor | StringConstructor)[];
|
|
36
|
+
default: null;
|
|
37
|
+
};
|
|
38
|
+
taskMapping: {
|
|
39
|
+
type: ObjectConstructor;
|
|
40
|
+
default: () => import("./KGantt.logic.js").IGanttTaskMapping;
|
|
41
|
+
};
|
|
42
|
+
editable: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
snapTo: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
resourceTypeField: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
taskTypeField: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
mode: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
cellSlots: {
|
|
63
|
+
type: ObjectConstructor;
|
|
64
|
+
default: () => {};
|
|
65
|
+
};
|
|
66
|
+
headerSlots: {
|
|
67
|
+
type: ObjectConstructor;
|
|
68
|
+
default: () => {};
|
|
69
|
+
};
|
|
70
|
+
}>, {
|
|
71
|
+
moveTime: (amount: number) => void;
|
|
72
|
+
zoom: (factor: number) => void;
|
|
73
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
74
|
+
"update:selectedRows": (...args: any[]) => void;
|
|
75
|
+
"update:selectAll": (...args: any[]) => void;
|
|
76
|
+
"update:task": (...args: any[]) => void;
|
|
77
|
+
"update:startingPoint": (...args: any[]) => void;
|
|
78
|
+
"update:endingPoint": (...args: any[]) => void;
|
|
79
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
80
|
+
dataProvider: {
|
|
81
|
+
type: ObjectConstructor;
|
|
82
|
+
required: boolean;
|
|
83
|
+
};
|
|
84
|
+
columns: {
|
|
85
|
+
type: ArrayConstructor;
|
|
86
|
+
required: boolean;
|
|
87
|
+
};
|
|
88
|
+
treeColumnIndex: {
|
|
89
|
+
type: NumberConstructor;
|
|
90
|
+
default: number;
|
|
91
|
+
};
|
|
92
|
+
bulkActions: {
|
|
93
|
+
type: ArrayConstructor;
|
|
94
|
+
default: () => never[];
|
|
95
|
+
};
|
|
96
|
+
rowActions: {
|
|
97
|
+
type: ArrayConstructor;
|
|
98
|
+
default: () => never[];
|
|
99
|
+
};
|
|
100
|
+
startDate: {
|
|
101
|
+
type: (DateConstructor | NumberConstructor | StringConstructor)[];
|
|
102
|
+
default: null;
|
|
103
|
+
};
|
|
104
|
+
endDate: {
|
|
105
|
+
type: (DateConstructor | NumberConstructor | StringConstructor)[];
|
|
106
|
+
default: null;
|
|
107
|
+
};
|
|
108
|
+
startingPoint: {
|
|
109
|
+
type: (DateConstructor | NumberConstructor | StringConstructor)[];
|
|
110
|
+
default: null;
|
|
111
|
+
};
|
|
112
|
+
endingPoint: {
|
|
113
|
+
type: (DateConstructor | NumberConstructor | StringConstructor)[];
|
|
114
|
+
default: null;
|
|
115
|
+
};
|
|
116
|
+
taskMapping: {
|
|
117
|
+
type: ObjectConstructor;
|
|
118
|
+
default: () => import("./KGantt.logic.js").IGanttTaskMapping;
|
|
119
|
+
};
|
|
120
|
+
editable: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
snapTo: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
default: string;
|
|
127
|
+
};
|
|
128
|
+
resourceTypeField: {
|
|
129
|
+
type: StringConstructor;
|
|
130
|
+
default: string;
|
|
131
|
+
};
|
|
132
|
+
taskTypeField: {
|
|
133
|
+
type: StringConstructor;
|
|
134
|
+
default: string;
|
|
135
|
+
};
|
|
136
|
+
mode: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
default: string;
|
|
139
|
+
};
|
|
140
|
+
cellSlots: {
|
|
141
|
+
type: ObjectConstructor;
|
|
142
|
+
default: () => {};
|
|
143
|
+
};
|
|
144
|
+
headerSlots: {
|
|
145
|
+
type: ObjectConstructor;
|
|
146
|
+
default: () => {};
|
|
147
|
+
};
|
|
148
|
+
}>> & Readonly<{
|
|
149
|
+
"onUpdate:selectedRows"?: ((...args: any[]) => any) | undefined;
|
|
150
|
+
"onUpdate:selectAll"?: ((...args: any[]) => any) | undefined;
|
|
151
|
+
"onUpdate:task"?: ((...args: any[]) => any) | undefined;
|
|
152
|
+
"onUpdate:startingPoint"?: ((...args: any[]) => any) | undefined;
|
|
153
|
+
"onUpdate:endingPoint"?: ((...args: any[]) => any) | undefined;
|
|
154
|
+
}>, {
|
|
155
|
+
mode: string;
|
|
156
|
+
bulkActions: unknown[];
|
|
157
|
+
rowActions: unknown[];
|
|
158
|
+
cellSlots: Record<string, any>;
|
|
159
|
+
headerSlots: Record<string, any>;
|
|
160
|
+
startDate: string | number | Date;
|
|
161
|
+
endDate: string | number | Date;
|
|
162
|
+
editable: boolean;
|
|
163
|
+
snapTo: string;
|
|
164
|
+
resourceTypeField: string;
|
|
165
|
+
treeColumnIndex: number;
|
|
166
|
+
taskTypeField: string;
|
|
167
|
+
endingPoint: string | number | Date;
|
|
168
|
+
startingPoint: string | number | Date;
|
|
169
|
+
taskMapping: Record<string, any>;
|
|
170
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
171
|
+
declare const _default: typeof __VLS_export;
|
|
172
|
+
export default _default;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, useSlots } from "vue";
|
|
3
|
+
import { useKGanttLogic, KGanttDefaultProps } from "./KGantt.logic";
|
|
4
|
+
import { usePresetComponent } from "#toolkit/composables/usePresetComponent";
|
|
5
|
+
import KGanttDefault from "#toolkit/presets/default/components/KGantt/KGantt.vue";
|
|
6
|
+
const props = defineProps(KGanttDefaultProps);
|
|
7
|
+
const {
|
|
8
|
+
globalDateRange,
|
|
9
|
+
totalDuration,
|
|
10
|
+
resolvedMapping,
|
|
11
|
+
getTasksForRow,
|
|
12
|
+
getTaskStyle,
|
|
13
|
+
moveTime: moveTimeLogic,
|
|
14
|
+
zoom: zoomLogic,
|
|
15
|
+
selectedRows,
|
|
16
|
+
selectAll
|
|
17
|
+
} = useKGanttLogic(props);
|
|
18
|
+
const emit = defineEmits(["update:startingPoint", "update:endingPoint", "update:task", "update:selectedRows", "update:selectAll"]);
|
|
19
|
+
const moveTime = (amount) => {
|
|
20
|
+
const result = moveTimeLogic(amount, props.startingPoint, props.endingPoint);
|
|
21
|
+
if (result) {
|
|
22
|
+
emit("update:startingPoint", result.startingPoint);
|
|
23
|
+
emit("update:endingPoint", result.endingPoint);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
const zoom = (factor) => {
|
|
27
|
+
const result = zoomLogic(factor, props.startingPoint, props.endingPoint);
|
|
28
|
+
if (result) {
|
|
29
|
+
emit("update:startingPoint", result.startingPoint);
|
|
30
|
+
emit("update:endingPoint", result.endingPoint);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
defineExpose({
|
|
34
|
+
moveTime,
|
|
35
|
+
zoom
|
|
36
|
+
});
|
|
37
|
+
const slots = useSlots();
|
|
38
|
+
const presetComponent = usePresetComponent("KGantt", KGanttDefault);
|
|
39
|
+
const templateProps = computed(() => ({
|
|
40
|
+
dataProvider: props.dataProvider,
|
|
41
|
+
columns: props.columns,
|
|
42
|
+
treeColumnIndex: props.treeColumnIndex,
|
|
43
|
+
bulkActions: props.bulkActions,
|
|
44
|
+
rowActions: props.rowActions,
|
|
45
|
+
globalDateRange: globalDateRange.value,
|
|
46
|
+
totalDuration: totalDuration.value,
|
|
47
|
+
resolvedMapping: resolvedMapping.value,
|
|
48
|
+
getTasksForRow,
|
|
49
|
+
getTaskStyle,
|
|
50
|
+
editable: props.editable,
|
|
51
|
+
snapTo: props.snapTo,
|
|
52
|
+
resourceTypeField: props.resourceTypeField,
|
|
53
|
+
taskTypeField: props.taskTypeField,
|
|
54
|
+
startingPoint: props.startingPoint,
|
|
55
|
+
endingPoint: props.endingPoint,
|
|
56
|
+
mode: props.mode,
|
|
57
|
+
moveTime,
|
|
58
|
+
zoom,
|
|
59
|
+
selectedRows: selectedRows.value,
|
|
60
|
+
selectAll: selectAll.value,
|
|
61
|
+
cellSlots: { ...slots, ...props.cellSlots || {} }
|
|
62
|
+
}));
|
|
63
|
+
</script>
|
|
64
|
+
|
|
65
|
+
<template lang="pug">
|
|
66
|
+
component(
|
|
67
|
+
:is="presetComponent"
|
|
68
|
+
v-bind="templateProps"
|
|
69
|
+
@update:task="$emit('update:task', $event)"
|
|
70
|
+
@update:selectedRows="$emit('update:selectedRows', $event)"
|
|
71
|
+
@update:selectAll="$emit('update:selectAll', $event)"
|
|
72
|
+
)
|
|
73
|
+
</template>
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
dataProvider: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
required: boolean;
|
|
5
|
+
};
|
|
6
|
+
columns: {
|
|
7
|
+
type: ArrayConstructor;
|
|
8
|
+
required: boolean;
|
|
9
|
+
};
|
|
10
|
+
treeColumnIndex: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
bulkActions: {
|
|
15
|
+
type: ArrayConstructor;
|
|
16
|
+
default: () => never[];
|
|
17
|
+
};
|
|
18
|
+
rowActions: {
|
|
19
|
+
type: ArrayConstructor;
|
|
20
|
+
default: () => never[];
|
|
21
|
+
};
|
|
22
|
+
startDate: {
|
|
23
|
+
type: (DateConstructor | NumberConstructor | StringConstructor)[];
|
|
24
|
+
default: null;
|
|
25
|
+
};
|
|
26
|
+
endDate: {
|
|
27
|
+
type: (DateConstructor | NumberConstructor | StringConstructor)[];
|
|
28
|
+
default: null;
|
|
29
|
+
};
|
|
30
|
+
startingPoint: {
|
|
31
|
+
type: (DateConstructor | NumberConstructor | StringConstructor)[];
|
|
32
|
+
default: null;
|
|
33
|
+
};
|
|
34
|
+
endingPoint: {
|
|
35
|
+
type: (DateConstructor | NumberConstructor | StringConstructor)[];
|
|
36
|
+
default: null;
|
|
37
|
+
};
|
|
38
|
+
taskMapping: {
|
|
39
|
+
type: ObjectConstructor;
|
|
40
|
+
default: () => import("./KGantt.logic.js").IGanttTaskMapping;
|
|
41
|
+
};
|
|
42
|
+
editable: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
snapTo: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
resourceTypeField: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
taskTypeField: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
mode: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
cellSlots: {
|
|
63
|
+
type: ObjectConstructor;
|
|
64
|
+
default: () => {};
|
|
65
|
+
};
|
|
66
|
+
headerSlots: {
|
|
67
|
+
type: ObjectConstructor;
|
|
68
|
+
default: () => {};
|
|
69
|
+
};
|
|
70
|
+
}>, {
|
|
71
|
+
moveTime: (amount: number) => void;
|
|
72
|
+
zoom: (factor: number) => void;
|
|
73
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
74
|
+
"update:selectedRows": (...args: any[]) => void;
|
|
75
|
+
"update:selectAll": (...args: any[]) => void;
|
|
76
|
+
"update:task": (...args: any[]) => void;
|
|
77
|
+
"update:startingPoint": (...args: any[]) => void;
|
|
78
|
+
"update:endingPoint": (...args: any[]) => void;
|
|
79
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
80
|
+
dataProvider: {
|
|
81
|
+
type: ObjectConstructor;
|
|
82
|
+
required: boolean;
|
|
83
|
+
};
|
|
84
|
+
columns: {
|
|
85
|
+
type: ArrayConstructor;
|
|
86
|
+
required: boolean;
|
|
87
|
+
};
|
|
88
|
+
treeColumnIndex: {
|
|
89
|
+
type: NumberConstructor;
|
|
90
|
+
default: number;
|
|
91
|
+
};
|
|
92
|
+
bulkActions: {
|
|
93
|
+
type: ArrayConstructor;
|
|
94
|
+
default: () => never[];
|
|
95
|
+
};
|
|
96
|
+
rowActions: {
|
|
97
|
+
type: ArrayConstructor;
|
|
98
|
+
default: () => never[];
|
|
99
|
+
};
|
|
100
|
+
startDate: {
|
|
101
|
+
type: (DateConstructor | NumberConstructor | StringConstructor)[];
|
|
102
|
+
default: null;
|
|
103
|
+
};
|
|
104
|
+
endDate: {
|
|
105
|
+
type: (DateConstructor | NumberConstructor | StringConstructor)[];
|
|
106
|
+
default: null;
|
|
107
|
+
};
|
|
108
|
+
startingPoint: {
|
|
109
|
+
type: (DateConstructor | NumberConstructor | StringConstructor)[];
|
|
110
|
+
default: null;
|
|
111
|
+
};
|
|
112
|
+
endingPoint: {
|
|
113
|
+
type: (DateConstructor | NumberConstructor | StringConstructor)[];
|
|
114
|
+
default: null;
|
|
115
|
+
};
|
|
116
|
+
taskMapping: {
|
|
117
|
+
type: ObjectConstructor;
|
|
118
|
+
default: () => import("./KGantt.logic.js").IGanttTaskMapping;
|
|
119
|
+
};
|
|
120
|
+
editable: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
snapTo: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
default: string;
|
|
127
|
+
};
|
|
128
|
+
resourceTypeField: {
|
|
129
|
+
type: StringConstructor;
|
|
130
|
+
default: string;
|
|
131
|
+
};
|
|
132
|
+
taskTypeField: {
|
|
133
|
+
type: StringConstructor;
|
|
134
|
+
default: string;
|
|
135
|
+
};
|
|
136
|
+
mode: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
default: string;
|
|
139
|
+
};
|
|
140
|
+
cellSlots: {
|
|
141
|
+
type: ObjectConstructor;
|
|
142
|
+
default: () => {};
|
|
143
|
+
};
|
|
144
|
+
headerSlots: {
|
|
145
|
+
type: ObjectConstructor;
|
|
146
|
+
default: () => {};
|
|
147
|
+
};
|
|
148
|
+
}>> & Readonly<{
|
|
149
|
+
"onUpdate:selectedRows"?: ((...args: any[]) => any) | undefined;
|
|
150
|
+
"onUpdate:selectAll"?: ((...args: any[]) => any) | undefined;
|
|
151
|
+
"onUpdate:task"?: ((...args: any[]) => any) | undefined;
|
|
152
|
+
"onUpdate:startingPoint"?: ((...args: any[]) => any) | undefined;
|
|
153
|
+
"onUpdate:endingPoint"?: ((...args: any[]) => any) | undefined;
|
|
154
|
+
}>, {
|
|
155
|
+
mode: string;
|
|
156
|
+
bulkActions: unknown[];
|
|
157
|
+
rowActions: unknown[];
|
|
158
|
+
cellSlots: Record<string, any>;
|
|
159
|
+
headerSlots: Record<string, any>;
|
|
160
|
+
startDate: string | number | Date;
|
|
161
|
+
endDate: string | number | Date;
|
|
162
|
+
editable: boolean;
|
|
163
|
+
snapTo: string;
|
|
164
|
+
resourceTypeField: string;
|
|
165
|
+
treeColumnIndex: number;
|
|
166
|
+
taskTypeField: string;
|
|
167
|
+
endingPoint: string | number | Date;
|
|
168
|
+
startingPoint: string | number | Date;
|
|
169
|
+
taskMapping: Record<string, any>;
|
|
170
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
171
|
+
declare const _default: typeof __VLS_export;
|
|
172
|
+
export default _default;
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import type { IKDatatableAction } from '@katlux/providers';
|
|
2
|
+
import type { ITreeViewColumn, IRowAction } from '../KTreeView/KTreeView.logic.js';
|
|
3
|
+
/**
|
|
4
|
+
* A single task (time block) assigned to a resource.
|
|
5
|
+
* Resources can have multiple tasks displayed as bars on the timeline.
|
|
6
|
+
*/
|
|
7
|
+
export interface IGanttTask {
|
|
8
|
+
id: string | number;
|
|
9
|
+
title: string;
|
|
10
|
+
startDate: Date | string | number;
|
|
11
|
+
endDate: Date | string | number;
|
|
12
|
+
color?: string;
|
|
13
|
+
appearance?: 'filled' | 'bordered' | 'dashed' | 'shaded';
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A resource is a row in the Gantt chart (e.g., a person, machine, team).
|
|
18
|
+
* It can optionally have child resources (nested) and has a `tasks` array
|
|
19
|
+
* representing the work assigned to it.
|
|
20
|
+
*/
|
|
21
|
+
export interface IGanttResource {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Mapping configuration for where to find task fields in the resource data.
|
|
26
|
+
*/
|
|
27
|
+
export interface IGanttTaskMapping {
|
|
28
|
+
/** Field on the resource that contains the tasks array (default: 'tasks') */
|
|
29
|
+
tasksField?: string;
|
|
30
|
+
/** Field on each task for start date (default: 'startDate') */
|
|
31
|
+
startDate?: string;
|
|
32
|
+
/** Field on each task for end date (default: 'endDate') */
|
|
33
|
+
endDate?: string;
|
|
34
|
+
/** Field on each task for display color (default: 'color') */
|
|
35
|
+
color?: string;
|
|
36
|
+
/** Field on each task for display title (default: 'title') */
|
|
37
|
+
title?: string;
|
|
38
|
+
/** Field on each task for its type constraints (default: 'type') */
|
|
39
|
+
taskTypeField?: string;
|
|
40
|
+
/** Field on each task for its visual appearance (default: 'appearance') */
|
|
41
|
+
appearanceField?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface KGanttProps {
|
|
44
|
+
dataProvider: any;
|
|
45
|
+
columns: ITreeViewColumn[];
|
|
46
|
+
treeColumnIndex?: number;
|
|
47
|
+
bulkActions?: IKDatatableAction[];
|
|
48
|
+
rowActions?: IRowAction[];
|
|
49
|
+
startDate?: Date | string | number;
|
|
50
|
+
endDate?: Date | string | number;
|
|
51
|
+
/** @deprecated use startingPoint and endingPoint */
|
|
52
|
+
startingPoint?: Date | string | number;
|
|
53
|
+
endingPoint?: Date | string | number;
|
|
54
|
+
taskMapping?: IGanttTaskMapping;
|
|
55
|
+
editable?: boolean;
|
|
56
|
+
snapTo?: string;
|
|
57
|
+
resourceTypeField?: string;
|
|
58
|
+
taskTypeField?: string;
|
|
59
|
+
/** 'date' (Standard calendar) or 'numeric' (Plain numbers) */
|
|
60
|
+
mode?: 'date' | 'numeric';
|
|
61
|
+
}
|
|
62
|
+
export declare const KGanttDefaultProps: {
|
|
63
|
+
dataProvider: {
|
|
64
|
+
type: ObjectConstructor;
|
|
65
|
+
required: boolean;
|
|
66
|
+
};
|
|
67
|
+
columns: {
|
|
68
|
+
type: ArrayConstructor;
|
|
69
|
+
required: boolean;
|
|
70
|
+
};
|
|
71
|
+
treeColumnIndex: {
|
|
72
|
+
type: NumberConstructor;
|
|
73
|
+
default: number;
|
|
74
|
+
};
|
|
75
|
+
bulkActions: {
|
|
76
|
+
type: ArrayConstructor;
|
|
77
|
+
default: () => never[];
|
|
78
|
+
};
|
|
79
|
+
rowActions: {
|
|
80
|
+
type: ArrayConstructor;
|
|
81
|
+
default: () => never[];
|
|
82
|
+
};
|
|
83
|
+
startDate: {
|
|
84
|
+
type: (DateConstructor | NumberConstructor | StringConstructor)[];
|
|
85
|
+
default: null;
|
|
86
|
+
};
|
|
87
|
+
endDate: {
|
|
88
|
+
type: (DateConstructor | NumberConstructor | StringConstructor)[];
|
|
89
|
+
default: null;
|
|
90
|
+
};
|
|
91
|
+
startingPoint: {
|
|
92
|
+
type: (DateConstructor | NumberConstructor | StringConstructor)[];
|
|
93
|
+
default: null;
|
|
94
|
+
};
|
|
95
|
+
endingPoint: {
|
|
96
|
+
type: (DateConstructor | NumberConstructor | StringConstructor)[];
|
|
97
|
+
default: null;
|
|
98
|
+
};
|
|
99
|
+
taskMapping: {
|
|
100
|
+
type: ObjectConstructor;
|
|
101
|
+
default: () => IGanttTaskMapping;
|
|
102
|
+
};
|
|
103
|
+
editable: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
snapTo: {
|
|
108
|
+
type: StringConstructor;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
resourceTypeField: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
taskTypeField: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
mode: {
|
|
120
|
+
type: StringConstructor;
|
|
121
|
+
default: string;
|
|
122
|
+
};
|
|
123
|
+
cellSlots: {
|
|
124
|
+
type: ObjectConstructor;
|
|
125
|
+
default: () => {};
|
|
126
|
+
};
|
|
127
|
+
headerSlots: {
|
|
128
|
+
type: ObjectConstructor;
|
|
129
|
+
default: () => {};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
export declare function useKGanttLogic(props: KGanttProps): {
|
|
133
|
+
globalDateRange: import("vue").ComputedRef<{
|
|
134
|
+
start: number;
|
|
135
|
+
end: number;
|
|
136
|
+
}>;
|
|
137
|
+
totalDuration: import("vue").ComputedRef<number>;
|
|
138
|
+
resolvedMapping: import("vue").ComputedRef<{
|
|
139
|
+
tasksField: string;
|
|
140
|
+
startDate: string;
|
|
141
|
+
endDate: string;
|
|
142
|
+
color: string;
|
|
143
|
+
title: string;
|
|
144
|
+
taskTypeField: string;
|
|
145
|
+
appearanceField: string;
|
|
146
|
+
}>;
|
|
147
|
+
getTasksForRow: (row: any) => IGanttTask[];
|
|
148
|
+
getTaskStyle: (task: any) => {
|
|
149
|
+
display: string;
|
|
150
|
+
left?: undefined;
|
|
151
|
+
width?: undefined;
|
|
152
|
+
'--task-color'?: undefined;
|
|
153
|
+
} | {
|
|
154
|
+
left: string;
|
|
155
|
+
width: string;
|
|
156
|
+
'--task-color': any;
|
|
157
|
+
display?: undefined;
|
|
158
|
+
};
|
|
159
|
+
moveTime: (delta: number, startingPoint: any, endingPoint: any) => {
|
|
160
|
+
startingPoint: string;
|
|
161
|
+
endingPoint: string;
|
|
162
|
+
} | {
|
|
163
|
+
startingPoint: number;
|
|
164
|
+
endingPoint: number;
|
|
165
|
+
};
|
|
166
|
+
zoom: (factor: number, startingPoint: any, endingPoint: any) => {
|
|
167
|
+
startingPoint: string;
|
|
168
|
+
endingPoint: string;
|
|
169
|
+
} | {
|
|
170
|
+
startingPoint: number;
|
|
171
|
+
endingPoint: number;
|
|
172
|
+
} | null;
|
|
173
|
+
selectedRows: any;
|
|
174
|
+
selectAll: any;
|
|
175
|
+
};
|
|
176
|
+
export interface IGanttMarker {
|
|
177
|
+
label: string;
|
|
178
|
+
position: number;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Generates ruler/grid markers based on a range.
|
|
182
|
+
* Supports both Date objects/timestamps and raw numbers.
|
|
183
|
+
*/
|
|
184
|
+
export declare function getGanttMarkers(start: number, end: number, mode?: 'date' | 'numeric'): IGanttMarker[];
|
|
185
|
+
/**
|
|
186
|
+
* Calculates the minimum width of the Gantt timeline based on markers and min marker width.
|
|
187
|
+
*/
|
|
188
|
+
export declare function calculateGanttMinWidth(startMs: number, endMs: number, minMarkerWidth?: number, mode?: 'date' | 'numeric'): string;
|
|
189
|
+
export declare function getSnapMs(snapTo: string): number;
|
|
190
|
+
export declare function isTaskOverlapping(task: any, tasks: any[], startDateField: string, endDateField: string): boolean;
|