@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
@@ -1,109 +1,11 @@
1
- import { h, g as getAssetPath, F as Fragment } from './index-c9246a86.js';
2
- import { ak as editableTypes, al as kupTypes, am as FCellClasses, a7 as FCellTypes, d as KupThemeColorValues, ag as RADAdapter, af as CMBandACPAdapter, an as KupTagNames, F as FCellShapes, ac as getCellValueForDisplay, a as KupComponentSizing, ao as fullWidthFieldsComps, I as ItemsDisplayMode, ap as autoCenterComps, aq as adaptContentToDisplayMode, ar as FCellEvents, as as isForceUppercase, at as isForceLowercase, e as KupDebugCategory } from './kup-manager-5fbf0037.js';
3
- import { F as FButton } from './f-button-f1040575.js';
4
- import { F as FCheckbox } from './f-checkbox-3ba20ca4.js';
5
- import { F as FChipType, c as FChip } from './f-chip-c31b2c02.js';
6
- import { F as FImage } from './f-image-9b15e9ac.js';
7
- import { F as FObjectField } from './f-object-field-80e6eb02.js';
8
- import { F as FTextField } from './f-text-field-6b05bfbc.js';
9
-
10
- /*-------------------------------------------------*/
11
- /* C o m p o n e n t */
12
- /*-------------------------------------------------*/
13
- const FProgressBar = (props) => {
14
- if (!props.centeredLabel && !props.centeredLabel !== false) {
15
- props.centeredLabel = true;
16
- }
17
- let componentClass = `f-progress-bar ${props.danger ? 'kup-danger' : ''} ${props.animated ? 'kup-animated' : ''} ${props.padded ? 'kup-padded' : ''} ${props.info ? 'kup-info' : ''} ${props.slim ? 'kup-slim' : ''} ${props.striped ? 'kup-striped' : ''} ${props.secondary ? 'kup-secondary' : ''} ${props.slim ? 'kup-slim' : ''} ${props.success ? 'kup-success' : ''} ${props.warning ? 'kup-warning' : ''} ${props.wrapperClass ? props.wrapperClass : ''}`;
18
- let pieClass = 'pie';
19
- let radialStyle = undefined;
20
- if (props.isRadial) {
21
- componentClass += ' pie-wrapper is-radial';
22
- }
23
- else {
24
- componentClass += ' progress-bar';
25
- }
26
- let labelStyle = undefined;
27
- const valueStyle = {
28
- width: `${props.value}%`,
29
- };
30
- if (!props.centeredLabel) {
31
- labelStyle = valueStyle;
32
- if (props.value > 2) {
33
- componentClass += ' text-color-on-primary';
34
- }
35
- }
36
- else if (props.value > 49) {
37
- componentClass += ' text-color-on-primary';
38
- }
39
- let label = null;
40
- if (props.icon) {
41
- label = createIconElement(props);
42
- }
43
- else {
44
- if (!props.hideLabel) {
45
- if (props.isRadial) {
46
- if (props.label) {
47
- label = h("span", { class: "label" }, props.label);
48
- }
49
- else {
50
- label = (h("span", { class: "label" },
51
- props.value,
52
- h("span", { class: "smaller" }, "%")));
53
- }
54
- }
55
- else {
56
- if (props.label) {
57
- label = props.label;
58
- }
59
- else {
60
- label = props.value + '%';
61
- }
62
- }
63
- }
64
- }
65
- if (props.value > 0) {
66
- pieClass += ' has-value';
67
- if (props.value > 50) {
68
- pieClass += ' is-more-than-half';
69
- }
70
- else {
71
- pieClass += ' is-less-than-half';
72
- }
73
- }
74
- if (props.isRadial) {
75
- return (h("div", { class: componentClass },
76
- label,
77
- h("div", { class: pieClass },
78
- h("div", { style: radialStyle, class: "left-side half-circle" }),
79
- h("div", { class: "right-side half-circle" })),
80
- h("div", { class: "shadow" })));
81
- }
82
- else {
83
- return (h("div", { class: componentClass },
84
- h("div", { class: "progress-bar-percentage", style: valueStyle },
85
- h("span", { style: labelStyle }, label))));
86
- }
87
- };
88
- function createIconElement(props) {
89
- if (!props.icon) {
90
- return undefined;
91
- }
92
- if (props.icon.indexOf('.') > -1 ||
93
- props.icon.indexOf('/') > -1 ||
94
- props.icon.indexOf('\\') > -1) {
95
- return (h("span", { class: "label kup-icon is-image" },
96
- h("img", { src: props.icon })));
97
- }
98
- else {
99
- let svg = `url('${getAssetPath(`./assets/svg/${props.icon}.svg`)}') no-repeat center`;
100
- let iconStyle = {
101
- mask: svg,
102
- webkitMask: svg,
103
- };
104
- return h("span", { style: iconStyle, class: "label kup-icon" });
105
- }
106
- }
1
+ import { h, F as Fragment } from './index-9b0f4a0d.js';
2
+ import { ap as editableTypes, aq as kupTypes, R as FCellClasses, ac as FCellTypes, d as KupThemeColorValues, an as CHIAdapter, al as RADAdapter, ak as CMBandACPAdapter, ar as KupTagNames, F as FCellShapes, ah as getCellValueForDisplay, a as KupComponentSizing, as as fullWidthFieldsComps, I as ItemsDisplayMode, at as autoCenterComps, au as adaptContentToDisplayMode, av as FCellEvents, aw as isForceUppercase, ax as isForceLowercase, e as KupDebugCategory } from './kup-manager-6aa0a1c7.js';
3
+ import { F as FButton } from './f-button-3c8f4506.js';
4
+ import { F as FCheckbox } from './f-checkbox-5cdd1cad.js';
5
+ import { F as FChipType, d as FChip } from './f-chip-bb62428a.js';
6
+ import { F as FImage } from './f-image-a2ecd7c3.js';
7
+ import { F as FObjectField } from './f-object-field-b87b6ae6.js';
8
+ import { F as FTextField } from './f-text-field-9be88e51.js';
107
9
 
108
10
  var FRadioType;
109
11
  (function (FRadioType) {
@@ -129,19 +31,32 @@ const FRadio = (props) => {
129
31
  [`radio--${props.type}`]: props.type ? true : false,
130
32
  };
131
33
  radioList.push(h("div", { class: `form-field
132
- ${props.leadingLabel ? ' form-field--align-end' : ''} ${props.disabled ? 'radio--disabled' : ''}` },
34
+ ${props.leadingLabel ? ' form-field--align-end' : ''} ${props.disabled ? 'radio--disabled' : ''} ${radioType === FRadioType.CHEVRON ? 'form--chevron' : ''}`, onClick: props.onChange
35
+ ? props.onChange.bind(props.onChange, i)
36
+ : null },
133
37
  h("div", { class: classObj },
134
- 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
135
- ? props.onChange.bind(props.onChange, i)
136
- : 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
137
- ? props.onChange.bind(props.onChange, i)
138
- : null })))),
38
+ 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) => {
39
+ if (props.onChange) {
40
+ props.onChange(i, e);
41
+ }
42
+ e.stopPropagation();
43
+ }, onFocus: props.onFocus })) : (h(Fragment, null, data.checked ? (h(FImage, { resource: "check", sizeX: "14px", sizeY: "14px" })) : (h(FImage, { sizeX: "14px", sizeY: "14px", onClick: (e) => {
44
+ if (props.onChange) {
45
+ props.onChange(i, e);
46
+ }
47
+ e.stopPropagation();
48
+ } })))),
139
49
  radioType === FRadioType.RADIO && (h("div", { class: "radio__background" },
140
50
  h("div", { class: "radio__outer-circle" }),
141
51
  h("div", { class: "radio__inner-circle" })))),
142
- h("label", { htmlFor: 'radio-element', onClick: props.onChange
143
- ? props.onChange.bind(props.onChange, i)
144
- : null }, data.label ? data.label : '')));
52
+ h("div", { class: "label-wrapper", onClick: (e) => {
53
+ if (props.onChange) {
54
+ props.onChange(i, e);
55
+ }
56
+ e.stopPropagation();
57
+ } },
58
+ radioType === FRadioType.CHEVRON && (h(FImage, { resource: data.icon, sizeX: "14px", sizeY: "14px" })),
59
+ h("label", { htmlFor: 'radio-element' }, data.label ? data.label : ''))));
145
60
  }
146
61
  const styleObj = {
147
62
  '--kup_radio_columns': hasColumns
@@ -214,12 +129,277 @@ const FSwitch = (props) => {
214
129
  h("label", { onClick: props.onChange }, props.label))));
215
130
  };
216
131
 
132
+ function parse(input, listener) {
133
+ const regex = /((_G\d{2}[A-Z0-9]\d{2}_|_G\*(BOLD|ERROR|ITALIC|UNDERLINE)_)|_n_)/g;
134
+ let lastIndex = 0;
135
+ let match;
136
+ while ((match = regex.exec(input)) !== null) {
137
+ // Capture text before the match
138
+ if (match.index > lastIndex) {
139
+ listener.onContent(input.slice(lastIndex, match.index));
140
+ }
141
+ if (match[1] === '_n_') {
142
+ listener.onEndTag(match[1]);
143
+ }
144
+ else {
145
+ listener.onStartTag(match[2]);
146
+ }
147
+ lastIndex = regex.lastIndex;
148
+ }
149
+ // Capture remaining content
150
+ if (lastIndex < input.length) {
151
+ listener.onContent(input.slice(lastIndex));
152
+ }
153
+ }
154
+ function getParsedElements(input) {
155
+ const elements = [];
156
+ let lastElement = null;
157
+ parse(input, {
158
+ onStartTag(tag) {
159
+ if (lastElement === null || lastElement === void 0 ? void 0 : lastElement.tag) {
160
+ lastElement.closed = true;
161
+ }
162
+ elements.push((lastElement = { tag: tag, content: '' }));
163
+ },
164
+ onEndTag(tag) {
165
+ if (!lastElement) {
166
+ elements.push((lastElement = { content: tag }));
167
+ }
168
+ else if (lastElement.tag) {
169
+ lastElement.closed = true;
170
+ lastElement = null;
171
+ }
172
+ else {
173
+ this.onContent(tag);
174
+ }
175
+ },
176
+ onContent(content) {
177
+ if (!lastElement) {
178
+ elements.push((lastElement = { content: content }));
179
+ }
180
+ else {
181
+ lastElement.content += content;
182
+ }
183
+ },
184
+ });
185
+ if (lastElement && lastElement.tag) {
186
+ lastElement.closed = true;
187
+ }
188
+ return elements;
189
+ }
190
+
191
+ const fixedStyle = {
192
+ '*BOLD': 'font-weight: bold; !important;',
193
+ '*ERROR': 'color: white !important; background: red !important;',
194
+ '*UNDERLINE': 'text-decoration: underline !important;',
195
+ '*ITALIC': 'font-style: italic !important;',
196
+ };
197
+ function getGCellStyle(gCellId) {
198
+ const style = getGCellStyleAsString(gCellId);
199
+ const styleObj = style
200
+ .split(';')
201
+ .filter((s) => s.trim())
202
+ .reduce((acc, rule) => {
203
+ const [key, value] = rule.split(':').map((s) => s.trim());
204
+ if (key && value) {
205
+ const cleanValue = value.replace(/!important/g, '').trim();
206
+ const camelCaseKey = key.replace(/-([a-z])/g, (_, char) => char.toUpperCase());
207
+ acc[camelCaseKey] = cleanValue;
208
+ }
209
+ return acc;
210
+ }, {});
211
+ return styleObj;
212
+ }
213
+ function getGCellStyleAsString(gCellId) {
214
+ const regexp = /\d{2}[A-Z0-9]\d{2}|\*(BOLD|ERROR|ITALIC|UNDERLINE)/;
215
+ let result = '';
216
+ if (gCellId === null || gCellId === void 0 ? void 0 : gCellId.match(regexp)) {
217
+ result = fixedStyle[gCellId];
218
+ if (!result) {
219
+ result = '';
220
+ for (let i = 0; i < gCellId.length; i++) {
221
+ switch (i) {
222
+ case 0:
223
+ // font color
224
+ result += getFontColorCss(gCellId.charAt(i));
225
+ break;
226
+ case 1:
227
+ // font decoration
228
+ result += getFontDecorationCss(gCellId.charAt(i));
229
+ break;
230
+ case 2:
231
+ // background color
232
+ result += getBackgroundColorCss(gCellId.charAt(i));
233
+ break;
234
+ case 3:
235
+ // font family
236
+ result += getFontCss(gCellId.charAt(i));
237
+ break;
238
+ }
239
+ }
240
+ }
241
+ }
242
+ return result;
243
+ }
244
+ function getFontColorCss(c) {
245
+ let result;
246
+ switch (c) {
247
+ case '0':
248
+ result = 'color: #000000 !important;'; // black
249
+ break;
250
+ case '1':
251
+ result = 'color: #6C7A89 !important;'; // gray
252
+ break;
253
+ case '2':
254
+ result = 'color: #3A539B !important;'; // blue
255
+ break;
256
+ case '3':
257
+ result = 'color: var(--kup-danger-color-60) !important;'; // red
258
+ break;
259
+ case '4':
260
+ result = 'color: #C0C0C0 !important;'; // dark grey
261
+ break;
262
+ case '5':
263
+ result = 'color: #FFFFFF !important;'; // white
264
+ break;
265
+ case '6':
266
+ result = 'color: var(--kup-success-color-60) !important;'; // green
267
+ break;
268
+ case '7':
269
+ result = 'color: #9B59B6 !important;'; // purple
270
+ break;
271
+ default:
272
+ result = '';
273
+ break;
274
+ }
275
+ return result;
276
+ }
277
+ function getFontDecorationCss(c) {
278
+ let ris;
279
+ switch (c) {
280
+ case '1':
281
+ ris = 'font-weight: bold !important;';
282
+ break;
283
+ case '2':
284
+ ris = 'font-style: italic !important;';
285
+ break;
286
+ case '3':
287
+ ris = 'text-decoration: underline !important;';
288
+ break;
289
+ default:
290
+ ris = '';
291
+ break;
292
+ }
293
+ return ris;
294
+ }
295
+ function getBackgroundColorCss(c) {
296
+ let ris;
297
+ switch (c) {
298
+ case '0':
299
+ ris = `background: transparent;`;
300
+ break;
301
+ case '1':
302
+ ris = `background: #D5ECF7;`;
303
+ break;
304
+ case '2':
305
+ ris = `background: #59ABE3;`;
306
+ break;
307
+ case '3':
308
+ ris = `background: #446CB3;`;
309
+ break;
310
+ case '4':
311
+ ris = `background: #9B59B6;`;
312
+ break;
313
+ case '5':
314
+ ris = `background: #F1A9A0;`;
315
+ break;
316
+ case '6':
317
+ ris = `background: #E74C3C;`;
318
+ break;
319
+ case '7':
320
+ ris = `background: #CF000F;`;
321
+ break;
322
+ case '8':
323
+ ris = `background: #C0392B;`;
324
+ break;
325
+ case '9':
326
+ ris = `background: #95A5A6;`;
327
+ break;
328
+ case 'A':
329
+ ris = `background: #F5D76E;`;
330
+ break;
331
+ case 'B':
332
+ ris = `background: #F7CA18;`;
333
+ break;
334
+ case 'C':
335
+ ris = `background: #F7CA18;`;
336
+ break;
337
+ case 'D':
338
+ ris = `background: #F39C12;`;
339
+ break;
340
+ case 'E':
341
+ ris = `background: #90C695;`;
342
+ break;
343
+ case 'F':
344
+ ris = `background: #26A65B;`;
345
+ break;
346
+ case 'G':
347
+ ris = `background: #019875;`;
348
+ break;
349
+ case 'H':
350
+ ris = `background: #36D7B7;`;
351
+ break;
352
+ default:
353
+ ris = '';
354
+ break;
355
+ }
356
+ return ris;
357
+ }
358
+ function getFontCss(c) {
359
+ let ris;
360
+ switch (c) {
361
+ case '1':
362
+ ris = 'font-family: "Courier New", Courier, monospace !important;';
363
+ break;
364
+ case '2':
365
+ ris =
366
+ 'font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif !important;';
367
+ break;
368
+ case '3':
369
+ ris = 'font-family: Arial, Helvetica, sans-serif !important;';
370
+ break;
371
+ default:
372
+ ris = '';
373
+ break;
374
+ }
375
+ return ris;
376
+ }
377
+
378
+ function getVNodes(parsedElements) {
379
+ return parsedElements.map((e) => {
380
+ var _a, _b;
381
+ const style = getGCellStyle((_a = e.tag) === null || _a === void 0 ? void 0 : _a.replace(/[_]/g, '').slice(1));
382
+ return e.closed ? (h("span", { style: style }, e.content)) : (h("span", null, `${(_b = e.tag) !== null && _b !== void 0 ? _b : ''}${e.content}`));
383
+ });
384
+ }
385
+ const FLabel = ({ text, classes }) => {
386
+ const parsedElements = getParsedElements(text);
387
+ // To avoid creating unnecessary span in the text
388
+ // when there are no tags to format the content
389
+ if (parsedElements.find((p) => p.tag !== undefined)) {
390
+ return h("span", { class: classes }, getVNodes(parsedElements));
391
+ }
392
+ else {
393
+ return h(Fragment, null, text);
394
+ }
395
+ };
396
+
217
397
  const dom = document.documentElement;
218
398
  /*-------------------------------------------------*/
219
399
  /* C o m p o n e n t */
220
400
  /*-------------------------------------------------*/
221
401
  const FCell = (props, children) => {
222
- var _a, _b, _c, _d;
402
+ var _a, _b, _c, _d, _e;
223
403
  const cell = props.cell;
224
404
  const column = props.column;
225
405
  const row = props.row;
@@ -239,14 +419,13 @@ const FCell = (props, children) => {
239
419
  isEditable = column.isEditable;
240
420
  }
241
421
  isEditable = isEditable && props.editable;
242
- if (cell.options) {
243
- cell.data = (_a = mapData(cell, column)) !== null && _a !== void 0 ? _a : cell.data;
244
- }
422
+ cell.data = (_a = mapData(cell, column)) !== null && _a !== void 0 ? _a : cell.data;
245
423
  const valueToDisplay = props.previousValue !== cell.value ? cell.value : '';
246
424
  const cellType = dom.ketchup.data.cell.getType(cell, shape);
247
- 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)
425
+ const sizing = props.density === 'extra_dense' ? 'extra-small' : (_b = cell.data) === null || _b === void 0 ? void 0 : _b.sizing;
426
+ 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)
248
427
  ? { placeholderResource: cell.placeholderIcon }
249
- : {}));
428
+ : {})), (sizing ? { sizing } : {}));
250
429
  let cssClasses = cell.cssClass
251
430
  ? cell.cssClass
252
431
  : (column === null || column === void 0 ? void 0 : column.cssClass)
@@ -261,14 +440,14 @@ const FCell = (props, children) => {
261
440
  [cssClasses]: cssClasses ? true : false,
262
441
  'c-input-uppercase': isForceUppercase(cell),
263
442
  'c-input-lowercase': isForceLowercase(cell),
264
- 'monospace c-pre': (_b = cell.data) === null || _b === void 0 ? void 0 : _b.legacyLook,
443
+ 'monospace c-pre': (_c = cell.data) === null || _c === void 0 ? void 0 : _c.legacyLook,
265
444
  };
266
445
  let content = valueToDisplay;
267
446
  if (!cell.data) {
268
447
  setDefaults(cellType, cell);
269
448
  }
270
449
  if (isEditable && editableTypes.includes(cellType)) {
271
- cell.data.showMarker = (_c = cell.tooltip) !== null && _c !== void 0 ? _c : false;
450
+ cell.data.showMarker = (_d = cell.tooltip) !== null && _d !== void 0 ? _d : false;
272
451
  content = setEditableCell(cellType, classObj, cell, column, props);
273
452
  }
274
453
  else if (cell.data && kupTypes.includes(cellType)) {
@@ -287,12 +466,14 @@ const FCell = (props, children) => {
287
466
  if (props.setSizes) {
288
467
  setCellSize(cellType, subcomponentProps, cell, props);
289
468
  }
290
- classObj[FCellClasses.INDICATOR_TOPRIGHT] = (_d = cell.tooltip) !== null && _d !== void 0 ? _d : false;
469
+ classObj[FCellClasses.INDICATOR_TOPRIGHT] = (_e = cell.tooltip) !== null && _e !== void 0 ? _e : false;
291
470
  content = setCell(cellType, subcomponentProps, content, classObj, cell, column, props);
292
471
  }
293
472
  let icon = null;
294
473
  if (!isEditable && (column.icon || cell.icon)) {
295
474
  if (content &&
475
+ cellType != FCellTypes.BUTTON &&
476
+ cellType != FCellTypes.BUTTON_LIST &&
296
477
  cellType != FCellTypes.IMAGE &&
297
478
  cellType != FCellTypes.ICON) {
298
479
  const fProps = {
@@ -366,11 +547,14 @@ const handleMouseLeave = (event) => {
366
547
  }
367
548
  };
368
549
  const mapData = (cell, column) => {
550
+ var _a;
369
551
  if (!cell) {
370
552
  return null;
371
553
  }
372
554
  const options = cell.options;
373
- const fieldLabel = column.title;
555
+ const fieldLabel = ((_a = cell.data) === null || _a === void 0 ? void 0 : _a.hasOwnProperty('label'))
556
+ ? cell.data.label
557
+ : column.title;
374
558
  const currentValue = cell.value;
375
559
  const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
376
560
  const dataAdapterMap = new Map([
@@ -386,24 +570,20 @@ const mapData = (cell, column) => {
386
570
  const adapter = dataAdapterMap.get(cellType);
387
571
  return adapter ? adapter(options, fieldLabel, currentValue, cell) : null;
388
572
  };
389
- const MainCHIAdapter = (options, _fieldLabel, _currentValue, cell) => {
390
- const newData = {
391
- data: (options === null || options === void 0 ? void 0 : options.length)
392
- ? options === null || options === void 0 ? void 0 : options.map((option) => ({
393
- id: option.id,
394
- value: option.id,
395
- }))
396
- : [],
397
- };
398
- cell.data = Object.assign(Object.assign({}, cell.data), newData);
573
+ const MainCHIAdapter = (_options, _fieldLabel, _currentValue, cell) => {
574
+ var _a;
575
+ if (!((_a = cell.data) === null || _a === void 0 ? void 0 : _a.data)) {
576
+ return CHIAdapter(cell.value, cell.decode);
577
+ }
578
+ else {
579
+ return Object.assign({}, cell.data);
580
+ }
399
581
  };
400
- const MainObjectAdapter = (_options, fieldLabel, currentValue, _cell, _id) => ({
401
- data: {
582
+ const MainObjectAdapter = (_options, fieldLabel, currentValue, cell, _id) => (Object.assign(Object.assign({}, cell.data), { data: {
402
583
  initialValue: currentValue || '',
403
584
  label: fieldLabel || '',
404
585
  value: currentValue || '',
405
- },
406
- });
586
+ } }));
407
587
  const MainCHKAdapter = (_options, fieldLabel, currentValue, cell) => (Object.assign(Object.assign({}, cell.data), { checked: currentValue === 'on' || currentValue === '1', label: fieldLabel }));
408
588
  const MainBTNAdapter = (_options, _fieldLabel, currentValue, cell) => ({
409
589
  data: [
@@ -413,7 +593,7 @@ const MainBTNAdapter = (_options, _fieldLabel, currentValue, cell) => ({
413
593
  const MainITXAdapter = (_options, fieldLabel, _currentValue, cell) => (Object.assign(Object.assign({}, cell.data), { label: fieldLabel }));
414
594
  const MainRADAdapter = (options, _fieldLabel, currentValue, cell) => {
415
595
  const newData = RADAdapter(currentValue, options);
416
- cell.data = Object.assign(Object.assign({}, cell.data), newData);
596
+ return Object.assign(Object.assign({}, cell.data), newData);
417
597
  };
418
598
  const MainCMBandACPAdapter = (options, fieldLabel, currentValue, cell, _id) => {
419
599
  var _a;
@@ -577,11 +757,11 @@ function setCellSizeKup(cellType, subcomponentProps, cell) {
577
757
  case FCellTypes.CHIP:
578
758
  if (cell.style) {
579
759
  if (!cell.style.height) {
580
- cell.style['minHeight'] = '40px';
760
+ cell.style['minHeight'] = '18px';
581
761
  }
582
762
  }
583
763
  else {
584
- cell.style = { minHeight: '40px' };
764
+ cell.style = { minHeight: '18px' };
585
765
  }
586
766
  break;
587
767
  case FCellTypes.RADIO:
@@ -597,7 +777,7 @@ function setCellSizeKup(cellType, subcomponentProps, cell) {
597
777
  }
598
778
  }
599
779
  function setEditableCell(cellType, classObj, cell, column, props) {
600
- var _a, _b, _c, _d;
780
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
601
781
  switch (cellType) {
602
782
  case FCellTypes.AUTOCOMPLETE:
603
783
  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) })));
@@ -624,19 +804,33 @@ function setEditableCell(cellType, classObj, cell, column, props) {
624
804
  case FCellTypes.DATE:
625
805
  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) })));
626
806
  case FCellTypes.EDITOR:
807
+ const onEditorKeyDown = (e) => {
808
+ const isPlainEnter = e.key === 'Enter' && !e.ctrlKey;
809
+ const isSubmit = e.key === 'Enter' && e.ctrlKey;
810
+ if (isPlainEnter) {
811
+ e.stopPropagation();
812
+ return;
813
+ }
814
+ if (isSubmit || /^F[1-9]|F1[0-2]$/.test(e.key)) {
815
+ cellEvent(e, props, cellType, FCellEvents.UPDATE);
816
+ }
817
+ };
627
818
  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) => {
628
819
  cellEvent(e, props, cellType, FCellEvents.UPDATE);
629
820
  }, onInput: (e) => {
630
821
  var _a, _b;
631
822
  (_b = (_a = cell.data) === null || _a === void 0 ? void 0 : _a.onInput) === null || _b === void 0 ? void 0 : _b.call(_a, e);
632
823
  cellEvent(e, props, cellType, FCellEvents.INPUT);
633
- }, onBlur: (e) => cellEvent(e, props, cellType, FCellEvents.BLUR) })));
634
- case FCellTypes.MULTI_AUTOCOMPLETE:
635
- 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) }),
636
- 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 }))));
824
+ }, onBlur: (e) => cellEvent(e, props, cellType, FCellEvents.BLUR), onKeyDown: onEditorKeyDown })));
825
+ case FCellTypes.FILE_UPLOAD:
826
+ return h("kup-file-upload", Object.assign({}, cell.data));
827
+ case FCellTypes.MULTI_AUTOCOMPLETE: {
828
+ 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) }),
829
+ 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 })));
830
+ }
637
831
  case FCellTypes.MULTI_COMBOBOX:
638
- 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) }),
639
- 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 }))));
832
+ 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) }),
833
+ 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 }))));
640
834
  case FCellTypes.RADIO:
641
835
  return (h(FRadio, Object.assign({}, cell.data, { disabled: false, onChange: (i, e) => {
642
836
  const radioData = cell.data.data;
@@ -673,11 +867,16 @@ function setEditableCell(cellType, classObj, cell, column, props) {
673
867
  const onKeyDown = (e) => {
674
868
  var _a, _b, _c;
675
869
  (_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
676
- if ((!(cell.shape == 'MEMO' ||
677
- cellType == FCellTypes.MEMO ||
678
- ((_c = cell.data) === null || _c === void 0 ? void 0 : _c.maxLength) >= 256) &&
679
- e.key === 'Enter') ||
680
- /^F[1-9]|F1[0-2]$/.test(e.key)) {
870
+ const isMemo = cell.shape === 'MEMO' ||
871
+ ((_c = cell.data) === null || _c === void 0 ? void 0 : _c.maxLength) >= 256 ||
872
+ cellType === FCellTypes.MEMO;
873
+ const isSubmit = e.key === 'Enter' && e.ctrlKey;
874
+ const isPlainEnter = e.key === 'Enter' && !e.ctrlKey;
875
+ if (isMemo && isPlainEnter) {
876
+ e.stopPropagation();
877
+ return;
878
+ }
879
+ if (isSubmit || /^F[1-9]|F1[0-2]$/.test(e.key)) {
681
880
  cellEvent(e, props, cellType, FCellEvents.UPDATE);
682
881
  }
683
882
  };
@@ -686,14 +885,16 @@ function setEditableCell(cellType, classObj, cell, column, props) {
686
885
  const value = cellType === FCellTypes.NUMBER && cell.value
687
886
  ? getCellValueForDisplay(column, cell)
688
887
  : cell.value;
689
- 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 }));
888
+ 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 }));
690
889
  }
691
890
  else {
692
891
  const isTextArea = (cell.shape ? cell.shape === FCellShapes.MEMO : false) ||
693
892
  (cellType ? cellType === FCellTypes.MEMO : false);
694
- return (h(FTextField, Object.assign({}, cell.data, { textArea: isTextArea, sizing: isTextArea
695
- ? KupComponentSizing.EXTRA_LARGE
696
- : KupComponentSizing.SMALL, inputType: type, fullWidth: isFullWidth(props) ? true : false, maxLength: (cellType == FCellTypes.NUMBER &&
893
+ return (h(FTextField, Object.assign({}, cell.data, { textArea: isTextArea, sizing: cell.data.sizing
894
+ ? cell.data.sizing
895
+ : isTextArea
896
+ ? KupComponentSizing.EXTRA_LARGE
897
+ : KupComponentSizing.SMALL, inputType: type, fullWidth: isFullWidth(props) ? true : false, maxLength: (cellType == FCellTypes.NUMBER &&
697
898
  ((props.column.decimals &&
698
899
  props.column.decimals > 0) ||
699
900
  props.column.group)) ||
@@ -705,7 +906,7 @@ function setEditableCell(cellType, classObj, cell, column, props) {
705
906
  ? cell.icon
706
907
  : column.icon
707
908
  ? column.icon
708
- : 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) })));
909
+ : 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) })));
709
910
  }
710
911
  }
711
912
  }
@@ -733,6 +934,7 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
733
934
  ? 'check_box'
734
935
  : 'check_box_outline_blank', sizeX: "18px", sizeY: "18px" }));
735
936
  case FCellTypes.EDITOR:
937
+ case FCellTypes.MEMO:
736
938
  return h("div", { innerHTML: cell.value });
737
939
  case FCellTypes.ICON:
738
940
  if (isAutoCentered(props)) {
@@ -771,6 +973,8 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
771
973
  }
772
974
  subcomponentProps['disabled'] = true;
773
975
  return h(FSwitch, Object.assign({}, subcomponentProps));
976
+ case FCellTypes.LABEL:
977
+ return h(FLabel, { text: cell.value, classes: "f-cell__text" });
774
978
  default:
775
979
  return (h("div", { class: "f-cell__text" }, cell.data.displayMode
776
980
  ? adaptContentToDisplayMode(cell, content, '-')
@@ -795,7 +999,8 @@ function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, pr
795
999
  if (isAutoCentered(props)) {
796
1000
  classObj[FCellClasses.C_CENTERED] = true;
797
1001
  }
798
- return (h(FButton, Object.assign({}, subcomponentProps, { onClick: (e) => cellEvent(e, props, cellType, FCellEvents.CLICK) })));
1002
+ const buttonProps = Object.assign({ label: cell.value, icon: cell.icon, placeholderIcon: cell.placeholderIcon }, subcomponentProps);
1003
+ return (h(FButton, Object.assign({}, buttonProps, { onClick: (e) => cellEvent(e, props, cellType, FCellEvents.CLICK) })));
799
1004
  case FCellTypes.BUTTON_LIST:
800
1005
  if (isAutoCentered(props)) {
801
1006
  classObj[FCellClasses.C_CENTERED] = true;
@@ -821,7 +1026,7 @@ function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, pr
821
1026
  return (h("kup-gauge", Object.assign({ key: column.name + props.row.id, value: dom.ketchup.math.numberifySafe(cell.value), "width-component": "280px" }, subcomponentProps)));
822
1027
  case FCellTypes.KNOB:
823
1028
  case FCellTypes.PROGRESS_BAR:
824
- return subcomponentProps.customStyle ? (h("kup-progress-bar", Object.assign({ key: column.name + props.row.id }, subcomponentProps))) : (h(FProgressBar, Object.assign({}, subcomponentProps)));
1029
+ return (h("kup-progress-bar", Object.assign({ key: column.name + props.row.id }, subcomponentProps, { value: dom.ketchup.math.numberifySafe(cell.value) })));
825
1030
  case FCellTypes.RADIO:
826
1031
  if (isAutoCentered(props)) {
827
1032
  classObj[FCellClasses.C_CENTERED] = true;
@@ -999,7 +1204,7 @@ function setDefaults(cellType, cell) {
999
1204
  }
1000
1205
  }
1001
1206
  function cellEvent(e, props, cellType, cellEventName) {
1002
- var _a, _b;
1207
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1003
1208
  const cell = props.cell;
1004
1209
  const column = props.column;
1005
1210
  const comp = props.component;
@@ -1014,7 +1219,14 @@ function cellEvent(e, props, cellType, cellEventName) {
1014
1219
  }
1015
1220
  switch (cellType) {
1016
1221
  case FCellTypes.AUTOCOMPLETE:
1222
+ cell.decode = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.node) === null || _b === void 0 ? void 0 : _b.value;
1223
+ if (cell.data) {
1224
+ cell.data['initialValue'] = value;
1225
+ cell.data['initialValueDecode'] = (_d = (_c = e.detail) === null || _c === void 0 ? void 0 : _c.node) === null || _d === void 0 ? void 0 : _d.value;
1226
+ }
1227
+ break;
1017
1228
  case FCellTypes.COMBOBOX:
1229
+ cell.decode = (_f = (_e = e.detail) === null || _e === void 0 ? void 0 : _e.node) === null || _f === void 0 ? void 0 : _f.value;
1018
1230
  case FCellTypes.DATE:
1019
1231
  case FCellTypes.TIME:
1020
1232
  if (cell.data) {
@@ -1047,10 +1259,6 @@ function cellEvent(e, props, cellType, cellEventName) {
1047
1259
  cell.data.data = e.detail.comp.data;
1048
1260
  }
1049
1261
  break;
1050
- case FCellTypes.EDITOR:
1051
- case FCellTypes.STRING:
1052
- value = JSON.stringify(value).slice(1, -1);
1053
- break;
1054
1262
  }
1055
1263
  if (cell.obj) {
1056
1264
  cell.obj.k = value === null || value === void 0 ? void 0 : value.toString();
@@ -1072,7 +1280,7 @@ function cellEvent(e, props, cellType, cellEventName) {
1072
1280
  event: e,
1073
1281
  row: row,
1074
1282
  type: cellType,
1075
- inputValue: ((_b = (_a = cell.element) === null || _a === void 0 ? void 0 : _a.querySelector('input')) === null || _b === void 0 ? void 0 : _b.value) || null,
1283
+ inputValue: ((_h = (_g = cell.element) === null || _g === void 0 ? void 0 : _g.querySelector('input')) === null || _h === void 0 ? void 0 : _h.value) || null,
1076
1284
  },
1077
1285
  });
1078
1286
  comp.rootElement.dispatchEvent(cellEvent);
@@ -1112,4 +1320,4 @@ function isFullWidth(props) {
1112
1320
  return fullWidthFieldsComps.includes((_a = props.component) === null || _a === void 0 ? void 0 : _a.rootElement.tagName);
1113
1321
  }
1114
1322
 
1115
- export { FCell as F, FProgressBar as a, FRadio as b, FRating as c, FSwitchSizing as d, FSwitch as e };
1323
+ export { FCell as F, FRadio as a, FRating as b, FSwitchSizing as c, FSwitch as d, FLabel as e };