@sme.up/ketchup 10.1.1 → 10.2.0

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 (483) hide show
  1. package/dist/cjs/{f-button-c3ae141e.js → f-button-bfafefb3.js} +3 -3
  2. package/dist/cjs/{f-cell-66dc3984.js → f-cell-3ed4ad9e.js} +376 -168
  3. package/dist/cjs/{f-checkbox-59fb7aa5.js → f-checkbox-aaa6d45c.js} +3 -2
  4. package/dist/cjs/{f-chip-90155c76.js → f-chip-b936dcaf.js} +146 -10
  5. package/dist/cjs/{f-image-d22b012f.js → f-image-db10b066.js} +1 -1
  6. package/dist/cjs/{f-object-field-902b9d05.js → f-object-field-348fa103.js} +13 -6
  7. package/dist/cjs/{f-paginator-utils-7df7d997.js → f-paginator-utils-f951cc54.js} +3 -3
  8. package/dist/cjs/{f-text-field-80716a60.js → f-text-field-e41f653a.js} +15 -15
  9. package/dist/cjs/{f-typography-271f5037.js → f-typography-85d8238a.js} +1 -1
  10. package/dist/cjs/{index-e8aa3c73.js → index-c7d441d8.js} +8 -3
  11. package/dist/cjs/index.cjs.js +2 -2
  12. package/dist/cjs/ketchup.cjs.js +2 -2
  13. package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
  14. package/dist/cjs/kup-activity-timeline.cjs.entry.js +43 -23
  15. package/dist/cjs/{kup-autocomplete_28.cjs.entry.js → kup-autocomplete_29.cjs.entry.js} +2306 -1440
  16. package/dist/cjs/kup-box.cjs.entry.js +60 -59
  17. package/dist/cjs/kup-calendar.cjs.entry.js +12 -11
  18. package/dist/cjs/kup-card-list.cjs.entry.js +3 -3
  19. package/dist/cjs/kup-cell.cjs.entry.js +17 -12
  20. package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +12 -12
  21. package/dist/cjs/kup-dashboard.cjs.entry.js +7 -7
  22. package/dist/cjs/{kup-data-table-helper-02d1e529.js → kup-data-table-helper-adaa11bb.js} +28 -23
  23. package/dist/cjs/kup-drawer.cjs.entry.js +3 -3
  24. package/dist/cjs/kup-echart.cjs.entry.js +46 -14
  25. package/dist/cjs/kup-editor.cjs.entry.js +2 -2
  26. package/dist/cjs/kup-family-tree.cjs.entry.js +5 -5
  27. package/dist/cjs/kup-gantt_10.cjs.entry.js +33 -33
  28. package/dist/cjs/kup-grid.cjs.entry.js +3 -3
  29. package/dist/cjs/kup-htm.cjs.entry.js +4 -4
  30. package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
  31. package/dist/cjs/kup-image-list.cjs.entry.js +25 -21
  32. package/dist/cjs/kup-input-panel.cjs.entry.js +102 -73
  33. package/dist/cjs/kup-lazy.cjs.entry.js +14 -14
  34. package/dist/cjs/kup-magic-box.cjs.entry.js +7 -7
  35. package/dist/cjs/{kup-manager-d67049ad.js → kup-manager-39bc2be8.js} +393 -238
  36. package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -4
  37. package/dist/cjs/kup-numeric-picker.cjs.entry.js +6 -6
  38. package/dist/cjs/kup-object-field.cjs.entry.js +7 -7
  39. package/dist/cjs/kup-pdf.cjs.entry.js +4 -4
  40. package/dist/cjs/kup-planner-renderer.cjs.entry.js +3 -3
  41. package/dist/cjs/kup-planner.cjs.entry.js +6 -6
  42. package/dist/cjs/kup-probe.cjs.entry.js +3 -3
  43. package/dist/cjs/kup-qlik.cjs.entry.js +4 -4
  44. package/dist/cjs/kup-snackbar.cjs.entry.js +6 -6
  45. package/dist/cjs/kup-txt.cjs.entry.js +4 -4
  46. package/dist/cjs/kup-typography-list.cjs.entry.js +5 -5
  47. package/dist/cjs/kup-typography.cjs.entry.js +115 -15
  48. package/dist/cjs/loader.cjs.js +2 -2
  49. package/dist/collection/collection-manifest.json +1 -0
  50. package/dist/collection/components/kup-accordion/kup-accordion.css +3 -3
  51. package/dist/collection/components/kup-activity-timeline/kup-activity-timeline-declarations.js +1 -1
  52. package/dist/collection/components/kup-activity-timeline/kup-activity-timeline.css +3 -3
  53. package/dist/collection/components/kup-activity-timeline/kup-activity-timeline.js +37 -17
  54. package/dist/collection/components/kup-autocomplete/kup-autocomplete.css +3 -3
  55. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +49 -13
  56. package/dist/collection/components/kup-badge/kup-badge.css +3 -3
  57. package/dist/collection/components/kup-box/kup-box.css +3 -3
  58. package/dist/collection/components/kup-box/kup-box.js +48 -47
  59. package/dist/collection/components/kup-button/kup-button.css +3 -3
  60. package/dist/collection/components/kup-button-list/kup-button-list.css +3 -3
  61. package/dist/collection/components/kup-button-list/kup-button-list.js +23 -3
  62. package/dist/collection/components/kup-calendar/kup-calendar.css +4 -4
  63. package/dist/collection/components/kup-calendar/kup-calendar.js +6 -5
  64. package/dist/collection/components/kup-card/built-in/kup-card-message-box.js +5 -1
  65. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +78 -1
  66. package/dist/collection/components/kup-card/kup-card.css +221 -20
  67. package/dist/collection/components/kup-card/kup-card.js +5 -2
  68. package/dist/collection/components/kup-card/standard/kup-card-standard.js +2 -2
  69. package/dist/collection/components/kup-card-list/kup-card-list.css +3 -3
  70. package/dist/collection/components/kup-cell/kup-cell.css +3 -3
  71. package/dist/collection/components/kup-cell/kup-cell.js +28 -3
  72. package/dist/collection/components/kup-chart/kup-chart.css +3 -3
  73. package/dist/collection/components/kup-checkbox/kup-checkbox.css +3 -3
  74. package/dist/collection/components/kup-chip/kup-chip.css +21 -7
  75. package/dist/collection/components/kup-chip/kup-chip.js +104 -33
  76. package/dist/collection/components/kup-color-picker/kup-color-picker.css +3 -3
  77. package/dist/collection/components/kup-combobox/kup-combobox.css +3 -3
  78. package/dist/collection/components/kup-combobox/kup-combobox.js +30 -4
  79. package/dist/collection/components/kup-dashboard/kup-dashboard.css +3 -3
  80. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +13 -0
  81. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +6 -3
  82. package/dist/collection/components/kup-data-table/kup-data-table-state.js +2 -0
  83. package/dist/collection/components/kup-data-table/kup-data-table.css +55 -34
  84. package/dist/collection/components/kup-data-table/kup-data-table.js +706 -231
  85. package/dist/collection/components/kup-date-picker/kup-date-picker.css +3 -3
  86. package/dist/collection/components/kup-date-picker/kup-date-picker.js +8 -1
  87. package/dist/collection/components/kup-dialog/kup-dialog-declarations.js +3 -0
  88. package/dist/collection/components/kup-dialog/kup-dialog.css +31 -6
  89. package/dist/collection/components/kup-dialog/kup-dialog.js +169 -11
  90. package/dist/collection/components/kup-drawer/kup-drawer.css +3 -3
  91. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +3 -3
  92. package/dist/collection/components/kup-echart/kup-echart.css +3 -3
  93. package/dist/collection/components/kup-echart/kup-echart.js +106 -11
  94. package/dist/collection/components/kup-family-tree/kup-family-tree.css +15 -12
  95. package/dist/collection/components/kup-file-upload/kup-file-upload-declarations.js +5 -0
  96. package/dist/collection/components/kup-file-upload/kup-file-upload.css +203 -0
  97. package/dist/collection/components/kup-file-upload/kup-file-upload.js +424 -0
  98. package/dist/collection/components/kup-form/kup-form.css +3 -3
  99. package/dist/collection/components/kup-form/kup-form.js +2 -2
  100. package/dist/collection/components/kup-gauge/kup-gauge.css +3 -3
  101. package/dist/collection/components/kup-grid/kup-grid.css +3 -3
  102. package/dist/collection/components/kup-htm/kup-htm.css +3 -3
  103. package/dist/collection/components/kup-htm/kup-htm.js +1 -1
  104. package/dist/collection/components/kup-iframe/kup-iframe.css +3 -3
  105. package/dist/collection/components/kup-image/assets/svg/circle.svg +3 -0
  106. package/dist/collection/components/kup-image/assets/svg/up.svg +43 -0
  107. package/dist/collection/components/kup-image/kup-image.css +3 -3
  108. package/dist/collection/components/kup-image-list/kup-image-list.css +6 -6
  109. package/dist/collection/components/kup-image-list/kup-image-list.js +15 -11
  110. package/dist/collection/components/kup-input-panel/kup-input-panel-utils.js +13 -4
  111. package/dist/collection/components/kup-input-panel/kup-input-panel.css +12 -5
  112. package/dist/collection/components/kup-input-panel/kup-input-panel.js +89 -59
  113. package/dist/collection/components/kup-lazy/kup-lazy.css +3 -3
  114. package/dist/collection/components/kup-lazy/kup-lazy.js +11 -11
  115. package/dist/collection/components/kup-list/kup-list.css +3 -3
  116. package/dist/collection/components/kup-list/kup-list.js +56 -11
  117. package/dist/collection/components/kup-magic-box/kup-magic-box.css +3 -3
  118. package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
  119. package/dist/collection/components/kup-nav-bar/kup-nav-bar.css +3 -3
  120. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
  121. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.css +3 -3
  122. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +1 -1
  123. package/dist/collection/components/kup-object-field/kup-object-field.js +1 -1
  124. package/dist/collection/components/kup-pdf/kup-pdf.css +3 -3
  125. package/dist/collection/components/kup-pdf/kup-pdf.js +1 -1
  126. package/dist/collection/components/kup-planner/kup-planner.css +3 -3
  127. package/dist/collection/components/kup-planner/kup-planner.js +1 -1
  128. package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
  129. package/dist/collection/components/kup-planner/utils/custom-task-list-header.module.css +3 -3
  130. package/dist/collection/components/kup-planner/utils/gantt-table.module.css +6 -6
  131. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.css +3 -3
  132. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2 -2
  133. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.css +4 -4
  134. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +2 -2
  135. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.css +3 -3
  136. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +3 -3
  137. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +3 -3
  138. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +5 -5
  139. package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +2 -2
  140. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.css +3 -3
  141. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +1 -1
  142. package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +2 -2
  143. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
  144. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
  145. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.css +3 -3
  146. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +1 -1
  147. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
  148. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.css +3 -3
  149. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
  150. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.css +3 -3
  151. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
  152. package/dist/collection/components/kup-probe/kup-probe.js +1 -1
  153. package/dist/collection/components/kup-progress-bar/kup-progress-bar.css +3 -3
  154. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
  155. package/dist/collection/components/kup-qlik/kup-qlik.css +3 -3
  156. package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
  157. package/dist/collection/components/kup-radio/kup-radio.css +3 -3
  158. package/dist/collection/components/kup-rating/kup-rating.css +3 -3
  159. package/dist/collection/components/kup-rating/kup-rating.js +1 -1
  160. package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -4
  161. package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
  162. package/dist/collection/components/kup-spinner/kup-spinner.css +3 -3
  163. package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
  164. package/dist/collection/components/kup-switch/kup-switch.css +3 -3
  165. package/dist/collection/components/kup-switch/kup-switch.js +1 -1
  166. package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +9 -7
  167. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +182 -20
  168. package/dist/collection/components/kup-text-field/kup-text-field.css +3 -3
  169. package/dist/collection/components/kup-time-picker/kup-time-picker.css +3 -3
  170. package/dist/collection/components/kup-time-picker/kup-time-picker.js +8 -1
  171. package/dist/collection/components/kup-toolbar/kup-toolbar.css +9 -12
  172. package/dist/collection/components/kup-tree/kup-tree.css +24 -13
  173. package/dist/collection/components/kup-tree/kup-tree.js +93 -45
  174. package/dist/collection/components/kup-txt/kup-txt.css +3 -3
  175. package/dist/collection/components/kup-txt/kup-txt.js +1 -1
  176. package/dist/collection/components/kup-typography/kup-typography.css +3 -3
  177. package/dist/collection/components/kup-typography/kup-typography.js +198 -28
  178. package/dist/collection/components/kup-typography-list/kup-typography-list.css +3 -3
  179. package/dist/collection/components/kup-typography-list/kup-typography-list.js +1 -1
  180. package/dist/collection/f-components/f-button/f-button.js +1 -1
  181. package/dist/collection/f-components/f-cell/f-cell-declarations.js +6 -1
  182. package/dist/collection/f-components/f-cell/f-cell.js +80 -52
  183. package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -0
  184. package/dist/collection/f-components/f-chip/f-chip.js +12 -7
  185. package/dist/collection/f-components/f-label/f-label-declarations.js +1 -0
  186. package/dist/collection/f-components/f-label/f-label.js +21 -0
  187. package/dist/collection/f-components/f-object-field/f-object-field.js +6 -1
  188. package/dist/collection/f-components/f-radio/f-radio.js +17 -6
  189. package/dist/collection/f-components/f-text-field/f-text-field.js +12 -12
  190. package/dist/collection/managers/kup-data/kup-data.js +4 -0
  191. package/dist/collection/managers/kup-interact/kup-interact.js +43 -22
  192. package/dist/collection/managers/kup-keys-binding/kup-keys-binding.js +2 -2
  193. package/dist/collection/managers/kup-language/kup-language-declarations.js +10 -0
  194. package/dist/collection/managers/kup-manager/kup-manager.js +8 -1
  195. package/dist/collection/managers/kup-perf-monitoring/kup-perf-monitoring.js +55 -0
  196. package/dist/collection/managers/kup-perf-tuning/kup-perf-tuning-declarations.js +5 -1
  197. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +3 -0
  198. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +7 -3
  199. package/dist/collection/types/GenericTypes.js +1 -0
  200. package/dist/collection/utils/cell-utils.js +22 -8
  201. package/dist/collection/utils/filters/filters-column-menu.js +2 -1
  202. package/dist/collection/utils/filters/filters-rows.js +19 -18
  203. package/dist/collection/utils/filters/filters-tree-items.js +11 -11
  204. package/dist/collection/utils/filters/filters.js +12 -5
  205. package/dist/collection/utils/g-cell-style-generator.js +188 -0
  206. package/dist/collection/utils/label-utils.js +58 -0
  207. package/dist/collection/utils/utils.js +1 -1
  208. package/dist/components/index.js +2 -2
  209. package/dist/components/kup-accordion.js +23 -18
  210. package/dist/components/kup-activity-timeline.js +61 -36
  211. package/dist/components/kup-autocomplete.js +1 -1
  212. package/dist/components/kup-badge.js +1 -1
  213. package/dist/components/kup-box.js +1 -1
  214. package/dist/components/kup-button-list.js +1 -1
  215. package/dist/components/kup-button.js +1 -1
  216. package/dist/components/kup-calendar.js +29 -23
  217. package/dist/components/kup-card-list.js +24 -19
  218. package/dist/components/kup-card.js +1 -1
  219. package/dist/components/kup-cell.js +30 -20
  220. package/dist/components/kup-chart.js +1 -1
  221. package/dist/components/kup-checkbox.js +1 -1
  222. package/dist/components/kup-chip.js +1 -1
  223. package/dist/components/kup-color-picker.js +1 -1
  224. package/dist/components/kup-combobox.js +1 -1
  225. package/dist/components/kup-custom-task-list-header.js +1 -1
  226. package/dist/components/kup-custom-task-list-table.js +1 -1
  227. package/dist/components/kup-dashboard.js +23 -18
  228. package/dist/components/kup-data-table.js +1 -1
  229. package/dist/components/kup-date-picker.js +1 -1
  230. package/dist/components/kup-dialog.js +1 -1
  231. package/dist/components/kup-drawer.js +23 -18
  232. package/dist/components/kup-dropdown-button.js +1 -1
  233. package/dist/components/kup-echart.js +1 -1
  234. package/dist/components/kup-editor.js +1 -1
  235. package/dist/components/kup-family-tree.js +25 -20
  236. package/dist/components/kup-file-upload.d.ts +11 -0
  237. package/dist/components/kup-file-upload.js +6 -0
  238. package/dist/components/kup-form.js +1 -1
  239. package/dist/components/kup-gantt-calendar.js +1 -1
  240. package/dist/components/kup-gantt.js +1 -1
  241. package/dist/components/kup-gauge.js +1 -1
  242. package/dist/components/kup-grid-renderer.js +1 -1
  243. package/dist/components/kup-grid.js +1 -1
  244. package/dist/components/kup-horizontal-scroll.js +1 -1
  245. package/dist/components/kup-htm.js +24 -19
  246. package/dist/components/kup-iframe.js +23 -18
  247. package/dist/components/kup-image-list.js +38 -29
  248. package/dist/components/kup-image.js +1 -1
  249. package/dist/components/kup-input-panel.js +117 -83
  250. package/dist/components/kup-lazy.js +34 -29
  251. package/dist/components/kup-list.js +1 -1
  252. package/dist/components/kup-magic-box.js +30 -25
  253. package/dist/components/kup-nav-bar.js +24 -19
  254. package/dist/components/kup-numeric-picker.js +24 -19
  255. package/dist/components/kup-object-field.js +23 -18
  256. package/dist/components/kup-pdf.js +24 -19
  257. package/dist/components/kup-planner-renderer.js +1 -1
  258. package/dist/components/kup-planner.js +41 -36
  259. package/dist/components/kup-probe.js +23 -18
  260. package/dist/components/kup-progress-bar.js +1 -1
  261. package/dist/components/kup-qlik.js +24 -19
  262. package/dist/components/kup-radio.js +1 -1
  263. package/dist/components/kup-rating.js +1 -1
  264. package/dist/components/kup-snackbar.js +24 -19
  265. package/dist/components/kup-spinner.js +1 -1
  266. package/dist/components/kup-standard-tooltip.js +1 -1
  267. package/dist/components/kup-switch.js +1 -1
  268. package/dist/components/kup-switcher.js +1 -1
  269. package/dist/components/kup-tab-bar.js +1 -1
  270. package/dist/components/kup-task-gantt.js +1 -1
  271. package/dist/components/kup-task-list-header.js +1 -1
  272. package/dist/components/kup-task-list-table.js +1 -1
  273. package/dist/components/kup-task-list.js +1 -1
  274. package/dist/components/kup-text-field.js +1 -1
  275. package/dist/components/kup-time-picker.js +1 -1
  276. package/dist/components/kup-toolbar.js +1 -1
  277. package/dist/components/kup-tooltip.js +1 -1
  278. package/dist/components/kup-tree.js +1 -1
  279. package/dist/components/kup-txt.js +24 -19
  280. package/dist/components/kup-typography-list.js +24 -19
  281. package/dist/components/kup-typography.js +136 -29
  282. package/dist/components/kup-vertical-scroll.js +1 -1
  283. package/dist/components/{p-c43d08ab.js → p-0e85ab66.js} +5 -5
  284. package/dist/components/{p-8b050302.js → p-3438f15f.js} +71 -65
  285. package/dist/components/p-3b4cdace.js +56 -0
  286. package/dist/components/p-55542b47.js +38 -0
  287. package/dist/components/{p-0e6c0355.js → p-67ba8cd7.js} +2 -2
  288. package/dist/components/{p-5517e8e8.js → p-6992b96f.js} +5 -5
  289. package/dist/components/{p-ea6e4e37.js → p-6bfda249.js} +3 -3
  290. package/dist/components/{p-0c219ec5.js → p-7d0f1f90.js} +2888 -1340
  291. package/dist/components/{p-709a51cf.js → p-8472facf.js} +4 -4
  292. package/dist/components/p-97053b4d.js +45 -0
  293. package/dist/components/{p-72305403.js → p-a0258e6f.js} +69 -29
  294. package/dist/components/{p-ab7c8404.js → p-b304b91c.js} +391 -238
  295. package/dist/components/{p-7b052cb9.js → p-b80494d7.js} +23 -18
  296. package/dist/components/{p-53e38c4a.js → p-bd3047ee.js} +3 -3
  297. package/dist/components/{p-4efa19a7.js → p-c325da75.js} +5 -5
  298. package/dist/components/p-c7c7f760.js +49 -0
  299. package/dist/components/{p-9da8cd93.js → p-d0e33e04.js} +16 -16
  300. package/dist/components/{p-c62695d4.js → p-d7136d08.js} +4 -4
  301. package/dist/components/{p-2fff7268.js → p-de04aef6.js} +17 -17
  302. package/dist/components/{p-05429a55.js → p-eb8a2811.js} +22 -17
  303. package/dist/components/{p-2e5f2e07.js → p-ef8cbd35.js} +6 -1
  304. package/dist/components/{p-e677dddf.js → p-f2e153e3.js} +7 -7
  305. package/dist/esm/{f-button-f1040575.js → f-button-3c8f4506.js} +3 -3
  306. package/dist/esm/{f-cell-50d54fdf.js → f-cell-6576e009.js} +376 -168
  307. package/dist/esm/{f-checkbox-3ba20ca4.js → f-checkbox-5cdd1cad.js} +3 -2
  308. package/dist/esm/{f-chip-c31b2c02.js → f-chip-bb62428a.js} +145 -11
  309. package/dist/esm/{f-image-9b15e9ac.js → f-image-a2ecd7c3.js} +1 -1
  310. package/dist/esm/{f-object-field-80e6eb02.js → f-object-field-b87b6ae6.js} +13 -6
  311. package/dist/esm/{f-paginator-utils-a835dde6.js → f-paginator-utils-04903d74.js} +3 -3
  312. package/dist/esm/{f-text-field-6b05bfbc.js → f-text-field-9be88e51.js} +15 -15
  313. package/dist/esm/{f-typography-65229068.js → f-typography-8c914ec6.js} +1 -1
  314. package/dist/esm/{index-c9246a86.js → index-9b0f4a0d.js} +8 -3
  315. package/dist/esm/index.js +2 -2
  316. package/dist/esm/ketchup.js +3 -3
  317. package/dist/esm/kup-accordion.entry.js +4 -4
  318. package/dist/esm/kup-activity-timeline.entry.js +43 -23
  319. package/dist/esm/{kup-autocomplete_28.entry.js → kup-autocomplete_29.entry.js} +2302 -1437
  320. package/dist/esm/kup-box.entry.js +60 -59
  321. package/dist/esm/kup-calendar.entry.js +12 -11
  322. package/dist/esm/kup-card-list.entry.js +3 -3
  323. package/dist/esm/kup-cell.entry.js +17 -12
  324. package/dist/esm/kup-custom-task-list-header_4.entry.js +12 -12
  325. package/dist/esm/kup-dashboard.entry.js +7 -7
  326. package/dist/esm/{kup-data-table-helper-1b2c70b8.js → kup-data-table-helper-13eb7abf.js} +28 -23
  327. package/dist/esm/kup-drawer.entry.js +3 -3
  328. package/dist/esm/kup-echart.entry.js +46 -14
  329. package/dist/esm/kup-editor.entry.js +2 -2
  330. package/dist/esm/kup-family-tree.entry.js +5 -5
  331. package/dist/esm/kup-gantt_10.entry.js +33 -33
  332. package/dist/esm/kup-grid.entry.js +3 -3
  333. package/dist/esm/kup-htm.entry.js +4 -4
  334. package/dist/esm/kup-iframe.entry.js +3 -3
  335. package/dist/esm/kup-image-list.entry.js +25 -21
  336. package/dist/esm/kup-input-panel.entry.js +102 -73
  337. package/dist/esm/kup-lazy.entry.js +14 -14
  338. package/dist/esm/kup-magic-box.entry.js +7 -7
  339. package/dist/esm/{kup-manager-5fbf0037.js → kup-manager-6aa0a1c7.js} +392 -239
  340. package/dist/esm/kup-nav-bar.entry.js +4 -4
  341. package/dist/esm/kup-numeric-picker.entry.js +6 -6
  342. package/dist/esm/kup-object-field.entry.js +7 -7
  343. package/dist/esm/kup-pdf.entry.js +4 -4
  344. package/dist/esm/kup-planner-renderer.entry.js +3 -3
  345. package/dist/esm/kup-planner.entry.js +6 -6
  346. package/dist/esm/kup-probe.entry.js +3 -3
  347. package/dist/esm/kup-qlik.entry.js +4 -4
  348. package/dist/esm/kup-snackbar.entry.js +6 -6
  349. package/dist/esm/kup-txt.entry.js +4 -4
  350. package/dist/esm/kup-typography-list.entry.js +5 -5
  351. package/dist/esm/kup-typography.entry.js +115 -15
  352. package/dist/esm/loader.js +3 -3
  353. package/dist/ketchup/assets/svg/circle.svg +3 -0
  354. package/dist/ketchup/assets/svg/up.svg +43 -0
  355. package/dist/ketchup/index.esm.js +1 -1
  356. package/dist/ketchup/ketchup.esm.js +1 -1
  357. package/dist/ketchup/p-07f50333.entry.js +1 -0
  358. package/dist/ketchup/p-0b1e0b48.js +1 -0
  359. package/dist/ketchup/p-0de49966.entry.js +1 -0
  360. package/dist/ketchup/{p-4608b0e6.entry.js → p-100b8ae7.entry.js} +1 -1
  361. package/dist/ketchup/{p-5635bfbf.entry.js → p-15f192f0.entry.js} +1 -1
  362. package/dist/ketchup/p-267d1898.js +1 -0
  363. package/dist/ketchup/p-2d84c26e.entry.js +1 -0
  364. package/dist/ketchup/p-3cab6420.js +1 -0
  365. package/dist/ketchup/p-3dbafa20.entry.js +9 -0
  366. package/dist/ketchup/p-3e42953b.entry.js +1 -0
  367. package/dist/ketchup/p-42a1f9ec.entry.js +1 -0
  368. package/dist/ketchup/p-4677cfd1.entry.js +1 -0
  369. package/dist/ketchup/{p-82badc23.entry.js → p-4ffc1a88.entry.js} +1 -1
  370. package/dist/ketchup/p-55b0991f.entry.js +1 -0
  371. package/dist/ketchup/p-58002a23.entry.js +1 -0
  372. package/dist/ketchup/p-5d9f2d24.entry.js +1 -0
  373. package/dist/ketchup/p-65b23870.entry.js +1 -0
  374. package/dist/ketchup/p-6b529a6f.entry.js +16 -0
  375. package/dist/ketchup/{p-b1a73691.entry.js → p-6d628b49.entry.js} +1 -1
  376. package/dist/ketchup/p-6fc1bb18.entry.js +1 -0
  377. package/dist/ketchup/{p-b0368f88.js → p-710d0a7d.js} +1 -1
  378. package/dist/ketchup/p-838d8e97.js +1 -0
  379. package/dist/ketchup/{p-e736bf6f.js → p-8be42f5c.js} +1 -1
  380. package/dist/ketchup/p-92431583.entry.js +1 -0
  381. package/dist/ketchup/{p-e8823224.entry.js → p-9b907768.entry.js} +1 -1
  382. package/dist/ketchup/p-9bc02da6.entry.js +1 -0
  383. package/dist/ketchup/p-9edd90c2.entry.js +1 -0
  384. package/dist/ketchup/p-9f9428d1.js +1 -0
  385. package/dist/ketchup/p-a4b6d6c5.js +1 -0
  386. package/dist/ketchup/p-a597a851.entry.js +1 -0
  387. package/dist/ketchup/p-b365f2f2.entry.js +1 -0
  388. package/dist/ketchup/{p-b16c12ab.entry.js → p-c2ccbaca.entry.js} +1 -1
  389. package/dist/ketchup/p-c4224227.js +1 -0
  390. package/dist/ketchup/{p-60cfddce.js → p-cec0955d.js} +1 -1
  391. package/dist/ketchup/p-d0554d1f.entry.js +1 -0
  392. package/dist/ketchup/p-d084b2d4.entry.js +1 -0
  393. package/dist/ketchup/{p-1374d2f7.entry.js → p-d8dbf3df.entry.js} +1 -1
  394. package/dist/ketchup/{p-a19d0102.entry.js → p-da44226a.entry.js} +1 -1
  395. package/dist/ketchup/p-e104cfb7.js +1 -0
  396. package/dist/ketchup/p-e4fa2cf3.js +21 -0
  397. package/dist/ketchup/{p-268af1b3.entry.js → p-e6afa8a6.entry.js} +4 -4
  398. package/dist/ketchup/{p-54ebe3bd.entry.js → p-f87b7768.entry.js} +1 -1
  399. package/dist/ketchup/{p-1aa03e7f.entry.js → p-f8a027a1.entry.js} +2 -2
  400. package/dist/ketchup/{p-34f29123.entry.js → p-fb775526.entry.js} +1 -1
  401. package/dist/ketchup/{p-a9fa88cc.entry.js → p-fdcb43a2.entry.js} +1 -1
  402. package/dist/types/components/kup-activity-timeline/kup-activity-timeline-declarations.d.ts +2 -2
  403. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +6 -0
  404. package/dist/types/components/kup-button-list/kup-button-list.d.ts +4 -0
  405. package/dist/types/components/kup-card/dialog/kup-card-dialog.d.ts +6 -0
  406. package/dist/types/components/kup-card/kup-card-declarations.d.ts +2 -0
  407. package/dist/types/components/kup-cell/kup-cell.d.ts +3 -0
  408. package/dist/types/components/kup-chip/kup-chip.d.ts +16 -5
  409. package/dist/types/components/kup-combobox/kup-combobox.d.ts +4 -0
  410. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +8 -2
  411. package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +1 -1
  412. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -0
  413. package/dist/types/components/kup-data-table/kup-data-table.d.ts +36 -1
  414. package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +1 -0
  415. package/dist/types/components/kup-dialog/kup-dialog-declarations.d.ts +3 -0
  416. package/dist/types/components/kup-dialog/kup-dialog.d.ts +16 -0
  417. package/dist/types/components/kup-echart/kup-echart.d.ts +15 -0
  418. package/dist/types/components/kup-file-upload/kup-file-upload-declarations.d.ts +8 -0
  419. package/dist/types/components/kup-file-upload/kup-file-upload.d.ts +62 -0
  420. package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +5 -1
  421. package/dist/types/components/kup-input-panel/kup-input-panel-utils.d.ts +3 -3
  422. package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +2 -1
  423. package/dist/types/components/kup-list/kup-list.d.ts +4 -0
  424. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +27 -6
  425. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +1 -0
  426. package/dist/types/components/kup-tree/kup-tree.d.ts +2 -0
  427. package/dist/types/components/kup-typography/kup-typography.d.ts +30 -5
  428. package/dist/types/components.d.ts +286 -26
  429. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +7 -3
  430. package/dist/types/f-components/f-checkbox/f-checkbox-declarations.d.ts +2 -1
  431. package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +3 -1
  432. package/dist/types/f-components/f-label/f-label-declarations.d.ts +15 -0
  433. package/dist/types/f-components/f-label/f-label.d.ts +3 -0
  434. package/dist/types/f-components/f-radio/f-radio-declarations.d.ts +1 -0
  435. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
  436. package/dist/types/managers/kup-interact/kup-interact-declarations.d.ts +20 -1
  437. package/dist/types/managers/kup-interact/kup-interact.d.ts +7 -3
  438. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +11 -2
  439. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +2 -0
  440. package/dist/types/managers/kup-manager/kup-manager.d.ts +2 -0
  441. package/dist/types/managers/kup-perf-monitoring/kup-perf-monitoring.d.ts +7 -0
  442. package/dist/types/managers/kup-perf-tuning/kup-perf-tuning-declarations.d.ts +6 -0
  443. package/dist/types/types/GenericTypes.d.ts +2 -1
  444. package/dist/types/utils/cell-utils.d.ts +4 -6
  445. package/dist/types/utils/filters/filters-rows.d.ts +5 -5
  446. package/dist/types/utils/filters/filters-tree-items.d.ts +1 -1
  447. package/dist/types/utils/filters/filters.d.ts +2 -2
  448. package/dist/types/utils/g-cell-style-generator.d.ts +2 -0
  449. package/dist/types/utils/label-utils.d.ts +2 -0
  450. package/package.json +1 -1
  451. package/dist/components/p-01015d54.js +0 -38
  452. package/dist/components/p-304eab56.js +0 -49
  453. package/dist/components/p-76c4c708.js +0 -56
  454. package/dist/components/p-aec44f8f.js +0 -45
  455. package/dist/ketchup/p-05aea063.entry.js +0 -1
  456. package/dist/ketchup/p-08691abd.entry.js +0 -1
  457. package/dist/ketchup/p-17279bd4.entry.js +0 -1
  458. package/dist/ketchup/p-1e53c21d.entry.js +0 -1
  459. package/dist/ketchup/p-27e9313b.entry.js +0 -1
  460. package/dist/ketchup/p-487909b5.entry.js +0 -1
  461. package/dist/ketchup/p-792e9244.entry.js +0 -1
  462. package/dist/ketchup/p-7966fa12.entry.js +0 -1
  463. package/dist/ketchup/p-7b5a2535.entry.js +0 -9
  464. package/dist/ketchup/p-7fc0ee16.entry.js +0 -1
  465. package/dist/ketchup/p-816de1ef.js +0 -1
  466. package/dist/ketchup/p-84ca2ebd.entry.js +0 -1
  467. package/dist/ketchup/p-8b97f53e.js +0 -1
  468. package/dist/ketchup/p-90a0de6c.js +0 -21
  469. package/dist/ketchup/p-9106b93f.js +0 -1
  470. package/dist/ketchup/p-9278528b.entry.js +0 -1
  471. package/dist/ketchup/p-a6cf4320.js +0 -1
  472. package/dist/ketchup/p-ab911e2d.js +0 -1
  473. package/dist/ketchup/p-b120abd7.js +0 -1
  474. package/dist/ketchup/p-b2ab5bdc.entry.js +0 -1
  475. package/dist/ketchup/p-bdbcb755.entry.js +0 -1
  476. package/dist/ketchup/p-cf2bf043.entry.js +0 -1
  477. package/dist/ketchup/p-d08d30c0.entry.js +0 -1
  478. package/dist/ketchup/p-d39c3267.js +0 -1
  479. package/dist/ketchup/p-e0fec6c7.entry.js +0 -1
  480. package/dist/ketchup/p-ee85055c.js +0 -1
  481. package/dist/ketchup/p-f38c2d0e.entry.js +0 -16
  482. package/dist/ketchup/p-f705d641.entry.js +0 -1
  483. package/dist/ketchup/p-febf0250.entry.js +0 -1
@@ -3,25 +3,25 @@ import { ItemsDisplayMode } from "../../components/kup-list/kup-list-declaration
3
3
  import { KupDebugCategory } from "../../managers/kup-debug/kup-debug-declarations";
4
4
  import { KupThemeColorValues } from "../../managers/kup-theme/kup-theme-declarations";
5
5
  import { KupComponentSizing, KupTagNames, } from "../../types/GenericTypes";
6
- import { adaptContentToDisplayMode, CMBandACPAdapter, getCellValueForDisplay, isForceLowercase, isForceUppercase, RADAdapter, } from "../../utils/cell-utils";
6
+ import { adaptContentToDisplayMode, CHIAdapter, CMBandACPAdapter, getCellValueForDisplay, isForceLowercase, isForceUppercase, RADAdapter, } from "../../utils/cell-utils";
7
7
  import { FButton } from "../f-button/f-button";
8
8
  import { FCheckbox } from "../f-checkbox/f-checkbox";
9
9
  import { FChip } from "../f-chip/f-chip";
10
10
  import { FChipType } from "../f-chip/f-chip-declarations";
11
11
  import { FImage } from "../f-image/f-image";
12
12
  import { FObjectField } from "../f-object-field/f-object-field";
13
- import { FProgressBar } from "../f-progress-bar/f-progress-bar";
14
13
  import { FRadio } from "../f-radio/f-radio";
15
14
  import { FRating } from "../f-rating/f-rating";
16
15
  import { FSwitch } from "../f-switch/f-switch";
17
16
  import { FTextField } from "../f-text-field/f-text-field";
18
17
  import { autoCenterComps, editableTypes, FCellClasses, FCellEvents, FCellShapes, FCellTypes, fullWidthFieldsComps, kupTypes, } from "./f-cell-declarations";
18
+ import { FLabel } from "../f-label/f-label";
19
19
  const dom = document.documentElement;
20
20
  /*-------------------------------------------------*/
21
21
  /* C o m p o n e n t */
22
22
  /*-------------------------------------------------*/
23
23
  export const FCell = (props, children) => {
24
- var _a, _b, _c, _d;
24
+ var _a, _b, _c, _d, _e;
25
25
  const cell = props.cell;
26
26
  const column = props.column;
27
27
  const row = props.row;
@@ -41,14 +41,13 @@ export const FCell = (props, children) => {
41
41
  isEditable = column.isEditable;
42
42
  }
43
43
  isEditable = isEditable && props.editable;
44
- if (cell.options) {
45
- cell.data = (_a = mapData(cell, column)) !== null && _a !== void 0 ? _a : cell.data;
46
- }
44
+ cell.data = (_a = mapData(cell, column)) !== null && _a !== void 0 ? _a : cell.data;
47
45
  const valueToDisplay = props.previousValue !== cell.value ? cell.value : '';
48
46
  const cellType = dom.ketchup.data.cell.getType(cell, shape);
49
- const subcomponentProps = Object.assign(Object.assign(Object.assign({}, cell.data), ((cell === null || cell === void 0 ? void 0 : cell.icon) ? { resource: cell.icon } : {})), ((cell === null || cell === void 0 ? void 0 : cell.placeholderIcon)
47
+ const sizing = props.density === 'extra_dense' ? 'extra-small' : (_b = cell.data) === null || _b === void 0 ? void 0 : _b.sizing;
48
+ const subcomponentProps = Object.assign(Object.assign(Object.assign(Object.assign({}, cell.data), ((cell === null || cell === void 0 ? void 0 : cell.icon) ? { resource: cell.icon } : {})), ((cell === null || cell === void 0 ? void 0 : cell.placeholderIcon)
50
49
  ? { placeholderResource: cell.placeholderIcon }
51
- : {}));
50
+ : {})), (sizing ? { sizing } : {}));
52
51
  let cssClasses = cell.cssClass
53
52
  ? cell.cssClass
54
53
  : (column === null || column === void 0 ? void 0 : column.cssClass)
@@ -63,14 +62,14 @@ export const FCell = (props, children) => {
63
62
  [cssClasses]: cssClasses ? true : false,
64
63
  'c-input-uppercase': isForceUppercase(cell),
65
64
  'c-input-lowercase': isForceLowercase(cell),
66
- 'monospace c-pre': (_b = cell.data) === null || _b === void 0 ? void 0 : _b.legacyLook,
65
+ 'monospace c-pre': (_c = cell.data) === null || _c === void 0 ? void 0 : _c.legacyLook,
67
66
  };
68
67
  let content = valueToDisplay;
69
68
  if (!cell.data) {
70
69
  setDefaults(cellType, cell);
71
70
  }
72
71
  if (isEditable && editableTypes.includes(cellType)) {
73
- cell.data.showMarker = (_c = cell.tooltip) !== null && _c !== void 0 ? _c : false;
72
+ cell.data.showMarker = (_d = cell.tooltip) !== null && _d !== void 0 ? _d : false;
74
73
  content = setEditableCell(cellType, classObj, cell, column, props);
75
74
  }
76
75
  else if (cell.data && kupTypes.includes(cellType)) {
@@ -89,12 +88,14 @@ export const FCell = (props, children) => {
89
88
  if (props.setSizes) {
90
89
  setCellSize(cellType, subcomponentProps, cell, props);
91
90
  }
92
- classObj[FCellClasses.INDICATOR_TOPRIGHT] = (_d = cell.tooltip) !== null && _d !== void 0 ? _d : false;
91
+ classObj[FCellClasses.INDICATOR_TOPRIGHT] = (_e = cell.tooltip) !== null && _e !== void 0 ? _e : false;
93
92
  content = setCell(cellType, subcomponentProps, content, classObj, cell, column, props);
94
93
  }
95
94
  let icon = null;
96
95
  if (!isEditable && (column.icon || cell.icon)) {
97
96
  if (content &&
97
+ cellType != FCellTypes.BUTTON &&
98
+ cellType != FCellTypes.BUTTON_LIST &&
98
99
  cellType != FCellTypes.IMAGE &&
99
100
  cellType != FCellTypes.ICON) {
100
101
  const fProps = {
@@ -167,11 +168,14 @@ const handleMouseLeave = (event) => {
167
168
  }
168
169
  };
169
170
  const mapData = (cell, column) => {
171
+ var _a;
170
172
  if (!cell) {
171
173
  return null;
172
174
  }
173
175
  const options = cell.options;
174
- const fieldLabel = column.title;
176
+ const fieldLabel = ((_a = cell.data) === null || _a === void 0 ? void 0 : _a.hasOwnProperty('label'))
177
+ ? cell.data.label
178
+ : column.title;
175
179
  const currentValue = cell.value;
176
180
  const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
177
181
  const dataAdapterMap = new Map([
@@ -187,24 +191,20 @@ const mapData = (cell, column) => {
187
191
  const adapter = dataAdapterMap.get(cellType);
188
192
  return adapter ? adapter(options, fieldLabel, currentValue, cell) : null;
189
193
  };
190
- const MainCHIAdapter = (options, _fieldLabel, _currentValue, cell) => {
191
- const newData = {
192
- data: (options === null || options === void 0 ? void 0 : options.length)
193
- ? options === null || options === void 0 ? void 0 : options.map((option) => ({
194
- id: option.id,
195
- value: option.id,
196
- }))
197
- : [],
198
- };
199
- cell.data = Object.assign(Object.assign({}, cell.data), newData);
194
+ const MainCHIAdapter = (_options, _fieldLabel, _currentValue, cell) => {
195
+ var _a;
196
+ if (!((_a = cell.data) === null || _a === void 0 ? void 0 : _a.data)) {
197
+ return CHIAdapter(cell.value, cell.decode);
198
+ }
199
+ else {
200
+ return Object.assign({}, cell.data);
201
+ }
200
202
  };
201
- const MainObjectAdapter = (_options, fieldLabel, currentValue, _cell, _id) => ({
202
- data: {
203
+ const MainObjectAdapter = (_options, fieldLabel, currentValue, cell, _id) => (Object.assign(Object.assign({}, cell.data), { data: {
203
204
  initialValue: currentValue || '',
204
205
  label: fieldLabel || '',
205
206
  value: currentValue || '',
206
- },
207
- });
207
+ } }));
208
208
  const MainCHKAdapter = (_options, fieldLabel, currentValue, cell) => (Object.assign(Object.assign({}, cell.data), { checked: currentValue === 'on' || currentValue === '1', label: fieldLabel }));
209
209
  const MainBTNAdapter = (_options, _fieldLabel, currentValue, cell) => ({
210
210
  data: [
@@ -214,7 +214,7 @@ const MainBTNAdapter = (_options, _fieldLabel, currentValue, cell) => ({
214
214
  const MainITXAdapter = (_options, fieldLabel, _currentValue, cell) => (Object.assign(Object.assign({}, cell.data), { label: fieldLabel }));
215
215
  const MainRADAdapter = (options, _fieldLabel, currentValue, cell) => {
216
216
  const newData = RADAdapter(currentValue, options);
217
- cell.data = Object.assign(Object.assign({}, cell.data), newData);
217
+ return Object.assign(Object.assign({}, cell.data), newData);
218
218
  };
219
219
  const MainCMBandACPAdapter = (options, fieldLabel, currentValue, cell, _id) => {
220
220
  var _a;
@@ -378,11 +378,11 @@ function setCellSizeKup(cellType, subcomponentProps, cell) {
378
378
  case FCellTypes.CHIP:
379
379
  if (cell.style) {
380
380
  if (!cell.style.height) {
381
- cell.style['minHeight'] = '40px';
381
+ cell.style['minHeight'] = '18px';
382
382
  }
383
383
  }
384
384
  else {
385
- cell.style = { minHeight: '40px' };
385
+ cell.style = { minHeight: '18px' };
386
386
  }
387
387
  break;
388
388
  case FCellTypes.RADIO:
@@ -398,7 +398,7 @@ function setCellSizeKup(cellType, subcomponentProps, cell) {
398
398
  }
399
399
  }
400
400
  function setEditableCell(cellType, classObj, cell, column, props) {
401
- var _a, _b, _c, _d;
401
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
402
402
  switch (cellType) {
403
403
  case FCellTypes.AUTOCOMPLETE:
404
404
  return (h("kup-autocomplete", Object.assign({ key: column.name + props.row.id, initialValue: cell.value, initialValueDecode: cell.decode }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', "onkup-autocomplete-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-autocomplete-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onkup-autocomplete-iconclick": (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK), "onKup-autocomplete-blur": (e) => cellEvent(e, props, cellType, FCellEvents.BLUR), "onKup-autocomplete-itemclick": (e) => cellEvent(e, props, cellType, FCellEvents.ITEMCLICK) })));
@@ -424,17 +424,31 @@ function setEditableCell(cellType, classObj, cell, column, props) {
424
424
  case FCellTypes.DATE:
425
425
  return (h("kup-date-picker", Object.assign({ key: column.name + props.row.id, initialValue: cell.value }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', "onkup-datepicker-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-datepicker-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onKup-datepicker-blur": (e) => cellEvent(e, props, cellType, FCellEvents.BLUR), "onkup-datepicker-textfieldsubmit": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) })));
426
426
  case FCellTypes.EDITOR:
427
+ const onEditorKeyDown = (e) => {
428
+ const isPlainEnter = e.key === 'Enter' && !e.ctrlKey;
429
+ const isSubmit = e.key === 'Enter' && e.ctrlKey;
430
+ if (isPlainEnter) {
431
+ e.stopPropagation();
432
+ return;
433
+ }
434
+ if (isSubmit || /^F[1-9]|F1[0-2]$/.test(e.key)) {
435
+ cellEvent(e, props, cellType, FCellEvents.UPDATE);
436
+ }
437
+ };
427
438
  return (h(FTextField, Object.assign({}, cell.data, { textArea: true, sizing: KupComponentSizing.EXTRA_LARGE, label: column.title, fullWidth: isFullWidth(props) ? true : false, maxLength: cell.data.maxLength, value: cell.value, onChange: (e) => {
428
439
  cellEvent(e, props, cellType, FCellEvents.UPDATE);
429
440
  }, onInput: (e) => {
430
441
  var _a, _b;
431
442
  (_b = (_a = cell.data) === null || _a === void 0 ? void 0 : _a.onInput) === null || _b === void 0 ? void 0 : _b.call(_a, e);
432
443
  cellEvent(e, props, cellType, FCellEvents.INPUT);
433
- }, onBlur: (e) => cellEvent(e, props, cellType, FCellEvents.BLUR) })));
434
- case FCellTypes.MULTI_AUTOCOMPLETE:
435
- return (h("kup-chip", Object.assign({ displayId: true }, cell.data, { type: FChipType.INPUT, enableInput: true, "onKup-chip-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) }), h("kup-autocomplete", Object.assign({ class: "kup-full-width", slot: "field", displayMode: ItemsDisplayMode.CODE_AND_DESC, selectMode: ItemsDisplayMode.CODE_AND_DESC, "onKup-autocomplete-blur": (e) => cellEvent(e, props, cellType, FCellEvents.BLUR), "onkup-autocomplete-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onkup-autocomplete-iconclick": (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK), showDropDownIcon: false }, cell.slotData, { error: cell.data.error, showMarker: (_a = cell.tooltip) !== null && _a !== void 0 ? _a : false }))));
444
+ }, onBlur: (e) => cellEvent(e, props, cellType, FCellEvents.BLUR), onKeyDown: onEditorKeyDown })));
445
+ case FCellTypes.FILE_UPLOAD:
446
+ return h("kup-file-upload", Object.assign({}, cell.data));
447
+ case FCellTypes.MULTI_AUTOCOMPLETE: {
448
+ return (h("kup-chip", Object.assign({ displayMode: (_a = cell.data.displayMode) !== null && _a !== void 0 ? _a : ItemsDisplayMode.DESCRIPTION }, cell.data, { label: (_c = (_b = cell.slotData) === null || _b === void 0 ? void 0 : _b.label) !== null && _c !== void 0 ? _c : '', type: FChipType.INPUT, enableInput: true, "onKup-chip-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) }), h("kup-autocomplete", { class: "kup-full-width", slot: "field", displayMode: ItemsDisplayMode.CODE_AND_DESC, sizing: KupComponentSizing.EXTRA_SMALL, "onKup-autocomplete-blur": (e) => cellEvent(e, props, cellType, FCellEvents.BLUR), "onkup-autocomplete-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onkup-autocomplete-iconclick": (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK), data: (_d = cell.slotData) === null || _d === void 0 ? void 0 : _d.data, initialValue: (_e = cell.slotData) === null || _e === void 0 ? void 0 : _e.initialValue, showDropDownIcon: (_f = cell.slotData) === null || _f === void 0 ? void 0 : _f.showDropDownIcon, style: (_g = cell.slotData) === null || _g === void 0 ? void 0 : _g.style, disabled: (_h = cell.slotData) === null || _h === void 0 ? void 0 : _h.disabled, id: (_j = cell.slotData) === null || _j === void 0 ? void 0 : _j.id, error: cell.data.error, showMarker: (_k = cell.tooltip) !== null && _k !== void 0 ? _k : false, listDisplayMode: cell.data.listDisplayMode })));
449
+ }
436
450
  case FCellTypes.MULTI_COMBOBOX:
437
- return (h("kup-chip", Object.assign({ displayId: true }, cell.data, { type: FChipType.INPUT, enableInput: true, "onKup-chip-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) }), h("kup-combobox", Object.assign({ class: "kup-full-width", slot: "field", displayMode: ItemsDisplayMode.CODE_AND_DESC, selectMode: ItemsDisplayMode.CODE_AND_DESC, "onKup-combobox-blur": (e) => cellEvent(e, props, cellType, FCellEvents.BLUR), "onkup-combobox-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onkup-combobox-iconclick": (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK) }, cell.slotData, { error: cell.data.error, showMarker: (_b = cell.tooltip) !== null && _b !== void 0 ? _b : false }))));
451
+ return (h("kup-chip", Object.assign({ displayMode: (_l = cell.data.displayMode) !== null && _l !== void 0 ? _l : ItemsDisplayMode.DESCRIPTION }, cell.data, { type: FChipType.INPUT, enableInput: true, "onKup-chip-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) }), h("kup-combobox", Object.assign({ class: "kup-full-width", slot: "field", displayMode: ItemsDisplayMode.CODE_AND_DESC, sizing: KupComponentSizing.EXTRA_SMALL, "onKup-combobox-blur": (e) => cellEvent(e, props, cellType, FCellEvents.BLUR), "onkup-combobox-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onkup-combobox-iconclick": (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK) }, cell.slotData, { error: cell.data.error, showMarker: (_m = cell.tooltip) !== null && _m !== void 0 ? _m : false }))));
438
452
  case FCellTypes.RADIO:
439
453
  return (h(FRadio, Object.assign({}, cell.data, { disabled: false, onChange: (i, e) => {
440
454
  const radioData = cell.data.data;
@@ -471,11 +485,16 @@ function setEditableCell(cellType, classObj, cell, column, props) {
471
485
  const onKeyDown = (e) => {
472
486
  var _a, _b, _c;
473
487
  (_b = (_a = cell.data) === null || _a === void 0 ? void 0 : _a.onKeyDown) === null || _b === void 0 ? void 0 : _b.call(_a, e); // call onKeyDown handler if it is set as prop
474
- if ((!(cell.shape == 'MEMO' ||
475
- cellType == FCellTypes.MEMO ||
476
- ((_c = cell.data) === null || _c === void 0 ? void 0 : _c.maxLength) >= 256) &&
477
- e.key === 'Enter') ||
478
- /^F[1-9]|F1[0-2]$/.test(e.key)) {
488
+ const isMemo = cell.shape === 'MEMO' ||
489
+ ((_c = cell.data) === null || _c === void 0 ? void 0 : _c.maxLength) >= 256 ||
490
+ cellType === FCellTypes.MEMO;
491
+ const isSubmit = e.key === 'Enter' && e.ctrlKey;
492
+ const isPlainEnter = e.key === 'Enter' && !e.ctrlKey;
493
+ if (isMemo && isPlainEnter) {
494
+ e.stopPropagation();
495
+ return;
496
+ }
497
+ if (isSubmit || /^F[1-9]|F1[0-2]$/.test(e.key)) {
479
498
  cellEvent(e, props, cellType, FCellEvents.UPDATE);
480
499
  }
481
500
  };
@@ -484,14 +503,16 @@ function setEditableCell(cellType, classObj, cell, column, props) {
484
503
  const value = cellType === FCellTypes.NUMBER && cell.value
485
504
  ? getCellValueForDisplay(column, cell)
486
505
  : cell.value;
487
- return (h("input", { class: 'input-field', onChange: onChange, onInput: onInput, onKeyDown: onKeyDown, type: type, value: value, maxLength: (_d = (_c = column.cellData) === null || _c === void 0 ? void 0 : _c.maxLength) !== null && _d !== void 0 ? _d : -1 }));
506
+ return (h("input", { class: 'input-field', onChange: onChange, onInput: onInput, onKeyDown: onKeyDown, type: type, value: value, maxLength: (_p = (_o = column.cellData) === null || _o === void 0 ? void 0 : _o.maxLength) !== null && _p !== void 0 ? _p : -1 }));
488
507
  }
489
508
  else {
490
509
  const isTextArea = (cell.shape ? cell.shape === FCellShapes.MEMO : false) ||
491
510
  (cellType ? cellType === FCellTypes.MEMO : false);
492
- return (h(FTextField, Object.assign({}, cell.data, { textArea: isTextArea, sizing: isTextArea
493
- ? KupComponentSizing.EXTRA_LARGE
494
- : KupComponentSizing.SMALL, inputType: type, fullWidth: isFullWidth(props) ? true : false, maxLength: (cellType == FCellTypes.NUMBER &&
511
+ return (h(FTextField, Object.assign({}, cell.data, { textArea: isTextArea, sizing: cell.data.sizing
512
+ ? cell.data.sizing
513
+ : isTextArea
514
+ ? KupComponentSizing.EXTRA_LARGE
515
+ : KupComponentSizing.SMALL, inputType: type, fullWidth: isFullWidth(props) ? true : false, maxLength: (cellType == FCellTypes.NUMBER &&
495
516
  ((props.column.decimals &&
496
517
  props.column.decimals > 0) ||
497
518
  props.column.group)) ||
@@ -503,7 +524,7 @@ function setEditableCell(cellType, classObj, cell, column, props) {
503
524
  ? cell.icon
504
525
  : column.icon
505
526
  ? column.icon
506
- : null, decimals: props.column.decimals, integers: props.column.integers, group: props.column.group, value: cell.value, onChange: onChange, onInput: onInput, onKeyDown: onKeyDown, onIconClick: (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK), onBlur: (e) => cellEvent(e, props, cellType, FCellEvents.BLUR) })));
527
+ : null, decimals: props.column.decimals, integers: props.column.integers, group: props.column.group, value: cell.value, label: column.title, onChange: onChange, onInput: onInput, onKeyDown: onKeyDown, onIconClick: (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK), onBlur: (e) => cellEvent(e, props, cellType, FCellEvents.BLUR) })));
507
528
  }
508
529
  }
509
530
  }
@@ -531,6 +552,7 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
531
552
  ? 'check_box'
532
553
  : 'check_box_outline_blank', sizeX: "18px", sizeY: "18px" }));
533
554
  case FCellTypes.EDITOR:
555
+ case FCellTypes.MEMO:
534
556
  return h("div", { innerHTML: cell.value });
535
557
  case FCellTypes.ICON:
536
558
  if (isAutoCentered(props)) {
@@ -569,6 +591,8 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
569
591
  }
570
592
  subcomponentProps['disabled'] = true;
571
593
  return h(FSwitch, Object.assign({}, subcomponentProps));
594
+ case FCellTypes.LABEL:
595
+ return h(FLabel, { text: cell.value, classes: "f-cell__text" });
572
596
  default:
573
597
  return (h("div", { class: "f-cell__text" }, cell.data.displayMode
574
598
  ? adaptContentToDisplayMode(cell, content, '-')
@@ -592,7 +616,8 @@ function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, pr
592
616
  if (isAutoCentered(props)) {
593
617
  classObj[FCellClasses.C_CENTERED] = true;
594
618
  }
595
- return (h(FButton, Object.assign({}, subcomponentProps, { onClick: (e) => cellEvent(e, props, cellType, FCellEvents.CLICK) })));
619
+ const buttonProps = Object.assign({ label: cell.value, icon: cell.icon, placeholderIcon: cell.placeholderIcon }, subcomponentProps);
620
+ return (h(FButton, Object.assign({}, buttonProps, { onClick: (e) => cellEvent(e, props, cellType, FCellEvents.CLICK) })));
596
621
  case FCellTypes.BUTTON_LIST:
597
622
  if (isAutoCentered(props)) {
598
623
  classObj[FCellClasses.C_CENTERED] = true;
@@ -618,7 +643,7 @@ function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, pr
618
643
  return (h("kup-gauge", Object.assign({ key: column.name + props.row.id, value: dom.ketchup.math.numberifySafe(cell.value), "width-component": "280px" }, subcomponentProps)));
619
644
  case FCellTypes.KNOB:
620
645
  case FCellTypes.PROGRESS_BAR:
621
- return subcomponentProps.customStyle ? (h("kup-progress-bar", Object.assign({ key: column.name + props.row.id }, subcomponentProps))) : (h(FProgressBar, Object.assign({}, subcomponentProps)));
646
+ return (h("kup-progress-bar", Object.assign({ key: column.name + props.row.id }, subcomponentProps, { value: dom.ketchup.math.numberifySafe(cell.value) })));
622
647
  case FCellTypes.RADIO:
623
648
  if (isAutoCentered(props)) {
624
649
  classObj[FCellClasses.C_CENTERED] = true;
@@ -798,7 +823,7 @@ function setDefaults(cellType, cell) {
798
823
  }
799
824
  }
800
825
  function cellEvent(e, props, cellType, cellEventName) {
801
- var _a, _b;
826
+ var _a, _b, _c, _d, _e, _f, _g, _h;
802
827
  const cell = props.cell;
803
828
  const column = props.column;
804
829
  const comp = props.component;
@@ -813,7 +838,14 @@ function cellEvent(e, props, cellType, cellEventName) {
813
838
  }
814
839
  switch (cellType) {
815
840
  case FCellTypes.AUTOCOMPLETE:
841
+ cell.decode = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.node) === null || _b === void 0 ? void 0 : _b.value;
842
+ if (cell.data) {
843
+ cell.data['initialValue'] = value;
844
+ cell.data['initialValueDecode'] = (_d = (_c = e.detail) === null || _c === void 0 ? void 0 : _c.node) === null || _d === void 0 ? void 0 : _d.value;
845
+ }
846
+ break;
816
847
  case FCellTypes.COMBOBOX:
848
+ cell.decode = (_f = (_e = e.detail) === null || _e === void 0 ? void 0 : _e.node) === null || _f === void 0 ? void 0 : _f.value;
817
849
  case FCellTypes.DATE:
818
850
  case FCellTypes.TIME:
819
851
  if (cell.data) {
@@ -846,10 +878,6 @@ function cellEvent(e, props, cellType, cellEventName) {
846
878
  cell.data.data = e.detail.comp.data;
847
879
  }
848
880
  break;
849
- case FCellTypes.EDITOR:
850
- case FCellTypes.STRING:
851
- value = JSON.stringify(value).slice(1, -1);
852
- break;
853
881
  }
854
882
  if (cell.obj) {
855
883
  cell.obj.k = value === null || value === void 0 ? void 0 : value.toString();
@@ -871,7 +899,7 @@ function cellEvent(e, props, cellType, cellEventName) {
871
899
  event: e,
872
900
  row: row,
873
901
  type: cellType,
874
- inputValue: ((_b = (_a = cell.element) === null || _a === void 0 ? void 0 : _a.querySelector('input')) === null || _b === void 0 ? void 0 : _b.value) || null,
902
+ inputValue: ((_h = (_g = cell.element) === null || _g === void 0 ? void 0 : _g.querySelector('input')) === null || _h === void 0 ? void 0 : _h.value) || null,
875
903
  },
876
904
  });
877
905
  comp.rootElement.dispatchEvent(cellEvent);
@@ -13,6 +13,7 @@ export const FCheckbox = (props) => {
13
13
  'checkbox--disabled': props.disabled ? true : false,
14
14
  'checkbox--indeterminate': props.indeterminate ? true : false,
15
15
  'checkbox--legacy-look': props.legacyLook ? true : false,
16
+ [`checkbox--${props.sizing || 'small'}`]: true,
16
17
  };
17
18
  const propsFImage = {
18
19
  color: props.error
@@ -3,6 +3,8 @@ import { FChipStyling, FChipType, } from "../f-chip/f-chip-declarations";
3
3
  import { FImage } from "../f-image/f-image";
4
4
  import { KupThemeIconValues, } from "../../managers/kup-theme/kup-theme-declarations";
5
5
  import { KupLanguageGeneric } from "../../managers/kup-language/kup-language-declarations";
6
+ import { ItemsDisplayMode } from "../../components/kup-list/kup-list-declarations";
7
+ import { getIdOfItemByDisplayMode } from "../../components/kup-list/kup-list-helper";
6
8
  const dom = document.documentElement;
7
9
  /*-------------------------------------------------*/
8
10
  /* C o m p o n e n t */
@@ -14,6 +16,9 @@ export const FChip = (props) => {
14
16
  if (!props.type) {
15
17
  props.type = FChipType.STANDARD;
16
18
  }
19
+ if (!props.displayMode) {
20
+ props.displayMode = ItemsDisplayMode.DESCRIPTION;
21
+ }
17
22
  const isChoice = props.type.toLowerCase() === FChipType.CHOICE;
18
23
  const isFilter = props.type.toLowerCase() === FChipType.FILTER;
19
24
  const isInput = props.type.toLowerCase() === FChipType.INPUT;
@@ -26,7 +31,7 @@ export const FChip = (props) => {
26
31
  'chip-set--input': isInput ? true : false,
27
32
  'chip--outlined': isOutlined ? true : false,
28
33
  'chip--raised': isRaised ? true : false,
29
- [`chip--${props.sizing}`]: props.sizing ? true : false,
34
+ [`chip--${props.sizing || 'extra-small'}`]: true,
30
35
  };
31
36
  return (h("div", Object.assign({ class: `f-chip ${props.danger ? 'kup-danger' : ''} ${props.info ? 'kup-info' : ''} ${props.secondary ? 'kup-secondary' : ''} ${props.success ? 'kup-success' : ''} ${props.warning ? 'kup-warning' : ''} ${props.wrapperClass ? props.wrapperClass : ''} ${props.primary ? 'kup-primary' : ''}` }, props.dataSet, { id: props.id, title: props.title }), h("div", { class: classObj, role: "grid" }, createChipList(props, isChoice, isFilter, isInput))));
32
37
  };
@@ -45,6 +50,7 @@ function createChipList(props, isChoice, isFilter, isInput) {
45
50
  const indentStyle = {
46
51
  ['--kup_chip_indent_offset']: indent.toString(),
47
52
  };
53
+ const isDisabled = props.disabled;
48
54
  chipGroup.push(h("div", { class: `chip-set__wrapper ${hasChildren && !showChildren
49
55
  ? 'chip-set__wrapper--hidden-children'
50
56
  : ''}` }, h("div", { class: "chip-set__indent", style: indentStyle }), hasChildren ? (h(FImage, { onClick: props.onExpansionClick &&
@@ -53,7 +59,7 @@ function createChipList(props, isChoice, isFilter, isInput) {
53
59
  : null, resource: `${KupThemeIconValues.DROPDOWN}`, sizeX: "16px", sizeY: "16px", title: dom.ketchup.language.translate(KupLanguageGeneric.EXPAND) +
54
60
  '/' +
55
61
  dom.ketchup.language.translate(KupLanguageGeneric.COLLAPSE) +
56
- ' (CTRL + Click)', wrapperClass: "dropdown-icon" })) : indent ? (h(FImage, { resource: "blank", sizeX: "16px", sizeY: "16px", wrapperClass: "dropdown-icon" })) : null, createChip(chip)));
62
+ ' (CTRL + Click)', wrapperClass: "dropdown-icon" })) : indent ? (h(FImage, { resource: "blank", sizeX: "16px", sizeY: "16px", wrapperClass: "dropdown-icon" })) : null, createChip(chip, isDisabled)));
57
63
  if (showChildren) {
58
64
  for (let index = 0; index < chip.children.length; index++) {
59
65
  if (chip.children[index]) {
@@ -62,9 +68,9 @@ function createChipList(props, isChoice, isFilter, isInput) {
62
68
  }
63
69
  }
64
70
  }
65
- function createChip(chip) {
71
+ function createChip(chip, disabled) {
66
72
  const onlyIcon = !!(chip.icon && !chip.value);
67
- let componentClass = `chip ${onlyIcon ? 'chip--only-icon' : ''}`;
73
+ let componentClass = `chip ${onlyIcon ? 'chip--only-icon' : ''} ${disabled && 'chip--disabled'}`;
68
74
  let iconEl = [];
69
75
  let iconClass = 'chip__icon chip__icon--leading';
70
76
  if (isFilter || isChoice) {
@@ -91,6 +97,7 @@ function createChipList(props, isChoice, isFilter, isInput) {
91
97
  if (isFilter) {
92
98
  iconEl.push(h("span", { class: "chip__checkmark" }, h("svg", { class: "chip__checkmark-svg", viewBox: "-2 -3 30 30" }, h("path", { class: "chip__checkmark-path", fill: "none", stroke: "black", d: "M1.73,12.91 8.1,19.28 22.79,4.59" }))));
93
99
  }
100
+ let chipText = getIdOfItemByDisplayMode(chip, chip.value == '' ? ItemsDisplayMode.CODE : props.displayMode, ' - ');
94
101
  return (h("div", { class: componentClass, "data-value": chip.id, onClick: props.onClick && props.onClick[i]
95
102
  ? props.onClick[i].bind(props.onClick[i], chip)
96
103
  : null, role: "row", title: chip.title ? chip.title : '' }, h("span", { class: "chip-set__indent" }), iconEl, h("span", { role: "gridcell" }, h("span", { role: "button", tabindex: i, class: "chip__primary-action",
@@ -99,9 +106,7 @@ function createChipList(props, isChoice, isFilter, isInput) {
99
106
  ? props.onBlur[i].bind(props.onBlur[i], chip)
100
107
  : null, onFocus: props.onFocus && props.onFocus[i]
101
108
  ? props.onFocus[i].bind(props.onFocus[i], chip)
102
- : null }, h("span", { class: "chip__text" }, props.displayId
103
- ? chip.id + ' - ' + chip.value
104
- : chip.value))), isInput ? (h("span", { role: "gridcell" }, h("span", { tabindex: "-1", class: `kup-icon chip__icon ${KupThemeIconValues.CLEAR.replace('--', '')}`, onClick: props.onIconClick && props.onIconClick[i]
109
+ : null }, h("span", { class: "chip__text" }, chipText))), isInput ? (h("span", { role: "gridcell" }, h("span", { tabindex: "-1", class: `kup-icon chip__icon ${KupThemeIconValues.CLEAR.replace('--', '')}`, onClick: props.onIconClick && props.onIconClick[i]
105
110
  ? props.onIconClick[i].bind(props.onIconClick[i], chip)
106
111
  : null }))) : null));
107
112
  }
@@ -0,0 +1,21 @@
1
+ import { Fragment, h } from "@stencil/core";
2
+ import { getParsedElements } from "../../utils/label-utils";
3
+ import { getGCellStyle } from "../../utils/g-cell-style-generator";
4
+ function getVNodes(parsedElements) {
5
+ return parsedElements.map((e) => {
6
+ var _a, _b;
7
+ const style = getGCellStyle((_a = e.tag) === null || _a === void 0 ? void 0 : _a.replace(/[_]/g, '').slice(1));
8
+ return e.closed ? (h("span", { style: style }, e.content)) : (h("span", null, `${(_b = e.tag) !== null && _b !== void 0 ? _b : ''}${e.content}`));
9
+ });
10
+ }
11
+ export const FLabel = ({ text, classes }) => {
12
+ const parsedElements = getParsedElements(text);
13
+ // To avoid creating unnecessary span in the text
14
+ // when there are no tags to format the content
15
+ if (parsedElements.find((p) => p.tag !== undefined)) {
16
+ return h("span", { class: classes }, getVNodes(parsedElements));
17
+ }
18
+ else {
19
+ return h(Fragment, null, text);
20
+ }
21
+ };
@@ -8,12 +8,17 @@ import { FTextField } from "../f-text-field/f-text-field";
8
8
  const STATE = new WeakMap();
9
9
  export const FObjectField = (props) => {
10
10
  var _a;
11
+ let helperSection;
12
+ const attachHelperSection = (element) => {
13
+ helperSection = element;
14
+ return false;
15
+ };
11
16
  return (h("div", { class: `f-object-field ${props.wrapperClass ? props.wrapperClass : ''}`, ref: async (el) => {
12
17
  if (el) {
13
18
  props.root = el;
14
19
  setState(props);
15
20
  }
16
- } }, h(FTextField, Object.assign({ icon: 'search', trailingIcon: true, disabled: false }, (_a = props.cell) === null || _a === void 0 ? void 0 : _a.data, { value: props.inputValue, onChange: props.onChange, onIconClick: handlers.icon.bind(props), onInput: handlers.input.bind(props), onKeyDown: handlers.keydown.bind(props) })), h(FButton, { icon: 'menu', onClick: handlers.button.bind(props), sizing: KupComponentSizing.SMALL, styling: FButtonStyling.FLAT, wrapperClass: "obj-field-extra-btn" }), h("kup-toolbar", { "onKup-toolbar-click": handlers.toolbar.bind(props) })));
21
+ } }, h("div", { class: "fields-wrapper" }, h(FTextField, Object.assign({ icon: 'search', trailingIcon: true, disabled: false }, (_a = props.cell) === null || _a === void 0 ? void 0 : _a.data, { attachHelperSection: attachHelperSection, value: props.inputValue, onChange: props.onChange, onIconClick: handlers.icon.bind(props), onInput: handlers.input.bind(props), onKeyDown: handlers.keydown.bind(props) })), h(FButton, { icon: 'menu', onClick: handlers.button.bind(props), sizing: KupComponentSizing.SMALL, styling: FButtonStyling.FLAT, wrapperClass: "obj-field-extra-btn" })), helperSection, h("kup-toolbar", { "onKup-toolbar-click": handlers.toolbar.bind(props) })));
17
22
  };
18
23
  function openList(props) {
19
24
  const { cell } = props;
@@ -19,13 +19,24 @@ export const FRadio = (props) => {
19
19
  [`radio--${props.type}`]: props.type ? true : false,
20
20
  };
21
21
  radioList.push(h("div", { class: `form-field
22
- ${props.leadingLabel ? ' form-field--align-end' : ''} ${props.disabled ? 'radio--disabled' : ''}` }, h("div", { class: classObj }, radioType === FRadioType.RADIO ? (h("input", { class: "radio__native-control", type: "radio", name: "radio-element", value: data.value, checked: data.checked, disabled: props.disabled, onBlur: props.onBlur, onChange: props.onChange
22
+ ${props.leadingLabel ? ' form-field--align-end' : ''} ${props.disabled ? 'radio--disabled' : ''} ${radioType === FRadioType.CHEVRON ? 'form--chevron' : ''}`, onClick: props.onChange
23
23
  ? props.onChange.bind(props.onChange, i)
24
- : null, onFocus: props.onFocus })) : (h(Fragment, null, data.checked ? (h(FImage, { resource: "check", sizeX: "14px", sizeY: "14px" })) : (h(FImage, { sizeX: "14px", sizeY: "14px", onClick: props.onChange
25
- ? props.onChange.bind(props.onChange, i)
26
- : null })))), radioType === FRadioType.RADIO && (h("div", { class: "radio__background" }, h("div", { class: "radio__outer-circle" }), h("div", { class: "radio__inner-circle" })))), h("label", { htmlFor: 'radio-element', onClick: props.onChange
27
- ? props.onChange.bind(props.onChange, i)
28
- : null }, data.label ? data.label : '')));
24
+ : null }, h("div", { class: classObj }, radioType === FRadioType.RADIO ? (h("input", { class: "radio__native-control", type: "radio", name: "radio-element", value: data.value, checked: data.checked, disabled: props.disabled, onBlur: props.onBlur, onChange: (e) => {
25
+ if (props.onChange) {
26
+ props.onChange(i, e);
27
+ }
28
+ e.stopPropagation();
29
+ }, onFocus: props.onFocus })) : (h(Fragment, null, data.checked ? (h(FImage, { resource: "check", sizeX: "14px", sizeY: "14px" })) : (h(FImage, { sizeX: "14px", sizeY: "14px", onClick: (e) => {
30
+ if (props.onChange) {
31
+ props.onChange(i, e);
32
+ }
33
+ e.stopPropagation();
34
+ } })))), radioType === FRadioType.RADIO && (h("div", { class: "radio__background" }, h("div", { class: "radio__outer-circle" }), h("div", { class: "radio__inner-circle" })))), h("div", { class: "label-wrapper", onClick: (e) => {
35
+ if (props.onChange) {
36
+ props.onChange(i, e);
37
+ }
38
+ e.stopPropagation();
39
+ } }, radioType === FRadioType.CHEVRON && (h(FImage, { resource: data.icon, sizeX: "14px", sizeY: "14px" })), h("label", { htmlFor: 'radio-element' }, data.label ? data.label : ''))));
29
40
  }
30
41
  const styleObj = {
31
42
  '--kup_radio_columns': hasColumns
@@ -6,6 +6,7 @@ const dom = document.documentElement;
6
6
  /* C o m p o n e n t */
7
7
  /*-------------------------------------------------*/
8
8
  export const FTextField = (props, children) => {
9
+ var _a, _b;
9
10
  const classObj = {
10
11
  'f-text-field': true,
11
12
  'kup-danger': props.danger,
@@ -17,13 +18,16 @@ export const FTextField = (props, children) => {
17
18
  'kup-shaped': props.shaped,
18
19
  'kup-success': props.success,
19
20
  'kup-warning': props.warning,
21
+ [`f-text-field--${props.sizing || 'small'}`]: true,
20
22
  [props.wrapperClass]: !!props.wrapperClass,
21
23
  };
24
+ const helper = setHelper(props);
25
+ const attachHelperSection = (_b = (_a = props.attachHelperSection) === null || _a === void 0 ? void 0 : _a.call(props, helper)) !== null && _b !== void 0 ? _b : true;
22
26
  return (h("div", Object.assign({ class: classObj }, props.dataSet, { id: props.id, title: props.title }), props.leadingLabel || props.trailingLabel ? (h("div", { class: `mdc-form-field ${props.leadingLabel ? 'mdc-form-field--align-end' : ''}` }, [
23
27
  setContent(props),
24
- setHelper(props),
28
+ attachHelperSection ? helper : null,
25
29
  h("label", null, props.label),
26
- ])) : ([setContent(props), setHelper(props)]), children));
30
+ ])) : ([setContent(props), attachHelperSection ? helper : null]), children));
27
31
  };
28
32
  /*-------------------------------------------------*/
29
33
  /* M e t h o d s */
@@ -38,7 +42,11 @@ function setContent(props) {
38
42
  if (props.maxLength >= 256) {
39
43
  props.textArea = true;
40
44
  }
41
- if (props.label && !props.leadingLabel && !props.trailingLabel) {
45
+ if (props.label &&
46
+ !props.leadingLabel &&
47
+ !props.trailingLabel &&
48
+ !props.legacyLook // do not show label in input panel absolute ( legacy mode )
49
+ ) {
42
50
  labelEl = (h("div", { class: "mdc-text-field__label-container" }, h("label", { class: "mdc-label", htmlFor: "kup-input" }, props.label), props.maxLength && props.showCounter ? (h("div", { class: "mdc-text-field__label-character-counter" }, props.value.length, " / ", props.maxLength)) : undefined));
43
51
  }
44
52
  if (props.icon) {
@@ -108,7 +116,7 @@ function setContent(props) {
108
116
  let value = props.value;
109
117
  let inputType = props.quantityButtons
110
118
  ? 'number'
111
- : (_a = props.inputType) !== null && _a !== void 0 ? _a : 'text';
119
+ : ((_a = props.inputType) !== null && _a !== void 0 ? _a : 'text');
112
120
  let persManageForNumberFormat = false;
113
121
  if (props.inputType === 'number') {
114
122
  inputType = 'text';
@@ -124,14 +132,6 @@ function setContent(props) {
124
132
  };
125
133
  value = formatValue(value, options, false);
126
134
  }
127
- if (props.textArea) {
128
- try {
129
- value = JSON.parse(`"${value}"`);
130
- }
131
- catch (e) {
132
- value = JSON.parse(JSON.stringify(value));
133
- }
134
- }
135
135
  return (h("div", { class: classContainerObj }, !props.fullWidth ? labelEl : undefined, h("div", { class: classObj }, !props.trailingIcon ? iconEl : undefined, props.textArea ? (h("span", { class: "mdc-text-field__resizer" }, h("textarea", { class: "mdc-text-field__input", disabled: props.disabled, maxlength: props.maxLength, value: value, autoComplete: (_f = props.autocomplete) !== null && _f !== void 0 ? _f : 'off', onBlur: props.onBlur, onClick: props.onClick, onChange: props.onChange, onFocus: props.onFocus, onInput: props.onInput, onKeyDown: props.onKeyDown }))) : (h("input", { type: inputType, inputmode: props.inputMode ? props.inputMode : undefined, step: props.step, min: props.min, max: props.max, name: props.name, class: "mdc-text-field__input", disabled: props.disabled, placeholder: props.placeholder, maxlength: props.maxLength, size: props.size, value: value, readOnly: props.isSelect, autoComplete: (_g = props.autocomplete) !== null && _g !== void 0 ? _g : 'off', onBlur: (e) => {
136
136
  var _a, _b, _c, _d;
137
137
  if (persManageForNumberFormat) {
@@ -52,6 +52,8 @@ export class KupData {
52
52
  return FCellTypes.DATE;
53
53
  case FCellShapes.EDITOR:
54
54
  return FCellTypes.EDITOR;
55
+ case FCellShapes.FILE_UPLOAD:
56
+ return FCellTypes.FILE_UPLOAD;
55
57
  case FCellShapes.GAUGE:
56
58
  return FCellTypes.GAUGE;
57
59
  case FCellShapes.IMAGE:
@@ -84,6 +86,8 @@ export class KupData {
84
86
  return FCellTypes.STRING;
85
87
  case FCellShapes.TIME:
86
88
  return FCellTypes.TIME;
89
+ case FCellShapes.LABEL:
90
+ return FCellTypes.LABEL;
87
91
  }
88
92
  }
89
93
  if (dom.ketchup.objects.isBar(obj)) {