@katlux/toolkit 0.1.0-beta.9 → 0.1.1-alpha.89
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 -21
- package/README.md +14 -5
- package/bin/add-ai-reference.mjs +85 -0
- package/dist/compiled/composables/usePresetComponent.mjs +43 -21
- package/dist/compiled/utils/PresetResolver.mjs +18 -12
- package/dist/module.cjs +90 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +90 -1
- package/dist/runtime/components/KBulkActions/KBulkActions.global.vue +2 -2
- package/dist/runtime/components/KBulkActions/KBulkActions.logic.d.ts +9 -0
- package/dist/runtime/components/KBulkActions/KBulkActions.logic.js +10 -3
- package/dist/runtime/components/KButton/KButton.global.d.vue.ts +9 -0
- package/dist/runtime/components/KButton/KButton.global.vue +2 -1
- package/dist/runtime/components/KButton/KButton.global.vue.d.ts +9 -0
- package/dist/runtime/components/KButton/KButton.logic.d.ts +7 -1
- package/dist/runtime/components/KButton/KButton.logic.js +5 -1
- package/dist/runtime/components/KCalendar/KCalendar.global.d.vue.ts +11 -12
- package/dist/runtime/components/KCalendar/KCalendar.global.vue.d.ts +11 -12
- package/dist/runtime/components/KCalendar/KCalendar.logic.d.ts +1 -0
- package/dist/runtime/components/KCalendar/KCalendar.logic.js +25 -10
- package/dist/runtime/components/KCheckbox/KCheckbox.global.d.vue.ts +30 -0
- package/dist/runtime/components/KCheckbox/KCheckbox.global.vue +4 -1
- package/dist/runtime/components/KCheckbox/KCheckbox.global.vue.d.ts +30 -0
- package/dist/runtime/components/KCheckbox/KCheckbox.logic.d.ts +17 -0
- package/dist/runtime/components/KCheckbox/KCheckbox.logic.js +16 -1
- package/dist/runtime/components/KCombobox/KCombobox.global.d.vue.ts +86 -10
- package/dist/runtime/components/KCombobox/KCombobox.global.vue +19 -4
- package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +86 -10
- package/dist/runtime/components/KCombobox/KCombobox.logic.d.ts +47 -4
- package/dist/runtime/components/KCombobox/KCombobox.logic.js +84 -12
- 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 +53 -1
- package/dist/runtime/components/KContextMenu/KContextMenu.global.vue +20 -1
- package/dist/runtime/components/KContextMenu/KContextMenu.global.vue.d.ts +53 -1
- package/dist/runtime/components/KContextMenu/KContextMenu.logic.d.ts +53 -2
- package/dist/runtime/components/KContextMenu/KContextMenu.logic.js +167 -3
- package/dist/runtime/components/KDatatable/KDatatable.global.d.vue.ts +4 -0
- package/dist/runtime/components/KDatatable/KDatatable.global.vue +6 -2
- package/dist/runtime/components/KDatatable/KDatatable.global.vue.d.ts +4 -0
- package/dist/runtime/components/KDatatable/KDatatable.logic.d.ts +4 -0
- package/dist/runtime/components/KDatatable/KDatatable.logic.js +3 -1
- package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +104 -8
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue +28 -3
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +104 -8
- package/dist/runtime/components/KDatePicker/KDatePicker.logic.d.ts +48 -1
- package/dist/runtime/components/KDatePicker/KDatePicker.logic.js +118 -7
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.d.vue.ts +93 -8
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue +27 -3
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +93 -8
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.d.ts +43 -1
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.js +168 -7
- package/dist/runtime/components/KDropdown/KDropdown.global.d.vue.ts +36 -0
- package/dist/runtime/components/KDropdown/KDropdown.global.vue +15 -4
- package/dist/runtime/components/KDropdown/KDropdown.global.vue.d.ts +36 -0
- package/dist/runtime/components/KDropdown/KDropdown.logic.d.ts +58 -1
- package/dist/runtime/components/KDropdown/KDropdown.logic.js +152 -4
- package/dist/runtime/components/KGantt/KGantt.logic.d.ts +2 -2
- package/dist/runtime/components/KGrid/KGrid.global.d.vue.ts +8 -57
- package/dist/runtime/components/KGrid/KGrid.global.vue +9 -2
- package/dist/runtime/components/KGrid/KGrid.global.vue.d.ts +8 -57
- package/dist/runtime/components/KHourPicker/KHourPicker.global.d.vue.ts +50 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.global.vue +28 -12
- package/dist/runtime/components/KHourPicker/KHourPicker.global.vue.d.ts +50 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.logic.d.ts +31 -3
- package/dist/runtime/components/KHourPicker/KHourPicker.logic.js +38 -10
- package/dist/runtime/components/KHourSelect/KHourSelect.global.d.vue.ts +9 -0
- package/dist/runtime/components/KHourSelect/KHourSelect.global.vue +1 -0
- package/dist/runtime/components/KHourSelect/KHourSelect.global.vue.d.ts +9 -0
- package/dist/runtime/components/KHourSelect/KHourSelect.logic.d.ts +5 -0
- package/dist/runtime/components/KHourSelect/KHourSelect.logic.js +8 -1
- package/dist/runtime/components/KIcon/KIcon.global.d.vue.ts +1 -1
- package/dist/runtime/components/KIcon/KIcon.global.vue.d.ts +1 -1
- package/dist/runtime/components/KIcon/KIcon.logic.d.ts +1 -1
- package/dist/runtime/components/KIcon/KIcon.logic.js +13 -8
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.d.vue.ts +30 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue +5 -2
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue.d.ts +30 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.d.ts +16 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.js +23 -5
- package/dist/runtime/components/KModal/KModal.global.d.vue.ts +14 -2
- package/dist/runtime/components/KModal/KModal.global.vue +6 -1
- package/dist/runtime/components/KModal/KModal.global.vue.d.ts +14 -2
- package/dist/runtime/components/KModal/KModal.logic.d.ts +10 -2
- package/dist/runtime/components/KModal/KModal.logic.js +12 -3
- package/dist/runtime/components/KPanel/KPanel.global.d.vue.ts +5 -28
- package/dist/runtime/components/KPanel/KPanel.global.vue +12 -4
- package/dist/runtime/components/KPanel/KPanel.global.vue.d.ts +5 -28
- package/dist/runtime/components/KPanel/KPanel.logic.d.ts +10 -0
- package/dist/runtime/components/KPanel/KPanel.logic.js +8 -0
- package/dist/runtime/components/KRadiobox/KRadiobox.global.d.vue.ts +21 -0
- package/dist/runtime/components/KRadiobox/KRadiobox.global.vue +3 -1
- package/dist/runtime/components/KRadiobox/KRadiobox.global.vue.d.ts +21 -0
- package/dist/runtime/components/KRadiobox/KRadiobox.logic.d.ts +11 -0
- package/dist/runtime/components/KRadiobox/KRadiobox.logic.js +9 -0
- package/dist/runtime/components/KRangeSlider/KRangeSlider.global.d.vue.ts +9 -0
- package/dist/runtime/components/KRangeSlider/KRangeSlider.global.vue +1 -0
- package/dist/runtime/components/KRangeSlider/KRangeSlider.global.vue.d.ts +9 -0
- package/dist/runtime/components/KRangeSlider/KRangeSlider.logic.d.ts +5 -0
- package/dist/runtime/components/KRangeSlider/KRangeSlider.logic.js +4 -0
- package/dist/runtime/components/KSearchTree/KSearchTree.logic.d.ts +7 -1
- package/dist/runtime/components/KSearchTree/KSearchTree.logic.js +6 -1
- package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.logic.d.ts +7 -1
- package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.logic.js +6 -1
- package/dist/runtime/components/KSlider/KSlider.global.d.vue.ts +9 -0
- package/dist/runtime/components/KSlider/KSlider.global.vue +1 -0
- package/dist/runtime/components/KSlider/KSlider.global.vue.d.ts +9 -0
- package/dist/runtime/components/KSlider/KSlider.logic.d.ts +5 -0
- package/dist/runtime/components/KSlider/KSlider.logic.js +4 -0
- package/dist/runtime/components/KTextarea/KTextarea.global.d.vue.ts +30 -0
- package/dist/runtime/components/KTextarea/KTextarea.global.vue +4 -1
- package/dist/runtime/components/KTextarea/KTextarea.global.vue.d.ts +30 -0
- package/dist/runtime/components/KTextarea/KTextarea.logic.d.ts +16 -0
- package/dist/runtime/components/KTextarea/KTextarea.logic.js +13 -0
- package/dist/runtime/components/KTextbox/KTextbox.global.d.vue.ts +44 -2
- package/dist/runtime/components/KTextbox/KTextbox.global.vue +8 -4
- package/dist/runtime/components/KTextbox/KTextbox.global.vue.d.ts +44 -2
- package/dist/runtime/components/KTextbox/KTextbox.logic.d.ts +26 -4
- package/dist/runtime/components/KTextbox/KTextbox.logic.js +25 -5
- 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 +31 -1
- package/dist/runtime/components/KTooltip/KTooltip.global.vue +20 -1
- package/dist/runtime/components/KTooltip/KTooltip.global.vue.d.ts +31 -1
- package/dist/runtime/components/KTooltip/KTooltip.logic.d.ts +25 -2
- package/dist/runtime/components/KTooltip/KTooltip.logic.js +81 -3
- package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +74 -7
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue +16 -3
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +74 -7
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.d.ts +38 -1
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.js +36 -1
- package/dist/runtime/components/KTreeView/KTreeView.global.d.vue.ts +6 -6
- package/dist/runtime/components/KTreeView/KTreeView.global.vue.d.ts +6 -6
- package/dist/runtime/components/KTreeView/KTreeView.logic.d.ts +2 -7
- 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/usePresetComponent.d.ts +16 -0
- package/dist/runtime/composables/usePresetComponent.js +43 -21
- package/dist/runtime/presets/default/assets/scss/css-variables.css +96 -17
- package/dist/runtime/presets/default/assets/scss/css-variables.scss +320 -0
- package/dist/runtime/presets/default/assets/scss/docs.scss +52 -0
- package/dist/runtime/presets/default/assets/scss/index.css +191 -17
- package/dist/runtime/presets/default/assets/scss/index.scss +86 -0
- package/dist/runtime/presets/default/assets/scss/mixins.scss +94 -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/camera.svg +4 -0
- package/dist/runtime/presets/default/assets/svg/clock.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/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/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/warning.svg +5 -0
- package/dist/runtime/presets/default/components/KAccordion/KAccordion.vue +5 -2
- package/dist/runtime/presets/default/components/KAccordion/KAccordionItem.vue +40 -37
- package/dist/runtime/presets/default/components/KBulkActions/KBulkActions.vue +43 -23
- package/dist/runtime/presets/default/components/KButton/KButton.vue +176 -430
- package/dist/runtime/presets/default/components/KCalendar/KCalendar.vue +69 -53
- package/dist/runtime/presets/default/components/KCalendar/KCalendarMonth.vue +195 -161
- package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.d.vue.ts +3 -0
- package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.vue +59 -42
- package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.vue.d.ts +3 -0
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.d.vue.ts +8 -0
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue +129 -79
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue.d.ts +8 -0
- package/dist/runtime/presets/default/components/KCombobox/KComboboxList.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KCombobox/KComboboxList.vue +85 -61
- package/dist/runtime/presets/default/components/KCombobox/KComboboxList.vue.d.ts +1 -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 +20 -1
- package/dist/runtime/presets/default/components/KContextMenu/KContextMenu.vue +60 -3
- package/dist/runtime/presets/default/components/KContextMenu/KContextMenu.vue.d.ts +20 -1
- package/dist/runtime/presets/default/components/KDataIterator/KDataIterator.vue +40 -31
- package/dist/runtime/presets/default/components/KDatatable/KDatatable.d.vue.ts +2 -0
- package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue +150 -93
- package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue.d.ts +2 -0
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.d.vue.ts +8 -0
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue +60 -25
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue.d.ts +8 -0
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.d.vue.ts +7 -0
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue +85 -52
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue.d.ts +7 -0
- package/dist/runtime/presets/default/components/KDropdown/KDropdown.d.vue.ts +16 -0
- package/dist/runtime/presets/default/components/KDropdown/KDropdown.vue +109 -25
- package/dist/runtime/presets/default/components/KDropdown/KDropdown.vue.d.ts +16 -0
- package/dist/runtime/presets/default/components/KGantt/KGantt.d.vue.ts +2 -2
- package/dist/runtime/presets/default/components/KGantt/KGantt.vue +343 -247
- package/dist/runtime/presets/default/components/KGantt/KGantt.vue.d.ts +2 -2
- package/dist/runtime/presets/default/components/KGantt/KGanttRuler.vue +40 -35
- package/dist/runtime/presets/default/components/KGantt/KGanttTimeline.vue +170 -140
- package/dist/runtime/presets/default/components/KGrid/KGrid.vue +63 -60
- package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.d.vue.ts +9 -2
- package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue +50 -28
- package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue.d.ts +9 -2
- package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.vue +39 -28
- package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.vue.d.ts +1 -0
- package/dist/runtime/presets/default/components/KIcon/KIcon.d.vue.ts +1 -1
- package/dist/runtime/presets/default/components/KIcon/KIcon.vue +31 -22
- package/dist/runtime/presets/default/components/KIcon/KIcon.vue.d.ts +1 -1
- package/dist/runtime/presets/default/components/KLoader/KLoader.vue +65 -48
- package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.d.vue.ts +3 -0
- package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue +119 -84
- package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue.d.ts +3 -0
- package/dist/runtime/presets/default/components/KModal/KModal.d.vue.ts +2 -0
- package/dist/runtime/presets/default/components/KModal/KModal.vue +85 -35
- package/dist/runtime/presets/default/components/KModal/KModal.vue.d.ts +2 -0
- package/dist/runtime/presets/default/components/KPagination/KPagination.vue +42 -40
- package/dist/runtime/presets/default/components/KPanel/KPanel.d.vue.ts +3 -0
- package/dist/runtime/presets/default/components/KPanel/KPanel.vue +100 -34
- package/dist/runtime/presets/default/components/KPanel/KPanel.vue.d.ts +3 -0
- package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.d.vue.ts +2 -0
- package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.vue +46 -35
- package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.vue.d.ts +2 -0
- package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.vue +160 -125
- package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.vue.d.ts +1 -0
- package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.d.vue.ts +4 -1
- package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.vue +9 -1
- package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.vue.d.ts +4 -1
- package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.d.vue.ts +4 -1
- package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.vue +9 -1
- package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.vue.d.ts +4 -1
- package/dist/runtime/presets/default/components/KSlider/KSlider.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KSlider/KSlider.vue +125 -100
- package/dist/runtime/presets/default/components/KSlider/KSlider.vue.d.ts +1 -0
- package/dist/runtime/presets/default/components/KTabs/KTabItem.vue +41 -38
- package/dist/runtime/presets/default/components/KTabs/KTabs.vue +105 -8
- package/dist/runtime/presets/default/components/KTextarea/KTextarea.d.vue.ts +3 -0
- package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue +48 -21
- package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue.d.ts +3 -0
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.d.vue.ts +5 -1
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue +110 -37
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue.d.ts +5 -1
- 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 +14 -1
- package/dist/runtime/presets/default/components/KTooltip/KTooltip.vue +71 -3
- package/dist/runtime/presets/default/components/KTooltip/KTooltip.vue.d.ts +14 -1
- package/dist/runtime/presets/default/components/KTree/KTree.vue +103 -80
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.d.vue.ts +7 -0
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue +96 -55
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue.d.ts +7 -0
- package/dist/runtime/presets/default/components/KTreeView/KTreeCell.vue +31 -30
- package/dist/runtime/presets/default/components/KTreeView/KTreeView.d.vue.ts +2 -2
- package/dist/runtime/presets/default/components/KTreeView/KTreeView.vue +34 -27
- package/dist/runtime/presets/default/components/KTreeView/KTreeView.vue.d.ts +2 -2
- 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 +8 -9
- package/dist/runtime/utils/PresetResolver.js +18 -12
- package/package.json +11 -7
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
2
|
.KSlider(:class="{ disabled: isDisabled }")
|
|
3
|
+
label.k-input-label(v-if="label") {{ label }}
|
|
3
4
|
.slider-container(@click="handleTrackClick")
|
|
4
5
|
.slider-track
|
|
5
6
|
.slider-fill(:style="{ width: valuePercent + '%' }")
|
|
@@ -14,108 +15,132 @@
|
|
|
14
15
|
)
|
|
15
16
|
</template>
|
|
16
17
|
|
|
17
|
-
<script setup>
|
|
18
|
-
import { computed } from
|
|
19
|
-
const props = defineProps({
|
|
20
|
-
rangeMin: { type: Number, required: true },
|
|
21
|
-
rangeMax: { type: Number, required: true },
|
|
22
|
-
rangeStep: { type: Number, required: true },
|
|
23
|
-
isDisabled: { type: Boolean, required: true },
|
|
24
|
-
currentValue: { type: Number, required: true },
|
|
25
|
-
valuePercent: { type: Number, required: true }
|
|
26
|
-
});
|
|
27
|
-
const emit = defineEmits(["update:value"]);
|
|
28
|
-
const updateValue = (event) => {
|
|
29
|
-
const value = parseFloat(event.target.value);
|
|
30
|
-
emit("update:value", value);
|
|
31
|
-
};
|
|
32
|
-
const handleTrackClick = (event) => {
|
|
33
|
-
if (props.isDisabled) return;
|
|
34
|
-
const target = event.currentTarget;
|
|
35
|
-
const rect = target.getBoundingClientRect();
|
|
36
|
-
const clickX = event.clientX - rect.left;
|
|
37
|
-
const percentage = clickX / rect.width;
|
|
38
|
-
const rawValue = props.rangeMin + percentage * (props.rangeMax - props.rangeMin);
|
|
39
|
-
const steppedValue = Math.round(rawValue / props.rangeStep) * props.rangeStep;
|
|
40
|
-
const value = Math.max(props.rangeMin, Math.min(props.rangeMax, steppedValue));
|
|
41
|
-
emit("update:value", value);
|
|
42
|
-
};
|
|
43
|
-
</script>
|
|
18
|
+
<script lang="ts" setup>
|
|
19
|
+
import { computed } from 'vue'
|
|
44
20
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
background-color: var(--neutral-200);
|
|
64
|
-
border-radius: 3px;
|
|
65
|
-
}
|
|
66
|
-
.KSlider .slider-fill {
|
|
67
|
-
position: absolute;
|
|
68
|
-
height: 6px;
|
|
69
|
-
background-color: var(--primary-500);
|
|
70
|
-
border-radius: 3px;
|
|
71
|
-
z-index: 1;
|
|
72
|
-
}
|
|
73
|
-
.KSlider .slider-input {
|
|
74
|
-
position: absolute;
|
|
75
|
-
width: 100%;
|
|
76
|
-
height: 1px;
|
|
77
|
-
background: transparent;
|
|
78
|
-
pointer-events: none;
|
|
79
|
-
-webkit-appearance: none;
|
|
80
|
-
appearance: none;
|
|
81
|
-
}
|
|
82
|
-
.KSlider .slider-input::-webkit-slider-thumb {
|
|
83
|
-
-webkit-appearance: none;
|
|
84
|
-
appearance: none;
|
|
85
|
-
width: 18px;
|
|
86
|
-
height: 18px;
|
|
87
|
-
background-color: var(--primary-500);
|
|
88
|
-
border: 2px solid white;
|
|
89
|
-
border-radius: 50%;
|
|
90
|
-
cursor: pointer;
|
|
91
|
-
pointer-events: auto;
|
|
92
|
-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
93
|
-
transition: transform 0.15s ease;
|
|
94
|
-
}
|
|
95
|
-
.KSlider .slider-input::-webkit-slider-thumb:hover {
|
|
96
|
-
transform: scale(1.15);
|
|
97
|
-
}
|
|
98
|
-
.KSlider .slider-input::-moz-range-thumb {
|
|
99
|
-
width: 18px;
|
|
100
|
-
height: 18px;
|
|
101
|
-
background-color: var(--primary-500);
|
|
102
|
-
border: 2px solid white;
|
|
103
|
-
border-radius: 50%;
|
|
104
|
-
cursor: pointer;
|
|
105
|
-
pointer-events: auto;
|
|
106
|
-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
107
|
-
transition: transform 0.15s ease;
|
|
108
|
-
}
|
|
109
|
-
.KSlider .slider-input::-moz-range-thumb:hover {
|
|
110
|
-
transform: scale(1.15);
|
|
111
|
-
}
|
|
112
|
-
.KSlider .slider-input:disabled {
|
|
113
|
-
cursor: not-allowed;
|
|
21
|
+
// Default template for KSlider
|
|
22
|
+
const props = defineProps<{
|
|
23
|
+
label?: string
|
|
24
|
+
rangeMin: number
|
|
25
|
+
rangeMax: number
|
|
26
|
+
rangeStep: number
|
|
27
|
+
isDisabled: boolean
|
|
28
|
+
currentValue: number
|
|
29
|
+
valuePercent: number
|
|
30
|
+
}>()
|
|
31
|
+
|
|
32
|
+
const emit = defineEmits<{
|
|
33
|
+
(e: 'update:value', value: number): void
|
|
34
|
+
}>()
|
|
35
|
+
|
|
36
|
+
const updateValue = (event: Event) => {
|
|
37
|
+
const value = parseFloat((event.target as HTMLInputElement).value)
|
|
38
|
+
emit('update:value', value)
|
|
114
39
|
}
|
|
115
|
-
|
|
116
|
-
|
|
40
|
+
|
|
41
|
+
const handleTrackClick = (event: MouseEvent) => {
|
|
42
|
+
if (props.isDisabled) return
|
|
43
|
+
|
|
44
|
+
const target = event.currentTarget as HTMLElement
|
|
45
|
+
const rect = target.getBoundingClientRect()
|
|
46
|
+
const clickX = event.clientX - rect.left
|
|
47
|
+
const percentage = clickX / rect.width
|
|
48
|
+
const rawValue = props.rangeMin + (percentage * (props.rangeMax - props.rangeMin))
|
|
49
|
+
|
|
50
|
+
// Round to step
|
|
51
|
+
const steppedValue = Math.round(rawValue / props.rangeStep) * props.rangeStep
|
|
52
|
+
const value = Math.max(props.rangeMin, Math.min(props.rangeMax, steppedValue))
|
|
53
|
+
|
|
54
|
+
emit('update:value', value)
|
|
117
55
|
}
|
|
118
|
-
|
|
119
|
-
|
|
56
|
+
</script>
|
|
57
|
+
|
|
58
|
+
<style lang="scss" scoped>
|
|
59
|
+
.KSlider {
|
|
60
|
+
position: relative;
|
|
61
|
+
padding: 20px 0;
|
|
62
|
+
|
|
63
|
+
&.disabled {
|
|
64
|
+
opacity: 0.5;
|
|
65
|
+
cursor: not-allowed;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.slider-container {
|
|
69
|
+
position: relative;
|
|
70
|
+
height: 6px;
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.slider-track {
|
|
75
|
+
position: absolute;
|
|
76
|
+
width: 100%;
|
|
77
|
+
height: 6px;
|
|
78
|
+
background-color: var(--neutral-200);
|
|
79
|
+
border-radius: 3px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.slider-fill {
|
|
83
|
+
position: absolute;
|
|
84
|
+
height: 6px;
|
|
85
|
+
background-color: var(--primary-500);
|
|
86
|
+
border-radius: 3px;
|
|
87
|
+
z-index: 1;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.slider-input {
|
|
91
|
+
position: absolute;
|
|
92
|
+
width: 100%;
|
|
93
|
+
height: 1px;
|
|
94
|
+
background: transparent;
|
|
95
|
+
pointer-events: none;
|
|
96
|
+
-webkit-appearance: none;
|
|
97
|
+
appearance: none;
|
|
98
|
+
|
|
99
|
+
&::-webkit-slider-thumb {
|
|
100
|
+
-webkit-appearance: none;
|
|
101
|
+
appearance: none;
|
|
102
|
+
width: 18px;
|
|
103
|
+
height: 18px;
|
|
104
|
+
background-color: var(--primary-500);
|
|
105
|
+
border: 2px solid white;
|
|
106
|
+
border-radius: 50%;
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
pointer-events: auto;
|
|
109
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
110
|
+
transition: transform 0.15s ease;
|
|
111
|
+
|
|
112
|
+
&:hover {
|
|
113
|
+
transform: scale(1.15);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&::-moz-range-thumb {
|
|
118
|
+
width: 18px;
|
|
119
|
+
height: 18px;
|
|
120
|
+
background-color: var(--primary-500);
|
|
121
|
+
border: 2px solid white;
|
|
122
|
+
border-radius: 50%;
|
|
123
|
+
cursor: pointer;
|
|
124
|
+
pointer-events: auto;
|
|
125
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
126
|
+
transition: transform 0.15s ease;
|
|
127
|
+
|
|
128
|
+
&:hover {
|
|
129
|
+
transform: scale(1.15);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&:disabled {
|
|
134
|
+
cursor: not-allowed;
|
|
135
|
+
|
|
136
|
+
&::-webkit-slider-thumb {
|
|
137
|
+
cursor: not-allowed;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&::-moz-range-thumb {
|
|
141
|
+
cursor: not-allowed;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
120
145
|
}
|
|
121
146
|
</style>
|
|
@@ -1,46 +1,49 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
|
-
.KTab-item(v-
|
|
2
|
+
.KTab-item(v-show="isOpen")
|
|
3
3
|
slot
|
|
4
4
|
</template>
|
|
5
5
|
|
|
6
|
-
<script setup>
|
|
7
|
-
const props = defineProps
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
})
|
|
6
|
+
<script lang="ts" setup>
|
|
7
|
+
const props = defineProps<{
|
|
8
|
+
title: string
|
|
9
|
+
isOpen: boolean
|
|
10
|
+
toggleTab: () => void
|
|
11
|
+
}>()
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
|
-
<style scoped>
|
|
15
|
-
.KTab-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
14
|
+
<style lang="scss" scoped>
|
|
15
|
+
.KTab-item {
|
|
16
|
+
&__header {
|
|
17
|
+
padding: var(--component-gap);
|
|
18
|
+
background-color: var(--background-color-medium);
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
border-radius: var(--box-border-radius);
|
|
21
|
+
|
|
22
|
+
.isOpen & {
|
|
23
|
+
border-bottom-left-radius: 0;
|
|
24
|
+
border-bottom-right-radius: 0;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
&__title {
|
|
28
|
+
flex-grow: 1;
|
|
29
|
+
}
|
|
30
|
+
&__chevron {
|
|
31
|
+
transform: rotate(90deg);
|
|
32
|
+
transition: transform 0.3s ease-in-out;
|
|
33
|
+
&.open {
|
|
34
|
+
transform: rotate(270deg);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
&__content {
|
|
38
|
+
display: none;
|
|
39
|
+
padding-top: var(--box-padding);
|
|
40
|
+
padding-bottom: var(--box-padding);
|
|
41
|
+
&.open {
|
|
42
|
+
border-bottom: var(--box-border);
|
|
43
|
+
}
|
|
44
|
+
.isOpen & {
|
|
45
|
+
display: block;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
45
48
|
}
|
|
46
49
|
</style>
|
|
@@ -2,15 +2,112 @@
|
|
|
2
2
|
.KTab
|
|
3
3
|
KPanel
|
|
4
4
|
template(#header)
|
|
5
|
-
|
|
6
|
-
KButton(v-
|
|
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") >
|
|
7
17
|
slot
|
|
8
18
|
</template>
|
|
9
19
|
|
|
10
|
-
<script setup>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
+
}
|
|
16
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>
|
|
@@ -1,29 +1,56 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
|
-
|
|
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 }}
|
|
3
6
|
</template>
|
|
4
7
|
|
|
5
|
-
<script setup>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
})
|
|
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
|
+
})
|
|
11
31
|
</script>
|
|
12
32
|
|
|
13
|
-
<style scoped>
|
|
33
|
+
<style lang="scss" scoped>
|
|
14
34
|
.KTextarea {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
+
}
|
|
28
55
|
}
|
|
29
56
|
</style>
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
2
3
|
text: string;
|
|
3
|
-
|
|
4
|
+
showClear: boolean;
|
|
4
5
|
clear: () => void;
|
|
5
6
|
placeholder: string;
|
|
7
|
+
type: string;
|
|
8
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
9
|
+
validationText?: string;
|
|
6
10
|
};
|
|
7
11
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
8
12
|
"update:text": (value: string) => any;
|