@sme.up/ketchup 10.3.6 → 10.3.7

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 (285) hide show
  1. package/dist/cjs/{f-cell-e5ff9c98.js → f-cell-5c1b2c66.js} +21 -13
  2. package/dist/cjs/{f-chip-f35c1b42.js → f-chip-b4aebf7c.js} +1 -1
  3. package/dist/cjs/{f-object-field-04065abd.js → f-object-field-62195164.js} +2 -2
  4. package/dist/cjs/{f-paginator-utils-3ada5c71.js → f-paginator-utils-54bc1b31.js} +9 -7
  5. package/dist/cjs/{f-text-field-0eda27cd.js → f-text-field-03e975ad.js} +2 -5
  6. package/dist/cjs/index.cjs.js +1 -1
  7. package/dist/cjs/ketchup.cjs.js +1 -1
  8. package/dist/cjs/kup-accordion.cjs.entry.js +1 -1
  9. package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
  10. package/dist/cjs/kup-autocomplete_30.cjs.entry.js +131 -83
  11. package/dist/cjs/kup-box.cjs.entry.js +7 -7
  12. package/dist/cjs/kup-calendar.cjs.entry.js +7 -4
  13. package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
  14. package/dist/cjs/kup-cell.cjs.entry.js +5 -5
  15. package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +7 -7
  16. package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
  17. package/dist/cjs/{kup-data-table-helper-0b79fb90.js → kup-data-table-helper-72dc3004.js} +3 -3
  18. package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
  19. package/dist/cjs/kup-echart.cjs.entry.js +48 -6
  20. package/dist/cjs/kup-editor.cjs.entry.js +1 -1
  21. package/dist/cjs/kup-family-tree.cjs.entry.js +1 -1
  22. package/dist/cjs/kup-gantt_10.cjs.entry.js +23 -23
  23. package/dist/cjs/kup-grid.cjs.entry.js +1 -1
  24. package/dist/cjs/kup-htm.cjs.entry.js +2 -2
  25. package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
  26. package/dist/cjs/kup-input-panel.cjs.entry.js +168 -28
  27. package/dist/cjs/kup-lazy.cjs.entry.js +12 -12
  28. package/dist/cjs/kup-magic-box.cjs.entry.js +4 -4
  29. package/dist/cjs/{kup-manager-5cdad0f5.js → kup-manager-bb0a1490.js} +6 -10
  30. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  31. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  32. package/dist/cjs/kup-object-field.cjs.entry.js +4 -4
  33. package/dist/cjs/kup-pdf.cjs.entry.js +2 -2
  34. package/dist/cjs/kup-planner-renderer.cjs.entry.js +2 -2
  35. package/dist/cjs/kup-planner.cjs.entry.js +3 -3
  36. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  37. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  38. package/dist/cjs/kup-snackbar.cjs.entry.js +2 -2
  39. package/dist/cjs/kup-txt.cjs.entry.js +2 -2
  40. package/dist/cjs/kup-typography-list.cjs.entry.js +2 -2
  41. package/dist/cjs/kup-typography.cjs.entry.js +3 -3
  42. package/dist/cjs/loader.cjs.js +1 -1
  43. package/dist/collection/assets/echart.js +343 -169
  44. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +4 -2
  45. package/dist/collection/components/kup-combobox/kup-combobox.js +4 -2
  46. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -0
  47. package/dist/collection/components/kup-data-table/kup-data-table.css +7 -4
  48. package/dist/collection/components/kup-data-table/kup-data-table.js +14 -11
  49. package/dist/collection/components/kup-echart/kup-echart.js +47 -5
  50. package/dist/collection/components/kup-file-upload/kup-file-upload-declarations.js +3 -1
  51. package/dist/collection/components/kup-file-upload/kup-file-upload.css +13 -0
  52. package/dist/collection/components/kup-file-upload/kup-file-upload.js +181 -25
  53. package/dist/collection/components/kup-form/kup-form.js +2 -2
  54. package/dist/collection/components/kup-htm/kup-htm.js +1 -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.js +182 -22
  57. package/dist/collection/components/kup-lazy/kup-lazy.js +11 -11
  58. package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
  59. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
  60. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +1 -1
  61. package/dist/collection/components/kup-object-field/kup-object-field.js +1 -1
  62. package/dist/collection/components/kup-pdf/kup-pdf.js +1 -1
  63. package/dist/collection/components/kup-planner/kup-planner.js +1 -1
  64. package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
  65. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2 -2
  66. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +2 -2
  67. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +3 -3
  68. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +5 -5
  69. package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +2 -2
  70. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +1 -1
  71. package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +2 -2
  72. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
  73. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
  74. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +1 -1
  75. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
  76. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
  77. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
  78. package/dist/collection/components/kup-probe/kup-probe.js +1 -1
  79. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
  80. package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
  81. package/dist/collection/components/kup-rating/kup-rating.js +1 -1
  82. package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
  83. package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
  84. package/dist/collection/components/kup-switch/kup-switch.js +1 -1
  85. package/dist/collection/components/kup-time-picker/kup-time-picker.js +1 -1
  86. package/dist/collection/components/kup-txt/kup-txt.js +1 -1
  87. package/dist/collection/components/kup-typography/kup-typography.js +2 -2
  88. package/dist/collection/components/kup-typography-list/kup-typography-list.js +1 -1
  89. package/dist/collection/f-components/f-cell/f-cell.js +13 -7
  90. package/dist/collection/f-components/f-paginator/f-paginator.js +1 -1
  91. package/dist/collection/f-components/f-radio/f-radio.js +3 -1
  92. package/dist/collection/f-components/f-text-field/f-text-field.js +1 -4
  93. package/dist/collection/utils/cell-utils.js +2 -7
  94. package/dist/components/index.js +1 -1
  95. package/dist/components/kup-accordion.js +2 -2
  96. package/dist/components/kup-activity-timeline.js +2 -2
  97. package/dist/components/kup-autocomplete.js +1 -1
  98. package/dist/components/kup-badge.js +1 -1
  99. package/dist/components/kup-box.js +1 -1
  100. package/dist/components/kup-button-list.js +1 -1
  101. package/dist/components/kup-button.js +1 -1
  102. package/dist/components/kup-calendar.js +7 -4
  103. package/dist/components/kup-card-list.js +3 -3
  104. package/dist/components/kup-card.js +1 -1
  105. package/dist/components/kup-cell.js +2 -2
  106. package/dist/components/kup-chart.js +1 -1
  107. package/dist/components/kup-checkbox.js +1 -1
  108. package/dist/components/kup-chip.js +1 -1
  109. package/dist/components/kup-color-picker.js +1 -1
  110. package/dist/components/kup-combobox.js +1 -1
  111. package/dist/components/kup-custom-task-list-header.js +1 -1
  112. package/dist/components/kup-dashboard.js +2 -2
  113. package/dist/components/kup-data-table.js +1 -1
  114. package/dist/components/kup-date-picker.js +1 -1
  115. package/dist/components/kup-dialog.js +1 -1
  116. package/dist/components/kup-drawer.js +2 -2
  117. package/dist/components/kup-dropdown-button.js +1 -1
  118. package/dist/components/kup-echart.js +1 -1
  119. package/dist/components/kup-editor.js +1 -1
  120. package/dist/components/kup-family-tree.js +3 -3
  121. package/dist/components/kup-file-upload.js +1 -1
  122. package/dist/components/kup-form.js +1 -1
  123. package/dist/components/kup-gantt-calendar.js +1 -1
  124. package/dist/components/kup-gantt.js +1 -1
  125. package/dist/components/kup-gauge.js +1 -1
  126. package/dist/components/kup-grid-renderer.js +1 -1
  127. package/dist/components/kup-grid.js +1 -1
  128. package/dist/components/kup-horizontal-scroll.js +1 -1
  129. package/dist/components/kup-htm.js +3 -3
  130. package/dist/components/kup-iframe.js +2 -2
  131. package/dist/components/kup-image-list.js +1 -1
  132. package/dist/components/kup-image.js +1 -1
  133. package/dist/components/kup-input-panel.js +166 -26
  134. package/dist/components/kup-lazy.js +13 -13
  135. package/dist/components/kup-list.js +1 -1
  136. package/dist/components/kup-magic-box.js +7 -7
  137. package/dist/components/kup-nav-bar.js +3 -3
  138. package/dist/components/kup-numeric-picker.js +3 -3
  139. package/dist/components/kup-object-field.js +3 -3
  140. package/dist/components/kup-pdf.js +3 -3
  141. package/dist/components/kup-planner-renderer.js +1 -1
  142. package/dist/components/kup-planner.js +17 -17
  143. package/dist/components/kup-probe.js +3 -3
  144. package/dist/components/kup-progress-bar.js +1 -1
  145. package/dist/components/kup-qlik.js +3 -3
  146. package/dist/components/kup-radio.js +1 -1
  147. package/dist/components/kup-rating.js +1 -1
  148. package/dist/components/kup-snackbar.js +3 -3
  149. package/dist/components/kup-spinner.js +1 -1
  150. package/dist/components/kup-standard-tooltip.js +1 -1
  151. package/dist/components/kup-switch.js +1 -1
  152. package/dist/components/kup-switcher.js +1 -1
  153. package/dist/components/kup-tab-bar.js +1 -1
  154. package/dist/components/kup-task-gantt.js +1 -1
  155. package/dist/components/kup-task-list-header.js +1 -1
  156. package/dist/components/kup-task-list-table.js +1 -1
  157. package/dist/components/kup-task-list.js +1 -1
  158. package/dist/components/kup-text-field.js +1 -1
  159. package/dist/components/kup-time-picker.js +1 -1
  160. package/dist/components/kup-toolbar.js +1 -1
  161. package/dist/components/kup-tooltip.js +1 -1
  162. package/dist/components/kup-tree.js +1 -1
  163. package/dist/components/kup-txt.js +3 -3
  164. package/dist/components/kup-typography-list.js +3 -3
  165. package/dist/components/kup-typography.js +4 -4
  166. package/dist/components/kup-vertical-scroll.js +1 -1
  167. package/dist/components/{p-b45eb398.js → p-0448c650.js} +13 -13
  168. package/dist/components/{p-7aa9d49d.js → p-072ba014.js} +7 -7
  169. package/dist/components/{p-28f24feb.js → p-09e09e43.js} +15 -15
  170. package/dist/components/{p-af0a6cfe.js → p-47eafd24.js} +2 -2
  171. package/dist/components/{p-33cf89e0.js → p-57069e5c.js} +1 -1
  172. package/dist/components/{p-c061deb1.js → p-66800070.js} +166 -101
  173. package/dist/components/{p-28774fba.js → p-73b82fab.js} +4 -4
  174. package/dist/components/{p-57a120a5.js → p-78086e86.js} +1 -1
  175. package/dist/components/{p-46ec5845.js → p-7b80651f.js} +1 -1
  176. package/dist/components/{p-34ed7a73.js → p-7fa7072d.js} +2 -2
  177. package/dist/components/{p-b87bd975.js → p-96d517a7.js} +5 -5
  178. package/dist/components/{p-df77b97b.js → p-970526a0.js} +6 -10
  179. package/dist/components/{p-daa07bb7.js → p-9c59685c.js} +1 -1
  180. package/dist/components/{p-ae3013bd.js → p-a266fbc3.js} +2 -2
  181. package/dist/components/{p-5db0bb55.js → p-a6da9edf.js} +2 -2
  182. package/dist/components/{p-edac29ad.js → p-a70b7f3e.js} +2 -2
  183. package/dist/components/{p-394a36af.js → p-bba3ee8c.js} +3 -3
  184. package/dist/components/{p-398198d3.js → p-e8d7edaf.js} +49 -7
  185. package/dist/components/{p-5e31c839.js → p-eee85021.js} +2 -2
  186. package/dist/components/{p-d3a8c2ba.js → p-f836c3ed.js} +2 -2
  187. package/dist/esm/{f-cell-d72f5a9c.js → f-cell-3f9d4de0.js} +21 -13
  188. package/dist/esm/{f-chip-663db488.js → f-chip-28fde4c9.js} +1 -1
  189. package/dist/esm/{f-object-field-afe7604f.js → f-object-field-24f67438.js} +2 -2
  190. package/dist/esm/{f-paginator-utils-b6924c55.js → f-paginator-utils-3e2a0dcd.js} +9 -7
  191. package/dist/esm/{f-text-field-40f1ad00.js → f-text-field-f64cc53e.js} +2 -5
  192. package/dist/esm/index.js +1 -1
  193. package/dist/esm/ketchup.js +1 -1
  194. package/dist/esm/kup-accordion.entry.js +1 -1
  195. package/dist/esm/kup-activity-timeline.entry.js +2 -2
  196. package/dist/esm/kup-autocomplete_30.entry.js +131 -83
  197. package/dist/esm/kup-box.entry.js +7 -7
  198. package/dist/esm/kup-calendar.entry.js +7 -4
  199. package/dist/esm/kup-card-list.entry.js +1 -1
  200. package/dist/esm/kup-cell.entry.js +5 -5
  201. package/dist/esm/kup-custom-task-list-header_4.entry.js +7 -7
  202. package/dist/esm/kup-dashboard.entry.js +2 -2
  203. package/dist/esm/{kup-data-table-helper-8f020338.js → kup-data-table-helper-edbee21a.js} +3 -3
  204. package/dist/esm/kup-drawer.entry.js +1 -1
  205. package/dist/esm/kup-echart.entry.js +48 -6
  206. package/dist/esm/kup-editor.entry.js +1 -1
  207. package/dist/esm/kup-family-tree.entry.js +1 -1
  208. package/dist/esm/kup-gantt_10.entry.js +23 -23
  209. package/dist/esm/kup-grid.entry.js +1 -1
  210. package/dist/esm/kup-htm.entry.js +2 -2
  211. package/dist/esm/kup-iframe.entry.js +1 -1
  212. package/dist/esm/kup-input-panel.entry.js +168 -28
  213. package/dist/esm/kup-lazy.entry.js +12 -12
  214. package/dist/esm/kup-magic-box.entry.js +4 -4
  215. package/dist/esm/{kup-manager-b367be3b.js → kup-manager-7acd779a.js} +6 -10
  216. package/dist/esm/kup-nav-bar.entry.js +2 -2
  217. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  218. package/dist/esm/kup-object-field.entry.js +4 -4
  219. package/dist/esm/kup-pdf.entry.js +2 -2
  220. package/dist/esm/kup-planner-renderer.entry.js +2 -2
  221. package/dist/esm/kup-planner.entry.js +3 -3
  222. package/dist/esm/kup-probe.entry.js +2 -2
  223. package/dist/esm/kup-qlik.entry.js +2 -2
  224. package/dist/esm/kup-snackbar.entry.js +2 -2
  225. package/dist/esm/kup-txt.entry.js +2 -2
  226. package/dist/esm/kup-typography-list.entry.js +2 -2
  227. package/dist/esm/kup-typography.entry.js +3 -3
  228. package/dist/esm/loader.js +1 -1
  229. package/dist/ketchup/index.esm.js +1 -1
  230. package/dist/ketchup/ketchup.esm.js +1 -1
  231. package/dist/ketchup/{p-8bc2888a.entry.js → p-001bf9b3.entry.js} +1 -1
  232. package/dist/ketchup/p-003617f2.entry.js +1 -0
  233. package/dist/ketchup/{p-17b25b3d.entry.js → p-00e3a2c7.entry.js} +1 -1
  234. package/dist/ketchup/{p-ebf955a8.entry.js → p-05da127e.entry.js} +1 -1
  235. package/dist/ketchup/{p-4735c623.entry.js → p-0a4869d8.entry.js} +1 -1
  236. package/dist/ketchup/{p-fac09a35.entry.js → p-0f3e905b.entry.js} +1 -1
  237. package/dist/ketchup/{p-b0550f15.entry.js → p-0f78bd11.entry.js} +2 -2
  238. package/dist/ketchup/p-216b5deb.js +1 -0
  239. package/dist/ketchup/p-3823781f.entry.js +1 -0
  240. package/dist/ketchup/{p-def6d8b4.entry.js → p-39ab2443.entry.js} +1 -1
  241. package/dist/ketchup/{p-b9350213.entry.js → p-4e8d34ad.entry.js} +1 -1
  242. package/dist/ketchup/{p-75deebdb.entry.js → p-561db8b0.entry.js} +1 -1
  243. package/dist/ketchup/{p-c2531d28.entry.js → p-5c538668.entry.js} +1 -1
  244. package/dist/ketchup/{p-9ff4c3e5.entry.js → p-5cdbe34b.entry.js} +1 -1
  245. package/dist/ketchup/p-607b56b3.entry.js +8 -0
  246. package/dist/ketchup/{p-f2bfb53c.entry.js → p-60c3a948.entry.js} +1 -1
  247. package/dist/ketchup/{p-62edfd5a.entry.js → p-6429a3bc.entry.js} +1 -1
  248. package/dist/ketchup/{p-d696e519.js → p-84a053a8.js} +1 -1
  249. package/dist/ketchup/{p-c0928fec.entry.js → p-864d384f.entry.js} +1 -1
  250. package/dist/ketchup/{p-43bfca60.entry.js → p-90345661.entry.js} +2 -2
  251. package/dist/ketchup/{p-928adf93.entry.js → p-91184407.entry.js} +1 -1
  252. package/dist/ketchup/{p-5bf264dd.entry.js → p-92d5502a.entry.js} +1 -1
  253. package/dist/ketchup/{p-ec1129bf.entry.js → p-9432bc02.entry.js} +1 -1
  254. package/dist/ketchup/{p-6e6d3296.entry.js → p-9667a3f6.entry.js} +1 -1
  255. package/dist/ketchup/{p-26a20d81.entry.js → p-98865092.entry.js} +1 -1
  256. package/dist/ketchup/{p-4c8edfb1.entry.js → p-a5589352.entry.js} +1 -1
  257. package/dist/ketchup/{p-6b185239.entry.js → p-ab5dcfce.entry.js} +1 -1
  258. package/dist/ketchup/p-b7b54a12.js +1 -0
  259. package/dist/ketchup/{p-32ced542.entry.js → p-bbdc671b.entry.js} +1 -1
  260. package/dist/ketchup/p-c00b4f52.js +1 -0
  261. package/dist/ketchup/p-c38d19f9.js +1 -0
  262. package/dist/ketchup/{p-26206b66.entry.js → p-cb4c3ec6.entry.js} +1 -1
  263. package/dist/ketchup/{p-9c13c092.entry.js → p-d643a6b0.entry.js} +1 -1
  264. package/dist/ketchup/{p-0666ba27.entry.js → p-d7bfb6da.entry.js} +2 -2
  265. package/dist/ketchup/{p-51cc836a.js → p-e3098793.js} +1 -1
  266. package/dist/ketchup/p-ebcd12d5.js +1 -0
  267. package/dist/ketchup/{p-941beedb.entry.js → p-ebcf33a3.entry.js} +1 -1
  268. package/dist/ketchup/{p-006b5782.entry.js → p-ee752492.entry.js} +1 -1
  269. package/dist/ketchup/{p-4af4b7d3.entry.js → p-f446a5dd.entry.js} +1 -1
  270. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +2 -1
  271. package/dist/types/components/kup-file-upload/kup-file-upload-declarations.d.ts +6 -1
  272. package/dist/types/components/kup-file-upload/kup-file-upload.d.ts +31 -5
  273. package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +2 -1
  274. package/dist/types/components.d.ts +55 -11
  275. package/dist/types/f-components/f-radio/f-radio-declarations.d.ts +1 -0
  276. package/dist/types/utils/cell-utils.d.ts +3 -1
  277. package/package.json +4 -1
  278. package/dist/ketchup/p-058def11.entry.js +0 -1
  279. package/dist/ketchup/p-29c07479.entry.js +0 -8
  280. package/dist/ketchup/p-2e012afe.js +0 -1
  281. package/dist/ketchup/p-8be7a37f.js +0 -1
  282. package/dist/ketchup/p-b39c7a22.js +0 -1
  283. package/dist/ketchup/p-c109ce22.js +0 -1
  284. package/dist/ketchup/p-d49f1a0d.js +0 -1
  285. package/dist/ketchup/p-eb771c1b.entry.js +0 -1
@@ -328,12 +328,14 @@ export class KupCombobox {
328
328
  : false,
329
329
  showMarker: this.showMarker,
330
330
  legacyLook: this.legacyLook,
331
- size: getSizeOfInputElement(this.data, this.displayMode, this.size),
331
+ size: this.size
332
+ ? this.size
333
+ : getSizeOfInputElement(this.data, this.displayMode, this.size),
332
334
  title: (_a = this.displayedValue) !== null && _a !== void 0 ? _a : '',
333
335
  };
334
336
  const fullHeight = this.rootElement.classList.contains('kup-full-height');
335
337
  const fullWidth = this.rootElement.classList.contains('kup-full-width');
336
- return (h(Host, { key: 'b419cdf58d190601c58d0ab1501e6cfeeb215c4f', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet(this, _KupCombobox_elStyle, "f") }, h("style", { key: '9c5b4ad2ae9303e607ab0667cd31d2fe95f50524' }, __classPrivateFieldGet(this, _KupCombobox_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '759809bb42d7f30abdcb5db1abb4a0e5689fc731', id: componentWrapperId, style: __classPrivateFieldGet(this, _KupCombobox_elStyle, "f") }, h(FTextField, Object.assign({ key: '9e864b76be8ad6602186797f68d237980ebd307d' }, props, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, trailingIcon: true, icon: this.showDropDownIcon
338
+ return (h(Host, { key: '8bb8eace416a6799a32f5d5222759ead3525ed7d', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet(this, _KupCombobox_elStyle, "f") }, h("style", { key: 'bf9817caafcbd303719c862f4f84111ef6da27c1' }, __classPrivateFieldGet(this, _KupCombobox_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '1052268f4d6e8227b3fdc6c6a25ea2004f21d197', id: componentWrapperId, style: __classPrivateFieldGet(this, _KupCombobox_elStyle, "f") }, h(FTextField, Object.assign({ key: 'df2cf6672cfe3c9360476df936cedff6449861b6' }, props, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, trailingIcon: true, icon: this.showDropDownIcon
337
339
  ? KupThemeIconValues.DROPDOWN
338
340
  : null, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupIconClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => this.onKupInput(), onIconClick: () => this.onKupIconClick(), onClearIconClick: () => this.onKupClearIconClick() }))), __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_prepList).call(this)));
339
341
  }
@@ -67,6 +67,7 @@ export var KupDataTableProps;
67
67
  KupDataTableProps["transpose"] = "Transposes the data of the data table.";
68
68
  KupDataTableProps["updatableData"] = "When set to true, editable cells will be rendered using input components and update button will appair below the matrix";
69
69
  KupDataTableProps["updateOnClick"] = "When set to true, editable checkbox will call update";
70
+ KupDataTableProps["visibleColumns"] = "Defines the columns that are visible in the table";
70
71
  })(KupDataTableProps || (KupDataTableProps = {}));
71
72
  export var SortMode;
72
73
  (function (SortMode) {
@@ -669,7 +669,7 @@ th.obj:hover span:not(.overlay-action) {
669
669
  mask: var(--kup-key-icon);
670
670
  }
671
671
 
672
- @media (max-width: 678px) {
672
+ @media (max-width: 830px) {
673
673
  .actions-wrapper {
674
674
  flex-direction: column-reverse;
675
675
  }
@@ -718,6 +718,7 @@ th.obj:hover span:not(.overlay-action) {
718
718
 
719
719
  .paginator-tabs {
720
720
  width: 100%;
721
+ display: flex;
721
722
  }
722
723
  .paginator-tabs kup-paginator {
723
724
  display: inline-flex;
@@ -729,13 +730,15 @@ th.obj:hover span:not(.overlay-action) {
729
730
  float: right;
730
731
  }
731
732
 
733
+ @media (max-width: 830px) {
734
+ .above-wrapper.paginator-top {
735
+ border-bottom: 1px solid var(--kup-border-subtle);
736
+ }
737
+ }
732
738
  @media (max-width: 500px) {
733
739
  .paginator-wrapper {
734
740
  min-width: fit-content;
735
741
  }
736
- .above-wrapper.paginator-top {
737
- border-bottom: 1px solid var(--kup-border-subtle);
738
- }
739
742
  }
740
743
  sticky-header {
741
744
  display: none;
@@ -441,7 +441,7 @@ export class KupDataTable {
441
441
  computeMaxRowsPerPage() {
442
442
  var _a, _b, _c, _d;
443
443
  if (((_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.columns) === null || _b === void 0 ? void 0 : _b.length) > 0 && ((_d = (_c = this.data) === null || _c === void 0 ? void 0 : _c.rows) === null || _d === void 0 ? void 0 : _d.length) > 0) {
444
- const columnsNumber = this.data.columns.length;
444
+ const columnsNumber = this.getVisibleColumns().length;
445
445
  const rowsNumber = this.data.rows.length;
446
446
  const perfTuning = __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").perfTuning;
447
447
  perfTuning.maxRowsPerPageProvider(columnsNumber, rowsNumber, (maxRows) => {
@@ -1441,7 +1441,7 @@ export class KupDataTable {
1441
1441
  __classPrivateFieldSet(this, _KupDataTable_sizedColumns, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getSizedColumns).call(this), "f");
1442
1442
  let rows = null;
1443
1443
  if (__classPrivateFieldGet(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
1444
- rows = (h("tr", { key: '07ec46c9a424095e068b11ec69c3a174c367e71f', ref: (el) => __classPrivateFieldGet(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { key: '0815316e29d0de0c08707ab2884c154e9fcfd842', colSpan: __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
1444
+ rows = (h("tr", { key: '65b3fb40eaad33e6d3c3bcb8f160b69856ecf701', ref: (el) => __classPrivateFieldGet(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { key: '5e670d0765de2341365a739bc3f825e78721ac25', colSpan: __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
1445
1445
  }
1446
1446
  else {
1447
1447
  rows = [];
@@ -1517,7 +1517,7 @@ export class KupDataTable {
1517
1517
  __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_handleChipsContextMenu).call(this, chipArg.id, e);
1518
1518
  });
1519
1519
  }
1520
- groupChips = h(FChip, Object.assign({ key: 'b9787d6ffd1c934371490794b42cdfdea1c01038' }, props));
1520
+ groupChips = h(FChip, Object.assign({ key: '5b8732380a56359aef620c40b29c64159570f9d9' }, props));
1521
1521
  }
1522
1522
  }
1523
1523
  const tableClass = {
@@ -1549,7 +1549,7 @@ export class KupDataTable {
1549
1549
  if (this.headerIsPersistent &&
1550
1550
  this.tableHeight === undefined &&
1551
1551
  this.tableWidth === undefined) {
1552
- stickyEl = (h("sticky-header", { key: 'b39ba6e2f3d690191289485213c40b332b1d26b5', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_stickyTheadRef, el, "f")) }, h("thead-sticky", { key: 'b0a7cd9c667abc832d623bf50b59ca5805f27201' }, h("tr-sticky", { key: 'b6d8cba262f07d876f155e8e9aab2513b1ab87a1' }, stickyHeader))));
1552
+ stickyEl = (h("sticky-header", { key: 'f4209dc154f69639a46e566999616b493caed499', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_stickyTheadRef, el, "f")) }, h("thead-sticky", { key: 'de05e2fbcb98a9d1beaf6a9ae903219398d80478' }, h("tr-sticky", { key: 'd4df92b29c1a2328f1095e852fee3a98495ef33c' }, stickyHeader))));
1553
1553
  }
1554
1554
  let belowClass = 'below-wrapper';
1555
1555
  if (!!this.tableHeight || !!this.tableWidth) {
@@ -1595,7 +1595,7 @@ export class KupDataTable {
1595
1595
  const useGlobalFilter = !this.legacyLook &&
1596
1596
  (this.globalFilter ||
1597
1597
  this.getRows().length > __classPrivateFieldGet(this, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, "f"));
1598
- const compCreated = (h(Host, { key: 'dae64eb7127e6224a3e70901fd95ab5e01184637', "onKup-drop": (e) => {
1598
+ const compCreated = (h(Host, { key: '9a17685f40d632c7cb18a342236f99f96825120d', "onKup-drop": (e) => {
1599
1599
  this.kupDataTableDrop.emit(e.detail);
1600
1600
  }, "onKup-cell-input": (e) => {
1601
1601
  autoselectOnAction(e);
@@ -1610,11 +1610,11 @@ export class KupDataTable {
1610
1610
  this.kupDataTableObjectFieldOpenSearchMenu.emit(e.detail);
1611
1611
  }, "onKup-objectfield-selectedmenuitem": (e) => {
1612
1612
  this.kupDataTableObjectFieldSelectedMenuItem.emit(e.detail);
1613
- } }, h("style", { key: 'eb3cf7aad6a0000d4392fae00b54cd2e55c45b1e' }, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, h("div", { key: 'b5cf011078c5cb66c3ea0e35d56876321db2d741', id: componentWrapperId, class: wrapClass }, h("div", { key: '3eee618cb47ea8dfffa99d579539a77399821d8b', class: "group-wrapper" }, groupChips), h("div", { key: '9cdd14af5170a3db5ae3ee9a9cba45b41443100a', class: "actions-wrapper", style: actionWrapperWidth }, useGlobalFilter ? (h("div", { id: "global-filter" }, h(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), sizing: KupComponentSizing.EXTRA_SMALL, value: this.globalFilterValue, onInput: (event) => {
1613
+ } }, h("style", { key: '79ace6176b404970802c44e116bfe85eb4f97585' }, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, h("div", { key: '351cd4f3fa636ae8aac9b789ab5ddf2161b17942', id: componentWrapperId, class: wrapClass }, h("div", { key: '32ec90f3dc78d10462e5e5ef8a4ef0684cdcff36', class: "group-wrapper" }, groupChips), h("div", { key: '41c4515d9d59078f867aa638cdd3b9ea0f157d45', class: "actions-wrapper", style: actionWrapperWidth }, useGlobalFilter ? (h("div", { id: "global-filter" }, h(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), sizing: KupComponentSizing.EXTRA_SMALL, value: this.globalFilterValue, onInput: (event) => {
1614
1614
  const t = event.target;
1615
1615
  window.clearTimeout(__classPrivateFieldGet(this, _KupDataTable_globalFilterTimeout, "f"));
1616
1616
  __classPrivateFieldSet(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
1617
- } }))) : null, h("div", { key: '738986c7da7d958e11d20a888879fe88990c6661', class: "above-wrapper paginator-top" }, paginatorTop), this.insertMode !== '' &&
1617
+ } }))) : null, paginatorTop && (h("div", { key: 'cabedeb68bcfe2cf6a99deff4d591a9a9ee29bb3', class: "above-wrapper paginator-top" }, paginatorTop)), this.insertMode !== '' &&
1618
1618
  this.selectedRows.length > 0 ? (h(FButton, { icon: "save", onClick: () => {
1619
1619
  this.kupSave.emit({
1620
1620
  comp: this,
@@ -1664,9 +1664,9 @@ export class KupDataTable {
1664
1664
  this.data.rows.unshift(row);
1665
1665
  await this.refresh(true);
1666
1666
  }
1667
- }, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: 'bc2478aff69fa98876ff08b2f4fff283fead57ee', class: "droparea", ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
1667
+ }, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: 'eb03546e0494b0185762bcbef91938c67fb67f71', class: "droparea", ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
1668
1668
  ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
1669
- : null), h("div", { key: 'e638d996e1824aa362f60000451fdeb522422593', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
1669
+ : null), h("div", { key: '1c23ebbebedf9b71f1774dc9a719a814ae2d9342', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
1670
1670
  ? [
1671
1671
  h("div", { class: "settings-trigger", onClick: () => {
1672
1672
  __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
@@ -1675,7 +1675,7 @@ export class KupDataTable {
1675
1675
  } }, h(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
1676
1676
  this.renderCustomizePanel(),
1677
1677
  ]
1678
- : null, h("table", { key: '9170bbb26e1a0d1e9e18668df90edc9324271e15', class: tableClass, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_tableRef, el, "f")), onKeyDown: (e) => __classPrivateFieldGet(this, _KupDataTable_onKupKeyDown, "f").call(this, e), onMouseLeave: (ev) => {
1678
+ : null, h("table", { key: '0c641583cbf04c513aa98d0dce01ca6d9b8c011c', class: tableClass, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_tableRef, el, "f")), onKeyDown: (e) => __classPrivateFieldGet(this, _KupDataTable_onKupKeyDown, "f").call(this, e), onMouseLeave: (ev) => {
1679
1679
  ev.stopPropagation();
1680
1680
  }, onPointerDown: (e) => {
1681
1681
  __classPrivateFieldSet(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
@@ -1683,7 +1683,7 @@ export class KupDataTable {
1683
1683
  __classPrivateFieldSet(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
1684
1684
  }, onContextMenu: (e) => {
1685
1685
  e.preventDefault();
1686
- } }, h("thead", { key: 'f5712e5ee848bd8500bb3ba4db462c67690a51bd', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_theadRef, el, "f")) }, h("tr", { key: 'f31395dd72d13b0ae9746db64fa2505dad92c083' }, header)), h("tbody", { key: '084950706c42cb528f9e8eb1ab38f8bcd96e8417' }, rows), this.showFooter && this.renderFooter()), stickyEl), paginatorBottom)));
1686
+ } }, h("thead", { key: '19ba63a8356e15878207df1c167825c7089dcb43', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_theadRef, el, "f")) }, h("tr", { key: '14477c0152f8a5dc08c6ca4adbff833c6f04713a' }, header)), h("tbody", { key: '1a91bb716cea4d295c659e30006385ac3c0081d6' }, rows), this.showFooter && this.renderFooter()), stickyEl), paginatorBottom)));
1687
1687
  __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").perfMonitoring.measure('componentRender', 'kup-data-table');
1688
1688
  return compCreated;
1689
1689
  }
@@ -4406,6 +4406,9 @@ export class KupDataTable {
4406
4406
  }, {
4407
4407
  "propName": "data",
4408
4408
  "methodName": "computeMaxRowsPerPage"
4409
+ }, {
4410
+ "propName": "visibleColumns",
4411
+ "methodName": "computeMaxRowsPerPage"
4409
4412
  }, {
4410
4413
  "propName": "groups",
4411
4414
  "methodName": "recalculateRowsAndUndoSelections"
@@ -14,7 +14,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
14
14
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
15
15
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16
16
  };
17
- var _KupEchart_instances, _KupEchart_chartContainer, _KupEchart_chartEl, _KupEchart_gaussianDatasets, _KupEchart_kupManager, _KupEchart_mapObj, _KupEchart_resizeTimeout, _KupEchart_sortedDataset, _KupEchart_themeBorder, _KupEchart_themeBackground, _KupEchart_minColorHeatMap, _KupEchart_maxColorHeatMap, _KupEchart_themeFont, _KupEchart_themeText, _KupEchart_initChart, _KupEchart_createChart, _KupEchart_funnelChart, _KupEchart_radarChart, _KupEchart_bubbleChart, _KupEchart_sankeyChart, _KupEchart_candleChart, _KupEchart_calendarChart, _KupEchart_createX, _KupEchart_createY, _KupEchart_createYWithColumnTitle, _KupEchart_createYForPie, _KupEchart_setAxisColors, _KupEchart_setLegend, _KupEchart_setTitle, _KupEchart_setTooltip, _KupEchart_setVisualMap, _KupEchart_setMapOptions, _KupEchart_setPieOptions, _KupEchart_setGaussianOptions, _KupEchart_addSeries, _KupEchart_setOptions, _KupEchart_setColors, _KupEchart_checks;
17
+ var _KupEchart_instances, _KupEchart_chartContainer, _KupEchart_chartEl, _KupEchart_gaussianDatasets, _KupEchart_kupManager, _KupEchart_mapObj, _KupEchart_resizeTimeout, _KupEchart_sortedDataset, _KupEchart_themeBorder, _KupEchart_themeBackground, _KupEchart_minColorHeatMap, _KupEchart_maxColorHeatMap, _KupEchart_themeFont, _KupEchart_themeText, _KupEchart_initChart, _KupEchart_createChart, _KupEchart_funnelChart, _KupEchart_radarChart, _KupEchart_bubbleChart, _KupEchart_sankeyChart, _KupEchart_candleChart, _KupEchart_calendarChart, _KupEchart_createX, _KupEchart_createY, _KupEchart_createYWithColumnTitle, _KupEchart_createYForPie, _KupEchart_setAxisColors, _KupEchart_setLegend, _KupEchart_setTitle, _KupEchart_setTooltip, _KupEchart_setVisualMap, _KupEchart_setMapOptions, _KupEchart_setPieOptions, _KupEchart_setGaussianOptions, _KupEchart_addSeries, _KupEchart_buildResponsiveAxisLabel, _KupEchart_setOptions, _KupEchart_setColors, _KupEchart_checks;
18
18
  import { forceUpdate, getAssetPath, Host, h, } from "@stencil/core";
19
19
  import * as echarts from "echarts";
20
20
  import { KupEchartLegendPlacement, KupEchartMaps, KupEchartProps, KupEchartTypes, } from "./kup-echart-declarations";
@@ -142,7 +142,7 @@ export class KupEchart {
142
142
  '--kup_echart_height': this.sizeY ? this.sizeY : '100%',
143
143
  '--kup_echart_width': this.sizeX ? this.sizeX : '100%',
144
144
  };
145
- return (h(Host, { key: '54172a06b4c9fa2b4b14aa2cedf1002ee6ba535c', style: style }, h("style", { key: 'c88e6cd2781d7bf5a9d0fbb2ce6f95b3da037bbf' }, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'd6464aff5fcaa909b91b642b5c22d2115f474fd4', id: componentWrapperId, ref: (chartContainer) => (__classPrivateFieldSet(this, _KupEchart_chartContainer, chartContainer, "f")) })));
145
+ return (h(Host, { key: '6695df3d157839e237b73df89f56dd438240739a', style: style }, h("style", { key: 'f645db394d2d0fc02d027e7958eaf9266be71a1d' }, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '8cc220551d3cee74babf45104cfa3409b2107ec1', id: componentWrapperId, ref: (chartContainer) => (__classPrivateFieldSet(this, _KupEchart_chartContainer, chartContainer, "f")) })));
146
146
  }
147
147
  disconnectedCallback() {
148
148
  var _a;
@@ -1823,6 +1823,50 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
1823
1823
  });
1824
1824
  break;
1825
1825
  }
1826
+ }, _KupEchart_buildResponsiveAxisLabel = function _KupEchart_buildResponsiveAxisLabel(x, pxPerChr = 7) {
1827
+ const rootH = this.rootElement.clientHeight;
1828
+ const rootW = this.rootElement.clientWidth;
1829
+ const slots = x.length; // number of categories
1830
+ const slotW = Math.max(rootW / slots, 1); // px available per label
1831
+ const longestChr = Math.max(...x.map((l) => l.length));
1832
+ const longestPx = longestChr * pxPerChr; // rough pixel length
1833
+ const fitsFlat = longestPx <= slotW * 0.9;
1834
+ if (fitsFlat) {
1835
+ return { interval: 0, rotate: 0 };
1836
+ }
1837
+ let charLimit = 0;
1838
+ if (rootH < 200) {
1839
+ charLimit = 10;
1840
+ }
1841
+ else if (rootH < 400) {
1842
+ charLimit = 15;
1843
+ }
1844
+ else if (rootW < 400) {
1845
+ charLimit = 15;
1846
+ }
1847
+ else if (rootW < 600) {
1848
+ charLimit = 20;
1849
+ }
1850
+ else if (rootW < 800) {
1851
+ charLimit = 30;
1852
+ }
1853
+ else {
1854
+ charLimit = 40;
1855
+ }
1856
+ const toolong = longestChr > charLimit;
1857
+ if (!toolong) {
1858
+ const fitsTilt = longestPx <= slotW * 1.4;
1859
+ if (fitsTilt) {
1860
+ return { interval: 0, rotate: 22.5 };
1861
+ }
1862
+ }
1863
+ const clampW = Math.max(Math.floor(rootW / charLimit), 1);
1864
+ return {
1865
+ interval: 0,
1866
+ rotate: 22.5,
1867
+ width: clampW,
1868
+ overflow: 'truncate',
1869
+ };
1826
1870
  }, _KupEchart_setOptions = function _KupEchart_setOptions() {
1827
1871
  var _a;
1828
1872
  const x = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createX).call(this);
@@ -1881,9 +1925,7 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
1881
1925
  tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: (params) => {
1882
1926
  return `<b>${params.name}</b><br/>${params.seriesName}: <b>${params.value}</b>`;
1883
1927
  } }),
1884
- xAxis: Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { data: isHorizontal ? undefined : x, type: isHorizontal ? 'value' : 'category', axisLabel: {
1885
- formatter: axisLabelFormatter,
1886
- } }), this.xAxis),
1928
+ xAxis: Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { data: isHorizontal ? undefined : x, type: isHorizontal ? 'value' : 'category', axisLabel: Object.assign({ formatter: axisLabelFormatter }, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_buildResponsiveAxisLabel).call(this, x)) }), this.xAxis),
1887
1929
  yAxis,
1888
1930
  grid: { show: true, containLabel: true },
1889
1931
  };
@@ -1,5 +1,7 @@
1
1
  export var KupFileUploadProps;
2
2
  (function (KupFileUploadProps) {
3
3
  KupFileUploadProps["customStyle"] = "Custom style of the component.";
4
- KupFileUploadProps["data"] = "Actual data of the input file upload.";
4
+ KupFileUploadProps["pathString"] = "The initial filepaths.";
5
+ KupFileUploadProps["FupMul"] = "Sets the multiple upload.";
6
+ KupFileUploadProps["FupAut"] = "Sets the auto upload of select file";
5
7
  })(KupFileUploadProps || (KupFileUploadProps = {}));
@@ -133,6 +133,7 @@
133
133
  var(--kup-gray-color-30)
134
134
  );
135
135
  flex: 1;
136
+ min-width: 360px;
136
137
  }
137
138
  :host .file-upload-spinner > * {
138
139
  opacity: 0.6;
@@ -161,6 +162,18 @@
161
162
  margin: auto;
162
163
  width: 48px;
163
164
  }
165
+ :host .file-upload__error {
166
+ display: flex;
167
+ justify-content: center;
168
+ }
169
+ :host .file-upload__error .mdc-error-message {
170
+ font-family: var(--kup-font-family);
171
+ font-size: var(--kup-label-01-font-size, 12px);
172
+ line-height: 16px;
173
+ font-weight: 400;
174
+ letter-spacing: 0.32px;
175
+ color: var(--kup-danger-color-60);
176
+ }
164
177
  :host .file-upload__list {
165
178
  display: flex;
166
179
  flex-direction: column;
@@ -6,7 +6,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
6
6
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7
7
  };
8
8
  var _KupFileUpload_instances, _KupFileUpload_kupManager, _KupFileUpload_previewMap, _KupFileUpload_handleClick, _KupFileUpload_handleFileChange, _KupFileUpload_handleFileRemove, _KupFileUpload_handleDrop, _KupFileUpload_handleCancel, _KupFileUpload_getPreview, _KupFileUpload_trimFileName, _KupFileUpload_uploadClick;
9
- import { forceUpdate, Host, h, } from "@stencil/core";
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";
12
12
  import { KupFileUploadProps, } from "./kup-file-upload-declarations";
@@ -38,18 +38,36 @@ export class KupFileUpload {
38
38
  ],
39
39
  ]));
40
40
  this.customStyle = '';
41
- this.data = null;
41
+ this.pathString = null;
42
+ this.FupMul = 'false';
43
+ this.FupAut = 'false';
44
+ this.FupDir = null;
45
+ this.error = undefined;
42
46
  this.inputRef = undefined;
43
- this.files = [];
47
+ this.tempFiles = [];
48
+ this.pathFiles = [];
44
49
  this.uploadSuccess = false;
45
50
  this.showSpinner = false;
51
+ this.multiUpload = false;
52
+ this.autoUpload = false;
46
53
  }
47
54
  //#endregion
48
55
  //#region WATCHERS
49
56
  /*-------------------------------------------------*/
50
57
  /* W a t c h e r s */
51
58
  /*-------------------------------------------------*/
52
- onDataChanged() { }
59
+ onDataChanged() {
60
+ var _a;
61
+ this.uploadSuccess = false;
62
+ __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleCancel).call(this);
63
+ this.pathFiles = ((_a = this.pathString) === null || _a === void 0 ? void 0 : _a.split(';')) || [];
64
+ }
65
+ onFupMulChanged() {
66
+ this.multiUpload = this.FupMul === 'true';
67
+ }
68
+ onFupAutChanged() {
69
+ this.autoUpload = this.FupAut === 'true';
70
+ }
53
71
  //#endregion
54
72
  //#region PUBLIC METHODS
55
73
  /*-------------------------------------------------*/
@@ -80,11 +98,19 @@ export class KupFileUpload {
80
98
  * Sets upload has been successfull to show success message.
81
99
  * @param {boolean} success - Boolean to set if upload has been successfull.
82
100
  */
83
- async setSuccess(success) {
101
+ async setSuccess(success, pathFiles) {
84
102
  this.setLoading(false);
85
- if (success) {
103
+ if (success && pathFiles) {
86
104
  __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleCancel).call(this);
87
105
  this.uploadSuccess = success;
106
+ this.pathFiles = this.multiUpload
107
+ ? [...this.pathFiles, ...pathFiles.split(';')]
108
+ : [pathFiles.split(';')[0]];
109
+ this.kupChange.emit({
110
+ comp: this,
111
+ id: this.rootElement.id,
112
+ value: this.pathFiles.join(';'),
113
+ });
88
114
  }
89
115
  }
90
116
  /**
@@ -103,6 +129,8 @@ export class KupFileUpload {
103
129
  __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").debug.logLoad(this, false);
104
130
  __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.register(this);
105
131
  __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").theme.register(this);
132
+ this.multiUpload = this.FupMul === 'true';
133
+ this.autoUpload = this.FupAut === 'true';
106
134
  }
107
135
  componentDidLoad() {
108
136
  this.kupReady.emit({ comp: this, id: this.rootElement.id });
@@ -115,10 +143,10 @@ export class KupFileUpload {
115
143
  __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").debug.logRender(this, true);
116
144
  }
117
145
  render() {
118
- return (h(Host, { key: 'c1d2c71efa28c233051bdfeb1535bcb07149c660' }, h("style", { key: '9fb2a5e633f49bac0fe1c8673869ac8b29c1272b' }, __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'b43469650151abf962aba80f54e15343c2a95767', id: componentWrapperId }, h("div", { key: '18489f11209ad6cf55c2de3e232b2b0888a4f505', class: {
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: {
119
147
  'file-upload': true,
120
148
  'file-upload-spinner': this.showSpinner,
121
- }, onDrop: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleDrop).bind(this), onDragOver: (event) => event.preventDefault() }, h("input", { key: '8a700a42c034d2604bfe84199212123dd082c64a', type: "file", ref: (el) => (this.inputRef = el), onChange: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleFileChange).bind(this), multiple: true, hidden: true }), h("div", { key: '5279ca7bbb0468519c8cb4ae223c0d4e1e6dc7a5', class: "file-upload__buttons" }, h(FButton, { key: '76b00cac757d67e629a043f123217cdbc0b3dc58', icon: "upload", label: __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.translate(KupLanguageGeneric.CHOOSE), onClick: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleClick).bind(this) }), h(FButton, { key: 'ddec08321006f92257b336530f168cbabcdb0796', icon: "save", disabled: !this.files.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: '1e70cb49c36286d5e72dd412b776c9002194102e', icon: "clear", disabled: !this.files.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.uploadSuccess ? (h("span", null, __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.translate(KupLanguageUpload.SUCCESS))) : (h("div", { class: "file-upload__list" }, this.files.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) })), 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.showSpinner && (h("div", { key: 'f6a8de73c3109a9067866628f78698150bc83bdc', class: "file-upload__spinner-container" }, h("kup-spinner", { key: 'ca00b8efcae2be30f8ea5028d6c2a7e3839d63a4', active: true, layout: 14, dimensions: "7px" })))))));
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" })))))));
122
150
  }
123
151
  disconnectedCallback() {
124
152
  __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.unregister(this);
@@ -162,12 +190,75 @@ export class KupFileUpload {
162
190
  "reflect": false,
163
191
  "defaultValue": "''"
164
192
  },
165
- "data": {
166
- "type": "any",
193
+ "pathString": {
194
+ "type": "string",
195
+ "mutable": false,
196
+ "complexType": {
197
+ "original": "string",
198
+ "resolved": "string",
199
+ "references": {}
200
+ },
201
+ "required": false,
202
+ "optional": false,
203
+ "docs": {
204
+ "tags": [{
205
+ "name": "default",
206
+ "text": "null"
207
+ }],
208
+ "text": "The initial filepaths"
209
+ },
210
+ "attribute": "path-string",
211
+ "reflect": false,
212
+ "defaultValue": "null"
213
+ },
214
+ "FupMul": {
215
+ "type": "string",
216
+ "mutable": false,
217
+ "complexType": {
218
+ "original": "string",
219
+ "resolved": "string",
220
+ "references": {}
221
+ },
222
+ "required": false,
223
+ "optional": false,
224
+ "docs": {
225
+ "tags": [{
226
+ "name": "default",
227
+ "text": "'false'"
228
+ }],
229
+ "text": "Sets the multiple upload"
230
+ },
231
+ "attribute": "fup-mul",
232
+ "reflect": false,
233
+ "defaultValue": "'false'"
234
+ },
235
+ "FupAut": {
236
+ "type": "string",
237
+ "mutable": false,
238
+ "complexType": {
239
+ "original": "string",
240
+ "resolved": "string",
241
+ "references": {}
242
+ },
243
+ "required": false,
244
+ "optional": false,
245
+ "docs": {
246
+ "tags": [{
247
+ "name": "default",
248
+ "text": "'false'"
249
+ }],
250
+ "text": "Sets the auto upload of select file"
251
+ },
252
+ "attribute": "fup-aut",
253
+ "reflect": false,
254
+ "defaultValue": "'false'"
255
+ },
256
+ "FupDir": {
257
+ "type": "string",
167
258
  "mutable": false,
168
259
  "complexType": {
169
- "original": "any",
170
- "resolved": "any",
260
+ "original": "string",
261
+ "resolved": "string",
171
262
  "references": {}
172
263
  },
173
264
  "required": false,
@@ -177,20 +268,44 @@ export class KupFileUpload {
177
268
  "name": "default",
178
269
  "text": "null"
179
270
  }],
180
- "text": "Actual data of the input field."
271
+ "text": "Sets the custom dir to upload files"
181
272
  },
182
- "attribute": "data",
273
+ "attribute": "fup-dir",
183
274
  "reflect": false,
184
275
  "defaultValue": "null"
276
+ },
277
+ "error": {
278
+ "type": "string",
279
+ "mutable": false,
280
+ "complexType": {
281
+ "original": "string",
282
+ "resolved": "string",
283
+ "references": {}
284
+ },
285
+ "required": false,
286
+ "optional": false,
287
+ "docs": {
288
+ "tags": [{
289
+ "name": "default",
290
+ "text": "'false'"
291
+ }],
292
+ "text": "Error string to render in component"
293
+ },
294
+ "attribute": "error",
295
+ "reflect": false,
296
+ "defaultValue": "undefined"
185
297
  }
186
298
  };
187
299
  }
188
300
  static get states() {
189
301
  return {
190
302
  "inputRef": {},
191
- "files": {},
303
+ "tempFiles": {},
304
+ "pathFiles": {},
192
305
  "uploadSuccess": {},
193
- "showSpinner": {}
306
+ "showSpinner": {},
307
+ "multiUpload": {},
308
+ "autoUpload": {}
194
309
  };
195
310
  }
196
311
  static get events() {
@@ -236,6 +351,27 @@ export class KupFileUpload {
236
351
  }
237
352
  }
238
353
  }
354
+ }, {
355
+ "method": "kupChange",
356
+ "name": "kup-file-upload-change",
357
+ "bubbles": true,
358
+ "cancelable": false,
359
+ "composed": true,
360
+ "docs": {
361
+ "tags": [],
362
+ "text": ""
363
+ },
364
+ "complexType": {
365
+ "original": "KupFileUploadChangeEventPayload",
366
+ "resolved": "KupFileUploadChangeEventPayload",
367
+ "references": {
368
+ "KupFileUploadChangeEventPayload": {
369
+ "location": "import",
370
+ "path": "./kup-file-upload-declarations",
371
+ "id": "src/components/kup-file-upload/kup-file-upload-declarations.ts::KupFileUploadChangeEventPayload"
372
+ }
373
+ }
374
+ }
239
375
  }];
240
376
  }
241
377
  static get methods() {
@@ -320,11 +456,15 @@ export class KupFileUpload {
320
456
  },
321
457
  "setSuccess": {
322
458
  "complexType": {
323
- "signature": "(success: boolean) => Promise<void>",
459
+ "signature": "(success: boolean, pathFiles: string) => Promise<void>",
324
460
  "parameters": [{
325
461
  "name": "success",
326
462
  "type": "boolean",
327
463
  "docs": "- Boolean to set if upload has been successfull."
464
+ }, {
465
+ "name": "pathFiles",
466
+ "type": "string",
467
+ "docs": ""
328
468
  }],
329
469
  "references": {
330
470
  "Promise": {
@@ -371,8 +511,14 @@ export class KupFileUpload {
371
511
  static get elementRef() { return "rootElement"; }
372
512
  static get watchers() {
373
513
  return [{
374
- "propName": "data",
514
+ "propName": "pathString",
375
515
  "methodName": "onDataChanged"
516
+ }, {
517
+ "propName": "FupMul",
518
+ "methodName": "onFupMulChanged"
519
+ }, {
520
+ "propName": "FupAut",
521
+ "methodName": "onFupAutChanged"
376
522
  }];
377
523
  }
378
524
  }
@@ -380,12 +526,22 @@ _KupFileUpload_kupManager = new WeakMap(), _KupFileUpload_previewMap = new WeakM
380
526
  this.inputRef.click();
381
527
  }, _KupFileUpload_handleFileChange = function _KupFileUpload_handleFileChange(event) {
382
528
  this.uploadSuccess = false;
529
+ this.error = '';
383
530
  const newFiles = Array.from(event.target.files);
384
- this.files = [...this.files, ...newFiles];
531
+ this.tempFiles = [...this.tempFiles, ...newFiles];
532
+ this.inputRef.value = '';
533
+ if (this.autoUpload) {
534
+ this.kupUpload.emit({
535
+ comp: this,
536
+ id: this.rootElement.id,
537
+ files: this.tempFiles,
538
+ });
539
+ this.setLoading(true);
540
+ }
385
541
  }, _KupFileUpload_handleFileRemove = function _KupFileUpload_handleFileRemove(index) {
386
- this.files = [
387
- ...this.files.splice(0, index),
388
- ...this.files.splice(index + 1),
542
+ this.tempFiles = [
543
+ ...this.tempFiles.splice(0, index),
544
+ ...this.tempFiles.splice(index + 1),
389
545
  ];
390
546
  }, _KupFileUpload_handleDrop = function _KupFileUpload_handleDrop(event) {
391
547
  event.preventDefault();
@@ -393,10 +549,10 @@ _KupFileUpload_kupManager = new WeakMap(), _KupFileUpload_previewMap = new WeakM
393
549
  const droppedFiles = event.dataTransfer.files;
394
550
  if (droppedFiles.length > 0) {
395
551
  const newFiles = Array.from(droppedFiles);
396
- this.files = [...this.files, ...newFiles];
552
+ this.tempFiles = [...this.tempFiles, ...newFiles];
397
553
  }
398
554
  }, _KupFileUpload_handleCancel = function _KupFileUpload_handleCancel() {
399
- this.files = [];
555
+ this.tempFiles = [];
400
556
  }, _KupFileUpload_getPreview = function _KupFileUpload_getPreview(file) {
401
557
  const previewIcon = __classPrivateFieldGet(this, _KupFileUpload_previewMap, "f").get(file.type);
402
558
  if (!previewIcon) {
@@ -418,7 +574,7 @@ _KupFileUpload_kupManager = new WeakMap(), _KupFileUpload_previewMap = new WeakM
418
574
  this.kupUpload.emit({
419
575
  comp: this,
420
576
  id: this.rootElement.id,
421
- files: this.files,
577
+ files: this.tempFiles,
422
578
  });
423
579
  this.setLoading(true);
424
580
  };