@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,20 +1,20 @@
1
1
  import type { VNode } from '../../stencil-public-runtime';
2
- import type { Cell, Column, Row } from '../../components/kup-data-table/kup-data-table-declarations';
3
- import type { FComponent, KupEventPayload } from '../../types/GenericTypes';
4
- export declare const autoAlignComps: string[];
2
+ import { KupDataCell, KupDataColumn, KupDataRow } from '../../managers/kup-data/kup-data-declarations';
3
+ import { FComponent, KupEventPayload, KupTagNames } from '../../types/GenericTypes';
4
+ export declare const autoAlignComps: KupTagNames[];
5
5
  /**
6
6
  * Props of the f-cell component.
7
7
  */
8
8
  export interface FCellProps extends FComponent {
9
- cell?: Cell;
10
- column?: Column;
9
+ cell?: KupDataCell;
10
+ column?: KupDataColumn;
11
11
  component?: unknown;
12
12
  density?: FCellPadding;
13
13
  editable?: boolean;
14
14
  indents?: VNode[];
15
15
  previousValue?: string;
16
16
  renderKup?: boolean;
17
- row?: Row;
17
+ row?: KupDataRow;
18
18
  setSizes?: boolean;
19
19
  shape?: FCellShapes;
20
20
  }
@@ -31,6 +31,7 @@ export interface FCellInfo {
31
31
  */
32
32
  export declare enum FCellEvents {
33
33
  CLICK = "kup-cell-click",
34
+ ICON_CLICK = "kup-cell-iconclick",
34
35
  INPUT = "kup-cell-input",
35
36
  UPDATE = "kup-cell-update"
36
37
  }
@@ -145,9 +146,9 @@ export declare const kupTypes: FCellTypes[];
145
146
  * Payload of the event fired when a cell is updated.
146
147
  */
147
148
  export interface FCellEventPayload extends KupEventPayload {
148
- cell: Cell;
149
- column: Column;
150
- event: CustomEvent | InputEvent;
151
- row: Row;
149
+ cell: KupDataCell;
150
+ column: KupDataColumn;
151
+ event: CustomEvent | InputEvent | MouseEvent;
152
+ row: KupDataRow;
152
153
  type: FCellTypes;
153
154
  }
@@ -1,32 +1,17 @@
1
1
  import type { FComponent } from '../../types/GenericTypes';
2
- import { KupObj } from '../../utils/kup-objects/kup-objects-declarations';
3
- import { TreeNode } from '../../components/kup-tree/kup-tree-declarations';
2
+ import { KupChipNode } from '../../components/kup-chip/kup-chip-declarations';
4
3
  /**
5
4
  * Props of the f-chip component.
6
5
  */
7
6
  export interface FChipsProps extends FComponent {
8
- data?: FChipData[];
9
- dataNew?: TreeNode[];
10
- onClick?: ((event: MouseEvent) => void)[];
11
- onBlur?: ((event: FocusEvent) => void)[];
12
- onFocus?: ((event: FocusEvent) => void)[];
13
- onIconClick?: ((event: MouseEvent) => void)[];
7
+ data?: KupChipNode[];
8
+ onBlur?: ((chip: KupChipNode, e: FocusEvent) => void)[];
9
+ onClick?: ((chip: KupChipNode, e: PointerEvent) => void)[];
10
+ onExpansionClick?: ((chip: KupChipNode, e: PointerEvent) => void)[];
11
+ onFocus?: ((chip: KupChipNode, e: FocusEvent) => void)[];
12
+ onIconClick?: ((chip: KupChipNode, e: PointerEvent) => void)[];
14
13
  type?: FChipType;
15
14
  }
16
- /**
17
- * The object of a single chip contained in a chip set.
18
- * @property {string} value - Intrinsic/server side value.
19
- * @property {string} icon - Icon displayed on the left.
20
- * @property {string} label - Displayed text.
21
- * @property {boolean} checked - Defines whether a chip is selected or not.
22
- */
23
- export interface FChipData {
24
- label: string;
25
- value: string;
26
- checked?: boolean;
27
- icon?: string;
28
- obj?: KupObj;
29
- }
30
15
  /**
31
16
  * Types of the f-chip component.
32
17
  * @enum {string}
@@ -0,0 +1,22 @@
1
+ import type { FComponent } from '../../types/GenericTypes';
2
+ /**
3
+ * Props of the f-paginator component.
4
+ */
5
+ export interface FPaginatorProps extends FComponent {
6
+ currentPage?: number;
7
+ max?: number;
8
+ mode?: FPaginatorMode;
9
+ perPage?: number;
10
+ onLoadMore?: () => void;
11
+ onNextPage?: () => void;
12
+ onPageChange?: (event: CustomEvent) => void;
13
+ onPrevPage?: () => void;
14
+ onRowsChange?: (event: CustomEvent) => void;
15
+ }
16
+ export declare enum FPaginatorMode {
17
+ SIMPLE = "simple",
18
+ FULL = "full"
19
+ }
20
+ export interface KupPaginatorPageChangedEventPayload {
21
+ newPage: number;
22
+ }
@@ -0,0 +1,2 @@
1
+ export declare function pageChange(pageNumber: number, max: number, perPage: number): number;
2
+ export declare function rowsPerPageChange(rowsNumber: number, max: number): number;
@@ -0,0 +1,3 @@
1
+ import { FunctionalComponent } from '../../stencil-public-runtime';
2
+ import { FPaginatorProps } from './f-paginator-declarations';
3
+ export declare const FPaginator: FunctionalComponent<FPaginatorProps>;
@@ -0,0 +1,24 @@
1
+ import { KupDataCell, KupDataDataset, KupDataFindCellFilters } from './kup-data-declarations';
2
+ /**
3
+ * Finds all the cells matching the filters criteria in the input dataset.
4
+ * @param {KupDataDataset} dataset - Input dataset.
5
+ * @param {KupDataFindCellFilters} filters - Filters of the research.
6
+ * @returns {KupDataCell[]} Array of cells fetched after applying the filters.
7
+ */
8
+ export declare function findCell(dataset: KupDataDataset, filters: KupDataFindCellFilters): KupDataCell[];
9
+ /**
10
+ * Returns all the cells values of the specified columns.
11
+ * @param {KupDataDataset} dataset - Input dataset.
12
+ * @param {string[]} columns - Columns included in the search. When missing, searches all columns.
13
+ * @returns {string[]} Values of the cells.
14
+ */
15
+ export declare function getCellValue(dataset: KupDataDataset, columns?: string[]): string[];
16
+ /**
17
+ * Overrides the given cell attributes for the specified columns.
18
+ * If no columns are provided, the value will be applied to every column of the dataset.
19
+ * @param {KupDataDataset} dataset - Input dataset.
20
+ * @param {KupDataCell} cell - New cell.
21
+ * @param {string[]} columns - Columns to be handled.
22
+ * @returns {KupDataCell[]} Replaced cells.
23
+ */
24
+ export declare function replaceCell(dataset: KupDataDataset, cell: KupDataCell, columns?: string[]): KupDataCell[];
@@ -0,0 +1,31 @@
1
+ import { KupDataColumn, KupDataDataset, KupDataNewColumnOptions, KupDataNewColumnTypes } from './kup-data-declarations';
2
+ /**
3
+ * Finds the columns matching the criteria specified in the filters argument.
4
+ * @param {KupDataDataset | Column[]} dataset - Input dataset or array of columns.
5
+ * @param {Partial<Column>} filters - Column interface containing the filters to match.
6
+ * @returns {Column[]} Columns matching the criteria.
7
+ */
8
+ export declare function findColumns(dataset: KupDataDataset | KupDataColumn[], filters: Partial<KupDataColumn>): KupDataColumn[];
9
+ /**
10
+ * Sets the given columns of the input dataset to be hidden.
11
+ * @param {KupDataDataset | Column[]} dataset - Input dataset or array of columns.
12
+ * @param {string[]} columns2hide - Names of columns to hide.
13
+ * @returns {KupDataColumn[]} Columns that were set to hidden.
14
+ */
15
+ export declare function hideColumns(dataset: KupDataDataset | KupDataColumn[], columns2hide: string[]): KupDataColumn[];
16
+ /**
17
+ * Creates a new column with the specified options.
18
+ * @param {KupDataDataset} dataset - Input dataset.
19
+ * @param {KupDataNewColumnTypes} type - Type of column creation.
20
+ * @param {KupDataNewColumnOptions} options - Options used by the submethods to create the column.
21
+ * @returns {string | Column} Returns the new column created or a string containing the error message (if something went wrong).
22
+ */
23
+ export declare function newColumn(dataset: KupDataDataset, type: KupDataNewColumnTypes, options?: KupDataNewColumnOptions): string | KupDataColumn;
24
+ /**
25
+ * Takes the columns to merge and creates a new column with their cells. The merged columns will then be removed.
26
+ * @param {KupDataDataset} dataset - Input dataset.
27
+ * @param {string[]} columns2merge - Names of columns to merge.
28
+ * @param {KupDataColumn} newColumn - Column created.
29
+ * @returns {KupDataColumn} Resulting column.
30
+ */
31
+ export declare function newColumnFromMerge(dataset: KupDataDataset, columns2merge: string[], newColumn: KupDataColumn): KupDataColumn;
@@ -0,0 +1,160 @@
1
+ import { FCellInfo, FCellShapes } from '../../f-components/f-cell/f-cell-declarations';
2
+ import { GenericMap, GenericObject } from '../../types/GenericTypes';
3
+ import { KupObj } from '../kup-objects/kup-objects-declarations';
4
+ /**
5
+ * Generic dataset interface.
6
+ */
7
+ export interface KupDataDataset {
8
+ columns?: KupDataColumn[];
9
+ rows?: KupDataRow[];
10
+ }
11
+ /**
12
+ * Generic column interface.
13
+ */
14
+ export interface KupDataColumn {
15
+ name: string;
16
+ title: string;
17
+ children?: KupDataColumnChild[];
18
+ cssClass?: string;
19
+ decimals?: number;
20
+ formula?: string;
21
+ hideValuesRepetitions?: boolean;
22
+ icon?: string;
23
+ isKey?: boolean;
24
+ mergedFrom?: string[];
25
+ obj?: KupObj;
26
+ objs?: KupObj[];
27
+ resultOf?: string;
28
+ shape?: FCellShapes;
29
+ size?: string;
30
+ valuesForFilter?: string[];
31
+ visible?: boolean;
32
+ style?: GenericMap;
33
+ }
34
+ export interface KupDataColumnChild {
35
+ name: string;
36
+ obj: KupObj;
37
+ icon?: string;
38
+ }
39
+ /**
40
+ * Generic row interface.
41
+ */
42
+ export interface KupDataRow {
43
+ cells?: KupDataRowCells;
44
+ actions?: KupDataRowAction[];
45
+ cssClass?: string;
46
+ id?: string;
47
+ readOnly?: boolean;
48
+ transposedColumnName?: string;
49
+ }
50
+ export interface KupDataRowCells {
51
+ [index: string]: KupDataCell;
52
+ }
53
+ export interface KupDataRowAction {
54
+ text: string;
55
+ icon: string;
56
+ }
57
+ /**
58
+ * Generic cell interface.
59
+ */
60
+ export interface KupDataCell {
61
+ value: string;
62
+ cardID?: number;
63
+ cssClass?: string;
64
+ data?: GenericObject;
65
+ displayedValue?: string;
66
+ icon?: string;
67
+ info?: FCellInfo;
68
+ isEditable?: boolean;
69
+ obj?: KupObj;
70
+ shape?: FCellShapes;
71
+ style?: GenericMap;
72
+ styleContent?: GenericMap;
73
+ title?: string;
74
+ }
75
+ /**
76
+ * Generic tree node interface.
77
+ */
78
+ export interface KupDataNode extends KupDataRow {
79
+ value: string;
80
+ children?: KupDataNode[];
81
+ disabled?: boolean;
82
+ obj?: KupObj;
83
+ icon?: string;
84
+ isExpanded?: boolean;
85
+ title?: string;
86
+ }
87
+ /**
88
+ * Interface related to cells operations.
89
+ */
90
+ export interface KupDataCellOperations {
91
+ find: (dataset: KupDataDataset, filters?: KupDataFindCellFilters) => KupDataCell[];
92
+ getValue: (dataset: KupDataDataset, columns?: string[]) => string[];
93
+ replace: (dataset: KupDataDataset, cell: KupDataCell, columns?: string[]) => KupDataCell[];
94
+ }
95
+ /**
96
+ * Interface related to columns operations.
97
+ */
98
+ export interface KupDataColumnOperations {
99
+ find: (dataset: KupDataDataset, filters?: Partial<KupDataColumn>) => KupDataColumn[];
100
+ hide: (dataset: KupDataDataset | KupDataColumn[], columns2hide: string[]) => KupDataColumn[];
101
+ new: (dataset: KupDataDataset, type: KupDataNewColumnTypes, options: KupDataNewColumnOptions) => string | KupDataColumn;
102
+ }
103
+ /**
104
+ * Interface related to nodes operations.
105
+ */
106
+ export interface KupDataNodeOperations {
107
+ remove: (nodes: KupDataNode[], node2remove: KupDataNode) => KupDataNode;
108
+ setProperties: (nodes: KupDataNode[], properties: Partial<KupDataNode>, recursively?: boolean, exclude?: KupDataNode[]) => KupDataNode[];
109
+ toStream: (nodes: KupDataNode[]) => KupDataNode[];
110
+ }
111
+ /**
112
+ * Interface related to rows operations.
113
+ */
114
+ export interface KupDataRowOperations {
115
+ find: (dataset: KupDataDataset, filters?: KupDataFindCellFilters) => KupDataRow[];
116
+ toNode: (dataset: KupDataDataset) => KupDataNode[];
117
+ }
118
+ /**
119
+ * Sets the filters for the cell finder method.
120
+ */
121
+ export interface KupDataFindCellFilters {
122
+ columns?: string[];
123
+ range?: KupDataFilterRange;
124
+ value?: string;
125
+ }
126
+ /**
127
+ * Interface of the range filter.
128
+ */
129
+ export interface KupDataFilterRange {
130
+ min?: number | string | String;
131
+ max?: number | string | String;
132
+ }
133
+ /**
134
+ * Interface for the creation of a new column.
135
+ */
136
+ export interface KupDataNewColumn {
137
+ column: KupDataColumn;
138
+ criteria: KupDataFindCellFilters;
139
+ }
140
+ /**
141
+ * Type to manage sort of the dataset.
142
+ */
143
+ export declare type KupDataDatasetSort = 'normalDistribution';
144
+ /**
145
+ * Interface containing the options related to column creation when invoking column.new.
146
+ */
147
+ export interface KupDataNewColumnOptions {
148
+ columns?: string[];
149
+ newColumn?: KupDataColumn;
150
+ operation?: string;
151
+ separator?: string;
152
+ }
153
+ /**
154
+ * Types of column creation when invoking column.new.
155
+ */
156
+ export declare enum KupDataNewColumnTypes {
157
+ CONCATENATE = "concatenate",
158
+ MATH = "math",
159
+ MERGE = "merge"
160
+ }
@@ -0,0 +1,23 @@
1
+ import { KupDataNode } from './kup-data-declarations';
2
+ /**
3
+ * Removes the given node from the input array, by searching even children.
4
+ * @param {KupDataNode[]} nodes - Input array of nodes.
5
+ * @param {KupDataNode} node2remove - Node to remove.
6
+ * @returns {KupDataNode} Copy of the removed node.
7
+ */
8
+ export declare function removeNode(nodes: KupDataNode[], node2remove: KupDataNode): KupDataNode;
9
+ /**
10
+ * Sets the values specified in the properties to every node of the input array.
11
+ * @param {KupDataNode[]} nodes - Input array of nodes.
12
+ * @param {Partial<KupDataNode>} properties - New properties values to set.
13
+ * @param {boolean} recursively - Sets values to every child node.
14
+ * @param {KupDataNode[]} exclude - Nodes to exclude (they won't be updated).
15
+ * @returns {KupDataNode[]} Array of the updated nodes.
16
+ */
17
+ export declare function setPropertiesNode(nodes: KupDataNode[], properties: Partial<KupDataNode>, recursively?: boolean, exclude?: KupDataNode[]): KupDataNode[];
18
+ /**
19
+ * Streamlines an array of nodes by recursively fetching every child node.
20
+ * @param {KupDataNode[]} nodes - Input array of nodes.
21
+ * @returns {KupDataNode[]} Streamlined array of every node and their children.
22
+ */
23
+ export declare function toStreamNode(nodes: KupDataNode[]): KupDataNode[];
@@ -0,0 +1,14 @@
1
+ import { KupDataDataset, KupDataFindCellFilters, KupDataNode, KupDataRow } from './kup-data-declarations';
2
+ /**
3
+ * Finds all the rows containing cells matching the filters criteria in the input dataset.
4
+ * @param {KupDataDataset} dataset - Input dataset.
5
+ * @param {KupDataFindCellFilters} filters - Filters of the research.
6
+ * @returns {KupDataRow[]} Array of rows fetched after applying the filters.
7
+ */
8
+ export declare function findRow(dataset: KupDataDataset, filters: KupDataFindCellFilters): KupDataRow[];
9
+ /**
10
+ * Converts the rows of the input dataset to tree nodes.
11
+ * @param {KupDataDataset} dataset - Input dataset.
12
+ * @returns {KupDataNode[]} Array of tree nodes.
13
+ */
14
+ export declare function toNode(dataset: KupDataDataset): KupDataNode[];
@@ -0,0 +1,77 @@
1
+ import { KupDataCell, KupDataColumn, KupDataDataset, KupDataDatasetSort, KupDataFindCellFilters, KupDataNewColumn, KupDataNewColumnOptions, KupDataNewColumnTypes, KupDataNode, KupDataRow } from './kup-data-declarations';
2
+ /**
3
+ * Handles data operations.
4
+ * @module KupData
5
+ */
6
+ export declare class KupData {
7
+ cell: {
8
+ find(dataset: KupDataDataset, filters: KupDataFindCellFilters): KupDataCell[];
9
+ getValue(dataset: KupDataDataset, columns?: string[]): string[];
10
+ replace(dataset: KupDataDataset, cell: KupDataCell, columns?: string[]): KupDataCell[];
11
+ };
12
+ column: {
13
+ find(dataset: KupDataDataset | KupDataColumn[], filters: Partial<KupDataColumn>): KupDataColumn[];
14
+ hide(dataset: KupDataDataset | KupDataColumn[], columns2hide: string[]): KupDataColumn[];
15
+ new(dataset: KupDataDataset, type: KupDataNewColumnTypes, options?: KupDataNewColumnOptions): string | KupDataColumn;
16
+ };
17
+ node: {
18
+ remove(nodes: KupDataNode[], node2remove: KupDataNode): KupDataNode;
19
+ setProperties(nodes: KupDataNode[], properties: Partial<KupDataNode>, recursively?: boolean, exclude?: KupDataNode[]): KupDataNode[];
20
+ toStream(nodes: KupDataNode[]): KupDataNode[];
21
+ };
22
+ row: {
23
+ find(dataset: KupDataDataset, filters: KupDataFindCellFilters): KupDataRow[];
24
+ toNode(dataset: KupDataDataset): KupDataNode[];
25
+ };
26
+ /**
27
+ * Utility used by findRow and findCell.
28
+ * @param {KupDataDataset} dataset - Input dataset.
29
+ * @param {KupDataFindCellFilters} filters - Filters of the research.
30
+ * @returns {{cells: KupDataCell[], rows: KupDataRow[]}} Object containing rows and cells.
31
+ */
32
+ finder(dataset: KupDataDataset, filters: KupDataFindCellFilters): {
33
+ cells: KupDataCell[];
34
+ rows: KupDataRow[];
35
+ };
36
+ /**
37
+ * Creates a new dataset with an amount of cells equal to a distinct calculation applied to the given columns.
38
+ * The original value of cells will be stored in the title property of the new cells.
39
+ * @param {KupDataDataset} dataset - Input dataset.
40
+ * @param {string[]} columns - Column names to manage. When missing, defaults to all columns.
41
+ * @param {KupDataColumn} valuesColumn - When present, this column will be included in the final dataset containing the original values of the cells.
42
+ * @returns {KupDataDataset} New dataset with processed data.
43
+ */
44
+ distinct(dataset: KupDataDataset, columns?: string[], valuesColumn?: KupDataColumn): KupDataDataset;
45
+ /**
46
+ * Creates a new dataset from the input one.
47
+ * The new columns are to be specified in the columns argument along with their creation criteria.
48
+ * @param {KupDataDataset} dataset - Input dataset.
49
+ * @param {KupDataNewColumn[]} newColumns - Array containing the specifics of the new columns to be created.
50
+ * @returns {KupDataDataset} Resulting dataset.
51
+ */
52
+ new(dataset: KupDataDataset, newColumns: KupDataNewColumn[]): KupDataDataset;
53
+ /**
54
+ * Performs a distinct/count after previously grouping columns by ranges.
55
+ * @param {KupDataDataset} dataset - Input dataset.
56
+ * @param {KupDataNewColumn[]} rangeColumns - A list of columns coupled with their criteria for creation. These are used to define ranges.
57
+ * @param {KupDataColumn} resultingColumn - The resulting column.
58
+ * @param {KupDataColumn} valuesColumn - When present, this column will be included in the final dataset containing the original values of the cells.
59
+ * @returns {KupDataDataset} New dataset with processed data.
60
+ */
61
+ rangedDistinct(dataset: KupDataDataset, rangeColumns: KupDataNewColumn[], resultingColumn: KupDataColumn, valuesColumn?: KupDataColumn): KupDataDataset;
62
+ /**
63
+ * Creates a new dataset with sorted elements.
64
+ * @param {KupDataDataset} dataset Input dataset.
65
+ * @param {KupDataDatasetSort} sortType Type of sort to apply.
66
+ * @param {string} headerColumn The column used for sorting.
67
+ * @returns {KupDataDataset} Sorted dataset.
68
+ */
69
+ sort(dataset: KupDataDataset, sortType: KupDataDatasetSort, headerColumn: string): KupDataDataset;
70
+ /**
71
+ * Creates a new dataset with transposed columns and rows.
72
+ * @param {KupDataDataset} dataset - Input dataset.
73
+ * @param {string} headerColumn - When specified, it will be the column used as header. When missing, the header will be a series of progressive numbers.
74
+ * @returns {KupDataDataset} Transposed dataset.
75
+ */
76
+ transpose(dataset: KupDataDataset, headerColumn?: string): KupDataDataset;
77
+ }
@@ -5,6 +5,7 @@ import 'dayjs/locale/it';
5
5
  import 'dayjs/locale/pl';
6
6
  import 'dayjs/locale/ru';
7
7
  import 'dayjs/locale/zh';
8
+ import { KupComponent } from '../../types/GenericTypes';
8
9
  import { KupDatesLocales, KupDatesNormalize } from './kup-dates-declarations';
9
10
  /**
10
11
  * Handles operations and formatting of dates.
@@ -13,6 +14,7 @@ import { KupDatesLocales, KupDatesNormalize } from './kup-dates-declarations';
13
14
  export declare class KupDates {
14
15
  dayjs: Function;
15
16
  locale: KupDatesLocales;
17
+ managedComponents: Set<KupComponent>;
16
18
  /**
17
19
  * Initializes KupDates.
18
20
  */
@@ -24,8 +26,7 @@ export declare class KupDates {
24
26
  */
25
27
  setLocale(locale?: KupDatesLocales): string;
26
28
  /**
27
- *
28
- * @returns the current locale
29
+ * @returns {string} The current locale.
29
30
  */
30
31
  getLocale(): string;
31
32
  /**
@@ -44,6 +45,7 @@ export declare class KupDates {
44
45
  * Validates the given date.
45
46
  * @param {dayjs.ConfigType} date - Date to be validated.
46
47
  * @param {string} format - Format of the input date.
48
+ * @param {boolean} strict - Strict parsing requires that the format and input match exactly, including delimiters.
47
49
  * @returns {boolean} Returns whether the argument is a valid date or not.
48
50
  */
49
51
  isValid(date: dayjs.ConfigType, format?: string, strict?: boolean): boolean;
@@ -80,6 +82,15 @@ export declare class KupDates {
80
82
  * @returns {dayjs.Dayjs} Maximum date.
81
83
  */
82
84
  max(dates: dayjs.ConfigType[]): dayjs.Dayjs;
85
+ /**
86
+ * Adds the given amount of time to the input date.
87
+ * @param {dayjs.ConfigType} input - Input date.
88
+ * @param {number} value - The value of the addition (i.e.: 7).
89
+ * @param {dayjs.OpUnitType} unit - The unit of the addition (i.e.: "year").
90
+ * @returns {dayjs.Dayjs} Computed date.
91
+ * @see https://day.js.org/docs/en/manipulate/add
92
+ */
93
+ add(input: dayjs.ConfigType, value: number, unit?: dayjs.OpUnitType): dayjs.Dayjs;
83
94
  /**
84
95
  * Subtracts the given amount of time from the input date.
85
96
  * @param {dayjs.ConfigType} input - Input date.
@@ -89,4 +100,15 @@ export declare class KupDates {
89
100
  * @see https://day.js.org/docs/en/manipulate/subtract
90
101
  */
91
102
  subtract(input: dayjs.ConfigType, value: number, unit?: dayjs.OpUnitType): dayjs.Dayjs;
103
+ /**
104
+ * Registers a KupComponent in KupDates, in order to be properly handled whenever the locale changes.
105
+ * @param {any} component - The Ketchup component to be registered.
106
+ */
107
+ register(component: any): void;
108
+ /**
109
+ * Unregisters a KupComponent, so it won't be refreshed when the locale changes.
110
+ *
111
+ * @param {any} component - The component calling this function.
112
+ */
113
+ unregister(component: any): void;
92
114
  }
@@ -26,6 +26,12 @@ export declare class KupDebug {
26
26
  * Creates the debug widget.
27
27
  */
28
28
  private showWidget;
29
+ /**
30
+ * Listens the card events and handles the related actions.
31
+ * @param {CustomEvent<KupCardEventPayload>} e - kup-card-event.
32
+ * @param {KupDebug} kupDebug - Instance of the KupDebug class.
33
+ */
34
+ private handleEvents;
29
35
  /**
30
36
  * Closes the debug widget.
31
37
  */
@@ -52,14 +58,8 @@ export declare class KupDebug {
52
58
  * @param {boolean} value - If this argument is provided, the debug status will be forced to its value.
53
59
  */
54
60
  toggle(value?: boolean): void;
55
- /**
56
- * Listens the card events and handles the related actions.
57
- * @param {CustomEvent} e - kup-card-event.
58
- */
59
- handleEvents(e: CustomEvent): void;
60
61
  /**
61
62
  * Function used to check whether the debug is active or not.
62
- * If kupDebug on documentElement's type is not a boolean, it will be set to false.
63
63
  * @returns {boolean} Status of the debug.
64
64
  */
65
65
  isDebug(): boolean;
@@ -79,13 +79,6 @@ export declare class KupDebug {
79
79
  * @param {KupDebugCategory} category - The type of console message, defaults to log but warning and error can be used as well.
80
80
  */
81
81
  logMessage(comp: any, message: string, category?: KupDebugCategory): void;
82
- /**
83
- * Function used to format a date.
84
- * Example: "Sun Mar 14 2021 13:50:56,329pm"
85
- * @param {Date} date - Date to be formatted.
86
- * @returns {string} Formatted
87
- */
88
- formatDate(date: Date): string;
89
82
  /**
90
83
  * Function used to time the loading times of a component.
91
84
  * @param {any} comp - The component calling this function or a string.
@@ -22,6 +22,7 @@ export interface KupDynamicPositionElement extends HTMLElement {
22
22
  anchor: KupDynamicPositionAnchor;
23
23
  detach: boolean;
24
24
  margin: number;
25
+ originalPath: HTMLElement[];
25
26
  placement: KupDynamicPositionPlacement;
26
27
  rAF: number;
27
28
  };
@@ -1,7 +1,7 @@
1
1
  import type { DropEvent, InteractEvent } from '@interactjs/types/index';
2
2
  import type { ResizeEvent } from '@interactjs/actions/resize/plugin';
3
3
  import { KupBoxRow } from '../../components/kup-box/kup-box-declarations';
4
- import { Cell, Column, Row } from '../../components/kup-data-table/kup-data-table-declarations';
4
+ import { KupDataCell, KupDataColumn, KupDataRow } from '../kup-data/kup-data-declarations';
5
5
  /**
6
6
  * HTML Attribute attached to dialogs.
7
7
  * Referenced by kup-theme.css
@@ -95,6 +95,7 @@ export interface KupDropEventData {
95
95
  export declare enum KupDropEventTypes {
96
96
  BOX = "text/kup-box-drag",
97
97
  DATATABLE = "text/kup-data-table-row-drag",
98
+ GENERIC = "text/generic",
98
99
  MAGICBOX = "text/kup-magic-box-drag"
99
100
  }
100
101
  /**
@@ -109,19 +110,19 @@ export interface KupDropEventPayload {
109
110
  * Source of the drop event payload.
110
111
  */
111
112
  export interface KupDropEventSource {
112
- cell?: Cell;
113
- column?: Column;
113
+ cell?: KupDataCell;
114
+ column?: KupDataColumn;
114
115
  id?: string;
115
116
  multiple?: boolean;
116
- row?: Row | KupBoxRow;
117
- selectedRows?: Row[] | KupBoxRow[];
117
+ row?: KupDataRow | KupBoxRow;
118
+ selectedRows?: KupDataRow[] | KupBoxRow[];
118
119
  }
119
120
  /**
120
121
  * Target of the drop event payload.
121
122
  */
122
123
  export interface KupDropEventTarget {
123
124
  id?: string;
124
- row?: Row | KupBoxRow;
125
- cell?: Cell;
126
- column?: Column;
125
+ row?: KupDataRow | KupBoxRow;
126
+ cell?: KupDataCell;
127
+ column?: KupDataColumn;
127
128
  }
@@ -50,13 +50,14 @@ export declare class KupInteract {
50
50
  * @param {Partial<ResizableOptions>} options - Options of the resize action.
51
51
  * @param {KupResizeCallbacks} callbacks - Additional callbacks to invoke.
52
52
  * @param {boolean} moveOnResize - When true, the element will be moved when resizing in order to keep its position.
53
+ * @param {boolean} autoResize - When true, the element will be automatically resized (usually the behavior is specified in a callback).
53
54
  * @see https://interactjs.io/docs/action-options/ For more options
54
55
  */
55
- resizable(el: HTMLElement, options?: Partial<ResizableOptions>, callbacks?: KupResizeCallbacks, moveOnResize?: boolean): void;
56
+ resizable(el: HTMLElement, options?: Partial<ResizableOptions>, callbacks?: KupResizeCallbacks, moveOnResize?: boolean, autoResize?: boolean): void;
56
57
  /**
57
58
  * Adds a new interact.js event listener to the given argument.
58
59
  * @param {HTMLElement} el - The element on which the event listener will be added.
59
- * @param {KupPointerEventTypes} event - Supported events.
60
+ * @param {KupPointerEventTypes} event - Name of the event.
60
61
  * @param {KupResizeCallbacks} callback - Callback to invoke when the event fires.
61
62
  */
62
63
  on(el: HTMLElement, event: KupPointerEventTypes, callback: ListenersArg): void;
@@ -68,7 +69,7 @@ export declare class KupInteract {
68
69
  */
69
70
  isInViewport(el: HTMLElement, oldTransform: string, delta: Point): boolean;
70
71
  /**
71
- * This method treats the given element as a dialog, by activating moving-on-drag and, optionally, its resize.
72
+ * This method gives the element dialog-like features, by activating moving on drag and, optionally, the resize.
72
73
  * @param {HTMLElement} el - Dialog element.
73
74
  * @param {HTMLElement} handleEl - Element that must be dragged in order to trigger movement. When not provided, dragging anywhere on "el" will move it.
74
75
  * @param {boolean} unresizable - When true, the dialog can't be resized.
@@ -80,12 +81,12 @@ export declare class KupInteract {
80
81
  Interaction<keyof ActionMap>
81
82
  ]>): void;
82
83
  /**
83
- * Removes the elements from the MoveOnDrag class watchlist.
84
- * @param {HTMLElement[]} elements - Elements to remove.
84
+ * Removes all event listeners from the elements in the array.
85
+ * @param {HTMLElement[]} elements - Elements to handle.
85
86
  */
86
87
  unregister(elements: HTMLElement[]): void;
87
88
  /**
88
- * Returns whether an element was previously registered or not.
89
+ * Checks whether an element is currently registered or not.
89
90
  * @param {HTMLElement} el - Element to test.
90
91
  * @returns {boolean} True if the element was registered.
91
92
  */