@sme.up/ketchup 9.6.4 → 9.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/dist/cjs/{bar.helpers-f46a5a83.js → bar.helpers-c481a535.js} +45 -13
  2. package/dist/cjs/{f-button-89de2403.js → f-button-23ec3db5.js} +1 -1
  3. package/dist/cjs/{f-cell-75dbd6eb.js → f-cell-bcc51c0f.js} +5 -5
  4. package/dist/cjs/{f-chip-08857345.js → f-chip-63363ecf.js} +2 -2
  5. package/dist/cjs/{f-image-a41d7f1e.js → f-image-f3944c01.js} +2 -5
  6. package/dist/cjs/{f-paginator-utils-ff07301e.js → f-paginator-utils-60e05759.js} +2 -2
  7. package/dist/cjs/{f-text-field-eb207a83.js → f-text-field-354b6c78.js} +1 -1
  8. package/dist/cjs/index.cjs.js +1 -1
  9. package/dist/cjs/ketchup.cjs.js +1 -1
  10. package/dist/cjs/kup-accordion.cjs.entry.js +2 -2
  11. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +46 -46
  12. package/dist/cjs/kup-box.cjs.entry.js +7 -7
  13. package/dist/cjs/kup-calendar.cjs.entry.js +4 -4
  14. package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
  15. package/dist/cjs/kup-cell.cjs.entry.js +6 -6
  16. package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +253 -37
  17. package/dist/cjs/kup-dashboard.cjs.entry.js +4 -4
  18. package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
  19. package/dist/cjs/kup-echart.cjs.entry.js +1 -1
  20. package/dist/cjs/kup-editor.cjs.entry.js +1 -1
  21. package/dist/cjs/kup-family-tree.cjs.entry.js +3 -3
  22. package/dist/cjs/kup-gantt_10.cjs.entry.js +104 -38
  23. package/dist/cjs/kup-grid.cjs.entry.js +1 -1
  24. package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
  25. package/dist/cjs/kup-image-list.cjs.entry.js +20 -13
  26. package/dist/cjs/kup-input-panel.cjs.entry.js +199 -53
  27. package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
  28. package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
  29. package/dist/cjs/{kup-manager-abfe4ddd.js → kup-manager-e1bfd4f8.js} +647 -120
  30. package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
  31. package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
  32. package/dist/cjs/kup-pdf.cjs.entry.js +1 -1
  33. package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
  34. package/dist/cjs/{kup-planner-declarations-d3dec885.js → kup-planner-declarations-cb33663d.js} +3 -0
  35. package/dist/cjs/{kup-planner-renderer-helper-9f776d6e.js → kup-planner-renderer-helper-f001fad7.js} +55 -7
  36. package/dist/cjs/kup-planner-renderer.cjs.entry.js +43 -10
  37. package/dist/cjs/{kup-planner-time-formatter-a74e70f0.js → kup-planner-time-formatter-b7dca3ea.js} +3 -0
  38. package/dist/cjs/kup-planner.cjs.entry.js +80 -8
  39. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  40. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  41. package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
  42. package/dist/cjs/loader.cjs.js +1 -1
  43. package/dist/collection/assets/image-list.js +332 -2
  44. package/dist/collection/assets/input-panel.js +307 -76
  45. package/dist/collection/assets/planner-example-5.js +19 -7
  46. package/dist/collection/assets/planner-example-6.js +3 -0
  47. package/dist/collection/assets/planner.js +4 -3
  48. package/dist/collection/components/kup-badge/kup-badge.css +4 -4
  49. package/dist/collection/components/kup-image-list/kup-image-list.css +37 -4
  50. package/dist/collection/components/kup-image-list/kup-image-list.js +15 -8
  51. package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js +1 -1
  52. package/dist/collection/components/kup-input-panel/kup-input-panel.css +38 -1
  53. package/dist/collection/components/kup-input-panel/kup-input-panel.e2e.js +69 -28
  54. package/dist/collection/components/kup-input-panel/kup-input-panel.js +206 -59
  55. package/dist/collection/components/kup-planner/kup-planner-declarations.js +3 -0
  56. package/dist/collection/components/kup-planner/kup-planner-helper.js +42 -1
  57. package/dist/collection/components/kup-planner/kup-planner.js +191 -5
  58. package/dist/collection/components/kup-planner/utils/custom-task-list-table.js +103 -11
  59. package/dist/collection/components/kup-planner/utils/gantt-table.module.css +80 -2
  60. package/dist/collection/components/kup-planner/utils/helpers/bar.helpers.js +41 -13
  61. package/dist/collection/components/kup-planner/utils/helpers/other.helpers.js +3 -0
  62. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.css +10 -0
  63. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +61 -6
  64. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +32 -2
  65. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.css +4 -0
  66. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +208 -24
  67. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +4 -0
  68. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +131 -7
  69. package/dist/collection/components/kup-planner/utils/kup-planner-renderer-helper.js +55 -6
  70. package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +40 -7
  71. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.css +22 -15
  72. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +21 -5
  73. package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +19 -3
  74. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
  75. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
  76. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +76 -2
  77. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
  78. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
  79. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
  80. package/dist/collection/components/kup-probe/kup-probe.js +1 -1
  81. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
  82. package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
  83. package/dist/collection/components/kup-rating/kup-rating.js +1 -1
  84. package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
  85. package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
  86. package/dist/collection/components/kup-switch/kup-switch.js +1 -1
  87. package/dist/collection/components/kup-time-picker/kup-time-picker.js +1 -1
  88. package/dist/collection/f-components/f-image/f-image.js +2 -5
  89. package/dist/components/_commonjsHelpers.js +26 -0
  90. package/dist/components/custom-task-list-table.js +58 -13
  91. package/dist/components/kup-autocomplete2.js +43 -45
  92. package/dist/components/kup-calendar.js +1 -1
  93. package/dist/components/kup-dates.js +2 -25
  94. package/dist/components/kup-editor.js +1 -1
  95. package/dist/components/kup-gantt-calendar2.js +31 -1
  96. package/dist/components/kup-gantt2.js +26 -7
  97. package/dist/components/kup-grid-renderer2.js +219 -81
  98. package/dist/components/kup-horizontal-scroll2.js +48 -10
  99. package/dist/components/kup-image-list.js +14 -7
  100. package/dist/components/kup-input-panel.js +192 -46
  101. package/dist/components/kup-manager.js +649 -121
  102. package/dist/components/kup-pdf.js +1 -1
  103. package/dist/components/kup-planner-declarations.js +91 -0
  104. package/dist/components/kup-planner-renderer2.js +42 -9
  105. package/dist/components/kup-planner.js +86 -6
  106. package/dist/components/kup-probe.js +1 -1
  107. package/dist/components/kup-qlik.js +1 -1
  108. package/dist/components/kup-snackbar.js +1 -1
  109. package/dist/components/kup-standard-tooltip2.js +1 -1
  110. package/dist/components/kup-switcher2.js +19 -7
  111. package/dist/components/kup-task-gantt2.js +6 -4
  112. package/dist/components/kup-task-list-header2.js +7 -7
  113. package/dist/components/kup-task-list-table2.js +1 -1
  114. package/dist/components/kup-task-list2.js +434 -84
  115. package/dist/components/kup-tooltip2.js +1 -1
  116. package/dist/components/kup-vertical-scroll2.js +2 -2
  117. package/dist/components/other.helpers.js +47 -0
  118. package/dist/esm/{bar.helpers-0898efb9.js → bar.helpers-23a51579.js} +45 -14
  119. package/dist/esm/{f-button-1eebd42e.js → f-button-d6dbcfd6.js} +1 -1
  120. package/dist/esm/{f-cell-af19d5c7.js → f-cell-7b41415c.js} +5 -5
  121. package/dist/esm/{f-chip-9e5fdb25.js → f-chip-68d27d7a.js} +2 -2
  122. package/dist/esm/{f-image-1e1ed567.js → f-image-a67229e5.js} +2 -5
  123. package/dist/esm/{f-paginator-utils-dede029b.js → f-paginator-utils-8773e358.js} +2 -2
  124. package/dist/esm/{f-text-field-802b45fb.js → f-text-field-d364ffd2.js} +1 -1
  125. package/dist/esm/index.js +1 -1
  126. package/dist/esm/ketchup.js +1 -1
  127. package/dist/esm/kup-accordion.entry.js +2 -2
  128. package/dist/esm/kup-autocomplete_27.entry.js +46 -46
  129. package/dist/esm/kup-box.entry.js +7 -7
  130. package/dist/esm/kup-calendar.entry.js +4 -4
  131. package/dist/esm/kup-card-list.entry.js +1 -1
  132. package/dist/esm/kup-cell.entry.js +6 -6
  133. package/dist/esm/kup-custom-task-list-header_4.entry.js +253 -37
  134. package/dist/esm/kup-dashboard.entry.js +4 -4
  135. package/dist/esm/kup-drawer.entry.js +1 -1
  136. package/dist/esm/kup-echart.entry.js +1 -1
  137. package/dist/esm/kup-editor.entry.js +1 -1
  138. package/dist/esm/kup-family-tree.entry.js +3 -3
  139. package/dist/esm/kup-gantt_10.entry.js +105 -39
  140. package/dist/esm/kup-grid.entry.js +1 -1
  141. package/dist/esm/kup-iframe.entry.js +1 -1
  142. package/dist/esm/kup-image-list.entry.js +20 -13
  143. package/dist/esm/kup-input-panel.entry.js +199 -53
  144. package/dist/esm/kup-lazy.entry.js +1 -1
  145. package/dist/esm/kup-magic-box.entry.js +2 -2
  146. package/dist/esm/{kup-manager-dd24fb5a.js → kup-manager-a316a70e.js} +647 -120
  147. package/dist/esm/kup-nav-bar.entry.js +1 -1
  148. package/dist/esm/kup-numeric-picker.entry.js +2 -2
  149. package/dist/esm/kup-pdf.entry.js +1 -1
  150. package/dist/esm/kup-photo-frame.entry.js +1 -1
  151. package/dist/esm/{kup-planner-declarations-b9345758.js → kup-planner-declarations-398babf9.js} +3 -0
  152. package/dist/esm/{kup-planner-renderer-helper-b4727e44.js → kup-planner-renderer-helper-a2ec9a1c.js} +56 -7
  153. package/dist/esm/kup-planner-renderer.entry.js +43 -10
  154. package/dist/esm/{kup-planner-time-formatter-a68e05ba.js → kup-planner-time-formatter-ddf84f9b.js} +1 -1
  155. package/dist/esm/kup-planner.entry.js +80 -8
  156. package/dist/esm/kup-probe.entry.js +2 -2
  157. package/dist/esm/kup-qlik.entry.js +2 -2
  158. package/dist/esm/kup-snackbar.entry.js +4 -4
  159. package/dist/esm/loader.js +1 -1
  160. package/dist/ketchup/index.esm.js +1 -1
  161. package/dist/ketchup/ketchup.esm.js +1 -1
  162. package/dist/ketchup/p-008bdcdc.js +1 -0
  163. package/dist/ketchup/p-042e874a.entry.js +1 -0
  164. package/dist/ketchup/{p-b3b50bb5.entry.js → p-074ccd53.entry.js} +1 -1
  165. package/dist/ketchup/{p-26d42b88.entry.js → p-1088ab22.entry.js} +1 -1
  166. package/dist/ketchup/{p-201f8d7b.entry.js → p-1bcac01f.entry.js} +1 -1
  167. package/dist/ketchup/{p-3b544027.entry.js → p-1e028d95.entry.js} +1 -1
  168. package/dist/ketchup/p-25058baa.js +1 -0
  169. package/dist/ketchup/{p-dcf7e9b6.entry.js → p-2932e7e8.entry.js} +1 -1
  170. package/dist/ketchup/{p-b238cde7.entry.js → p-2b84db7b.entry.js} +1 -1
  171. package/dist/ketchup/{p-f998ff28.entry.js → p-2ef90f60.entry.js} +1 -1
  172. package/dist/ketchup/{p-8fcdf454.js → p-339bbeae.js} +1 -1
  173. package/dist/ketchup/{p-cd7fec02.entry.js → p-48e45ac0.entry.js} +1 -1
  174. package/dist/ketchup/p-53af4c87.js +1 -0
  175. package/dist/ketchup/{p-6972fa0c.entry.js → p-556f7ddc.entry.js} +1 -1
  176. package/dist/ketchup/{p-e7507dd6.entry.js → p-5f7d8c21.entry.js} +1 -1
  177. package/dist/ketchup/{p-e0e47ca9.entry.js → p-6362738c.entry.js} +1 -1
  178. package/dist/ketchup/{p-a2e14d8b.entry.js → p-65e363c6.entry.js} +1 -1
  179. package/dist/ketchup/p-6921bc81.entry.js +16 -0
  180. package/dist/ketchup/p-6961e0ce.entry.js +1 -0
  181. package/dist/ketchup/p-7123d2a4.entry.js +1 -0
  182. package/dist/ketchup/{p-6c888179.js → p-801776bc.js} +1 -1
  183. package/dist/ketchup/{p-4f69f6f9.entry.js → p-81645576.entry.js} +1 -1
  184. package/dist/ketchup/p-838dea62.js +1 -0
  185. package/dist/ketchup/{p-924b841b.js → p-84b511e1.js} +1 -1
  186. package/dist/ketchup/{p-8229b97a.js → p-8d4050ec.js} +4 -4
  187. package/dist/ketchup/{p-79f4dc5b.entry.js → p-9e2533e1.entry.js} +1 -1
  188. package/dist/ketchup/{p-158076de.entry.js → p-a06974a3.entry.js} +1 -1
  189. package/dist/ketchup/p-a6beb822.js +1 -0
  190. package/dist/ketchup/p-abe181d0.entry.js +1 -0
  191. package/dist/ketchup/{p-61e8d573.js → p-b3540f83.js} +1 -1
  192. package/dist/ketchup/{p-19a13672.entry.js → p-c702eb45.entry.js} +1 -1
  193. package/dist/ketchup/{p-2e04042b.entry.js → p-ccb6dbb0.entry.js} +1 -1
  194. package/dist/ketchup/{p-a2e691b8.entry.js → p-cf44485a.entry.js} +2 -2
  195. package/dist/ketchup/{p-8f3d400a.entry.js → p-d2001dec.entry.js} +1 -1
  196. package/dist/ketchup/{p-34d70475.entry.js → p-dbb6cd8d.entry.js} +1 -1
  197. package/dist/ketchup/{p-2d4a9235.js → p-f6c8f006.js} +1 -1
  198. package/dist/ketchup/{p-43ce397b.entry.js → p-f79ffe77.entry.js} +1 -1
  199. package/dist/ketchup/{p-489af77f.entry.js → p-fdcfaedd.entry.js} +1 -1
  200. package/dist/ketchup/p-fe75ede2.entry.js +1 -0
  201. package/dist/types/components/kup-image-list/kup-image-list.d.ts +1 -1
  202. package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +9 -7
  203. package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +4 -4
  204. package/dist/types/components/kup-planner/kup-planner-declarations.d.ts +29 -2
  205. package/dist/types/components/kup-planner/kup-planner-helper.d.ts +2 -1
  206. package/dist/types/components/kup-planner/kup-planner.d.ts +38 -0
  207. package/dist/types/components/kup-planner/utils/custom-task-list-table.d.ts +7 -0
  208. package/dist/types/components/kup-planner/utils/helpers/bar.helpers.d.ts +1 -1
  209. package/dist/types/components/kup-planner/utils/helpers/other.helpers.d.ts +1 -0
  210. package/dist/types/components/kup-planner/utils/kup-gantt/kup-gantt.d.ts +6 -0
  211. package/dist/types/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.d.ts +1 -0
  212. package/dist/types/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.d.ts +13 -1
  213. package/dist/types/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.d.ts +7 -0
  214. package/dist/types/components/kup-planner/utils/kup-planner-renderer-helper.d.ts +6 -2
  215. package/dist/types/components/kup-planner/utils/kup-planner-renderer.d.ts +1 -0
  216. package/dist/types/components/kup-planner/utils/kup-switcher/kup-switcher.d.ts +3 -1
  217. package/dist/types/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.d.ts +1 -0
  218. package/dist/types/components/kup-planner/utils/kup-task-list/kup-task-list.d.ts +4 -0
  219. package/dist/types/components.d.ts +122 -16
  220. package/package.json +1 -1
  221. package/dist/components/kup-planner-renderer-helper.js +0 -379
  222. package/dist/ketchup/p-14943de9.entry.js +0 -1
  223. package/dist/ketchup/p-180cd7ab.entry.js +0 -1
  224. package/dist/ketchup/p-636be6f1.entry.js +0 -16
  225. package/dist/ketchup/p-63c141d9.entry.js +0 -1
  226. package/dist/ketchup/p-818e61d5.entry.js +0 -1
  227. package/dist/ketchup/p-8e3b6de8.js +0 -1
  228. package/dist/ketchup/p-a46f99d4.js +0 -1
  229. package/dist/ketchup/p-c0f660d6.js +0 -1
  230. package/dist/ketchup/p-e4c63684.js +0 -1
  231. package/dist/ketchup/p-e841c2ae.js +0 -1
  232. package/dist/ketchup/p-f9a7c21c.entry.js +0 -1
@@ -1,27 +1,4 @@
1
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
-
3
- function getDefaultExportFromCjs (x) {
4
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
5
- }
6
-
7
- function getAugmentedNamespace(n) {
8
- if (n.__esModule) return n;
9
- var a = Object.defineProperty({}, '__esModule', {value: true});
10
- Object.keys(n).forEach(function (k) {
11
- var d = Object.getOwnPropertyDescriptor(n, k);
12
- Object.defineProperty(a, k, d.get ? d : {
13
- enumerable: true,
14
- get: function () {
15
- return n[k];
16
- }
17
- });
18
- });
19
- return a;
20
- }
21
-
22
- function commonjsRequire (path) {
23
- throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
24
- }
1
+ import { c as commonjsGlobal } from './_commonjsHelpers.js';
25
2
 
26
3
  /**
27
4
  * Normalization types.
@@ -824,4 +801,4 @@ class KupDates {
824
801
  }
825
802
  }
826
803
 
827
- export { KupDatesFormats as K, KupDatesNormalize as a, KupDates as b, commonjsGlobal as c, KupDatesLocales as d, KupDateTimeFormatOptionsMonth as e, getAugmentedNamespace as f, getDefaultExportFromCjs as g, commonjsRequire as h };
804
+ export { KupDatesFormats as K, KupDatesNormalize as a, KupDates as b, KupDatesLocales as c, KupDateTimeFormatOptionsMonth as d };
@@ -1,7 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
2
2
  import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager.js';
3
3
  import { c as componentWrapperId, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s } from './kup-autocomplete2.js';
4
- import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './kup-dates.js';
4
+ import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers.js';
5
5
 
6
6
  var toastuiEditor = {exports: {}};
7
7
 
@@ -270,8 +270,38 @@ const KupGanttCalendar = /*@__PURE__*/ proxyCustomElement(class KupGanttCalendar
270
270
  }
271
271
  return [topValues, bottomValues];
272
272
  }
273
+ getCalendarValuesForHour() {
274
+ const topValues = [];
275
+ const bottomValues = [];
276
+ const topDefaultHeight = this.headerHeight * 0.5;
277
+ const dates = this.dateSetup.dates;
278
+ for (let i = 0; i < dates.length; i++) {
279
+ const date = dates[i];
280
+ const bottomValue = getCachedDateTimeFormat(this.locale, {
281
+ hour: 'numeric',
282
+ }).format(date);
283
+ bottomValues.push(h("text", { key: date.getTime(), y: this.headerHeight * 0.8, x: this.columnWidth * (i + +this.rtl), class: "calendarBottomText" }, bottomValue));
284
+ if (i !== 0 && date.getDate() !== dates[i - 1].getDate()) {
285
+ const displayDate = dates[i - 1];
286
+ const topValue = `${getLocalDayOfWeek(displayDate, this.locale, 'long')}, ${displayDate.getDate()} ${getLocaleMonth(displayDate, this.locale)}`;
287
+ const topPosition = (date.getHours() - 24) / 2;
288
+ topValues.push({
289
+ key: topValue + date.getFullYear(),
290
+ value: topValue,
291
+ x1Line: this.columnWidth * i,
292
+ y1Line: 0,
293
+ y2Line: topDefaultHeight,
294
+ xText: this.columnWidth * (i + topPosition),
295
+ yText: topDefaultHeight * 0.9,
296
+ });
297
+ }
298
+ }
299
+ return [topValues, bottomValues];
300
+ }
273
301
  getTopAndBottomValues() {
274
302
  switch (this.dateSetup.viewMode) {
303
+ case 'hour':
304
+ return this.getCalendarValuesForHour();
275
305
  case 'day':
276
306
  return this.getCalendarValuesForDay();
277
307
  case 'week':
@@ -286,7 +316,7 @@ const KupGanttCalendar = /*@__PURE__*/ proxyCustomElement(class KupGanttCalendar
286
316
  this.simplifiedHeader =
287
317
  this.singleLineHeader && this.dateSetup.viewMode !== 'year';
288
318
  const [topValues, bottomValues] = this.getTopAndBottomValues();
289
- return (h("svg", { key: 'afbc0f59b413dd491ba4eec43ae3ad275b083617', xmlns: "http://www.w3.org/2000/svg", width: this.svgWidth, height: this.headerHeight }, h("g", { key: '52d441353903b6f5b5310c0e1b8b494c6294084a', class: "calendar", "font-size": this.fontSize, "font-family": this.fontFamily }, h("rect", { key: '4f5880bcc29c37d1e5f71b65cc752d510a690917', x: 0, y: 0, width: this.columnWidth * this.dateSetup.dates.length, height: this.headerHeight, class: "calendarHeader" }), this.simplifiedHeader ? null : bottomValues, this.simplifiedHeader
319
+ return (h("svg", { key: '7a19cec75e555a4fd92acca667c464df43370468', xmlns: "http://www.w3.org/2000/svg", width: this.svgWidth, height: this.headerHeight }, h("g", { key: 'a7e72bfedfefae5813d339b99d78bf7138354ff5', class: "calendar", "font-size": this.fontSize, "font-family": this.fontFamily }, h("rect", { key: '34f50e350bd20b69fe0a7bfc4744b27dfeb27a12', x: 0, y: 0, width: this.columnWidth * this.dateSetup.dates.length, height: this.headerHeight, class: "calendarHeader" }), this.simplifiedHeader ? null : bottomValues, this.simplifiedHeader
290
320
  ? topValues.map((topValue) => (h("g", { class: "calendarTop" }, h("line", { x1: topValue.x1Line, y1: topValue.y2Line * 2, x2: topValue.x1Line, y2: topValue.y2Line, class: "calendarTopTick", key: topValue.value + 'line' }), h("text", { key: topValue.value + 'text', y: topValue.yText, x: topValue.xText, class: "calendarTopText" }, topValue.value))))
291
321
  : topValues.map((topValue) => (h("g", { class: "calendarTop" }, h("line", { x1: topValue.x1Line, y1: topValue.y1Line, x2: topValue.x1Line, y2: topValue.y2Line, class: "calendarTopTick", key: topValue.value + 'line' }), h("text", { key: topValue.value + 'text', y: topValue.yText, x: topValue.xText, class: "calendarTopText" }, topValue.value)))), this.currentDateIndicator && (
292
322
  // current date indicator
@@ -1,19 +1,19 @@
1
1
  import { proxyCustomElement, HTMLElement, h, forceUpdate } from '@stencil/core/internal/client';
2
- import { g as ganttDateRangeFromTask, s as seedDates } from './kup-planner-renderer-helper.js';
3
- import { r as removeHiddenTasks, s as sortTasks, c as convertToBarTasks, a as calculateCurrentDateCalculator, b as calculateProjection, d as defineCustomElement$9 } from './kup-grid-renderer2.js';
2
+ import { g as ganttDateRangeFromTask, s as seedDates, d as defineCustomElement$5 } from './kup-task-list2.js';
3
+ import { r as removeHiddenTasks, s as sortTasks } from './other.helpers.js';
4
+ import { c as convertToBarTasks, a as calculateCurrentDateCalculator, b as calculateProjection, d as defineCustomElement$9 } from './kup-grid-renderer2.js';
4
5
  import { d as defineCustomElement$c } from './custom-task-list-header.js';
5
6
  import { d as defineCustomElement$b } from './custom-task-list-table.js';
6
7
  import { d as defineCustomElement$a } from './kup-gantt-calendar2.js';
7
8
  import { d as defineCustomElement$8 } from './kup-horizontal-scroll2.js';
8
9
  import { d as defineCustomElement$7 } from './kup-standard-tooltip2.js';
9
10
  import { d as defineCustomElement$6 } from './kup-task-gantt2.js';
10
- import { d as defineCustomElement$5 } from './kup-task-list2.js';
11
11
  import { d as defineCustomElement$4 } from './kup-task-list-header2.js';
12
12
  import { d as defineCustomElement$3 } from './kup-task-list-table2.js';
13
13
  import { d as defineCustomElement$2 } from './kup-tooltip2.js';
14
14
  import { d as defineCustomElement$1 } from './kup-vertical-scroll2.js';
15
15
 
16
- const kupGanttCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.wrapper{display:flex;padding:0;margin:0;list-style:none;outline:none;position:relative}.ganttContainer{background:#efefef;border-radius:8px;margin:12px;overflow:hidden;padding:12px}.ganttVerticalContainer{overflow:hidden;font-size:0;margin:0;padding:0}.horizontalContainer{margin:0;padding:0;overflow:hidden}.task-gantt{overflow:hidden}.tasks{border-radius:8px;background:#efefef;margin:12px;padding:12px}";
16
+ const kupGanttCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.wrapper{display:flex;padding:0;margin:0;list-style:none;outline:none;position:relative}.ganttContainer{background:#efefef;border-radius:8px;margin:12px;overflow:hidden;padding:12px}.ganttVerticalContainer{overflow:hidden;font-size:0;margin:0;padding:0}.horizontalContainer{margin:0;padding:0;overflow:hidden}.horizontalContainerScrollable{overflow:auto !important;scrollbar-width:0}.horizontalContainerScrollable::-webkit-scrollbar{width:0;height:0}.task-gantt{overflow:hidden}.tasks{border-radius:8px;background:#efefef;margin:12px;padding:12px}";
17
17
  const KupGanttStyle0 = kupGanttCss;
18
18
 
19
19
  const KupGantt = /*@__PURE__*/ proxyCustomElement(class KupGantt extends HTMLElement {
@@ -25,7 +25,7 @@ const KupGantt = /*@__PURE__*/ proxyCustomElement(class KupGantt extends HTMLEle
25
25
  this.tasks = undefined;
26
26
  this.headerHeight = 114;
27
27
  this.columnWidth = 60;
28
- this.listCellWidth = '297px';
28
+ this.listCellWidth = '300px';
29
29
  this.rowHeight = 50;
30
30
  this.filter = undefined;
31
31
  this.ganttHeight = 0;
@@ -70,6 +70,7 @@ const KupGantt = /*@__PURE__*/ proxyCustomElement(class KupGantt extends HTMLEle
70
70
  this.currentTasks = [];
71
71
  this.label = undefined;
72
72
  this.doubleView = undefined;
73
+ this.scrollableTaskList = undefined;
73
74
  this.setDoubleView = undefined;
74
75
  this.barContextMenu = undefined;
75
76
  this.scrollXChange = undefined;
@@ -88,6 +89,7 @@ const KupGantt = /*@__PURE__*/ proxyCustomElement(class KupGantt extends HTMLEle
88
89
  this.doubleClick = undefined;
89
90
  this.delete = undefined;
90
91
  this.expanderClick = undefined;
92
+ this.phaseDrop = undefined;
91
93
  this.wrapperRef = undefined;
92
94
  this.taskGanttRef = null;
93
95
  this.taskListRef = undefined;
@@ -109,6 +111,8 @@ const KupGantt = /*@__PURE__*/ proxyCustomElement(class KupGantt extends HTMLEle
109
111
  this.ignoreScrollEvent = false;
110
112
  this.currentDateIndicatorContent = undefined;
111
113
  this.projectionContent = undefined;
114
+ this.taskListScrollWidth = undefined;
115
+ this.taskListScrollX = 0;
112
116
  }
113
117
  //---- Lifecycle hooks ----
114
118
  componentWillLoad() {
@@ -287,6 +291,7 @@ const KupGantt = /*@__PURE__*/ proxyCustomElement(class KupGantt extends HTMLEle
287
291
  newScrollX = this.svgWidth;
288
292
  }
289
293
  this.scrollX = newScrollX;
294
+ // this.taskListScrollX = newScrollX;
290
295
  window.dispatchEvent(new CustomEvent('gantt-sync-scroll-event', {
291
296
  detail: {
292
297
  componentId: this.ganttId,
@@ -485,6 +490,13 @@ const KupGantt = /*@__PURE__*/ proxyCustomElement(class KupGantt extends HTMLEle
485
490
  this.expanderClick(Object.assign(Object.assign({}, task), { hideChildren: !task.hideChildren }));
486
491
  }
487
492
  }
493
+ handleTaskListScrollX(event) {
494
+ const currentTarget = event.currentTarget;
495
+ this.taskListScrollX = currentTarget.scrollLeft;
496
+ }
497
+ handlePhaseDragScroll(scrollY) {
498
+ this.scrollY = scrollY;
499
+ }
488
500
  setFailedTask(task) {
489
501
  this.failedTask = task;
490
502
  }
@@ -546,6 +558,7 @@ const KupGantt = /*@__PURE__*/ proxyCustomElement(class KupGantt extends HTMLEle
546
558
  barDblClick: this.barDblClick,
547
559
  barContextMenu: this.barContextMenu,
548
560
  delete: this.delete,
561
+ phaseDrop: this.phaseDrop
549
562
  };
550
563
  const tableProps = {
551
564
  rowHeight: this.rowHeight,
@@ -564,9 +577,11 @@ const KupGantt = /*@__PURE__*/ proxyCustomElement(class KupGantt extends HTMLEle
564
577
  setSelectedTask: this.handleSelectedTask.bind(this),
565
578
  expanderClick: this.handleExpanderClick.bind(this),
566
579
  TaskListHeader: this.TaskListHeader,
567
- TaskListTable: this.TaskListTable,
580
+ TaskListTable: this.TaskListTable
568
581
  };
569
- return (h("div", { key: '6cfa74263599c97bcae3f8f473f94c69bcaf8258', class: "gannt-wrapper-main" }, h("div", { key: 'ebc15fab0f8675bb5f21230175b7b50842e0974e', class: "wrapper", onKeyDown: this.handleKeyDown.bind(this), tabIndex: 0, ref: (el) => (this.wrapperRef = el) }, this.listCellWidth && (h("kup-task-list", Object.assign({ currentTasks: this.currentTasks, handleClick: this.handleClick, handleDblClick: this.handleDblClick, handleContextMenu: this.handleContextMenu, ganttOnClick: this.ganttOnClick, ganttOnDblClick: this.ganttOnDblClick, ganttonOnContextMenu: this.ganttonOnContextMenu, label: this.label, doubleView: this.doubleView, setDoubleView: this.setDoubleView }, tableProps, { class: "tasks", ref: (el) => (this.taskListTrueRef = el) }))), h("kup-task-gantt", { key: '6c9bdf420f5660fbae4f9c9d40f772e9fa93671b', gridProps: gridProps, calendarProps: calendarProps, barProps: barProps, ganttHeight: this.ganttHeight, taskGanttRef: this.taskGanttRef, scrollY: this.scrollY, scrollX: this.scrollX, class: "ganttContainer" }), this.ganttEvent.changedTask && (h("kup-tooltip", { arrowIndent: this.arrowIndent, rowHeight: this.rowHeight, svgContainerHeight: this.svgContainerHeight, svgContainerWidth: this.svgContainerWidth, fontFamily: this.fontFamily, fontSize: this.fontSize, scrollX: this.scrollX, scrollY: this.scrollY, task: this.ganttEvent.changedTask, headerHeight: this.headerHeight, taskListWidth: this.taskListWidth, TooltipContent: this.TooltipContent, rtl: this.rtl, svgWidth: this.svgWidth })), h("kup-vertical-scroll", { key: '09d624d5a440649b8b2a032d4257cd64356f2421', ganttFullHeight: this.ganttFullHeight, ganttHeight: this.ganttHeight, headerHeight: this.headerHeight, scrollNumber: this.scrollY, verticalScroll: this.handleScrollY.bind(this), rtl: this.rtl })), this.taskGanttRef && (h("kup-horizontal-scroll", { svgWidth: this.svgWidth, taskListTrueRef: this.taskListTrueRef, taskListWidth: this.taskListWidth, scrollNumber: this.scrollX, rtl: this.rtl, horizontalScroll: this.handleScrollX.bind(this) }))));
582
+ return (h("div", { key: 'd2628cb4c523eadcbfa97d83cad48ca0aa817fcb', class: "gannt-wrapper-main" }, h("div", { key: '3b336bd6595402bbb1b3ff87524d74286f63b1bc', class: "wrapper", onKeyDown: this.handleKeyDown.bind(this), tabIndex: 0, ref: (el) => (this.wrapperRef = el) }, this.listCellWidth && (h("kup-task-list", Object.assign({ currentTasks: this.currentTasks, handleClick: this.handleClick, handleDblClick: this.handleDblClick, handleContextMenu: this.handleContextMenu, ganttOnClick: this.ganttOnClick, ganttOnDblClick: this.ganttOnDblClick, ganttonOnContextMenu: this.ganttonOnContextMenu, label: this.label, doubleView: this.doubleView, setDoubleView: this.setDoubleView }, tableProps, { class: "tasks", scrollableTaskList: this.scrollableTaskList, updateTaskListScrollX: this.ignoreScrollEvent, ontaskListScrollWidth: (width) => {
583
+ this.taskListScrollWidth = width;
584
+ }, taskListScrollX: this.taskListScrollX, ref: (el) => (this.taskListTrueRef = el) }))), h("kup-task-gantt", { key: 'b887edfe9460338576ccc2868f39eef9f8c41e2a', gridProps: gridProps, calendarProps: calendarProps, barProps: barProps, ganttHeight: this.ganttHeight, taskGanttRef: this.taskGanttRef, scrollY: this.scrollY, scrollX: this.scrollX, phaseDragScroll: this.handlePhaseDragScroll.bind(this), class: "ganttContainer" }), this.ganttEvent.changedTask && (h("kup-tooltip", { arrowIndent: this.arrowIndent, rowHeight: this.rowHeight, svgContainerHeight: this.svgContainerHeight, svgContainerWidth: this.svgContainerWidth, fontFamily: this.fontFamily, fontSize: this.fontSize, scrollX: this.scrollX, scrollY: this.scrollY, task: this.ganttEvent.changedTask, headerHeight: this.headerHeight, taskListWidth: this.taskListWidth, TooltipContent: this.TooltipContent, rtl: this.rtl, svgWidth: this.svgWidth })), h("kup-vertical-scroll", { key: 'ab50bf33585da01c741255df86328c9fd3c10a4a', ganttFullHeight: this.ganttFullHeight, ganttHeight: this.ganttHeight, headerHeight: this.headerHeight, scrollNumber: this.scrollY, verticalScroll: this.handleScrollY.bind(this), rtl: this.rtl })), this.taskGanttRef && (h("kup-horizontal-scroll", { svgWidth: this.svgWidth, taskListTrueRef: this.taskListTrueRef, taskListWidth: this.taskListWidth, scrollNumber: this.scrollX, rtl: this.rtl, horizontalScroll: this.handleScrollX.bind(this), horizontalTaskListScroll: this.handleTaskListScrollX.bind(this), listCellWidth: this.listCellWidth, scrollableTaskList: this.scrollableTaskList, taskListScrollWidth: this.taskListScrollWidth, taskListScrollNumber: this.taskListScrollX }))));
570
585
  }
571
586
  get rootElement() { return this; }
572
587
  static get watchers() { return {
@@ -667,6 +682,7 @@ const KupGantt = /*@__PURE__*/ proxyCustomElement(class KupGantt extends HTMLEle
667
682
  "currentTasks": [16],
668
683
  "label": [1],
669
684
  "doubleView": [4, "double-view"],
685
+ "scrollableTaskList": [4, "scrollable-task-list"],
670
686
  "setDoubleView": [16],
671
687
  "barContextMenu": [16],
672
688
  "scrollXChange": [16],
@@ -685,6 +701,7 @@ const KupGantt = /*@__PURE__*/ proxyCustomElement(class KupGantt extends HTMLEle
685
701
  "doubleClick": [16],
686
702
  "delete": [16],
687
703
  "expanderClick": [16],
704
+ "phaseDrop": [16],
688
705
  "wrapperRef": [32],
689
706
  "taskGanttRef": [32],
690
707
  "taskListRef": [32],
@@ -706,6 +723,8 @@ const KupGantt = /*@__PURE__*/ proxyCustomElement(class KupGantt extends HTMLEle
706
723
  "ignoreScrollEvent": [32],
707
724
  "currentDateIndicatorContent": [32],
708
725
  "projectionContent": [32],
726
+ "taskListScrollWidth": [32],
727
+ "taskListScrollX": [32],
709
728
  "refresh": [64]
710
729
  }, [[0, "wheel", "handleWheel"]], {
711
730
  "initialScrollY": ["updateInitialScrollY"],