@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,99 +1,134 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
2
|
.KMaskTextbox
|
|
3
|
+
label.k-input-label(v-if="label") {{ label }}
|
|
3
4
|
KTextbox(
|
|
4
5
|
:modelValue="maskedValue"
|
|
5
6
|
:placeholder="placeholder"
|
|
6
7
|
:showClear="showClear"
|
|
8
|
+
:clear="handleClear"
|
|
7
9
|
:maxlength="mask.length"
|
|
10
|
+
:validation="validation"
|
|
11
|
+
:validationText="validationText"
|
|
8
12
|
@update:modelValue="handleUpdate"
|
|
9
13
|
@beforeinput="handleBeforeInput"
|
|
10
14
|
)
|
|
11
15
|
</template>
|
|
12
16
|
|
|
13
|
-
<script setup>
|
|
14
|
-
import { getMaskPatternDef } from
|
|
15
|
-
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
17
|
+
<script lang="ts" setup>
|
|
18
|
+
import { getMaskPatternDef } from '../../../../components/KMaskTextbox/KMaskTextbox.logic'
|
|
19
|
+
|
|
20
|
+
const props = defineProps<{
|
|
21
|
+
label?: string
|
|
22
|
+
maskedValue: string
|
|
23
|
+
placeholder: string
|
|
24
|
+
showClear: boolean
|
|
25
|
+
mask: string
|
|
26
|
+
validation?: 'success' | 'warning' | 'error' | null
|
|
27
|
+
validationText?: string
|
|
28
|
+
}>()
|
|
29
|
+
|
|
30
|
+
const emit = defineEmits<{
|
|
31
|
+
(e: 'update:maskedValue', value: string): void
|
|
32
|
+
(e: 'clear'): void
|
|
33
|
+
}>()
|
|
34
|
+
|
|
35
|
+
// Use beforeinput for better validation (fires before input is accepted)
|
|
36
|
+
const handleBeforeInput = (event: InputEvent) => {
|
|
37
|
+
if (!event.data || event.inputType !== 'insertText') {
|
|
38
|
+
return // Allow deletions, etc.
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const char = event.data
|
|
42
|
+
if (!/[0-9]/.test(char)) {
|
|
43
|
+
return // Not a digit, let through for other patterns
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const target = event.target as HTMLInputElement
|
|
47
|
+
const cursorPos = target.selectionStart || 0
|
|
48
|
+
const currentValue = target.value
|
|
49
|
+
|
|
50
|
+
// Find the mask pattern at cursor position
|
|
51
|
+
let maskIdx = 0
|
|
52
|
+
let valIdx = 0
|
|
53
|
+
|
|
54
|
+
// Walk through to find where we are in the mask
|
|
55
|
+
while (valIdx < cursorPos && maskIdx < props.mask.length) {
|
|
56
|
+
const def = getMaskPatternDef(props.mask, maskIdx)
|
|
57
|
+
if (def) {
|
|
58
|
+
// Pattern - check how many chars it uses in value
|
|
59
|
+
let consumed = 0
|
|
60
|
+
while (consumed < def.length && valIdx < currentValue.length) {
|
|
61
|
+
if (def.pattern.test(currentValue[valIdx])) {
|
|
62
|
+
consumed++
|
|
63
|
+
}
|
|
64
|
+
valIdx++
|
|
65
|
+
if (valIdx >= cursorPos) break
|
|
66
|
+
}
|
|
67
|
+
maskIdx += def.length
|
|
68
|
+
} else {
|
|
69
|
+
// Literal
|
|
70
|
+
valIdx++
|
|
71
|
+
maskIdx++
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Get pattern at current position
|
|
76
|
+
const patternType = props.mask.substring(maskIdx, maskIdx + 4)
|
|
77
|
+
const digit = parseInt(char, 10)
|
|
78
|
+
|
|
79
|
+
// Find how many digits already entered for this specific pattern instance
|
|
80
|
+
let digitsInPattern = 0
|
|
81
|
+
let scanIdx = cursorPos
|
|
82
|
+
|
|
83
|
+
// Count backwards to start of this pattern
|
|
84
|
+
while (scanIdx > 0 && digitsInPattern < 10) {
|
|
85
|
+
scanIdx--
|
|
86
|
+
const ch = currentValue[scanIdx]
|
|
87
|
+
if (/[0-9]/.test(ch)) {
|
|
88
|
+
digitsInPattern++
|
|
89
|
+
} else {
|
|
90
|
+
break // Hit a literal, stop
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// Validate based on pattern
|
|
95
|
+
if (patternType.startsWith('DD')) {
|
|
96
|
+
if (digitsInPattern === 0) {
|
|
97
|
+
if (digit > 3) event.preventDefault()
|
|
98
|
+
} else if (digitsInPattern === 1) {
|
|
99
|
+
const firstDigit = parseInt(currentValue[cursorPos - 1], 10)
|
|
100
|
+
if (firstDigit === 0 && digit === 0) event.preventDefault()
|
|
101
|
+
if (firstDigit === 3 && digit > 1) event.preventDefault()
|
|
102
|
+
}
|
|
103
|
+
} else if (patternType.startsWith('MM')) {
|
|
104
|
+
if (digitsInPattern === 0) {
|
|
105
|
+
if (digit > 1) event.preventDefault()
|
|
106
|
+
} else if (digitsInPattern === 1) {
|
|
107
|
+
const firstDigit = parseInt(currentValue[cursorPos - 1], 10)
|
|
108
|
+
if (firstDigit === 0 && digit === 0) event.preventDefault()
|
|
109
|
+
if (firstDigit === 1 && digit > 2) event.preventDefault()
|
|
110
|
+
}
|
|
111
|
+
} else if (patternType.startsWith('HH')) {
|
|
112
|
+
if (digitsInPattern === 0) {
|
|
113
|
+
if (digit > 2) event.preventDefault()
|
|
114
|
+
} else if (digitsInPattern === 1) {
|
|
115
|
+
const firstDigit = parseInt(currentValue[cursorPos - 1], 10)
|
|
116
|
+
if (firstDigit === 2 && digit > 3) event.preventDefault()
|
|
117
|
+
}
|
|
118
|
+
} else if (patternType.startsWith('mm') || patternType.startsWith('ss')) {
|
|
119
|
+
if (digitsInPattern === 0) {
|
|
120
|
+
if (digit > 5) event.preventDefault()
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
const handleUpdate = (value: string) => {
|
|
126
|
+
emit('update:maskedValue', value)
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
const handleClear = () => {
|
|
130
|
+
emit('clear')
|
|
131
|
+
}
|
|
97
132
|
</script>
|
|
98
133
|
|
|
99
134
|
<style lang="scss" scoped>
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
2
3
|
maskedValue: string;
|
|
3
4
|
placeholder: string;
|
|
4
5
|
showClear: boolean;
|
|
5
6
|
mask: string;
|
|
7
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
8
|
+
validationText?: string;
|
|
6
9
|
};
|
|
7
10
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
8
11
|
clear: () => any;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
modalId: string;
|
|
2
3
|
opened: boolean;
|
|
4
|
+
closeOnOutsideClick: boolean;
|
|
3
5
|
closeModal: () => void;
|
|
4
6
|
};
|
|
5
7
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,42 +1,92 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
|
-
.modal(
|
|
3
|
-
.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
dialog.k-modal(ref="dialogRef" @close="closeModal" @click="handleBackdropClick" @mousedown="handleMouseDown")
|
|
3
|
+
.modal-portal(:id="modalId" style="position: absolute; top: 0; left: 0; z-index: 9999; pointer-events: none;")
|
|
4
|
+
KPanel(no-gap flex-content scrollable).modal-container
|
|
5
|
+
template(#header)
|
|
6
|
+
slot(name="header")
|
|
7
|
+
slot(name="content")
|
|
8
|
+
template(#footer)
|
|
9
|
+
slot(name="footer")
|
|
10
10
|
</template>
|
|
11
11
|
|
|
12
|
-
<script setup>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
<script lang="ts" setup>
|
|
13
|
+
import { ref, watch, onMounted } from 'vue'
|
|
14
|
+
|
|
15
|
+
const props = defineProps<{
|
|
16
|
+
modalId: string
|
|
17
|
+
opened: boolean
|
|
18
|
+
closeOnOutsideClick: boolean
|
|
19
|
+
closeModal: () => void
|
|
20
|
+
}>()
|
|
21
|
+
|
|
22
|
+
const dialogRef = ref<HTMLDialogElement | null>(null)
|
|
23
|
+
let isMouseDownOnBackdrop = false
|
|
24
|
+
|
|
25
|
+
// When your prop changes, trigger the native browser methods to enter/exit the Top Layer
|
|
26
|
+
watch(() => props.opened, (isOpen) => {
|
|
27
|
+
if (!dialogRef.value) return
|
|
28
|
+
if (isOpen) {
|
|
29
|
+
dialogRef.value.showModal()
|
|
30
|
+
} else {
|
|
31
|
+
dialogRef.value.close()
|
|
32
|
+
}
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
// Sync the initial state if the modal was initially rendered as opened
|
|
36
|
+
onMounted(() => {
|
|
37
|
+
if (props.opened && dialogRef.value) {
|
|
38
|
+
dialogRef.value.showModal()
|
|
39
|
+
}
|
|
40
|
+
})
|
|
41
|
+
|
|
42
|
+
const handleMouseDown = (event: MouseEvent) => {
|
|
43
|
+
isMouseDownOnBackdrop = event.target === dialogRef.value
|
|
44
|
+
}
|
|
18
45
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
top: 0px;
|
|
26
|
-
bottom: 0px;
|
|
27
|
-
z-index: 2;
|
|
46
|
+
// Native dialogs require a script trick to close when clicking the ::backdrop pseudo-element
|
|
47
|
+
const handleBackdropClick = (event: MouseEvent) => {
|
|
48
|
+
if (props.closeOnOutsideClick && isMouseDownOnBackdrop && event.target === dialogRef.value) {
|
|
49
|
+
props.closeModal()
|
|
50
|
+
}
|
|
51
|
+
isMouseDownOnBackdrop = false
|
|
28
52
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
53
|
+
</script>
|
|
54
|
+
|
|
55
|
+
<style lang="scss" scoped>
|
|
56
|
+
.k-modal {
|
|
57
|
+
border: none;
|
|
58
|
+
background: transparent;
|
|
59
|
+
padding: 0;
|
|
60
|
+
/* margin: auto applied natively by browsers for showModal */
|
|
61
|
+
overflow: visible;
|
|
62
|
+
max-width: 95vw;
|
|
63
|
+
max-height: 95vh;
|
|
64
|
+
width: fit-content;
|
|
65
|
+
height: fit-content;
|
|
66
|
+
|
|
67
|
+
&:not([open]) {
|
|
68
|
+
display: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&[open] {
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&::backdrop {
|
|
77
|
+
background-color: var(--modal-overlay-bg);
|
|
78
|
+
backdrop-filter: blur(var(--modal-backdrop-blur));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.modal-container {
|
|
82
|
+
flex: 1;
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
min-height: 0;
|
|
86
|
+
max-height: 100%;
|
|
87
|
+
width: 100%;
|
|
88
|
+
min-width: 400px;
|
|
89
|
+
}
|
|
41
90
|
}
|
|
42
91
|
</style>
|
|
92
|
+
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
modalId: string;
|
|
2
3
|
opened: boolean;
|
|
4
|
+
closeOnOutsideClick: boolean;
|
|
3
5
|
closeModal: () => void;
|
|
4
6
|
};
|
|
5
7
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -23,48 +23,50 @@
|
|
|
23
23
|
KButton(@click="goToNext" :href="getPageHref(dp.currentPage.value + 1)" size="small" variant="outline") ›
|
|
24
24
|
</template>
|
|
25
25
|
|
|
26
|
-
<script setup>
|
|
27
|
-
import { computed } from
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
26
|
+
<script setup lang="ts">
|
|
27
|
+
import { computed } from 'vue'
|
|
28
|
+
|
|
29
|
+
const props = defineProps<{
|
|
30
|
+
dp: any
|
|
31
|
+
totalPages: number
|
|
32
|
+
getPageHref: (page: number) => string | undefined
|
|
33
|
+
visiblePages: number[]
|
|
34
|
+
showPrevButton: boolean
|
|
35
|
+
showNextButton: boolean
|
|
36
|
+
showFirstEllipsis: boolean
|
|
37
|
+
showLastEllipsis: boolean
|
|
38
|
+
pageClicked: (item: number) => void
|
|
39
|
+
goToPrev: () => void
|
|
40
|
+
goToNext: () => void
|
|
41
|
+
goToFirst: () => void
|
|
42
|
+
goToLast: () => void
|
|
43
|
+
}>()
|
|
43
44
|
</script>
|
|
44
45
|
|
|
45
|
-
<style scoped>
|
|
46
|
+
<style lang="scss" scoped>
|
|
46
47
|
.k-pagination {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
48
|
+
text-align: right;
|
|
49
|
+
ul {
|
|
50
|
+
list-style-type: none;
|
|
51
|
+
padding: 0px;
|
|
52
|
+
margin: 0px;
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: row;
|
|
55
|
+
flex-wrap: wrap;
|
|
56
|
+
align-content: center;
|
|
57
|
+
justify-content: flex-end;
|
|
58
|
+
gap: 5px;
|
|
59
|
+
li {
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
|
|
63
|
+
.ellipsis {
|
|
64
|
+
padding: 8px 12px;
|
|
65
|
+
color: #666;
|
|
66
|
+
font-weight: bold;
|
|
67
|
+
user-select: none;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
69
71
|
}
|
|
70
72
|
</style>
|
|
@@ -2,8 +2,11 @@ type __VLS_Props = {
|
|
|
2
2
|
noGap?: boolean;
|
|
3
3
|
flexContent?: boolean;
|
|
4
4
|
scrollable?: boolean;
|
|
5
|
+
type?: 'default' | 'primary' | 'danger' | 'success' | 'warning' | 'info';
|
|
6
|
+
title?: string;
|
|
5
7
|
};
|
|
6
8
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
|
+
type: "default" | "primary" | "danger" | "success" | "warning" | "info";
|
|
7
10
|
noGap: boolean;
|
|
8
11
|
flexContent: boolean;
|
|
9
12
|
scrollable: boolean;
|
|
@@ -1,47 +1,113 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
|
-
.KPanel
|
|
2
|
+
.KPanel(:class="[`type-${type}`]")
|
|
3
3
|
KGrid(direction="column" align="strech" :no-gap="noGap" wrap="nowrap").full-height
|
|
4
|
-
.KPanel--header(v-if="$slots.header")
|
|
5
|
-
slot(name="header")
|
|
4
|
+
.KPanel--header(v-if="$slots.header || title")
|
|
5
|
+
slot(name="header") {{ title }}
|
|
6
6
|
.KPanel--content(:class="{'flex-content': flexContent, 'scrollable': scrollable}")
|
|
7
7
|
slot
|
|
8
8
|
.KPanel--footer(v-if="$slots.footer")
|
|
9
9
|
slot(name="footer")
|
|
10
10
|
</template>
|
|
11
11
|
|
|
12
|
-
<script setup>
|
|
13
|
-
const props = defineProps
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
<script lang="ts" setup>
|
|
13
|
+
const props = withDefaults(defineProps<{
|
|
14
|
+
noGap?: boolean
|
|
15
|
+
flexContent?: boolean
|
|
16
|
+
scrollable?: boolean
|
|
17
|
+
type?: 'default' | 'primary' | 'danger' | 'success' | 'warning' | 'info'
|
|
18
|
+
title?: string
|
|
19
|
+
}>(), {
|
|
20
|
+
scrollable: false,
|
|
21
|
+
noGap: true,
|
|
22
|
+
flexContent: false,
|
|
23
|
+
type: 'default'
|
|
24
|
+
})
|
|
18
25
|
</script>
|
|
19
26
|
|
|
20
|
-
<style scoped>
|
|
27
|
+
<style lang="scss" scoped>
|
|
21
28
|
.KPanel {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
29
|
+
--current-panel-bg: var(--panel-bg-default);
|
|
30
|
+
--current-panel-header-bg: var(--panel-header-bg-default);
|
|
31
|
+
--current-panel-footer-bg: var(--panel-footer-bg-default);
|
|
32
|
+
|
|
33
|
+
border-radius: var(--border-radius-lg);
|
|
34
|
+
border: 1px solid var(--border-color-light);
|
|
35
|
+
box-shadow: var(--shadow-md);
|
|
36
|
+
background-color: color-mix(in srgb, var(--current-panel-bg), transparent calc((1 - var(--panel-bg-opacity)) * 100%));
|
|
37
|
+
backdrop-filter: blur(var(--panel-blur));
|
|
38
|
+
width: 100%;
|
|
39
|
+
min-width: 0;
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
transition: transform var(--transition-normal), box-shadow var(--transition-normal);
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
|
|
46
|
+
&.type-primary {
|
|
47
|
+
--current-panel-bg: var(--panel-bg-primary);
|
|
48
|
+
--current-panel-header-bg: var(--panel-header-bg-primary);
|
|
49
|
+
--current-panel-footer-bg: var(--panel-footer-bg-primary);
|
|
50
|
+
}
|
|
51
|
+
&.type-success {
|
|
52
|
+
--current-panel-bg: var(--panel-bg-success);
|
|
53
|
+
--current-panel-header-bg: var(--panel-header-bg-success);
|
|
54
|
+
--current-panel-footer-bg: var(--panel-footer-bg-success);
|
|
55
|
+
}
|
|
56
|
+
&.type-warning {
|
|
57
|
+
--current-panel-bg: var(--panel-bg-warning);
|
|
58
|
+
--current-panel-header-bg: var(--panel-header-bg-warning);
|
|
59
|
+
--current-panel-footer-bg: var(--panel-footer-bg-warning);
|
|
60
|
+
}
|
|
61
|
+
&.type-danger {
|
|
62
|
+
--current-panel-bg: var(--panel-bg-danger);
|
|
63
|
+
--current-panel-header-bg: var(--panel-header-bg-danger);
|
|
64
|
+
--current-panel-footer-bg: var(--panel-footer-bg-danger);
|
|
65
|
+
}
|
|
66
|
+
&.type-info {
|
|
67
|
+
--current-panel-bg: var(--panel-bg-info);
|
|
68
|
+
--current-panel-header-bg: var(--panel-header-bg-info);
|
|
69
|
+
--current-panel-footer-bg: var(--panel-footer-bg-info);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:hover {
|
|
73
|
+
//transform: translateY(-2px);
|
|
74
|
+
box-shadow: var(--shadow-lg);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.full-height {
|
|
78
|
+
height: 100%;
|
|
79
|
+
min-height: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&--header {
|
|
83
|
+
padding: var(--gap-md);
|
|
84
|
+
background-color: color-mix(in srgb, var(--current-panel-header-bg), transparent 92%);
|
|
85
|
+
border-bottom: 1px solid var(--border-color-light);
|
|
86
|
+
font-weight: var(--font-weight-semibold);
|
|
87
|
+
color: var(--font-color-heading);
|
|
88
|
+
font-size: var(--font-size-lg);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&--content {
|
|
92
|
+
padding: var(--gap-md);
|
|
93
|
+
flex: 1;
|
|
94
|
+
min-height: 0;
|
|
95
|
+
color: var(--font-color-primary);
|
|
96
|
+
|
|
97
|
+
&.scrollable {
|
|
98
|
+
overflow-y: auto;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.flex-content {
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&--footer {
|
|
108
|
+
padding: var(--gap-md);
|
|
109
|
+
background-color: color-mix(in srgb, var(--current-panel-footer-bg), transparent 92%);
|
|
110
|
+
border-top: 1px solid var(--border-color-light);
|
|
111
|
+
}
|
|
46
112
|
}
|
|
47
113
|
</style>
|
|
@@ -2,8 +2,11 @@ type __VLS_Props = {
|
|
|
2
2
|
noGap?: boolean;
|
|
3
3
|
flexContent?: boolean;
|
|
4
4
|
scrollable?: boolean;
|
|
5
|
+
type?: 'default' | 'primary' | 'danger' | 'success' | 'warning' | 'info';
|
|
6
|
+
title?: string;
|
|
5
7
|
};
|
|
6
8
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
|
+
type: "default" | "primary" | "danger" | "success" | "warning" | "info";
|
|
7
10
|
noGap: boolean;
|
|
8
11
|
flexContent: boolean;
|
|
9
12
|
scrollable: boolean;
|