@sme.up/ketchup 6.5.0 → 6.7.0

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 (209) hide show
  1. package/README.md +7 -1
  2. package/dist/cjs/{f-button-4e2a0bb6.js → f-button-bf76ab95.js} +2 -2
  3. package/dist/cjs/{f-cell-1fc8a8b6.js → f-cell-b7a1524a.js} +25 -23
  4. package/dist/cjs/{f-checkbox-cd977193.js → f-checkbox-1097ca5d.js} +1 -1
  5. package/dist/cjs/{f-chip-7867f17b.js → f-chip-a5e100b1.js} +3 -3
  6. package/dist/cjs/{f-image-6b7a6168.js → f-image-d80a2749.js} +2 -2
  7. package/dist/cjs/{f-paginator-utils-b7712403.js → f-paginator-utils-c70812fe.js} +3 -5
  8. package/dist/cjs/{f-text-field-153e827c.js → f-text-field-48b8bb16.js} +2 -2
  9. package/dist/cjs/{index-31125378.js → index-ffdb46f6.js} +423 -252
  10. package/dist/cjs/ketchup.cjs.js +3 -3
  11. package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
  12. package/dist/cjs/kup-autocomplete_25.cjs.entry.js +433 -163
  13. package/dist/cjs/kup-box.cjs.entry.js +27 -16
  14. package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
  15. package/dist/cjs/kup-cell.cjs.entry.js +7 -7
  16. package/dist/cjs/kup-dash-list.cjs.entry.js +2 -2
  17. package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
  18. package/dist/cjs/kup-dashboard.cjs.entry.js +6 -6
  19. package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
  20. package/dist/cjs/kup-echart.cjs.entry.js +2 -2
  21. package/dist/cjs/kup-family-tree.cjs.entry.js +19 -7
  22. package/dist/cjs/kup-form.cjs.entry.js +8 -8
  23. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-image-list.cjs.entry.js +9 -9
  25. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  26. package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
  27. package/dist/cjs/{kup-manager-cfe2f36e.js → kup-manager-0e38bf48.js} +39 -26
  28. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  29. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  30. package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
  31. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  32. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  33. package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
  34. package/dist/cjs/loader.cjs.js +3 -3
  35. package/dist/collection/assets/box.js +9 -6
  36. package/dist/collection/assets/card.js +12 -2
  37. package/dist/collection/collection-manifest.json +3 -3
  38. package/dist/collection/components/kup-accordion/kup-accordion.js +239 -234
  39. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +545 -530
  40. package/dist/collection/components/kup-badge/kup-badge.js +176 -170
  41. package/dist/collection/components/kup-box/kup-box.js +907 -913
  42. package/dist/collection/components/kup-button/kup-button.css +1 -0
  43. package/dist/collection/components/kup-button/kup-button.js +379 -370
  44. package/dist/collection/components/kup-button-list/kup-button-list.js +251 -240
  45. package/dist/collection/components/kup-calendar/kup-calendar.js +301 -300
  46. package/dist/collection/components/kup-card/box/kup-card-box.js +115 -0
  47. package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +14 -28
  48. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +6 -19
  49. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +1 -2
  50. package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +9 -44
  51. package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +2 -21
  52. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +6 -33
  53. package/dist/collection/components/kup-card/kup-card-declarations.js +2 -0
  54. package/dist/collection/components/kup-card/kup-card-helper.js +3 -8
  55. package/dist/collection/components/kup-card/kup-card.css +140 -20
  56. package/dist/collection/components/kup-card/kup-card.js +352 -340
  57. package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +68 -81
  58. package/dist/collection/components/kup-card/standard/kup-card-standard.js +96 -304
  59. package/dist/collection/components/kup-cell/kup-cell.js +221 -216
  60. package/dist/collection/components/kup-chart/kup-chart.js +547 -537
  61. package/dist/collection/components/kup-checkbox/kup-checkbox.js +275 -266
  62. package/dist/collection/components/kup-chip/kup-chip.js +240 -231
  63. package/dist/collection/components/kup-color-picker/kup-color-picker.js +274 -264
  64. package/dist/collection/components/kup-combobox/kup-combobox.js +458 -440
  65. package/dist/collection/components/kup-dash/kup-dash.js +110 -158
  66. package/dist/collection/components/kup-dash-list/kup-dash-list.js +210 -213
  67. package/dist/collection/components/kup-dashboard/kup-dashboard.js +196 -203
  68. package/dist/collection/components/kup-data-table/kup-data-table.js +1932 -1838
  69. package/dist/collection/components/kup-date-picker/kup-date-picker.js +408 -394
  70. package/dist/collection/components/kup-drawer/kup-drawer.js +244 -236
  71. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +474 -464
  72. package/dist/collection/components/kup-echart/kup-echart.js +436 -423
  73. package/dist/collection/components/kup-family-tree/kup-family-tree-declarations.js +1 -0
  74. package/dist/collection/components/kup-family-tree/kup-family-tree.js +420 -398
  75. package/dist/collection/components/kup-form/kup-form.js +223 -225
  76. package/dist/collection/components/kup-gauge/kup-gauge.js +445 -445
  77. package/dist/collection/components/kup-grid/kup-grid.js +156 -153
  78. package/dist/collection/components/kup-iframe/kup-iframe.js +181 -173
  79. package/dist/collection/components/kup-image/canvas/kup-image-canvas.js +9 -3
  80. package/dist/collection/components/kup-image/kup-image.js +300 -295
  81. package/dist/collection/components/kup-image-list/kup-image-list.js +292 -285
  82. package/dist/collection/components/kup-lazy/kup-lazy.js +253 -253
  83. package/dist/collection/components/kup-list/kup-list.js +541 -504
  84. package/dist/collection/components/kup-magic-box/kup-magic-box.js +145 -145
  85. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +190 -184
  86. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +490 -478
  87. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +254 -242
  88. package/dist/collection/components/kup-probe/kup-probe.js +87 -83
  89. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +237 -241
  90. package/dist/collection/components/kup-qlik/kup-qlik.js +178 -170
  91. package/dist/collection/components/kup-radio/kup-radio.js +258 -255
  92. package/dist/collection/components/kup-rating/kup-rating.js +208 -197
  93. package/dist/collection/components/kup-snackbar/kup-snackbar.js +249 -246
  94. package/dist/collection/components/kup-spinner/kup-spinner.js +274 -269
  95. package/dist/collection/components/kup-switch/kup-switch.js +255 -246
  96. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +265 -224
  97. package/dist/collection/components/kup-text-field/kup-text-field.js +814 -805
  98. package/dist/collection/components/kup-time-picker/kup-time-picker.js +464 -450
  99. package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -2
  100. package/dist/collection/components/kup-tree/kup-tree-faker.js +3 -2
  101. package/dist/collection/components/kup-tree/kup-tree.js +1134 -1133
  102. package/dist/collection/f-components/f-button/f-button.js +11 -20
  103. package/dist/collection/f-components/f-cell/f-cell.js +23 -23
  104. package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -9
  105. package/dist/collection/f-components/f-chip/f-chip.js +18 -31
  106. package/dist/collection/f-components/f-image/f-image.js +1 -3
  107. package/dist/collection/f-components/f-paginator/f-paginator.js +1 -6
  108. package/dist/collection/f-components/f-switch/f-switch.js +1 -8
  109. package/dist/collection/f-components/f-text-field/f-text-field.js +18 -40
  110. package/dist/collection/managers/kup-debug/kup-debug.js +10 -5
  111. package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +25 -10
  112. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +1 -0
  113. package/dist/collection/managers/kup-toolbar/kup-toolbar.js +10 -5
  114. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +10 -5
  115. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +0 -21
  116. package/dist/esm/{f-button-a24e43dd.js → f-button-e79f7594.js} +2 -2
  117. package/dist/esm/{f-cell-ebbb0c06.js → f-cell-9400374e.js} +25 -23
  118. package/dist/esm/{f-checkbox-e06cf07b.js → f-checkbox-b721178e.js} +1 -1
  119. package/dist/esm/{f-chip-e2c38ba8.js → f-chip-bf740287.js} +3 -3
  120. package/dist/esm/{f-image-7e02e88f.js → f-image-ab3dc8cb.js} +2 -2
  121. package/dist/esm/{f-paginator-utils-e6d2638f.js → f-paginator-utils-6909e43b.js} +3 -5
  122. package/dist/esm/{f-text-field-8438a278.js → f-text-field-4841dfea.js} +2 -2
  123. package/dist/esm/{index-e41330a5.js → index-a2197376.js} +423 -252
  124. package/dist/esm/ketchup.js +3 -3
  125. package/dist/esm/kup-accordion.entry.js +3 -3
  126. package/dist/esm/kup-autocomplete_25.entry.js +433 -163
  127. package/dist/esm/kup-box.entry.js +27 -16
  128. package/dist/esm/kup-calendar.entry.js +5 -5
  129. package/dist/esm/kup-cell.entry.js +7 -7
  130. package/dist/esm/kup-dash-list.entry.js +2 -2
  131. package/dist/esm/kup-dash_2.entry.js +2 -2
  132. package/dist/esm/kup-dashboard.entry.js +6 -6
  133. package/dist/esm/kup-drawer.entry.js +2 -2
  134. package/dist/esm/kup-echart.entry.js +2 -2
  135. package/dist/esm/kup-family-tree.entry.js +19 -7
  136. package/dist/esm/kup-form.entry.js +8 -8
  137. package/dist/esm/kup-iframe.entry.js +2 -2
  138. package/dist/esm/kup-image-list.entry.js +9 -9
  139. package/dist/esm/kup-lazy.entry.js +2 -2
  140. package/dist/esm/kup-magic-box.entry.js +3 -3
  141. package/dist/esm/{kup-manager-7c27e90e.js → kup-manager-c54e6df5.js} +22 -9
  142. package/dist/esm/kup-nav-bar.entry.js +2 -2
  143. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  144. package/dist/esm/kup-photo-frame.entry.js +2 -2
  145. package/dist/esm/kup-probe.entry.js +2 -2
  146. package/dist/esm/kup-qlik.entry.js +2 -2
  147. package/dist/esm/kup-snackbar.entry.js +4 -4
  148. package/dist/esm/loader.js +3 -3
  149. package/dist/esm/polyfills/css-shim.js +1 -1
  150. package/dist/ketchup/ketchup.esm.js +1 -1
  151. package/dist/ketchup/{p-191096ff.entry.js → p-182b869e.entry.js} +1 -1
  152. package/dist/ketchup/p-1dfd2a51.js +30 -0
  153. package/dist/ketchup/{p-b502b91b.entry.js → p-1f5c7f21.entry.js} +1 -1
  154. package/dist/ketchup/p-22ec1ba0.entry.js +9 -0
  155. package/dist/ketchup/{p-5552f156.js → p-23cd5a68.js} +1 -1
  156. package/dist/ketchup/{p-26acb448.js → p-25bf0cb6.js} +1 -1
  157. package/dist/ketchup/{p-601a50db.entry.js → p-260ff835.entry.js} +1 -1
  158. package/dist/ketchup/{p-5a703573.entry.js → p-2e184b57.entry.js} +1 -1
  159. package/dist/ketchup/{p-45415b72.entry.js → p-30a63b85.entry.js} +1 -1
  160. package/dist/ketchup/{p-cc663bad.entry.js → p-313e376b.entry.js} +1 -1
  161. package/dist/ketchup/{p-e0ed3fd7.entry.js → p-41620707.entry.js} +1 -1
  162. package/dist/ketchup/{p-25875aa1.entry.js → p-4a0ccf18.entry.js} +1 -1
  163. package/dist/ketchup/{p-3decc8e4.js → p-4f0d3062.js} +1 -1
  164. package/dist/ketchup/p-4fdb684f.js +2 -0
  165. package/dist/ketchup/{p-52590a90.entry.js → p-53d3ae80.entry.js} +1 -1
  166. package/dist/ketchup/{p-92595296.js → p-5bea2971.js} +1 -1
  167. package/dist/ketchup/{p-a782ebd1.entry.js → p-60fa0ccf.entry.js} +1 -1
  168. package/dist/ketchup/p-6333388c.js +1 -0
  169. package/dist/ketchup/{p-2003a841.entry.js → p-6bd57787.entry.js} +1 -1
  170. package/dist/ketchup/p-758d03f4.entry.js +1 -0
  171. package/dist/ketchup/{p-2f009c42.entry.js → p-7e7b6127.entry.js} +1 -1
  172. package/dist/ketchup/p-8386e3db.entry.js +1 -0
  173. package/dist/ketchup/{p-23111c8d.entry.js → p-859163c2.entry.js} +1 -1
  174. package/dist/ketchup/{p-97f28bbd.entry.js → p-8e1fa7a8.entry.js} +6 -6
  175. package/dist/ketchup/{p-ca98059c.entry.js → p-90860d9e.entry.js} +1 -1
  176. package/dist/ketchup/{p-b131b257.entry.js → p-b7fdc7aa.entry.js} +1 -1
  177. package/dist/ketchup/{p-3138cabb.entry.js → p-bffaef6e.entry.js} +1 -1
  178. package/dist/ketchup/p-c35c5e05.js +1 -0
  179. package/dist/ketchup/{p-1468bf09.js → p-e1d0ea71.js} +1 -1
  180. package/dist/ketchup/p-f9d5e553.entry.js +1 -0
  181. package/dist/ketchup/{p-69dd11da.entry.js → p-fb4d772a.entry.js} +1 -1
  182. package/dist/loader/package.json +1 -0
  183. package/dist/types/components/kup-box/kup-box-declarations.d.ts +3 -0
  184. package/dist/types/components/kup-card/box/kup-card-box.d.ts +26 -0
  185. package/dist/types/components/kup-card/kup-card-declarations.d.ts +2 -0
  186. package/dist/types/components/kup-card/scalable/kup-card-scalable.d.ts +6 -0
  187. package/dist/types/components/kup-card/standard/kup-card-standard.d.ts +0 -6
  188. package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +3 -1
  189. package/dist/types/components/kup-data-table/kup-data-table.d.ts +15 -1
  190. package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +1 -0
  191. package/dist/types/components/kup-family-tree/kup-family-tree.d.ts +5 -0
  192. package/dist/types/components/kup-list/kup-list.d.ts +5 -0
  193. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +5 -0
  194. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +0 -4
  195. package/dist/types/components/kup-tree/kup-tree.d.ts +18 -12
  196. package/dist/types/components.d.ts +43 -16
  197. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +1 -0
  198. package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +2 -1
  199. package/dist/types/stencil-public-runtime.d.ts +15 -4
  200. package/package.json +3 -2
  201. package/CHANGELOG.md +0 -5
  202. package/dist/ketchup/p-753c82d8.js +0 -1
  203. package/dist/ketchup/p-77600efd.entry.js +0 -9
  204. package/dist/ketchup/p-88722265.js +0 -1
  205. package/dist/ketchup/p-9027e5ac.js +0 -30
  206. package/dist/ketchup/p-aa564df8.entry.js +0 -1
  207. package/dist/ketchup/p-b0b3989b.js +0 -2
  208. package/dist/ketchup/p-b238f9ea.entry.js +0 -1
  209. package/dist/ketchup/p-b4f85d34.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import { Component, Element, Event, forceUpdate, getAssetPath, h, Host, Method, Prop, State, Watch, } from '@stencil/core';
1
+ import { forceUpdate, getAssetPath, h, Host, } from '@stencil/core';
2
2
  import { TotalLabel, TotalMode, } from './../kup-data-table/kup-data-table-declarations';
3
3
  import { KupTreeProps, treeMainColumnName, KupTreeExpansionMode, } from './kup-tree-declarations';
4
4
  import { MDCRipple } from '@material/ripple';
@@ -32,8 +32,12 @@ export class KupTree {
32
32
  */
33
33
  this.openedTotalMenu = null;
34
34
  this.columnMenuAnchor = null;
35
- this.selectedNodeString = '';
36
35
  this.stateSwitcher = false;
36
+ /**
37
+ * An array of integers containing the path to a selected child.\
38
+ * Groups up the properties SelFirst, SelItem, SelName.
39
+ */
40
+ this.selectedNode = [];
37
41
  /*-------------------------------------------------*/
38
42
  /* P r o p s */
39
43
  /*-------------------------------------------------*/
@@ -42,10 +46,6 @@ export class KupTree {
42
46
  * @default false
43
47
  */
44
48
  this.asAccordion = false;
45
- /**
46
- * Auto select programmatic selectic node
47
- */
48
- this.autoSelectionNodeMode = true;
49
49
  /**
50
50
  * Custom style of the component.
51
51
  * @default ""
@@ -125,11 +125,6 @@ export class KupTree {
125
125
  * Activates the scroll on hover function.
126
126
  */
127
127
  this.scrollOnHover = false;
128
- /**
129
- * An array of integers containing the path to a selected child.\
130
- * Groups up the properties SelFirst, SelItem, SelName.
131
- */
132
- this.selectedNode = [];
133
128
  /**
134
129
  * Shows the tree data as a table.
135
130
  */
@@ -174,6 +169,7 @@ export class KupTree {
174
169
  * Reference to the column menu card.
175
170
  */
176
171
  this.columnMenuCard = null;
172
+ this.selectedColumn = '';
177
173
  this.clickTimeout = [];
178
174
  this.sizedColumns = undefined;
179
175
  this.filtersColumnMenuInstance = new FiltersColumnMenu();
@@ -239,6 +235,31 @@ export class KupTree {
239
235
  }
240
236
  }
241
237
  }
238
+ /**
239
+ * This method will get the selected nodes of the component.
240
+ */
241
+ async getSelectedNode() {
242
+ return this.selectedNode;
243
+ }
244
+ /**
245
+ * This method will set the selected rows of the component.
246
+ * @param {string|number[]} rowsIdentifiers - Array of ids (dataset) or indexes (rendered rows).
247
+ * @param {boolean} emitEvent - The event will always be emitted unless emitEvent is set to false.
248
+ */
249
+ async setSelectedNode(treeNodePath, emitEvent) {
250
+ this.selectedNode = treeNodePath
251
+ .split(',')
252
+ .map((treeNodeIndex) => parseInt(treeNodeIndex));
253
+ if (emitEvent !== false) {
254
+ this.kupTreeNodeSelected.emit({
255
+ comp: this,
256
+ id: this.rootElement.id,
257
+ treeNodePath: this.selectedNode,
258
+ treeNode: this.getTreeNode(this.selectedNode),
259
+ columnName: this.selectedColumn,
260
+ });
261
+ }
262
+ }
242
263
  /*-------------------------------------------------*/
243
264
  /* W a t c h e r s */
244
265
  /*-------------------------------------------------*/
@@ -255,11 +276,6 @@ export class KupTree {
255
276
  this.refreshStructureState();
256
277
  }
257
278
  }
258
- selectedNodeToStr(newData) {
259
- if (Array.isArray(newData)) {
260
- this.selectedNodeString = newData.toString();
261
- }
262
- }
263
279
  /*-------------------------------------------------*/
264
280
  /* P u b l i c M e t h o d s */
265
281
  /*-------------------------------------------------*/
@@ -531,7 +547,7 @@ export class KupTree {
531
547
  this.launchNodeEvent(treeNodePath, tn);
532
548
  }
533
549
  else {
534
- this.hdlTreeNodeClick(null, tn, this.selectedNodeString, true);
550
+ this.hdlTreeNodeClick(null, tn, this.selectedNodeToString(this.selectedNode));
535
551
  }
536
552
  }
537
553
  }
@@ -653,34 +669,25 @@ export class KupTree {
653
669
  return path;
654
670
  }
655
671
  // When a TreeNode can be selected
656
- hdlTreeNodeClick(e, treeNodeData, treeNodePath, auto) {
672
+ hdlTreeNodeClick(e, treeNodeData, treeNodePath) {
657
673
  if (this.expansionMode.toLowerCase() ===
658
674
  KupTreeExpansionMode.DROPDOWN ||
659
675
  (this.expansionMode.toLowerCase() === KupTreeExpansionMode.NODE &&
660
676
  !treeNodeData.expandable)) {
661
- const td = e
662
- ? this.getEventPath(e.target).find((el) => {
663
- if (el.tagName === 'TD')
664
- return el;
665
- })
666
- : null;
667
677
  // If this TreeNode is not disabled, then it can be selected and an event is emitted
668
678
  if (treeNodeData && !treeNodeData.disabled) {
669
- if (this.autoSelectionNodeMode)
670
- this.selectedNode = treeNodePath
671
- .split(',')
672
- .map((treeNodeIndex) => parseInt(treeNodeIndex));
679
+ this.selectedNode = treeNodePath
680
+ .split(',')
681
+ .map((treeNodeIndex) => parseInt(treeNodeIndex));
673
682
  this.kupTreeNodeSelected.emit({
674
683
  comp: this,
675
684
  id: this.rootElement.id,
676
- treeNodePath: treeNodePath
677
- .split(',')
678
- .map((treeNodeIndex) => parseInt(treeNodeIndex)),
685
+ treeNodePath: this.selectedNode,
679
686
  treeNode: treeNodeData,
680
- columnName: td ? td.dataset.column : null,
681
- auto: auto,
687
+ columnName: this.selectedColumn,
682
688
  });
683
689
  }
690
+ this.selectedColumn = '';
684
691
  }
685
692
  // If KupTreeExpansionMode.NODE then click is a collapse/expand click
686
693
  if (this.expansionMode.toLowerCase() === KupTreeExpansionMode.NODE) {
@@ -775,9 +782,9 @@ export class KupTree {
775
782
  hasTotals() {
776
783
  return this.totals && Object.keys(this.totals).length > 0;
777
784
  }
778
- handleChildren(TreeNode, expand) {
779
- for (let index = 0; index < TreeNode.children.length; index++) {
780
- let node = TreeNode.children[index];
785
+ handleChildren(treeNode, expand) {
786
+ for (let index = 0; index < treeNode.children.length; index++) {
787
+ let node = treeNode.children[index];
781
788
  if (!node.disabled) {
782
789
  node.isExpanded = expand;
783
790
  if (node.children) {
@@ -795,7 +802,7 @@ export class KupTree {
795
802
  if (nodePath && nodePath.length) {
796
803
  strToRet = nodePath[0].toString();
797
804
  for (let i = 1; i < nodePath.length; i++) {
798
- strToRet += `,${nodePath[0]}`;
805
+ strToRet += `,${nodePath[i]}`;
799
806
  }
800
807
  }
801
808
  return strToRet;
@@ -803,6 +810,21 @@ export class KupTree {
803
810
  getFilterValueForTooltip(column) {
804
811
  return this.filtersColumnMenuInstance.getFilterValueForTooltip(this.filters, column);
805
812
  }
813
+ getTreeNode(nodePath) {
814
+ if (!nodePath || nodePath.length == 0) {
815
+ return null;
816
+ }
817
+ let father = this.data;
818
+ let node = null;
819
+ for (let index = 0; index < nodePath.length; index++) {
820
+ if (node) {
821
+ father = node.children;
822
+ }
823
+ const nodeIndex = nodePath[index];
824
+ node = father[nodeIndex];
825
+ }
826
+ return node;
827
+ }
806
828
  onRemoveFilter(column) {
807
829
  const newFilters = Object.assign({}, this.filters);
808
830
  this.filtersColumnMenuInstance.removeFilter(newFilters, column.name);
@@ -852,6 +874,7 @@ export class KupTree {
852
874
  this.data.forEach((rootNode) => {
853
875
  this.expandCollapseAllNodes(rootNode, this.expanded && !this.useDynamicExpansion);
854
876
  });
877
+ this.selectedNode = [];
855
878
  }
856
879
  }
857
880
  createIconElement(CSSClass, icon, iconColor) {
@@ -859,8 +882,7 @@ export class KupTree {
859
882
  icon.indexOf('/') > -1 ||
860
883
  icon.indexOf('\\') > -1) {
861
884
  CSSClass += ' is-image';
862
- return (h("span", { class: CSSClass },
863
- h("img", { src: icon })));
885
+ return (h("span", { class: CSSClass }, h("img", { src: icon })));
864
886
  }
865
887
  else {
866
888
  let svg = `url('${getAssetPath(`./assets/svg/${icon}.svg`)}') no-repeat center`;
@@ -916,9 +938,7 @@ export class KupTree {
916
938
  this.onRemoveFilter(column);
917
939
  } }));
918
940
  }
919
- return (h("th", { "data-column": column.name, style: this.getCellStyle(column.name, null) },
920
- h("span", { class: "column-title" }, column.title),
921
- filter));
941
+ return (h("th", { "data-column": column.name, style: this.getCellStyle(column.name, null) }, h("span", { class: "column-title" }, column.title), filter));
922
942
  });
923
943
  }
924
944
  /**
@@ -1018,20 +1038,13 @@ export class KupTree {
1018
1038
  }
1019
1039
  // When can be expanded OR selected
1020
1040
  if (!treeNodeData.disabled) {
1021
- treeNodeOptions['onClick'] = (e) => {
1022
- // Note: event must be cloned
1023
- // otherwise inside setTimeout will be exiting the Shadow DOM scope(causing loss of information, including target).
1024
- const clone = {};
1025
- for (const key in e) {
1026
- clone[key] = e[key];
1027
- }
1028
- this.clickTimeout.push(setTimeout(() => this.hdlTreeNodeClick(clone, treeNodeData, treeNodePath, false), 300));
1041
+ treeNodeOptions['onClick'] = () => {
1042
+ this.clickTimeout.push(setTimeout((e) => this.hdlTreeNodeClick(e, treeNodeData, treeNodePath), 300));
1029
1043
  };
1030
1044
  }
1031
1045
  // When a tree node is displayed as a table
1032
1046
  let treeNodeCells = null;
1033
1047
  let visibleCols = this.getVisibleColumns();
1034
- const _hasTooltip = !this.kupManager.objects.isEmptyKupObj(treeNodeData.obj);
1035
1048
  if (this.showColumns && visibleCols && visibleCols.length) {
1036
1049
  treeNodeCells = [];
1037
1050
  // Renders all the cells
@@ -1051,8 +1064,7 @@ export class KupTree {
1051
1064
  row: treeNodeData,
1052
1065
  setSizes: true,
1053
1066
  };
1054
- treeNodeCells.push(h("td", { class: `grid-cell`, "data-cell": cell, "data-column": column.name },
1055
- h(FCell, Object.assign({}, cellProps))));
1067
+ treeNodeCells.push(h("td", { class: `grid-cell`, "data-cell": cell, "data-column": column.name }, h(FCell, Object.assign({}, cellProps))));
1056
1068
  }
1057
1069
  else {
1058
1070
  treeNodeCells.push(h("td", { class: `grid-cell` }));
@@ -1101,10 +1113,9 @@ export class KupTree {
1101
1113
  'kup-tree__node--disabled': treeNodeData.disabled,
1102
1114
  'kup-tree__node--first': treeNodeDepth ? false : true,
1103
1115
  'kup-tree__node--selected': !treeNodeData.disabled &&
1104
- treeNodePath === this.selectedNodeString,
1105
- }, "data-row": treeNodeData, "data-tree-path": treeNodePath }, treeNodeOptions),
1106
- treeNodeCell,
1107
- treeNodeCells));
1116
+ treeNodePath ===
1117
+ this.selectedNodeToString(this.selectedNode),
1118
+ }, "data-row": treeNodeData, "data-tree-path": treeNodePath }, treeNodeOptions), treeNodeCell, treeNodeCells));
1108
1119
  }
1109
1120
  closeTotalMenu() {
1110
1121
  this.openedTotalMenu = null;
@@ -1225,14 +1236,9 @@ export class KupTree {
1225
1236
  else {
1226
1237
  value = numberToFormattedStringNumber(this.footer[column.name], column.decimals, column.obj ? column.obj.p : '');
1227
1238
  }
1228
- return (h("td", { "data-column": column.name },
1229
- totalMenu,
1230
- h("span", { class: "totals-value", title: translation[menuLabel] }, value)));
1239
+ return (h("td", { "data-column": column.name }, totalMenu, h("span", { class: "totals-value", title: translation[menuLabel] }, value)));
1231
1240
  });
1232
- return (h("tfoot", null,
1233
- h("tr", null,
1234
- nodesCell,
1235
- footerCells)));
1241
+ return (h("tfoot", null, h("tr", null, nodesCell, footerCells)));
1236
1242
  }
1237
1243
  didLoadInteractables() {
1238
1244
  this.interactableTouch.push(this.treeWrapperRef);
@@ -1343,25 +1349,8 @@ export class KupTree {
1343
1349
  this.kupManager.theme.register(this);
1344
1350
  this.columnMenuInstance = new KupColumnMenu();
1345
1351
  this.refreshStructureState();
1346
- // Initializes the selectedNodeString
1347
- if (Array.isArray(this.selectedNode)) {
1348
- this.selectedNodeString = this.selectedNode.toString();
1349
- }
1350
1352
  }
1351
1353
  componentDidLoad() {
1352
- if (this.selectedNode &&
1353
- this.selectedNode.length > 0 &&
1354
- this.selectedNode[0] >= 0) {
1355
- let path = this.selectedNode;
1356
- let tn = this.data[path[0]];
1357
- if (path.length > 1) {
1358
- path = path.slice(1);
1359
- this.launchNodeEvent(path, tn);
1360
- }
1361
- else {
1362
- this.hdlTreeNodeClick(null, tn, this.selectedNodeString, true);
1363
- }
1364
- }
1365
1354
  this.didLoadInteractables();
1366
1355
  this.kupDidLoad.emit({ comp: this, id: this.rootElement.id });
1367
1356
  this.kupManager.resize.observe(this.rootElement);
@@ -1423,8 +1412,7 @@ export class KupTree {
1423
1412
  }
1424
1413
  else {
1425
1414
  // There are no TreeNodes, so we print a single cell with a caption
1426
- treeNodes.push(h("tr", null,
1427
- h("td", null, this.kupManager.language.translate(KupLanguageGeneric.EMPTY_DATA))));
1415
+ treeNodes.push(h("tr", null, h("td", null, this.kupManager.language.translate(KupLanguageGeneric.EMPTY_DATA))));
1428
1416
  }
1429
1417
  // Calculates if header must be shown or not
1430
1418
  const visibleHeader = this.showHeader && this.showColumns;
@@ -1433,30 +1421,20 @@ export class KupTree {
1433
1421
  this.data &&
1434
1422
  this.data.length &&
1435
1423
  this.data.length > 0) {
1436
- filterField = (h("div", { id: "global-filter" },
1437
- h("kup-text-field", { fullWidth: true, label: this.kupManager.language.translate(KupLanguageSearch.SEARCH), icon: KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
1438
- window.clearTimeout(this.globalFilterTimeout);
1439
- this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
1440
- } })));
1441
- }
1442
- return (h(Host, null,
1443
- h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)),
1444
- h("div", { id: componentWrapperId, class: wrapperClass },
1445
- filterField,
1446
- h("div", { class: "wrapper", ref: (el) => (this.treeWrapperRef =
1447
- el) },
1448
- h("table", { class: "kup-tree", "data-show-columns": this.showColumns, onContextMenu: (e) => {
1449
- e.preventDefault();
1450
- } },
1451
- h("thead", { class: {
1452
- 'header--is-visible': visibleHeader,
1453
- } },
1454
- h("tr", null, visibleHeader ? this.renderHeader() : null)),
1455
- h("tbody", null, treeNodes),
1456
- (this.showFooter || this.hasTotals()) &&
1457
- this.columns
1458
- ? this.renderFooter()
1459
- : null)))));
1424
+ filterField = (h("div", { id: "global-filter" }, h("kup-text-field", { fullWidth: true, label: this.kupManager.language.translate(KupLanguageSearch.SEARCH), icon: KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
1425
+ window.clearTimeout(this.globalFilterTimeout);
1426
+ this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
1427
+ } })));
1428
+ }
1429
+ return (h(Host, null, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, class: wrapperClass }, filterField, h("div", { class: "wrapper", ref: (el) => (this.treeWrapperRef =
1430
+ el) }, h("table", { class: "kup-tree", "data-show-columns": this.showColumns, onContextMenu: (e) => {
1431
+ e.preventDefault();
1432
+ } }, h("thead", { class: {
1433
+ 'header--is-visible': visibleHeader,
1434
+ } }, h("tr", null, visibleHeader ? this.renderHeader() : null)), h("tbody", null, treeNodes), (this.showFooter || this.hasTotals()) &&
1435
+ this.columns
1436
+ ? this.renderFooter()
1437
+ : null)))));
1460
1438
  }
1461
1439
  disconnectedCallback() {
1462
1440
  this.kupManager.language.register(this);
@@ -1476,1094 +1454,1117 @@ export class KupTree {
1476
1454
  }
1477
1455
  static get is() { return "kup-tree"; }
1478
1456
  static get encapsulation() { return "shadow"; }
1479
- static get originalStyleUrls() { return {
1480
- "$": ["kup-tree.scss"]
1481
- }; }
1482
- static get styleUrls() { return {
1483
- "$": ["kup-tree.css"]
1484
- }; }
1485
- static get properties() { return {
1486
- "asAccordion": {
1487
- "type": "boolean",
1488
- "mutable": false,
1489
- "complexType": {
1490
- "original": "boolean",
1491
- "resolved": "boolean",
1492
- "references": {}
1493
- },
1494
- "required": false,
1495
- "optional": false,
1496
- "docs": {
1497
- "tags": [{
1498
- "name": "default",
1499
- "text": "false"
1500
- }],
1501
- "text": "When enabled, the first level of depth will give an accordion look to nodes."
1502
- },
1503
- "attribute": "as-accordion",
1504
- "reflect": true,
1505
- "defaultValue": "false"
1506
- },
1507
- "autoSelectionNodeMode": {
1508
- "type": "boolean",
1509
- "mutable": false,
1510
- "complexType": {
1511
- "original": "boolean",
1512
- "resolved": "boolean",
1513
- "references": {}
1514
- },
1515
- "required": false,
1516
- "optional": false,
1517
- "docs": {
1518
- "tags": [],
1519
- "text": "Auto select programmatic selectic node"
1520
- },
1521
- "attribute": "auto-selection-node-mode",
1522
- "reflect": false,
1523
- "defaultValue": "true"
1524
- },
1525
- "columns": {
1526
- "type": "unknown",
1527
- "mutable": true,
1528
- "complexType": {
1529
- "original": "KupDataColumn[]",
1530
- "resolved": "KupDataColumn[]",
1531
- "references": {
1532
- "KupDataColumn": {
1533
- "location": "import",
1534
- "path": "../../managers/kup-data/kup-data-declarations"
1535
- }
1536
- }
1537
- },
1538
- "required": false,
1539
- "optional": true,
1540
- "docs": {
1541
- "tags": [],
1542
- "text": "The columns of the tree when tree visualization is active."
1543
- }
1544
- },
1545
- "customStyle": {
1546
- "type": "string",
1547
- "mutable": false,
1548
- "complexType": {
1549
- "original": "string",
1550
- "resolved": "string",
1551
- "references": {}
1552
- },
1553
- "required": false,
1554
- "optional": false,
1555
- "docs": {
1556
- "tags": [{
1557
- "name": "default",
1558
- "text": "\"\""
1559
- }, {
1560
- "name": "see",
1561
- "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
1562
- }],
1563
- "text": "Custom style of the component."
1564
- },
1565
- "attribute": "custom-style",
1566
- "reflect": false,
1567
- "defaultValue": "''"
1568
- },
1569
- "data": {
1570
- "type": "unknown",
1571
- "mutable": true,
1572
- "complexType": {
1573
- "original": "KupTreeNode[]",
1574
- "resolved": "KupTreeNode[]",
1575
- "references": {
1576
- "KupTreeNode": {
1577
- "location": "import",
1578
- "path": "./kup-tree-declarations"
1457
+ static get originalStyleUrls() {
1458
+ return {
1459
+ "$": ["kup-tree.scss"]
1460
+ };
1461
+ }
1462
+ static get styleUrls() {
1463
+ return {
1464
+ "$": ["kup-tree.css"]
1465
+ };
1466
+ }
1467
+ static get properties() {
1468
+ return {
1469
+ "asAccordion": {
1470
+ "type": "boolean",
1471
+ "mutable": false,
1472
+ "complexType": {
1473
+ "original": "boolean",
1474
+ "resolved": "boolean",
1475
+ "references": {}
1476
+ },
1477
+ "required": false,
1478
+ "optional": false,
1479
+ "docs": {
1480
+ "tags": [{
1481
+ "name": "default",
1482
+ "text": "false"
1483
+ }],
1484
+ "text": "When enabled, the first level of depth will give an accordion look to nodes."
1485
+ },
1486
+ "attribute": "as-accordion",
1487
+ "reflect": true,
1488
+ "defaultValue": "false"
1489
+ },
1490
+ "columns": {
1491
+ "type": "unknown",
1492
+ "mutable": true,
1493
+ "complexType": {
1494
+ "original": "KupDataColumn[]",
1495
+ "resolved": "KupDataColumn[]",
1496
+ "references": {
1497
+ "KupDataColumn": {
1498
+ "location": "import",
1499
+ "path": "../../managers/kup-data/kup-data-declarations"
1500
+ }
1579
1501
  }
1502
+ },
1503
+ "required": false,
1504
+ "optional": true,
1505
+ "docs": {
1506
+ "tags": [],
1507
+ "text": "The columns of the tree when tree visualization is active."
1580
1508
  }
1581
1509
  },
1582
- "required": false,
1583
- "optional": false,
1584
- "docs": {
1585
- "tags": [],
1586
- "text": "The json data used to populate the tree view: the basic, always visible tree nodes."
1587
- },
1588
- "defaultValue": "[]"
1589
- },
1590
- "density": {
1591
- "type": "string",
1592
- "mutable": false,
1593
- "complexType": {
1594
- "original": "FCellPadding",
1595
- "resolved": "FCellPadding.DENSE | FCellPadding.MEDIUM | FCellPadding.NONE | FCellPadding.WIDE",
1596
- "references": {
1597
- "FCellPadding": {
1598
- "location": "import",
1599
- "path": "../../f-components/f-cell/f-cell-declarations"
1510
+ "customStyle": {
1511
+ "type": "string",
1512
+ "mutable": false,
1513
+ "complexType": {
1514
+ "original": "string",
1515
+ "resolved": "string",
1516
+ "references": {}
1517
+ },
1518
+ "required": false,
1519
+ "optional": false,
1520
+ "docs": {
1521
+ "tags": [{
1522
+ "name": "default",
1523
+ "text": "\"\""
1524
+ }, {
1525
+ "name": "see",
1526
+ "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
1527
+ }],
1528
+ "text": "Custom style of the component."
1529
+ },
1530
+ "attribute": "custom-style",
1531
+ "reflect": false,
1532
+ "defaultValue": "''"
1533
+ },
1534
+ "data": {
1535
+ "type": "unknown",
1536
+ "mutable": true,
1537
+ "complexType": {
1538
+ "original": "KupTreeNode[]",
1539
+ "resolved": "KupTreeNode[]",
1540
+ "references": {
1541
+ "KupTreeNode": {
1542
+ "location": "import",
1543
+ "path": "./kup-tree-declarations"
1544
+ }
1600
1545
  }
1601
- }
1602
- },
1603
- "required": false,
1604
- "optional": false,
1605
- "docs": {
1606
- "tags": [],
1607
- "text": "The density of the rows, defaults at 'medium' and can also be set to 'dense' or 'wide'."
1608
- },
1609
- "attribute": "density",
1610
- "reflect": false,
1611
- "defaultValue": "FCellPadding.MEDIUM"
1612
- },
1613
- "dynamicExpansionCallback": {
1614
- "type": "unknown",
1615
- "mutable": false,
1616
- "complexType": {
1617
- "original": "(\r\n treeNodeToExpand: KupTreeNode,\r\n treeNodePath: TreeNodePath\r\n ) => Promise<KupTreeNode[]> | undefined",
1618
- "resolved": "(treeNodeToExpand: KupTreeNode, treeNodePath: TreeNodePath) => Promise<KupTreeNode[]>",
1619
- "references": {
1620
- "KupTreeNode": {
1621
- "location": "import",
1622
- "path": "./kup-tree-declarations"
1623
- },
1624
- "TreeNodePath": {
1625
- "location": "import",
1626
- "path": "./kup-tree-declarations"
1627
- },
1628
- "Promise": {
1629
- "location": "global"
1546
+ },
1547
+ "required": false,
1548
+ "optional": false,
1549
+ "docs": {
1550
+ "tags": [],
1551
+ "text": "The json data used to populate the tree view: the basic, always visible tree nodes."
1552
+ },
1553
+ "defaultValue": "[]"
1554
+ },
1555
+ "density": {
1556
+ "type": "string",
1557
+ "mutable": false,
1558
+ "complexType": {
1559
+ "original": "FCellPadding",
1560
+ "resolved": "FCellPadding.DENSE | FCellPadding.MEDIUM | FCellPadding.NONE | FCellPadding.WIDE",
1561
+ "references": {
1562
+ "FCellPadding": {
1563
+ "location": "import",
1564
+ "path": "../../f-components/f-cell/f-cell-declarations"
1565
+ }
1630
1566
  }
1631
- }
1632
- },
1633
- "required": false,
1634
- "optional": false,
1635
- "docs": {
1636
- "tags": [{
1637
- "name": "see",
1638
- "text": "useDynamicExpansion"
1639
- }],
1640
- "text": "Function that gets invoked when a new set of nodes must be loaded as children of a node.\r\n\r\nWhen useDynamicExpansion is set, the tree component will have two different behaviors depending on the value of this prop.\r\n1 - If this prop is set to null, no callback to download data is available:\r\n the component will emit an event requiring the parent to load the children of the given node.\r\n2 - If this prop is set to have a callback, then the component will automatically make requests to load children of\r\n a given node. After the load has been completed, a different event will be fired to alert the parent of the change."
1641
- },
1642
- "defaultValue": "undefined"
1643
- },
1644
- "editableData": {
1645
- "type": "boolean",
1646
- "mutable": false,
1647
- "complexType": {
1648
- "original": "boolean",
1649
- "resolved": "boolean",
1650
- "references": {}
1651
- },
1652
- "required": false,
1653
- "optional": false,
1654
- "docs": {
1655
- "tags": [{
1656
- "name": "default",
1657
- "text": "false"
1658
- }],
1659
- "text": "When set to true, editable cells will be rendered using input components."
1660
- },
1661
- "attribute": "editable-data",
1662
- "reflect": false,
1663
- "defaultValue": "false"
1664
- },
1665
- "enableExtraColumns": {
1666
- "type": "boolean",
1667
- "mutable": false,
1668
- "complexType": {
1669
- "original": "boolean",
1670
- "resolved": "boolean",
1671
- "references": {}
1672
- },
1673
- "required": false,
1674
- "optional": false,
1675
- "docs": {
1676
- "tags": [],
1677
- "text": "Enables the extracolumns add buttons."
1678
- },
1679
- "attribute": "enable-extra-columns",
1680
- "reflect": false,
1681
- "defaultValue": "true"
1682
- },
1683
- "expanded": {
1684
- "type": "boolean",
1685
- "mutable": false,
1686
- "complexType": {
1687
- "original": "boolean",
1688
- "resolved": "boolean",
1689
- "references": {}
1690
- },
1691
- "required": false,
1692
- "optional": false,
1693
- "docs": {
1694
- "tags": [],
1695
- "text": "Flag: the nodes of the whole tree must be already expanded upon loading. Disabled nodes do NOT get expanded."
1696
- },
1697
- "attribute": "expanded",
1698
- "reflect": false,
1699
- "defaultValue": "false"
1700
- },
1701
- "expansionMode": {
1702
- "type": "string",
1703
- "mutable": false,
1704
- "complexType": {
1705
- "original": "KupTreeExpansionMode",
1706
- "resolved": "KupTreeExpansionMode.DROPDOWN | KupTreeExpansionMode.NODE",
1707
- "references": {
1708
- "KupTreeExpansionMode": {
1709
- "location": "import",
1710
- "path": "./kup-tree-declarations"
1567
+ },
1568
+ "required": false,
1569
+ "optional": false,
1570
+ "docs": {
1571
+ "tags": [],
1572
+ "text": "The density of the rows, defaults at 'medium' and can also be set to 'dense' or 'wide'."
1573
+ },
1574
+ "attribute": "density",
1575
+ "reflect": false,
1576
+ "defaultValue": "FCellPadding.MEDIUM"
1577
+ },
1578
+ "dynamicExpansionCallback": {
1579
+ "type": "unknown",
1580
+ "mutable": false,
1581
+ "complexType": {
1582
+ "original": "(\r\n treeNodeToExpand: KupTreeNode,\r\n treeNodePath: TreeNodePath\r\n ) => Promise<KupTreeNode[]> | undefined",
1583
+ "resolved": "(treeNodeToExpand: KupTreeNode, treeNodePath: TreeNodePath) => Promise<KupTreeNode[]>",
1584
+ "references": {
1585
+ "KupTreeNode": {
1586
+ "location": "import",
1587
+ "path": "./kup-tree-declarations"
1588
+ },
1589
+ "TreeNodePath": {
1590
+ "location": "import",
1591
+ "path": "./kup-tree-declarations"
1592
+ },
1593
+ "Promise": {
1594
+ "location": "global"
1595
+ }
1711
1596
  }
1712
- }
1713
- },
1714
- "required": false,
1715
- "optional": false,
1716
- "docs": {
1717
- "tags": [{
1718
- "name": "default",
1719
- "text": "KupTreeExpansionMode.DROPDOWN"
1720
- }],
1721
- "text": "Behavior of nodes' expansion: it can be chosen between expanding a node by clicking on the dropdown icon, or by clicking on the whole node."
1722
- },
1723
- "attribute": "expansion-mode",
1724
- "reflect": false,
1725
- "defaultValue": "KupTreeExpansionMode.DROPDOWN"
1726
- },
1727
- "filters": {
1728
- "type": "unknown",
1729
- "mutable": true,
1730
- "complexType": {
1731
- "original": "GenericFilter",
1732
- "resolved": "GenericFilter",
1733
- "references": {
1734
- "GenericFilter": {
1735
- "location": "import",
1736
- "path": "../../utils/filters/filters-declarations"
1597
+ },
1598
+ "required": false,
1599
+ "optional": false,
1600
+ "docs": {
1601
+ "tags": [{
1602
+ "name": "see",
1603
+ "text": "useDynamicExpansion"
1604
+ }],
1605
+ "text": "Function that gets invoked when a new set of nodes must be loaded as children of a node.\r\n\r\nWhen useDynamicExpansion is set, the tree component will have two different behaviors depending on the value of this prop.\r\n1 - If this prop is set to null, no callback to download data is available:\r\n the component will emit an event requiring the parent to load the children of the given node.\r\n2 - If this prop is set to have a callback, then the component will automatically make requests to load children of\r\n a given node. After the load has been completed, a different event will be fired to alert the parent of the change."
1606
+ },
1607
+ "defaultValue": "undefined"
1608
+ },
1609
+ "editableData": {
1610
+ "type": "boolean",
1611
+ "mutable": false,
1612
+ "complexType": {
1613
+ "original": "boolean",
1614
+ "resolved": "boolean",
1615
+ "references": {}
1616
+ },
1617
+ "required": false,
1618
+ "optional": false,
1619
+ "docs": {
1620
+ "tags": [{
1621
+ "name": "default",
1622
+ "text": "false"
1623
+ }],
1624
+ "text": "When set to true, editable cells will be rendered using input components."
1625
+ },
1626
+ "attribute": "editable-data",
1627
+ "reflect": false,
1628
+ "defaultValue": "false"
1629
+ },
1630
+ "enableExtraColumns": {
1631
+ "type": "boolean",
1632
+ "mutable": false,
1633
+ "complexType": {
1634
+ "original": "boolean",
1635
+ "resolved": "boolean",
1636
+ "references": {}
1637
+ },
1638
+ "required": false,
1639
+ "optional": false,
1640
+ "docs": {
1641
+ "tags": [],
1642
+ "text": "Enables the extracolumns add buttons."
1643
+ },
1644
+ "attribute": "enable-extra-columns",
1645
+ "reflect": false,
1646
+ "defaultValue": "true"
1647
+ },
1648
+ "expanded": {
1649
+ "type": "boolean",
1650
+ "mutable": false,
1651
+ "complexType": {
1652
+ "original": "boolean",
1653
+ "resolved": "boolean",
1654
+ "references": {}
1655
+ },
1656
+ "required": false,
1657
+ "optional": false,
1658
+ "docs": {
1659
+ "tags": [],
1660
+ "text": "Flag: the nodes of the whole tree must be already expanded upon loading. Disabled nodes do NOT get expanded."
1661
+ },
1662
+ "attribute": "expanded",
1663
+ "reflect": false,
1664
+ "defaultValue": "false"
1665
+ },
1666
+ "expansionMode": {
1667
+ "type": "string",
1668
+ "mutable": false,
1669
+ "complexType": {
1670
+ "original": "KupTreeExpansionMode",
1671
+ "resolved": "KupTreeExpansionMode.DROPDOWN | KupTreeExpansionMode.NODE",
1672
+ "references": {
1673
+ "KupTreeExpansionMode": {
1674
+ "location": "import",
1675
+ "path": "./kup-tree-declarations"
1676
+ }
1737
1677
  }
1738
- }
1739
- },
1740
- "required": false,
1741
- "optional": false,
1742
- "docs": {
1743
- "tags": [],
1744
- "text": "List of filters set by the user."
1745
- },
1746
- "defaultValue": "{}"
1747
- },
1748
- "globalFilter": {
1749
- "type": "boolean",
1750
- "mutable": false,
1751
- "complexType": {
1752
- "original": "boolean",
1753
- "resolved": "boolean",
1754
- "references": {}
1755
- },
1756
- "required": false,
1757
- "optional": false,
1758
- "docs": {
1759
- "tags": [],
1760
- "text": "When set to true it activates the global filter."
1761
- },
1762
- "attribute": "global-filter",
1763
- "reflect": false,
1764
- "defaultValue": "false"
1765
- },
1766
- "globalFilterValue": {
1767
- "type": "string",
1768
- "mutable": true,
1769
- "complexType": {
1770
- "original": "string",
1771
- "resolved": "string",
1772
- "references": {}
1773
- },
1774
- "required": false,
1775
- "optional": false,
1776
- "docs": {
1777
- "tags": [],
1778
- "text": "The value of the global filter."
1779
- },
1780
- "attribute": "global-filter-value",
1781
- "reflect": true,
1782
- "defaultValue": "''"
1783
- },
1784
- "globalFilterMode": {
1785
- "type": "string",
1786
- "mutable": false,
1787
- "complexType": {
1788
- "original": "KupGlobalFilterMode",
1789
- "resolved": "KupGlobalFilterMode.HIGHLIGHT | KupGlobalFilterMode.SIMPLE",
1790
- "references": {
1791
- "KupGlobalFilterMode": {
1792
- "location": "import",
1793
- "path": "../../utils/filters/filters-declarations"
1678
+ },
1679
+ "required": false,
1680
+ "optional": false,
1681
+ "docs": {
1682
+ "tags": [{
1683
+ "name": "default",
1684
+ "text": "KupTreeExpansionMode.DROPDOWN"
1685
+ }],
1686
+ "text": "Behavior of nodes' expansion: it can be chosen between expanding a node by clicking on the dropdown icon, or by clicking on the whole node."
1687
+ },
1688
+ "attribute": "expansion-mode",
1689
+ "reflect": false,
1690
+ "defaultValue": "KupTreeExpansionMode.DROPDOWN"
1691
+ },
1692
+ "filters": {
1693
+ "type": "unknown",
1694
+ "mutable": true,
1695
+ "complexType": {
1696
+ "original": "GenericFilter",
1697
+ "resolved": "GenericFilter",
1698
+ "references": {
1699
+ "GenericFilter": {
1700
+ "location": "import",
1701
+ "path": "../../utils/filters/filters-declarations"
1702
+ }
1794
1703
  }
1795
- }
1796
- },
1797
- "required": false,
1798
- "optional": false,
1799
- "docs": {
1800
- "tags": [],
1801
- "text": "The mode of the global filter (default SIMPLE)"
1802
- },
1803
- "attribute": "global-filter-mode",
1804
- "reflect": false,
1805
- "defaultValue": "KupGlobalFilterMode.SIMPLE"
1806
- },
1807
- "preventXScroll": {
1808
- "type": "boolean",
1809
- "mutable": false,
1810
- "complexType": {
1811
- "original": "boolean",
1812
- "resolved": "boolean",
1813
- "references": {}
1814
- },
1815
- "required": false,
1816
- "optional": false,
1817
- "docs": {
1818
- "tags": [{
1819
- "name": "default",
1820
- "text": "false;"
1821
- }],
1822
- "text": "Experimental feature: when active, the tree will try to prevent horizontal overflowing elements by setting a width on the content of the table cells.\r\nIt works only on cells of the main column."
1823
- },
1824
- "attribute": "prevent-x-scroll",
1825
- "reflect": true,
1826
- "defaultValue": "false"
1827
- },
1828
- "removableColumns": {
1829
- "type": "boolean",
1830
- "mutable": false,
1831
- "complexType": {
1832
- "original": "boolean",
1833
- "resolved": "boolean",
1834
- "references": {}
1835
- },
1836
- "required": false,
1837
- "optional": false,
1838
- "docs": {
1839
- "tags": [],
1840
- "text": "Sets the possibility to remove the selected column."
1841
- },
1842
- "attribute": "removable-columns",
1843
- "reflect": false,
1844
- "defaultValue": "true"
1845
- },
1846
- "ripple": {
1847
- "type": "boolean",
1848
- "mutable": false,
1849
- "complexType": {
1850
- "original": "boolean",
1851
- "resolved": "boolean",
1852
- "references": {}
1853
- },
1854
- "required": false,
1855
- "optional": false,
1856
- "docs": {
1857
- "tags": [{
1858
- "name": "default",
1859
- "text": "true"
1860
- }],
1861
- "text": "When enabled displays Material's ripple effect on nodes (only when no columns are displayed)."
1862
- },
1863
- "attribute": "ripple",
1864
- "reflect": false,
1865
- "defaultValue": "true"
1866
- },
1867
- "scrollOnHover": {
1868
- "type": "boolean",
1869
- "mutable": false,
1870
- "complexType": {
1871
- "original": "boolean",
1872
- "resolved": "boolean",
1873
- "references": {}
1874
- },
1875
- "required": false,
1876
- "optional": false,
1877
- "docs": {
1878
- "tags": [],
1879
- "text": "Activates the scroll on hover function."
1880
- },
1881
- "attribute": "scroll-on-hover",
1882
- "reflect": false,
1883
- "defaultValue": "false"
1884
- },
1885
- "selectedNode": {
1886
- "type": "unknown",
1887
- "mutable": true,
1888
- "complexType": {
1889
- "original": "TreeNodePath",
1890
- "resolved": "number[]",
1891
- "references": {
1892
- "TreeNodePath": {
1893
- "location": "import",
1894
- "path": "./kup-tree-declarations"
1704
+ },
1705
+ "required": false,
1706
+ "optional": false,
1707
+ "docs": {
1708
+ "tags": [],
1709
+ "text": "List of filters set by the user."
1710
+ },
1711
+ "defaultValue": "{}"
1712
+ },
1713
+ "globalFilter": {
1714
+ "type": "boolean",
1715
+ "mutable": false,
1716
+ "complexType": {
1717
+ "original": "boolean",
1718
+ "resolved": "boolean",
1719
+ "references": {}
1720
+ },
1721
+ "required": false,
1722
+ "optional": false,
1723
+ "docs": {
1724
+ "tags": [],
1725
+ "text": "When set to true it activates the global filter."
1726
+ },
1727
+ "attribute": "global-filter",
1728
+ "reflect": false,
1729
+ "defaultValue": "false"
1730
+ },
1731
+ "globalFilterValue": {
1732
+ "type": "string",
1733
+ "mutable": true,
1734
+ "complexType": {
1735
+ "original": "string",
1736
+ "resolved": "string",
1737
+ "references": {}
1738
+ },
1739
+ "required": false,
1740
+ "optional": false,
1741
+ "docs": {
1742
+ "tags": [],
1743
+ "text": "The value of the global filter."
1744
+ },
1745
+ "attribute": "global-filter-value",
1746
+ "reflect": true,
1747
+ "defaultValue": "''"
1748
+ },
1749
+ "globalFilterMode": {
1750
+ "type": "string",
1751
+ "mutable": false,
1752
+ "complexType": {
1753
+ "original": "KupGlobalFilterMode",
1754
+ "resolved": "KupGlobalFilterMode.HIGHLIGHT | KupGlobalFilterMode.SIMPLE",
1755
+ "references": {
1756
+ "KupGlobalFilterMode": {
1757
+ "location": "import",
1758
+ "path": "../../utils/filters/filters-declarations"
1759
+ }
1895
1760
  }
1896
- }
1897
- },
1898
- "required": false,
1899
- "optional": false,
1900
- "docs": {
1901
- "tags": [],
1902
- "text": "An array of integers containing the path to a selected child.\\\r\nGroups up the properties SelFirst, SelItem, SelName."
1903
- },
1904
- "defaultValue": "[]"
1905
- },
1906
- "showColumns": {
1907
- "type": "boolean",
1908
- "mutable": true,
1909
- "complexType": {
1910
- "original": "boolean",
1911
- "resolved": "boolean",
1912
- "references": {}
1913
- },
1914
- "required": false,
1915
- "optional": false,
1916
- "docs": {
1917
- "tags": [],
1918
- "text": "Shows the tree data as a table."
1919
- },
1920
- "attribute": "show-columns",
1921
- "reflect": false,
1922
- "defaultValue": "false"
1923
- },
1924
- "showFilters": {
1925
- "type": "boolean",
1926
- "mutable": false,
1927
- "complexType": {
1928
- "original": "boolean",
1929
- "resolved": "boolean",
1930
- "references": {}
1931
- },
1932
- "required": false,
1933
- "optional": false,
1934
- "docs": {
1935
- "tags": [],
1936
- "text": "When set to true enables the column filters."
1937
- },
1938
- "attribute": "show-filters",
1939
- "reflect": false,
1940
- "defaultValue": "true"
1941
- },
1942
- "showFooter": {
1943
- "type": "boolean",
1944
- "mutable": false,
1945
- "complexType": {
1946
- "original": "boolean",
1947
- "resolved": "boolean",
1948
- "references": {}
1949
- },
1950
- "required": false,
1951
- "optional": false,
1952
- "docs": {
1953
- "tags": [],
1954
- "text": "When set to true shows the footer."
1955
- },
1956
- "attribute": "show-footer",
1957
- "reflect": false,
1958
- "defaultValue": "false"
1959
- },
1960
- "showHeader": {
1961
- "type": "boolean",
1962
- "mutable": true,
1963
- "complexType": {
1964
- "original": "boolean",
1965
- "resolved": "boolean",
1966
- "references": {}
1967
- },
1968
- "required": false,
1969
- "optional": false,
1970
- "docs": {
1971
- "tags": [{
1972
- "name": "see",
1973
- "text": "showColumns"
1974
- }],
1975
- "text": "Flag: shows the header of the tree when the tree is displayed as a table."
1976
- },
1977
- "attribute": "show-header",
1978
- "reflect": false,
1979
- "defaultValue": "false"
1980
- },
1981
- "showIcons": {
1982
- "type": "boolean",
1983
- "mutable": false,
1984
- "complexType": {
1985
- "original": "boolean",
1986
- "resolved": "boolean",
1987
- "references": {}
1988
- },
1989
- "required": false,
1990
- "optional": false,
1991
- "docs": {
1992
- "tags": [],
1993
- "text": "Shows the icons of the nodes."
1994
- },
1995
- "attribute": "show-icons",
1996
- "reflect": false,
1997
- "defaultValue": "true"
1998
- },
1999
- "stateId": {
2000
- "type": "string",
2001
- "mutable": false,
2002
- "complexType": {
2003
- "original": "string",
2004
- "resolved": "string",
2005
- "references": {}
2006
- },
2007
- "required": false,
2008
- "optional": false,
2009
- "docs": {
2010
- "tags": [],
2011
- "text": ""
2012
- },
2013
- "attribute": "state-id",
2014
- "reflect": false,
2015
- "defaultValue": "''"
2016
- },
2017
- "store": {
2018
- "type": "unknown",
2019
- "mutable": false,
2020
- "complexType": {
2021
- "original": "KupStore",
2022
- "resolved": "KupStore",
2023
- "references": {
2024
- "KupStore": {
2025
- "location": "import",
2026
- "path": "../kup-state/kup-store"
1761
+ },
1762
+ "required": false,
1763
+ "optional": false,
1764
+ "docs": {
1765
+ "tags": [],
1766
+ "text": "The mode of the global filter (default SIMPLE)"
1767
+ },
1768
+ "attribute": "global-filter-mode",
1769
+ "reflect": false,
1770
+ "defaultValue": "KupGlobalFilterMode.SIMPLE"
1771
+ },
1772
+ "preventXScroll": {
1773
+ "type": "boolean",
1774
+ "mutable": false,
1775
+ "complexType": {
1776
+ "original": "boolean",
1777
+ "resolved": "boolean",
1778
+ "references": {}
1779
+ },
1780
+ "required": false,
1781
+ "optional": false,
1782
+ "docs": {
1783
+ "tags": [{
1784
+ "name": "default",
1785
+ "text": "false;"
1786
+ }],
1787
+ "text": "Experimental feature: when active, the tree will try to prevent horizontal overflowing elements by setting a width on the content of the table cells.\r\nIt works only on cells of the main column."
1788
+ },
1789
+ "attribute": "prevent-x-scroll",
1790
+ "reflect": true,
1791
+ "defaultValue": "false"
1792
+ },
1793
+ "removableColumns": {
1794
+ "type": "boolean",
1795
+ "mutable": false,
1796
+ "complexType": {
1797
+ "original": "boolean",
1798
+ "resolved": "boolean",
1799
+ "references": {}
1800
+ },
1801
+ "required": false,
1802
+ "optional": false,
1803
+ "docs": {
1804
+ "tags": [],
1805
+ "text": "Sets the possibility to remove the selected column."
1806
+ },
1807
+ "attribute": "removable-columns",
1808
+ "reflect": false,
1809
+ "defaultValue": "true"
1810
+ },
1811
+ "ripple": {
1812
+ "type": "boolean",
1813
+ "mutable": false,
1814
+ "complexType": {
1815
+ "original": "boolean",
1816
+ "resolved": "boolean",
1817
+ "references": {}
1818
+ },
1819
+ "required": false,
1820
+ "optional": false,
1821
+ "docs": {
1822
+ "tags": [{
1823
+ "name": "default",
1824
+ "text": "true"
1825
+ }],
1826
+ "text": "When enabled displays Material's ripple effect on nodes (only when no columns are displayed)."
1827
+ },
1828
+ "attribute": "ripple",
1829
+ "reflect": false,
1830
+ "defaultValue": "true"
1831
+ },
1832
+ "scrollOnHover": {
1833
+ "type": "boolean",
1834
+ "mutable": false,
1835
+ "complexType": {
1836
+ "original": "boolean",
1837
+ "resolved": "boolean",
1838
+ "references": {}
1839
+ },
1840
+ "required": false,
1841
+ "optional": false,
1842
+ "docs": {
1843
+ "tags": [],
1844
+ "text": "Activates the scroll on hover function."
1845
+ },
1846
+ "attribute": "scroll-on-hover",
1847
+ "reflect": false,
1848
+ "defaultValue": "false"
1849
+ },
1850
+ "showColumns": {
1851
+ "type": "boolean",
1852
+ "mutable": true,
1853
+ "complexType": {
1854
+ "original": "boolean",
1855
+ "resolved": "boolean",
1856
+ "references": {}
1857
+ },
1858
+ "required": false,
1859
+ "optional": false,
1860
+ "docs": {
1861
+ "tags": [],
1862
+ "text": "Shows the tree data as a table."
1863
+ },
1864
+ "attribute": "show-columns",
1865
+ "reflect": false,
1866
+ "defaultValue": "false"
1867
+ },
1868
+ "showFilters": {
1869
+ "type": "boolean",
1870
+ "mutable": false,
1871
+ "complexType": {
1872
+ "original": "boolean",
1873
+ "resolved": "boolean",
1874
+ "references": {}
1875
+ },
1876
+ "required": false,
1877
+ "optional": false,
1878
+ "docs": {
1879
+ "tags": [],
1880
+ "text": "When set to true enables the column filters."
1881
+ },
1882
+ "attribute": "show-filters",
1883
+ "reflect": false,
1884
+ "defaultValue": "true"
1885
+ },
1886
+ "showFooter": {
1887
+ "type": "boolean",
1888
+ "mutable": false,
1889
+ "complexType": {
1890
+ "original": "boolean",
1891
+ "resolved": "boolean",
1892
+ "references": {}
1893
+ },
1894
+ "required": false,
1895
+ "optional": false,
1896
+ "docs": {
1897
+ "tags": [],
1898
+ "text": "When set to true shows the footer."
1899
+ },
1900
+ "attribute": "show-footer",
1901
+ "reflect": false,
1902
+ "defaultValue": "false"
1903
+ },
1904
+ "showHeader": {
1905
+ "type": "boolean",
1906
+ "mutable": true,
1907
+ "complexType": {
1908
+ "original": "boolean",
1909
+ "resolved": "boolean",
1910
+ "references": {}
1911
+ },
1912
+ "required": false,
1913
+ "optional": false,
1914
+ "docs": {
1915
+ "tags": [{
1916
+ "name": "see",
1917
+ "text": "showColumns"
1918
+ }],
1919
+ "text": "Flag: shows the header of the tree when the tree is displayed as a table."
1920
+ },
1921
+ "attribute": "show-header",
1922
+ "reflect": false,
1923
+ "defaultValue": "false"
1924
+ },
1925
+ "showIcons": {
1926
+ "type": "boolean",
1927
+ "mutable": false,
1928
+ "complexType": {
1929
+ "original": "boolean",
1930
+ "resolved": "boolean",
1931
+ "references": {}
1932
+ },
1933
+ "required": false,
1934
+ "optional": false,
1935
+ "docs": {
1936
+ "tags": [],
1937
+ "text": "Shows the icons of the nodes."
1938
+ },
1939
+ "attribute": "show-icons",
1940
+ "reflect": false,
1941
+ "defaultValue": "true"
1942
+ },
1943
+ "stateId": {
1944
+ "type": "string",
1945
+ "mutable": false,
1946
+ "complexType": {
1947
+ "original": "string",
1948
+ "resolved": "string",
1949
+ "references": {}
1950
+ },
1951
+ "required": false,
1952
+ "optional": false,
1953
+ "docs": {
1954
+ "tags": [],
1955
+ "text": ""
1956
+ },
1957
+ "attribute": "state-id",
1958
+ "reflect": false,
1959
+ "defaultValue": "''"
1960
+ },
1961
+ "store": {
1962
+ "type": "unknown",
1963
+ "mutable": false,
1964
+ "complexType": {
1965
+ "original": "KupStore",
1966
+ "resolved": "KupStore",
1967
+ "references": {
1968
+ "KupStore": {
1969
+ "location": "import",
1970
+ "path": "../kup-state/kup-store"
1971
+ }
2027
1972
  }
1973
+ },
1974
+ "required": false,
1975
+ "optional": false,
1976
+ "docs": {
1977
+ "tags": [],
1978
+ "text": ""
2028
1979
  }
2029
1980
  },
2030
- "required": false,
2031
- "optional": false,
2032
- "docs": {
2033
- "tags": [],
2034
- "text": ""
2035
- }
2036
- },
2037
- "useDynamicExpansion": {
2038
- "type": "boolean",
2039
- "mutable": false,
2040
- "complexType": {
2041
- "original": "boolean",
2042
- "resolved": "boolean",
2043
- "references": {}
2044
- },
2045
- "required": false,
2046
- "optional": false,
2047
- "docs": {
2048
- "tags": [{
2049
- "name": "see",
2050
- "text": "dynamicExpansionCallback"
2051
- }],
2052
- "text": "When the component must use the dynamic expansion feature to open its nodes, it means that not all the nodes of the\r\ntree have been passed inside the data property.\r\n\r\nTherefore, when expanding a node, the tree must emit an event (or run a given callback)\r\nand wait for the child nodes to be downloaded from the server.\r\n\r\nFor more information:"
2053
- },
2054
- "attribute": "use-dynamic-expansion",
2055
- "reflect": false,
2056
- "defaultValue": "false"
2057
- },
2058
- "totals": {
2059
- "type": "unknown",
2060
- "mutable": true,
2061
- "complexType": {
2062
- "original": "TotalsMap",
2063
- "resolved": "TotalsMap",
2064
- "references": {
2065
- "TotalsMap": {
2066
- "location": "import",
2067
- "path": "./../kup-data-table/kup-data-table-declarations"
1981
+ "useDynamicExpansion": {
1982
+ "type": "boolean",
1983
+ "mutable": false,
1984
+ "complexType": {
1985
+ "original": "boolean",
1986
+ "resolved": "boolean",
1987
+ "references": {}
1988
+ },
1989
+ "required": false,
1990
+ "optional": false,
1991
+ "docs": {
1992
+ "tags": [{
1993
+ "name": "see",
1994
+ "text": "dynamicExpansionCallback"
1995
+ }],
1996
+ "text": "When the component must use the dynamic expansion feature to open its nodes, it means that not all the nodes of the\r\ntree have been passed inside the data property.\r\n\r\nTherefore, when expanding a node, the tree must emit an event (or run a given callback)\r\nand wait for the child nodes to be downloaded from the server.\r\n\r\nFor more information:"
1997
+ },
1998
+ "attribute": "use-dynamic-expansion",
1999
+ "reflect": false,
2000
+ "defaultValue": "false"
2001
+ },
2002
+ "totals": {
2003
+ "type": "unknown",
2004
+ "mutable": true,
2005
+ "complexType": {
2006
+ "original": "TotalsMap",
2007
+ "resolved": "TotalsMap",
2008
+ "references": {
2009
+ "TotalsMap": {
2010
+ "location": "import",
2011
+ "path": "./../kup-data-table/kup-data-table-declarations"
2012
+ }
2068
2013
  }
2014
+ },
2015
+ "required": false,
2016
+ "optional": false,
2017
+ "docs": {
2018
+ "tags": [],
2019
+ "text": "Defines the current totals options."
2069
2020
  }
2070
- },
2071
- "required": false,
2072
- "optional": false,
2073
- "docs": {
2074
- "tags": [],
2075
- "text": "Defines the current totals options."
2076
2021
  }
2077
- }
2078
- }; }
2079
- static get states() { return {
2080
- "treeColumnVisible": {},
2081
- "openedTotalMenu": {},
2082
- "columnMenuAnchor": {},
2083
- "selectedNodeString": {},
2084
- "stateSwitcher": {}
2085
- }; }
2086
- static get events() { return [{
2087
- "method": "kupTreeNodeCollapse",
2088
- "name": "kup-tree-nodecollapse",
2089
- "bubbles": true,
2090
- "cancelable": false,
2091
- "composed": true,
2092
- "docs": {
2093
- "tags": [],
2094
- "text": "Fired when a KupTreeNode gets collapsed (closed)."
2095
- },
2096
- "complexType": {
2097
- "original": "KupTreeNodeCollapseEventPayload",
2098
- "resolved": "KupTreeNodeCollapseEventPayload",
2099
- "references": {
2100
- "KupTreeNodeCollapseEventPayload": {
2101
- "location": "import",
2102
- "path": "./kup-tree-declarations"
2022
+ };
2023
+ }
2024
+ static get states() {
2025
+ return {
2026
+ "treeColumnVisible": {},
2027
+ "openedTotalMenu": {},
2028
+ "columnMenuAnchor": {},
2029
+ "stateSwitcher": {},
2030
+ "selectedNode": {}
2031
+ };
2032
+ }
2033
+ static get events() {
2034
+ return [{
2035
+ "method": "kupTreeNodeCollapse",
2036
+ "name": "kup-tree-nodecollapse",
2037
+ "bubbles": true,
2038
+ "cancelable": false,
2039
+ "composed": true,
2040
+ "docs": {
2041
+ "tags": [],
2042
+ "text": "Fired when a KupTreeNode gets collapsed (closed)."
2043
+ },
2044
+ "complexType": {
2045
+ "original": "KupTreeNodeCollapseEventPayload",
2046
+ "resolved": "KupTreeNodeCollapseEventPayload",
2047
+ "references": {
2048
+ "KupTreeNodeCollapseEventPayload": {
2049
+ "location": "import",
2050
+ "path": "./kup-tree-declarations"
2051
+ }
2103
2052
  }
2104
2053
  }
2105
- }
2106
- }, {
2107
- "method": "kupTreeNodeExpand",
2108
- "name": "kup-tree-nodeexpand",
2109
- "bubbles": true,
2110
- "cancelable": false,
2111
- "composed": true,
2112
- "docs": {
2113
- "tags": [{
2114
- "name": "event",
2115
- "text": "kup-tree-nodeexpand"
2116
- }, {
2117
- "name": "type",
2118
- "text": "{object}"
2119
- }, {
2120
- "name": "property",
2121
- "text": "{TreeNodePath} treeNodePath - The array of indexes to retrieve the current treeNode inside the data prop."
2122
- }, {
2123
- "name": "property",
2124
- "text": "{KupTreeNode} treeNode - Reference to the KupTreeNode data object which is being expanded (passed through the data prop)."
2125
- }, {
2126
- "name": "property",
2127
- "text": "{boolean} usesDynamicExpansion - Flag to notify that the component is running in dynamicExpansion mode."
2128
- }, {
2129
- "name": "property",
2130
- "text": "{boolean} dynamicExpansionRequireChildren - Flag to notify that the current dynamicExpansion event\r\nrequires the parent component to add KupTreeNode children to the given KupTreeNode."
2131
- }, {
2132
- "name": "see",
2133
- "text": "useDynamicExpansion *"
2134
- }, {
2135
- "name": "see",
2136
- "text": "dynamicExpansionCallback *"
2137
- }, {
2138
- "name": "since",
2139
- "text": "1.0.0"
2140
- }],
2141
- "text": "Fired when a node expansion ion has been triggered.\r\nContains additional data when the tree is using the dynamicExpansion feature."
2142
- },
2143
- "complexType": {
2144
- "original": "KupTreeNodeExpandEventPayload",
2145
- "resolved": "KupTreeNodeExpandEventPayload",
2146
- "references": {
2147
- "KupTreeNodeExpandEventPayload": {
2148
- "location": "import",
2149
- "path": "./kup-tree-declarations"
2054
+ }, {
2055
+ "method": "kupTreeNodeExpand",
2056
+ "name": "kup-tree-nodeexpand",
2057
+ "bubbles": true,
2058
+ "cancelable": false,
2059
+ "composed": true,
2060
+ "docs": {
2061
+ "tags": [{
2062
+ "name": "event",
2063
+ "text": "kup-tree-nodeexpand"
2064
+ }, {
2065
+ "name": "type",
2066
+ "text": "{object}"
2067
+ }, {
2068
+ "name": "property",
2069
+ "text": "{TreeNodePath} treeNodePath - The array of indexes to retrieve the current treeNode inside the data prop."
2070
+ }, {
2071
+ "name": "property",
2072
+ "text": "{KupTreeNode} treeNode - Reference to the KupTreeNode data object which is being expanded (passed through the data prop)."
2073
+ }, {
2074
+ "name": "property",
2075
+ "text": "{boolean} usesDynamicExpansion - Flag to notify that the component is running in dynamicExpansion mode."
2076
+ }, {
2077
+ "name": "property",
2078
+ "text": "{boolean} dynamicExpansionRequireChildren - Flag to notify that the current dynamicExpansion event\r\nrequires the parent component to add KupTreeNode children to the given KupTreeNode."
2079
+ }, {
2080
+ "name": "see",
2081
+ "text": "useDynamicExpansion *"
2082
+ }, {
2083
+ "name": "see",
2084
+ "text": "dynamicExpansionCallback *"
2085
+ }, {
2086
+ "name": "since",
2087
+ "text": "1.0.0"
2088
+ }],
2089
+ "text": "Fired when a node expansion ion has been triggered.\r\nContains additional data when the tree is using the dynamicExpansion feature."
2090
+ },
2091
+ "complexType": {
2092
+ "original": "KupTreeNodeExpandEventPayload",
2093
+ "resolved": "KupTreeNodeExpandEventPayload",
2094
+ "references": {
2095
+ "KupTreeNodeExpandEventPayload": {
2096
+ "location": "import",
2097
+ "path": "./kup-tree-declarations"
2098
+ }
2150
2099
  }
2151
2100
  }
2152
- }
2153
- }, {
2154
- "method": "kupTreeNodeSelected",
2155
- "name": "kup-tree-nodeselected",
2156
- "bubbles": true,
2157
- "cancelable": false,
2158
- "composed": true,
2159
- "docs": {
2160
- "tags": [],
2161
- "text": "Fired when a node of the tree has been selected"
2162
- },
2163
- "complexType": {
2164
- "original": "KupTreeNodeSelectedEventPayload",
2165
- "resolved": "KupTreeNodeSelectedEventPayload",
2166
- "references": {
2167
- "KupTreeNodeSelectedEventPayload": {
2168
- "location": "import",
2169
- "path": "./kup-tree-declarations"
2101
+ }, {
2102
+ "method": "kupTreeNodeSelected",
2103
+ "name": "kup-tree-nodeselected",
2104
+ "bubbles": true,
2105
+ "cancelable": false,
2106
+ "composed": true,
2107
+ "docs": {
2108
+ "tags": [],
2109
+ "text": "Fired when a node of the tree has been selected"
2110
+ },
2111
+ "complexType": {
2112
+ "original": "KupTreeNodeSelectedEventPayload",
2113
+ "resolved": "KupTreeNodeSelectedEventPayload",
2114
+ "references": {
2115
+ "KupTreeNodeSelectedEventPayload": {
2116
+ "location": "import",
2117
+ "path": "./kup-tree-declarations"
2118
+ }
2170
2119
  }
2171
2120
  }
2172
- }
2173
- }, {
2174
- "method": "kupTreeNodeButtonClick",
2175
- "name": "kup-tree-buttonclick",
2176
- "bubbles": true,
2177
- "cancelable": false,
2178
- "composed": true,
2179
- "docs": {
2180
- "tags": [],
2181
- "text": ""
2182
- },
2183
- "complexType": {
2184
- "original": "KupTreeNodeButtonClickEventPayload",
2185
- "resolved": "KupTreeNodeButtonClickEventPayload",
2186
- "references": {
2187
- "KupTreeNodeButtonClickEventPayload": {
2188
- "location": "import",
2189
- "path": "./kup-tree-declarations"
2121
+ }, {
2122
+ "method": "kupTreeNodeButtonClick",
2123
+ "name": "kup-tree-buttonclick",
2124
+ "bubbles": true,
2125
+ "cancelable": false,
2126
+ "composed": true,
2127
+ "docs": {
2128
+ "tags": [],
2129
+ "text": ""
2130
+ },
2131
+ "complexType": {
2132
+ "original": "KupTreeNodeButtonClickEventPayload",
2133
+ "resolved": "KupTreeNodeButtonClickEventPayload",
2134
+ "references": {
2135
+ "KupTreeNodeButtonClickEventPayload": {
2136
+ "location": "import",
2137
+ "path": "./kup-tree-declarations"
2138
+ }
2190
2139
  }
2191
2140
  }
2192
- }
2193
- }, {
2194
- "method": "kupTreeContextMenu",
2195
- "name": "kup-tree-contextmenu",
2196
- "bubbles": true,
2197
- "cancelable": false,
2198
- "composed": true,
2199
- "docs": {
2200
- "tags": [],
2201
- "text": "Generic right click event on tree."
2202
- },
2203
- "complexType": {
2204
- "original": "KupTreeContextMenuEventPayload",
2205
- "resolved": "KupTreeContextMenuEventPayload",
2206
- "references": {
2207
- "KupTreeContextMenuEventPayload": {
2208
- "location": "import",
2209
- "path": "./kup-tree-declarations"
2141
+ }, {
2142
+ "method": "kupTreeContextMenu",
2143
+ "name": "kup-tree-contextmenu",
2144
+ "bubbles": true,
2145
+ "cancelable": false,
2146
+ "composed": true,
2147
+ "docs": {
2148
+ "tags": [],
2149
+ "text": "Generic right click event on tree."
2150
+ },
2151
+ "complexType": {
2152
+ "original": "KupTreeContextMenuEventPayload",
2153
+ "resolved": "KupTreeContextMenuEventPayload",
2154
+ "references": {
2155
+ "KupTreeContextMenuEventPayload": {
2156
+ "location": "import",
2157
+ "path": "./kup-tree-declarations"
2158
+ }
2210
2159
  }
2211
2160
  }
2212
- }
2213
- }, {
2214
- "method": "kupTreeColumnMenu",
2215
- "name": "kup-tree-columnmenu",
2216
- "bubbles": true,
2217
- "cancelable": false,
2218
- "composed": true,
2219
- "docs": {
2220
- "tags": [],
2221
- "text": "When the column menu is being opened/closed."
2222
- },
2223
- "complexType": {
2224
- "original": "KupTreeColumnMenuEventPayload",
2225
- "resolved": "KupTreeColumnMenuEventPayload",
2226
- "references": {
2227
- "KupTreeColumnMenuEventPayload": {
2228
- "location": "import",
2229
- "path": "./kup-tree-declarations"
2161
+ }, {
2162
+ "method": "kupTreeColumnMenu",
2163
+ "name": "kup-tree-columnmenu",
2164
+ "bubbles": true,
2165
+ "cancelable": false,
2166
+ "composed": true,
2167
+ "docs": {
2168
+ "tags": [],
2169
+ "text": "When the column menu is being opened/closed."
2170
+ },
2171
+ "complexType": {
2172
+ "original": "KupTreeColumnMenuEventPayload",
2173
+ "resolved": "KupTreeColumnMenuEventPayload",
2174
+ "references": {
2175
+ "KupTreeColumnMenuEventPayload": {
2176
+ "location": "import",
2177
+ "path": "./kup-tree-declarations"
2178
+ }
2230
2179
  }
2231
2180
  }
2232
- }
2233
- }, {
2234
- "method": "kupDidLoad",
2235
- "name": "kup-tree-didload",
2236
- "bubbles": true,
2237
- "cancelable": false,
2238
- "composed": true,
2239
- "docs": {
2240
- "tags": [],
2241
- "text": ""
2242
- },
2243
- "complexType": {
2244
- "original": "KupEventPayload",
2245
- "resolved": "KupEventPayload",
2246
- "references": {
2247
- "KupEventPayload": {
2248
- "location": "import",
2249
- "path": "../../types/GenericTypes"
2181
+ }, {
2182
+ "method": "kupDidLoad",
2183
+ "name": "kup-tree-didload",
2184
+ "bubbles": true,
2185
+ "cancelable": false,
2186
+ "composed": true,
2187
+ "docs": {
2188
+ "tags": [],
2189
+ "text": ""
2190
+ },
2191
+ "complexType": {
2192
+ "original": "KupEventPayload",
2193
+ "resolved": "KupEventPayload",
2194
+ "references": {
2195
+ "KupEventPayload": {
2196
+ "location": "import",
2197
+ "path": "../../types/GenericTypes"
2198
+ }
2250
2199
  }
2251
2200
  }
2252
- }
2253
- }, {
2254
- "method": "kupDidUnload",
2255
- "name": "kup-tree-didunload",
2256
- "bubbles": true,
2257
- "cancelable": false,
2258
- "composed": true,
2259
- "docs": {
2260
- "tags": [],
2261
- "text": "Triggered when stop propagation event"
2262
- },
2263
- "complexType": {
2264
- "original": "KupEventPayload",
2265
- "resolved": "KupEventPayload",
2266
- "references": {
2267
- "KupEventPayload": {
2268
- "location": "import",
2269
- "path": "../../types/GenericTypes"
2201
+ }, {
2202
+ "method": "kupDidUnload",
2203
+ "name": "kup-tree-didunload",
2204
+ "bubbles": true,
2205
+ "cancelable": false,
2206
+ "composed": true,
2207
+ "docs": {
2208
+ "tags": [],
2209
+ "text": "Triggered when stop propagation event"
2210
+ },
2211
+ "complexType": {
2212
+ "original": "KupEventPayload",
2213
+ "resolved": "KupEventPayload",
2214
+ "references": {
2215
+ "KupEventPayload": {
2216
+ "location": "import",
2217
+ "path": "../../types/GenericTypes"
2218
+ }
2270
2219
  }
2271
2220
  }
2272
- }
2273
- }, {
2274
- "method": "kupTreeNodeDblClick",
2275
- "name": "kup-tree-nodedblclick",
2276
- "bubbles": true,
2277
- "cancelable": false,
2278
- "composed": true,
2279
- "docs": {
2280
- "tags": [],
2281
- "text": ""
2282
- },
2283
- "complexType": {
2284
- "original": "KupTreeNodeCollapseEventPayload",
2285
- "resolved": "KupTreeNodeCollapseEventPayload",
2286
- "references": {
2287
- "KupTreeNodeCollapseEventPayload": {
2288
- "location": "import",
2289
- "path": "./kup-tree-declarations"
2221
+ }, {
2222
+ "method": "kupTreeNodeDblClick",
2223
+ "name": "kup-tree-nodedblclick",
2224
+ "bubbles": true,
2225
+ "cancelable": false,
2226
+ "composed": true,
2227
+ "docs": {
2228
+ "tags": [],
2229
+ "text": ""
2230
+ },
2231
+ "complexType": {
2232
+ "original": "KupTreeNodeCollapseEventPayload",
2233
+ "resolved": "KupTreeNodeCollapseEventPayload",
2234
+ "references": {
2235
+ "KupTreeNodeCollapseEventPayload": {
2236
+ "location": "import",
2237
+ "path": "./kup-tree-declarations"
2238
+ }
2290
2239
  }
2291
2240
  }
2292
- }
2293
- }, {
2294
- "method": "kupTreeDynamicMassExpansion",
2295
- "name": "kup-tree-dynamicmassexpansion",
2296
- "bubbles": true,
2297
- "cancelable": false,
2298
- "composed": true,
2299
- "docs": {
2300
- "tags": [],
2301
- "text": ""
2302
- },
2303
- "complexType": {
2304
- "original": "KupTreeDynamicMassExpansionEventPayload",
2305
- "resolved": "KupTreeDynamicMassExpansionEventPayload",
2306
- "references": {
2307
- "KupTreeDynamicMassExpansionEventPayload": {
2308
- "location": "import",
2309
- "path": "./kup-tree-declarations"
2241
+ }, {
2242
+ "method": "kupTreeDynamicMassExpansion",
2243
+ "name": "kup-tree-dynamicmassexpansion",
2244
+ "bubbles": true,
2245
+ "cancelable": false,
2246
+ "composed": true,
2247
+ "docs": {
2248
+ "tags": [],
2249
+ "text": ""
2250
+ },
2251
+ "complexType": {
2252
+ "original": "KupTreeDynamicMassExpansionEventPayload",
2253
+ "resolved": "KupTreeDynamicMassExpansionEventPayload",
2254
+ "references": {
2255
+ "KupTreeDynamicMassExpansionEventPayload": {
2256
+ "location": "import",
2257
+ "path": "./kup-tree-declarations"
2258
+ }
2310
2259
  }
2311
2260
  }
2312
- }
2313
- }, {
2314
- "method": "kupColumnRemove",
2315
- "name": "kup-tree-columnremove",
2316
- "bubbles": true,
2317
- "cancelable": false,
2318
- "composed": true,
2319
- "docs": {
2320
- "tags": [],
2321
- "text": "Event fired when columns are removed (set to hidden)."
2322
- },
2323
- "complexType": {
2324
- "original": "KupTreeColumnRemoveEventPayload",
2325
- "resolved": "KupTreeColumnRemoveEventPayload",
2326
- "references": {
2327
- "KupTreeColumnRemoveEventPayload": {
2328
- "location": "import",
2329
- "path": "./kup-tree-declarations"
2261
+ }, {
2262
+ "method": "kupColumnRemove",
2263
+ "name": "kup-tree-columnremove",
2264
+ "bubbles": true,
2265
+ "cancelable": false,
2266
+ "composed": true,
2267
+ "docs": {
2268
+ "tags": [],
2269
+ "text": "Event fired when columns are removed (set to hidden)."
2270
+ },
2271
+ "complexType": {
2272
+ "original": "KupTreeColumnRemoveEventPayload",
2273
+ "resolved": "KupTreeColumnRemoveEventPayload",
2274
+ "references": {
2275
+ "KupTreeColumnRemoveEventPayload": {
2276
+ "location": "import",
2277
+ "path": "./kup-tree-declarations"
2278
+ }
2330
2279
  }
2331
2280
  }
2332
- }
2333
- }]; }
2334
- static get methods() { return {
2335
- "isEmpty": {
2336
- "complexType": {
2337
- "signature": "() => Promise<boolean>",
2338
- "parameters": [],
2339
- "references": {
2340
- "Promise": {
2341
- "location": "global"
2342
- }
2281
+ }];
2282
+ }
2283
+ static get methods() {
2284
+ return {
2285
+ "getSelectedNode": {
2286
+ "complexType": {
2287
+ "signature": "() => Promise<TreeNodePath>",
2288
+ "parameters": [],
2289
+ "references": {
2290
+ "Promise": {
2291
+ "location": "global"
2292
+ },
2293
+ "TreeNodePath": {
2294
+ "location": "import",
2295
+ "path": "./kup-tree-declarations"
2296
+ }
2297
+ },
2298
+ "return": "Promise<TreeNodePath>"
2343
2299
  },
2344
- "return": "Promise<boolean>"
2300
+ "docs": {
2301
+ "text": "This method will get the selected nodes of the component.",
2302
+ "tags": []
2303
+ }
2345
2304
  },
2346
- "docs": {
2347
- "text": "True if there aren't visible nodes",
2348
- "tags": []
2349
- }
2350
- },
2351
- "closeColumnMenu": {
2352
- "complexType": {
2353
- "signature": "() => Promise<void>",
2354
- "parameters": [],
2355
- "references": {
2356
- "Promise": {
2357
- "location": "global"
2358
- }
2305
+ "setSelectedNode": {
2306
+ "complexType": {
2307
+ "signature": "(treeNodePath: string, emitEvent?: boolean) => Promise<void>",
2308
+ "parameters": [{
2309
+ "tags": [],
2310
+ "text": ""
2311
+ }, {
2312
+ "tags": [{
2313
+ "name": "param",
2314
+ "text": "emitEvent - The event will always be emitted unless emitEvent is set to false."
2315
+ }],
2316
+ "text": "- The event will always be emitted unless emitEvent is set to false."
2317
+ }],
2318
+ "references": {
2319
+ "Promise": {
2320
+ "location": "global"
2321
+ }
2322
+ },
2323
+ "return": "Promise<void>"
2359
2324
  },
2360
- "return": "Promise<void>"
2325
+ "docs": {
2326
+ "text": "This method will set the selected rows of the component.",
2327
+ "tags": [{
2328
+ "name": "param",
2329
+ "text": "rowsIdentifiers - Array of ids (dataset) or indexes (rendered rows)."
2330
+ }, {
2331
+ "name": "param",
2332
+ "text": "emitEvent - The event will always be emitted unless emitEvent is set to false."
2333
+ }]
2334
+ }
2361
2335
  },
2362
- "docs": {
2363
- "text": "Closes any opened column menu.",
2364
- "tags": []
2365
- }
2366
- },
2367
- "collapseAll": {
2368
- "complexType": {
2369
- "signature": "() => Promise<void>",
2370
- "parameters": [],
2371
- "references": {
2372
- "Promise": {
2373
- "location": "global"
2374
- }
2336
+ "isEmpty": {
2337
+ "complexType": {
2338
+ "signature": "() => Promise<boolean>",
2339
+ "parameters": [],
2340
+ "references": {
2341
+ "Promise": {
2342
+ "location": "global"
2343
+ }
2344
+ },
2345
+ "return": "Promise<boolean>"
2375
2346
  },
2376
- "return": "Promise<void>"
2347
+ "docs": {
2348
+ "text": "True if there aren't visible nodes",
2349
+ "tags": []
2350
+ }
2377
2351
  },
2378
- "docs": {
2379
- "text": "Collapses all nodes.",
2380
- "tags": []
2381
- }
2382
- },
2383
- "expandAll": {
2384
- "complexType": {
2385
- "signature": "() => Promise<void>",
2386
- "parameters": [],
2387
- "references": {
2388
- "Promise": {
2389
- "location": "global"
2390
- }
2352
+ "closeColumnMenu": {
2353
+ "complexType": {
2354
+ "signature": "() => Promise<void>",
2355
+ "parameters": [],
2356
+ "references": {
2357
+ "Promise": {
2358
+ "location": "global"
2359
+ }
2360
+ },
2361
+ "return": "Promise<void>"
2391
2362
  },
2392
- "return": "Promise<void>"
2363
+ "docs": {
2364
+ "text": "Closes any opened column menu.",
2365
+ "tags": []
2366
+ }
2393
2367
  },
2394
- "docs": {
2395
- "text": "Expands all nodes.",
2396
- "tags": []
2397
- }
2398
- },
2399
- "getProps": {
2400
- "complexType": {
2401
- "signature": "(descriptions?: boolean) => Promise<GenericObject>",
2402
- "parameters": [{
2403
- "tags": [{
2404
- "name": "param",
2405
- "text": "descriptions - When provided and true, the result will be the list of props with their description."
2406
- }],
2407
- "text": "- When provided and true, the result will be the list of props with their description."
2408
- }],
2409
- "references": {
2410
- "Promise": {
2411
- "location": "global"
2368
+ "collapseAll": {
2369
+ "complexType": {
2370
+ "signature": "() => Promise<void>",
2371
+ "parameters": [],
2372
+ "references": {
2373
+ "Promise": {
2374
+ "location": "global"
2375
+ }
2412
2376
  },
2413
- "GenericObject": {
2414
- "location": "import",
2415
- "path": "../../types/GenericTypes"
2416
- }
2377
+ "return": "Promise<void>"
2417
2378
  },
2418
- "return": "Promise<GenericObject>"
2379
+ "docs": {
2380
+ "text": "Collapses all nodes.",
2381
+ "tags": []
2382
+ }
2419
2383
  },
2420
- "docs": {
2421
- "text": "Used to retrieve component's props values.",
2422
- "tags": [{
2423
- "name": "param",
2424
- "text": "descriptions - When provided and true, the result will be the list of props with their description."
2425
- }, {
2426
- "name": "returns",
2427
- "text": "List of props as object, each key will be a prop."
2428
- }]
2429
- }
2430
- },
2431
- "hideColumn": {
2432
- "complexType": {
2433
- "signature": "(column: KupDataColumn) => Promise<void>",
2434
- "parameters": [{
2435
- "tags": [{
2436
- "name": "param",
2437
- "text": "column - Column to hide."
2438
- }],
2439
- "text": "- Column to hide."
2440
- }],
2441
- "references": {
2442
- "Promise": {
2443
- "location": "global"
2384
+ "expandAll": {
2385
+ "complexType": {
2386
+ "signature": "() => Promise<void>",
2387
+ "parameters": [],
2388
+ "references": {
2389
+ "Promise": {
2390
+ "location": "global"
2391
+ }
2444
2392
  },
2445
- "KupDataColumn": {
2446
- "location": "import",
2447
- "path": "../../managers/kup-data/kup-data-declarations"
2448
- }
2393
+ "return": "Promise<void>"
2449
2394
  },
2450
- "return": "Promise<void>"
2395
+ "docs": {
2396
+ "text": "Expands all nodes.",
2397
+ "tags": []
2398
+ }
2451
2399
  },
2452
- "docs": {
2453
- "text": "Hides the given column.",
2454
- "tags": [{
2455
- "name": "param",
2456
- "text": "column - Column to hide."
2457
- }]
2458
- }
2459
- },
2460
- "openColumnMenu": {
2461
- "complexType": {
2462
- "signature": "(column: string) => Promise<void>",
2463
- "parameters": [{
2464
- "tags": [{
2465
- "name": "param",
2466
- "text": "column - Name of the column."
2467
- }],
2468
- "text": "- Name of the column."
2469
- }],
2470
- "references": {
2471
- "Promise": {
2472
- "location": "global"
2473
- },
2474
- "CustomEvent": {
2475
- "location": "global"
2400
+ "getProps": {
2401
+ "complexType": {
2402
+ "signature": "(descriptions?: boolean) => Promise<GenericObject>",
2403
+ "parameters": [{
2404
+ "tags": [{
2405
+ "name": "param",
2406
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
2407
+ }],
2408
+ "text": "- When provided and true, the result will be the list of props with their description."
2409
+ }],
2410
+ "references": {
2411
+ "Promise": {
2412
+ "location": "global"
2413
+ },
2414
+ "GenericObject": {
2415
+ "location": "import",
2416
+ "path": "../../types/GenericTypes"
2417
+ }
2476
2418
  },
2477
- "KupEventPayload": {
2478
- "location": "import",
2479
- "path": "../../types/GenericTypes"
2419
+ "return": "Promise<GenericObject>"
2420
+ },
2421
+ "docs": {
2422
+ "text": "Used to retrieve component's props values.",
2423
+ "tags": [{
2424
+ "name": "param",
2425
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
2426
+ }, {
2427
+ "name": "returns",
2428
+ "text": "List of props as object, each key will be a prop."
2429
+ }]
2430
+ }
2431
+ },
2432
+ "hideColumn": {
2433
+ "complexType": {
2434
+ "signature": "(column: KupDataColumn) => Promise<void>",
2435
+ "parameters": [{
2436
+ "tags": [{
2437
+ "name": "param",
2438
+ "text": "column - Column to hide."
2439
+ }],
2440
+ "text": "- Column to hide."
2441
+ }],
2442
+ "references": {
2443
+ "Promise": {
2444
+ "location": "global"
2445
+ },
2446
+ "KupDataColumn": {
2447
+ "location": "import",
2448
+ "path": "../../managers/kup-data/kup-data-declarations"
2449
+ }
2480
2450
  },
2481
- "KupCardEventPayload": {
2482
- "location": "import",
2483
- "path": "../kup-card/kup-card-declarations"
2484
- }
2451
+ "return": "Promise<void>"
2485
2452
  },
2486
- "return": "Promise<void>"
2453
+ "docs": {
2454
+ "text": "Hides the given column.",
2455
+ "tags": [{
2456
+ "name": "param",
2457
+ "text": "column - Column to hide."
2458
+ }]
2459
+ }
2487
2460
  },
2488
- "docs": {
2489
- "text": "Opens the column menu of the given column.",
2490
- "tags": [{
2491
- "name": "param",
2492
- "text": "column - Name of the column."
2493
- }]
2494
- }
2495
- },
2496
- "refresh": {
2497
- "complexType": {
2498
- "signature": "() => Promise<void>",
2499
- "parameters": [],
2500
- "references": {
2501
- "Promise": {
2502
- "location": "global"
2503
- }
2461
+ "openColumnMenu": {
2462
+ "complexType": {
2463
+ "signature": "(column: string) => Promise<void>",
2464
+ "parameters": [{
2465
+ "tags": [{
2466
+ "name": "param",
2467
+ "text": "column - Name of the column."
2468
+ }],
2469
+ "text": "- Name of the column."
2470
+ }],
2471
+ "references": {
2472
+ "Promise": {
2473
+ "location": "global"
2474
+ },
2475
+ "CustomEvent": {
2476
+ "location": "global"
2477
+ },
2478
+ "KupEventPayload": {
2479
+ "location": "import",
2480
+ "path": "../../types/GenericTypes"
2481
+ },
2482
+ "KupCardEventPayload": {
2483
+ "location": "import",
2484
+ "path": "../kup-card/kup-card-declarations"
2485
+ }
2486
+ },
2487
+ "return": "Promise<void>"
2504
2488
  },
2505
- "return": "Promise<void>"
2489
+ "docs": {
2490
+ "text": "Opens the column menu of the given column.",
2491
+ "tags": [{
2492
+ "name": "param",
2493
+ "text": "column - Name of the column."
2494
+ }]
2495
+ }
2506
2496
  },
2507
- "docs": {
2508
- "text": "This method is used to trigger a new render of the component.",
2509
- "tags": []
2510
- }
2511
- },
2512
- "resizeCallback": {
2513
- "complexType": {
2514
- "signature": "() => Promise<void>",
2515
- "parameters": [],
2516
- "references": {
2517
- "Promise": {
2518
- "location": "global"
2519
- }
2497
+ "refresh": {
2498
+ "complexType": {
2499
+ "signature": "() => Promise<void>",
2500
+ "parameters": [],
2501
+ "references": {
2502
+ "Promise": {
2503
+ "location": "global"
2504
+ }
2505
+ },
2506
+ "return": "Promise<void>"
2520
2507
  },
2521
- "return": "Promise<void>"
2508
+ "docs": {
2509
+ "text": "This method is used to trigger a new render of the component.",
2510
+ "tags": []
2511
+ }
2522
2512
  },
2523
- "docs": {
2524
- "text": "This method is invoked by KupManager whenever the component changes size.",
2525
- "tags": []
2526
- }
2527
- },
2528
- "setProps": {
2529
- "complexType": {
2530
- "signature": "(props: GenericObject) => Promise<void>",
2531
- "parameters": [{
2532
- "tags": [{
2533
- "name": "param",
2534
- "text": "props - Object containing props that will be set to the component."
2535
- }],
2536
- "text": "- Object containing props that will be set to the component."
2537
- }],
2538
- "references": {
2539
- "Promise": {
2540
- "location": "global"
2513
+ "resizeCallback": {
2514
+ "complexType": {
2515
+ "signature": "() => Promise<void>",
2516
+ "parameters": [],
2517
+ "references": {
2518
+ "Promise": {
2519
+ "location": "global"
2520
+ }
2541
2521
  },
2542
- "GenericObject": {
2543
- "location": "import",
2544
- "path": "../../types/GenericTypes"
2545
- }
2522
+ "return": "Promise<void>"
2546
2523
  },
2547
- "return": "Promise<void>"
2524
+ "docs": {
2525
+ "text": "This method is invoked by KupManager whenever the component changes size.",
2526
+ "tags": []
2527
+ }
2548
2528
  },
2549
- "docs": {
2550
- "text": "Sets the props to the component.",
2551
- "tags": [{
2552
- "name": "param",
2553
- "text": "props - Object containing props that will be set to the component."
2554
- }]
2529
+ "setProps": {
2530
+ "complexType": {
2531
+ "signature": "(props: GenericObject) => Promise<void>",
2532
+ "parameters": [{
2533
+ "tags": [{
2534
+ "name": "param",
2535
+ "text": "props - Object containing props that will be set to the component."
2536
+ }],
2537
+ "text": "- Object containing props that will be set to the component."
2538
+ }],
2539
+ "references": {
2540
+ "Promise": {
2541
+ "location": "global"
2542
+ },
2543
+ "GenericObject": {
2544
+ "location": "import",
2545
+ "path": "../../types/GenericTypes"
2546
+ }
2547
+ },
2548
+ "return": "Promise<void>"
2549
+ },
2550
+ "docs": {
2551
+ "text": "Sets the props to the component.",
2552
+ "tags": [{
2553
+ "name": "param",
2554
+ "text": "props - Object containing props that will be set to the component."
2555
+ }]
2556
+ }
2555
2557
  }
2556
- }
2557
- }; }
2558
+ };
2559
+ }
2558
2560
  static get elementRef() { return "rootElement"; }
2559
- static get watchers() { return [{
2560
- "propName": "data",
2561
- "methodName": "enrichDataWhenChanged"
2562
- }, {
2563
- "propName": "expanded",
2564
- "methodName": "enrichStructureStateWhenChanged"
2565
- }, {
2566
- "propName": "selectedNode",
2567
- "methodName": "selectedNodeToStr"
2568
- }]; }
2561
+ static get watchers() {
2562
+ return [{
2563
+ "propName": "data",
2564
+ "methodName": "enrichDataWhenChanged"
2565
+ }, {
2566
+ "propName": "expanded",
2567
+ "methodName": "enrichStructureStateWhenChanged"
2568
+ }];
2569
+ }
2569
2570
  }