@katlux/toolkit 0.1.0-alpha.85
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/LICENSE +200 -0
- package/README.md +50 -0
- package/dist/compiled/composables/useDebounce.mjs +11 -0
- package/dist/compiled/composables/useFilterLogic.mjs +170 -0
- package/dist/compiled/composables/usePresetComponent.mjs +47 -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 +106 -0
- package/dist/module.cjs +82 -0
- package/dist/module.d.cts +5 -0
- package/dist/module.d.mts +5 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +79 -0
- 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 +28 -0
- package/dist/runtime/components/KBulkActions/KBulkActions.logic.js +31 -0
- package/dist/runtime/components/KButton/KButton.global.d.vue.ts +65 -0
- package/dist/runtime/components/KButton/KButton.global.vue +25 -0
- package/dist/runtime/components/KButton/KButton.global.vue.d.ts +65 -0
- package/dist/runtime/components/KButton/KButton.logic.d.ts +60 -0
- package/dist/runtime/components/KButton/KButton.logic.js +46 -0
- package/dist/runtime/components/KCalendar/KCalendar.global.d.vue.ts +67 -0
- package/dist/runtime/components/KCalendar/KCalendar.global.vue +39 -0
- package/dist/runtime/components/KCalendar/KCalendar.global.vue.d.ts +67 -0
- package/dist/runtime/components/KCalendar/KCalendar.logic.d.ts +247 -0
- package/dist/runtime/components/KCalendar/KCalendar.logic.js +181 -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 +64 -0
- package/dist/runtime/components/KCheckbox/KCheckbox.global.vue +24 -0
- package/dist/runtime/components/KCheckbox/KCheckbox.global.vue.d.ts +64 -0
- package/dist/runtime/components/KCheckbox/KCheckbox.logic.d.ts +45 -0
- package/dist/runtime/components/KCheckbox/KCheckbox.logic.js +35 -0
- package/dist/runtime/components/KCombobox/KCombobox.global.d.vue.ts +175 -0
- package/dist/runtime/components/KCombobox/KCombobox.global.vue +58 -0
- package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +175 -0
- package/dist/runtime/components/KCombobox/KCombobox.logic.d.ts +115 -0
- package/dist/runtime/components/KCombobox/KCombobox.logic.js +212 -0
- package/dist/runtime/components/KCompositeInput/KCompositeInput.global.d.vue.ts +214 -0
- package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue +55 -0
- package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue.d.ts +214 -0
- package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.d.ts +187 -0
- package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.js +263 -0
- package/dist/runtime/components/KContextMenu/KContextMenu.global.d.vue.ts +55 -0
- package/dist/runtime/components/KContextMenu/KContextMenu.global.vue +28 -0
- package/dist/runtime/components/KContextMenu/KContextMenu.global.vue.d.ts +55 -0
- package/dist/runtime/components/KContextMenu/KContextMenu.logic.d.ts +55 -0
- package/dist/runtime/components/KContextMenu/KContextMenu.logic.js +168 -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 +27 -0
- package/dist/runtime/components/KDatatable/KDatatable.global.vue +50 -0
- package/dist/runtime/components/KDatatable/KDatatable.global.vue.d.ts +27 -0
- package/dist/runtime/components/KDatatable/KDatatable.logic.d.ts +16 -0
- package/dist/runtime/components/KDatatable/KDatatable.logic.js +21 -0
- package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +138 -0
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue +70 -0
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +138 -0
- package/dist/runtime/components/KDatePicker/KDatePicker.logic.d.ts +80 -0
- package/dist/runtime/components/KDatePicker/KDatePicker.logic.js +174 -0
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.d.vue.ts +145 -0
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue +72 -0
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +145 -0
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.d.ts +87 -0
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.js +238 -0
- package/dist/runtime/components/KDropdown/KDropdown.global.d.vue.ts +64 -0
- package/dist/runtime/components/KDropdown/KDropdown.global.vue +32 -0
- package/dist/runtime/components/KDropdown/KDropdown.global.vue.d.ts +64 -0
- package/dist/runtime/components/KDropdown/KDropdown.logic.d.ts +78 -0
- package/dist/runtime/components/KDropdown/KDropdown.logic.js +179 -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 +11 -0
- package/dist/runtime/components/KGrid/KGrid.global.vue +25 -0
- package/dist/runtime/components/KGrid/KGrid.global.vue.d.ts +11 -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 +123 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.global.vue +56 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.global.vue.d.ts +123 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.logic.d.ts +74 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.logic.js +86 -0
- package/dist/runtime/components/KHourSelect/KHourSelect.global.d.vue.ts +64 -0
- package/dist/runtime/components/KHourSelect/KHourSelect.global.vue +31 -0
- package/dist/runtime/components/KHourSelect/KHourSelect.global.vue.d.ts +64 -0
- package/dist/runtime/components/KHourSelect/KHourSelect.logic.d.ts +39 -0
- package/dist/runtime/components/KHourSelect/KHourSelect.logic.js +76 -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 +46 -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 +75 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue +28 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue.d.ts +75 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.d.ts +82 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.js +204 -0
- package/dist/runtime/components/KModal/KModal.global.d.vue.ts +18 -0
- package/dist/runtime/components/KModal/KModal.global.vue +28 -0
- package/dist/runtime/components/KModal/KModal.global.vue.d.ts +18 -0
- package/dist/runtime/components/KModal/KModal.logic.d.ts +16 -0
- package/dist/runtime/components/KModal/KModal.logic.js +25 -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 +10 -0
- package/dist/runtime/components/KPanel/KPanel.global.vue +27 -0
- package/dist/runtime/components/KPanel/KPanel.global.vue.d.ts +10 -0
- package/dist/runtime/components/KPanel/KPanel.logic.d.ts +30 -0
- package/dist/runtime/components/KPanel/KPanel.logic.js +25 -0
- package/dist/runtime/components/KRadiobox/KRadiobox.global.d.vue.ts +58 -0
- package/dist/runtime/components/KRadiobox/KRadiobox.global.vue +24 -0
- package/dist/runtime/components/KRadiobox/KRadiobox.global.vue.d.ts +58 -0
- package/dist/runtime/components/KRadiobox/KRadiobox.logic.d.ts +33 -0
- package/dist/runtime/components/KRadiobox/KRadiobox.logic.js +29 -0
- package/dist/runtime/components/KRangeSlider/KRangeSlider.global.d.vue.ts +75 -0
- package/dist/runtime/components/KRangeSlider/KRangeSlider.global.vue +37 -0
- package/dist/runtime/components/KRangeSlider/KRangeSlider.global.vue.d.ts +75 -0
- package/dist/runtime/components/KRangeSlider/KRangeSlider.logic.d.ts +57 -0
- package/dist/runtime/components/KRangeSlider/KRangeSlider.logic.js +69 -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 +10 -0
- package/dist/runtime/components/KSearchTree/KSearchTree.logic.js +9 -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 +10 -0
- package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.logic.js +9 -0
- package/dist/runtime/components/KSlider/KSlider.global.d.vue.ts +64 -0
- package/dist/runtime/components/KSlider/KSlider.global.vue +32 -0
- package/dist/runtime/components/KSlider/KSlider.global.vue.d.ts +64 -0
- package/dist/runtime/components/KSlider/KSlider.logic.d.ts +50 -0
- package/dist/runtime/components/KSlider/KSlider.logic.js +49 -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 +66 -0
- package/dist/runtime/components/KTextarea/KTextarea.global.vue +22 -0
- package/dist/runtime/components/KTextarea/KTextarea.global.vue.d.ts +66 -0
- package/dist/runtime/components/KTextarea/KTextarea.logic.d.ts +47 -0
- package/dist/runtime/components/KTextarea/KTextarea.logic.js +37 -0
- package/dist/runtime/components/KTextbox/KTextbox.global.d.vue.ts +78 -0
- package/dist/runtime/components/KTextbox/KTextbox.global.vue +24 -0
- package/dist/runtime/components/KTextbox/KTextbox.global.vue.d.ts +78 -0
- package/dist/runtime/components/KTextbox/KTextbox.logic.d.ts +55 -0
- package/dist/runtime/components/KTextbox/KTextbox.logic.js +52 -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/KToast/KToast.global.d.vue.ts +57 -0
- package/dist/runtime/components/KToast/KToast.global.vue +32 -0
- package/dist/runtime/components/KToast/KToast.global.vue.d.ts +57 -0
- package/dist/runtime/components/KToast/KToast.logic.d.ts +34 -0
- package/dist/runtime/components/KToast/KToast.logic.js +47 -0
- package/dist/runtime/components/KTooltip/KTooltip.global.d.vue.ts +33 -0
- package/dist/runtime/components/KTooltip/KTooltip.global.vue +28 -0
- package/dist/runtime/components/KTooltip/KTooltip.global.vue.d.ts +33 -0
- package/dist/runtime/components/KTooltip/KTooltip.logic.d.ts +27 -0
- package/dist/runtime/components/KTooltip/KTooltip.logic.js +82 -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 +186 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue +79 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +186 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.d.ts +114 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.js +93 -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 +75 -0
- package/dist/runtime/components/KTreeView/KTreeView.logic.js +90 -0
- package/dist/runtime/components/MultiTabs/MultiTabs.global.d.vue.ts +23 -0
- package/dist/runtime/components/MultiTabs/MultiTabs.global.vue +27 -0
- package/dist/runtime/components/MultiTabs/MultiTabs.global.vue.d.ts +23 -0
- package/dist/runtime/components/MultiTabs/MultiTabs.logic.d.ts +25 -0
- package/dist/runtime/components/MultiTabs/MultiTabs.logic.js +52 -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 +18 -0
- package/dist/runtime/composables/usePresetComponent.js +47 -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 +230 -0
- package/dist/runtime/presets/default/assets/scss/css-variables.scss +320 -0
- package/dist/runtime/presets/default/assets/scss/docs.css +42 -0
- package/dist/runtime/presets/default/assets/scss/docs.scss +52 -0
- package/dist/runtime/presets/default/assets/scss/index.css +385 -0
- package/dist/runtime/presets/default/assets/scss/index.scss +86 -0
- package/dist/runtime/presets/default/assets/scss/mixins.css +0 -0
- package/dist/runtime/presets/default/assets/scss/mixins.scss +94 -0
- package/dist/runtime/presets/default/assets/scss/reset.css +16 -0
- package/dist/runtime/presets/default/assets/scss/reset.scss +16 -0
- package/dist/runtime/presets/default/assets/svg/arrow-down.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/arrow-left.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/arrow-right.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/arrow-up.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/bell.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/calendar.svg +9 -0
- package/dist/runtime/presets/default/assets/svg/camera.svg +4 -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/clock.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/close.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/copy.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/divide.svg +5 -0
- package/dist/runtime/presets/default/assets/svg/download.svg +5 -0
- package/dist/runtime/presets/default/assets/svg/edit.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/external-link.svg +5 -0
- package/dist/runtime/presets/default/assets/svg/eye-off.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/eye.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/hash.svg +6 -0
- package/dist/runtime/presets/default/assets/svg/heart.svg +3 -0
- package/dist/runtime/presets/default/assets/svg/home.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/image.svg +5 -0
- package/dist/runtime/presets/default/assets/svg/info.svg +5 -0
- package/dist/runtime/presets/default/assets/svg/link.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/lock.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/logout.svg +5 -0
- package/dist/runtime/presets/default/assets/svg/mail.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/map-pin.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/menu.svg +5 -0
- package/dist/runtime/presets/default/assets/svg/message-square.svg +3 -0
- package/dist/runtime/presets/default/assets/svg/minus.svg +3 -0
- package/dist/runtime/presets/default/assets/svg/more-vertical.svg +5 -0
- package/dist/runtime/presets/default/assets/svg/multiply.svg +3 -0
- package/dist/runtime/presets/default/assets/svg/phone.svg +3 -0
- package/dist/runtime/presets/default/assets/svg/plus.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/refresh.svg +5 -0
- package/dist/runtime/presets/default/assets/svg/search.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/settings.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/share.svg +5 -0
- package/dist/runtime/presets/default/assets/svg/shopping-bag.svg +5 -0
- package/dist/runtime/presets/default/assets/svg/star.svg +3 -0
- package/dist/runtime/presets/default/assets/svg/trash.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/type.svg +5 -0
- package/dist/runtime/presets/default/assets/svg/upload.svg +5 -0
- package/dist/runtime/presets/default/assets/svg/user.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/warning.svg +5 -0
- package/dist/runtime/presets/default/components/KAccordion/KAccordion.d.vue.ts +3 -0
- package/dist/runtime/presets/default/components/KAccordion/KAccordion.vue +12 -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 +53 -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 +58 -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 +190 -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 +96 -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 +223 -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 +15 -0
- package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.vue +68 -0
- package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.vue.d.ts +15 -0
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.d.vue.ts +31 -0
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue +147 -0
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue.d.ts +31 -0
- package/dist/runtime/presets/default/components/KCombobox/KComboboxList.d.vue.ts +18 -0
- package/dist/runtime/presets/default/components/KCombobox/KComboboxList.vue +107 -0
- package/dist/runtime/presets/default/components/KCombobox/KComboboxList.vue.d.ts +18 -0
- package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.d.vue.ts +34 -0
- package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.vue +234 -0
- package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.vue.d.ts +34 -0
- package/dist/runtime/presets/default/components/KContextMenu/KContextMenu.d.vue.ts +22 -0
- package/dist/runtime/presets/default/components/KContextMenu/KContextMenu.vue +62 -0
- package/dist/runtime/presets/default/components/KContextMenu/KContextMenu.vue.d.ts +22 -0
- package/dist/runtime/presets/default/components/KDataIterator/KDataIterator.d.vue.ts +24 -0
- package/dist/runtime/presets/default/components/KDataIterator/KDataIterator.vue +66 -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 +25 -0
- package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue +195 -0
- package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue.d.ts +25 -0
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.d.vue.ts +29 -0
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue +68 -0
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue.d.ts +29 -0
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.d.vue.ts +32 -0
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue +99 -0
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue.d.ts +32 -0
- package/dist/runtime/presets/default/components/KDropdown/KDropdown.d.vue.ts +24 -0
- package/dist/runtime/presets/default/components/KDropdown/KDropdown.vue +117 -0
- package/dist/runtime/presets/default/components/KDropdown/KDropdown.vue.d.ts +24 -0
- package/dist/runtime/presets/default/components/KGantt/KGantt.d.vue.ts +49 -0
- package/dist/runtime/presets/default/components/KGantt/KGantt.vue +400 -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 +56 -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 +218 -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 +73 -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 +27 -0
- package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue +73 -0
- package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue.d.ts +27 -0
- package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.d.vue.ts +9 -0
- package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.vue +54 -0
- package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.vue.d.ts +9 -0
- package/dist/runtime/presets/default/components/KIcon/KIcon.d.vue.ts +9 -0
- package/dist/runtime/presets/default/components/KIcon/KIcon.vue +39 -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 +77 -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 +18 -0
- package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue +136 -0
- package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue.d.ts +18 -0
- package/dist/runtime/presets/default/components/KModal/KModal.d.vue.ts +9 -0
- package/dist/runtime/presets/default/components/KModal/KModal.vue +92 -0
- package/dist/runtime/presets/default/components/KModal/KModal.vue.d.ts +9 -0
- package/dist/runtime/presets/default/components/KPagination/KPagination.d.vue.ts +18 -0
- package/dist/runtime/presets/default/components/KPagination/KPagination.vue +72 -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 +15 -0
- package/dist/runtime/presets/default/components/KPanel/KPanel.vue +113 -0
- package/dist/runtime/presets/default/components/KPanel/KPanel.vue.d.ts +15 -0
- package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.d.vue.ts +19 -0
- package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.vue +54 -0
- package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.vue.d.ts +19 -0
- package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.d.vue.ts +20 -0
- package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.vue +191 -0
- package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.vue.d.ts +20 -0
- package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.d.vue.ts +6 -0
- package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.vue +13 -0
- package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.vue.d.ts +6 -0
- package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.d.vue.ts +6 -0
- package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.vue +13 -0
- package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.vue.d.ts +6 -0
- package/dist/runtime/presets/default/components/KSlider/KSlider.d.vue.ts +16 -0
- package/dist/runtime/presets/default/components/KSlider/KSlider.vue +146 -0
- package/dist/runtime/presets/default/components/KSlider/KSlider.vue.d.ts +16 -0
- package/dist/runtime/presets/default/components/KTabs/KTabItem.d.vue.ts +8 -0
- package/dist/runtime/presets/default/components/KTabs/KTabItem.vue +49 -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 +113 -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 +18 -0
- package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue +56 -0
- package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue.d.ts +18 -0
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.d.vue.ts +17 -0
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue +119 -0
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue.d.ts +17 -0
- package/dist/runtime/presets/default/components/KToast/KToast.d.vue.ts +17 -0
- package/dist/runtime/presets/default/components/KToast/KToast.vue +118 -0
- package/dist/runtime/presets/default/components/KToast/KToast.vue.d.ts +17 -0
- package/dist/runtime/presets/default/components/KTooltip/KTooltip.d.vue.ts +16 -0
- package/dist/runtime/presets/default/components/KTooltip/KTooltip.vue +73 -0
- package/dist/runtime/presets/default/components/KTooltip/KTooltip.vue.d.ts +16 -0
- package/dist/runtime/presets/default/components/KTree/KTree.d.vue.ts +23 -0
- package/dist/runtime/presets/default/components/KTree/KTree.vue +149 -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 +35 -0
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue +121 -0
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue.d.ts +35 -0
- package/dist/runtime/presets/default/components/KTreeView/KTreeCell.d.vue.ts +10 -0
- package/dist/runtime/presets/default/components/KTreeView/KTreeCell.vue +53 -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 +62 -0
- package/dist/runtime/presets/default/components/KTreeView/KTreeView.vue.d.ts +24 -0
- package/dist/runtime/presets/default/components/MultiTabs/MultiTabs.d.vue.ts +9 -0
- package/dist/runtime/presets/default/components/MultiTabs/MultiTabs.vue +61 -0
- package/dist/runtime/presets/default/components/MultiTabs/MultiTabs.vue.d.ts +9 -0
- package/dist/runtime/utils/PresetResolver.d.ts +63 -0
- package/dist/runtime/utils/PresetResolver.js +106 -0
- package/dist/types.d.mts +7 -0
- package/package.json +46 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import type { IKDatatableAction } from '@katlux/providers';
|
|
2
|
+
import type { ITreeViewColumn } 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?: IKDatatableAction[];
|
|
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;
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { computed } from "vue";
|
|
2
|
+
export const KGanttDefaultProps = {
|
|
3
|
+
dataProvider: {
|
|
4
|
+
type: Object,
|
|
5
|
+
required: true
|
|
6
|
+
},
|
|
7
|
+
columns: {
|
|
8
|
+
type: Array,
|
|
9
|
+
required: true
|
|
10
|
+
},
|
|
11
|
+
treeColumnIndex: {
|
|
12
|
+
type: Number,
|
|
13
|
+
default: 0
|
|
14
|
+
},
|
|
15
|
+
bulkActions: {
|
|
16
|
+
type: Array,
|
|
17
|
+
default: () => []
|
|
18
|
+
},
|
|
19
|
+
rowActions: {
|
|
20
|
+
type: Array,
|
|
21
|
+
default: () => []
|
|
22
|
+
},
|
|
23
|
+
startDate: {
|
|
24
|
+
type: [Date, String, Number],
|
|
25
|
+
default: null
|
|
26
|
+
},
|
|
27
|
+
endDate: {
|
|
28
|
+
type: [Date, String, Number],
|
|
29
|
+
default: null
|
|
30
|
+
},
|
|
31
|
+
startingPoint: {
|
|
32
|
+
type: [Date, String, Number],
|
|
33
|
+
default: null
|
|
34
|
+
},
|
|
35
|
+
endingPoint: {
|
|
36
|
+
type: [Date, String, Number],
|
|
37
|
+
default: null
|
|
38
|
+
},
|
|
39
|
+
taskMapping: {
|
|
40
|
+
type: Object,
|
|
41
|
+
default: () => ({
|
|
42
|
+
tasksField: "tasks",
|
|
43
|
+
startDate: "startDate",
|
|
44
|
+
endDate: "endDate",
|
|
45
|
+
color: "color",
|
|
46
|
+
title: "title",
|
|
47
|
+
taskTypeField: "type",
|
|
48
|
+
appearanceField: "appearance"
|
|
49
|
+
})
|
|
50
|
+
},
|
|
51
|
+
editable: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: false
|
|
54
|
+
},
|
|
55
|
+
snapTo: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: "day"
|
|
58
|
+
// '15m', '30m', 'hour', 'day', 'week'
|
|
59
|
+
},
|
|
60
|
+
resourceTypeField: {
|
|
61
|
+
type: String,
|
|
62
|
+
default: "type"
|
|
63
|
+
},
|
|
64
|
+
taskTypeField: {
|
|
65
|
+
type: String,
|
|
66
|
+
default: "type"
|
|
67
|
+
},
|
|
68
|
+
mode: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: "date"
|
|
71
|
+
// 'date' | 'numeric'
|
|
72
|
+
},
|
|
73
|
+
cellSlots: {
|
|
74
|
+
type: Object,
|
|
75
|
+
default: () => ({})
|
|
76
|
+
},
|
|
77
|
+
headerSlots: {
|
|
78
|
+
type: Object,
|
|
79
|
+
default: () => ({})
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
export function useKGanttLogic(props) {
|
|
83
|
+
const globalDateRange = computed(() => {
|
|
84
|
+
const now = Date.now();
|
|
85
|
+
const msInDay = 24 * 60 * 60 * 1e3;
|
|
86
|
+
const start = props.startingPoint !== null && props.startingPoint !== void 0 ? props.startingPoint : props.startDate;
|
|
87
|
+
const end = props.endingPoint !== null && props.endingPoint !== void 0 ? props.endingPoint : props.endDate;
|
|
88
|
+
return {
|
|
89
|
+
start: start !== null && start !== void 0 ? new Date(start).getTime() : now - 15 * msInDay,
|
|
90
|
+
end: end !== null && end !== void 0 ? new Date(end).getTime() : now + 45 * msInDay
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
const totalDuration = computed(() => {
|
|
94
|
+
return globalDateRange.value.end - globalDateRange.value.start;
|
|
95
|
+
});
|
|
96
|
+
const resolvedMapping = computed(() => ({
|
|
97
|
+
tasksField: "tasks",
|
|
98
|
+
startDate: "startDate",
|
|
99
|
+
endDate: "endDate",
|
|
100
|
+
color: "color",
|
|
101
|
+
title: "title",
|
|
102
|
+
taskTypeField: "type",
|
|
103
|
+
appearanceField: "appearance",
|
|
104
|
+
...props.taskMapping || {}
|
|
105
|
+
}));
|
|
106
|
+
const getTasksForRow = (row) => {
|
|
107
|
+
const field = resolvedMapping.value.tasksField;
|
|
108
|
+
return Array.isArray(row[field]) ? row[field] : [];
|
|
109
|
+
};
|
|
110
|
+
const getTaskStyle = (task) => {
|
|
111
|
+
const m = resolvedMapping.value;
|
|
112
|
+
const taskStartVal = task[m.startDate];
|
|
113
|
+
const taskEndVal = task[m.endDate];
|
|
114
|
+
const toMs = (val) => {
|
|
115
|
+
if (val === null || val === void 0 || val === "") return NaN;
|
|
116
|
+
if (typeof val === "number") return val;
|
|
117
|
+
if (val instanceof Date) return val.getTime();
|
|
118
|
+
return new Date(val).getTime();
|
|
119
|
+
};
|
|
120
|
+
const tStart = toMs(taskStartVal);
|
|
121
|
+
const tEnd = toMs(taskEndVal);
|
|
122
|
+
if (isNaN(tStart) || isNaN(tEnd)) return { display: "none" };
|
|
123
|
+
const gStart = globalDateRange.value.start;
|
|
124
|
+
const duration = totalDuration.value;
|
|
125
|
+
if (duration <= 0) return { display: "none" };
|
|
126
|
+
let leftPct = (tStart - gStart) / duration * 100;
|
|
127
|
+
let widthPct = (tEnd - tStart) / duration * 100;
|
|
128
|
+
if (leftPct < 0) {
|
|
129
|
+
widthPct += leftPct;
|
|
130
|
+
leftPct = 0;
|
|
131
|
+
}
|
|
132
|
+
if (leftPct + widthPct > 100) {
|
|
133
|
+
widthPct = 100 - leftPct;
|
|
134
|
+
}
|
|
135
|
+
if (widthPct <= 0 || leftPct >= 100) return { display: "none" };
|
|
136
|
+
return {
|
|
137
|
+
left: `${leftPct}%`,
|
|
138
|
+
width: `calc(${widthPct}% - 1px)`,
|
|
139
|
+
"--task-color": task[m.color] || "var(--primary-color, #3b82f6)"
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
const moveTime = (delta, startingPoint, endingPoint) => {
|
|
143
|
+
const isDate = props.mode === "date";
|
|
144
|
+
if (isDate) {
|
|
145
|
+
const newStart = new Date(new Date(startingPoint).getTime() + delta).toISOString();
|
|
146
|
+
const newEnd = new Date(new Date(endingPoint).getTime() + delta).toISOString();
|
|
147
|
+
return { startingPoint: newStart, endingPoint: newEnd };
|
|
148
|
+
} else {
|
|
149
|
+
const newStart = Number(startingPoint) + delta;
|
|
150
|
+
const newEnd = Number(endingPoint) + delta;
|
|
151
|
+
return { startingPoint: newStart, endingPoint: newEnd };
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
const zoom = (factor, startingPoint, endingPoint) => {
|
|
155
|
+
const isDate = props.mode === "date";
|
|
156
|
+
const start = isDate ? new Date(startingPoint).getTime() : Number(startingPoint);
|
|
157
|
+
const end = isDate ? new Date(endingPoint).getTime() : Number(endingPoint);
|
|
158
|
+
const duration = end - start;
|
|
159
|
+
const change = duration * factor;
|
|
160
|
+
const newStart = start + change;
|
|
161
|
+
const newEnd = end - change;
|
|
162
|
+
const newDuration = newEnd - newStart;
|
|
163
|
+
const minDuration = isDate ? 1e3 : 1;
|
|
164
|
+
const maxDuration = isDate ? 10 * 365 * 24 * 60 * 60 * 1e3 : 1e6;
|
|
165
|
+
if (factor > 0 && newDuration < minDuration) return null;
|
|
166
|
+
if (factor < 0 && newDuration > maxDuration) return null;
|
|
167
|
+
if (isDate) {
|
|
168
|
+
return {
|
|
169
|
+
startingPoint: new Date(newStart).toISOString(),
|
|
170
|
+
endingPoint: newEnd > 0 ? new Date(newEnd).toISOString() : (/* @__PURE__ */ new Date(0)).toISOString()
|
|
171
|
+
};
|
|
172
|
+
} else {
|
|
173
|
+
return {
|
|
174
|
+
startingPoint: newStart,
|
|
175
|
+
endingPoint: newEnd
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
const selectedRows = props.dataProvider.selectedRows;
|
|
180
|
+
const selectAll = props.dataProvider.selectAll;
|
|
181
|
+
return {
|
|
182
|
+
globalDateRange,
|
|
183
|
+
totalDuration,
|
|
184
|
+
resolvedMapping,
|
|
185
|
+
getTasksForRow,
|
|
186
|
+
getTaskStyle,
|
|
187
|
+
moveTime,
|
|
188
|
+
zoom,
|
|
189
|
+
selectedRows,
|
|
190
|
+
selectAll
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
export function getGanttMarkers(start, end, mode = "date") {
|
|
194
|
+
const duration = end - start;
|
|
195
|
+
if (duration <= 0) return [];
|
|
196
|
+
const result = [];
|
|
197
|
+
if (mode === "numeric") {
|
|
198
|
+
const idealSteps = 10;
|
|
199
|
+
let stepSize = duration / idealSteps;
|
|
200
|
+
const magnitude = Math.pow(10, Math.floor(Math.log10(stepSize)));
|
|
201
|
+
const normalized = stepSize / magnitude;
|
|
202
|
+
if (normalized < 1.5) stepSize = magnitude;
|
|
203
|
+
else if (normalized < 3) stepSize = 2 * magnitude;
|
|
204
|
+
else if (normalized < 7) stepSize = 5 * magnitude;
|
|
205
|
+
else stepSize = 10 * magnitude;
|
|
206
|
+
let current = Math.ceil(start / stepSize) * stepSize;
|
|
207
|
+
while (current < end) {
|
|
208
|
+
result.push({
|
|
209
|
+
label: current.toString(),
|
|
210
|
+
position: (current - start) / duration * 100
|
|
211
|
+
});
|
|
212
|
+
current += stepSize;
|
|
213
|
+
}
|
|
214
|
+
return result;
|
|
215
|
+
}
|
|
216
|
+
const durationDays = duration / (1e3 * 60 * 60 * 24);
|
|
217
|
+
const durationHours = duration / (1e3 * 60 * 60);
|
|
218
|
+
const durationMinutes = duration / (1e3 * 60);
|
|
219
|
+
const d = new Date(start);
|
|
220
|
+
let stepUnit = "month";
|
|
221
|
+
if (durationMinutes <= 2) {
|
|
222
|
+
stepUnit = "second";
|
|
223
|
+
d.setMilliseconds(0);
|
|
224
|
+
} else if (durationHours <= 1) {
|
|
225
|
+
stepUnit = "minute";
|
|
226
|
+
d.setSeconds(0, 0);
|
|
227
|
+
} else if (durationDays <= 1) {
|
|
228
|
+
stepUnit = "hour";
|
|
229
|
+
d.setMinutes(0, 0, 0);
|
|
230
|
+
} else if (durationDays <= 31) {
|
|
231
|
+
stepUnit = "day";
|
|
232
|
+
d.setHours(0, 0, 0, 0);
|
|
233
|
+
} else if (durationDays <= 180) {
|
|
234
|
+
stepUnit = "week";
|
|
235
|
+
d.setHours(0, 0, 0, 0);
|
|
236
|
+
d.setDate(d.getDate() - d.getDay());
|
|
237
|
+
} else {
|
|
238
|
+
stepUnit = "month";
|
|
239
|
+
d.setHours(0, 0, 0, 0);
|
|
240
|
+
d.setDate(1);
|
|
241
|
+
}
|
|
242
|
+
while (d.getTime() < end) {
|
|
243
|
+
const pct = (d.getTime() - start) / duration * 100;
|
|
244
|
+
if (pct >= 0 && pct <= 100) {
|
|
245
|
+
let label = "";
|
|
246
|
+
const options = {};
|
|
247
|
+
if (stepUnit === "second") {
|
|
248
|
+
label = d.toLocaleTimeString("en", { hour12: false, hour: "2-digit", minute: "2-digit", second: "2-digit" });
|
|
249
|
+
} else if (stepUnit === "minute") {
|
|
250
|
+
label = d.toLocaleTimeString("en", { hour12: false, hour: "2-digit", minute: "2-digit" });
|
|
251
|
+
} else if (stepUnit === "hour") {
|
|
252
|
+
label = d.toLocaleTimeString("en", { hour12: false, hour: "2-digit", minute: "2-digit" });
|
|
253
|
+
} else if (stepUnit === "day" || stepUnit === "week") {
|
|
254
|
+
label = d.toLocaleDateString("en", { month: "short", day: "numeric" });
|
|
255
|
+
} else {
|
|
256
|
+
label = d.toLocaleDateString("en", { month: "short", year: "2-digit" });
|
|
257
|
+
}
|
|
258
|
+
result.push({ label, position: pct });
|
|
259
|
+
}
|
|
260
|
+
if (stepUnit === "second") d.setSeconds(d.getSeconds() + 1);
|
|
261
|
+
else if (stepUnit === "minute") d.setMinutes(d.getMinutes() + 1);
|
|
262
|
+
else if (stepUnit === "hour") d.setHours(d.getHours() + 1);
|
|
263
|
+
else if (stepUnit === "day") d.setDate(d.getDate() + 1);
|
|
264
|
+
else if (stepUnit === "week") d.setDate(d.getDate() + 7);
|
|
265
|
+
else d.setMonth(d.getMonth() + 1);
|
|
266
|
+
if (result.length > 1e3) break;
|
|
267
|
+
}
|
|
268
|
+
return result;
|
|
269
|
+
}
|
|
270
|
+
export function calculateGanttMinWidth(startMs, endMs, minMarkerWidth = 80, mode = "date") {
|
|
271
|
+
const markers = getGanttMarkers(startMs, endMs, mode);
|
|
272
|
+
if (markers.length <= 1) return "100%";
|
|
273
|
+
const minWidthPx = markers.length * minMarkerWidth;
|
|
274
|
+
return `${minWidthPx}px`;
|
|
275
|
+
}
|
|
276
|
+
export function getSnapMs(snapTo) {
|
|
277
|
+
const min = 60 * 1e3;
|
|
278
|
+
const hr = 60 * min;
|
|
279
|
+
const day = 24 * hr;
|
|
280
|
+
switch (snapTo) {
|
|
281
|
+
case "second":
|
|
282
|
+
return 1e3;
|
|
283
|
+
case "minute":
|
|
284
|
+
return min;
|
|
285
|
+
case "15m":
|
|
286
|
+
return 15 * min;
|
|
287
|
+
case "30m":
|
|
288
|
+
return 30 * min;
|
|
289
|
+
case "hour":
|
|
290
|
+
return hr;
|
|
291
|
+
case "day":
|
|
292
|
+
return day;
|
|
293
|
+
case "week":
|
|
294
|
+
return 7 * day;
|
|
295
|
+
case "none":
|
|
296
|
+
return 1e-3;
|
|
297
|
+
default:
|
|
298
|
+
return 1;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
export function isTaskOverlapping(task, tasks, startDateField, endDateField) {
|
|
302
|
+
const tStart = new Date(task[startDateField]).getTime();
|
|
303
|
+
const tEnd = new Date(task[endDateField]).getTime();
|
|
304
|
+
return tasks.some((other) => {
|
|
305
|
+
if (other.id === task.id) return false;
|
|
306
|
+
const oStart = new Date(other[startDateField]).getTime();
|
|
307
|
+
const oEnd = new Date(other[endDateField]).getTime();
|
|
308
|
+
return tStart < oEnd && tEnd > oStart;
|
|
309
|
+
});
|
|
310
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type KGridProps } from './KGrid.logic.js';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<KGridProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KGridProps> & Readonly<{}>, {
|
|
3
|
+
noGap: boolean;
|
|
4
|
+
align: "start" | "center" | "end" | "stretch" | "baseline";
|
|
5
|
+
direction: "row" | "column";
|
|
6
|
+
wrap: "wrap" | "nowrap";
|
|
7
|
+
flexChild: boolean;
|
|
8
|
+
justify: "start" | "center" | "end" | "space-between" | "around" | "evenly";
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useKGridLogic } from "./KGrid.logic";
|
|
3
|
+
import { usePresetComponent } from "../../composables/usePresetComponent";
|
|
4
|
+
import { computed } from "vue";
|
|
5
|
+
import KGridDefault from "../../presets/default/components/KGrid/KGrid.vue";
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
direction: { type: String, required: false, default: "row" },
|
|
8
|
+
wrap: { type: String, required: false, default: "wrap" },
|
|
9
|
+
flexChild: { type: Boolean, required: false, default: false },
|
|
10
|
+
align: { type: String, required: false, default: "start" },
|
|
11
|
+
justify: { type: String, required: false, default: "start" },
|
|
12
|
+
noGap: { type: Boolean, required: false, default: false }
|
|
13
|
+
});
|
|
14
|
+
const { classes } = useKGridLogic(props);
|
|
15
|
+
const presetComponent = usePresetComponent("KGrid", KGridDefault);
|
|
16
|
+
const templateProps = computed(() => ({
|
|
17
|
+
classes: classes.value
|
|
18
|
+
}));
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<template lang="pug">
|
|
22
|
+
component(:is="presetComponent" v-bind="templateProps")
|
|
23
|
+
template(v-for="(_, slot) in $slots" #[slot]="scope")
|
|
24
|
+
slot(:name="slot" v-bind="scope")
|
|
25
|
+
</template>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type KGridProps } from './KGrid.logic.js';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<KGridProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KGridProps> & Readonly<{}>, {
|
|
3
|
+
noGap: boolean;
|
|
4
|
+
align: "start" | "center" | "end" | "stretch" | "baseline";
|
|
5
|
+
direction: "row" | "column";
|
|
6
|
+
wrap: "wrap" | "nowrap";
|
|
7
|
+
flexChild: boolean;
|
|
8
|
+
justify: "start" | "center" | "end" | "space-between" | "around" | "evenly";
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface KGridProps {
|
|
2
|
+
direction?: 'row' | 'column';
|
|
3
|
+
wrap?: 'wrap' | 'nowrap';
|
|
4
|
+
flexChild?: boolean;
|
|
5
|
+
align?: 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
|
6
|
+
justify?: 'start' | 'center' | 'end' | 'space-between' | 'around' | 'evenly';
|
|
7
|
+
noGap?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const KGridDefaultProps: {
|
|
10
|
+
direction: {
|
|
11
|
+
type: PropType<"row" | "column">;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
wrap: {
|
|
15
|
+
type: PropType<"wrap" | "nowrap">;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
flexChild: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
align: {
|
|
23
|
+
type: PropType<"start" | "center" | "end" | "stretch" | "baseline">;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
justify: {
|
|
27
|
+
type: PropType<"start" | "center" | "end" | "space-between" | "around" | "evenly">;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
noGap: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export declare function useKGridLogic(props: KGridProps): {
|
|
36
|
+
classes: import("vue").ComputedRef<string>;
|
|
37
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { computed } from "vue";
|
|
2
|
+
export const KGridDefaultProps = {
|
|
3
|
+
direction: {
|
|
4
|
+
type: String,
|
|
5
|
+
default: "row"
|
|
6
|
+
},
|
|
7
|
+
wrap: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: "wrap"
|
|
10
|
+
},
|
|
11
|
+
flexChild: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: false
|
|
14
|
+
},
|
|
15
|
+
align: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: "start"
|
|
18
|
+
},
|
|
19
|
+
justify: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "start"
|
|
22
|
+
},
|
|
23
|
+
noGap: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
export function useKGridLogic(props) {
|
|
29
|
+
const classes = computed(() => {
|
|
30
|
+
const classesList = [];
|
|
31
|
+
if (props.direction == "row") classesList.push("direction-row");
|
|
32
|
+
if (props.direction == "column") classesList.push("direction-column");
|
|
33
|
+
if (props.wrap == "wrap") classesList.push("wrap");
|
|
34
|
+
if (props.wrap == "nowrap") classesList.push("nowrap");
|
|
35
|
+
if (props.flexChild) classesList.push("flex-child");
|
|
36
|
+
if (props.align == "start") classesList.push("flex-align-start");
|
|
37
|
+
if (props.align == "center") classesList.push("flex-align-center");
|
|
38
|
+
if (props.align == "end") classesList.push("flex-align-end");
|
|
39
|
+
if (props.align == "baseline") classesList.push("flex-align-baseline");
|
|
40
|
+
if (props.align == "stretch") classesList.push("flex-align-stretch");
|
|
41
|
+
if (props.justify === "start") classesList.push("justify-start");
|
|
42
|
+
if (props.justify === "center") classesList.push("justify-center");
|
|
43
|
+
if (props.justify === "end") classesList.push("justify-end");
|
|
44
|
+
if (props.justify === "space-between") classesList.push("justify-between");
|
|
45
|
+
if (props.justify === "around") classesList.push("justify-around");
|
|
46
|
+
if (props.justify === "evenly") classesList.push("justify-evenly");
|
|
47
|
+
if (props.noGap) classesList.push("no-gap");
|
|
48
|
+
return classesList.join(" ");
|
|
49
|
+
});
|
|
50
|
+
return {
|
|
51
|
+
classes
|
|
52
|
+
};
|
|
53
|
+
}
|