@katlux/toolkit 0.1.0-beta.9 → 0.1.1-alpha.107

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.
Files changed (375) hide show
  1. package/LICENSE +200 -21
  2. package/README.md +14 -5
  3. package/bin/add-ai-reference.mjs +84 -0
  4. package/dist/compiled/composables/locales.mjs +554 -0
  5. package/dist/compiled/composables/useDataProvider.mjs +140 -0
  6. package/dist/compiled/composables/useDataProvider.spec.mjs +86 -0
  7. package/dist/compiled/composables/useDebounce.mjs +3 -11
  8. package/dist/compiled/composables/useFilterLogic.mjs +23 -169
  9. package/dist/compiled/composables/useKatluxI18n.mjs +56 -0
  10. package/dist/compiled/composables/useKatluxI18n.spec.mjs +10 -0
  11. package/dist/compiled/composables/usePresetComponent.mjs +71 -27
  12. package/dist/compiled/composables/usePresetComponent.spec.mjs +106 -0
  13. package/dist/compiled/composables/useRequestProvider.mjs +9 -0
  14. package/dist/compiled/composables/useSortLogic.mjs +3 -55
  15. package/dist/compiled/composables/useTemplate.spec.mjs +30 -0
  16. package/dist/compiled/composables/useUnregisterProvider.mjs +4 -0
  17. package/dist/compiled/utils/PresetResolver.mjs +19 -13
  18. package/dist/compiled/utils/TemplateResolver.mjs +32 -0
  19. package/dist/module.cjs +123 -2
  20. package/dist/module.json +1 -1
  21. package/dist/module.mjs +124 -3
  22. package/dist/runtime/app.config.d.ts +2 -1
  23. package/dist/runtime/components/KAccordion/KAccordion.logic.d.ts +5 -1
  24. package/dist/runtime/components/KAccordion/KAccordion.logic.js +11 -4
  25. package/dist/runtime/components/KAlert/KAlert.global.d.vue.ts +12 -1
  26. package/dist/runtime/components/KAlert/KAlert.global.vue +11 -1
  27. package/dist/runtime/components/KAlert/KAlert.global.vue.d.ts +12 -1
  28. package/dist/runtime/components/KAlert/KAlert.logic.d.ts +12 -2
  29. package/dist/runtime/components/KAlert/KAlert.logic.js +24 -3
  30. package/dist/runtime/components/KBulkActions/KBulkActions.global.vue +2 -2
  31. package/dist/runtime/components/KBulkActions/KBulkActions.logic.d.ts +9 -0
  32. package/dist/runtime/components/KBulkActions/KBulkActions.logic.js +10 -3
  33. package/dist/runtime/components/KButton/KButton.global.d.vue.ts +11 -2
  34. package/dist/runtime/components/KButton/KButton.global.vue +2 -1
  35. package/dist/runtime/components/KButton/KButton.global.vue.d.ts +11 -2
  36. package/dist/runtime/components/KButton/KButton.logic.d.ts +7 -1
  37. package/dist/runtime/components/KButton/KButton.logic.js +5 -1
  38. package/dist/runtime/components/KCalendar/KCalendar.global.d.vue.ts +11 -12
  39. package/dist/runtime/components/KCalendar/KCalendar.global.vue +5 -0
  40. package/dist/runtime/components/KCalendar/KCalendar.global.vue.d.ts +11 -12
  41. package/dist/runtime/components/KCalendar/KCalendar.logic.d.ts +4 -1
  42. package/dist/runtime/components/KCalendar/KCalendar.logic.js +75 -26
  43. package/dist/runtime/components/KCalendar/KCalendarMonth.global.d.vue.ts +13 -13
  44. package/dist/runtime/components/KCalendar/KCalendarMonth.global.vue.d.ts +13 -13
  45. package/dist/runtime/components/KCalendar/KCalendarMonth.logic.d.ts +6 -5
  46. package/dist/runtime/components/KCalendar/KCalendarMonth.logic.js +4 -1
  47. package/dist/runtime/components/KCheckbox/KCheckbox.global.d.vue.ts +30 -0
  48. package/dist/runtime/components/KCheckbox/KCheckbox.global.vue +4 -1
  49. package/dist/runtime/components/KCheckbox/KCheckbox.global.vue.d.ts +30 -0
  50. package/dist/runtime/components/KCheckbox/KCheckbox.logic.d.ts +17 -0
  51. package/dist/runtime/components/KCheckbox/KCheckbox.logic.js +16 -1
  52. package/dist/runtime/components/KCombobox/KCombobox.global.d.vue.ts +88 -12
  53. package/dist/runtime/components/KCombobox/KCombobox.global.vue +19 -4
  54. package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +88 -12
  55. package/dist/runtime/components/KCombobox/KCombobox.logic.d.ts +48 -5
  56. package/dist/runtime/components/KCombobox/KCombobox.logic.js +83 -14
  57. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.d.vue.ts +214 -0
  58. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue +54 -0
  59. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue.d.ts +214 -0
  60. package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.d.ts +187 -0
  61. package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.js +263 -0
  62. package/dist/runtime/components/KContextMenu/KContextMenu.global.d.vue.ts +53 -1
  63. package/dist/runtime/components/KContextMenu/KContextMenu.global.vue +20 -1
  64. package/dist/runtime/components/KContextMenu/KContextMenu.global.vue.d.ts +53 -1
  65. package/dist/runtime/components/KContextMenu/KContextMenu.logic.d.ts +53 -2
  66. package/dist/runtime/components/KContextMenu/KContextMenu.logic.js +167 -3
  67. package/dist/runtime/components/KDatatable/KDataIterator.global.d.vue.ts +1 -1
  68. package/dist/runtime/components/KDatatable/KDataIterator.global.vue.d.ts +1 -1
  69. package/dist/runtime/components/KDatatable/KDataIterator.logic.d.ts +2 -2
  70. package/dist/runtime/components/KDatatable/KDataIterator.logic.js +1 -1
  71. package/dist/runtime/components/KDatatable/KDatatable.global.d.vue.ts +4 -0
  72. package/dist/runtime/components/KDatatable/KDatatable.global.vue +6 -2
  73. package/dist/runtime/components/KDatatable/KDatatable.global.vue.d.ts +4 -0
  74. package/dist/runtime/components/KDatatable/KDatatable.logic.d.ts +8 -2
  75. package/dist/runtime/components/KDatatable/KDatatable.logic.js +48 -7
  76. package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +104 -8
  77. package/dist/runtime/components/KDatePicker/KDatePicker.global.vue +28 -3
  78. package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +104 -8
  79. package/dist/runtime/components/KDatePicker/KDatePicker.logic.d.ts +48 -1
  80. package/dist/runtime/components/KDatePicker/KDatePicker.logic.js +118 -7
  81. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.d.vue.ts +93 -8
  82. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue +27 -3
  83. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +93 -8
  84. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.d.ts +43 -1
  85. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.js +168 -7
  86. package/dist/runtime/components/KDropdown/KDropdown.global.d.vue.ts +36 -0
  87. package/dist/runtime/components/KDropdown/KDropdown.global.vue +15 -4
  88. package/dist/runtime/components/KDropdown/KDropdown.global.vue.d.ts +36 -0
  89. package/dist/runtime/components/KDropdown/KDropdown.logic.d.ts +58 -1
  90. package/dist/runtime/components/KDropdown/KDropdown.logic.js +152 -4
  91. package/dist/runtime/components/KGantt/KGantt.global.d.vue.ts +9 -9
  92. package/dist/runtime/components/KGantt/KGantt.global.vue.d.ts +9 -9
  93. package/dist/runtime/components/KGantt/KGantt.logic.d.ts +6 -6
  94. package/dist/runtime/components/KGantt/KGantt.logic.js +21 -25
  95. package/dist/runtime/components/KGrid/KGrid.global.d.vue.ts +8 -57
  96. package/dist/runtime/components/KGrid/KGrid.global.vue +9 -2
  97. package/dist/runtime/components/KGrid/KGrid.global.vue.d.ts +8 -57
  98. package/dist/runtime/components/KGrid/KGrid.logic.d.ts +1 -0
  99. package/dist/runtime/components/KHourPicker/KHourPicker.global.d.vue.ts +50 -0
  100. package/dist/runtime/components/KHourPicker/KHourPicker.global.vue +28 -12
  101. package/dist/runtime/components/KHourPicker/KHourPicker.global.vue.d.ts +50 -0
  102. package/dist/runtime/components/KHourPicker/KHourPicker.logic.d.ts +31 -3
  103. package/dist/runtime/components/KHourPicker/KHourPicker.logic.js +38 -10
  104. package/dist/runtime/components/KHourSelect/KHourSelect.global.d.vue.ts +9 -0
  105. package/dist/runtime/components/KHourSelect/KHourSelect.global.vue +1 -0
  106. package/dist/runtime/components/KHourSelect/KHourSelect.global.vue.d.ts +9 -0
  107. package/dist/runtime/components/KHourSelect/KHourSelect.logic.d.ts +5 -0
  108. package/dist/runtime/components/KHourSelect/KHourSelect.logic.js +8 -1
  109. package/dist/runtime/components/KIcon/KIcon.global.d.vue.ts +7 -7
  110. package/dist/runtime/components/KIcon/KIcon.global.vue.d.ts +7 -7
  111. package/dist/runtime/components/KIcon/KIcon.logic.d.ts +18 -4
  112. package/dist/runtime/components/KIcon/KIcon.logic.js +74 -12
  113. package/dist/runtime/components/KLoader/KLoader.global.d.vue.ts +1 -1
  114. package/dist/runtime/components/KLoader/KLoader.global.vue.d.ts +1 -1
  115. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.d.vue.ts +30 -0
  116. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue +5 -2
  117. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue.d.ts +30 -0
  118. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.d.ts +16 -0
  119. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.js +23 -5
  120. package/dist/runtime/components/KModal/KModal.global.d.vue.ts +14 -2
  121. package/dist/runtime/components/KModal/KModal.global.vue +6 -1
  122. package/dist/runtime/components/KModal/KModal.global.vue.d.ts +14 -2
  123. package/dist/runtime/components/KModal/KModal.logic.d.ts +10 -2
  124. package/dist/runtime/components/KModal/KModal.logic.js +15 -3
  125. package/dist/runtime/components/KPanel/KPanel.global.d.vue.ts +5 -28
  126. package/dist/runtime/components/KPanel/KPanel.global.vue +12 -4
  127. package/dist/runtime/components/KPanel/KPanel.global.vue.d.ts +5 -28
  128. package/dist/runtime/components/KPanel/KPanel.logic.d.ts +10 -0
  129. package/dist/runtime/components/KPanel/KPanel.logic.js +8 -0
  130. package/dist/runtime/components/KRadiobox/KRadiobox.global.d.vue.ts +21 -0
  131. package/dist/runtime/components/KRadiobox/KRadiobox.global.vue +3 -1
  132. package/dist/runtime/components/KRadiobox/KRadiobox.global.vue.d.ts +21 -0
  133. package/dist/runtime/components/KRadiobox/KRadiobox.logic.d.ts +11 -0
  134. package/dist/runtime/components/KRadiobox/KRadiobox.logic.js +9 -0
  135. package/dist/runtime/components/KRangeSlider/KRangeSlider.global.d.vue.ts +9 -0
  136. package/dist/runtime/components/KRangeSlider/KRangeSlider.global.vue +1 -0
  137. package/dist/runtime/components/KRangeSlider/KRangeSlider.global.vue.d.ts +9 -0
  138. package/dist/runtime/components/KRangeSlider/KRangeSlider.logic.d.ts +5 -0
  139. package/dist/runtime/components/KRangeSlider/KRangeSlider.logic.js +4 -0
  140. package/dist/runtime/components/KSlider/KSlider.global.d.vue.ts +9 -0
  141. package/dist/runtime/components/KSlider/KSlider.global.vue +1 -0
  142. package/dist/runtime/components/KSlider/KSlider.global.vue.d.ts +9 -0
  143. package/dist/runtime/components/KSlider/KSlider.logic.d.ts +5 -0
  144. package/dist/runtime/components/KSlider/KSlider.logic.js +4 -0
  145. package/dist/runtime/components/KTabs/KTabs.logic.js +12 -5
  146. package/dist/runtime/components/KTextarea/KTextarea.global.d.vue.ts +30 -0
  147. package/dist/runtime/components/KTextarea/KTextarea.global.vue +4 -1
  148. package/dist/runtime/components/KTextarea/KTextarea.global.vue.d.ts +30 -0
  149. package/dist/runtime/components/KTextarea/KTextarea.logic.d.ts +16 -0
  150. package/dist/runtime/components/KTextarea/KTextarea.logic.js +13 -0
  151. package/dist/runtime/components/KTextbox/KTextbox.global.d.vue.ts +44 -2
  152. package/dist/runtime/components/KTextbox/KTextbox.global.vue +8 -4
  153. package/dist/runtime/components/KTextbox/KTextbox.global.vue.d.ts +44 -2
  154. package/dist/runtime/components/KTextbox/KTextbox.logic.d.ts +26 -4
  155. package/dist/runtime/components/KTextbox/KTextbox.logic.js +25 -5
  156. package/dist/runtime/components/KToast/KToast.global.d.vue.ts +57 -0
  157. package/dist/runtime/components/KToast/KToast.global.vue +32 -0
  158. package/dist/runtime/components/KToast/KToast.global.vue.d.ts +57 -0
  159. package/dist/runtime/components/KToast/KToast.logic.d.ts +34 -0
  160. package/dist/runtime/components/KToast/KToast.logic.js +47 -0
  161. package/dist/runtime/components/KTooltip/KTooltip.global.d.vue.ts +31 -1
  162. package/dist/runtime/components/KTooltip/KTooltip.global.vue +20 -1
  163. package/dist/runtime/components/KTooltip/KTooltip.global.vue.d.ts +31 -1
  164. package/dist/runtime/components/KTooltip/KTooltip.logic.d.ts +25 -2
  165. package/dist/runtime/components/KTooltip/KTooltip.logic.js +81 -3
  166. package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +73 -6
  167. package/dist/runtime/components/KTreePicker/KTreePicker.global.vue +16 -3
  168. package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +73 -6
  169. package/dist/runtime/components/KTreePicker/KTreePicker.logic.d.ts +38 -1
  170. package/dist/runtime/components/KTreePicker/KTreePicker.logic.js +36 -1
  171. package/dist/runtime/components/KTreeView/KTreeView.global.d.vue.ts +3 -3
  172. package/dist/runtime/components/KTreeView/KTreeView.global.vue.d.ts +3 -3
  173. package/dist/runtime/components/KTreeView/KTreeView.logic.d.ts +2 -7
  174. package/dist/runtime/components/MultiTabs/MultiTabs.global.d.vue.ts +23 -0
  175. package/dist/runtime/components/MultiTabs/MultiTabs.global.vue +27 -0
  176. package/dist/runtime/components/MultiTabs/MultiTabs.global.vue.d.ts +23 -0
  177. package/dist/runtime/components/MultiTabs/MultiTabs.logic.d.ts +25 -0
  178. package/dist/runtime/components/MultiTabs/MultiTabs.logic.js +63 -0
  179. package/dist/runtime/composables/locales.d.ts +28 -0
  180. package/dist/runtime/composables/locales.js +554 -0
  181. package/dist/runtime/composables/useDataProvider.d.ts +37 -0
  182. package/dist/runtime/composables/useDataProvider.js +140 -0
  183. package/dist/runtime/composables/useDebounce.d.ts +2 -6
  184. package/dist/runtime/composables/useDebounce.js +3 -11
  185. package/dist/runtime/composables/useFilterLogic.d.ts +5 -4
  186. package/dist/runtime/composables/useFilterLogic.js +23 -169
  187. package/dist/runtime/composables/useKatluxI18n.d.ts +15 -0
  188. package/dist/runtime/composables/useKatluxI18n.js +56 -0
  189. package/dist/runtime/composables/usePresetComponent.d.ts +23 -1
  190. package/dist/runtime/composables/usePresetComponent.js +71 -27
  191. package/dist/runtime/composables/useRequestProvider.d.ts +23 -0
  192. package/dist/runtime/composables/useRequestProvider.js +9 -0
  193. package/dist/runtime/composables/useSortLogic.d.ts +3 -2
  194. package/dist/runtime/composables/useSortLogic.js +3 -55
  195. package/dist/runtime/composables/useTemplate.d.ts +1 -1
  196. package/dist/runtime/composables/useTemplate.js +1 -1
  197. package/dist/runtime/composables/useUnregisterProvider.d.ts +25 -0
  198. package/dist/runtime/composables/useUnregisterProvider.js +4 -0
  199. package/dist/runtime/plugins/PresetPlugin.d.ts +2 -3
  200. package/dist/runtime/plugins/PresetPlugin.js +11 -15
  201. package/dist/runtime/plugins/nuxtCompatPlugin.d.ts +9 -0
  202. package/dist/runtime/plugins/nuxtCompatPlugin.js +11 -0
  203. package/dist/runtime/presets/default/assets/scss/css-variables.css +98 -17
  204. package/dist/runtime/presets/default/assets/scss/css-variables.scss +322 -0
  205. package/dist/runtime/presets/default/assets/scss/docs.scss +52 -0
  206. package/dist/runtime/presets/default/assets/scss/index.css +193 -17
  207. package/dist/runtime/presets/default/assets/scss/index.scss +86 -0
  208. package/dist/runtime/presets/default/assets/scss/mixins.scss +94 -0
  209. package/dist/runtime/presets/default/assets/scss/reset.scss +16 -0
  210. package/dist/runtime/presets/default/assets/svg/arrow-down.svg +4 -0
  211. package/dist/runtime/presets/default/assets/svg/arrow-left.svg +4 -0
  212. package/dist/runtime/presets/default/assets/svg/arrow-right.svg +4 -0
  213. package/dist/runtime/presets/default/assets/svg/arrow-up.svg +4 -0
  214. package/dist/runtime/presets/default/assets/svg/bell.svg +4 -0
  215. package/dist/runtime/presets/default/assets/svg/camera.svg +4 -0
  216. package/dist/runtime/presets/default/assets/svg/clock.svg +4 -0
  217. package/dist/runtime/presets/default/assets/svg/copy.svg +4 -0
  218. package/dist/runtime/presets/default/assets/svg/divide.svg +5 -0
  219. package/dist/runtime/presets/default/assets/svg/download.svg +5 -0
  220. package/dist/runtime/presets/default/assets/svg/edit.svg +4 -0
  221. package/dist/runtime/presets/default/assets/svg/external-link.svg +5 -0
  222. package/dist/runtime/presets/default/assets/svg/eye-off.svg +4 -0
  223. package/dist/runtime/presets/default/assets/svg/eye.svg +4 -0
  224. package/dist/runtime/presets/default/assets/svg/hash.svg +6 -0
  225. package/dist/runtime/presets/default/assets/svg/heart.svg +3 -0
  226. package/dist/runtime/presets/default/assets/svg/home.svg +4 -0
  227. package/dist/runtime/presets/default/assets/svg/image.svg +5 -0
  228. package/dist/runtime/presets/default/assets/svg/info.svg +5 -0
  229. package/dist/runtime/presets/default/assets/svg/link.svg +4 -0
  230. package/dist/runtime/presets/default/assets/svg/lock.svg +4 -0
  231. package/dist/runtime/presets/default/assets/svg/logout.svg +5 -0
  232. package/dist/runtime/presets/default/assets/svg/mail.svg +4 -0
  233. package/dist/runtime/presets/default/assets/svg/map-pin.svg +4 -0
  234. package/dist/runtime/presets/default/assets/svg/menu.svg +5 -0
  235. package/dist/runtime/presets/default/assets/svg/message-square.svg +3 -0
  236. package/dist/runtime/presets/default/assets/svg/minus.svg +3 -0
  237. package/dist/runtime/presets/default/assets/svg/more-vertical.svg +5 -0
  238. package/dist/runtime/presets/default/assets/svg/multiply.svg +3 -0
  239. package/dist/runtime/presets/default/assets/svg/phone.svg +3 -0
  240. package/dist/runtime/presets/default/assets/svg/plus.svg +4 -0
  241. package/dist/runtime/presets/default/assets/svg/refresh.svg +5 -0
  242. package/dist/runtime/presets/default/assets/svg/settings.svg +4 -0
  243. package/dist/runtime/presets/default/assets/svg/share.svg +5 -0
  244. package/dist/runtime/presets/default/assets/svg/shopping-bag.svg +5 -0
  245. package/dist/runtime/presets/default/assets/svg/star.svg +3 -0
  246. package/dist/runtime/presets/default/assets/svg/trash.svg +4 -0
  247. package/dist/runtime/presets/default/assets/svg/type.svg +5 -0
  248. package/dist/runtime/presets/default/assets/svg/upload.svg +5 -0
  249. package/dist/runtime/presets/default/assets/svg/warning.svg +5 -0
  250. package/dist/runtime/presets/default/components/KAccordion/KAccordion.vue +5 -2
  251. package/dist/runtime/presets/default/components/KAccordion/KAccordionItem.vue +58 -38
  252. package/dist/runtime/presets/default/components/KAlert/KAlert.d.vue.ts +6 -1
  253. package/dist/runtime/presets/default/components/KAlert/KAlert.vue +119 -3
  254. package/dist/runtime/presets/default/components/KAlert/KAlert.vue.d.ts +6 -1
  255. package/dist/runtime/presets/default/components/KBulkActions/KBulkActions.vue +49 -26
  256. package/dist/runtime/presets/default/components/KButton/KButton.vue +176 -430
  257. package/dist/runtime/presets/default/components/KCalendar/KCalendar.d.vue.ts +3 -0
  258. package/dist/runtime/presets/default/components/KCalendar/KCalendar.vue +86 -54
  259. package/dist/runtime/presets/default/components/KCalendar/KCalendar.vue.d.ts +3 -0
  260. package/dist/runtime/presets/default/components/KCalendar/KCalendarMonth.vue +196 -162
  261. package/dist/runtime/presets/default/components/KCalendar/KCalendarWeek.d.vue.ts +8 -1
  262. package/dist/runtime/presets/default/components/KCalendar/KCalendarWeek.vue +302 -2
  263. package/dist/runtime/presets/default/components/KCalendar/KCalendarWeek.vue.d.ts +8 -1
  264. package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.d.vue.ts +3 -0
  265. package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.vue +71 -42
  266. package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.vue.d.ts +3 -0
  267. package/dist/runtime/presets/default/components/KCombobox/KCombobox.d.vue.ts +8 -0
  268. package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue +140 -79
  269. package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue.d.ts +8 -0
  270. package/dist/runtime/presets/default/components/KCombobox/KComboboxList.d.vue.ts +1 -0
  271. package/dist/runtime/presets/default/components/KCombobox/KComboboxList.vue +85 -61
  272. package/dist/runtime/presets/default/components/KCombobox/KComboboxList.vue.d.ts +1 -0
  273. package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.d.vue.ts +34 -0
  274. package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.vue +234 -0
  275. package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.vue.d.ts +34 -0
  276. package/dist/runtime/presets/default/components/KContextMenu/KContextMenu.d.vue.ts +20 -1
  277. package/dist/runtime/presets/default/components/KContextMenu/KContextMenu.vue +102 -3
  278. package/dist/runtime/presets/default/components/KContextMenu/KContextMenu.vue.d.ts +20 -1
  279. package/dist/runtime/presets/default/components/KDataIterator/KDataIterator.vue +40 -31
  280. package/dist/runtime/presets/default/components/KDatatable/KDatatable.d.vue.ts +2 -0
  281. package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue +173 -95
  282. package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue.d.ts +2 -0
  283. package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.d.vue.ts +8 -0
  284. package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue +60 -25
  285. package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue.d.ts +8 -0
  286. package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.d.vue.ts +7 -0
  287. package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue +85 -52
  288. package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue.d.ts +7 -0
  289. package/dist/runtime/presets/default/components/KDropdown/KDropdown.d.vue.ts +16 -0
  290. package/dist/runtime/presets/default/components/KDropdown/KDropdown.vue +135 -25
  291. package/dist/runtime/presets/default/components/KDropdown/KDropdown.vue.d.ts +16 -0
  292. package/dist/runtime/presets/default/components/KGantt/KGantt.d.vue.ts +2 -2
  293. package/dist/runtime/presets/default/components/KGantt/KGantt.vue +352 -247
  294. package/dist/runtime/presets/default/components/KGantt/KGantt.vue.d.ts +2 -2
  295. package/dist/runtime/presets/default/components/KGantt/KGanttRuler.vue +40 -35
  296. package/dist/runtime/presets/default/components/KGantt/KGanttTimeline.vue +170 -140
  297. package/dist/runtime/presets/default/components/KGrid/KGrid.vue +63 -60
  298. package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.d.vue.ts +9 -2
  299. package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue +50 -28
  300. package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue.d.ts +9 -2
  301. package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.d.vue.ts +1 -0
  302. package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.vue +39 -28
  303. package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.vue.d.ts +1 -0
  304. package/dist/runtime/presets/default/components/KIcon/KIcon.d.vue.ts +1 -1
  305. package/dist/runtime/presets/default/components/KIcon/KIcon.vue +31 -22
  306. package/dist/runtime/presets/default/components/KIcon/KIcon.vue.d.ts +1 -1
  307. package/dist/runtime/presets/default/components/KLoader/KLoader.vue +65 -48
  308. package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.d.vue.ts +3 -0
  309. package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue +119 -84
  310. package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue.d.ts +3 -0
  311. package/dist/runtime/presets/default/components/KModal/KModal.d.vue.ts +2 -0
  312. package/dist/runtime/presets/default/components/KModal/KModal.vue +88 -35
  313. package/dist/runtime/presets/default/components/KModal/KModal.vue.d.ts +2 -0
  314. package/dist/runtime/presets/default/components/KPagination/KPagination.vue +58 -46
  315. package/dist/runtime/presets/default/components/KPanel/KPanel.d.vue.ts +3 -0
  316. package/dist/runtime/presets/default/components/KPanel/KPanel.vue +100 -34
  317. package/dist/runtime/presets/default/components/KPanel/KPanel.vue.d.ts +3 -0
  318. package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.d.vue.ts +2 -0
  319. package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.vue +58 -35
  320. package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.vue.d.ts +2 -0
  321. package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.d.vue.ts +1 -0
  322. package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.vue +160 -125
  323. package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.vue.d.ts +1 -0
  324. package/dist/runtime/presets/default/components/KSlider/KSlider.d.vue.ts +1 -0
  325. package/dist/runtime/presets/default/components/KSlider/KSlider.vue +125 -100
  326. package/dist/runtime/presets/default/components/KSlider/KSlider.vue.d.ts +1 -0
  327. package/dist/runtime/presets/default/components/KTabs/KTabItem.vue +41 -38
  328. package/dist/runtime/presets/default/components/KTabs/KTabs.vue +111 -8
  329. package/dist/runtime/presets/default/components/KTextarea/KTextarea.d.vue.ts +3 -0
  330. package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue +48 -21
  331. package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue.d.ts +3 -0
  332. package/dist/runtime/presets/default/components/KTextbox/KTextbox.d.vue.ts +5 -1
  333. package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue +113 -37
  334. package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue.d.ts +5 -1
  335. package/dist/runtime/presets/default/components/KToast/KToast.d.vue.ts +17 -0
  336. package/dist/runtime/presets/default/components/KToast/KToast.vue +118 -0
  337. package/dist/runtime/presets/default/components/KToast/KToast.vue.d.ts +17 -0
  338. package/dist/runtime/presets/default/components/KTooltip/KTooltip.d.vue.ts +14 -1
  339. package/dist/runtime/presets/default/components/KTooltip/KTooltip.vue +71 -3
  340. package/dist/runtime/presets/default/components/KTooltip/KTooltip.vue.d.ts +14 -1
  341. package/dist/runtime/presets/default/components/KTree/KTree.vue +116 -81
  342. package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.d.vue.ts +7 -0
  343. package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue +96 -55
  344. package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue.d.ts +7 -0
  345. package/dist/runtime/presets/default/components/KTreeView/KTreeCell.vue +31 -30
  346. package/dist/runtime/presets/default/components/KTreeView/KTreeView.d.vue.ts +2 -2
  347. package/dist/runtime/presets/default/components/KTreeView/KTreeView.vue +34 -27
  348. package/dist/runtime/presets/default/components/KTreeView/KTreeView.vue.d.ts +2 -2
  349. package/dist/runtime/presets/default/components/MultiTabs/MultiTabs.d.vue.ts +9 -0
  350. package/dist/runtime/presets/default/components/MultiTabs/MultiTabs.vue +61 -0
  351. package/dist/runtime/presets/default/components/MultiTabs/MultiTabs.vue.d.ts +9 -0
  352. package/dist/runtime/utils/PresetResolver.d.ts +8 -9
  353. package/dist/runtime/utils/PresetResolver.js +19 -13
  354. package/dist/runtime/utils/TemplateResolver.d.ts +14 -0
  355. package/dist/runtime/utils/TemplateResolver.js +32 -0
  356. package/package.json +12 -7
  357. package/dist/runtime/components/KSearchTree/KSearchTree.global.d.vue.ts +0 -3
  358. package/dist/runtime/components/KSearchTree/KSearchTree.global.vue +0 -9
  359. package/dist/runtime/components/KSearchTree/KSearchTree.global.vue.d.ts +0 -3
  360. package/dist/runtime/components/KSearchTree/KSearchTree.logic.d.ts +0 -4
  361. package/dist/runtime/components/KSearchTree/KSearchTree.logic.js +0 -4
  362. package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.global.d.vue.ts +0 -3
  363. package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.global.vue +0 -9
  364. package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.global.vue.d.ts +0 -3
  365. package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.logic.d.ts +0 -4
  366. package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.logic.js +0 -4
  367. package/dist/runtime/components/KThree/KThree.global.d.vue.ts +0 -3
  368. package/dist/runtime/components/KThree/KThree.global.vue +0 -7
  369. package/dist/runtime/components/KThree/KThree.global.vue.d.ts +0 -3
  370. package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.d.vue.ts +0 -3
  371. package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.vue +0 -5
  372. package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.vue.d.ts +0 -3
  373. package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.d.vue.ts +0 -3
  374. package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.vue +0 -5
  375. package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.vue.d.ts +0 -3
@@ -0,0 +1,5 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <polyline points="16 17 21 12 16 7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <line x1="21" y1="12" x2="9" y2="12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
5
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect width="20" height="16" x="2" y="4" rx="2" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <circle cx="12" cy="10" r="3" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <line x1="3" y1="12" x2="21" y2="12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <line x1="3" y1="6" x2="21" y2="6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <line x1="3" y1="18" x2="21" y2="18" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
5
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M5 12h14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="12" cy="12" r="1" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <circle cx="12" cy="5" r="1" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <circle cx="12" cy="19" r="1" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
5
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M18 6L6 18M6 6l12 12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M5 12h14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M12 5v14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <polyline points="23 4 23 10 17 10" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <polyline points="1 20 1 14 7 14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
5
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.5a2 2 0 0 1-1 1.72l-.15.1a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <circle cx="12" cy="12" r="3" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12 2v13" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="m16 6-4-4-4 4" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M16 10a4 4 0 0 1-8 0" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M3.103 6.034h17.794" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
5
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M3 6h18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <polyline points="4 7 4 4 20 4 20 7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <line x1="9" x2="15" y1="20" y2="20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <line x1="12" x2="12" y1="4" y2="20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <polyline points="17 8 12 3 7 8" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <line x1="12" y1="3" x2="12" y2="15" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <line x1="12" y1="9" x2="12" y2="13" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <line x1="12" y1="17" x2="12.01" y2="17" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
5
+ </svg>
@@ -4,6 +4,9 @@
4
4
  slot
5
5
  </template>
6
6
 
7
- <script setup>
8
-
7
+ <script lang="ts" setup>
8
+ // Default template for KAccordion
9
9
  </script>
10
+
11
+ <style lang="scss" scoped>
12
+ </style>
@@ -1,50 +1,70 @@
1
1
  <template lang="pug">
2
2
  .accordion-item(:class="{'isOpen': isOpen}")
3
- KGrid.accordion-item__header(align="center" justify="space-between" noGap @click="toggleAccordion")
3
+ KGrid.accordion-item__header(
4
+ align="center"
5
+ justify="space-between"
6
+ noGap
7
+ @click="toggleAccordion"
8
+ @keydown.enter.prevent="toggleAccordion"
9
+ @keydown.space.prevent="toggleAccordion"
10
+ role="button"
11
+ :aria-expanded="isOpen"
12
+ tabindex="0"
13
+ )
4
14
  .accordion-item__title {{title}}
5
15
  KIcon.accordion-item__chevron(iconname="chevron", :class="{'open': isOpen}")
6
16
  .accordion-item__content(:class="{'open': isOpen}")
7
17
  slot
8
18
  </template>
9
19
 
10
- <script setup>
11
- const props = defineProps({
12
- title: { type: String, required: true },
13
- isOpen: { type: Boolean, required: true },
14
- toggleAccordion: { type: Function, required: true }
15
- });
20
+ <script lang="ts" setup>
21
+ const props = defineProps<{
22
+ title: string
23
+ isOpen: boolean
24
+ toggleAccordion: () => void
25
+ }>()
16
26
  </script>
17
27
 
18
- <style scoped>
19
- .accordion-item__header {
20
- padding: var(--component-gap);
21
- background-color: var(--background-color-medium);
22
- cursor: pointer;
23
- border-radius: var(--box-border-radius);
24
- }
25
- .isOpen .accordion-item__header {
26
- border-bottom-left-radius: 0;
27
- border-bottom-right-radius: 0;
28
- }
29
- .accordion-item__title {
30
- flex-grow: 1;
31
- }
32
- .accordion-item__chevron {
33
- transform: rotate(90deg);
34
- transition: transform 0.3s ease-in-out;
35
- }
36
- .accordion-item__chevron.open {
37
- transform: rotate(270deg);
38
- }
39
- .accordion-item__content {
40
- display: none;
41
- padding-top: var(--box-padding);
42
- padding-bottom: var(--box-padding);
43
- }
44
- .accordion-item__content.open {
45
- border-bottom: var(--box-border);
46
- }
47
- .isOpen .accordion-item__content {
48
- display: block;
28
+ <style lang="scss" scoped>
29
+ .accordion-item {
30
+ width: 100%;
31
+ min-width: 0;
32
+ box-sizing: border-box;
33
+ overflow: hidden;
34
+ &__header {
35
+ padding: var(--component-gap);
36
+ background-color: var(--background-color-medium);
37
+ cursor: pointer;
38
+ border-radius: var(--box-border-radius);
39
+
40
+ .isOpen & {
41
+ border-bottom-left-radius: 0;
42
+ border-bottom-right-radius: 0;
43
+ }
44
+ }
45
+ &__title {
46
+ flex-grow: 1;
47
+ }
48
+ &__chevron {
49
+ transform: rotate(90deg);
50
+ transition: transform 0.3s ease-in-out;
51
+ &.open {
52
+ transform: rotate(270deg);
53
+ }
54
+ }
55
+ &__content {
56
+ display: none;
57
+ padding-top: var(--box-padding);
58
+ padding-bottom: var(--box-padding);
59
+ width: 100%;
60
+ box-sizing: border-box;
61
+ overflow: hidden;
62
+ &.open {
63
+ border-bottom: var(--box-border);
64
+ }
65
+ .isOpen & {
66
+ display: block;
67
+ }
68
+ }
49
69
  }
50
70
  </style>
@@ -1,3 +1,8 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ import { type KAlertProps } from '#toolkit/components/KAlert/KAlert.logic';
2
+ declare const __VLS_export: import("vue").DefineComponent<KAlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ dismiss: () => any;
4
+ }, string, import("vue").PublicProps, Readonly<KAlertProps> & Readonly<{
5
+ onDismiss?: (() => any) | undefined;
6
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
7
  declare const _default: typeof __VLS_export;
3
8
  export default _default;
@@ -1,5 +1,121 @@
1
1
  <template lang="pug">
2
- .KAlert
3
- // Impl
2
+ Transition(name="k-alert-fade")
3
+ .KAlert(v-if="visible" :class="[props.type]" role="alert")
4
+ .alert-icon(v-if="icon")
5
+ KIcon(:iconname="icon" :width="18" :height="18")
6
+ .alert-body
7
+ .alert-title(v-if="props.title") {{ props.title }}
8
+ .alert-content
9
+ slot
10
+ button.alert-dismiss(v-if="props.dismissible" @click="dismiss" :aria-label="t('Dismiss')")
11
+ KIcon(iconname="close" :width="14" :height="14")
4
12
  </template>
5
- <script lang="ts" setup></script>
13
+
14
+ <script lang="ts" setup>
15
+ import { useKAlertLogic, type KAlertProps } from '#toolkit/components/KAlert/KAlert.logic'
16
+ import { useKatluxI18n } from '#toolkit/composables/useKatluxI18n'
17
+
18
+ const props = defineProps<KAlertProps>()
19
+ const emit = defineEmits<{ dismiss: [] }>()
20
+ const { visible, dismiss, icon } = useKAlertLogic(props, () => emit('dismiss'))
21
+
22
+ const { t } = useKatluxI18n()
23
+ </script>
24
+
25
+ <style lang="scss" scoped>
26
+ .KAlert {
27
+ display: flex;
28
+ align-items: flex-start;
29
+ gap: 0.75rem;
30
+ padding: 0.875rem 1.125rem;
31
+ border-radius: var(--border-radius-md, 8px);
32
+ border: 1px solid transparent;
33
+ font-size: var(--font-size-md, 14px);
34
+ line-height: 1.5;
35
+ margin-bottom: 0.75rem;
36
+
37
+ // Type variants
38
+ &.info {
39
+ background-color: var(--info-color-light, #cffafe);
40
+ border-color: var(--info-color, #06b6d4);
41
+ color: var(--cyan-900, #164e63);
42
+ }
43
+ &.success {
44
+ background-color: var(--success-color-light, #dcfce7);
45
+ border-color: var(--success-color, #4caf50);
46
+ color: var(--green-900, #14532d);
47
+ }
48
+ &.warning {
49
+ background-color: var(--warning-color-light, #fef9c3);
50
+ border-color: var(--warning-color, #eab308);
51
+ color: var(--yellow-900, #713f12);
52
+ }
53
+ &.danger {
54
+ background-color: var(--error-color-light, #fee2e2);
55
+ border-color: var(--error-color, #ef4444);
56
+ color: var(--red-900, #7f1d1d);
57
+ }
58
+
59
+ .alert-icon {
60
+ display: flex;
61
+ align-items: center;
62
+ justify-content: center;
63
+ flex-shrink: 0;
64
+ margin-top: 2px;
65
+ }
66
+
67
+ .alert-body {
68
+ flex: 1;
69
+ min-width: 0;
70
+ }
71
+
72
+ .alert-title {
73
+ font-weight: var(--font-weight-semibold, 600);
74
+ margin-bottom: 0.25rem;
75
+ }
76
+
77
+ .alert-content {
78
+ font-size: var(--font-size-md, 14px);
79
+ }
80
+
81
+ .alert-dismiss {
82
+ background: none;
83
+ border: none;
84
+ cursor: pointer;
85
+ display: flex;
86
+ align-items: center;
87
+ justify-content: center;
88
+ opacity: 0.6;
89
+ color: inherit;
90
+ padding: 4px;
91
+ margin: -2px -4px 0 0;
92
+ border-radius: var(--border-radius-sm, 4px);
93
+ flex-shrink: 0;
94
+ transition: opacity var(--transition-fast, 0.15s ease), background-color var(--transition-fast, 0.15s ease);
95
+
96
+ &:hover {
97
+ opacity: 1;
98
+ background-color: rgba(0, 0, 0, 0.05);
99
+ }
100
+ }
101
+ }
102
+
103
+ .k-alert-fade-enter-active,
104
+ .k-alert-fade-leave-active {
105
+ transition: all var(--transition-normal, 0.3s ease);
106
+ overflow: hidden;
107
+ }
108
+ .k-alert-fade-enter-from,
109
+ .k-alert-fade-leave-to {
110
+ opacity: 0;
111
+ max-height: 0;
112
+ padding-top: 0;
113
+ padding-bottom: 0;
114
+ margin-bottom: 0;
115
+ }
116
+ .k-alert-fade-enter-to,
117
+ .k-alert-fade-leave-from {
118
+ opacity: 1;
119
+ max-height: 200px;
120
+ }
121
+ </style>
@@ -1,3 +1,8 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ import { type KAlertProps } from '#toolkit/components/KAlert/KAlert.logic';
2
+ declare const __VLS_export: import("vue").DefineComponent<KAlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ dismiss: () => any;
4
+ }, string, import("vue").PublicProps, Readonly<KAlertProps> & Readonly<{
5
+ onDismiss?: (() => any) | undefined;
6
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
7
  declare const _default: typeof __VLS_export;
3
8
  export default _default;
@@ -1,38 +1,61 @@
1
1
  <template lang="pug">
2
2
  .k-bulk-actions
3
3
  template(v-if="props.bulkActions.length>3")
4
- KCombobox(:dataProvider="dp" v-model="internalSelected" labelField="label" closeOnSelect :disabled="props.selectedRows.length === 0" placeholder="Select an action")
5
- KButton(@click="doAction(internalSelected)" size="small" :disabled="props.selectedRows.length === 0 || internalSelected == undefined") Do
4
+ KCombobox(:dataProvider="dp" v-model="internalSelected" labelField="label" closeOnSelect :disabled="props.selectedRows.length === 0" :placeholder="t('Select an action')")
5
+ KButton(@click="doAction(internalSelected)" size="small" :disabled="props.selectedRows.length === 0 || internalSelected == undefined") {{ t('Apply') }}
6
6
  template(v-else-if="props.bulkActions.length<=3" v-for="(action, index) in props.bulkActions")
7
- KButton(@click="doAction(action)" size="small" :disabled="props.selectedRows.length === 0") {{action.label}}
8
- .info Selected {{props.selectedRows.length}} items
7
+ KTooltip(
8
+ :text="action.label"
9
+ :disabled="!(action.iconOnly || !!action.icon)"
10
+ )
11
+ KButton(
12
+ @click="doAction(action)"
13
+ size="small"
14
+ :type="action.type || 'default'"
15
+ :iconOnly="action.iconOnly || !!action.icon"
16
+ :disabled="props.selectedRows.length === 0"
17
+ )
18
+ template(#icon v-if="action.icon")
19
+ KIcon(:iconname="action.icon" :width="16" :height="16")
20
+ template(#default v-if="!action.iconOnly && !action.icon") {{action.label}}
21
+ .info {{ t('Selected {count} items').replace('{count}', props.selectedRows.length.toString()) }}
9
22
  </template>
10
23
 
11
- <script setup>
12
- import { computed } from "vue";
13
- import { CFlatClientDataProvider } from "@katlux/providers";
14
- const props = defineProps({
15
- bulkActions: { type: Array, required: true },
16
- selectedRows: { type: Array, required: true },
17
- selectAll: { type: Boolean, required: true },
18
- selected: { type: null, required: true },
19
- dp: { type: Object, required: true },
20
- doAction: { type: Function, required: true }
21
- });
22
- const emit = defineEmits(["update:selected"]);
24
+ <script setup lang="ts">
25
+ import { computed } from 'vue'
26
+ import { CFlatClientDataProvider } from '@katlux/providers'
27
+ import type { IKDatatableAction } from '@katlux/providers'
28
+ import { useKatluxI18n } from '#toolkit/composables/useKatluxI18n'
29
+
30
+ const { t } = useKatluxI18n()
31
+
32
+ const props = defineProps<{
33
+ bulkActions: IKDatatableAction[]
34
+ selectedRows: any[]
35
+ selectAll: boolean
36
+ selected: any
37
+ dp: CFlatClientDataProvider
38
+ doAction: (action: any) => void
39
+ }>()
40
+
41
+ const emit = defineEmits<{
42
+ (e: 'update:selected', value: any): void
43
+ }>()
44
+
23
45
  const internalSelected = computed({
24
- get: () => props.selected,
25
- set: (val) => emit("update:selected", val)
26
- });
46
+ get: () => props.selected,
47
+ set: (val) => emit('update:selected', val)
48
+ })
49
+
27
50
  </script>
28
51
 
29
- <style scoped>
52
+ <style lang="scss" scoped>
30
53
  .k-bulk-actions {
31
- display: flex;
32
- gap: 10px;
33
- }
34
- .k-bulk-actions .info {
35
- display: flex;
36
- align-items: center;
54
+ display: flex;
55
+ gap: 10px;
56
+ .info {
57
+ display: flex;
58
+ align-items: center;
59
+ }
37
60
  }
38
61
  </style>