@sme.up/ketchup 9.5.1 → 9.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/dist/cjs/{f-button-b76723c7.js → f-button-623dfcc3.js} +2 -2
  2. package/dist/cjs/{f-cell-0238450e.js → f-cell-9c718d83.js} +9 -8
  3. package/dist/cjs/{f-checkbox-41864e53.js → f-checkbox-bfa92ebe.js} +1 -1
  4. package/dist/cjs/{f-chip-aad323a5.js → f-chip-c8efad5b.js} +3 -3
  5. package/dist/cjs/{f-image-a049cb94.js → f-image-b61cc967.js} +2 -2
  6. package/dist/cjs/{f-paginator-utils-3c1c8cf4.js → f-paginator-utils-67dbc14c.js} +4 -4
  7. package/dist/cjs/{f-text-field-d045c000.js → f-text-field-a09b1705.js} +2 -2
  8. package/dist/cjs/{index-8f2f4159.js → index-db0a6be6.js} +79 -38
  9. package/dist/cjs/index.cjs.js +3 -3
  10. package/dist/cjs/ketchup.cjs.js +3 -3
  11. package/dist/cjs/kup-accordion.cjs.entry.js +7 -6
  12. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +142 -113
  13. package/dist/cjs/kup-box.cjs.entry.js +13 -12
  14. package/dist/cjs/kup-calendar.cjs.entry.js +76 -11
  15. package/dist/cjs/kup-card-list.cjs.entry.js +5 -4
  16. package/dist/cjs/kup-cell.cjs.entry.js +12 -11
  17. package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +22 -16
  18. package/dist/cjs/kup-dashboard.cjs.entry.js +10 -9
  19. package/dist/cjs/{kup-dates-0e59b05d.js → kup-dates-4aa560f0.js} +80 -67
  20. package/dist/cjs/kup-drawer.cjs.entry.js +7 -6
  21. package/dist/cjs/kup-echart.cjs.entry.js +1504 -1025
  22. package/dist/cjs/kup-editor.cjs.entry.js +46260 -0
  23. package/dist/cjs/kup-family-tree.cjs.entry.js +9 -8
  24. package/dist/cjs/kup-gantt_10.cjs.entry.js +58 -42
  25. package/dist/cjs/kup-grid.cjs.entry.js +5 -4
  26. package/dist/cjs/kup-iframe.cjs.entry.js +5 -4
  27. package/dist/cjs/kup-image-list.cjs.entry.js +13 -12
  28. package/dist/cjs/kup-lazy.cjs.entry.js +16 -15
  29. package/dist/cjs/kup-magic-box.cjs.entry.js +9 -8
  30. package/dist/cjs/{kup-manager-ef4342bb.js → kup-manager-227c4be2.js} +121 -80
  31. package/dist/cjs/kup-nav-bar.cjs.entry.js +6 -5
  32. package/dist/cjs/kup-numeric-picker.cjs.entry.js +7 -6
  33. package/dist/cjs/kup-photo-frame.cjs.entry.js +7 -6
  34. package/dist/cjs/{kup-planner-renderer-helper-c2394940.js → kup-planner-renderer-helper-f0c869d7.js} +1 -1
  35. package/dist/cjs/kup-planner-renderer.cjs.entry.js +4 -4
  36. package/dist/cjs/kup-planner.cjs.entry.js +7 -6
  37. package/dist/cjs/kup-probe.cjs.entry.js +4 -4
  38. package/dist/cjs/kup-qlik.cjs.entry.js +6 -5
  39. package/dist/cjs/kup-snackbar.cjs.entry.js +8 -7
  40. package/dist/cjs/loader.cjs.js +2 -2
  41. package/dist/collection/assets/editor-example-1.js +52 -0
  42. package/dist/collection/assets/editor.js +60 -0
  43. package/dist/collection/assets/index.js +8 -0
  44. package/dist/collection/collection-manifest.json +3 -2
  45. package/dist/collection/components/kup-accordion/kup-accordion.js +10 -16
  46. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +10 -16
  47. package/dist/collection/components/kup-badge/kup-badge.js +8 -12
  48. package/dist/collection/components/kup-box/kup-box.css +1 -1
  49. package/dist/collection/components/kup-box/kup-box.js +12 -14
  50. package/dist/collection/components/kup-button/kup-button.js +6 -10
  51. package/dist/collection/components/kup-button-list/kup-button-list.js +7 -11
  52. package/dist/collection/components/kup-calendar/kup-calendar.js +8 -12
  53. package/dist/collection/components/kup-card/built-in/kup-card-openai.js +1 -1
  54. package/dist/collection/components/kup-card/kup-card.js +6 -10
  55. package/dist/collection/components/kup-card-list/kup-card-list.js +6 -10
  56. package/dist/collection/components/kup-cell/kup-cell.js +13 -21
  57. package/dist/collection/components/kup-chart/kup-chart.js +7 -11
  58. package/dist/collection/components/kup-checkbox/kup-checkbox.js +7 -11
  59. package/dist/collection/components/kup-chip/kup-chip.js +8 -12
  60. package/dist/collection/components/kup-color-picker/kup-color-picker.js +11 -17
  61. package/dist/collection/components/kup-combobox/kup-combobox.js +10 -16
  62. package/dist/collection/components/kup-dashboard/kup-dashboard.js +7 -11
  63. package/dist/collection/components/kup-data-table/kup-data-table.js +72 -95
  64. package/dist/collection/components/kup-date-picker/kup-date-picker.js +7 -11
  65. package/dist/collection/components/kup-dialog/kup-dialog.css +2 -2
  66. package/dist/collection/components/kup-dialog/kup-dialog.js +9 -13
  67. package/dist/collection/components/kup-drawer/kup-drawer.js +8 -12
  68. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +10 -13
  69. package/dist/collection/components/kup-echart/kup-echart.js +7 -11
  70. package/dist/collection/components/kup-editor/kup-editor-declarations.js +15 -0
  71. package/dist/collection/components/kup-editor/kup-editor.js +774 -0
  72. package/dist/collection/components/kup-family-tree/kup-family-tree.js +14 -16
  73. package/dist/collection/components/kup-form/kup-form.js +14 -22
  74. package/dist/collection/components/kup-gauge/kup-gauge.js +6 -10
  75. package/dist/collection/components/kup-grid/kup-grid.js +6 -10
  76. package/dist/collection/components/kup-iframe/kup-iframe.js +6 -10
  77. package/dist/collection/components/kup-image/kup-image.js +6 -10
  78. package/dist/collection/components/kup-image-list/kup-image-list.js +8 -12
  79. package/dist/collection/components/kup-lazy/kup-lazy.js +17 -21
  80. package/dist/collection/components/kup-list/kup-list.js +10 -16
  81. package/dist/collection/components/kup-magic-box/kup-magic-box.js +9 -13
  82. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +7 -11
  83. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +7 -11
  84. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +8 -12
  85. package/dist/collection/components/kup-planner/kup-planner.js +13 -21
  86. package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
  87. package/dist/collection/components/kup-planner/utils/custom-task-list-table.js +1 -1
  88. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2 -1
  89. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +1 -1
  90. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +2 -2
  91. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +0 -2
  92. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +13 -14
  93. package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +1 -1
  94. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +1 -1
  95. package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +6 -4
  96. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
  97. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
  98. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +6 -1
  99. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
  100. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
  101. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.css +0 -2
  102. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
  103. package/dist/collection/components/kup-probe/kup-probe.js +1 -1
  104. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +7 -11
  105. package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
  106. package/dist/collection/components/kup-radio/kup-radio.js +6 -10
  107. package/dist/collection/components/kup-rating/kup-rating.js +7 -11
  108. package/dist/collection/components/kup-snackbar/kup-snackbar.js +7 -11
  109. package/dist/collection/components/kup-spinner/kup-spinner.js +40 -44
  110. package/dist/collection/components/kup-switch/kup-switch.js +7 -11
  111. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +6 -10
  112. package/dist/collection/components/kup-text-field/kup-text-field.js +10 -13
  113. package/dist/collection/components/kup-time-picker/kup-time-picker.js +10 -13
  114. package/dist/collection/components/kup-tree/kup-tree-faker.js +1 -1
  115. package/dist/collection/components/kup-tree/kup-tree.js +24 -33
  116. package/dist/collection/f-components/f-cell/f-cell.js +2 -1
  117. package/dist/collection/managers/kup-manager/kup-manager.js +5 -0
  118. package/dist/collection/managers/kup-openai/kup-openai.js +11 -9
  119. package/dist/components/custom-task-list-header.js +4 -3
  120. package/dist/components/custom-task-list-table.js +4 -3
  121. package/dist/components/kup-accordion.js +3 -2
  122. package/dist/components/kup-autocomplete2.js +136 -106
  123. package/dist/components/kup-box2.js +4 -3
  124. package/dist/components/kup-calendar.js +71 -6
  125. package/dist/components/kup-card-list.js +2 -1
  126. package/dist/components/kup-cell.js +3 -2
  127. package/dist/components/kup-dashboard.js +3 -2
  128. package/dist/components/kup-dates.js +81 -67
  129. package/dist/components/kup-drawer.js +4 -3
  130. package/dist/components/kup-echart2.js +1501 -1022
  131. package/dist/components/kup-editor.d.ts +11 -0
  132. package/dist/components/kup-editor.js +46434 -0
  133. package/dist/components/kup-family-tree.js +4 -3
  134. package/dist/components/kup-gantt-calendar2.js +3 -2
  135. package/dist/components/kup-gantt2.js +4 -2
  136. package/dist/components/kup-grid-renderer2.js +10 -7
  137. package/dist/components/kup-grid2.js +2 -1
  138. package/dist/components/kup-horizontal-scroll2.js +12 -12
  139. package/dist/components/kup-iframe.js +2 -1
  140. package/dist/components/kup-image-list.js +4 -3
  141. package/dist/components/kup-lazy.js +13 -12
  142. package/dist/components/kup-magic-box.js +5 -4
  143. package/dist/components/kup-manager.js +121 -80
  144. package/dist/components/kup-nav-bar.js +3 -2
  145. package/dist/components/kup-numeric-picker.js +3 -2
  146. package/dist/components/kup-photo-frame.js +4 -3
  147. package/dist/components/kup-planner-renderer-helper.js +2 -2
  148. package/dist/components/kup-planner-renderer2.js +3 -3
  149. package/dist/components/kup-planner.js +4 -3
  150. package/dist/components/kup-probe.js +1 -1
  151. package/dist/components/kup-qlik.js +3 -2
  152. package/dist/components/kup-snackbar.js +3 -2
  153. package/dist/components/kup-standard-tooltip2.js +3 -2
  154. package/dist/components/kup-switcher2.js +3 -2
  155. package/dist/components/kup-task-gantt2.js +6 -4
  156. package/dist/components/kup-task-list-header2.js +9 -8
  157. package/dist/components/kup-task-list-table2.js +3 -2
  158. package/dist/components/kup-task-list2.js +9 -3
  159. package/dist/components/kup-tooltip2.js +3 -2
  160. package/dist/components/kup-vertical-scroll2.js +5 -4
  161. package/dist/esm/{f-button-e5a13d96.js → f-button-121958b3.js} +2 -2
  162. package/dist/esm/{f-cell-44737d32.js → f-cell-959b83db.js} +9 -8
  163. package/dist/esm/{f-checkbox-43481de2.js → f-checkbox-fdf27ce9.js} +1 -1
  164. package/dist/esm/{f-chip-4ba1fb6c.js → f-chip-915ddf53.js} +3 -3
  165. package/dist/esm/{f-image-17dd7557.js → f-image-98371dac.js} +2 -2
  166. package/dist/esm/{f-paginator-utils-c0925f43.js → f-paginator-utils-f5f4c666.js} +4 -4
  167. package/dist/esm/{f-text-field-97929753.js → f-text-field-0df308e4.js} +2 -2
  168. package/dist/esm/{index-59f83f91.js → index-bbef9f2a.js} +79 -38
  169. package/dist/esm/index.js +3 -3
  170. package/dist/esm/ketchup.js +4 -4
  171. package/dist/esm/kup-accordion.entry.js +7 -6
  172. package/dist/esm/kup-autocomplete_27.entry.js +142 -113
  173. package/dist/esm/kup-box.entry.js +13 -12
  174. package/dist/esm/kup-calendar.entry.js +76 -11
  175. package/dist/esm/kup-card-list.entry.js +5 -4
  176. package/dist/esm/kup-cell.entry.js +12 -11
  177. package/dist/esm/kup-custom-task-list-header_4.entry.js +22 -16
  178. package/dist/esm/kup-dashboard.entry.js +10 -9
  179. package/dist/esm/{kup-dates-15f89ea2.js → kup-dates-172954df.js} +81 -67
  180. package/dist/esm/kup-drawer.entry.js +7 -6
  181. package/dist/esm/kup-echart.entry.js +1504 -1025
  182. package/dist/esm/kup-editor.entry.js +46256 -0
  183. package/dist/esm/kup-family-tree.entry.js +9 -8
  184. package/dist/esm/kup-gantt_10.entry.js +58 -42
  185. package/dist/esm/kup-grid.entry.js +5 -4
  186. package/dist/esm/kup-iframe.entry.js +5 -4
  187. package/dist/esm/kup-image-list.entry.js +13 -12
  188. package/dist/esm/kup-lazy.entry.js +16 -15
  189. package/dist/esm/kup-magic-box.entry.js +9 -8
  190. package/dist/esm/{kup-manager-21e2ce65.js → kup-manager-33b051d6.js} +122 -81
  191. package/dist/esm/kup-nav-bar.entry.js +6 -5
  192. package/dist/esm/kup-numeric-picker.entry.js +7 -6
  193. package/dist/esm/kup-photo-frame.entry.js +7 -6
  194. package/dist/esm/{kup-planner-renderer-helper-2143d119.js → kup-planner-renderer-helper-5d97e075.js} +2 -2
  195. package/dist/esm/kup-planner-renderer.entry.js +4 -4
  196. package/dist/esm/kup-planner.entry.js +8 -7
  197. package/dist/esm/kup-probe.entry.js +4 -4
  198. package/dist/esm/kup-qlik.entry.js +6 -5
  199. package/dist/esm/kup-snackbar.entry.js +8 -7
  200. package/dist/esm/loader.js +3 -3
  201. package/dist/ketchup/index.esm.js +1 -1
  202. package/dist/ketchup/ketchup.esm.js +1 -1
  203. package/dist/ketchup/{p-265c1bac.entry.js → p-0a4595bd.entry.js} +1 -1
  204. package/dist/ketchup/{p-4528e07a.entry.js → p-0dd0ae49.entry.js} +1 -1
  205. package/dist/ketchup/p-102866cd.js +1 -0
  206. package/dist/ketchup/p-1ad7fea0.js +2 -0
  207. package/dist/ketchup/{p-01a0b54c.js → p-2778f948.js} +1 -1
  208. package/dist/ketchup/p-2f4055ba.entry.js +1 -0
  209. package/dist/ketchup/p-3c9ac0fd.entry.js +1 -0
  210. package/dist/ketchup/p-3ce8ce77.entry.js +49 -0
  211. package/dist/ketchup/p-3ff9a661.entry.js +1 -0
  212. package/dist/ketchup/p-41d6466e.entry.js +1 -0
  213. package/dist/ketchup/p-4bf5e04f.entry.js +1 -0
  214. package/dist/ketchup/p-6001882e.entry.js +9 -0
  215. package/dist/ketchup/p-610a03d4.js +28 -0
  216. package/dist/ketchup/{p-ec469a38.entry.js → p-662d2f9b.entry.js} +1 -1
  217. package/dist/ketchup/{p-9bf00c9c.js → p-68e9379a.js} +1 -1
  218. package/dist/ketchup/p-773bcc69.entry.js +1 -0
  219. package/dist/ketchup/{p-859aa987.js → p-7bda0684.js} +1 -1
  220. package/dist/ketchup/{p-91180bd4.entry.js → p-81996620.entry.js} +1 -1
  221. package/dist/ketchup/p-9d8d5070.entry.js +1 -0
  222. package/dist/ketchup/{p-88efeed0.entry.js → p-9e63f56b.entry.js} +1 -1
  223. package/dist/ketchup/p-9f31a129.entry.js +38 -0
  224. package/dist/ketchup/p-a9b06bb8.js +1 -0
  225. package/dist/ketchup/{p-04861e0f.entry.js → p-b086727d.entry.js} +1 -1
  226. package/dist/ketchup/p-b5d3c24d.entry.js +1 -0
  227. package/dist/ketchup/p-babbffa4.entry.js +1 -0
  228. package/dist/ketchup/{p-00cc3d95.entry.js → p-c1ade766.entry.js} +1 -1
  229. package/dist/ketchup/{p-de755f71.js → p-ccc637ee.js} +1 -1
  230. package/dist/ketchup/p-d1268ac7.entry.js +1 -0
  231. package/dist/ketchup/p-d15d1083.entry.js +1 -0
  232. package/dist/ketchup/p-d5254caf.entry.js +1 -0
  233. package/dist/ketchup/{p-f51dbf68.js → p-dc18691c.js} +1 -1
  234. package/dist/ketchup/p-de07d17e.js +1 -0
  235. package/dist/ketchup/p-df450df9.entry.js +16 -0
  236. package/dist/ketchup/{p-e50650d0.js → p-e43d4ccc.js} +1 -1
  237. package/dist/ketchup/p-ea625b2a.entry.js +1 -0
  238. package/dist/ketchup/{p-da3b5277.entry.js → p-eb37ea7e.entry.js} +1 -1
  239. package/dist/ketchup/p-f0b882f4.entry.js +1 -0
  240. package/dist/types/components/kup-box/kup-box-declarations.d.ts +1 -0
  241. package/dist/types/components/kup-dashboard/kup-dashboard.d.ts +1 -0
  242. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +1 -0
  243. package/dist/types/components/kup-editor/kup-editor-declarations.d.ts +21 -0
  244. package/dist/types/components/kup-editor/kup-editor.d.ts +128 -0
  245. package/dist/types/components/kup-planner/utils/kup-gantt/kup-gantt.d.ts +1 -0
  246. package/dist/types/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.d.ts +1 -1
  247. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -0
  248. package/dist/types/components.d.ts +149 -2
  249. package/dist/types/managers/kup-data/kup-data.d.ts +1 -1
  250. package/dist/types/managers/kup-interact/kup-interact-declarations.d.ts +1 -0
  251. package/dist/types/managers/kup-interact/kup-interact.d.ts +1 -0
  252. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +3 -0
  253. package/dist/types/managers/kup-manager/kup-manager.d.ts +1 -0
  254. package/dist/types/managers/kup-toolbar/kup-toolbar-declarations.d.ts +1 -1
  255. package/package.json +4 -3
  256. package/dist/ketchup/p-0bdd3eb4.entry.js +0 -1
  257. package/dist/ketchup/p-15c3d2c4.entry.js +0 -1
  258. package/dist/ketchup/p-3172b2d6.entry.js +0 -1
  259. package/dist/ketchup/p-4b141cad.entry.js +0 -1
  260. package/dist/ketchup/p-4dbcd9cf.entry.js +0 -1
  261. package/dist/ketchup/p-62fe8b61.entry.js +0 -1
  262. package/dist/ketchup/p-65984a13.entry.js +0 -39
  263. package/dist/ketchup/p-6e2a9054.entry.js +0 -1
  264. package/dist/ketchup/p-71acfd3c.entry.js +0 -1
  265. package/dist/ketchup/p-7e1d9192.js +0 -29
  266. package/dist/ketchup/p-89f09a1c.entry.js +0 -9
  267. package/dist/ketchup/p-8c3ad5ef.entry.js +0 -1
  268. package/dist/ketchup/p-9868af74.entry.js +0 -1
  269. package/dist/ketchup/p-9bdc7491.js +0 -1
  270. package/dist/ketchup/p-9e68a4c0.js +0 -1
  271. package/dist/ketchup/p-aecf6437.entry.js +0 -1
  272. package/dist/ketchup/p-b07ffd18.entry.js +0 -16
  273. package/dist/ketchup/p-bc0a2875.entry.js +0 -1
  274. package/dist/ketchup/p-c23731ca.js +0 -1
  275. package/dist/ketchup/p-cd9a4274.js +0 -2
  276. package/dist/ketchup/p-ee382e52.entry.js +0 -1
  277. package/dist/ketchup/p-f8069901.entry.js +0 -1
@@ -0,0 +1,128 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
3
+ import Editor from '@toast-ui/editor';
4
+ import { KupEditorEventPayload, KupEditorPreview, KupEditorType } from './kup-editor-declarations';
5
+ import Viewer from '@toast-ui/editor/dist/toastui-editor-viewer';
6
+ export declare class KupEditor {
7
+ #private;
8
+ /**
9
+ * References the root HTML element of the component (<kup-editor>).
10
+ */
11
+ rootElement: HTMLElement;
12
+ /**
13
+ * The editor instance.
14
+ * @default null
15
+ */
16
+ editor: Editor;
17
+ /**
18
+ * The editor html element instance.
19
+ * @default null
20
+ */
21
+ editorRef: HTMLDivElement;
22
+ /**
23
+ * The viewer instance.
24
+ * @default null
25
+ */
26
+ viewer: Viewer;
27
+ /**
28
+ * When specified, the component will emit the kup-editor-autosave event at regular intervals.
29
+ * @default null
30
+ */
31
+ autosaveTimer: number;
32
+ /**
33
+ * Sets the height of the component.
34
+ * @default "auto"
35
+ */
36
+ editorHeight: string;
37
+ /**
38
+ * The editor type.
39
+ * @default 'markdown'
40
+ */
41
+ initialEditType: KupEditorType;
42
+ /**
43
+ * The initial editor value.
44
+ * @default ''
45
+ */
46
+ initialValue: string;
47
+ /**
48
+ * Defines whether the editor is disabled or not.
49
+ * @default false
50
+ */
51
+ isReadOnly: boolean;
52
+ /**
53
+ * The editor preview style.
54
+ * @default 'vertical'
55
+ */
56
+ previewStyle: KupEditorPreview;
57
+ /**
58
+ * Defines whether to show the save button in editor's toolbar or not.
59
+ * @default true
60
+ */
61
+ showSaveButton: boolean;
62
+ /**
63
+ * Defines whether to show the editor's toolbar or not.
64
+ * @default true
65
+ */
66
+ showToolbar: boolean;
67
+ /**
68
+ * Triggered at regular intervals if autosaveTimer prop is initialised.
69
+ */
70
+ kupAutoSave: EventEmitter<KupEditorEventPayload>;
71
+ /**
72
+ * Triggered when the component is ready.
73
+ */
74
+ kupReady: EventEmitter<KupEventPayload>;
75
+ /**
76
+ * Triggered when save button is clicked.
77
+ */
78
+ kupSave: EventEmitter<KupEditorEventPayload>;
79
+ onEditorRefUpdated(): void;
80
+ onEditorUpdate(): void;
81
+ onInitialEditTypeChanged(): void;
82
+ onIsReadOnlyChanged(): void;
83
+ onPreviewStyleChanged(): void;
84
+ onShowSaveButtonChanged(): void;
85
+ onShowToolBarChanged(): void;
86
+ onAutosaveTimerChanged(): void;
87
+ /**
88
+ * Used to retrieve component's props values.
89
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
90
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
91
+ */
92
+ getProps(descriptions?: boolean): Promise<GenericObject>;
93
+ /**
94
+ * Returns the component's internal value as html.
95
+ */
96
+ getValueAsHTML(): Promise<string>;
97
+ /**
98
+ * Returns the component's internal value as markdown.
99
+ */
100
+ getValueAsMarkdown(): Promise<string>;
101
+ /**
102
+ * This method is used to trigger a new render of the component.
103
+ */
104
+ refresh(): Promise<void>;
105
+ /**
106
+ * Sets the props to the component.
107
+ * @param {GenericObject} props - Object containing props that will be set to the component.
108
+ */
109
+ setProps(props: GenericObject): Promise<void>;
110
+ createEditor(): void;
111
+ createViewer(): void;
112
+ createSaveButton(): HTMLElement;
113
+ createDivider(): toastui.ToolbarButton;
114
+ createUnsavedChanges(): HTMLElement;
115
+ updateToolbarVisiblity(): void;
116
+ setAutosaveInterval(): void;
117
+ onEditorSave(): void;
118
+ onEditorAutoSave(): void;
119
+ getToolBarWithSaveButton(includeDefaultItems?: boolean): (string | toastui.ToolbarButton)[];
120
+ getDefaultToolBarItems(): (string | toastui.ToolbarButton)[];
121
+ getSaveAndAutoSaveProps(): KupEditorEventPayload;
122
+ componentWillLoad(): void;
123
+ componentDidLoad(): void;
124
+ componentWillRender(): void;
125
+ componentDidRender(): void;
126
+ render(): any;
127
+ disconnectedCallback(): void;
128
+ }
@@ -96,6 +96,7 @@ export declare class KupGantt {
96
96
  * References the root HTML element of the component (<kup-gantt>).
97
97
  */
98
98
  rootElement: HTMLElement;
99
+ taskListTrueRef: HTMLKupTaskListElement;
99
100
  componentWillLoad(): void;
100
101
  loadStates(): void;
101
102
  componentDidRender(): void;
@@ -1,7 +1,7 @@
1
1
  export declare class HorizontalScroll {
2
2
  scrollNumber: number;
3
3
  svgWidth: number;
4
- taskGanttRef: HTMLDivElement;
4
+ taskListTrueRef: HTMLKupTaskListElement;
5
5
  rtl: boolean;
6
6
  taskListWidth: number;
7
7
  horizontalScroll: (event: UIEvent) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="@interactjs/types" />
1
2
  import { KupDataCell, KupDataColumn, KupDataNode, KupDataRow } from '../../managers/kup-data/kup-data-declarations';
2
3
  import type { PointerEvent } from '@interactjs/types/index';
3
4
  import { GenericMap, KupEventPayload } from '../../types/GenericTypes';
@@ -35,6 +35,7 @@ import { KupDropdownButtonEventPayload } from "./components/kup-dropdown-button/
35
35
  import { KupEchartClickEventPayload, KupEchartLegendPlacement, KupEchartMaps, KupEchartTitle, KupEchartTypes } from "./components/kup-echart/kup-echart-declarations";
36
36
  import { GeoJSON } from "geojson";
37
37
  import { XAXisComponentOption, YAXisComponentOption } from "echarts";
38
+ import { KupEditorEventPayload, KupEditorPreview, KupEditorType } from "./components/kup-editor/kup-editor-declarations";
38
39
  import { KupFamilyTreeData, KupFamilyTreeEventPayload, KupFamilyTreeLayout, KupFamilyTreeNode } from "./components/kup-family-tree/kup-family-tree-declarations";
39
40
  import { KupFormData, KupFormLabelPlacement, KupFormLayout } from "./components/kup-form/kup-form-declarations";
40
41
  import { KupBadge } from "./components/kup-badge/kup-badge";
@@ -83,6 +84,7 @@ export { KupDropdownButtonEventPayload } from "./components/kup-dropdown-button/
83
84
  export { KupEchartClickEventPayload, KupEchartLegendPlacement, KupEchartMaps, KupEchartTitle, KupEchartTypes } from "./components/kup-echart/kup-echart-declarations";
84
85
  export { GeoJSON } from "geojson";
85
86
  export { XAXisComponentOption, YAXisComponentOption } from "echarts";
87
+ export { KupEditorEventPayload, KupEditorPreview, KupEditorType } from "./components/kup-editor/kup-editor-declarations";
86
88
  export { KupFamilyTreeData, KupFamilyTreeEventPayload, KupFamilyTreeLayout, KupFamilyTreeNode } from "./components/kup-family-tree/kup-family-tree-declarations";
87
89
  export { KupFormData, KupFormLabelPlacement, KupFormLayout } from "./components/kup-form/kup-form-declarations";
88
90
  export { KupBadge } from "./components/kup-badge/kup-badge";
@@ -1832,6 +1834,71 @@ export namespace Components {
1832
1834
  */
1833
1835
  "yAxis": YAXisComponentOption;
1834
1836
  }
1837
+ interface KupEditor {
1838
+ /**
1839
+ * When specified, the component will emit the kup-editor-autosave event at regular intervals.
1840
+ * @default null
1841
+ */
1842
+ "autosaveTimer": number;
1843
+ /**
1844
+ * Sets the height of the component.
1845
+ * @default "auto"
1846
+ */
1847
+ "editorHeight": string;
1848
+ /**
1849
+ * Used to retrieve component's props values.
1850
+ * @param descriptions - When provided and true, the result will be the list of props with their description.
1851
+ * @returns List of props as object, each key will be a prop.
1852
+ */
1853
+ "getProps": (descriptions?: boolean) => Promise<GenericObject>;
1854
+ /**
1855
+ * Returns the component's internal value as html.
1856
+ */
1857
+ "getValueAsHTML": () => Promise<string>;
1858
+ /**
1859
+ * Returns the component's internal value as markdown.
1860
+ */
1861
+ "getValueAsMarkdown": () => Promise<string>;
1862
+ /**
1863
+ * The editor type.
1864
+ * @default 'markdown'
1865
+ */
1866
+ "initialEditType": KupEditorType;
1867
+ /**
1868
+ * The initial editor value.
1869
+ * @default ''
1870
+ */
1871
+ "initialValue": string;
1872
+ /**
1873
+ * Defines whether the editor is disabled or not.
1874
+ * @default false
1875
+ */
1876
+ "isReadOnly": boolean;
1877
+ /**
1878
+ * The editor preview style.
1879
+ * @default 'vertical'
1880
+ */
1881
+ "previewStyle": KupEditorPreview;
1882
+ /**
1883
+ * This method is used to trigger a new render of the component.
1884
+ */
1885
+ "refresh": () => Promise<void>;
1886
+ /**
1887
+ * Sets the props to the component.
1888
+ * @param props - Object containing props that will be set to the component.
1889
+ */
1890
+ "setProps": (props: GenericObject) => Promise<void>;
1891
+ /**
1892
+ * Defines whether to show the save button in editor's toolbar or not.
1893
+ * @default true
1894
+ */
1895
+ "showSaveButton": boolean;
1896
+ /**
1897
+ * Defines whether to show the editor's toolbar or not.
1898
+ * @default true
1899
+ */
1900
+ "showToolbar": boolean;
1901
+ }
1835
1902
  interface KupFamilyTree {
1836
1903
  /**
1837
1904
  * The component will autofit everytime a node is expanded.
@@ -2212,7 +2279,7 @@ export namespace Components {
2212
2279
  "rtl": boolean;
2213
2280
  "scrollNumber": number;
2214
2281
  "svgWidth": number;
2215
- "taskGanttRef": HTMLDivElement;
2282
+ "taskListTrueRef": HTMLKupTaskListElement;
2216
2283
  "taskListWidth": number;
2217
2284
  }
2218
2285
  interface KupIframe {
@@ -3873,6 +3940,10 @@ export interface KupEchartCustomEvent<T> extends CustomEvent<T> {
3873
3940
  detail: T;
3874
3941
  target: HTMLKupEchartElement;
3875
3942
  }
3943
+ export interface KupEditorCustomEvent<T> extends CustomEvent<T> {
3944
+ detail: T;
3945
+ target: HTMLKupEditorElement;
3946
+ }
3876
3947
  export interface KupFamilyTreeCustomEvent<T> extends CustomEvent<T> {
3877
3948
  detail: T;
3878
3949
  target: HTMLKupFamilyTreeElement;
@@ -4392,6 +4463,25 @@ declare global {
4392
4463
  prototype: HTMLKupEchartElement;
4393
4464
  new (): HTMLKupEchartElement;
4394
4465
  };
4466
+ interface HTMLKupEditorElementEventMap {
4467
+ "kup-editor-autosave": KupEditorEventPayload;
4468
+ "kup-editor-ready": KupEventPayload;
4469
+ "kup-editor-save": KupEditorEventPayload;
4470
+ }
4471
+ interface HTMLKupEditorElement extends Components.KupEditor, HTMLStencilElement {
4472
+ addEventListener<K extends keyof HTMLKupEditorElementEventMap>(type: K, listener: (this: HTMLKupEditorElement, ev: KupEditorCustomEvent<HTMLKupEditorElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
4473
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
4474
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
4475
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
4476
+ removeEventListener<K extends keyof HTMLKupEditorElementEventMap>(type: K, listener: (this: HTMLKupEditorElement, ev: KupEditorCustomEvent<HTMLKupEditorElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
4477
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
4478
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
4479
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
4480
+ }
4481
+ var HTMLKupEditorElement: {
4482
+ prototype: HTMLKupEditorElement;
4483
+ new (): HTMLKupEditorElement;
4484
+ };
4395
4485
  interface HTMLKupFamilyTreeElementEventMap {
4396
4486
  "kup-familytree-click": KupFamilyTreeEventPayload;
4397
4487
  "kup-familytree-contextmenu": KupFamilyTreeEventPayload;
@@ -4926,6 +5016,7 @@ declare global {
4926
5016
  "kup-drawer": HTMLKupDrawerElement;
4927
5017
  "kup-dropdown-button": HTMLKupDropdownButtonElement;
4928
5018
  "kup-echart": HTMLKupEchartElement;
5019
+ "kup-editor": HTMLKupEditorElement;
4929
5020
  "kup-family-tree": HTMLKupFamilyTreeElement;
4930
5021
  "kup-form": HTMLKupFormElement;
4931
5022
  "kup-gantt": HTMLKupGanttElement;
@@ -6400,6 +6491,60 @@ declare namespace LocalJSX {
6400
6491
  */
6401
6492
  "yAxis"?: YAXisComponentOption;
6402
6493
  }
6494
+ interface KupEditor {
6495
+ /**
6496
+ * When specified, the component will emit the kup-editor-autosave event at regular intervals.
6497
+ * @default null
6498
+ */
6499
+ "autosaveTimer"?: number;
6500
+ /**
6501
+ * Sets the height of the component.
6502
+ * @default "auto"
6503
+ */
6504
+ "editorHeight"?: string;
6505
+ /**
6506
+ * The editor type.
6507
+ * @default 'markdown'
6508
+ */
6509
+ "initialEditType"?: KupEditorType;
6510
+ /**
6511
+ * The initial editor value.
6512
+ * @default ''
6513
+ */
6514
+ "initialValue"?: string;
6515
+ /**
6516
+ * Defines whether the editor is disabled or not.
6517
+ * @default false
6518
+ */
6519
+ "isReadOnly"?: boolean;
6520
+ /**
6521
+ * Triggered at regular intervals if autosaveTimer prop is initialised.
6522
+ */
6523
+ "onKup-editor-autosave"?: (event: KupEditorCustomEvent<KupEditorEventPayload>) => void;
6524
+ /**
6525
+ * Triggered when the component is ready.
6526
+ */
6527
+ "onKup-editor-ready"?: (event: KupEditorCustomEvent<KupEventPayload>) => void;
6528
+ /**
6529
+ * Triggered when save button is clicked.
6530
+ */
6531
+ "onKup-editor-save"?: (event: KupEditorCustomEvent<KupEditorEventPayload>) => void;
6532
+ /**
6533
+ * The editor preview style.
6534
+ * @default 'vertical'
6535
+ */
6536
+ "previewStyle"?: KupEditorPreview;
6537
+ /**
6538
+ * Defines whether to show the save button in editor's toolbar or not.
6539
+ * @default true
6540
+ */
6541
+ "showSaveButton"?: boolean;
6542
+ /**
6543
+ * Defines whether to show the editor's toolbar or not.
6544
+ * @default true
6545
+ */
6546
+ "showToolbar"?: boolean;
6547
+ }
6403
6548
  interface KupFamilyTree {
6404
6549
  /**
6405
6550
  * The component will autofit everytime a node is expanded.
@@ -6709,7 +6854,7 @@ declare namespace LocalJSX {
6709
6854
  "rtl"?: boolean;
6710
6855
  "scrollNumber"?: number;
6711
6856
  "svgWidth"?: number;
6712
- "taskGanttRef"?: HTMLDivElement;
6857
+ "taskListTrueRef"?: HTMLKupTaskListElement;
6713
6858
  "taskListWidth"?: number;
6714
6859
  }
6715
6860
  interface KupIframe {
@@ -8065,6 +8210,7 @@ declare namespace LocalJSX {
8065
8210
  "kup-drawer": KupDrawer;
8066
8211
  "kup-dropdown-button": KupDropdownButton;
8067
8212
  "kup-echart": KupEchart;
8213
+ "kup-editor": KupEditor;
8068
8214
  "kup-family-tree": KupFamilyTree;
8069
8215
  "kup-form": KupForm;
8070
8216
  "kup-gantt": KupGantt;
@@ -8134,6 +8280,7 @@ declare module "@stencil/core" {
8134
8280
  "kup-drawer": LocalJSX.KupDrawer & JSXBase.HTMLAttributes<HTMLKupDrawerElement>;
8135
8281
  "kup-dropdown-button": LocalJSX.KupDropdownButton & JSXBase.HTMLAttributes<HTMLKupDropdownButtonElement>;
8136
8282
  "kup-echart": LocalJSX.KupEchart & JSXBase.HTMLAttributes<HTMLKupEchartElement>;
8283
+ "kup-editor": LocalJSX.KupEditor & JSXBase.HTMLAttributes<HTMLKupEditorElement>;
8137
8284
  "kup-family-tree": LocalJSX.KupFamilyTree & JSXBase.HTMLAttributes<HTMLKupFamilyTreeElement>;
8138
8285
  "kup-form": LocalJSX.KupForm & JSXBase.HTMLAttributes<HTMLKupFormElement>;
8139
8286
  "kup-gantt": LocalJSX.KupGantt & JSXBase.HTMLAttributes<HTMLKupGanttElement>;
@@ -17,7 +17,7 @@ export declare class KupData {
17
17
  column: {
18
18
  find(dataset: KupDataDataset | KupDataColumn[], filters: Partial<KupDataColumn>): KupDataColumn[];
19
19
  hide(dataset: KupDataDataset | KupDataColumn[], columns2hide: string[]): KupDataColumn[];
20
- new(dataset: KupDataDataset, type: KupDataNewColumnTypes, options: KupDataNewColumnOptions): string | KupDataColumn;
20
+ "new"(dataset: KupDataDataset, type: KupDataNewColumnTypes, options: KupDataNewColumnOptions): string | KupDataColumn;
21
21
  };
22
22
  node: {
23
23
  getDrilldownInfo(nodes: KupDataNode[]): KupDataNodeDrilldownInfo;
@@ -1,3 +1,4 @@
1
+ /// <reference types="@interactjs/types" />
1
2
  import type { DropEvent, InteractEvent } from '@interactjs/types/index';
2
3
  import type { ResizeEvent } from '@interactjs/actions/resize/plugin';
3
4
  import { KupBoxRow } from '../../components/kup-box/kup-box-declarations';
@@ -1,3 +1,4 @@
1
+ /// <reference types="@interactjs/types" />
1
2
  import type { Interaction } from '@interactjs/core/Interaction';
2
3
  import type { ActionMap } from '@interactjs/core/scope';
3
4
  import type { DraggableOptions, DropzoneOptions, ListenersArg, Point, RectResolvable, ResizableOptions } from '@interactjs/types/index';
@@ -1,3 +1,4 @@
1
+ /// <reference types="@interactjs/types" />
1
2
  import type { Interaction } from '@interactjs/core/Interaction';
2
3
  import type { ActionMap } from '@interactjs/core/scope';
3
4
  import type { RectResolvable } from '@interactjs/types/index';
@@ -38,6 +39,7 @@ export interface KupManager {
38
39
  dates: KupDates;
39
40
  debug: KupDebug;
40
41
  dynamicPosition: KupDynamicPosition;
42
+ enableExperimentalFeatures: boolean;
41
43
  interact: KupInteract;
42
44
  language: KupLanguage;
43
45
  magicBox: HTMLKupMagicBoxElement;
@@ -83,6 +85,7 @@ export interface KupManagerInitialization {
83
85
  autoSetLocalization?: boolean;
84
86
  dates?: KupManagerDatesSettings;
85
87
  debug?: KupManagerDebugSettings;
88
+ enableExperimentalFeatures?: boolean;
86
89
  interact?: KupManagerInteractSettings;
87
90
  language?: KupManagerLanguageSettings;
88
91
  math?: KupManagerMathSettings;
@@ -25,6 +25,7 @@ export declare class KupManager {
25
25
  dates: KupDates;
26
26
  debug: KupDebug;
27
27
  dynamicPosition: KupDynamicPosition;
28
+ enableExperimentalFeatures: boolean;
28
29
  interact: KupInteract;
29
30
  language: KupLanguage;
30
31
  magicBox: HTMLKupMagicBoxElement;
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export declare enum KupToolbarModifierKeys {
5
5
  ALT = "altKey",
6
- CTRL = "ctrlKey",
6
+ CTRL = "ctrlKey",// Automatically tests for metaKey as well (iOS compatibility)
7
7
  SHIFT = "shiftKey"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sme.up/ketchup",
3
- "version": "9.5.1",
3
+ "version": "9.6.0",
4
4
  "keywords": [
5
5
  "smeup",
6
6
  "KetchUP",
@@ -46,6 +46,7 @@
46
46
  "@material/form-field": "^14.0.0",
47
47
  "@material/ripple": "^14.0.0",
48
48
  "@material/textfield": "^14.0.0",
49
+ "@toast-ui/editor": "^2.5.4",
49
50
  "d3-shape": "^3.2.0",
50
51
  "dayjs": "^1.11.7",
51
52
  "echarts": "^5.4.2",
@@ -58,9 +59,9 @@
58
59
  "vanilla-picker": "^2.12.1"
59
60
  },
60
61
  "devDependencies": {
61
- "@stencil/core": "^4.8.1",
62
+ "@stencil/core": "^4.12.0",
62
63
  "@stencil/react-output-target": "0.5.3",
63
- "@stencil/sass": "^3.0.7",
64
+ "@stencil/sass": "^3.0.9",
64
65
  "jest": "^29.7.0",
65
66
  "jest-cli": "^29.7.0",
66
67
  "jest-html-reporter": "^3.10.2",
@@ -1 +0,0 @@
1
- import{r as t,c as e,f as i,h,H as s,d as a}from"./p-cd9a4274.js";import{k as o,g as n,s as l}from"./p-7e1d9192.js";import{c as p}from"./p-635bb4b3.js";import"./p-c23731ca.js";var r,c;!function(t){t.componentName="Sets the tag name of the component to be lazy loaded.",t.customStyle="Custom style of the component.",t.data="Sets the data of the component to be lazy loaded.",t.showPlaceholder="Displays an animated SVG placeholder until the component is loaded."}(r||(r={})),function(t){t.VIEWPORT="viewport",t.PROPS="props",t.BOTH="both"}(c||(c={}));const d=class{constructor(i){t(this,i),this.kupLazyLoaded=e(this,"kup-lazy-loaded",6),this.intObserver=null,this.kupManager=o(),this.lazyComponent=null,this.lazyComponentLoaded=!1,this.isInViewport=!1,this.componentName=null,this.customStyle="",this.data=null,this.renderMode=c.BOTH,this.showPlaceholder=!0}async getProps(t){return n(this,r,t)}async getComponent(){return this.lazyComponent}async refresh(){i(this)}async setProps(t){l(this,r,t)}setObserver(){this.intObserver=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&(this.kupManager.debug.logMessage(this,"kup-lazy entering the viewport, rendering "+this.componentName+"."),this.isInViewport=!0,this.intObserver.unobserve(this.rootElement))}))}),{threshold:.25})}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this),this.setObserver()}componentDidLoad(){this.intObserver.observe(this.rootElement),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.lazyComponent&&!this.lazyComponentLoaded&&(this.lazyComponentLoaded=!0,this.kupLazyLoaded.emit({comp:this,id:this.rootElement.id})),this.kupManager.debug.logRender(this,!0)}render(){let t,e,i=this.componentName;switch(this.componentName){case"kup-button":e=h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},h("path",{d:"M42 6H6c-2.2 0-4 1.8-4 4v28c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4V10c0-2.2-1.8-4-4-4zm0 32H6v-6h36v6z"}));break;case"kup-card":default:e=h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},h("path",{d:"M44 26H28v-4h16v4zm0-12H28v4h16v-4zM28 34h16v-4H28v4zm-4-16v12c0 2.2-1.8 4-4 4H8c-2.2 0-4-1.8-4-4V18c0-2.2 1.8-4 4-4h12c2.2 0 4 1.8 4 4zm-3 12l-4.5-6-3.5 4.51-2.5-3.01L7 30h14z"}));break;case"kup-checkbox":e=h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},h("path",{d:"M38 10v28H10V10h28m0-4H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4z"}));break;case"kup-chart":e=h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",viewBox:"0 0 24 24"},h("path",{d:"M22,21H2V3H4V19H6V10H10V19H12V6H16V19H18V14H22V21Z"}));break;case"kup-data-table":e=h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",viewBox:"0 0 24 24"},h("path",{d:"M4,3H20A2,2 0 0,1 22,5V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V5A2,2 0 0,1 4,3M4,7V10H8V7H4M10,7V10H14V7H10M20,10V7H16V10H20M4,12V15H8V12H4M4,20H8V17H4V20M10,12V15H14V12H10M10,20H14V17H10V20M20,20V17H16V20H20M20,12H16V15H20V12Z"}));break;case"kup-image":e=h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},h("path",{d:"M42 38V10c0-2.21-1.79-4-4-4H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4zM17 27l5 6.01L29 24l9 12H10l7-9z"}));break;case"kup-progress-bar":e=h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},h("path",{d:"M39 19c-2.05 0-3.81 1.23-4.58 3h-5.84c-.77-1.77-2.53-3-4.58-3s-3.81 1.23-4.58 3h-5.84c-.77-1.77-2.53-3-4.58-3-2.77 0-5 2.23-5 5s2.23 5 5 5c2.05 0 3.81-1.23 4.58-3h5.84c.77 1.77 2.53 3 4.58 3s3.81-1.23 4.58-3h5.84c.77 1.77 2.53 3 4.58 3 2.77 0 5-2.23 5-5s-2.23-5-5-5z"}));break;case"kup-radio":e=h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 48 48"},h("path",{d:"M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}))}return this.renderMode===c.VIEWPORT&&this.isInViewport||this.renderMode===c.PROPS&&this.data||this.renderMode===c.BOTH&&this.data&&this.isInViewport?(t=h(this.componentName,Object.assign({},this.data,{ref:t=>this.lazyComponent=t})),i+=" kup-loaded"):this.showPlaceholder&&(t=e,i+=" kup-to-be-loaded"),h(s,{class:i},h("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),h("div",{id:p},t))}disconnectedCallback(){var t;this.kupManager.theme.unregister(this),null===(t=this.intObserver)||void 0===t||t.unobserve(this.rootElement)}get rootElement(){return a(this)}};d.style=":host{--kup_lazy_animation_time:var(--kup-lazy-animation-time, 2s);--kup_lazy_hor_alignment:var(--kup-lazy-hor-alignment, center);--kup_lazy_placeholder_color:var(\n --kup-lazy-placeholder-color,\n var(--kup-icon-color)\n );--kup_lazy_height:var(--kup-lazy-height, 100%);--kup_lazy_ver_alignment:var(--kup-lazy-ver-alignment, center);--kup_lazy_width:var(--kup-lazy-width, 100%);display:block;height:var(--kup_lazy_height);width:var(--kup_lazy_width);position:relative}#kup-component{align-items:var(--kup_lazy_ver_alignment);display:flex;justify-content:var(--kup_lazy_hor_alignment);height:var(--kup_lazy_height);width:var(--kup_lazy_width)}#kup-component>*{height:var(--kup_lazy_height)}#kup-component kup-data-table{min-width:100%}.kup-loaded,.kup-to-be-loaded{height:var(--kup_lazy_height);width:var(--kup_lazy_width)}svg{fill:var(--kup_lazy_placeholder_color);animation:shine ease var(--kup_lazy_animation_time) infinite}@keyframes shine{0%{opacity:0.4}50%{opacity:0.8}100%{opacity:0.4}}:host(.kup-bottom-aligned){--kup-lazy-ver-alignment:flex-end}:host(.kup-left-aligned){--kup-lazy-hor-alignment:flex-start}:host(.kup-right-aligned){--kup-lazy-hor-alignment:flex-end}:host(.kup-top-aligned){--kup-lazy-ver-alignment:flex-start}:host(.kup-to-be-loaded) #kup-component{position:absolute}:host(.kup-to-be-loaded) #kup-component>*{margin:auto}";export{d as kup_lazy}
@@ -1 +0,0 @@
1
- import{r,c as a,f as o,h as t,H as n,d as i}from"./p-cd9a4274.js";import{k as s,g as p,s as e}from"./p-7e1d9192.js";import{c as b}from"./p-635bb4b3.js";import"./p-c23731ca.js";const l="nav-bar";var v,u;!function(r){r.customStyle="Custom style of the component.",r.image="Image displayed by the nav bar, uses the kup-image component's props.",r.label="Text displayed by the nav bar.",r.showMenuButton="When true, the menu button will be displayed on the left of the nav bar.",r.styling="Defines the style of the nav bar"}(v||(v={})),function(r){r.SHORT="short",r.STANDARD="standard"}(u||(u={}));const c=class{constructor(o){r(this,o),this.kupNavbarReady=a(this,"kup-navbar-ready",6),this.kupNavbarResize=a(this,"kup-navbar-resize",6),this.kupManager=s(),this.customStyle="",this.styling=u.STANDARD}async getProps(r){return p(this,v,r)}async refresh(){o(this)}async resizeCallback(){window.clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((()=>{this.kupNavbarResize.emit({comp:this,id:this.rootElement.id})}),300)}async setProps(r){e(this,v,r)}content(){const r=Array.prototype.slice.call(this.rootElement.children,0),a=[],o=[];for(let n=0;n<r.length;n++)"left"===r[n].slot?a.push(t("slot",{name:"left"})):o.push(t("slot",{name:"right"}));return[a.length?t("section",{class:`${l}__section ${l}__section--align-start`},a):null,o.length?t("section",{class:`${l}__section ${l}__section--align-end`,role:"toolbar"},o):null]}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.language.register(this),this.kupManager.theme.register(this)}componentDidLoad(){this.kupNavbarReady.emit({comp:this,id:this.rootElement.id}),this.kupManager.resize.observe(this.rootElement),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){return t(n,{class:"header"},t("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),t("div",{id:b},t("header",{class:`${l} ${l}--${this.styling.toLowerCase()} `},t("div",{class:`${l}__row`},this.content()))))}disconnectedCallback(){this.kupManager.language.unregister(this),this.kupManager.resize.unobserve(this.rootElement),this.kupManager.theme.unregister(this)}get rootElement(){return i(this)}};c.style=":host{--kup_navbar_box_shadow:var(\n --kup-navbar-box-shadow,\n 0 2px 4px -1px rgba(128, 128, 128, 0.2),\n 0 4px 5px 0 rgba(128, 128, 128, 0.14),\n 0 1px 10px 0 rgba(128, 128, 128, 0.12)\n );--kup_navbar_padding:var(--kup-navbar-padding, 8px 12px);--kup_navbar_position:var(--kup-navbar-position, fixed);--kup_navbar_short_border_radius:var(\n --kup-navbar-short-border-radius,\n 0px 0px 24px\n );--kup_navbar_short_box_shadow:var(\n --kup-navbar-short-box-shadow,\n rgba(128, 128, 128, 0.2) 0px 2px 4px -1px,\n rgba(128, 128, 128, 0.14) 0px 4px 5px 0px,\n rgba(128, 128, 128, 0.12) 0px 1px 10px 0px\n );--kup_navbar_short_width:var(--kup-navbar-short-width, 9em);--kup_navbar_transition:var(--kup-navbar-transition, 250ms);--kup_navbar_width:var(--kup-navbar-width, 100%);box-sizing:border-box;font-size:var(--kup-font-size);left:0;position:var(--kup_navbar_position);top:0;transition:all var(--kup_navbar_transition);width:var(--kup_navbar_width);z-index:var(--kup-navbar-zindex)}#kup-component{width:var(--kup_navbar_width)}.nav-bar{background-color:var(--kup-navbar-background-color);box-shadow:var(--kup_navbar_box_shadow);box-sizing:border-box;color:var(--kup-navbar-color);display:flex;flex-direction:column;justify-content:space-between;width:var(--kup_navbar_width)}.nav-bar--short{border-radius:var(--kup_navbar_short_border_radius);box-shadow:var(--kup_navbar_short_box_shadow);width:var(--kup_navbar_short_width)}.nav-bar--short .nav-bar__section{padding:0 0.5em}.nav-bar--short section{overflow:hidden}.nav-bar ::slotted(*){--kup-button-primary-color:var(--kup-navbar-color);--kup-button-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-button-primary-color-h:var(--kup-navbar-color-h);--kup-button-primary-color-s:var(--kup-navbar-color-s);--kup-button-primary-color-l:var(--kup-navbar-color-l);--kup-switch-label-color:var(--kup-navbar-color);--kup-switch-primary-color:var(--kup-navbar-color);--kup-switch-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-textfield-color:var(--kup-navbar-color);--kup-textfield-color-rgb:var(--kup-navbar-color-rgb);--kup-tree-color:var(--kup-navbar-color);--kup-tree-color-rgb:var(--kup-navbar-color-rgb);color:var(--kup-navbar-color);fill:var(--kup-navbar-color);margin:0}.nav-bar__row{box-sizing:border-box;display:flex;height:var(--kup-navbar-height);position:relative;width:var(--kup_navbar_width)}.nav-bar__section{align-items:center;display:inline-flex;flex:1 1 auto;min-width:0;padding:var(--kup_navbar_padding)}.nav-bar__section--align-start{flex-shrink:5;justify-content:flex-start;order:-1}.nav-bar__section--align-end{justify-content:flex-end;order:1;overflow:hidden}::slotted(*){--kup-button-primary-color:var(--kup-navbar-color);--kup-button-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-button-primary-color-h:var(--kup-navbar-color-h);--kup-button-primary-color-s:var(--kup-navbar-color-s);--kup-button-primary-color-l:var(--kup-navbar-color-l);--kup-switch-label-color:var(--kup-navbar-color);--kup-switch-primary-color:var(--kup-navbar-color);--kup-switch-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-textfield-color:var(--kup-navbar-color);--kup-textfield-color-rgb:var(--kup-navbar-color-rgb);--kup-textfield-primary-color:var(--kup-navbar-color);--kup-textfield-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-tree-color:var(--kup-navbar-color);--kup-tree-color-rgb:var(--kup-navbar-color-rgb);color:var(--kup-navbar-color);fill:var(--kup-navbar-color);margin:0}";export{c as kup_nav_bar}
@@ -1 +0,0 @@
1
- import{r as t,c as e,f as i,h as r,H as a,d as l}from"./p-cd9a4274.js";import{F as o}from"./p-e50650d0.js";import{F as s}from"./p-c634eb82.js";import{F as _}from"./p-9e68a4c0.js";import{k as n,g as m,s as f,l as h,M as c}from"./p-7e1d9192.js";import{c as p}from"./p-635bb4b3.js";import"./p-c23731ca.js";var u;!function(t){t.autofitOnExpand="The component will autofit everytime a node is expanded.",t.autofitOnLoad="The component's initial render will fit the container by invoking the runAutofit method.",t.cardData="Used to render the family tree boxes as kup-cards (through kup-box).",t.collapsible="Nodes can be expanded/collapsed.",t.customStyle="Custom style of the component.",t.data="Actual data of the component",t.layout="Layout of the boxes.",t.stackedLeaves="Child nodes that have no children are arranged vertically."}(u||(u={}));var d,y,k,v,g,b,x,w,j,C,E,T,W,M,S,z,D,L,O,P,A,F,R,X,Y,H=function(t,e,i,r){if("a"===i&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(t):r?r.value:e.get(t)},$=function(t,e,i,r,a){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(t,i):a?a.value=i:e.set(t,i),i};const B=class{constructor(i){t(this,i),this.kupClick=e(this,"kup-familytree-click",6),this.kupContextMenu=e(this,"kup-familytree-contextmenu",6),this.kupDblClick=e(this,"kup-familytree-dblclick",6),d.add(this),y.set(this,[]),k.set(this,!1),v.set(this,0),g.set(this,0),b.set(this,[]),x.set(this,n()),w.set(this,(t=>{const e=t.clientX-H(this,v,"f"),i=t.clientY-H(this,g,"f");this.rootElement.scrollTop-=i,this.rootElement.scrollLeft-=e,$(this,v,t.clientX,"f"),$(this,g,t.clientY,"f")})),j.set(this,!1),C.set(this,null),this.autofitOnExpand=!0,this.autofitOnLoad=!0,this.cardData=null,this.collapsible=!0,this.customStyle="",this.data=null,this.layout=null,this.stackedLeaves=!1}async collapseAll(t=this.data.rows){H(this,x,"f").data.node.setProperties(t,{isExpanded:!1},!0),this.refresh()}async expandAll(t=this.data.rows){H(this,x,"f").data.node.setProperties(t,{isExpanded:!0},!0),this.refresh()}async getProps(t){return m(this,u,t)}async refresh(){i(this)}async runAutofit(){const t=H(this,C,"f").clientWidth,e=H(this,C,"f").children[0].clientWidth,i=.01,r=.85*t,a=.95*t;let l=1,o=2e3,s=e;for(;(s<r||s>a)&&o>0&&l>i;)o--,s<r?l+=i:s>a?l-=i:o=0,s=e*l;H(this,C,"f").style.setProperty("--kup_familytree_scale",l<=1?l.toFixed(2):"1")}async setProps(t){f(this,u,t)}componentWillLoad(){H(this,x,"f").debug.logLoad(this,!1),H(this,x,"f").language.register(this),H(this,x,"f").theme.register(this)}componentDidLoad(){H(this,d,"m",X).call(this),this.autofitOnLoad&&this.runAutofit(),H(this,x,"f").debug.logLoad(this,!0)}componentWillRender(){H(this,x,"f").debug.logRender(this,!1)}componentDidRender(){H(this,j,"f")&&($(this,j,!1,"f"),this.runAutofit()),H(this,x,"f").debug.logRender(this,!0)}render(){return r(a,{onDrag:t=>t.preventDefault(),onPointerDown:t=>{t.preventDefault(),H(this,d,"m",O).call(this,t)},onWheel:t=>{H(this,d,"m",Y).call(this,t)}},r("style",null,H(this,x,"f").theme.setKupStyle(this.rootElement)),r("div",{id:p},H(this,d,"m",D).call(this)))}disconnectedCallback(){H(this,x,"f").language.unregister(this),H(this,x,"f").theme.unregister(this)}get rootElement(){return l(this)}};y=new WeakMap,k=new WeakMap,v=new WeakMap,g=new WeakMap,b=new WeakMap,x=new WeakMap,w=new WeakMap,j=new WeakMap,C=new WeakMap,d=new WeakSet,E=function(t,e,i,a){const l=[];return l.push(r("td",{class:{"family-tree__line":!0,"family-tree__line--right":!t,"family-tree__line--top":!t}},r("div",{class:"family-tree__line--placeholder"}))),l.push(r("td",{class:{"family-tree__line":!0,"family-tree__line--left":t,"family-tree__line--top":t&&!i||a&&!e}},r("div",{class:"family-tree__line--placeholder"}))),l},T=function t(e){var i;let a=null,l=null;(!this.collapsible||this.collapsible&&e.isExpanded)&&(null===(i=e.children)||void 0===i||i.forEach((t=>{t.isStaff?(l||(l=[]),l.push(t)):(a||(a=[]),a.push(t))})));const _=this.stackedLeaves&&a&&a.every((t=>!t.children||0==t.children.length)),n=a?2*a.length:1,m={"family-tree__line":!0,"family-tree__line--placeholder":!(!a&&!l),"family-tree__line--vertical":!(!a&&!l)},f={columns:[{name:"*TREECOL",title:"Fake column",visible:!1},...this.data.columns],rows:[{cells:Object.assign({"*TREECOL":e},e.cells)}]},c=e.layout||this.layout||1,p={icon:e.isExpanded?"remove":"plus",shaped:!0,slim:!0,styling:s.OUTLINED,title:`${H(this,x,"f").language.translate(h.EXPAND)}/${H(this,x,"f").language.translate(h.COLLAPSE)} (CTRL + Click)`,onClick:t=>{t.ctrlKey&&e.children&&e.children.length>0&&(e.isExpanded?this.collapseAll(e.children):this.expandAll(e.children)),e.isExpanded=!e.isExpanded,this.autofitOnExpand&&$(this,j,!0,"f"),this.refresh()},wrapperClass:"family-tree__item__expand"};let u=null;H(this,d,"m",L).call(this,c)&&(u=r("kup-box",{class:"kup-borderless kup-paddingless",customStyle:"#kup-component { background: var(--kup_familytree_item_background_color); border: 2px solid var(--kup_familytree_lines_color); box-sizing: border-box; height: var(--kup_familytree_item_height); padding: 0 var(--kup_familytree_item_h_padding); } #kup-component .box-component { background: var(--kup_familytree_item_background_color); box-sizing: border-box; height: 100%;} #kup-component .f-cell__text { color: var(--kup_familytree_item_color); }",data:f,cardData:this.cardData,layout:this.cardData?null:c,showSelection:!1}));const y=r("div",{class:"family-tree__item"},r("div",{class:"family-tree__item__wrapper"},H(this,d,"m",L).call(this,c)?u:H(this,d,"m",W).call(this,e,c),this.collapsible&&e.children&&e.children.length>0?r(o,Object.assign({},p)):void 0)),k={"--kup_familytree_staffchildren":(null==l?void 0:l.length.toString())||"0"};return r("table",{class:{"family-tree__node":!0,"family-tree__node--stacked":this.stackedLeaves&&!e.isStaff&&(!e.children||0==e.children.length)}},r("tr",null,r("td",{"data-row":e,colSpan:n},y)),r("tr",null,r("td",{colSpan:n},r("div",{class:m}))),l?[r("tr",null,r("td",{colSpan:n},r("div",{class:Object.assign(Object.assign({},m),{"family-tree__line--staff":!0}),style:k}),r("div",{class:"family-tree__node__staff",style:k},l.map((e=>[r("div",{class:"family-tree__node__staff__item"},H(this,d,"m",t).call(this,e))])))))]:null,l&&a?[r("tr",null,r("td",{colSpan:n},r("div",{class:m})))]:null,a?[r("tr",null,_?r("td",{colSpan:n},r("div",{class:m})):a.map((t=>H(this,d,"m",E).call(this,0==a.indexOf(t),a.indexOf(t)==a.length-1,1==a.length,a.length>2)))),r("tr",null,_?r("td",{colSpan:n},a.map((e=>H(this,d,"m",t).call(this,e)))):a.map((e=>r("td",{colSpan:2},H(this,d,"m",t).call(this,e)))))]:void 0)},W=function(t,e){return 2===e?H(this,d,"m",S).call(this,t):H(this,d,"m",M).call(this,t)},M=function(t){return r("div",{class:"family-tree__item__layout family-tree__item__layout--1"},r("div",{class:"family-tree__item__layout__text__title"},t.value))},S=function(t){return r("div",{class:"family-tree__item__layout family-tree__item__layout--2"},r("div",{class:"family-tree__item__layout__color"}),r("div",{class:"family-tree__item__layout__image"},r(_,{resource:t.icon,sizeX:"48px",sizeY:"48px"})),r("div",{class:"family-tree__item__layout__text"},r("div",{class:"family-tree__item__layout__text__title"},t.value),t.title?r("div",{class:"family-tree__item__layout__text__subtitle"},t.title):null))},z=function(t){return t.map((t=>H(this,d,"m",T).call(this,t)))},D=function(){return r("div",{class:"family-tree",onContextMenu:t=>{t.preventDefault()},ref:t=>$(this,C,t,"f")},this.data&&this.data.rows&&this.data.rows.length?H(this,d,"m",z).call(this,this.data.rows):r("div",null,H(this,x,"f").language.translate(h.EMPTY_DATA)))},L=function(t){return!!this.cardData||t&&t.sections&&t.sections.length>0},O=function(t){$(this,v,t.clientX,"f"),$(this,g,t.clientY,"f"),H(this,C,"f").classList.add("family-tree--dragging");const e=()=>{document.removeEventListener("pointermove",H(this,w,"f")),document.removeEventListener("pointerup",e),H(this,C,"f").classList.remove("family-tree--dragging")};document.addEventListener("pointermove",H(this,w,"f")),document.addEventListener("pointerup",e)},P=function(t,e){let i,r;if(t)for(let e=t.length-1;e>=0;e--){const a=t[e];a.tagName&&(a.classList.contains("family-tree__item__expand")&&(i=a),"TD"===a.tagName.toUpperCase())&&(r=a)}let a=null,l=null,o=null;return r&&(a=r["data-cell"],l=r["data-column"],o=r["data-row"]),{cell:a||null,column:l||null,expandButton:i||null,originalEvent:e,row:o||null,td:r||null}},A=function(t){return H(this,d,"m",P).call(this,H(this,x,"f").getEventPath(t.target,this.rootElement),t)},F=function(t){return H(this,d,"m",P).call(this,H(this,x,"f").getEventPath(t.target,this.rootElement),t)},R=function(t){return H(this,d,"m",P).call(this,H(this,x,"f").getEventPath(t.target,this.rootElement),t)},X=function(){H(this,b,"f").push(this.rootElement),H(this,x,"f").interact.on(this.rootElement,c.TAP,(t=>{if(H(this,k,"f"))$(this,k,!1,"f");else switch(t.button){case 0:const e={};for(const i in t)e[i]=t[i];H(this,y,"f").push(setTimeout((()=>{this.kupClick.emit({comp:this,id:this.rootElement.id,details:H(this,d,"m",A).call(this,e)})}),300));break;case 2:this.kupContextMenu.emit({comp:this,id:this.rootElement.id,details:H(this,d,"m",F).call(this,t)})}})),H(this,x,"f").interact.on(this.rootElement,c.DOUBLETAP,(t=>{if(0===t.button){for(let t=0;t<H(this,y,"f").length;t++)clearTimeout(H(this,y,"f")[t]),H(this,x,"f").debug.logMessage(this,"Cleared clickHandler timeout("+H(this,y,"f")[t]+").");$(this,y,[],"f"),this.kupDblClick.emit({comp:this,id:this.rootElement.id,details:H(this,d,"m",R).call(this,t)})}})),H(this,x,"f").interact.on(this.rootElement,c.HOLD,(t=>{"pen"!==t.pointerType&&"touch"!==t.pointerType||($(this,k,!0,"f"),this.kupContextMenu.emit({comp:this,id:this.rootElement.id,details:H(this,d,"m",F).call(this,t)}))}))},Y=function(t){if(t.ctrlKey){t.preventDefault();const e=parseFloat(H(this,C,"f").style.getPropertyValue("--kup_familytree_scale"))||1,i=.05;let r=t.deltaY>0?e-i:e+i;r<i&&(r=i),H(this,C,"f").style.setProperty("--kup_familytree_scale",r.toFixed(2))}},B.style=':host{--kup_familytree_item_background_color:var(\n --kup-familytree-item-background-color,\n var(--kup-background-color)\n );--kup_familytree_item_color:var(\n --kup-familytree-item-color,\n var(--kup-text-color)\n );--kup_familytree_item_height:var(--kup-familytree-item-height, 80px);--kup_familytree_item_h_padding:var(--kup-familytree-item-h-padding, 8px);--kup_familytree_item_v_padding:var(--kup-familytree-item-v-padding, 10px);--kup_familytree_item_width:var(--kup-familytree-item-width, 280px);--kup_familytree_lines_color:var(\n --kup-familytree-lines-color,\n var(--kup-border-color)\n );display:block;overflow:hidden}.family-tree{cursor:grab;display:flex;transform:scale(var(--kup_familytree_scale, 1));transform-origin:0px 0px}.family-tree--dragging{cursor:grabbing}.family-tree__node{border-collapse:collapse;margin:auto}.family-tree__node--stacked{margin-bottom:4px}.family-tree__node__staff{align-items:center;display:flex;flex-direction:column;height:0;transform:translateX(calc((var(--kup_familytree_item_width) + var(--kup_familytree_item_h_padding) * 2) / 2)) translateY(calc(0px - (var(--kup_familytree_staffchildren) * var(--kup_familytree_item_height) + var(--kup_familytree_staffchildren) * var(--kup_familytree_item_v_padding) * 2)))}.family-tree__node__staff__item{padding:var(--kup_familytree_item_v_padding);text-align:left}.family-tree__node__staff__item:before{border-top:2px solid var(--kup_familytree_lines_color);content:"";position:absolute;transform:translateX(calc(100% + 2px)) translateY(calc(var(--kup_familytree_item_height) / 2));width:var(--kup_familytree_item_h_padding)}.family-tree__node td{vertical-align:top;padding:0}.family-tree__line--left{border-left:2px solid var(--kup_familytree_lines_color)}.family-tree__line--placeholder{height:calc(var(--kup_familytree_item_height) / 2)}.family-tree__line--staff{height:calc(var(--kup_familytree_staffchildren) * var(--kup_familytree_item_height) + var(--kup_familytree_staffchildren) * var(--kup_familytree_item_v_padding) * 2)}.family-tree__line--right{border-right:2px solid var(--kup_familytree_lines_color)}.family-tree__line--top{border-top:2px solid var(--kup_familytree_lines_color)}.family-tree__line--vertical{background-color:var(--kup_familytree_lines_color);margin-left:auto;margin-right:auto;width:2px}.family-tree__item{display:flex}.family-tree__item__wrapper{margin:auto}.family-tree__item__wrapper kup-box{margin:0 auto;overflow:hidden;padding:0 18px;width:var(--kup_familytree_item_width);z-index:1}.family-tree__item__wrapper .f-button{--kup-button-primary-color:var(--kup-text-color);--kup-button-primary-color-rgb:var(--kup-text-color-rgb);--kup-button-primary-color-h:var(--kup-text-color-h);--kup-button-primary-color-s:var(--kup-text-color-s);--kup-button-primary-color-l:var(--kup-text-color-l);margin:0 auto;width:max-content}.family-tree__item__wrapper .f-button button{height:32px;width:32px}.family-tree__item__layout{background-color:var(--kup_familytree_item_background_color);border:1px solid var(--kup_familytree_lines_color);border-radius:8px;box-sizing:border-box;display:flex;height:var(--kup_familytree_item_height);margin:0 18px;width:var(--kup_familytree_item_width)}.family-tree__item__layout--1{justify-content:center;color:var(--kup_familytree_item_color)}.family-tree__item__layout--1>.family-tree__item__layout__text__title{margin-top:auto;margin-bottom:auto}.family-tree__item__layout--2{background-color:var(--kup_familytree_item_background_color);justify-content:flex-start}.family-tree__item__layout__color{background-color:var(--kup-secondary-color);border-bottom-left-radius:8px;border-top-left-radius:8px;height:100%;width:10px}.family-tree__item__layout__image{display:flex;margin:auto 10px}.family-tree__item__layout__image img{border-radius:50px;object-fit:cover}.family-tree__item__layout__text{display:flex;flex-direction:column;justify-content:center}.family-tree__item__layout__text__title{font-size:18px;margin-bottom:5px}.family-tree__item__layout__text__subtitle{font-size:14px}.family-tree__item__layout__text__title,.family-tree__item__layout__text__subtitle{max-width:calc(var(--kup_familytree_item_width) - 30%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}';export{B as kup_family_tree}
@@ -1 +0,0 @@
1
- import{r as t,c as s,f as i,h as o,H as a,d as n}from"./p-cd9a4274.js";import{k as e,g as r,s as c}from"./p-7e1d9192.js";import{c as p}from"./p-635bb4b3.js";import{F as l}from"./p-e50650d0.js";import"./p-c23731ca.js";import"./p-c634eb82.js";import"./p-9e68a4c0.js";const h="snackbar";var u;!function(t){t.actionButton="Set of FButton props to set the action button.",t.closeButton="When true, the hide button will be displayed.",t.customStyle="Custom style of the component.",t.text="Sets the textual content of the snackbar.",t.timeout="Defaults at null, when set the snackbar will automatically disappear after the specified amount of milliseconds."}(u||(u={}));const b=class{constructor(i){t(this,i),this.kupActionClick=s(this,"kup-snackbar-actionclick",6),this.kupTimeoutComplete=s(this,"kup-snackbar-timeoutcomplete",6),this.kupManager=e(),this.visible=!1,this.actionButton=null,this.closeButton=!0,this.customStyle="",this.text="",this.timeout=null}onKupActionClick(){this.hide(),this.kupActionClick.emit({comp:this,id:this.rootElement.id})}onKupTimeoutComplete(){this.kupTimeoutComplete.emit({comp:this,id:this.rootElement.id})}async getProps(t){return r(this,u,t)}async hide(){this.visible=!1}async refresh(){i(this)}async setProps(t){c(this,u,t)}async show(){this.visible=!0}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.timeout&&this.visible&&setTimeout((()=>{this.hide(),this.onKupTimeoutComplete()}),this.timeout),this.kupManager.debug.logRender(this,!0)}render(){return o(a,{"kup-visible":this.visible},o("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),o("div",{id:p},o("div",{class:h},o("div",{class:`${h}__text`},this.text),this.actionButton||this.closeButton?o("div",{class:`${h}__buttons`},this.actionButton?o("div",{class:`${h}__action`},o(l,Object.assign({},this.actionButton,{onClick:()=>this.onKupActionClick()}))):null,this.closeButton?o("div",{class:`${h}__close`},o(l,{icon:"close",onClick:()=>this.hide()})):null):null)))}disconnectedCallback(){this.kupManager.theme.unregister(this)}get rootElement(){return n(this)}};b.style=":host{animation:snackbar-show 125ms;bottom:0;box-sizing:border-box;display:block;left:0;outline:none;pointer-events:none;position:fixed;transition:opacity 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms, transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms, -webkit-transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms;width:100%;z-index:calc(var(--kup-navbar-zindex) + 1)}:host(:not([kup-visible])){display:none}#kup-component{box-sizing:border-box;display:flex;justify-content:center;height:100%;padding:8px;width:100%}.snackbar{align-items:center;background:var(--kup-navbar-background-color);border-radius:5px;box-shadow:var(--kup-box-shadow);color:var(--kup-navbar-color);display:flex;justify-content:space-between;max-width:672px;min-height:48px;min-width:344px}.snackbar__text{padding:14px 16px;pointer-events:all;word-break:break-word}.snackbar__buttons{--kup-button-primary-color:var(--kup-navbar-color);--kup-button-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-button-primary-color-h:var(--kup-navbar-color-h);--kup-button-primary-color-s:var(--kup-navbar-color-s);--kup-button-primary-color-l:var(--kup-navbar-color-l);align-items:center;display:flex;justify-content:flex-end;margin-right:8px;pointer-events:all;width:max-content}.snackbar__close{--kup-button-font-size:11px;margin-left:8px;pointer-events:all}@keyframes snackbar-show{from{transform:scale(0.5);opacity:0}to{transform:scale(1);opacity:1}}:host(.kup-top){bottom:unset;top:var(--kup-navbar-height, 0)}";export{b as kup_snackbar}
@@ -1 +0,0 @@
1
- import{r as i,h as t,d as h}from"./p-cd9a4274.js";import{k as o}from"./p-7e1d9192.js";import"./p-c23731ca.js";const e=class{constructor(t){i(this,t),this.kupManager=o(),this.config=void 0,this.qlik=void 0,this.appid="",this.app=!1,this.grid=[],this.debug=!1,this.fluid=!1,this.bordered=!1,this.defobjsize="400px",this.divlist=[]}getObjects(i){let t;return new Promise((h=>{i.rows.forEach((i=>{i.columns.forEach((i=>{t=!1,i.noSelections&&(t=i.noSelections),this.app.getObject(i.obj,i.obj,{noInteraction:!1,noSelections:t})}))})),h(!0)}))}doSelection(i){return new Promise((t=>{i.selections&&i.selections.forEach((i=>{this.app.field(i.field).selectValues(i.values,!1,!0)})),t(!0)}))}setRender(i){return new Promise((h=>{this.divlist=[],i.rows.forEach((i=>{let h=[];i.columns.forEach((i=>{let o="qvobject ";this.bordered&&(o+="bordered "),o=o+"width-"+i.colDim+" size-"+i.size,h.push(t("div",""!=i.obj?{id:i.obj,class:o}:{class:o}))})),this.divlist.push(t("div",{class:"kup-qlik-row"},h))})),h(!0)}))}componentWillLoad(){this.kupManager.debug.logLoad(this,!1)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1),this.setRender(this.grid)}render(){let i=null,h=null;return i=this.fluid?{"kup-qlik-container-fluid":!0}:{"kup-qlik-container":!0},h={"--lyo_obj-height":this.defobjsize},t("div",{class:i,style:h},this.divlist)}componentDidRender(){this.debug&&console.log("Grid",this.grid),this.qlik&&(""==this.appid||this.app?this.debug&&console.log("App already open:",this.app):this.app=this.qlik.openApp(this.appid,this.config),this.app&&this.getObjects(this.grid).then((()=>{this.doSelection(this.grid)}))),this.kupManager.debug.logRender(this,!0)}get rootElement(){return h(this)}};e.style=".kup-qlik-container-fluid{width:100%}.kup-qlik-container{width:100%}@media (min-width: 576px){.kup-qlik-container{width:576px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 768px){.kup-qlik-container{width:768px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 992px){.kup-qlik-container{width:992px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 1200px){.kup-qlik-container{width:1200px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}.kup-qlik-row{display:flex;display:ms-flexbox;flex-wrap:wrap;-ms-flex-wrap:wrap;margin-bottom:5px}.kup-qlik-row .size-M{height:var(--lyo_obj-height)}.kup-qlik-row .size-S{height:calc(var(--lyo_obj-height) / 2)}.kup-qlik-row .size-XS{height:calc(var(--lyo_obj-height) / 3)}.kup-qlik-row .size-L{height:calc(var(--lyo_obj-height) * 2)}.kup-qlik-row .size-XL{height:calc(var(--lyo_obj-height) * 3)}.kup-qlik-row .bordered{border:1px solid var(--kup-border-color, #969696)}.kup-qlik-row .width-1{width:8.3333%}.kup-qlik-row .width-2{width:16.6666%}.kup-qlik-row .width-3{width:25%}.kup-qlik-row .width-4{width:33.3333%}.kup-qlik-row .width-5{width:41.6666%}.kup-qlik-row .width-6{width:50%}.kup-qlik-row .width-7{width:58.3333%}.kup-qlik-row .width-8{width:66.6666%}.kup-qlik-row .width-9{width:75%}.kup-qlik-row .width-10{width:83.3333%}.kup-qlik-row .width-11{width:91.6666%}.kup-qlik-row .width-12{width:100%}";export{e as kup_qlik}
@@ -1 +0,0 @@
1
- import{r as o,c as r,f as c,h as i,H as a,d as n}from"./p-cd9a4274.js";import{k as t,g as e,s as d,c as p,a as s}from"./p-7e1d9192.js";import{F as l}from"./p-9e68a4c0.js";import{c as u}from"./p-635bb4b3.js";import{M as _}from"./p-d4a879fc.js";import"./p-c23731ca.js";var k;!function(o){o.customStyle="Custom style of the component. For more information: https://ketchup.smeup.com/ketchup-showcase/#/customization",o.data="Data of the accordion.",o.ripple="When enabled displays Material's ripple effect on item headers."}(k||(k={}));const h=class{constructor(c){o(this,c),this.kupAccordionItemSelected=r(this,"kup-accordion-itemselected",6),this.kupManager=t(),this.slotsNames=[],this.selectedItems=[],this.customStyle="",this.data=null,this.ripple=!0}applyRipple(){const o=this.rootElement.shadowRoot;if(o&&this.ripple){const r=o.querySelectorAll(".mdc-ripple-surface:not(.mdc-ripple-upgraded)");if(r)for(let o=0;o<r.length;o++)_.attachTo(r[o])}}async collapseAll(){const o=[];for(let r=0;r<this.data.columns.length;r++){const c=this.data.columns[r].name;!this.isItemExpandible(c)&&this.isItemSelected(c)&&o.push(c)}this.selectedItems=o}async expandAll(){const o=[];for(let r=0;r<this.data.columns.length;r++){const c=this.data.columns[r].name;this.isItemExpandible(c)&&o.push(c)}this.selectedItems=o}async getProps(o){return e(this,k,o)}async refresh(){c(this)}async setProps(o){d(this,k,o)}async toggleItem(o){const r=this.isItemExpandible(o),c=[...this.selectedItems];c.includes(o)?c.splice(c.indexOf(o),1):c.push(o),this.selectedItems=c,r||this.kupAccordionItemSelected.emit({comp:this,id:this.rootElement.id,itemName:o})}isItemExpandible(o){return this.slotsNames.includes(o)}isItemSelected(o){return this.selectedItems.includes(o)}renderItems(){const o=[],r=Array.prototype.slice.call(this.rootElement.children,0);this.slotsNames=[];for(let o=0;o<r.length;o++)this.slotsNames.push(r[o].slot);for(let r=0;r<this.data.columns.length;r++){const c=this.data.columns[r],a=c.name,n=this.isItemSelected(a),t=this.isItemExpandible(a),e={"accordion-item__content":!0,"accordion-item__content--selected":!!n};o.push(i("div",{class:"accordion-item"},i("div",{title:c.title,class:{"accordion-item__header":!0,"accordion-item__header--selected":!(t||!n),"accordion-item__header--expanded":!(!t||!n),"mdc-ripple-surface":!!this.ripple},onClick:()=>this.toggleItem(a)},c.icon?i(l,{color:`var(${p.ICON})`,resource:c.icon,sizeX:"1.5em",sizeY:"1.5em",wrapperClass:"accordion-item__icon"}):null,i("span",{class:"accordion-item__text"},c.title),t?i("span",{class:`accordion-item__dropdown kup-icon ${s.DROPDOWN.replace("--","")}`}):null),i("div",{class:e},i("slot",{name:c.name}))))}return o}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this)}componentDidLoad(){this.applyRipple(),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){const o=this.rootElement.shadowRoot;if(o){const r=o.querySelectorAll(".mdc-ripple-surface");if(r)for(let o=0;o<r.length;o++)_.attachTo(r[o])}this.kupManager.debug.logRender(this,!0)}render(){const o=this.data&&this.data.columns?this.renderItems():null;return i(a,null,i("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),i("div",{id:u},i("div",{class:"accordion"},o)))}disconnectedCallback(){this.kupManager.theme.unregister(this)}get rootElement(){return n(this)}static get watchers(){return{ripple:["applyRipple"]}}};h.style=":host{--kup_accordion_background_color:var(\n --kup-accordion-background-color,\n var(--kup-background-color)\n );--kup_accordion_border:var(\n --kup-accordion-border,\n 1px solid var(--kup-border-color)\n );--kup_accordion_border_radius:var(--kup-accordion-border-radius, 4px);--kup-accordion_dropdown_icon_color:var(\n --kup-accordion-dropdown-icon-color,\n var(--kup-icon-color)\n );--kup_accordion_font_family:var(\n --kup-accordion-font-family,\n var(--kup-font-family)\n );--kup_accordion_font_size:var(\n --kup-accordion-font-size,\n var(--kup-font-size)\n );--kup_accordion_hover_background_color:var(\n --kup-accordion-hover-background-color,\n var(--kup-hover-background-color)\n );--kup_accordion_hover_color:var(\n --kup-accordion-hover-color,\n var(--kup-hover-color)\n );--kup_accordion_padding:var(--kup-accordion-padding, 1em 1.5em);--kup_accordion_primary_color:var(\n --kup-accordion-primary-color,\n var(--kup-primary-color)\n );--kup_accordion_primary_color_rgb:var(\n --kup-accordion-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_accordion_text_color:var(\n --kup-accordion-text-color,\n var(--kup-text-color)\n );--kup_accordion_text_on_primary_color:var(\n --kup-accordion-text-on-primary-color,\n var(--kup-text-on-primary-color)\n );--kup_accordion_transition:var(--kup-accordion-transition, 80ms);display:block;font-family:var(--kup_accordion_font_family);font-size:var(--kup_accordion_font_size)}.accordion{background-color:var(--kup_accordion_background_color);border-bottom:var(--kup_accordion_border);border-radius:var(--kup_accordion_border_radius);border-top:var(--kup_accordion_border);display:flex;flex-wrap:wrap;flex-direction:column;width:100%}.accordion-item{border-left:var(--kup_accordion_border);border-right:var(--kup_accordion_border);box-sizing:border-box;width:100%}.accordion-item--visible{display:block}.accordion-item:not(:first-of-type){border-top:var(--kup_accordion_border)}.accordion-item__header{align-items:center;border:none;box-sizing:border-box;color:var(--kup_accordion_text_color);cursor:pointer;display:flex;line-height:1.75em;outline:none;padding:var(--kup_accordion_padding);text-align:left;transition:background-color var(--kup_accordion_transition), color var(--kup_accordion_transition);width:100%}.accordion-item__header:hover:not(.accordion-item__header--selected){color:var(--kup_accordion_hover_color);background-color:var(--kup_accordion_hover_background_color)}.accordion-item__header--expanded{color:var(--kup_accordion_hover_color);background-color:var(--kup_accordion_hover_background_color)}.accordion-item__header--expanded .accordion-item__dropdown{transform:rotate(-180deg)}.accordion-item__header--selected{background-color:rgba(var(--kup_accordion_primary_color_rgb), 0.175)}.accordion-item__text{margin-right:0.5em;overflow:hidden;text-overflow:ellipsis;white-space:pre}.accordion-item__text--highlighted{color:var(--kup_accordion_text_on_primary_color);background-color:var(--kup_accordion_primary_color)}.accordion-item__icon{margin-left:0;margin-right:0.5em}.accordion-item__dropdown{background-color:var(--kup-accordion_dropdown_icon_color);height:1.5em;margin-left:auto;margin-right:0;min-width:1.5em;width:1.5em;transition:transform var(--kup_accordion_transition)}.accordion-item__content{animation:fade-in 0.25s ease-out;display:none}.accordion-item__content--selected{display:block}.mdc-ripple-surface{--mdc-ripple-fg-opacity:0.24}.mdc-ripple-surface:before,.mdc-ripple-surface:after{background-color:var(--kup_accordion_primary_color)}.kup-icon.kup-dropdown-icon{-webkit-mask:var(--kup-dropdown-icon);mask:var(--kup-dropdown-icon)}:host(.kup-borderless){--kup-accordion-border:none}:host(.kup-full-height){height:100%}:host(.kup-full-width){width:100%}:host(.kup-danger){--kup-accordion-primary-color:var(--kup-danger-color);--kup-accordion-primary-color-rgb:var(--kup-danger-color-rgb);--kup-accordion-text-on-primary-color:white}:host(.kup-info){--kup-accordion-primary-color:var(--kup-info-color);--kup-accordion-primary-color-rgb:var(--kup-info-color-rgb);--kup-accordion-text-on-primary-color:white}:host(.kup-secondary){--kup-accordion-primary-color:var(--kup-secondary-color);--kup-accordion-primary-color-rgb:var(--kup-secondary-color-rgb);--kup-accordion-text-on-primary-color:var(--kup-text-on-secondary-color)}:host(.kup-success){--kup-accordion-primary-color:var(--kup-success-color);--kup-accordion-primary-color-rgb:var(--kup-success-color-rgb);--kup-accordion-text-on-primary-color:white}:host(.kup-warning){--kup-accordion-primary-color:var(--kup-warning-color);--kup-accordion-primary-color-rgb:var(--kup-warning-color-rgb);--kup-accordion-text-on-primary-color:white}";export{h as kup_accordion}