@sme.up/ketchup 9.2.0 → 9.3.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 (690) hide show
  1. package/dist/cjs/bar.helpers-f46a5a83.js +372 -0
  2. package/dist/cjs/f-button-4caf541a.js +105 -0
  3. package/dist/cjs/{f-button-declarations-3fd791a8.js → f-button-declarations-51ef6d9a.js} +5 -5
  4. package/dist/cjs/f-cell-979c26ea.js +670 -0
  5. package/dist/cjs/f-checkbox-41864e53.js +29 -0
  6. package/dist/cjs/f-chip-8957940b.js +133 -0
  7. package/dist/cjs/f-image-e16fe10d.js +115 -0
  8. package/dist/cjs/f-paginator-utils-f2dd0322.js +1577 -0
  9. package/dist/cjs/f-text-field-2fac8078.js +216 -0
  10. package/dist/cjs/{f-text-field-mdc-4fda9705.js → f-text-field-mdc-08a06162.js} +19 -19
  11. package/dist/cjs/{index-d8e5eb5f.js → index-8f2f4159.js} +27 -7
  12. package/dist/cjs/index.cjs.js +4 -3
  13. package/dist/cjs/ketchup.cjs.js +3 -3
  14. package/dist/cjs/kup-accordion.cjs.entry.js +182 -181
  15. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +14562 -14561
  16. package/dist/cjs/kup-box.cjs.entry.js +1231 -1230
  17. package/dist/cjs/kup-calendar.cjs.entry.js +376 -375
  18. package/dist/cjs/kup-card-list.cjs.entry.js +233 -232
  19. package/dist/cjs/kup-cell.cjs.entry.js +153 -152
  20. package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +1317 -0
  21. package/dist/cjs/kup-dashboard.cjs.entry.js +369 -368
  22. package/dist/cjs/kup-dates-0e59b05d.js +782 -0
  23. package/dist/cjs/kup-drawer.cjs.entry.js +122 -121
  24. package/dist/cjs/kup-echart.cjs.entry.js +1192 -1191
  25. package/dist/cjs/kup-family-tree.cjs.entry.js +400 -399
  26. package/dist/cjs/kup-gantt_10.cjs.entry.js +1076 -0
  27. package/dist/cjs/kup-grid.cjs.entry.js +82 -81
  28. package/dist/cjs/kup-iframe.cjs.entry.js +80 -79
  29. package/dist/cjs/kup-image-list.cjs.entry.js +224 -223
  30. package/dist/cjs/kup-lazy.cjs.entry.js +162 -161
  31. package/dist/cjs/kup-magic-box.cjs.entry.js +270 -269
  32. package/dist/cjs/{kup-manager-7334c396.js → kup-manager-c63f4fb9.js} +5770 -6516
  33. package/dist/cjs/kup-nav-bar.cjs.entry.js +110 -109
  34. package/dist/cjs/kup-numeric-picker.cjs.entry.js +352 -351
  35. package/dist/cjs/kup-photo-frame.cjs.entry.js +126 -125
  36. package/dist/cjs/kup-planner-declarations-d3dec885.js +93 -0
  37. package/dist/cjs/kup-planner-renderer-helper-c2394940.js +410 -0
  38. package/dist/cjs/kup-planner-renderer.cjs.entry.js +278 -0
  39. package/dist/cjs/kup-planner-time-formatter-a74e70f0.js +93 -0
  40. package/dist/cjs/kup-planner.cjs.entry.js +718 -13596
  41. package/dist/cjs/kup-probe.cjs.entry.js +228 -227
  42. package/dist/cjs/kup-qlik.cjs.entry.js +126 -125
  43. package/dist/cjs/kup-snackbar.cjs.entry.js +102 -101
  44. package/dist/cjs/loader.cjs.js +2 -2
  45. package/dist/collection/assets/index.js +16 -0
  46. package/dist/collection/assets/planner-example-1.js +6337 -0
  47. package/dist/collection/assets/planner-example-2.js +5650 -0
  48. package/dist/collection/assets/planner-example-3.js +6548 -0
  49. package/dist/collection/assets/planner-example-4.js +28473 -0
  50. package/dist/collection/assets/planner.js +3255 -4900
  51. package/dist/collection/collection-manifest.json +16 -1
  52. package/dist/collection/components/kup-accordion/kup-accordion-declarations.js +3 -3
  53. package/dist/collection/components/kup-accordion/kup-accordion.js +423 -423
  54. package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +14 -14
  55. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +882 -882
  56. package/dist/collection/components/kup-badge/kup-badge-declarations.js +3 -3
  57. package/dist/collection/components/kup-badge/kup-badge.js +262 -262
  58. package/dist/collection/components/kup-box/kup-box-declarations.js +26 -26
  59. package/dist/collection/components/kup-box/kup-box-state.js +13 -13
  60. package/dist/collection/components/kup-box/kup-box.js +2068 -2068
  61. package/dist/collection/components/kup-button/kup-button-declarations.js +11 -11
  62. package/dist/collection/components/kup-button/kup-button.js +560 -560
  63. package/dist/collection/components/kup-button-list/kup-button-list-declarations.js +6 -6
  64. package/dist/collection/components/kup-button-list/kup-button-list.e2e.js +141 -141
  65. package/dist/collection/components/kup-button-list/kup-button-list.js +497 -497
  66. package/dist/collection/components/kup-calendar/kup-calendar-declarations.js +17 -17
  67. package/dist/collection/components/kup-calendar/kup-calendar.js +681 -681
  68. package/dist/collection/components/kup-card/box/kup-card-box.js +161 -161
  69. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +6 -6
  70. package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +324 -324
  71. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +250 -250
  72. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +141 -141
  73. package/dist/collection/components/kup-card/built-in/kup-card-message-box.js +3 -3
  74. package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +98 -98
  75. package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +44 -44
  76. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +135 -135
  77. package/dist/collection/components/kup-card/free/kup-card-free.js +6 -6
  78. package/dist/collection/components/kup-card/kup-card-declarations.js +53 -53
  79. package/dist/collection/components/kup-card/kup-card-helper.js +155 -155
  80. package/dist/collection/components/kup-card/kup-card.js +767 -767
  81. package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +174 -174
  82. package/dist/collection/components/kup-card/standard/kup-card-standard.js +474 -474
  83. package/dist/collection/components/kup-card-list/kup-card-list-declarations.js +16 -16
  84. package/dist/collection/components/kup-card-list/kup-card-list.js +676 -676
  85. package/dist/collection/components/kup-cell/kup-cell-declarations.js +4 -4
  86. package/dist/collection/components/kup-cell/kup-cell.js +382 -382
  87. package/dist/collection/components/kup-chart/kup-chart-builder.js +80 -80
  88. package/dist/collection/components/kup-chart/kup-chart-declarations.js +36 -36
  89. package/dist/collection/components/kup-chart/kup-chart.js +1043 -1043
  90. package/dist/collection/components/kup-checkbox/kup-checkbox-declarations.js +6 -6
  91. package/dist/collection/components/kup-checkbox/kup-checkbox.js +417 -417
  92. package/dist/collection/components/kup-chip/kup-chip-declarations.js +5 -5
  93. package/dist/collection/components/kup-chip/kup-chip.js +538 -538
  94. package/dist/collection/components/kup-color-picker/kup-color-picker-declarations.js +5 -5
  95. package/dist/collection/components/kup-color-picker/kup-color-picker.js +511 -511
  96. package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +8 -8
  97. package/dist/collection/components/kup-combobox/kup-combobox.js +796 -796
  98. package/dist/collection/components/kup-dashboard/kup-dashboard-declarations.js +3 -3
  99. package/dist/collection/components/kup-dashboard/kup-dashboard.js +562 -562
  100. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +95 -95
  101. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +729 -729
  102. package/dist/collection/components/kup-data-table/kup-data-table-state.js +33 -33
  103. package/dist/collection/components/kup-data-table/kup-data-table.js +5398 -5398
  104. package/dist/collection/components/kup-date-picker/kup-date-picker-declarations.js +8 -8
  105. package/dist/collection/components/kup-date-picker/kup-date-picker.js +796 -796
  106. package/dist/collection/components/kup-dialog/kup-dialog-declarations.js +7 -7
  107. package/dist/collection/components/kup-dialog/kup-dialog.js +451 -451
  108. package/dist/collection/components/kup-drawer/kup-drawer-declarations.js +2 -2
  109. package/dist/collection/components/kup-drawer/kup-drawer.e2e.js +6 -6
  110. package/dist/collection/components/kup-drawer/kup-drawer.js +374 -374
  111. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button-declarations.js +11 -11
  112. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +776 -776
  113. package/dist/collection/components/kup-echart/kup-echart-declarations.js +40 -40
  114. package/dist/collection/components/kup-echart/kup-echart.js +1606 -1606
  115. package/dist/collection/components/kup-family-tree/kup-family-tree-declarations.js +8 -8
  116. package/dist/collection/components/kup-family-tree/kup-family-tree.js +789 -789
  117. package/dist/collection/components/kup-form/kup-form-declarations.js +16 -16
  118. package/dist/collection/components/kup-form/kup-form.js +694 -694
  119. package/dist/collection/components/kup-gauge/kup-gauge-declarations.js +19 -19
  120. package/dist/collection/components/kup-gauge/kup-gauge.js +730 -730
  121. package/dist/collection/components/kup-grid/kup-grid-declarations.js +3 -3
  122. package/dist/collection/components/kup-grid/kup-grid.js +238 -238
  123. package/dist/collection/components/kup-iframe/kup-iframe-declarations.js +3 -3
  124. package/dist/collection/components/kup-iframe/kup-iframe.js +268 -268
  125. package/dist/collection/components/kup-image/canvas/kup-image-canvas-declarations.js +167 -167
  126. package/dist/collection/components/kup-image/canvas/kup-image-canvas-helper.js +16 -16
  127. package/dist/collection/components/kup-image/canvas/kup-image-canvas.js +221 -221
  128. package/dist/collection/components/kup-image/kup-image-declarations.js +9 -9
  129. package/dist/collection/components/kup-image/kup-image.js +471 -471
  130. package/dist/collection/components/kup-image-list/kup-image-list-declarations.js +3 -3
  131. package/dist/collection/components/kup-image-list/kup-image-list-state.js +7 -7
  132. package/dist/collection/components/kup-image-list/kup-image-list.js +502 -502
  133. package/dist/collection/components/kup-lazy/kup-lazy-declarations.js +7 -7
  134. package/dist/collection/components/kup-lazy/kup-lazy.js +417 -417
  135. package/dist/collection/components/kup-list/kup-list-declarations.js +18 -18
  136. package/dist/collection/components/kup-list/kup-list-helper.js +105 -105
  137. package/dist/collection/components/kup-list/kup-list.js +914 -914
  138. package/dist/collection/components/kup-magic-box/kup-magic-box-declarations.js +10 -10
  139. package/dist/collection/components/kup-magic-box/kup-magic-box.js +405 -405
  140. package/dist/collection/components/kup-nav-bar/kup-nav-bar-declarations.js +7 -7
  141. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +304 -304
  142. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker-declarations.js +9 -9
  143. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +847 -847
  144. package/dist/collection/components/kup-photo-frame/kup-photo-frame-declarations.js +3 -3
  145. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +359 -359
  146. package/dist/collection/components/kup-planner/kup-planner-declarations.js +69 -66
  147. package/dist/collection/components/kup-planner/kup-planner-helper.js +39 -39
  148. package/dist/collection/components/kup-planner/kup-planner-state.js +14 -14
  149. package/dist/collection/components/kup-planner/kup-planner.css +4 -482
  150. package/dist/collection/components/kup-planner/kup-planner.js +1777 -1675
  151. package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +117 -0
  152. package/dist/collection/components/kup-planner/utils/custom-task-list-header.module.css +79 -0
  153. package/dist/collection/components/kup-planner/utils/custom-task-list-table.js +280 -0
  154. package/dist/collection/components/kup-planner/utils/custom-tool-tip.js +5 -0
  155. package/dist/collection/components/kup-planner/utils/gantt-table.module.css +88 -0
  156. package/dist/collection/components/kup-planner/utils/helpers/bar.helpers.js +328 -0
  157. package/dist/collection/components/kup-planner/utils/helpers/other.helpers.js +48 -0
  158. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.css +40 -0
  159. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2302 -0
  160. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.css +31 -0
  161. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +466 -0
  162. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.css +60 -0
  163. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +1186 -0
  164. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +36 -0
  165. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +177 -0
  166. package/dist/collection/components/kup-planner/utils/kup-planner-adapted-types.js +1 -0
  167. package/dist/collection/components/kup-planner/utils/kup-planner-renderer-helper.js +396 -0
  168. package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +321 -0
  169. package/dist/collection/components/kup-planner/utils/kup-planner-time-formatter.js +87 -0
  170. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.css +30 -0
  171. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +49 -0
  172. package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +215 -0
  173. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +112 -0
  174. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +226 -0
  175. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.css +67 -0
  176. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +638 -0
  177. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +82 -0
  178. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.css +30 -0
  179. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +362 -0
  180. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.css +31 -0
  181. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +170 -0
  182. package/dist/collection/components/kup-probe/kup-probe.js +335 -335
  183. package/dist/collection/components/kup-progress-bar/kup-progress-bar-declarations.js +7 -7
  184. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +346 -346
  185. package/dist/collection/components/kup-qlik/kup-qlik.js +311 -311
  186. package/dist/collection/components/kup-radio/kup-radio-declarations.js +5 -5
  187. package/dist/collection/components/kup-radio/kup-radio.js +392 -392
  188. package/dist/collection/components/kup-rating/kup-rating-declarations.js +4 -4
  189. package/dist/collection/components/kup-rating/kup-rating.js +296 -296
  190. package/dist/collection/components/kup-snackbar/kup-snackbar-declarations.js +5 -5
  191. package/dist/collection/components/kup-snackbar/kup-snackbar.js +380 -380
  192. package/dist/collection/components/kup-spinner/kup-spinner-declarations.js +8 -8
  193. package/dist/collection/components/kup-spinner/kup-spinner.js +449 -449
  194. package/dist/collection/components/kup-state/mock-store.js +10 -10
  195. package/dist/collection/components/kup-switch/kup-switch-declarations.js +5 -5
  196. package/dist/collection/components/kup-switch/kup-switch.js +387 -387
  197. package/dist/collection/components/kup-tab-bar/kup-tab-bar-declarations.js +3 -3
  198. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +423 -423
  199. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +30 -30
  200. package/dist/collection/components/kup-text-field/kup-text-field.js +1220 -1220
  201. package/dist/collection/components/kup-time-picker/kup-time-picker-declarations.js +7 -7
  202. package/dist/collection/components/kup-time-picker/kup-time-picker.js +914 -914
  203. package/dist/collection/components/kup-tree/kup-tree-declarations.js +28 -28
  204. package/dist/collection/components/kup-tree/kup-tree-faker.js +233 -233
  205. package/dist/collection/components/kup-tree/kup-tree-state.js +13 -13
  206. package/dist/collection/components/kup-tree/kup-tree.js +2424 -2424
  207. package/dist/collection/f-components/f-button/f-button-declarations.js +5 -5
  208. package/dist/collection/f-components/f-button/f-button.js +76 -76
  209. package/dist/collection/f-components/f-cell/f-cell-declarations.js +125 -125
  210. package/dist/collection/f-components/f-cell/f-cell.js +407 -407
  211. package/dist/collection/f-components/f-checkbox/f-checkbox.js +10 -10
  212. package/dist/collection/f-components/f-chip/f-chip-declarations.js +4 -4
  213. package/dist/collection/f-components/f-chip/f-chip.js +82 -82
  214. package/dist/collection/f-components/f-image/f-image-declarations.js +1 -1
  215. package/dist/collection/f-components/f-image/f-image.js +79 -79
  216. package/dist/collection/f-components/f-paginator/f-paginator-declarations.js +2 -2
  217. package/dist/collection/f-components/f-paginator/f-paginator-utils.js +21 -21
  218. package/dist/collection/f-components/f-paginator/f-paginator.js +65 -65
  219. package/dist/collection/f-components/f-progress-bar/f-progress-bar.js +70 -70
  220. package/dist/collection/f-components/f-radio/f-radio.js +21 -21
  221. package/dist/collection/f-components/f-rating/f-rating.js +17 -17
  222. package/dist/collection/f-components/f-switch/f-switch.js +6 -6
  223. package/dist/collection/f-components/f-text-field/f-text-field-mdc.js +19 -19
  224. package/dist/collection/f-components/f-text-field/f-text-field.js +165 -165
  225. package/dist/collection/index.js +1 -1
  226. package/dist/collection/managers/kup-data/kup-data-cell-helper.js +47 -47
  227. package/dist/collection/managers/kup-data/kup-data-column-helper.js +220 -220
  228. package/dist/collection/managers/kup-data/kup-data-declarations.js +4 -4
  229. package/dist/collection/managers/kup-data/kup-data-node-helper.js +107 -107
  230. package/dist/collection/managers/kup-data/kup-data-row-helper.js +11 -11
  231. package/dist/collection/managers/kup-data/kup-data.js +468 -468
  232. package/dist/collection/managers/kup-dates/kup-dates-declarations.js +19 -19
  233. package/dist/collection/managers/kup-dates/kup-dates.js +637 -605
  234. package/dist/collection/managers/kup-debug/kup-debug-declarations.js +8 -8
  235. package/dist/collection/managers/kup-debug/kup-debug.js +626 -626
  236. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position-declarations.js +9 -9
  237. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +232 -232
  238. package/dist/collection/managers/kup-interact/kup-interact-declarations.js +11 -11
  239. package/dist/collection/managers/kup-interact/kup-interact.js +374 -374
  240. package/dist/collection/managers/kup-language/kup-language-declarations.js +127 -127
  241. package/dist/collection/managers/kup-language/kup-language.js +132 -132
  242. package/dist/collection/managers/kup-manager/kup-manager.js +257 -257
  243. package/dist/collection/managers/kup-math/kup-math-declarations.js +7 -7
  244. package/dist/collection/managers/kup-math/kup-math-helper.js +19 -19
  245. package/dist/collection/managers/kup-math/kup-math.js +374 -374
  246. package/dist/collection/managers/kup-objects/kup-objects.js +379 -379
  247. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +4 -4
  248. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +301 -301
  249. package/dist/collection/managers/kup-search/kup-search.js +65 -65
  250. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +134 -134
  251. package/dist/collection/managers/kup-theme/kup-theme.js +696 -696
  252. package/dist/collection/managers/kup-toolbar/kup-toolbar-declarations.js +3 -3
  253. package/dist/collection/managers/kup-toolbar/kup-toolbar.js +93 -93
  254. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +198 -198
  255. package/dist/collection/types/GenericTypes.js +47 -47
  256. package/dist/collection/utils/cell-utils.js +115 -115
  257. package/dist/collection/utils/filters/filters-column-menu.js +339 -339
  258. package/dist/collection/utils/filters/filters-declarations.js +4 -4
  259. package/dist/collection/utils/filters/filters-rows.js +215 -215
  260. package/dist/collection/utils/filters/filters-tree-items.js +96 -96
  261. package/dist/collection/utils/filters/filters.js +257 -257
  262. package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +14 -14
  263. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +710 -710
  264. package/dist/collection/utils/utils.js +37 -37
  265. package/dist/components/custom-task-list-header.js +44 -0
  266. package/dist/components/custom-task-list-table.js +121 -0
  267. package/dist/components/index.js +1 -1
  268. package/dist/components/kup-accordion.d.ts +2 -2
  269. package/dist/components/kup-accordion.js +331 -331
  270. package/dist/components/kup-autocomplete.d.ts +2 -2
  271. package/dist/components/kup-autocomplete2.js +21534 -21533
  272. package/dist/components/kup-badge.d.ts +2 -2
  273. package/dist/components/kup-box.d.ts +2 -2
  274. package/dist/components/kup-box2.js +1416 -1416
  275. package/dist/components/kup-button-list.d.ts +2 -2
  276. package/dist/components/kup-button.d.ts +2 -2
  277. package/dist/components/kup-calendar.d.ts +2 -2
  278. package/dist/components/kup-calendar.js +534 -533
  279. package/dist/components/kup-card-list.d.ts +2 -2
  280. package/dist/components/kup-card-list.js +401 -401
  281. package/dist/components/kup-card.d.ts +2 -2
  282. package/dist/components/kup-cell.d.ts +2 -2
  283. package/dist/components/kup-cell.js +303 -303
  284. package/dist/components/kup-chart.d.ts +2 -2
  285. package/dist/components/kup-checkbox.d.ts +2 -2
  286. package/dist/components/kup-chip.d.ts +2 -2
  287. package/dist/components/kup-color-picker.d.ts +2 -2
  288. package/dist/components/kup-combobox.d.ts +2 -2
  289. package/dist/components/kup-custom-task-list-header.d.ts +11 -0
  290. package/dist/components/kup-custom-task-list-header.js +6 -0
  291. package/dist/components/kup-custom-task-list-table.d.ts +11 -0
  292. package/dist/components/kup-custom-task-list-table.js +6 -0
  293. package/dist/components/kup-dashboard.d.ts +2 -2
  294. package/dist/components/kup-dashboard.js +520 -520
  295. package/dist/components/kup-data-table.d.ts +2 -2
  296. package/dist/components/kup-date-picker.d.ts +2 -2
  297. package/dist/components/kup-dates.js +777 -0
  298. package/dist/components/kup-dialog.d.ts +2 -2
  299. package/dist/components/kup-drawer.d.ts +2 -2
  300. package/dist/components/kup-drawer.js +278 -278
  301. package/dist/components/kup-dropdown-button.d.ts +2 -2
  302. package/dist/components/kup-echart.d.ts +2 -2
  303. package/dist/components/kup-echart2.js +1358 -1358
  304. package/dist/components/kup-family-tree.d.ts +2 -2
  305. package/dist/components/kup-family-tree.js +564 -564
  306. package/dist/components/kup-form.d.ts +2 -2
  307. package/dist/components/kup-gantt-calendar.d.ts +11 -0
  308. package/dist/components/kup-gantt-calendar.js +6 -0
  309. package/dist/components/kup-gantt-calendar2.js +323 -0
  310. package/dist/components/kup-gantt.d.ts +11 -0
  311. package/dist/components/kup-gantt.js +6 -0
  312. package/dist/components/kup-gantt2.js +822 -0
  313. package/dist/components/kup-gauge.d.ts +2 -2
  314. package/dist/components/kup-grid-renderer.d.ts +11 -0
  315. package/dist/components/kup-grid-renderer.js +6 -0
  316. package/dist/components/kup-grid-renderer2.js +1416 -0
  317. package/dist/components/kup-grid.d.ts +2 -2
  318. package/dist/components/kup-grid2.js +236 -236
  319. package/dist/components/kup-horizontal-scroll.d.ts +11 -0
  320. package/dist/components/kup-horizontal-scroll.js +6 -0
  321. package/dist/components/kup-horizontal-scroll2.js +77 -0
  322. package/dist/components/kup-iframe.d.ts +2 -2
  323. package/dist/components/kup-iframe.js +234 -234
  324. package/dist/components/kup-image-list.d.ts +2 -2
  325. package/dist/components/kup-image-list.js +377 -377
  326. package/dist/components/kup-image.d.ts +2 -2
  327. package/dist/components/kup-lazy.d.ts +2 -2
  328. package/dist/components/kup-lazy.js +319 -319
  329. package/dist/components/kup-list.d.ts +2 -2
  330. package/dist/components/kup-magic-box.d.ts +2 -2
  331. package/dist/components/kup-magic-box.js +432 -432
  332. package/dist/components/kup-manager.js +5748 -6491
  333. package/dist/components/kup-nav-bar.d.ts +2 -2
  334. package/dist/components/kup-nav-bar.js +263 -263
  335. package/dist/components/kup-numeric-picker.d.ts +2 -2
  336. package/dist/components/kup-numeric-picker.js +514 -514
  337. package/dist/components/kup-photo-frame.d.ts +2 -2
  338. package/dist/components/kup-photo-frame.js +281 -281
  339. package/dist/components/kup-planner-renderer-helper.js +399 -0
  340. package/dist/components/kup-planner-renderer.d.ts +11 -0
  341. package/dist/components/kup-planner-renderer.js +6 -0
  342. package/dist/components/kup-planner-renderer2.js +390 -0
  343. package/dist/components/kup-planner.d.ts +2 -2
  344. package/dist/components/kup-planner.js +1005 -13792
  345. package/dist/components/kup-probe.d.ts +2 -2
  346. package/dist/components/kup-probe.js +379 -379
  347. package/dist/components/kup-progress-bar.d.ts +2 -2
  348. package/dist/components/kup-qlik.d.ts +2 -2
  349. package/dist/components/kup-qlik.js +282 -282
  350. package/dist/components/kup-radio.d.ts +2 -2
  351. package/dist/components/kup-rating.d.ts +2 -2
  352. package/dist/components/kup-snackbar.d.ts +2 -2
  353. package/dist/components/kup-snackbar.js +257 -257
  354. package/dist/components/kup-spinner.d.ts +2 -2
  355. package/dist/components/kup-standard-tooltip.d.ts +11 -0
  356. package/dist/components/kup-standard-tooltip.js +6 -0
  357. package/dist/components/kup-standard-tooltip2.js +37 -0
  358. package/dist/components/kup-switch.d.ts +2 -2
  359. package/dist/components/kup-switcher.d.ts +11 -0
  360. package/dist/components/kup-switcher.js +6 -0
  361. package/dist/components/kup-switcher2.js +36 -0
  362. package/dist/components/kup-tab-bar.d.ts +2 -2
  363. package/dist/components/kup-task-gantt.d.ts +11 -0
  364. package/dist/components/kup-task-gantt.js +6 -0
  365. package/dist/components/kup-task-gantt2.js +91 -0
  366. package/dist/components/kup-task-list-header.d.ts +11 -0
  367. package/dist/components/kup-task-list-header.js +6 -0
  368. package/dist/components/kup-task-list-header2.js +55 -0
  369. package/dist/components/kup-task-list-table.d.ts +11 -0
  370. package/dist/components/kup-task-list-table.js +6 -0
  371. package/dist/components/kup-task-list-table2.js +79 -0
  372. package/dist/components/kup-task-list.d.ts +11 -0
  373. package/dist/components/kup-task-list.js +6 -0
  374. package/dist/components/kup-task-list2.js +260 -0
  375. package/dist/components/kup-text-field.d.ts +2 -2
  376. package/dist/components/kup-time-picker.d.ts +2 -2
  377. package/dist/components/kup-tooltip.d.ts +11 -0
  378. package/dist/components/kup-tooltip.js +6 -0
  379. package/dist/components/kup-tooltip2.js +127 -0
  380. package/dist/components/kup-tree.d.ts +2 -2
  381. package/dist/components/kup-vertical-scroll.d.ts +11 -0
  382. package/dist/components/kup-vertical-scroll.js +6 -0
  383. package/dist/components/kup-vertical-scroll2.js +77 -0
  384. package/dist/esm/bar.helpers-0898efb9.js +363 -0
  385. package/dist/esm/f-button-5ccc2e50.js +103 -0
  386. package/dist/esm/{f-button-declarations-8a009df1.js → f-button-declarations-9bdc6f26.js} +5 -5
  387. package/dist/esm/f-cell-6f4290b2.js +664 -0
  388. package/dist/esm/f-checkbox-43481de2.js +27 -0
  389. package/dist/esm/f-chip-465aa432.js +131 -0
  390. package/dist/esm/f-image-c5063342.js +113 -0
  391. package/dist/esm/f-paginator-utils-6903534b.js +1564 -0
  392. package/dist/esm/f-text-field-28b2b26d.js +214 -0
  393. package/dist/esm/{f-text-field-mdc-1143cf21.js → f-text-field-mdc-c88bf688.js} +19 -19
  394. package/dist/esm/{index-99c17b08.js → index-59f83f91.js} +27 -8
  395. package/dist/esm/index.js +4 -3
  396. package/dist/esm/ketchup.js +4 -4
  397. package/dist/esm/kup-accordion.entry.js +182 -181
  398. package/dist/esm/kup-autocomplete_27.entry.js +14562 -14561
  399. package/dist/esm/kup-box.entry.js +1231 -1230
  400. package/dist/esm/kup-calendar.entry.js +376 -375
  401. package/dist/esm/kup-card-list.entry.js +233 -232
  402. package/dist/esm/kup-cell.entry.js +153 -152
  403. package/dist/esm/kup-custom-task-list-header_4.entry.js +1310 -0
  404. package/dist/esm/kup-dashboard.entry.js +369 -368
  405. package/dist/esm/kup-dates-15f89ea2.js +777 -0
  406. package/dist/esm/kup-drawer.entry.js +122 -121
  407. package/dist/esm/kup-echart.entry.js +1192 -1191
  408. package/dist/esm/kup-family-tree.entry.js +400 -399
  409. package/dist/esm/kup-gantt_10.entry.js +1063 -0
  410. package/dist/esm/kup-grid.entry.js +82 -81
  411. package/dist/esm/kup-iframe.entry.js +80 -79
  412. package/dist/esm/kup-image-list.entry.js +224 -223
  413. package/dist/esm/kup-lazy.entry.js +162 -161
  414. package/dist/esm/kup-magic-box.entry.js +270 -269
  415. package/dist/esm/{kup-manager-9a9d2dbb.js → kup-manager-bfea4e6f.js} +5749 -6492
  416. package/dist/esm/kup-nav-bar.entry.js +110 -109
  417. package/dist/esm/kup-numeric-picker.entry.js +352 -351
  418. package/dist/esm/kup-photo-frame.entry.js +126 -125
  419. package/dist/esm/kup-planner-declarations-b9345758.js +88 -0
  420. package/dist/esm/kup-planner-renderer-helper-2143d119.js +399 -0
  421. package/dist/esm/kup-planner-renderer.entry.js +274 -0
  422. package/dist/esm/kup-planner-time-formatter-a68e05ba.js +89 -0
  423. package/dist/esm/kup-planner.entry.js +718 -13596
  424. package/dist/esm/kup-probe.entry.js +228 -227
  425. package/dist/esm/kup-qlik.entry.js +126 -125
  426. package/dist/esm/kup-snackbar.entry.js +102 -101
  427. package/dist/esm/loader.js +3 -3
  428. package/dist/ketchup/index.esm.js +1 -1
  429. package/dist/ketchup/ketchup.esm.js +1 -1
  430. package/dist/ketchup/p-01a0b54c.js +1 -0
  431. package/dist/ketchup/{p-6a7df3d2.js → p-097500fe.js} +1 -1
  432. package/dist/ketchup/p-0cb5e9ae.entry.js +1 -0
  433. package/dist/ketchup/p-0f91d4de.entry.js +1 -0
  434. package/dist/ketchup/p-1872c92e.entry.js +1 -0
  435. package/dist/ketchup/p-20aa95ae.entry.js +1 -0
  436. package/dist/ketchup/{p-4e696daf.js → p-21c640a5.js} +1 -1
  437. package/dist/ketchup/p-4bc3b3a6.js +29 -0
  438. package/dist/ketchup/{p-ea56edbe.js → p-4c1ec006.js} +1 -1
  439. package/dist/ketchup/p-51f9b230.entry.js +1 -0
  440. package/dist/ketchup/p-612b46da.entry.js +1 -0
  441. package/dist/ketchup/p-69287f4a.entry.js +1 -0
  442. package/dist/ketchup/p-71acfd3c.entry.js +1 -0
  443. package/dist/ketchup/p-7a72c4fa.entry.js +1 -0
  444. package/dist/ketchup/p-7c5a1357.entry.js +1 -0
  445. package/dist/ketchup/p-829d7060.entry.js +1 -0
  446. package/dist/ketchup/p-84be8f0b.js +1 -0
  447. package/dist/ketchup/p-85279516.entry.js +9 -0
  448. package/dist/ketchup/p-8591ac0b.entry.js +1 -0
  449. package/dist/ketchup/p-8c3ad5ef.entry.js +1 -0
  450. package/dist/ketchup/p-8e180c01.entry.js +1 -0
  451. package/dist/ketchup/p-8e3b6de8.js +1 -0
  452. package/dist/ketchup/p-8ecdd076.entry.js +1 -0
  453. package/dist/ketchup/p-903d1b10.entry.js +1 -0
  454. package/dist/ketchup/p-924b841b.js +1 -0
  455. package/dist/ketchup/p-95272714.entry.js +1 -0
  456. package/dist/ketchup/p-b07ffd18.entry.js +16 -0
  457. package/dist/ketchup/p-c23731ca.js +1 -0
  458. package/dist/ketchup/p-cd9a4274.js +2 -0
  459. package/dist/ketchup/{p-34e4a985.js → p-ce9ef2d5.js} +1 -1
  460. package/dist/ketchup/{p-f1f82eef.entry.js → p-d7b8295a.entry.js} +1 -1
  461. package/dist/ketchup/p-db93bc06.entry.js +1 -0
  462. package/dist/ketchup/p-e46470a6.entry.js +1 -0
  463. package/dist/ketchup/p-e841c2ae.js +1 -0
  464. package/dist/ketchup/p-eae42bff.entry.js +1 -0
  465. package/dist/ketchup/p-ee6305f5.js +1 -0
  466. package/dist/ketchup/p-f1efab38.entry.js +1 -0
  467. package/dist/ketchup/p-f2df4ce9.entry.js +1 -0
  468. package/dist/ketchup/{p-7a876328.js → p-f51dbf68.js} +1 -1
  469. package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +5 -5
  470. package/dist/types/components/kup-accordion/kup-accordion.d.ts +75 -75
  471. package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +18 -18
  472. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +113 -113
  473. package/dist/types/components/kup-badge/kup-badge-declarations.d.ts +3 -3
  474. package/dist/types/components/kup-badge/kup-badge.d.ts +47 -47
  475. package/dist/types/components/kup-box/kup-box-declarations.d.ts +70 -70
  476. package/dist/types/components/kup-box/kup-box-state.d.ts +7 -7
  477. package/dist/types/components/kup-box/kup-box.d.ts +262 -262
  478. package/dist/types/components/kup-button/kup-button-declarations.d.ts +12 -12
  479. package/dist/types/components/kup-button/kup-button.d.ts +105 -105
  480. package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +11 -11
  481. package/dist/types/components/kup-button-list/kup-button-list.d.ts +75 -75
  482. package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +32 -32
  483. package/dist/types/components/kup-calendar/kup-calendar.d.ts +100 -100
  484. package/dist/types/components/kup-card/kup-card-declarations.d.ts +123 -123
  485. package/dist/types/components/kup-card/kup-card.d.ts +154 -154
  486. package/dist/types/components/kup-card-list/kup-card-list-declarations.d.ts +20 -20
  487. package/dist/types/components/kup-card-list/kup-card-list.d.ts +107 -107
  488. package/dist/types/components/kup-cell/kup-cell-declarations.d.ts +4 -4
  489. package/dist/types/components/kup-cell/kup-cell.d.ts +62 -62
  490. package/dist/types/components/kup-chart/kup-chart-builder.d.ts +2 -2
  491. package/dist/types/components/kup-chart/kup-chart-declarations.d.ts +99 -99
  492. package/dist/types/components/kup-chart/kup-chart.d.ts +164 -164
  493. package/dist/types/components/kup-checkbox/kup-checkbox-declarations.d.ts +8 -8
  494. package/dist/types/components/kup-checkbox/kup-checkbox.d.ts +80 -80
  495. package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +8 -8
  496. package/dist/types/components/kup-chip/kup-chip.d.ts +82 -82
  497. package/dist/types/components/kup-color-picker/kup-color-picker-declarations.d.ts +6 -6
  498. package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +83 -83
  499. package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +12 -12
  500. package/dist/types/components/kup-combobox/kup-combobox.d.ts +89 -89
  501. package/dist/types/components/kup-dashboard/kup-dashboard-declarations.d.ts +28 -28
  502. package/dist/types/components/kup-dashboard/kup-dashboard.d.ts +74 -74
  503. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +156 -156
  504. package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +2 -2
  505. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +31 -31
  506. package/dist/types/components/kup-data-table/kup-data-table.d.ts +441 -441
  507. package/dist/types/components/kup-date-picker/kup-date-picker-declarations.d.ts +9 -9
  508. package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +105 -105
  509. package/dist/types/components/kup-dialog/kup-dialog-declarations.d.ts +12 -12
  510. package/dist/types/components/kup-dialog/kup-dialog.d.ts +72 -72
  511. package/dist/types/components/kup-drawer/kup-drawer-declarations.d.ts +2 -2
  512. package/dist/types/components/kup-drawer/kup-drawer.d.ts +70 -70
  513. package/dist/types/components/kup-dropdown-button/kup-dropdown-button-declarations.d.ts +12 -12
  514. package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +154 -154
  515. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +48 -48
  516. package/dist/types/components/kup-echart/kup-echart.d.ts +103 -103
  517. package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +20 -20
  518. package/dist/types/components/kup-family-tree/kup-family-tree.d.ts +82 -82
  519. package/dist/types/components/kup-form/kup-form-declarations.d.ts +40 -40
  520. package/dist/types/components/kup-form/kup-form.d.ts +78 -78
  521. package/dist/types/components/kup-gauge/kup-gauge-declarations.d.ts +19 -19
  522. package/dist/types/components/kup-gauge/kup-gauge.d.ts +144 -144
  523. package/dist/types/components/kup-grid/kup-grid-declarations.d.ts +3 -3
  524. package/dist/types/components/kup-grid/kup-grid.d.ts +45 -45
  525. package/dist/types/components/kup-iframe/kup-iframe-declarations.d.ts +3 -3
  526. package/dist/types/components/kup-iframe/kup-iframe.d.ts +45 -45
  527. package/dist/types/components/kup-image/canvas/kup-image-canvas-declarations.d.ts +19 -19
  528. package/dist/types/components/kup-image/canvas/kup-image-canvas.d.ts +25 -25
  529. package/dist/types/components/kup-image/kup-image-declarations.d.ts +10 -10
  530. package/dist/types/components/kup-image/kup-image.d.ts +96 -96
  531. package/dist/types/components/kup-image-list/kup-image-list-declarations.d.ts +4 -4
  532. package/dist/types/components/kup-image-list/kup-image-list-state.d.ts +3 -3
  533. package/dist/types/components/kup-image-list/kup-image-list.d.ts +64 -64
  534. package/dist/types/components/kup-lazy/kup-lazy-declarations.d.ts +7 -7
  535. package/dist/types/components/kup-lazy/kup-lazy.d.ts +73 -73
  536. package/dist/types/components/kup-list/kup-list-declarations.d.ts +23 -23
  537. package/dist/types/components/kup-list/kup-list.d.ts +122 -122
  538. package/dist/types/components/kup-magic-box/kup-magic-box-declarations.d.ts +10 -10
  539. package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +60 -60
  540. package/dist/types/components/kup-nav-bar/kup-nav-bar-declarations.d.ts +7 -7
  541. package/dist/types/components/kup-nav-bar/kup-nav-bar.d.ts +60 -60
  542. package/dist/types/components/kup-numeric-picker/kup-numeric-picker-declarations.d.ts +10 -10
  543. package/dist/types/components/kup-numeric-picker/kup-numeric-picker.d.ts +116 -116
  544. package/dist/types/components/kup-photo-frame/kup-photo-frame-declarations.d.ts +3 -3
  545. package/dist/types/components/kup-photo-frame/kup-photo-frame.d.ts +57 -57
  546. package/dist/types/components/kup-planner/kup-planner-declarations.d.ts +592 -96
  547. package/dist/types/components/kup-planner/kup-planner-state.d.ts +9 -9
  548. package/dist/types/components/kup-planner/kup-planner.d.ts +269 -259
  549. package/dist/types/components/kup-planner/utils/custom-task-list-header.d.ts +8 -0
  550. package/dist/types/components/kup-planner/utils/custom-task-list-table.d.ts +14 -0
  551. package/dist/types/components/kup-planner/utils/custom-tool-tip.d.ts +2 -0
  552. package/dist/types/components/kup-planner/utils/helpers/bar.helpers.d.ts +33 -0
  553. package/dist/types/components/kup-planner/utils/helpers/other.helpers.d.ts +6 -0
  554. package/dist/types/components/kup-planner/utils/kup-gantt/kup-gantt.d.ts +127 -0
  555. package/dist/types/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.d.ts +27 -0
  556. package/dist/types/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.d.ts +59 -0
  557. package/dist/types/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.d.ts +17 -0
  558. package/dist/types/components/kup-planner/utils/kup-planner-adapted-types.d.ts +28 -0
  559. package/dist/types/components/kup-planner/utils/kup-planner-renderer-helper.d.ts +36 -0
  560. package/dist/types/components/kup-planner/utils/kup-planner-renderer.d.ts +33 -0
  561. package/dist/types/components/kup-planner/utils/kup-planner-time-formatter.d.ts +20 -0
  562. package/dist/types/components/kup-planner/utils/kup-switcher/kup-switcher.d.ts +5 -0
  563. package/dist/types/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.d.ts +20 -0
  564. package/dist/types/components/kup-planner/utils/kup-task-list/kup-task-list-header.d.ts +7 -0
  565. package/dist/types/components/kup-planner/utils/kup-task-list/kup-task-list-table.d.ts +16 -0
  566. package/dist/types/components/kup-planner/utils/kup-task-list/kup-task-list.d.ts +40 -0
  567. package/dist/types/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.d.ts +7 -0
  568. package/dist/types/components/kup-planner/utils/kup-tooltip/kup-tooltip.d.ts +26 -0
  569. package/dist/types/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.d.ts +16 -0
  570. package/dist/types/components/kup-probe/kup-probe.d.ts +70 -70
  571. package/dist/types/components/kup-progress-bar/kup-progress-bar-declarations.d.ts +7 -7
  572. package/dist/types/components/kup-progress-bar/kup-progress-bar.d.ts +65 -65
  573. package/dist/types/components/kup-qlik/kup-qlik-declarations.d.ts +13 -13
  574. package/dist/types/components/kup-qlik/kup-qlik.d.ts +96 -96
  575. package/dist/types/components/kup-radio/kup-radio-declarations.d.ts +6 -6
  576. package/dist/types/components/kup-radio/kup-radio.d.ts +75 -75
  577. package/dist/types/components/kup-rating/kup-rating-declarations.d.ts +5 -5
  578. package/dist/types/components/kup-rating/kup-rating.d.ts +52 -52
  579. package/dist/types/components/kup-snackbar/kup-snackbar-declarations.d.ts +5 -5
  580. package/dist/types/components/kup-snackbar/kup-snackbar.d.ts +78 -78
  581. package/dist/types/components/kup-spinner/kup-spinner-declarations.d.ts +8 -8
  582. package/dist/types/components/kup-spinner/kup-spinner.d.ts +75 -75
  583. package/dist/types/components/kup-state/kup-state.d.ts +1 -1
  584. package/dist/types/components/kup-state/kup-store.d.ts +2 -2
  585. package/dist/types/components/kup-state/mock-store.d.ts +5 -5
  586. package/dist/types/components/kup-switch/kup-switch-declarations.d.ts +6 -6
  587. package/dist/types/components/kup-switch/kup-switch.d.ts +75 -75
  588. package/dist/types/components/kup-tab-bar/kup-tab-bar-declarations.d.ts +6 -6
  589. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +72 -72
  590. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +31 -31
  591. package/dist/types/components/kup-text-field/kup-text-field.d.ts +258 -258
  592. package/dist/types/components/kup-time-picker/kup-time-picker-declarations.d.ts +8 -8
  593. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +120 -120
  594. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +56 -56
  595. package/dist/types/components/kup-tree/kup-tree-faker.d.ts +15 -15
  596. package/dist/types/components/kup-tree/kup-tree-state.d.ts +9 -9
  597. package/dist/types/components/kup-tree/kup-tree.d.ts +351 -351
  598. package/dist/types/components.d.ts +637 -4
  599. package/dist/types/f-components/f-button/f-button-declarations.d.ts +24 -24
  600. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +117 -117
  601. package/dist/types/f-components/f-checkbox/f-checkbox-declarations.d.ts +9 -9
  602. package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +12 -12
  603. package/dist/types/f-components/f-image/f-image-declarations.d.ts +14 -14
  604. package/dist/types/f-components/f-paginator/f-paginator-declarations.d.ts +12 -12
  605. package/dist/types/f-components/f-progress-bar/f-progress-bar-declarations.d.ts +10 -10
  606. package/dist/types/f-components/f-radio/f-radio-declarations.d.ts +11 -11
  607. package/dist/types/f-components/f-rating/f-rating-declarations.d.ts +4 -4
  608. package/dist/types/f-components/f-switch/f-switch-declarations.d.ts +8 -8
  609. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +38 -38
  610. package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +3 -3
  611. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +88 -88
  612. package/dist/types/managers/kup-data/kup-data.d.ts +76 -76
  613. package/dist/types/managers/kup-dates/kup-dates-declarations.d.ts +19 -19
  614. package/dist/types/managers/kup-dates/kup-dates.d.ts +217 -192
  615. package/dist/types/managers/kup-debug/kup-debug-declarations.d.ts +18 -18
  616. package/dist/types/managers/kup-debug/kup-debug.d.ts +87 -87
  617. package/dist/types/managers/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +19 -19
  618. package/dist/types/managers/kup-dynamic-position/kup-dynamic-position.d.ts +53 -53
  619. package/dist/types/managers/kup-interact/kup-interact-declarations.d.ts +37 -37
  620. package/dist/types/managers/kup-interact/kup-interact.d.ts +95 -95
  621. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +133 -133
  622. package/dist/types/managers/kup-language/kup-language.d.ts +44 -44
  623. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +63 -63
  624. package/dist/types/managers/kup-manager/kup-manager.d.ts +67 -67
  625. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +16 -16
  626. package/dist/types/managers/kup-math/kup-math-helper.d.ts +1 -1
  627. package/dist/types/managers/kup-math/kup-math.d.ts +132 -132
  628. package/dist/types/managers/kup-objects/kup-objects-declarations.d.ts +4 -4
  629. package/dist/types/managers/kup-objects/kup-objects.d.ts +201 -201
  630. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +16 -16
  631. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +55 -55
  632. package/dist/types/managers/kup-search/kup-search-declarations.d.ts +1 -1
  633. package/dist/types/managers/kup-search/kup-search.d.ts +13 -13
  634. package/dist/types/managers/kup-theme/kup-theme-declarations.d.ts +99 -99
  635. package/dist/types/managers/kup-theme/kup-theme.d.ts +119 -119
  636. package/dist/types/managers/kup-toolbar/kup-toolbar-declarations.d.ts +3 -3
  637. package/dist/types/managers/kup-toolbar/kup-toolbar.d.ts +32 -32
  638. package/dist/types/managers/kup-tooltip/kup-tooltip-declarations.d.ts +4 -4
  639. package/dist/types/managers/kup-tooltip/kup-tooltip.d.ts +43 -43
  640. package/dist/types/stencil-public-runtime.d.ts +8 -0
  641. package/dist/types/types/GenericTypes.d.ts +74 -74
  642. package/dist/types/utils/filters/filters-column-menu.d.ts +86 -86
  643. package/dist/types/utils/filters/filters-declarations.d.ts +13 -13
  644. package/dist/types/utils/filters/filters-rows.d.ts +17 -17
  645. package/dist/types/utils/filters/filters-tree-items.d.ts +7 -7
  646. package/dist/types/utils/filters/filters.d.ts +62 -62
  647. package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +14 -14
  648. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +126 -126
  649. package/package.json +12 -16
  650. package/dist/cjs/f-button-9ccadd52.js +0 -105
  651. package/dist/cjs/f-cell-3130506f.js +0 -670
  652. package/dist/cjs/f-checkbox-9d2635d9.js +0 -29
  653. package/dist/cjs/f-chip-beb7af58.js +0 -133
  654. package/dist/cjs/f-image-66a3c3c1.js +0 -115
  655. package/dist/cjs/f-paginator-utils-c475e07f.js +0 -1576
  656. package/dist/cjs/f-text-field-c74856ff.js +0 -216
  657. package/dist/esm/f-button-0bce6587.js +0 -103
  658. package/dist/esm/f-cell-88d375e1.js +0 -664
  659. package/dist/esm/f-checkbox-31219c42.js +0 -27
  660. package/dist/esm/f-chip-ef0d4130.js +0 -131
  661. package/dist/esm/f-image-727453df.js +0 -113
  662. package/dist/esm/f-paginator-utils-4524e41c.js +0 -1563
  663. package/dist/esm/f-text-field-7b4d622c.js +0 -214
  664. package/dist/ketchup/p-042e1ed0.entry.js +0 -1
  665. package/dist/ketchup/p-0dc763af.entry.js +0 -1
  666. package/dist/ketchup/p-1ae879af.entry.js +0 -1
  667. package/dist/ketchup/p-1db0c862.entry.js +0 -1
  668. package/dist/ketchup/p-20458088.js +0 -30
  669. package/dist/ketchup/p-20c1a69f.entry.js +0 -1
  670. package/dist/ketchup/p-267dd24a.entry.js +0 -9
  671. package/dist/ketchup/p-2849af6f.js +0 -1
  672. package/dist/ketchup/p-30938d5a.entry.js +0 -1
  673. package/dist/ketchup/p-4067c71b.js +0 -2
  674. package/dist/ketchup/p-61f71872.entry.js +0 -1
  675. package/dist/ketchup/p-6b33f5de.entry.js +0 -1
  676. package/dist/ketchup/p-7f64b612.entry.js +0 -1
  677. package/dist/ketchup/p-90db42e6.entry.js +0 -1
  678. package/dist/ketchup/p-9cc1c76b.entry.js +0 -1
  679. package/dist/ketchup/p-9d3d8690.js +0 -1
  680. package/dist/ketchup/p-b4ba27da.entry.js +0 -1
  681. package/dist/ketchup/p-c046fd1c.entry.js +0 -1
  682. package/dist/ketchup/p-c120043a.entry.js +0 -1
  683. package/dist/ketchup/p-d520d757.entry.js +0 -1
  684. package/dist/ketchup/p-e9bc0749.entry.js +0 -1
  685. package/dist/ketchup/p-edd88921.entry.js +0 -1
  686. package/dist/ketchup/p-f67ee60f.entry.js +0 -25
  687. package/dist/ketchup/p-f6844304.entry.js +0 -1
  688. package/dist/ketchup/p-f8213d22.entry.js +0 -1
  689. /package/dist/ketchup/{p-cd2af1a6.js → p-b3577066.js} +0 -0
  690. /package/dist/ketchup/{p-b00f3575.js → p-c634eb82.js} +0 -0
@@ -1,28 +1,25 @@
1
1
  var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
- if (kind === "a" && !f)
3
- throw new TypeError("Private accessor was defined without a getter");
4
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
5
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
6
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
2
+ if (kind === "a" && !f)
3
+ throw new TypeError("Private accessor was defined without a getter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
5
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
6
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7
7
  };
8
8
  var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
9
- if (kind === "m")
10
- throw new TypeError("Private method is not writable");
11
- if (kind === "a" && !f)
12
- throw new TypeError("Private accessor was defined without a setter");
13
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
14
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
15
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
9
+ if (kind === "m")
10
+ throw new TypeError("Private method is not writable");
11
+ if (kind === "a" && !f)
12
+ throw new TypeError("Private accessor was defined without a setter");
13
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
14
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
15
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16
16
  };
17
- 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;
17
+ var _KupPlanner_instances, _KupPlanner_kupManager, _KupPlanner_lastOnChangeReceived, _KupPlanner_clickTimeout, _KupPlanner_phases, _KupPlanner_storedSettings, _KupPlanner_toTasks, _KupPlanner_toDetails, _KupPlanner_getTask, _KupPlanner_removePhases, _KupPlanner_handleOnDblClickOnTask, _KupPlanner_handleOnDblClickOnPhase, _KupPlanner_handleOnDblClickOnDetail, _KupPlanner_handleOnClickOnTask, _KupPlanner_handleOnClickOnPhase, _KupPlanner_handleOnClickOnDetail, _KupPlanner_handleOnContextMenuOnTask, _KupPlanner_handleOnContextMenuOnPhase, _KupPlanner_handleOnContextMenuOnDetail, _KupPlanner_emitOnChangeEventsReceived, _KupPlanner_onFilter, _KupPlanner_getFilteredRows, _KupPlanner_getIconUrl, _KupPlanner_getIconColor;
18
18
  import { forceUpdate, getAssetPath, h, Host, } from "@stencil/core";
19
19
  import { kupManagerInstance, } from "../../managers/kup-manager/kup-manager";
20
- import { defaultStylingOptions, KupPlannerLastOnChangeReceived, KupPlannerProps, KupPlannerTaskAction, KupPlannerGanttRowType, } from "./kup-planner-declarations";
20
+ import { KupPlannerLastOnChangeReceived, KupPlannerProps, KupPlannerTaskAction, KupPlannerGanttRowType, defaultStylingOptions, } from "./kup-planner-declarations";
21
21
  import { getProps, setProps } from "../../utils/utils";
22
22
  import { componentWrapperId } from "../../variables/GenericVariables";
23
- import { createRoot } from "react-dom/client";
24
- import React from "react";
25
- import { Planner, } from "@sme.up/gantt-component";
26
23
  import { getCellValueForDisplay } from "../../utils/cell-utils";
27
24
  import { getValuesToShow, isAtLeastOneDateValid, sanitizeAllDates, } from "./kup-planner-helper";
28
25
  import { FTextField } from "../../f-components/f-text-field/f-text-field";
@@ -31,1720 +28,1825 @@ import { KupThemeIconValues } from "../../managers/kup-theme/kup-theme-declarati
31
28
  import { KupLanguageSearch } from "../../managers/kup-language/kup-language-declarations";
32
29
  import { KupPlannerState } from "./kup-planner-state";
33
30
  export class KupPlanner {
34
- constructor() {
35
- _KupPlanner_instances.add(this);
36
- this.state = new KupPlannerState();
37
- /*-------------------------------------------------*/
38
- /* I n t e r n a l V a r i a b l e s */
39
- /*-------------------------------------------------*/
40
- _KupPlanner_kupManager.set(this, kupManagerInstance());
41
- _KupPlanner_lastOnChangeReceived.set(this, void 0);
42
- _KupPlanner_rootPlanner.set(this, void 0);
43
- _KupPlanner_phases.set(this, {});
44
- // no re-render
45
- _KupPlanner_storedSettings.set(this, void 0);
46
- this.stateId = '';
47
- this.store = undefined;
48
- this.customStyle = '';
49
- this.data = undefined;
50
- this.detailData = undefined;
51
- this.detailColorCol = undefined;
52
- this.detailColumns = undefined;
53
- this.detailDates = undefined;
54
- this.detailFilter = undefined;
55
- this.detailHeight = undefined;
56
- this.detailIconCol = undefined;
57
- this.detailIdCol = undefined;
58
- this.detailNameCol = undefined;
59
- this.detailPrevDates = undefined;
60
- this.detailInitialScrollX = undefined;
61
- this.detailInitialScrollY = undefined;
62
- this.listCellWidth = '300px';
63
- this.maxWidth = '90vw';
64
- this.phaseColorCol = undefined;
65
- this.phaseColumns = undefined;
66
- this.phaseColParDep = undefined;
67
- this.phaseDates = undefined;
68
- this.phaseIconCol = undefined;
69
- this.phaseIdCol = undefined;
70
- this.phaseNameCol = undefined;
71
- this.phasePrevDates = undefined;
72
- this.readOnly = false;
73
- this.showSecondaryDates = false;
74
- this.taskColumns = undefined;
75
- this.taskDates = undefined;
76
- this.taskFilter = undefined;
77
- this.taskHeight = undefined;
78
- this.taskIconCol = undefined;
79
- this.taskIdCol = undefined;
80
- this.taskInitialScrollX = undefined;
81
- this.taskInitialScrollY = undefined;
82
- this.taskNameCol = undefined;
83
- this.taskPrevDates = undefined;
84
- this.titleMess = undefined;
85
- this.viewMode = 'month';
86
- this.plannerProps = undefined;
87
- }
88
- initWithPersistedState() {
89
- if (this.store && this.stateId) {
90
- const state = this.store.getState(this.stateId);
91
- if (state != null) {
92
- __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").debug.logMessage(this, 'Initializing stateId ' + this.stateId);
93
- // *** PROPS ***
94
- this.detailFilter = state.detailFilter;
95
- this.showSecondaryDates = state.showSecondaryDates;
96
- this.detailInitialScrollX = state.detailInitialScrollX;
97
- this.detailInitialScrollY = state.detailInitialScrollY;
98
- this.taskFilter = state.taskFilter;
99
- this.taskInitialScrollX = state.taskInitialScrollX;
100
- this.taskInitialScrollY = state.taskInitialScrollY;
101
- this.viewMode = state.viewMode;
102
- }
103
- }
104
- }
105
- persistState() {
106
- if (this.store && this.stateId) {
107
- let somethingChanged = false;
108
- if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.detailFilter, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailFilter)) {
109
- this.state.detailFilter = __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailFilter;
110
- somethingChanged = true;
111
- }
112
- if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.showSecondaryDates, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").showSecondaryDates)) {
113
- this.state.showSecondaryDates =
114
- __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").showSecondaryDates;
115
- somethingChanged = true;
116
- }
117
- if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.detailInitialScrollX, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollX)) {
118
- this.state.detailInitialScrollX =
119
- __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollX;
120
- somethingChanged = true;
121
- }
122
- if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.detailInitialScrollY, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollY)) {
123
- this.state.detailInitialScrollY =
124
- __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollY;
125
- somethingChanged = true;
126
- }
127
- if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.taskFilter, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskFilter)) {
128
- this.state.taskFilter = __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskFilter;
129
- somethingChanged = true;
130
- }
131
- if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.taskInitialScrollX, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollX)) {
132
- this.state.taskInitialScrollX =
133
- __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollX;
134
- somethingChanged = true;
135
- }
136
- if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.taskInitialScrollY, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollY)) {
137
- this.state.taskInitialScrollY =
138
- __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollY;
139
- somethingChanged = true;
140
- }
141
- if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.viewMode, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").viewMode)) {
142
- this.state.viewMode = __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").viewMode;
143
- somethingChanged = true;
144
- }
145
- if (somethingChanged) {
146
- __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").debug.logMessage(this, 'Persisting stateId ' + this.stateId);
147
- this.store.persistState(this.stateId, this.state);
148
- }
31
+ constructor() {
32
+ _KupPlanner_instances.add(this);
33
+ this.state = new KupPlannerState();
34
+ /*-------------------------------------------------*/
35
+ /* I n t e r n a l V a r i a b l e s */
36
+ /*-------------------------------------------------*/
37
+ _KupPlanner_kupManager.set(this, kupManagerInstance());
38
+ _KupPlanner_lastOnChangeReceived.set(this, void 0);
39
+ _KupPlanner_clickTimeout.set(this, []);
40
+ _KupPlanner_phases.set(this, {});
41
+ // no re-render
42
+ _KupPlanner_storedSettings.set(this, void 0);
43
+ this.stateId = '';
44
+ this.store = undefined;
45
+ this.customStyle = '';
46
+ this.data = undefined;
47
+ this.detailData = undefined;
48
+ this.detailColorCol = undefined;
49
+ this.detailColumns = undefined;
50
+ this.detailDates = undefined;
51
+ this.detailFilter = undefined;
52
+ this.detailHeight = undefined;
53
+ this.detailIconCol = undefined;
54
+ this.detailIdCol = undefined;
55
+ this.detailNameCol = undefined;
56
+ this.detailPrevDates = undefined;
57
+ this.detailInitialScrollX = undefined;
58
+ this.detailInitialScrollY = undefined;
59
+ this.listCellWidth = '300px';
60
+ this.maxWidth = '90vw';
61
+ this.phaseColorCol = undefined;
62
+ this.phaseColumns = undefined;
63
+ this.phaseColParDep = undefined;
64
+ this.phaseDates = undefined;
65
+ this.phaseIconCol = undefined;
66
+ this.phaseIdCol = undefined;
67
+ this.phaseNameCol = undefined;
68
+ this.phasePrevDates = undefined;
69
+ this.readOnly = false;
70
+ this.showSecondaryDates = false;
71
+ this.taskColumns = undefined;
72
+ this.taskDates = undefined;
73
+ this.taskFilter = undefined;
74
+ this.taskHeight = undefined;
75
+ this.taskIconCol = undefined;
76
+ this.taskIdCol = undefined;
77
+ this.taskInitialScrollX = undefined;
78
+ this.taskInitialScrollY = undefined;
79
+ this.taskNameCol = undefined;
80
+ this.taskPrevDates = undefined;
81
+ this.titleMess = undefined;
82
+ this.viewMode = 'month';
83
+ this.mainFilter = undefined;
84
+ this.secondaryFilter = undefined;
85
+ this.plannerProps = undefined;
149
86
  }
150
- }
151
- dataChanged() {
152
- __classPrivateFieldSet(this, _KupPlanner_phases, {}, "f");
153
- }
154
- /*-------------------------------------------------*/
155
- /* P u b l i c M e t h o d s */
156
- /*-------------------------------------------------*/
157
- /**
158
- * Used to retrieve component's props values.
159
- * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
160
- * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
161
- */
162
- async getProps(descriptions) {
163
- return getProps(this, KupPlannerProps, descriptions);
164
- }
165
- /**
166
- * This method is used to trigger a new render of the component.
167
- */
168
- async refresh() {
169
- forceUpdate(this);
170
- }
171
- /**
172
- * Sets the props to the component.
173
- * @param {GenericObject} props - Object containing props that will be set to the component.
174
- */
175
- async setProps(props) {
176
- setProps(this, KupPlannerProps, props);
177
- }
178
- /**
179
- * Add a list of phases to the project
180
- * @param taskId
181
- * @param data - Matrix which contains project phases
182
- */
183
- async addPhases(taskId, data) {
184
- var _a;
185
- const task = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getTask).call(this, taskId);
186
- if (task) {
187
- __classPrivateFieldGet(this, _KupPlanner_phases, "f")[taskId] = data;
188
- 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) => {
189
- const datesSanitized = sanitizeAllDates(row.cells[this.phaseDates[0]], row.cells[this.phaseDates[1]], row.cells[this.phasePrevDates[0]], row.cells[this.phasePrevDates[1]]);
190
- const valuesToShow = getValuesToShow(row, this.phaseIdCol, this.phaseNameCol, data.columns, this.phaseColumns, () => this.phaseColumns.map((col) => col == this.phaseDates[0]
191
- ? '#START#'
192
- : col == this.phaseDates[1]
193
- ? '#END#'
194
- : getCellValueForDisplay(data.columns.find((kCol) => kCol.name == col), row.cells[col])));
195
- let iconUrl = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconUrl).call(this, row, this.phaseIconCol);
196
- let iconColor = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconColor).call(this, row, this.phaseIconCol);
197
- let phase = {
198
- taskRow: task.taskRow,
199
- phaseRow: row,
200
- id: task.id + '_' + row.cells[this.phaseIdCol].value,
201
- phaseRowId: row.id,
202
- taskRowId: task.taskRowId,
203
- name: row.cells[this.phaseNameCol].value,
204
- startDate: datesSanitized.dateValues[0],
205
- endDate: datesSanitized.dateValues[1],
206
- secondaryStartDate: datesSanitized.secDateValues[0],
207
- secondaryEndDate: datesSanitized.secDateValues[1],
208
- type: 'task',
209
- color: row.cells[this.phaseColorCol].value,
210
- selectedColor: row.cells[this.phaseColorCol].value,
211
- valuesToShow: valuesToShow,
212
- rowType: KupPlannerGanttRowType.PHASE,
213
- icon: iconUrl
214
- ? { url: iconUrl, color: iconColor !== null && iconColor !== void 0 ? iconColor : '#595959' }
215
- : undefined,
216
- };
217
- return phase;
218
- });
87
+ initWithPersistedState() {
88
+ if (this.store && this.stateId) {
89
+ const state = this.store.getState(this.stateId);
90
+ if (state != null) {
91
+ __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").debug.logMessage(this, 'Initializing stateId ' + this.stateId);
92
+ // *** PROPS ***
93
+ this.detailFilter = state.detailFilter;
94
+ this.showSecondaryDates = state.showSecondaryDates;
95
+ this.detailInitialScrollX = state.detailInitialScrollX;
96
+ this.detailInitialScrollY = state.detailInitialScrollY;
97
+ this.taskFilter = state.taskFilter;
98
+ this.taskInitialScrollX = state.taskInitialScrollX;
99
+ this.taskInitialScrollY = state.taskInitialScrollY;
100
+ this.viewMode = state.viewMode;
101
+ }
102
+ }
219
103
  }
220
- this.plannerProps.mainGantt.initialScrollX =
221
- __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollX;
222
- this.plannerProps.mainGantt.initialScrollY =
223
- __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollY;
224
- if (this.plannerProps.secondaryGantt) {
225
- this.plannerProps.secondaryGantt.initialScrollX =
226
- __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollX;
227
- this.plannerProps.secondaryGantt.initialScrollX =
228
- __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollY;
104
+ persistState() {
105
+ if (this.store && this.stateId) {
106
+ let somethingChanged = false;
107
+ if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.detailFilter, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailFilter)) {
108
+ this.state.detailFilter = __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailFilter;
109
+ somethingChanged = true;
110
+ }
111
+ if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.showSecondaryDates, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").showSecondaryDates)) {
112
+ this.state.showSecondaryDates =
113
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").showSecondaryDates;
114
+ somethingChanged = true;
115
+ }
116
+ if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.detailInitialScrollX, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollX)) {
117
+ this.state.detailInitialScrollX =
118
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollX;
119
+ somethingChanged = true;
120
+ }
121
+ if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.detailInitialScrollY, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollY)) {
122
+ this.state.detailInitialScrollY =
123
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollY;
124
+ somethingChanged = true;
125
+ }
126
+ if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.taskFilter, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskFilter)) {
127
+ this.state.taskFilter = __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskFilter;
128
+ somethingChanged = true;
129
+ }
130
+ if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.taskInitialScrollX, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollX)) {
131
+ this.state.taskInitialScrollX =
132
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollX;
133
+ somethingChanged = true;
134
+ }
135
+ if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.taskInitialScrollY, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollY)) {
136
+ this.state.taskInitialScrollY =
137
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollY;
138
+ somethingChanged = true;
139
+ }
140
+ if (!__classPrivateFieldGet(this, _KupPlanner_kupManager, "f").objects.deepEqual(this.state.viewMode, __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").viewMode)) {
141
+ this.state.viewMode = __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").viewMode;
142
+ somethingChanged = true;
143
+ }
144
+ if (somethingChanged) {
145
+ __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").debug.logMessage(this, 'Persisting stateId ' + this.stateId);
146
+ this.store.persistState(this.stateId, this.state);
147
+ }
148
+ }
229
149
  }
230
- this.plannerProps = Object.assign({}, this.plannerProps);
231
- }
232
- //---- Lifecycle hooks ----
233
- componentWillLoad() {
234
- __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").debug.logLoad(this, false);
235
- __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.register(this);
236
- // *** Store
237
- this.initWithPersistedState();
238
- __classPrivateFieldSet(this, _KupPlanner_storedSettings, {
239
- detailFilter: this.detailFilter,
240
- detailInitialScrollX: this.detailInitialScrollX,
241
- detailInitialScrollY: this.detailInitialScrollY,
242
- showSecondaryDates: this.showSecondaryDates,
243
- taskFilter: this.taskFilter,
244
- taskInitialScrollX: this.taskInitialScrollX,
245
- taskInitialScrollY: this.taskInitialScrollY,
246
- viewMode: this.viewMode,
247
- }, "f");
248
- }
249
- componentDidLoad() {
250
- 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));
251
- const mainFilter = this.rootElement.shadowRoot.querySelector('#main-filter');
252
- FTextFieldMDC(mainFilter);
253
- const secondaryFilter = this.rootElement.shadowRoot.querySelector('#secondary-filter');
254
- if (details) {
255
- FTextFieldMDC(secondaryFilter);
150
+ dataChanged() {
151
+ __classPrivateFieldSet(this, _KupPlanner_phases, {}, "f");
256
152
  }
257
- // timeout for scroll events
258
- let scrollXTimeout;
259
- let taskScrollYTimeout;
260
- let detailScrollYTimeout;
261
- const scrollDelay = 500;
262
- this.plannerProps = {
263
- mainGantt: {
264
- title: this.titleMess,
265
- 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)),
266
- stylingOptions: Object.assign(Object.assign({}, defaultStylingOptions), { listCellWidth: this.listCellWidth }),
267
- filter: mainFilter,
268
- hideLabel: true,
269
- ganttHeight: this.taskHeight,
270
- showSecondaryDates: __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").showSecondaryDates,
271
- onClick: (nativeEvent) => this.handleOnClick(nativeEvent),
272
- onContextMenu: (event, row) => this.handleOnContextMenu(event, row),
273
- onDateChange: (nativeEvent) => this.handleOnDateChange(nativeEvent),
274
- initialScrollX: this.taskInitialScrollX,
275
- initialScrollY: this.taskInitialScrollY,
276
- readOnly: this.readOnly,
277
- onScrollY: (y) => {
278
- window.clearTimeout(taskScrollYTimeout);
279
- taskScrollYTimeout = window.setTimeout(() => this.handleTaskGanttScrollY(y), scrollDelay);
280
- },
281
- },
282
- secondaryGantt: details
283
- ? {
284
- title: '',
285
- items: details,
286
- stylingOptions: Object.assign(Object.assign({}, defaultStylingOptions), { listCellWidth: this.listCellWidth }),
287
- filter: secondaryFilter,
288
- hideLabel: true,
289
- ganttHeight: this.detailHeight,
290
- onClick: (nativeEvent) => this.handleOnClick(nativeEvent),
291
- onContextMenu: (event, row) => this.handleOnContextMenu(event, row),
292
- onDateChange: (nativeEvent) => this.handleOnDateChange(nativeEvent),
293
- initialScrollX: this.detailInitialScrollX,
294
- initialScrollY: this.detailInitialScrollY,
295
- readOnly: this.readOnly,
296
- onScrollY: (y) => {
297
- window.clearTimeout(detailScrollYTimeout);
298
- detailScrollYTimeout = window.setTimeout(() => this.handleDetailGanttScrollY(y), scrollDelay);
299
- },
300
- }
301
- : undefined,
302
- onSetDoubleView: (checked) => this.handleOnSetDoubleView(checked),
303
- onSetViewMode: (value) => this.handleOnSetViewMode(value),
304
- viewMode: this.viewMode,
305
- onScrollX: (x) => {
306
- window.clearTimeout(scrollXTimeout);
307
- scrollXTimeout = window.setTimeout(() => this.handleOnScrollX(x), scrollDelay);
308
- },
309
- };
310
- __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_renderReactPlannerElement).call(this);
311
- this.kupReady.emit({
312
- comp: this,
313
- id: this.rootElement.id,
314
- value: undefined,
315
- });
316
- if (this.taskFilter) {
317
- __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_onFilter).call(this, this.taskFilter);
153
+ /*-------------------------------------------------*/
154
+ /* P u b l i c M e t h o d s */
155
+ /*-------------------------------------------------*/
156
+ /**
157
+ * Used to retrieve component's props values.
158
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
159
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
160
+ */
161
+ async getProps(descriptions) {
162
+ return getProps(this, KupPlannerProps, descriptions);
318
163
  }
319
- if (this.detailFilter) {
320
- __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_onFilter).call(this, this.detailFilter, true);
164
+ /**
165
+ * This method is used to trigger a new render of the component.
166
+ */
167
+ async refresh() {
168
+ forceUpdate(this);
321
169
  }
322
- __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").debug.logLoad(this, true);
323
- }
324
- componentWillRender() {
325
- __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_renderReactPlannerElement).call(this);
326
- }
327
- componentDidRender() {
328
- this.persistState();
329
- __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").debug.logRender(this, true);
330
- }
331
- onKupClick(event, taskAction) {
332
- this.kupClick.emit({
333
- comp: this,
334
- id: this.rootElement.id,
335
- value: event,
336
- taskAction: taskAction,
337
- });
338
- }
339
- onKupContextMenu(event, ganttRow, taskAction) {
340
- let row;
341
- let cell;
342
- let column;
343
- switch (ganttRow.type) {
344
- case 'project': {
345
- row = ganttRow.taskRow;
346
- cell = row.cells[this.taskIdCol];
347
- column = this.data.columns[this.taskIdCol];
348
- break;
349
- }
350
- case 'task': {
351
- row = ganttRow.phaseRow;
352
- cell = row.cells[this.phaseIdCol];
353
- //column = this.data.columns[this.taskIdCol];
354
- break;
355
- }
356
- case 'timeline': {
357
- row = ganttRow.detailRow;
358
- cell = row.cells[this.detailIdCol];
359
- column = this.data.columns[this.detailIdCol];
360
- break;
361
- }
170
+ /**
171
+ * Sets the props to the component.
172
+ * @param {GenericObject} props - Object containing props that will be set to the component.
173
+ */
174
+ async setProps(props) {
175
+ setProps(this, KupPlannerProps, props);
362
176
  }
363
- this.kupContextMenu.emit({
364
- comp: this,
365
- id: this.rootElement.id,
366
- value: ganttRow,
367
- taskAction: taskAction,
368
- details: {
369
- cell: cell,
370
- column: column,
371
- originalEvent: event,
372
- row: row,
373
- },
374
- });
375
- }
376
- onKupDateChange(event, taskAction) {
377
- this.kupDateChange.emit({
378
- comp: this,
379
- id: this.rootElement.id,
380
- value: event,
381
- taskAction: taskAction,
382
- });
383
- }
384
- handleOnClick(nativeEvent) {
385
- switch (nativeEvent.rowType) {
386
- case KupPlannerGanttRowType.TASK:
387
- const taskAction = nativeEvent.phases
388
- ? KupPlannerTaskAction.onTaskClosing
389
- : KupPlannerTaskAction.onTaskOpening;
390
- if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnClickOnTask).call(this, nativeEvent)) {
391
- this.onKupClick(nativeEvent, taskAction);
392
- }
393
- break;
394
- case KupPlannerGanttRowType.PHASE:
395
- if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnClickOnPhase).call(this)) {
396
- this.onKupClick(nativeEvent, KupPlannerTaskAction.onClick);
177
+ /**
178
+ * Add a list of phases to the project
179
+ * @param taskId
180
+ * @param data - Matrix which contains project phases
181
+ */
182
+ async addPhases(taskId, data) {
183
+ var _a;
184
+ const task = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getTask).call(this, taskId);
185
+ if (task) {
186
+ __classPrivateFieldGet(this, _KupPlanner_phases, "f")[taskId] = data;
187
+ 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) => {
188
+ const datesSanitized = sanitizeAllDates(row.cells[this.phaseDates[0]], row.cells[this.phaseDates[1]], row.cells[this.phasePrevDates[0]], row.cells[this.phasePrevDates[1]]);
189
+ const valuesToShow = getValuesToShow(row, this.phaseIdCol, this.phaseNameCol, data.columns, this.phaseColumns, () => this.phaseColumns.map((col) => col == this.phaseDates[0]
190
+ ? '#START#'
191
+ : col == this.phaseDates[1]
192
+ ? '#END#'
193
+ : getCellValueForDisplay(data.columns.find((kCol) => kCol.name == col), row.cells[col])));
194
+ let iconUrl = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconUrl).call(this, row, this.phaseIconCol);
195
+ let iconColor = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconColor).call(this, row, this.phaseIconCol);
196
+ let phase = {
197
+ taskRow: task.taskRow,
198
+ phaseRow: row,
199
+ id: task.id + '_' + row.cells[this.phaseIdCol].value,
200
+ phaseRowId: row.id,
201
+ taskRowId: task.taskRowId,
202
+ name: row.cells[this.phaseNameCol].value,
203
+ startDate: datesSanitized.dateValues[0],
204
+ endDate: datesSanitized.dateValues[1],
205
+ secondaryStartDate: datesSanitized.secDateValues[0],
206
+ secondaryEndDate: datesSanitized.secDateValues[1],
207
+ type: 'task',
208
+ color: row.cells[this.phaseColorCol].value,
209
+ selectedColor: row.cells[this.phaseColorCol].value,
210
+ valuesToShow: valuesToShow,
211
+ rowType: KupPlannerGanttRowType.PHASE,
212
+ icon: iconUrl
213
+ ? { url: iconUrl, color: iconColor !== null && iconColor !== void 0 ? iconColor : '#595959' }
214
+ : undefined,
215
+ };
216
+ return phase;
217
+ });
397
218
  }
398
- break;
399
- case KupPlannerGanttRowType.DETAIL:
400
- if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnClickOnDetail).call(this)) {
401
- this.onKupClick(nativeEvent, KupPlannerTaskAction.onClick);
219
+ this.plannerProps.mainGantt.initialScrollX =
220
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollX;
221
+ this.plannerProps.mainGantt.initialScrollY =
222
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollY;
223
+ if (this.plannerProps.secondaryGantt) {
224
+ this.plannerProps.secondaryGantt.initialScrollX =
225
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollX;
226
+ this.plannerProps.secondaryGantt.initialScrollX =
227
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollY;
402
228
  }
403
- break;
229
+ this.plannerProps = Object.assign({}, this.plannerProps);
230
+ }
231
+ //---- Lifecycle hooks ----
232
+ componentWillLoad() {
233
+ __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").debug.logLoad(this, false);
234
+ __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.register(this);
235
+ // *** Store
236
+ this.initWithPersistedState();
237
+ __classPrivateFieldSet(this, _KupPlanner_storedSettings, {
238
+ detailFilter: this.detailFilter,
239
+ detailInitialScrollX: this.detailInitialScrollX,
240
+ detailInitialScrollY: this.detailInitialScrollY,
241
+ showSecondaryDates: this.showSecondaryDates,
242
+ taskFilter: this.taskFilter,
243
+ taskInitialScrollX: this.taskInitialScrollX,
244
+ taskInitialScrollY: this.taskInitialScrollY,
245
+ viewMode: this.viewMode,
246
+ }, "f");
404
247
  }
405
- }
406
- handleOnContextMenu(event, row) {
407
- switch (row.rowType) {
408
- case KupPlannerGanttRowType.TASK:
409
- if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnContextMenuOnTask).call(this)) {
410
- this.onKupContextMenu(event, row, KupPlannerTaskAction.onRightClick);
248
+ componentDidLoad() {
249
+ 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));
250
+ const mainFilter = this.rootElement.shadowRoot.querySelector('#main-filter');
251
+ FTextFieldMDC(mainFilter);
252
+ const secondaryFilter = this.rootElement.shadowRoot.querySelector('#secondary-filter');
253
+ if (details) {
254
+ FTextFieldMDC(secondaryFilter);
411
255
  }
412
- break;
413
- case KupPlannerGanttRowType.PHASE:
414
- if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnContextMenuOnPhase).call(this)) {
415
- this.onKupContextMenu(event, row, KupPlannerTaskAction.onRightClick);
256
+ // timeout for scroll events
257
+ let scrollXTimeout;
258
+ let taskScrollYTimeout;
259
+ let detailScrollYTimeout;
260
+ const scrollDelay = 500;
261
+ this.plannerProps = {
262
+ mainGantt: {
263
+ title: this.titleMess,
264
+ 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)),
265
+ stylingOptions: Object.assign(Object.assign({}, defaultStylingOptions), { listCellWidth: this.listCellWidth }),
266
+ filter: mainFilter,
267
+ hideLabel: true,
268
+ ganttHeight: this.taskHeight,
269
+ showSecondaryDates: __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").showSecondaryDates,
270
+ onClick: (nativeEvent) => this.handleOnClick(nativeEvent),
271
+ onDblClick: (nativeEvent) => this.handleOnDblClick(nativeEvent),
272
+ onContextMenu: (event, row) => this.handleOnContextMenu(event, row),
273
+ onDateChange: (nativeEvent) => this.handleOnDateChange(nativeEvent),
274
+ initialScrollX: this.taskInitialScrollX,
275
+ initialScrollY: this.taskInitialScrollY,
276
+ readOnly: this.readOnly,
277
+ onScrollY: (y) => {
278
+ window.clearTimeout(taskScrollYTimeout);
279
+ taskScrollYTimeout = window.setTimeout(() => this.handleTaskGanttScrollY(y), scrollDelay);
280
+ },
281
+ },
282
+ secondaryGantt: details
283
+ ? {
284
+ title: '',
285
+ items: details,
286
+ stylingOptions: Object.assign(Object.assign({}, defaultStylingOptions), { listCellWidth: this.listCellWidth }),
287
+ filter: secondaryFilter,
288
+ hideLabel: true,
289
+ ganttHeight: this.detailHeight,
290
+ onClick: (nativeEvent) => this.handleOnClick(nativeEvent),
291
+ onContextMenu: (event, row) => this.handleOnContextMenu(event, row),
292
+ onDateChange: (nativeEvent) => this.handleOnDateChange(nativeEvent),
293
+ initialScrollX: this.detailInitialScrollX,
294
+ initialScrollY: this.detailInitialScrollY,
295
+ readOnly: this.readOnly,
296
+ onScrollY: (y) => {
297
+ window.clearTimeout(detailScrollYTimeout);
298
+ detailScrollYTimeout = window.setTimeout(() => this.handleDetailGanttScrollY(y), scrollDelay);
299
+ },
300
+ }
301
+ : undefined,
302
+ onSetDoubleView: (checked) => this.handleOnSetDoubleView(checked),
303
+ onSetViewMode: (value) => this.handleOnSetViewMode(value),
304
+ viewMode: this.viewMode,
305
+ onScrollX: (x) => {
306
+ window.clearTimeout(scrollXTimeout);
307
+ scrollXTimeout = window.setTimeout(() => this.handleOnScrollX(x), scrollDelay);
308
+ },
309
+ };
310
+ this.kupReady.emit({
311
+ comp: this,
312
+ id: this.rootElement.id,
313
+ value: undefined,
314
+ });
315
+ if (this.taskFilter) {
316
+ __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_onFilter).call(this, this.taskFilter);
416
317
  }
417
- break;
418
- case KupPlannerGanttRowType.DETAIL:
419
- if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnContextMenuOnDetail).call(this)) {
420
- this.onKupContextMenu(event, row, KupPlannerTaskAction.onRightClick);
318
+ if (this.detailFilter) {
319
+ __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_onFilter).call(this, this.detailFilter, true);
421
320
  }
422
- break;
321
+ __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").debug.logLoad(this, true);
423
322
  }
424
- }
425
- handleOnSetDoubleView(checked) {
426
- var _a;
427
- __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").showSecondaryDates = checked;
428
- if ((_a = this.plannerProps) === null || _a === void 0 ? void 0 : _a.mainGantt) {
429
- this.plannerProps.mainGantt.showSecondaryDates = checked;
323
+ componentDidRender() {
324
+ this.persistState();
325
+ __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").debug.logRender(this, true);
430
326
  }
431
- this.persistState();
432
- }
433
- handleOnSetViewMode(value) {
434
- __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").viewMode = value;
435
- this.plannerProps.viewMode = value;
436
- this.persistState();
437
- }
438
- handleOnScrollX(x) {
439
- __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollX = x;
440
- __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollX = x;
441
- this.persistState();
442
- }
443
- handleTaskGanttScrollY(y) {
444
- __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollY = y;
445
- this.persistState();
446
- }
447
- handleDetailGanttScrollY(y) {
448
- __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollY = y;
449
- this.persistState();
450
- }
451
- handleOnDateChange(nativeEvent) {
452
- if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_emitOnChangeEventsReceived).call(this, nativeEvent)) {
453
- if (nativeEvent.rowType != KupPlannerGanttRowType.DETAIL) {
454
- this.onKupDateChange(nativeEvent, KupPlannerTaskAction.onResize);
455
- }
327
+ onKupDblClick(event, taskAction) {
328
+ this.kupDblClick.emit({
329
+ comp: this,
330
+ id: this.rootElement.id,
331
+ value: event,
332
+ taskAction: taskAction,
333
+ });
456
334
  }
457
- }
458
- render() {
459
- var _a;
460
- return (h(Host, null, h("style", null, __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, style: { maxWidth: this.maxWidth } }), h(FTextField, { icon: KupThemeIconValues.SEARCH, id: "main-filter", label: __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), onKeyDown: (e) => {
461
- if (e.key === 'Enter') {
462
- __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_onFilter).call(this, e.target.value);
463
- }
464
- }, value: this.taskFilter, wrapperClass: "filter" }), ((_a = this.detailData) === null || _a === void 0 ? void 0 : _a.rows) && this.detailData.rows.length > 0 ? (h(FTextField, { icon: KupThemeIconValues.SEARCH, id: "secondary-filter", label: __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), onKeyDown: (e) => {
465
- if (e.key === 'Enter') {
466
- __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_onFilter).call(this, e.target.value, true);
467
- }
468
- }, value: this.detailFilter, wrapperClass: "filter" })) : null));
469
- }
470
- disconnectedCallback() {
471
- __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.unregister(this);
472
- this.kupDidUnload.emit({
473
- comp: this,
474
- id: this.rootElement.id,
475
- storedSettings: __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f"),
476
- });
477
- }
478
- static get is() { return "kup-planner"; }
479
- static get encapsulation() { return "shadow"; }
480
- static get originalStyleUrls() {
481
- return {
482
- "$": ["kup-planner.scss"]
483
- };
484
- }
485
- static get styleUrls() {
486
- return {
487
- "$": ["kup-planner.css"]
488
- };
489
- }
490
- static get properties() {
491
- return {
492
- "stateId": {
493
- "type": "string",
494
- "mutable": false,
495
- "complexType": {
496
- "original": "string",
497
- "resolved": "string",
498
- "references": {}
499
- },
500
- "required": false,
501
- "optional": false,
502
- "docs": {
503
- "tags": [],
504
- "text": ""
505
- },
506
- "attribute": "state-id",
507
- "reflect": false,
508
- "defaultValue": "''"
509
- },
510
- "store": {
511
- "type": "unknown",
512
- "mutable": false,
513
- "complexType": {
514
- "original": "KupStore",
515
- "resolved": "KupStore",
516
- "references": {
517
- "KupStore": {
518
- "location": "import",
519
- "path": "../kup-state/kup-store",
520
- "id": "src/components/kup-state/kup-store.ts::KupStore"
335
+ onKupClick(event, taskAction) {
336
+ this.kupClick.emit({
337
+ comp: this,
338
+ id: this.rootElement.id,
339
+ value: event,
340
+ taskAction: taskAction,
341
+ });
342
+ }
343
+ onKupContextMenu(event, ganttRow, taskAction) {
344
+ let row;
345
+ let cell;
346
+ let column;
347
+ switch (ganttRow.type) {
348
+ case 'project': {
349
+ row = ganttRow.taskRow;
350
+ cell = row.cells[this.taskIdCol];
351
+ column = this.data.columns[this.taskIdCol];
352
+ break;
521
353
  }
522
- }
523
- },
524
- "required": false,
525
- "optional": false,
526
- "docs": {
527
- "tags": [],
528
- "text": ""
529
- }
530
- },
531
- "customStyle": {
532
- "type": "string",
533
- "mutable": false,
534
- "complexType": {
535
- "original": "string",
536
- "resolved": "string",
537
- "references": {}
538
- },
539
- "required": false,
540
- "optional": false,
541
- "docs": {
542
- "tags": [{
543
- "name": "default",
544
- "text": "\"\""
545
- }, {
546
- "name": "see",
547
- "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
548
- }],
549
- "text": "Custom style of the component."
550
- },
551
- "attribute": "custom-style",
552
- "reflect": false,
553
- "defaultValue": "''"
554
- },
555
- "data": {
556
- "type": "unknown",
557
- "mutable": false,
558
- "complexType": {
559
- "original": "KupDataDataset",
560
- "resolved": "KupDataDataset",
561
- "references": {
562
- "KupDataDataset": {
563
- "location": "import",
564
- "path": "../../managers/kup-data/kup-data-declarations",
565
- "id": "src/managers/kup-data/kup-data-declarations.ts::KupDataDataset"
354
+ case 'task': {
355
+ row = ganttRow.phaseRow;
356
+ cell = row.cells[this.phaseIdCol];
357
+ //column = this.data.columns[this.taskIdCol];
358
+ break;
566
359
  }
567
- }
568
- },
569
- "required": false,
570
- "optional": false,
571
- "docs": {
572
- "tags": [{
573
- "name": "default",
574
- "text": "null"
575
- }],
576
- "text": "Dataset containg the tasks list"
577
- }
578
- },
579
- "detailData": {
580
- "type": "unknown",
581
- "mutable": false,
582
- "complexType": {
583
- "original": "KupDataDataset",
584
- "resolved": "KupDataDataset",
585
- "references": {
586
- "KupDataDataset": {
587
- "location": "import",
588
- "path": "../../managers/kup-data/kup-data-declarations",
589
- "id": "src/managers/kup-data/kup-data-declarations.ts::KupDataDataset"
360
+ case 'timeline': {
361
+ row = ganttRow.detailRow;
362
+ cell = row.cells[this.detailIdCol];
363
+ column = this.data.columns[this.detailIdCol];
364
+ break;
590
365
  }
591
- }
592
- },
593
- "required": false,
594
- "optional": false,
595
- "docs": {
596
- "tags": [{
597
- "name": "default",
598
- "text": "null"
599
- }],
600
- "text": "Dataset containg the details list"
601
- }
602
- },
603
- "detailColorCol": {
604
- "type": "string",
605
- "mutable": false,
606
- "complexType": {
607
- "original": "string",
608
- "resolved": "string",
609
- "references": {}
610
- },
611
- "required": false,
612
- "optional": false,
613
- "docs": {
614
- "tags": [{
615
- "name": "default",
616
- "text": "null"
617
- }],
618
- "text": "Column containing the detail color, in hex format"
619
- },
620
- "attribute": "detail-color-col",
621
- "reflect": false
622
- },
623
- "detailColumns": {
624
- "type": "unknown",
625
- "mutable": false,
626
- "complexType": {
627
- "original": "string[]",
628
- "resolved": "string[]",
629
- "references": {}
630
- },
631
- "required": false,
632
- "optional": false,
633
- "docs": {
634
- "tags": [{
635
- "name": "default",
636
- "text": "null"
637
- }],
638
- "text": "Columns containing informations displayed in the left box, near the gantt of details"
639
- }
640
- },
641
- "detailDates": {
642
- "type": "unknown",
643
- "mutable": false,
644
- "complexType": {
645
- "original": "string[]",
646
- "resolved": "string[]",
647
- "references": {}
648
- },
649
- "required": false,
650
- "optional": false,
651
- "docs": {
652
- "tags": [{
653
- "name": "default",
654
- "text": "null"
655
- }],
656
- "text": "Columns containing detail duration, from (firstDate) to (secondDate)"
657
- }
658
- },
659
- "detailFilter": {
660
- "type": "string",
661
- "mutable": false,
662
- "complexType": {
663
- "original": "string",
664
- "resolved": "string",
665
- "references": {}
666
- },
667
- "required": false,
668
- "optional": false,
669
- "docs": {
670
- "tags": [{
671
- "name": "default",
672
- "text": "undefined"
673
- }],
674
- "text": "Sets the detail's filter."
675
- },
676
- "attribute": "detail-filter",
677
- "reflect": false
678
- },
679
- "detailHeight": {
680
- "type": "number",
681
- "mutable": false,
682
- "complexType": {
683
- "original": "number",
684
- "resolved": "number",
685
- "references": {}
686
- },
687
- "required": false,
688
- "optional": false,
689
- "docs": {
690
- "tags": [{
691
- "name": "default",
692
- "text": "null"
693
- }],
694
- "text": "Height for detail gantt"
695
- },
696
- "attribute": "detail-height",
697
- "reflect": false
698
- },
699
- "detailIconCol": {
700
- "type": "string",
701
- "mutable": false,
702
- "complexType": {
703
- "original": "string",
704
- "resolved": "string",
705
- "references": {}
706
- },
707
- "required": false,
708
- "optional": false,
709
- "docs": {
710
- "tags": [{
711
- "name": "default",
712
- "text": "null"
713
- }],
714
- "text": "Column containing icon name to show, for detail"
715
- },
716
- "attribute": "detail-icon-col",
717
- "reflect": false
718
- },
719
- "detailIdCol": {
720
- "type": "string",
721
- "mutable": false,
722
- "complexType": {
723
- "original": "string",
724
- "resolved": "string",
725
- "references": {}
726
- },
727
- "required": false,
728
- "optional": false,
729
- "docs": {
730
- "tags": [{
731
- "name": "default",
732
- "text": "null"
733
- }],
734
- "text": "Column containing unique detail identifier"
735
- },
736
- "attribute": "detail-id-col",
737
- "reflect": false
738
- },
739
- "detailNameCol": {
740
- "type": "string",
741
- "mutable": false,
742
- "complexType": {
743
- "original": "string",
744
- "resolved": "string",
745
- "references": {}
746
- },
747
- "required": false,
748
- "optional": false,
749
- "docs": {
750
- "tags": [{
751
- "name": "default",
752
- "text": "null"
753
- }],
754
- "text": "Column containing detail name displayed"
755
- },
756
- "attribute": "detail-name-col",
757
- "reflect": false
758
- },
759
- "detailPrevDates": {
760
- "type": "unknown",
761
- "mutable": false,
762
- "complexType": {
763
- "original": "string[]",
764
- "resolved": "string[]",
765
- "references": {}
766
- },
767
- "required": false,
768
- "optional": false,
769
- "docs": {
770
- "tags": [{
771
- "name": "default",
772
- "text": "null"
773
- }],
774
- "text": "Columns containing forecast detail duration, from (firstDate) to (secondDate)"
775
- }
776
- },
777
- "detailInitialScrollX": {
778
- "type": "number",
779
- "mutable": false,
780
- "complexType": {
781
- "original": "number",
782
- "resolved": "number",
783
- "references": {}
784
- },
785
- "required": false,
786
- "optional": false,
787
- "docs": {
788
- "tags": [{
789
- "name": "default",
790
- "text": "undefined"
791
- }],
792
- "text": "Sets the initial scroll X for the detail."
793
- },
794
- "attribute": "detail-initial-scroll-x",
795
- "reflect": false
796
- },
797
- "detailInitialScrollY": {
798
- "type": "number",
799
- "mutable": false,
800
- "complexType": {
801
- "original": "number",
802
- "resolved": "number",
803
- "references": {}
804
- },
805
- "required": false,
806
- "optional": false,
807
- "docs": {
808
- "tags": [{
809
- "name": "default",
810
- "text": "undefined"
811
- }],
812
- "text": "Sets the initial scroll Y for the detail."
813
- },
814
- "attribute": "detail-initial-scroll-y",
815
- "reflect": false
816
- },
817
- "listCellWidth": {
818
- "type": "string",
819
- "mutable": false,
820
- "complexType": {
821
- "original": "string",
822
- "resolved": "string",
823
- "references": {}
824
- },
825
- "required": false,
826
- "optional": false,
827
- "docs": {
828
- "tags": [{
829
- "name": "default",
830
- "text": "'300px'"
831
- }],
832
- "text": "Total size of the cells inside to the left box, near the gantt"
833
- },
834
- "attribute": "list-cell-width",
835
- "reflect": false,
836
- "defaultValue": "'300px'"
837
- },
838
- "maxWidth": {
839
- "type": "string",
840
- "mutable": false,
841
- "complexType": {
842
- "original": "string",
843
- "resolved": "string",
844
- "references": {}
845
- },
846
- "required": false,
847
- "optional": false,
848
- "docs": {
849
- "tags": [{
850
- "name": "default",
851
- "text": "'90vw'"
852
- }],
853
- "text": "Max width for component"
854
- },
855
- "attribute": "max-width",
856
- "reflect": false,
857
- "defaultValue": "'90vw'"
858
- },
859
- "phaseColorCol": {
860
- "type": "string",
861
- "mutable": false,
862
- "complexType": {
863
- "original": "string",
864
- "resolved": "string",
865
- "references": {}
866
- },
867
- "required": false,
868
- "optional": false,
869
- "docs": {
870
- "tags": [{
871
- "name": "default",
872
- "text": "null"
873
- }],
874
- "text": "Column containing the phase color in hex format"
875
- },
876
- "attribute": "phase-color-col",
877
- "reflect": false
878
- },
879
- "phaseColumns": {
880
- "type": "unknown",
881
- "mutable": false,
882
- "complexType": {
883
- "original": "string[]",
884
- "resolved": "string[]",
885
- "references": {}
886
- },
887
- "required": false,
888
- "optional": false,
889
- "docs": {
890
- "tags": [{
891
- "name": "default",
892
- "text": "null"
893
- }],
894
- "text": "Columns containing informations displayed in the left box ,near the gantt of phases"
895
366
  }
896
- },
897
- "phaseColParDep": {
898
- "type": "string",
899
- "mutable": false,
900
- "complexType": {
901
- "original": "string",
902
- "resolved": "string",
903
- "references": {}
904
- },
905
- "required": false,
906
- "optional": false,
907
- "docs": {
908
- "tags": [{
909
- "name": "default",
910
- "text": "null"
911
- }],
912
- "text": "Column containing the name of the parent phases"
913
- },
914
- "attribute": "phase-col-par-dep",
915
- "reflect": false
916
- },
917
- "phaseDates": {
918
- "type": "unknown",
919
- "mutable": false,
920
- "complexType": {
921
- "original": "string[]",
922
- "resolved": "string[]",
923
- "references": {}
924
- },
925
- "required": false,
926
- "optional": false,
927
- "docs": {
928
- "tags": [{
929
- "name": "default",
930
- "text": "null"
931
- }],
932
- "text": "Columns containing phase duration, from (firstDate) to (secondDate)"
933
- }
934
- },
935
- "phaseIconCol": {
936
- "type": "string",
937
- "mutable": false,
938
- "complexType": {
939
- "original": "string",
940
- "resolved": "string",
941
- "references": {}
942
- },
943
- "required": false,
944
- "optional": false,
945
- "docs": {
946
- "tags": [{
947
- "name": "default",
948
- "text": "null"
949
- }],
950
- "text": "Column containing icon name to show, for phase"
951
- },
952
- "attribute": "phase-icon-col",
953
- "reflect": false
954
- },
955
- "phaseIdCol": {
956
- "type": "string",
957
- "mutable": false,
958
- "complexType": {
959
- "original": "string",
960
- "resolved": "string",
961
- "references": {}
962
- },
963
- "required": false,
964
- "optional": false,
965
- "docs": {
966
- "tags": [{
967
- "name": "default",
968
- "text": "null"
969
- }],
970
- "text": "Column containing unique phase identifier"
971
- },
972
- "attribute": "phase-id-col",
973
- "reflect": false
974
- },
975
- "phaseNameCol": {
976
- "type": "string",
977
- "mutable": false,
978
- "complexType": {
979
- "original": "string",
980
- "resolved": "string",
981
- "references": {}
982
- },
983
- "required": false,
984
- "optional": false,
985
- "docs": {
986
- "tags": [{
987
- "name": "default",
988
- "text": "null"
989
- }],
990
- "text": "Column containing phase name displayed"
991
- },
992
- "attribute": "phase-name-col",
993
- "reflect": false
994
- },
995
- "phasePrevDates": {
996
- "type": "unknown",
997
- "mutable": false,
998
- "complexType": {
999
- "original": "string[]",
1000
- "resolved": "string[]",
1001
- "references": {}
1002
- },
1003
- "required": false,
1004
- "optional": false,
1005
- "docs": {
1006
- "tags": [{
1007
- "name": "default",
1008
- "text": "null"
1009
- }],
1010
- "text": "Columns containing forecast phase duration, from (firstDate) to (secondDate)"
1011
- }
1012
- },
1013
- "readOnly": {
1014
- "type": "boolean",
1015
- "mutable": false,
1016
- "complexType": {
1017
- "original": "boolean",
1018
- "resolved": "boolean",
1019
- "references": {}
1020
- },
1021
- "required": false,
1022
- "optional": false,
1023
- "docs": {
1024
- "tags": [{
1025
- "name": "default",
1026
- "text": "false"
1027
- }],
1028
- "text": "When true, the two gantts are not interactable."
1029
- },
1030
- "attribute": "read-only",
1031
- "reflect": false,
1032
- "defaultValue": "false"
1033
- },
1034
- "showSecondaryDates": {
1035
- "type": "boolean",
1036
- "mutable": false,
1037
- "complexType": {
1038
- "original": "boolean",
1039
- "resolved": "boolean",
1040
- "references": {}
1041
- },
1042
- "required": false,
1043
- "optional": false,
1044
- "docs": {
1045
- "tags": [{
1046
- "name": "default",
1047
- "text": "false"
1048
- }],
1049
- "text": "Enable/disable display of secondary dates"
1050
- },
1051
- "attribute": "show-secondary-dates",
1052
- "reflect": false,
1053
- "defaultValue": "false"
1054
- },
1055
- "taskColumns": {
1056
- "type": "unknown",
1057
- "mutable": false,
1058
- "complexType": {
1059
- "original": "string[]",
1060
- "resolved": "string[]",
1061
- "references": {}
1062
- },
1063
- "required": false,
1064
- "optional": false,
1065
- "docs": {
1066
- "tags": [{
1067
- "name": "default",
1068
- "text": "null"
1069
- }],
1070
- "text": "Columns containing informations displayed in the left box, near the gantt"
1071
- }
1072
- },
1073
- "taskDates": {
1074
- "type": "unknown",
1075
- "mutable": false,
1076
- "complexType": {
1077
- "original": "string[]",
1078
- "resolved": "string[]",
1079
- "references": {}
1080
- },
1081
- "required": false,
1082
- "optional": false,
1083
- "docs": {
1084
- "tags": [{
1085
- "name": "default",
1086
- "text": "null"
1087
- }],
1088
- "text": "Columns containing task duration, from (firstDate) to (secondDate)"
1089
- }
1090
- },
1091
- "taskFilter": {
1092
- "type": "string",
1093
- "mutable": false,
1094
- "complexType": {
1095
- "original": "string",
1096
- "resolved": "string",
1097
- "references": {}
1098
- },
1099
- "required": false,
1100
- "optional": false,
1101
- "docs": {
1102
- "tags": [{
1103
- "name": "default",
1104
- "text": "undefined"
1105
- }],
1106
- "text": "Sets the task's filter."
1107
- },
1108
- "attribute": "task-filter",
1109
- "reflect": false
1110
- },
1111
- "taskHeight": {
1112
- "type": "number",
1113
- "mutable": false,
1114
- "complexType": {
1115
- "original": "number",
1116
- "resolved": "number",
1117
- "references": {}
1118
- },
1119
- "required": false,
1120
- "optional": false,
1121
- "docs": {
1122
- "tags": [{
1123
- "name": "default",
1124
- "text": "null"
1125
- }],
1126
- "text": "Height for main gantt"
1127
- },
1128
- "attribute": "task-height",
1129
- "reflect": false
1130
- },
1131
- "taskIconCol": {
1132
- "type": "string",
1133
- "mutable": false,
1134
- "complexType": {
1135
- "original": "string",
1136
- "resolved": "string",
1137
- "references": {}
1138
- },
1139
- "required": false,
1140
- "optional": false,
1141
- "docs": {
1142
- "tags": [{
1143
- "name": "default",
1144
- "text": "null"
1145
- }],
1146
- "text": "Column containing icon name to show, for task"
1147
- },
1148
- "attribute": "task-icon-col",
1149
- "reflect": false
1150
- },
1151
- "taskIdCol": {
1152
- "type": "string",
1153
- "mutable": false,
1154
- "complexType": {
1155
- "original": "string",
1156
- "resolved": "string",
1157
- "references": {}
1158
- },
1159
- "required": false,
1160
- "optional": false,
1161
- "docs": {
1162
- "tags": [{
1163
- "name": "default",
1164
- "text": "null"
1165
- }],
1166
- "text": "Column containing unique task identifier"
1167
- },
1168
- "attribute": "task-id-col",
1169
- "reflect": false
1170
- },
1171
- "taskInitialScrollX": {
1172
- "type": "number",
1173
- "mutable": false,
1174
- "complexType": {
1175
- "original": "number",
1176
- "resolved": "number",
1177
- "references": {}
1178
- },
1179
- "required": false,
1180
- "optional": false,
1181
- "docs": {
1182
- "tags": [{
1183
- "name": "default",
1184
- "text": "undefined"
1185
- }],
1186
- "text": "Sets the initial scroll X for the task."
1187
- },
1188
- "attribute": "task-initial-scroll-x",
1189
- "reflect": false
1190
- },
1191
- "taskInitialScrollY": {
1192
- "type": "number",
1193
- "mutable": false,
1194
- "complexType": {
1195
- "original": "number",
1196
- "resolved": "number",
1197
- "references": {}
1198
- },
1199
- "required": false,
1200
- "optional": false,
1201
- "docs": {
1202
- "tags": [{
1203
- "name": "default",
1204
- "text": "undefined"
1205
- }],
1206
- "text": "Sets the initial scroll Y for the task."
1207
- },
1208
- "attribute": "task-initial-scroll-y",
1209
- "reflect": false
1210
- },
1211
- "taskNameCol": {
1212
- "type": "string",
1213
- "mutable": false,
1214
- "complexType": {
1215
- "original": "string",
1216
- "resolved": "string",
1217
- "references": {}
1218
- },
1219
- "required": false,
1220
- "optional": false,
1221
- "docs": {
1222
- "tags": [{
1223
- "name": "default",
1224
- "text": "null"
1225
- }],
1226
- "text": "Column containing task name displayed"
1227
- },
1228
- "attribute": "task-name-col",
1229
- "reflect": false
1230
- },
1231
- "taskPrevDates": {
1232
- "type": "unknown",
1233
- "mutable": false,
1234
- "complexType": {
1235
- "original": "string[]",
1236
- "resolved": "string[]",
1237
- "references": {}
1238
- },
1239
- "required": false,
1240
- "optional": false,
1241
- "docs": {
1242
- "tags": [{
1243
- "name": "default",
1244
- "text": "null"
1245
- }],
1246
- "text": "Columns containing forecast task duration, from (firstDate) to (secondDate)"
367
+ this.kupContextMenu.emit({
368
+ comp: this,
369
+ id: this.rootElement.id,
370
+ value: ganttRow,
371
+ taskAction: taskAction,
372
+ details: {
373
+ cell: cell,
374
+ column: column,
375
+ originalEvent: event,
376
+ row: row,
377
+ },
378
+ });
379
+ }
380
+ onKupDateChange(event, taskAction) {
381
+ this.kupDateChange.emit({
382
+ comp: this,
383
+ id: this.rootElement.id,
384
+ value: event,
385
+ taskAction: taskAction,
386
+ });
387
+ }
388
+ handleOnDblClick(nativeEvent) {
389
+ switch (nativeEvent.rowType) {
390
+ case KupPlannerGanttRowType.TASK:
391
+ if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnDblClickOnTask).call(this)) {
392
+ this.onKupDblClick(nativeEvent, KupPlannerTaskAction.onDblClick);
393
+ }
394
+ break;
395
+ case KupPlannerGanttRowType.PHASE:
396
+ if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnDblClickOnPhase).call(this)) {
397
+ this.onKupDblClick(nativeEvent, KupPlannerTaskAction.onDblClick);
398
+ }
399
+ break;
400
+ case KupPlannerGanttRowType.DETAIL:
401
+ if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnDblClickOnDetail).call(this)) {
402
+ this.onKupDblClick(nativeEvent, KupPlannerTaskAction.onDblClick);
403
+ }
404
+ break;
1247
405
  }
1248
- },
1249
- "titleMess": {
1250
- "type": "string",
1251
- "mutable": false,
1252
- "complexType": {
1253
- "original": "string",
1254
- "resolved": "string",
1255
- "references": {}
1256
- },
1257
- "required": false,
1258
- "optional": false,
1259
- "docs": {
1260
- "tags": [{
1261
- "name": "default",
1262
- "text": "null"
1263
- }],
1264
- "text": "Message displayed on top"
1265
- },
1266
- "attribute": "title-mess",
1267
- "reflect": false
1268
- },
1269
- "viewMode": {
1270
- "type": "string",
1271
- "mutable": false,
1272
- "complexType": {
1273
- "original": "KupPlannerViewMode",
1274
- "resolved": "\"day\" | \"month\" | \"week\" | \"year\"",
1275
- "references": {
1276
- "KupPlannerViewMode": {
1277
- "location": "import",
1278
- "path": "./kup-planner-declarations",
1279
- "id": "src/components/kup-planner/kup-planner-declarations.ts::KupPlannerViewMode"
1280
- }
1281
- }
1282
- },
1283
- "required": false,
1284
- "optional": false,
1285
- "docs": {
1286
- "tags": [{
1287
- "name": "default",
1288
- "text": "'month'"
1289
- }],
1290
- "text": "Sets the view mode."
1291
- },
1292
- "attribute": "view-mode",
1293
- "reflect": false,
1294
- "defaultValue": "'month'"
1295
- }
1296
- };
1297
- }
1298
- static get states() {
1299
- return {
1300
- "plannerProps": {}
1301
- };
1302
- }
1303
- static get events() {
1304
- return [{
1305
- "method": "kupClick",
1306
- "name": "kup-planner-click",
1307
- "bubbles": true,
1308
- "cancelable": false,
1309
- "composed": true,
1310
- "docs": {
1311
- "tags": [],
1312
- "text": ""
1313
- },
1314
- "complexType": {
1315
- "original": "KupPlannerEventPayload",
1316
- "resolved": "KupPlannerEventPayload",
1317
- "references": {
1318
- "KupPlannerEventPayload": {
1319
- "location": "import",
1320
- "path": "./kup-planner-declarations",
1321
- "id": "src/components/kup-planner/kup-planner-declarations.ts::KupPlannerEventPayload"
1322
- }
1323
- }
406
+ for (let index = 0; index < __classPrivateFieldGet(this, _KupPlanner_clickTimeout, "f").length; index++) {
407
+ clearTimeout(__classPrivateFieldGet(this, _KupPlanner_clickTimeout, "f")[index]);
408
+ __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").debug.logMessage(this, 'Cleared click timeout(' + __classPrivateFieldGet(this, _KupPlanner_clickTimeout, "f")[index] + ').');
1324
409
  }
1325
- }, {
1326
- "method": "kupDateChange",
1327
- "name": "kup-planner-datechange",
1328
- "bubbles": true,
1329
- "cancelable": false,
1330
- "composed": true,
1331
- "docs": {
1332
- "tags": [],
1333
- "text": ""
1334
- },
1335
- "complexType": {
1336
- "original": "KupPlannerEventPayload",
1337
- "resolved": "KupPlannerEventPayload",
1338
- "references": {
1339
- "KupPlannerEventPayload": {
1340
- "location": "import",
1341
- "path": "./kup-planner-declarations",
1342
- "id": "src/components/kup-planner/kup-planner-declarations.ts::KupPlannerEventPayload"
410
+ __classPrivateFieldSet(this, _KupPlanner_clickTimeout, [], "f");
411
+ }
412
+ handleOnClick(nativeEvent) {
413
+ __classPrivateFieldGet(this, _KupPlanner_clickTimeout, "f").push(setTimeout(() => {
414
+ switch (nativeEvent.rowType) {
415
+ case KupPlannerGanttRowType.TASK:
416
+ const taskAction = nativeEvent
417
+ .phases
418
+ ? KupPlannerTaskAction.onTaskClosing
419
+ : KupPlannerTaskAction.onTaskOpening;
420
+ if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnClickOnTask).call(this, nativeEvent)) {
421
+ this.onKupClick(nativeEvent, taskAction);
422
+ }
423
+ break;
424
+ case KupPlannerGanttRowType.PHASE:
425
+ if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnClickOnPhase).call(this)) {
426
+ this.onKupClick(nativeEvent, KupPlannerTaskAction.onClick);
427
+ }
428
+ break;
429
+ case KupPlannerGanttRowType.DETAIL:
430
+ if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnClickOnDetail).call(this)) {
431
+ this.onKupClick(nativeEvent, KupPlannerTaskAction.onClick);
432
+ }
433
+ break;
1343
434
  }
1344
- }
435
+ }, 300));
436
+ }
437
+ handleOnContextMenu(event, row) {
438
+ switch (row.rowType) {
439
+ case KupPlannerGanttRowType.TASK:
440
+ if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnContextMenuOnTask).call(this)) {
441
+ this.onKupContextMenu(event, row, KupPlannerTaskAction.onRightClick);
442
+ }
443
+ break;
444
+ case KupPlannerGanttRowType.PHASE:
445
+ if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnContextMenuOnPhase).call(this)) {
446
+ this.onKupContextMenu(event, row, KupPlannerTaskAction.onRightClick);
447
+ }
448
+ break;
449
+ case KupPlannerGanttRowType.DETAIL:
450
+ if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_handleOnContextMenuOnDetail).call(this)) {
451
+ this.onKupContextMenu(event, row, KupPlannerTaskAction.onRightClick);
452
+ }
453
+ break;
1345
454
  }
1346
- }, {
1347
- "method": "kupReady",
1348
- "name": "kup-planner-ready",
1349
- "bubbles": true,
1350
- "cancelable": false,
1351
- "composed": true,
1352
- "docs": {
1353
- "tags": [],
1354
- "text": ""
1355
- },
1356
- "complexType": {
1357
- "original": "KupPlannerEventPayload",
1358
- "resolved": "KupPlannerEventPayload",
1359
- "references": {
1360
- "KupPlannerEventPayload": {
1361
- "location": "import",
1362
- "path": "./kup-planner-declarations",
1363
- "id": "src/components/kup-planner/kup-planner-declarations.ts::KupPlannerEventPayload"
1364
- }
1365
- }
455
+ }
456
+ handleOnSetDoubleView(checked) {
457
+ var _a;
458
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").showSecondaryDates = checked;
459
+ if ((_a = this.plannerProps) === null || _a === void 0 ? void 0 : _a.mainGantt) {
460
+ this.plannerProps.mainGantt.showSecondaryDates = checked;
1366
461
  }
1367
- }, {
1368
- "method": "kupContextMenu",
1369
- "name": "kup-planner-contextmenu",
1370
- "bubbles": true,
1371
- "cancelable": false,
1372
- "composed": true,
1373
- "docs": {
1374
- "tags": [],
1375
- "text": "Generic right click event on planner."
1376
- },
1377
- "complexType": {
1378
- "original": "KupPlannerClickEventPayload",
1379
- "resolved": "KupPlannerClickEventPayload",
1380
- "references": {
1381
- "KupPlannerClickEventPayload": {
1382
- "location": "import",
1383
- "path": "./kup-planner-declarations",
1384
- "id": "src/components/kup-planner/kup-planner-declarations.ts::KupPlannerClickEventPayload"
462
+ this.persistState();
463
+ }
464
+ handleOnSetViewMode(value) {
465
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").viewMode = value;
466
+ this.plannerProps.viewMode = value;
467
+ this.persistState();
468
+ }
469
+ handleOnScrollX(x) {
470
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollX = x;
471
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollX = x;
472
+ this.persistState();
473
+ }
474
+ handleTaskGanttScrollY(y) {
475
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollY = y;
476
+ this.persistState();
477
+ }
478
+ handleDetailGanttScrollY(y) {
479
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollY = y;
480
+ this.persistState();
481
+ }
482
+ handleOnDateChange(nativeEvent) {
483
+ if (__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_emitOnChangeEventsReceived).call(this, nativeEvent)) {
484
+ if (nativeEvent.rowType != KupPlannerGanttRowType.DETAIL) {
485
+ this.onKupDateChange(nativeEvent, KupPlannerTaskAction.onResize);
1385
486
  }
1386
- }
1387
487
  }
1388
- }, {
1389
- "method": "kupDidUnload",
1390
- "name": "kup-planner-didunload",
1391
- "bubbles": true,
1392
- "cancelable": false,
1393
- "composed": true,
1394
- "docs": {
1395
- "tags": [],
1396
- "text": "When component unload is complete"
1397
- },
1398
- "complexType": {
1399
- "original": "KupPlannerUnloadEventPayload",
1400
- "resolved": "KupPlannerUnloadEventPayload",
1401
- "references": {
1402
- "KupPlannerUnloadEventPayload": {
1403
- "location": "import",
1404
- "path": "./kup-planner-declarations",
1405
- "id": "src/components/kup-planner/kup-planner-declarations.ts::KupPlannerUnloadEventPayload"
1406
- }
1407
- }
488
+ }
489
+ render() {
490
+ var _a, _b, _c;
491
+ const plannerProps = this.plannerProps
492
+ ? Object.assign(Object.assign({}, this.plannerProps), { onSetDoubleView: this.handleOnSetDoubleView.bind(this), onSetViewMode: this.handleOnSetViewMode.bind(this), onScrollX: this.handleOnScrollX.bind(this), mainGantt: Object.assign(Object.assign({}, (_a = this.plannerProps) === null || _a === void 0 ? void 0 : _a.mainGantt), { onScrollY: this.handleTaskGanttScrollY.bind(this) }) }) : null;
493
+ if ((_b = this.plannerProps) === null || _b === void 0 ? void 0 : _b.secondaryGantt) {
494
+ plannerProps.secondaryGantt = Object.assign(Object.assign({}, this.plannerProps.secondaryGantt), { onScrollY: this.handleDetailGanttScrollY.bind(this) });
1408
495
  }
1409
- }];
1410
- }
1411
- static get methods() {
1412
- return {
1413
- "getProps": {
1414
- "complexType": {
1415
- "signature": "(descriptions?: boolean) => Promise<GenericObject>",
1416
- "parameters": [{
1417
- "tags": [{
1418
- "name": "param",
1419
- "text": "descriptions - When provided and true, the result will be the list of props with their description."
1420
- }],
1421
- "text": "- When provided and true, the result will be the list of props with their description."
1422
- }],
1423
- "references": {
1424
- "Promise": {
1425
- "location": "global",
1426
- "id": "global::Promise"
496
+ return (h(Host, null, h("style", null, __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, style: { maxWidth: this.maxWidth } }, this.plannerProps && (h("kup-planner-renderer", { props: plannerProps }))), h("div", { style: { display: this.plannerProps ? 'none' : '' } }, h(FTextField, { icon: KupThemeIconValues.SEARCH, id: "main-filter", label: __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), onKeyDown: (e) => {
497
+ if (e.key === 'Enter') {
498
+ __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_onFilter).call(this, e.target.value);
499
+ }
500
+ }, value: this.taskFilter, wrapperClass: "filter" }), ((_c = this.detailData) === null || _c === void 0 ? void 0 : _c.rows) &&
501
+ this.detailData.rows.length > 0 ? (h(FTextField, { icon: KupThemeIconValues.SEARCH, id: "secondary-filter", label: __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), onKeyDown: (e) => {
502
+ if (e.key === 'Enter') {
503
+ __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_onFilter).call(this, e.target.value, true);
504
+ }
505
+ }, value: this.detailFilter, wrapperClass: "filter" })) : null)));
506
+ }
507
+ disconnectedCallback() {
508
+ __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.unregister(this);
509
+ this.kupDidUnload.emit({
510
+ comp: this,
511
+ id: this.rootElement.id,
512
+ storedSettings: __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f"),
513
+ });
514
+ }
515
+ static get is() { return "kup-planner"; }
516
+ static get encapsulation() { return "shadow"; }
517
+ static get originalStyleUrls() {
518
+ return {
519
+ "$": ["kup-planner.scss"]
520
+ };
521
+ }
522
+ static get styleUrls() {
523
+ return {
524
+ "$": ["kup-planner.css"]
525
+ };
526
+ }
527
+ static get properties() {
528
+ return {
529
+ "stateId": {
530
+ "type": "string",
531
+ "mutable": false,
532
+ "complexType": {
533
+ "original": "string",
534
+ "resolved": "string",
535
+ "references": {}
536
+ },
537
+ "required": false,
538
+ "optional": false,
539
+ "docs": {
540
+ "tags": [],
541
+ "text": ""
542
+ },
543
+ "attribute": "state-id",
544
+ "reflect": false,
545
+ "defaultValue": "''"
1427
546
  },
1428
- "GenericObject": {
1429
- "location": "import",
1430
- "path": "../../types/GenericTypes",
1431
- "id": "src/types/GenericTypes.ts::GenericObject"
1432
- }
1433
- },
1434
- "return": "Promise<GenericObject>"
1435
- },
1436
- "docs": {
1437
- "text": "Used to retrieve component's props values.",
1438
- "tags": [{
1439
- "name": "param",
1440
- "text": "descriptions - When provided and true, the result will be the list of props with their description."
1441
- }, {
1442
- "name": "returns",
1443
- "text": "List of props as object, each key will be a prop."
1444
- }]
1445
- }
1446
- },
1447
- "refresh": {
1448
- "complexType": {
1449
- "signature": "() => Promise<void>",
1450
- "parameters": [],
1451
- "references": {
1452
- "Promise": {
1453
- "location": "global",
1454
- "id": "global::Promise"
1455
- }
1456
- },
1457
- "return": "Promise<void>"
1458
- },
1459
- "docs": {
1460
- "text": "This method is used to trigger a new render of the component.",
1461
- "tags": []
1462
- }
1463
- },
1464
- "setProps": {
1465
- "complexType": {
1466
- "signature": "(props: GenericObject) => Promise<void>",
1467
- "parameters": [{
1468
- "tags": [{
1469
- "name": "param",
1470
- "text": "props - Object containing props that will be set to the component."
1471
- }],
1472
- "text": "- Object containing props that will be set to the component."
1473
- }],
1474
- "references": {
1475
- "Promise": {
1476
- "location": "global",
1477
- "id": "global::Promise"
547
+ "store": {
548
+ "type": "unknown",
549
+ "mutable": false,
550
+ "complexType": {
551
+ "original": "KupStore",
552
+ "resolved": "KupStore",
553
+ "references": {
554
+ "KupStore": {
555
+ "location": "import",
556
+ "path": "../kup-state/kup-store",
557
+ "id": "src/components/kup-state/kup-store.ts::KupStore"
558
+ }
559
+ }
560
+ },
561
+ "required": false,
562
+ "optional": false,
563
+ "docs": {
564
+ "tags": [],
565
+ "text": ""
566
+ }
567
+ },
568
+ "customStyle": {
569
+ "type": "string",
570
+ "mutable": false,
571
+ "complexType": {
572
+ "original": "string",
573
+ "resolved": "string",
574
+ "references": {}
575
+ },
576
+ "required": false,
577
+ "optional": false,
578
+ "docs": {
579
+ "tags": [{
580
+ "name": "default",
581
+ "text": "\"\""
582
+ }, {
583
+ "name": "see",
584
+ "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
585
+ }],
586
+ "text": "Custom style of the component."
587
+ },
588
+ "attribute": "custom-style",
589
+ "reflect": false,
590
+ "defaultValue": "''"
591
+ },
592
+ "data": {
593
+ "type": "unknown",
594
+ "mutable": false,
595
+ "complexType": {
596
+ "original": "KupDataDataset",
597
+ "resolved": "KupDataDataset",
598
+ "references": {
599
+ "KupDataDataset": {
600
+ "location": "import",
601
+ "path": "../../managers/kup-data/kup-data-declarations",
602
+ "id": "src/managers/kup-data/kup-data-declarations.ts::KupDataDataset"
603
+ }
604
+ }
605
+ },
606
+ "required": false,
607
+ "optional": false,
608
+ "docs": {
609
+ "tags": [{
610
+ "name": "default",
611
+ "text": "null"
612
+ }],
613
+ "text": "Dataset containg the tasks list"
614
+ }
615
+ },
616
+ "detailData": {
617
+ "type": "unknown",
618
+ "mutable": false,
619
+ "complexType": {
620
+ "original": "KupDataDataset",
621
+ "resolved": "KupDataDataset",
622
+ "references": {
623
+ "KupDataDataset": {
624
+ "location": "import",
625
+ "path": "../../managers/kup-data/kup-data-declarations",
626
+ "id": "src/managers/kup-data/kup-data-declarations.ts::KupDataDataset"
627
+ }
628
+ }
629
+ },
630
+ "required": false,
631
+ "optional": false,
632
+ "docs": {
633
+ "tags": [{
634
+ "name": "default",
635
+ "text": "null"
636
+ }],
637
+ "text": "Dataset containg the details list"
638
+ }
639
+ },
640
+ "detailColorCol": {
641
+ "type": "string",
642
+ "mutable": false,
643
+ "complexType": {
644
+ "original": "string",
645
+ "resolved": "string",
646
+ "references": {}
647
+ },
648
+ "required": false,
649
+ "optional": false,
650
+ "docs": {
651
+ "tags": [{
652
+ "name": "default",
653
+ "text": "null"
654
+ }],
655
+ "text": "Column containing the detail color, in hex format"
656
+ },
657
+ "attribute": "detail-color-col",
658
+ "reflect": false
659
+ },
660
+ "detailColumns": {
661
+ "type": "unknown",
662
+ "mutable": false,
663
+ "complexType": {
664
+ "original": "string[]",
665
+ "resolved": "string[]",
666
+ "references": {}
667
+ },
668
+ "required": false,
669
+ "optional": false,
670
+ "docs": {
671
+ "tags": [{
672
+ "name": "default",
673
+ "text": "null"
674
+ }],
675
+ "text": "Columns containing informations displayed in the left box, near the gantt of details"
676
+ }
677
+ },
678
+ "detailDates": {
679
+ "type": "unknown",
680
+ "mutable": false,
681
+ "complexType": {
682
+ "original": "string[]",
683
+ "resolved": "string[]",
684
+ "references": {}
685
+ },
686
+ "required": false,
687
+ "optional": false,
688
+ "docs": {
689
+ "tags": [{
690
+ "name": "default",
691
+ "text": "null"
692
+ }],
693
+ "text": "Columns containing detail duration, from (firstDate) to (secondDate)"
694
+ }
695
+ },
696
+ "detailFilter": {
697
+ "type": "string",
698
+ "mutable": false,
699
+ "complexType": {
700
+ "original": "string",
701
+ "resolved": "string",
702
+ "references": {}
703
+ },
704
+ "required": false,
705
+ "optional": false,
706
+ "docs": {
707
+ "tags": [{
708
+ "name": "default",
709
+ "text": "undefined"
710
+ }],
711
+ "text": "Sets the detail's filter."
712
+ },
713
+ "attribute": "detail-filter",
714
+ "reflect": false
715
+ },
716
+ "detailHeight": {
717
+ "type": "number",
718
+ "mutable": false,
719
+ "complexType": {
720
+ "original": "number",
721
+ "resolved": "number",
722
+ "references": {}
723
+ },
724
+ "required": false,
725
+ "optional": false,
726
+ "docs": {
727
+ "tags": [{
728
+ "name": "default",
729
+ "text": "null"
730
+ }],
731
+ "text": "Height for detail gantt"
732
+ },
733
+ "attribute": "detail-height",
734
+ "reflect": false
735
+ },
736
+ "detailIconCol": {
737
+ "type": "string",
738
+ "mutable": false,
739
+ "complexType": {
740
+ "original": "string",
741
+ "resolved": "string",
742
+ "references": {}
743
+ },
744
+ "required": false,
745
+ "optional": false,
746
+ "docs": {
747
+ "tags": [{
748
+ "name": "default",
749
+ "text": "null"
750
+ }],
751
+ "text": "Column containing icon name to show, for detail"
752
+ },
753
+ "attribute": "detail-icon-col",
754
+ "reflect": false
755
+ },
756
+ "detailIdCol": {
757
+ "type": "string",
758
+ "mutable": false,
759
+ "complexType": {
760
+ "original": "string",
761
+ "resolved": "string",
762
+ "references": {}
763
+ },
764
+ "required": false,
765
+ "optional": false,
766
+ "docs": {
767
+ "tags": [{
768
+ "name": "default",
769
+ "text": "null"
770
+ }],
771
+ "text": "Column containing unique detail identifier"
772
+ },
773
+ "attribute": "detail-id-col",
774
+ "reflect": false
775
+ },
776
+ "detailNameCol": {
777
+ "type": "string",
778
+ "mutable": false,
779
+ "complexType": {
780
+ "original": "string",
781
+ "resolved": "string",
782
+ "references": {}
783
+ },
784
+ "required": false,
785
+ "optional": false,
786
+ "docs": {
787
+ "tags": [{
788
+ "name": "default",
789
+ "text": "null"
790
+ }],
791
+ "text": "Column containing detail name displayed"
792
+ },
793
+ "attribute": "detail-name-col",
794
+ "reflect": false
795
+ },
796
+ "detailPrevDates": {
797
+ "type": "unknown",
798
+ "mutable": false,
799
+ "complexType": {
800
+ "original": "string[]",
801
+ "resolved": "string[]",
802
+ "references": {}
803
+ },
804
+ "required": false,
805
+ "optional": false,
806
+ "docs": {
807
+ "tags": [{
808
+ "name": "default",
809
+ "text": "null"
810
+ }],
811
+ "text": "Columns containing forecast detail duration, from (firstDate) to (secondDate)"
812
+ }
813
+ },
814
+ "detailInitialScrollX": {
815
+ "type": "number",
816
+ "mutable": false,
817
+ "complexType": {
818
+ "original": "number",
819
+ "resolved": "number",
820
+ "references": {}
821
+ },
822
+ "required": false,
823
+ "optional": false,
824
+ "docs": {
825
+ "tags": [{
826
+ "name": "default",
827
+ "text": "undefined"
828
+ }],
829
+ "text": "Sets the initial scroll X for the detail."
830
+ },
831
+ "attribute": "detail-initial-scroll-x",
832
+ "reflect": false
833
+ },
834
+ "detailInitialScrollY": {
835
+ "type": "number",
836
+ "mutable": false,
837
+ "complexType": {
838
+ "original": "number",
839
+ "resolved": "number",
840
+ "references": {}
841
+ },
842
+ "required": false,
843
+ "optional": false,
844
+ "docs": {
845
+ "tags": [{
846
+ "name": "default",
847
+ "text": "undefined"
848
+ }],
849
+ "text": "Sets the initial scroll Y for the detail."
850
+ },
851
+ "attribute": "detail-initial-scroll-y",
852
+ "reflect": false
853
+ },
854
+ "listCellWidth": {
855
+ "type": "string",
856
+ "mutable": false,
857
+ "complexType": {
858
+ "original": "string",
859
+ "resolved": "string",
860
+ "references": {}
861
+ },
862
+ "required": false,
863
+ "optional": false,
864
+ "docs": {
865
+ "tags": [{
866
+ "name": "default",
867
+ "text": "'300px'"
868
+ }],
869
+ "text": "Total size of the cells inside to the left box, near the gantt"
870
+ },
871
+ "attribute": "list-cell-width",
872
+ "reflect": false,
873
+ "defaultValue": "'300px'"
874
+ },
875
+ "maxWidth": {
876
+ "type": "string",
877
+ "mutable": false,
878
+ "complexType": {
879
+ "original": "string",
880
+ "resolved": "string",
881
+ "references": {}
882
+ },
883
+ "required": false,
884
+ "optional": false,
885
+ "docs": {
886
+ "tags": [{
887
+ "name": "default",
888
+ "text": "'90vw'"
889
+ }],
890
+ "text": "Max width for component"
891
+ },
892
+ "attribute": "max-width",
893
+ "reflect": false,
894
+ "defaultValue": "'90vw'"
895
+ },
896
+ "phaseColorCol": {
897
+ "type": "string",
898
+ "mutable": false,
899
+ "complexType": {
900
+ "original": "string",
901
+ "resolved": "string",
902
+ "references": {}
903
+ },
904
+ "required": false,
905
+ "optional": false,
906
+ "docs": {
907
+ "tags": [{
908
+ "name": "default",
909
+ "text": "null"
910
+ }],
911
+ "text": "Column containing the phase color in hex format"
912
+ },
913
+ "attribute": "phase-color-col",
914
+ "reflect": false
915
+ },
916
+ "phaseColumns": {
917
+ "type": "unknown",
918
+ "mutable": false,
919
+ "complexType": {
920
+ "original": "string[]",
921
+ "resolved": "string[]",
922
+ "references": {}
923
+ },
924
+ "required": false,
925
+ "optional": false,
926
+ "docs": {
927
+ "tags": [{
928
+ "name": "default",
929
+ "text": "null"
930
+ }],
931
+ "text": "Columns containing informations displayed in the left box ,near the gantt of phases"
932
+ }
933
+ },
934
+ "phaseColParDep": {
935
+ "type": "string",
936
+ "mutable": false,
937
+ "complexType": {
938
+ "original": "string",
939
+ "resolved": "string",
940
+ "references": {}
941
+ },
942
+ "required": false,
943
+ "optional": false,
944
+ "docs": {
945
+ "tags": [{
946
+ "name": "default",
947
+ "text": "null"
948
+ }],
949
+ "text": "Column containing the name of the parent phases"
950
+ },
951
+ "attribute": "phase-col-par-dep",
952
+ "reflect": false
953
+ },
954
+ "phaseDates": {
955
+ "type": "unknown",
956
+ "mutable": false,
957
+ "complexType": {
958
+ "original": "string[]",
959
+ "resolved": "string[]",
960
+ "references": {}
961
+ },
962
+ "required": false,
963
+ "optional": false,
964
+ "docs": {
965
+ "tags": [{
966
+ "name": "default",
967
+ "text": "null"
968
+ }],
969
+ "text": "Columns containing phase duration, from (firstDate) to (secondDate)"
970
+ }
1478
971
  },
1479
- "GenericObject": {
1480
- "location": "import",
1481
- "path": "../../types/GenericTypes",
1482
- "id": "src/types/GenericTypes.ts::GenericObject"
972
+ "phaseIconCol": {
973
+ "type": "string",
974
+ "mutable": false,
975
+ "complexType": {
976
+ "original": "string",
977
+ "resolved": "string",
978
+ "references": {}
979
+ },
980
+ "required": false,
981
+ "optional": false,
982
+ "docs": {
983
+ "tags": [{
984
+ "name": "default",
985
+ "text": "null"
986
+ }],
987
+ "text": "Column containing icon name to show, for phase"
988
+ },
989
+ "attribute": "phase-icon-col",
990
+ "reflect": false
991
+ },
992
+ "phaseIdCol": {
993
+ "type": "string",
994
+ "mutable": false,
995
+ "complexType": {
996
+ "original": "string",
997
+ "resolved": "string",
998
+ "references": {}
999
+ },
1000
+ "required": false,
1001
+ "optional": false,
1002
+ "docs": {
1003
+ "tags": [{
1004
+ "name": "default",
1005
+ "text": "null"
1006
+ }],
1007
+ "text": "Column containing unique phase identifier"
1008
+ },
1009
+ "attribute": "phase-id-col",
1010
+ "reflect": false
1011
+ },
1012
+ "phaseNameCol": {
1013
+ "type": "string",
1014
+ "mutable": false,
1015
+ "complexType": {
1016
+ "original": "string",
1017
+ "resolved": "string",
1018
+ "references": {}
1019
+ },
1020
+ "required": false,
1021
+ "optional": false,
1022
+ "docs": {
1023
+ "tags": [{
1024
+ "name": "default",
1025
+ "text": "null"
1026
+ }],
1027
+ "text": "Column containing phase name displayed"
1028
+ },
1029
+ "attribute": "phase-name-col",
1030
+ "reflect": false
1031
+ },
1032
+ "phasePrevDates": {
1033
+ "type": "unknown",
1034
+ "mutable": false,
1035
+ "complexType": {
1036
+ "original": "string[]",
1037
+ "resolved": "string[]",
1038
+ "references": {}
1039
+ },
1040
+ "required": false,
1041
+ "optional": false,
1042
+ "docs": {
1043
+ "tags": [{
1044
+ "name": "default",
1045
+ "text": "null"
1046
+ }],
1047
+ "text": "Columns containing forecast phase duration, from (firstDate) to (secondDate)"
1048
+ }
1049
+ },
1050
+ "readOnly": {
1051
+ "type": "boolean",
1052
+ "mutable": false,
1053
+ "complexType": {
1054
+ "original": "boolean",
1055
+ "resolved": "boolean",
1056
+ "references": {}
1057
+ },
1058
+ "required": false,
1059
+ "optional": false,
1060
+ "docs": {
1061
+ "tags": [{
1062
+ "name": "default",
1063
+ "text": "false"
1064
+ }],
1065
+ "text": "When true, the two gantts are not interactable."
1066
+ },
1067
+ "attribute": "read-only",
1068
+ "reflect": false,
1069
+ "defaultValue": "false"
1070
+ },
1071
+ "showSecondaryDates": {
1072
+ "type": "boolean",
1073
+ "mutable": false,
1074
+ "complexType": {
1075
+ "original": "boolean",
1076
+ "resolved": "boolean",
1077
+ "references": {}
1078
+ },
1079
+ "required": false,
1080
+ "optional": false,
1081
+ "docs": {
1082
+ "tags": [{
1083
+ "name": "default",
1084
+ "text": "false"
1085
+ }],
1086
+ "text": "Enable/disable display of secondary dates"
1087
+ },
1088
+ "attribute": "show-secondary-dates",
1089
+ "reflect": false,
1090
+ "defaultValue": "false"
1091
+ },
1092
+ "taskColumns": {
1093
+ "type": "unknown",
1094
+ "mutable": false,
1095
+ "complexType": {
1096
+ "original": "string[]",
1097
+ "resolved": "string[]",
1098
+ "references": {}
1099
+ },
1100
+ "required": false,
1101
+ "optional": false,
1102
+ "docs": {
1103
+ "tags": [{
1104
+ "name": "default",
1105
+ "text": "null"
1106
+ }],
1107
+ "text": "Columns containing informations displayed in the left box, near the gantt"
1108
+ }
1109
+ },
1110
+ "taskDates": {
1111
+ "type": "unknown",
1112
+ "mutable": false,
1113
+ "complexType": {
1114
+ "original": "string[]",
1115
+ "resolved": "string[]",
1116
+ "references": {}
1117
+ },
1118
+ "required": false,
1119
+ "optional": false,
1120
+ "docs": {
1121
+ "tags": [{
1122
+ "name": "default",
1123
+ "text": "null"
1124
+ }],
1125
+ "text": "Columns containing task duration, from (firstDate) to (secondDate)"
1126
+ }
1127
+ },
1128
+ "taskFilter": {
1129
+ "type": "string",
1130
+ "mutable": false,
1131
+ "complexType": {
1132
+ "original": "string",
1133
+ "resolved": "string",
1134
+ "references": {}
1135
+ },
1136
+ "required": false,
1137
+ "optional": false,
1138
+ "docs": {
1139
+ "tags": [{
1140
+ "name": "default",
1141
+ "text": "undefined"
1142
+ }],
1143
+ "text": "Sets the task's filter."
1144
+ },
1145
+ "attribute": "task-filter",
1146
+ "reflect": false
1147
+ },
1148
+ "taskHeight": {
1149
+ "type": "number",
1150
+ "mutable": false,
1151
+ "complexType": {
1152
+ "original": "number",
1153
+ "resolved": "number",
1154
+ "references": {}
1155
+ },
1156
+ "required": false,
1157
+ "optional": false,
1158
+ "docs": {
1159
+ "tags": [{
1160
+ "name": "default",
1161
+ "text": "null"
1162
+ }],
1163
+ "text": "Height for main gantt"
1164
+ },
1165
+ "attribute": "task-height",
1166
+ "reflect": false
1167
+ },
1168
+ "taskIconCol": {
1169
+ "type": "string",
1170
+ "mutable": false,
1171
+ "complexType": {
1172
+ "original": "string",
1173
+ "resolved": "string",
1174
+ "references": {}
1175
+ },
1176
+ "required": false,
1177
+ "optional": false,
1178
+ "docs": {
1179
+ "tags": [{
1180
+ "name": "default",
1181
+ "text": "null"
1182
+ }],
1183
+ "text": "Column containing icon name to show, for task"
1184
+ },
1185
+ "attribute": "task-icon-col",
1186
+ "reflect": false
1187
+ },
1188
+ "taskIdCol": {
1189
+ "type": "string",
1190
+ "mutable": false,
1191
+ "complexType": {
1192
+ "original": "string",
1193
+ "resolved": "string",
1194
+ "references": {}
1195
+ },
1196
+ "required": false,
1197
+ "optional": false,
1198
+ "docs": {
1199
+ "tags": [{
1200
+ "name": "default",
1201
+ "text": "null"
1202
+ }],
1203
+ "text": "Column containing unique task identifier"
1204
+ },
1205
+ "attribute": "task-id-col",
1206
+ "reflect": false
1207
+ },
1208
+ "taskInitialScrollX": {
1209
+ "type": "number",
1210
+ "mutable": false,
1211
+ "complexType": {
1212
+ "original": "number",
1213
+ "resolved": "number",
1214
+ "references": {}
1215
+ },
1216
+ "required": false,
1217
+ "optional": false,
1218
+ "docs": {
1219
+ "tags": [{
1220
+ "name": "default",
1221
+ "text": "undefined"
1222
+ }],
1223
+ "text": "Sets the initial scroll X for the task."
1224
+ },
1225
+ "attribute": "task-initial-scroll-x",
1226
+ "reflect": false
1227
+ },
1228
+ "taskInitialScrollY": {
1229
+ "type": "number",
1230
+ "mutable": false,
1231
+ "complexType": {
1232
+ "original": "number",
1233
+ "resolved": "number",
1234
+ "references": {}
1235
+ },
1236
+ "required": false,
1237
+ "optional": false,
1238
+ "docs": {
1239
+ "tags": [{
1240
+ "name": "default",
1241
+ "text": "undefined"
1242
+ }],
1243
+ "text": "Sets the initial scroll Y for the task."
1244
+ },
1245
+ "attribute": "task-initial-scroll-y",
1246
+ "reflect": false
1247
+ },
1248
+ "taskNameCol": {
1249
+ "type": "string",
1250
+ "mutable": false,
1251
+ "complexType": {
1252
+ "original": "string",
1253
+ "resolved": "string",
1254
+ "references": {}
1255
+ },
1256
+ "required": false,
1257
+ "optional": false,
1258
+ "docs": {
1259
+ "tags": [{
1260
+ "name": "default",
1261
+ "text": "null"
1262
+ }],
1263
+ "text": "Column containing task name displayed"
1264
+ },
1265
+ "attribute": "task-name-col",
1266
+ "reflect": false
1267
+ },
1268
+ "taskPrevDates": {
1269
+ "type": "unknown",
1270
+ "mutable": false,
1271
+ "complexType": {
1272
+ "original": "string[]",
1273
+ "resolved": "string[]",
1274
+ "references": {}
1275
+ },
1276
+ "required": false,
1277
+ "optional": false,
1278
+ "docs": {
1279
+ "tags": [{
1280
+ "name": "default",
1281
+ "text": "null"
1282
+ }],
1283
+ "text": "Columns containing forecast task duration, from (firstDate) to (secondDate)"
1284
+ }
1285
+ },
1286
+ "titleMess": {
1287
+ "type": "string",
1288
+ "mutable": false,
1289
+ "complexType": {
1290
+ "original": "string",
1291
+ "resolved": "string",
1292
+ "references": {}
1293
+ },
1294
+ "required": false,
1295
+ "optional": false,
1296
+ "docs": {
1297
+ "tags": [{
1298
+ "name": "default",
1299
+ "text": "null"
1300
+ }],
1301
+ "text": "Message displayed on top"
1302
+ },
1303
+ "attribute": "title-mess",
1304
+ "reflect": false
1305
+ },
1306
+ "viewMode": {
1307
+ "type": "string",
1308
+ "mutable": false,
1309
+ "complexType": {
1310
+ "original": "KupPlannerViewMode",
1311
+ "resolved": "\"day\" | \"month\" | \"week\" | \"year\"",
1312
+ "references": {
1313
+ "KupPlannerViewMode": {
1314
+ "location": "import",
1315
+ "path": "./kup-planner-declarations",
1316
+ "id": "src/components/kup-planner/kup-planner-declarations.ts::KupPlannerViewMode"
1317
+ }
1318
+ }
1319
+ },
1320
+ "required": false,
1321
+ "optional": false,
1322
+ "docs": {
1323
+ "tags": [{
1324
+ "name": "default",
1325
+ "text": "'month'"
1326
+ }],
1327
+ "text": "Sets the view mode."
1328
+ },
1329
+ "attribute": "view-mode",
1330
+ "reflect": false,
1331
+ "defaultValue": "'month'"
1332
+ },
1333
+ "mainFilter": {
1334
+ "type": "unknown",
1335
+ "mutable": false,
1336
+ "complexType": {
1337
+ "original": "HTMLElement",
1338
+ "resolved": "HTMLElement",
1339
+ "references": {
1340
+ "HTMLElement": {
1341
+ "location": "global",
1342
+ "id": "global::HTMLElement"
1343
+ }
1344
+ }
1345
+ },
1346
+ "required": false,
1347
+ "optional": false,
1348
+ "docs": {
1349
+ "tags": [{
1350
+ "name": "default",
1351
+ "text": "undefined"
1352
+ }],
1353
+ "text": "Sets the filter for main gantt."
1354
+ }
1355
+ },
1356
+ "secondaryFilter": {
1357
+ "type": "unknown",
1358
+ "mutable": false,
1359
+ "complexType": {
1360
+ "original": "HTMLElement",
1361
+ "resolved": "HTMLElement",
1362
+ "references": {
1363
+ "HTMLElement": {
1364
+ "location": "global",
1365
+ "id": "global::HTMLElement"
1366
+ }
1367
+ }
1368
+ },
1369
+ "required": false,
1370
+ "optional": false,
1371
+ "docs": {
1372
+ "tags": [{
1373
+ "name": "default",
1374
+ "text": "undefined"
1375
+ }],
1376
+ "text": "Sets the filter for secondary gantt."
1377
+ }
1483
1378
  }
1484
- },
1485
- "return": "Promise<void>"
1486
- },
1487
- "docs": {
1488
- "text": "Sets the props to the component.",
1489
- "tags": [{
1490
- "name": "param",
1491
- "text": "props - Object containing props that will be set to the component."
1492
- }]
1493
- }
1494
- },
1495
- "addPhases": {
1496
- "complexType": {
1497
- "signature": "(taskId: string, data: KupDataDataset) => Promise<void>",
1498
- "parameters": [{
1499
- "tags": [{
1500
- "name": "param",
1501
- "text": "taskId"
1502
- }],
1503
- "text": ""
1379
+ };
1380
+ }
1381
+ static get states() {
1382
+ return {
1383
+ "plannerProps": {}
1384
+ };
1385
+ }
1386
+ static get events() {
1387
+ return [{
1388
+ "method": "kupClick",
1389
+ "name": "kup-planner-click",
1390
+ "bubbles": true,
1391
+ "cancelable": false,
1392
+ "composed": true,
1393
+ "docs": {
1394
+ "tags": [],
1395
+ "text": ""
1396
+ },
1397
+ "complexType": {
1398
+ "original": "KupPlannerEventPayload",
1399
+ "resolved": "KupPlannerEventPayload",
1400
+ "references": {
1401
+ "KupPlannerEventPayload": {
1402
+ "location": "import",
1403
+ "path": "./kup-planner-declarations",
1404
+ "id": "src/components/kup-planner/kup-planner-declarations.ts::KupPlannerEventPayload"
1405
+ }
1406
+ }
1407
+ }
1408
+ }, {
1409
+ "method": "kupDblClick",
1410
+ "name": "kup-planner-dblclick",
1411
+ "bubbles": true,
1412
+ "cancelable": false,
1413
+ "composed": true,
1414
+ "docs": {
1415
+ "tags": [],
1416
+ "text": ""
1417
+ },
1418
+ "complexType": {
1419
+ "original": "KupPlannerEventPayload",
1420
+ "resolved": "KupPlannerEventPayload",
1421
+ "references": {
1422
+ "KupPlannerEventPayload": {
1423
+ "location": "import",
1424
+ "path": "./kup-planner-declarations",
1425
+ "id": "src/components/kup-planner/kup-planner-declarations.ts::KupPlannerEventPayload"
1426
+ }
1427
+ }
1428
+ }
1429
+ }, {
1430
+ "method": "kupDateChange",
1431
+ "name": "kup-planner-datechange",
1432
+ "bubbles": true,
1433
+ "cancelable": false,
1434
+ "composed": true,
1435
+ "docs": {
1436
+ "tags": [],
1437
+ "text": ""
1438
+ },
1439
+ "complexType": {
1440
+ "original": "KupPlannerEventPayload",
1441
+ "resolved": "KupPlannerEventPayload",
1442
+ "references": {
1443
+ "KupPlannerEventPayload": {
1444
+ "location": "import",
1445
+ "path": "./kup-planner-declarations",
1446
+ "id": "src/components/kup-planner/kup-planner-declarations.ts::KupPlannerEventPayload"
1447
+ }
1448
+ }
1449
+ }
1450
+ }, {
1451
+ "method": "kupReady",
1452
+ "name": "kup-planner-ready",
1453
+ "bubbles": true,
1454
+ "cancelable": false,
1455
+ "composed": true,
1456
+ "docs": {
1457
+ "tags": [],
1458
+ "text": ""
1459
+ },
1460
+ "complexType": {
1461
+ "original": "KupPlannerEventPayload",
1462
+ "resolved": "KupPlannerEventPayload",
1463
+ "references": {
1464
+ "KupPlannerEventPayload": {
1465
+ "location": "import",
1466
+ "path": "./kup-planner-declarations",
1467
+ "id": "src/components/kup-planner/kup-planner-declarations.ts::KupPlannerEventPayload"
1468
+ }
1469
+ }
1470
+ }
1504
1471
  }, {
1505
- "tags": [{
1506
- "name": "param",
1507
- "text": "data - Matrix which contains project phases"
1508
- }],
1509
- "text": "- Matrix which contains project phases"
1510
- }],
1511
- "references": {
1512
- "Promise": {
1513
- "location": "global",
1514
- "id": "global::Promise"
1472
+ "method": "kupContextMenu",
1473
+ "name": "kup-planner-contextmenu",
1474
+ "bubbles": true,
1475
+ "cancelable": false,
1476
+ "composed": true,
1477
+ "docs": {
1478
+ "tags": [],
1479
+ "text": "Generic right click event on planner."
1480
+ },
1481
+ "complexType": {
1482
+ "original": "KupPlannerClickEventPayload",
1483
+ "resolved": "KupPlannerClickEventPayload",
1484
+ "references": {
1485
+ "KupPlannerClickEventPayload": {
1486
+ "location": "import",
1487
+ "path": "./kup-planner-declarations",
1488
+ "id": "src/components/kup-planner/kup-planner-declarations.ts::KupPlannerClickEventPayload"
1489
+ }
1490
+ }
1491
+ }
1492
+ }, {
1493
+ "method": "kupDidUnload",
1494
+ "name": "kup-planner-didunload",
1495
+ "bubbles": true,
1496
+ "cancelable": false,
1497
+ "composed": true,
1498
+ "docs": {
1499
+ "tags": [],
1500
+ "text": "When component unload is complete"
1501
+ },
1502
+ "complexType": {
1503
+ "original": "KupPlannerUnloadEventPayload",
1504
+ "resolved": "KupPlannerUnloadEventPayload",
1505
+ "references": {
1506
+ "KupPlannerUnloadEventPayload": {
1507
+ "location": "import",
1508
+ "path": "./kup-planner-declarations",
1509
+ "id": "src/components/kup-planner/kup-planner-declarations.ts::KupPlannerUnloadEventPayload"
1510
+ }
1511
+ }
1512
+ }
1513
+ }];
1514
+ }
1515
+ static get methods() {
1516
+ return {
1517
+ "getProps": {
1518
+ "complexType": {
1519
+ "signature": "(descriptions?: boolean) => Promise<GenericObject>",
1520
+ "parameters": [{
1521
+ "tags": [{
1522
+ "name": "param",
1523
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
1524
+ }],
1525
+ "text": "- When provided and true, the result will be the list of props with their description."
1526
+ }],
1527
+ "references": {
1528
+ "Promise": {
1529
+ "location": "global",
1530
+ "id": "global::Promise"
1531
+ },
1532
+ "GenericObject": {
1533
+ "location": "import",
1534
+ "path": "../../types/GenericTypes",
1535
+ "id": "src/types/GenericTypes.ts::GenericObject"
1536
+ }
1537
+ },
1538
+ "return": "Promise<GenericObject>"
1539
+ },
1540
+ "docs": {
1541
+ "text": "Used to retrieve component's props values.",
1542
+ "tags": [{
1543
+ "name": "param",
1544
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
1545
+ }, {
1546
+ "name": "returns",
1547
+ "text": "List of props as object, each key will be a prop."
1548
+ }]
1549
+ }
1515
1550
  },
1516
- "KupDataDataset": {
1517
- "location": "import",
1518
- "path": "../../managers/kup-data/kup-data-declarations",
1519
- "id": "src/managers/kup-data/kup-data-declarations.ts::KupDataDataset"
1551
+ "refresh": {
1552
+ "complexType": {
1553
+ "signature": "() => Promise<void>",
1554
+ "parameters": [],
1555
+ "references": {
1556
+ "Promise": {
1557
+ "location": "global",
1558
+ "id": "global::Promise"
1559
+ }
1560
+ },
1561
+ "return": "Promise<void>"
1562
+ },
1563
+ "docs": {
1564
+ "text": "This method is used to trigger a new render of the component.",
1565
+ "tags": []
1566
+ }
1520
1567
  },
1521
- "KupPlannerPhase": {
1522
- "location": "import",
1523
- "path": "./kup-planner-declarations",
1524
- "id": "src/components/kup-planner/kup-planner-declarations.ts::KupPlannerPhase"
1568
+ "setProps": {
1569
+ "complexType": {
1570
+ "signature": "(props: GenericObject) => Promise<void>",
1571
+ "parameters": [{
1572
+ "tags": [{
1573
+ "name": "param",
1574
+ "text": "props - Object containing props that will be set to the component."
1575
+ }],
1576
+ "text": "- Object containing props that will be set to the component."
1577
+ }],
1578
+ "references": {
1579
+ "Promise": {
1580
+ "location": "global",
1581
+ "id": "global::Promise"
1582
+ },
1583
+ "GenericObject": {
1584
+ "location": "import",
1585
+ "path": "../../types/GenericTypes",
1586
+ "id": "src/types/GenericTypes.ts::GenericObject"
1587
+ }
1588
+ },
1589
+ "return": "Promise<void>"
1590
+ },
1591
+ "docs": {
1592
+ "text": "Sets the props to the component.",
1593
+ "tags": [{
1594
+ "name": "param",
1595
+ "text": "props - Object containing props that will be set to the component."
1596
+ }]
1597
+ }
1525
1598
  },
1526
- "TaskType": {
1527
- "location": "import",
1528
- "path": "@sme.up/gantt-component/dist/types/public-types",
1529
- "id": ""
1599
+ "addPhases": {
1600
+ "complexType": {
1601
+ "signature": "(taskId: string, data: KupDataDataset) => Promise<void>",
1602
+ "parameters": [{
1603
+ "tags": [{
1604
+ "name": "param",
1605
+ "text": "taskId"
1606
+ }],
1607
+ "text": ""
1608
+ }, {
1609
+ "tags": [{
1610
+ "name": "param",
1611
+ "text": "data - Matrix which contains project phases"
1612
+ }],
1613
+ "text": "- Matrix which contains project phases"
1614
+ }],
1615
+ "references": {
1616
+ "Promise": {
1617
+ "location": "global",
1618
+ "id": "global::Promise"
1619
+ },
1620
+ "KupDataDataset": {
1621
+ "location": "import",
1622
+ "path": "../../managers/kup-data/kup-data-declarations",
1623
+ "id": "src/managers/kup-data/kup-data-declarations.ts::KupDataDataset"
1624
+ },
1625
+ "KupPlannerPhase": {
1626
+ "location": "import",
1627
+ "path": "./kup-planner-declarations",
1628
+ "id": "src/components/kup-planner/kup-planner-declarations.ts::KupPlannerPhase"
1629
+ },
1630
+ "KupPlannerTaskType": {
1631
+ "location": "import",
1632
+ "path": "./kup-planner-declarations",
1633
+ "id": "src/components/kup-planner/kup-planner-declarations.ts::KupPlannerTaskType"
1634
+ }
1635
+ },
1636
+ "return": "Promise<void>"
1637
+ },
1638
+ "docs": {
1639
+ "text": "Add a list of phases to the project",
1640
+ "tags": [{
1641
+ "name": "param",
1642
+ "text": "taskId"
1643
+ }, {
1644
+ "name": "param",
1645
+ "text": "data - Matrix which contains project phases"
1646
+ }]
1647
+ }
1530
1648
  }
1531
- },
1532
- "return": "Promise<void>"
1533
- },
1534
- "docs": {
1535
- "text": "Add a list of phases to the project",
1536
- "tags": [{
1537
- "name": "param",
1538
- "text": "taskId"
1539
- }, {
1540
- "name": "param",
1541
- "text": "data - Matrix which contains project phases"
1542
- }]
1543
- }
1544
- }
1545
- };
1546
- }
1547
- static get elementRef() { return "rootElement"; }
1548
- static get watchers() {
1549
- return [{
1550
- "propName": "data",
1551
- "methodName": "dataChanged"
1552
- }];
1553
- }
1649
+ };
1650
+ }
1651
+ static get elementRef() { return "rootElement"; }
1652
+ static get watchers() {
1653
+ return [{
1654
+ "propName": "data",
1655
+ "methodName": "dataChanged"
1656
+ }];
1657
+ }
1554
1658
  }
1555
- _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() {
1556
- var _a;
1557
- (_a = __classPrivateFieldGet(this, _KupPlanner_rootPlanner, "f")) === null || _a === void 0 ? void 0 : _a.unmount();
1558
- const componentWrapperElement = this.rootElement.shadowRoot.getElementById(componentWrapperId);
1559
- if (componentWrapperElement) {
1560
- __classPrivateFieldSet(this, _KupPlanner_rootPlanner, createRoot(componentWrapperElement), "f");
1561
- __classPrivateFieldGet(this, _KupPlanner_rootPlanner, "f").render(React.createElement(Planner, this.plannerProps));
1562
- }
1563
- }, _KupPlanner_toTasks = function _KupPlanner_toTasks(data) {
1564
- var _a;
1565
- if (!data || !data.rows) {
1566
- return [];
1567
- }
1568
- 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) => {
1569
- const datesSanitized = sanitizeAllDates(row.cells[this.taskDates[0]], row.cells[this.taskDates[1]], row.cells[this.taskPrevDates[0]], row.cells[this.taskPrevDates[1]]);
1570
- const valuesToShow = getValuesToShow(row, this.taskIdCol, this.taskNameCol, data.columns, this.taskColumns, () => this.taskColumns.map((col) => col == this.taskDates[0]
1571
- ? '#START#'
1572
- : col == this.taskDates[1]
1573
- ? '#END#'
1574
- : getCellValueForDisplay(data.columns.find((kCol) => kCol.name == col), row.cells[col])));
1575
- let iconUrl = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconUrl).call(this, row, this.taskIconCol);
1576
- let iconColor = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconColor).call(this, row, this.taskIconCol);
1577
- let task = {
1578
- taskRow: row,
1579
- taskRowId: row.id,
1580
- id: row.cells[this.taskIdCol].value,
1581
- name: row.cells[this.taskNameCol].value,
1582
- startDate: datesSanitized.dateValues[0],
1583
- endDate: datesSanitized.dateValues[1],
1584
- secondaryStartDate: datesSanitized.secDateValues[0],
1585
- secondaryEndDate: datesSanitized.secDateValues[1],
1586
- type: 'project',
1587
- valuesToShow: valuesToShow,
1588
- rowType: KupPlannerGanttRowType.TASK,
1589
- icon: iconUrl
1590
- ? { url: iconUrl, color: iconColor !== null && iconColor !== void 0 ? iconColor : '#595959' }
1591
- : undefined,
1592
- };
1593
- return task;
1594
- });
1595
- return tasks;
1659
+ _KupPlanner_kupManager = new WeakMap(), _KupPlanner_lastOnChangeReceived = new WeakMap(), _KupPlanner_clickTimeout = new WeakMap(), _KupPlanner_phases = new WeakMap(), _KupPlanner_storedSettings = new WeakMap(), _KupPlanner_instances = new WeakSet(), _KupPlanner_toTasks = function _KupPlanner_toTasks(data) {
1660
+ var _a;
1661
+ if (!data || !data.rows) {
1662
+ return [];
1663
+ }
1664
+ 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) => {
1665
+ const datesSanitized = sanitizeAllDates(row.cells[this.taskDates[0]], row.cells[this.taskDates[1]], row.cells[this.taskPrevDates[0]], row.cells[this.taskPrevDates[1]]);
1666
+ const valuesToShow = getValuesToShow(row, this.taskIdCol, this.taskNameCol, data.columns, this.taskColumns, () => this.taskColumns.map((col) => col == this.taskDates[0]
1667
+ ? '#START#'
1668
+ : col == this.taskDates[1]
1669
+ ? '#END#'
1670
+ : getCellValueForDisplay(data.columns.find((kCol) => kCol.name == col), row.cells[col])));
1671
+ let iconUrl = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconUrl).call(this, row, this.taskIconCol);
1672
+ let iconColor = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconColor).call(this, row, this.taskIconCol);
1673
+ let task = {
1674
+ taskRow: row,
1675
+ taskRowId: row.id,
1676
+ id: row.cells[this.taskIdCol].value,
1677
+ name: row.cells[this.taskNameCol].value,
1678
+ startDate: datesSanitized.dateValues[0],
1679
+ endDate: datesSanitized.dateValues[1],
1680
+ secondaryStartDate: datesSanitized.secDateValues[0],
1681
+ secondaryEndDate: datesSanitized.secDateValues[1],
1682
+ type: 'project',
1683
+ valuesToShow: valuesToShow,
1684
+ rowType: KupPlannerGanttRowType.TASK,
1685
+ icon: iconUrl
1686
+ ? { url: iconUrl, color: iconColor !== null && iconColor !== void 0 ? iconColor : '#595959' }
1687
+ : undefined,
1688
+ };
1689
+ return task;
1690
+ });
1691
+ return tasks;
1596
1692
  }, _KupPlanner_toDetails = function _KupPlanner_toDetails(data) {
1597
- if (!data || !data.rows) {
1598
- return undefined;
1599
- }
1600
- let details = [];
1601
- data.rows
1602
- .filter((row) => isAtLeastOneDateValid(row.cells[this.detailDates[0]], row.cells[this.detailDates[1]]))
1603
- .forEach((row) => {
1604
- var _a, _b;
1605
- const detailId = row.cells[this.detailIdCol].value;
1606
- const detailNameId = row.cells[this.detailNameCol].value;
1607
- const datesSanitized = sanitizeAllDates(row.cells[this.detailDates[0]], row.cells[this.detailDates[1]]);
1608
- const valuesToShow = getValuesToShow(row, this.detailIdCol, this.detailNameCol, data.columns, this.detailColumns);
1609
- let detail = details.find((det) => det.id == detailId);
1610
- if (!detail) {
1611
- detail = {
1612
- id: detailId,
1613
- name: detailNameId,
1614
- detailRow: row,
1615
- type: 'timeline',
1616
- valuesToShow: valuesToShow,
1617
- rowType: KupPlannerGanttRowType.DETAIL,
1618
- schedule: [],
1619
- };
1620
- details.push(detail);
1693
+ if (!data || !data.rows) {
1694
+ return undefined;
1621
1695
  }
1622
- let iconUrl = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconUrl).call(this, row, this.detailIconCol);
1623
- let iconColor = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconColor).call(this, row, this.detailIconCol);
1624
- detail.schedule.push({
1625
- startDate: datesSanitized.dateValues[0],
1626
- endDate: datesSanitized.dateValues[1],
1627
- color: this.detailColorCol
1628
- ? (_a = row.cells[this.detailColorCol].value) !== null && _a !== void 0 ? _a : '#D9D9D8'
1629
- : '#D9D9D8',
1630
- selectedColor: this.detailColorCol
1631
- ? (_b = row.cells[this.detailColorCol].value) !== null && _b !== void 0 ? _b : '#D9D9D8'
1632
- : '#D9D9D8',
1633
- icon: iconUrl
1634
- ? { url: iconUrl, color: iconColor !== null && iconColor !== void 0 ? iconColor : '#595959' }
1635
- : undefined,
1696
+ let details = [];
1697
+ data.rows
1698
+ .filter((row) => isAtLeastOneDateValid(row.cells[this.detailDates[0]], row.cells[this.detailDates[1]]))
1699
+ .forEach((row) => {
1700
+ var _a, _b;
1701
+ const detailId = row.cells[this.detailIdCol].value;
1702
+ const detailNameId = row.cells[this.detailNameCol].value;
1703
+ const datesSanitized = sanitizeAllDates(row.cells[this.detailDates[0]], row.cells[this.detailDates[1]]);
1704
+ const valuesToShow = getValuesToShow(row, this.detailIdCol, this.detailNameCol, data.columns, this.detailColumns);
1705
+ let detail = details.find((det) => det.id == detailId);
1706
+ if (!detail) {
1707
+ detail = {
1708
+ id: detailId,
1709
+ name: detailNameId,
1710
+ detailRow: row,
1711
+ type: 'timeline',
1712
+ valuesToShow: valuesToShow,
1713
+ rowType: KupPlannerGanttRowType.DETAIL,
1714
+ schedule: [],
1715
+ };
1716
+ details.push(detail);
1717
+ }
1718
+ let iconUrl = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconUrl).call(this, row, this.detailIconCol);
1719
+ let iconColor = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getIconColor).call(this, row, this.detailIconCol);
1720
+ detail.schedule.push({
1721
+ startDate: datesSanitized.dateValues[0],
1722
+ endDate: datesSanitized.dateValues[1],
1723
+ color: this.detailColorCol
1724
+ ? (_a = row.cells[this.detailColorCol].value) !== null && _a !== void 0 ? _a : '#D9D9D8'
1725
+ : '#D9D9D8',
1726
+ selectedColor: this.detailColorCol
1727
+ ? (_b = row.cells[this.detailColorCol].value) !== null && _b !== void 0 ? _b : '#D9D9D8'
1728
+ : '#D9D9D8',
1729
+ icon: iconUrl
1730
+ ? { url: iconUrl, color: iconColor !== null && iconColor !== void 0 ? iconColor : '#595959' }
1731
+ : undefined,
1732
+ });
1636
1733
  });
1637
- });
1638
- return details;
1734
+ return details;
1639
1735
  }, _KupPlanner_getTask = function _KupPlanner_getTask(taskId) {
1640
- return this.plannerProps.mainGantt.items.find((task) => task.id == taskId);
1736
+ return this.plannerProps.mainGantt.items.find((task) => task.id == taskId);
1641
1737
  }, _KupPlanner_removePhases = function _KupPlanner_removePhases(taskId) {
1642
- const task = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getTask).call(this, taskId);
1643
- if (task)
1644
- task.phases = undefined;
1645
- this.plannerProps = Object.assign({}, this.plannerProps);
1738
+ const task = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getTask).call(this, taskId);
1739
+ if (task)
1740
+ task.phases = undefined;
1741
+ this.plannerProps = Object.assign({}, this.plannerProps);
1742
+ }, _KupPlanner_handleOnDblClickOnTask = function _KupPlanner_handleOnDblClickOnTask() {
1743
+ return true;
1744
+ }, _KupPlanner_handleOnDblClickOnPhase = function _KupPlanner_handleOnDblClickOnPhase() {
1745
+ return true;
1746
+ }, _KupPlanner_handleOnDblClickOnDetail = function _KupPlanner_handleOnDblClickOnDetail() {
1747
+ return true;
1646
1748
  }, _KupPlanner_handleOnClickOnTask = function _KupPlanner_handleOnClickOnTask(nativeEvent) {
1647
- const task = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getTask).call(this, nativeEvent.id);
1648
- if (task === null || task === void 0 ? void 0 : task.phases) {
1649
- __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_removePhases).call(this, task.id);
1650
- }
1651
- return true;
1749
+ const task = __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_getTask).call(this, nativeEvent.id);
1750
+ if (task === null || task === void 0 ? void 0 : task.phases) {
1751
+ __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_removePhases).call(this, task.id);
1752
+ }
1753
+ return true;
1652
1754
  }, _KupPlanner_handleOnClickOnPhase = function _KupPlanner_handleOnClickOnPhase() {
1653
- return true;
1755
+ return true;
1654
1756
  }, _KupPlanner_handleOnClickOnDetail = function _KupPlanner_handleOnClickOnDetail() {
1655
- return true;
1757
+ return true;
1656
1758
  }, _KupPlanner_handleOnContextMenuOnTask = function _KupPlanner_handleOnContextMenuOnTask() {
1657
- return true;
1759
+ return true;
1658
1760
  }, _KupPlanner_handleOnContextMenuOnPhase = function _KupPlanner_handleOnContextMenuOnPhase() {
1659
- return true;
1761
+ return true;
1660
1762
  }, _KupPlanner_handleOnContextMenuOnDetail = function _KupPlanner_handleOnContextMenuOnDetail() {
1661
- return true;
1763
+ return true;
1662
1764
  }, _KupPlanner_emitOnChangeEventsReceived = function _KupPlanner_emitOnChangeEventsReceived(nativeEvent) {
1663
- let emitEvent = false;
1664
- if (!__classPrivateFieldGet(this, _KupPlanner_lastOnChangeReceived, "f")) {
1665
- emitEvent = true;
1666
- __classPrivateFieldSet(this, _KupPlanner_lastOnChangeReceived, new KupPlannerLastOnChangeReceived(nativeEvent), "f");
1667
- }
1668
- else if (!__classPrivateFieldGet(this, _KupPlanner_lastOnChangeReceived, "f").isEquivalent(nativeEvent)) {
1669
- __classPrivateFieldSet(this, _KupPlanner_lastOnChangeReceived, new KupPlannerLastOnChangeReceived(nativeEvent), "f");
1670
- emitEvent = true;
1671
- }
1672
- return emitEvent;
1765
+ let emitEvent = false;
1766
+ if (!__classPrivateFieldGet(this, _KupPlanner_lastOnChangeReceived, "f")) {
1767
+ emitEvent = true;
1768
+ __classPrivateFieldSet(this, _KupPlanner_lastOnChangeReceived, new KupPlannerLastOnChangeReceived(nativeEvent), "f");
1769
+ }
1770
+ else if (!__classPrivateFieldGet(this, _KupPlanner_lastOnChangeReceived, "f").isEquivalent(nativeEvent)) {
1771
+ __classPrivateFieldSet(this, _KupPlanner_lastOnChangeReceived, new KupPlannerLastOnChangeReceived(nativeEvent), "f");
1772
+ emitEvent = true;
1773
+ }
1774
+ return emitEvent;
1673
1775
  }, _KupPlanner_onFilter = function _KupPlanner_onFilter(value, isDetail) {
1674
- if (isDetail) {
1675
- __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailFilter = value;
1676
- }
1677
- else {
1678
- __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskFilter = value;
1679
- }
1680
- const newGantt = isDetail
1681
- ? {
1682
- 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)) }),
1776
+ if (isDetail) {
1777
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailFilter = value;
1683
1778
  }
1684
- : {
1685
- 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)) }),
1686
- };
1687
- this.plannerProps = Object.assign(Object.assign({}, this.plannerProps), newGantt);
1688
- this.persistState();
1779
+ else {
1780
+ __classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskFilter = value;
1781
+ }
1782
+ const newGantt = isDetail
1783
+ ? {
1784
+ 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)) }),
1785
+ }
1786
+ : {
1787
+ 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)) }),
1788
+ };
1789
+ this.plannerProps = Object.assign(Object.assign({}, this.plannerProps), newGantt);
1790
+ this.persistState();
1689
1791
  }, _KupPlanner_getFilteredRows = function _KupPlanner_getFilteredRows(value, isDetail) {
1690
- const data = isDetail ? this.detailData : this.data;
1691
- if (!data || !data.rows || data.rows.length == 0) {
1692
- return undefined;
1693
- }
1694
- if (!value) {
1695
- return data;
1696
- }
1697
- const tempData = {
1698
- columns: this.data.columns,
1699
- rows: [],
1700
- };
1701
- const tempRows = [];
1702
- for (let index = 0; index < data.rows.length; index++) {
1703
- const row = data.rows[index];
1704
- const cells = row.cells;
1705
- for (let index = 0; index < data.columns.length; index++) {
1706
- const column = data.columns[index];
1707
- const cell = cells[column.name];
1708
- if (cell) {
1709
- const dValue = getCellValueForDisplay(data.columns[index], cell);
1710
- const found = !!(dValue.toLowerCase().indexOf(value.toLowerCase()) > -1);
1711
- if (found) {
1712
- tempRows.push({ row, weight: index });
1713
- break;
1792
+ const data = isDetail ? this.detailData : this.data;
1793
+ if (!data || !data.rows || data.rows.length == 0) {
1794
+ return undefined;
1795
+ }
1796
+ if (!value) {
1797
+ return data;
1798
+ }
1799
+ const tempData = {
1800
+ columns: this.data.columns,
1801
+ rows: [],
1802
+ };
1803
+ const tempRows = [];
1804
+ for (let index = 0; index < data.rows.length; index++) {
1805
+ const row = data.rows[index];
1806
+ const cells = row.cells;
1807
+ for (let index = 0; index < data.columns.length; index++) {
1808
+ const column = data.columns[index];
1809
+ const cell = cells[column.name];
1810
+ if (cell) {
1811
+ const dValue = getCellValueForDisplay(data.columns[index], cell);
1812
+ const found = !!(dValue.toLowerCase().indexOf(value.toLowerCase()) > -1);
1813
+ if (found) {
1814
+ tempRows.push({ row, weight: index });
1815
+ break;
1816
+ }
1817
+ }
1714
1818
  }
1715
- }
1716
1819
  }
1717
- }
1718
- tempRows
1719
- .sort((a, b) => a.weight - b.weight)
1720
- .forEach((tempRow) => {
1721
- tempData.rows.push(tempRow.row);
1722
- });
1723
- return tempData;
1820
+ tempRows
1821
+ .sort((a, b) => a.weight - b.weight)
1822
+ .forEach((tempRow) => {
1823
+ tempData.rows.push(tempRow.row);
1824
+ });
1825
+ return tempData;
1724
1826
  }, _KupPlanner_getIconUrl = function _KupPlanner_getIconUrl(row, columnName) {
1725
- var _a;
1726
- let iconUrl = undefined;
1727
- if (columnName) {
1728
- const iconCell = row.cells[columnName];
1729
- let icon = (_a = iconCell === null || iconCell === void 0 ? void 0 : iconCell.data) === null || _a === void 0 ? void 0 : _a.resource;
1730
- if (!icon) {
1731
- icon = iconCell.value;
1732
- }
1733
- if (icon) {
1734
- iconUrl = getAssetPath('./assets/svg/' + icon + '.svg');
1827
+ var _a;
1828
+ let iconUrl = undefined;
1829
+ if (columnName) {
1830
+ const iconCell = row.cells[columnName];
1831
+ let icon = (_a = iconCell === null || iconCell === void 0 ? void 0 : iconCell.data) === null || _a === void 0 ? void 0 : _a.resource;
1832
+ if (!icon) {
1833
+ icon = iconCell.value;
1834
+ }
1835
+ if (icon) {
1836
+ iconUrl = getAssetPath('./assets/svg/' + icon + '.svg');
1837
+ }
1735
1838
  }
1736
- }
1737
- return iconUrl;
1839
+ return iconUrl;
1738
1840
  }, _KupPlanner_getIconColor = function _KupPlanner_getIconColor(row, columnName) {
1739
- var _a;
1740
- let iconColor = undefined;
1741
- if (columnName) {
1742
- const iconCell = row.cells[columnName];
1743
- iconColor = (_a = iconCell === null || iconCell === void 0 ? void 0 : iconCell.data) === null || _a === void 0 ? void 0 : _a.color;
1744
- if (iconColor) {
1745
- iconColor =
1746
- __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.colorCheck(iconColor).hexColor;
1841
+ var _a;
1842
+ let iconColor = undefined;
1843
+ if (columnName) {
1844
+ const iconCell = row.cells[columnName];
1845
+ iconColor = (_a = iconCell === null || iconCell === void 0 ? void 0 : iconCell.data) === null || _a === void 0 ? void 0 : _a.color;
1846
+ if (iconColor) {
1847
+ iconColor =
1848
+ __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.colorCheck(iconColor).hexColor;
1849
+ }
1747
1850
  }
1748
- }
1749
- return iconColor;
1851
+ return iconColor;
1750
1852
  };