@eui/components 19.1.2-snapshot-1741681025211 → 19.1.2-snapshot-1741955106555

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 (105) hide show
  1. package/docs/components/EuiAutocompleteComponent.html +377 -0
  2. package/docs/components/EuiAutocompleteOptionComponent.html +50 -0
  3. package/docs/components/EuiAutocompleteOptionGroupComponent.html +38 -0
  4. package/docs/components/EuiBlockDocumentComponent.html +64 -0
  5. package/docs/components/EuiDropdownComponent.html +25 -1
  6. package/docs/components/EuiProgressBarComponent.html +115 -109
  7. package/docs/components/EuiTableV2Component.html +228 -63
  8. package/docs/components/EuiTableV2FilterComponent.html +39 -0
  9. package/docs/components/EuiTableV2SelectableHeaderComponent.html +33 -0
  10. package/docs/components/EuiTableV2SelectableRowComponent.html +45 -0
  11. package/docs/components/EuiTableV2SortableColComponent.html +47 -0
  12. package/docs/dependencies.html +2 -2
  13. package/docs/directives/EuiDropdownContentDirective.html +69 -0
  14. package/docs/directives/EuiTableV2ExpandableRowDirective.html +7 -0
  15. package/docs/directives/EuiTableV2StickyColDirective.html +7 -0
  16. package/docs/injectables/EuiTableV2SelectableRowService.html +106 -0
  17. package/docs/injectables/EuiTableV2SortService.html +47 -0
  18. package/docs/js/menu-wc.js +33 -16
  19. package/docs/js/menu-wc_es5.js +1 -1
  20. package/docs/js/search/search_index.js +2 -2
  21. package/docs/modules/EuiAutocompleteModule.html +11 -0
  22. package/docs/modules/EuiBlockDocumentModule.html +22 -4
  23. package/docs/modules/EuiProgressBarModule.html +2 -14
  24. package/docs/modules/EuiTableV2Module.html +11 -0
  25. package/docs/pipes/EuiTableV2HighlightPipe.html +26 -0
  26. package/eui-autocomplete/eui-autocomplete-option/eui-autocomplete-option.component.d.ts +29 -0
  27. package/eui-autocomplete/eui-autocomplete-option/eui-autocomplete-option.component.d.ts.map +1 -1
  28. package/eui-autocomplete/eui-autocomplete-option-group/eui-autocomplete-option-group.component.d.ts +17 -0
  29. package/eui-autocomplete/eui-autocomplete-option-group/eui-autocomplete-option-group.component.d.ts.map +1 -1
  30. package/eui-autocomplete/eui-autocomplete.component.d.ts +311 -1
  31. package/eui-autocomplete/eui-autocomplete.component.d.ts.map +1 -1
  32. package/eui-autocomplete/eui-autocomplete.module.d.ts +12 -0
  33. package/eui-autocomplete/eui-autocomplete.module.d.ts.map +1 -1
  34. package/eui-autocomplete/validators/force-selection-from-data.validator.d.ts +1 -1
  35. package/eui-block-document/eui-block-document.component.d.ts +41 -1
  36. package/eui-block-document/eui-block-document.component.d.ts.map +1 -1
  37. package/eui-block-document/eui-block-document.module.d.ts +12 -2
  38. package/eui-block-document/eui-block-document.module.d.ts.map +1 -1
  39. package/eui-date-range-selector/eui-date-range-selector.component.d.ts +10 -1
  40. package/eui-date-range-selector/eui-date-range-selector.component.d.ts.map +1 -1
  41. package/eui-datepicker/eui-datepicker.component.d.ts +10 -1
  42. package/eui-datepicker/eui-datepicker.component.d.ts.map +1 -1
  43. package/eui-dropdown/directives/eui-dropdown-content.directive.d.ts +1 -0
  44. package/eui-dropdown/directives/eui-dropdown-content.directive.d.ts.map +1 -1
  45. package/eui-dropdown/eui-dropdown.component.d.ts +2 -1
  46. package/eui-dropdown/eui-dropdown.component.d.ts.map +1 -1
  47. package/eui-progress-bar/eui-progress-bar.component.d.ts +16 -9
  48. package/eui-progress-bar/eui-progress-bar.component.d.ts.map +1 -1
  49. package/eui-progress-bar/eui-progress-bar.module.d.ts +5 -17
  50. package/eui-progress-bar/eui-progress-bar.module.d.ts.map +1 -1
  51. package/eui-table-v2/directives/eui-table-v2-expandable-row.directive.d.ts +4 -0
  52. package/eui-table-v2/directives/eui-table-v2-expandable-row.directive.d.ts.map +1 -1
  53. package/eui-table-v2/directives/eui-table-v2-sticky-col.directive.d.ts +4 -0
  54. package/eui-table-v2/directives/eui-table-v2-sticky-col.directive.d.ts.map +1 -1
  55. package/eui-table-v2/eui-table-v2.component.d.ts +273 -1
  56. package/eui-table-v2/eui-table-v2.component.d.ts.map +1 -1
  57. package/eui-table-v2/eui-table-v2.module.d.ts +12 -0
  58. package/eui-table-v2/eui-table-v2.module.d.ts.map +1 -1
  59. package/eui-table-v2/filter/eui-table-v2-filter.component.d.ts +21 -0
  60. package/eui-table-v2/filter/eui-table-v2-filter.component.d.ts.map +1 -1
  61. package/eui-table-v2/pipes/eui-table-v2-highlight.pipe.d.ts +19 -0
  62. package/eui-table-v2/pipes/eui-table-v2-highlight.pipe.d.ts.map +1 -1
  63. package/eui-table-v2/selectable-header/eui-table-v2-selectable-header.component.d.ts +19 -0
  64. package/eui-table-v2/selectable-header/eui-table-v2-selectable-header.component.d.ts.map +1 -1
  65. package/eui-table-v2/selectable-row/eui-table-v2-selectable-row.component.d.ts +28 -0
  66. package/eui-table-v2/selectable-row/eui-table-v2-selectable-row.component.d.ts.map +1 -1
  67. package/eui-table-v2/services/eui-table-v2-selectable-row.service.d.ts +71 -0
  68. package/eui-table-v2/services/eui-table-v2-selectable-row.service.d.ts.map +1 -1
  69. package/eui-table-v2/services/eui-table-v2-sort.service.d.ts +22 -0
  70. package/eui-table-v2/services/eui-table-v2-sort.service.d.ts.map +1 -1
  71. package/eui-table-v2/sortable-col/eui-table-v2-sortable-col.component.d.ts +32 -0
  72. package/eui-table-v2/sortable-col/eui-table-v2-sortable-col.component.d.ts.map +1 -1
  73. package/fesm2022/eui-components-eui-autocomplete.mjs +354 -4
  74. package/fesm2022/eui-components-eui-autocomplete.mjs.map +1 -1
  75. package/fesm2022/eui-components-eui-block-document.mjs +56 -7
  76. package/fesm2022/eui-components-eui-block-document.mjs.map +1 -1
  77. package/fesm2022/eui-components-eui-card.mjs +1 -1
  78. package/fesm2022/eui-components-eui-card.mjs.map +1 -1
  79. package/fesm2022/eui-components-eui-date-range-selector.mjs +7 -3
  80. package/fesm2022/eui-components-eui-date-range-selector.mjs.map +1 -1
  81. package/fesm2022/eui-components-eui-datepicker.mjs +7 -3
  82. package/fesm2022/eui-components-eui-datepicker.mjs.map +1 -1
  83. package/fesm2022/eui-components-eui-dropdown.mjs +12 -5
  84. package/fesm2022/eui-components-eui-dropdown.mjs.map +1 -1
  85. package/fesm2022/eui-components-eui-input-group.mjs +2 -2
  86. package/fesm2022/eui-components-eui-input-group.mjs.map +1 -1
  87. package/fesm2022/eui-components-eui-language-selector.mjs +1 -1
  88. package/fesm2022/eui-components-eui-language-selector.mjs.map +1 -1
  89. package/fesm2022/eui-components-eui-navbar.mjs +1 -1
  90. package/fesm2022/eui-components-eui-navbar.mjs.map +1 -1
  91. package/fesm2022/eui-components-eui-popover.mjs +2 -2
  92. package/fesm2022/eui-components-eui-popover.mjs.map +1 -1
  93. package/fesm2022/eui-components-eui-progress-bar.mjs +37 -31
  94. package/fesm2022/eui-components-eui-progress-bar.mjs.map +1 -1
  95. package/fesm2022/eui-components-eui-table-v2.mjs +482 -5
  96. package/fesm2022/eui-components-eui-table-v2.mjs.map +1 -1
  97. package/fesm2022/eui-components-eui-table.mjs +1 -1
  98. package/fesm2022/eui-components-eui-table.mjs.map +1 -1
  99. package/fesm2022/eui-components-eui-tree.mjs +2 -2
  100. package/fesm2022/eui-components-eui-tree.mjs.map +1 -1
  101. package/fesm2022/eui-components-eui-user-profile.mjs +1 -1
  102. package/fesm2022/eui-components-eui-user-profile.mjs.map +1 -1
  103. package/fesm2022/eui-components-layout.mjs +1 -1
  104. package/fesm2022/eui-components-layout.mjs.map +1 -1
  105. package/package.json +7 -7
@@ -13,6 +13,63 @@ export declare enum ScrollinDirection {
13
13
  UP = "UP",
14
14
  DOWN = "DOWN"
15
15
  }
16
+ /**
17
+ * @description
18
+ * The `eui-table-v2` component has been built to offer various requested features including fast performance and excellent level of control over tabular presentation of data.
19
+ *
20
+ * The eui-table is quite simple of usage and requires :
21
+ *
22
+ * - rows : the data value input as an array of objects, usually fetched from a service (data payload),
23
+ * - view : this is the template for the presentation with its various options such as the search filter, the paginator, sortable columns, etc.
24
+ *
25
+ * @example
26
+ * ```
27
+ * <table class="eui-table-default">
28
+ * <thead>
29
+ * <tr>
30
+ * <th>Country</th>
31
+ * <th>Year</th>
32
+ * <th>ISO</th>
33
+ * <th>Population</th>
34
+ * <th>Capital city</th>
35
+ * </tr>
36
+ * </thead>
37
+ * <tbody>
38
+ * \@for (row of data; track row) {
39
+ * <tr>
40
+ * <td>{{ row.country }}</td>
41
+ * <td>{{ row.year }}</td>
42
+ * <td>{{ row.iso }}</td>
43
+ * <td>{{ row.population | number }}</td>
44
+ * <td>{{ row.capital }}</td>
45
+ * </tr>
46
+ * }
47
+ * </tbody>
48
+ * <tfoot>
49
+ * <tr>
50
+ * <td class="eui-u-text-center" colspan="5">Footer 1</td>
51
+ * </tr>
52
+ * </tfoot>
53
+ * </table>
54
+ * ```
55
+ *
56
+ * ```
57
+ * public data: Country[] = [
58
+ * { id: 1, country: 'Austria', year: 1995, iso: 'AT', population: 8504850, capital: 'Vienna' },
59
+ * { id: 2, country: 'Belgium', year: 1958, iso: 'BE', population: 11198638, capital: 'Brussels' },
60
+ * { id: 3, country: 'Bulgaria', year: 2007, iso: 'BG', population: 7364570, capital: 'Sofia' },
61
+ * { id: 4, country: 'Croatia', year: 2013, iso: 'HR', population: 4284889, capital: 'Zagreb' },
62
+ * { id: 5, country: 'Cyprus', year: 2004, iso: 'CY', population: 1117000, capital: 'Nicosia' },
63
+ * { id: 6, country: 'Czechia', year: 2004, iso: 'CZ', population: 10513209, capital: 'Prague' },
64
+ * { id: 7, country: 'Denmark', year: 1973, iso: 'DK', population: 5655750, capital: 'Copenhagen' },
65
+ * { id: 8, country: 'Estonia', year: 2004, iso: 'EE', population: 1315819, capital: 'Tallinn' },
66
+ * { id: 9, country: 'Finland', year: 1995, iso: 'FI', population: 5470820, capital: 'Helsinki' },
67
+ * { id: 10, country: 'France', year: 1958, iso: 'FR', population: 67210000, capital: 'Paris' },
68
+ * ];
69
+ * ```
70
+ *
71
+ * See {@link https://eui.ecdevops.eu/eui-showcase-ux-components-19.x/style-guide/components/eui-table-v2}.
72
+ */
16
73
  export declare class EuiTableV2Component<DATA = unknown> implements AfterContentInit, AfterViewInit, OnDestroy, OnInit, OnChanges {
17
74
  private elementRef;
18
75
  private cd;
@@ -20,25 +77,158 @@ export declare class EuiTableV2Component<DATA = unknown> implements AfterContent
20
77
  private euiTableV2SortService;
21
78
  private baseStatesDirective;
22
79
  private renderer;
80
+ /**
81
+ * @description
82
+ * Computes and returns the CSS classes for the component based on its current state.
83
+ *
84
+ * @returns {string} Space-separated string of CSS class names
85
+ */
23
86
  get cssClasses(): string;
87
+ /**
88
+ * Data to display in the table.
89
+ *
90
+ * @type {DATA[]} Generic type of data
91
+ */
24
92
  data: DATA[];
93
+ /**
94
+ * Unicity criteria of the data.
95
+ *
96
+ * @default 'id'
97
+ */
25
98
  propId: string;
99
+ /**
100
+ * In combination with `isVirtualScroll`. Row height use by virtual scroll calculation.
101
+ *
102
+ * @default 41
103
+ */
26
104
  itemSize: number;
105
+ /**
106
+ * `eui-paginator` reference passed to the table.
107
+ *
108
+ * @example
109
+ * <table euiTableV2 [paginator]="paginator">
110
+ * ...
111
+ * </table>
112
+ * <eui-paginator #paginator></eui-paginator>
113
+ *
114
+ * @type {EuiPaginatorComponent}
115
+ */
27
116
  paginator: EuiPaginatorComponent;
117
+ /**
118
+ * `eui-table-v2-filter` reference passed to the table.
119
+ *
120
+ * @example
121
+ * <eui-table-v2-filter #filter></eui-table-v2-filter>
122
+ * <table euiTableV2 [filter]="filter">
123
+ * ...
124
+ * </table>
125
+ *
126
+ * @type {EuiTableV2FilterComponent}
127
+ */
28
128
  filter: EuiTableV2FilterComponent;
129
+ /**
130
+ * In combination with `isDataSelectable`. Rows to be selected by default.
131
+ *
132
+ * @type {DATA[]} Set of data to select.
133
+ */
29
134
  preselectedRows: DATA[];
135
+ /**
136
+ * Wheter the table uses virtual scroll to display data.
137
+ *
138
+ * `eui-table-v2` selector needs to be used in order to make virtual scroll working properly.
139
+ *
140
+ * @example
141
+ * <eui-table-v2 isVirtualScroll>
142
+ * ...
143
+ * </eui-table-v2>
144
+ *
145
+ * @default false
146
+ */
30
147
  isVirtualScroll: boolean;
148
+ /**
149
+ * In combination with `isVirtualScroll`. Wheter the table caches the data when scroll.
150
+ * Means that if a scroll level has already loads data, the `scrollChange` event won't be emitted.
151
+ *
152
+ * @default false
153
+ */
31
154
  isVirtualScrollCache: boolean;
155
+ /**
156
+ * Wheter the table header is sticky.
157
+ * In order to use eui-table sticky feature and control the scrolling overflow,
158
+ * we recommend to wrap the table with the provided eui-table-v2__scrollable-wrapper class and set your custom table width and/or height.
159
+ *
160
+ * @default false
161
+ */
32
162
  hasStickyHeader: boolean;
163
+ /**
164
+ * Wheter the table footer is sticky.
165
+ * In order to use eui-table sticky feature and control the scrolling overflow,
166
+ * we recommend to wrap the table with the provided eui-table-v2__scrollable-wrapper class and set your custom table width and/or height.
167
+ *
168
+ * @default false
169
+ */
33
170
  hasStickyFooter: boolean;
171
+ /**
172
+ * Wheter the table col is sticky.
173
+ * In order to use eui-table sticky feature and control the scrolling overflow,
174
+ * we recommend to wrap the table with the provided eui-table-v2__scrollable-wrapper class and set your custom table width and/or height.
175
+ *
176
+ * Only first or latest columns can be sticky.
177
+ *
178
+ * @default false
179
+ */
34
180
  hasStickyCols: boolean;
181
+ /**
182
+ * Wheter the table is reponsive.
183
+ *
184
+ * @default false
185
+ */
35
186
  isTableResponsive: boolean;
187
+ /**
188
+ * Wheter the table uses async data.
189
+ * In this configuration, pagination, filtering and sorting are managed by the backend.
190
+ *
191
+ * When data are async, paginator and filter must not be bound to the eui-table component like in other sample.
192
+ *
193
+ * @default false
194
+ */
36
195
  isAsync: boolean;
196
+ /**
197
+ * In combination with `isVirtualScroll`. Total length of data that are displayed in the table with virtual scroll.
198
+ *
199
+ * @default 0
200
+ */
37
201
  virtualScrollAsyncItemsLength: number;
202
+ /**
203
+ * In combination with `isVirtualScroll`. Nb of data items to load in the table.
204
+ *
205
+ * @default 50
206
+ */
38
207
  virtualScrollNbRows: number;
208
+ /**
209
+ * Wheter the cols can be reordered.
210
+ *
211
+ * @default false
212
+ */
39
213
  isColsOrderable: boolean;
214
+ /**
215
+ * Wheter a loading spinner is displayed in the table.
216
+ *
217
+ * @default false
218
+ */
40
219
  isLoading: boolean;
220
+ /**
221
+ * Wheter the 'select all' checkbox in the header will select ONLY items in the current page.
222
+ *
223
+ * If `false`, all items across the pages will be selected.
224
+ *
225
+ * @default true
226
+ */
41
227
  isSelectOnlyVisibleRows: boolean;
228
+ /**
229
+ * @deprecated
230
+ * Has been deprecated to align with Design System
231
+ */
42
232
  isTableBordered: boolean;
43
233
  protected headerTemplate: TemplateRef<HTMLElement>;
44
234
  protected bodyTemplate: TemplateRef<{
@@ -57,8 +247,17 @@ export declare class EuiTableV2Component<DATA = unknown> implements AfterContent
57
247
  theadRef: ElementRef<HTMLElement>;
58
248
  tbodyRef: ElementRef<HTMLElement>;
59
249
  tfootRef: ElementRef<HTMLElement>;
250
+ /**
251
+ * In combination with `isVirtualScroll`. Event emitted when a scroll is done.
252
+ */
60
253
  scrollChange: EventEmitter<any>;
254
+ /**
255
+ * In combination with `isDataSelectable` on a row. Event emitted when the selection changes with an array of data.
256
+ */
61
257
  rowsSelect: EventEmitter<DATA[]>;
258
+ /**
259
+ * In combination with `isSortable` on the cols. Event emitted when the sort changes with the property displayed in the col and the order as `ASC` or `DESC`.
260
+ */
62
261
  sortChange: EventEmitter<Sort[]>;
63
262
  private destroy$;
64
263
  private virtualScrollLastMultiple;
@@ -76,7 +275,6 @@ export declare class EuiTableV2Component<DATA = unknown> implements AfterContent
76
275
  ngOnChanges(c: SimpleChanges): void;
77
276
  ngOnInit(): void;
78
277
  ngAfterContentInit(): void;
79
- test(index: any): void;
80
278
  ngAfterViewInit(): void;
81
279
  ngOnDestroy(): void;
82
280
  /**
@@ -105,21 +303,95 @@ export declare class EuiTableV2Component<DATA = unknown> implements AfterContent
105
303
  * @param sorts An array of SortOrder. See {@link SortOrder}
106
304
  */
107
305
  setSort(sorts: Sort[]): void;
306
+ /**
307
+ * Filters the table's data based on a string declared in `EuiTableV2FilterComponent`
308
+ *
309
+ * @param filter String to filter the data
310
+ * @param r Array of data to filter
311
+ * @returns The set of data matching the filter
312
+ */
108
313
  filterData(filter: string, r: DATA[]): DATA[];
314
+ /**
315
+ * Get the top position in px of the sticky header.
316
+ */
109
317
  protected get stickyHeaderTopPosition(): string;
318
+ /**
319
+ * Get the bottom position in px of the sticky footer.
320
+ */
110
321
  protected get stickyFooterBottomPosition(): string;
322
+ /**
323
+ * Get the width in px of the viewport in which the table is.
324
+ */
111
325
  protected get cdkVirtualScrollViewportWidth(): string;
326
+ /**
327
+ * Get the width, as a number, of the host element.
328
+ */
112
329
  protected get hostWidth(): number;
113
330
  protected trackByFn(index: number): number;
331
+ /**
332
+ * Handles table features such as sorting, filtering, and pagination before rendering.
333
+ */
114
334
  private tableFeaturesHandler;
335
+ /**
336
+ * Sorts the data based on the sort, property and order, criterias.
337
+ *
338
+ * @param sortCriterias Array of sort criterias containing the property on which the sort will be performed and the order (`ASC` or `DESC`).
339
+ * @param r Array of data to sort
340
+ * @returns A sorted array
341
+ */
115
342
  private sortData;
343
+ /**
344
+ * Slices the data array based on the pagination event.
345
+ *
346
+ * @param pagination Object containing the page, the page size and the total number of pages.
347
+ * @param r Array of data to paginate.
348
+ * @returns The sliced array to render.
349
+ */
116
350
  private paginateRows;
351
+ /**
352
+ * Round down the index to the nearest multiple of the number of rows.
353
+ *
354
+ * @param index Index of the current scroll level.
355
+ * @param nbRows Number of rows to display.
356
+ * @returns A rounded number.
357
+ */
117
358
  private roundDown;
359
+ /**
360
+ * Checks if in the range of data to render some of them had already been loaded or not.
361
+ *
362
+ * @param startIndex Start index of the range to check
363
+ * @param limit Number of item to check after the start index.
364
+ * @param dataRendered Array of data to check
365
+ * @returns The index of the first undefined item in the range or `-1` if not found.
366
+ */
118
367
  private hasUndefinedInRange;
368
+ /**
369
+ * Calcultates the position of columns that are sticky.
370
+ */
119
371
  private stickyFeatureHandler;
372
+ /**
373
+ * Handles the selection of rows.
374
+ */
120
375
  private selectRowsFeatureHandler;
376
+ /**
377
+ * Handles the sorting of columns.
378
+ */
121
379
  private sortFeatureHandler;
380
+ /**
381
+ * Get the properties of the object matching the filter string.
382
+ *
383
+ * @param row Row to extract the property from.
384
+ * @param filter String to search in the properties.
385
+ * @returns An array of properties matching the filter.
386
+ */
122
387
  private getProps;
388
+ /**
389
+ * Get a property of an object based on the path.
390
+ *
391
+ * @param obj Row to extract the property from.
392
+ * @param prop Path of the property to extract.
393
+ * @returns The value of the property
394
+ */
123
395
  private getObjProp;
124
396
  static ɵfac: i0.ɵɵFactoryDeclaration<EuiTableV2Component<any>, never>;
125
397
  static ɵcmp: i0.ɵɵComponentDeclaration<EuiTableV2Component<any>, "eui-table-v2, table[euiTableV2]", never, { "data": { "alias": "data"; "required": false; }; "propId": { "alias": "propId"; "required": false; }; "itemSize": { "alias": "itemSize"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "preselectedRows": { "alias": "preselectedRows"; "required": false; }; "isVirtualScroll": { "alias": "isVirtualScroll"; "required": false; }; "isVirtualScrollCache": { "alias": "isVirtualScrollCache"; "required": false; }; "hasStickyHeader": { "alias": "hasStickyHeader"; "required": false; }; "hasStickyFooter": { "alias": "hasStickyFooter"; "required": false; }; "hasStickyCols": { "alias": "hasStickyCols"; "required": false; }; "isTableResponsive": { "alias": "isTableResponsive"; "required": false; }; "isAsync": { "alias": "isAsync"; "required": false; }; "virtualScrollAsyncItemsLength": { "alias": "virtualScrollAsyncItemsLength"; "required": false; }; "virtualScrollNbRows": { "alias": "virtualScrollNbRows"; "required": false; }; "isColsOrderable": { "alias": "isColsOrderable"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "isSelectOnlyVisibleRows": { "alias": "isSelectOnlyVisibleRows"; "required": false; }; "isTableBordered": { "alias": "isTableBordered"; "required": false; }; }, { "scrollChange": "scrollChange"; "rowsSelect": "rowsSelect"; "sortChange": "sortChange"; }, ["templates"], never, false, [{ directive: typeof i1.BaseStatesDirective; inputs: {}; outputs: {}; }]>;
@@ -1 +1 @@
1
- {"version":3,"file":"eui-table-v2.component.d.ts","sourceRoot":"","sources":["../../eui-table-v2/eui-table-v2.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,SAAS,EAAE,gBAAgB,EAAE,WAAW,EAAa,aAAa,EAAE,UAAU,EAC1E,SAAS,EAAE,MAAM,EAAU,YAAY,EAAE,aAAa,EAAE,SAAS,EAAmB,iBAAiB,EACjJ,SAAS,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAIlE,OAAO,EAAsB,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAa,MAAM,qBAAqB,CAAC;;;AAEtD,oBAAY,iBAAiB;IACzB,EAAE,OAAO;IACT,IAAI,SAAS;CAChB;AAED,qBAea,mBAAmB,CAAC,IAAI,GAAG,OAAO,CAAE,YAAW,gBAAgB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS;IAwEzG,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,EAAE;IACV,OAAO,CAAC,8BAA8B;IACtC,OAAO,CAAC,qBAAqB;IAC7B,OAAO,CAAC,mBAAmB;IAC3B,OAAO,CAAC,QAAQ;IA5E5B,IACW,UAAU,IAAI,MAAM,CAa9B;IAEQ,IAAI,EAAE,IAAI,EAAE,CAAM;IAClB,MAAM,SAAQ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MAAM,GAAG,MAAM;IAI1C;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAkC5B;;;;;;OAMG;IACH,OAAO,CAAC,QAAQ;IA2ChB;;;;;;OAMG;IACH,OAAO,CAAC,YAAY;IAOpB;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;IAIjB;;;;;;;OAOG;IACH,OAAO,CAAC,mBAAmB;IAU3B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAoD5B;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAMhC;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAM1B;;;;;;OAMG;IACH,OAAO,CAAC,QAAQ;IAqBhB;;;;;;OAMG;IACH,OAAO,CAAC,UAAU;yCAtxBT,mBAAmB;2CAAnB,mBAAmB;8CA0xBi4R,OAAQ;mDAAR,OAAQ;8CAAR,OAAQ;8CAAR,OAAQ;4CAAR,OAAQ;gDAAR,OAAQ;sCAAR,OAAQ;4DAA2k2O,OAAQ;kDAAR,OAAQ;8CAA3l2O,OAAQ;wCAAR,OAAQ;sDAAR,OAAQ;8CAAR,OAAQ;CADx6R"}
@@ -19,6 +19,18 @@ import * as i17 from "@ngx-translate/core";
19
19
  import * as i18 from "@eui/components/eui-button";
20
20
  import * as i19 from "@eui/components/eui-list";
21
21
  import * as i20 from "@eui/components/eui-icon-input";
22
+ /**
23
+ * @description
24
+ * Module that provides the EuiTableV2 component and its dependencies
25
+ *
26
+ * @example
27
+ * ```
28
+ * \@NgModule({
29
+ * imports: [EuiTableV2Module]
30
+ * })
31
+ * export class YourModule { }
32
+ * ```
33
+ */
22
34
  export declare class EuiTableV2Module {
23
35
  static ɵfac: i0.ɵɵFactoryDeclaration<EuiTableV2Module, never>;
24
36
  static ɵmod: i0.ɵɵNgModuleDeclaration<EuiTableV2Module, [typeof i1.EuiTableV2Component, typeof i2.EuiTableV2SelectableHeaderComponent, typeof i3.EuiTableV2SelectableRowComponent, typeof i4.EuiTableV2StickyColDirective, typeof i5.EuiTableV2FilterComponent, typeof i6.EuiTableV2HighlightPipe, typeof i7.EuiTableV2SortableColComponent, typeof i8.EuiTableV2ExpandableRowDirective], [typeof i9.CommonModule, typeof i10.EuiTemplateDirectiveModule, typeof i11.ScrollingModule, typeof i12.EuiSkeletonModule, typeof i13.EuiInputCheckboxModule, typeof i14.FormsModule, typeof i14.ReactiveFormsModule, typeof i15.EuiIconModule, typeof i16.EuiInputTextModule, typeof i17.TranslateModule, typeof i18.EuiButtonModule, typeof i19.EuiListModule, typeof i20.EuiIconInputModule], [typeof i1.EuiTableV2Component, typeof i2.EuiTableV2SelectableHeaderComponent, typeof i3.EuiTableV2SelectableRowComponent, typeof i10.EuiTemplateDirectiveModule, typeof i4.EuiTableV2StickyColDirective, typeof i5.EuiTableV2FilterComponent, typeof i6.EuiTableV2HighlightPipe, typeof i7.EuiTableV2SortableColComponent, typeof i8.EuiTableV2ExpandableRowDirective]>;
@@ -1 +1 @@
1
- {"version":3,"file":"eui-table-v2.module.d.ts","sourceRoot":"","sources":["../../eui-table-v2/eui-table-v2.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAwBA,qBAsCa,gBAAgB;yCAAhB,gBAAgB;0CAAhB,gBAAgB;0CAAhB,gBAAgB;CAAI"}
1
+ {"version":3,"file":"eui-table-v2.module.d.ts","sourceRoot":"","sources":["../../eui-table-v2/eui-table-v2.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAwBA;;;;;;;;;;;GAWG;AACH,qBAsCa,gBAAgB;yCAAhB,gBAAgB;0CAAhB,gBAAgB;0CAAhB,gBAAgB;CAAI"}
@@ -2,9 +2,25 @@ import { OnInit, EventEmitter, OnDestroy, ElementRef } from '@angular/core';
2
2
  import { FormGroup, FormControl } from '@angular/forms';
3
3
  import { BehaviorSubject } from 'rxjs';
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * @description
7
+ * Component used with `eui-table-v2` to add a filter feature to the table.
8
+ */
5
9
  export declare class EuiTableV2FilterComponent implements OnInit, OnDestroy {
10
+ /**
11
+ * @description
12
+ * Computes and returns the CSS classes for the component based on its current state.
13
+ *
14
+ * @returns {string} Space-separated string of CSS class names
15
+ */
6
16
  get cssClasses(): string;
17
+ /**
18
+ * Placeholder text for the filter input.
19
+ */
7
20
  placeholder: string;
21
+ /**
22
+ * Event emitted when the value of the input changes.
23
+ */
8
24
  filterChange: EventEmitter<string>;
9
25
  filterInput: ElementRef<HTMLInputElement>;
10
26
  filter$: BehaviorSubject<string>;
@@ -14,6 +30,11 @@ export declare class EuiTableV2FilterComponent implements OnInit, OnDestroy {
14
30
  private destroy$;
15
31
  ngOnInit(): void;
16
32
  ngOnDestroy(): void;
33
+ /**
34
+ * Set the filter value and emit the change event.
35
+ *
36
+ * @param value Value of the input.
37
+ */
17
38
  setFilter(value: string): void;
18
39
  /**
19
40
  * Reset the filter and emit the change event.
@@ -1 +1 @@
1
- {"version":3,"file":"eui-table-v2-filter.component.d.ts","sourceRoot":"","sources":["../../../eui-table-v2/filter/eui-table-v2-filter.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAiB,YAAY,EAAE,SAAS,EAA0B,UAAU,EAAqB,MAAM,eAAe,CAAC;AACjJ,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAW,eAAe,EAAiD,MAAM,MAAM,CAAC;;AAE/F,qBAMa,yBAA0B,YAAW,MAAM,EAAE,SAAS;IAC/D,IACI,UAAU,IAAI,MAAM,CAMvB;IAEQ,WAAW,EAAE,MAAM,CAAC;IAEnB,YAAY,uBAA8B;IAEJ,WAAW,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAEnF,OAAO,EAAE,eAAe,CAAC,MAAM,CAAC,CAA6B;IAC7D,IAAI;;OAER;IAEH,OAAO,CAAC,QAAQ,CAA4C;IAE5D,QAAQ,IAAI,IAAI;IAMhB,WAAW,IAAI,IAAI;IAKZ,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAMrC;;OAEG;IACI,WAAW,IAAI,IAAI;yCA3CjB,yBAAyB;2CAAzB,yBAAyB;CAgDrC"}
1
+ {"version":3,"file":"eui-table-v2-filter.component.d.ts","sourceRoot":"","sources":["../../../eui-table-v2/filter/eui-table-v2-filter.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAiB,YAAY,EAAE,SAAS,EAA0B,UAAU,EAAqB,MAAM,eAAe,CAAC;AACjJ,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAW,eAAe,EAAiD,MAAM,MAAM,CAAC;;AAE/F;;;GAGG;AACH,qBAMa,yBAA0B,YAAW,MAAM,EAAE,SAAS;IAC/D;;;;;OAKG;IACH,IACI,UAAU,IAAI,MAAM,CAMvB;IAED;;OAEG;IACM,WAAW,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACO,YAAY,uBAA8B;IAEJ,WAAW,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAEnF,OAAO,EAAE,eAAe,CAAC,MAAM,CAAC,CAA6B;IAC7D,IAAI;;OAER;IAEH,OAAO,CAAC,QAAQ,CAA4C;IAE5D,QAAQ,IAAI,IAAI;IAMhB,WAAW,IAAI,IAAI;IAKnB;;;;OAIG;IACI,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAMrC;;OAEG;IACI,WAAW,IAAI,IAAI;yCA5DjB,yBAAyB;2CAAzB,yBAAyB;CAiErC"}
@@ -1,6 +1,25 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
+ /**
4
+ * @description
5
+ * Pipe used to highlight the matching string in the data of the table when used with filter feature.
6
+ *
7
+ * @example
8
+ * ```
9
+ * <td><span [innerHTML]="row.year | euiTableV2Highlight: strFilter"></span></td>
10
+ *
11
+ * strFilter = '19'
12
+ * ```
13
+ */
3
14
  export declare class EuiTableV2HighlightPipe implements PipeTransform {
15
+ /**
16
+ * Wrap a matching string with a span element with a class name in the data of the table
17
+ *
18
+ * @param value Data displayed in a cell.
19
+ * @param strFilter Search string to highlight.
20
+ * @param className CSS class to add to the span element. Default: 'eui-table-v2--highlighted'
21
+ * @returns
22
+ */
4
23
  transform(value: string, strFilter: string, className?: string): string;
5
24
  static ɵfac: i0.ɵɵFactoryDeclaration<EuiTableV2HighlightPipe, never>;
6
25
  static ɵpipe: i0.ɵɵPipeDeclaration<EuiTableV2HighlightPipe, "euiTableV2Highlight", false>;
@@ -1 +1 @@
1
- {"version":3,"file":"eui-table-v2-highlight.pipe.d.ts","sourceRoot":"","sources":["../../../eui-table-v2/pipes/eui-table-v2-highlight.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;;AAEpD,qBAIa,uBAAwB,YAAW,aAAa;IACzD,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,SAA8B,GAAG,MAAM;yCADnF,uBAAuB;uCAAvB,uBAAuB;CAanC"}
1
+ {"version":3,"file":"eui-table-v2-highlight.pipe.d.ts","sourceRoot":"","sources":["../../../eui-table-v2/pipes/eui-table-v2-highlight.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;;AAEpD;;;;;;;;;;GAUG;AACH,qBAIa,uBAAwB,YAAW,aAAa;IACzD;;;;;;;OAOG;IACH,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,SAA8B,GAAG,MAAM;yCATnF,uBAAuB;uCAAvB,uBAAuB;CAqBnC"}
@@ -1,8 +1,17 @@
1
1
  import { OnInit, OnDestroy } from '@angular/core';
2
2
  import { EuiTableV2SelectableRowService } from '../services/eui-table-v2-selectable-row.service';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * @description
6
+ * Component used internally by `eui-table-v2` to add a 'select all' checkbox in the header of the table.
7
+ */
4
8
  export declare class EuiTableV2SelectableHeaderComponent<DATA> implements OnInit, OnDestroy {
5
9
  private euiDataTableSelectableRowService;
10
+ /**
11
+ * Wheter a select all feature is available in the header.
12
+ *
13
+ * @default false
14
+ */
6
15
  isHeaderSelectable: boolean;
7
16
  isCheckedIndeterminate: boolean;
8
17
  isChecked: boolean;
@@ -10,7 +19,17 @@ export declare class EuiTableV2SelectableHeaderComponent<DATA> implements OnInit
10
19
  constructor(euiDataTableSelectableRowService: EuiTableV2SelectableRowService<DATA>);
11
20
  ngOnInit(): void;
12
21
  ngOnDestroy(): void;
22
+ /**
23
+ * Gets the `aria-label` attribute for the checkbox element.
24
+ *
25
+ * @default `Unchecked`
26
+ */
13
27
  get ariaLabel(): string;
28
+ /**
29
+ * Handle the change of the selected status.
30
+ *
31
+ * @param e Change Event
32
+ */
14
33
  toggleCheckedState(e: Event): void;
15
34
  static ɵfac: i0.ɵɵFactoryDeclaration<EuiTableV2SelectableHeaderComponent<any>, never>;
16
35
  static ɵcmp: i0.ɵɵComponentDeclaration<EuiTableV2SelectableHeaderComponent<any>, "tr[isHeaderSelectable]", never, { "isHeaderSelectable": { "alias": "isHeaderSelectable"; "required": false; }; }, {}, never, ["*"], false, never>;
@@ -1 +1 @@
1
- {"version":3,"file":"eui-table-v2-selectable-header.component.d.ts","sourceRoot":"","sources":["../../../eui-table-v2/selectable-header/eui-table-v2-selectable-header.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAS,SAAS,EAAoB,MAAM,eAAe,CAAC;AAGtF,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;;AAEjG,qBAMa,mCAAmC,CAAC,IAAI,CAAE,YAAW,MAAM,EAAE,SAAS;IAQnE,OAAO,CAAC,gCAAgC;IAPZ,kBAAkB,UAAQ;IAE3D,sBAAsB,UAAS;IAC/B,SAAS,UAAS;IAEzB,OAAO,CAAC,QAAQ,CAA4C;gBAExC,gCAAgC,EAAE,8BAA8B,CAAC,IAAI,CAAC;IAE1F,QAAQ,IAAI,IAAI;IAUhB,WAAW,IAAI,IAAI;IAKnB,IAAI,SAAS,IAAI,MAAM,CAUtB;IAEM,kBAAkB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;yCArChC,mCAAmC;2CAAnC,mCAAmC;iDA+Cku1C,OAAQ;CADzx1C"}
1
+ {"version":3,"file":"eui-table-v2-selectable-header.component.d.ts","sourceRoot":"","sources":["../../../eui-table-v2/selectable-header/eui-table-v2-selectable-header.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAS,SAAS,EAAoB,MAAM,eAAe,CAAC;AAGtF,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;;AAEjG;;;GAGG;AACH,qBAMa,mCAAmC,CAAC,IAAI,CAAE,YAAW,MAAM,EAAE,SAAS;IAanE,OAAO,CAAC,gCAAgC;IAZpD;;;;OAIG;IACqC,kBAAkB,UAAQ;IAE3D,sBAAsB,UAAS;IAC/B,SAAS,UAAS;IAEzB,OAAO,CAAC,QAAQ,CAA4C;gBAExC,gCAAgC,EAAE,8BAA8B,CAAC,IAAI,CAAC;IAE1F,QAAQ,IAAI,IAAI;IAUhB,WAAW,IAAI,IAAI;IAKnB;;;;OAIG;IACH,IAAI,SAAS,IAAI,MAAM,CAUtB;IAED;;;;OAIG;IACI,kBAAkB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;yCApDhC,mCAAmC;2CAAnC,mCAAmC;iDA8Dyx0C,OAAQ;CADh10C"}
@@ -1,19 +1,47 @@
1
1
  import { OnInit, OnDestroy, OnChanges, ElementRef, SimpleChanges } from '@angular/core';
2
2
  import { EuiTableV2SelectableRowService } from '../services/eui-table-v2-selectable-row.service';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * @description
6
+ * Component used internally by `eui-table-v2` to make a row selectable.
7
+ */
4
8
  export declare class EuiTableV2SelectableRowComponent<DATA> implements OnInit, OnDestroy, OnChanges {
5
9
  private euiDataTableSelectableRowService;
6
10
  private elementRef;
11
+ /**
12
+ * Data of the row.
13
+ */
7
14
  isDataSelectable: DATA;
15
+ /**
16
+ * Wheter the row is selected.
17
+ *
18
+ * @default false
19
+ */
8
20
  isChecked: boolean;
21
+ /**
22
+ * Wheter the selection can be done with the keyboard.
23
+ *
24
+ * @default false
25
+ */
9
26
  isKeyboardSelectable: boolean;
10
27
  private propId;
11
28
  private destroy$;
29
+ /**
30
+ * @description
31
+ * Computes and returns the CSS classes for the component based on its current state.
32
+ *
33
+ * @returns {string} Space-separated string of CSS class names
34
+ */
12
35
  get cssClasses(): string;
13
36
  constructor(euiDataTableSelectableRowService: EuiTableV2SelectableRowService<DATA>, elementRef: ElementRef);
14
37
  ngOnChanges(c: SimpleChanges): void;
15
38
  ngOnInit(): void;
16
39
  ngOnDestroy(): void;
40
+ /**
41
+ * Handle the change of the selected status.
42
+ *
43
+ * @param e Change Event
44
+ */
17
45
  toggleCheckedState(e: Event): void;
18
46
  static ɵfac: i0.ɵɵFactoryDeclaration<EuiTableV2SelectableRowComponent<any>, never>;
19
47
  static ɵcmp: i0.ɵɵComponentDeclaration<EuiTableV2SelectableRowComponent<any>, "tr[isDataSelectable]", never, { "isDataSelectable": { "alias": "isDataSelectable"; "required": false; }; "isChecked": { "alias": "isChecked"; "required": false; }; "isKeyboardSelectable": { "alias": "isKeyboardSelectable"; "required": false; }; }, {}, never, ["*"], false, never>;
@@ -1 +1 @@
1
- {"version":3,"file":"eui-table-v2-selectable-row.component.d.ts","sourceRoot":"","sources":["../../../eui-table-v2/selectable-row/eui-table-v2-selectable-row.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAS,SAAS,EAAE,SAAS,EAAiC,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGzI,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;;AAEjG,qBAMa,gCAAgC,CAAC,IAAI,CAAE,YAAW,MAAM,EAAE,SAAS,EAAE,SAAS;IAmB3E,OAAO,CAAC,gCAAgC;IAAwC,OAAO,CAAC,UAAU;IAlBrG,gBAAgB,EAAE,IAAI,CAAC;IACQ,SAAS,UAAS;IAClB,oBAAoB,UAAS;IAErE,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,QAAQ,CAA4C;IAE5D,IACW,UAAU,IAAI,MAAM,CAQ9B;gBAEmB,gCAAgC,EAAE,8BAA8B,CAAC,IAAI,CAAC,EAAU,UAAU,EAAE,UAAU;IAE1H,WAAW,CAAC,CAAC,EAAE,aAAa,GAAG,IAAI;IAUnC,QAAQ,IAAI,IAAI;IAmChB,WAAW,IAAI,IAAI;IAKZ,kBAAkB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;yCAvEhC,gCAAgC;2CAAhC,gCAAgC;wCAiFq3xC,OAAQ;mDAAR,OAAQ;CADz6xC"}
1
+ {"version":3,"file":"eui-table-v2-selectable-row.component.d.ts","sourceRoot":"","sources":["../../../eui-table-v2/selectable-row/eui-table-v2-selectable-row.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAS,SAAS,EAAE,SAAS,EAAiC,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGzI,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;;AAEjG;;;GAGG;AACH,qBAMa,gCAAgC,CAAC,IAAI,CAAE,YAAW,MAAM,EAAE,SAAS,EAAE,SAAS;IAsC3E,OAAO,CAAC,gCAAgC;IAAwC,OAAO,CAAC,UAAU;IArC9G;;OAEG;IACM,gBAAgB,EAAE,IAAI,CAAC;IAChC;;;;OAIG;IACqC,SAAS,UAAS;IAC1D;;;;OAIG;IACqC,oBAAoB,UAAS;IAErE,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,QAAQ,CAA4C;IAE5D;;;;;OAKG;IACH,IACW,UAAU,IAAI,MAAM,CAQ9B;gBAEmB,gCAAgC,EAAE,8BAA8B,CAAC,IAAI,CAAC,EAAU,UAAU,EAAE,UAAU;IAE1H,WAAW,CAAC,CAAC,EAAE,aAAa,GAAG,IAAI;IAUnC,QAAQ,IAAI,IAAI;IAmChB,WAAW,IAAI,IAAI;IAKnB;;;;OAIG;IACI,kBAAkB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;yCA/FhC,gCAAgC;2CAAhC,gCAAgC;wCAyGowwC,OAAQ;mDAAR,OAAQ;CADxzwC"}
@@ -1,25 +1,96 @@
1
1
  import { BehaviorSubject, Observable } from 'rxjs';
2
2
  import * as i0 from "@angular/core";
3
+ /**
4
+ * Service to manage the selection state of rows in a table.
5
+ * Allows tracking of selected rows and managing selection for individual and multiple rows.
6
+ */
3
7
  export declare class EuiTableV2SelectableRowService<DATA> {
8
+ /**
9
+ * BehaviorSubject containing the selected rows.
10
+ */
4
11
  selectedRows$: BehaviorSubject<DATA[]>;
12
+ /**
13
+ * BehaviorSubject containing the state of whether all rows are selected.
14
+ */
5
15
  isAllRowsSelected$: BehaviorSubject<boolean>;
6
16
  private lastSelectedRow;
7
17
  private rows;
8
18
  private propId;
19
+ /**
20
+ * Observable stream of selected rows.
21
+ */
9
22
  get selectedRows(): Observable<DATA[]>;
23
+ /**
24
+ * Observable stream of whether all rows are selected.
25
+ */
10
26
  get isAllRowsSelected(): Observable<boolean>;
27
+ /**
28
+ * Sets the property name used to identify rows as unique.
29
+ */
11
30
  setPropId(value: string): void;
31
+ /**
32
+ * Gets the current property name used to identify rows.
33
+ */
12
34
  getPropId(): string;
35
+ /**
36
+ * Registers a row as selectable.
37
+ *
38
+ * @param row Row to register.
39
+ */
13
40
  registerRow(row: DATA): void;
41
+ /**
42
+ * Registers a set of rows as selectable.
43
+ *
44
+ * @param rows Set of rows to register.
45
+ */
14
46
  registerRows(rows: DATA[]): void;
47
+ /**
48
+ * Unregisters a row as selectable.
49
+ *
50
+ * @param row Row to unregister.
51
+ */
15
52
  unregisterRow(row: DATA): void;
53
+ /**
54
+ * Unregisters all rows.
55
+ */
16
56
  unregisterRows(): void;
57
+ /**
58
+ * Selects a row.
59
+ *
60
+ * @param row Row to select.
61
+ */
17
62
  selectRow(row: DATA): void;
63
+ /**
64
+ * Unselects a row.
65
+ *
66
+ * @param row Row to unselect.
67
+ */
18
68
  unselectRow(row: DATA): void;
69
+ /**
70
+ * Selects a set of rows.
71
+ *
72
+ * @param rows Rows to select.
73
+ */
19
74
  selectRows(rows: DATA[]): void;
75
+ /**
76
+ * Select all rows.
77
+ */
20
78
  selectAllRows(): void;
79
+ /**
80
+ * Unselect all rows.
81
+ */
21
82
  unselectAllRows(): void;
83
+ /**
84
+ * Gets the list of registered rows.
85
+ *
86
+ * @returns The list of registered rows.
87
+ */
22
88
  getRows(): DATA[];
89
+ /**
90
+ * Gets the last selected row.
91
+ *
92
+ * @returns The last selected row.
93
+ */
23
94
  getLastSelectedRow(): DATA;
24
95
  static ɵfac: i0.ɵɵFactoryDeclaration<EuiTableV2SelectableRowService<any>, never>;
25
96
  static ɵprov: i0.ɵɵInjectableDeclaration<EuiTableV2SelectableRowService<any>>;