@angular/material-experimental 16.2.0 → 17.0.0-next.0
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/_index.scss +3 -4
- package/esm2022/selection/selection-column.mjs +11 -11
- package/esm2022/selection/selection-module.mjs +5 -5
- package/esm2022/version.mjs +1 -1
- package/fesm2022/material-experimental.mjs +1 -1
- package/fesm2022/material-experimental.mjs.map +1 -1
- package/fesm2022/selection.mjs +13 -13
- package/fesm2022/selection.mjs.map +1 -1
- package/package.json +8 -8
- package/selection/index.d.ts +4 -4
- package/theming/_config-validation.scss +166 -0
- package/theming/_custom-tokens.scss +31 -0
- package/theming/_definition.scss +105 -0
- package/theming/_m3-density.scss +56 -0
- package/theming/_m3-palettes.scss +251 -0
- package/theming/_m3-tokens.scss +190 -70
- package/theming-next/_m3-tokens.scss +146 -0
- package/column-resize/_column-resize.import.scss +0 -9
- package/popover-edit/_popover-edit.import.scss +0 -13
- package/selection/_selection.import.scss +0 -4
- /package/{theming → theming-next}/_card.scss +0 -0
- /package/{theming → theming-next}/_checkbox.scss +0 -0
- /package/{theming → theming-next}/_theming.scss +0 -0
- /package/{theming → theming-next}/_token-resolution.scss +0 -0
package/_index.scss
CHANGED
|
@@ -5,9 +5,8 @@
|
|
|
5
5
|
popover-edit-typography, popover-edit-density, popover-edit-theme;
|
|
6
6
|
|
|
7
7
|
// Token-based theming API
|
|
8
|
-
@forward './theming/
|
|
9
|
-
@forward './theming/
|
|
10
|
-
|
|
11
|
-
@forward './theming/m3-tokens' show get-m3-tokens;
|
|
8
|
+
@forward './theming/definition' show define-theme, define-colors, define-typography, define-density;
|
|
9
|
+
@forward './theming/m3-palettes' as m3-* show $m3-red-palette, $m3-orange-palette,
|
|
10
|
+
$m3-yellow-palette, $m3-green-palette, $m3-blue-palette, $m3-indigo-palette, $m3-violet-palette;
|
|
12
11
|
|
|
13
12
|
// Additional public APIs for individual components
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { MatCellDef, MatColumnDef, MatHeaderCellDef, MatTable } from '@angular/material/table';
|
|
9
9
|
import { Component, Input, Optional, ViewChild, ChangeDetectionStrategy, ViewEncapsulation, Inject, } from '@angular/core';
|
|
10
10
|
import { MatSelection } from './selection';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
import * as i1 from "@angular/common";
|
|
13
|
-
import * as i2 from "@angular/material/
|
|
13
|
+
import * as i2 from "@angular/material/table";
|
|
14
14
|
import * as i3 from "@angular/material/checkbox";
|
|
15
15
|
import * as i4 from "./select-all";
|
|
16
16
|
import * as i5 from "./selection-toggle";
|
|
@@ -58,8 +58,8 @@ export class MatSelectionColumn {
|
|
|
58
58
|
this._columnDef.name = this._name;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MatSelectionColumn, deps: [{ token:
|
|
62
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.1", type: MatSelectionColumn, selector: "mat-selection-column", inputs: { name: "name" }, viewQueries: [{ propertyName: "_columnDef", first: true, predicate:
|
|
61
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MatSelectionColumn, deps: [{ token: MatTable, optional: true }, { token: MatSelection, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
62
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.1", type: MatSelectionColumn, selector: "mat-selection-column", inputs: { name: "name" }, viewQueries: [{ propertyName: "_columnDef", first: true, predicate: MatColumnDef, descendants: true, static: true }, { propertyName: "_cell", first: true, predicate: MatCellDef, descendants: true, static: true }, { propertyName: "_headerCell", first: true, predicate: MatHeaderCellDef, descendants: true, static: true }], ngImport: i0, template: `
|
|
63
63
|
<ng-container matColumnDef>
|
|
64
64
|
<th mat-header-cell *matHeaderCellDef class="mat-selection-column-header">
|
|
65
65
|
<mat-checkbox *ngIf="selection.multiple"
|
|
@@ -74,7 +74,7 @@ export class MatSelectionColumn {
|
|
|
74
74
|
[matSelectionToggleIndex]="i"></mat-checkbox>
|
|
75
75
|
</td>
|
|
76
76
|
</ng-container>
|
|
77
|
-
`, isInline: true, styles: ["th.mat-selection-column-header,td.mat-selection-column-cell{text-align:center;width:48px}"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.
|
|
77
|
+
`, isInline: true, styles: ["th.mat-selection-column-header,td.mat-selection-column-cell{text-align:center;width:48px}"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i2.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i2.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i2.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i2.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "directive", type: i4.MatSelectAll, selector: "[matSelectAll]", exportAs: ["matSelectAll"] }, { kind: "directive", type: i5.MatSelectionToggle, selector: "[matSelectionToggle]", inputs: ["matSelectionToggleIndex", "matSelectionToggleValue"], exportAs: ["matSelectionToggle"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
78
78
|
}
|
|
79
79
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MatSelectionColumn, decorators: [{
|
|
80
80
|
type: Component,
|
|
@@ -94,11 +94,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImpor
|
|
|
94
94
|
</td>
|
|
95
95
|
</ng-container>
|
|
96
96
|
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styles: ["th.mat-selection-column-header,td.mat-selection-column-cell{text-align:center;width:48px}"] }]
|
|
97
|
-
}], ctorParameters: function () { return [{ type: i2.
|
|
97
|
+
}], ctorParameters: function () { return [{ type: i2.MatTable, decorators: [{
|
|
98
98
|
type: Optional
|
|
99
99
|
}, {
|
|
100
100
|
type: Inject,
|
|
101
|
-
args: [
|
|
101
|
+
args: [MatTable]
|
|
102
102
|
}] }, { type: i6.MatSelection, decorators: [{
|
|
103
103
|
type: Optional
|
|
104
104
|
}, {
|
|
@@ -108,12 +108,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImpor
|
|
|
108
108
|
type: Input
|
|
109
109
|
}], _columnDef: [{
|
|
110
110
|
type: ViewChild,
|
|
111
|
-
args: [
|
|
111
|
+
args: [MatColumnDef, { static: true }]
|
|
112
112
|
}], _cell: [{
|
|
113
113
|
type: ViewChild,
|
|
114
|
-
args: [
|
|
114
|
+
args: [MatCellDef, { static: true }]
|
|
115
115
|
}], _headerCell: [{
|
|
116
116
|
type: ViewChild,
|
|
117
|
-
args: [
|
|
117
|
+
args: [MatHeaderCellDef, { static: true }]
|
|
118
118
|
}] } });
|
|
119
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
119
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJ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ICB9XG4gIH1cblxuICBuZ09uRGVzdHJveSgpIHtcbiAgICBpZiAodGhpcy5fdGFibGUpIHtcbiAgICAgIHRoaXMuX3RhYmxlLnJlbW92ZUNvbHVtbkRlZih0aGlzLl9jb2x1bW5EZWYpO1xuICAgIH1cbiAgfVxuXG4gIHByaXZhdGUgX3N5bmNDb2x1bW5EZWZOYW1lKCkge1xuICAgIGlmICh0aGlzLl9jb2x1bW5EZWYpIHtcbiAgICAgIHRoaXMuX2NvbHVtbkRlZi5uYW1lID0gdGhpcy5fbmFtZTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// behaviors once we move it out of experimental.
|
|
10
10
|
import { CommonModule } from '@angular/common';
|
|
11
11
|
import { NgModule } from '@angular/core';
|
|
12
|
-
import {
|
|
12
|
+
import { MatTableModule } from '@angular/material/table';
|
|
13
13
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
14
14
|
import { MatSelectAll } from './select-all';
|
|
15
15
|
import { MatSelection } from './selection';
|
|
@@ -23,13 +23,13 @@ export class MatSelectionModule {
|
|
|
23
23
|
MatSelection,
|
|
24
24
|
MatSelectionToggle,
|
|
25
25
|
MatSelectionColumn,
|
|
26
|
-
MatRowSelection], imports: [CommonModule,
|
|
27
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MatSelectionModule, imports: [CommonModule,
|
|
26
|
+
MatRowSelection], imports: [CommonModule, MatTableModule, MatCheckboxModule], exports: [MatSelectAll, MatSelection, MatSelectionToggle, MatSelectionColumn, MatRowSelection] }); }
|
|
27
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MatSelectionModule, imports: [CommonModule, MatTableModule, MatCheckboxModule] }); }
|
|
28
28
|
}
|
|
29
29
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MatSelectionModule, decorators: [{
|
|
30
30
|
type: NgModule,
|
|
31
31
|
args: [{
|
|
32
|
-
imports: [CommonModule,
|
|
32
|
+
imports: [CommonModule, MatTableModule, MatCheckboxModule],
|
|
33
33
|
exports: [MatSelectAll, MatSelection, MatSelectionToggle, MatSelectionColumn, MatRowSelection],
|
|
34
34
|
declarations: [
|
|
35
35
|
MatSelectAll,
|
|
@@ -40,4 +40,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImpor
|
|
|
40
40
|
],
|
|
41
41
|
}]
|
|
42
42
|
}] });
|
|
43
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0aW9uLW1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC1leHBlcmltZW50YWwvc2VsZWN0aW9uL3NlbGVjdGlvbi1tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsNEZBQTRGO0FBQzVGLGlEQUFpRDtBQUNqRCxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDN0MsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN2QyxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0seUJBQXlCLENBQUM7QUFDdkQsT0FBTyxFQUFDLGlCQUFpQixFQUFDLE1BQU0sNEJBQTRCLENBQUM7QUFDN0QsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGNBQWMsQ0FBQztBQUMxQyxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0sYUFBYSxDQUFDO0FBQ3pDLE9BQU8sRUFBQyxrQkFBa0IsRUFBQyxNQUF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ZSwgTWF0U2VsZWN0aW9uQ29sdW1uLCBNYXRSb3dTZWxlY3Rpb25dLFxuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBNYXRTZWxlY3RBbGwsXG4gICAgTWF0U2VsZWN0aW9uLFxuICAgIE1hdFNlbGVjdGlvblRvZ2dsZSxcbiAgICBNYXRTZWxlY3Rpb25Db2x1bW4sXG4gICAgTWF0Um93U2VsZWN0aW9uLFxuICBdLFxufSlcbmV4cG9ydCBjbGFzcyBNYXRTZWxlY3Rpb25Nb2R1bGUge31cbiJdfQ==
|
package/esm2022/version.mjs
CHANGED
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Version } from '@angular/core';
|
|
9
9
|
/** Current version of the Material experimental package. */
|
|
10
|
-
export const VERSION = new Version('
|
|
10
|
+
export const VERSION = new Version('17.0.0-next.0');
|
|
11
11
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC1leHBlcmltZW50YWwvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXRDLDREQUE0RDtBQUM1RCxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsSUFBSSxPQUFPLENBQUMsbUJBQW1CLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuXG5pbXBvcnQge1ZlcnNpb259IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vKiogQ3VycmVudCB2ZXJzaW9uIG9mIHRoZSBNYXRlcmlhbCBleHBlcmltZW50YWwgcGFja2FnZS4gKi9cbmV4cG9ydCBjb25zdCBWRVJTSU9OID0gbmV3IFZlcnNpb24oJzAuMC4wLVBMQUNFSE9MREVSJyk7XG4iXX0=
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Version } from '@angular/core';
|
|
2
2
|
|
|
3
3
|
/** Current version of the Material experimental package. */
|
|
4
|
-
const VERSION = new Version('
|
|
4
|
+
const VERSION = new Version('17.0.0-next.0');
|
|
5
5
|
|
|
6
6
|
export { VERSION };
|
|
7
7
|
//# sourceMappingURL=material-experimental.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"material-experimental.mjs","sources":["../../../../../../src/material-experimental/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Version} from '@angular/core';\n\n/** Current version of the Material experimental package. */\nexport const VERSION = new Version('
|
|
1
|
+
{"version":3,"file":"material-experimental.mjs","sources":["../../../../../../src/material-experimental/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Version} from '@angular/core';\n\n/** Current version of the Material experimental package. */\nexport const VERSION = new Version('17.0.0-next.0');\n"],"names":[],"mappings":";;AAUA;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;;;"}
|
package/fesm2022/selection.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
|
2
2
|
import { CdkSelection, CdkSelectAll, CdkSelectionToggle, CdkRowSelection } from '@angular/cdk-experimental/selection';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { EventEmitter, Directive, Input, Output, Component, ChangeDetectionStrategy, ViewEncapsulation, Optional, Inject, ViewChild, NgModule } from '@angular/core';
|
|
5
|
-
import * as i2 from '@angular/material/
|
|
6
|
-
import {
|
|
5
|
+
import * as i2 from '@angular/material/table';
|
|
6
|
+
import { MatTable, MatColumnDef, MatCellDef, MatHeaderCellDef, MatTableModule } from '@angular/material/table';
|
|
7
7
|
import * as i1 from '@angular/common';
|
|
8
8
|
import { CommonModule } from '@angular/common';
|
|
9
9
|
import * as i3 from '@angular/material/checkbox';
|
|
@@ -145,8 +145,8 @@ class MatSelectionColumn {
|
|
|
145
145
|
this._columnDef.name = this._name;
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MatSelectionColumn, deps: [{ token:
|
|
149
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.1", type: MatSelectionColumn, selector: "mat-selection-column", inputs: { name: "name" }, viewQueries: [{ propertyName: "_columnDef", first: true, predicate:
|
|
148
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MatSelectionColumn, deps: [{ token: MatTable, optional: true }, { token: MatSelection, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
149
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.1", type: MatSelectionColumn, selector: "mat-selection-column", inputs: { name: "name" }, viewQueries: [{ propertyName: "_columnDef", first: true, predicate: MatColumnDef, descendants: true, static: true }, { propertyName: "_cell", first: true, predicate: MatCellDef, descendants: true, static: true }, { propertyName: "_headerCell", first: true, predicate: MatHeaderCellDef, descendants: true, static: true }], ngImport: i0, template: `
|
|
150
150
|
<ng-container matColumnDef>
|
|
151
151
|
<th mat-header-cell *matHeaderCellDef class="mat-selection-column-header">
|
|
152
152
|
<mat-checkbox *ngIf="selection.multiple"
|
|
@@ -161,7 +161,7 @@ class MatSelectionColumn {
|
|
|
161
161
|
[matSelectionToggleIndex]="i"></mat-checkbox>
|
|
162
162
|
</td>
|
|
163
163
|
</ng-container>
|
|
164
|
-
`, isInline: true, styles: ["th.mat-selection-column-header,td.mat-selection-column-cell{text-align:center;width:48px}"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.
|
|
164
|
+
`, isInline: true, styles: ["th.mat-selection-column-header,td.mat-selection-column-cell{text-align:center;width:48px}"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i2.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i2.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i2.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i2.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "directive", type: MatSelectAll, selector: "[matSelectAll]", exportAs: ["matSelectAll"] }, { kind: "directive", type: MatSelectionToggle, selector: "[matSelectionToggle]", inputs: ["matSelectionToggleIndex", "matSelectionToggleValue"], exportAs: ["matSelectionToggle"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
165
165
|
}
|
|
166
166
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MatSelectionColumn, decorators: [{
|
|
167
167
|
type: Component,
|
|
@@ -181,11 +181,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImpor
|
|
|
181
181
|
</td>
|
|
182
182
|
</ng-container>
|
|
183
183
|
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styles: ["th.mat-selection-column-header,td.mat-selection-column-cell{text-align:center;width:48px}"] }]
|
|
184
|
-
}], ctorParameters: function () { return [{ type: i2.
|
|
184
|
+
}], ctorParameters: function () { return [{ type: i2.MatTable, decorators: [{
|
|
185
185
|
type: Optional
|
|
186
186
|
}, {
|
|
187
187
|
type: Inject,
|
|
188
|
-
args: [
|
|
188
|
+
args: [MatTable]
|
|
189
189
|
}] }, { type: MatSelection, decorators: [{
|
|
190
190
|
type: Optional
|
|
191
191
|
}, {
|
|
@@ -195,13 +195,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImpor
|
|
|
195
195
|
type: Input
|
|
196
196
|
}], _columnDef: [{
|
|
197
197
|
type: ViewChild,
|
|
198
|
-
args: [
|
|
198
|
+
args: [MatColumnDef, { static: true }]
|
|
199
199
|
}], _cell: [{
|
|
200
200
|
type: ViewChild,
|
|
201
|
-
args: [
|
|
201
|
+
args: [MatCellDef, { static: true }]
|
|
202
202
|
}], _headerCell: [{
|
|
203
203
|
type: ViewChild,
|
|
204
|
-
args: [
|
|
204
|
+
args: [MatHeaderCellDef, { static: true }]
|
|
205
205
|
}] } });
|
|
206
206
|
|
|
207
207
|
/**
|
|
@@ -238,13 +238,13 @@ class MatSelectionModule {
|
|
|
238
238
|
MatSelection,
|
|
239
239
|
MatSelectionToggle,
|
|
240
240
|
MatSelectionColumn,
|
|
241
|
-
MatRowSelection], imports: [CommonModule,
|
|
242
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MatSelectionModule, imports: [CommonModule,
|
|
241
|
+
MatRowSelection], imports: [CommonModule, MatTableModule, MatCheckboxModule], exports: [MatSelectAll, MatSelection, MatSelectionToggle, MatSelectionColumn, MatRowSelection] }); }
|
|
242
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MatSelectionModule, imports: [CommonModule, MatTableModule, MatCheckboxModule] }); }
|
|
243
243
|
}
|
|
244
244
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MatSelectionModule, decorators: [{
|
|
245
245
|
type: NgModule,
|
|
246
246
|
args: [{
|
|
247
|
-
imports: [CommonModule,
|
|
247
|
+
imports: [CommonModule, MatTableModule, MatCheckboxModule],
|
|
248
248
|
exports: [MatSelectAll, MatSelection, MatSelectionToggle, MatSelectionColumn, MatRowSelection],
|
|
249
249
|
declarations: [
|
|
250
250
|
MatSelectAll,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection.mjs","sources":["../../../../../../src/material-experimental/selection/selection.ts","../../../../../../src/material-experimental/selection/select-all.ts","../../../../../../src/material-experimental/selection/selection-toggle.ts","../../../../../../src/material-experimental/selection/selection-column.ts","../../../../../../src/material-experimental/selection/row-selection.ts","../../../../../../src/material-experimental/selection/selection-module.ts","../../../../../../src/material-experimental/selection/selection_public_index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {coerceBooleanProperty} from '@angular/cdk/coercion';\nimport {CdkSelection, SelectionChange} from '@angular/cdk-experimental/selection';\nimport {Directive, Input, Output, EventEmitter} from '@angular/core';\n\n/**\n * Manages the selection states of the items and provides methods to check and update the selection\n * states.\n * It must be applied to the parent element if `matSelectionToggle`, `matSelectAll`,\n * `matRowSelection` and `matSelectionColumn` are applied.\n */\n@Directive({\n selector: '[matSelection]',\n exportAs: 'matSelection',\n providers: [{provide: CdkSelection, useExisting: MatSelection}],\n})\n// tslint:disable-next-line: coercion-types\nexport class MatSelection<T> extends CdkSelection<T> {\n /** Whether to support multiple selection */\n @Input('matSelectionMultiple')\n override get multiple(): boolean {\n return this._multiple;\n }\n override set multiple(multiple: boolean) {\n this._multiple = coerceBooleanProperty(multiple);\n }\n\n /** Emits when selection changes. */\n @Output('matSelectionChange') override readonly change = new EventEmitter<SelectionChange<T>>();\n}\n\n/**\n * Represents the change in the selection set.\n */\nexport {SelectionChange} from '@angular/cdk-experimental/selection';\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {CdkSelectAll} from '@angular/cdk-experimental/selection';\nimport {Directive} from '@angular/core';\n\n/**\n * Makes the element a select-all toggle.\n *\n * Must be used within a parent `MatSelection` directive. It toggles the selection states\n * of all the selection toggles connected with the `MatSelection` directive.\n * If the element implements `ControlValueAccessor`, e.g. `MatCheckbox`, the directive\n * automatically connects it with the select-all state provided by the `MatSelection` directive. If\n * not, use `checked` to get the checked state, `indeterminate` to get the indeterminate state,\n * and `toggle()` to change the selection state.\n */\n@Directive({\n selector: '[matSelectAll]',\n exportAs: 'matSelectAll',\n providers: [{provide: CdkSelectAll, useExisting: MatSelectAll}],\n})\nexport class MatSelectAll<T> extends CdkSelectAll<T> {}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {CdkSelectionToggle} from '@angular/cdk-experimental/selection';\nimport {Directive, Input} from '@angular/core';\n\n/**\n * Makes the element a selection toggle.\n *\n * Must be used within a parent `MatSelection` directive.\n * Must be provided with the value. If `trackBy` is used on `MatSelection`, the index of the value\n * is required. If the element implements `ControlValueAccessor`, e.g. `MatCheckbox`, the directive\n * automatically connects it with the selection state provided by the `MatSelection` directive. If\n * not, use `checked$` to get the checked state of the value, and `toggle()` to change the selection\n * state.\n */\n@Directive({\n selector: '[matSelectionToggle]',\n exportAs: 'matSelectionToggle',\n inputs: ['index: matSelectionToggleIndex'],\n providers: [{provide: CdkSelectionToggle, useExisting: MatSelectionToggle}],\n})\nexport class MatSelectionToggle<T> extends CdkSelectionToggle<T> {\n /** The value that is associated with the toggle */\n @Input('matSelectionToggleValue') override value: T = undefined!;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {\n MatLegacyCellDef,\n MatLegacyColumnDef,\n MatLegacyHeaderCellDef,\n MatLegacyTable,\n} from '@angular/material/legacy-table';\nimport {\n Component,\n Input,\n OnDestroy,\n OnInit,\n Optional,\n ViewChild,\n ChangeDetectionStrategy,\n ViewEncapsulation,\n Inject,\n} from '@angular/core';\n\nimport {MatSelection} from './selection';\n\n/**\n * Column that adds row selecting checkboxes and a select-all checkbox if `matSelectionMultiple` is\n * `true`.\n *\n * Must be used within a parent `MatSelection` directive.\n */\n@Component({\n selector: 'mat-selection-column',\n template: `\n <ng-container matColumnDef>\n <th mat-header-cell *matHeaderCellDef class=\"mat-selection-column-header\">\n <mat-checkbox *ngIf=\"selection.multiple\"\n matSelectAll\n #allToggler=\"matSelectAll\"\n [indeterminate]=\"allToggler.indeterminate | async\"></mat-checkbox>\n </th>\n <td mat-cell *matCellDef=\"let row; let i = $index\" class=\"mat-selection-column-cell\">\n <mat-checkbox\n matSelectionToggle\n [matSelectionToggleValue]=\"row\"\n [matSelectionToggleIndex]=\"i\"></mat-checkbox>\n </td>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrls: ['selection-column.css'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class MatSelectionColumn<T> implements OnInit, OnDestroy {\n /** Column name that should be used to reference this column. */\n @Input()\n get name(): string {\n return this._name;\n }\n set name(name: string) {\n this._name = name;\n\n this._syncColumnDefName();\n }\n private _name: string;\n\n @ViewChild(MatLegacyColumnDef, {static: true}) private readonly _columnDef: MatLegacyColumnDef;\n @ViewChild(MatLegacyCellDef, {static: true}) private readonly _cell: MatLegacyCellDef;\n @ViewChild(MatLegacyHeaderCellDef, {static: true})\n private readonly _headerCell: MatLegacyHeaderCellDef;\n\n constructor(\n @Optional() @Inject(MatLegacyTable) private _table: MatLegacyTable<T>,\n @Optional() @Inject(MatSelection) readonly selection: MatSelection<T>,\n ) {}\n\n ngOnInit() {\n if (!this.selection && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('MatSelectionColumn: missing MatSelection in the parent');\n }\n\n this._syncColumnDefName();\n\n if (this._table) {\n this._columnDef.cell = this._cell;\n this._columnDef.headerCell = this._headerCell;\n this._table.addColumnDef(this._columnDef);\n } else if (typeof ngDevMode === 'undefined' || ngDevMode) {\n throw Error('MatSelectionColumn: missing parent table');\n }\n }\n\n ngOnDestroy() {\n if (this._table) {\n this._table.removeColumnDef(this._columnDef);\n }\n }\n\n private _syncColumnDefName() {\n if (this._columnDef) {\n this._columnDef.name = this._name;\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {CdkRowSelection} from '@angular/cdk-experimental/selection';\nimport {Input, Directive} from '@angular/core';\n\n/**\n * Applies `mat-selected` class and `aria-selected` to an element.\n *\n * Must be used within a parent `MatSelection` directive.\n * Must be provided with the value. The index is required if `trackBy` is used on the `CdkSelection`\n * directive.\n */\n@Directive({\n selector: '[matRowSelection]',\n host: {\n '[class.mat-selected]': '_selection.isSelected(this.value, this.index)',\n '[attr.aria-selected]': '_selection.isSelected(this.value, this.index)',\n },\n providers: [{provide: CdkRowSelection, useExisting: MatRowSelection}],\n inputs: ['index: matRowSelectionIndex'],\n})\nexport class MatRowSelection<T> extends CdkRowSelection<T> {\n /** The value that is associated with the row */\n @Input('matRowSelectionValue') override value: T;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n// TODO(yifange): Move the table-specific code to a separate module from the other selection\n// behaviors once we move it out of experimental.\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {MatLegacyTableModule} from '@angular/material/legacy-table';\nimport {MatCheckboxModule} from '@angular/material/checkbox';\nimport {MatSelectAll} from './select-all';\nimport {MatSelection} from './selection';\nimport {MatSelectionToggle} from './selection-toggle';\nimport {MatSelectionColumn} from './selection-column';\nimport {MatRowSelection} from './row-selection';\n\n@NgModule({\n imports: [CommonModule, MatLegacyTableModule, MatCheckboxModule],\n exports: [MatSelectAll, MatSelection, MatSelectionToggle, MatSelectionColumn, MatRowSelection],\n declarations: [\n MatSelectAll,\n MatSelection,\n MatSelectionToggle,\n MatSelectionColumn,\n MatRowSelection,\n ],\n})\nexport class MatSelectionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i4.MatSelectAll","i5.MatSelectionToggle"],"mappings":";;;;;;;;;;;AAYA;;;;;AAKG;AAMH;AACM,MAAO,YAAgB,SAAQ,YAAe,CAAA;AANpD,IAAA,WAAA,GAAA;;;AAiBkD,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAsB,CAAC;AACjG,KAAA;;AAVC,IAAA,IACa,QAAQ,GAAA;QACnB,OAAO,IAAI,CAAC,SAAS,CAAC;KACvB;IACD,IAAa,QAAQ,CAAC,QAAiB,EAAA;AACrC,QAAA,IAAI,CAAC,SAAS,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC;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AA,kBAAkB,EAVnB,OAAA,EAAA,CAAA,YAAY,EAAE,oBAAoB,EAAE,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAUpD,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAX9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,oBAAoB,EAAE,iBAAiB,CAAC;oBAChE,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,CAAC;AAC9F,oBAAA,YAAY,EAAE;wBACZ,YAAY;wBACZ,YAAY;wBACZ,kBAAkB;wBAClB,kBAAkB;wBAClB,eAAe;AAChB,qBAAA;AACF,iBAAA,CAAA;;;AC9BD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"selection.mjs","sources":["../../../../../../src/material-experimental/selection/selection.ts","../../../../../../src/material-experimental/selection/select-all.ts","../../../../../../src/material-experimental/selection/selection-toggle.ts","../../../../../../src/material-experimental/selection/selection-column.ts","../../../../../../src/material-experimental/selection/row-selection.ts","../../../../../../src/material-experimental/selection/selection-module.ts","../../../../../../src/material-experimental/selection/selection_public_index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {coerceBooleanProperty} from '@angular/cdk/coercion';\nimport {CdkSelection, SelectionChange} from '@angular/cdk-experimental/selection';\nimport {Directive, Input, Output, EventEmitter} from '@angular/core';\n\n/**\n * Manages the selection states of the items and provides methods to check and update the selection\n * states.\n * It must be applied to the parent element if `matSelectionToggle`, `matSelectAll`,\n * `matRowSelection` and `matSelectionColumn` are applied.\n */\n@Directive({\n selector: '[matSelection]',\n exportAs: 'matSelection',\n providers: [{provide: CdkSelection, useExisting: MatSelection}],\n})\n// tslint:disable-next-line: coercion-types\nexport class MatSelection<T> extends CdkSelection<T> {\n /** Whether to support multiple selection */\n @Input('matSelectionMultiple')\n override get multiple(): boolean {\n return this._multiple;\n }\n override set multiple(multiple: boolean) {\n this._multiple = coerceBooleanProperty(multiple);\n }\n\n /** Emits when selection changes. */\n @Output('matSelectionChange') override readonly change = new EventEmitter<SelectionChange<T>>();\n}\n\n/**\n * Represents the change in the selection set.\n */\nexport {SelectionChange} from '@angular/cdk-experimental/selection';\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {CdkSelectAll} from '@angular/cdk-experimental/selection';\nimport {Directive} from '@angular/core';\n\n/**\n * Makes the element a select-all toggle.\n *\n * Must be used within a parent `MatSelection` directive. It toggles the selection states\n * of all the selection toggles connected with the `MatSelection` directive.\n * If the element implements `ControlValueAccessor`, e.g. `MatCheckbox`, the directive\n * automatically connects it with the select-all state provided by the `MatSelection` directive. If\n * not, use `checked` to get the checked state, `indeterminate` to get the indeterminate state,\n * and `toggle()` to change the selection state.\n */\n@Directive({\n selector: '[matSelectAll]',\n exportAs: 'matSelectAll',\n providers: [{provide: CdkSelectAll, useExisting: MatSelectAll}],\n})\nexport class MatSelectAll<T> extends CdkSelectAll<T> {}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {CdkSelectionToggle} from '@angular/cdk-experimental/selection';\nimport {Directive, Input} from '@angular/core';\n\n/**\n * Makes the element a selection toggle.\n *\n * Must be used within a parent `MatSelection` directive.\n * Must be provided with the value. If `trackBy` is used on `MatSelection`, the index of the value\n * is required. If the element implements `ControlValueAccessor`, e.g. `MatCheckbox`, the directive\n * automatically connects it with the selection state provided by the `MatSelection` directive. If\n * not, use `checked$` to get the checked state of the value, and `toggle()` to change the selection\n * state.\n */\n@Directive({\n selector: '[matSelectionToggle]',\n exportAs: 'matSelectionToggle',\n inputs: ['index: matSelectionToggleIndex'],\n providers: [{provide: CdkSelectionToggle, useExisting: MatSelectionToggle}],\n})\nexport class MatSelectionToggle<T> extends CdkSelectionToggle<T> {\n /** The value that is associated with the toggle */\n @Input('matSelectionToggleValue') override value: T = undefined!;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {MatCellDef, MatColumnDef, MatHeaderCellDef, MatTable} from '@angular/material/table';\nimport {\n Component,\n Input,\n OnDestroy,\n OnInit,\n Optional,\n ViewChild,\n ChangeDetectionStrategy,\n ViewEncapsulation,\n Inject,\n} from '@angular/core';\n\nimport {MatSelection} from './selection';\n\n/**\n * Column that adds row selecting checkboxes and a select-all checkbox if `matSelectionMultiple` is\n * `true`.\n *\n * Must be used within a parent `MatSelection` directive.\n */\n@Component({\n selector: 'mat-selection-column',\n template: `\n <ng-container matColumnDef>\n <th mat-header-cell *matHeaderCellDef class=\"mat-selection-column-header\">\n <mat-checkbox *ngIf=\"selection.multiple\"\n matSelectAll\n #allToggler=\"matSelectAll\"\n [indeterminate]=\"allToggler.indeterminate | async\"></mat-checkbox>\n </th>\n <td mat-cell *matCellDef=\"let row; let i = $index\" class=\"mat-selection-column-cell\">\n <mat-checkbox\n matSelectionToggle\n [matSelectionToggleValue]=\"row\"\n [matSelectionToggleIndex]=\"i\"></mat-checkbox>\n </td>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrls: ['selection-column.css'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class MatSelectionColumn<T> implements OnInit, OnDestroy {\n /** Column name that should be used to reference this column. */\n @Input()\n get name(): string {\n return this._name;\n }\n set name(name: string) {\n this._name = name;\n\n this._syncColumnDefName();\n }\n private _name: string;\n\n @ViewChild(MatColumnDef, {static: true}) private readonly _columnDef: MatColumnDef;\n @ViewChild(MatCellDef, {static: true}) private readonly _cell: MatCellDef;\n @ViewChild(MatHeaderCellDef, {static: true})\n private readonly _headerCell: MatHeaderCellDef;\n\n constructor(\n @Optional() @Inject(MatTable) private _table: MatTable<T>,\n @Optional() @Inject(MatSelection) readonly selection: MatSelection<T>,\n ) {}\n\n ngOnInit() {\n if (!this.selection && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('MatSelectionColumn: missing MatSelection in the parent');\n }\n\n this._syncColumnDefName();\n\n if (this._table) {\n this._columnDef.cell = this._cell;\n this._columnDef.headerCell = this._headerCell;\n this._table.addColumnDef(this._columnDef);\n } else if (typeof ngDevMode === 'undefined' || ngDevMode) {\n throw Error('MatSelectionColumn: missing parent table');\n }\n }\n\n ngOnDestroy() {\n if (this._table) {\n this._table.removeColumnDef(this._columnDef);\n }\n }\n\n private _syncColumnDefName() {\n if (this._columnDef) {\n this._columnDef.name = this._name;\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {CdkRowSelection} from '@angular/cdk-experimental/selection';\nimport {Input, Directive} from '@angular/core';\n\n/**\n * Applies `mat-selected` class and `aria-selected` to an element.\n *\n * Must be used within a parent `MatSelection` directive.\n * Must be provided with the value. The index is required if `trackBy` is used on the `CdkSelection`\n * directive.\n */\n@Directive({\n selector: '[matRowSelection]',\n host: {\n '[class.mat-selected]': '_selection.isSelected(this.value, this.index)',\n '[attr.aria-selected]': '_selection.isSelected(this.value, this.index)',\n },\n providers: [{provide: CdkRowSelection, useExisting: MatRowSelection}],\n inputs: ['index: matRowSelectionIndex'],\n})\nexport class MatRowSelection<T> extends CdkRowSelection<T> {\n /** The value that is associated with the row */\n @Input('matRowSelectionValue') override value: T;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n// TODO(yifange): Move the table-specific code to a separate module from the other selection\n// behaviors once we move it out of experimental.\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {MatTableModule} from '@angular/material/table';\nimport {MatCheckboxModule} from '@angular/material/checkbox';\nimport {MatSelectAll} from './select-all';\nimport {MatSelection} from './selection';\nimport {MatSelectionToggle} from './selection-toggle';\nimport {MatSelectionColumn} from './selection-column';\nimport {MatRowSelection} from './row-selection';\n\n@NgModule({\n imports: [CommonModule, MatTableModule, MatCheckboxModule],\n exports: [MatSelectAll, MatSelection, MatSelectionToggle, MatSelectionColumn, MatRowSelection],\n declarations: [\n MatSelectAll,\n MatSelection,\n MatSelectionToggle,\n MatSelectionColumn,\n MatRowSelection,\n ],\n})\nexport class MatSelectionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i4.MatSelectAll","i5.MatSelectionToggle"],"mappings":";;;;;;;;;;;AAYA;;;;;AAKG;AAMH;AACM,MAAO,YAAgB,SAAQ,YAAe,CAAA;AANpD,IAAA,WAAA,GAAA;;;AAiBkD,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAsB,CAAC;AACjG,KAAA;;AAVC,IAAA,IACa,QAAQ,GAAA;QACnB,OAAO,IAAI,CAAC,SAAS,CAAC;KACvB;IACD,IAAa,QAAQ,CAAC,QAAiB,EAAA;AACrC,QAAA,IAAI,CAAC,SAAS,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC;KAClD;8GARU,YAAY,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAZ,YAAY,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,CAAA,sBAAA,EAAA,UAAA,CAAA,EAAA,EAAA,OAAA,EAAA,EAAA,MAAA,EAAA,oBAAA,EAAA,EAAA,SAAA,EAHZ,CAAC,EAAC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAC,CAAC,EAAA,Q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O,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,iBAAiB,CAAC;oBAC1D,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,CAAC;AAC9F,oBAAA,YAAY,EAAE;wBACZ,YAAY;wBACZ,YAAY;wBACZ,kBAAkB;wBAClB,kBAAkB;wBAClB,eAAe;AAChB,qBAAA;AACF,iBAAA,CAAA;;;AC9BD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/material-experimental",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0-next.0",
|
|
4
4
|
"description": "Experimental components for Angular Material",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@angular/animations": "^
|
|
52
|
-
"@angular/cdk": "
|
|
53
|
-
"@angular/core": "^
|
|
54
|
-
"@angular/common": "^
|
|
55
|
-
"@angular/forms": "^
|
|
56
|
-
"@angular/platform-browser": "^
|
|
57
|
-
"@angular/material": "
|
|
51
|
+
"@angular/animations": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
|
|
52
|
+
"@angular/cdk": "17.0.0-next.0",
|
|
53
|
+
"@angular/core": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
|
|
54
|
+
"@angular/common": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
|
|
55
|
+
"@angular/forms": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
|
|
56
|
+
"@angular/platform-browser": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
|
|
57
|
+
"@angular/material": "17.0.0-next.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"tslib": "^2.3.0",
|
package/selection/index.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ import { CdkSelectionToggle } from '@angular/cdk-experimental/selection';
|
|
|
5
5
|
import { EventEmitter } from '@angular/core';
|
|
6
6
|
import * as i0 from '@angular/core';
|
|
7
7
|
import * as i6 from '@angular/common';
|
|
8
|
-
import * as i7 from '@angular/material/
|
|
8
|
+
import * as i7 from '@angular/material/table';
|
|
9
9
|
import * as i8 from '@angular/material/checkbox';
|
|
10
|
-
import {
|
|
10
|
+
import { MatTable } from '@angular/material/table';
|
|
11
11
|
import { OnDestroy } from '@angular/core';
|
|
12
12
|
import { OnInit } from '@angular/core';
|
|
13
13
|
import { SelectionChange } from '@angular/cdk-experimental/selection';
|
|
@@ -104,7 +104,7 @@ export declare class MatSelectionColumn<T> implements OnInit, OnDestroy {
|
|
|
104
104
|
private readonly _columnDef;
|
|
105
105
|
private readonly _cell;
|
|
106
106
|
private readonly _headerCell;
|
|
107
|
-
constructor(_table:
|
|
107
|
+
constructor(_table: MatTable<T>, selection: MatSelection<T>);
|
|
108
108
|
ngOnInit(): void;
|
|
109
109
|
ngOnDestroy(): void;
|
|
110
110
|
private _syncColumnDefName;
|
|
@@ -114,7 +114,7 @@ export declare class MatSelectionColumn<T> implements OnInit, OnDestroy {
|
|
|
114
114
|
|
|
115
115
|
export declare class MatSelectionModule {
|
|
116
116
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSelectionModule, never>;
|
|
117
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSelectionModule, [typeof i1.MatSelectAll, typeof i2.MatSelection, typeof i3.MatSelectionToggle, typeof i4.MatSelectionColumn, typeof i5.MatRowSelection], [typeof i6.CommonModule, typeof i7.
|
|
117
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSelectionModule, [typeof i1.MatSelectAll, typeof i2.MatSelection, typeof i3.MatSelectionToggle, typeof i4.MatSelectionColumn, typeof i5.MatRowSelection], [typeof i6.CommonModule, typeof i7.MatTableModule, typeof i8.MatCheckboxModule], [typeof i1.MatSelectAll, typeof i2.MatSelection, typeof i3.MatSelectionToggle, typeof i4.MatSelectionColumn, typeof i5.MatRowSelection]>;
|
|
118
118
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatSelectionModule>;
|
|
119
119
|
}
|
|
120
120
|
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
@use 'sass:list';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use 'sass:meta';
|
|
4
|
+
@use 'sass:string';
|
|
5
|
+
@use '@angular/material' as mat;
|
|
6
|
+
@use './m3-palettes';
|
|
7
|
+
|
|
8
|
+
/// Creates an error message by finding `$config` in the existing message and appending a suffix to
|
|
9
|
+
/// it.
|
|
10
|
+
/// @param {List|String} $err The error message.
|
|
11
|
+
/// @param {String} $suffix The suffix to add.
|
|
12
|
+
/// @return {List|String} The updated error message.
|
|
13
|
+
@function _create-dollar-config-error-message($err, $suffix) {
|
|
14
|
+
@if meta.type-of($err) == 'list' {
|
|
15
|
+
@for $i from 1 through list.length($err) {
|
|
16
|
+
$err: list.set-nth($err, $i,
|
|
17
|
+
_create-dollar-config-error-message(list.nth($err, $i), $suffix));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
@else if meta.type-of($err) == 'string' {
|
|
21
|
+
$start: string.index($err, '$config');
|
|
22
|
+
@if $start {
|
|
23
|
+
$err: string.insert($err, $suffix, $start + 7);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
@return $err;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/// Validates that the given object is an M3 palette.
|
|
30
|
+
/// @param {*} $palette The object to test
|
|
31
|
+
/// @return {Boolean|null} null if it is a valid M3 palette, else true.
|
|
32
|
+
@function _validate-palette($palette) {
|
|
33
|
+
@if not meta.type-of($palette) == 'map' {
|
|
34
|
+
@return true;
|
|
35
|
+
}
|
|
36
|
+
$keys: map.keys($palette);
|
|
37
|
+
$expected-keys: map.keys(m3-palettes.$red-palette);
|
|
38
|
+
@if mat.private-validate-allowed-values($keys, $expected-keys...) or
|
|
39
|
+
mat.private-validate-required-values($keys, $expected-keys...) {
|
|
40
|
+
@return true;
|
|
41
|
+
}
|
|
42
|
+
$nv-keys: map.keys(map.get($palette, neutral-variant));
|
|
43
|
+
$expected-nv-keys: map.keys(map.get(m3-palettes.$red-palette, neutral-variant));
|
|
44
|
+
@if mat.private-validate-allowed-values($nv-keys, $expected-nv-keys...) or
|
|
45
|
+
mat.private-validate-required-values($nv-keys, $expected-nv-keys...) {
|
|
46
|
+
@return true;
|
|
47
|
+
}
|
|
48
|
+
@return null;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/// Validates a theme config.
|
|
52
|
+
/// @param {Map} $config The config to test.
|
|
53
|
+
/// @return {List} null if no error, else the error message
|
|
54
|
+
@function validate-theme-config($config) {
|
|
55
|
+
$err: mat.private-validate-type($config, 'map', 'null');
|
|
56
|
+
@if $err {
|
|
57
|
+
@return (#{'$config should be a configuration object. Got:'} $config);
|
|
58
|
+
}
|
|
59
|
+
$allowed: (color, typography, density);
|
|
60
|
+
$err: mat.private-validate-allowed-values(map.keys($config or ()), $allowed...);
|
|
61
|
+
@if $err {
|
|
62
|
+
@return (
|
|
63
|
+
#{'$config has unexpected properties. Valid properties are'}
|
|
64
|
+
#{'#{$allowed}.'}
|
|
65
|
+
#{'Found:'}
|
|
66
|
+
$err
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
$err: validate-color-config(map.get($config, color));
|
|
70
|
+
@if $err {
|
|
71
|
+
@return _create-dollar-config-error-message($err, '.color');
|
|
72
|
+
}
|
|
73
|
+
$err: validate-typography-config(map.get($config, typography));
|
|
74
|
+
@if $err {
|
|
75
|
+
@return _create-dollar-config-error-message($err, '.typography');
|
|
76
|
+
}
|
|
77
|
+
$err: validate-density-config(map.get($config, density));
|
|
78
|
+
@if $err {
|
|
79
|
+
@return _create-dollar-config-error-message($err, '.density');
|
|
80
|
+
}
|
|
81
|
+
@return null;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/// Validates a theme color config.
|
|
85
|
+
/// @param {Map} $config The config to test.
|
|
86
|
+
/// @return {List} null if no error, else the error message
|
|
87
|
+
@function validate-color-config($config) {
|
|
88
|
+
$err: mat.private-validate-type($config, 'map', 'null');
|
|
89
|
+
@if $err {
|
|
90
|
+
@return (#{'$config should be a color configuration object. Got:'} $config);
|
|
91
|
+
}
|
|
92
|
+
$allowed: (theme-type, primary, secondary, tertiary);
|
|
93
|
+
$err: mat.private-validate-allowed-values(map.keys($config or ()), $allowed...);
|
|
94
|
+
@if $err {
|
|
95
|
+
@return (
|
|
96
|
+
#{'$config has unexpected properties. Valid properties are'}
|
|
97
|
+
#{'#{$allowed}.'}
|
|
98
|
+
#{'Found:'}
|
|
99
|
+
$err
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
@if $config and map.has-key($config, theme-type) and
|
|
103
|
+
not list.index((light, dark), map.get($config, theme-type)) {
|
|
104
|
+
@return (
|
|
105
|
+
#{'Expected $config.theme-type to be one of: light, dark. Got:'}
|
|
106
|
+
map.get($config, theme-type)
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
@each $palette in (primary, secondary, tertiary) {
|
|
110
|
+
@if $config and map.has-key($config, $palette) {
|
|
111
|
+
$err: _validate-palette(map.get($config, $palette));
|
|
112
|
+
@if $err {
|
|
113
|
+
@return (
|
|
114
|
+
#{'Expected $config.#{$palette} to be a valid M3 palette. Got:'}
|
|
115
|
+
map.get($config, $palette)
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
@return null;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/// Validates a theme typography config.
|
|
124
|
+
/// @param {Map} $config The config to test.
|
|
125
|
+
/// @return {List} null if no error, else the error message
|
|
126
|
+
@function validate-typography-config($config) {
|
|
127
|
+
$err: mat.private-validate-type($config, 'map', 'null');
|
|
128
|
+
@if $err {
|
|
129
|
+
@return (#{'$config should be a typography configuration object. Got:'} $config);
|
|
130
|
+
}
|
|
131
|
+
$allowed: (brand-family, plain-family, bold-weight, medium-weight, regular-weight);
|
|
132
|
+
$err: mat.private-validate-allowed-values(map.keys($config or ()), $allowed...);
|
|
133
|
+
@if $err {
|
|
134
|
+
@return (
|
|
135
|
+
#{'$config has unexpected properties. Valid properties are'}
|
|
136
|
+
#{'#{$allowed}.'}
|
|
137
|
+
#{'Found:'}
|
|
138
|
+
$err
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
@return null;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/// Validates a theme density config.
|
|
145
|
+
/// @param {Map} $config The config to test.
|
|
146
|
+
/// @return {List} null if no error, else the error message
|
|
147
|
+
@function validate-density-config($config) {
|
|
148
|
+
$err: mat.private-validate-type($config, 'map', 'null');
|
|
149
|
+
@if $err {
|
|
150
|
+
@return (#{'$config should be a density configuration object. Got:'} $config);
|
|
151
|
+
}
|
|
152
|
+
$err: mat.private-validate-allowed-values(map.keys($config or ()), scale);
|
|
153
|
+
@if $err {
|
|
154
|
+
@return (#{'$config has unexpected properties. Valid properties are: scale. Found:'} $err);
|
|
155
|
+
}
|
|
156
|
+
@if $config and map.has-key($config, scale) {
|
|
157
|
+
$allowed-scales: (0, -1, -2, -3, -4 -5, minimum, maximum);
|
|
158
|
+
@if mat.private-validate-allowed-values(map.get($config, scale), $allowed-scales...) {
|
|
159
|
+
@return (
|
|
160
|
+
#{'Expected $config.scale to be one of: #{$allowed-scales}. Got:'}
|
|
161
|
+
map.get($config, scale)
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
@return null;
|
|
166
|
+
}
|