@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,113 @@
|
|
|
1
|
+
<template lang="pug">
|
|
2
|
+
.KTab
|
|
3
|
+
KPanel
|
|
4
|
+
template(#header)
|
|
5
|
+
.k-tabs-nav
|
|
6
|
+
KButton.k-tabs-nav-btn(v-if="hasOverflow" @click="scroll(-1)" size="small") <
|
|
7
|
+
.k-tabs-scroll-area(ref="scrollArea")
|
|
8
|
+
KGrid(direction="row" wrap="nowrap")
|
|
9
|
+
KButton.k-tab-btn(
|
|
10
|
+
v-for="(item, index) of items"
|
|
11
|
+
:key="index"
|
|
12
|
+
@click="toggleItem(index)"
|
|
13
|
+
size="small"
|
|
14
|
+
:disabled="isOpen(index)"
|
|
15
|
+
) {{item.title}}
|
|
16
|
+
KButton.k-tabs-nav-btn(v-if="hasOverflow" @click="scroll(1)" size="small") >
|
|
17
|
+
slot
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script lang="ts" setup>
|
|
21
|
+
import { ref, onMounted, onUnmounted, watch, nextTick } from 'vue'
|
|
22
|
+
|
|
23
|
+
const props = defineProps<{
|
|
24
|
+
items: any[]
|
|
25
|
+
toggleItem: (index: number) => void
|
|
26
|
+
isOpen: (index: number) => boolean
|
|
27
|
+
}>()
|
|
28
|
+
|
|
29
|
+
const scrollArea = ref<HTMLElement | null>(null)
|
|
30
|
+
const hasOverflow = ref(false)
|
|
31
|
+
let resizeObserver: ResizeObserver | null = null
|
|
32
|
+
|
|
33
|
+
const checkOverflow = () => {
|
|
34
|
+
if (!scrollArea.value) return
|
|
35
|
+
const el = scrollArea.value
|
|
36
|
+
// Compare the inner KGrid's natural width vs the scroll area's offset width.
|
|
37
|
+
// Using offsetWidth (not clientWidth) avoids being affected by the scroll area itself.
|
|
38
|
+
const inner = el.firstElementChild as HTMLElement | null
|
|
39
|
+
if (inner) {
|
|
40
|
+
hasOverflow.value = inner.scrollWidth > el.offsetWidth + 1
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
onMounted(() => {
|
|
45
|
+
nextTick(() => checkOverflow())
|
|
46
|
+
resizeObserver = new ResizeObserver(() => checkOverflow())
|
|
47
|
+
if (scrollArea.value) {
|
|
48
|
+
// Only observe the scroll area container — NOT the inner KGrid.
|
|
49
|
+
// Observing the inner KGrid would cause a feedback loop when nav buttons
|
|
50
|
+
// appear/disappear, since that changes the scroll area's clientWidth,
|
|
51
|
+
// which triggers another resize event, which flips hasOverflow again.
|
|
52
|
+
resizeObserver.observe(scrollArea.value)
|
|
53
|
+
}
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
onUnmounted(() => {
|
|
57
|
+
resizeObserver?.disconnect()
|
|
58
|
+
})
|
|
59
|
+
|
|
60
|
+
watch(() => props.items.length, async () => {
|
|
61
|
+
await nextTick()
|
|
62
|
+
checkOverflow()
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
const scroll = (direction: number) => {
|
|
66
|
+
scrollArea.value?.scrollBy({ left: 200 * direction, behavior: 'smooth' })
|
|
67
|
+
}
|
|
68
|
+
</script>
|
|
69
|
+
|
|
70
|
+
<style lang="scss" scoped>
|
|
71
|
+
.KTab {
|
|
72
|
+
max-width: 100%;
|
|
73
|
+
min-width: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:deep(.KPanel--header) {
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
min-width: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.k-tabs-nav {
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
min-width: 0;
|
|
85
|
+
overflow: hidden;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.k-tabs-scroll-area {
|
|
89
|
+
flex: 1 1 0px;
|
|
90
|
+
overflow-x: auto;
|
|
91
|
+
min-width: 0;
|
|
92
|
+
max-width: 100%;
|
|
93
|
+
scroll-snap-type: x mandatory;
|
|
94
|
+
scroll-behavior: smooth;
|
|
95
|
+
|
|
96
|
+
/* Hide scrollbar */
|
|
97
|
+
-ms-overflow-style: none;
|
|
98
|
+
scrollbar-width: none;
|
|
99
|
+
&::-webkit-scrollbar {
|
|
100
|
+
display: none;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.k-tab-btn {
|
|
105
|
+
scroll-snap-align: center;
|
|
106
|
+
flex-shrink: 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.k-tabs-nav-btn {
|
|
110
|
+
flex-shrink: 0;
|
|
111
|
+
margin: 0 8px;
|
|
112
|
+
}
|
|
113
|
+
</style>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
items: any[];
|
|
3
|
+
toggleItem: (index: number) => void;
|
|
4
|
+
isOpen: (index: number) => boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
3
|
+
placeholder: string;
|
|
4
|
+
rows: number;
|
|
5
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
6
|
+
validationText?: string;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_ModelProps = {
|
|
9
|
+
'text'?: string;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:text": (value: string | undefined) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
|
+
"onUpdate:text"?: ((value: string | undefined) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<template lang="pug">
|
|
2
|
+
.KTextarea-wrapper(:class="$attrs.class" :style="$attrs.style")
|
|
3
|
+
label.k-input-label(v-if="label") {{ label }}
|
|
4
|
+
textarea.KTextarea(v-bind="textareaAttrs" v-model="text" :placeholder="placeholder" :rows="rows" :class="validation ? `is-${validation}` : ''")
|
|
5
|
+
span.validation-text(v-if="validation && ['success', 'warning', 'error'].includes(validation) && validationText" :class="`is-${validation}`") {{ validationText }}
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script lang="ts" setup>
|
|
9
|
+
import { useAttrs, computed } from 'vue'
|
|
10
|
+
|
|
11
|
+
defineOptions({
|
|
12
|
+
inheritAttrs: false
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
// Default template for KTextarea
|
|
16
|
+
const text = defineModel<string>('text')
|
|
17
|
+
|
|
18
|
+
const props = defineProps<{
|
|
19
|
+
label?: string
|
|
20
|
+
placeholder: string
|
|
21
|
+
rows: number
|
|
22
|
+
validation?: 'success' | 'warning' | 'error' | null
|
|
23
|
+
validationText?: string
|
|
24
|
+
}>()
|
|
25
|
+
|
|
26
|
+
const attrs = useAttrs()
|
|
27
|
+
const textareaAttrs = computed(() => {
|
|
28
|
+
const { class: _, style: __, ...rest } = attrs
|
|
29
|
+
return rest
|
|
30
|
+
})
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<style lang="scss" scoped>
|
|
34
|
+
.KTextarea {
|
|
35
|
+
border: var(--input-border);
|
|
36
|
+
border-radius: var(--input-border-radius);
|
|
37
|
+
background-color: var(--input-bg);
|
|
38
|
+
color: var(--font-color-primary);
|
|
39
|
+
padding: var(--component-gap);
|
|
40
|
+
font-family: inherit;
|
|
41
|
+
font-size: 14px;
|
|
42
|
+
resize: vertical;
|
|
43
|
+
outline: none;
|
|
44
|
+
width: 100%;
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
|
|
47
|
+
&::placeholder {
|
|
48
|
+
color: var(--font-color-secondary);
|
|
49
|
+
opacity: 0.7;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:focus {
|
|
53
|
+
border-color: var(--input-focus-border-color);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
</style>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
3
|
+
placeholder: string;
|
|
4
|
+
rows: number;
|
|
5
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
6
|
+
validationText?: string;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_ModelProps = {
|
|
9
|
+
'text'?: string;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:text": (value: string | undefined) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
|
+
"onUpdate:text"?: ((value: string | undefined) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
3
|
+
text: string;
|
|
4
|
+
showClear: boolean;
|
|
5
|
+
clear: () => void;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
type: string;
|
|
8
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
9
|
+
validationText?: string;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
|
+
"update:text": (value: string) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
"onUpdate:text"?: ((value: string) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
<template lang="pug">
|
|
2
|
+
.KTextbox-wrapper(:class="$attrs.class" :style="$attrs.style")
|
|
3
|
+
label.k-input-label(v-if="label") {{ label }}
|
|
4
|
+
.KTextbox(:class="validation ? `is-${validation}` : ''")
|
|
5
|
+
input(v-bind="inputAttrs" :type="props.type" v-model="text" :placeholder="placeholder")
|
|
6
|
+
KIcon(v-if="showClear" @click.stop="clear" @mousedown.stop iconname="close" width="10" height="10").closeIcon
|
|
7
|
+
span.validation-text(v-if="validation && ['success', 'warning', 'error'].includes(validation) && validationText" :class="`is-${validation}`") {{ validationText }}
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script lang="ts" setup>
|
|
11
|
+
import { computed, useAttrs } from 'vue'
|
|
12
|
+
|
|
13
|
+
defineOptions({
|
|
14
|
+
inheritAttrs: false
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
// Default template for KTextbox
|
|
18
|
+
const props = defineProps<{
|
|
19
|
+
label?: string
|
|
20
|
+
text: string
|
|
21
|
+
showClear: boolean
|
|
22
|
+
clear: () => void
|
|
23
|
+
placeholder: string
|
|
24
|
+
type: string
|
|
25
|
+
validation?: 'success' | 'warning' | 'error' | null
|
|
26
|
+
validationText?: string
|
|
27
|
+
}>()
|
|
28
|
+
|
|
29
|
+
const emit = defineEmits<{
|
|
30
|
+
(e: 'update:text', value: string): void
|
|
31
|
+
}>()
|
|
32
|
+
|
|
33
|
+
const text = computed({
|
|
34
|
+
get: () => props.text,
|
|
35
|
+
set: (value) => emit('update:text', value)
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
const attrs = useAttrs()
|
|
39
|
+
const inputAttrs = computed(() => {
|
|
40
|
+
const { class: _, style: __, ...rest } = attrs
|
|
41
|
+
return rest
|
|
42
|
+
})
|
|
43
|
+
</script>
|
|
44
|
+
|
|
45
|
+
<style lang="scss" scoped>
|
|
46
|
+
.KTextbox-wrapper {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
flex: 1;
|
|
50
|
+
min-width: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.KTextbox {
|
|
54
|
+
position: relative;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
border: var(--input-border);
|
|
58
|
+
border-radius: var(--input-border-radius);
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
background-color: var(--input-bg);
|
|
61
|
+
height: var(--input-height);
|
|
62
|
+
box-sizing: border-box;
|
|
63
|
+
transition: all var(--transition-fast, 0.2s ease);
|
|
64
|
+
|
|
65
|
+
&:focus-within {
|
|
66
|
+
border-color: var(--input-focus-border-color);
|
|
67
|
+
box-shadow: var(--input-focus-shadow);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:hover {
|
|
71
|
+
border-color: var(--input-hover-border-color);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
input {
|
|
75
|
+
flex: 1;
|
|
76
|
+
min-width: 0;
|
|
77
|
+
background-color: var(--input-bg);
|
|
78
|
+
color: var(--font-color-primary);
|
|
79
|
+
box-sizing: border-box;
|
|
80
|
+
padding: 0 var(--component-gap);
|
|
81
|
+
border: none;
|
|
82
|
+
outline: none;
|
|
83
|
+
height: 100%;
|
|
84
|
+
width: 100%;
|
|
85
|
+
|
|
86
|
+
&::placeholder {
|
|
87
|
+
color: var(--font-color-secondary);
|
|
88
|
+
opacity: 0.7;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* Hide arrows in Chrome, Safari, Edge, Opera */
|
|
92
|
+
&::-webkit-outer-spin-button,
|
|
93
|
+
&::-webkit-inner-spin-button {
|
|
94
|
+
-webkit-appearance: none;
|
|
95
|
+
margin: 0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* Hide arrows in Firefox */
|
|
99
|
+
&[type=number] {
|
|
100
|
+
-moz-appearance: textfield;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.closeIcon {
|
|
105
|
+
position: absolute;
|
|
106
|
+
right: var(--component-gap);
|
|
107
|
+
top: 50%;
|
|
108
|
+
transform: translateY(-50%);
|
|
109
|
+
color: var(--icon-color-medium);
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
flex-shrink: 0;
|
|
112
|
+
min-width: 10px;
|
|
113
|
+
|
|
114
|
+
&:hover {
|
|
115
|
+
color: var(--icon-color-dark);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
</style>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
3
|
+
text: string;
|
|
4
|
+
showClear: boolean;
|
|
5
|
+
clear: () => void;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
type: string;
|
|
8
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
9
|
+
validationText?: string;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
|
+
"update:text": (value: string) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
"onUpdate:text"?: ((value: string) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { KToastType } from '../../../../components/KToast/KToast.logic.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue: boolean;
|
|
4
|
+
text?: string;
|
|
5
|
+
timeout?: number;
|
|
6
|
+
teleport?: boolean;
|
|
7
|
+
type?: KToastType;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
close: (...args: any[]) => void;
|
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
<template lang="pug">
|
|
2
|
+
Teleport(to="body" :disabled="!teleport")
|
|
3
|
+
Transition(name="toast-fade")
|
|
4
|
+
.KToast(
|
|
5
|
+
v-if="modelValue"
|
|
6
|
+
:class="[`type-${type}`, { 'is-fixed': teleport }]"
|
|
7
|
+
)
|
|
8
|
+
.KToast--content
|
|
9
|
+
slot {{ text }}
|
|
10
|
+
.KToast--actions
|
|
11
|
+
button.close-btn(@click="$emit('close')")
|
|
12
|
+
KIcon(iconname="close" :width="16" :height="16")
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script lang="ts" setup>
|
|
16
|
+
import type { KToastType } from '../../../../components/KToast/KToast.logic'
|
|
17
|
+
|
|
18
|
+
defineProps<{
|
|
19
|
+
modelValue: boolean
|
|
20
|
+
text?: string
|
|
21
|
+
timeout?: number
|
|
22
|
+
teleport?: boolean
|
|
23
|
+
type?: KToastType
|
|
24
|
+
}>()
|
|
25
|
+
|
|
26
|
+
defineEmits(['update:modelValue', 'close'])
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<style lang="scss" scoped>
|
|
30
|
+
.KToast {
|
|
31
|
+
--current-toast-bg: var(--panel-bg-default);
|
|
32
|
+
--current-toast-border: var(--neutral-200);
|
|
33
|
+
--current-toast-text: var(--font-color-default);
|
|
34
|
+
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
padding: var(--gap-sm) var(--gap-md);
|
|
38
|
+
border-radius: var(--border-radius-md);
|
|
39
|
+
border: 1px solid var(--current-toast-border);
|
|
40
|
+
background-color: color-mix(in srgb, var(--current-toast-bg), transparent calc((1 - var(--panel-bg-opacity, 0.9)) * 100%));
|
|
41
|
+
backdrop-filter: blur(var(--panel-blur, 8px));
|
|
42
|
+
box-shadow: var(--shadow-lg);
|
|
43
|
+
min-width: 250px;
|
|
44
|
+
max-width: 450px;
|
|
45
|
+
pointer-events: auto;
|
|
46
|
+
z-index: 9999;
|
|
47
|
+
|
|
48
|
+
&.is-fixed {
|
|
49
|
+
position: fixed;
|
|
50
|
+
top: 20px;
|
|
51
|
+
right: 20px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.type-primary {
|
|
55
|
+
--current-toast-bg: var(--panel-bg-primary);
|
|
56
|
+
--current-toast-border: var(--color-primary-300);
|
|
57
|
+
}
|
|
58
|
+
&.type-success {
|
|
59
|
+
--current-toast-bg: var(--panel-bg-success);
|
|
60
|
+
--current-toast-border: var(--color-success-300);
|
|
61
|
+
}
|
|
62
|
+
&.type-warning {
|
|
63
|
+
--current-toast-bg: var(--panel-bg-warning);
|
|
64
|
+
--current-toast-border: var(--color-warning-300);
|
|
65
|
+
}
|
|
66
|
+
&.type-danger, &.type-error {
|
|
67
|
+
--current-toast-bg: var(--panel-bg-danger);
|
|
68
|
+
--current-toast-border: var(--color-danger-300);
|
|
69
|
+
}
|
|
70
|
+
&.type-info {
|
|
71
|
+
--current-toast-bg: var(--panel-bg-info);
|
|
72
|
+
--current-toast-border: var(--color-info-300);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&--content {
|
|
76
|
+
flex: 1;
|
|
77
|
+
font-size: var(--font-size-md);
|
|
78
|
+
color: var(--current-toast-text);
|
|
79
|
+
margin-right: var(--gap-md);
|
|
80
|
+
line-height: 1.4;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&--actions {
|
|
84
|
+
display: flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
|
|
87
|
+
.close-btn {
|
|
88
|
+
background: transparent;
|
|
89
|
+
border: none;
|
|
90
|
+
padding: 4px;
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
display: flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
justify-content: center;
|
|
95
|
+
border-radius: var(--border-radius-sm);
|
|
96
|
+
color: var(--current-toast-text);
|
|
97
|
+
opacity: 0.6;
|
|
98
|
+
transition: opacity var(--transition-fast), background-color var(--transition-fast);
|
|
99
|
+
|
|
100
|
+
&:hover {
|
|
101
|
+
opacity: 1;
|
|
102
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.toast-fade-enter-active,
|
|
109
|
+
.toast-fade-leave-active {
|
|
110
|
+
transition: all 0.3s ease;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.toast-fade-enter-from,
|
|
114
|
+
.toast-fade-leave-to {
|
|
115
|
+
opacity: 0;
|
|
116
|
+
transform: translateY(-20px) scale(0.95);
|
|
117
|
+
}
|
|
118
|
+
</style>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { KToastType } from '../../../../components/KToast/KToast.logic.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue: boolean;
|
|
4
|
+
text?: string;
|
|
5
|
+
timeout?: number;
|
|
6
|
+
teleport?: boolean;
|
|
7
|
+
type?: KToastType;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
close: (...args: any[]) => void;
|
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
tooltipStyle: Record<string, string>;
|
|
4
|
+
showTooltip: () => void;
|
|
5
|
+
hideTooltip: () => void;
|
|
6
|
+
text: string;
|
|
7
|
+
position: 'top' | 'bottom' | 'left' | 'right';
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
registerWrapperRef: (...args: any[]) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onRegisterWrapperRef?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<template lang="pug">
|
|
2
|
+
.KTooltip-wrapper(
|
|
3
|
+
ref="internalWrapperRef"
|
|
4
|
+
@mouseenter="showTooltip"
|
|
5
|
+
@mouseleave="hideTooltip"
|
|
6
|
+
)
|
|
7
|
+
slot
|
|
8
|
+
Teleport(v-if="isMounted && visible" to="body")
|
|
9
|
+
.KTooltip(
|
|
10
|
+
:style="tooltipStyle"
|
|
11
|
+
:class="[position]"
|
|
12
|
+
)
|
|
13
|
+
slot(name="content")
|
|
14
|
+
span {{ text }}
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script lang="ts" setup>
|
|
18
|
+
import { ref, onMounted, watch } from 'vue'
|
|
19
|
+
|
|
20
|
+
const props = defineProps<{
|
|
21
|
+
visible: boolean
|
|
22
|
+
tooltipStyle: Record<string, string>
|
|
23
|
+
showTooltip: () => void
|
|
24
|
+
hideTooltip: () => void
|
|
25
|
+
text: string
|
|
26
|
+
position: 'top' | 'bottom' | 'left' | 'right'
|
|
27
|
+
disabled: boolean
|
|
28
|
+
}>()
|
|
29
|
+
|
|
30
|
+
const emit = defineEmits(['registerWrapperRef'])
|
|
31
|
+
|
|
32
|
+
const internalWrapperRef = ref<HTMLElement | null>(null)
|
|
33
|
+
const isMounted = ref(false)
|
|
34
|
+
|
|
35
|
+
onMounted(() => {
|
|
36
|
+
isMounted.value = true
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
watch(internalWrapperRef, (newVal) => {
|
|
40
|
+
emit('registerWrapperRef', newVal)
|
|
41
|
+
}, { immediate: true })
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<style lang="scss" scoped>
|
|
45
|
+
.KTooltip-wrapper {
|
|
46
|
+
display: inline-block;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.KTooltip {
|
|
50
|
+
background-color: var(--tooltip-bg, var(--button-bg-dark, #1f2937));
|
|
51
|
+
color: var(--tooltip-color, var(--button-text-dark, #ffffff));
|
|
52
|
+
padding: 6px 10px;
|
|
53
|
+
border-radius: var(--tooltip-border-radius, var(--border-radius-sm, 4px));
|
|
54
|
+
font-family: var(--tooltip-font-family, var(--font-family, sans-serif));
|
|
55
|
+
font-size: var(--tooltip-font-size, var(--font-size-xs, 12px));
|
|
56
|
+
line-height: 1.4;
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
box-shadow: var(--tooltip-shadow, var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1)));
|
|
59
|
+
max-width: 250px;
|
|
60
|
+
pointer-events: none;
|
|
61
|
+
opacity: 0;
|
|
62
|
+
animation: tooltip-fade-in 0.15s ease-out forwards;
|
|
63
|
+
|
|
64
|
+
@keyframes tooltip-fade-in {
|
|
65
|
+
from {
|
|
66
|
+
opacity: 0;
|
|
67
|
+
}
|
|
68
|
+
to {
|
|
69
|
+
opacity: 1;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
</style>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
tooltipStyle: Record<string, string>;
|
|
4
|
+
showTooltip: () => void;
|
|
5
|
+
hideTooltip: () => void;
|
|
6
|
+
text: string;
|
|
7
|
+
position: 'top' | 'bottom' | 'left' | 'right';
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
registerWrapperRef: (...args: any[]) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onRegisterWrapperRef?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
visibleRows: any[];
|
|
4
|
+
expandedNodes: Set<string | number>;
|
|
5
|
+
labelField: string;
|
|
6
|
+
iconField: string;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
multiSelect: boolean;
|
|
9
|
+
isNodeSelected: (node: any) => boolean;
|
|
10
|
+
toggleNode: (id: string | number) => void;
|
|
11
|
+
selectable: boolean;
|
|
12
|
+
dataProvider?: {
|
|
13
|
+
loading: Ref<boolean>;
|
|
14
|
+
initialLoad?: Ref<boolean>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
18
|
+
select: (row: any) => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
onSelect?: ((row: any) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|