@eui/components 18.0.0-next.29 → 18.0.0-next.30
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.
- package/docs/classes/EuiMessageBoxConfig.html +1 -1
- package/docs/components/EuiAlertComponent.html +1 -1
- package/docs/components/EuiButtonComponent.html +1 -1
- package/docs/components/EuiDialogComponent.html +96 -687
- package/docs/components/EuiDialogContainerComponent.html +1 -1
- package/docs/components/EuiMenuItemComponent.html +1 -1
- package/docs/components/EuiMessageBoxComponent.html +123 -1227
- package/docs/components/EuiPopoverComponent.html +81 -995
- package/docs/components/EuiTabComponent.html +88 -1004
- package/docs/components/EuiTabContentComponent.html +5 -78
- package/docs/components/EuiTableComponent.html +586 -2166
- package/docs/components/EuiTableFilterComponent.html +122 -787
- package/docs/components/EuiTableSelectableHeaderComponent.html +11 -141
- package/docs/components/EuiTableSelectableRowComponent.html +11 -125
- package/docs/components/EuiTableSortableColComponent.html +23 -263
- package/docs/components/EuiTabsComponent.html +21 -265
- package/docs/dependencies.html +1 -1
- package/docs/interfaces/EuiDialogInterface.html +2 -2
- package/docs/js/menu-wc.js +6 -6
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2022/directives/eui-tooltip/container/eui-tooltip-container.component.mjs +2 -2
- package/esm2022/eui-alert/eui-alert.component.mjs +4 -3
- package/esm2022/eui-avatar/eui-avatar.component.mjs +2 -2
- package/esm2022/eui-badge/eui-badge.component.mjs +2 -2
- package/esm2022/eui-block-content/eui-block-content.component.mjs +2 -2
- package/esm2022/eui-button/eui-button.component.mjs +4 -5
- package/esm2022/eui-button-group/eui-button-group.component.mjs +1 -1
- package/esm2022/eui-button-v2/eui-button-v2.component.mjs +2 -2
- package/esm2022/eui-card/eui-card.component.mjs +2 -2
- package/esm2022/eui-chip/eui-chip.component.mjs +2 -2
- package/esm2022/eui-chip-list/eui-chip-list.component.mjs +2 -6
- package/esm2022/eui-dialog/container/eui-dialog-container.component.mjs +10 -10
- package/esm2022/eui-dialog/eui-dialog.component.mjs +29 -33
- package/esm2022/eui-dialog/models/eui-dialog.config.mjs +1 -1
- package/esm2022/eui-discussion-thread/eui-discussion-thread.component.mjs +2 -2
- package/esm2022/eui-ecl-date-block/eui-ecl-date-block.component.mjs +2 -2
- package/esm2022/eui-ecl-label/eui-ecl-label.component.mjs +2 -2
- package/esm2022/eui-feedback-message/eui-feedback-message.component.mjs +2 -2
- package/esm2022/eui-fieldset/eui-fieldset.component.mjs +2 -2
- package/esm2022/eui-file-upload/eui-file-upload.component.mjs +2 -2
- package/esm2022/eui-growl/eui-growl.component.mjs +2 -2
- package/esm2022/eui-input-checkbox/eui-input-checkbox.component.mjs +2 -2
- package/esm2022/eui-label/eui-label.component.mjs +2 -2
- package/esm2022/eui-language-selector/language-selector.component.mjs +2 -2
- package/esm2022/eui-list/eui-list-item/eui-list-item.component.mjs +2 -2
- package/esm2022/eui-list/eui-list.component.mjs +2 -2
- package/esm2022/eui-menu/eui-menu-item.component.mjs +4 -4
- package/esm2022/eui-menu/eui-menu.component.mjs +2 -2
- package/esm2022/eui-message-box/eui-message-box.component.mjs +51 -110
- package/esm2022/eui-message-box/models/eui-message-box.config.mjs +1 -1
- package/esm2022/eui-page/eui-page.component.mjs +2 -2
- package/esm2022/eui-popover/eui-popover.component.mjs +50 -72
- package/esm2022/eui-progress-bar/eui-progress-bar.component.mjs +2 -2
- package/esm2022/eui-progress-circle/eui-progress-circle.component.mjs +2 -2
- package/esm2022/eui-table/eui-table.component.mjs +82 -160
- package/esm2022/eui-table/filter/eui-table-filter.component.mjs +28 -32
- package/esm2022/eui-table/selectable-header/eui-table-selectable-header.component.mjs +12 -25
- package/esm2022/eui-table/selectable-row/eui-table-selectable-row.component.mjs +12 -25
- package/esm2022/eui-table/sortable-col/eui-table-sortable-col.component.mjs +20 -43
- package/esm2022/eui-tabs/eui-tab/eui-tab.component.mjs +44 -59
- package/esm2022/eui-tabs/eui-tab-content/eui-tab-content.component.mjs +6 -12
- package/esm2022/eui-tabs/eui-tabs.component.mjs +22 -45
- package/esm2022/eui-timebar/eui-timebar.component.mjs +2 -2
- package/esm2022/eui-timepicker/eui-timepicker.component.mjs +2 -2
- package/esm2022/eui-tree-list/eui-tree-list.component.mjs +2 -2
- package/esm2022/eui-wizard/eui-wizard-step.component.mjs +2 -2
- package/esm2022/eui-wizard/eui-wizard.component.mjs +2 -2
- package/esm2022/externals/eui-editor/eui-editor.component.mjs +2 -2
- package/esm2022/layout/eui-app/eui-app-toolbar/toolbar.component.mjs +2 -2
- package/esm2022/layout/eui-app/eui-app-top-message/top-message.component.mjs +2 -2
- package/esm2022/layout/eui-footer/footer.component.mjs +2 -2
- package/esm2022/layout/eui-notifications/eui-notifications.component.mjs +2 -2
- package/esm2022/layout/eui-notifications-v2/eui-notifications.component.mjs +2 -2
- package/esm2022/layout/eui-search/search.component.mjs +2 -2
- package/esm2022/layout/eui-toolbar/toolbar.component.mjs +2 -2
- package/esm2022/layout/eui-user-profile/user-profile.component.mjs +2 -2
- package/esm2022/shared/base/base-states.directive.mjs +2 -1
- package/eui-alert/eui-alert.component.d.ts.map +1 -1
- package/eui-button/eui-button.component.d.ts.map +1 -1
- package/eui-button-group/eui-button-group.component.d.ts.map +1 -1
- package/eui-chip-list/eui-chip-list.component.d.ts.map +1 -1
- package/eui-dialog/eui-dialog.component.d.ts +11 -6
- package/eui-dialog/eui-dialog.component.d.ts.map +1 -1
- package/eui-dialog/models/eui-dialog.config.d.ts +1 -1
- package/eui-dialog/models/eui-dialog.config.d.ts.map +1 -1
- package/eui-menu/eui-menu-item.component.d.ts.map +1 -1
- package/eui-message-box/eui-message-box.component.d.ts +26 -42
- package/eui-message-box/eui-message-box.component.d.ts.map +1 -1
- package/eui-message-box/models/eui-message-box.config.d.ts +1 -1
- package/eui-message-box/models/eui-message-box.config.d.ts.map +1 -1
- package/eui-popover/eui-popover.component.d.ts +18 -21
- package/eui-popover/eui-popover.component.d.ts.map +1 -1
- package/eui-table/eui-table.component.d.ts +36 -51
- package/eui-table/eui-table.component.d.ts.map +1 -1
- package/eui-table/filter/eui-table-filter.component.d.ts +9 -9
- package/eui-table/filter/eui-table-filter.component.d.ts.map +1 -1
- package/eui-table/selectable-header/eui-table-selectable-header.component.d.ts +4 -7
- package/eui-table/selectable-header/eui-table-selectable-header.component.d.ts.map +1 -1
- package/eui-table/selectable-row/eui-table-selectable-row.component.d.ts +4 -7
- package/eui-table/selectable-row/eui-table-selectable-row.component.d.ts.map +1 -1
- package/eui-table/sortable-col/eui-table-sortable-col.component.d.ts +10 -16
- package/eui-table/sortable-col/eui-table-sortable-col.component.d.ts.map +1 -1
- package/eui-tabs/eui-tab/eui-tab.component.d.ts +18 -23
- package/eui-tabs/eui-tab/eui-tab.component.d.ts.map +1 -1
- package/eui-tabs/eui-tab-content/eui-tab-content.component.d.ts +2 -4
- package/eui-tabs/eui-tab-content/eui-tab-content.component.d.ts.map +1 -1
- package/eui-tabs/eui-tabs.component.d.ts +8 -13
- package/eui-tabs/eui-tabs.component.d.ts.map +1 -1
- package/fesm2022/eui-components-directives.mjs +2 -2
- package/fesm2022/eui-components-eui-alert.mjs +11 -10
- package/fesm2022/eui-components-eui-alert.mjs.map +2 -2
- package/fesm2022/eui-components-eui-avatar.mjs +2 -2
- package/fesm2022/eui-components-eui-badge.mjs +2 -2
- package/fesm2022/eui-components-eui-badge.mjs.map +1 -1
- package/fesm2022/eui-components-eui-block-content.mjs +2 -2
- package/fesm2022/eui-components-eui-block-content.mjs.map +1 -1
- package/fesm2022/eui-components-eui-button-group.mjs.map +1 -1
- package/fesm2022/eui-components-eui-button-v2.mjs +2 -2
- package/fesm2022/eui-components-eui-button.mjs +3 -4
- package/fesm2022/eui-components-eui-button.mjs.map +2 -2
- package/fesm2022/eui-components-eui-card.mjs +2 -2
- package/fesm2022/eui-components-eui-card.mjs.map +1 -1
- package/fesm2022/eui-components-eui-chip-list.mjs +1 -5
- package/fesm2022/eui-components-eui-chip-list.mjs.map +2 -2
- package/fesm2022/eui-components-eui-chip.mjs +2 -2
- package/fesm2022/eui-components-eui-chip.mjs.map +1 -1
- package/fesm2022/eui-components-eui-dialog.mjs +236 -212
- package/fesm2022/eui-components-eui-dialog.mjs.map +2 -2
- package/fesm2022/eui-components-eui-discussion-thread.mjs +2 -2
- package/fesm2022/eui-components-eui-discussion-thread.mjs.map +1 -1
- package/fesm2022/eui-components-eui-ecl-date-block.mjs +2 -2
- package/fesm2022/eui-components-eui-ecl-date-block.mjs.map +1 -1
- package/fesm2022/eui-components-eui-ecl-label.mjs +2 -2
- package/fesm2022/eui-components-eui-ecl-label.mjs.map +1 -1
- package/fesm2022/eui-components-eui-feedback-message.mjs +2 -2
- package/fesm2022/eui-components-eui-fieldset.mjs +2 -2
- package/fesm2022/eui-components-eui-file-upload.mjs +2 -2
- package/fesm2022/eui-components-eui-file-upload.mjs.map +1 -1
- package/fesm2022/eui-components-eui-growl.mjs +2 -2
- package/fesm2022/eui-components-eui-input-checkbox.mjs +2 -2
- package/fesm2022/eui-components-eui-input-checkbox.mjs.map +1 -1
- package/fesm2022/eui-components-eui-label.mjs +2 -2
- package/fesm2022/eui-components-eui-language-selector.mjs +2 -2
- package/fesm2022/eui-components-eui-language-selector.mjs.map +1 -1
- package/fesm2022/eui-components-eui-list.mjs +4 -4
- package/fesm2022/eui-components-eui-menu.mjs +23 -27
- package/fesm2022/eui-components-eui-menu.mjs.map +2 -2
- package/fesm2022/eui-components-eui-message-box.mjs +49 -105
- package/fesm2022/eui-components-eui-message-box.mjs.map +2 -2
- package/fesm2022/eui-components-eui-page.mjs +2 -2
- package/fesm2022/eui-components-eui-page.mjs.map +1 -1
- package/fesm2022/eui-components-eui-popover.mjs +49 -150
- package/fesm2022/eui-components-eui-popover.mjs.map +2 -2
- package/fesm2022/eui-components-eui-progress-bar.mjs +2 -2
- package/fesm2022/eui-components-eui-progress-bar.mjs.map +1 -1
- package/fesm2022/eui-components-eui-progress-circle.mjs +2 -2
- package/fesm2022/eui-components-eui-progress-circle.mjs.map +1 -1
- package/fesm2022/eui-components-eui-table.mjs +254 -418
- package/fesm2022/eui-components-eui-table.mjs.map +3 -3
- package/fesm2022/eui-components-eui-tabs.mjs +72 -116
- package/fesm2022/eui-components-eui-tabs.mjs.map +3 -3
- package/fesm2022/eui-components-eui-timebar.mjs +2 -2
- package/fesm2022/eui-components-eui-timebar.mjs.map +1 -1
- package/fesm2022/eui-components-eui-timepicker.mjs +2 -2
- package/fesm2022/eui-components-eui-timepicker.mjs.map +1 -1
- package/fesm2022/eui-components-eui-tree-list.mjs +2 -2
- package/fesm2022/eui-components-eui-tree-list.mjs.map +1 -1
- package/fesm2022/eui-components-eui-wizard.mjs +4 -4
- package/fesm2022/eui-components-eui-wizard.mjs.map +1 -1
- package/fesm2022/eui-components-externals-eui-editor.mjs +2 -2
- package/fesm2022/eui-components-externals-eui-editor.mjs.map +1 -1
- package/fesm2022/eui-components-layout.mjs +16 -16
- package/fesm2022/eui-components-layout.mjs.map +1 -1
- package/fesm2022/eui-components-shared.mjs +1 -1
- package/fesm2022/eui-components-shared.mjs.map +2 -2
- package/package.json +3 -3
- package/shared/base/base-states.directive.d.ts.map +1 -1
@@ -201,104 +201,17 @@ var MultisortParam = class {
|
|
201
201
|
};
|
202
202
|
|
203
203
|
// eui-table.component.mjs
|
204
|
-
import { ChangeDetectionStrategy, Component, ContentChildren, EventEmitter, HostBinding, Input, Output, ViewChild, ViewEncapsulation } from "@angular/core";
|
205
|
-
import { BehaviorSubject as BehaviorSubject3, combineLatest, Subject, Subscription } from "rxjs";
|
206
|
-
import { takeUntil } from "rxjs/operators";
|
207
|
-
import { coerceBooleanProperty } from "@angular/cdk/coercion";
|
204
|
+
import { ChangeDetectionStrategy, Component, ContentChildren, EventEmitter, HostBinding, Input, Output, ViewChild, ViewEncapsulation, booleanAttribute } from "@angular/core";
|
205
|
+
import { BehaviorSubject as BehaviorSubject3, combineLatest, Subject, Subscription, takeUntil } from "rxjs";
|
208
206
|
import { EuiTemplateDirective } from "@eui/components/directives";
|
209
|
-
import {
|
207
|
+
import { BaseStatesDirective } from "@eui/components/shared";
|
210
208
|
import * as i03 from "@angular/core";
|
211
|
-
import * as i3 from "@
|
212
|
-
|
213
|
-
|
214
|
-
return this.loading;
|
215
|
-
}
|
216
|
-
get loading() {
|
217
|
-
return this._loading;
|
218
|
-
}
|
219
|
-
set loading(value) {
|
220
|
-
this._loading = coerceBooleanProperty(value);
|
221
|
-
}
|
222
|
-
get asyncTable() {
|
223
|
-
return this._asyncTable;
|
224
|
-
}
|
225
|
-
set asyncTable(value) {
|
226
|
-
this._asyncTable = coerceBooleanProperty(value);
|
227
|
-
}
|
228
|
-
get paginable() {
|
229
|
-
return this._paginable;
|
230
|
-
}
|
231
|
-
set paginable(value) {
|
232
|
-
this._paginable = coerceBooleanProperty(value);
|
233
|
-
}
|
234
|
-
get euiTableResponsive() {
|
235
|
-
return this._euiTableResponsive;
|
236
|
-
}
|
237
|
-
set euiTableResponsive(value) {
|
238
|
-
this._euiTableResponsive = coerceBooleanProperty(value);
|
239
|
-
}
|
240
|
-
get euiTableFixedLayout() {
|
241
|
-
return this._euiTableFixedLayout;
|
242
|
-
}
|
243
|
-
set euiTableFixedLayout(value) {
|
244
|
-
this._euiTableFixedLayout = coerceBooleanProperty(value);
|
245
|
-
}
|
246
|
-
get euiTableDraggable() {
|
247
|
-
return this._euiTableDraggable;
|
248
|
-
}
|
249
|
-
set euiTableDraggable(value) {
|
250
|
-
this._euiTableDraggable = coerceBooleanProperty(value);
|
251
|
-
}
|
252
|
-
get euiTableCards() {
|
253
|
-
return this._euiTableCards;
|
254
|
-
}
|
255
|
-
set euiTableCards(value) {
|
256
|
-
this._euiTableCards = coerceBooleanProperty(value);
|
257
|
-
}
|
258
|
-
get euiTableBordered() {
|
259
|
-
return this._euiTableBordered;
|
260
|
-
}
|
261
|
-
set euiTableBordered(value) {
|
262
|
-
this._euiTableBordered = coerceBooleanProperty(value);
|
263
|
-
}
|
264
|
-
get euiTableCompact() {
|
265
|
-
return this._euiTableCompact;
|
266
|
-
}
|
267
|
-
set euiTableCompact(value) {
|
268
|
-
this._euiTableCompact = coerceBooleanProperty(value);
|
269
|
-
}
|
270
|
-
get hasStickyHeader() {
|
271
|
-
return this._hasStickyHeader;
|
272
|
-
}
|
273
|
-
set hasStickyHeader(value) {
|
274
|
-
this._hasStickyHeader = coerceBooleanProperty(value);
|
275
|
-
}
|
276
|
-
get hasStickyColumns() {
|
277
|
-
return this._hasStickyColumns;
|
278
|
-
}
|
279
|
-
set hasStickyColumns(value) {
|
280
|
-
this._hasStickyColumns = coerceBooleanProperty(value);
|
281
|
-
}
|
282
|
-
get isSelectOnlyVisibleRows() {
|
283
|
-
return this._isSelectOnlyVisibleRows;
|
284
|
-
}
|
285
|
-
set isSelectOnlyVisibleRows(value) {
|
286
|
-
this._isSelectOnlyVisibleRows = coerceBooleanProperty(value);
|
287
|
-
}
|
288
|
-
get isColsOrderable() {
|
289
|
-
return this._isColsOrderable;
|
290
|
-
}
|
291
|
-
set isColsOrderable(value) {
|
292
|
-
this._isColsOrderable = coerceBooleanProperty(value);
|
293
|
-
}
|
294
|
-
get isHoverable() {
|
295
|
-
return this._isHoverable;
|
296
|
-
}
|
297
|
-
set isHoverable(value) {
|
298
|
-
this._isHoverable = coerceBooleanProperty(value);
|
299
|
-
}
|
209
|
+
import * as i3 from "@eui/components/shared";
|
210
|
+
import * as i4 from "@angular/common";
|
211
|
+
var EuiTableComponent = class _EuiTableComponent {
|
300
212
|
get cssClasses() {
|
301
213
|
return [
|
214
|
+
this.baseStatesDirective.getCssClasses("eui-table"),
|
302
215
|
this.euiTableResponsive ? "eui-table--responsive" : "",
|
303
216
|
this.euiTableFixedLayout ? "eui-table--fixed-layout" : "",
|
304
217
|
this.euiTableBordered ? "eui-table--bordered" : "",
|
@@ -309,19 +222,33 @@ var EuiTableComponent = class _EuiTableComponent extends BaseDirective {
|
|
309
222
|
this.hasStickyColumns ? "eui-table--sticky-columns" : "",
|
310
223
|
this.isColsOrderable ? "eui-table--cols-orderable" : "",
|
311
224
|
this.isHoverable ? "eui-table--hoverable" : "",
|
312
|
-
|
225
|
+
this.loading ? "eui-table__loading" : ""
|
313
226
|
].join(" ").trim();
|
314
227
|
}
|
315
|
-
constructor(euiTableSortService, cd, euiTableSelectableRowService, elementRef) {
|
316
|
-
super();
|
228
|
+
constructor(euiTableSortService, cd, euiTableSelectableRowService, elementRef, baseStatesDirective) {
|
317
229
|
this.euiTableSortService = euiTableSortService;
|
318
230
|
this.cd = cd;
|
319
231
|
this.euiTableSelectableRowService = euiTableSelectableRowService;
|
320
232
|
this.elementRef = elementRef;
|
233
|
+
this.baseStatesDirective = baseStatesDirective;
|
321
234
|
this.rows = [];
|
322
235
|
this.propId = "id";
|
236
|
+
this.e2eAttr = "eui-table";
|
323
237
|
this.preselectedRows = [];
|
324
|
-
this.
|
238
|
+
this.loading = false;
|
239
|
+
this.asyncTable = false;
|
240
|
+
this.paginable = false;
|
241
|
+
this.euiTableResponsive = false;
|
242
|
+
this.euiTableFixedLayout = false;
|
243
|
+
this.euiTableDraggable = false;
|
244
|
+
this.euiTableCards = false;
|
245
|
+
this.euiTableBordered = false;
|
246
|
+
this.euiTableCompact = false;
|
247
|
+
this.hasStickyHeader = false;
|
248
|
+
this.hasStickyColumns = false;
|
249
|
+
this.isSelectOnlyVisibleRows = false;
|
250
|
+
this.isColsOrderable = false;
|
251
|
+
this.isHoverable = false;
|
325
252
|
this.selectedRows = new EventEmitter();
|
326
253
|
this.sortChange = new EventEmitter();
|
327
254
|
this.multiSortChange = new EventEmitter();
|
@@ -330,20 +257,6 @@ var EuiTableComponent = class _EuiTableComponent extends BaseDirective {
|
|
330
257
|
this.pageSize = 0;
|
331
258
|
this.showStickyHeader = false;
|
332
259
|
this.filteredRows = [];
|
333
|
-
this._loading = false;
|
334
|
-
this._asyncTable = false;
|
335
|
-
this._paginable = false;
|
336
|
-
this._euiTableResponsive = false;
|
337
|
-
this._euiTableFixedLayout = false;
|
338
|
-
this._euiTableDraggable = false;
|
339
|
-
this._euiTableCards = false;
|
340
|
-
this._euiTableBordered = false;
|
341
|
-
this._euiTableCompact = false;
|
342
|
-
this._hasStickyHeader = false;
|
343
|
-
this._hasStickyColumns = false;
|
344
|
-
this._isSelectOnlyVisibleRows = false;
|
345
|
-
this._isColsOrderable = false;
|
346
|
-
this._isHoverable = false;
|
347
260
|
this.rowsSrc = null;
|
348
261
|
this.destroy$ = new Subject();
|
349
262
|
this.tableFeaturesHandlerSubscription = new Subscription();
|
@@ -390,9 +303,6 @@ var EuiTableComponent = class _EuiTableComponent extends BaseDirective {
|
|
390
303
|
this.rowsSrc = [...this.rows];
|
391
304
|
}
|
392
305
|
ngAfterContentInit() {
|
393
|
-
if (!this.e2eAttr) {
|
394
|
-
this.e2eAttr = "eui-table";
|
395
|
-
}
|
396
306
|
this.templates.forEach((item) => {
|
397
307
|
if (item.getType() === "header") {
|
398
308
|
this.headerTemplate = item.template;
|
@@ -432,9 +342,6 @@ var EuiTableComponent = class _EuiTableComponent extends BaseDirective {
|
|
432
342
|
this.destroy$.next(true);
|
433
343
|
this.destroy$.unsubscribe();
|
434
344
|
}
|
435
|
-
trackByFn(index) {
|
436
|
-
return index;
|
437
|
-
}
|
438
345
|
selectAllRows() {
|
439
346
|
this.euiTableSelectableRowService.selectAllRows();
|
440
347
|
}
|
@@ -716,31 +623,77 @@ var EuiTableComponent = class _EuiTableComponent extends BaseDirective {
|
|
716
623
|
return prop ? prop.split(".").reduce((prev, curr) => prev ? prev[curr] : null, obj || self) : null;
|
717
624
|
}
|
718
625
|
static {
|
719
|
-
this.ɵfac = i03.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i03, type: _EuiTableComponent, deps: [{ token: EuiTableSortService }, { token: i03.ChangeDetectorRef }, { token: EuiTableSelectableRowService }, { token: i03.ElementRef }], target: i03.ɵɵFactoryTarget.Component });
|
626
|
+
this.ɵfac = i03.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i03, type: _EuiTableComponent, deps: [{ token: EuiTableSortService }, { token: i03.ChangeDetectorRef }, { token: EuiTableSelectableRowService }, { token: i03.ElementRef }, { token: i3.BaseStatesDirective }], target: i03.ɵɵFactoryTarget.Component });
|
720
627
|
}
|
721
628
|
static {
|
722
|
-
this.ɵcmp = i03.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.0-next.4", type: _EuiTableComponent, selector: "eui-table, table[euiTable]", inputs: { rows: "rows", propId: "propId", paginator: "paginator", filter: "filter", preselectedRows: "preselectedRows", loading: "loading", asyncTable: "asyncTable", paginable: "paginable", euiTableResponsive: "euiTableResponsive", euiTableFixedLayout: "euiTableFixedLayout", euiTableDraggable: "euiTableDraggable", euiTableCards: "euiTableCards", euiTableBordered: "euiTableBordered", euiTableCompact: "euiTableCompact", hasStickyHeader: "hasStickyHeader", hasStickyColumns: "hasStickyColumns", isSelectOnlyVisibleRows: "isSelectOnlyVisibleRows", isColsOrderable: "isColsOrderable", isHoverable: "isHoverable" }, outputs: { selectedRows: "selectedRows", sortChange: "sortChange", multiSortChange: "multiSortChange" }, host: { properties: { "class": "this.cssClasses", "class.eui-table__loading": "this.hasLoading" } }, providers: [EuiTableSortService, EuiTableSelectableRowService], queries: [{ propertyName: "templates", predicate: EuiTemplateDirective }], viewQueries: [{ propertyName: "theadRef", first: true, predicate: ["theadRef"], descendants: true }, { propertyName: "tbodyRef", first: true, predicate: ["tbodyRef"], descendants: true }, { propertyName: "tfootRef", first: true, predicate: ["tfootRef"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i03, template: '<thead #theadRef *ngIf="headerTemplate">\n <ng-template [ngTemplateOutlet]="headerTemplate"></ng-template>\n</thead>\n<tbody #tbodyRef *ngIf="bodyTemplate">\n <ng-container *ngFor="let row of rowsRendered; let i = index; trackBy: trackByFn">\n <ng-template\n [ngTemplateOutlet]="bodyTemplate"\n [ngTemplateOutletContext]="{ $implicit: row, index: i + page * pageSize }">\n </ng-template>\n </ng-container>\n <ng-container *ngIf="emptyMessageTemplate && rowsRendered.length === 0">\n <ng-template [ngTemplateOutlet]="emptyMessageTemplate"></ng-template>\n </ng-container>\n</tbody>\n<tfoot #tfootRef *ngIf="footerTemplate">\n <ng-template [ngTemplateOutlet]="footerTemplate"></ng-template>\n</tfoot>\n', styles: ['.eui-table__scrollable-wrapper{overflow:auto}.eui-table__scrollable-wrapper::-webkit-scrollbar{display:inherit;height:10px;width:10px;background-color:var(--eui-base-color-grey-5)}.eui-table__scrollable-wrapper::-webkit-scrollbar-thumb{background-color:var(--eui-base-color-grey-20);border-radius:5rem}.eui-table__scrollable-wrapper::-webkit-scrollbar-thumb:hover{background-color:var(--eui-base-color-grey-50)}.eui-table__scrollable-wrapper::-webkit-scrollbar-track{background-color:var(--eui-base-color-grey-5);border-radius:0}.eui-table__orderable-cols-preview{background-color:var(--eui-base-color-grey-25);border-color:transparent;padding:calc(var(--eui-base-spacing-m) - 2px) var(--eui-base-spacing-s);cursor:move;opacity:.7}.eui-table{--eui-table-compact-scale-factor: .95;--eui-table-background-color: var(--eui-base-color-white);--eui-table-text-color: var(--eui-base-color-text);--eui-table-selected-row-background-color: var(--eui-base-color-primary-10);--eui-table-highlighted-background-color: var(--eui-base-color-accent-100);--eui-table-hover-background-color: var(--eui-base-color-primary-10);--eui-table-bordered-color: var(--eui-base-color-grey-15);--eui-table-loading-position: 50%;background-color:var(--eui-table-background-color);border-collapse:collapse;border-spacing:0;color:var(--eui-table-text-color);display:table;overflow:auto;-webkit-overflow-scrolling:touch;position:relative;width:auto}.eui-table thead>tr>th,.eui-table tbody>tr>td,.eui-table tfoot>tr>td{vertical-align:middle}.eui-table--bordered{box-shadow:var(--eui-base-shadow-1)}.eui-table--bordered td,.eui-table--bordered th{border:1px solid var(--eui-table-bordered-color)}.eui-table--compact thead th,.eui-table--compact thead tr{font-size:calc(var(--eui-base-font-size) * var(--eui-table-compact-scale-factor))!important;padding:var(--eui-base-spacing-s)!important}.eui-table--compact tbody tr{height:calc(2 * var(--eui-base-spacing-m))!important}.eui-table--compact tbody tr td{font-size:calc(var(--eui-base-font-size) * var(--eui-table-compact-scale-factor))!important;padding:0 var(--eui-base-spacing-s)!important}.eui-table--responsive{width:100%}.eui-table--fixed-layout{table-layout:fixed}.eui-table--highlighted{background-color:var(--eui-table-highlighted-background-color);text-decoration:none}.eui-table--hoverable tbody tr:hover,.eui-table--hoverable tbody tr:hover td{background-color:var(--eui-table-hover-background-color)!important}.eui-table--hoverable tbody tr:hover td:hover{background-color:var(--eui-base-color-primary-25)!important}.eui-table--cols-orderable .cdk-drag-placeholder{background-color:var(--eui-base-color-white);color:var(--eui-base-color-info-100);cursor:move;opacity:1}.eui-table--cols-orderable tr{display:table-row}.eui-table--cols-orderable tr th{cursor:move}.eui-table .actionsColumn,.eui-table__actions-column{text-align:center;width:calc(15 * var(--eui-base-spacing-m))}.eui-table.eui-table__loading:before{animation:.8s linear infinite spin;border:8px solid transparent;border-radius:50%;border-top-color:var(--eui-base-color-primary-100);content:"";display:block;height:80px;left:50%;margin:-40px 0 0 -40px;position:absolute;top:var(--eui-table-loading-position);width:80px;z-index:1000001}.eui-table.eui-table__loading tbody{opacity:var(--eui-base-disabled-opacity)}.eui-table thead tr.eui-table__columns-filter th{background-color:var(--eui-base-color-grey-5);position:relative;font:normal normal 400 1rem/1.75rem var(--eui-base-font-family)}.eui-table thead tr th{background-color:var(--eui-base-color-grey-10);padding:var(--eui-base-spacing-m) var(--eui-base-spacing-s);text-align:left;font:normal normal 400 1rem/1.75rem var(--eui-base-font-family);font-weight:700}.eui-table thead tr th .eui-resizable .eui-resizable-icon__container{transform:translateY(calc(var(--eui-base-spacing-l) + 2px + 2px))}.eui-table thead tr th.eui-table__sortable-col .eui-table__sortable-col-content{align-items:center;display:inline-flex;position:relative;vertical-align:middle;white-space:nowrap}.eui-table thead tr th.eui-table__sortable-col--disabled{cursor:default}.eui-table thead tr th .eui-table__sortable-icon-button{margin-left:var(--eui-base-spacing-2xs)}.eui-table thead tr th.eui-table__cell-select{color:var(--eui-base-color-grey-75);width:auto}.eui-table thead tr th.eui-table__cell-select .eui-table__cell-select-checkbox-container{display:flex}.eui-table thead tr th.eui-table__cell-select .eui-table__cell-select--indeterminated{position:absolute;right:50%;top:var(--eui-base-spacing-s);transform:translate(50%)}.eui-table tbody tr{border-top:1px solid var(--eui-base-color-grey-15);height:calc(3 * var(--eui-base-spacing-m))}.eui-table tbody tr.eui-table__row--selected,.eui-table tbody tr.eui-table__row--selected td{background-color:var(--eui-table-selected-row-background-color)!important}.eui-table tbody tr:not(.eui-table-expandable-row):nth-child(odd){background-color:var(--eui-base-color-grey-2)}.eui-table tbody tr:not(.eui-table-expandable-row):nth-child(odd) td{background-color:var(--eui-base-color-grey-2)}.eui-table tbody tr td{padding:var(--eui-base-spacing-xs) var(--eui-base-spacing-s);vertical-align:middle}.eui-table tbody tr td.eui-table__cell-select{color:var(--eui-base-color-grey-75);width:auto}.eui-table tbody tr td.eui-table__cell-select .eui-table__cell-select-checkbox-container{display:flex}.eui-table tbody tr:nth-of-type(odd){background-color:var(--eui-base-color-white)}.eui-table tbody tr:nth-of-type(2n){background-color:var(--eui-base-color-grey-5)}.eui-table tbody tr:nth-of-type(2n) td{background-color:var(--eui-base-color-grey-5)}.eui-table tfoot tr{border-bottom:1px solid var(--eui-base-color-grey-15);border-top:1px solid var(--eui-base-color-grey-15)}.eui-table tfoot tr td{padding:var(--eui-base-spacing-s);vertical-align:middle}.eui-table__sticky-container{overflow:auto}.eui-table__sticky-container::-webkit-scrollbar{display:inherit;height:8px;width:8px;background-color:var(--eui-base-color-grey-5)}.eui-table__sticky-container::-webkit-scrollbar-thumb{background-color:var(--eui-base-color-grey-20);border-radius:5rem}.eui-table__sticky-container::-webkit-scrollbar-thumb:hover{background-color:var(--eui-base-color-grey-50)}.eui-table__sticky-container::-webkit-scrollbar-track{background-color:var(--eui-base-color-grey-5);border-radius:0}.eui-table--sticky-header thead tr th{position:sticky;top:0;z-index:8}.eui-table--sticky-columns .eui-table__col--sticky{position:sticky}.eui-table--sticky-columns th.eui-table__col--sticky{z-index:9}.eui-table--sticky-columns th.eui-table__col--sticky.eui-table__col--sticky-shadowed-first{box-shadow:inset -5px 0 8px -8px #0003}.eui-table--sticky-columns th.eui-table__col--sticky.eui-table__col--sticky-shadowed-last{box-shadow:inset 5px 0 8px -8px #0003}.eui-table--sticky-columns td.eui-table__col--sticky{z-index:8}.eui-table--sticky-columns td.eui-table__col--sticky.eui-table__col--sticky-shadowed-first{box-shadow:inset -5px 0 8px -8px #0003}.eui-table--sticky-columns td.eui-table__col--sticky.eui-table__col--sticky-shadowed-last{box-shadow:inset 5px 0 8px -8px #0003}@media screen and (max-width: 767px){.eui-table:not(.eui-table-cards).eui-table--responsive{width:100%!important}.eui-table:not(.eui-table-cards).eui-table--responsive thead,.eui-table:not(.eui-table-cards).eui-table--responsive tbody,.eui-table:not(.eui-table-cards).eui-table--responsive tfoot,.eui-table:not(.eui-table-cards).eui-table--responsive th,.eui-table:not(.eui-table-cards).eui-table--responsive td,.eui-table:not(.eui-table-cards).eui-table--responsive tr{display:block}.eui-table:not(.eui-table-cards).eui-table--responsive thead tr{left:-9999px;position:absolute;top:-9999px}.eui-table:not(.eui-table-cards).eui-table--responsive tr{height:auto}.eui-table:not(.eui-table-cards).eui-table--responsive td{border:none;border-bottom:1px solid var(--eui-base-color-grey-10);padding-left:50%;position:relative;text-align:left!important}.eui-table:not(.eui-table-cards).eui-table--responsive td:before{color:var(--eui-base-color-grey-80);content:attr(data-col-label);left:var(--eui-base-spacing-xs);padding-right:var(--eui-base-spacing-xs);position:absolute;width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:normal normal 400 1rem/1.75rem var(--eui-base-font-family);font-weight:700}.eui-table:not(.eui-table-cards) .actionsColumn,.eui-table:not(.eui-table-cards) .actions-column{justify-content:flex-start;text-align:left;width:100%}.eui-table__sticky-container{height:auto!important;width:auto!important}.eui-table--sticky-columns th,.eui-table--sticky-columns td,.eui-table--sticky-columns th .eui-table__col--sticky,.eui-table--sticky-columns td .eui-table__col--sticky{width:auto;z-index:auto}.eui-table--sticky-columns th .eui-table__col--sticky.eui-table__col--sticky-shadowed-first,.eui-table--sticky-columns th .eui-table__col--sticky.eui-table__col--sticky-shadowed-last,.eui-table--sticky-columns td .eui-table__col--sticky.eui-table__col--sticky-shadowed-first,.eui-table--sticky-columns td .eui-table__col--sticky.eui-table__col--sticky-shadowed-last{box-shadow:none!important}.eui-table--sticky-columns tfoot tr td:empty{display:none!important}}.eui-table__filter{align-items:center;display:flex;justify-content:flex-end;position:relative}.eui-table__filter--responsive{width:100%}.eui-table__filter-input{padding-left:var(--eui-base-spacing-2xl)!important}.eui-table__filter-search-icon{left:var(--eui-base-spacing-xs);position:absolute;top:calc(var(--eui-base-spacing-xs) + 2px)}@media screen and (max-width: 767px){.eui-table__filter--responsive{display:block;width:100%}}.eui-table__draggable-preview--no-preview.cdk-drag-preview{display:none}.eui-table--draggable tr.eui-table__draggable-preview--no-placeholder{opacity:1}.eui-table--draggable tr:hover{background-color:var(--eui-base-color-accent-5)}.eui-table--draggable td .cdk-drop-list{flex-direction:column}.eui-table-cards{background-color:transparent;display:flex;flex-direction:column;overflow:hidden;width:100%}.eui-table-cards thead{width:100%}.eui-table-cards thead tr{align-items:center;height:auto}.eui-table-cards thead tr th{position:relative;vertical-align:middle;width:100%}.eui-table-cards thead tr th.eui-table__cell-select{padding:var(--eui-base-spacing-s) var(--eui-base-spacing-m);width:auto}.eui-table-cards thead tr th.eui-table__cell-select .eui-table__cell-select-checkbox-container{display:flex}.eui-table-cards tbody{width:100%}.eui-table-cards tbody tr{align-items:center;border-top:0;display:flex;height:auto;width:100%}.eui-table-cards tbody tr.eui-table__row--selected .eui-card:first-child{--eui-card-header-background-color: var(--eui-table-selected-row-background-color)}.eui-table-cards tbody tr td{position:relative;vertical-align:middle;width:100%}.eui-table-cards tbody tr td.eui-table__cell-select{padding:var(--eui-base-spacing-s) var(--eui-base-spacing-m);width:auto}.eui-table-cards tbody tr td.eui-table__cell-select .eui-table__cell-select-checkbox-container{display:flex}.eui-table-cards tbody tr:hover{background-color:transparent}.eui-table-cards tbody tr:not(.eui-table-expandable-row):nth-child(odd){background-color:transparent}.eui-table-cards tbody tr:nth-of-type(2n){background-color:transparent}.eui-table-cards tbody tr:nth-of-type(2n):hover:not(.eui-table__row--selected){background-color:transparent}.eui-table-cards tbody tr:nth-of-type(odd):hover:not(.eui-table__row--selected){background-color:transparent}\n'], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i03.ChangeDetectionStrategy.OnPush, encapsulation: i03.ViewEncapsulation.None });
|
629
|
+
this.ɵcmp = i03.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.0-next.4", type: _EuiTableComponent, selector: "eui-table, table[euiTable]", inputs: { rows: "rows", propId: "propId", e2eAttr: "e2eAttr", paginator: "paginator", filter: "filter", preselectedRows: "preselectedRows", loading: ["loading", "loading", booleanAttribute], asyncTable: ["asyncTable", "asyncTable", booleanAttribute], paginable: ["paginable", "paginable", booleanAttribute], euiTableResponsive: ["euiTableResponsive", "euiTableResponsive", booleanAttribute], euiTableFixedLayout: ["euiTableFixedLayout", "euiTableFixedLayout", booleanAttribute], euiTableDraggable: ["euiTableDraggable", "euiTableDraggable", booleanAttribute], euiTableCards: ["euiTableCards", "euiTableCards", booleanAttribute], euiTableBordered: ["euiTableBordered", "euiTableBordered", booleanAttribute], euiTableCompact: ["euiTableCompact", "euiTableCompact", booleanAttribute], hasStickyHeader: ["hasStickyHeader", "hasStickyHeader", booleanAttribute], hasStickyColumns: ["hasStickyColumns", "hasStickyColumns", booleanAttribute], isSelectOnlyVisibleRows: ["isSelectOnlyVisibleRows", "isSelectOnlyVisibleRows", booleanAttribute], isColsOrderable: ["isColsOrderable", "isColsOrderable", booleanAttribute], isHoverable: ["isHoverable", "isHoverable", booleanAttribute] }, outputs: { selectedRows: "selectedRows", sortChange: "sortChange", multiSortChange: "multiSortChange" }, host: { properties: { "class": "this.cssClasses" } }, providers: [EuiTableSortService, EuiTableSelectableRowService], queries: [{ propertyName: "templates", predicate: EuiTemplateDirective }], viewQueries: [{ propertyName: "theadRef", first: true, predicate: ["theadRef"], descendants: true }, { propertyName: "tbodyRef", first: true, predicate: ["tbodyRef"], descendants: true }, { propertyName: "tfootRef", first: true, predicate: ["tfootRef"], descendants: true }], usesOnChanges: true, hostDirectives: [{ directive: i3.BaseStatesDirective }], ngImport: i03, template: '@if (headerTemplate) {\n <thead #theadRef>\n <ng-template [ngTemplateOutlet]="headerTemplate"></ng-template>\n </thead>\n}\n@if (bodyTemplate) {\n <tbody #tbodyRef>\n @for (row of rowsRendered; let i = $index; track row) {\n <ng-template\n [ngTemplateOutlet]="bodyTemplate"\n [ngTemplateOutletContext]="{ $implicit: row, index: i + page * pageSize }">\n </ng-template>\n }\n\n @if (emptyMessageTemplate && rowsRendered.length === 0) {\n <ng-template [ngTemplateOutlet]="emptyMessageTemplate"></ng-template>\n }\n </tbody>\n}\n@if (footerTemplate) {\n <tfoot #tfootRef>\n <ng-template [ngTemplateOutlet]="footerTemplate"></ng-template>\n </tfoot>\n}\n', styles: ['.eui-table__scrollable-wrapper{overflow:auto}.eui-table__scrollable-wrapper::-webkit-scrollbar{display:inherit;height:10px;width:10px;background-color:var(--eui-base-color-grey-5)}.eui-table__scrollable-wrapper::-webkit-scrollbar-thumb{background-color:var(--eui-base-color-grey-20);border-radius:5rem}.eui-table__scrollable-wrapper::-webkit-scrollbar-thumb:hover{background-color:var(--eui-base-color-grey-50)}.eui-table__scrollable-wrapper::-webkit-scrollbar-track{background-color:var(--eui-base-color-grey-5);border-radius:0}.eui-table__orderable-cols-preview{background-color:var(--eui-base-color-grey-25);border-color:transparent;padding:calc(var(--eui-base-spacing-m) - 2px) var(--eui-base-spacing-s);cursor:move;opacity:.7}.eui-table{--eui-table-compact-scale-factor: .95;--eui-table-background-color: var(--eui-base-color-white);--eui-table-text-color: var(--eui-base-color-text);--eui-table-selected-row-background-color: var(--eui-base-color-primary-10);--eui-table-highlighted-background-color: var(--eui-base-color-accent-100);--eui-table-hover-background-color: var(--eui-base-color-primary-10);--eui-table-bordered-color: var(--eui-base-color-grey-15);--eui-table-loading-position: 50%;background-color:var(--eui-table-background-color);border-collapse:collapse;border-spacing:0;color:var(--eui-table-text-color);display:table;overflow:auto;-webkit-overflow-scrolling:touch;position:relative;width:auto}.eui-table thead>tr>th,.eui-table tbody>tr>td,.eui-table tfoot>tr>td{vertical-align:middle}.eui-table--bordered{box-shadow:var(--eui-base-shadow-1)}.eui-table--bordered td,.eui-table--bordered th{border:1px solid var(--eui-table-bordered-color)}.eui-table--compact thead th,.eui-table--compact thead tr{font-size:calc(var(--eui-base-font-size) * var(--eui-table-compact-scale-factor))!important;padding:var(--eui-base-spacing-s)!important}.eui-table--compact tbody tr{height:calc(2 * var(--eui-base-spacing-m))!important}.eui-table--compact tbody tr td{font-size:calc(var(--eui-base-font-size) * var(--eui-table-compact-scale-factor))!important;padding:0 var(--eui-base-spacing-s)!important}.eui-table--responsive{width:100%}.eui-table--fixed-layout{table-layout:fixed}.eui-table--highlighted{background-color:var(--eui-table-highlighted-background-color);text-decoration:none}.eui-table--hoverable tbody tr:hover,.eui-table--hoverable tbody tr:hover td{background-color:var(--eui-table-hover-background-color)!important}.eui-table--hoverable tbody tr:hover td:hover{background-color:var(--eui-base-color-info-25)!important}.eui-table--cols-orderable .cdk-drag-placeholder{background-color:var(--eui-base-color-white);color:var(--eui-base-color-info-100);cursor:move;opacity:1}.eui-table--cols-orderable tr{display:table-row}.eui-table--cols-orderable tr th{cursor:move}.eui-table .actionsColumn,.eui-table__actions-column{text-align:center;width:calc(15 * var(--eui-base-spacing-m))}.eui-table.eui-table__loading:before{animation:.8s linear infinite spin;border:8px solid transparent;border-radius:50%;border-top-color:var(--eui-base-color-info-130);content:"";display:block;height:80px;left:50%;margin:-40px 0 0 -40px;position:absolute;top:var(--eui-table-loading-position);width:80px;z-index:1000001}.eui-table.eui-table__loading tbody{opacity:var(--eui-base-disabled-opacity)}.eui-table thead tr.eui-table__columns-filter th{background-color:var(--eui-base-color-grey-5);position:relative;font:normal normal 400 1rem/1.75rem var(--eui-base-font-family)}.eui-table thead tr th{background-color:var(--eui-base-color-grey-10);padding:var(--eui-base-spacing-m) var(--eui-base-spacing-s);text-align:left;font:normal normal 400 1rem/1.75rem var(--eui-base-font-family);font-weight:700}.eui-table thead tr th .eui-resizable .eui-resizable-icon__container{transform:translateY(calc(var(--eui-base-spacing-l) + 2px + 2px))}.eui-table thead tr th.eui-table__sortable-col .eui-table__sortable-col-content{align-items:center;display:inline-flex;position:relative;vertical-align:middle;white-space:nowrap}.eui-table thead tr th.eui-table__sortable-col--disabled{cursor:default}.eui-table thead tr th .eui-table__sortable-icon-button{margin-left:var(--eui-base-spacing-2xs)}.eui-table thead tr th.eui-table__cell-select{color:var(--eui-base-color-grey-75);width:auto}.eui-table thead tr th.eui-table__cell-select .eui-table__cell-select-checkbox-container{display:flex}.eui-table thead tr th.eui-table__cell-select .eui-table__cell-select--indeterminated{position:absolute;right:50%;top:var(--eui-base-spacing-s);transform:translate(50%)}.eui-table tbody tr{border-top:1px solid var(--eui-base-color-grey-15);height:calc(3 * var(--eui-base-spacing-m))}.eui-table tbody tr.eui-table__row--selected,.eui-table tbody tr.eui-table__row--selected td{background-color:var(--eui-table-selected-row-background-color)!important}.eui-table tbody tr:not(.eui-table-expandable-row):nth-child(odd){background-color:var(--eui-base-color-grey-2)}.eui-table tbody tr:not(.eui-table-expandable-row):nth-child(odd) td{background-color:var(--eui-base-color-grey-2)}.eui-table tbody tr td{padding:var(--eui-base-spacing-xs) var(--eui-base-spacing-s);vertical-align:middle}.eui-table tbody tr td.eui-table__cell-select{color:var(--eui-base-color-grey-75);width:auto}.eui-table tbody tr td.eui-table__cell-select .eui-table__cell-select-checkbox-container{display:flex}.eui-table tbody tr:nth-of-type(odd){background-color:var(--eui-base-color-white)}.eui-table tbody tr:nth-of-type(2n){background-color:var(--eui-base-color-grey-5)}.eui-table tbody tr:nth-of-type(2n) td{background-color:var(--eui-base-color-grey-5)}.eui-table tfoot tr{border-bottom:1px solid var(--eui-base-color-grey-15);border-top:1px solid var(--eui-base-color-grey-15)}.eui-table tfoot tr td{padding:var(--eui-base-spacing-s);vertical-align:middle}.eui-table__sticky-container{overflow:auto}.eui-table__sticky-container::-webkit-scrollbar{display:inherit;height:8px;width:8px;background-color:var(--eui-base-color-grey-5)}.eui-table__sticky-container::-webkit-scrollbar-thumb{background-color:var(--eui-base-color-grey-20);border-radius:5rem}.eui-table__sticky-container::-webkit-scrollbar-thumb:hover{background-color:var(--eui-base-color-grey-50)}.eui-table__sticky-container::-webkit-scrollbar-track{background-color:var(--eui-base-color-grey-5);border-radius:0}.eui-table--sticky-header thead tr th{position:sticky;top:0;z-index:8}.eui-table--sticky-columns .eui-table__col--sticky{position:sticky}.eui-table--sticky-columns th.eui-table__col--sticky{z-index:9}.eui-table--sticky-columns th.eui-table__col--sticky.eui-table__col--sticky-shadowed-first{box-shadow:inset -5px 0 8px -8px #0003}.eui-table--sticky-columns th.eui-table__col--sticky.eui-table__col--sticky-shadowed-last{box-shadow:inset 5px 0 8px -8px #0003}.eui-table--sticky-columns td.eui-table__col--sticky{z-index:8}.eui-table--sticky-columns td.eui-table__col--sticky.eui-table__col--sticky-shadowed-first{box-shadow:inset -5px 0 8px -8px #0003}.eui-table--sticky-columns td.eui-table__col--sticky.eui-table__col--sticky-shadowed-last{box-shadow:inset 5px 0 8px -8px #0003}@media screen and (max-width: 767px){.eui-table:not(.eui-table-cards).eui-table--responsive{width:100%!important}.eui-table:not(.eui-table-cards).eui-table--responsive thead,.eui-table:not(.eui-table-cards).eui-table--responsive tbody,.eui-table:not(.eui-table-cards).eui-table--responsive tfoot,.eui-table:not(.eui-table-cards).eui-table--responsive th,.eui-table:not(.eui-table-cards).eui-table--responsive td,.eui-table:not(.eui-table-cards).eui-table--responsive tr{display:block}.eui-table:not(.eui-table-cards).eui-table--responsive thead tr{left:-9999px;position:absolute;top:-9999px}.eui-table:not(.eui-table-cards).eui-table--responsive tr{height:auto}.eui-table:not(.eui-table-cards).eui-table--responsive td{border:none;border-bottom:1px solid var(--eui-base-color-grey-10);padding-left:50%;position:relative;text-align:left!important}.eui-table:not(.eui-table-cards).eui-table--responsive td:before{color:var(--eui-base-color-grey-80);content:attr(data-col-label);left:var(--eui-base-spacing-xs);padding-right:var(--eui-base-spacing-xs);position:absolute;width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:normal normal 400 1rem/1.75rem var(--eui-base-font-family);font-weight:700}.eui-table:not(.eui-table-cards) .actionsColumn,.eui-table:not(.eui-table-cards) .actions-column{justify-content:flex-start;text-align:left;width:100%}.eui-table__sticky-container{height:auto!important;width:auto!important}.eui-table--sticky-columns th,.eui-table--sticky-columns td,.eui-table--sticky-columns th .eui-table__col--sticky,.eui-table--sticky-columns td .eui-table__col--sticky{width:auto;z-index:auto}.eui-table--sticky-columns th .eui-table__col--sticky.eui-table__col--sticky-shadowed-first,.eui-table--sticky-columns th .eui-table__col--sticky.eui-table__col--sticky-shadowed-last,.eui-table--sticky-columns td .eui-table__col--sticky.eui-table__col--sticky-shadowed-first,.eui-table--sticky-columns td .eui-table__col--sticky.eui-table__col--sticky-shadowed-last{box-shadow:none!important}.eui-table--sticky-columns tfoot tr td:empty{display:none!important}}.eui-table__filter{align-items:center;display:flex;justify-content:flex-end;position:relative}.eui-table__filter--responsive{width:100%}.eui-table__filter-input{padding-left:var(--eui-base-spacing-2xl)!important}.eui-table__filter-search-icon{left:var(--eui-base-spacing-xs);position:absolute;top:calc(var(--eui-base-spacing-xs) + 2px)}@media screen and (max-width: 767px){.eui-table__filter--responsive{display:block;width:100%}}.eui-table__draggable-preview--no-preview.cdk-drag-preview{display:none}.eui-table--draggable tr.eui-table__draggable-preview--no-placeholder{opacity:1}.eui-table--draggable tr:hover{background-color:var(--eui-base-color-accent-5)}.eui-table--draggable td .cdk-drop-list{flex-direction:column}.eui-table-cards{background-color:transparent;display:flex;flex-direction:column;overflow:hidden;width:100%}.eui-table-cards thead{width:100%}.eui-table-cards thead tr{align-items:center;height:auto}.eui-table-cards thead tr th{position:relative;vertical-align:middle;width:100%}.eui-table-cards thead tr th.eui-table__cell-select{padding:var(--eui-base-spacing-s) var(--eui-base-spacing-m);width:auto}.eui-table-cards thead tr th.eui-table__cell-select .eui-table__cell-select-checkbox-container{display:flex}.eui-table-cards tbody{width:100%}.eui-table-cards tbody tr{align-items:center;border-top:0;display:flex;height:auto;width:100%}.eui-table-cards tbody tr.eui-table__row--selected .eui-card:first-child{--eui-card-header-background-color: var(--eui-table-selected-row-background-color)}.eui-table-cards tbody tr td{position:relative;vertical-align:middle;width:100%}.eui-table-cards tbody tr td.eui-table__cell-select{padding:var(--eui-base-spacing-s) var(--eui-base-spacing-m);width:auto}.eui-table-cards tbody tr td.eui-table__cell-select .eui-table__cell-select-checkbox-container{display:flex}.eui-table-cards tbody tr:hover{background-color:transparent}.eui-table-cards tbody tr:not(.eui-table-expandable-row):nth-child(odd){background-color:transparent}.eui-table-cards tbody tr:nth-of-type(2n){background-color:transparent}.eui-table-cards tbody tr:nth-of-type(2n):hover:not(.eui-table__row--selected){background-color:transparent}.eui-table-cards tbody tr:nth-of-type(odd):hover:not(.eui-table__row--selected){background-color:transparent}\n'], dependencies: [{ kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i03.ChangeDetectionStrategy.OnPush, encapsulation: i03.ViewEncapsulation.None });
|
723
630
|
}
|
724
631
|
};
|
725
632
|
i03.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i03, type: EuiTableComponent, decorators: [{
|
726
633
|
type: Component,
|
727
|
-
args: [{ selector: "eui-table, table[euiTable]", encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [EuiTableSortService, EuiTableSelectableRowService], template: '<thead #theadRef *ngIf="headerTemplate">\n <ng-template [ngTemplateOutlet]="headerTemplate"></ng-template>\n</thead>\n<tbody #tbodyRef *ngIf="bodyTemplate">\n <ng-container *ngFor="let row of rowsRendered; let i = index; trackBy: trackByFn">\n <ng-template\n [ngTemplateOutlet]="bodyTemplate"\n [ngTemplateOutletContext]="{ $implicit: row, index: i + page * pageSize }">\n </ng-template>\n </ng-container>\n <ng-container *ngIf="emptyMessageTemplate && rowsRendered.length === 0">\n <ng-template [ngTemplateOutlet]="emptyMessageTemplate"></ng-template>\n </ng-container>\n</tbody>\n<tfoot #tfootRef *ngIf="footerTemplate">\n <ng-template [ngTemplateOutlet]="footerTemplate"></ng-template>\n</tfoot>\n', styles: ['.eui-table__scrollable-wrapper{overflow:auto}.eui-table__scrollable-wrapper::-webkit-scrollbar{display:inherit;height:10px;width:10px;background-color:var(--eui-base-color-grey-5)}.eui-table__scrollable-wrapper::-webkit-scrollbar-thumb{background-color:var(--eui-base-color-grey-20);border-radius:5rem}.eui-table__scrollable-wrapper::-webkit-scrollbar-thumb:hover{background-color:var(--eui-base-color-grey-50)}.eui-table__scrollable-wrapper::-webkit-scrollbar-track{background-color:var(--eui-base-color-grey-5);border-radius:0}.eui-table__orderable-cols-preview{background-color:var(--eui-base-color-grey-25);border-color:transparent;padding:calc(var(--eui-base-spacing-m) - 2px) var(--eui-base-spacing-s);cursor:move;opacity:.7}.eui-table{--eui-table-compact-scale-factor: .95;--eui-table-background-color: var(--eui-base-color-white);--eui-table-text-color: var(--eui-base-color-text);--eui-table-selected-row-background-color: var(--eui-base-color-primary-10);--eui-table-highlighted-background-color: var(--eui-base-color-accent-100);--eui-table-hover-background-color: var(--eui-base-color-primary-10);--eui-table-bordered-color: var(--eui-base-color-grey-15);--eui-table-loading-position: 50%;background-color:var(--eui-table-background-color);border-collapse:collapse;border-spacing:0;color:var(--eui-table-text-color);display:table;overflow:auto;-webkit-overflow-scrolling:touch;position:relative;width:auto}.eui-table thead>tr>th,.eui-table tbody>tr>td,.eui-table tfoot>tr>td{vertical-align:middle}.eui-table--bordered{box-shadow:var(--eui-base-shadow-1)}.eui-table--bordered td,.eui-table--bordered th{border:1px solid var(--eui-table-bordered-color)}.eui-table--compact thead th,.eui-table--compact thead tr{font-size:calc(var(--eui-base-font-size) * var(--eui-table-compact-scale-factor))!important;padding:var(--eui-base-spacing-s)!important}.eui-table--compact tbody tr{height:calc(2 * var(--eui-base-spacing-m))!important}.eui-table--compact tbody tr td{font-size:calc(var(--eui-base-font-size) * var(--eui-table-compact-scale-factor))!important;padding:0 var(--eui-base-spacing-s)!important}.eui-table--responsive{width:100%}.eui-table--fixed-layout{table-layout:fixed}.eui-table--highlighted{background-color:var(--eui-table-highlighted-background-color);text-decoration:none}.eui-table--hoverable tbody tr:hover,.eui-table--hoverable tbody tr:hover td{background-color:var(--eui-table-hover-background-color)!important}.eui-table--hoverable tbody tr:hover td:hover{background-color:var(--eui-base-color-primary-25)!important}.eui-table--cols-orderable .cdk-drag-placeholder{background-color:var(--eui-base-color-white);color:var(--eui-base-color-info-100);cursor:move;opacity:1}.eui-table--cols-orderable tr{display:table-row}.eui-table--cols-orderable tr th{cursor:move}.eui-table .actionsColumn,.eui-table__actions-column{text-align:center;width:calc(15 * var(--eui-base-spacing-m))}.eui-table.eui-table__loading:before{animation:.8s linear infinite spin;border:8px solid transparent;border-radius:50%;border-top-color:var(--eui-base-color-primary-100);content:"";display:block;height:80px;left:50%;margin:-40px 0 0 -40px;position:absolute;top:var(--eui-table-loading-position);width:80px;z-index:1000001}.eui-table.eui-table__loading tbody{opacity:var(--eui-base-disabled-opacity)}.eui-table thead tr.eui-table__columns-filter th{background-color:var(--eui-base-color-grey-5);position:relative;font:normal normal 400 1rem/1.75rem var(--eui-base-font-family)}.eui-table thead tr th{background-color:var(--eui-base-color-grey-10);padding:var(--eui-base-spacing-m) var(--eui-base-spacing-s);text-align:left;font:normal normal 400 1rem/1.75rem var(--eui-base-font-family);font-weight:700}.eui-table thead tr th .eui-resizable .eui-resizable-icon__container{transform:translateY(calc(var(--eui-base-spacing-l) + 2px + 2px))}.eui-table thead tr th.eui-table__sortable-col .eui-table__sortable-col-content{align-items:center;display:inline-flex;position:relative;vertical-align:middle;white-space:nowrap}.eui-table thead tr th.eui-table__sortable-col--disabled{cursor:default}.eui-table thead tr th .eui-table__sortable-icon-button{margin-left:var(--eui-base-spacing-2xs)}.eui-table thead tr th.eui-table__cell-select{color:var(--eui-base-color-grey-75);width:auto}.eui-table thead tr th.eui-table__cell-select .eui-table__cell-select-checkbox-container{display:flex}.eui-table thead tr th.eui-table__cell-select .eui-table__cell-select--indeterminated{position:absolute;right:50%;top:var(--eui-base-spacing-s);transform:translate(50%)}.eui-table tbody tr{border-top:1px solid var(--eui-base-color-grey-15);height:calc(3 * var(--eui-base-spacing-m))}.eui-table tbody tr.eui-table__row--selected,.eui-table tbody tr.eui-table__row--selected td{background-color:var(--eui-table-selected-row-background-color)!important}.eui-table tbody tr:not(.eui-table-expandable-row):nth-child(odd){background-color:var(--eui-base-color-grey-2)}.eui-table tbody tr:not(.eui-table-expandable-row):nth-child(odd) td{background-color:var(--eui-base-color-grey-2)}.eui-table tbody tr td{padding:var(--eui-base-spacing-xs) var(--eui-base-spacing-s);vertical-align:middle}.eui-table tbody tr td.eui-table__cell-select{color:var(--eui-base-color-grey-75);width:auto}.eui-table tbody tr td.eui-table__cell-select .eui-table__cell-select-checkbox-container{display:flex}.eui-table tbody tr:nth-of-type(odd){background-color:var(--eui-base-color-white)}.eui-table tbody tr:nth-of-type(2n){background-color:var(--eui-base-color-grey-5)}.eui-table tbody tr:nth-of-type(2n) td{background-color:var(--eui-base-color-grey-5)}.eui-table tfoot tr{border-bottom:1px solid var(--eui-base-color-grey-15);border-top:1px solid var(--eui-base-color-grey-15)}.eui-table tfoot tr td{padding:var(--eui-base-spacing-s);vertical-align:middle}.eui-table__sticky-container{overflow:auto}.eui-table__sticky-container::-webkit-scrollbar{display:inherit;height:8px;width:8px;background-color:var(--eui-base-color-grey-5)}.eui-table__sticky-container::-webkit-scrollbar-thumb{background-color:var(--eui-base-color-grey-20);border-radius:5rem}.eui-table__sticky-container::-webkit-scrollbar-thumb:hover{background-color:var(--eui-base-color-grey-50)}.eui-table__sticky-container::-webkit-scrollbar-track{background-color:var(--eui-base-color-grey-5);border-radius:0}.eui-table--sticky-header thead tr th{position:sticky;top:0;z-index:8}.eui-table--sticky-columns .eui-table__col--sticky{position:sticky}.eui-table--sticky-columns th.eui-table__col--sticky{z-index:9}.eui-table--sticky-columns th.eui-table__col--sticky.eui-table__col--sticky-shadowed-first{box-shadow:inset -5px 0 8px -8px #0003}.eui-table--sticky-columns th.eui-table__col--sticky.eui-table__col--sticky-shadowed-last{box-shadow:inset 5px 0 8px -8px #0003}.eui-table--sticky-columns td.eui-table__col--sticky{z-index:8}.eui-table--sticky-columns td.eui-table__col--sticky.eui-table__col--sticky-shadowed-first{box-shadow:inset -5px 0 8px -8px #0003}.eui-table--sticky-columns td.eui-table__col--sticky.eui-table__col--sticky-shadowed-last{box-shadow:inset 5px 0 8px -8px #0003}@media screen and (max-width: 767px){.eui-table:not(.eui-table-cards).eui-table--responsive{width:100%!important}.eui-table:not(.eui-table-cards).eui-table--responsive thead,.eui-table:not(.eui-table-cards).eui-table--responsive tbody,.eui-table:not(.eui-table-cards).eui-table--responsive tfoot,.eui-table:not(.eui-table-cards).eui-table--responsive th,.eui-table:not(.eui-table-cards).eui-table--responsive td,.eui-table:not(.eui-table-cards).eui-table--responsive tr{display:block}.eui-table:not(.eui-table-cards).eui-table--responsive thead tr{left:-9999px;position:absolute;top:-9999px}.eui-table:not(.eui-table-cards).eui-table--responsive tr{height:auto}.eui-table:not(.eui-table-cards).eui-table--responsive td{border:none;border-bottom:1px solid var(--eui-base-color-grey-10);padding-left:50%;position:relative;text-align:left!important}.eui-table:not(.eui-table-cards).eui-table--responsive td:before{color:var(--eui-base-color-grey-80);content:attr(data-col-label);left:var(--eui-base-spacing-xs);padding-right:var(--eui-base-spacing-xs);position:absolute;width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:normal normal 400 1rem/1.75rem var(--eui-base-font-family);font-weight:700}.eui-table:not(.eui-table-cards) .actionsColumn,.eui-table:not(.eui-table-cards) .actions-column{justify-content:flex-start;text-align:left;width:100%}.eui-table__sticky-container{height:auto!important;width:auto!important}.eui-table--sticky-columns th,.eui-table--sticky-columns td,.eui-table--sticky-columns th .eui-table__col--sticky,.eui-table--sticky-columns td .eui-table__col--sticky{width:auto;z-index:auto}.eui-table--sticky-columns th .eui-table__col--sticky.eui-table__col--sticky-shadowed-first,.eui-table--sticky-columns th .eui-table__col--sticky.eui-table__col--sticky-shadowed-last,.eui-table--sticky-columns td .eui-table__col--sticky.eui-table__col--sticky-shadowed-first,.eui-table--sticky-columns td .eui-table__col--sticky.eui-table__col--sticky-shadowed-last{box-shadow:none!important}.eui-table--sticky-columns tfoot tr td:empty{display:none!important}}.eui-table__filter{align-items:center;display:flex;justify-content:flex-end;position:relative}.eui-table__filter--responsive{width:100%}.eui-table__filter-input{padding-left:var(--eui-base-spacing-2xl)!important}.eui-table__filter-search-icon{left:var(--eui-base-spacing-xs);position:absolute;top:calc(var(--eui-base-spacing-xs) + 2px)}@media screen and (max-width: 767px){.eui-table__filter--responsive{display:block;width:100%}}.eui-table__draggable-preview--no-preview.cdk-drag-preview{display:none}.eui-table--draggable tr.eui-table__draggable-preview--no-placeholder{opacity:1}.eui-table--draggable tr:hover{background-color:var(--eui-base-color-accent-5)}.eui-table--draggable td .cdk-drop-list{flex-direction:column}.eui-table-cards{background-color:transparent;display:flex;flex-direction:column;overflow:hidden;width:100%}.eui-table-cards thead{width:100%}.eui-table-cards thead tr{align-items:center;height:auto}.eui-table-cards thead tr th{position:relative;vertical-align:middle;width:100%}.eui-table-cards thead tr th.eui-table__cell-select{padding:var(--eui-base-spacing-s) var(--eui-base-spacing-m);width:auto}.eui-table-cards thead tr th.eui-table__cell-select .eui-table__cell-select-checkbox-container{display:flex}.eui-table-cards tbody{width:100%}.eui-table-cards tbody tr{align-items:center;border-top:0;display:flex;height:auto;width:100%}.eui-table-cards tbody tr.eui-table__row--selected .eui-card:first-child{--eui-card-header-background-color: var(--eui-table-selected-row-background-color)}.eui-table-cards tbody tr td{position:relative;vertical-align:middle;width:100%}.eui-table-cards tbody tr td.eui-table__cell-select{padding:var(--eui-base-spacing-s) var(--eui-base-spacing-m);width:auto}.eui-table-cards tbody tr td.eui-table__cell-select .eui-table__cell-select-checkbox-container{display:flex}.eui-table-cards tbody tr:hover{background-color:transparent}.eui-table-cards tbody tr:not(.eui-table-expandable-row):nth-child(odd){background-color:transparent}.eui-table-cards tbody tr:nth-of-type(2n){background-color:transparent}.eui-table-cards tbody tr:nth-of-type(2n):hover:not(.eui-table__row--selected){background-color:transparent}.eui-table-cards tbody tr:nth-of-type(odd):hover:not(.eui-table__row--selected){background-color:transparent}\n'] }]
|
728
|
-
|
634
|
+
args: [{ selector: "eui-table, table[euiTable]", encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [EuiTableSortService, EuiTableSelectableRowService], hostDirectives: [
|
635
|
+
{
|
636
|
+
directive: BaseStatesDirective,
|
637
|
+
inputs: []
|
638
|
+
}
|
639
|
+
], template: '@if (headerTemplate) {\n <thead #theadRef>\n <ng-template [ngTemplateOutlet]="headerTemplate"></ng-template>\n </thead>\n}\n@if (bodyTemplate) {\n <tbody #tbodyRef>\n @for (row of rowsRendered; let i = $index; track row) {\n <ng-template\n [ngTemplateOutlet]="bodyTemplate"\n [ngTemplateOutletContext]="{ $implicit: row, index: i + page * pageSize }">\n </ng-template>\n }\n\n @if (emptyMessageTemplate && rowsRendered.length === 0) {\n <ng-template [ngTemplateOutlet]="emptyMessageTemplate"></ng-template>\n }\n </tbody>\n}\n@if (footerTemplate) {\n <tfoot #tfootRef>\n <ng-template [ngTemplateOutlet]="footerTemplate"></ng-template>\n </tfoot>\n}\n', styles: ['.eui-table__scrollable-wrapper{overflow:auto}.eui-table__scrollable-wrapper::-webkit-scrollbar{display:inherit;height:10px;width:10px;background-color:var(--eui-base-color-grey-5)}.eui-table__scrollable-wrapper::-webkit-scrollbar-thumb{background-color:var(--eui-base-color-grey-20);border-radius:5rem}.eui-table__scrollable-wrapper::-webkit-scrollbar-thumb:hover{background-color:var(--eui-base-color-grey-50)}.eui-table__scrollable-wrapper::-webkit-scrollbar-track{background-color:var(--eui-base-color-grey-5);border-radius:0}.eui-table__orderable-cols-preview{background-color:var(--eui-base-color-grey-25);border-color:transparent;padding:calc(var(--eui-base-spacing-m) - 2px) var(--eui-base-spacing-s);cursor:move;opacity:.7}.eui-table{--eui-table-compact-scale-factor: .95;--eui-table-background-color: var(--eui-base-color-white);--eui-table-text-color: var(--eui-base-color-text);--eui-table-selected-row-background-color: var(--eui-base-color-primary-10);--eui-table-highlighted-background-color: var(--eui-base-color-accent-100);--eui-table-hover-background-color: var(--eui-base-color-primary-10);--eui-table-bordered-color: var(--eui-base-color-grey-15);--eui-table-loading-position: 50%;background-color:var(--eui-table-background-color);border-collapse:collapse;border-spacing:0;color:var(--eui-table-text-color);display:table;overflow:auto;-webkit-overflow-scrolling:touch;position:relative;width:auto}.eui-table thead>tr>th,.eui-table tbody>tr>td,.eui-table tfoot>tr>td{vertical-align:middle}.eui-table--bordered{box-shadow:var(--eui-base-shadow-1)}.eui-table--bordered td,.eui-table--bordered th{border:1px solid var(--eui-table-bordered-color)}.eui-table--compact thead th,.eui-table--compact thead tr{font-size:calc(var(--eui-base-font-size) * var(--eui-table-compact-scale-factor))!important;padding:var(--eui-base-spacing-s)!important}.eui-table--compact tbody tr{height:calc(2 * var(--eui-base-spacing-m))!important}.eui-table--compact tbody tr td{font-size:calc(var(--eui-base-font-size) * var(--eui-table-compact-scale-factor))!important;padding:0 var(--eui-base-spacing-s)!important}.eui-table--responsive{width:100%}.eui-table--fixed-layout{table-layout:fixed}.eui-table--highlighted{background-color:var(--eui-table-highlighted-background-color);text-decoration:none}.eui-table--hoverable tbody tr:hover,.eui-table--hoverable tbody tr:hover td{background-color:var(--eui-table-hover-background-color)!important}.eui-table--hoverable tbody tr:hover td:hover{background-color:var(--eui-base-color-info-25)!important}.eui-table--cols-orderable .cdk-drag-placeholder{background-color:var(--eui-base-color-white);color:var(--eui-base-color-info-100);cursor:move;opacity:1}.eui-table--cols-orderable tr{display:table-row}.eui-table--cols-orderable tr th{cursor:move}.eui-table .actionsColumn,.eui-table__actions-column{text-align:center;width:calc(15 * var(--eui-base-spacing-m))}.eui-table.eui-table__loading:before{animation:.8s linear infinite spin;border:8px solid transparent;border-radius:50%;border-top-color:var(--eui-base-color-info-130);content:"";display:block;height:80px;left:50%;margin:-40px 0 0 -40px;position:absolute;top:var(--eui-table-loading-position);width:80px;z-index:1000001}.eui-table.eui-table__loading tbody{opacity:var(--eui-base-disabled-opacity)}.eui-table thead tr.eui-table__columns-filter th{background-color:var(--eui-base-color-grey-5);position:relative;font:normal normal 400 1rem/1.75rem var(--eui-base-font-family)}.eui-table thead tr th{background-color:var(--eui-base-color-grey-10);padding:var(--eui-base-spacing-m) var(--eui-base-spacing-s);text-align:left;font:normal normal 400 1rem/1.75rem var(--eui-base-font-family);font-weight:700}.eui-table thead tr th .eui-resizable .eui-resizable-icon__container{transform:translateY(calc(var(--eui-base-spacing-l) + 2px + 2px))}.eui-table thead tr th.eui-table__sortable-col .eui-table__sortable-col-content{align-items:center;display:inline-flex;position:relative;vertical-align:middle;white-space:nowrap}.eui-table thead tr th.eui-table__sortable-col--disabled{cursor:default}.eui-table thead tr th .eui-table__sortable-icon-button{margin-left:var(--eui-base-spacing-2xs)}.eui-table thead tr th.eui-table__cell-select{color:var(--eui-base-color-grey-75);width:auto}.eui-table thead tr th.eui-table__cell-select .eui-table__cell-select-checkbox-container{display:flex}.eui-table thead tr th.eui-table__cell-select .eui-table__cell-select--indeterminated{position:absolute;right:50%;top:var(--eui-base-spacing-s);transform:translate(50%)}.eui-table tbody tr{border-top:1px solid var(--eui-base-color-grey-15);height:calc(3 * var(--eui-base-spacing-m))}.eui-table tbody tr.eui-table__row--selected,.eui-table tbody tr.eui-table__row--selected td{background-color:var(--eui-table-selected-row-background-color)!important}.eui-table tbody tr:not(.eui-table-expandable-row):nth-child(odd){background-color:var(--eui-base-color-grey-2)}.eui-table tbody tr:not(.eui-table-expandable-row):nth-child(odd) td{background-color:var(--eui-base-color-grey-2)}.eui-table tbody tr td{padding:var(--eui-base-spacing-xs) var(--eui-base-spacing-s);vertical-align:middle}.eui-table tbody tr td.eui-table__cell-select{color:var(--eui-base-color-grey-75);width:auto}.eui-table tbody tr td.eui-table__cell-select .eui-table__cell-select-checkbox-container{display:flex}.eui-table tbody tr:nth-of-type(odd){background-color:var(--eui-base-color-white)}.eui-table tbody tr:nth-of-type(2n){background-color:var(--eui-base-color-grey-5)}.eui-table tbody tr:nth-of-type(2n) td{background-color:var(--eui-base-color-grey-5)}.eui-table tfoot tr{border-bottom:1px solid var(--eui-base-color-grey-15);border-top:1px solid var(--eui-base-color-grey-15)}.eui-table tfoot tr td{padding:var(--eui-base-spacing-s);vertical-align:middle}.eui-table__sticky-container{overflow:auto}.eui-table__sticky-container::-webkit-scrollbar{display:inherit;height:8px;width:8px;background-color:var(--eui-base-color-grey-5)}.eui-table__sticky-container::-webkit-scrollbar-thumb{background-color:var(--eui-base-color-grey-20);border-radius:5rem}.eui-table__sticky-container::-webkit-scrollbar-thumb:hover{background-color:var(--eui-base-color-grey-50)}.eui-table__sticky-container::-webkit-scrollbar-track{background-color:var(--eui-base-color-grey-5);border-radius:0}.eui-table--sticky-header thead tr th{position:sticky;top:0;z-index:8}.eui-table--sticky-columns .eui-table__col--sticky{position:sticky}.eui-table--sticky-columns th.eui-table__col--sticky{z-index:9}.eui-table--sticky-columns th.eui-table__col--sticky.eui-table__col--sticky-shadowed-first{box-shadow:inset -5px 0 8px -8px #0003}.eui-table--sticky-columns th.eui-table__col--sticky.eui-table__col--sticky-shadowed-last{box-shadow:inset 5px 0 8px -8px #0003}.eui-table--sticky-columns td.eui-table__col--sticky{z-index:8}.eui-table--sticky-columns td.eui-table__col--sticky.eui-table__col--sticky-shadowed-first{box-shadow:inset -5px 0 8px -8px #0003}.eui-table--sticky-columns td.eui-table__col--sticky.eui-table__col--sticky-shadowed-last{box-shadow:inset 5px 0 8px -8px #0003}@media screen and (max-width: 767px){.eui-table:not(.eui-table-cards).eui-table--responsive{width:100%!important}.eui-table:not(.eui-table-cards).eui-table--responsive thead,.eui-table:not(.eui-table-cards).eui-table--responsive tbody,.eui-table:not(.eui-table-cards).eui-table--responsive tfoot,.eui-table:not(.eui-table-cards).eui-table--responsive th,.eui-table:not(.eui-table-cards).eui-table--responsive td,.eui-table:not(.eui-table-cards).eui-table--responsive tr{display:block}.eui-table:not(.eui-table-cards).eui-table--responsive thead tr{left:-9999px;position:absolute;top:-9999px}.eui-table:not(.eui-table-cards).eui-table--responsive tr{height:auto}.eui-table:not(.eui-table-cards).eui-table--responsive td{border:none;border-bottom:1px solid var(--eui-base-color-grey-10);padding-left:50%;position:relative;text-align:left!important}.eui-table:not(.eui-table-cards).eui-table--responsive td:before{color:var(--eui-base-color-grey-80);content:attr(data-col-label);left:var(--eui-base-spacing-xs);padding-right:var(--eui-base-spacing-xs);position:absolute;width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:normal normal 400 1rem/1.75rem var(--eui-base-font-family);font-weight:700}.eui-table:not(.eui-table-cards) .actionsColumn,.eui-table:not(.eui-table-cards) .actions-column{justify-content:flex-start;text-align:left;width:100%}.eui-table__sticky-container{height:auto!important;width:auto!important}.eui-table--sticky-columns th,.eui-table--sticky-columns td,.eui-table--sticky-columns th .eui-table__col--sticky,.eui-table--sticky-columns td .eui-table__col--sticky{width:auto;z-index:auto}.eui-table--sticky-columns th .eui-table__col--sticky.eui-table__col--sticky-shadowed-first,.eui-table--sticky-columns th .eui-table__col--sticky.eui-table__col--sticky-shadowed-last,.eui-table--sticky-columns td .eui-table__col--sticky.eui-table__col--sticky-shadowed-first,.eui-table--sticky-columns td .eui-table__col--sticky.eui-table__col--sticky-shadowed-last{box-shadow:none!important}.eui-table--sticky-columns tfoot tr td:empty{display:none!important}}.eui-table__filter{align-items:center;display:flex;justify-content:flex-end;position:relative}.eui-table__filter--responsive{width:100%}.eui-table__filter-input{padding-left:var(--eui-base-spacing-2xl)!important}.eui-table__filter-search-icon{left:var(--eui-base-spacing-xs);position:absolute;top:calc(var(--eui-base-spacing-xs) + 2px)}@media screen and (max-width: 767px){.eui-table__filter--responsive{display:block;width:100%}}.eui-table__draggable-preview--no-preview.cdk-drag-preview{display:none}.eui-table--draggable tr.eui-table__draggable-preview--no-placeholder{opacity:1}.eui-table--draggable tr:hover{background-color:var(--eui-base-color-accent-5)}.eui-table--draggable td .cdk-drop-list{flex-direction:column}.eui-table-cards{background-color:transparent;display:flex;flex-direction:column;overflow:hidden;width:100%}.eui-table-cards thead{width:100%}.eui-table-cards thead tr{align-items:center;height:auto}.eui-table-cards thead tr th{position:relative;vertical-align:middle;width:100%}.eui-table-cards thead tr th.eui-table__cell-select{padding:var(--eui-base-spacing-s) var(--eui-base-spacing-m);width:auto}.eui-table-cards thead tr th.eui-table__cell-select .eui-table__cell-select-checkbox-container{display:flex}.eui-table-cards tbody{width:100%}.eui-table-cards tbody tr{align-items:center;border-top:0;display:flex;height:auto;width:100%}.eui-table-cards tbody tr.eui-table__row--selected .eui-card:first-child{--eui-card-header-background-color: var(--eui-table-selected-row-background-color)}.eui-table-cards tbody tr td{position:relative;vertical-align:middle;width:100%}.eui-table-cards tbody tr td.eui-table__cell-select{padding:var(--eui-base-spacing-s) var(--eui-base-spacing-m);width:auto}.eui-table-cards tbody tr td.eui-table__cell-select .eui-table__cell-select-checkbox-container{display:flex}.eui-table-cards tbody tr:hover{background-color:transparent}.eui-table-cards tbody tr:not(.eui-table-expandable-row):nth-child(odd){background-color:transparent}.eui-table-cards tbody tr:nth-of-type(2n){background-color:transparent}.eui-table-cards tbody tr:nth-of-type(2n):hover:not(.eui-table__row--selected){background-color:transparent}.eui-table-cards tbody tr:nth-of-type(odd):hover:not(.eui-table__row--selected){background-color:transparent}\n'] }]
|
640
|
+
}], ctorParameters: () => [{ type: EuiTableSortService }, { type: i03.ChangeDetectorRef }, { type: EuiTableSelectableRowService }, { type: i03.ElementRef }, { type: i3.BaseStatesDirective }], propDecorators: { cssClasses: [{
|
641
|
+
type: HostBinding,
|
642
|
+
args: ["class"]
|
643
|
+
}], rows: [{
|
729
644
|
type: Input
|
730
645
|
}], propId: [{
|
731
646
|
type: Input
|
647
|
+
}], e2eAttr: [{
|
648
|
+
type: Input
|
732
649
|
}], paginator: [{
|
733
650
|
type: Input
|
734
651
|
}], filter: [{
|
735
652
|
type: Input
|
736
653
|
}], preselectedRows: [{
|
737
654
|
type: Input
|
738
|
-
}],
|
739
|
-
type:
|
740
|
-
args: [
|
741
|
-
}],
|
742
|
-
type:
|
743
|
-
args: [
|
655
|
+
}], loading: [{
|
656
|
+
type: Input,
|
657
|
+
args: [{ transform: booleanAttribute }]
|
658
|
+
}], asyncTable: [{
|
659
|
+
type: Input,
|
660
|
+
args: [{ transform: booleanAttribute }]
|
661
|
+
}], paginable: [{
|
662
|
+
type: Input,
|
663
|
+
args: [{ transform: booleanAttribute }]
|
664
|
+
}], euiTableResponsive: [{
|
665
|
+
type: Input,
|
666
|
+
args: [{ transform: booleanAttribute }]
|
667
|
+
}], euiTableFixedLayout: [{
|
668
|
+
type: Input,
|
669
|
+
args: [{ transform: booleanAttribute }]
|
670
|
+
}], euiTableDraggable: [{
|
671
|
+
type: Input,
|
672
|
+
args: [{ transform: booleanAttribute }]
|
673
|
+
}], euiTableCards: [{
|
674
|
+
type: Input,
|
675
|
+
args: [{ transform: booleanAttribute }]
|
676
|
+
}], euiTableBordered: [{
|
677
|
+
type: Input,
|
678
|
+
args: [{ transform: booleanAttribute }]
|
679
|
+
}], euiTableCompact: [{
|
680
|
+
type: Input,
|
681
|
+
args: [{ transform: booleanAttribute }]
|
682
|
+
}], hasStickyHeader: [{
|
683
|
+
type: Input,
|
684
|
+
args: [{ transform: booleanAttribute }]
|
685
|
+
}], hasStickyColumns: [{
|
686
|
+
type: Input,
|
687
|
+
args: [{ transform: booleanAttribute }]
|
688
|
+
}], isSelectOnlyVisibleRows: [{
|
689
|
+
type: Input,
|
690
|
+
args: [{ transform: booleanAttribute }]
|
691
|
+
}], isColsOrderable: [{
|
692
|
+
type: Input,
|
693
|
+
args: [{ transform: booleanAttribute }]
|
694
|
+
}], isHoverable: [{
|
695
|
+
type: Input,
|
696
|
+
args: [{ transform: booleanAttribute }]
|
744
697
|
}], selectedRows: [{
|
745
698
|
type: Output
|
746
699
|
}], sortChange: [{
|
@@ -759,95 +712,37 @@ i03.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4",
|
|
759
712
|
}], tfootRef: [{
|
760
713
|
type: ViewChild,
|
761
714
|
args: ["tfootRef"]
|
762
|
-
}], loading: [{
|
763
|
-
type: Input
|
764
|
-
}], asyncTable: [{
|
765
|
-
type: Input
|
766
|
-
}], paginable: [{
|
767
|
-
type: Input
|
768
|
-
}], euiTableResponsive: [{
|
769
|
-
type: Input
|
770
|
-
}], euiTableFixedLayout: [{
|
771
|
-
type: Input
|
772
|
-
}], euiTableDraggable: [{
|
773
|
-
type: Input
|
774
|
-
}], euiTableCards: [{
|
775
|
-
type: Input
|
776
|
-
}], euiTableBordered: [{
|
777
|
-
type: Input
|
778
|
-
}], euiTableCompact: [{
|
779
|
-
type: Input
|
780
|
-
}], hasStickyHeader: [{
|
781
|
-
type: Input
|
782
|
-
}], hasStickyColumns: [{
|
783
|
-
type: Input
|
784
|
-
}], isSelectOnlyVisibleRows: [{
|
785
|
-
type: Input
|
786
|
-
}], isColsOrderable: [{
|
787
|
-
type: Input
|
788
|
-
}], isHoverable: [{
|
789
|
-
type: Input
|
790
|
-
}], cssClasses: [{
|
791
|
-
type: HostBinding,
|
792
|
-
args: ["class"]
|
793
715
|
}] } });
|
794
716
|
|
795
717
|
// sortable-col/eui-table-sortable-col.component.mjs
|
796
|
-
import { Component as Component2, Input as Input2, HostBinding as HostBinding2, ViewChild as ViewChild2 } from "@angular/core";
|
797
|
-
import { Subject as Subject2, combineLatest as combineLatest2 } from "rxjs";
|
798
|
-
import { takeUntil as takeUntil2 } from "rxjs/operators";
|
799
|
-
import { coerceBooleanProperty as coerceBooleanProperty2, coerceNumberProperty } from "@angular/cdk/coercion";
|
718
|
+
import { Component as Component2, Input as Input2, HostBinding as HostBinding2, ViewChild as ViewChild2, numberAttribute, booleanAttribute as booleanAttribute2 } from "@angular/core";
|
719
|
+
import { Subject as Subject2, combineLatest as combineLatest2, takeUntil as takeUntil2 } from "rxjs";
|
800
720
|
import { FormGroup as FormGroup2 } from "@angular/forms";
|
801
721
|
import { EuiDropdownComponent } from "@eui/components/eui-dropdown";
|
802
722
|
import * as i04 from "@angular/core";
|
803
723
|
import * as i2 from "@angular/common";
|
804
724
|
import * as i32 from "@angular/forms";
|
805
|
-
import * as
|
725
|
+
import * as i42 from "@eui/components/eui-icon";
|
806
726
|
import * as i5 from "@eui/components/eui-dropdown";
|
807
727
|
import * as i6 from "@eui/components/eui-button";
|
808
728
|
import * as i7 from "@eui/components/eui-feedback-message";
|
809
729
|
import * as i8 from "@eui/components/eui-select";
|
810
730
|
import * as i9 from "@ngx-translate/core";
|
811
731
|
var EuiTableSortableColComponent = class _EuiTableSortableColComponent {
|
812
|
-
get defaultMultiOrder() {
|
813
|
-
return this._defaultMultiOrder;
|
814
|
-
}
|
815
|
-
set defaultMultiOrder(value) {
|
816
|
-
this._defaultMultiOrder = coerceNumberProperty(value);
|
817
|
-
}
|
818
|
-
get defaultOrder() {
|
819
|
-
return this._defaultOrder;
|
820
|
-
}
|
821
|
-
set defaultOrder(value) {
|
822
|
-
this._defaultOrder = coerceBooleanProperty2(value);
|
823
|
-
}
|
824
|
-
get sortDisabled() {
|
825
|
-
return this._sortDisabled;
|
826
|
-
}
|
827
|
-
set sortDisabled(value) {
|
828
|
-
this._sortDisabled = coerceBooleanProperty2(value);
|
829
|
-
}
|
830
|
-
get isMultiSortable() {
|
831
|
-
return this._isMultiSortable;
|
832
|
-
}
|
833
|
-
set isMultiSortable(value) {
|
834
|
-
this._isMultiSortable = coerceBooleanProperty2(value);
|
835
|
-
}
|
836
732
|
get cssClasses() {
|
837
733
|
return ["eui-table__sortable-col", this.sortDisabled ? "eui-table__sortable-col--disabled" : ""].join(" ").trim();
|
838
734
|
}
|
839
|
-
constructor(euiTableSortService
|
735
|
+
constructor(euiTableSortService) {
|
840
736
|
this.euiTableSortService = euiTableSortService;
|
841
|
-
this.cd = cd;
|
842
737
|
this.sortOrder = "desc";
|
738
|
+
this.defaultMultiOrder = null;
|
739
|
+
this.defaultOrder = false;
|
740
|
+
this.sortDisabled = false;
|
741
|
+
this.isMultiSortable = false;
|
843
742
|
this.order = "desc";
|
844
743
|
this.multisortParams = [];
|
845
744
|
this.currentMultiSortPosition = 0;
|
846
745
|
this.error = false;
|
847
|
-
this._defaultMultiOrder = null;
|
848
|
-
this._defaultOrder = false;
|
849
|
-
this._sortDisabled = false;
|
850
|
-
this._isMultiSortable = false;
|
851
746
|
this.destroy$ = new Subject2();
|
852
747
|
}
|
853
748
|
ngOnInit() {
|
@@ -963,29 +858,27 @@ var EuiTableSortableColComponent = class _EuiTableSortableColComponent {
|
|
963
858
|
return arr.filter((col) => col.name === el.name).length === 1;
|
964
859
|
}
|
965
860
|
static {
|
966
|
-
this.ɵfac = i04.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i04, type: _EuiTableSortableColComponent, deps: [{ token: EuiTableSortService }
|
861
|
+
this.ɵfac = i04.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i04, type: _EuiTableSortableColComponent, deps: [{ token: EuiTableSortService }], target: i04.ɵɵFactoryTarget.Component });
|
967
862
|
}
|
968
863
|
static {
|
969
|
-
this.ɵcmp = i04.ɵɵngDeclareComponent({ minVersion: "
|
864
|
+
this.ɵcmp = i04.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.0-next.4", type: _EuiTableSortableColComponent, selector: "th[sortable]", inputs: { sortOn: "sortOn", sortOrder: "sortOrder", defaultMultiOrder: ["defaultMultiOrder", "defaultMultiOrder", numberAttribute], defaultOrder: ["defaultOrder", "defaultOrder", booleanAttribute2], sortDisabled: ["sortDisabled", "sortDisabled", booleanAttribute2], isMultiSortable: ["isMultiSortable", "isMultiSortable", booleanAttribute2] }, host: { properties: { "class": "this.cssClasses" } }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: EuiDropdownComponent, descendants: true }], ngImport: i04, template: `<div class="eui-table__sortable-col-content">
|
970
865
|
<ng-content></ng-content>
|
971
|
-
|
972
|
-
<eui-icon-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
</button>
|
988
|
-
<ng-template *ngIf="isMultiSortable" [ngTemplateOutlet]="sortDropdown"></ng-template>
|
866
|
+
@if (!sortDisabled) {
|
867
|
+
<button type="button" euiSizeS euiButton euiIconButton euiBasicButton class="eui-table__sortable-icon-button" (click)="click()">
|
868
|
+
@if (!order) {
|
869
|
+
<eui-icon-svg icon="eui-swap-vertical" fillColor="grey-50" [aria-label]="'eui.euitable.NO-SORTING-ICON' | translate"></eui-icon-svg>
|
870
|
+
}
|
871
|
+
@if (order === 'asc') {
|
872
|
+
<eui-icon-svg icon="eui-arrow-up" fillColor="primary-100" [aria-label]="'eui.euitable.ASCENDING-ICON' | translate"></eui-icon-svg>
|
873
|
+
}
|
874
|
+
@if (order === 'desc') {
|
875
|
+
<eui-icon-svg icon="eui-arrow-down" fillColor="primary-100" [aria-label]="'eui.euitable.DESCENDING-ICON' | translate"></eui-icon-svg>
|
876
|
+
}
|
877
|
+
</button>
|
878
|
+
}
|
879
|
+
@if (isMultiSortable) {
|
880
|
+
<ng-template [ngTemplateOutlet]="sortDropdown"></ng-template>
|
881
|
+
}
|
989
882
|
</div>
|
990
883
|
<ng-template #sortDropdown let-index>
|
991
884
|
<eui-dropdown [hasClosedOnClickInside]="false">
|
@@ -996,59 +889,43 @@ var EuiTableSortableColComponent = class _EuiTableSortableColComponent {
|
|
996
889
|
<div class="eui-u-pt-xs eui-u-pl-s">
|
997
890
|
<small>{{ 'eui.euitable.CHOOSE-SORT-ORDER' | translate }}</small>
|
998
891
|
</div>
|
999
|
-
|
1000
|
-
<
|
1001
|
-
<ng-container
|
1002
|
-
|
1003
|
-
<
|
1004
|
-
|
1005
|
-
<
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
euiBasicButton
|
1029
|
-
(click)="onClickMultisortOrder(i + 1, 'desc')">
|
1030
|
-
<eui-icon-svg icon="eui-arrow-up" [aria-label]="'eui.euitable.ASCENDING-ICON' | translate"></eui-icon-svg>
|
1031
|
-
</button>
|
1032
|
-
<button type="button"
|
1033
|
-
*ngIf="getOrderByIndex(i) === 'desc'"
|
1034
|
-
euiSizeS
|
1035
|
-
euiPrimary
|
1036
|
-
euiButton
|
1037
|
-
euiIconButton
|
1038
|
-
euiBasicButton
|
1039
|
-
(click)="onClickMultisortOrder(i + 1, null)">
|
1040
|
-
<eui-icon-svg
|
1041
|
-
icon="eui-arrow-down"
|
1042
|
-
[aria-label]="'eui.euitable.DESCENDING-ICON' | translate"></eui-icon-svg>
|
1043
|
-
</button>
|
1044
|
-
</div>
|
892
|
+
@if (form) {
|
893
|
+
<form [formGroup]="form">
|
894
|
+
<ng-container formArrayName="columns">
|
895
|
+
@for (columnForm of columns.controls; let i = $index; track columnForm) {
|
896
|
+
<div class="eui-u-flex eui-u-p-s" [formGroup]="form.get('columns')['controls'][i]">
|
897
|
+
<span euiLabel class="eui-u-mr-s">{{ i + 1 }}</span>
|
898
|
+
<select euiSelect euiSizeS formControlName="name" class="eui-u-mr-s">
|
899
|
+
<option value=""></option>
|
900
|
+
@for (column of multisortParams; track column) {
|
901
|
+
<option [value]="column.name">{{ column.name }}</option>
|
902
|
+
}
|
903
|
+
</select>
|
904
|
+
@if (!getOrderByIndex(i)) {
|
905
|
+
<button type="button" euiSizeS euiSecondary euiButton euiIconButton euiBasicButton (click)="onClickMultisortOrder(i + 1, 'asc')">
|
906
|
+
<eui-icon-svg icon="eui-swap-vertical" [aria-label]="'eui.euitable.NO-SORTING-ICON' | translate"></eui-icon-svg>
|
907
|
+
</button>
|
908
|
+
}
|
909
|
+
@if (getOrderByIndex(i) === 'asc') {
|
910
|
+
<button type="button" euiSizeS euiPrimary euiButton euiIconButton euiBasicButton (click)="onClickMultisortOrder(i + 1, 'desc')">
|
911
|
+
<eui-icon-svg icon="eui-arrow-up" [aria-label]="'eui.euitable.ASCENDING-ICON' | translate"></eui-icon-svg>
|
912
|
+
</button>
|
913
|
+
}
|
914
|
+
@if (getOrderByIndex(i) === 'desc') {
|
915
|
+
<button type="button" euiSizeS euiPrimary euiButton euiIconButton euiBasicButton (click)="onClickMultisortOrder(i + 1, null)">
|
916
|
+
<eui-icon-svg icon="eui-arrow-down" [aria-label]="'eui.euitable.DESCENDING-ICON' | translate"></eui-icon-svg>
|
917
|
+
</button>
|
918
|
+
}
|
919
|
+
</div>
|
920
|
+
}
|
1045
921
|
</ng-container>
|
1046
|
-
</
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
922
|
+
</form>
|
923
|
+
}
|
924
|
+
@if (error) {
|
925
|
+
<p class="eui-u-mt-none eui-u-mb-none eui-u-ml-s">
|
926
|
+
<eui-feedback-message euiDanger>{{ 'eui.euitable.WRONG-SORT-PARAMS' | translate }}</eui-feedback-message>
|
927
|
+
</p>
|
928
|
+
}
|
1052
929
|
<div class="eui-u-flex eui-u-flex-justify-content-between eui-u-p-s">
|
1053
930
|
<button type="button" euiButton euiSizeS euiSecondary (click)="onCancelMultiSort()">{{ 'eui.CANCEL' | translate }}</button>
|
1054
931
|
<button type="button" euiButton euiSizeS euiPrimary (click)="onSubmitMultiSort()">{{ 'eui.APPLY' | translate }}</button>
|
@@ -1056,31 +933,29 @@ var EuiTableSortableColComponent = class _EuiTableSortableColComponent {
|
|
1056
933
|
</eui-dropdown-content>
|
1057
934
|
</eui-dropdown>
|
1058
935
|
</ng-template>
|
1059
|
-
`, dependencies: [{ kind: "directive", type: i2.
|
936
|
+
`, dependencies: [{ kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i32.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i32.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i32.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i32.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i32.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i32.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: i42.EuiIconSvgComponent, selector: "eui-icon-svg, span[euiIconSvg], i[euiIconSvg]", inputs: ["icon", "size", "fillColor", "set", "ariaLabelledby", "role", "style", "iconUrl", "transform", "aria-label", "ariaHidden", "focusable", "isLoading", "isInputIcon", "euiStart", "euiEnd"] }, { kind: "component", type: i5.EuiDropdownComponent, selector: "eui-dropdown", inputs: ["e2eAttr", "tabIndex", "width", "position", "isBlock", "isDropDownRightAligned", "hasClosedOnClickInside", "isLabelUpdatedFromSelectedItem", "isExpandOnHover", "hasTabNavigation", "isRightClickEnabled", "euiDisabled"] }, { kind: "directive", type: i5.EuiDropdownContentDirective, selector: "eui-dropdown-content" }, { kind: "component", type: i6.EuiButtonComponent, selector: "button[euiButton], a[euiButton]", inputs: ["e2eAttr", "id", "euiBasicButton", "euiButtonCall", "euiBlockButton", "isLoading", "euiIconButton", "euiLineWrap", "isChecked", "euiDisabled"], outputs: ["buttonClick"] }, { kind: "directive", type: i32.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i32.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i32.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "component", type: i7.EuiFeedbackMessageComponent, selector: "eui-feedback-message" }, { kind: "component", type: i8.EuiSelectComponent, selector: "select[euiSelect]", inputs: ["placeholder", "readonly", "isInvalid"] }, { kind: "directive", type: i8.EuiNgSelectOptionDirective, selector: "option:not([eclSelectOption]):not([eclMultiselectOption]), option[euiOption]", inputs: ["selected", "label", "ngValue"] }, { kind: "directive", type: i8.EuiSelectControlValueAccessor, selector: "select:not([multiple])[formControlName][euiSelect],select:not([multiple])[formControl][euiSelect],select:not([multiple])[ngModel][euiSelect]", inputs: ["placeholder"] }, { kind: "directive", type: i8.EuiSelectMultipleOption, selector: "option, option[euiOption]", inputs: ["ngValue", "value"] }, { kind: "pipe", type: i9.TranslatePipe, name: "translate" }] });
|
1060
937
|
}
|
1061
938
|
};
|
1062
939
|
i04.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i04, type: EuiTableSortableColComponent, decorators: [{
|
1063
940
|
type: Component2,
|
1064
941
|
args: [{ selector: "th[sortable]", template: `<div class="eui-table__sortable-col-content">
|
1065
942
|
<ng-content></ng-content>
|
1066
|
-
|
1067
|
-
<eui-icon-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
</button>
|
1083
|
-
<ng-template *ngIf="isMultiSortable" [ngTemplateOutlet]="sortDropdown"></ng-template>
|
943
|
+
@if (!sortDisabled) {
|
944
|
+
<button type="button" euiSizeS euiButton euiIconButton euiBasicButton class="eui-table__sortable-icon-button" (click)="click()">
|
945
|
+
@if (!order) {
|
946
|
+
<eui-icon-svg icon="eui-swap-vertical" fillColor="grey-50" [aria-label]="'eui.euitable.NO-SORTING-ICON' | translate"></eui-icon-svg>
|
947
|
+
}
|
948
|
+
@if (order === 'asc') {
|
949
|
+
<eui-icon-svg icon="eui-arrow-up" fillColor="primary-100" [aria-label]="'eui.euitable.ASCENDING-ICON' | translate"></eui-icon-svg>
|
950
|
+
}
|
951
|
+
@if (order === 'desc') {
|
952
|
+
<eui-icon-svg icon="eui-arrow-down" fillColor="primary-100" [aria-label]="'eui.euitable.DESCENDING-ICON' | translate"></eui-icon-svg>
|
953
|
+
}
|
954
|
+
</button>
|
955
|
+
}
|
956
|
+
@if (isMultiSortable) {
|
957
|
+
<ng-template [ngTemplateOutlet]="sortDropdown"></ng-template>
|
958
|
+
}
|
1084
959
|
</div>
|
1085
960
|
<ng-template #sortDropdown let-index>
|
1086
961
|
<eui-dropdown [hasClosedOnClickInside]="false">
|
@@ -1091,59 +966,43 @@ i04.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4",
|
|
1091
966
|
<div class="eui-u-pt-xs eui-u-pl-s">
|
1092
967
|
<small>{{ 'eui.euitable.CHOOSE-SORT-ORDER' | translate }}</small>
|
1093
968
|
</div>
|
1094
|
-
|
1095
|
-
<
|
1096
|
-
<ng-container
|
1097
|
-
|
1098
|
-
<
|
1099
|
-
|
1100
|
-
<
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
euiBasicButton
|
1124
|
-
(click)="onClickMultisortOrder(i + 1, 'desc')">
|
1125
|
-
<eui-icon-svg icon="eui-arrow-up" [aria-label]="'eui.euitable.ASCENDING-ICON' | translate"></eui-icon-svg>
|
1126
|
-
</button>
|
1127
|
-
<button type="button"
|
1128
|
-
*ngIf="getOrderByIndex(i) === 'desc'"
|
1129
|
-
euiSizeS
|
1130
|
-
euiPrimary
|
1131
|
-
euiButton
|
1132
|
-
euiIconButton
|
1133
|
-
euiBasicButton
|
1134
|
-
(click)="onClickMultisortOrder(i + 1, null)">
|
1135
|
-
<eui-icon-svg
|
1136
|
-
icon="eui-arrow-down"
|
1137
|
-
[aria-label]="'eui.euitable.DESCENDING-ICON' | translate"></eui-icon-svg>
|
1138
|
-
</button>
|
1139
|
-
</div>
|
969
|
+
@if (form) {
|
970
|
+
<form [formGroup]="form">
|
971
|
+
<ng-container formArrayName="columns">
|
972
|
+
@for (columnForm of columns.controls; let i = $index; track columnForm) {
|
973
|
+
<div class="eui-u-flex eui-u-p-s" [formGroup]="form.get('columns')['controls'][i]">
|
974
|
+
<span euiLabel class="eui-u-mr-s">{{ i + 1 }}</span>
|
975
|
+
<select euiSelect euiSizeS formControlName="name" class="eui-u-mr-s">
|
976
|
+
<option value=""></option>
|
977
|
+
@for (column of multisortParams; track column) {
|
978
|
+
<option [value]="column.name">{{ column.name }}</option>
|
979
|
+
}
|
980
|
+
</select>
|
981
|
+
@if (!getOrderByIndex(i)) {
|
982
|
+
<button type="button" euiSizeS euiSecondary euiButton euiIconButton euiBasicButton (click)="onClickMultisortOrder(i + 1, 'asc')">
|
983
|
+
<eui-icon-svg icon="eui-swap-vertical" [aria-label]="'eui.euitable.NO-SORTING-ICON' | translate"></eui-icon-svg>
|
984
|
+
</button>
|
985
|
+
}
|
986
|
+
@if (getOrderByIndex(i) === 'asc') {
|
987
|
+
<button type="button" euiSizeS euiPrimary euiButton euiIconButton euiBasicButton (click)="onClickMultisortOrder(i + 1, 'desc')">
|
988
|
+
<eui-icon-svg icon="eui-arrow-up" [aria-label]="'eui.euitable.ASCENDING-ICON' | translate"></eui-icon-svg>
|
989
|
+
</button>
|
990
|
+
}
|
991
|
+
@if (getOrderByIndex(i) === 'desc') {
|
992
|
+
<button type="button" euiSizeS euiPrimary euiButton euiIconButton euiBasicButton (click)="onClickMultisortOrder(i + 1, null)">
|
993
|
+
<eui-icon-svg icon="eui-arrow-down" [aria-label]="'eui.euitable.DESCENDING-ICON' | translate"></eui-icon-svg>
|
994
|
+
</button>
|
995
|
+
}
|
996
|
+
</div>
|
997
|
+
}
|
1140
998
|
</ng-container>
|
1141
|
-
</
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
999
|
+
</form>
|
1000
|
+
}
|
1001
|
+
@if (error) {
|
1002
|
+
<p class="eui-u-mt-none eui-u-mb-none eui-u-ml-s">
|
1003
|
+
<eui-feedback-message euiDanger>{{ 'eui.euitable.WRONG-SORT-PARAMS' | translate }}</eui-feedback-message>
|
1004
|
+
</p>
|
1005
|
+
}
|
1147
1006
|
<div class="eui-u-flex eui-u-flex-justify-content-between eui-u-p-s">
|
1148
1007
|
<button type="button" euiButton euiSizeS euiSecondary (click)="onCancelMultiSort()">{{ 'eui.CANCEL' | translate }}</button>
|
1149
1008
|
<button type="button" euiButton euiSizeS euiPrimary (click)="onSubmitMultiSort()">{{ 'eui.APPLY' | translate }}</button>
|
@@ -1152,7 +1011,7 @@ i04.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4",
|
|
1152
1011
|
</eui-dropdown>
|
1153
1012
|
</ng-template>
|
1154
1013
|
` }]
|
1155
|
-
}], ctorParameters: () => [{ type: EuiTableSortService }
|
1014
|
+
}], ctorParameters: () => [{ type: EuiTableSortService }], propDecorators: { dropdown: [{
|
1156
1015
|
type: ViewChild2,
|
1157
1016
|
args: [EuiDropdownComponent]
|
1158
1017
|
}], sortOn: [{
|
@@ -1160,44 +1019,41 @@ i04.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4",
|
|
1160
1019
|
}], sortOrder: [{
|
1161
1020
|
type: Input2
|
1162
1021
|
}], defaultMultiOrder: [{
|
1163
|
-
type: Input2
|
1022
|
+
type: Input2,
|
1023
|
+
args: [{ transform: numberAttribute }]
|
1164
1024
|
}], defaultOrder: [{
|
1165
|
-
type: Input2
|
1025
|
+
type: Input2,
|
1026
|
+
args: [{ transform: booleanAttribute2 }]
|
1166
1027
|
}], sortDisabled: [{
|
1167
|
-
type: Input2
|
1028
|
+
type: Input2,
|
1029
|
+
args: [{ transform: booleanAttribute2 }]
|
1168
1030
|
}], isMultiSortable: [{
|
1169
|
-
type: Input2
|
1031
|
+
type: Input2,
|
1032
|
+
args: [{ transform: booleanAttribute2 }]
|
1170
1033
|
}], cssClasses: [{
|
1171
1034
|
type: HostBinding2,
|
1172
1035
|
args: ["class"]
|
1173
1036
|
}] } });
|
1174
1037
|
|
1175
1038
|
// filter/eui-table-filter.component.mjs
|
1176
|
-
import { Component as Component3, Input as Input3, Output as Output2, EventEmitter as EventEmitter2, HostBinding as HostBinding3, ViewChild as ViewChild3, ElementRef as ElementRef2, ViewEncapsulation as ViewEncapsulation3 } from "@angular/core";
|
1039
|
+
import { Component as Component3, Input as Input3, Output as Output2, EventEmitter as EventEmitter2, HostBinding as HostBinding3, ViewChild as ViewChild3, ElementRef as ElementRef2, ViewEncapsulation as ViewEncapsulation3, booleanAttribute as booleanAttribute3 } from "@angular/core";
|
1177
1040
|
import { FormGroup as FormGroup3, FormControl as FormControl2 } from "@angular/forms";
|
1178
|
-
import {
|
1179
|
-
import {
|
1180
|
-
import { takeUntil as takeUntil3, debounceTime, distinctUntilChanged } from "rxjs/operators";
|
1181
|
-
import { BaseDirective as BaseDirective2 } from "@eui/components/shared";
|
1041
|
+
import { Subject as Subject3, BehaviorSubject as BehaviorSubject4, takeUntil as takeUntil3, debounceTime, distinctUntilChanged } from "rxjs";
|
1042
|
+
import { BaseStatesDirective as BaseStatesDirective3 } from "@eui/components/shared";
|
1182
1043
|
import * as i05 from "@angular/core";
|
1183
|
-
import * as i1 from "@
|
1184
|
-
import * as i22 from "@
|
1185
|
-
import * as i33 from "@eui/components/eui-
|
1186
|
-
|
1187
|
-
|
1188
|
-
return this._autoSearch;
|
1189
|
-
}
|
1190
|
-
set autoSearch(value) {
|
1191
|
-
this._autoSearch = coerceBooleanProperty3(value);
|
1192
|
-
}
|
1044
|
+
import * as i1 from "@eui/components/shared";
|
1045
|
+
import * as i22 from "@angular/forms";
|
1046
|
+
import * as i33 from "@eui/components/eui-icon";
|
1047
|
+
import * as i43 from "@eui/components/eui-input-text";
|
1048
|
+
var EuiTableFilterComponent = class _EuiTableFilterComponent {
|
1193
1049
|
get cssClasses() {
|
1194
|
-
return [
|
1050
|
+
return [this.baseStatesDirective.getCssClasses("eui-table__filter")].join(" ").trim();
|
1195
1051
|
}
|
1196
|
-
constructor() {
|
1197
|
-
|
1052
|
+
constructor(baseStatesDirective) {
|
1053
|
+
this.baseStatesDirective = baseStatesDirective;
|
1198
1054
|
this.filterChange = new EventEmitter2();
|
1199
1055
|
this.filter$ = new BehaviorSubject4(null);
|
1200
|
-
this.
|
1056
|
+
this.autoSearch = false;
|
1201
1057
|
this.destroy$ = new Subject3();
|
1202
1058
|
}
|
1203
1059
|
ngOnInit() {
|
@@ -1223,10 +1079,10 @@ var EuiTableFilterComponent = class _EuiTableFilterComponent extends BaseDirecti
|
|
1223
1079
|
this.filterInput.nativeElement.focus();
|
1224
1080
|
}
|
1225
1081
|
static {
|
1226
|
-
this.ɵfac = i05.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i05, type: _EuiTableFilterComponent, deps: [], target: i05.ɵɵFactoryTarget.Component });
|
1082
|
+
this.ɵfac = i05.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i05, type: _EuiTableFilterComponent, deps: [{ token: i1.BaseStatesDirective }], target: i05.ɵɵFactoryTarget.Component });
|
1227
1083
|
}
|
1228
1084
|
static {
|
1229
|
-
this.ɵcmp = i05.ɵɵngDeclareComponent({ minVersion: "
|
1085
|
+
this.ɵcmp = i05.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.0.0-next.4", type: _EuiTableFilterComponent, selector: "eui-table-filter", inputs: { placeholder: "placeholder", autoSearch: ["autoSearch", "autoSearch", booleanAttribute3] }, outputs: { filterChange: "filterChange" }, host: { properties: { "class": "this.cssClasses" } }, viewQueries: [{ propertyName: "filterInput", first: true, predicate: ["filterInput"], descendants: true, read: ElementRef2 }], hostDirectives: [{ directive: i1.BaseStatesDirective }], ngImport: i05, template: `<div class="eui-table__filter">
|
1230
1086
|
<form [formGroup]="form">
|
1231
1087
|
<input
|
1232
1088
|
#filterInput
|
@@ -1239,12 +1095,17 @@ var EuiTableFilterComponent = class _EuiTableFilterComponent extends BaseDirecti
|
|
1239
1095
|
<eui-icon-svg class="eui-table__filter-search-icon" icon="eui-search" set="eui" size="m" fillColor="grey-35"></eui-icon-svg>
|
1240
1096
|
</form>
|
1241
1097
|
</div>
|
1242
|
-
`, dependencies: [{ kind: "directive", type:
|
1098
|
+
`, dependencies: [{ kind: "directive", type: i22.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i22.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i22.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i22.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: i33.EuiIconSvgComponent, selector: "eui-icon-svg, span[euiIconSvg], i[euiIconSvg]", inputs: ["icon", "size", "fillColor", "set", "ariaLabelledby", "role", "style", "iconUrl", "transform", "aria-label", "ariaHidden", "focusable", "isLoading", "isInputIcon", "euiStart", "euiEnd"] }, { kind: "directive", type: i22.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i22.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i43.EuiInputTextComponent, selector: "input[euiInputText]", inputs: ["isInvalid"] }], encapsulation: i05.ViewEncapsulation.None });
|
1243
1099
|
}
|
1244
1100
|
};
|
1245
1101
|
i05.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i05, type: EuiTableFilterComponent, decorators: [{
|
1246
1102
|
type: Component3,
|
1247
|
-
args: [{ selector: "eui-table-filter", encapsulation: ViewEncapsulation3.None,
|
1103
|
+
args: [{ selector: "eui-table-filter", encapsulation: ViewEncapsulation3.None, hostDirectives: [
|
1104
|
+
{
|
1105
|
+
directive: BaseStatesDirective3,
|
1106
|
+
inputs: []
|
1107
|
+
}
|
1108
|
+
], template: `<div class="eui-table__filter">
|
1248
1109
|
<form [formGroup]="form">
|
1249
1110
|
<input
|
1250
1111
|
#filterInput
|
@@ -1258,7 +1119,10 @@ i05.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4",
|
|
1258
1119
|
</form>
|
1259
1120
|
</div>
|
1260
1121
|
` }]
|
1261
|
-
}], ctorParameters: () => [], propDecorators: {
|
1122
|
+
}], ctorParameters: () => [{ type: i1.BaseStatesDirective }], propDecorators: { cssClasses: [{
|
1123
|
+
type: HostBinding3,
|
1124
|
+
args: ["class"]
|
1125
|
+
}], placeholder: [{
|
1262
1126
|
type: Input3
|
1263
1127
|
}], filterChange: [{
|
1264
1128
|
type: Output2
|
@@ -1266,10 +1130,8 @@ i05.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4",
|
|
1266
1130
|
type: ViewChild3,
|
1267
1131
|
args: ["filterInput", { read: ElementRef2 }]
|
1268
1132
|
}], autoSearch: [{
|
1269
|
-
type: Input3
|
1270
|
-
|
1271
|
-
type: HostBinding3,
|
1272
|
-
args: ["class"]
|
1133
|
+
type: Input3,
|
1134
|
+
args: [{ transform: booleanAttribute3 }]
|
1273
1135
|
}] } });
|
1274
1136
|
|
1275
1137
|
// pipes/eui-table-highlight-filter.pipe.mjs
|
@@ -1299,33 +1161,18 @@ i06.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4",
|
|
1299
1161
|
}] });
|
1300
1162
|
|
1301
1163
|
// selectable-row/eui-table-selectable-row.component.mjs
|
1302
|
-
import { Component as Component4, Input as Input4, HostBinding as HostBinding4, HostListener } from "@angular/core";
|
1303
|
-
import { Subject as Subject4 } from "rxjs";
|
1304
|
-
import { takeUntil as takeUntil4 } from "rxjs/operators";
|
1305
|
-
import { coerceBooleanProperty as coerceBooleanProperty4 } from "@angular/cdk/coercion";
|
1164
|
+
import { Component as Component4, Input as Input4, HostBinding as HostBinding4, HostListener, booleanAttribute as booleanAttribute4 } from "@angular/core";
|
1165
|
+
import { Subject as Subject4, takeUntil as takeUntil4 } from "rxjs";
|
1306
1166
|
import * as i07 from "@angular/core";
|
1307
|
-
import * as i23 from "@
|
1308
|
-
import * as i34 from "@eui/components/eui-input-checkbox";
|
1167
|
+
import * as i23 from "@eui/components/eui-input-checkbox";
|
1309
1168
|
var EuiTableSelectableRowComponent = class _EuiTableSelectableRowComponent {
|
1310
|
-
get isChecked() {
|
1311
|
-
return this._isChecked;
|
1312
|
-
}
|
1313
|
-
set isChecked(value) {
|
1314
|
-
this._isChecked = coerceBooleanProperty4(value);
|
1315
|
-
}
|
1316
|
-
get isKeyboardSelectable() {
|
1317
|
-
return this._isKeyboardSelectable;
|
1318
|
-
}
|
1319
|
-
set isKeyboardSelectable(value) {
|
1320
|
-
this._isKeyboardSelectable = coerceBooleanProperty4(value);
|
1321
|
-
}
|
1322
1169
|
get cssClasses() {
|
1323
1170
|
return ["eui-table__row", this.isSelectable ? "eui-table__row--selectable" : "", this.isChecked ? "eui-table__row--selected" : ""].join(" ").trim();
|
1324
1171
|
}
|
1325
1172
|
constructor(euiTableSelectableRowService) {
|
1326
1173
|
this.euiTableSelectableRowService = euiTableSelectableRowService;
|
1327
|
-
this.
|
1328
|
-
this.
|
1174
|
+
this.isChecked = false;
|
1175
|
+
this.isKeyboardSelectable = false;
|
1329
1176
|
this.propId = "id";
|
1330
1177
|
this.destroy$ = new Subject4();
|
1331
1178
|
}
|
@@ -1380,18 +1227,20 @@ var EuiTableSelectableRowComponent = class _EuiTableSelectableRowComponent {
|
|
1380
1227
|
this.ɵfac = i07.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i07, type: _EuiTableSelectableRowComponent, deps: [{ token: EuiTableSelectableRowService }], target: i07.ɵɵFactoryTarget.Component });
|
1381
1228
|
}
|
1382
1229
|
static {
|
1383
|
-
this.ɵcmp = i07.ɵɵngDeclareComponent({ minVersion: "
|
1230
|
+
this.ɵcmp = i07.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.0-next.4", type: _EuiTableSelectableRowComponent, selector: "tr[isSelectable]", inputs: { isSelectable: "isSelectable", isChecked: ["isChecked", "isChecked", booleanAttribute4], isKeyboardSelectable: ["isKeyboardSelectable", "isKeyboardSelectable", booleanAttribute4] }, host: { listeners: { "click": "onClickRow($event)" }, properties: { "class": "this.cssClasses" } }, usesOnChanges: true, ngImport: i07, template: '@if (isSelectable) {\n <td class="eui-table__cell-select">\n <div class="eui-table__cell-select-checkbox-container">\n @if (isChecked) {\n <input aria-label="default checkbox checked" euiInputCheckBox checked="true" (click)="toggleCheckedState($event)" />\n }\n @if (!isChecked) {\n <input aria-label="default checkbox unchecked" euiInputCheckBox checked="false" (click)="toggleCheckedState($event)" />\n }\n </div>\n </td>\n}\n<ng-content></ng-content>\n', dependencies: [{ kind: "component", type: i23.EuiInputCheckboxComponent, selector: "input[euiInputCheckBox]", inputs: ["indeterminate", "isInvalid", "styleClass", "checked", "id"], outputs: ["indeterminateChange"] }] });
|
1384
1231
|
}
|
1385
1232
|
};
|
1386
1233
|
i07.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i07, type: EuiTableSelectableRowComponent, decorators: [{
|
1387
1234
|
type: Component4,
|
1388
|
-
args: [{ selector: "tr[isSelectable]", template: '<td
|
1235
|
+
args: [{ selector: "tr[isSelectable]", template: '@if (isSelectable) {\n <td class="eui-table__cell-select">\n <div class="eui-table__cell-select-checkbox-container">\n @if (isChecked) {\n <input aria-label="default checkbox checked" euiInputCheckBox checked="true" (click)="toggleCheckedState($event)" />\n }\n @if (!isChecked) {\n <input aria-label="default checkbox unchecked" euiInputCheckBox checked="false" (click)="toggleCheckedState($event)" />\n }\n </div>\n </td>\n}\n<ng-content></ng-content>\n' }]
|
1389
1236
|
}], ctorParameters: () => [{ type: EuiTableSelectableRowService }], propDecorators: { isSelectable: [{
|
1390
1237
|
type: Input4
|
1391
1238
|
}], isChecked: [{
|
1392
|
-
type: Input4
|
1239
|
+
type: Input4,
|
1240
|
+
args: [{ transform: booleanAttribute4 }]
|
1393
1241
|
}], isKeyboardSelectable: [{
|
1394
|
-
type: Input4
|
1242
|
+
type: Input4,
|
1243
|
+
args: [{ transform: booleanAttribute4 }]
|
1395
1244
|
}], cssClasses: [{
|
1396
1245
|
type: HostBinding4,
|
1397
1246
|
args: ["class"]
|
@@ -1401,31 +1250,16 @@ i07.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4",
|
|
1401
1250
|
}] } });
|
1402
1251
|
|
1403
1252
|
// selectable-header/eui-table-selectable-header.component.mjs
|
1404
|
-
import { Component as Component5, Input as Input5, ViewChild as ViewChild4 } from "@angular/core";
|
1405
|
-
import { Subject as Subject5 } from "rxjs";
|
1406
|
-
import { takeUntil as takeUntil5 } from "rxjs/operators";
|
1407
|
-
import { coerceBooleanProperty as coerceBooleanProperty5 } from "@angular/cdk/coercion";
|
1253
|
+
import { Component as Component5, Input as Input5, ViewChild as ViewChild4, booleanAttribute as booleanAttribute5 } from "@angular/core";
|
1254
|
+
import { Subject as Subject5, takeUntil as takeUntil5 } from "rxjs";
|
1408
1255
|
import * as i08 from "@angular/core";
|
1409
|
-
import * as i24 from "@
|
1410
|
-
import * as i35 from "@eui/components/eui-input-checkbox";
|
1256
|
+
import * as i24 from "@eui/components/eui-input-checkbox";
|
1411
1257
|
var EuiTableSelectableHeaderComponent = class _EuiTableSelectableHeaderComponent {
|
1412
|
-
get isSelectableHeader() {
|
1413
|
-
return this._isSelectableHeader;
|
1414
|
-
}
|
1415
|
-
set isSelectableHeader(value) {
|
1416
|
-
this._isSelectableHeader = coerceBooleanProperty5(value);
|
1417
|
-
}
|
1418
|
-
get isChecked() {
|
1419
|
-
return this._isChecked;
|
1420
|
-
}
|
1421
|
-
set isChecked(value) {
|
1422
|
-
this._isChecked = coerceBooleanProperty5(value);
|
1423
|
-
}
|
1424
1258
|
constructor(euiTableSelectableRowService) {
|
1425
1259
|
this.euiTableSelectableRowService = euiTableSelectableRowService;
|
1426
1260
|
this.isCheckedIndeterminate = false;
|
1427
|
-
this.
|
1428
|
-
this.
|
1261
|
+
this.isSelectableHeader = true;
|
1262
|
+
this.isChecked = false;
|
1429
1263
|
this.destroy$ = new Subject5();
|
1430
1264
|
}
|
1431
1265
|
ngOnInit() {
|
@@ -1457,19 +1291,21 @@ var EuiTableSelectableHeaderComponent = class _EuiTableSelectableHeaderComponent
|
|
1457
1291
|
this.ɵfac = i08.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i08, type: _EuiTableSelectableHeaderComponent, deps: [{ token: EuiTableSelectableRowService }], target: i08.ɵɵFactoryTarget.Component });
|
1458
1292
|
}
|
1459
1293
|
static {
|
1460
|
-
this.ɵcmp = i08.ɵɵngDeclareComponent({ minVersion: "
|
1294
|
+
this.ɵcmp = i08.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.0-next.4", type: _EuiTableSelectableHeaderComponent, selector: "tr[isSelectableHeader]", inputs: { isSelectableHeader: ["isSelectableHeader", "isSelectableHeader", booleanAttribute5], isChecked: ["isChecked", "isChecked", booleanAttribute5] }, viewQueries: [{ propertyName: "checkbox", first: true, predicate: ["checkbox"], descendants: true }], ngImport: i08, template: '@if (isSelectableHeader) {\n <th class="eui-table__cell-select">\n <div class="eui-table__cell-select-checkbox-container">\n @if (!isChecked && !isCheckedIndeterminate) {\n <input aria-label="Unchecked" euiInputCheckBox checked="false" (click)="toggleCheckedState(true)" />\n }\n @if (isCheckedIndeterminate) {\n <input aria-label="Indeterminate" euiInputCheckBox indeterminate (click)="toggleCheckedState(false)" />\n }\n @if (isChecked && !isCheckedIndeterminate) {\n <input aria-label="Checked" euiInputCheckBox checked="true" (click)="toggleCheckedState(false)" />\n }\n </div>\n </th>\n}\n\n<ng-content></ng-content>\n', dependencies: [{ kind: "component", type: i24.EuiInputCheckboxComponent, selector: "input[euiInputCheckBox]", inputs: ["indeterminate", "isInvalid", "styleClass", "checked", "id"], outputs: ["indeterminateChange"] }] });
|
1461
1295
|
}
|
1462
1296
|
};
|
1463
1297
|
i08.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i08, type: EuiTableSelectableHeaderComponent, decorators: [{
|
1464
1298
|
type: Component5,
|
1465
|
-
args: [{ selector: "tr[isSelectableHeader]", template: '<th
|
1299
|
+
args: [{ selector: "tr[isSelectableHeader]", template: '@if (isSelectableHeader) {\n <th class="eui-table__cell-select">\n <div class="eui-table__cell-select-checkbox-container">\n @if (!isChecked && !isCheckedIndeterminate) {\n <input aria-label="Unchecked" euiInputCheckBox checked="false" (click)="toggleCheckedState(true)" />\n }\n @if (isCheckedIndeterminate) {\n <input aria-label="Indeterminate" euiInputCheckBox indeterminate (click)="toggleCheckedState(false)" />\n }\n @if (isChecked && !isCheckedIndeterminate) {\n <input aria-label="Checked" euiInputCheckBox checked="true" (click)="toggleCheckedState(false)" />\n }\n </div>\n </th>\n}\n\n<ng-content></ng-content>\n' }]
|
1466
1300
|
}], ctorParameters: () => [{ type: EuiTableSelectableRowService }], propDecorators: { checkbox: [{
|
1467
1301
|
type: ViewChild4,
|
1468
1302
|
args: ["checkbox"]
|
1469
1303
|
}], isSelectableHeader: [{
|
1470
|
-
type: Input5
|
1304
|
+
type: Input5,
|
1305
|
+
args: [{ transform: booleanAttribute5 }]
|
1471
1306
|
}], isChecked: [{
|
1472
|
-
type: Input5
|
1307
|
+
type: Input5,
|
1308
|
+
args: [{ transform: booleanAttribute5 }]
|
1473
1309
|
}] } });
|
1474
1310
|
|
1475
1311
|
// expandable-row/eui-table-expandable-row.component.mjs
|