@sme.up/ketchup 4.2.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 (346) hide show
  1. package/README.md +107 -3
  2. package/dist/cjs/{cell-utils-1d44a3f0.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-a5788453.js → f-button-02a7cde4.js} +2 -2
  5. package/dist/cjs/{f-cell-eba6f39e.js → f-cell-4d1450a8.js} +62 -48
  6. package/dist/cjs/f-chip-a50b9f00.js +130 -0
  7. package/dist/cjs/{f-image-e03842eb.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} +5759 -4805
  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-75f1a2cd.js → kup-manager-5877b2ee.js} +3395 -737
  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/built-in/kup-card-calendar.js +458 -0
  49. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +321 -0
  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 +22 -0
  54. package/dist/collection/components/kup-card/kup-card-declarations.js +19 -0
  55. package/dist/collection/components/kup-card/kup-card-helper.js +3 -3
  56. package/dist/collection/components/kup-card/kup-card.css +793 -8
  57. package/dist/collection/components/kup-card/kup-card.js +75 -15
  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 -38
  74. package/dist/collection/components/kup-data-table/kup-data-table.js +366 -168
  75. package/dist/collection/components/kup-date-picker/kup-date-picker.css +0 -82
  76. package/dist/collection/components/kup-date-picker/kup-date-picker.js +41 -312
  77. package/dist/collection/components/kup-drawer/kup-drawer.js +1 -1
  78. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +2 -2
  79. package/dist/collection/components/kup-echart/assets/maps/africa.json +6116 -0
  80. package/dist/collection/components/kup-echart/assets/maps/america.json +5416 -0
  81. package/dist/collection/components/kup-echart/assets/maps/asia.json +6053 -0
  82. package/dist/collection/components/kup-echart/assets/maps/europe.json +5051 -0
  83. package/dist/collection/components/kup-echart/assets/maps/italy.json +3562 -0
  84. package/dist/collection/components/kup-echart/assets/maps/oceania.json +1069 -0
  85. package/dist/collection/components/kup-echart/assets/maps/world.json +23685 -0
  86. package/dist/collection/components/kup-echart/kup-echart-declarations.js +45 -0
  87. package/dist/collection/components/kup-echart/kup-echart.css +13 -0
  88. package/dist/collection/components/kup-echart/kup-echart.js +1165 -0
  89. package/dist/collection/components/kup-field/kup-field.js +2 -2
  90. package/dist/collection/components/kup-gauge/kup-gauge.js +3 -3
  91. package/dist/collection/components/kup-grid/kup-grid.css +2 -2
  92. package/dist/collection/components/kup-grid/kup-grid.js +6 -5
  93. package/dist/collection/components/kup-iframe/kup-iframe.js +2 -2
  94. package/dist/collection/components/kup-image/assets/svg/science.svg +1 -0
  95. package/dist/collection/components/kup-image/kup-image.js +3 -3
  96. package/dist/collection/components/kup-lazy/kup-lazy.css +21 -11
  97. package/dist/collection/components/kup-lazy/kup-lazy.js +62 -3
  98. package/dist/collection/components/kup-list/kup-list-helper.js +7 -1
  99. package/dist/collection/components/kup-list/kup-list.css +3 -0
  100. package/dist/collection/components/kup-list/kup-list.js +219 -288
  101. package/dist/collection/components/kup-magic-box/kup-magic-box-declarations.js +11 -7
  102. package/dist/collection/components/kup-magic-box/kup-magic-box.js +90 -41
  103. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
  104. package/dist/collection/components/kup-probe/kup-probe.js +1 -1
  105. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
  106. package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
  107. package/dist/collection/components/kup-radio/kup-radio.js +1 -1
  108. package/dist/collection/components/kup-rating/kup-rating.js +1 -1
  109. package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
  110. package/dist/collection/components/kup-spinner/kup-spinner.js +1 -1
  111. package/dist/collection/components/kup-state/mock-store.js +1 -1
  112. package/dist/collection/components/kup-switch/kup-switch.js +1 -1
  113. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +3 -3
  114. package/dist/collection/components/kup-text-field/kup-text-field.css +3 -0
  115. package/dist/collection/components/kup-text-field/kup-text-field.js +2 -2
  116. package/dist/collection/components/kup-time-picker/kup-time-picker.css +1 -0
  117. package/dist/collection/components/kup-time-picker/kup-time-picker.js +57 -244
  118. package/dist/collection/components/kup-tooltip/kup-tooltip.js +3 -3
  119. package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -5
  120. package/dist/collection/components/kup-tree/kup-tree-faker.js +2 -3
  121. package/dist/collection/components/kup-tree/kup-tree.css +2 -0
  122. package/dist/collection/components/kup-tree/kup-tree.js +145 -70
  123. package/dist/collection/f-components/f-cell/f-cell-declarations.js +3 -1
  124. package/dist/collection/f-components/f-cell/f-cell.js +53 -39
  125. package/dist/collection/f-components/f-chip/f-chip.js +76 -87
  126. package/dist/collection/f-components/f-image/f-image.js +2 -2
  127. package/dist/collection/f-components/f-paginator/f-paginator-declarations.js +5 -0
  128. package/dist/collection/f-components/f-paginator/f-paginator-utils.js +28 -0
  129. package/dist/collection/f-components/f-paginator/f-paginator.js +91 -0
  130. package/dist/collection/f-components/f-text-field/f-text-field.js +4 -4
  131. package/dist/collection/managers/kup-data/kup-data-cell-helper.js +52 -0
  132. package/dist/collection/managers/kup-data/kup-data-column-helper.js +272 -0
  133. package/dist/collection/managers/kup-data/kup-data-declarations.js +9 -0
  134. package/dist/collection/managers/kup-data/kup-data-node-helper.js +72 -0
  135. package/dist/collection/managers/kup-data/kup-data-row-helper.js +28 -0
  136. package/dist/collection/managers/kup-data/kup-data.js +382 -0
  137. package/dist/collection/{utils → managers}/kup-dates/kup-dates-declarations.js +0 -0
  138. package/dist/collection/{utils → managers}/kup-dates/kup-dates.js +53 -19
  139. package/dist/collection/{utils → managers}/kup-debug/kup-debug-browser-utils.js +1 -1
  140. package/dist/collection/{utils → managers}/kup-debug/kup-debug-declarations.js +0 -0
  141. package/dist/collection/{utils → managers}/kup-debug/kup-debug.js +79 -124
  142. package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.js +0 -0
  143. package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position.js +10 -1
  144. package/dist/collection/{utils → managers}/kup-interact/kup-interact-declarations.js +1 -0
  145. package/dist/collection/{utils → managers}/kup-interact/kup-interact.js +22 -13
  146. package/dist/collection/{utils → managers}/kup-language/kup-language-declarations.js +10 -0
  147. package/dist/collection/{utils → managers}/kup-language/kup-language.js +5 -5
  148. package/dist/collection/{utils → managers}/kup-manager/kup-manager-declarations.js +0 -0
  149. package/dist/collection/{utils → managers}/kup-manager/kup-manager.js +45 -4
  150. package/dist/collection/managers/kup-math/kup-math-declarations.js +13 -0
  151. package/dist/collection/managers/kup-math/kup-math-helper.js +39 -0
  152. package/dist/collection/managers/kup-math/kup-math.js +151 -0
  153. package/dist/collection/{utils → managers}/kup-objects/kup-objects-declarations.js +0 -0
  154. package/dist/collection/{utils → managers}/kup-objects/kup-objects.js +15 -0
  155. package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +0 -0
  156. package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.js +0 -0
  157. package/dist/collection/{utils → managers}/kup-search/kup-search-declarations.js +0 -0
  158. package/dist/collection/{utils → managers}/kup-search/kup-search.js +0 -1
  159. package/dist/collection/{utils → managers}/kup-theme/kup-theme-declarations.js +99 -0
  160. package/dist/collection/{utils → managers}/kup-theme/kup-theme.js +117 -68
  161. package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar-declarations.js +0 -0
  162. package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar.js +0 -0
  163. package/dist/collection/types/GenericTypes.js +48 -1
  164. package/dist/collection/utils/cell-utils.js +3 -4
  165. package/dist/collection/utils/filters/filters-column-menu.js +7 -7
  166. package/dist/collection/utils/filters/filters-rows.js +2 -2
  167. package/dist/collection/utils/filters/filters-tree-items.js +12 -12
  168. package/dist/collection/utils/filters/filters.js +3 -2
  169. package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +1 -0
  170. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +100 -68
  171. package/dist/collection/utils/utils.js +4 -4
  172. package/dist/esm/{cell-utils-9a2914fc.js → cell-utils-571978d6.js} +4 -4
  173. package/dist/esm/{component-d2803feb.js → component-c4eb6153.js} +204 -170
  174. package/dist/esm/{f-button-55a9ed88.js → f-button-b3011cc2.js} +2 -2
  175. package/dist/esm/{f-cell-ac520cb2.js → f-cell-b88b2731.js} +62 -48
  176. package/dist/esm/f-chip-a52489ec.js +128 -0
  177. package/dist/esm/{f-image-70ca9dfe.js → f-image-5e5ed7e2.js} +3 -3
  178. package/dist/esm/{index-e0e67c23.js → index-78f3699d.js} +23 -0
  179. package/dist/esm/ketchup.js +3 -3
  180. package/dist/esm/kup-accordion.entry.js +7 -7
  181. package/dist/esm/{kup-autocomplete_28.entry.js → kup-autocomplete_27.entry.js} +5570 -4615
  182. package/dist/esm/kup-calendar.entry.js +626 -359
  183. package/dist/esm/kup-cell.entry.js +15 -13
  184. package/dist/esm/kup-dash-list.entry.js +4 -4
  185. package/dist/esm/kup-dash_2.entry.js +8 -7
  186. package/dist/esm/kup-drawer.entry.js +3 -3
  187. package/dist/esm/kup-echart.entry.js +93035 -0
  188. package/dist/esm/kup-field.entry.js +2 -2
  189. package/dist/esm/kup-iframe.entry.js +3 -3
  190. package/dist/esm/kup-lazy.entry.js +22 -5
  191. package/dist/esm/kup-magic-box.entry.js +95 -42
  192. package/dist/esm/{kup-manager-bba32828.js → kup-manager-1f76a3ef.js} +3391 -737
  193. package/dist/esm/kup-nav-bar.entry.js +3 -3
  194. package/dist/esm/kup-probe.entry.js +2 -2
  195. package/dist/esm/kup-qlik.entry.js +2 -2
  196. package/dist/esm/kup-snackbar.entry.js +5 -5
  197. package/dist/esm/loader.js +3 -3
  198. package/dist/esm/polyfills/css-shim.js +1 -1
  199. package/dist/esm/{tslib.es6-e6137777.js → tslib.es6-8f2d44b6.js} +13 -1
  200. package/dist/esm/utils-93ae800f.js +461 -0
  201. package/dist/ketchup/assets/maps/africa.json +6116 -0
  202. package/dist/ketchup/assets/maps/america.json +5416 -0
  203. package/dist/ketchup/assets/maps/asia.json +6053 -0
  204. package/dist/ketchup/assets/maps/europe.json +5051 -0
  205. package/dist/ketchup/assets/maps/italy.json +3562 -0
  206. package/dist/ketchup/assets/maps/oceania.json +1069 -0
  207. package/dist/ketchup/assets/maps/world.json +23685 -0
  208. package/dist/ketchup/assets/svg/science.svg +1 -0
  209. package/dist/ketchup/ketchup.esm.js +1 -1
  210. package/dist/ketchup/{p-74259992.entry.js → p-088a886c.entry.js} +1 -1
  211. package/dist/ketchup/p-135cabdc.entry.js +1 -0
  212. package/dist/ketchup/p-1c1e830f.entry.js +1 -0
  213. package/dist/ketchup/{p-69a705ae.entry.js → p-29208220.entry.js} +1 -1
  214. package/dist/ketchup/{p-62208488.entry.js → p-2b9f2019.entry.js} +1 -1
  215. package/dist/ketchup/p-52d0582a.js +1 -0
  216. package/dist/ketchup/p-554bd5f0.entry.js +39 -0
  217. package/dist/ketchup/{p-06c209a5.js → p-5f52e313.js} +1 -1
  218. package/dist/ketchup/{p-e90934b5.entry.js → p-65449480.entry.js} +1 -1
  219. package/dist/ketchup/p-79cf3874.entry.js +1 -0
  220. package/dist/ketchup/p-7a85cda4.js +1 -0
  221. package/dist/ketchup/p-84cce555.entry.js +27 -0
  222. package/dist/ketchup/p-8c44c3b9.js +135 -0
  223. package/dist/ketchup/{p-ff7d590e.entry.js → p-9d49cdb2.entry.js} +1 -1
  224. package/dist/ketchup/{p-5a4a5fdc.js → p-a0b1d769.js} +1 -1
  225. package/dist/ketchup/{p-40df35de.entry.js → p-a2b6672e.entry.js} +1 -1
  226. package/dist/ketchup/{p-5faf7715.entry.js → p-a4be630b.entry.js} +1 -1
  227. package/dist/ketchup/p-c072b270.js +1 -0
  228. package/dist/ketchup/{p-daf03877.entry.js → p-c648972c.entry.js} +1 -1
  229. package/dist/ketchup/{p-03ae1be9.entry.js → p-d67d39c0.entry.js} +1 -1
  230. package/dist/ketchup/p-d6e2f2b0.entry.js +1 -0
  231. package/dist/ketchup/{p-52038ccb.js → p-da387e0e.js} +1 -1
  232. package/dist/ketchup/p-e5c9ec9e.js +1 -0
  233. package/dist/ketchup/{p-cb5f4994.js → p-ed0b8666.js} +0 -0
  234. package/dist/ketchup/p-ef539eda.js +9 -0
  235. package/dist/ketchup/p-f316234c.entry.js +143 -0
  236. package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +2 -2
  237. package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +6 -0
  238. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +29 -22
  239. package/dist/types/components/kup-box/kup-box-declarations.d.ts +7 -11
  240. package/dist/types/components/kup-box/kup-box.d.ts +4 -4
  241. package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +6 -1
  242. package/dist/types/components/kup-button-list/kup-button-list.d.ts +4 -3
  243. package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +28 -10
  244. package/dist/types/components/kup-calendar/kup-calendar.d.ts +19 -47
  245. package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +27 -0
  246. package/dist/types/components/kup-card/built-in/kup-card-calendar.d.ts +2 -0
  247. package/dist/types/components/kup-card/built-in/kup-card-clock.d.ts +2 -0
  248. package/dist/types/components/kup-card/built-in/kup-card-column-drop-menu.d.ts +3 -0
  249. package/dist/types/components/kup-card/free/kup-card-free.d.ts +14 -0
  250. package/dist/types/components/kup-card/kup-card-declarations.d.ts +100 -1
  251. package/dist/types/components/kup-card/kup-card.d.ts +12 -5
  252. package/dist/types/components/kup-cell/kup-cell.d.ts +3 -3
  253. package/dist/types/components/kup-chart/kup-chart-builder.d.ts +5 -5
  254. package/dist/types/components/kup-chart/kup-chart-declarations.d.ts +3 -3
  255. package/dist/types/components/kup-chart/kup-chart.d.ts +2 -2
  256. package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +6 -3
  257. package/dist/types/components/kup-chip/kup-chip.d.ts +9 -13
  258. package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +7 -3
  259. package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +4 -0
  260. package/dist/types/components/kup-combobox/kup-combobox.d.ts +11 -33
  261. package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +2 -2
  262. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +45 -109
  263. package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +8 -11
  264. package/dist/types/components/kup-data-table/kup-data-table.d.ts +50 -29
  265. package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +0 -10
  266. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +55 -0
  267. package/dist/types/components/kup-echart/kup-echart.d.ts +100 -0
  268. package/dist/types/components/kup-lazy/kup-lazy.d.ts +13 -1
  269. package/dist/types/components/kup-list/kup-list-declarations.d.ts +2 -1
  270. package/dist/types/components/kup-list/kup-list.d.ts +4 -35
  271. package/dist/types/components/kup-magic-box/kup-magic-box-declarations.d.ts +6 -10
  272. package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +7 -11
  273. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +2 -9
  274. package/dist/types/components/kup-tooltip/kup-tooltip-declarations.d.ts +11 -13
  275. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +14 -35
  276. package/dist/types/components/kup-tree/kup-tree-faker.d.ts +10 -10
  277. package/dist/types/components/kup-tree/kup-tree.d.ts +45 -35
  278. package/dist/types/components.d.ts +307 -188
  279. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +11 -10
  280. package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +7 -22
  281. package/dist/types/f-components/f-paginator/f-paginator-declarations.d.ts +22 -0
  282. package/dist/types/f-components/f-paginator/f-paginator-utils.d.ts +2 -0
  283. package/dist/types/f-components/f-paginator/f-paginator.d.ts +3 -0
  284. package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +24 -0
  285. package/dist/types/managers/kup-data/kup-data-column-helper.d.ts +31 -0
  286. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +160 -0
  287. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +23 -0
  288. package/dist/types/managers/kup-data/kup-data-row-helper.d.ts +14 -0
  289. package/dist/types/managers/kup-data/kup-data.d.ts +77 -0
  290. package/dist/types/{utils → managers}/kup-dates/kup-dates-declarations.d.ts +0 -0
  291. package/dist/types/{utils → managers}/kup-dates/kup-dates.d.ts +24 -2
  292. package/dist/types/{utils → managers}/kup-debug/kup-debug-declarations.d.ts +0 -0
  293. package/dist/types/{utils → managers}/kup-debug/kup-debug.d.ts +6 -13
  294. package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -0
  295. package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position.d.ts +0 -0
  296. package/dist/types/{utils → managers}/kup-interact/kup-interact-declarations.d.ts +9 -8
  297. package/dist/types/{utils → managers}/kup-interact/kup-interact.d.ts +7 -6
  298. package/dist/types/{utils → managers}/kup-language/kup-language-declarations.d.ts +11 -1
  299. package/dist/types/{utils → managers}/kup-language/kup-language.d.ts +3 -3
  300. package/dist/types/{utils → managers}/kup-manager/kup-manager-declarations.d.ts +21 -2
  301. package/dist/types/{utils → managers}/kup-manager/kup-manager.d.ts +4 -0
  302. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +21 -0
  303. package/dist/types/managers/kup-math/kup-math-helper.d.ts +17 -0
  304. package/dist/types/managers/kup-math/kup-math.d.ts +60 -0
  305. package/dist/types/{utils → managers}/kup-objects/kup-objects-declarations.d.ts +0 -0
  306. package/dist/types/{utils → managers}/kup-objects/kup-objects.d.ts +6 -0
  307. package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +0 -0
  308. package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +0 -0
  309. package/dist/types/{utils → managers}/kup-search/kup-search-declarations.d.ts +0 -0
  310. package/dist/types/{utils → managers}/kup-search/kup-search.d.ts +0 -0
  311. package/dist/types/{utils → managers}/kup-theme/kup-theme-declarations.d.ts +37 -1
  312. package/dist/types/{utils → managers}/kup-theme/kup-theme.d.ts +19 -19
  313. package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar-declarations.d.ts +0 -0
  314. package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar.d.ts +0 -0
  315. package/dist/types/stencil-public-runtime.d.ts +6 -4
  316. package/dist/types/types/GenericTypes.d.ts +53 -6
  317. package/dist/types/utils/cell-utils.d.ts +7 -6
  318. package/dist/types/utils/filters/filters-column-menu.d.ts +16 -16
  319. package/dist/types/utils/filters/filters-rows.d.ts +10 -10
  320. package/dist/types/utils/filters/filters-tree-items.d.ts +7 -7
  321. package/dist/types/utils/helpers.d.ts +2 -2
  322. package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +1 -0
  323. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +27 -33
  324. package/dist/types/utils/utils.d.ts +4 -2
  325. package/package.json +31 -26
  326. package/dist/cjs/f-chip-ce69b7d2.js +0 -141
  327. package/dist/cjs/utils-b3ec89fe.js +0 -1550
  328. package/dist/collection/components/kup-paginator/kup-paginator-declarations.js +0 -5
  329. package/dist/collection/components/kup-paginator/kup-paginator.css +0 -46
  330. package/dist/collection/components/kup-paginator/kup-paginator.js +0 -408
  331. package/dist/esm/f-chip-babf1740.js +0 -139
  332. package/dist/esm/utils-cfcbe33f.js +0 -1526
  333. package/dist/ketchup/p-1ce9a037.js +0 -1
  334. package/dist/ketchup/p-1e2c3497.js +0 -1
  335. package/dist/ketchup/p-4748be4b.js +0 -8
  336. package/dist/ketchup/p-5db41fae.entry.js +0 -45
  337. package/dist/ketchup/p-6cc8264d.entry.js +0 -1
  338. package/dist/ketchup/p-756aa8b1.entry.js +0 -1
  339. package/dist/ketchup/p-9d02a676.js +0 -134
  340. package/dist/ketchup/p-a7687c0e.entry.js +0 -27
  341. package/dist/ketchup/p-d58dbf0e.js +0 -1
  342. package/dist/ketchup/p-d6ce1ac6.entry.js +0 -1
  343. package/dist/ketchup/p-ea387b49.entry.js +0 -1
  344. package/dist/ketchup/p-f6bff949.js +0 -1
  345. package/dist/types/components/kup-paginator/kup-paginator-declarations.d.ts +0 -11
  346. 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;
@@ -305,9 +311,7 @@ export declare class KupDataTable {
305
311
  private tableAreaRef;
306
312
  private stickyTheadRef;
307
313
  private customizeTopButtonRef;
308
- private customizeBottomButtonRef;
309
314
  private customizeTopPanelRef;
310
- private customizeBottomPanelRef;
311
315
  private sizedColumns;
312
316
  private intObserver;
313
317
  private navBarHeight;
@@ -331,6 +335,8 @@ export declare class KupDataTable {
331
335
  private removeDropareaRef;
332
336
  private groupsDropareaRef;
333
337
  private clickCb;
338
+ private clickCbCustomPanel;
339
+ private clickCbDropCard;
334
340
  /**
335
341
  * Used to prevent too many resizes callbacks at once.
336
342
  */
@@ -338,14 +344,10 @@ export declare class KupDataTable {
338
344
  private columnMenuInstance;
339
345
  private filtersColumnMenuInstance;
340
346
  private filtersRowsInstance;
341
- /**
342
- * Reference to the row detail card.
343
- */
344
347
  private detailCard;
345
- /**
346
- * Reference to the column menu card.
347
- */
348
348
  private columnMenuCard;
349
+ private columnDropCard;
350
+ private columnDropCardAnchor;
349
351
  /**
350
352
  * When component unload is complete
351
353
  */
@@ -387,6 +389,14 @@ export declare class KupDataTable {
387
389
  */
388
390
  kupRowActionClick: EventEmitter<KupDatatableRowActionClickEventPayload>;
389
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>;
390
400
  /**
391
401
  * Closes any opened column menu.
392
402
  */
@@ -405,6 +415,18 @@ export declare class KupDataTable {
405
415
  * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
406
416
  */
407
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>;
408
430
  /**
409
431
  * Opens the column menu of the given column.
410
432
  * @param {string} column - Name of the column.
@@ -435,12 +457,13 @@ export declare class KupDataTable {
435
457
  * @param {boolean} emitEvent - The event will always be emitted unless emitEvent is set to false.
436
458
  */
437
459
  setSelectedRows(rowsById: string, emitEvent?: boolean): Promise<void>;
460
+ private closeDropCard;
461
+ private createDropCard;
438
462
  private calculateData;
439
463
  private setTransposedData;
440
464
  private switchToTotalsMatrix;
441
465
  private setObjForTotalsMatrix;
442
466
  private getTransposedData;
443
- private getColumnFromCell;
444
467
  private stickyHeaderPosition;
445
468
  private updateStickyHeaderSize;
446
469
  private setObserver;
@@ -463,11 +486,11 @@ export declare class KupDataTable {
463
486
  private getEventPath;
464
487
  private resetSelectedRows;
465
488
  resetCurrentPage(): void;
466
- getColumns(): Array<Column>;
489
+ getColumns(): Array<KupDataColumn>;
467
490
  private getSizedColumns;
468
491
  /**
469
492
  * Opens a card containing the detail of the given row.
470
- * @param {Row} row - Row for which the detail was requested.
493
+ * @param {KupDataTableRow} row - Row for which the detail was requested.
471
494
  * @param {number} x - Initial x coordinates of the card.
472
495
  * @param {number} y - Initial y coordinates of the card.
473
496
  * @private
@@ -478,10 +501,10 @@ export declare class KupDataTable {
478
501
  private clickHandler;
479
502
  private contextMenuHandler;
480
503
  private dblClickHandler;
481
- getVisibleColumns(): Array<Column>;
504
+ getVisibleColumns(): Array<KupDataColumn>;
482
505
  getGroupByName(column: string): GroupObject;
483
- getColumnValues(column: Column): ValueDisplayedValue[];
484
- getRows(): Array<Row>;
506
+ getColumnValues(column: KupDataColumn): ValueDisplayedValue[];
507
+ getRows(): Array<KupDataTableRow>;
485
508
  private initRows;
486
509
  private filterRows;
487
510
  private isGrouping;
@@ -503,8 +526,8 @@ export declare class KupDataTable {
503
526
  private onRemoveFilter;
504
527
  private getFilterValueForTooltip;
505
528
  private onGlobalFilterChange;
506
- private handlePageChanged;
507
- private handleRowsPerPageChanged;
529
+ private handlePageChange;
530
+ private handleRowsPerPageChange;
508
531
  private onRowClick;
509
532
  private selectColumn;
510
533
  private deselectColumn;
@@ -521,7 +544,7 @@ export declare class KupDataTable {
521
544
  getInternalState(): Promise<{
522
545
  groups: GroupObject[];
523
546
  filters: GenericFilter;
524
- data: TableData;
547
+ data: KupDataTableDataset;
525
548
  }>;
526
549
  private onLoadMoreClick;
527
550
  private adjustGroupState;
@@ -539,7 +562,7 @@ export declare class KupDataTable {
539
562
  * @param sortedColumnIndex - The index where the column will be removed
540
563
  */
541
564
  private moveSortedColumns;
542
- defaultSortingFunction(columns: Column[], receivingColumnIndex: number, sortedColumnIndex: number, useNewObject?: boolean): Promise<Column[]>;
565
+ defaultSortingFunction(columns: KupDataColumn[], receivingColumnIndex: number, sortedColumnIndex: number, useNewObject?: boolean): Promise<KupDataColumn[]>;
543
566
  private applyLineBreaks;
544
567
  /**
545
568
  * Given the parameters return the classes and style for each table header cell
@@ -551,14 +574,13 @@ export declare class KupDataTable {
551
574
  private renderHeader;
552
575
  private renderStickyHeader;
553
576
  renderTooltip(): any;
554
- areTotalsSelected(column: Column): boolean;
577
+ areTotalsSelected(column: KupDataColumn): boolean;
555
578
  onTotalsChange(event: any, column: any): void;
556
579
  private totalMenuPosition;
557
580
  private onTotalMenuOpen;
558
581
  renderFooter(): any;
559
582
  private renderRow;
560
583
  private renderActions;
561
- private renderLoadMoreButton;
562
584
  private onCustomSettingsClick;
563
585
  private openCustomSettings;
564
586
  private closeCustomSettings;
@@ -567,7 +589,6 @@ export declare class KupDataTable {
567
589
  private columnRemoveArea;
568
590
  private columnGroupArea;
569
591
  private hideShowColumnDropArea;
570
- private handleColumnRemove;
571
592
  private handleColumnGroup;
572
593
  private transcodeItem;
573
594
  private createListData;
@@ -36,11 +36,9 @@ export declare class KupDatePicker {
36
36
  * Instance of the KupManager class.
37
37
  */
38
38
  private kupManager;
39
- private calendarView;
40
39
  private textfieldEl;
41
40
  private pickerContainerEl;
42
41
  private pickerEl;
43
- private pickerOpened;
44
42
  private clickCb;
45
43
  kupBlur: EventEmitter<KupDatePickerEventPayload>;
46
44
  kupChange: EventEmitter<KupDatePickerEventPayload>;
@@ -53,7 +51,6 @@ export declare class KupDatePicker {
53
51
  kupClearIconClick: EventEmitter<KupEventPayload>;
54
52
  onKupDatePickerItemClick(value: string): void;
55
53
  onKupClearIconClick(): void;
56
- onKupDatePickerMonthYearItemClick(value: string): void;
57
54
  onKupBlur(): void;
58
55
  onKupChange(e: InputEvent): void;
59
56
  onKupClick(): void;
@@ -103,13 +100,6 @@ export declare class KupDatePicker {
103
100
  };
104
101
  isRelatedTargetInThisComponent(e: any): boolean;
105
102
  prepDatePicker(): any;
106
- createCalendar(): any;
107
- private createDaysCalendar;
108
- private createMonthsCalendar;
109
- private createYearsCalendar;
110
- private changeView;
111
- private prevPage;
112
- private nextPage;
113
103
  getDateForOutput(): string;
114
104
  componentWillLoad(): void;
115
105
  componentDidLoad(): void;
@@ -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.
@@ -56,10 +56,9 @@ export declare class KupTimePicker {
56
56
  private hoursActive;
57
57
  private minutesActive;
58
58
  private secondsActive;
59
+ private textFieldContainerEl;
59
60
  private textfieldEl;
60
- private pickerContainerEl;
61
- private pickerEl;
62
- private pickerOpened;
61
+ private pickerKupEl;
63
62
  private clickCb;
64
63
  kupBlur: EventEmitter<KupTimePickerEventPayload>;
65
64
  kupChange: EventEmitter<KupTimePickerEventPayload>;
@@ -120,12 +119,6 @@ export declare class KupTimePicker {
120
119
  getPickerElId(): string;
121
120
  prepTextfield(initialValue: string): any;
122
121
  isRelatedTargetInThisComponent(e: any): boolean;
123
- private setTimeFromClock;
124
- private createClock;
125
- private switchView;
126
- private setClockViewActive;
127
- private buildClock;
128
- private setClockTime;
129
122
  prepTimePicker(): any;
130
123
  private createTimeListData;
131
124
  getTimeForOutput(): string;