@sme.up/ketchup 4.0.0 → 4.2.0-SNAPSHOT

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 (295) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/cell-utils-1d44a3f0.js +168 -0
  3. package/dist/cjs/f-button-a5788453.js +105 -0
  4. package/dist/cjs/f-cell-eba6f39e.js +727 -0
  5. package/dist/cjs/f-chip-ce69b7d2.js +141 -0
  6. package/dist/cjs/{f-image-5f4f29ca.js → f-image-e03842eb.js} +4 -5
  7. package/dist/cjs/{index-3c471303.js → index-0416afab.js} +73 -64
  8. package/dist/cjs/ketchup.cjs.js +3 -3
  9. package/dist/cjs/kup-accordion.cjs.entry.js +6 -8
  10. package/dist/cjs/{kup-autocomplete_29.cjs.entry.js → kup-autocomplete_28.cjs.entry.js} +1678 -2558
  11. package/dist/cjs/kup-calendar.cjs.entry.js +30 -30
  12. package/dist/cjs/kup-cell.cjs.entry.js +201 -0
  13. package/dist/cjs/kup-dash-list.cjs.entry.js +15 -7
  14. package/dist/cjs/kup-dash_2.cjs.entry.js +104 -62
  15. package/dist/cjs/kup-drawer.cjs.entry.js +4 -6
  16. package/dist/cjs/kup-field.cjs.entry.js +3 -5
  17. package/dist/cjs/kup-iframe.cjs.entry.js +3 -4
  18. package/dist/cjs/kup-lazy.cjs.entry.js +4 -6
  19. package/dist/cjs/kup-magic-box.cjs.entry.js +21 -31
  20. package/dist/cjs/kup-manager-75f1a2cd.js +5794 -0
  21. package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -6
  22. package/dist/cjs/kup-probe.cjs.entry.js +3 -4
  23. package/dist/cjs/kup-qlik.cjs.entry.js +2 -3
  24. package/dist/cjs/kup-snackbar.cjs.entry.js +152 -0
  25. package/dist/cjs/loader.cjs.js +3 -3
  26. package/dist/cjs/{utils-2af73538.js → utils-b3ec89fe.js} +18 -26
  27. package/dist/collection/assets/cell.js +51 -0
  28. package/dist/collection/assets/data-table.js +518 -45
  29. package/dist/collection/assets/index.js +8 -0
  30. package/dist/collection/assets/snackbar.js +32 -0
  31. package/dist/collection/collection-manifest.json +6 -6
  32. package/dist/collection/components/kup-accordion/kup-accordion.css +0 -213
  33. package/dist/collection/components/kup-accordion/kup-accordion.js +15 -16
  34. package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +2 -2
  35. package/dist/collection/components/kup-autocomplete/kup-autocomplete.css +5 -2381
  36. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +83 -111
  37. package/dist/collection/components/kup-badge/kup-badge.css +1 -35
  38. package/dist/collection/components/kup-badge/kup-badge.js +13 -14
  39. package/dist/collection/components/kup-box/kup-box.css +47 -780
  40. package/dist/collection/components/kup-box/kup-box.js +240 -366
  41. package/dist/collection/components/kup-button/kup-button.css +0 -333
  42. package/dist/collection/components/kup-button/kup-button.js +27 -28
  43. package/dist/collection/components/kup-button-list/kup-button-list.css +0 -332
  44. package/dist/collection/components/kup-button-list/kup-button-list.js +19 -20
  45. package/dist/collection/components/kup-calendar/kup-calendar.css +0 -517
  46. package/dist/collection/components/kup-calendar/kup-calendar.js +47 -45
  47. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +18 -0
  48. package/dist/collection/components/kup-card/kup-card-helper.js +19 -1
  49. package/dist/collection/components/kup-card/kup-card.css +147 -216
  50. package/dist/collection/components/kup-card/kup-card.js +80 -29
  51. package/dist/collection/components/kup-card/standard/kup-card-standard.js +75 -0
  52. package/dist/collection/components/kup-cell/kup-cell-declarations.js +11 -0
  53. package/dist/collection/components/kup-cell/kup-cell.css +20 -0
  54. package/dist/collection/components/kup-cell/kup-cell.js +413 -0
  55. package/dist/collection/components/kup-chart/kup-chart.js +41 -42
  56. package/dist/collection/components/kup-checkbox/kup-checkbox.css +0 -214
  57. package/dist/collection/components/kup-checkbox/kup-checkbox.js +19 -20
  58. package/dist/collection/components/kup-chip/kup-chip.css +0 -217
  59. package/dist/collection/components/kup-chip/kup-chip.js +15 -16
  60. package/dist/collection/components/kup-color-picker/kup-color-picker.css +7 -2380
  61. package/dist/collection/components/kup-color-picker/kup-color-picker.js +41 -41
  62. package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +1 -0
  63. package/dist/collection/components/kup-combobox/kup-combobox.css +5 -2381
  64. package/dist/collection/components/kup-combobox/kup-combobox.js +68 -28
  65. package/dist/collection/components/kup-dash-list/kup-dash-list.js +13 -4
  66. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +3 -1
  67. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +61 -102
  68. package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
  69. package/dist/collection/components/kup-data-table/kup-data-table.css +127 -3203
  70. package/dist/collection/components/kup-data-table/kup-data-table.js +568 -1085
  71. package/dist/collection/components/kup-date-picker/kup-date-picker.css +6 -8
  72. package/dist/collection/components/kup-date-picker/kup-date-picker.js +77 -106
  73. package/dist/collection/components/kup-drawer/kup-drawer.js +9 -10
  74. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +12 -340
  75. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +56 -45
  76. package/dist/collection/components/kup-field/kup-field.js +21 -22
  77. package/dist/collection/components/kup-gauge/kup-gauge.js +17 -18
  78. package/dist/collection/components/kup-grid/kup-grid.css +2 -1
  79. package/dist/collection/components/kup-grid/kup-grid.js +13 -14
  80. package/dist/collection/components/kup-iframe/kup-iframe.js +4 -4
  81. package/dist/collection/components/kup-image/assets/svg/ketchup.svg +74 -0
  82. package/dist/collection/components/kup-image/assets/svg/smeup.svg +59 -0
  83. package/dist/collection/components/kup-image/kup-image.css +0 -32
  84. package/dist/collection/components/kup-image/kup-image.js +25 -26
  85. package/dist/collection/components/kup-lazy/kup-lazy.js +17 -18
  86. package/dist/collection/components/kup-list/kup-list-declarations.js +1 -1
  87. package/dist/collection/components/kup-list/kup-list.css +4 -260
  88. package/dist/collection/components/kup-list/kup-list.js +39 -49
  89. package/dist/collection/components/kup-magic-box/kup-magic-box.css +13 -39
  90. package/dist/collection/components/kup-magic-box/kup-magic-box.js +29 -38
  91. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +11 -12
  92. package/dist/collection/components/kup-paginator/kup-paginator.css +0 -332
  93. package/dist/collection/components/kup-paginator/kup-paginator.js +44 -12
  94. package/dist/collection/components/kup-probe/kup-probe.js +9 -9
  95. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +21 -22
  96. package/dist/collection/components/kup-radio/kup-radio.js +17 -18
  97. package/dist/collection/components/kup-rating/kup-rating.js +15 -16
  98. package/dist/collection/components/kup-snackbar/kup-snackbar-declarations.js +13 -0
  99. package/dist/collection/components/kup-snackbar/kup-snackbar.css +75 -0
  100. package/dist/collection/components/kup-snackbar/kup-snackbar.js +390 -0
  101. package/dist/collection/components/kup-spinner/kup-spinner.js +23 -24
  102. package/dist/collection/components/kup-switch/kup-switch.css +0 -156
  103. package/dist/collection/components/kup-switch/kup-switch.js +17 -18
  104. package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +0 -199
  105. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +13 -14
  106. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +1 -0
  107. package/dist/collection/components/kup-text-field/kup-text-field.css +3 -2371
  108. package/dist/collection/components/kup-text-field/kup-text-field.js +77 -51
  109. package/dist/collection/components/kup-time-picker/kup-time-picker.css +6 -0
  110. package/dist/collection/components/kup-time-picker/kup-time-picker.js +55 -85
  111. package/dist/collection/components/kup-tooltip/kup-tooltip.js +24 -14
  112. package/dist/collection/components/kup-tree/kup-tree.css +27 -371
  113. package/dist/collection/components/kup-tree/kup-tree.js +158 -383
  114. package/dist/collection/f-components/f-button/f-button.js +4 -2
  115. package/dist/collection/f-components/f-cell/f-cell-declarations.js +143 -0
  116. package/dist/collection/f-components/f-cell/f-cell.js +467 -0
  117. package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -1
  118. package/dist/collection/f-components/f-chip/f-chip.js +2 -2
  119. package/dist/collection/f-components/f-image/f-image.js +2 -3
  120. package/dist/collection/f-components/f-switch/f-switch.js +1 -1
  121. package/dist/collection/f-components/f-text-field/f-text-field-mdc.js +1 -1
  122. package/dist/collection/f-components/f-text-field/f-text-field.js +25 -21
  123. package/dist/collection/utils/cell-utils.js +18 -222
  124. package/dist/collection/utils/filters/filters.js +31 -37
  125. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +15 -3
  126. package/dist/collection/utils/kup-dates/kup-dates.js +14 -2
  127. package/dist/collection/utils/kup-debug/kup-debug-browser-utils.js +3 -3
  128. package/dist/collection/utils/kup-debug/kup-debug.js +57 -29
  129. package/dist/collection/utils/kup-dynamic-position/kup-dynamic-position.js +5 -7
  130. package/dist/collection/utils/kup-interact/kup-interact-declarations.js +48 -0
  131. package/dist/collection/utils/kup-interact/kup-interact.js +379 -0
  132. package/dist/collection/utils/kup-language/kup-language-declarations.js +2 -0
  133. package/dist/collection/utils/kup-language/kup-language.js +1 -1
  134. package/dist/collection/utils/kup-manager/kup-manager.js +47 -10
  135. package/dist/collection/utils/kup-objects/kup-objects.js +9 -33
  136. package/dist/collection/utils/kup-scroll-on-hover/kup-scroll-on-hover.js +60 -62
  137. package/dist/collection/utils/kup-search/kup-search-declarations.js +1 -0
  138. package/dist/collection/utils/kup-search/kup-search.js +76 -0
  139. package/dist/collection/utils/kup-theme/kup-theme-declarations.js +1 -0
  140. package/dist/collection/utils/kup-theme/kup-theme.js +4 -3
  141. package/dist/collection/utils/kup-toolbar/kup-toolbar.js +16 -18
  142. package/dist/collection/utils/utils.js +15 -23
  143. package/dist/esm/cell-utils-9a2914fc.js +160 -0
  144. package/dist/esm/f-button-55a9ed88.js +103 -0
  145. package/dist/esm/f-cell-ac520cb2.js +723 -0
  146. package/dist/esm/f-chip-babf1740.js +139 -0
  147. package/dist/esm/{f-image-68b34fab.js → f-image-70ca9dfe.js} +4 -5
  148. package/dist/esm/{index-bf2824a6.js → index-e0e67c23.js} +74 -65
  149. package/dist/esm/ketchup.js +3 -3
  150. package/dist/esm/kup-accordion.entry.js +6 -8
  151. package/dist/esm/{kup-autocomplete_29.entry.js → kup-autocomplete_28.entry.js} +1451 -2330
  152. package/dist/esm/kup-calendar.entry.js +10 -10
  153. package/dist/esm/kup-cell.entry.js +197 -0
  154. package/dist/esm/kup-dash-list.entry.js +15 -7
  155. package/dist/esm/kup-dash_2.entry.js +104 -62
  156. package/dist/esm/kup-drawer.entry.js +4 -6
  157. package/dist/esm/kup-field.entry.js +3 -5
  158. package/dist/esm/kup-iframe.entry.js +3 -4
  159. package/dist/esm/kup-lazy.entry.js +4 -6
  160. package/dist/esm/kup-magic-box.entry.js +21 -31
  161. package/dist/esm/kup-manager-bba32828.js +5781 -0
  162. package/dist/esm/kup-nav-bar.entry.js +4 -6
  163. package/dist/esm/kup-probe.entry.js +3 -4
  164. package/dist/esm/kup-qlik.entry.js +2 -3
  165. package/dist/esm/kup-snackbar.entry.js +148 -0
  166. package/dist/esm/loader.js +3 -3
  167. package/dist/esm/{utils-13dd007a.js → utils-cfcbe33f.js} +16 -23
  168. package/dist/ketchup/assets/svg/ketchup.svg +74 -0
  169. package/dist/ketchup/assets/svg/smeup.svg +59 -0
  170. package/dist/ketchup/ketchup.esm.js +1 -1
  171. package/dist/ketchup/p-03ae1be9.entry.js +1 -0
  172. package/dist/ketchup/p-06c209a5.js +1 -0
  173. package/dist/ketchup/p-1ce9a037.js +1 -0
  174. package/dist/ketchup/p-1e2c3497.js +1 -0
  175. package/dist/ketchup/p-40df35de.entry.js +1 -0
  176. package/dist/ketchup/{p-c7ee1fbc.js → p-4748be4b.js} +2 -2
  177. package/dist/ketchup/p-52038ccb.js +1 -0
  178. package/dist/ketchup/p-5db41fae.entry.js +45 -0
  179. package/dist/ketchup/p-5faf7715.entry.js +1 -0
  180. package/dist/ketchup/p-62208488.entry.js +1 -0
  181. package/dist/ketchup/p-69a705ae.entry.js +1 -0
  182. package/dist/ketchup/p-6cc8264d.entry.js +1 -0
  183. package/dist/ketchup/p-74259992.entry.js +1 -0
  184. package/dist/ketchup/p-756aa8b1.entry.js +1 -0
  185. package/dist/ketchup/p-a7687c0e.entry.js +27 -0
  186. package/dist/ketchup/p-cb5f4994.js +1 -0
  187. package/dist/ketchup/p-d58dbf0e.js +1 -0
  188. package/dist/ketchup/p-d6ce1ac6.entry.js +1 -0
  189. package/dist/ketchup/p-daf03877.entry.js +1 -0
  190. package/dist/ketchup/p-e90934b5.entry.js +1 -0
  191. package/dist/ketchup/p-ea387b49.entry.js +1 -0
  192. package/dist/ketchup/p-f6bff949.js +1 -0
  193. package/dist/ketchup/p-ff7d590e.entry.js +1 -0
  194. package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +2 -6
  195. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +7 -13
  196. package/dist/types/components/kup-box/kup-box-declarations.d.ts +13 -4
  197. package/dist/types/components/kup-box/kup-box.d.ts +13 -6
  198. package/dist/types/components/kup-card/dialog/kup-card-dialog.d.ts +6 -0
  199. package/dist/types/components/kup-card/kup-card.d.ts +9 -0
  200. package/dist/types/components/kup-card/standard/kup-card-standard.d.ts +6 -0
  201. package/dist/types/components/kup-cell/kup-cell-declarations.d.ts +10 -0
  202. package/dist/types/components/kup-cell/kup-cell.d.ts +67 -0
  203. package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +1 -1
  204. package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +3 -2
  205. package/dist/types/components/kup-combobox/kup-combobox.d.ts +5 -0
  206. package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +4 -0
  207. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +21 -32
  208. package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +1 -15
  209. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
  210. package/dist/types/components/kup-data-table/kup-data-table.d.ts +32 -81
  211. package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +12 -14
  212. package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +1 -4
  213. package/dist/types/components/kup-list/kup-list-declarations.d.ts +1 -1
  214. package/dist/types/components/kup-list/kup-list.d.ts +2 -3
  215. package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +1 -0
  216. package/dist/types/components/kup-paginator/kup-paginator.d.ts +6 -0
  217. package/dist/types/components/kup-snackbar/kup-snackbar-declarations.d.ts +12 -0
  218. package/dist/types/components/kup-snackbar/kup-snackbar.d.ts +79 -0
  219. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +2 -1
  220. package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
  221. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +8 -11
  222. package/dist/types/components/kup-tooltip/kup-tooltip.d.ts +1 -0
  223. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +4 -4
  224. package/dist/types/components/kup-tree/kup-tree.d.ts +12 -23
  225. package/dist/types/components.d.ts +346 -174
  226. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +153 -0
  227. package/dist/types/f-components/f-cell/f-cell.d.ts +3 -0
  228. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
  229. package/dist/types/f-components/f-text-field/f-text-field-mdc.d.ts +1 -1
  230. package/dist/types/utils/cell-utils.d.ts +0 -19
  231. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +2 -0
  232. package/dist/types/utils/kup-dates/kup-dates.d.ts +9 -4
  233. package/dist/types/utils/kup-debug/kup-debug.d.ts +1 -1
  234. package/dist/types/utils/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -1
  235. package/dist/types/utils/kup-dynamic-position/kup-dynamic-position.d.ts +2 -2
  236. package/dist/types/utils/kup-interact/kup-interact-declarations.d.ts +127 -0
  237. package/dist/types/utils/kup-interact/kup-interact.d.ts +93 -0
  238. package/dist/types/utils/kup-language/kup-language-declarations.d.ts +2 -0
  239. package/dist/types/utils/kup-language/kup-language.d.ts +1 -1
  240. package/dist/types/utils/kup-manager/kup-manager-declarations.d.ts +28 -8
  241. package/dist/types/utils/kup-manager/kup-manager.d.ts +18 -5
  242. package/dist/types/utils/kup-objects/kup-objects.d.ts +1 -7
  243. package/dist/types/utils/kup-search/kup-search-declarations.d.ts +7 -0
  244. package/dist/types/utils/kup-search/kup-search.d.ts +20 -0
  245. package/dist/types/utils/kup-theme/kup-theme-declarations.d.ts +2 -0
  246. package/dist/types/utils/kup-theme/kup-theme.d.ts +2 -2
  247. package/dist/types/utils/utils.d.ts +0 -1
  248. package/package.json +4 -6
  249. package/dist/cjs/cell-utils-1f89a299.js +0 -1527
  250. package/dist/cjs/drag-and-drop-4787ff6f.js +0 -281
  251. package/dist/cjs/f-chip-2d58c8f7.js +0 -239
  252. package/dist/cjs/kup-grid.cjs.entry.js +0 -130
  253. package/dist/cjs/kup-manager-59ad8bdc.js +0 -4845
  254. package/dist/cjs/kup-objects-59ea949c.js +0 -717
  255. package/dist/collection/assets/images/drag-multiple.js +0 -1
  256. package/dist/collection/components/kup-editor/kup-editor.css +0 -5
  257. package/dist/collection/components/kup-editor/kup-editor.js +0 -59
  258. package/dist/collection/components/kup-layout/kup-layout.css +0 -53
  259. package/dist/collection/components/kup-layout/kup-layout.js +0 -156
  260. package/dist/collection/utils/drag-and-drop.js +0 -109
  261. package/dist/collection/utils/kup-dialog/kup-dialog-declarations.js +0 -36
  262. package/dist/collection/utils/kup-dialog/kup-dialog.js +0 -310
  263. package/dist/esm/cell-utils-cb612463.js +0 -1510
  264. package/dist/esm/drag-and-drop-321cb4ca.js +0 -265
  265. package/dist/esm/f-chip-125d5dd6.js +0 -236
  266. package/dist/esm/kup-grid.entry.js +0 -126
  267. package/dist/esm/kup-manager-e7d7b353.js +0 -4842
  268. package/dist/esm/kup-objects-d38d2fa2.js +0 -711
  269. package/dist/ketchup/p-00fe1e3e.js +0 -1
  270. package/dist/ketchup/p-0320e24e.entry.js +0 -1
  271. package/dist/ketchup/p-08c7a092.js +0 -1
  272. package/dist/ketchup/p-1165f4ea.entry.js +0 -1
  273. package/dist/ketchup/p-170d3cba.js +0 -1
  274. package/dist/ketchup/p-18cb3ba3.js +0 -1
  275. package/dist/ketchup/p-23541a97.entry.js +0 -45
  276. package/dist/ketchup/p-64ea7e37.entry.js +0 -1
  277. package/dist/ketchup/p-7896031c.entry.js +0 -1
  278. package/dist/ketchup/p-876da4c2.entry.js +0 -1
  279. package/dist/ketchup/p-8fb9d9b2.entry.js +0 -1
  280. package/dist/ketchup/p-940ab57a.entry.js +0 -1
  281. package/dist/ketchup/p-9c858a38.entry.js +0 -1
  282. package/dist/ketchup/p-a12a5690.entry.js +0 -1
  283. package/dist/ketchup/p-a5424073.js +0 -1
  284. package/dist/ketchup/p-b0724035.entry.js +0 -1
  285. package/dist/ketchup/p-b14e77f0.js +0 -1
  286. package/dist/ketchup/p-d24cfdea.entry.js +0 -1
  287. package/dist/ketchup/p-ee89966f.entry.js +0 -27
  288. package/dist/ketchup/p-fcd2fd8f.js +0 -1
  289. package/dist/ketchup/p-fce3b9d8.entry.js +0 -1
  290. package/dist/types/assets/images/drag-multiple.d.ts +0 -1
  291. package/dist/types/components/kup-editor/kup-editor.d.ts +0 -16
  292. package/dist/types/components/kup-layout/kup-layout.d.ts +0 -25
  293. package/dist/types/utils/drag-and-drop.d.ts +0 -53
  294. package/dist/types/utils/kup-dialog/kup-dialog-declarations.d.ts +0 -43
  295. package/dist/types/utils/kup-dialog/kup-dialog.d.ts +0 -50
@@ -1,9 +1,10 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
- import { Column, GroupLabelDisplayMode, GroupObject, LoadMoreMode, PaginatorPos, Row, RowAction, ShowGrid, SortObject, TableData, TotalsMap, SelectionMode, KupDatatableAutoRowSelectEventPayload, KupDatatableRowSelectedEventPayload, KupDatatableCellUpdateEventPayload, KupDatatableClickEventPayload, KupDatatableColumnMenuEventPayload, KupDatatableRowActionClickEventPayload, KupDatatableLoadMoreClickEventPayload, KupDataTableCellButtonClickEventPayload, KupDataTableCellTextFieldInputEventPayload } from './kup-data-table-declarations';
2
+ import { Column, GroupLabelDisplayMode, GroupObject, LoadMoreMode, PaginatorPos, Row, RowAction, ShowGrid, SortObject, TableData, TotalsMap, SelectionMode, KupDatatableAutoRowSelectEventPayload, KupDatatableRowSelectedEventPayload, KupDatatableClickEventPayload, KupDatatableColumnMenuEventPayload, KupDatatableRowActionClickEventPayload, KupDatatableLoadMoreClickEventPayload } from './kup-data-table-declarations';
3
3
  import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
4
4
  import { KupDataTableState } from './kup-data-table-state';
5
5
  import { KupStore } from '../kup-state/kup-store';
6
6
  import { GenericFilter, ValueDisplayedValue } from '../../utils/filters/filters-declarations';
7
+ import { FCellPadding } from '../../f-components/f-cell/f-cell-declarations';
7
8
  export declare class KupDataTable {
8
9
  stateId: string;
9
10
  store: KupStore;
@@ -11,6 +12,11 @@ export declare class KupDataTable {
11
12
  initWithPersistedState(): void;
12
13
  persistState(): void;
13
14
  rootElement: HTMLElement;
15
+ /**
16
+ * When true and when a row is missing some columns, the missing cells will be autogenerated.
17
+ * @default false
18
+ */
19
+ autoFillMissingCells: boolean;
14
20
  /**
15
21
  * Custom style of the component. For more information: https://ketchup.smeup.com/ketchup-showcase/#/customization
16
22
  */
@@ -22,7 +28,7 @@ export declare class KupDataTable {
22
28
  /**
23
29
  * The density of the rows, defaults at 'medium' and can be also set to 'large' or 'small'.
24
30
  */
25
- density: string;
31
+ density: FCellPadding;
26
32
  /**
27
33
  * Enables drag.
28
34
  */
@@ -141,6 +147,10 @@ export declare class KupDataTable {
141
147
  * Sets the possibility to remove the selected column.
142
148
  */
143
149
  removableColumns: boolean;
150
+ /**
151
+ * Gives the possibility to resize columns by dragging on their right edge.
152
+ */
153
+ resizableColumns: boolean;
144
154
  /**
145
155
  * Sets the actions of the rows.
146
156
  */
@@ -250,10 +260,6 @@ export declare class KupDataTable {
250
260
  * name of the column with the opened total menu
251
261
  */
252
262
  private openedTotalMenu;
253
- /**
254
- * name of the column with the opened group menu
255
- */
256
- private openedGroupMenu;
257
263
  private openedCustomSettings;
258
264
  private fontsize;
259
265
  /**
@@ -281,32 +287,6 @@ export declare class KupDataTable {
281
287
  private renderedRows;
282
288
  private loadMoreEventCounter;
283
289
  private loadMoreEventPreviousQuantity;
284
- /**
285
- * Internal not reactive state used to keep track if a column is being dragged.
286
- * @private
287
- */
288
- private columnsAreBeingDragged;
289
- /**
290
- * Attribute to set when a column is being dragged on the whole thead element
291
- * @const
292
- * @default 'columns-dragging'
293
- * @private
294
- */
295
- private dragFlagAttribute;
296
- /**
297
- * The string representing the drag over attribute
298
- * @const
299
- * @default 'drag-over'
300
- * @private
301
- */
302
- private dragOverAttribute;
303
- /**
304
- * The string representing the drag starter attribute to set onto the element
305
- * @const
306
- * @default 'drag-starter'
307
- * @private
308
- */
309
- private dragStarterAttribute;
310
290
  /**
311
291
  * Reference for the thead element
312
292
  * @private
@@ -333,15 +313,24 @@ export declare class KupDataTable {
333
313
  private navBarHeight;
334
314
  private theadIntersecting;
335
315
  private tableIntersecting;
336
- private iconPaths;
337
316
  private isSafariBrowser;
338
317
  private isRestoringState;
339
318
  private globalFilterTimeout;
340
319
  private totalMenuCoords;
341
320
  columnFilterTimeout: number;
342
321
  private clickTimeout;
322
+ private thRefs;
343
323
  private rowsRefs;
344
324
  private oldWidth;
325
+ private hold;
326
+ private interactableDrag;
327
+ private interactableDrop;
328
+ private interactableResize;
329
+ private interactableTouch;
330
+ private dropareaRef;
331
+ private removeDropareaRef;
332
+ private groupsDropareaRef;
333
+ private clickCb;
345
334
  /**
346
335
  * Used to prevent too many resizes callbacks at once.
347
336
  */
@@ -377,10 +366,6 @@ export declare class KupDataTable {
377
366
  * When a row is selected
378
367
  */
379
368
  kupRowSelected: EventEmitter<KupDatatableRowSelectedEventPayload>;
380
- /**
381
- * Emitted when a cell's data has been updated.
382
- */
383
- kupDataTableCellUpdate: EventEmitter<KupDatatableCellUpdateEventPayload>;
384
369
  /**
385
370
  * Generic click event on data table.
386
371
  */
@@ -402,8 +387,6 @@ export declare class KupDataTable {
402
387
  */
403
388
  kupRowActionClick: EventEmitter<KupDatatableRowActionClickEventPayload>;
404
389
  kupLoadMoreClick: EventEmitter<KupDatatableLoadMoreClickEventPayload>;
405
- kupCellButtonClick: EventEmitter<KupDataTableCellButtonClickEventPayload>;
406
- kupCellTextFieldInput: EventEmitter<KupDataTableCellTextFieldInputEventPayload>;
407
390
  /**
408
391
  * Closes any opened column menu.
409
392
  */
@@ -435,6 +418,12 @@ export declare class KupDataTable {
435
418
  * This method is invoked by KupManager whenever the component changes size.
436
419
  */
437
420
  resizeCallback(): Promise<void>;
421
+ /**
422
+ * Sets the focus on an editable table cell.
423
+ * @param {string} column - Name of the column.
424
+ * @param {string} rowId - Id of the row.
425
+ */
426
+ setFocus(column: string, rowId: string): Promise<void>;
438
427
  /**
439
428
  * Sets the props to the component.
440
429
  * @param {GenericObject} props - Object containing props that will be set to the component.
@@ -455,8 +444,10 @@ export declare class KupDataTable {
455
444
  private stickyHeaderPosition;
456
445
  private updateStickyHeaderSize;
457
446
  private setObserver;
458
- private didRenderObservers;
447
+ private didLoadInteractables;
448
+ private didRenderInteractables;
459
449
  private didLoadObservers;
450
+ private didRenderObservers;
460
451
  private didLoadEventHandling;
461
452
  private scrollStickyHeader;
462
453
  private checkScrollOnHover;
@@ -469,6 +460,7 @@ export declare class KupDataTable {
469
460
  componentWillRender(): void;
470
461
  componentDidRender(): void;
471
462
  componentDidLoad(): void;
463
+ private getEventPath;
472
464
  private resetSelectedRows;
473
465
  resetCurrentPage(): void;
474
466
  getColumns(): Array<Column>;
@@ -486,13 +478,10 @@ export declare class KupDataTable {
486
478
  private clickHandler;
487
479
  private contextMenuHandler;
488
480
  private dblClickHandler;
489
- private mouseMoveHandler;
490
- private mouseOutHandler;
491
481
  getVisibleColumns(): Array<Column>;
492
482
  getGroupByName(column: string): GroupObject;
493
483
  getColumnValues(column: Column): ValueDisplayedValue[];
494
484
  getRows(): Array<Row>;
495
- private addMultiSelectDragImageToEvent;
496
485
  private initRows;
497
486
  private filterRows;
498
487
  private isGrouping;
@@ -521,25 +510,13 @@ export declare class KupDataTable {
521
510
  private deselectColumn;
522
511
  private onDefaultRowActionClick;
523
512
  private onRowActionExpanderClick;
524
- private cellUpdate;
525
513
  private handleRowSelect;
526
514
  private onRowExpand;
527
515
  private onSelectAll;
528
516
  private openTotalMenu;
529
517
  private closeTotalMenu;
530
518
  private closeMenuAndTooltip;
531
- private isOpenedTotalMenu;
532
519
  private isOpenedTotalMenuForColumn;
533
- private isOpenedGroupMenu;
534
- private isOpenedGroupMenuForColumn;
535
- /**
536
- * Type guard needed to be sure that an object returned from composePath() is an HTMLElement with classes
537
- * @param node
538
- */
539
- private isHTMLElementFromEventTarget;
540
- private hasOverlayActions;
541
- private onHeaderCellContextMenuClose;
542
- private onJ4btnClicked;
543
520
  private groupRows;
544
521
  getInternalState(): Promise<{
545
522
  groups: GroupObject[];
@@ -581,24 +558,6 @@ export declare class KupDataTable {
581
558
  renderFooter(): any;
582
559
  private renderRow;
583
560
  private renderActions;
584
- /**
585
- * FActory function for cells.
586
- * @param cell - cell object
587
- * @param column - the cell's column name
588
- * @param previousRowCellValue - An optional value of the previous cell on the same column. If set and equal to the value of the current cell, makes the value of the current cell go blank.
589
- * @param cellData - Additional data for the current cell.
590
- * @param cellData.column - The column object to which the cell belongs.
591
- * @param cellData.row - The row object to which the cell belongs.
592
- */
593
- private renderCell;
594
- private getIconPath;
595
- private getCellType;
596
- private setLazyKupCell;
597
- private setCellSize;
598
- private setCellSizeKup;
599
- private setEditableCell;
600
- private setKupCell;
601
- private setCell;
602
561
  private renderLoadMoreButton;
603
562
  private onCustomSettingsClick;
604
563
  private openCustomSettings;
@@ -607,13 +566,7 @@ export declare class KupDataTable {
607
566
  renderCustomizePanel(): any;
608
567
  private columnRemoveArea;
609
568
  private columnGroupArea;
610
- private startDynamicPositioning;
611
- private stopDynamicPositioning;
612
- private getElementById;
613
- private getThElement;
614
569
  private hideShowColumnDropArea;
615
- private hideShowColumnRemoveDropArea;
616
- private hideShowColumnGroupDropArea;
617
570
  private handleColumnRemove;
618
571
  private handleColumnGroup;
619
572
  private transcodeItem;
@@ -623,10 +576,8 @@ export declare class KupDataTable {
623
576
  private FONTSIZE_ICONS;
624
577
  private getFontSizeCodeFromDecode;
625
578
  private renderFontSizePanel;
626
- private DENSITY_CODES;
627
579
  private DENSITY_DECODES;
628
580
  private DENSITY_ICONS;
629
- private getDensityDecodeFromCode;
630
581
  private getDensityCodeFromDecode;
631
582
  private renderDensityPanel;
632
583
  private GRID_CODES;
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
1
+ import { EventEmitter, VNode } from '../../stencil-public-runtime';
2
2
  import type { GenericObject, KupEventPayload } from '../../types/GenericTypes';
3
3
  import { KupDatePickerEventPayload } from './kup-date-picker-declarations';
4
4
  export declare class KupDatePicker {
@@ -41,6 +41,7 @@ export declare class KupDatePicker {
41
41
  private pickerContainerEl;
42
42
  private pickerEl;
43
43
  private pickerOpened;
44
+ private clickCb;
44
45
  kupBlur: EventEmitter<KupDatePickerEventPayload>;
45
46
  kupChange: EventEmitter<KupDatePickerEventPayload>;
46
47
  kupClick: EventEmitter<KupDatePickerEventPayload>;
@@ -50,16 +51,16 @@ export declare class KupDatePicker {
50
51
  kupItemClick: EventEmitter<KupDatePickerEventPayload>;
51
52
  kupTextFieldSubmit: EventEmitter<KupDatePickerEventPayload>;
52
53
  kupClearIconClick: EventEmitter<KupEventPayload>;
53
- onKupDatePickerItemClick(e: MouseEvent, value: string): void;
54
- onKupClearIconClick(e: MouseEvent): void;
55
- onKupDatePickerMonthYearItemClick(e: MouseEvent, value: string): void;
54
+ onKupDatePickerItemClick(value: string): void;
55
+ onKupClearIconClick(): void;
56
+ onKupDatePickerMonthYearItemClick(value: string): void;
56
57
  onKupBlur(): void;
57
- onKupChange(e: CustomEvent): void;
58
- onKupClick(e: UIEvent): void;
59
- onKupFocus(e: UIEvent): void;
60
- onKupInput(e: CustomEvent): void;
61
- onkupTextFieldSubmit(e: CustomEvent): void;
62
- onKupIconClick(e: UIEvent): void;
58
+ onKupChange(e: InputEvent): void;
59
+ onKupClick(): void;
60
+ onKupFocus(): void;
61
+ onKupInput(e: InputEvent): void;
62
+ onkupTextFieldSubmit(e: KeyboardEvent): void;
63
+ onKupIconClick(): void;
63
64
  listenKeyup(e: KeyboardEvent): void;
64
65
  watchFirstDayIndex(): void;
65
66
  /**
@@ -90,14 +91,12 @@ export declare class KupDatePicker {
90
91
  refreshPickerComponentValue(value: string): void;
91
92
  setPickerValueSelected(newValue?: string): void;
92
93
  getPickerValueSelected(): string;
93
- setTextFieldInitalValue(value: string): void;
94
94
  getValueForPickerComponent(): string;
95
95
  openPicker(): void;
96
96
  closePicker(): void;
97
97
  isPickerOpened(): boolean;
98
98
  getTextFieldId(): string;
99
- prepDateTextfield(): any;
100
- prepTextfield(initialValue: string): any;
99
+ prepTextfield(initialValue: string): VNode;
101
100
  getInitEndYear(curYear: number): {
102
101
  initYear: number;
103
102
  endYear: number;
@@ -112,7 +111,6 @@ export declare class KupDatePicker {
112
111
  private prevPage;
113
112
  private nextPage;
114
113
  getDateForOutput(): string;
115
- recalcPosition(): void;
116
114
  componentWillLoad(): void;
117
115
  componentDidLoad(): void;
118
116
  componentWillRender(): void;
@@ -81,10 +81,7 @@ export declare class KupDropdownButton {
81
81
  * List element (dropdown menu).
82
82
  */
83
83
  private listEl;
84
- /**
85
- * List anchor point.
86
- */
87
- private wrapperEl;
84
+ private clickCb;
88
85
  /**
89
86
  * Triggered when the primary button loses focus.
90
87
  */
@@ -12,7 +12,7 @@ export declare enum KupListProps {
12
12
  filter = "Keeps string for filtering elements when filter mode is active",
13
13
  hideText = "Hides rows' text, ideally to display a list of icons only.",
14
14
  isMenu = "Defines whether the list is a menu or not.",
15
- keyboardNavigation = "When true, enables items' navigation through keys. Defaults to false when the component's isMenu prop is set to true.",
15
+ keyboardNavigation = "When true, enables items' navigation through arrow keys.",
16
16
  menuVisible = "Sets the status of the menu, when false it's hidden otherwise it's visible.",
17
17
  roleType = "Defines the type of selection. Values accepted: listbox, radiogroup or group.",
18
18
  selectable = "Defines whether items are selectable or not.",
@@ -49,9 +49,8 @@ export declare class KupList {
49
49
  */
50
50
  isMenu: boolean;
51
51
  /**
52
- * When true, enables items' navigation through keys.
53
- * Defaults to false when the component's isMenu prop is set to true.
54
- * @default undefined
52
+ * When true, enables items' navigation through arrow keys.
53
+ * @default true
55
54
  */
56
55
  keyboardNavigation: boolean;
57
56
  /**
@@ -29,6 +29,7 @@ export declare class KupMagicBox {
29
29
  * Element which enables the drag on move feature.
30
30
  */
31
31
  private dragHandler;
32
+ private wrapperRef;
32
33
  /**
33
34
  * Used to retrieve component's props values.
34
35
  * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
@@ -2,6 +2,12 @@ import { EventEmitter } from '../../stencil-public-runtime';
2
2
  import { KupPaginatorPageChangedEventPayload, KupPaginatorRowsPerPageChangedEventPayload, PaginatorMode } from './kup-paginator-declarations';
3
3
  export declare class KupPaginator {
4
4
  rootElement: HTMLElement;
5
+ /**
6
+ * Custom style of the component.
7
+ * @default ""
8
+ * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
9
+ */
10
+ customStyle: string;
5
11
  currentPage: number;
6
12
  max: number;
7
13
  mode: PaginatorMode;
@@ -0,0 +1,12 @@
1
+ export declare const snackbarClass = "snackbar";
2
+ /**
3
+ * Props of the kup-snackbar component.
4
+ * Used to export every prop in an object.
5
+ */
6
+ export declare enum KupSnackbarProps {
7
+ actionButton = "Set of FButton props to set the action button.",
8
+ closeButton = "When true, the hide button will be displayed.",
9
+ customStyle = "Custom style of the component.",
10
+ text = "Sets the textual content of the snackbar.",
11
+ timeout = "Defaults at null, when set the snackbar will automatically disappear after the specified amount of milliseconds."
12
+ }
@@ -0,0 +1,79 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { KupEventPayload } from '../../types/GenericTypes';
3
+ import { GenericObject } from '../../types/GenericTypes';
4
+ import { FButtonProps } from '../../f-components/f-button/f-button-declarations';
5
+ export declare class KupSnackbar {
6
+ /**
7
+ * References the root HTML element of the component (<kup-snackbar>).
8
+ */
9
+ rootElement: HTMLElement;
10
+ /**
11
+ * The value of the component.
12
+ * @default false
13
+ */
14
+ visible: boolean;
15
+ /**
16
+ * Set of FButton props to set the action button.
17
+ * @default null
18
+ */
19
+ actionButton: FButtonProps;
20
+ /**
21
+ * When true, the hide button will be displayed.
22
+ * @default true
23
+ */
24
+ closeButton: boolean;
25
+ /**
26
+ * Custom style of the component.
27
+ * @default ""
28
+ * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
29
+ */
30
+ customStyle: string;
31
+ /**
32
+ * Sets the textual content of the snackbar.
33
+ * @default ''
34
+ */
35
+ text: string;
36
+ /**
37
+ * Defaults at null, when set the snackbar will automatically disappear after the specified amount of milliseconds.
38
+ * @default null
39
+ */
40
+ timeout: number;
41
+ /**
42
+ * Instance of the KupManager class.
43
+ */
44
+ private kupManager;
45
+ /**
46
+ * Triggered when action button is clicked.
47
+ */
48
+ kupActionClick: EventEmitter<KupEventPayload>;
49
+ onKupActionClick(): void;
50
+ /**
51
+ * Used to retrieve component's props values.
52
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
53
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
54
+ */
55
+ getProps(descriptions?: boolean): Promise<GenericObject>;
56
+ /**
57
+ * Hides the snackbar.
58
+ */
59
+ hide(): Promise<void>;
60
+ /**
61
+ * This method is used to trigger a new render of the component.
62
+ */
63
+ refresh(): Promise<void>;
64
+ /**
65
+ * Sets the props to the component.
66
+ * @param {GenericObject} props - Object containing props that will be set to the component.
67
+ */
68
+ setProps(props: GenericObject): Promise<void>;
69
+ /**
70
+ * Displays the snackbar.
71
+ */
72
+ show(): Promise<void>;
73
+ componentWillLoad(): void;
74
+ componentDidLoad(): void;
75
+ componentWillRender(): void;
76
+ componentDidRender(): void;
77
+ render(): any;
78
+ disconnectedCallback(): void;
79
+ }
@@ -1,4 +1,4 @@
1
- import { KupEventPayload } from "../../types/GenericTypes";
1
+ import { KupEventPayload } from '../../types/GenericTypes';
2
2
  /**
3
3
  * Props of the kup-text-field component.
4
4
  * Used to export every prop in an object.
@@ -9,6 +9,7 @@ export declare enum KupTextFieldProps {
9
9
  emitSubmitEventOnEnter = "When the text field is part of the autocomplete component and the list is opened, enter key selects the item and doesn't submit.",
10
10
  fullWidth = "When set to true, the component will be rendered at full width.",
11
11
  helper = "When set, its content will be shown as a help text below the field.",
12
+ helperEnabled = "When true, the helper will be displayed.",
12
13
  helperWhenFocused = "When set, the helper will be shown only when the field is focused.",
13
14
  icon = "When set, the text-field will show this icon.",
14
15
  initialValue = "Sets the initial value of the component",
@@ -37,6 +37,11 @@ export declare class KupTextField {
37
37
  * @default null
38
38
  */
39
39
  helper: string;
40
+ /**
41
+ * When true, the helper will be displayed.
42
+ * @default true
43
+ */
44
+ helperEnabled: boolean;
40
45
  /**
41
46
  * When set, the helper will be shown only when the field is focused.
42
47
  * @default false
@@ -60,6 +60,7 @@ export declare class KupTimePicker {
60
60
  private pickerContainerEl;
61
61
  private pickerEl;
62
62
  private pickerOpened;
63
+ private clickCb;
63
64
  kupBlur: EventEmitter<KupTimePickerEventPayload>;
64
65
  kupChange: EventEmitter<KupTimePickerEventPayload>;
65
66
  kupClick: EventEmitter<KupTimePickerEventPayload>;
@@ -70,15 +71,14 @@ export declare class KupTimePicker {
70
71
  kupTextFieldSubmit: EventEmitter<KupTimePickerEventPayload>;
71
72
  kupClearIconClick: EventEmitter<KupEventPayload>;
72
73
  onKupTimePickerItemClick(e: CustomEvent, value?: string): void;
73
- onKupClearIconClick(e: MouseEvent): void;
74
+ onKupClearIconClick(): void;
74
75
  onKupBlur(): void;
75
- onKupTextFieldBlur(e: any): void;
76
- onKupChange(e: CustomEvent): void;
77
- onKupClick(e: UIEvent): void;
78
- onKupFocus(e: UIEvent): void;
79
- onKupInput(e: CustomEvent): void;
80
- onKupTextFieldSubmit(e: CustomEvent): void;
81
- onKupIconClick(e: UIEvent): void;
76
+ onKupChange(e: InputEvent): void;
77
+ onKupClick(): void;
78
+ onKupFocus(): void;
79
+ onKupInput(e: InputEvent): void;
80
+ onKupTextFieldSubmit(e: KeyboardEvent): void;
81
+ onKupIconClick(): void;
82
82
  listenKeyup(e: KeyboardEvent): void;
83
83
  watchTimeMinutesStep(): void;
84
84
  /**
@@ -112,14 +112,12 @@ export declare class KupTimePicker {
112
112
  refreshPickerValue(eventDetailValue: string, eventToRaise: EventEmitter): void;
113
113
  setPickerValueSelected(newValue?: string): void;
114
114
  getPickerValueSelected(): string;
115
- setTextFieldInitalValue(value: string): void;
116
115
  getValueForPickerComponent(): string;
117
116
  openPicker(): void;
118
117
  closePicker(): void;
119
118
  isPickerOpened(): boolean;
120
119
  getTextFieldId(): string;
121
120
  getPickerElId(): string;
122
- prepTimeTextfield(): any;
123
121
  prepTextfield(initialValue: string): any;
124
122
  isRelatedTargetInThisComponent(e: any): boolean;
125
123
  private setTimeFromClock;
@@ -131,7 +129,6 @@ export declare class KupTimePicker {
131
129
  prepTimePicker(): any;
132
130
  private createTimeListData;
133
131
  getTimeForOutput(): string;
134
- recalcPosition(): void;
135
132
  componentWillLoad(): void;
136
133
  componentDidLoad(): void;
137
134
  componentWillRender(): void;
@@ -71,6 +71,7 @@ export declare class KupTooltip {
71
71
  private firstLoad;
72
72
  private _mouseIsOn;
73
73
  private waitingServerResponse;
74
+ private clickCb;
74
75
  /**
75
76
  * This method is used to trigger a new render of the component.
76
77
  */
@@ -78,14 +78,14 @@ export declare const treeMainColumnName = "TREE_COLUMN";
78
78
  /**
79
79
  * Contains all the data of an event.
80
80
  */
81
- export interface EventHandlerDetails {
81
+ export interface KupTreeEventHandlerDetails {
82
82
  area: string;
83
83
  cell: Cell;
84
84
  column: Column;
85
85
  filterRemove: HTMLSpanElement;
86
86
  row: Row;
87
- td: HTMLTableDataCellElement;
88
- th: HTMLTableHeaderCellElement;
87
+ td: HTMLElement;
88
+ th: HTMLElement;
89
89
  tr: HTMLTableRowElement;
90
90
  }
91
91
  export declare enum KupTreeExpansionMode {
@@ -110,7 +110,7 @@ export interface KupTreeNodeButtonClickEventPayload extends KupTreeNodeCollapseE
110
110
  auto: boolean;
111
111
  }
112
112
  export interface KupTreeContextMenuEventPayload extends KupEventPayload {
113
- details: EventHandlerDetails;
113
+ details: KupTreeEventHandlerDetails;
114
114
  }
115
115
  export interface KupTreeColumnMenuEventPayload extends KupEventPayload {
116
116
  card: HTMLKupCardElement;
@@ -1,10 +1,11 @@
1
1
  import { EventEmitter, JSX } from '../../stencil-public-runtime';
2
- import { Cell, Column, Row, TotalsMap } from './../kup-data-table/kup-data-table-declarations';
2
+ import { Column, Row, TotalsMap } from './../kup-data-table/kup-data-table-declarations';
3
3
  import { TreeNode, TreeNodePath, KupTreeNodeCollapseEventPayload, KupTreeNodeExpandEventPayload, KupTreeNodeSelectedEventPayload, KupTreeNodeButtonClickEventPayload, KupTreeContextMenuEventPayload, KupTreeColumnMenuEventPayload, KupTreeDynamicMassExpansionEventPayload, KupTreeExpansionMode } from './kup-tree-declarations';
4
4
  import { KupTreeState } from './kup-tree-state';
5
5
  import { KupStore } from '../kup-state/kup-store';
6
6
  import { GenericFilter, KupGlobalFilterMode, ValueDisplayedValue } from '../../utils/filters/filters-declarations';
7
7
  import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
8
+ import { FCellPadding } from '../../f-components/f-cell/f-cell-declarations';
8
9
  export declare class KupTree {
9
10
  /**
10
11
  * References the root HTML element of the component (<kup-tree>).
@@ -47,7 +48,7 @@ export declare class KupTree {
47
48
  /**
48
49
  * The density of the rows, defaults at 'medium' and can also be set to 'dense' or 'wide'.
49
50
  */
50
- density: string;
51
+ density: FCellPadding;
51
52
  /**
52
53
  * Function that gets invoked when a new set of nodes must be loaded as children of a node.
53
54
  *
@@ -60,6 +61,11 @@ export declare class KupTree {
60
61
  * @see useDynamicExpansion
61
62
  */
62
63
  dynamicExpansionCallback: (treeNodeToExpand: TreeNode, treeNodePath: TreeNodePath) => Promise<TreeNode[]> | undefined;
64
+ /**
65
+ * When set to true, editable cells will be rendered using input components.
66
+ * @default false
67
+ */
68
+ editableData: boolean;
63
69
  /**
64
70
  * Enables the extracolumns add buttons.
65
71
  */
@@ -178,7 +184,6 @@ export declare class KupTree {
178
184
  private treeWrapperRef;
179
185
  private selectedColumn;
180
186
  private clickTimeout;
181
- private iconPaths;
182
187
  private globalFilterTimeout;
183
188
  private footer;
184
189
  private sizedColumns;
@@ -191,6 +196,9 @@ export declare class KupTree {
191
196
  private visibleNodes;
192
197
  private contentRefs;
193
198
  private oldWidth;
199
+ private hold;
200
+ private interactableTouch;
201
+ private clickCb;
194
202
  /**
195
203
  * Used to prevent too many resizes callbacks at once.
196
204
  */
@@ -295,7 +303,6 @@ export declare class KupTree {
295
303
  private onTotalMenuOpen;
296
304
  private getEventDetails;
297
305
  private contextMenuHandler;
298
- private onJ4btnClicked;
299
306
  hdlTreeNodeClick(e: MouseEvent, treeNodeData: TreeNode, treeNodePath: string, auto: boolean): void;
300
307
  hdlTreeNodeExpanderClick(treeNodeData: TreeNode, treeNodePath: string, ctrlKey: boolean): void;
301
308
  private hasTotals;
@@ -316,30 +323,11 @@ export declare class KupTree {
316
323
  private calculateVisibleNodes;
317
324
  private refreshStructureState;
318
325
  private createIconElement;
319
- /**
320
- * Factory function for cells.
321
- * @param cell - cell object
322
- * @param previousRowCellValue - An optional value of the previous cell on the same column. If set and equal to the value of the current cell, makes the value of the current cell go blank.
323
- * @param cellData - Additional data for the current cell.
324
- * @param cellData.column - The column object to which the cell belongs.
325
- * @param cellData.treeNode - The treeNode object to which the cell belongs.
326
- * @param cellData.treeNodePath - The treeNodePath to which the cell belongs.
327
- */
328
- renderCell(cell: Cell, cellData: {
329
- column: Column;
330
- treeNode: TreeNode;
331
- treeNodePath: string;
332
- }, previousRowCellValue?: string): any;
333
326
  /**
334
327
  * Controls if current cell needs a tooltip and eventually adds it.
335
328
  * @todo When the option forceOneLine is active, there is a problem with the current implementation of the tooltip. See documentation in the mauer wiki for better understanding.
336
329
  */
337
330
  private getToolTipEventHandlers;
338
- private getIconPath;
339
- private getCellType;
340
- private setCellSize;
341
- private setCell;
342
- private setKupCell;
343
331
  private getCellStyle;
344
332
  renderTooltip(): any;
345
333
  /**
@@ -365,6 +353,7 @@ export declare class KupTree {
365
353
  private isOpenedTotalMenuForColumn;
366
354
  onTotalsChange(event: any, column: any): void;
367
355
  renderFooter(): any;
356
+ didLoadInteractables(): void;
368
357
  private totalMenuPosition;
369
358
  /**
370
359
  * Given a TreeNode, reads through its data to compose and return the TreeNodes of the root of this TreeNode