@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,1317 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-8f2f4159.js');
6
+ const kupDates = require('./kup-dates-0e59b05d.js');
7
+ const kupPlannerTimeFormatter = require('./kup-planner-time-formatter-a74e70f0.js');
8
+ const kupPlannerRendererHelper = require('./kup-planner-renderer-helper-c2394940.js');
9
+ const bar_helpers = require('./bar.helpers-f46a5a83.js');
10
+
11
+ const customTaskListHeaderModuleCss = ".custom-task-list-wrapper{display:flex;justify-content:space-around;max-width:330px;place-items:\"center\";text-align:center;align-items:center}.title{font-weight:bold;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toggler{max-width:max-content;padding:0 4px;text-align:right}.switch{position:relative;display:inline-block;width:30px;height:17px}.input{opacity:0;width:0;height:0}.input:checked+.slider{background-color:#003b77}.input:checked+.slider:before{-webkit-transform:translateX(13px);-ms-transform:translateX(13px);transform:translateX(13px)}.input:focus+.slider{box-shadow:0 0 1px #003b77}.slider{-webkit-transition:0.4s;cursor:pointer;background-color:#ccc;bottom:0;border-radius:17px;left:0;position:absolute;right:0;top:0;transition:0.4s}.slider:before{-webkit-transition:0.1s;background-color:white;border-radius:50%;bottom:2px;content:\"\";height:13px;left:2px;position:absolute;transition:0.1s;width:13px}.label{font-size:12px;padding:6px}.filter{font-size:12px}";
12
+
13
+ const KupCustomTaskListHeader = class {
14
+ constructor(hostRef) {
15
+ index.registerInstance(this, hostRef);
16
+ this.label = '';
17
+ this.doubleView = false;
18
+ this.setDoubleView = undefined;
19
+ this.fontFamily = undefined;
20
+ this.fontSize = undefined;
21
+ }
22
+ render() {
23
+ return (index.h("div", { class: "custom-task-list-wrapper", style: {
24
+ height: '50px',
25
+ fontFamily: this.fontFamily,
26
+ fontSize: this.fontSize,
27
+ } }, index.h("div", { class: "title" }, index.h("span", null, this.label)), this.setDoubleView !== undefined && (index.h("div", { class: "toggler" }, index.h("label", { htmlFor: "ch2", class: "switch" }, index.h("input", { class: "input", id: "ch2", type: "checkbox", checked: this.doubleView, onClick: () => this.setDoubleView(!this.doubleView) }), index.h("span", { class: "slider" })), index.h("span", { class: "label" }, "Previsioni")))));
28
+ }
29
+ };
30
+ KupCustomTaskListHeader.style = customTaskListHeaderModuleCss;
31
+
32
+ const ganttTableModuleCss = ".container{padding:0 10px;margin-right:10px}.project{background:var(--kup-background-color, #ffffff);border:1px solid var(--kup-border-color, #acacac);border-radius:4px;box-sizing:border-box;color:var(--kup-text-color, #595959);cursor:pointer;display:grid;font-weight:400;grid-template-columns:var(--grid-project-columns, 1fr 1fr 1fr);place-items:center}.project>*{font-size:14px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.project .main{font-weight:700;width:100%;padding-left:4px}.subrow{cursor:pointer;display:grid;border-width:1px;border-style:solid;border-color:#acacac;border-bottom-left-radius:4px;border-bottom-right-radius:4px;box-sizing:border-box;grid-template-columns:var(--grid-fasi-columns, 1fr 1fr 1fr);place-items:center;background:#ffffff;color:#595959;font-weight:400}.subrow>*{font-size:12px;line-height:14px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.subrow:has(+.subrow),.project:has(+.subrow){border-bottom-left-radius:0;border-bottom-right-radius:0}.timeline{cursor:pointer;display:grid;border-width:1px;border-style:solid;border-color:#cbcbcb;border-radius:4px;grid-template-columns:var(--grid-fasi-columns, 1fr 1fr 1fr);place-items:center;background:#fff;color:#595959;font-weight:400;box-sizing:border-box}.timeline>*{font-size:14px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.timeline .main{font-weight:700;width:100%;padding-left:4px}";
33
+
34
+ const KupCustomTaskListTable = class {
35
+ constructor(hostRef) {
36
+ index.registerInstance(this, hostRef);
37
+ this.ganttId = undefined;
38
+ this.tasks = [];
39
+ this.rowHeight = 0;
40
+ this.rowWidth = '';
41
+ this.fontFamily = '';
42
+ this.fontSize = '';
43
+ this.setSelectedTask = undefined;
44
+ this.onclickTaskList = undefined;
45
+ this.ondblclickTaskList = undefined;
46
+ this.oncontextmenuTaskList = undefined;
47
+ }
48
+ render() {
49
+ const kupDates$1 = new kupDates.KupDates();
50
+ return (index.h("div", { class: "container" }, this.tasks.map((task) => {
51
+ var _a, _b, _c;
52
+ return (index.h(index.Fragment, null, task.type === 'project' ? (index.h("div", { class: "project", style: {
53
+ height: `${this.rowHeight}px`,
54
+ width: this.rowWidth,
55
+ fontFamily: this.fontFamily,
56
+ fontSize: this.fontSize,
57
+ gridTemplateColumns: `repeat(${task.valuesToShow.length}, 1fr)`,
58
+ }, onClick: () => {
59
+ this.setSelectedTask(task.id);
60
+ this.onclickTaskList(task.id);
61
+ }, onDblClick: () => {
62
+ this.setSelectedTask(task.id);
63
+ this.ondblclickTaskList(task.id);
64
+ }, onContextMenu: (e) => {
65
+ e.preventDefault();
66
+ this.setSelectedTask(task.id);
67
+ this.oncontextmenuTaskList(e, task.id);
68
+ } }, (_a = task.valuesToShow) === null || _a === void 0 ? void 0 : _a.map((v, index$1) => (index.h("span", { class: index$1 === 0 ? 'main' : undefined, title: v.length > 10 ? v : undefined, key: `task_${task.id}_valuesToShow_${index$1}` }, v === '#START#'
69
+ ? kupDates$1.formatToLocaleSimple(task.start)
70
+ : v === '#END#'
71
+ ? kupDates$1.formatToLocaleSimple(task.end)
72
+ : v))))) : task.type === 'task' ? (index.h("div", { class: "subrow", style: {
73
+ height: `${this.rowHeight}px`,
74
+ width: this.rowWidth,
75
+ fontFamily: this.fontFamily,
76
+ fontSize: this.fontSize,
77
+ gridTemplateColumns: `repeat(${task.valuesToShow.length + 1}, 1fr)`,
78
+ }, onClick: () => {
79
+ this.setSelectedTask(task.id);
80
+ this.onclickTaskList(task.id);
81
+ }, onDblClick: () => {
82
+ this.setSelectedTask(task.id);
83
+ this.ondblclickTaskList(task.id);
84
+ }, onContextMenu: (e) => {
85
+ e.preventDefault();
86
+ this.setSelectedTask(task.id);
87
+ this.oncontextmenuTaskList(e, task.id);
88
+ } }, index.h("span", { key: `phase_${task.id}_valuesToShow_color`, style: {
89
+ height: '16px',
90
+ width: '16px',
91
+ backgroundColor: (_b = task.styles) === null || _b === void 0 ? void 0 : _b.backgroundColor,
92
+ } }), (_c = task.valuesToShow) === null || _c === void 0 ? void 0 :
93
+ _c.map((v, index$1) => (index.h("span", { class: index$1 === 0 ? 'main' : undefined, title: v.length > 10 ? v : undefined, key: `phase_${task.id}_valuesToShow_${index$1}` }, v === '#START#'
94
+ ? kupDates$1.formatToLocaleSimple(task.start)
95
+ : v === '#END#'
96
+ ? kupDates$1.formatToLocaleSimple(task.end)
97
+ : v))))) : ((() => {
98
+ var _a;
99
+ let str = '';
100
+ for (let i = 0; i < task.valuesToShow.length; i++) {
101
+ str += '1fr ';
102
+ }
103
+ return (index.h("div", { class: "timeline", style: {
104
+ height: `${this.rowHeight}px`,
105
+ width: this.rowWidth,
106
+ fontFamily: this.fontFamily,
107
+ fontSize: this.fontSize,
108
+ '--grid-fasi-columns': str,
109
+ }, onContextMenu: (e) => {
110
+ e.preventDefault();
111
+ this.setSelectedTask(task.id);
112
+ this.oncontextmenuTaskList(e, task.id);
113
+ } }, (_a = task.valuesToShow) === null || _a === void 0 ? void 0 : _a.map((v, index$1) => (index.h("span", { class: index$1 === 0
114
+ ? 'main'
115
+ : undefined, title: v.length > 10
116
+ ? v
117
+ : undefined, key: `detail_${task.id}_valuesToShow_${index$1}` }, v)))));
118
+ })())));
119
+ })));
120
+ }
121
+ };
122
+ KupCustomTaskListTable.style = ganttTableModuleCss;
123
+
124
+ const kupGanttCalendarCss = ".calendarBottomText{text-anchor:middle;fill:#333;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.calendarTopTick{stroke:#e6e4e4}.calendarTopText{text-anchor:middle;fill:#555;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.calendarHeader{fill:#ffffff;stroke:#e0e0e0;stroke-width:1.4}";
125
+
126
+ const KupGanttCalendar = class {
127
+ constructor(hostRef) {
128
+ index.registerInstance(this, hostRef);
129
+ this.dateSetup = undefined;
130
+ this.locale = undefined;
131
+ this.rtl = undefined;
132
+ this.headerHeight = undefined;
133
+ this.columnWidth = undefined;
134
+ this.fontFamily = undefined;
135
+ this.fontSize = undefined;
136
+ this.dateTimeFormatters = undefined;
137
+ this.singleLineHeader = false;
138
+ this.currentDateIndicator = undefined;
139
+ this.svgWidth = undefined;
140
+ this.simplifiedHeader = undefined;
141
+ }
142
+ //---- Lifecycle hooks ----
143
+ componentWillLoad() {
144
+ this.simplifiedHeader =
145
+ this.singleLineHeader && this.dateSetup.viewMode !== 'year';
146
+ }
147
+ formatYear(date) {
148
+ var _a, _b;
149
+ return ((_a = this.dateTimeFormatters) === null || _a === void 0 ? void 0 : _a.year)
150
+ ? (_b = this.dateTimeFormatters) === null || _b === void 0 ? void 0 : _b.year(date, this.locale)
151
+ : kupPlannerTimeFormatter.defaultDateTimeFormatters.year(date, this.locale);
152
+ }
153
+ formatMonth(date) {
154
+ var _a, _b;
155
+ return ((_a = this.dateTimeFormatters) === null || _a === void 0 ? void 0 : _a.month)
156
+ ? (_b = this.dateTimeFormatters) === null || _b === void 0 ? void 0 : _b.month(date, this.locale)
157
+ : kupPlannerTimeFormatter.defaultDateTimeFormatters.month(date, this.locale);
158
+ }
159
+ formatMonthAndYear(date) {
160
+ var _a, _b;
161
+ return ((_a = this.dateTimeFormatters) === null || _a === void 0 ? void 0 : _a.monthAndYear)
162
+ ? (_b = this.dateTimeFormatters) === null || _b === void 0 ? void 0 : _b.monthAndYear(date, this.locale)
163
+ : kupPlannerTimeFormatter.defaultDateTimeFormatters.monthAndYear(date, this.locale);
164
+ }
165
+ formatWeek(date) {
166
+ var _a, _b;
167
+ return ((_a = this.dateTimeFormatters) === null || _a === void 0 ? void 0 : _a.week)
168
+ ? (_b = this.dateTimeFormatters) === null || _b === void 0 ? void 0 : _b.week(date, this.locale)
169
+ : kupPlannerTimeFormatter.defaultDateTimeFormatters.week(date, this.locale);
170
+ }
171
+ formatDay(date) {
172
+ var _a, _b;
173
+ return ((_a = this.dateTimeFormatters) === null || _a === void 0 ? void 0 : _a.day)
174
+ ? (_b = this.dateTimeFormatters) === null || _b === void 0 ? void 0 : _b.day(date, this.locale)
175
+ : kupPlannerTimeFormatter.defaultDateTimeFormatters.day(date, this.locale);
176
+ }
177
+ getCalendarValuesForYear() {
178
+ const topValues = [];
179
+ const bottomValues = [];
180
+ const topDefaultHeight = this.headerHeight * 0.5;
181
+ const dates = this.dateSetup.dates;
182
+ for (let i = 0; i < dates.length; i++) {
183
+ const date = dates[i];
184
+ const bottomValue = this.formatYear(date);
185
+ bottomValues.push(index.h("text", { key: bottomValue, y: this.headerHeight * 0.8, x: this.columnWidth * i + this.columnWidth * 0.5, class: "calendarBottomText" }, bottomValue));
186
+ if (i === 0 || date.getFullYear() !== dates[i - 1].getFullYear()) {
187
+ const topValue = date.getFullYear().toString();
188
+ let xText;
189
+ if (this.rtl) {
190
+ xText = (6 + i + date.getFullYear() + 1) * this.columnWidth;
191
+ }
192
+ else {
193
+ xText = (6 + i - date.getFullYear()) * this.columnWidth;
194
+ }
195
+ topValues.push({
196
+ key: topValue,
197
+ value: topValue,
198
+ x1Line: this.columnWidth * i,
199
+ y1Line: 0,
200
+ y2Line: this.headerHeight,
201
+ xText: xText,
202
+ yText: topDefaultHeight * 0.9,
203
+ });
204
+ }
205
+ }
206
+ return [topValues, bottomValues];
207
+ }
208
+ getCalendarValuesForMonth() {
209
+ const topValues = [];
210
+ const bottomValues = [];
211
+ const topDefaultHeight = this.headerHeight * 0.5;
212
+ const dates = this.dateSetup.dates;
213
+ for (let i = 0; i < dates.length; i++) {
214
+ const date = dates[i];
215
+ const bottomValue = this.formatMonth(date);
216
+ bottomValues.push(index.h("text", { key: bottomValue + date.getFullYear(), y: this.headerHeight * 0.8, x: this.columnWidth * i + this.columnWidth * 0.5, class: "calendarBottomText" }, bottomValue));
217
+ if (i === 0 || date.getFullYear() !== dates[i - 1].getFullYear()) {
218
+ const topValue = this.formatYear(date);
219
+ let xText;
220
+ if (this.rtl) {
221
+ xText = (6 + i + date.getMonth() + 1) * this.columnWidth;
222
+ }
223
+ else {
224
+ xText = (6 + i - date.getMonth()) * this.columnWidth;
225
+ }
226
+ topValues.push({
227
+ key: topValue,
228
+ value: topValue,
229
+ x1Line: this.columnWidth * i,
230
+ y1Line: 0,
231
+ y2Line: topDefaultHeight,
232
+ xText: xText,
233
+ yText: topDefaultHeight * 0.9,
234
+ });
235
+ }
236
+ }
237
+ return [topValues, bottomValues];
238
+ }
239
+ getCalendarValuesForWeek() {
240
+ const topValues = [];
241
+ const bottomValues = [];
242
+ let weeksCount = 1;
243
+ const topDefaultHeight = this.headerHeight * 0.5;
244
+ const dates = this.dateSetup.dates;
245
+ for (let i = dates.length - 1; i >= 0; i--) {
246
+ const date = dates[i];
247
+ let topValue = '';
248
+ if (i === 0 || date.getMonth() !== dates[i - 1].getMonth()) {
249
+ // top
250
+ topValue = this.formatMonthAndYear(date);
251
+ }
252
+ // bottom
253
+ const bottomValue = this.formatWeek(date);
254
+ bottomValues.push(index.h("text", { key: date.getTime(), y: this.headerHeight * 0.8, x: this.columnWidth * (i + +this.rtl), class: "calendarBottomText" }, bottomValue));
255
+ if (topValue) {
256
+ // if last day is new month
257
+ if (i !== dates.length - 1) {
258
+ topValues.push({
259
+ key: topValue,
260
+ value: topValue,
261
+ x1Line: this.columnWidth * i +
262
+ weeksCount * this.columnWidth,
263
+ y1Line: 0,
264
+ y2Line: topDefaultHeight,
265
+ xText: this.columnWidth * i +
266
+ this.columnWidth * weeksCount * 0.5,
267
+ yText: topDefaultHeight * 0.9,
268
+ });
269
+ }
270
+ weeksCount = 0;
271
+ }
272
+ weeksCount++;
273
+ }
274
+ return [topValues, bottomValues];
275
+ }
276
+ getCalendarValuesForDay() {
277
+ const topValues = [];
278
+ const bottomValues = [];
279
+ const topDefaultHeight = this.headerHeight * 0.5;
280
+ const dates = this.dateSetup.dates;
281
+ for (let i = 0; i < dates.length; i++) {
282
+ const date = dates[i];
283
+ const bottomValue = this.formatDay(date);
284
+ bottomValues.push(index.h("text", { key: date.getTime(), y: this.headerHeight * 0.8, x: this.columnWidth * i + this.columnWidth * 0.5, class: "calendarBottomText" }, bottomValue));
285
+ if (i + 1 !== dates.length &&
286
+ date.getMonth() !== dates[i + 1].getMonth()) {
287
+ const topValue = this.formatMonth(date);
288
+ topValues.push({
289
+ key: topValue + date.getFullYear(),
290
+ value: topValue,
291
+ x1Line: this.columnWidth * (i + 1),
292
+ y1Line: 0,
293
+ y2Line: topDefaultHeight,
294
+ xText: this.columnWidth * (i + 1) -
295
+ kupPlannerTimeFormatter.getDaysInMonth(date.getMonth(), date.getFullYear()) *
296
+ this.columnWidth *
297
+ 0.5,
298
+ yText: topDefaultHeight * 0.9,
299
+ });
300
+ }
301
+ }
302
+ return [topValues, bottomValues];
303
+ }
304
+ getTopAndBottomValues() {
305
+ switch (this.dateSetup.viewMode) {
306
+ case 'day':
307
+ return this.getCalendarValuesForDay();
308
+ case 'week':
309
+ return this.getCalendarValuesForWeek();
310
+ case 'month':
311
+ return this.getCalendarValuesForMonth();
312
+ case 'year':
313
+ return this.getCalendarValuesForYear();
314
+ }
315
+ }
316
+ render() {
317
+ this.simplifiedHeader =
318
+ this.singleLineHeader && this.dateSetup.viewMode !== 'year';
319
+ const [topValues, bottomValues] = this.getTopAndBottomValues();
320
+ return (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: this.svgWidth, height: this.headerHeight }, index.h("g", { class: "calendar", "font-size": this.fontSize, "font-family": this.fontFamily }, index.h("rect", { x: 0, y: 0, width: this.columnWidth * this.dateSetup.dates.length, height: this.headerHeight, class: "calendarHeader" }), this.simplifiedHeader ? null : bottomValues, this.simplifiedHeader
321
+ ? topValues.map((topValue) => (index.h("g", { class: "calendarTop" }, index.h("line", { x1: topValue.x1Line, y1: topValue.y2Line * 2, x2: topValue.x1Line, y2: topValue.y2Line, class: "calendarTopTick", key: topValue.value + 'line' }), index.h("text", { key: topValue.value + 'text', y: topValue.yText, x: topValue.xText, class: "calendarTopText" }, topValue.value))))
322
+ : topValues.map((topValue) => (index.h("g", { class: "calendarTop" }, index.h("line", { x1: topValue.x1Line, y1: topValue.y1Line, x2: topValue.x1Line, y2: topValue.y2Line, class: "calendarTopTick", key: topValue.value + 'line' }), index.h("text", { key: topValue.value + 'text', y: topValue.yText, x: topValue.xText, class: "calendarTopText" }, topValue.value)))), this.currentDateIndicator && (
323
+ // current date indicator
324
+ index.h("circle", { fill: this.currentDateIndicator.color, cx: this.currentDateIndicator.x + 2.5, cy: this.headerHeight - 8, r: "8" })))));
325
+ }
326
+ };
327
+ KupGanttCalendar.style = kupGanttCalendarCss;
328
+
329
+ var hexToCssFilter = kupDates.createCommonjsModule(function (module, exports) {
330
+ (function (global, factory) {
331
+ factory(exports) ;
332
+ }(kupDates.commonjsGlobal, (function (exports) {
333
+ /*! *****************************************************************************
334
+ Copyright (c) Microsoft Corporation.
335
+
336
+ Permission to use, copy, modify, and/or distribute this software for any
337
+ purpose with or without fee is hereby granted.
338
+
339
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
340
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
341
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
342
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
343
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
344
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
345
+ PERFORMANCE OF THIS SOFTWARE.
346
+ ***************************************************************************** */
347
+
348
+ function __read(o, n) {
349
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
350
+ if (!m) return o;
351
+ var i = m.call(o), r, ar = [], e;
352
+ try {
353
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
354
+ }
355
+ catch (error) { e = { error: error }; }
356
+ finally {
357
+ try {
358
+ if (r && !r.done && (m = i["return"])) m.call(i);
359
+ }
360
+ finally { if (e) throw e.error; }
361
+ }
362
+ return ar;
363
+ }
364
+
365
+ var Color = /** @class */ (function () {
366
+ function Color(r, g, b) {
367
+ this.r = 0;
368
+ this.g = 0;
369
+ this.b = 0;
370
+ this.set(r, g, b);
371
+ }
372
+ Color.prototype.set = function (r, g, b) {
373
+ this.r = this.clamp(r);
374
+ this.g = this.clamp(g);
375
+ this.b = this.clamp(b);
376
+ };
377
+ /**
378
+ * Applying cals to get CSS filter for hue-rotate
379
+ *
380
+ * @param {number} [angle=0]
381
+ * @memberof Color
382
+ */
383
+ Color.prototype.hueRotate = function (angle) {
384
+ if (angle === void 0) { angle = 0; }
385
+ angle = (angle / 180) * Math.PI;
386
+ var sin = Math.sin(angle);
387
+ var cos = Math.cos(angle);
388
+ this.multiply([
389
+ 0.213 + cos * 0.787 - sin * 0.213,
390
+ 0.715 - cos * 0.715 - sin * 0.715,
391
+ 0.072 - cos * 0.072 + sin * 0.928,
392
+ 0.213 - cos * 0.213 + sin * 0.143,
393
+ 0.715 + cos * 0.285 + sin * 0.14,
394
+ 0.072 - cos * 0.072 - sin * 0.283,
395
+ 0.213 - cos * 0.213 - sin * 0.787,
396
+ 0.715 - cos * 0.715 + sin * 0.715,
397
+ 0.072 + cos * 0.928 + sin * 0.072,
398
+ ]);
399
+ };
400
+ /**
401
+ * Applying cals to get CSS filter for grayscale
402
+ *
403
+ * @param {number} [value=1]
404
+ * @memberof Color
405
+ */
406
+ Color.prototype.grayscale = function (value) {
407
+ if (value === void 0) { value = 1; }
408
+ this.multiply([
409
+ 0.2126 + 0.7874 * (1 - value),
410
+ 0.7152 - 0.7152 * (1 - value),
411
+ 0.0722 - 0.0722 * (1 - value),
412
+ 0.2126 - 0.2126 * (1 - value),
413
+ 0.7152 + 0.2848 * (1 - value),
414
+ 0.0722 - 0.0722 * (1 - value),
415
+ 0.2126 - 0.2126 * (1 - value),
416
+ 0.7152 - 0.7152 * (1 - value),
417
+ 0.0722 + 0.9278 * (1 - value),
418
+ ]);
419
+ };
420
+ /**
421
+ * Applying cals to get CSS filter for sepia
422
+ *
423
+ * @param {number} [value=1]
424
+ * @memberof Color
425
+ */
426
+ Color.prototype.sepia = function (value) {
427
+ if (value === void 0) { value = 1; }
428
+ this.multiply([
429
+ 0.393 + 0.607 * (1 - value),
430
+ 0.769 - 0.769 * (1 - value),
431
+ 0.189 - 0.189 * (1 - value),
432
+ 0.349 - 0.349 * (1 - value),
433
+ 0.686 + 0.314 * (1 - value),
434
+ 0.168 - 0.168 * (1 - value),
435
+ 0.272 - 0.272 * (1 - value),
436
+ 0.534 - 0.534 * (1 - value),
437
+ 0.131 + 0.869 * (1 - value),
438
+ ]);
439
+ };
440
+ /**
441
+ * Applying cals to get CSS filter for saturate
442
+ *
443
+ * @param {number} [value=1]
444
+ * @memberof Color
445
+ */
446
+ Color.prototype.saturate = function (value) {
447
+ if (value === void 0) { value = 1; }
448
+ this.multiply([
449
+ 0.213 + 0.787 * value,
450
+ 0.715 - 0.715 * value,
451
+ 0.072 - 0.072 * value,
452
+ 0.213 - 0.213 * value,
453
+ 0.715 + 0.285 * value,
454
+ 0.072 - 0.072 * value,
455
+ 0.213 - 0.213 * value,
456
+ 0.715 - 0.715 * value,
457
+ 0.072 + 0.928 * value,
458
+ ]);
459
+ };
460
+ Color.prototype.multiply = function (matrix) {
461
+ // These values are needed. It's correct because the returned values will change
462
+ var newR = this.clamp(this.r * matrix[0] + this.g * matrix[1] + this.b * matrix[2]);
463
+ var newG = this.clamp(this.r * matrix[3] + this.g * matrix[4] + this.b * matrix[5]);
464
+ var newB = this.clamp(this.r * matrix[6] + this.g * matrix[7] + this.b * matrix[8]);
465
+ this.r = newR;
466
+ this.g = newG;
467
+ this.b = newB;
468
+ };
469
+ /**
470
+ * Applying cals to get CSS filter for brightness
471
+ *
472
+ * @param {number} [value=1]
473
+ * @memberof Color
474
+ */
475
+ Color.prototype.brightness = function (value) {
476
+ if (value === void 0) { value = 1; }
477
+ this.linear(value);
478
+ };
479
+ /**
480
+ * Applying cals to get CSS filter for contrast
481
+ *
482
+ * @param {number} [value=1]
483
+ * @memberof Color
484
+ */
485
+ Color.prototype.contrast = function (value) {
486
+ if (value === void 0) { value = 1; }
487
+ this.linear(value, -(0.5 * value) + 0.5);
488
+ };
489
+ Color.prototype.linear = function (slope, intercept) {
490
+ if (slope === void 0) { slope = 1; }
491
+ if (intercept === void 0) { intercept = 0; }
492
+ this.r = this.clamp(this.r * slope + intercept * 255);
493
+ this.g = this.clamp(this.g * slope + intercept * 255);
494
+ this.b = this.clamp(this.b * slope + intercept * 255);
495
+ };
496
+ /**
497
+ * Applying cals to get CSS filter for invert
498
+ *
499
+ * @param {number} [value=1]
500
+ * @memberof Color
501
+ */
502
+ Color.prototype.invert = function (value) {
503
+ if (value === void 0) { value = 1; }
504
+ this.r = this.clamp((value + (this.r / 255) * (1 - 2 * value)) * 255);
505
+ this.g = this.clamp((value + (this.g / 255) * (1 - 2 * value)) * 255);
506
+ this.b = this.clamp((value + (this.b / 255) * (1 - 2 * value)) * 255);
507
+ };
508
+ /**
509
+ * transform RGB into HSL values
510
+ *
511
+ * @returns {HSLData}
512
+ * @memberof Color
513
+ */
514
+ Color.prototype.hsl = function () {
515
+ var red = this.r / 255;
516
+ var green = this.g / 255;
517
+ var blue = this.b / 255;
518
+ // find greatest and smallest channel values
519
+ var max = Math.max(red, green, blue);
520
+ var min = Math.min(red, green, blue);
521
+ var hue = 0;
522
+ var saturation = 0;
523
+ var lightness = (max + min) / 2;
524
+ // If min and max have the same values, it means
525
+ // the given color is achromatic
526
+ if (max === min) {
527
+ return {
528
+ h: 0,
529
+ s: 0,
530
+ l: lightness * 100,
531
+ };
532
+ }
533
+ // Adding delta value of greatest and smallest channel values
534
+ var delta = max - min;
535
+ saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);
536
+ if (max === red) {
537
+ hue = (green - blue) / delta + (green < blue ? 6 : 0);
538
+ }
539
+ else if (max === green) {
540
+ hue = (blue - red) / delta + 2;
541
+ }
542
+ else if (max === blue) {
543
+ hue = (red - green) / delta + 4;
544
+ }
545
+ hue /= 6;
546
+ return {
547
+ h: hue * 100,
548
+ s: saturation * 100,
549
+ l: lightness * 100,
550
+ };
551
+ };
552
+ /**
553
+ * Normalize the value to follow the min and max for RGB colors
554
+ * min: 0
555
+ * max: 255
556
+ *
557
+ * @private
558
+ * @param {number} value
559
+ * @returns {number}
560
+ * @memberof Color
561
+ */
562
+ Color.prototype.clamp = function (value) {
563
+ // Minimum RGB Value = 0;
564
+ // Maximum RGB Value = 255;
565
+ return Math.min(Math.max(value, 0), 255);
566
+ };
567
+ return Color;
568
+ }());
569
+
570
+ var Solver = /** @class */ (function () {
571
+ function Solver(target, options) {
572
+ this.target = target;
573
+ this.targetHSL = target.hsl();
574
+ this.options = Object.assign({},
575
+ // Adding default values for options
576
+ {
577
+ acceptanceLossPercentage: 5,
578
+ maxChecks: 15,
579
+ }, options);
580
+ // All the calcs done by the library to generate
581
+ // a CSS Filter are based on the color `#000`
582
+ // in this case, `rgb(0, 0, 0)`
583
+ // Please make sure the background of the element
584
+ // is `#000` for better performance
585
+ // and color similarity.
586
+ this.reusedColor = new Color(0, 0, 0);
587
+ }
588
+ /**
589
+ * Returns the solved values for the
590
+ *
591
+ * @returns {(SPSAPayload & { filter: string; })}
592
+ * @memberof Solver
593
+ */
594
+ Solver.prototype.solve = function () {
595
+ var result = this.solveNarrow(this.solveWide());
596
+ return {
597
+ values: result.values,
598
+ called: result.called,
599
+ loss: result.loss,
600
+ filter: this.css(result.values),
601
+ };
602
+ };
603
+ /**
604
+ * Solve wide values based on the wide values for RGB and HSL values
605
+ *
606
+ * @private
607
+ * @returns {SPSAPayload}
608
+ * @memberof Solver
609
+ */
610
+ Solver.prototype.solveWide = function () {
611
+ var A = 5;
612
+ var c = 15;
613
+ // Wide values for RGB and HSL values
614
+ // the values in the order: [`r`, `g`, `b`, `h`, `s`, `l`]
615
+ var a = [60, 180, 18000, 600, 1.2, 1.2];
616
+ var best = { loss: Infinity };
617
+ var counter = 0;
618
+ while (best.loss > this.options.acceptanceLossPercentage) {
619
+ var initialFilterValues = [50, 20, 3750, 50, 100, 100];
620
+ var result = this.spsa({
621
+ A: A,
622
+ a: a,
623
+ c: c,
624
+ values: initialFilterValues,
625
+ // for wide values we should use the double of tries in
626
+ // comparison of `solveNarrow()` method
627
+ maxTriesInLoop: 1000,
628
+ });
629
+ if (result.loss < best.loss) {
630
+ best = result;
631
+ }
632
+ counter += 1;
633
+ if (counter >= this.options.maxChecks) {
634
+ break;
635
+ }
636
+ }
637
+ return Object.assign({}, best, { called: counter });
638
+ };
639
+ /**
640
+ * Solve narrow values based on the wide values for the filter
641
+ *
642
+ * @private
643
+ * @param {SPSAPayload} wide
644
+ * @returns {SPSAPayload}
645
+ * @memberof Solver
646
+ */
647
+ Solver.prototype.solveNarrow = function (wide) {
648
+ var A = wide.loss;
649
+ var c = 2;
650
+ var A1 = A + 1;
651
+ // Narrow values for RGB and HSL values
652
+ // the values in the order: [`r`, `g`, `b`, `h`, `s`, `l`]
653
+ var a = [0.25 * A1, 0.25 * A1, A1, 0.25 * A1, 0.2 * A1, 0.2 * A1];
654
+ return this.spsa({
655
+ A: A,
656
+ a: a,
657
+ c: c,
658
+ values: wide.values,
659
+ maxTriesInLoop: 500,
660
+ called: wide.called,
661
+ });
662
+ };
663
+ /**
664
+ * Returns final value based on the current filter order
665
+ * to get the order, please check the returned value
666
+ * in `css()` method
667
+ *
668
+ * @private
669
+ * @param {number} value
670
+ * @param {number} idx
671
+ * @returns {number}
672
+ * @memberof Solver
673
+ */
674
+ Solver.prototype.fixValueByFilterIDX = function (value, idx) {
675
+ var max = 100;
676
+ // Fixing max, minimum and value by filter
677
+ if (idx === 2 /* saturate */) {
678
+ max = 7500;
679
+ }
680
+ else if (idx === 4 /* brightness */ || idx === 5 /* contrast */) {
681
+ max = 200;
682
+ }
683
+ if (idx === 3 /* hue-rotate */) {
684
+ if (value > max) {
685
+ value %= max;
686
+ }
687
+ else if (value < 0) {
688
+ value = max + (value % max);
689
+ }
690
+ }
691
+ // Checking if value is below the minimum or above
692
+ // the maximum allowed by filter
693
+ else if (value < 0) {
694
+ value = 0;
695
+ }
696
+ else if (value > max) {
697
+ value = max;
698
+ }
699
+ return value;
700
+ };
701
+ Solver.prototype.spsa = function (_a) {
702
+ 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;
703
+ var alpha = 1;
704
+ var gamma = 0.16666666666666666;
705
+ var best = null;
706
+ var bestLoss = Infinity;
707
+ var deltas = new Array(6);
708
+ var highArgs = new Array(6);
709
+ var lowArgs = new Array(6);
710
+ // Size of all CSS filters to be applied to get the correct color
711
+ var filtersToBeAppliedSize = 6;
712
+ for (var key = 0; key < maxTriesInLoop; key++) {
713
+ var ck = c / Math.pow(key + 1, gamma);
714
+ for (var i = 0; i < filtersToBeAppliedSize; i++) {
715
+ deltas[i] = Math.random() > 0.5 ? 1 : -1;
716
+ highArgs[i] = values[i] + ck * deltas[i];
717
+ lowArgs[i] = values[i] - ck * deltas[i];
718
+ }
719
+ var lossDiff = this.loss(highArgs) - this.loss(lowArgs);
720
+ for (var i = 0; i < filtersToBeAppliedSize; i++) {
721
+ var g = (lossDiff / (2 * ck)) * deltas[i];
722
+ var ak = a[i] / Math.pow(A + key + 1, alpha);
723
+ values[i] = this.fixValueByFilterIDX(values[i] - ak * g, i);
724
+ }
725
+ var loss = this.loss(values);
726
+ if (loss < bestLoss) {
727
+ best = values.slice(0);
728
+ bestLoss = loss;
729
+ }
730
+ }
731
+ return { values: best, loss: bestLoss, called: called };
732
+ };
733
+ /**
734
+ * Checks how much is the loss for the filter in RGB and HSL colors
735
+ *
736
+ * @private
737
+ * @param {SPSAPayload['values']} filters
738
+ * @returns {number}
739
+ * @memberof Solver
740
+ */
741
+ Solver.prototype.loss = function (filters) {
742
+ // Argument as an Array of percentages.
743
+ var color = this.reusedColor;
744
+ // Resetting the color to black in case
745
+ // it was called more than once
746
+ color.set(0, 0, 0);
747
+ color.invert(filters[0] / 100);
748
+ color.sepia(filters[1] / 100);
749
+ color.saturate(filters[2] / 100);
750
+ color.hueRotate(filters[3] * 3.6);
751
+ color.brightness(filters[4] / 100);
752
+ color.contrast(filters[5] / 100);
753
+ var colorHSL = color.hsl();
754
+ return (Math.abs(color.r - this.target.r) +
755
+ Math.abs(color.g - this.target.g) +
756
+ Math.abs(color.b - this.target.b) +
757
+ Math.abs(colorHSL.h - this.targetHSL.h) +
758
+ Math.abs(colorHSL.s - this.targetHSL.s) +
759
+ Math.abs(colorHSL.l - this.targetHSL.l));
760
+ };
761
+ /**
762
+ * Returns the CSS filter list for the received HEX color
763
+ *
764
+ * @private
765
+ * @param {number[]} filters
766
+ * @returns {string}
767
+ * @memberof Solver
768
+ */
769
+ Solver.prototype.css = function (filters) {
770
+ var formatCssFilterValueByMultiplier = function (idx, multiplier) {
771
+ if (multiplier === void 0) { multiplier = 1; }
772
+ return Math.round(filters[idx] * multiplier);
773
+ };
774
+ return [
775
+ "invert(" + formatCssFilterValueByMultiplier(0) + "%)",
776
+ "sepia(" + formatCssFilterValueByMultiplier(1) + "%)",
777
+ "saturate(" + formatCssFilterValueByMultiplier(2) + "%)",
778
+ "hue-rotate(" + formatCssFilterValueByMultiplier(3, 3.6) + "deg)",
779
+ "brightness(" + formatCssFilterValueByMultiplier(4) + "%)",
780
+ "contrast(" + formatCssFilterValueByMultiplier(5) + "%);",
781
+ ].join(' ');
782
+ };
783
+ return Solver;
784
+ }());
785
+
786
+ /**
787
+ * Transform a CSS Color from Hexadecimal to RGB color
788
+ *
789
+ * @param {string} hex hexadecimal color
790
+ * @returns {([number, number, number] | [])} array with the RGB colors or empty array
791
+ */
792
+ var hexToRgb = function (hex) {
793
+ if (hex.length === 4) {
794
+ return [parseInt("0x" + hex[1] + hex[1]), parseInt("0x" + hex[2] + hex[2]), parseInt("0x" + hex[3] + hex[3])];
795
+ }
796
+ if (hex.length === 7) {
797
+ return [parseInt("0x" + hex[1] + hex[2]), parseInt("0x" + hex[3] + hex[4]), parseInt("0x" + hex[5] + hex[6])];
798
+ }
799
+ return [];
800
+ };
801
+ var isNumeric = function (n) { return !isNaN(parseFloat(n)) && isFinite(n); };
802
+ // Memory cache for the computed results to avoid multiple
803
+ // calculations for the same color
804
+ var results = {};
805
+ /**
806
+ * A function that transforms a HEX color into CSS filters
807
+ *
808
+ * @param colorValue string hexadecimal color
809
+ * @param opts HexToCssConfiguration function configuration
810
+ *
811
+ */
812
+ var hexToCSSFilter = function (colorValue, opts) {
813
+ var _a;
814
+ if (opts === void 0) { opts = {}; }
815
+ var red;
816
+ var green;
817
+ var blue;
818
+ if (results[colorValue] && !opts.forceFilterRecalculation) {
819
+ return Object.assign({}, results[colorValue], { cache: true });
820
+ }
821
+ var color;
822
+ try {
823
+ _a = __read(hexToRgb(colorValue), 3), red = _a[0], green = _a[1], blue = _a[2];
824
+ if (!isNumeric(red) || !isNumeric(green) || !isNumeric(blue)) {
825
+ throw new Error("hextToRgb returned an invalid value for '" + colorValue + "'");
826
+ }
827
+ color = new Color(Number(red), Number(green), Number(blue));
828
+ }
829
+ catch (error) {
830
+ throw new Error("Color value should be in HEX format. " + error);
831
+ }
832
+ var solver = new Solver(color, Object.assign({},
833
+ // `HexToCssConfiguration` Defaults
834
+ {
835
+ acceptanceLossPercentage: 5,
836
+ maxChecks: 30,
837
+ forceFilterRecalculation: false,
838
+ }, opts));
839
+ return (results[colorValue] = Object.assign({}, solver.solve(), {
840
+ hex: colorValue,
841
+ rgb: [red, green, blue],
842
+ cache: false,
843
+ }));
844
+ };
845
+ /**
846
+ * A function that clears cached results
847
+ *
848
+ * @param {string} key? HEX string value passed previously `#24639C`. If not passed, it clears all cached results
849
+ * @returns void
850
+ */
851
+ var clearCache = function (key) {
852
+ if (!key) {
853
+ results = {};
854
+ }
855
+ else if (results[key]) {
856
+ delete results[key];
857
+ }
858
+ };
859
+
860
+ exports.clearCache = clearCache;
861
+ exports.hexToCSSFilter = hexToCSSFilter;
862
+
863
+ Object.defineProperty(exports, '__esModule', { value: true });
864
+
865
+ })));
866
+ });
867
+
868
+ 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}";
869
+
870
+ const KupGridRenderer = class {
871
+ constructor(hostRef) {
872
+ index.registerInstance(this, hostRef);
873
+ this.tasks = undefined;
874
+ this.dates = undefined;
875
+ this.ganttEvent = undefined;
876
+ this.selectedTask = undefined;
877
+ this.rowHeight = 0;
878
+ this.columnWidth = 0;
879
+ this.timeStep = 0;
880
+ this.taskHeight = 0;
881
+ this.arrowColor = '';
882
+ this.arrowIndent = 0;
883
+ this.fontFamily = '';
884
+ this.fontSize = '';
885
+ this.rtl = false;
886
+ this.hideLabel = false;
887
+ this.showSecondaryDates = false;
888
+ this.currentDateIndicator = undefined;
889
+ this.projection = undefined;
890
+ this.readOnly = false;
891
+ this.gridProps = undefined;
892
+ this.dateChange = undefined;
893
+ this.progressChange = undefined;
894
+ this.doubleClick = undefined;
895
+ this.barClick = undefined;
896
+ this.barDblClick = undefined;
897
+ this.barContextMenu = undefined;
898
+ this.delete = undefined;
899
+ this.setFailedTask = undefined;
900
+ this.setSelectedTask = undefined;
901
+ this.eventStart = undefined;
902
+ this.eMouseDown = undefined;
903
+ this.setGanttEvent = undefined;
904
+ this.xStep = 0;
905
+ this.initEventX1Delta = 0;
906
+ this.initEventXClick = 0;
907
+ this.isMoving = false;
908
+ this.point = undefined;
909
+ this.svg = undefined;
910
+ }
911
+ //---- Lifecycle hooks ----
912
+ componentDidLoad() {
913
+ this.point = this.createSVGPoint();
914
+ this.updateXStep();
915
+ }
916
+ createSVGPoint() {
917
+ if (this.svg) {
918
+ return this.svg.createSVGPoint();
919
+ }
920
+ return undefined;
921
+ }
922
+ /*-------------------------------------------------*/
923
+ /* W A T C H E R S */
924
+ /*-------------------------------------------------*/
925
+ updateXStep() {
926
+ // Calculate xStep whenever columnWidth, dates, or timeStep props change
927
+ const dateDelta = this.dates[1].getTime() -
928
+ this.dates[0].getTime() -
929
+ this.dates[1].getTimezoneOffset() * 60 * 1000 +
930
+ this.dates[0].getTimezoneOffset() * 60 * 1000;
931
+ const newXStep = (this.timeStep * this.columnWidth) / dateDelta;
932
+ this.xStep = newXStep;
933
+ }
934
+ updateSvgMove() {
935
+ const handleMouseMove = async (event) => {
936
+ var _a, _b;
937
+ if (!this.ganttEvent.changedTask || !this.point || !this.svg)
938
+ return;
939
+ event.preventDefault();
940
+ this.point.x = event.clientX;
941
+ 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());
942
+ const { isChanged, changedTask } = bar_helpers.handleTaskBySVGMouseEvent(cursor.x, this.ganttEvent.action, this.ganttEvent.changedTask, this.xStep, this.timeStep, this.initEventX1Delta, this.rtl);
943
+ if (isChanged) {
944
+ this.setGanttEvent(Object.assign(Object.assign({}, this.ganttEvent), { action: this.ganttEvent.action, changedTask }));
945
+ }
946
+ };
947
+ const handleMouseUp = async (event) => {
948
+ var _a, _b;
949
+ const { action, originalSelectedTask, changedTask } = this.ganttEvent;
950
+ if (!changedTask ||
951
+ !this.point ||
952
+ !this.svg ||
953
+ !originalSelectedTask)
954
+ return;
955
+ event.preventDefault();
956
+ this.point.x = event.clientX;
957
+ 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());
958
+ const { changedTask: newChangedTask } = bar_helpers.handleTaskBySVGMouseEvent(cursor.x, action, changedTask, this.xStep, this.timeStep, this.initEventX1Delta, this.rtl);
959
+ const isNotLikeOriginal = originalSelectedTask.start !== newChangedTask.start ||
960
+ originalSelectedTask.end !== newChangedTask.end ||
961
+ originalSelectedTask.progress !== newChangedTask.progress;
962
+ // remove listeners
963
+ this.svg.removeEventListener('mousemove', handleMouseMove);
964
+ this.svg.removeEventListener('mouseup', handleMouseUp);
965
+ this.setGanttEvent({ action: '' });
966
+ this.isMoving = false;
967
+ // custom operation start
968
+ let operationSuccess = true;
969
+ if ((action === 'move' || action === 'end' || action === 'start') &&
970
+ this.dateChange &&
971
+ isNotLikeOriginal) {
972
+ try {
973
+ const result = await this.dateChange(newChangedTask, newChangedTask.barChildren);
974
+ if (result !== undefined) {
975
+ operationSuccess = result;
976
+ }
977
+ }
978
+ catch (error) {
979
+ operationSuccess = false;
980
+ }
981
+ }
982
+ else if (this.progressChange && isNotLikeOriginal) {
983
+ try {
984
+ const result = this.progressChange(newChangedTask, newChangedTask.barChildren);
985
+ if (result !== undefined) {
986
+ operationSuccess = result;
987
+ }
988
+ }
989
+ catch (error) {
990
+ operationSuccess = false;
991
+ }
992
+ }
993
+ // If operation is failed - return old state
994
+ if (!operationSuccess) {
995
+ this.setFailedTask(originalSelectedTask);
996
+ }
997
+ };
998
+ if (!this.isMoving &&
999
+ (this.ganttEvent.action === 'move' ||
1000
+ this.ganttEvent.action === 'end' ||
1001
+ this.ganttEvent.action === 'start' ||
1002
+ this.ganttEvent.action === 'progress') &&
1003
+ this.svg) {
1004
+ this.svg.addEventListener('mousemove', handleMouseMove);
1005
+ this.svg.addEventListener('mouseup', handleMouseUp);
1006
+ this.isMoving = true;
1007
+ }
1008
+ }
1009
+ hasMovedHorizontally(event) {
1010
+ if (this.readOnly) {
1011
+ return false;
1012
+ }
1013
+ return this.initEventXClick !== event.clientX;
1014
+ }
1015
+ handleBarEventStart(action, task, event) {
1016
+ var _a;
1017
+ if (!event) {
1018
+ if (action === 'select') {
1019
+ this.setSelectedTask(task.id);
1020
+ }
1021
+ }
1022
+ else if (bar_helpers.isKeyboardEvent(event)) {
1023
+ if (action === 'delete') {
1024
+ if (this.delete) {
1025
+ try {
1026
+ const result = this.delete(task);
1027
+ if (result !== undefined && result) {
1028
+ this.setGanttEvent({ action, changedTask: task });
1029
+ // this.ganttEvent = { action, changedTask: task }
1030
+ }
1031
+ }
1032
+ catch (error) {
1033
+ console.error('Error on Delete. ' + error);
1034
+ }
1035
+ }
1036
+ }
1037
+ }
1038
+ else if (action === 'mouseenter') {
1039
+ if (!this.ganttEvent.action) {
1040
+ this.setGanttEvent({
1041
+ action,
1042
+ changedTask: task,
1043
+ originalSelectedTask: task,
1044
+ });
1045
+ }
1046
+ }
1047
+ else if (action === 'mouseleave') {
1048
+ if (this.ganttEvent.action === 'mouseenter') {
1049
+ this.setGanttEvent({
1050
+ action: '',
1051
+ });
1052
+ }
1053
+ }
1054
+ else if (action === 'dblclick') {
1055
+ this.doubleClick && this.doubleClick(task);
1056
+ }
1057
+ else if (action === 'click') {
1058
+ const skipClick = this.hasMovedHorizontally(event);
1059
+ !skipClick && this.barClick && this.barClick(task);
1060
+ }
1061
+ else if (action === 'contextmenu') {
1062
+ event.preventDefault();
1063
+ this.barContextMenu && this.barContextMenu(event, task);
1064
+ }
1065
+ else if (action === 'move') {
1066
+ if (!this.svg || !this.point)
1067
+ return;
1068
+ this.point.x = event.clientX;
1069
+ const cursor = this.point.matrixTransform((_a = this.svg.getScreenCTM()) === null || _a === void 0 ? void 0 : _a.inverse());
1070
+ this.initEventX1Delta = cursor.x - task.x1;
1071
+ this.initEventXClick = event.clientX;
1072
+ this.setGanttEvent({
1073
+ action,
1074
+ changedTask: task,
1075
+ originalSelectedTask: task,
1076
+ });
1077
+ }
1078
+ else {
1079
+ this.setGanttEvent({
1080
+ action,
1081
+ changedTask: task,
1082
+ originalSelectedTask: task,
1083
+ });
1084
+ }
1085
+ }
1086
+ getTaskIcon(bar) {
1087
+ const cssFilter = hexToCssFilter.hexToCSSFilter(bar.color);
1088
+ return (index.h("image", { href: bar.url, filter: cssFilter.filter.replace(';', ''), x: bar.x, y: bar.y, width: bar.width, height: bar.height }));
1089
+ }
1090
+ renderKupBar(task, isSelected, isDateResizable, isProgressChangeable) {
1091
+ var _a, _b, _c;
1092
+ return (index.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)), index.h("g", { class: "handleGroup" }, isDateResizable && (index.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 && (index.h("polygon", { class: "barHandle", points: this.calculateProgressPoint(task), onMouseDown: (e) => {
1093
+ this.handleBarEventStart('progress', task, e);
1094
+ } }))), task.icon &&
1095
+ task.icon.url &&
1096
+ this.getTaskIcon({
1097
+ color: (_c = task.icon.color) !== null && _c !== void 0 ? _c : '#000000',
1098
+ url: task.icon.url,
1099
+ width: task.height / 2 + 'px',
1100
+ height: task.height / 2 + 'px',
1101
+ x: task.x1 + (task.x2 - task.x1) - task.height / 2 / 2,
1102
+ y: task.y -
1103
+ task.height / 2 / 2 / 2 +
1104
+ (this.showSecondaryDates ? task.height / 2 : 0),
1105
+ })));
1106
+ }
1107
+ renderKupBarDisplay(x, y, width, height, progressX, progressWidth, barCornerRadius, styles, isSelected, isDateMovable, task, xSecondary, widthSecondary) {
1108
+ if (this.showSecondaryDates && typeof xSecondary !== 'undefined') {
1109
+ const halfHeight = height / 2;
1110
+ return (index.h("g", { onMouseDown: (e) => isDateMovable &&
1111
+ this.handleBarEventStart('move', task, e) }, index.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' }), index.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' }), index.h("rect", { key: "progress bar", x: progressX, width: progressWidth, y: y + halfHeight, height: halfHeight, ry: barCornerRadius, rx: barCornerRadius, fill: this.getProcessColor(isSelected, styles) })));
1112
+ }
1113
+ return (index.h("g", { onMouseDown: (e) => {
1114
+ isDateMovable && this.handleBarEventStart('move', task, e);
1115
+ } }, index.h("rect", { x: x, width: width, y: y, height: height, ry: barCornerRadius, rx: barCornerRadius, fill: this.getBarColor(isSelected, styles), class: 'barBackground' }), index.h("rect", { x: progressX, width: progressWidth, y: y, height: height, ry: barCornerRadius, rx: barCornerRadius, fill: this.getProcessColor(isSelected, styles) })));
1116
+ }
1117
+ renderKupBarDateHandle(x, y, width, height, barCornerRadius, task, eventType) {
1118
+ return (index.h("rect", { x: x, y: y, width: width, height: height, class: 'barHandle', ry: barCornerRadius, rx: barCornerRadius, onMouseDown: (e) => this.handleBarEventStart(eventType, task, e) }));
1119
+ }
1120
+ renderKupBarSmall(task, isSelected, isDateMovable, isProgressChangeable) {
1121
+ return (index.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), index.h("g", { class: "handleGroup" }, isProgressChangeable && (index.h("polygon", { class: 'barHandle', points: this.calculateProgressPoint(task, 'small'), onMouseDown: (e) => {
1122
+ this.handleBarEventStart('progress', task, e);
1123
+ } })))));
1124
+ }
1125
+ renderKupBarTimeLine(task, col) {
1126
+ return (index.h("g", { "tab-index": 0 }, index.h("rect", { fill: col, x: "0", width: "100%", y: task.y, height: task.height, rx: 0, ry: 0 }), task.barChildren.map((bar) => {
1127
+ var _a;
1128
+ return (index.h(index.Fragment, null, index.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 &&
1129
+ bar.icon.url &&
1130
+ this.getTaskIcon({
1131
+ color: (_a = bar.icon.color) !== null && _a !== void 0 ? _a : '#000000',
1132
+ url: bar.icon.url,
1133
+ width: bar.height + 'px',
1134
+ height: bar.height + 'px',
1135
+ x: bar.x1 +
1136
+ (bar.x2 - bar.x1) -
1137
+ bar.height / 2,
1138
+ y: bar.y - bar.height / 2 / 2,
1139
+ })));
1140
+ })));
1141
+ }
1142
+ renderKupArrow(task, child) {
1143
+ const [path, trianglePoints] = this.rtl
1144
+ ? this.drownPathAndTriangleRTL(task, this.tasks[child.index], this.rowHeight, this.taskHeight, this.arrowIndent)
1145
+ : this.drownPathAndTriangle(task, this.tasks[child.index], this.rowHeight, this.taskHeight, this.arrowIndent);
1146
+ return (index.h("g", { class: "arrow" }, index.h("path", { "stroke-width": "1.5", d: path, fill: "none" }), index.h("polygon", { points: trianglePoints })));
1147
+ }
1148
+ drownPathAndTriangle(taskFrom, taskTo, rowHeight, taskHeight, arrowIndent) {
1149
+ const indexCompare = taskFrom.index > taskTo.index ? -1 : 1;
1150
+ const taskToEndPosition = taskTo.y + taskHeight / 2;
1151
+ const taskFromEndPosition = taskFrom.x2 + arrowIndent * 2;
1152
+ const taskFromHorizontalOffsetValue = taskFromEndPosition < taskTo.x1
1153
+ ? ''
1154
+ : `H ${taskTo.x1 - arrowIndent}`;
1155
+ const taskToHorizontalOffsetValue = taskFromEndPosition > taskTo.x1
1156
+ ? arrowIndent
1157
+ : taskTo.x1 - taskFrom.x2 - arrowIndent;
1158
+ const path = `M ${taskFrom.x2} ${taskFrom.y + taskHeight / 2}
1159
+ h ${arrowIndent}
1160
+ v ${(indexCompare * rowHeight) / 2}
1161
+ ${taskFromHorizontalOffsetValue}
1162
+ V ${taskToEndPosition}
1163
+ h ${taskToHorizontalOffsetValue}`;
1164
+ const trianglePoints = `${taskTo.x1},${taskToEndPosition}
1165
+ ${taskTo.x1 - 5},${taskToEndPosition - 5}
1166
+ ${taskTo.x1 - 5},${taskToEndPosition + 5}`;
1167
+ return [path, trianglePoints];
1168
+ }
1169
+ drownPathAndTriangleRTL(taskFrom, taskTo, rowHeight, taskHeight, arrowIndent) {
1170
+ const indexCompare = taskFrom.index > taskTo.index ? -1 : 1;
1171
+ const taskToEndPosition = taskTo.y + taskHeight / 2;
1172
+ const taskFromEndPosition = taskFrom.x1 - arrowIndent * 2;
1173
+ const taskFromHorizontalOffsetValue = taskFromEndPosition > taskTo.x2
1174
+ ? ''
1175
+ : `H ${taskTo.x2 + arrowIndent}`;
1176
+ const taskToHorizontalOffsetValue = taskFromEndPosition < taskTo.x2
1177
+ ? -arrowIndent
1178
+ : taskTo.x2 - taskFrom.x1 + arrowIndent;
1179
+ const path = `M ${taskFrom.x1} ${taskFrom.y + taskHeight / 2}
1180
+ h ${-arrowIndent}
1181
+ v ${(indexCompare * rowHeight) / 2}
1182
+ ${taskFromHorizontalOffsetValue}
1183
+ V ${taskToEndPosition}
1184
+ h ${taskToHorizontalOffsetValue}`;
1185
+ const trianglePoints = `${taskTo.x2},${taskToEndPosition}
1186
+ ${taskTo.x2 + 5},${taskToEndPosition + 5}
1187
+ ${taskTo.x2 + 5},${taskToEndPosition - 5}`;
1188
+ return [path, trianglePoints];
1189
+ }
1190
+ getBarColor(isSelected, styles) {
1191
+ return isSelected
1192
+ ? styles.backgroundSelectedColor
1193
+ : styles.backgroundColor;
1194
+ }
1195
+ getProcessColor(isSelected, styles) {
1196
+ return isSelected ? styles.progressSelectedColor : styles.progressColor;
1197
+ }
1198
+ calculateProgressPoint(task, type = 'bar') {
1199
+ return bar_helpers.getProgressPoint(type == 'bar'
1200
+ ? +!this.rtl * task.progressWidth + task.progressX
1201
+ : task.progressWidth + task.x1, task.y, task.height);
1202
+ }
1203
+ render() {
1204
+ let y = 0;
1205
+ const gridRows = [];
1206
+ const rowLines = [
1207
+ index.h("line", { key: "RowLineFirst", x1: 0, y1: 0, x2: this.gridProps.svgWidth, y2: 0, class: "gridRowLine" }),
1208
+ ];
1209
+ for (const task of this.tasks) {
1210
+ gridRows.push(index.h("rect", { key: 'Row' + task.id, x: 0, y: y, width: this.gridProps.svgWidth, height: this.rowHeight, class: "gridRow" }));
1211
+ rowLines.push(index.h("line", { key: 'RowLine' + task.id, x1: 0, y1: y + this.rowHeight, x2: this.gridProps.svgWidth, y2: y + this.rowHeight, class: "gridRowLine" }));
1212
+ y += this.rowHeight;
1213
+ }
1214
+ const now = new Date();
1215
+ let tickX = 0;
1216
+ const ticks = [];
1217
+ for (let i = 0; i < this.dates.length; i++) {
1218
+ const date = this.dates[i];
1219
+ ticks.push(index.h("line", { key: date.getTime(), x1: tickX, y1: 0, x2: tickX, y2: y, class: "gridTick" }));
1220
+ if ((i + 1 !== this.dates.length &&
1221
+ date.getTime() < now.getTime() &&
1222
+ this.dates[i + 1].getTime() >= now.getTime()) ||
1223
+ // if current date is last
1224
+ (i !== 0 &&
1225
+ i + 1 === this.dates.length &&
1226
+ date.getTime() < now.getTime() &&
1227
+ kupPlannerRendererHelper.addToDate(date, date.getTime() - this.dates[i - 1].getTime(), 'millisecond').getTime() >= now.getTime())) ;
1228
+ tickX += this.columnWidth;
1229
+ }
1230
+ return (index.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) }, index.h("g", { class: "grid" }, index.h("g", { class: "rows" }, gridRows), index.h("g", { class: "rowLines" }, rowLines), index.h("g", { class: "ticks" }, ticks)), index.h("g", { class: "content" }, this.currentDateIndicator && (index.h("rect", { fill: this.currentDateIndicator.color, x: this.currentDateIndicator.x + 1.5, y: "0", width: "2", height: "100%" })), this.projection && (index.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" })), index.h("g", { class: "arrows", fill: this.arrowColor, stroke: this.arrowColor }, this.tasks.map((task) => {
1231
+ return task.barChildren.map((child) => {
1232
+ if (task.type !== 'timeline') {
1233
+ this.renderKupArrow(task, child);
1234
+ }
1235
+ });
1236
+ })), index.h("g", { class: "bar", "font-family": this.fontFamily, "font-size": this.fontSize }, this.tasks.map((task) => {
1237
+ const forbidResize = task.type === 'project';
1238
+ return (index.h("g", { onKeyDown: (e) => {
1239
+ switch (e.key) {
1240
+ case 'Delete': {
1241
+ if (!task.isDisabled)
1242
+ this.handleBarEventStart('delete', task, e);
1243
+ break;
1244
+ }
1245
+ }
1246
+ e.stopPropagation();
1247
+ }, onMouseEnter: (e) => {
1248
+ this.handleBarEventStart('mouseenter', task, e);
1249
+ }, onMouseLeave: (e) => {
1250
+ this.handleBarEventStart('mouseleave', task, e);
1251
+ }, onDblClick: () => {
1252
+ this.barDblClick(task);
1253
+ }, onClick: (e) => {
1254
+ this.handleBarEventStart('click', task, e);
1255
+ }, onContextMenu: (e) => {
1256
+ this.handleBarEventStart('contextmenu', task, e);
1257
+ }, onFocus: () => {
1258
+ this.handleBarEventStart('select', task);
1259
+ }, class: "task-wrapper" }, (() => {
1260
+ const props = {
1261
+ task: task,
1262
+ arrowIndent: this.arrowIndent,
1263
+ isDelete: !task.isDisabled,
1264
+ taskHeight: this.taskHeight,
1265
+ isSelected: !!this.selectedTask &&
1266
+ task.id ===
1267
+ this.selectedTask.id,
1268
+ rtl: this.rtl,
1269
+ hideLabel: this.hideLabel,
1270
+ };
1271
+ const styles = task.styles;
1272
+ const col = props.isSelected
1273
+ ? styles.backgroundSelectedColor
1274
+ : styles.backgroundColor;
1275
+ const isDateResizable = !this.readOnly &&
1276
+ !!this.dateChange &&
1277
+ !task.isDisabled &&
1278
+ !forbidResize;
1279
+ const isProgressChangeable = !this.readOnly &&
1280
+ !!this.progressChange &&
1281
+ !task.isDisabled;
1282
+ const isDateMovable = !this.readOnly &&
1283
+ !!this.dateChange &&
1284
+ !task.isDisabled;
1285
+ switch (task.typeInternal) {
1286
+ case 'project':
1287
+ return this.renderKupBar(task, props.isSelected, isDateResizable, isProgressChangeable);
1288
+ case 'smalltask':
1289
+ return this.renderKupBarSmall(task, props.isSelected, isDateMovable, isProgressChangeable);
1290
+ case 'timeline':
1291
+ return this.renderKupBarTimeLine(task, col);
1292
+ default:
1293
+ return this.renderKupBar(task, props.isSelected, isDateResizable, isProgressChangeable);
1294
+ }
1295
+ })()));
1296
+ })))));
1297
+ }
1298
+ static get watchers() { return {
1299
+ "columnWidth": ["updateXStep"],
1300
+ "dates": ["updateXStep"],
1301
+ "timeStep": ["updateXStep", "updateSvgMove"],
1302
+ "ganttEvent": ["updateSvgMove"],
1303
+ "xStep": ["updateSvgMove"],
1304
+ "svg": ["updateSvgMove"],
1305
+ "initEventX1Delta": ["updateSvgMove"],
1306
+ "point": ["updateSvgMove"],
1307
+ "rtl": ["updateSvgMove"],
1308
+ "onProgressChange": ["updateSvgMove"],
1309
+ "onDateChange": ["updateSvgMove"]
1310
+ }; }
1311
+ };
1312
+ KupGridRenderer.style = kupGridRendererCss;
1313
+
1314
+ exports.kup_custom_task_list_header = KupCustomTaskListHeader;
1315
+ exports.kup_custom_task_list_table = KupCustomTaskListTable;
1316
+ exports.kup_gantt_calendar = KupGanttCalendar;
1317
+ exports.kup_grid_renderer = KupGridRenderer;