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

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 (297) hide show
  1. package/LICENSE +200 -21
  2. package/README.md +14 -5
  3. package/bin/add-ai-reference.mjs +85 -0
  4. package/dist/compiled/composables/usePresetComponent.mjs +43 -21
  5. package/dist/compiled/utils/PresetResolver.mjs +18 -12
  6. package/dist/module.cjs +120 -1
  7. package/dist/module.json +1 -1
  8. package/dist/module.mjs +121 -2
  9. package/dist/runtime/components/KBulkActions/KBulkActions.global.vue +2 -2
  10. package/dist/runtime/components/KBulkActions/KBulkActions.logic.d.ts +9 -0
  11. package/dist/runtime/components/KBulkActions/KBulkActions.logic.js +10 -3
  12. package/dist/runtime/components/KButton/KButton.global.d.vue.ts +9 -0
  13. package/dist/runtime/components/KButton/KButton.global.vue +2 -1
  14. package/dist/runtime/components/KButton/KButton.global.vue.d.ts +9 -0
  15. package/dist/runtime/components/KButton/KButton.logic.d.ts +7 -1
  16. package/dist/runtime/components/KButton/KButton.logic.js +5 -1
  17. package/dist/runtime/components/KCalendar/KCalendar.global.d.vue.ts +11 -12
  18. package/dist/runtime/components/KCalendar/KCalendar.global.vue.d.ts +11 -12
  19. package/dist/runtime/components/KCalendar/KCalendar.logic.d.ts +1 -0
  20. package/dist/runtime/components/KCalendar/KCalendar.logic.js +25 -10
  21. package/dist/runtime/components/KCheckbox/KCheckbox.global.d.vue.ts +30 -0
  22. package/dist/runtime/components/KCheckbox/KCheckbox.global.vue +4 -1
  23. package/dist/runtime/components/KCheckbox/KCheckbox.global.vue.d.ts +30 -0
  24. package/dist/runtime/components/KCheckbox/KCheckbox.logic.d.ts +17 -0
  25. package/dist/runtime/components/KCheckbox/KCheckbox.logic.js +16 -1
  26. package/dist/runtime/components/KCombobox/KCombobox.global.d.vue.ts +86 -10
  27. package/dist/runtime/components/KCombobox/KCombobox.global.vue +19 -4
  28. package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +86 -10
  29. package/dist/runtime/components/KCombobox/KCombobox.logic.d.ts +47 -4
  30. package/dist/runtime/components/KCombobox/KCombobox.logic.js +84 -12
  31. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.d.vue.ts +214 -0
  32. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue +55 -0
  33. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue.d.ts +214 -0
  34. package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.d.ts +187 -0
  35. package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.js +263 -0
  36. package/dist/runtime/components/KContextMenu/KContextMenu.global.d.vue.ts +53 -1
  37. package/dist/runtime/components/KContextMenu/KContextMenu.global.vue +20 -1
  38. package/dist/runtime/components/KContextMenu/KContextMenu.global.vue.d.ts +53 -1
  39. package/dist/runtime/components/KContextMenu/KContextMenu.logic.d.ts +53 -2
  40. package/dist/runtime/components/KContextMenu/KContextMenu.logic.js +167 -3
  41. package/dist/runtime/components/KDatatable/KDatatable.global.d.vue.ts +4 -0
  42. package/dist/runtime/components/KDatatable/KDatatable.global.vue +6 -2
  43. package/dist/runtime/components/KDatatable/KDatatable.global.vue.d.ts +4 -0
  44. package/dist/runtime/components/KDatatable/KDatatable.logic.d.ts +4 -0
  45. package/dist/runtime/components/KDatatable/KDatatable.logic.js +3 -1
  46. package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +104 -8
  47. package/dist/runtime/components/KDatePicker/KDatePicker.global.vue +28 -3
  48. package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +104 -8
  49. package/dist/runtime/components/KDatePicker/KDatePicker.logic.d.ts +48 -1
  50. package/dist/runtime/components/KDatePicker/KDatePicker.logic.js +118 -7
  51. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.d.vue.ts +93 -8
  52. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue +27 -3
  53. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +93 -8
  54. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.d.ts +43 -1
  55. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.js +168 -7
  56. package/dist/runtime/components/KDropdown/KDropdown.global.d.vue.ts +36 -0
  57. package/dist/runtime/components/KDropdown/KDropdown.global.vue +15 -4
  58. package/dist/runtime/components/KDropdown/KDropdown.global.vue.d.ts +36 -0
  59. package/dist/runtime/components/KDropdown/KDropdown.logic.d.ts +58 -1
  60. package/dist/runtime/components/KDropdown/KDropdown.logic.js +152 -4
  61. package/dist/runtime/components/KGantt/KGantt.logic.d.ts +2 -2
  62. package/dist/runtime/components/KGrid/KGrid.global.d.vue.ts +8 -57
  63. package/dist/runtime/components/KGrid/KGrid.global.vue +9 -2
  64. package/dist/runtime/components/KGrid/KGrid.global.vue.d.ts +8 -57
  65. package/dist/runtime/components/KHourPicker/KHourPicker.global.d.vue.ts +50 -0
  66. package/dist/runtime/components/KHourPicker/KHourPicker.global.vue +28 -12
  67. package/dist/runtime/components/KHourPicker/KHourPicker.global.vue.d.ts +50 -0
  68. package/dist/runtime/components/KHourPicker/KHourPicker.logic.d.ts +31 -3
  69. package/dist/runtime/components/KHourPicker/KHourPicker.logic.js +38 -10
  70. package/dist/runtime/components/KHourSelect/KHourSelect.global.d.vue.ts +9 -0
  71. package/dist/runtime/components/KHourSelect/KHourSelect.global.vue +1 -0
  72. package/dist/runtime/components/KHourSelect/KHourSelect.global.vue.d.ts +9 -0
  73. package/dist/runtime/components/KHourSelect/KHourSelect.logic.d.ts +5 -0
  74. package/dist/runtime/components/KHourSelect/KHourSelect.logic.js +8 -1
  75. package/dist/runtime/components/KIcon/KIcon.global.d.vue.ts +1 -1
  76. package/dist/runtime/components/KIcon/KIcon.global.vue.d.ts +1 -1
  77. package/dist/runtime/components/KIcon/KIcon.logic.d.ts +1 -1
  78. package/dist/runtime/components/KIcon/KIcon.logic.js +13 -8
  79. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.d.vue.ts +30 -0
  80. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue +5 -2
  81. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue.d.ts +30 -0
  82. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.d.ts +16 -0
  83. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.js +23 -5
  84. package/dist/runtime/components/KModal/KModal.global.d.vue.ts +14 -2
  85. package/dist/runtime/components/KModal/KModal.global.vue +6 -1
  86. package/dist/runtime/components/KModal/KModal.global.vue.d.ts +14 -2
  87. package/dist/runtime/components/KModal/KModal.logic.d.ts +10 -2
  88. package/dist/runtime/components/KModal/KModal.logic.js +12 -3
  89. package/dist/runtime/components/KPanel/KPanel.global.d.vue.ts +5 -28
  90. package/dist/runtime/components/KPanel/KPanel.global.vue +12 -4
  91. package/dist/runtime/components/KPanel/KPanel.global.vue.d.ts +5 -28
  92. package/dist/runtime/components/KPanel/KPanel.logic.d.ts +10 -0
  93. package/dist/runtime/components/KPanel/KPanel.logic.js +8 -0
  94. package/dist/runtime/components/KRadiobox/KRadiobox.global.d.vue.ts +21 -0
  95. package/dist/runtime/components/KRadiobox/KRadiobox.global.vue +3 -1
  96. package/dist/runtime/components/KRadiobox/KRadiobox.global.vue.d.ts +21 -0
  97. package/dist/runtime/components/KRadiobox/KRadiobox.logic.d.ts +11 -0
  98. package/dist/runtime/components/KRadiobox/KRadiobox.logic.js +9 -0
  99. package/dist/runtime/components/KRangeSlider/KRangeSlider.global.d.vue.ts +9 -0
  100. package/dist/runtime/components/KRangeSlider/KRangeSlider.global.vue +1 -0
  101. package/dist/runtime/components/KRangeSlider/KRangeSlider.global.vue.d.ts +9 -0
  102. package/dist/runtime/components/KRangeSlider/KRangeSlider.logic.d.ts +5 -0
  103. package/dist/runtime/components/KRangeSlider/KRangeSlider.logic.js +4 -0
  104. package/dist/runtime/components/KSearchTree/KSearchTree.logic.d.ts +7 -1
  105. package/dist/runtime/components/KSearchTree/KSearchTree.logic.js +6 -1
  106. package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.logic.d.ts +7 -1
  107. package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.logic.js +6 -1
  108. package/dist/runtime/components/KSlider/KSlider.global.d.vue.ts +9 -0
  109. package/dist/runtime/components/KSlider/KSlider.global.vue +1 -0
  110. package/dist/runtime/components/KSlider/KSlider.global.vue.d.ts +9 -0
  111. package/dist/runtime/components/KSlider/KSlider.logic.d.ts +5 -0
  112. package/dist/runtime/components/KSlider/KSlider.logic.js +4 -0
  113. package/dist/runtime/components/KTextarea/KTextarea.global.d.vue.ts +30 -0
  114. package/dist/runtime/components/KTextarea/KTextarea.global.vue +4 -1
  115. package/dist/runtime/components/KTextarea/KTextarea.global.vue.d.ts +30 -0
  116. package/dist/runtime/components/KTextarea/KTextarea.logic.d.ts +16 -0
  117. package/dist/runtime/components/KTextarea/KTextarea.logic.js +13 -0
  118. package/dist/runtime/components/KTextbox/KTextbox.global.d.vue.ts +44 -2
  119. package/dist/runtime/components/KTextbox/KTextbox.global.vue +8 -4
  120. package/dist/runtime/components/KTextbox/KTextbox.global.vue.d.ts +44 -2
  121. package/dist/runtime/components/KTextbox/KTextbox.logic.d.ts +26 -4
  122. package/dist/runtime/components/KTextbox/KTextbox.logic.js +25 -5
  123. package/dist/runtime/components/KToast/KToast.global.d.vue.ts +57 -0
  124. package/dist/runtime/components/KToast/KToast.global.vue +32 -0
  125. package/dist/runtime/components/KToast/KToast.global.vue.d.ts +57 -0
  126. package/dist/runtime/components/KToast/KToast.logic.d.ts +34 -0
  127. package/dist/runtime/components/KToast/KToast.logic.js +47 -0
  128. package/dist/runtime/components/KTooltip/KTooltip.global.d.vue.ts +31 -1
  129. package/dist/runtime/components/KTooltip/KTooltip.global.vue +20 -1
  130. package/dist/runtime/components/KTooltip/KTooltip.global.vue.d.ts +31 -1
  131. package/dist/runtime/components/KTooltip/KTooltip.logic.d.ts +25 -2
  132. package/dist/runtime/components/KTooltip/KTooltip.logic.js +81 -3
  133. package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +74 -7
  134. package/dist/runtime/components/KTreePicker/KTreePicker.global.vue +16 -3
  135. package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +74 -7
  136. package/dist/runtime/components/KTreePicker/KTreePicker.logic.d.ts +38 -1
  137. package/dist/runtime/components/KTreePicker/KTreePicker.logic.js +36 -1
  138. package/dist/runtime/components/KTreeView/KTreeView.global.d.vue.ts +6 -6
  139. package/dist/runtime/components/KTreeView/KTreeView.global.vue.d.ts +6 -6
  140. package/dist/runtime/components/KTreeView/KTreeView.logic.d.ts +2 -7
  141. package/dist/runtime/components/MultiTabs/MultiTabs.global.d.vue.ts +23 -0
  142. package/dist/runtime/components/MultiTabs/MultiTabs.global.vue +27 -0
  143. package/dist/runtime/components/MultiTabs/MultiTabs.global.vue.d.ts +23 -0
  144. package/dist/runtime/components/MultiTabs/MultiTabs.logic.d.ts +25 -0
  145. package/dist/runtime/components/MultiTabs/MultiTabs.logic.js +52 -0
  146. package/dist/runtime/composables/usePresetComponent.d.ts +16 -0
  147. package/dist/runtime/composables/usePresetComponent.js +43 -21
  148. package/dist/runtime/presets/default/assets/scss/css-variables.css +96 -17
  149. package/dist/runtime/presets/default/assets/scss/css-variables.scss +320 -0
  150. package/dist/runtime/presets/default/assets/scss/docs.scss +52 -0
  151. package/dist/runtime/presets/default/assets/scss/index.css +191 -17
  152. package/dist/runtime/presets/default/assets/scss/index.scss +86 -0
  153. package/dist/runtime/presets/default/assets/scss/mixins.scss +94 -0
  154. package/dist/runtime/presets/default/assets/scss/reset.scss +16 -0
  155. package/dist/runtime/presets/default/assets/svg/arrow-down.svg +4 -0
  156. package/dist/runtime/presets/default/assets/svg/arrow-left.svg +4 -0
  157. package/dist/runtime/presets/default/assets/svg/arrow-right.svg +4 -0
  158. package/dist/runtime/presets/default/assets/svg/arrow-up.svg +4 -0
  159. package/dist/runtime/presets/default/assets/svg/bell.svg +4 -0
  160. package/dist/runtime/presets/default/assets/svg/camera.svg +4 -0
  161. package/dist/runtime/presets/default/assets/svg/clock.svg +4 -0
  162. package/dist/runtime/presets/default/assets/svg/copy.svg +4 -0
  163. package/dist/runtime/presets/default/assets/svg/divide.svg +5 -0
  164. package/dist/runtime/presets/default/assets/svg/download.svg +5 -0
  165. package/dist/runtime/presets/default/assets/svg/edit.svg +4 -0
  166. package/dist/runtime/presets/default/assets/svg/external-link.svg +5 -0
  167. package/dist/runtime/presets/default/assets/svg/eye-off.svg +4 -0
  168. package/dist/runtime/presets/default/assets/svg/eye.svg +4 -0
  169. package/dist/runtime/presets/default/assets/svg/hash.svg +6 -0
  170. package/dist/runtime/presets/default/assets/svg/heart.svg +3 -0
  171. package/dist/runtime/presets/default/assets/svg/home.svg +4 -0
  172. package/dist/runtime/presets/default/assets/svg/image.svg +5 -0
  173. package/dist/runtime/presets/default/assets/svg/info.svg +5 -0
  174. package/dist/runtime/presets/default/assets/svg/link.svg +4 -0
  175. package/dist/runtime/presets/default/assets/svg/lock.svg +4 -0
  176. package/dist/runtime/presets/default/assets/svg/logout.svg +5 -0
  177. package/dist/runtime/presets/default/assets/svg/mail.svg +4 -0
  178. package/dist/runtime/presets/default/assets/svg/map-pin.svg +4 -0
  179. package/dist/runtime/presets/default/assets/svg/menu.svg +5 -0
  180. package/dist/runtime/presets/default/assets/svg/message-square.svg +3 -0
  181. package/dist/runtime/presets/default/assets/svg/minus.svg +3 -0
  182. package/dist/runtime/presets/default/assets/svg/more-vertical.svg +5 -0
  183. package/dist/runtime/presets/default/assets/svg/multiply.svg +3 -0
  184. package/dist/runtime/presets/default/assets/svg/phone.svg +3 -0
  185. package/dist/runtime/presets/default/assets/svg/plus.svg +4 -0
  186. package/dist/runtime/presets/default/assets/svg/refresh.svg +5 -0
  187. package/dist/runtime/presets/default/assets/svg/settings.svg +4 -0
  188. package/dist/runtime/presets/default/assets/svg/share.svg +5 -0
  189. package/dist/runtime/presets/default/assets/svg/shopping-bag.svg +5 -0
  190. package/dist/runtime/presets/default/assets/svg/star.svg +3 -0
  191. package/dist/runtime/presets/default/assets/svg/trash.svg +4 -0
  192. package/dist/runtime/presets/default/assets/svg/type.svg +5 -0
  193. package/dist/runtime/presets/default/assets/svg/upload.svg +5 -0
  194. package/dist/runtime/presets/default/assets/svg/warning.svg +5 -0
  195. package/dist/runtime/presets/default/components/KAccordion/KAccordion.vue +5 -2
  196. package/dist/runtime/presets/default/components/KAccordion/KAccordionItem.vue +40 -37
  197. package/dist/runtime/presets/default/components/KBulkActions/KBulkActions.vue +43 -23
  198. package/dist/runtime/presets/default/components/KButton/KButton.vue +176 -430
  199. package/dist/runtime/presets/default/components/KCalendar/KCalendar.vue +69 -53
  200. package/dist/runtime/presets/default/components/KCalendar/KCalendarMonth.vue +195 -161
  201. package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.d.vue.ts +3 -0
  202. package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.vue +59 -42
  203. package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.vue.d.ts +3 -0
  204. package/dist/runtime/presets/default/components/KCombobox/KCombobox.d.vue.ts +8 -0
  205. package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue +129 -79
  206. package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue.d.ts +8 -0
  207. package/dist/runtime/presets/default/components/KCombobox/KComboboxList.d.vue.ts +1 -0
  208. package/dist/runtime/presets/default/components/KCombobox/KComboboxList.vue +85 -61
  209. package/dist/runtime/presets/default/components/KCombobox/KComboboxList.vue.d.ts +1 -0
  210. package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.d.vue.ts +34 -0
  211. package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.vue +234 -0
  212. package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.vue.d.ts +34 -0
  213. package/dist/runtime/presets/default/components/KContextMenu/KContextMenu.d.vue.ts +20 -1
  214. package/dist/runtime/presets/default/components/KContextMenu/KContextMenu.vue +60 -3
  215. package/dist/runtime/presets/default/components/KContextMenu/KContextMenu.vue.d.ts +20 -1
  216. package/dist/runtime/presets/default/components/KDataIterator/KDataIterator.vue +40 -31
  217. package/dist/runtime/presets/default/components/KDatatable/KDatatable.d.vue.ts +2 -0
  218. package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue +150 -93
  219. package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue.d.ts +2 -0
  220. package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.d.vue.ts +8 -0
  221. package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue +60 -25
  222. package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue.d.ts +8 -0
  223. package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.d.vue.ts +7 -0
  224. package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue +85 -52
  225. package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue.d.ts +7 -0
  226. package/dist/runtime/presets/default/components/KDropdown/KDropdown.d.vue.ts +16 -0
  227. package/dist/runtime/presets/default/components/KDropdown/KDropdown.vue +109 -25
  228. package/dist/runtime/presets/default/components/KDropdown/KDropdown.vue.d.ts +16 -0
  229. package/dist/runtime/presets/default/components/KGantt/KGantt.d.vue.ts +2 -2
  230. package/dist/runtime/presets/default/components/KGantt/KGantt.vue +343 -247
  231. package/dist/runtime/presets/default/components/KGantt/KGantt.vue.d.ts +2 -2
  232. package/dist/runtime/presets/default/components/KGantt/KGanttRuler.vue +40 -35
  233. package/dist/runtime/presets/default/components/KGantt/KGanttTimeline.vue +170 -140
  234. package/dist/runtime/presets/default/components/KGrid/KGrid.vue +63 -60
  235. package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.d.vue.ts +9 -2
  236. package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue +50 -28
  237. package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue.d.ts +9 -2
  238. package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.d.vue.ts +1 -0
  239. package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.vue +39 -28
  240. package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.vue.d.ts +1 -0
  241. package/dist/runtime/presets/default/components/KIcon/KIcon.d.vue.ts +1 -1
  242. package/dist/runtime/presets/default/components/KIcon/KIcon.vue +31 -22
  243. package/dist/runtime/presets/default/components/KIcon/KIcon.vue.d.ts +1 -1
  244. package/dist/runtime/presets/default/components/KLoader/KLoader.vue +65 -48
  245. package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.d.vue.ts +3 -0
  246. package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue +119 -84
  247. package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue.d.ts +3 -0
  248. package/dist/runtime/presets/default/components/KModal/KModal.d.vue.ts +2 -0
  249. package/dist/runtime/presets/default/components/KModal/KModal.vue +85 -35
  250. package/dist/runtime/presets/default/components/KModal/KModal.vue.d.ts +2 -0
  251. package/dist/runtime/presets/default/components/KPagination/KPagination.vue +42 -40
  252. package/dist/runtime/presets/default/components/KPanel/KPanel.d.vue.ts +3 -0
  253. package/dist/runtime/presets/default/components/KPanel/KPanel.vue +100 -34
  254. package/dist/runtime/presets/default/components/KPanel/KPanel.vue.d.ts +3 -0
  255. package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.d.vue.ts +2 -0
  256. package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.vue +46 -35
  257. package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.vue.d.ts +2 -0
  258. package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.d.vue.ts +1 -0
  259. package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.vue +160 -125
  260. package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.vue.d.ts +1 -0
  261. package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.d.vue.ts +4 -1
  262. package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.vue +9 -1
  263. package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.vue.d.ts +4 -1
  264. package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.d.vue.ts +4 -1
  265. package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.vue +9 -1
  266. package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.vue.d.ts +4 -1
  267. package/dist/runtime/presets/default/components/KSlider/KSlider.d.vue.ts +1 -0
  268. package/dist/runtime/presets/default/components/KSlider/KSlider.vue +125 -100
  269. package/dist/runtime/presets/default/components/KSlider/KSlider.vue.d.ts +1 -0
  270. package/dist/runtime/presets/default/components/KTabs/KTabItem.vue +41 -38
  271. package/dist/runtime/presets/default/components/KTabs/KTabs.vue +105 -8
  272. package/dist/runtime/presets/default/components/KTextarea/KTextarea.d.vue.ts +3 -0
  273. package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue +48 -21
  274. package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue.d.ts +3 -0
  275. package/dist/runtime/presets/default/components/KTextbox/KTextbox.d.vue.ts +5 -1
  276. package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue +110 -37
  277. package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue.d.ts +5 -1
  278. package/dist/runtime/presets/default/components/KToast/KToast.d.vue.ts +17 -0
  279. package/dist/runtime/presets/default/components/KToast/KToast.vue +118 -0
  280. package/dist/runtime/presets/default/components/KToast/KToast.vue.d.ts +17 -0
  281. package/dist/runtime/presets/default/components/KTooltip/KTooltip.d.vue.ts +14 -1
  282. package/dist/runtime/presets/default/components/KTooltip/KTooltip.vue +71 -3
  283. package/dist/runtime/presets/default/components/KTooltip/KTooltip.vue.d.ts +14 -1
  284. package/dist/runtime/presets/default/components/KTree/KTree.vue +103 -80
  285. package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.d.vue.ts +7 -0
  286. package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue +96 -55
  287. package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue.d.ts +7 -0
  288. package/dist/runtime/presets/default/components/KTreeView/KTreeCell.vue +31 -30
  289. package/dist/runtime/presets/default/components/KTreeView/KTreeView.d.vue.ts +2 -2
  290. package/dist/runtime/presets/default/components/KTreeView/KTreeView.vue +34 -27
  291. package/dist/runtime/presets/default/components/KTreeView/KTreeView.vue.d.ts +2 -2
  292. package/dist/runtime/presets/default/components/MultiTabs/MultiTabs.d.vue.ts +9 -0
  293. package/dist/runtime/presets/default/components/MultiTabs/MultiTabs.vue +61 -0
  294. package/dist/runtime/presets/default/components/MultiTabs/MultiTabs.vue.d.ts +9 -0
  295. package/dist/runtime/utils/PresetResolver.d.ts +8 -9
  296. package/dist/runtime/utils/PresetResolver.js +18 -12
  297. package/package.json +11 -7
@@ -1,99 +1,134 @@
1
1
  <template lang="pug">
2
2
  .KMaskTextbox
3
+ label.k-input-label(v-if="label") {{ label }}
3
4
  KTextbox(
4
5
  :modelValue="maskedValue"
5
6
  :placeholder="placeholder"
6
7
  :showClear="showClear"
8
+ :clear="handleClear"
7
9
  :maxlength="mask.length"
10
+ :validation="validation"
11
+ :validationText="validationText"
8
12
  @update:modelValue="handleUpdate"
9
13
  @beforeinput="handleBeforeInput"
10
14
  )
11
15
  </template>
12
16
 
13
- <script setup>
14
- import { getMaskPatternDef } from "../../../../components/KMaskTextbox/KMaskTextbox.logic";
15
- const props = defineProps({
16
- maskedValue: { type: String, required: true },
17
- placeholder: { type: String, required: true },
18
- showClear: { type: Boolean, required: true },
19
- mask: { type: String, required: true }
20
- });
21
- const emit = defineEmits(["update:maskedValue", "clear"]);
22
- const handleBeforeInput = (event) => {
23
- if (!event.data || event.inputType !== "insertText") {
24
- return;
25
- }
26
- const char = event.data;
27
- if (!/[0-9]/.test(char)) {
28
- return;
29
- }
30
- const target = event.target;
31
- const cursorPos = target.selectionStart || 0;
32
- const currentValue = target.value;
33
- let maskIdx = 0;
34
- let valIdx = 0;
35
- while (valIdx < cursorPos && maskIdx < props.mask.length) {
36
- const def = getMaskPatternDef(props.mask, maskIdx);
37
- if (def) {
38
- let consumed = 0;
39
- while (consumed < def.length && valIdx < currentValue.length) {
40
- if (def.pattern.test(currentValue[valIdx])) {
41
- consumed++;
42
- }
43
- valIdx++;
44
- if (valIdx >= cursorPos) break;
45
- }
46
- maskIdx += def.length;
47
- } else {
48
- valIdx++;
49
- maskIdx++;
50
- }
51
- }
52
- const patternType = props.mask.substring(maskIdx, maskIdx + 4);
53
- const digit = parseInt(char, 10);
54
- let digitsInPattern = 0;
55
- let scanIdx = cursorPos;
56
- while (scanIdx > 0 && digitsInPattern < 10) {
57
- scanIdx--;
58
- const ch = currentValue[scanIdx];
59
- if (/[0-9]/.test(ch)) {
60
- digitsInPattern++;
61
- } else {
62
- break;
63
- }
64
- }
65
- if (patternType.startsWith("DD")) {
66
- if (digitsInPattern === 0) {
67
- if (digit > 3) event.preventDefault();
68
- } else if (digitsInPattern === 1) {
69
- const firstDigit = parseInt(currentValue[cursorPos - 1], 10);
70
- if (firstDigit === 0 && digit === 0) event.preventDefault();
71
- if (firstDigit === 3 && digit > 1) event.preventDefault();
72
- }
73
- } else if (patternType.startsWith("MM")) {
74
- if (digitsInPattern === 0) {
75
- if (digit > 1) event.preventDefault();
76
- } else if (digitsInPattern === 1) {
77
- const firstDigit = parseInt(currentValue[cursorPos - 1], 10);
78
- if (firstDigit === 0 && digit === 0) event.preventDefault();
79
- if (firstDigit === 1 && digit > 2) event.preventDefault();
80
- }
81
- } else if (patternType.startsWith("HH")) {
82
- if (digitsInPattern === 0) {
83
- if (digit > 2) event.preventDefault();
84
- } else if (digitsInPattern === 1) {
85
- const firstDigit = parseInt(currentValue[cursorPos - 1], 10);
86
- if (firstDigit === 2 && digit > 3) event.preventDefault();
87
- }
88
- } else if (patternType.startsWith("mm") || patternType.startsWith("ss")) {
89
- if (digitsInPattern === 0) {
90
- if (digit > 5) event.preventDefault();
91
- }
92
- }
93
- };
94
- const handleUpdate = (value) => {
95
- emit("update:maskedValue", value);
96
- };
17
+ <script lang="ts" setup>
18
+ import { getMaskPatternDef } from '../../../../components/KMaskTextbox/KMaskTextbox.logic'
19
+
20
+ const props = defineProps<{
21
+ label?: string
22
+ maskedValue: string
23
+ placeholder: string
24
+ showClear: boolean
25
+ mask: string
26
+ validation?: 'success' | 'warning' | 'error' | null
27
+ validationText?: string
28
+ }>()
29
+
30
+ const emit = defineEmits<{
31
+ (e: 'update:maskedValue', value: string): void
32
+ (e: 'clear'): void
33
+ }>()
34
+
35
+ // Use beforeinput for better validation (fires before input is accepted)
36
+ const handleBeforeInput = (event: InputEvent) => {
37
+ if (!event.data || event.inputType !== 'insertText') {
38
+ return // Allow deletions, etc.
39
+ }
40
+
41
+ const char = event.data
42
+ if (!/[0-9]/.test(char)) {
43
+ return // Not a digit, let through for other patterns
44
+ }
45
+
46
+ const target = event.target as HTMLInputElement
47
+ const cursorPos = target.selectionStart || 0
48
+ const currentValue = target.value
49
+
50
+ // Find the mask pattern at cursor position
51
+ let maskIdx = 0
52
+ let valIdx = 0
53
+
54
+ // Walk through to find where we are in the mask
55
+ while (valIdx < cursorPos && maskIdx < props.mask.length) {
56
+ const def = getMaskPatternDef(props.mask, maskIdx)
57
+ if (def) {
58
+ // Pattern - check how many chars it uses in value
59
+ let consumed = 0
60
+ while (consumed < def.length && valIdx < currentValue.length) {
61
+ if (def.pattern.test(currentValue[valIdx])) {
62
+ consumed++
63
+ }
64
+ valIdx++
65
+ if (valIdx >= cursorPos) break
66
+ }
67
+ maskIdx += def.length
68
+ } else {
69
+ // Literal
70
+ valIdx++
71
+ maskIdx++
72
+ }
73
+ }
74
+
75
+ // Get pattern at current position
76
+ const patternType = props.mask.substring(maskIdx, maskIdx + 4)
77
+ const digit = parseInt(char, 10)
78
+
79
+ // Find how many digits already entered for this specific pattern instance
80
+ let digitsInPattern = 0
81
+ let scanIdx = cursorPos
82
+
83
+ // Count backwards to start of this pattern
84
+ while (scanIdx > 0 && digitsInPattern < 10) {
85
+ scanIdx--
86
+ const ch = currentValue[scanIdx]
87
+ if (/[0-9]/.test(ch)) {
88
+ digitsInPattern++
89
+ } else {
90
+ break // Hit a literal, stop
91
+ }
92
+ }
93
+
94
+ // Validate based on pattern
95
+ if (patternType.startsWith('DD')) {
96
+ if (digitsInPattern === 0) {
97
+ if (digit > 3) event.preventDefault()
98
+ } else if (digitsInPattern === 1) {
99
+ const firstDigit = parseInt(currentValue[cursorPos - 1], 10)
100
+ if (firstDigit === 0 && digit === 0) event.preventDefault()
101
+ if (firstDigit === 3 && digit > 1) event.preventDefault()
102
+ }
103
+ } else if (patternType.startsWith('MM')) {
104
+ if (digitsInPattern === 0) {
105
+ if (digit > 1) event.preventDefault()
106
+ } else if (digitsInPattern === 1) {
107
+ const firstDigit = parseInt(currentValue[cursorPos - 1], 10)
108
+ if (firstDigit === 0 && digit === 0) event.preventDefault()
109
+ if (firstDigit === 1 && digit > 2) event.preventDefault()
110
+ }
111
+ } else if (patternType.startsWith('HH')) {
112
+ if (digitsInPattern === 0) {
113
+ if (digit > 2) event.preventDefault()
114
+ } else if (digitsInPattern === 1) {
115
+ const firstDigit = parseInt(currentValue[cursorPos - 1], 10)
116
+ if (firstDigit === 2 && digit > 3) event.preventDefault()
117
+ }
118
+ } else if (patternType.startsWith('mm') || patternType.startsWith('ss')) {
119
+ if (digitsInPattern === 0) {
120
+ if (digit > 5) event.preventDefault()
121
+ }
122
+ }
123
+ }
124
+
125
+ const handleUpdate = (value: string) => {
126
+ emit('update:maskedValue', value)
127
+ }
128
+
129
+ const handleClear = () => {
130
+ emit('clear')
131
+ }
97
132
  </script>
98
133
 
99
134
  <style lang="scss" scoped>
@@ -1,8 +1,11 @@
1
1
  type __VLS_Props = {
2
+ label?: string;
2
3
  maskedValue: string;
3
4
  placeholder: string;
4
5
  showClear: boolean;
5
6
  mask: string;
7
+ validation?: 'success' | 'warning' | 'error' | null;
8
+ validationText?: string;
6
9
  };
7
10
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
11
  clear: () => any;
@@ -1,5 +1,7 @@
1
1
  type __VLS_Props = {
2
+ modalId: string;
2
3
  opened: boolean;
4
+ closeOnOutsideClick: boolean;
3
5
  closeModal: () => void;
4
6
  };
5
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,42 +1,92 @@
1
1
  <template lang="pug">
2
- .modal(v-if="opened")
3
- .layover(@click.self="closeModal()")
4
- KPanel(no-gap flex-content scrollable).modal-container
5
- template(#header)
6
- slot(name="header")
7
- slot(name="content")
8
- template(#footer)
9
- slot(name="footer")
2
+ dialog.k-modal(ref="dialogRef" @close="closeModal" @click="handleBackdropClick" @mousedown="handleMouseDown")
3
+ .modal-portal(:id="modalId" style="position: absolute; top: 0; left: 0; z-index: 9999; pointer-events: none;")
4
+ KPanel(no-gap flex-content scrollable).modal-container
5
+ template(#header)
6
+ slot(name="header")
7
+ slot(name="content")
8
+ template(#footer)
9
+ slot(name="footer")
10
10
  </template>
11
11
 
12
- <script setup>
13
- const props = defineProps({
14
- opened: { type: Boolean, required: true },
15
- closeModal: { type: Function, required: true }
16
- });
17
- </script>
12
+ <script lang="ts" setup>
13
+ import { ref, watch, onMounted } from 'vue'
14
+
15
+ const props = defineProps<{
16
+ modalId: string
17
+ opened: boolean
18
+ closeOnOutsideClick: boolean
19
+ closeModal: () => void
20
+ }>()
21
+
22
+ const dialogRef = ref<HTMLDialogElement | null>(null)
23
+ let isMouseDownOnBackdrop = false
24
+
25
+ // When your prop changes, trigger the native browser methods to enter/exit the Top Layer
26
+ watch(() => props.opened, (isOpen) => {
27
+ if (!dialogRef.value) return
28
+ if (isOpen) {
29
+ dialogRef.value.showModal()
30
+ } else {
31
+ dialogRef.value.close()
32
+ }
33
+ })
34
+
35
+ // Sync the initial state if the modal was initially rendered as opened
36
+ onMounted(() => {
37
+ if (props.opened && dialogRef.value) {
38
+ dialogRef.value.showModal()
39
+ }
40
+ })
41
+
42
+ const handleMouseDown = (event: MouseEvent) => {
43
+ isMouseDownOnBackdrop = event.target === dialogRef.value
44
+ }
18
45
 
19
- <style scoped>
20
- .modal .layover {
21
- position: fixed;
22
- background-color: var(--modal-overlay-bg);
23
- left: 0px;
24
- right: 0px;
25
- top: 0px;
26
- bottom: 0px;
27
- z-index: 2;
46
+ // Native dialogs require a script trick to close when clicking the ::backdrop pseudo-element
47
+ const handleBackdropClick = (event: MouseEvent) => {
48
+ if (props.closeOnOutsideClick && isMouseDownOnBackdrop && event.target === dialogRef.value) {
49
+ props.closeModal()
50
+ }
51
+ isMouseDownOnBackdrop = false
28
52
  }
29
- .modal .layover .modal-container {
30
- bottom: 0;
31
- max-height: 600px;
32
- height: 80%;
33
- max-width: 700px;
34
- min-width: 500px;
35
- left: 0;
36
- margin: auto;
37
- position: absolute;
38
- right: 0;
39
- top: 0;
40
- z-index: 2;
53
+ </script>
54
+
55
+ <style lang="scss" scoped>
56
+ .k-modal {
57
+ border: none;
58
+ background: transparent;
59
+ padding: 0;
60
+ /* margin: auto applied natively by browsers for showModal */
61
+ overflow: visible;
62
+ max-width: 95vw;
63
+ max-height: 95vh;
64
+ width: fit-content;
65
+ height: fit-content;
66
+
67
+ &:not([open]) {
68
+ display: none;
69
+ }
70
+
71
+ &[open] {
72
+ display: flex;
73
+ flex-direction: column;
74
+ }
75
+
76
+ &::backdrop {
77
+ background-color: var(--modal-overlay-bg);
78
+ backdrop-filter: blur(var(--modal-backdrop-blur));
79
+ }
80
+
81
+ .modal-container {
82
+ flex: 1;
83
+ display: flex;
84
+ flex-direction: column;
85
+ min-height: 0;
86
+ max-height: 100%;
87
+ width: 100%;
88
+ min-width: 400px;
89
+ }
41
90
  }
42
91
  </style>
92
+
@@ -1,5 +1,7 @@
1
1
  type __VLS_Props = {
2
+ modalId: string;
2
3
  opened: boolean;
4
+ closeOnOutsideClick: boolean;
3
5
  closeModal: () => void;
4
6
  };
5
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -23,48 +23,50 @@
23
23
  KButton(@click="goToNext" :href="getPageHref(dp.currentPage.value + 1)" size="small" variant="outline") ›
24
24
  </template>
25
25
 
26
- <script setup>
27
- import { computed } from "vue";
28
- const props = defineProps({
29
- dp: { type: null, required: true },
30
- totalPages: { type: Number, required: true },
31
- getPageHref: { type: Function, required: true },
32
- visiblePages: { type: Array, required: true },
33
- showPrevButton: { type: Boolean, required: true },
34
- showNextButton: { type: Boolean, required: true },
35
- showFirstEllipsis: { type: Boolean, required: true },
36
- showLastEllipsis: { type: Boolean, required: true },
37
- pageClicked: { type: Function, required: true },
38
- goToPrev: { type: Function, required: true },
39
- goToNext: { type: Function, required: true },
40
- goToFirst: { type: Function, required: true },
41
- goToLast: { type: Function, required: true }
42
- });
26
+ <script setup lang="ts">
27
+ import { computed } from 'vue'
28
+
29
+ const props = defineProps<{
30
+ dp: any
31
+ totalPages: number
32
+ getPageHref: (page: number) => string | undefined
33
+ visiblePages: number[]
34
+ showPrevButton: boolean
35
+ showNextButton: boolean
36
+ showFirstEllipsis: boolean
37
+ showLastEllipsis: boolean
38
+ pageClicked: (item: number) => void
39
+ goToPrev: () => void
40
+ goToNext: () => void
41
+ goToFirst: () => void
42
+ goToLast: () => void
43
+ }>()
43
44
  </script>
44
45
 
45
- <style scoped>
46
+ <style lang="scss" scoped>
46
47
  .k-pagination {
47
- text-align: right;
48
- }
49
- .k-pagination ul {
50
- list-style-type: none;
51
- padding: 0px;
52
- margin: 0px;
53
- display: flex;
54
- flex-direction: row;
55
- flex-wrap: wrap;
56
- align-content: center;
57
- justify-content: flex-end;
58
- gap: 5px;
59
- }
60
- .k-pagination ul li {
61
- display: flex;
62
- align-items: center;
63
- }
64
- .k-pagination ul li .ellipsis {
65
- padding: 8px 12px;
66
- color: #666;
67
- font-weight: bold;
68
- user-select: none;
48
+ text-align: right;
49
+ ul {
50
+ list-style-type: none;
51
+ padding: 0px;
52
+ margin: 0px;
53
+ display: flex;
54
+ flex-direction: row;
55
+ flex-wrap: wrap;
56
+ align-content: center;
57
+ justify-content: flex-end;
58
+ gap: 5px;
59
+ li {
60
+ display: flex;
61
+ align-items: center;
62
+
63
+ .ellipsis {
64
+ padding: 8px 12px;
65
+ color: #666;
66
+ font-weight: bold;
67
+ user-select: none;
68
+ }
69
+ }
70
+ }
69
71
  }
70
72
  </style>
@@ -2,8 +2,11 @@ type __VLS_Props = {
2
2
  noGap?: boolean;
3
3
  flexContent?: boolean;
4
4
  scrollable?: boolean;
5
+ type?: 'default' | 'primary' | 'danger' | 'success' | 'warning' | 'info';
6
+ title?: string;
5
7
  };
6
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ type: "default" | "primary" | "danger" | "success" | "warning" | "info";
7
10
  noGap: boolean;
8
11
  flexContent: boolean;
9
12
  scrollable: boolean;
@@ -1,47 +1,113 @@
1
1
  <template lang="pug">
2
- .KPanel
2
+ .KPanel(:class="[`type-${type}`]")
3
3
  KGrid(direction="column" align="strech" :no-gap="noGap" wrap="nowrap").full-height
4
- .KPanel--header(v-if="$slots.header")
5
- slot(name="header")
4
+ .KPanel--header(v-if="$slots.header || title")
5
+ slot(name="header") {{ title }}
6
6
  .KPanel--content(:class="{'flex-content': flexContent, 'scrollable': scrollable}")
7
7
  slot
8
8
  .KPanel--footer(v-if="$slots.footer")
9
9
  slot(name="footer")
10
10
  </template>
11
11
 
12
- <script setup>
13
- const props = defineProps({
14
- noGap: { type: Boolean, required: false, default: false },
15
- flexContent: { type: Boolean, required: false, default: false },
16
- scrollable: { type: Boolean, required: false, default: false }
17
- });
12
+ <script lang="ts" setup>
13
+ const props = withDefaults(defineProps<{
14
+ noGap?: boolean
15
+ flexContent?: boolean
16
+ scrollable?: boolean
17
+ type?: 'default' | 'primary' | 'danger' | 'success' | 'warning' | 'info'
18
+ title?: string
19
+ }>(), {
20
+ scrollable: false,
21
+ noGap: true,
22
+ flexContent: false,
23
+ type: 'default'
24
+ })
18
25
  </script>
19
26
 
20
- <style scoped>
27
+ <style lang="scss" scoped>
21
28
  .KPanel {
22
- border-radius: var(--box-border-radius);
23
- border: var(--box-border);
24
- box-shadow: var(--box-shadow);
25
- background-color: var(--background-color-light);
26
- width: 100%;
27
- }
28
- .KPanel .full-height {
29
- height: 100%;
30
- }
31
- .KPanel--header {
32
- padding: var(--component-gap);
33
- background-color: var(--background-color-medium);
34
- }
35
- .KPanel--content {
36
- padding: var(--box-padding);
37
- }
38
- .KPanel--content.scrollable {
39
- overflow-y: auto;
40
- }
41
- .KPanel--content.flex-content {
42
- flex-grow: 1;
43
- }
44
- .KPanel--footer {
45
- padding: var(--box-padding);
29
+ --current-panel-bg: var(--panel-bg-default);
30
+ --current-panel-header-bg: var(--panel-header-bg-default);
31
+ --current-panel-footer-bg: var(--panel-footer-bg-default);
32
+
33
+ border-radius: var(--border-radius-lg);
34
+ border: 1px solid var(--border-color-light);
35
+ box-shadow: var(--shadow-md);
36
+ background-color: color-mix(in srgb, var(--current-panel-bg), transparent calc((1 - var(--panel-bg-opacity)) * 100%));
37
+ backdrop-filter: blur(var(--panel-blur));
38
+ width: 100%;
39
+ min-width: 0;
40
+ display: flex;
41
+ flex-direction: column;
42
+ overflow: hidden;
43
+ transition: transform var(--transition-normal), box-shadow var(--transition-normal);
44
+ box-sizing: border-box;
45
+
46
+ &.type-primary {
47
+ --current-panel-bg: var(--panel-bg-primary);
48
+ --current-panel-header-bg: var(--panel-header-bg-primary);
49
+ --current-panel-footer-bg: var(--panel-footer-bg-primary);
50
+ }
51
+ &.type-success {
52
+ --current-panel-bg: var(--panel-bg-success);
53
+ --current-panel-header-bg: var(--panel-header-bg-success);
54
+ --current-panel-footer-bg: var(--panel-footer-bg-success);
55
+ }
56
+ &.type-warning {
57
+ --current-panel-bg: var(--panel-bg-warning);
58
+ --current-panel-header-bg: var(--panel-header-bg-warning);
59
+ --current-panel-footer-bg: var(--panel-footer-bg-warning);
60
+ }
61
+ &.type-danger {
62
+ --current-panel-bg: var(--panel-bg-danger);
63
+ --current-panel-header-bg: var(--panel-header-bg-danger);
64
+ --current-panel-footer-bg: var(--panel-footer-bg-danger);
65
+ }
66
+ &.type-info {
67
+ --current-panel-bg: var(--panel-bg-info);
68
+ --current-panel-header-bg: var(--panel-header-bg-info);
69
+ --current-panel-footer-bg: var(--panel-footer-bg-info);
70
+ }
71
+
72
+ &:hover {
73
+ //transform: translateY(-2px);
74
+ box-shadow: var(--shadow-lg);
75
+ }
76
+
77
+ .full-height {
78
+ height: 100%;
79
+ min-height: 0;
80
+ }
81
+
82
+ &--header {
83
+ padding: var(--gap-md);
84
+ background-color: color-mix(in srgb, var(--current-panel-header-bg), transparent 92%);
85
+ border-bottom: 1px solid var(--border-color-light);
86
+ font-weight: var(--font-weight-semibold);
87
+ color: var(--font-color-heading);
88
+ font-size: var(--font-size-lg);
89
+ }
90
+
91
+ &--content {
92
+ padding: var(--gap-md);
93
+ flex: 1;
94
+ min-height: 0;
95
+ color: var(--font-color-primary);
96
+
97
+ &.scrollable {
98
+ overflow-y: auto;
99
+ }
100
+
101
+ &.flex-content {
102
+ display: flex;
103
+ flex-direction: column;
104
+ }
105
+ }
106
+
107
+ &--footer {
108
+ padding: var(--gap-md);
109
+ background-color: color-mix(in srgb, var(--current-panel-footer-bg), transparent 92%);
110
+ border-top: 1px solid var(--border-color-light);
111
+ }
46
112
  }
47
113
  </style>
@@ -2,8 +2,11 @@ type __VLS_Props = {
2
2
  noGap?: boolean;
3
3
  flexContent?: boolean;
4
4
  scrollable?: boolean;
5
+ type?: 'default' | 'primary' | 'danger' | 'success' | 'warning' | 'info';
6
+ title?: string;
5
7
  };
6
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ type: "default" | "primary" | "danger" | "success" | "warning" | "info";
7
10
  noGap: boolean;
8
11
  flexContent: boolean;
9
12
  scrollable: boolean;
@@ -3,6 +3,8 @@ type __VLS_Props = {
3
3
  label?: string;
4
4
  value?: string;
5
5
  disabled?: boolean;
6
+ validation?: 'success' | 'warning' | 'error' | null;
7
+ validationText?: string;
6
8
  };
7
9
  type __VLS_ModelProps = {
8
10
  modelValue?: any;