table.mjs 66 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777
  1. import * as i0 from '@angular/core';
  2. import { Directive, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
  3. import * as i1 from '@angular/cdk/table';
  4. import { CdkTable, CDK_TABLE, _COALESCED_STYLE_SCHEDULER, _CoalescedStyleScheduler, STICKY_POSITIONING_LISTENER, CDK_TABLE_TEMPLATE, CdkCellDef, CdkHeaderCellDef, CdkFooterCellDef, CdkColumnDef, CdkHeaderCell, CdkFooterCell, CdkCell, CdkHeaderRowDef, CdkFooterRowDef, CdkRowDef, CdkHeaderRow, CDK_ROW_TEMPLATE, CdkFooterRow, CdkRow, CdkNoDataRow, CdkTextColumn, CdkTableModule } from '@angular/cdk/table';
  5. import { _VIEW_REPEATER_STRATEGY, _RecycleViewRepeaterStrategy, _DisposeViewRepeaterStrategy, DataSource } from '@angular/cdk/collections';
  6. import { MatCommonModule } from '@angular/material/core';
  7. import { BehaviorSubject, Subject, merge, of, combineLatest } from 'rxjs';
  8. import { _isNumberValue } from '@angular/cdk/coercion';
  9. import { map } from 'rxjs/operators';
  10. /**
  11. * Enables the recycle view repeater strategy, which reduces rendering latency. Not compatible with
  12. * tables that animate rows.
  13. */
  14. class MatRecycleRows {
  15. static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatRecycleRows, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
  16. static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: MatRecycleRows, selector: "mat-table[recycleRows], table[mat-table][recycleRows]", providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }], ngImport: i0 }); }
  17. }
  18. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatRecycleRows, decorators: [{
  19. type: Directive,
  20. args: [{
  21. selector: 'mat-table[recycleRows], table[mat-table][recycleRows]',
  22. providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }],
  23. }]
  24. }] });
  25. class MatTable extends CdkTable {
  26. constructor() {
  27. super(...arguments);
  28. /** Overrides the sticky CSS class set by the `CdkTable`. */
  29. this.stickyCssClass = 'mat-mdc-table-sticky';
  30. /** Overrides the need to add position: sticky on every sticky cell element in `CdkTable`. */
  31. this.needsPositionStickyOnElement = false;
  32. }
  33. ngOnInit() {
  34. super.ngOnInit();
  35. // After ngOnInit, the `CdkTable` has created and inserted the table sections (thead, tbody,
  36. // tfoot). MDC requires the `mdc-data-table__content` class to be added to the body. Note that
  37. // this only applies to native tables, because we don't wrap the content of flexbox-based ones.
  38. if (this._isNativeHtmlTable) {
  39. const tbody = this._elementRef.nativeElement.querySelector('tbody');
  40. tbody.classList.add('mdc-data-table__content');
  41. }
  42. }
  43. static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatTable, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
  44. static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: MatTable, selector: "mat-table, table[mat-table]", host: { attributes: { "ngSkipHydration": "" }, properties: { "class.mdc-table-fixed-layout": "fixedLayout" }, classAttribute: "mat-mdc-table mdc-data-table__table" }, providers: [
  45. { provide: CdkTable, useExisting: MatTable },
  46. { provide: CDK_TABLE, useExisting: MatTable },
  47. { provide: _COALESCED_STYLE_SCHEDULER, useClass: _CoalescedStyleScheduler },
  48. // TODO(michaeljamesparsons) Abstract the view repeater strategy to a directive API so this code
  49. // is only included in the build if used.
  50. { provide: _VIEW_REPEATER_STRATEGY, useClass: _DisposeViewRepeaterStrategy },
  51. // Prevent nested tables from seeing this table's StickyPositioningListener.
  52. { provide: STICKY_POSITIONING_LISTENER, useValue: null },
  53. ], exportAs: ["matTable"], usesInheritance: true, ngImport: i0, template: "\n <ng-content select=\"caption\"></ng-content>\n <ng-content select=\"colgroup, col\"></ng-content>\n <ng-container headerRowOutlet></ng-container>\n <ng-container rowOutlet></ng-container>\n <ng-container noDataRowOutlet></ng-container>\n <ng-container footerRowOutlet></ng-container>\n", isInline: true, styles: [".mdc-data-table{border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child{border-bottom-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child[dir=rtl]{border-bottom-right-radius:var(--mdc-shape-medium, 4px);border-bottom-left-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child{border-bottom-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child[dir=rtl]{border-bottom-left-radius:var(--mdc-shape-medium, 4px);border-bottom-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-list-item.mdc-list-item--with-one-line{height:36px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table-sticky{position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table .mat-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"], dependencies: [{ kind: "directive", type: i1.DataRowOutlet, selector: "[rowOutlet]" }, { kind: "directive", type: i1.HeaderRowOutlet, selector: "[headerRowOutlet]" }, { kind: "directive", type: i1.FooterRowOutlet, selector: "[footerRowOutlet]" }, { kind: "directive", type: i1.NoDataRowOutlet, selector: "[noDataRowOutlet]" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None }); }
  54. }
  55. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatTable, decorators: [{
  56. type: Component,
  57. args: [{ selector: 'mat-table, table[mat-table]', exportAs: 'matTable', template: CDK_TABLE_TEMPLATE, host: {
  58. 'class': 'mat-mdc-table mdc-data-table__table',
  59. '[class.mdc-table-fixed-layout]': 'fixedLayout',
  60. 'ngSkipHydration': '',
  61. }, providers: [
  62. { provide: CdkTable, useExisting: MatTable },
  63. { provide: CDK_TABLE, useExisting: MatTable },
  64. { provide: _COALESCED_STYLE_SCHEDULER, useClass: _CoalescedStyleScheduler },
  65. // TODO(michaeljamesparsons) Abstract the view repeater strategy to a directive API so this code
  66. // is only included in the build if used.
  67. { provide: _VIEW_REPEATER_STRATEGY, useClass: _DisposeViewRepeaterStrategy },
  68. // Prevent nested tables from seeing this table's StickyPositioningListener.
  69. { provide: STICKY_POSITIONING_LISTENER, useValue: null },
  70. ], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, styles: [".mdc-data-table{border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child{border-bottom-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child[dir=rtl]{border-bottom-right-radius:var(--mdc-shape-medium, 4px);border-bottom-left-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child{border-bottom-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child[dir=rtl]{border-bottom-left-radius:var(--mdc-shape-medium, 4px);border-bottom-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-list-item.mdc-list-item--with-one-line{height:36px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table-sticky{position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table .mat-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"] }]
  71. }] });
  72. /**
  73. * Cell definition for the mat-table.
  74. * Captures the template of a column's data row cell as well as cell-specific properties.
  75. */
  76. class MatCellDef extends CdkCellDef {
  77. static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatCellDef, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
  78. static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: MatCellDef, selector: "[matCellDef]", providers: [{ provide: CdkCellDef, useExisting: MatCellDef }], usesInheritance: true, ngImport: i0 }); }
  79. }
  80. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatCellDef, decorators: [{
  81. type: Directive,
  82. args: [{
  83. selector: '[matCellDef]',
  84. providers: [{ provide: CdkCellDef, useExisting: MatCellDef }],
  85. }]
  86. }] });
  87. /**
  88. * Header cell definition for the mat-table.
  89. * Captures the template of a column's header cell and as well as cell-specific properties.
  90. */
  91. class MatHeaderCellDef extends CdkHeaderCellDef {
  92. static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatHeaderCellDef, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
  93. static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: MatHeaderCellDef, selector: "[matHeaderCellDef]", providers: [{ provide: CdkHeaderCellDef, useExisting: MatHeaderCellDef }], usesInheritance: true, ngImport: i0 }); }
  94. }
  95. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatHeaderCellDef, decorators: [{
  96. type: Directive,
  97. args: [{
  98. selector: '[matHeaderCellDef]',
  99. providers: [{ provide: CdkHeaderCellDef, useExisting: MatHeaderCellDef }],
  100. }]
  101. }] });
  102. /**
  103. * Footer cell definition for the mat-table.
  104. * Captures the template of a column's footer cell and as well as cell-specific properties.
  105. */
  106. class MatFooterCellDef extends CdkFooterCellDef {
  107. static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatFooterCellDef, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
  108. static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: MatFooterCellDef, selector: "[matFooterCellDef]", providers: [{ provide: CdkFooterCellDef, useExisting: MatFooterCellDef }], usesInheritance: true, ngImport: i0 }); }
  109. }
  110. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatFooterCellDef, decorators: [{
  111. type: Directive,
  112. args: [{
  113. selector: '[matFooterCellDef]',
  114. providers: [{ provide: CdkFooterCellDef, useExisting: MatFooterCellDef }],
  115. }]
  116. }] });
  117. /**
  118. * Column definition for the mat-table.
  119. * Defines a set of cells available for a table column.
  120. */
  121. class MatColumnDef extends CdkColumnDef {
  122. /** Unique name for this column. */
  123. get name() {
  124. return this._name;
  125. }
  126. set name(name) {
  127. this._setNameInput(name);
  128. }
  129. /**
  130. * Add "mat-column-" prefix in addition to "cdk-column-" prefix.
  131. * In the future, this will only add "mat-column-" and columnCssClassName
  132. * will change from type string[] to string.
  133. * @docs-private
  134. */
  135. _updateColumnCssClassName() {
  136. super._updateColumnCssClassName();
  137. this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`);
  138. }
  139. static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatColumnDef, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
  140. static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: MatColumnDef, selector: "[matColumnDef]", inputs: { sticky: "sticky", name: ["matColumnDef", "name"] }, providers: [
  141. { provide: CdkColumnDef, useExisting: MatColumnDef },
  142. { provide: 'MAT_SORT_HEADER_COLUMN_DEF', useExisting: MatColumnDef },
  143. ], usesInheritance: true, ngImport: i0 }); }
  144. }
  145. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatColumnDef, decorators: [{
  146. type: Directive,
  147. args: [{
  148. selector: '[matColumnDef]',
  149. inputs: ['sticky'],
  150. providers: [
  151. { provide: CdkColumnDef, useExisting: MatColumnDef },
  152. { provide: 'MAT_SORT_HEADER_COLUMN_DEF', useExisting: MatColumnDef },
  153. ],
  154. }]
  155. }], propDecorators: { name: [{
  156. type: Input,
  157. args: ['matColumnDef']
  158. }] } });
  159. /** Header cell template container that adds the right classes and role. */
  160. class MatHeaderCell extends CdkHeaderCell {
  161. static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatHeaderCell, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
  162. static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]", host: { attributes: { "role": "columnheader" }, classAttribute: "mat-mdc-header-cell mdc-data-table__header-cell" }, usesInheritance: true, ngImport: i0 }); }
  163. }
  164. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatHeaderCell, decorators: [{
  165. type: Directive,
  166. args: [{
  167. selector: 'mat-header-cell, th[mat-header-cell]',
  168. host: {
  169. 'class': 'mat-mdc-header-cell mdc-data-table__header-cell',
  170. 'role': 'columnheader',
  171. },
  172. }]
  173. }] });
  174. /** Footer cell template container that adds the right classes and role. */
  175. class MatFooterCell extends CdkFooterCell {
  176. static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatFooterCell, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
  177. static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: MatFooterCell, selector: "mat-footer-cell, td[mat-footer-cell]", host: { classAttribute: "mat-mdc-footer-cell mdc-data-table__cell" }, usesInheritance: true, ngImport: i0 }); }
  178. }
  179. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatFooterCell, decorators: [{
  180. type: Directive,
  181. args: [{
  182. selector: 'mat-footer-cell, td[mat-footer-cell]',
  183. host: {
  184. 'class': 'mat-mdc-footer-cell mdc-data-table__cell',
  185. },
  186. }]
  187. }] });
  188. /** Cell template container that adds the right classes and role. */
  189. class MatCell extends CdkCell {
  190. static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatCell, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
  191. static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: MatCell, selector: "mat-cell, td[mat-cell]", host: { classAttribute: "mat-mdc-cell mdc-data-table__cell" }, usesInheritance: true, ngImport: i0 }); }
  192. }
  193. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatCell, decorators: [{
  194. type: Directive,
  195. args: [{
  196. selector: 'mat-cell, td[mat-cell]',
  197. host: {
  198. 'class': 'mat-mdc-cell mdc-data-table__cell',
  199. },
  200. }]
  201. }] });
  202. /**
  203. * Header row definition for the mat-table.
  204. * Captures the header row's template and other header properties such as the columns to display.
  205. */
  206. class MatHeaderRowDef extends CdkHeaderRowDef {
  207. static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatHeaderRowDef, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
  208. static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: { columns: ["matHeaderRowDef", "columns"], sticky: ["matHeaderRowDefSticky", "sticky"] }, providers: [{ provide: CdkHeaderRowDef, useExisting: MatHeaderRowDef }], usesInheritance: true, ngImport: i0 }); }
  209. }
  210. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatHeaderRowDef, decorators: [{
  211. type: Directive,
  212. args: [{
  213. selector: '[matHeaderRowDef]',
  214. providers: [{ provide: CdkHeaderRowDef, useExisting: MatHeaderRowDef }],
  215. inputs: ['columns: matHeaderRowDef', 'sticky: matHeaderRowDefSticky'],
  216. }]
  217. }] });
  218. /**
  219. * Footer row definition for the mat-table.
  220. * Captures the footer row's template and other footer properties such as the columns to display.
  221. */
  222. class MatFooterRowDef extends CdkFooterRowDef {
  223. static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatFooterRowDef, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
  224. static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: MatFooterRowDef, selector: "[matFooterRowDef]", inputs: { columns: ["matFooterRowDef", "columns"], sticky: ["matFooterRowDefSticky", "sticky"] }, providers: [{ provide: CdkFooterRowDef, useExisting: MatFooterRowDef }], usesInheritance: true, ngImport: i0 }); }
  225. }
  226. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatFooterRowDef, decorators: [{
  227. type: Directive,
  228. args: [{
  229. selector: '[matFooterRowDef]',
  230. providers: [{ provide: CdkFooterRowDef, useExisting: MatFooterRowDef }],
  231. inputs: ['columns: matFooterRowDef', 'sticky: matFooterRowDefSticky'],
  232. }]
  233. }] });
  234. /**
  235. * Data row definition for the mat-table.
  236. * Captures the data row's template and other properties such as the columns to display and
  237. * a when predicate that describes when this row should be used.
  238. */
  239. class MatRowDef extends CdkRowDef {
  240. static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatRowDef, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
  241. static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: MatRowDef, selector: "[matRowDef]", inputs: { columns: ["matRowDefColumns", "columns"], when: ["matRowDefWhen", "when"] }, providers: [{ provide: CdkRowDef, useExisting: MatRowDef }], usesInheritance: true, ngImport: i0 }); }
  242. }
  243. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatRowDef, decorators: [{
  244. type: Directive,
  245. args: [{
  246. selector: '[matRowDef]',
  247. providers: [{ provide: CdkRowDef, useExisting: MatRowDef }],
  248. inputs: ['columns: matRowDefColumns', 'when: matRowDefWhen'],
  249. }]
  250. }] });
  251. /** Header template container that contains the cell outlet. Adds the right class and role. */
  252. class MatHeaderRow extends CdkHeaderRow {
  253. static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatHeaderRow, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
  254. static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", host: { attributes: { "role": "row" }, classAttribute: "mat-mdc-header-row mdc-data-table__header-row" }, providers: [{ provide: CdkHeaderRow, useExisting: MatHeaderRow }], exportAs: ["matHeaderRow"], usesInheritance: true, ngImport: i0, template: "<ng-container cdkCellOutlet></ng-container>", isInline: true, dependencies: [{ kind: "directive", type: i1.CdkCellOutlet, selector: "[cdkCellOutlet]" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None }); }
  255. }
  256. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatHeaderRow, decorators: [{
  257. type: Component,
  258. args: [{
  259. selector: 'mat-header-row, tr[mat-header-row]',
  260. template: CDK_ROW_TEMPLATE,
  261. host: {
  262. 'class': 'mat-mdc-header-row mdc-data-table__header-row',
  263. 'role': 'row',
  264. },
  265. // See note on CdkTable for explanation on why this uses the default change detection strategy.
  266. // tslint:disable-next-line:validate-decorators
  267. changeDetection: ChangeDetectionStrategy.Default,
  268. encapsulation: ViewEncapsulation.None,
  269. exportAs: 'matHeaderRow',
  270. providers: [{ provide: CdkHeaderRow, useExisting: MatHeaderRow }],
  271. }]
  272. }] });
  273. /** Footer template container that contains the cell outlet. Adds the right class and role. */
  274. class MatFooterRow extends CdkFooterRow {
  275. static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatFooterRow, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
  276. static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: MatFooterRow, selector: "mat-footer-row, tr[mat-footer-row]", host: { attributes: { "role": "row" }, classAttribute: "mat-mdc-footer-row mdc-data-table__row" }, providers: [{ provide: CdkFooterRow, useExisting: MatFooterRow }], exportAs: ["matFooterRow"], usesInheritance: true, ngImport: i0, template: "<ng-container cdkCellOutlet></ng-container>", isInline: true, dependencies: [{ kind: "directive", type: i1.CdkCellOutlet, selector: "[cdkCellOutlet]" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None }); }
  277. }
  278. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatFooterRow, decorators: [{
  279. type: Component,
  280. args: [{
  281. selector: 'mat-footer-row, tr[mat-footer-row]',
  282. template: CDK_ROW_TEMPLATE,
  283. host: {
  284. 'class': 'mat-mdc-footer-row mdc-data-table__row',
  285. 'role': 'row',
  286. },
  287. // See note on CdkTable for explanation on why this uses the default change detection strategy.
  288. // tslint:disable-next-line:validate-decorators
  289. changeDetection: ChangeDetectionStrategy.Default,
  290. encapsulation: ViewEncapsulation.None,
  291. exportAs: 'matFooterRow',
  292. providers: [{ provide: CdkFooterRow, useExisting: MatFooterRow }],
  293. }]
  294. }] });
  295. /** Data row template container that contains the cell outlet. Adds the right class and role. */
  296. class MatRow extends CdkRow {
  297. static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatRow, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
  298. static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: MatRow, selector: "mat-row, tr[mat-row]", host: { attributes: { "role": "row" }, classAttribute: "mat-mdc-row mdc-data-table__row" }, providers: [{ provide: CdkRow, useExisting: MatRow }], exportAs: ["matRow"], usesInheritance: true, ngImport: i0, template: "<ng-container cdkCellOutlet></ng-container>", isInline: true, dependencies: [{ kind: "directive", type: i1.CdkCellOutlet, selector: "[cdkCellOutlet]" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None }); }
  299. }
  300. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatRow, decorators: [{
  301. type: Component,
  302. args: [{
  303. selector: 'mat-row, tr[mat-row]',
  304. template: CDK_ROW_TEMPLATE,
  305. host: {
  306. 'class': 'mat-mdc-row mdc-data-table__row',
  307. 'role': 'row',
  308. },
  309. // See note on CdkTable for explanation on why this uses the default change detection strategy.
  310. // tslint:disable-next-line:validate-decorators
  311. changeDetection: ChangeDetectionStrategy.Default,
  312. encapsulation: ViewEncapsulation.None,
  313. exportAs: 'matRow',
  314. providers: [{ provide: CdkRow, useExisting: MatRow }],
  315. }]
  316. }] });
  317. /** Row that can be used to display a message when no data is shown in the table. */
  318. class MatNoDataRow extends CdkNoDataRow {
  319. constructor() {
  320. super(...arguments);
  321. this._contentClassName = 'mat-mdc-no-data-row';
  322. }
  323. static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatNoDataRow, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
  324. static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: MatNoDataRow, selector: "ng-template[matNoDataRow]", providers: [{ provide: CdkNoDataRow, useExisting: MatNoDataRow }], usesInheritance: true, ngImport: i0 }); }
  325. }
  326. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatNoDataRow, decorators: [{
  327. type: Directive,
  328. args: [{
  329. selector: 'ng-template[matNoDataRow]',
  330. providers: [{ provide: CdkNoDataRow, useExisting: MatNoDataRow }],
  331. }]
  332. }] });
  333. /**
  334. * Column that simply shows text content for the header and row cells. Assumes that the table
  335. * is using the native table implementation (`<table>`).
  336. *
  337. * By default, the name of this column will be the header text and data property accessor.
  338. * The header text can be overridden with the `headerText` input. Cell values can be overridden with
  339. * the `dataAccessor` input. Change the text justification to the start or end using the `justify`
  340. * input.
  341. */
  342. class MatTextColumn extends CdkTextColumn {
  343. static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatTextColumn, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
  344. static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: MatTextColumn, selector: "mat-text-column", usesInheritance: true, ngImport: i0, template: `
  345. <ng-container matColumnDef>
  346. <th mat-header-cell *matHeaderCellDef [style.text-align]="justify">
  347. {{headerText}}
  348. </th>
  349. <td mat-cell *matCellDef="let data" [style.text-align]="justify">
  350. {{dataAccessor(data, name)}}
  351. </td>
  352. </ng-container>
  353. `, isInline: true, dependencies: [{ kind: "directive", type: MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: MatCell, selector: "mat-cell, td[mat-cell]" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None }); }
  354. }
  355. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatTextColumn, decorators: [{
  356. type: Component,
  357. args: [{
  358. selector: 'mat-text-column',
  359. template: `
  360. <ng-container matColumnDef>
  361. <th mat-header-cell *matHeaderCellDef [style.text-align]="justify">
  362. {{headerText}}
  363. </th>
  364. <td mat-cell *matCellDef="let data" [style.text-align]="justify">
  365. {{dataAccessor(data, name)}}
  366. </td>
  367. </ng-container>
  368. `,
  369. encapsulation: ViewEncapsulation.None,
  370. // Change detection is intentionally not set to OnPush. This component's template will be provided
  371. // to the table to be inserted into its view. This is problematic when change detection runs since
  372. // the bindings in this template will be evaluated _after_ the table's view is evaluated, which
  373. // mean's the template in the table's view will not have the updated value (and in fact will cause
  374. // an ExpressionChangedAfterItHasBeenCheckedError).
  375. // tslint:disable-next-line:validate-decorators
  376. changeDetection: ChangeDetectionStrategy.Default,
  377. }]
  378. }] });
  379. const EXPORTED_DECLARATIONS = [
  380. // Table
  381. MatTable,
  382. MatRecycleRows,
  383. // Template defs
  384. MatHeaderCellDef,
  385. MatHeaderRowDef,
  386. MatColumnDef,
  387. MatCellDef,
  388. MatRowDef,
  389. MatFooterCellDef,
  390. MatFooterRowDef,
  391. // Cell directives
  392. MatHeaderCell,
  393. MatCell,
  394. MatFooterCell,
  395. // Row directives
  396. MatHeaderRow,
  397. MatRow,
  398. MatFooterRow,
  399. MatNoDataRow,
  400. MatTextColumn,
  401. ];
  402. class MatTableModule {
  403. static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
  404. static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: MatTableModule, declarations: [
  405. // Table
  406. MatTable,
  407. MatRecycleRows,
  408. // Template defs
  409. MatHeaderCellDef,
  410. MatHeaderRowDef,
  411. MatColumnDef,
  412. MatCellDef,
  413. MatRowDef,
  414. MatFooterCellDef,
  415. MatFooterRowDef,
  416. // Cell directives
  417. MatHeaderCell,
  418. MatCell,
  419. MatFooterCell,
  420. // Row directives
  421. MatHeaderRow,
  422. MatRow,
  423. MatFooterRow,
  424. MatNoDataRow,
  425. MatTextColumn], imports: [MatCommonModule, CdkTableModule], exports: [MatCommonModule,
  426. // Table
  427. MatTable,
  428. MatRecycleRows,
  429. // Template defs
  430. MatHeaderCellDef,
  431. MatHeaderRowDef,
  432. MatColumnDef,
  433. MatCellDef,
  434. MatRowDef,
  435. MatFooterCellDef,
  436. MatFooterRowDef,
  437. // Cell directives
  438. MatHeaderCell,
  439. MatCell,
  440. MatFooterCell,
  441. // Row directives
  442. MatHeaderRow,
  443. MatRow,
  444. MatFooterRow,
  445. MatNoDataRow,
  446. MatTextColumn] }); }
  447. static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatTableModule, imports: [MatCommonModule, CdkTableModule, MatCommonModule] }); }
  448. }
  449. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatTableModule, decorators: [{
  450. type: NgModule,
  451. args: [{
  452. imports: [MatCommonModule, CdkTableModule],
  453. exports: [MatCommonModule, EXPORTED_DECLARATIONS],
  454. declarations: EXPORTED_DECLARATIONS,
  455. }]
  456. }] });
  457. /**
  458. * Corresponds to `Number.MAX_SAFE_INTEGER`. Moved out into a variable here due to
  459. * flaky browser support and the value not being defined in Closure's typings.
  460. */
  461. const MAX_SAFE_INTEGER = 9007199254740991;
  462. /** Shared base class with MDC-based implementation. */
  463. class _MatTableDataSource extends DataSource {
  464. /** Array of data that should be rendered by the table, where each object represents one row. */
  465. get data() {
  466. return this._data.value;
  467. }
  468. set data(data) {
  469. data = Array.isArray(data) ? data : [];
  470. this._data.next(data);
  471. // Normally the `filteredData` is updated by the re-render
  472. // subscription, but that won't happen if it's inactive.
  473. if (!this._renderChangesSubscription) {
  474. this._filterData(data);
  475. }
  476. }
  477. /**
  478. * Filter term that should be used to filter out objects from the data array. To override how
  479. * data objects match to this filter string, provide a custom function for filterPredicate.
  480. */
  481. get filter() {
  482. return this._filter.value;
  483. }
  484. set filter(filter) {
  485. this._filter.next(filter);
  486. // Normally the `filteredData` is updated by the re-render
  487. // subscription, but that won't happen if it's inactive.
  488. if (!this._renderChangesSubscription) {
  489. this._filterData(this.data);
  490. }
  491. }
  492. /**
  493. * Instance of the MatSort directive used by the table to control its sorting. Sort changes
  494. * emitted by the MatSort will trigger an update to the table's rendered data.
  495. */
  496. get sort() {
  497. return this._sort;
  498. }
  499. set sort(sort) {
  500. this._sort = sort;
  501. this._updateChangeSubscription();
  502. }
  503. /**
  504. * Instance of the paginator component used by the table to control what page of the data is
  505. * displayed. Page changes emitted by the paginator will trigger an update to the
  506. * table's rendered data.
  507. *
  508. * Note that the data source uses the paginator's properties to calculate which page of data
  509. * should be displayed. If the paginator receives its properties as template inputs,
  510. * e.g. `[pageLength]=100` or `[pageIndex]=1`, then be sure that the paginator's view has been
  511. * initialized before assigning it to this data source.
  512. */
  513. get paginator() {
  514. return this._paginator;
  515. }
  516. set paginator(paginator) {
  517. this._paginator = paginator;
  518. this._updateChangeSubscription();
  519. }
  520. constructor(initialData = []) {
  521. super();
  522. /** Stream emitting render data to the table (depends on ordered data changes). */
  523. this._renderData = new BehaviorSubject([]);
  524. /** Stream that emits when a new filter string is set on the data source. */
  525. this._filter = new BehaviorSubject('');
  526. /** Used to react to internal changes of the paginator that are made by the data source itself. */
  527. this._internalPageChanges = new Subject();
  528. /**
  529. * Subscription to the changes that should trigger an update to the table's rendered rows, such
  530. * as filtering, sorting, pagination, or base data changes.
  531. */
  532. this._renderChangesSubscription = null;
  533. /**
  534. * Data accessor function that is used for accessing data properties for sorting through
  535. * the default sortData function.
  536. * This default function assumes that the sort header IDs (which defaults to the column name)
  537. * matches the data's properties (e.g. column Xyz represents data['Xyz']).
  538. * May be set to a custom function for different behavior.
  539. * @param data Data object that is being accessed.
  540. * @param sortHeaderId The name of the column that represents the data.
  541. */
  542. this.sortingDataAccessor = (data, sortHeaderId) => {
  543. const value = data[sortHeaderId];
  544. if (_isNumberValue(value)) {
  545. const numberValue = Number(value);
  546. // Numbers beyond `MAX_SAFE_INTEGER` can't be compared reliably so we
  547. // leave them as strings. For more info: https://goo.gl/y5vbSg
  548. return numberValue < MAX_SAFE_INTEGER ? numberValue : value;
  549. }
  550. return value;
  551. };
  552. /**
  553. * Gets a sorted copy of the data array based on the state of the MatSort. Called
  554. * after changes are made to the filtered data or when sort changes are emitted from MatSort.
  555. * By default, the function retrieves the active sort and its direction and compares data
  556. * by retrieving data using the sortingDataAccessor. May be overridden for a custom implementation
  557. * of data ordering.
  558. * @param data The array of data that should be sorted.
  559. * @param sort The connected MatSort that holds the current sort state.
  560. */
  561. this.sortData = (data, sort) => {
  562. const active = sort.active;
  563. const direction = sort.direction;
  564. if (!active || direction == '') {
  565. return data;
  566. }
  567. return data.sort((a, b) => {
  568. let valueA = this.sortingDataAccessor(a, active);
  569. let valueB = this.sortingDataAccessor(b, active);
  570. // If there are data in the column that can be converted to a number,
  571. // it must be ensured that the rest of the data
  572. // is of the same type so as not to order incorrectly.
  573. const valueAType = typeof valueA;
  574. const valueBType = typeof valueB;
  575. if (valueAType !== valueBType) {
  576. if (valueAType === 'number') {
  577. valueA += '';
  578. }
  579. if (valueBType === 'number') {
  580. valueB += '';
  581. }
  582. }
  583. // If both valueA and valueB exist (truthy), then compare the two. Otherwise, check if
  584. // one value exists while the other doesn't. In this case, existing value should come last.
  585. // This avoids inconsistent results when comparing values to undefined/null.
  586. // If neither value exists, return 0 (equal).
  587. let comparatorResult = 0;
  588. if (valueA != null && valueB != null) {
  589. // Check if one value is greater than the other; if equal, comparatorResult should remain 0.
  590. if (valueA > valueB) {
  591. comparatorResult = 1;
  592. }
  593. else if (valueA < valueB) {
  594. comparatorResult = -1;
  595. }
  596. }
  597. else if (valueA != null) {
  598. comparatorResult = 1;
  599. }
  600. else if (valueB != null) {
  601. comparatorResult = -1;
  602. }
  603. return comparatorResult * (direction == 'asc' ? 1 : -1);
  604. });
  605. };
  606. /**
  607. * Checks if a data object matches the data source's filter string. By default, each data object
  608. * is converted to a string of its properties and returns true if the filter has
  609. * at least one occurrence in that string. By default, the filter string has its whitespace
  610. * trimmed and the match is case-insensitive. May be overridden for a custom implementation of
  611. * filter matching.
  612. * @param data Data object used to check against the filter.
  613. * @param filter Filter string that has been set on the data source.
  614. * @returns Whether the filter matches against the data
  615. */
  616. this.filterPredicate = (data, filter) => {
  617. // Transform the data into a lowercase string of all property values.
  618. const dataStr = Object.keys(data)
  619. .reduce((currentTerm, key) => {
  620. // Use an obscure Unicode character to delimit the words in the concatenated string.
  621. // This avoids matches where the values of two columns combined will match the user's query
  622. // (e.g. `Flute` and `Stop` will match `Test`). The character is intended to be something
  623. // that has a very low chance of being typed in by somebody in a text field. This one in
  624. // particular is "White up-pointing triangle with dot" from
  625. // https://en.wikipedia.org/wiki/List_of_Unicode_characters
  626. return currentTerm + data[key] + '◬';
  627. }, '')
  628. .toLowerCase();
  629. // Transform the filter by converting it to lowercase and removing whitespace.
  630. const transformedFilter = filter.trim().toLowerCase();
  631. return dataStr.indexOf(transformedFilter) != -1;
  632. };
  633. this._data = new BehaviorSubject(initialData);
  634. this._updateChangeSubscription();
  635. }
  636. /**
  637. * Subscribe to changes that should trigger an update to the table's rendered rows. When the
  638. * changes occur, process the current state of the filter, sort, and pagination along with
  639. * the provided base data and send it to the table for rendering.
  640. */
  641. _updateChangeSubscription() {
  642. // Sorting and/or pagination should be watched if sort and/or paginator are provided.
  643. // The events should emit whenever the component emits a change or initializes, or if no
  644. // component is provided, a stream with just a null event should be provided.
  645. // The `sortChange` and `pageChange` acts as a signal to the combineLatests below so that the
  646. // pipeline can progress to the next step. Note that the value from these streams are not used,
  647. // they purely act as a signal to progress in the pipeline.
  648. const sortChange = this._sort
  649. ? merge(this._sort.sortChange, this._sort.initialized)
  650. : of(null);
  651. const pageChange = this._paginator
  652. ? merge(this._paginator.page, this._internalPageChanges, this._paginator.initialized)
  653. : of(null);
  654. const dataStream = this._data;
  655. // Watch for base data or filter changes to provide a filtered set of data.
  656. const filteredData = combineLatest([dataStream, this._filter]).pipe(map(([data]) => this._filterData(data)));
  657. // Watch for filtered data or sort changes to provide an ordered set of data.
  658. const orderedData = combineLatest([filteredData, sortChange]).pipe(map(([data]) => this._orderData(data)));
  659. // Watch for ordered data or page changes to provide a paged set of data.
  660. const paginatedData = combineLatest([orderedData, pageChange]).pipe(map(([data]) => this._pageData(data)));
  661. // Watched for paged data changes and send the result to the table to render.
  662. this._renderChangesSubscription?.unsubscribe();
  663. this._renderChangesSubscription = paginatedData.subscribe(data => this._renderData.next(data));
  664. }
  665. /**
  666. * Returns a filtered data array where each filter object contains the filter string within
  667. * the result of the filterPredicate function. If no filter is set, returns the data array
  668. * as provided.
  669. */
  670. _filterData(data) {
  671. // If there is a filter string, filter out data that does not contain it.
  672. // Each data object is converted to a string using the function defined by filterPredicate.
  673. // May be overridden for customization.
  674. this.filteredData =
  675. this.filter == null || this.filter === ''
  676. ? data
  677. : data.filter(obj => this.filterPredicate(obj, this.filter));
  678. if (this.paginator) {
  679. this._updatePaginator(this.filteredData.length);
  680. }
  681. return this.filteredData;
  682. }
  683. /**
  684. * Returns a sorted copy of the data if MatSort has a sort applied, otherwise just returns the
  685. * data array as provided. Uses the default data accessor for data lookup, unless a
  686. * sortDataAccessor function is defined.
  687. */
  688. _orderData(data) {
  689. // If there is no active sort or direction, return the data without trying to sort.
  690. if (!this.sort) {
  691. return data;
  692. }
  693. return this.sortData(data.slice(), this.sort);
  694. }
  695. /**
  696. * Returns a paged slice of the provided data array according to the provided paginator's page
  697. * index and length. If there is no paginator provided, returns the data array as provided.
  698. */
  699. _pageData(data) {
  700. if (!this.paginator) {
  701. return data;
  702. }
  703. const startIndex = this.paginator.pageIndex * this.paginator.pageSize;
  704. return data.slice(startIndex, startIndex + this.paginator.pageSize);
  705. }
  706. /**
  707. * Updates the paginator to reflect the length of the filtered data, and makes sure that the page
  708. * index does not exceed the paginator's last page. Values are changed in a resolved promise to
  709. * guard against making property changes within a round of change detection.
  710. */
  711. _updatePaginator(filteredDataLength) {
  712. Promise.resolve().then(() => {
  713. const paginator = this.paginator;
  714. if (!paginator) {
  715. return;
  716. }
  717. paginator.length = filteredDataLength;
  718. // If the page index is set beyond the page, reduce it to the last page.
  719. if (paginator.pageIndex > 0) {
  720. const lastPageIndex = Math.ceil(paginator.length / paginator.pageSize) - 1 || 0;
  721. const newPageIndex = Math.min(paginator.pageIndex, lastPageIndex);
  722. if (newPageIndex !== paginator.pageIndex) {
  723. paginator.pageIndex = newPageIndex;
  724. // Since the paginator only emits after user-generated changes,
  725. // we need our own stream so we know to should re-render the data.
  726. this._internalPageChanges.next();
  727. }
  728. }
  729. });
  730. }
  731. /**
  732. * Used by the MatTable. Called when it connects to the data source.
  733. * @docs-private
  734. */
  735. connect() {
  736. if (!this._renderChangesSubscription) {
  737. this._updateChangeSubscription();
  738. }
  739. return this._renderData;
  740. }
  741. /**
  742. * Used by the MatTable. Called when it disconnects from the data source.
  743. * @docs-private
  744. */
  745. disconnect() {
  746. this._renderChangesSubscription?.unsubscribe();
  747. this._renderChangesSubscription = null;
  748. }
  749. }
  750. /**
  751. * Data source that accepts a client-side data array and includes native support of filtering,
  752. * sorting (using MatSort), and pagination (using MatPaginator).
  753. *
  754. * Allows for sort customization by overriding sortingDataAccessor, which defines how data
  755. * properties are accessed. Also allows for filter customization by overriding filterPredicate,
  756. * which defines how row data is converted to a string for filter matching.
  757. *
  758. * **Note:** This class is meant to be a simple data source to help you get started. As such
  759. * it isn't equipped to handle some more advanced cases like robust i18n support or server-side
  760. * interactions. If your app needs to support more advanced use cases, consider implementing your
  761. * own `DataSource`.
  762. */
  763. class MatTableDataSource extends _MatTableDataSource {
  764. }
  765. /**
  766. * Generated bundle index. Do not edit.
  767. */
  768. export { MatCell, MatCellDef, MatColumnDef, MatFooterCell, MatFooterCellDef, MatFooterRow, MatFooterRowDef, MatHeaderCell, MatHeaderCellDef, MatHeaderRow, MatHeaderRowDef, MatNoDataRow, MatRecycleRows, MatRow, MatRowDef, MatTable, MatTableDataSource, MatTableModule, MatTextColumn, _MatTableDataSource };
  769. //# sourceMappingURL=table.mjs.map