@angular/material 21.0.0-next.9 → 21.0.0-rc.1
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/core/tokens/_classes.scss +1 -1
- package/core/tokens/m2/_md-sys-color.scss +17 -17
- package/fesm2022/_animation-chunk.mjs +10 -16
- package/fesm2022/_animation-chunk.mjs.map +1 -1
- package/fesm2022/_date-formats-chunk.mjs +68 -164
- package/fesm2022/_date-formats-chunk.mjs.map +1 -1
- package/fesm2022/_date-range-input-harness-chunk.mjs +284 -463
- package/fesm2022/_date-range-input-harness-chunk.mjs.map +1 -1
- package/fesm2022/_error-options-chunk.mjs +56 -19
- package/fesm2022/_error-options-chunk.mjs.map +1 -1
- package/fesm2022/_error-state-chunk.mjs +24 -31
- package/fesm2022/_error-state-chunk.mjs.map +1 -1
- package/fesm2022/_form-field-chunk.mjs +1224 -1017
- package/fesm2022/_form-field-chunk.mjs.map +1 -1
- package/fesm2022/_icon-button-chunk.mjs +243 -187
- package/fesm2022/_icon-button-chunk.mjs.map +1 -1
- package/fesm2022/_icon-registry-chunk.mjs +350 -575
- package/fesm2022/_icon-registry-chunk.mjs.map +1 -1
- package/fesm2022/_input-harness-chunk.mjs +56 -107
- package/fesm2022/_input-harness-chunk.mjs.map +1 -1
- package/fesm2022/_input-value-accessor-chunk.mjs +0 -6
- package/fesm2022/_input-value-accessor-chunk.mjs.map +1 -1
- package/fesm2022/_internal-form-field-chunk.mjs +59 -19
- package/fesm2022/_internal-form-field-chunk.mjs.map +1 -1
- package/fesm2022/_line-chunk.mjs +83 -43
- package/fesm2022/_line-chunk.mjs.map +1 -1
- package/fesm2022/_option-chunk.mjs +348 -311
- package/fesm2022/_option-chunk.mjs.map +1 -1
- package/fesm2022/_option-harness-chunk.mjs +23 -39
- package/fesm2022/_option-harness-chunk.mjs.map +1 -1
- package/fesm2022/_option-module-chunk.mjs +36 -10
- package/fesm2022/_option-module-chunk.mjs.map +1 -1
- package/fesm2022/_pseudo-checkbox-chunk.mjs +79 -44
- package/fesm2022/_pseudo-checkbox-chunk.mjs.map +1 -1
- package/fesm2022/_pseudo-checkbox-module-chunk.mjs +36 -10
- package/fesm2022/_pseudo-checkbox-module-chunk.mjs.map +1 -1
- package/fesm2022/_public-api-chunk.mjs +71 -134
- package/fesm2022/_public-api-chunk.mjs.map +1 -1
- package/fesm2022/_ripple-chunk.mjs +504 -600
- package/fesm2022/_ripple-chunk.mjs.map +1 -1
- package/fesm2022/_ripple-loader-chunk.mjs +120 -138
- package/fesm2022/_ripple-loader-chunk.mjs.map +1 -1
- package/fesm2022/_ripple-module-chunk.mjs +36 -10
- package/fesm2022/_ripple-module-chunk.mjs.map +1 -1
- package/fesm2022/_structural-styles-chunk.mjs +37 -10
- package/fesm2022/_structural-styles-chunk.mjs.map +1 -1
- package/fesm2022/_tooltip-chunk.mjs +811 -888
- package/fesm2022/_tooltip-chunk.mjs.map +1 -1
- package/fesm2022/autocomplete-testing.mjs +62 -86
- package/fesm2022/autocomplete-testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +965 -1126
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge-testing.mjs +38 -54
- package/fesm2022/badge-testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +321 -272
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet-testing.mjs +10 -24
- package/fesm2022/bottom-sheet-testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +349 -344
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button-testing.mjs +60 -94
- package/fesm2022/button-testing.mjs.map +1 -1
- package/fesm2022/button-toggle-testing.mjs +76 -125
- package/fesm2022/button-toggle-testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +752 -662
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +263 -158
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card-testing.mjs +19 -33
- package/fesm2022/card-testing.mjs.map +1 -1
- package/fesm2022/card.mjs +576 -272
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox-testing.mjs +71 -123
- package/fesm2022/checkbox-testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +515 -477
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips-testing.mjs +201 -344
- package/fesm2022/chips-testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +2552 -2289
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core-testing.mjs +14 -28
- package/fesm2022/core-testing.mjs.map +1 -1
- package/fesm2022/core.mjs +357 -328
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker-testing.mjs +15 -25
- package/fesm2022/datepicker-testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +4826 -4563
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog-testing.mjs +93 -129
- package/fesm2022/dialog-testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +810 -829
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider-testing.mjs +10 -11
- package/fesm2022/divider-testing.mjs.map +1 -1
- package/fesm2022/divider.mjs +119 -43
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion-testing.mjs +74 -130
- package/fesm2022/expansion-testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +703 -515
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field-testing-control.mjs +16 -33
- package/fesm2022/form-field-testing-control.mjs.map +1 -1
- package/fesm2022/form-field-testing.mjs +118 -179
- package/fesm2022/form-field-testing.mjs.map +1 -1
- package/fesm2022/form-field.mjs +36 -10
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list-testing.mjs +65 -113
- package/fesm2022/grid-list-testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +559 -494
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon-testing.mjs +148 -127
- package/fesm2022/icon-testing.mjs.map +1 -1
- package/fesm2022/icon.mjs +325 -351
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input-testing.mjs +59 -99
- package/fesm2022/input-testing.mjs.map +1 -1
- package/fesm2022/input.mjs +457 -520
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list-testing.mjs +251 -434
- package/fesm2022/list-testing.mjs.map +1 -1
- package/fesm2022/list.mjs +1522 -1204
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/material.mjs +0 -5
- package/fesm2022/material.mjs.map +1 -1
- package/fesm2022/menu-testing.mjs +159 -228
- package/fesm2022/menu-testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +1338 -1343
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator-testing.mjs +55 -79
- package/fesm2022/paginator-testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +381 -309
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar-testing.mjs +12 -21
- package/fesm2022/progress-bar-testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +224 -169
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner-testing.mjs +13 -23
- package/fesm2022/progress-spinner-testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +235 -160
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio-testing.mjs +133 -208
- package/fesm2022/radio-testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +712 -679
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select-testing.mjs +83 -117
- package/fesm2022/select-testing.mjs.map +1 -1
- package/fesm2022/select.mjs +1116 -1246
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav-testing.mjs +54 -120
- package/fesm2022/sidenav-testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +1078 -995
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle-testing.mjs +57 -92
- package/fesm2022/slide-toggle-testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +369 -279
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider-testing.mjs +90 -138
- package/fesm2022/slider-testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +1651 -1716
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar-testing.mjs +40 -87
- package/fesm2022/snack-bar-testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +763 -714
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort-testing.mjs +45 -66
- package/fesm2022/sort-testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +419 -344
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper-testing.mjs +78 -154
- package/fesm2022/stepper-testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +790 -498
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table-testing.mjs +120 -213
- package/fesm2022/table-testing.mjs.map +1 -1
- package/fesm2022/table.mjs +1026 -684
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs-testing.mjs +125 -197
- package/fesm2022/tabs-testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +2351 -2028
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker-testing.mjs +113 -172
- package/fesm2022/timepicker-testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +1019 -826
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar-testing.mjs +16 -27
- package/fesm2022/toolbar-testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +163 -78
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip-testing.mjs +41 -52
- package/fesm2022/tooltip-testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +36 -10
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree-testing.mjs +86 -162
- package/fesm2022/tree-testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +638 -466
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +2 -2
- package/schematics/ng-add/index.js +1 -1
- package/types/expansion.d.ts +4 -2
- package/types/menu-testing.d.ts +2 -0
- package/types/select.d.ts +1 -1
- package/types/timepicker.d.ts +1 -0
package/fesm2022/table.mjs
CHANGED
|
@@ -7,36 +7,84 @@ import { BehaviorSubject, Subject, merge, of, combineLatest } from 'rxjs';
|
|
|
7
7
|
import { _isNumberValue } from '@angular/cdk/coercion';
|
|
8
8
|
import { map } from 'rxjs/operators';
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* Enables the recycle view repeater strategy, which reduces rendering latency. Not compatible with
|
|
12
|
-
* tables that animate rows.
|
|
13
|
-
*/
|
|
14
10
|
class MatRecycleRows {
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
12
|
+
minVersion: "12.0.0",
|
|
13
|
+
version: "20.2.0-next.2",
|
|
14
|
+
ngImport: i0,
|
|
15
|
+
type: MatRecycleRows,
|
|
16
|
+
deps: [],
|
|
17
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
18
|
+
});
|
|
19
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
20
|
+
minVersion: "14.0.0",
|
|
21
|
+
version: "20.2.0-next.2",
|
|
22
|
+
type: MatRecycleRows,
|
|
23
|
+
isStandalone: true,
|
|
24
|
+
selector: "mat-table[recycleRows], table[mat-table][recycleRows]",
|
|
25
|
+
providers: [{
|
|
26
|
+
provide: _VIEW_REPEATER_STRATEGY,
|
|
27
|
+
useClass: _RecycleViewRepeaterStrategy
|
|
28
|
+
}],
|
|
29
|
+
ngImport: i0
|
|
30
|
+
});
|
|
17
31
|
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
33
|
+
minVersion: "12.0.0",
|
|
34
|
+
version: "20.2.0-next.2",
|
|
35
|
+
ngImport: i0,
|
|
36
|
+
type: MatRecycleRows,
|
|
37
|
+
decorators: [{
|
|
38
|
+
type: Directive,
|
|
39
|
+
args: [{
|
|
40
|
+
selector: 'mat-table[recycleRows], table[mat-table][recycleRows]',
|
|
41
|
+
providers: [{
|
|
42
|
+
provide: _VIEW_REPEATER_STRATEGY,
|
|
43
|
+
useClass: _RecycleViewRepeaterStrategy
|
|
44
|
+
}]
|
|
45
|
+
}]
|
|
46
|
+
}]
|
|
47
|
+
});
|
|
25
48
|
class MatTable extends CdkTable {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
49
|
+
stickyCssClass = 'mat-mdc-table-sticky';
|
|
50
|
+
needsPositionStickyOnElement = false;
|
|
51
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
52
|
+
minVersion: "12.0.0",
|
|
53
|
+
version: "20.2.0-next.2",
|
|
54
|
+
ngImport: i0,
|
|
55
|
+
type: MatTable,
|
|
56
|
+
deps: null,
|
|
57
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
58
|
+
});
|
|
59
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
60
|
+
minVersion: "17.0.0",
|
|
61
|
+
version: "20.2.0-next.2",
|
|
62
|
+
type: MatTable,
|
|
63
|
+
isStandalone: true,
|
|
64
|
+
selector: "mat-table, table[mat-table]",
|
|
65
|
+
host: {
|
|
66
|
+
properties: {
|
|
67
|
+
"class.mdc-table-fixed-layout": "fixedLayout"
|
|
68
|
+
},
|
|
69
|
+
classAttribute: "mat-mdc-table mdc-data-table__table"
|
|
70
|
+
},
|
|
71
|
+
providers: [{
|
|
72
|
+
provide: CdkTable,
|
|
73
|
+
useExisting: MatTable
|
|
74
|
+
}, {
|
|
75
|
+
provide: CDK_TABLE,
|
|
76
|
+
useExisting: MatTable
|
|
77
|
+
}, {
|
|
78
|
+
provide: _VIEW_REPEATER_STRATEGY,
|
|
79
|
+
useClass: _DisposeViewRepeaterStrategy
|
|
80
|
+
}, {
|
|
81
|
+
provide: STICKY_POSITIONING_LISTENER,
|
|
82
|
+
useValue: null
|
|
83
|
+
}],
|
|
84
|
+
exportAs: ["matTable"],
|
|
85
|
+
usesInheritance: true,
|
|
86
|
+
ngImport: i0,
|
|
87
|
+
template: `
|
|
40
88
|
<ng-content select="caption"/>
|
|
41
89
|
<ng-content select="colgroup, col"/>
|
|
42
90
|
|
|
@@ -65,11 +113,41 @@ class MatTable extends CdkTable {
|
|
|
65
113
|
<ng-container noDataRowOutlet/>
|
|
66
114
|
<ng-container footerRowOutlet/>
|
|
67
115
|
}
|
|
68
|
-
`,
|
|
116
|
+
`,
|
|
117
|
+
isInline: true,
|
|
118
|
+
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}\n"],
|
|
119
|
+
dependencies: [{
|
|
120
|
+
kind: "directive",
|
|
121
|
+
type: HeaderRowOutlet,
|
|
122
|
+
selector: "[headerRowOutlet]"
|
|
123
|
+
}, {
|
|
124
|
+
kind: "directive",
|
|
125
|
+
type: DataRowOutlet,
|
|
126
|
+
selector: "[rowOutlet]"
|
|
127
|
+
}, {
|
|
128
|
+
kind: "directive",
|
|
129
|
+
type: NoDataRowOutlet,
|
|
130
|
+
selector: "[noDataRowOutlet]"
|
|
131
|
+
}, {
|
|
132
|
+
kind: "directive",
|
|
133
|
+
type: FooterRowOutlet,
|
|
134
|
+
selector: "[footerRowOutlet]"
|
|
135
|
+
}],
|
|
136
|
+
changeDetection: i0.ChangeDetectionStrategy.Default,
|
|
137
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
138
|
+
});
|
|
69
139
|
}
|
|
70
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
71
|
-
|
|
72
|
-
|
|
140
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
141
|
+
minVersion: "12.0.0",
|
|
142
|
+
version: "20.2.0-next.2",
|
|
143
|
+
ngImport: i0,
|
|
144
|
+
type: MatTable,
|
|
145
|
+
decorators: [{
|
|
146
|
+
type: Component,
|
|
147
|
+
args: [{
|
|
148
|
+
selector: 'mat-table, table[mat-table]',
|
|
149
|
+
exportAs: 'matTable',
|
|
150
|
+
template: `
|
|
73
151
|
<ng-content select="caption"/>
|
|
74
152
|
<ng-content select="colgroup, col"/>
|
|
75
153
|
|
|
@@ -98,310 +176,739 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2",
|
|
|
98
176
|
<ng-container noDataRowOutlet/>
|
|
99
177
|
<ng-container footerRowOutlet/>
|
|
100
178
|
}
|
|
101
|
-
`,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
179
|
+
`,
|
|
180
|
+
host: {
|
|
181
|
+
'class': 'mat-mdc-table mdc-data-table__table',
|
|
182
|
+
'[class.mdc-table-fixed-layout]': 'fixedLayout'
|
|
183
|
+
},
|
|
184
|
+
providers: [{
|
|
185
|
+
provide: CdkTable,
|
|
186
|
+
useExisting: MatTable
|
|
187
|
+
}, {
|
|
188
|
+
provide: CDK_TABLE,
|
|
189
|
+
useExisting: MatTable
|
|
190
|
+
}, {
|
|
191
|
+
provide: _VIEW_REPEATER_STRATEGY,
|
|
192
|
+
useClass: _DisposeViewRepeaterStrategy
|
|
193
|
+
}, {
|
|
194
|
+
provide: STICKY_POSITIONING_LISTENER,
|
|
195
|
+
useValue: null
|
|
196
|
+
}],
|
|
197
|
+
encapsulation: ViewEncapsulation.None,
|
|
198
|
+
changeDetection: ChangeDetectionStrategy.Default,
|
|
199
|
+
imports: [HeaderRowOutlet, DataRowOutlet, NoDataRowOutlet, FooterRowOutlet],
|
|
200
|
+
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}\n"]
|
|
201
|
+
}]
|
|
202
|
+
}]
|
|
203
|
+
});
|
|
114
204
|
|
|
115
|
-
/**
|
|
116
|
-
* Cell definition for the mat-table.
|
|
117
|
-
* Captures the template of a column's data row cell as well as cell-specific properties.
|
|
118
|
-
*/
|
|
119
205
|
class MatCellDef extends CdkCellDef {
|
|
120
|
-
|
|
121
|
-
|
|
206
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
207
|
+
minVersion: "12.0.0",
|
|
208
|
+
version: "20.2.0-next.2",
|
|
209
|
+
ngImport: i0,
|
|
210
|
+
type: MatCellDef,
|
|
211
|
+
deps: null,
|
|
212
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
213
|
+
});
|
|
214
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
215
|
+
minVersion: "14.0.0",
|
|
216
|
+
version: "20.2.0-next.2",
|
|
217
|
+
type: MatCellDef,
|
|
218
|
+
isStandalone: true,
|
|
219
|
+
selector: "[matCellDef]",
|
|
220
|
+
providers: [{
|
|
221
|
+
provide: CdkCellDef,
|
|
222
|
+
useExisting: MatCellDef
|
|
223
|
+
}],
|
|
224
|
+
usesInheritance: true,
|
|
225
|
+
ngImport: i0
|
|
226
|
+
});
|
|
122
227
|
}
|
|
123
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
228
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
229
|
+
minVersion: "12.0.0",
|
|
230
|
+
version: "20.2.0-next.2",
|
|
231
|
+
ngImport: i0,
|
|
232
|
+
type: MatCellDef,
|
|
233
|
+
decorators: [{
|
|
234
|
+
type: Directive,
|
|
235
|
+
args: [{
|
|
236
|
+
selector: '[matCellDef]',
|
|
237
|
+
providers: [{
|
|
238
|
+
provide: CdkCellDef,
|
|
239
|
+
useExisting: MatCellDef
|
|
240
|
+
}]
|
|
241
|
+
}]
|
|
242
|
+
}]
|
|
243
|
+
});
|
|
134
244
|
class MatHeaderCellDef extends CdkHeaderCellDef {
|
|
135
|
-
|
|
136
|
-
|
|
245
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
246
|
+
minVersion: "12.0.0",
|
|
247
|
+
version: "20.2.0-next.2",
|
|
248
|
+
ngImport: i0,
|
|
249
|
+
type: MatHeaderCellDef,
|
|
250
|
+
deps: null,
|
|
251
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
252
|
+
});
|
|
253
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
254
|
+
minVersion: "14.0.0",
|
|
255
|
+
version: "20.2.0-next.2",
|
|
256
|
+
type: MatHeaderCellDef,
|
|
257
|
+
isStandalone: true,
|
|
258
|
+
selector: "[matHeaderCellDef]",
|
|
259
|
+
providers: [{
|
|
260
|
+
provide: CdkHeaderCellDef,
|
|
261
|
+
useExisting: MatHeaderCellDef
|
|
262
|
+
}],
|
|
263
|
+
usesInheritance: true,
|
|
264
|
+
ngImport: i0
|
|
265
|
+
});
|
|
137
266
|
}
|
|
138
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
267
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
268
|
+
minVersion: "12.0.0",
|
|
269
|
+
version: "20.2.0-next.2",
|
|
270
|
+
ngImport: i0,
|
|
271
|
+
type: MatHeaderCellDef,
|
|
272
|
+
decorators: [{
|
|
273
|
+
type: Directive,
|
|
274
|
+
args: [{
|
|
275
|
+
selector: '[matHeaderCellDef]',
|
|
276
|
+
providers: [{
|
|
277
|
+
provide: CdkHeaderCellDef,
|
|
278
|
+
useExisting: MatHeaderCellDef
|
|
279
|
+
}]
|
|
280
|
+
}]
|
|
281
|
+
}]
|
|
282
|
+
});
|
|
149
283
|
class MatFooterCellDef extends CdkFooterCellDef {
|
|
150
|
-
|
|
151
|
-
|
|
284
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
285
|
+
minVersion: "12.0.0",
|
|
286
|
+
version: "20.2.0-next.2",
|
|
287
|
+
ngImport: i0,
|
|
288
|
+
type: MatFooterCellDef,
|
|
289
|
+
deps: null,
|
|
290
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
291
|
+
});
|
|
292
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
293
|
+
minVersion: "14.0.0",
|
|
294
|
+
version: "20.2.0-next.2",
|
|
295
|
+
type: MatFooterCellDef,
|
|
296
|
+
isStandalone: true,
|
|
297
|
+
selector: "[matFooterCellDef]",
|
|
298
|
+
providers: [{
|
|
299
|
+
provide: CdkFooterCellDef,
|
|
300
|
+
useExisting: MatFooterCellDef
|
|
301
|
+
}],
|
|
302
|
+
usesInheritance: true,
|
|
303
|
+
ngImport: i0
|
|
304
|
+
});
|
|
152
305
|
}
|
|
153
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
306
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
307
|
+
minVersion: "12.0.0",
|
|
308
|
+
version: "20.2.0-next.2",
|
|
309
|
+
ngImport: i0,
|
|
310
|
+
type: MatFooterCellDef,
|
|
311
|
+
decorators: [{
|
|
312
|
+
type: Directive,
|
|
313
|
+
args: [{
|
|
314
|
+
selector: '[matFooterCellDef]',
|
|
315
|
+
providers: [{
|
|
316
|
+
provide: CdkFooterCellDef,
|
|
317
|
+
useExisting: MatFooterCellDef
|
|
318
|
+
}]
|
|
319
|
+
}]
|
|
320
|
+
}]
|
|
321
|
+
});
|
|
164
322
|
class MatColumnDef extends CdkColumnDef {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
323
|
+
get name() {
|
|
324
|
+
return this._name;
|
|
325
|
+
}
|
|
326
|
+
set name(name) {
|
|
327
|
+
this._setNameInput(name);
|
|
328
|
+
}
|
|
329
|
+
_updateColumnCssClassName() {
|
|
330
|
+
super._updateColumnCssClassName();
|
|
331
|
+
this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`);
|
|
332
|
+
}
|
|
333
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
334
|
+
minVersion: "12.0.0",
|
|
335
|
+
version: "20.2.0-next.2",
|
|
336
|
+
ngImport: i0,
|
|
337
|
+
type: MatColumnDef,
|
|
338
|
+
deps: null,
|
|
339
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
340
|
+
});
|
|
341
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
342
|
+
minVersion: "14.0.0",
|
|
343
|
+
version: "20.2.0-next.2",
|
|
344
|
+
type: MatColumnDef,
|
|
345
|
+
isStandalone: true,
|
|
346
|
+
selector: "[matColumnDef]",
|
|
347
|
+
inputs: {
|
|
348
|
+
name: ["matColumnDef", "name"]
|
|
349
|
+
},
|
|
350
|
+
providers: [{
|
|
351
|
+
provide: CdkColumnDef,
|
|
352
|
+
useExisting: MatColumnDef
|
|
353
|
+
}, {
|
|
354
|
+
provide: 'MAT_SORT_HEADER_COLUMN_DEF',
|
|
355
|
+
useExisting: MatColumnDef
|
|
356
|
+
}],
|
|
357
|
+
usesInheritance: true,
|
|
358
|
+
ngImport: i0
|
|
359
|
+
});
|
|
187
360
|
}
|
|
188
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
361
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
362
|
+
minVersion: "12.0.0",
|
|
363
|
+
version: "20.2.0-next.2",
|
|
364
|
+
ngImport: i0,
|
|
365
|
+
type: MatColumnDef,
|
|
366
|
+
decorators: [{
|
|
367
|
+
type: Directive,
|
|
368
|
+
args: [{
|
|
369
|
+
selector: '[matColumnDef]',
|
|
370
|
+
providers: [{
|
|
371
|
+
provide: CdkColumnDef,
|
|
372
|
+
useExisting: MatColumnDef
|
|
373
|
+
}, {
|
|
374
|
+
provide: 'MAT_SORT_HEADER_COLUMN_DEF',
|
|
375
|
+
useExisting: MatColumnDef
|
|
376
|
+
}]
|
|
377
|
+
}]
|
|
378
|
+
}],
|
|
379
|
+
propDecorators: {
|
|
380
|
+
name: [{
|
|
381
|
+
type: Input,
|
|
382
|
+
args: ['matColumnDef']
|
|
383
|
+
}]
|
|
384
|
+
}
|
|
385
|
+
});
|
|
202
386
|
class MatHeaderCell extends CdkHeaderCell {
|
|
203
|
-
|
|
204
|
-
|
|
387
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
388
|
+
minVersion: "12.0.0",
|
|
389
|
+
version: "20.2.0-next.2",
|
|
390
|
+
ngImport: i0,
|
|
391
|
+
type: MatHeaderCell,
|
|
392
|
+
deps: null,
|
|
393
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
394
|
+
});
|
|
395
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
396
|
+
minVersion: "14.0.0",
|
|
397
|
+
version: "20.2.0-next.2",
|
|
398
|
+
type: MatHeaderCell,
|
|
399
|
+
isStandalone: true,
|
|
400
|
+
selector: "mat-header-cell, th[mat-header-cell]",
|
|
401
|
+
host: {
|
|
402
|
+
attributes: {
|
|
403
|
+
"role": "columnheader"
|
|
404
|
+
},
|
|
405
|
+
classAttribute: "mat-mdc-header-cell mdc-data-table__header-cell"
|
|
406
|
+
},
|
|
407
|
+
usesInheritance: true,
|
|
408
|
+
ngImport: i0
|
|
409
|
+
});
|
|
205
410
|
}
|
|
206
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
411
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
412
|
+
minVersion: "12.0.0",
|
|
413
|
+
version: "20.2.0-next.2",
|
|
414
|
+
ngImport: i0,
|
|
415
|
+
type: MatHeaderCell,
|
|
416
|
+
decorators: [{
|
|
417
|
+
type: Directive,
|
|
418
|
+
args: [{
|
|
419
|
+
selector: 'mat-header-cell, th[mat-header-cell]',
|
|
420
|
+
host: {
|
|
421
|
+
'class': 'mat-mdc-header-cell mdc-data-table__header-cell',
|
|
422
|
+
'role': 'columnheader'
|
|
423
|
+
}
|
|
424
|
+
}]
|
|
425
|
+
}]
|
|
426
|
+
});
|
|
217
427
|
class MatFooterCell extends CdkFooterCell {
|
|
218
|
-
|
|
219
|
-
|
|
428
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
429
|
+
minVersion: "12.0.0",
|
|
430
|
+
version: "20.2.0-next.2",
|
|
431
|
+
ngImport: i0,
|
|
432
|
+
type: MatFooterCell,
|
|
433
|
+
deps: null,
|
|
434
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
435
|
+
});
|
|
436
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
437
|
+
minVersion: "14.0.0",
|
|
438
|
+
version: "20.2.0-next.2",
|
|
439
|
+
type: MatFooterCell,
|
|
440
|
+
isStandalone: true,
|
|
441
|
+
selector: "mat-footer-cell, td[mat-footer-cell]",
|
|
442
|
+
host: {
|
|
443
|
+
classAttribute: "mat-mdc-footer-cell mdc-data-table__cell"
|
|
444
|
+
},
|
|
445
|
+
usesInheritance: true,
|
|
446
|
+
ngImport: i0
|
|
447
|
+
});
|
|
220
448
|
}
|
|
221
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
449
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
450
|
+
minVersion: "12.0.0",
|
|
451
|
+
version: "20.2.0-next.2",
|
|
452
|
+
ngImport: i0,
|
|
453
|
+
type: MatFooterCell,
|
|
454
|
+
decorators: [{
|
|
455
|
+
type: Directive,
|
|
456
|
+
args: [{
|
|
457
|
+
selector: 'mat-footer-cell, td[mat-footer-cell]',
|
|
458
|
+
host: {
|
|
459
|
+
'class': 'mat-mdc-footer-cell mdc-data-table__cell'
|
|
460
|
+
}
|
|
461
|
+
}]
|
|
462
|
+
}]
|
|
463
|
+
});
|
|
231
464
|
class MatCell extends CdkCell {
|
|
232
|
-
|
|
233
|
-
|
|
465
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
466
|
+
minVersion: "12.0.0",
|
|
467
|
+
version: "20.2.0-next.2",
|
|
468
|
+
ngImport: i0,
|
|
469
|
+
type: MatCell,
|
|
470
|
+
deps: null,
|
|
471
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
472
|
+
});
|
|
473
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
474
|
+
minVersion: "14.0.0",
|
|
475
|
+
version: "20.2.0-next.2",
|
|
476
|
+
type: MatCell,
|
|
477
|
+
isStandalone: true,
|
|
478
|
+
selector: "mat-cell, td[mat-cell]",
|
|
479
|
+
host: {
|
|
480
|
+
classAttribute: "mat-mdc-cell mdc-data-table__cell"
|
|
481
|
+
},
|
|
482
|
+
usesInheritance: true,
|
|
483
|
+
ngImport: i0
|
|
484
|
+
});
|
|
234
485
|
}
|
|
235
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
486
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
487
|
+
minVersion: "12.0.0",
|
|
488
|
+
version: "20.2.0-next.2",
|
|
489
|
+
ngImport: i0,
|
|
490
|
+
type: MatCell,
|
|
491
|
+
decorators: [{
|
|
492
|
+
type: Directive,
|
|
493
|
+
args: [{
|
|
494
|
+
selector: 'mat-cell, td[mat-cell]',
|
|
495
|
+
host: {
|
|
496
|
+
'class': 'mat-mdc-cell mdc-data-table__cell'
|
|
497
|
+
}
|
|
498
|
+
}]
|
|
499
|
+
}]
|
|
500
|
+
});
|
|
244
501
|
|
|
245
|
-
// We can't reuse `CDK_ROW_TEMPLATE` because it's incompatible with local compilation mode.
|
|
246
502
|
const ROW_TEMPLATE = `<ng-container cdkCellOutlet></ng-container>`;
|
|
247
|
-
/**
|
|
248
|
-
* Header row definition for the mat-table.
|
|
249
|
-
* Captures the header row's template and other header properties such as the columns to display.
|
|
250
|
-
*/
|
|
251
503
|
class MatHeaderRowDef extends CdkHeaderRowDef {
|
|
252
|
-
|
|
253
|
-
|
|
504
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
505
|
+
minVersion: "12.0.0",
|
|
506
|
+
version: "20.2.0-next.2",
|
|
507
|
+
ngImport: i0,
|
|
508
|
+
type: MatHeaderRowDef,
|
|
509
|
+
deps: null,
|
|
510
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
511
|
+
});
|
|
512
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
513
|
+
minVersion: "16.1.0",
|
|
514
|
+
version: "20.2.0-next.2",
|
|
515
|
+
type: MatHeaderRowDef,
|
|
516
|
+
isStandalone: true,
|
|
517
|
+
selector: "[matHeaderRowDef]",
|
|
518
|
+
inputs: {
|
|
519
|
+
columns: ["matHeaderRowDef", "columns"],
|
|
520
|
+
sticky: ["matHeaderRowDefSticky", "sticky", booleanAttribute]
|
|
521
|
+
},
|
|
522
|
+
providers: [{
|
|
523
|
+
provide: CdkHeaderRowDef,
|
|
524
|
+
useExisting: MatHeaderRowDef
|
|
525
|
+
}],
|
|
526
|
+
usesInheritance: true,
|
|
527
|
+
ngImport: i0
|
|
528
|
+
});
|
|
254
529
|
}
|
|
255
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
530
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
531
|
+
minVersion: "12.0.0",
|
|
532
|
+
version: "20.2.0-next.2",
|
|
533
|
+
ngImport: i0,
|
|
534
|
+
type: MatHeaderRowDef,
|
|
535
|
+
decorators: [{
|
|
536
|
+
type: Directive,
|
|
537
|
+
args: [{
|
|
538
|
+
selector: '[matHeaderRowDef]',
|
|
539
|
+
providers: [{
|
|
540
|
+
provide: CdkHeaderRowDef,
|
|
541
|
+
useExisting: MatHeaderRowDef
|
|
542
|
+
}],
|
|
543
|
+
inputs: [{
|
|
544
|
+
name: 'columns',
|
|
545
|
+
alias: 'matHeaderRowDef'
|
|
546
|
+
}, {
|
|
547
|
+
name: 'sticky',
|
|
548
|
+
alias: 'matHeaderRowDefSticky',
|
|
549
|
+
transform: booleanAttribute
|
|
550
|
+
}]
|
|
551
|
+
}]
|
|
552
|
+
}]
|
|
553
|
+
});
|
|
270
554
|
class MatFooterRowDef extends CdkFooterRowDef {
|
|
271
|
-
|
|
272
|
-
|
|
555
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
556
|
+
minVersion: "12.0.0",
|
|
557
|
+
version: "20.2.0-next.2",
|
|
558
|
+
ngImport: i0,
|
|
559
|
+
type: MatFooterRowDef,
|
|
560
|
+
deps: null,
|
|
561
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
562
|
+
});
|
|
563
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
564
|
+
minVersion: "16.1.0",
|
|
565
|
+
version: "20.2.0-next.2",
|
|
566
|
+
type: MatFooterRowDef,
|
|
567
|
+
isStandalone: true,
|
|
568
|
+
selector: "[matFooterRowDef]",
|
|
569
|
+
inputs: {
|
|
570
|
+
columns: ["matFooterRowDef", "columns"],
|
|
571
|
+
sticky: ["matFooterRowDefSticky", "sticky", booleanAttribute]
|
|
572
|
+
},
|
|
573
|
+
providers: [{
|
|
574
|
+
provide: CdkFooterRowDef,
|
|
575
|
+
useExisting: MatFooterRowDef
|
|
576
|
+
}],
|
|
577
|
+
usesInheritance: true,
|
|
578
|
+
ngImport: i0
|
|
579
|
+
});
|
|
273
580
|
}
|
|
274
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
581
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
582
|
+
minVersion: "12.0.0",
|
|
583
|
+
version: "20.2.0-next.2",
|
|
584
|
+
ngImport: i0,
|
|
585
|
+
type: MatFooterRowDef,
|
|
586
|
+
decorators: [{
|
|
587
|
+
type: Directive,
|
|
588
|
+
args: [{
|
|
589
|
+
selector: '[matFooterRowDef]',
|
|
590
|
+
providers: [{
|
|
591
|
+
provide: CdkFooterRowDef,
|
|
592
|
+
useExisting: MatFooterRowDef
|
|
593
|
+
}],
|
|
594
|
+
inputs: [{
|
|
595
|
+
name: 'columns',
|
|
596
|
+
alias: 'matFooterRowDef'
|
|
597
|
+
}, {
|
|
598
|
+
name: 'sticky',
|
|
599
|
+
alias: 'matFooterRowDefSticky',
|
|
600
|
+
transform: booleanAttribute
|
|
601
|
+
}]
|
|
602
|
+
}]
|
|
603
|
+
}]
|
|
604
|
+
});
|
|
290
605
|
class MatRowDef extends CdkRowDef {
|
|
291
|
-
|
|
292
|
-
|
|
606
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
607
|
+
minVersion: "12.0.0",
|
|
608
|
+
version: "20.2.0-next.2",
|
|
609
|
+
ngImport: i0,
|
|
610
|
+
type: MatRowDef,
|
|
611
|
+
deps: null,
|
|
612
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
613
|
+
});
|
|
614
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
615
|
+
minVersion: "14.0.0",
|
|
616
|
+
version: "20.2.0-next.2",
|
|
617
|
+
type: MatRowDef,
|
|
618
|
+
isStandalone: true,
|
|
619
|
+
selector: "[matRowDef]",
|
|
620
|
+
inputs: {
|
|
621
|
+
columns: ["matRowDefColumns", "columns"],
|
|
622
|
+
when: ["matRowDefWhen", "when"]
|
|
623
|
+
},
|
|
624
|
+
providers: [{
|
|
625
|
+
provide: CdkRowDef,
|
|
626
|
+
useExisting: MatRowDef
|
|
627
|
+
}],
|
|
628
|
+
usesInheritance: true,
|
|
629
|
+
ngImport: i0
|
|
630
|
+
});
|
|
293
631
|
}
|
|
294
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
632
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
633
|
+
minVersion: "12.0.0",
|
|
634
|
+
version: "20.2.0-next.2",
|
|
635
|
+
ngImport: i0,
|
|
636
|
+
type: MatRowDef,
|
|
637
|
+
decorators: [{
|
|
638
|
+
type: Directive,
|
|
639
|
+
args: [{
|
|
640
|
+
selector: '[matRowDef]',
|
|
641
|
+
providers: [{
|
|
642
|
+
provide: CdkRowDef,
|
|
643
|
+
useExisting: MatRowDef
|
|
644
|
+
}],
|
|
645
|
+
inputs: [{
|
|
646
|
+
name: 'columns',
|
|
647
|
+
alias: 'matRowDefColumns'
|
|
648
|
+
}, {
|
|
649
|
+
name: 'when',
|
|
650
|
+
alias: 'matRowDefWhen'
|
|
651
|
+
}]
|
|
652
|
+
}]
|
|
653
|
+
}]
|
|
654
|
+
});
|
|
306
655
|
class MatHeaderRow extends CdkHeaderRow {
|
|
307
|
-
|
|
308
|
-
|
|
656
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
657
|
+
minVersion: "12.0.0",
|
|
658
|
+
version: "20.2.0-next.2",
|
|
659
|
+
ngImport: i0,
|
|
660
|
+
type: MatHeaderRow,
|
|
661
|
+
deps: null,
|
|
662
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
663
|
+
});
|
|
664
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
665
|
+
minVersion: "14.0.0",
|
|
666
|
+
version: "20.2.0-next.2",
|
|
667
|
+
type: MatHeaderRow,
|
|
668
|
+
isStandalone: true,
|
|
669
|
+
selector: "mat-header-row, tr[mat-header-row]",
|
|
670
|
+
host: {
|
|
671
|
+
attributes: {
|
|
672
|
+
"role": "row"
|
|
673
|
+
},
|
|
674
|
+
classAttribute: "mat-mdc-header-row mdc-data-table__header-row"
|
|
675
|
+
},
|
|
676
|
+
providers: [{
|
|
677
|
+
provide: CdkHeaderRow,
|
|
678
|
+
useExisting: MatHeaderRow
|
|
679
|
+
}],
|
|
680
|
+
exportAs: ["matHeaderRow"],
|
|
681
|
+
usesInheritance: true,
|
|
682
|
+
ngImport: i0,
|
|
683
|
+
template: "<ng-container cdkCellOutlet></ng-container>",
|
|
684
|
+
isInline: true,
|
|
685
|
+
dependencies: [{
|
|
686
|
+
kind: "directive",
|
|
687
|
+
type: CdkCellOutlet,
|
|
688
|
+
selector: "[cdkCellOutlet]"
|
|
689
|
+
}],
|
|
690
|
+
changeDetection: i0.ChangeDetectionStrategy.Default,
|
|
691
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
692
|
+
});
|
|
309
693
|
}
|
|
310
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
694
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
695
|
+
minVersion: "12.0.0",
|
|
696
|
+
version: "20.2.0-next.2",
|
|
697
|
+
ngImport: i0,
|
|
698
|
+
type: MatHeaderRow,
|
|
699
|
+
decorators: [{
|
|
700
|
+
type: Component,
|
|
701
|
+
args: [{
|
|
702
|
+
selector: 'mat-header-row, tr[mat-header-row]',
|
|
703
|
+
template: ROW_TEMPLATE,
|
|
704
|
+
host: {
|
|
705
|
+
'class': 'mat-mdc-header-row mdc-data-table__header-row',
|
|
706
|
+
'role': 'row'
|
|
707
|
+
},
|
|
708
|
+
changeDetection: ChangeDetectionStrategy.Default,
|
|
709
|
+
encapsulation: ViewEncapsulation.None,
|
|
710
|
+
exportAs: 'matHeaderRow',
|
|
711
|
+
providers: [{
|
|
712
|
+
provide: CdkHeaderRow,
|
|
713
|
+
useExisting: MatHeaderRow
|
|
714
|
+
}],
|
|
715
|
+
imports: [CdkCellOutlet]
|
|
716
|
+
}]
|
|
717
|
+
}]
|
|
718
|
+
});
|
|
329
719
|
class MatFooterRow extends CdkFooterRow {
|
|
330
|
-
|
|
331
|
-
|
|
720
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
721
|
+
minVersion: "12.0.0",
|
|
722
|
+
version: "20.2.0-next.2",
|
|
723
|
+
ngImport: i0,
|
|
724
|
+
type: MatFooterRow,
|
|
725
|
+
deps: null,
|
|
726
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
727
|
+
});
|
|
728
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
729
|
+
minVersion: "14.0.0",
|
|
730
|
+
version: "20.2.0-next.2",
|
|
731
|
+
type: MatFooterRow,
|
|
732
|
+
isStandalone: true,
|
|
733
|
+
selector: "mat-footer-row, tr[mat-footer-row]",
|
|
734
|
+
host: {
|
|
735
|
+
attributes: {
|
|
736
|
+
"role": "row"
|
|
737
|
+
},
|
|
738
|
+
classAttribute: "mat-mdc-footer-row mdc-data-table__row"
|
|
739
|
+
},
|
|
740
|
+
providers: [{
|
|
741
|
+
provide: CdkFooterRow,
|
|
742
|
+
useExisting: MatFooterRow
|
|
743
|
+
}],
|
|
744
|
+
exportAs: ["matFooterRow"],
|
|
745
|
+
usesInheritance: true,
|
|
746
|
+
ngImport: i0,
|
|
747
|
+
template: "<ng-container cdkCellOutlet></ng-container>",
|
|
748
|
+
isInline: true,
|
|
749
|
+
dependencies: [{
|
|
750
|
+
kind: "directive",
|
|
751
|
+
type: CdkCellOutlet,
|
|
752
|
+
selector: "[cdkCellOutlet]"
|
|
753
|
+
}],
|
|
754
|
+
changeDetection: i0.ChangeDetectionStrategy.Default,
|
|
755
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
756
|
+
});
|
|
332
757
|
}
|
|
333
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
758
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
759
|
+
minVersion: "12.0.0",
|
|
760
|
+
version: "20.2.0-next.2",
|
|
761
|
+
ngImport: i0,
|
|
762
|
+
type: MatFooterRow,
|
|
763
|
+
decorators: [{
|
|
764
|
+
type: Component,
|
|
765
|
+
args: [{
|
|
766
|
+
selector: 'mat-footer-row, tr[mat-footer-row]',
|
|
767
|
+
template: ROW_TEMPLATE,
|
|
768
|
+
host: {
|
|
769
|
+
'class': 'mat-mdc-footer-row mdc-data-table__row',
|
|
770
|
+
'role': 'row'
|
|
771
|
+
},
|
|
772
|
+
changeDetection: ChangeDetectionStrategy.Default,
|
|
773
|
+
encapsulation: ViewEncapsulation.None,
|
|
774
|
+
exportAs: 'matFooterRow',
|
|
775
|
+
providers: [{
|
|
776
|
+
provide: CdkFooterRow,
|
|
777
|
+
useExisting: MatFooterRow
|
|
778
|
+
}],
|
|
779
|
+
imports: [CdkCellOutlet]
|
|
780
|
+
}]
|
|
781
|
+
}]
|
|
782
|
+
});
|
|
352
783
|
class MatRow extends CdkRow {
|
|
353
|
-
|
|
354
|
-
|
|
784
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
785
|
+
minVersion: "12.0.0",
|
|
786
|
+
version: "20.2.0-next.2",
|
|
787
|
+
ngImport: i0,
|
|
788
|
+
type: MatRow,
|
|
789
|
+
deps: null,
|
|
790
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
791
|
+
});
|
|
792
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
793
|
+
minVersion: "14.0.0",
|
|
794
|
+
version: "20.2.0-next.2",
|
|
795
|
+
type: MatRow,
|
|
796
|
+
isStandalone: true,
|
|
797
|
+
selector: "mat-row, tr[mat-row]",
|
|
798
|
+
host: {
|
|
799
|
+
attributes: {
|
|
800
|
+
"role": "row"
|
|
801
|
+
},
|
|
802
|
+
classAttribute: "mat-mdc-row mdc-data-table__row"
|
|
803
|
+
},
|
|
804
|
+
providers: [{
|
|
805
|
+
provide: CdkRow,
|
|
806
|
+
useExisting: MatRow
|
|
807
|
+
}],
|
|
808
|
+
exportAs: ["matRow"],
|
|
809
|
+
usesInheritance: true,
|
|
810
|
+
ngImport: i0,
|
|
811
|
+
template: "<ng-container cdkCellOutlet></ng-container>",
|
|
812
|
+
isInline: true,
|
|
813
|
+
dependencies: [{
|
|
814
|
+
kind: "directive",
|
|
815
|
+
type: CdkCellOutlet,
|
|
816
|
+
selector: "[cdkCellOutlet]"
|
|
817
|
+
}],
|
|
818
|
+
changeDetection: i0.ChangeDetectionStrategy.Default,
|
|
819
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
820
|
+
});
|
|
355
821
|
}
|
|
356
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
822
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
823
|
+
minVersion: "12.0.0",
|
|
824
|
+
version: "20.2.0-next.2",
|
|
825
|
+
ngImport: i0,
|
|
826
|
+
type: MatRow,
|
|
827
|
+
decorators: [{
|
|
828
|
+
type: Component,
|
|
829
|
+
args: [{
|
|
830
|
+
selector: 'mat-row, tr[mat-row]',
|
|
831
|
+
template: ROW_TEMPLATE,
|
|
832
|
+
host: {
|
|
833
|
+
'class': 'mat-mdc-row mdc-data-table__row',
|
|
834
|
+
'role': 'row'
|
|
835
|
+
},
|
|
836
|
+
changeDetection: ChangeDetectionStrategy.Default,
|
|
837
|
+
encapsulation: ViewEncapsulation.None,
|
|
838
|
+
exportAs: 'matRow',
|
|
839
|
+
providers: [{
|
|
840
|
+
provide: CdkRow,
|
|
841
|
+
useExisting: MatRow
|
|
842
|
+
}],
|
|
843
|
+
imports: [CdkCellOutlet]
|
|
844
|
+
}]
|
|
845
|
+
}]
|
|
846
|
+
});
|
|
375
847
|
class MatNoDataRow extends CdkNoDataRow {
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
848
|
+
_cellSelector = 'td, mat-cell, [mat-cell], .mat-cell';
|
|
849
|
+
constructor() {
|
|
850
|
+
super();
|
|
851
|
+
this._contentClassNames.push('mat-mdc-no-data-row', 'mat-mdc-row', 'mdc-data-table__row');
|
|
852
|
+
this._cellClassNames.push('mat-mdc-cell', 'mdc-data-table__cell', 'mat-no-data-cell');
|
|
853
|
+
}
|
|
854
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
855
|
+
minVersion: "12.0.0",
|
|
856
|
+
version: "20.2.0-next.2",
|
|
857
|
+
ngImport: i0,
|
|
858
|
+
type: MatNoDataRow,
|
|
859
|
+
deps: [],
|
|
860
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
861
|
+
});
|
|
862
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
863
|
+
minVersion: "14.0.0",
|
|
864
|
+
version: "20.2.0-next.2",
|
|
865
|
+
type: MatNoDataRow,
|
|
866
|
+
isStandalone: true,
|
|
867
|
+
selector: "ng-template[matNoDataRow]",
|
|
868
|
+
providers: [{
|
|
869
|
+
provide: CdkNoDataRow,
|
|
870
|
+
useExisting: MatNoDataRow
|
|
871
|
+
}],
|
|
872
|
+
usesInheritance: true,
|
|
873
|
+
ngImport: i0
|
|
874
|
+
});
|
|
384
875
|
}
|
|
385
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
876
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
877
|
+
minVersion: "12.0.0",
|
|
878
|
+
version: "20.2.0-next.2",
|
|
879
|
+
ngImport: i0,
|
|
880
|
+
type: MatNoDataRow,
|
|
881
|
+
decorators: [{
|
|
882
|
+
type: Directive,
|
|
883
|
+
args: [{
|
|
884
|
+
selector: 'ng-template[matNoDataRow]',
|
|
885
|
+
providers: [{
|
|
886
|
+
provide: CdkNoDataRow,
|
|
887
|
+
useExisting: MatNoDataRow
|
|
888
|
+
}]
|
|
889
|
+
}]
|
|
890
|
+
}],
|
|
891
|
+
ctorParameters: () => []
|
|
892
|
+
});
|
|
392
893
|
|
|
393
|
-
/**
|
|
394
|
-
* Column that simply shows text content for the header and row cells. Assumes that the table
|
|
395
|
-
* is using the native table implementation (`<table>`).
|
|
396
|
-
*
|
|
397
|
-
* By default, the name of this column will be the header text and data property accessor.
|
|
398
|
-
* The header text can be overridden with the `headerText` input. Cell values can be overridden with
|
|
399
|
-
* the `dataAccessor` input. Change the text justification to the start or end using the `justify`
|
|
400
|
-
* input.
|
|
401
|
-
*/
|
|
402
894
|
class MatTextColumn extends CdkTextColumn {
|
|
403
|
-
|
|
404
|
-
|
|
895
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
896
|
+
minVersion: "12.0.0",
|
|
897
|
+
version: "20.2.0-next.2",
|
|
898
|
+
ngImport: i0,
|
|
899
|
+
type: MatTextColumn,
|
|
900
|
+
deps: null,
|
|
901
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
902
|
+
});
|
|
903
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
904
|
+
minVersion: "14.0.0",
|
|
905
|
+
version: "20.2.0-next.2",
|
|
906
|
+
type: MatTextColumn,
|
|
907
|
+
isStandalone: true,
|
|
908
|
+
selector: "mat-text-column",
|
|
909
|
+
usesInheritance: true,
|
|
910
|
+
ngImport: i0,
|
|
911
|
+
template: `
|
|
405
912
|
<ng-container matColumnDef>
|
|
406
913
|
<th mat-header-cell *matHeaderCellDef [style.text-align]="justify">
|
|
407
914
|
{{headerText}}
|
|
@@ -410,13 +917,44 @@ class MatTextColumn extends CdkTextColumn {
|
|
|
410
917
|
{{dataAccessor(data, name)}}
|
|
411
918
|
</td>
|
|
412
919
|
</ng-container>
|
|
413
|
-
`,
|
|
920
|
+
`,
|
|
921
|
+
isInline: true,
|
|
922
|
+
dependencies: [{
|
|
923
|
+
kind: "directive",
|
|
924
|
+
type: MatColumnDef,
|
|
925
|
+
selector: "[matColumnDef]",
|
|
926
|
+
inputs: ["matColumnDef"]
|
|
927
|
+
}, {
|
|
928
|
+
kind: "directive",
|
|
929
|
+
type: MatHeaderCellDef,
|
|
930
|
+
selector: "[matHeaderCellDef]"
|
|
931
|
+
}, {
|
|
932
|
+
kind: "directive",
|
|
933
|
+
type: MatHeaderCell,
|
|
934
|
+
selector: "mat-header-cell, th[mat-header-cell]"
|
|
935
|
+
}, {
|
|
936
|
+
kind: "directive",
|
|
937
|
+
type: MatCellDef,
|
|
938
|
+
selector: "[matCellDef]"
|
|
939
|
+
}, {
|
|
940
|
+
kind: "directive",
|
|
941
|
+
type: MatCell,
|
|
942
|
+
selector: "mat-cell, td[mat-cell]"
|
|
943
|
+
}],
|
|
944
|
+
changeDetection: i0.ChangeDetectionStrategy.Default,
|
|
945
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
946
|
+
});
|
|
414
947
|
}
|
|
415
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
948
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
949
|
+
minVersion: "12.0.0",
|
|
950
|
+
version: "20.2.0-next.2",
|
|
951
|
+
ngImport: i0,
|
|
952
|
+
type: MatTextColumn,
|
|
953
|
+
decorators: [{
|
|
954
|
+
type: Component,
|
|
955
|
+
args: [{
|
|
956
|
+
selector: 'mat-text-column',
|
|
957
|
+
template: `
|
|
420
958
|
<ng-container matColumnDef>
|
|
421
959
|
<th mat-header-cell *matHeaderCellDef [style.text-align]="justify">
|
|
422
960
|
{{headerText}}
|
|
@@ -426,400 +964,204 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2",
|
|
|
426
964
|
</td>
|
|
427
965
|
</ng-container>
|
|
428
966
|
`,
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
// tslint:disable-next-line:validate-decorators
|
|
436
|
-
changeDetection: ChangeDetectionStrategy.Default,
|
|
437
|
-
imports: [MatColumnDef, MatHeaderCellDef, MatHeaderCell, MatCellDef, MatCell],
|
|
438
|
-
}]
|
|
439
|
-
}] });
|
|
967
|
+
encapsulation: ViewEncapsulation.None,
|
|
968
|
+
changeDetection: ChangeDetectionStrategy.Default,
|
|
969
|
+
imports: [MatColumnDef, MatHeaderCellDef, MatHeaderCell, MatCellDef, MatCell]
|
|
970
|
+
}]
|
|
971
|
+
}]
|
|
972
|
+
});
|
|
440
973
|
|
|
441
|
-
const EXPORTED_DECLARATIONS = [
|
|
442
|
-
// Table
|
|
443
|
-
MatTable,
|
|
444
|
-
MatRecycleRows,
|
|
445
|
-
// Template defs
|
|
446
|
-
MatHeaderCellDef,
|
|
447
|
-
MatHeaderRowDef,
|
|
448
|
-
MatColumnDef,
|
|
449
|
-
MatCellDef,
|
|
450
|
-
MatRowDef,
|
|
451
|
-
MatFooterCellDef,
|
|
452
|
-
MatFooterRowDef,
|
|
453
|
-
// Cell directives
|
|
454
|
-
MatHeaderCell,
|
|
455
|
-
MatCell,
|
|
456
|
-
MatFooterCell,
|
|
457
|
-
// Row directives
|
|
458
|
-
MatHeaderRow,
|
|
459
|
-
MatRow,
|
|
460
|
-
MatFooterRow,
|
|
461
|
-
MatNoDataRow,
|
|
462
|
-
MatTextColumn,
|
|
463
|
-
];
|
|
974
|
+
const EXPORTED_DECLARATIONS = [MatTable, MatRecycleRows, MatHeaderCellDef, MatHeaderRowDef, MatColumnDef, MatCellDef, MatRowDef, MatFooterCellDef, MatFooterRowDef, MatHeaderCell, MatCell, MatFooterCell, MatHeaderRow, MatRow, MatFooterRow, MatNoDataRow, MatTextColumn];
|
|
464
975
|
class MatTableModule {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
// Table
|
|
489
|
-
MatTable,
|
|
490
|
-
MatRecycleRows,
|
|
491
|
-
// Template defs
|
|
492
|
-
MatHeaderCellDef,
|
|
493
|
-
MatHeaderRowDef,
|
|
494
|
-
MatColumnDef,
|
|
495
|
-
MatCellDef,
|
|
496
|
-
MatRowDef,
|
|
497
|
-
MatFooterCellDef,
|
|
498
|
-
MatFooterRowDef,
|
|
499
|
-
// Cell directives
|
|
500
|
-
MatHeaderCell,
|
|
501
|
-
MatCell,
|
|
502
|
-
MatFooterCell,
|
|
503
|
-
// Row directives
|
|
504
|
-
MatHeaderRow,
|
|
505
|
-
MatRow,
|
|
506
|
-
MatFooterRow,
|
|
507
|
-
MatNoDataRow,
|
|
508
|
-
MatTextColumn] });
|
|
509
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatTableModule, imports: [CdkTableModule, BidiModule] });
|
|
976
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
977
|
+
minVersion: "12.0.0",
|
|
978
|
+
version: "20.2.0-next.2",
|
|
979
|
+
ngImport: i0,
|
|
980
|
+
type: MatTableModule,
|
|
981
|
+
deps: [],
|
|
982
|
+
target: i0.ɵɵFactoryTarget.NgModule
|
|
983
|
+
});
|
|
984
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
985
|
+
minVersion: "14.0.0",
|
|
986
|
+
version: "20.2.0-next.2",
|
|
987
|
+
ngImport: i0,
|
|
988
|
+
type: MatTableModule,
|
|
989
|
+
imports: [CdkTableModule, MatTable, MatRecycleRows, MatHeaderCellDef, MatHeaderRowDef, MatColumnDef, MatCellDef, MatRowDef, MatFooterCellDef, MatFooterRowDef, MatHeaderCell, MatCell, MatFooterCell, MatHeaderRow, MatRow, MatFooterRow, MatNoDataRow, MatTextColumn],
|
|
990
|
+
exports: [BidiModule, MatTable, MatRecycleRows, MatHeaderCellDef, MatHeaderRowDef, MatColumnDef, MatCellDef, MatRowDef, MatFooterCellDef, MatFooterRowDef, MatHeaderCell, MatCell, MatFooterCell, MatHeaderRow, MatRow, MatFooterRow, MatNoDataRow, MatTextColumn]
|
|
991
|
+
});
|
|
992
|
+
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
993
|
+
minVersion: "12.0.0",
|
|
994
|
+
version: "20.2.0-next.2",
|
|
995
|
+
ngImport: i0,
|
|
996
|
+
type: MatTableModule,
|
|
997
|
+
imports: [CdkTableModule, BidiModule]
|
|
998
|
+
});
|
|
510
999
|
}
|
|
511
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
1000
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1001
|
+
minVersion: "12.0.0",
|
|
1002
|
+
version: "20.2.0-next.2",
|
|
1003
|
+
ngImport: i0,
|
|
1004
|
+
type: MatTableModule,
|
|
1005
|
+
decorators: [{
|
|
1006
|
+
type: NgModule,
|
|
1007
|
+
args: [{
|
|
1008
|
+
imports: [CdkTableModule, ...EXPORTED_DECLARATIONS],
|
|
1009
|
+
exports: [BidiModule, EXPORTED_DECLARATIONS]
|
|
1010
|
+
}]
|
|
1011
|
+
}]
|
|
1012
|
+
});
|
|
518
1013
|
|
|
519
|
-
/**
|
|
520
|
-
* Corresponds to `Number.MAX_SAFE_INTEGER`. Moved out into a variable here due to
|
|
521
|
-
* flaky browser support and the value not being defined in Closure's typings.
|
|
522
|
-
*/
|
|
523
1014
|
const MAX_SAFE_INTEGER = 9007199254740991;
|
|
524
|
-
/**
|
|
525
|
-
* Data source that accepts a client-side data array and includes native support of filtering,
|
|
526
|
-
* sorting (using MatSort), and pagination (using MatPaginator).
|
|
527
|
-
*
|
|
528
|
-
* Allows for sort customization by overriding sortingDataAccessor, which defines how data
|
|
529
|
-
* properties are accessed. Also allows for filter customization by overriding filterPredicate,
|
|
530
|
-
* which defines how row data is converted to a string for filter matching.
|
|
531
|
-
*
|
|
532
|
-
* **Note:** This class is meant to be a simple data source to help you get started. As such
|
|
533
|
-
* it isn't equipped to handle some more advanced cases like robust i18n support or server-side
|
|
534
|
-
* interactions. If your app needs to support more advanced use cases, consider implementing your
|
|
535
|
-
* own `DataSource`.
|
|
536
|
-
*/
|
|
537
1015
|
class MatTableDataSource extends DataSource {
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
_renderChangesSubscription
|
|
551
|
-
|
|
552
|
-
* The filtered set of data that has been matched by the filter string, or all the data if there
|
|
553
|
-
* is no filter. Useful for knowing the set of data the table represents.
|
|
554
|
-
* For example, a 'selectAll()' function would likely want to select the set of filtered data
|
|
555
|
-
* shown to the user rather than all the data.
|
|
556
|
-
*/
|
|
557
|
-
filteredData;
|
|
558
|
-
/** Array of data that should be rendered by the table, where each object represents one row. */
|
|
559
|
-
get data() {
|
|
560
|
-
return this._data.value;
|
|
1016
|
+
_data;
|
|
1017
|
+
_renderData = new BehaviorSubject([]);
|
|
1018
|
+
_filter = new BehaviorSubject('');
|
|
1019
|
+
_internalPageChanges = new Subject();
|
|
1020
|
+
_renderChangesSubscription = null;
|
|
1021
|
+
filteredData;
|
|
1022
|
+
get data() {
|
|
1023
|
+
return this._data.value;
|
|
1024
|
+
}
|
|
1025
|
+
set data(data) {
|
|
1026
|
+
data = Array.isArray(data) ? data : [];
|
|
1027
|
+
this._data.next(data);
|
|
1028
|
+
if (!this._renderChangesSubscription) {
|
|
1029
|
+
this._filterData(data);
|
|
561
1030
|
}
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
1031
|
+
}
|
|
1032
|
+
get filter() {
|
|
1033
|
+
return this._filter.value;
|
|
1034
|
+
}
|
|
1035
|
+
set filter(filter) {
|
|
1036
|
+
this._filter.next(filter);
|
|
1037
|
+
if (!this._renderChangesSubscription) {
|
|
1038
|
+
this._filterData(this.data);
|
|
570
1039
|
}
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
1040
|
+
}
|
|
1041
|
+
get sort() {
|
|
1042
|
+
return this._sort;
|
|
1043
|
+
}
|
|
1044
|
+
set sort(sort) {
|
|
1045
|
+
this._sort = sort;
|
|
1046
|
+
this._updateChangeSubscription();
|
|
1047
|
+
}
|
|
1048
|
+
_sort;
|
|
1049
|
+
get paginator() {
|
|
1050
|
+
return this._paginator;
|
|
1051
|
+
}
|
|
1052
|
+
set paginator(paginator) {
|
|
1053
|
+
this._paginator = paginator;
|
|
1054
|
+
this._updateChangeSubscription();
|
|
1055
|
+
}
|
|
1056
|
+
_paginator;
|
|
1057
|
+
sortingDataAccessor = (data, sortHeaderId) => {
|
|
1058
|
+
const value = data[sortHeaderId];
|
|
1059
|
+
if (_isNumberValue(value)) {
|
|
1060
|
+
const numberValue = Number(value);
|
|
1061
|
+
return numberValue < MAX_SAFE_INTEGER ? numberValue : value;
|
|
585
1062
|
}
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
1063
|
+
return value;
|
|
1064
|
+
};
|
|
1065
|
+
sortData = (data, sort) => {
|
|
1066
|
+
const active = sort.active;
|
|
1067
|
+
const direction = sort.direction;
|
|
1068
|
+
if (!active || direction == '') {
|
|
1069
|
+
return data;
|
|
592
1070
|
}
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
* table's rendered data.
|
|
602
|
-
*
|
|
603
|
-
* Note that the data source uses the paginator's properties to calculate which page of data
|
|
604
|
-
* should be displayed. If the paginator receives its properties as template inputs,
|
|
605
|
-
* e.g. `[pageLength]=100` or `[pageIndex]=1`, then be sure that the paginator's view has been
|
|
606
|
-
* initialized before assigning it to this data source.
|
|
607
|
-
*/
|
|
608
|
-
get paginator() {
|
|
609
|
-
return this._paginator;
|
|
610
|
-
}
|
|
611
|
-
set paginator(paginator) {
|
|
612
|
-
this._paginator = paginator;
|
|
613
|
-
this._updateChangeSubscription();
|
|
614
|
-
}
|
|
615
|
-
_paginator;
|
|
616
|
-
/**
|
|
617
|
-
* Data accessor function that is used for accessing data properties for sorting through
|
|
618
|
-
* the default sortData function.
|
|
619
|
-
* This default function assumes that the sort header IDs (which defaults to the column name)
|
|
620
|
-
* matches the data's properties (e.g. column Xyz represents data['Xyz']).
|
|
621
|
-
* May be set to a custom function for different behavior.
|
|
622
|
-
* @param data Data object that is being accessed.
|
|
623
|
-
* @param sortHeaderId The name of the column that represents the data.
|
|
624
|
-
*/
|
|
625
|
-
sortingDataAccessor = (data, sortHeaderId) => {
|
|
626
|
-
const value = data[sortHeaderId];
|
|
627
|
-
if (_isNumberValue(value)) {
|
|
628
|
-
const numberValue = Number(value);
|
|
629
|
-
// Numbers beyond `MAX_SAFE_INTEGER` can't be compared reliably so we leave them as strings.
|
|
630
|
-
// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER
|
|
631
|
-
return numberValue < MAX_SAFE_INTEGER ? numberValue : value;
|
|
1071
|
+
return data.sort((a, b) => {
|
|
1072
|
+
let valueA = this.sortingDataAccessor(a, active);
|
|
1073
|
+
let valueB = this.sortingDataAccessor(b, active);
|
|
1074
|
+
const valueAType = typeof valueA;
|
|
1075
|
+
const valueBType = typeof valueB;
|
|
1076
|
+
if (valueAType !== valueBType) {
|
|
1077
|
+
if (valueAType === 'number') {
|
|
1078
|
+
valueA += '';
|
|
632
1079
|
}
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
* Gets a sorted copy of the data array based on the state of the MatSort. Called
|
|
637
|
-
* after changes are made to the filtered data or when sort changes are emitted from MatSort.
|
|
638
|
-
* By default, the function retrieves the active sort and its direction and compares data
|
|
639
|
-
* by retrieving data using the sortingDataAccessor. May be overridden for a custom implementation
|
|
640
|
-
* of data ordering.
|
|
641
|
-
* @param data The array of data that should be sorted.
|
|
642
|
-
* @param sort The connected MatSort that holds the current sort state.
|
|
643
|
-
*/
|
|
644
|
-
sortData = (data, sort) => {
|
|
645
|
-
const active = sort.active;
|
|
646
|
-
const direction = sort.direction;
|
|
647
|
-
if (!active || direction == '') {
|
|
648
|
-
return data;
|
|
1080
|
+
if (valueBType === 'number') {
|
|
1081
|
+
valueB += '';
|
|
649
1082
|
}
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
const valueBType = typeof valueB;
|
|
658
|
-
if (valueAType !== valueBType) {
|
|
659
|
-
if (valueAType === 'number') {
|
|
660
|
-
valueA += '';
|
|
661
|
-
}
|
|
662
|
-
if (valueBType === 'number') {
|
|
663
|
-
valueB += '';
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
// If both valueA and valueB exist (truthy), then compare the two. Otherwise, check if
|
|
667
|
-
// one value exists while the other doesn't. In this case, existing value should come last.
|
|
668
|
-
// This avoids inconsistent results when comparing values to undefined/null.
|
|
669
|
-
// If neither value exists, return 0 (equal).
|
|
670
|
-
let comparatorResult = 0;
|
|
671
|
-
if (valueA != null && valueB != null) {
|
|
672
|
-
// Check if one value is greater than the other; if equal, comparatorResult should remain 0.
|
|
673
|
-
if (valueA > valueB) {
|
|
674
|
-
comparatorResult = 1;
|
|
675
|
-
}
|
|
676
|
-
else if (valueA < valueB) {
|
|
677
|
-
comparatorResult = -1;
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
else if (valueA != null) {
|
|
681
|
-
comparatorResult = 1;
|
|
682
|
-
}
|
|
683
|
-
else if (valueB != null) {
|
|
684
|
-
comparatorResult = -1;
|
|
685
|
-
}
|
|
686
|
-
return comparatorResult * (direction == 'asc' ? 1 : -1);
|
|
687
|
-
});
|
|
688
|
-
};
|
|
689
|
-
/**
|
|
690
|
-
* Checks if a data object matches the data source's filter string. By default, each data object
|
|
691
|
-
* is converted to a string of its properties and returns true if the filter has
|
|
692
|
-
* at least one occurrence in that string. By default, the filter string has its whitespace
|
|
693
|
-
* trimmed and the match is case-insensitive. May be overridden for a custom implementation of
|
|
694
|
-
* filter matching.
|
|
695
|
-
* @param data Data object used to check against the filter.
|
|
696
|
-
* @param filter Filter string that has been set on the data source.
|
|
697
|
-
* @returns Whether the filter matches against the data
|
|
698
|
-
*/
|
|
699
|
-
filterPredicate = (data, filter) => {
|
|
700
|
-
// Transform the filter by converting it to lowercase and removing whitespace.
|
|
701
|
-
const transformedFilter = filter.trim().toLowerCase();
|
|
702
|
-
// Loops over the values in the array and returns true if any of them match the filter string
|
|
703
|
-
return Object.values(data).some(value => `${value}`.toLowerCase().includes(transformedFilter));
|
|
704
|
-
};
|
|
705
|
-
constructor(initialData = []) {
|
|
706
|
-
super();
|
|
707
|
-
this._data = new BehaviorSubject(initialData);
|
|
708
|
-
this._updateChangeSubscription();
|
|
709
|
-
}
|
|
710
|
-
/**
|
|
711
|
-
* Subscribe to changes that should trigger an update to the table's rendered rows. When the
|
|
712
|
-
* changes occur, process the current state of the filter, sort, and pagination along with
|
|
713
|
-
* the provided base data and send it to the table for rendering.
|
|
714
|
-
*/
|
|
715
|
-
_updateChangeSubscription() {
|
|
716
|
-
// Sorting and/or pagination should be watched if sort and/or paginator are provided.
|
|
717
|
-
// The events should emit whenever the component emits a change or initializes, or if no
|
|
718
|
-
// component is provided, a stream with just a null event should be provided.
|
|
719
|
-
// The `sortChange` and `pageChange` acts as a signal to the combineLatests below so that the
|
|
720
|
-
// pipeline can progress to the next step. Note that the value from these streams are not used,
|
|
721
|
-
// they purely act as a signal to progress in the pipeline.
|
|
722
|
-
const sortChange = this._sort
|
|
723
|
-
? merge(this._sort.sortChange, this._sort.initialized)
|
|
724
|
-
: of(null);
|
|
725
|
-
const pageChange = this._paginator
|
|
726
|
-
? merge(this._paginator.page, this._internalPageChanges, this._paginator.initialized)
|
|
727
|
-
: of(null);
|
|
728
|
-
const dataStream = this._data;
|
|
729
|
-
// Watch for base data or filter changes to provide a filtered set of data.
|
|
730
|
-
const filteredData = combineLatest([dataStream, this._filter]).pipe(map(([data]) => this._filterData(data)));
|
|
731
|
-
// Watch for filtered data or sort changes to provide an ordered set of data.
|
|
732
|
-
const orderedData = combineLatest([filteredData, sortChange]).pipe(map(([data]) => this._orderData(data)));
|
|
733
|
-
// Watch for ordered data or page changes to provide a paged set of data.
|
|
734
|
-
const paginatedData = combineLatest([orderedData, pageChange]).pipe(map(([data]) => this._pageData(data)));
|
|
735
|
-
// Watched for paged data changes and send the result to the table to render.
|
|
736
|
-
this._renderChangesSubscription?.unsubscribe();
|
|
737
|
-
this._renderChangesSubscription = paginatedData.subscribe(data => this._renderData.next(data));
|
|
738
|
-
}
|
|
739
|
-
/**
|
|
740
|
-
* Returns a filtered data array where each filter object contains the filter string within
|
|
741
|
-
* the result of the filterPredicate function. If no filter is set, returns the data array
|
|
742
|
-
* as provided.
|
|
743
|
-
*/
|
|
744
|
-
_filterData(data) {
|
|
745
|
-
// If there is a filter string, filter out data that does not contain it.
|
|
746
|
-
// Each data object is converted to a string using the function defined by filterPredicate.
|
|
747
|
-
// May be overridden for customization.
|
|
748
|
-
this.filteredData =
|
|
749
|
-
this.filter == null || this.filter === ''
|
|
750
|
-
? data
|
|
751
|
-
: data.filter(obj => this.filterPredicate(obj, this.filter));
|
|
752
|
-
if (this.paginator) {
|
|
753
|
-
this._updatePaginator(this.filteredData.length);
|
|
1083
|
+
}
|
|
1084
|
+
let comparatorResult = 0;
|
|
1085
|
+
if (valueA != null && valueB != null) {
|
|
1086
|
+
if (valueA > valueB) {
|
|
1087
|
+
comparatorResult = 1;
|
|
1088
|
+
} else if (valueA < valueB) {
|
|
1089
|
+
comparatorResult = -1;
|
|
754
1090
|
}
|
|
755
|
-
|
|
1091
|
+
} else if (valueA != null) {
|
|
1092
|
+
comparatorResult = 1;
|
|
1093
|
+
} else if (valueB != null) {
|
|
1094
|
+
comparatorResult = -1;
|
|
1095
|
+
}
|
|
1096
|
+
return comparatorResult * (direction == 'asc' ? 1 : -1);
|
|
1097
|
+
});
|
|
1098
|
+
};
|
|
1099
|
+
filterPredicate = (data, filter) => {
|
|
1100
|
+
const transformedFilter = filter.trim().toLowerCase();
|
|
1101
|
+
return Object.values(data).some(value => `${value}`.toLowerCase().includes(transformedFilter));
|
|
1102
|
+
};
|
|
1103
|
+
constructor(initialData = []) {
|
|
1104
|
+
super();
|
|
1105
|
+
this._data = new BehaviorSubject(initialData);
|
|
1106
|
+
this._updateChangeSubscription();
|
|
1107
|
+
}
|
|
1108
|
+
_updateChangeSubscription() {
|
|
1109
|
+
const sortChange = this._sort ? merge(this._sort.sortChange, this._sort.initialized) : of(null);
|
|
1110
|
+
const pageChange = this._paginator ? merge(this._paginator.page, this._internalPageChanges, this._paginator.initialized) : of(null);
|
|
1111
|
+
const dataStream = this._data;
|
|
1112
|
+
const filteredData = combineLatest([dataStream, this._filter]).pipe(map(([data]) => this._filterData(data)));
|
|
1113
|
+
const orderedData = combineLatest([filteredData, sortChange]).pipe(map(([data]) => this._orderData(data)));
|
|
1114
|
+
const paginatedData = combineLatest([orderedData, pageChange]).pipe(map(([data]) => this._pageData(data)));
|
|
1115
|
+
this._renderChangesSubscription?.unsubscribe();
|
|
1116
|
+
this._renderChangesSubscription = paginatedData.subscribe(data => this._renderData.next(data));
|
|
1117
|
+
}
|
|
1118
|
+
_filterData(data) {
|
|
1119
|
+
this.filteredData = this.filter == null || this.filter === '' ? data : data.filter(obj => this.filterPredicate(obj, this.filter));
|
|
1120
|
+
if (this.paginator) {
|
|
1121
|
+
this._updatePaginator(this.filteredData.length);
|
|
756
1122
|
}
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
_orderData(data) {
|
|
763
|
-
// If there is no active sort or direction, return the data without trying to sort.
|
|
764
|
-
if (!this.sort) {
|
|
765
|
-
return data;
|
|
766
|
-
}
|
|
767
|
-
return this.sortData(data.slice(), this.sort);
|
|
768
|
-
}
|
|
769
|
-
/**
|
|
770
|
-
* Returns a paged slice of the provided data array according to the provided paginator's page
|
|
771
|
-
* index and length. If there is no paginator provided, returns the data array as provided.
|
|
772
|
-
*/
|
|
773
|
-
_pageData(data) {
|
|
774
|
-
if (!this.paginator) {
|
|
775
|
-
return data;
|
|
776
|
-
}
|
|
777
|
-
const startIndex = this.paginator.pageIndex * this.paginator.pageSize;
|
|
778
|
-
return data.slice(startIndex, startIndex + this.paginator.pageSize);
|
|
1123
|
+
return this.filteredData;
|
|
1124
|
+
}
|
|
1125
|
+
_orderData(data) {
|
|
1126
|
+
if (!this.sort) {
|
|
1127
|
+
return data;
|
|
779
1128
|
}
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
_updatePaginator(filteredDataLength) {
|
|
786
|
-
Promise.resolve().then(() => {
|
|
787
|
-
const paginator = this.paginator;
|
|
788
|
-
if (!paginator) {
|
|
789
|
-
return;
|
|
790
|
-
}
|
|
791
|
-
paginator.length = filteredDataLength;
|
|
792
|
-
// If the page index is set beyond the page, reduce it to the last page.
|
|
793
|
-
if (paginator.pageIndex > 0) {
|
|
794
|
-
const lastPageIndex = Math.ceil(paginator.length / paginator.pageSize) - 1 || 0;
|
|
795
|
-
const newPageIndex = Math.min(paginator.pageIndex, lastPageIndex);
|
|
796
|
-
if (newPageIndex !== paginator.pageIndex) {
|
|
797
|
-
paginator.pageIndex = newPageIndex;
|
|
798
|
-
// Since the paginator only emits after user-generated changes,
|
|
799
|
-
// we need our own stream so we know to should re-render the data.
|
|
800
|
-
this._internalPageChanges.next();
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
});
|
|
1129
|
+
return this.sortData(data.slice(), this.sort);
|
|
1130
|
+
}
|
|
1131
|
+
_pageData(data) {
|
|
1132
|
+
if (!this.paginator) {
|
|
1133
|
+
return data;
|
|
804
1134
|
}
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
1135
|
+
const startIndex = this.paginator.pageIndex * this.paginator.pageSize;
|
|
1136
|
+
return data.slice(startIndex, startIndex + this.paginator.pageSize);
|
|
1137
|
+
}
|
|
1138
|
+
_updatePaginator(filteredDataLength) {
|
|
1139
|
+
Promise.resolve().then(() => {
|
|
1140
|
+
const paginator = this.paginator;
|
|
1141
|
+
if (!paginator) {
|
|
1142
|
+
return;
|
|
1143
|
+
}
|
|
1144
|
+
paginator.length = filteredDataLength;
|
|
1145
|
+
if (paginator.pageIndex > 0) {
|
|
1146
|
+
const lastPageIndex = Math.ceil(paginator.length / paginator.pageSize) - 1 || 0;
|
|
1147
|
+
const newPageIndex = Math.min(paginator.pageIndex, lastPageIndex);
|
|
1148
|
+
if (newPageIndex !== paginator.pageIndex) {
|
|
1149
|
+
paginator.pageIndex = newPageIndex;
|
|
1150
|
+
this._internalPageChanges.next();
|
|
812
1151
|
}
|
|
813
|
-
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
disconnect() {
|
|
820
|
-
this._renderChangesSubscription?.unsubscribe();
|
|
821
|
-
this._renderChangesSubscription = null;
|
|
1152
|
+
}
|
|
1153
|
+
});
|
|
1154
|
+
}
|
|
1155
|
+
connect() {
|
|
1156
|
+
if (!this._renderChangesSubscription) {
|
|
1157
|
+
this._updateChangeSubscription();
|
|
822
1158
|
}
|
|
1159
|
+
return this._renderData;
|
|
1160
|
+
}
|
|
1161
|
+
disconnect() {
|
|
1162
|
+
this._renderChangesSubscription?.unsubscribe();
|
|
1163
|
+
this._renderChangesSubscription = null;
|
|
1164
|
+
}
|
|
823
1165
|
}
|
|
824
1166
|
|
|
825
1167
|
export { MatCell, MatCellDef, MatColumnDef, MatFooterCell, MatFooterCellDef, MatFooterRow, MatFooterRowDef, MatHeaderCell, MatHeaderCellDef, MatHeaderRow, MatHeaderRowDef, MatNoDataRow, MatRecycleRows, MatRow, MatRowDef, MatTable, MatTableDataSource, MatTableModule, MatTextColumn };
|