@sme.up/ketchup 9.6.3 → 9.6.5

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 (268) hide show
  1. package/dist/cjs/{bar.helpers-f46a5a83.js → bar.helpers-c481a535.js} +45 -13
  2. package/dist/cjs/{f-button-9a0eba42.js → f-button-23ec3db5.js} +1 -1
  3. package/dist/cjs/{f-cell-1ad41071.js → f-cell-bcc51c0f.js} +9 -29
  4. package/dist/cjs/{f-chip-48851b4f.js → f-chip-63363ecf.js} +2 -2
  5. package/dist/cjs/{f-image-541e5f4d.js → f-image-f3944c01.js} +2 -5
  6. package/dist/cjs/{f-paginator-utils-8ff2a9b4.js → f-paginator-utils-60e05759.js} +3 -3
  7. package/dist/cjs/{f-text-field-ac5d6497.js → f-text-field-354b6c78.js} +1 -1
  8. package/dist/cjs/index.cjs.js +2 -2
  9. package/dist/cjs/ketchup.cjs.js +1 -1
  10. package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
  11. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +48 -48
  12. package/dist/cjs/kup-box.cjs.entry.js +8 -8
  13. package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
  14. package/dist/cjs/kup-card-list.cjs.entry.js +2 -2
  15. package/dist/cjs/kup-cell.cjs.entry.js +7 -7
  16. package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +256 -40
  17. package/dist/cjs/kup-dashboard.cjs.entry.js +5 -5
  18. package/dist/cjs/{kup-dates-b7d53b4d.js → kup-dates-e22ee32c.js} +21 -0
  19. package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
  20. package/dist/cjs/kup-echart.cjs.entry.js +2 -2
  21. package/dist/cjs/kup-editor.cjs.entry.js +2 -2
  22. package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
  23. package/dist/cjs/kup-gantt_10.cjs.entry.js +105 -39
  24. package/dist/cjs/kup-grid.cjs.entry.js +2 -2
  25. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  26. package/dist/cjs/kup-image-list.cjs.entry.js +21 -14
  27. package/dist/cjs/kup-input-panel.cjs.entry.js +444 -0
  28. package/dist/cjs/kup-lazy.cjs.entry.js +13 -13
  29. package/dist/cjs/kup-magic-box.cjs.entry.js +6 -6
  30. package/dist/cjs/{kup-manager-26a9154b.js → kup-manager-e1bfd4f8.js} +656 -121
  31. package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
  32. package/dist/cjs/kup-numeric-picker.cjs.entry.js +4 -4
  33. package/dist/cjs/kup-pdf.cjs.entry.js +76600 -0
  34. package/dist/cjs/kup-photo-frame.cjs.entry.js +4 -4
  35. package/dist/cjs/{kup-planner-declarations-d3dec885.js → kup-planner-declarations-cb33663d.js} +3 -0
  36. package/dist/cjs/{kup-planner-renderer-helper-680bbd5a.js → kup-planner-renderer-helper-f001fad7.js} +56 -8
  37. package/dist/cjs/kup-planner-renderer.cjs.entry.js +44 -11
  38. package/dist/cjs/{kup-planner-time-formatter-a74e70f0.js → kup-planner-time-formatter-b7dca3ea.js} +3 -0
  39. package/dist/cjs/kup-planner.cjs.entry.js +81 -9
  40. package/dist/cjs/kup-probe.cjs.entry.js +3 -3
  41. package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
  42. package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
  43. package/dist/cjs/loader.cjs.js +1 -1
  44. package/dist/collection/assets/image-list.js +332 -2
  45. package/dist/collection/assets/index.js +8 -0
  46. package/dist/collection/assets/input-panel.js +480 -0
  47. package/dist/collection/assets/pdf.js +15 -0
  48. package/dist/collection/assets/planner-example-5.js +19 -7
  49. package/dist/collection/assets/planner-example-6.js +3 -0
  50. package/dist/collection/assets/planner.js +4 -3
  51. package/dist/collection/collection-manifest.json +2 -0
  52. package/dist/collection/components/kup-badge/kup-badge.css +4 -4
  53. package/dist/collection/components/kup-image-list/kup-image-list.css +37 -4
  54. package/dist/collection/components/kup-image-list/kup-image-list.js +15 -8
  55. package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js +8 -0
  56. package/dist/collection/components/kup-input-panel/kup-input-panel.css +169 -0
  57. package/dist/collection/components/kup-input-panel/kup-input-panel.e2e.js +346 -0
  58. package/dist/collection/components/kup-input-panel/kup-input-panel.js +669 -0
  59. package/dist/collection/components/kup-lazy/kup-lazy.js +11 -11
  60. package/dist/collection/components/kup-list/kup-list.js +1 -1
  61. package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
  62. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
  63. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +1 -1
  64. package/dist/collection/components/kup-pdf/kup-pdf-declarations.js +8 -0
  65. package/dist/collection/components/kup-pdf/kup-pdf.css +169 -0
  66. package/dist/collection/components/kup-pdf/kup-pdf.js +262 -0
  67. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +2 -2
  68. package/dist/collection/components/kup-planner/kup-planner-declarations.js +3 -0
  69. package/dist/collection/components/kup-planner/kup-planner-helper.js +42 -1
  70. package/dist/collection/components/kup-planner/kup-planner.js +191 -5
  71. package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
  72. package/dist/collection/components/kup-planner/utils/custom-task-list-table.js +103 -11
  73. package/dist/collection/components/kup-planner/utils/gantt-table.module.css +80 -2
  74. package/dist/collection/components/kup-planner/utils/helpers/bar.helpers.js +41 -13
  75. package/dist/collection/components/kup-planner/utils/helpers/other.helpers.js +3 -0
  76. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.css +10 -0
  77. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +61 -6
  78. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +32 -2
  79. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.css +4 -0
  80. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +208 -24
  81. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +4 -0
  82. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +131 -7
  83. package/dist/collection/components/kup-planner/utils/kup-planner-renderer-helper.js +55 -6
  84. package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +40 -7
  85. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.css +22 -15
  86. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +21 -5
  87. package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +19 -3
  88. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
  89. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
  90. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +76 -2
  91. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
  92. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
  93. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
  94. package/dist/collection/components/kup-probe/kup-probe.js +1 -1
  95. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
  96. package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
  97. package/dist/collection/components/kup-rating/kup-rating.js +1 -1
  98. package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
  99. package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
  100. package/dist/collection/components/kup-switch/kup-switch.js +1 -1
  101. package/dist/collection/components/kup-time-picker/kup-time-picker.js +1 -1
  102. package/dist/collection/f-components/f-cell/f-cell.js +5 -24
  103. package/dist/collection/f-components/f-image/f-image.js +2 -5
  104. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +7 -0
  105. package/dist/collection/types/GenericTypes.js +1 -0
  106. package/dist/components/_commonjsHelpers.js +26 -0
  107. package/dist/components/custom-task-list-header.js +2 -2
  108. package/dist/components/custom-task-list-table.js +58 -13
  109. package/dist/components/kup-autocomplete2.js +48 -70
  110. package/dist/components/kup-box2.js +1 -1
  111. package/dist/components/kup-calendar.js +2 -2
  112. package/dist/components/kup-cell.js +1 -1
  113. package/dist/components/kup-dashboard.js +1 -1
  114. package/dist/components/kup-dates.js +2 -6
  115. package/dist/components/kup-echart2.js +1 -1
  116. package/dist/components/kup-editor.js +1 -1
  117. package/dist/components/kup-gantt-calendar2.js +31 -1
  118. package/dist/components/kup-gantt2.js +26 -7
  119. package/dist/components/kup-grid-renderer2.js +219 -81
  120. package/dist/components/kup-grid2.js +1 -1
  121. package/dist/components/kup-horizontal-scroll2.js +48 -10
  122. package/dist/components/kup-iframe.js +1 -1
  123. package/dist/components/kup-image-list.js +15 -8
  124. package/dist/components/kup-input-panel.d.ts +11 -0
  125. package/dist/components/kup-input-panel.js +595 -0
  126. package/dist/components/kup-lazy.js +11 -11
  127. package/dist/components/kup-magic-box.js +4 -4
  128. package/dist/components/kup-manager.js +658 -122
  129. package/dist/components/kup-nav-bar.js +1 -1
  130. package/dist/components/kup-numeric-picker.js +2 -2
  131. package/dist/components/kup-pdf.d.ts +11 -0
  132. package/dist/components/kup-pdf.js +76756 -0
  133. package/dist/components/kup-photo-frame.js +2 -2
  134. package/dist/components/kup-planner-declarations.js +91 -0
  135. package/dist/components/kup-planner-renderer2.js +42 -9
  136. package/dist/components/kup-planner.js +86 -6
  137. package/dist/components/kup-probe.js +1 -1
  138. package/dist/components/kup-qlik.js +1 -1
  139. package/dist/components/kup-snackbar.js +1 -1
  140. package/dist/components/kup-standard-tooltip2.js +1 -1
  141. package/dist/components/kup-switcher2.js +19 -7
  142. package/dist/components/kup-task-gantt2.js +6 -4
  143. package/dist/components/kup-task-list-header2.js +7 -7
  144. package/dist/components/kup-task-list-table2.js +1 -1
  145. package/dist/components/kup-task-list2.js +434 -84
  146. package/dist/components/kup-tooltip2.js +1 -1
  147. package/dist/components/kup-vertical-scroll2.js +2 -2
  148. package/dist/components/other.helpers.js +47 -0
  149. package/dist/esm/{bar.helpers-0898efb9.js → bar.helpers-23a51579.js} +45 -14
  150. package/dist/esm/{f-button-45d690a5.js → f-button-d6dbcfd6.js} +1 -1
  151. package/dist/esm/{f-cell-63db06db.js → f-cell-7b41415c.js} +9 -29
  152. package/dist/esm/{f-chip-f1ab6c5e.js → f-chip-68d27d7a.js} +2 -2
  153. package/dist/esm/{f-image-8b382cc5.js → f-image-a67229e5.js} +2 -5
  154. package/dist/esm/{f-paginator-utils-ae563cd5.js → f-paginator-utils-8773e358.js} +3 -3
  155. package/dist/esm/{f-text-field-b5fcb598.js → f-text-field-d364ffd2.js} +1 -1
  156. package/dist/esm/index.js +2 -2
  157. package/dist/esm/ketchup.js +1 -1
  158. package/dist/esm/kup-accordion.entry.js +3 -3
  159. package/dist/esm/kup-autocomplete_27.entry.js +48 -48
  160. package/dist/esm/kup-box.entry.js +8 -8
  161. package/dist/esm/kup-calendar.entry.js +5 -5
  162. package/dist/esm/kup-card-list.entry.js +2 -2
  163. package/dist/esm/kup-cell.entry.js +7 -7
  164. package/dist/esm/kup-custom-task-list-header_4.entry.js +256 -40
  165. package/dist/esm/kup-dashboard.entry.js +5 -5
  166. package/dist/esm/{kup-dates-4ad48be7.js → kup-dates-26a56bf7.js} +20 -1
  167. package/dist/esm/kup-drawer.entry.js +2 -2
  168. package/dist/esm/kup-echart.entry.js +2 -2
  169. package/dist/esm/kup-editor.entry.js +2 -2
  170. package/dist/esm/kup-family-tree.entry.js +4 -4
  171. package/dist/esm/kup-gantt_10.entry.js +106 -40
  172. package/dist/esm/kup-grid.entry.js +2 -2
  173. package/dist/esm/kup-iframe.entry.js +2 -2
  174. package/dist/esm/kup-image-list.entry.js +21 -14
  175. package/dist/esm/kup-input-panel.entry.js +440 -0
  176. package/dist/esm/kup-lazy.entry.js +13 -13
  177. package/dist/esm/kup-magic-box.entry.js +6 -6
  178. package/dist/esm/{kup-manager-cdb4f21a.js → kup-manager-a316a70e.js} +656 -121
  179. package/dist/esm/kup-nav-bar.entry.js +3 -3
  180. package/dist/esm/kup-numeric-picker.entry.js +4 -4
  181. package/dist/esm/kup-pdf.entry.js +76596 -0
  182. package/dist/esm/kup-photo-frame.entry.js +4 -4
  183. package/dist/esm/{kup-planner-declarations-b9345758.js → kup-planner-declarations-398babf9.js} +3 -0
  184. package/dist/esm/{kup-planner-renderer-helper-da0518be.js → kup-planner-renderer-helper-a2ec9a1c.js} +57 -8
  185. package/dist/esm/kup-planner-renderer.entry.js +44 -11
  186. package/dist/esm/{kup-planner-time-formatter-a68e05ba.js → kup-planner-time-formatter-ddf84f9b.js} +1 -1
  187. package/dist/esm/kup-planner.entry.js +81 -9
  188. package/dist/esm/kup-probe.entry.js +3 -3
  189. package/dist/esm/kup-qlik.entry.js +3 -3
  190. package/dist/esm/kup-snackbar.entry.js +5 -5
  191. package/dist/esm/loader.js +1 -1
  192. package/dist/ketchup/index.esm.js +1 -1
  193. package/dist/ketchup/ketchup.esm.js +1 -1
  194. package/dist/ketchup/p-008bdcdc.js +1 -0
  195. package/dist/ketchup/p-042e874a.entry.js +1 -0
  196. package/dist/ketchup/{p-837bd0a6.entry.js → p-074ccd53.entry.js} +1 -1
  197. package/dist/ketchup/{p-41e8402e.entry.js → p-1088ab22.entry.js} +1 -1
  198. package/dist/ketchup/{p-d9284d98.entry.js → p-1bcac01f.entry.js} +1 -1
  199. package/dist/ketchup/{p-e0a1fbe7.entry.js → p-1e028d95.entry.js} +1 -1
  200. package/dist/ketchup/p-25058baa.js +1 -0
  201. package/dist/ketchup/{p-cbe42afd.entry.js → p-2932e7e8.entry.js} +1 -1
  202. package/dist/ketchup/{p-1cd48eea.entry.js → p-2b84db7b.entry.js} +1 -1
  203. package/dist/ketchup/{p-d608f866.entry.js → p-2ef90f60.entry.js} +1 -1
  204. package/dist/ketchup/{p-bedabdb5.js → p-339bbeae.js} +1 -1
  205. package/dist/ketchup/{p-157f0e89.entry.js → p-48e45ac0.entry.js} +1 -1
  206. package/dist/ketchup/p-53af4c87.js +1 -0
  207. package/dist/ketchup/{p-4dfc5927.entry.js → p-556f7ddc.entry.js} +1 -1
  208. package/dist/ketchup/{p-cc7352a8.entry.js → p-5f7d8c21.entry.js} +1 -1
  209. package/dist/ketchup/{p-e0c10de2.entry.js → p-6362738c.entry.js} +1 -1
  210. package/dist/ketchup/{p-ad6a3c2a.entry.js → p-65e363c6.entry.js} +1 -1
  211. package/dist/ketchup/p-6921bc81.entry.js +16 -0
  212. package/dist/ketchup/p-6961e0ce.entry.js +1 -0
  213. package/dist/ketchup/p-7123d2a4.entry.js +1 -0
  214. package/dist/ketchup/{p-a5074ce4.js → p-801776bc.js} +1 -1
  215. package/dist/ketchup/{p-ca8a1f53.entry.js → p-81645576.entry.js} +1 -1
  216. package/dist/ketchup/p-838dea62.js +1 -0
  217. package/dist/ketchup/{p-924b841b.js → p-84b511e1.js} +1 -1
  218. package/dist/ketchup/{p-9a856951.js → p-8d4050ec.js} +4 -4
  219. package/dist/ketchup/{p-1474852d.entry.js → p-9e2533e1.entry.js} +1 -1
  220. package/dist/ketchup/{p-c6b34763.entry.js → p-a06974a3.entry.js} +1 -1
  221. package/dist/ketchup/p-a6beb822.js +1 -0
  222. package/dist/ketchup/p-abe181d0.entry.js +1 -0
  223. package/dist/ketchup/{p-ba0f28b7.js → p-b3540f83.js} +1 -1
  224. package/dist/ketchup/{p-b6a21b6a.entry.js → p-c702eb45.entry.js} +1 -1
  225. package/dist/ketchup/{p-090e5097.entry.js → p-ccb6dbb0.entry.js} +1 -1
  226. package/dist/ketchup/{p-d839ce21.entry.js → p-cf44485a.entry.js} +2 -2
  227. package/dist/ketchup/p-d2001dec.entry.js +44 -0
  228. package/dist/ketchup/{p-e508b2fd.entry.js → p-dbb6cd8d.entry.js} +1 -1
  229. package/dist/ketchup/p-eb8ea3a6.js +1 -0
  230. package/dist/ketchup/{p-590c34bc.js → p-f6c8f006.js} +1 -1
  231. package/dist/ketchup/{p-4c100286.entry.js → p-f79ffe77.entry.js} +1 -1
  232. package/dist/ketchup/{p-31c0cfc0.entry.js → p-fdcfaedd.entry.js} +1 -1
  233. package/dist/ketchup/p-fe75ede2.entry.js +1 -0
  234. package/dist/types/components/kup-image-list/kup-image-list.d.ts +1 -1
  235. package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +81 -0
  236. package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +67 -0
  237. package/dist/types/components/kup-pdf/kup-pdf-declarations.d.ts +7 -0
  238. package/dist/types/components/kup-pdf/kup-pdf.d.ts +42 -0
  239. package/dist/types/components/kup-planner/kup-planner-declarations.d.ts +29 -2
  240. package/dist/types/components/kup-planner/kup-planner-helper.d.ts +2 -1
  241. package/dist/types/components/kup-planner/kup-planner.d.ts +38 -0
  242. package/dist/types/components/kup-planner/utils/custom-task-list-table.d.ts +7 -0
  243. package/dist/types/components/kup-planner/utils/helpers/bar.helpers.d.ts +1 -1
  244. package/dist/types/components/kup-planner/utils/helpers/other.helpers.d.ts +1 -0
  245. package/dist/types/components/kup-planner/utils/kup-gantt/kup-gantt.d.ts +6 -0
  246. package/dist/types/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.d.ts +1 -0
  247. package/dist/types/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.d.ts +13 -1
  248. package/dist/types/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.d.ts +7 -0
  249. package/dist/types/components/kup-planner/utils/kup-planner-renderer-helper.d.ts +6 -2
  250. package/dist/types/components/kup-planner/utils/kup-planner-renderer.d.ts +1 -0
  251. package/dist/types/components/kup-planner/utils/kup-switcher/kup-switcher.d.ts +3 -1
  252. package/dist/types/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.d.ts +1 -0
  253. package/dist/types/components/kup-planner/utils/kup-task-list/kup-task-list.d.ts +4 -0
  254. package/dist/types/components.d.ts +266 -2
  255. package/dist/types/types/GenericTypes.d.ts +1 -0
  256. package/package.json +2 -1
  257. package/dist/components/kup-planner-renderer-helper.js +0 -379
  258. package/dist/ketchup/p-21351b19.entry.js +0 -1
  259. package/dist/ketchup/p-2b40d9b9.entry.js +0 -1
  260. package/dist/ketchup/p-5c79cb74.js +0 -1
  261. package/dist/ketchup/p-670354ef.entry.js +0 -1
  262. package/dist/ketchup/p-8e3b6de8.js +0 -1
  263. package/dist/ketchup/p-935f58fc.js +0 -1
  264. package/dist/ketchup/p-9852b1e9.js +0 -1
  265. package/dist/ketchup/p-ca42a421.entry.js +0 -16
  266. package/dist/ketchup/p-d50515f7.js +0 -1
  267. package/dist/ketchup/p-e841c2ae.js +0 -1
  268. package/dist/ketchup/p-ec4050e1.entry.js +0 -1
@@ -36,10 +36,10 @@ export const isDetail = (row) => {
36
36
  row.schedule &&
37
37
  row.schedule.length !== 0);
38
38
  };
39
- export const mergeTaskIntoProjects = (projects, { id, start, end }) => projects.map((project) => project.id === id ? withNewDates(project, start, end) : project);
40
- export const mergeTaskIntoPhases = (phases, { id, start, end }) => {
39
+ export const mergeTaskIntoProjects = (projects, { id, start, end, startHour, endHour }) => projects.map((project) => project.id === id ? withNewDates(project, start, end, startHour, endHour) : project);
40
+ export const mergeTaskIntoPhases = (phases, { id, start, end, startHour, endHour }) => {
41
41
  if (phases) {
42
- return phases.map((phase) => phase.id === id ? withNewDates(phase, start, end) : phase);
42
+ return phases.map((phase) => phase.id === id ? withNewDates(phase, start, end, startHour, endHour) : phase);
43
43
  }
44
44
  return undefined;
45
45
  };
@@ -77,6 +77,10 @@ export const convertProjectToTasks = (item, mainGanttStartDate, mainGanttEndDate
77
77
  isDisabled: false,
78
78
  hideChildren: false,
79
79
  icon: row.icon,
80
+ startHour: item.startHour,
81
+ endHour: item.endHour,
82
+ secondaryStartHour: item.secondaryStartHour,
83
+ secondaryEndHour: item.secondaryEndHour
80
84
  };
81
85
  const children1 = ((_a = row.phases) !== null && _a !== void 0 ? _a : []).map(convertPhaseToTask);
82
86
  return [mainTask, ...children1];
@@ -89,7 +93,7 @@ export const convertProjectToTasks = (item, mainGanttStartDate, mainGanttEndDate
89
93
  }
90
94
  };
91
95
  export const convertPhaseToTask = (item) => {
92
- const mapPhase = ({ startDate: phaseStart, endDate: phaseEnd, secondaryStartDate, secondaryEndDate, name: phaseName, id: phaseId, color, selectedColor, dependencies, icon, }) => {
96
+ const mapPhase = ({ startDate: phaseStart, endDate: phaseEnd, secondaryStartDate, secondaryEndDate, name: phaseName, id: phaseId, color, selectedColor, dependencies, icon, startHour, endHour, secondaryStartHour, secondaryEndHour, }) => {
93
97
  const kupDates = new KupDates();
94
98
  const { start, end } = kupDates.validDates(phaseStart, phaseEnd, phaseName);
95
99
  const { start: phaseStart2, end: phaseEnd2 } = kupDates.validDates(secondaryStartDate, secondaryEndDate, phaseName);
@@ -116,6 +120,10 @@ export const convertPhaseToTask = (item) => {
116
120
  }
117
121
  : {},
118
122
  icon,
123
+ startHour,
124
+ endHour,
125
+ secondaryStartHour,
126
+ secondaryEndHour,
119
127
  };
120
128
  };
121
129
  return mapPhase(item);
@@ -169,11 +177,11 @@ const convertDetailToTimeline = (item, mainGanttStartDate, mainGanttEndDate) =>
169
177
  };
170
178
  };
171
179
  /** Return a shallow copy, with the dates updated */
172
- const withNewDates = (p, start, end) => {
180
+ const withNewDates = (p, start, end, startHour, endHour) => {
173
181
  const kupDates = new KupDates();
174
182
  const startDate = kupDates.formatToIsoDate(start);
175
183
  const endDate = kupDates.formatToIsoDate(end);
176
- const extra = { startDate, endDate };
184
+ const extra = { startDate, endDate, startHour, endHour };
177
185
  return Object.assign(Object.assign({}, p), extra);
178
186
  };
179
187
  /**
@@ -211,6 +219,10 @@ export const ganttDateRangeFromGanttTask = (tasks, viewMode, preStepsCount, show
211
219
  end: kupDates.parseToDayEnd(item.endDate),
212
220
  secondaryStart: kupDates.parseToDayStart(item.secondaryStartDate),
213
221
  secondaryEnd: kupDates.parseToDayEnd(item.secondaryEndDate),
222
+ startHour: item.startHour,
223
+ endHour: item.endHour,
224
+ secondaryStartHour: item.secondaryStartHour,
225
+ secondaryEndHour: item.secondaryEndHour
214
226
  });
215
227
  (_a = item.phases) === null || _a === void 0 ? void 0 : _a.forEach((phase) => {
216
228
  dates.push({
@@ -218,6 +230,10 @@ export const ganttDateRangeFromGanttTask = (tasks, viewMode, preStepsCount, show
218
230
  end: kupDates.parseToDayEnd(phase.endDate),
219
231
  secondaryStart: kupDates.parseToDayStart(phase.secondaryStartDate),
220
232
  secondaryEnd: kupDates.parseToDayEnd(phase.secondaryEndDate),
233
+ startHour: item.startHour,
234
+ endHour: item.endHour,
235
+ secondaryStartHour: item.secondaryStartHour,
236
+ secondaryEndHour: item.secondaryEndHour
221
237
  });
222
238
  });
223
239
  });
@@ -270,6 +286,32 @@ export const ganttDateRangeGeneric = (dates, viewMode, preStepsCount, showSecond
270
286
  newEndDate = startOfDate(newEndDate, 'day');
271
287
  newEndDate = addToDate(newEndDate, 19, 'day');
272
288
  break;
289
+ case 'hour':
290
+ newStartDate = startOfDate(newStartDate, "hour");
291
+ newStartDate = addToDate(newStartDate, -1 * preStepsCount, "hour");
292
+ newEndDate = startOfDate(newEndDate, "day");
293
+ newEndDate = addToDate(newEndDate, 1, "day");
294
+ break;
295
+ /*
296
+ case ViewMode.QuarterDay:
297
+ newStartDate = startOfDate(newStartDate, "day");
298
+ newStartDate = addToDate(newStartDate, -1 * preStepsCount, "day");
299
+ newEndDate = startOfDate(newEndDate, "day");
300
+ newEndDate = addToDate(newEndDate, 66, "hour"); // 24(1 day)*3 - 6
301
+ break;
302
+ case ViewMode.HalfDay:
303
+ newStartDate = startOfDate(newStartDate, "day");
304
+ newStartDate = addToDate(newStartDate, -1 * preStepsCount, "day");
305
+ newEndDate = startOfDate(newEndDate, "day");
306
+ newEndDate = addToDate(newEndDate, 108, "hour"); // 24(1 day)*5 - 12
307
+ break;
308
+ case ViewMode.Hour:
309
+ newStartDate = startOfDate(newStartDate, "hour");
310
+ newStartDate = addToDate(newStartDate, -1 * preStepsCount, "hour");
311
+ newEndDate = startOfDate(newEndDate, "day");
312
+ newEndDate = addToDate(newEndDate, 1, "day");
313
+ break;
314
+ */
273
315
  }
274
316
  return [newStartDate, newEndDate];
275
317
  };
@@ -329,6 +371,10 @@ export const ganttDateRangeFromTask = (tasks, viewMode, preStepsCount, showSecon
329
371
  end: item.end,
330
372
  secondaryStart: item.secondaryStart,
331
373
  secondaryEnd: item.secondaryEnd,
374
+ startHour: item.startHour,
375
+ endHour: item.endHour,
376
+ secondaryStartHour: item.secondaryStartHour,
377
+ secondaryEndHour: item.secondaryEndHour
332
378
  });
333
379
  });
334
380
  if (mainGanttStartDate && mainGanttEndDate) {
@@ -358,6 +404,9 @@ export const seedDates = (startDate, endDate, viewMode) => {
358
404
  case 'day':
359
405
  currentDate = addToDate(currentDate, 1, 'day');
360
406
  break;
407
+ case 'hour':
408
+ currentDate = addToDate(currentDate, 1, "hour");
409
+ break;
361
410
  /*
362
411
  case ViewMode.HalfDay:
363
412
  currentDate = addToDate(currentDate, 12, "hour");
@@ -59,14 +59,14 @@ export class KupPlannerRenderer {
59
59
  }
60
60
  //---- Lifecycle hooks ----
61
61
  componentWillLoad() {
62
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
62
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
63
63
  this.timeUnit = (_a = this.props) === null || _a === void 0 ? void 0 : _a.viewMode;
64
64
  this.currentTasks = ((_b = this.props) === null || _b === void 0 ? void 0 : _b.mainGantt.items) || [];
65
65
  this.currentDetails = (_d = (_c = this.props) === null || _c === void 0 ? void 0 : _c.secondaryGantt) === null || _d === void 0 ? void 0 : _d.items;
66
- this.scrollX = ((_f = (_e = this.props) === null || _e === void 0 ? void 0 : _e.mainGantt) === null || _f === void 0 ? void 0 : _f.initialScrollX) || -1;
66
+ this.scrollX = (_g = (_f = (_e = this.props) === null || _e === void 0 ? void 0 : _e.mainGantt) === null || _f === void 0 ? void 0 : _f.initialScrollX) !== null && _g !== void 0 ? _g : -1;
67
67
  this.mainGanttDoubleView =
68
- (_j = (_h = (_g = this.props) === null || _g === void 0 ? void 0 : _g.mainGantt) === null || _h === void 0 ? void 0 : _h.showSecondaryDates) !== null && _j !== void 0 ? _j : false;
69
- this.displayedDates = calculateDisplayedDateRange(this.currentTasks, this.timeUnit, this.mainGanttDoubleView, this.currentDetails, (_k = this.props) === null || _k === void 0 ? void 0 : _k.preStepsCount);
68
+ (_k = (_j = (_h = this.props) === null || _h === void 0 ? void 0 : _h.mainGantt) === null || _j === void 0 ? void 0 : _j.showSecondaryDates) !== null && _k !== void 0 ? _k : false;
69
+ this.displayedDates = calculateDisplayedDateRange(this.currentTasks, this.timeUnit, this.mainGanttDoubleView, this.currentDetails, (_l = this.props) === null || _l === void 0 ? void 0 : _l.preStepsCount);
70
70
  this.viewDate = undefined;
71
71
  this.projection = undefined;
72
72
  this.updateTasks();
@@ -183,6 +183,31 @@ export class KupPlannerRenderer {
183
183
  // Use setTimeout to ensure DOM updates
184
184
  setTimeout(this.getScrollX, 500);
185
185
  }
186
+ // Handle phase drop
187
+ handlePhaseDrop(originalPhaseData,
188
+ // originalTaskData: KupPlannerGanttTaskN | KupPlannerItemDetail,
189
+ finalPhaseData, destinationData, onPhaseDrop) {
190
+ // Invoke callback
191
+ let row = undefined;
192
+ const currentProjects = this.currentTasks;
193
+ const parentOfClickedPhase = currentProjects.find((p) => { var _a; return (_a = p.phases) === null || _a === void 0 ? void 0 : _a.some((ph) => (ph === null || ph === void 0 ? void 0 : ph.id) === finalPhaseData.id); });
194
+ if (parentOfClickedPhase) {
195
+ const phases = mergeTaskIntoPhases(parentOfClickedPhase.phases, finalPhaseData);
196
+ const updatedProjects = currentProjects.map((p) => p.id === parentOfClickedPhase.id ? Object.assign(Object.assign({}, p), { phases }) : p);
197
+ row = getPhaseById(finalPhaseData.id, updatedProjects);
198
+ }
199
+ row === null || row === void 0 ? true : delete row['taskRow'];
200
+ onPhaseDrop === null || onPhaseDrop === void 0 ? void 0 : onPhaseDrop({
201
+ originalPhaseData,
202
+ // originalTaskData,
203
+ finalPhaseData: row,
204
+ destinationData,
205
+ });
206
+ // to move the phase back to its original position
207
+ this.currentTasks = JSON.parse(JSON.stringify(this.currentTasks));
208
+ // Use setTimeout to ensure DOM updates
209
+ setTimeout(this.getScrollX, 500);
210
+ }
186
211
  // Get scrollX
187
212
  getScrollX() {
188
213
  var _a, _b, _c;
@@ -195,7 +220,7 @@ export class KupPlannerRenderer {
195
220
  }
196
221
  render() {
197
222
  var _a, _b, _c;
198
- return (h("div", { key: '819b9d89b953274cacccee9bf2022575743e0d27', class: "planner-render" }, h("kup-switcher", { key: 'eebcce029f98a9f08cab9c96be0bad01999b7f95', timeUnitChange: (timeUnit) => {
223
+ return (h("div", { key: 'ca2bc5b1e398639943fc073b92035b83d304dee1', class: "planner-render" }, h("kup-switcher", { key: '02903e6f1d14536cc3e82e535f98f56761004051', timeUnitChange: (timeUnit) => {
199
224
  var _a, _b;
200
225
  (_b = (_a = this.props).onSetViewMode) === null || _b === void 0 ? void 0 : _b.call(_a, timeUnit);
201
226
  this.timeUnit = timeUnit;
@@ -228,7 +253,15 @@ export class KupPlannerRenderer {
228
253
  if (row) {
229
254
  this.handleContextMenu(event, row, this.props.mainGantt.onContextMenu);
230
255
  }
231
- }, dateChange: (task) => this.handleDateChange(task, this.currentTasks, this.props.mainGantt.onDateChange), locale: this.locale, dateTimeFormatters: ganttDateTimeFormatters, initialScrollX: this.scrollX, initialScrollY: this.props.mainGantt.initialScrollY, readOnly: this.props.mainGantt.readOnly, scrollXChange: this.props.onScrollX, scrollYChange: this.props.mainGantt.onScrollY, currentTasks: this.currentTasks, handleClick: this.handleClick.bind(this), handleDblClick: this.handleDblClick.bind(this), handleContextMenu: this.handleContextMenu.bind(this), ganttOnClick: this.props.mainGantt.onClick, ganttOnDblClick: this.props.mainGantt.onDblClick, ganttonOnContextMenu: this.props.mainGantt.onContextMenu, label: this.props.mainGantt.title, doubleView: (_b = this.mainGanttDoubleView) !== null && _b !== void 0 ? _b : false, setDoubleView: this.handleSetDoubleView.bind(this) })), this.props.secondaryGantt && (h("kup-gantt", Object.assign({ ref: (el) => (this.secondaryGantt = el), ganttId: KUP_PLANNER_SECONDARY_GANTT_ID, key: KUP_PLANNER_SECONDARY_GANTT_ID, filter: this.props.secondaryGantt.filter, hideLabel: this.props.secondaryGantt.hideLabel, showSecondaryDates: this.mainGanttDoubleView, hideDependencies: this.props.secondaryGantt.hideDependencies, ganttHeight: this.props.secondaryGantt.ganttHeight, displayedStartDate: this.displayedDates.displayedStartDate, displayedEndDate: this.displayedDates.displayedEndDate, viewDate: this.viewDate, tasks: this.details, columnWidth: columnWidthForTimeUnit(this.timeUnit), viewMode: this.timeUnit }, this.props.secondaryGantt.stylingOptions, { TaskListHeader: this.props.secondaryGantt
256
+ }, dateChange: (task) => this.handleDateChange(task, this.currentTasks, this.props.mainGantt.onDateChange), locale: this.locale, dateTimeFormatters: ganttDateTimeFormatters, initialScrollX: this.scrollX, initialScrollY: this.props.mainGantt.initialScrollY, readOnly: this.props.mainGantt.readOnly, scrollXChange: this.props.onScrollX, scrollYChange: this.props.mainGantt.onScrollY, currentTasks: this.currentTasks, handleClick: this.handleClick.bind(this), handleDblClick: this.handleDblClick.bind(this), handleContextMenu: this.handleContextMenu.bind(this), ganttOnClick: this.props.mainGantt.onClick, ganttOnDblClick: this.props.mainGantt.onDblClick, ganttonOnContextMenu: this.props.mainGantt.onContextMenu, label: this.props.mainGantt.title, doubleView: (_b = this.mainGanttDoubleView) !== null && _b !== void 0 ? _b : false, setDoubleView: this.handleSetDoubleView.bind(this), scrollableTaskList: this.props.scrollableTaskList, phaseDrop: (originalPhaseData, originalTaskData, finalPhaseData, destinationData) => {
257
+ const originalPhase = getPhaseById(originalPhaseData.id, this.currentTasks);
258
+ const originalTask = getProjectById(originalTaskData.id, this.currentTasks);
259
+ const finalPhase = getPhaseById(finalPhaseData.id, this.currentTasks);
260
+ const destinationTask = getProjectById(destinationData.id, this.currentTasks);
261
+ this.handlePhaseDrop(originalPhase,
262
+ // originalTask,
263
+ finalPhaseData, destinationTask, this.props.mainGantt.onPhaseDrop);
264
+ } })), this.props.secondaryGantt && (h("kup-gantt", Object.assign({ ref: (el) => (this.secondaryGantt = el), ganttId: KUP_PLANNER_SECONDARY_GANTT_ID, key: KUP_PLANNER_SECONDARY_GANTT_ID, filter: this.props.secondaryGantt.filter, hideLabel: this.props.secondaryGantt.hideLabel, showSecondaryDates: this.mainGanttDoubleView, hideDependencies: this.props.secondaryGantt.hideDependencies, ganttHeight: this.props.secondaryGantt.ganttHeight, displayedStartDate: this.displayedDates.displayedStartDate, displayedEndDate: this.displayedDates.displayedEndDate, viewDate: this.viewDate, tasks: this.details, columnWidth: columnWidthForTimeUnit(this.timeUnit), viewMode: this.timeUnit }, this.props.secondaryGantt.stylingOptions, { TaskListHeader: this.props.secondaryGantt
232
265
  .taskListHeaderProject, TaskListTable: this.props.secondaryGantt
233
266
  .taskListTableProject, TooltipContent: (_c = this.props.secondaryGantt.tooltipContent) !== null && _c !== void 0 ? _c : CustomTooltipHOC(), projection: this.projection, barClick: (task) => {
234
267
  if (this.props.secondaryGantt) {
@@ -258,7 +291,7 @@ export class KupPlannerRenderer {
258
291
  }
259
292
  }
260
293
  }, dateChange: (task) => this.handleDateChange(task, this
261
- .currentTasks, this.props.secondaryGantt.onDateChange), locale: this.locale, dateTimeFormatters: ganttDateTimeFormatters, initialScrollX: this.scrollX, initialScrollY: this.props.secondaryGantt.initialScrollY, readOnly: this.props.secondaryGantt.readOnly, scrollXChange: this.props.onScrollX, scrollYChange: this.props.secondaryGantt.onScrollY, currentTasks: this.currentTasks, handleClick: this.handleClick.bind(this), handleDblClick: this.handleDblClick.bind(this), handleContextMenu: this.handleContextMenu.bind(this), ganttOnClick: this.props.secondaryGantt.onClick, ganttOnDblClick: this.props.secondaryGantt.onDblClick, ganttonOnContextMenu: this.props.secondaryGantt.onContextMenu, label: this.props.secondaryGantt.title })))))));
294
+ .currentTasks, this.props.secondaryGantt.onDateChange), locale: this.locale, dateTimeFormatters: ganttDateTimeFormatters, initialScrollX: this.scrollX, initialScrollY: this.props.secondaryGantt.initialScrollY, readOnly: this.props.secondaryGantt.readOnly, scrollXChange: this.props.onScrollX, scrollYChange: this.props.secondaryGantt.onScrollY, currentTasks: this.currentTasks, handleClick: this.handleClick.bind(this), handleDblClick: this.handleDblClick.bind(this), handleContextMenu: this.handleContextMenu.bind(this), ganttOnClick: this.props.secondaryGantt.onClick, ganttOnDblClick: this.props.secondaryGantt.onDblClick, ganttonOnContextMenu: this.props.secondaryGantt.onContextMenu, label: this.props.secondaryGantt.title, scrollableTaskList: this.props.scrollableTaskList })))))));
262
295
  }
263
296
  static get is() { return "kup-planner-renderer"; }
264
297
  static get properties() {
@@ -130,29 +130,36 @@
130
130
  display: grid;
131
131
  grid-auto-flow: column;
132
132
  grid-gap: 8px;
133
- margin-left: 12px;
134
133
  width: max-content;
134
+ margin-bottom: var(--kup-space-05);
135
+ margin-left: var(--kup-space-04);
135
136
  }
136
137
 
137
138
  .button {
138
- background: transparent;
139
- border-color: var(--kup-primary-color, #003b77);
140
- border-radius: 4px;
141
- border-width: 1px;
142
- box-shadow: 0 3px 1px -2px rgba(var(--kup-text-color-rgb, 51 51 51), 0.2), 0 2px 2px 0 rgba(var(--kup-text-color-rgb, 51 51 51), 0.14), 0 1px 5px 0 rgba(var(--kup-text-color-rgb, 51 51 51), 0.12);
139
+ background-color: var(--kup-gray-color-70);
140
+ border: none;
141
+ text-align: left;
143
142
  box-sizing: border-box;
144
- color: var(--kup-primary-color, #003b77);
143
+ color: var(--kup-gray-color-0);
145
144
  cursor: pointer;
146
- font-size: 11px;
147
- height: 32px;
148
- min-width: 64px;
145
+ padding: var(--kup-space-03) var(--kup-space-05);
146
+ }
147
+ .button:hover {
148
+ background-color: var(--kup-gray-color-90);
149
+ }
150
+ .button:focus {
151
+ background-color: var(--kup-primary-color-60);
149
152
  }
150
153
 
151
154
  .label {
152
- font-family: var(--kup-font-family, inherit);
153
- font-size: 11px;
154
- letter-spacing: 0.0892857143em;
155
155
  text-decoration: none;
156
- text-transform: uppercase;
157
- padding: 0 6px;
156
+ font-family: var(--kup-font-family);
157
+ font-size: 14px;
158
+ line-height: 18px;
159
+ font-weight: 400;
160
+ letter-spacing: 0.16px;
161
+ }
162
+
163
+ .buttonActive {
164
+ background-color: var(--kup-primary-color-60);
158
165
  }
@@ -1,14 +1,25 @@
1
1
  import { h } from "@stencil/core";
2
2
  export class KupSwitcher {
3
3
  constructor() {
4
+ this.buttonLabels = [
5
+ 'hour',
6
+ 'day',
7
+ 'week',
8
+ 'month',
9
+ 'year',
10
+ ];
4
11
  this.timeUnitChange = undefined;
12
+ this.activeButton = 'day';
5
13
  }
6
14
  render() {
7
- const day = () => this.timeUnitChange('day');
8
- const week = () => this.timeUnitChange('week');
9
- const month = () => this.timeUnitChange('month');
10
- const year = () => this.timeUnitChange('year');
11
- return (h("div", { key: '64c26910f550b5c74b294667e58f396f0642e601', class: "switcher" }, h("button", { key: '1f110cd85b5e837aec6f5c2b69ac14b3a47d9f79', type: "button", class: "button", onClick: day }, h("span", { key: 'be249d7896fcd93905e8865309405d30dfa506bf', class: "label" }, "Day")), h("button", { key: '81dfab2aebed98d32cff106577795a064c03a257', type: "button", class: "button", onClick: week }, h("span", { key: 'e5c41e5dcd9d775c6749c2907e59a7d0400e3712', class: "label" }, "Week")), h("button", { key: 'a598a5ab4f1496bbd267134201b21c45e5198d01', type: "button", class: "button", onClick: month }, h("span", { key: '57769be17ca1de59a919cbb7e7ac11d0546a28fb', class: "label" }, "Month")), h("button", { key: 'b62c7585c44acc19863bc93898851348250ba7fa', type: "button", class: "button", onClick: year }, h("span", { key: '9f4ab800c4eef1666ceabaebe0d35b042753430f', class: "label" }, "Year"))));
15
+ const handleButtonClick = (mode) => {
16
+ this.activeButton = mode;
17
+ this.timeUnitChange(mode);
18
+ };
19
+ return (h("div", { key: '1a1621221e411df713757eae42e028968277e0a5', class: "switcher" }, this.buttonLabels.map((label) => (h("button", { type: "button", class: {
20
+ button: true,
21
+ buttonActive: this.activeButton === label,
22
+ }, onClick: () => handleButtonClick(label) }, h("span", { class: "label" }, label.charAt(0).toUpperCase() + label.slice(1)))))));
12
23
  }
13
24
  static get is() { return "kup-switcher"; }
14
25
  static get originalStyleUrls() {
@@ -46,4 +57,9 @@ export class KupSwitcher {
46
57
  }
47
58
  };
48
59
  }
60
+ static get states() {
61
+ return {
62
+ "activeButton": {}
63
+ };
64
+ }
49
65
  }
@@ -8,6 +8,7 @@ export class TaskGantt {
8
8
  this.ganttHeight = undefined;
9
9
  this.scrollY = undefined;
10
10
  this.scrollX = undefined;
11
+ this.phaseDragScroll = undefined;
11
12
  }
12
13
  /*-------------------------------------------------*/
13
14
  /* W A T C H E R S */
@@ -32,13 +33,13 @@ export class TaskGantt {
32
33
  }, 75);
33
34
  }
34
35
  render() {
35
- const newBarProps = Object.assign(Object.assign({}, this.barProps), { gridProps: this.gridProps });
36
- return (h("div", { key: 'd9a4cf68f10e8263f73123022b4e545f6a028580', class: "ganttVerticalContainer", ref: (el) => (this.verticalGanttContainerRef = el), dir: "ltr" }, h("kup-gantt-calendar", { key: '2ad5614e2df01e5f3cc21b9940c14ba7dd5a785d', dateSetup: this.calendarProps.dateSetup, locale: this.calendarProps.locale, rtl: this.calendarProps.rtl, headerHeight: this.calendarProps.headerHeight, columnWidth: this.calendarProps.columnWidth, fontFamily: this.calendarProps.fontFamily, fontSize: this.calendarProps.fontSize, dateTimeFormatters: this.calendarProps.dateTimeFormatters, singleLineHeader: this.calendarProps.singleLineHeader, currentDateIndicator: this.calendarProps.currentDateIndicator, svgWidth: this.gridProps.svgWidth }), h("div", { key: '8c0e76cb967f172406f352c6568582fdc4008d38', ref: (el) => (this.horizontalContainerRef = el), class: "horizontalContainer", style: this.ganttHeight
36
+ const newBarProps = Object.assign(Object.assign({}, this.barProps), { gridProps: this.gridProps, phaseDragScroll: this.phaseDragScroll });
37
+ return (h("div", { key: '70a643ef8eeac75a4860e9f7b267b09fc2e7a44a', class: "ganttVerticalContainer", ref: (el) => (this.verticalGanttContainerRef = el), dir: "ltr" }, h("kup-gantt-calendar", { key: '845ae3e99e6ae05f78af126bf72b6aea0f5c535b', dateSetup: this.calendarProps.dateSetup, locale: this.calendarProps.locale, rtl: this.calendarProps.rtl, headerHeight: this.calendarProps.headerHeight, columnWidth: this.calendarProps.columnWidth, fontFamily: this.calendarProps.fontFamily, fontSize: this.calendarProps.fontSize, dateTimeFormatters: this.calendarProps.dateTimeFormatters, singleLineHeader: this.calendarProps.singleLineHeader, currentDateIndicator: this.calendarProps.currentDateIndicator, svgWidth: this.gridProps.svgWidth }), h("div", { key: '72cb7c8fc59bf4fef2800d5c73af4be641d7a8bf', ref: (el) => (this.horizontalContainerRef = el), class: "horizontalContainer", style: this.ganttHeight
37
38
  ? {
38
39
  height: `${this.ganttHeight}px`,
39
40
  width: `${this.gridProps.svgWidth}px`,
40
41
  }
41
- : { width: `${this.gridProps.svgWidth}px` } }, h("kup-grid-renderer", Object.assign({ key: '69040247d6fde1ddb12f3b2ce54e02bc7781e569' }, newBarProps)))));
42
+ : { width: `${this.gridProps.svgWidth}px` } }, h("kup-grid-renderer", Object.assign({ key: '4e80893d377f70548b5301f5b00eb928ef60ae91' }, newBarProps)))));
42
43
  }
43
44
  static get is() { return "kup-task-gantt"; }
44
45
  static get properties() {
@@ -195,6 +196,21 @@ export class TaskGantt {
195
196
  },
196
197
  "attribute": "scroll-x",
197
198
  "reflect": false
199
+ },
200
+ "phaseDragScroll": {
201
+ "type": "unknown",
202
+ "mutable": false,
203
+ "complexType": {
204
+ "original": "(scrollY: number) => void",
205
+ "resolved": "(scrollY: number) => void",
206
+ "references": {}
207
+ },
208
+ "required": false,
209
+ "optional": false,
210
+ "docs": {
211
+ "tags": [],
212
+ "text": ""
213
+ }
198
214
  }
199
215
  };
200
216
  }
@@ -7,22 +7,22 @@ export class KupTaskListHeader {
7
7
  this.rowWidth = undefined;
8
8
  }
9
9
  render() {
10
- return (h("div", { key: '85c164a7a4313c8708ce2774338ff123621e7648', class: "ganttTable", style: {
10
+ return (h("div", { key: 'fb2ebda78c2213e06581f760793f19a5de8fc5f6', class: "ganttTable", style: {
11
11
  fontFamily: this.fontFamily,
12
12
  fontSize: this.fontSize,
13
- } }, h("div", { key: '46aad2a15e9f7d6fe8e7b705b5cc4f385ebf2d69', class: "ganttTable_Header", style: {
13
+ } }, h("div", { key: '7d3be11d08ca2682277d0ee5cd5b062daaf238d4', class: "ganttTable_Header", style: {
14
14
  height: `${this.headerHeight - 2}px`,
15
- } }, h("div", { key: 'fafa8c4eb47c740fff23eb204a75b872d39876e2', class: "ganttTable_HeaderItem", style: {
15
+ } }, h("div", { key: 'f5f4a2a599dd84a0616b699931823760bb0b07ed', class: "ganttTable_HeaderItem", style: {
16
16
  minWidth: this.rowWidth,
17
- } }, "\u00A0Name"), h("div", { key: '1ebbcca3ce32701a8af4140fb638173de9795995', class: "ganttTable_HeaderSeparator", style: {
17
+ } }, "\u00A0Name"), h("div", { key: '6c09f131ce232248647bf9f1fc503fdc86cc557b', class: "ganttTable_HeaderSeparator", style: {
18
18
  height: `${this.headerHeight * 0.5}px`,
19
19
  marginTop: `${this.headerHeight * 0.2}px`,
20
- } }), h("div", { key: 'b08345a4be12e76a9d634508e32e035a3c570dfb', class: "ganttTable_HeaderItem", style: {
20
+ } }), h("div", { key: '278d663951a0e5c73e1d365f98aefdddc9344d43', class: "ganttTable_HeaderItem", style: {
21
21
  minWidth: this.rowWidth,
22
- } }, "\u00A0From"), h("div", { key: '3f035b39c2c66677e78c2786cea4a39c824bb60b', class: "ganttTable_HeaderSeparator", style: {
22
+ } }, "\u00A0From"), h("div", { key: 'a1ccf08fe5072d3f0fc9faa2e743c054aa6fbc19', class: "ganttTable_HeaderSeparator", style: {
23
23
  height: `${this.headerHeight * 0.5}px`,
24
24
  marginTop: `${this.headerHeight * 0.25}px`,
25
- } }), h("div", { key: '01effc62e0e2ddf73ab5cf4cbad5873f70d510c6', class: "ganttTable_HeaderItem", style: {
25
+ } }), h("div", { key: '9766eb1cfa74ed6227876d69304b772a9958fdb0', class: "ganttTable_HeaderItem", style: {
26
26
  minWidth: this.rowWidth,
27
27
  } }, "\u00A0To"))));
28
28
  }
@@ -22,7 +22,7 @@ export class TaskListTableDefault {
22
22
  return date.toLocaleDateString(this.locale, this.dateTimeOptions);
23
23
  }
24
24
  render() {
25
- return (h("div", { key: 'a488bee5b9421a1f1f63911ac1ad6702d2f08d65', class: "taskListWrapper", style: {
25
+ return (h("div", { key: '185eb1455b2e46d4ef578eaada2abc891458a763', class: "taskListWrapper", style: {
26
26
  fontFamily: this.fontFamily,
27
27
  fontSize: this.fontSize,
28
28
  } }, this.tasks.map((task) => (h("div", { class: {
@@ -20,6 +20,9 @@ export class TaskList {
20
20
  this.currentTasks = undefined;
21
21
  this.label = undefined;
22
22
  this.doubleView = undefined;
23
+ this.scrollableTaskList = undefined;
24
+ this.updateTaskListScrollX = false;
25
+ this.taskListScrollX = undefined;
23
26
  this.setDoubleView = undefined;
24
27
  this.handleClick = undefined;
25
28
  this.handleDblClick = undefined;
@@ -29,6 +32,7 @@ export class TaskList {
29
32
  this.ganttonOnContextMenu = undefined;
30
33
  this.setSelectedTask = undefined;
31
34
  this.expanderClick = undefined;
35
+ this.ontaskListScrollWidth = undefined;
32
36
  this.selectedTaskId = '';
33
37
  }
34
38
  componentDidLoad() {
@@ -70,6 +74,7 @@ export class TaskList {
70
74
  tasks: this.tasks,
71
75
  locale: this.locale,
72
76
  selectedTaskId: this.selectedTaskId,
77
+ scrollableTaskList: this.scrollableTaskList,
73
78
  setSelectedTask: this.setSelectedTask.bind(this),
74
79
  onExpanderClick: this.expanderClick,
75
80
  };
@@ -81,7 +86,7 @@ export class TaskList {
81
86
  if (TaskListTable && TaskListTable['$attrs$']) {
82
87
  Object.assign(TaskListTable['$attrs$'], Object.assign({}, tableProps));
83
88
  }
84
- return (h("div", { key: '7dd68dd1a7d21ae60df1565041e4c40c4e809190', ref: (el) => (this.taskListRef = el) }, TaskListHeader && TaskListHeader['$attrs$'] ? (TaskListHeader) : (h("kup-custom-task-list-header", Object.assign({ label: this.label, doubleView: (_a = this.doubleView) !== null && _a !== void 0 ? _a : false, setDoubleView: this.setDoubleView }, headerProps))), h("div", { key: '7a956f23ef07603f31a331d229f1bb1d04e98773', class: this.horizontalContainerClass, style: this.ganttHeight
89
+ return (h("div", { key: 'cfd1d8efa3a55550e105f5ad084f011dc64e8870', ref: (el) => (this.taskListRef = el) }, TaskListHeader && TaskListHeader['$attrs$'] ? (TaskListHeader) : (h("kup-custom-task-list-header", Object.assign({ label: this.label, doubleView: (_a = this.doubleView) !== null && _a !== void 0 ? _a : false, setDoubleView: this.setDoubleView }, headerProps))), h("div", { key: '1279ffece78a182c6ff1facb46bd493a8c74f363', class: `${this.horizontalContainerClass} ${this.scrollableTaskList ? 'horizontalContainerScrollable' : ''}`, style: this.ganttHeight
85
90
  ? { height: this.ganttHeight + 'px' }
86
91
  : {}, ref: (el) => (this.horizontalContainerRef = el) }, TaskListTable && TaskListTable['$attrs$'] ? (TaskListTable) : (h("kup-custom-task-list-table", Object.assign({}, tableProps, { onclickTaskList: (id) => {
87
92
  let row = getProjectById(id, this.currentTasks);
@@ -107,7 +112,9 @@ export class TaskList {
107
112
  if (row) {
108
113
  this.handleContextMenu(event, row, this.ganttonOnContextMenu);
109
114
  }
110
- }, ganttId: KUP_PLANNER_MAIN_GANTT_ID }))))));
115
+ }, ontaskListScrollWidth: (width) => {
116
+ this.ontaskListScrollWidth(width);
117
+ }, taskListScrollX: this.taskListScrollX, ganttId: KUP_PLANNER_MAIN_GANTT_ID }))))));
111
118
  }
112
119
  static get is() { return "kup-task-list"; }
113
120
  static get originalStyleUrls() {
@@ -439,6 +446,58 @@ export class TaskList {
439
446
  "attribute": "double-view",
440
447
  "reflect": false
441
448
  },
449
+ "scrollableTaskList": {
450
+ "type": "boolean",
451
+ "mutable": false,
452
+ "complexType": {
453
+ "original": "boolean",
454
+ "resolved": "boolean",
455
+ "references": {}
456
+ },
457
+ "required": false,
458
+ "optional": true,
459
+ "docs": {
460
+ "tags": [],
461
+ "text": ""
462
+ },
463
+ "attribute": "scrollable-task-list",
464
+ "reflect": false
465
+ },
466
+ "updateTaskListScrollX": {
467
+ "type": "boolean",
468
+ "mutable": false,
469
+ "complexType": {
470
+ "original": "boolean",
471
+ "resolved": "boolean",
472
+ "references": {}
473
+ },
474
+ "required": false,
475
+ "optional": false,
476
+ "docs": {
477
+ "tags": [],
478
+ "text": ""
479
+ },
480
+ "attribute": "update-task-list-scroll-x",
481
+ "reflect": false,
482
+ "defaultValue": "false"
483
+ },
484
+ "taskListScrollX": {
485
+ "type": "number",
486
+ "mutable": false,
487
+ "complexType": {
488
+ "original": "number",
489
+ "resolved": "number",
490
+ "references": {}
491
+ },
492
+ "required": false,
493
+ "optional": false,
494
+ "docs": {
495
+ "tags": [],
496
+ "text": ""
497
+ },
498
+ "attribute": "task-list-scroll-x",
499
+ "reflect": false
500
+ },
442
501
  "setDoubleView": {
443
502
  "type": "unknown",
444
503
  "mutable": false,
@@ -625,6 +684,21 @@ export class TaskList {
625
684
  "tags": [],
626
685
  "text": ""
627
686
  }
687
+ },
688
+ "ontaskListScrollWidth": {
689
+ "type": "unknown",
690
+ "mutable": false,
691
+ "complexType": {
692
+ "original": "(width: number) => void",
693
+ "resolved": "(width: number) => void",
694
+ "references": {}
695
+ },
696
+ "required": false,
697
+ "optional": false,
698
+ "docs": {
699
+ "tags": [],
700
+ "text": ""
701
+ }
628
702
  }
629
703
  };
630
704
  }
@@ -6,7 +6,7 @@ export class StandardTooltipContent {
6
6
  this.fontFamily = undefined;
7
7
  }
8
8
  render() {
9
- return (h("div", { key: '654584ad4531cbc29fac8f6f1f8862f32127e614', class: "tooltipDefaultContainer", style: { fontSize: this.fontSize, fontFamily: this.fontFamily } }, h("b", { key: 'fc0104c8f5cce036410e84236b73237ca8c32e10', style: { fontSize: `${parseInt(this.fontSize) + 6}px` } }, `${this.task.name}: ${this.task.start.getDate()}-${this.task.start.getMonth() + 1}-${this.task.start.getFullYear()} - ${this.task.end.getDate()}-${this.task.end.getMonth() + 1}-${this.task.end.getFullYear()}`), this.task.end.getTime() - this.task.start.getTime() !== 0 && (h("p", { class: "tooltipDefaultContainerParagraph" }, `Duration: ${~~((this.task.end.getTime() - this.task.start.getTime()) / (1000 * 60 * 60 * 24))} day(s)`)), h("p", { key: '021b32e66e1ee1254acb60d7a5c1f38f1b59ea42', class: "tooltipDefaultContainerParagraph" }, !!this.task.progress && `Progress: ${this.task.progress} %`)));
9
+ return (h("div", { key: 'c9b5188678b4980a396d82ea533c06ab66559061', class: "tooltipDefaultContainer", style: { fontSize: this.fontSize, fontFamily: this.fontFamily } }, h("b", { key: 'f1597026854513f01c5f40c95ac1b5dee2284f1a', style: { fontSize: `${parseInt(this.fontSize) + 6}px` } }, `${this.task.name}: ${this.task.start.getDate()}-${this.task.start.getMonth() + 1}-${this.task.start.getFullYear()} - ${this.task.end.getDate()}-${this.task.end.getMonth() + 1}-${this.task.end.getFullYear()}`), this.task.end.getTime() - this.task.start.getTime() !== 0 && (h("p", { class: "tooltipDefaultContainerParagraph" }, `Duration: ${~~((this.task.end.getTime() - this.task.start.getTime()) / (1000 * 60 * 60 * 24))} day(s)`)), h("p", { key: 'c544fe0f4499f5ef8dbc3cbb0076b9a4addfd5d1', class: "tooltipDefaultContainerParagraph" }, !!this.task.progress && `Progress: ${this.task.progress} %`)));
10
10
  }
11
11
  static get is() { return "kup-standard-tooltip"; }
12
12
  static get encapsulation() { return "shadow"; }
@@ -59,7 +59,7 @@ export class Tooltip {
59
59
  }
60
60
  }
61
61
  render() {
62
- return (h("div", { key: '6e6cc9d062e2910930ea039bd62c7d7c6cbfca30', class: this.relatedX ? 'tooltipDetailsContainer' : 'tooltipDetailsContainerHidden', style: { left: `${this.relatedX}px`, top: `${this.relatedY}px` } }, h(this.TooltipContent, { key: '08262258302d58b11d3c832194adfcdecf262bc2', task: this.task, fontSize: this.fontSize, fontFamily: this.fontFamily })));
62
+ return (h("div", { key: '285d804e882396024becfcfb1bbe83f7b92ef1ba', class: this.relatedX ? 'tooltipDetailsContainer' : 'tooltipDetailsContainerHidden', style: { left: `${this.relatedX}px`, top: `${this.relatedY}px` } }, h(this.TooltipContent, { key: '64a79a8e5c79ef4985e289e2e86c9d4c8ef75175', task: this.task, fontSize: this.fontSize, fontFamily: this.fontFamily })));
63
63
  }
64
64
  static get is() { return "kup-tooltip"; }
65
65
  static get encapsulation() { return "shadow"; }
@@ -31,11 +31,11 @@ export class KupVerticalScroll {
31
31
  };
32
32
  }
33
33
  render() {
34
- return (h("div", { key: '80335159040a9c60dc8213840c3b2d684636585d', style: {
34
+ return (h("div", { key: 'fd24a7eab2da0ee2317a1fde6aa2f052394a0d5b', style: {
35
35
  height: `${this.ganttHeight}px`,
36
36
  marginTop: `${this.headerHeight}px`,
37
37
  marginLeft: this.rtl ? '' : '-1rem',
38
- }, class: "scroll", onScroll: this.verticalScroll, ref: (el) => (this.scrollRef = el) }, h("div", { key: '2ad01e01bb31d6885cf87bda7e1448f70b182435', style: {
38
+ }, class: "scroll", onScroll: this.verticalScroll, ref: (el) => (this.scrollRef = el) }, h("div", { key: 'f6d2bacc2f3c5532d33cb148e46394bc9697ece9', style: {
39
39
  height: `${this.ganttFullHeight}px`,
40
40
  width: '1px',
41
41
  } })));
@@ -251,7 +251,7 @@ export class KupProbe {
251
251
  if (this.features.theme) {
252
252
  customStyle = this.kupManager.theme.setKupStyle(this.rootElement);
253
253
  }
254
- return (h(Host, { key: '3d9977be8424b7c7939cf1b4b5aa906407832397' }, customStyle ? h("style", null, customStyle) : null, h("div", { key: 'cfa7570e4e6dda26d6523ccddfe6dfb134a11d49', id: componentWrapperId }, this.content)));
254
+ return (h(Host, { key: '71372dfbcfbf66e3f83eda11eca5fddca3402d1c' }, customStyle ? h("style", null, customStyle) : null, h("div", { key: 'a05d5a30011b2e1ede2f6ca1eca593de48aebd06', id: componentWrapperId }, this.content)));
255
255
  }
256
256
  disconnectedCallback() {
257
257
  if (this.features.language) {
@@ -102,7 +102,7 @@ export class KupProgressBar {
102
102
  ? true
103
103
  : false,
104
104
  };
105
- return (h(Host, { key: '1b2425a71715fddcf35e70489b6c8a3a69b2f46b' }, h("style", { key: '99bb7c045653035435bbb392febdb1fa84323f7f' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '09ba97b815a0a175a514504eb360f3dd0e936a6f', id: componentWrapperId }, h(FProgressBar, Object.assign({ key: 'c442aa63b4c117266e1f52abb6167a2b0eb765b2' }, props)))));
105
+ return (h(Host, { key: '57a2cca6ae1cfd6ff6a69288018df10806d0e67c' }, h("style", { key: '7fd614839501fda6bf2d3d89ad66e76e59637297' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: 'eee4d3901f0552242a11513c990aa4cbecce32bc', id: componentWrapperId }, h(FProgressBar, Object.assign({ key: '3cee61bc06301e0f709610e30cb62fa092982ba0' }, props)))));
106
106
  }
107
107
  disconnectedCallback() {
108
108
  this.kupManager.theme.unregister(this);
@@ -110,7 +110,7 @@ export class KupQlik {
110
110
  layoutStyle = {
111
111
  ['--lyo_obj-height']: this.defobjsize,
112
112
  };
113
- return (h("div", { key: '533e892f582c7ee663b5e41b44617c00edd1d48b', class: classLayout, style: layoutStyle }, this.divlist));
113
+ return (h("div", { key: 'ad3b840b782c155e43d25d46b4fbf3150d0d5296', class: classLayout, style: layoutStyle }, this.divlist));
114
114
  }
115
115
  componentDidRender() {
116
116
  if (this.debug) {
@@ -91,7 +91,7 @@ export class KupRating {
91
91
  : false,
92
92
  onClick: (i) => this.onKupClick(i),
93
93
  };
94
- return (h(Host, { key: 'd31390528c93c0199b6d0db4b7e1deb01c81f2dd' }, h("style", { key: '78e614396810ee9261e5573633d5cac7e8ecb08f' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '547e1d51db015599d45f6ee822041392f842ed75', id: componentWrapperId }, h(FRating, Object.assign({ key: 'ea9e6df8ab9af9f3cc8845f4fd3e2f00db74aacc' }, props)))));
94
+ return (h(Host, { key: 'c56d698d5f1b274ee1a318104a3acb41156b78e1' }, h("style", { key: 'b1e57137e0a1461f12d73ec86d4dbdcf023ffe16' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '4e934f072d83d0f6ffe7ffd7ef8edcccf3935d9e', id: componentWrapperId }, h(FRating, Object.assign({ key: '6a5946de139310a68c7e4d5221fc4444a28b80e1' }, props)))));
95
95
  }
96
96
  disconnectedCallback() {
97
97
  this.kupManager.theme.unregister(this);
@@ -92,7 +92,7 @@ export class KupSnackbar {
92
92
  this.kupManager.debug.logRender(this, true);
93
93
  }
94
94
  render() {
95
- return (h(Host, { key: 'f75d7ca1de9b0f63c555a5bbe65d18f515b30020', "kup-visible": this.visible }, h("style", { key: 'e457888f9c6355cd2997f136cc542d424cf7d72e' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: 'ede1431d986952c43cbe5d3b8484b3f27750aec6', id: componentWrapperId }, h("div", { key: 'c76c7533233b5ca057b8f2d49c99a5771b90b3f1', class: snackbarClass }, h("div", { key: '5546bfb280f7ba4bbc462c30b36094fea1276c08', class: `${snackbarClass}__text` }, this.text), this.actionButton || this.closeButton ? (h("div", { class: `${snackbarClass}__buttons` }, this.actionButton ? (h("div", { class: `${snackbarClass}__action` }, h(FButton, Object.assign({}, this.actionButton, { onClick: () => this.onKupActionClick() })))) : null, this.closeButton ? (h("div", { class: `${snackbarClass}__close` }, h(FButton, { icon: "close", onClick: () => this.hide() }))) : null)) : null))));
95
+ return (h(Host, { key: '3e52e4dd0672594bf385bcd44f3ceac7474ebb54', "kup-visible": this.visible }, h("style", { key: '2b6dcba48e84c7ba0ded38c5a86907a1ddb0aed4' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '6843781af0232d8dd65eb23941a2f33a17ec694f', id: componentWrapperId }, h("div", { key: '178a36a80ff89fa6b31af04c372367e0e4427b89', class: snackbarClass }, h("div", { key: '8383fa478dd8a4f35fb9718a83131d26caadb275', class: `${snackbarClass}__text` }, this.text), this.actionButton || this.closeButton ? (h("div", { class: `${snackbarClass}__buttons` }, this.actionButton ? (h("div", { class: `${snackbarClass}__action` }, h(FButton, Object.assign({}, this.actionButton, { onClick: () => this.onKupActionClick() })))) : null, this.closeButton ? (h("div", { class: `${snackbarClass}__close` }, h(FButton, { icon: "close", onClick: () => this.hide() }))) : null)) : null))));
96
96
  }
97
97
  disconnectedCallback() {
98
98
  this.kupManager.theme.unregister(this);