@sme.up/ketchup 11.0.0-SNAPSHOT-20260114090748 → 11.0.0-SNAPSHOT-20260120152125

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 (274) hide show
  1. package/dist/cjs/{f-cell-a903bc2f.js → f-cell-214d1e20.js} +4 -4
  2. package/dist/cjs/{f-chip-5593bdd7.js → f-chip-3f9b076c.js} +1 -1
  3. package/dist/cjs/{f-object-field-a208a86e.js → f-object-field-af4a33b1.js} +2 -2
  4. package/dist/cjs/{f-paginator-utils-1dd80ec2.js → f-paginator-utils-c9ca0217.js} +1 -1
  5. package/dist/cjs/{f-text-field-83dd8cef.js → f-text-field-d0153948.js} +1 -1
  6. package/dist/cjs/index-c7d441d8.js +0 -4
  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 +2 -2
  10. package/dist/cjs/kup-activity-timeline.cjs.entry.js +3 -3
  11. package/dist/cjs/kup-autocomplete_30.cjs.entry.js +46 -46
  12. package/dist/cjs/kup-box.cjs.entry.js +8 -8
  13. package/dist/cjs/kup-calendar.cjs.entry.js +3 -3
  14. package/dist/cjs/kup-card-list.cjs.entry.js +2 -2
  15. package/dist/cjs/kup-cell.cjs.entry.js +6 -6
  16. package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +8 -8
  17. package/dist/cjs/kup-dashboard.cjs.entry.js +3 -3
  18. package/dist/cjs/{kup-data-table-helper-63838dd1.js → kup-data-table-helper-fd915a34.js} +2 -2
  19. package/dist/cjs/{kup-dates-8191989e.js → kup-dates-b7e6eaa1.js} +83 -21
  20. package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
  21. package/dist/cjs/kup-echart.cjs.entry.js +2 -2
  22. package/dist/cjs/kup-editor.cjs.entry.js +2 -2
  23. package/dist/cjs/kup-family-tree.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-gantt_10.cjs.entry.js +25 -25
  25. package/dist/cjs/kup-grid.cjs.entry.js +2 -2
  26. package/dist/cjs/kup-htm.cjs.entry.js +2 -2
  27. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  28. package/dist/cjs/kup-input-panel.cjs.entry.js +6 -6
  29. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  30. package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
  31. package/dist/cjs/{kup-manager-3dcd66b1.js → kup-manager-2e996943.js} +1 -1
  32. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  33. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  34. package/dist/cjs/kup-object-field.cjs.entry.js +4 -4
  35. package/dist/cjs/{kup-planner-renderer-helper-298e1b80.js → kup-planner-renderer-helper-1580e8bf.js} +1 -1
  36. package/dist/cjs/kup-planner-renderer.cjs.entry.js +4 -4
  37. package/dist/cjs/kup-planner.cjs.entry.js +4 -4
  38. package/dist/cjs/kup-probe.cjs.entry.js +3 -3
  39. package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
  40. package/dist/cjs/kup-snackbar.cjs.entry.js +3 -3
  41. package/dist/cjs/kup-txt.cjs.entry.js +3 -3
  42. package/dist/cjs/kup-typography-list.cjs.entry.js +3 -3
  43. package/dist/cjs/kup-typography.cjs.entry.js +4 -4
  44. package/dist/cjs/loader.cjs.js +1 -1
  45. package/dist/collection/assets/index.js +0 -4
  46. package/dist/collection/collection-manifest.json +0 -1
  47. package/dist/collection/components/kup-planner/kup-planner.js +1 -1
  48. package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
  49. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2 -2
  50. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +2 -2
  51. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +3 -3
  52. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +5 -5
  53. package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +2 -2
  54. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +1 -1
  55. package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +2 -2
  56. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
  57. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
  58. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +1 -1
  59. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
  60. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
  61. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
  62. package/dist/collection/components/kup-probe/kup-probe.js +1 -1
  63. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
  64. package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
  65. package/dist/collection/components/kup-rating/kup-rating.js +1 -1
  66. package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
  67. package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
  68. package/dist/collection/components/kup-switch/kup-switch.js +1 -1
  69. package/dist/collection/components/kup-time-picker/kup-time-picker.js +1 -1
  70. package/dist/collection/components/kup-txt/kup-txt.js +1 -1
  71. package/dist/collection/components/kup-typography/kup-typography.js +2 -2
  72. package/dist/collection/components/kup-typography-list/kup-typography-list.js +1 -1
  73. package/dist/collection/managers/kup-dates/kup-dates.js +83 -0
  74. package/dist/components/index.js +1 -1
  75. package/dist/components/kup-accordion.js +2 -2
  76. package/dist/components/kup-activity-timeline.js +2 -2
  77. package/dist/components/kup-autocomplete.js +1 -1
  78. package/dist/components/kup-badge.js +1 -1
  79. package/dist/components/kup-box.js +1 -1
  80. package/dist/components/kup-button-list.js +1 -1
  81. package/dist/components/kup-button.js +1 -1
  82. package/dist/components/kup-calendar.js +3 -3
  83. package/dist/components/kup-card-list.js +3 -3
  84. package/dist/components/kup-card.js +1 -1
  85. package/dist/components/kup-cell.js +2 -2
  86. package/dist/components/kup-chart.js +1 -1
  87. package/dist/components/kup-checkbox.js +1 -1
  88. package/dist/components/kup-chip.js +1 -1
  89. package/dist/components/kup-color-picker.js +1 -1
  90. package/dist/components/kup-combobox.js +1 -1
  91. package/dist/components/kup-custom-task-list-header.js +1 -1
  92. package/dist/components/kup-custom-task-list-table.js +1 -1
  93. package/dist/components/kup-dashboard.js +2 -2
  94. package/dist/components/kup-data-table.js +1 -1
  95. package/dist/components/kup-date-picker.js +1 -1
  96. package/dist/components/kup-dialog.js +1 -1
  97. package/dist/components/kup-drawer.js +2 -2
  98. package/dist/components/kup-dropdown-button.js +1 -1
  99. package/dist/components/kup-echart.js +1 -1
  100. package/dist/components/kup-editor.js +1 -1
  101. package/dist/components/kup-family-tree.js +3 -3
  102. package/dist/components/kup-file-upload.js +1 -1
  103. package/dist/components/kup-form.js +1 -1
  104. package/dist/components/kup-gantt-calendar.js +1 -1
  105. package/dist/components/kup-gantt.js +1 -1
  106. package/dist/components/kup-gauge.js +1 -1
  107. package/dist/components/kup-grid-renderer.js +1 -1
  108. package/dist/components/kup-grid.js +1 -1
  109. package/dist/components/kup-horizontal-scroll.js +1 -1
  110. package/dist/components/kup-htm.js +2 -2
  111. package/dist/components/kup-iframe.js +2 -2
  112. package/dist/components/kup-image-list.js +1 -1
  113. package/dist/components/kup-image.js +1 -1
  114. package/dist/components/kup-input-panel.js +3 -3
  115. package/dist/components/kup-lazy.js +2 -2
  116. package/dist/components/kup-list.js +1 -1
  117. package/dist/components/kup-magic-box.js +4 -4
  118. package/dist/components/kup-nav-bar.js +2 -2
  119. package/dist/components/kup-numeric-picker.js +2 -2
  120. package/dist/components/kup-object-field.js +2 -2
  121. package/dist/components/kup-planner-renderer.js +1 -1
  122. package/dist/components/kup-planner.js +18 -18
  123. package/dist/components/kup-probe.js +3 -3
  124. package/dist/components/kup-progress-bar.js +1 -1
  125. package/dist/components/kup-qlik.js +3 -3
  126. package/dist/components/kup-radio.js +1 -1
  127. package/dist/components/kup-rating.js +1 -1
  128. package/dist/components/kup-snackbar.js +3 -3
  129. package/dist/components/kup-spinner.js +1 -1
  130. package/dist/components/kup-standard-tooltip.js +1 -1
  131. package/dist/components/kup-switch.js +1 -1
  132. package/dist/components/kup-switcher.js +1 -1
  133. package/dist/components/kup-tab-bar.js +1 -1
  134. package/dist/components/kup-task-gantt.js +1 -1
  135. package/dist/components/kup-task-list-header.js +1 -1
  136. package/dist/components/kup-task-list-table.js +1 -1
  137. package/dist/components/kup-task-list.js +1 -1
  138. package/dist/components/kup-text-field.js +1 -1
  139. package/dist/components/kup-time-picker.js +1 -1
  140. package/dist/components/kup-toolbar.js +1 -1
  141. package/dist/components/kup-tooltip.js +1 -1
  142. package/dist/components/kup-tree.js +1 -1
  143. package/dist/components/kup-txt.js +3 -3
  144. package/dist/components/kup-typography-list.js +3 -3
  145. package/dist/components/kup-typography.js +4 -4
  146. package/dist/components/kup-vertical-scroll.js +1 -1
  147. package/dist/components/{p-b5ccc0d2.js → p-00c209ca.js} +4 -4
  148. package/dist/components/p-0462f723.js +7 -0
  149. package/dist/components/{p-e8d83de0.js → p-0a3ba7ca.js} +1 -1
  150. package/dist/components/{p-2b1f8c53.js → p-0b5ab929.js} +2 -2
  151. package/dist/components/{p-77d5a7b9.js → p-16addde1.js} +5 -5
  152. package/dist/components/{p-f57a4a4e.js → p-1ed5cf57.js} +1 -1
  153. package/dist/components/{p-74fd0cb8.js → p-306095cc.js} +4 -4
  154. package/dist/components/{p-b33ec213.js → p-30b8d109.js} +1 -1
  155. package/dist/components/{p-bd0dfa65.js → p-31698814.js} +17 -17
  156. package/dist/components/{p-1119d80c.js → p-3f042d51.js} +14 -14
  157. package/dist/components/{p-4d238cc9.js → p-42c21356.js} +84 -1
  158. package/dist/components/{p-f852dbfa.js → p-7a2345f3.js} +2 -2
  159. package/dist/components/{p-de5d3537.js → p-8b4721ce.js} +2 -2
  160. package/dist/components/{p-b6f1319e.js → p-9bd8fda8.js} +2 -2
  161. package/dist/components/{p-56a721d8.js → p-b4f36e67.js} +40 -40
  162. package/dist/components/{p-9c09f25d.js → p-b9112167.js} +3 -3
  163. package/dist/components/{p-7afff356.js → p-bf714882.js} +2 -2
  164. package/dist/components/{p-56da9a2f.js → p-d350b7f8.js} +1 -1
  165. package/dist/components/{p-bf75edc9.js → p-d67a8402.js} +1 -1
  166. package/dist/components/{p-98036b1e.js → p-de0a9c9a.js} +7 -7
  167. package/dist/components/{p-537a6b71.js → p-ebaa82a6.js} +4 -4
  168. package/dist/components/{p-a0689c36.js → p-fd319759.js} +2 -2
  169. package/dist/components/{p-d12a3553.js → p-ff511626.js} +2 -2
  170. package/dist/esm/{f-cell-f47c5ab4.js → f-cell-4d944700.js} +4 -4
  171. package/dist/esm/{f-chip-c2d256a9.js → f-chip-3b324fa4.js} +1 -1
  172. package/dist/esm/{f-object-field-f3c12136.js → f-object-field-f86aa591.js} +2 -2
  173. package/dist/esm/{f-paginator-utils-f1bb71b3.js → f-paginator-utils-2a9c5390.js} +1 -1
  174. package/dist/esm/{f-text-field-7d154a87.js → f-text-field-588cfd75.js} +1 -1
  175. package/dist/esm/index-9b0f4a0d.js +0 -4
  176. package/dist/esm/index.js +2 -2
  177. package/dist/esm/ketchup.js +1 -1
  178. package/dist/esm/kup-accordion.entry.js +2 -2
  179. package/dist/esm/kup-activity-timeline.entry.js +3 -3
  180. package/dist/esm/kup-autocomplete_30.entry.js +46 -46
  181. package/dist/esm/kup-box.entry.js +8 -8
  182. package/dist/esm/kup-calendar.entry.js +3 -3
  183. package/dist/esm/kup-card-list.entry.js +2 -2
  184. package/dist/esm/kup-cell.entry.js +6 -6
  185. package/dist/esm/kup-custom-task-list-header_4.entry.js +8 -8
  186. package/dist/esm/kup-dashboard.entry.js +3 -3
  187. package/dist/esm/{kup-data-table-helper-f3423019.js → kup-data-table-helper-b74121bf.js} +2 -2
  188. package/dist/esm/{kup-dates-485a12d2.js → kup-dates-6293c758.js} +84 -20
  189. package/dist/esm/kup-drawer.entry.js +2 -2
  190. package/dist/esm/kup-echart.entry.js +2 -2
  191. package/dist/esm/kup-editor.entry.js +2 -2
  192. package/dist/esm/kup-family-tree.entry.js +2 -2
  193. package/dist/esm/kup-gantt_10.entry.js +25 -25
  194. package/dist/esm/kup-grid.entry.js +2 -2
  195. package/dist/esm/kup-htm.entry.js +2 -2
  196. package/dist/esm/kup-iframe.entry.js +2 -2
  197. package/dist/esm/kup-input-panel.entry.js +6 -6
  198. package/dist/esm/kup-lazy.entry.js +2 -2
  199. package/dist/esm/kup-magic-box.entry.js +2 -2
  200. package/dist/esm/{kup-manager-d826cc2e.js → kup-manager-e1178fd5.js} +1 -1
  201. package/dist/esm/kup-nav-bar.entry.js +2 -2
  202. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  203. package/dist/esm/kup-object-field.entry.js +4 -4
  204. package/dist/esm/{kup-planner-renderer-helper-75b90431.js → kup-planner-renderer-helper-9be26115.js} +1 -1
  205. package/dist/esm/kup-planner-renderer.entry.js +4 -4
  206. package/dist/esm/kup-planner.entry.js +4 -4
  207. package/dist/esm/kup-probe.entry.js +3 -3
  208. package/dist/esm/kup-qlik.entry.js +3 -3
  209. package/dist/esm/kup-snackbar.entry.js +3 -3
  210. package/dist/esm/kup-txt.entry.js +3 -3
  211. package/dist/esm/kup-typography-list.entry.js +3 -3
  212. package/dist/esm/kup-typography.entry.js +4 -4
  213. package/dist/esm/loader.js +1 -1
  214. package/dist/ketchup/index.esm.js +1 -1
  215. package/dist/ketchup/ketchup.esm.js +1 -1
  216. package/dist/ketchup/{p-f1caa4b7.entry.js → p-0289ba55.entry.js} +1 -1
  217. package/dist/ketchup/{p-084c2a71.entry.js → p-08deee81.entry.js} +1 -1
  218. package/dist/ketchup/{p-93985707.entry.js → p-111aa495.entry.js} +1 -1
  219. package/dist/ketchup/p-1a736d54.js +1 -0
  220. package/dist/ketchup/{p-3bd9fdd3.entry.js → p-1ca4fdb7.entry.js} +1 -1
  221. package/dist/ketchup/{p-5767cc14.entry.js → p-1e1246db.entry.js} +1 -1
  222. package/dist/ketchup/{p-f36ca98a.entry.js → p-279093b3.entry.js} +1 -1
  223. package/dist/ketchup/{p-adbea6ea.entry.js → p-298ea30a.entry.js} +1 -1
  224. package/dist/ketchup/{p-7d5acada.entry.js → p-2b5ff06f.entry.js} +1 -1
  225. package/dist/ketchup/{p-0a1f987d.js → p-377bb2c8.js} +1 -1
  226. package/dist/ketchup/{p-59c4caef.entry.js → p-39ebc353.entry.js} +1 -1
  227. package/dist/ketchup/{p-fe093639.entry.js → p-45eeb4df.entry.js} +1 -1
  228. package/dist/ketchup/{p-5a1c9b2e.entry.js → p-47e4085d.entry.js} +1 -1
  229. package/dist/ketchup/{p-51f49c1a.js → p-6296f511.js} +1 -1
  230. package/dist/ketchup/p-6b1c3be6.js +1 -0
  231. package/dist/ketchup/{p-2225fb63.entry.js → p-6f1dc69c.entry.js} +1 -1
  232. package/dist/ketchup/{p-8bd02d63.entry.js → p-6fb98207.entry.js} +1 -1
  233. package/dist/ketchup/{p-d3f29338.entry.js → p-717a52e1.entry.js} +1 -1
  234. package/dist/ketchup/{p-871bc079.entry.js → p-73759501.entry.js} +1 -1
  235. package/dist/ketchup/{p-fd7985e9.entry.js → p-7b6425d7.entry.js} +1 -1
  236. package/dist/ketchup/{p-71cb2203.entry.js → p-823334ae.entry.js} +1 -1
  237. package/dist/ketchup/p-85472a9d.entry.js +16 -0
  238. package/dist/ketchup/{p-4959041b.entry.js → p-8e9667ee.entry.js} +1 -1
  239. package/dist/ketchup/{p-733440d8.entry.js → p-96748ac0.entry.js} +1 -1
  240. package/dist/ketchup/{p-598a35eb.entry.js → p-98863ce0.entry.js} +1 -1
  241. package/dist/ketchup/{p-f1db1ad1.entry.js → p-9ccefbcd.entry.js} +1 -1
  242. package/dist/ketchup/{p-1572b5e4.entry.js → p-9f0db6e1.entry.js} +1 -1
  243. package/dist/ketchup/p-a8f94382.js +1 -0
  244. package/dist/ketchup/{p-3ba655c1.entry.js → p-ad0d46d6.entry.js} +1 -1
  245. package/dist/ketchup/{p-18fe3257.entry.js → p-c24d29a6.entry.js} +1 -1
  246. package/dist/ketchup/{p-3d54b9e7.entry.js → p-c8d90782.entry.js} +1 -1
  247. package/dist/ketchup/{p-155cf5a8.entry.js → p-d127bb8d.entry.js} +1 -1
  248. package/dist/ketchup/{p-164a140f.entry.js → p-d518df12.entry.js} +1 -1
  249. package/dist/ketchup/{p-665598d2.entry.js → p-d6cc8f51.entry.js} +1 -1
  250. package/dist/ketchup/{p-16b66614.js → p-df6afd6e.js} +1 -1
  251. package/dist/ketchup/{p-a990c2a8.js → p-e06ea235.js} +1 -1
  252. package/dist/ketchup/{p-d733cb55.entry.js → p-f0496985.entry.js} +2 -2
  253. package/dist/ketchup/{p-2df5bf04.js → p-f9e0cea2.js} +1 -1
  254. package/dist/ketchup/{p-db2abe74.entry.js → p-fd60b6b6.entry.js} +1 -1
  255. package/dist/ketchup/p-fddd1cdb.js +1 -0
  256. package/dist/types/components.d.ts +0 -67
  257. package/package.json +1 -2
  258. package/dist/cjs/kup-pdf.cjs.entry.js +0 -76601
  259. package/dist/collection/assets/pdf.js +0 -15
  260. package/dist/collection/components/kup-pdf/kup-pdf-declarations.js +0 -8
  261. package/dist/collection/components/kup-pdf/kup-pdf.css +0 -169
  262. package/dist/collection/components/kup-pdf/kup-pdf.js +0 -283
  263. package/dist/components/kup-pdf.d.ts +0 -11
  264. package/dist/components/kup-pdf.js +0 -76773
  265. package/dist/components/p-5882e117.js +0 -26
  266. package/dist/esm/kup-pdf.entry.js +0 -76597
  267. package/dist/ketchup/p-264ee487.js +0 -1
  268. package/dist/ketchup/p-5d594ebd.js +0 -1
  269. package/dist/ketchup/p-6172f9ec.js +0 -1
  270. package/dist/ketchup/p-b2825af4.entry.js +0 -44
  271. package/dist/ketchup/p-b60952e5.entry.js +0 -16
  272. package/dist/ketchup/p-f6656fb8.js +0 -1
  273. package/dist/types/components/kup-pdf/kup-pdf-declarations.d.ts +0 -7
  274. package/dist/types/components/kup-pdf/kup-pdf.d.ts +0 -47
@@ -1,15 +0,0 @@
1
- const comp = document.getElementById('pdf');
2
-
3
- comp.addEventListener('kup-pdf-ready', (e) => {
4
- console.log('Pdf ready', e);
5
- });
6
-
7
- const props = {
8
- pdfPath: '../../assets/kup-pdf-sample.pdf',
9
- };
10
-
11
- if (props) {
12
- for (const key in props) {
13
- comp[key] = props[key];
14
- }
15
- }
@@ -1,8 +0,0 @@
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 = {}));
@@ -1,169 +0,0 @@
1
- .kup-body-compact-01 {
2
- font-family: var(--kup-font-family);
3
- font-size: var(--kup-body-compact-01-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: var(--kup-body-01-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: var(--kup-label-01-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: var(--kup-heading-compact-01-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: var(--kup-heading-01-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
- }
@@ -1,283 +0,0 @@
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
- this.sendCredentials = undefined;
24
- }
25
- /*-------------------------------------------------*/
26
- /* W a t c h e r s */
27
- /*-------------------------------------------------*/
28
- onPdfPathChange() {
29
- this.wrapperRef.innerHTML = '';
30
- this.renderPdf();
31
- }
32
- /*-------------------------------------------------*/
33
- /* P u b l i c M e t h o d s */
34
- /*-------------------------------------------------*/
35
- /**
36
- * Used to retrieve component's props values.
37
- * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
38
- * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
39
- */
40
- async getProps(descriptions) {
41
- return getProps(this, KupPdfProps, descriptions);
42
- }
43
- /**
44
- * This method is used to trigger a new render of the component.
45
- */
46
- async refresh() {
47
- forceUpdate(this);
48
- }
49
- /**
50
- * Sets the props to the component.
51
- * @param {GenericObject} props - Object containing props that will be set to the component.
52
- */
53
- async setProps(props) {
54
- setProps(this, KupPdfProps, props);
55
- }
56
- /*-------------------------------------------------*/
57
- /* L i f e c y c l e H o o k s */
58
- /*-------------------------------------------------*/
59
- componentWillLoad() {
60
- __classPrivateFieldGet(this, _KupPdf_kupManager, "f").debug.logLoad(this, false);
61
- __classPrivateFieldGet(this, _KupPdf_kupManager, "f").theme.register(this);
62
- }
63
- componentDidLoad() {
64
- this.kupReady.emit({
65
- comp: this,
66
- id: this.rootElement.id,
67
- });
68
- pdfjsLib.GlobalWorkerOptions.workerSrc = pdfjsWorker;
69
- this.renderPdf().then(() => {
70
- __classPrivateFieldGet(this, _KupPdf_kupManager, "f").debug.logLoad(this, true);
71
- });
72
- }
73
- componentWillRender() {
74
- __classPrivateFieldGet(this, _KupPdf_kupManager, "f").debug.logRender(this, false);
75
- }
76
- componentDidRender() {
77
- __classPrivateFieldGet(this, _KupPdf_kupManager, "f").debug.logRender(this, true);
78
- }
79
- async renderPdf() {
80
- try {
81
- const loadingPdfTask = pdfjsLib.getDocument({
82
- url: this.pdfPath,
83
- withCredentials: this.sendCredentials,
84
- });
85
- const pdf = await loadingPdfTask.promise;
86
- const pdfContainer = this.wrapperRef;
87
- for (let page = 1; page <= pdf.numPages; page++) {
88
- const canvas = document.createElement('canvas');
89
- pdfContainer.appendChild(canvas);
90
- pdf.getPage(page).then(function (page) {
91
- const requiredScale = 2; // initial scale is set to 2 so the pdf outputs clear, keeping on 1 causes the pdf to be blurry
92
- const viewport = page.getViewport({ scale: requiredScale });
93
- // set canvas height/width to upscale the pdf
94
- canvas.height = requiredScale * viewport.height;
95
- canvas.width = requiredScale * viewport.width;
96
- canvas.style.width = '100%';
97
- page.render({
98
- canvasContext: canvas.getContext('2d'),
99
- viewport: viewport,
100
- transform: [requiredScale, 0, 0, requiredScale, 0, 0],
101
- });
102
- });
103
- }
104
- }
105
- catch (error) { }
106
- }
107
- render() {
108
- return (h(Host, { key: '820aee214400dc43c373a270f70e43c609390a6c' }, h("div", { key: 'f71a13853b9bef608ea84e7e270f0d6db3bc03dc', id: componentWrapperId, ref: (el) => (this.wrapperRef = el) })));
109
- }
110
- disconnectedCallback() {
111
- __classPrivateFieldGet(this, _KupPdf_kupManager, "f").theme.unregister(this);
112
- }
113
- static get is() { return "kup-pdf"; }
114
- static get encapsulation() { return "shadow"; }
115
- static get originalStyleUrls() {
116
- return {
117
- "$": ["kup-pdf.scss"]
118
- };
119
- }
120
- static get styleUrls() {
121
- return {
122
- "$": ["kup-pdf.css"]
123
- };
124
- }
125
- static get properties() {
126
- return {
127
- "pdfPath": {
128
- "type": "string",
129
- "mutable": false,
130
- "complexType": {
131
- "original": "string",
132
- "resolved": "string",
133
- "references": {}
134
- },
135
- "required": false,
136
- "optional": false,
137
- "docs": {
138
- "tags": [{
139
- "name": "default",
140
- "text": "null"
141
- }],
142
- "text": "Path of the pdf document"
143
- },
144
- "attribute": "pdf-path",
145
- "reflect": false
146
- },
147
- "sendCredentials": {
148
- "type": "boolean",
149
- "mutable": false,
150
- "complexType": {
151
- "original": "boolean",
152
- "resolved": "boolean",
153
- "references": {}
154
- },
155
- "required": false,
156
- "optional": false,
157
- "docs": {
158
- "tags": [{
159
- "name": "default",
160
- "text": "true"
161
- }],
162
- "text": "Credentials sending along with request"
163
- },
164
- "attribute": "send-credentials",
165
- "reflect": false
166
- }
167
- };
168
- }
169
- static get events() {
170
- return [{
171
- "method": "kupReady",
172
- "name": "kup-pdf-ready",
173
- "bubbles": true,
174
- "cancelable": false,
175
- "composed": true,
176
- "docs": {
177
- "tags": [],
178
- "text": "Triggered when the component is ready."
179
- },
180
- "complexType": {
181
- "original": "KupEventPayload",
182
- "resolved": "KupEventPayload",
183
- "references": {
184
- "KupEventPayload": {
185
- "location": "import",
186
- "path": "../../types/GenericTypes",
187
- "id": "src/types/GenericTypes.ts::KupEventPayload"
188
- }
189
- }
190
- }
191
- }];
192
- }
193
- static get methods() {
194
- return {
195
- "getProps": {
196
- "complexType": {
197
- "signature": "(descriptions?: boolean) => Promise<GenericObject>",
198
- "parameters": [{
199
- "name": "descriptions",
200
- "type": "boolean",
201
- "docs": "- When provided and true, the result will be the list of props with their description."
202
- }],
203
- "references": {
204
- "Promise": {
205
- "location": "global",
206
- "id": "global::Promise"
207
- },
208
- "GenericObject": {
209
- "location": "import",
210
- "path": "../../types/GenericTypes",
211
- "id": "src/types/GenericTypes.ts::GenericObject"
212
- }
213
- },
214
- "return": "Promise<GenericObject>"
215
- },
216
- "docs": {
217
- "text": "Used to retrieve component's props values.",
218
- "tags": [{
219
- "name": "param",
220
- "text": "descriptions - When provided and true, the result will be the list of props with their description."
221
- }, {
222
- "name": "returns",
223
- "text": "List of props as object, each key will be a prop."
224
- }]
225
- }
226
- },
227
- "refresh": {
228
- "complexType": {
229
- "signature": "() => Promise<void>",
230
- "parameters": [],
231
- "references": {
232
- "Promise": {
233
- "location": "global",
234
- "id": "global::Promise"
235
- }
236
- },
237
- "return": "Promise<void>"
238
- },
239
- "docs": {
240
- "text": "This method is used to trigger a new render of the component.",
241
- "tags": []
242
- }
243
- },
244
- "setProps": {
245
- "complexType": {
246
- "signature": "(props: GenericObject) => Promise<void>",
247
- "parameters": [{
248
- "name": "props",
249
- "type": "GenericObject",
250
- "docs": "- Object containing props that will be set to the component."
251
- }],
252
- "references": {
253
- "Promise": {
254
- "location": "global",
255
- "id": "global::Promise"
256
- },
257
- "GenericObject": {
258
- "location": "import",
259
- "path": "../../types/GenericTypes",
260
- "id": "src/types/GenericTypes.ts::GenericObject"
261
- }
262
- },
263
- "return": "Promise<void>"
264
- },
265
- "docs": {
266
- "text": "Sets the props to the component.",
267
- "tags": [{
268
- "name": "param",
269
- "text": "props - Object containing props that will be set to the component."
270
- }]
271
- }
272
- }
273
- };
274
- }
275
- static get elementRef() { return "rootElement"; }
276
- static get watchers() {
277
- return [{
278
- "propName": "pdfPath",
279
- "methodName": "onPdfPathChange"
280
- }];
281
- }
282
- }
283
- _KupPdf_kupManager = new WeakMap();
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface KupPdf extends Components.KupPdf, HTMLElement {}
4
- export const KupPdf: {
5
- prototype: KupPdf;
6
- new (): KupPdf;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;