@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
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
<template lang="pug">
|
|
2
|
+
.KCompositeInput-wrapper
|
|
3
|
+
label.k-input-label(v-if="label") {{ label }}
|
|
4
|
+
.KCompositeInput(:class="{'selection-right': selectionSide === 'right', 'layout-column': activeType === 'textarea'}")
|
|
5
|
+
KGrid(:direction="activeType === 'textarea' ? 'column' : 'row'" gap="0" align="stretch" :class="activeValidation ? `is-${activeValidation}` : ''")
|
|
6
|
+
//- Selection Combobox
|
|
7
|
+
.KCompositeInput-selection(:style="selectionStyle")
|
|
8
|
+
KCombobox(
|
|
9
|
+
v-model="selectionValue"
|
|
10
|
+
:dataProvider="dataProvider"
|
|
11
|
+
:labelField="labelField"
|
|
12
|
+
:valueField="valueField"
|
|
13
|
+
:placeholder="placeholder"
|
|
14
|
+
:searchbox="searchbox"
|
|
15
|
+
closeOnSelect
|
|
16
|
+
:teleportTo="teleportTo"
|
|
17
|
+
:validation="activeValidation"
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
//- Secondary Input (driven by resolvedInputConfig)
|
|
21
|
+
.KCompositeInput-main
|
|
22
|
+
template(v-if="activeType === 'textbox'")
|
|
23
|
+
KTextbox(
|
|
24
|
+
v-model="inputValue"
|
|
25
|
+
:type="activeConfig.inputType"
|
|
26
|
+
:placeholder="activeConfig.placeholder"
|
|
27
|
+
:showClear="activeConfig.showClear"
|
|
28
|
+
:validation="activeValidation"
|
|
29
|
+
)
|
|
30
|
+
template(v-else-if="activeType === 'textarea'")
|
|
31
|
+
KTextarea(
|
|
32
|
+
v-model="inputValue"
|
|
33
|
+
:placeholder="activeConfig.placeholder"
|
|
34
|
+
:validation="activeValidation"
|
|
35
|
+
)
|
|
36
|
+
template(v-else-if="activeType === 'maskedtextbox'")
|
|
37
|
+
KMaskTextbox(
|
|
38
|
+
v-model="inputValue"
|
|
39
|
+
:mask="activeConfig.mask"
|
|
40
|
+
:placeholder="activeConfig.placeholder"
|
|
41
|
+
:showClear="activeConfig.showClear"
|
|
42
|
+
:validation="activeValidation"
|
|
43
|
+
)
|
|
44
|
+
template(v-else-if="activeType === 'combobox'")
|
|
45
|
+
KCombobox(
|
|
46
|
+
v-model="inputValue"
|
|
47
|
+
:dataProvider="activeConfig.inputDataProvider || dataProvider"
|
|
48
|
+
:labelField="activeConfig.inputLabelField || labelField"
|
|
49
|
+
:valueField="activeConfig.inputValueField || valueField"
|
|
50
|
+
:placeholder="activeConfig.placeholder"
|
|
51
|
+
:searchbox="activeConfig.inputSearchbox || false"
|
|
52
|
+
:teleportTo="teleportTo"
|
|
53
|
+
:validation="activeValidation"
|
|
54
|
+
closeOnSelect
|
|
55
|
+
)
|
|
56
|
+
template(v-else-if="activeType === 'datepicker'")
|
|
57
|
+
KDatePicker(
|
|
58
|
+
v-model="inputValue"
|
|
59
|
+
:placeholder="activeConfig.placeholder"
|
|
60
|
+
:showClear="activeConfig.showClear"
|
|
61
|
+
:format="activeConfig.inputFormat"
|
|
62
|
+
:validation="activeValidation"
|
|
63
|
+
)
|
|
64
|
+
template(v-else-if="activeType === 'datetimepicker'")
|
|
65
|
+
KDateTimePicker(
|
|
66
|
+
v-model="inputValue"
|
|
67
|
+
:placeholder="activeConfig.placeholder"
|
|
68
|
+
:showClear="activeConfig.showClear"
|
|
69
|
+
:format="activeConfig.inputFormat"
|
|
70
|
+
:validation="activeValidation"
|
|
71
|
+
)
|
|
72
|
+
template(v-else-if="activeType === 'hourpicker'")
|
|
73
|
+
KHourPicker(
|
|
74
|
+
v-model="inputValue"
|
|
75
|
+
:placeholder="activeConfig.placeholder"
|
|
76
|
+
:showClear="activeConfig.showClear"
|
|
77
|
+
:format="activeConfig.inputFormat"
|
|
78
|
+
:validation="activeValidation"
|
|
79
|
+
)
|
|
80
|
+
span.validation-text(v-if="activeValidation && ['success', 'warning', 'error'].includes(activeValidation) && activeValidationText" :class="`is-${activeValidation}`") {{ activeValidationText }}
|
|
81
|
+
</template>
|
|
82
|
+
|
|
83
|
+
<script lang="ts" setup>
|
|
84
|
+
import { computed } from 'vue'
|
|
85
|
+
import type { ADataProvider } from '@katlux/providers'
|
|
86
|
+
import type { ICompositeInputConfig } from '../../../../components/KCompositeInput/KCompositeInput.logic'
|
|
87
|
+
|
|
88
|
+
const props = defineProps<{
|
|
89
|
+
label?: string
|
|
90
|
+
selectionValue: any
|
|
91
|
+
inputValue: any
|
|
92
|
+
modelValue: any[]
|
|
93
|
+
dataProvider: ADataProvider
|
|
94
|
+
type: string
|
|
95
|
+
selectionSide: string
|
|
96
|
+
inputType: any
|
|
97
|
+
mask: string
|
|
98
|
+
labelField: string
|
|
99
|
+
valueField: string
|
|
100
|
+
placeholder: string
|
|
101
|
+
inputPlaceholder: string
|
|
102
|
+
searchbox: boolean
|
|
103
|
+
showClear: boolean
|
|
104
|
+
teleportTo?: string
|
|
105
|
+
validation?: 'success' | 'warning' | 'error' | null
|
|
106
|
+
validationText?: string
|
|
107
|
+
inputConfigField?: string
|
|
108
|
+
validateAll?: boolean
|
|
109
|
+
resolvedInputConfig?: ICompositeInputConfig
|
|
110
|
+
}>()
|
|
111
|
+
|
|
112
|
+
const emit = defineEmits<{
|
|
113
|
+
(e: 'update:selectionValue', value: any): void
|
|
114
|
+
(e: 'update:inputValue', value: any): void
|
|
115
|
+
}>()
|
|
116
|
+
|
|
117
|
+
const selectionValue = computed({
|
|
118
|
+
get: () => props.selectionValue,
|
|
119
|
+
set: (val) => emit('update:selectionValue', val)
|
|
120
|
+
})
|
|
121
|
+
|
|
122
|
+
const inputValue = computed({
|
|
123
|
+
get: () => props.inputValue,
|
|
124
|
+
set: (val) => emit('update:inputValue', val)
|
|
125
|
+
})
|
|
126
|
+
|
|
127
|
+
const selectionStyle = computed(() => ({
|
|
128
|
+
width: activeType.value === 'textarea' ? '100%' : '120px', // Default width for selection, can be made prop if needed
|
|
129
|
+
flex: '0 0 auto'
|
|
130
|
+
}))
|
|
131
|
+
|
|
132
|
+
// Use resolved config from logic layer, with fallback to component-level props
|
|
133
|
+
const activeConfig = computed<ICompositeInputConfig>(() => {
|
|
134
|
+
if (props.resolvedInputConfig) {
|
|
135
|
+
return props.resolvedInputConfig
|
|
136
|
+
}
|
|
137
|
+
// Fallback to component-level props
|
|
138
|
+
return {
|
|
139
|
+
type: props.type as any,
|
|
140
|
+
inputType: props.inputType,
|
|
141
|
+
mask: props.mask,
|
|
142
|
+
placeholder: props.inputPlaceholder,
|
|
143
|
+
showClear: props.showClear,
|
|
144
|
+
validation: props.validation,
|
|
145
|
+
validationText: props.validationText,
|
|
146
|
+
}
|
|
147
|
+
})
|
|
148
|
+
|
|
149
|
+
const activeType = computed(() => activeConfig.value.type || 'textbox')
|
|
150
|
+
|
|
151
|
+
const activeValidation = computed(() => activeConfig.value.validation || props.validation || null)
|
|
152
|
+
|
|
153
|
+
const activeValidationText = computed(() => activeConfig.value.validationText || props.validationText || '')
|
|
154
|
+
</script>
|
|
155
|
+
|
|
156
|
+
<style lang="scss" scoped>
|
|
157
|
+
.KCompositeInput {
|
|
158
|
+
width: 100%;
|
|
159
|
+
|
|
160
|
+
:deep(.KGrid) {
|
|
161
|
+
/*border: 1px solid var(--neutral-200);
|
|
162
|
+
border-radius: var(--radius-md);
|
|
163
|
+
overflow: hidden;
|
|
164
|
+
background: var(--neutral-50);
|
|
165
|
+
|
|
166
|
+
&:focus-within {
|
|
167
|
+
border-color: var(--primary-500);
|
|
168
|
+
box-shadow: 0 0 0 2px var(--primary-100);
|
|
169
|
+
}*/
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&-selection {
|
|
173
|
+
/*border-right: 1px solid var(--neutral-200);
|
|
174
|
+
|
|
175
|
+
:deep(.KGrid).is-error & { border-right-color: var(--error-500); }
|
|
176
|
+
:deep(.KGrid).is-warning & { border-right-color: var(--warning-500); }
|
|
177
|
+
:deep(.KGrid).is-success & { border-right-color: var(--success-500); }
|
|
178
|
+
|
|
179
|
+
:deep(.KCombobox) {
|
|
180
|
+
border: none !important;
|
|
181
|
+
background: transparent !important;
|
|
182
|
+
box-shadow: none !important;
|
|
183
|
+
padding: 0 !important;
|
|
184
|
+
}*/
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&-main {
|
|
188
|
+
flex: 1;
|
|
189
|
+
min-width: 0;
|
|
190
|
+
display: flex;
|
|
191
|
+
align-items: center;
|
|
192
|
+
|
|
193
|
+
:deep(.KTextbox), :deep(.KTextarea), :deep(.KMaskTextbox), :deep(.KCombobox),
|
|
194
|
+
:deep(.KDatePicker), :deep(.KDateTimePicker), :deep(.KHourPicker) {
|
|
195
|
+
/*width: 100%;
|
|
196
|
+
border: none !important;
|
|
197
|
+
background: transparent !important;
|
|
198
|
+
box-shadow: none !important;
|
|
199
|
+
padding: 0 !important;
|
|
200
|
+
|
|
201
|
+
// Ensure they don't have their own internal grids with borders
|
|
202
|
+
.KTextbox, .KGrid, .KCombobox, .KDatePicker, .KDateTimePicker, .KHourPicker {
|
|
203
|
+
border: none !important;
|
|
204
|
+
background: transparent !important;
|
|
205
|
+
box-shadow: none !important;
|
|
206
|
+
padding: 0 !important;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
input, textarea, .KCombobox-trigger {
|
|
210
|
+
border: none !important;
|
|
211
|
+
border-radius: 0 !important;
|
|
212
|
+
background: transparent !important;
|
|
213
|
+
box-shadow: none !important;
|
|
214
|
+
outline: none !important;
|
|
215
|
+
padding: 0 12px !important;
|
|
216
|
+
}*/
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
&.selection-right {
|
|
221
|
+
.KGrid {
|
|
222
|
+
flex-direction: row-reverse;
|
|
223
|
+
}
|
|
224
|
+
.KCompositeInput-selection {
|
|
225
|
+
/*border-right: none;
|
|
226
|
+
border-left: 1px solid var(--neutral-200);
|
|
227
|
+
|
|
228
|
+
:deep(.KGrid).is-error & { border-left-color: var(--error-500); }
|
|
229
|
+
:deep(.KGrid).is-warning & { border-left-color: var(--warning-500); }
|
|
230
|
+
:deep(.KGrid).is-success & { border-left-color: var(--success-500); }*/
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
</style>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ADataProvider } from '@katlux/providers';
|
|
2
|
+
import type { ICompositeInputConfig } from '../../../../components/KCompositeInput/KCompositeInput.logic.js';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
label?: string;
|
|
5
|
+
selectionValue: any;
|
|
6
|
+
inputValue: any;
|
|
7
|
+
modelValue: any[];
|
|
8
|
+
dataProvider: ADataProvider;
|
|
9
|
+
type: string;
|
|
10
|
+
selectionSide: string;
|
|
11
|
+
inputType: any;
|
|
12
|
+
mask: string;
|
|
13
|
+
labelField: string;
|
|
14
|
+
valueField: string;
|
|
15
|
+
placeholder: string;
|
|
16
|
+
inputPlaceholder: string;
|
|
17
|
+
searchbox: boolean;
|
|
18
|
+
showClear: boolean;
|
|
19
|
+
teleportTo?: string;
|
|
20
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
21
|
+
validationText?: string;
|
|
22
|
+
inputConfigField?: string;
|
|
23
|
+
validateAll?: boolean;
|
|
24
|
+
resolvedInputConfig?: ICompositeInputConfig;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
27
|
+
"update:selectionValue": (value: any) => any;
|
|
28
|
+
"update:inputValue": (value: any) => any;
|
|
29
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
30
|
+
"onUpdate:selectionValue"?: ((value: any) => any) | undefined;
|
|
31
|
+
"onUpdate:inputValue"?: ((value: any) => any) | undefined;
|
|
32
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const _default: typeof __VLS_export;
|
|
34
|
+
export default _default;
|
|
@@ -1,3 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
open: boolean;
|
|
3
|
+
menuRect: {
|
|
4
|
+
top: number;
|
|
5
|
+
left: number;
|
|
6
|
+
maxHeight: number;
|
|
7
|
+
};
|
|
8
|
+
clickoutside: () => void;
|
|
9
|
+
teleportTarget: string | null;
|
|
10
|
+
isInModal: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:isOpen": (...args: any[]) => void;
|
|
14
|
+
registerRef: (...args: any[]) => void;
|
|
15
|
+
registerSourceRef: (...args: any[]) => void;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
"onUpdate:isOpen"?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
onRegisterRef?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
onRegisterSourceRef?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
21
|
declare const _default: typeof __VLS_export;
|
|
3
22
|
export default _default;
|
|
@@ -1,5 +1,62 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
|
-
.KContextMenu
|
|
3
|
-
|
|
2
|
+
.KContextMenu-source(ref="sourceElementRef")
|
|
3
|
+
Teleport(v-if="open && teleportTarget" :to="teleportTarget")
|
|
4
|
+
.KContextMenu-teleported
|
|
5
|
+
.KContextMenu(
|
|
6
|
+
ref="internalMenuRef"
|
|
7
|
+
v-click-outside="clickoutside"
|
|
8
|
+
:style="{ top: `${menuRect.top}px`, left: `${menuRect.left}px`, position: 'fixed', zIndex: 2000 }"
|
|
9
|
+
v-bind="$attrs"
|
|
10
|
+
)
|
|
11
|
+
KPanel.KContextMenu-container(:style="{ maxHeight: `${menuRect.maxHeight}px`, overflowY: 'auto' }")
|
|
12
|
+
slot(:close="clickoutside")
|
|
4
13
|
</template>
|
|
5
|
-
|
|
14
|
+
|
|
15
|
+
<script lang="ts" setup>
|
|
16
|
+
import { ref, watch } from 'vue'
|
|
17
|
+
import KPanel from '../KPanel/KPanel.vue'
|
|
18
|
+
|
|
19
|
+
defineOptions({
|
|
20
|
+
inheritAttrs: false
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
const props = defineProps<{
|
|
24
|
+
open: boolean
|
|
25
|
+
menuRect: { top: number, left: number, maxHeight: number }
|
|
26
|
+
clickoutside: () => void
|
|
27
|
+
teleportTarget: string | null
|
|
28
|
+
isInModal: boolean
|
|
29
|
+
}>()
|
|
30
|
+
|
|
31
|
+
const emit = defineEmits(['update:isOpen', 'registerRef', 'registerSourceRef'])
|
|
32
|
+
|
|
33
|
+
const internalMenuRef = ref<HTMLElement | null>(null)
|
|
34
|
+
const sourceElementRef = ref<HTMLElement | null>(null)
|
|
35
|
+
|
|
36
|
+
watch(internalMenuRef, (newVal) => {
|
|
37
|
+
emit('registerRef', newVal)
|
|
38
|
+
}, { immediate: true })
|
|
39
|
+
|
|
40
|
+
watch(sourceElementRef, (newVal) => {
|
|
41
|
+
emit('registerSourceRef', newVal)
|
|
42
|
+
}, { immediate: true })
|
|
43
|
+
</script>
|
|
44
|
+
|
|
45
|
+
<style lang="scss" scoped>
|
|
46
|
+
.KContextMenu {
|
|
47
|
+
width: fit-content;
|
|
48
|
+
|
|
49
|
+
.KPanel {
|
|
50
|
+
width: auto !important;
|
|
51
|
+
max-width: 100vw;
|
|
52
|
+
box-shadow: var(--shadow-xl);
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
:deep {
|
|
55
|
+
.KPanel--content {
|
|
56
|
+
padding: var(--component-gap);
|
|
57
|
+
overflow-y: auto;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
</style>
|
|
@@ -1,3 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
open: boolean;
|
|
3
|
+
menuRect: {
|
|
4
|
+
top: number;
|
|
5
|
+
left: number;
|
|
6
|
+
maxHeight: number;
|
|
7
|
+
};
|
|
8
|
+
clickoutside: () => void;
|
|
9
|
+
teleportTarget: string | null;
|
|
10
|
+
isInModal: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:isOpen": (...args: any[]) => void;
|
|
14
|
+
registerRef: (...args: any[]) => void;
|
|
15
|
+
registerSourceRef: (...args: any[]) => void;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
"onUpdate:isOpen"?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
onRegisterRef?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
onRegisterSourceRef?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
21
|
declare const _default: typeof __VLS_export;
|
|
3
22
|
export default _default;
|
|
@@ -17,41 +17,50 @@
|
|
|
17
17
|
span(v-if="showNoRecord") No record
|
|
18
18
|
</template>
|
|
19
19
|
|
|
20
|
-
<script setup>
|
|
21
|
-
import { computed } from
|
|
22
|
-
import { ADataProvider } from
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
20
|
+
<script setup lang="ts">
|
|
21
|
+
import { computed } from 'vue'
|
|
22
|
+
import { ADataProvider } from '@katlux/providers'
|
|
23
|
+
import type { IKDatatableAction } from '@katlux/providers'
|
|
24
|
+
import KBulkActions from '../KBulkActions/KBulkActions.vue'
|
|
25
|
+
import KPagination from '../KPagination/KPagination.vue'
|
|
26
|
+
import KLoader from '../../../../components/KLoader/KLoader.global.vue'
|
|
27
|
+
|
|
28
|
+
const props = defineProps<{
|
|
29
|
+
dataProvider: ADataProvider
|
|
30
|
+
visibleFields: Array<string> | null
|
|
31
|
+
rowActions: Array<IKDatatableAction>
|
|
32
|
+
bulkActions: Array<IKDatatableAction>
|
|
33
|
+
selectedRows: any[]
|
|
34
|
+
selectAll: boolean
|
|
35
|
+
loading?: boolean
|
|
36
|
+
search?: string
|
|
37
|
+
itemsPerPage?: number
|
|
38
|
+
page?: number
|
|
39
|
+
slots?: any
|
|
40
|
+
}>()
|
|
41
|
+
|
|
42
|
+
const emit = defineEmits<{
|
|
43
|
+
(e: 'update:selectedRows', value: any[]): void
|
|
44
|
+
(e: 'update:selectAll', value: boolean): void
|
|
45
|
+
}>()
|
|
46
|
+
|
|
40
47
|
const selectedRows = computed({
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
})
|
|
48
|
+
get: () => props.selectedRows,
|
|
49
|
+
set: (val) => emit('update:selectedRows', val)
|
|
50
|
+
})
|
|
51
|
+
|
|
44
52
|
const selectAll = computed({
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
})
|
|
48
|
-
|
|
49
|
-
const
|
|
50
|
-
const
|
|
53
|
+
get: () => props.selectAll,
|
|
54
|
+
set: (val) => emit('update:selectAll', val)
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
const isLoading = computed(() => props.loading || props.dataProvider.loading?.value || (props.dataProvider as any).initialLoad?.value || false)
|
|
58
|
+
const hasData = computed(() => (props.dataProvider.pageData.value?.length || 0) > 0)
|
|
59
|
+
const showNoRecord = computed(() => !isLoading.value && !hasData.value)
|
|
51
60
|
</script>
|
|
52
61
|
|
|
53
|
-
<style scoped>
|
|
62
|
+
<style lang="scss" scoped>
|
|
54
63
|
.k-data-iterator {
|
|
55
|
-
|
|
64
|
+
position: relative;
|
|
56
65
|
}
|
|
57
66
|
</style>
|
|
@@ -11,6 +11,8 @@ type __VLS_Props = {
|
|
|
11
11
|
headerSlots?: Record<string, any>;
|
|
12
12
|
columnHeaders?: Record<string, string>;
|
|
13
13
|
columnWidths?: Record<string, string>;
|
|
14
|
+
emptyStateText?: string;
|
|
15
|
+
emptyFilterStateText?: string;
|
|
14
16
|
};
|
|
15
17
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
16
18
|
"update:selectedRows": (value: any[]) => any;
|