@katlux/toolkit 0.1.0-alpha.85

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 (452) hide show
  1. package/LICENSE +200 -0
  2. package/README.md +50 -0
  3. package/dist/compiled/composables/useDebounce.mjs +11 -0
  4. package/dist/compiled/composables/useFilterLogic.mjs +170 -0
  5. package/dist/compiled/composables/usePresetComponent.mjs +47 -0
  6. package/dist/compiled/composables/useRemainingTime.mjs +17 -0
  7. package/dist/compiled/composables/useSortLogic.mjs +55 -0
  8. package/dist/compiled/composables/useTemplate.mjs +70 -0
  9. package/dist/compiled/utils/PresetResolver.mjs +106 -0
  10. package/dist/module.cjs +82 -0
  11. package/dist/module.d.cts +5 -0
  12. package/dist/module.d.mts +5 -0
  13. package/dist/module.json +9 -0
  14. package/dist/module.mjs +79 -0
  15. package/dist/runtime/app.config.d.ts +9 -0
  16. package/dist/runtime/components/KAccordion/KAccordion.global.d.vue.ts +13 -0
  17. package/dist/runtime/components/KAccordion/KAccordion.global.vue +15 -0
  18. package/dist/runtime/components/KAccordion/KAccordion.global.vue.d.ts +13 -0
  19. package/dist/runtime/components/KAccordion/KAccordion.logic.d.ts +9 -0
  20. package/dist/runtime/components/KAccordion/KAccordion.logic.js +38 -0
  21. package/dist/runtime/components/KAccordion/KAccordionItem.global.d.vue.ts +21 -0
  22. package/dist/runtime/components/KAccordion/KAccordionItem.global.vue +20 -0
  23. package/dist/runtime/components/KAccordion/KAccordionItem.global.vue.d.ts +21 -0
  24. package/dist/runtime/components/KAccordion/KAccordionItem.logic.d.ts +17 -0
  25. package/dist/runtime/components/KAccordion/KAccordionItem.logic.js +59 -0
  26. package/dist/runtime/components/KAlert/KAlert.global.d.vue.ts +3 -0
  27. package/dist/runtime/components/KAlert/KAlert.global.vue +9 -0
  28. package/dist/runtime/components/KAlert/KAlert.global.vue.d.ts +3 -0
  29. package/dist/runtime/components/KAlert/KAlert.logic.d.ts +4 -0
  30. package/dist/runtime/components/KAlert/KAlert.logic.js +4 -0
  31. package/dist/runtime/components/KBulkActions/KBulkActions.global.d.vue.ts +9 -0
  32. package/dist/runtime/components/KBulkActions/KBulkActions.global.vue +32 -0
  33. package/dist/runtime/components/KBulkActions/KBulkActions.global.vue.d.ts +9 -0
  34. package/dist/runtime/components/KBulkActions/KBulkActions.logic.d.ts +28 -0
  35. package/dist/runtime/components/KBulkActions/KBulkActions.logic.js +31 -0
  36. package/dist/runtime/components/KButton/KButton.global.d.vue.ts +65 -0
  37. package/dist/runtime/components/KButton/KButton.global.vue +25 -0
  38. package/dist/runtime/components/KButton/KButton.global.vue.d.ts +65 -0
  39. package/dist/runtime/components/KButton/KButton.logic.d.ts +60 -0
  40. package/dist/runtime/components/KButton/KButton.logic.js +46 -0
  41. package/dist/runtime/components/KCalendar/KCalendar.global.d.vue.ts +67 -0
  42. package/dist/runtime/components/KCalendar/KCalendar.global.vue +39 -0
  43. package/dist/runtime/components/KCalendar/KCalendar.global.vue.d.ts +67 -0
  44. package/dist/runtime/components/KCalendar/KCalendar.logic.d.ts +247 -0
  45. package/dist/runtime/components/KCalendar/KCalendar.logic.js +181 -0
  46. package/dist/runtime/components/KCalendar/KCalendarMonth.global.d.vue.ts +74 -0
  47. package/dist/runtime/components/KCalendar/KCalendarMonth.global.vue +33 -0
  48. package/dist/runtime/components/KCalendar/KCalendarMonth.global.vue.d.ts +74 -0
  49. package/dist/runtime/components/KCalendar/KCalendarMonth.logic.d.ts +54 -0
  50. package/dist/runtime/components/KCalendar/KCalendarMonth.logic.js +122 -0
  51. package/dist/runtime/components/KCalendar/KCalendarWeek.global.d.vue.ts +3 -0
  52. package/dist/runtime/components/KCalendar/KCalendarWeek.global.vue +9 -0
  53. package/dist/runtime/components/KCalendar/KCalendarWeek.global.vue.d.ts +3 -0
  54. package/dist/runtime/components/KCalendar/KCalendarWeek.logic.d.ts +4 -0
  55. package/dist/runtime/components/KCalendar/KCalendarWeek.logic.js +4 -0
  56. package/dist/runtime/components/KCalendar/recurringUtils.d.ts +11 -0
  57. package/dist/runtime/components/KCalendar/recurringUtils.js +191 -0
  58. package/dist/runtime/components/KCalendar/types.d.ts +38 -0
  59. package/dist/runtime/components/KCalendar/types.js +1 -0
  60. package/dist/runtime/components/KCheckbox/KCheckbox.global.d.vue.ts +64 -0
  61. package/dist/runtime/components/KCheckbox/KCheckbox.global.vue +24 -0
  62. package/dist/runtime/components/KCheckbox/KCheckbox.global.vue.d.ts +64 -0
  63. package/dist/runtime/components/KCheckbox/KCheckbox.logic.d.ts +45 -0
  64. package/dist/runtime/components/KCheckbox/KCheckbox.logic.js +35 -0
  65. package/dist/runtime/components/KCombobox/KCombobox.global.d.vue.ts +175 -0
  66. package/dist/runtime/components/KCombobox/KCombobox.global.vue +58 -0
  67. package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +175 -0
  68. package/dist/runtime/components/KCombobox/KCombobox.logic.d.ts +115 -0
  69. package/dist/runtime/components/KCombobox/KCombobox.logic.js +212 -0
  70. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.d.vue.ts +214 -0
  71. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue +55 -0
  72. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue.d.ts +214 -0
  73. package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.d.ts +187 -0
  74. package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.js +263 -0
  75. package/dist/runtime/components/KContextMenu/KContextMenu.global.d.vue.ts +55 -0
  76. package/dist/runtime/components/KContextMenu/KContextMenu.global.vue +28 -0
  77. package/dist/runtime/components/KContextMenu/KContextMenu.global.vue.d.ts +55 -0
  78. package/dist/runtime/components/KContextMenu/KContextMenu.logic.d.ts +55 -0
  79. package/dist/runtime/components/KContextMenu/KContextMenu.logic.js +168 -0
  80. package/dist/runtime/components/KDatatable/KDataIterator.global.d.vue.ts +23 -0
  81. package/dist/runtime/components/KDatatable/KDataIterator.global.vue +53 -0
  82. package/dist/runtime/components/KDatatable/KDataIterator.global.vue.d.ts +23 -0
  83. package/dist/runtime/components/KDatatable/KDataIterator.logic.d.ts +20 -0
  84. package/dist/runtime/components/KDatatable/KDataIterator.logic.js +37 -0
  85. package/dist/runtime/components/KDatatable/KDatatable.global.d.vue.ts +27 -0
  86. package/dist/runtime/components/KDatatable/KDatatable.global.vue +50 -0
  87. package/dist/runtime/components/KDatatable/KDatatable.global.vue.d.ts +27 -0
  88. package/dist/runtime/components/KDatatable/KDatatable.logic.d.ts +16 -0
  89. package/dist/runtime/components/KDatatable/KDatatable.logic.js +21 -0
  90. package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +138 -0
  91. package/dist/runtime/components/KDatePicker/KDatePicker.global.vue +70 -0
  92. package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +138 -0
  93. package/dist/runtime/components/KDatePicker/KDatePicker.logic.d.ts +80 -0
  94. package/dist/runtime/components/KDatePicker/KDatePicker.logic.js +174 -0
  95. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.d.vue.ts +145 -0
  96. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue +72 -0
  97. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +145 -0
  98. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.d.ts +87 -0
  99. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.js +238 -0
  100. package/dist/runtime/components/KDropdown/KDropdown.global.d.vue.ts +64 -0
  101. package/dist/runtime/components/KDropdown/KDropdown.global.vue +32 -0
  102. package/dist/runtime/components/KDropdown/KDropdown.global.vue.d.ts +64 -0
  103. package/dist/runtime/components/KDropdown/KDropdown.logic.d.ts +78 -0
  104. package/dist/runtime/components/KDropdown/KDropdown.logic.js +179 -0
  105. package/dist/runtime/components/KGantt/KGantt.global.d.vue.ts +172 -0
  106. package/dist/runtime/components/KGantt/KGantt.global.vue +73 -0
  107. package/dist/runtime/components/KGantt/KGantt.global.vue.d.ts +172 -0
  108. package/dist/runtime/components/KGantt/KGantt.logic.d.ts +190 -0
  109. package/dist/runtime/components/KGantt/KGantt.logic.js +310 -0
  110. package/dist/runtime/components/KGrid/KGrid.global.d.vue.ts +11 -0
  111. package/dist/runtime/components/KGrid/KGrid.global.vue +25 -0
  112. package/dist/runtime/components/KGrid/KGrid.global.vue.d.ts +11 -0
  113. package/dist/runtime/components/KGrid/KGrid.logic.d.ts +37 -0
  114. package/dist/runtime/components/KGrid/KGrid.logic.js +53 -0
  115. package/dist/runtime/components/KHourPicker/KHourPicker.global.d.vue.ts +123 -0
  116. package/dist/runtime/components/KHourPicker/KHourPicker.global.vue +56 -0
  117. package/dist/runtime/components/KHourPicker/KHourPicker.global.vue.d.ts +123 -0
  118. package/dist/runtime/components/KHourPicker/KHourPicker.logic.d.ts +74 -0
  119. package/dist/runtime/components/KHourPicker/KHourPicker.logic.js +86 -0
  120. package/dist/runtime/components/KHourSelect/KHourSelect.global.d.vue.ts +64 -0
  121. package/dist/runtime/components/KHourSelect/KHourSelect.global.vue +31 -0
  122. package/dist/runtime/components/KHourSelect/KHourSelect.global.vue.d.ts +64 -0
  123. package/dist/runtime/components/KHourSelect/KHourSelect.logic.d.ts +39 -0
  124. package/dist/runtime/components/KHourSelect/KHourSelect.logic.js +76 -0
  125. package/dist/runtime/components/KIcon/KIcon.global.d.vue.ts +41 -0
  126. package/dist/runtime/components/KIcon/KIcon.global.vue +19 -0
  127. package/dist/runtime/components/KIcon/KIcon.global.vue.d.ts +41 -0
  128. package/dist/runtime/components/KIcon/KIcon.logic.d.ts +29 -0
  129. package/dist/runtime/components/KIcon/KIcon.logic.js +46 -0
  130. package/dist/runtime/components/KLoader/KLoader.global.d.vue.ts +33 -0
  131. package/dist/runtime/components/KLoader/KLoader.global.vue +22 -0
  132. package/dist/runtime/components/KLoader/KLoader.global.vue.d.ts +33 -0
  133. package/dist/runtime/components/KLoader/KLoader.logic.d.ts +29 -0
  134. package/dist/runtime/components/KLoader/KLoader.logic.js +25 -0
  135. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.d.vue.ts +75 -0
  136. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue +28 -0
  137. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue.d.ts +75 -0
  138. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.d.ts +82 -0
  139. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.js +204 -0
  140. package/dist/runtime/components/KModal/KModal.global.d.vue.ts +18 -0
  141. package/dist/runtime/components/KModal/KModal.global.vue +28 -0
  142. package/dist/runtime/components/KModal/KModal.global.vue.d.ts +18 -0
  143. package/dist/runtime/components/KModal/KModal.logic.d.ts +16 -0
  144. package/dist/runtime/components/KModal/KModal.logic.js +25 -0
  145. package/dist/runtime/components/KPagination/KPagination.global.d.vue.ts +7 -0
  146. package/dist/runtime/components/KPagination/KPagination.global.vue +45 -0
  147. package/dist/runtime/components/KPagination/KPagination.global.vue.d.ts +7 -0
  148. package/dist/runtime/components/KPagination/KPagination.logic.d.ts +20 -0
  149. package/dist/runtime/components/KPagination/KPagination.logic.js +73 -0
  150. package/dist/runtime/components/KPanel/KPanel.global.d.vue.ts +10 -0
  151. package/dist/runtime/components/KPanel/KPanel.global.vue +27 -0
  152. package/dist/runtime/components/KPanel/KPanel.global.vue.d.ts +10 -0
  153. package/dist/runtime/components/KPanel/KPanel.logic.d.ts +30 -0
  154. package/dist/runtime/components/KPanel/KPanel.logic.js +25 -0
  155. package/dist/runtime/components/KRadiobox/KRadiobox.global.d.vue.ts +58 -0
  156. package/dist/runtime/components/KRadiobox/KRadiobox.global.vue +24 -0
  157. package/dist/runtime/components/KRadiobox/KRadiobox.global.vue.d.ts +58 -0
  158. package/dist/runtime/components/KRadiobox/KRadiobox.logic.d.ts +33 -0
  159. package/dist/runtime/components/KRadiobox/KRadiobox.logic.js +29 -0
  160. package/dist/runtime/components/KRangeSlider/KRangeSlider.global.d.vue.ts +75 -0
  161. package/dist/runtime/components/KRangeSlider/KRangeSlider.global.vue +37 -0
  162. package/dist/runtime/components/KRangeSlider/KRangeSlider.global.vue.d.ts +75 -0
  163. package/dist/runtime/components/KRangeSlider/KRangeSlider.logic.d.ts +57 -0
  164. package/dist/runtime/components/KRangeSlider/KRangeSlider.logic.js +69 -0
  165. package/dist/runtime/components/KSearchTree/KSearchTree.global.d.vue.ts +3 -0
  166. package/dist/runtime/components/KSearchTree/KSearchTree.global.vue +9 -0
  167. package/dist/runtime/components/KSearchTree/KSearchTree.global.vue.d.ts +3 -0
  168. package/dist/runtime/components/KSearchTree/KSearchTree.logic.d.ts +10 -0
  169. package/dist/runtime/components/KSearchTree/KSearchTree.logic.js +9 -0
  170. package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.global.d.vue.ts +3 -0
  171. package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.global.vue +9 -0
  172. package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.global.vue.d.ts +3 -0
  173. package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.logic.d.ts +10 -0
  174. package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.logic.js +9 -0
  175. package/dist/runtime/components/KSlider/KSlider.global.d.vue.ts +64 -0
  176. package/dist/runtime/components/KSlider/KSlider.global.vue +32 -0
  177. package/dist/runtime/components/KSlider/KSlider.global.vue.d.ts +64 -0
  178. package/dist/runtime/components/KSlider/KSlider.logic.d.ts +50 -0
  179. package/dist/runtime/components/KSlider/KSlider.logic.js +49 -0
  180. package/dist/runtime/components/KTabs/KTabItem.global.d.vue.ts +21 -0
  181. package/dist/runtime/components/KTabs/KTabItem.global.vue +20 -0
  182. package/dist/runtime/components/KTabs/KTabItem.global.vue.d.ts +21 -0
  183. package/dist/runtime/components/KTabs/KTabItem.logic.d.ts +17 -0
  184. package/dist/runtime/components/KTabs/KTabItem.logic.js +37 -0
  185. package/dist/runtime/components/KTabs/KTabs.global.d.vue.ts +3 -0
  186. package/dist/runtime/components/KTabs/KTabs.global.vue +20 -0
  187. package/dist/runtime/components/KTabs/KTabs.global.vue.d.ts +3 -0
  188. package/dist/runtime/components/KTabs/KTabs.logic.d.ts +8 -0
  189. package/dist/runtime/components/KTabs/KTabs.logic.js +49 -0
  190. package/dist/runtime/components/KTextarea/KTextarea.global.d.vue.ts +66 -0
  191. package/dist/runtime/components/KTextarea/KTextarea.global.vue +22 -0
  192. package/dist/runtime/components/KTextarea/KTextarea.global.vue.d.ts +66 -0
  193. package/dist/runtime/components/KTextarea/KTextarea.logic.d.ts +47 -0
  194. package/dist/runtime/components/KTextarea/KTextarea.logic.js +37 -0
  195. package/dist/runtime/components/KTextbox/KTextbox.global.d.vue.ts +78 -0
  196. package/dist/runtime/components/KTextbox/KTextbox.global.vue +24 -0
  197. package/dist/runtime/components/KTextbox/KTextbox.global.vue.d.ts +78 -0
  198. package/dist/runtime/components/KTextbox/KTextbox.logic.d.ts +55 -0
  199. package/dist/runtime/components/KTextbox/KTextbox.logic.js +52 -0
  200. package/dist/runtime/components/KThree/KThree.global.d.vue.ts +3 -0
  201. package/dist/runtime/components/KThree/KThree.global.vue +7 -0
  202. package/dist/runtime/components/KThree/KThree.global.vue.d.ts +3 -0
  203. package/dist/runtime/components/KToast/KToast.global.d.vue.ts +57 -0
  204. package/dist/runtime/components/KToast/KToast.global.vue +32 -0
  205. package/dist/runtime/components/KToast/KToast.global.vue.d.ts +57 -0
  206. package/dist/runtime/components/KToast/KToast.logic.d.ts +34 -0
  207. package/dist/runtime/components/KToast/KToast.logic.js +47 -0
  208. package/dist/runtime/components/KTooltip/KTooltip.global.d.vue.ts +33 -0
  209. package/dist/runtime/components/KTooltip/KTooltip.global.vue +28 -0
  210. package/dist/runtime/components/KTooltip/KTooltip.global.vue.d.ts +33 -0
  211. package/dist/runtime/components/KTooltip/KTooltip.logic.d.ts +27 -0
  212. package/dist/runtime/components/KTooltip/KTooltip.logic.js +82 -0
  213. package/dist/runtime/components/KTree/KTree.global.d.vue.ts +77 -0
  214. package/dist/runtime/components/KTree/KTree.global.vue +36 -0
  215. package/dist/runtime/components/KTree/KTree.global.vue.d.ts +77 -0
  216. package/dist/runtime/components/KTree/KTree.logic.d.ts +51 -0
  217. package/dist/runtime/components/KTree/KTree.logic.js +65 -0
  218. package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +186 -0
  219. package/dist/runtime/components/KTreePicker/KTreePicker.global.vue +79 -0
  220. package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +186 -0
  221. package/dist/runtime/components/KTreePicker/KTreePicker.logic.d.ts +114 -0
  222. package/dist/runtime/components/KTreePicker/KTreePicker.logic.js +93 -0
  223. package/dist/runtime/components/KTreeView/KTreeView.global.d.vue.ts +94 -0
  224. package/dist/runtime/components/KTreeView/KTreeView.global.vue +69 -0
  225. package/dist/runtime/components/KTreeView/KTreeView.global.vue.d.ts +94 -0
  226. package/dist/runtime/components/KTreeView/KTreeView.logic.d.ts +75 -0
  227. package/dist/runtime/components/KTreeView/KTreeView.logic.js +90 -0
  228. package/dist/runtime/components/MultiTabs/MultiTabs.global.d.vue.ts +23 -0
  229. package/dist/runtime/components/MultiTabs/MultiTabs.global.vue +27 -0
  230. package/dist/runtime/components/MultiTabs/MultiTabs.global.vue.d.ts +23 -0
  231. package/dist/runtime/components/MultiTabs/MultiTabs.logic.d.ts +25 -0
  232. package/dist/runtime/components/MultiTabs/MultiTabs.logic.js +52 -0
  233. package/dist/runtime/composables/useDebounce.d.ts +7 -0
  234. package/dist/runtime/composables/useDebounce.js +11 -0
  235. package/dist/runtime/composables/useFilterLogic.d.ts +20 -0
  236. package/dist/runtime/composables/useFilterLogic.js +170 -0
  237. package/dist/runtime/composables/usePresetComponent.d.ts +18 -0
  238. package/dist/runtime/composables/usePresetComponent.js +47 -0
  239. package/dist/runtime/composables/useRemainingTime.d.ts +3 -0
  240. package/dist/runtime/composables/useRemainingTime.js +17 -0
  241. package/dist/runtime/composables/useSortLogic.d.ts +4 -0
  242. package/dist/runtime/composables/useSortLogic.js +55 -0
  243. package/dist/runtime/composables/useTemplate.d.ts +47 -0
  244. package/dist/runtime/composables/useTemplate.js +70 -0
  245. package/dist/runtime/directives/clickOutside.d.ts +7 -0
  246. package/dist/runtime/directives/clickOutside.js +45 -0
  247. package/dist/runtime/directives/index.d.ts +1 -0
  248. package/dist/runtime/directives/index.js +1 -0
  249. package/dist/runtime/plugins/PresetPlugin.d.ts +11 -0
  250. package/dist/runtime/plugins/PresetPlugin.js +34 -0
  251. package/dist/runtime/plugins/registerDirectives.d.ts +2 -0
  252. package/dist/runtime/plugins/registerDirectives.js +5 -0
  253. package/dist/runtime/presets/default/assets/scss/css-variables.css +230 -0
  254. package/dist/runtime/presets/default/assets/scss/css-variables.scss +320 -0
  255. package/dist/runtime/presets/default/assets/scss/docs.css +42 -0
  256. package/dist/runtime/presets/default/assets/scss/docs.scss +52 -0
  257. package/dist/runtime/presets/default/assets/scss/index.css +385 -0
  258. package/dist/runtime/presets/default/assets/scss/index.scss +86 -0
  259. package/dist/runtime/presets/default/assets/scss/mixins.css +0 -0
  260. package/dist/runtime/presets/default/assets/scss/mixins.scss +94 -0
  261. package/dist/runtime/presets/default/assets/scss/reset.css +16 -0
  262. package/dist/runtime/presets/default/assets/scss/reset.scss +16 -0
  263. package/dist/runtime/presets/default/assets/svg/arrow-down.svg +4 -0
  264. package/dist/runtime/presets/default/assets/svg/arrow-left.svg +4 -0
  265. package/dist/runtime/presets/default/assets/svg/arrow-right.svg +4 -0
  266. package/dist/runtime/presets/default/assets/svg/arrow-up.svg +4 -0
  267. package/dist/runtime/presets/default/assets/svg/bell.svg +4 -0
  268. package/dist/runtime/presets/default/assets/svg/calendar.svg +9 -0
  269. package/dist/runtime/presets/default/assets/svg/camera.svg +4 -0
  270. package/dist/runtime/presets/default/assets/svg/check.svg +3 -0
  271. package/dist/runtime/presets/default/assets/svg/chevron.svg +3 -0
  272. package/dist/runtime/presets/default/assets/svg/clock.svg +4 -0
  273. package/dist/runtime/presets/default/assets/svg/close.svg +4 -0
  274. package/dist/runtime/presets/default/assets/svg/copy.svg +4 -0
  275. package/dist/runtime/presets/default/assets/svg/divide.svg +5 -0
  276. package/dist/runtime/presets/default/assets/svg/download.svg +5 -0
  277. package/dist/runtime/presets/default/assets/svg/edit.svg +4 -0
  278. package/dist/runtime/presets/default/assets/svg/external-link.svg +5 -0
  279. package/dist/runtime/presets/default/assets/svg/eye-off.svg +4 -0
  280. package/dist/runtime/presets/default/assets/svg/eye.svg +4 -0
  281. package/dist/runtime/presets/default/assets/svg/file.svg +4 -0
  282. package/dist/runtime/presets/default/assets/svg/folder.svg +3 -0
  283. package/dist/runtime/presets/default/assets/svg/hash.svg +6 -0
  284. package/dist/runtime/presets/default/assets/svg/heart.svg +3 -0
  285. package/dist/runtime/presets/default/assets/svg/home.svg +4 -0
  286. package/dist/runtime/presets/default/assets/svg/image.svg +5 -0
  287. package/dist/runtime/presets/default/assets/svg/info.svg +5 -0
  288. package/dist/runtime/presets/default/assets/svg/link.svg +4 -0
  289. package/dist/runtime/presets/default/assets/svg/lock.svg +4 -0
  290. package/dist/runtime/presets/default/assets/svg/logout.svg +5 -0
  291. package/dist/runtime/presets/default/assets/svg/mail.svg +4 -0
  292. package/dist/runtime/presets/default/assets/svg/map-pin.svg +4 -0
  293. package/dist/runtime/presets/default/assets/svg/menu.svg +5 -0
  294. package/dist/runtime/presets/default/assets/svg/message-square.svg +3 -0
  295. package/dist/runtime/presets/default/assets/svg/minus.svg +3 -0
  296. package/dist/runtime/presets/default/assets/svg/more-vertical.svg +5 -0
  297. package/dist/runtime/presets/default/assets/svg/multiply.svg +3 -0
  298. package/dist/runtime/presets/default/assets/svg/phone.svg +3 -0
  299. package/dist/runtime/presets/default/assets/svg/plus.svg +4 -0
  300. package/dist/runtime/presets/default/assets/svg/refresh.svg +5 -0
  301. package/dist/runtime/presets/default/assets/svg/search.svg +4 -0
  302. package/dist/runtime/presets/default/assets/svg/settings.svg +4 -0
  303. package/dist/runtime/presets/default/assets/svg/share.svg +5 -0
  304. package/dist/runtime/presets/default/assets/svg/shopping-bag.svg +5 -0
  305. package/dist/runtime/presets/default/assets/svg/star.svg +3 -0
  306. package/dist/runtime/presets/default/assets/svg/trash.svg +4 -0
  307. package/dist/runtime/presets/default/assets/svg/type.svg +5 -0
  308. package/dist/runtime/presets/default/assets/svg/upload.svg +5 -0
  309. package/dist/runtime/presets/default/assets/svg/user.svg +4 -0
  310. package/dist/runtime/presets/default/assets/svg/warning.svg +5 -0
  311. package/dist/runtime/presets/default/components/KAccordion/KAccordion.d.vue.ts +3 -0
  312. package/dist/runtime/presets/default/components/KAccordion/KAccordion.vue +12 -0
  313. package/dist/runtime/presets/default/components/KAccordion/KAccordion.vue.d.ts +3 -0
  314. package/dist/runtime/presets/default/components/KAccordion/KAccordionItem.d.vue.ts +8 -0
  315. package/dist/runtime/presets/default/components/KAccordion/KAccordionItem.vue +53 -0
  316. package/dist/runtime/presets/default/components/KAccordion/KAccordionItem.vue.d.ts +8 -0
  317. package/dist/runtime/presets/default/components/KAlert/KAlert.d.vue.ts +3 -0
  318. package/dist/runtime/presets/default/components/KAlert/KAlert.vue +5 -0
  319. package/dist/runtime/presets/default/components/KAlert/KAlert.vue.d.ts +3 -0
  320. package/dist/runtime/presets/default/components/KBulkActions/KBulkActions.d.vue.ts +17 -0
  321. package/dist/runtime/presets/default/components/KBulkActions/KBulkActions.vue +58 -0
  322. package/dist/runtime/presets/default/components/KBulkActions/KBulkActions.vue.d.ts +17 -0
  323. package/dist/runtime/presets/default/components/KButton/KButton.d.vue.ts +11 -0
  324. package/dist/runtime/presets/default/components/KButton/KButton.vue +190 -0
  325. package/dist/runtime/presets/default/components/KButton/KButton.vue.d.ts +11 -0
  326. package/dist/runtime/presets/default/components/KCalendar/KCalendar.d.vue.ts +18 -0
  327. package/dist/runtime/presets/default/components/KCalendar/KCalendar.vue +96 -0
  328. package/dist/runtime/presets/default/components/KCalendar/KCalendar.vue.d.ts +18 -0
  329. package/dist/runtime/presets/default/components/KCalendar/KCalendarMonth.d.vue.ts +15 -0
  330. package/dist/runtime/presets/default/components/KCalendar/KCalendarMonth.vue +223 -0
  331. package/dist/runtime/presets/default/components/KCalendar/KCalendarMonth.vue.d.ts +15 -0
  332. package/dist/runtime/presets/default/components/KCalendar/KCalendarWeek.d.vue.ts +3 -0
  333. package/dist/runtime/presets/default/components/KCalendar/KCalendarWeek.vue +5 -0
  334. package/dist/runtime/presets/default/components/KCalendar/KCalendarWeek.vue.d.ts +3 -0
  335. package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.d.vue.ts +15 -0
  336. package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.vue +68 -0
  337. package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.vue.d.ts +15 -0
  338. package/dist/runtime/presets/default/components/KCombobox/KCombobox.d.vue.ts +31 -0
  339. package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue +147 -0
  340. package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue.d.ts +31 -0
  341. package/dist/runtime/presets/default/components/KCombobox/KComboboxList.d.vue.ts +18 -0
  342. package/dist/runtime/presets/default/components/KCombobox/KComboboxList.vue +107 -0
  343. package/dist/runtime/presets/default/components/KCombobox/KComboboxList.vue.d.ts +18 -0
  344. package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.d.vue.ts +34 -0
  345. package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.vue +234 -0
  346. package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.vue.d.ts +34 -0
  347. package/dist/runtime/presets/default/components/KContextMenu/KContextMenu.d.vue.ts +22 -0
  348. package/dist/runtime/presets/default/components/KContextMenu/KContextMenu.vue +62 -0
  349. package/dist/runtime/presets/default/components/KContextMenu/KContextMenu.vue.d.ts +22 -0
  350. package/dist/runtime/presets/default/components/KDataIterator/KDataIterator.d.vue.ts +24 -0
  351. package/dist/runtime/presets/default/components/KDataIterator/KDataIterator.vue +66 -0
  352. package/dist/runtime/presets/default/components/KDataIterator/KDataIterator.vue.d.ts +24 -0
  353. package/dist/runtime/presets/default/components/KDatatable/KDatatable.d.vue.ts +25 -0
  354. package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue +195 -0
  355. package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue.d.ts +25 -0
  356. package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.d.vue.ts +29 -0
  357. package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue +68 -0
  358. package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue.d.ts +29 -0
  359. package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.d.vue.ts +32 -0
  360. package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue +99 -0
  361. package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue.d.ts +32 -0
  362. package/dist/runtime/presets/default/components/KDropdown/KDropdown.d.vue.ts +24 -0
  363. package/dist/runtime/presets/default/components/KDropdown/KDropdown.vue +117 -0
  364. package/dist/runtime/presets/default/components/KDropdown/KDropdown.vue.d.ts +24 -0
  365. package/dist/runtime/presets/default/components/KGantt/KGantt.d.vue.ts +49 -0
  366. package/dist/runtime/presets/default/components/KGantt/KGantt.vue +400 -0
  367. package/dist/runtime/presets/default/components/KGantt/KGantt.vue.d.ts +49 -0
  368. package/dist/runtime/presets/default/components/KGantt/KGanttRuler.d.vue.ts +8 -0
  369. package/dist/runtime/presets/default/components/KGantt/KGanttRuler.vue +56 -0
  370. package/dist/runtime/presets/default/components/KGantt/KGanttRuler.vue.d.ts +8 -0
  371. package/dist/runtime/presets/default/components/KGantt/KGanttTimeline.d.vue.ts +41 -0
  372. package/dist/runtime/presets/default/components/KGantt/KGanttTimeline.vue +218 -0
  373. package/dist/runtime/presets/default/components/KGantt/KGanttTimeline.vue.d.ts +41 -0
  374. package/dist/runtime/presets/default/components/KGrid/KGrid.d.vue.ts +6 -0
  375. package/dist/runtime/presets/default/components/KGrid/KGrid.vue +73 -0
  376. package/dist/runtime/presets/default/components/KGrid/KGrid.vue.d.ts +6 -0
  377. package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.d.vue.ts +27 -0
  378. package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue +73 -0
  379. package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue.d.ts +27 -0
  380. package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.d.vue.ts +9 -0
  381. package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.vue +54 -0
  382. package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.vue.d.ts +9 -0
  383. package/dist/runtime/presets/default/components/KIcon/KIcon.d.vue.ts +9 -0
  384. package/dist/runtime/presets/default/components/KIcon/KIcon.vue +39 -0
  385. package/dist/runtime/presets/default/components/KIcon/KIcon.vue.d.ts +9 -0
  386. package/dist/runtime/presets/default/components/KLoader/KLoader.d.vue.ts +9 -0
  387. package/dist/runtime/presets/default/components/KLoader/KLoader.vue +77 -0
  388. package/dist/runtime/presets/default/components/KLoader/KLoader.vue.d.ts +9 -0
  389. package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.d.vue.ts +18 -0
  390. package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue +136 -0
  391. package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue.d.ts +18 -0
  392. package/dist/runtime/presets/default/components/KModal/KModal.d.vue.ts +9 -0
  393. package/dist/runtime/presets/default/components/KModal/KModal.vue +92 -0
  394. package/dist/runtime/presets/default/components/KModal/KModal.vue.d.ts +9 -0
  395. package/dist/runtime/presets/default/components/KPagination/KPagination.d.vue.ts +18 -0
  396. package/dist/runtime/presets/default/components/KPagination/KPagination.vue +72 -0
  397. package/dist/runtime/presets/default/components/KPagination/KPagination.vue.d.ts +18 -0
  398. package/dist/runtime/presets/default/components/KPanel/KPanel.d.vue.ts +15 -0
  399. package/dist/runtime/presets/default/components/KPanel/KPanel.vue +113 -0
  400. package/dist/runtime/presets/default/components/KPanel/KPanel.vue.d.ts +15 -0
  401. package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.d.vue.ts +19 -0
  402. package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.vue +54 -0
  403. package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.vue.d.ts +19 -0
  404. package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.d.vue.ts +20 -0
  405. package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.vue +191 -0
  406. package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.vue.d.ts +20 -0
  407. package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.d.vue.ts +6 -0
  408. package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.vue +13 -0
  409. package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.vue.d.ts +6 -0
  410. package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.d.vue.ts +6 -0
  411. package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.vue +13 -0
  412. package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.vue.d.ts +6 -0
  413. package/dist/runtime/presets/default/components/KSlider/KSlider.d.vue.ts +16 -0
  414. package/dist/runtime/presets/default/components/KSlider/KSlider.vue +146 -0
  415. package/dist/runtime/presets/default/components/KSlider/KSlider.vue.d.ts +16 -0
  416. package/dist/runtime/presets/default/components/KTabs/KTabItem.d.vue.ts +8 -0
  417. package/dist/runtime/presets/default/components/KTabs/KTabItem.vue +49 -0
  418. package/dist/runtime/presets/default/components/KTabs/KTabItem.vue.d.ts +8 -0
  419. package/dist/runtime/presets/default/components/KTabs/KTabs.d.vue.ts +8 -0
  420. package/dist/runtime/presets/default/components/KTabs/KTabs.vue +113 -0
  421. package/dist/runtime/presets/default/components/KTabs/KTabs.vue.d.ts +8 -0
  422. package/dist/runtime/presets/default/components/KTextarea/KTextarea.d.vue.ts +18 -0
  423. package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue +56 -0
  424. package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue.d.ts +18 -0
  425. package/dist/runtime/presets/default/components/KTextbox/KTextbox.d.vue.ts +17 -0
  426. package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue +119 -0
  427. package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue.d.ts +17 -0
  428. package/dist/runtime/presets/default/components/KToast/KToast.d.vue.ts +17 -0
  429. package/dist/runtime/presets/default/components/KToast/KToast.vue +118 -0
  430. package/dist/runtime/presets/default/components/KToast/KToast.vue.d.ts +17 -0
  431. package/dist/runtime/presets/default/components/KTooltip/KTooltip.d.vue.ts +16 -0
  432. package/dist/runtime/presets/default/components/KTooltip/KTooltip.vue +73 -0
  433. package/dist/runtime/presets/default/components/KTooltip/KTooltip.vue.d.ts +16 -0
  434. package/dist/runtime/presets/default/components/KTree/KTree.d.vue.ts +23 -0
  435. package/dist/runtime/presets/default/components/KTree/KTree.vue +149 -0
  436. package/dist/runtime/presets/default/components/KTree/KTree.vue.d.ts +23 -0
  437. package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.d.vue.ts +35 -0
  438. package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue +121 -0
  439. package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue.d.ts +35 -0
  440. package/dist/runtime/presets/default/components/KTreeView/KTreeCell.d.vue.ts +10 -0
  441. package/dist/runtime/presets/default/components/KTreeView/KTreeCell.vue +53 -0
  442. package/dist/runtime/presets/default/components/KTreeView/KTreeCell.vue.d.ts +10 -0
  443. package/dist/runtime/presets/default/components/KTreeView/KTreeView.d.vue.ts +24 -0
  444. package/dist/runtime/presets/default/components/KTreeView/KTreeView.vue +62 -0
  445. package/dist/runtime/presets/default/components/KTreeView/KTreeView.vue.d.ts +24 -0
  446. package/dist/runtime/presets/default/components/MultiTabs/MultiTabs.d.vue.ts +9 -0
  447. package/dist/runtime/presets/default/components/MultiTabs/MultiTabs.vue +61 -0
  448. package/dist/runtime/presets/default/components/MultiTabs/MultiTabs.vue.d.ts +9 -0
  449. package/dist/runtime/utils/PresetResolver.d.ts +63 -0
  450. package/dist/runtime/utils/PresetResolver.js +106 -0
  451. package/dist/types.d.mts +7 -0
  452. package/package.json +46 -0
@@ -0,0 +1,22 @@
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>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
@@ -0,0 +1,62 @@
1
+ <template lang="pug">
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")
13
+ </template>
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>
@@ -0,0 +1,22 @@
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>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
@@ -0,0 +1,24 @@
1
+ import { ADataProvider } from '@katlux/providers';
2
+ import type { IKDatatableAction } from '@katlux/providers';
3
+ type __VLS_Props = {
4
+ dataProvider: ADataProvider;
5
+ visibleFields: Array<string> | null;
6
+ rowActions: Array<IKDatatableAction>;
7
+ bulkActions: Array<IKDatatableAction>;
8
+ selectedRows: any[];
9
+ selectAll: boolean;
10
+ loading?: boolean;
11
+ search?: string;
12
+ itemsPerPage?: number;
13
+ page?: number;
14
+ slots?: any;
15
+ };
16
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
17
+ "update:selectedRows": (value: any[]) => any;
18
+ "update:selectAll": (value: boolean) => any;
19
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
20
+ "onUpdate:selectedRows"?: ((value: any[]) => any) | undefined;
21
+ "onUpdate:selectAll"?: ((value: boolean) => any) | undefined;
22
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
@@ -0,0 +1,66 @@
1
+ <template lang="pug">
2
+ .k-data-iterator
3
+ KLoader(:loading="isLoading" overlay)
4
+ KGrid(v-if="hasData" direction="column" gap="10px" align="stretch")
5
+ KGrid(direction="column" gap="10px" align="stretch")
6
+ .k-data-iterator-item(v-for="row in props.dataProvider.pageData.value" :key="row.id")
7
+ slot(name="row" :row="row" :rowActions="props.rowActions")
8
+
9
+ .footer
10
+ KBulkActions(
11
+ v-if="props.bulkActions && props.bulkActions.length > 0"
12
+ :bulkActions="props.bulkActions"
13
+ :selectedRows="selectedRows"
14
+ :selectAll="selectAll"
15
+ )
16
+ KPagination(:dataProvider="props.dataProvider")
17
+ span(v-if="showNoRecord") No record
18
+ </template>
19
+
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
+
47
+ const selectedRows = computed({
48
+ get: () => props.selectedRows,
49
+ set: (val) => emit('update:selectedRows', val)
50
+ })
51
+
52
+ const selectAll = computed({
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)
60
+ </script>
61
+
62
+ <style lang="scss" scoped>
63
+ .k-data-iterator {
64
+ position: relative;
65
+ }
66
+ </style>
@@ -0,0 +1,24 @@
1
+ import { ADataProvider } from '@katlux/providers';
2
+ import type { IKDatatableAction } from '@katlux/providers';
3
+ type __VLS_Props = {
4
+ dataProvider: ADataProvider;
5
+ visibleFields: Array<string> | null;
6
+ rowActions: Array<IKDatatableAction>;
7
+ bulkActions: Array<IKDatatableAction>;
8
+ selectedRows: any[];
9
+ selectAll: boolean;
10
+ loading?: boolean;
11
+ search?: string;
12
+ itemsPerPage?: number;
13
+ page?: number;
14
+ slots?: any;
15
+ };
16
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
17
+ "update:selectedRows": (value: any[]) => any;
18
+ "update:selectAll": (value: boolean) => any;
19
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
20
+ "onUpdate:selectedRows"?: ((value: any[]) => any) | undefined;
21
+ "onUpdate:selectAll"?: ((value: boolean) => any) | undefined;
22
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
@@ -0,0 +1,25 @@
1
+ import { ADataProvider } from '@katlux/providers';
2
+ import type { IKDatatableAction } from '@katlux/providers';
3
+ type __VLS_Props = {
4
+ dataProvider: ADataProvider;
5
+ visibleFields: Array<string> | null;
6
+ rowActions: Array<IKDatatableAction>;
7
+ bulkActions: Array<IKDatatableAction>;
8
+ selectedRows: any[];
9
+ selectAll: boolean;
10
+ cellSlots?: Record<string, any>;
11
+ headerSlots?: Record<string, any>;
12
+ columnHeaders?: Record<string, string>;
13
+ columnWidths?: Record<string, string>;
14
+ emptyStateText?: string;
15
+ emptyFilterStateText?: string;
16
+ };
17
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
18
+ "update:selectedRows": (value: any[]) => any;
19
+ "update:selectAll": (value: boolean) => any;
20
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
21
+ "onUpdate:selectedRows"?: ((value: any[]) => any) | undefined;
22
+ "onUpdate:selectAll"?: ((value: boolean) => any) | undefined;
23
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
@@ -0,0 +1,195 @@
1
+ <template lang="pug">
2
+ .k-datatable(:style="{ '--page-size': props.dataProvider?.pageSize?.value || 10 }")
3
+ KGrid(:flex-child="true" align="stretch" direction="column")
4
+ .datatable-container
5
+ KLoader(:loading="isLoading" overlay)
6
+ table
7
+ thead
8
+ tr
9
+ th.check(v-if="props.bulkActions && props.bulkActions.length>0")
10
+ KCheckbox(v-model="selectAll")
11
+ th(
12
+ v-for="field in visibleFields || props.dataProvider.fields"
13
+ :key="field"
14
+ :data-field="field"
15
+ :style="getColumnStyle(field)"
16
+ )
17
+ component(v-if="getHeaderSlot(field)" :is="getHeaderSlot(field)" :field="field")
18
+ span(v-else) {{ columnHeaders?.[field] ?? field }}
19
+ th(v-if="props.rowActions && props.rowActions.length>0")
20
+
21
+ tbody
22
+ tr.empty-row(v-if="!isLoading && (!props.dataProvider.pageData.value || props.dataProvider.pageData.value.length === 0)")
23
+ td.empty-state(:colspan="(visibleFields || props.dataProvider.fields || []).length + (props.bulkActions && props.bulkActions.length > 0 ? 1 : 0) + (props.rowActions && props.rowActions.length > 0 ? 1 : 0)")
24
+ span(v-if="props.dataProvider.filter.value?.active") {{ props.emptyFilterStateText || 'no result found for filter' }}
25
+ span(v-else) {{ props.emptyStateText || 'no result' }}
26
+ tr(v-for="(row, index) in props.dataProvider.pageData.value" :key="index")
27
+ td.check(v-if="props.bulkActions && props.bulkActions.length>0")
28
+ KCheckbox(:value="row" v-model="selectedRows")
29
+ td(
30
+ v-for="visibleField in visibleFields || props.dataProvider.fields"
31
+ :key="visibleField"
32
+ :data-field="visibleField"
33
+ :style="getColumnStyle(visibleField)"
34
+ )
35
+ component(v-if="getCellSlot(visibleField)" :is="getCellSlot(visibleField)" :row="row" :field="visibleField" :value="row[visibleField]")
36
+ span(v-else) {{ row[visibleField] }}
37
+ td.rowAction(v-if="props.rowActions && props.rowActions.length>0")
38
+ template(v-for="rowAction in props.rowActions" :key="rowAction.label")
39
+ KTooltip(
40
+ v-if="!rowAction.visible || rowAction.visible(row)"
41
+ :text="rowAction.label"
42
+ :disabled="!(rowAction.iconOnly || !!rowAction.icon)"
43
+ )
44
+ KButton(
45
+ size="small"
46
+ :type="rowAction.type || 'default'"
47
+ :iconOnly="rowAction.iconOnly || !!rowAction.icon"
48
+ @click="rowAction.action(row)"
49
+ )
50
+ template(#icon v-if="rowAction.icon")
51
+ KIcon(:iconname="rowAction.icon" :width="16" :height="16")
52
+ template(#default v-if="!rowAction.iconOnly && !rowAction.icon") {{rowAction.label}}
53
+ .footer
54
+ KBulkActions.bulk-actions(v-if="props.bulkActions && props.bulkActions.length>0" :bulkActions="props.bulkActions" :selectedRows="selectedRows" :selectAll="selectAll")
55
+ KPagination.pagination(:dataProvider="props.dataProvider")
56
+ </template>
57
+
58
+ <script setup lang="ts">
59
+ import { computed } from 'vue'
60
+ import { ADataProvider } from '@katlux/providers'
61
+ import type { IKDatatableAction } from '@katlux/providers'
62
+
63
+ const props = defineProps<{
64
+ dataProvider: ADataProvider
65
+ visibleFields: Array<string> | null
66
+ rowActions: Array<IKDatatableAction>
67
+ bulkActions: Array<IKDatatableAction>
68
+ selectedRows: any[]
69
+ selectAll: boolean
70
+ cellSlots?: Record<string, any>
71
+ headerSlots?: Record<string, any>
72
+ columnHeaders?: Record<string, string>
73
+ columnWidths?: Record<string, string>
74
+ emptyStateText?: string
75
+ emptyFilterStateText?: string
76
+ }>()
77
+
78
+ const emit = defineEmits<{
79
+ (e: 'update:selectedRows', value: any[]): void
80
+ (e: 'update:selectAll', value: boolean): void
81
+ }>()
82
+
83
+ // Bi-directional binding helpers
84
+ const selectedRows = computed({
85
+ get: () => props.selectedRows,
86
+ set: (val) => emit('update:selectedRows', val)
87
+ })
88
+
89
+ const selectAll = computed({
90
+ get: () => props.selectAll,
91
+ set: (val) => emit('update:selectAll', val)
92
+ })
93
+
94
+ const getCellSlot = (fieldName: string) => {
95
+ const slotName = 'cell-' + fieldName
96
+ return props.cellSlots?.[slotName]
97
+ }
98
+
99
+ const getHeaderSlot = (fieldName: string) => {
100
+ const slotName = 'header-' + fieldName
101
+ return props.headerSlots?.[slotName] || props.cellSlots?.[slotName]
102
+ }
103
+
104
+ const getColumnStyle = (field: string) => {
105
+ const w = props.columnWidths?.[field]
106
+ if (!w) return undefined
107
+ return { width: w, whiteSpace: 'nowrap' as const }
108
+ }
109
+
110
+ const isLoading = computed(() => {
111
+ return props.dataProvider.loading.value || (props.dataProvider as any).initialLoad?.value || false
112
+ })
113
+ </script>
114
+
115
+ <style lang="scss" scoped>
116
+ .k-datatable {
117
+ --page-height: 40px;
118
+ width: 100%;
119
+ .datatable-container {
120
+ min-height: calc(var(--page-height) * (var(--page-size) + 1));
121
+ position: relative; // Ensure loader overlay is contained
122
+ }
123
+ table {
124
+ width: 100%;
125
+ border-collapse: collapse;
126
+ border: 1px solid var(--table-border-color);
127
+ thead {
128
+ tr {
129
+ background-color: var(--table-header-bg);
130
+ height: var(--page-height);
131
+ th {
132
+ color: var(--table-header-color);
133
+ border-bottom: 1px solid var(--table-border-color);
134
+ border-left: 1px solid var(--table-border-color);
135
+ padding: 5px;
136
+ &:first-child {
137
+ border-left: none;
138
+ }
139
+ }
140
+ }
141
+ }
142
+ tbody {
143
+ tr {
144
+ height: 40px;
145
+ background-color: var(--table-row-bg);
146
+ color: var(--table-row-text-color);
147
+ &:nth-child(2n + 1) {
148
+ background-color: var(--table-row-alt-bg);
149
+ }
150
+ &:hover {
151
+ background-color: var(--table-row-hover-bg);
152
+ }
153
+ td {
154
+ padding: 5px;
155
+ border-bottom: 1px solid var(--table-border-color);
156
+ border-left: 1px solid var(--table-border-color);
157
+ &:first-child {
158
+ border-left: none;
159
+ }
160
+ }
161
+ td.empty-state {
162
+ text-align: center;
163
+ padding: 20px;
164
+ color: var(--font-color-secondary);
165
+ }
166
+ }
167
+ }
168
+ }
169
+ .check {
170
+ width: 30px;
171
+ }
172
+ .rowAction {
173
+ width: 1%;
174
+ white-space: nowrap;
175
+
176
+ & > * {
177
+ display: inline-block;
178
+ margin-right: 10px;
179
+ vertical-align: middle;
180
+ }
181
+
182
+ & > *:last-child {
183
+ margin-right: 0;
184
+ }
185
+ }
186
+ .footer {
187
+ display: flex;
188
+ justify-content: space-between;
189
+ align-items: center;
190
+ .pagination {
191
+ flex: 1;
192
+ }
193
+ }
194
+ }
195
+ </style>
@@ -0,0 +1,25 @@
1
+ import { ADataProvider } from '@katlux/providers';
2
+ import type { IKDatatableAction } from '@katlux/providers';
3
+ type __VLS_Props = {
4
+ dataProvider: ADataProvider;
5
+ visibleFields: Array<string> | null;
6
+ rowActions: Array<IKDatatableAction>;
7
+ bulkActions: Array<IKDatatableAction>;
8
+ selectedRows: any[];
9
+ selectAll: boolean;
10
+ cellSlots?: Record<string, any>;
11
+ headerSlots?: Record<string, any>;
12
+ columnHeaders?: Record<string, string>;
13
+ columnWidths?: Record<string, string>;
14
+ emptyStateText?: string;
15
+ emptyFilterStateText?: string;
16
+ };
17
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
18
+ "update:selectedRows": (value: any[]) => any;
19
+ "update:selectAll": (value: boolean) => any;
20
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
21
+ "onUpdate:selectedRows"?: ((value: any[]) => any) | undefined;
22
+ "onUpdate:selectAll"?: ((value: boolean) => any) | undefined;
23
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import type { IMarkedDay, IDefinedDay } from '../../../../components/KCalendar/types.js';
2
+ type __VLS_Props = {
3
+ label?: string;
4
+ maskedModel: string;
5
+ calendarShow: boolean;
6
+ _date: any;
7
+ calendarDay: Date | string;
8
+ format: string;
9
+ showClear: boolean;
10
+ calendarDefinedDays: IDefinedDay[];
11
+ calendarMarkedDays: IMarkedDay[];
12
+ textboxClicked: () => void;
13
+ onClear?: () => void;
14
+ dateSelected: (date: Date) => void;
15
+ teleportTo?: string;
16
+ placeholder?: string;
17
+ validation?: 'success' | 'warning' | 'error' | null;
18
+ validationText?: string;
19
+ align?: 'left' | 'right';
20
+ };
21
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
22
+ "update:maskedModel": (value: string) => any;
23
+ "update:calendarShow": (value: boolean) => any;
24
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ "onUpdate:maskedModel"?: ((value: string) => any) | undefined;
26
+ "onUpdate:calendarShow"?: ((value: boolean) => any) | undefined;
27
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
@@ -0,0 +1,68 @@
1
+ <template lang="pug">
2
+ .KDatePicker(ref="activatorRef")
3
+ label.k-input-label(v-if="label") {{ label }}
4
+ KMaskTextbox(
5
+ v-model="maskedModel"
6
+ :key="maskedModel"
7
+ :mask="format"
8
+ :placeholder="placeholder || format"
9
+ @click.stop="textboxClicked"
10
+ :showClear="showClear"
11
+ @clear="onClear"
12
+ :validation="validation"
13
+ :validationText="validationText"
14
+ )
15
+ KDropdown(v-model:isOpen="calendarShow" :anchorEl="activatorRef" :teleportTo="teleportTo" :align="align")
16
+ KCalendar(view="month" :viewCount="1" :day="calendarDay" :selectedDay="_date" @dayClicked="dateSelected" :definedDays="calendarDefinedDays" :markedDays="calendarMarkedDays")
17
+ </template>
18
+
19
+ <script lang="ts" setup>
20
+ import { computed, watch, ref } from 'vue'
21
+ const activatorRef = ref<HTMLElement | null>(null)
22
+ import type {
23
+ IMarkedDay,
24
+ IDefinedDay,
25
+ } from '../../../../components/KCalendar/types'
26
+
27
+ const props = defineProps<{
28
+ label?: string
29
+ maskedModel: string
30
+ calendarShow: boolean
31
+ _date: any
32
+ calendarDay: Date | string
33
+ format: string
34
+ showClear: boolean
35
+ calendarDefinedDays: IDefinedDay[]
36
+ calendarMarkedDays: IMarkedDay[]
37
+ textboxClicked: () => void
38
+ onClear?: () => void
39
+ dateSelected: (date: Date) => void
40
+ teleportTo?: string
41
+ placeholder?: string
42
+ validation?: 'success' | 'warning' | 'error' | null
43
+ validationText?: string
44
+ align?: 'left' | 'right'
45
+ }>()
46
+
47
+ const emit = defineEmits<{
48
+ (e: 'update:maskedModel', value: string): void
49
+ (e: 'update:calendarShow', value: boolean): void
50
+ }>()
51
+
52
+ const maskedModel = computed({
53
+ get: () => props.maskedModel,
54
+ set: (value) => emit('update:maskedModel', value)
55
+ })
56
+
57
+ const calendarShow = computed({
58
+ get: () => props.calendarShow,
59
+ set: (value) => emit('update:calendarShow', value)
60
+ })
61
+
62
+ // Debug: watch prop changes
63
+ watch(() => props.maskedModel, (newVal) => {
64
+ })
65
+ </script>
66
+
67
+ <style lang="scss" scoped>
68
+ </style>
@@ -0,0 +1,29 @@
1
+ import type { IMarkedDay, IDefinedDay } from '../../../../components/KCalendar/types.js';
2
+ type __VLS_Props = {
3
+ label?: string;
4
+ maskedModel: string;
5
+ calendarShow: boolean;
6
+ _date: any;
7
+ calendarDay: Date | string;
8
+ format: string;
9
+ showClear: boolean;
10
+ calendarDefinedDays: IDefinedDay[];
11
+ calendarMarkedDays: IMarkedDay[];
12
+ textboxClicked: () => void;
13
+ onClear?: () => void;
14
+ dateSelected: (date: Date) => void;
15
+ teleportTo?: string;
16
+ placeholder?: string;
17
+ validation?: 'success' | 'warning' | 'error' | null;
18
+ validationText?: string;
19
+ align?: 'left' | 'right';
20
+ };
21
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
22
+ "update:maskedModel": (value: string) => any;
23
+ "update:calendarShow": (value: boolean) => any;
24
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ "onUpdate:maskedModel"?: ((value: string) => any) | undefined;
26
+ "onUpdate:calendarShow"?: ((value: boolean) => any) | undefined;
27
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
@@ -0,0 +1,32 @@
1
+ import type { IMarkedDay, IDefinedDay } from '../../../../components/KCalendar/types.js';
2
+ type __VLS_Props = {
3
+ label?: string;
4
+ maskedModel: string;
5
+ calendarShow: boolean;
6
+ _date: any;
7
+ _time: string;
8
+ calendarDay: Date | string;
9
+ format: string;
10
+ timeFormat: string;
11
+ timeStep: number;
12
+ calendarDefinedDays: IDefinedDay[];
13
+ calendarMarkedDays: IMarkedDay[];
14
+ showClear: boolean;
15
+ textboxClicked: () => void;
16
+ onClear?: () => void;
17
+ dateSelected: (date: Date) => void;
18
+ timeSelected: (time: string) => void;
19
+ teleportTo?: string;
20
+ placeholder?: string;
21
+ validation?: 'success' | 'warning' | 'error' | null;
22
+ validationText?: string;
23
+ };
24
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
25
+ "update:maskedModel": (value: string) => any;
26
+ "update:calendarShow": (value: boolean) => any;
27
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
28
+ "onUpdate:maskedModel"?: ((value: string) => any) | undefined;
29
+ "onUpdate:calendarShow"?: ((value: boolean) => any) | undefined;
30
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
+ declare const _default: typeof __VLS_export;
32
+ export default _default;