-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_angular_material_table.bel-IALLXX.js
More file actions
129 lines (129 loc) · 21.2 KB
/
_angular_material_table.bel-IALLXX.js
File metadata and controls
129 lines (129 loc) · 21.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
import { b as p } from "@nf-internal/chunk-RXMLTE5A";
import { g as h } from "@nf-internal/chunk-C2A5IV4Z";
import { D as c, i as w, j as d, w as f } from "@nf-internal/chunk-IR6MR6UK";
import "@nf-internal/chunk-6MDQTQU3";
import * as t from "@angular/core";
import { booleanAttribute as A } from "@angular/core";
import { CdkTable as x, CDK_TABLE as B, STICKY_POSITIONING_LISTENER as N, HeaderRowOutlet as z, DataRowOutlet as H, NoDataRowOutlet as j, FooterRowOutlet as L, CdkCellDef as D, CdkHeaderCellDef as C, CdkFooterCellDef as _, CdkColumnDef as F, CdkHeaderCell as V, CdkFooterCell as G, CdkCell as W, CdkHeaderRowDef as M, CdkFooterRowDef as I, CdkRowDef as R, CdkHeaderRow as k, CdkCellOutlet as y, CdkFooterRow as E, CdkRow as S, CdkNoDataRow as T, CdkTextColumn as $, CdkTableModule as K } from "@angular/cdk/table";
import { _VIEW_REPEATER_STRATEGY as O, _RecycleViewRepeaterStrategy as X, _DisposeViewRepeaterStrategy as Y, DataSource as U } from "@angular/cdk/collections";
import { _isNumberValue as q } from "@angular/cdk/coercion";
import { map as g } from "rxjs/operators";
import "@angular/cdk/a11y";
import "@angular/cdk/bidi";
var J = [[["caption"]], [["colgroup"], ["col"]], "*"], Q = ["caption", "colgroup, col", "*"];
function Z(e, o) { e & 1 && t.\u0275\u0275projection(0, 2); }
function ee(e, o) { e & 1 && (t.\u0275\u0275elementStart(0, "thead", 0), t.\u0275\u0275elementContainer(1, 1), t.\u0275\u0275elementEnd(), t.\u0275\u0275elementStart(2, "tbody", 2), t.\u0275\u0275elementContainer(3, 3)(4, 4), t.\u0275\u0275elementEnd(), t.\u0275\u0275elementStart(5, "tfoot", 0), t.\u0275\u0275elementContainer(6, 5), t.\u0275\u0275elementEnd()); }
function te(e, o) { e & 1 && t.\u0275\u0275elementContainer(0, 1)(1, 3)(2, 4)(3, 5); }
function ae(e, o) { if (e & 1 && (t.\u0275\u0275elementStart(0, "th", 3), t.\u0275\u0275text(1), t.\u0275\u0275elementEnd()), e & 2) {
let a = t.\u0275\u0275nextContext();
t.\u0275\u0275styleProp("text-align", a.justify), t.\u0275\u0275advance(), t.\u0275\u0275textInterpolate1(" ", a.headerText, " ");
} }
function ie(e, o) { if (e & 1 && (t.\u0275\u0275elementStart(0, "td", 4), t.\u0275\u0275text(1), t.\u0275\u0275elementEnd()), e & 2) {
let a = o.$implicit, i = t.\u0275\u0275nextContext();
t.\u0275\u0275styleProp("text-align", i.justify), t.\u0275\u0275advance(), t.\u0275\u0275textInterpolate1(" ", i.dataAccessor(a, i.name), " ");
} }
var Fe = (() => { class e {
static \u0275fac = function (i) { return new (i || e); };
static \u0275dir = t.\u0275\u0275defineDirective({ type: e, selectors: [["mat-table", "recycleRows", ""], ["table", "mat-table", "", "recycleRows", ""]], features: [t.\u0275\u0275ProvidersFeature([{ provide: O, useClass: X }])] });
} return e; })(), Me = (() => {
class e extends x {
stickyCssClass = "mat-mdc-table-sticky";
needsPositionStickyOnElement = !1;
static \u0275fac = (() => { let a; return function (r) { return (a || (a = t.\u0275\u0275getInheritedFactory(e)))(r || e); }; })();
static \u0275cmp = t.\u0275\u0275defineComponent({ type: e, selectors: [["mat-table"], ["table", "mat-table", ""]], hostAttrs: [1, "mat-mdc-table", "mdc-data-table__table"], hostVars: 2, hostBindings: function (i, r) { i & 2 && t.\u0275\u0275classProp("mdc-table-fixed-layout", r.fixedLayout); }, exportAs: ["matTable"], features: [t.\u0275\u0275ProvidersFeature([{ provide: x, useExisting: e }, { provide: B, useExisting: e }, { provide: O, useClass: Y }, { provide: N, useValue: null }]), t.\u0275\u0275InheritDefinitionFeature], ngContentSelectors: Q, decls: 5, vars: 2, consts: [["role", "rowgroup"], ["headerRowOutlet", ""], ["role", "rowgroup", 1, "mdc-data-table__content"], ["rowOutlet", ""], ["noDataRowOutlet", ""], ["footerRowOutlet", ""]], template: function (i, r) { i & 1 && (t.\u0275\u0275projectionDef(J), t.\u0275\u0275projection(0), t.\u0275\u0275projection(1, 1), t.\u0275\u0275conditionalCreate(2, Z, 1, 0), t.\u0275\u0275conditionalCreate(3, ee, 7, 0)(4, te, 4, 0)), i & 2 && (t.\u0275\u0275advance(2), t.\u0275\u0275conditional(r._isServer ? 2 : -1), t.\u0275\u0275advance(), t.\u0275\u0275conditional(r._isNativeHtmlTable ? 3 : 4)); }, dependencies: [z, H, j, L], styles: [`.mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:var(--mat-table-header-container-height, 56px)}mat-row{min-height:var(--mat-table-row-item-container-height, 52px)}mat-footer-row{min-height:var(--mat-table-footer-container-height, 52px)}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{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color, var(--mat-sys-surface))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-header-headline-font, var(--mat-sys-title-small-font, Roboto, sans-serif));line-height:var(--mat-table-header-headline-line-height, var(--mat-sys-title-small-line-height));font-size:var(--mat-table-header-headline-size, var(--mat-sys-title-small-size, 14px));font-weight:var(--mat-table-header-headline-weight, var(--mat-sys-title-small-weight, 500))}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-row-item-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-row-item-label-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-row-item-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-footer-supporting-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-footer-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-footer-supporting-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-footer-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-table-footer-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking, var(--mat-sys-title-small-tracking));font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mdc-data-table__row:last-child>.mat-mdc-header-cell{border-bottom:none}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));line-height:inherit}.mdc-data-table__row:last-child>.mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking))}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-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}
`], encapsulation: 2 });
}
return e;
})(), re = (() => { class e extends D {
static \u0275fac = (() => { let a; return function (r) { return (a || (a = t.\u0275\u0275getInheritedFactory(e)))(r || e); }; })();
static \u0275dir = t.\u0275\u0275defineDirective({ type: e, selectors: [["", "matCellDef", ""]], features: [t.\u0275\u0275ProvidersFeature([{ provide: D, useExisting: e }]), t.\u0275\u0275InheritDefinitionFeature] });
} return e; })(), oe = (() => { class e extends C {
static \u0275fac = (() => { let a; return function (r) { return (a || (a = t.\u0275\u0275getInheritedFactory(e)))(r || e); }; })();
static \u0275dir = t.\u0275\u0275defineDirective({ type: e, selectors: [["", "matHeaderCellDef", ""]], features: [t.\u0275\u0275ProvidersFeature([{ provide: C, useExisting: e }]), t.\u0275\u0275InheritDefinitionFeature] });
} return e; })(), Ie = (() => { class e extends _ {
static \u0275fac = (() => { let a; return function (r) { return (a || (a = t.\u0275\u0275getInheritedFactory(e)))(r || e); }; })();
static \u0275dir = t.\u0275\u0275defineDirective({ type: e, selectors: [["", "matFooterCellDef", ""]], features: [t.\u0275\u0275ProvidersFeature([{ provide: _, useExisting: e }]), t.\u0275\u0275InheritDefinitionFeature] });
} return e; })(), ne = (() => { class e extends F {
get name() { return this._name; }
set name(a) { this._setNameInput(a); }
_updateColumnCssClassName() { super._updateColumnCssClassName(), this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`); }
static \u0275fac = (() => { let a; return function (r) { return (a || (a = t.\u0275\u0275getInheritedFactory(e)))(r || e); }; })();
static \u0275dir = t.\u0275\u0275defineDirective({ type: e, selectors: [["", "matColumnDef", ""]], inputs: { name: [0, "matColumnDef", "name"] }, features: [t.\u0275\u0275ProvidersFeature([{ provide: F, useExisting: e }, { provide: "MAT_SORT_HEADER_COLUMN_DEF", useExisting: e }]), t.\u0275\u0275InheritDefinitionFeature] });
} return e; })(), le = (() => { class e extends V {
static \u0275fac = (() => { let a; return function (r) { return (a || (a = t.\u0275\u0275getInheritedFactory(e)))(r || e); }; })();
static \u0275dir = t.\u0275\u0275defineDirective({ type: e, selectors: [["mat-header-cell"], ["th", "mat-header-cell", ""]], hostAttrs: ["role", "columnheader", 1, "mat-mdc-header-cell", "mdc-data-table__header-cell"], features: [t.\u0275\u0275InheritDefinitionFeature] });
} return e; })(), Re = (() => { class e extends G {
static \u0275fac = (() => { let a; return function (r) { return (a || (a = t.\u0275\u0275getInheritedFactory(e)))(r || e); }; })();
static \u0275dir = t.\u0275\u0275defineDirective({ type: e, selectors: [["mat-footer-cell"], ["td", "mat-footer-cell", ""]], hostAttrs: [1, "mat-mdc-footer-cell", "mdc-data-table__cell"], features: [t.\u0275\u0275InheritDefinitionFeature] });
} return e; })(), se = (() => { class e extends W {
static \u0275fac = (() => { let a; return function (r) { return (a || (a = t.\u0275\u0275getInheritedFactory(e)))(r || e); }; })();
static \u0275dir = t.\u0275\u0275defineDirective({ type: e, selectors: [["mat-cell"], ["td", "mat-cell", ""]], hostAttrs: [1, "mat-mdc-cell", "mdc-data-table__cell"], features: [t.\u0275\u0275InheritDefinitionFeature] });
} return e; })();
var ke = (() => { class e extends M {
static \u0275fac = (() => { let a; return function (r) { return (a || (a = t.\u0275\u0275getInheritedFactory(e)))(r || e); }; })();
static \u0275dir = t.\u0275\u0275defineDirective({ type: e, selectors: [["", "matHeaderRowDef", ""]], inputs: { columns: [0, "matHeaderRowDef", "columns"], sticky: [2, "matHeaderRowDefSticky", "sticky", A] }, features: [t.\u0275\u0275ProvidersFeature([{ provide: M, useExisting: e }]), t.\u0275\u0275InheritDefinitionFeature] });
} return e; })(), Ee = (() => { class e extends I {
static \u0275fac = (() => { let a; return function (r) { return (a || (a = t.\u0275\u0275getInheritedFactory(e)))(r || e); }; })();
static \u0275dir = t.\u0275\u0275defineDirective({ type: e, selectors: [["", "matFooterRowDef", ""]], inputs: { columns: [0, "matFooterRowDef", "columns"], sticky: [2, "matFooterRowDefSticky", "sticky", A] }, features: [t.\u0275\u0275ProvidersFeature([{ provide: I, useExisting: e }]), t.\u0275\u0275InheritDefinitionFeature] });
} return e; })(), Se = (() => { class e extends R {
static \u0275fac = (() => { let a; return function (r) { return (a || (a = t.\u0275\u0275getInheritedFactory(e)))(r || e); }; })();
static \u0275dir = t.\u0275\u0275defineDirective({ type: e, selectors: [["", "matRowDef", ""]], inputs: { columns: [0, "matRowDefColumns", "columns"], when: [0, "matRowDefWhen", "when"] }, features: [t.\u0275\u0275ProvidersFeature([{ provide: R, useExisting: e }]), t.\u0275\u0275InheritDefinitionFeature] });
} return e; })(), Te = (() => { class e extends k {
static \u0275fac = (() => { let a; return function (r) { return (a || (a = t.\u0275\u0275getInheritedFactory(e)))(r || e); }; })();
static \u0275cmp = t.\u0275\u0275defineComponent({ type: e, selectors: [["mat-header-row"], ["tr", "mat-header-row", ""]], hostAttrs: ["role", "row", 1, "mat-mdc-header-row", "mdc-data-table__header-row"], exportAs: ["matHeaderRow"], features: [t.\u0275\u0275ProvidersFeature([{ provide: k, useExisting: e }]), t.\u0275\u0275InheritDefinitionFeature], decls: 1, vars: 0, consts: [["cdkCellOutlet", ""]], template: function (i, r) { i & 1 && t.\u0275\u0275elementContainer(0, 0); }, dependencies: [y], encapsulation: 2 });
} return e; })(), Pe = (() => { class e extends E {
static \u0275fac = (() => { let a; return function (r) { return (a || (a = t.\u0275\u0275getInheritedFactory(e)))(r || e); }; })();
static \u0275cmp = t.\u0275\u0275defineComponent({ type: e, selectors: [["mat-footer-row"], ["tr", "mat-footer-row", ""]], hostAttrs: ["role", "row", 1, "mat-mdc-footer-row", "mdc-data-table__row"], exportAs: ["matFooterRow"], features: [t.\u0275\u0275ProvidersFeature([{ provide: E, useExisting: e }]), t.\u0275\u0275InheritDefinitionFeature], decls: 1, vars: 0, consts: [["cdkCellOutlet", ""]], template: function (i, r) { i & 1 && t.\u0275\u0275elementContainer(0, 0); }, dependencies: [y], encapsulation: 2 });
} return e; })(), Ae = (() => { class e extends S {
static \u0275fac = (() => { let a; return function (r) { return (a || (a = t.\u0275\u0275getInheritedFactory(e)))(r || e); }; })();
static \u0275cmp = t.\u0275\u0275defineComponent({ type: e, selectors: [["mat-row"], ["tr", "mat-row", ""]], hostAttrs: ["role", "row", 1, "mat-mdc-row", "mdc-data-table__row"], exportAs: ["matRow"], features: [t.\u0275\u0275ProvidersFeature([{ provide: S, useExisting: e }]), t.\u0275\u0275InheritDefinitionFeature], decls: 1, vars: 0, consts: [["cdkCellOutlet", ""]], template: function (i, r) { i & 1 && t.\u0275\u0275elementContainer(0, 0); }, dependencies: [y], encapsulation: 2 });
} return e; })(), Oe = (() => { class e extends T {
_cellSelector = "td, mat-cell, [mat-cell], .mat-cell";
constructor() { super(), this._contentClassNames.push("mat-mdc-no-data-row", "mat-mdc-row", "mdc-data-table__row"), this._cellClassNames.push("mat-mdc-cell", "mdc-data-table__cell", "mat-no-data-cell"); }
static \u0275fac = function (i) { return new (i || e); };
static \u0275dir = t.\u0275\u0275defineDirective({ type: e, selectors: [["ng-template", "matNoDataRow", ""]], features: [t.\u0275\u0275ProvidersFeature([{ provide: T, useExisting: e }]), t.\u0275\u0275InheritDefinitionFeature] });
} return e; })(), Be = (() => { class e extends $ {
static \u0275fac = (() => { let a; return function (r) { return (a || (a = t.\u0275\u0275getInheritedFactory(e)))(r || e); }; })();
static \u0275cmp = t.\u0275\u0275defineComponent({ type: e, selectors: [["mat-text-column"]], features: [t.\u0275\u0275InheritDefinitionFeature], decls: 3, vars: 0, consts: [["matColumnDef", ""], ["mat-header-cell", "", 3, "text-align", 4, "matHeaderCellDef"], ["mat-cell", "", 3, "text-align", 4, "matCellDef"], ["mat-header-cell", ""], ["mat-cell", ""]], template: function (i, r) { i & 1 && (t.\u0275\u0275elementContainerStart(0, 0), t.\u0275\u0275template(1, ae, 2, 3, "th", 1)(2, ie, 2, 3, "td", 2), t.\u0275\u0275elementContainerEnd()); }, dependencies: [ne, oe, le, re, se], encapsulation: 2 });
} return e; })();
var Ne = (() => { class e {
static \u0275fac = function (i) { return new (i || e); };
static \u0275mod = t.\u0275\u0275defineNgModule({ type: e });
static \u0275inj = t.\u0275\u0275defineInjector({ imports: [p, K, p] });
} return e; })(), de = 9007199254740991, P = class extends U {
_data;
_renderData = new d([]);
_filter = new d("");
_internalPageChanges = new w;
_renderChangesSubscription = null;
filteredData;
get data() { return this._data.value; }
set data(o) { o = Array.isArray(o) ? o : [], this._data.next(o), this._renderChangesSubscription || this._filterData(o); }
get filter() { return this._filter.value; }
set filter(o) { this._filter.next(o), this._renderChangesSubscription || this._filterData(this.data); }
get sort() { return this._sort; }
set sort(o) { this._sort = o, this._updateChangeSubscription(); }
_sort;
get paginator() { return this._paginator; }
set paginator(o) { this._paginator = o, this._updateChangeSubscription(); }
_paginator;
sortingDataAccessor = (o, a) => { let i = o[a]; if (q(i)) {
let r = Number(i);
return r < de ? r : i;
} return i; };
sortData = (o, a) => { let i = a.active, r = a.direction; return !i || r == "" ? o : o.sort((m, u) => { let n = this.sortingDataAccessor(m, i), l = this.sortingDataAccessor(u, i), v = typeof n, b = typeof l; v !== b && (v === "number" && (n += ""), b === "number" && (l += "")); let s = 0; return n != null && l != null ? n > l ? s = 1 : n < l && (s = -1) : n != null ? s = 1 : l != null && (s = -1), s * (r == "asc" ? 1 : -1); }); };
filterPredicate = (o, a) => { let i = a.trim().toLowerCase(); return Object.values(o).some(r => `${r}`.toLowerCase().includes(i)); };
constructor(o = []) { super(), this._data = new d(o), this._updateChangeSubscription(); }
_updateChangeSubscription() { let o = this._sort ? h(this._sort.sortChange, this._sort.initialized) : f(null), a = this._paginator ? h(this._paginator.page, this._internalPageChanges, this._paginator.initialized) : f(null), i = this._data, r = c([i, this._filter]).pipe(g(([n]) => this._filterData(n))), m = c([r, o]).pipe(g(([n]) => this._orderData(n))), u = c([m, a]).pipe(g(([n]) => this._pageData(n))); this._renderChangesSubscription?.unsubscribe(), this._renderChangesSubscription = u.subscribe(n => this._renderData.next(n)); }
_filterData(o) { return this.filteredData = this.filter == null || this.filter === "" ? o : o.filter(a => this.filterPredicate(a, this.filter)), this.paginator && this._updatePaginator(this.filteredData.length), this.filteredData; }
_orderData(o) { return this.sort ? this.sortData(o.slice(), this.sort) : o; }
_pageData(o) { if (!this.paginator)
return o; let a = this.paginator.pageIndex * this.paginator.pageSize; return o.slice(a, a + this.paginator.pageSize); }
_updatePaginator(o) { Promise.resolve().then(() => { let a = this.paginator; if (a && (a.length = o, a.pageIndex > 0)) {
let i = Math.ceil(a.length / a.pageSize) - 1 || 0, r = Math.min(a.pageIndex, i);
r !== a.pageIndex && (a.pageIndex = r, this._internalPageChanges.next());
} }); }
connect() { return this._renderChangesSubscription || this._updateChangeSubscription(), this._renderData; }
disconnect() { this._renderChangesSubscription?.unsubscribe(), this._renderChangesSubscription = null; }
};
export { se as MatCell, re as MatCellDef, ne as MatColumnDef, Re as MatFooterCell, Ie as MatFooterCellDef, Pe as MatFooterRow, Ee as MatFooterRowDef, le as MatHeaderCell, oe as MatHeaderCellDef, Te as MatHeaderRow, ke as MatHeaderRowDef, Oe as MatNoDataRow, Fe as MatRecycleRows, Ae as MatRow, Se as MatRowDef, Me as MatTable, P as MatTableDataSource, Ne as MatTableModule, Be as MatTextColumn };