@sme.up/ketchup 11.0.0-SNAPSHOT-20250204102909 → 11.0.0-SNAPSHOT-20250204113836

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 (288) hide show
  1. package/dist/cjs/{f-cell-f0ab65b9.js → f-cell-bc053135.js} +6 -4
  2. package/dist/cjs/{f-chip-35f8c5a9.js → f-chip-a913f6db.js} +1 -1
  3. package/dist/cjs/{f-object-field-5fc4341f.js → f-object-field-eabecff2.js} +2 -2
  4. package/dist/cjs/{f-paginator-utils-0c423047.js → f-paginator-utils-de023500.js} +1 -1
  5. package/dist/cjs/{f-text-field-cb62a970.js → f-text-field-8a765845.js} +1 -1
  6. package/dist/cjs/index-e8aa3c73.js +2 -2
  7. package/dist/cjs/index.cjs.js +1 -1
  8. package/dist/cjs/ketchup.cjs.js +1 -1
  9. package/dist/cjs/kup-accordion.cjs.entry.js +1 -1
  10. package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
  11. package/dist/cjs/{kup-autocomplete_28.cjs.entry.js → kup-autocomplete_29.cjs.entry.js} +1071 -876
  12. package/dist/cjs/kup-box.cjs.entry.js +7 -7
  13. package/dist/cjs/kup-calendar.cjs.entry.js +2 -2
  14. package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
  15. package/dist/cjs/kup-cell.cjs.entry.js +12 -7
  16. package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +7 -7
  17. package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
  18. package/dist/cjs/{kup-data-table-helper-675f75cd.js → kup-data-table-helper-1da4e593.js} +1 -1
  19. package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
  20. package/dist/cjs/kup-echart.cjs.entry.js +1 -1
  21. package/dist/cjs/kup-editor.cjs.entry.js +1 -1
  22. package/dist/cjs/kup-family-tree.cjs.entry.js +1 -1
  23. package/dist/cjs/kup-gantt_10.cjs.entry.js +23 -23
  24. package/dist/cjs/kup-grid.cjs.entry.js +1 -1
  25. package/dist/cjs/kup-htm.cjs.entry.js +2 -2
  26. package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
  27. package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
  28. package/dist/cjs/kup-input-panel.cjs.entry.js +7 -7
  29. package/dist/cjs/kup-lazy.cjs.entry.js +12 -12
  30. package/dist/cjs/kup-magic-box.cjs.entry.js +4 -4
  31. package/dist/cjs/{kup-manager-80148a95.js → kup-manager-3b86b8d0.js} +25 -2
  32. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  33. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  34. package/dist/cjs/kup-object-field.cjs.entry.js +4 -4
  35. package/dist/cjs/kup-pdf.cjs.entry.js +2 -2
  36. package/dist/cjs/kup-planner-renderer.cjs.entry.js +2 -2
  37. package/dist/cjs/kup-planner.cjs.entry.js +3 -3
  38. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  39. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  40. package/dist/cjs/kup-snackbar.cjs.entry.js +2 -2
  41. package/dist/cjs/kup-txt.cjs.entry.js +2 -2
  42. package/dist/cjs/kup-typography-list.cjs.entry.js +2 -2
  43. package/dist/cjs/kup-typography.cjs.entry.js +2 -2
  44. package/dist/cjs/loader.cjs.js +1 -1
  45. package/dist/collection/collection-manifest.json +1 -0
  46. package/dist/collection/components/kup-cell/kup-cell.js +27 -2
  47. package/dist/collection/components/kup-data-table/kup-data-table.js +23 -10
  48. package/dist/collection/components/kup-file-upload/kup-file-upload-declarations.js +5 -0
  49. package/dist/collection/components/kup-file-upload/kup-file-upload.css +203 -0
  50. package/dist/collection/components/kup-file-upload/kup-file-upload.js +423 -0
  51. package/dist/collection/components/kup-form/kup-form.js +2 -2
  52. package/dist/collection/components/kup-htm/kup-htm.js +1 -1
  53. package/dist/collection/components/kup-image-list/kup-image-list.js +3 -3
  54. package/dist/collection/components/kup-input-panel/kup-input-panel.js +2 -2
  55. package/dist/collection/components/kup-lazy/kup-lazy.js +11 -11
  56. package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
  57. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
  58. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +1 -1
  59. package/dist/collection/components/kup-object-field/kup-object-field.js +1 -1
  60. package/dist/collection/components/kup-pdf/kup-pdf.js +1 -1
  61. package/dist/collection/components/kup-planner/kup-planner.js +1 -1
  62. package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
  63. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2 -2
  64. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +2 -2
  65. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +3 -3
  66. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +5 -5
  67. package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +2 -2
  68. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +1 -1
  69. package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +2 -2
  70. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
  71. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
  72. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +1 -1
  73. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
  74. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
  75. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
  76. package/dist/collection/components/kup-probe/kup-probe.js +1 -1
  77. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
  78. package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
  79. package/dist/collection/components/kup-rating/kup-rating.js +1 -1
  80. package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
  81. package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
  82. package/dist/collection/components/kup-switch/kup-switch.js +1 -1
  83. package/dist/collection/components/kup-time-picker/kup-time-picker.js +1 -1
  84. package/dist/collection/components/kup-txt/kup-txt.js +1 -1
  85. package/dist/collection/components/kup-typography/kup-typography.js +1 -1
  86. package/dist/collection/components/kup-typography-list/kup-typography-list.js +1 -1
  87. package/dist/collection/f-components/f-cell/f-cell-declarations.js +3 -0
  88. package/dist/collection/f-components/f-cell/f-cell.js +2 -0
  89. package/dist/collection/managers/kup-data/kup-data.js +2 -0
  90. package/dist/collection/managers/kup-language/kup-language-declarations.js +9 -0
  91. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +2 -0
  92. package/dist/collection/types/GenericTypes.js +1 -0
  93. package/dist/components/index.js +1 -1
  94. package/dist/components/kup-accordion.js +21 -16
  95. package/dist/components/kup-activity-timeline.js +21 -16
  96. package/dist/components/kup-autocomplete.js +1 -1
  97. package/dist/components/kup-badge.js +1 -1
  98. package/dist/components/kup-box.js +1 -1
  99. package/dist/components/kup-button-list.js +1 -1
  100. package/dist/components/kup-button.js +1 -1
  101. package/dist/components/kup-calendar.js +21 -16
  102. package/dist/components/kup-card-list.js +22 -17
  103. package/dist/components/kup-card.js +1 -1
  104. package/dist/components/kup-cell.js +28 -18
  105. package/dist/components/kup-chart.js +1 -1
  106. package/dist/components/kup-checkbox.js +1 -1
  107. package/dist/components/kup-chip.js +1 -1
  108. package/dist/components/kup-color-picker.js +1 -1
  109. package/dist/components/kup-combobox.js +1 -1
  110. package/dist/components/kup-custom-task-list-header.js +1 -1
  111. package/dist/components/kup-dashboard.js +21 -16
  112. package/dist/components/kup-data-table.js +1 -1
  113. package/dist/components/kup-date-picker.js +1 -1
  114. package/dist/components/kup-dialog.js +1 -1
  115. package/dist/components/kup-drawer.js +21 -16
  116. package/dist/components/kup-dropdown-button.js +1 -1
  117. package/dist/components/kup-echart.js +1 -1
  118. package/dist/components/kup-editor.js +1 -1
  119. package/dist/components/kup-family-tree.js +23 -18
  120. package/dist/components/kup-file-upload.d.ts +11 -0
  121. package/dist/components/kup-file-upload.js +6 -0
  122. package/dist/components/kup-form.js +1 -1
  123. package/dist/components/kup-gantt-calendar.js +1 -1
  124. package/dist/components/kup-gantt.js +1 -1
  125. package/dist/components/kup-gauge.js +1 -1
  126. package/dist/components/kup-grid-renderer.js +1 -1
  127. package/dist/components/kup-grid.js +1 -1
  128. package/dist/components/kup-horizontal-scroll.js +1 -1
  129. package/dist/components/kup-htm.js +22 -17
  130. package/dist/components/kup-iframe.js +21 -16
  131. package/dist/components/kup-image-list.js +24 -19
  132. package/dist/components/kup-image.js +1 -1
  133. package/dist/components/kup-input-panel.js +25 -20
  134. package/dist/components/kup-lazy.js +32 -27
  135. package/dist/components/kup-list.js +1 -1
  136. package/dist/components/kup-magic-box.js +28 -23
  137. package/dist/components/kup-nav-bar.js +22 -17
  138. package/dist/components/kup-numeric-picker.js +22 -17
  139. package/dist/components/kup-object-field.js +22 -17
  140. package/dist/components/kup-pdf.js +22 -17
  141. package/dist/components/kup-planner-renderer.js +1 -1
  142. package/dist/components/kup-planner.js +39 -34
  143. package/dist/components/kup-probe.js +22 -17
  144. package/dist/components/kup-progress-bar.js +1 -1
  145. package/dist/components/kup-qlik.js +22 -17
  146. package/dist/components/kup-radio.js +1 -1
  147. package/dist/components/kup-rating.js +1 -1
  148. package/dist/components/kup-snackbar.js +22 -17
  149. package/dist/components/kup-spinner.js +1 -1
  150. package/dist/components/kup-standard-tooltip.js +1 -1
  151. package/dist/components/kup-switch.js +1 -1
  152. package/dist/components/kup-switcher.js +1 -1
  153. package/dist/components/kup-tab-bar.js +1 -1
  154. package/dist/components/kup-task-gantt.js +1 -1
  155. package/dist/components/kup-task-list-header.js +1 -1
  156. package/dist/components/kup-task-list-table.js +1 -1
  157. package/dist/components/kup-task-list.js +1 -1
  158. package/dist/components/kup-text-field.js +1 -1
  159. package/dist/components/kup-time-picker.js +1 -1
  160. package/dist/components/kup-toolbar.js +1 -1
  161. package/dist/components/kup-tooltip.js +1 -1
  162. package/dist/components/kup-tree.js +1 -1
  163. package/dist/components/kup-txt.js +22 -17
  164. package/dist/components/kup-typography-list.js +22 -17
  165. package/dist/components/kup-typography.js +22 -17
  166. package/dist/components/kup-vertical-scroll.js +1 -1
  167. package/dist/components/{p-a37e6312.js → p-00fe03b5.js} +7 -7
  168. package/dist/components/{p-d9d60a18.js → p-010ce0fe.js} +13 -13
  169. package/dist/components/{p-b57801f3.js → p-22538c02.js} +15 -15
  170. package/dist/components/{p-63ddd73a.js → p-2865ea51.js} +4 -4
  171. package/dist/components/{p-fb9ca494.js → p-443b5e15.js} +1 -1
  172. package/dist/components/{p-f3104d30.js → p-5b63178f.js} +21 -16
  173. package/dist/components/{p-74dce0e5.js → p-6924a70f.js} +2 -2
  174. package/dist/components/{p-23d7e632.js → p-7646ccdd.js} +2 -2
  175. package/dist/components/{p-5fa3e60f.js → p-8204c90e.js} +1 -1
  176. package/dist/components/{p-00a46ffd.js → p-8f77f6d8.js} +21 -16
  177. package/dist/components/{p-3aff545d.js → p-98aafbf3.js} +26 -3
  178. package/dist/components/{p-3bde4660.js → p-9e0b916d.js} +1 -1
  179. package/dist/components/{p-d7931d3a.js → p-a0a94cd3.js} +21 -16
  180. package/dist/components/{p-000af163.js → p-c528b477.js} +5 -5
  181. package/dist/components/{p-1f13e420.js → p-cb58e44a.js} +1 -1
  182. package/dist/components/{p-52d321c0.js → p-d339381c.js} +21 -16
  183. package/dist/components/{p-15078d74.js → p-dd07188b.js} +1089 -589
  184. package/dist/components/{p-cd2db6f6.js → p-e4277d58.js} +3 -3
  185. package/dist/components/{p-20771aa1.js → p-ec1762ee.js} +2 -2
  186. package/dist/components/{p-0d3f38e3.js → p-fd8fe6d0.js} +2 -2
  187. package/dist/esm/{f-cell-fa00b8ef.js → f-cell-2b1c1919.js} +6 -4
  188. package/dist/esm/{f-chip-05355daa.js → f-chip-b42af349.js} +1 -1
  189. package/dist/esm/{f-object-field-c9d54642.js → f-object-field-2bfc470c.js} +2 -2
  190. package/dist/esm/{f-paginator-utils-bf93d7d4.js → f-paginator-utils-541bc197.js} +1 -1
  191. package/dist/esm/{f-text-field-b75996bd.js → f-text-field-04f701fb.js} +1 -1
  192. package/dist/esm/index-c9246a86.js +2 -2
  193. package/dist/esm/index.js +1 -1
  194. package/dist/esm/ketchup.js +1 -1
  195. package/dist/esm/kup-accordion.entry.js +1 -1
  196. package/dist/esm/kup-activity-timeline.entry.js +2 -2
  197. package/dist/esm/{kup-autocomplete_28.entry.js → kup-autocomplete_29.entry.js} +1071 -877
  198. package/dist/esm/kup-box.entry.js +7 -7
  199. package/dist/esm/kup-calendar.entry.js +2 -2
  200. package/dist/esm/kup-card-list.entry.js +1 -1
  201. package/dist/esm/kup-cell.entry.js +12 -7
  202. package/dist/esm/kup-custom-task-list-header_4.entry.js +7 -7
  203. package/dist/esm/kup-dashboard.entry.js +2 -2
  204. package/dist/esm/{kup-data-table-helper-e3846302.js → kup-data-table-helper-0dbc3495.js} +1 -1
  205. package/dist/esm/kup-drawer.entry.js +1 -1
  206. package/dist/esm/kup-echart.entry.js +1 -1
  207. package/dist/esm/kup-editor.entry.js +1 -1
  208. package/dist/esm/kup-family-tree.entry.js +1 -1
  209. package/dist/esm/kup-gantt_10.entry.js +23 -23
  210. package/dist/esm/kup-grid.entry.js +1 -1
  211. package/dist/esm/kup-htm.entry.js +2 -2
  212. package/dist/esm/kup-iframe.entry.js +1 -1
  213. package/dist/esm/kup-image-list.entry.js +8 -8
  214. package/dist/esm/kup-input-panel.entry.js +7 -7
  215. package/dist/esm/kup-lazy.entry.js +12 -12
  216. package/dist/esm/kup-magic-box.entry.js +4 -4
  217. package/dist/esm/{kup-manager-2d8f4f18.js → kup-manager-89189705.js} +26 -3
  218. package/dist/esm/kup-nav-bar.entry.js +2 -2
  219. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  220. package/dist/esm/kup-object-field.entry.js +4 -4
  221. package/dist/esm/kup-pdf.entry.js +2 -2
  222. package/dist/esm/kup-planner-renderer.entry.js +2 -2
  223. package/dist/esm/kup-planner.entry.js +3 -3
  224. package/dist/esm/kup-probe.entry.js +2 -2
  225. package/dist/esm/kup-qlik.entry.js +2 -2
  226. package/dist/esm/kup-snackbar.entry.js +2 -2
  227. package/dist/esm/kup-txt.entry.js +2 -2
  228. package/dist/esm/kup-typography-list.entry.js +2 -2
  229. package/dist/esm/kup-typography.entry.js +2 -2
  230. package/dist/esm/loader.js +1 -1
  231. package/dist/ketchup/index.esm.js +1 -1
  232. package/dist/ketchup/ketchup.esm.js +1 -1
  233. package/dist/ketchup/{p-36d3870e.entry.js → p-069fe9e1.entry.js} +1 -1
  234. package/dist/ketchup/p-0dd57f34.js +1 -0
  235. package/dist/ketchup/{p-72e25927.entry.js → p-0e644cb7.entry.js} +1 -1
  236. package/dist/ketchup/{p-6b76cc4c.entry.js → p-0ea4179b.entry.js} +1 -1
  237. package/dist/ketchup/{p-fe9db498.js → p-15491541.js} +1 -1
  238. package/dist/ketchup/{p-04915720.js → p-285c28ae.js} +1 -1
  239. package/dist/ketchup/{p-cbe1e4a5.entry.js → p-2e789d5f.entry.js} +1 -1
  240. package/dist/ketchup/{p-960b5246.entry.js → p-43159582.entry.js} +1 -1
  241. package/dist/ketchup/{p-b0f1b21d.entry.js → p-47545e56.entry.js} +1 -1
  242. package/dist/ketchup/{p-4d899ee9.entry.js → p-4b1eb87d.entry.js} +1 -1
  243. package/dist/ketchup/{p-31304076.entry.js → p-4ceb2da3.entry.js} +1 -1
  244. package/dist/ketchup/{p-b75e663b.entry.js → p-54a54f0d.entry.js} +1 -1
  245. package/dist/ketchup/{p-4da163e9.entry.js → p-595f3fd8.entry.js} +1 -1
  246. package/dist/ketchup/{p-85cbe3fc.entry.js → p-5a015f10.entry.js} +1 -1
  247. package/dist/ketchup/{p-b9dd4ebe.entry.js → p-5a345165.entry.js} +1 -1
  248. package/dist/ketchup/{p-b2cb221e.js → p-5d7a9987.js} +1 -1
  249. package/dist/ketchup/{p-ed90bf43.entry.js → p-6b11fc72.entry.js} +1 -1
  250. package/dist/ketchup/{p-a74fe69d.entry.js → p-6b771a9b.entry.js} +1 -1
  251. package/dist/ketchup/{p-bb757c4b.entry.js → p-7819480d.entry.js} +1 -1
  252. package/dist/ketchup/p-86f75374.entry.js +1 -0
  253. package/dist/ketchup/{p-66ccba95.entry.js → p-8afe1504.entry.js} +1 -1
  254. package/dist/ketchup/{p-ab8b13ac.entry.js → p-8bc2f0b6.entry.js} +1 -1
  255. package/dist/ketchup/p-98797821.entry.js +1 -0
  256. package/dist/ketchup/{p-a7123dc1.entry.js → p-9f51f081.entry.js} +1 -1
  257. package/dist/ketchup/p-a00e1a17.entry.js +9 -0
  258. package/dist/ketchup/{p-b84093fc.entry.js → p-a50b3050.entry.js} +1 -1
  259. package/dist/ketchup/{p-a8a3291d.entry.js → p-af7c5f4d.entry.js} +2 -2
  260. package/dist/ketchup/{p-317b3e3a.entry.js → p-b59ba2e0.entry.js} +1 -1
  261. package/dist/ketchup/{p-1d9a31fc.entry.js → p-c1b293a7.entry.js} +1 -1
  262. package/dist/ketchup/{p-bfe12bd6.entry.js → p-ccb2296a.entry.js} +1 -1
  263. package/dist/ketchup/{p-cb88c213.entry.js → p-d1389486.entry.js} +1 -1
  264. package/dist/ketchup/{p-72c85164.entry.js → p-d47f322d.entry.js} +1 -1
  265. package/dist/ketchup/{p-479ef0dc.entry.js → p-dd65ab87.entry.js} +2 -2
  266. package/dist/ketchup/{p-714609da.entry.js → p-e1683cf1.entry.js} +1 -1
  267. package/dist/ketchup/p-e202be52.js +1 -0
  268. package/dist/ketchup/p-e527cae5.entry.js +1 -0
  269. package/dist/ketchup/{p-bdfde4e7.entry.js → p-f0c7071a.entry.js} +1 -1
  270. package/dist/ketchup/p-f51f2af6.js +21 -0
  271. package/dist/ketchup/{p-162a169f.entry.js → p-f5e50e78.entry.js} +1 -1
  272. package/dist/ketchup/p-fc645b13.js +1 -0
  273. package/dist/types/components/kup-cell/kup-cell.d.ts +3 -0
  274. package/dist/types/components/kup-file-upload/kup-file-upload-declarations.d.ts +8 -0
  275. package/dist/types/components/kup-file-upload/kup-file-upload.d.ts +62 -0
  276. package/dist/types/components.d.ts +85 -0
  277. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +2 -0
  278. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +10 -2
  279. package/dist/types/types/GenericTypes.d.ts +2 -1
  280. package/package.json +1 -1
  281. package/dist/ketchup/p-0f25c7c6.js +0 -21
  282. package/dist/ketchup/p-3d927559.entry.js +0 -1
  283. package/dist/ketchup/p-51d6eb71.js +0 -1
  284. package/dist/ketchup/p-64e7493c.js +0 -1
  285. package/dist/ketchup/p-7fff3f5f.entry.js +0 -1
  286. package/dist/ketchup/p-c7caa9ab.entry.js +0 -1
  287. package/dist/ketchup/p-d27a5f1f.js +0 -1
  288. package/dist/ketchup/p-de8b7f56.entry.js +0 -9
@@ -1 +1 @@
1
- import{r as t,f as i,h as e,H as a,d as o}from"./p-b0368f88.js";import{k as s,g as n,s as l,h as p,e as h,aA as c,V as r,aB as f,Z as u,d}from"./p-0f25c7c6.js";import{a as g}from"./p-e3062c19.js";import{F as m}from"./p-b120abd7.js";import{c as k}from"./p-635bb4b3.js";import"./p-1ee561ba.js";var b,x;!function(t){t.customStyle="Custom style of the component.",t.data="Sets the data that will be used to display different components."}(b||(b={})),function(t){t.BOX="Box",t.BUTTON_LIST="Button List",t.CHART="Chart",t.CHIP="Chip",t.ECHART="Echart",t.DATATABLE="Datatable",t.JSON="JSON",t.TREE="Tree"}(x||(x={}));const y=class{constructor(i){t(this,i),this.dragHandler=null,this.kupManager=s(),this.textArea=null,this.wrapperRef=null,this.display=x.DATATABLE,this.customStyle="",this.data=null}async getProps(t){return n(this,b,t)}async refresh(){i(this)}async setProps(t){l(this,b,t)}comboboxProps(){const t=[];for(const i in x)Object.prototype.hasOwnProperty.call(x,i)&&t.push({id:x[i],selected:!1,value:x[i]});return{data:{"kup-list":{data:t,id:"kup-debug-theme-changer-list"},"kup-text-field":{emitSubmitEventOnEnter:!1,inputType:"text",label:this.kupManager.language.translate(p.VIEW_AS)}},id:"comp-switcher",initialValue:this.display,isSelect:!0,"onKup-combobox-itemclick":t=>{this.display=t.detail.value}}}setContent(){const t=!!(this.data&&this.data.columns&&this.data.columns.length>0),i=[],a={};if(this.display===x.JSON)a.initialValue=this.data?JSON.stringify(this.data,null,2):"",a.textArea=!0,i.push(e("kup-text-field",Object.assign({class:"kup-full-width kup-full-height"},a,{ref:t=>this.textArea=t,"onkup-textfield-input":t=>{try{this.data=JSON.parse(t.detail.value)}catch(t){this.data={columns:[{name:"ERROR",title:"Error"}],rows:[{cells:{ERROR:{value:"Invalid JSON:"+t}}}]}}}})));else if(t)switch(this.display){case x.BOX:a.data=this.data,i.push(e("kup-box",Object.assign({},a)));break;case x.BUTTON_LIST:a.data=this.data,i.push(e("kup-button-list",Object.assign({},a)));break;case x.CHIP:a.data=this.data,i.push(e("kup-chip",Object.assign({},a)));break;case x.CHART:case x.ECHART:a.data=this.data,a.series=[],a.axis=null;for(let t=0;t<this.data.columns.length;t++){const i=this.data.columns[t];i.obj&&this.kupManager.objects.isNumber(i.obj)||null!==a.axis?a.series.push(this.display===x.CHART?{code:i.name,decode:i.title}:i.name):a.axis=i.name}0===a.series.length&&this.kupManager.debug.logMessage(this,"Not enough numerical columns to display a chart!",h.WARNING),a.axis||this.kupManager.debug.logMessage(this,"No axis for the chart!",h.WARNING),i.push(e(this.display===x.CHART?"kup-chart":"kup-echart",Object.assign({},a)));break;case x.DATATABLE:a.data=this.data,a.autoFillMissingCells=!0,i.push(e("kup-data-table",Object.assign({},a)));break;case x.TREE:a.data=this.data,i.push(e("kup-tree",Object.assign({class:"kup-full-width"},a)));break;default:return void this.kupManager.debug.logMessage(this,"Display mode not supported ("+this.display+")!",h.ERROR)}else i.push(e("div",{class:"empty"},e(m,{sizeY:"100px",resource:"move_to_inbox"}),e("div",{class:"empty-text"},this.kupManager.language.translate(p.DROP_YOUR_DATA))));return i}updateData(t){{const i=Object.assign({},this.data),e=t.detail.sourceElement&&t.detail.sourceElement.column?t.detail.sourceElement.column:null,a=t.detail.sourceElement&&t.detail.sourceElement.row?t.detail.sourceElement.row:null;if(e&&e.name?i.columns?this.data.columns.find((t=>t.name===e.name))||i.columns.push(e):i.columns=[e]:this.kupManager.debug.logMessage(this,"Invalid column received.",h.WARNING),a&&(i.rows?i.rows.push(a):i.rows=[a]),this.data=i,this.data&&this.textArea)try{this.textArea.setValue(JSON.stringify(this.data,null,2))}catch(t){this.textArea.setValue("Invalid JSON:"+t)}}}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.language.register(this),this.kupManager.theme.register(this)}componentDidLoad(){this.rootElement.addEventListener(c,(t=>this.updateData(t))),this.dragHandler=this.rootElement.shadowRoot.querySelector("#drag-handle"),this.kupManager.interact.dialogify(this.rootElement,this.dragHandler),this.kupManager.interact.dropzone(this.wrapperRef,{accept:`[${r}],[${f}]`},{dispatcher:this.rootElement,type:u.MAGICBOX}),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){return e(a,{key:"579cf183f0915d864820f3d06bc1576ab11ae1a4"},e("style",{key:"9128110fcaca2c1da80ce29a30b17f26d287ccb3"},this.kupManager.theme.setKupStyle(this.rootElement)),e("div",{key:"a23742c2083fc1ef92fbc370da846dc8b9182116",id:k},e("div",{key:"1c23fa7eb08e82493c2279f975425297dbcc46fd",class:"magic-box-wrapper"},e("div",{key:"3c1f251962659f982d0d68108fdb0476d0fa065a",class:"actions",id:"drag-handle"},e("kup-combobox",Object.assign({key:"30fbff2375c6872fc6ae239a7a215928a4512e3c"},this.comboboxProps())),e("kup-button",{key:"de990f96f370f26bd847d90bb555cd818ce59b4e",styling:g.FLAT,icon:"delete",label:"Reset","onkup-button-click":()=>{this.data=null}}),e("kup-button",{key:"867ec9ed075ae869dc9350e00096036d3af780e6",id:"close-dialog",customStyle:`:host{${d.PRIMARY}: var(${d.TITLE});}`,icon:"clear","onkup-button-click":()=>{this.kupManager.hideMagicBox()}})),e("div",{key:"279780fb00c2ad681ff42f266ad08a25705928fe",class:"content",ref:t=>this.wrapperRef=t},this.setContent()))))}disconnectedCallback(){this.kupManager.interact.unregister([this.rootElement,this.wrapperRef]),this.kupManager.language.unregister(this),this.kupManager.theme.unregister(this)}get rootElement(){return o(this)}};y.style=".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-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{background-color:var(--kup-background-color);color:var(--kup-text-color);display:block;height:300px;min-width:700px;width:700px}#kup-component,.magic-box-wrapper{height:100%;width:100%}.magic-box-wrapper{border:3px dashed var(--kup-border-subtle);box-sizing:border-box;display:flex;flex-direction:column}.actions{align-items:center;background-color:var(--kup-title-background-color);display:inline-flex;height:52px;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:1}.actions kup-button{margin:0.5em}.actions #comp-switcher{margin:auto 0}.actions #close-dialog{position:absolute;margin:0;top:0;right:0;background-color:var(--kup-title-background-color)}.content{box-sizing:border-box;height:100%;margin-top:52px;overflow:auto;transition:background-color 125ms ease}.empty{flex-direction:column;display:flex;text-align:center;justify-content:center;height:100%;width:100%;opacity:0.5;transition:opacity 0.25s ease-out}.empty .f-image{margin:0}.json{font-family:var(--kup-font-family-monospace);margin:0}[kup-drag-over]{background-color:rgba(var(--kup-success-color-rgb), 0.25)}";export{y as kup_magic_box}
1
+ import{r as t,f as i,h as e,H as a,d as o}from"./p-b0368f88.js";import{k as s,g as n,s as l,h as p,e as h,aB as c,V as r,aC as f,Z as u,d}from"./p-f51f2af6.js";import{a as g}from"./p-e3062c19.js";import{F as m}from"./p-b120abd7.js";import{c as b}from"./p-635bb4b3.js";import"./p-1ee561ba.js";var k,x;!function(t){t.customStyle="Custom style of the component.",t.data="Sets the data that will be used to display different components."}(k||(k={})),function(t){t.BOX="Box",t.BUTTON_LIST="Button List",t.CHART="Chart",t.CHIP="Chip",t.ECHART="Echart",t.DATATABLE="Datatable",t.JSON="JSON",t.TREE="Tree"}(x||(x={}));const y=class{constructor(i){t(this,i),this.dragHandler=null,this.kupManager=s(),this.textArea=null,this.wrapperRef=null,this.display=x.DATATABLE,this.customStyle="",this.data=null}async getProps(t){return n(this,k,t)}async refresh(){i(this)}async setProps(t){l(this,k,t)}comboboxProps(){const t=[];for(const i in x)Object.prototype.hasOwnProperty.call(x,i)&&t.push({id:x[i],selected:!1,value:x[i]});return{data:{"kup-list":{data:t,id:"kup-debug-theme-changer-list"},"kup-text-field":{emitSubmitEventOnEnter:!1,inputType:"text",label:this.kupManager.language.translate(p.VIEW_AS)}},id:"comp-switcher",initialValue:this.display,isSelect:!0,"onKup-combobox-itemclick":t=>{this.display=t.detail.value}}}setContent(){const t=!!(this.data&&this.data.columns&&this.data.columns.length>0),i=[],a={};if(this.display===x.JSON)a.initialValue=this.data?JSON.stringify(this.data,null,2):"",a.textArea=!0,i.push(e("kup-text-field",Object.assign({class:"kup-full-width kup-full-height"},a,{ref:t=>this.textArea=t,"onkup-textfield-input":t=>{try{this.data=JSON.parse(t.detail.value)}catch(t){this.data={columns:[{name:"ERROR",title:"Error"}],rows:[{cells:{ERROR:{value:"Invalid JSON:"+t}}}]}}}})));else if(t)switch(this.display){case x.BOX:a.data=this.data,i.push(e("kup-box",Object.assign({},a)));break;case x.BUTTON_LIST:a.data=this.data,i.push(e("kup-button-list",Object.assign({},a)));break;case x.CHIP:a.data=this.data,i.push(e("kup-chip",Object.assign({},a)));break;case x.CHART:case x.ECHART:a.data=this.data,a.series=[],a.axis=null;for(let t=0;t<this.data.columns.length;t++){const i=this.data.columns[t];i.obj&&this.kupManager.objects.isNumber(i.obj)||null!==a.axis?a.series.push(this.display===x.CHART?{code:i.name,decode:i.title}:i.name):a.axis=i.name}0===a.series.length&&this.kupManager.debug.logMessage(this,"Not enough numerical columns to display a chart!",h.WARNING),a.axis||this.kupManager.debug.logMessage(this,"No axis for the chart!",h.WARNING),i.push(e(this.display===x.CHART?"kup-chart":"kup-echart",Object.assign({},a)));break;case x.DATATABLE:a.data=this.data,a.autoFillMissingCells=!0,i.push(e("kup-data-table",Object.assign({},a)));break;case x.TREE:a.data=this.data,i.push(e("kup-tree",Object.assign({class:"kup-full-width"},a)));break;default:return void this.kupManager.debug.logMessage(this,"Display mode not supported ("+this.display+")!",h.ERROR)}else i.push(e("div",{class:"empty"},e(m,{sizeY:"100px",resource:"move_to_inbox"}),e("div",{class:"empty-text"},this.kupManager.language.translate(p.DROP_YOUR_DATA))));return i}updateData(t){{const i=Object.assign({},this.data),e=t.detail.sourceElement&&t.detail.sourceElement.column?t.detail.sourceElement.column:null,a=t.detail.sourceElement&&t.detail.sourceElement.row?t.detail.sourceElement.row:null;if(e&&e.name?i.columns?this.data.columns.find((t=>t.name===e.name))||i.columns.push(e):i.columns=[e]:this.kupManager.debug.logMessage(this,"Invalid column received.",h.WARNING),a&&(i.rows?i.rows.push(a):i.rows=[a]),this.data=i,this.data&&this.textArea)try{this.textArea.setValue(JSON.stringify(this.data,null,2))}catch(t){this.textArea.setValue("Invalid JSON:"+t)}}}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.language.register(this),this.kupManager.theme.register(this)}componentDidLoad(){this.rootElement.addEventListener(c,(t=>this.updateData(t))),this.dragHandler=this.rootElement.shadowRoot.querySelector("#drag-handle"),this.kupManager.interact.dialogify(this.rootElement,this.dragHandler),this.kupManager.interact.dropzone(this.wrapperRef,{accept:`[${r}],[${f}]`},{dispatcher:this.rootElement,type:u.MAGICBOX}),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){return e(a,{key:"965bc0e815b0a0054521248bd377cb16856fc415"},e("style",{key:"66c60a18972e45960bd47a7ab2d491c39809b485"},this.kupManager.theme.setKupStyle(this.rootElement)),e("div",{key:"4dfcddb31127f78e68b1e37dc35c82a2734ba350",id:b},e("div",{key:"571076a5c66c80d91c4c43160f8d2ca1ac29c54c",class:"magic-box-wrapper"},e("div",{key:"92f135694c618cddc6325e8b1ed39270027aae06",class:"actions",id:"drag-handle"},e("kup-combobox",Object.assign({key:"4fabc4f0737bf3d0548793194834d8bd9785557e"},this.comboboxProps())),e("kup-button",{key:"2b1ae00bc73ce74d2d4ad850d458782ea788d94b",styling:g.FLAT,icon:"delete",label:"Reset","onkup-button-click":()=>{this.data=null}}),e("kup-button",{key:"000ddc9301085892b967678b42a1a8154a7679d1",id:"close-dialog",customStyle:`:host{${d.PRIMARY}: var(${d.TITLE});}`,icon:"clear","onkup-button-click":()=>{this.kupManager.hideMagicBox()}})),e("div",{key:"74bd8964eca9d638a197ed748d51d746f250afe5",class:"content",ref:t=>this.wrapperRef=t},this.setContent()))))}disconnectedCallback(){this.kupManager.interact.unregister([this.rootElement,this.wrapperRef]),this.kupManager.language.unregister(this),this.kupManager.theme.unregister(this)}get rootElement(){return o(this)}};y.style=".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-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{background-color:var(--kup-background-color);color:var(--kup-text-color);display:block;height:300px;min-width:700px;width:700px}#kup-component,.magic-box-wrapper{height:100%;width:100%}.magic-box-wrapper{border:3px dashed var(--kup-border-subtle);box-sizing:border-box;display:flex;flex-direction:column}.actions{align-items:center;background-color:var(--kup-title-background-color);display:inline-flex;height:52px;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:1}.actions kup-button{margin:0.5em}.actions #comp-switcher{margin:auto 0}.actions #close-dialog{position:absolute;margin:0;top:0;right:0;background-color:var(--kup-title-background-color)}.content{box-sizing:border-box;height:100%;margin-top:52px;overflow:auto;transition:background-color 125ms ease}.empty{flex-direction:column;display:flex;text-align:center;justify-content:center;height:100%;width:100%;opacity:0.5;transition:opacity 0.25s ease-out}.empty .f-image{margin:0}.json{font-family:var(--kup-font-family-monospace);margin:0}[kup-drag-over]{background-color:rgba(var(--kup-success-color-rgb), 0.25)}";export{y as kup_magic_box}
@@ -0,0 +1 @@
1
+ import{h as i}from"./p-b0368f88.js";import{F as c}from"./p-b120abd7.js";import{b as e,h as s}from"./p-f51f2af6.js";var n,p,l;!function(i){i.CHOICE="choice",i.FILTER="filter",i.INPUT="input",i.STANDARD="standard"}(n||(n={})),function(i){i.OUTLINED="outlined",i.RAISED="raised"}(p||(p={})),function(i){i.SMALL="small",i.MEDIUM="medium"}(l||(l={}));const r=document.documentElement,a=l=>{l.styling||(l.styling=p.RAISED),l.type||(l.type=n.STANDARD);const a=l.type.toLowerCase()===n.CHOICE,o=l.type.toLowerCase()===n.FILTER,t=l.type.toLowerCase()===n.INPUT,d=l.styling.toLowerCase()===p.OUTLINED,u={"chip-set":!0,"chip-set--choice":!!a,"chip-set--filter":!!o,"chip-set--input":!!t,"chip--outlined":!!d,"chip--raised":!d,[`chip--${l.sizing}`]:!!l.sizing};return i("div",Object.assign({class:`f-chip ${l.danger?"kup-danger":""} ${l.info?"kup-info":""} ${l.secondary?"kup-secondary":""} ${l.success?"kup-success":""} ${l.warning?"kup-warning":""} ${l.wrapperClass?l.wrapperClass:""} ${l.primary?"kup-primary":""}`},l.dataSet,{id:l.id,title:l.title}),i("div",{class:u,role:"grid"},function(n,p,l,a){const o=[];for(let t=0;n.data&&t<n.data.length;t++){const d=[];function u(p,l){const a=!!(p.children&&p.children.length>0),o=!(!a||!p.isExpanded),_={"--kup_chip_indent_offset":l.toString()};if(d.push(i("div",{class:"chip-set__wrapper "+(a&&!o?"chip-set__wrapper--hidden-children":"")},i("div",{class:"chip-set__indent",style:_}),a?i(c,{onClick:n.onExpansionClick&&n.onExpansionClick[t]?n.onExpansionClick[t].bind(n.onExpansionClick[t],p):null,resource:`${e.DROPDOWN}`,sizeX:"16px",sizeY:"16px",title:r.ketchup.language.translate(s.EXPAND)+"/"+r.ketchup.language.translate(s.COLLAPSE)+" (CTRL + Click)",wrapperClass:"dropdown-icon"}):l?i(c,{resource:"blank",sizeX:"16px",sizeY:"16px",wrapperClass:"dropdown-icon"}):null,h(p))),o)for(let i=0;i<p.children.length;i++)p.children[i]&&u(p.children[i],l+1)}function h(s){let r="chip "+(s.icon&&!s.value?"chip--only-icon":""),o=[],d="chip__icon chip__icon--leading";return(l||p)&&s.checked&&(r+=" chip--selected",l&&(d+=" chip__icon--leading-hidden")),s.icon&&o.push(i(c,Object.assign({},{color:p&&s.checked?"var(--kup_chip_primary_color)":"var(--kup_chip_text_color)",resource:s.icon,placeholderResource:s.placeholderIcon,sizeX:"16px",sizeY:"16px",wrapperClass:d}))),l&&o.push(i("span",{class:"chip__checkmark"},i("svg",{class:"chip__checkmark-svg",viewBox:"-2 -3 30 30"},i("path",{class:"chip__checkmark-path",fill:"none",stroke:"black",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})))),i("div",{class:r,"data-value":s.id,onClick:n.onClick&&n.onClick[t]?n.onClick[t].bind(n.onClick[t],s):null,role:"row",title:s.title?s.title:""},i("span",{class:"chip-set__indent"}),o,i("span",{role:"gridcell"},i("span",{role:"button",tabindex:t,class:"chip__primary-action",value:s.id,checked:s.checked,onBlur:n.onBlur&&n.onBlur[t]?n.onBlur[t].bind(n.onBlur[t],s):null,onFocus:n.onFocus&&n.onFocus[t]?n.onFocus[t].bind(n.onFocus[t],s):null},i("span",{class:"chip__text"},n.displayId?s.id+" - "+s.value:s.value))),a?i("span",{role:"gridcell"},i("span",{tabindex:"-1",class:`kup-icon chip__icon ${e.CLEAR.replace("--","")}`,onClick:n.onIconClick&&n.onIconClick[t]?n.onIconClick[t].bind(n.onIconClick[t],s):null})):null)}u(n.data[t],0),o.push(i("div",{class:"chip-set__item"},...d))}return o}(l,a,o,t)))};export{n as F,l as a,p as b,a as c}
@@ -3,6 +3,7 @@ import { GenericObject } from '../../types/GenericTypes';
3
3
  import { KupCellElementsPosition, KupCellSubmitClickEventPayload } from './kup-cell-declarations';
4
4
  import { FCellPadding } from '../../f-components/f-cell/f-cell-declarations';
5
5
  import { KupDataCell } from '../../managers/kup-data/kup-data-declarations';
6
+ import { KupFileUploadEventPayload } from '../kup-file-upload/kup-file-upload-declarations';
6
7
  export declare class KupCell {
7
8
  #private;
8
9
  /**
@@ -38,6 +39,7 @@ export declare class KupCell {
38
39
  */
39
40
  submitPosition: KupCellElementsPosition;
40
41
  kupCellSubmitClick: EventEmitter<KupCellSubmitClickEventPayload>;
42
+ kupCellUpload: EventEmitter<KupFileUploadEventPayload>;
41
43
  /**
42
44
  * Adds the given CSS classes to the cell's data.
43
45
  * @param {string[]} classes - Array of CSS classes.
@@ -67,6 +69,7 @@ export declare class KupCell {
67
69
  private generateColumn;
68
70
  private generateRow;
69
71
  private submitClick;
72
+ private upload;
70
73
  componentWillLoad(): void;
71
74
  componentDidLoad(): void;
72
75
  componentWillRender(): void;
@@ -0,0 +1,8 @@
1
+ import { KupEventPayload } from '../../types/GenericTypes';
2
+ export declare enum KupFileUploadProps {
3
+ customStyle = "Custom style of the component.",
4
+ data = "Actual data of the input file upload."
5
+ }
6
+ export interface KupFileUploadEventPayload extends KupEventPayload {
7
+ files: File[];
8
+ }
@@ -0,0 +1,62 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
3
+ import { KupFileUploadEventPayload } from './kup-file-upload-declarations';
4
+ export declare class KupFileUpload {
5
+ #private;
6
+ /**
7
+ * References the root HTML element of the component (<kup-file-upload>).
8
+ */
9
+ rootElement: HTMLElement;
10
+ /**
11
+ * Custom style of the component.
12
+ * @default ""
13
+ * @see https://smeup.github.io/ketchup/#/customization
14
+ */
15
+ customStyle: string;
16
+ /**
17
+ * Actual data of the input field.
18
+ * @default null
19
+ */
20
+ data: any;
21
+ inputRef?: HTMLInputElement;
22
+ files?: File[];
23
+ uploadSuccess?: boolean;
24
+ showSpinner?: boolean;
25
+ onDataChanged(): void;
26
+ /**
27
+ * Used to retrieve component's props values.
28
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
29
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
30
+ */
31
+ getProps(descriptions?: boolean): Promise<GenericObject>;
32
+ /**
33
+ * This method is used to trigger a new render of the component.
34
+ */
35
+ refresh(): Promise<void>;
36
+ /**
37
+ * Sets the props to the component.
38
+ * @param {GenericObject} props - Object containing props that will be set to the component.
39
+ */
40
+ setProps(props: GenericObject): Promise<void>;
41
+ /**
42
+ * Sets upload has been successfull to show success message.
43
+ * @param {boolean} success - Boolean to set if upload has been successfull.
44
+ */
45
+ setSuccess(success: boolean): Promise<void>;
46
+ /**
47
+ * Sets to show spinner during upload.
48
+ * @param {boolean} loading - Boolean to set if is loading.
49
+ */
50
+ setLoading(loading: boolean): Promise<void>;
51
+ /**
52
+ * When component load is complete
53
+ */
54
+ kupReady: EventEmitter<KupEventPayload>;
55
+ kupUpload: EventEmitter<KupFileUploadEventPayload>;
56
+ componentWillLoad(): void;
57
+ componentDidLoad(): void;
58
+ componentWillRender(): void;
59
+ componentDidRender(): void;
60
+ render(): any;
61
+ disconnectedCallback(): void;
62
+ }
@@ -23,6 +23,7 @@ import { KupCardClickPayload, KupCardData, KupCardEventPayload, KupCardFamily }
23
23
  import { KupCardListClickEventPayload, KupCardListData } from "./components/kup-card-list/kup-card-list-declarations";
24
24
  import { FCellEventPayload, FCellPadding } from "./f-components/f-cell/f-cell-declarations";
25
25
  import { KupCellElementsPosition, KupCellSubmitClickEventPayload } from "./components/kup-cell/kup-cell-declarations";
26
+ import { KupFileUploadEventPayload } from "./components/kup-file-upload/kup-file-upload-declarations";
26
27
  import { ChartAspect, ChartAxis, ChartOfflineMode, ChartSerie, ChartTitle, ChartType, KupChartClickEvent, KupChartSort, KupChartTrendlines } from "./components/kup-chart/kup-chart-declarations";
27
28
  import { KupCheckboxEventPayload } from "./components/kup-checkbox/kup-checkbox-declarations";
28
29
  import { KupChipChangeEventPayload, KupChipEventPayload, KupChipNode } from "./components/kup-chip/kup-chip-declarations";
@@ -84,6 +85,7 @@ export { KupCardClickPayload, KupCardData, KupCardEventPayload, KupCardFamily }
84
85
  export { KupCardListClickEventPayload, KupCardListData } from "./components/kup-card-list/kup-card-list-declarations";
85
86
  export { FCellEventPayload, FCellPadding } from "./f-components/f-cell/f-cell-declarations";
86
87
  export { KupCellElementsPosition, KupCellSubmitClickEventPayload } from "./components/kup-cell/kup-cell-declarations";
88
+ export { KupFileUploadEventPayload } from "./components/kup-file-upload/kup-file-upload-declarations";
87
89
  export { ChartAspect, ChartAxis, ChartOfflineMode, ChartSerie, ChartTitle, ChartType, KupChartClickEvent, KupChartSort, KupChartTrendlines } from "./components/kup-chart/kup-chart-declarations";
88
90
  export { KupCheckboxEventPayload } from "./components/kup-checkbox/kup-checkbox-declarations";
89
91
  export { KupChipChangeEventPayload, KupChipEventPayload, KupChipNode } from "./components/kup-chip/kup-chip-declarations";
@@ -2390,6 +2392,44 @@ export namespace Components {
2390
2392
  */
2391
2393
  "stackedLeaves": boolean;
2392
2394
  }
2395
+ interface KupFileUpload {
2396
+ /**
2397
+ * Custom style of the component.
2398
+ * @default ""
2399
+ * @see https://smeup.github.io/ketchup/#/customization
2400
+ */
2401
+ "customStyle": string;
2402
+ /**
2403
+ * Actual data of the input field.
2404
+ * @default null
2405
+ */
2406
+ "data": any;
2407
+ /**
2408
+ * Used to retrieve component's props values.
2409
+ * @param descriptions - When provided and true, the result will be the list of props with their description.
2410
+ * @returns List of props as object, each key will be a prop.
2411
+ */
2412
+ "getProps": (descriptions?: boolean) => Promise<GenericObject>;
2413
+ /**
2414
+ * This method is used to trigger a new render of the component.
2415
+ */
2416
+ "refresh": () => Promise<void>;
2417
+ /**
2418
+ * Sets to show spinner during upload.
2419
+ * @param loading - Boolean to set if is loading.
2420
+ */
2421
+ "setLoading": (loading: boolean) => Promise<void>;
2422
+ /**
2423
+ * Sets the props to the component.
2424
+ * @param props - Object containing props that will be set to the component.
2425
+ */
2426
+ "setProps": (props: GenericObject) => Promise<void>;
2427
+ /**
2428
+ * Sets upload has been successfull to show success message.
2429
+ * @param success - Boolean to set if upload has been successfull.
2430
+ */
2431
+ "setSuccess": (success: boolean) => Promise<void>;
2432
+ }
2393
2433
  interface KupForm {
2394
2434
  /**
2395
2435
  * Custom style of the component.
@@ -4831,6 +4871,10 @@ export interface KupFamilyTreeCustomEvent<T> extends CustomEvent<T> {
4831
4871
  detail: T;
4832
4872
  target: HTMLKupFamilyTreeElement;
4833
4873
  }
4874
+ export interface KupFileUploadCustomEvent<T> extends CustomEvent<T> {
4875
+ detail: T;
4876
+ target: HTMLKupFileUploadElement;
4877
+ }
4834
4878
  export interface KupFormCustomEvent<T> extends CustomEvent<T> {
4835
4879
  detail: T;
4836
4880
  target: HTMLKupFormElement;
@@ -5128,6 +5172,7 @@ declare global {
5128
5172
  };
5129
5173
  interface HTMLKupCellElementEventMap {
5130
5174
  "kup-cell-submit-click": KupCellSubmitClickEventPayload;
5175
+ "kup-cell-upload": KupFileUploadEventPayload;
5131
5176
  }
5132
5177
  interface HTMLKupCellElement extends Components.KupCell, HTMLStencilElement {
5133
5178
  addEventListener<K extends keyof HTMLKupCellElementEventMap>(type: K, listener: (this: HTMLKupCellElement, ev: KupCellCustomEvent<HTMLKupCellElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -5450,6 +5495,24 @@ declare global {
5450
5495
  prototype: HTMLKupFamilyTreeElement;
5451
5496
  new (): HTMLKupFamilyTreeElement;
5452
5497
  };
5498
+ interface HTMLKupFileUploadElementEventMap {
5499
+ "kup-file-upload-ready": KupEventPayload;
5500
+ "kup-file-upload-upload": KupFileUploadEventPayload;
5501
+ }
5502
+ interface HTMLKupFileUploadElement extends Components.KupFileUpload, HTMLStencilElement {
5503
+ addEventListener<K extends keyof HTMLKupFileUploadElementEventMap>(type: K, listener: (this: HTMLKupFileUploadElement, ev: KupFileUploadCustomEvent<HTMLKupFileUploadElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
5504
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
5505
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
5506
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
5507
+ removeEventListener<K extends keyof HTMLKupFileUploadElementEventMap>(type: K, listener: (this: HTMLKupFileUploadElement, ev: KupFileUploadCustomEvent<HTMLKupFileUploadElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
5508
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
5509
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
5510
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
5511
+ }
5512
+ var HTMLKupFileUploadElement: {
5513
+ prototype: HTMLKupFileUploadElement;
5514
+ new (): HTMLKupFileUploadElement;
5515
+ };
5453
5516
  interface HTMLKupFormElementEventMap {
5454
5517
  "kup-form-ready": KupEventPayload;
5455
5518
  }
@@ -6087,6 +6150,7 @@ declare global {
6087
6150
  "kup-echart": HTMLKupEchartElement;
6088
6151
  "kup-editor": HTMLKupEditorElement;
6089
6152
  "kup-family-tree": HTMLKupFamilyTreeElement;
6153
+ "kup-file-upload": HTMLKupFileUploadElement;
6090
6154
  "kup-form": HTMLKupFormElement;
6091
6155
  "kup-gantt": HTMLKupGanttElement;
6092
6156
  "kup-gantt-calendar": HTMLKupGanttCalendarElement;
@@ -6888,6 +6952,7 @@ declare namespace LocalJSX {
6888
6952
  */
6889
6953
  "dragEnabled"?: boolean;
6890
6954
  "onKup-cell-submit-click"?: (event: KupCellCustomEvent<KupCellSubmitClickEventPayload>) => void;
6955
+ "onKup-cell-upload"?: (event: KupCellCustomEvent<KupFileUploadEventPayload>) => void;
6891
6956
  /**
6892
6957
  * Show submit button
6893
6958
  */
@@ -8055,6 +8120,24 @@ declare namespace LocalJSX {
8055
8120
  */
8056
8121
  "stackedLeaves"?: boolean;
8057
8122
  }
8123
+ interface KupFileUpload {
8124
+ /**
8125
+ * Custom style of the component.
8126
+ * @default ""
8127
+ * @see https://smeup.github.io/ketchup/#/customization
8128
+ */
8129
+ "customStyle"?: string;
8130
+ /**
8131
+ * Actual data of the input field.
8132
+ * @default null
8133
+ */
8134
+ "data"?: any;
8135
+ /**
8136
+ * When component load is complete
8137
+ */
8138
+ "onKup-file-upload-ready"?: (event: KupFileUploadCustomEvent<KupEventPayload>) => void;
8139
+ "onKup-file-upload-upload"?: (event: KupFileUploadCustomEvent<KupFileUploadEventPayload>) => void;
8140
+ }
8058
8141
  interface KupForm {
8059
8142
  /**
8060
8143
  * Custom style of the component.
@@ -10037,6 +10120,7 @@ declare namespace LocalJSX {
10037
10120
  "kup-echart": KupEchart;
10038
10121
  "kup-editor": KupEditor;
10039
10122
  "kup-family-tree": KupFamilyTree;
10123
+ "kup-file-upload": KupFileUpload;
10040
10124
  "kup-form": KupForm;
10041
10125
  "kup-gantt": KupGantt;
10042
10126
  "kup-gantt-calendar": KupGanttCalendar;
@@ -10115,6 +10199,7 @@ declare module "@stencil/core" {
10115
10199
  "kup-echart": LocalJSX.KupEchart & JSXBase.HTMLAttributes<HTMLKupEchartElement>;
10116
10200
  "kup-editor": LocalJSX.KupEditor & JSXBase.HTMLAttributes<HTMLKupEditorElement>;
10117
10201
  "kup-family-tree": LocalJSX.KupFamilyTree & JSXBase.HTMLAttributes<HTMLKupFamilyTreeElement>;
10202
+ "kup-file-upload": LocalJSX.KupFileUpload & JSXBase.HTMLAttributes<HTMLKupFileUploadElement>;
10118
10203
  "kup-form": LocalJSX.KupForm & JSXBase.HTMLAttributes<HTMLKupFormElement>;
10119
10204
  "kup-gantt": LocalJSX.KupGantt & JSXBase.HTMLAttributes<HTMLKupGanttElement>;
10120
10205
  "kup-gantt-calendar": LocalJSX.KupGanttCalendar & JSXBase.HTMLAttributes<HTMLKupGanttCalendarElement>;
@@ -116,6 +116,7 @@ export declare const FCellShapes: {
116
116
  readonly COMBOBOX: "CMB";
117
117
  readonly DATE: "CAL";
118
118
  readonly EDITOR: "EDT";
119
+ readonly FILE_UPLOAD: "FUP";
119
120
  readonly GAUGE: "GAU";
120
121
  readonly ICON: "ICO";
121
122
  readonly IMAGE: "IMG";
@@ -152,6 +153,7 @@ export declare enum FCellTypes {
152
153
  DATE = "date",
153
154
  DATETIME = "datetime",
154
155
  EDITOR = "editor",
156
+ FILE_UPLOAD = "file-upload",
155
157
  GAUGE = "gauge",
156
158
  ICON = "icon",
157
159
  IMAGE = "image",
@@ -3,7 +3,7 @@ import type { GenericObject } from '../../types/GenericTypes';
3
3
  * Master type extending all subtypes of keys.
4
4
  * Remember to edit "languages.json"
5
5
  */
6
- export type KupLanguageKey = KupLanguageCheckbox | KupLanguageColumn | KupLanguageDashboard | KupLanguageDebug | KupLanguageDensity | KupLanguageFontsize | KupLanguageGeneric | KupLanguageGrid | KupLanguageGrouping | KupLanguagePage | KupLanguageRow | KupLanguageSearch | KupLanguageTotals;
6
+ export type KupLanguageKey = KupLanguageCheckbox | KupLanguageColumn | KupLanguageDashboard | KupLanguageDebug | KupLanguageDensity | KupLanguageFontsize | KupLanguageGeneric | KupLanguageGrid | KupLanguageGrouping | KupLanguagePage | KupLanguageRow | KupLanguageSearch | KupLanguageTotals | KupLanguageUpload;
7
7
  /**
8
8
  * Interface of the languages JSON.
9
9
  */
@@ -164,7 +164,9 @@ export declare enum KupLanguageGeneric {
164
164
  ROW_ADD = "genericRowAdd",
165
165
  ROW_DELETE = "genericRowDelete",
166
166
  INVALID_VALUE = "genericInvalidValue",
167
- REQUIRED_VALUE = "genericRequiredValue"
167
+ REQUIRED_VALUE = "genericRequiredValue",
168
+ UPLOAD = "genericUpload",
169
+ CHOOSE = "genericChoose"
168
170
  }
169
171
  /**
170
172
  * Grid decodes (data table customization settings).
@@ -229,3 +231,9 @@ export declare enum KupLanguageTotals {
229
231
  PRODUCT = "totalsProduct",
230
232
  SUM = "totalsSum"
231
233
  }
234
+ /**
235
+ * File upload
236
+ */
237
+ export declare enum KupLanguageUpload {
238
+ SUCCESS = "fileUploadSuccess"
239
+ }
@@ -111,7 +111,8 @@ export declare enum KupTagNames {
111
111
  TIME_PICKER = "KUP-TIME-PICKER",
112
112
  TOOLTIP = "KUP-TOOLTIP",
113
113
  TREE = "KUP-TREE",
114
- OBJECT_FIELD = "KUP-OBJECT-FIELD"
114
+ OBJECT_FIELD = "KUP-OBJECT-FIELD",
115
+ UPLOAD = "KUP-FILE-UPLOAD"
115
116
  }
116
117
  /**
117
118
  * Sizing options for the button/text-field components.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sme.up/ketchup",
3
- "version": "11.0.0-SNAPSHOT-20250204102909",
3
+ "version": "11.0.0-SNAPSHOT-20250204113836",
4
4
  "keywords": [
5
5
  "smeup",
6
6
  "KetchUP",