@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,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
placeholder: string;
|
|
3
|
+
rows: number;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_ModelProps = {
|
|
6
|
+
'text'?: string;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:text": (value: string | undefined) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
+
"onUpdate:text"?: ((value: string | undefined) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<template lang="pug">
|
|
2
|
+
textarea.KTextarea(v-model="text" :placeholder="placeholder" :rows="rows")
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
const text = defineModel("text", { type: String });
|
|
7
|
+
defineProps({
|
|
8
|
+
placeholder: { type: String, required: true },
|
|
9
|
+
rows: { type: Number, required: true }
|
|
10
|
+
});
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<style scoped>
|
|
14
|
+
.KTextarea {
|
|
15
|
+
border: var(--input-border);
|
|
16
|
+
border-radius: var(--input-border-radius);
|
|
17
|
+
background-color: var(--neutral-50);
|
|
18
|
+
padding: var(--component-gap);
|
|
19
|
+
font-family: inherit;
|
|
20
|
+
font-size: 14px;
|
|
21
|
+
resize: vertical;
|
|
22
|
+
outline: none;
|
|
23
|
+
width: 100%;
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
}
|
|
26
|
+
.KTextarea:focus {
|
|
27
|
+
border-color: var(--input-focus-border-color);
|
|
28
|
+
}
|
|
29
|
+
</style>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
placeholder: string;
|
|
3
|
+
rows: number;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_ModelProps = {
|
|
6
|
+
'text'?: string;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:text": (value: string | undefined) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
+
"onUpdate:text"?: ((value: string | undefined) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
text: string;
|
|
3
|
+
showClearIcon: boolean;
|
|
4
|
+
clear: () => void;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
8
|
+
"update:text": (value: string) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
"onUpdate:text"?: ((value: string) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<template lang="pug">
|
|
2
|
+
KGrid(align="center" noGap).KTextbox
|
|
3
|
+
input(type="text" v-model="text" :placeholder="placeholder")
|
|
4
|
+
KIcon(v-if="showClearIcon" @click="clear" iconname="close" width="12" height="12").closeIcon
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script setup>
|
|
8
|
+
const props = defineProps({
|
|
9
|
+
text: { type: String, required: true },
|
|
10
|
+
showClearIcon: { type: Boolean, required: true },
|
|
11
|
+
clear: { type: Function, required: true },
|
|
12
|
+
placeholder: { type: String, required: true }
|
|
13
|
+
});
|
|
14
|
+
const emit = defineEmits(["update:text"]);
|
|
15
|
+
const text = computed({
|
|
16
|
+
get: () => props.text,
|
|
17
|
+
set: (value) => emit("update:text", value)
|
|
18
|
+
});
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<style scoped>
|
|
22
|
+
.KTextbox {
|
|
23
|
+
border: var(--input-border);
|
|
24
|
+
border-radius: var(--input-border-radius);
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
background-color: var(--neutral-50);
|
|
27
|
+
height: 40px;
|
|
28
|
+
}
|
|
29
|
+
.KTextbox input {
|
|
30
|
+
background-color: var(--neutral-50);
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
flex-grow: 1;
|
|
33
|
+
padding: var(--component-gap);
|
|
34
|
+
border: none;
|
|
35
|
+
outline: none;
|
|
36
|
+
}
|
|
37
|
+
.KTextbox .closeIcon {
|
|
38
|
+
padding-right: var(--component-gap);
|
|
39
|
+
color: var(--icon-color-medium);
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
}
|
|
42
|
+
.KTextbox .closeIcon:hover {
|
|
43
|
+
color: var(--icon-color-dark);
|
|
44
|
+
}
|
|
45
|
+
</style>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
text: string;
|
|
3
|
+
showClearIcon: boolean;
|
|
4
|
+
clear: () => void;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
8
|
+
"update:text": (value: string) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
"onUpdate:text"?: ((value: string) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
visibleRows: any[];
|
|
4
|
+
expandedNodes: Set<string | number>;
|
|
5
|
+
labelField: string;
|
|
6
|
+
iconField: string;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
multiSelect: boolean;
|
|
9
|
+
isNodeSelected: (node: any) => boolean;
|
|
10
|
+
toggleNode: (id: string | number) => void;
|
|
11
|
+
selectable: boolean;
|
|
12
|
+
dataProvider?: {
|
|
13
|
+
loading: Ref<boolean>;
|
|
14
|
+
initialLoad?: Ref<boolean>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
18
|
+
select: (row: any) => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
onSelect?: ((row: any) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
<template lang="pug">
|
|
2
|
+
.KTree
|
|
3
|
+
KLoader(:loading="isLoading" overlay)
|
|
4
|
+
.tree-list
|
|
5
|
+
.tree-node(
|
|
6
|
+
v-for="row in visibleRows"
|
|
7
|
+
:key="row[idKey] || row.id"
|
|
8
|
+
:class="{ 'has-children': row.__treeNode?.hasChildren }"
|
|
9
|
+
:style="{ paddingLeft: ((row.__treeNode?.depth || 0) * 20) + 'px' }"
|
|
10
|
+
)
|
|
11
|
+
.node-content
|
|
12
|
+
// Toggle
|
|
13
|
+
.tree-toggle(
|
|
14
|
+
v-if="row.__treeNode?.hasChildren"
|
|
15
|
+
@click="toggleNode(row.__treeNode?.id)"
|
|
16
|
+
:class="{ expanded: row.__treeNode?.isExpanded }"
|
|
17
|
+
)
|
|
18
|
+
KIcon(iconname="chevron" :width="12" :height="12" :rotate="row.__treeNode?.isExpanded ? '90' : '0'")
|
|
19
|
+
|
|
20
|
+
.tree-spacer(v-else)
|
|
21
|
+
|
|
22
|
+
// Content
|
|
23
|
+
.node-label(@click="onNodeClick(row)")
|
|
24
|
+
.selection-control(v-if="selectable")
|
|
25
|
+
// Always show selection control if selectable (implied by usage in picker)
|
|
26
|
+
// In future we might want a 'selectable' prop on row or tree
|
|
27
|
+
KCheckbox(
|
|
28
|
+
:modelValue="isNodeSelected(row)"
|
|
29
|
+
@update:modelValue="onNodeClick(row)"
|
|
30
|
+
@click.stop
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
slot(name="item" :node="row.__treeNode" :data="row")
|
|
34
|
+
slot(name="default" :node="row.__treeNode" :data="row")
|
|
35
|
+
// Default content
|
|
36
|
+
.default-item
|
|
37
|
+
KIcon(v-if="iconField && row[iconField]" :iconname="row[iconField]" :width="16" :height="16")
|
|
38
|
+
span {{ row[labelField] }}
|
|
39
|
+
</template>
|
|
40
|
+
|
|
41
|
+
<script setup>
|
|
42
|
+
import { computed } from "vue";
|
|
43
|
+
const props = defineProps({
|
|
44
|
+
visibleRows: { type: Array, required: true },
|
|
45
|
+
expandedNodes: { type: Set, required: true },
|
|
46
|
+
labelField: { type: String, required: true },
|
|
47
|
+
iconField: { type: String, required: true },
|
|
48
|
+
disabled: { type: Boolean, required: true },
|
|
49
|
+
multiSelect: { type: Boolean, required: true },
|
|
50
|
+
isNodeSelected: { type: Function, required: true },
|
|
51
|
+
toggleNode: { type: Function, required: true },
|
|
52
|
+
selectable: { type: Boolean, required: true },
|
|
53
|
+
dataProvider: { type: Object, required: false }
|
|
54
|
+
});
|
|
55
|
+
const idKey = "id";
|
|
56
|
+
const emit = defineEmits(["select"]);
|
|
57
|
+
function onNodeClick(row) {
|
|
58
|
+
if (!props.disabled) {
|
|
59
|
+
emit("select", row);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
const isLoading = computed(() => props.dataProvider?.loading?.value || props.dataProvider?.initialLoad?.value || false);
|
|
63
|
+
</script>
|
|
64
|
+
|
|
65
|
+
<style scoped>
|
|
66
|
+
.KTree {
|
|
67
|
+
width: 100%;
|
|
68
|
+
position: relative;
|
|
69
|
+
}
|
|
70
|
+
.KTree .tree-list {
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
}
|
|
74
|
+
.KTree .tree-node {
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
padding: 4px 8px;
|
|
78
|
+
min-height: 32px;
|
|
79
|
+
transition: background-color 0.2s;
|
|
80
|
+
}
|
|
81
|
+
.KTree .tree-node:hover {
|
|
82
|
+
background-color: var(--hover-bg, #f5f5f5);
|
|
83
|
+
}
|
|
84
|
+
.KTree .tree-node .node-content {
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
width: 100%;
|
|
88
|
+
gap: 4px;
|
|
89
|
+
}
|
|
90
|
+
.KTree .tree-node .tree-toggle {
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
display: inline-flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
justify-content: center;
|
|
95
|
+
width: 20px;
|
|
96
|
+
height: 20px;
|
|
97
|
+
border-radius: 4px;
|
|
98
|
+
flex-shrink: 0;
|
|
99
|
+
}
|
|
100
|
+
.KTree .tree-node .tree-toggle:hover {
|
|
101
|
+
background-color: var(--hover-light, #e0e0e0);
|
|
102
|
+
}
|
|
103
|
+
.KTree .tree-node .tree-spacer {
|
|
104
|
+
width: 20px;
|
|
105
|
+
height: 20px;
|
|
106
|
+
flex-shrink: 0;
|
|
107
|
+
}
|
|
108
|
+
.KTree .tree-node .node-label {
|
|
109
|
+
flex: 1;
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
overflow: hidden;
|
|
113
|
+
text-overflow: ellipsis;
|
|
114
|
+
white-space: nowrap;
|
|
115
|
+
}
|
|
116
|
+
.KTree .tree-node .selection-control {
|
|
117
|
+
margin-right: 8px;
|
|
118
|
+
display: flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
}
|
|
121
|
+
.KTree .tree-node .default-item {
|
|
122
|
+
display: flex;
|
|
123
|
+
align-items: center;
|
|
124
|
+
gap: 6px;
|
|
125
|
+
}
|
|
126
|
+
</style>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
visibleRows: any[];
|
|
4
|
+
expandedNodes: Set<string | number>;
|
|
5
|
+
labelField: string;
|
|
6
|
+
iconField: string;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
multiSelect: boolean;
|
|
9
|
+
isNodeSelected: (node: any) => boolean;
|
|
10
|
+
toggleNode: (id: string | number) => void;
|
|
11
|
+
selectable: boolean;
|
|
12
|
+
dataProvider?: {
|
|
13
|
+
loading: Ref<boolean>;
|
|
14
|
+
initialLoad?: Ref<boolean>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
18
|
+
select: (row: any) => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
onSelect?: ((row: any) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
dataProvider: any;
|
|
3
|
+
idKey?: string;
|
|
4
|
+
parentKey?: string;
|
|
5
|
+
iconField?: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
isOptionsOpen: boolean;
|
|
8
|
+
labelField: string;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
searchbox: boolean;
|
|
11
|
+
multiSelect: boolean;
|
|
12
|
+
searchtext: string;
|
|
13
|
+
filteredOptions: any[];
|
|
14
|
+
getSelectedContent: () => any[];
|
|
15
|
+
toggleDropdown: () => void;
|
|
16
|
+
closeDropdown: () => void;
|
|
17
|
+
selectItem: (option: any) => void;
|
|
18
|
+
isSelected: (option: any) => boolean;
|
|
19
|
+
loading: boolean;
|
|
20
|
+
closeOnSelect: boolean;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
23
|
+
"update:searchtext": (value: string) => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
+
"onUpdate:searchtext"?: ((value: string) => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
<template lang="pug">
|
|
2
|
+
KCombobox(
|
|
3
|
+
:disabled="disabled"
|
|
4
|
+
:isOptionsOpen="isOptionsOpen"
|
|
5
|
+
:labelField="labelField"
|
|
6
|
+
:placeholder="placeholder"
|
|
7
|
+
:searchbox="searchbox"
|
|
8
|
+
:searchtext="searchtext"
|
|
9
|
+
:filteredOptions="filteredOptions"
|
|
10
|
+
:getSelectedContent="getSelectedContent"
|
|
11
|
+
:toggleDropdown="toggleDropdown"
|
|
12
|
+
:closeDropdown="closeDropdown"
|
|
13
|
+
:selectItem="selectItem"
|
|
14
|
+
:isSelected="isSelected"
|
|
15
|
+
:loading="loading"
|
|
16
|
+
)
|
|
17
|
+
template(#default)
|
|
18
|
+
.KTreePicker__tree-container
|
|
19
|
+
.KTreePicker__search(v-if="searchbox" style="margin-bottom: 10px")
|
|
20
|
+
KTextbox(
|
|
21
|
+
v-model="searchtextModel"
|
|
22
|
+
placeholder="Search..."
|
|
23
|
+
showClear
|
|
24
|
+
)
|
|
25
|
+
KTree(
|
|
26
|
+
:dataProvider="dataProvider"
|
|
27
|
+
:idKey="idKey"
|
|
28
|
+
:parentKey="parentKey"
|
|
29
|
+
:labelField="labelField"
|
|
30
|
+
:iconField="iconField"
|
|
31
|
+
:loading="loading"
|
|
32
|
+
:multiSelect="multiSelect"
|
|
33
|
+
:isNodeSelected="isSelected"
|
|
34
|
+
:searchtext="searchtext"
|
|
35
|
+
:selectable="true"
|
|
36
|
+
@select="onTreeSelect"
|
|
37
|
+
)
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<script setup>
|
|
41
|
+
import { computed } from "vue";
|
|
42
|
+
const props = defineProps({
|
|
43
|
+
dataProvider: { type: null, required: true },
|
|
44
|
+
idKey: { type: String, required: false },
|
|
45
|
+
parentKey: { type: String, required: false },
|
|
46
|
+
iconField: { type: String, required: false },
|
|
47
|
+
disabled: { type: Boolean, required: true },
|
|
48
|
+
isOptionsOpen: { type: Boolean, required: true },
|
|
49
|
+
labelField: { type: String, required: true },
|
|
50
|
+
placeholder: { type: String, required: true },
|
|
51
|
+
searchbox: { type: Boolean, required: true },
|
|
52
|
+
multiSelect: { type: Boolean, required: true },
|
|
53
|
+
searchtext: { type: String, required: true },
|
|
54
|
+
filteredOptions: { type: Array, required: true },
|
|
55
|
+
getSelectedContent: { type: Function, required: true },
|
|
56
|
+
toggleDropdown: { type: Function, required: true },
|
|
57
|
+
closeDropdown: { type: Function, required: true },
|
|
58
|
+
selectItem: { type: Function, required: true },
|
|
59
|
+
isSelected: { type: Function, required: true },
|
|
60
|
+
loading: { type: Boolean, required: true },
|
|
61
|
+
closeOnSelect: { type: Boolean, required: true }
|
|
62
|
+
});
|
|
63
|
+
const emit = defineEmits(["update:searchtext"]);
|
|
64
|
+
const searchtextModel = computed({
|
|
65
|
+
get: () => props.searchtext,
|
|
66
|
+
set: (value) => emit("update:searchtext", value)
|
|
67
|
+
});
|
|
68
|
+
function onTreeSelect(node) {
|
|
69
|
+
props.selectItem(node);
|
|
70
|
+
}
|
|
71
|
+
</script>
|
|
72
|
+
|
|
73
|
+
<style scoped>
|
|
74
|
+
.KTreePicker__tree-container {
|
|
75
|
+
padding: 10px;
|
|
76
|
+
max-height: 400px;
|
|
77
|
+
overflow-y: auto;
|
|
78
|
+
min-width: 250px;
|
|
79
|
+
}
|
|
80
|
+
</style>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
dataProvider: any;
|
|
3
|
+
idKey?: string;
|
|
4
|
+
parentKey?: string;
|
|
5
|
+
iconField?: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
isOptionsOpen: boolean;
|
|
8
|
+
labelField: string;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
searchbox: boolean;
|
|
11
|
+
multiSelect: boolean;
|
|
12
|
+
searchtext: string;
|
|
13
|
+
filteredOptions: any[];
|
|
14
|
+
getSelectedContent: () => any[];
|
|
15
|
+
toggleDropdown: () => void;
|
|
16
|
+
closeDropdown: () => void;
|
|
17
|
+
selectItem: (option: any) => void;
|
|
18
|
+
isSelected: (option: any) => boolean;
|
|
19
|
+
loading: boolean;
|
|
20
|
+
closeOnSelect: boolean;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
23
|
+
"update:searchtext": (value: string) => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
+
"onUpdate:searchtext"?: ((value: string) => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value: any;
|
|
3
|
+
depth: number;
|
|
4
|
+
hasChildren: boolean;
|
|
5
|
+
isExpanded: boolean;
|
|
6
|
+
toggle: () => void;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<template lang="pug">
|
|
2
|
+
.tree-cell(:style="{ paddingLeft: depth * 24 + 'px' }")
|
|
3
|
+
.tree-toggle(v-if="hasChildren" @click.stop="toggle")
|
|
4
|
+
KIcon(iconname="chevron" :width="12" :height="12" :rotate="isExpanded ? '90' : '0'")
|
|
5
|
+
.tree-spacer(v-else)
|
|
6
|
+
span.tree-content {{ value }}
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script setup>
|
|
10
|
+
defineProps({
|
|
11
|
+
value: { type: null, required: true },
|
|
12
|
+
depth: { type: Number, required: true },
|
|
13
|
+
hasChildren: { type: Boolean, required: true },
|
|
14
|
+
isExpanded: { type: Boolean, required: true },
|
|
15
|
+
toggle: { type: Function, required: true }
|
|
16
|
+
});
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<style scoped>
|
|
20
|
+
.tree-cell {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: 4px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.tree-toggle {
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
width: 20px;
|
|
32
|
+
height: 20px;
|
|
33
|
+
border-radius: 2px;
|
|
34
|
+
flex-shrink: 0;
|
|
35
|
+
}
|
|
36
|
+
.tree-toggle:hover {
|
|
37
|
+
background-color: var(--hover-light, #e0e0e0);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.tree-spacer {
|
|
41
|
+
width: 20px;
|
|
42
|
+
flex-shrink: 0;
|
|
43
|
+
display: inline-block;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.tree-content {
|
|
47
|
+
flex: 1;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
text-overflow: ellipsis;
|
|
50
|
+
white-space: nowrap;
|
|
51
|
+
}
|
|
52
|
+
</style>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value: any;
|
|
3
|
+
depth: number;
|
|
4
|
+
hasChildren: boolean;
|
|
5
|
+
isExpanded: boolean;
|
|
6
|
+
toggle: () => void;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ITreeViewColumn, IRowAction } from '../../../../components/KTreeView/KTreeView.logic.js';
|
|
2
|
+
import type { IKDatatableAction } from '@katlux/providers';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
dataProvider: any;
|
|
5
|
+
columns: ITreeViewColumn[];
|
|
6
|
+
treeColumnIndex?: number;
|
|
7
|
+
bulkActions?: IKDatatableAction[];
|
|
8
|
+
rowActions?: IRowAction[];
|
|
9
|
+
showCheckboxes: boolean;
|
|
10
|
+
selectedRows: any[];
|
|
11
|
+
selectAll: boolean;
|
|
12
|
+
expandedNodes: Set<string | number>;
|
|
13
|
+
toggleNode: (id: string | number) => void;
|
|
14
|
+
toggleRowSelection: (row: any) => void;
|
|
15
|
+
toggleSelectAll: () => void;
|
|
16
|
+
isRowSelected: (row: any) => boolean;
|
|
17
|
+
cellSlots?: Record<string, any>;
|
|
18
|
+
headerSlots?: Record<string, any>;
|
|
19
|
+
columnHeaders?: Record<string, string>;
|
|
20
|
+
columnWidths?: Record<string, string>;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<template lang="pug">
|
|
2
|
+
.KTreeView
|
|
3
|
+
KDatatable(
|
|
4
|
+
:dataProvider="dataProvider"
|
|
5
|
+
:visibleFields="visibleFields"
|
|
6
|
+
:bulkActions="bulkActions"
|
|
7
|
+
:rowActions="rowActions"
|
|
8
|
+
:cellSlots="cellSlots"
|
|
9
|
+
:headerSlots="headerSlots"
|
|
10
|
+
:columnHeaders="columnHeaders"
|
|
11
|
+
:columnWidths="columnWidths"
|
|
12
|
+
)
|
|
13
|
+
//- Tree column cell: rendered natively via dynamic slot name — no h() needed
|
|
14
|
+
template(v-if="treeColumnField" v-slot:[treeCellSlotName]="slotProps")
|
|
15
|
+
KTreeCell(
|
|
16
|
+
:value="slotProps.value"
|
|
17
|
+
:depth="slotProps.row.__treeNode?.depth ?? 0"
|
|
18
|
+
:hasChildren="slotProps.row.__treeNode?.hasChildren ?? false"
|
|
19
|
+
:isExpanded="slotProps.row.__treeNode?.isExpanded ?? false"
|
|
20
|
+
:toggle="() => toggleNode(slotProps.row.__treeNode?.id)"
|
|
21
|
+
)
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script setup>
|
|
25
|
+
import { computed } from "vue";
|
|
26
|
+
import KTreeCell from "./KTreeCell.vue";
|
|
27
|
+
const props = defineProps({
|
|
28
|
+
dataProvider: { type: null, required: true },
|
|
29
|
+
columns: { type: Array, required: true },
|
|
30
|
+
treeColumnIndex: { type: Number, required: false },
|
|
31
|
+
bulkActions: { type: Array, required: false },
|
|
32
|
+
rowActions: { type: Array, required: false },
|
|
33
|
+
showCheckboxes: { type: Boolean, required: true },
|
|
34
|
+
selectedRows: { type: Array, required: true },
|
|
35
|
+
selectAll: { type: Boolean, required: true },
|
|
36
|
+
expandedNodes: { type: Set, required: true },
|
|
37
|
+
toggleNode: { type: Function, required: true },
|
|
38
|
+
toggleRowSelection: { type: Function, required: true },
|
|
39
|
+
toggleSelectAll: { type: Function, required: true },
|
|
40
|
+
isRowSelected: { type: Function, required: true },
|
|
41
|
+
cellSlots: { type: Object, required: false },
|
|
42
|
+
headerSlots: { type: Object, required: false },
|
|
43
|
+
columnHeaders: { type: Object, required: false },
|
|
44
|
+
columnWidths: { type: Object, required: false }
|
|
45
|
+
});
|
|
46
|
+
const visibleFields = computed(() => props.columns.map((col) => col.field));
|
|
47
|
+
const treeColumnField = computed(() => props.columns[props.treeColumnIndex ?? 0]?.field);
|
|
48
|
+
const treeCellSlotName = computed(() => treeColumnField.value ? `cell-${treeColumnField.value}` : null);
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<style scoped>
|
|
52
|
+
.KTreeView {
|
|
53
|
+
width: 100%;
|
|
54
|
+
}
|
|
55
|
+
</style>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ITreeViewColumn, IRowAction } from '../../../../components/KTreeView/KTreeView.logic.js';
|
|
2
|
+
import type { IKDatatableAction } from '@katlux/providers';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
dataProvider: any;
|
|
5
|
+
columns: ITreeViewColumn[];
|
|
6
|
+
treeColumnIndex?: number;
|
|
7
|
+
bulkActions?: IKDatatableAction[];
|
|
8
|
+
rowActions?: IRowAction[];
|
|
9
|
+
showCheckboxes: boolean;
|
|
10
|
+
selectedRows: any[];
|
|
11
|
+
selectAll: boolean;
|
|
12
|
+
expandedNodes: Set<string | number>;
|
|
13
|
+
toggleNode: (id: string | number) => void;
|
|
14
|
+
toggleRowSelection: (row: any) => void;
|
|
15
|
+
toggleSelectAll: () => void;
|
|
16
|
+
isRowSelected: (row: any) => boolean;
|
|
17
|
+
cellSlots?: Record<string, any>;
|
|
18
|
+
headerSlots?: Record<string, any>;
|
|
19
|
+
columnHeaders?: Record<string, string>;
|
|
20
|
+
columnWidths?: Record<string, string>;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|