@sme.up/ketchup 9.2.0 → 9.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (690) hide show
  1. package/dist/cjs/bar.helpers-f46a5a83.js +372 -0
  2. package/dist/cjs/f-button-4caf541a.js +105 -0
  3. package/dist/cjs/{f-button-declarations-3fd791a8.js → f-button-declarations-51ef6d9a.js} +5 -5
  4. package/dist/cjs/f-cell-979c26ea.js +670 -0
  5. package/dist/cjs/f-checkbox-41864e53.js +29 -0
  6. package/dist/cjs/f-chip-8957940b.js +133 -0
  7. package/dist/cjs/f-image-e16fe10d.js +115 -0
  8. package/dist/cjs/f-paginator-utils-f2dd0322.js +1577 -0
  9. package/dist/cjs/f-text-field-2fac8078.js +216 -0
  10. package/dist/cjs/{f-text-field-mdc-4fda9705.js → f-text-field-mdc-08a06162.js} +19 -19
  11. package/dist/cjs/{index-d8e5eb5f.js → index-8f2f4159.js} +27 -7
  12. package/dist/cjs/index.cjs.js +4 -3
  13. package/dist/cjs/ketchup.cjs.js +3 -3
  14. package/dist/cjs/kup-accordion.cjs.entry.js +182 -181
  15. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +14562 -14561
  16. package/dist/cjs/kup-box.cjs.entry.js +1231 -1230
  17. package/dist/cjs/kup-calendar.cjs.entry.js +376 -375
  18. package/dist/cjs/kup-card-list.cjs.entry.js +233 -232
  19. package/dist/cjs/kup-cell.cjs.entry.js +153 -152
  20. package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +1317 -0
  21. package/dist/cjs/kup-dashboard.cjs.entry.js +369 -368
  22. package/dist/cjs/kup-dates-0e59b05d.js +782 -0
  23. package/dist/cjs/kup-drawer.cjs.entry.js +122 -121
  24. package/dist/cjs/kup-echart.cjs.entry.js +1192 -1191
  25. package/dist/cjs/kup-family-tree.cjs.entry.js +400 -399
  26. package/dist/cjs/kup-gantt_10.cjs.entry.js +1076 -0
  27. package/dist/cjs/kup-grid.cjs.entry.js +82 -81
  28. package/dist/cjs/kup-iframe.cjs.entry.js +80 -79
  29. package/dist/cjs/kup-image-list.cjs.entry.js +224 -223
  30. package/dist/cjs/kup-lazy.cjs.entry.js +162 -161
  31. package/dist/cjs/kup-magic-box.cjs.entry.js +270 -269
  32. package/dist/cjs/{kup-manager-7334c396.js → kup-manager-c63f4fb9.js} +5770 -6516
  33. package/dist/cjs/kup-nav-bar.cjs.entry.js +110 -109
  34. package/dist/cjs/kup-numeric-picker.cjs.entry.js +352 -351
  35. package/dist/cjs/kup-photo-frame.cjs.entry.js +126 -125
  36. package/dist/cjs/kup-planner-declarations-d3dec885.js +93 -0
  37. package/dist/cjs/kup-planner-renderer-helper-c2394940.js +410 -0
  38. package/dist/cjs/kup-planner-renderer.cjs.entry.js +278 -0
  39. package/dist/cjs/kup-planner-time-formatter-a74e70f0.js +93 -0
  40. package/dist/cjs/kup-planner.cjs.entry.js +718 -13596
  41. package/dist/cjs/kup-probe.cjs.entry.js +228 -227
  42. package/dist/cjs/kup-qlik.cjs.entry.js +126 -125
  43. package/dist/cjs/kup-snackbar.cjs.entry.js +102 -101
  44. package/dist/cjs/loader.cjs.js +2 -2
  45. package/dist/collection/assets/index.js +16 -0
  46. package/dist/collection/assets/planner-example-1.js +6337 -0
  47. package/dist/collection/assets/planner-example-2.js +5650 -0
  48. package/dist/collection/assets/planner-example-3.js +6548 -0
  49. package/dist/collection/assets/planner-example-4.js +28473 -0
  50. package/dist/collection/assets/planner.js +3255 -4900
  51. package/dist/collection/collection-manifest.json +16 -1
  52. package/dist/collection/components/kup-accordion/kup-accordion-declarations.js +3 -3
  53. package/dist/collection/components/kup-accordion/kup-accordion.js +423 -423
  54. package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +14 -14
  55. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +882 -882
  56. package/dist/collection/components/kup-badge/kup-badge-declarations.js +3 -3
  57. package/dist/collection/components/kup-badge/kup-badge.js +262 -262
  58. package/dist/collection/components/kup-box/kup-box-declarations.js +26 -26
  59. package/dist/collection/components/kup-box/kup-box-state.js +13 -13
  60. package/dist/collection/components/kup-box/kup-box.js +2068 -2068
  61. package/dist/collection/components/kup-button/kup-button-declarations.js +11 -11
  62. package/dist/collection/components/kup-button/kup-button.js +560 -560
  63. package/dist/collection/components/kup-button-list/kup-button-list-declarations.js +6 -6
  64. package/dist/collection/components/kup-button-list/kup-button-list.e2e.js +141 -141
  65. package/dist/collection/components/kup-button-list/kup-button-list.js +497 -497
  66. package/dist/collection/components/kup-calendar/kup-calendar-declarations.js +17 -17
  67. package/dist/collection/components/kup-calendar/kup-calendar.js +681 -681
  68. package/dist/collection/components/kup-card/box/kup-card-box.js +161 -161
  69. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +6 -6
  70. package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +324 -324
  71. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +250 -250
  72. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +141 -141
  73. package/dist/collection/components/kup-card/built-in/kup-card-message-box.js +3 -3
  74. package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +98 -98
  75. package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +44 -44
  76. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +135 -135
  77. package/dist/collection/components/kup-card/free/kup-card-free.js +6 -6
  78. package/dist/collection/components/kup-card/kup-card-declarations.js +53 -53
  79. package/dist/collection/components/kup-card/kup-card-helper.js +155 -155
  80. package/dist/collection/components/kup-card/kup-card.js +767 -767
  81. package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +174 -174
  82. package/dist/collection/components/kup-card/standard/kup-card-standard.js +474 -474
  83. package/dist/collection/components/kup-card-list/kup-card-list-declarations.js +16 -16
  84. package/dist/collection/components/kup-card-list/kup-card-list.js +676 -676
  85. package/dist/collection/components/kup-cell/kup-cell-declarations.js +4 -4
  86. package/dist/collection/components/kup-cell/kup-cell.js +382 -382
  87. package/dist/collection/components/kup-chart/kup-chart-builder.js +80 -80
  88. package/dist/collection/components/kup-chart/kup-chart-declarations.js +36 -36
  89. package/dist/collection/components/kup-chart/kup-chart.js +1043 -1043
  90. package/dist/collection/components/kup-checkbox/kup-checkbox-declarations.js +6 -6
  91. package/dist/collection/components/kup-checkbox/kup-checkbox.js +417 -417
  92. package/dist/collection/components/kup-chip/kup-chip-declarations.js +5 -5
  93. package/dist/collection/components/kup-chip/kup-chip.js +538 -538
  94. package/dist/collection/components/kup-color-picker/kup-color-picker-declarations.js +5 -5
  95. package/dist/collection/components/kup-color-picker/kup-color-picker.js +511 -511
  96. package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +8 -8
  97. package/dist/collection/components/kup-combobox/kup-combobox.js +796 -796
  98. package/dist/collection/components/kup-dashboard/kup-dashboard-declarations.js +3 -3
  99. package/dist/collection/components/kup-dashboard/kup-dashboard.js +562 -562
  100. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +95 -95
  101. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +729 -729
  102. package/dist/collection/components/kup-data-table/kup-data-table-state.js +33 -33
  103. package/dist/collection/components/kup-data-table/kup-data-table.js +5398 -5398
  104. package/dist/collection/components/kup-date-picker/kup-date-picker-declarations.js +8 -8
  105. package/dist/collection/components/kup-date-picker/kup-date-picker.js +796 -796
  106. package/dist/collection/components/kup-dialog/kup-dialog-declarations.js +7 -7
  107. package/dist/collection/components/kup-dialog/kup-dialog.js +451 -451
  108. package/dist/collection/components/kup-drawer/kup-drawer-declarations.js +2 -2
  109. package/dist/collection/components/kup-drawer/kup-drawer.e2e.js +6 -6
  110. package/dist/collection/components/kup-drawer/kup-drawer.js +374 -374
  111. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button-declarations.js +11 -11
  112. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +776 -776
  113. package/dist/collection/components/kup-echart/kup-echart-declarations.js +40 -40
  114. package/dist/collection/components/kup-echart/kup-echart.js +1606 -1606
  115. package/dist/collection/components/kup-family-tree/kup-family-tree-declarations.js +8 -8
  116. package/dist/collection/components/kup-family-tree/kup-family-tree.js +789 -789
  117. package/dist/collection/components/kup-form/kup-form-declarations.js +16 -16
  118. package/dist/collection/components/kup-form/kup-form.js +694 -694
  119. package/dist/collection/components/kup-gauge/kup-gauge-declarations.js +19 -19
  120. package/dist/collection/components/kup-gauge/kup-gauge.js +730 -730
  121. package/dist/collection/components/kup-grid/kup-grid-declarations.js +3 -3
  122. package/dist/collection/components/kup-grid/kup-grid.js +238 -238
  123. package/dist/collection/components/kup-iframe/kup-iframe-declarations.js +3 -3
  124. package/dist/collection/components/kup-iframe/kup-iframe.js +268 -268
  125. package/dist/collection/components/kup-image/canvas/kup-image-canvas-declarations.js +167 -167
  126. package/dist/collection/components/kup-image/canvas/kup-image-canvas-helper.js +16 -16
  127. package/dist/collection/components/kup-image/canvas/kup-image-canvas.js +221 -221
  128. package/dist/collection/components/kup-image/kup-image-declarations.js +9 -9
  129. package/dist/collection/components/kup-image/kup-image.js +471 -471
  130. package/dist/collection/components/kup-image-list/kup-image-list-declarations.js +3 -3
  131. package/dist/collection/components/kup-image-list/kup-image-list-state.js +7 -7
  132. package/dist/collection/components/kup-image-list/kup-image-list.js +502 -502
  133. package/dist/collection/components/kup-lazy/kup-lazy-declarations.js +7 -7
  134. package/dist/collection/components/kup-lazy/kup-lazy.js +417 -417
  135. package/dist/collection/components/kup-list/kup-list-declarations.js +18 -18
  136. package/dist/collection/components/kup-list/kup-list-helper.js +105 -105
  137. package/dist/collection/components/kup-list/kup-list.js +914 -914
  138. package/dist/collection/components/kup-magic-box/kup-magic-box-declarations.js +10 -10
  139. package/dist/collection/components/kup-magic-box/kup-magic-box.js +405 -405
  140. package/dist/collection/components/kup-nav-bar/kup-nav-bar-declarations.js +7 -7
  141. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +304 -304
  142. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker-declarations.js +9 -9
  143. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +847 -847
  144. package/dist/collection/components/kup-photo-frame/kup-photo-frame-declarations.js +3 -3
  145. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +359 -359
  146. package/dist/collection/components/kup-planner/kup-planner-declarations.js +69 -66
  147. package/dist/collection/components/kup-planner/kup-planner-helper.js +39 -39
  148. package/dist/collection/components/kup-planner/kup-planner-state.js +14 -14
  149. package/dist/collection/components/kup-planner/kup-planner.css +4 -482
  150. package/dist/collection/components/kup-planner/kup-planner.js +1777 -1675
  151. package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +117 -0
  152. package/dist/collection/components/kup-planner/utils/custom-task-list-header.module.css +79 -0
  153. package/dist/collection/components/kup-planner/utils/custom-task-list-table.js +280 -0
  154. package/dist/collection/components/kup-planner/utils/custom-tool-tip.js +5 -0
  155. package/dist/collection/components/kup-planner/utils/gantt-table.module.css +88 -0
  156. package/dist/collection/components/kup-planner/utils/helpers/bar.helpers.js +328 -0
  157. package/dist/collection/components/kup-planner/utils/helpers/other.helpers.js +48 -0
  158. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.css +40 -0
  159. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2302 -0
  160. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.css +31 -0
  161. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +466 -0
  162. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.css +60 -0
  163. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +1186 -0
  164. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +36 -0
  165. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +177 -0
  166. package/dist/collection/components/kup-planner/utils/kup-planner-adapted-types.js +1 -0
  167. package/dist/collection/components/kup-planner/utils/kup-planner-renderer-helper.js +396 -0
  168. package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +321 -0
  169. package/dist/collection/components/kup-planner/utils/kup-planner-time-formatter.js +87 -0
  170. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.css +30 -0
  171. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +49 -0
  172. package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +215 -0
  173. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +112 -0
  174. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +226 -0
  175. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.css +67 -0
  176. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +638 -0
  177. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +82 -0
  178. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.css +30 -0
  179. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +362 -0
  180. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.css +31 -0
  181. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +170 -0
  182. package/dist/collection/components/kup-probe/kup-probe.js +335 -335
  183. package/dist/collection/components/kup-progress-bar/kup-progress-bar-declarations.js +7 -7
  184. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +346 -346
  185. package/dist/collection/components/kup-qlik/kup-qlik.js +311 -311
  186. package/dist/collection/components/kup-radio/kup-radio-declarations.js +5 -5
  187. package/dist/collection/components/kup-radio/kup-radio.js +392 -392
  188. package/dist/collection/components/kup-rating/kup-rating-declarations.js +4 -4
  189. package/dist/collection/components/kup-rating/kup-rating.js +296 -296
  190. package/dist/collection/components/kup-snackbar/kup-snackbar-declarations.js +5 -5
  191. package/dist/collection/components/kup-snackbar/kup-snackbar.js +380 -380
  192. package/dist/collection/components/kup-spinner/kup-spinner-declarations.js +8 -8
  193. package/dist/collection/components/kup-spinner/kup-spinner.js +449 -449
  194. package/dist/collection/components/kup-state/mock-store.js +10 -10
  195. package/dist/collection/components/kup-switch/kup-switch-declarations.js +5 -5
  196. package/dist/collection/components/kup-switch/kup-switch.js +387 -387
  197. package/dist/collection/components/kup-tab-bar/kup-tab-bar-declarations.js +3 -3
  198. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +423 -423
  199. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +30 -30
  200. package/dist/collection/components/kup-text-field/kup-text-field.js +1220 -1220
  201. package/dist/collection/components/kup-time-picker/kup-time-picker-declarations.js +7 -7
  202. package/dist/collection/components/kup-time-picker/kup-time-picker.js +914 -914
  203. package/dist/collection/components/kup-tree/kup-tree-declarations.js +28 -28
  204. package/dist/collection/components/kup-tree/kup-tree-faker.js +233 -233
  205. package/dist/collection/components/kup-tree/kup-tree-state.js +13 -13
  206. package/dist/collection/components/kup-tree/kup-tree.js +2424 -2424
  207. package/dist/collection/f-components/f-button/f-button-declarations.js +5 -5
  208. package/dist/collection/f-components/f-button/f-button.js +76 -76
  209. package/dist/collection/f-components/f-cell/f-cell-declarations.js +125 -125
  210. package/dist/collection/f-components/f-cell/f-cell.js +407 -407
  211. package/dist/collection/f-components/f-checkbox/f-checkbox.js +10 -10
  212. package/dist/collection/f-components/f-chip/f-chip-declarations.js +4 -4
  213. package/dist/collection/f-components/f-chip/f-chip.js +82 -82
  214. package/dist/collection/f-components/f-image/f-image-declarations.js +1 -1
  215. package/dist/collection/f-components/f-image/f-image.js +79 -79
  216. package/dist/collection/f-components/f-paginator/f-paginator-declarations.js +2 -2
  217. package/dist/collection/f-components/f-paginator/f-paginator-utils.js +21 -21
  218. package/dist/collection/f-components/f-paginator/f-paginator.js +65 -65
  219. package/dist/collection/f-components/f-progress-bar/f-progress-bar.js +70 -70
  220. package/dist/collection/f-components/f-radio/f-radio.js +21 -21
  221. package/dist/collection/f-components/f-rating/f-rating.js +17 -17
  222. package/dist/collection/f-components/f-switch/f-switch.js +6 -6
  223. package/dist/collection/f-components/f-text-field/f-text-field-mdc.js +19 -19
  224. package/dist/collection/f-components/f-text-field/f-text-field.js +165 -165
  225. package/dist/collection/index.js +1 -1
  226. package/dist/collection/managers/kup-data/kup-data-cell-helper.js +47 -47
  227. package/dist/collection/managers/kup-data/kup-data-column-helper.js +220 -220
  228. package/dist/collection/managers/kup-data/kup-data-declarations.js +4 -4
  229. package/dist/collection/managers/kup-data/kup-data-node-helper.js +107 -107
  230. package/dist/collection/managers/kup-data/kup-data-row-helper.js +11 -11
  231. package/dist/collection/managers/kup-data/kup-data.js +468 -468
  232. package/dist/collection/managers/kup-dates/kup-dates-declarations.js +19 -19
  233. package/dist/collection/managers/kup-dates/kup-dates.js +637 -605
  234. package/dist/collection/managers/kup-debug/kup-debug-declarations.js +8 -8
  235. package/dist/collection/managers/kup-debug/kup-debug.js +626 -626
  236. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position-declarations.js +9 -9
  237. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +232 -232
  238. package/dist/collection/managers/kup-interact/kup-interact-declarations.js +11 -11
  239. package/dist/collection/managers/kup-interact/kup-interact.js +374 -374
  240. package/dist/collection/managers/kup-language/kup-language-declarations.js +127 -127
  241. package/dist/collection/managers/kup-language/kup-language.js +132 -132
  242. package/dist/collection/managers/kup-manager/kup-manager.js +257 -257
  243. package/dist/collection/managers/kup-math/kup-math-declarations.js +7 -7
  244. package/dist/collection/managers/kup-math/kup-math-helper.js +19 -19
  245. package/dist/collection/managers/kup-math/kup-math.js +374 -374
  246. package/dist/collection/managers/kup-objects/kup-objects.js +379 -379
  247. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +4 -4
  248. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +301 -301
  249. package/dist/collection/managers/kup-search/kup-search.js +65 -65
  250. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +134 -134
  251. package/dist/collection/managers/kup-theme/kup-theme.js +696 -696
  252. package/dist/collection/managers/kup-toolbar/kup-toolbar-declarations.js +3 -3
  253. package/dist/collection/managers/kup-toolbar/kup-toolbar.js +93 -93
  254. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +198 -198
  255. package/dist/collection/types/GenericTypes.js +47 -47
  256. package/dist/collection/utils/cell-utils.js +115 -115
  257. package/dist/collection/utils/filters/filters-column-menu.js +339 -339
  258. package/dist/collection/utils/filters/filters-declarations.js +4 -4
  259. package/dist/collection/utils/filters/filters-rows.js +215 -215
  260. package/dist/collection/utils/filters/filters-tree-items.js +96 -96
  261. package/dist/collection/utils/filters/filters.js +257 -257
  262. package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +14 -14
  263. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +710 -710
  264. package/dist/collection/utils/utils.js +37 -37
  265. package/dist/components/custom-task-list-header.js +44 -0
  266. package/dist/components/custom-task-list-table.js +121 -0
  267. package/dist/components/index.js +1 -1
  268. package/dist/components/kup-accordion.d.ts +2 -2
  269. package/dist/components/kup-accordion.js +331 -331
  270. package/dist/components/kup-autocomplete.d.ts +2 -2
  271. package/dist/components/kup-autocomplete2.js +21534 -21533
  272. package/dist/components/kup-badge.d.ts +2 -2
  273. package/dist/components/kup-box.d.ts +2 -2
  274. package/dist/components/kup-box2.js +1416 -1416
  275. package/dist/components/kup-button-list.d.ts +2 -2
  276. package/dist/components/kup-button.d.ts +2 -2
  277. package/dist/components/kup-calendar.d.ts +2 -2
  278. package/dist/components/kup-calendar.js +534 -533
  279. package/dist/components/kup-card-list.d.ts +2 -2
  280. package/dist/components/kup-card-list.js +401 -401
  281. package/dist/components/kup-card.d.ts +2 -2
  282. package/dist/components/kup-cell.d.ts +2 -2
  283. package/dist/components/kup-cell.js +303 -303
  284. package/dist/components/kup-chart.d.ts +2 -2
  285. package/dist/components/kup-checkbox.d.ts +2 -2
  286. package/dist/components/kup-chip.d.ts +2 -2
  287. package/dist/components/kup-color-picker.d.ts +2 -2
  288. package/dist/components/kup-combobox.d.ts +2 -2
  289. package/dist/components/kup-custom-task-list-header.d.ts +11 -0
  290. package/dist/components/kup-custom-task-list-header.js +6 -0
  291. package/dist/components/kup-custom-task-list-table.d.ts +11 -0
  292. package/dist/components/kup-custom-task-list-table.js +6 -0
  293. package/dist/components/kup-dashboard.d.ts +2 -2
  294. package/dist/components/kup-dashboard.js +520 -520
  295. package/dist/components/kup-data-table.d.ts +2 -2
  296. package/dist/components/kup-date-picker.d.ts +2 -2
  297. package/dist/components/kup-dates.js +777 -0
  298. package/dist/components/kup-dialog.d.ts +2 -2
  299. package/dist/components/kup-drawer.d.ts +2 -2
  300. package/dist/components/kup-drawer.js +278 -278
  301. package/dist/components/kup-dropdown-button.d.ts +2 -2
  302. package/dist/components/kup-echart.d.ts +2 -2
  303. package/dist/components/kup-echart2.js +1358 -1358
  304. package/dist/components/kup-family-tree.d.ts +2 -2
  305. package/dist/components/kup-family-tree.js +564 -564
  306. package/dist/components/kup-form.d.ts +2 -2
  307. package/dist/components/kup-gantt-calendar.d.ts +11 -0
  308. package/dist/components/kup-gantt-calendar.js +6 -0
  309. package/dist/components/kup-gantt-calendar2.js +323 -0
  310. package/dist/components/kup-gantt.d.ts +11 -0
  311. package/dist/components/kup-gantt.js +6 -0
  312. package/dist/components/kup-gantt2.js +822 -0
  313. package/dist/components/kup-gauge.d.ts +2 -2
  314. package/dist/components/kup-grid-renderer.d.ts +11 -0
  315. package/dist/components/kup-grid-renderer.js +6 -0
  316. package/dist/components/kup-grid-renderer2.js +1416 -0
  317. package/dist/components/kup-grid.d.ts +2 -2
  318. package/dist/components/kup-grid2.js +236 -236
  319. package/dist/components/kup-horizontal-scroll.d.ts +11 -0
  320. package/dist/components/kup-horizontal-scroll.js +6 -0
  321. package/dist/components/kup-horizontal-scroll2.js +77 -0
  322. package/dist/components/kup-iframe.d.ts +2 -2
  323. package/dist/components/kup-iframe.js +234 -234
  324. package/dist/components/kup-image-list.d.ts +2 -2
  325. package/dist/components/kup-image-list.js +377 -377
  326. package/dist/components/kup-image.d.ts +2 -2
  327. package/dist/components/kup-lazy.d.ts +2 -2
  328. package/dist/components/kup-lazy.js +319 -319
  329. package/dist/components/kup-list.d.ts +2 -2
  330. package/dist/components/kup-magic-box.d.ts +2 -2
  331. package/dist/components/kup-magic-box.js +432 -432
  332. package/dist/components/kup-manager.js +5748 -6491
  333. package/dist/components/kup-nav-bar.d.ts +2 -2
  334. package/dist/components/kup-nav-bar.js +263 -263
  335. package/dist/components/kup-numeric-picker.d.ts +2 -2
  336. package/dist/components/kup-numeric-picker.js +514 -514
  337. package/dist/components/kup-photo-frame.d.ts +2 -2
  338. package/dist/components/kup-photo-frame.js +281 -281
  339. package/dist/components/kup-planner-renderer-helper.js +399 -0
  340. package/dist/components/kup-planner-renderer.d.ts +11 -0
  341. package/dist/components/kup-planner-renderer.js +6 -0
  342. package/dist/components/kup-planner-renderer2.js +390 -0
  343. package/dist/components/kup-planner.d.ts +2 -2
  344. package/dist/components/kup-planner.js +1005 -13792
  345. package/dist/components/kup-probe.d.ts +2 -2
  346. package/dist/components/kup-probe.js +379 -379
  347. package/dist/components/kup-progress-bar.d.ts +2 -2
  348. package/dist/components/kup-qlik.d.ts +2 -2
  349. package/dist/components/kup-qlik.js +282 -282
  350. package/dist/components/kup-radio.d.ts +2 -2
  351. package/dist/components/kup-rating.d.ts +2 -2
  352. package/dist/components/kup-snackbar.d.ts +2 -2
  353. package/dist/components/kup-snackbar.js +257 -257
  354. package/dist/components/kup-spinner.d.ts +2 -2
  355. package/dist/components/kup-standard-tooltip.d.ts +11 -0
  356. package/dist/components/kup-standard-tooltip.js +6 -0
  357. package/dist/components/kup-standard-tooltip2.js +37 -0
  358. package/dist/components/kup-switch.d.ts +2 -2
  359. package/dist/components/kup-switcher.d.ts +11 -0
  360. package/dist/components/kup-switcher.js +6 -0
  361. package/dist/components/kup-switcher2.js +36 -0
  362. package/dist/components/kup-tab-bar.d.ts +2 -2
  363. package/dist/components/kup-task-gantt.d.ts +11 -0
  364. package/dist/components/kup-task-gantt.js +6 -0
  365. package/dist/components/kup-task-gantt2.js +91 -0
  366. package/dist/components/kup-task-list-header.d.ts +11 -0
  367. package/dist/components/kup-task-list-header.js +6 -0
  368. package/dist/components/kup-task-list-header2.js +55 -0
  369. package/dist/components/kup-task-list-table.d.ts +11 -0
  370. package/dist/components/kup-task-list-table.js +6 -0
  371. package/dist/components/kup-task-list-table2.js +79 -0
  372. package/dist/components/kup-task-list.d.ts +11 -0
  373. package/dist/components/kup-task-list.js +6 -0
  374. package/dist/components/kup-task-list2.js +260 -0
  375. package/dist/components/kup-text-field.d.ts +2 -2
  376. package/dist/components/kup-time-picker.d.ts +2 -2
  377. package/dist/components/kup-tooltip.d.ts +11 -0
  378. package/dist/components/kup-tooltip.js +6 -0
  379. package/dist/components/kup-tooltip2.js +127 -0
  380. package/dist/components/kup-tree.d.ts +2 -2
  381. package/dist/components/kup-vertical-scroll.d.ts +11 -0
  382. package/dist/components/kup-vertical-scroll.js +6 -0
  383. package/dist/components/kup-vertical-scroll2.js +77 -0
  384. package/dist/esm/bar.helpers-0898efb9.js +363 -0
  385. package/dist/esm/f-button-5ccc2e50.js +103 -0
  386. package/dist/esm/{f-button-declarations-8a009df1.js → f-button-declarations-9bdc6f26.js} +5 -5
  387. package/dist/esm/f-cell-6f4290b2.js +664 -0
  388. package/dist/esm/f-checkbox-43481de2.js +27 -0
  389. package/dist/esm/f-chip-465aa432.js +131 -0
  390. package/dist/esm/f-image-c5063342.js +113 -0
  391. package/dist/esm/f-paginator-utils-6903534b.js +1564 -0
  392. package/dist/esm/f-text-field-28b2b26d.js +214 -0
  393. package/dist/esm/{f-text-field-mdc-1143cf21.js → f-text-field-mdc-c88bf688.js} +19 -19
  394. package/dist/esm/{index-99c17b08.js → index-59f83f91.js} +27 -8
  395. package/dist/esm/index.js +4 -3
  396. package/dist/esm/ketchup.js +4 -4
  397. package/dist/esm/kup-accordion.entry.js +182 -181
  398. package/dist/esm/kup-autocomplete_27.entry.js +14562 -14561
  399. package/dist/esm/kup-box.entry.js +1231 -1230
  400. package/dist/esm/kup-calendar.entry.js +376 -375
  401. package/dist/esm/kup-card-list.entry.js +233 -232
  402. package/dist/esm/kup-cell.entry.js +153 -152
  403. package/dist/esm/kup-custom-task-list-header_4.entry.js +1310 -0
  404. package/dist/esm/kup-dashboard.entry.js +369 -368
  405. package/dist/esm/kup-dates-15f89ea2.js +777 -0
  406. package/dist/esm/kup-drawer.entry.js +122 -121
  407. package/dist/esm/kup-echart.entry.js +1192 -1191
  408. package/dist/esm/kup-family-tree.entry.js +400 -399
  409. package/dist/esm/kup-gantt_10.entry.js +1063 -0
  410. package/dist/esm/kup-grid.entry.js +82 -81
  411. package/dist/esm/kup-iframe.entry.js +80 -79
  412. package/dist/esm/kup-image-list.entry.js +224 -223
  413. package/dist/esm/kup-lazy.entry.js +162 -161
  414. package/dist/esm/kup-magic-box.entry.js +270 -269
  415. package/dist/esm/{kup-manager-9a9d2dbb.js → kup-manager-bfea4e6f.js} +5749 -6492
  416. package/dist/esm/kup-nav-bar.entry.js +110 -109
  417. package/dist/esm/kup-numeric-picker.entry.js +352 -351
  418. package/dist/esm/kup-photo-frame.entry.js +126 -125
  419. package/dist/esm/kup-planner-declarations-b9345758.js +88 -0
  420. package/dist/esm/kup-planner-renderer-helper-2143d119.js +399 -0
  421. package/dist/esm/kup-planner-renderer.entry.js +274 -0
  422. package/dist/esm/kup-planner-time-formatter-a68e05ba.js +89 -0
  423. package/dist/esm/kup-planner.entry.js +718 -13596
  424. package/dist/esm/kup-probe.entry.js +228 -227
  425. package/dist/esm/kup-qlik.entry.js +126 -125
  426. package/dist/esm/kup-snackbar.entry.js +102 -101
  427. package/dist/esm/loader.js +3 -3
  428. package/dist/ketchup/index.esm.js +1 -1
  429. package/dist/ketchup/ketchup.esm.js +1 -1
  430. package/dist/ketchup/p-01a0b54c.js +1 -0
  431. package/dist/ketchup/{p-6a7df3d2.js → p-097500fe.js} +1 -1
  432. package/dist/ketchup/p-0cb5e9ae.entry.js +1 -0
  433. package/dist/ketchup/p-0f91d4de.entry.js +1 -0
  434. package/dist/ketchup/p-1872c92e.entry.js +1 -0
  435. package/dist/ketchup/p-20aa95ae.entry.js +1 -0
  436. package/dist/ketchup/{p-4e696daf.js → p-21c640a5.js} +1 -1
  437. package/dist/ketchup/p-4bc3b3a6.js +29 -0
  438. package/dist/ketchup/{p-ea56edbe.js → p-4c1ec006.js} +1 -1
  439. package/dist/ketchup/p-51f9b230.entry.js +1 -0
  440. package/dist/ketchup/p-612b46da.entry.js +1 -0
  441. package/dist/ketchup/p-69287f4a.entry.js +1 -0
  442. package/dist/ketchup/p-71acfd3c.entry.js +1 -0
  443. package/dist/ketchup/p-7a72c4fa.entry.js +1 -0
  444. package/dist/ketchup/p-7c5a1357.entry.js +1 -0
  445. package/dist/ketchup/p-829d7060.entry.js +1 -0
  446. package/dist/ketchup/p-84be8f0b.js +1 -0
  447. package/dist/ketchup/p-85279516.entry.js +9 -0
  448. package/dist/ketchup/p-8591ac0b.entry.js +1 -0
  449. package/dist/ketchup/p-8c3ad5ef.entry.js +1 -0
  450. package/dist/ketchup/p-8e180c01.entry.js +1 -0
  451. package/dist/ketchup/p-8e3b6de8.js +1 -0
  452. package/dist/ketchup/p-8ecdd076.entry.js +1 -0
  453. package/dist/ketchup/p-903d1b10.entry.js +1 -0
  454. package/dist/ketchup/p-924b841b.js +1 -0
  455. package/dist/ketchup/p-95272714.entry.js +1 -0
  456. package/dist/ketchup/p-b07ffd18.entry.js +16 -0
  457. package/dist/ketchup/p-c23731ca.js +1 -0
  458. package/dist/ketchup/p-cd9a4274.js +2 -0
  459. package/dist/ketchup/{p-34e4a985.js → p-ce9ef2d5.js} +1 -1
  460. package/dist/ketchup/{p-f1f82eef.entry.js → p-d7b8295a.entry.js} +1 -1
  461. package/dist/ketchup/p-db93bc06.entry.js +1 -0
  462. package/dist/ketchup/p-e46470a6.entry.js +1 -0
  463. package/dist/ketchup/p-e841c2ae.js +1 -0
  464. package/dist/ketchup/p-eae42bff.entry.js +1 -0
  465. package/dist/ketchup/p-ee6305f5.js +1 -0
  466. package/dist/ketchup/p-f1efab38.entry.js +1 -0
  467. package/dist/ketchup/p-f2df4ce9.entry.js +1 -0
  468. package/dist/ketchup/{p-7a876328.js → p-f51dbf68.js} +1 -1
  469. package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +5 -5
  470. package/dist/types/components/kup-accordion/kup-accordion.d.ts +75 -75
  471. package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +18 -18
  472. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +113 -113
  473. package/dist/types/components/kup-badge/kup-badge-declarations.d.ts +3 -3
  474. package/dist/types/components/kup-badge/kup-badge.d.ts +47 -47
  475. package/dist/types/components/kup-box/kup-box-declarations.d.ts +70 -70
  476. package/dist/types/components/kup-box/kup-box-state.d.ts +7 -7
  477. package/dist/types/components/kup-box/kup-box.d.ts +262 -262
  478. package/dist/types/components/kup-button/kup-button-declarations.d.ts +12 -12
  479. package/dist/types/components/kup-button/kup-button.d.ts +105 -105
  480. package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +11 -11
  481. package/dist/types/components/kup-button-list/kup-button-list.d.ts +75 -75
  482. package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +32 -32
  483. package/dist/types/components/kup-calendar/kup-calendar.d.ts +100 -100
  484. package/dist/types/components/kup-card/kup-card-declarations.d.ts +123 -123
  485. package/dist/types/components/kup-card/kup-card.d.ts +154 -154
  486. package/dist/types/components/kup-card-list/kup-card-list-declarations.d.ts +20 -20
  487. package/dist/types/components/kup-card-list/kup-card-list.d.ts +107 -107
  488. package/dist/types/components/kup-cell/kup-cell-declarations.d.ts +4 -4
  489. package/dist/types/components/kup-cell/kup-cell.d.ts +62 -62
  490. package/dist/types/components/kup-chart/kup-chart-builder.d.ts +2 -2
  491. package/dist/types/components/kup-chart/kup-chart-declarations.d.ts +99 -99
  492. package/dist/types/components/kup-chart/kup-chart.d.ts +164 -164
  493. package/dist/types/components/kup-checkbox/kup-checkbox-declarations.d.ts +8 -8
  494. package/dist/types/components/kup-checkbox/kup-checkbox.d.ts +80 -80
  495. package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +8 -8
  496. package/dist/types/components/kup-chip/kup-chip.d.ts +82 -82
  497. package/dist/types/components/kup-color-picker/kup-color-picker-declarations.d.ts +6 -6
  498. package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +83 -83
  499. package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +12 -12
  500. package/dist/types/components/kup-combobox/kup-combobox.d.ts +89 -89
  501. package/dist/types/components/kup-dashboard/kup-dashboard-declarations.d.ts +28 -28
  502. package/dist/types/components/kup-dashboard/kup-dashboard.d.ts +74 -74
  503. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +156 -156
  504. package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +2 -2
  505. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +31 -31
  506. package/dist/types/components/kup-data-table/kup-data-table.d.ts +441 -441
  507. package/dist/types/components/kup-date-picker/kup-date-picker-declarations.d.ts +9 -9
  508. package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +105 -105
  509. package/dist/types/components/kup-dialog/kup-dialog-declarations.d.ts +12 -12
  510. package/dist/types/components/kup-dialog/kup-dialog.d.ts +72 -72
  511. package/dist/types/components/kup-drawer/kup-drawer-declarations.d.ts +2 -2
  512. package/dist/types/components/kup-drawer/kup-drawer.d.ts +70 -70
  513. package/dist/types/components/kup-dropdown-button/kup-dropdown-button-declarations.d.ts +12 -12
  514. package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +154 -154
  515. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +48 -48
  516. package/dist/types/components/kup-echart/kup-echart.d.ts +103 -103
  517. package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +20 -20
  518. package/dist/types/components/kup-family-tree/kup-family-tree.d.ts +82 -82
  519. package/dist/types/components/kup-form/kup-form-declarations.d.ts +40 -40
  520. package/dist/types/components/kup-form/kup-form.d.ts +78 -78
  521. package/dist/types/components/kup-gauge/kup-gauge-declarations.d.ts +19 -19
  522. package/dist/types/components/kup-gauge/kup-gauge.d.ts +144 -144
  523. package/dist/types/components/kup-grid/kup-grid-declarations.d.ts +3 -3
  524. package/dist/types/components/kup-grid/kup-grid.d.ts +45 -45
  525. package/dist/types/components/kup-iframe/kup-iframe-declarations.d.ts +3 -3
  526. package/dist/types/components/kup-iframe/kup-iframe.d.ts +45 -45
  527. package/dist/types/components/kup-image/canvas/kup-image-canvas-declarations.d.ts +19 -19
  528. package/dist/types/components/kup-image/canvas/kup-image-canvas.d.ts +25 -25
  529. package/dist/types/components/kup-image/kup-image-declarations.d.ts +10 -10
  530. package/dist/types/components/kup-image/kup-image.d.ts +96 -96
  531. package/dist/types/components/kup-image-list/kup-image-list-declarations.d.ts +4 -4
  532. package/dist/types/components/kup-image-list/kup-image-list-state.d.ts +3 -3
  533. package/dist/types/components/kup-image-list/kup-image-list.d.ts +64 -64
  534. package/dist/types/components/kup-lazy/kup-lazy-declarations.d.ts +7 -7
  535. package/dist/types/components/kup-lazy/kup-lazy.d.ts +73 -73
  536. package/dist/types/components/kup-list/kup-list-declarations.d.ts +23 -23
  537. package/dist/types/components/kup-list/kup-list.d.ts +122 -122
  538. package/dist/types/components/kup-magic-box/kup-magic-box-declarations.d.ts +10 -10
  539. package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +60 -60
  540. package/dist/types/components/kup-nav-bar/kup-nav-bar-declarations.d.ts +7 -7
  541. package/dist/types/components/kup-nav-bar/kup-nav-bar.d.ts +60 -60
  542. package/dist/types/components/kup-numeric-picker/kup-numeric-picker-declarations.d.ts +10 -10
  543. package/dist/types/components/kup-numeric-picker/kup-numeric-picker.d.ts +116 -116
  544. package/dist/types/components/kup-photo-frame/kup-photo-frame-declarations.d.ts +3 -3
  545. package/dist/types/components/kup-photo-frame/kup-photo-frame.d.ts +57 -57
  546. package/dist/types/components/kup-planner/kup-planner-declarations.d.ts +592 -96
  547. package/dist/types/components/kup-planner/kup-planner-state.d.ts +9 -9
  548. package/dist/types/components/kup-planner/kup-planner.d.ts +269 -259
  549. package/dist/types/components/kup-planner/utils/custom-task-list-header.d.ts +8 -0
  550. package/dist/types/components/kup-planner/utils/custom-task-list-table.d.ts +14 -0
  551. package/dist/types/components/kup-planner/utils/custom-tool-tip.d.ts +2 -0
  552. package/dist/types/components/kup-planner/utils/helpers/bar.helpers.d.ts +33 -0
  553. package/dist/types/components/kup-planner/utils/helpers/other.helpers.d.ts +6 -0
  554. package/dist/types/components/kup-planner/utils/kup-gantt/kup-gantt.d.ts +127 -0
  555. package/dist/types/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.d.ts +27 -0
  556. package/dist/types/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.d.ts +59 -0
  557. package/dist/types/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.d.ts +17 -0
  558. package/dist/types/components/kup-planner/utils/kup-planner-adapted-types.d.ts +28 -0
  559. package/dist/types/components/kup-planner/utils/kup-planner-renderer-helper.d.ts +36 -0
  560. package/dist/types/components/kup-planner/utils/kup-planner-renderer.d.ts +33 -0
  561. package/dist/types/components/kup-planner/utils/kup-planner-time-formatter.d.ts +20 -0
  562. package/dist/types/components/kup-planner/utils/kup-switcher/kup-switcher.d.ts +5 -0
  563. package/dist/types/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.d.ts +20 -0
  564. package/dist/types/components/kup-planner/utils/kup-task-list/kup-task-list-header.d.ts +7 -0
  565. package/dist/types/components/kup-planner/utils/kup-task-list/kup-task-list-table.d.ts +16 -0
  566. package/dist/types/components/kup-planner/utils/kup-task-list/kup-task-list.d.ts +40 -0
  567. package/dist/types/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.d.ts +7 -0
  568. package/dist/types/components/kup-planner/utils/kup-tooltip/kup-tooltip.d.ts +26 -0
  569. package/dist/types/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.d.ts +16 -0
  570. package/dist/types/components/kup-probe/kup-probe.d.ts +70 -70
  571. package/dist/types/components/kup-progress-bar/kup-progress-bar-declarations.d.ts +7 -7
  572. package/dist/types/components/kup-progress-bar/kup-progress-bar.d.ts +65 -65
  573. package/dist/types/components/kup-qlik/kup-qlik-declarations.d.ts +13 -13
  574. package/dist/types/components/kup-qlik/kup-qlik.d.ts +96 -96
  575. package/dist/types/components/kup-radio/kup-radio-declarations.d.ts +6 -6
  576. package/dist/types/components/kup-radio/kup-radio.d.ts +75 -75
  577. package/dist/types/components/kup-rating/kup-rating-declarations.d.ts +5 -5
  578. package/dist/types/components/kup-rating/kup-rating.d.ts +52 -52
  579. package/dist/types/components/kup-snackbar/kup-snackbar-declarations.d.ts +5 -5
  580. package/dist/types/components/kup-snackbar/kup-snackbar.d.ts +78 -78
  581. package/dist/types/components/kup-spinner/kup-spinner-declarations.d.ts +8 -8
  582. package/dist/types/components/kup-spinner/kup-spinner.d.ts +75 -75
  583. package/dist/types/components/kup-state/kup-state.d.ts +1 -1
  584. package/dist/types/components/kup-state/kup-store.d.ts +2 -2
  585. package/dist/types/components/kup-state/mock-store.d.ts +5 -5
  586. package/dist/types/components/kup-switch/kup-switch-declarations.d.ts +6 -6
  587. package/dist/types/components/kup-switch/kup-switch.d.ts +75 -75
  588. package/dist/types/components/kup-tab-bar/kup-tab-bar-declarations.d.ts +6 -6
  589. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +72 -72
  590. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +31 -31
  591. package/dist/types/components/kup-text-field/kup-text-field.d.ts +258 -258
  592. package/dist/types/components/kup-time-picker/kup-time-picker-declarations.d.ts +8 -8
  593. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +120 -120
  594. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +56 -56
  595. package/dist/types/components/kup-tree/kup-tree-faker.d.ts +15 -15
  596. package/dist/types/components/kup-tree/kup-tree-state.d.ts +9 -9
  597. package/dist/types/components/kup-tree/kup-tree.d.ts +351 -351
  598. package/dist/types/components.d.ts +637 -4
  599. package/dist/types/f-components/f-button/f-button-declarations.d.ts +24 -24
  600. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +117 -117
  601. package/dist/types/f-components/f-checkbox/f-checkbox-declarations.d.ts +9 -9
  602. package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +12 -12
  603. package/dist/types/f-components/f-image/f-image-declarations.d.ts +14 -14
  604. package/dist/types/f-components/f-paginator/f-paginator-declarations.d.ts +12 -12
  605. package/dist/types/f-components/f-progress-bar/f-progress-bar-declarations.d.ts +10 -10
  606. package/dist/types/f-components/f-radio/f-radio-declarations.d.ts +11 -11
  607. package/dist/types/f-components/f-rating/f-rating-declarations.d.ts +4 -4
  608. package/dist/types/f-components/f-switch/f-switch-declarations.d.ts +8 -8
  609. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +38 -38
  610. package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +3 -3
  611. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +88 -88
  612. package/dist/types/managers/kup-data/kup-data.d.ts +76 -76
  613. package/dist/types/managers/kup-dates/kup-dates-declarations.d.ts +19 -19
  614. package/dist/types/managers/kup-dates/kup-dates.d.ts +217 -192
  615. package/dist/types/managers/kup-debug/kup-debug-declarations.d.ts +18 -18
  616. package/dist/types/managers/kup-debug/kup-debug.d.ts +87 -87
  617. package/dist/types/managers/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +19 -19
  618. package/dist/types/managers/kup-dynamic-position/kup-dynamic-position.d.ts +53 -53
  619. package/dist/types/managers/kup-interact/kup-interact-declarations.d.ts +37 -37
  620. package/dist/types/managers/kup-interact/kup-interact.d.ts +95 -95
  621. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +133 -133
  622. package/dist/types/managers/kup-language/kup-language.d.ts +44 -44
  623. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +63 -63
  624. package/dist/types/managers/kup-manager/kup-manager.d.ts +67 -67
  625. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +16 -16
  626. package/dist/types/managers/kup-math/kup-math-helper.d.ts +1 -1
  627. package/dist/types/managers/kup-math/kup-math.d.ts +132 -132
  628. package/dist/types/managers/kup-objects/kup-objects-declarations.d.ts +4 -4
  629. package/dist/types/managers/kup-objects/kup-objects.d.ts +201 -201
  630. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +16 -16
  631. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +55 -55
  632. package/dist/types/managers/kup-search/kup-search-declarations.d.ts +1 -1
  633. package/dist/types/managers/kup-search/kup-search.d.ts +13 -13
  634. package/dist/types/managers/kup-theme/kup-theme-declarations.d.ts +99 -99
  635. package/dist/types/managers/kup-theme/kup-theme.d.ts +119 -119
  636. package/dist/types/managers/kup-toolbar/kup-toolbar-declarations.d.ts +3 -3
  637. package/dist/types/managers/kup-toolbar/kup-toolbar.d.ts +32 -32
  638. package/dist/types/managers/kup-tooltip/kup-tooltip-declarations.d.ts +4 -4
  639. package/dist/types/managers/kup-tooltip/kup-tooltip.d.ts +43 -43
  640. package/dist/types/stencil-public-runtime.d.ts +8 -0
  641. package/dist/types/types/GenericTypes.d.ts +74 -74
  642. package/dist/types/utils/filters/filters-column-menu.d.ts +86 -86
  643. package/dist/types/utils/filters/filters-declarations.d.ts +13 -13
  644. package/dist/types/utils/filters/filters-rows.d.ts +17 -17
  645. package/dist/types/utils/filters/filters-tree-items.d.ts +7 -7
  646. package/dist/types/utils/filters/filters.d.ts +62 -62
  647. package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +14 -14
  648. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +126 -126
  649. package/package.json +12 -16
  650. package/dist/cjs/f-button-9ccadd52.js +0 -105
  651. package/dist/cjs/f-cell-3130506f.js +0 -670
  652. package/dist/cjs/f-checkbox-9d2635d9.js +0 -29
  653. package/dist/cjs/f-chip-beb7af58.js +0 -133
  654. package/dist/cjs/f-image-66a3c3c1.js +0 -115
  655. package/dist/cjs/f-paginator-utils-c475e07f.js +0 -1576
  656. package/dist/cjs/f-text-field-c74856ff.js +0 -216
  657. package/dist/esm/f-button-0bce6587.js +0 -103
  658. package/dist/esm/f-cell-88d375e1.js +0 -664
  659. package/dist/esm/f-checkbox-31219c42.js +0 -27
  660. package/dist/esm/f-chip-ef0d4130.js +0 -131
  661. package/dist/esm/f-image-727453df.js +0 -113
  662. package/dist/esm/f-paginator-utils-4524e41c.js +0 -1563
  663. package/dist/esm/f-text-field-7b4d622c.js +0 -214
  664. package/dist/ketchup/p-042e1ed0.entry.js +0 -1
  665. package/dist/ketchup/p-0dc763af.entry.js +0 -1
  666. package/dist/ketchup/p-1ae879af.entry.js +0 -1
  667. package/dist/ketchup/p-1db0c862.entry.js +0 -1
  668. package/dist/ketchup/p-20458088.js +0 -30
  669. package/dist/ketchup/p-20c1a69f.entry.js +0 -1
  670. package/dist/ketchup/p-267dd24a.entry.js +0 -9
  671. package/dist/ketchup/p-2849af6f.js +0 -1
  672. package/dist/ketchup/p-30938d5a.entry.js +0 -1
  673. package/dist/ketchup/p-4067c71b.js +0 -2
  674. package/dist/ketchup/p-61f71872.entry.js +0 -1
  675. package/dist/ketchup/p-6b33f5de.entry.js +0 -1
  676. package/dist/ketchup/p-7f64b612.entry.js +0 -1
  677. package/dist/ketchup/p-90db42e6.entry.js +0 -1
  678. package/dist/ketchup/p-9cc1c76b.entry.js +0 -1
  679. package/dist/ketchup/p-9d3d8690.js +0 -1
  680. package/dist/ketchup/p-b4ba27da.entry.js +0 -1
  681. package/dist/ketchup/p-c046fd1c.entry.js +0 -1
  682. package/dist/ketchup/p-c120043a.entry.js +0 -1
  683. package/dist/ketchup/p-d520d757.entry.js +0 -1
  684. package/dist/ketchup/p-e9bc0749.entry.js +0 -1
  685. package/dist/ketchup/p-edd88921.entry.js +0 -1
  686. package/dist/ketchup/p-f67ee60f.entry.js +0 -25
  687. package/dist/ketchup/p-f6844304.entry.js +0 -1
  688. package/dist/ketchup/p-f8213d22.entry.js +0 -1
  689. /package/dist/ketchup/{p-cd2af1a6.js → p-b3577066.js} +0 -0
  690. /package/dist/ketchup/{p-b00f3575.js → p-c634eb82.js} +0 -0
@@ -0,0 +1,1416 @@
1
+ import { proxyCustomElement, HTMLElement, h, Fragment } from '@stencil/core/internal/client';
2
+ import { a as addToDate } from './kup-planner-renderer-helper.js';
3
+ import { c as createCommonjsModule, b as commonjsGlobal } from './kup-dates.js';
4
+
5
+ function isKeyboardEvent(event) {
6
+ return event.key !== undefined;
7
+ }
8
+ function removeHiddenTasks(tasks) {
9
+ const groupedTasks = tasks.filter((t) => t.hideChildren && t.type === 'project');
10
+ if (groupedTasks.length > 0) {
11
+ for (let i = 0; groupedTasks.length > i; i++) {
12
+ const groupedTask = groupedTasks[i];
13
+ const children = getChildren(tasks, groupedTask);
14
+ tasks = tasks.filter((t) => children.indexOf(t) === -1);
15
+ }
16
+ }
17
+ return tasks;
18
+ }
19
+ function getChildren(taskList, task) {
20
+ let tasks = [];
21
+ if (task.type !== 'project') {
22
+ tasks = taskList.filter((t) => t.dependencies && t.dependencies.indexOf(task.id) !== -1);
23
+ }
24
+ else {
25
+ tasks = taskList.filter((t) => t.project && t.project === task.id);
26
+ }
27
+ var taskChildren = [];
28
+ tasks.forEach((t) => {
29
+ taskChildren.push(...getChildren(taskList, t));
30
+ });
31
+ tasks = tasks.concat(tasks, taskChildren);
32
+ return tasks;
33
+ }
34
+ const sortTasks = (taskA, taskB) => {
35
+ const orderA = taskA.displayOrder || Number.MAX_VALUE;
36
+ const orderB = taskB.displayOrder || Number.MAX_VALUE;
37
+ if (orderA > orderB) {
38
+ return 1;
39
+ }
40
+ else if (orderA < orderB) {
41
+ return -1;
42
+ }
43
+ else {
44
+ return 0;
45
+ }
46
+ };
47
+
48
+ const convertToBarTasks = (tasks, dates, columnWidth, rowHeight, taskHeight, projectHeight, timelineHeight, barCornerRadius, handleWidth, rtl, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor, showSecondaryDates) => {
49
+ let barTasks = tasks.map((t, i) => {
50
+ return convertToBarTask(t, i, dates, columnWidth, rowHeight, taskHeight, projectHeight, timelineHeight, barCornerRadius, handleWidth, rtl, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor, showSecondaryDates);
51
+ });
52
+ // set dependencies
53
+ barTasks = barTasks.map((task) => {
54
+ const dependencies = task.dependencies || [];
55
+ for (let j = 0; j < dependencies.length; j++) {
56
+ const dependence = barTasks.findIndex((value) => value.id === dependencies[j]);
57
+ if (dependence !== -1)
58
+ barTasks[dependence].barChildren.push(task);
59
+ }
60
+ return task;
61
+ });
62
+ return barTasks;
63
+ };
64
+ const convertToBarTask = (task, index, dates, columnWidth, rowHeight, taskHeight, projectHeight, timelineHeight, barCornerRadius, handleWidth, rtl, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor, showSecondaryDates) => {
65
+ let barTask;
66
+ switch (task.type) {
67
+ case 'timeline':
68
+ barTask = convertToTimeline(task, index, dates, columnWidth, rowHeight, timelineHeight, barCornerRadius, handleWidth);
69
+ break;
70
+ case 'project':
71
+ barTask = convertToBar(task, index, dates, columnWidth, rowHeight, projectHeight, barCornerRadius, handleWidth, rtl, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor, showSecondaryDates);
72
+ break;
73
+ default:
74
+ barTask = convertToBar(task, index, dates, columnWidth, rowHeight, taskHeight, barCornerRadius, handleWidth, rtl, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, showSecondaryDates);
75
+ break;
76
+ }
77
+ return barTask;
78
+ };
79
+ function computeTypeAndXs(start, end, type, dates, columnWidth, handleWidth, rtl) {
80
+ let x1;
81
+ let x2;
82
+ if (rtl) {
83
+ x2 = taskXCoordinateRTL(start, dates, columnWidth);
84
+ x1 = taskXCoordinateRTL(end, dates, columnWidth);
85
+ }
86
+ else {
87
+ x1 = taskXCoordinate(start, dates, columnWidth);
88
+ x2 = taskXCoordinate(end, dates, columnWidth);
89
+ }
90
+ let typeInternal = type;
91
+ if (typeInternal === 'task' && x2 - x1 < handleWidth * 2) {
92
+ typeInternal = 'smalltask';
93
+ x2 = x1 + handleWidth * 2;
94
+ }
95
+ return { x1, x2, typeInternal };
96
+ }
97
+ const convertToBar = (task, index, dates, columnWidth, rowHeight, taskHeight, barCornerRadius, handleWidth, rtl, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, showSecondaryDates) => {
98
+ const { x1, x2, typeInternal } = computeTypeAndXs(task.start, task.end, task.type, dates, columnWidth, handleWidth, rtl);
99
+ const { x1: x1secondary, x2: x2secondary } = showSecondaryDates && task.secondaryStart && task.secondaryEnd
100
+ ? computeTypeAndXs(task.secondaryStart, task.secondaryEnd, task.type, dates, columnWidth, handleWidth, rtl)
101
+ : { x1: undefined, x2: undefined };
102
+ const [progressWidth, progressX] = progressWithByParams(x1, x2, task.progress, rtl);
103
+ const y = taskYCoordinate(index, rowHeight, taskHeight);
104
+ const hideChildren = task.type === 'project' ? task.hideChildren : undefined;
105
+ const styles = Object.assign({ backgroundColor: barBackgroundColor, backgroundSelectedColor: barBackgroundSelectedColor, progressColor: barProgressColor, progressSelectedColor: barProgressSelectedColor }, task.styles);
106
+ return Object.assign(Object.assign({}, task), { typeInternal,
107
+ x1,
108
+ x2,
109
+ x1secondary,
110
+ x2secondary,
111
+ y,
112
+ index,
113
+ progressX,
114
+ progressWidth,
115
+ barCornerRadius,
116
+ handleWidth,
117
+ hideChildren, height: taskHeight, barChildren: [], styles });
118
+ };
119
+ const defaultStyles = (styles) => {
120
+ var _a, _b, _c, _d;
121
+ return ({
122
+ backgroundColor: (_a = styles === null || styles === void 0 ? void 0 : styles.backgroundColor) !== null && _a !== void 0 ? _a : '#deadbeef',
123
+ backgroundSelectedColor: (_b = styles === null || styles === void 0 ? void 0 : styles.backgroundSelectedColor) !== null && _b !== void 0 ? _b : '#cafebabe',
124
+ progressColor: (_c = styles === null || styles === void 0 ? void 0 : styles.progressColor) !== null && _c !== void 0 ? _c : '#deadbeef',
125
+ progressSelectedColor: (_d = styles === null || styles === void 0 ? void 0 : styles.progressSelectedColor) !== null && _d !== void 0 ? _d : '#cafebabe',
126
+ });
127
+ };
128
+ const convertToTimeline = (task, index, dates, columnWidth, rowHeight, taskHeight, barCornerRadius, handleWidth) => {
129
+ var _a;
130
+ const y = taskYCoordinate(index, rowHeight, taskHeight);
131
+ function convertFrameToTask(frame, j) {
132
+ var _a, _b;
133
+ const { x1, x2 } = computeTypeAndXs(frame.start, frame.end, 'task', dates, columnWidth, handleWidth, false);
134
+ const n = +frame.start;
135
+ const baseColor = frame.backgroundColor;
136
+ const selColor = (_a = frame.backgroundSelectedColor) !== null && _a !== void 0 ? _a : baseColor;
137
+ return {
138
+ barChildren: [],
139
+ barCornerRadius: 0,
140
+ start: frame.start,
141
+ end: frame.end,
142
+ handleWidth: 0,
143
+ height: taskHeight,
144
+ id: `Frame-${task.id}-${j}`,
145
+ index: n,
146
+ name: '',
147
+ valuesToShow: task.valuesToShow,
148
+ progress: 0,
149
+ progressWidth: 0,
150
+ progressX: 0,
151
+ styles: {
152
+ backgroundColor: baseColor,
153
+ backgroundSelectedColor: selColor,
154
+ progressColor: baseColor,
155
+ progressSelectedColor: selColor,
156
+ },
157
+ timeline: [],
158
+ type: 'task',
159
+ typeInternal: 'timeline',
160
+ x1,
161
+ x2,
162
+ y,
163
+ icon: (_b = frame.icon) !== null && _b !== void 0 ? _b : undefined,
164
+ };
165
+ }
166
+ const { x1, x2 } = computeTypeAndXs(task.start, task.end, task.type, dates, columnWidth, handleWidth, false);
167
+ const children = (_a = task.timeline) === null || _a === void 0 ? void 0 : _a.map(convertFrameToTask);
168
+ return Object.assign(Object.assign({}, task), { x1,
169
+ x2,
170
+ y,
171
+ index, progressX: 0, progressWidth: 0, barCornerRadius,
172
+ handleWidth, typeInternal: task.type, progress: 0, height: taskHeight, hideChildren: undefined, barChildren: children !== null && children !== void 0 ? children : [], styles: defaultStyles(task.styles) });
173
+ };
174
+ const taskXCoordinate = (xDate, dates, columnWidth) => {
175
+ const index = dates.findIndex((d) => d.getTime() >= xDate.getTime()) - 1;
176
+ if (index < 0) {
177
+ return 0;
178
+ }
179
+ const remainderMillis = xDate.getTime() - dates[index].getTime();
180
+ const percentOfInterval = remainderMillis / (dates[index + 1].getTime() - dates[index].getTime());
181
+ const x = index * columnWidth + percentOfInterval * columnWidth;
182
+ return x;
183
+ };
184
+ const taskXCoordinateRTL = (xDate, dates, columnWidth) => {
185
+ let x = taskXCoordinate(xDate, dates, columnWidth);
186
+ x += columnWidth;
187
+ return x;
188
+ };
189
+ const taskYCoordinate = (index, rowHeight, taskHeight) => {
190
+ const y = index * rowHeight + (rowHeight - taskHeight) / 2;
191
+ return y;
192
+ };
193
+ const progressWithByParams = (taskX1, taskX2, progress, rtl) => {
194
+ const progressWidth = (taskX2 - taskX1) * progress * 0.01;
195
+ let progressX;
196
+ if (rtl) {
197
+ progressX = taskX2 - progressWidth;
198
+ }
199
+ else {
200
+ progressX = taskX1;
201
+ }
202
+ return [progressWidth, progressX];
203
+ };
204
+ const progressByX = (x, task) => {
205
+ if (x >= task.x2)
206
+ return 100;
207
+ else if (x <= task.x1)
208
+ return 0;
209
+ else {
210
+ const barWidth = task.x2 - task.x1;
211
+ const progressPercent = Math.round(((x - task.x1) * 100) / barWidth);
212
+ return progressPercent;
213
+ }
214
+ };
215
+ const progressByXRTL = (x, task) => {
216
+ if (x >= task.x2)
217
+ return 0;
218
+ else if (x <= task.x1)
219
+ return 100;
220
+ else {
221
+ const barWidth = task.x2 - task.x1;
222
+ const progressPercent = Math.round(((task.x2 - x) * 100) / barWidth);
223
+ return progressPercent;
224
+ }
225
+ };
226
+ const getProgressPoint = (progressX, taskY, taskHeight) => {
227
+ const point = [
228
+ progressX - 5,
229
+ taskY + taskHeight,
230
+ progressX + 5,
231
+ taskY + taskHeight,
232
+ progressX,
233
+ taskY + taskHeight - 8.66,
234
+ ];
235
+ return point.join(',');
236
+ };
237
+ const startByX = (x, xStep, task) => {
238
+ if (x >= task.x2 - task.handleWidth * 2) {
239
+ x = task.x2 - task.handleWidth * 2;
240
+ }
241
+ const steps = Math.round((x - task.x1) / xStep);
242
+ const additionalXValue = steps * xStep;
243
+ const newX = task.x1 + additionalXValue;
244
+ return newX;
245
+ };
246
+ const endByX = (x, xStep, task) => {
247
+ if (x <= task.x1 + task.handleWidth * 2) {
248
+ x = task.x1 + task.handleWidth * 2;
249
+ }
250
+ const steps = Math.round((x - task.x2) / xStep);
251
+ const additionalXValue = steps * xStep;
252
+ const newX = task.x2 + additionalXValue;
253
+ return newX;
254
+ };
255
+ const moveByX = (x, xStep, task) => {
256
+ const steps = Math.round((x - task.x1) / xStep);
257
+ const additionalXValue = steps * xStep;
258
+ const newX1 = task.x1 + additionalXValue;
259
+ const newX2 = newX1 + task.x2 - task.x1;
260
+ return [newX1, newX2];
261
+ };
262
+ const dateByX = (x, taskX, taskDate, xStep, timeStep) => {
263
+ let newDate = new Date(((x - taskX) / xStep) * timeStep + taskDate.getTime());
264
+ newDate = new Date(newDate.getTime() +
265
+ (newDate.getTimezoneOffset() - taskDate.getTimezoneOffset()) * 60000);
266
+ return newDate;
267
+ };
268
+ /**
269
+ * Method handles event in real time(mousemove) and on finish(mouseup)
270
+ */
271
+ const handleTaskBySVGMouseEvent = (svgX, action, selectedTask, xStep, timeStep, initEventX1Delta, rtl) => handleTaskBySVGMouseEventForBar(svgX, action, selectedTask, xStep, timeStep, initEventX1Delta, rtl);
272
+ const handleTaskBySVGMouseEventForBar = (svgX, action, selectedTask, xStep, timeStep, initEventX1Delta, rtl) => {
273
+ const changedTask = Object.assign({}, selectedTask);
274
+ let isChanged = false;
275
+ switch (action) {
276
+ case 'progress':
277
+ if (rtl) {
278
+ changedTask.progress = progressByXRTL(svgX, selectedTask);
279
+ }
280
+ else {
281
+ changedTask.progress = progressByX(svgX, selectedTask);
282
+ }
283
+ isChanged = changedTask.progress !== selectedTask.progress;
284
+ if (isChanged) {
285
+ const [progressWidth, progressX] = progressWithByParams(changedTask.x1, changedTask.x2, changedTask.progress, rtl);
286
+ changedTask.progressWidth = progressWidth;
287
+ changedTask.progressX = progressX;
288
+ }
289
+ break;
290
+ case 'start': {
291
+ const newX1 = startByX(svgX, xStep, selectedTask);
292
+ changedTask.x1 = newX1;
293
+ isChanged = changedTask.x1 !== selectedTask.x1;
294
+ if (isChanged) {
295
+ if (rtl) {
296
+ changedTask.end = dateByX(newX1, selectedTask.x1, selectedTask.end, xStep, timeStep);
297
+ }
298
+ else {
299
+ changedTask.start = dateByX(newX1, selectedTask.x1, selectedTask.start, xStep, timeStep);
300
+ }
301
+ const [progressWidth, progressX] = progressWithByParams(changedTask.x1, changedTask.x2, changedTask.progress, rtl);
302
+ changedTask.progressWidth = progressWidth;
303
+ changedTask.progressX = progressX;
304
+ }
305
+ break;
306
+ }
307
+ case 'end': {
308
+ const newX2 = endByX(svgX, xStep, selectedTask);
309
+ changedTask.x2 = newX2;
310
+ isChanged = changedTask.x2 !== selectedTask.x2;
311
+ if (isChanged) {
312
+ if (rtl) {
313
+ changedTask.start = dateByX(newX2, selectedTask.x2, selectedTask.start, xStep, timeStep);
314
+ }
315
+ else {
316
+ changedTask.end = dateByX(newX2, selectedTask.x2, selectedTask.end, xStep, timeStep);
317
+ }
318
+ const [progressWidth, progressX] = progressWithByParams(changedTask.x1, changedTask.x2, changedTask.progress, rtl);
319
+ changedTask.progressWidth = progressWidth;
320
+ changedTask.progressX = progressX;
321
+ }
322
+ break;
323
+ }
324
+ case 'move': {
325
+ const [newMoveX1, newMoveX2] = moveByX(svgX - initEventX1Delta, xStep, selectedTask);
326
+ isChanged = newMoveX1 !== selectedTask.x1;
327
+ if (isChanged) {
328
+ changedTask.start = dateByX(newMoveX1, selectedTask.x1, selectedTask.start, xStep, timeStep);
329
+ changedTask.end = dateByX(newMoveX2, selectedTask.x2, selectedTask.end, xStep, timeStep);
330
+ changedTask.x1 = newMoveX1;
331
+ changedTask.x2 = newMoveX2;
332
+ const [progressWidth, progressX] = progressWithByParams(changedTask.x1, changedTask.x2, changedTask.progress, rtl);
333
+ changedTask.progressWidth = progressWidth;
334
+ changedTask.progressX = progressX;
335
+ }
336
+ break;
337
+ }
338
+ }
339
+ return { isChanged, changedTask };
340
+ };
341
+ /**
342
+ * Calculate current date indicator
343
+ * @param start
344
+ * @param end
345
+ * @param dates
346
+ * @param columnWidth
347
+ * @returns
348
+ */
349
+ function calculateCurrentDateCalculator(dates, columnWidth) {
350
+ return taskXCoordinate(new Date(), dates, columnWidth);
351
+ }
352
+ /**
353
+ * Calculate the coordinate of projections
354
+ * @param start
355
+ * @param end
356
+ * @param dates
357
+ * @param columnWidth
358
+ * @returns
359
+ */
360
+ function calculateProjection(start, end, dates, columnWidth) {
361
+ return {
362
+ x0: taskXCoordinate(start, dates, columnWidth),
363
+ xf: taskXCoordinate(end, dates, columnWidth),
364
+ };
365
+ }
366
+
367
+ var hexToCssFilter = createCommonjsModule(function (module, exports) {
368
+ (function (global, factory) {
369
+ factory(exports) ;
370
+ }(commonjsGlobal, (function (exports) {
371
+ /*! *****************************************************************************
372
+ Copyright (c) Microsoft Corporation.
373
+
374
+ Permission to use, copy, modify, and/or distribute this software for any
375
+ purpose with or without fee is hereby granted.
376
+
377
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
378
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
379
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
380
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
381
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
382
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
383
+ PERFORMANCE OF THIS SOFTWARE.
384
+ ***************************************************************************** */
385
+
386
+ function __read(o, n) {
387
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
388
+ if (!m) return o;
389
+ var i = m.call(o), r, ar = [], e;
390
+ try {
391
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
392
+ }
393
+ catch (error) { e = { error: error }; }
394
+ finally {
395
+ try {
396
+ if (r && !r.done && (m = i["return"])) m.call(i);
397
+ }
398
+ finally { if (e) throw e.error; }
399
+ }
400
+ return ar;
401
+ }
402
+
403
+ var Color = /** @class */ (function () {
404
+ function Color(r, g, b) {
405
+ this.r = 0;
406
+ this.g = 0;
407
+ this.b = 0;
408
+ this.set(r, g, b);
409
+ }
410
+ Color.prototype.set = function (r, g, b) {
411
+ this.r = this.clamp(r);
412
+ this.g = this.clamp(g);
413
+ this.b = this.clamp(b);
414
+ };
415
+ /**
416
+ * Applying cals to get CSS filter for hue-rotate
417
+ *
418
+ * @param {number} [angle=0]
419
+ * @memberof Color
420
+ */
421
+ Color.prototype.hueRotate = function (angle) {
422
+ if (angle === void 0) { angle = 0; }
423
+ angle = (angle / 180) * Math.PI;
424
+ var sin = Math.sin(angle);
425
+ var cos = Math.cos(angle);
426
+ this.multiply([
427
+ 0.213 + cos * 0.787 - sin * 0.213,
428
+ 0.715 - cos * 0.715 - sin * 0.715,
429
+ 0.072 - cos * 0.072 + sin * 0.928,
430
+ 0.213 - cos * 0.213 + sin * 0.143,
431
+ 0.715 + cos * 0.285 + sin * 0.14,
432
+ 0.072 - cos * 0.072 - sin * 0.283,
433
+ 0.213 - cos * 0.213 - sin * 0.787,
434
+ 0.715 - cos * 0.715 + sin * 0.715,
435
+ 0.072 + cos * 0.928 + sin * 0.072,
436
+ ]);
437
+ };
438
+ /**
439
+ * Applying cals to get CSS filter for grayscale
440
+ *
441
+ * @param {number} [value=1]
442
+ * @memberof Color
443
+ */
444
+ Color.prototype.grayscale = function (value) {
445
+ if (value === void 0) { value = 1; }
446
+ this.multiply([
447
+ 0.2126 + 0.7874 * (1 - value),
448
+ 0.7152 - 0.7152 * (1 - value),
449
+ 0.0722 - 0.0722 * (1 - value),
450
+ 0.2126 - 0.2126 * (1 - value),
451
+ 0.7152 + 0.2848 * (1 - value),
452
+ 0.0722 - 0.0722 * (1 - value),
453
+ 0.2126 - 0.2126 * (1 - value),
454
+ 0.7152 - 0.7152 * (1 - value),
455
+ 0.0722 + 0.9278 * (1 - value),
456
+ ]);
457
+ };
458
+ /**
459
+ * Applying cals to get CSS filter for sepia
460
+ *
461
+ * @param {number} [value=1]
462
+ * @memberof Color
463
+ */
464
+ Color.prototype.sepia = function (value) {
465
+ if (value === void 0) { value = 1; }
466
+ this.multiply([
467
+ 0.393 + 0.607 * (1 - value),
468
+ 0.769 - 0.769 * (1 - value),
469
+ 0.189 - 0.189 * (1 - value),
470
+ 0.349 - 0.349 * (1 - value),
471
+ 0.686 + 0.314 * (1 - value),
472
+ 0.168 - 0.168 * (1 - value),
473
+ 0.272 - 0.272 * (1 - value),
474
+ 0.534 - 0.534 * (1 - value),
475
+ 0.131 + 0.869 * (1 - value),
476
+ ]);
477
+ };
478
+ /**
479
+ * Applying cals to get CSS filter for saturate
480
+ *
481
+ * @param {number} [value=1]
482
+ * @memberof Color
483
+ */
484
+ Color.prototype.saturate = function (value) {
485
+ if (value === void 0) { value = 1; }
486
+ this.multiply([
487
+ 0.213 + 0.787 * value,
488
+ 0.715 - 0.715 * value,
489
+ 0.072 - 0.072 * value,
490
+ 0.213 - 0.213 * value,
491
+ 0.715 + 0.285 * value,
492
+ 0.072 - 0.072 * value,
493
+ 0.213 - 0.213 * value,
494
+ 0.715 - 0.715 * value,
495
+ 0.072 + 0.928 * value,
496
+ ]);
497
+ };
498
+ Color.prototype.multiply = function (matrix) {
499
+ // These values are needed. It's correct because the returned values will change
500
+ var newR = this.clamp(this.r * matrix[0] + this.g * matrix[1] + this.b * matrix[2]);
501
+ var newG = this.clamp(this.r * matrix[3] + this.g * matrix[4] + this.b * matrix[5]);
502
+ var newB = this.clamp(this.r * matrix[6] + this.g * matrix[7] + this.b * matrix[8]);
503
+ this.r = newR;
504
+ this.g = newG;
505
+ this.b = newB;
506
+ };
507
+ /**
508
+ * Applying cals to get CSS filter for brightness
509
+ *
510
+ * @param {number} [value=1]
511
+ * @memberof Color
512
+ */
513
+ Color.prototype.brightness = function (value) {
514
+ if (value === void 0) { value = 1; }
515
+ this.linear(value);
516
+ };
517
+ /**
518
+ * Applying cals to get CSS filter for contrast
519
+ *
520
+ * @param {number} [value=1]
521
+ * @memberof Color
522
+ */
523
+ Color.prototype.contrast = function (value) {
524
+ if (value === void 0) { value = 1; }
525
+ this.linear(value, -(0.5 * value) + 0.5);
526
+ };
527
+ Color.prototype.linear = function (slope, intercept) {
528
+ if (slope === void 0) { slope = 1; }
529
+ if (intercept === void 0) { intercept = 0; }
530
+ this.r = this.clamp(this.r * slope + intercept * 255);
531
+ this.g = this.clamp(this.g * slope + intercept * 255);
532
+ this.b = this.clamp(this.b * slope + intercept * 255);
533
+ };
534
+ /**
535
+ * Applying cals to get CSS filter for invert
536
+ *
537
+ * @param {number} [value=1]
538
+ * @memberof Color
539
+ */
540
+ Color.prototype.invert = function (value) {
541
+ if (value === void 0) { value = 1; }
542
+ this.r = this.clamp((value + (this.r / 255) * (1 - 2 * value)) * 255);
543
+ this.g = this.clamp((value + (this.g / 255) * (1 - 2 * value)) * 255);
544
+ this.b = this.clamp((value + (this.b / 255) * (1 - 2 * value)) * 255);
545
+ };
546
+ /**
547
+ * transform RGB into HSL values
548
+ *
549
+ * @returns {HSLData}
550
+ * @memberof Color
551
+ */
552
+ Color.prototype.hsl = function () {
553
+ var red = this.r / 255;
554
+ var green = this.g / 255;
555
+ var blue = this.b / 255;
556
+ // find greatest and smallest channel values
557
+ var max = Math.max(red, green, blue);
558
+ var min = Math.min(red, green, blue);
559
+ var hue = 0;
560
+ var saturation = 0;
561
+ var lightness = (max + min) / 2;
562
+ // If min and max have the same values, it means
563
+ // the given color is achromatic
564
+ if (max === min) {
565
+ return {
566
+ h: 0,
567
+ s: 0,
568
+ l: lightness * 100,
569
+ };
570
+ }
571
+ // Adding delta value of greatest and smallest channel values
572
+ var delta = max - min;
573
+ saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);
574
+ if (max === red) {
575
+ hue = (green - blue) / delta + (green < blue ? 6 : 0);
576
+ }
577
+ else if (max === green) {
578
+ hue = (blue - red) / delta + 2;
579
+ }
580
+ else if (max === blue) {
581
+ hue = (red - green) / delta + 4;
582
+ }
583
+ hue /= 6;
584
+ return {
585
+ h: hue * 100,
586
+ s: saturation * 100,
587
+ l: lightness * 100,
588
+ };
589
+ };
590
+ /**
591
+ * Normalize the value to follow the min and max for RGB colors
592
+ * min: 0
593
+ * max: 255
594
+ *
595
+ * @private
596
+ * @param {number} value
597
+ * @returns {number}
598
+ * @memberof Color
599
+ */
600
+ Color.prototype.clamp = function (value) {
601
+ // Minimum RGB Value = 0;
602
+ // Maximum RGB Value = 255;
603
+ return Math.min(Math.max(value, 0), 255);
604
+ };
605
+ return Color;
606
+ }());
607
+
608
+ var Solver = /** @class */ (function () {
609
+ function Solver(target, options) {
610
+ this.target = target;
611
+ this.targetHSL = target.hsl();
612
+ this.options = Object.assign({},
613
+ // Adding default values for options
614
+ {
615
+ acceptanceLossPercentage: 5,
616
+ maxChecks: 15,
617
+ }, options);
618
+ // All the calcs done by the library to generate
619
+ // a CSS Filter are based on the color `#000`
620
+ // in this case, `rgb(0, 0, 0)`
621
+ // Please make sure the background of the element
622
+ // is `#000` for better performance
623
+ // and color similarity.
624
+ this.reusedColor = new Color(0, 0, 0);
625
+ }
626
+ /**
627
+ * Returns the solved values for the
628
+ *
629
+ * @returns {(SPSAPayload & { filter: string; })}
630
+ * @memberof Solver
631
+ */
632
+ Solver.prototype.solve = function () {
633
+ var result = this.solveNarrow(this.solveWide());
634
+ return {
635
+ values: result.values,
636
+ called: result.called,
637
+ loss: result.loss,
638
+ filter: this.css(result.values),
639
+ };
640
+ };
641
+ /**
642
+ * Solve wide values based on the wide values for RGB and HSL values
643
+ *
644
+ * @private
645
+ * @returns {SPSAPayload}
646
+ * @memberof Solver
647
+ */
648
+ Solver.prototype.solveWide = function () {
649
+ var A = 5;
650
+ var c = 15;
651
+ // Wide values for RGB and HSL values
652
+ // the values in the order: [`r`, `g`, `b`, `h`, `s`, `l`]
653
+ var a = [60, 180, 18000, 600, 1.2, 1.2];
654
+ var best = { loss: Infinity };
655
+ var counter = 0;
656
+ while (best.loss > this.options.acceptanceLossPercentage) {
657
+ var initialFilterValues = [50, 20, 3750, 50, 100, 100];
658
+ var result = this.spsa({
659
+ A: A,
660
+ a: a,
661
+ c: c,
662
+ values: initialFilterValues,
663
+ // for wide values we should use the double of tries in
664
+ // comparison of `solveNarrow()` method
665
+ maxTriesInLoop: 1000,
666
+ });
667
+ if (result.loss < best.loss) {
668
+ best = result;
669
+ }
670
+ counter += 1;
671
+ if (counter >= this.options.maxChecks) {
672
+ break;
673
+ }
674
+ }
675
+ return Object.assign({}, best, { called: counter });
676
+ };
677
+ /**
678
+ * Solve narrow values based on the wide values for the filter
679
+ *
680
+ * @private
681
+ * @param {SPSAPayload} wide
682
+ * @returns {SPSAPayload}
683
+ * @memberof Solver
684
+ */
685
+ Solver.prototype.solveNarrow = function (wide) {
686
+ var A = wide.loss;
687
+ var c = 2;
688
+ var A1 = A + 1;
689
+ // Narrow values for RGB and HSL values
690
+ // the values in the order: [`r`, `g`, `b`, `h`, `s`, `l`]
691
+ var a = [0.25 * A1, 0.25 * A1, A1, 0.25 * A1, 0.2 * A1, 0.2 * A1];
692
+ return this.spsa({
693
+ A: A,
694
+ a: a,
695
+ c: c,
696
+ values: wide.values,
697
+ maxTriesInLoop: 500,
698
+ called: wide.called,
699
+ });
700
+ };
701
+ /**
702
+ * Returns final value based on the current filter order
703
+ * to get the order, please check the returned value
704
+ * in `css()` method
705
+ *
706
+ * @private
707
+ * @param {number} value
708
+ * @param {number} idx
709
+ * @returns {number}
710
+ * @memberof Solver
711
+ */
712
+ Solver.prototype.fixValueByFilterIDX = function (value, idx) {
713
+ var max = 100;
714
+ // Fixing max, minimum and value by filter
715
+ if (idx === 2 /* saturate */) {
716
+ max = 7500;
717
+ }
718
+ else if (idx === 4 /* brightness */ || idx === 5 /* contrast */) {
719
+ max = 200;
720
+ }
721
+ if (idx === 3 /* hue-rotate */) {
722
+ if (value > max) {
723
+ value %= max;
724
+ }
725
+ else if (value < 0) {
726
+ value = max + (value % max);
727
+ }
728
+ }
729
+ // Checking if value is below the minimum or above
730
+ // the maximum allowed by filter
731
+ else if (value < 0) {
732
+ value = 0;
733
+ }
734
+ else if (value > max) {
735
+ value = max;
736
+ }
737
+ return value;
738
+ };
739
+ Solver.prototype.spsa = function (_a) {
740
+ var A = _a.A, a = _a.a, c = _a.c, values = _a.values, _b = _a.maxTriesInLoop, maxTriesInLoop = _b === void 0 ? 500 : _b, _c = _a.called, called = _c === void 0 ? 0 : _c;
741
+ var alpha = 1;
742
+ var gamma = 0.16666666666666666;
743
+ var best = null;
744
+ var bestLoss = Infinity;
745
+ var deltas = new Array(6);
746
+ var highArgs = new Array(6);
747
+ var lowArgs = new Array(6);
748
+ // Size of all CSS filters to be applied to get the correct color
749
+ var filtersToBeAppliedSize = 6;
750
+ for (var key = 0; key < maxTriesInLoop; key++) {
751
+ var ck = c / Math.pow(key + 1, gamma);
752
+ for (var i = 0; i < filtersToBeAppliedSize; i++) {
753
+ deltas[i] = Math.random() > 0.5 ? 1 : -1;
754
+ highArgs[i] = values[i] + ck * deltas[i];
755
+ lowArgs[i] = values[i] - ck * deltas[i];
756
+ }
757
+ var lossDiff = this.loss(highArgs) - this.loss(lowArgs);
758
+ for (var i = 0; i < filtersToBeAppliedSize; i++) {
759
+ var g = (lossDiff / (2 * ck)) * deltas[i];
760
+ var ak = a[i] / Math.pow(A + key + 1, alpha);
761
+ values[i] = this.fixValueByFilterIDX(values[i] - ak * g, i);
762
+ }
763
+ var loss = this.loss(values);
764
+ if (loss < bestLoss) {
765
+ best = values.slice(0);
766
+ bestLoss = loss;
767
+ }
768
+ }
769
+ return { values: best, loss: bestLoss, called: called };
770
+ };
771
+ /**
772
+ * Checks how much is the loss for the filter in RGB and HSL colors
773
+ *
774
+ * @private
775
+ * @param {SPSAPayload['values']} filters
776
+ * @returns {number}
777
+ * @memberof Solver
778
+ */
779
+ Solver.prototype.loss = function (filters) {
780
+ // Argument as an Array of percentages.
781
+ var color = this.reusedColor;
782
+ // Resetting the color to black in case
783
+ // it was called more than once
784
+ color.set(0, 0, 0);
785
+ color.invert(filters[0] / 100);
786
+ color.sepia(filters[1] / 100);
787
+ color.saturate(filters[2] / 100);
788
+ color.hueRotate(filters[3] * 3.6);
789
+ color.brightness(filters[4] / 100);
790
+ color.contrast(filters[5] / 100);
791
+ var colorHSL = color.hsl();
792
+ return (Math.abs(color.r - this.target.r) +
793
+ Math.abs(color.g - this.target.g) +
794
+ Math.abs(color.b - this.target.b) +
795
+ Math.abs(colorHSL.h - this.targetHSL.h) +
796
+ Math.abs(colorHSL.s - this.targetHSL.s) +
797
+ Math.abs(colorHSL.l - this.targetHSL.l));
798
+ };
799
+ /**
800
+ * Returns the CSS filter list for the received HEX color
801
+ *
802
+ * @private
803
+ * @param {number[]} filters
804
+ * @returns {string}
805
+ * @memberof Solver
806
+ */
807
+ Solver.prototype.css = function (filters) {
808
+ var formatCssFilterValueByMultiplier = function (idx, multiplier) {
809
+ if (multiplier === void 0) { multiplier = 1; }
810
+ return Math.round(filters[idx] * multiplier);
811
+ };
812
+ return [
813
+ "invert(" + formatCssFilterValueByMultiplier(0) + "%)",
814
+ "sepia(" + formatCssFilterValueByMultiplier(1) + "%)",
815
+ "saturate(" + formatCssFilterValueByMultiplier(2) + "%)",
816
+ "hue-rotate(" + formatCssFilterValueByMultiplier(3, 3.6) + "deg)",
817
+ "brightness(" + formatCssFilterValueByMultiplier(4) + "%)",
818
+ "contrast(" + formatCssFilterValueByMultiplier(5) + "%);",
819
+ ].join(' ');
820
+ };
821
+ return Solver;
822
+ }());
823
+
824
+ /**
825
+ * Transform a CSS Color from Hexadecimal to RGB color
826
+ *
827
+ * @param {string} hex hexadecimal color
828
+ * @returns {([number, number, number] | [])} array with the RGB colors or empty array
829
+ */
830
+ var hexToRgb = function (hex) {
831
+ if (hex.length === 4) {
832
+ return [parseInt("0x" + hex[1] + hex[1]), parseInt("0x" + hex[2] + hex[2]), parseInt("0x" + hex[3] + hex[3])];
833
+ }
834
+ if (hex.length === 7) {
835
+ return [parseInt("0x" + hex[1] + hex[2]), parseInt("0x" + hex[3] + hex[4]), parseInt("0x" + hex[5] + hex[6])];
836
+ }
837
+ return [];
838
+ };
839
+ var isNumeric = function (n) { return !isNaN(parseFloat(n)) && isFinite(n); };
840
+ // Memory cache for the computed results to avoid multiple
841
+ // calculations for the same color
842
+ var results = {};
843
+ /**
844
+ * A function that transforms a HEX color into CSS filters
845
+ *
846
+ * @param colorValue string hexadecimal color
847
+ * @param opts HexToCssConfiguration function configuration
848
+ *
849
+ */
850
+ var hexToCSSFilter = function (colorValue, opts) {
851
+ var _a;
852
+ if (opts === void 0) { opts = {}; }
853
+ var red;
854
+ var green;
855
+ var blue;
856
+ if (results[colorValue] && !opts.forceFilterRecalculation) {
857
+ return Object.assign({}, results[colorValue], { cache: true });
858
+ }
859
+ var color;
860
+ try {
861
+ _a = __read(hexToRgb(colorValue), 3), red = _a[0], green = _a[1], blue = _a[2];
862
+ if (!isNumeric(red) || !isNumeric(green) || !isNumeric(blue)) {
863
+ throw new Error("hextToRgb returned an invalid value for '" + colorValue + "'");
864
+ }
865
+ color = new Color(Number(red), Number(green), Number(blue));
866
+ }
867
+ catch (error) {
868
+ throw new Error("Color value should be in HEX format. " + error);
869
+ }
870
+ var solver = new Solver(color, Object.assign({},
871
+ // `HexToCssConfiguration` Defaults
872
+ {
873
+ acceptanceLossPercentage: 5,
874
+ maxChecks: 30,
875
+ forceFilterRecalculation: false,
876
+ }, opts));
877
+ return (results[colorValue] = Object.assign({}, solver.solve(), {
878
+ hex: colorValue,
879
+ rgb: [red, green, blue],
880
+ cache: false,
881
+ }));
882
+ };
883
+ /**
884
+ * A function that clears cached results
885
+ *
886
+ * @param {string} key? HEX string value passed previously `#24639C`. If not passed, it clears all cached results
887
+ * @returns void
888
+ */
889
+ var clearCache = function (key) {
890
+ if (!key) {
891
+ results = {};
892
+ }
893
+ else if (results[key]) {
894
+ delete results[key];
895
+ }
896
+ };
897
+
898
+ exports.clearCache = clearCache;
899
+ exports.hexToCSSFilter = hexToCSSFilter;
900
+
901
+ Object.defineProperty(exports, '__esModule', { value: true });
902
+
903
+ })));
904
+ });
905
+
906
+ const kupGridRendererCss = ".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}";
907
+
908
+ const KupGridRenderer = /*@__PURE__*/ proxyCustomElement(class KupGridRenderer extends HTMLElement {
909
+ constructor() {
910
+ super();
911
+ this.__registerHost();
912
+ this.tasks = undefined;
913
+ this.dates = undefined;
914
+ this.ganttEvent = undefined;
915
+ this.selectedTask = undefined;
916
+ this.rowHeight = 0;
917
+ this.columnWidth = 0;
918
+ this.timeStep = 0;
919
+ this.taskHeight = 0;
920
+ this.arrowColor = '';
921
+ this.arrowIndent = 0;
922
+ this.fontFamily = '';
923
+ this.fontSize = '';
924
+ this.rtl = false;
925
+ this.hideLabel = false;
926
+ this.showSecondaryDates = false;
927
+ this.currentDateIndicator = undefined;
928
+ this.projection = undefined;
929
+ this.readOnly = false;
930
+ this.gridProps = undefined;
931
+ this.dateChange = undefined;
932
+ this.progressChange = undefined;
933
+ this.doubleClick = undefined;
934
+ this.barClick = undefined;
935
+ this.barDblClick = undefined;
936
+ this.barContextMenu = undefined;
937
+ this.delete = undefined;
938
+ this.setFailedTask = undefined;
939
+ this.setSelectedTask = undefined;
940
+ this.eventStart = undefined;
941
+ this.eMouseDown = undefined;
942
+ this.setGanttEvent = undefined;
943
+ this.xStep = 0;
944
+ this.initEventX1Delta = 0;
945
+ this.initEventXClick = 0;
946
+ this.isMoving = false;
947
+ this.point = undefined;
948
+ this.svg = undefined;
949
+ }
950
+ //---- Lifecycle hooks ----
951
+ componentDidLoad() {
952
+ this.point = this.createSVGPoint();
953
+ this.updateXStep();
954
+ }
955
+ createSVGPoint() {
956
+ if (this.svg) {
957
+ return this.svg.createSVGPoint();
958
+ }
959
+ return undefined;
960
+ }
961
+ /*-------------------------------------------------*/
962
+ /* W A T C H E R S */
963
+ /*-------------------------------------------------*/
964
+ updateXStep() {
965
+ // Calculate xStep whenever columnWidth, dates, or timeStep props change
966
+ const dateDelta = this.dates[1].getTime() -
967
+ this.dates[0].getTime() -
968
+ this.dates[1].getTimezoneOffset() * 60 * 1000 +
969
+ this.dates[0].getTimezoneOffset() * 60 * 1000;
970
+ const newXStep = (this.timeStep * this.columnWidth) / dateDelta;
971
+ this.xStep = newXStep;
972
+ }
973
+ updateSvgMove() {
974
+ const handleMouseMove = async (event) => {
975
+ var _a, _b;
976
+ if (!this.ganttEvent.changedTask || !this.point || !this.svg)
977
+ return;
978
+ event.preventDefault();
979
+ this.point.x = event.clientX;
980
+ 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());
981
+ const { isChanged, changedTask } = handleTaskBySVGMouseEvent(cursor.x, this.ganttEvent.action, this.ganttEvent.changedTask, this.xStep, this.timeStep, this.initEventX1Delta, this.rtl);
982
+ if (isChanged) {
983
+ this.setGanttEvent(Object.assign(Object.assign({}, this.ganttEvent), { action: this.ganttEvent.action, changedTask }));
984
+ }
985
+ };
986
+ const handleMouseUp = async (event) => {
987
+ var _a, _b;
988
+ const { action, originalSelectedTask, changedTask } = this.ganttEvent;
989
+ if (!changedTask ||
990
+ !this.point ||
991
+ !this.svg ||
992
+ !originalSelectedTask)
993
+ return;
994
+ event.preventDefault();
995
+ this.point.x = event.clientX;
996
+ 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());
997
+ const { changedTask: newChangedTask } = handleTaskBySVGMouseEvent(cursor.x, action, changedTask, this.xStep, this.timeStep, this.initEventX1Delta, this.rtl);
998
+ const isNotLikeOriginal = originalSelectedTask.start !== newChangedTask.start ||
999
+ originalSelectedTask.end !== newChangedTask.end ||
1000
+ originalSelectedTask.progress !== newChangedTask.progress;
1001
+ // remove listeners
1002
+ this.svg.removeEventListener('mousemove', handleMouseMove);
1003
+ this.svg.removeEventListener('mouseup', handleMouseUp);
1004
+ this.setGanttEvent({ action: '' });
1005
+ this.isMoving = false;
1006
+ // custom operation start
1007
+ let operationSuccess = true;
1008
+ if ((action === 'move' || action === 'end' || action === 'start') &&
1009
+ this.dateChange &&
1010
+ isNotLikeOriginal) {
1011
+ try {
1012
+ const result = await this.dateChange(newChangedTask, newChangedTask.barChildren);
1013
+ if (result !== undefined) {
1014
+ operationSuccess = result;
1015
+ }
1016
+ }
1017
+ catch (error) {
1018
+ operationSuccess = false;
1019
+ }
1020
+ }
1021
+ else if (this.progressChange && isNotLikeOriginal) {
1022
+ try {
1023
+ const result = this.progressChange(newChangedTask, newChangedTask.barChildren);
1024
+ if (result !== undefined) {
1025
+ operationSuccess = result;
1026
+ }
1027
+ }
1028
+ catch (error) {
1029
+ operationSuccess = false;
1030
+ }
1031
+ }
1032
+ // If operation is failed - return old state
1033
+ if (!operationSuccess) {
1034
+ this.setFailedTask(originalSelectedTask);
1035
+ }
1036
+ };
1037
+ if (!this.isMoving &&
1038
+ (this.ganttEvent.action === 'move' ||
1039
+ this.ganttEvent.action === 'end' ||
1040
+ this.ganttEvent.action === 'start' ||
1041
+ this.ganttEvent.action === 'progress') &&
1042
+ this.svg) {
1043
+ this.svg.addEventListener('mousemove', handleMouseMove);
1044
+ this.svg.addEventListener('mouseup', handleMouseUp);
1045
+ this.isMoving = true;
1046
+ }
1047
+ }
1048
+ hasMovedHorizontally(event) {
1049
+ if (this.readOnly) {
1050
+ return false;
1051
+ }
1052
+ return this.initEventXClick !== event.clientX;
1053
+ }
1054
+ handleBarEventStart(action, task, event) {
1055
+ var _a;
1056
+ if (!event) {
1057
+ if (action === 'select') {
1058
+ this.setSelectedTask(task.id);
1059
+ }
1060
+ }
1061
+ else if (isKeyboardEvent(event)) {
1062
+ if (action === 'delete') {
1063
+ if (this.delete) {
1064
+ try {
1065
+ const result = this.delete(task);
1066
+ if (result !== undefined && result) {
1067
+ this.setGanttEvent({ action, changedTask: task });
1068
+ // this.ganttEvent = { action, changedTask: task }
1069
+ }
1070
+ }
1071
+ catch (error) {
1072
+ console.error('Error on Delete. ' + error);
1073
+ }
1074
+ }
1075
+ }
1076
+ }
1077
+ else if (action === 'mouseenter') {
1078
+ if (!this.ganttEvent.action) {
1079
+ this.setGanttEvent({
1080
+ action,
1081
+ changedTask: task,
1082
+ originalSelectedTask: task,
1083
+ });
1084
+ }
1085
+ }
1086
+ else if (action === 'mouseleave') {
1087
+ if (this.ganttEvent.action === 'mouseenter') {
1088
+ this.setGanttEvent({
1089
+ action: '',
1090
+ });
1091
+ }
1092
+ }
1093
+ else if (action === 'dblclick') {
1094
+ this.doubleClick && this.doubleClick(task);
1095
+ }
1096
+ else if (action === 'click') {
1097
+ const skipClick = this.hasMovedHorizontally(event);
1098
+ !skipClick && this.barClick && this.barClick(task);
1099
+ }
1100
+ else if (action === 'contextmenu') {
1101
+ event.preventDefault();
1102
+ this.barContextMenu && this.barContextMenu(event, task);
1103
+ }
1104
+ else if (action === 'move') {
1105
+ if (!this.svg || !this.point)
1106
+ return;
1107
+ this.point.x = event.clientX;
1108
+ const cursor = this.point.matrixTransform((_a = this.svg.getScreenCTM()) === null || _a === void 0 ? void 0 : _a.inverse());
1109
+ this.initEventX1Delta = cursor.x - task.x1;
1110
+ this.initEventXClick = event.clientX;
1111
+ this.setGanttEvent({
1112
+ action,
1113
+ changedTask: task,
1114
+ originalSelectedTask: task,
1115
+ });
1116
+ }
1117
+ else {
1118
+ this.setGanttEvent({
1119
+ action,
1120
+ changedTask: task,
1121
+ originalSelectedTask: task,
1122
+ });
1123
+ }
1124
+ }
1125
+ getTaskIcon(bar) {
1126
+ const cssFilter = hexToCssFilter.hexToCSSFilter(bar.color);
1127
+ return (h("image", { href: bar.url, filter: cssFilter.filter.replace(';', ''), x: bar.x, y: bar.y, width: bar.width, height: bar.height }));
1128
+ }
1129
+ renderKupBar(task, isSelected, isDateResizable, isProgressChangeable) {
1130
+ var _a, _b, _c;
1131
+ 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) => {
1132
+ this.handleBarEventStart('progress', task, e);
1133
+ } }))), task.icon &&
1134
+ task.icon.url &&
1135
+ this.getTaskIcon({
1136
+ color: (_c = task.icon.color) !== null && _c !== void 0 ? _c : '#000000',
1137
+ url: task.icon.url,
1138
+ width: task.height / 2 + 'px',
1139
+ height: task.height / 2 + 'px',
1140
+ x: task.x1 + (task.x2 - task.x1) - task.height / 2 / 2,
1141
+ y: task.y -
1142
+ task.height / 2 / 2 / 2 +
1143
+ (this.showSecondaryDates ? task.height / 2 : 0),
1144
+ })));
1145
+ }
1146
+ renderKupBarDisplay(x, y, width, height, progressX, progressWidth, barCornerRadius, styles, isSelected, isDateMovable, task, xSecondary, widthSecondary) {
1147
+ if (this.showSecondaryDates && typeof xSecondary !== 'undefined') {
1148
+ const halfHeight = height / 2;
1149
+ return (h("g", { onMouseDown: (e) => isDateMovable &&
1150
+ 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) })));
1151
+ }
1152
+ return (h("g", { onMouseDown: (e) => {
1153
+ isDateMovable && this.handleBarEventStart('move', task, e);
1154
+ } }, h("rect", { x: x, width: width, y: y, height: height, ry: barCornerRadius, rx: barCornerRadius, fill: this.getBarColor(isSelected, styles), class: 'barBackground' }), h("rect", { x: progressX, width: progressWidth, y: y, height: height, ry: barCornerRadius, rx: barCornerRadius, fill: this.getProcessColor(isSelected, styles) })));
1155
+ }
1156
+ renderKupBarDateHandle(x, y, width, height, barCornerRadius, task, eventType) {
1157
+ return (h("rect", { x: x, y: y, width: width, height: height, class: 'barHandle', ry: barCornerRadius, rx: barCornerRadius, onMouseDown: (e) => this.handleBarEventStart(eventType, task, e) }));
1158
+ }
1159
+ renderKupBarSmall(task, isSelected, isDateMovable, isProgressChangeable) {
1160
+ 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, isDateMovable, task), h("g", { class: "handleGroup" }, isProgressChangeable && (h("polygon", { class: 'barHandle', points: this.calculateProgressPoint(task, 'small'), onMouseDown: (e) => {
1161
+ this.handleBarEventStart('progress', task, e);
1162
+ } })))));
1163
+ }
1164
+ renderKupBarTimeLine(task, col) {
1165
+ return (h("g", { "tab-index": 0 }, h("rect", { fill: col, x: "0", width: "100%", y: task.y, height: task.height, rx: 0, ry: 0 }), task.barChildren.map((bar) => {
1166
+ var _a;
1167
+ return (h(Fragment, null, h("rect", { style: { cursor: 'pointer' }, key: bar.id, fill: bar.styles.backgroundColor, x: bar.x1, width: bar.x2 - bar.x1, y: bar.y, height: bar.height, rx: bar.barCornerRadius, ry: bar.barCornerRadius }), bar.icon &&
1168
+ bar.icon.url &&
1169
+ this.getTaskIcon({
1170
+ color: (_a = bar.icon.color) !== null && _a !== void 0 ? _a : '#000000',
1171
+ url: bar.icon.url,
1172
+ width: bar.height + 'px',
1173
+ height: bar.height + 'px',
1174
+ x: bar.x1 +
1175
+ (bar.x2 - bar.x1) -
1176
+ bar.height / 2,
1177
+ y: bar.y - bar.height / 2 / 2,
1178
+ })));
1179
+ })));
1180
+ }
1181
+ renderKupArrow(task, child) {
1182
+ const [path, trianglePoints] = this.rtl
1183
+ ? this.drownPathAndTriangleRTL(task, this.tasks[child.index], this.rowHeight, this.taskHeight, this.arrowIndent)
1184
+ : this.drownPathAndTriangle(task, this.tasks[child.index], this.rowHeight, this.taskHeight, this.arrowIndent);
1185
+ return (h("g", { class: "arrow" }, h("path", { "stroke-width": "1.5", d: path, fill: "none" }), h("polygon", { points: trianglePoints })));
1186
+ }
1187
+ drownPathAndTriangle(taskFrom, taskTo, rowHeight, taskHeight, arrowIndent) {
1188
+ const indexCompare = taskFrom.index > taskTo.index ? -1 : 1;
1189
+ const taskToEndPosition = taskTo.y + taskHeight / 2;
1190
+ const taskFromEndPosition = taskFrom.x2 + arrowIndent * 2;
1191
+ const taskFromHorizontalOffsetValue = taskFromEndPosition < taskTo.x1
1192
+ ? ''
1193
+ : `H ${taskTo.x1 - arrowIndent}`;
1194
+ const taskToHorizontalOffsetValue = taskFromEndPosition > taskTo.x1
1195
+ ? arrowIndent
1196
+ : taskTo.x1 - taskFrom.x2 - arrowIndent;
1197
+ const path = `M ${taskFrom.x2} ${taskFrom.y + taskHeight / 2}
1198
+ h ${arrowIndent}
1199
+ v ${(indexCompare * rowHeight) / 2}
1200
+ ${taskFromHorizontalOffsetValue}
1201
+ V ${taskToEndPosition}
1202
+ h ${taskToHorizontalOffsetValue}`;
1203
+ const trianglePoints = `${taskTo.x1},${taskToEndPosition}
1204
+ ${taskTo.x1 - 5},${taskToEndPosition - 5}
1205
+ ${taskTo.x1 - 5},${taskToEndPosition + 5}`;
1206
+ return [path, trianglePoints];
1207
+ }
1208
+ drownPathAndTriangleRTL(taskFrom, taskTo, rowHeight, taskHeight, arrowIndent) {
1209
+ const indexCompare = taskFrom.index > taskTo.index ? -1 : 1;
1210
+ const taskToEndPosition = taskTo.y + taskHeight / 2;
1211
+ const taskFromEndPosition = taskFrom.x1 - arrowIndent * 2;
1212
+ const taskFromHorizontalOffsetValue = taskFromEndPosition > taskTo.x2
1213
+ ? ''
1214
+ : `H ${taskTo.x2 + arrowIndent}`;
1215
+ const taskToHorizontalOffsetValue = taskFromEndPosition < taskTo.x2
1216
+ ? -arrowIndent
1217
+ : taskTo.x2 - taskFrom.x1 + arrowIndent;
1218
+ const path = `M ${taskFrom.x1} ${taskFrom.y + taskHeight / 2}
1219
+ h ${-arrowIndent}
1220
+ v ${(indexCompare * rowHeight) / 2}
1221
+ ${taskFromHorizontalOffsetValue}
1222
+ V ${taskToEndPosition}
1223
+ h ${taskToHorizontalOffsetValue}`;
1224
+ const trianglePoints = `${taskTo.x2},${taskToEndPosition}
1225
+ ${taskTo.x2 + 5},${taskToEndPosition + 5}
1226
+ ${taskTo.x2 + 5},${taskToEndPosition - 5}`;
1227
+ return [path, trianglePoints];
1228
+ }
1229
+ getBarColor(isSelected, styles) {
1230
+ return isSelected
1231
+ ? styles.backgroundSelectedColor
1232
+ : styles.backgroundColor;
1233
+ }
1234
+ getProcessColor(isSelected, styles) {
1235
+ return isSelected ? styles.progressSelectedColor : styles.progressColor;
1236
+ }
1237
+ calculateProgressPoint(task, type = 'bar') {
1238
+ return getProgressPoint(type == 'bar'
1239
+ ? +!this.rtl * task.progressWidth + task.progressX
1240
+ : task.progressWidth + task.x1, task.y, task.height);
1241
+ }
1242
+ render() {
1243
+ let y = 0;
1244
+ const gridRows = [];
1245
+ const rowLines = [
1246
+ h("line", { key: "RowLineFirst", x1: 0, y1: 0, x2: this.gridProps.svgWidth, y2: 0, class: "gridRowLine" }),
1247
+ ];
1248
+ for (const task of this.tasks) {
1249
+ gridRows.push(h("rect", { key: 'Row' + task.id, x: 0, y: y, width: this.gridProps.svgWidth, height: this.rowHeight, class: "gridRow" }));
1250
+ rowLines.push(h("line", { key: 'RowLine' + task.id, x1: 0, y1: y + this.rowHeight, x2: this.gridProps.svgWidth, y2: y + this.rowHeight, class: "gridRowLine" }));
1251
+ y += this.rowHeight;
1252
+ }
1253
+ const now = new Date();
1254
+ let tickX = 0;
1255
+ const ticks = [];
1256
+ for (let i = 0; i < this.dates.length; i++) {
1257
+ const date = this.dates[i];
1258
+ ticks.push(h("line", { key: date.getTime(), x1: tickX, y1: 0, x2: tickX, y2: y, class: "gridTick" }));
1259
+ if ((i + 1 !== this.dates.length &&
1260
+ date.getTime() < now.getTime() &&
1261
+ this.dates[i + 1].getTime() >= now.getTime()) ||
1262
+ // if current date is last
1263
+ (i !== 0 &&
1264
+ i + 1 === this.dates.length &&
1265
+ date.getTime() < now.getTime() &&
1266
+ addToDate(date, date.getTime() - this.dates[i - 1].getTime(), 'millisecond').getTime() >= now.getTime())) ;
1267
+ tickX += this.columnWidth;
1268
+ }
1269
+ return (h("svg", { 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", { class: "grid" }, h("g", { class: "rows" }, gridRows), h("g", { class: "rowLines" }, rowLines), h("g", { class: "ticks" }, ticks)), h("g", { 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", { class: "arrows", fill: this.arrowColor, stroke: this.arrowColor }, this.tasks.map((task) => {
1270
+ return task.barChildren.map((child) => {
1271
+ if (task.type !== 'timeline') {
1272
+ this.renderKupArrow(task, child);
1273
+ }
1274
+ });
1275
+ })), h("g", { class: "bar", "font-family": this.fontFamily, "font-size": this.fontSize }, this.tasks.map((task) => {
1276
+ const forbidResize = task.type === 'project';
1277
+ return (h("g", { onKeyDown: (e) => {
1278
+ switch (e.key) {
1279
+ case 'Delete': {
1280
+ if (!task.isDisabled)
1281
+ this.handleBarEventStart('delete', task, e);
1282
+ break;
1283
+ }
1284
+ }
1285
+ e.stopPropagation();
1286
+ }, onMouseEnter: (e) => {
1287
+ this.handleBarEventStart('mouseenter', task, e);
1288
+ }, onMouseLeave: (e) => {
1289
+ this.handleBarEventStart('mouseleave', task, e);
1290
+ }, onDblClick: () => {
1291
+ this.barDblClick(task);
1292
+ }, onClick: (e) => {
1293
+ this.handleBarEventStart('click', task, e);
1294
+ }, onContextMenu: (e) => {
1295
+ this.handleBarEventStart('contextmenu', task, e);
1296
+ }, onFocus: () => {
1297
+ this.handleBarEventStart('select', task);
1298
+ }, class: "task-wrapper" }, (() => {
1299
+ const props = {
1300
+ task: task,
1301
+ arrowIndent: this.arrowIndent,
1302
+ isDelete: !task.isDisabled,
1303
+ taskHeight: this.taskHeight,
1304
+ isSelected: !!this.selectedTask &&
1305
+ task.id ===
1306
+ this.selectedTask.id,
1307
+ rtl: this.rtl,
1308
+ hideLabel: this.hideLabel,
1309
+ };
1310
+ const styles = task.styles;
1311
+ const col = props.isSelected
1312
+ ? styles.backgroundSelectedColor
1313
+ : styles.backgroundColor;
1314
+ const isDateResizable = !this.readOnly &&
1315
+ !!this.dateChange &&
1316
+ !task.isDisabled &&
1317
+ !forbidResize;
1318
+ const isProgressChangeable = !this.readOnly &&
1319
+ !!this.progressChange &&
1320
+ !task.isDisabled;
1321
+ const isDateMovable = !this.readOnly &&
1322
+ !!this.dateChange &&
1323
+ !task.isDisabled;
1324
+ switch (task.typeInternal) {
1325
+ case 'project':
1326
+ return this.renderKupBar(task, props.isSelected, isDateResizable, isProgressChangeable);
1327
+ case 'smalltask':
1328
+ return this.renderKupBarSmall(task, props.isSelected, isDateMovable, isProgressChangeable);
1329
+ case 'timeline':
1330
+ return this.renderKupBarTimeLine(task, col);
1331
+ default:
1332
+ return this.renderKupBar(task, props.isSelected, isDateResizable, isProgressChangeable);
1333
+ }
1334
+ })()));
1335
+ })))));
1336
+ }
1337
+ static get watchers() { return {
1338
+ "columnWidth": ["updateXStep"],
1339
+ "dates": ["updateXStep"],
1340
+ "timeStep": ["updateXStep", "updateSvgMove"],
1341
+ "ganttEvent": ["updateSvgMove"],
1342
+ "xStep": ["updateSvgMove"],
1343
+ "svg": ["updateSvgMove"],
1344
+ "initEventX1Delta": ["updateSvgMove"],
1345
+ "point": ["updateSvgMove"],
1346
+ "rtl": ["updateSvgMove"],
1347
+ "onProgressChange": ["updateSvgMove"],
1348
+ "onDateChange": ["updateSvgMove"]
1349
+ }; }
1350
+ static get style() { return kupGridRendererCss; }
1351
+ }, [0, "kup-grid-renderer", {
1352
+ "tasks": [16],
1353
+ "dates": [16],
1354
+ "ganttEvent": [16],
1355
+ "selectedTask": [16],
1356
+ "rowHeight": [2, "row-height"],
1357
+ "columnWidth": [2, "column-width"],
1358
+ "timeStep": [2, "time-step"],
1359
+ "taskHeight": [2, "task-height"],
1360
+ "arrowColor": [1, "arrow-color"],
1361
+ "arrowIndent": [2, "arrow-indent"],
1362
+ "fontFamily": [1, "font-family"],
1363
+ "fontSize": [1, "font-size"],
1364
+ "rtl": [4],
1365
+ "hideLabel": [4, "hide-label"],
1366
+ "showSecondaryDates": [4, "show-secondary-dates"],
1367
+ "currentDateIndicator": [16],
1368
+ "projection": [16],
1369
+ "readOnly": [4, "read-only"],
1370
+ "gridProps": [16],
1371
+ "dateChange": [16],
1372
+ "progressChange": [16],
1373
+ "doubleClick": [16],
1374
+ "barClick": [16],
1375
+ "barDblClick": [16],
1376
+ "barContextMenu": [16],
1377
+ "delete": [16],
1378
+ "setFailedTask": [16],
1379
+ "setSelectedTask": [16],
1380
+ "eventStart": [16],
1381
+ "eMouseDown": [16],
1382
+ "setGanttEvent": [1040],
1383
+ "xStep": [32],
1384
+ "initEventX1Delta": [32],
1385
+ "initEventXClick": [32],
1386
+ "isMoving": [32],
1387
+ "point": [32],
1388
+ "svg": [32]
1389
+ }, undefined, {
1390
+ "columnWidth": ["updateXStep"],
1391
+ "dates": ["updateXStep"],
1392
+ "timeStep": ["updateXStep", "updateSvgMove"],
1393
+ "ganttEvent": ["updateSvgMove"],
1394
+ "xStep": ["updateSvgMove"],
1395
+ "svg": ["updateSvgMove"],
1396
+ "initEventX1Delta": ["updateSvgMove"],
1397
+ "point": ["updateSvgMove"],
1398
+ "rtl": ["updateSvgMove"],
1399
+ "onProgressChange": ["updateSvgMove"],
1400
+ "onDateChange": ["updateSvgMove"]
1401
+ }]);
1402
+ function defineCustomElement() {
1403
+ if (typeof customElements === "undefined") {
1404
+ return;
1405
+ }
1406
+ const components = ["kup-grid-renderer"];
1407
+ components.forEach(tagName => { switch (tagName) {
1408
+ case "kup-grid-renderer":
1409
+ if (!customElements.get(tagName)) {
1410
+ customElements.define(tagName, KupGridRenderer);
1411
+ }
1412
+ break;
1413
+ } });
1414
+ }
1415
+
1416
+ export { KupGridRenderer as K, calculateCurrentDateCalculator as a, calculateProjection as b, convertToBarTasks as c, defineCustomElement as d, removeHiddenTasks as r, sortTasks as s };