@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,247 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { IMarkedDay, IDefinedDay } from './types.js';
|
|
3
|
+
export interface KCalendarProps {
|
|
4
|
+
view?: string;
|
|
5
|
+
viewCount?: number;
|
|
6
|
+
definedDays?: IDefinedDay[];
|
|
7
|
+
markedDays?: IMarkedDay[];
|
|
8
|
+
day?: Date | String;
|
|
9
|
+
selectedDay?: Date | String;
|
|
10
|
+
}
|
|
11
|
+
export interface KCalendarEmits {
|
|
12
|
+
(e: 'update:selectedDay', value: Date | String): void;
|
|
13
|
+
(e: 'dayClicked', date: Date, marked: IMarkedDay[]): void;
|
|
14
|
+
}
|
|
15
|
+
export declare const KCalendarDefaultProps: {
|
|
16
|
+
view: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
validator: (value: string) => boolean;
|
|
20
|
+
};
|
|
21
|
+
viewCount: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
default: number;
|
|
24
|
+
};
|
|
25
|
+
definedDays: {
|
|
26
|
+
type: PropType<IDefinedDay[]>;
|
|
27
|
+
default: () => never[];
|
|
28
|
+
};
|
|
29
|
+
markedDays: {
|
|
30
|
+
type: PropType<IMarkedDay[]>;
|
|
31
|
+
default: () => never[];
|
|
32
|
+
};
|
|
33
|
+
day: {
|
|
34
|
+
type: PropType<Date | String>;
|
|
35
|
+
required: boolean;
|
|
36
|
+
};
|
|
37
|
+
selectedDay: {
|
|
38
|
+
type: PropType<Date | String>;
|
|
39
|
+
default: null;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export declare function useKCalendarLogic(props: KCalendarProps, emit: KCalendarEmits): {
|
|
43
|
+
monthSelectedDay: import("vue").Ref<Date | {
|
|
44
|
+
readonly [x: number]: string;
|
|
45
|
+
toString: () => string;
|
|
46
|
+
charAt: (pos: number) => string;
|
|
47
|
+
charCodeAt: (index: number) => number;
|
|
48
|
+
concat: (...strings: string[]) => string;
|
|
49
|
+
indexOf: (searchString: string, position?: number) => number;
|
|
50
|
+
lastIndexOf: (searchString: string, position?: number) => number;
|
|
51
|
+
localeCompare: {
|
|
52
|
+
(that: string): number;
|
|
53
|
+
(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
|
|
54
|
+
(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
|
|
55
|
+
};
|
|
56
|
+
match: {
|
|
57
|
+
(regexp: string | RegExp): RegExpMatchArray | null;
|
|
58
|
+
(matcher: {
|
|
59
|
+
[Symbol.match](string: string): RegExpMatchArray | null;
|
|
60
|
+
}): RegExpMatchArray | null;
|
|
61
|
+
};
|
|
62
|
+
replace: {
|
|
63
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
64
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
65
|
+
(searchValue: {
|
|
66
|
+
[Symbol.replace](string: string, replaceValue: string): string;
|
|
67
|
+
}, replaceValue: string): string;
|
|
68
|
+
(searchValue: {
|
|
69
|
+
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
70
|
+
}, replacer: (substring: string, ...args: any[]) => string): string;
|
|
71
|
+
};
|
|
72
|
+
search: {
|
|
73
|
+
(regexp: string | RegExp): number;
|
|
74
|
+
(searcher: {
|
|
75
|
+
[Symbol.search](string: string): number;
|
|
76
|
+
}): number;
|
|
77
|
+
};
|
|
78
|
+
slice: (start?: number, end?: number) => string;
|
|
79
|
+
split: {
|
|
80
|
+
(separator: string | RegExp, limit?: number): string[];
|
|
81
|
+
(splitter: {
|
|
82
|
+
[Symbol.split](string: string, limit?: number): string[];
|
|
83
|
+
}, limit?: number): string[];
|
|
84
|
+
};
|
|
85
|
+
substring: (start: number, end?: number) => string;
|
|
86
|
+
toLowerCase: () => string;
|
|
87
|
+
toLocaleLowerCase: {
|
|
88
|
+
(locales?: string | string[]): string;
|
|
89
|
+
(locales?: Intl.LocalesArgument): string;
|
|
90
|
+
};
|
|
91
|
+
toUpperCase: () => string;
|
|
92
|
+
toLocaleUpperCase: {
|
|
93
|
+
(locales?: string | string[]): string;
|
|
94
|
+
(locales?: Intl.LocalesArgument): string;
|
|
95
|
+
};
|
|
96
|
+
trim: () => string;
|
|
97
|
+
readonly length: number;
|
|
98
|
+
substr: (from: number, length?: number) => string;
|
|
99
|
+
valueOf: () => string;
|
|
100
|
+
codePointAt: (pos: number) => number | undefined;
|
|
101
|
+
includes: (searchString: string, position?: number) => boolean;
|
|
102
|
+
endsWith: (searchString: string, endPosition?: number) => boolean;
|
|
103
|
+
normalize: {
|
|
104
|
+
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
|
105
|
+
(form?: string): string;
|
|
106
|
+
};
|
|
107
|
+
repeat: (count: number) => string;
|
|
108
|
+
startsWith: (searchString: string, position?: number) => boolean;
|
|
109
|
+
anchor: (name: string) => string;
|
|
110
|
+
big: () => string;
|
|
111
|
+
blink: () => string;
|
|
112
|
+
bold: () => string;
|
|
113
|
+
fixed: () => string;
|
|
114
|
+
fontcolor: (color: string) => string;
|
|
115
|
+
fontsize: {
|
|
116
|
+
(size: number): string;
|
|
117
|
+
(size: string): string;
|
|
118
|
+
};
|
|
119
|
+
italics: () => string;
|
|
120
|
+
link: (url: string) => string;
|
|
121
|
+
small: () => string;
|
|
122
|
+
strike: () => string;
|
|
123
|
+
sub: () => string;
|
|
124
|
+
sup: () => string;
|
|
125
|
+
padStart: (maxLength: number, fillString?: string) => string;
|
|
126
|
+
padEnd: (maxLength: number, fillString?: string) => string;
|
|
127
|
+
trimEnd: () => string;
|
|
128
|
+
trimStart: () => string;
|
|
129
|
+
trimLeft: () => string;
|
|
130
|
+
trimRight: () => string;
|
|
131
|
+
matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
|
|
132
|
+
replaceAll: {
|
|
133
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
134
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
135
|
+
};
|
|
136
|
+
at: (index: number) => string | undefined;
|
|
137
|
+
isWellFormed: () => boolean;
|
|
138
|
+
toWellFormed: () => string;
|
|
139
|
+
[Symbol.iterator]: () => StringIterator<string>;
|
|
140
|
+
}, String | Date | {
|
|
141
|
+
readonly [x: number]: string;
|
|
142
|
+
toString: () => string;
|
|
143
|
+
charAt: (pos: number) => string;
|
|
144
|
+
charCodeAt: (index: number) => number;
|
|
145
|
+
concat: (...strings: string[]) => string;
|
|
146
|
+
indexOf: (searchString: string, position?: number) => number;
|
|
147
|
+
lastIndexOf: (searchString: string, position?: number) => number;
|
|
148
|
+
localeCompare: {
|
|
149
|
+
(that: string): number;
|
|
150
|
+
(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
|
|
151
|
+
(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
|
|
152
|
+
};
|
|
153
|
+
match: {
|
|
154
|
+
(regexp: string | RegExp): RegExpMatchArray | null;
|
|
155
|
+
(matcher: {
|
|
156
|
+
[Symbol.match](string: string): RegExpMatchArray | null;
|
|
157
|
+
}): RegExpMatchArray | null;
|
|
158
|
+
};
|
|
159
|
+
replace: {
|
|
160
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
161
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
162
|
+
(searchValue: {
|
|
163
|
+
[Symbol.replace](string: string, replaceValue: string): string;
|
|
164
|
+
}, replaceValue: string): string;
|
|
165
|
+
(searchValue: {
|
|
166
|
+
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
167
|
+
}, replacer: (substring: string, ...args: any[]) => string): string;
|
|
168
|
+
};
|
|
169
|
+
search: {
|
|
170
|
+
(regexp: string | RegExp): number;
|
|
171
|
+
(searcher: {
|
|
172
|
+
[Symbol.search](string: string): number;
|
|
173
|
+
}): number;
|
|
174
|
+
};
|
|
175
|
+
slice: (start?: number, end?: number) => string;
|
|
176
|
+
split: {
|
|
177
|
+
(separator: string | RegExp, limit?: number): string[];
|
|
178
|
+
(splitter: {
|
|
179
|
+
[Symbol.split](string: string, limit?: number): string[];
|
|
180
|
+
}, limit?: number): string[];
|
|
181
|
+
};
|
|
182
|
+
substring: (start: number, end?: number) => string;
|
|
183
|
+
toLowerCase: () => string;
|
|
184
|
+
toLocaleLowerCase: {
|
|
185
|
+
(locales?: string | string[]): string;
|
|
186
|
+
(locales?: Intl.LocalesArgument): string;
|
|
187
|
+
};
|
|
188
|
+
toUpperCase: () => string;
|
|
189
|
+
toLocaleUpperCase: {
|
|
190
|
+
(locales?: string | string[]): string;
|
|
191
|
+
(locales?: Intl.LocalesArgument): string;
|
|
192
|
+
};
|
|
193
|
+
trim: () => string;
|
|
194
|
+
readonly length: number;
|
|
195
|
+
substr: (from: number, length?: number) => string;
|
|
196
|
+
valueOf: () => string;
|
|
197
|
+
codePointAt: (pos: number) => number | undefined;
|
|
198
|
+
includes: (searchString: string, position?: number) => boolean;
|
|
199
|
+
endsWith: (searchString: string, endPosition?: number) => boolean;
|
|
200
|
+
normalize: {
|
|
201
|
+
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
|
202
|
+
(form?: string): string;
|
|
203
|
+
};
|
|
204
|
+
repeat: (count: number) => string;
|
|
205
|
+
startsWith: (searchString: string, position?: number) => boolean;
|
|
206
|
+
anchor: (name: string) => string;
|
|
207
|
+
big: () => string;
|
|
208
|
+
blink: () => string;
|
|
209
|
+
bold: () => string;
|
|
210
|
+
fixed: () => string;
|
|
211
|
+
fontcolor: (color: string) => string;
|
|
212
|
+
fontsize: {
|
|
213
|
+
(size: number): string;
|
|
214
|
+
(size: string): string;
|
|
215
|
+
};
|
|
216
|
+
italics: () => string;
|
|
217
|
+
link: (url: string) => string;
|
|
218
|
+
small: () => string;
|
|
219
|
+
strike: () => string;
|
|
220
|
+
sub: () => string;
|
|
221
|
+
sup: () => string;
|
|
222
|
+
padStart: (maxLength: number, fillString?: string) => string;
|
|
223
|
+
padEnd: (maxLength: number, fillString?: string) => string;
|
|
224
|
+
trimEnd: () => string;
|
|
225
|
+
trimStart: () => string;
|
|
226
|
+
trimLeft: () => string;
|
|
227
|
+
trimRight: () => string;
|
|
228
|
+
matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
|
|
229
|
+
replaceAll: {
|
|
230
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
231
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
232
|
+
};
|
|
233
|
+
at: (index: number) => string | undefined;
|
|
234
|
+
isWellFormed: () => boolean;
|
|
235
|
+
toWellFormed: () => string;
|
|
236
|
+
[Symbol.iterator]: () => StringIterator<string>;
|
|
237
|
+
}>;
|
|
238
|
+
actualYear: import("vue").Ref<any, any>;
|
|
239
|
+
goToPrev: () => void;
|
|
240
|
+
goToNext: () => void;
|
|
241
|
+
getMonthName: (monthIndex: number) => string;
|
|
242
|
+
showingMonth: (monthIndex: number) => number;
|
|
243
|
+
showingYear: (monthIndex: number) => any;
|
|
244
|
+
getExpandedDefinedDays: (monthIndex: number) => IDefinedDay[];
|
|
245
|
+
getExpandedMarkedDays: (monthIndex: number) => IMarkedDay[];
|
|
246
|
+
dayClicked: (date: Date) => void;
|
|
247
|
+
};
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { watch, ref, computed, onMounted } from "vue";
|
|
2
|
+
import { expandAllRecurringDaysForRange } from "./recurringUtils.js";
|
|
3
|
+
export const KCalendarDefaultProps = {
|
|
4
|
+
view: {
|
|
5
|
+
type: String,
|
|
6
|
+
default: "month",
|
|
7
|
+
validator: (value) => ["month", "week"].includes(value)
|
|
8
|
+
},
|
|
9
|
+
viewCount: {
|
|
10
|
+
type: Number,
|
|
11
|
+
default: 1
|
|
12
|
+
},
|
|
13
|
+
definedDays: {
|
|
14
|
+
type: Array,
|
|
15
|
+
default: () => []
|
|
16
|
+
},
|
|
17
|
+
markedDays: {
|
|
18
|
+
type: Array,
|
|
19
|
+
default: () => []
|
|
20
|
+
},
|
|
21
|
+
day: {
|
|
22
|
+
type: [Date, String],
|
|
23
|
+
required: false
|
|
24
|
+
},
|
|
25
|
+
selectedDay: {
|
|
26
|
+
type: [Date, String],
|
|
27
|
+
default: null
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
export function useKCalendarLogic(props, emit) {
|
|
31
|
+
const monthSelectedDay = ref("");
|
|
32
|
+
const actualMonth = ref();
|
|
33
|
+
const actualWeek = ref();
|
|
34
|
+
const actualYear = ref();
|
|
35
|
+
const currentView = computed(() => props.view ?? "month");
|
|
36
|
+
function initViewFromDate(dateInput) {
|
|
37
|
+
if (!dateInput) return false;
|
|
38
|
+
const date = typeof dateInput === "string" ? new Date(dateInput) : dateInput;
|
|
39
|
+
if (!isNaN(date.getTime())) {
|
|
40
|
+
actualMonth.value = date.getMonth() + 1;
|
|
41
|
+
actualYear.value = date.getFullYear();
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
watch(
|
|
47
|
+
() => props.day,
|
|
48
|
+
(newVal) => {
|
|
49
|
+
if (!newVal) return;
|
|
50
|
+
initViewFromDate(newVal);
|
|
51
|
+
},
|
|
52
|
+
{ immediate: true }
|
|
53
|
+
);
|
|
54
|
+
watch(
|
|
55
|
+
() => props.selectedDay,
|
|
56
|
+
(newValue) => {
|
|
57
|
+
monthSelectedDay.value = newValue ?? "";
|
|
58
|
+
if (!props.day && actualYear.value === void 0) {
|
|
59
|
+
initViewFromDate(newValue);
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{ immediate: true }
|
|
63
|
+
);
|
|
64
|
+
watch(
|
|
65
|
+
() => monthSelectedDay.value,
|
|
66
|
+
(newValue) => {
|
|
67
|
+
if (newValue !== props.selectedDay)
|
|
68
|
+
emit("update:selectedDay", newValue);
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
onMounted(() => {
|
|
72
|
+
monthSelectedDay.value = props.selectedDay || "";
|
|
73
|
+
if (actualYear.value === void 0) {
|
|
74
|
+
const now = /* @__PURE__ */ new Date();
|
|
75
|
+
actualMonth.value = now.getMonth() + 1;
|
|
76
|
+
actualYear.value = now.getFullYear();
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
const months = [
|
|
80
|
+
"January",
|
|
81
|
+
"February",
|
|
82
|
+
"March",
|
|
83
|
+
"April",
|
|
84
|
+
"May",
|
|
85
|
+
"June",
|
|
86
|
+
"July",
|
|
87
|
+
"August",
|
|
88
|
+
"September",
|
|
89
|
+
"October",
|
|
90
|
+
"November",
|
|
91
|
+
"December"
|
|
92
|
+
];
|
|
93
|
+
function showingMonth(monthIndex) {
|
|
94
|
+
let month = actualMonth.value + monthIndex - Math.round((props.viewCount || 1) / 2);
|
|
95
|
+
if (month > 12) {
|
|
96
|
+
month = (month - 1) % 12 + 1;
|
|
97
|
+
} else if (month < 1) {
|
|
98
|
+
month = 12 + month % 12;
|
|
99
|
+
}
|
|
100
|
+
return month;
|
|
101
|
+
}
|
|
102
|
+
function showingYear(monthIndex) {
|
|
103
|
+
let year = actualYear.value;
|
|
104
|
+
let month = actualMonth.value + monthIndex - Math.round((props.viewCount || 1) / 2);
|
|
105
|
+
if (month > 12) {
|
|
106
|
+
year += Math.floor((month - 1) / 12);
|
|
107
|
+
} else if (month < 1) {
|
|
108
|
+
year -= Math.ceil((1 - month) / 12);
|
|
109
|
+
}
|
|
110
|
+
return year;
|
|
111
|
+
}
|
|
112
|
+
function getExpandedDefinedDays(monthIndex) {
|
|
113
|
+
const start = new Date(
|
|
114
|
+
showingYear(monthIndex),
|
|
115
|
+
showingMonth(monthIndex) - 1,
|
|
116
|
+
1
|
|
117
|
+
);
|
|
118
|
+
const end = new Date(
|
|
119
|
+
showingYear(monthIndex),
|
|
120
|
+
showingMonth(monthIndex),
|
|
121
|
+
0
|
|
122
|
+
);
|
|
123
|
+
return expandAllRecurringDaysForRange(start, end, props.definedDays || []);
|
|
124
|
+
}
|
|
125
|
+
function getExpandedMarkedDays(monthIndex) {
|
|
126
|
+
const start = new Date(
|
|
127
|
+
showingYear(monthIndex),
|
|
128
|
+
showingMonth(monthIndex) - 1,
|
|
129
|
+
1
|
|
130
|
+
);
|
|
131
|
+
const end = new Date(
|
|
132
|
+
showingYear(monthIndex),
|
|
133
|
+
showingMonth(monthIndex),
|
|
134
|
+
0
|
|
135
|
+
);
|
|
136
|
+
return expandAllRecurringDaysForRange(start, end, props.markedDays || []);
|
|
137
|
+
}
|
|
138
|
+
function getDayMark(date) {
|
|
139
|
+
const markedDaysOfMonth = getExpandedMarkedDays(date.getMonth() + 1);
|
|
140
|
+
const markedDays = markedDaysOfMonth.filter((markedDay) => {
|
|
141
|
+
const _date = typeof markedDay.date === "string" ? new Date(markedDay.date) : markedDay.date;
|
|
142
|
+
if (!(date instanceof Date)) return false;
|
|
143
|
+
return _date.toString() == date.toString();
|
|
144
|
+
});
|
|
145
|
+
return markedDays;
|
|
146
|
+
}
|
|
147
|
+
function dayClicked(date) {
|
|
148
|
+
emit("dayClicked", date, getDayMark(date));
|
|
149
|
+
}
|
|
150
|
+
function goToPrev() {
|
|
151
|
+
actualMonth.value -= props.viewCount || 1;
|
|
152
|
+
if (actualMonth.value <= 1) {
|
|
153
|
+
actualMonth.value = actualMonth.value + 12;
|
|
154
|
+
actualYear.value--;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
function goToNext() {
|
|
158
|
+
actualMonth.value += props.viewCount || 1;
|
|
159
|
+
if (actualMonth.value >= 12) {
|
|
160
|
+
actualMonth.value = actualMonth.value - 12;
|
|
161
|
+
actualYear.value++;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
function getMonthName(monthIndex) {
|
|
165
|
+
if ((props.viewCount || 1) <= 12) return months[showingMonth(monthIndex) - 1];
|
|
166
|
+
else
|
|
167
|
+
return months[showingMonth(monthIndex) - 1] + "'" + showingYear(monthIndex).toString().slice(-2);
|
|
168
|
+
}
|
|
169
|
+
return {
|
|
170
|
+
monthSelectedDay,
|
|
171
|
+
actualYear,
|
|
172
|
+
goToPrev,
|
|
173
|
+
goToNext,
|
|
174
|
+
getMonthName,
|
|
175
|
+
showingMonth,
|
|
176
|
+
showingYear,
|
|
177
|
+
getExpandedDefinedDays,
|
|
178
|
+
getExpandedMarkedDays,
|
|
179
|
+
dayClicked
|
|
180
|
+
};
|
|
181
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
month: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
required: boolean;
|
|
5
|
+
};
|
|
6
|
+
year: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
required: boolean;
|
|
9
|
+
};
|
|
10
|
+
showingDate: {
|
|
11
|
+
type: DateConstructor;
|
|
12
|
+
required: boolean;
|
|
13
|
+
};
|
|
14
|
+
startingWeekday: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
validator: (value: string) => boolean;
|
|
18
|
+
};
|
|
19
|
+
definedDays: {
|
|
20
|
+
type: PropType<import("./types.js").IDefinedDay[]>;
|
|
21
|
+
default: () => never[];
|
|
22
|
+
};
|
|
23
|
+
markedDays: {
|
|
24
|
+
type: PropType<import("./types.js").IMarkedDay[]>;
|
|
25
|
+
default: () => never[];
|
|
26
|
+
};
|
|
27
|
+
selectedDay: {
|
|
28
|
+
type: PropType<Date | String>;
|
|
29
|
+
default: null;
|
|
30
|
+
};
|
|
31
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
32
|
+
"update:selectedDay": (value: String | Date) => any;
|
|
33
|
+
dayClicked: (value: String | Date) => any;
|
|
34
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
month: {
|
|
36
|
+
type: NumberConstructor;
|
|
37
|
+
required: boolean;
|
|
38
|
+
};
|
|
39
|
+
year: {
|
|
40
|
+
type: NumberConstructor;
|
|
41
|
+
required: boolean;
|
|
42
|
+
};
|
|
43
|
+
showingDate: {
|
|
44
|
+
type: DateConstructor;
|
|
45
|
+
required: boolean;
|
|
46
|
+
};
|
|
47
|
+
startingWeekday: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
validator: (value: string) => boolean;
|
|
51
|
+
};
|
|
52
|
+
definedDays: {
|
|
53
|
+
type: PropType<import("./types.js").IDefinedDay[]>;
|
|
54
|
+
default: () => never[];
|
|
55
|
+
};
|
|
56
|
+
markedDays: {
|
|
57
|
+
type: PropType<import("./types.js").IMarkedDay[]>;
|
|
58
|
+
default: () => never[];
|
|
59
|
+
};
|
|
60
|
+
selectedDay: {
|
|
61
|
+
type: PropType<Date | String>;
|
|
62
|
+
default: null;
|
|
63
|
+
};
|
|
64
|
+
}>> & Readonly<{
|
|
65
|
+
"onUpdate:selectedDay"?: ((value: String | Date) => any) | undefined;
|
|
66
|
+
onDayClicked?: ((value: String | Date) => any) | undefined;
|
|
67
|
+
}>, {
|
|
68
|
+
definedDays: any;
|
|
69
|
+
markedDays: any;
|
|
70
|
+
selectedDay: any;
|
|
71
|
+
startingWeekday: string;
|
|
72
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
73
|
+
declare const _default: typeof __VLS_export;
|
|
74
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useKCalendarMonthLogic, KCalendarMonthDefaultProps } from "./KCalendarMonth.logic";
|
|
3
|
+
import { usePresetComponent } from "../../composables/usePresetComponent";
|
|
4
|
+
import { computed } from "vue";
|
|
5
|
+
import KCalendarMonthDefault from "../../presets/default/components/KCalendar/KCalendarMonth.vue";
|
|
6
|
+
const props = defineProps(KCalendarMonthDefaultProps);
|
|
7
|
+
const emit = defineEmits(["update:selectedDay", "dayClicked"]);
|
|
8
|
+
const {
|
|
9
|
+
weekdays,
|
|
10
|
+
calendarDays,
|
|
11
|
+
isMarked,
|
|
12
|
+
isSelectedDay,
|
|
13
|
+
getMarkedDayClass,
|
|
14
|
+
selectDay,
|
|
15
|
+
getCalendarDaysData
|
|
16
|
+
} = useKCalendarMonthLogic(props, emit);
|
|
17
|
+
const presetComponent = usePresetComponent("KCalendarMonth", KCalendarMonthDefault);
|
|
18
|
+
const templateProps = computed(() => ({
|
|
19
|
+
month: props.month,
|
|
20
|
+
year: props.year,
|
|
21
|
+
weekdays: weekdays.value,
|
|
22
|
+
calendarDays: calendarDays.value,
|
|
23
|
+
isMarked,
|
|
24
|
+
isSelectedDay,
|
|
25
|
+
getMarkedDayClass,
|
|
26
|
+
selectDay,
|
|
27
|
+
getCalendarDaysData
|
|
28
|
+
}));
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<template lang="pug">
|
|
32
|
+
component(:is="presetComponent" v-bind="templateProps")
|
|
33
|
+
</template>
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
month: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
required: boolean;
|
|
5
|
+
};
|
|
6
|
+
year: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
required: boolean;
|
|
9
|
+
};
|
|
10
|
+
showingDate: {
|
|
11
|
+
type: DateConstructor;
|
|
12
|
+
required: boolean;
|
|
13
|
+
};
|
|
14
|
+
startingWeekday: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
validator: (value: string) => boolean;
|
|
18
|
+
};
|
|
19
|
+
definedDays: {
|
|
20
|
+
type: PropType<import("./types.js").IDefinedDay[]>;
|
|
21
|
+
default: () => never[];
|
|
22
|
+
};
|
|
23
|
+
markedDays: {
|
|
24
|
+
type: PropType<import("./types.js").IMarkedDay[]>;
|
|
25
|
+
default: () => never[];
|
|
26
|
+
};
|
|
27
|
+
selectedDay: {
|
|
28
|
+
type: PropType<Date | String>;
|
|
29
|
+
default: null;
|
|
30
|
+
};
|
|
31
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
32
|
+
"update:selectedDay": (value: String | Date) => any;
|
|
33
|
+
dayClicked: (value: String | Date) => any;
|
|
34
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
month: {
|
|
36
|
+
type: NumberConstructor;
|
|
37
|
+
required: boolean;
|
|
38
|
+
};
|
|
39
|
+
year: {
|
|
40
|
+
type: NumberConstructor;
|
|
41
|
+
required: boolean;
|
|
42
|
+
};
|
|
43
|
+
showingDate: {
|
|
44
|
+
type: DateConstructor;
|
|
45
|
+
required: boolean;
|
|
46
|
+
};
|
|
47
|
+
startingWeekday: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
validator: (value: string) => boolean;
|
|
51
|
+
};
|
|
52
|
+
definedDays: {
|
|
53
|
+
type: PropType<import("./types.js").IDefinedDay[]>;
|
|
54
|
+
default: () => never[];
|
|
55
|
+
};
|
|
56
|
+
markedDays: {
|
|
57
|
+
type: PropType<import("./types.js").IMarkedDay[]>;
|
|
58
|
+
default: () => never[];
|
|
59
|
+
};
|
|
60
|
+
selectedDay: {
|
|
61
|
+
type: PropType<Date | String>;
|
|
62
|
+
default: null;
|
|
63
|
+
};
|
|
64
|
+
}>> & Readonly<{
|
|
65
|
+
"onUpdate:selectedDay"?: ((value: String | Date) => any) | undefined;
|
|
66
|
+
onDayClicked?: ((value: String | Date) => any) | undefined;
|
|
67
|
+
}>, {
|
|
68
|
+
definedDays: any;
|
|
69
|
+
markedDays: any;
|
|
70
|
+
selectedDay: any;
|
|
71
|
+
startingWeekday: string;
|
|
72
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
73
|
+
declare const _default: typeof __VLS_export;
|
|
74
|
+
export default _default;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { IMarkedDay, IDefinedDay } from './types.js';
|
|
2
|
+
export interface KCalendarMonthProps {
|
|
3
|
+
month: number;
|
|
4
|
+
year: number;
|
|
5
|
+
showingDate?: Date;
|
|
6
|
+
startingWeekday?: string;
|
|
7
|
+
definedDays?: IDefinedDay[];
|
|
8
|
+
markedDays?: IMarkedDay[];
|
|
9
|
+
selectedDay?: Date | String;
|
|
10
|
+
}
|
|
11
|
+
export interface KCalendarMonthEmits {
|
|
12
|
+
(e: 'update:selectedDay', value: Date | String): void;
|
|
13
|
+
(e: 'dayClicked', value: Date | String): void;
|
|
14
|
+
}
|
|
15
|
+
export declare const KCalendarMonthDefaultProps: {
|
|
16
|
+
month: {
|
|
17
|
+
type: NumberConstructor;
|
|
18
|
+
required: boolean;
|
|
19
|
+
};
|
|
20
|
+
year: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
required: boolean;
|
|
23
|
+
};
|
|
24
|
+
showingDate: {
|
|
25
|
+
type: DateConstructor;
|
|
26
|
+
required: boolean;
|
|
27
|
+
};
|
|
28
|
+
startingWeekday: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
validator: (value: string) => boolean;
|
|
32
|
+
};
|
|
33
|
+
definedDays: {
|
|
34
|
+
type: PropType<IDefinedDay[]>;
|
|
35
|
+
default: () => never[];
|
|
36
|
+
};
|
|
37
|
+
markedDays: {
|
|
38
|
+
type: PropType<IMarkedDay[]>;
|
|
39
|
+
default: () => never[];
|
|
40
|
+
};
|
|
41
|
+
selectedDay: {
|
|
42
|
+
type: PropType<Date | String>;
|
|
43
|
+
default: null;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export declare function useKCalendarMonthLogic(props: KCalendarMonthProps, emit: KCalendarMonthEmits): {
|
|
47
|
+
weekdays: import("vue").ComputedRef<string[]>;
|
|
48
|
+
calendarDays: import("vue").ComputedRef<(string | number)[]>;
|
|
49
|
+
isMarked: (day: number | string) => boolean;
|
|
50
|
+
isSelectedDay: (day: number) => boolean;
|
|
51
|
+
getMarkedDayClass: (day: number) => string;
|
|
52
|
+
selectDay: (day: number) => void;
|
|
53
|
+
getCalendarDaysData: (day: number) => IMarkedDay[];
|
|
54
|
+
};
|