@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,6 +1,6 @@
1
- import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, State, Watch, } from '@stencil/core';
1
+ import { forceUpdate, h, Host, } from '@stencil/core';
2
2
  import { FixedCellsClasses, FixedCellsCSSVarsBase, GroupLabelDisplayMode, LoadMoreMode, PaginatorPos, ShowGrid, SortMode, TotalMode, TotalLabel, KupDataTableProps, fieldColumn, iconColumn, keyColumn, SelectionMode, } from './kup-data-table-declarations';
3
- import { getColumnByName } from '../../utils/cell-utils';
3
+ import { getColumnByName, } from '../../utils/cell-utils';
4
4
  import { calcTotals, normalizeRows, filterRows, groupRows, paginateRows, sortRows, } from './kup-data-table-helper';
5
5
  import { numberToFormattedStringNumber, identify, getProps, setProps, } from '../../utils/utils';
6
6
  import { ItemsDisplayMode, } from '../kup-list/kup-list-declarations';
@@ -321,7 +321,7 @@ export class KupDataTable {
321
321
  'format-color-text',
322
322
  'format-font-size-increase',
323
323
  ];
324
- this.DENSITY_DECODES = ['Dense', 'Normal', 'Wide'];
324
+ this.DENSITY_DECODES = ['Dense', 'Medium', 'Wide'];
325
325
  this.DENSITY_ICONS = [
326
326
  'format-align-justify',
327
327
  'reorder-horizontal',
@@ -583,6 +583,30 @@ export class KupDataTable {
583
583
  async collapseAll() {
584
584
  this.expandGroups = false;
585
585
  }
586
+ /**
587
+ * This method will delete rows by id from the data table dataset.
588
+ * @param {string[]} ids - Array of row ids to delete.
589
+ * @returns {Promise<Array<KupDataTableRow>>} Deleted rows.
590
+ */
591
+ async deleteRows(ids = []) {
592
+ const deletedRows = [];
593
+ const newRows = [];
594
+ for (let index = 0; index < this.data.rows.length; index++) {
595
+ const row = this.data.rows[index];
596
+ if (ids.includes(row.id)) {
597
+ deletedRows.push(row);
598
+ }
599
+ else {
600
+ newRows.push(row);
601
+ }
602
+ }
603
+ if (deletedRows.length > 0) {
604
+ this.data.rows = newRows;
605
+ this.recalculateRowsAndUndoSelections();
606
+ await this.refresh();
607
+ }
608
+ return deletedRows;
609
+ }
586
610
  /**
587
611
  * Expands all groups.
588
612
  */
@@ -690,6 +714,49 @@ export class KupDataTable {
690
714
  this.resizeTimeout = window.setTimeout(() => this.refresh(), 300);
691
715
  }
692
716
  }
717
+ /**
718
+ * Sets the cell value in a table cell.
719
+ * @param {string} columnName - Name of the column.
720
+ * @param {string} rowId - Id of the row.
721
+ * @param {string} value - Value to set.
722
+ */
723
+ async setCellValue(columnName, rowId, value) {
724
+ const column = getColumnByName(this.data.columns, columnName);
725
+ if (!column) {
726
+ return;
727
+ }
728
+ const row = this.getRow(rowId);
729
+ if (!row) {
730
+ return;
731
+ }
732
+ const cell = row.cells[columnName];
733
+ if (!cell) {
734
+ return;
735
+ }
736
+ cell.value = value;
737
+ cell.displayedValue = null;
738
+ if (cell.data) {
739
+ cell.data.key = new Date().getTime() + column.name;
740
+ cell.data.initialValue = value;
741
+ }
742
+ /*
743
+ const cells = this.rootElement.shadowRoot.querySelectorAll(
744
+ 'td[data-column="' + columnName + '"]'
745
+ );
746
+ for (let index = 0; cells && index < cells.length; index++) {
747
+ const cell = cells[index];
748
+ if (cell['data-row'] && cell['data-row'].id == rowId) {
749
+ const kupInput = cell.querySelector('.hydrated');
750
+ if (kupInput) {
751
+ try {
752
+ (kupInput as any).setValue(value);
753
+ } catch (error) {}
754
+ }
755
+ break;
756
+ }
757
+ }*/
758
+ this.refresh();
759
+ }
693
760
  /**
694
761
  * Sets the focus on an editable table cell.
695
762
  * @param {string} column - Name of the column.
@@ -732,13 +799,7 @@ export class KupDataTable {
732
799
  this.selectedRows = [];
733
800
  for (let index = 0; index < rowsIdentifiers.length; index++) {
734
801
  const id = rowsIdentifiers[index];
735
- if (typeof id === 'number') {
736
- this.selectedRows.push(this.renderedRows[id]);
737
- }
738
- else {
739
- const row = this.renderedRows.find((row) => row.id === id);
740
- this.selectedRows.push(row);
741
- }
802
+ this.selectedRows.push(this.getRow(id));
742
803
  }
743
804
  if (emitEvent !== false) {
744
805
  this.kupRowSelected.emit({
@@ -813,6 +874,20 @@ export class KupDataTable {
813
874
  this.setTransposedData();
814
875
  }
815
876
  }
877
+ getRow(id) {
878
+ if (typeof id === 'number') {
879
+ return this.data.rows[id];
880
+ }
881
+ else {
882
+ return this.data.rows.find((row) => row.id === id);
883
+ }
884
+ }
885
+ getTransposedData(column) {
886
+ if (column) {
887
+ this.filters = {};
888
+ }
889
+ return this.kupManager.data.transpose(this.data, column);
890
+ }
816
891
  setTransposedData() {
817
892
  // transpose
818
893
  this.originalData = Object.assign({}, this.data);
@@ -948,12 +1023,6 @@ export class KupDataTable {
948
1023
  delete column.icon;
949
1024
  }
950
1025
  }
951
- getTransposedData(column) {
952
- if (column) {
953
- this.filters = {};
954
- }
955
- return this.kupManager.data.transpose(this.data, column);
956
- }
957
1026
  updateStickyHeaderSize() {
958
1027
  const navBar = document.querySelectorAll('.header')[0];
959
1028
  if (navBar) {
@@ -2430,13 +2499,12 @@ export class KupDataTable {
2430
2499
  : {}));
2431
2500
  multiSelectColumn = (h("th", { class: selectionStyleAndClass
2432
2501
  ? selectionStyleAndClass.fixedCellClasses
2433
- : {}, style: style },
2434
- h("kup-checkbox", { "onkup-checkbox-change": (e) => this.onSelectAll(e), title: this.kupManager.language.translate(KupLanguageRow.SELECTED) +
2435
- `: ${this.selectedRows.length},` +
2436
- this.kupManager.language.translate(KupLanguageRow.RENDERED) +
2437
- `: ${this.renderedRows.length}`, checked: this.selectedRows.length > 0 &&
2438
- this.selectedRows.length ===
2439
- this.renderedRows.length })));
2502
+ : {}, style: style }, h("kup-checkbox", { "onkup-checkbox-change": (e) => this.onSelectAll(e), title: this.kupManager.language.translate(KupLanguageRow.SELECTED) +
2503
+ `: ${this.selectedRows.length},` +
2504
+ this.kupManager.language.translate(KupLanguageRow.RENDERED) +
2505
+ `: ${this.renderedRows.length}`, checked: this.selectedRows.length > 0 &&
2506
+ this.selectedRows.length ===
2507
+ this.renderedRows.length })));
2440
2508
  }
2441
2509
  // Renders action column
2442
2510
  let actionsColumn = null;
@@ -2483,14 +2551,7 @@ export class KupDataTable {
2483
2551
  }
2484
2552
  }
2485
2553
  }
2486
- return (h("th", { ref: (el) => this.thRefs.push(el), "data-cell": column, "data-column": column.name, class: columnClass, style: thStyle, title: column.name },
2487
- h("div", { class: "header-cell__content" },
2488
- h("span", { class: "header-cell__title" }, this.applyLineBreaks(column.title)),
2489
- h("span", { class: "header-cell__icons" },
2490
- keyIcon,
2491
- sortIcon,
2492
- filter)),
2493
- this.resizableColumns ? (h("span", { class: "header-cell__drag-handler" })) : null));
2554
+ return (h("th", { ref: (el) => this.thRefs.push(el), "data-cell": column, "data-column": column.name, class: columnClass, style: thStyle, title: column.name }, h("div", { class: "header-cell__content" }, h("span", { class: "header-cell__title" }, this.applyLineBreaks(column.title)), h("span", { class: "header-cell__icons" }, keyIcon, sortIcon, filter)), this.resizableColumns ? (h("span", { class: "header-cell__drag-handler" })) : null));
2494
2555
  });
2495
2556
  return [multiSelectColumn, actionsColumn, ...dataColumns];
2496
2557
  // return [multiSelectColumn, groupColumn, actionsColumn, ...dataColumns];
@@ -2506,13 +2567,12 @@ export class KupDataTable {
2506
2567
  : {}));
2507
2568
  multiSelectColumn = (h("th-sticky", { class: selectionStyleAndClass
2508
2569
  ? selectionStyleAndClass.fixedCellClasses
2509
- : null, style: style },
2510
- h("kup-checkbox", { "onkup-checkbox-change": (e) => this.onSelectAll(e), title: this.kupManager.language.translate(KupLanguageRow.SELECTED) +
2511
- `: ${this.selectedRows.length},` +
2512
- this.kupManager.language.translate(KupLanguageRow.RENDERED) +
2513
- `: ${this.renderedRows.length}`, checked: this.selectedRows.length > 0 &&
2514
- this.selectedRows.length ===
2515
- this.renderedRows.length })));
2570
+ : null, style: style }, h("kup-checkbox", { "onkup-checkbox-change": (e) => this.onSelectAll(e), title: this.kupManager.language.translate(KupLanguageRow.SELECTED) +
2571
+ `: ${this.selectedRows.length},` +
2572
+ this.kupManager.language.translate(KupLanguageRow.RENDERED) +
2573
+ `: ${this.renderedRows.length}`, checked: this.selectedRows.length > 0 &&
2574
+ this.selectedRows.length ===
2575
+ this.renderedRows.length })));
2516
2576
  }
2517
2577
  // Empty cell for the actions
2518
2578
  let actionsColumn = null;
@@ -2528,9 +2588,7 @@ export class KupDataTable {
2528
2588
  // Composes normal header cells
2529
2589
  const dataColumns = this.getVisibleColumns().map((column, columnIndex) => {
2530
2590
  const { columnClass, thStyle } = this.composeHeaderCellClassAndStyle(columnIndex, specialExtraCellsCount, column);
2531
- return (h("th-sticky", { class: columnClass, style: thStyle },
2532
- h("div", { class: "header-cell__content" },
2533
- h("span", { class: "header-cell__title" }, this.applyLineBreaks(column.title)))));
2591
+ return (h("th-sticky", { class: columnClass, style: thStyle }, h("div", { class: "header-cell__content" }, h("span", { class: "header-cell__title" }, this.applyLineBreaks(column.title)))));
2534
2592
  });
2535
2593
  return [multiSelectColumn, actionsColumn, ...dataColumns];
2536
2594
  }
@@ -2716,15 +2774,9 @@ export class KupDataTable {
2716
2774
  ? fixedCellStyle.fixedCellClasses
2717
2775
  : '', style: fixedCellStyle
2718
2776
  ? fixedCellStyle.fixedCellStyle
2719
- : null },
2720
- totalMenu,
2721
- h("span", { class: "totals-value", title: translation[menuLabel] }, value)));
2777
+ : null }, totalMenu, h("span", { class: "totals-value", title: translation[menuLabel] }, value)));
2722
2778
  });
2723
- const footer = (h("tfoot", null,
2724
- h("tr", null,
2725
- selectRowCell,
2726
- actionsCell,
2727
- footerCells)));
2779
+ const footer = (h("tfoot", null, h("tr", null, selectRowCell, actionsCell, footerCells)));
2728
2780
  return footer;
2729
2781
  }
2730
2782
  renderRow(row, level = 0, rowCssIndex = 0, previousRow) {
@@ -2768,11 +2820,7 @@ export class KupDataTable {
2768
2820
  cells.push(h("td", null));
2769
2821
  }
2770
2822
  // adding 'grouping' cell
2771
- const grouplabelcell = (h("td", { colSpan: this.calculateColspan() },
2772
- h("span", { class: "group-cell-content" },
2773
- indent,
2774
- h("span", { class: iconClass }),
2775
- h("span", { class: "text" }, composedGroupLabel))));
2823
+ const grouplabelcell = (h("td", { colSpan: this.calculateColspan() }, h("span", { class: "group-cell-content" }, indent, h("span", { class: iconClass }), h("span", { class: "text" }, composedGroupLabel))));
2776
2824
  // adding 'totals grouping' cells
2777
2825
  for (let column of visibleColumns) {
2778
2826
  let totalClass = 'total';
@@ -2808,12 +2856,7 @@ export class KupDataTable {
2808
2856
  jsxRows.push(h("tr", { ref: (el) => this.rowsRefs.push(el), "data-row": row, class: "group group-total" }, cells));
2809
2857
  }
2810
2858
  else {
2811
- jsxRows.push(h("tr", { ref: (el) => this.rowsRefs.push(el), "data-row": row, class: "group" },
2812
- h("td", { colSpan: this.calculateColspan() },
2813
- h("span", { class: "group-cell-content" },
2814
- indent,
2815
- h("span", { class: iconClass }),
2816
- h("span", { class: "text" }, composedGroupLabel)))));
2859
+ jsxRows.push(h("tr", { ref: (el) => this.rowsRefs.push(el), "data-row": row, class: "group" }, h("td", { colSpan: this.calculateColspan() }, h("span", { class: "group-cell-content" }, indent, h("span", { class: iconClass }), h("span", { class: "text" }, composedGroupLabel)))));
2817
2860
  }
2818
2861
  // if group is expanded, add children
2819
2862
  if (this.isGroupExpanded(row)) {
@@ -2858,8 +2901,7 @@ export class KupDataTable {
2858
2901
  ? selectionStyleAndClass.fixedCellClasses
2859
2902
  : null, style: selectionStyleAndClass
2860
2903
  ? selectionStyleAndClass.fixedCellStyle
2861
- : null },
2862
- h(FCheckbox, Object.assign({}, props))));
2904
+ : null }, h(FCheckbox, Object.assign({}, props))));
2863
2905
  }
2864
2906
  // Renders action cell
2865
2907
  // If active, this can be either the first or second cell
@@ -2897,10 +2939,7 @@ export class KupDataTable {
2897
2939
  ? actionsStyleAndClass.fixedCellClasses
2898
2940
  : null, style: actionsStyleAndClass
2899
2941
  ? actionsStyleAndClass.fixedCellStyle
2900
- : null },
2901
- defaultRowActions,
2902
- rowActionExpander,
2903
- variableActions));
2942
+ : null }, defaultRowActions, rowActionExpander, variableActions));
2904
2943
  }
2905
2944
  // Renders plain rows cells
2906
2945
  const cells = visibleColumns.map((currentColumn, cellIndex) => {
@@ -2982,10 +3021,7 @@ export class KupDataTable {
2982
3021
  const style = {
2983
3022
  '--kup_datatable_row_actions': rowActionsCount,
2984
3023
  };
2985
- return (h("tr", { ref: (el) => this.rowsRefs.push(el), "data-row": row, class: rowClass, style: style },
2986
- selectRowCell,
2987
- rowActionsCell,
2988
- cells));
3024
+ return (h("tr", { ref: (el) => this.rowsRefs.push(el), "data-row": row, class: rowClass, style: style }, selectRowCell, rowActionsCell, cells));
2989
3025
  }
2990
3026
  }
2991
3027
  renderActions(actions, row, type) {
@@ -3040,15 +3076,15 @@ export class KupDataTable {
3040
3076
  this.kupManager.removeClickCallback(this.clickCbCustomPanel);
3041
3077
  }
3042
3078
  renderPaginator(top) {
3043
- return (h("div", { class: "paginator-wrapper" },
3044
- h("div", { class: "paginator-tabs" }, !this.lazyLoadRows &&
3045
- this.rowsLength > this.rowsPerPage ? (h(FPaginator, { id: top ? 'top-paginator' : 'bottom-paginator', currentPage: this.currentPage, max: this.rowsLength, perPage: this.currentRowsPerPage
3046
- ? this.currentRowsPerPage
3047
- : this.rowsPerPage, onLoadMore: this.showLoadMore
3048
- ? () => {
3049
- this.onLoadMoreClick();
3050
- }
3051
- : null, onNextPage: () => this.handlePageChange(this.currentPage + 1), onPrevPage: () => this.handlePageChange(this.currentPage - 1), onPageChange: (e) => this.handlePageChange(e.detail.value), onRowsChange: (e) => this.handleRowsPerPageChange(e.detail.value) })) : null)));
3079
+ return (h("div", { class: "paginator-wrapper" }, h("div", { class: "paginator-tabs" }, this.showLoadMore ||
3080
+ (!this.lazyLoadRows &&
3081
+ this.rowsLength > this.rowsPerPage) ? (h(FPaginator, { id: top ? 'top-paginator' : 'bottom-paginator', currentPage: this.currentPage, max: this.rowsLength, perPage: this.currentRowsPerPage
3082
+ ? this.currentRowsPerPage
3083
+ : this.rowsPerPage, onLoadMore: this.showLoadMore
3084
+ ? () => {
3085
+ this.onLoadMoreClick();
3086
+ }
3087
+ : null, onNextPage: () => this.handlePageChange(this.currentPage + 1), onPrevPage: () => this.handlePageChange(this.currentPage - 1), onPageChange: (e) => this.handlePageChange(e.detail.value), onRowsChange: (e) => this.handleRowsPerPageChange(e.detail.value) })) : null)));
3052
3088
  }
3053
3089
  renderCustomizePanel() {
3054
3090
  let density = undefined;
@@ -3067,29 +3103,17 @@ export class KupDataTable {
3067
3103
  }
3068
3104
  return (h("kup-card", { customStyle: "::slotted(kup-switch) { width: max-content !important; } ::slotted(*) { margin: auto !important; } ::slotted(.customize-element) { margin: auto !important; padding: 0 1em 1em 1em !important; width: max-content !important; } ::slotted(.customize-element):nth-child(1) { padding-top: 1em !important; }", isMenu: true, layoutFamily: KupCardFamily.FREE, ref: (el) => {
3069
3105
  this.customizeTopPanelRef = el;
3070
- }, sizeX: "360px", sizeY: "300px" },
3071
- density,
3072
- grid,
3073
- fontsize,
3074
- transpose,
3075
- h("kup-switch", { class: "customize-element", checked: this.dragEnabled, label: this.kupManager.language.translate(KupLanguageGeneric.DRAG_AND_DROP), leadingLabel: true, "onkup-switch-change": () => (this.dragEnabled = !this.dragEnabled) }),
3076
- h("kup-switch", { class: "customize-element", checked: this.editableData, label: this.kupManager.language.translate(KupLanguageGeneric.EDITABLE), leadingLabel: true, "onkup-switch-change": () => (this.editableData = !this.editableData) }),
3077
- h("kup-button", { title: this.kupManager.language.translate(KupLanguageGeneric.TOGGLE) +
3078
- ' Magic Box ' +
3079
- '(' +
3080
- this.kupManager.language.translate(KupLanguageGeneric.EXPERIMENTAL_FEAT) +
3081
- ')', icon: "auto-fix", "onkup-button-click": () => this.kupManager.toggleMagicBox() }),
3082
- totalsMatrix));
3106
+ }, sizeX: "360px", sizeY: "300px" }, density, grid, fontsize, transpose, h("kup-switch", { class: "customize-element", checked: this.dragEnabled, label: this.kupManager.language.translate(KupLanguageGeneric.DRAG_AND_DROP), leadingLabel: true, "onkup-switch-change": () => (this.dragEnabled = !this.dragEnabled) }), h("kup-switch", { class: "customize-element", checked: this.editableData, label: this.kupManager.language.translate(KupLanguageGeneric.EDITABLE), leadingLabel: true, "onkup-switch-change": () => (this.editableData = !this.editableData) }), h("kup-button", { title: this.kupManager.language.translate(KupLanguageGeneric.TOGGLE) +
3107
+ ' Magic Box ' +
3108
+ '(' +
3109
+ this.kupManager.language.translate(KupLanguageGeneric.EXPERIMENTAL_FEAT) +
3110
+ ')', icon: "auto-fix", "onkup-button-click": () => this.kupManager.toggleMagicBox() }), totalsMatrix));
3083
3111
  }
3084
3112
  columnRemoveArea() {
3085
- return (h("div", { class: "droparea__remove", ref: (el) => (this.removeDropareaRef = el) },
3086
- h(FImage, { resource: "delete", color: `var(${KupThemeColorValues.DANGER})`, sizeX: "30px", sizeY: "50px" }),
3087
- h(FImage, { resource: "delete-empty", color: `var(${KupThemeColorValues.DANGER})`, sizeX: "30px", sizeY: "50px" })));
3113
+ return (h("div", { class: "droparea__remove", ref: (el) => (this.removeDropareaRef = el) }, h(FImage, { resource: "delete", color: `var(${KupThemeColorValues.DANGER})`, sizeX: "30px", sizeY: "50px" }), h(FImage, { resource: "delete-empty", color: `var(${KupThemeColorValues.DANGER})`, sizeX: "30px", sizeY: "50px" })));
3088
3114
  }
3089
3115
  columnGroupArea() {
3090
- return (h("div", { class: "droparea__groups", ref: (el) => (this.groupsDropareaRef = el) },
3091
- h(FImage, { resource: "bookmark", color: `var(${KupThemeColorValues.TEXT})`, sizeX: "30px", sizeY: "50px" }),
3092
- h(FImage, { resource: "book", color: `var(${KupThemeColorValues.TEXT})`, sizeX: "30px", sizeY: "50px" })));
3116
+ return (h("div", { class: "droparea__groups", ref: (el) => (this.groupsDropareaRef = el) }, h(FImage, { resource: "bookmark", color: `var(${KupThemeColorValues.TEXT})`, sizeX: "30px", sizeY: "50px" }), h(FImage, { resource: "book", color: `var(${KupThemeColorValues.TEXT})`, sizeX: "30px", sizeY: "50px" })));
3093
3117
  }
3094
3118
  hideShowColumnDropArea(show, th) {
3095
3119
  if (show && th && (this.removableColumns || this.showGroups)) {
@@ -3167,12 +3191,14 @@ export class KupDataTable {
3167
3191
  value = KupLanguageDensity.WIDE;
3168
3192
  break;
3169
3193
  }
3170
- listItems[i] = {
3171
- icon: icons[i],
3172
- id: codes[i],
3173
- selected: selectedCode == codes[i],
3174
- value: this.kupManager.language.translate(value),
3175
- };
3194
+ if (value) {
3195
+ listItems[i] = {
3196
+ icon: icons[i],
3197
+ id: codes[i],
3198
+ selected: selectedCode == codes[i],
3199
+ value: this.kupManager.language.translate(value),
3200
+ };
3201
+ }
3176
3202
  }
3177
3203
  return listItems;
3178
3204
  }
@@ -3201,17 +3227,20 @@ export class KupDataTable {
3201
3227
  text = KupLanguageFontsize.SMALL;
3202
3228
  break;
3203
3229
  }
3204
- return (h("div", { class: "customize-element fontsize-panel" },
3205
- h("kup-combobox", { isSelect: true, data: data, initialValue: this.kupManager.language.translate(text), "onkup-combobox-itemclick": (e) => {
3206
- e.stopPropagation();
3207
- this.fontsize = this.getFontSizeCodeFromDecode(e.detail.value);
3208
- } })));
3230
+ return (h("div", { class: "customize-element fontsize-panel" }, h("kup-combobox", { isSelect: true, data: data, initialValue: this.kupManager.language.translate(text), "onkup-combobox-itemclick": (e) => {
3231
+ e.stopPropagation();
3232
+ this.fontsize = this.getFontSizeCodeFromDecode(e.detail.node.id);
3233
+ } })));
3209
3234
  }
3210
3235
  getDensityCodeFromDecode(decode) {
3211
- return this.transcodeItem(decode, this.DENSITY_DECODES, Object.values(FCellPadding));
3236
+ return this.transcodeItem(decode, this.DENSITY_DECODES, [
3237
+ 'dense',
3238
+ 'medium',
3239
+ 'wide',
3240
+ ]);
3212
3241
  }
3213
3242
  renderDensityPanel() {
3214
- const listItems = this.createListData(Object.values(FCellPadding), this.DENSITY_ICONS, this.density);
3243
+ const listItems = this.createListData(['dense', 'medium', 'wide'], this.DENSITY_ICONS, this.density);
3215
3244
  const listData = { data: listItems, showIcons: true };
3216
3245
  const textfieldData = {
3217
3246
  trailingIcon: true,
@@ -3232,33 +3261,30 @@ export class KupDataTable {
3232
3261
  text = KupLanguageDensity.WIDE;
3233
3262
  break;
3234
3263
  }
3235
- return (h("div", { class: "customize-element density-panel" },
3236
- h("kup-combobox", { isSelect: true, initialValue: this.kupManager.language.translate(text), selectMode: ItemsDisplayMode.DESCRIPTION, data: data, "onkup-combobox-itemclick": (e) => {
3237
- e.stopPropagation();
3238
- this.density = this.getDensityCodeFromDecode(e.detail.value);
3239
- } })));
3264
+ return (h("div", { class: "customize-element density-panel" }, h("kup-combobox", { isSelect: true, initialValue: this.kupManager.language.translate(text), selectMode: ItemsDisplayMode.DESCRIPTION, data: data, "onkup-combobox-itemclick": (e) => {
3265
+ e.stopPropagation();
3266
+ this.density = this.getDensityCodeFromDecode(e.detail.node.id);
3267
+ } })));
3240
3268
  }
3241
3269
  getGridCodeFromDecode(decode) {
3242
3270
  return this.transcodeItem(decode, this.GRID_DECODES, this.GRID_CODES);
3243
3271
  }
3244
3272
  renderTransposeSwitch() {
3245
- return (h("div", { class: "customize-element grid-panel" },
3246
- h("kup-switch", { checked: this.transpose, label: this.kupManager.language.translate(KupLanguageGeneric.TRANSPOSE_DATA), leadingLabel: true, "onkup-switch-change": (e) => {
3247
- e.stopPropagation();
3248
- if (e.detail.value === 'on') {
3249
- this.transpose = true;
3250
- }
3251
- else {
3252
- this.transpose = false;
3253
- }
3254
- } })));
3273
+ return (h("div", { class: "customize-element grid-panel" }, h("kup-switch", { checked: this.transpose, label: this.kupManager.language.translate(KupLanguageGeneric.TRANSPOSE_DATA), leadingLabel: true, "onkup-switch-change": (e) => {
3274
+ e.stopPropagation();
3275
+ if (e.detail.value === 'on') {
3276
+ this.transpose = true;
3277
+ }
3278
+ else {
3279
+ this.transpose = false;
3280
+ }
3281
+ } })));
3255
3282
  }
3256
3283
  renderTotalsMatrix() {
3257
- return (h("div", { class: "customize-element grid-panel" },
3258
- h("kup-button", { title: this.kupManager.language.translate(KupLanguageGeneric.TOTALS_TABLE) +
3259
- ' (' +
3260
- this.kupManager.language.translate(KupLanguageGeneric.EXPERIMENTAL_FEAT) +
3261
- ')', label: this.kupManager.language.translate(KupLanguageGeneric.TOTALS_TABLE), icon: "exposure", "onkup-button-click": () => this.switchToTotalsMatrix() })));
3284
+ return (h("div", { class: "customize-element grid-panel" }, h("kup-button", { title: this.kupManager.language.translate(KupLanguageGeneric.TOTALS_TABLE) +
3285
+ ' (' +
3286
+ this.kupManager.language.translate(KupLanguageGeneric.EXPERIMENTAL_FEAT) +
3287
+ ')', label: this.kupManager.language.translate(KupLanguageGeneric.TOTALS_TABLE), icon: "exposure", "onkup-button-click": () => this.switchToTotalsMatrix() })));
3262
3288
  }
3263
3289
  renderGridPanel() {
3264
3290
  const listItems = this.createListData(this.GRID_CODES, this.GRID_ICONS, this.showGrid);
@@ -3285,12 +3311,11 @@ export class KupDataTable {
3285
3311
  text = KupLanguageGrid.ROW;
3286
3312
  break;
3287
3313
  }
3288
- return (h("div", { class: "customize-element grid-panel" },
3289
- h("kup-combobox", { isSelect: true, initialValue: this.kupManager.language.translate(text), data: data, "onkup-combobox-itemclick": (e) => {
3290
- e.stopPropagation();
3291
- const grid = this.getGridCodeFromDecode(e.detail.value);
3292
- this.showGrid = grid;
3293
- } })));
3314
+ return (h("div", { class: "customize-element grid-panel" }, h("kup-combobox", { isSelect: true, initialValue: this.kupManager.language.translate(text), data: data, "onkup-combobox-itemclick": (e) => {
3315
+ e.stopPropagation();
3316
+ const grid = this.getGridCodeFromDecode(e.detail.value);
3317
+ this.showGrid = grid;
3318
+ } })));
3294
3319
  }
3295
3320
  render() {
3296
3321
  this.thRefs = [];
@@ -3300,8 +3325,7 @@ export class KupDataTable {
3300
3325
  this.sizedColumns = this.getSizedColumns();
3301
3326
  let rows = null;
3302
3327
  if (this.paginatedRowsLength === 0) {
3303
- rows = (h("tr", { ref: (el) => this.rowsRefs.push(el) },
3304
- h("td", { colSpan: this.calculateColspan() }, this.emptyDataLabel)));
3328
+ rows = (h("tr", { ref: (el) => this.rowsRefs.push(el) }, h("td", { colSpan: this.calculateColspan() }, this.emptyDataLabel)));
3305
3329
  }
3306
3330
  else {
3307
3331
  rows = [];
@@ -3398,56 +3422,34 @@ export class KupDataTable {
3398
3422
  if (this.headerIsPersistent &&
3399
3423
  this.tableHeight === undefined &&
3400
3424
  this.tableWidth === undefined) {
3401
- stickyEl = (h("sticky-header", { class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (this.stickyTheadRef = el) },
3402
- h("thead-sticky", null,
3403
- h("tr-sticky", null, stickyHeader))));
3425
+ stickyEl = (h("sticky-header", { class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (this.stickyTheadRef = el) }, h("thead-sticky", null, h("tr-sticky", null, stickyHeader))));
3404
3426
  }
3405
3427
  let belowClass = 'below-wrapper';
3406
3428
  if (this.tableHeight !== undefined || this.tableWidth !== undefined) {
3407
3429
  belowClass += ' custom-size';
3408
3430
  }
3409
- const compCreated = (h(Host, null,
3410
- h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)),
3411
- h("div", { id: componentWrapperId },
3412
- h("div", { class: "above-wrapper" },
3413
- this.globalFilter ? (h("div", { id: "global-filter" },
3414
- h(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: this.kupManager.language.translate(KupLanguageSearch.SEARCH), value: this.globalFilterValue, onInput: (event) => {
3415
- const t = event.target;
3416
- window.clearTimeout(this.globalFilterTimeout);
3417
- this.globalFilterTimeout =
3418
- window.setTimeout(() => this.onGlobalFilterChange(t), 600, t);
3419
- } }))) : null,
3420
- paginatorTop),
3421
- h("div", { class: "group-wrapper" }, groupChips),
3422
- h("div", { class: "droparea", ref: (el) => (this.dropareaRef = el) },
3423
- this.showGroups ? this.columnGroupArea() : null,
3424
- this.removableColumns ? this.columnRemoveArea() : null),
3425
- h("div", { style: elStyle, class: belowClass, ref: (el) => (this.tableAreaRef = el) },
3426
- this.showCustomization
3427
- ? [
3428
- h("div", { class: "settings-trigger", onClick: () => {
3429
- this.onCustomSettingsClick();
3430
- }, ref: (el) => {
3431
- this.customizeTopButtonRef =
3432
- el;
3433
- } },
3434
- h(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
3435
- this.renderCustomizePanel(),
3436
- ]
3437
- : null,
3438
- h("table", { class: tableClass, ref: (el) => (this.tableRef = el), onMouseLeave: (ev) => {
3439
- ev.stopPropagation();
3440
- }, onContextMenu: (e) => {
3441
- e.preventDefault();
3442
- } },
3443
- h("thead", { hidden: !this.showHeader, ref: (el) => (this.theadRef = el) },
3444
- h("tr", null, header)),
3445
- h("tbody", null, rows),
3446
- this.showFooter || this.hasTotals()
3447
- ? this.renderFooter()
3448
- : null),
3449
- stickyEl),
3450
- paginatorBottom)));
3431
+ const compCreated = (h(Host, null, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, h("div", { class: "above-wrapper" }, this.globalFilter ? (h("div", { id: "global-filter" }, h(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: this.kupManager.language.translate(KupLanguageSearch.SEARCH), value: this.globalFilterValue, onInput: (event) => {
3432
+ const t = event.target;
3433
+ window.clearTimeout(this.globalFilterTimeout);
3434
+ this.globalFilterTimeout =
3435
+ window.setTimeout(() => this.onGlobalFilterChange(t), 600, t);
3436
+ } }))) : null, paginatorTop), h("div", { class: "group-wrapper" }, groupChips), h("div", { class: "droparea", ref: (el) => (this.dropareaRef = el) }, this.showGroups ? this.columnGroupArea() : null, this.removableColumns ? this.columnRemoveArea() : null), h("div", { style: elStyle, class: belowClass, ref: (el) => (this.tableAreaRef = el) }, this.showCustomization
3437
+ ? [
3438
+ h("div", { class: "settings-trigger", onClick: () => {
3439
+ this.onCustomSettingsClick();
3440
+ }, ref: (el) => {
3441
+ this.customizeTopButtonRef =
3442
+ el;
3443
+ } }, h(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
3444
+ this.renderCustomizePanel(),
3445
+ ]
3446
+ : null, h("table", { class: tableClass, ref: (el) => (this.tableRef = el), onMouseLeave: (ev) => {
3447
+ ev.stopPropagation();
3448
+ }, onContextMenu: (e) => {
3449
+ e.preventDefault();
3450
+ } }, h("thead", { hidden: !this.showHeader, ref: (el) => (this.theadRef = el) }, h("tr", null, header)), h("tbody", null, rows), this.showFooter || this.hasTotals()
3451
+ ? this.renderFooter()
3452
+ : null), stickyEl), paginatorBottom)));
3451
3453
  return compCreated;
3452
3454
  }
3453
3455
  disconnectedCallback() {
@@ -3472,1745 +3474,1837 @@ export class KupDataTable {
3472
3474
  }
3473
3475
  static get is() { return "kup-data-table"; }
3474
3476
  static get encapsulation() { return "shadow"; }
3475
- static get originalStyleUrls() { return {
3476
- "$": ["kup-data-table.scss"]
3477
- }; }
3478
- static get styleUrls() { return {
3479
- "$": ["kup-data-table.css"]
3480
- }; }
3481
- static get properties() { return {
3482
- "stateId": {
3483
- "type": "string",
3484
- "mutable": false,
3485
- "complexType": {
3486
- "original": "string",
3487
- "resolved": "string",
3488
- "references": {}
3489
- },
3490
- "required": false,
3491
- "optional": false,
3492
- "docs": {
3493
- "tags": [],
3494
- "text": ""
3495
- },
3496
- "attribute": "state-id",
3497
- "reflect": false,
3498
- "defaultValue": "''"
3499
- },
3500
- "store": {
3501
- "type": "unknown",
3502
- "mutable": false,
3503
- "complexType": {
3504
- "original": "KupStore",
3505
- "resolved": "KupStore",
3506
- "references": {
3507
- "KupStore": {
3508
- "location": "import",
3509
- "path": "../kup-state/kup-store"
3477
+ static get originalStyleUrls() {
3478
+ return {
3479
+ "$": ["kup-data-table.scss"]
3480
+ };
3481
+ }
3482
+ static get styleUrls() {
3483
+ return {
3484
+ "$": ["kup-data-table.css"]
3485
+ };
3486
+ }
3487
+ static get properties() {
3488
+ return {
3489
+ "stateId": {
3490
+ "type": "string",
3491
+ "mutable": false,
3492
+ "complexType": {
3493
+ "original": "string",
3494
+ "resolved": "string",
3495
+ "references": {}
3496
+ },
3497
+ "required": false,
3498
+ "optional": false,
3499
+ "docs": {
3500
+ "tags": [],
3501
+ "text": ""
3502
+ },
3503
+ "attribute": "state-id",
3504
+ "reflect": false,
3505
+ "defaultValue": "''"
3506
+ },
3507
+ "store": {
3508
+ "type": "unknown",
3509
+ "mutable": false,
3510
+ "complexType": {
3511
+ "original": "KupStore",
3512
+ "resolved": "KupStore",
3513
+ "references": {
3514
+ "KupStore": {
3515
+ "location": "import",
3516
+ "path": "../kup-state/kup-store"
3517
+ }
3510
3518
  }
3519
+ },
3520
+ "required": false,
3521
+ "optional": false,
3522
+ "docs": {
3523
+ "tags": [],
3524
+ "text": ""
3511
3525
  }
3512
3526
  },
3513
- "required": false,
3514
- "optional": false,
3515
- "docs": {
3516
- "tags": [],
3517
- "text": ""
3518
- }
3519
- },
3520
- "autoFillMissingCells": {
3521
- "type": "boolean",
3522
- "mutable": false,
3523
- "complexType": {
3524
- "original": "boolean",
3525
- "resolved": "boolean",
3526
- "references": {}
3527
- },
3528
- "required": false,
3529
- "optional": false,
3530
- "docs": {
3531
- "tags": [{
3532
- "name": "default",
3533
- "text": "false"
3534
- }],
3535
- "text": "When true and when a row is missing some columns, the missing cells will be autogenerated."
3536
- },
3537
- "attribute": "auto-fill-missing-cells",
3538
- "reflect": false,
3539
- "defaultValue": "false"
3540
- },
3541
- "customStyle": {
3542
- "type": "string",
3543
- "mutable": false,
3544
- "complexType": {
3545
- "original": "string",
3546
- "resolved": "string",
3547
- "references": {}
3548
- },
3549
- "required": false,
3550
- "optional": false,
3551
- "docs": {
3552
- "tags": [],
3553
- "text": "Custom style of the component. For more information: https://ketchup.smeup.com/ketchup-showcase/#/customization"
3554
- },
3555
- "attribute": "custom-style",
3556
- "reflect": false,
3557
- "defaultValue": "''"
3558
- },
3559
- "data": {
3560
- "type": "unknown",
3561
- "mutable": true,
3562
- "complexType": {
3563
- "original": "KupDataTableDataset",
3564
- "resolved": "KupDataTableDataset",
3565
- "references": {
3566
- "KupDataTableDataset": {
3567
- "location": "import",
3568
- "path": "./kup-data-table-declarations"
3527
+ "autoFillMissingCells": {
3528
+ "type": "boolean",
3529
+ "mutable": false,
3530
+ "complexType": {
3531
+ "original": "boolean",
3532
+ "resolved": "boolean",
3533
+ "references": {}
3534
+ },
3535
+ "required": false,
3536
+ "optional": false,
3537
+ "docs": {
3538
+ "tags": [{
3539
+ "name": "default",
3540
+ "text": "false"
3541
+ }],
3542
+ "text": "When true and when a row is missing some columns, the missing cells will be autogenerated."
3543
+ },
3544
+ "attribute": "auto-fill-missing-cells",
3545
+ "reflect": false,
3546
+ "defaultValue": "false"
3547
+ },
3548
+ "customStyle": {
3549
+ "type": "string",
3550
+ "mutable": false,
3551
+ "complexType": {
3552
+ "original": "string",
3553
+ "resolved": "string",
3554
+ "references": {}
3555
+ },
3556
+ "required": false,
3557
+ "optional": false,
3558
+ "docs": {
3559
+ "tags": [],
3560
+ "text": "Custom style of the component. For more information: https://ketchup.smeup.com/ketchup-showcase/#/customization"
3561
+ },
3562
+ "attribute": "custom-style",
3563
+ "reflect": false,
3564
+ "defaultValue": "''"
3565
+ },
3566
+ "data": {
3567
+ "type": "unknown",
3568
+ "mutable": true,
3569
+ "complexType": {
3570
+ "original": "KupDataTableDataset",
3571
+ "resolved": "KupDataTableDataset",
3572
+ "references": {
3573
+ "KupDataTableDataset": {
3574
+ "location": "import",
3575
+ "path": "./kup-data-table-declarations"
3576
+ }
3569
3577
  }
3578
+ },
3579
+ "required": false,
3580
+ "optional": false,
3581
+ "docs": {
3582
+ "tags": [],
3583
+ "text": "The data of the table."
3570
3584
  }
3571
3585
  },
3572
- "required": false,
3573
- "optional": false,
3574
- "docs": {
3575
- "tags": [],
3576
- "text": "The data of the table."
3577
- }
3578
- },
3579
- "density": {
3580
- "type": "string",
3581
- "mutable": false,
3582
- "complexType": {
3583
- "original": "FCellPadding",
3584
- "resolved": "FCellPadding.DENSE | FCellPadding.MEDIUM | FCellPadding.NONE | FCellPadding.WIDE",
3585
- "references": {
3586
- "FCellPadding": {
3587
- "location": "import",
3588
- "path": "../../f-components/f-cell/f-cell-declarations"
3586
+ "density": {
3587
+ "type": "string",
3588
+ "mutable": false,
3589
+ "complexType": {
3590
+ "original": "FCellPadding",
3591
+ "resolved": "FCellPadding.DENSE | FCellPadding.MEDIUM | FCellPadding.NONE | FCellPadding.WIDE",
3592
+ "references": {
3593
+ "FCellPadding": {
3594
+ "location": "import",
3595
+ "path": "../../f-components/f-cell/f-cell-declarations"
3596
+ }
3589
3597
  }
3590
- }
3591
- },
3592
- "required": false,
3593
- "optional": false,
3594
- "docs": {
3595
- "tags": [],
3596
- "text": "The density of the rows, defaults at 'medium' and can be also set to 'large' or 'small'."
3597
- },
3598
- "attribute": "density",
3599
- "reflect": false,
3600
- "defaultValue": "FCellPadding.DENSE"
3601
- },
3602
- "dragEnabled": {
3603
- "type": "boolean",
3604
- "mutable": true,
3605
- "complexType": {
3606
- "original": "boolean",
3607
- "resolved": "boolean",
3608
- "references": {}
3609
- },
3610
- "required": false,
3611
- "optional": false,
3612
- "docs": {
3613
- "tags": [],
3614
- "text": "Enables drag."
3615
- },
3616
- "attribute": "drag-enabled",
3617
- "reflect": true,
3618
- "defaultValue": "false"
3619
- },
3620
- "dropEnabled": {
3621
- "type": "boolean",
3622
- "mutable": false,
3623
- "complexType": {
3624
- "original": "boolean",
3625
- "resolved": "boolean",
3626
- "references": {}
3627
- },
3628
- "required": false,
3629
- "optional": false,
3630
- "docs": {
3631
- "tags": [],
3632
- "text": "Enables drop."
3633
- },
3634
- "attribute": "drop-enabled",
3635
- "reflect": true,
3636
- "defaultValue": "false"
3637
- },
3638
- "editableData": {
3639
- "type": "boolean",
3640
- "mutable": true,
3641
- "complexType": {
3642
- "original": "boolean",
3643
- "resolved": "boolean",
3644
- "references": {}
3645
- },
3646
- "required": false,
3647
- "optional": false,
3648
- "docs": {
3649
- "tags": [{
3650
- "name": "default",
3651
- "text": "false"
3652
- }],
3653
- "text": "When set to true, editable cells will be rendered using input components."
3654
- },
3655
- "attribute": "editable-data",
3656
- "reflect": false,
3657
- "defaultValue": "false"
3658
- },
3659
- "emptyDataLabel": {
3660
- "type": "string",
3661
- "mutable": true,
3662
- "complexType": {
3663
- "original": "string",
3664
- "resolved": "string",
3665
- "references": {}
3666
- },
3667
- "required": false,
3668
- "optional": false,
3669
- "docs": {
3670
- "tags": [],
3671
- "text": "Defines the label to show when the table is empty."
3672
- },
3673
- "attribute": "empty-data-label",
3674
- "reflect": false,
3675
- "defaultValue": "null"
3676
- },
3677
- "enableColumnsFormula": {
3678
- "type": "boolean",
3679
- "mutable": false,
3680
- "complexType": {
3681
- "original": "boolean",
3682
- "resolved": "boolean",
3683
- "references": {}
3684
- },
3685
- "required": false,
3686
- "optional": false,
3687
- "docs": {
3688
- "tags": [{
3689
- "name": "default",
3690
- "text": "true"
3691
- }],
3692
- "text": "Enables the choice to set formulas on columns by dragging them into different columns."
3693
- },
3694
- "attribute": "enable-columns-formula",
3695
- "reflect": false,
3696
- "defaultValue": "true"
3697
- },
3698
- "enableExtraColumns": {
3699
- "type": "boolean",
3700
- "mutable": false,
3701
- "complexType": {
3702
- "original": "boolean",
3703
- "resolved": "boolean",
3704
- "references": {}
3705
- },
3706
- "required": false,
3707
- "optional": false,
3708
- "docs": {
3709
- "tags": [],
3710
- "text": "Enables the extracolumns add buttons."
3711
- },
3712
- "attribute": "enable-extra-columns",
3713
- "reflect": false,
3714
- "defaultValue": "true"
3715
- },
3716
- "enableMergeColumns": {
3717
- "type": "boolean",
3718
- "mutable": false,
3719
- "complexType": {
3720
- "original": "boolean",
3721
- "resolved": "boolean",
3722
- "references": {}
3723
- },
3724
- "required": false,
3725
- "optional": false,
3726
- "docs": {
3727
- "tags": [{
3728
- "name": "default",
3729
- "text": "true"
3730
- }],
3731
- "text": "Enables the merging of columns by dragging them into different columns."
3732
- },
3733
- "attribute": "enable-merge-columns",
3734
- "reflect": false,
3735
- "defaultValue": "true"
3736
- },
3737
- "enableSortableColumns": {
3738
- "type": "boolean",
3739
- "mutable": false,
3740
- "complexType": {
3741
- "original": "boolean",
3742
- "resolved": "boolean",
3743
- "references": {}
3744
- },
3745
- "required": false,
3746
- "optional": false,
3747
- "docs": {
3748
- "tags": [],
3749
- "text": "Enables the sorting of columns by dragging them into different columns."
3750
- },
3751
- "attribute": "enable-sortable-columns",
3752
- "reflect": false,
3753
- "defaultValue": "true"
3754
- },
3755
- "expandGroups": {
3756
- "type": "boolean",
3757
- "mutable": false,
3758
- "complexType": {
3759
- "original": "boolean",
3760
- "resolved": "boolean",
3761
- "references": {}
3762
- },
3763
- "required": false,
3764
- "optional": false,
3765
- "docs": {
3766
- "tags": [],
3767
- "text": "Expands groups when set to true."
3768
- },
3769
- "attribute": "expand-groups",
3770
- "reflect": false,
3771
- "defaultValue": "false"
3772
- },
3773
- "filters": {
3774
- "type": "unknown",
3775
- "mutable": true,
3776
- "complexType": {
3777
- "original": "GenericFilter",
3778
- "resolved": "GenericFilter",
3779
- "references": {
3780
- "GenericFilter": {
3781
- "location": "import",
3782
- "path": "../../utils/filters/filters-declarations"
3598
+ },
3599
+ "required": false,
3600
+ "optional": false,
3601
+ "docs": {
3602
+ "tags": [],
3603
+ "text": "The density of the rows, defaults at 'medium' and can be also set to 'large' or 'small'."
3604
+ },
3605
+ "attribute": "density",
3606
+ "reflect": false,
3607
+ "defaultValue": "FCellPadding.DENSE"
3608
+ },
3609
+ "dragEnabled": {
3610
+ "type": "boolean",
3611
+ "mutable": true,
3612
+ "complexType": {
3613
+ "original": "boolean",
3614
+ "resolved": "boolean",
3615
+ "references": {}
3616
+ },
3617
+ "required": false,
3618
+ "optional": false,
3619
+ "docs": {
3620
+ "tags": [],
3621
+ "text": "Enables drag."
3622
+ },
3623
+ "attribute": "drag-enabled",
3624
+ "reflect": true,
3625
+ "defaultValue": "false"
3626
+ },
3627
+ "dropEnabled": {
3628
+ "type": "boolean",
3629
+ "mutable": false,
3630
+ "complexType": {
3631
+ "original": "boolean",
3632
+ "resolved": "boolean",
3633
+ "references": {}
3634
+ },
3635
+ "required": false,
3636
+ "optional": false,
3637
+ "docs": {
3638
+ "tags": [],
3639
+ "text": "Enables drop."
3640
+ },
3641
+ "attribute": "drop-enabled",
3642
+ "reflect": true,
3643
+ "defaultValue": "false"
3644
+ },
3645
+ "editableData": {
3646
+ "type": "boolean",
3647
+ "mutable": true,
3648
+ "complexType": {
3649
+ "original": "boolean",
3650
+ "resolved": "boolean",
3651
+ "references": {}
3652
+ },
3653
+ "required": false,
3654
+ "optional": false,
3655
+ "docs": {
3656
+ "tags": [{
3657
+ "name": "default",
3658
+ "text": "false"
3659
+ }],
3660
+ "text": "When set to true, editable cells will be rendered using input components."
3661
+ },
3662
+ "attribute": "editable-data",
3663
+ "reflect": false,
3664
+ "defaultValue": "false"
3665
+ },
3666
+ "emptyDataLabel": {
3667
+ "type": "string",
3668
+ "mutable": true,
3669
+ "complexType": {
3670
+ "original": "string",
3671
+ "resolved": "string",
3672
+ "references": {}
3673
+ },
3674
+ "required": false,
3675
+ "optional": false,
3676
+ "docs": {
3677
+ "tags": [],
3678
+ "text": "Defines the label to show when the table is empty."
3679
+ },
3680
+ "attribute": "empty-data-label",
3681
+ "reflect": false,
3682
+ "defaultValue": "null"
3683
+ },
3684
+ "enableColumnsFormula": {
3685
+ "type": "boolean",
3686
+ "mutable": false,
3687
+ "complexType": {
3688
+ "original": "boolean",
3689
+ "resolved": "boolean",
3690
+ "references": {}
3691
+ },
3692
+ "required": false,
3693
+ "optional": false,
3694
+ "docs": {
3695
+ "tags": [{
3696
+ "name": "default",
3697
+ "text": "true"
3698
+ }],
3699
+ "text": "Enables the choice to set formulas on columns by dragging them into different columns."
3700
+ },
3701
+ "attribute": "enable-columns-formula",
3702
+ "reflect": false,
3703
+ "defaultValue": "true"
3704
+ },
3705
+ "enableExtraColumns": {
3706
+ "type": "boolean",
3707
+ "mutable": false,
3708
+ "complexType": {
3709
+ "original": "boolean",
3710
+ "resolved": "boolean",
3711
+ "references": {}
3712
+ },
3713
+ "required": false,
3714
+ "optional": false,
3715
+ "docs": {
3716
+ "tags": [],
3717
+ "text": "Enables the extracolumns add buttons."
3718
+ },
3719
+ "attribute": "enable-extra-columns",
3720
+ "reflect": false,
3721
+ "defaultValue": "true"
3722
+ },
3723
+ "enableMergeColumns": {
3724
+ "type": "boolean",
3725
+ "mutable": false,
3726
+ "complexType": {
3727
+ "original": "boolean",
3728
+ "resolved": "boolean",
3729
+ "references": {}
3730
+ },
3731
+ "required": false,
3732
+ "optional": false,
3733
+ "docs": {
3734
+ "tags": [{
3735
+ "name": "default",
3736
+ "text": "true"
3737
+ }],
3738
+ "text": "Enables the merging of columns by dragging them into different columns."
3739
+ },
3740
+ "attribute": "enable-merge-columns",
3741
+ "reflect": false,
3742
+ "defaultValue": "true"
3743
+ },
3744
+ "enableSortableColumns": {
3745
+ "type": "boolean",
3746
+ "mutable": false,
3747
+ "complexType": {
3748
+ "original": "boolean",
3749
+ "resolved": "boolean",
3750
+ "references": {}
3751
+ },
3752
+ "required": false,
3753
+ "optional": false,
3754
+ "docs": {
3755
+ "tags": [],
3756
+ "text": "Enables the sorting of columns by dragging them into different columns."
3757
+ },
3758
+ "attribute": "enable-sortable-columns",
3759
+ "reflect": false,
3760
+ "defaultValue": "true"
3761
+ },
3762
+ "expandGroups": {
3763
+ "type": "boolean",
3764
+ "mutable": false,
3765
+ "complexType": {
3766
+ "original": "boolean",
3767
+ "resolved": "boolean",
3768
+ "references": {}
3769
+ },
3770
+ "required": false,
3771
+ "optional": false,
3772
+ "docs": {
3773
+ "tags": [],
3774
+ "text": "Expands groups when set to true."
3775
+ },
3776
+ "attribute": "expand-groups",
3777
+ "reflect": false,
3778
+ "defaultValue": "false"
3779
+ },
3780
+ "filters": {
3781
+ "type": "unknown",
3782
+ "mutable": true,
3783
+ "complexType": {
3784
+ "original": "GenericFilter",
3785
+ "resolved": "GenericFilter",
3786
+ "references": {
3787
+ "GenericFilter": {
3788
+ "location": "import",
3789
+ "path": "../../utils/filters/filters-declarations"
3790
+ }
3783
3791
  }
3784
- }
3785
- },
3786
- "required": false,
3787
- "optional": false,
3788
- "docs": {
3789
- "tags": [],
3790
- "text": "List of filters set by the user."
3791
- },
3792
- "defaultValue": "{}"
3793
- },
3794
- "fixedColumns": {
3795
- "type": "number",
3796
- "mutable": false,
3797
- "complexType": {
3798
- "original": "number",
3799
- "resolved": "number",
3800
- "references": {}
3801
- },
3802
- "required": false,
3803
- "optional": false,
3804
- "docs": {
3805
- "tags": [{
3806
- "name": "see",
3807
- "text": "fixedRows"
3808
- }],
3809
- "text": "Fixes the given number of columns so that they stay visible when horizontally scrolling the data-table.\r\nIf grouping is active or the value of the prop is <= 0, this prop will have no effect.\r\nCan be combined with fixedRows."
3810
- },
3811
- "attribute": "fixed-columns",
3812
- "reflect": false,
3813
- "defaultValue": "0"
3814
- },
3815
- "fixedRows": {
3816
- "type": "number",
3817
- "mutable": false,
3818
- "complexType": {
3819
- "original": "number",
3820
- "resolved": "number",
3821
- "references": {}
3822
- },
3823
- "required": false,
3824
- "optional": false,
3825
- "docs": {
3826
- "tags": [{
3827
- "name": "see",
3828
- "text": "fixedColumns"
3829
- }],
3830
- "text": "Fixes the given number of rows so that they stay visible when vertically scrolling the data-table.\r\nIf grouping is active or the value of the prop is <= 0, this prop will have no effect.\r\nCan be combined with fixedColumns."
3831
- },
3832
- "attribute": "fixed-rows",
3833
- "reflect": false,
3834
- "defaultValue": "0"
3835
- },
3836
- "forceOneLine": {
3837
- "type": "boolean",
3838
- "mutable": false,
3839
- "complexType": {
3840
- "original": "boolean",
3841
- "resolved": "boolean",
3842
- "references": {}
3843
- },
3844
- "required": false,
3845
- "optional": false,
3846
- "docs": {
3847
- "tags": [],
3848
- "text": "Forces cells with long text and a fixed column size to have an ellipsis set on their text.\r\nThe reflect attribute is mandatory to allow styling."
3849
- },
3850
- "attribute": "force-one-line",
3851
- "reflect": true,
3852
- "defaultValue": "false"
3853
- },
3854
- "globalFilter": {
3855
- "type": "boolean",
3856
- "mutable": false,
3857
- "complexType": {
3858
- "original": "boolean",
3859
- "resolved": "boolean",
3860
- "references": {}
3861
- },
3862
- "required": false,
3863
- "optional": false,
3864
- "docs": {
3865
- "tags": [],
3866
- "text": "When set to true it activates the global filter."
3867
- },
3868
- "attribute": "global-filter",
3869
- "reflect": false,
3870
- "defaultValue": "false"
3871
- },
3872
- "globalFilterValue": {
3873
- "type": "string",
3874
- "mutable": true,
3875
- "complexType": {
3876
- "original": "string",
3877
- "resolved": "string",
3878
- "references": {}
3879
- },
3880
- "required": false,
3881
- "optional": false,
3882
- "docs": {
3883
- "tags": [],
3884
- "text": "The value of the global filter."
3885
- },
3886
- "attribute": "global-filter-value",
3887
- "reflect": true,
3888
- "defaultValue": "''"
3889
- },
3890
- "groupLabelDisplay": {
3891
- "type": "string",
3892
- "mutable": false,
3893
- "complexType": {
3894
- "original": "GroupLabelDisplayMode",
3895
- "resolved": "GroupLabelDisplayMode.BOTH | GroupLabelDisplayMode.LABEL | GroupLabelDisplayMode.VALUE",
3896
- "references": {
3897
- "GroupLabelDisplayMode": {
3898
- "location": "import",
3899
- "path": "./kup-data-table-declarations"
3792
+ },
3793
+ "required": false,
3794
+ "optional": false,
3795
+ "docs": {
3796
+ "tags": [],
3797
+ "text": "List of filters set by the user."
3798
+ },
3799
+ "defaultValue": "{}"
3800
+ },
3801
+ "fixedColumns": {
3802
+ "type": "number",
3803
+ "mutable": false,
3804
+ "complexType": {
3805
+ "original": "number",
3806
+ "resolved": "number",
3807
+ "references": {}
3808
+ },
3809
+ "required": false,
3810
+ "optional": false,
3811
+ "docs": {
3812
+ "tags": [{
3813
+ "name": "see",
3814
+ "text": "fixedRows"
3815
+ }],
3816
+ "text": "Fixes the given number of columns so that they stay visible when horizontally scrolling the data-table.\r\nIf grouping is active or the value of the prop is <= 0, this prop will have no effect.\r\nCan be combined with fixedRows."
3817
+ },
3818
+ "attribute": "fixed-columns",
3819
+ "reflect": false,
3820
+ "defaultValue": "0"
3821
+ },
3822
+ "fixedRows": {
3823
+ "type": "number",
3824
+ "mutable": false,
3825
+ "complexType": {
3826
+ "original": "number",
3827
+ "resolved": "number",
3828
+ "references": {}
3829
+ },
3830
+ "required": false,
3831
+ "optional": false,
3832
+ "docs": {
3833
+ "tags": [{
3834
+ "name": "see",
3835
+ "text": "fixedColumns"
3836
+ }],
3837
+ "text": "Fixes the given number of rows so that they stay visible when vertically scrolling the data-table.\r\nIf grouping is active or the value of the prop is <= 0, this prop will have no effect.\r\nCan be combined with fixedColumns."
3838
+ },
3839
+ "attribute": "fixed-rows",
3840
+ "reflect": false,
3841
+ "defaultValue": "0"
3842
+ },
3843
+ "forceOneLine": {
3844
+ "type": "boolean",
3845
+ "mutable": false,
3846
+ "complexType": {
3847
+ "original": "boolean",
3848
+ "resolved": "boolean",
3849
+ "references": {}
3850
+ },
3851
+ "required": false,
3852
+ "optional": false,
3853
+ "docs": {
3854
+ "tags": [],
3855
+ "text": "Forces cells with long text and a fixed column size to have an ellipsis set on their text.\r\nThe reflect attribute is mandatory to allow styling."
3856
+ },
3857
+ "attribute": "force-one-line",
3858
+ "reflect": true,
3859
+ "defaultValue": "false"
3860
+ },
3861
+ "globalFilter": {
3862
+ "type": "boolean",
3863
+ "mutable": false,
3864
+ "complexType": {
3865
+ "original": "boolean",
3866
+ "resolved": "boolean",
3867
+ "references": {}
3868
+ },
3869
+ "required": false,
3870
+ "optional": false,
3871
+ "docs": {
3872
+ "tags": [],
3873
+ "text": "When set to true it activates the global filter."
3874
+ },
3875
+ "attribute": "global-filter",
3876
+ "reflect": false,
3877
+ "defaultValue": "false"
3878
+ },
3879
+ "globalFilterValue": {
3880
+ "type": "string",
3881
+ "mutable": true,
3882
+ "complexType": {
3883
+ "original": "string",
3884
+ "resolved": "string",
3885
+ "references": {}
3886
+ },
3887
+ "required": false,
3888
+ "optional": false,
3889
+ "docs": {
3890
+ "tags": [],
3891
+ "text": "The value of the global filter."
3892
+ },
3893
+ "attribute": "global-filter-value",
3894
+ "reflect": true,
3895
+ "defaultValue": "''"
3896
+ },
3897
+ "groupLabelDisplay": {
3898
+ "type": "string",
3899
+ "mutable": false,
3900
+ "complexType": {
3901
+ "original": "GroupLabelDisplayMode",
3902
+ "resolved": "GroupLabelDisplayMode.BOTH | GroupLabelDisplayMode.LABEL | GroupLabelDisplayMode.VALUE",
3903
+ "references": {
3904
+ "GroupLabelDisplayMode": {
3905
+ "location": "import",
3906
+ "path": "./kup-data-table-declarations"
3907
+ }
3900
3908
  }
3901
- }
3902
- },
3903
- "required": false,
3904
- "optional": false,
3905
- "docs": {
3906
- "tags": [],
3907
- "text": "How the label of a group must be displayed.\r\nFor available values [see here]{@link GroupLabelDisplayMode}"
3908
- },
3909
- "attribute": "group-label-display",
3910
- "reflect": false,
3911
- "defaultValue": "GroupLabelDisplayMode.BOTH"
3912
- },
3913
- "groups": {
3914
- "type": "unknown",
3915
- "mutable": true,
3916
- "complexType": {
3917
- "original": "Array<GroupObject>",
3918
- "resolved": "GroupObject[]",
3919
- "references": {
3920
- "Array": {
3921
- "location": "global"
3922
- },
3923
- "GroupObject": {
3924
- "location": "import",
3925
- "path": "./kup-data-table-declarations"
3909
+ },
3910
+ "required": false,
3911
+ "optional": false,
3912
+ "docs": {
3913
+ "tags": [],
3914
+ "text": "How the label of a group must be displayed.\r\nFor available values [see here]{@link GroupLabelDisplayMode}"
3915
+ },
3916
+ "attribute": "group-label-display",
3917
+ "reflect": false,
3918
+ "defaultValue": "GroupLabelDisplayMode.BOTH"
3919
+ },
3920
+ "groups": {
3921
+ "type": "unknown",
3922
+ "mutable": true,
3923
+ "complexType": {
3924
+ "original": "Array<GroupObject>",
3925
+ "resolved": "GroupObject[]",
3926
+ "references": {
3927
+ "Array": {
3928
+ "location": "global"
3929
+ },
3930
+ "GroupObject": {
3931
+ "location": "import",
3932
+ "path": "./kup-data-table-declarations"
3933
+ }
3926
3934
  }
3927
- }
3928
- },
3929
- "required": false,
3930
- "optional": false,
3931
- "docs": {
3932
- "tags": [],
3933
- "text": "The list of groups."
3934
- },
3935
- "defaultValue": "[]"
3936
- },
3937
- "headerIsPersistent": {
3938
- "type": "boolean",
3939
- "mutable": false,
3940
- "complexType": {
3941
- "original": "boolean",
3942
- "resolved": "boolean",
3943
- "references": {}
3944
- },
3945
- "required": false,
3946
- "optional": false,
3947
- "docs": {
3948
- "tags": [],
3949
- "text": "When set to true the header will stick on top of the table when scrolling."
3950
- },
3951
- "attribute": "header-is-persistent",
3952
- "reflect": false,
3953
- "defaultValue": "true"
3954
- },
3955
- "isFocusable": {
3956
- "type": "boolean",
3957
- "mutable": false,
3958
- "complexType": {
3959
- "original": "boolean",
3960
- "resolved": "boolean",
3961
- "references": {}
3962
- },
3963
- "required": false,
3964
- "optional": false,
3965
- "docs": {
3966
- "tags": [{
3967
- "name": "default",
3968
- "text": "false"
3969
- }],
3970
- "text": "When set to true, clicked-on rows will have a visual feedback."
3971
- },
3972
- "attribute": "is-focusable",
3973
- "reflect": false,
3974
- "defaultValue": "false"
3975
- },
3976
- "lazyLoadRows": {
3977
- "type": "boolean",
3978
- "mutable": false,
3979
- "complexType": {
3980
- "original": "boolean",
3981
- "resolved": "boolean",
3982
- "references": {}
3983
- },
3984
- "required": false,
3985
- "optional": false,
3986
- "docs": {
3987
- "tags": [],
3988
- "text": "When set to true, extra rows will be automatically loaded once the last row enters the viewport. When groups are present, the number of rows is referred to groups and not to their content. Paginator is disabled."
3989
- },
3990
- "attribute": "lazy-load-rows",
3991
- "reflect": false,
3992
- "defaultValue": "false"
3993
- },
3994
- "lineBreakCharacter": {
3995
- "type": "string",
3996
- "mutable": false,
3997
- "complexType": {
3998
- "original": "string",
3999
- "resolved": "string",
4000
- "references": {}
4001
- },
4002
- "required": false,
4003
- "optional": false,
4004
- "docs": {
4005
- "tags": [],
4006
- "text": "Defines the placeholder character which will be replaced by a line break inside table header cells, normal or sticky."
4007
- },
4008
- "attribute": "line-break-character",
4009
- "reflect": false,
4010
- "defaultValue": "'\\n'"
4011
- },
4012
- "loadMoreLimit": {
4013
- "type": "number",
4014
- "mutable": false,
4015
- "complexType": {
4016
- "original": "number",
4017
- "resolved": "number",
4018
- "references": {}
4019
- },
4020
- "required": false,
4021
- "optional": false,
4022
- "docs": {
4023
- "tags": [],
4024
- "text": "Sets a maximum limit of new records which can be required by the load more functionality."
4025
- },
4026
- "attribute": "load-more-limit",
4027
- "reflect": false,
4028
- "defaultValue": "1000"
4029
- },
4030
- "loadMoreMode": {
4031
- "type": "string",
4032
- "mutable": false,
4033
- "complexType": {
4034
- "original": "LoadMoreMode",
4035
- "resolved": "LoadMoreMode.CONSTANT | LoadMoreMode.CONSTANT_INCREMENT | LoadMoreMode.PROGRESSIVE_THRESHOLD",
4036
- "references": {
4037
- "LoadMoreMode": {
4038
- "location": "import",
4039
- "path": "./kup-data-table-declarations"
3935
+ },
3936
+ "required": false,
3937
+ "optional": false,
3938
+ "docs": {
3939
+ "tags": [],
3940
+ "text": "The list of groups."
3941
+ },
3942
+ "defaultValue": "[]"
3943
+ },
3944
+ "headerIsPersistent": {
3945
+ "type": "boolean",
3946
+ "mutable": false,
3947
+ "complexType": {
3948
+ "original": "boolean",
3949
+ "resolved": "boolean",
3950
+ "references": {}
3951
+ },
3952
+ "required": false,
3953
+ "optional": false,
3954
+ "docs": {
3955
+ "tags": [],
3956
+ "text": "When set to true the header will stick on top of the table when scrolling."
3957
+ },
3958
+ "attribute": "header-is-persistent",
3959
+ "reflect": false,
3960
+ "defaultValue": "true"
3961
+ },
3962
+ "isFocusable": {
3963
+ "type": "boolean",
3964
+ "mutable": false,
3965
+ "complexType": {
3966
+ "original": "boolean",
3967
+ "resolved": "boolean",
3968
+ "references": {}
3969
+ },
3970
+ "required": false,
3971
+ "optional": false,
3972
+ "docs": {
3973
+ "tags": [{
3974
+ "name": "default",
3975
+ "text": "false"
3976
+ }],
3977
+ "text": "When set to true, clicked-on rows will have a visual feedback."
3978
+ },
3979
+ "attribute": "is-focusable",
3980
+ "reflect": false,
3981
+ "defaultValue": "false"
3982
+ },
3983
+ "lazyLoadRows": {
3984
+ "type": "boolean",
3985
+ "mutable": false,
3986
+ "complexType": {
3987
+ "original": "boolean",
3988
+ "resolved": "boolean",
3989
+ "references": {}
3990
+ },
3991
+ "required": false,
3992
+ "optional": false,
3993
+ "docs": {
3994
+ "tags": [],
3995
+ "text": "When set to true, extra rows will be automatically loaded once the last row enters the viewport. When groups are present, the number of rows is referred to groups and not to their content. Paginator is disabled."
3996
+ },
3997
+ "attribute": "lazy-load-rows",
3998
+ "reflect": false,
3999
+ "defaultValue": "false"
4000
+ },
4001
+ "lineBreakCharacter": {
4002
+ "type": "string",
4003
+ "mutable": false,
4004
+ "complexType": {
4005
+ "original": "string",
4006
+ "resolved": "string",
4007
+ "references": {}
4008
+ },
4009
+ "required": false,
4010
+ "optional": false,
4011
+ "docs": {
4012
+ "tags": [],
4013
+ "text": "Defines the placeholder character which will be replaced by a line break inside table header cells, normal or sticky."
4014
+ },
4015
+ "attribute": "line-break-character",
4016
+ "reflect": false,
4017
+ "defaultValue": "'\\n'"
4018
+ },
4019
+ "loadMoreLimit": {
4020
+ "type": "number",
4021
+ "mutable": false,
4022
+ "complexType": {
4023
+ "original": "number",
4024
+ "resolved": "number",
4025
+ "references": {}
4026
+ },
4027
+ "required": false,
4028
+ "optional": false,
4029
+ "docs": {
4030
+ "tags": [],
4031
+ "text": "Sets a maximum limit of new records which can be required by the load more functionality."
4032
+ },
4033
+ "attribute": "load-more-limit",
4034
+ "reflect": false,
4035
+ "defaultValue": "1000"
4036
+ },
4037
+ "loadMoreMode": {
4038
+ "type": "string",
4039
+ "mutable": false,
4040
+ "complexType": {
4041
+ "original": "LoadMoreMode",
4042
+ "resolved": "LoadMoreMode.CONSTANT | LoadMoreMode.CONSTANT_INCREMENT | LoadMoreMode.PROGRESSIVE_THRESHOLD",
4043
+ "references": {
4044
+ "LoadMoreMode": {
4045
+ "location": "import",
4046
+ "path": "./kup-data-table-declarations"
4047
+ }
4040
4048
  }
4041
- }
4042
- },
4043
- "required": false,
4044
- "optional": false,
4045
- "docs": {
4046
- "tags": [{
4047
- "name": "see",
4048
- "text": "loadMoreStep *"
4049
- }, {
4050
- "name": "see",
4051
- "text": "loadMoreLimit"
4052
- }],
4053
- "text": "Establish the modality of how many new records will be downloaded.\r\n\r\nThis property is regulated also by loadMoreStep."
4054
- },
4055
- "attribute": "load-more-mode",
4056
- "reflect": false,
4057
- "defaultValue": "LoadMoreMode.PROGRESSIVE_THRESHOLD"
4058
- },
4059
- "loadMoreStep": {
4060
- "type": "number",
4061
- "mutable": false,
4062
- "complexType": {
4063
- "original": "number",
4064
- "resolved": "number",
4065
- "references": {}
4066
- },
4067
- "required": false,
4068
- "optional": false,
4069
- "docs": {
4070
- "tags": [{
4071
- "name": "see",
4072
- "text": "loadMoreMode *"
4073
- }, {
4074
- "name": "see",
4075
- "text": "loadMoreLimit"
4076
- }],
4077
- "text": "The number of records which will be requested to be downloaded when clicking on the load more button.\r\n\r\nThis property is regulated also by loadMoreMode."
4078
- },
4079
- "attribute": "load-more-step",
4080
- "reflect": false,
4081
- "defaultValue": "60"
4082
- },
4083
- "pageSelected": {
4084
- "type": "number",
4085
- "mutable": false,
4086
- "complexType": {
4087
- "original": "number",
4088
- "resolved": "number",
4089
- "references": {}
4090
- },
4091
- "required": false,
4092
- "optional": false,
4093
- "docs": {
4094
- "tags": [],
4095
- "text": "Current selected page set on component load"
4096
- },
4097
- "attribute": "page-selected",
4098
- "reflect": false,
4099
- "defaultValue": "-1"
4100
- },
4101
- "paginatorPos": {
4102
- "type": "string",
4103
- "mutable": false,
4104
- "complexType": {
4105
- "original": "PaginatorPos",
4106
- "resolved": "PaginatorPos.BOTH | PaginatorPos.BOTTOM | PaginatorPos.TOP",
4107
- "references": {
4108
- "PaginatorPos": {
4109
- "location": "import",
4110
- "path": "./kup-data-table-declarations"
4049
+ },
4050
+ "required": false,
4051
+ "optional": false,
4052
+ "docs": {
4053
+ "tags": [{
4054
+ "name": "see",
4055
+ "text": "loadMoreStep *"
4056
+ }, {
4057
+ "name": "see",
4058
+ "text": "loadMoreLimit"
4059
+ }],
4060
+ "text": "Establish the modality of how many new records will be downloaded.\r\n\r\nThis property is regulated also by loadMoreStep."
4061
+ },
4062
+ "attribute": "load-more-mode",
4063
+ "reflect": false,
4064
+ "defaultValue": "LoadMoreMode.PROGRESSIVE_THRESHOLD"
4065
+ },
4066
+ "loadMoreStep": {
4067
+ "type": "number",
4068
+ "mutable": false,
4069
+ "complexType": {
4070
+ "original": "number",
4071
+ "resolved": "number",
4072
+ "references": {}
4073
+ },
4074
+ "required": false,
4075
+ "optional": false,
4076
+ "docs": {
4077
+ "tags": [{
4078
+ "name": "see",
4079
+ "text": "loadMoreMode *"
4080
+ }, {
4081
+ "name": "see",
4082
+ "text": "loadMoreLimit"
4083
+ }],
4084
+ "text": "The number of records which will be requested to be downloaded when clicking on the load more button.\r\n\r\nThis property is regulated also by loadMoreMode."
4085
+ },
4086
+ "attribute": "load-more-step",
4087
+ "reflect": false,
4088
+ "defaultValue": "60"
4089
+ },
4090
+ "pageSelected": {
4091
+ "type": "number",
4092
+ "mutable": false,
4093
+ "complexType": {
4094
+ "original": "number",
4095
+ "resolved": "number",
4096
+ "references": {}
4097
+ },
4098
+ "required": false,
4099
+ "optional": false,
4100
+ "docs": {
4101
+ "tags": [],
4102
+ "text": "Current selected page set on component load"
4103
+ },
4104
+ "attribute": "page-selected",
4105
+ "reflect": false,
4106
+ "defaultValue": "-1"
4107
+ },
4108
+ "paginatorPos": {
4109
+ "type": "string",
4110
+ "mutable": false,
4111
+ "complexType": {
4112
+ "original": "PaginatorPos",
4113
+ "resolved": "PaginatorPos.BOTH | PaginatorPos.BOTTOM | PaginatorPos.TOP",
4114
+ "references": {
4115
+ "PaginatorPos": {
4116
+ "location": "import",
4117
+ "path": "./kup-data-table-declarations"
4118
+ }
4111
4119
  }
4112
- }
4113
- },
4114
- "required": false,
4115
- "optional": false,
4116
- "docs": {
4117
- "tags": [],
4118
- "text": "Sets the position of the paginator. Available positions: top, bottom or both."
4119
- },
4120
- "attribute": "paginator-pos",
4121
- "reflect": false,
4122
- "defaultValue": "PaginatorPos.TOP"
4123
- },
4124
- "removableColumns": {
4125
- "type": "boolean",
4126
- "mutable": false,
4127
- "complexType": {
4128
- "original": "boolean",
4129
- "resolved": "boolean",
4130
- "references": {}
4131
- },
4132
- "required": false,
4133
- "optional": false,
4134
- "docs": {
4135
- "tags": [],
4136
- "text": "Sets the possibility to remove the selected column."
4137
- },
4138
- "attribute": "removable-columns",
4139
- "reflect": false,
4140
- "defaultValue": "false"
4141
- },
4142
- "resizableColumns": {
4143
- "type": "boolean",
4144
- "mutable": false,
4145
- "complexType": {
4146
- "original": "boolean",
4147
- "resolved": "boolean",
4148
- "references": {}
4149
- },
4150
- "required": false,
4151
- "optional": false,
4152
- "docs": {
4153
- "tags": [],
4154
- "text": "Gives the possibility to resize columns by dragging on their right edge."
4155
- },
4156
- "attribute": "resizable-columns",
4157
- "reflect": false,
4158
- "defaultValue": "true"
4159
- },
4160
- "rowActions": {
4161
- "type": "unknown",
4162
- "mutable": false,
4163
- "complexType": {
4164
- "original": "Array<KupDataRowAction>",
4165
- "resolved": "KupDataRowAction[]",
4166
- "references": {
4167
- "Array": {
4168
- "location": "global"
4169
- },
4170
- "KupDataRowAction": {
4171
- "location": "import",
4172
- "path": "../../managers/kup-data/kup-data-declarations"
4120
+ },
4121
+ "required": false,
4122
+ "optional": false,
4123
+ "docs": {
4124
+ "tags": [],
4125
+ "text": "Sets the position of the paginator. Available positions: top, bottom or both."
4126
+ },
4127
+ "attribute": "paginator-pos",
4128
+ "reflect": false,
4129
+ "defaultValue": "PaginatorPos.TOP"
4130
+ },
4131
+ "removableColumns": {
4132
+ "type": "boolean",
4133
+ "mutable": false,
4134
+ "complexType": {
4135
+ "original": "boolean",
4136
+ "resolved": "boolean",
4137
+ "references": {}
4138
+ },
4139
+ "required": false,
4140
+ "optional": false,
4141
+ "docs": {
4142
+ "tags": [],
4143
+ "text": "Sets the possibility to remove the selected column."
4144
+ },
4145
+ "attribute": "removable-columns",
4146
+ "reflect": false,
4147
+ "defaultValue": "false"
4148
+ },
4149
+ "resizableColumns": {
4150
+ "type": "boolean",
4151
+ "mutable": false,
4152
+ "complexType": {
4153
+ "original": "boolean",
4154
+ "resolved": "boolean",
4155
+ "references": {}
4156
+ },
4157
+ "required": false,
4158
+ "optional": false,
4159
+ "docs": {
4160
+ "tags": [],
4161
+ "text": "Gives the possibility to resize columns by dragging on their right edge."
4162
+ },
4163
+ "attribute": "resizable-columns",
4164
+ "reflect": false,
4165
+ "defaultValue": "true"
4166
+ },
4167
+ "rowActions": {
4168
+ "type": "unknown",
4169
+ "mutable": false,
4170
+ "complexType": {
4171
+ "original": "Array<KupDataRowAction>",
4172
+ "resolved": "KupDataRowAction[]",
4173
+ "references": {
4174
+ "Array": {
4175
+ "location": "global"
4176
+ },
4177
+ "KupDataRowAction": {
4178
+ "location": "import",
4179
+ "path": "../../managers/kup-data/kup-data-declarations"
4180
+ }
4173
4181
  }
4182
+ },
4183
+ "required": false,
4184
+ "optional": false,
4185
+ "docs": {
4186
+ "tags": [],
4187
+ "text": "Sets the actions of the rows."
4174
4188
  }
4175
4189
  },
4176
- "required": false,
4177
- "optional": false,
4178
- "docs": {
4179
- "tags": [],
4180
- "text": "Sets the actions of the rows."
4181
- }
4182
- },
4183
- "rowsPerPage": {
4184
- "type": "number",
4185
- "mutable": false,
4186
- "complexType": {
4187
- "original": "number",
4188
- "resolved": "number",
4189
- "references": {}
4190
- },
4191
- "required": false,
4192
- "optional": false,
4193
- "docs": {
4194
- "tags": [],
4195
- "text": "Sets the number of rows per page to display."
4196
- },
4197
- "attribute": "rows-per-page",
4198
- "reflect": false,
4199
- "defaultValue": "10"
4200
- },
4201
- "scrollOnHover": {
4202
- "type": "boolean",
4203
- "mutable": false,
4204
- "complexType": {
4205
- "original": "boolean",
4206
- "resolved": "boolean",
4207
- "references": {}
4208
- },
4209
- "required": false,
4210
- "optional": false,
4211
- "docs": {
4212
- "tags": [],
4213
- "text": "Activates the scroll on hover function."
4214
- },
4215
- "attribute": "scroll-on-hover",
4216
- "reflect": false,
4217
- "defaultValue": "false"
4218
- },
4219
- "selection": {
4220
- "type": "string",
4221
- "mutable": false,
4222
- "complexType": {
4223
- "original": "SelectionMode",
4224
- "resolved": "SelectionMode.MULTIPLE | SelectionMode.MULTIPLE_CHECKBOX | SelectionMode.NONE | SelectionMode.SINGLE",
4225
- "references": {
4226
- "SelectionMode": {
4227
- "location": "import",
4228
- "path": "./kup-data-table-declarations"
4190
+ "rowsPerPage": {
4191
+ "type": "number",
4192
+ "mutable": false,
4193
+ "complexType": {
4194
+ "original": "number",
4195
+ "resolved": "number",
4196
+ "references": {}
4197
+ },
4198
+ "required": false,
4199
+ "optional": false,
4200
+ "docs": {
4201
+ "tags": [],
4202
+ "text": "Sets the number of rows per page to display."
4203
+ },
4204
+ "attribute": "rows-per-page",
4205
+ "reflect": false,
4206
+ "defaultValue": "10"
4207
+ },
4208
+ "scrollOnHover": {
4209
+ "type": "boolean",
4210
+ "mutable": false,
4211
+ "complexType": {
4212
+ "original": "boolean",
4213
+ "resolved": "boolean",
4214
+ "references": {}
4215
+ },
4216
+ "required": false,
4217
+ "optional": false,
4218
+ "docs": {
4219
+ "tags": [],
4220
+ "text": "Activates the scroll on hover function."
4221
+ },
4222
+ "attribute": "scroll-on-hover",
4223
+ "reflect": false,
4224
+ "defaultValue": "false"
4225
+ },
4226
+ "selection": {
4227
+ "type": "string",
4228
+ "mutable": false,
4229
+ "complexType": {
4230
+ "original": "SelectionMode",
4231
+ "resolved": "SelectionMode.MULTIPLE | SelectionMode.MULTIPLE_CHECKBOX | SelectionMode.NONE | SelectionMode.SINGLE",
4232
+ "references": {
4233
+ "SelectionMode": {
4234
+ "location": "import",
4235
+ "path": "./kup-data-table-declarations"
4236
+ }
4229
4237
  }
4230
- }
4231
- },
4232
- "required": false,
4233
- "optional": false,
4234
- "docs": {
4235
- "tags": [],
4236
- "text": "Set the type of the rows selection."
4237
- },
4238
- "attribute": "selection",
4239
- "reflect": false,
4240
- "defaultValue": "SelectionMode.SINGLE"
4241
- },
4242
- "showCustomization": {
4243
- "type": "boolean",
4244
- "mutable": false,
4245
- "complexType": {
4246
- "original": "boolean",
4247
- "resolved": "boolean",
4248
- "references": {}
4249
- },
4250
- "required": false,
4251
- "optional": false,
4252
- "docs": {
4253
- "tags": [],
4254
- "text": "If set to true, displays the button to open the customization panel."
4255
- },
4256
- "attribute": "show-customization",
4257
- "reflect": false,
4258
- "defaultValue": "true"
4259
- },
4260
- "showFilters": {
4261
- "type": "boolean",
4262
- "mutable": false,
4263
- "complexType": {
4264
- "original": "boolean",
4265
- "resolved": "boolean",
4266
- "references": {}
4267
- },
4268
- "required": false,
4269
- "optional": false,
4270
- "docs": {
4271
- "tags": [],
4272
- "text": "When set to true enables the column filters."
4273
- },
4274
- "attribute": "show-filters",
4275
- "reflect": false,
4276
- "defaultValue": "false"
4277
- },
4278
- "showGroups": {
4279
- "type": "boolean",
4280
- "mutable": false,
4281
- "complexType": {
4282
- "original": "boolean",
4283
- "resolved": "boolean",
4284
- "references": {}
4285
- },
4286
- "required": false,
4287
- "optional": false,
4288
- "docs": {
4289
- "tags": [],
4290
- "text": "When set to true enables the column grouping."
4291
- },
4292
- "attribute": "show-groups",
4293
- "reflect": false,
4294
- "defaultValue": "false"
4295
- },
4296
- "showFooter": {
4297
- "type": "boolean",
4298
- "mutable": false,
4299
- "complexType": {
4300
- "original": "boolean",
4301
- "resolved": "boolean",
4302
- "references": {}
4303
- },
4304
- "required": false,
4305
- "optional": false,
4306
- "docs": {
4307
- "tags": [],
4308
- "text": "When set to true shows the footer."
4309
- },
4310
- "attribute": "show-footer",
4311
- "reflect": false,
4312
- "defaultValue": "false"
4313
- },
4314
- "showGrid": {
4315
- "type": "string",
4316
- "mutable": false,
4317
- "complexType": {
4318
- "original": "ShowGrid",
4319
- "resolved": "ShowGrid.COL | ShowGrid.COMPLETE | ShowGrid.NONE | ShowGrid.ROW",
4320
- "references": {
4321
- "ShowGrid": {
4322
- "location": "import",
4323
- "path": "./kup-data-table-declarations"
4238
+ },
4239
+ "required": false,
4240
+ "optional": false,
4241
+ "docs": {
4242
+ "tags": [],
4243
+ "text": "Set the type of the rows selection."
4244
+ },
4245
+ "attribute": "selection",
4246
+ "reflect": false,
4247
+ "defaultValue": "SelectionMode.SINGLE"
4248
+ },
4249
+ "showCustomization": {
4250
+ "type": "boolean",
4251
+ "mutable": false,
4252
+ "complexType": {
4253
+ "original": "boolean",
4254
+ "resolved": "boolean",
4255
+ "references": {}
4256
+ },
4257
+ "required": false,
4258
+ "optional": false,
4259
+ "docs": {
4260
+ "tags": [],
4261
+ "text": "If set to true, displays the button to open the customization panel."
4262
+ },
4263
+ "attribute": "show-customization",
4264
+ "reflect": false,
4265
+ "defaultValue": "true"
4266
+ },
4267
+ "showFilters": {
4268
+ "type": "boolean",
4269
+ "mutable": false,
4270
+ "complexType": {
4271
+ "original": "boolean",
4272
+ "resolved": "boolean",
4273
+ "references": {}
4274
+ },
4275
+ "required": false,
4276
+ "optional": false,
4277
+ "docs": {
4278
+ "tags": [],
4279
+ "text": "When set to true enables the column filters."
4280
+ },
4281
+ "attribute": "show-filters",
4282
+ "reflect": false,
4283
+ "defaultValue": "false"
4284
+ },
4285
+ "showGroups": {
4286
+ "type": "boolean",
4287
+ "mutable": false,
4288
+ "complexType": {
4289
+ "original": "boolean",
4290
+ "resolved": "boolean",
4291
+ "references": {}
4292
+ },
4293
+ "required": false,
4294
+ "optional": false,
4295
+ "docs": {
4296
+ "tags": [],
4297
+ "text": "When set to true enables the column grouping."
4298
+ },
4299
+ "attribute": "show-groups",
4300
+ "reflect": false,
4301
+ "defaultValue": "false"
4302
+ },
4303
+ "showFooter": {
4304
+ "type": "boolean",
4305
+ "mutable": false,
4306
+ "complexType": {
4307
+ "original": "boolean",
4308
+ "resolved": "boolean",
4309
+ "references": {}
4310
+ },
4311
+ "required": false,
4312
+ "optional": false,
4313
+ "docs": {
4314
+ "tags": [],
4315
+ "text": "When set to true shows the footer."
4316
+ },
4317
+ "attribute": "show-footer",
4318
+ "reflect": false,
4319
+ "defaultValue": "false"
4320
+ },
4321
+ "showGrid": {
4322
+ "type": "string",
4323
+ "mutable": false,
4324
+ "complexType": {
4325
+ "original": "ShowGrid",
4326
+ "resolved": "ShowGrid.COL | ShowGrid.COMPLETE | ShowGrid.NONE | ShowGrid.ROW",
4327
+ "references": {
4328
+ "ShowGrid": {
4329
+ "location": "import",
4330
+ "path": "./kup-data-table-declarations"
4331
+ }
4324
4332
  }
4325
- }
4326
- },
4327
- "required": false,
4328
- "optional": false,
4329
- "docs": {
4330
- "tags": [],
4331
- "text": "Can be used to customize the grid view of the table."
4332
- },
4333
- "attribute": "show-grid",
4334
- "reflect": false,
4335
- "defaultValue": "ShowGrid.ROW"
4336
- },
4337
- "showHeader": {
4338
- "type": "boolean",
4339
- "mutable": false,
4340
- "complexType": {
4341
- "original": "boolean",
4342
- "resolved": "boolean",
4343
- "references": {}
4344
- },
4345
- "required": false,
4346
- "optional": false,
4347
- "docs": {
4348
- "tags": [{
4349
- "name": "namespace",
4350
- "text": "KupDataTable.showHeader"
4351
- }],
4352
- "text": "Enables rendering of the table header."
4353
- },
4354
- "attribute": "show-header",
4355
- "reflect": false,
4356
- "defaultValue": "true"
4357
- },
4358
- "showLoadMore": {
4359
- "type": "boolean",
4360
- "mutable": false,
4361
- "complexType": {
4362
- "original": "boolean",
4363
- "resolved": "boolean",
4364
- "references": {}
4365
- },
4366
- "required": false,
4367
- "optional": false,
4368
- "docs": {
4369
- "tags": [],
4370
- "text": "If set to true, displays the button to load more records."
4371
- },
4372
- "attribute": "show-load-more",
4373
- "reflect": false,
4374
- "defaultValue": "false"
4375
- },
4376
- "sort": {
4377
- "type": "unknown",
4378
- "mutable": true,
4379
- "complexType": {
4380
- "original": "Array<SortObject>",
4381
- "resolved": "SortObject[]",
4382
- "references": {
4383
- "Array": {
4384
- "location": "global"
4385
- },
4386
- "SortObject": {
4387
- "location": "import",
4388
- "path": "./kup-data-table-declarations"
4333
+ },
4334
+ "required": false,
4335
+ "optional": false,
4336
+ "docs": {
4337
+ "tags": [],
4338
+ "text": "Can be used to customize the grid view of the table."
4339
+ },
4340
+ "attribute": "show-grid",
4341
+ "reflect": false,
4342
+ "defaultValue": "ShowGrid.ROW"
4343
+ },
4344
+ "showHeader": {
4345
+ "type": "boolean",
4346
+ "mutable": false,
4347
+ "complexType": {
4348
+ "original": "boolean",
4349
+ "resolved": "boolean",
4350
+ "references": {}
4351
+ },
4352
+ "required": false,
4353
+ "optional": false,
4354
+ "docs": {
4355
+ "tags": [{
4356
+ "name": "namespace",
4357
+ "text": "KupDataTable.showHeader"
4358
+ }],
4359
+ "text": "Enables rendering of the table header."
4360
+ },
4361
+ "attribute": "show-header",
4362
+ "reflect": false,
4363
+ "defaultValue": "true"
4364
+ },
4365
+ "showLoadMore": {
4366
+ "type": "boolean",
4367
+ "mutable": false,
4368
+ "complexType": {
4369
+ "original": "boolean",
4370
+ "resolved": "boolean",
4371
+ "references": {}
4372
+ },
4373
+ "required": false,
4374
+ "optional": false,
4375
+ "docs": {
4376
+ "tags": [],
4377
+ "text": "If set to true, displays the button to load more records."
4378
+ },
4379
+ "attribute": "show-load-more",
4380
+ "reflect": false,
4381
+ "defaultValue": "false"
4382
+ },
4383
+ "sort": {
4384
+ "type": "unknown",
4385
+ "mutable": true,
4386
+ "complexType": {
4387
+ "original": "Array<SortObject>",
4388
+ "resolved": "SortObject[]",
4389
+ "references": {
4390
+ "Array": {
4391
+ "location": "global"
4392
+ },
4393
+ "SortObject": {
4394
+ "location": "import",
4395
+ "path": "./kup-data-table-declarations"
4396
+ }
4389
4397
  }
4390
- }
4391
- },
4392
- "required": false,
4393
- "optional": false,
4394
- "docs": {
4395
- "tags": [],
4396
- "text": "Defines the current sorting options."
4397
- },
4398
- "defaultValue": "[]"
4399
- },
4400
- "sortableColumnsMutateData": {
4401
- "type": "boolean",
4402
- "mutable": false,
4403
- "complexType": {
4404
- "original": "boolean",
4405
- "resolved": "boolean",
4406
- "references": {}
4407
- },
4408
- "required": false,
4409
- "optional": false,
4410
- "docs": {
4411
- "tags": [],
4412
- "text": "If set to true, when a column is dragged to be sorted, the component directly mutates the data.columns property\r\nand then fires the event"
4413
- },
4414
- "attribute": "sortable-columns-mutate-data",
4415
- "reflect": false,
4416
- "defaultValue": "true"
4417
- },
4418
- "sortEnabled": {
4419
- "type": "boolean",
4420
- "mutable": false,
4421
- "complexType": {
4422
- "original": "boolean",
4423
- "resolved": "boolean",
4424
- "references": {}
4425
- },
4426
- "required": false,
4427
- "optional": false,
4428
- "docs": {
4429
- "tags": [],
4430
- "text": "When set to true enables the sorting of the columns by clicking on the column header."
4431
- },
4432
- "attribute": "sort-enabled",
4433
- "reflect": false,
4434
- "defaultValue": "true"
4435
- },
4436
- "tableHeight": {
4437
- "type": "string",
4438
- "mutable": false,
4439
- "complexType": {
4440
- "original": "string",
4441
- "resolved": "string",
4442
- "references": {}
4443
- },
4444
- "required": false,
4445
- "optional": false,
4446
- "docs": {
4447
- "tags": [],
4448
- "text": "Sets the height of the table."
4449
- },
4450
- "attribute": "table-height",
4451
- "reflect": false,
4452
- "defaultValue": "undefined"
4453
- },
4454
- "tableWidth": {
4455
- "type": "string",
4456
- "mutable": false,
4457
- "complexType": {
4458
- "original": "string",
4459
- "resolved": "string",
4460
- "references": {}
4461
- },
4462
- "required": false,
4463
- "optional": false,
4464
- "docs": {
4465
- "tags": [],
4466
- "text": "Sets the width of the table."
4467
- },
4468
- "attribute": "table-width",
4469
- "reflect": false,
4470
- "defaultValue": "undefined"
4471
- },
4472
- "totals": {
4473
- "type": "unknown",
4474
- "mutable": true,
4475
- "complexType": {
4476
- "original": "TotalsMap",
4477
- "resolved": "TotalsMap",
4478
- "references": {
4479
- "TotalsMap": {
4480
- "location": "import",
4481
- "path": "./kup-data-table-declarations"
4398
+ },
4399
+ "required": false,
4400
+ "optional": false,
4401
+ "docs": {
4402
+ "tags": [],
4403
+ "text": "Defines the current sorting options."
4404
+ },
4405
+ "defaultValue": "[]"
4406
+ },
4407
+ "sortableColumnsMutateData": {
4408
+ "type": "boolean",
4409
+ "mutable": false,
4410
+ "complexType": {
4411
+ "original": "boolean",
4412
+ "resolved": "boolean",
4413
+ "references": {}
4414
+ },
4415
+ "required": false,
4416
+ "optional": false,
4417
+ "docs": {
4418
+ "tags": [],
4419
+ "text": "If set to true, when a column is dragged to be sorted, the component directly mutates the data.columns property\r\nand then fires the event"
4420
+ },
4421
+ "attribute": "sortable-columns-mutate-data",
4422
+ "reflect": false,
4423
+ "defaultValue": "true"
4424
+ },
4425
+ "sortEnabled": {
4426
+ "type": "boolean",
4427
+ "mutable": false,
4428
+ "complexType": {
4429
+ "original": "boolean",
4430
+ "resolved": "boolean",
4431
+ "references": {}
4432
+ },
4433
+ "required": false,
4434
+ "optional": false,
4435
+ "docs": {
4436
+ "tags": [],
4437
+ "text": "When set to true enables the sorting of the columns by clicking on the column header."
4438
+ },
4439
+ "attribute": "sort-enabled",
4440
+ "reflect": false,
4441
+ "defaultValue": "true"
4442
+ },
4443
+ "tableHeight": {
4444
+ "type": "string",
4445
+ "mutable": false,
4446
+ "complexType": {
4447
+ "original": "string",
4448
+ "resolved": "string",
4449
+ "references": {}
4450
+ },
4451
+ "required": false,
4452
+ "optional": false,
4453
+ "docs": {
4454
+ "tags": [],
4455
+ "text": "Sets the height of the table."
4456
+ },
4457
+ "attribute": "table-height",
4458
+ "reflect": false,
4459
+ "defaultValue": "undefined"
4460
+ },
4461
+ "tableWidth": {
4462
+ "type": "string",
4463
+ "mutable": false,
4464
+ "complexType": {
4465
+ "original": "string",
4466
+ "resolved": "string",
4467
+ "references": {}
4468
+ },
4469
+ "required": false,
4470
+ "optional": false,
4471
+ "docs": {
4472
+ "tags": [],
4473
+ "text": "Sets the width of the table."
4474
+ },
4475
+ "attribute": "table-width",
4476
+ "reflect": false,
4477
+ "defaultValue": "undefined"
4478
+ },
4479
+ "totals": {
4480
+ "type": "unknown",
4481
+ "mutable": true,
4482
+ "complexType": {
4483
+ "original": "TotalsMap",
4484
+ "resolved": "TotalsMap",
4485
+ "references": {
4486
+ "TotalsMap": {
4487
+ "location": "import",
4488
+ "path": "./kup-data-table-declarations"
4489
+ }
4482
4490
  }
4491
+ },
4492
+ "required": false,
4493
+ "optional": false,
4494
+ "docs": {
4495
+ "tags": [],
4496
+ "text": "Defines the current totals options"
4483
4497
  }
4484
4498
  },
4485
- "required": false,
4486
- "optional": false,
4487
- "docs": {
4488
- "tags": [],
4489
- "text": "Defines the current totals options"
4499
+ "transpose": {
4500
+ "type": "boolean",
4501
+ "mutable": true,
4502
+ "complexType": {
4503
+ "original": "boolean",
4504
+ "resolved": "boolean",
4505
+ "references": {}
4506
+ },
4507
+ "required": false,
4508
+ "optional": false,
4509
+ "docs": {
4510
+ "tags": [],
4511
+ "text": "Transposes the data of the data table"
4512
+ },
4513
+ "attribute": "transpose",
4514
+ "reflect": false,
4515
+ "defaultValue": "false"
4490
4516
  }
4491
- },
4492
- "transpose": {
4493
- "type": "boolean",
4494
- "mutable": true,
4495
- "complexType": {
4496
- "original": "boolean",
4497
- "resolved": "boolean",
4498
- "references": {}
4499
- },
4500
- "required": false,
4501
- "optional": false,
4502
- "docs": {
4503
- "tags": [],
4504
- "text": "Transposes the data of the data table"
4505
- },
4506
- "attribute": "transpose",
4507
- "reflect": false,
4508
- "defaultValue": "false"
4509
- }
4510
- }; }
4511
- static get states() { return {
4512
- "lazyLoadCells": {},
4513
- "currentPage": {},
4514
- "currentRowsPerPage": {},
4515
- "selectedRows": {},
4516
- "selectedColumn": {},
4517
- "columnMenuAnchor": {},
4518
- "groupState": {},
4519
- "openedTotalMenu": {},
4520
- "openedCustomSettings": {},
4521
- "fontsize": {}
4522
- }; }
4523
- static get events() { return [{
4524
- "method": "kupDidUnload",
4525
- "name": "kup-datatable-didunload",
4526
- "bubbles": true,
4527
- "cancelable": false,
4528
- "composed": true,
4529
- "docs": {
4530
- "tags": [],
4531
- "text": "When component unload is complete"
4532
- },
4533
- "complexType": {
4534
- "original": "KupEventPayload",
4535
- "resolved": "KupEventPayload",
4536
- "references": {
4537
- "KupEventPayload": {
4538
- "location": "import",
4539
- "path": "../../types/GenericTypes"
4517
+ };
4518
+ }
4519
+ static get states() {
4520
+ return {
4521
+ "lazyLoadCells": {},
4522
+ "currentPage": {},
4523
+ "currentRowsPerPage": {},
4524
+ "selectedRows": {},
4525
+ "selectedColumn": {},
4526
+ "columnMenuAnchor": {},
4527
+ "groupState": {},
4528
+ "openedTotalMenu": {},
4529
+ "openedCustomSettings": {},
4530
+ "fontsize": {}
4531
+ };
4532
+ }
4533
+ static get events() {
4534
+ return [{
4535
+ "method": "kupDidUnload",
4536
+ "name": "kup-datatable-didunload",
4537
+ "bubbles": true,
4538
+ "cancelable": false,
4539
+ "composed": true,
4540
+ "docs": {
4541
+ "tags": [],
4542
+ "text": "When component unload is complete"
4543
+ },
4544
+ "complexType": {
4545
+ "original": "KupEventPayload",
4546
+ "resolved": "KupEventPayload",
4547
+ "references": {
4548
+ "KupEventPayload": {
4549
+ "location": "import",
4550
+ "path": "../../types/GenericTypes"
4551
+ }
4540
4552
  }
4541
4553
  }
4542
- }
4543
- }, {
4544
- "method": "kupDidLoad",
4545
- "name": "kup-datatable-didload",
4546
- "bubbles": true,
4547
- "cancelable": false,
4548
- "composed": true,
4549
- "docs": {
4550
- "tags": [],
4551
- "text": "When component load is complete"
4552
- },
4553
- "complexType": {
4554
- "original": "KupEventPayload",
4555
- "resolved": "KupEventPayload",
4556
- "references": {
4557
- "KupEventPayload": {
4558
- "location": "import",
4559
- "path": "../../types/GenericTypes"
4554
+ }, {
4555
+ "method": "kupDidLoad",
4556
+ "name": "kup-datatable-didload",
4557
+ "bubbles": true,
4558
+ "cancelable": false,
4559
+ "composed": true,
4560
+ "docs": {
4561
+ "tags": [],
4562
+ "text": "When component load is complete"
4563
+ },
4564
+ "complexType": {
4565
+ "original": "KupEventPayload",
4566
+ "resolved": "KupEventPayload",
4567
+ "references": {
4568
+ "KupEventPayload": {
4569
+ "location": "import",
4570
+ "path": "../../types/GenericTypes"
4571
+ }
4560
4572
  }
4561
4573
  }
4562
- }
4563
- }, {
4564
- "method": "kupResetSelectedRows",
4565
- "name": "kup-datatable-resetselectedrows",
4566
- "bubbles": true,
4567
- "cancelable": false,
4568
- "composed": true,
4569
- "docs": {
4570
- "tags": [],
4571
- "text": "When rows selections reset"
4572
- },
4573
- "complexType": {
4574
- "original": "KupEventPayload",
4575
- "resolved": "KupEventPayload",
4576
- "references": {
4577
- "KupEventPayload": {
4578
- "location": "import",
4579
- "path": "../../types/GenericTypes"
4574
+ }, {
4575
+ "method": "kupResetSelectedRows",
4576
+ "name": "kup-datatable-resetselectedrows",
4577
+ "bubbles": true,
4578
+ "cancelable": false,
4579
+ "composed": true,
4580
+ "docs": {
4581
+ "tags": [],
4582
+ "text": "When rows selections reset"
4583
+ },
4584
+ "complexType": {
4585
+ "original": "KupEventPayload",
4586
+ "resolved": "KupEventPayload",
4587
+ "references": {
4588
+ "KupEventPayload": {
4589
+ "location": "import",
4590
+ "path": "../../types/GenericTypes"
4591
+ }
4580
4592
  }
4581
4593
  }
4582
- }
4583
- }, {
4584
- "method": "kupRowSelected",
4585
- "name": "kup-datatable-rowselected",
4586
- "bubbles": true,
4587
- "cancelable": false,
4588
- "composed": true,
4589
- "docs": {
4590
- "tags": [],
4591
- "text": "When a row is selected"
4592
- },
4593
- "complexType": {
4594
- "original": "KupDatatableRowSelectedEventPayload",
4595
- "resolved": "KupDatatableRowSelectedEventPayload",
4596
- "references": {
4597
- "KupDatatableRowSelectedEventPayload": {
4598
- "location": "import",
4599
- "path": "./kup-data-table-declarations"
4594
+ }, {
4595
+ "method": "kupRowSelected",
4596
+ "name": "kup-datatable-rowselected",
4597
+ "bubbles": true,
4598
+ "cancelable": false,
4599
+ "composed": true,
4600
+ "docs": {
4601
+ "tags": [],
4602
+ "text": "When a row is selected"
4603
+ },
4604
+ "complexType": {
4605
+ "original": "KupDatatableRowSelectedEventPayload",
4606
+ "resolved": "KupDatatableRowSelectedEventPayload",
4607
+ "references": {
4608
+ "KupDatatableRowSelectedEventPayload": {
4609
+ "location": "import",
4610
+ "path": "./kup-data-table-declarations"
4611
+ }
4600
4612
  }
4601
4613
  }
4602
- }
4603
- }, {
4604
- "method": "kupDataTableClick",
4605
- "name": "kup-datatable-click",
4606
- "bubbles": true,
4607
- "cancelable": false,
4608
- "composed": true,
4609
- "docs": {
4610
- "tags": [],
4611
- "text": "Generic click event on data table."
4612
- },
4613
- "complexType": {
4614
- "original": "KupDatatableClickEventPayload",
4615
- "resolved": "KupDatatableClickEventPayload",
4616
- "references": {
4617
- "KupDatatableClickEventPayload": {
4618
- "location": "import",
4619
- "path": "./kup-data-table-declarations"
4614
+ }, {
4615
+ "method": "kupDataTableClick",
4616
+ "name": "kup-datatable-click",
4617
+ "bubbles": true,
4618
+ "cancelable": false,
4619
+ "composed": true,
4620
+ "docs": {
4621
+ "tags": [],
4622
+ "text": "Generic click event on data table."
4623
+ },
4624
+ "complexType": {
4625
+ "original": "KupDatatableClickEventPayload",
4626
+ "resolved": "KupDatatableClickEventPayload",
4627
+ "references": {
4628
+ "KupDatatableClickEventPayload": {
4629
+ "location": "import",
4630
+ "path": "./kup-data-table-declarations"
4631
+ }
4620
4632
  }
4621
4633
  }
4622
- }
4623
- }, {
4624
- "method": "kupDataTableContextMenu",
4625
- "name": "kup-datatable-contextmenu",
4626
- "bubbles": true,
4627
- "cancelable": false,
4628
- "composed": true,
4629
- "docs": {
4630
- "tags": [],
4631
- "text": "Generic right click event on data table."
4632
- },
4633
- "complexType": {
4634
- "original": "KupDatatableClickEventPayload",
4635
- "resolved": "KupDatatableClickEventPayload",
4636
- "references": {
4637
- "KupDatatableClickEventPayload": {
4638
- "location": "import",
4639
- "path": "./kup-data-table-declarations"
4634
+ }, {
4635
+ "method": "kupDataTableContextMenu",
4636
+ "name": "kup-datatable-contextmenu",
4637
+ "bubbles": true,
4638
+ "cancelable": false,
4639
+ "composed": true,
4640
+ "docs": {
4641
+ "tags": [],
4642
+ "text": "Generic right click event on data table."
4643
+ },
4644
+ "complexType": {
4645
+ "original": "KupDatatableClickEventPayload",
4646
+ "resolved": "KupDatatableClickEventPayload",
4647
+ "references": {
4648
+ "KupDatatableClickEventPayload": {
4649
+ "location": "import",
4650
+ "path": "./kup-data-table-declarations"
4651
+ }
4640
4652
  }
4641
4653
  }
4642
- }
4643
- }, {
4644
- "method": "kupDataTableDblClick",
4645
- "name": "kup-datatable-dblclick",
4646
- "bubbles": true,
4647
- "cancelable": false,
4648
- "composed": true,
4649
- "docs": {
4650
- "tags": [],
4651
- "text": "Generic double click event on data table."
4652
- },
4653
- "complexType": {
4654
- "original": "KupDatatableClickEventPayload",
4655
- "resolved": "KupDatatableClickEventPayload",
4656
- "references": {
4657
- "KupDatatableClickEventPayload": {
4658
- "location": "import",
4659
- "path": "./kup-data-table-declarations"
4654
+ }, {
4655
+ "method": "kupDataTableDblClick",
4656
+ "name": "kup-datatable-dblclick",
4657
+ "bubbles": true,
4658
+ "cancelable": false,
4659
+ "composed": true,
4660
+ "docs": {
4661
+ "tags": [],
4662
+ "text": "Generic double click event on data table."
4663
+ },
4664
+ "complexType": {
4665
+ "original": "KupDatatableClickEventPayload",
4666
+ "resolved": "KupDatatableClickEventPayload",
4667
+ "references": {
4668
+ "KupDatatableClickEventPayload": {
4669
+ "location": "import",
4670
+ "path": "./kup-data-table-declarations"
4671
+ }
4660
4672
  }
4661
4673
  }
4662
- }
4663
- }, {
4664
- "method": "kupDataTableColumnMenu",
4665
- "name": "kup-datatable-columnmenu",
4666
- "bubbles": true,
4667
- "cancelable": false,
4668
- "composed": true,
4669
- "docs": {
4670
- "tags": [],
4671
- "text": "Emitted by the column menu card when opened/closed or when a kup-card-event is fired."
4672
- },
4673
- "complexType": {
4674
- "original": "KupDatatableColumnMenuEventPayload",
4675
- "resolved": "KupDatatableColumnMenuEventPayload",
4676
- "references": {
4677
- "KupDatatableColumnMenuEventPayload": {
4678
- "location": "import",
4679
- "path": "./kup-data-table-declarations"
4674
+ }, {
4675
+ "method": "kupDataTableColumnMenu",
4676
+ "name": "kup-datatable-columnmenu",
4677
+ "bubbles": true,
4678
+ "cancelable": false,
4679
+ "composed": true,
4680
+ "docs": {
4681
+ "tags": [],
4682
+ "text": "Emitted by the column menu card when opened/closed or when a kup-card-event is fired."
4683
+ },
4684
+ "complexType": {
4685
+ "original": "KupDatatableColumnMenuEventPayload",
4686
+ "resolved": "KupDatatableColumnMenuEventPayload",
4687
+ "references": {
4688
+ "KupDatatableColumnMenuEventPayload": {
4689
+ "location": "import",
4690
+ "path": "./kup-data-table-declarations"
4691
+ }
4680
4692
  }
4681
4693
  }
4682
- }
4683
- }, {
4684
- "method": "kupRowActionClick",
4685
- "name": "kup-datatable-rowactionclick",
4686
- "bubbles": true,
4687
- "cancelable": false,
4688
- "composed": true,
4689
- "docs": {
4690
- "tags": [],
4691
- "text": "When a row action is clicked"
4692
- },
4693
- "complexType": {
4694
- "original": "KupDatatableRowActionClickEventPayload",
4695
- "resolved": "KupDatatableRowActionClickEventPayload",
4696
- "references": {
4697
- "KupDatatableRowActionClickEventPayload": {
4698
- "location": "import",
4699
- "path": "./kup-data-table-declarations"
4694
+ }, {
4695
+ "method": "kupRowActionClick",
4696
+ "name": "kup-datatable-rowactionclick",
4697
+ "bubbles": true,
4698
+ "cancelable": false,
4699
+ "composed": true,
4700
+ "docs": {
4701
+ "tags": [],
4702
+ "text": "When a row action is clicked"
4703
+ },
4704
+ "complexType": {
4705
+ "original": "KupDatatableRowActionClickEventPayload",
4706
+ "resolved": "KupDatatableRowActionClickEventPayload",
4707
+ "references": {
4708
+ "KupDatatableRowActionClickEventPayload": {
4709
+ "location": "import",
4710
+ "path": "./kup-data-table-declarations"
4711
+ }
4700
4712
  }
4701
4713
  }
4702
- }
4703
- }, {
4704
- "method": "kupLoadMoreClick",
4705
- "name": "kup-datatable-loadmoreclick",
4706
- "bubbles": true,
4707
- "cancelable": false,
4708
- "composed": true,
4709
- "docs": {
4710
- "tags": [],
4711
- "text": ""
4712
- },
4713
- "complexType": {
4714
- "original": "KupDatatableLoadMoreClickEventPayload",
4715
- "resolved": "KupDatatableLoadMoreClickEventPayload",
4716
- "references": {
4717
- "KupDatatableLoadMoreClickEventPayload": {
4718
- "location": "import",
4719
- "path": "./kup-data-table-declarations"
4714
+ }, {
4715
+ "method": "kupLoadMoreClick",
4716
+ "name": "kup-datatable-loadmoreclick",
4717
+ "bubbles": true,
4718
+ "cancelable": false,
4719
+ "composed": true,
4720
+ "docs": {
4721
+ "tags": [],
4722
+ "text": ""
4723
+ },
4724
+ "complexType": {
4725
+ "original": "KupDatatableLoadMoreClickEventPayload",
4726
+ "resolved": "KupDatatableLoadMoreClickEventPayload",
4727
+ "references": {
4728
+ "KupDatatableLoadMoreClickEventPayload": {
4729
+ "location": "import",
4730
+ "path": "./kup-data-table-declarations"
4731
+ }
4720
4732
  }
4721
4733
  }
4722
- }
4723
- }, {
4724
- "method": "kupColumnMove",
4725
- "name": "kup-datatable-columnmove",
4726
- "bubbles": true,
4727
- "cancelable": false,
4728
- "composed": true,
4729
- "docs": {
4730
- "tags": [],
4731
- "text": "Event fired when columns are moved (sorted)."
4732
- },
4733
- "complexType": {
4734
- "original": "KupDatatableColumnMoveEventPayload",
4735
- "resolved": "KupDatatableColumnMoveEventPayload",
4736
- "references": {
4737
- "KupDatatableColumnMoveEventPayload": {
4738
- "location": "import",
4739
- "path": "./kup-data-table-declarations"
4734
+ }, {
4735
+ "method": "kupColumnMove",
4736
+ "name": "kup-datatable-columnmove",
4737
+ "bubbles": true,
4738
+ "cancelable": false,
4739
+ "composed": true,
4740
+ "docs": {
4741
+ "tags": [],
4742
+ "text": "Event fired when columns are moved (sorted)."
4743
+ },
4744
+ "complexType": {
4745
+ "original": "KupDatatableColumnMoveEventPayload",
4746
+ "resolved": "KupDatatableColumnMoveEventPayload",
4747
+ "references": {
4748
+ "KupDatatableColumnMoveEventPayload": {
4749
+ "location": "import",
4750
+ "path": "./kup-data-table-declarations"
4751
+ }
4740
4752
  }
4741
4753
  }
4742
- }
4743
- }, {
4744
- "method": "kupColumnRemove",
4745
- "name": "kup-datatable-columnremove",
4746
- "bubbles": true,
4747
- "cancelable": false,
4748
- "composed": true,
4749
- "docs": {
4750
- "tags": [],
4751
- "text": "Event fired when columns are removed (set to hidden)."
4752
- },
4753
- "complexType": {
4754
- "original": "KupDatatableColumnRemoveEventPayload",
4755
- "resolved": "KupDatatableColumnRemoveEventPayload",
4756
- "references": {
4757
- "KupDatatableColumnRemoveEventPayload": {
4758
- "location": "import",
4759
- "path": "./kup-data-table-declarations"
4754
+ }, {
4755
+ "method": "kupColumnRemove",
4756
+ "name": "kup-datatable-columnremove",
4757
+ "bubbles": true,
4758
+ "cancelable": false,
4759
+ "composed": true,
4760
+ "docs": {
4761
+ "tags": [],
4762
+ "text": "Event fired when columns are removed (set to hidden)."
4763
+ },
4764
+ "complexType": {
4765
+ "original": "KupDatatableColumnRemoveEventPayload",
4766
+ "resolved": "KupDatatableColumnRemoveEventPayload",
4767
+ "references": {
4768
+ "KupDatatableColumnRemoveEventPayload": {
4769
+ "location": "import",
4770
+ "path": "./kup-data-table-declarations"
4771
+ }
4760
4772
  }
4761
4773
  }
4762
- }
4763
- }]; }
4764
- static get methods() { return {
4765
- "closeColumnMenu": {
4766
- "complexType": {
4767
- "signature": "() => Promise<void>",
4768
- "parameters": [],
4769
- "references": {
4770
- "Promise": {
4771
- "location": "global"
4772
- }
4774
+ }];
4775
+ }
4776
+ static get methods() {
4777
+ return {
4778
+ "closeColumnMenu": {
4779
+ "complexType": {
4780
+ "signature": "() => Promise<void>",
4781
+ "parameters": [],
4782
+ "references": {
4783
+ "Promise": {
4784
+ "location": "global"
4785
+ }
4786
+ },
4787
+ "return": "Promise<void>"
4773
4788
  },
4774
- "return": "Promise<void>"
4789
+ "docs": {
4790
+ "text": "Closes any opened column menu.",
4791
+ "tags": []
4792
+ }
4775
4793
  },
4776
- "docs": {
4777
- "text": "Closes any opened column menu.",
4778
- "tags": []
4779
- }
4780
- },
4781
- "collapseAll": {
4782
- "complexType": {
4783
- "signature": "() => Promise<void>",
4784
- "parameters": [],
4785
- "references": {
4786
- "Promise": {
4787
- "location": "global"
4788
- }
4794
+ "collapseAll": {
4795
+ "complexType": {
4796
+ "signature": "() => Promise<void>",
4797
+ "parameters": [],
4798
+ "references": {
4799
+ "Promise": {
4800
+ "location": "global"
4801
+ }
4802
+ },
4803
+ "return": "Promise<void>"
4789
4804
  },
4790
- "return": "Promise<void>"
4805
+ "docs": {
4806
+ "text": "Collapses all groups.",
4807
+ "tags": []
4808
+ }
4791
4809
  },
4792
- "docs": {
4793
- "text": "Collapses all groups.",
4794
- "tags": []
4795
- }
4796
- },
4797
- "expandAll": {
4798
- "complexType": {
4799
- "signature": "() => Promise<void>",
4800
- "parameters": [],
4801
- "references": {
4802
- "Promise": {
4803
- "location": "global"
4804
- }
4810
+ "deleteRows": {
4811
+ "complexType": {
4812
+ "signature": "(ids?: string[]) => Promise<Array<KupDataTableRow>>",
4813
+ "parameters": [{
4814
+ "tags": [{
4815
+ "name": "param",
4816
+ "text": "ids - Array of row ids to delete."
4817
+ }],
4818
+ "text": "- Array of row ids to delete."
4819
+ }],
4820
+ "references": {
4821
+ "Promise": {
4822
+ "location": "global"
4823
+ },
4824
+ "KupDataTableRow": {
4825
+ "location": "import",
4826
+ "path": "./kup-data-table-declarations"
4827
+ },
4828
+ "Array": {
4829
+ "location": "global"
4830
+ }
4831
+ },
4832
+ "return": "Promise<KupDataTableRow[]>"
4805
4833
  },
4806
- "return": "Promise<void>"
4834
+ "docs": {
4835
+ "text": "This method will delete rows by id from the data table dataset.",
4836
+ "tags": [{
4837
+ "name": "param",
4838
+ "text": "ids - Array of row ids to delete."
4839
+ }, {
4840
+ "name": "returns",
4841
+ "text": "Deleted rows."
4842
+ }]
4843
+ }
4807
4844
  },
4808
- "docs": {
4809
- "text": "Expands all groups.",
4810
- "tags": []
4811
- }
4812
- },
4813
- "getProps": {
4814
- "complexType": {
4815
- "signature": "(descriptions?: boolean) => Promise<GenericObject>",
4816
- "parameters": [{
4817
- "tags": [{
4818
- "name": "param",
4819
- "text": "descriptions - When provided and true, the result will be the list of props with their description."
4820
- }],
4821
- "text": "- When provided and true, the result will be the list of props with their description."
4822
- }],
4823
- "references": {
4824
- "Promise": {
4825
- "location": "global"
4845
+ "expandAll": {
4846
+ "complexType": {
4847
+ "signature": "() => Promise<void>",
4848
+ "parameters": [],
4849
+ "references": {
4850
+ "Promise": {
4851
+ "location": "global"
4852
+ }
4826
4853
  },
4827
- "GenericObject": {
4828
- "location": "import",
4829
- "path": "../../types/GenericTypes"
4830
- }
4854
+ "return": "Promise<void>"
4831
4855
  },
4832
- "return": "Promise<GenericObject>"
4856
+ "docs": {
4857
+ "text": "Expands all groups.",
4858
+ "tags": []
4859
+ }
4833
4860
  },
4834
- "docs": {
4835
- "text": "Used to retrieve component's props values.",
4836
- "tags": [{
4837
- "name": "param",
4838
- "text": "descriptions - When provided and true, the result will be the list of props with their description."
4839
- }, {
4840
- "name": "returns",
4841
- "text": "List of props as object, each key will be a prop."
4842
- }]
4843
- }
4844
- },
4845
- "getSelectedRows": {
4846
- "complexType": {
4847
- "signature": "() => Promise<Array<KupDataTableRow>>",
4848
- "parameters": [],
4849
- "references": {
4850
- "Promise": {
4851
- "location": "global"
4852
- },
4853
- "KupDataTableRow": {
4854
- "location": "import",
4855
- "path": "./kup-data-table-declarations"
4861
+ "getProps": {
4862
+ "complexType": {
4863
+ "signature": "(descriptions?: boolean) => Promise<GenericObject>",
4864
+ "parameters": [{
4865
+ "tags": [{
4866
+ "name": "param",
4867
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
4868
+ }],
4869
+ "text": "- When provided and true, the result will be the list of props with their description."
4870
+ }],
4871
+ "references": {
4872
+ "Promise": {
4873
+ "location": "global"
4874
+ },
4875
+ "GenericObject": {
4876
+ "location": "import",
4877
+ "path": "../../types/GenericTypes"
4878
+ }
4856
4879
  },
4857
- "Array": {
4858
- "location": "global"
4859
- }
4880
+ "return": "Promise<GenericObject>"
4860
4881
  },
4861
- "return": "Promise<KupDataTableRow[]>"
4882
+ "docs": {
4883
+ "text": "Used to retrieve component's props values.",
4884
+ "tags": [{
4885
+ "name": "param",
4886
+ "text": "descriptions - When provided and true, the result will be the list of props with their description."
4887
+ }, {
4888
+ "name": "returns",
4889
+ "text": "List of props as object, each key will be a prop."
4890
+ }]
4891
+ }
4862
4892
  },
4863
- "docs": {
4864
- "text": "This method will get the selected rows of the component.",
4865
- "tags": []
4866
- }
4867
- },
4868
- "hideColumn": {
4869
- "complexType": {
4870
- "signature": "(column: KupDataColumn) => Promise<void>",
4871
- "parameters": [{
4872
- "tags": [{
4873
- "name": "param",
4874
- "text": "column - Column to hide."
4875
- }],
4876
- "text": "- Column to hide."
4877
- }],
4878
- "references": {
4879
- "Promise": {
4880
- "location": "global"
4893
+ "getSelectedRows": {
4894
+ "complexType": {
4895
+ "signature": "() => Promise<Array<KupDataTableRow>>",
4896
+ "parameters": [],
4897
+ "references": {
4898
+ "Promise": {
4899
+ "location": "global"
4900
+ },
4901
+ "KupDataTableRow": {
4902
+ "location": "import",
4903
+ "path": "./kup-data-table-declarations"
4904
+ },
4905
+ "Array": {
4906
+ "location": "global"
4907
+ }
4881
4908
  },
4882
- "KupDataColumn": {
4883
- "location": "import",
4884
- "path": "../../managers/kup-data/kup-data-declarations"
4885
- }
4909
+ "return": "Promise<KupDataTableRow[]>"
4886
4910
  },
4887
- "return": "Promise<void>"
4911
+ "docs": {
4912
+ "text": "This method will get the selected rows of the component.",
4913
+ "tags": []
4914
+ }
4888
4915
  },
4889
- "docs": {
4890
- "text": "Hides the given column.",
4891
- "tags": [{
4892
- "name": "param",
4893
- "text": "column - Column to hide."
4894
- }]
4895
- }
4896
- },
4897
- "newColumn": {
4898
- "complexType": {
4899
- "signature": "(type: KupDataNewColumnTypes, options: KupDataNewColumnOptions) => Promise<string | KupDataColumn>",
4900
- "parameters": [{
4901
- "tags": [{
4902
- "name": "param",
4903
- "text": "type - Type of the column creation."
4904
- }],
4905
- "text": "- Type of the column creation."
4906
- }, {
4907
- "tags": [{
4908
- "name": "param",
4909
- "text": "options - Options of the creation."
4910
- }],
4911
- "text": "- Options of the creation."
4912
- }],
4913
- "references": {
4914
- "Promise": {
4915
- "location": "global"
4916
- },
4917
- "KupDataColumn": {
4918
- "location": "import",
4919
- "path": "../../managers/kup-data/kup-data-declarations"
4920
- },
4921
- "KupDataNewColumnTypes": {
4922
- "location": "import",
4923
- "path": "../../managers/kup-data/kup-data-declarations"
4916
+ "hideColumn": {
4917
+ "complexType": {
4918
+ "signature": "(column: KupDataColumn) => Promise<void>",
4919
+ "parameters": [{
4920
+ "tags": [{
4921
+ "name": "param",
4922
+ "text": "column - Column to hide."
4923
+ }],
4924
+ "text": "- Column to hide."
4925
+ }],
4926
+ "references": {
4927
+ "Promise": {
4928
+ "location": "global"
4929
+ },
4930
+ "KupDataColumn": {
4931
+ "location": "import",
4932
+ "path": "../../managers/kup-data/kup-data-declarations"
4933
+ }
4924
4934
  },
4925
- "KupDataNewColumnOptions": {
4926
- "location": "import",
4927
- "path": "../../managers/kup-data/kup-data-declarations"
4928
- }
4935
+ "return": "Promise<void>"
4929
4936
  },
4930
- "return": "Promise<string | KupDataColumn>"
4937
+ "docs": {
4938
+ "text": "Hides the given column.",
4939
+ "tags": [{
4940
+ "name": "param",
4941
+ "text": "column - Column to hide."
4942
+ }]
4943
+ }
4931
4944
  },
4932
- "docs": {
4933
- "text": "Invokes the KupData API for column creation, then refreshes the component in case no errors were catched.",
4934
- "tags": [{
4935
- "name": "param",
4936
- "text": "type - Type of the column creation."
4937
- }, {
4938
- "name": "param",
4939
- "text": "options - Options of the creation."
4940
- }, {
4941
- "name": "returns",
4942
- "text": "Returns the new column created or a string containing the error message if something went wrong."
4943
- }]
4944
- }
4945
- },
4946
- "openColumnMenu": {
4947
- "complexType": {
4948
- "signature": "(column: string) => Promise<void>",
4949
- "parameters": [{
4950
- "tags": [{
4951
- "name": "param",
4952
- "text": "column - Name of the column."
4953
- }],
4954
- "text": "- Name of the column."
4955
- }],
4956
- "references": {
4957
- "Promise": {
4958
- "location": "global"
4959
- },
4960
- "CustomEvent": {
4961
- "location": "global"
4962
- },
4963
- "KupEventPayload": {
4964
- "location": "import",
4965
- "path": "../../types/GenericTypes"
4945
+ "newColumn": {
4946
+ "complexType": {
4947
+ "signature": "(type: KupDataNewColumnTypes, options: KupDataNewColumnOptions) => Promise<string | KupDataColumn>",
4948
+ "parameters": [{
4949
+ "tags": [{
4950
+ "name": "param",
4951
+ "text": "type - Type of the column creation."
4952
+ }],
4953
+ "text": "- Type of the column creation."
4954
+ }, {
4955
+ "tags": [{
4956
+ "name": "param",
4957
+ "text": "options - Options of the creation."
4958
+ }],
4959
+ "text": "- Options of the creation."
4960
+ }],
4961
+ "references": {
4962
+ "Promise": {
4963
+ "location": "global"
4964
+ },
4965
+ "KupDataColumn": {
4966
+ "location": "import",
4967
+ "path": "../../managers/kup-data/kup-data-declarations"
4968
+ },
4969
+ "KupDataNewColumnTypes": {
4970
+ "location": "import",
4971
+ "path": "../../managers/kup-data/kup-data-declarations"
4972
+ },
4973
+ "KupDataNewColumnOptions": {
4974
+ "location": "import",
4975
+ "path": "../../managers/kup-data/kup-data-declarations"
4976
+ }
4966
4977
  },
4967
- "KupCardEventPayload": {
4968
- "location": "import",
4969
- "path": "../kup-card/kup-card-declarations"
4970
- }
4978
+ "return": "Promise<string | KupDataColumn>"
4971
4979
  },
4972
- "return": "Promise<void>"
4980
+ "docs": {
4981
+ "text": "Invokes the KupData API for column creation, then refreshes the component in case no errors were catched.",
4982
+ "tags": [{
4983
+ "name": "param",
4984
+ "text": "type - Type of the column creation."
4985
+ }, {
4986
+ "name": "param",
4987
+ "text": "options - Options of the creation."
4988
+ }, {
4989
+ "name": "returns",
4990
+ "text": "Returns the new column created or a string containing the error message if something went wrong."
4991
+ }]
4992
+ }
4973
4993
  },
4974
- "docs": {
4975
- "text": "Opens the column menu of the given column.",
4976
- "tags": [{
4977
- "name": "param",
4978
- "text": "column - Name of the column."
4979
- }]
4980
- }
4981
- },
4982
- "refresh": {
4983
- "complexType": {
4984
- "signature": "() => Promise<void>",
4985
- "parameters": [],
4986
- "references": {
4987
- "Promise": {
4988
- "location": "global"
4989
- }
4994
+ "openColumnMenu": {
4995
+ "complexType": {
4996
+ "signature": "(column: string) => Promise<void>",
4997
+ "parameters": [{
4998
+ "tags": [{
4999
+ "name": "param",
5000
+ "text": "column - Name of the column."
5001
+ }],
5002
+ "text": "- Name of the column."
5003
+ }],
5004
+ "references": {
5005
+ "Promise": {
5006
+ "location": "global"
5007
+ },
5008
+ "CustomEvent": {
5009
+ "location": "global"
5010
+ },
5011
+ "KupEventPayload": {
5012
+ "location": "import",
5013
+ "path": "../../types/GenericTypes"
5014
+ },
5015
+ "KupCardEventPayload": {
5016
+ "location": "import",
5017
+ "path": "../kup-card/kup-card-declarations"
5018
+ }
5019
+ },
5020
+ "return": "Promise<void>"
4990
5021
  },
4991
- "return": "Promise<void>"
5022
+ "docs": {
5023
+ "text": "Opens the column menu of the given column.",
5024
+ "tags": [{
5025
+ "name": "param",
5026
+ "text": "column - Name of the column."
5027
+ }]
5028
+ }
4992
5029
  },
4993
- "docs": {
4994
- "text": "This method is used to trigger a new render of the component.",
4995
- "tags": []
4996
- }
4997
- },
4998
- "resizeCallback": {
4999
- "complexType": {
5000
- "signature": "() => Promise<void>",
5001
- "parameters": [],
5002
- "references": {
5003
- "Promise": {
5004
- "location": "global"
5005
- }
5030
+ "refresh": {
5031
+ "complexType": {
5032
+ "signature": "() => Promise<void>",
5033
+ "parameters": [],
5034
+ "references": {
5035
+ "Promise": {
5036
+ "location": "global"
5037
+ }
5038
+ },
5039
+ "return": "Promise<void>"
5006
5040
  },
5007
- "return": "Promise<void>"
5041
+ "docs": {
5042
+ "text": "This method is used to trigger a new render of the component.",
5043
+ "tags": []
5044
+ }
5008
5045
  },
5009
- "docs": {
5010
- "text": "This method is invoked by KupManager whenever the component changes size.",
5011
- "tags": []
5012
- }
5013
- },
5014
- "setFocus": {
5015
- "complexType": {
5016
- "signature": "(column: string, rowId: string) => Promise<void>",
5017
- "parameters": [{
5018
- "tags": [{
5019
- "name": "param",
5020
- "text": "column - Name of the column."
5021
- }],
5022
- "text": "- Name of the column."
5023
- }, {
5024
- "tags": [{
5025
- "name": "param",
5026
- "text": "rowId - Id of the row."
5027
- }],
5028
- "text": "- Id of the row."
5029
- }],
5030
- "references": {
5031
- "Promise": {
5032
- "location": "global"
5033
- }
5046
+ "resizeCallback": {
5047
+ "complexType": {
5048
+ "signature": "() => Promise<void>",
5049
+ "parameters": [],
5050
+ "references": {
5051
+ "Promise": {
5052
+ "location": "global"
5053
+ }
5054
+ },
5055
+ "return": "Promise<void>"
5034
5056
  },
5035
- "return": "Promise<void>"
5057
+ "docs": {
5058
+ "text": "This method is invoked by KupManager whenever the component changes size.",
5059
+ "tags": []
5060
+ }
5036
5061
  },
5037
- "docs": {
5038
- "text": "Sets the focus on an editable table cell.",
5039
- "tags": [{
5040
- "name": "param",
5041
- "text": "column - Name of the column."
5042
- }, {
5043
- "name": "param",
5044
- "text": "rowId - Id of the row."
5045
- }]
5046
- }
5047
- },
5048
- "setProps": {
5049
- "complexType": {
5050
- "signature": "(props: GenericObject) => Promise<void>",
5051
- "parameters": [{
5052
- "tags": [{
5053
- "name": "param",
5054
- "text": "props - Object containing props that will be set to the component."
5055
- }],
5056
- "text": "- Object containing props that will be set to the component."
5057
- }],
5058
- "references": {
5059
- "Promise": {
5060
- "location": "global"
5062
+ "setCellValue": {
5063
+ "complexType": {
5064
+ "signature": "(columnName: string, rowId: string, value: string) => Promise<void>",
5065
+ "parameters": [{
5066
+ "tags": [{
5067
+ "name": "param",
5068
+ "text": "columnName - Name of the column."
5069
+ }],
5070
+ "text": "- Name of the column."
5071
+ }, {
5072
+ "tags": [{
5073
+ "name": "param",
5074
+ "text": "rowId - Id of the row."
5075
+ }],
5076
+ "text": "- Id of the row."
5077
+ }, {
5078
+ "tags": [{
5079
+ "name": "param",
5080
+ "text": "value - Value to set."
5081
+ }],
5082
+ "text": "- Value to set."
5083
+ }],
5084
+ "references": {
5085
+ "Promise": {
5086
+ "location": "global"
5087
+ }
5061
5088
  },
5062
- "GenericObject": {
5063
- "location": "import",
5064
- "path": "../../types/GenericTypes"
5065
- }
5089
+ "return": "Promise<void>"
5066
5090
  },
5067
- "return": "Promise<void>"
5091
+ "docs": {
5092
+ "text": "Sets the cell value in a table cell.",
5093
+ "tags": [{
5094
+ "name": "param",
5095
+ "text": "columnName - Name of the column."
5096
+ }, {
5097
+ "name": "param",
5098
+ "text": "rowId - Id of the row."
5099
+ }, {
5100
+ "name": "param",
5101
+ "text": "value - Value to set."
5102
+ }]
5103
+ }
5068
5104
  },
5069
- "docs": {
5070
- "text": "Sets the props to the component.",
5071
- "tags": [{
5072
- "name": "param",
5073
- "text": "props - Object containing props that will be set to the component."
5074
- }]
5075
- }
5076
- },
5077
- "setSelectedRows": {
5078
- "complexType": {
5079
- "signature": "(rowsIdentifiers: string[] | number[], emitEvent?: boolean) => Promise<void>",
5080
- "parameters": [{
5081
- "tags": [{
5082
- "name": "param",
5083
- "text": "rowsIdentifiers - Array of ids (dataset) or indexes (rendered rows)."
5084
- }],
5085
- "text": "- Array of ids (dataset) or indexes (rendered rows)."
5086
- }, {
5087
- "tags": [{
5088
- "name": "param",
5089
- "text": "emitEvent - The event will always be emitted unless emitEvent is set to false."
5090
- }],
5091
- "text": "- The event will always be emitted unless emitEvent is set to false."
5092
- }],
5093
- "references": {
5094
- "Promise": {
5095
- "location": "global"
5096
- }
5105
+ "setFocus": {
5106
+ "complexType": {
5107
+ "signature": "(column: string, rowId: string) => Promise<void>",
5108
+ "parameters": [{
5109
+ "tags": [{
5110
+ "name": "param",
5111
+ "text": "column - Name of the column."
5112
+ }],
5113
+ "text": "- Name of the column."
5114
+ }, {
5115
+ "tags": [{
5116
+ "name": "param",
5117
+ "text": "rowId - Id of the row."
5118
+ }],
5119
+ "text": "- Id of the row."
5120
+ }],
5121
+ "references": {
5122
+ "Promise": {
5123
+ "location": "global"
5124
+ }
5125
+ },
5126
+ "return": "Promise<void>"
5097
5127
  },
5098
- "return": "Promise<void>"
5128
+ "docs": {
5129
+ "text": "Sets the focus on an editable table cell.",
5130
+ "tags": [{
5131
+ "name": "param",
5132
+ "text": "column - Name of the column."
5133
+ }, {
5134
+ "name": "param",
5135
+ "text": "rowId - Id of the row."
5136
+ }]
5137
+ }
5099
5138
  },
5100
- "docs": {
5101
- "text": "This method will set the selected rows of the component.",
5102
- "tags": [{
5103
- "name": "param",
5104
- "text": "rowsIdentifiers - Array of ids (dataset) or indexes (rendered rows)."
5105
- }, {
5106
- "name": "param",
5107
- "text": "emitEvent - The event will always be emitted unless emitEvent is set to false."
5108
- }]
5109
- }
5110
- },
5111
- "getInternalState": {
5112
- "complexType": {
5113
- "signature": "() => Promise<{ groups: GroupObject[]; filters: GenericFilter; data: KupDataTableDataset; }>",
5114
- "parameters": [],
5115
- "references": {
5116
- "Promise": {
5117
- "location": "global"
5118
- },
5119
- "GroupObject": {
5120
- "location": "import",
5121
- "path": "./kup-data-table-declarations"
5139
+ "setProps": {
5140
+ "complexType": {
5141
+ "signature": "(props: GenericObject) => Promise<void>",
5142
+ "parameters": [{
5143
+ "tags": [{
5144
+ "name": "param",
5145
+ "text": "props - Object containing props that will be set to the component."
5146
+ }],
5147
+ "text": "- Object containing props that will be set to the component."
5148
+ }],
5149
+ "references": {
5150
+ "Promise": {
5151
+ "location": "global"
5152
+ },
5153
+ "GenericObject": {
5154
+ "location": "import",
5155
+ "path": "../../types/GenericTypes"
5156
+ }
5122
5157
  },
5123
- "GenericFilter": {
5124
- "location": "import",
5125
- "path": "../../utils/filters/filters-declarations"
5158
+ "return": "Promise<void>"
5159
+ },
5160
+ "docs": {
5161
+ "text": "Sets the props to the component.",
5162
+ "tags": [{
5163
+ "name": "param",
5164
+ "text": "props - Object containing props that will be set to the component."
5165
+ }]
5166
+ }
5167
+ },
5168
+ "setSelectedRows": {
5169
+ "complexType": {
5170
+ "signature": "(rowsIdentifiers: string[] | number[], emitEvent?: boolean) => Promise<void>",
5171
+ "parameters": [{
5172
+ "tags": [{
5173
+ "name": "param",
5174
+ "text": "rowsIdentifiers - Array of ids (dataset) or indexes (rendered rows)."
5175
+ }],
5176
+ "text": "- Array of ids (dataset) or indexes (rendered rows)."
5177
+ }, {
5178
+ "tags": [{
5179
+ "name": "param",
5180
+ "text": "emitEvent - The event will always be emitted unless emitEvent is set to false."
5181
+ }],
5182
+ "text": "- The event will always be emitted unless emitEvent is set to false."
5183
+ }],
5184
+ "references": {
5185
+ "Promise": {
5186
+ "location": "global"
5187
+ }
5126
5188
  },
5127
- "KupDataTableDataset": {
5128
- "location": "import",
5129
- "path": "./kup-data-table-declarations"
5130
- }
5189
+ "return": "Promise<void>"
5131
5190
  },
5132
- "return": "Promise<{ groups: GroupObject[]; filters: GenericFilter; data: KupDataTableDataset; }>"
5191
+ "docs": {
5192
+ "text": "This method will set the selected rows of the component.",
5193
+ "tags": [{
5194
+ "name": "param",
5195
+ "text": "rowsIdentifiers - Array of ids (dataset) or indexes (rendered rows)."
5196
+ }, {
5197
+ "name": "param",
5198
+ "text": "emitEvent - The event will always be emitted unless emitEvent is set to false."
5199
+ }]
5200
+ }
5133
5201
  },
5134
- "docs": {
5135
- "text": "",
5136
- "tags": []
5137
- }
5138
- },
5139
- "defaultSortingFunction": {
5140
- "complexType": {
5141
- "signature": "(columns: KupDataColumn[], receivingColumnIndex: number, sortedColumnIndex: number, useNewObject?: boolean) => Promise<KupDataColumn[]>",
5142
- "parameters": [{
5143
- "tags": [],
5144
- "text": ""
5145
- }, {
5146
- "tags": [],
5147
- "text": ""
5148
- }, {
5149
- "tags": [],
5150
- "text": ""
5151
- }, {
5152
- "tags": [],
5153
- "text": ""
5154
- }],
5155
- "references": {
5156
- "Promise": {
5157
- "location": "global"
5202
+ "getInternalState": {
5203
+ "complexType": {
5204
+ "signature": "() => Promise<{ groups: GroupObject[]; filters: GenericFilter; data: KupDataTableDataset; }>",
5205
+ "parameters": [],
5206
+ "references": {
5207
+ "Promise": {
5208
+ "location": "global"
5209
+ },
5210
+ "GroupObject": {
5211
+ "location": "import",
5212
+ "path": "./kup-data-table-declarations"
5213
+ },
5214
+ "GenericFilter": {
5215
+ "location": "import",
5216
+ "path": "../../utils/filters/filters-declarations"
5217
+ },
5218
+ "KupDataTableDataset": {
5219
+ "location": "import",
5220
+ "path": "./kup-data-table-declarations"
5221
+ }
5158
5222
  },
5159
- "KupDataColumn": {
5160
- "location": "import",
5161
- "path": "../../managers/kup-data/kup-data-declarations"
5162
- }
5223
+ "return": "Promise<{ groups: GroupObject[]; filters: GenericFilter; data: KupDataTableDataset; }>"
5163
5224
  },
5164
- "return": "Promise<KupDataColumn[]>"
5225
+ "docs": {
5226
+ "text": "",
5227
+ "tags": []
5228
+ }
5165
5229
  },
5166
- "docs": {
5167
- "text": "",
5168
- "tags": []
5230
+ "defaultSortingFunction": {
5231
+ "complexType": {
5232
+ "signature": "(columns: KupDataColumn[], receivingColumnIndex: number, sortedColumnIndex: number, useNewObject?: boolean) => Promise<KupDataColumn[]>",
5233
+ "parameters": [{
5234
+ "tags": [],
5235
+ "text": ""
5236
+ }, {
5237
+ "tags": [],
5238
+ "text": ""
5239
+ }, {
5240
+ "tags": [],
5241
+ "text": ""
5242
+ }, {
5243
+ "tags": [],
5244
+ "text": ""
5245
+ }],
5246
+ "references": {
5247
+ "Promise": {
5248
+ "location": "global"
5249
+ },
5250
+ "KupDataColumn": {
5251
+ "location": "import",
5252
+ "path": "../../managers/kup-data/kup-data-declarations"
5253
+ }
5254
+ },
5255
+ "return": "Promise<KupDataColumn[]>"
5256
+ },
5257
+ "docs": {
5258
+ "text": "",
5259
+ "tags": []
5260
+ }
5169
5261
  }
5170
- }
5171
- }; }
5262
+ };
5263
+ }
5172
5264
  static get elementRef() { return "rootElement"; }
5173
- static get watchers() { return [{
5174
- "propName": "rowsPerPage",
5175
- "methodName": "rowsPerPageHandler"
5176
- }, {
5177
- "propName": "expandGroups",
5178
- "methodName": "expandGroupsHandler"
5179
- }, {
5180
- "propName": "filters",
5181
- "methodName": "filtersChanged"
5182
- }, {
5183
- "propName": "globalFilterValue",
5184
- "methodName": "filtersChanged"
5185
- }, {
5186
- "propName": "sort",
5187
- "methodName": "recalculateRows"
5188
- }, {
5189
- "propName": "rowsPerPage",
5190
- "methodName": "recalculateRows"
5191
- }, {
5192
- "propName": "totals",
5193
- "methodName": "recalculateRows"
5194
- }, {
5195
- "propName": "currentPage",
5196
- "methodName": "recalculateRows"
5197
- }, {
5198
- "propName": "currentRowsPerPage",
5199
- "methodName": "recalculateRows"
5200
- }, {
5201
- "propName": "data",
5202
- "methodName": "identifyAndInitRows"
5203
- }, {
5204
- "propName": "groups",
5205
- "methodName": "recalculateRowsAndUndoSelections"
5206
- }, {
5207
- "propName": "fixedColumns",
5208
- "methodName": "controlFixedRowsColumns"
5209
- }, {
5210
- "propName": "fixedRows",
5211
- "methodName": "controlFixedRowsColumns"
5212
- }, {
5213
- "propName": "transpose",
5214
- "methodName": "recalculateData"
5215
- }]; }
5265
+ static get watchers() {
5266
+ return [{
5267
+ "propName": "rowsPerPage",
5268
+ "methodName": "rowsPerPageHandler"
5269
+ }, {
5270
+ "propName": "expandGroups",
5271
+ "methodName": "expandGroupsHandler"
5272
+ }, {
5273
+ "propName": "filters",
5274
+ "methodName": "filtersChanged"
5275
+ }, {
5276
+ "propName": "globalFilterValue",
5277
+ "methodName": "filtersChanged"
5278
+ }, {
5279
+ "propName": "sort",
5280
+ "methodName": "recalculateRows"
5281
+ }, {
5282
+ "propName": "rowsPerPage",
5283
+ "methodName": "recalculateRows"
5284
+ }, {
5285
+ "propName": "totals",
5286
+ "methodName": "recalculateRows"
5287
+ }, {
5288
+ "propName": "currentPage",
5289
+ "methodName": "recalculateRows"
5290
+ }, {
5291
+ "propName": "currentRowsPerPage",
5292
+ "methodName": "recalculateRows"
5293
+ }, {
5294
+ "propName": "data",
5295
+ "methodName": "identifyAndInitRows"
5296
+ }, {
5297
+ "propName": "groups",
5298
+ "methodName": "recalculateRowsAndUndoSelections"
5299
+ }, {
5300
+ "propName": "fixedColumns",
5301
+ "methodName": "controlFixedRowsColumns"
5302
+ }, {
5303
+ "propName": "fixedRows",
5304
+ "methodName": "controlFixedRowsColumns"
5305
+ }, {
5306
+ "propName": "transpose",
5307
+ "methodName": "recalculateData"
5308
+ }];
5309
+ }
5216
5310
  }