@katlux/toolkit 0.1.0-beta.8 → 0.1.0-beta.80
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 +5 -1
- package/dist/compiled/composables/usePresetComponent.mjs +21 -16
- package/dist/module.cjs +52 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +52 -1
- package/dist/runtime/components/KButton/KButton.global.d.vue.ts +1 -1
- package/dist/runtime/components/KButton/KButton.global.vue.d.ts +1 -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 +88 -12
- package/dist/runtime/components/KCombobox/KCombobox.global.vue +19 -4
- package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +88 -12
- 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/KDataIterator.global.d.vue.ts +1 -1
- package/dist/runtime/components/KDatatable/KDataIterator.global.vue.d.ts +1 -1
- 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/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 +51 -1
- package/dist/runtime/components/KHourPicker/KHourPicker.global.vue +28 -12
- package/dist/runtime/components/KHourPicker/KHourPicker.global.vue.d.ts +51 -1
- 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 +31 -1
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue +5 -2
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue.d.ts +31 -1
- 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 +5 -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/KTree/KTree.global.d.vue.ts +1 -1
- package/dist/runtime/components/KTree/KTree.global.vue.d.ts +1 -1
- package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +75 -8
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue +16 -3
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +75 -8
- 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/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 +21 -16
- package/dist/runtime/presets/default/assets/scss/css-variables.css +89 -13
- package/dist/runtime/presets/default/assets/scss/css-variables.scss +317 -0
- package/dist/runtime/presets/default/assets/scss/docs.scss +52 -0
- package/dist/runtime/presets/default/assets/scss/index.css +176 -13
- package/dist/runtime/presets/default/assets/scss/index.scss +77 -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 +29 -22
- package/dist/runtime/presets/default/components/KButton/KButton.vue +147 -428
- package/dist/runtime/presets/default/components/KCalendar/KCalendar.vue +57 -53
- package/dist/runtime/presets/default/components/KCalendar/KCalendarMonth.vue +189 -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 +128 -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 +78 -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 +121 -92
- 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 +83 -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 +100 -25
- package/dist/runtime/presets/default/components/KDropdown/KDropdown.vue.d.ts +16 -0
- package/dist/runtime/presets/default/components/KGantt/KGantt.vue +337 -241
- 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 +36 -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 +99 -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 +42 -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 +104 -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 +70 -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 +90 -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.vue +34 -27
- 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/package.json +6 -6
|
@@ -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,50 @@
|
|
|
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
|
+
padding: var(--component-gap);
|
|
39
|
+
font-family: inherit;
|
|
40
|
+
font-size: 14px;
|
|
41
|
+
resize: vertical;
|
|
42
|
+
outline: none;
|
|
43
|
+
width: 100%;
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
|
|
46
|
+
&:focus {
|
|
47
|
+
border-color: var(--input-focus-border-color);
|
|
48
|
+
}
|
|
28
49
|
}
|
|
29
50
|
</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;
|
|
@@ -1,46 +1,113 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
|
-
|
|
3
|
-
input(
|
|
4
|
-
|
|
2
|
+
.KTextbox-wrapper(:class="$attrs.class" :style="$attrs.style")
|
|
3
|
+
label.k-input-label(v-if="label") {{ label }}
|
|
4
|
+
.KTextbox(:class="validation ? `is-${validation}` : ''")
|
|
5
|
+
input(v-bind="inputAttrs" :type="props.type" v-model="text" :placeholder="placeholder")
|
|
6
|
+
KIcon(v-if="showClear" @click.stop="clear" @mousedown.stop iconname="close" width="10" height="10").closeIcon
|
|
7
|
+
span.validation-text(v-if="validation && ['success', 'warning', 'error'].includes(validation) && validationText" :class="`is-${validation}`") {{ validationText }}
|
|
5
8
|
</template>
|
|
6
9
|
|
|
7
|
-
<script setup>
|
|
8
|
-
import { computed } from
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const
|
|
10
|
+
<script lang="ts" setup>
|
|
11
|
+
import { computed, useAttrs } from 'vue'
|
|
12
|
+
|
|
13
|
+
defineOptions({
|
|
14
|
+
inheritAttrs: false
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
// Default template for KTextbox
|
|
18
|
+
const props = defineProps<{
|
|
19
|
+
label?: string
|
|
20
|
+
text: string
|
|
21
|
+
showClear: boolean
|
|
22
|
+
clear: () => void
|
|
23
|
+
placeholder: string
|
|
24
|
+
type: string
|
|
25
|
+
validation?: 'success' | 'warning' | 'error' | null
|
|
26
|
+
validationText?: string
|
|
27
|
+
}>()
|
|
28
|
+
|
|
29
|
+
const emit = defineEmits<{
|
|
30
|
+
(e: 'update:text', value: string): void
|
|
31
|
+
}>()
|
|
32
|
+
|
|
16
33
|
const text = computed({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
})
|
|
34
|
+
get: () => props.text,
|
|
35
|
+
set: (value) => emit('update:text', value)
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
const attrs = useAttrs()
|
|
39
|
+
const inputAttrs = computed(() => {
|
|
40
|
+
const { class: _, style: __, ...rest } = attrs
|
|
41
|
+
return rest
|
|
42
|
+
})
|
|
20
43
|
</script>
|
|
21
44
|
|
|
22
|
-
<style scoped>
|
|
23
|
-
.KTextbox {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
height: 40px;
|
|
29
|
-
}
|
|
30
|
-
.KTextbox input {
|
|
31
|
-
background-color: var(--neutral-50);
|
|
32
|
-
box-sizing: border-box;
|
|
33
|
-
flex-grow: 1;
|
|
34
|
-
padding: var(--component-gap);
|
|
35
|
-
border: none;
|
|
36
|
-
outline: none;
|
|
45
|
+
<style lang="scss" scoped>
|
|
46
|
+
.KTextbox-wrapper {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
flex: 1;
|
|
50
|
+
min-width: 0;
|
|
37
51
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
52
|
+
|
|
53
|
+
.KTextbox {
|
|
54
|
+
position: relative;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
border: var(--input-border);
|
|
58
|
+
border-radius: var(--input-border-radius);
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
background-color: var(--input-bg);
|
|
61
|
+
height: var(--input-height);
|
|
62
|
+
box-sizing: border-box;
|
|
63
|
+
transition: all var(--transition-fast, 0.2s ease);
|
|
64
|
+
|
|
65
|
+
&:focus-within {
|
|
66
|
+
border-color: var(--input-focus-border-color);
|
|
67
|
+
box-shadow: var(--input-focus-shadow);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:hover {
|
|
71
|
+
border-color: var(--input-hover-border-color);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
input {
|
|
75
|
+
flex: 1;
|
|
76
|
+
min-width: 0;
|
|
77
|
+
background-color: var(--input-bg);
|
|
78
|
+
box-sizing: border-box;
|
|
79
|
+
padding: 0 var(--component-gap);
|
|
80
|
+
border: none;
|
|
81
|
+
outline: none;
|
|
82
|
+
height: 100%;
|
|
83
|
+
width: 100%;
|
|
84
|
+
|
|
85
|
+
/* Hide arrows in Chrome, Safari, Edge, Opera */
|
|
86
|
+
&::-webkit-outer-spin-button,
|
|
87
|
+
&::-webkit-inner-spin-button {
|
|
88
|
+
-webkit-appearance: none;
|
|
89
|
+
margin: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Hide arrows in Firefox */
|
|
93
|
+
&[type=number] {
|
|
94
|
+
-moz-appearance: textfield;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.closeIcon {
|
|
99
|
+
position: absolute;
|
|
100
|
+
right: var(--component-gap);
|
|
101
|
+
top: 50%;
|
|
102
|
+
transform: translateY(-50%);
|
|
103
|
+
color: var(--icon-color-medium);
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
flex-shrink: 0;
|
|
106
|
+
min-width: 10px;
|
|
107
|
+
|
|
108
|
+
&:hover {
|
|
109
|
+
color: var(--icon-color-dark);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
45
112
|
}
|
|
46
113
|
</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;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { KToastType } from '../../../../components/KToast/KToast.logic.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue: boolean;
|
|
4
|
+
text?: string;
|
|
5
|
+
timeout?: number;
|
|
6
|
+
teleport?: boolean;
|
|
7
|
+
type?: KToastType;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
close: (...args: any[]) => void;
|
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
<template lang="pug">
|
|
2
|
+
Teleport(to="body" :disabled="!teleport")
|
|
3
|
+
Transition(name="toast-fade")
|
|
4
|
+
.KToast(
|
|
5
|
+
v-if="modelValue"
|
|
6
|
+
:class="[`type-${type}`, { 'is-fixed': teleport }]"
|
|
7
|
+
)
|
|
8
|
+
.KToast--content
|
|
9
|
+
slot {{ text }}
|
|
10
|
+
.KToast--actions
|
|
11
|
+
button.close-btn(@click="$emit('close')")
|
|
12
|
+
KIcon(iconname="close" :width="16" :height="16")
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script lang="ts" setup>
|
|
16
|
+
import type { KToastType } from '../../../../components/KToast/KToast.logic'
|
|
17
|
+
|
|
18
|
+
defineProps<{
|
|
19
|
+
modelValue: boolean
|
|
20
|
+
text?: string
|
|
21
|
+
timeout?: number
|
|
22
|
+
teleport?: boolean
|
|
23
|
+
type?: KToastType
|
|
24
|
+
}>()
|
|
25
|
+
|
|
26
|
+
defineEmits(['update:modelValue', 'close'])
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<style lang="scss" scoped>
|
|
30
|
+
.KToast {
|
|
31
|
+
--current-toast-bg: var(--panel-bg-default);
|
|
32
|
+
--current-toast-border: var(--neutral-200);
|
|
33
|
+
--current-toast-text: var(--font-color-default);
|
|
34
|
+
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
padding: var(--gap-sm) var(--gap-md);
|
|
38
|
+
border-radius: var(--border-radius-md);
|
|
39
|
+
border: 1px solid var(--current-toast-border);
|
|
40
|
+
background-color: color-mix(in srgb, var(--current-toast-bg), transparent calc((1 - var(--panel-bg-opacity, 0.9)) * 100%));
|
|
41
|
+
backdrop-filter: blur(var(--panel-blur, 8px));
|
|
42
|
+
box-shadow: var(--shadow-lg);
|
|
43
|
+
min-width: 250px;
|
|
44
|
+
max-width: 450px;
|
|
45
|
+
pointer-events: auto;
|
|
46
|
+
z-index: 9999;
|
|
47
|
+
|
|
48
|
+
&.is-fixed {
|
|
49
|
+
position: fixed;
|
|
50
|
+
top: 20px;
|
|
51
|
+
right: 20px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.type-primary {
|
|
55
|
+
--current-toast-bg: var(--panel-bg-primary);
|
|
56
|
+
--current-toast-border: var(--color-primary-300);
|
|
57
|
+
}
|
|
58
|
+
&.type-success {
|
|
59
|
+
--current-toast-bg: var(--panel-bg-success);
|
|
60
|
+
--current-toast-border: var(--color-success-300);
|
|
61
|
+
}
|
|
62
|
+
&.type-warning {
|
|
63
|
+
--current-toast-bg: var(--panel-bg-warning);
|
|
64
|
+
--current-toast-border: var(--color-warning-300);
|
|
65
|
+
}
|
|
66
|
+
&.type-danger, &.type-error {
|
|
67
|
+
--current-toast-bg: var(--panel-bg-danger);
|
|
68
|
+
--current-toast-border: var(--color-danger-300);
|
|
69
|
+
}
|
|
70
|
+
&.type-info {
|
|
71
|
+
--current-toast-bg: var(--panel-bg-info);
|
|
72
|
+
--current-toast-border: var(--color-info-300);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&--content {
|
|
76
|
+
flex: 1;
|
|
77
|
+
font-size: var(--font-size-md);
|
|
78
|
+
color: var(--current-toast-text);
|
|
79
|
+
margin-right: var(--gap-md);
|
|
80
|
+
line-height: 1.4;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&--actions {
|
|
84
|
+
display: flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
|
|
87
|
+
.close-btn {
|
|
88
|
+
background: transparent;
|
|
89
|
+
border: none;
|
|
90
|
+
padding: 4px;
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
display: flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
justify-content: center;
|
|
95
|
+
border-radius: var(--border-radius-sm);
|
|
96
|
+
color: var(--current-toast-text);
|
|
97
|
+
opacity: 0.6;
|
|
98
|
+
transition: opacity var(--transition-fast), background-color var(--transition-fast);
|
|
99
|
+
|
|
100
|
+
&:hover {
|
|
101
|
+
opacity: 1;
|
|
102
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.toast-fade-enter-active,
|
|
109
|
+
.toast-fade-leave-active {
|
|
110
|
+
transition: all 0.3s ease;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.toast-fade-enter-from,
|
|
114
|
+
.toast-fade-leave-to {
|
|
115
|
+
opacity: 0;
|
|
116
|
+
transform: translateY(-20px) scale(0.95);
|
|
117
|
+
}
|
|
118
|
+
</style>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { KToastType } from '../../../../components/KToast/KToast.logic.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue: boolean;
|
|
4
|
+
text?: string;
|
|
5
|
+
timeout?: number;
|
|
6
|
+
teleport?: boolean;
|
|
7
|
+
type?: KToastType;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
close: (...args: any[]) => void;
|
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
tooltipStyle: Record<string, string>;
|
|
4
|
+
showTooltip: () => void;
|
|
5
|
+
hideTooltip: () => void;
|
|
6
|
+
text: string;
|
|
7
|
+
position: 'top' | 'bottom' | 'left' | 'right';
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
registerWrapperRef: (...args: any[]) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onRegisterWrapperRef?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
15
|
declare const _default: typeof __VLS_export;
|
|
3
16
|
export default _default;
|