@sme.up/ketchup 9.6.1 → 9.6.3

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 (280) hide show
  1. package/dist/cjs/{f-button-623dfcc3.js → f-button-9a0eba42.js} +2 -2
  2. package/dist/cjs/{f-cell-9c718d83.js → f-cell-1ad41071.js} +51 -9
  3. package/dist/cjs/{f-checkbox-bfa92ebe.js → f-checkbox-1fa28e76.js} +1 -1
  4. package/dist/cjs/{f-chip-c8efad5b.js → f-chip-48851b4f.js} +3 -3
  5. package/dist/cjs/{f-image-b61cc967.js → f-image-541e5f4d.js} +2 -2
  6. package/dist/cjs/{f-paginator-utils-f32382f6.js → f-paginator-utils-8ff2a9b4.js} +7 -4
  7. package/dist/cjs/{f-text-field-a09b1705.js → f-text-field-ac5d6497.js} +2 -2
  8. package/dist/cjs/{index-db0a6be6.js → index-958d0399.js} +21 -26
  9. package/dist/cjs/index.cjs.js +3 -3
  10. package/dist/cjs/ketchup.cjs.js +3 -3
  11. package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
  12. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +121 -95
  13. package/dist/cjs/kup-box.cjs.entry.js +60 -20
  14. package/dist/cjs/kup-calendar.cjs.entry.js +7 -7
  15. package/dist/cjs/kup-card-list.cjs.entry.js +4 -4
  16. package/dist/cjs/kup-cell.cjs.entry.js +10 -10
  17. package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +8 -8
  18. package/dist/cjs/kup-dashboard.cjs.entry.js +8 -8
  19. package/dist/cjs/{kup-dates-4aa560f0.js → kup-dates-b7d53b4d.js} +25 -8
  20. package/dist/cjs/kup-drawer.cjs.entry.js +4 -4
  21. package/dist/cjs/kup-echart.cjs.entry.js +4 -4
  22. package/dist/cjs/kup-editor.cjs.entry.js +3 -3
  23. package/dist/cjs/kup-family-tree.cjs.entry.js +6 -6
  24. package/dist/cjs/kup-gantt_10.cjs.entry.js +20 -14
  25. package/dist/cjs/kup-grid.cjs.entry.js +4 -4
  26. package/dist/cjs/kup-iframe.cjs.entry.js +4 -4
  27. package/dist/cjs/kup-image-list.cjs.entry.js +138 -50
  28. package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
  29. package/dist/cjs/kup-magic-box.cjs.entry.js +5 -5
  30. package/dist/cjs/{kup-manager-227c4be2.js → kup-manager-26a9154b.js} +684 -73
  31. package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -4
  32. package/dist/cjs/kup-numeric-picker.cjs.entry.js +5 -5
  33. package/dist/cjs/kup-photo-frame.cjs.entry.js +4 -4
  34. package/dist/cjs/{kup-planner-renderer-helper-f0c869d7.js → kup-planner-renderer-helper-680bbd5a.js} +3 -23
  35. package/dist/cjs/kup-planner-renderer.cjs.entry.js +13 -6
  36. package/dist/cjs/kup-planner.cjs.entry.js +12 -6
  37. package/dist/cjs/kup-probe.cjs.entry.js +3 -3
  38. package/dist/cjs/kup-qlik.cjs.entry.js +4 -4
  39. package/dist/cjs/kup-snackbar.cjs.entry.js +6 -6
  40. package/dist/cjs/loader.cjs.js +2 -2
  41. package/dist/collection/assets/data-table.js +7 -2
  42. package/dist/collection/assets/image-list.js +20 -0
  43. package/dist/collection/assets/index.js +4 -0
  44. package/dist/collection/assets/planner-example-6.js +983 -0
  45. package/dist/collection/collection-manifest.json +1 -1
  46. package/dist/collection/components/kup-accordion/kup-accordion.css +128 -0
  47. package/dist/collection/components/kup-autocomplete/kup-autocomplete.css +128 -0
  48. package/dist/collection/components/kup-badge/kup-badge.css +128 -0
  49. package/dist/collection/components/kup-box/kup-box.css +128 -0
  50. package/dist/collection/components/kup-box/kup-box.js +49 -9
  51. package/dist/collection/components/kup-button/kup-button.css +128 -0
  52. package/dist/collection/components/kup-button-list/kup-button-list.css +128 -0
  53. package/dist/collection/components/kup-calendar/kup-calendar.css +128 -0
  54. package/dist/collection/components/kup-card/built-in/kup-card-openai.js +29 -1
  55. package/dist/collection/components/kup-card/kup-card.css +135 -0
  56. package/dist/collection/components/kup-card-list/kup-card-list.css +128 -0
  57. package/dist/collection/components/kup-cell/kup-cell.css +128 -0
  58. package/dist/collection/components/kup-chart/kup-chart.css +128 -0
  59. package/dist/collection/components/kup-checkbox/kup-checkbox.css +128 -0
  60. package/dist/collection/components/kup-chip/kup-chip.css +128 -0
  61. package/dist/collection/components/kup-color-picker/kup-color-picker.css +128 -0
  62. package/dist/collection/components/kup-combobox/kup-combobox.css +128 -0
  63. package/dist/collection/components/kup-dashboard/kup-dashboard.css +128 -0
  64. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -0
  65. package/dist/collection/components/kup-data-table/kup-data-table.css +133 -0
  66. package/dist/collection/components/kup-data-table/kup-data-table.js +33 -17
  67. package/dist/collection/components/kup-date-picker/kup-date-picker.css +128 -0
  68. package/dist/collection/components/kup-dialog/kup-dialog.css +128 -0
  69. package/dist/collection/components/kup-drawer/kup-drawer.css +128 -0
  70. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +128 -0
  71. package/dist/collection/components/kup-echart/kup-echart.css +128 -0
  72. package/dist/collection/components/kup-family-tree/kup-family-tree.css +128 -0
  73. package/dist/collection/components/kup-form/kup-form.css +128 -0
  74. package/dist/collection/components/kup-gauge/kup-gauge.css +128 -0
  75. package/dist/collection/components/kup-grid/kup-grid.css +128 -0
  76. package/dist/collection/components/kup-iframe/kup-iframe.css +128 -0
  77. package/dist/collection/components/kup-image/kup-image.css +128 -0
  78. package/dist/collection/components/kup-image-list/kup-image-list-declarations.js +2 -0
  79. package/dist/collection/components/kup-image-list/kup-image-list.css +158 -18
  80. package/dist/collection/components/kup-image-list/kup-image-list.js +175 -46
  81. package/dist/collection/components/kup-lazy/kup-lazy.css +128 -0
  82. package/dist/collection/components/kup-list/kup-list.css +128 -0
  83. package/dist/collection/components/kup-magic-box/kup-magic-box.css +128 -0
  84. package/dist/collection/components/kup-nav-bar/kup-nav-bar.css +128 -0
  85. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.css +128 -0
  86. package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +128 -0
  87. package/dist/collection/components/kup-planner/kup-planner.css +128 -0
  88. package/dist/collection/components/kup-planner/kup-planner.js +7 -1
  89. package/dist/collection/components/kup-planner/utils/custom-task-list-header.module.css +128 -0
  90. package/dist/collection/components/kup-planner/utils/gantt-table.module.css +128 -0
  91. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.css +128 -0
  92. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +29 -2
  93. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.css +128 -0
  94. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +1 -1
  95. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.css +128 -0
  96. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +128 -0
  97. package/dist/collection/components/kup-planner/utils/kup-planner-renderer-helper.js +2 -22
  98. package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +37 -4
  99. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.css +128 -0
  100. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
  101. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.css +128 -0
  102. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.css +128 -0
  103. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.css +128 -0
  104. package/dist/collection/components/kup-progress-bar/kup-progress-bar.css +128 -0
  105. package/dist/collection/components/kup-qlik/kup-qlik.css +128 -0
  106. package/dist/collection/components/kup-radio/kup-radio.css +128 -0
  107. package/dist/collection/components/kup-rating/kup-rating.css +128 -0
  108. package/dist/collection/components/kup-snackbar/kup-snackbar.css +128 -0
  109. package/dist/collection/components/kup-spinner/kup-spinner.css +128 -0
  110. package/dist/collection/components/kup-switch/kup-switch.css +128 -0
  111. package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +128 -0
  112. package/dist/collection/components/kup-text-field/kup-text-field.css +128 -0
  113. package/dist/collection/components/kup-time-picker/kup-time-picker.css +128 -0
  114. package/dist/collection/components/kup-tree/kup-tree.css +128 -0
  115. package/dist/collection/f-components/f-cell/f-cell-declarations.js +1 -0
  116. package/dist/collection/f-components/f-cell/f-cell.js +44 -2
  117. package/dist/collection/f-components/f-paginator/f-paginator.js +3 -0
  118. package/dist/collection/managers/kup-dates/kup-dates.js +18 -8
  119. package/dist/collection/managers/kup-interact/kup-interact.js +7 -0
  120. package/dist/collection/managers/kup-openai/kup-openai.js +53 -40
  121. package/dist/collection/utils/cell-utils.js +2 -2
  122. package/dist/components/custom-task-list-header.js +1 -1
  123. package/dist/components/custom-task-list-table.js +1 -1
  124. package/dist/components/kup-accordion.js +1 -1
  125. package/dist/components/kup-autocomplete2.js +173 -101
  126. package/dist/components/kup-box2.js +50 -10
  127. package/dist/components/kup-calendar.js +1 -1
  128. package/dist/components/kup-card-list.js +1 -1
  129. package/dist/components/kup-cell.js +1 -1
  130. package/dist/components/kup-dashboard.js +1 -1
  131. package/dist/components/kup-dates.js +25 -8
  132. package/dist/components/kup-drawer.js +1 -1
  133. package/dist/components/kup-echart2.js +1 -1
  134. package/dist/components/kup-family-tree.js +1 -1
  135. package/dist/components/kup-gantt-calendar2.js +2 -2
  136. package/dist/components/kup-gantt2.js +11 -4
  137. package/dist/components/kup-grid-renderer2.js +1 -1
  138. package/dist/components/kup-grid2.js +1 -1
  139. package/dist/components/kup-horizontal-scroll2.js +1 -1
  140. package/dist/components/kup-iframe.js +1 -1
  141. package/dist/components/kup-image-list.js +132 -42
  142. package/dist/components/kup-lazy.js +1 -1
  143. package/dist/components/kup-magic-box.js +1 -1
  144. package/dist/components/kup-manager.js +682 -71
  145. package/dist/components/kup-nav-bar.js +1 -1
  146. package/dist/components/kup-numeric-picker.js +1 -1
  147. package/dist/components/kup-photo-frame.js +1 -1
  148. package/dist/components/kup-planner-renderer-helper.js +2 -22
  149. package/dist/components/kup-planner-renderer2.js +12 -4
  150. package/dist/components/kup-planner.js +8 -2
  151. package/dist/components/kup-qlik.js +1 -1
  152. package/dist/components/kup-snackbar.js +1 -1
  153. package/dist/components/kup-standard-tooltip2.js +1 -1
  154. package/dist/components/kup-switcher2.js +1 -1
  155. package/dist/components/kup-task-list-header2.js +1 -1
  156. package/dist/components/kup-task-list-table2.js +2 -2
  157. package/dist/components/kup-task-list2.js +1 -1
  158. package/dist/components/kup-tooltip2.js +1 -1
  159. package/dist/components/kup-vertical-scroll2.js +1 -1
  160. package/dist/esm/{f-button-121958b3.js → f-button-45d690a5.js} +2 -2
  161. package/dist/esm/{f-cell-959b83db.js → f-cell-63db06db.js} +51 -9
  162. package/dist/esm/{f-checkbox-fdf27ce9.js → f-checkbox-ddb6234e.js} +1 -1
  163. package/dist/esm/{f-chip-915ddf53.js → f-chip-f1ab6c5e.js} +3 -3
  164. package/dist/esm/{f-image-98371dac.js → f-image-8b382cc5.js} +2 -2
  165. package/dist/esm/{f-paginator-utils-10fa5a7d.js → f-paginator-utils-ae563cd5.js} +7 -4
  166. package/dist/esm/{f-text-field-0df308e4.js → f-text-field-b5fcb598.js} +2 -2
  167. package/dist/esm/{index-bbef9f2a.js → index-460631fd.js} +21 -26
  168. package/dist/esm/index.js +3 -3
  169. package/dist/esm/ketchup.js +4 -4
  170. package/dist/esm/kup-accordion.entry.js +5 -5
  171. package/dist/esm/kup-autocomplete_27.entry.js +121 -95
  172. package/dist/esm/kup-box.entry.js +60 -20
  173. package/dist/esm/kup-calendar.entry.js +7 -7
  174. package/dist/esm/kup-card-list.entry.js +4 -4
  175. package/dist/esm/kup-cell.entry.js +10 -10
  176. package/dist/esm/kup-custom-task-list-header_4.entry.js +8 -8
  177. package/dist/esm/kup-dashboard.entry.js +8 -8
  178. package/dist/esm/{kup-dates-172954df.js → kup-dates-4ad48be7.js} +25 -8
  179. package/dist/esm/kup-drawer.entry.js +4 -4
  180. package/dist/esm/kup-echart.entry.js +4 -4
  181. package/dist/esm/kup-editor.entry.js +3 -3
  182. package/dist/esm/kup-family-tree.entry.js +6 -6
  183. package/dist/esm/kup-gantt_10.entry.js +20 -14
  184. package/dist/esm/kup-grid.entry.js +4 -4
  185. package/dist/esm/kup-iframe.entry.js +4 -4
  186. package/dist/esm/kup-image-list.entry.js +138 -50
  187. package/dist/esm/kup-lazy.entry.js +4 -4
  188. package/dist/esm/kup-magic-box.entry.js +5 -5
  189. package/dist/esm/{kup-manager-33b051d6.js → kup-manager-cdb4f21a.js} +684 -73
  190. package/dist/esm/kup-nav-bar.entry.js +4 -4
  191. package/dist/esm/kup-numeric-picker.entry.js +5 -5
  192. package/dist/esm/kup-photo-frame.entry.js +4 -4
  193. package/dist/esm/{kup-planner-renderer-helper-5d97e075.js → kup-planner-renderer-helper-da0518be.js} +3 -23
  194. package/dist/esm/kup-planner-renderer.entry.js +13 -6
  195. package/dist/esm/kup-planner.entry.js +12 -6
  196. package/dist/esm/kup-probe.entry.js +3 -3
  197. package/dist/esm/kup-qlik.entry.js +4 -4
  198. package/dist/esm/kup-snackbar.entry.js +6 -6
  199. package/dist/esm/loader.js +3 -3
  200. package/dist/ketchup/index.esm.js +1 -1
  201. package/dist/ketchup/ketchup.esm.js +1 -1
  202. package/dist/ketchup/p-090e5097.entry.js +1 -0
  203. package/dist/ketchup/{p-662d2f9b.entry.js → p-1474852d.entry.js} +1 -1
  204. package/dist/ketchup/{p-11d5400a.entry.js → p-157f0e89.entry.js} +1 -1
  205. package/dist/ketchup/p-1cd48eea.entry.js +1 -0
  206. package/dist/ketchup/p-21351b19.entry.js +1 -0
  207. package/dist/ketchup/p-2b40d9b9.entry.js +1 -0
  208. package/dist/ketchup/p-31c0cfc0.entry.js +1 -0
  209. package/dist/ketchup/p-41e8402e.entry.js +1 -0
  210. package/dist/ketchup/p-47040db6.js +2 -0
  211. package/dist/ketchup/{p-9e63f56b.entry.js → p-4c100286.entry.js} +1 -1
  212. package/dist/ketchup/p-4dfc5927.entry.js +1 -0
  213. package/dist/ketchup/{p-e43d4ccc.js → p-590c34bc.js} +1 -1
  214. package/dist/ketchup/p-5c79cb74.js +1 -0
  215. package/dist/ketchup/p-670354ef.entry.js +1 -0
  216. package/dist/ketchup/p-837bd0a6.entry.js +1 -0
  217. package/dist/ketchup/p-935f58fc.js +1 -0
  218. package/dist/ketchup/{p-2778f948.js → p-9852b1e9.js} +1 -1
  219. package/dist/ketchup/p-9a856951.js +28 -0
  220. package/dist/ketchup/{p-ccc637ee.js → p-a5074ce4.js} +1 -1
  221. package/dist/ketchup/p-ad6a3c2a.entry.js +1 -0
  222. package/dist/ketchup/p-b6a21b6a.entry.js +1 -0
  223. package/dist/ketchup/{p-7bda0684.js → p-ba0f28b7.js} +1 -1
  224. package/dist/ketchup/{p-dba484b8.js → p-bedabdb5.js} +1 -1
  225. package/dist/ketchup/p-c6b34763.entry.js +1 -0
  226. package/dist/ketchup/p-ca42a421.entry.js +16 -0
  227. package/dist/ketchup/{p-9f31a129.entry.js → p-ca8a1f53.entry.js} +4 -4
  228. package/dist/ketchup/p-cbe42afd.entry.js +1 -0
  229. package/dist/ketchup/p-cc7352a8.entry.js +1 -0
  230. package/dist/ketchup/p-d50515f7.js +1 -0
  231. package/dist/ketchup/p-d608f866.entry.js +1 -0
  232. package/dist/ketchup/p-d839ce21.entry.js +9 -0
  233. package/dist/ketchup/p-d9284d98.entry.js +1 -0
  234. package/dist/ketchup/p-e0a1fbe7.entry.js +1 -0
  235. package/dist/ketchup/p-e0c10de2.entry.js +1 -0
  236. package/dist/ketchup/{p-dc18691c.js → p-e2bf2bb6.js} +1 -1
  237. package/dist/ketchup/{p-3ce8ce77.entry.js → p-e508b2fd.entry.js} +1 -1
  238. package/dist/ketchup/p-ec4050e1.entry.js +1 -0
  239. package/dist/types/components/kup-box/kup-box.d.ts +1 -0
  240. package/dist/types/components/kup-card/kup-card-declarations.d.ts +1 -0
  241. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +1 -0
  242. package/dist/types/components/kup-data-table/kup-data-table.d.ts +4 -0
  243. package/dist/types/components/kup-image-list/kup-image-list-declarations.d.ts +19 -4
  244. package/dist/types/components/kup-image-list/kup-image-list.d.ts +13 -11
  245. package/dist/types/components/kup-planner/kup-planner.d.ts +1 -0
  246. package/dist/types/components/kup-planner/utils/kup-gantt/kup-gantt.d.ts +4 -0
  247. package/dist/types/components/kup-planner/utils/kup-planner-renderer.d.ts +6 -0
  248. package/dist/types/components.d.ts +44 -8
  249. package/dist/types/f-components/f-image/f-image-declarations.d.ts +3 -4
  250. package/dist/types/managers/kup-dates/kup-dates.d.ts +2 -2
  251. package/dist/types/managers/kup-interact/kup-interact.d.ts +5 -0
  252. package/dist/types/managers/kup-openai/kup-openai-declarations.d.ts +7 -0
  253. package/dist/types/managers/kup-openai/kup-openai.d.ts +8 -12
  254. package/package.json +1 -1
  255. package/dist/ketchup/p-060ae996.entry.js +0 -1
  256. package/dist/ketchup/p-0a4595bd.entry.js +0 -1
  257. package/dist/ketchup/p-0dd0ae49.entry.js +0 -1
  258. package/dist/ketchup/p-102866cd.js +0 -1
  259. package/dist/ketchup/p-1ad7fea0.js +0 -2
  260. package/dist/ketchup/p-2f4055ba.entry.js +0 -1
  261. package/dist/ketchup/p-3c9ac0fd.entry.js +0 -1
  262. package/dist/ketchup/p-3ff9a661.entry.js +0 -1
  263. package/dist/ketchup/p-41d6466e.entry.js +0 -1
  264. package/dist/ketchup/p-4bf5e04f.entry.js +0 -1
  265. package/dist/ketchup/p-610a03d4.js +0 -28
  266. package/dist/ketchup/p-773bcc69.entry.js +0 -1
  267. package/dist/ketchup/p-81996620.entry.js +0 -1
  268. package/dist/ketchup/p-9d8d5070.entry.js +0 -1
  269. package/dist/ketchup/p-a9b06bb8.js +0 -1
  270. package/dist/ketchup/p-b3067fd0.entry.js +0 -9
  271. package/dist/ketchup/p-b5d3c24d.entry.js +0 -1
  272. package/dist/ketchup/p-babbffa4.entry.js +0 -1
  273. package/dist/ketchup/p-c1ade766.entry.js +0 -1
  274. package/dist/ketchup/p-d15d1083.entry.js +0 -1
  275. package/dist/ketchup/p-d5254caf.entry.js +0 -1
  276. package/dist/ketchup/p-de07d17e.js +0 -1
  277. package/dist/ketchup/p-df450df9.entry.js +0 -16
  278. package/dist/ketchup/p-ea625b2a.entry.js +0 -1
  279. package/dist/ketchup/p-eb37ea7e.entry.js +0 -1
  280. package/dist/ketchup/p-f0b882f4.entry.js +0 -1
@@ -0,0 +1 @@
1
+ import{r as i,c as t,f as e,h as a,H as s,d as n}from"./p-47040db6.js";import{k as r,g as o,s as l,l as p,M as h,e as f}from"./p-9a856951.js";import{c}from"./p-635bb4b3.js";import{F as m}from"./p-d50515f7.js";import{F as g}from"./p-590c34bc.js";import{F as u}from"./p-c634eb82.js";import{F as d}from"./p-5c79cb74.js";import{M as _}from"./p-d4a879fc.js";import"./p-935f58fc.js";import"./p-e2bf2bb6.js";import"./p-a5074ce4.js";import"./p-ba0f28b7.js";var k;!function(i){i.columns="Can set a specific number of columns",i.customStyle="Custom style of the component.",i.data="Actual data of the component",i.ripple="When enabled displays Material's ripple effect on clicked items.",i.rows="Cam set a specific number of rows. It overwrite the columns flow into rows flow"}(k||(k={}));class b{constructor(){this.load=!1}toDebugString(){return"image-list state"}}var v,w,y,x,j,z,C,M,W,E,O,T,P,D,F,S=function(i,t,e,a){if("a"===e&&!a)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?i!==t||!a:!t.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?a:"a"===e?a.call(i):a?a.value:t.get(i)},I=function(i,t,e,a,s){if("m"===a)throw new TypeError("Private method is not writable");if("a"===a&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?i!==t||!s:!t.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===a?s.call(i,e):s?s.value=e:t.set(i,e),e};const N=class{constructor(e){i(this,e),this.kupClick=t(this,"kup-imagelist-click",6),this.kupContextMenu=t(this,"kup-imagelist-contextmenu",6),this.kupDblClick=t(this,"kup-imagelist-dblclick",6),v.add(this),this.state=new b,w.set(this,[]),y.set(this,r()),x.set(this,{icon:"arrow_back",onClick:()=>{this.currentNode=S(this,y,"f").data.node.getParent(this.data,this.currentNode),this.currentNode||(this.navigationBarToggled=!1)},styling:u.FLAT,wrapperClass:"navigation-bar__back"}),j.set(this,{icon:"arrow_upward",onClick:()=>{this.currentNode=null,this.navigationBarToggled=!1},styling:u.FLAT,wrapperClass:"navigation-bar__top"}),z.set(this,void 0),C.set(this,!1),M.set(this,[]),this.currentNode=null,this.navigationBarToggled=!1,this.columns=4,this.customStyle="",this.data=[],this.ripple=!0,this.rows=null,this.selectedNode=[],this.stateId="",this.store=void 0}initWithPersistedState(){if(this.store&&this.stateId){const i=this.store.getState(this.stateId);null!=i&&(this.currentNode=S(this,y,"f").data.node.findByStrTreeNodePath(this.data,i.selectedTreeNodePath))}}persistState(){if(this.store&&this.stateId){let i=!1,t=this.currentNode?this.currentNode.id:"";if(S(this,y,"f").objects.deepEqual(this.state.selectedTreeNodePath,t)||(this.state.selectedTreeNodePath=t,i=!0),!this.state.load)return void(this.state.load=!0);i&&this.store.persistState(this.stateId,this.state)}}selectNode(i){i&&0!=i.length&&(this.currentNode=S(this,y,"f").data.node.find(this.data,i))}async getProps(i){return o(this,k,i)}async refresh(){e(this)}async setProps(i){l(this,k,i)}componentWillLoad(){S(this,y,"f").debug.logLoad(this,!1),S(this,y,"f").language.register(this),S(this,y,"f").theme.register(this)}componentDidLoad(){S(this,v,"m",F).call(this),S(this,y,"f").debug.logLoad(this,!0)}componentWillRender(){S(this,y,"f").debug.logRender(this,!1)}componentDidRender(){const i=this.rootElement.shadowRoot;if(i&&this.ripple){const t=i.querySelectorAll(".mdc-ripple-surface:not(.mdc-ripple-upgraded)");if(t)for(let i=0;i<t.length;i++)_.attachTo(t[i])}this.persistState(),S(this,y,"f").debug.logRender(this,!0)}render(){const i=!!this.currentNode;let t=Object.assign({},{"grid-template-columns":`repeat(${this.columns}, minmax(0px, 1fr))`});if(null!=this.rows&&this.rows>0){const i={"grid-template-rows":`repeat(${this.rows}, minmax(0px, 1fr))`,"grid-auto-flow":"column"};t=Object.assign(Object.assign({},t),i)}return a(s,{key:"86c391c4a1e0c507dc0c07971aa90e6f7091bc95"},a("style",{key:"99f966c6cd10aac991c99b4badca0a6cff1dbf5b"},S(this,y,"f").theme.setKupStyle(this.rootElement)),a("div",{key:"e4eaa257a47cabcb34a412f56d736cd77fbc97af",id:c,ref:i=>{I(this,z,i,"f")}},a("div",{key:"48ff34cbb307b0ab49ca3b8ed240f0510e674e93",class:"navigation-bar"},i?a("div",{class:"navigation-bar__wrapper "+(this.navigationBarToggled?"navigation-bar__wrapper--active":"")},a("div",{class:"navigation-bar__title",onClick:()=>{this.navigationBarToggled=!this.navigationBarToggled}},a(m,{fit:!0,resource:this.currentNode.icon,sizeX:"1.25em",sizeY:"1.25em",wrapperClass:"navigation-bar__title__image"}),a("div",{class:"navigation-bar__title__label"},this.currentNode.value)),a(g,Object.assign({},S(this,x,"f"),{label:S(this,y,"f").language.translate(p.BACK)})),a(g,Object.assign({},S(this,j,"f"),{label:S(this,y,"f").language.translate(p.TOP)}))):null),a("div",{key:"97ac20f9d893c131c03adc953e78435bb062f137",class:"image-list",style:t},...S(this,v,"m",E).call(this))))}disconnectedCallback(){S(this,y,"f").interact.unregister(S(this,M,"f")),S(this,y,"f").language.unregister(this),S(this,y,"f").theme.unregister(this)}get rootElement(){return n(this)}static get watchers(){return{selectedNode:["selectNode"]}}};w=new WeakMap,y=new WeakMap,x=new WeakMap,j=new WeakMap,z=new WeakMap,C=new WeakMap,M=new WeakMap,v=new WeakSet,W=function(i){const t=a(m,Object.assign({},{fit:!0,resource:i.icon,title:i.title,wrapperClass:"image-list__image",badgeData:i.badgeData})),e=a("div",{class:"image-list__label"},i.value);return a(d,{cell:{value:i.value,icon:i.icon,obj:i.obj},column:{name:"IMAGE",title:"Image"},component:this,density:f.NONE,row:Object.assign({},i)},a("div",{class:"image-list__wrapper"},t,e))},E=function(){const i=[],t=this.currentNode?this.currentNode.children:this.data;for(let e=0;t&&e<t.length;e++){const s=t[e],n=a("div",{onContextMenu:i=>{i.preventDefault()},class:{"image-list__item":!0,"mdc-ripple-surface":!!this.ripple}},S(this,v,"m",W).call(this,s));i.push(n)}return i},O=function(i,t){let e;if(i)for(let t=i.length-1;t>=0;t--){let a=i[t];a.tagName&&a.classList.contains("f-cell")&&(e=a["kup-get-cell-props"]())}return{cell:null==e?void 0:e.cell,column:null==e?void 0:e.column,originalEvent:t,row:null==e?void 0:e.row}},T=function(i){return S(this,v,"m",O).call(this,S(this,y,"f").getEventPath(i.target,this.rootElement),i)},P=function(i){return S(this,v,"m",O).call(this,S(this,y,"f").getEventPath(i.target,this.rootElement),i)},D=function(i){return S(this,v,"m",O).call(this,S(this,y,"f").getEventPath(i.target,this.rootElement),i)},F=function(){S(this,M,"f").push(S(this,z,"f"));const i=i=>{"pen"!==i.pointerType&&"touch"!==i.pointerType||I(this,C,!0,"f")};S(this,y,"f").interact.on(S(this,z,"f"),h.HOLD,i),S(this,y,"f").interact.on(S(this,z,"f"),h.TAP,(i=>{if(S(this,C,"f"))I(this,C,!1,"f");else switch(i.button){case 0:const t={};for(const e in i)t[e]=i[e];S(this,w,"f").push(setTimeout((()=>{const i=S(this,v,"m",T).call(this,t),e=i.row;e.children&&e.children.length>0&&(this.currentNode=e),this.kupClick.emit({comp:this,id:this.rootElement.id,details:i})}),300));break;case 2:this.kupContextMenu.emit({comp:this,id:this.rootElement.id,details:S(this,v,"m",P).call(this,i)})}})),S(this,y,"f").interact.on(S(this,z,"f"),h.DOUBLETAP,(i=>{if(0===i.button){for(let i=0;i<S(this,w,"f").length;i++)clearTimeout(S(this,w,"f")[i]),S(this,y,"f").debug.logMessage(this,"Cleared clickHandler timeout("+S(this,w,"f")[i]+").");I(this,w,[],"f"),this.kupDblClick.emit({comp:this,id:this.rootElement.id,details:S(this,v,"m",D).call(this,i)})}})),S(this,y,"f").interact.on(S(this,z,"f"),h.HOLD,i)},N.style=".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_imagelist_background_color:var(\n --kup-imagelist-background-color,\n transparent\n );--kup_imagelist_columns:var(--kup-imagelist-columns, 4);--kup_imagelist_grid_gap:var(--kup-imagelist-grid-gap, 0.5em);--kup_imagelist_image_min_height:var(\n --kup-imagelist-image-min-height,\n var(--kup-space-09)\n );--kup_imagelist_item_border_radius:var(\n --kup-imagelist-item-border-radius,\n var(--kup-radius-00)\n );--kup_imagelist_item_height:var(--kup-imagelist-item-height, auto);--kup_imagelist_item_padding:var(--kup-imagelist-item-padding, 0);--kup_imagelist_item_width:var(--kup-imagelist-item-width, auto);--kup_imagelist_label_margin:var(\n --kup-imagelist-label-margin,\n 0 auto 1em auto\n );--kup_imagelist_navbar_background_color:var(\n --kup-imagelist-navbar-background-color,\n transparent\n );--kup_imagelist_primary_color:var(\n --kup-imagelist-primary-color,\n var(--kup-primary-color)\n );--kup_imagelist_primary_color_rgb:var(\n --kup-imagelist-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_imagelist_text_color:var(\n --kup-imagelist-text-color,\n var(--kup-gray-color-70)\n );--kup_imagelist_item_background_color:var(\n --kup-imagelist-item-background-color,\n var(--kup-gray-color-10)\n );display:block}.navigation-bar{align-items:center;background-color:var(--kup_imagelist_navbar_background_color);display:flex;justify-content:center}.navigation-bar__wrapper{align-items:center;display:flex;flex-wrap:wrap;justify-content:center;max-width:100%;position:relative}.navigation-bar__wrapper--active .navigation-bar__title{background-color:rgba(var(--kup_imagelist_primary_color_rgb), 0.15);color:var(--kup_imagelist_primary_color)}.navigation-bar__back,.navigation-bar__top{--kup-button-primary-color-rgb:0}.navigation-bar__title{border-radius:16px;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;padding:0.75em 1em;user-select:none;transition:background-color 125ms, color 125ms;width:100%}.navigation-bar__title__image.f-image{margin:0}.navigation-bar__title__label{overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap;font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.image-list{background-color:var(--kup_imagelist_background_color);display:grid;grid-gap:var(--kup_imagelist_grid_gap);grid-template-columns:repeat(var(--kup_imagelist_columns, 4), minmax(0px, 1fr));margin-top:1em;width:100%;grid-auto-flow:row}.image-list .f-cell{height:100%;width:100%}.image-list .f-cell .f-cell__content .image-list__wrapper{padding:var(--kup-space-03) var(--kup-space-02)}.image-list__item{background-color:var(--kup_imagelist_item_background_color);border-radius:var(--kup_imagelist_item_border_radius);cursor:pointer;height:var(--kup_imagelist_item_height);padding:var(--kup_imagelist_item_padding);width:var(--kup_imagelist_item_width)}.image-list__item:hover{background-color:var(--kup-gray-color-20)}.image-list__image.f-image{margin-bottom:var(--kup-space-03)}.image-list__image.f-image .f-image__icon{min-height:var(--kup_imagelist_image_min_height)}.image-list__label{overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}:host(.kup-full-height){height:100%}:host(.kup-full-width){width:100%}:host(.kup-horizontal) .image-list{display:flex}:host(.kup-auto-grid) .image-list{display:flex;flex-wrap:wrap;justify-content:center}";export{N as kup_image_list}
@@ -253,6 +253,7 @@ export declare class KupBox {
253
253
  private isSectionExpanded;
254
254
  private handleAutomaticBoxSelection;
255
255
  private getEventDetails;
256
+ private clickHandler;
256
257
  private contextMenuHandler;
257
258
  /**
258
259
  * Checks if the element is the svg that opens the "row actions menu"
@@ -77,6 +77,7 @@ export interface KupCardBuiltInOpenAIOptions {
77
77
  export interface KupCardBuiltInOpenAIMessages {
78
78
  text: string;
79
79
  type: 'request' | 'response';
80
+ funs: RegExpMatchArray[];
80
81
  }
81
82
  /**
82
83
  * Options of the built-in column drop menu.
@@ -34,6 +34,7 @@ export declare enum KupDataTableProps {
34
34
  insertMode = "Enables insert mode.",
35
35
  isFocusable = "When set to true, clicked-on rows will have a visual feedback.",
36
36
  lazyLoadRows = "When set to true, extra rows will be automatically loaded once the last row enters the viewport. When groups are present, the number of rows is referred to groups and not to their content. Paginator is disabled.",
37
+ legacyLook = "When enabled, the extra whitespaces will be displayed and the font will be set to monospace by default.",
37
38
  lineBreakCharacter = "Defines the placeholder character which will be replaced by a line break inside table header cells, normal or sticky.",
38
39
  loadMoreLimit = "Sets a maximum limit of new records which can be required by the load more functionality.",
39
40
  loadMoreMode = "Establish the modality of how many new records will be downloaded. This property is regulated also by loadMoreStep.",
@@ -160,6 +160,10 @@ export declare class KupDataTable {
160
160
  * Sets the position of the paginator. Available positions: top, bottom or both.
161
161
  */
162
162
  paginatorPos: PaginatorPos;
163
+ /**
164
+ * When enabled, the extra whitespaces will be displayed and the font will be set to monospace by default.
165
+ */
166
+ legacyLook: boolean;
163
167
  /**
164
168
  * Sets the possibility to remove the selected column.
165
169
  */
@@ -1,14 +1,29 @@
1
- import { KupDataNode } from '../../managers/kup-data/kup-data-declarations';
2
- import { KupEventPayload } from '../../types/GenericTypes';
1
+ import { KupDataCell, KupDataColumn, KupDataNode, KupDataRow } from '../../managers/kup-data/kup-data-declarations';
2
+ import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
3
3
  /**
4
4
  * Props of the kup-image-list component.
5
5
  * Used to export every prop in an object.
6
6
  */
7
7
  export declare enum KupImageListProps {
8
+ columns = "Can set a specific number of columns",
8
9
  customStyle = "Custom style of the component.",
9
10
  data = "Actual data of the component",
10
- ripple = "When enabled displays Material's ripple effect on clicked items."
11
+ ripple = "When enabled displays Material's ripple effect on clicked items.",
12
+ rows = "Cam set a specific number of rows. It overwrite the columns flow into rows flow"
11
13
  }
12
14
  export interface KupImageListEventPayload extends KupEventPayload {
13
- node: KupDataNode;
15
+ details: KupImageListEventHandlerDetails;
16
+ }
17
+ /**
18
+ * Contains all the data of an event.
19
+ */
20
+ export interface KupImageListEventHandlerDetails {
21
+ cell: KupDataCell;
22
+ column: KupDataColumn;
23
+ originalEvent: PointerEvent;
24
+ row: KupDataRow;
25
+ }
26
+ export interface KupImageListDataNode extends KupDataNode {
27
+ badgeData: GenericObject[];
28
+ children?: KupImageListDataNode[];
14
29
  }
@@ -1,7 +1,6 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
2
  import { GenericObject } from '../../types/GenericTypes';
3
- import { KupImageListEventPayload } from './kup-image-list-declarations';
4
- import { KupDataNode } from '../../managers/kup-data/kup-data-declarations';
3
+ import { KupImageListDataNode, KupImageListEventPayload } from './kup-image-list-declarations';
5
4
  import { KupStore } from '../kup-state/kup-store';
6
5
  import { KupImageListState } from './kup-image-list-state';
7
6
  import { TreeNodePath } from '../kup-tree/kup-tree-declarations';
@@ -12,10 +11,15 @@ export declare class KupImageList {
12
11
  */
13
12
  rootElement: HTMLElement;
14
13
  state: KupImageListState;
15
- currentNode: KupDataNode;
14
+ currentNode: KupImageListDataNode;
16
15
  navigationBarToggled: boolean;
17
16
  initWithPersistedState(): void;
18
17
  persistState(): void;
18
+ /**
19
+ * Number of columns to display in the grid layout.
20
+ * @default 4
21
+ */
22
+ columns: number;
19
23
  /**
20
24
  * Custom style of the component.
21
25
  * @default ""
@@ -26,28 +30,26 @@ export declare class KupImageList {
26
30
  * Actual data of the component.
27
31
  * @default []
28
32
  */
29
- data: KupDataNode[];
33
+ data: KupImageListDataNode[];
30
34
  /**
31
35
  * When enabled displays Material's ripple effect on clicked items.
32
36
  * @default true
33
37
  */
34
38
  ripple: boolean;
39
+ /**
40
+ * Number of rows to display in the grid layout.
41
+ * @default null
42
+ */
43
+ rows: number;
35
44
  /**
36
45
  * An array of integers containing the path to a selected child.\
37
46
  */
38
47
  selectedNode: TreeNodePath;
39
48
  stateId: string;
40
49
  store: KupStore;
41
- /**
42
- * Instance of the KupManager class.
43
- */
44
- private kupManager;
45
50
  kupClick: EventEmitter<KupImageListEventPayload>;
46
- onKupClick(node: KupDataNode): void;
47
51
  kupContextMenu: EventEmitter<KupImageListEventPayload>;
48
- onKupContextMenu(e: MouseEvent, node: KupDataNode): void;
49
52
  kupDblClick: EventEmitter<KupImageListEventPayload>;
50
- onKupDblClick(node: KupDataNode): void;
51
53
  selectNode(newData: TreeNodePath): void;
52
54
  /**
53
55
  * Used to retrieve component's props values.
@@ -11,6 +11,7 @@ export declare class KupPlanner {
11
11
  state: KupPlannerState;
12
12
  initWithPersistedState(): void;
13
13
  persistState(): void;
14
+ plannerRenderer: HTMLKupPlannerRendererElement;
14
15
  /**
15
16
  * References the root HTML element of the component (<kup-planner>).
16
17
  */
@@ -101,6 +101,10 @@ export declare class KupGantt {
101
101
  loadStates(): void;
102
102
  componentDidRender(): void;
103
103
  componentDidLoad(): void;
104
+ /**
105
+ * This method is used to trigger a new render of the component.
106
+ */
107
+ refresh(): Promise<void>;
104
108
  updateInitialScrollY(): void;
105
109
  updateInitialScrollX(): void;
106
110
  updateGanttData(): void;
@@ -15,6 +15,8 @@ export declare class KupPlannerRenderer {
15
15
  locale: string;
16
16
  tasks: KupPlannerTask[];
17
17
  details: KupPlannerTask[];
18
+ mainGantt: HTMLKupGanttElement;
19
+ secondaryGantt: HTMLKupGanttElement;
18
20
  /**
19
21
  * References the root HTML element of the component (<kup-planner-renderer>).
20
22
  */
@@ -23,6 +25,10 @@ export declare class KupPlannerRenderer {
23
25
  updateDisplayedDates(): void;
24
26
  updateTasks(): void;
25
27
  componentWillLoad(): void;
28
+ /**
29
+ * This method is used to trigger a new render of the component.
30
+ */
31
+ refresh(): Promise<void>;
26
32
  handleClick(row: KupPlannerGanttRow, onClick: any): void;
27
33
  handleDblClick(row: KupPlannerGanttRow, onDblClick: any): void;
28
34
  handleContextMenu(event: UIEvent, row: KupPlannerGanttRow, onContextMenu: any): void;
@@ -11,7 +11,7 @@ import { ItemsDisplayMode, KupListEventPayload, KupListNode, KupListRole } from
11
11
  import { KupAutocompleteEventPayload, KupAutocompleteIconClickEventPayload } from "./components/kup-autocomplete/kup-autocomplete-declarations";
12
12
  import { KupBoxAutoSelectEventPayload, KupBoxClickEventPayload, KupBoxContextMenuEventPayload, KupBoxData, KupBoxKanban, KupBoxLayout, KupBoxLoadMoreClickEventPayload, KupBoxRow, KupBoxRowActionClickEventPayload, KupBoxSelectedEventPayload, LoadMoreMode } from "./components/kup-box/kup-box-declarations";
13
13
  import { KupStore } from "./components/kup-state/kup-store";
14
- import { KupDataCell, KupDataColumn, KupDataDataset, KupDataNewColumnOptions, KupDataNewColumnTypes, KupDataNode, KupDataRowAction } from "./managers/kup-data/kup-data-declarations";
14
+ import { KupDataCell, KupDataColumn, KupDataDataset, KupDataNewColumnOptions, KupDataNewColumnTypes, KupDataRowAction } from "./managers/kup-data/kup-data-declarations";
15
15
  import { FButtonProps, FButtonStyling } from "./f-components/f-button/f-button-declarations";
16
16
  import { KupButtonClickEventPayload } from "./components/kup-button/kup-button-declarations";
17
17
  import { KupButtonListClickEventPayload, KupButtonListNode } from "./components/kup-button-list/kup-button-list-declarations";
@@ -25,7 +25,7 @@ import { KupChipChangeEventPayload, KupChipEventPayload, KupChipNode } from "./c
25
25
  import { FChipType } from "./f-components/f-chip/f-chip-declarations";
26
26
  import { KupColorPickerEventPayload } from "./components/kup-color-picker/kup-color-picker-declarations";
27
27
  import { KupComboboxEventPayload, KupComboboxIconClickEventPayload } from "./components/kup-combobox/kup-combobox-declarations";
28
- import { KupGanttPlannerProps, KupPlannerBarDisplayProps, KupPlannerBarTask, KupPlannerCalendarProps, KupPlannerClickEventPayload, KupPlannerEventOption, KupPlannerEventPayload, KupPlannerGanttEvent, KupPlannerGanttProps, KupPlannerGanttRow, KupPlannerGanttTaskN, KupPlannerItemDetail, KupPlannerPhase, KupPlannerSwitcherProps, KupPlannerTask, KupPlannerTaskGanttContentProps, KupPlannerTaskGanttProps, KupPlannerTaskItemProps, KupPlannerTaskListProps, KupPlannerTaskType, KupPlannerUnloadEventPayload, KupPlannerViewMode, PlannerProps } from "./components/kup-planner/kup-planner-declarations";
28
+ import { KupGanttPlannerProps, KupPlannerBarDisplayProps, KupPlannerBarTask, KupPlannerCalendarProps, KupPlannerClickEventPayload, KupPlannerEventOption, KupPlannerEventPayload, KupPlannerGanttEvent, KupPlannerGanttProps, KupPlannerGanttRow, KupPlannerGanttTask, KupPlannerGanttTaskN, KupPlannerItemDetail, KupPlannerPhase, KupPlannerSwitcherProps, KupPlannerTask, KupPlannerTaskGanttContentProps, KupPlannerTaskGanttProps, KupPlannerTaskItemProps, KupPlannerTaskListProps, KupPlannerTaskType, KupPlannerUnloadEventPayload, KupPlannerViewMode, PlannerProps } from "./components/kup-planner/kup-planner-declarations";
29
29
  import { KupDashboardEventPayload, KupDataDashboard } from "./components/kup-dashboard/kup-dashboard-declarations";
30
30
  import { GroupLabelDisplayMode, GroupObject, KupDatatableClickEventPayload, KupDatatableColumnMenuEventPayload, KupDatatableColumnMoveEventPayload, KupDatatableColumnRemoveEventPayload, KupDataTableDataset, KupDatatableDeleteRowEventPayload, KupDatatableHistoryEventPayload, KupDataTableInsertMode, KupDatatableInsertRowEventPayload, KupDatatableLoadMoreClickEventPayload, KupDataTableRow, KupDatatableRowActionClickEventPayload, KupDatatableRowSelectedEventPayload, LoadMoreMode as LoadMoreMode1, PaginatorPos, SelectionMode, ShowGrid, SortObject, TotalsMap } from "./components/kup-data-table/kup-data-table-declarations";
31
31
  import { GenericFilter, KupGlobalFilterMode } from "./utils/filters/filters-declarations";
@@ -41,8 +41,8 @@ import { KupFormData, KupFormLabelPlacement, KupFormLayout } from "./components/
41
41
  import { KupBadge } from "./components/kup-badge/kup-badge";
42
42
  import { FImageData } from "./f-components/f-image/f-image-declarations";
43
43
  import { KupImageClickEventPayload } from "./components/kup-image/kup-image-declarations";
44
+ import { KupImageListDataNode, KupImageListEventPayload } from "./components/kup-image-list/kup-image-list-declarations";
44
45
  import { KupTreeColumnMenuEventPayload, KupTreeColumnRemoveEventPayload, KupTreeContextMenuEventPayload, KupTreeDynamicMassExpansionEventPayload, KupTreeExpansionMode, KupTreeNode, KupTreeNodeButtonClickEventPayload, KupTreeNodeCollapseEventPayload, KupTreeNodeExpandEventPayload, KupTreeNodeSelectedEventPayload, TreeNodePath } from "./components/kup-tree/kup-tree-declarations";
45
- import { KupImageListEventPayload } from "./components/kup-image-list/kup-image-list-declarations";
46
46
  import { KupLazyRender } from "./components/kup-lazy/kup-lazy-declarations";
47
47
  import { KupNavBarStyling } from "./components/kup-nav-bar/kup-nav-bar-declarations";
48
48
  import { KupNumericPickerEventPayload } from "./components/kup-numeric-picker/kup-numeric-picker-declarations";
@@ -60,7 +60,7 @@ export { ItemsDisplayMode, KupListEventPayload, KupListNode, KupListRole } from
60
60
  export { KupAutocompleteEventPayload, KupAutocompleteIconClickEventPayload } from "./components/kup-autocomplete/kup-autocomplete-declarations";
61
61
  export { KupBoxAutoSelectEventPayload, KupBoxClickEventPayload, KupBoxContextMenuEventPayload, KupBoxData, KupBoxKanban, KupBoxLayout, KupBoxLoadMoreClickEventPayload, KupBoxRow, KupBoxRowActionClickEventPayload, KupBoxSelectedEventPayload, LoadMoreMode } from "./components/kup-box/kup-box-declarations";
62
62
  export { KupStore } from "./components/kup-state/kup-store";
63
- export { KupDataCell, KupDataColumn, KupDataDataset, KupDataNewColumnOptions, KupDataNewColumnTypes, KupDataNode, KupDataRowAction } from "./managers/kup-data/kup-data-declarations";
63
+ export { KupDataCell, KupDataColumn, KupDataDataset, KupDataNewColumnOptions, KupDataNewColumnTypes, KupDataRowAction } from "./managers/kup-data/kup-data-declarations";
64
64
  export { FButtonProps, FButtonStyling } from "./f-components/f-button/f-button-declarations";
65
65
  export { KupButtonClickEventPayload } from "./components/kup-button/kup-button-declarations";
66
66
  export { KupButtonListClickEventPayload, KupButtonListNode } from "./components/kup-button-list/kup-button-list-declarations";
@@ -74,7 +74,7 @@ export { KupChipChangeEventPayload, KupChipEventPayload, KupChipNode } from "./c
74
74
  export { FChipType } from "./f-components/f-chip/f-chip-declarations";
75
75
  export { KupColorPickerEventPayload } from "./components/kup-color-picker/kup-color-picker-declarations";
76
76
  export { KupComboboxEventPayload, KupComboboxIconClickEventPayload } from "./components/kup-combobox/kup-combobox-declarations";
77
- export { KupGanttPlannerProps, KupPlannerBarDisplayProps, KupPlannerBarTask, KupPlannerCalendarProps, KupPlannerClickEventPayload, KupPlannerEventOption, KupPlannerEventPayload, KupPlannerGanttEvent, KupPlannerGanttProps, KupPlannerGanttRow, KupPlannerGanttTaskN, KupPlannerItemDetail, KupPlannerPhase, KupPlannerSwitcherProps, KupPlannerTask, KupPlannerTaskGanttContentProps, KupPlannerTaskGanttProps, KupPlannerTaskItemProps, KupPlannerTaskListProps, KupPlannerTaskType, KupPlannerUnloadEventPayload, KupPlannerViewMode, PlannerProps } from "./components/kup-planner/kup-planner-declarations";
77
+ export { KupGanttPlannerProps, KupPlannerBarDisplayProps, KupPlannerBarTask, KupPlannerCalendarProps, KupPlannerClickEventPayload, KupPlannerEventOption, KupPlannerEventPayload, KupPlannerGanttEvent, KupPlannerGanttProps, KupPlannerGanttRow, KupPlannerGanttTask, KupPlannerGanttTaskN, KupPlannerItemDetail, KupPlannerPhase, KupPlannerSwitcherProps, KupPlannerTask, KupPlannerTaskGanttContentProps, KupPlannerTaskGanttProps, KupPlannerTaskItemProps, KupPlannerTaskListProps, KupPlannerTaskType, KupPlannerUnloadEventPayload, KupPlannerViewMode, PlannerProps } from "./components/kup-planner/kup-planner-declarations";
78
78
  export { KupDashboardEventPayload, KupDataDashboard } from "./components/kup-dashboard/kup-dashboard-declarations";
79
79
  export { GroupLabelDisplayMode, GroupObject, KupDatatableClickEventPayload, KupDatatableColumnMenuEventPayload, KupDatatableColumnMoveEventPayload, KupDatatableColumnRemoveEventPayload, KupDataTableDataset, KupDatatableDeleteRowEventPayload, KupDatatableHistoryEventPayload, KupDataTableInsertMode, KupDatatableInsertRowEventPayload, KupDatatableLoadMoreClickEventPayload, KupDataTableRow, KupDatatableRowActionClickEventPayload, KupDatatableRowSelectedEventPayload, LoadMoreMode as LoadMoreMode1, PaginatorPos, SelectionMode, ShowGrid, SortObject, TotalsMap } from "./components/kup-data-table/kup-data-table-declarations";
80
80
  export { GenericFilter, KupGlobalFilterMode } from "./utils/filters/filters-declarations";
@@ -90,8 +90,8 @@ export { KupFormData, KupFormLabelPlacement, KupFormLayout } from "./components/
90
90
  export { KupBadge } from "./components/kup-badge/kup-badge";
91
91
  export { FImageData } from "./f-components/f-image/f-image-declarations";
92
92
  export { KupImageClickEventPayload } from "./components/kup-image/kup-image-declarations";
93
+ export { KupImageListDataNode, KupImageListEventPayload } from "./components/kup-image-list/kup-image-list-declarations";
93
94
  export { KupTreeColumnMenuEventPayload, KupTreeColumnRemoveEventPayload, KupTreeContextMenuEventPayload, KupTreeDynamicMassExpansionEventPayload, KupTreeExpansionMode, KupTreeNode, KupTreeNodeButtonClickEventPayload, KupTreeNodeCollapseEventPayload, KupTreeNodeExpandEventPayload, KupTreeNodeSelectedEventPayload, TreeNodePath } from "./components/kup-tree/kup-tree-declarations";
94
- export { KupImageListEventPayload } from "./components/kup-image-list/kup-image-list-declarations";
95
95
  export { KupLazyRender } from "./components/kup-lazy/kup-lazy-declarations";
96
96
  export { KupNavBarStyling } from "./components/kup-nav-bar/kup-nav-bar-declarations";
97
97
  export { KupNumericPickerEventPayload } from "./components/kup-numeric-picker/kup-numeric-picker-declarations";
@@ -1364,6 +1364,10 @@ export namespace Components {
1364
1364
  * When set to true, extra rows will be automatically loaded once the last row enters the viewport. When groups are present, the number of rows is referred to groups and not to their content. Paginator is disabled.
1365
1365
  */
1366
1366
  "lazyLoadRows": boolean;
1367
+ /**
1368
+ * When enabled, the extra whitespaces will be displayed and the font will be set to monospace by default.
1369
+ */
1370
+ "legacyLook": boolean;
1367
1371
  /**
1368
1372
  * Defines the placeholder character which will be replaced by a line break inside table header cells, normal or sticky.
1369
1373
  */
@@ -2101,6 +2105,10 @@ export namespace Components {
2101
2105
  "projectProgressSelectedColor": KupPlannerGanttProps['projectProgressSelectedColor'];
2102
2106
  "projection": KupPlannerGanttProps['projection'];
2103
2107
  "readOnly": KupPlannerGanttProps['readOnly'];
2108
+ /**
2109
+ * This method is used to trigger a new render of the component.
2110
+ */
2111
+ "refresh": () => Promise<void>;
2104
2112
  "rowHeight": KupPlannerGanttProps['rowHeight'];
2105
2113
  "rtl": KupPlannerGanttProps['rtl'];
2106
2114
  "scrollXChange": KupPlannerGanttProps['scrollXChange'];
@@ -2395,6 +2403,11 @@ export namespace Components {
2395
2403
  "sizeY": string;
2396
2404
  }
2397
2405
  interface KupImageList {
2406
+ /**
2407
+ * Number of columns to display in the grid layout.
2408
+ * @default 4
2409
+ */
2410
+ "columns": number;
2398
2411
  /**
2399
2412
  * Custom style of the component.
2400
2413
  * @default ""
@@ -2405,7 +2418,7 @@ export namespace Components {
2405
2418
  * Actual data of the component.
2406
2419
  * @default []
2407
2420
  */
2408
- "data": KupDataNode[];
2421
+ "data": KupImageListDataNode[];
2409
2422
  /**
2410
2423
  * Used to retrieve component's props values.
2411
2424
  * @param descriptions - When provided and true, the result will be the list of props with their description.
@@ -2421,6 +2434,11 @@ export namespace Components {
2421
2434
  * @default true
2422
2435
  */
2423
2436
  "ripple": boolean;
2437
+ /**
2438
+ * Number of rows to display in the grid layout.
2439
+ * @default null
2440
+ */
2441
+ "rows": number;
2424
2442
  /**
2425
2443
  * An array of integers containing the path to a selected child.\
2426
2444
  */
@@ -2975,6 +2993,10 @@ export namespace Components {
2975
2993
  }
2976
2994
  interface KupPlannerRenderer {
2977
2995
  "props": PlannerProps;
2996
+ /**
2997
+ * This method is used to trigger a new render of the component.
2998
+ */
2999
+ "refresh": () => Promise<void>;
2978
3000
  }
2979
3001
  interface KupProbe {
2980
3002
  /**
@@ -6103,6 +6125,10 @@ declare namespace LocalJSX {
6103
6125
  * When set to true, extra rows will be automatically loaded once the last row enters the viewport. When groups are present, the number of rows is referred to groups and not to their content. Paginator is disabled.
6104
6126
  */
6105
6127
  "lazyLoadRows"?: boolean;
6128
+ /**
6129
+ * When enabled, the extra whitespaces will be displayed and the font will be set to monospace by default.
6130
+ */
6131
+ "legacyLook"?: boolean;
6106
6132
  /**
6107
6133
  * Defines the placeholder character which will be replaced by a line break inside table header cells, normal or sticky.
6108
6134
  */
@@ -6966,6 +6992,11 @@ declare namespace LocalJSX {
6966
6992
  "sizeY"?: string;
6967
6993
  }
6968
6994
  interface KupImageList {
6995
+ /**
6996
+ * Number of columns to display in the grid layout.
6997
+ * @default 4
6998
+ */
6999
+ "columns"?: number;
6969
7000
  /**
6970
7001
  * Custom style of the component.
6971
7002
  * @default ""
@@ -6976,7 +7007,7 @@ declare namespace LocalJSX {
6976
7007
  * Actual data of the component.
6977
7008
  * @default []
6978
7009
  */
6979
- "data"?: KupDataNode[];
7010
+ "data"?: KupImageListDataNode[];
6980
7011
  "onKup-imagelist-click"?: (event: KupImageListCustomEvent<KupImageListEventPayload>) => void;
6981
7012
  "onKup-imagelist-contextmenu"?: (event: KupImageListCustomEvent<KupImageListEventPayload>) => void;
6982
7013
  "onKup-imagelist-dblclick"?: (event: KupImageListCustomEvent<KupImageListEventPayload>) => void;
@@ -6985,6 +7016,11 @@ declare namespace LocalJSX {
6985
7016
  * @default true
6986
7017
  */
6987
7018
  "ripple"?: boolean;
7019
+ /**
7020
+ * Number of rows to display in the grid layout.
7021
+ * @default null
7022
+ */
7023
+ "rows"?: number;
6988
7024
  /**
6989
7025
  * An array of integers containing the path to a selected child.\
6990
7026
  */
@@ -1,10 +1,9 @@
1
- import type { KupBadge } from '../../components/kup-badge/kup-badge';
2
- import { FComponent } from '../../types/GenericTypes';
1
+ import { FComponent, GenericObject } from '../../types/GenericTypes';
3
2
  /**
4
3
  * Props of the f-image component.
5
4
  */
6
5
  export interface FImageProps extends FComponent {
7
- badgeData?: KupBadge[];
6
+ badgeData?: GenericObject[];
8
7
  color?: string;
9
8
  data?: FImageData[];
10
9
  fit?: boolean;
@@ -19,7 +18,7 @@ export interface FImageProps extends FComponent {
19
18
  * @property {string} shape - Defines the type of the step.
20
19
  * @property {string} color - Background color of the step.
21
20
  * @property {string} height - Height of the step.
22
- * @property {boolean} width - Width of the step
21
+ * @property {string} width - Width of the step
23
22
  */
24
23
  export interface FImageData {
25
24
  shape?: FImageShape;
@@ -214,7 +214,7 @@ export declare class KupDates {
214
214
  * Parses a Date string to JS Date Object
215
215
  *
216
216
  * @param {string} ymd - The string to be converted to Date.
217
- */
217
+ */
218
218
  parseToDayStart: (ymd: string) => Date;
219
219
  parseToDayEnd: (endDate: string) => Date;
220
220
  /**
@@ -223,7 +223,7 @@ export declare class KupDates {
223
223
  * @param {string} startDate - The start date string.
224
224
  * @param {string} endDate - The end date string.
225
225
  * @param {string} _name
226
- */
226
+ */
227
227
  validDates: (startDate: string, endDate: string, _name: string) => {
228
228
  start: Date;
229
229
  end: Date;
@@ -48,6 +48,11 @@ export declare class KupInteract {
48
48
  * @see https://interactjs.io/docs/action-options/ For more options
49
49
  */
50
50
  dropzone(el: HTMLElement, options?: DropzoneOptions, eventData?: KupDropEventData, callbacks?: KupDropCallbacks): void;
51
+ /**
52
+ * Tests whether the current device is mobile or not.
53
+ * @returns {boolean} Returns true when it's a mobile device
54
+ */
55
+ isMobileDevice(): boolean;
51
56
  /**
52
57
  * Sets up a new resizable element.
53
58
  * @param {HTMLElement} el - The resizable element.
@@ -1,4 +1,11 @@
1
+ import { KupDataDataset } from '../kup-data/kup-data-declarations';
2
+ export interface KupOpenAIParameters {
3
+ context?: string;
4
+ dataset?: KupDataDataset;
5
+ onFunClick?: (fun: string) => void;
6
+ }
1
7
  export interface KupOpenAISessionInfo {
8
+ context: string;
2
9
  fileId: string;
3
10
  threadId: string;
4
11
  }
@@ -1,29 +1,25 @@
1
1
  import { KupDataTableDataset, KupTextFieldCustomEvent, KupTextFieldEventPayload } from '../../components';
2
2
  import { KupCardBuiltInOpenAIOptions } from '../../components/kup-card/kup-card-declarations';
3
- import { KupOpenAISessionInfo } from './kup-openai-declarations';
3
+ import { KupOpenAIParameters, KupOpenAISessionInfo } from './kup-openai-declarations';
4
4
  export declare class KupOpenAI {
5
5
  #private;
6
6
  card: HTMLKupCardElement;
7
7
  container: HTMLElement;
8
+ context: string;
8
9
  data: KupDataTableDataset;
9
10
  dialog: HTMLKupDialogElement;
10
11
  sessionInfo: KupOpenAISessionInfo;
11
12
  url: string;
13
+ onFunClick?: (fun: string) => void;
12
14
  /**
13
15
  * Initializes KupOpenAI.
14
16
  */
15
17
  constructor(url: string);
18
+ getFunFromText: (text: string) => RegExpMatchArray[];
19
+ setError(message: string, _this?: KupOpenAI, dontRefreshCard?: boolean): void;
16
20
  getCardOptions(): KupCardBuiltInOpenAIOptions;
17
- /**
18
- * Shows the component
19
- * @param data
20
- * @param options
21
- */
22
- show(data: KupDataTableDataset): void;
23
- /**
24
- * Hides the component.
25
- */
26
- hide(): void;
21
+ show(parameters: KupOpenAIParameters): Promise<void>;
22
+ hide(): Promise<void>;
27
23
  auth(event: KupTextFieldCustomEvent<KupTextFieldEventPayload>): Promise<void>;
28
- chat(disableInteractivity: any, inputArea: HTMLKupTextFieldElement): Promise<void>;
24
+ chat(disableInteractivity: (status: boolean) => void, inputArea: HTMLKupTextFieldElement): Promise<void>;
29
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sme.up/ketchup",
3
- "version": "9.6.1",
3
+ "version": "9.6.3",
4
4
  "keywords": [
5
5
  "smeup",
6
6
  "KetchUP",
@@ -1 +0,0 @@
1
- import{r as t,c as o,f as i,h as e,H as s,d as r}from"./p-1ad7fea0.js";import{k as n,x as a,g as h,s as l,$ as c,u as p,l as b,a as d,d as u,M as x,Q as f,ak as g,U as w,D as m}from"./p-610a03d4.js";import{f as k,p as v,s as y,d as _,r as j,b as C}from"./p-dba484b8.js";import{F as P}from"./p-102866cd.js";import{a as M}from"./p-7bda0684.js";import{c as A}from"./p-635bb4b3.js";import{F as R}from"./p-a9b06bb8.js";import{F as I}from"./p-b3577066.js";import"./p-de07d17e.js";import"./p-e43d4ccc.js";import"./p-c634eb82.js";import"./p-dc18691c.js";import"./p-ccc637ee.js";import"./p-d4a879fc.js";var z,E;!function(t){t.cardData="Data of the card linked to the box when the latter's layout must be a premade template.",t.columns="Number of columns.",t.customStyle="Custom style of the component.",t.data="Actual data of the box.",t.dragEnabled="Enable dragging.",t.dropEnabled="Enable dropping.",t.dropOnSection="Drop can be done in section.",t.enableRowActions="If enabled, a button to load / display the row actions will be displayed on the right of every box.",t.globalFilter="When set to true it activates the global filter.",t.globalFilterValue="The value of the global filter.",t.kanban="Displays the boxlist as a Kanban.",t.layout="How the field will be displayed. If not present, a default one will be created.",t.lazyLoadRows="When set to true, extra rows will be automatically loaded once the last row enters the viewport.",t.loadMoreLimit="Sets a maximum limit of new records which can be required by the load more functionality.",t.loadMoreMode="Establish the modality of how many new records will be downloaded. This property is regulated also by loadMoreStep.",t.loadMoreStep="The number of records which will be requested to be downloaded when clicking on the load more button. This property is regulated also by loadMoreMode.",t.multiSelection="Enable multi selection.",t.pageSelected="Current page number.",t.pagination="Enables pagination.",t.rowsPerPage="Number of current rows per page.",t.scrollOnHover="Activates the scroll on hover function.",t.selectBox="Automatically selects the box at the specified index.",t.selectedRowsState="Multiple selection.",t.showLoadMore="If set to true, displays the button to load more records.",t.showSelection="If enabled, highlights the selected box/boxes.",t.sortBy="If sorting is enabled, specifies which column to sort.",t.sortEnabled="Enable sorting.",t.stateId="",t.store="",t.swipeDisabled="Disable swipe."}(z||(z={})),function(t){t.CONSTANT="constant",t.CONSTANT_INCREMENT="constant_increment",t.PROGRESSIVE_THRESHOLD="progressive_threshold"}(E||(E={}));class S{constructor(){this.globalFilterValue="",this.sortBy="",this.selectedRowsState="",this.pageSelected=1,this.rowsPerPage=0,this.load=!1,this.loadMoreLimit=1e3,this.showLoadMore=!1}toDebugString(){return"box state"}}var O,D,B,T,W,$,L,F,H,N=function(t,o,i,e){if("a"===i&&!e)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof o?t!==o||!e:!o.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?e:"a"===i?e.call(t):e?e.value:o.get(t)},G=function(t,o,i,e,s){if("m"===e)throw new TypeError("Private method is not writable");if("a"===e&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof o?t!==o||!s:!o.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===e?s.call(t,i):s?s.value=i:o.set(t,i),i};const V=class{constructor(i){t(this,i),this.kupBoxClick=o(this,"kup-box-click",6),this.kupBoxSelected=o(this,"kup-box-selected",6),this.kupAutoBoxSelect=o(this,"kup-box-autoselect",6),this.kupRowActionMenuClick=o(this,"kup-box-rowactionmenuclick",6),this.kupRowActionClick=o(this,"kup-box-rowactionclick",6),this.kupDidLoad=o(this,"kup-box-didload",6),this.kupDidUnload=o(this,"kup-box-didunload",6),this.kupBoxContextMenu=o(this,"kup-box-contextmenu",6),this.kupLoadMoreClick=o(this,"kup-box-loadmoreclick",6),O.add(this),this.state=new S,this.kupManager=n(),this.visibleColumns=[],this.rows=[],this.filteredRows=[],this.sectionRef=null,this.rowsRefs=[],this.hold=!1,this.interactableDrag=[],this.interactableDrop=[],this.interactableTouch=[],D.set(this,void 0),B.set(this,[]),T.set(this,0),W.set(this,0),$.set(this,0),this.collapsedSection={},this.selectedRows=[],this.rowActionMenuOpened=void 0,this.currentPage=1,this.currentRowsPerPage=10,this.cardData=null,this.columns=1,this.customStyle="",this.data=null,this.dragEnabled=!1,this.dropEnabled=!1,this.dropOnSection=!1,this.editableData=!1,this.enableRowActions=!1,this.globalFilter=!1,this.globalFilterValue="",this.kanban=null,this.layout=void 0,this.lazyLoadRows=!1,this.loadMoreLimit=1e3,this.loadMoreMode=E.PROGRESSIVE_THRESHOLD,this.loadMoreStep=60,this.multiSelection=!1,this.pageSelected=1,this.pagination=!1,this.rowsPerPage=void 0,this.scrollOnHover=!1,this.selectBox=void 0,this.selectedRowsState=void 0,this.showLoadMore=!1,this.showSelection=!0,this.sortBy=void 0,this.sortEnabled=!1,this.stateId="",this.store=void 0,this.swipeDisabled=!1}initWithPersistedState(){if(this.store&&this.stateId){const t=this.store.getState(this.stateId);null!=t&&(this.kupManager.debug.logMessage(this,"Initialize with state for stateId "+this.stateId+": "+t),this.sortBy=this.state.sortBy,this.globalFilterValue=this.state.globalFilterValue,this.selectedRowsState=this.state.selectedRowsState,this.pageSelected=this.state.pageSelected,this.rowsPerPage=this.state.rowsPerPage,this.loadMoreLimit=t.loadMoreLimit,this.showLoadMore=t.showLoadMore)}}persistState(){if(this.store&&this.stateId){let t=!1;this.kupManager.objects.deepEqual(this.state.sortBy,this.sortBy)||(this.state.sortBy=this.sortBy,t=!0),this.kupManager.objects.deepEqual(this.state.globalFilterValue,this.globalFilterValue)||(this.state.globalFilterValue=this.globalFilterValue,t=!0),this.kupManager.objects.deepEqual(this.state.pageSelected,this.currentPage)||(this.state.pageSelected=this.currentPage,t=!0),this.kupManager.objects.deepEqual(this.state.rowsPerPage,this.currentRowsPerPage)||(this.state.rowsPerPage=this.currentRowsPerPage,t=!0);const o=this.selectedRows.reduce(((t,o,i)=>t+(i>0?";":"")+o.id),"");if(this.kupManager.objects.deepEqual(this.state.selectedRowsState,o)||(this.state.selectedRowsState=o,t=!0),this.kupManager.objects.deepEqual(this.state.loadMoreLimit,this.loadMoreLimit)||(this.state.loadMoreLimit=this.loadMoreLimit,t=!0),this.kupManager.objects.deepEqual(this.state.showLoadMore,this.showLoadMore)||(this.state.showLoadMore=this.showLoadMore,t=!0),!this.state.load)return void(this.state.load=!0);t&&(this.kupManager.debug.logMessage(this,"Persisting state for stateId "+this.stateId+": "+this.state),this.store.persistState(this.stateId,this.state))}}rowsPerPageHandler(t){this.currentRowsPerPage=t}recalculateRows(){this.initRows()}onDataChanged(){a(this.getRows()),this.initVisibleColumns(),this.initRows(),this.checkLayout()}onLayoutChanged(){this.checkLayout()}onSelectBoxChanged(){this.handleAutomaticBoxSelection()}async getProps(t){return h(this,z,t)}async loadRowActions(t,o){t.actions=o,this.rowActionMenuOpened=t}async refresh(){i(this)}async setProps(t){l(this,z,t)}getColumns(){return this.data&&this.data.columns?this.data.columns:[{title:"",name:"",size:void 0}]}initVisibleColumns(){this.visibleColumns=this.getColumns().filter((t=>!t.hasOwnProperty("visible")||t.visible))}getRows(){return this.data&&this.data.rows?this.data.rows:[]}initRows(){this.filteredRows=this.getRows(),this.globalFilter&&this.globalFilterValue&&(this.filteredRows=k(this.filteredRows,null,this.globalFilterValue,this.visibleColumns)),this.rows=this.sortRows(this.filteredRows),this.pagination&&(this.rows=v(this.rows,this.currentPage,this.currentRowsPerPage,!1))}sortRows(t){let o=t;return this.sortBy&&(o=y(o,this.toSortObjectList())),o}toSortObjectList(){return this.sortBy.split("|").map((t=>{const o=t.split(",");return{column:o[0],sortMode:o.length>1?c[o[1]]:c.A}}))}checkScrollOnHover(){this.kupManager.scrollOnHover.isRegistered(this.boxContainer)?this.scrollOnHover||this.kupManager.scrollOnHover.unregister(this.boxContainer):this.scrollOnHover&&this.kupManager.scrollOnHover.register(this.boxContainer)}checkLayout(){if(this.layout)return void(this.boxLayout=this.layout);const t={horizontal:!1,sections:[]},o=this.visibleColumns;let i=o.length,e=[],s=0;for(;i-- >0;)e.push({column:o[s++].name});t.content=e,this.boxLayout={sections:[t]}}onSortChange(t){let o=p(this.visibleColumns,t.detail.value);this.sortBy=o.name}onGlobalFilterChange({detail:t}){let o="";t&&t.value&&(o=t.value),this.globalFilterValue=o}isSectionExpanded(t,o){return!(!t.id||!o.id)&&this.collapsedSection[o.id]&&this.collapsedSection[o.id][t.id]}handleAutomaticBoxSelection(){if(this.selectBox&&this.selectBox>0&&this.selectBox<=this.data.rows.length){this.selectedRows=[];for(let t of this.data.rows)if(t.id===(this.selectBox-1).toString()){this.selectedRows.push(t);break}this.kupAutoBoxSelect.emit({comp:this,id:this.rootElement.id,row:this.selectedRows[0]})}}getEventDetails(t,o){let i=null,e=null,s=null,r=null;if(t&&(i=t.closest(".box-object")||t.querySelector(".box-object")||t.closest(".f-cell")),i)if(i.classList.contains("f-cell")){const t=i["kup-get-cell-props"]();e=t.cell,r=t.column,s=t.row}else e=i["data-cell"],s=i["data-row"],r=p(this.visibleColumns,i.dataset.column);return{boxObject:i||null,column:r||null,cell:e||null,originalEvent:o,row:s||null}}contextMenuHandler(t){return this.getEventDetails(t.target,t)}checkIfElementIsActionMenuIcon(t){return!(!t.tagName||!t.parentElement)&&"svg"===t.tagName&&t.parentElement.classList.contains("row-actions-toggler")}onBoxClick({target:t},o){if(!(t instanceof HTMLElement))return;let i=t,e=i.classList;for(;!e.contains("box-object")&&!e.contains("box-section")&&!e.contains("box")&&(i=i.parentElement,null!==i);)e=i.classList;let s=null;e.contains("box-object")&&(s=i.dataset.column),this.kupBoxClick.emit({comp:this,id:this.rootElement.id,row:o,column:s}),this.multiSelection?this.onSelectionCheckChange(o):this.selectedRows=[o]}onSelectionCheckChange(t){var o=-1;for(let i=0;i<this.selectedRows.length;i++)if(this.selectedRows[i].id===t.id){o=i;break}o>=0?(this.selectedRows.splice(o,1),this.selectedRows=[...this.selectedRows]):this.selectedRows=[...this.selectedRows,t],this.kupBoxSelected.emit({comp:this,id:this.rootElement.id,rows:this.selectedRows})}toggleSectionExpand(t,o){if(o.id)if(t.id){if(this.collapsedSection[o.id]){const i=this.collapsedSection[o.id];i[t.id]=!i[t.id]||!i[t.id]}else this.collapsedSection[o.id]={},this.collapsedSection[o.id][t.id]=!0;this.collapsedSection=Object.assign({},this.collapsedSection)}else console.error("cannot expand / collapse a section of a row without ad id");else console.error("cannot expand / collapse a section withoun an ID")}onRowAction(t){t&&(t!==this.rowActionMenuOpened?t.actions?this.rowActionMenuOpened=t:this.kupRowActionMenuClick.emit({comp:this,id:this.rootElement.id,row:t}):this.rowActionMenuOpened=null)}onRowActionClick(t,o,i){this.kupRowActionClick.emit({comp:this,id:this.rootElement.id,row:t,action:o,index:i})}clickFunction(t){try{const o=t.composedPath();for(let t of o)if(this.checkIfElementIsActionMenuIcon(t))return}catch(o){if(this.checkIfElementIsActionMenuIcon(t.target))return}this.rowActionMenuOpened=null}handlePageChange(t){const o=_(t,this.filteredRows.length,this.currentRowsPerPage);o&&(this.currentPage=o)}handleRowsPerPageChange(t){const o=j(t,this.filteredRows.length);o&&(this.currentRowsPerPage=o,this.adjustPaginator())}adjustPaginator(){const t=Math.ceil(this.rows.length/this.currentRowsPerPage);this.currentPage>t&&(this.currentPage=1)}renderSectionAsCard(t){let o=!1;const i={button:[],cell:[],columns:[],image:[],progressbar:[],text:[]};for(let o=0;o<this.data.columns.length;o++){const e=this.data.columns[o];!1!==e.visible&&(i.cell.push(t.cells[e.name]),i.columns.push(e))}for(const o in t.cells)if(t.cells.hasOwnProperty(o)){const e=t.cells[o];if(void 0!==e.cardID&&e.obj)switch(e.obj.p){case"BTN":do{i.button.push({})}while(i.button.length<e.cardID);i.button[e.cardID]={label:e.value};break;case"IMG":do{i.image.push({})}while(i.image.length<e.cardID);i.image[e.cardID]={resource:e.value};break;case"PGB":do{i.progressbar.push({})}while(i.progressbar.length<e.cardID);i.progressbar[e.cardID]={value:e.value};break;default:do{i.text.push("")}while(i.text.length<e.cardID);i.text[e.cardID]=e.value}}for(const e in t.cells)if(t.cells.hasOwnProperty(e)){const s=t.cells[e];if(void 0===s.cardID&&s.obj)switch(o=!1,s.obj.p){case"BTN":for(let t=0;t<i.button.length;t++)if(!Object.keys(i.button[t]).length){i.button[t]={label:s.value},o=!0;break}o||i.button.push({label:s.value});break;case"IMG":for(let t=0;t<i.image.length;t++)if(!Object.keys(i.image[t]).length){i.image[t]={resource:s.value},o=!0;break}o||i.image.push({resource:s.value});break;case"PGB":for(let t=0;t<i.progressbar.length;t++)if(!Object.keys(i.progressbar[t]).length){i.progressbar[t]={value:s.value},o=!0;break}o||i.progressbar.push({value:s.value});break;default:for(let t=0;t<i.text.length;t++)if(""===i.text[t]){i.text[t]=s.value,o=!0;break}o||i.text.push(s.value)}}return e("kup-card",Object.assign({data:i},this.cardData))}renderRow(t){const o=[...this.visibleColumns];let i=null,s=t.layout;s||(s=this.boxLayout);let r=!1;if(s){s.horizontal&&(r=!0);const e=s.sections;let n=e.length,a=0;n>0&&(i=[]);const h={horizontal:r};for(;n-- >0;)i.push(null!=this.cardData&&"object"==typeof this.cardData?this.renderSectionAsCard(t):this.renderSection(e[a++],h,t,o))}var n=!1;for(let o of this.selectedRows)o.id===t.id&&(n=!0);let a=null;this.multiSelection&&(a=e("div",{class:"box-selection"},e("kup-checkbox",{checked:n})));let h=null;if(this.enableRowActions&&!this.swipeDisabled){const o={"row-action-menu":!0,open:t===this.rowActionMenuOpened};let i=null;if(t.actions){const o=t.actions.map(((o,i)=>e("li",{tabindex:"0",onClick:()=>this.onRowActionClick(t,o,i)},e("div",{class:`icon ${o.icon}`}),e("div",{class:"text"},o.text))));i=e("ul",null,o)}h=e("div",{class:"row-actions-wrapper"},e("div",{class:"row-actions-toggler"},e("svg",{version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24",onClick:()=>this.onRowAction(t)},e("path",{d:"M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z"})),e("div",{class:o},i)))}let l=null;return t.badgeData&&t.badgeData.length>0&&(l=t.badgeData.map((t=>e("kup-badge",{text:t.text,class:t.className?`centered ${t.className}`:"centered",imageData:t.imageData})))),e("div",{class:"box-wrapper",style:t.style||{},ref:t=>N(this,B,"f").push(t)},e("div",{class:{box:!0,draggable:this.dragEnabled,selected:this.showSelection&&n,column:!r},onClick:o=>this.onBoxClick(o,t),ref:t=>this.rowsRefs.push(t)},a,i,l),h)}renderSection(t,o,i,s){let r=null;if(t.sections&&t.sections.length>0){const o=t.sections;let e=o.length,n=0;for(e>0&&(r=[]);e-- >0;)r.push(this.renderSection(o[n++],t,i,s))}else if(t.content){const o=t.content;let e=o.length,n=0;for(e>0&&(r=[]);e-- >0;)r.push(this.renderBoxObject({boxObject:o[n++],row:i,visibleColumns:s},!0))}else s.length>0&&(r=this.renderBoxObject({boxObject:{column:s[0].name},row:i,visibleColumns:s}));const n=this.isSectionExpanded(i,t),a=!!t.columns,h={"box-section":!0,open:n,column:!a&&!t.horizontal,grid:a,titled:!!t.title,"last-child":!t.sections||0===t.sections.length},l=t.style||{};t.dim&&o&&(l.flex=`0 0 ${t.dim}`,l.overflow="hidden",o.horizontal?l.maxWidth=t.dim:l.maxHeight=t.dim),a&&(l["grid-template-columns"]=`repeat(${t.columns}, 1fr)`);let c=null;if(t.collapsible){h["collapse-section"]=!0;const o={content:!0};let s="";s=t.title?t.title:this.kupManager.language.translate(n?b.COLLAPSE:b.EXPAND),c=e("div",{class:h,style:l},e("div",{class:o},r),e("div",{class:"header",role:"button",onClick:o=>{o.stopPropagation(),this.toggleSectionExpand(i,t)}},e("div",{class:"header-content"},e("span",null,s),e(P,{resource:`${d.DROPDOWN}`,sizeX:"1.25em",sizeY:"1.25em",wrapperClass:n?"toggled":""}))))}else{const o=t.title?e("h3",null,t.title):null;c=e("div",{class:h,style:l},o,r)}return c}renderBoxObject({boxObject:t,row:o,visibleColumns:i},s){const r={"box-object":!0};let n=null,a=-1;for(let o=0;o<i.length;o++)if(i[o].name===t.column){a=o;break}a>=0?(n=i[a],i.splice(a,1)):s&&(n=this.data.columns.find((o=>o.name===t.column)));const h=o.cells[t.column];let l;return h&&!this.kupManager.objects.isEmptyKupObj(h.obj)&&(r["is-obj"]=!0,this.kupManager.debug.isDebug()&&(l=h.obj.t+"; "+h.obj.p+"; "+h.obj.k+";")),e("div",{"data-cell":h,"data-row":o,"data-column":t.column,class:r,style:{},title:l},h&&n?e(R,Object.assign({},{cell:h,column:n,component:this,editable:this.editableData,renderKup:!0,row:o,setSizes:!0,shape:t.shape})):e("span",null,t.value))}kanbanMode(){if(!this.kanban.columns||0===this.kanban.columns.length)return this.kupManager.debug.logMessage(this,"No columns to group by detected.",u.ERROR),{jsx:e("div",{id:"empty-data-message",class:"box-wrapper"},e("div",{ref:t=>this.rowsRefs.push(t)}),this.kupManager.language.translate(b.EMPTY_DATA)),style:{"grid-template-columns":"repeat(1, 1fr)"}};const t=[];if(this.kanban.labels)for(let o=0;o<this.kanban.labels.length;o++)t.push({labels:this.kanban.labels[o],nodes:[]});for(let o=0;o<this.rows.length;o++){let i=[];for(let t=0;t<this.kanban.columns.length;t++)try{i.push(this.rows[o].cells[this.kanban.columns[t]].value)}catch(t){this.kupManager.debug.logMessage(this,t,u.WARNING)}const e={found:!1,index:null};for(let o=0;o<t.length;o++){let s=t[o].labels,r=!0;for(let t=0;t<s.length;t++)if(i[t]!==s[t]){r=!1;break}if(r){e.found=!0,e.index=o;break}}e.found?t[e.index].nodes.push(this.renderRow(this.rows[o])):t.push({labels:i,nodes:[this.renderRow(this.rows[o])]})}const o=[];for(let i=0;i<t.length;i++){const s=t[i].labels,r={data:[]};for(let t=0;t<s.length;t++)r.data.push({value:s[t],id:s[t]});o.push(e("div",{class:"kanban-section"},e(M,Object.assign({},r)),t[i].nodes))}return{jsx:o,style:{"grid-template-columns":this.kanban.isStacked?"repeat(1fr)":this.kanban.size?`repeat(${Object.keys(t).length}, ${this.kanban.size})`:`repeat(${Object.keys(t).length}, 1fr)`}}}didLoadInteractables(){this.interactableTouch.push(this.boxContainer),this.kupManager.interact.on(this.boxContainer,x.TAP,(t=>{this.hold?this.hold=!1:2===t.button&&this.kupBoxContextMenu.emit({comp:this,id:this.rootElement.id,details:this.contextMenuHandler(t)})})),this.kupManager.interact.on(this.boxContainer,x.HOLD,(t=>{"pen"!==t.pointerType&&"touch"!==t.pointerType||(this.hold=!0,this.kupBoxContextMenu.emit({comp:this,id:this.rootElement.id,details:this.contextMenuHandler(t)}))}))}didRenderInteractables(){if(this.dragEnabled)for(let t=0;t<this.rowsRefs.length;t++){const o=this.rowsRefs[t],i=()=>{const t=this.rootElement.shadowRoot.querySelector(".box-object:hover");return{cell:t["data-cell"],column:p(this.visibleColumns,t.dataset.column),id:this.rootElement.id,multiple:this.multiSelection,row:t["data-row"],selectedRows:this.selectedRows}};o&&!this.interactableDrag.includes(o)&&(this.interactableDrag.push(o),this.kupManager.interact.draggable(o,{allowFrom:".box-object",cursorChecker:()=>null},{callback:i},f.BADGE))}if(this.dropEnabled){const t=()=>{const t=this.getEventDetails(this.rootElement.shadowRoot.querySelector(".box:hover"));return{cell:t.cell,column:t.column,id:this.rootElement.id,row:t.row}};this.interactableDrop.includes(this.sectionRef)||(this.interactableDrop.push(this.sectionRef),this.kupManager.interact.dropzone(this.sectionRef,{accept:`[${g}]`},{dispatcher:this.rootElement,type:w.BOX}));for(let o=0;o<this.rowsRefs.length;o++){const i=this.rowsRefs[o];i&&!this.interactableDrop.includes(i)&&(this.interactableDrop.push(i),this.kupManager.interact.dropzone(i,{accept:`[${g}]`},{callback:t,dispatcher:this.rootElement,type:w.BOX}))}}}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.rowsPerPage&&(this.currentRowsPerPage=this.rowsPerPage),this.data&&this.data.rows&&this.currentRowsPerPage>this.data.rows.length&&(this.currentRowsPerPage=this.data.rows.length),this.kupManager.language.register(this),this.kupManager.theme.register(this),this.onDataChanged(),this.adjustPaginator(),document.querySelector(".header")?G(this,T,document.querySelector(".header").clientHeight,"f"):G(this,T,0,"f"),document.querySelector(".topbar")&&G(this,T,N(this,T,"f")+document.querySelector(".topbar").clientHeight,"f"),N(this,O,"m",F).call(this)}componentDidLoad(){if(this.handleAutomaticBoxSelection(),document.addEventListener("click",this.clickFunction.bind(this)),this.currentPage=this.pageSelected,this.multiSelection&&this.selectedRowsState){this.selectedRows=[];let t=this.selectedRowsState.split(";");this.selectedRows=this.data.rows.filter((o=>t.indexOf(o.id)>=0))}this.didLoadInteractables(),this.kupDidLoad.emit({comp:this,id:this.rootElement.id}),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){const t=this.rootElement.shadowRoot;if(t){const o=t.querySelectorAll(".f-text-field");for(let t=0;t<o.length;t++)I(o[t])}this.checkScrollOnHover(),this.persistState(),this.didRenderInteractables(),N(this,O,"m",L).call(this),this.kupManager.debug.logRender(this,!0)}render(){const t=!("object"!=typeof this.kanban||null===this.kanban);let o=null;if(this.sortEnabled){const t=[{value:"",id:""},...this.visibleColumns.map((t=>({value:t.title,id:t.name,selected:t.name===this.sortBy})))];let i={label:this.kupManager.language.translate(b.SORT_BY),trailingIcon:!0};o=e("div",{id:"sort-panel"},e("kup-combobox",{data:{"kup-text-field":i,"kup-list":{data:t,selectable:!0}},initialValue:this.sortBy,"onkup-combobox-itemclick":t=>this.onSortChange(t)}))}let i=null;this.globalFilter&&(i=e("div",{id:"global-filter"},e("kup-text-field",{fullWidth:!0,label:this.kupManager.language.translate(m.SEARCH),icon:d.SEARCH,initialValue:this.globalFilterValue,"onkup-textfield-input":t=>{window.clearTimeout(this.globalFilterTimeout),this.globalFilterTimeout=window.setTimeout((()=>this.onGlobalFilterChange(t)),600)}})));let r=null;(this.showLoadMore||!this.lazyLoadRows&&this.pagination)&&(r=e(C,{id:"top-paginator",currentPage:this.currentPage,max:this.filteredRows.length,perPage:this.currentRowsPerPage?this.currentRowsPerPage:this.rowsPerPage,onLoadMore:this.showLoadMore?()=>{N(this,O,"m",H).call(this)}:null,onNextPage:()=>this.handlePageChange(this.currentPage+1),onPrevPage:()=>this.handlePageChange(this.currentPage-1),onPageChange:t=>this.handlePageChange(t.detail.value),onRowsChange:t=>this.handleRowsPerPageChange(t.detail.value)}));let n=null,a={};if(0===this.rows.length)n=e("div",{id:"empty-data-message",class:"box-wrapper"},e("div",{class:"box",ref:t=>this.rowsRefs.push(t)},this.kupManager.language.translate(b.EMPTY_DATA))),a={"grid-template-columns":"repeat(1, 1fr)"};else if(t){const t=this.kanbanMode();n=t.jsx,a=t.style}else{a={"grid-template-columns":`repeat(${this.columns}, 1fr)`};const t=this.rows;let o=t.length,i=0;for(n=[];o-- >0;)n.push(this.renderRow(t[i++]))}return e(s,null,e("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),e("div",{id:A},e("div",{class:"box-component",ref:t=>this.sectionRef=t},o,i,r,e("div",{class:t?"is-kanban":"",id:"box-container",style:a,onContextMenu:t=>{t.preventDefault()},ref:t=>this.boxContainer=t},n))))}disconnectedCallback(){this.kupManager.interact.unregister(this.interactableDrag.concat(this.interactableDrop)),this.kupManager.language.unregister(this),this.kupManager.theme.unregister(this),this.scrollOnHover&&this.kupManager.scrollOnHover.unregister(this.boxContainer),document.removeEventListener("click",this.clickFunction.bind(this)),this.kupDidUnload.emit({comp:this,id:this.rootElement.id})}get rootElement(){return r(this)}static get watchers(){return{rowsPerPage:["rowsPerPageHandler","recalculateRows"],globalFilterValue:["recalculateRows"],sortBy:["recalculateRows"],pagination:["recalculateRows"],currentPage:["recalculateRows"],currentRowsPerPage:["recalculateRows"],data:["onDataChanged"],layout:["onLayoutChanged"],selectBox:["onSelectBoxChanged"]}}};D=new WeakMap,B=new WeakMap,T=new WeakMap,W=new WeakMap,$=new WeakMap,O=new WeakSet,L=function(){this.lazyLoadRows&&this.currentRowsPerPage<this.data.rows.length&&N(this,D,"f").observe(N(this,B,"f")[N(this,B,"f").length-1])},F=function(){const t={threshold:0,rootMargin:"-"+N(this,T,"f")+"px 0px 0px 0px"};G(this,D,new IntersectionObserver((t=>{t.forEach((t=>{if(t.isIntersecting){this.kupManager.debug.logMessage(this,"Last row entering the viewport, loading more elements.");const o=this.data.rows.length-this.currentRowsPerPage;this.currentRowsPerPage+=o<this.loadMoreStep?o:this.loadMoreStep,t.target.classList.remove("last-row"),N(this,D,"f").unobserve(t.target)}}))}),t),"f")},H=function(){var t;let o=0;switch(this.loadMoreMode){case E.CONSTANT:o=this.loadMoreStep;break;case E.CONSTANT_INCREMENT:o=this.loadMoreStep*(N(this,W,"f")+1);break;case E.PROGRESSIVE_THRESHOLD:o=Math.max(N(this,$,"f"),this.loadMoreStep)*Math.min(N(this,W,"f")+1,2)}o>this.loadMoreLimit&&(o=this.loadMoreLimit),this.kupLoadMoreClick.emit({comp:this,id:this.rootElement.id,loadItems:o}),G(this,$,o,"f"),G(this,W,(t=N(this,W,"f"),++t),"f")},V.style=":host{--kup_box_background_color:var(\n --kup-box-background-color,\n var(--kup-background-color)\n );--kup_box_color:var(--kup-box-color, var(--kup-text-color));--kup_box_font_family:var(--kup-box-font-family, var(--kup-font-family));--kup_box_font_size:var(--kup-box-font-size, var(--kup-font-size));--kup_box_grid_gap:var(--kup-box-grid-gap, 1em);--kup_box_hover_box_shadow:var(\n --kup-box-hover-box-shadow,\n 0px 0px 7.5px 0px rgba(128, 128, 128, 0.5)\n );--kup_box_primary_color_rgb:var(\n --kup-box-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_box_transition:var(--kup-box-transition, 0.25s);display:block;font-family:var(--kup_box_font_family);font-size:var(--kup_box_font_size)}.box-component{background:var(--kup_box_background_color);transition:border var(--kup_box_transition) ease}.box-component[kup-drag-over]{position:relative;border:3px dashed var(--kup-border-color)}#box-container{display:grid;grid-gap:var(--kup_box_grid_gap);color:var(--kup_box_color);overflow:auto}#box-container.is-kanban .kanban-section{overflow:auto}#box-container.is-kanban .box-wrapper{padding-top:1em}#box-container.is-kanban .box-wrapper .box{overflow:auto}#box-container *:not(.progress-bar-percentage){box-sizing:border-box}#box-container .box-wrapper{display:flex;align-items:center}#box-container .box-wrapper .box{flex-grow:1;cursor:pointer;position:relative;display:flex;transition:background-color var(--kup_box_transition) ease, box-shadow var(--kup_box_transition) ease, border var(--kup_box_transition) ease}#box-container .box-wrapper .box.draggable{touch-action:none;user-select:none}#box-container .box-wrapper .box.column{flex-direction:column}#box-container .box-wrapper .box:hover{box-shadow:var(--kup_box_hover_box_shadow)}#box-container .box-wrapper .box.selected{background-color:rgba(var(--kup_box_primary_color_rgb), 0.175)}#box-container .box-wrapper .box.selected .box-section.titled>h3{background-color:transparent}#box-container .box-wrapper .box[kup-draggable]{opacity:0.5}#box-container .box-wrapper .box[kup-drag-over]{border:3px dashed var(--kup-border-color);position:relative;z-index:2}#box-container .box-wrapper .box .box-section{display:flex;flex-direction:row;flex:1 1 1%;flex-wrap:wrap}#box-container .box-wrapper .box .box-section.column{flex-direction:column;justify-content:center;flex-wrap:unset}#box-container .box-wrapper .box .box-section.column>.box-section{flex:0 0 auto}#box-container .box-wrapper .box .box-section.grid{display:grid}#box-container .box-wrapper .box .box-section .box-object{min-height:16px}#box-container .box-wrapper .box .box-section .box-object img{height:auto}#box-container .box-wrapper .box .box-section.collapse-section .header{border-top:1px solid var(--kup-border-color);color:rgba(var(--kup-text-color-rgb), 0.75);display:flex;justify-content:space-around;width:100%}#box-container .box-wrapper .box .box-section.collapse-section .header .header-content{margin:0.5em;display:flex;align-items:center}#box-container .box-wrapper .box .box-section.collapse-section .header .header-content .f-image{transition:transform 0.15s}#box-container .box-wrapper .box .box-section.collapse-section .header .header-content .f-image.toggled{transform:rotate(-180deg)}#box-container .box-wrapper .box .box-section.collapse-section .header .header-content .kup-icon.kup-dropdown-icon{margin:0;-webkit-mask:var(--kup-dropdown-icon);mask:var(--kup-dropdown-icon)}#box-container .box-wrapper .box .box-section.collapse-section .content{display:none;width:100%}#box-container .box-wrapper .box .box-section.collapse-section.open .content{display:block}#box-container .box-wrapper .box .box-section.titled{border:1px solid var(--kup-border-color);padding-top:5px;position:relative;margin:10px}#box-container .box-wrapper .box .box-section.titled>h3{background:var(--kup-background-color);font-size:calc(var(--kup-font-size) * 1.15);position:absolute;margin:0px;padding:0 8px;top:-11px;left:5px;transition:background-color 0.25s ease}#box-container .box-wrapper .box .box-selection{position:absolute;top:0.5em;right:0.5em;z-index:1}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler{position:relative;width:24px;height:24px;margin-left:3px}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler svg{cursor:pointer;opacity:0;fill:var(--kup-text-color);transition:opacity 500ms ease-out}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu{background:var(--kup-background-color);border:1px solid var(--kup-border-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);position:absolute;top:0;right:24px;display:none;z-index:10}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu ul{list-style-type:none;margin:0;padding:0}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu ul>li{cursor:pointer;white-space:nowrap;padding:0 12px;display:flex;align-items:center;line-height:30px}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu ul>li:not(:last-child){border-bottom:1px solid var(--kup-border-color)}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu.open{display:block}#box-container .box-wrapper:hover .row-actions-wrapper .row-actions-toggler svg{opacity:1}#sort-panel,#global-filter{margin-bottom:1em}:host(.kup-center-aligned) #kup-component .box-section{text-align:center}:host(.kup-center-aligned) #kup-component .box-section .f-cell{justify-content:center;margin:auto;text-align:center}:host(.kup-center-aligned) #kup-component .box-section .f-cell .f-cell__content{justify-content:center;margin:auto;text-align:center}:host(.kup-center-aligned) #kup-component .box-section .f-cell img{margin:auto}:host(.kup-right-aligned) #kup-component .box-section{text-align:right}:host(.kup-right-aligned) #kup-component .box-section .f-cell{justify-content:flex-end;margin-left:auto;margin-right:0;text-align:right}:host(.kup-right-aligned) #kup-component .box-section .f-cell .f-cell__content{justify-content:flex-end;margin-left:auto;margin-right:0;text-align:right}:host(.kup-right-aligned) #kup-component .box-section .f-cell img{margin-left:auto;margin-right:0}:host(.kup-top-aligned) #box-container .box-wrapper .box .box-section .column{justify-content:flex-start}:host(.kup-bottom-aligned) #box-container .box-wrapper .box .box-section .column{justify-content:flex-end}:host(:not(.kup-borderless)) .box{border:1px solid var(--kup-border-color)}:host(.kup-flat-on-hover) #box-container .box-wrapper .box:hover{box-shadow:none}:host(.kup-shaped) .box{border-radius:10px}:host(.kup-round) .box{border-radius:25px}:host(.kup-dashed-sections) .box-section{border:2px dashed var(--kup-text-color)}:host(:not(.kup-paddingless)) #box-container .box{padding:3px}:host(:not(.kup-paddingless)) #box-container .box .box-section .box-object{padding:1px 4px}:host(:not(.kup-paddingless)) #box-container .box .box-section.last-child{margin:3px 4px}:host(.kup-danger){--kup-box-primary-color-rgb:var(--kup-danger-color-rgb)}:host(.kup-info){--kup-box-primary-color-rgb:var(--kup-info-color-rgb)}:host(.kup-secondary){--kup-box-primary-color-rgb:var(--kup-secondary-color-rgb)}:host(.kup-success){--kup-box-primary-color-rgb:var(--kup-success-color-rgb)}:host(.kup-warning){--kup-box-primary-color-rgb:var(--kup-warning-color-rgb)}";export{V as kup_box}