@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,8 +1,8 @@
1
1
  import { Component, Element, Event, forceUpdate, getAssetPath, h, Host, Method, Prop, State, Watch, } from '@stencil/core';
2
2
  import { TotalLabel, TotalMode, } from './../kup-data-table/kup-data-table-declarations';
3
- import { KupTreeProps, treeExpandedPropName, treeMainColumnName, KupTreeExpansionMode, } from './kup-tree-declarations';
3
+ import { KupTreeProps, treeMainColumnName, KupTreeExpansionMode, } from './kup-tree-declarations';
4
4
  import { MDCRipple } from '@material/ripple';
5
- import { kupManagerInstance, } from '../../utils/kup-manager/kup-manager';
5
+ import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
6
6
  import { calcTotals, normalizeRows, } from '../kup-data-table/kup-data-table-helper';
7
7
  import { KupTreeState } from './kup-tree-state';
8
8
  import { setTooltip, unsetTooltip } from '../../utils/helpers';
@@ -12,13 +12,14 @@ import { KupColumnMenu } from '../../utils/kup-column-menu/kup-column-menu';
12
12
  import { FiltersColumnMenu } from '../../utils/filters/filters-column-menu';
13
13
  import { KupGlobalFilterMode, } from '../../utils/filters/filters-declarations';
14
14
  import { FiltersTreeItems } from '../../utils/filters/filters-tree-items';
15
- import { kupDynamicPositionAttribute, } from '../../utils/kup-dynamic-position/kup-dynamic-position-declarations';
16
- import { KupLanguageGeneric, KupLanguageSearch, KupLanguageTotals, } from '../../utils/kup-language/kup-language-declarations';
15
+ import { kupDynamicPositionAttribute, } from '../../managers/kup-dynamic-position/kup-dynamic-position-declarations';
16
+ import { KupLanguageGeneric, KupLanguageSearch, KupLanguageTotals, } from '../../managers/kup-language/kup-language-declarations';
17
17
  import { componentWrapperId } from '../../variables/GenericVariables';
18
- import { KupThemeIconValues } from '../../utils/kup-theme/kup-theme-declarations';
19
- import { KupPointerEventTypes } from '../../utils/kup-interact/kup-interact-declarations';
18
+ import { KupThemeIconValues } from '../../managers/kup-theme/kup-theme-declarations';
19
+ import { KupPointerEventTypes } from '../../managers/kup-interact/kup-interact-declarations';
20
20
  import { FCellPadding, } from '../../f-components/f-cell/f-cell-declarations';
21
21
  import { FCell } from '../../f-components/f-cell/f-cell';
22
+ import { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declarations';
22
23
  export class KupTree {
23
24
  constructor() {
24
25
  /*-------------------------------------------------*/
@@ -253,6 +254,9 @@ export class KupTree {
253
254
  /* W a t c h e r s */
254
255
  /*-------------------------------------------------*/
255
256
  enrichDataWhenChanged(newData, oldData) {
257
+ if (!newData) {
258
+ newData = [];
259
+ }
256
260
  if (newData !== oldData) {
257
261
  this.refreshStructureState();
258
262
  }
@@ -299,7 +303,7 @@ export class KupTree {
299
303
  async collapseAll() {
300
304
  if (!this.useDynamicExpansion) {
301
305
  for (let index = 0; index < this.data.length; index++) {
302
- this.data[index][treeExpandedPropName] = false;
306
+ this.data[index].isExpanded = false;
303
307
  this.handleChildren(this.data[index], false);
304
308
  }
305
309
  }
@@ -318,7 +322,7 @@ export class KupTree {
318
322
  async expandAll() {
319
323
  if (!this.useDynamicExpansion) {
320
324
  for (let index = 0; index < this.data.length; index++) {
321
- this.data[index][treeExpandedPropName] = true;
325
+ this.data[index].isExpanded = true;
322
326
  this.handleChildren(this.data[index], true);
323
327
  }
324
328
  }
@@ -339,6 +343,19 @@ export class KupTree {
339
343
  async getProps(descriptions) {
340
344
  return getProps(this, KupTreeProps, descriptions);
341
345
  }
346
+ /**
347
+ * Hides the given column.
348
+ * @param {KupDataColumn} column - Column to hide.
349
+ */
350
+ async hideColumn(column) {
351
+ this.kupManager.data.column.hide(this.columns, [column.name]);
352
+ this.kupColumnRemove.emit({
353
+ comp: this,
354
+ id: this.rootElement.id,
355
+ column: column,
356
+ });
357
+ this.refresh();
358
+ }
342
359
  /**
343
360
  * Opens the column menu of the given column.
344
361
  * @param {string} column - Name of the column.
@@ -474,10 +491,10 @@ export class KupTree {
474
491
  }
475
492
  }
476
493
  expandCollapseNode(treeNode, expandNode = false) {
477
- this.filtersTreeItemsInstance.expandCollapseNode(treeNode, expandNode, treeExpandedPropName);
494
+ this.filtersTreeItemsInstance.expandCollapseNode(treeNode, expandNode);
478
495
  }
479
496
  expandCollapseAllNodes(treeNode, expandNode = false) {
480
- this.filtersTreeItemsInstance.expandCollapseAllNodes(treeNode, expandNode, treeExpandedPropName);
497
+ this.filtersTreeItemsInstance.expandCollapseAllNodes(treeNode, expandNode);
481
498
  }
482
499
  getColumns() {
483
500
  return this.columns ? this.columns : [{ title: '', name: '' }];
@@ -640,13 +657,12 @@ export class KupTree {
640
657
  // There are already children set in this TreeNode -> expand or collapse node and emit appropriate event
641
658
  if (treeNodeData.children && treeNodeData.children.length) {
642
659
  // Updates expanded state and force rerender
643
- treeNodeData[treeExpandedPropName] =
644
- !treeNodeData[treeExpandedPropName];
660
+ treeNodeData.isExpanded = !treeNodeData.isExpanded;
645
661
  if (ctrlKey) {
646
- this.handleChildren(treeNodeData, treeNodeData[treeExpandedPropName]);
662
+ this.handleChildren(treeNodeData, treeNodeData.isExpanded);
647
663
  }
648
664
  this.refresh();
649
- if (treeNodeData[treeExpandedPropName]) {
665
+ if (treeNodeData.isExpanded) {
650
666
  // TreeNode is now expanded -> Fires expanded event
651
667
  this.kupTreeNodeExpand.emit({
652
668
  comp: this,
@@ -684,8 +700,7 @@ export class KupTree {
684
700
  .then((childrenTreeNodes) => {
685
701
  // Children returned successfully
686
702
  treeNodeData.children = childrenTreeNodes;
687
- treeNodeData[treeExpandedPropName] =
688
- !treeNodeData[treeExpandedPropName];
703
+ treeNodeData.isExpanded = !treeNodeData.isExpanded;
689
704
  this.refresh();
690
705
  // TreeNode is now expanded -> Fires expanded event
691
706
  this.kupTreeNodeExpand.emit({
@@ -711,8 +726,7 @@ export class KupTree {
711
726
  usesDynamicExpansion: true,
712
727
  dynamicExpansionRequireChildren: true,
713
728
  });
714
- treeNodeData[treeExpandedPropName] =
715
- !treeNodeData[treeExpandedPropName];
729
+ treeNodeData.isExpanded = !treeNodeData.isExpanded;
716
730
  }
717
731
  }
718
732
  }
@@ -724,7 +738,7 @@ export class KupTree {
724
738
  for (let index = 0; index < TreeNode.children.length; index++) {
725
739
  let node = TreeNode.children[index];
726
740
  if (!node.disabled) {
727
- node[treeExpandedPropName] = expand;
741
+ node.isExpanded = expand;
728
742
  if (node.children) {
729
743
  this.handleChildren(node, expand);
730
744
  }
@@ -767,7 +781,7 @@ export class KupTree {
767
781
  return this.data ? this.data : [];
768
782
  }
769
783
  filterNodes() {
770
- let items = this.filtersTreeItemsInstance.filterRows(this.getRows(), this.filters, this.globalFilterValue, this.getColumns(), treeExpandedPropName, this.filtersColumnMenuInstance);
784
+ let items = this.filtersTreeItemsInstance.filterRows(this.getRows(), this.filters, this.globalFilterValue, this.getColumns(), this.filtersColumnMenuInstance);
771
785
  this.visibleNodes = this.calculateVisibleNodes(items);
772
786
  }
773
787
  calculateVisibleNodes(items) {
@@ -784,6 +798,14 @@ export class KupTree {
784
798
  }
785
799
  refreshStructureState() {
786
800
  if (this.data) {
801
+ if (this.data.columns) {
802
+ this.kupManager.debug.logMessage(this, 'Detected KupDataDataset: setting up tree as grid.', KupDebugCategory.WARNING);
803
+ const data = this.data;
804
+ this.columns = data.columns;
805
+ this.data = this.kupManager.data.row.toNode(data);
806
+ this.showColumns = true;
807
+ this.showHeader = true;
808
+ }
787
809
  // When the nodes must be expanded upon loading and the tree is not using a dynamicExpansion (and the current TreeNode is not disabled)
788
810
  // the default value of the treeExpandedPropName is set to true
789
811
  this.data.forEach((rootNode) => {
@@ -923,11 +945,11 @@ export class KupTree {
923
945
  return (h("span", { class: styleClass, ref: (el) => this.contentRefs.push(el), title: this.preventXScroll ? content : null }, contentSlices));
924
946
  }
925
947
  /**
926
- * Given a TreeNode, reads through its data then composes and returns its JSX object.
927
- * @param treeNodeData - The TreeNode object to parse.
928
- * @param treeNodePath - A string containing the comma(,) separated indexes of the TreeNodes to use,
929
- * sorted from left to right, to access the current TreeNode starting from the data prop children object.
930
- * @param treeNodeDepth - An integer to keep track of the depth level of the current TreeNode. Used for indentation.
948
+ * Given a KupTreeNode, reads through its data then composes and returns its JSX object.
949
+ * @param treeNodeData - The KupTreeNode object to parse.
950
+ * @param treeNodePath - A string containing the comma(,) separated indexes of the KupTreeNodes to use,
951
+ * sorted from left to right, to access the current KupTreeNode starting from the data prop children object.
952
+ * @param treeNodeDepth - An integer to keep track of the depth level of the current KupTreeNode. Used for indentation.
931
953
  * @returns The the JSX created from the current tree node.
932
954
  */
933
955
  renderTreeNode(treeNodeData, treeNodePath, treeNodeDepth = 0) {
@@ -949,7 +971,7 @@ export class KupTree {
949
971
  if (this.asAccordion && treeNodeDepth === 0) {
950
972
  expandClass += ` ${KupThemeIconValues.DROPDOWN.replace('--', '')}`;
951
973
  }
952
- else if (treeNodeData[treeExpandedPropName]) {
974
+ else if (treeNodeData.isExpanded) {
953
975
  expandClass += ` ${KupThemeIconValues.EXPANDED.replace('--', '')}`;
954
976
  }
955
977
  else {
@@ -983,12 +1005,11 @@ export class KupTree {
983
1005
  }
984
1006
  // Composes additional options for the tree node element
985
1007
  let treeNodeOptions = {};
986
- if (treeNodeData.hasOwnProperty(treeExpandedPropName) &&
987
- treeNodeData[treeExpandedPropName] &&
1008
+ if (treeNodeData.hasOwnProperty('isExpanded') &&
1009
+ treeNodeData.isExpanded &&
988
1010
  hasExpandIcon) {
989
1011
  // If the node is expanded it has this attribute set to if this node is expanded or not.
990
- treeNodeOptions['data-is-expanded'] =
991
- treeNodeData[treeExpandedPropName];
1012
+ treeNodeOptions['data-is-expanded'] = treeNodeData.isExpanded;
992
1013
  }
993
1014
  // When can be expanded OR selected
994
1015
  if (!treeNodeData.disabled) {
@@ -1004,21 +1025,26 @@ export class KupTree {
1004
1025
  // Renders all the cells
1005
1026
  for (let j = 0; j < visibleCols.length; j++) {
1006
1027
  const column = visibleCols[j];
1007
- const cell = treeNodeData.cells[column.name]
1008
- ? treeNodeData.cells[column.name]
1009
- : null;
1010
- const cellProps = {
1011
- cell: cell,
1012
- column: column,
1013
- component: this,
1014
- density: this.density,
1015
- editable: this.editableData,
1016
- renderKup: true,
1017
- row: treeNodeData,
1018
- setSizes: true,
1019
- };
1020
- treeNodeCells.push(h("td", { class: `grid-cell` },
1021
- h(FCell, Object.assign({}, cellProps))));
1028
+ if (treeNodeData.cells && treeNodeData.cells[column.name]) {
1029
+ const cell = treeNodeData.cells[column.name]
1030
+ ? treeNodeData.cells[column.name]
1031
+ : null;
1032
+ const cellProps = {
1033
+ cell: cell,
1034
+ column: column,
1035
+ component: this,
1036
+ density: this.density,
1037
+ editable: this.editableData,
1038
+ renderKup: true,
1039
+ row: treeNodeData,
1040
+ setSizes: true,
1041
+ };
1042
+ treeNodeCells.push(h("td", { class: `grid-cell` },
1043
+ h(FCell, Object.assign({}, cellProps))));
1044
+ }
1045
+ else {
1046
+ treeNodeCells.push(h("td", { class: `grid-cell` }));
1047
+ }
1022
1048
  }
1023
1049
  }
1024
1050
  const _hasTooltip = !this.kupManager.objects.isEmptyKupObj(treeNodeData.obj);
@@ -1262,13 +1288,13 @@ export class KupTree {
1262
1288
  }
1263
1289
  }
1264
1290
  /**
1265
- * Given a TreeNode, reads through its data to compose and return the TreeNodes of the root of this TreeNode
1266
- * and its children nodes, composing an array of JSX TreeNodes.
1267
- * @param treeNodeData - The TreeNode object to parse.
1268
- * @param treeNodePath - A string containing the comma(,) separated indexes of the TreeNodes to use,
1269
- * sorted from left to right, to access the current TreeNode starting from the data prop children object.
1270
- * @param treeNodeDepth - An integer to keep track of the depth level of the current TreeNode. Used for indentation.
1271
- * @returns An array of JSX TreeNodes created from the given treeNodeData.
1291
+ * Given a KupTreeNode, reads through its data to compose and return the KupTreeNodes of the root of this KupTreeNode
1292
+ * and its children nodes, composing an array of JSX KupTreeNodes.
1293
+ * @param treeNodeData - The KupTreeNode object to parse.
1294
+ * @param treeNodePath - A string containing the comma(,) separated indexes of the KupTreeNodes to use,
1295
+ * sorted from left to right, to access the current KupTreeNode starting from the data prop children object.
1296
+ * @param treeNodeDepth - An integer to keep track of the depth level of the current KupTreeNode. Used for indentation.
1297
+ * @returns An array of JSX KupTreeNodes created from the given treeNodeData.
1272
1298
  */
1273
1299
  renderTree(treeNodeData, treeNodePath, treeNodeDepth = 0) {
1274
1300
  let treeNodes = [];
@@ -1279,7 +1305,7 @@ export class KupTree {
1279
1305
  if (treeNodeData.expandable &&
1280
1306
  treeNodeData.children &&
1281
1307
  treeNodeData.children.length &&
1282
- treeNodeData[treeExpandedPropName]) {
1308
+ treeNodeData.isExpanded) {
1283
1309
  for (let i = 0; i < treeNodeData.children.length; i++) {
1284
1310
  treeNodes = treeNodes.concat(this.renderTree(treeNodeData.children[i], treeNodePath + ',' + i, treeNodeDepth + 1));
1285
1311
  }
@@ -1496,14 +1522,14 @@ export class KupTree {
1496
1522
  },
1497
1523
  "columns": {
1498
1524
  "type": "unknown",
1499
- "mutable": false,
1525
+ "mutable": true,
1500
1526
  "complexType": {
1501
- "original": "Column[]",
1502
- "resolved": "Column[]",
1527
+ "original": "KupDataColumn[]",
1528
+ "resolved": "KupDataColumn[]",
1503
1529
  "references": {
1504
- "Column": {
1530
+ "KupDataColumn": {
1505
1531
  "location": "import",
1506
- "path": "./../kup-data-table/kup-data-table-declarations"
1532
+ "path": "../../managers/kup-data/kup-data-declarations"
1507
1533
  }
1508
1534
  }
1509
1535
  },
@@ -1540,12 +1566,12 @@ export class KupTree {
1540
1566
  },
1541
1567
  "data": {
1542
1568
  "type": "unknown",
1543
- "mutable": false,
1569
+ "mutable": true,
1544
1570
  "complexType": {
1545
- "original": "TreeNode[]",
1546
- "resolved": "TreeNode[]",
1571
+ "original": "KupTreeNode[]",
1572
+ "resolved": "KupTreeNode[]",
1547
1573
  "references": {
1548
- "TreeNode": {
1574
+ "KupTreeNode": {
1549
1575
  "location": "import",
1550
1576
  "path": "./kup-tree-declarations"
1551
1577
  }
@@ -1586,10 +1612,10 @@ export class KupTree {
1586
1612
  "type": "unknown",
1587
1613
  "mutable": false,
1588
1614
  "complexType": {
1589
- "original": "(\n treeNodeToExpand: TreeNode,\n treeNodePath: TreeNodePath\n ) => Promise<TreeNode[]> | undefined",
1590
- "resolved": "(treeNodeToExpand: TreeNode, treeNodePath: TreeNodePath) => Promise<TreeNode[]>",
1615
+ "original": "(\n treeNodeToExpand: KupTreeNode,\n treeNodePath: TreeNodePath\n ) => Promise<KupTreeNode[]> | undefined",
1616
+ "resolved": "(treeNodeToExpand: KupTreeNode, treeNodePath: TreeNodePath) => Promise<KupTreeNode[]>",
1591
1617
  "references": {
1592
- "TreeNode": {
1618
+ "KupTreeNode": {
1593
1619
  "location": "import",
1594
1620
  "path": "./kup-tree-declarations"
1595
1621
  },
@@ -1877,7 +1903,7 @@ export class KupTree {
1877
1903
  },
1878
1904
  "showColumns": {
1879
1905
  "type": "boolean",
1880
- "mutable": false,
1906
+ "mutable": true,
1881
1907
  "complexType": {
1882
1908
  "original": "boolean",
1883
1909
  "resolved": "boolean",
@@ -1931,7 +1957,7 @@ export class KupTree {
1931
1957
  },
1932
1958
  "showHeader": {
1933
1959
  "type": "boolean",
1934
- "mutable": false,
1960
+ "mutable": true,
1935
1961
  "complexType": {
1936
1962
  "original": "boolean",
1937
1963
  "resolved": "boolean",
@@ -2133,7 +2159,7 @@ export class KupTree {
2133
2159
  "composed": true,
2134
2160
  "docs": {
2135
2161
  "tags": [],
2136
- "text": "Fired when a TreeNode gets collapsed (closed)."
2162
+ "text": "Fired when a KupTreeNode gets collapsed (closed)."
2137
2163
  },
2138
2164
  "complexType": {
2139
2165
  "original": "KupTreeNodeCollapseEventPayload",
@@ -2163,13 +2189,13 @@ export class KupTree {
2163
2189
  "text": "{TreeNodePath} treeNodePath - The array of indexes to retrieve the current treeNode inside the data prop."
2164
2190
  }, {
2165
2191
  "name": "property",
2166
- "text": "{TreeNode} treeNode - Reference to the TreeNode data object which is being expanded (passed through the data prop)."
2192
+ "text": "{KupTreeNode} treeNode - Reference to the KupTreeNode data object which is being expanded (passed through the data prop)."
2167
2193
  }, {
2168
2194
  "name": "property",
2169
2195
  "text": "{boolean} usesDynamicExpansion - Flag to notify that the component is running in dynamicExpansion mode."
2170
2196
  }, {
2171
2197
  "name": "property",
2172
- "text": "{boolean} dynamicExpansionRequireChildren - Flag to notify that the current dynamicExpansion event\nrequires the parent component to add TreeNode children to the given TreeNode."
2198
+ "text": "{boolean} dynamicExpansionRequireChildren - Flag to notify that the current dynamicExpansion event\nrequires the parent component to add KupTreeNode children to the given KupTreeNode."
2173
2199
  }, {
2174
2200
  "name": "see",
2175
2201
  "text": "useDynamicExpansion *"
@@ -2352,6 +2378,26 @@ export class KupTree {
2352
2378
  }
2353
2379
  }
2354
2380
  }
2381
+ }, {
2382
+ "method": "kupColumnRemove",
2383
+ "name": "kup-tree-columnremove",
2384
+ "bubbles": true,
2385
+ "cancelable": false,
2386
+ "composed": true,
2387
+ "docs": {
2388
+ "tags": [],
2389
+ "text": "Event fired when columns are removed (set to hidden)."
2390
+ },
2391
+ "complexType": {
2392
+ "original": "KupTreeColumnRemoveEventPayload",
2393
+ "resolved": "KupTreeColumnRemoveEventPayload",
2394
+ "references": {
2395
+ "KupTreeColumnRemoveEventPayload": {
2396
+ "location": "import",
2397
+ "path": "./kup-tree-declarations"
2398
+ }
2399
+ }
2400
+ }
2355
2401
  }]; }
2356
2402
  static get methods() { return {
2357
2403
  "isEmpty": {
@@ -2450,6 +2496,35 @@ export class KupTree {
2450
2496
  }]
2451
2497
  }
2452
2498
  },
2499
+ "hideColumn": {
2500
+ "complexType": {
2501
+ "signature": "(column: KupDataColumn) => Promise<void>",
2502
+ "parameters": [{
2503
+ "tags": [{
2504
+ "name": "param",
2505
+ "text": "column - Column to hide."
2506
+ }],
2507
+ "text": "- Column to hide."
2508
+ }],
2509
+ "references": {
2510
+ "Promise": {
2511
+ "location": "global"
2512
+ },
2513
+ "KupDataColumn": {
2514
+ "location": "import",
2515
+ "path": "../../managers/kup-data/kup-data-declarations"
2516
+ }
2517
+ },
2518
+ "return": "Promise<void>"
2519
+ },
2520
+ "docs": {
2521
+ "text": "Hides the given column.",
2522
+ "tags": [{
2523
+ "name": "param",
2524
+ "text": "column - Column to hide."
2525
+ }]
2526
+ }
2527
+ },
2453
2528
  "openColumnMenu": {
2454
2529
  "complexType": {
2455
2530
  "signature": "(column: string) => Promise<void>",
@@ -1,10 +1,12 @@
1
- export const autoAlignComps = ['KUP-DATA-TABLE', 'KUP-TREE'];
1
+ import { KupTagNames, } from '../../types/GenericTypes';
2
+ export const autoAlignComps = [KupTagNames.DATA_TABLE, KupTagNames.TREE];
2
3
  /**
3
4
  * Supported cell events.
4
5
  */
5
6
  export var FCellEvents;
6
7
  (function (FCellEvents) {
7
8
  FCellEvents["CLICK"] = "kup-cell-click";
9
+ FCellEvents["ICON_CLICK"] = "kup-cell-iconclick";
8
10
  FCellEvents["INPUT"] = "kup-cell-input";
9
11
  FCellEvents["UPDATE"] = "kup-cell-update";
10
12
  })(FCellEvents || (FCellEvents = {}));
@@ -1,3 +1,4 @@
1
+ import { KupTagNames } from '../../types/GenericTypes';
1
2
  import { autoAlignComps, editableTypes, FCellClasses, FCellEvents, FCellShapes, FCellTypes, kupTypes, } from './f-cell-declarations';
2
3
  import { h } from '@stencil/core';
3
4
  import { getCellValueForDisplay } from '../../utils/cell-utils';
@@ -6,7 +7,7 @@ import { FTextField } from '../f-text-field/f-text-field';
6
7
  import { stringToNumber } from '../../utils/utils';
7
8
  import { FImage } from '../f-image/f-image';
8
9
  import { FChip } from '../f-chip/f-chip';
9
- import { KupThemeColorValues } from '../../utils/kup-theme/kup-theme-declarations';
10
+ import { KupThemeColorValues } from '../../managers/kup-theme/kup-theme-declarations';
10
11
  const dom = document.documentElement;
11
12
  /*-------------------------------------------------*/
12
13
  /* C o m p o n e n t */
@@ -129,7 +130,7 @@ function setCellSize(cellType, subcomponentProps, cell, props) {
129
130
  break;
130
131
  case FCellTypes.IMAGE:
131
132
  if (props.component.rootElement.tagName ===
132
- 'KUP-BOX') {
133
+ KupTagNames.BOX) {
133
134
  if (!subcomponentProps.sizeY) {
134
135
  subcomponentProps.sizeY = 'auto';
135
136
  }
@@ -200,16 +201,17 @@ function setCellSizeKup(cellType, subcomponentProps, cell) {
200
201
  function setEditableCell(cellType, classObj, cell, column, props) {
201
202
  switch (cellType) {
202
203
  case FCellTypes.AUTOCOMPLETE:
203
- return (h("kup-autocomplete", Object.assign({}, cell.data, { class: "kup-full-width", "onkup-autocomplete-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-autocomplete-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT) })));
204
+ return (h("kup-autocomplete", Object.assign({}, cell.data, { class: "kup-full-width", "onkup-autocomplete-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-autocomplete-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onkup-autocomplete-iconclick": (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK) })));
204
205
  case FCellTypes.CHECKBOX:
205
- if (autoAlignComps.includes(props.component.rootElement.tagName)) {
206
+ if (autoAlignComps.includes(props.component.rootElement
207
+ .tagName)) {
206
208
  classObj[FCellClasses.C_CENTERED] = true;
207
209
  }
208
210
  return (h(FCheckbox, Object.assign({}, cell.data, { onChange: (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) })));
209
211
  case FCellTypes.COLOR_PICKER:
210
- return (h("kup-color-picker", Object.assign({}, cell.data, { disabled: false, "onkup-colorpicker-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) })));
212
+ return (h("kup-color-picker", Object.assign({}, cell.data, { class: "kup-full-width", disabled: false, "onkup-colorpicker-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) })));
211
213
  case FCellTypes.COMBOBOX:
212
- return (h("kup-combobox", Object.assign({}, cell.data, { class: "kup-full-width", "onkup-combobox-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-combobox-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT) })));
214
+ return (h("kup-combobox", Object.assign({}, cell.data, { class: "kup-full-width", "onkup-combobox-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-combobox-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onkup-combobox-iconclick": (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK) })));
213
215
  case FCellTypes.DATE:
214
216
  return (h("kup-date-picker", Object.assign({ initialValue: cell.value }, cell.data, { class: "kup-full-width", "onkup-datepicker-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-datepicker-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT) })));
215
217
  case FCellTypes.RATING:
@@ -221,7 +223,7 @@ function setEditableCell(cellType, classObj, cell, column, props) {
221
223
  case FCellTypes.STRING:
222
224
  return (h(FTextField, Object.assign({}, cell.data, { icon: cell.icon ? cell.icon : column.icon ? column.icon : null, fullWidth: true, inputType: cellType === FCellTypes.NUMBER ? 'number' : null, value: cellType === FCellTypes.NUMBER
223
225
  ? stringToNumber(cell.value).toString()
224
- : cell.value, onChange: (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), onInput: (e) => cellEvent(e, props, cellType, FCellEvents.INPUT) })));
226
+ : cell.value, onChange: (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), onInput: (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), onIconClick: (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK) })));
225
227
  }
226
228
  }
227
229
  function setCell(cellType, subcomponentProps, content, classObj, cell, column, props) {
@@ -237,7 +239,8 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
237
239
  }
238
240
  return content;
239
241
  case FCellTypes.CHECKBOX:
240
- if (autoAlignComps.includes(props.component.rootElement.tagName)) {
242
+ if (autoAlignComps.includes(props.component.rootElement
243
+ .tagName)) {
241
244
  classObj[FCellClasses.C_CENTERED] = true;
242
245
  }
243
246
  return (h(FImage, { resource: subcomponentProps.checked
@@ -247,7 +250,8 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
247
250
  return h("div", { innerHTML: cell.value });
248
251
  case FCellTypes.ICON:
249
252
  case FCellTypes.IMAGE:
250
- if (autoAlignComps.includes(props.component.rootElement.tagName)) {
253
+ if (autoAlignComps.includes(props.component.rootElement
254
+ .tagName)) {
251
255
  classObj[FCellClasses.C_CENTERED] = true;
252
256
  }
253
257
  if (subcomponentProps.badgeData) {
@@ -263,7 +267,8 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
263
267
  if (cellValueNumber < 0) {
264
268
  classObj[FCellClasses.TEXT_DANGER] = true;
265
269
  }
266
- if (autoAlignComps.includes(props.component.rootElement.tagName)) {
270
+ if (autoAlignComps.includes(props.component.rootElement
271
+ .tagName)) {
267
272
  classObj[FCellClasses.C_RIGHT_ALIGNED] = true;
268
273
  }
269
274
  return h("div", { class: "f-cell__text" }, cellValue);
@@ -282,17 +287,20 @@ function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, pr
282
287
  else {
283
288
  const barStyle = {
284
289
  height: subcomponentProps.sizeY,
290
+ width: '100%',
285
291
  };
286
292
  return (h("div", { style: barStyle },
287
293
  h(FImage, Object.assign({}, subcomponentProps))));
288
294
  }
289
295
  case FCellTypes.BUTTON:
290
- if (autoAlignComps.includes(props.component.rootElement.tagName)) {
296
+ if (autoAlignComps.includes(props.component.rootElement
297
+ .tagName)) {
291
298
  classObj[FCellClasses.C_CENTERED] = true;
292
299
  }
293
300
  return (h("kup-button", Object.assign({}, subcomponentProps, { "onkup-button-click": (e) => cellEvent(e, props, cellType, FCellEvents.CLICK) })));
294
301
  case FCellTypes.BUTTON_LIST:
295
- if (autoAlignComps.includes(props.component.rootElement.tagName)) {
302
+ if (autoAlignComps.includes(props.component.rootElement
303
+ .tagName)) {
296
304
  classObj[FCellClasses.C_CENTERED] = true;
297
305
  }
298
306
  subcomponentProps['data-storage'] = {
@@ -302,21 +310,23 @@ function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, pr
302
310
  };
303
311
  return h("kup-button-list", Object.assign({}, subcomponentProps));
304
312
  case FCellTypes.CHART:
305
- if (autoAlignComps.includes(props.component.rootElement.tagName)) {
313
+ if (autoAlignComps.includes(props.component.rootElement
314
+ .tagName)) {
306
315
  classObj[FCellClasses.C_CENTERED] = true;
307
316
  }
308
317
  return h("kup-chart", Object.assign({}, subcomponentProps));
309
318
  case FCellTypes.CHIP:
310
319
  return h(FChip, Object.assign({}, subcomponentProps));
311
320
  case FCellTypes.COLOR_PICKER:
312
- return (h("kup-color-picker", Object.assign({}, subcomponentProps, { disabled: true })));
321
+ return (h("kup-color-picker", Object.assign({}, subcomponentProps, { class: "kup-full-width", disabled: true })));
313
322
  case FCellTypes.GAUGE:
314
323
  return (h("kup-gauge", Object.assign({ value: stringToNumber(cell.value), "width-component": "280px" }, subcomponentProps)));
315
324
  case FCellTypes.KNOB:
316
325
  case FCellTypes.PROGRESS_BAR:
317
326
  return h("kup-progress-bar", Object.assign({}, subcomponentProps));
318
327
  case FCellTypes.RADIO:
319
- if (autoAlignComps.includes(props.component.rootElement.tagName)) {
328
+ if (autoAlignComps.includes(props.component.rootElement
329
+ .tagName)) {
320
330
  classObj[FCellClasses.C_CENTERED] = true;
321
331
  }
322
332
  subcomponentProps['disabled'] = row.readOnly;
@@ -441,14 +451,14 @@ function cellEvent(e, props, cellType, cellEventName) {
441
451
  break;
442
452
  }
443
453
  if (cell.obj) {
444
- cell.obj.k = value;
454
+ cell.obj.k = value.toString();
445
455
  }
446
- cell.value = value;
456
+ cell.value = value.toString();
447
457
  cell.displayedValue = null;
448
458
  cell.displayedValue = getCellValueForDisplay(column, cell);
449
459
  }
450
460
  if (comp && comp.rootElement) {
451
- const updateEvent = new CustomEvent(cellEventName, {
461
+ const cellEvent = new CustomEvent(cellEventName, {
452
462
  bubbles: true,
453
463
  cancelable: true,
454
464
  composed: true,
@@ -462,7 +472,7 @@ function cellEvent(e, props, cellType, cellEventName) {
462
472
  type: cellType,
463
473
  },
464
474
  });
465
- comp.rootElement.dispatchEvent(updateEvent);
475
+ comp.rootElement.dispatchEvent(cellEvent);
466
476
  try {
467
477
  comp.refresh();
468
478
  }