@sme.up/ketchup 4.3.0-SNAPSHOT → 5.1.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 (343) hide show
  1. package/README.md +107 -3
  2. package/dist/cjs/{cell-utils-dc0884a3.js → cell-utils-9b1d6563.js} +4 -4
  3. package/dist/cjs/{component-8fbc31a2.js → component-d1496215.js} +203 -174
  4. package/dist/cjs/{f-button-2ba74fb5.js → f-button-02a7cde4.js} +2 -2
  5. package/dist/cjs/{f-cell-fe60a08d.js → f-cell-4d1450a8.js} +38 -28
  6. package/dist/cjs/f-chip-a50b9f00.js +130 -0
  7. package/dist/cjs/{f-image-d3bd4e08.js → f-image-db55ac49.js} +3 -3
  8. package/dist/cjs/{index-0416afab.js → index-ab119fad.js} +23 -0
  9. package/dist/cjs/ketchup.cjs.js +3 -3
  10. package/dist/cjs/kup-accordion.cjs.entry.js +7 -7
  11. package/dist/cjs/{kup-autocomplete_28.cjs.entry.js → kup-autocomplete_27.cjs.entry.js} +4636 -4073
  12. package/dist/cjs/kup-calendar.cjs.entry.js +626 -359
  13. package/dist/cjs/kup-cell.cjs.entry.js +15 -13
  14. package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
  15. package/dist/cjs/kup-dash_2.cjs.entry.js +8 -7
  16. package/dist/cjs/kup-drawer.cjs.entry.js +3 -3
  17. package/dist/cjs/kup-echart.cjs.entry.js +93039 -0
  18. package/dist/cjs/kup-field.cjs.entry.js +2 -2
  19. package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
  20. package/dist/cjs/kup-lazy.cjs.entry.js +22 -5
  21. package/dist/cjs/kup-magic-box.cjs.entry.js +95 -42
  22. package/dist/cjs/{kup-manager-1a2688ca.js → kup-manager-5877b2ee.js} +3392 -753
  23. package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
  24. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  25. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  26. package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
  27. package/dist/cjs/loader.cjs.js +3 -3
  28. package/dist/cjs/{tslib.es6-4360c099.js → tslib.es6-0ee02c67.js} +13 -0
  29. package/dist/cjs/utils-1b5c8c70.js +482 -0
  30. package/dist/collection/assets/calendar.js +46 -1
  31. package/dist/collection/assets/card.js +15 -15
  32. package/dist/collection/assets/data-table.js +18 -6
  33. package/dist/collection/assets/index.js +8 -0
  34. package/dist/collection/assets/kupdata.js +937 -0
  35. package/dist/collection/collection-manifest.json +4 -4
  36. package/dist/collection/components/kup-accordion/kup-accordion.css +0 -1
  37. package/dist/collection/components/kup-accordion/kup-accordion.js +2 -2
  38. package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +2 -0
  39. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +148 -52
  40. package/dist/collection/components/kup-badge/kup-badge.js +2 -2
  41. package/dist/collection/components/kup-box/kup-box.js +31 -17
  42. package/dist/collection/components/kup-button/kup-button.js +2 -2
  43. package/dist/collection/components/kup-button-list/kup-button-list.js +26 -8
  44. package/dist/collection/components/kup-calendar/kup-calendar-declarations.js +14 -8
  45. package/dist/collection/components/kup-calendar/kup-calendar.css +2 -2
  46. package/dist/collection/components/kup-calendar/kup-calendar.js +185 -315
  47. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +38 -0
  48. package/dist/collection/components/kup-card/{builtin → built-in}/kup-card-calendar.js +1 -1
  49. package/dist/collection/components/kup-card/{builtin → built-in}/kup-card-clock.js +32 -32
  50. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +167 -0
  51. package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +1 -1
  52. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +2 -2
  53. package/dist/collection/components/kup-card/free/kup-card-free.js +11 -2
  54. package/dist/collection/components/kup-card/kup-card-declarations.js +14 -14
  55. package/dist/collection/components/kup-card/kup-card-helper.js +3 -3
  56. package/dist/collection/components/kup-card/kup-card.css +423 -137
  57. package/dist/collection/components/kup-card/kup-card.js +62 -11
  58. package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +1 -1
  59. package/dist/collection/components/kup-card/standard/kup-card-standard.js +18 -5
  60. package/dist/collection/components/kup-cell/kup-cell.js +15 -13
  61. package/dist/collection/components/kup-chart/kup-chart-builder.js +3 -4
  62. package/dist/collection/components/kup-chart/kup-chart.js +7 -7
  63. package/dist/collection/components/kup-checkbox/kup-checkbox.js +1 -1
  64. package/dist/collection/components/kup-chip/kup-chip.css +1 -0
  65. package/dist/collection/components/kup-chip/kup-chip.js +51 -92
  66. package/dist/collection/components/kup-color-picker/kup-color-picker.css +1 -265
  67. package/dist/collection/components/kup-color-picker/kup-color-picker.js +93 -48
  68. package/dist/collection/components/kup-combobox/kup-combobox.js +148 -115
  69. package/dist/collection/components/kup-dash/kup-dash.js +1 -1
  70. package/dist/collection/components/kup-dash-list/kup-dash-list.js +5 -5
  71. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +3 -1
  72. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +28 -56
  73. package/dist/collection/components/kup-data-table/kup-data-table.css +4 -0
  74. package/dist/collection/components/kup-data-table/kup-data-table.js +345 -158
  75. package/dist/collection/components/kup-date-picker/kup-date-picker.js +8 -5
  76. package/dist/collection/components/kup-drawer/kup-drawer.js +1 -1
  77. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +2 -2
  78. package/dist/collection/components/kup-echart/assets/maps/africa.json +6116 -0
  79. package/dist/collection/components/kup-echart/assets/maps/america.json +5416 -0
  80. package/dist/collection/components/kup-echart/assets/maps/asia.json +6053 -0
  81. package/dist/collection/components/kup-echart/assets/maps/europe.json +5051 -0
  82. package/dist/collection/components/kup-echart/assets/maps/italy.json +3562 -0
  83. package/dist/collection/components/kup-echart/assets/maps/oceania.json +1069 -0
  84. package/dist/collection/components/kup-echart/assets/maps/world.json +23685 -0
  85. package/dist/collection/components/kup-echart/kup-echart-declarations.js +45 -0
  86. package/dist/collection/components/kup-echart/kup-echart.css +13 -0
  87. package/dist/collection/components/kup-echart/kup-echart.js +1165 -0
  88. package/dist/collection/components/kup-field/kup-field.js +2 -2
  89. package/dist/collection/components/kup-gauge/kup-gauge.js +3 -3
  90. package/dist/collection/components/kup-grid/kup-grid.css +2 -2
  91. package/dist/collection/components/kup-grid/kup-grid.js +6 -5
  92. package/dist/collection/components/kup-iframe/kup-iframe.js +2 -2
  93. package/dist/collection/components/kup-image/assets/svg/science.svg +1 -0
  94. package/dist/collection/components/kup-image/kup-image.js +3 -3
  95. package/dist/collection/components/kup-lazy/kup-lazy.css +21 -11
  96. package/dist/collection/components/kup-lazy/kup-lazy.js +62 -3
  97. package/dist/collection/components/kup-list/kup-list-helper.js +7 -1
  98. package/dist/collection/components/kup-list/kup-list.css +3 -0
  99. package/dist/collection/components/kup-list/kup-list.js +219 -288
  100. package/dist/collection/components/kup-magic-box/kup-magic-box-declarations.js +11 -7
  101. package/dist/collection/components/kup-magic-box/kup-magic-box.js +90 -41
  102. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
  103. package/dist/collection/components/kup-probe/kup-probe.js +1 -1
  104. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
  105. package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
  106. package/dist/collection/components/kup-radio/kup-radio.js +1 -1
  107. package/dist/collection/components/kup-rating/kup-rating.js +1 -1
  108. package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
  109. package/dist/collection/components/kup-spinner/kup-spinner.js +1 -1
  110. package/dist/collection/components/kup-state/mock-store.js +1 -1
  111. package/dist/collection/components/kup-switch/kup-switch.js +1 -1
  112. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +3 -3
  113. package/dist/collection/components/kup-text-field/kup-text-field.css +2 -0
  114. package/dist/collection/components/kup-text-field/kup-text-field.js +2 -2
  115. package/dist/collection/components/kup-time-picker/kup-time-picker.js +8 -5
  116. package/dist/collection/components/kup-tooltip/kup-tooltip.js +3 -3
  117. package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -5
  118. package/dist/collection/components/kup-tree/kup-tree-faker.js +2 -3
  119. package/dist/collection/components/kup-tree/kup-tree.css +2 -0
  120. package/dist/collection/components/kup-tree/kup-tree.js +145 -70
  121. package/dist/collection/f-components/f-cell/f-cell-declarations.js +3 -1
  122. package/dist/collection/f-components/f-cell/f-cell.js +29 -19
  123. package/dist/collection/f-components/f-chip/f-chip.js +76 -87
  124. package/dist/collection/f-components/f-image/f-image.js +2 -2
  125. package/dist/collection/f-components/f-paginator/f-paginator-declarations.js +5 -0
  126. package/dist/collection/f-components/f-paginator/f-paginator-utils.js +28 -0
  127. package/dist/collection/f-components/f-paginator/f-paginator.js +91 -0
  128. package/dist/collection/f-components/f-text-field/f-text-field.js +4 -4
  129. package/dist/collection/managers/kup-data/kup-data-cell-helper.js +52 -0
  130. package/dist/collection/managers/kup-data/kup-data-column-helper.js +272 -0
  131. package/dist/collection/managers/kup-data/kup-data-declarations.js +9 -0
  132. package/dist/collection/managers/kup-data/kup-data-node-helper.js +72 -0
  133. package/dist/collection/managers/kup-data/kup-data-row-helper.js +28 -0
  134. package/dist/collection/managers/kup-data/kup-data.js +382 -0
  135. package/dist/collection/{utils → managers}/kup-dates/kup-dates-declarations.js +0 -0
  136. package/dist/collection/{utils → managers}/kup-dates/kup-dates.js +53 -19
  137. package/dist/collection/{utils → managers}/kup-debug/kup-debug-browser-utils.js +1 -1
  138. package/dist/collection/{utils → managers}/kup-debug/kup-debug-declarations.js +0 -0
  139. package/dist/collection/{utils → managers}/kup-debug/kup-debug.js +79 -124
  140. package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.js +0 -0
  141. package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position.js +10 -1
  142. package/dist/collection/{utils → managers}/kup-interact/kup-interact-declarations.js +1 -0
  143. package/dist/collection/{utils → managers}/kup-interact/kup-interact.js +22 -13
  144. package/dist/collection/{utils → managers}/kup-language/kup-language-declarations.js +10 -0
  145. package/dist/collection/{utils → managers}/kup-language/kup-language.js +5 -5
  146. package/dist/collection/{utils → managers}/kup-manager/kup-manager-declarations.js +0 -0
  147. package/dist/collection/{utils → managers}/kup-manager/kup-manager.js +45 -4
  148. package/dist/collection/managers/kup-math/kup-math-declarations.js +13 -0
  149. package/dist/collection/managers/kup-math/kup-math-helper.js +39 -0
  150. package/dist/collection/managers/kup-math/kup-math.js +151 -0
  151. package/dist/collection/{utils → managers}/kup-objects/kup-objects-declarations.js +0 -0
  152. package/dist/collection/{utils → managers}/kup-objects/kup-objects.js +15 -0
  153. package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +0 -0
  154. package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.js +0 -0
  155. package/dist/collection/{utils → managers}/kup-search/kup-search-declarations.js +0 -0
  156. package/dist/collection/{utils → managers}/kup-search/kup-search.js +0 -0
  157. package/dist/collection/{utils → managers}/kup-theme/kup-theme-declarations.js +99 -0
  158. package/dist/collection/{utils → managers}/kup-theme/kup-theme.js +117 -68
  159. package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar-declarations.js +0 -0
  160. package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar.js +0 -0
  161. package/dist/collection/types/GenericTypes.js +48 -1
  162. package/dist/collection/utils/cell-utils.js +3 -4
  163. package/dist/collection/utils/filters/filters-column-menu.js +7 -7
  164. package/dist/collection/utils/filters/filters-rows.js +2 -2
  165. package/dist/collection/utils/filters/filters-tree-items.js +12 -12
  166. package/dist/collection/utils/filters/filters.js +3 -2
  167. package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +1 -0
  168. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +100 -68
  169. package/dist/collection/utils/utils.js +4 -4
  170. package/dist/esm/{cell-utils-8f512ea9.js → cell-utils-571978d6.js} +4 -4
  171. package/dist/esm/{component-d2803feb.js → component-c4eb6153.js} +204 -170
  172. package/dist/esm/{f-button-30dbcaa9.js → f-button-b3011cc2.js} +2 -2
  173. package/dist/esm/{f-cell-95c186c6.js → f-cell-b88b2731.js} +38 -28
  174. package/dist/esm/f-chip-a52489ec.js +128 -0
  175. package/dist/esm/{f-image-3bc8b24f.js → f-image-5e5ed7e2.js} +3 -3
  176. package/dist/esm/{index-e0e67c23.js → index-78f3699d.js} +23 -0
  177. package/dist/esm/ketchup.js +3 -3
  178. package/dist/esm/kup-accordion.entry.js +7 -7
  179. package/dist/esm/{kup-autocomplete_28.entry.js → kup-autocomplete_27.entry.js} +4420 -3856
  180. package/dist/esm/kup-calendar.entry.js +626 -359
  181. package/dist/esm/kup-cell.entry.js +15 -13
  182. package/dist/esm/kup-dash-list.entry.js +4 -4
  183. package/dist/esm/kup-dash_2.entry.js +8 -7
  184. package/dist/esm/kup-drawer.entry.js +3 -3
  185. package/dist/esm/kup-echart.entry.js +93035 -0
  186. package/dist/esm/kup-field.entry.js +2 -2
  187. package/dist/esm/kup-iframe.entry.js +3 -3
  188. package/dist/esm/kup-lazy.entry.js +22 -5
  189. package/dist/esm/kup-magic-box.entry.js +95 -42
  190. package/dist/esm/{kup-manager-7fc234da.js → kup-manager-1f76a3ef.js} +3388 -753
  191. package/dist/esm/kup-nav-bar.entry.js +3 -3
  192. package/dist/esm/kup-probe.entry.js +2 -2
  193. package/dist/esm/kup-qlik.entry.js +2 -2
  194. package/dist/esm/kup-snackbar.entry.js +5 -5
  195. package/dist/esm/loader.js +3 -3
  196. package/dist/esm/polyfills/css-shim.js +1 -1
  197. package/dist/esm/{tslib.es6-e6137777.js → tslib.es6-8f2d44b6.js} +13 -1
  198. package/dist/esm/utils-93ae800f.js +461 -0
  199. package/dist/ketchup/assets/maps/africa.json +6116 -0
  200. package/dist/ketchup/assets/maps/america.json +5416 -0
  201. package/dist/ketchup/assets/maps/asia.json +6053 -0
  202. package/dist/ketchup/assets/maps/europe.json +5051 -0
  203. package/dist/ketchup/assets/maps/italy.json +3562 -0
  204. package/dist/ketchup/assets/maps/oceania.json +1069 -0
  205. package/dist/ketchup/assets/maps/world.json +23685 -0
  206. package/dist/ketchup/assets/svg/science.svg +1 -0
  207. package/dist/ketchup/ketchup.esm.js +1 -1
  208. package/dist/ketchup/{p-a878016f.entry.js → p-088a886c.entry.js} +1 -1
  209. package/dist/ketchup/p-135cabdc.entry.js +1 -0
  210. package/dist/ketchup/{p-1c6178e4.entry.js → p-1c1e830f.entry.js} +1 -1
  211. package/dist/ketchup/{p-62816d0b.entry.js → p-29208220.entry.js} +1 -1
  212. package/dist/ketchup/{p-ca0ca27f.entry.js → p-2b9f2019.entry.js} +1 -1
  213. package/dist/ketchup/p-52d0582a.js +1 -0
  214. package/dist/ketchup/p-554bd5f0.entry.js +39 -0
  215. package/dist/ketchup/{p-de83f2f6.js → p-5f52e313.js} +1 -1
  216. package/dist/ketchup/{p-ccda584a.entry.js → p-65449480.entry.js} +1 -1
  217. package/dist/ketchup/p-79cf3874.entry.js +1 -0
  218. package/dist/ketchup/p-7a85cda4.js +1 -0
  219. package/dist/ketchup/p-84cce555.entry.js +27 -0
  220. package/dist/ketchup/p-8c44c3b9.js +135 -0
  221. package/dist/ketchup/{p-65adc15b.entry.js → p-9d49cdb2.entry.js} +1 -1
  222. package/dist/ketchup/{p-5a4a5fdc.js → p-a0b1d769.js} +1 -1
  223. package/dist/ketchup/{p-dbb6998b.entry.js → p-a2b6672e.entry.js} +1 -1
  224. package/dist/ketchup/{p-a378ba56.entry.js → p-a4be630b.entry.js} +1 -1
  225. package/dist/ketchup/p-c072b270.js +1 -0
  226. package/dist/ketchup/{p-1baf1205.entry.js → p-c648972c.entry.js} +1 -1
  227. package/dist/ketchup/{p-af4a6191.entry.js → p-d67d39c0.entry.js} +1 -1
  228. package/dist/ketchup/p-d6e2f2b0.entry.js +1 -0
  229. package/dist/ketchup/{p-44375e49.js → p-da387e0e.js} +1 -1
  230. package/dist/ketchup/p-e5c9ec9e.js +1 -0
  231. package/dist/ketchup/{p-cb5f4994.js → p-ed0b8666.js} +0 -0
  232. package/dist/ketchup/p-ef539eda.js +9 -0
  233. package/dist/ketchup/p-f316234c.entry.js +143 -0
  234. package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +2 -2
  235. package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +6 -0
  236. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +29 -22
  237. package/dist/types/components/kup-box/kup-box-declarations.d.ts +7 -11
  238. package/dist/types/components/kup-box/kup-box.d.ts +4 -4
  239. package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +6 -1
  240. package/dist/types/components/kup-button-list/kup-button-list.d.ts +4 -3
  241. package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +28 -10
  242. package/dist/types/components/kup-calendar/kup-calendar.d.ts +19 -47
  243. package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +27 -0
  244. package/dist/types/components/kup-card/{builtin → built-in}/kup-card-calendar.d.ts +0 -0
  245. package/dist/types/components/kup-card/{builtin → built-in}/kup-card-clock.d.ts +0 -0
  246. package/dist/types/components/kup-card/built-in/kup-card-column-drop-menu.d.ts +3 -0
  247. package/dist/types/components/kup-card/free/kup-card-free.d.ts +7 -1
  248. package/dist/types/components/kup-card/kup-card-declarations.d.ts +46 -21
  249. package/dist/types/components/kup-card/kup-card.d.ts +9 -2
  250. package/dist/types/components/kup-cell/kup-cell.d.ts +3 -3
  251. package/dist/types/components/kup-chart/kup-chart-builder.d.ts +5 -5
  252. package/dist/types/components/kup-chart/kup-chart-declarations.d.ts +3 -3
  253. package/dist/types/components/kup-chart/kup-chart.d.ts +2 -2
  254. package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +6 -3
  255. package/dist/types/components/kup-chip/kup-chip.d.ts +9 -13
  256. package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +7 -3
  257. package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +4 -0
  258. package/dist/types/components/kup-combobox/kup-combobox.d.ts +11 -33
  259. package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +2 -2
  260. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +45 -104
  261. package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +8 -11
  262. package/dist/types/components/kup-data-table/kup-data-table.d.ts +49 -27
  263. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +55 -0
  264. package/dist/types/components/kup-echart/kup-echart.d.ts +100 -0
  265. package/dist/types/components/kup-lazy/kup-lazy.d.ts +13 -1
  266. package/dist/types/components/kup-list/kup-list-declarations.d.ts +2 -1
  267. package/dist/types/components/kup-list/kup-list.d.ts +4 -35
  268. package/dist/types/components/kup-magic-box/kup-magic-box-declarations.d.ts +6 -10
  269. package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +7 -11
  270. package/dist/types/components/kup-tooltip/kup-tooltip-declarations.d.ts +11 -13
  271. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +14 -35
  272. package/dist/types/components/kup-tree/kup-tree-faker.d.ts +10 -10
  273. package/dist/types/components/kup-tree/kup-tree.d.ts +45 -35
  274. package/dist/types/components.d.ts +305 -186
  275. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +11 -10
  276. package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +7 -22
  277. package/dist/types/f-components/f-paginator/f-paginator-declarations.d.ts +22 -0
  278. package/dist/types/f-components/f-paginator/f-paginator-utils.d.ts +2 -0
  279. package/dist/types/f-components/f-paginator/f-paginator.d.ts +3 -0
  280. package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +24 -0
  281. package/dist/types/managers/kup-data/kup-data-column-helper.d.ts +31 -0
  282. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +160 -0
  283. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +23 -0
  284. package/dist/types/managers/kup-data/kup-data-row-helper.d.ts +14 -0
  285. package/dist/types/managers/kup-data/kup-data.d.ts +77 -0
  286. package/dist/types/{utils → managers}/kup-dates/kup-dates-declarations.d.ts +0 -0
  287. package/dist/types/{utils → managers}/kup-dates/kup-dates.d.ts +24 -2
  288. package/dist/types/{utils → managers}/kup-debug/kup-debug-declarations.d.ts +0 -0
  289. package/dist/types/{utils → managers}/kup-debug/kup-debug.d.ts +6 -13
  290. package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -0
  291. package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position.d.ts +0 -0
  292. package/dist/types/{utils → managers}/kup-interact/kup-interact-declarations.d.ts +9 -8
  293. package/dist/types/{utils → managers}/kup-interact/kup-interact.d.ts +7 -6
  294. package/dist/types/{utils → managers}/kup-language/kup-language-declarations.d.ts +11 -1
  295. package/dist/types/{utils → managers}/kup-language/kup-language.d.ts +3 -3
  296. package/dist/types/{utils → managers}/kup-manager/kup-manager-declarations.d.ts +21 -2
  297. package/dist/types/{utils → managers}/kup-manager/kup-manager.d.ts +4 -0
  298. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +21 -0
  299. package/dist/types/managers/kup-math/kup-math-helper.d.ts +17 -0
  300. package/dist/types/managers/kup-math/kup-math.d.ts +60 -0
  301. package/dist/types/{utils → managers}/kup-objects/kup-objects-declarations.d.ts +0 -0
  302. package/dist/types/{utils → managers}/kup-objects/kup-objects.d.ts +6 -0
  303. package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +0 -0
  304. package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +0 -0
  305. package/dist/types/{utils → managers}/kup-search/kup-search-declarations.d.ts +0 -0
  306. package/dist/types/{utils → managers}/kup-search/kup-search.d.ts +0 -0
  307. package/dist/types/{utils → managers}/kup-theme/kup-theme-declarations.d.ts +37 -1
  308. package/dist/types/{utils → managers}/kup-theme/kup-theme.d.ts +19 -19
  309. package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar-declarations.d.ts +0 -0
  310. package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar.d.ts +0 -0
  311. package/dist/types/stencil-public-runtime.d.ts +6 -4
  312. package/dist/types/types/GenericTypes.d.ts +53 -6
  313. package/dist/types/utils/cell-utils.d.ts +7 -6
  314. package/dist/types/utils/filters/filters-column-menu.d.ts +16 -16
  315. package/dist/types/utils/filters/filters-rows.d.ts +10 -10
  316. package/dist/types/utils/filters/filters-tree-items.d.ts +7 -7
  317. package/dist/types/utils/helpers.d.ts +2 -2
  318. package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +1 -0
  319. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +27 -33
  320. package/dist/types/utils/utils.d.ts +4 -2
  321. package/package.json +31 -26
  322. package/dist/cjs/f-chip-90d95d22.js +0 -141
  323. package/dist/cjs/utils-0cc466b9.js +0 -1492
  324. package/dist/collection/components/kup-card/builtin/kup-card-builtin.js +0 -20
  325. package/dist/collection/components/kup-paginator/kup-paginator-declarations.js +0 -5
  326. package/dist/collection/components/kup-paginator/kup-paginator.css +0 -46
  327. package/dist/collection/components/kup-paginator/kup-paginator.js +0 -408
  328. package/dist/esm/f-chip-c0e9c0ff.js +0 -139
  329. package/dist/esm/utils-6c73709d.js +0 -1470
  330. package/dist/ketchup/p-15321eae.js +0 -1
  331. package/dist/ketchup/p-5a5f2a53.js +0 -1
  332. package/dist/ketchup/p-61faaa38.js +0 -8
  333. package/dist/ketchup/p-7e23ea7c.entry.js +0 -1
  334. package/dist/ketchup/p-9d02a676.js +0 -134
  335. package/dist/ketchup/p-a96e6e32.entry.js +0 -1
  336. package/dist/ketchup/p-ad32821e.entry.js +0 -1
  337. package/dist/ketchup/p-c18c7bb0.entry.js +0 -27
  338. package/dist/ketchup/p-d4aa4922.js +0 -1
  339. package/dist/ketchup/p-ec3a3db9.js +0 -1
  340. package/dist/ketchup/p-ecccb3a4.entry.js +0 -45
  341. package/dist/types/components/kup-card/builtin/kup-card-builtin.d.ts +0 -14
  342. package/dist/types/components/kup-paginator/kup-paginator-declarations.d.ts +0 -11
  343. package/dist/types/components/kup-paginator/kup-paginator.d.ts +0 -48
@@ -1,10 +1,11 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
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';
2
+ import { GroupLabelDisplayMode, GroupObject, LoadMoreMode, PaginatorPos, ShowGrid, SortObject, TotalsMap, SelectionMode, KupDatatableAutoRowSelectEventPayload, KupDatatableRowSelectedEventPayload, KupDatatableClickEventPayload, KupDatatableColumnMenuEventPayload, KupDatatableRowActionClickEventPayload, KupDatatableLoadMoreClickEventPayload, KupDatatableColumnRemoveEventPayload, KupDatatableColumnMoveEventPayload, KupDataTableDataset, KupDataTableRow } 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
7
  import { FCellPadding } from '../../f-components/f-cell/f-cell-declarations';
8
+ import { KupDataColumn, KupDataNewColumnOptions, KupDataNewColumnTypes, KupDataRowAction } from '../../managers/kup-data/kup-data-declarations';
8
9
  export declare class KupDataTable {
9
10
  stateId: string;
10
11
  store: KupStore;
@@ -24,7 +25,7 @@ export declare class KupDataTable {
24
25
  /**
25
26
  * The data of the table.
26
27
  */
27
- data: TableData;
28
+ data: KupDataTableDataset;
28
29
  /**
29
30
  * The density of the rows, defaults at 'medium' and can be also set to 'large' or 'small'.
30
31
  */
@@ -46,10 +47,20 @@ export declare class KupDataTable {
46
47
  * Defines the label to show when the table is empty.
47
48
  */
48
49
  emptyDataLabel: string;
50
+ /**
51
+ * Enables the choice to set formulas on columns by dragging them into different columns.
52
+ * @default true
53
+ */
54
+ enableColumnsFormula: boolean;
49
55
  /**
50
56
  * Enables the extracolumns add buttons.
51
57
  */
52
58
  enableExtraColumns: boolean;
59
+ /**
60
+ * Enables the merging of columns by dragging them into different columns.
61
+ * @default true
62
+ */
63
+ enableMergeColumns: boolean;
53
64
  /**
54
65
  * Enables the sorting of columns by dragging them into different columns.
55
66
  */
@@ -154,7 +165,7 @@ export declare class KupDataTable {
154
165
  /**
155
166
  * Sets the actions of the rows.
156
167
  */
157
- rowActions: Array<RowAction>;
168
+ rowActions: Array<KupDataRowAction>;
158
169
  /**
159
170
  * Sets the number of rows per page to display.
160
171
  */
@@ -262,11 +273,6 @@ export declare class KupDataTable {
262
273
  private openedTotalMenu;
263
274
  private openedCustomSettings;
264
275
  private fontsize;
265
- /**
266
- * This is a flag to be used for the draggable columns to force rerender
267
- * by changing the internal state.
268
- */
269
- private triggerColumnSortRerender;
270
276
  rowsPerPageHandler(newValue: number): void;
271
277
  expandGroupsHandler(): void;
272
278
  filtersChanged(): void;
@@ -330,6 +336,7 @@ export declare class KupDataTable {
330
336
  private groupsDropareaRef;
331
337
  private clickCb;
332
338
  private clickCbCustomPanel;
339
+ private clickCbDropCard;
333
340
  /**
334
341
  * Used to prevent too many resizes callbacks at once.
335
342
  */
@@ -337,14 +344,10 @@ export declare class KupDataTable {
337
344
  private columnMenuInstance;
338
345
  private filtersColumnMenuInstance;
339
346
  private filtersRowsInstance;
340
- /**
341
- * Reference to the row detail card.
342
- */
343
347
  private detailCard;
344
- /**
345
- * Reference to the column menu card.
346
- */
347
348
  private columnMenuCard;
349
+ private columnDropCard;
350
+ private columnDropCardAnchor;
348
351
  /**
349
352
  * When component unload is complete
350
353
  */
@@ -386,6 +389,14 @@ export declare class KupDataTable {
386
389
  */
387
390
  kupRowActionClick: EventEmitter<KupDatatableRowActionClickEventPayload>;
388
391
  kupLoadMoreClick: EventEmitter<KupDatatableLoadMoreClickEventPayload>;
392
+ /**
393
+ * Event fired when columns are moved (sorted).
394
+ */
395
+ kupColumnMove: EventEmitter<KupDatatableColumnMoveEventPayload>;
396
+ /**
397
+ * Event fired when columns are removed (set to hidden).
398
+ */
399
+ kupColumnRemove: EventEmitter<KupDatatableColumnRemoveEventPayload>;
389
400
  /**
390
401
  * Closes any opened column menu.
391
402
  */
@@ -404,6 +415,18 @@ export declare class KupDataTable {
404
415
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
405
416
  */
406
417
  getProps(descriptions?: boolean): Promise<GenericObject>;
418
+ /**
419
+ * Hides the given column.
420
+ * @param {KupDataColumn} column - Column to hide.
421
+ */
422
+ hideColumn(column: KupDataColumn): Promise<void>;
423
+ /**
424
+ * Invokes the KupData API for column creation, then refreshes the component in case no errors were catched.
425
+ * @param {KupDataNewColumnTypes} type - Type of the column creation.
426
+ * @param {KupDataNewColumnOptions} options - Options of the creation.
427
+ * @returns {string|KupDataColumn} Returns the new column created or a string containing the error message if something went wrong.
428
+ */
429
+ newColumn(type: KupDataNewColumnTypes, options: KupDataNewColumnOptions): Promise<string | KupDataColumn>;
407
430
  /**
408
431
  * Opens the column menu of the given column.
409
432
  * @param {string} column - Name of the column.
@@ -434,12 +457,13 @@ export declare class KupDataTable {
434
457
  * @param {boolean} emitEvent - The event will always be emitted unless emitEvent is set to false.
435
458
  */
436
459
  setSelectedRows(rowsById: string, emitEvent?: boolean): Promise<void>;
460
+ private closeDropCard;
461
+ private createDropCard;
437
462
  private calculateData;
438
463
  private setTransposedData;
439
464
  private switchToTotalsMatrix;
440
465
  private setObjForTotalsMatrix;
441
466
  private getTransposedData;
442
- private getColumnFromCell;
443
467
  private stickyHeaderPosition;
444
468
  private updateStickyHeaderSize;
445
469
  private setObserver;
@@ -462,11 +486,11 @@ export declare class KupDataTable {
462
486
  private getEventPath;
463
487
  private resetSelectedRows;
464
488
  resetCurrentPage(): void;
465
- getColumns(): Array<Column>;
489
+ getColumns(): Array<KupDataColumn>;
466
490
  private getSizedColumns;
467
491
  /**
468
492
  * Opens a card containing the detail of the given row.
469
- * @param {Row} row - Row for which the detail was requested.
493
+ * @param {KupDataTableRow} row - Row for which the detail was requested.
470
494
  * @param {number} x - Initial x coordinates of the card.
471
495
  * @param {number} y - Initial y coordinates of the card.
472
496
  * @private
@@ -477,10 +501,10 @@ export declare class KupDataTable {
477
501
  private clickHandler;
478
502
  private contextMenuHandler;
479
503
  private dblClickHandler;
480
- getVisibleColumns(): Array<Column>;
504
+ getVisibleColumns(): Array<KupDataColumn>;
481
505
  getGroupByName(column: string): GroupObject;
482
- getColumnValues(column: Column): ValueDisplayedValue[];
483
- getRows(): Array<Row>;
506
+ getColumnValues(column: KupDataColumn): ValueDisplayedValue[];
507
+ getRows(): Array<KupDataTableRow>;
484
508
  private initRows;
485
509
  private filterRows;
486
510
  private isGrouping;
@@ -502,8 +526,8 @@ export declare class KupDataTable {
502
526
  private onRemoveFilter;
503
527
  private getFilterValueForTooltip;
504
528
  private onGlobalFilterChange;
505
- private handlePageChanged;
506
- private handleRowsPerPageChanged;
529
+ private handlePageChange;
530
+ private handleRowsPerPageChange;
507
531
  private onRowClick;
508
532
  private selectColumn;
509
533
  private deselectColumn;
@@ -520,7 +544,7 @@ export declare class KupDataTable {
520
544
  getInternalState(): Promise<{
521
545
  groups: GroupObject[];
522
546
  filters: GenericFilter;
523
- data: TableData;
547
+ data: KupDataTableDataset;
524
548
  }>;
525
549
  private onLoadMoreClick;
526
550
  private adjustGroupState;
@@ -538,7 +562,7 @@ export declare class KupDataTable {
538
562
  * @param sortedColumnIndex - The index where the column will be removed
539
563
  */
540
564
  private moveSortedColumns;
541
- defaultSortingFunction(columns: Column[], receivingColumnIndex: number, sortedColumnIndex: number, useNewObject?: boolean): Promise<Column[]>;
565
+ defaultSortingFunction(columns: KupDataColumn[], receivingColumnIndex: number, sortedColumnIndex: number, useNewObject?: boolean): Promise<KupDataColumn[]>;
542
566
  private applyLineBreaks;
543
567
  /**
544
568
  * Given the parameters return the classes and style for each table header cell
@@ -550,14 +574,13 @@ export declare class KupDataTable {
550
574
  private renderHeader;
551
575
  private renderStickyHeader;
552
576
  renderTooltip(): any;
553
- areTotalsSelected(column: Column): boolean;
577
+ areTotalsSelected(column: KupDataColumn): boolean;
554
578
  onTotalsChange(event: any, column: any): void;
555
579
  private totalMenuPosition;
556
580
  private onTotalMenuOpen;
557
581
  renderFooter(): any;
558
582
  private renderRow;
559
583
  private renderActions;
560
- private renderLoadMoreButton;
561
584
  private onCustomSettingsClick;
562
585
  private openCustomSettings;
563
586
  private closeCustomSettings;
@@ -566,7 +589,6 @@ export declare class KupDataTable {
566
589
  private columnRemoveArea;
567
590
  private columnGroupArea;
568
591
  private hideShowColumnDropArea;
569
- private handleColumnRemove;
570
592
  private handleColumnGroup;
571
593
  private transcodeItem;
572
594
  private createListData;
@@ -0,0 +1,55 @@
1
+ import { KupDataColumn, KupDataRow } from '../../managers/kup-data/kup-data-declarations';
2
+ import { KupEventPayload } from '../../types/GenericTypes';
3
+ /**
4
+ * Props of the kup-echart component.
5
+ * Used to export every prop in an object.
6
+ */
7
+ export declare enum KupEchartProps {
8
+ axis = "Sets the axis of the chart.",
9
+ chartTitle = "Title of the graph.",
10
+ customStyle = "Custom style of the component.",
11
+ data = "The actual data of the chart.",
12
+ legend = "Sets the position of the legend. Supported values: bottom, left, right, top. Keep in mind that legend types are tied to chart types, some combinations might not work.",
13
+ map = "Choose which map you want to view, supported values: \"europe\", \"africa\", \"asia\", \"oceania\", \"america\" and \"world\". It's possible to supply a custom JSON too.",
14
+ series = "The data series to be displayed. They must be of the same type.",
15
+ sizeX = "The width of the chart, defaults to 100%. Accepts any valid CSS format (px, %, vw, etc.).",
16
+ sizeY = "The height of the chart, defaults to 100%. Accepts any valid CSS format (px, %, vh, etc.).",
17
+ types = "The type of the chart. Supported formats: Line, Pie, Map, Scatter.",
18
+ xAxis = "Customization options for the x Axis.",
19
+ yAxis = "Customization options for the y Axis."
20
+ }
21
+ export interface KupEchartTitle {
22
+ value: string;
23
+ color?: string;
24
+ position?: string;
25
+ size?: number;
26
+ }
27
+ export declare enum KupEchartLegendPlacement {
28
+ BOTTOM = "bottom",
29
+ LEFT = "left",
30
+ RIGHT = "right",
31
+ TOP = "top"
32
+ }
33
+ export declare enum KupEchartMaps {
34
+ AFRICA = "africa",
35
+ AMERICA = "america",
36
+ ASIA = "asia",
37
+ EUROPE = "europe",
38
+ ITALY = "italy",
39
+ OCEANIA = "oceania",
40
+ WORLD = "world"
41
+ }
42
+ export declare enum KupEchartTypes {
43
+ BAR = "Bar",
44
+ GAUSSIAN = "Gaussian",
45
+ LINE = "Line",
46
+ MAP = "Map",
47
+ PIE = "Pie",
48
+ SCATTER = "Scatter"
49
+ }
50
+ export interface KupEchartClickEventPayload extends KupEventPayload {
51
+ column: KupDataColumn;
52
+ row: KupDataRow;
53
+ x: number | string;
54
+ y: number | string;
55
+ }
@@ -0,0 +1,100 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { GeoJSON } from 'geojson';
3
+ import { XAXisComponentOption, YAXisComponentOption } from 'echarts';
4
+ import { KupEchartClickEventPayload, KupEchartLegendPlacement, KupEchartMaps, KupEchartTitle, KupEchartTypes } from './kup-echart-declarations';
5
+ import { GenericObject } from '../../types/GenericTypes';
6
+ import { KupDataDataset } from '../../managers/kup-data/kup-data-declarations';
7
+ export declare class KupEchart {
8
+ #private;
9
+ /**
10
+ * References the root HTML element of the component (<kup-echart>).
11
+ */
12
+ rootElement: HTMLElement;
13
+ /**
14
+ * Sets the axis of the chart.
15
+ * @default ""
16
+ */
17
+ axis: string;
18
+ /**
19
+ * Title of the graph.
20
+ * @default null
21
+ */
22
+ chartTitle: KupEchartTitle;
23
+ /**
24
+ * Custom style of the component.
25
+ * @default ""
26
+ * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
27
+ */
28
+ customStyle: string;
29
+ /**
30
+ * The actual data of the chart.
31
+ * @default null
32
+ */
33
+ data: KupDataDataset;
34
+ /**
35
+ * Sets the position of the legend. Supported values: bottom, left, right, top. Keep in mind that legend types are tied to chart types, some combinations might not work.
36
+ * @default KupEchartLegendPlacement.RIGHT
37
+ */
38
+ legend: KupEchartLegendPlacement;
39
+ /**
40
+ * Choose which map you want to view, supported values: "europe", "africa", "asia", "oceania", "america", "italy" and "world". It's possible to supply a custom JSON too.
41
+ * @default null
42
+ */
43
+ map: KupEchartMaps | string | GeoJSON;
44
+ /**
45
+ * The data series to be displayed. They must be of the same type.
46
+ * @default []
47
+ */
48
+ series: string[];
49
+ /**
50
+ * The width of the chart, defaults to 100%. Accepts any valid CSS format (px, %, vw, etc.).
51
+ * @default "100%"
52
+ */
53
+ sizeX: string;
54
+ /**
55
+ * The height of the chart, defaults to 100%. Accepts any valid CSS format (px, %, vh, etc.).
56
+ * @default "100%"
57
+ */
58
+ sizeY: string;
59
+ /**
60
+ * The type of the chart. Supported formats: Bar, Gaussian, Line, Pie, Map and Scatter.
61
+ * @default [KupEchartTypes.LINE]
62
+ */
63
+ types: KupEchartTypes[];
64
+ /**
65
+ * Customization options for the x Axis.
66
+ * @default null
67
+ */
68
+ xAxis: XAXisComponentOption;
69
+ /**
70
+ * Customization options for the y Axis.
71
+ * @default null
72
+ */
73
+ yAxis: YAXisComponentOption;
74
+ kupEchartClick: EventEmitter<KupEchartClickEventPayload>;
75
+ /**
76
+ * Used to retrieve component's props values.
77
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
78
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
79
+ */
80
+ getProps(descriptions?: boolean): Promise<GenericObject>;
81
+ /**
82
+ * This method is used to trigger a new render of the component.
83
+ */
84
+ refresh(): Promise<void>;
85
+ /**
86
+ * This method is invoked by KupManager whenever the component changes size.
87
+ */
88
+ resizeCallback(): Promise<void>;
89
+ /**
90
+ * Sets the props to the component.
91
+ * @param {GenericObject} props - Object containing props that will be set to the component.
92
+ */
93
+ setProps(props: GenericObject): Promise<void>;
94
+ componentWillLoad(): void;
95
+ componentDidLoad(): void;
96
+ componentWillRender(): void;
97
+ componentDidRender(): void;
98
+ render(): any;
99
+ disconnectedCallback(): void;
100
+ }
@@ -1,4 +1,5 @@
1
- import { GenericObject } from '../../types/GenericTypes';
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
2
3
  import { KupLazyRender } from './kup-lazy-declarations';
3
4
  export declare class KupLazy {
4
5
  /**
@@ -41,12 +42,23 @@ export declare class KupLazy {
41
42
  * Instance of the KupManager class.
42
43
  */
43
44
  private kupManager;
45
+ private lazyComponent;
46
+ private lazyComponentLoaded;
47
+ /**
48
+ * Triggered when the component is loaded.
49
+ */
50
+ kupLazyLoaded: EventEmitter<KupEventPayload>;
44
51
  /**
45
52
  * Used to retrieve component's props values.
46
53
  * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
47
54
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
48
55
  */
49
56
  getProps(descriptions?: boolean): Promise<GenericObject>;
57
+ /**
58
+ * Returns the HTMLElement of the component to lazy load.
59
+ * @returns {HTMLElement} Lazy loaded component.
60
+ */
61
+ getComponent(): Promise<HTMLElement>;
50
62
  /**
51
63
  * This method is used to trigger a new render of the component.
52
64
  */
@@ -1,6 +1,6 @@
1
1
  import { KupEventPayload } from '../../types/GenericTypes';
2
2
  import { ValueDisplayedValue as vdv } from '../../utils/filters/filters-declarations';
3
- import { KupObj } from '../../utils/kup-objects/kup-objects-declarations';
3
+ import { KupObj } from '../../managers/kup-objects/kup-objects-declarations';
4
4
  /**
5
5
  * Props of the kup-list component.
6
6
  * Used to export every prop in an object.
@@ -40,6 +40,7 @@ export declare enum KupListRole {
40
40
  GROUP = "group"
41
41
  }
42
42
  export interface ValueDisplayedValue extends vdv {
43
+ exists: boolean;
43
44
  }
44
45
  export declare enum ItemsDisplayMode {
45
46
  CODE = "code",
@@ -1,8 +1,9 @@
1
- import { EventEmitter, VNode } from '../../stencil-public-runtime';
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
2
  import { KupListData, KupListEventPayload, KupListRole } from './kup-list-declarations';
3
3
  import { ItemsDisplayMode } from './kup-list-declarations';
4
4
  import { GenericObject, KupEventPayload } from '../../types/GenericTypes';
5
5
  export declare class KupList {
6
+ #private;
6
7
  /**
7
8
  * References the root HTML element of the component (<kup-list>).
8
9
  */
@@ -78,21 +79,13 @@ export declare class KupList {
78
79
  * @default false
79
80
  */
80
81
  twoLine: boolean;
81
- private filteredItems;
82
- /**
83
- * Instance of the KupManager class.
84
- */
85
- private kupManager;
86
- private radios;
87
- private listItems;
88
82
  kupBlur: EventEmitter<KupEventPayload>;
89
83
  kupFocus: EventEmitter<KupEventPayload>;
90
84
  kupClick: EventEmitter<KupListEventPayload>;
91
- onKupBlur(_index: number): void;
92
- onKupFocus(_index: number): void;
85
+ onKupBlur(): void;
86
+ onKupFocus(): void;
93
87
  onKupClick(index: number): void;
94
88
  listenKeydown(e: KeyboardEvent): void;
95
- watchFilter(): void;
96
89
  /**
97
90
  * Focuses the next element of the list.
98
91
  */
@@ -111,11 +104,6 @@ export declare class KupList {
111
104
  * This method is used to trigger a new render of the component.
112
105
  */
113
106
  refresh(): Promise<void>;
114
- /**
115
- * Resets filter.
116
- * @todo FOSLUC to PASCAR: why isn't it enough to change only the prop?
117
- */
118
- resetFilter(newFilter: string): Promise<void>;
119
107
  /**
120
108
  * Calls handleSelection internal method to select the given item.
121
109
  * @param {number} index - Based zero index of the item that must be selected, when not provided the list will attempt to select the focused element.
@@ -126,25 +114,6 @@ export declare class KupList {
126
114
  * @param {GenericObject} props - Object containing props that will be set to the component.
127
115
  */
128
116
  setProps(props: GenericObject): Promise<void>;
129
- /**
130
- * Selects the specified item.
131
- * @param {number} index - Based zero index of the item that must be selected, when not provided the list will attempt to select the focused element.
132
- */
133
- private handleSelection;
134
- renderSeparator(): any;
135
- renderListItem(item: KupListData, index: number): VNode[];
136
- getIconTag(icon: string): any;
137
- setUnselected(item: KupListData, index: number): void;
138
- setSelected(item: KupListData, index: number): void;
139
- sendInfoToSubComponent(index: number, item: KupListData): void;
140
- getLiIndexElementForValue(key: string): number;
141
- isSingleSelection(): boolean;
142
- isMultiSelection(): boolean;
143
- isCheckBoxRule(): boolean;
144
- isRadioButtonRule(): boolean;
145
- isListBoxRule(): boolean;
146
- checkRoleType(): void;
147
- itemCompliant(item: KupListData): boolean;
148
117
  componentWillLoad(): void;
149
118
  componentDidLoad(): void;
150
119
  componentWillRender(): void;
@@ -1,4 +1,3 @@
1
- import type { Column, Row } from '../kup-data-table/kup-data-table-declarations';
2
1
  /**
3
2
  * Props of the kup-magic-box component.
4
3
  * Used to export every prop in an object.
@@ -7,19 +6,16 @@ export declare enum KupMagicBoxProps {
7
6
  customStyle = "Custom style of the component.",
8
7
  data = "Sets the data that will be used to display different components."
9
8
  }
10
- /**
11
- * Data prop of kup-magic-box.
12
- */
13
- export interface MagicBoxData {
14
- columns: Column[];
15
- rows: Row[];
16
- }
17
9
  /**
18
10
  * Viable display modes selectable in kup-magic-box.
19
11
  */
20
- export declare enum MagicBoxDisplay {
12
+ export declare enum KupMagicBoxDisplay {
21
13
  BOX = "Box",
14
+ BUTTON_LIST = "Button List",
22
15
  CHART = "Chart",
16
+ CHIP = "Chip",
17
+ ECHART = "Echart",
23
18
  DATATABLE = "Datatable",
24
- JSON = "JSON"
19
+ JSON = "JSON",
20
+ TREE = "Tree"
25
21
  }
@@ -1,5 +1,6 @@
1
1
  import type { GenericObject } from '../../types/GenericTypes';
2
- import { MagicBoxDisplay, MagicBoxData } from './kup-magic-box-declarations';
2
+ import { KupMagicBoxDisplay } from './kup-magic-box-declarations';
3
+ import { KupDataDataset } from '../../managers/kup-data/kup-data-declarations';
3
4
  export declare class KupMagicBox {
4
5
  /**
5
6
  * References the root HTML element of the component (<kup-magic-box>).
@@ -7,9 +8,9 @@ export declare class KupMagicBox {
7
8
  rootElement: HTMLElement;
8
9
  /**
9
10
  * Data will be displayed using this component.
10
- * @default MagicBoxDisplay.DATATABLE
11
+ * @default KupMagicBoxDisplay.DATATABLE
11
12
  */
12
- display: MagicBoxDisplay;
13
+ display: KupMagicBoxDisplay;
13
14
  /**
14
15
  * Custom style of the component.
15
16
  * @default ""
@@ -20,15 +21,10 @@ export declare class KupMagicBox {
20
21
  * Sets the data that will be used to display different components.
21
22
  * @default null
22
23
  */
23
- data: MagicBoxData;
24
- /**
25
- * Instance of the KupManager class.
26
- */
27
- private kupManager;
28
- /**
29
- * Element which enables the drag on move feature.
30
- */
24
+ data: KupDataDataset;
31
25
  private dragHandler;
26
+ private kupManager;
27
+ private textArea;
32
28
  private wrapperRef;
33
29
  /**
34
30
  * Used to retrieve component's props values.
@@ -1,7 +1,8 @@
1
+ import { KupDataColumn, KupDataDataset, KupDataNode } from '../../managers/kup-data/kup-data-declarations';
2
+ import { KupObj } from '../../managers/kup-objects/kup-objects-declarations';
1
3
  import { KupEventPayload } from '../../types/GenericTypes';
2
- import { Column, DataTable } from '../kup-data-table/kup-data-table-declarations';
3
4
  import { KupTree } from '../kup-tree/kup-tree';
4
- import { TreeNode, TreeNodePath } from '../kup-tree/kup-tree-declarations';
5
+ import { TreeNodePath } from '../kup-tree/kup-tree-declarations';
5
6
  /**
6
7
  * Props of the kup-tooltip component.
7
8
  * Used to export every prop in an object.
@@ -16,10 +17,7 @@ export declare enum KupTooltipProps {
16
17
  owner = "Owner of this tooltip",
17
18
  relatedObject = "Container element for tooltip"
18
19
  }
19
- export interface TooltipObject {
20
- t: String;
21
- p: String;
22
- k: String;
20
+ export interface TooltipObject extends KupObj {
23
21
  url: String;
24
22
  }
25
23
  export interface TooltipData {
@@ -39,7 +37,7 @@ export interface TooltipAction {
39
37
  exec: string;
40
38
  url: string;
41
39
  }
42
- export interface TooltipDetailData extends DataTable {
40
+ export interface TooltipDetailData extends KupDataDataset {
43
41
  actions?: {
44
42
  command: Array<TooltipAction>;
45
43
  };
@@ -50,7 +48,7 @@ export interface TooltipRelatedObject {
50
48
  rowId?: string;
51
49
  colId?: string;
52
50
  }
53
- export interface TooltipCellOptions extends TreeNode {
51
+ export interface TooltipCellOptions extends KupDataNode {
54
52
  config?: any;
55
53
  }
56
54
  export declare enum ViewMode {
@@ -69,27 +67,27 @@ export interface KupTooltipDefaultEventPayload extends KupEventPayload {
69
67
  }
70
68
  export interface KupTooltipTreeNodeExpandEventPayload extends KupEventPayload {
71
69
  treeNodePath: TreeNodePath;
72
- treeNode: TreeNode;
70
+ treeNode: KupDataNode;
73
71
  usesDynamicExpansion?: boolean;
74
72
  dynamicExpansionRequireChildren?: boolean;
75
73
  tree: KupTree;
76
74
  }
77
75
  export interface KupTooltipTreeNodeSelectedEventPayload extends KupEventPayload {
78
76
  treeNodePath: TreeNodePath;
79
- treeNode: TreeNode;
77
+ treeNode: KupDataNode;
80
78
  columnName: string;
81
79
  auto: boolean;
82
80
  tree: KupTree;
83
81
  }
84
82
  export interface KupTooltipTreeNodeButtonClickEventPayload extends KupTooltipTreeNodeSelectedEventPayload {
85
- column: Column;
83
+ column: KupDataColumn;
86
84
  }
87
85
  export interface KupTooltipTreeNodeDblClickEventPayload extends KupEventPayload {
88
86
  treeNodePath: TreeNodePath;
89
- treeNode: TreeNode;
87
+ treeNode: KupDataNode;
90
88
  }
91
89
  export interface KupTooltipTreeDynamicMassExpansionEventPayload extends KupEventPayload {
92
90
  treeNodePath?: TreeNodePath;
93
- treeNode?: TreeNode;
91
+ treeNode?: KupDataNode;
94
92
  expandAll?: boolean;
95
93
  }