@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
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, h, F as Fragment } from './index-460631fd.js';
2
- import { b as KupDates, c as commonjsGlobal } from './kup-dates-4ad48be7.js';
3
- import { d as defaultDateTimeFormatters, a as getDaysInMonth } from './kup-planner-time-formatter-a68e05ba.js';
4
- import { h as addToDate } from './kup-planner-renderer-helper-da0518be.js';
5
- import { i as isKeyboardEvent, g as getProgressPoint, h as handleTaskBySVGMouseEvent } from './bar.helpers-0898efb9.js';
2
+ import { b as KupDates, c as commonjsGlobal } from './kup-dates-26a56bf7.js';
3
+ import { d as createArrayFromNum, i as isKeyboardEvent, g as getProgressPoint, h as handleTaskBySVGMouseEvent } from './bar.helpers-23a51579.js';
4
+ import { d as defaultDateTimeFormatters, a as getDaysInMonth, b as getCachedDateTimeFormat, c as getLocalDayOfWeek, e as getLocaleMonth } from './kup-planner-time-formatter-ddf84f9b.js';
5
+ import { d as defaultStylingOptions } from './kup-planner-declarations-398babf9.js';
6
6
 
7
7
  const customTaskListHeaderModuleCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.custom-task-list-wrapper{display:flex;justify-content:space-around;max-width:330px;place-items:\"center\";text-align:center;align-items:center}.title{font-weight:bold;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toggler{max-width:max-content;padding:0 4px;text-align:right}.switch{position:relative;display:inline-block;width:30px;height:17px}.input{opacity:0;width:0;height:0}.input:checked+.slider{background-color:#003b77}.input:checked+.slider:before{-webkit-transform:translateX(13px);-ms-transform:translateX(13px);transform:translateX(13px)}.input:focus+.slider{box-shadow:0 0 1px #003b77}.slider{-webkit-transition:0.4s;cursor:pointer;background-color:#ccc;bottom:0;border-radius:17px;left:0;position:absolute;right:0;top:0;transition:0.4s}.slider:before{-webkit-transition:0.1s;background-color:white;border-radius:50%;bottom:2px;content:\"\";height:13px;left:2px;position:absolute;transition:0.1s;width:13px}.label{font-size:12px;padding:6px}.filter{font-size:12px}";
8
8
  const KupCustomTaskListHeaderStyle0 = customTaskListHeaderModuleCss;
@@ -17,16 +17,16 @@ const KupCustomTaskListHeader = class {
17
17
  this.fontSize = undefined;
18
18
  }
19
19
  render() {
20
- return (h("div", { key: '25542e1e426f9f035bdd3b894acf915100609cec', class: "custom-task-list-wrapper", style: {
20
+ return (h("div", { key: '777c24c612e5d8c93b74a4a8466248cd9a84cd31', class: "custom-task-list-wrapper", style: {
21
21
  height: '50px',
22
22
  fontFamily: this.fontFamily,
23
23
  fontSize: this.fontSize,
24
- } }, h("div", { key: 'b64868e8a15fda0a259e30e77a1572fef34cf9a9', class: "title" }, h("span", { key: '4bb87686a421a211ff7caa2c53105764f2e15c0a' }, this.label)), this.setDoubleView !== undefined && (h("div", { class: "toggler" }, h("label", { htmlFor: "ch2", class: "switch" }, h("input", { class: "input", id: "ch2", type: "checkbox", checked: this.doubleView, onClick: () => this.setDoubleView(!this.doubleView) }), h("span", { class: "slider" })), h("span", { class: "label" }, "Previsioni")))));
24
+ } }, h("div", { key: '8a00184f85811656ea2f4c6e69fee0db3ef85f48', class: "title" }, h("span", { key: '170a1bef8a7663064ebaaa600a3aaa40beb84243' }, this.label)), this.setDoubleView !== undefined && (h("div", { class: "toggler" }, h("label", { htmlFor: "ch2", class: "switch" }, h("input", { class: "input", id: "ch2", type: "checkbox", checked: this.doubleView, onClick: () => this.setDoubleView(!this.doubleView) }), h("span", { class: "slider" })), h("span", { class: "label" }, "Previsioni")))));
25
25
  }
26
26
  };
27
27
  KupCustomTaskListHeader.style = KupCustomTaskListHeaderStyle0;
28
28
 
29
- const ganttTableModuleCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.container{padding:0 10px;margin-right:10px}.project{background:var(--kup-background-color, #ffffff);border:1px solid var(--kup-border-color, #acacac);border-radius:4px;box-sizing:border-box;color:var(--kup-text-color, #595959);cursor:pointer;display:grid;font-weight:400;grid-template-columns:var(--grid-project-columns, 1fr 1fr 1fr);place-items:center}.project>*{font-size:14px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.project .main{font-weight:700;width:100%;padding-left:4px}.subrow{cursor:pointer;display:grid;border-width:1px;border-style:solid;border-color:#acacac;border-bottom-left-radius:4px;border-bottom-right-radius:4px;box-sizing:border-box;grid-template-columns:var(--grid-fasi-columns, 1fr 1fr 1fr);place-items:center;background:#ffffff;color:#595959;font-weight:400}.subrow>*{font-size:12px;line-height:14px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.subrow:has(+.subrow),.project:has(+.subrow){border-bottom-left-radius:0;border-bottom-right-radius:0}.timeline{cursor:pointer;display:grid;border-width:1px;border-style:solid;border-color:#cbcbcb;border-radius:4px;grid-template-columns:var(--grid-fasi-columns, 1fr 1fr 1fr);place-items:center;background:#fff;color:#595959;font-weight:400;box-sizing:border-box}.timeline>*{font-size:14px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.timeline .main{font-weight:700;width:100%;padding-left:4px}";
29
+ const ganttTableModuleCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.container{padding:0 10px;margin-right:10px}.scrollable{overflow-x:auto;scrollbar-width:0}.scrollable .project-wrapper{display:table}.scrollable .project{width:100% !important;display:table-row}.scrollable .project>*{overflow:unset;padding-right:10px;display:table-cell;vertical-align:middle;border-bottom:1px solid var(--kup-border-color, #acacac);border-top:1px solid var(--kup-border-color, #acacac);padding-left:12px}.scrollable .project>*:first-child{border-left:1px solid var(--kup-border-color, #acacac);border-bottom-left-radius:4px;border-top-left-radius:4px}.scrollable .project>*:last-child{border-right:1px solid var(--kup-border-color, #acacac);border-bottom-right-radius:4px;border-top-right-radius:4px}.scrollable .subrow{width:100% !important;display:table-row}.scrollable .subrow>*{overflow:unset;padding-right:10px;display:table-cell;vertical-align:middle;border-bottom:1px solid #acacac;border-top:1px solid #acacac;padding-left:12px}.scrollable .subrow>*:first-child{border-left:1px solid #acacac}.scrollable .subrow>*:last-child{border-right:1px solid #acacac}.scrollable .timeline{width:100% !important;display:table-row}.scrollable .timeline>*{overflow:unset;padding-right:10px;display:table-cell;vertical-align:middle;border-bottom:1px solid #acacac;border-top:1px solid #acacac;padding-left:12px}.scrollable .timeline>*:first-child{border-left:1px solid #acacac}.scrollable .timeline>*:last-child{border-right:1px solid #acacac}.scrollable .project:has(+.subrow)>*{border-bottom-left-radius:0;border-bottom-right-radius:0}.scrollable::-webkit-scrollbar{width:0;height:0}.project{background:var(--kup-background-color, #ffffff);border:1px solid var(--kup-border-color, #acacac);border-radius:4px;box-sizing:border-box;color:var(--kup-text-color, #595959);cursor:pointer;display:grid;font-weight:400;grid-template-columns:var(--grid-project-columns, 1fr 1fr 1fr);place-items:center}.project>*{font-size:14px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.project .main{font-weight:700;width:100%;padding-left:4px}.subrow{cursor:pointer;display:grid;border-width:1px;border-style:solid;border-color:#acacac;border-bottom-left-radius:4px;border-bottom-right-radius:4px;box-sizing:border-box;grid-template-columns:var(--grid-fasi-columns, 1fr 1fr 1fr);place-items:center;background:#ffffff;color:#595959;font-weight:400}.subrow>*{font-size:12px;line-height:14px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.subrow:has(+.subrow),.project:has(+.subrow){border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important}.timeline{cursor:pointer;display:grid;border-width:1px;border-style:solid;border-color:#cbcbcb;border-radius:4px;grid-template-columns:var(--grid-fasi-columns, 1fr 1fr 1fr);place-items:center;background:#fff;color:#595959;font-weight:400;box-sizing:border-box}.timeline>*{font-size:14px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.timeline .main{font-weight:700;width:100%;padding-left:4px}";
30
30
  const KupCustomTaskListTableStyle0 = ganttTableModuleCss;
31
31
 
32
32
  const KupCustomTaskListTable = class {
@@ -38,15 +38,37 @@ const KupCustomTaskListTable = class {
38
38
  this.rowWidth = '';
39
39
  this.fontFamily = '';
40
40
  this.fontSize = '';
41
+ this.scrollableTaskList = undefined;
42
+ this.taskListScrollX = undefined;
41
43
  this.setSelectedTask = undefined;
42
44
  this.onclickTaskList = undefined;
43
45
  this.ondblclickTaskList = undefined;
44
46
  this.oncontextmenuTaskList = undefined;
47
+ this.ontaskListScrollWidth = undefined;
48
+ }
49
+ componentDidLoad() {
50
+ var _a;
51
+ this.ontaskListScrollWidth((_a = this.projectWrapperRef) === null || _a === void 0 ? void 0 : _a.clientWidth);
52
+ }
53
+ componentDidUpdate() {
54
+ var _a;
55
+ this.ontaskListScrollWidth((_a = this.projectWrapperRef) === null || _a === void 0 ? void 0 : _a.clientWidth);
56
+ }
57
+ updateTaskListScroll() {
58
+ this.projectWrapperRef &&
59
+ (this.projectWrapperRef.parentElement.scrollLeft = this.taskListScrollX);
45
60
  }
46
61
  render() {
47
62
  const kupDates = new KupDates();
48
- return (h("div", { key: 'aa6299da80dde8682f3fe8c1a8e244d6c15e5c5c', class: "container" }, this.tasks.map((task) => {
49
- var _a, _b, _c;
63
+ const scrollableStyle = {};
64
+ if (this.scrollableTaskList) {
65
+ scrollableStyle['width'] = this.rowWidth;
66
+ }
67
+ const spansToShow = this.tasks.reduce((prev, curr) => {
68
+ return prev.valuesToShow.length > curr.valuesToShow.length ? prev : curr;
69
+ }).valuesToShow.length + 1;
70
+ return (h("div", { class: `container ${this.scrollableTaskList ? 'scrollable' : ''}`, style: scrollableStyle }, h("div", { class: "project-wrapper", ref: (el) => (this.projectWrapperRef = el) }, this.tasks.map((task) => {
71
+ var _a, _b, _c, _d;
50
72
  return (h(Fragment, null, task.type === 'project' ? (h("div", { class: "project", style: {
51
73
  height: `${this.rowHeight}px`,
52
74
  width: this.rowWidth,
@@ -63,11 +85,15 @@ const KupCustomTaskListTable = class {
63
85
  e.preventDefault();
64
86
  this.setSelectedTask(task.id);
65
87
  this.oncontextmenuTaskList(e, task.id);
66
- } }, (_a = task.valuesToShow) === null || _a === void 0 ? void 0 : _a.map((v, index) => (h("span", { class: index === 0 ? 'main' : undefined, title: v.length > 10 ? v : undefined, key: `task_${task.id}_valuesToShow_${index}` }, v === '#START#'
67
- ? kupDates.formatToLocaleSimple(task.start)
68
- : v === '#END#'
69
- ? kupDates.formatToLocaleSimple(task.end)
70
- : v))))) : task.type === 'task' ? (h("div", { class: "subrow", style: {
88
+ } }, (_a = task.valuesToShow) === null || _a === void 0 ? void 0 :
89
+ _a.map((v, index) => (h("span", { class: index === 0 ? 'main' : undefined, title: v.length > 10 ? v : undefined, key: `task_${task.id}_valuesToShow_${index}` }, v === '#START#'
90
+ ? kupDates.formatToLocaleSimple(task.start)
91
+ : v === '#END#'
92
+ ? kupDates.formatToLocaleSimple(task.end)
93
+ : v))), this.scrollableTaskList && spansToShow > task.valuesToShow.length && ((() => {
94
+ const spansToIterate = createArrayFromNum(spansToShow - task.valuesToShow.length);
95
+ return (spansToIterate.map((element) => (h("span", { key: element }))));
96
+ })()))) : task.type === 'task' ? (h("div", { class: "subrow", style: {
71
97
  height: `${this.rowHeight}px`,
72
98
  width: this.rowWidth,
73
99
  fontFamily: this.fontFamily,
@@ -83,16 +109,26 @@ const KupCustomTaskListTable = class {
83
109
  e.preventDefault();
84
110
  this.setSelectedTask(task.id);
85
111
  this.oncontextmenuTaskList(e, task.id);
112
+ } }, this.scrollableTaskList ? (h("div", { style: {
113
+ textAlign: 'end',
86
114
  } }, h("span", { key: `phase_${task.id}_valuesToShow_color`, style: {
87
115
  height: '16px',
88
116
  width: '16px',
117
+ display: 'inline-block',
89
118
  backgroundColor: (_b = task.styles) === null || _b === void 0 ? void 0 : _b.backgroundColor,
90
- } }), (_c = task.valuesToShow) === null || _c === void 0 ? void 0 :
91
- _c.map((v, index) => (h("span", { class: index === 0 ? 'main' : undefined, title: v.length > 10 ? v : undefined, key: `phase_${task.id}_valuesToShow_${index}` }, v === '#START#'
119
+ } }))) : (h("span", { key: `phase_${task.id}_valuesToShow_color`, style: {
120
+ height: '16px',
121
+ width: '16px',
122
+ backgroundColor: (_c = task.styles) === null || _c === void 0 ? void 0 : _c.backgroundColor,
123
+ } })), (_d = task.valuesToShow) === null || _d === void 0 ? void 0 :
124
+ _d.map((v, index) => (h("span", { class: index === 0 ? 'main' : undefined, title: v.length > 10 ? v : undefined, key: `phase_${task.id}_valuesToShow_${index}` }, v === '#START#'
92
125
  ? kupDates.formatToLocaleSimple(task.start)
93
126
  : v === '#END#'
94
127
  ? kupDates.formatToLocaleSimple(task.end)
95
- : v))))) : ((() => {
128
+ : v))), this.scrollableTaskList && spansToShow > task.valuesToShow.length && ((() => {
129
+ const spansToIterate = createArrayFromNum(spansToShow - task.valuesToShow.length - 1);
130
+ return (spansToIterate.map((element) => (h("span", { key: element }))));
131
+ })()))) : ((() => {
96
132
  var _a;
97
133
  let str = '';
98
134
  for (let i = 0; i < task.valuesToShow.length; i++) {
@@ -114,8 +150,11 @@ const KupCustomTaskListTable = class {
114
150
  ? v
115
151
  : undefined, key: `detail_${task.id}_valuesToShow_${index}` }, v)))));
116
152
  })())));
117
- })));
153
+ }))));
118
154
  }
155
+ static get watchers() { return {
156
+ "taskListScrollX": ["updateTaskListScroll"]
157
+ }; }
119
158
  };
120
159
  KupCustomTaskListTable.style = KupCustomTaskListTableStyle0;
121
160
 
@@ -300,8 +339,38 @@ const KupGanttCalendar = class {
300
339
  }
301
340
  return [topValues, bottomValues];
302
341
  }
342
+ getCalendarValuesForHour() {
343
+ const topValues = [];
344
+ const bottomValues = [];
345
+ const topDefaultHeight = this.headerHeight * 0.5;
346
+ const dates = this.dateSetup.dates;
347
+ for (let i = 0; i < dates.length; i++) {
348
+ const date = dates[i];
349
+ const bottomValue = getCachedDateTimeFormat(this.locale, {
350
+ hour: 'numeric',
351
+ }).format(date);
352
+ bottomValues.push(h("text", { key: date.getTime(), y: this.headerHeight * 0.8, x: this.columnWidth * (i + +this.rtl), class: "calendarBottomText" }, bottomValue));
353
+ if (i !== 0 && date.getDate() !== dates[i - 1].getDate()) {
354
+ const displayDate = dates[i - 1];
355
+ const topValue = `${getLocalDayOfWeek(displayDate, this.locale, 'long')}, ${displayDate.getDate()} ${getLocaleMonth(displayDate, this.locale)}`;
356
+ const topPosition = (date.getHours() - 24) / 2;
357
+ topValues.push({
358
+ key: topValue + date.getFullYear(),
359
+ value: topValue,
360
+ x1Line: this.columnWidth * i,
361
+ y1Line: 0,
362
+ y2Line: topDefaultHeight,
363
+ xText: this.columnWidth * (i + topPosition),
364
+ yText: topDefaultHeight * 0.9,
365
+ });
366
+ }
367
+ }
368
+ return [topValues, bottomValues];
369
+ }
303
370
  getTopAndBottomValues() {
304
371
  switch (this.dateSetup.viewMode) {
372
+ case 'hour':
373
+ return this.getCalendarValuesForHour();
305
374
  case 'day':
306
375
  return this.getCalendarValuesForDay();
307
376
  case 'week':
@@ -316,7 +385,7 @@ const KupGanttCalendar = class {
316
385
  this.simplifiedHeader =
317
386
  this.singleLineHeader && this.dateSetup.viewMode !== 'year';
318
387
  const [topValues, bottomValues] = this.getTopAndBottomValues();
319
- return (h("svg", { key: '171a0a61231f0c68b1df22766f06d5c6a6ee6488', xmlns: "http://www.w3.org/2000/svg", width: this.svgWidth, height: this.headerHeight }, h("g", { key: 'bb77cf35555bfe7e4e9dffe476de550b06253235', class: "calendar", "font-size": this.fontSize, "font-family": this.fontFamily }, h("rect", { key: 'b99cc1d617b4ad05fa319423ac985a078d53794d', x: 0, y: 0, width: this.columnWidth * this.dateSetup.dates.length, height: this.headerHeight, class: "calendarHeader" }), this.simplifiedHeader ? null : bottomValues, this.simplifiedHeader
388
+ return (h("svg", { key: '7a19cec75e555a4fd92acca667c464df43370468', xmlns: "http://www.w3.org/2000/svg", width: this.svgWidth, height: this.headerHeight }, h("g", { key: 'a7e72bfedfefae5813d339b99d78bf7138354ff5', class: "calendar", "font-size": this.fontSize, "font-family": this.fontFamily }, h("rect", { key: '34f50e350bd20b69fe0a7bfc4744b27dfeb27a12', x: 0, y: 0, width: this.columnWidth * this.dateSetup.dates.length, height: this.headerHeight, class: "calendarHeader" }), this.simplifiedHeader ? null : bottomValues, this.simplifiedHeader
320
389
  ? topValues.map((topValue) => (h("g", { class: "calendarTop" }, h("line", { x1: topValue.x1Line, y1: topValue.y2Line * 2, x2: topValue.x1Line, y2: topValue.y2Line, class: "calendarTopTick", key: topValue.value + 'line' }), h("text", { key: topValue.value + 'text', y: topValue.yText, x: topValue.xText, class: "calendarTopText" }, topValue.value))))
321
390
  : topValues.map((topValue) => (h("g", { class: "calendarTop" }, h("line", { x1: topValue.x1Line, y1: topValue.y1Line, x2: topValue.x1Line, y2: topValue.y2Line, class: "calendarTopTick", key: topValue.value + 'line' }), h("text", { key: topValue.value + 'text', y: topValue.yText, x: topValue.xText, class: "calendarTopText" }, topValue.value)))), this.currentDateIndicator && (
322
391
  // current date indicator
@@ -866,7 +935,7 @@ var hexToCssFilter = {exports: {}};
866
935
  })));
867
936
  }(hexToCssFilter, hexToCssFilter.exports));
868
937
 
869
- const kupGridRendererCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.gridRow{fill:#fff}.gridRowLine{stroke:transparent}.gridTick{stroke:#e6e4e4}.barHandle{fill:#ddd;cursor:ew-resize;opacity:0;visibility:hidden}.barBackground{user-select:none;stroke-width:0}.barWrapper{cursor:pointer;outline:none}.task-wrapper{outline:none !important}.barWrapper:hover .barHandle{visibility:visible;opacity:1}.barLabel{fill:#fff;text-anchor:middle;font-weight:lighter;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.barLabelOutside{fill:#555;text-anchor:start;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}";
938
+ const kupGridRendererCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.gridRow{fill:#fff}.gridRowLine{stroke:transparent}.gridTick{stroke:#e6e4e4}.barHandle{fill:#ddd;cursor:ew-resize;opacity:0;visibility:hidden}.barBackground{user-select:none;stroke-width:0}.barWrapper{cursor:pointer;outline:none}.task-wrapper{outline:none !important}.barWrapper:hover .barHandle{visibility:visible;opacity:1}.barLabel{fill:#fff;text-anchor:middle;font-weight:lighter;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.barLabelOutside{fill:#555;text-anchor:start;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.ghost-preview{opacity:0.5}";
870
939
  const KupGridRendererStyle0 = kupGridRendererCss;
871
940
 
872
941
  const KupGridRenderer = class {
@@ -902,13 +971,18 @@ const KupGridRenderer = class {
902
971
  this.setSelectedTask = undefined;
903
972
  this.eventStart = undefined;
904
973
  this.eMouseDown = undefined;
974
+ this.phaseDrop = undefined;
905
975
  this.setGanttEvent = undefined;
976
+ this.phaseDragScroll = undefined;
906
977
  this.xStep = 0;
907
978
  this.initEventX1Delta = 0;
908
979
  this.initEventXClick = 0;
909
980
  this.isMoving = false;
910
981
  this.point = undefined;
911
982
  this.svg = undefined;
983
+ this.currentTarget = undefined;
984
+ this.dragScrollInterval = undefined;
985
+ this.dropZoneTask = undefined;
912
986
  }
913
987
  //---- Lifecycle hooks ----
914
988
  componentDidLoad() {
@@ -940,14 +1014,22 @@ const KupGridRenderer = class {
940
1014
  return;
941
1015
  event.preventDefault();
942
1016
  this.point.x = event.clientX;
1017
+ this.point.y = event.clientY;
943
1018
  const cursor = this.point.matrixTransform((_b = (_a = this.svg) === null || _a === void 0 ? void 0 : _a.getScreenCTM()) === null || _b === void 0 ? void 0 : _b.inverse());
944
- const { isChanged, changedTask } = handleTaskBySVGMouseEvent(cursor.x, this.ganttEvent.action, this.ganttEvent.changedTask, this.xStep, this.timeStep, this.initEventX1Delta, this.rtl);
1019
+ const { isChanged, changedTask } = handleTaskBySVGMouseEvent(cursor.x, this.ganttEvent.action, this.ganttEvent.changedTask, this.xStep, this.timeStep, this.initEventX1Delta, this.rtl, cursor.y);
1020
+ if (this.currentTarget) {
1021
+ this.addGhostPreview(event);
1022
+ this.handleAutoScrollForPhaseDrag(event);
1023
+ this.addDropzoneVisualization();
1024
+ }
945
1025
  if (isChanged) {
946
1026
  this.setGanttEvent(Object.assign(Object.assign({}, this.ganttEvent), { action: this.ganttEvent.action, changedTask }));
947
1027
  }
948
1028
  };
949
1029
  const handleMouseUp = async (event) => {
950
- var _a, _b;
1030
+ var _a, _b, _c;
1031
+ clearInterval(this.dragScrollInterval);
1032
+ this.resetDropzoneVisualization();
951
1033
  const { action, originalSelectedTask, changedTask } = this.ganttEvent;
952
1034
  if (!changedTask ||
953
1035
  !this.point ||
@@ -957,18 +1039,33 @@ const KupGridRenderer = class {
957
1039
  event.preventDefault();
958
1040
  this.point.x = event.clientX;
959
1041
  const cursor = this.point.matrixTransform((_b = (_a = this.svg) === null || _a === void 0 ? void 0 : _a.getScreenCTM()) === null || _b === void 0 ? void 0 : _b.inverse());
960
- const { changedTask: newChangedTask } = handleTaskBySVGMouseEvent(cursor.x, action, changedTask, this.xStep, this.timeStep, this.initEventX1Delta, this.rtl);
1042
+ this.currentTarget = null;
1043
+ const { changedTask: newChangedTask } = handleTaskBySVGMouseEvent(cursor.x, action, changedTask, this.xStep, this.timeStep, this.initEventX1Delta, this.rtl, cursor.y);
961
1044
  const isNotLikeOriginal = originalSelectedTask.start !== newChangedTask.start ||
962
1045
  originalSelectedTask.end !== newChangedTask.end ||
963
- originalSelectedTask.progress !== newChangedTask.progress;
1046
+ originalSelectedTask.progress !== newChangedTask.progress ||
1047
+ originalSelectedTask.y !== newChangedTask.y;
964
1048
  // remove listeners
965
1049
  this.svg.removeEventListener('mousemove', handleMouseMove);
966
1050
  this.svg.removeEventListener('mouseup', handleMouseUp);
1051
+ (_c = this.svg.querySelector('.ghost-preview')) === null || _c === void 0 ? void 0 : _c.remove();
967
1052
  this.setGanttEvent({ action: '' });
968
1053
  this.isMoving = false;
969
1054
  // custom operation start
970
1055
  let operationSuccess = true;
971
- if ((action === 'move' || action === 'end' || action === 'start') &&
1056
+ let droppedOn = undefined;
1057
+ let originalTaskData = undefined;
1058
+ if (action === 'move' &&
1059
+ isNotLikeOriginal &&
1060
+ newChangedTask.type === 'task') {
1061
+ droppedOn = this.tasks.find((task) => this.isPhaseWithinTaskArea(changedTask, task) &&
1062
+ task.type === 'project');
1063
+ originalTaskData = this.tasks.find((task) => task.id == originalSelectedTask.id.split('_').shift());
1064
+ }
1065
+ if ((droppedOn === null || droppedOn === void 0 ? void 0 : droppedOn.id) && (originalTaskData === null || originalTaskData === void 0 ? void 0 : originalTaskData.id) !== (droppedOn === null || droppedOn === void 0 ? void 0 : droppedOn.id)) {
1066
+ this.phaseDrop(originalSelectedTask, originalTaskData, newChangedTask, droppedOn);
1067
+ }
1068
+ else if ((action === 'move' || action === 'end' || action === 'start') &&
972
1069
  this.dateChange &&
973
1070
  isNotLikeOriginal) {
974
1071
  try {
@@ -1014,6 +1111,110 @@ const KupGridRenderer = class {
1014
1111
  }
1015
1112
  return this.initEventXClick !== event.clientX;
1016
1113
  }
1114
+ addGhostPreview(event) {
1115
+ var _a;
1116
+ (_a = this.svg.querySelector('.ghost-preview')) === null || _a === void 0 ? void 0 : _a.remove();
1117
+ const mockEvent = Object.assign(Object.assign({}, event), { dataTransfer: new DataTransfer() });
1118
+ const dragEle = this.currentTarget;
1119
+ dragEle.classList.add('ghost-preview');
1120
+ this.svg.appendChild(dragEle.cloneNode(true));
1121
+ const nodeRect = dragEle.getBoundingClientRect();
1122
+ mockEvent.dataTransfer.setDragImage(dragEle, mockEvent.clientX - nodeRect.left, mockEvent.clientY - nodeRect.top);
1123
+ }
1124
+ handleAutoScrollForPhaseDrag(event) {
1125
+ var _a, _b;
1126
+ const list = (_b = (_a = this.svg) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.parentElement;
1127
+ if (!list)
1128
+ return;
1129
+ clearInterval(this.dragScrollInterval);
1130
+ const isOverFlowing = list.clientHeight < list.scrollHeight;
1131
+ if (isOverFlowing) {
1132
+ // if container is overflowing we need to scroll within the container
1133
+ const containerRect = list.getBoundingClientRect();
1134
+ const offsetY = event.clientY - containerRect.top;
1135
+ const diff = 5;
1136
+ if (offsetY - 20 < diff) {
1137
+ this.dragScrollInterval = setInterval(() => {
1138
+ this.phaseDragScroll((list.scrollTop -= diff));
1139
+ }, 1);
1140
+ }
1141
+ else if (offsetY + 20 > containerRect.height - diff) {
1142
+ this.dragScrollInterval = setInterval(() => {
1143
+ this.phaseDragScroll((list.scrollTop += diff));
1144
+ }, 1);
1145
+ }
1146
+ }
1147
+ else {
1148
+ // else we need to scroll the window when viewport exceeds
1149
+ const scrollOffset = 20;
1150
+ const windowHeight = window.innerHeight;
1151
+ const y = event.clientY;
1152
+ if (y < scrollOffset) {
1153
+ window.scrollBy(0, -scrollOffset);
1154
+ }
1155
+ else if (y > windowHeight - scrollOffset) {
1156
+ window.scrollBy(0, scrollOffset);
1157
+ }
1158
+ }
1159
+ }
1160
+ isPhaseWithinTaskArea(phase, task) {
1161
+ return (phase.y + phase.height >= task.ySecondary &&
1162
+ phase.y <= task.ySecondary + task.height &&
1163
+ phase.x2 >= task.x1 &&
1164
+ phase.x1 <= task.x2);
1165
+ }
1166
+ addDropzoneVisualization() {
1167
+ var _a;
1168
+ this.resetDropzoneVisualization();
1169
+ // find the tasks where drop is allowed, includes all projects except parent project also includes current phase
1170
+ const dropAllowedOn = this.tasks.filter((task) => {
1171
+ var _a, _b, _c;
1172
+ return task.type == 'project' &&
1173
+ ((_c = (_b = (_a = this.ganttEvent.originalSelectedTask) === null || _a === void 0 ? void 0 : _a.id) === null || _b === void 0 ? void 0 : _b.split('_')) === null || _c === void 0 ? void 0 : _c.shift()) !=
1174
+ task.id;
1175
+ });
1176
+ const changedTask = this.ganttEvent.changedTask;
1177
+ // to determine whether the phase is in some another project y and x area
1178
+ this.dropZoneTask = dropAllowedOn.find((task) => this.isPhaseWithinTaskArea(changedTask, task));
1179
+ if ((_a = this.dropZoneTask) === null || _a === void 0 ? void 0 : _a.ySecondary) {
1180
+ const rects = this.getBarRectsForDropzoneVisualization();
1181
+ rects.forEach((rect) => {
1182
+ rect.setAttribute('fill', defaultStylingOptions.barDropZoneColor);
1183
+ });
1184
+ }
1185
+ }
1186
+ resetDropzoneVisualization() {
1187
+ if (!this.dropZoneTask)
1188
+ return;
1189
+ const rects = this.getBarRectsForDropzoneVisualization();
1190
+ const isSelected = !!this.selectedTask &&
1191
+ this.dropZoneTask.id === this.selectedTask.id;
1192
+ rects.forEach((rect) => {
1193
+ rect.setAttribute('fill', this.getBarColor(isSelected, this.dropZoneTask.styles));
1194
+ });
1195
+ }
1196
+ getBarRectsForDropzoneVisualization() {
1197
+ let rects;
1198
+ if (!this.showSecondaryDates) {
1199
+ rects = this.svg.querySelectorAll(`.barWrapper[data-type="${this.dropZoneTask.type}"] rect[y='${this.dropZoneTask.ySecondary}']`);
1200
+ }
1201
+ else {
1202
+ const rect = this.svg.querySelector(`.barWrapper[data-type="${this.dropZoneTask.type}"] rect[y='${this.dropZoneTask.ySecondary}']`);
1203
+ const siblings = [rect];
1204
+ let nextSibling = rect.nextElementSibling;
1205
+ while (nextSibling !== null) {
1206
+ siblings.push(nextSibling);
1207
+ nextSibling = nextSibling.nextElementSibling;
1208
+ }
1209
+ let prevSibling = rect.previousElementSibling;
1210
+ while (prevSibling !== null) {
1211
+ siblings.unshift(prevSibling);
1212
+ prevSibling = prevSibling.previousElementSibling;
1213
+ }
1214
+ rects = siblings;
1215
+ }
1216
+ return rects;
1217
+ }
1017
1218
  handleBarEventStart(action, task, event) {
1018
1219
  var _a;
1019
1220
  if (!event) {
@@ -1069,7 +1270,14 @@ const KupGridRenderer = class {
1069
1270
  return;
1070
1271
  this.point.x = event.clientX;
1071
1272
  const cursor = this.point.matrixTransform((_a = this.svg.getScreenCTM()) === null || _a === void 0 ? void 0 : _a.inverse());
1273
+ if (task.type === 'task') {
1274
+ this.currentTarget = event.currentTarget.cloneNode(true);
1275
+ }
1276
+ else {
1277
+ this.currentTarget = null;
1278
+ }
1072
1279
  this.initEventX1Delta = cursor.x - task.x1;
1280
+ this.point.y = event.clientY;
1073
1281
  this.initEventXClick = event.clientX;
1074
1282
  this.setGanttEvent({
1075
1283
  action,
@@ -1091,7 +1299,7 @@ const KupGridRenderer = class {
1091
1299
  }
1092
1300
  renderKupBar(task, isSelected, isDateResizable, isProgressChangeable) {
1093
1301
  var _a, _b, _c;
1094
- return (h("g", { class: "barWrapper", "tab-index": 0 }, this.renderKupBarDisplay(task.x1, task.y, task.x2 - task.x1, task.height, task.progressX, task.progressWidth, task.barCornerRadius, task.styles, isSelected, !this.readOnly && !!this.dateChange && !task.isDisabled, task, task.x1secondary, ((_a = task.x2secondary) !== null && _a !== void 0 ? _a : 0) - ((_b = task.x1secondary) !== null && _b !== void 0 ? _b : 0)), h("g", { class: "handleGroup" }, isDateResizable && (h("g", null, this.renderKupBarDateHandle(task.x1 + 1, task.y + 1, task.handleWidth, task.height - 2, task.barCornerRadius, task, 'start'), this.renderKupBarDateHandle(task.x2 - task.handleWidth - 1, task.y + 1, task.handleWidth, task.height - 2, task.barCornerRadius, task, 'end'))), isProgressChangeable && (h("polygon", { class: "barHandle", points: this.calculateProgressPoint(task), onMouseDown: (e) => {
1302
+ return (h("g", { class: "barWrapper", "tab-index": 0, "data-type": task.type }, this.renderKupBarDisplay(task.x1, task.y, task.x2 - task.x1, task.height, task.progressX, task.progressWidth, task.barCornerRadius, task.styles, isSelected, !this.readOnly && !!this.dateChange && !task.isDisabled, task, task.x1secondary, ((_a = task.x2secondary) !== null && _a !== void 0 ? _a : 0) - ((_b = task.x1secondary) !== null && _b !== void 0 ? _b : 0), task.ySecondary), h("g", { class: "handleGroup" }, isDateResizable && (h("g", null, this.renderKupBarDateHandle(task.x1 + 1, task.y + 1, task.handleWidth, task.height - 2, task.barCornerRadius, task, 'start'), this.renderKupBarDateHandle(task.x2 - task.handleWidth - 1, task.y + 1, task.handleWidth, task.height - 2, task.barCornerRadius, task, 'end'))), isProgressChangeable && (h("polygon", { class: "barHandle", points: this.calculateProgressPoint(task), onMouseDown: (e) => {
1095
1303
  this.handleBarEventStart('progress', task, e);
1096
1304
  } }))), task.icon &&
1097
1305
  task.icon.url &&
@@ -1106,11 +1314,11 @@ const KupGridRenderer = class {
1106
1314
  (this.showSecondaryDates ? task.height / 2 : 0),
1107
1315
  })));
1108
1316
  }
1109
- renderKupBarDisplay(x, y, width, height, progressX, progressWidth, barCornerRadius, styles, isSelected, isDateMovable, task, xSecondary, widthSecondary) {
1317
+ renderKupBarDisplay(x, y, width, height, progressX, progressWidth, barCornerRadius, styles, isSelected, isDateMovable, task, xSecondary, widthSecondary, ySecondary) {
1110
1318
  if (this.showSecondaryDates && typeof xSecondary !== 'undefined') {
1111
1319
  const halfHeight = height / 2;
1112
1320
  return (h("g", { onMouseDown: (e) => isDateMovable &&
1113
- this.handleBarEventStart('move', task, e) }, h("rect", { key: "top semi-transparent bar", x: xSecondary, width: widthSecondary, y: y, height: halfHeight, ry: barCornerRadius, rx: barCornerRadius, fill: this.getBarColor(isSelected, styles), opacity: 0.5, class: 'barBackground' }), h("rect", { key: "main bar", x: x, width: width, y: y + halfHeight, height: halfHeight, ry: barCornerRadius, rx: barCornerRadius, fill: this.getBarColor(isSelected, styles), class: 'barBackground' }), h("rect", { key: "progress bar", x: progressX, width: progressWidth, y: y + halfHeight, height: halfHeight, ry: barCornerRadius, rx: barCornerRadius, fill: this.getProcessColor(isSelected, styles) })));
1321
+ this.handleBarEventStart('move', task, e) }, h("rect", { key: "top semi-transparent bar", x: xSecondary, width: widthSecondary, y: ySecondary !== null && ySecondary !== void 0 ? ySecondary : y, height: halfHeight, ry: barCornerRadius, rx: barCornerRadius, fill: this.getBarColor(isSelected, styles), opacity: 0.5, class: 'barBackground' }), h("rect", { key: "main bar", x: x, width: width, y: y + halfHeight, height: halfHeight, ry: barCornerRadius, rx: barCornerRadius, fill: this.getBarColor(isSelected, styles), class: 'barBackground' }), h("rect", { key: "progress bar", x: progressX, width: progressWidth, y: y + halfHeight, height: halfHeight, ry: barCornerRadius, rx: barCornerRadius, fill: this.getProcessColor(isSelected, styles) })));
1114
1322
  }
1115
1323
  return (h("g", { onMouseDown: (e) => {
1116
1324
  isDateMovable && this.handleBarEventStart('move', task, e);
@@ -1213,29 +1421,37 @@ const KupGridRenderer = class {
1213
1421
  rowLines.push(h("line", { key: 'RowLine' + task.id, x1: 0, y1: y + this.rowHeight, x2: this.gridProps.svgWidth, y2: y + this.rowHeight, class: "gridRowLine" }));
1214
1422
  y += this.rowHeight;
1215
1423
  }
1216
- const now = new Date();
1424
+ // const now = new Date();
1217
1425
  let tickX = 0;
1218
1426
  const ticks = [];
1219
1427
  for (let i = 0; i < this.dates.length; i++) {
1220
1428
  const date = this.dates[i];
1221
1429
  ticks.push(h("line", { key: date.getTime(), x1: tickX, y1: 0, x2: tickX, y2: y, class: "gridTick" }));
1222
- if ((i + 1 !== this.dates.length &&
1223
- date.getTime() < now.getTime() &&
1224
- this.dates[i + 1].getTime() >= now.getTime()) ||
1225
- // if current date is last
1226
- (i !== 0 &&
1227
- i + 1 === this.dates.length &&
1228
- date.getTime() < now.getTime() &&
1229
- addToDate(date, date.getTime() - this.dates[i - 1].getTime(), 'millisecond').getTime() >= now.getTime())) ;
1430
+ // if (
1431
+ // (i + 1 !== this.dates.length &&
1432
+ // date.getTime() < now.getTime() &&
1433
+ // this.dates[i + 1].getTime() >= now.getTime()) ||
1434
+ // // if current date is last
1435
+ // (i !== 0 &&
1436
+ // i + 1 === this.dates.length &&
1437
+ // date.getTime() < now.getTime() &&
1438
+ // addToDate(
1439
+ // date,
1440
+ // date.getTime() - this.dates[i - 1].getTime(),
1441
+ // 'millisecond'
1442
+ // ).getTime() >= now.getTime())
1443
+ // ) {
1444
+ // // Add custom logic here if needed
1445
+ // }
1230
1446
  tickX += this.columnWidth;
1231
1447
  }
1232
- return (h("svg", { key: '453f06f9849218010409d444adb13500f22b6cfa', xmlns: "http://www.w3.org/2000/svg", width: this.gridProps.svgWidth, height: `${this.rowHeight * this.tasks.length}px`, "font-family": this.fontFamily, ref: (el) => (this.svg = el) }, h("g", { key: 'a671a9e0c1c44ef1b3d86d679d68dda934246e59', class: "grid" }, h("g", { key: '3741633c839e757fa4d4cc0999d9e34ad5284173', class: "rows" }, gridRows), h("g", { key: '34bdba123cff205d0769e6492055a72f51b85bd7', class: "rowLines" }, rowLines), h("g", { key: '0d2b321b587e8cc4a65ac356ea1a5903c1fa61f6', class: "ticks" }, ticks)), h("g", { key: '891e706099f2c83dcabf5a0bb62a2c8139c10ac1', class: "content" }, this.currentDateIndicator && (h("rect", { fill: this.currentDateIndicator.color, x: this.currentDateIndicator.x + 1.5, y: "0", width: "2", height: "100%" })), this.projection && (h("rect", { fill: this.projection.color, x: this.projection.x0, y: "0", width: this.projection.xf - this.projection.x0, height: "100%", "fill-opacity": "0.35" })), h("g", { key: '6e36b71942a8619b800210d189629c0856cb57f6', class: "arrows", fill: this.arrowColor, stroke: this.arrowColor }, this.tasks.map((task) => {
1448
+ return (h("svg", { key: '95b5c0ebccd9d472507328baa068f9d75daa4a6e', xmlns: "http://www.w3.org/2000/svg", width: this.gridProps.svgWidth, height: `${this.rowHeight * this.tasks.length}px`, "font-family": this.fontFamily, ref: (el) => (this.svg = el) }, h("g", { key: 'bd6598993c35c69c6aadca0d41c50b028a283b70', class: "grid" }, h("g", { key: 'c52a1de5fa57cc5fdd4b80ff84b3a09b13e3b199', class: "rows" }, gridRows), h("g", { key: 'd8747275b307b05c7a5c4ab1ab3efa5956c95f25', class: "rowLines" }, rowLines), h("g", { key: '000d0b2ec6253da9d23096a7cfa3564a2a3a173d', class: "ticks" }, ticks)), h("g", { key: 'fc0d6cc1b4f60e84b77082b7c47d68eb364fbb7b', class: "content" }, this.currentDateIndicator && (h("rect", { fill: this.currentDateIndicator.color, x: this.currentDateIndicator.x + 1.5, y: "0", width: "2", height: "100%" })), this.projection && (h("rect", { fill: this.projection.color, x: this.projection.x0, y: "0", width: this.projection.xf - this.projection.x0, height: "100%", "fill-opacity": "0.35" })), h("g", { key: '04162e3432a56f08c1ea29e69503fe97e1fb84d2', class: "arrows", fill: this.arrowColor, stroke: this.arrowColor }, this.tasks.map((task) => {
1233
1449
  return task.barChildren.map((child) => {
1234
1450
  if (task.type !== 'timeline') {
1235
1451
  this.renderKupArrow(task, child);
1236
1452
  }
1237
1453
  });
1238
- })), h("g", { key: '38643adf911e2b0ff25b0ffe4f8c8c645171c55d', class: "bar", "font-family": this.fontFamily, "font-size": this.fontSize }, this.tasks.map((task) => {
1454
+ })), h("g", { key: '4e5888f0a6335480ee0f32df3844982e355f4e39', class: "bar", "font-family": this.fontFamily, "font-size": this.fontSize }, this.tasks.map((task) => {
1239
1455
  const forbidResize = task.type === 'project';
1240
1456
  return (h("g", { onKeyDown: (e) => {
1241
1457
  switch (e.key) {
@@ -1295,7 +1511,7 @@ const KupGridRenderer = class {
1295
1511
  return this.renderKupBar(task, props.isSelected, isDateResizable, isProgressChangeable);
1296
1512
  }
1297
1513
  })()));
1298
- })))));
1514
+ }), this.currentTarget && this.ganttEvent.changedTask && (h("g", { class: "task-wrapper" }, this.renderKupBar(this.ganttEvent.changedTask, false, false, false)))))));
1299
1515
  }
1300
1516
  static get watchers() { return {
1301
1517
  "columnWidth": ["updateXStep"],
@@ -1,14 +1,14 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-460631fd.js';
2
- import { F as FButton } from './f-button-45d690a5.js';
2
+ import { F as FButton } from './f-button-d6dbcfd6.js';
3
3
  import { F as FCheckbox } from './f-checkbox-ddb6234e.js';
4
- import { F as FTextField } from './f-text-field-b5fcb598.js';
4
+ import { F as FTextField } from './f-text-field-d364ffd2.js';
5
5
  import { F as FTextFieldMDC } from './f-text-field-mdc-c88bf688.js';
6
- import { k as kupManagerInstance, g as getProps, s as setProps, ah as KupLanguageDashboard, l as KupLanguageGeneric, Q as KupDragEffect, d as KupDebugCategory } from './kup-manager-cdb4f21a.js';
6
+ import { k as kupManagerInstance, g as getProps, s as setProps, ah as KupLanguageDashboard, l as KupLanguageGeneric, Q as KupDragEffect, d as KupDebugCategory } from './kup-manager-a316a70e.js';
7
7
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
8
8
  import './f-button-declarations-9bdc6f26.js';
9
- import './f-image-8b382cc5.js';
9
+ import './f-image-a67229e5.js';
10
10
  import './component-879e99bf.js';
11
- import './kup-dates-4ad48be7.js';
11
+ import './kup-dates-26a56bf7.js';
12
12
 
13
13
  /**
14
14
  * Props of the kup-dashboard component.
@@ -4,6 +4,25 @@ function getDefaultExportFromCjs (x) {
4
4
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
5
5
  }
6
6
 
7
+ function getAugmentedNamespace(n) {
8
+ if (n.__esModule) return n;
9
+ var a = Object.defineProperty({}, '__esModule', {value: true});
10
+ Object.keys(n).forEach(function (k) {
11
+ var d = Object.getOwnPropertyDescriptor(n, k);
12
+ Object.defineProperty(a, k, d.get ? d : {
13
+ enumerable: true,
14
+ get: function () {
15
+ return n[k];
16
+ }
17
+ });
18
+ });
19
+ return a;
20
+ }
21
+
22
+ function commonjsRequire (path) {
23
+ throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
24
+ }
25
+
7
26
  /**
8
27
  * Normalization types.
9
28
  */
@@ -805,4 +824,4 @@ class KupDates {
805
824
  }
806
825
  }
807
826
 
808
- export { KupDatesFormats as K, KupDatesNormalize as a, KupDates as b, commonjsGlobal as c, KupDatesLocales as d, KupDateTimeFormatOptionsMonth as e, getDefaultExportFromCjs as g };
827
+ export { KupDatesFormats as K, KupDatesNormalize as a, KupDates as b, commonjsGlobal as c, KupDatesLocales as d, KupDateTimeFormatOptionsMonth as e, getAugmentedNamespace as f, getDefaultExportFromCjs as g, commonjsRequire as h };
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-460631fd.js';
2
- import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-cdb4f21a.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-a316a70e.js';
3
3
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
4
- import './kup-dates-4ad48be7.js';
4
+ import './kup-dates-26a56bf7.js';
5
5
 
6
6
  const drawerClass = 'drawer';
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement, g as getAssetPath } from './index-460631fd.js';
2
- import { k as kupManagerInstance, g as getProps, s as setProps, c as KupThemeColorValues, d as KupDebugCategory, u as getColumnByName, n as KupDataNewColumnTypes } from './kup-manager-cdb4f21a.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps, c as KupThemeColorValues, d as KupDebugCategory, u as getColumnByName, n as KupDataNewColumnTypes } from './kup-manager-a316a70e.js';
3
3
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
4
- import './kup-dates-4ad48be7.js';
4
+ import './kup-dates-26a56bf7.js';
5
5
 
6
6
  /*! *****************************************************************************
7
7
  Copyright (c) Microsoft Corporation.
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-460631fd.js';
2
- import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-cdb4f21a.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-a316a70e.js';
3
3
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
4
- import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './kup-dates-4ad48be7.js';
4
+ import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './kup-dates-26a56bf7.js';
5
5
 
6
6
  var toastuiEditor = {exports: {}};
7
7
 
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-460631fd.js';
2
- import { F as FButton } from './f-button-45d690a5.js';
2
+ import { F as FButton } from './f-button-d6dbcfd6.js';
3
3
  import { F as FButtonStyling } from './f-button-declarations-9bdc6f26.js';
4
- import { F as FImage } from './f-image-8b382cc5.js';
5
- import { k as kupManagerInstance, g as getProps, s as setProps, l as KupLanguageGeneric, M as KupPointerEventTypes } from './kup-manager-cdb4f21a.js';
4
+ import { F as FImage } from './f-image-a67229e5.js';
5
+ import { k as kupManagerInstance, g as getProps, s as setProps, l as KupLanguageGeneric, M as KupPointerEventTypes } from './kup-manager-a316a70e.js';
6
6
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
7
- import './kup-dates-4ad48be7.js';
7
+ import './kup-dates-26a56bf7.js';
8
8
 
9
9
  /**
10
10
  * Props of the kup-family-tree component.