@sme.up/ketchup 10.3.8 → 10.3.9

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 (311) hide show
  1. package/dist/cjs/{f-button-bfafefb3.js → f-button-c084046d.js} +1 -1
  2. package/dist/cjs/{f-cell-9a77e09a.js → f-cell-2e939ef8.js} +12 -8
  3. package/dist/cjs/{f-checkbox-aaa6d45c.js → f-checkbox-e59d6bda.js} +3 -3
  4. package/dist/cjs/{f-chip-f1b14141.js → f-chip-b0b4b0d9.js} +2 -2
  5. package/dist/cjs/{f-image-db10b066.js → f-image-7457eb26.js} +18 -15
  6. package/dist/cjs/{f-object-field-7c1ea180.js → f-object-field-db5613ef.js} +3 -3
  7. package/dist/cjs/{f-paginator-utils-49cf707b.js → f-paginator-utils-2fcf4642.js} +2 -2
  8. package/dist/cjs/{f-text-field-f5b2163a.js → f-text-field-ee6120c5.js} +60 -3
  9. package/dist/cjs/index.cjs.js +1 -1
  10. package/dist/cjs/ketchup.cjs.js +1 -1
  11. package/dist/cjs/kup-accordion.cjs.entry.js +2 -2
  12. package/dist/cjs/kup-activity-timeline.cjs.entry.js +3 -3
  13. package/dist/cjs/kup-autocomplete_30.cjs.entry.js +429 -206
  14. package/dist/cjs/kup-box.cjs.entry.js +10 -10
  15. package/dist/cjs/kup-calendar.cjs.entry.js +4 -4
  16. package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
  17. package/dist/cjs/kup-cell.cjs.entry.js +8 -8
  18. package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +7 -7
  19. package/dist/cjs/kup-dashboard.cjs.entry.js +5 -5
  20. package/dist/cjs/{kup-data-table-helper-63e5d7a2.js → kup-data-table-helper-0705294e.js} +1 -1
  21. package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
  22. package/dist/cjs/kup-echart.cjs.entry.js +1 -1
  23. package/dist/cjs/kup-editor.cjs.entry.js +1 -1
  24. package/dist/cjs/kup-family-tree.cjs.entry.js +3 -3
  25. package/dist/cjs/kup-gantt_10.cjs.entry.js +23 -23
  26. package/dist/cjs/kup-grid.cjs.entry.js +1 -1
  27. package/dist/cjs/kup-htm.cjs.entry.js +6 -3
  28. package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
  29. package/dist/cjs/kup-input-panel.cjs.entry.js +79 -24
  30. package/dist/cjs/kup-lazy.cjs.entry.js +12 -12
  31. package/dist/cjs/kup-magic-box.cjs.entry.js +5 -5
  32. package/dist/cjs/{kup-manager-15f30f03.js → kup-manager-0ce9fd30.js} +18 -6
  33. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  34. package/dist/cjs/kup-numeric-picker.cjs.entry.js +4 -4
  35. package/dist/cjs/kup-object-field.cjs.entry.js +6 -6
  36. package/dist/cjs/kup-pdf.cjs.entry.js +2 -2
  37. package/dist/cjs/kup-planner-renderer.cjs.entry.js +2 -2
  38. package/dist/cjs/kup-planner.cjs.entry.js +4 -4
  39. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  40. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  41. package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
  42. package/dist/cjs/kup-txt.cjs.entry.js +2 -2
  43. package/dist/cjs/kup-typography-list.cjs.entry.js +2 -2
  44. package/dist/cjs/kup-typography.cjs.entry.js +4 -4
  45. package/dist/cjs/loader.cjs.js +1 -1
  46. package/dist/collection/components/kup-card/standard/kup-card-standard.js +5 -2
  47. package/dist/collection/components/kup-data-table/kup-data-table.js +231 -118
  48. package/dist/collection/components/kup-date-picker/kup-date-picker.js +8 -8
  49. package/dist/collection/components/kup-file-upload/kup-file-upload-declarations.js +3 -0
  50. package/dist/collection/components/kup-file-upload/kup-file-upload.css +9 -0
  51. package/dist/collection/components/kup-file-upload/kup-file-upload.js +101 -27
  52. package/dist/collection/components/kup-form/kup-form.js +2 -2
  53. package/dist/collection/components/kup-htm/kup-htm.css +0 -3
  54. package/dist/collection/components/kup-htm/kup-htm.js +4 -1
  55. package/dist/collection/components/kup-image-list/kup-image-list.js +3 -3
  56. package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js +1 -0
  57. package/dist/collection/components/kup-input-panel/kup-input-panel.css +9 -0
  58. package/dist/collection/components/kup-input-panel/kup-input-panel.js +89 -15
  59. package/dist/collection/components/kup-lazy/kup-lazy.js +11 -11
  60. package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
  61. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
  62. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +1 -1
  63. package/dist/collection/components/kup-object-field/kup-object-field.js +1 -1
  64. package/dist/collection/components/kup-pdf/kup-pdf.js +1 -1
  65. package/dist/collection/components/kup-planner/kup-planner.js +1 -1
  66. package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
  67. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2 -2
  68. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +2 -2
  69. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +3 -3
  70. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +5 -5
  71. package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +2 -2
  72. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +1 -1
  73. package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +2 -2
  74. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
  75. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
  76. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +1 -1
  77. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
  78. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
  79. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
  80. package/dist/collection/components/kup-probe/kup-probe.js +1 -1
  81. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
  82. package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
  83. package/dist/collection/components/kup-rating/kup-rating.js +1 -1
  84. package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
  85. package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
  86. package/dist/collection/components/kup-switch/kup-switch.js +1 -1
  87. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +1 -0
  88. package/dist/collection/components/kup-text-field/kup-text-field.js +27 -4
  89. package/dist/collection/components/kup-time-picker/kup-time-picker.js +1 -1
  90. package/dist/collection/components/kup-txt/kup-txt.js +1 -1
  91. package/dist/collection/components/kup-typography/kup-typography.js +2 -2
  92. package/dist/collection/components/kup-typography-list/kup-typography-list.js +1 -1
  93. package/dist/collection/f-components/f-cell/f-cell.js +5 -1
  94. package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -1
  95. package/dist/collection/f-components/f-image/f-image.js +18 -15
  96. package/dist/collection/f-components/f-text-field/f-text-field.js +55 -1
  97. package/dist/collection/managers/kup-data/kup-data.js +4 -3
  98. package/dist/collection/managers/kup-language/kup-language-declarations.js +2 -0
  99. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +5 -0
  100. package/dist/collection/utils/cell-utils.js +1 -1
  101. package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +2 -0
  102. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +57 -7
  103. package/dist/components/index.js +1 -1
  104. package/dist/components/kup-accordion.js +2 -2
  105. package/dist/components/kup-activity-timeline.js +2 -2
  106. package/dist/components/kup-autocomplete.js +1 -1
  107. package/dist/components/kup-badge.js +1 -1
  108. package/dist/components/kup-box.js +1 -1
  109. package/dist/components/kup-button-list.js +1 -1
  110. package/dist/components/kup-button.js +1 -1
  111. package/dist/components/kup-calendar.js +2 -2
  112. package/dist/components/kup-card-list.js +3 -3
  113. package/dist/components/kup-card.js +1 -1
  114. package/dist/components/kup-cell.js +2 -2
  115. package/dist/components/kup-chart.js +1 -1
  116. package/dist/components/kup-checkbox.js +1 -1
  117. package/dist/components/kup-chip.js +1 -1
  118. package/dist/components/kup-color-picker.js +1 -1
  119. package/dist/components/kup-combobox.js +1 -1
  120. package/dist/components/kup-custom-task-list-header.js +1 -1
  121. package/dist/components/kup-dashboard.js +2 -2
  122. package/dist/components/kup-data-table.js +1 -1
  123. package/dist/components/kup-date-picker.js +1 -1
  124. package/dist/components/kup-dialog.js +1 -1
  125. package/dist/components/kup-drawer.js +2 -2
  126. package/dist/components/kup-dropdown-button.js +1 -1
  127. package/dist/components/kup-echart.js +1 -1
  128. package/dist/components/kup-editor.js +1 -1
  129. package/dist/components/kup-family-tree.js +3 -3
  130. package/dist/components/kup-file-upload.js +1 -1
  131. package/dist/components/kup-form.js +1 -1
  132. package/dist/components/kup-gantt-calendar.js +1 -1
  133. package/dist/components/kup-gantt.js +1 -1
  134. package/dist/components/kup-gauge.js +1 -1
  135. package/dist/components/kup-grid-renderer.js +1 -1
  136. package/dist/components/kup-grid.js +1 -1
  137. package/dist/components/kup-horizontal-scroll.js +1 -1
  138. package/dist/components/kup-htm.js +7 -4
  139. package/dist/components/kup-iframe.js +2 -2
  140. package/dist/components/kup-image-list.js +1 -1
  141. package/dist/components/kup-image.js +1 -1
  142. package/dist/components/kup-input-panel.js +75 -19
  143. package/dist/components/kup-lazy.js +13 -13
  144. package/dist/components/kup-list.js +1 -1
  145. package/dist/components/kup-magic-box.js +7 -7
  146. package/dist/components/kup-nav-bar.js +3 -3
  147. package/dist/components/kup-numeric-picker.js +3 -3
  148. package/dist/components/kup-object-field.js +3 -3
  149. package/dist/components/kup-pdf.js +3 -3
  150. package/dist/components/kup-planner-renderer.js +1 -1
  151. package/dist/components/kup-planner.js +17 -17
  152. package/dist/components/kup-probe.js +3 -3
  153. package/dist/components/kup-progress-bar.js +1 -1
  154. package/dist/components/kup-qlik.js +3 -3
  155. package/dist/components/kup-radio.js +1 -1
  156. package/dist/components/kup-rating.js +1 -1
  157. package/dist/components/kup-snackbar.js +3 -3
  158. package/dist/components/kup-spinner.js +1 -1
  159. package/dist/components/kup-standard-tooltip.js +1 -1
  160. package/dist/components/kup-switch.js +1 -1
  161. package/dist/components/kup-switcher.js +1 -1
  162. package/dist/components/kup-tab-bar.js +1 -1
  163. package/dist/components/kup-task-gantt.js +1 -1
  164. package/dist/components/kup-task-list-header.js +1 -1
  165. package/dist/components/kup-task-list-table.js +1 -1
  166. package/dist/components/kup-task-list.js +1 -1
  167. package/dist/components/kup-text-field.js +1 -1
  168. package/dist/components/kup-time-picker.js +1 -1
  169. package/dist/components/kup-toolbar.js +1 -1
  170. package/dist/components/kup-tooltip.js +1 -1
  171. package/dist/components/kup-tree.js +1 -1
  172. package/dist/components/kup-txt.js +3 -3
  173. package/dist/components/kup-typography-list.js +3 -3
  174. package/dist/components/kup-typography.js +4 -4
  175. package/dist/components/kup-vertical-scroll.js +1 -1
  176. package/dist/components/{p-168b2e98.js → p-23d0f0c7.js} +1 -1
  177. package/dist/components/{p-d5573b9a.js → p-2670bfd5.js} +13 -13
  178. package/dist/components/{p-f0de2fa5.js → p-5b1056e4.js} +7 -7
  179. package/dist/components/{p-57069e5c.js → p-767fcf91.js} +1 -1
  180. package/dist/components/{p-5aea1707.js → p-7e706919.js} +509 -217
  181. package/dist/components/{p-fbaf1165.js → p-85852162.js} +18 -6
  182. package/dist/components/{p-46440124.js → p-89b9a949.js} +2 -2
  183. package/dist/components/{p-47eafd24.js → p-9a502c5d.js} +2 -2
  184. package/dist/components/{p-bba3ee8c.js → p-9a617844.js} +3 -3
  185. package/dist/components/{p-73b82fab.js → p-9d13f3da.js} +4 -4
  186. package/dist/components/{p-f836c3ed.js → p-aa882232.js} +2 -2
  187. package/dist/components/{p-91cbfbb1.js → p-b057cba1.js} +2 -2
  188. package/dist/components/{p-78086e86.js → p-bbb25c58.js} +1 -1
  189. package/dist/components/{p-96d517a7.js → p-bdecbc93.js} +5 -5
  190. package/dist/components/{p-7fa7072d.js → p-cbc6b3d5.js} +2 -2
  191. package/dist/components/{p-75cc2a0e.js → p-cde4d6c3.js} +2 -2
  192. package/dist/components/{p-e74c4841.js → p-d9bec7c8.js} +2 -2
  193. package/dist/components/{p-7b80651f.js → p-dc1ce1b4.js} +1 -1
  194. package/dist/components/{p-0886650d.js → p-e72fb07b.js} +2 -2
  195. package/dist/components/{p-dbfe7218.js → p-f9afe0c9.js} +15 -15
  196. package/dist/esm/{f-button-3c8f4506.js → f-button-6298565d.js} +1 -1
  197. package/dist/esm/{f-cell-0a43dfd3.js → f-cell-b3f0782c.js} +12 -8
  198. package/dist/esm/{f-checkbox-5cdd1cad.js → f-checkbox-191ec2e7.js} +3 -3
  199. package/dist/esm/{f-chip-d5f27ee2.js → f-chip-3ed440ef.js} +2 -2
  200. package/dist/esm/{f-image-a2ecd7c3.js → f-image-96ea1421.js} +18 -15
  201. package/dist/esm/{f-object-field-6f759bf9.js → f-object-field-23935da4.js} +3 -3
  202. package/dist/esm/{f-paginator-utils-6d124369.js → f-paginator-utils-a9d5c2d3.js} +2 -2
  203. package/dist/esm/{f-text-field-86dd8534.js → f-text-field-4934ff74.js} +60 -3
  204. package/dist/esm/index.js +1 -1
  205. package/dist/esm/ketchup.js +1 -1
  206. package/dist/esm/kup-accordion.entry.js +2 -2
  207. package/dist/esm/kup-activity-timeline.entry.js +3 -3
  208. package/dist/esm/kup-autocomplete_30.entry.js +429 -206
  209. package/dist/esm/kup-box.entry.js +10 -10
  210. package/dist/esm/kup-calendar.entry.js +4 -4
  211. package/dist/esm/kup-card-list.entry.js +1 -1
  212. package/dist/esm/kup-cell.entry.js +8 -8
  213. package/dist/esm/kup-custom-task-list-header_4.entry.js +7 -7
  214. package/dist/esm/kup-dashboard.entry.js +5 -5
  215. package/dist/esm/{kup-data-table-helper-7d5e4260.js → kup-data-table-helper-de9421a0.js} +1 -1
  216. package/dist/esm/kup-drawer.entry.js +1 -1
  217. package/dist/esm/kup-echart.entry.js +1 -1
  218. package/dist/esm/kup-editor.entry.js +1 -1
  219. package/dist/esm/kup-family-tree.entry.js +3 -3
  220. package/dist/esm/kup-gantt_10.entry.js +23 -23
  221. package/dist/esm/kup-grid.entry.js +1 -1
  222. package/dist/esm/kup-htm.entry.js +6 -3
  223. package/dist/esm/kup-iframe.entry.js +1 -1
  224. package/dist/esm/kup-input-panel.entry.js +79 -24
  225. package/dist/esm/kup-lazy.entry.js +12 -12
  226. package/dist/esm/kup-magic-box.entry.js +5 -5
  227. package/dist/esm/{kup-manager-2b06d829.js → kup-manager-5c23bae7.js} +18 -6
  228. package/dist/esm/kup-nav-bar.entry.js +2 -2
  229. package/dist/esm/kup-numeric-picker.entry.js +4 -4
  230. package/dist/esm/kup-object-field.entry.js +6 -6
  231. package/dist/esm/kup-pdf.entry.js +2 -2
  232. package/dist/esm/kup-planner-renderer.entry.js +2 -2
  233. package/dist/esm/kup-planner.entry.js +4 -4
  234. package/dist/esm/kup-probe.entry.js +2 -2
  235. package/dist/esm/kup-qlik.entry.js +2 -2
  236. package/dist/esm/kup-snackbar.entry.js +4 -4
  237. package/dist/esm/kup-txt.entry.js +2 -2
  238. package/dist/esm/kup-typography-list.entry.js +2 -2
  239. package/dist/esm/kup-typography.entry.js +4 -4
  240. package/dist/esm/loader.js +1 -1
  241. package/dist/ketchup/index.esm.js +1 -1
  242. package/dist/ketchup/ketchup.esm.js +1 -1
  243. package/dist/ketchup/{p-179d9c32.entry.js → p-001755a5.entry.js} +1 -1
  244. package/dist/ketchup/{p-a186678f.js → p-02e22635.js} +1 -1
  245. package/dist/ketchup/p-03d049e3.js +21 -0
  246. package/dist/ketchup/p-0bb6bfb4.entry.js +1 -0
  247. package/dist/ketchup/{p-fd855732.entry.js → p-137158e4.entry.js} +1 -1
  248. package/dist/ketchup/{p-b1a9f499.entry.js → p-143617b6.entry.js} +1 -1
  249. package/dist/ketchup/{p-e5022c5b.entry.js → p-27f26f4b.entry.js} +1 -1
  250. package/dist/ketchup/{p-f9c3699f.entry.js → p-29af64ff.entry.js} +1 -1
  251. package/dist/ketchup/{p-8a95b2a0.entry.js → p-33a6e698.entry.js} +1 -1
  252. package/dist/ketchup/{p-74035126.entry.js → p-424c2f64.entry.js} +1 -1
  253. package/dist/ketchup/{p-d022b77e.entry.js → p-4632e407.entry.js} +2 -2
  254. package/dist/ketchup/{p-0a93321f.entry.js → p-6741f3f6.entry.js} +1 -1
  255. package/dist/ketchup/p-687b7642.entry.js +8 -0
  256. package/dist/ketchup/{p-beacc7fd.entry.js → p-68835d71.entry.js} +1 -1
  257. package/dist/ketchup/{p-39472246.entry.js → p-6c1e1780.entry.js} +1 -1
  258. package/dist/ketchup/{p-2f626d6c.entry.js → p-6ce64af5.entry.js} +1 -1
  259. package/dist/ketchup/{p-1015f35b.entry.js → p-7775e947.entry.js} +1 -1
  260. package/dist/ketchup/p-7d25580b.entry.js +1 -0
  261. package/dist/ketchup/{p-2bb6c663.js → p-95346c81.js} +1 -1
  262. package/dist/ketchup/{p-b1371652.js → p-a3394095.js} +1 -1
  263. package/dist/ketchup/{p-a301cd89.entry.js → p-a76b0d93.entry.js} +1 -1
  264. package/dist/ketchup/{p-425fab24.entry.js → p-ae1f69c7.entry.js} +1 -1
  265. package/dist/ketchup/{p-98fb85e5.entry.js → p-b47dc6ac.entry.js} +1 -1
  266. package/dist/ketchup/{p-00963efe.entry.js → p-b509455c.entry.js} +1 -1
  267. package/dist/ketchup/{p-d83f2153.entry.js → p-b67d94a0.entry.js} +1 -1
  268. package/dist/ketchup/{p-3f7fec03.entry.js → p-bc75c526.entry.js} +1 -1
  269. package/dist/ketchup/{p-f9d6a629.entry.js → p-c3eca951.entry.js} +2 -2
  270. package/dist/ketchup/{p-4c8480a1.entry.js → p-cc9d71a7.entry.js} +1 -1
  271. package/dist/ketchup/p-cc9db65d.js +1 -0
  272. package/dist/ketchup/p-cf5e1d07.js +1 -0
  273. package/dist/ketchup/{p-43246def.js → p-da273b4d.js} +1 -1
  274. package/dist/ketchup/p-da5d5eea.js +1 -0
  275. package/dist/ketchup/p-dba5100a.entry.js +1 -0
  276. package/dist/ketchup/{p-4f380f49.entry.js → p-dc425c68.entry.js} +1 -1
  277. package/dist/ketchup/p-e18d9110.entry.js +1 -0
  278. package/dist/ketchup/{p-9432bc02.entry.js → p-e755042e.entry.js} +1 -1
  279. package/dist/ketchup/{p-b5575d63.entry.js → p-ec66f939.entry.js} +1 -1
  280. package/dist/ketchup/{p-e6cad40c.entry.js → p-ece991ba.entry.js} +1 -1
  281. package/dist/ketchup/{p-9f9428d1.js → p-ef3112d4.js} +1 -1
  282. package/dist/ketchup/{p-bf5abe49.entry.js → p-f3319227.entry.js} +1 -1
  283. package/dist/ketchup/{p-045e7306.entry.js → p-f7da2ca7.entry.js} +1 -1
  284. package/dist/ketchup/{p-c4224227.js → p-ff735e62.js} +1 -1
  285. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +1 -0
  286. package/dist/types/components/kup-data-table/kup-data-table.d.ts +2 -0
  287. package/dist/types/components/kup-file-upload/kup-file-upload-declarations.d.ts +4 -1
  288. package/dist/types/components/kup-file-upload/kup-file-upload.d.ts +4 -2
  289. package/dist/types/components/kup-htm/kup-htm.d.ts +1 -0
  290. package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +1 -0
  291. package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +5 -0
  292. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +1 -0
  293. package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
  294. package/dist/types/components.d.ts +23 -2
  295. package/dist/types/f-components/f-cell/f-cell.d.ts +5 -0
  296. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
  297. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
  298. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +3 -1
  299. package/dist/types/utils/cell-utils.d.ts +1 -0
  300. package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +3 -1
  301. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +3 -2
  302. package/package.json +1 -1
  303. package/dist/ketchup/p-17f69e68.entry.js +0 -1
  304. package/dist/ketchup/p-3cab6420.js +0 -1
  305. package/dist/ketchup/p-4d3ae43b.entry.js +0 -8
  306. package/dist/ketchup/p-514a0dfd.js +0 -1
  307. package/dist/ketchup/p-5f35bc3e.js +0 -1
  308. package/dist/ketchup/p-62b0efc0.js +0 -21
  309. package/dist/ketchup/p-68929471.entry.js +0 -1
  310. package/dist/ketchup/p-a34c1e3c.entry.js +0 -1
  311. package/dist/ketchup/p-e5f2da82.entry.js +0 -1
@@ -1,15 +1,15 @@
1
1
  import { forceUpdate, h, Host, } from "@stencil/core";
2
- import { KupComponentSizing, } from "../../types/GenericTypes";
3
- import { kupManagerInstance, } from "../../managers/kup-manager/kup-manager";
4
- import { KupDatePickerProps, } from "./kup-date-picker-declarations";
5
- import { KupDebugCategory } from "../../managers/kup-debug/kup-debug-declarations";
6
- import { componentWrapperId } from "../../variables/GenericVariables";
7
- import { KupDatesFormats } from "../../managers/kup-dates/kup-dates-declarations";
8
2
  import { FTextField } from "../../f-components/f-text-field/f-text-field";
9
3
  import { FTextFieldMDC } from "../../f-components/f-text-field/f-text-field-mdc";
4
+ import { KupDatesFormats } from "../../managers/kup-dates/kup-dates-declarations";
5
+ import { KupDebugCategory } from "../../managers/kup-debug/kup-debug-declarations";
10
6
  import { KupDynamicPositionPlacement } from "../../managers/kup-dynamic-position/kup-dynamic-position-declarations";
11
- import { KupCardFamily, } from "../kup-card/kup-card-declarations";
7
+ import { kupManagerInstance, } from "../../managers/kup-manager/kup-manager";
8
+ import { KupComponentSizing, } from "../../types/GenericTypes";
12
9
  import { getProps } from "../../utils/utils";
10
+ import { componentWrapperId } from "../../variables/GenericVariables";
11
+ import { KupCardFamily, } from "../kup-card/kup-card-declarations";
12
+ import { KupDatePickerProps, } from "./kup-date-picker-declarations";
13
13
  export class KupDatePicker {
14
14
  constructor() {
15
15
  /*-------------------------------------------------*/
@@ -395,7 +395,7 @@ export class KupDatePicker {
395
395
  showPreviousNextMonthDays: this.showPreviousNextMonthDays,
396
396
  },
397
397
  };
398
- return (h(Host, { key: '4c53bd7bac94334e6e7cbc3992da2024a2062fdf' }, h("style", { key: '625ecea49d44c9451c9174b43a7ef1b69bae392e' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: 'b50d12bb7550d9cddaed8c1429dbde2ab6b88777', id: componentWrapperId }, h(FTextField, Object.assign({ key: 'c2f78eae07d993dcaf2454329de981006c1ffa1e' }, textfieldData, { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, maxLength: (_a = textfieldData.maxLength) !== null && _a !== void 0 ? _a : 10, size: 10, id: this.rootElement.id + '_text-field', value: this.getDateForOutput(), onBlur: () => this.onKupBlur(), onChange: (e) => this.onKupChange(e), onClearIconClick: () => this.onKupClearIconClick(), onClick: () => this.onKupClick(), onFocus: () => this.onKupFocus(), onIconClick: () => this.onKupIconClick(), onKeyDown: (e) => this.onKupTextFieldSubmit(e), onInput: (e) => this.onKupInput(e) }), h("div", { key: 'a73631f1dc1e6fb33c9b17a02bcbc1101f3ce88d', id: this.rootElement.id + '_card', class: "kup-date-picker-card" }, h("kup-card", { key: 'aec6de4c78ee91185b91485b4d9045026ff84ba1', ref: (el) => (this.pickerContainerEl = el), data: cardData, layoutFamily: KupCardFamily.BUILT_IN, sizeX: "300px", sizeY: "auto", isMenu: true, "onkup-card-click": (ev) => {
398
+ return (h(Host, { key: '827b64b4e81a6238bd45388c3f5234a29685ce74' }, h("style", { key: '4bb32836db6bd0e39579f52abbd5b29cef9d2bf6' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: 'f8549d32cf3813544c56ad90f7b6e619dd131a53', id: componentWrapperId }, h(FTextField, Object.assign({ key: 'b561786c364f4f27b5edba3746202a8a6d5301b3' }, textfieldData, { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, maxLength: (_a = textfieldData.maxLength) !== null && _a !== void 0 ? _a : 10, size: 10, id: this.rootElement.id + '_text-field', value: this.getDateForOutput(), onBlur: () => this.onKupBlur(), onChange: (e) => this.onKupChange(e), onClearIconClick: () => this.onKupClearIconClick(), onClick: () => this.onKupClick(), onFocus: () => this.onKupFocus(), onIconClick: () => this.onKupIconClick(), onKeyDown: (e) => this.onKupTextFieldSubmit(e), onInput: (e) => this.onKupInput(e) }), h("div", { key: '136e15a45145ed9160a7da70ec0444ff417ec0c7', id: this.rootElement.id + '_card', class: "kup-date-picker-card" }, h("kup-card", { key: '5dd13a969e65cd4a6b4ebc9ea96019904ab7ffd6', ref: (el) => (this.pickerContainerEl = el), data: cardData, layoutFamily: KupCardFamily.BUILT_IN, sizeX: "300px", sizeY: "auto", isMenu: true, "onkup-card-click": (ev) => {
399
399
  if (ev.detail.value != null &&
400
400
  ev.detail.value != '')
401
401
  this.onKupDatePickerItemClick(ev.detail.value);
@@ -1,7 +1,10 @@
1
1
  export var KupFileUploadProps;
2
2
  (function (KupFileUploadProps) {
3
3
  KupFileUploadProps["customStyle"] = "Custom style of the component.";
4
+ KupFileUploadProps["error"] = "Error string to render in component";
4
5
  KupFileUploadProps["pathString"] = "The initial filepaths.";
5
6
  KupFileUploadProps["FupMul"] = "Sets the multiple upload.";
6
7
  KupFileUploadProps["FupAut"] = "Sets the auto upload of select file";
8
+ KupFileUploadProps["FupDir"] = "Sets the custom dir to upload files";
9
+ KupFileUploadProps["FupAty"] = "Sets the accepted extensions";
7
10
  })(KupFileUploadProps || (KupFileUploadProps = {}));
@@ -151,6 +151,15 @@
151
151
  padding: 1em;
152
152
  position: relative;
153
153
  }
154
+ :host .file-upload__invalid {
155
+ border-color: var(--kup-danger-color, #d32f2f);
156
+ background: rgba(211, 47, 47, 0.06);
157
+ box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.15) inset;
158
+ cursor: not-allowed;
159
+ }
160
+ :host .file-upload__invalid * {
161
+ opacity: 0.95;
162
+ }
154
163
  :host .file-upload__buttons {
155
164
  display: flex;
156
165
  gap: 1em;
@@ -5,7 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
5
5
  throw new TypeError("Cannot read private member from an object whose class did not declare it");
6
6
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7
7
  };
8
- var _KupFileUpload_instances, _KupFileUpload_kupManager, _KupFileUpload_previewMap, _KupFileUpload_handleClick, _KupFileUpload_handleFileChange, _KupFileUpload_handleFileRemove, _KupFileUpload_handleDrop, _KupFileUpload_handleCancel, _KupFileUpload_getPreview, _KupFileUpload_trimFileName, _KupFileUpload_uploadClick;
8
+ var _KupFileUpload_instances, _KupFileUpload_kupManager, _KupFileUpload_previewMap, _KupFileUpload_handleClick, _KupFileUpload_handleFileChange, _KupFileUpload_handleDrop, _KupFileUpload_handleFileRemove, _KupFileUpload_processFiles, _KupFileUpload_handleCancel, _KupFileUpload_getPreview, _KupFileUpload_trimFileName, _KupFileUpload_uploadClick, _KupFileUpload_getUniqueFiles, _KupFileUpload_isValidDraggedItems, _KupFileUpload_areValidFiles, _KupFileUpload_isValidFile, _KupFileUpload_getFileExtension;
9
9
  import { forceUpdate, Host, h, Fragment, } from "@stencil/core";
10
10
  import { kupManagerInstance } from "../../managers/kup-manager/kup-manager";
11
11
  import { getProps, setProps } from "../../utils/utils";
@@ -47,22 +47,27 @@ export class KupFileUpload {
47
47
  this.inputRef = undefined;
48
48
  this.tempFiles = [];
49
49
  this.pathFiles = [];
50
- this.uploadSuccess = false;
51
50
  this.showSpinner = false;
52
51
  this.multiUpload = false;
53
52
  this.autoUpload = false;
54
53
  this.acceptedFiles = null;
54
+ this.isValidDropFiles = true;
55
+ this.fupError = null;
55
56
  }
56
57
  //#endregion
57
58
  //#region WATCHERS
58
59
  /*-------------------------------------------------*/
59
60
  /* W a t c h e r s */
60
61
  /*-------------------------------------------------*/
62
+ onErrorChange() {
63
+ this.fupError = this.error;
64
+ }
61
65
  onDataChanged() {
62
66
  var _a;
63
- this.uploadSuccess = false;
67
+ this.fupError = '';
64
68
  __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleCancel).call(this);
65
- this.pathFiles = ((_a = this.pathString) === null || _a === void 0 ? void 0 : _a.split(';')) || [];
69
+ this.pathFiles =
70
+ ((_a = this.pathString) === null || _a === void 0 ? void 0 : _a.split(';').filter((path) => path.trim())) || [];
66
71
  }
67
72
  onFupMulChanged() {
68
73
  this.multiUpload = this.FupMul === 'true';
@@ -108,7 +113,6 @@ export class KupFileUpload {
108
113
  this.setLoading(false);
109
114
  if (success && pathFiles) {
110
115
  __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleCancel).call(this);
111
- this.uploadSuccess = success;
112
116
  this.pathFiles = this.multiUpload
113
117
  ? [...this.pathFiles, ...pathFiles.split(';')]
114
118
  : [pathFiles.split(';')[0]];
@@ -152,10 +156,15 @@ export class KupFileUpload {
152
156
  }
153
157
  render() {
154
158
  var _a;
155
- return (h(Host, { key: 'f08391eac6f841cb117304af6a09ae63ff92549b' }, h("style", { key: 'acc0df4a07fdd65f35182769077763a9643f34b0' }, __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '11e1fb63a9949c804f9b41236c218b80eef965a1', id: componentWrapperId }, h("div", { key: '8cf8270d6e066bc361feda602a82ac97657853a4', class: {
159
+ return (h(Host, { key: 'e82c20508f86798008b2e961f2cef347ea19908f' }, h("style", { key: 'f9549e18810a5d38d300c167142d41e783d9e80d' }, __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '09d2ae3e36a7e871aba975ccbb745472cb63652f', id: componentWrapperId }, h("div", { key: 'c2b798c7bf6cababc587990b710515060bb2e2a8', class: {
156
160
  'file-upload': true,
157
161
  'file-upload-spinner': this.showSpinner,
158
- }, onDrop: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleDrop).bind(this), onDragOver: (event) => event.preventDefault() }, h("input", { key: 'a34748d05872c863c0f96ef5a8e4fa36f549f1ae', type: "file", ref: (el) => (this.inputRef = el), onChange: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleFileChange).bind(this), multiple: this.multiUpload, accept: (_a = this.acceptedFiles) === null || _a === void 0 ? void 0 : _a.join(','), hidden: true }), h("div", { key: 'cc13058c673bc816ff51e8278b187c87a1ef4467', class: "file-upload__buttons" }, h(FButton, { key: 'b54e4ff41658b67e1700b2d4c06885ea37ae3004', icon: "upload", label: __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.translate(KupLanguageGeneric.CHOOSE), onClick: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleClick).bind(this) }), !this.autoUpload && (h(Fragment, { key: 'd2df1fc3e94dc20573226456a5131599140817d3' }, h(FButton, { key: '6b05c656c460218841c85e4f07dde8965f47c36e', icon: "save", disabled: !this.tempFiles.length, label: __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.translate(KupLanguageGeneric.UPLOAD), onClick: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_uploadClick).bind(this), styling: FButtonStyling.FLAT }), h(FButton, { key: '70ac6c463966d7e0fd2f69a59a648334587d46ef', icon: "clear", disabled: !this.tempFiles.length, label: __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.translate(KupLanguageGeneric.ABORT), onClick: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleCancel).bind(this), styling: FButtonStyling.FLAT })))), this.error && (h("div", { key: '90c46db7caa99ba8460b0b925135ef1c9223e3e8', class: "file-upload__error" }, h("span", { key: '5a50f58e4d6e6cd87ac3074d48c849fc54716de5', class: "mdc-error-message" }, this.error))), this.uploadSuccess ? (h("span", null, __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.translate(KupLanguageUpload.SUCCESS))) : (h("div", { class: "file-upload__list" }, this.tempFiles.map((file, i) => (h("div", { class: "file-upload__list__item" }, h("div", { class: "file-upload__list__item__preview" }, h(FImage, { resource: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_getPreview).call(this, file), placeholderResource: "file" })), h("span", { class: "file-upload__list__item__desc", title: file.name }, __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_trimFileName).call(this, file.name)), h("span", { class: "file-upload__list__item__clear", onClick: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleFileRemove).bind(this, i) })))))), this.pathFiles.length ? (h("div", { class: "file-upload__list" }, this.pathFiles.map((path, i) => (h("span", { class: "file-upload__list__item" }, h("span", null, i + 1, ". ", path)))))) : null, this.showSpinner && (h("div", { key: '4cf819053c80ffaff9225fa351e9c1c3f37791b6', class: "file-upload__spinner-container" }, h("kup-spinner", { key: '3e1c322698976c8243fd6e9aefc678727056f8ea', active: true, layout: 14, dimensions: "7px" })))))));
162
+ 'file-upload__invalid': !this.isValidDropFiles,
163
+ }, onDragOver: (event) => {
164
+ var _a;
165
+ event.preventDefault();
166
+ this.isValidDropFiles = __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_isValidDraggedItems).call(this, (_a = event.dataTransfer) === null || _a === void 0 ? void 0 : _a.items);
167
+ }, onDrop: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleDrop).bind(this), onDragLeave: () => (this.isValidDropFiles = true), onDragEnd: () => (this.isValidDropFiles = true) }, h("input", { key: 'a79897d0ea5885a55a71f04ce39bbd4791e1462d', type: "file", ref: (el) => (this.inputRef = el), onChange: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleFileChange).bind(this), multiple: this.multiUpload, accept: (_a = this.acceptedFiles) === null || _a === void 0 ? void 0 : _a.join(','), hidden: true }), h("div", { key: '856a74817a14d88844efb2b9ad765e8d7223d547', class: "file-upload__buttons" }, h(FButton, { key: '1eb230b6313b6fb9e65f178b9e4edd0592e87e20', icon: "upload", label: __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.translate(KupLanguageGeneric.CHOOSE), onClick: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleClick).bind(this) }), !this.autoUpload && (h(Fragment, { key: 'df73268c675f6bf4ce81cd44c80a01305adf2f97' }, h(FButton, { key: '821b641f32a70972892b624d8ac55a9e38faaa14', icon: "save", disabled: !this.tempFiles.length, label: __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.translate(KupLanguageGeneric.UPLOAD), onClick: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_uploadClick).bind(this), styling: FButtonStyling.FLAT }), h(FButton, { key: 'f8f969b3eb16bd86dcd4826b3c3f46f8f8551b8f', icon: "clear", disabled: !this.tempFiles.length, label: __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.translate(KupLanguageGeneric.ABORT), onClick: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleCancel).bind(this), styling: FButtonStyling.FLAT })))), this.fupError && (h("div", { key: '2b760c793e980290ffb0847f46d0d5fb0abfac73', class: "file-upload__error" }, h("span", { key: '4c1a2cd135f330cf0dbda3f4da6dca78a5a298d4', class: "mdc-error-message" }, this.fupError))), h("div", { key: 'a034a8a57062eba3445e29168f740b867d5085a7', class: "file-upload__list" }, this.tempFiles.map((file, i) => (h("div", { class: "file-upload__list__item" }, h("div", { class: "file-upload__list__item__preview" }, h(FImage, { resource: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_getPreview).call(this, file), placeholderResource: "file" })), h("span", { class: "file-upload__list__item__desc", title: file.name }, __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_trimFileName).call(this, file.name)), h("span", { class: "file-upload__list__item__clear", onClick: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleFileRemove).bind(this, i) }))))), this.pathFiles.length ? (h("div", { class: "file-upload__list" }, this.pathFiles.map((path, i) => (h("span", { class: "file-upload__list__item" }, h("span", null, i + 1, ". ", path)))))) : null, this.showSpinner && (h("div", { key: 'cda18a34e433799f62f0026f4b38af748d39d2d7', class: "file-upload__spinner-container" }, h("kup-spinner", { key: 'cb010ba98b016941a087af4b250be33f675ac3fa', active: true, layout: 14, dimensions: "7px" })))))));
159
168
  }
160
169
  disconnectedCallback() {
161
170
  __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.unregister(this);
@@ -317,7 +326,7 @@ export class KupFileUpload {
317
326
  "docs": {
318
327
  "tags": [{
319
328
  "name": "default",
320
- "text": "'false'"
329
+ "text": "'undefined'"
321
330
  }],
322
331
  "text": "Error string to render in component"
323
332
  },
@@ -332,11 +341,12 @@ export class KupFileUpload {
332
341
  "inputRef": {},
333
342
  "tempFiles": {},
334
343
  "pathFiles": {},
335
- "uploadSuccess": {},
336
344
  "showSpinner": {},
337
345
  "multiUpload": {},
338
346
  "autoUpload": {},
339
- "acceptedFiles": {}
347
+ "acceptedFiles": {},
348
+ "isValidDropFiles": {},
349
+ "fupError": {}
340
350
  };
341
351
  }
342
352
  static get events() {
@@ -542,6 +552,9 @@ export class KupFileUpload {
542
552
  static get elementRef() { return "rootElement"; }
543
553
  static get watchers() {
544
554
  return [{
555
+ "propName": "error",
556
+ "methodName": "onErrorChange"
557
+ }, {
545
558
  "propName": "pathString",
546
559
  "methodName": "onDataChanged"
547
560
  }, {
@@ -559,11 +572,40 @@ export class KupFileUpload {
559
572
  _KupFileUpload_kupManager = new WeakMap(), _KupFileUpload_previewMap = new WeakMap(), _KupFileUpload_instances = new WeakSet(), _KupFileUpload_handleClick = function _KupFileUpload_handleClick() {
560
573
  this.inputRef.click();
561
574
  }, _KupFileUpload_handleFileChange = function _KupFileUpload_handleFileChange(event) {
562
- this.uploadSuccess = false;
563
- this.error = '';
564
- const newFiles = Array.from(event.target.files);
565
- this.tempFiles = [...this.tempFiles, ...newFiles];
575
+ this.fupError = '';
576
+ const newFiles = Array.from(event.target.files) || [];
577
+ if (!this.multiUpload && newFiles.length > 1) {
578
+ return;
579
+ }
566
580
  this.inputRef.value = '';
581
+ __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_processFiles).call(this, newFiles);
582
+ }, _KupFileUpload_handleDrop = function _KupFileUpload_handleDrop(event) {
583
+ event.preventDefault();
584
+ this.fupError = '';
585
+ this.isValidDropFiles = true;
586
+ const droppedFiles = event.dataTransfer.files;
587
+ if ((droppedFiles === null || droppedFiles === void 0 ? void 0 : droppedFiles.length) <= 0) {
588
+ return;
589
+ }
590
+ if (!this.multiUpload && droppedFiles.length > 1) {
591
+ return;
592
+ }
593
+ const newFiles = Array.from(droppedFiles);
594
+ __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_processFiles).call(this, newFiles);
595
+ }, _KupFileUpload_handleFileRemove = function _KupFileUpload_handleFileRemove(index) {
596
+ this.tempFiles = [
597
+ ...this.tempFiles.splice(0, index),
598
+ ...this.tempFiles.splice(index + 1),
599
+ ];
600
+ }, _KupFileUpload_processFiles = function _KupFileUpload_processFiles(newFiles) {
601
+ if (!__classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_areValidFiles).call(this, newFiles)) {
602
+ return;
603
+ }
604
+ this.tempFiles = this.multiUpload
605
+ ? // Add new files
606
+ __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_getUniqueFiles).call(this, [...this.tempFiles, ...newFiles])
607
+ : // Reset files
608
+ newFiles;
567
609
  if (this.autoUpload) {
568
610
  this.kupUpload.emit({
569
611
  comp: this,
@@ -572,19 +614,6 @@ _KupFileUpload_kupManager = new WeakMap(), _KupFileUpload_previewMap = new WeakM
572
614
  });
573
615
  this.setLoading(true);
574
616
  }
575
- }, _KupFileUpload_handleFileRemove = function _KupFileUpload_handleFileRemove(index) {
576
- this.tempFiles = [
577
- ...this.tempFiles.splice(0, index),
578
- ...this.tempFiles.splice(index + 1),
579
- ];
580
- }, _KupFileUpload_handleDrop = function _KupFileUpload_handleDrop(event) {
581
- event.preventDefault();
582
- this.uploadSuccess = false;
583
- const droppedFiles = event.dataTransfer.files;
584
- if (droppedFiles.length > 0) {
585
- const newFiles = Array.from(droppedFiles);
586
- this.tempFiles = [...this.tempFiles, ...newFiles];
587
- }
588
617
  }, _KupFileUpload_handleCancel = function _KupFileUpload_handleCancel() {
589
618
  this.tempFiles = [];
590
619
  }, _KupFileUpload_getPreview = function _KupFileUpload_getPreview(file) {
@@ -611,4 +640,49 @@ _KupFileUpload_kupManager = new WeakMap(), _KupFileUpload_previewMap = new WeakM
611
640
  files: this.tempFiles,
612
641
  });
613
642
  this.setLoading(true);
643
+ }, _KupFileUpload_getUniqueFiles = function _KupFileUpload_getUniqueFiles(files) {
644
+ const uniqueFiles = files.reduce((map, file) => {
645
+ const key = `${file.name}-${file.size}-${file.lastModified}`;
646
+ map.set(key, file);
647
+ return map;
648
+ }, new Map());
649
+ return Array.from(uniqueFiles.values());
650
+ }, _KupFileUpload_isValidDraggedItems = function _KupFileUpload_isValidDraggedItems(items) {
651
+ if (!(items === null || items === void 0 ? void 0 : items.length) || (!this.multiUpload && items.length > 1)) {
652
+ return false;
653
+ }
654
+ for (const item of Array.from(items)) {
655
+ if (item.kind != 'file') {
656
+ return false;
657
+ }
658
+ }
659
+ return true;
660
+ }, _KupFileUpload_areValidFiles = function _KupFileUpload_areValidFiles(files) {
661
+ if (!(files === null || files === void 0 ? void 0 : files.length)) {
662
+ return false;
663
+ }
664
+ for (const file of files) {
665
+ if (!__classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_isValidFile).call(this, file)) {
666
+ return false;
667
+ }
668
+ }
669
+ return true;
670
+ }, _KupFileUpload_isValidFile = function _KupFileUpload_isValidFile(file) {
671
+ var _a;
672
+ if (!((_a = this.acceptedFiles) === null || _a === void 0 ? void 0 : _a.length)) {
673
+ return true;
674
+ }
675
+ // Check extensions
676
+ const fileExtension = __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_getFileExtension).call(this, file.name);
677
+ const isValid = fileExtension
678
+ ? this.acceptedFiles.includes(fileExtension)
679
+ : false;
680
+ if (!isValid) {
681
+ // Set extension error
682
+ this.fupError = __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.translate(KupLanguageUpload.INVALID_EXTENSION);
683
+ }
684
+ return isValid;
685
+ }, _KupFileUpload_getFileExtension = function _KupFileUpload_getFileExtension(fileName) {
686
+ const dotIndex = fileName.lastIndexOf('.');
687
+ return dotIndex >= 0 ? fileName.substring(dotIndex).toLowerCase() : '';
614
688
  };
@@ -408,7 +408,7 @@ export class KupForm {
408
408
  render() {
409
409
  let formContent = null;
410
410
  if (this.data.rows.length === 0) {
411
- formContent = (h("p", { key: '103de9b30f44f7958a691e5dccc8698e49ca76cf' }, this.kupManager.language.translate(KupLanguageGeneric.EMPTY_DATA)));
411
+ formContent = (h("p", { key: 'e6e94006b6a608e301373fdb7a4ca02665b2d844' }, this.kupManager.language.translate(KupLanguageGeneric.EMPTY_DATA)));
412
412
  }
413
413
  else {
414
414
  const rows = this.data.rows;
@@ -419,7 +419,7 @@ export class KupForm {
419
419
  formContent.push(this.renderRow(rows[cnt++]));
420
420
  }
421
421
  }
422
- return (h(Host, { key: 'cdaa7ff6add189834cc6f570d2a7cd032d3a0b3c' }, h("style", { key: 'd9eff3af01d39df16086be74e2c893b64f861e52' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: 'd4dd031f9dac773296738ebfe27510be56af8e5a', id: componentWrapperId }, formContent)));
422
+ return (h(Host, { key: 'c6fb5b3851606811f0c1cab66ce83f00c3073cd7' }, h("style", { key: '7451643bd2809dd41742977dc0c8ffaf2d29017c' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: 'f68f672b0a6f03a01577a5120e8f3e74385a0373', id: componentWrapperId }, formContent)));
423
423
  }
424
424
  disconnectedCallback() {
425
425
  this.kupManager.language.unregister(this);
@@ -138,9 +138,6 @@
138
138
  #kup-component .kup-htm.is-link {
139
139
  height: 100%;
140
140
  }
141
- #kup-component .kup-htm.is-link a {
142
- float: left;
143
- }
144
141
  #kup-component .kup-htm.is-link iframe {
145
142
  min-height: 600px;
146
143
  width: 100%;
@@ -19,6 +19,9 @@ export class KupHTM {
19
19
  /* I n t e r n a l V a r i a b l e s */
20
20
  /*-------------------------------------------------*/
21
21
  _KupHTM_kupManager.set(this, kupManagerInstance());
22
+ this.openInNewTab = (url) => {
23
+ window.open(url, '_blank', 'noopener,noreferrer');
24
+ };
22
25
  this.data = undefined;
23
26
  }
24
27
  /*-------------------------------------------------*/
@@ -69,7 +72,7 @@ export class KupHTM {
69
72
  render() {
70
73
  var _a;
71
74
  const isLink = __classPrivateFieldGet(this, _KupHTM_instances, "m", _KupHTM_isObjectCompatibleWithHTM).call(this, (_a = this === null || this === void 0 ? void 0 : this.data) === null || _a === void 0 ? void 0 : _a.obj);
72
- return (h(Host, { key: 'd4c059a573d252c5809a77375222a78bcdee56bc' }, h("style", { key: '46ea04367aae5ad0602ab6f84dc0cb904b14e091' }, __classPrivateFieldGet(this, _KupHTM_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '3d2ad3be208bd0cb850e66113155b70ace70983c', id: componentWrapperId }, h("div", { key: '075017b3ef686bfc5d6cee4035c3b053c11d67af', class: `kup-htm ${isLink ? 'is-link' : ''}` }, isLink ? (h(Fragment, null, h("a", { href: this.data.value, target: "_blank", rel: "noopener noreferrer" }, __classPrivateFieldGet(this, _KupHTM_kupManager, "f").language.translate(KupLanguageGeneric.OPEN_IN_NEW_TAB)), h("iframe", { src: this.data.value, frameBorder: "0" }))) : (h("div", { innerHTML: this.data.value }))))));
75
+ return (h(Host, { key: '7e74bdbde1456c74a177350f6d0dc68da4e15b23' }, h("style", { key: 'e284b80b52c6ff7c47e908fdcf4a8631428acd29' }, __classPrivateFieldGet(this, _KupHTM_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '79e75e97a2e72abf83c6efb3564dd36e6c8605ad', id: componentWrapperId }, h("div", { key: '37d4acd00efe5cda11ef5d0572d391ff278fd4c7', class: `kup-htm ${isLink ? 'is-link' : ''}` }, isLink ? (h(Fragment, null, h("kup-button", { label: __classPrivateFieldGet(this, _KupHTM_kupManager, "f").language.translate(KupLanguageGeneric.OPEN_IN_NEW_TAB), sizing: 'small', class: 'kup-secondary', icon: "open-in-new", styling: 'flat', trailingIcon: true, onClick: () => this.openInNewTab(this.data.value) }), h("iframe", { src: this.data.value, frameBorder: "0" }))) : (h("div", { innerHTML: this.data.value }))))));
73
76
  }
74
77
  disconnectedCallback() {
75
78
  __classPrivateFieldGet(this, _KupHTM_kupManager, "f").theme.unregister(this);
@@ -205,14 +205,14 @@ export class KupImageList {
205
205
  }
206
206
  const imlClass = 'image-list' +
207
207
  (this.showFullDescription ? ' full-description' : '');
208
- return (h(Host, { key: '4a3c80748fec9b98c9268077893643042b2c4ade' }, h("style", { key: '5fbc10ef98292d3cc1919d26cf64baa1286611e4' }, __classPrivateFieldGet(this, _KupImageList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '52254d30b66446960be0db63fdf486420d35a7ce', id: componentWrapperId, ref: (el) => {
208
+ return (h(Host, { key: 'd3dd048c9d3557174d5feb3b6ba6203ea5ecafe7' }, h("style", { key: '8178c806d90f4852441e8b18743bfd0f6836d6ef' }, __classPrivateFieldGet(this, _KupImageList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'd349af3c953aa70469c19f3868e5e850374996a0', id: componentWrapperId, ref: (el) => {
209
209
  __classPrivateFieldSet(this, _KupImageList_el, el, "f");
210
- } }, h("div", { key: '68cb3d98496d6314556ad5d777e6a67543a14ff3', class: "navigation-bar" }, hasNavigation ? (h("div", { class: `navigation-bar__wrapper ${this.navigationBarToggled
210
+ } }, h("div", { key: '5501f3c1eb46fa4e856248c1e876de729a68195a', class: "navigation-bar" }, hasNavigation ? (h("div", { class: `navigation-bar__wrapper ${this.navigationBarToggled
211
211
  ? 'navigation-bar__wrapper--active'
212
212
  : ''}` }, h("div", { class: `navigation-bar__title`, onClick: () => {
213
213
  this.navigationBarToggled =
214
214
  !this.navigationBarToggled;
215
- } }, h(FImage, { fit: true, resource: this.currentNode.icon, placeholderResource: this.currentNode.placeholderIcon, sizeX: "1.25em", sizeY: "1.25em", wrapperClass: "navigation-bar__title__image" }), h("div", { class: "navigation-bar__title__label" }, this.currentNode.value)), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_backProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.BACK) })), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_topProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.TOP) })))) : null), this.leadingLabel && (h("div", { key: '4b808d9230730a0eb49c5eca46a8130eda1c0f51', class: "mdc-text-field__label-container" }, h("label", { key: 'c1fcdb83116da8e7591091fcb97ea6c4ecb19a27', class: "mdc-label" }, this.leadingLabel))), h("div", { key: 'f0b462e13602be5a3a8c00ffd993fd9c8b02476a', class: imlClass, style: combinedGridStyle }, ...__classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_createList).call(this)))));
215
+ } }, h(FImage, { fit: true, resource: this.currentNode.icon, placeholderResource: this.currentNode.placeholderIcon, sizeX: "1.25em", sizeY: "1.25em", wrapperClass: "navigation-bar__title__image" }), h("div", { class: "navigation-bar__title__label" }, this.currentNode.value)), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_backProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.BACK) })), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_topProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.TOP) })))) : null), this.leadingLabel && (h("div", { key: 'e3a0c1acb410e52590a0309b9d1863ab75d2a6b5', class: "mdc-text-field__label-container" }, h("label", { key: 'a182435d28cf9ae405f61fda93794c5d81a5ed3e', class: "mdc-label" }, this.leadingLabel))), h("div", { key: '5df777d415c2ae7eeb95f22ce229614948b9a4c7', class: imlClass, style: combinedGridStyle }, ...__classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_createList).call(this)))));
216
216
  }
217
217
  disconnectedCallback() {
218
218
  __classPrivateFieldGet(this, _KupImageList_kupManager, "f").interact.unregister(__classPrivateFieldGet(this, _KupImageList_interactableTouch, "f"));
@@ -8,6 +8,7 @@ export var KupInputPanelProps;
8
8
  KupInputPanelProps["customStyle"] = "Custom style of the component.";
9
9
  KupInputPanelProps["data"] = "Actual data of the input panel.";
10
10
  KupInputPanelProps["hiddenSubmitButton"] = "Creates a hidden submit button in order to submit the form with enter.";
11
+ KupInputPanelProps["commandBarPosition"] = "Manage the position of the command bar (submit button and other commands).";
11
12
  KupInputPanelProps["submitCb"] = "Sets the callback function on submit form";
12
13
  KupInputPanelProps["optionsHandler"] = "Sets the callback function to recieve options";
13
14
  KupInputPanelProps["buttonPosition"] = "Manage the position of the buttons related to the input panel content. It is an enumeration";
@@ -277,4 +277,13 @@
277
277
  display: flex;
278
278
  align-items: end;
279
279
  gap: 1rem;
280
+ }
281
+ :host .input-panel__helper-icon {
282
+ cursor: help;
283
+ height: 16px;
284
+ opacity: 0.375;
285
+ position: absolute;
286
+ right: -18px;
287
+ top: -2px;
288
+ width: 16px;
280
289
  }
@@ -26,7 +26,7 @@ var __rest = (this && this.__rest) || function (s, e) {
26
26
  }
27
27
  return t;
28
28
  };
29
- var _KupInputPanel_instances, _KupInputPanel_kupManager, _KupInputPanel_formRef, _KupInputPanel_optionsAdapterMap, _KupInputPanel_originalData, _KupInputPanel_listeners, _KupInputPanel_cellTypeComponents, _KupInputPanel_cellTypesNeedingReset, _KupInputPanel_cellCustomRender, _KupInputPanel_sectionRenderMap, _KupInputPanel_readyPromise, _KupInputPanel_readyResolve, _KupInputPanel_getCell, _KupInputPanel_renderRow, _KupInputPanel_renderCell, _KupInputPanel_renderButton, _KupInputPanel_renderDropDownButton, _KupInputPanel_renderEditor, _KupInputPanel_renderDataTable, _KupInputPanel_renderLabel, _KupInputPanel_getLabelComponent, _KupInputPanel_renderGridLayout, _KupInputPanel_renderAbsoluteLayout, _KupInputPanel_renderSection, _KupInputPanel_renderAbsoluteSection, _KupInputPanel_extractContentIds, _KupInputPanel_renderSectionTab, _KupInputPanel_skipRenderField, _KupInputPanel_renderField, _KupInputPanel_renderAbsoluteField, _KupInputPanel_mapCommands, _KupInputPanel_mapCells, _KupInputPanel_setData, _KupInputPanel_deepObjectsMerge, _KupInputPanel_reverseMapCells, _KupInputPanel_mapData, _KupInputPanel_slotData, _KupInputPanel_CHIAdapter, _KupInputPanel_GRAAdapter, _KupInputPanel_BTNAdapter, _KupInputPanel_CMBandACPAdapter, _KupInputPanel_getOptionHandler, _KupInputPanel_isFCellEventPayload, _KupInputPanel_CHKAdapter, _KupInputPanel_CLPAdapter, _KupInputPanel_EDTAdapter, _KupInputPanel_ITXAdapter, _KupInputPanel_RADAdapter, _KupInputPanel_SWTAdapter, _KupInputPanel_DateAdapter, _KupInputPanel_ObjectAdapter, _KupInputPanel_ImageListAdapter, _KupInputPanel_FileUploadAdapter, _KupInputPanel_TimeAdapter, _KupInputPanel_NumberAdapter, _KupInputPanel_DataTableAdapter, _KupInputPanel_getTableUpdatedCell, _KupInputPanel_optionsTreeComboAdapter, _KupInputPanel_treeOptionsNodeAdapter, _KupInputPanel_dataTreeOptionsChildrenAdapter, _KupInputPanel_tableCMBandACPOptionsAdapter, _KupInputPanel_commandAdapter, _KupInputPanel_getAutocompleteEventCallback, _KupInputPanel_getTblAutocompleteEventCallback, _KupInputPanel_manageTblItemClick, _KupInputPanel_manageInputPanelCheck, _KupInputPanel_onCellUpdate, _KupInputPanel_setCellError, _KupInputPanel_areValuesUpdated, _KupInputPanel_getFunctionOnClickBTN, _KupInputPanel_findTraversedFCell, _KupInputPanel_getEventDetails, _KupInputPanel_didLoadInteractables, _KupInputPanel_setFocusOnInputElement, _KupInputPanel_findFirstInput, _KupInputPanel_setAutoSkip, _KupInputPanel_upload;
29
+ var _KupInputPanel_instances, _KupInputPanel_kupManager, _KupInputPanel_formRef, _KupInputPanel_optionsAdapterMap, _KupInputPanel_originalData, _KupInputPanel_listeners, _KupInputPanel_cellTypeComponents, _KupInputPanel_cellTypesNeedingReset, _KupInputPanel_cellCustomRender, _KupInputPanel_sectionRenderMap, _KupInputPanel_readyPromise, _KupInputPanel_readyResolve, _KupInputPanel_helperEl, _KupInputPanel_getCell, _KupInputPanel_renderRow, _KupInputPanel_renderCell, _KupInputPanel_hideHelper, _KupInputPanel_showHelper, _KupInputPanel_renderButton, _KupInputPanel_renderDropDownButton, _KupInputPanel_renderEditor, _KupInputPanel_renderDataTable, _KupInputPanel_renderLabel, _KupInputPanel_getLabelComponent, _KupInputPanel_renderGridLayout, _KupInputPanel_renderAbsoluteLayout, _KupInputPanel_renderSection, _KupInputPanel_renderAbsoluteSection, _KupInputPanel_extractContentIds, _KupInputPanel_renderSectionTab, _KupInputPanel_skipRenderField, _KupInputPanel_renderField, _KupInputPanel_renderAbsoluteField, _KupInputPanel_mapCommands, _KupInputPanel_mapCells, _KupInputPanel_setData, _KupInputPanel_deepObjectsMerge, _KupInputPanel_reverseMapCells, _KupInputPanel_mapData, _KupInputPanel_slotData, _KupInputPanel_CHIAdapter, _KupInputPanel_GRAAdapter, _KupInputPanel_BTNAdapter, _KupInputPanel_CMBandACPAdapter, _KupInputPanel_getOptionHandler, _KupInputPanel_isFCellEventPayload, _KupInputPanel_CHKAdapter, _KupInputPanel_CLPAdapter, _KupInputPanel_EDTAdapter, _KupInputPanel_ITXAdapter, _KupInputPanel_RADAdapter, _KupInputPanel_SWTAdapter, _KupInputPanel_DateAdapter, _KupInputPanel_ObjectAdapter, _KupInputPanel_ImageListAdapter, _KupInputPanel_TimeAdapter, _KupInputPanel_NumberAdapter, _KupInputPanel_DataTableAdapter, _KupInputPanel_getTableUpdatedCell, _KupInputPanel_optionsTreeComboAdapter, _KupInputPanel_treeOptionsNodeAdapter, _KupInputPanel_dataTreeOptionsChildrenAdapter, _KupInputPanel_tableCMBandACPOptionsAdapter, _KupInputPanel_commandAdapter, _KupInputPanel_getAutocompleteEventCallback, _KupInputPanel_getTblAutocompleteEventCallback, _KupInputPanel_manageTblItemClick, _KupInputPanel_manageInputPanelCheck, _KupInputPanel_onCellUpdate, _KupInputPanel_setCellError, _KupInputPanel_areValuesUpdated, _KupInputPanel_getFunctionOnClickBTN, _KupInputPanel_findTraversedFCell, _KupInputPanel_getEventDetails, _KupInputPanel_didLoadInteractables, _KupInputPanel_setFocusOnInputElement, _KupInputPanel_findFirstInput, _KupInputPanel_setAutoSkip, _KupInputPanel_upload;
30
30
  import { forceUpdate, h, Host, } from "@stencil/core";
31
31
  import { FButton } from "../../f-components/f-button/f-button";
32
32
  import { FCell } from "../../f-components/f-cell/f-cell";
@@ -83,11 +83,34 @@ export class KupInputPanel {
83
83
  ]));
84
84
  _KupInputPanel_readyPromise.set(this, void 0);
85
85
  _KupInputPanel_readyResolve.set(this, void 0);
86
+ _KupInputPanel_helperEl.set(this, null);
87
+ _KupInputPanel_hideHelper.set(this, () => {
88
+ if (__classPrivateFieldGet(this, _KupInputPanel_helperEl, "f")) {
89
+ __classPrivateFieldGet(this, _KupInputPanel_helperEl, "f").remove();
90
+ __classPrivateFieldSet(this, _KupInputPanel_helperEl, null, "f");
91
+ }
92
+ });
93
+ _KupInputPanel_showHelper.set(this, (e, text) => {
94
+ if (__classPrivateFieldGet(this, _KupInputPanel_helperEl, "f")) {
95
+ __classPrivateFieldGet(this, _KupInputPanel_helperEl, "f").style.left = `${e.clientX + 10}px`;
96
+ __classPrivateFieldGet(this, _KupInputPanel_helperEl, "f").style.top = `${e.clientY + 10}px`;
97
+ __classPrivateFieldGet(this, _KupInputPanel_helperEl, "f").innerText = text;
98
+ }
99
+ else {
100
+ __classPrivateFieldSet(this, _KupInputPanel_helperEl, document.createElement('div'), "f");
101
+ __classPrivateFieldGet(this, _KupInputPanel_helperEl, "f").className = 'input-panel__helper-tooltip';
102
+ __classPrivateFieldGet(this, _KupInputPanel_helperEl, "f").innerText = text;
103
+ __classPrivateFieldGet(this, _KupInputPanel_helperEl, "f").style.left = `${e.clientX + 10}px`;
104
+ __classPrivateFieldGet(this, _KupInputPanel_helperEl, "f").style.top = `${e.clientY + 10}px`;
105
+ document.body.appendChild(__classPrivateFieldGet(this, _KupInputPanel_helperEl, "f"));
106
+ }
107
+ });
86
108
  this.buttonPosition = KupInputPanelButtonsPositions.BOTTOM;
87
109
  this.customStyle = '';
88
110
  this.dashboardMode = false;
89
111
  this.data = null;
90
112
  this.hiddenSubmitButton = false;
113
+ this.commandBarPosition = undefined;
91
114
  this.inputPanelPosition = KupInputPanelPosition.COLUMNS;
92
115
  this.submitCb = null;
93
116
  this.optionsHandler = null;
@@ -115,7 +138,7 @@ export class KupInputPanel {
115
138
  });
116
139
  __classPrivateFieldSet(this, _KupInputPanel_listeners, [], "f");
117
140
  }
118
- if (this.data) {
141
+ if (this.data && this.data.columns && this.data.rows) {
119
142
  __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_mapCells).call(this, this.data);
120
143
  }
121
144
  }
@@ -249,7 +272,7 @@ export class KupInputPanel {
249
272
  h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA)),
250
273
  ]
251
274
  : this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
252
- return (h(Host, { key: '2ec0145129f95b6456a1aa327f4284a591429a7b', "onKup-cell-blur": (e) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_manageInputPanelCheck).call(this, e, CheckTriggeringEvents.BLUR), "onKup-cell-update": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_onCellUpdate).bind(this), "onKup-tabbar-click": (e) => {
275
+ return (h(Host, { key: '5f400adad4ef13867fa4cef8db5537f2e660808f', "onKup-cell-blur": (e) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_manageInputPanelCheck).call(this, e, CheckTriggeringEvents.BLUR), "onKup-cell-update": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_onCellUpdate).bind(this), "onKup-tabbar-click": (e) => {
253
276
  this.tabSelected = e.detail.node.id;
254
277
  }, "onKup-autocomplete-input": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).bind(this), "onKup-autocomplete-iconclick": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).bind(this), "onKup-combobox-iconclick": (e) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).call(this, e, true), "onKup-cell-itemclick": (e) => {
255
278
  __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_manageInputPanelCheck).call(this, e, CheckTriggeringEvents.ITEMCLICK);
@@ -259,7 +282,7 @@ export class KupInputPanel {
259
282
  this.kupInputPanelObjectFieldOpenSearchMenu.emit(e.detail);
260
283
  }, "onKup-objectfield-selectedmenuitem": (e) => {
261
284
  this.kupInputPanelObjectFieldSelectedMenuItem.emit(e.detail);
262
- }, "onKup-file-upload-upload": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_upload).bind(this) }, h("style", { key: '406b7a5832538a72f7a8120812f0ceb737a0195b' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'eb3416b062e4dadf102c8836cd9d04d87dca097b', id: componentWrapperId }, inputPanelContent)));
285
+ }, "onKup-file-upload-upload": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_upload).bind(this) }, h("style", { key: 'ac5331c087b8cd5e9908361cf83d10857c956bb4' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'cd01a86ec411b5b10e8af83f3986c3fa3b55b8f5', id: componentWrapperId }, inputPanelContent)));
263
286
  }
264
287
  disconnectedCallback() {
265
288
  __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
@@ -397,6 +420,26 @@ export class KupInputPanel {
397
420
  "reflect": false,
398
421
  "defaultValue": "false"
399
422
  },
423
+ "commandBarPosition": {
424
+ "type": "string",
425
+ "mutable": false,
426
+ "complexType": {
427
+ "original": "'top' | 'bottom' | 'left' | 'right'",
428
+ "resolved": "\"bottom\" | \"left\" | \"right\" | \"top\"",
429
+ "references": {}
430
+ },
431
+ "required": false,
432
+ "optional": true,
433
+ "docs": {
434
+ "tags": [{
435
+ "name": "default",
436
+ "text": "'bottom'"
437
+ }],
438
+ "text": "Position of the command bar (submit button and other commands)"
439
+ },
440
+ "attribute": "command-bar-position",
441
+ "reflect": false
442
+ },
400
443
  "inputPanelPosition": {
401
444
  "type": "string",
402
445
  "mutable": false,
@@ -911,7 +954,7 @@ export class KupInputPanel {
911
954
  }];
912
955
  }
913
956
  }
914
- _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(), _KupInputPanel_optionsAdapterMap = new WeakMap(), _KupInputPanel_originalData = new WeakMap(), _KupInputPanel_listeners = new WeakMap(), _KupInputPanel_cellTypeComponents = new WeakMap(), _KupInputPanel_cellTypesNeedingReset = new WeakMap(), _KupInputPanel_cellCustomRender = new WeakMap(), _KupInputPanel_sectionRenderMap = new WeakMap(), _KupInputPanel_readyPromise = new WeakMap(), _KupInputPanel_readyResolve = new WeakMap(), _KupInputPanel_instances = new WeakSet(), _KupInputPanel_getCell = function _KupInputPanel_getCell(id) {
957
+ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(), _KupInputPanel_optionsAdapterMap = new WeakMap(), _KupInputPanel_originalData = new WeakMap(), _KupInputPanel_listeners = new WeakMap(), _KupInputPanel_cellTypeComponents = new WeakMap(), _KupInputPanel_cellTypesNeedingReset = new WeakMap(), _KupInputPanel_cellCustomRender = new WeakMap(), _KupInputPanel_sectionRenderMap = new WeakMap(), _KupInputPanel_readyPromise = new WeakMap(), _KupInputPanel_readyResolve = new WeakMap(), _KupInputPanel_helperEl = new WeakMap(), _KupInputPanel_hideHelper = new WeakMap(), _KupInputPanel_showHelper = new WeakMap(), _KupInputPanel_instances = new WeakSet(), _KupInputPanel_getCell = function _KupInputPanel_getCell(id) {
915
958
  if (!id) {
916
959
  return null;
917
960
  }
@@ -1004,7 +1047,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
1004
1047
  } }, ((_b = layout === null || layout === void 0 ? void 0 : layout.sections) === null || _b === void 0 ? void 0 : _b.length) == 1 &&
1005
1048
  ((_c = layout === null || layout === void 0 ? void 0 : layout.sections[0]) === null || _c === void 0 ? void 0 : _c.title) && (h("div", { class: "input-panel__typography" }, h(FTypography, { value: layout.sections[0].title, type: FTypographyType.HEADING1 }))), h("div", { class: classObj, style: styleObj }, rowContent), h("div", { class: commandsClass }, h(FButton, { buttonType: "submit", label: __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM), wrapperClass: "form__submit", invisible: this.hiddenSubmitButton }), this.fieldReset && (h(FButton, { buttonType: "reset", label: "Reset", wrapperClass: "form__submit", icon: "broom" })), this.inputPanelCommands))));
1006
1049
  }, _KupInputPanel_renderCell = function _KupInputPanel_renderCell(cell, row, column) {
1007
- var _a;
1050
+ var _a, _b;
1008
1051
  if (!cell) {
1009
1052
  return;
1010
1053
  }
@@ -1012,7 +1055,19 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
1012
1055
  if (customRender !== undefined) {
1013
1056
  return customRender(cell, column, (_a = row.layout) === null || _a === void 0 ? void 0 : _a.absolute);
1014
1057
  }
1015
- cell.data = Object.assign(Object.assign({}, cell.data), { sizing: 'extra-small' });
1058
+ cell.data = Object.assign(Object.assign({}, cell.data), { sizing: 'extra-small', labelHelper: column.helper });
1059
+ const subcompData = (_b = cell.data) === null || _b === void 0 ? void 0 : _b.data;
1060
+ if (subcompData) {
1061
+ const hasTextFieldProps = Object.keys(subcompData).includes('kup-text-field');
1062
+ if (!hasTextFieldProps) {
1063
+ subcompData['kup-text-field'] = {
1064
+ labelHelper: column.helper,
1065
+ };
1066
+ }
1067
+ else {
1068
+ subcompData['kup-text-field'].labelHelper = column.helper;
1069
+ }
1070
+ }
1016
1071
  const cellProps = {
1017
1072
  cell,
1018
1073
  column,
@@ -1023,10 +1078,27 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
1023
1078
  setSizes: true,
1024
1079
  };
1025
1080
  const label = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getLabelComponent).call(this, cell, column.title);
1081
+ const fcell = h(FCell, Object.assign({}, cellProps));
1026
1082
  if (label) {
1027
- return (h("div", { class: { 'input-panel__label_container': true } }, label, h(FCell, Object.assign({}, cellProps))));
1083
+ /*
1084
+ const hasHelper = Boolean(column?.helper) || true;
1085
+ const helper = hasHelper ? (
1086
+ <span
1087
+ class="input-panel__helper-icon"
1088
+ onPointerMove={(e) => this.#showHelper(e, column.helper)}
1089
+ onPointerDown={(e) => this.#showHelper(e, column.helper)}
1090
+ onPointerOut={() => this.#hideHelper()}
1091
+ >
1092
+ <FImage
1093
+ resource="info-outline"
1094
+ title={column.helper}
1095
+ ></FImage>
1096
+ </span>
1097
+ ) : null;
1098
+ */
1099
+ return (h("div", { class: { 'input-panel__label_container': true } }, label, fcell));
1028
1100
  }
1029
- return h(FCell, Object.assign({}, cellProps));
1101
+ return fcell;
1030
1102
  }, _KupInputPanel_renderButton = function _KupInputPanel_renderButton(cell, { name }) {
1031
1103
  const renderedButton = (h(FButton, Object.assign({ icon: cell.icon, placeholderIcon: cell.placeholderIcon, id: name }, cell.data, { wrapperClass: "form__submit" })));
1032
1104
  return renderedButton;
@@ -1446,13 +1518,13 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
1446
1518
  [FCellTypes.TABLE, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_DataTableAdapter).bind(this)],
1447
1519
  [FCellTypes.TIME, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_TimeAdapter).bind(this)],
1448
1520
  [FCellTypes.IMAGE_LIST, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_ImageListAdapter).bind(this)],
1449
- [FCellTypes.FILE_UPLOAD, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_FileUploadAdapter).bind(this)],
1450
1521
  ]);
1451
1522
  const adapter = dataAdapterMap.get(cellType);
1452
1523
  return adapter
1453
1524
  ? adapter(options, fieldLabel, currentValue, cell, col.name, layout)
1454
1525
  : null;
1455
1526
  }, _KupInputPanel_slotData = function _KupInputPanel_slotData(cell, col) {
1527
+ var _a;
1456
1528
  const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
1457
1529
  if (cellType === FCellTypes.CHIP) {
1458
1530
  return {
@@ -1465,7 +1537,11 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
1465
1537
  }
1466
1538
  if (cellType === FCellTypes.MULTI_AUTOCOMPLETE ||
1467
1539
  cellType === FCellTypes.MULTI_COMBOBOX) {
1468
- return Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CMBandACPAdapter).call(this, cell.options, col.title, null, cell)), { showDropDownIcon: true, class: '', style: { width: '100%' }, disabled: !cell.isEditable, id: col.name });
1540
+ const props = Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CMBandACPAdapter).call(this, cell.options, col.title, null, cell)), { showDropDownIcon: true, class: '', style: { width: '100%' }, disabled: !cell.isEditable, id: col.name });
1541
+ if ((_a = props === null || props === void 0 ? void 0 : props.data) === null || _a === void 0 ? void 0 : _a['kup-text-field']) {
1542
+ props.data['kup-text-field'].labelHelper = col.helper;
1543
+ }
1544
+ return props;
1469
1545
  }
1470
1546
  return null;
1471
1547
  }, _KupInputPanel_CHIAdapter = function _KupInputPanel_CHIAdapter(_options, _fieldLabel, currentValue, cell) {
@@ -1489,8 +1565,8 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
1489
1565
  cell.data.onClick = () => {
1490
1566
  __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getFunctionOnClickBTN).call(this, cell, id);
1491
1567
  };
1492
- if (cell.data.BtnMap) {
1493
- const concurrentCommand = (_b = (_a = this.data.setup) === null || _a === void 0 ? void 0 : _a.commands) === null || _b === void 0 ? void 0 : _b.find((command) => command.obj.k === cell.data.BtnMap);
1568
+ if (cell.data.mappedCommandId) {
1569
+ const concurrentCommand = (_b = (_a = this.data.setup) === null || _a === void 0 ? void 0 : _a.commands) === null || _b === void 0 ? void 0 : _b.find((command) => command.obj.k === cell.data.mappedCommandId);
1494
1570
  if (concurrentCommand) {
1495
1571
  cell.isEditable = true;
1496
1572
  cell.data.onClick = () => {
@@ -1591,8 +1667,6 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
1591
1667
  leadingLabel: fieldLabel || '',
1592
1668
  value: currentValue || '',
1593
1669
  };
1594
- }, _KupInputPanel_FileUploadAdapter = function _KupInputPanel_FileUploadAdapter(_options, _fieldLabel, currentValue, cell) {
1595
- return Object.assign({ pathString: currentValue }, cell.data);
1596
1670
  }, _KupInputPanel_TimeAdapter = function _KupInputPanel_TimeAdapter(_options, fieldLabel, currentValue) {
1597
1671
  return {
1598
1672
  data: {