@sme.up/ketchup 11.0.0-SNAPSHOT-20241021152842 → 11.0.0-SNAPSHOT-20241023072631

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 (281) hide show
  1. package/dist/cjs/{f-cell-5272e2de.js → f-cell-95f965f3.js} +31 -4
  2. package/dist/cjs/f-cell-95f965f3.js.map +1 -0
  3. package/dist/cjs/{f-chip-ff8a106d.js → f-chip-cb102c29.js} +2 -2
  4. package/dist/cjs/{f-chip-ff8a106d.js.map → f-chip-cb102c29.js.map} +1 -1
  5. package/dist/cjs/{f-paginator-utils-bed2036b.js → f-paginator-utils-da6cd873.js} +2 -2
  6. package/dist/cjs/{f-paginator-utils-bed2036b.js.map → f-paginator-utils-da6cd873.js.map} +1 -1
  7. package/dist/cjs/{f-text-field-efb2710c.js → f-text-field-a8db3416.js} +2 -2
  8. package/dist/cjs/{f-text-field-efb2710c.js.map → f-text-field-a8db3416.js.map} +1 -1
  9. package/dist/cjs/index.cjs.js +1 -1
  10. package/dist/cjs/kup-accordion.cjs.entry.js +1 -1
  11. package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
  12. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +54 -54
  13. package/dist/cjs/kup-box.cjs.entry.js +6 -6
  14. package/dist/cjs/kup-calendar.cjs.entry.js +2 -2
  15. package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
  16. package/dist/cjs/kup-cell.cjs.entry.js +21 -27
  17. package/dist/cjs/kup-cell.cjs.entry.js.map +1 -1
  18. package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +7 -7
  19. package/dist/cjs/kup-dashboard.cjs.entry.js +3 -3
  20. package/dist/cjs/{kup-data-table-helper-7195d292.js → kup-data-table-helper-ecda1d0f.js} +2 -2
  21. package/dist/cjs/{kup-data-table-helper-7195d292.js.map → kup-data-table-helper-ecda1d0f.js.map} +1 -1
  22. package/dist/cjs/kup-drawer.cjs.entry.js +3 -3
  23. package/dist/cjs/kup-echart.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-editor.cjs.entry.js +2 -2
  25. package/dist/cjs/kup-family-tree.cjs.entry.js +3 -3
  26. package/dist/cjs/kup-gantt_10.cjs.entry.js +23 -23
  27. package/dist/cjs/kup-grid.cjs.entry.js +1 -1
  28. package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
  29. package/dist/cjs/kup-image-list.cjs.entry.js +7 -7
  30. package/dist/cjs/kup-input-panel.cjs.entry.js +13 -6
  31. package/dist/cjs/kup-input-panel.cjs.entry.js.map +1 -1
  32. package/dist/cjs/kup-lazy.cjs.entry.js +12 -12
  33. package/dist/cjs/kup-magic-box.cjs.entry.js +4 -4
  34. package/dist/cjs/{kup-manager-17968474.js → kup-manager-3e7452e3.js} +7 -1
  35. package/dist/cjs/kup-manager-3e7452e3.js.map +1 -0
  36. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  37. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  38. package/dist/cjs/kup-pdf.cjs.entry.js +2 -2
  39. package/dist/cjs/kup-photo-frame.cjs.entry.js +3 -3
  40. package/dist/cjs/kup-planner-renderer.cjs.entry.js +2 -2
  41. package/dist/cjs/kup-planner.cjs.entry.js +3 -3
  42. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  43. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  44. package/dist/cjs/kup-snackbar.cjs.entry.js +2 -2
  45. package/dist/cjs/kup-typography-list.cjs.entry.js +2 -2
  46. package/dist/cjs/kup-typography.cjs.entry.js +2 -2
  47. package/dist/collection/components/kup-cell/kup-cell.js +18 -4
  48. package/dist/collection/components/kup-cell/kup-cell.js.map +1 -1
  49. package/dist/collection/components/kup-checkbox/kup-checkbox.js +1 -1
  50. package/dist/collection/components/kup-chip/kup-chip.js +2 -2
  51. package/dist/collection/components/kup-color-picker/kup-color-picker.js +2 -2
  52. package/dist/collection/components/kup-combobox/kup-combobox.js +1 -1
  53. package/dist/collection/components/kup-dashboard/kup-dashboard.js +1 -1
  54. package/dist/collection/components/kup-date-picker/kup-date-picker.js +1 -1
  55. package/dist/collection/components/kup-dialog/kup-dialog.js +1 -1
  56. package/dist/collection/components/kup-drawer/kup-drawer.js +2 -2
  57. package/dist/collection/components/kup-echart/kup-echart.js +1 -1
  58. package/dist/collection/components/kup-editor/kup-editor.js +1 -1
  59. package/dist/collection/components/kup-family-tree/kup-family-tree.js +2 -2
  60. package/dist/collection/components/kup-form/kup-form.js +2 -2
  61. package/dist/collection/components/kup-image-list/kup-image-list.js +3 -3
  62. package/dist/collection/components/kup-input-panel/kup-input-panel.js +9 -2
  63. package/dist/collection/components/kup-input-panel/kup-input-panel.js.map +1 -1
  64. package/dist/collection/components/kup-lazy/kup-lazy.js +11 -11
  65. package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
  66. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
  67. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +1 -1
  68. package/dist/collection/components/kup-pdf/kup-pdf.js +1 -1
  69. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +2 -2
  70. package/dist/collection/components/kup-planner/kup-planner.js +1 -1
  71. package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
  72. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2 -2
  73. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +2 -2
  74. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +3 -3
  75. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +5 -5
  76. package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +2 -2
  77. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +1 -1
  78. package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +2 -2
  79. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
  80. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
  81. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +1 -1
  82. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
  83. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
  84. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
  85. package/dist/collection/components/kup-probe/kup-probe.js +1 -1
  86. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
  87. package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
  88. package/dist/collection/components/kup-rating/kup-rating.js +1 -1
  89. package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
  90. package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
  91. package/dist/collection/components/kup-switch/kup-switch.js +1 -1
  92. package/dist/collection/components/kup-time-picker/kup-time-picker.js +1 -1
  93. package/dist/collection/components/kup-typography/kup-typography.js +1 -1
  94. package/dist/collection/components/kup-typography-list/kup-typography-list.js +1 -1
  95. package/dist/collection/f-components/f-cell/f-cell-declarations.js +4 -0
  96. package/dist/collection/f-components/f-cell/f-cell-declarations.js.map +1 -1
  97. package/dist/collection/f-components/f-cell/f-cell.js +28 -1
  98. package/dist/collection/f-components/f-cell/f-cell.js.map +1 -1
  99. package/dist/collection/f-components/f-cell-options.tsx/f-cell-options.js +1 -19
  100. package/dist/collection/f-components/f-cell-options.tsx/f-cell-options.js.map +1 -1
  101. package/dist/collection/managers/kup-data/kup-data-declarations.js.map +1 -1
  102. package/dist/collection/managers/kup-data/kup-data.js +2 -0
  103. package/dist/collection/managers/kup-data/kup-data.js.map +1 -1
  104. package/dist/components/custom-task-list-header.js +2 -2
  105. package/dist/components/kup-autocomplete2.js +76 -49
  106. package/dist/components/kup-autocomplete2.js.map +1 -1
  107. package/dist/components/kup-cell.js +18 -24
  108. package/dist/components/kup-cell.js.map +1 -1
  109. package/dist/components/kup-dashboard.js +1 -1
  110. package/dist/components/kup-drawer.js +2 -2
  111. package/dist/components/kup-echart2.js +1 -1
  112. package/dist/components/kup-editor2.js +1 -1
  113. package/dist/components/kup-family-tree.js +2 -2
  114. package/dist/components/kup-gantt-calendar2.js +2 -2
  115. package/dist/components/kup-gantt2.js +2 -2
  116. package/dist/components/kup-grid-renderer2.js +3 -3
  117. package/dist/components/kup-horizontal-scroll2.js +5 -5
  118. package/dist/components/kup-image-list.js +3 -3
  119. package/dist/components/kup-input-panel.js +9 -2
  120. package/dist/components/kup-input-panel.js.map +1 -1
  121. package/dist/components/kup-lazy.js +11 -11
  122. package/dist/components/kup-magic-box.js +3 -3
  123. package/dist/components/kup-manager.js +6 -0
  124. package/dist/components/kup-manager.js.map +1 -1
  125. package/dist/components/kup-nav-bar.js +1 -1
  126. package/dist/components/kup-numeric-picker.js +1 -1
  127. package/dist/components/kup-pdf.js +1 -1
  128. package/dist/components/kup-photo-frame.js +2 -2
  129. package/dist/components/kup-planner-renderer2.js +2 -2
  130. package/dist/components/kup-planner.js +1 -1
  131. package/dist/components/kup-probe.js +1 -1
  132. package/dist/components/kup-qlik.js +1 -1
  133. package/dist/components/kup-snackbar.js +1 -1
  134. package/dist/components/kup-standard-tooltip2.js +1 -1
  135. package/dist/components/kup-switcher2.js +1 -1
  136. package/dist/components/kup-task-gantt2.js +2 -2
  137. package/dist/components/kup-task-list-header2.js +7 -7
  138. package/dist/components/kup-task-list-table2.js +1 -1
  139. package/dist/components/kup-task-list2.js +1 -1
  140. package/dist/components/kup-tooltip2.js +1 -1
  141. package/dist/components/kup-typography-list.js +1 -1
  142. package/dist/components/kup-typography.js +1 -1
  143. package/dist/components/kup-vertical-scroll2.js +2 -2
  144. package/dist/esm/{f-cell-3cb0880d.js → f-cell-c813c70c.js} +31 -4
  145. package/dist/esm/f-cell-c813c70c.js.map +1 -0
  146. package/dist/esm/{f-chip-430788ed.js → f-chip-4a35f0f8.js} +2 -2
  147. package/dist/esm/{f-chip-430788ed.js.map → f-chip-4a35f0f8.js.map} +1 -1
  148. package/dist/esm/{f-paginator-utils-af689207.js → f-paginator-utils-4e6a69f6.js} +2 -2
  149. package/dist/esm/{f-paginator-utils-af689207.js.map → f-paginator-utils-4e6a69f6.js.map} +1 -1
  150. package/dist/esm/{f-text-field-b294c1bd.js → f-text-field-a7ef5d61.js} +2 -2
  151. package/dist/esm/{f-text-field-b294c1bd.js.map → f-text-field-a7ef5d61.js.map} +1 -1
  152. package/dist/esm/index.js +1 -1
  153. package/dist/esm/kup-accordion.entry.js +1 -1
  154. package/dist/esm/kup-activity-timeline.entry.js +2 -2
  155. package/dist/esm/kup-autocomplete_27.entry.js +54 -54
  156. package/dist/esm/kup-box.entry.js +6 -6
  157. package/dist/esm/kup-calendar.entry.js +2 -2
  158. package/dist/esm/kup-card-list.entry.js +1 -1
  159. package/dist/esm/kup-cell.entry.js +21 -27
  160. package/dist/esm/kup-cell.entry.js.map +1 -1
  161. package/dist/esm/kup-custom-task-list-header_4.entry.js +7 -7
  162. package/dist/esm/kup-dashboard.entry.js +3 -3
  163. package/dist/esm/{kup-data-table-helper-62971b64.js → kup-data-table-helper-9913aac7.js} +2 -2
  164. package/dist/esm/{kup-data-table-helper-62971b64.js.map → kup-data-table-helper-9913aac7.js.map} +1 -1
  165. package/dist/esm/kup-drawer.entry.js +3 -3
  166. package/dist/esm/kup-echart.entry.js +2 -2
  167. package/dist/esm/kup-editor.entry.js +2 -2
  168. package/dist/esm/kup-family-tree.entry.js +3 -3
  169. package/dist/esm/kup-gantt_10.entry.js +23 -23
  170. package/dist/esm/kup-grid.entry.js +1 -1
  171. package/dist/esm/kup-iframe.entry.js +1 -1
  172. package/dist/esm/kup-image-list.entry.js +7 -7
  173. package/dist/esm/kup-input-panel.entry.js +13 -6
  174. package/dist/esm/kup-input-panel.entry.js.map +1 -1
  175. package/dist/esm/kup-lazy.entry.js +12 -12
  176. package/dist/esm/kup-magic-box.entry.js +4 -4
  177. package/dist/esm/{kup-manager-11e9e4eb.js → kup-manager-669cda17.js} +8 -2
  178. package/dist/esm/kup-manager-669cda17.js.map +1 -0
  179. package/dist/esm/kup-nav-bar.entry.js +2 -2
  180. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  181. package/dist/esm/kup-pdf.entry.js +2 -2
  182. package/dist/esm/kup-photo-frame.entry.js +3 -3
  183. package/dist/esm/kup-planner-renderer.entry.js +2 -2
  184. package/dist/esm/kup-planner.entry.js +3 -3
  185. package/dist/esm/kup-probe.entry.js +2 -2
  186. package/dist/esm/kup-qlik.entry.js +2 -2
  187. package/dist/esm/kup-snackbar.entry.js +2 -2
  188. package/dist/esm/kup-typography-list.entry.js +2 -2
  189. package/dist/esm/kup-typography.entry.js +2 -2
  190. package/dist/ketchup/index.esm.js +1 -1
  191. package/dist/ketchup/ketchup.esm.js +1 -1
  192. package/dist/ketchup/{p-659307e0.entry.js → p-06651510.entry.js} +2 -2
  193. package/dist/ketchup/{p-c5ef1391.entry.js → p-07ab58b7.entry.js} +2 -2
  194. package/dist/ketchup/{p-08887d7c.entry.js → p-07af0f44.entry.js} +2 -2
  195. package/dist/ketchup/{p-c315790c.js → p-13b2ca2d.js} +2 -2
  196. package/dist/ketchup/{p-8412389c.entry.js → p-13f4b18e.entry.js} +3 -3
  197. package/dist/ketchup/{p-bf7e2ff2.entry.js → p-1460050d.entry.js} +2 -2
  198. package/dist/ketchup/{p-4c05394a.entry.js → p-19c0491c.entry.js} +2 -2
  199. package/dist/ketchup/p-1ac6a21a.entry.js +2 -0
  200. package/dist/ketchup/{p-d4c15514.entry.js.map → p-1ac6a21a.entry.js.map} +1 -1
  201. package/dist/ketchup/{p-4ffbef91.entry.js → p-22d4016a.entry.js} +2 -2
  202. package/dist/ketchup/{p-56b44f04.js → p-26030fba.js} +3 -3
  203. package/dist/ketchup/p-26030fba.js.map +1 -0
  204. package/dist/ketchup/{p-97439fd2.entry.js → p-398b13ca.entry.js} +2 -2
  205. package/dist/ketchup/{p-a2f84ab4.entry.js → p-42582605.entry.js} +2 -2
  206. package/dist/ketchup/{p-0c11594e.js → p-50e5a990.js} +2 -2
  207. package/dist/ketchup/{p-bf1b9843.entry.js → p-547ce22c.entry.js} +2 -2
  208. package/dist/ketchup/{p-16f61690.entry.js → p-5fef2650.entry.js} +2 -2
  209. package/dist/ketchup/{p-21c0de7e.entry.js → p-68be312f.entry.js} +2 -2
  210. package/dist/ketchup/{p-f9367d09.entry.js → p-6f3846da.entry.js} +3 -3
  211. package/dist/ketchup/p-7285b1b3.entry.js +2 -0
  212. package/dist/ketchup/p-7285b1b3.entry.js.map +1 -0
  213. package/dist/ketchup/p-812c59be.js +2 -0
  214. package/dist/ketchup/p-812c59be.js.map +1 -0
  215. package/dist/ketchup/{p-9fcf4425.entry.js → p-9586b234.entry.js} +2 -2
  216. package/dist/ketchup/{p-8a77b0b2.entry.js → p-99de1bea.entry.js} +2 -2
  217. package/dist/ketchup/{p-7c623aa3.entry.js → p-9ab7218f.entry.js} +2 -2
  218. package/dist/ketchup/{p-d80192a9.js → p-a0dce50f.js} +2 -2
  219. package/dist/ketchup/{p-203cb58a.entry.js → p-a7e1edb6.entry.js} +3 -3
  220. package/dist/ketchup/p-ac894b67.entry.js +2 -0
  221. package/dist/ketchup/p-ac894b67.entry.js.map +1 -0
  222. package/dist/ketchup/{p-188edcd5.entry.js → p-ac90237a.entry.js} +2 -2
  223. package/dist/ketchup/{p-1c22c2cd.entry.js → p-ada5beae.entry.js} +2 -2
  224. package/dist/ketchup/{p-9524e01d.entry.js → p-aefbe2a4.entry.js} +2 -2
  225. package/dist/ketchup/{p-ed3c5848.entry.js → p-bd9b1a39.entry.js} +3 -3
  226. package/dist/ketchup/{p-b2bf0eab.entry.js → p-c85be66a.entry.js} +2 -2
  227. package/dist/ketchup/{p-22441167.entry.js → p-ca5d792d.entry.js} +2 -2
  228. package/dist/ketchup/{p-6415175b.js → p-cc1abfc4.js} +2 -2
  229. package/dist/ketchup/{p-e921b455.entry.js → p-ce2c3d02.entry.js} +2 -2
  230. package/dist/ketchup/{p-745037f2.entry.js → p-e8dc8c8f.entry.js} +2 -2
  231. package/dist/ketchup/{p-529632c9.entry.js → p-ecd177b6.entry.js} +2 -2
  232. package/dist/ketchup/{p-8fe82d0e.entry.js → p-ed400b83.entry.js} +2 -2
  233. package/dist/ketchup/{p-b65b747c.entry.js → p-fd60c779.entry.js} +3 -3
  234. package/dist/types/components/kup-cell/kup-cell.d.ts +1 -0
  235. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +3 -1
  236. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -1
  237. package/package.json +1 -1
  238. package/dist/cjs/f-cell-5272e2de.js.map +0 -1
  239. package/dist/cjs/kup-manager-17968474.js.map +0 -1
  240. package/dist/esm/f-cell-3cb0880d.js.map +0 -1
  241. package/dist/esm/kup-manager-11e9e4eb.js.map +0 -1
  242. package/dist/ketchup/p-0f20e19f.entry.js +0 -2
  243. package/dist/ketchup/p-0f20e19f.entry.js.map +0 -1
  244. package/dist/ketchup/p-56b44f04.js.map +0 -1
  245. package/dist/ketchup/p-771d6f8b.entry.js +0 -2
  246. package/dist/ketchup/p-771d6f8b.entry.js.map +0 -1
  247. package/dist/ketchup/p-80896d21.js +0 -2
  248. package/dist/ketchup/p-80896d21.js.map +0 -1
  249. package/dist/ketchup/p-d4c15514.entry.js +0 -2
  250. /package/dist/ketchup/{p-659307e0.entry.js.map → p-06651510.entry.js.map} +0 -0
  251. /package/dist/ketchup/{p-c5ef1391.entry.js.map → p-07ab58b7.entry.js.map} +0 -0
  252. /package/dist/ketchup/{p-08887d7c.entry.js.map → p-07af0f44.entry.js.map} +0 -0
  253. /package/dist/ketchup/{p-c315790c.js.map → p-13b2ca2d.js.map} +0 -0
  254. /package/dist/ketchup/{p-8412389c.entry.js.map → p-13f4b18e.entry.js.map} +0 -0
  255. /package/dist/ketchup/{p-bf7e2ff2.entry.js.map → p-1460050d.entry.js.map} +0 -0
  256. /package/dist/ketchup/{p-4c05394a.entry.js.map → p-19c0491c.entry.js.map} +0 -0
  257. /package/dist/ketchup/{p-4ffbef91.entry.js.map → p-22d4016a.entry.js.map} +0 -0
  258. /package/dist/ketchup/{p-97439fd2.entry.js.map → p-398b13ca.entry.js.map} +0 -0
  259. /package/dist/ketchup/{p-a2f84ab4.entry.js.map → p-42582605.entry.js.map} +0 -0
  260. /package/dist/ketchup/{p-0c11594e.js.map → p-50e5a990.js.map} +0 -0
  261. /package/dist/ketchup/{p-bf1b9843.entry.js.map → p-547ce22c.entry.js.map} +0 -0
  262. /package/dist/ketchup/{p-16f61690.entry.js.map → p-5fef2650.entry.js.map} +0 -0
  263. /package/dist/ketchup/{p-21c0de7e.entry.js.map → p-68be312f.entry.js.map} +0 -0
  264. /package/dist/ketchup/{p-f9367d09.entry.js.map → p-6f3846da.entry.js.map} +0 -0
  265. /package/dist/ketchup/{p-9fcf4425.entry.js.map → p-9586b234.entry.js.map} +0 -0
  266. /package/dist/ketchup/{p-8a77b0b2.entry.js.map → p-99de1bea.entry.js.map} +0 -0
  267. /package/dist/ketchup/{p-7c623aa3.entry.js.map → p-9ab7218f.entry.js.map} +0 -0
  268. /package/dist/ketchup/{p-d80192a9.js.map → p-a0dce50f.js.map} +0 -0
  269. /package/dist/ketchup/{p-203cb58a.entry.js.map → p-a7e1edb6.entry.js.map} +0 -0
  270. /package/dist/ketchup/{p-188edcd5.entry.js.map → p-ac90237a.entry.js.map} +0 -0
  271. /package/dist/ketchup/{p-1c22c2cd.entry.js.map → p-ada5beae.entry.js.map} +0 -0
  272. /package/dist/ketchup/{p-9524e01d.entry.js.map → p-aefbe2a4.entry.js.map} +0 -0
  273. /package/dist/ketchup/{p-ed3c5848.entry.js.map → p-bd9b1a39.entry.js.map} +0 -0
  274. /package/dist/ketchup/{p-b2bf0eab.entry.js.map → p-c85be66a.entry.js.map} +0 -0
  275. /package/dist/ketchup/{p-22441167.entry.js.map → p-ca5d792d.entry.js.map} +0 -0
  276. /package/dist/ketchup/{p-6415175b.js.map → p-cc1abfc4.js.map} +0 -0
  277. /package/dist/ketchup/{p-e921b455.entry.js.map → p-ce2c3d02.entry.js.map} +0 -0
  278. /package/dist/ketchup/{p-745037f2.entry.js.map → p-e8dc8c8f.entry.js.map} +0 -0
  279. /package/dist/ketchup/{p-529632c9.entry.js.map → p-ecd177b6.entry.js.map} +0 -0
  280. /package/dist/ketchup/{p-8fe82d0e.entry.js.map → p-ed400b83.entry.js.map} +0 -0
  281. /package/dist/ketchup/{p-b65b747c.entry.js.map → p-fd60c779.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { h, proxyCustomElement, HTMLElement, createEvent, forceUpdate, Host } from '@stencil/core/internal/client';
2
- import { F as FCellTypes, i as FCellShapes, M as CMBandACPAdapter, R as RADAdapter, k as kupManagerInstance, q as FCellPadding, g as getProps, s as setProps$1, aa as KupDragEffect, d as KupLanguageGeneric } from './kup-manager.js';
2
+ import { F as FCellTypes, i as FCellShapes, M as CMBandACPAdapter, k as kupManagerInstance, q as FCellPadding, g as getProps, s as setProps$1, aa as KupDragEffect, d as KupLanguageGeneric } from './kup-manager.js';
3
3
  import { J as FCell, c as componentWrapperId, R as FButton, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s } from './kup-autocomplete2.js';
4
4
 
5
5
  /**
@@ -97,24 +97,8 @@ const FCellOptions = (props) => {
97
97
  if (props.cell.shape === FCellShapes.TEXT_FIELD) {
98
98
  mappedProps.cell.value = mappedProps.cell.data.value;
99
99
  }
100
- const label = getLabelComponent(mappedProps.cell, mappedProps.column.title);
101
- if (label) {
102
- return (h("div", { class: { 'input-panel__label_container': true } },
103
- label,
104
- h(FCell, Object.assign({}, mappedProps))));
105
- }
106
100
  return h(FCell, Object.assign({}, mappedProps));
107
101
  };
108
- const getLabelComponent = (cell, label) => {
109
- if (!label) {
110
- return null;
111
- }
112
- const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
113
- if (cellType === FCellTypes.RADIO) {
114
- return h("span", null, label);
115
- }
116
- return null;
117
- };
118
102
  const generateColumn = (data) => {
119
103
  const colname = data && data.obj && data.obj.t
120
104
  ? data.obj.t + ';' + data.obj.p
@@ -181,7 +165,6 @@ const mapData = (cell, col) => {
181
165
  const dataAdapterMap = new Map([
182
166
  [FCellTypes.BUTTON_LIST, MainBTNAdapter.bind(undefined)],
183
167
  [FCellTypes.STRING, MainITXAdapter.bind(undefined)],
184
- [FCellTypes.RADIO, MainRADAdapter.bind(undefined)],
185
168
  [FCellTypes.AUTOCOMPLETE, MainCMBandACPAdapter.bind(undefined)],
186
169
  [FCellTypes.COMBOBOX, MainCMBandACPAdapter.bind(undefined)],
187
170
  ]);
@@ -190,9 +173,6 @@ const mapData = (cell, col) => {
190
173
  ? adapter(options, fieldLabel, currentValue, cell, col.name)
191
174
  : null;
192
175
  };
193
- const MainRADAdapter = (options, _fieldLabel, currentValue) => {
194
- return RADAdapter(currentValue, options);
195
- };
196
176
  const MainITXAdapter = (options, _fieldLabel, _currentValue, _cell) => {
197
177
  if (options === null || options === void 0 ? void 0 : options[0]) {
198
178
  return {
@@ -241,6 +221,15 @@ const KupCell$1 = /*@__PURE__*/ proxyCustomElement(class KupCell extends HTMLEle
241
221
  * Instance of the KupManager class.
242
222
  */
243
223
  _KupCell_kupManager.set(this, kupManagerInstance());
224
+ this.getLabelComponent = (cell, label) => {
225
+ if (!label) {
226
+ return null;
227
+ }
228
+ if (cell.shape === FCellShapes.RADIO) {
229
+ return h("span", null, label);
230
+ }
231
+ return null;
232
+ };
244
233
  this.customStyle = '';
245
234
  this.data = null;
246
235
  this.density = FCellPadding.NONE;
@@ -383,16 +372,21 @@ const KupCell$1 = /*@__PURE__*/ proxyCustomElement(class KupCell extends HTMLEle
383
372
  renderKup: true,
384
373
  row: this.generateRow(),
385
374
  };
386
- return (h(Host, { key: '613f74ee646f0f1c8de4dc02f320336bd9fcdfc4' }, h("style", { key: 'f166a64528ad71af6542e326c0187e757abb7f58' }, __classPrivateFieldGet(this, _KupCell_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'af628d483659ebd18d60f008a2e5812385822881', id: componentWrapperId, style: this.showSubmit
375
+ const label = this.getLabelComponent(props.cell, props.column.title);
376
+ return (h(Host, { key: '395f8c5d9ad62699eacfe369ff53b362e162be3b' }, h("style", { key: 'b975f8a0e72a1cc0b301b4ec76a631f8a4476bf3' }, __classPrivateFieldGet(this, _KupCell_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '35b6fff68640929e637b2ef04266e9bd89ca43ee', id: componentWrapperId, style: this.showSubmit
387
377
  ? {
388
378
  display: 'flex',
389
379
  'flex-direction': this.submitPosition,
390
380
  'align-items': 'center',
391
381
  gap: '0.5rem',
392
382
  }
393
- : {} }, h(FCellOptions, Object.assign({ key: '7354ed951db1e14693f6406dbc29ff1ad587a055' }, props)), this.showSubmit ? (h(FButton, { buttonType: "submit", label: __classPrivateFieldGet(this, _KupCell_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM), wrapperClass: "form__submit", onClick: (e) => {
383
+ : {} }, h("div", { key: '286e3edbf419e2b83d4f5951700a66a70f59f3b6', class: {
384
+ 'input-panel__label_container': label
385
+ ? true
386
+ : false,
387
+ } }, label, h(FCellOptions, Object.assign({ key: '87c2ca717b6415d999ea22e2d11635de2293a08c' }, props)), this.showSubmit ? (h(FButton, { buttonType: "submit", label: __classPrivateFieldGet(this, _KupCell_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM), wrapperClass: "form__submit", onClick: (e) => {
394
388
  this.submitClick(e);
395
- } })) : null)));
389
+ } })) : null))));
396
390
  }
397
391
  disconnectedCallback() {
398
392
  __classPrivateFieldGet(this, _KupCell_kupManager, "f").dates.unregister(this);
@@ -1 +1 @@
1
- {"file":"kup-cell.js","mappings":";;;;AAGA;;;;AAIA,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,8DAA8C,CAAA;IAC9C,8CAA8B,CAAA;IAC9B,mHAAmG,CAAA;IACnG,6EAA6D,CAAA;AACjE,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAED,IAAY,2BAKX;AALD,WAAY,2BAA2B;IACnC,qDAAsB,CAAA;IACtB,gDAAiB,CAAA;IACjB,mDAAoB,CAAA;IACpB,4CAAa,CAAA;AACjB,CAAC,EALW,2BAA2B,KAA3B,2BAA2B;;;;;;;;;;;;;ACOvC,MAAM,GAAG,GAAW,QAAQ,CAAC,eAAyB,CAAC;AAEvD,MAAM,sBAAsB,GAAG,CAC3B,OAAY,EACZ,YAAoB;IAEpB,OAAO,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK;;QAAK,QAAC;YACpC,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM;YACxB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK;YAC1B,QAAQ,EAAE,YAAY,KAAK,KAAK,CAAC,OAAO,CAAC,MAAM;YAC/C,QAAQ,EAAE,CAAA,MAAA,KAAK,CAAC,QAAQ,0CAAE,MAAM;kBAC1B,sBAAsB,CAAC,KAAK,EAAE,YAAY,CAAC;kBAC3C,EAAE;SACX,EAAC;KAAA,CAAC,CAAC;AACR,CAAC,CAAC;AAEF,MAAM,8BAA8B,GAAG,CACnC,OAAY,EACZ,YAAoB;IAEpB,OAAO,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK;;QAAK,Q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AAI,CAAC,cAAc;oBACrC,aAAa,EAAE,QAAQ;oBACvB,GAAG,EAAE,QAAQ;iBAChB;kBACD,EAAE,IAGZ,EAAC,YAAY,qEAAK,KAAK,EAAiB,EACvC,IAAI,CAAC,UAAU,IACZ,EAAC,OAAO,IACJ,UAAU,EAAC,QAAQ,EACnB,KAAK,EAAE,uBAAA,IAAI,2BAAY,CAAC,QAAQ,CAAC,SAAS,CACtC,kBAAkB,CAAC,OAAO,CAC7B,EACD,YAAY,EAAC,cAAc,EAC3B,OAAO,EAAE,CAAC,CAAC;gBACP,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;aACvB,GACM,IACX,IAAI,CACN,CACH,EACT;KACL;IAED,oBAAoB;QAChB,uBAAA,IAAI,2BAAY,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACxC,uBAAA,IAAI,2BAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAC3C,uBAAA,IAAI,2BAAY,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;KAC3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["this","KupCell","setProps"],"sources":["src/components/kup-cell/kup-cell-declarations.ts","src/f-components/f-cell-options.tsx/f-cell-options.tsx","src/components/kup-cell/kup-cell.scss?tag=kup-cell&encapsulation=shadow","src/components/kup-cell/kup-cell.tsx"],"sourcesContent":["import { KupDataCell, KupEventPayload } from '../../components';\nimport { KupDataCellOptions } from '../../managers/kup-data/kup-data-declarations';\n\n/**\n * Props of the kup-cell component.\n * Used to export every prop in an object.\n */\nexport enum KupCellProps {\n customStyle = 'Custom style of the component.',\n data = 'The data of the cell.',\n density = \"The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.\",\n dragEnabled = 'When set to true, the component is draggable.',\n}\n\nexport enum KupCellSubmitButtonPosition {\n top = 'column-reverse',\n bottom = 'column',\n left = 'row-reverse',\n right = 'row',\n}\n\nexport interface KupCellSubmitClickEventPayload extends KupEventPayload {\n cell: KupDataCellOptions;\n}\n","import { FunctionalComponent, h, VNode } from '@stencil/core';\nimport { KupDom } from '../../managers/kup-manager/kup-manager-declarations';\nimport { GenericObject, KupDataColumn } from '../../components';\nimport { CMBandACPAdapter, RADAdapter } from '../../utils/cell-utils';\nimport {\n FCellOptionsProps,\n FCellProps,\n FCellShapes,\n FCellTypes,\n} from '../f-cell/f-cell-declarations';\nimport {\n DataAdapterFn,\n KupInputPanelCell,\n} from '../../components/kup-input-panel/kup-input-panel-declarations';\nimport {\n KupDataCell,\n KupDataCellOptions,\n KupDataRow,\n} from '../../managers/kup-data/kup-data-declarations';\nimport { FCell } from '../f-cell/f-cell';\n\nconst dom: KupDom = document.documentElement as KupDom;\n\nconst treeOptionsNodeAdapter = (\n options: any,\n currentValue: string\n): GenericObject[] => {\n return options.children.map((child) => ({\n id: child.content.codice,\n value: child.content.testo,\n selected: currentValue === child.content.codice,\n children: child.children?.length\n ? treeOptionsNodeAdapter(child, currentValue)\n : [],\n }));\n};\n\nconst dataTreeOptionsChildrenAdapter = (\n options: any,\n currentValue: string\n): GenericObject[] => {\n return options.children.map((child) => ({\n id: child.obj.k,\n value: child.value,\n selected: currentValue === child.obj.k,\n children: child.children?.length\n ? dataTreeOptionsChildrenAdapter(child, currentValue)\n : [],\n }));\n};\n\nconst tableOptionsAdapter = (\n options: any,\n currentValue: string\n): GenericObject[] => {\n return options.rows.map((row) => {\n const cells = row.fields || row.cells;\n const [id, value] = Object.keys(cells);\n\n return {\n id: cells[id].value,\n value: cells[value]?.value || cells[id].value,\n selected: currentValue === cells[id].value,\n };\n });\n};\n\nconst optionsTreeComboAdapter = (options: any, currentValue: string) => {\n const adapter = optionsAdapterMap.get(options.type);\n\n if (adapter) {\n return adapter(options, currentValue);\n } else {\n return options.map((option) => ({\n value: option.label,\n id: option.id,\n selected: currentValue === option.id,\n }));\n }\n};\n\nconst optionsAdapterMap = new Map<\n string,\n (options: any, currentValue: string) => GenericObject[]\n>([\n ['SmeupTreeNode', treeOptionsNodeAdapter.bind(this)],\n ['SmeupDataTree', dataTreeOptionsChildrenAdapter.bind(this)],\n ['SmeupTable', tableOptionsAdapter.bind(this)],\n ['SmeupDataTable', tableOptionsAdapter.bind(this)],\n]);\n\nexport const FCellOptions: FunctionalComponent<FCellOptionsProps> = (\n props: FCellOptionsProps\n) => {\n const mappedCell = props.cell\n ? {\n ...props.cell,\n data: setProps(props.cell, props.column),\n slotData: slotData(props.cell, props.column),\n isEditable: true,\n }\n : null;\n\n const mappedProps: FCellProps = {\n ...props,\n editable: true,\n cell: mappedCell as KupDataCell,\n column: generateColumn(mappedCell.data),\n row: generateRow(mappedCell.data),\n };\n\n if (props.cell.shape === FCellShapes.TEXT_FIELD) {\n mappedProps.cell.value = mappedProps.cell.data.value;\n }\n\n const label = getLabelComponent(mappedProps.cell, mappedProps.column.title);\n\n if (label) {\n return (\n <div class={{ 'input-panel__label_container': true }}>\n {label}\n <FCell {...mappedProps} />\n </div>\n );\n }\n return <FCell {...mappedProps}></FCell>;\n};\n\nconst getLabelComponent = (cell: KupDataCell, label: string) => {\n if (!label) {\n return null;\n }\n\n const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);\n\n if (cellType === FCellTypes.RADIO) {\n return <span>{label}</span>;\n }\n\n return null;\n};\n\nconst generateColumn = (data: GenericObject): KupDataColumn => {\n const colname: string =\n data && data.obj && data.obj.t\n ? data.obj.t + ';' + data.obj.p\n : 'KUPCELL';\n const coltitle: string =\n data && data.obj && data.obj.t\n ? data.obj.t + ';' + data.obj.p\n : 'genericEmptyObject';\n return {\n name: colname,\n title: coltitle,\n };\n};\n\nconst generateRow = (data: GenericObject): KupDataRow => {\n const col: KupDataColumn = generateColumn(data);\n const row: KupDataRow = { cells: {} };\n row.cells[col.name] = data.cell;\n return row;\n};\n\nconst slotData = (cell: KupDataCellOptions, col: KupDataColumn) => {\n const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);\n\n if (!cell.isEditable) {\n return null;\n }\n\n if (\n cellType === FCellTypes.MULTI_AUTOCOMPLETE ||\n cellType === FCellTypes.MULTI_COMBOBOX\n ) {\n return {\n ...CMBandACPAdapter(\n null,\n col.title,\n cell.options\n // cell,\n // col.name\n ),\n showDropDownIcon: true,\n class: '',\n style: { width: '100%' },\n disabled: !cell.isEditable,\n id: col.name,\n };\n }\n\n return null;\n};\n\nconst setProps = (cell: KupDataCellOptions, column: KupDataColumn) => {\n const defaultProps = {\n ...mapData(cell, column),\n disabled: !cell.isEditable,\n id: column.name,\n };\n\n const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);\n const { data, ...noDataProps } = cell.data || {};\n return cellType !== FCellTypes.MULTI_AUTOCOMPLETE &&\n cellType !== FCellTypes.MULTI_COMBOBOX\n ? deepObjectsMerge(defaultProps, {\n ...cell.data,\n })\n : // Add and ovverride defaultProps of Chip host component except data\n {\n ...defaultProps,\n ...noDataProps,\n };\n};\n\nconst deepObjectsMerge = (target: GenericObject, source: GenericObject) => {\n for (const key in source) {\n if (\n source[key] instanceof Object &&\n !Array.isArray(source[key]) &&\n key in target\n ) {\n target[key] = deepObjectsMerge(target[key], source[key]);\n } else {\n target[key] = source[key];\n }\n }\n return target;\n};\n\nconst mapData = (cell: KupDataCellOptions, col: KupDataColumn) => {\n if (!cell) {\n return null;\n }\n\n const options = cell.options;\n const fieldLabel = col.title;\n const currentValue = cell.value;\n const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);\n const dataAdapterMap = new Map<FCellTypes, DataAdapterFn>([\n [FCellTypes.BUTTON_LIST, MainBTNAdapter.bind(this)],\n [FCellTypes.STRING, MainITXAdapter.bind(this)],\n [FCellTypes.RADIO, MainRADAdapter.bind(this)],\n [FCellTypes.AUTOCOMPLETE, MainCMBandACPAdapter.bind(this)],\n [FCellTypes.COMBOBOX, MainCMBandACPAdapter.bind(this)],\n ]);\n\n const adapter = dataAdapterMap.get(cellType);\n\n return adapter\n ? adapter(options, fieldLabel, currentValue, cell, col.name)\n : null;\n};\n\nconst MainRADAdapter = (\n options: GenericObject,\n _fieldLabel: string,\n currentValue: string\n) => {\n return RADAdapter(currentValue, options);\n};\n\nconst MainITXAdapter = (\n options: GenericObject,\n _fieldLabel: string,\n _currentValue: string,\n _cell: KupDataCellOptions\n) => {\n if (options?.[0]) {\n return {\n value: options[0].label,\n };\n }\n};\n\nconst MainBTNAdapter = (\n _options: GenericObject,\n _fieldLabel: string,\n _currentValue: string,\n cell: KupDataCellOptions\n) => {\n return {\n data: cell.options?.length\n ? cell.options?.map((option) => ({\n icon: option.icon,\n value: option.value,\n }))\n : [],\n };\n};\n\nconst MainCMBandACPAdapter = (\n rawOptions: GenericObject,\n fieldLabel: string,\n currentValue: string\n) => {\n const configCMandACP = CMBandACPAdapter(currentValue, fieldLabel, []);\n\n configCMandACP.data['kup-list'].data = optionsTreeComboAdapter(\n rawOptions,\n currentValue\n );\n return configCMandACP;\n};\n","/**\n* @prop --kup-cell-background: Sets the background of the cell.\n* @prop --kup-cell-font-family: Sets the font family of the cell.\n* @prop --kup-cell-font-family-monospace: Sets the monospace font family of the cell (for numbers).\n* @prop --kup-cell-font-size: Sets the font size of the cell.\n* @prop --kup-cell-text-color: Sets the text color of the cell.\n*\n* NOTE: These variables are defined in the \"kup-theme.css\" file, because they must work even without the kup component (it's a functional component)\n*\n*/\n\n:host {\n display: block;\n height: 100%;\n width: 100%;\n}\n\n#kup-component {\n height: 100%;\n width: 100%;\n}\n","import {\n Component,\n Element,\n forceUpdate,\n h,\n Host,\n Event,\n EventEmitter,\n Method,\n Prop,\n} from '@stencil/core';\nimport {\n KupManager,\n kupManagerInstance,\n} from '../../managers/kup-manager/kup-manager';\nimport { GenericObject, KupComponent } from '../../types/GenericTypes';\nimport { getProps, setProps } from '../../utils/utils';\nimport { componentWrapperId } from '../../variables/GenericVariables';\nimport {\n KupCellProps,\n KupCellSubmitButtonPosition,\n KupCellSubmitClickEventPayload,\n} from './kup-cell-declarations';\nimport { FCell } from '../../f-components/f-cell/f-cell';\nimport {\n FCellOptionsProps,\n FCellPadding,\n FCellProps,\n} from '../../f-components/f-cell/f-cell-declarations';\nimport {\n KupDragDataTransferCallback,\n KupDragEffect,\n} from '../../managers/kup-interact/kup-interact-declarations';\nimport { KupLanguageGeneric } from '../../managers/kup-language/kup-language-declarations';\nimport {\n KupDataCell,\n KupDataCellOptions,\n KupDataColumn,\n KupDataRow,\n} from '../../managers/kup-data/kup-data-declarations';\nimport { FCellOptions } from '../../f-components/f-cell-options.tsx/f-cell-options';\nimport { FButton } from '../../f-components/f-button/f-button';\n\n@Component({\n tag: 'kup-cell',\n styleUrl: 'kup-cell.scss',\n shadow: true,\n})\nexport class KupCell {\n /**\n * References the root HTML element of the component (<kup-text-field>).\n */\n @Element() rootElement: HTMLElement;\n\n /*-------------------------------------------------*/\n /* P r o p s */\n /*-------------------------------------------------*/\n\n /**\n * Custom style of the component.\n * @default \"\"\n * @see https://smeup.github.io/ketchup/#/customization\n */\n @Prop() customStyle: string = '';\n /**\n * The data of the cell.\n * @default false\n */\n @Prop() data: KupDataCell = null;\n /**\n * The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.\n */\n @Prop() density: FCellPadding = FCellPadding.NONE;\n /**\n * When set to true, the component is draggable.\n * @default false\n */\n @Prop() dragEnabled: boolean = false;\n\n /**\n * Show submit button\n */\n @Prop() showSubmit: boolean = false;\n\n /**\n * Submit button position, default is right\n */\n @Prop() submitPosition: KupCellSubmitButtonPosition =\n KupCellSubmitButtonPosition.right;\n\n /*-------------------------------------------------*/\n /* I n t e r n a l V a r i a b l e s */\n /*-------------------------------------------------*/\n\n /**\n * Instance of the KupManager class.\n */\n #kupManager: KupManager = kupManagerInstance();\n\n /*-------------------------------------------------*/\n /* P u b l i c M e t h o d s */\n /*-------------------------------------------------*/\n\n @Event({\n eventName: 'kup-cell-submit-click',\n composed: true,\n cancelable: false,\n bubbles: true,\n })\n kupCellSubmitClick: EventEmitter<KupCellSubmitClickEventPayload>;\n\n /**\n * Adds the given CSS classes to the cell's data.\n * @param {string[]} classes - Array of CSS classes.\n */\n @Method()\n async addCssClasses(classes?: string[]): Promise<void> {\n if (!this.data.cssClass) {\n this.data.cssClass = '';\n }\n if (classes) {\n for (let index = 0; index < classes.length; index++) {\n const cssClass = classes[index];\n if (this.data.cssClass.indexOf(cssClass) < 0) {\n this.data.cssClass += ` ${cssClass}`;\n }\n }\n }\n this.refresh();\n }\n /**\n * Used to retrieve component's props values.\n * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.\n * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.\n */\n @Method()\n async getProps(descriptions?: boolean): Promise<GenericObject> {\n return getProps(this, KupCellProps, descriptions);\n }\n /**\n * This method is used to trigger a new render of the component.\n */\n @Method()\n async refresh(): Promise<void> {\n forceUpdate(this);\n }\n /**\n * Removes the given CSS classes from the cell's data.\n * @param {string[]} classes - Array of CSS classes.\n */\n @Method()\n async removeCssClasses(classes?: string[]): Promise<void> {\n if (!this.data.cssClass) {\n return;\n }\n if (classes) {\n for (let index = 0; index < classes.length; index++) {\n const cssClass = classes[index];\n if (this.data.cssClass.indexOf(cssClass) > 0) {\n this.data.cssClass = this.data.cssClass.replace(\n new RegExp(cssClass, 'g'),\n ''\n );\n }\n }\n }\n this.refresh();\n }\n /**\n * Sets the props to the component.\n * @param {GenericObject} props - Object containing props that will be set to the component.\n */\n @Method()\n async setProps(props: GenericObject): Promise<void> {\n setProps(this, KupCellProps, props);\n }\n\n /*-------------------------------------------------*/\n /* P r i v a t e M e t h o d s */\n /*-------------------------------------------------*/\n\n private didRenderInteractables() {\n if (this.dragEnabled) {\n const dataCb: KupDragDataTransferCallback = () => {\n return {\n cell: this.data,\n column: this.generateColumn(),\n id: this.rootElement.id,\n multiple: false,\n row: this.generateRow(),\n };\n };\n\n this.#kupManager.interact.draggable(\n this.rootElement.shadowRoot.querySelector(\n '#' + componentWrapperId\n ),\n {\n cursorChecker() {\n return null;\n },\n },\n {\n callback: dataCb,\n },\n KupDragEffect.BADGE\n );\n }\n }\n\n private generateColumn(): KupDataColumn {\n const colname: string =\n this.data && this.data.obj && this.data.obj.t\n ? this.data.obj.t + ';' + this.data.obj.p\n : 'KUPCELL';\n const coltitle: string =\n this.data && this.data.obj && this.data.obj.t\n ? this.data.obj.t + ';' + this.data.obj.p\n : this.#kupManager.language.translate(\n KupLanguageGeneric.EMPTY_OBJECT\n );\n return {\n name: colname,\n title: coltitle,\n };\n }\n\n private generateRow(): KupDataRow {\n const col: KupDataColumn = this.generateColumn();\n const row: KupDataRow = { cells: {} };\n row.cells[col.name] = this.data;\n return row;\n }\n\n private submitClick(e: MouseEvent): void {\n e.stopPropagation();\n this.kupCellSubmitClick.emit({\n comp: this,\n id: this.rootElement.id,\n cell: this.data as KupDataCellOptions,\n });\n }\n\n /*-------------------------------------------------*/\n /* L i f e c y c l e H o o k s */\n /*-------------------------------------------------*/\n\n componentWillLoad() {\n this.#kupManager.dates.register(this);\n this.#kupManager.debug.logLoad(this, false);\n this.#kupManager.language.register(this);\n this.#kupManager.theme.register(this);\n }\n\n componentDidLoad() {\n this.#kupManager.debug.logLoad(this, true);\n }\n\n componentWillRender() {\n this.#kupManager.debug.logRender(this, false);\n }\n\n componentDidRender() {\n this.didRenderInteractables();\n this.#kupManager.debug.logRender(this, true);\n }\n\n render() {\n const props: FCellOptionsProps = {\n cell: this.data as KupDataCellOptions,\n column: this.generateColumn(),\n component: this,\n density: this.density,\n editable: this.data.isEditable,\n renderKup: true,\n row: this.generateRow(),\n };\n\n return (\n <Host>\n <style>\n {this.#kupManager.theme.setKupStyle(\n this.rootElement as KupComponent\n )}\n </style>\n <div\n id={componentWrapperId}\n style={\n this.showSubmit\n ? {\n display: 'flex',\n 'flex-direction': this.submitPosition,\n 'align-items': 'center',\n gap: '0.5rem',\n }\n : {}\n }\n >\n <FCellOptions {...props}></FCellOptions>\n {this.showSubmit ? (\n <FButton\n buttonType=\"submit\"\n label={this.#kupManager.language.translate(\n KupLanguageGeneric.CONFIRM\n )}\n wrapperClass=\"form__submit\"\n onClick={(e) => {\n this.submitClick(e);\n }}\n ></FButton>\n ) : null}\n </div>\n </Host>\n );\n }\n\n disconnectedCallback() {\n this.#kupManager.dates.unregister(this);\n this.#kupManager.language.unregister(this);\n this.#kupManager.theme.unregister(this);\n }\n}\n"],"version":3}
1
+ {"file":"kup-cell.js","mappings":";;;;AAGA;;;;AAIA,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,8DAA8C,CAAA;IAC9C,8CAA8B,CAAA;IAC9B,mHAAmG,CAAA;IACnG,6EAA6D,CAAA;AACjE,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAED,IAAY,2BAKX;AALD,WAAY,2BAA2B;IACnC,qDAAsB,CAAA;IACtB,gDAAiB,CAAA;IACjB,mDAAoB,CAAA;IACpB,4CAAa,CAAA;AACjB,CAAC,EALW,2BAA2B,KAA3B,2BAA2B;;;;;;;;;;;;;ACOvC,MAAM,GAAG,GAAW,QAAQ,CAAC,eAAyB,CAAC;AAEvD,MAAM,sBAAsB,GAAG,CAC3B,OAAY,EACZ,YAAoB;IAEpB,OAAO,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK;;QAAK,QAAC;YACpC,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM;YACxB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK;YAC1B,QAAQ,EAAE,YAAY,KAAK,KAAK,CAAC,OAAO,CAAC,MAAM;YAC/C,QAAQ,EAAE,CAAA,MAAA,KAAK,CAAC,QAAQ,0CAAE,MAAM;kBAC1B,sBAAsB,CAAC,KAAK,EAAE,YAAY,CAAC;kBAC3C,EAAE;SACX,EAAC;K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Y,CAAC,QAAQ,CAAC,SAAS,CACtC,kBAAkB,CAAC,OAAO,CAC7B,EACD,YAAY,EAAC,cAAc,EAC3B,OAAO,EAAE,CAAC,CAAC;gBACP,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;aACvB,GACM,IACX,IAAI,CACN,CACJ,CACH,EACT;KACL;IAcD,oBAAoB;QAChB,uBAAA,IAAI,2BAAY,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACxC,uBAAA,IAAI,2BAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAC3C,uBAAA,IAAI,2BAAY,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;KAC3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["this","KupCell","setProps"],"sources":["src/components/kup-cell/kup-cell-declarations.ts","src/f-components/f-cell-options.tsx/f-cell-options.tsx","src/components/kup-cell/kup-cell.scss?tag=kup-cell&encapsulation=shadow","src/components/kup-cell/kup-cell.tsx"],"sourcesContent":["import { KupDataCell, KupEventPayload } from '../../components';\nimport { KupDataCellOptions } from '../../managers/kup-data/kup-data-declarations';\n\n/**\n * Props of the kup-cell component.\n * Used to export every prop in an object.\n */\nexport enum KupCellProps {\n customStyle = 'Custom style of the component.',\n data = 'The data of the cell.',\n density = \"The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.\",\n dragEnabled = 'When set to true, the component is draggable.',\n}\n\nexport enum KupCellSubmitButtonPosition {\n top = 'column-reverse',\n bottom = 'column',\n left = 'row-reverse',\n right = 'row',\n}\n\nexport interface KupCellSubmitClickEventPayload extends KupEventPayload {\n cell: KupDataCellOptions;\n}\n","import { FunctionalComponent, h, VNode } from '@stencil/core';\nimport { KupDom } from '../../managers/kup-manager/kup-manager-declarations';\nimport { GenericObject, KupDataColumn } from '../../components';\nimport { CMBandACPAdapter, RADAdapter } from '../../utils/cell-utils';\nimport {\n FCellOptionsProps,\n FCellProps,\n FCellShapes,\n FCellTypes,\n} from '../f-cell/f-cell-declarations';\nimport {\n DataAdapterFn,\n KupInputPanelCell,\n} from '../../components/kup-input-panel/kup-input-panel-declarations';\nimport {\n KupDataCell,\n KupDataCellOptions,\n KupDataRow,\n} from '../../managers/kup-data/kup-data-declarations';\nimport { FCell } from '../f-cell/f-cell';\n\nconst dom: KupDom = document.documentElement as KupDom;\n\nconst treeOptionsNodeAdapter = (\n options: any,\n currentValue: string\n): GenericObject[] => {\n return options.children.map((child) => ({\n id: child.content.codice,\n value: child.content.testo,\n selected: currentValue === child.content.codice,\n children: child.children?.length\n ? treeOptionsNodeAdapter(child, currentValue)\n : [],\n }));\n};\n\nconst dataTreeOptionsChildrenAdapter = (\n options: any,\n currentValue: string\n): GenericObject[] => {\n return options.children.map((child) => ({\n id: child.obj.k,\n value: child.value,\n selected: currentValue === child.obj.k,\n children: child.children?.length\n ? dataTreeOptionsChildrenAdapter(child, currentValue)\n : [],\n }));\n};\n\nconst tableOptionsAdapter = (\n options: any,\n currentValue: string\n): GenericObject[] => {\n return options.rows.map((row) => {\n const cells = row.fields || row.cells;\n const [id, value] = Object.keys(cells);\n\n return {\n id: cells[id].value,\n value: cells[value]?.value || cells[id].value,\n selected: currentValue === cells[id].value,\n };\n });\n};\n\nconst optionsTreeComboAdapter = (options: any, currentValue: string) => {\n const adapter = optionsAdapterMap.get(options.type);\n\n if (adapter) {\n return adapter(options, currentValue);\n } else {\n return options.map((option) => ({\n value: option.label,\n id: option.id,\n selected: currentValue === option.id,\n }));\n }\n};\n\nconst optionsAdapterMap = new Map<\n string,\n (options: any, currentValue: string) => GenericObject[]\n>([\n ['SmeupTreeNode', treeOptionsNodeAdapter.bind(this)],\n ['SmeupDataTree', dataTreeOptionsChildrenAdapter.bind(this)],\n ['SmeupTable', tableOptionsAdapter.bind(this)],\n ['SmeupDataTable', tableOptionsAdapter.bind(this)],\n]);\n\nexport const FCellOptions: FunctionalComponent<FCellOptionsProps> = (\n props: FCellOptionsProps\n) => {\n const mappedCell = props.cell\n ? {\n ...props.cell,\n data: setProps(props.cell, props.column),\n slotData: slotData(props.cell, props.column),\n isEditable: true,\n }\n : null;\n\n const mappedProps: FCellProps = {\n ...props,\n editable: true,\n cell: mappedCell as KupDataCell,\n column: generateColumn(mappedCell.data),\n row: generateRow(mappedCell.data),\n };\n\n if (props.cell.shape === FCellShapes.TEXT_FIELD) {\n mappedProps.cell.value = mappedProps.cell.data.value;\n }\n\n return <FCell {...mappedProps}></FCell>;\n};\n\nconst generateColumn = (data: GenericObject): KupDataColumn => {\n const colname: string =\n data && data.obj && data.obj.t\n ? data.obj.t + ';' + data.obj.p\n : 'KUPCELL';\n const coltitle: string =\n data && data.obj && data.obj.t\n ? data.obj.t + ';' + data.obj.p\n : 'genericEmptyObject';\n return {\n name: colname,\n title: coltitle,\n };\n};\n\nconst generateRow = (data: GenericObject): KupDataRow => {\n const col: KupDataColumn = generateColumn(data);\n const row: KupDataRow = { cells: {} };\n row.cells[col.name] = data.cell;\n return row;\n};\n\nconst slotData = (cell: KupDataCellOptions, col: KupDataColumn) => {\n const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);\n\n if (!cell.isEditable) {\n return null;\n }\n\n if (\n cellType === FCellTypes.MULTI_AUTOCOMPLETE ||\n cellType === FCellTypes.MULTI_COMBOBOX\n ) {\n return {\n ...CMBandACPAdapter(\n null,\n col.title,\n cell.options\n // cell,\n // col.name\n ),\n showDropDownIcon: true,\n class: '',\n style: { width: '100%' },\n disabled: !cell.isEditable,\n id: col.name,\n };\n }\n\n return null;\n};\n\nconst setProps = (cell: KupDataCellOptions, column: KupDataColumn) => {\n const defaultProps = {\n ...mapData(cell, column),\n disabled: !cell.isEditable,\n id: column.name,\n };\n\n const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);\n const { data, ...noDataProps } = cell.data || {};\n return cellType !== FCellTypes.MULTI_AUTOCOMPLETE &&\n cellType !== FCellTypes.MULTI_COMBOBOX\n ? deepObjectsMerge(defaultProps, {\n ...cell.data,\n })\n : // Add and ovverride defaultProps of Chip host component except data\n {\n ...defaultProps,\n ...noDataProps,\n };\n};\n\nconst deepObjectsMerge = (target: GenericObject, source: GenericObject) => {\n for (const key in source) {\n if (\n source[key] instanceof Object &&\n !Array.isArray(source[key]) &&\n key in target\n ) {\n target[key] = deepObjectsMerge(target[key], source[key]);\n } else {\n target[key] = source[key];\n }\n }\n return target;\n};\n\nconst mapData = (cell: KupDataCellOptions, col: KupDataColumn) => {\n if (!cell) {\n return null;\n }\n\n const options = cell.options;\n const fieldLabel = col.title;\n const currentValue = cell.value;\n const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);\n const dataAdapterMap = new Map<FCellTypes, DataAdapterFn>([\n [FCellTypes.BUTTON_LIST, MainBTNAdapter.bind(this)],\n [FCellTypes.STRING, MainITXAdapter.bind(this)],\n [FCellTypes.AUTOCOMPLETE, MainCMBandACPAdapter.bind(this)],\n [FCellTypes.COMBOBOX, MainCMBandACPAdapter.bind(this)],\n ]);\n\n const adapter = dataAdapterMap.get(cellType);\n\n return adapter\n ? adapter(options, fieldLabel, currentValue, cell, col.name)\n : null;\n};\n\nconst MainITXAdapter = (\n options: GenericObject,\n _fieldLabel: string,\n _currentValue: string,\n _cell: KupDataCellOptions\n) => {\n if (options?.[0]) {\n return {\n value: options[0].label,\n };\n }\n};\n\nconst MainBTNAdapter = (\n _options: GenericObject,\n _fieldLabel: string,\n _currentValue: string,\n cell: KupDataCellOptions\n) => {\n return {\n data: cell.options?.length\n ? cell.options?.map((option) => ({\n icon: option.icon,\n value: option.value,\n }))\n : [],\n };\n};\n\nconst MainCMBandACPAdapter = (\n rawOptions: GenericObject,\n fieldLabel: string,\n currentValue: string\n) => {\n const configCMandACP = CMBandACPAdapter(currentValue, fieldLabel, []);\n\n configCMandACP.data['kup-list'].data = optionsTreeComboAdapter(\n rawOptions,\n currentValue\n );\n return configCMandACP;\n};\n","/**\n* @prop --kup-cell-background: Sets the background of the cell.\n* @prop --kup-cell-font-family: Sets the font family of the cell.\n* @prop --kup-cell-font-family-monospace: Sets the monospace font family of the cell (for numbers).\n* @prop --kup-cell-font-size: Sets the font size of the cell.\n* @prop --kup-cell-text-color: Sets the text color of the cell.\n*\n* NOTE: These variables are defined in the \"kup-theme.css\" file, because they must work even without the kup component (it's a functional component)\n*\n*/\n\n:host {\n display: block;\n height: 100%;\n width: 100%;\n}\n\n#kup-component {\n height: 100%;\n width: 100%;\n}\n","import {\n Component,\n Element,\n forceUpdate,\n h,\n Host,\n Event,\n EventEmitter,\n Method,\n Prop,\n} from '@stencil/core';\nimport {\n KupManager,\n kupManagerInstance,\n} from '../../managers/kup-manager/kup-manager';\nimport { GenericObject, KupComponent } from '../../types/GenericTypes';\nimport { getProps, setProps } from '../../utils/utils';\nimport { componentWrapperId } from '../../variables/GenericVariables';\nimport {\n KupCellProps,\n KupCellSubmitButtonPosition,\n KupCellSubmitClickEventPayload,\n} from './kup-cell-declarations';\nimport {\n FCellOptionsProps,\n FCellPadding,\n FCellShapes,\n} from '../../f-components/f-cell/f-cell-declarations';\nimport {\n KupDragDataTransferCallback,\n KupDragEffect,\n} from '../../managers/kup-interact/kup-interact-declarations';\nimport { KupLanguageGeneric } from '../../managers/kup-language/kup-language-declarations';\nimport {\n KupDataCell,\n KupDataCellOptions,\n KupDataColumn,\n KupDataRow,\n} from '../../managers/kup-data/kup-data-declarations';\nimport { FCellOptions } from '../../f-components/f-cell-options.tsx/f-cell-options';\nimport { FButton } from '../../f-components/f-button/f-button';\n\n@Component({\n tag: 'kup-cell',\n styleUrl: 'kup-cell.scss',\n shadow: true,\n})\nexport class KupCell {\n /**\n * References the root HTML element of the component (<kup-text-field>).\n */\n @Element() rootElement: HTMLElement;\n\n /*-------------------------------------------------*/\n /* P r o p s */\n /*-------------------------------------------------*/\n\n /**\n * Custom style of the component.\n * @default \"\"\n * @see https://smeup.github.io/ketchup/#/customization\n */\n @Prop() customStyle: string = '';\n /**\n * The data of the cell.\n * @default false\n */\n @Prop() data: KupDataCell = null;\n /**\n * The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.\n */\n @Prop() density: FCellPadding = FCellPadding.NONE;\n /**\n * When set to true, the component is draggable.\n * @default false\n */\n @Prop() dragEnabled: boolean = false;\n\n /**\n * Show submit button\n */\n @Prop() showSubmit: boolean = false;\n\n /**\n * Submit button position, default is right\n */\n @Prop() submitPosition: KupCellSubmitButtonPosition =\n KupCellSubmitButtonPosition.right;\n\n /*-------------------------------------------------*/\n /* I n t e r n a l V a r i a b l e s */\n /*-------------------------------------------------*/\n\n /**\n * Instance of the KupManager class.\n */\n #kupManager: KupManager = kupManagerInstance();\n\n /*-------------------------------------------------*/\n /* P u b l i c M e t h o d s */\n /*-------------------------------------------------*/\n\n @Event({\n eventName: 'kup-cell-submit-click',\n composed: true,\n cancelable: false,\n bubbles: true,\n })\n kupCellSubmitClick: EventEmitter<KupCellSubmitClickEventPayload>;\n\n /**\n * Adds the given CSS classes to the cell's data.\n * @param {string[]} classes - Array of CSS classes.\n */\n @Method()\n async addCssClasses(classes?: string[]): Promise<void> {\n if (!this.data.cssClass) {\n this.data.cssClass = '';\n }\n if (classes) {\n for (let index = 0; index < classes.length; index++) {\n const cssClass = classes[index];\n if (this.data.cssClass.indexOf(cssClass) < 0) {\n this.data.cssClass += ` ${cssClass}`;\n }\n }\n }\n this.refresh();\n }\n /**\n * Used to retrieve component's props values.\n * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.\n * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.\n */\n @Method()\n async getProps(descriptions?: boolean): Promise<GenericObject> {\n return getProps(this, KupCellProps, descriptions);\n }\n /**\n * This method is used to trigger a new render of the component.\n */\n @Method()\n async refresh(): Promise<void> {\n forceUpdate(this);\n }\n /**\n * Removes the given CSS classes from the cell's data.\n * @param {string[]} classes - Array of CSS classes.\n */\n @Method()\n async removeCssClasses(classes?: string[]): Promise<void> {\n if (!this.data.cssClass) {\n return;\n }\n if (classes) {\n for (let index = 0; index < classes.length; index++) {\n const cssClass = classes[index];\n if (this.data.cssClass.indexOf(cssClass) > 0) {\n this.data.cssClass = this.data.cssClass.replace(\n new RegExp(cssClass, 'g'),\n ''\n );\n }\n }\n }\n this.refresh();\n }\n /**\n * Sets the props to the component.\n * @param {GenericObject} props - Object containing props that will be set to the component.\n */\n @Method()\n async setProps(props: GenericObject): Promise<void> {\n setProps(this, KupCellProps, props);\n }\n\n /*-------------------------------------------------*/\n /* P r i v a t e M e t h o d s */\n /*-------------------------------------------------*/\n\n private didRenderInteractables() {\n if (this.dragEnabled) {\n const dataCb: KupDragDataTransferCallback = () => {\n return {\n cell: this.data,\n column: this.generateColumn(),\n id: this.rootElement.id,\n multiple: false,\n row: this.generateRow(),\n };\n };\n\n this.#kupManager.interact.draggable(\n this.rootElement.shadowRoot.querySelector(\n '#' + componentWrapperId\n ),\n {\n cursorChecker() {\n return null;\n },\n },\n {\n callback: dataCb,\n },\n KupDragEffect.BADGE\n );\n }\n }\n\n private generateColumn(): KupDataColumn {\n const colname: string =\n this.data && this.data.obj && this.data.obj.t\n ? this.data.obj.t + ';' + this.data.obj.p\n : 'KUPCELL';\n const coltitle: string =\n this.data && this.data.obj && this.data.obj.t\n ? this.data.obj.t + ';' + this.data.obj.p\n : this.#kupManager.language.translate(\n KupLanguageGeneric.EMPTY_OBJECT\n );\n return {\n name: colname,\n title: coltitle,\n };\n }\n\n private generateRow(): KupDataRow {\n const col: KupDataColumn = this.generateColumn();\n const row: KupDataRow = { cells: {} };\n row.cells[col.name] = this.data;\n return row;\n }\n\n private submitClick(e: MouseEvent): void {\n e.stopPropagation();\n this.kupCellSubmitClick.emit({\n comp: this,\n id: this.rootElement.id,\n cell: this.data as KupDataCellOptions,\n });\n }\n\n /*-------------------------------------------------*/\n /* L i f e c y c l e H o o k s */\n /*-------------------------------------------------*/\n\n componentWillLoad() {\n this.#kupManager.dates.register(this);\n this.#kupManager.debug.logLoad(this, false);\n this.#kupManager.language.register(this);\n this.#kupManager.theme.register(this);\n }\n\n componentDidLoad() {\n this.#kupManager.debug.logLoad(this, true);\n }\n\n componentWillRender() {\n this.#kupManager.debug.logRender(this, false);\n }\n\n componentDidRender() {\n this.didRenderInteractables();\n this.#kupManager.debug.logRender(this, true);\n }\n\n render() {\n const props: FCellOptionsProps = {\n cell: this.data as KupDataCellOptions,\n column: this.generateColumn(),\n component: this,\n density: this.density,\n editable: this.data.isEditable,\n renderKup: true,\n row: this.generateRow(),\n };\n\n const label = this.getLabelComponent(props.cell, props.column.title);\n\n return (\n <Host>\n <style>\n {this.#kupManager.theme.setKupStyle(\n this.rootElement as KupComponent\n )}\n </style>\n <div\n id={componentWrapperId}\n style={\n this.showSubmit\n ? {\n display: 'flex',\n 'flex-direction': this.submitPosition,\n 'align-items': 'center',\n gap: '0.5rem',\n }\n : {}\n }\n >\n <div\n class={{\n 'input-panel__label_container': label\n ? true\n : false,\n }}\n >\n {label}\n <FCellOptions {...props} />\n {this.showSubmit ? (\n <FButton\n buttonType=\"submit\"\n label={this.#kupManager.language.translate(\n KupLanguageGeneric.CONFIRM\n )}\n wrapperClass=\"form__submit\"\n onClick={(e) => {\n this.submitClick(e);\n }}\n ></FButton>\n ) : null}\n </div>\n </div>\n </Host>\n );\n }\n\n getLabelComponent = (cell: KupDataCell, label: string) => {\n if (!label) {\n return null;\n }\n\n if (cell.shape === FCellShapes.RADIO) {\n return <span>{label}</span>;\n }\n\n return null;\n };\n\n disconnectedCallback() {\n this.#kupManager.dates.unregister(this);\n this.#kupManager.language.unregister(this);\n this.#kupManager.theme.unregister(this);\n }\n}\n"],"version":3}
@@ -386,7 +386,7 @@ const KupDashboard$1 = /*@__PURE__*/ proxyCustomElement(class KupDashboard exten
386
386
  this.didRenderInteractables();
387
387
  }
388
388
  render() {
389
- return (h(Host, { key: '2a5f7d91b832041e5c68460409f8723bcae04c25' }, h("style", { key: '00165eccb43eb45e9519e50ae383b6f237b6d293' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '66a90a4032f46aec89e48e2e8c3c95d948dee416', id: componentWrapperId }, this.buildHeader(), this.buildForm(this.internalData, null))));
389
+ return (h(Host, { key: 'ad8cbbbae20467e5a3f3ed0e37ca7ad752d949c2' }, h("style", { key: '692d0ec8ffe264c463f0a4e6abd5561dfd7c277d' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '26faf0b00335df455b9f9445fae97133cc630b5a', id: componentWrapperId }, this.buildHeader(), this.buildForm(this.internalData, null))));
390
390
  }
391
391
  disconnectedCallback() {
392
392
  this.unregisterInteractables();
@@ -127,7 +127,7 @@ const KupDrawer$1 = /*@__PURE__*/ proxyCustomElement(class KupDrawer extends HTM
127
127
  this.kupManager.debug.logRender(this, true);
128
128
  }
129
129
  render() {
130
- return (h(Host, { key: '47b6e1195efa7ac6696505f19808aaeed8804c81', "kup-opened": this.opened }, h("style", { key: '2ae05ab9c05ad338fa42f7ea827139883dc370c9' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '9574a0c126fbedb4022932c0388d96874bca3a71', class: "backdrop", onClick: (e) => {
130
+ return (h(Host, { key: '8a9d2198973d5a7ec57918a2064e790682764845', "kup-opened": this.opened }, h("style", { key: 'e3abd215c9b0196074011bf4325bf8a7ab9092ed' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '71daac9c19301460a3fe3edad3f320c01f11bad5', class: "backdrop", onClick: (e) => {
131
131
  e.preventDefault();
132
132
  e.stopPropagation();
133
133
  }, onPointerDown: (e) => {
@@ -137,7 +137,7 @@ const KupDrawer$1 = /*@__PURE__*/ proxyCustomElement(class KupDrawer extends HTM
137
137
  }, onTouchStart: (e) => {
138
138
  e.preventDefault();
139
139
  e.stopPropagation();
140
- } }), h("div", { key: 'bb38d8793e68860b78c53a82e067e5ee765db93b', id: componentWrapperId }, h("div", { key: 'fb7a2c5bc9cd9fcac56a6e7e73066995e31e78b3', class: drawerClass }, this.content()))));
140
+ } }), h("div", { key: '47e90864a92415cca083f56e2d25cd05efe56df9', id: componentWrapperId }, h("div", { key: '47bfb804ce58fa47dc1fa7a574df7a05bd92b116', class: drawerClass }, this.content()))));
141
141
  }
142
142
  disconnectedCallback() {
143
143
  this.kupManager.theme.unregister(this);
@@ -84537,7 +84537,7 @@ const KupEchart = /*@__PURE__*/ proxyCustomElement(class KupEchart extends HTMLE
84537
84537
  '--kup_echart_height': this.sizeY ? this.sizeY : '100%',
84538
84538
  '--kup_echart_width': this.sizeX ? this.sizeX : '100%',
84539
84539
  };
84540
- return (h(Host, { key: '2bb29a57f0dd5bb037c344371102d3d4b72eca25', style: style }, h("style", { key: '4df6d5703a6eca3d331b2b9d9dc08d40a2b2ac62' }, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'cd18230ff95ba7df8d9fac0781e3621a4eb4376a', id: componentWrapperId, ref: (chartContainer) => (__classPrivateFieldSet(this, _KupEchart_chartContainer, chartContainer, "f")) })));
84540
+ return (h(Host, { key: '9376b0691463c44b441c15e602a30c966cae6ad0', style: style }, h("style", { key: '0e476b67ae4d25abef7f596c9ed8a0f80ce8c855' }, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'd29a2fe699268ad6b9fb3ad2d645c0beb6d2d2af', id: componentWrapperId, ref: (chartContainer) => (__classPrivateFieldSet(this, _KupEchart_chartContainer, chartContainer, "f")) })));
84541
84541
  }
84542
84542
  disconnectedCallback() {
84543
84543
  __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.unregister(this);
@@ -46261,7 +46261,7 @@ const KupEditor = /*@__PURE__*/ proxyCustomElement(class KupEditor extends HTMLE
46261
46261
  __classPrivateFieldGet(this, _KupEditor_kupManager, "f").debug.logRender(this, true);
46262
46262
  }
46263
46263
  render() {
46264
- return (h(Host, { key: 'e732ebc91b5f48c0bc515cfffa8cc2d1d6d7485f' }, h("div", { key: '560b1ac7dcdab0bf90db09bb92e847a9e5d14f7e', id: componentWrapperId }, h("div", { key: this.rootElement.id, ref: (el) => (this.editorRef = el), class: "kup-editor" }))));
46264
+ return (h(Host, { key: 'ffbd575e5192cccaf2c070c4586215cc7573f9ce' }, h("div", { key: '21e2b1a060db3009c6595eb92f78361adff24d6c', id: componentWrapperId }, h("div", { key: this.rootElement.id, ref: (el) => (this.editorRef = el), class: "kup-editor" }))));
46265
46265
  }
46266
46266
  disconnectedCallback() {
46267
46267
  __classPrivateFieldGet(this, _KupEditor_kupManager, "f").theme.unregister(this);
@@ -169,12 +169,12 @@ const KupFamilyTree$1 = /*@__PURE__*/ proxyCustomElement(class KupFamilyTree ext
169
169
  __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").debug.logRender(this, true);
170
170
  }
171
171
  render() {
172
- return (h(Host, { key: '602bb95f29dfe9e017313b01a3fc485c23dd2f97', onDrag: (e) => e.preventDefault(), onPointerDown: (e) => {
172
+ return (h(Host, { key: '6788b54f8c964ddeda1e5c4a7922613eb2efd59f', onDrag: (e) => e.preventDefault(), onPointerDown: (e) => {
173
173
  e.preventDefault();
174
174
  __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_startPanning).call(this, e);
175
175
  }, onWheel: (e) => {
176
176
  __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_zoomTree).call(this, e);
177
- } }, h("style", { key: 'becb707b0e477aff23e752bbb7ce335c01b428bd' }, __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'aa50336a80b5499f3241b277639bb234c9e3eee5', id: componentWrapperId }, __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_createTree).call(this))));
177
+ } }, h("style", { key: '40f38048045b0c3726164c999dc9fa15ea778291' }, __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '9d4209faa777da38726d8113582cbba14ace1df7', id: componentWrapperId }, __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_createTree).call(this))));
178
178
  }
179
179
  disconnectedCallback() {
180
180
  __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").language.unregister(this);
@@ -316,11 +316,11 @@ const KupGanttCalendar = /*@__PURE__*/ proxyCustomElement(class KupGanttCalendar
316
316
  this.simplifiedHeader =
317
317
  this.singleLineHeader && this.dateSetup.viewMode !== 'year';
318
318
  const [topValues, bottomValues] = this.getTopAndBottomValues();
319
- return (h("svg", { key: 'eb5996256c199bb4d5f60df2d1f9c7378a480e0f', xmlns: "http://www.w3.org/2000/svg", width: this.svgWidth, height: this.headerHeight }, h("g", { key: '491a7ddf831ba0b6d373d058f223f8dab6d76954', class: "calendar", "font-size": this.fontSize, "font-family": this.fontFamily }, h("rect", { key: 'cd64c9a42c8c68d067e6a37cfb049bc77c15ac2d', x: 0, y: 0, width: this.columnWidth * this.dateSetup.dates.length, height: this.headerHeight, class: "calendarHeader" }), this.simplifiedHeader ? null : bottomValues, this.simplifiedHeader
319
+ return (h("svg", { key: '0137f0b266f9c9ed1d3a9b6ae8b2990df572a780', xmlns: "http://www.w3.org/2000/svg", width: this.svgWidth, height: this.headerHeight }, h("g", { key: '0f4af7831888120ba3734d0f778782433d626c2b', class: "calendar", "font-size": this.fontSize, "font-family": this.fontFamily }, h("rect", { key: '8f4b92d3927d6687ce4e4e2707920dbda9153b4b', x: 0, y: 0, width: this.columnWidth * this.dateSetup.dates.length, height: this.headerHeight, class: "calendarHeader" }), this.simplifiedHeader ? null : bottomValues, this.simplifiedHeader
320
320
  ? topValues.map((topValue) => (h("g", { class: "calendarTop" }, h("line", { x1: topValue.x1Line, y1: topValue.y2Line * 2, x2: topValue.x1Line, y2: topValue.y2Line, class: "calendarTopTick", key: topValue.value + 'line' }), h("text", { key: topValue.value + 'text', y: topValue.yText, x: topValue.xText, class: "calendarTopText" }, topValue.value))))
321
321
  : topValues.map((topValue) => (h("g", { class: "calendarTop" }, h("line", { x1: topValue.x1Line, y1: topValue.y1Line, x2: topValue.x1Line, y2: topValue.y2Line, class: "calendarTopTick", key: topValue.value + 'line' }), h("text", { key: topValue.value + 'text', y: topValue.yText, x: topValue.xText, class: "calendarTopText" }, topValue.value)))), this.currentDateIndicator && (
322
322
  // current date indicator
323
- h("circle", { key: 'ccc563c883e85c17c839dd6414fba8e0845c4eac', fill: this.currentDateIndicator.color, cx: this.currentDateIndicator.x + 2.5, cy: this.headerHeight - 8, r: "8" })))));
323
+ h("circle", { key: 'b5ce42db928f9b1ad5570a6d96ae6f05664bc029', fill: this.currentDateIndicator.color, cx: this.currentDateIndicator.x + 2.5, cy: this.headerHeight - 8, r: "8" })))));
324
324
  }
325
325
  static get style() { return KupGanttCalendarStyle0; }
326
326
  }, [0, "kup-gantt-calendar", {
@@ -579,9 +579,9 @@ const KupGantt = /*@__PURE__*/ proxyCustomElement(class KupGantt extends HTMLEle
579
579
  TaskListHeader: this.TaskListHeader,
580
580
  TaskListTable: this.TaskListTable
581
581
  };
582
- return (h("div", { key: '289593765ef7125e06f4c4494afda7c7826a425a', class: "gannt-wrapper-main" }, h("div", { key: '7331caa09620441f546ef4e392489f7e7141f0b1', class: "wrapper", onKeyDown: this.handleKeyDown.bind(this), tabIndex: 0, ref: (el) => (this.wrapperRef = el) }, this.listCellWidth && (h("kup-task-list", Object.assign({ key: '94888a0b29649deede01fc1ee50bff7329a0e0a6', currentTasks: this.currentTasks, handleClick: this.handleClick, handleDblClick: this.handleDblClick, handleContextMenu: this.handleContextMenu, ganttOnClick: this.ganttOnClick, ganttOnDblClick: this.ganttOnDblClick, ganttonOnContextMenu: this.ganttonOnContextMenu, label: this.label, doubleView: this.doubleView, setDoubleView: this.setDoubleView }, tableProps, { class: "tasks", scrollableTaskList: this.scrollableTaskList, updateTaskListScrollX: this.ignoreScrollEvent, ontaskListScrollWidth: (width) => {
582
+ return (h("div", { key: '8a37b54f4c5c6de936730887c063ec9701f78537', class: "gannt-wrapper-main" }, h("div", { key: '96064c18fcf8520720f0b009fcb554b4821be213', class: "wrapper", onKeyDown: this.handleKeyDown.bind(this), tabIndex: 0, ref: (el) => (this.wrapperRef = el) }, this.listCellWidth && (h("kup-task-list", Object.assign({ key: '0cd04dabe0c6693c3e59dcf3715bc52a63ccf030', currentTasks: this.currentTasks, handleClick: this.handleClick, handleDblClick: this.handleDblClick, handleContextMenu: this.handleContextMenu, ganttOnClick: this.ganttOnClick, ganttOnDblClick: this.ganttOnDblClick, ganttonOnContextMenu: this.ganttonOnContextMenu, label: this.label, doubleView: this.doubleView, setDoubleView: this.setDoubleView }, tableProps, { class: "tasks", scrollableTaskList: this.scrollableTaskList, updateTaskListScrollX: this.ignoreScrollEvent, ontaskListScrollWidth: (width) => {
583
583
  this.taskListScrollWidth = width;
584
- }, taskListScrollX: this.taskListScrollX, ref: (el) => (this.taskListTrueRef = el) }))), h("kup-task-gantt", { key: '80ba048340da0aae3a00ba3536fc0a1563fdcaf8', gridProps: gridProps, calendarProps: calendarProps, barProps: barProps, ganttHeight: this.ganttHeight, taskGanttRef: this.taskGanttRef, scrollY: this.scrollY, scrollX: this.scrollX, phaseDragScroll: this.handlePhaseDragScroll.bind(this), class: "ganttContainer" }), this.ganttEvent.changedTask && (h("kup-tooltip", { key: 'e27894aa55d62e3dc59a07a05fb3aaeaaf3c9b40', arrowIndent: this.arrowIndent, rowHeight: this.rowHeight, svgContainerHeight: this.svgContainerHeight, svgContainerWidth: this.svgContainerWidth, fontFamily: this.fontFamily, fontSize: this.fontSize, scrollX: this.scrollX, scrollY: this.scrollY, task: this.ganttEvent.changedTask, headerHeight: this.headerHeight, taskListWidth: this.taskListWidth, TooltipContent: this.TooltipContent, rtl: this.rtl, svgWidth: this.svgWidth })), h("kup-vertical-scroll", { key: '52380d31a6dc13aac1eb97d41f9e9c3a5d05a2e8', ganttFullHeight: this.ganttFullHeight, ganttHeight: this.ganttHeight, headerHeight: this.headerHeight, scrollNumber: this.scrollY, verticalScroll: this.handleScrollY.bind(this), rtl: this.rtl })), this.taskGanttRef && (h("kup-horizontal-scroll", { key: '2a9aedcb55249a1c027cafaa8230d17896353ec0', svgWidth: this.svgWidth, taskListTrueRef: this.taskListTrueRef, taskListWidth: this.taskListWidth, scrollNumber: this.scrollX, rtl: this.rtl, horizontalScroll: this.handleScrollX.bind(this), horizontalTaskListScroll: this.handleTaskListScrollX.bind(this), listCellWidth: this.listCellWidth, scrollableTaskList: this.scrollableTaskList, taskListScrollWidth: this.taskListScrollWidth, taskListScrollNumber: this.taskListScrollX }))));
584
+ }, taskListScrollX: this.taskListScrollX, ref: (el) => (this.taskListTrueRef = el) }))), h("kup-task-gantt", { key: 'b5e26244d1ca3eea44c34b405c9106d0ef30e48f', gridProps: gridProps, calendarProps: calendarProps, barProps: barProps, ganttHeight: this.ganttHeight, taskGanttRef: this.taskGanttRef, scrollY: this.scrollY, scrollX: this.scrollX, phaseDragScroll: this.handlePhaseDragScroll.bind(this), class: "ganttContainer" }), this.ganttEvent.changedTask && (h("kup-tooltip", { key: 'f33a7583ef8b0650aeca1b4f7195d1e7faa5ef52', arrowIndent: this.arrowIndent, rowHeight: this.rowHeight, svgContainerHeight: this.svgContainerHeight, svgContainerWidth: this.svgContainerWidth, fontFamily: this.fontFamily, fontSize: this.fontSize, scrollX: this.scrollX, scrollY: this.scrollY, task: this.ganttEvent.changedTask, headerHeight: this.headerHeight, taskListWidth: this.taskListWidth, TooltipContent: this.TooltipContent, rtl: this.rtl, svgWidth: this.svgWidth })), h("kup-vertical-scroll", { key: '5e470693988937d9d9eacdee4c72981bab26df29', ganttFullHeight: this.ganttFullHeight, ganttHeight: this.ganttHeight, headerHeight: this.headerHeight, scrollNumber: this.scrollY, verticalScroll: this.handleScrollY.bind(this), rtl: this.rtl })), this.taskGanttRef && (h("kup-horizontal-scroll", { key: '73d297169276b73eea6e2447b26a84dd4278f65b', svgWidth: this.svgWidth, taskListTrueRef: this.taskListTrueRef, taskListWidth: this.taskListWidth, scrollNumber: this.scrollX, rtl: this.rtl, horizontalScroll: this.handleScrollX.bind(this), horizontalTaskListScroll: this.handleTaskListScrollX.bind(this), listCellWidth: this.listCellWidth, scrollableTaskList: this.scrollableTaskList, taskListScrollWidth: this.taskListScrollWidth, taskListScrollNumber: this.taskListScrollX }))));
585
585
  }
586
586
  get rootElement() { return this; }
587
587
  static get watchers() { return {
@@ -1402,13 +1402,13 @@ const KupGridRenderer = /*@__PURE__*/ proxyCustomElement(class KupGridRenderer e
1402
1402
  // }
1403
1403
  tickX += this.columnWidth;
1404
1404
  }
1405
- return (h("svg", { key: '5a7273db0e78764c1432747471f093f71021dfd2', xmlns: "http://www.w3.org/2000/svg", width: this.gridProps.svgWidth, height: `${this.rowHeight * this.tasks.length}px`, "font-family": this.fontFamily, ref: (el) => (this.svg = el) }, h("g", { key: '192f07e833557179530a07e525b107e38300365f', class: "grid" }, h("g", { key: '0e08f10c0b0ef19518ab95591dbdb0c3213ba82e', class: "rows" }, gridRows), h("g", { key: '7aaa532f82aa195e00e0f0af6af59019216b7734', class: "rowLines" }, rowLines), h("g", { key: '716e07303c5e16fc662e3c859727c2be325edd9e', class: "ticks" }, ticks)), h("g", { key: 'a2663516577a108f216a65307b9f183c659a92a8', class: "content" }, this.currentDateIndicator && (h("rect", { key: '7afb39c47ec99b8268757dab9a85c20eed6eeb4b', fill: this.currentDateIndicator.color, x: this.currentDateIndicator.x + 1.5, y: "0", width: "2", height: "100%" })), this.projection && (h("rect", { key: '8348ee9e06dad473af617d618252405a114a3d36', fill: this.projection.color, x: this.projection.x0, y: "0", width: this.projection.xf - this.projection.x0, height: "100%", "fill-opacity": "0.35" })), h("g", { key: '16b5df90351a040c71d8895a30ac9367d9a53b2e', class: "arrows", fill: this.arrowColor, stroke: this.arrowColor }, this.tasks.map((task) => {
1405
+ return (h("svg", { key: '9263a7ff5b686852374b8ab09139cd5fcc0121d8', xmlns: "http://www.w3.org/2000/svg", width: this.gridProps.svgWidth, height: `${this.rowHeight * this.tasks.length}px`, "font-family": this.fontFamily, ref: (el) => (this.svg = el) }, h("g", { key: '85be8b28a1dace4119300b70f57315f078196aca', class: "grid" }, h("g", { key: '5649441550478e9548ae5ca74e1103b4d1d5a0ae', class: "rows" }, gridRows), h("g", { key: 'b9448651fa176155dcca85e255f4c18df8e82c78', class: "rowLines" }, rowLines), h("g", { key: '494680efd38cf2de8e2ed70ed9d9150e7445686a', class: "ticks" }, ticks)), h("g", { key: '4d9372e10eb48f81db24e2ab192aaf3ba0d8ea35', class: "content" }, this.currentDateIndicator && (h("rect", { key: '8895a188975316ece0a630c649011557db8abb35', fill: this.currentDateIndicator.color, x: this.currentDateIndicator.x + 1.5, y: "0", width: "2", height: "100%" })), this.projection && (h("rect", { key: '840d85239cfae75ef410d67ea3a4b52c5c017f5a', fill: this.projection.color, x: this.projection.x0, y: "0", width: this.projection.xf - this.projection.x0, height: "100%", "fill-opacity": "0.35" })), h("g", { key: 'b39ff7980e443acc2b954389cc5ca2873e02ba1c', class: "arrows", fill: this.arrowColor, stroke: this.arrowColor }, this.tasks.map((task) => {
1406
1406
  return task.barChildren.map((child) => {
1407
1407
  if (task.type !== 'timeline') {
1408
1408
  this.renderKupArrow(task, child);
1409
1409
  }
1410
1410
  });
1411
- })), h("g", { key: '67a5d0a4c0e3e655c0ea4c4373e765c12d25cc02', class: "bar", "font-family": this.fontFamily, "font-size": this.fontSize }, this.tasks.map((task) => {
1411
+ })), h("g", { key: 'e4c860fe4271daf18cc3fee8f9660a23e7a8ac44', class: "bar", "font-family": this.fontFamily, "font-size": this.fontSize }, this.tasks.map((task) => {
1412
1412
  const forbidResize = task.type === 'project';
1413
1413
  return (h("g", { onKeyDown: (e) => {
1414
1414
  switch (e.key) {
@@ -1468,7 +1468,7 @@ const KupGridRenderer = /*@__PURE__*/ proxyCustomElement(class KupGridRenderer e
1468
1468
  return this.renderKupBar(task, props.isSelected, isDateResizable, isProgressChangeable);
1469
1469
  }
1470
1470
  })()));
1471
- }), this.currentTarget && this.ganttEvent.changedTask && (h("g", { key: '37c27322df479348c58dcebb92ad110ad813e939', class: "task-wrapper" }, this.renderKupBar(this.ganttEvent.changedTask, false, false, false)))))));
1471
+ }), this.currentTarget && this.ganttEvent.changedTask && (h("g", { key: 'f767fdbf19649620d62420262cf978a3503d7d3e', class: "task-wrapper" }, this.renderKupBar(this.ganttEvent.changedTask, false, false, false)))))));
1472
1472
  }
1473
1473
  static get watchers() { return {
1474
1474
  "columnWidth": ["updateXStep"],
@@ -60,20 +60,20 @@ const HorizontalScroll = /*@__PURE__*/ proxyCustomElement(class HorizontalScroll
60
60
  var _a, _b;
61
61
  const w = (_b = ((_a = this.taskListTrueRef) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width) + 24 * 1.5) !== null && _b !== void 0 ? _b : 0; // 24 * 2 is the sum of padding and margin for both list and gantt, multiplied by 1.5 cause we need to add the other half to the right
62
62
  const width = +this.listCellWidth.replace('px', '');
63
- return (h(Fragment, { key: '540bfcce78395efa06fc99af47fb1973216e493e' }, h("div", { key: '40a90b5d4c70fca0632770ed07cd25b1fe8818f6', class: "scroll-container" }, this.scrollableTaskList &&
64
- this.taskListScrollWidth > width && (h("div", { key: 'a1b800c1244c20cbac1d9d62c099a6ce3534ab9e', dir: "ltr", style: {
63
+ return (h(Fragment, { key: '8eaf71f5bb666b616699b6b3ce516c7782b19826' }, h("div", { key: '7f45069ae1abaebee714344f58bcc749c23b423c', class: "scroll-container" }, this.scrollableTaskList &&
64
+ this.taskListScrollWidth > width && (h("div", { key: 'de7209740ba1891436f39e37708fe64e2d4bb330', dir: "ltr", style: {
65
65
  margin: this.rtl
66
66
  ? `0px 20px 0px 20px`
67
67
  : `0px 20px 0px 20px`,
68
68
  maxWidth: `${width + 20}px`,
69
69
  minWidth: `${width + 20}px`,
70
- }, class: "scrollWrapper", "data-scrollx": "true", onScroll: this.horizontalTaskListScroll }, h("div", { key: '2f617fa83a89cf4028412c95581be2168f0e2498', style: {
70
+ }, class: "scrollWrapper", "data-scrollx": "true", onScroll: this.horizontalTaskListScroll }, h("div", { key: 'eb58dfaa07feb65f410d286e2474aee8676439b7', style: {
71
71
  width: `${this.taskListScrollWidth}px`,
72
- }, class: "scroll" }))), h("div", { key: 'f41a1fc76a99cb06fba8abf111b91551f9da91ad', dir: "ltr", style: {
72
+ }, class: "scroll" }))), h("div", { key: '94b6efc36af3fada66786096556e75102679c70d', dir: "ltr", style: {
73
73
  margin: this.rtl
74
74
  ? `0px ${this.scrollableTaskList && this.taskListScrollWidth > width ? 40 : w}px 0px 12px`
75
75
  : `0px 12px 0px ${this.scrollableTaskList && this.taskListScrollWidth > width ? 40 : w}px`,
76
- }, class: "scrollWrapper", "data-scrollx": "true", onScroll: this.horizontalScroll }, h("div", { key: '540f86357ea1efc90f0443fb587905a0a7e16629', style: { width: `${this.svgWidth}px` }, class: "scroll" })))));
76
+ }, class: "scrollWrapper", "data-scrollx": "true", onScroll: this.horizontalScroll }, h("div", { key: '06d4406a9c16d88126522ea07c72b26099acccd3', style: { width: `${this.svgWidth}px` }, class: "scroll" })))));
77
77
  }
78
78
  get rootElement() { return this; }
79
79
  static get watchers() { return {
@@ -223,14 +223,14 @@ const KupImageList$1 = /*@__PURE__*/ proxyCustomElement(class KupImageList exten
223
223
  };
224
224
  combinedGridStyle = Object.assign(Object.assign({}, combinedGridStyle), gridRowsStyle);
225
225
  }
226
- return (h(Host, { key: 'a739d3569084048dfbfbcfb797a1a69e3b30647f' }, h("style", { key: '5703cab616be68410bfcc78016598049e939caf5' }, __classPrivateFieldGet(this, _KupImageList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'dcac9252c2ec7bfad10836a4e7193289612a7179', id: componentWrapperId, ref: (el) => {
226
+ return (h(Host, { key: '23c2d80631804f9c3a587cffc04dce998bff968f' }, h("style", { key: '2b6e430e92b2a96191fbe3a662719073e0fb3a26' }, __classPrivateFieldGet(this, _KupImageList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '60472a44a90b970ea6424484586b27abeb633cf6', id: componentWrapperId, ref: (el) => {
227
227
  __classPrivateFieldSet(this, _KupImageList_el, el, "f");
228
- } }, h("div", { key: '21c0bc1aab2d618da88ccb4dbbf240afc5146cb2', class: "navigation-bar" }, hasNavigation ? (h("div", { class: `navigation-bar__wrapper ${this.navigationBarToggled
228
+ } }, h("div", { key: '735d77b674d51d5601485505d14a7dfbac0c57fe', class: "navigation-bar" }, hasNavigation ? (h("div", { class: `navigation-bar__wrapper ${this.navigationBarToggled
229
229
  ? 'navigation-bar__wrapper--active'
230
230
  : ''}` }, h("div", { class: `navigation-bar__title`, onClick: () => {
231
231
  this.navigationBarToggled =
232
232
  !this.navigationBarToggled;
233
- } }, h(FImage, { fit: true, resource: this.currentNode.icon, placeholderResource: this.currentNode.placeholderIcon, sizeX: "1.25em", sizeY: "1.25em", wrapperClass: "navigation-bar__title__image" }), h("div", { class: "navigation-bar__title__label" }, this.currentNode.value)), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_backProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.BACK) })), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_topProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.TOP) })))) : null), h("div", { key: 'f2a6f4fecf1a38fc173ab4569277772baf8e91b0', class: "image-list", style: combinedGridStyle }, ...__classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_createList).call(this)))));
233
+ } }, h(FImage, { fit: true, resource: this.currentNode.icon, placeholderResource: this.currentNode.placeholderIcon, sizeX: "1.25em", sizeY: "1.25em", wrapperClass: "navigation-bar__title__image" }), h("div", { class: "navigation-bar__title__label" }, this.currentNode.value)), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_backProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.BACK) })), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_topProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.TOP) })))) : null), h("div", { key: '8f463b49c509a559b7be874a37787b393e3e2bf2', class: "image-list", style: combinedGridStyle }, ...__classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_createList).call(this)))));
234
234
  }
235
235
  disconnectedCallback() {
236
236
  __classPrivateFieldGet(this, _KupImageList_kupManager, "f").interact.unregister(__classPrivateFieldGet(this, _KupImageList_interactableTouch, "f"));
@@ -80,7 +80,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
80
80
  }
81
81
  return t;
82
82
  };
83
- var _KupInputPanel_instances, _KupInputPanel_kupManager, _KupInputPanel_optionsAdapterMap, _KupInputPanel_originalData, _KupInputPanel_eventNames, _KupInputPanel_listeners, _KupInputPanel_cellTypeComponents, _KupInputPanel_cellCustomRender, _KupInputPanel_sectionRenderMap, _KupInputPanel_keysShortcut, _KupInputPanel_renderRow, _KupInputPanel_renderCell, _KupInputPanel_renderButton, _KupInputPanel_renderEditor, _KupInputPanel_renderDataTable, _KupInputPanel_renderLabel, _KupInputPanel_getLabelComponent, _KupInputPanel_renderGridLayout, _KupInputPanel_renderAbsoluteLayout, _KupInputPanel_renderSection, _KupInputPanel_renderAbsoluteSection, _KupInputPanel_renderSectionTab, _KupInputPanel_renderField, _KupInputPanel_renderAbsoluteField, _KupInputPanel_mapCells, _KupInputPanel_setProps, _KupInputPanel_deepObjectsMerge, _KupInputPanel_reverseMapCells, _KupInputPanel_mapData, _KupInputPanel_slotData, _KupInputPanel_CHIAdapter, _KupInputPanel_GRAAdapter, _KupInputPanel_BTNAdapter, _KupInputPanel_CMBandACPAdapter, _KupInputPanel_CHKAdapter, _KupInputPanel_CLPAdapter, _KupInputPanel_EDTAdapter, _KupInputPanel_ITXAdapter, _KupInputPanel_RADAdapter, _KupInputPanel_SWTAdapter, _KupInputPanel_DateAdapter, _KupInputPanel_TimeAdapter, _KupInputPanel_NumberAdapter, _KupInputPanel_DataTableAdapter, _KupInputPanel_getTableUpdatedCell, _KupInputPanel_optionsTreeComboAdapter, _KupInputPanel_treeOptionsNodeAdapter, _KupInputPanel_dataTreeOptionsChildrenAdapter, _KupInputPanel_tableOptionsAdapter, _KupInputPanel_getAutocompleteEventCallback;
83
+ var _KupInputPanel_instances, _KupInputPanel_kupManager, _KupInputPanel_optionsAdapterMap, _KupInputPanel_originalData, _KupInputPanel_eventNames, _KupInputPanel_listeners, _KupInputPanel_cellTypeComponents, _KupInputPanel_cellCustomRender, _KupInputPanel_sectionRenderMap, _KupInputPanel_keysShortcut, _KupInputPanel_renderRow, _KupInputPanel_renderCell, _KupInputPanel_renderButton, _KupInputPanel_renderEditor, _KupInputPanel_renderDataTable, _KupInputPanel_renderLabel, _KupInputPanel_getLabelComponent, _KupInputPanel_renderGridLayout, _KupInputPanel_renderAbsoluteLayout, _KupInputPanel_renderSection, _KupInputPanel_renderAbsoluteSection, _KupInputPanel_renderSectionTab, _KupInputPanel_renderField, _KupInputPanel_renderAbsoluteField, _KupInputPanel_mapCells, _KupInputPanel_setProps, _KupInputPanel_deepObjectsMerge, _KupInputPanel_reverseMapCells, _KupInputPanel_mapData, _KupInputPanel_slotData, _KupInputPanel_CHIAdapter, _KupInputPanel_GRAAdapter, _KupInputPanel_BTNAdapter, _KupInputPanel_CMBandACPAdapter, _KupInputPanel_CHKAdapter, _KupInputPanel_CLPAdapter, _KupInputPanel_EDTAdapter, _KupInputPanel_ITXAdapter, _KupInputPanel_RADAdapter, _KupInputPanel_SWTAdapter, _KupInputPanel_DateAdapter, _KupInputPanel_ObjectAdapter, _KupInputPanel_TimeAdapter, _KupInputPanel_NumberAdapter, _KupInputPanel_DataTableAdapter, _KupInputPanel_getTableUpdatedCell, _KupInputPanel_optionsTreeComboAdapter, _KupInputPanel_treeOptionsNodeAdapter, _KupInputPanel_dataTreeOptionsChildrenAdapter, _KupInputPanel_tableOptionsAdapter, _KupInputPanel_getAutocompleteEventCallback;
84
84
  const dom = document.documentElement;
85
85
  const KupInputPanel$1 = /*@__PURE__*/ proxyCustomElement(class KupInputPanel extends HTMLElement {
86
86
  constructor() {
@@ -220,7 +220,7 @@ const KupInputPanel$1 = /*@__PURE__*/ proxyCustomElement(class KupInputPanel ext
220
220
  h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA)),
221
221
  ]
222
222
  : this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
223
- return (h(Host, { key: 'e279ee4ddb7992e85ea2df227a0be95841266d86' }, h("style", { key: '040a87394483713e00e075dec2569616c4615290' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '2a4a7b2df96c89e2bba82e838165f8235a2efd56', id: componentWrapperId }, inputPanelContent)));
223
+ return (h(Host, { key: '250ba268db4da534592d16fab49275cf7ad0e61b' }, h("style", { key: 'a8d1c32a3342f1cb9a6b3bfbbcb16d42f1e875f9' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '174fbec980e2fab7fa3f9d59de1d8038c04cff5f', id: componentWrapperId }, inputPanelContent)));
224
224
  }
225
225
  disconnectedCallback() {
226
226
  __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
@@ -573,6 +573,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
573
573
  [FCellTypes.MULTI_COMBOBOX, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CHIAdapter).bind(this)],
574
574
  [FCellTypes.NUMBER, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_NumberAdapter).bind(this)],
575
575
  [FCellTypes.DATE, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_DateAdapter).bind(this)],
576
+ [FCellTypes.OBJECT, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_ObjectAdapter).bind(this)],
576
577
  [FCellTypes.RADIO, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_RADAdapter).bind(this)],
577
578
  [FCellTypes.STRING, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_ITXAdapter).bind(this)],
578
579
  [FCellTypes.SWITCH, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_SWTAdapter).bind(this)],
@@ -693,6 +694,12 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
693
694
  },
694
695
  initialValue: currentValue,
695
696
  };
697
+ }, _KupInputPanel_ObjectAdapter = function _KupInputPanel_ObjectAdapter(_options, fieldLabel, currentValue, _cell, _id) {
698
+ return {
699
+ initialValue: currentValue || '',
700
+ label: fieldLabel || ' ',
701
+ value: currentValue || '',
702
+ };
696
703
  }, _KupInputPanel_TimeAdapter = function _KupInputPanel_TimeAdapter(_options, fieldLabel, _currentValue) {
697
704
  return {
698
705
  data: {