@sme.up/ketchup 10.3.7 → 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 (328) hide show
  1. package/dist/cjs/{f-button-bfafefb3.js → f-button-c084046d.js} +1 -1
  2. package/dist/cjs/{f-cell-5c1b2c66.js → f-cell-2e939ef8.js} +15 -14
  3. package/dist/cjs/{f-checkbox-aaa6d45c.js → f-checkbox-e59d6bda.js} +3 -3
  4. package/dist/cjs/{f-chip-b4aebf7c.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-62195164.js → f-object-field-db5613ef.js} +3 -3
  7. package/dist/cjs/{f-paginator-utils-54bc1b31.js → f-paginator-utils-2fcf4642.js} +2 -2
  8. package/dist/cjs/{f-text-field-03e975ad.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 +527 -229
  14. package/dist/cjs/kup-box.cjs.entry.js +10 -10
  15. package/dist/cjs/kup-calendar.cjs.entry.js +12 -8
  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 +37 -19
  19. package/dist/cjs/kup-dashboard.cjs.entry.js +5 -5
  20. package/dist/cjs/{kup-data-table-helper-72dc3004.js → kup-data-table-helper-0705294e.js} +6 -2
  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 +26 -26
  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 +80 -25
  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-bb0a1490.js → kup-manager-0ce9fd30.js} +19 -7
  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-calendar/kup-calendar.js +8 -4
  47. package/dist/collection/components/kup-card/standard/kup-card-standard.js +5 -2
  48. package/dist/collection/components/kup-chip/kup-chip-declarations.js +6 -1
  49. package/dist/collection/components/kup-chip/kup-chip.js +57 -57
  50. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +5 -1
  51. package/dist/collection/components/kup-data-table/kup-data-table.css +14 -0
  52. package/dist/collection/components/kup-data-table/kup-data-table.js +305 -128
  53. package/dist/collection/components/kup-date-picker/kup-date-picker.js +8 -8
  54. package/dist/collection/components/kup-file-upload/kup-file-upload-declarations.js +3 -0
  55. package/dist/collection/components/kup-file-upload/kup-file-upload.css +9 -0
  56. package/dist/collection/components/kup-file-upload/kup-file-upload.js +135 -27
  57. package/dist/collection/components/kup-form/kup-form.js +2 -2
  58. package/dist/collection/components/kup-htm/kup-htm.css +0 -3
  59. package/dist/collection/components/kup-htm/kup-htm.js +4 -1
  60. package/dist/collection/components/kup-image-list/kup-image-list.js +3 -3
  61. package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js +1 -0
  62. package/dist/collection/components/kup-input-panel/kup-input-panel.css +9 -0
  63. package/dist/collection/components/kup-input-panel/kup-input-panel.js +90 -16
  64. package/dist/collection/components/kup-lazy/kup-lazy.js +11 -11
  65. package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
  66. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
  67. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +1 -1
  68. package/dist/collection/components/kup-object-field/kup-object-field.js +1 -1
  69. package/dist/collection/components/kup-pdf/kup-pdf.js +1 -1
  70. package/dist/collection/components/kup-planner/kup-planner.js +1 -1
  71. package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
  72. package/dist/collection/components/kup-planner/utils/custom-task-list-table.js +30 -12
  73. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2 -2
  74. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +2 -2
  75. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +3 -3
  76. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +5 -5
  77. package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +2 -2
  78. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +1 -1
  79. package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +2 -2
  80. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
  81. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
  82. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.css +1 -0
  83. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +1 -1
  84. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
  85. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
  86. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
  87. package/dist/collection/components/kup-probe/kup-probe.js +1 -1
  88. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
  89. package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
  90. package/dist/collection/components/kup-rating/kup-rating.js +1 -1
  91. package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
  92. package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
  93. package/dist/collection/components/kup-switch/kup-switch.js +1 -1
  94. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +1 -0
  95. package/dist/collection/components/kup-text-field/kup-text-field.js +27 -4
  96. package/dist/collection/components/kup-time-picker/kup-time-picker.js +1 -1
  97. package/dist/collection/components/kup-txt/kup-txt.js +1 -1
  98. package/dist/collection/components/kup-typography/kup-typography.js +2 -2
  99. package/dist/collection/components/kup-typography-list/kup-typography-list.js +1 -1
  100. package/dist/collection/f-components/f-cell/f-cell.js +5 -1
  101. package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -1
  102. package/dist/collection/f-components/f-chip/f-chip.js +1 -1
  103. package/dist/collection/f-components/f-image/f-image.js +18 -15
  104. package/dist/collection/f-components/f-label/f-label.js +4 -7
  105. package/dist/collection/f-components/f-text-field/f-text-field.js +55 -1
  106. package/dist/collection/managers/kup-data/kup-data.js +4 -3
  107. package/dist/collection/managers/kup-language/kup-language-declarations.js +2 -0
  108. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +5 -0
  109. package/dist/collection/utils/cell-utils.js +1 -1
  110. package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +2 -0
  111. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +57 -7
  112. package/dist/components/index.js +1 -1
  113. package/dist/components/kup-accordion.js +2 -2
  114. package/dist/components/kup-activity-timeline.js +2 -2
  115. package/dist/components/kup-autocomplete.js +1 -1
  116. package/dist/components/kup-badge.js +1 -1
  117. package/dist/components/kup-box.js +1 -1
  118. package/dist/components/kup-button-list.js +1 -1
  119. package/dist/components/kup-button.js +1 -1
  120. package/dist/components/kup-calendar.js +10 -6
  121. package/dist/components/kup-card-list.js +3 -3
  122. package/dist/components/kup-card.js +1 -1
  123. package/dist/components/kup-cell.js +2 -2
  124. package/dist/components/kup-chart.js +1 -1
  125. package/dist/components/kup-checkbox.js +1 -1
  126. package/dist/components/kup-chip.js +1 -1
  127. package/dist/components/kup-color-picker.js +1 -1
  128. package/dist/components/kup-combobox.js +1 -1
  129. package/dist/components/kup-custom-task-list-header.js +1 -1
  130. package/dist/components/kup-custom-task-list-table.js +1 -1
  131. package/dist/components/kup-dashboard.js +2 -2
  132. package/dist/components/kup-data-table.js +1 -1
  133. package/dist/components/kup-date-picker.js +1 -1
  134. package/dist/components/kup-dialog.js +1 -1
  135. package/dist/components/kup-drawer.js +2 -2
  136. package/dist/components/kup-dropdown-button.js +1 -1
  137. package/dist/components/kup-echart.js +1 -1
  138. package/dist/components/kup-editor.js +1 -1
  139. package/dist/components/kup-family-tree.js +3 -3
  140. package/dist/components/kup-file-upload.js +1 -1
  141. package/dist/components/kup-form.js +1 -1
  142. package/dist/components/kup-gantt-calendar.js +1 -1
  143. package/dist/components/kup-gantt.js +1 -1
  144. package/dist/components/kup-gauge.js +1 -1
  145. package/dist/components/kup-grid-renderer.js +1 -1
  146. package/dist/components/kup-grid.js +1 -1
  147. package/dist/components/kup-horizontal-scroll.js +1 -1
  148. package/dist/components/kup-htm.js +7 -4
  149. package/dist/components/kup-iframe.js +2 -2
  150. package/dist/components/kup-image-list.js +1 -1
  151. package/dist/components/kup-image.js +1 -1
  152. package/dist/components/kup-input-panel.js +76 -20
  153. package/dist/components/kup-lazy.js +13 -13
  154. package/dist/components/kup-list.js +1 -1
  155. package/dist/components/kup-magic-box.js +7 -7
  156. package/dist/components/kup-nav-bar.js +3 -3
  157. package/dist/components/kup-numeric-picker.js +3 -3
  158. package/dist/components/kup-object-field.js +3 -3
  159. package/dist/components/kup-pdf.js +3 -3
  160. package/dist/components/kup-planner-renderer.js +1 -1
  161. package/dist/components/kup-planner.js +18 -18
  162. package/dist/components/kup-probe.js +3 -3
  163. package/dist/components/kup-progress-bar.js +1 -1
  164. package/dist/components/kup-qlik.js +3 -3
  165. package/dist/components/kup-radio.js +1 -1
  166. package/dist/components/kup-rating.js +1 -1
  167. package/dist/components/kup-snackbar.js +3 -3
  168. package/dist/components/kup-spinner.js +1 -1
  169. package/dist/components/kup-standard-tooltip.js +1 -1
  170. package/dist/components/kup-switch.js +1 -1
  171. package/dist/components/kup-switcher.js +1 -1
  172. package/dist/components/kup-tab-bar.js +1 -1
  173. package/dist/components/kup-task-gantt.js +1 -1
  174. package/dist/components/kup-task-list-header.js +1 -1
  175. package/dist/components/kup-task-list-table.js +1 -1
  176. package/dist/components/kup-task-list.js +1 -1
  177. package/dist/components/kup-text-field.js +1 -1
  178. package/dist/components/kup-time-picker.js +1 -1
  179. package/dist/components/kup-toolbar.js +1 -1
  180. package/dist/components/kup-tooltip.js +1 -1
  181. package/dist/components/kup-tree.js +1 -1
  182. package/dist/components/kup-txt.js +3 -3
  183. package/dist/components/kup-typography-list.js +3 -3
  184. package/dist/components/kup-typography.js +4 -4
  185. package/dist/components/kup-vertical-scroll.js +1 -1
  186. package/dist/components/{p-9c59685c.js → p-23d0f0c7.js} +2 -2
  187. package/dist/components/{p-0448c650.js → p-2670bfd5.js} +14 -14
  188. package/dist/components/{p-072ba014.js → p-5b1056e4.js} +8 -8
  189. package/dist/components/{p-57069e5c.js → p-767fcf91.js} +1 -1
  190. package/dist/components/{p-66800070.js → p-7e706919.js} +623 -252
  191. package/dist/components/{p-970526a0.js → p-85852162.js} +19 -7
  192. package/dist/components/{p-eee85021.js → p-89b9a949.js} +2 -2
  193. package/dist/components/{p-47eafd24.js → p-9a502c5d.js} +2 -2
  194. package/dist/components/{p-bba3ee8c.js → p-9a617844.js} +3 -3
  195. package/dist/components/{p-73b82fab.js → p-9d13f3da.js} +4 -4
  196. package/dist/components/{p-5579a90c.js → p-a52b0e92.js} +30 -12
  197. package/dist/components/{p-f836c3ed.js → p-aa882232.js} +2 -2
  198. package/dist/components/{p-a70b7f3e.js → p-b057cba1.js} +2 -2
  199. package/dist/components/{p-78086e86.js → p-bbb25c58.js} +1 -1
  200. package/dist/components/{p-96d517a7.js → p-bdecbc93.js} +5 -5
  201. package/dist/components/{p-7fa7072d.js → p-cbc6b3d5.js} +2 -2
  202. package/dist/components/{p-a6da9edf.js → p-cde4d6c3.js} +4 -4
  203. package/dist/components/{p-e8d7edaf.js → p-d9bec7c8.js} +2 -2
  204. package/dist/components/{p-7b80651f.js → p-dc1ce1b4.js} +1 -1
  205. package/dist/components/{p-a266fbc3.js → p-e72fb07b.js} +2 -2
  206. package/dist/components/{p-09e09e43.js → p-f9afe0c9.js} +16 -16
  207. package/dist/esm/{f-button-3c8f4506.js → f-button-6298565d.js} +1 -1
  208. package/dist/esm/{f-cell-3f9d4de0.js → f-cell-b3f0782c.js} +15 -14
  209. package/dist/esm/{f-checkbox-5cdd1cad.js → f-checkbox-191ec2e7.js} +3 -3
  210. package/dist/esm/{f-chip-28fde4c9.js → f-chip-3ed440ef.js} +2 -2
  211. package/dist/esm/{f-image-a2ecd7c3.js → f-image-96ea1421.js} +18 -15
  212. package/dist/esm/{f-object-field-24f67438.js → f-object-field-23935da4.js} +3 -3
  213. package/dist/esm/{f-paginator-utils-3e2a0dcd.js → f-paginator-utils-a9d5c2d3.js} +2 -2
  214. package/dist/esm/{f-text-field-f64cc53e.js → f-text-field-4934ff74.js} +60 -3
  215. package/dist/esm/index.js +1 -1
  216. package/dist/esm/ketchup.js +1 -1
  217. package/dist/esm/kup-accordion.entry.js +2 -2
  218. package/dist/esm/kup-activity-timeline.entry.js +3 -3
  219. package/dist/esm/kup-autocomplete_30.entry.js +527 -229
  220. package/dist/esm/kup-box.entry.js +10 -10
  221. package/dist/esm/kup-calendar.entry.js +12 -8
  222. package/dist/esm/kup-card-list.entry.js +1 -1
  223. package/dist/esm/kup-cell.entry.js +8 -8
  224. package/dist/esm/kup-custom-task-list-header_4.entry.js +37 -19
  225. package/dist/esm/kup-dashboard.entry.js +5 -5
  226. package/dist/esm/{kup-data-table-helper-edbee21a.js → kup-data-table-helper-de9421a0.js} +6 -2
  227. package/dist/esm/kup-drawer.entry.js +1 -1
  228. package/dist/esm/kup-echart.entry.js +1 -1
  229. package/dist/esm/kup-editor.entry.js +1 -1
  230. package/dist/esm/kup-family-tree.entry.js +3 -3
  231. package/dist/esm/kup-gantt_10.entry.js +26 -26
  232. package/dist/esm/kup-grid.entry.js +1 -1
  233. package/dist/esm/kup-htm.entry.js +6 -3
  234. package/dist/esm/kup-iframe.entry.js +1 -1
  235. package/dist/esm/kup-input-panel.entry.js +80 -25
  236. package/dist/esm/kup-lazy.entry.js +12 -12
  237. package/dist/esm/kup-magic-box.entry.js +5 -5
  238. package/dist/esm/{kup-manager-7acd779a.js → kup-manager-5c23bae7.js} +19 -7
  239. package/dist/esm/kup-nav-bar.entry.js +2 -2
  240. package/dist/esm/kup-numeric-picker.entry.js +4 -4
  241. package/dist/esm/kup-object-field.entry.js +6 -6
  242. package/dist/esm/kup-pdf.entry.js +2 -2
  243. package/dist/esm/kup-planner-renderer.entry.js +2 -2
  244. package/dist/esm/kup-planner.entry.js +4 -4
  245. package/dist/esm/kup-probe.entry.js +2 -2
  246. package/dist/esm/kup-qlik.entry.js +2 -2
  247. package/dist/esm/kup-snackbar.entry.js +4 -4
  248. package/dist/esm/kup-txt.entry.js +2 -2
  249. package/dist/esm/kup-typography-list.entry.js +2 -2
  250. package/dist/esm/kup-typography.entry.js +4 -4
  251. package/dist/esm/loader.js +1 -1
  252. package/dist/ketchup/index.esm.js +1 -1
  253. package/dist/ketchup/ketchup.esm.js +1 -1
  254. package/dist/ketchup/{p-d7bfb6da.entry.js → p-001755a5.entry.js} +1 -1
  255. package/dist/ketchup/{p-c38d19f9.js → p-02e22635.js} +1 -1
  256. package/dist/ketchup/p-03d049e3.js +21 -0
  257. package/dist/ketchup/p-0bb6bfb4.entry.js +1 -0
  258. package/dist/ketchup/{p-ee752492.entry.js → p-137158e4.entry.js} +1 -1
  259. package/dist/ketchup/{p-0f3e905b.entry.js → p-143617b6.entry.js} +1 -1
  260. package/dist/ketchup/{p-98865092.entry.js → p-27f26f4b.entry.js} +1 -1
  261. package/dist/ketchup/{p-ab5dcfce.entry.js → p-29af64ff.entry.js} +1 -1
  262. package/dist/ketchup/{p-5c538668.entry.js → p-33a6e698.entry.js} +1 -1
  263. package/dist/ketchup/{p-00e3a2c7.entry.js → p-424c2f64.entry.js} +1 -1
  264. package/dist/ketchup/{p-0f78bd11.entry.js → p-4632e407.entry.js} +2 -2
  265. package/dist/ketchup/{p-001bf9b3.entry.js → p-6741f3f6.entry.js} +1 -1
  266. package/dist/ketchup/p-687b7642.entry.js +8 -0
  267. package/dist/ketchup/{p-0a4869d8.entry.js → p-68835d71.entry.js} +1 -1
  268. package/dist/ketchup/{p-5cdbe34b.entry.js → p-6c1e1780.entry.js} +1 -1
  269. package/dist/ketchup/{p-05da127e.entry.js → p-6ce64af5.entry.js} +1 -1
  270. package/dist/ketchup/{p-864d384f.entry.js → p-7775e947.entry.js} +1 -1
  271. package/dist/ketchup/p-7d25580b.entry.js +1 -0
  272. package/dist/ketchup/p-95346c81.js +1 -0
  273. package/dist/ketchup/p-a3394095.js +1 -0
  274. package/dist/ketchup/{p-a5589352.entry.js → p-a76b0d93.entry.js} +1 -1
  275. package/dist/ketchup/{p-cb4c3ec6.entry.js → p-ae1f69c7.entry.js} +1 -1
  276. package/dist/ketchup/{p-92d5502a.entry.js → p-b47dc6ac.entry.js} +1 -1
  277. package/dist/ketchup/{p-4e8d34ad.entry.js → p-b509455c.entry.js} +1 -1
  278. package/dist/ketchup/{p-bbdc671b.entry.js → p-b67d94a0.entry.js} +1 -1
  279. package/dist/ketchup/{p-d643a6b0.entry.js → p-bc75c526.entry.js} +1 -1
  280. package/dist/ketchup/p-c3eca951.entry.js +16 -0
  281. package/dist/ketchup/{p-f446a5dd.entry.js → p-cc9d71a7.entry.js} +1 -1
  282. package/dist/ketchup/p-cc9db65d.js +1 -0
  283. package/dist/ketchup/p-cf5e1d07.js +1 -0
  284. package/dist/ketchup/{p-e3098793.js → p-da273b4d.js} +1 -1
  285. package/dist/ketchup/p-da5d5eea.js +1 -0
  286. package/dist/ketchup/p-dba5100a.entry.js +1 -0
  287. package/dist/ketchup/{p-ebcf33a3.entry.js → p-dc425c68.entry.js} +1 -1
  288. package/dist/ketchup/p-e18d9110.entry.js +1 -0
  289. package/dist/ketchup/{p-9432bc02.entry.js → p-e755042e.entry.js} +1 -1
  290. package/dist/ketchup/{p-91184407.entry.js → p-ec66f939.entry.js} +1 -1
  291. package/dist/ketchup/{p-60c3a948.entry.js → p-ece991ba.entry.js} +1 -1
  292. package/dist/ketchup/{p-9f9428d1.js → p-ef3112d4.js} +1 -1
  293. package/dist/ketchup/{p-9667a3f6.entry.js → p-f3319227.entry.js} +1 -1
  294. package/dist/ketchup/{p-6429a3bc.entry.js → p-f7da2ca7.entry.js} +1 -1
  295. package/dist/ketchup/{p-c4224227.js → p-ff735e62.js} +1 -1
  296. package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +5 -1
  297. package/dist/types/components/kup-chip/kup-chip.d.ts +15 -15
  298. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +3 -0
  299. package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +1 -1
  300. package/dist/types/components/kup-data-table/kup-data-table.d.ts +2 -0
  301. package/dist/types/components/kup-file-upload/kup-file-upload-declarations.d.ts +4 -1
  302. package/dist/types/components/kup-file-upload/kup-file-upload.d.ts +11 -2
  303. package/dist/types/components/kup-htm/kup-htm.d.ts +1 -0
  304. package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +1 -0
  305. package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +5 -0
  306. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +1 -0
  307. package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
  308. package/dist/types/components.d.ts +33 -2
  309. package/dist/types/f-components/f-cell/f-cell.d.ts +5 -0
  310. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
  311. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
  312. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +3 -1
  313. package/dist/types/utils/cell-utils.d.ts +1 -0
  314. package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +3 -1
  315. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +3 -2
  316. package/package.json +1 -1
  317. package/dist/ketchup/p-003617f2.entry.js +0 -1
  318. package/dist/ketchup/p-216b5deb.js +0 -1
  319. package/dist/ketchup/p-3823781f.entry.js +0 -1
  320. package/dist/ketchup/p-39ab2443.entry.js +0 -1
  321. package/dist/ketchup/p-3cab6420.js +0 -1
  322. package/dist/ketchup/p-561db8b0.entry.js +0 -1
  323. package/dist/ketchup/p-607b56b3.entry.js +0 -8
  324. package/dist/ketchup/p-84a053a8.js +0 -21
  325. package/dist/ketchup/p-90345661.entry.js +0 -16
  326. package/dist/ketchup/p-b7b54a12.js +0 -1
  327. package/dist/ketchup/p-c00b4f52.js +0 -1
  328. package/dist/ketchup/p-ebcd12d5.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";
@@ -42,25 +42,32 @@ export class KupFileUpload {
42
42
  this.FupMul = 'false';
43
43
  this.FupAut = 'false';
44
44
  this.FupDir = null;
45
+ this.FupAty = null;
45
46
  this.error = undefined;
46
47
  this.inputRef = undefined;
47
48
  this.tempFiles = [];
48
49
  this.pathFiles = [];
49
- this.uploadSuccess = false;
50
50
  this.showSpinner = false;
51
51
  this.multiUpload = false;
52
52
  this.autoUpload = false;
53
+ this.acceptedFiles = null;
54
+ this.isValidDropFiles = true;
55
+ this.fupError = null;
53
56
  }
54
57
  //#endregion
55
58
  //#region WATCHERS
56
59
  /*-------------------------------------------------*/
57
60
  /* W a t c h e r s */
58
61
  /*-------------------------------------------------*/
62
+ onErrorChange() {
63
+ this.fupError = this.error;
64
+ }
59
65
  onDataChanged() {
60
66
  var _a;
61
- this.uploadSuccess = false;
67
+ this.fupError = '';
62
68
  __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleCancel).call(this);
63
- 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())) || [];
64
71
  }
65
72
  onFupMulChanged() {
66
73
  this.multiUpload = this.FupMul === 'true';
@@ -68,6 +75,10 @@ export class KupFileUpload {
68
75
  onFupAutChanged() {
69
76
  this.autoUpload = this.FupAut === 'true';
70
77
  }
78
+ onFupFupAtyChanged() {
79
+ var _a;
80
+ this.acceptedFiles = (_a = this.FupAty) === null || _a === void 0 ? void 0 : _a.split('|').map((ext) => `.${ext}`);
81
+ }
71
82
  //#endregion
72
83
  //#region PUBLIC METHODS
73
84
  /*-------------------------------------------------*/
@@ -102,7 +113,6 @@ export class KupFileUpload {
102
113
  this.setLoading(false);
103
114
  if (success && pathFiles) {
104
115
  __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleCancel).call(this);
105
- this.uploadSuccess = success;
106
116
  this.pathFiles = this.multiUpload
107
117
  ? [...this.pathFiles, ...pathFiles.split(';')]
108
118
  : [pathFiles.split(';')[0]];
@@ -126,11 +136,13 @@ export class KupFileUpload {
126
136
  /* L i f e c y c l e H o o k s */
127
137
  /*-------------------------------------------------*/
128
138
  componentWillLoad() {
139
+ var _a;
129
140
  __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").debug.logLoad(this, false);
130
141
  __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.register(this);
131
142
  __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").theme.register(this);
132
143
  this.multiUpload = this.FupMul === 'true';
133
144
  this.autoUpload = this.FupAut === 'true';
145
+ this.acceptedFiles = (_a = this.FupAty) === null || _a === void 0 ? void 0 : _a.split('|').map((ext) => `.${ext}`);
134
146
  }
135
147
  componentDidLoad() {
136
148
  this.kupReady.emit({ comp: this, id: this.rootElement.id });
@@ -143,10 +155,16 @@ export class KupFileUpload {
143
155
  __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").debug.logRender(this, true);
144
156
  }
145
157
  render() {
146
- return (h(Host, { key: 'f412a49eeb30049bdc81a66ab6337e3cfba02b81' }, h("style", { key: '00f66f5328af5e41c35576acbdc73d84b9152cfc' }, __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '7a5f52038e5b41ed7639a2acc0db051b14c5e6e4', id: componentWrapperId }, h("div", { key: 'aff6d5be5a5ca600a1950a2195f9a26ae6f164c6', class: {
158
+ var _a;
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: {
147
160
  'file-upload': true,
148
161
  'file-upload-spinner': this.showSpinner,
149
- }, onDrop: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleDrop).bind(this), onDragOver: (event) => event.preventDefault() }, h("input", { key: '2d7d9cce86ee2dccb4183105bd2f87fbfbd8e771', type: "file", ref: (el) => (this.inputRef = el), onChange: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleFileChange).bind(this), multiple: this.multiUpload, hidden: true }), h("div", { key: 'ed2ab48eb2cb2c6cfde66c1cc3ffd82a40ec25b9', class: "file-upload__buttons" }, h(FButton, { key: '419105498c36ca6b6af5ca01d5ec7c751e593172', 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: '1b7549c1063dd8c2f17b17b1b8c59ef02937c66d' }, h(FButton, { key: 'c67ce873043022be3d1d2f7bddad747940993b2f', 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: '4c6779d87c9bf1fc272afdab69b798aedfc222fc', 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: '39033957eb653997df1241f583bb361fe424ae42', class: "file-upload__error" }, h("span", { key: 'b862700c37fac995a820c8a0e21a168486f097ae', 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: '33fae247104f72981e072659f04f7fff71e0785a', class: "file-upload__spinner-container" }, h("kup-spinner", { key: 'f86cb406e5b9476c9f37f02845b48e8b41ca191d', 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" })))))));
150
168
  }
151
169
  disconnectedCallback() {
152
170
  __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.unregister(this);
@@ -274,6 +292,27 @@ export class KupFileUpload {
274
292
  "reflect": false,
275
293
  "defaultValue": "null"
276
294
  },
295
+ "FupAty": {
296
+ "type": "string",
297
+ "mutable": false,
298
+ "complexType": {
299
+ "original": "string",
300
+ "resolved": "string",
301
+ "references": {}
302
+ },
303
+ "required": false,
304
+ "optional": false,
305
+ "docs": {
306
+ "tags": [{
307
+ "name": "default",
308
+ "text": "null"
309
+ }],
310
+ "text": "Sets the accepted extensions"
311
+ },
312
+ "attribute": "fup-aty",
313
+ "reflect": false,
314
+ "defaultValue": "null"
315
+ },
277
316
  "error": {
278
317
  "type": "string",
279
318
  "mutable": false,
@@ -287,7 +326,7 @@ export class KupFileUpload {
287
326
  "docs": {
288
327
  "tags": [{
289
328
  "name": "default",
290
- "text": "'false'"
329
+ "text": "'undefined'"
291
330
  }],
292
331
  "text": "Error string to render in component"
293
332
  },
@@ -302,10 +341,12 @@ export class KupFileUpload {
302
341
  "inputRef": {},
303
342
  "tempFiles": {},
304
343
  "pathFiles": {},
305
- "uploadSuccess": {},
306
344
  "showSpinner": {},
307
345
  "multiUpload": {},
308
- "autoUpload": {}
346
+ "autoUpload": {},
347
+ "acceptedFiles": {},
348
+ "isValidDropFiles": {},
349
+ "fupError": {}
309
350
  };
310
351
  }
311
352
  static get events() {
@@ -511,6 +552,9 @@ export class KupFileUpload {
511
552
  static get elementRef() { return "rootElement"; }
512
553
  static get watchers() {
513
554
  return [{
555
+ "propName": "error",
556
+ "methodName": "onErrorChange"
557
+ }, {
514
558
  "propName": "pathString",
515
559
  "methodName": "onDataChanged"
516
560
  }, {
@@ -519,17 +563,49 @@ export class KupFileUpload {
519
563
  }, {
520
564
  "propName": "FupAut",
521
565
  "methodName": "onFupAutChanged"
566
+ }, {
567
+ "propName": "FupAty",
568
+ "methodName": "onFupFupAtyChanged"
522
569
  }];
523
570
  }
524
571
  }
525
572
  _KupFileUpload_kupManager = new WeakMap(), _KupFileUpload_previewMap = new WeakMap(), _KupFileUpload_instances = new WeakSet(), _KupFileUpload_handleClick = function _KupFileUpload_handleClick() {
526
573
  this.inputRef.click();
527
574
  }, _KupFileUpload_handleFileChange = function _KupFileUpload_handleFileChange(event) {
528
- this.uploadSuccess = false;
529
- this.error = '';
530
- const newFiles = Array.from(event.target.files);
531
- 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
+ }
532
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;
533
609
  if (this.autoUpload) {
534
610
  this.kupUpload.emit({
535
611
  comp: this,
@@ -538,19 +614,6 @@ _KupFileUpload_kupManager = new WeakMap(), _KupFileUpload_previewMap = new WeakM
538
614
  });
539
615
  this.setLoading(true);
540
616
  }
541
- }, _KupFileUpload_handleFileRemove = function _KupFileUpload_handleFileRemove(index) {
542
- this.tempFiles = [
543
- ...this.tempFiles.splice(0, index),
544
- ...this.tempFiles.splice(index + 1),
545
- ];
546
- }, _KupFileUpload_handleDrop = function _KupFileUpload_handleDrop(event) {
547
- event.preventDefault();
548
- this.uploadSuccess = false;
549
- const droppedFiles = event.dataTransfer.files;
550
- if (droppedFiles.length > 0) {
551
- const newFiles = Array.from(droppedFiles);
552
- this.tempFiles = [...this.tempFiles, ...newFiles];
553
- }
554
617
  }, _KupFileUpload_handleCancel = function _KupFileUpload_handleCancel() {
555
618
  this.tempFiles = [];
556
619
  }, _KupFileUpload_getPreview = function _KupFileUpload_getPreview(file) {
@@ -577,4 +640,49 @@ _KupFileUpload_kupManager = new WeakMap(), _KupFileUpload_previewMap = new WeakM
577
640
  files: this.tempFiles,
578
641
  });
579
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() : '';
580
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
  }