@sme.up/ketchup 9.6.3 → 9.6.4

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 (211) hide show
  1. package/dist/cjs/{f-button-9a0eba42.js → f-button-89de2403.js} +1 -1
  2. package/dist/cjs/{f-cell-1ad41071.js → f-cell-75dbd6eb.js} +9 -29
  3. package/dist/cjs/{f-chip-48851b4f.js → f-chip-08857345.js} +2 -2
  4. package/dist/cjs/{f-image-541e5f4d.js → f-image-a41d7f1e.js} +1 -1
  5. package/dist/cjs/{f-paginator-utils-8ff2a9b4.js → f-paginator-utils-ff07301e.js} +3 -3
  6. package/dist/cjs/{f-text-field-ac5d6497.js → f-text-field-eb207a83.js} +1 -1
  7. package/dist/cjs/index.cjs.js +2 -2
  8. package/dist/cjs/ketchup.cjs.js +1 -1
  9. package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
  10. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +47 -47
  11. package/dist/cjs/kup-box.cjs.entry.js +8 -8
  12. package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
  13. package/dist/cjs/kup-card-list.cjs.entry.js +2 -2
  14. package/dist/cjs/kup-cell.cjs.entry.js +7 -7
  15. package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +8 -8
  16. package/dist/cjs/kup-dashboard.cjs.entry.js +5 -5
  17. package/dist/cjs/{kup-dates-b7d53b4d.js → kup-dates-e22ee32c.js} +21 -0
  18. package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
  19. package/dist/cjs/kup-echart.cjs.entry.js +2 -2
  20. package/dist/cjs/kup-editor.cjs.entry.js +2 -2
  21. package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
  22. package/dist/cjs/kup-gantt_10.cjs.entry.js +21 -21
  23. package/dist/cjs/kup-grid.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  25. package/dist/cjs/kup-image-list.cjs.entry.js +7 -7
  26. package/dist/cjs/kup-input-panel.cjs.entry.js +298 -0
  27. package/dist/cjs/kup-lazy.cjs.entry.js +13 -13
  28. package/dist/cjs/kup-magic-box.cjs.entry.js +6 -6
  29. package/dist/cjs/{kup-manager-26a9154b.js → kup-manager-abfe4ddd.js} +9 -1
  30. package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
  31. package/dist/cjs/kup-numeric-picker.cjs.entry.js +4 -4
  32. package/dist/cjs/kup-pdf.cjs.entry.js +76600 -0
  33. package/dist/cjs/kup-photo-frame.cjs.entry.js +4 -4
  34. package/dist/cjs/{kup-planner-renderer-helper-680bbd5a.js → kup-planner-renderer-helper-9f776d6e.js} +1 -1
  35. package/dist/cjs/kup-planner-renderer.cjs.entry.js +3 -3
  36. package/dist/cjs/kup-planner.cjs.entry.js +4 -4
  37. package/dist/cjs/kup-probe.cjs.entry.js +3 -3
  38. package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
  39. package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
  40. package/dist/cjs/loader.cjs.js +1 -1
  41. package/dist/collection/assets/index.js +8 -0
  42. package/dist/collection/assets/input-panel.js +249 -0
  43. package/dist/collection/assets/pdf.js +15 -0
  44. package/dist/collection/collection-manifest.json +2 -0
  45. package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js +8 -0
  46. package/dist/collection/components/kup-input-panel/kup-input-panel.css +132 -0
  47. package/dist/collection/components/kup-input-panel/kup-input-panel.e2e.js +305 -0
  48. package/dist/collection/components/kup-input-panel/kup-input-panel.js +522 -0
  49. package/dist/collection/components/kup-lazy/kup-lazy.js +11 -11
  50. package/dist/collection/components/kup-list/kup-list.js +1 -1
  51. package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
  52. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
  53. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +1 -1
  54. package/dist/collection/components/kup-pdf/kup-pdf-declarations.js +8 -0
  55. package/dist/collection/components/kup-pdf/kup-pdf.css +169 -0
  56. package/dist/collection/components/kup-pdf/kup-pdf.js +262 -0
  57. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +2 -2
  58. package/dist/collection/components/kup-planner/kup-planner.js +1 -1
  59. package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
  60. package/dist/collection/components/kup-planner/utils/custom-task-list-table.js +1 -1
  61. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +1 -1
  62. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +1 -1
  63. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +2 -2
  64. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +2 -2
  65. package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +1 -1
  66. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +1 -1
  67. package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +2 -2
  68. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
  69. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
  70. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +1 -1
  71. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
  72. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
  73. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
  74. package/dist/collection/components/kup-probe/kup-probe.js +1 -1
  75. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
  76. package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
  77. package/dist/collection/components/kup-rating/kup-rating.js +1 -1
  78. package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
  79. package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
  80. package/dist/collection/components/kup-switch/kup-switch.js +1 -1
  81. package/dist/collection/components/kup-time-picker/kup-time-picker.js +1 -1
  82. package/dist/collection/f-components/f-cell/f-cell.js +5 -24
  83. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +7 -0
  84. package/dist/collection/types/GenericTypes.js +1 -0
  85. package/dist/components/custom-task-list-header.js +2 -2
  86. package/dist/components/custom-task-list-table.js +1 -1
  87. package/dist/components/kup-autocomplete2.js +44 -64
  88. package/dist/components/kup-box2.js +1 -1
  89. package/dist/components/kup-calendar.js +1 -1
  90. package/dist/components/kup-cell.js +1 -1
  91. package/dist/components/kup-dashboard.js +1 -1
  92. package/dist/components/kup-dates.js +20 -1
  93. package/dist/components/kup-echart2.js +1 -1
  94. package/dist/components/kup-gantt-calendar2.js +1 -1
  95. package/dist/components/kup-gantt2.js +1 -1
  96. package/dist/components/kup-grid-renderer2.js +2 -2
  97. package/dist/components/kup-grid2.js +1 -1
  98. package/dist/components/kup-horizontal-scroll2.js +2 -2
  99. package/dist/components/kup-iframe.js +1 -1
  100. package/dist/components/kup-image-list.js +1 -1
  101. package/dist/components/kup-input-panel.d.ts +11 -0
  102. package/dist/components/kup-input-panel.js +449 -0
  103. package/dist/components/kup-lazy.js +11 -11
  104. package/dist/components/kup-magic-box.js +4 -4
  105. package/dist/components/kup-manager.js +9 -1
  106. package/dist/components/kup-nav-bar.js +1 -1
  107. package/dist/components/kup-numeric-picker.js +2 -2
  108. package/dist/components/kup-pdf.d.ts +11 -0
  109. package/dist/components/kup-pdf.js +76756 -0
  110. package/dist/components/kup-photo-frame.js +2 -2
  111. package/dist/components/kup-planner-renderer2.js +1 -1
  112. package/dist/components/kup-planner.js +1 -1
  113. package/dist/components/kup-probe.js +1 -1
  114. package/dist/components/kup-qlik.js +1 -1
  115. package/dist/components/kup-snackbar.js +1 -1
  116. package/dist/components/kup-standard-tooltip2.js +1 -1
  117. package/dist/components/kup-switcher2.js +1 -1
  118. package/dist/components/kup-task-gantt2.js +2 -2
  119. package/dist/components/kup-task-list-header2.js +7 -7
  120. package/dist/components/kup-task-list-table2.js +1 -1
  121. package/dist/components/kup-task-list2.js +1 -1
  122. package/dist/components/kup-tooltip2.js +1 -1
  123. package/dist/components/kup-vertical-scroll2.js +2 -2
  124. package/dist/esm/{f-button-45d690a5.js → f-button-1eebd42e.js} +1 -1
  125. package/dist/esm/{f-cell-63db06db.js → f-cell-af19d5c7.js} +9 -29
  126. package/dist/esm/{f-chip-f1ab6c5e.js → f-chip-9e5fdb25.js} +2 -2
  127. package/dist/esm/{f-image-8b382cc5.js → f-image-1e1ed567.js} +1 -1
  128. package/dist/esm/{f-paginator-utils-ae563cd5.js → f-paginator-utils-dede029b.js} +3 -3
  129. package/dist/esm/{f-text-field-b5fcb598.js → f-text-field-802b45fb.js} +1 -1
  130. package/dist/esm/index.js +2 -2
  131. package/dist/esm/ketchup.js +1 -1
  132. package/dist/esm/kup-accordion.entry.js +3 -3
  133. package/dist/esm/kup-autocomplete_27.entry.js +47 -47
  134. package/dist/esm/kup-box.entry.js +8 -8
  135. package/dist/esm/kup-calendar.entry.js +5 -5
  136. package/dist/esm/kup-card-list.entry.js +2 -2
  137. package/dist/esm/kup-cell.entry.js +7 -7
  138. package/dist/esm/kup-custom-task-list-header_4.entry.js +8 -8
  139. package/dist/esm/kup-dashboard.entry.js +5 -5
  140. package/dist/esm/{kup-dates-4ad48be7.js → kup-dates-26a56bf7.js} +20 -1
  141. package/dist/esm/kup-drawer.entry.js +2 -2
  142. package/dist/esm/kup-echart.entry.js +2 -2
  143. package/dist/esm/kup-editor.entry.js +2 -2
  144. package/dist/esm/kup-family-tree.entry.js +4 -4
  145. package/dist/esm/kup-gantt_10.entry.js +21 -21
  146. package/dist/esm/kup-grid.entry.js +2 -2
  147. package/dist/esm/kup-iframe.entry.js +2 -2
  148. package/dist/esm/kup-image-list.entry.js +7 -7
  149. package/dist/esm/kup-input-panel.entry.js +294 -0
  150. package/dist/esm/kup-lazy.entry.js +13 -13
  151. package/dist/esm/kup-magic-box.entry.js +6 -6
  152. package/dist/esm/{kup-manager-cdb4f21a.js → kup-manager-dd24fb5a.js} +9 -1
  153. package/dist/esm/kup-nav-bar.entry.js +3 -3
  154. package/dist/esm/kup-numeric-picker.entry.js +4 -4
  155. package/dist/esm/kup-pdf.entry.js +76596 -0
  156. package/dist/esm/kup-photo-frame.entry.js +4 -4
  157. package/dist/esm/{kup-planner-renderer-helper-da0518be.js → kup-planner-renderer-helper-b4727e44.js} +1 -1
  158. package/dist/esm/kup-planner-renderer.entry.js +3 -3
  159. package/dist/esm/kup-planner.entry.js +4 -4
  160. package/dist/esm/kup-probe.entry.js +3 -3
  161. package/dist/esm/kup-qlik.entry.js +3 -3
  162. package/dist/esm/kup-snackbar.entry.js +5 -5
  163. package/dist/esm/loader.js +1 -1
  164. package/dist/ketchup/index.esm.js +1 -1
  165. package/dist/ketchup/ketchup.esm.js +1 -1
  166. package/dist/ketchup/p-14943de9.entry.js +1 -0
  167. package/dist/ketchup/{p-c6b34763.entry.js → p-158076de.entry.js} +1 -1
  168. package/dist/ketchup/{p-670354ef.entry.js → p-180cd7ab.entry.js} +1 -1
  169. package/dist/ketchup/{p-b6a21b6a.entry.js → p-19a13672.entry.js} +1 -1
  170. package/dist/ketchup/{p-d9284d98.entry.js → p-201f8d7b.entry.js} +1 -1
  171. package/dist/ketchup/{p-41e8402e.entry.js → p-26d42b88.entry.js} +1 -1
  172. package/dist/ketchup/{p-590c34bc.js → p-2d4a9235.js} +1 -1
  173. package/dist/ketchup/{p-090e5097.entry.js → p-2e04042b.entry.js} +1 -1
  174. package/dist/ketchup/{p-e508b2fd.entry.js → p-34d70475.entry.js} +1 -1
  175. package/dist/ketchup/{p-e0a1fbe7.entry.js → p-3b544027.entry.js} +1 -1
  176. package/dist/ketchup/{p-4c100286.entry.js → p-43ce397b.entry.js} +1 -1
  177. package/dist/ketchup/{p-31c0cfc0.entry.js → p-489af77f.entry.js} +1 -1
  178. package/dist/ketchup/{p-ca8a1f53.entry.js → p-4f69f6f9.entry.js} +1 -1
  179. package/dist/ketchup/{p-ba0f28b7.js → p-61e8d573.js} +1 -1
  180. package/dist/ketchup/{p-ca42a421.entry.js → p-636be6f1.entry.js} +2 -2
  181. package/dist/ketchup/{p-ec4050e1.entry.js → p-63c141d9.entry.js} +1 -1
  182. package/dist/ketchup/{p-4dfc5927.entry.js → p-6972fa0c.entry.js} +1 -1
  183. package/dist/ketchup/{p-a5074ce4.js → p-6c888179.js} +1 -1
  184. package/dist/ketchup/{p-1474852d.entry.js → p-79f4dc5b.entry.js} +1 -1
  185. package/dist/ketchup/{p-2b40d9b9.entry.js → p-818e61d5.entry.js} +1 -1
  186. package/dist/ketchup/{p-9a856951.js → p-8229b97a.js} +1 -1
  187. package/dist/ketchup/p-8f3d400a.entry.js +44 -0
  188. package/dist/ketchup/{p-bedabdb5.js → p-8fcdf454.js} +1 -1
  189. package/dist/ketchup/{p-ad6a3c2a.entry.js → p-a2e14d8b.entry.js} +1 -1
  190. package/dist/ketchup/{p-d839ce21.entry.js → p-a2e691b8.entry.js} +2 -2
  191. package/dist/ketchup/p-a46f99d4.js +1 -0
  192. package/dist/ketchup/{p-1cd48eea.entry.js → p-b238cde7.entry.js} +1 -1
  193. package/dist/ketchup/{p-837bd0a6.entry.js → p-b3b50bb5.entry.js} +1 -1
  194. package/dist/ketchup/{p-d50515f7.js → p-c0f660d6.js} +1 -1
  195. package/dist/ketchup/{p-157f0e89.entry.js → p-cd7fec02.entry.js} +1 -1
  196. package/dist/ketchup/{p-cbe42afd.entry.js → p-dcf7e9b6.entry.js} +1 -1
  197. package/dist/ketchup/{p-e0c10de2.entry.js → p-e0e47ca9.entry.js} +1 -1
  198. package/dist/ketchup/{p-9852b1e9.js → p-e4c63684.js} +1 -1
  199. package/dist/ketchup/{p-cc7352a8.entry.js → p-e7507dd6.entry.js} +1 -1
  200. package/dist/ketchup/p-eb8ea3a6.js +1 -0
  201. package/dist/ketchup/{p-d608f866.entry.js → p-f998ff28.entry.js} +1 -1
  202. package/dist/ketchup/{p-21351b19.entry.js → p-f9a7c21c.entry.js} +1 -1
  203. package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +79 -0
  204. package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +67 -0
  205. package/dist/types/components/kup-pdf/kup-pdf-declarations.d.ts +7 -0
  206. package/dist/types/components/kup-pdf/kup-pdf.d.ts +42 -0
  207. package/dist/types/components.d.ts +158 -0
  208. package/dist/types/types/GenericTypes.d.ts +1 -0
  209. package/package.json +2 -1
  210. package/dist/ketchup/p-5c79cb74.js +0 -1
  211. package/dist/ketchup/p-935f58fc.js +0 -1
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Props of the kup-pdf component.
3
+ * Used to export every prop in an object.
4
+ */
5
+ export var KupPdfProps;
6
+ (function (KupPdfProps) {
7
+ KupPdfProps["pdfPath"] = "This is the path to the PDF file.";
8
+ })(KupPdfProps || (KupPdfProps = {}));
@@ -0,0 +1,169 @@
1
+ .kup-body-compact-01 {
2
+ font-family: var(--kup-font-family);
3
+ font-size: 14px;
4
+ line-height: 18px;
5
+ font-weight: 400;
6
+ letter-spacing: 0.16px;
7
+ }
8
+
9
+ .kup-body-01 {
10
+ font-family: var(--kup-font-family);
11
+ font-size: 14px;
12
+ line-height: 20px;
13
+ font-weight: 400;
14
+ letter-spacing: 0.16px;
15
+ }
16
+
17
+ .kup-code-01 {
18
+ font-family: var(--kup-font-family-monospace);
19
+ font-size: 12px;
20
+ line-height: 16px;
21
+ font-weight: 400;
22
+ letter-spacing: 0.32px;
23
+ }
24
+
25
+ .kup-label-01 {
26
+ font-family: var(--kup-font-family);
27
+ font-size: 12px;
28
+ line-height: 16px;
29
+ font-weight: 400;
30
+ letter-spacing: 0.32px;
31
+ }
32
+
33
+ .kup-caption-02 {
34
+ font-family: var(--kup-font-family);
35
+ font-size: 12px;
36
+ line-height: 15px;
37
+ font-weight: 500;
38
+ letter-spacing: 1px;
39
+ }
40
+
41
+ .kup-caption-01 {
42
+ font-family: var(--kup-font-family);
43
+ font-size: 10px;
44
+ line-height: 13px;
45
+ font-weight: 400;
46
+ letter-spacing: 1px;
47
+ }
48
+
49
+ .kup-small-label-01 {
50
+ font-family: var(--kup-font-family);
51
+ font-size: 6px;
52
+ line-height: 9px;
53
+ font-weight: 400;
54
+ letter-spacing: 1px;
55
+ }
56
+
57
+ .kup-heading-compact-01 {
58
+ font-family: var(--kup-font-family);
59
+ font-size: 14px;
60
+ line-height: 18px;
61
+ font-weight: 600;
62
+ letter-spacing: 0.16px;
63
+ }
64
+
65
+ .kup-heading-01 {
66
+ font-family: var(--kup-font-family);
67
+ font-size: 14px;
68
+ line-height: 20px;
69
+ font-weight: 600;
70
+ letter-spacing: 0.16px;
71
+ }
72
+
73
+ .kup-heading-02 {
74
+ font-family: var(--kup-font-family);
75
+ font-size: 16px;
76
+ line-height: 24px;
77
+ font-weight: 500;
78
+ letter-spacing: 0;
79
+ }
80
+
81
+ .kup-heading-03 {
82
+ font-family: var(--kup-font-family);
83
+ font-size: 20px;
84
+ line-height: 28px;
85
+ font-weight: 400;
86
+ letter-spacing: 0;
87
+ }
88
+
89
+ .kup-heading-04 {
90
+ font-family: var(--kup-font-family);
91
+ font-size: 28px;
92
+ line-height: 36px;
93
+ font-weight: 400;
94
+ letter-spacing: 0;
95
+ }
96
+
97
+ .kup-heading-05 {
98
+ font-family: var(--kup-font-family);
99
+ font-size: 32px;
100
+ line-height: 40px;
101
+ font-weight: 300;
102
+ letter-spacing: 0;
103
+ }
104
+
105
+ .kup-heading-06 {
106
+ font-family: var(--kup-font-family);
107
+ font-size: 42px;
108
+ line-height: 50px;
109
+ font-weight: 300;
110
+ letter-spacing: 0;
111
+ }
112
+
113
+ .kup-heading-07 {
114
+ font-family: var(--kup-font-family);
115
+ font-size: 54px;
116
+ line-height: 64px;
117
+ font-weight: 300;
118
+ letter-spacing: 0;
119
+ }
120
+
121
+ .kup-heading-08 {
122
+ font-family: var(--kup-font-family);
123
+ font-size: 54px;
124
+ line-height: 64px;
125
+ font-weight: 600;
126
+ letter-spacing: 0;
127
+ }
128
+
129
+ /**
130
+ * @prop --kup-pdf-height: Sets a custom height for the component.
131
+ * @prop --kup-pdf-width: Sets a custom width for the component.
132
+ */
133
+ :host {
134
+ --kup_pdf_height: var(--kup-pdf-height, 100%);
135
+ --kup_pdf_width: var(--kup-pdf-width, 100%);
136
+ height: var(--kup_pdf_height);
137
+ width: var(--kup_pdf_width);
138
+ display: block;
139
+ }
140
+
141
+ #kup-component {
142
+ height: var(--kup_pdf_height);
143
+ width: var(--kup_pdf_width);
144
+ overflow: auto;
145
+ }
146
+
147
+ #kup-component::-webkit-scrollbar {
148
+ width: 1.1rem;
149
+ height: 1.1rem;
150
+ }
151
+
152
+ #kup-component::-webkit-scrollbar-corner {
153
+ background: transparent;
154
+ }
155
+
156
+ #kup-component::-webkit-scrollbar-thumb {
157
+ border: 6px solid transparent;
158
+ background: rgba(0, 0, 0, 0.2);
159
+ background: var(--palette-black-alpha-20, rgba(0, 0, 0, 0.2));
160
+ border-radius: 10px;
161
+ background-clip: padding-box;
162
+ }
163
+
164
+ #kup-component::-webkit-scrollbar-thumb:hover {
165
+ border: 4px solid transparent;
166
+ background: rgba(0, 0, 0, 0.3);
167
+ background: var(--palette-black-alpha-30, rgba(0, 0, 0, 0.3));
168
+ background-clip: padding-box;
169
+ }
@@ -0,0 +1,262 @@
1
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
+ if (kind === "a" && !f)
3
+ throw new TypeError("Private accessor was defined without a getter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
5
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
6
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7
+ };
8
+ var _KupPdf_kupManager;
9
+ import { forceUpdate, h, Host, } from "@stencil/core";
10
+ import { kupManagerInstance, } from "../../managers/kup-manager/kup-manager";
11
+ import { componentWrapperId } from "../../variables/GenericVariables";
12
+ import { getProps, setProps } from "../../utils/utils";
13
+ import { KupPdfProps } from "./kup-pdf-declarations";
14
+ import * as pdfjsLib from "pdfjs-dist";
15
+ import * as pdfjsWorker from "pdfjs-dist/build/pdf.worker.js";
16
+ export class KupPdf {
17
+ constructor() {
18
+ /*-------------------------------------------------*/
19
+ /* I n t e r n a l V a r i a b l e s */
20
+ /*-------------------------------------------------*/
21
+ _KupPdf_kupManager.set(this, kupManagerInstance());
22
+ this.pdfPath = undefined;
23
+ }
24
+ /*-------------------------------------------------*/
25
+ /* W a t c h e r s */
26
+ /*-------------------------------------------------*/
27
+ onPdfPathChange() {
28
+ this.wrapperRef.innerHTML = '';
29
+ this.renderPdf();
30
+ }
31
+ /*-------------------------------------------------*/
32
+ /* P u b l i c M e t h o d s */
33
+ /*-------------------------------------------------*/
34
+ /**
35
+ * Used to retrieve component's props values.
36
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
37
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
38
+ */
39
+ async getProps(descriptions) {
40
+ return getProps(this, KupPdfProps, descriptions);
41
+ }
42
+ /**
43
+ * This method is used to trigger a new render of the component.
44
+ */
45
+ async refresh() {
46
+ forceUpdate(this);
47
+ }
48
+ /**
49
+ * Sets the props to the component.
50
+ * @param {GenericObject} props - Object containing props that will be set to the component.
51
+ */
52
+ async setProps(props) {
53
+ setProps(this, KupPdfProps, props);
54
+ }
55
+ /*-------------------------------------------------*/
56
+ /* L i f e c y c l e H o o k s */
57
+ /*-------------------------------------------------*/
58
+ componentWillLoad() {
59
+ __classPrivateFieldGet(this, _KupPdf_kupManager, "f").debug.logLoad(this, false);
60
+ __classPrivateFieldGet(this, _KupPdf_kupManager, "f").theme.register(this);
61
+ }
62
+ componentDidLoad() {
63
+ this.kupReady.emit({
64
+ comp: this,
65
+ id: this.rootElement.id,
66
+ });
67
+ pdfjsLib.GlobalWorkerOptions.workerSrc = pdfjsWorker;
68
+ this.renderPdf().then(() => {
69
+ __classPrivateFieldGet(this, _KupPdf_kupManager, "f").debug.logLoad(this, true);
70
+ });
71
+ }
72
+ componentWillRender() {
73
+ __classPrivateFieldGet(this, _KupPdf_kupManager, "f").debug.logRender(this, false);
74
+ }
75
+ componentDidRender() {
76
+ __classPrivateFieldGet(this, _KupPdf_kupManager, "f").debug.logRender(this, true);
77
+ }
78
+ async renderPdf() {
79
+ try {
80
+ const loadingPdfTask = pdfjsLib.getDocument({
81
+ url: this.pdfPath,
82
+ withCredentials: true,
83
+ });
84
+ const pdf = await loadingPdfTask.promise;
85
+ const pdfContainer = this.wrapperRef;
86
+ for (let page = 1; page <= pdf.numPages; page++) {
87
+ const canvas = document.createElement('canvas');
88
+ pdfContainer.appendChild(canvas);
89
+ pdf.getPage(page).then(function (page) {
90
+ const requiredScale = 2; // initial scale is set to 2 so the pdf outputs clear, keeping on 1 causes the pdf to be blurry
91
+ const viewport = page.getViewport({ scale: requiredScale });
92
+ // set canvas height/width to upscale the pdf
93
+ canvas.height = requiredScale * viewport.height;
94
+ canvas.width = requiredScale * viewport.width;
95
+ canvas.style.width = '100%';
96
+ page.render({
97
+ canvasContext: canvas.getContext('2d'),
98
+ viewport: viewport,
99
+ transform: [requiredScale, 0, 0, requiredScale, 0, 0],
100
+ });
101
+ });
102
+ }
103
+ }
104
+ catch (error) { }
105
+ }
106
+ render() {
107
+ return (h(Host, { key: '51c637e689633b072188148f2a3cb6e1d7d62f00' }, h("div", { key: 'bb98286e27145e4c5f3a836161de335d6a465637', id: componentWrapperId, ref: (el) => (this.wrapperRef = el) })));
108
+ }
109
+ disconnectedCallback() {
110
+ __classPrivateFieldGet(this, _KupPdf_kupManager, "f").theme.unregister(this);
111
+ }
112
+ static get is() { return "kup-pdf"; }
113
+ static get encapsulation() { return "shadow"; }
114
+ static get originalStyleUrls() {
115
+ return {
116
+ "$": ["kup-pdf.scss"]
117
+ };
118
+ }
119
+ static get styleUrls() {
120
+ return {
121
+ "$": ["kup-pdf.css"]
122
+ };
123
+ }
124
+ static get properties() {
125
+ return {
126
+ "pdfPath": {
127
+ "type": "string",
128
+ "mutable": false,
129
+ "complexType": {
130
+ "original": "string",
131
+ "resolved": "string",
132
+ "references": {}
133
+ },
134
+ "required": false,
135
+ "optional": false,
136
+ "docs": {
137
+ "tags": [{
138
+ "name": "default",
139
+ "text": "null"
140
+ }],
141
+ "text": "Path of the pdf document"
142
+ },
143
+ "attribute": "pdf-path",
144
+ "reflect": false
145
+ }
146
+ };
147
+ }
148
+ static get events() {
149
+ return [{
150
+ "method": "kupReady",
151
+ "name": "kup-pdf-ready",
152
+ "bubbles": true,
153
+ "cancelable": false,
154
+ "composed": true,
155
+ "docs": {
156
+ "tags": [],
157
+ "text": "Triggered when the component is ready."
158
+ },
159
+ "complexType": {
160
+ "original": "KupEventPayload",
161
+ "resolved": "KupEventPayload",
162
+ "references": {
163
+ "KupEventPayload": {
164
+ "location": "import",
165
+ "path": "../../types/GenericTypes",
166
+ "id": "src/types/GenericTypes.ts::KupEventPayload"
167
+ }
168
+ }
169
+ }
170
+ }];
171
+ }
172
+ static get methods() {
173
+ return {
174
+ "getProps": {
175
+ "complexType": {
176
+ "signature": "(descriptions?: boolean) => Promise<GenericObject>",
177
+ "parameters": [{
178
+ "name": "descriptions",
179
+ "type": "boolean",
180
+ "docs": "- When provided and true, the result will be the list of props with their description."
181
+ }],
182
+ "references": {
183
+ "Promise": {
184
+ "location": "global",
185
+ "id": "global::Promise"
186
+ },
187
+ "GenericObject": {
188
+ "location": "import",
189
+ "path": "../../types/GenericTypes",
190
+ "id": "src/types/GenericTypes.ts::GenericObject"
191
+ }
192
+ },
193
+ "return": "Promise<GenericObject>"
194
+ },
195
+ "docs": {
196
+ "text": "Used to retrieve component's props values.",
197
+ "tags": [{
198
+ "name": "param",
199
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
200
+ }, {
201
+ "name": "returns",
202
+ "text": "List of props as object, each key will be a prop."
203
+ }]
204
+ }
205
+ },
206
+ "refresh": {
207
+ "complexType": {
208
+ "signature": "() => Promise<void>",
209
+ "parameters": [],
210
+ "references": {
211
+ "Promise": {
212
+ "location": "global",
213
+ "id": "global::Promise"
214
+ }
215
+ },
216
+ "return": "Promise<void>"
217
+ },
218
+ "docs": {
219
+ "text": "This method is used to trigger a new render of the component.",
220
+ "tags": []
221
+ }
222
+ },
223
+ "setProps": {
224
+ "complexType": {
225
+ "signature": "(props: GenericObject) => Promise<void>",
226
+ "parameters": [{
227
+ "name": "props",
228
+ "type": "GenericObject",
229
+ "docs": "- Object containing props that will be set to the component."
230
+ }],
231
+ "references": {
232
+ "Promise": {
233
+ "location": "global",
234
+ "id": "global::Promise"
235
+ },
236
+ "GenericObject": {
237
+ "location": "import",
238
+ "path": "../../types/GenericTypes",
239
+ "id": "src/types/GenericTypes.ts::GenericObject"
240
+ }
241
+ },
242
+ "return": "Promise<void>"
243
+ },
244
+ "docs": {
245
+ "text": "Sets the props to the component.",
246
+ "tags": [{
247
+ "name": "param",
248
+ "text": "props - Object containing props that will be set to the component."
249
+ }]
250
+ }
251
+ }
252
+ };
253
+ }
254
+ static get elementRef() { return "rootElement"; }
255
+ static get watchers() {
256
+ return [{
257
+ "propName": "pdfPath",
258
+ "methodName": "onPdfPathChange"
259
+ }];
260
+ }
261
+ }
262
+ _KupPdf_kupManager = new WeakMap();
@@ -99,9 +99,9 @@ export class KupPhotoFrame {
99
99
  if (this.isInViewport && !__classPrivateFieldGet(this, _KupPhotoFrame_renderResource, "f")) {
100
100
  __classPrivateFieldSet(this, _KupPhotoFrame_renderResource, true, "f");
101
101
  }
102
- return (h(Host, { key: '6c00ea47c4d5d38086cebc033c69938c21fbd2aa' }, h("style", { key: '0efdcd6f886f5dd5dd2f773e5bd1420b5c01d1f7' }, __classPrivateFieldGet(this, _KupPhotoFrame_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'a760ffb8b7cd901b3fb695f5bfcfcd5b09e7888f', id: componentWrapperId, ref: (el) => {
102
+ return (h(Host, { key: 'd6d82199e94a278a68fcd3bcb2e128f4714f7dcd' }, h("style", { key: 'ba1ceb0cd797d7a3a7808d7b2cd4849193faff42' }, __classPrivateFieldGet(this, _KupPhotoFrame_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '4701a46d03923c418672ed93098d5bde32ae38ae', id: componentWrapperId, ref: (el) => {
103
103
  __classPrivateFieldSet(this, _KupPhotoFrame_wrapperEl, el, "f");
104
- } }, h("img", Object.assign({ key: '2c2d9a4843488612240a96c16eeb6cbf30929c21' }, this.placeholderAttrs, { class: "placeholder", ref: (el) => (__classPrivateFieldSet(this, _KupPhotoFrame_placeholderEl, el, "f")), onLoad: () => {
104
+ } }, h("img", Object.assign({ key: '451b86c100861cb4b72cfc2575e2c7ad6da3b6ee' }, this.placeholderAttrs, { class: "placeholder", ref: (el) => (__classPrivateFieldSet(this, _KupPhotoFrame_placeholderEl, el, "f")), onLoad: () => {
105
105
  if (__classPrivateFieldGet(this, _KupPhotoFrame_placeholderEl, "f").naturalWidth >
106
106
  __classPrivateFieldGet(this, _KupPhotoFrame_placeholderEl, "f").naturalHeight) {
107
107
  __classPrivateFieldGet(this, _KupPhotoFrame_wrapperEl, "f").classList.add('horizontal');
@@ -499,7 +499,7 @@ export class KupPlanner {
499
499
  if ((_b = this.plannerProps) === null || _b === void 0 ? void 0 : _b.secondaryGantt) {
500
500
  plannerProps.secondaryGantt = Object.assign(Object.assign({}, this.plannerProps.secondaryGantt), { onScrollY: this.handleDetailGanttScrollY.bind(this) });
501
501
  }
502
- return (h(Host, { key: 'f3c51ffc99f55225dca3f5510f2be5881145a208' }, h("style", { key: 'f79296340221217cb79b5b2956c7a0e2907e844e' }, __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '4df21c4b72d0a8984e17a507527fb927a5c23dca', id: componentWrapperId, style: { maxWidth: this.maxWidth } }, this.plannerProps && (h("kup-planner-renderer", { props: plannerProps, ref: (el) => (this.plannerRenderer = el) }))), h("div", { key: 'a95906fcd99bc6063045451d2d471a4d5ca18705', style: { display: this.plannerProps ? 'none' : '' } }, h(FTextField, { key: 'c6975b21e0d1eb44663d341fa6db238c39faa032', icon: KupThemeIconValues.SEARCH, id: "main-filter", label: __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), onKeyDown: (e) => {
502
+ return (h(Host, { key: '48097981722a6754c764f640323df8db967a8965' }, h("style", { key: '4e707ee5c473822a3d8f57c54d49e79df72094ba' }, __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'ed811811c76bd8e36487018607af8d72125bce3a', id: componentWrapperId, style: { maxWidth: this.maxWidth } }, this.plannerProps && (h("kup-planner-renderer", { props: plannerProps, ref: (el) => (this.plannerRenderer = el) }))), h("div", { key: 'd337aadbee5d6e101c2ed0084b85fddb51602c93', style: { display: this.plannerProps ? 'none' : '' } }, h(FTextField, { key: 'c1ae374b1041d4e273a5e6eac20b72d2a4011374', icon: KupThemeIconValues.SEARCH, id: "main-filter", label: __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), onKeyDown: (e) => {
503
503
  if (e.key === 'Enter') {
504
504
  __classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_onFilter).call(this, e.target.value);
505
505
  }
@@ -8,11 +8,11 @@ export class KupCustomTaskListHeader {
8
8
  this.fontSize = undefined;
9
9
  }
10
10
  render() {
11
- return (h("div", { key: '25542e1e426f9f035bdd3b894acf915100609cec', class: "custom-task-list-wrapper", style: {
11
+ return (h("div", { key: '777c24c612e5d8c93b74a4a8466248cd9a84cd31', class: "custom-task-list-wrapper", style: {
12
12
  height: '50px',
13
13
  fontFamily: this.fontFamily,
14
14
  fontSize: this.fontSize,
15
- } }, h("div", { key: 'b64868e8a15fda0a259e30e77a1572fef34cf9a9', class: "title" }, h("span", { key: '4bb87686a421a211ff7caa2c53105764f2e15c0a' }, this.label)), this.setDoubleView !== undefined && (h("div", { class: "toggler" }, h("label", { htmlFor: "ch2", class: "switch" }, h("input", { class: "input", id: "ch2", type: "checkbox", checked: this.doubleView, onClick: () => this.setDoubleView(!this.doubleView) }), h("span", { class: "slider" })), h("span", { class: "label" }, "Previsioni")))));
15
+ } }, h("div", { key: '8a00184f85811656ea2f4c6e69fee0db3ef85f48', class: "title" }, h("span", { key: '170a1bef8a7663064ebaaa600a3aaa40beb84243' }, this.label)), this.setDoubleView !== undefined && (h("div", { class: "toggler" }, h("label", { htmlFor: "ch2", class: "switch" }, h("input", { class: "input", id: "ch2", type: "checkbox", checked: this.doubleView, onClick: () => this.setDoubleView(!this.doubleView) }), h("span", { class: "slider" })), h("span", { class: "label" }, "Previsioni")))));
16
16
  }
17
17
  static get is() { return "kup-custom-task-list-header"; }
18
18
  static get originalStyleUrls() {
@@ -15,7 +15,7 @@ export class KupCustomTaskListTable {
15
15
  }
16
16
  render() {
17
17
  const kupDates = new KupDates();
18
- return (h("div", { key: 'aa6299da80dde8682f3fe8c1a8e244d6c15e5c5c', class: "container" }, this.tasks.map((task) => {
18
+ return (h("div", { key: '6f208e493d948891975d12cfa398634ead8f7631', class: "container" }, this.tasks.map((task) => {
19
19
  var _a, _b, _c;
20
20
  return (h(Fragment, null, task.type === 'project' ? (h("div", { class: "project", style: {
21
21
  height: `${this.rowHeight}px`,
@@ -550,7 +550,7 @@ export class KupGantt {
550
550
  TaskListHeader: this.TaskListHeader,
551
551
  TaskListTable: this.TaskListTable,
552
552
  };
553
- return (h("div", { key: 'f7f84291517b74796502599d7005f0902432da84', class: "gannt-wrapper-main" }, h("div", { key: 'bbf2af26ac05a9c67a82eddedbeb7641c9b75e04', 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: '138391819549ea113ba52f3d218afbc74e4e92bb', 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: 'da4e17e28991a3fbc7793c90d17d42cdb3f29383', 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) }))));
553
+ 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) }))));
554
554
  }
555
555
  static get is() { return "kup-gantt"; }
556
556
  static get originalStyleUrls() {
@@ -195,7 +195,7 @@ export class KupGanttCalendar {
195
195
  this.simplifiedHeader =
196
196
  this.singleLineHeader && this.dateSetup.viewMode !== 'year';
197
197
  const [topValues, bottomValues] = this.getTopAndBottomValues();
198
- return (h("svg", { key: '171a0a61231f0c68b1df22766f06d5c6a6ee6488', xmlns: "http://www.w3.org/2000/svg", width: this.svgWidth, height: this.headerHeight }, h("g", { key: 'bb77cf35555bfe7e4e9dffe476de550b06253235', class: "calendar", "font-size": this.fontSize, "font-family": this.fontFamily }, h("rect", { key: 'b99cc1d617b4ad05fa319423ac985a078d53794d', x: 0, y: 0, width: this.columnWidth * this.dateSetup.dates.length, height: this.headerHeight, class: "calendarHeader" }), this.simplifiedHeader ? null : bottomValues, this.simplifiedHeader
198
+ 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
199
199
  ? 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))))
200
200
  : 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 && (
201
201
  // current date indicator
@@ -364,13 +364,13 @@ export class KupGridRenderer {
364
364
  }
365
365
  tickX += this.columnWidth;
366
366
  }
367
- return (h("svg", { key: '453f06f9849218010409d444adb13500f22b6cfa', xmlns: "http://www.w3.org/2000/svg", width: this.gridProps.svgWidth, height: `${this.rowHeight * this.tasks.length}px`, "font-family": this.fontFamily, ref: (el) => (this.svg = el) }, h("g", { key: 'a671a9e0c1c44ef1b3d86d679d68dda934246e59', class: "grid" }, h("g", { key: '3741633c839e757fa4d4cc0999d9e34ad5284173', class: "rows" }, gridRows), h("g", { key: '34bdba123cff205d0769e6492055a72f51b85bd7', class: "rowLines" }, rowLines), h("g", { key: '0d2b321b587e8cc4a65ac356ea1a5903c1fa61f6', class: "ticks" }, ticks)), h("g", { key: '891e706099f2c83dcabf5a0bb62a2c8139c10ac1', class: "content" }, this.currentDateIndicator && (h("rect", { fill: this.currentDateIndicator.color, x: this.currentDateIndicator.x + 1.5, y: "0", width: "2", height: "100%" })), this.projection && (h("rect", { fill: this.projection.color, x: this.projection.x0, y: "0", width: this.projection.xf - this.projection.x0, height: "100%", "fill-opacity": "0.35" })), h("g", { key: '6e36b71942a8619b800210d189629c0856cb57f6', class: "arrows", fill: this.arrowColor, stroke: this.arrowColor }, this.tasks.map((task) => {
367
+ return (h("svg", { key: '520a50739aa00f72aeb4e43ba03a3b5f126e289a', xmlns: "http://www.w3.org/2000/svg", width: this.gridProps.svgWidth, height: `${this.rowHeight * this.tasks.length}px`, "font-family": this.fontFamily, ref: (el) => (this.svg = el) }, h("g", { key: '2681f573ab6f0c7ae9c9f316b77a05c9a634e100', class: "grid" }, h("g", { key: '085ea28cdbb6ee28354cd255c0f1b00a56c5588f', class: "rows" }, gridRows), h("g", { key: 'cb02f6b77af725f514f4eaf63624ff4ace5cf9e2', class: "rowLines" }, rowLines), h("g", { key: 'bed7254aeb03e0fbd1ab3e9d40c14f84b346bffc', class: "ticks" }, ticks)), h("g", { key: 'b22b4e0c75d7cef3336a8e069b243d6296200272', class: "content" }, this.currentDateIndicator && (h("rect", { fill: this.currentDateIndicator.color, x: this.currentDateIndicator.x + 1.5, y: "0", width: "2", height: "100%" })), this.projection && (h("rect", { fill: this.projection.color, x: this.projection.x0, y: "0", width: this.projection.xf - this.projection.x0, height: "100%", "fill-opacity": "0.35" })), h("g", { key: '594dd1e9af2f037f0599019a3082a58115907d3b', class: "arrows", fill: this.arrowColor, stroke: this.arrowColor }, this.tasks.map((task) => {
368
368
  return task.barChildren.map((child) => {
369
369
  if (task.type !== 'timeline') {
370
370
  this.renderKupArrow(task, child);
371
371
  }
372
372
  });
373
- })), h("g", { key: '38643adf911e2b0ff25b0ffe4f8c8c645171c55d', class: "bar", "font-family": this.fontFamily, "font-size": this.fontSize }, this.tasks.map((task) => {
373
+ })), h("g", { key: '9d41cb46ff1373cf3a34fcebf7f9bc02ab961a8b', class: "bar", "font-family": this.fontFamily, "font-size": this.fontSize }, this.tasks.map((task) => {
374
374
  const forbidResize = task.type === 'project';
375
375
  return (h("g", { onKeyDown: (e) => {
376
376
  switch (e.key) {
@@ -31,11 +31,11 @@ export class HorizontalScroll {
31
31
  render() {
32
32
  var _a, _b;
33
33
  const w = (_b = ((_a = this.taskListTrueRef) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width) + 24 * 1.5) !== null && _b !== void 0 ? _b : 0; // 24 * 2 is the sum of padding and margin for both list and gantt, multiplied by 1.5 cause we need to add the other half to the right
34
- return (h("div", { key: '6900ce2b4ff33f7f48403c085861d25d8a55ae51', dir: "ltr", style: {
34
+ return (h("div", { key: 'a560e1597e9122df0d98d0508ace8ec5c04a5513', dir: "ltr", style: {
35
35
  margin: this.rtl
36
36
  ? `0px ${w}px 0px 12px`
37
37
  : `0px 12px 0px ${w}px`,
38
- }, class: "scrollWrapper", "data-scrollx": "true", onScroll: this.horizontalScroll }, h("div", { key: 'd5cd1e9ec9d4dc2a1c249eef3c485dc3eb9f82ad', style: { width: `${this.svgWidth}px` }, class: "scroll" })));
38
+ }, class: "scrollWrapper", "data-scrollx": "true", onScroll: this.horizontalScroll }, h("div", { key: 'd1f0693a7a2f4ae545d48c0708f91770c1fee717', style: { width: `${this.svgWidth}px` }, class: "scroll" })));
39
39
  }
40
40
  static get is() { return "kup-horizontal-scroll"; }
41
41
  static get encapsulation() { return "shadow"; }
@@ -195,7 +195,7 @@ export class KupPlannerRenderer {
195
195
  }
196
196
  render() {
197
197
  var _a, _b, _c;
198
- return (h("div", { key: '819b9d89b953274cacccee9bf2022575743e0d27', class: "planner-render" }, h("kup-switcher", { key: 'eebcce029f98a9f08cab9c96be0bad01999b7f95', timeUnitChange: (timeUnit) => {
198
+ return (h("div", { key: 'e633ff68b8b848cd29b1fb4a44f4561ef9dfc65f', class: "planner-render" }, h("kup-switcher", { key: 'e8982db1704160c67839e156521f8cadbd9d182a', timeUnitChange: (timeUnit) => {
199
199
  var _a, _b;
200
200
  (_b = (_a = this.props).onSetViewMode) === null || _b === void 0 ? void 0 : _b.call(_a, timeUnit);
201
201
  this.timeUnit = timeUnit;
@@ -8,7 +8,7 @@ export class KupSwitcher {
8
8
  const week = () => this.timeUnitChange('week');
9
9
  const month = () => this.timeUnitChange('month');
10
10
  const year = () => this.timeUnitChange('year');
11
- return (h("div", { key: '64c26910f550b5c74b294667e58f396f0642e601', class: "switcher" }, h("button", { key: '1f110cd85b5e837aec6f5c2b69ac14b3a47d9f79', type: "button", class: "button", onClick: day }, h("span", { key: 'be249d7896fcd93905e8865309405d30dfa506bf', class: "label" }, "Day")), h("button", { key: '81dfab2aebed98d32cff106577795a064c03a257', type: "button", class: "button", onClick: week }, h("span", { key: 'e5c41e5dcd9d775c6749c2907e59a7d0400e3712', class: "label" }, "Week")), h("button", { key: 'a598a5ab4f1496bbd267134201b21c45e5198d01', type: "button", class: "button", onClick: month }, h("span", { key: '57769be17ca1de59a919cbb7e7ac11d0546a28fb', class: "label" }, "Month")), h("button", { key: 'b62c7585c44acc19863bc93898851348250ba7fa', type: "button", class: "button", onClick: year }, h("span", { key: '9f4ab800c4eef1666ceabaebe0d35b042753430f', class: "label" }, "Year"))));
11
+ return (h("div", { key: '41dda7f6481d54c262a7362440167aa58b44e8e1', class: "switcher" }, h("button", { key: 'e286b6add4c59978c39cef79e8bddd0704b9b3be', type: "button", class: "button", onClick: day }, h("span", { key: '855e19deedcbb55d6d534260e6b2b76580eb8e71', class: "label" }, "Day")), h("button", { key: 'dffc909ef397ddd44957cad2b304343f9a96998c', type: "button", class: "button", onClick: week }, h("span", { key: 'd69ab19671de0f10e60ba584a1036c628d6204b1', class: "label" }, "Week")), h("button", { key: '42c686fc57fdd6bd4a0cc8fd939946048d663771', type: "button", class: "button", onClick: month }, h("span", { key: 'a1508d10ecfdb50527a2be3b9a7bd069f922753e', class: "label" }, "Month")), h("button", { key: 'b478c7c4ed13b4ed3ab72f148995bf4cc96533c8', type: "button", class: "button", onClick: year }, h("span", { key: 'c56ee36dac14420f256d327cfe6119e9792d072f', class: "label" }, "Year"))));
12
12
  }
13
13
  static get is() { return "kup-switcher"; }
14
14
  static get originalStyleUrls() {
@@ -33,12 +33,12 @@ export class TaskGantt {
33
33
  }
34
34
  render() {
35
35
  const newBarProps = Object.assign(Object.assign({}, this.barProps), { gridProps: this.gridProps });
36
- return (h("div", { key: 'd9a4cf68f10e8263f73123022b4e545f6a028580', class: "ganttVerticalContainer", ref: (el) => (this.verticalGanttContainerRef = el), dir: "ltr" }, h("kup-gantt-calendar", { key: '2ad5614e2df01e5f3cc21b9940c14ba7dd5a785d', dateSetup: this.calendarProps.dateSetup, locale: this.calendarProps.locale, rtl: this.calendarProps.rtl, headerHeight: this.calendarProps.headerHeight, columnWidth: this.calendarProps.columnWidth, fontFamily: this.calendarProps.fontFamily, fontSize: this.calendarProps.fontSize, dateTimeFormatters: this.calendarProps.dateTimeFormatters, singleLineHeader: this.calendarProps.singleLineHeader, currentDateIndicator: this.calendarProps.currentDateIndicator, svgWidth: this.gridProps.svgWidth }), h("div", { key: '8c0e76cb967f172406f352c6568582fdc4008d38', ref: (el) => (this.horizontalContainerRef = el), class: "horizontalContainer", style: this.ganttHeight
36
+ return (h("div", { key: '905f0400ac4a0103896527ef5197cf1d1377b47b', class: "ganttVerticalContainer", ref: (el) => (this.verticalGanttContainerRef = el), dir: "ltr" }, h("kup-gantt-calendar", { key: '5663eafd88795240ff35fb92eb68af99d6b285d7', dateSetup: this.calendarProps.dateSetup, locale: this.calendarProps.locale, rtl: this.calendarProps.rtl, headerHeight: this.calendarProps.headerHeight, columnWidth: this.calendarProps.columnWidth, fontFamily: this.calendarProps.fontFamily, fontSize: this.calendarProps.fontSize, dateTimeFormatters: this.calendarProps.dateTimeFormatters, singleLineHeader: this.calendarProps.singleLineHeader, currentDateIndicator: this.calendarProps.currentDateIndicator, svgWidth: this.gridProps.svgWidth }), h("div", { key: 'ececb1964b8a3a9e0b0a12889b680f8667e49690', ref: (el) => (this.horizontalContainerRef = el), class: "horizontalContainer", style: this.ganttHeight
37
37
  ? {
38
38
  height: `${this.ganttHeight}px`,
39
39
  width: `${this.gridProps.svgWidth}px`,
40
40
  }
41
- : { width: `${this.gridProps.svgWidth}px` } }, h("kup-grid-renderer", Object.assign({ key: '69040247d6fde1ddb12f3b2ce54e02bc7781e569' }, newBarProps)))));
41
+ : { width: `${this.gridProps.svgWidth}px` } }, h("kup-grid-renderer", Object.assign({ key: '2117872fcdad4e4a3afe4eb4bfc303fce6ea2db7' }, newBarProps)))));
42
42
  }
43
43
  static get is() { return "kup-task-gantt"; }
44
44
  static get properties() {
@@ -7,22 +7,22 @@ export class KupTaskListHeader {
7
7
  this.rowWidth = undefined;
8
8
  }
9
9
  render() {
10
- return (h("div", { key: '85c164a7a4313c8708ce2774338ff123621e7648', class: "ganttTable", style: {
10
+ return (h("div", { key: '116213bd504a1e48f0484e92db9f7c8fb4dcb602', class: "ganttTable", style: {
11
11
  fontFamily: this.fontFamily,
12
12
  fontSize: this.fontSize,
13
- } }, h("div", { key: '46aad2a15e9f7d6fe8e7b705b5cc4f385ebf2d69', class: "ganttTable_Header", style: {
13
+ } }, h("div", { key: 'afbe32d59d041d923cd831db83ca0b09087cda23', class: "ganttTable_Header", style: {
14
14
  height: `${this.headerHeight - 2}px`,
15
- } }, h("div", { key: 'fafa8c4eb47c740fff23eb204a75b872d39876e2', class: "ganttTable_HeaderItem", style: {
15
+ } }, h("div", { key: 'ffa34b095e8b1d59516e6892c87f9eeeec8d9160', class: "ganttTable_HeaderItem", style: {
16
16
  minWidth: this.rowWidth,
17
- } }, "\u00A0Name"), h("div", { key: '1ebbcca3ce32701a8af4140fb638173de9795995', class: "ganttTable_HeaderSeparator", style: {
17
+ } }, "\u00A0Name"), h("div", { key: 'fad1584e5c299645e59f988e1fedc6fb1c6b05ff', class: "ganttTable_HeaderSeparator", style: {
18
18
  height: `${this.headerHeight * 0.5}px`,
19
19
  marginTop: `${this.headerHeight * 0.2}px`,
20
- } }), h("div", { key: 'b08345a4be12e76a9d634508e32e035a3c570dfb', class: "ganttTable_HeaderItem", style: {
20
+ } }), h("div", { key: '630992695659d8963415808cb1734e06d9aff914', class: "ganttTable_HeaderItem", style: {
21
21
  minWidth: this.rowWidth,
22
- } }, "\u00A0From"), h("div", { key: '3f035b39c2c66677e78c2786cea4a39c824bb60b', class: "ganttTable_HeaderSeparator", style: {
22
+ } }, "\u00A0From"), h("div", { key: 'e676f60163f722f1fd72f9038157359e61c895d2', class: "ganttTable_HeaderSeparator", style: {
23
23
  height: `${this.headerHeight * 0.5}px`,
24
24
  marginTop: `${this.headerHeight * 0.25}px`,
25
- } }), h("div", { key: '01effc62e0e2ddf73ab5cf4cbad5873f70d510c6', class: "ganttTable_HeaderItem", style: {
25
+ } }), h("div", { key: 'ee2699da7a0afbfa6944c47621e07112dca46816', class: "ganttTable_HeaderItem", style: {
26
26
  minWidth: this.rowWidth,
27
27
  } }, "\u00A0To"))));
28
28
  }
@@ -22,7 +22,7 @@ export class TaskListTableDefault {
22
22
  return date.toLocaleDateString(this.locale, this.dateTimeOptions);
23
23
  }
24
24
  render() {
25
- return (h("div", { key: 'a488bee5b9421a1f1f63911ac1ad6702d2f08d65', class: "taskListWrapper", style: {
25
+ return (h("div", { key: '00ce97c983f8b2fa306cfde7a15565913bbd08fa', class: "taskListWrapper", style: {
26
26
  fontFamily: this.fontFamily,
27
27
  fontSize: this.fontSize,
28
28
  } }, this.tasks.map((task) => (h("div", { class: {