@sme.up/ketchup 9.5.2 → 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 (278) hide show
  1. package/dist/cjs/{f-button-357a3dff.js → f-button-623dfcc3.js} +2 -2
  2. package/dist/cjs/{f-cell-1de0ea69.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-bd5882a0.js → f-chip-c8efad5b.js} +3 -3
  5. package/dist/cjs/{f-image-30531fd0.js → f-image-b61cc967.js} +2 -2
  6. package/dist/cjs/{f-paginator-utils-ad8a4635.js → f-paginator-utils-67dbc14c.js} +4 -4
  7. package/dist/cjs/{f-text-field-be758970.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 +141 -112
  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-cefb1999.js → kup-manager-227c4be2.js} +121 -79
  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/kup-card.js +6 -10
  54. package/dist/collection/components/kup-card-list/kup-card-list.js +6 -10
  55. package/dist/collection/components/kup-cell/kup-cell.js +13 -21
  56. package/dist/collection/components/kup-chart/kup-chart.js +7 -11
  57. package/dist/collection/components/kup-checkbox/kup-checkbox.js +7 -11
  58. package/dist/collection/components/kup-chip/kup-chip.js +8 -12
  59. package/dist/collection/components/kup-color-picker/kup-color-picker.js +11 -17
  60. package/dist/collection/components/kup-combobox/kup-combobox.js +10 -16
  61. package/dist/collection/components/kup-dashboard/kup-dashboard.js +7 -11
  62. package/dist/collection/components/kup-data-table/kup-data-table.js +72 -95
  63. package/dist/collection/components/kup-date-picker/kup-date-picker.js +7 -11
  64. package/dist/collection/components/kup-dialog/kup-dialog.css +2 -2
  65. package/dist/collection/components/kup-dialog/kup-dialog.js +9 -13
  66. package/dist/collection/components/kup-drawer/kup-drawer.js +8 -12
  67. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +10 -13
  68. package/dist/collection/components/kup-echart/kup-echart.js +7 -11
  69. package/dist/collection/components/kup-editor/kup-editor-declarations.js +15 -0
  70. package/dist/collection/components/kup-editor/kup-editor.js +774 -0
  71. package/dist/collection/components/kup-family-tree/kup-family-tree.js +14 -16
  72. package/dist/collection/components/kup-form/kup-form.js +14 -22
  73. package/dist/collection/components/kup-gauge/kup-gauge.js +6 -10
  74. package/dist/collection/components/kup-grid/kup-grid.js +6 -10
  75. package/dist/collection/components/kup-iframe/kup-iframe.js +6 -10
  76. package/dist/collection/components/kup-image/kup-image.js +6 -10
  77. package/dist/collection/components/kup-image-list/kup-image-list.js +8 -12
  78. package/dist/collection/components/kup-lazy/kup-lazy.js +17 -21
  79. package/dist/collection/components/kup-list/kup-list.js +10 -16
  80. package/dist/collection/components/kup-magic-box/kup-magic-box.js +9 -13
  81. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +7 -11
  82. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +7 -11
  83. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +8 -12
  84. package/dist/collection/components/kup-planner/kup-planner.js +13 -21
  85. package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
  86. package/dist/collection/components/kup-planner/utils/custom-task-list-table.js +1 -1
  87. package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2 -1
  88. package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +1 -1
  89. package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +2 -2
  90. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +0 -2
  91. package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +13 -14
  92. package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +1 -1
  93. package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +1 -1
  94. package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +6 -4
  95. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
  96. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
  97. package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +6 -1
  98. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
  99. package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
  100. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.css +0 -2
  101. package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
  102. package/dist/collection/components/kup-probe/kup-probe.js +1 -1
  103. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +7 -11
  104. package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
  105. package/dist/collection/components/kup-radio/kup-radio.js +6 -10
  106. package/dist/collection/components/kup-rating/kup-rating.js +7 -11
  107. package/dist/collection/components/kup-snackbar/kup-snackbar.js +7 -11
  108. package/dist/collection/components/kup-spinner/kup-spinner.js +40 -44
  109. package/dist/collection/components/kup-switch/kup-switch.js +7 -11
  110. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +6 -10
  111. package/dist/collection/components/kup-text-field/kup-text-field.js +10 -13
  112. package/dist/collection/components/kup-time-picker/kup-time-picker.js +10 -13
  113. package/dist/collection/components/kup-tree/kup-tree-faker.js +1 -1
  114. package/dist/collection/components/kup-tree/kup-tree.js +24 -33
  115. package/dist/collection/f-components/f-cell/f-cell.js +2 -1
  116. package/dist/collection/managers/kup-manager/kup-manager.js +5 -0
  117. package/dist/collection/managers/kup-openai/kup-openai.js +11 -8
  118. package/dist/components/custom-task-list-header.js +4 -3
  119. package/dist/components/custom-task-list-table.js +4 -3
  120. package/dist/components/kup-accordion.js +3 -2
  121. package/dist/components/kup-autocomplete2.js +135 -105
  122. package/dist/components/kup-box2.js +4 -3
  123. package/dist/components/kup-calendar.js +71 -6
  124. package/dist/components/kup-card-list.js +2 -1
  125. package/dist/components/kup-cell.js +3 -2
  126. package/dist/components/kup-dashboard.js +3 -2
  127. package/dist/components/kup-dates.js +81 -67
  128. package/dist/components/kup-drawer.js +4 -3
  129. package/dist/components/kup-echart2.js +1501 -1022
  130. package/dist/components/kup-editor.d.ts +11 -0
  131. package/dist/components/kup-editor.js +46434 -0
  132. package/dist/components/kup-family-tree.js +4 -3
  133. package/dist/components/kup-gantt-calendar2.js +3 -2
  134. package/dist/components/kup-gantt2.js +4 -2
  135. package/dist/components/kup-grid-renderer2.js +10 -7
  136. package/dist/components/kup-grid2.js +2 -1
  137. package/dist/components/kup-horizontal-scroll2.js +12 -12
  138. package/dist/components/kup-iframe.js +2 -1
  139. package/dist/components/kup-image-list.js +4 -3
  140. package/dist/components/kup-lazy.js +13 -12
  141. package/dist/components/kup-magic-box.js +5 -4
  142. package/dist/components/kup-manager.js +121 -79
  143. package/dist/components/kup-nav-bar.js +3 -2
  144. package/dist/components/kup-numeric-picker.js +3 -2
  145. package/dist/components/kup-photo-frame.js +4 -3
  146. package/dist/components/kup-planner-renderer-helper.js +2 -2
  147. package/dist/components/kup-planner-renderer2.js +3 -3
  148. package/dist/components/kup-planner.js +4 -3
  149. package/dist/components/kup-probe.js +1 -1
  150. package/dist/components/kup-qlik.js +3 -2
  151. package/dist/components/kup-snackbar.js +3 -2
  152. package/dist/components/kup-standard-tooltip2.js +3 -2
  153. package/dist/components/kup-switcher2.js +3 -2
  154. package/dist/components/kup-task-gantt2.js +6 -4
  155. package/dist/components/kup-task-list-header2.js +9 -8
  156. package/dist/components/kup-task-list-table2.js +3 -2
  157. package/dist/components/kup-task-list2.js +9 -3
  158. package/dist/components/kup-tooltip2.js +3 -2
  159. package/dist/components/kup-vertical-scroll2.js +5 -4
  160. package/dist/esm/{f-button-856a189a.js → f-button-121958b3.js} +2 -2
  161. package/dist/esm/{f-cell-6324d838.js → f-cell-959b83db.js} +9 -8
  162. package/dist/esm/{f-checkbox-43481de2.js → f-checkbox-fdf27ce9.js} +1 -1
  163. package/dist/esm/{f-chip-e15fba8a.js → f-chip-915ddf53.js} +3 -3
  164. package/dist/esm/{f-image-26b1bc14.js → f-image-98371dac.js} +2 -2
  165. package/dist/esm/{f-paginator-utils-e8f62783.js → f-paginator-utils-f5f4c666.js} +4 -4
  166. package/dist/esm/{f-text-field-bbe1f236.js → f-text-field-0df308e4.js} +2 -2
  167. package/dist/esm/{index-59f83f91.js → index-bbef9f2a.js} +79 -38
  168. package/dist/esm/index.js +3 -3
  169. package/dist/esm/ketchup.js +4 -4
  170. package/dist/esm/kup-accordion.entry.js +7 -6
  171. package/dist/esm/kup-autocomplete_27.entry.js +141 -112
  172. package/dist/esm/kup-box.entry.js +13 -12
  173. package/dist/esm/kup-calendar.entry.js +76 -11
  174. package/dist/esm/kup-card-list.entry.js +5 -4
  175. package/dist/esm/kup-cell.entry.js +12 -11
  176. package/dist/esm/kup-custom-task-list-header_4.entry.js +22 -16
  177. package/dist/esm/kup-dashboard.entry.js +10 -9
  178. package/dist/esm/{kup-dates-15f89ea2.js → kup-dates-172954df.js} +81 -67
  179. package/dist/esm/kup-drawer.entry.js +7 -6
  180. package/dist/esm/kup-echart.entry.js +1504 -1025
  181. package/dist/esm/kup-editor.entry.js +46256 -0
  182. package/dist/esm/kup-family-tree.entry.js +9 -8
  183. package/dist/esm/kup-gantt_10.entry.js +58 -42
  184. package/dist/esm/kup-grid.entry.js +5 -4
  185. package/dist/esm/kup-iframe.entry.js +5 -4
  186. package/dist/esm/kup-image-list.entry.js +13 -12
  187. package/dist/esm/kup-lazy.entry.js +16 -15
  188. package/dist/esm/kup-magic-box.entry.js +9 -8
  189. package/dist/esm/{kup-manager-8d1df189.js → kup-manager-33b051d6.js} +122 -80
  190. package/dist/esm/kup-nav-bar.entry.js +6 -5
  191. package/dist/esm/kup-numeric-picker.entry.js +7 -6
  192. package/dist/esm/kup-photo-frame.entry.js +7 -6
  193. package/dist/esm/{kup-planner-renderer-helper-2143d119.js → kup-planner-renderer-helper-5d97e075.js} +2 -2
  194. package/dist/esm/kup-planner-renderer.entry.js +4 -4
  195. package/dist/esm/kup-planner.entry.js +8 -7
  196. package/dist/esm/kup-probe.entry.js +4 -4
  197. package/dist/esm/kup-qlik.entry.js +6 -5
  198. package/dist/esm/kup-snackbar.entry.js +8 -7
  199. package/dist/esm/loader.js +3 -3
  200. package/dist/ketchup/index.esm.js +1 -1
  201. package/dist/ketchup/ketchup.esm.js +1 -1
  202. package/dist/ketchup/{p-0c124f99.entry.js → p-0a4595bd.entry.js} +1 -1
  203. package/dist/ketchup/{p-dc370227.entry.js → p-0dd0ae49.entry.js} +1 -1
  204. package/dist/ketchup/p-102866cd.js +1 -0
  205. package/dist/ketchup/p-1ad7fea0.js +2 -0
  206. package/dist/ketchup/{p-01a0b54c.js → p-2778f948.js} +1 -1
  207. package/dist/ketchup/p-2f4055ba.entry.js +1 -0
  208. package/dist/ketchup/p-3c9ac0fd.entry.js +1 -0
  209. package/dist/ketchup/p-3ce8ce77.entry.js +49 -0
  210. package/dist/ketchup/p-3ff9a661.entry.js +1 -0
  211. package/dist/ketchup/p-41d6466e.entry.js +1 -0
  212. package/dist/ketchup/p-4bf5e04f.entry.js +1 -0
  213. package/dist/ketchup/p-6001882e.entry.js +9 -0
  214. package/dist/ketchup/p-610a03d4.js +28 -0
  215. package/dist/ketchup/{p-d9a1e5a4.entry.js → p-662d2f9b.entry.js} +1 -1
  216. package/dist/ketchup/{p-d76cd8d6.js → p-68e9379a.js} +1 -1
  217. package/dist/ketchup/p-773bcc69.entry.js +1 -0
  218. package/dist/ketchup/{p-caeed3c3.js → p-7bda0684.js} +1 -1
  219. package/dist/ketchup/p-81996620.entry.js +1 -0
  220. package/dist/ketchup/p-9d8d5070.entry.js +1 -0
  221. package/dist/ketchup/{p-8042dcd5.entry.js → p-9e63f56b.entry.js} +1 -1
  222. package/dist/ketchup/p-9f31a129.entry.js +38 -0
  223. package/dist/ketchup/p-a9b06bb8.js +1 -0
  224. package/dist/ketchup/{p-d300948a.entry.js → p-b086727d.entry.js} +1 -1
  225. package/dist/ketchup/p-b5d3c24d.entry.js +1 -0
  226. package/dist/ketchup/p-babbffa4.entry.js +1 -0
  227. package/dist/ketchup/p-c1ade766.entry.js +1 -0
  228. package/dist/ketchup/{p-9ba8f169.js → p-ccc637ee.js} +1 -1
  229. package/dist/ketchup/p-d1268ac7.entry.js +1 -0
  230. package/dist/ketchup/p-d15d1083.entry.js +1 -0
  231. package/dist/ketchup/p-d5254caf.entry.js +1 -0
  232. package/dist/ketchup/{p-f51dbf68.js → p-dc18691c.js} +1 -1
  233. package/dist/ketchup/p-de07d17e.js +1 -0
  234. package/dist/ketchup/p-df450df9.entry.js +16 -0
  235. package/dist/ketchup/{p-269a9af8.js → p-e43d4ccc.js} +1 -1
  236. package/dist/ketchup/p-ea625b2a.entry.js +1 -0
  237. package/dist/ketchup/{p-81c1d557.entry.js → p-eb37ea7e.entry.js} +1 -1
  238. package/dist/ketchup/p-f0b882f4.entry.js +1 -0
  239. package/dist/types/components/kup-box/kup-box-declarations.d.ts +1 -0
  240. package/dist/types/components/kup-dashboard/kup-dashboard.d.ts +1 -0
  241. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +1 -0
  242. package/dist/types/components/kup-editor/kup-editor-declarations.d.ts +21 -0
  243. package/dist/types/components/kup-editor/kup-editor.d.ts +128 -0
  244. package/dist/types/components/kup-planner/utils/kup-gantt/kup-gantt.d.ts +1 -0
  245. package/dist/types/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.d.ts +1 -1
  246. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -0
  247. package/dist/types/components.d.ts +149 -2
  248. package/dist/types/managers/kup-data/kup-data.d.ts +1 -1
  249. package/dist/types/managers/kup-interact/kup-interact-declarations.d.ts +1 -0
  250. package/dist/types/managers/kup-interact/kup-interact.d.ts +1 -0
  251. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +3 -0
  252. package/dist/types/managers/kup-manager/kup-manager.d.ts +1 -0
  253. package/dist/types/managers/kup-toolbar/kup-toolbar-declarations.d.ts +1 -1
  254. package/package.json +4 -3
  255. package/dist/ketchup/p-07bed934.entry.js +0 -1
  256. package/dist/ketchup/p-0f6cb6e4.entry.js +0 -1
  257. package/dist/ketchup/p-177f8008.entry.js +0 -9
  258. package/dist/ketchup/p-2ab02da0.entry.js +0 -1
  259. package/dist/ketchup/p-3f028a71.entry.js +0 -1
  260. package/dist/ketchup/p-4a18db68.entry.js +0 -39
  261. package/dist/ketchup/p-4eb6d4e8.entry.js +0 -1
  262. package/dist/ketchup/p-63031c77.js +0 -1
  263. package/dist/ketchup/p-71acfd3c.entry.js +0 -1
  264. package/dist/ketchup/p-753f30d8.entry.js +0 -1
  265. package/dist/ketchup/p-8c3ad5ef.entry.js +0 -1
  266. package/dist/ketchup/p-937a322f.js +0 -29
  267. package/dist/ketchup/p-a2d3aec9.entry.js +0 -1
  268. package/dist/ketchup/p-b07ffd18.entry.js +0 -16
  269. package/dist/ketchup/p-b115e1ec.entry.js +0 -1
  270. package/dist/ketchup/p-b396d0f8.js +0 -1
  271. package/dist/ketchup/p-c12a9759.entry.js +0 -1
  272. package/dist/ketchup/p-c23731ca.js +0 -1
  273. package/dist/ketchup/p-cadeb53d.entry.js +0 -1
  274. package/dist/ketchup/p-cd9a4274.js +0 -2
  275. package/dist/ketchup/p-f1cae1e1.entry.js +0 -1
  276. package/dist/ketchup/p-f417e794.entry.js +0 -1
  277. package/dist/ketchup/p-f753c13f.entry.js +0 -1
  278. package/dist/ketchup/p-f7980061.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.2",
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 i,h as t,d as h}from"./p-cd9a4274.js";import{k as o}from"./p-937a322f.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 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-937a322f.js";import{c as p}from"./p-635bb4b3.js";import{F as l}from"./p-269a9af8.js";import"./p-c23731ca.js";import"./p-c634eb82.js";import"./p-b396d0f8.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}