@sme.up/ketchup 8.0.2 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (552) hide show
  1. package/dist/cjs/{GenericVariables-a9ed17ee.js → GenericVariables-9cd88034.js} +3 -3
  2. package/dist/cjs/{component-85c2bd4d.js → component-2c7ddef7.js} +91 -10
  3. package/dist/cjs/{f-button-9524bbf7.js → f-button-a5f661f2.js} +99 -99
  4. package/dist/cjs/{f-button-declarations-b611587f.js → f-button-declarations-76b4fb4c.js} +16 -16
  5. package/dist/cjs/{f-cell-bcb75ade.js → f-cell-ca9e4352.js} +472 -472
  6. package/dist/cjs/{f-checkbox-1148e791.js → f-checkbox-e2c6ecef.js} +23 -23
  7. package/dist/cjs/{f-chip-2249b386.js → f-chip-e941fa19.js} +125 -125
  8. package/dist/cjs/{f-image-47d74999.js → f-image-466b724f.js} +107 -107
  9. package/dist/cjs/{f-paginator-utils-b0a9ae5f.js → f-paginator-utils-f775ce67.js} +1548 -1548
  10. package/dist/cjs/{f-text-field-579c0fc0.js → f-text-field-ddb47dda.js} +172 -172
  11. package/dist/cjs/{f-text-field-mdc-0e22f3e3.js → f-text-field-mdc-d38d80b5.js} +59 -60
  12. package/dist/cjs/{index-1f177abc.js → index-26fb8571.js} +78 -24
  13. package/dist/cjs/ketchup.cjs.js +3 -3
  14. package/dist/cjs/kup-accordion.cjs.entry.js +199 -200
  15. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +17546 -17508
  16. package/dist/cjs/kup-box.cjs.entry.js +1294 -1232
  17. package/dist/cjs/kup-calendar.cjs.entry.js +9542 -10035
  18. package/dist/cjs/kup-cell.cjs.entry.js +172 -172
  19. package/dist/cjs/kup-dash-list.cjs.entry.js +106 -106
  20. package/dist/cjs/kup-dash_2.cjs.entry.js +162 -162
  21. package/dist/cjs/kup-dashboard.cjs.entry.js +400 -401
  22. package/dist/cjs/kup-drawer.cjs.entry.js +138 -138
  23. package/dist/cjs/kup-echart.cjs.entry.js +7145 -6598
  24. package/dist/cjs/kup-family-tree.cjs.entry.js +439 -439
  25. package/dist/cjs/kup-iframe.cjs.entry.js +94 -94
  26. package/dist/cjs/kup-image-list.cjs.entry.js +255 -256
  27. package/dist/cjs/kup-lazy.cjs.entry.js +186 -186
  28. package/dist/cjs/kup-magic-box.cjs.entry.js +298 -298
  29. package/dist/cjs/{kup-manager-85b2a756.js → kup-manager-16b684bd.js} +7286 -7287
  30. package/dist/cjs/kup-nav-bar.cjs.entry.js +130 -130
  31. package/dist/cjs/kup-numeric-picker.cjs.entry.js +367 -368
  32. package/dist/cjs/kup-photo-frame.cjs.entry.js +144 -144
  33. package/dist/cjs/kup-planner.cjs.entry.js +1151 -1009
  34. package/dist/cjs/kup-probe.cjs.entry.js +246 -246
  35. package/dist/cjs/kup-qlik.cjs.entry.js +138 -138
  36. package/dist/cjs/kup-snackbar.cjs.entry.js +116 -116
  37. package/dist/cjs/loader.cjs.js +3 -3
  38. package/dist/collection/assets/dash-list.js +466 -293
  39. package/dist/collection/assets/index.js +4 -0
  40. package/dist/collection/assets/planner.js +8189 -0
  41. package/dist/collection/collection-manifest.json +2 -2
  42. package/dist/collection/components/kup-accordion/kup-accordion-declarations.js +10 -10
  43. package/dist/collection/components/kup-accordion/kup-accordion.js +445 -445
  44. package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +27 -27
  45. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +908 -908
  46. package/dist/collection/components/kup-badge/kup-badge-declarations.js +10 -10
  47. package/dist/collection/components/kup-badge/kup-badge.js +276 -276
  48. package/dist/collection/components/kup-box/kup-box-declarations.js +34 -33
  49. package/dist/collection/components/kup-box/kup-box-state.js +15 -15
  50. package/dist/collection/components/kup-box/kup-box.js +2159 -2079
  51. package/dist/collection/components/kup-button/kup-button-declarations.js +18 -18
  52. package/dist/collection/components/kup-button/kup-button.js +580 -580
  53. package/dist/collection/components/kup-button-list/kup-button-list-declarations.js +13 -13
  54. package/dist/collection/components/kup-button-list/kup-button-list.e2e.js +144 -0
  55. package/dist/collection/components/kup-button-list/kup-button-list.js +527 -527
  56. package/dist/collection/components/kup-calendar/kup-calendar-declarations.js +35 -35
  57. package/dist/collection/components/kup-calendar/kup-calendar.css +0 -4
  58. package/dist/collection/components/kup-calendar/kup-calendar.js +690 -690
  59. package/dist/collection/components/kup-card/box/kup-card-box.js +227 -227
  60. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +56 -56
  61. package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +393 -393
  62. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +308 -308
  63. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +165 -165
  64. package/dist/collection/components/kup-card/built-in/kup-card-message-box.js +10 -10
  65. package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +118 -118
  66. package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +64 -64
  67. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +217 -217
  68. package/dist/collection/components/kup-card/free/kup-card-free.js +22 -22
  69. package/dist/collection/components/kup-card/kup-card-declarations.js +98 -98
  70. package/dist/collection/components/kup-card/kup-card-helper.js +196 -196
  71. package/dist/collection/components/kup-card/kup-card.js +809 -809
  72. package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +251 -251
  73. package/dist/collection/components/kup-card/standard/kup-card-standard.js +593 -593
  74. package/dist/collection/components/kup-cell/kup-cell-declarations.js +11 -11
  75. package/dist/collection/components/kup-cell/kup-cell.js +401 -401
  76. package/dist/collection/components/kup-chart/kup-chart-builder.js +93 -93
  77. package/dist/collection/components/kup-chart/kup-chart-declarations.js +49 -49
  78. package/dist/collection/components/kup-chart/kup-chart.js +1080 -1080
  79. package/dist/collection/components/kup-checkbox/kup-checkbox-declarations.js +13 -13
  80. package/dist/collection/components/kup-checkbox/kup-checkbox.js +433 -433
  81. package/dist/collection/components/kup-chip/kup-chip-declarations.js +12 -12
  82. package/dist/collection/components/kup-chip/kup-chip.js +558 -558
  83. package/dist/collection/components/kup-color-picker/kup-color-picker-declarations.js +12 -12
  84. package/dist/collection/components/kup-color-picker/kup-color-picker.js +546 -546
  85. package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +15 -15
  86. package/dist/collection/components/kup-combobox/kup-combobox.js +821 -821
  87. package/dist/collection/components/kup-dash/kup-dash.js +171 -171
  88. package/dist/collection/components/kup-dash-list/kup-dash-list.js +327 -327
  89. package/dist/collection/components/kup-dashboard/kup-dashboard-declarations.js +10 -10
  90. package/dist/collection/components/kup-dashboard/kup-dashboard.js +588 -588
  91. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +156 -156
  92. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +808 -808
  93. package/dist/collection/components/kup-data-table/kup-data-table-state.js +36 -36
  94. package/dist/collection/components/kup-data-table/kup-data-table.js +5527 -5527
  95. package/dist/collection/components/kup-date-picker/kup-date-picker-declarations.js +18 -18
  96. package/dist/collection/components/kup-date-picker/kup-date-picker.js +816 -816
  97. package/dist/collection/components/kup-dialog/kup-dialog-declarations.js +14 -14
  98. package/dist/collection/components/kup-dialog/kup-dialog.js +467 -467
  99. package/dist/collection/components/kup-drawer/kup-drawer-declarations.js +10 -10
  100. package/dist/collection/components/kup-drawer/kup-drawer.e2e.js +9 -0
  101. package/dist/collection/components/kup-drawer/kup-drawer.js +383 -383
  102. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button-declarations.js +18 -18
  103. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +800 -800
  104. package/dist/collection/components/kup-echart/kup-echart-declarations.js +52 -52
  105. package/dist/collection/components/kup-echart/kup-echart.js +1437 -1437
  106. package/dist/collection/components/kup-family-tree/kup-family-tree-declarations.js +15 -15
  107. package/dist/collection/components/kup-family-tree/kup-family-tree.js +829 -829
  108. package/dist/collection/components/kup-form/kup-form-declarations.js +29 -29
  109. package/dist/collection/components/kup-form/kup-form.js +731 -731
  110. package/dist/collection/components/kup-gauge/kup-gauge-declarations.js +26 -26
  111. package/dist/collection/components/kup-gauge/kup-gauge.js +764 -764
  112. package/dist/collection/components/kup-grid/kup-grid-declarations.js +10 -10
  113. package/dist/collection/components/kup-grid/kup-grid.js +253 -253
  114. package/dist/collection/components/kup-iframe/kup-iframe-declarations.js +10 -10
  115. package/dist/collection/components/kup-iframe/kup-iframe.js +281 -281
  116. package/dist/collection/components/kup-image/canvas/kup-image-canvas-declarations.js +184 -184
  117. package/dist/collection/components/kup-image/canvas/kup-image-canvas-helper.js +19 -19
  118. package/dist/collection/components/kup-image/canvas/kup-image-canvas.js +225 -225
  119. package/dist/collection/components/kup-image/kup-image-declarations.js +16 -16
  120. package/dist/collection/components/kup-image/kup-image.js +491 -491
  121. package/dist/collection/components/kup-image-list/kup-image-list-declarations.js +10 -10
  122. package/dist/collection/components/kup-image-list/kup-image-list-state.js +9 -9
  123. package/dist/collection/components/kup-image-list/kup-image-list.js +533 -533
  124. package/dist/collection/components/kup-lazy/kup-lazy-declarations.js +20 -20
  125. package/dist/collection/components/kup-lazy/kup-lazy.js +430 -430
  126. package/dist/collection/components/kup-list/kup-list-declarations.js +34 -34
  127. package/dist/collection/components/kup-list/kup-list-helper.js +121 -121
  128. package/dist/collection/components/kup-list/kup-list.js +949 -949
  129. package/dist/collection/components/kup-magic-box/kup-magic-box-declarations.js +23 -23
  130. package/dist/collection/components/kup-magic-box/kup-magic-box.js +431 -431
  131. package/dist/collection/components/kup-nav-bar/kup-nav-bar-declarations.js +21 -21
  132. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +315 -315
  133. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker-declarations.js +16 -16
  134. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +864 -864
  135. package/dist/collection/components/kup-photo-frame/kup-photo-frame-declarations.js +10 -10
  136. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +372 -372
  137. package/dist/collection/components/kup-planner/kup-planner-declarations.js +83 -76
  138. package/dist/collection/components/kup-planner/kup-planner-helper.js +54 -54
  139. package/dist/collection/components/kup-planner/kup-planner-state.js +16 -0
  140. package/dist/collection/components/kup-planner/kup-planner.js +1725 -1352
  141. package/dist/collection/components/kup-probe/kup-probe.js +358 -358
  142. package/dist/collection/components/kup-progress-bar/kup-progress-bar-declarations.js +14 -14
  143. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +405 -405
  144. package/dist/collection/components/kup-qlik/kup-qlik-declarations.js +1 -1
  145. package/dist/collection/components/kup-qlik/kup-qlik.js +326 -326
  146. package/dist/collection/components/kup-radio/kup-radio-declarations.js +12 -12
  147. package/dist/collection/components/kup-radio/kup-radio.js +398 -398
  148. package/dist/collection/components/kup-rating/kup-rating-declarations.js +11 -11
  149. package/dist/collection/components/kup-rating/kup-rating.js +332 -332
  150. package/dist/collection/components/kup-snackbar/kup-snackbar-declarations.js +13 -13
  151. package/dist/collection/components/kup-snackbar/kup-snackbar.js +389 -389
  152. package/dist/collection/components/kup-spinner/kup-spinner-declarations.js +15 -15
  153. package/dist/collection/components/kup-spinner/kup-spinner.js +468 -468
  154. package/dist/collection/components/kup-state/kup-state.js +1 -1
  155. package/dist/collection/components/kup-state/kup-store.js +1 -1
  156. package/dist/collection/components/kup-state/mock-store.js +13 -13
  157. package/dist/collection/components/kup-switch/kup-switch-declarations.js +12 -12
  158. package/dist/collection/components/kup-switch/kup-switch.js +402 -402
  159. package/dist/collection/components/kup-tab-bar/kup-tab-bar-declarations.js +10 -10
  160. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +443 -443
  161. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +35 -35
  162. package/dist/collection/components/kup-text-field/kup-text-field.js +1193 -1189
  163. package/dist/collection/components/kup-time-picker/kup-time-picker-declarations.js +14 -14
  164. package/dist/collection/components/kup-time-picker/kup-time-picker.js +921 -921
  165. package/dist/collection/components/kup-tree/kup-tree-declarations.js +43 -43
  166. package/dist/collection/components/kup-tree/kup-tree-faker.js +305 -305
  167. package/dist/collection/components/kup-tree/kup-tree-state.js +15 -15
  168. package/dist/collection/components/kup-tree/kup-tree.js +2479 -2479
  169. package/dist/collection/f-components/f-button/f-button-declarations.js +17 -17
  170. package/dist/collection/f-components/f-button/f-button.js +91 -91
  171. package/dist/collection/f-components/f-cell/f-cell-declarations.js +158 -158
  172. package/dist/collection/f-components/f-cell/f-cell.js +429 -429
  173. package/dist/collection/f-components/f-checkbox/f-checkbox-declarations.js +1 -1
  174. package/dist/collection/f-components/f-checkbox/f-checkbox.js +16 -16
  175. package/dist/collection/f-components/f-chip/f-chip-declarations.js +15 -15
  176. package/dist/collection/f-components/f-chip/f-chip.js +101 -101
  177. package/dist/collection/f-components/f-image/f-image-declarations.js +8 -8
  178. package/dist/collection/f-components/f-image/f-image.js +100 -100
  179. package/dist/collection/f-components/f-paginator/f-paginator-declarations.js +5 -5
  180. package/dist/collection/f-components/f-paginator/f-paginator-utils.js +28 -28
  181. package/dist/collection/f-components/f-paginator/f-paginator.js +86 -86
  182. package/dist/collection/f-components/f-switch/f-switch-declarations.js +1 -1
  183. package/dist/collection/f-components/f-switch/f-switch.js +12 -12
  184. package/dist/collection/f-components/f-text-field/f-text-field-declarations.js +1 -1
  185. package/dist/collection/f-components/f-text-field/f-text-field-mdc.js +29 -29
  186. package/dist/collection/f-components/f-text-field/f-text-field.js +151 -151
  187. package/dist/collection/managers/kup-data/kup-data-cell-helper.js +86 -86
  188. package/dist/collection/managers/kup-data/kup-data-column-helper.js +300 -300
  189. package/dist/collection/managers/kup-data/kup-data-declarations.js +10 -10
  190. package/dist/collection/managers/kup-data/kup-data-node-helper.js +165 -165
  191. package/dist/collection/managers/kup-data/kup-data-row-helper.js +28 -28
  192. package/dist/collection/managers/kup-data/kup-data.js +499 -499
  193. package/dist/collection/managers/kup-dates/kup-dates-declarations.js +43 -43
  194. package/dist/collection/managers/kup-dates/kup-dates.js +654 -654
  195. package/dist/collection/managers/kup-debug/kup-debug-declarations.js +20 -20
  196. package/dist/collection/managers/kup-debug/kup-debug.js +670 -670
  197. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position-declarations.js +27 -27
  198. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +244 -244
  199. package/dist/collection/managers/kup-interact/kup-interact-declarations.js +49 -49
  200. package/dist/collection/managers/kup-interact/kup-interact.js +397 -397
  201. package/dist/collection/managers/kup-language/kup-language-declarations.js +211 -211
  202. package/dist/collection/managers/kup-language/kup-language.js +151 -151
  203. package/dist/collection/managers/kup-manager/kup-manager-declarations.js +1 -1
  204. package/dist/collection/managers/kup-manager/kup-manager.js +303 -303
  205. package/dist/collection/managers/kup-math/kup-math-declarations.js +13 -13
  206. package/dist/collection/managers/kup-math/kup-math-helper.js +39 -39
  207. package/dist/collection/managers/kup-math/kup-math.js +413 -413
  208. package/dist/collection/managers/kup-objects/kup-objects-declarations.js +1 -1
  209. package/dist/collection/managers/kup-objects/kup-objects.js +387 -387
  210. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +10 -10
  211. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +334 -334
  212. package/dist/collection/managers/kup-search/kup-search-declarations.js +1 -1
  213. package/dist/collection/managers/kup-search/kup-search.js +75 -75
  214. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +177 -177
  215. package/dist/collection/managers/kup-theme/kup-theme.js +715 -715
  216. package/dist/collection/managers/kup-toolbar/kup-toolbar-declarations.js +9 -9
  217. package/dist/collection/managers/kup-toolbar/kup-toolbar.js +111 -111
  218. package/dist/collection/managers/kup-tooltip/kup-tooltip-declarations.js +1 -1
  219. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +229 -229
  220. package/dist/collection/types/GenericTypes.js +54 -54
  221. package/dist/collection/utils/cell-utils.js +156 -156
  222. package/dist/collection/utils/filters/filters-column-menu.js +360 -360
  223. package/dist/collection/utils/filters/filters-declarations.js +25 -25
  224. package/dist/collection/utils/filters/filters-rows.js +238 -238
  225. package/dist/collection/utils/filters/filters-tree-items.js +117 -117
  226. package/dist/collection/utils/filters/filters.js +287 -287
  227. package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +20 -20
  228. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +751 -751
  229. package/dist/collection/utils/utils.js +84 -80
  230. package/dist/collection/variables/GenericVariables.js +4 -4
  231. package/dist/components/kup-accordion.js +355 -355
  232. package/dist/components/kup-autocomplete2.js +31799 -31760
  233. package/dist/components/kup-box2.js +1469 -1405
  234. package/dist/components/kup-calendar.js +9788 -10280
  235. package/dist/components/kup-card.js +1 -1
  236. package/dist/components/kup-cell.js +325 -325
  237. package/dist/components/kup-chart.js +1 -1
  238. package/dist/components/kup-checkbox.js +1 -1
  239. package/dist/components/kup-chip.js +1 -1
  240. package/dist/components/kup-color-picker.js +1 -1
  241. package/dist/components/kup-combobox.js +1 -1
  242. package/dist/components/kup-dash-list.js +276 -276
  243. package/dist/components/kup-dash2.js +220 -220
  244. package/dist/components/kup-dashboard.js +549 -549
  245. package/dist/components/kup-data-table.js +1 -1
  246. package/dist/components/kup-date-picker.js +1 -1
  247. package/dist/components/kup-dialog.js +1 -1
  248. package/dist/components/kup-drawer.js +295 -295
  249. package/dist/components/kup-dropdown-button.js +1 -1
  250. package/dist/components/kup-echart2.js +7312 -6765
  251. package/dist/components/kup-family-tree.js +604 -604
  252. package/dist/components/kup-form.js +1 -1
  253. package/dist/components/kup-gauge.js +1 -1
  254. package/dist/components/kup-grid2.js +251 -251
  255. package/dist/components/kup-iframe.js +249 -249
  256. package/dist/components/kup-image-list.js +407 -407
  257. package/dist/components/kup-image.js +1 -1
  258. package/dist/components/kup-lazy.js +344 -344
  259. package/dist/components/kup-list.js +1 -1
  260. package/dist/components/kup-magic-box.js +461 -461
  261. package/dist/components/kup-nav-bar.js +284 -284
  262. package/dist/components/kup-numeric-picker.js +529 -529
  263. package/dist/components/kup-photo-frame.js +300 -300
  264. package/dist/components/kup-planner.js +1342 -1189
  265. package/dist/components/kup-probe.js +399 -399
  266. package/dist/components/kup-progress-bar.js +1 -1
  267. package/dist/components/kup-qlik.js +296 -296
  268. package/dist/components/kup-radio.js +1 -1
  269. package/dist/components/kup-rating.js +1 -1
  270. package/dist/components/kup-snackbar.js +273 -273
  271. package/dist/components/kup-spinner.js +1 -1
  272. package/dist/components/kup-switch.js +1 -1
  273. package/dist/components/kup-tab-bar.js +1 -1
  274. package/dist/components/kup-text-field.js +1 -1
  275. package/dist/components/kup-time-picker.js +1 -1
  276. package/dist/components/kup-tree.js +1 -1
  277. package/dist/esm/{GenericVariables-665de00a.js → GenericVariables-6dfdd433.js} +3 -3
  278. package/dist/esm/{component-120651a0.js → component-e86c51ea.js} +81 -2
  279. package/dist/esm/{f-button-024f0cfe.js → f-button-c6a69f75.js} +99 -99
  280. package/dist/esm/{f-button-declarations-b1b4cac4.js → f-button-declarations-fd4965d1.js} +16 -16
  281. package/dist/esm/{f-cell-90240a8c.js → f-cell-5822ea68.js} +472 -472
  282. package/dist/esm/{f-checkbox-9b3f5f5b.js → f-checkbox-c15911de.js} +23 -23
  283. package/dist/esm/{f-chip-2238ad43.js → f-chip-f46a03f5.js} +125 -125
  284. package/dist/esm/{f-image-f2e9bf79.js → f-image-f57832fa.js} +107 -107
  285. package/dist/esm/{f-paginator-utils-8cb3c023.js → f-paginator-utils-bafc463d.js} +1548 -1548
  286. package/dist/esm/{f-text-field-d231982c.js → f-text-field-15850e05.js} +172 -172
  287. package/dist/esm/{f-text-field-mdc-cee583ea.js → f-text-field-mdc-a1b4a919.js} +27 -28
  288. package/dist/esm/{index-8bd38435.js → index-238342f2.js} +78 -24
  289. package/dist/esm/ketchup.js +4 -4
  290. package/dist/esm/kup-accordion.entry.js +199 -200
  291. package/dist/esm/kup-autocomplete_27.entry.js +17546 -17508
  292. package/dist/esm/kup-box.entry.js +1294 -1232
  293. package/dist/esm/kup-calendar.entry.js +9557 -10050
  294. package/dist/esm/kup-cell.entry.js +172 -172
  295. package/dist/esm/kup-dash-list.entry.js +106 -106
  296. package/dist/esm/kup-dash_2.entry.js +162 -162
  297. package/dist/esm/kup-dashboard.entry.js +400 -401
  298. package/dist/esm/kup-drawer.entry.js +138 -138
  299. package/dist/esm/kup-echart.entry.js +7145 -6598
  300. package/dist/esm/kup-family-tree.entry.js +439 -439
  301. package/dist/esm/kup-iframe.entry.js +94 -94
  302. package/dist/esm/kup-image-list.entry.js +255 -256
  303. package/dist/esm/kup-lazy.entry.js +186 -186
  304. package/dist/esm/kup-magic-box.entry.js +298 -298
  305. package/dist/esm/{kup-manager-d1da769e.js → kup-manager-89dd9137.js} +7287 -7287
  306. package/dist/esm/kup-nav-bar.entry.js +130 -130
  307. package/dist/esm/kup-numeric-picker.entry.js +367 -368
  308. package/dist/esm/kup-photo-frame.entry.js +144 -144
  309. package/dist/esm/kup-planner.entry.js +1151 -1009
  310. package/dist/esm/kup-probe.entry.js +246 -246
  311. package/dist/esm/kup-qlik.entry.js +138 -138
  312. package/dist/esm/kup-snackbar.entry.js +116 -116
  313. package/dist/esm/loader.js +4 -4
  314. package/dist/ketchup/ketchup.esm.js +1 -1
  315. package/dist/ketchup/{p-83435e6c.entry.js → p-01d44efe.entry.js} +1 -1
  316. package/dist/ketchup/{p-8b46e7ce.js → p-1a8a06de.js} +1 -1
  317. package/dist/ketchup/{p-eda7f130.js → p-206245c0.js} +1 -1
  318. package/dist/ketchup/p-4bd63e97.entry.js +25 -0
  319. package/dist/ketchup/{p-651d89c8.entry.js → p-4da77173.entry.js} +1 -1
  320. package/dist/ketchup/{p-e1f1e661.entry.js → p-514dcb7d.entry.js} +1 -1
  321. package/dist/ketchup/{p-37067ee6.entry.js → p-51573263.entry.js} +1 -1
  322. package/dist/ketchup/{p-9f9b6656.js → p-54248440.js} +1 -1
  323. package/dist/ketchup/{p-1ad628fb.entry.js → p-5dfa5c49.entry.js} +1 -1
  324. package/dist/ketchup/{p-10d84b1b.js → p-6507e9eb.js} +7 -6
  325. package/dist/ketchup/{p-410c102a.js → p-673bb93e.js} +1 -1
  326. package/dist/ketchup/{p-063d4c27.entry.js → p-688478e9.entry.js} +1 -1
  327. package/dist/ketchup/p-6a5d95df.entry.js +1 -0
  328. package/dist/ketchup/p-6ec8629e.js +30 -0
  329. package/dist/ketchup/{p-a84f1d24.entry.js → p-785e8d74.entry.js} +1 -1
  330. package/dist/ketchup/{p-43b67de4.entry.js → p-78cc5a2d.entry.js} +1 -1
  331. package/dist/ketchup/{p-c42b80c1.entry.js → p-799f7f10.entry.js} +1 -1
  332. package/dist/ketchup/p-7e757c27.entry.js +1 -0
  333. package/dist/ketchup/p-843253dd.entry.js +1 -0
  334. package/dist/ketchup/{p-0d7d59c7.entry.js → p-84d3f676.entry.js} +1 -1
  335. package/dist/ketchup/p-8c1edebd.js +2 -0
  336. package/dist/ketchup/{p-5f3680f2.js → p-a5f15864.js} +1 -1
  337. package/dist/ketchup/p-af7202ff.entry.js +1 -0
  338. package/dist/ketchup/{p-89743989.entry.js → p-ba959bb5.entry.js} +1 -1
  339. package/dist/ketchup/{p-39a55c47.js → p-c1931214.js} +1 -1
  340. package/dist/ketchup/{p-3cf64473.js → p-c354c5d0.js} +1 -1
  341. package/dist/ketchup/p-cd8512d9.entry.js +39 -0
  342. package/dist/ketchup/{p-3432ebaf.entry.js → p-d4f86197.entry.js} +2 -2
  343. package/dist/ketchup/{p-163b18b9.entry.js → p-e59c2bc0.entry.js} +1 -1
  344. package/dist/ketchup/{p-f876125d.entry.js → p-f2fda43b.entry.js} +1 -1
  345. package/dist/ketchup/p-f4b6aa3f.entry.js +1 -0
  346. package/dist/ketchup/p-f4f5170c.entry.js +1 -0
  347. package/dist/ketchup/{p-27a56c87.js → p-fb03f2f5.js} +2 -2
  348. package/dist/loader/index.d.ts +1 -1
  349. package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +20 -20
  350. package/dist/types/components/kup-accordion/kup-accordion.d.ts +80 -80
  351. package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +35 -35
  352. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +119 -119
  353. package/dist/types/components/kup-badge/kup-badge-declarations.d.ts +9 -9
  354. package/dist/types/components/kup-badge/kup-badge.d.ts +51 -51
  355. package/dist/types/components/kup-box/kup-box-declarations.d.ts +114 -113
  356. package/dist/types/components/kup-box/kup-box-state.d.ts +10 -10
  357. package/dist/types/components/kup-box/kup-box.d.ts +275 -270
  358. package/dist/types/components/kup-button/kup-button-declarations.d.ts +24 -24
  359. package/dist/types/components/kup-button/kup-button.d.ts +111 -111
  360. package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +24 -24
  361. package/dist/types/components/kup-button-list/kup-button-list.d.ts +82 -82
  362. package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +70 -70
  363. package/dist/types/components/kup-calendar/kup-calendar.d.ts +100 -100
  364. package/dist/types/components/kup-card/box/kup-card-box.d.ts +50 -50
  365. package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +39 -39
  366. package/dist/types/components/kup-card/built-in/kup-card-calendar.d.ts +2 -2
  367. package/dist/types/components/kup-card/built-in/kup-card-clock.d.ts +2 -2
  368. package/dist/types/components/kup-card/built-in/kup-card-column-drop-menu.d.ts +3 -3
  369. package/dist/types/components/kup-card/built-in/kup-card-message-box.d.ts +3 -3
  370. package/dist/types/components/kup-card/built-in/kup-card-numeric.d.ts +2 -2
  371. package/dist/types/components/kup-card/collapsible/kup-card-collapsible.d.ts +14 -14
  372. package/dist/types/components/kup-card/dialog/kup-card-dialog.d.ts +44 -44
  373. package/dist/types/components/kup-card/free/kup-card-free.d.ts +14 -14
  374. package/dist/types/components/kup-card/kup-card-declarations.d.ts +236 -236
  375. package/dist/types/components/kup-card/kup-card-helper.d.ts +27 -27
  376. package/dist/types/components/kup-card/kup-card.d.ts +159 -159
  377. package/dist/types/components/kup-card/scalable/kup-card-scalable.d.ts +56 -56
  378. package/dist/types/components/kup-card/standard/kup-card-standard.d.ts +92 -92
  379. package/dist/types/components/kup-cell/kup-cell-declarations.d.ts +10 -10
  380. package/dist/types/components/kup-cell/kup-cell.d.ts +67 -67
  381. package/dist/types/components/kup-chart/kup-chart-builder.d.ts +7 -7
  382. package/dist/types/components/kup-chart/kup-chart-declarations.d.ts +135 -135
  383. package/dist/types/components/kup-chart/kup-chart.d.ts +170 -170
  384. package/dist/types/components/kup-checkbox/kup-checkbox-declarations.d.ts +17 -17
  385. package/dist/types/components/kup-checkbox/kup-checkbox.d.ts +85 -85
  386. package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +22 -22
  387. package/dist/types/components/kup-chip/kup-chip.d.ts +89 -89
  388. package/dist/types/components/kup-color-picker/kup-color-picker-declarations.d.ts +15 -15
  389. package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +89 -89
  390. package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +24 -24
  391. package/dist/types/components/kup-combobox/kup-combobox.d.ts +95 -95
  392. package/dist/types/components/kup-dash/kup-dash.d.ts +33 -33
  393. package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +22 -22
  394. package/dist/types/components/kup-dashboard/kup-dashboard-declarations.d.ts +61 -61
  395. package/dist/types/components/kup-dashboard/kup-dashboard.d.ts +80 -80
  396. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +254 -254
  397. package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +25 -25
  398. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +36 -36
  399. package/dist/types/components/kup-data-table/kup-data-table.d.ts +444 -444
  400. package/dist/types/components/kup-date-picker/kup-date-picker-declarations.d.ts +20 -20
  401. package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +110 -110
  402. package/dist/types/components/kup-dialog/kup-dialog-declarations.d.ts +26 -26
  403. package/dist/types/components/kup-dialog/kup-dialog.d.ts +77 -77
  404. package/dist/types/components/kup-drawer/kup-drawer-declarations.d.ts +9 -9
  405. package/dist/types/components/kup-drawer/kup-drawer.d.ts +74 -74
  406. package/dist/types/components/kup-dropdown-button/kup-dropdown-button-declarations.d.ts +21 -21
  407. package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +161 -161
  408. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +62 -62
  409. package/dist/types/components/kup-echart/kup-echart.d.ts +111 -111
  410. package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +38 -38
  411. package/dist/types/components/kup-family-tree/kup-family-tree.d.ts +87 -87
  412. package/dist/types/components/kup-form/kup-form-declarations.d.ts +64 -64
  413. package/dist/types/components/kup-form/kup-form.d.ts +83 -83
  414. package/dist/types/components/kup-gauge/kup-gauge-declarations.d.ts +25 -25
  415. package/dist/types/components/kup-gauge/kup-gauge.d.ts +147 -147
  416. package/dist/types/components/kup-grid/kup-grid-declarations.d.ts +9 -9
  417. package/dist/types/components/kup-grid/kup-grid.d.ts +48 -48
  418. package/dist/types/components/kup-iframe/kup-iframe-declarations.d.ts +9 -9
  419. package/dist/types/components/kup-iframe/kup-iframe.d.ts +49 -49
  420. package/dist/types/components/kup-image/canvas/kup-image-canvas-declarations.d.ts +23 -23
  421. package/dist/types/components/kup-image/canvas/kup-image-canvas-helper.d.ts +2 -2
  422. package/dist/types/components/kup-image/canvas/kup-image-canvas.d.ts +28 -28
  423. package/dist/types/components/kup-image/kup-image-declarations.d.ts +19 -19
  424. package/dist/types/components/kup-image/kup-image.d.ts +103 -103
  425. package/dist/types/components/kup-image-list/kup-image-list-declarations.d.ts +14 -14
  426. package/dist/types/components/kup-image-list/kup-image-list-state.d.ts +6 -6
  427. package/dist/types/components/kup-image-list/kup-image-list.d.ts +73 -73
  428. package/dist/types/components/kup-lazy/kup-lazy-declarations.d.ts +18 -18
  429. package/dist/types/components/kup-lazy/kup-lazy.d.ts +78 -78
  430. package/dist/types/components/kup-list/kup-list-declarations.d.ts +48 -48
  431. package/dist/types/components/kup-list/kup-list-helper.d.ts +6 -6
  432. package/dist/types/components/kup-list/kup-list.d.ts +128 -128
  433. package/dist/types/components/kup-magic-box/kup-magic-box-declarations.d.ts +21 -21
  434. package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +65 -65
  435. package/dist/types/components/kup-nav-bar/kup-nav-bar-declarations.d.ts +19 -19
  436. package/dist/types/components/kup-nav-bar/kup-nav-bar.d.ts +65 -65
  437. package/dist/types/components/kup-numeric-picker/kup-numeric-picker-declarations.d.ts +19 -19
  438. package/dist/types/components/kup-numeric-picker/kup-numeric-picker.d.ts +121 -121
  439. package/dist/types/components/kup-photo-frame/kup-photo-frame-declarations.d.ts +9 -9
  440. package/dist/types/components/kup-photo-frame/kup-photo-frame.d.ts +61 -61
  441. package/dist/types/components/kup-planner/kup-planner-declarations.d.ts +127 -106
  442. package/dist/types/components/kup-planner/kup-planner-helper.d.ts +6 -6
  443. package/dist/types/components/kup-planner/kup-planner-state.d.ts +13 -0
  444. package/dist/types/components/kup-planner/kup-planner.d.ts +266 -212
  445. package/dist/types/components/kup-probe/kup-probe.d.ts +72 -72
  446. package/dist/types/components/kup-progress-bar/kup-progress-bar-declarations.d.ts +13 -13
  447. package/dist/types/components/kup-progress-bar/kup-progress-bar.d.ts +69 -69
  448. package/dist/types/components/kup-qlik/kup-qlik-declarations.d.ts +19 -19
  449. package/dist/types/components/kup-qlik/kup-qlik.d.ts +100 -100
  450. package/dist/types/components/kup-radio/kup-radio-declarations.d.ts +23 -23
  451. package/dist/types/components/kup-radio/kup-radio.d.ts +80 -80
  452. package/dist/types/components/kup-rating/kup-rating-declarations.d.ts +14 -14
  453. package/dist/types/components/kup-rating/kup-rating.d.ts +62 -62
  454. package/dist/types/components/kup-snackbar/kup-snackbar-declarations.d.ts +12 -12
  455. package/dist/types/components/kup-snackbar/kup-snackbar.d.ts +84 -84
  456. package/dist/types/components/kup-spinner/kup-spinner-declarations.d.ts +14 -14
  457. package/dist/types/components/kup-spinner/kup-spinner.d.ts +79 -79
  458. package/dist/types/components/kup-state/kup-state.d.ts +3 -3
  459. package/dist/types/components/kup-state/kup-store.d.ts +4 -4
  460. package/dist/types/components/kup-state/mock-store.d.ts +8 -8
  461. package/dist/types/components/kup-switch/kup-switch-declarations.d.ts +15 -15
  462. package/dist/types/components/kup-switch/kup-switch.d.ts +80 -80
  463. package/dist/types/components/kup-tab-bar/kup-tab-bar-declarations.d.ts +21 -21
  464. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +77 -77
  465. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +38 -38
  466. package/dist/types/components/kup-text-field/kup-text-field.d.ts +253 -253
  467. package/dist/types/components/kup-time-picker/kup-time-picker-declarations.d.ts +17 -17
  468. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +125 -125
  469. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +97 -97
  470. package/dist/types/components/kup-tree/kup-tree-faker.d.ts +54 -54
  471. package/dist/types/components/kup-tree/kup-tree-state.d.ts +14 -14
  472. package/dist/types/components/kup-tree/kup-tree.d.ts +362 -362
  473. package/dist/types/components.d.ts +98 -2
  474. package/dist/types/f-components/f-button/f-button-declarations.d.ts +41 -41
  475. package/dist/types/f-components/f-button/f-button.d.ts +3 -3
  476. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +162 -162
  477. package/dist/types/f-components/f-cell/f-cell.d.ts +3 -3
  478. package/dist/types/f-components/f-checkbox/f-checkbox-declarations.d.ts +15 -15
  479. package/dist/types/f-components/f-checkbox/f-checkbox.d.ts +3 -3
  480. package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +29 -29
  481. package/dist/types/f-components/f-chip/f-chip.d.ts +3 -3
  482. package/dist/types/f-components/f-image/f-image-declarations.d.ts +36 -36
  483. package/dist/types/f-components/f-image/f-image.d.ts +3 -3
  484. package/dist/types/f-components/f-paginator/f-paginator-declarations.d.ts +22 -22
  485. package/dist/types/f-components/f-paginator/f-paginator-utils.d.ts +2 -2
  486. package/dist/types/f-components/f-paginator/f-paginator.d.ts +3 -3
  487. package/dist/types/f-components/f-switch/f-switch-declarations.d.ts +14 -14
  488. package/dist/types/f-components/f-switch/f-switch.d.ts +3 -3
  489. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +42 -42
  490. package/dist/types/f-components/f-text-field/f-text-field-mdc.d.ts +6 -6
  491. package/dist/types/f-components/f-text-field/f-text-field.d.ts +3 -3
  492. package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +31 -31
  493. package/dist/types/managers/kup-data/kup-data-column-helper.d.ts +39 -39
  494. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +173 -173
  495. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +44 -44
  496. package/dist/types/managers/kup-data/kup-data-row-helper.d.ts +14 -14
  497. package/dist/types/managers/kup-data/kup-data.d.ts +86 -86
  498. package/dist/types/managers/kup-dates/kup-dates-declarations.d.ts +39 -39
  499. package/dist/types/managers/kup-dates/kup-dates.d.ts +207 -207
  500. package/dist/types/managers/kup-debug/kup-debug-declarations.d.ts +38 -38
  501. package/dist/types/managers/kup-debug/kup-debug.d.ts +95 -95
  502. package/dist/types/managers/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +50 -50
  503. package/dist/types/managers/kup-dynamic-position/kup-dynamic-position.d.ts +61 -61
  504. package/dist/types/managers/kup-interact/kup-interact-declarations.d.ts +128 -128
  505. package/dist/types/managers/kup-interact/kup-interact.d.ts +105 -105
  506. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +225 -225
  507. package/dist/types/managers/kup-language/kup-language.d.ts +52 -52
  508. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +162 -162
  509. package/dist/types/managers/kup-manager/kup-manager.d.ts +95 -95
  510. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +33 -33
  511. package/dist/types/managers/kup-math/kup-math-helper.d.ts +17 -17
  512. package/dist/types/managers/kup-math/kup-math.d.ts +147 -146
  513. package/dist/types/managers/kup-objects/kup-objects-declarations.d.ts +15 -15
  514. package/dist/types/managers/kup-objects/kup-objects.d.ts +210 -210
  515. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +28 -28
  516. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +62 -62
  517. package/dist/types/managers/kup-search/kup-search-declarations.d.ts +7 -7
  518. package/dist/types/managers/kup-search/kup-search.d.ts +20 -20
  519. package/dist/types/managers/kup-theme/kup-theme-declarations.d.ts +185 -185
  520. package/dist/types/managers/kup-theme/kup-theme.d.ts +127 -127
  521. package/dist/types/managers/kup-toolbar/kup-toolbar-declarations.d.ts +8 -8
  522. package/dist/types/managers/kup-toolbar/kup-toolbar.d.ts +39 -39
  523. package/dist/types/managers/kup-tooltip/kup-tooltip-declarations.d.ts +8 -8
  524. package/dist/types/managers/kup-tooltip/kup-tooltip.d.ts +51 -51
  525. package/dist/types/stencil-public-runtime.d.ts +1 -0
  526. package/dist/types/types/GenericTypes.d.ts +110 -110
  527. package/dist/types/utils/cell-utils.d.ts +10 -10
  528. package/dist/types/utils/filters/filters-column-menu.d.ts +96 -96
  529. package/dist/types/utils/filters/filters-declarations.d.ts +39 -39
  530. package/dist/types/utils/filters/filters-rows.d.ts +30 -30
  531. package/dist/types/utils/filters/filters-tree-items.d.ts +19 -19
  532. package/dist/types/utils/filters/filters.d.ts +72 -72
  533. package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +19 -19
  534. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +142 -142
  535. package/dist/types/utils/utils.d.ts +37 -35
  536. package/dist/types/variables/GenericVariables.d.ts +4 -4
  537. package/package.json +21 -16
  538. package/dist/cjs/tslib.es6-386654de.js +0 -87
  539. package/dist/esm/tslib.es6-8c2af864.js +0 -82
  540. package/dist/ketchup/p-0bcda0e2.entry.js +0 -1
  541. package/dist/ketchup/p-33aff1ca.entry.js +0 -25
  542. package/dist/ketchup/p-35b29b22.entry.js +0 -1
  543. package/dist/ketchup/p-36dac88e.js +0 -30
  544. package/dist/ketchup/p-489d55ff.entry.js +0 -39
  545. package/dist/ketchup/p-73c8d651.entry.js +0 -1
  546. package/dist/ketchup/p-7f59211b.js +0 -1
  547. package/dist/ketchup/p-9dcfbb1e.js +0 -2
  548. package/dist/ketchup/p-b2fd2dbf.entry.js +0 -1
  549. package/dist/ketchup/p-d1b050d0.entry.js +0 -27
  550. package/dist/ketchup/p-d6ea709e.entry.js +0 -1
  551. /package/dist/ketchup/{p-6c77a36c.js → p-0fd98ab4.js} +0 -0
  552. /package/dist/ketchup/{p-97e8ea42.js → p-ad2e21d2.js} +0 -0
@@ -2,89 +2,95 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1f177abc.js');
6
- const kupManager$1 = require('./kup-manager-85b2a756.js');
7
- const GenericVariables = require('./GenericVariables-a9ed17ee.js');
8
- const fTextField = require('./f-text-field-579c0fc0.js');
9
- const fTextFieldMdc = require('./f-text-field-mdc-0e22f3e3.js');
10
- require('./tslib.es6-386654de.js');
11
- require('./component-85c2bd4d.js');
12
-
13
- /**
14
- * Props of the kup-gantt component.
15
- * Used to export every prop in an object.
16
- */
17
- var KupPlannerProps;
18
- (function (KupPlannerProps) {
19
- KupPlannerProps["customStyle"] = "Custom style of the component.";
20
- KupPlannerProps["data"] = "Dataset containg the tasks list";
21
- KupPlannerProps["detailData"] = "Dataset containg the details list";
22
- KupPlannerProps["detailColorCol"] = "Column containing the detail color, in hex format";
23
- KupPlannerProps["detailColumns"] = "Columns containing informations displayed in the left box, near the gantt of details";
24
- KupPlannerProps["detailDates"] = "Columns containing detail duration, from (firstDate) to (secondDate)";
25
- KupPlannerProps["detailHeight"] = "Height for detail gantt";
26
- KupPlannerProps["detailIdCol"] = "Column containing unique detail identifier";
27
- KupPlannerProps["detailNameCol"] = "Column containing detail name displayed";
28
- KupPlannerProps["detailPrevDates"] = "Columns containing forecast detail duration, from (firstDate) to (secondDate)";
29
- KupPlannerProps["listCellWidth"] = "Total size of the cells inside to the left box, near the gantt";
30
- KupPlannerProps["maxWidth"] = "Max width for component";
31
- KupPlannerProps["phaseColorCol"] = "Column containing the phase color in hex format";
32
- KupPlannerProps["phaseColumns"] = "Columns containing informations displayed in the left box ,near the gantt of phases";
33
- KupPlannerProps["phaseColParDep"] = "Column containing the name of the parent phases";
34
- KupPlannerProps["phaseDates"] = "Columns containing phase duration, from (firstDate) to (secondDate)";
35
- KupPlannerProps["phaseIdCol"] = "Column containing unique phase identifier";
36
- KupPlannerProps["phaseNameCol"] = "Column containing phase name displayed";
37
- KupPlannerProps["phasePrevDates"] = "Columns containing forecast phase duration, from (firstDate) to (secondDate)";
38
- KupPlannerProps["showSecondaryDates"] = "Enable/disable display of secondary dates";
39
- KupPlannerProps["taskColumns"] = "Columns containing informations displayed in the left box, near the gantt";
40
- KupPlannerProps["taskDates"] = "Columns containing task duration, from (firstDate) to (secondDate)";
41
- KupPlannerProps["taskHeight"] = "Height for main gantt";
42
- KupPlannerProps["taskIdCol"] = "Column containing unique task identifier";
43
- KupPlannerProps["taskNameCol"] = "Column containing task name displayed";
44
- KupPlannerProps["taskPrevDates"] = "Columns containing forecast task duration, from (firstDate) to (secondDate)";
45
- KupPlannerProps["titleMess"] = "Message displayed on top";
46
- })(KupPlannerProps || (KupPlannerProps = {}));
47
- var KupPlannerTaskAction;
48
- (function (KupPlannerTaskAction) {
49
- KupPlannerTaskAction["onTaskOpening"] = "onTaskOpening";
50
- KupPlannerTaskAction["onTaskClosing"] = "onTaskClosing";
51
- KupPlannerTaskAction["onClick"] = "onClick";
52
- KupPlannerTaskAction["onResize"] = "onResize";
53
- KupPlannerTaskAction["onRightClick"] = "onRightClick";
54
- })(KupPlannerTaskAction || (KupPlannerTaskAction = {}));
55
- var KupPlannerGanttRowType;
56
- (function (KupPlannerGanttRowType) {
57
- KupPlannerGanttRowType["TASK"] = "task";
58
- KupPlannerGanttRowType["PHASE"] = "phase";
59
- KupPlannerGanttRowType["DETAIL"] = "detail";
60
- })(KupPlannerGanttRowType || (KupPlannerGanttRowType = {}));
61
- class KupPlannerLastOnChangeReceived {
62
- constructor(event, threshold = 100) {
63
- this.dateTime = new Date();
64
- this.event = event;
65
- this.threshold = threshold;
66
- }
67
- isEquivalent(newEvent) {
68
- const intervalTime = new Date().valueOf() - this.dateTime.valueOf();
69
- const equals = JSON.stringify(this.event) === JSON.stringify(newEvent);
70
- return equals && intervalTime < this.threshold;
71
- }
72
- resetDateTime() {
73
- this.dateTime = new Date();
74
- }
75
- }
76
- const defaultStylingOptions = {
77
- listCellWidth: '300px',
78
- rowHeight: 40,
79
- barFill: 90,
80
- projectProgressColor: '#CBCBCB',
81
- projectProgressSelectedColor: '#CBCBCB',
82
- projectBackgroundColor: '#CBCBCB',
83
- projectBackgroundSelectedColor: '#CBCBCB',
84
- barProgressColor: '#A2A415',
85
- barProgressSelectedColor: '#A2A415',
86
- barBackgroundColor: '#A2A415',
87
- barBackgroundSelectedColor: '#A2A415',
5
+ const index = require('./index-26fb8571.js');
6
+ const kupManager$1 = require('./kup-manager-16b684bd.js');
7
+ const GenericVariables = require('./GenericVariables-9cd88034.js');
8
+ const fTextField = require('./f-text-field-ddb47dda.js');
9
+ const fTextFieldMdc = require('./f-text-field-mdc-d38d80b5.js');
10
+ require('./component-2c7ddef7.js');
11
+
12
+ /**
13
+ * Props of the kup-gantt component.
14
+ * Used to export every prop in an object.
15
+ */
16
+ var KupPlannerProps;
17
+ (function (KupPlannerProps) {
18
+ KupPlannerProps["customStyle"] = "Custom style of the component.";
19
+ KupPlannerProps["data"] = "Dataset containg the tasks list";
20
+ KupPlannerProps["detailData"] = "Dataset containg the details list";
21
+ KupPlannerProps["detailColorCol"] = "Column containing the detail color, in hex format";
22
+ KupPlannerProps["detailColumns"] = "Columns containing informations displayed in the left box, near the gantt of details";
23
+ KupPlannerProps["detailDates"] = "Columns containing detail duration, from (firstDate) to (secondDate)";
24
+ KupPlannerProps["detailFilter"] = "Sets the detail's filter.";
25
+ KupPlannerProps["detailHeight"] = "Height for detail gantt";
26
+ KupPlannerProps["detailIdCol"] = "Column containing unique detail identifier";
27
+ KupPlannerProps["detailNameCol"] = "Column containing detail name displayed";
28
+ KupPlannerProps["detailPrevDates"] = "Columns containing forecast detail duration, from (firstDate) to (secondDate)";
29
+ KupPlannerProps["detailInitialScrollX"] = "Sets the initial scroll X for the detail.";
30
+ KupPlannerProps["detailInitialScrollY"] = "Sets the initial scroll Y for the detail.";
31
+ KupPlannerProps["listCellWidth"] = "Total size of the cells inside to the left box, near the gantt";
32
+ KupPlannerProps["maxWidth"] = "Max width for component";
33
+ KupPlannerProps["phaseColorCol"] = "Column containing the phase color in hex format";
34
+ KupPlannerProps["phaseColumns"] = "Columns containing informations displayed in the left box ,near the gantt of phases";
35
+ KupPlannerProps["phaseColParDep"] = "Column containing the name of the parent phases";
36
+ KupPlannerProps["phaseDates"] = "Columns containing phase duration, from (firstDate) to (secondDate)";
37
+ KupPlannerProps["phaseIdCol"] = "Column containing unique phase identifier";
38
+ KupPlannerProps["phaseNameCol"] = "Column containing phase name displayed";
39
+ KupPlannerProps["phasePrevDates"] = "Columns containing forecast phase duration, from (firstDate) to (secondDate)";
40
+ KupPlannerProps["readOnly"] = "When true, the two gantts are not interactable.";
41
+ KupPlannerProps["showSecondaryDates"] = "Enable/disable display of secondary dates";
42
+ KupPlannerProps["taskColumns"] = "Columns containing informations displayed in the left box, near the gantt";
43
+ KupPlannerProps["taskDates"] = "Columns containing task duration, from (firstDate) to (secondDate)";
44
+ KupPlannerProps["taskFilter"] = "Sets the task's filter.";
45
+ KupPlannerProps["taskHeight"] = "Height for main gantt";
46
+ KupPlannerProps["taskIdCol"] = "Column containing unique task identifier";
47
+ KupPlannerProps["taskNameCol"] = "Column containing task name displayed";
48
+ KupPlannerProps["taskPrevDates"] = "Columns containing forecast task duration, from (firstDate) to (secondDate)";
49
+ KupPlannerProps["taskInitialScrollX"] = "Sets the initial scroll X for the task.";
50
+ KupPlannerProps["taskInitialScrollY"] = "Sets the initial scroll Y for the task.";
51
+ KupPlannerProps["titleMess"] = "Message displayed on top";
52
+ })(KupPlannerProps || (KupPlannerProps = {}));
53
+ var KupPlannerTaskAction;
54
+ (function (KupPlannerTaskAction) {
55
+ KupPlannerTaskAction["onTaskOpening"] = "onTaskOpening";
56
+ KupPlannerTaskAction["onTaskClosing"] = "onTaskClosing";
57
+ KupPlannerTaskAction["onClick"] = "onClick";
58
+ KupPlannerTaskAction["onResize"] = "onResize";
59
+ KupPlannerTaskAction["onRightClick"] = "onRightClick";
60
+ })(KupPlannerTaskAction || (KupPlannerTaskAction = {}));
61
+ var KupPlannerGanttRowType;
62
+ (function (KupPlannerGanttRowType) {
63
+ KupPlannerGanttRowType["TASK"] = "task";
64
+ KupPlannerGanttRowType["PHASE"] = "phase";
65
+ KupPlannerGanttRowType["DETAIL"] = "detail";
66
+ })(KupPlannerGanttRowType || (KupPlannerGanttRowType = {}));
67
+ class KupPlannerLastOnChangeReceived {
68
+ constructor(event, threshold = 100) {
69
+ this.dateTime = new Date();
70
+ this.event = event;
71
+ this.threshold = threshold;
72
+ }
73
+ isEquivalent(newEvent) {
74
+ const intervalTime = new Date().valueOf() - this.dateTime.valueOf();
75
+ const equals = JSON.stringify(this.event) === JSON.stringify(newEvent);
76
+ return equals && intervalTime < this.threshold;
77
+ }
78
+ resetDateTime() {
79
+ this.dateTime = new Date();
80
+ }
81
+ }
82
+ const defaultStylingOptions = {
83
+ listCellWidth: '300px',
84
+ rowHeight: 40,
85
+ barFill: 90,
86
+ projectProgressColor: '#CBCBCB',
87
+ projectProgressSelectedColor: '#CBCBCB',
88
+ projectBackgroundColor: '#CBCBCB',
89
+ projectBackgroundSelectedColor: '#CBCBCB',
90
+ barProgressColor: '#A2A415',
91
+ barProgressSelectedColor: '#A2A415',
92
+ barBackgroundColor: '#A2A415',
93
+ barBackgroundSelectedColor: '#A2A415',
88
94
  };
89
95
 
90
96
  /**
@@ -8958,25 +8964,6 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
8958
8964
  }
8959
8965
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8960
8966
  }
8961
-
8962
- var ViewMode;
8963
- (function (ViewMode) {
8964
- ViewMode["Hour"] = "Hour";
8965
- ViewMode["QuarterDay"] = "Quarter Day";
8966
- ViewMode["HalfDay"] = "Half Day";
8967
- ViewMode["Day"] = "Day";
8968
- ViewMode["Week"] = "Week";
8969
- ViewMode["Month"] = "Month";
8970
- ViewMode["Year"] = "Year";
8971
- })(ViewMode || (ViewMode = {}));
8972
-
8973
- var TimeUnit;
8974
- (function (TimeUnit) {
8975
- TimeUnit["DAY"] = "days";
8976
- TimeUnit["WEEK"] = "weeks";
8977
- TimeUnit["MONTH"] = "months";
8978
- TimeUnit["YEAR"] = "YEAR";
8979
- })(TimeUnit || (TimeUnit = {}));
8980
8967
  var parseToDayStart = function parseToDayStart(ymd) {
8981
8968
  return luxon.DateTime.fromISO(ymd).toJSDate();
8982
8969
  };
@@ -9005,211 +8992,6 @@ function validDates(startDate, endDate, _name) {
9005
8992
  };
9006
8993
  }
9007
8994
 
9008
- var MAIN_GANTT_ID = "main";
9009
- var SECONDARY_GANTT_ID = "secondary";
9010
- var toViewMode = function toViewMode(timeUnit) {
9011
- switch (timeUnit) {
9012
- case TimeUnit.DAY:
9013
- return ViewMode.Day;
9014
- case TimeUnit.WEEK:
9015
- return ViewMode.Week;
9016
- case TimeUnit.MONTH:
9017
- return ViewMode.Month;
9018
- case TimeUnit.YEAR:
9019
- return ViewMode.Year;
9020
- }
9021
- };
9022
- var columnWidthForTimeUnit = function columnWidthForTimeUnit(timeUnit) {
9023
- switch (timeUnit) {
9024
- case TimeUnit.YEAR:
9025
- return 60 * 2;
9026
- default:
9027
- return 60;
9028
- }
9029
- };
9030
- var convertPhaseToTask = function convertPhaseToTask(item) {
9031
- var mapPhase = function mapPhase(_ref) {
9032
- var phaseStart = _ref.startDate,
9033
- phaseEnd = _ref.endDate,
9034
- secondaryStartDate = _ref.secondaryStartDate,
9035
- secondaryEndDate = _ref.secondaryEndDate,
9036
- phaseName = _ref.name,
9037
- phaseId = _ref.id,
9038
- color = _ref.color,
9039
- selectedColor = _ref.selectedColor,
9040
- dependencies = _ref.dependencies,
9041
- icon = _ref.icon;
9042
- var _validDates = validDates(phaseStart, phaseEnd),
9043
- start = _validDates.start,
9044
- end = _validDates.end;
9045
- var _validDates2 = validDates(secondaryStartDate, secondaryEndDate),
9046
- phaseStart2 = _validDates2.start,
9047
- phaseEnd2 = _validDates2.end;
9048
- return {
9049
- start: start,
9050
- end: end,
9051
- secondaryStart: phaseStart2,
9052
- secondaryEnd: phaseEnd2,
9053
- name: phaseName,
9054
- valuesToShow: item.valuesToShow,
9055
- id: phaseId,
9056
- type: "task",
9057
- progress: 100,
9058
- dependencies: dependencies,
9059
- styles: color ? {
9060
- backgroundColor: color,
9061
- progressColor: color,
9062
- backgroundSelectedColor: selectedColor,
9063
- progressSelectedColor: selectedColor
9064
- } : {},
9065
- icon: icon
9066
- };
9067
- };
9068
- return mapPhase(item);
9069
- };
9070
- var convertDetailToTimeline = function convertDetailToTimeline(item, mainGanttStartDate, mainGanttEndDate) {
9071
- var id = item.id,
9072
- name = item.name,
9073
- schedule = item.schedule;
9074
- var getDatesForTask = function getDatesForTask(item) {
9075
- var start = mainGanttStartDate != null ? mainGanttStartDate : "";
9076
- var end = mainGanttEndDate != null ? mainGanttEndDate : "";
9077
- for (var i = 0; i < item.schedule.length; i++) {
9078
- var lstart = item.schedule[i].startDate;
9079
- var lend = item.schedule[i].endDate;
9080
- if (!start || lstart.localeCompare(start) < 0) {
9081
- start = lstart;
9082
- }
9083
- if (!end || lend.localeCompare(end) > 0) {
9084
- end = lend;
9085
- }
9086
- }
9087
- return validDates(start, end);
9088
- };
9089
- var _getDatesForTask = getDatesForTask(item),
9090
- start = _getDatesForTask.start,
9091
- end = _getDatesForTask.end;
9092
- var convertToFrame = function convertToFrame(x) {
9093
- var startDate = x.startDate,
9094
- endDate = x.endDate,
9095
- color = x.color,
9096
- selectedColor = x.selectedColor,
9097
- icon = x.icon;
9098
- var _validDates3 = validDates(startDate, endDate),
9099
- start = _validDates3.start,
9100
- end = _validDates3.end;
9101
- return {
9102
- start: start,
9103
- end: end,
9104
- backgroundColor: color != null ? color : "0xffffff",
9105
- backgroundSelectedColor: selectedColor != null ? selectedColor : color,
9106
- icon: icon
9107
- };
9108
- };
9109
- var defaultColor = "#595959";
9110
- return {
9111
- id: id,
9112
- type: "timeline",
9113
- timeline: schedule.map(convertToFrame),
9114
- name: name,
9115
- valuesToShow: item.valuesToShow,
9116
- start: start,
9117
- end: end,
9118
- progress: 100,
9119
- styles: {
9120
- backgroundColor: defaultColor,
9121
- progressColor: defaultColor,
9122
- backgroundSelectedColor: defaultColor,
9123
- progressSelectedColor: defaultColor
9124
- }
9125
- };
9126
- };
9127
- var isDetail = function isDetail(row) {
9128
- return row && row.schedule && row.schedule.length !== 0;
9129
- };
9130
- var convertProjectToTasks = function convertProjectToTasks(item, mainGanttStartDate, mainGanttEndDate) {
9131
- if (!isDetail(item)) {
9132
- var _row$phases;
9133
- var row = item;
9134
- var _validDates4 = validDates(row.startDate, row.endDate),
9135
- start = _validDates4.start,
9136
- end = _validDates4.end;
9137
- var _validDates5 = validDates(row.secondaryStartDate, row.secondaryEndDate),
9138
- start2 = _validDates5.start,
9139
- end2 = _validDates5.end;
9140
- var mainTask = {
9141
- start: start,
9142
- end: end,
9143
- id: row.id,
9144
- name: row.name,
9145
- type: row.type,
9146
- valuesToShow: row.valuesToShow,
9147
- secondaryStart: start2,
9148
- secondaryEnd: end2,
9149
- progress: 100,
9150
- isDisabled: false,
9151
- hideChildren: false,
9152
- icon: row.icon
9153
- };
9154
- var children1 = ((_row$phases = row.phases) != null ? _row$phases : []).map(convertPhaseToTask);
9155
- return [mainTask].concat(children1);
9156
- } else {
9157
- var _row = item;
9158
- return [_extends({}, convertDetailToTimeline(_row, mainGanttStartDate, mainGanttEndDate))];
9159
- }
9160
- };
9161
- var mergeTaskIntoProjects = function mergeTaskIntoProjects(projects, _ref2) {
9162
- var id = _ref2.id,
9163
- start = _ref2.start,
9164
- end = _ref2.end;
9165
- return projects.map(function (project) {
9166
- return project.id === id ? withNewDates(project, start, end) : project;
9167
- });
9168
- };
9169
- var mergeTaskIntoPhases = function mergeTaskIntoPhases(phases, _ref3) {
9170
- var id = _ref3.id,
9171
- start = _ref3.start,
9172
- end = _ref3.end;
9173
- if (phases) {
9174
- return phases.map(function (phase) {
9175
- return phase.id === id ? withNewDates(phase, start, end) : phase;
9176
- });
9177
- }
9178
- return undefined;
9179
- };
9180
- var withNewDates = function withNewDates(p, start, end) {
9181
- var startDate = formatToIsoDate(start);
9182
- var endDate = formatToIsoDate(end);
9183
- var extra = {
9184
- startDate: startDate,
9185
- endDate: endDate
9186
- };
9187
- return _extends({}, p, extra);
9188
- };
9189
- var getProjectById = function getProjectById(id, items) {
9190
- for (var i = 0; i < items.length; i++) {
9191
- if (items[i].id === id) {
9192
- return items[i];
9193
- }
9194
- }
9195
- return undefined;
9196
- };
9197
- var getPhaseById = function getPhaseById(id, items) {
9198
- for (var i = 0; i < items.length; i++) {
9199
- if (isDetail(items[i])) {
9200
- continue;
9201
- }
9202
- var item = items[i];
9203
- if (!item.phases) {
9204
- continue;
9205
- }
9206
- for (var j = 0; j < item.phases.length; j++) if (item.phases[j].id === id) {
9207
- return item.phases[j];
9208
- }
9209
- }
9210
- return undefined;
9211
- };
9212
-
9213
8995
  var intlDTCache = {};
9214
8996
  var getCachedDateTimeFormat = function getCachedDateTimeFormat(locString, opts) {
9215
8997
  if (opts === void 0) {
@@ -9257,9 +9039,9 @@ var ganttDateRangeFromTask = function ganttDateRangeFromTask(tasks, viewMode, pr
9257
9039
  return ganttDateRangeGeneric(dates, viewMode, preStepsCount, showSecondaryDates);
9258
9040
  };
9259
9041
  var calculateDisplayedDateRange = function calculateDisplayedDateRange(mainGanttItems, timeUnit, mainGanttDoubleView, secondaryGanttItems, preStepsCount) {
9260
- var dates = ganttDateRangeFromGanttTask(mainGanttItems, toViewMode(timeUnit), preStepsCount != null ? preStepsCount : 1, mainGanttDoubleView);
9042
+ var dates = ganttDateRangeFromGanttTask(mainGanttItems, timeUnit, preStepsCount != null ? preStepsCount : 1, mainGanttDoubleView);
9261
9043
  if (secondaryGanttItems) {
9262
- var dates2 = ganttDateRangeFromDetail(secondaryGanttItems, toViewMode(timeUnit), preStepsCount != null ? preStepsCount : 1, mainGanttDoubleView);
9044
+ var dates2 = ganttDateRangeFromDetail(secondaryGanttItems, timeUnit, preStepsCount != null ? preStepsCount : 1, mainGanttDoubleView);
9263
9045
  if (dates2[0] < dates[0]) {
9264
9046
  dates[0] = dates2[0];
9265
9047
  }
@@ -9334,48 +9116,30 @@ var ganttDateRangeGeneric = function ganttDateRangeGeneric(dates, viewMode, preS
9334
9116
  return [newStartDate, newEndDate];
9335
9117
  }
9336
9118
  switch (viewMode) {
9337
- case ViewMode.Year:
9119
+ case "year":
9338
9120
  newStartDate = addToDate(newStartDate, -1, "year");
9339
9121
  newStartDate = startOfDate(newStartDate, "year");
9340
9122
  newEndDate = addToDate(newEndDate, 1, "year");
9341
9123
  newEndDate = startOfDate(newEndDate, "year");
9342
9124
  break;
9343
- case ViewMode.Month:
9125
+ case "month":
9344
9126
  newStartDate = addToDate(newStartDate, -1 * preStepsCount, "month");
9345
9127
  newStartDate = startOfDate(newStartDate, "month");
9346
9128
  newEndDate = addToDate(newEndDate, 1, "year");
9347
9129
  newEndDate = startOfDate(newEndDate, "year");
9348
9130
  break;
9349
- case ViewMode.Week:
9131
+ case "week":
9350
9132
  newStartDate = startOfDate(newStartDate, "day");
9351
9133
  newStartDate = addToDate(getMonday(newStartDate), -7 * preStepsCount, "day");
9352
9134
  newEndDate = startOfDate(newEndDate, "day");
9353
9135
  newEndDate = addToDate(newEndDate, 1.5, "month");
9354
9136
  break;
9355
- case ViewMode.Day:
9137
+ case "day":
9356
9138
  newStartDate = startOfDate(newStartDate, "day");
9357
9139
  newStartDate = addToDate(newStartDate, -1 * preStepsCount, "day");
9358
9140
  newEndDate = startOfDate(newEndDate, "day");
9359
9141
  newEndDate = addToDate(newEndDate, 19, "day");
9360
9142
  break;
9361
- case ViewMode.QuarterDay:
9362
- newStartDate = startOfDate(newStartDate, "day");
9363
- newStartDate = addToDate(newStartDate, -1 * preStepsCount, "day");
9364
- newEndDate = startOfDate(newEndDate, "day");
9365
- newEndDate = addToDate(newEndDate, 66, "hour");
9366
- break;
9367
- case ViewMode.HalfDay:
9368
- newStartDate = startOfDate(newStartDate, "day");
9369
- newStartDate = addToDate(newStartDate, -1 * preStepsCount, "day");
9370
- newEndDate = startOfDate(newEndDate, "day");
9371
- newEndDate = addToDate(newEndDate, 108, "hour");
9372
- break;
9373
- case ViewMode.Hour:
9374
- newStartDate = startOfDate(newStartDate, "hour");
9375
- newStartDate = addToDate(newStartDate, -1 * preStepsCount, "hour");
9376
- newEndDate = startOfDate(newEndDate, "day");
9377
- newEndDate = addToDate(newEndDate, 1, "day");
9378
- break;
9379
9143
  }
9380
9144
  return [newStartDate, newEndDate];
9381
9145
  };
@@ -9384,27 +9148,18 @@ var seedDates = function seedDates(startDate, endDate, viewMode) {
9384
9148
  var dates = [currentDate];
9385
9149
  while (currentDate < endDate) {
9386
9150
  switch (viewMode) {
9387
- case ViewMode.Year:
9151
+ case "year":
9388
9152
  currentDate = addToDate(currentDate, 1, "year");
9389
9153
  break;
9390
- case ViewMode.Month:
9154
+ case "month":
9391
9155
  currentDate = addToDate(currentDate, 1, "month");
9392
9156
  break;
9393
- case ViewMode.Week:
9157
+ case "week":
9394
9158
  currentDate = addToDate(currentDate, 7, "day");
9395
9159
  break;
9396
- case ViewMode.Day:
9160
+ case "day":
9397
9161
  currentDate = addToDate(currentDate, 1, "day");
9398
9162
  break;
9399
- case ViewMode.HalfDay:
9400
- currentDate = addToDate(currentDate, 12, "hour");
9401
- break;
9402
- case ViewMode.QuarterDay:
9403
- currentDate = addToDate(currentDate, 6, "hour");
9404
- break;
9405
- case ViewMode.Hour:
9406
- currentDate = addToDate(currentDate, 1, "hour");
9407
- break;
9408
9163
  }
9409
9164
  dates.push(currentDate);
9410
9165
  }
@@ -9706,6 +9461,15 @@ var VerticalScroll = function VerticalScroll(_ref) {
9706
9461
  rtl = _ref.rtl,
9707
9462
  onScroll = _ref.onScroll;
9708
9463
  var scrollRef = react.useRef(null);
9464
+ react.useEffect(function () {
9465
+ if (scrollRef.current) {
9466
+ var wrap = scrollRef.current;
9467
+ var setScrollTop = function setScrollTop() {
9468
+ wrap.scrollTop = scroll;
9469
+ };
9470
+ setTimeout(setScrollTop, 250);
9471
+ }
9472
+ }, []);
9709
9473
  react.useEffect(function () {
9710
9474
  if (scrollRef.current) {
9711
9475
  scrollRef.current.scrollTop = scroll;
@@ -9748,12 +9512,12 @@ var TaskList = function TaskList(_ref) {
9748
9512
  TaskListHeader = _ref.TaskListHeader,
9749
9513
  TaskListTable = _ref.TaskListTable,
9750
9514
  filter = _ref.filter;
9751
- var horizontalContainerRef = react.useRef(null);
9515
+ var horizontalContainerRef = react.createRef();
9752
9516
  react.useEffect(function () {
9753
9517
  if (horizontalContainerRef.current) {
9754
9518
  horizontalContainerRef.current.scrollTop = scrollY;
9755
9519
  }
9756
- }, [scrollY]);
9520
+ }, [horizontalContainerRef, scrollY]);
9757
9521
  var headerProps = {
9758
9522
  headerHeight: headerHeight,
9759
9523
  fontFamily: fontFamily,
@@ -9909,10 +9673,9 @@ var SinglePartOfCalendar = function SinglePartOfCalendar(_ref) {
9909
9673
  };
9910
9674
 
9911
9675
  var Calendar = function Calendar(_ref) {
9912
- var _dateTimeFormatters$y, _dateTimeFormatters$m, _dateTimeFormatters$m2, _dateTimeFormatters$w, _dateTimeFormatters$d, _dateTimeFormatters$h, _dateTimeFormatters$d2, _getters;
9676
+ var _dateTimeFormatters$y, _dateTimeFormatters$m, _dateTimeFormatters$m2, _dateTimeFormatters$w, _dateTimeFormatters$d;
9913
9677
  var dateSetup = _ref.dateSetup,
9914
9678
  locale = _ref.locale,
9915
- viewMode = _ref.viewMode,
9916
9679
  rtl = _ref.rtl,
9917
9680
  headerHeight = _ref.headerHeight,
9918
9681
  columnWidth = _ref.columnWidth,
@@ -9922,15 +9685,13 @@ var Calendar = function Calendar(_ref) {
9922
9685
  _ref$singleLineHeader = _ref.singleLineHeader,
9923
9686
  singleLineHeader = _ref$singleLineHeader === void 0 ? false : _ref$singleLineHeader,
9924
9687
  currentDateIndicator = _ref.currentDateIndicator;
9925
- var simplifiedHeader = singleLineHeader && dateSetup.viewMode !== ViewMode.Year;
9688
+ var simplifiedHeader = singleLineHeader && dateSetup.viewMode !== "year";
9926
9689
  var TopCal = simplifiedHeader ? SinglePartOfCalendar : TopPartOfCalendar;
9927
9690
  var formatYear = (_dateTimeFormatters$y = dateTimeFormatters === null || dateTimeFormatters === void 0 ? void 0 : dateTimeFormatters.year) != null ? _dateTimeFormatters$y : defaultDateTimeFormatters.year;
9928
9691
  var formatMonth = (_dateTimeFormatters$m = dateTimeFormatters === null || dateTimeFormatters === void 0 ? void 0 : dateTimeFormatters.month) != null ? _dateTimeFormatters$m : defaultDateTimeFormatters.month;
9929
9692
  var formatMonthAndYear = (_dateTimeFormatters$m2 = dateTimeFormatters === null || dateTimeFormatters === void 0 ? void 0 : dateTimeFormatters.monthAndYear) != null ? _dateTimeFormatters$m2 : defaultDateTimeFormatters.monthAndYear;
9930
9693
  var formatWeek = (_dateTimeFormatters$w = dateTimeFormatters === null || dateTimeFormatters === void 0 ? void 0 : dateTimeFormatters.week) != null ? _dateTimeFormatters$w : defaultDateTimeFormatters.week;
9931
9694
  var formatDay = (_dateTimeFormatters$d = dateTimeFormatters === null || dateTimeFormatters === void 0 ? void 0 : dateTimeFormatters.day) != null ? _dateTimeFormatters$d : defaultDateTimeFormatters.day;
9932
- var formatHour = (_dateTimeFormatters$h = dateTimeFormatters === null || dateTimeFormatters === void 0 ? void 0 : dateTimeFormatters.hour) != null ? _dateTimeFormatters$h : defaultDateTimeFormatters.hour;
9933
- var formatDayAndMonth = (_dateTimeFormatters$d2 = dateTimeFormatters === null || dateTimeFormatters === void 0 ? void 0 : dateTimeFormatters.dayAndMonth) != null ? _dateTimeFormatters$d2 : defaultDateTimeFormatters.dayAndMonth;
9934
9695
  var getCalendarValuesForYear = function getCalendarValuesForYear() {
9935
9696
  var topValues = [];
9936
9697
  var bottomValues = [];
@@ -10065,70 +9826,12 @@ var Calendar = function Calendar(_ref) {
10065
9826
  }
10066
9827
  return [topValues, bottomValues];
10067
9828
  };
10068
- var getCalendarValuesForPartOfDay = function getCalendarValuesForPartOfDay() {
10069
- var topValues = [];
10070
- var bottomValues = [];
10071
- var ticks = viewMode === ViewMode.HalfDay ? 2 : 4;
10072
- var topDefaultHeight = headerHeight * 0.5;
10073
- var dates = dateSetup.dates;
10074
- for (var i = 0; i < dates.length; i++) {
10075
- var date = dates[i];
10076
- var bottomValue = formatHour(date, locale);
10077
- bottomValues.push(react.createElement("text", {
10078
- key: date.getTime(),
10079
- y: headerHeight * 0.8,
10080
- x: columnWidth * (i + +rtl),
10081
- className: styles$5.calendarBottomText,
10082
- fontFamily: fontFamily
10083
- }, bottomValue));
10084
- if (i === 0 || date.getDate() !== dates[i - 1].getDate()) {
10085
- var topValue = formatDayAndMonth(date, locale);
10086
- topValues.push(react.createElement(TopCal, {
10087
- key: date.toISOString(),
10088
- value: topValue,
10089
- x1Line: columnWidth * i + ticks * columnWidth,
10090
- y1Line: 0,
10091
- y2Line: topDefaultHeight,
10092
- xText: columnWidth * i + ticks * columnWidth * 0.5,
10093
- yText: topDefaultHeight * 0.9
10094
- }));
10095
- }
10096
- }
10097
- return [topValues, bottomValues];
9829
+ var getters = {
9830
+ year: getCalendarValuesForYear,
9831
+ month: getCalendarValuesForMonth,
9832
+ week: getCalendarValuesForWeek,
9833
+ day: getCalendarValuesForDay
10098
9834
  };
10099
- var getCalendarValuesForHour = function getCalendarValuesForHour() {
10100
- var topValues = [];
10101
- var bottomValues = [];
10102
- var topDefaultHeight = headerHeight * 0.5;
10103
- var dates = dateSetup.dates;
10104
- for (var i = 0; i < dates.length; i++) {
10105
- var date = dates[i];
10106
- var bottomValue = formatHour(date, locale);
10107
- bottomValues.push(react.createElement("text", {
10108
- key: date.getTime(),
10109
- y: headerHeight * 0.8,
10110
- x: columnWidth * (i + +rtl),
10111
- className: styles$5.calendarBottomText,
10112
- fontFamily: fontFamily
10113
- }, bottomValue));
10114
- if (i !== 0 && date.getDate() !== dates[i - 1].getDate()) {
10115
- var displayDate = dates[i - 1];
10116
- var topValue = formatDayAndMonth(date, locale);
10117
- var topPosition = (date.getHours() - 24) / 2;
10118
- topValues.push(react.createElement(TopCal, {
10119
- key: topValue + displayDate.getFullYear(),
10120
- value: topValue,
10121
- x1Line: columnWidth * i,
10122
- y1Line: 0,
10123
- y2Line: topDefaultHeight,
10124
- xText: columnWidth * (i + topPosition),
10125
- yText: topDefaultHeight * 0.9
10126
- }));
10127
- }
10128
- }
10129
- return [topValues, bottomValues];
10130
- };
10131
- var getters = (_getters = {}, _getters[ViewMode.Year] = getCalendarValuesForYear, _getters[ViewMode.Month] = getCalendarValuesForMonth, _getters[ViewMode.Week] = getCalendarValuesForWeek, _getters[ViewMode.Day] = getCalendarValuesForDay, _getters[ViewMode.QuarterDay] = getCalendarValuesForPartOfDay, _getters[ViewMode.HalfDay] = getCalendarValuesForPartOfDay, _getters[ViewMode.Hour] = getCalendarValuesForHour, _getters);
10132
9835
  var _getters$dateSetup$vi = getters[dateSetup.viewMode](),
10133
9836
  topValues = _getters$dateSetup$vi[0],
10134
9837
  bottomValues = _getters$dateSetup$vi[1];
@@ -10997,6 +10700,7 @@ var TaskGanttContent = function TaskGanttContent(_ref) {
10997
10700
  showSecondaryDates = _ref$showSecondaryDat === void 0 ? false : _ref$showSecondaryDat,
10998
10701
  currentDateIndicator = _ref.currentDateIndicator,
10999
10702
  projection = _ref.projection,
10703
+ readOnly = _ref.readOnly,
11000
10704
  setGanttEvent = _ref.setGanttEvent,
11001
10705
  setFailedTask = _ref.setFailedTask,
11002
10706
  setSelectedTask = _ref.setSelectedTask,
@@ -11113,6 +10817,9 @@ var TaskGanttContent = function TaskGanttContent(_ref) {
11113
10817
  }
11114
10818
  }, [ganttEvent, xStep, initEventX1Delta, onProgressChange, timeStep, onDateChange, svg, isMoving, point, rtl, setFailedTask, setGanttEvent]);
11115
10819
  var hasMovedHorizontally = function hasMovedHorizontally(event) {
10820
+ if (readOnly) {
10821
+ return false;
10822
+ }
11116
10823
  return initEventXClick !== (event === null || event === void 0 ? void 0 : event.clientX);
11117
10824
  };
11118
10825
  var handleBarEventStart = function handleBarEventStart(action, task, event) {
@@ -11164,8 +10871,8 @@ var TaskGanttContent = function TaskGanttContent(_ref) {
11164
10871
  } else if (action === "dblclick") {
11165
10872
  !!onDoubleClick && onDoubleClick(task);
11166
10873
  } else if (action === "click") {
11167
- var skipClick = !hasMovedHorizontally(event);
11168
- skipClick && !!onClick && onClick(task);
10874
+ var skipClick = hasMovedHorizontally(event);
10875
+ !skipClick && !!onClick && onClick(task);
11169
10876
  } else if (action === "contextmenu") {
11170
10877
  event.preventDefault();
11171
10878
  !!onContextMenu && onContextMenu(event, task);
@@ -11235,9 +10942,9 @@ var TaskGanttContent = function TaskGanttContent(_ref) {
11235
10942
  task: task,
11236
10943
  arrowIndent: arrowIndent,
11237
10944
  taskHeight: taskHeight,
11238
- isProgressChangeable: !!onProgressChange && !task.isDisabled,
11239
- isDateMovable: !!onDateChange && !task.isDisabled,
11240
- isDateResizable: !!onDateChange && !task.isDisabled && !forbidResize,
10945
+ isProgressChangeable: !readOnly && !!onProgressChange && !task.isDisabled,
10946
+ isDateMovable: !readOnly && !!onDateChange && !task.isDisabled,
10947
+ isDateResizable: !readOnly && !!onDateChange && !task.isDisabled && !forbidResize,
11241
10948
  isDelete: !task.isDisabled,
11242
10949
  onEventStart: handleBarEventStart,
11243
10950
  key: task.id,
@@ -11260,8 +10967,8 @@ var TaskGantt = function TaskGantt(_ref) {
11260
10967
  scrollY = _ref.scrollY,
11261
10968
  scrollX = _ref.scrollX;
11262
10969
  var ganttSVGRef = react.useRef(null);
11263
- var horizontalContainerRef = react.useRef(null);
11264
- var verticalGanttContainerRef = react.useRef(null);
10970
+ var horizontalContainerRef = react.createRef();
10971
+ var verticalGanttContainerRef = react.createRef();
11265
10972
  var newBarProps = _extends({}, barProps, {
11266
10973
  svg: ganttSVGRef
11267
10974
  });
@@ -11269,12 +10976,12 @@ var TaskGantt = function TaskGantt(_ref) {
11269
10976
  if (horizontalContainerRef.current) {
11270
10977
  horizontalContainerRef.current.scrollTop = scrollY;
11271
10978
  }
11272
- }, [scrollY]);
10979
+ }, [horizontalContainerRef, scrollY]);
11273
10980
  react.useEffect(function () {
11274
10981
  if (verticalGanttContainerRef.current) {
11275
10982
  verticalGanttContainerRef.current.scrollLeft = scrollX;
11276
10983
  }
11277
- }, [scrollX]);
10984
+ }, [scrollX, verticalGanttContainerRef]);
11278
10985
  return react.createElement("div", {
11279
10986
  className: styles$7.ganttContainer,
11280
10987
  ref: taskGanttRef
@@ -11315,6 +11022,15 @@ var HorizontalScroll = function HorizontalScroll(_ref) {
11315
11022
  rtl = _ref.rtl,
11316
11023
  onScroll = _ref.onScroll;
11317
11024
  var scrollRef = react.useRef(null);
11025
+ react.useEffect(function () {
11026
+ if (scrollRef.current) {
11027
+ var wrap = scrollRef.current;
11028
+ var setScrollLeft = function setScrollLeft() {
11029
+ wrap.scrollLeft = scroll;
11030
+ };
11031
+ setTimeout(setScrollLeft, 250);
11032
+ }
11033
+ }, []);
11318
11034
  react.useEffect(function () {
11319
11035
  if (scrollRef.current) {
11320
11036
  scrollRef.current.scrollLeft = scroll;
@@ -11328,6 +11044,7 @@ var HorizontalScroll = function HorizontalScroll(_ref) {
11328
11044
  } : undefined,
11329
11045
  className: styles$8.scrollWrapper,
11330
11046
  onScroll: onScroll,
11047
+ "data-scrollx": "true",
11331
11048
  ref: scrollRef
11332
11049
  }, react.createElement("div", {
11333
11050
  style: {
@@ -11351,8 +11068,6 @@ var Gantt = function Gantt(_ref) {
11351
11068
  filter = _ref.filter,
11352
11069
  _ref$ganttHeight = _ref.ganttHeight,
11353
11070
  ganttHeight = _ref$ganttHeight === void 0 ? 0 : _ref$ganttHeight,
11354
- _ref$viewMode = _ref.viewMode,
11355
- viewMode = _ref$viewMode === void 0 ? ViewMode.Day : _ref$viewMode,
11356
11071
  _ref$preStepsCount = _ref.preStepsCount,
11357
11072
  preStepsCount = _ref$preStepsCount === void 0 ? 1 : _ref$preStepsCount,
11358
11073
  _ref$locale = _ref.locale,
@@ -11416,6 +11131,12 @@ var Gantt = function Gantt(_ref) {
11416
11131
  projection = _ref.projection,
11417
11132
  displayedStartDate = _ref.displayedStartDate,
11418
11133
  displayedEndDate = _ref.displayedEndDate,
11134
+ _ref$initialScrollX = _ref.initialScrollX,
11135
+ initialScrollX = _ref$initialScrollX === void 0 ? -1 : _ref$initialScrollX,
11136
+ _ref$initialScrollY = _ref.initialScrollY,
11137
+ initialScrollY = _ref$initialScrollY === void 0 ? 0 : _ref$initialScrollY,
11138
+ _ref$readOnly = _ref.readOnly,
11139
+ readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
11419
11140
  onDateChange = _ref.onDateChange,
11420
11141
  onProgressChange = _ref.onProgressChange,
11421
11142
  onDoubleClick = _ref.onDoubleClick,
@@ -11423,7 +11144,11 @@ var Gantt = function Gantt(_ref) {
11423
11144
  onContextMenu = _ref.onContextMenu,
11424
11145
  onDelete = _ref.onDelete,
11425
11146
  onSelect = _ref.onSelect,
11426
- onExpanderClick = _ref.onExpanderClick;
11147
+ onExpanderClick = _ref.onExpanderClick,
11148
+ _ref$viewMode = _ref.viewMode,
11149
+ viewMode = _ref$viewMode === void 0 ? "month" : _ref$viewMode,
11150
+ onScrollX = _ref.onScrollX,
11151
+ onScrollY = _ref.onScrollY;
11427
11152
  var wrapperRef = react.useRef(null);
11428
11153
  var taskGanttRef = react.useRef(null);
11429
11154
  var taskListRef = react.useRef(null);
@@ -11475,12 +11200,12 @@ var Gantt = function Gantt(_ref) {
11475
11200
  setFailedTask = _useState5[1];
11476
11201
  var svgWidth = dateSetup.dates.length * columnWidth;
11477
11202
  var ganttFullHeight = barTasks.length * rowHeight;
11478
- var _useState6 = react.useState(0),
11479
- scrollY = _useState6[0],
11480
- setScrollY = _useState6[1];
11481
- var _useState7 = react.useState(-1),
11482
- scrollX = _useState7[0],
11483
- setScrollX = _useState7[1];
11203
+ var _useState6 = react.useState(initialScrollX),
11204
+ scrollX = _useState6[0],
11205
+ setScrollX = _useState6[1];
11206
+ var _useState7 = react.useState(initialScrollY),
11207
+ scrollY = _useState7[0],
11208
+ setScrollY = _useState7[1];
11484
11209
  var ignoreScrollEvent = react.useRef(false);
11485
11210
  var setIgnoreScrollEvent = function setIgnoreScrollEvent(value) {
11486
11211
  ignoreScrollEvent.current = value;
@@ -11495,9 +11220,12 @@ var Gantt = function Gantt(_ref) {
11495
11220
  window.addEventListener("gantt-sync-scroll-event", function (e) {
11496
11221
  if (e.detail.id !== id) {
11497
11222
  setScrollX(e.detail.scrollX);
11223
+ if (onScrollX) {
11224
+ onScrollX(e.detail.scrollX);
11225
+ }
11498
11226
  }
11499
11227
  });
11500
- }, [id]);
11228
+ }, [id, onScrollX]);
11501
11229
  react.useEffect(function () {
11502
11230
  var filteredTasks;
11503
11231
  if (onExpanderClick) {
@@ -11591,6 +11319,24 @@ var Gantt = function Gantt(_ref) {
11591
11319
  setTaskListWidth(taskListRef.current.offsetWidth);
11592
11320
  }
11593
11321
  }, [taskListRef, listCellWidth]);
11322
+ react.useEffect(function () {
11323
+ if (wrapperRef.current) {
11324
+ if (scrollX !== -1) {
11325
+ var wrap = wrapperRef.current;
11326
+ var setScrollLeft = function setScrollLeft() {
11327
+ wrap.scrollLeft = scrollX;
11328
+ };
11329
+ setTimeout(setScrollLeft, 125);
11330
+ }
11331
+ if (scrollY !== 0) {
11332
+ var _wrap = wrapperRef.current;
11333
+ var setScrollTop = function setScrollTop() {
11334
+ _wrap.scrollTop = scrollY;
11335
+ };
11336
+ setTimeout(setScrollTop, 125);
11337
+ }
11338
+ }
11339
+ }, []);
11594
11340
  react.useEffect(function () {
11595
11341
  if (wrapperRef.current) {
11596
11342
  setSvgContainerWidth(wrapperRef.current.offsetWidth - taskListWidth.current);
@@ -11638,9 +11384,16 @@ var Gantt = function Gantt(_ref) {
11638
11384
  };
11639
11385
  }, [wrapperRef, scrollY, scrollX, ganttHeight, svgWidth, rtl, ganttFullHeight]);
11640
11386
  var handleScrollY = function handleScrollY(event) {
11641
- if (scrollY !== event.currentTarget.scrollTop && !ignoreScrollEvent.current) {
11642
- setScrollY(event.currentTarget.scrollTop);
11643
- setIgnoreScrollEvent(true);
11387
+ if (scrollY !== event.currentTarget.scrollTop) {
11388
+ if (onScrollY) {
11389
+ onScrollY(event.currentTarget.scrollTop);
11390
+ }
11391
+ if (!ignoreScrollEvent.current) {
11392
+ setScrollY(event.currentTarget.scrollTop);
11393
+ setIgnoreScrollEvent(true);
11394
+ } else {
11395
+ setIgnoreScrollEvent(false);
11396
+ }
11644
11397
  } else {
11645
11398
  setIgnoreScrollEvent(false);
11646
11399
  }
@@ -11706,6 +11459,9 @@ var Gantt = function Gantt(_ref) {
11706
11459
  } else if (newScrollY > ganttFullHeight - ganttHeight) {
11707
11460
  newScrollY = ganttFullHeight - ganttHeight;
11708
11461
  }
11462
+ if (onScrollY) {
11463
+ onScrollY(event.currentTarget.scrollTop);
11464
+ }
11709
11465
  setScrollY(newScrollY);
11710
11466
  }
11711
11467
  setIgnoreScrollEvent(true);
@@ -11799,6 +11555,7 @@ var Gantt = function Gantt(_ref) {
11799
11555
  ganttHeight: ganttHeight,
11800
11556
  currentDateIndicator: currentDateIndicatorContent,
11801
11557
  projection: projectionContent,
11558
+ readOnly: readOnly,
11802
11559
  setGanttEvent: setGanttEvent,
11803
11560
  setFailedTask: setFailedTask,
11804
11561
  setSelectedTask: handleSelectedTask,
@@ -11829,7 +11586,7 @@ var Gantt = function Gantt(_ref) {
11829
11586
  TaskListTable: TaskListTable
11830
11587
  };
11831
11588
  return react.createElement("div", null, react.createElement("div", {
11832
- className: styles$7.wrapper,
11589
+ className: "" + styles$7.wrapper,
11833
11590
  onKeyDown: handleKeyDown,
11834
11591
  tabIndex: 0,
11835
11592
  ref: wrapperRef
@@ -11873,6 +11630,199 @@ var Gantt = function Gantt(_ref) {
11873
11630
  }));
11874
11631
  };
11875
11632
 
11633
+ var MAIN_GANTT_ID = "main";
11634
+ var SECONDARY_GANTT_ID = "secondary";
11635
+ var columnWidthForTimeUnit = function columnWidthForTimeUnit(timeUnit) {
11636
+ switch (timeUnit) {
11637
+ case "year":
11638
+ return 60 * 2;
11639
+ default:
11640
+ return 60;
11641
+ }
11642
+ };
11643
+ var convertPhaseToTask = function convertPhaseToTask(item) {
11644
+ var mapPhase = function mapPhase(_ref) {
11645
+ var phaseStart = _ref.startDate,
11646
+ phaseEnd = _ref.endDate,
11647
+ secondaryStartDate = _ref.secondaryStartDate,
11648
+ secondaryEndDate = _ref.secondaryEndDate,
11649
+ phaseName = _ref.name,
11650
+ phaseId = _ref.id,
11651
+ color = _ref.color,
11652
+ selectedColor = _ref.selectedColor,
11653
+ dependencies = _ref.dependencies,
11654
+ icon = _ref.icon;
11655
+ var _validDates = validDates(phaseStart, phaseEnd),
11656
+ start = _validDates.start,
11657
+ end = _validDates.end;
11658
+ var _validDates2 = validDates(secondaryStartDate, secondaryEndDate),
11659
+ phaseStart2 = _validDates2.start,
11660
+ phaseEnd2 = _validDates2.end;
11661
+ return {
11662
+ start: start,
11663
+ end: end,
11664
+ secondaryStart: phaseStart2,
11665
+ secondaryEnd: phaseEnd2,
11666
+ name: phaseName,
11667
+ valuesToShow: item.valuesToShow,
11668
+ id: phaseId,
11669
+ type: "task",
11670
+ progress: 100,
11671
+ dependencies: dependencies,
11672
+ styles: color ? {
11673
+ backgroundColor: color,
11674
+ progressColor: color,
11675
+ backgroundSelectedColor: selectedColor,
11676
+ progressSelectedColor: selectedColor
11677
+ } : {},
11678
+ icon: icon
11679
+ };
11680
+ };
11681
+ return mapPhase(item);
11682
+ };
11683
+ var convertDetailToTimeline = function convertDetailToTimeline(item, mainGanttStartDate, mainGanttEndDate) {
11684
+ var id = item.id,
11685
+ name = item.name,
11686
+ schedule = item.schedule;
11687
+ var getDatesForTask = function getDatesForTask(item) {
11688
+ var start = mainGanttStartDate != null ? mainGanttStartDate : "";
11689
+ var end = mainGanttEndDate != null ? mainGanttEndDate : "";
11690
+ for (var i = 0; i < item.schedule.length; i++) {
11691
+ var lstart = item.schedule[i].startDate;
11692
+ var lend = item.schedule[i].endDate;
11693
+ if (!start || lstart.localeCompare(start) < 0) {
11694
+ start = lstart;
11695
+ }
11696
+ if (!end || lend.localeCompare(end) > 0) {
11697
+ end = lend;
11698
+ }
11699
+ }
11700
+ return validDates(start, end);
11701
+ };
11702
+ var _getDatesForTask = getDatesForTask(item),
11703
+ start = _getDatesForTask.start,
11704
+ end = _getDatesForTask.end;
11705
+ var convertToFrame = function convertToFrame(x) {
11706
+ var startDate = x.startDate,
11707
+ endDate = x.endDate,
11708
+ color = x.color,
11709
+ selectedColor = x.selectedColor,
11710
+ icon = x.icon;
11711
+ var _validDates3 = validDates(startDate, endDate),
11712
+ start = _validDates3.start,
11713
+ end = _validDates3.end;
11714
+ return {
11715
+ start: start,
11716
+ end: end,
11717
+ backgroundColor: color != null ? color : "0xffffff",
11718
+ backgroundSelectedColor: selectedColor != null ? selectedColor : color,
11719
+ icon: icon
11720
+ };
11721
+ };
11722
+ var defaultColor = "#595959";
11723
+ return {
11724
+ id: id,
11725
+ type: "timeline",
11726
+ timeline: schedule.map(convertToFrame),
11727
+ name: name,
11728
+ valuesToShow: item.valuesToShow,
11729
+ start: start,
11730
+ end: end,
11731
+ progress: 100,
11732
+ styles: {
11733
+ backgroundColor: defaultColor,
11734
+ progressColor: defaultColor,
11735
+ backgroundSelectedColor: defaultColor,
11736
+ progressSelectedColor: defaultColor
11737
+ }
11738
+ };
11739
+ };
11740
+ var isDetail = function isDetail(row) {
11741
+ return row && row.schedule && row.schedule.length !== 0;
11742
+ };
11743
+ var convertProjectToTasks = function convertProjectToTasks(item, mainGanttStartDate, mainGanttEndDate) {
11744
+ if (!isDetail(item)) {
11745
+ var _row$phases;
11746
+ var row = item;
11747
+ var _validDates4 = validDates(row.startDate, row.endDate),
11748
+ start = _validDates4.start,
11749
+ end = _validDates4.end;
11750
+ var _validDates5 = validDates(row.secondaryStartDate, row.secondaryEndDate),
11751
+ start2 = _validDates5.start,
11752
+ end2 = _validDates5.end;
11753
+ var mainTask = {
11754
+ start: start,
11755
+ end: end,
11756
+ id: row.id,
11757
+ name: row.name,
11758
+ type: row.type,
11759
+ valuesToShow: row.valuesToShow,
11760
+ secondaryStart: start2,
11761
+ secondaryEnd: end2,
11762
+ progress: 100,
11763
+ isDisabled: false,
11764
+ hideChildren: false,
11765
+ icon: row.icon
11766
+ };
11767
+ var children1 = ((_row$phases = row.phases) != null ? _row$phases : []).map(convertPhaseToTask);
11768
+ return [mainTask].concat(children1);
11769
+ } else {
11770
+ var _row = item;
11771
+ return [_extends({}, convertDetailToTimeline(_row, mainGanttStartDate, mainGanttEndDate))];
11772
+ }
11773
+ };
11774
+ var mergeTaskIntoProjects = function mergeTaskIntoProjects(projects, _ref2) {
11775
+ var id = _ref2.id,
11776
+ start = _ref2.start,
11777
+ end = _ref2.end;
11778
+ return projects.map(function (project) {
11779
+ return project.id === id ? withNewDates(project, start, end) : project;
11780
+ });
11781
+ };
11782
+ var mergeTaskIntoPhases = function mergeTaskIntoPhases(phases, _ref3) {
11783
+ var id = _ref3.id,
11784
+ start = _ref3.start,
11785
+ end = _ref3.end;
11786
+ if (phases) {
11787
+ return phases.map(function (phase) {
11788
+ return phase.id === id ? withNewDates(phase, start, end) : phase;
11789
+ });
11790
+ }
11791
+ return undefined;
11792
+ };
11793
+ var withNewDates = function withNewDates(p, start, end) {
11794
+ var startDate = formatToIsoDate(start);
11795
+ var endDate = formatToIsoDate(end);
11796
+ var extra = {
11797
+ startDate: startDate,
11798
+ endDate: endDate
11799
+ };
11800
+ return _extends({}, p, extra);
11801
+ };
11802
+ var getProjectById = function getProjectById(id, items) {
11803
+ for (var i = 0; i < items.length; i++) {
11804
+ if (items[i].id === id) {
11805
+ return items[i];
11806
+ }
11807
+ }
11808
+ return undefined;
11809
+ };
11810
+ var getPhaseById = function getPhaseById(id, items) {
11811
+ for (var i = 0; i < items.length; i++) {
11812
+ if (isDetail(items[i])) {
11813
+ continue;
11814
+ }
11815
+ var item = items[i];
11816
+ if (!item.phases) {
11817
+ continue;
11818
+ }
11819
+ for (var j = 0; j < item.phases.length; j++) if (item.phases[j].id === id) {
11820
+ return item.phases[j];
11821
+ }
11822
+ }
11823
+ return undefined;
11824
+ };
11825
+
11876
11826
  var cachedFormats = {};
11877
11827
  var getOrBuildCachedFormat = function getOrBuildCachedFormat(locale, options) {
11878
11828
  var _cachedFormats$key;
@@ -12146,16 +12096,16 @@ var classes$2 = {"switcher":"_3P0WE","button":"_1oXbe","label":"_1R9mh"};
12146
12096
  var Switcher = function Switcher(_ref) {
12147
12097
  var onTimeUnitChange = _ref.onTimeUnitChange;
12148
12098
  var day = function day() {
12149
- return onTimeUnitChange(TimeUnit.DAY);
12099
+ return onTimeUnitChange("day");
12150
12100
  };
12151
12101
  var week = function week() {
12152
- return onTimeUnitChange(TimeUnit.WEEK);
12102
+ return onTimeUnitChange("week");
12153
12103
  };
12154
12104
  var month = function month() {
12155
- return onTimeUnitChange(TimeUnit.MONTH);
12105
+ return onTimeUnitChange("month");
12156
12106
  };
12157
12107
  var year = function year() {
12158
- return onTimeUnitChange(TimeUnit.YEAR);
12108
+ return onTimeUnitChange("year");
12159
12109
  };
12160
12110
  return react.createElement("div", {
12161
12111
  className: classes$2.switcher
@@ -12188,7 +12138,7 @@ var Switcher = function Switcher(_ref) {
12188
12138
 
12189
12139
  var Planner = function Planner(props) {
12190
12140
  var _props$secondaryGantt, _props$mainGantt$show, _props$mainGantt$task, _props$mainGantt$task2, _props$mainGantt$tool, _props$secondaryGantt3, _props$secondaryGantt4, _props$secondaryGantt5, _props$secondaryGantt6;
12191
- var _useState = react.useState(TimeUnit.MONTH),
12141
+ var _useState = react.useState(props.viewMode),
12192
12142
  timeUnit = _useState[0],
12193
12143
  setTimeUnit = _useState[1];
12194
12144
  var currentTasks = react.useRef(props.mainGantt.items);
@@ -12301,6 +12251,17 @@ var Planner = function Planner(props) {
12301
12251
  }
12302
12252
  }
12303
12253
  onDateChange === null || onDateChange === void 0 ? void 0 : onDateChange(row);
12254
+ var getScrollX = function getScrollX() {
12255
+ if (wrapperRef.current) {
12256
+ var _wrapperRef$current$q;
12257
+ var x = (_wrapperRef$current$q = wrapperRef.current.querySelector('[data-scrollx="true"]')) === null || _wrapperRef$current$q === void 0 ? void 0 : _wrapperRef$current$q.scrollLeft;
12258
+ if (x !== undefined) {
12259
+ var _props$onScrollX;
12260
+ (_props$onScrollX = props.onScrollX) === null || _props$onScrollX === void 0 ? void 0 : _props$onScrollX.call(props, x);
12261
+ }
12262
+ }
12263
+ };
12264
+ setTimeout(getScrollX, 500);
12304
12265
  };
12305
12266
  react.useEffect(function () {
12306
12267
  var _props$secondaryGantt2;
@@ -12331,8 +12292,13 @@ var Planner = function Planner(props) {
12331
12292
  }
12332
12293
  }
12333
12294
  console.log("PLANNER render");
12334
- return react.createElement("div", null, react.createElement(Switcher, {
12295
+ var wrapperRef = react.useRef(null);
12296
+ return react.createElement("div", {
12297
+ ref: wrapperRef
12298
+ }, react.createElement(Switcher, {
12335
12299
  onTimeUnitChange: function onTimeUnitChange(timeUnit) {
12300
+ var _props$onSetViewMode;
12301
+ (_props$onSetViewMode = props.onSetViewMode) === null || _props$onSetViewMode === void 0 ? void 0 : _props$onSetViewMode.call(props, timeUnit);
12336
12302
  setTimeUnit(timeUnit);
12337
12303
  setViewDate(undefined);
12338
12304
  }
@@ -12354,7 +12320,7 @@ var Planner = function Planner(props) {
12354
12320
  viewDate: viewDate,
12355
12321
  tasks: tasks,
12356
12322
  columnWidth: columnWidthForTimeUnit(timeUnit),
12357
- viewMode: toViewMode(timeUnit)
12323
+ viewMode: timeUnit
12358
12324
  }, props.mainGantt.stylingOptions, {
12359
12325
  TaskListHeader: (_props$mainGantt$task = props.mainGantt.taskListHeaderProject) != null ? _props$mainGantt$task : CustomTaskListHeaderHOC(props.mainGantt.title, mainGanttDoubleView != null ? mainGanttDoubleView : false, handleSetDoubleView),
12360
12326
  TaskListTable: (_props$mainGantt$task2 = props.mainGantt.taskListTableProject) != null ? _props$mainGantt$task2 : CustomTaskListTableHOC(function (id) {
@@ -12397,7 +12363,12 @@ var Planner = function Planner(props) {
12397
12363
  return handleDateChange(task, currentTasks.current, props.mainGantt.onDateChange);
12398
12364
  },
12399
12365
  locale: locale,
12400
- dateTimeFormatters: ganttDateTimeFormatters
12366
+ dateTimeFormatters: ganttDateTimeFormatters,
12367
+ initialScrollX: props.mainGantt.initialScrollX,
12368
+ initialScrollY: props.mainGantt.initialScrollY,
12369
+ readOnly: props.mainGantt.readOnly,
12370
+ onScrollX: props.onScrollX,
12371
+ onScrollY: props.mainGantt.onScrollY
12401
12372
  })), props.secondaryGantt && react.createElement(Gantt, Object.assign({
12402
12373
  id: SECONDARY_GANTT_ID,
12403
12374
  key: SECONDARY_GANTT_ID,
@@ -12411,7 +12382,7 @@ var Planner = function Planner(props) {
12411
12382
  viewDate: viewDate,
12412
12383
  tasks: details,
12413
12384
  columnWidth: columnWidthForTimeUnit(timeUnit),
12414
- viewMode: toViewMode(timeUnit)
12385
+ viewMode: timeUnit
12415
12386
  }, props.mainGantt.stylingOptions, {
12416
12387
  TaskListHeader: (_props$secondaryGantt3 = props.secondaryGantt.taskListHeaderProject) != null ? _props$secondaryGantt3 : CustomTaskListHeaderHOC(props.secondaryGantt.title),
12417
12388
  TaskListTable: (_props$secondaryGantt4 = (_props$secondaryGantt5 = props.secondaryGantt) === null || _props$secondaryGantt5 === void 0 ? void 0 : _props$secondaryGantt5.taskListTableProject) != null ? _props$secondaryGantt4 : CustomTaskListTableHOC(function (id) {
@@ -12447,576 +12418,747 @@ var Planner = function Planner(props) {
12447
12418
  return handleDateChange(task, currentDetails.current, (_props$secondaryGantt7 = props.secondaryGantt) === null || _props$secondaryGantt7 === void 0 ? void 0 : _props$secondaryGantt7.onDateChange);
12448
12419
  },
12449
12420
  locale: locale,
12450
- dateTimeFormatters: ganttDateTimeFormatters
12421
+ dateTimeFormatters: ganttDateTimeFormatters,
12422
+ initialScrollX: props.secondaryGantt.initialScrollX,
12423
+ initialScrollY: props.secondaryGantt.initialScrollY,
12424
+ readOnly: props.secondaryGantt.readOnly,
12425
+ onScrollY: props.secondaryGantt.onScrollY
12451
12426
  }))));
12452
12427
  };
12453
12428
 
12454
- const kupManager = kupManager$1.kupManagerInstance();
12455
- function sanitizeAllDates(startDateCell, endDateCell, secStartDateCell, secEndDateCell) {
12456
- const sanitizedDateValues = sanitizeDates(startDateCell, endDateCell);
12457
- let sanitizedSecDateValues = [];
12458
- if (secStartDateCell && secEndDateCell) {
12459
- if (isAtLeastOneDateValid(secStartDateCell, secEndDateCell)) {
12460
- sanitizedSecDateValues = sanitizeDates(secStartDateCell, secEndDateCell);
12461
- }
12462
- else {
12463
- sanitizedSecDateValues = [...sanitizedDateValues];
12464
- }
12465
- }
12466
- return {
12467
- dateValues: sanitizedDateValues,
12468
- secDateValues: sanitizedSecDateValues,
12469
- };
12470
- }
12471
- function sanitizeDates(startDateCell, endDateCell) {
12472
- let returnValues = [startDateCell.value, endDateCell.value];
12473
- if (isDateValid(startDateCell) && isDateValid(endDateCell)) {
12474
- return returnValues;
12475
- }
12476
- else if (isDateValid(startDateCell)) {
12477
- return [startDateCell.value, startDateCell.value];
12478
- }
12479
- else if (isDateValid(endDateCell)) {
12480
- return [endDateCell.value, endDateCell.value];
12481
- }
12482
- else {
12483
- return returnValues;
12484
- }
12485
- }
12486
- function isDateValid(dateCell) {
12487
- return (kupManager.objects.isDate(dateCell.obj) &&
12488
- kupManager.dates.isValid(dateCell.value, kupManager$1.KupDatesFormats.ISO_DATE));
12489
- }
12490
- function isAtLeastOneDateValid(startDateCell, endDateCell) {
12491
- return isDateValid(startDateCell) || isDateValid(endDateCell);
12492
- }
12493
- function getValuesToShow(row, idCol, nameCol, dataColumns, columns, customToValuesFunction) {
12494
- let toValuesFunction = () => columns.map((col) => {
12495
- return kupManager$1.getCellValueForDisplay(dataColumns.find((kCol) => kCol.name == col), row.cells[col]);
12496
- });
12497
- if (customToValuesFunction) {
12498
- toValuesFunction = customToValuesFunction;
12499
- }
12500
- const valuesToShow = (columns === null || columns === void 0 ? void 0 : columns.length) >= 2
12501
- ? toValuesFunction()
12502
- : [row.cells[idCol].value, row.cells[nameCol].value];
12503
- return valuesToShow;
12429
+ const kupManager = kupManager$1.kupManagerInstance();
12430
+ function sanitizeAllDates(startDateCell, endDateCell, secStartDateCell, secEndDateCell) {
12431
+ const sanitizedDateValues = sanitizeDates(startDateCell, endDateCell);
12432
+ let sanitizedSecDateValues = [];
12433
+ if (secStartDateCell && secEndDateCell) {
12434
+ if (isAtLeastOneDateValid(secStartDateCell, secEndDateCell)) {
12435
+ sanitizedSecDateValues = sanitizeDates(secStartDateCell, secEndDateCell);
12436
+ }
12437
+ else {
12438
+ sanitizedSecDateValues = [...sanitizedDateValues];
12439
+ }
12440
+ }
12441
+ return {
12442
+ dateValues: sanitizedDateValues,
12443
+ secDateValues: sanitizedSecDateValues,
12444
+ };
12445
+ }
12446
+ function sanitizeDates(startDateCell, endDateCell) {
12447
+ let returnValues = [startDateCell.value, endDateCell.value];
12448
+ if (isDateValid(startDateCell) && isDateValid(endDateCell)) {
12449
+ return returnValues;
12450
+ }
12451
+ else if (isDateValid(startDateCell)) {
12452
+ return [startDateCell.value, startDateCell.value];
12453
+ }
12454
+ else if (isDateValid(endDateCell)) {
12455
+ return [endDateCell.value, endDateCell.value];
12456
+ }
12457
+ else {
12458
+ return returnValues;
12459
+ }
12460
+ }
12461
+ function isDateValid(dateCell) {
12462
+ return (kupManager.objects.isDate(dateCell.obj) &&
12463
+ kupManager.dates.isValid(dateCell.value, kupManager$1.KupDatesFormats.ISO_DATE));
12464
+ }
12465
+ function isAtLeastOneDateValid(startDateCell, endDateCell) {
12466
+ return isDateValid(startDateCell) || isDateValid(endDateCell);
12467
+ }
12468
+ function getValuesToShow(row, idCol, nameCol, dataColumns, columns, customToValuesFunction) {
12469
+ let toValuesFunction = () => columns.map((col) => {
12470
+ return kupManager$1.getCellValueForDisplay(dataColumns.find((kCol) => kCol.name == col), row.cells[col]);
12471
+ });
12472
+ if (customToValuesFunction) {
12473
+ toValuesFunction = customToValuesFunction;
12474
+ }
12475
+ const valuesToShow = (columns === null || columns === void 0 ? void 0 : columns.length) >= 2
12476
+ ? toValuesFunction()
12477
+ : [row.cells[idCol].value, row.cells[nameCol].value];
12478
+ return valuesToShow;
12479
+ }
12480
+
12481
+ class KupPlannerState {
12482
+ constructor() {
12483
+ this.showSecondaryDates = false;
12484
+ this.detailFilter = "";
12485
+ this.detailInitialScrollX = 0;
12486
+ this.detailInitialScrollY = 0;
12487
+ this.taskFilter = "";
12488
+ this.taskInitialScrollX = 0;
12489
+ this.taskInitialScrollY = 0;
12490
+ this.viewMode = "day";
12491
+ }
12492
+ toDebugString() {
12493
+ // TODO
12494
+ return 'dt state';
12495
+ }
12504
12496
  }
12505
12497
 
12506
12498
  const kupPlannerCss = "._3_ygE{display:table;border-bottom:#e6e4e4 1px solid;border-top:#e6e4e4 1px solid;border-left:#e6e4e4 1px solid}._1nBOt{display:table-row;list-style:none}._2eZzQ{border-right:1px solid rgb(196, 196, 196);opacity:1;margin-left:-2px}._WuQ0f{display:table-cell;vertical-align:-webkit-baseline-middle;vertical-align:middle}._3ZbQT{display:table;border-bottom:#e6e4e4 1px solid;border-left:#e6e4e4 1px solid}._34SS0{display:table-row;text-overflow:ellipsis}._34SS0:nth-of-type(even){}._3lLk3{display:table-cell;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._nI1Xw{display:flex}._2QjE6{color:rgb(86 86 86);font-size:0.6rem;padding:0.15rem 0.2rem 0 0.2rem;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer}._2TfEi{font-size:0.6rem;padding-left:1rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}._3T42e{background:#fff;padding:12px;box-shadow:0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)}._29NTg{font-size:12px;margin-bottom:6px;color:#666}._25P-K{position:absolute;display:flex;flex-shrink:0;pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}._3gVAq{visibility:hidden;position:absolute;display:flex;pointer-events:none}._1eT-t{overflow:hidden auto;width:1rem;flex-shrink:0;scrollbar-width:thin}._1eT-t::-webkit-scrollbar{width:1.1rem;height:1.1rem}._1eT-t::-webkit-scrollbar-corner{background:transparent}._1eT-t::-webkit-scrollbar-thumb{border:6px solid transparent;background:rgba(0, 0, 0, 0.2);background:var(--palette-black-alpha-20, rgba(0, 0, 0, 0.2));border-radius:10px;background-clip:padding-box}._1eT-t::-webkit-scrollbar-thumb:hover{border:4px solid transparent;background:rgba(0, 0, 0, 0.3);background:var(--palette-black-alpha-30, rgba(0, 0, 0, 0.3));background-clip:padding-box}._EvhC1{border-radius:8px;background:#efefef;margin:12px;padding:12px}._2dZTy{fill:#fff}._2dZTy:nth-child(even){}._3rUKi{stroke:transparent}._RuwuK{stroke:#e6e4e4}._9w8d5{text-anchor:middle;fill:#333;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._1rLuZ{stroke:#e6e4e4}._2q1Kt{text-anchor:middle;fill:#555;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._35nLX{fill:#ffffff;stroke:#e0e0e0;stroke-width:1.4}._KxSXS{cursor:pointer;outline:none}._KxSXS:hover ._3w_5u{visibility:visible;opacity:1}._3w_5u{fill:#ddd;cursor:ew-resize;opacity:0;visibility:hidden}._31ERP{-webkit-user-select:none;-moz-user-select:none;user-select:none;stroke-width:0}._3zRJQ{fill:#fff;text-anchor:middle;font-weight:lighter;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._3KcaM{fill:#555;text-anchor:start;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._11iN9{background:#efefef;border-radius:8px;margin:12px;overflow:hidden;padding:12px}._CZjuD{overflow:hidden;font-size:0;margin:0;padding:0}._2B2zv{margin:0;padding:0;overflow:hidden}._3eULf{display:flex;padding:0;margin:0;list-style:none;outline:none;position:relative}._2k9Ys{overflow:auto;max-width:100%;scrollbar-width:thin;height:1.2rem}._2k9Ys::-webkit-scrollbar{width:1.1rem;height:1.1rem}._2k9Ys::-webkit-scrollbar-corner{background:transparent}._2k9Ys::-webkit-scrollbar-thumb{border:6px solid transparent;background:rgba(0, 0, 0, 0.2);background:var(--palette-black-alpha-20, rgba(0, 0, 0, 0.2));border-radius:10px;background-clip:padding-box}._2k9Ys::-webkit-scrollbar-thumb:hover{border:4px solid transparent;background:rgba(0, 0, 0, 0.3);background:var(--palette-black-alpha-30, rgba(0, 0, 0, 0.3));background-clip:padding-box}._19jgW{height:1px}._37E9D{display:flex;justify-content:space-around;max-width:330px;place-items:\"center\";text-align:center;align-items:center}._WrYI6{font-weight:bold;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._c53zr{max-width:-moz-max-content;max-width:max-content;padding:0 4px;text-align:right}._2eBO5{position:relative;display:inline-block;width:30px;height:17px}._hiyro{opacity:0;width:0;height:0}._hiyro:checked+._2HI58{background-color:#003b77}._hiyro:checked+._2HI58:before{transform:translateX(13px)}._hiyro:focus+._2HI58{box-shadow:0 0 1px #003b77}._2HI58{-webkit-transition:0.4s;cursor:pointer;background-color:#ccc;bottom:0;border-radius:17px;left:0;position:absolute;right:0;top:0;transition:0.4s}._2HI58:before{-webkit-transition:0.1s;background-color:white;border-radius:50%;bottom:2px;content:\"\";height:13px;left:2px;position:absolute;transition:0.1s;width:13px}._2gSdA{font-size:12px;padding:6px}._2cfRI{font-size:12px}._lEI6r{padding:0 10px;margin-right:10px}._RU6Aa{background:var(--kup-background-color, #ffffff);border:1px solid var(--kup-border-color, #acacac);border-radius:4px;box-sizing:border-box;color:var(--kup-text-color, #595959);cursor:pointer;display:grid;font-weight:400;grid-template-columns:var(--grid-project-columns, 1fr 1fr 1fr);place-items:center}._RU6Aa>*{font-size:14px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}._RU6Aa ._30j6y{font-weight:700;width:100%;text-align:center}._T0HQN{cursor:pointer;display:grid;border-width:1px;border-style:solid;border-color:#acacac;border-bottom-left-radius:4px;border-bottom-right-radius:4px;box-sizing:border-box;grid-template-columns:var(--grid-fasi-columns, 1fr 1fr 1fr);place-items:center;background:#ffffff;color:#595959;font-weight:400}._T0HQN>*{font-size:12px;line-height:14px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}._T0HQN:has(+._T0HQN),._RU6Aa:has(+._T0HQN){border-bottom-left-radius:0;border-bottom-right-radius:0}._yp2DW{cursor:pointer;display:grid;border-width:1px;border-style:solid;border-color:#cbcbcb;border-radius:4px;grid-template-columns:var(--grid-fasi-columns, 1fr 1fr 1fr);place-items:center;background:#fff;color:#595959;font-weight:400;box-sizing:border-box}._yp2DW>*{font-size:14px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}._yp2DW ._30j6y{font-weight:700;width:100%;text-align:center}._3P0WE{display:grid;grid-auto-flow:column;grid-gap:8px;margin-left:12px;width:-moz-max-content;width:max-content}._1oXbe{background:transparent;border-color:var(--kup-primary-color, #003b77);border-radius:4px;border-width:1px;box-shadow:0 3px 1px -2px rgba(var(--kup-text-color-rgb, 51 51 51), 0.2), 0 2px 2px 0 rgba(var(--kup-text-color-rgb, 51 51 51), 0.14), 0 1px 5px 0 rgba(var(--kup-text-color-rgb, 51 51 51), 0.12);box-sizing:border-box;color:var(--kup-primary-color, #003b77);cursor:pointer;font-size:11px;height:32px;min-width:64px}._1R9mh{font-family:var(--kup-font-family, inherit);font-size:11px;letter-spacing:0.0892857143em;text-decoration:none;text-transform:uppercase;padding:0 6px}:host{display:block}.filter{margin:12px 10px 12px 0;padding:0 10px}";
12507
12499
 
12508
- var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
12509
- if (kind === "m")
12510
- throw new TypeError("Private method is not writable");
12511
- if (kind === "a" && !f)
12512
- throw new TypeError("Private accessor was defined without a setter");
12513
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
12514
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
12515
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
12516
- };
12517
- var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12518
- if (kind === "a" && !f)
12519
- throw new TypeError("Private accessor was defined without a getter");
12520
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
12521
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
12522
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12523
- };
12524
- var _KupPlanner_instances, _KupPlanner_kupManager, _KupPlanner_lastOnChangeReceived, _KupPlanner_rootPlanner, _KupPlanner_phases, _KupPlanner_showSecondaryDatesLocal, _KupPlanner_renderReactPlannerElement, _KupPlanner_toTasks, _KupPlanner_toDetails, _KupPlanner_getTask, _KupPlanner_removePhases, _KupPlanner_handleOnClickOnTask, _KupPlanner_handleOnClickOnPhase, _KupPlanner_handleOnClickOnDetail, _KupPlanner_handleOnContextMenuOnTask, _KupPlanner_handleOnContextMenuOnPhase, _KupPlanner_handleOnContextMenuOnDetail, _KupPlanner_emitOnChangeEventsReceived, _KupPlanner_onFilter, _KupPlanner_getIconUrl, _KupPlanner_getIconColor;
12525
- const KupPlanner = class {
12526
- constructor(hostRef) {
12527
- index.registerInstance(this, hostRef);
12528
- this.kupClick = index.createEvent(this, "kup-planner-click", 6);
12529
- this.kupDateChange = index.createEvent(this, "kup-planner-datechange", 6);
12530
- this.kupReady = index.createEvent(this, "kup-planner-ready", 6);
12531
- this.kupContextMenu = index.createEvent(this, "kup-planner-contextmenu", 6);
12532
- _KupPlanner_instances.add(this);
12533
- /*-------------------------------------------------*/
12534
- /* I n t e r n a l V a r i a b l e s */
12535
- /*-------------------------------------------------*/
12536
- _KupPlanner_kupManager.set(this, kupManager$1.kupManagerInstance());
12537
- _KupPlanner_lastOnChangeReceived.set(this, void 0);
12538
- _KupPlanner_rootPlanner.set(this, void 0);
12539
- _KupPlanner_phases.set(this, {});
12540
- // no re-render
12541
- _KupPlanner_showSecondaryDatesLocal.set(this, false);
12542
- this.customStyle = '';
12543
- this.data = undefined;
12544
- this.detailData = undefined;
12545
- this.detailColorCol = undefined;
12546
- this.detailColumns = undefined;
12547
- this.detailDates = undefined;
12548
- this.detailHeight = undefined;
12549
- this.detailIconCol = undefined;
12550
- this.detailIdCol = undefined;
12551
- this.detailNameCol = undefined;
12552
- this.detailPrevDates = undefined;
12553
- this.listCellWidth = '300px';
12554
- this.maxWidth = '90vw';
12555
- this.phaseColorCol = undefined;
12556
- this.phaseColumns = undefined;
12557
- this.phaseColParDep = undefined;
12558
- this.phaseDates = undefined;
12559
- this.phaseIconCol = undefined;
12560
- this.phaseIdCol = undefined;
12561
- this.phaseNameCol = undefined;
12562
- this.phasePrevDates = undefined;
12563
- this.showSecondaryDates = false;
12564
- this.taskColumns = undefined;
12565
- this.taskDates = undefined;
12566
- this.taskHeight = undefined;
12567
- this.taskIconCol = undefined;
12568
- this.taskIdCol = undefined;
12569
- this.taskNameCol = undefined;
12570
- this.taskPrevDates = undefined;
12571
- this.titleMess = undefined;
12572
- this.plannerProps = undefined;
12573
- }
12574
- dataChanged() {
12575
- __classPrivateFieldSet(this, _KupPlanner_phases, {}, "f");
12576
- }
12577
- showSecondaryDatesChanged() {
12578
- var _a;
12579
- __classPrivateFieldSet(this, _KupPlanner_showSecondaryDatesLocal, this.showSecondaryDates, "f");
12580
- if ((_a = this.plannerProps) === null || _a === void 0 ? void 0 : _a.mainGantt) {
12581
- this.plannerProps.mainGantt.showSecondaryDates =
12582
- this.showSecondaryDates;
12583
- }
12584
- }
12585
- /*-------------------------------------------------*/
12586
- /* P u b l i c M e t h o d s */
12587
- /*-------------------------------------------------*/
12588
- /**
12589
- * Used to retrieve component's props values.
12590
- * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
12591
- * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
12592
- */
12593
- async getProps(descriptions) {
12594
- return kupManager$1.getProps(this, KupPlannerProps, descriptions);
12595
- }
12596
- /**
12597
- * This method is used to trigger a new render of the component.
12598
- */
12599
- async refresh() {
12600
- index.forceUpdate(this);
12601
- }
12602
- /**
12603
- * Sets the props to the component.
12604
- * @param {GenericObject} props - Object containing props that will be set to the component.
12605
- */
12606
- async setProps(props) {
12607
- kupManager$1.setProps(this, KupPlannerProps, props);
12608
- }
12609
- /**
12610
- * Add a list of phases to the project
12611
- * @param taskId
12612
- * @param data - Matrix which contains project phases
12613
- */
12614
- async addPhases(taskId, data) {
12615
- var _a;
12616
- const task = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getTask).call(this, taskId);
12617
- if (task) {
12618
- __classPrivateFieldGet(this, _KupPlanner_phases, "f")[taskId] = data;
12619
- task.phases = (_a = data.rows) === null || _a === void 0 ? void 0 : _a.filter((row) => isAtLeastOneDateValid(row.cells[this.phaseDates[0]], row.cells[this.phaseDates[1]])).map((row) => {
12620
- const datesSanitized = sanitizeAllDates(row.cells[this.phaseDates[0]], row.cells[this.phaseDates[1]], row.cells[this.phasePrevDates[0]], row.cells[this.phasePrevDates[1]]);
12621
- const valuesToShow = getValuesToShow(row, this.phaseIdCol, this.phaseNameCol, data.columns, this.phaseColumns, () => this.phaseColumns.map((col) => col == this.phaseDates[0]
12622
- ? '#START#'
12623
- : col == this.phaseDates[1]
12624
- ? '#END#'
12625
- : kupManager$1.getCellValueForDisplay(data.columns.find((kCol) => kCol.name == col), row.cells[col])));
12626
- let iconUrl = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconUrl).call(this, row, this.phaseIconCol);
12627
- let iconColor = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconColor).call(this, row, this.phaseIconCol);
12628
- let phase = {
12629
- taskRow: task.taskRow,
12630
- phaseRow: row,
12631
- id: task.id + '_' + row.cells[this.phaseIdCol].value,
12632
- phaseRowId: row.id,
12633
- taskRowId: task.taskRowId,
12634
- name: row.cells[this.phaseNameCol].value,
12635
- startDate: datesSanitized.dateValues[0],
12636
- endDate: datesSanitized.dateValues[1],
12637
- secondaryStartDate: datesSanitized.secDateValues[0],
12638
- secondaryEndDate: datesSanitized.secDateValues[1],
12639
- type: 'task',
12640
- color: row.cells[this.phaseColorCol].value,
12641
- selectedColor: row.cells[this.phaseColorCol].value,
12642
- valuesToShow: valuesToShow,
12643
- rowType: KupPlannerGanttRowType.PHASE,
12644
- icon: iconUrl
12645
- ? { url: iconUrl, color: iconColor !== null && iconColor !== void 0 ? iconColor : '#595959' }
12646
- : undefined,
12647
- };
12648
- return phase;
12649
- });
12650
- }
12651
- this.plannerProps = Object.assign({}, this.plannerProps);
12652
- }
12653
- //---- Lifecycle hooks ----
12654
- componentWillLoad() {
12655
- __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").debug.logLoad(this, false);
12656
- __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.register(this);
12657
- }
12658
- componentDidLoad() {
12659
- __classPrivateFieldSet(this, _KupPlanner_showSecondaryDatesLocal, this.showSecondaryDates, "f");
12660
- let details = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_toDetails).call(this, this.detailData);
12661
- if (details && details.length == 0) {
12662
- details = undefined;
12663
- }
12664
- const mainFilter = this.rootElement.shadowRoot.querySelector('#main-filter');
12665
- fTextFieldMdc.FTextFieldMDC(mainFilter);
12666
- const secondaryFilter = this.rootElement.shadowRoot.querySelector('#secondary-filter');
12667
- if (details) {
12668
- fTextFieldMdc.FTextFieldMDC(secondaryFilter);
12669
- }
12670
- this.plannerProps = {
12671
- mainGantt: {
12672
- title: this.titleMess,
12673
- items: __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_toTasks).call(this, this.data),
12674
- stylingOptions: Object.assign(Object.assign({}, defaultStylingOptions), { listCellWidth: this.listCellWidth }),
12675
- filter: mainFilter,
12676
- hideLabel: true,
12677
- ganttHeight: this.taskHeight,
12678
- showSecondaryDates: __classPrivateFieldGet(this, _KupPlanner_showSecondaryDatesLocal, "f"),
12679
- onClick: (nativeEvent) => this.handleOnClick(nativeEvent),
12680
- onContextMenu: (event, row) => this.handleOnContextMenu(event, row),
12681
- onDateChange: (nativeEvent) => this.handleOnDateChange(nativeEvent),
12682
- },
12683
- secondaryGantt: details
12684
- ? {
12685
- title: '',
12686
- items: details,
12687
- stylingOptions: Object.assign(Object.assign({}, defaultStylingOptions), { listCellWidth: this.listCellWidth }),
12688
- filter: secondaryFilter,
12689
- hideLabel: true,
12690
- ganttHeight: this.detailHeight,
12691
- onClick: (nativeEvent) => this.handleOnClick(nativeEvent),
12692
- onContextMenu: (event, row) => this.handleOnContextMenu(event, row),
12693
- onDateChange: (nativeEvent) => this.handleOnDateChange(nativeEvent),
12694
- }
12695
- : undefined,
12696
- onSetDoubleView: (checked) => this.handleOnSetDoubleView(checked),
12697
- };
12698
- __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_renderReactPlannerElement).call(this);
12699
- this.kupReady.emit({
12700
- comp: this,
12701
- id: this.rootElement.id,
12702
- value: undefined,
12703
- });
12704
- __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").debug.logLoad(this, true);
12705
- }
12706
- componentWillRender() {
12707
- __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_renderReactPlannerElement).call(this);
12708
- }
12709
- componentDidRender() {
12710
- __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").debug.logRender(this, true);
12711
- }
12712
- onKupClick(event, taskAction) {
12713
- this.kupClick.emit({
12714
- comp: this,
12715
- id: this.rootElement.id,
12716
- value: event,
12717
- taskAction: taskAction,
12718
- });
12719
- }
12720
- onKupContextMenu(event, ganttRow, taskAction) {
12721
- let row;
12722
- let cell;
12723
- let column;
12724
- switch (ganttRow.type) {
12725
- case 'project': {
12726
- row = ganttRow.taskRow;
12727
- cell = row.cells[this.taskIdCol];
12728
- column = this.data.columns[this.taskIdCol];
12729
- break;
12730
- }
12731
- case 'task': {
12732
- row = ganttRow.phaseRow;
12733
- cell = row.cells[this.phaseIdCol];
12734
- //column = this.data.columns[this.taskIdCol];
12735
- break;
12736
- }
12737
- case 'timeline': {
12738
- row = ganttRow.detailRow;
12739
- cell = row.cells[this.detailIdCol];
12740
- column = this.data.columns[this.detailIdCol];
12741
- break;
12742
- }
12743
- }
12744
- this.kupContextMenu.emit({
12745
- comp: this,
12746
- id: this.rootElement.id,
12747
- value: ganttRow,
12748
- taskAction: taskAction,
12749
- details: {
12750
- cell: cell,
12751
- column: column,
12752
- originalEvent: event,
12753
- row: row,
12754
- },
12755
- });
12756
- }
12757
- onKupDateChange(event, taskAction) {
12758
- this.kupDateChange.emit({
12759
- comp: this,
12760
- id: this.rootElement.id,
12761
- value: event,
12762
- taskAction: taskAction,
12763
- });
12764
- }
12765
- handleOnClick(nativeEvent) {
12766
- switch (nativeEvent.rowType) {
12767
- case KupPlannerGanttRowType.TASK:
12768
- const taskAction = nativeEvent.phases
12769
- ? KupPlannerTaskAction.onTaskClosing
12770
- : KupPlannerTaskAction.onTaskOpening;
12771
- if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnClickOnTask).call(this, nativeEvent)) {
12772
- this.onKupClick(nativeEvent, taskAction);
12773
- }
12774
- break;
12775
- case KupPlannerGanttRowType.PHASE:
12776
- if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnClickOnPhase).call(this)) {
12777
- this.onKupClick(nativeEvent, KupPlannerTaskAction.onClick);
12778
- }
12779
- break;
12780
- case KupPlannerGanttRowType.DETAIL:
12781
- if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnClickOnDetail).call(this)) {
12782
- this.onKupClick(nativeEvent, KupPlannerTaskAction.onClick);
12783
- }
12784
- break;
12785
- }
12786
- }
12787
- handleOnContextMenu(event, row) {
12788
- switch (row.rowType) {
12789
- case KupPlannerGanttRowType.TASK:
12790
- if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnContextMenuOnTask).call(this)) {
12791
- this.onKupContextMenu(event, row, KupPlannerTaskAction.onRightClick);
12792
- }
12793
- break;
12794
- case KupPlannerGanttRowType.PHASE:
12795
- if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnContextMenuOnPhase).call(this)) {
12796
- this.onKupContextMenu(event, row, KupPlannerTaskAction.onRightClick);
12797
- }
12798
- break;
12799
- case KupPlannerGanttRowType.DETAIL:
12800
- if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnContextMenuOnDetail).call(this)) {
12801
- this.onKupContextMenu(event, row, KupPlannerTaskAction.onRightClick);
12802
- }
12803
- break;
12804
- }
12805
- }
12806
- handleOnSetDoubleView(checked) {
12807
- var _a;
12808
- __classPrivateFieldSet(this, _KupPlanner_showSecondaryDatesLocal, checked, "f");
12809
- if ((_a = this.plannerProps) === null || _a === void 0 ? void 0 : _a.mainGantt) {
12810
- this.plannerProps.mainGantt.showSecondaryDates = checked;
12811
- }
12812
- }
12813
- handleOnDateChange(nativeEvent) {
12814
- if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_emitOnChangeEventsReceived).call(this, nativeEvent)) {
12815
- if (nativeEvent.rowType != KupPlannerGanttRowType.DETAIL) {
12816
- this.onKupDateChange(nativeEvent, KupPlannerTaskAction.onResize);
12817
- }
12818
- }
12819
- }
12820
- render() {
12821
- var _a;
12822
- return (index.h(index.Host, null, index.h("style", null, __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { id: GenericVariables.componentWrapperId, style: { maxWidth: this.maxWidth } }), index.h(fTextField.FTextField, { icon: kupManager$1.KupThemeIconValues.SEARCH, id: "main-filter", label: __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").language.translate(kupManager$1.KupLanguageSearch.SEARCH), onKeyDown: (e) => {
12823
- if (e.key === 'Enter') {
12824
- __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_onFilter).call(this, e);
12825
- }
12826
- }, wrapperClass: "filter" }), ((_a = this.detailData) === null || _a === void 0 ? void 0 : _a.rows) && this.detailData.rows.length > 0 ? (index.h(fTextField.FTextField, { icon: kupManager$1.KupThemeIconValues.SEARCH, id: "secondary-filter", label: __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").language.translate(kupManager$1.KupLanguageSearch.SEARCH), onKeyDown: (e) => {
12827
- if (e.key === 'Enter') {
12828
- __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_onFilter).call(this, e, true);
12829
- }
12830
- }, wrapperClass: "filter" })) : null));
12831
- }
12832
- disconnectedCallback() {
12833
- __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.unregister(this);
12834
- }
12835
- get rootElement() { return index.getElement(this); }
12836
- static get watchers() { return {
12837
- "data": ["dataChanged"],
12838
- "showSecondaryDates": ["showSecondaryDatesChanged"]
12839
- }; }
12840
- };
12841
- _KupPlanner_kupManager = new WeakMap(), _KupPlanner_lastOnChangeReceived = new WeakMap(), _KupPlanner_rootPlanner = new WeakMap(), _KupPlanner_phases = new WeakMap(), _KupPlanner_showSecondaryDatesLocal = new WeakMap(), _KupPlanner_instances = new WeakSet(), _KupPlanner_renderReactPlannerElement = function _KupPlanner_renderReactPlannerElement() {
12842
- var _a;
12843
- (_a = __classPrivateFieldGet(this, _KupPlanner_rootPlanner, "f")) === null || _a === void 0 ? void 0 : _a.unmount();
12844
- const componentWrapperElement = this.rootElement.shadowRoot.getElementById(GenericVariables.componentWrapperId);
12845
- if (componentWrapperElement) {
12846
- __classPrivateFieldSet(this, _KupPlanner_rootPlanner, client.createRoot(componentWrapperElement), "f");
12847
- __classPrivateFieldGet(this, _KupPlanner_rootPlanner, "f").render(react.createElement(Planner, this.plannerProps));
12848
- }
12849
- }, _KupPlanner_toTasks = function _KupPlanner_toTasks(data) {
12850
- var _a;
12851
- let tasks = (_a = data.rows) === null || _a === void 0 ? void 0 : _a.filter((row) => isAtLeastOneDateValid(row.cells[this.taskDates[0]], row.cells[this.taskDates[1]])).map((row) => {
12852
- const datesSanitized = sanitizeAllDates(row.cells[this.taskDates[0]], row.cells[this.taskDates[1]], row.cells[this.taskPrevDates[0]], row.cells[this.taskPrevDates[1]]);
12853
- const valuesToShow = getValuesToShow(row, this.taskIdCol, this.taskNameCol, data.columns, this.taskColumns, () => this.taskColumns.map((col) => col == this.taskDates[0]
12854
- ? '#START#'
12855
- : col == this.taskDates[1]
12856
- ? '#END#'
12857
- : kupManager$1.getCellValueForDisplay(data.columns.find((kCol) => kCol.name == col), row.cells[col])));
12858
- let iconUrl = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconUrl).call(this, row, this.taskIconCol);
12859
- let iconColor = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconColor).call(this, row, this.taskIconCol);
12860
- let task = {
12861
- taskRow: row,
12862
- taskRowId: row.id,
12863
- id: row.cells[this.taskIdCol].value,
12864
- name: row.cells[this.taskNameCol].value,
12865
- startDate: datesSanitized.dateValues[0],
12866
- endDate: datesSanitized.dateValues[1],
12867
- secondaryStartDate: datesSanitized.secDateValues[0],
12868
- secondaryEndDate: datesSanitized.secDateValues[1],
12869
- type: 'project',
12870
- valuesToShow: valuesToShow,
12871
- rowType: KupPlannerGanttRowType.TASK,
12872
- icon: iconUrl
12873
- ? { url: iconUrl, color: iconColor !== null && iconColor !== void 0 ? iconColor : '#595959' }
12874
- : undefined,
12875
- };
12876
- return task;
12877
- });
12878
- return tasks;
12879
- }, _KupPlanner_toDetails = function _KupPlanner_toDetails(data) {
12880
- let details = [];
12881
- if (!data || !data.rows) {
12882
- return details;
12883
- }
12884
- data.rows
12885
- .filter((row) => isAtLeastOneDateValid(row.cells[this.detailDates[0]], row.cells[this.detailDates[1]]))
12886
- .forEach((row) => {
12887
- var _a, _b;
12888
- const detailId = row.cells[this.detailIdCol].value;
12889
- const detailNameId = row.cells[this.detailNameCol].value;
12890
- const datesSanitized = sanitizeAllDates(row.cells[this.detailDates[0]], row.cells[this.detailDates[1]]);
12891
- const valuesToShow = getValuesToShow(row, this.detailIdCol, this.detailNameCol, data.columns, this.detailColumns);
12892
- let detail = details.find((det) => det.id == detailId);
12893
- if (!detail) {
12894
- detail = {
12895
- id: detailId,
12896
- name: detailNameId,
12897
- detailRow: row,
12898
- type: 'timeline',
12899
- valuesToShow: valuesToShow,
12900
- rowType: KupPlannerGanttRowType.DETAIL,
12901
- schedule: [],
12902
- };
12903
- details.push(detail);
12904
- }
12905
- let iconUrl = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconUrl).call(this, row, this.detailIconCol);
12906
- let iconColor = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconColor).call(this, row, this.detailIconCol);
12907
- detail.schedule.push({
12908
- startDate: datesSanitized.dateValues[0],
12909
- endDate: datesSanitized.dateValues[1],
12910
- color: this.detailColorCol
12911
- ? (_a = row.cells[this.detailColorCol].value) !== null && _a !== void 0 ? _a : '#D9D9D8'
12912
- : '#D9D9D8',
12913
- selectedColor: this.detailColorCol
12914
- ? (_b = row.cells[this.detailColorCol].value) !== null && _b !== void 0 ? _b : '#D9D9D8'
12915
- : '#D9D9D8',
12916
- icon: iconUrl
12917
- ? { url: iconUrl, color: iconColor !== null && iconColor !== void 0 ? iconColor : '#595959' }
12918
- : undefined,
12919
- });
12920
- });
12921
- return details;
12922
- }, _KupPlanner_getTask = function _KupPlanner_getTask(taskId) {
12923
- return this.plannerProps.mainGantt.items.find((task) => task.id == taskId);
12924
- }, _KupPlanner_removePhases = function _KupPlanner_removePhases(taskId) {
12925
- const task = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getTask).call(this, taskId);
12926
- if (task)
12927
- task.phases = undefined;
12928
- this.plannerProps = Object.assign({}, this.plannerProps);
12929
- }, _KupPlanner_handleOnClickOnTask = function _KupPlanner_handleOnClickOnTask(nativeEvent) {
12930
- const task = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getTask).call(this, nativeEvent.id);
12931
- if (task === null || task === void 0 ? void 0 : task.phases) {
12932
- __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_removePhases).call(this, task.id);
12933
- }
12934
- return true;
12935
- }, _KupPlanner_handleOnClickOnPhase = function _KupPlanner_handleOnClickOnPhase() {
12936
- return true;
12937
- }, _KupPlanner_handleOnClickOnDetail = function _KupPlanner_handleOnClickOnDetail() {
12938
- return true;
12939
- }, _KupPlanner_handleOnContextMenuOnTask = function _KupPlanner_handleOnContextMenuOnTask() {
12940
- return true;
12941
- }, _KupPlanner_handleOnContextMenuOnPhase = function _KupPlanner_handleOnContextMenuOnPhase() {
12942
- return true;
12943
- }, _KupPlanner_handleOnContextMenuOnDetail = function _KupPlanner_handleOnContextMenuOnDetail() {
12944
- return true;
12945
- }, _KupPlanner_emitOnChangeEventsReceived = function _KupPlanner_emitOnChangeEventsReceived(nativeEvent) {
12946
- let emitEvent = false;
12947
- if (!__classPrivateFieldGet(this, _KupPlanner_lastOnChangeReceived, "f")) {
12948
- emitEvent = true;
12949
- __classPrivateFieldSet(this, _KupPlanner_lastOnChangeReceived, new KupPlannerLastOnChangeReceived(nativeEvent), "f");
12950
- }
12951
- else if (!__classPrivateFieldGet(this, _KupPlanner_lastOnChangeReceived, "f").isEquivalent(nativeEvent)) {
12952
- __classPrivateFieldSet(this, _KupPlanner_lastOnChangeReceived, new KupPlannerLastOnChangeReceived(nativeEvent), "f");
12953
- emitEvent = true;
12954
- }
12955
- return emitEvent;
12956
- }, _KupPlanner_onFilter = function _KupPlanner_onFilter(e, isDetail) {
12957
- const tempData = {
12958
- columns: this.data.columns,
12959
- rows: [],
12960
- };
12961
- const value = e.target.value;
12962
- const data = isDetail ? this.detailData : this.data;
12963
- const tempRows = [];
12964
- for (let index = 0; index < data.rows.length; index++) {
12965
- const row = data.rows[index];
12966
- const cells = row.cells;
12967
- for (let index = 0; index < data.columns.length; index++) {
12968
- const column = data.columns[index];
12969
- const cell = cells[column.name];
12970
- if (cell) {
12971
- const dValue = kupManager$1.getCellValueForDisplay(data.columns[index], cell);
12972
- const found = !!(dValue.toLowerCase().indexOf(value.toLowerCase()) > -1);
12973
- if (found) {
12974
- tempRows.push({ row, weight: index });
12975
- break;
12976
- }
12977
- }
12978
- }
12979
- }
12980
- tempRows
12981
- .sort((a, b) => a.weight - b.weight)
12982
- .forEach((tempRow) => {
12983
- tempData.rows.push(tempRow.row);
12984
- });
12985
- const newGantt = isDetail
12986
- ? {
12987
- secondaryGantt: Object.assign(Object.assign({}, this.plannerProps.secondaryGantt), { items: __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_toDetails).call(this, tempData) }),
12988
- }
12989
- : {
12990
- mainGantt: Object.assign(Object.assign({}, this.plannerProps.mainGantt), { items: __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_toTasks).call(this, tempData) }),
12991
- };
12992
- this.plannerProps = Object.assign(Object.assign({}, this.plannerProps), newGantt);
12993
- }, _KupPlanner_getIconUrl = function _KupPlanner_getIconUrl(row, columnName) {
12994
- var _a;
12995
- let iconUrl = undefined;
12996
- if (columnName) {
12997
- const iconCell = row.cells[columnName];
12998
- let icon = (_a = iconCell === null || iconCell === void 0 ? void 0 : iconCell.data) === null || _a === void 0 ? void 0 : _a.resource;
12999
- if (!icon) {
13000
- icon = iconCell.value;
13001
- }
13002
- if (icon) {
13003
- iconUrl = index.getAssetPath('./assets/svg/' + icon + '.svg');
13004
- }
13005
- }
13006
- return iconUrl;
13007
- }, _KupPlanner_getIconColor = function _KupPlanner_getIconColor(row, columnName) {
13008
- var _a;
13009
- let iconColor = undefined;
13010
- if (columnName) {
13011
- const iconCell = row.cells[columnName];
13012
- iconColor = (_a = iconCell === null || iconCell === void 0 ? void 0 : iconCell.data) === null || _a === void 0 ? void 0 : _a.color;
13013
- if (iconColor) {
13014
- iconColor =
13015
- __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.colorCheck(iconColor).hexColor;
13016
- }
13017
- }
13018
- return iconColor;
13019
- };
12500
+ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12501
+ if (kind === "a" && !f)
12502
+ throw new TypeError("Private accessor was defined without a getter");
12503
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
12504
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
12505
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12506
+ };
12507
+ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
12508
+ if (kind === "m")
12509
+ throw new TypeError("Private method is not writable");
12510
+ if (kind === "a" && !f)
12511
+ throw new TypeError("Private accessor was defined without a setter");
12512
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
12513
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
12514
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
12515
+ };
12516
+ var _KupPlanner_instances, _KupPlanner_kupManager, _KupPlanner_lastOnChangeReceived, _KupPlanner_rootPlanner, _KupPlanner_phases, _KupPlanner_storedSettings, _KupPlanner_renderReactPlannerElement, _KupPlanner_toTasks, _KupPlanner_toDetails, _KupPlanner_getTask, _KupPlanner_removePhases, _KupPlanner_handleOnClickOnTask, _KupPlanner_handleOnClickOnPhase, _KupPlanner_handleOnClickOnDetail, _KupPlanner_handleOnContextMenuOnTask, _KupPlanner_handleOnContextMenuOnPhase, _KupPlanner_handleOnContextMenuOnDetail, _KupPlanner_emitOnChangeEventsReceived, _KupPlanner_onFilter, _KupPlanner_getFilteredRows, _KupPlanner_getIconUrl, _KupPlanner_getIconColor;
12517
+ const KupPlanner = class {
12518
+ constructor(hostRef) {
12519
+ index.registerInstance(this, hostRef);
12520
+ this.kupClick = index.createEvent(this, "kup-planner-click", 6);
12521
+ this.kupDateChange = index.createEvent(this, "kup-planner-datechange", 6);
12522
+ this.kupReady = index.createEvent(this, "kup-planner-ready", 6);
12523
+ this.kupContextMenu = index.createEvent(this, "kup-planner-contextmenu", 6);
12524
+ this.kupDidUnload = index.createEvent(this, "kup-planner-didunload", 6);
12525
+ _KupPlanner_instances.add(this);
12526
+ this.state = new KupPlannerState();
12527
+ /*-------------------------------------------------*/
12528
+ /* I n t e r n a l V a r i a b l e s */
12529
+ /*-------------------------------------------------*/
12530
+ _KupPlanner_kupManager.set(this, kupManager$1.kupManagerInstance());
12531
+ _KupPlanner_lastOnChangeReceived.set(this, void 0);
12532
+ _KupPlanner_rootPlanner.set(this, void 0);
12533
+ _KupPlanner_phases.set(this, {});
12534
+ // no re-render
12535
+ _KupPlanner_storedSettings.set(this, void 0);
12536
+ this.stateId = '';
12537
+ this.store = undefined;
12538
+ this.customStyle = '';
12539
+ this.data = undefined;
12540
+ this.detailData = undefined;
12541
+ this.detailColorCol = undefined;
12542
+ this.detailColumns = undefined;
12543
+ this.detailDates = undefined;
12544
+ this.detailFilter = undefined;
12545
+ this.detailHeight = undefined;
12546
+ this.detailIconCol = undefined;
12547
+ this.detailIdCol = undefined;
12548
+ this.detailNameCol = undefined;
12549
+ this.detailPrevDates = undefined;
12550
+ this.detailInitialScrollX = undefined;
12551
+ this.detailInitialScrollY = undefined;
12552
+ this.listCellWidth = '300px';
12553
+ this.maxWidth = '90vw';
12554
+ this.phaseColorCol = undefined;
12555
+ this.phaseColumns = undefined;
12556
+ this.phaseColParDep = undefined;
12557
+ this.phaseDates = undefined;
12558
+ this.phaseIconCol = undefined;
12559
+ this.phaseIdCol = undefined;
12560
+ this.phaseNameCol = undefined;
12561
+ this.phasePrevDates = undefined;
12562
+ this.readOnly = false;
12563
+ this.showSecondaryDates = false;
12564
+ this.taskColumns = undefined;
12565
+ this.taskDates = undefined;
12566
+ this.taskFilter = undefined;
12567
+ this.taskHeight = undefined;
12568
+ this.taskIconCol = undefined;
12569
+ this.taskIdCol = undefined;
12570
+ this.taskInitialScrollX = undefined;
12571
+ this.taskInitialScrollY = undefined;
12572
+ this.taskNameCol = undefined;
12573
+ this.taskPrevDates = undefined;
12574
+ this.titleMess = undefined;
12575
+ this.viewMode = 'month';
12576
+ this.plannerProps = undefined;
12577
+ }
12578
+ initWithPersistedState() {
12579
+ if (this.store && this.stateId) {
12580
+ const state = this.store.getState(this.stateId);
12581
+ if (state != null) {
12582
+ __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").debug.logMessage(this, 'Initializing stateId ' + this.stateId);
12583
+ // *** PROPS ***
12584
+ this.detailFilter = state.detailFilter;
12585
+ this.showSecondaryDates = state.showSecondaryDates;
12586
+ this.detailInitialScrollX = state.detailInitialScrollX;
12587
+ this.detailInitialScrollY = state.detailInitialScrollY;
12588
+ this.taskFilter = state.taskFilter;
12589
+ this.taskInitialScrollX = state.taskInitialScrollX;
12590
+ this.taskInitialScrollY = state.taskInitialScrollY;
12591
+ this.viewMode = state.viewMode;
12592
+ }
12593
+ }
12594
+ }
12595
+ persistState() {
12596
+ if (this.store && this.stateId) {
12597
+ let somethingChanged = false;
12598
+ if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.detailFilter, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailFilter)) {
12599
+ this.state.detailFilter = __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailFilter;
12600
+ somethingChanged = true;
12601
+ }
12602
+ if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.showSecondaryDates, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").showSecondaryDates)) {
12603
+ this.state.showSecondaryDates =
12604
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").showSecondaryDates;
12605
+ somethingChanged = true;
12606
+ }
12607
+ if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.detailInitialScrollX, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollX)) {
12608
+ this.state.detailInitialScrollX =
12609
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollX;
12610
+ somethingChanged = true;
12611
+ }
12612
+ if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.detailInitialScrollY, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollY)) {
12613
+ this.state.detailInitialScrollY =
12614
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollY;
12615
+ somethingChanged = true;
12616
+ }
12617
+ if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.taskFilter, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskFilter)) {
12618
+ this.state.taskFilter = __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskFilter;
12619
+ somethingChanged = true;
12620
+ }
12621
+ if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.taskInitialScrollX, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollX)) {
12622
+ this.state.taskInitialScrollX =
12623
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollX;
12624
+ somethingChanged = true;
12625
+ }
12626
+ if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.taskInitialScrollY, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollY)) {
12627
+ this.state.taskInitialScrollY =
12628
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollY;
12629
+ somethingChanged = true;
12630
+ }
12631
+ if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.viewMode, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").viewMode)) {
12632
+ this.state.viewMode = __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").viewMode;
12633
+ somethingChanged = true;
12634
+ }
12635
+ if (somethingChanged) {
12636
+ __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").debug.logMessage(this, 'Persisting stateId ' + this.stateId);
12637
+ this.store.persistState(this.stateId, this.state);
12638
+ }
12639
+ }
12640
+ }
12641
+ dataChanged() {
12642
+ __classPrivateFieldSet(this, _KupPlanner_phases, {}, "f");
12643
+ }
12644
+ /*-------------------------------------------------*/
12645
+ /* P u b l i c M e t h o d s */
12646
+ /*-------------------------------------------------*/
12647
+ /**
12648
+ * Used to retrieve component's props values.
12649
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
12650
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
12651
+ */
12652
+ async getProps(descriptions) {
12653
+ return kupManager$1.getProps(this, KupPlannerProps, descriptions);
12654
+ }
12655
+ /**
12656
+ * This method is used to trigger a new render of the component.
12657
+ */
12658
+ async refresh() {
12659
+ index.forceUpdate(this);
12660
+ }
12661
+ /**
12662
+ * Sets the props to the component.
12663
+ * @param {GenericObject} props - Object containing props that will be set to the component.
12664
+ */
12665
+ async setProps(props) {
12666
+ kupManager$1.setProps(this, KupPlannerProps, props);
12667
+ }
12668
+ /**
12669
+ * Add a list of phases to the project
12670
+ * @param taskId
12671
+ * @param data - Matrix which contains project phases
12672
+ */
12673
+ async addPhases(taskId, data) {
12674
+ var _a;
12675
+ const task = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getTask).call(this, taskId);
12676
+ if (task) {
12677
+ __classPrivateFieldGet(this, _KupPlanner_phases, "f")[taskId] = data;
12678
+ task.phases = (_a = data.rows) === null || _a === void 0 ? void 0 : _a.filter((row) => isAtLeastOneDateValid(row.cells[this.phaseDates[0]], row.cells[this.phaseDates[1]])).map((row) => {
12679
+ const datesSanitized = sanitizeAllDates(row.cells[this.phaseDates[0]], row.cells[this.phaseDates[1]], row.cells[this.phasePrevDates[0]], row.cells[this.phasePrevDates[1]]);
12680
+ const valuesToShow = getValuesToShow(row, this.phaseIdCol, this.phaseNameCol, data.columns, this.phaseColumns, () => this.phaseColumns.map((col) => col == this.phaseDates[0]
12681
+ ? '#START#'
12682
+ : col == this.phaseDates[1]
12683
+ ? '#END#'
12684
+ : kupManager$1.getCellValueForDisplay(data.columns.find((kCol) => kCol.name == col), row.cells[col])));
12685
+ let iconUrl = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconUrl).call(this, row, this.phaseIconCol);
12686
+ let iconColor = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconColor).call(this, row, this.phaseIconCol);
12687
+ let phase = {
12688
+ taskRow: task.taskRow,
12689
+ phaseRow: row,
12690
+ id: task.id + '_' + row.cells[this.phaseIdCol].value,
12691
+ phaseRowId: row.id,
12692
+ taskRowId: task.taskRowId,
12693
+ name: row.cells[this.phaseNameCol].value,
12694
+ startDate: datesSanitized.dateValues[0],
12695
+ endDate: datesSanitized.dateValues[1],
12696
+ secondaryStartDate: datesSanitized.secDateValues[0],
12697
+ secondaryEndDate: datesSanitized.secDateValues[1],
12698
+ type: 'task',
12699
+ color: row.cells[this.phaseColorCol].value,
12700
+ selectedColor: row.cells[this.phaseColorCol].value,
12701
+ valuesToShow: valuesToShow,
12702
+ rowType: KupPlannerGanttRowType.PHASE,
12703
+ icon: iconUrl
12704
+ ? { url: iconUrl, color: iconColor !== null && iconColor !== void 0 ? iconColor : '#595959' }
12705
+ : undefined,
12706
+ };
12707
+ return phase;
12708
+ });
12709
+ }
12710
+ this.plannerProps = Object.assign({}, this.plannerProps);
12711
+ }
12712
+ //---- Lifecycle hooks ----
12713
+ componentWillLoad() {
12714
+ __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").debug.logLoad(this, false);
12715
+ __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.register(this);
12716
+ // *** Store
12717
+ this.initWithPersistedState();
12718
+ __classPrivateFieldSet(this, _KupPlanner_storedSettings, {
12719
+ detailFilter: this.detailFilter,
12720
+ detailInitialScrollX: this.detailInitialScrollX,
12721
+ detailInitialScrollY: this.detailInitialScrollY,
12722
+ showSecondaryDates: this.showSecondaryDates,
12723
+ taskFilter: this.taskFilter,
12724
+ taskInitialScrollX: this.taskInitialScrollX,
12725
+ taskInitialScrollY: this.taskInitialScrollY,
12726
+ viewMode: this.viewMode,
12727
+ }, "f");
12728
+ }
12729
+ componentDidLoad() {
12730
+ let details = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_toDetails).call(this, __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getFilteredRows).call(this, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailFilter, true));
12731
+ const mainFilter = this.rootElement.shadowRoot.querySelector('#main-filter');
12732
+ fTextFieldMdc.FTextFieldMDC(mainFilter);
12733
+ const secondaryFilter = this.rootElement.shadowRoot.querySelector('#secondary-filter');
12734
+ if (details) {
12735
+ fTextFieldMdc.FTextFieldMDC(secondaryFilter);
12736
+ }
12737
+ // timeout for scroll events
12738
+ let scrollXTimeout;
12739
+ let taskScrollYTimeout;
12740
+ let detailScrollYTimeout;
12741
+ const scrollDelay = 1500;
12742
+ this.plannerProps = {
12743
+ mainGantt: {
12744
+ title: this.titleMess,
12745
+ items: __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_toTasks).call(this, __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getFilteredRows).call(this, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskFilter, false)),
12746
+ stylingOptions: Object.assign(Object.assign({}, defaultStylingOptions), { listCellWidth: this.listCellWidth }),
12747
+ filter: mainFilter,
12748
+ hideLabel: true,
12749
+ ganttHeight: this.taskHeight,
12750
+ showSecondaryDates: __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").showSecondaryDates,
12751
+ onClick: (nativeEvent) => this.handleOnClick(nativeEvent),
12752
+ onContextMenu: (event, row) => this.handleOnContextMenu(event, row),
12753
+ onDateChange: (nativeEvent) => this.handleOnDateChange(nativeEvent),
12754
+ initialScrollX: this.taskInitialScrollX,
12755
+ initialScrollY: this.taskInitialScrollY,
12756
+ readOnly: this.readOnly,
12757
+ onScrollY: (y) => {
12758
+ window.clearTimeout(taskScrollYTimeout);
12759
+ taskScrollYTimeout = window.setTimeout(() => this.handleTaskGanttScrollY(y), scrollDelay);
12760
+ },
12761
+ },
12762
+ secondaryGantt: details
12763
+ ? {
12764
+ title: '',
12765
+ items: details,
12766
+ stylingOptions: Object.assign(Object.assign({}, defaultStylingOptions), { listCellWidth: this.listCellWidth }),
12767
+ filter: secondaryFilter,
12768
+ hideLabel: true,
12769
+ ganttHeight: this.detailHeight,
12770
+ onClick: (nativeEvent) => this.handleOnClick(nativeEvent),
12771
+ onContextMenu: (event, row) => this.handleOnContextMenu(event, row),
12772
+ onDateChange: (nativeEvent) => this.handleOnDateChange(nativeEvent),
12773
+ initialScrollX: this.detailInitialScrollX,
12774
+ initialScrollY: this.detailInitialScrollY,
12775
+ readOnly: this.readOnly,
12776
+ onScrollY: (y) => {
12777
+ window.clearTimeout(detailScrollYTimeout);
12778
+ detailScrollYTimeout = window.setTimeout(() => this.handleDetailGanttScrollY(y), scrollDelay);
12779
+ },
12780
+ }
12781
+ : undefined,
12782
+ onSetDoubleView: (checked) => this.handleOnSetDoubleView(checked),
12783
+ onSetViewMode: (value) => this.handleOnSetViewMode(value),
12784
+ viewMode: this.viewMode,
12785
+ onScrollX: (x) => {
12786
+ window.clearTimeout(scrollXTimeout);
12787
+ scrollXTimeout = window.setTimeout(() => this.handleOnScrollX(x), scrollDelay);
12788
+ },
12789
+ };
12790
+ __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_renderReactPlannerElement).call(this);
12791
+ this.kupReady.emit({
12792
+ comp: this,
12793
+ id: this.rootElement.id,
12794
+ value: undefined,
12795
+ });
12796
+ if (this.taskFilter) {
12797
+ __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_onFilter).call(this, this.taskFilter);
12798
+ }
12799
+ if (this.detailFilter) {
12800
+ __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_onFilter).call(this, this.detailFilter, true);
12801
+ }
12802
+ __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").debug.logLoad(this, true);
12803
+ }
12804
+ componentWillRender() {
12805
+ __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_renderReactPlannerElement).call(this);
12806
+ }
12807
+ componentDidRender() {
12808
+ this.persistState();
12809
+ __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").debug.logRender(this, true);
12810
+ }
12811
+ onKupClick(event, taskAction) {
12812
+ this.kupClick.emit({
12813
+ comp: this,
12814
+ id: this.rootElement.id,
12815
+ value: event,
12816
+ taskAction: taskAction,
12817
+ });
12818
+ }
12819
+ onKupContextMenu(event, ganttRow, taskAction) {
12820
+ let row;
12821
+ let cell;
12822
+ let column;
12823
+ switch (ganttRow.type) {
12824
+ case 'project': {
12825
+ row = ganttRow.taskRow;
12826
+ cell = row.cells[this.taskIdCol];
12827
+ column = this.data.columns[this.taskIdCol];
12828
+ break;
12829
+ }
12830
+ case 'task': {
12831
+ row = ganttRow.phaseRow;
12832
+ cell = row.cells[this.phaseIdCol];
12833
+ //column = this.data.columns[this.taskIdCol];
12834
+ break;
12835
+ }
12836
+ case 'timeline': {
12837
+ row = ganttRow.detailRow;
12838
+ cell = row.cells[this.detailIdCol];
12839
+ column = this.data.columns[this.detailIdCol];
12840
+ break;
12841
+ }
12842
+ }
12843
+ this.kupContextMenu.emit({
12844
+ comp: this,
12845
+ id: this.rootElement.id,
12846
+ value: ganttRow,
12847
+ taskAction: taskAction,
12848
+ details: {
12849
+ cell: cell,
12850
+ column: column,
12851
+ originalEvent: event,
12852
+ row: row,
12853
+ },
12854
+ });
12855
+ }
12856
+ onKupDateChange(event, taskAction) {
12857
+ this.kupDateChange.emit({
12858
+ comp: this,
12859
+ id: this.rootElement.id,
12860
+ value: event,
12861
+ taskAction: taskAction,
12862
+ });
12863
+ }
12864
+ handleOnClick(nativeEvent) {
12865
+ switch (nativeEvent.rowType) {
12866
+ case KupPlannerGanttRowType.TASK:
12867
+ const taskAction = nativeEvent.phases
12868
+ ? KupPlannerTaskAction.onTaskClosing
12869
+ : KupPlannerTaskAction.onTaskOpening;
12870
+ if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnClickOnTask).call(this, nativeEvent)) {
12871
+ this.onKupClick(nativeEvent, taskAction);
12872
+ }
12873
+ break;
12874
+ case KupPlannerGanttRowType.PHASE:
12875
+ if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnClickOnPhase).call(this)) {
12876
+ this.onKupClick(nativeEvent, KupPlannerTaskAction.onClick);
12877
+ }
12878
+ break;
12879
+ case KupPlannerGanttRowType.DETAIL:
12880
+ if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnClickOnDetail).call(this)) {
12881
+ this.onKupClick(nativeEvent, KupPlannerTaskAction.onClick);
12882
+ }
12883
+ break;
12884
+ }
12885
+ }
12886
+ handleOnContextMenu(event, row) {
12887
+ switch (row.rowType) {
12888
+ case KupPlannerGanttRowType.TASK:
12889
+ if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnContextMenuOnTask).call(this)) {
12890
+ this.onKupContextMenu(event, row, KupPlannerTaskAction.onRightClick);
12891
+ }
12892
+ break;
12893
+ case KupPlannerGanttRowType.PHASE:
12894
+ if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnContextMenuOnPhase).call(this)) {
12895
+ this.onKupContextMenu(event, row, KupPlannerTaskAction.onRightClick);
12896
+ }
12897
+ break;
12898
+ case KupPlannerGanttRowType.DETAIL:
12899
+ if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnContextMenuOnDetail).call(this)) {
12900
+ this.onKupContextMenu(event, row, KupPlannerTaskAction.onRightClick);
12901
+ }
12902
+ break;
12903
+ }
12904
+ }
12905
+ handleOnSetDoubleView(checked) {
12906
+ var _a;
12907
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").showSecondaryDates = checked;
12908
+ if ((_a = this.plannerProps) === null || _a === void 0 ? void 0 : _a.mainGantt) {
12909
+ this.plannerProps.mainGantt.showSecondaryDates = checked;
12910
+ }
12911
+ this.persistState();
12912
+ }
12913
+ handleOnSetViewMode(value) {
12914
+ var _a;
12915
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").viewMode = value;
12916
+ if ((_a = this.plannerProps) === null || _a === void 0 ? void 0 : _a.mainGantt) {
12917
+ this.plannerProps.mainGantt.viewMode = value;
12918
+ }
12919
+ this.persistState();
12920
+ }
12921
+ handleOnScrollX(x) {
12922
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollX = x;
12923
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollX = x;
12924
+ this.persistState();
12925
+ }
12926
+ handleTaskGanttScrollY(y) {
12927
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollY = y;
12928
+ this.persistState();
12929
+ }
12930
+ handleDetailGanttScrollY(y) {
12931
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollY = y;
12932
+ this.persistState();
12933
+ }
12934
+ handleOnDateChange(nativeEvent) {
12935
+ if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_emitOnChangeEventsReceived).call(this, nativeEvent)) {
12936
+ if (nativeEvent.rowType != KupPlannerGanttRowType.DETAIL) {
12937
+ this.onKupDateChange(nativeEvent, KupPlannerTaskAction.onResize);
12938
+ }
12939
+ }
12940
+ }
12941
+ render() {
12942
+ var _a;
12943
+ return (index.h(index.Host, null, index.h("style", null, __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { id: GenericVariables.componentWrapperId, style: { maxWidth: this.maxWidth } }), index.h(fTextField.FTextField, { icon: kupManager$1.KupThemeIconValues.SEARCH, id: "main-filter", label: __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").language.translate(kupManager$1.KupLanguageSearch.SEARCH), onKeyDown: (e) => {
12944
+ if (e.key === 'Enter') {
12945
+ __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_onFilter).call(this, e.target.value);
12946
+ }
12947
+ }, value: this.taskFilter, wrapperClass: "filter" }), ((_a = this.detailData) === null || _a === void 0 ? void 0 : _a.rows) && this.detailData.rows.length > 0 ? (index.h(fTextField.FTextField, { icon: kupManager$1.KupThemeIconValues.SEARCH, id: "secondary-filter", label: __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").language.translate(kupManager$1.KupLanguageSearch.SEARCH), onKeyDown: (e) => {
12948
+ if (e.key === 'Enter') {
12949
+ __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_onFilter).call(this, e.target.value, true);
12950
+ }
12951
+ }, value: this.detailFilter, wrapperClass: "filter" })) : null));
12952
+ }
12953
+ disconnectedCallback() {
12954
+ __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.unregister(this);
12955
+ this.kupDidUnload.emit({
12956
+ comp: this,
12957
+ id: this.rootElement.id,
12958
+ storedSettings: __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f"),
12959
+ });
12960
+ }
12961
+ get rootElement() { return index.getElement(this); }
12962
+ static get watchers() { return {
12963
+ "data": ["dataChanged"]
12964
+ }; }
12965
+ };
12966
+ _KupPlanner_kupManager = new WeakMap(), _KupPlanner_lastOnChangeReceived = new WeakMap(), _KupPlanner_rootPlanner = new WeakMap(), _KupPlanner_phases = new WeakMap(), _KupPlanner_storedSettings = new WeakMap(), _KupPlanner_instances = new WeakSet(), _KupPlanner_renderReactPlannerElement = function _KupPlanner_renderReactPlannerElement() {
12967
+ var _a;
12968
+ (_a = __classPrivateFieldGet(this, _KupPlanner_rootPlanner, "f")) === null || _a === void 0 ? void 0 : _a.unmount();
12969
+ const componentWrapperElement = this.rootElement.shadowRoot.getElementById(GenericVariables.componentWrapperId);
12970
+ if (componentWrapperElement) {
12971
+ __classPrivateFieldSet(this, _KupPlanner_rootPlanner, client.createRoot(componentWrapperElement), "f");
12972
+ __classPrivateFieldGet(this, _KupPlanner_rootPlanner, "f").render(react.createElement(Planner, this.plannerProps));
12973
+ }
12974
+ }, _KupPlanner_toTasks = function _KupPlanner_toTasks(data) {
12975
+ var _a;
12976
+ if (!data || !data.rows) {
12977
+ return [];
12978
+ }
12979
+ let tasks = (_a = data.rows) === null || _a === void 0 ? void 0 : _a.filter((row) => isAtLeastOneDateValid(row.cells[this.taskDates[0]], row.cells[this.taskDates[1]])).map((row) => {
12980
+ const datesSanitized = sanitizeAllDates(row.cells[this.taskDates[0]], row.cells[this.taskDates[1]], row.cells[this.taskPrevDates[0]], row.cells[this.taskPrevDates[1]]);
12981
+ const valuesToShow = getValuesToShow(row, this.taskIdCol, this.taskNameCol, data.columns, this.taskColumns, () => this.taskColumns.map((col) => col == this.taskDates[0]
12982
+ ? '#START#'
12983
+ : col == this.taskDates[1]
12984
+ ? '#END#'
12985
+ : kupManager$1.getCellValueForDisplay(data.columns.find((kCol) => kCol.name == col), row.cells[col])));
12986
+ let iconUrl = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconUrl).call(this, row, this.taskIconCol);
12987
+ let iconColor = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconColor).call(this, row, this.taskIconCol);
12988
+ let task = {
12989
+ taskRow: row,
12990
+ taskRowId: row.id,
12991
+ id: row.cells[this.taskIdCol].value,
12992
+ name: row.cells[this.taskNameCol].value,
12993
+ startDate: datesSanitized.dateValues[0],
12994
+ endDate: datesSanitized.dateValues[1],
12995
+ secondaryStartDate: datesSanitized.secDateValues[0],
12996
+ secondaryEndDate: datesSanitized.secDateValues[1],
12997
+ type: 'project',
12998
+ valuesToShow: valuesToShow,
12999
+ rowType: KupPlannerGanttRowType.TASK,
13000
+ icon: iconUrl
13001
+ ? { url: iconUrl, color: iconColor !== null && iconColor !== void 0 ? iconColor : '#595959' }
13002
+ : undefined,
13003
+ };
13004
+ return task;
13005
+ });
13006
+ return tasks;
13007
+ }, _KupPlanner_toDetails = function _KupPlanner_toDetails(data) {
13008
+ if (!data || !data.rows) {
13009
+ return undefined;
13010
+ }
13011
+ let details = [];
13012
+ data.rows
13013
+ .filter((row) => isAtLeastOneDateValid(row.cells[this.detailDates[0]], row.cells[this.detailDates[1]]))
13014
+ .forEach((row) => {
13015
+ var _a, _b;
13016
+ const detailId = row.cells[this.detailIdCol].value;
13017
+ const detailNameId = row.cells[this.detailNameCol].value;
13018
+ const datesSanitized = sanitizeAllDates(row.cells[this.detailDates[0]], row.cells[this.detailDates[1]]);
13019
+ const valuesToShow = getValuesToShow(row, this.detailIdCol, this.detailNameCol, data.columns, this.detailColumns);
13020
+ let detail = details.find((det) => det.id == detailId);
13021
+ if (!detail) {
13022
+ detail = {
13023
+ id: detailId,
13024
+ name: detailNameId,
13025
+ detailRow: row,
13026
+ type: 'timeline',
13027
+ valuesToShow: valuesToShow,
13028
+ rowType: KupPlannerGanttRowType.DETAIL,
13029
+ schedule: [],
13030
+ };
13031
+ details.push(detail);
13032
+ }
13033
+ let iconUrl = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconUrl).call(this, row, this.detailIconCol);
13034
+ let iconColor = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconColor).call(this, row, this.detailIconCol);
13035
+ detail.schedule.push({
13036
+ startDate: datesSanitized.dateValues[0],
13037
+ endDate: datesSanitized.dateValues[1],
13038
+ color: this.detailColorCol
13039
+ ? (_a = row.cells[this.detailColorCol].value) !== null && _a !== void 0 ? _a : '#D9D9D8'
13040
+ : '#D9D9D8',
13041
+ selectedColor: this.detailColorCol
13042
+ ? (_b = row.cells[this.detailColorCol].value) !== null && _b !== void 0 ? _b : '#D9D9D8'
13043
+ : '#D9D9D8',
13044
+ icon: iconUrl
13045
+ ? { url: iconUrl, color: iconColor !== null && iconColor !== void 0 ? iconColor : '#595959' }
13046
+ : undefined,
13047
+ });
13048
+ });
13049
+ return details;
13050
+ }, _KupPlanner_getTask = function _KupPlanner_getTask(taskId) {
13051
+ return this.plannerProps.mainGantt.items.find((task) => task.id == taskId);
13052
+ }, _KupPlanner_removePhases = function _KupPlanner_removePhases(taskId) {
13053
+ const task = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getTask).call(this, taskId);
13054
+ if (task)
13055
+ task.phases = undefined;
13056
+ this.plannerProps = Object.assign({}, this.plannerProps);
13057
+ }, _KupPlanner_handleOnClickOnTask = function _KupPlanner_handleOnClickOnTask(nativeEvent) {
13058
+ const task = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getTask).call(this, nativeEvent.id);
13059
+ if (task === null || task === void 0 ? void 0 : task.phases) {
13060
+ __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_removePhases).call(this, task.id);
13061
+ }
13062
+ return true;
13063
+ }, _KupPlanner_handleOnClickOnPhase = function _KupPlanner_handleOnClickOnPhase() {
13064
+ return true;
13065
+ }, _KupPlanner_handleOnClickOnDetail = function _KupPlanner_handleOnClickOnDetail() {
13066
+ return true;
13067
+ }, _KupPlanner_handleOnContextMenuOnTask = function _KupPlanner_handleOnContextMenuOnTask() {
13068
+ return true;
13069
+ }, _KupPlanner_handleOnContextMenuOnPhase = function _KupPlanner_handleOnContextMenuOnPhase() {
13070
+ return true;
13071
+ }, _KupPlanner_handleOnContextMenuOnDetail = function _KupPlanner_handleOnContextMenuOnDetail() {
13072
+ return true;
13073
+ }, _KupPlanner_emitOnChangeEventsReceived = function _KupPlanner_emitOnChangeEventsReceived(nativeEvent) {
13074
+ let emitEvent = false;
13075
+ if (!__classPrivateFieldGet(this, _KupPlanner_lastOnChangeReceived, "f")) {
13076
+ emitEvent = true;
13077
+ __classPrivateFieldSet(this, _KupPlanner_lastOnChangeReceived, new KupPlannerLastOnChangeReceived(nativeEvent), "f");
13078
+ }
13079
+ else if (!__classPrivateFieldGet(this, _KupPlanner_lastOnChangeReceived, "f").isEquivalent(nativeEvent)) {
13080
+ __classPrivateFieldSet(this, _KupPlanner_lastOnChangeReceived, new KupPlannerLastOnChangeReceived(nativeEvent), "f");
13081
+ emitEvent = true;
13082
+ }
13083
+ return emitEvent;
13084
+ }, _KupPlanner_onFilter = function _KupPlanner_onFilter(value, isDetail) {
13085
+ if (isDetail) {
13086
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailFilter = value;
13087
+ }
13088
+ else {
13089
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskFilter = value;
13090
+ }
13091
+ const newGantt = isDetail
13092
+ ? {
13093
+ secondaryGantt: Object.assign(Object.assign({}, this.plannerProps.secondaryGantt), { items: __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_toDetails).call(this, __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getFilteredRows).call(this, value, isDetail)) }),
13094
+ }
13095
+ : {
13096
+ mainGantt: Object.assign(Object.assign({}, this.plannerProps.mainGantt), { items: __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_toTasks).call(this, __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getFilteredRows).call(this, value, isDetail)) }),
13097
+ };
13098
+ this.plannerProps = Object.assign(Object.assign({}, this.plannerProps), newGantt);
13099
+ this.persistState();
13100
+ }, _KupPlanner_getFilteredRows = function _KupPlanner_getFilteredRows(value, isDetail) {
13101
+ const data = isDetail ? this.detailData : this.data;
13102
+ if (!data || !data.rows || data.rows.length == 0) {
13103
+ return undefined;
13104
+ }
13105
+ if (!value) {
13106
+ return data;
13107
+ }
13108
+ const tempData = {
13109
+ columns: this.data.columns,
13110
+ rows: [],
13111
+ };
13112
+ const tempRows = [];
13113
+ for (let index = 0; index < data.rows.length; index++) {
13114
+ const row = data.rows[index];
13115
+ const cells = row.cells;
13116
+ for (let index = 0; index < data.columns.length; index++) {
13117
+ const column = data.columns[index];
13118
+ const cell = cells[column.name];
13119
+ if (cell) {
13120
+ const dValue = kupManager$1.getCellValueForDisplay(data.columns[index], cell);
13121
+ const found = !!(dValue.toLowerCase().indexOf(value.toLowerCase()) > -1);
13122
+ if (found) {
13123
+ tempRows.push({ row, weight: index });
13124
+ break;
13125
+ }
13126
+ }
13127
+ }
13128
+ }
13129
+ tempRows
13130
+ .sort((a, b) => a.weight - b.weight)
13131
+ .forEach((tempRow) => {
13132
+ tempData.rows.push(tempRow.row);
13133
+ });
13134
+ return tempData;
13135
+ }, _KupPlanner_getIconUrl = function _KupPlanner_getIconUrl(row, columnName) {
13136
+ var _a;
13137
+ let iconUrl = undefined;
13138
+ if (columnName) {
13139
+ const iconCell = row.cells[columnName];
13140
+ let icon = (_a = iconCell === null || iconCell === void 0 ? void 0 : iconCell.data) === null || _a === void 0 ? void 0 : _a.resource;
13141
+ if (!icon) {
13142
+ icon = iconCell.value;
13143
+ }
13144
+ if (icon) {
13145
+ iconUrl = index.getAssetPath('./assets/svg/' + icon + '.svg');
13146
+ }
13147
+ }
13148
+ return iconUrl;
13149
+ }, _KupPlanner_getIconColor = function _KupPlanner_getIconColor(row, columnName) {
13150
+ var _a;
13151
+ let iconColor = undefined;
13152
+ if (columnName) {
13153
+ const iconCell = row.cells[columnName];
13154
+ iconColor = (_a = iconCell === null || iconCell === void 0 ? void 0 : iconCell.data) === null || _a === void 0 ? void 0 : _a.color;
13155
+ if (iconColor) {
13156
+ iconColor =
13157
+ __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.colorCheck(iconColor).hexColor;
13158
+ }
13159
+ }
13160
+ return iconColor;
13161
+ };
13020
13162
  KupPlanner.style = kupPlannerCss;
13021
13163
 
13022
13164
  exports.kup_planner = KupPlanner;