@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,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
model: any;
|
|
3
|
+
checkboxValue: any;
|
|
4
|
+
isDisabled: boolean;
|
|
5
|
+
label?: string;
|
|
6
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
7
|
+
validationText?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
10
|
+
"update:model": (value: any) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
"onUpdate:model"?: ((value: any) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ComboboxItem } from '../../../../components/KCombobox/KCombobox.logic.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
label?: string;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
isOptionsOpen: boolean;
|
|
6
|
+
labelField: string;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
searchbox: boolean;
|
|
9
|
+
searchPlaceholder: string;
|
|
10
|
+
searchtext: string;
|
|
11
|
+
filteredOptions: any[];
|
|
12
|
+
getSelectedContent: () => any[];
|
|
13
|
+
toggleDropdown: () => void;
|
|
14
|
+
closeDropdown: () => void;
|
|
15
|
+
selectItem: (option: ComboboxItem) => void;
|
|
16
|
+
isSelected: (option: ComboboxItem) => boolean;
|
|
17
|
+
loading: boolean;
|
|
18
|
+
teleportTo?: string;
|
|
19
|
+
fullWidth: boolean;
|
|
20
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
21
|
+
validationText?: string;
|
|
22
|
+
};
|
|
23
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
24
|
+
"update:isOptionsOpen": (value: boolean) => any;
|
|
25
|
+
"update:searchtext": (value: string) => any;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
|
+
"onUpdate:isOptionsOpen"?: ((value: boolean) => any) | undefined;
|
|
28
|
+
"onUpdate:searchtext"?: ((value: string) => any) | undefined;
|
|
29
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
<template lang="pug">
|
|
2
|
+
.KCombobox-wrapper
|
|
3
|
+
label.k-input-label(v-if="label") {{ label }}
|
|
4
|
+
.KCombobox(ref="activatorRef" :class="{ disabled: disabled, open: isOptionsOpen, ... (validation ? { [`is-${validation}`]: true } : {}) }")
|
|
5
|
+
KGrid(@click.stop="toggleDropdown" align="center" justify="space-between").KCombobox__selected-content-container
|
|
6
|
+
KGrid(align="center" wrap="no-wrap").KCombobox__selected-content
|
|
7
|
+
.KCombobox__selected-content-item(
|
|
8
|
+
v-if="getSelectedContent().length>0"
|
|
9
|
+
v-for="(item, index) in getSelectedContent()"
|
|
10
|
+
:key="item.value || item.id || index"
|
|
11
|
+
) {{ item[labelField] }}
|
|
12
|
+
.KCombobox__selected-content-placeholder(v-else) {{placeholder}}
|
|
13
|
+
KIcon(iconname="chevron" width="20" height="20").chevron
|
|
14
|
+
KDropdown(v-model:isOpen="isOptionsOpenModel" :anchorEl="activatorRef" :fullWidth="fullWidth" :teleportTo="teleportTo").KCombobox__options
|
|
15
|
+
template(v-if="slots.default")
|
|
16
|
+
slot(name="default")
|
|
17
|
+
KComboboxList(
|
|
18
|
+
v-else
|
|
19
|
+
:searchbox="searchbox"
|
|
20
|
+
:searchPlaceholder="searchPlaceholder"
|
|
21
|
+
v-model:searchtext="searchtextModel"
|
|
22
|
+
:loading="loading"
|
|
23
|
+
:filteredOptions="filteredOptions"
|
|
24
|
+
:labelField="labelField"
|
|
25
|
+
:selectItem="selectItem"
|
|
26
|
+
:isSelected="isSelected"
|
|
27
|
+
)
|
|
28
|
+
span.validation-text(v-if="validation && ['success', 'warning', 'error'].includes(validation) && validationText" :class="`is-${validation}`") {{ validationText }}
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script lang="ts" setup>
|
|
32
|
+
import { computed, ref, useSlots } from 'vue'
|
|
33
|
+
const activatorRef = ref<HTMLElement | null>(null)
|
|
34
|
+
const slots = useSlots()
|
|
35
|
+
import KComboboxList from './KComboboxList.vue'
|
|
36
|
+
import type { ComboboxItem } from '../../../../components/KCombobox/KCombobox.logic'
|
|
37
|
+
|
|
38
|
+
const props = defineProps<{
|
|
39
|
+
label?: string
|
|
40
|
+
disabled: boolean
|
|
41
|
+
isOptionsOpen: boolean
|
|
42
|
+
labelField: string
|
|
43
|
+
placeholder: string
|
|
44
|
+
searchbox: boolean
|
|
45
|
+
searchPlaceholder: string
|
|
46
|
+
searchtext: string
|
|
47
|
+
filteredOptions: any[]
|
|
48
|
+
getSelectedContent: () => any[]
|
|
49
|
+
toggleDropdown: () => void
|
|
50
|
+
closeDropdown: () => void
|
|
51
|
+
selectItem: (option: ComboboxItem) => void
|
|
52
|
+
isSelected: (option: ComboboxItem) => boolean
|
|
53
|
+
loading: boolean
|
|
54
|
+
teleportTo?: string
|
|
55
|
+
fullWidth: boolean
|
|
56
|
+
validation?: 'success' | 'warning' | 'error' | null
|
|
57
|
+
validationText?: string
|
|
58
|
+
}>()
|
|
59
|
+
|
|
60
|
+
const emit = defineEmits<{
|
|
61
|
+
(e: 'update:searchtext', value: string): void
|
|
62
|
+
(e: 'update:isOptionsOpen', value: boolean): void
|
|
63
|
+
}>()
|
|
64
|
+
|
|
65
|
+
const searchtextModel = computed({
|
|
66
|
+
get: () => props.searchtext,
|
|
67
|
+
set: (value) => emit('update:searchtext', value)
|
|
68
|
+
})
|
|
69
|
+
|
|
70
|
+
const isOptionsOpenModel = computed({
|
|
71
|
+
get: () => props.isOptionsOpen,
|
|
72
|
+
set: (value) => emit('update:isOptionsOpen', value)
|
|
73
|
+
})
|
|
74
|
+
</script>
|
|
75
|
+
|
|
76
|
+
<style lang="scss" scoped>
|
|
77
|
+
.KCombobox-wrapper {
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
flex: 1;
|
|
81
|
+
min-width: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.KCombobox {
|
|
85
|
+
box-sizing: border-box;
|
|
86
|
+
border: var(--input-border);
|
|
87
|
+
border-radius: var(--input-border-radius);
|
|
88
|
+
padding: 0px var(--component-gap);
|
|
89
|
+
|
|
90
|
+
background-color: var(--input-bg);
|
|
91
|
+
height: var(--input-height);
|
|
92
|
+
position: relative;
|
|
93
|
+
transition: all var(--transition-fast, 0.2s ease);
|
|
94
|
+
|
|
95
|
+
&:focus-within, &.open {
|
|
96
|
+
border-color: var(--input-focus-border-color);
|
|
97
|
+
box-shadow: var(--input-focus-shadow);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&:hover:not(.open) {
|
|
101
|
+
border-color: var(--input-hover-border-color);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&__selected-content-container {
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
|
|
107
|
+
box-sizing: border-box;
|
|
108
|
+
height: 100%;
|
|
109
|
+
}
|
|
110
|
+
.chevron {
|
|
111
|
+
transform: rotate(90deg);
|
|
112
|
+
transition: transform 0.3s ease-in-out;
|
|
113
|
+
flex-shrink: 0;
|
|
114
|
+
min-width: 20px;
|
|
115
|
+
}
|
|
116
|
+
&.open {
|
|
117
|
+
.chevron {
|
|
118
|
+
transform: rotate(270deg);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
&.disabled {
|
|
122
|
+
opacity: 0.5;
|
|
123
|
+
cursor: not-allowed;
|
|
124
|
+
}
|
|
125
|
+
&__selected-content {
|
|
126
|
+
height: 100%;
|
|
127
|
+
max-width: calc(100% - 40px);
|
|
128
|
+
text-overflow: ellipsis;
|
|
129
|
+
overflow: hidden;
|
|
130
|
+
white-space: nowrap;
|
|
131
|
+
gap: var(--component-gap);
|
|
132
|
+
&-item {
|
|
133
|
+
padding: calc(var(--component-gap) / 2);
|
|
134
|
+
border: var(--input-border);
|
|
135
|
+
border-radius: var(--input-border-radius);
|
|
136
|
+
background-color: var(--input-button-bg);
|
|
137
|
+
&:hover {
|
|
138
|
+
background-color: var(--input-button-hover-bg);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
&__selected-content-placeholder {
|
|
143
|
+
color: var(--font-color-secondary);
|
|
144
|
+
opacity: 0.8;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
</style>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ComboboxItem } from '../../../../components/KCombobox/KCombobox.logic.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
label?: string;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
isOptionsOpen: boolean;
|
|
6
|
+
labelField: string;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
searchbox: boolean;
|
|
9
|
+
searchPlaceholder: string;
|
|
10
|
+
searchtext: string;
|
|
11
|
+
filteredOptions: any[];
|
|
12
|
+
getSelectedContent: () => any[];
|
|
13
|
+
toggleDropdown: () => void;
|
|
14
|
+
closeDropdown: () => void;
|
|
15
|
+
selectItem: (option: ComboboxItem) => void;
|
|
16
|
+
isSelected: (option: ComboboxItem) => boolean;
|
|
17
|
+
loading: boolean;
|
|
18
|
+
teleportTo?: string;
|
|
19
|
+
fullWidth: boolean;
|
|
20
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
21
|
+
validationText?: string;
|
|
22
|
+
};
|
|
23
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
24
|
+
"update:isOptionsOpen": (value: boolean) => any;
|
|
25
|
+
"update:searchtext": (value: string) => any;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
|
+
"onUpdate:isOptionsOpen"?: ((value: boolean) => any) | undefined;
|
|
28
|
+
"onUpdate:searchtext"?: ((value: string) => any) | undefined;
|
|
29
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ComboboxItem } from '../../../../components/KCombobox/KCombobox.logic.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
searchbox: boolean;
|
|
4
|
+
searchtext: string;
|
|
5
|
+
searchPlaceholder: string;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
filteredOptions: any[];
|
|
8
|
+
labelField: string;
|
|
9
|
+
selectItem: (option: ComboboxItem) => void;
|
|
10
|
+
isSelected: (option: ComboboxItem) => boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
13
|
+
"update:searchtext": (value: string) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
"onUpdate:searchtext"?: ((value: string) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
<template lang="pug">
|
|
2
|
+
.KCombobox__options-content
|
|
3
|
+
KTextbox(v-if="searchbox" v-model="searchtextModel" :placeholder="searchPlaceholder" :showClear="true")
|
|
4
|
+
.KCombobox__loading(v-if="loading")
|
|
5
|
+
.KCombobox__loading-spinner
|
|
6
|
+
ul.KCombobox__options-list(v-else)
|
|
7
|
+
li.KCombobox__options-list-item(
|
|
8
|
+
v-for="option in filteredOptions"
|
|
9
|
+
:key="option.value"
|
|
10
|
+
@click.stop="selectItem(option)"
|
|
11
|
+
)
|
|
12
|
+
KGrid(align="center" justify="space-between" wrap="nowrap")
|
|
13
|
+
span.KCombobox__options-list-item__text {{ option[labelField] }}
|
|
14
|
+
KIcon(iconname="check" width="12" height="12" :class="{'visible': isSelected(option)}")
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script lang="ts" setup>
|
|
18
|
+
import { computed } from 'vue'
|
|
19
|
+
import type { ComboboxItem } from '../../../../components/KCombobox/KCombobox.logic'
|
|
20
|
+
|
|
21
|
+
const props = defineProps<{
|
|
22
|
+
searchbox: boolean
|
|
23
|
+
searchtext: string
|
|
24
|
+
searchPlaceholder: string
|
|
25
|
+
loading: boolean
|
|
26
|
+
filteredOptions: any[]
|
|
27
|
+
labelField: string
|
|
28
|
+
selectItem: (option: ComboboxItem) => void
|
|
29
|
+
isSelected: (option: ComboboxItem) => boolean
|
|
30
|
+
}>()
|
|
31
|
+
|
|
32
|
+
const emit = defineEmits<{
|
|
33
|
+
(e: 'update:searchtext', value: string): void
|
|
34
|
+
}>()
|
|
35
|
+
|
|
36
|
+
const searchtextModel = computed({
|
|
37
|
+
get: () => props.searchtext,
|
|
38
|
+
set: (value) => emit('update:searchtext', value)
|
|
39
|
+
})
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<style lang="scss" scoped>
|
|
43
|
+
.KCombobox__options {
|
|
44
|
+
&-content {
|
|
45
|
+
margin: -var(--grid-gap);
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
min-height: 0;
|
|
49
|
+
flex: 1;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
}
|
|
52
|
+
&-list {
|
|
53
|
+
overflow-y: auto;
|
|
54
|
+
flex: 1;
|
|
55
|
+
min-height: 0;
|
|
56
|
+
&-item {
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
height: 40px;
|
|
59
|
+
padding: 10px;
|
|
60
|
+
box-sizing: border-box;
|
|
61
|
+
|
|
62
|
+
border-bottom: 1px solid var(--border-color-light);
|
|
63
|
+
&:hover {
|
|
64
|
+
background-color: var(--background-color-medium);
|
|
65
|
+
}
|
|
66
|
+
&:last-child {
|
|
67
|
+
border-bottom: none;
|
|
68
|
+
}
|
|
69
|
+
&__text {
|
|
70
|
+
text-overflow: ellipsis;
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
white-space: nowrap;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.KIcon {
|
|
77
|
+
visibility: hidden;
|
|
78
|
+
&.visible {
|
|
79
|
+
visibility: visible;
|
|
80
|
+
width: 12px;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.KCombobox__loading {
|
|
87
|
+
padding: 10px;
|
|
88
|
+
display: flex;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
align-items: center;
|
|
91
|
+
|
|
92
|
+
&-spinner {
|
|
93
|
+
width: 20px;
|
|
94
|
+
height: 20px;
|
|
95
|
+
border: 2px solid var(--border-color-light);
|
|
96
|
+
border-top-color: var(--primary-color-500);
|
|
97
|
+
border-radius: 50%;
|
|
98
|
+
animation: spin 0.8s linear infinite;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@keyframes spin {
|
|
102
|
+
to {
|
|
103
|
+
transform: rotate(360deg);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
</style>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ComboboxItem } from '../../../../components/KCombobox/KCombobox.logic.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
searchbox: boolean;
|
|
4
|
+
searchtext: string;
|
|
5
|
+
searchPlaceholder: string;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
filteredOptions: any[];
|
|
8
|
+
labelField: string;
|
|
9
|
+
selectItem: (option: ComboboxItem) => void;
|
|
10
|
+
isSelected: (option: ComboboxItem) => boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
13
|
+
"update:searchtext": (value: string) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
"onUpdate:searchtext"?: ((value: string) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ADataProvider } from '@katlux/providers';
|
|
2
|
+
import type { ICompositeInputConfig } from '../../../../components/KCompositeInput/KCompositeInput.logic.js';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
label?: string;
|
|
5
|
+
selectionValue: any;
|
|
6
|
+
inputValue: any;
|
|
7
|
+
modelValue: any[];
|
|
8
|
+
dataProvider: ADataProvider;
|
|
9
|
+
type: string;
|
|
10
|
+
selectionSide: string;
|
|
11
|
+
inputType: any;
|
|
12
|
+
mask: string;
|
|
13
|
+
labelField: string;
|
|
14
|
+
valueField: string;
|
|
15
|
+
placeholder: string;
|
|
16
|
+
inputPlaceholder: string;
|
|
17
|
+
searchbox: boolean;
|
|
18
|
+
showClear: boolean;
|
|
19
|
+
teleportTo?: string;
|
|
20
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
21
|
+
validationText?: string;
|
|
22
|
+
inputConfigField?: string;
|
|
23
|
+
validateAll?: boolean;
|
|
24
|
+
resolvedInputConfig?: ICompositeInputConfig;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
27
|
+
"update:selectionValue": (value: any) => any;
|
|
28
|
+
"update:inputValue": (value: any) => any;
|
|
29
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
30
|
+
"onUpdate:selectionValue"?: ((value: any) => any) | undefined;
|
|
31
|
+
"onUpdate:inputValue"?: ((value: any) => any) | undefined;
|
|
32
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const _default: typeof __VLS_export;
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
<template lang="pug">
|
|
2
|
+
.KCompositeInput-wrapper
|
|
3
|
+
label.k-input-label(v-if="label") {{ label }}
|
|
4
|
+
.KCompositeInput(:class="{'selection-right': selectionSide === 'right', 'layout-column': activeType === 'textarea'}")
|
|
5
|
+
KGrid(:direction="activeType === 'textarea' ? 'column' : 'row'" gap="0" align="stretch" :class="activeValidation ? `is-${activeValidation}` : ''")
|
|
6
|
+
//- Selection Combobox
|
|
7
|
+
.KCompositeInput-selection(:style="selectionStyle")
|
|
8
|
+
KCombobox(
|
|
9
|
+
v-model="selectionValue"
|
|
10
|
+
:dataProvider="dataProvider"
|
|
11
|
+
:labelField="labelField"
|
|
12
|
+
:valueField="valueField"
|
|
13
|
+
:placeholder="placeholder"
|
|
14
|
+
:searchbox="searchbox"
|
|
15
|
+
closeOnSelect
|
|
16
|
+
:teleportTo="teleportTo"
|
|
17
|
+
:validation="activeValidation"
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
//- Secondary Input (driven by resolvedInputConfig)
|
|
21
|
+
.KCompositeInput-main
|
|
22
|
+
template(v-if="activeType === 'textbox'")
|
|
23
|
+
KTextbox(
|
|
24
|
+
v-model="inputValue"
|
|
25
|
+
:type="activeConfig.inputType"
|
|
26
|
+
:placeholder="activeConfig.placeholder"
|
|
27
|
+
:showClear="activeConfig.showClear"
|
|
28
|
+
:validation="activeValidation"
|
|
29
|
+
)
|
|
30
|
+
template(v-else-if="activeType === 'textarea'")
|
|
31
|
+
KTextarea(
|
|
32
|
+
v-model="inputValue"
|
|
33
|
+
:placeholder="activeConfig.placeholder"
|
|
34
|
+
:validation="activeValidation"
|
|
35
|
+
)
|
|
36
|
+
template(v-else-if="activeType === 'maskedtextbox'")
|
|
37
|
+
KMaskTextbox(
|
|
38
|
+
v-model="inputValue"
|
|
39
|
+
:mask="activeConfig.mask"
|
|
40
|
+
:placeholder="activeConfig.placeholder"
|
|
41
|
+
:showClear="activeConfig.showClear"
|
|
42
|
+
:validation="activeValidation"
|
|
43
|
+
)
|
|
44
|
+
template(v-else-if="activeType === 'combobox'")
|
|
45
|
+
KCombobox(
|
|
46
|
+
v-model="inputValue"
|
|
47
|
+
:dataProvider="activeConfig.inputDataProvider || dataProvider"
|
|
48
|
+
:labelField="activeConfig.inputLabelField || labelField"
|
|
49
|
+
:valueField="activeConfig.inputValueField || valueField"
|
|
50
|
+
:placeholder="activeConfig.placeholder"
|
|
51
|
+
:searchbox="activeConfig.inputSearchbox || false"
|
|
52
|
+
:teleportTo="teleportTo"
|
|
53
|
+
:validation="activeValidation"
|
|
54
|
+
closeOnSelect
|
|
55
|
+
)
|
|
56
|
+
template(v-else-if="activeType === 'datepicker'")
|
|
57
|
+
KDatePicker(
|
|
58
|
+
v-model="inputValue"
|
|
59
|
+
:placeholder="activeConfig.placeholder"
|
|
60
|
+
:showClear="activeConfig.showClear"
|
|
61
|
+
:format="activeConfig.inputFormat"
|
|
62
|
+
:validation="activeValidation"
|
|
63
|
+
)
|
|
64
|
+
template(v-else-if="activeType === 'datetimepicker'")
|
|
65
|
+
KDateTimePicker(
|
|
66
|
+
v-model="inputValue"
|
|
67
|
+
:placeholder="activeConfig.placeholder"
|
|
68
|
+
:showClear="activeConfig.showClear"
|
|
69
|
+
:format="activeConfig.inputFormat"
|
|
70
|
+
:validation="activeValidation"
|
|
71
|
+
)
|
|
72
|
+
template(v-else-if="activeType === 'hourpicker'")
|
|
73
|
+
KHourPicker(
|
|
74
|
+
v-model="inputValue"
|
|
75
|
+
:placeholder="activeConfig.placeholder"
|
|
76
|
+
:showClear="activeConfig.showClear"
|
|
77
|
+
:format="activeConfig.inputFormat"
|
|
78
|
+
:validation="activeValidation"
|
|
79
|
+
)
|
|
80
|
+
span.validation-text(v-if="activeValidation && ['success', 'warning', 'error'].includes(activeValidation) && activeValidationText" :class="`is-${activeValidation}`") {{ activeValidationText }}
|
|
81
|
+
</template>
|
|
82
|
+
|
|
83
|
+
<script lang="ts" setup>
|
|
84
|
+
import { computed } from 'vue'
|
|
85
|
+
import type { ADataProvider } from '@katlux/providers'
|
|
86
|
+
import type { ICompositeInputConfig } from '../../../../components/KCompositeInput/KCompositeInput.logic'
|
|
87
|
+
|
|
88
|
+
const props = defineProps<{
|
|
89
|
+
label?: string
|
|
90
|
+
selectionValue: any
|
|
91
|
+
inputValue: any
|
|
92
|
+
modelValue: any[]
|
|
93
|
+
dataProvider: ADataProvider
|
|
94
|
+
type: string
|
|
95
|
+
selectionSide: string
|
|
96
|
+
inputType: any
|
|
97
|
+
mask: string
|
|
98
|
+
labelField: string
|
|
99
|
+
valueField: string
|
|
100
|
+
placeholder: string
|
|
101
|
+
inputPlaceholder: string
|
|
102
|
+
searchbox: boolean
|
|
103
|
+
showClear: boolean
|
|
104
|
+
teleportTo?: string
|
|
105
|
+
validation?: 'success' | 'warning' | 'error' | null
|
|
106
|
+
validationText?: string
|
|
107
|
+
inputConfigField?: string
|
|
108
|
+
validateAll?: boolean
|
|
109
|
+
resolvedInputConfig?: ICompositeInputConfig
|
|
110
|
+
}>()
|
|
111
|
+
|
|
112
|
+
const emit = defineEmits<{
|
|
113
|
+
(e: 'update:selectionValue', value: any): void
|
|
114
|
+
(e: 'update:inputValue', value: any): void
|
|
115
|
+
}>()
|
|
116
|
+
|
|
117
|
+
const selectionValue = computed({
|
|
118
|
+
get: () => props.selectionValue,
|
|
119
|
+
set: (val) => emit('update:selectionValue', val)
|
|
120
|
+
})
|
|
121
|
+
|
|
122
|
+
const inputValue = computed({
|
|
123
|
+
get: () => props.inputValue,
|
|
124
|
+
set: (val) => emit('update:inputValue', val)
|
|
125
|
+
})
|
|
126
|
+
|
|
127
|
+
const selectionStyle = computed(() => ({
|
|
128
|
+
width: activeType.value === 'textarea' ? '100%' : '120px', // Default width for selection, can be made prop if needed
|
|
129
|
+
flex: '0 0 auto'
|
|
130
|
+
}))
|
|
131
|
+
|
|
132
|
+
// Use resolved config from logic layer, with fallback to component-level props
|
|
133
|
+
const activeConfig = computed<ICompositeInputConfig>(() => {
|
|
134
|
+
if (props.resolvedInputConfig) {
|
|
135
|
+
return props.resolvedInputConfig
|
|
136
|
+
}
|
|
137
|
+
// Fallback to component-level props
|
|
138
|
+
return {
|
|
139
|
+
type: props.type as any,
|
|
140
|
+
inputType: props.inputType,
|
|
141
|
+
mask: props.mask,
|
|
142
|
+
placeholder: props.inputPlaceholder,
|
|
143
|
+
showClear: props.showClear,
|
|
144
|
+
validation: props.validation,
|
|
145
|
+
validationText: props.validationText,
|
|
146
|
+
}
|
|
147
|
+
})
|
|
148
|
+
|
|
149
|
+
const activeType = computed(() => activeConfig.value.type || 'textbox')
|
|
150
|
+
|
|
151
|
+
const activeValidation = computed(() => activeConfig.value.validation || props.validation || null)
|
|
152
|
+
|
|
153
|
+
const activeValidationText = computed(() => activeConfig.value.validationText || props.validationText || '')
|
|
154
|
+
</script>
|
|
155
|
+
|
|
156
|
+
<style lang="scss" scoped>
|
|
157
|
+
.KCompositeInput {
|
|
158
|
+
width: 100%;
|
|
159
|
+
|
|
160
|
+
:deep(.KGrid) {
|
|
161
|
+
/*border: 1px solid var(--neutral-200);
|
|
162
|
+
border-radius: var(--radius-md);
|
|
163
|
+
overflow: hidden;
|
|
164
|
+
background: var(--neutral-50);
|
|
165
|
+
|
|
166
|
+
&:focus-within {
|
|
167
|
+
border-color: var(--primary-500);
|
|
168
|
+
box-shadow: 0 0 0 2px var(--primary-100);
|
|
169
|
+
}*/
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&-selection {
|
|
173
|
+
/*border-right: 1px solid var(--neutral-200);
|
|
174
|
+
|
|
175
|
+
:deep(.KGrid).is-error & { border-right-color: var(--error-500); }
|
|
176
|
+
:deep(.KGrid).is-warning & { border-right-color: var(--warning-500); }
|
|
177
|
+
:deep(.KGrid).is-success & { border-right-color: var(--success-500); }
|
|
178
|
+
|
|
179
|
+
:deep(.KCombobox) {
|
|
180
|
+
border: none !important;
|
|
181
|
+
background: transparent !important;
|
|
182
|
+
box-shadow: none !important;
|
|
183
|
+
padding: 0 !important;
|
|
184
|
+
}*/
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&-main {
|
|
188
|
+
flex: 1;
|
|
189
|
+
min-width: 0;
|
|
190
|
+
display: flex;
|
|
191
|
+
align-items: center;
|
|
192
|
+
|
|
193
|
+
:deep(.KTextbox), :deep(.KTextarea), :deep(.KMaskTextbox), :deep(.KCombobox),
|
|
194
|
+
:deep(.KDatePicker), :deep(.KDateTimePicker), :deep(.KHourPicker) {
|
|
195
|
+
/*width: 100%;
|
|
196
|
+
border: none !important;
|
|
197
|
+
background: transparent !important;
|
|
198
|
+
box-shadow: none !important;
|
|
199
|
+
padding: 0 !important;
|
|
200
|
+
|
|
201
|
+
// Ensure they don't have their own internal grids with borders
|
|
202
|
+
.KTextbox, .KGrid, .KCombobox, .KDatePicker, .KDateTimePicker, .KHourPicker {
|
|
203
|
+
border: none !important;
|
|
204
|
+
background: transparent !important;
|
|
205
|
+
box-shadow: none !important;
|
|
206
|
+
padding: 0 !important;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
input, textarea, .KCombobox-trigger {
|
|
210
|
+
border: none !important;
|
|
211
|
+
border-radius: 0 !important;
|
|
212
|
+
background: transparent !important;
|
|
213
|
+
box-shadow: none !important;
|
|
214
|
+
outline: none !important;
|
|
215
|
+
padding: 0 12px !important;
|
|
216
|
+
}*/
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
&.selection-right {
|
|
221
|
+
.KGrid {
|
|
222
|
+
flex-direction: row-reverse;
|
|
223
|
+
}
|
|
224
|
+
.KCompositeInput-selection {
|
|
225
|
+
/*border-right: none;
|
|
226
|
+
border-left: 1px solid var(--neutral-200);
|
|
227
|
+
|
|
228
|
+
:deep(.KGrid).is-error & { border-left-color: var(--error-500); }
|
|
229
|
+
:deep(.KGrid).is-warning & { border-left-color: var(--warning-500); }
|
|
230
|
+
:deep(.KGrid).is-success & { border-left-color: var(--success-500); }*/
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
</style>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ADataProvider } from '@katlux/providers';
|
|
2
|
+
import type { ICompositeInputConfig } from '../../../../components/KCompositeInput/KCompositeInput.logic.js';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
label?: string;
|
|
5
|
+
selectionValue: any;
|
|
6
|
+
inputValue: any;
|
|
7
|
+
modelValue: any[];
|
|
8
|
+
dataProvider: ADataProvider;
|
|
9
|
+
type: string;
|
|
10
|
+
selectionSide: string;
|
|
11
|
+
inputType: any;
|
|
12
|
+
mask: string;
|
|
13
|
+
labelField: string;
|
|
14
|
+
valueField: string;
|
|
15
|
+
placeholder: string;
|
|
16
|
+
inputPlaceholder: string;
|
|
17
|
+
searchbox: boolean;
|
|
18
|
+
showClear: boolean;
|
|
19
|
+
teleportTo?: string;
|
|
20
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
21
|
+
validationText?: string;
|
|
22
|
+
inputConfigField?: string;
|
|
23
|
+
validateAll?: boolean;
|
|
24
|
+
resolvedInputConfig?: ICompositeInputConfig;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
27
|
+
"update:selectionValue": (value: any) => any;
|
|
28
|
+
"update:inputValue": (value: any) => any;
|
|
29
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
30
|
+
"onUpdate:selectionValue"?: ((value: any) => any) | undefined;
|
|
31
|
+
"onUpdate:inputValue"?: ((value: any) => any) | undefined;
|
|
32
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const _default: typeof __VLS_export;
|
|
34
|
+
export default _default;
|