@angular/material-experimental 20.0.0-next.0 → 20.0.0-next.10
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/column-resize/index.d.ts +61 -135
- package/fesm2022/column-resize.mjs +42 -48
- package/fesm2022/column-resize.mjs.map +1 -1
- package/fesm2022/material-experimental.mjs +1 -1
- package/fesm2022/material-experimental.mjs.map +1 -1
- package/fesm2022/menubar.mjs +11 -15
- package/fesm2022/menubar.mjs.map +1 -1
- package/fesm2022/popover-edit.mjs +25 -29
- package/fesm2022/popover-edit.mjs.map +1 -1
- package/fesm2022/selection.mjs +22 -25
- package/fesm2022/selection.mjs.map +1 -1
- package/index.d.ts +2 -2
- package/menubar/index.d.ts +7 -20
- package/package.json +9 -3
- package/popover-edit/index.d.ts +27 -55
- package/selection/index.d.ts +43 -81
package/fesm2022/selection.mjs
CHANGED
|
@@ -23,10 +23,10 @@ class MatSelection extends CdkSelection {
|
|
|
23
23
|
}
|
|
24
24
|
/** Emits when selection changes. */
|
|
25
25
|
change = new EventEmitter();
|
|
26
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
27
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatSelection, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
27
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.5", type: MatSelection, isStandalone: true, selector: "[matSelection]", inputs: { multiple: ["matSelectionMultiple", "multiple"] }, outputs: { change: "matSelectionChange" }, providers: [{ provide: CdkSelection, useExisting: MatSelection }], exportAs: ["matSelection"], usesInheritance: true, ngImport: i0 });
|
|
28
28
|
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatSelection, decorators: [{
|
|
30
30
|
type: Directive,
|
|
31
31
|
args: [{
|
|
32
32
|
selector: '[matSelection]',
|
|
@@ -52,10 +52,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
52
52
|
* and `toggle()` to change the selection state.
|
|
53
53
|
*/
|
|
54
54
|
class MatSelectAll extends CdkSelectAll {
|
|
55
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
56
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
55
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatSelectAll, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
56
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.5", type: MatSelectAll, isStandalone: true, selector: "[matSelectAll]", providers: [{ provide: CdkSelectAll, useExisting: MatSelectAll }], exportAs: ["matSelectAll"], usesInheritance: true, ngImport: i0 });
|
|
57
57
|
}
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatSelectAll, decorators: [{
|
|
59
59
|
type: Directive,
|
|
60
60
|
args: [{
|
|
61
61
|
selector: '[matSelectAll]',
|
|
@@ -77,10 +77,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
77
77
|
class MatSelectionToggle extends CdkSelectionToggle {
|
|
78
78
|
/** The value that is associated with the toggle */
|
|
79
79
|
value = undefined;
|
|
80
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
81
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
80
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatSelectionToggle, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
81
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.5", type: MatSelectionToggle, isStandalone: true, selector: "[matSelectionToggle]", inputs: { index: ["matSelectionToggleIndex", "index"], value: ["matSelectionToggleValue", "value"] }, providers: [{ provide: CdkSelectionToggle, useExisting: MatSelectionToggle }], exportAs: ["matSelectionToggle"], usesInheritance: true, ngImport: i0 });
|
|
82
82
|
}
|
|
83
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatSelectionToggle, decorators: [{
|
|
84
84
|
type: Directive,
|
|
85
85
|
args: [{
|
|
86
86
|
selector: '[matSelectionToggle]',
|
|
@@ -138,8 +138,8 @@ class MatSelectionColumn {
|
|
|
138
138
|
this._columnDef.name = this._name;
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
142
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
141
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatSelectionColumn, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
142
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.0-next.5", type: MatSelectionColumn, isStandalone: true, 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: `
|
|
143
143
|
<ng-container matColumnDef>
|
|
144
144
|
<th mat-header-cell *matHeaderCellDef class="mat-selection-column-header">
|
|
145
145
|
@if (selection && selection.multiple) {
|
|
@@ -156,9 +156,9 @@ class MatSelectionColumn {
|
|
|
156
156
|
[matSelectionToggleIndex]="i"></mat-checkbox>
|
|
157
157
|
</td>
|
|
158
158
|
</ng-container>
|
|
159
|
-
`, isInline: true, styles: ["th.mat-selection-column-header,td.mat-selection-column-cell{text-align:center;width:48px}"], dependencies: [{ kind: "directive", type: MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "component", type: MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "directive", type: MatSelectAll, selector: "[matSelectAll]", exportAs: ["matSelectAll"] }, { kind: "directive", type: MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: MatSelectionToggle, selector: "[matSelectionToggle]", inputs: ["matSelectionToggleIndex", "matSelectionToggleValue"], exportAs: ["matSelectionToggle"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
159
|
+
`, isInline: true, styles: ["th.mat-selection-column-header,td.mat-selection-column-cell{text-align:center;width:48px}\n"], dependencies: [{ kind: "directive", type: MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "component", type: MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "directive", type: MatSelectAll, selector: "[matSelectAll]", exportAs: ["matSelectAll"] }, { kind: "directive", type: MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: MatSelectionToggle, selector: "[matSelectionToggle]", inputs: ["matSelectionToggleIndex", "matSelectionToggleValue"], exportAs: ["matSelectionToggle"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
160
160
|
}
|
|
161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatSelectionColumn, decorators: [{
|
|
162
162
|
type: Component,
|
|
163
163
|
args: [{ selector: 'mat-selection-column', template: `
|
|
164
164
|
<ng-container matColumnDef>
|
|
@@ -187,7 +187,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
187
187
|
MatCell,
|
|
188
188
|
MatSelectionToggle,
|
|
189
189
|
AsyncPipe,
|
|
190
|
-
], styles: ["th.mat-selection-column-header,td.mat-selection-column-cell{text-align:center;width:48px}"] }]
|
|
190
|
+
], styles: ["th.mat-selection-column-header,td.mat-selection-column-cell{text-align:center;width:48px}\n"] }]
|
|
191
191
|
}], propDecorators: { name: [{
|
|
192
192
|
type: Input
|
|
193
193
|
}], _columnDef: [{
|
|
@@ -211,10 +211,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
211
211
|
class MatRowSelection extends CdkRowSelection {
|
|
212
212
|
/** The value that is associated with the row */
|
|
213
213
|
value = undefined;
|
|
214
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
215
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
214
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatRowSelection, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
215
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.5", type: MatRowSelection, isStandalone: true, selector: "[matRowSelection]", inputs: { index: ["matRowSelectionIndex", "index"], value: ["matRowSelectionValue", "value"] }, host: { properties: { "class.mat-selected": "_selection.isSelected(this.value, this.index)", "attr.aria-selected": "_selection.isSelected(this.value, this.index)" } }, providers: [{ provide: CdkRowSelection, useExisting: MatRowSelection }], usesInheritance: true, ngImport: i0 });
|
|
216
216
|
}
|
|
217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
217
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatRowSelection, decorators: [{
|
|
218
218
|
type: Directive,
|
|
219
219
|
args: [{
|
|
220
220
|
selector: '[matRowSelection]',
|
|
@@ -231,20 +231,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
231
231
|
}] } });
|
|
232
232
|
|
|
233
233
|
// TODO(yifange): Move the table-specific code to a separate module from the other selection
|
|
234
|
+
// behaviors once we move it out of experimental.
|
|
234
235
|
class MatSelectionModule {
|
|
235
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
236
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
236
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatSelectionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
237
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatSelectionModule, imports: [MatTableModule,
|
|
237
238
|
MatCheckboxModule,
|
|
238
239
|
MatSelectAll,
|
|
239
240
|
MatSelection,
|
|
240
241
|
MatSelectionToggle,
|
|
241
242
|
MatSelectionColumn,
|
|
242
243
|
MatRowSelection], exports: [MatSelectAll, MatSelection, MatSelectionToggle, MatSelectionColumn, MatRowSelection] });
|
|
243
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
244
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatSelectionModule, imports: [MatTableModule,
|
|
244
245
|
MatCheckboxModule,
|
|
245
246
|
MatSelectionColumn] });
|
|
246
247
|
}
|
|
247
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatSelectionModule, decorators: [{
|
|
248
249
|
type: NgModule,
|
|
249
250
|
args: [{
|
|
250
251
|
imports: [
|
|
@@ -260,9 +261,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
260
261
|
}]
|
|
261
262
|
}] });
|
|
262
263
|
|
|
263
|
-
/**
|
|
264
|
-
* Generated bundle index. Do not edit.
|
|
265
|
-
*/
|
|
266
|
-
|
|
267
264
|
export { MatRowSelection, MatSelectAll, MatSelection, MatSelectionColumn, MatSelectionModule, MatSelectionToggle };
|
|
268
265
|
//# sourceMappingURL=selection.mjs.map
|
|
@@ -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.dev/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.dev/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.dev/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: [{name: 'index', alias: '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.dev/license\n */\n\nimport {\n MatCell,\n MatCellDef,\n MatColumnDef,\n MatHeaderCell,\n MatHeaderCellDef,\n MatTable,\n} from '@angular/material/table';\nimport {\n Component,\n Input,\n OnDestroy,\n OnInit,\n ViewChild,\n ChangeDetectionStrategy,\n ViewEncapsulation,\n inject,\n} from '@angular/core';\nimport {AsyncPipe} from '@angular/common';\n\nimport {MatSelection} from './selection';\nimport {MatCheckbox} from '@angular/material/checkbox';\nimport {MatSelectionToggle} from './selection-toggle';\nimport {MatSelectAll} from './select-all';\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 @if (selection && selection.multiple) {\n <mat-checkbox\n matSelectAll\n #allToggler=\"matSelectAll\"\n [indeterminate]=\"allToggler.indeterminate | async\"></mat-checkbox>\n }\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 styleUrl: 'selection-column.css',\n encapsulation: ViewEncapsulation.None,\n imports: [\n MatColumnDef,\n MatHeaderCellDef,\n MatHeaderCell,\n MatCheckbox,\n MatSelectAll,\n MatCellDef,\n MatCell,\n MatSelectionToggle,\n AsyncPipe,\n ],\n})\nexport class MatSelectionColumn<T> implements OnInit, OnDestroy {\n private _table = inject<MatTable<T>>(MatTable, {optional: true});\n readonly selection = inject<MatSelection<T>>(MatSelection, {optional: true});\n\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 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.dev/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: [{name: 'index', alias: 'matRowSelectionIndex'}],\n})\nexport class MatRowSelection<T> extends CdkRowSelection<T> {\n /** The value that is associated with the row */\n @Input('matRowSelectionValue') 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.dev/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 {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: [\n MatTableModule,\n MatCheckboxModule,\n MatSelectAll,\n MatSelection,\n MatSelectionToggle,\n MatSelectionColumn,\n MatRowSelection,\n ],\n exports: [MatSelectAll, MatSelection, MatSelectionToggle, MatSelectionColumn, MatRowSelection],\n})\nexport class MatSelectionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAYA;;;;;AAKG;AAMH;AACM,MAAO,YAAgB,SAAQ,YAAe,CAAA;;AAElD,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;;AAG+C,IAAA,MAAM,GAAG,IAAI,YAAY,EAAsB,CAAC;uGAXrF,YAAY,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;2FAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,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,QAAA,EAAA,CAAA,cAAA,CAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAGpD,YAAY,EAAA,UAAA,EAAA,CAAA;kBANxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gB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EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAV3B,cAAc;YACd,iBAAiB;YACjB,YAAY;YACZ,YAAY;YACZ,kBAAkB;YAClB,kBAAkB;YAClB,eAAe,CAAA,EAAA,OAAA,EAAA,CAEP,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA;AAElF,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAV3B,cAAc;YACd,iBAAiB;YAIjB,kBAAkB,CAAA,EAAA,CAAA,CAAA;;2FAKT,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAZ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,cAAc;wBACd,iBAAiB;wBACjB,YAAY;wBACZ,YAAY;wBACZ,kBAAkB;wBAClB,kBAAkB;wBAClB,eAAe;AAChB,qBAAA;oBACD,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,CAAC;AAC/F,iBAAA,CAAA;;;AC9BD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"selection.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/material-experimental/selection/selection.ts","../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/material-experimental/selection/select-all.ts","../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/material-experimental/selection/selection-toggle.ts","../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/material-experimental/selection/selection-column.ts","../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/material-experimental/selection/row-selection.ts","../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/material-experimental/selection/selection-module.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.dev/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.dev/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.dev/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: [{name: 'index', alias: '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.dev/license\n */\n\nimport {\n MatCell,\n MatCellDef,\n MatColumnDef,\n MatHeaderCell,\n MatHeaderCellDef,\n MatTable,\n} from '@angular/material/table';\nimport {\n Component,\n Input,\n OnDestroy,\n OnInit,\n ViewChild,\n ChangeDetectionStrategy,\n ViewEncapsulation,\n inject,\n} from '@angular/core';\nimport {AsyncPipe} from '@angular/common';\n\nimport {MatSelection} from './selection';\nimport {MatCheckbox} from '@angular/material/checkbox';\nimport {MatSelectionToggle} from './selection-toggle';\nimport {MatSelectAll} from './select-all';\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 @if (selection && selection.multiple) {\n <mat-checkbox\n matSelectAll\n #allToggler=\"matSelectAll\"\n [indeterminate]=\"allToggler.indeterminate | async\"></mat-checkbox>\n }\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 styleUrl: 'selection-column.css',\n encapsulation: ViewEncapsulation.None,\n imports: [\n MatColumnDef,\n MatHeaderCellDef,\n MatHeaderCell,\n MatCheckbox,\n MatSelectAll,\n MatCellDef,\n MatCell,\n MatSelectionToggle,\n AsyncPipe,\n ],\n})\nexport class MatSelectionColumn<T> implements OnInit, OnDestroy {\n private _table = inject<MatTable<T>>(MatTable, {optional: true});\n readonly selection = inject<MatSelection<T>>(MatSelection, {optional: true});\n\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 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.dev/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: [{name: 'index', alias: 'matRowSelectionIndex'}],\n})\nexport class MatRowSelection<T> extends CdkRowSelection<T> {\n /** The value that is associated with the row */\n @Input('matRowSelectionValue') 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.dev/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 {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: [\n MatTableModule,\n MatCheckboxModule,\n MatSelectAll,\n MatSelection,\n MatSelectionToggle,\n MatSelectionColumn,\n MatRowSelection,\n ],\n exports: [MatSelectAll, MatSelection, MatSelectionToggle, MatSelectionColumn, MatRowSelection],\n})\nexport class MatSelectionModule {}\n"],"names":[],"mappings":";;;;;;;;AAYA;;;;;AAKG;AAM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;wBAClB,eAAe;AAChB,qBAAA;oBACD,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,CAAC;AAC/F,iBAAA;;;;;"}
|
package/index.d.ts
CHANGED
package/menubar/index.d.ts
CHANGED
|
@@ -1,25 +1,12 @@
|
|
|
1
|
-
import { CdkMenuBar } from '@angular/cdk/menu';
|
|
2
|
-
import { CdkMenuItem } from '@angular/cdk/menu';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
1
|
import * as i1 from '@angular/cdk/menu';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
MatMenuBar
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
declare namespace i3 {
|
|
13
|
-
export {
|
|
14
|
-
MatMenuBarItem
|
|
15
|
-
}
|
|
16
|
-
}
|
|
2
|
+
import { CdkMenuBar, CdkMenuItem } from '@angular/cdk/menu';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
17
4
|
|
|
18
5
|
/**
|
|
19
6
|
* A material design Menubar adhering to the functionality of CdkMenuBar. MatMenubar
|
|
20
7
|
* should contain MatMenubarItems which trigger their own sub-menus.
|
|
21
8
|
*/
|
|
22
|
-
|
|
9
|
+
declare class MatMenuBar extends CdkMenuBar {
|
|
23
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatMenuBar, never>;
|
|
24
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatMenuBar, "mat-menubar", ["matMenubar"], {}, {}, never, ["*"], true, never>;
|
|
25
12
|
}
|
|
@@ -29,16 +16,16 @@ export declare class MatMenuBar extends CdkMenuBar {
|
|
|
29
16
|
* CdkMenuItemTrigger. Its main purpose is to trigger menus and it lives inside of
|
|
30
17
|
* MatMenubar.
|
|
31
18
|
*/
|
|
32
|
-
|
|
19
|
+
declare class MatMenuBarItem extends CdkMenuItem {
|
|
33
20
|
getLabel(): string;
|
|
34
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatMenuBarItem, never>;
|
|
35
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatMenuBarItem, "mat-menubar-item", ["matMenubarItem"], {}, {}, never, ["*"], true, never>;
|
|
36
23
|
}
|
|
37
24
|
|
|
38
|
-
|
|
25
|
+
declare class MatMenuBarModule {
|
|
39
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatMenuBarModule, never>;
|
|
40
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatMenuBarModule, never, [typeof i1.CdkMenuModule, typeof
|
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatMenuBarModule, never, [typeof i1.CdkMenuModule, typeof MatMenuBar, typeof MatMenuBarItem], [typeof MatMenuBar, typeof MatMenuBarItem]>;
|
|
41
28
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatMenuBarModule>;
|
|
42
29
|
}
|
|
43
30
|
|
|
44
|
-
export { }
|
|
31
|
+
export { MatMenuBar, MatMenuBarItem, MatMenuBarModule };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/material-experimental",
|
|
3
|
-
"version": "20.0.0-next.
|
|
3
|
+
"version": "20.0.0-next.10",
|
|
4
4
|
"description": "Experimental components for Angular Material",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,12 +38,18 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@angular/cdk": "20.0.0-next.
|
|
41
|
+
"@angular/cdk": "20.0.0-next.10",
|
|
42
42
|
"@angular/core": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",
|
|
43
43
|
"@angular/common": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",
|
|
44
44
|
"@angular/forms": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",
|
|
45
45
|
"@angular/platform-browser": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",
|
|
46
|
-
"@angular/material": "20.0.0-next.
|
|
46
|
+
"@angular/material": "20.0.0-next.10",
|
|
47
|
+
"@angular/cdk-experimental": "20.0.0-next.10"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@angular/material": "workspace:*",
|
|
51
|
+
"@angular/cdk": "workspace:*",
|
|
52
|
+
"@angular/cdk-experimental": "workspace:*"
|
|
47
53
|
},
|
|
48
54
|
"dependencies": {
|
|
49
55
|
"tslib": "^2.3.0"
|
package/popover-edit/index.d.ts
CHANGED
|
@@ -1,101 +1,73 @@
|
|
|
1
|
-
import { CdkEditClose } from '@angular/cdk-experimental/popover-edit';
|
|
2
|
-
import { CdkEditControl } from '@angular/cdk-experimental/popover-edit';
|
|
3
|
-
import { CdkEditOpen } from '@angular/cdk-experimental/popover-edit';
|
|
4
|
-
import { CdkEditRevert } from '@angular/cdk-experimental/popover-edit';
|
|
5
|
-
import { CdkPopoverEdit } from '@angular/cdk-experimental/popover-edit';
|
|
6
|
-
import { CdkPopoverEditTabOut } from '@angular/cdk-experimental/popover-edit';
|
|
7
|
-
import { CdkRowHoverContent } from '@angular/cdk-experimental/popover-edit';
|
|
8
|
-
import * as i0 from '@angular/core';
|
|
9
1
|
import * as i1 from '@angular/cdk-experimental/popover-edit';
|
|
2
|
+
import { CdkEditControl, CdkEditRevert, CdkEditClose, CdkPopoverEdit, CdkPopoverEditTabOut, CdkRowHoverContent, CdkEditOpen } from '@angular/cdk-experimental/popover-edit';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
10
4
|
import * as i2 from '@angular/material/core';
|
|
11
5
|
|
|
12
|
-
declare namespace i3 {
|
|
13
|
-
export {
|
|
14
|
-
MatPopoverEdit,
|
|
15
|
-
MatPopoverEditTabOut,
|
|
16
|
-
MatRowHoverContent,
|
|
17
|
-
MatEditOpen
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare namespace i4 {
|
|
22
|
-
export {
|
|
23
|
-
MatEditLens,
|
|
24
|
-
MatEditRevert,
|
|
25
|
-
MatEditClose
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/** Closes the lens on click. */
|
|
30
|
-
export declare class MatEditClose<FormValue> extends CdkEditClose<FormValue> {
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatEditClose<any>, never>;
|
|
32
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatEditClose<any>, "[matEditClose]", never, {}, {}, never, never, true, never>;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
6
|
/**
|
|
36
7
|
* A component that attaches to a form within the edit.
|
|
37
8
|
* It coordinates the form state with the table-wide edit system and handles
|
|
38
9
|
* closing the edit when the form is submitted or the user clicks
|
|
39
10
|
* out.
|
|
40
11
|
*/
|
|
41
|
-
|
|
12
|
+
declare class MatEditLens<FormValue> extends CdkEditControl<FormValue> {
|
|
42
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatEditLens<any>, never>;
|
|
43
14
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatEditLens<any>, "form[matEditLens]", never, { "clickOutBehavior": { "alias": "matEditLensClickOutBehavior"; "required": false; }; "preservedFormValue": { "alias": "matEditLensPreservedFormValue"; "required": false; }; "ignoreSubmitUnlessValid": { "alias": "matEditLensIgnoreSubmitUnlessValid"; "required": false; }; }, { "preservedFormValueChange": "matEditLensPreservedFormValueChange"; }, never, never, true, never>;
|
|
44
15
|
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Opens the closest edit popover to this element, whether it's associated with this exact
|
|
48
|
-
* element or an ancestor element.
|
|
49
|
-
*/
|
|
50
|
-
export declare class MatEditOpen extends CdkEditOpen {
|
|
51
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatEditOpen, never>;
|
|
52
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatEditOpen, "[matEditOpen]", never, {}, {}, never, never, true, never>;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
16
|
/** Reverts the form to its initial or previously submitted state on click. */
|
|
56
|
-
|
|
17
|
+
declare class MatEditRevert<FormValue> extends CdkEditRevert<FormValue> {
|
|
57
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatEditRevert<any>, never>;
|
|
58
19
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatEditRevert<any>, "button[matEditRevert]", never, {}, {}, never, never, true, never>;
|
|
59
20
|
}
|
|
21
|
+
/** Closes the lens on click. */
|
|
22
|
+
declare class MatEditClose<FormValue> extends CdkEditClose<FormValue> {
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatEditClose<any>, never>;
|
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatEditClose<any>, "[matEditClose]", never, {}, {}, never, never, true, never>;
|
|
25
|
+
}
|
|
60
26
|
|
|
61
27
|
/**
|
|
62
28
|
* Attaches an ng-template to a cell and shows it when instructed to by the
|
|
63
29
|
* EditEventDispatcher service.
|
|
64
30
|
* Makes the cell focusable.
|
|
65
31
|
*/
|
|
66
|
-
|
|
32
|
+
declare class MatPopoverEdit<C> extends CdkPopoverEdit<C> {
|
|
67
33
|
protected panelClass(): string;
|
|
68
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatPopoverEdit<any>, never>;
|
|
69
35
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatPopoverEdit<any>, "[matPopoverEdit]:not([matPopoverEditTabOut])", never, { "template": { "alias": "matPopoverEdit"; "required": false; }; "context": { "alias": "matPopoverEditContext"; "required": false; }; "colspan": { "alias": "matPopoverEditColspan"; "required": false; }; "disabled": { "alias": "matPopoverEditDisabled"; "required": false; }; "ariaLabel": { "alias": "matPopoverEditAriaLabel"; "required": false; }; }, {}, never, never, true, never>;
|
|
70
36
|
}
|
|
71
|
-
|
|
72
|
-
export declare class MatPopoverEditModule {
|
|
73
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatPopoverEditModule, never>;
|
|
74
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatPopoverEditModule, never, [typeof i1.CdkPopoverEditModule, typeof i2.MatCommonModule, typeof i3.MatPopoverEdit, typeof i3.MatPopoverEditTabOut, typeof i3.MatRowHoverContent, typeof i4.MatEditLens, typeof i4.MatEditRevert, typeof i4.MatEditClose, typeof i3.MatEditOpen], [typeof i3.MatPopoverEdit, typeof i3.MatPopoverEditTabOut, typeof i3.MatRowHoverContent, typeof i4.MatEditLens, typeof i4.MatEditRevert, typeof i4.MatEditClose, typeof i3.MatEditOpen, typeof i1.CdkEditable]>;
|
|
75
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MatPopoverEditModule>;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
37
|
/**
|
|
79
38
|
* Attaches an ng-template to a cell and shows it when instructed to by the
|
|
80
39
|
* EditEventDispatcher service.
|
|
81
40
|
* Makes the cell focusable.
|
|
82
41
|
*/
|
|
83
|
-
|
|
42
|
+
declare class MatPopoverEditTabOut<C> extends CdkPopoverEditTabOut<C> {
|
|
84
43
|
protected panelClass(): string;
|
|
85
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatPopoverEditTabOut<any>, never>;
|
|
86
45
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatPopoverEditTabOut<any>, "[matPopoverEdit][matPopoverEditTabOut]", never, { "template": { "alias": "matPopoverEdit"; "required": false; }; "context": { "alias": "matPopoverEditContext"; "required": false; }; "colspan": { "alias": "matPopoverEditColspan"; "required": false; }; "disabled": { "alias": "matPopoverEditDisabled"; "required": false; }; "ariaLabel": { "alias": "matPopoverEditAriaLabel"; "required": false; }; }, {}, never, never, true, never>;
|
|
87
46
|
}
|
|
88
|
-
|
|
89
47
|
/**
|
|
90
48
|
* A structural directive that shows its contents when the table row containing
|
|
91
49
|
* it is hovered or when an element in the row has focus.
|
|
92
50
|
*/
|
|
93
|
-
|
|
51
|
+
declare class MatRowHoverContent extends CdkRowHoverContent {
|
|
94
52
|
protected initElement(element: HTMLElement): void;
|
|
95
53
|
protected makeElementHiddenButFocusable(element: HTMLElement): void;
|
|
96
54
|
protected makeElementVisible(element: HTMLElement): void;
|
|
97
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatRowHoverContent, never>;
|
|
98
56
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatRowHoverContent, "[matRowHoverContent]", never, {}, {}, never, never, true, never>;
|
|
99
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Opens the closest edit popover to this element, whether it's associated with this exact
|
|
60
|
+
* element or an ancestor element.
|
|
61
|
+
*/
|
|
62
|
+
declare class MatEditOpen extends CdkEditOpen {
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatEditOpen, never>;
|
|
64
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatEditOpen, "[matEditOpen]", never, {}, {}, never, never, true, never>;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
declare class MatPopoverEditModule {
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatPopoverEditModule, never>;
|
|
69
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatPopoverEditModule, never, [typeof i1.CdkPopoverEditModule, typeof i2.MatCommonModule, typeof MatPopoverEdit, typeof MatPopoverEditTabOut, typeof MatRowHoverContent, typeof MatEditLens, typeof MatEditRevert, typeof MatEditClose, typeof MatEditOpen], [typeof MatPopoverEdit, typeof MatPopoverEditTabOut, typeof MatRowHoverContent, typeof MatEditLens, typeof MatEditRevert, typeof MatEditClose, typeof MatEditOpen, typeof i1.CdkEditable]>;
|
|
70
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatPopoverEditModule>;
|
|
71
|
+
}
|
|
100
72
|
|
|
101
|
-
export { }
|
|
73
|
+
export { MatEditClose, MatEditLens, MatEditOpen, MatEditRevert, MatPopoverEdit, MatPopoverEditModule, MatPopoverEditTabOut, MatRowHoverContent };
|
package/selection/index.d.ts
CHANGED
|
@@ -1,58 +1,24 @@
|
|
|
1
|
-
import { CdkRowSelection } from '@angular/cdk-experimental/selection';
|
|
2
|
-
|
|
3
|
-
import { CdkSelection } from '@angular/cdk-experimental/selection';
|
|
4
|
-
import { CdkSelectionToggle } from '@angular/cdk-experimental/selection';
|
|
5
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { CdkSelection, SelectionChange, CdkSelectAll, CdkSelectionToggle, CdkRowSelection } from '@angular/cdk-experimental/selection';
|
|
2
|
+
export { SelectionChange } from '@angular/cdk-experimental/selection';
|
|
6
3
|
import * as i0 from '@angular/core';
|
|
4
|
+
import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
|
|
7
5
|
import * as i1 from '@angular/material/table';
|
|
8
6
|
import * as i2 from '@angular/material/checkbox';
|
|
9
|
-
import { OnDestroy } from '@angular/core';
|
|
10
|
-
import { OnInit } from '@angular/core';
|
|
11
|
-
import { SelectionChange } from '@angular/cdk-experimental/selection';
|
|
12
|
-
|
|
13
|
-
declare namespace i3 {
|
|
14
|
-
export {
|
|
15
|
-
MatSelectAll
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
declare namespace i4 {
|
|
20
|
-
export {
|
|
21
|
-
MatSelection,
|
|
22
|
-
SelectionChange
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
declare namespace i5 {
|
|
27
|
-
export {
|
|
28
|
-
MatSelectionToggle
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
declare namespace i6 {
|
|
33
|
-
export {
|
|
34
|
-
MatSelectionColumn
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
declare namespace i7 {
|
|
39
|
-
export {
|
|
40
|
-
MatRowSelection
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
7
|
|
|
44
8
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* directive.
|
|
9
|
+
* Manages the selection states of the items and provides methods to check and update the selection
|
|
10
|
+
* states.
|
|
11
|
+
* It must be applied to the parent element if `matSelectionToggle`, `matSelectAll`,
|
|
12
|
+
* `matRowSelection` and `matSelectionColumn` are applied.
|
|
50
13
|
*/
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
14
|
+
declare class MatSelection<T> extends CdkSelection<T> {
|
|
15
|
+
/** Whether to support multiple selection */
|
|
16
|
+
get multiple(): boolean;
|
|
17
|
+
set multiple(multiple: boolean);
|
|
18
|
+
/** Emits when selection changes. */
|
|
19
|
+
readonly change: EventEmitter<SelectionChange<T>>;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatSelection<any>, never>;
|
|
21
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSelection<any>, "[matSelection]", ["matSelection"], { "multiple": { "alias": "matSelectionMultiple"; "required": false; }; }, { "change": "matSelectionChange"; }, never, never, true, never>;
|
|
56
22
|
}
|
|
57
23
|
|
|
58
24
|
/**
|
|
@@ -65,25 +31,26 @@ export declare class MatRowSelection<T> extends CdkRowSelection<T> {
|
|
|
65
31
|
* not, use `checked` to get the checked state, `indeterminate` to get the indeterminate state,
|
|
66
32
|
* and `toggle()` to change the selection state.
|
|
67
33
|
*/
|
|
68
|
-
|
|
34
|
+
declare class MatSelectAll<T> extends CdkSelectAll<T> {
|
|
69
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSelectAll<any>, never>;
|
|
70
36
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSelectAll<any>, "[matSelectAll]", ["matSelectAll"], {}, {}, never, never, true, never>;
|
|
71
37
|
}
|
|
72
38
|
|
|
73
39
|
/**
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
* `
|
|
40
|
+
* Makes the element a selection toggle.
|
|
41
|
+
*
|
|
42
|
+
* Must be used within a parent `MatSelection` directive.
|
|
43
|
+
* Must be provided with the value. If `trackBy` is used on `MatSelection`, the index of the value
|
|
44
|
+
* is required. If the element implements `ControlValueAccessor`, e.g. `MatCheckbox`, the directive
|
|
45
|
+
* automatically connects it with the selection state provided by the `MatSelection` directive. If
|
|
46
|
+
* not, use `checked$` to get the checked state of the value, and `toggle()` to change the selection
|
|
47
|
+
* state.
|
|
78
48
|
*/
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
readonly change: EventEmitter<SelectionChange<T>>;
|
|
85
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatSelection<any>, never>;
|
|
86
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSelection<any>, "[matSelection]", ["matSelection"], { "multiple": { "alias": "matSelectionMultiple"; "required": false; }; }, { "change": "matSelectionChange"; }, never, never, true, never>;
|
|
49
|
+
declare class MatSelectionToggle<T> extends CdkSelectionToggle<T> {
|
|
50
|
+
/** The value that is associated with the toggle */
|
|
51
|
+
value: T;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatSelectionToggle<any>, never>;
|
|
53
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSelectionToggle<any>, "[matSelectionToggle]", ["matSelectionToggle"], { "index": { "alias": "matSelectionToggleIndex"; "required": false; }; "value": { "alias": "matSelectionToggleValue"; "required": false; }; }, {}, never, never, true, never>;
|
|
87
54
|
}
|
|
88
55
|
|
|
89
56
|
/**
|
|
@@ -92,7 +59,7 @@ export declare class MatSelection<T> extends CdkSelection<T> {
|
|
|
92
59
|
*
|
|
93
60
|
* Must be used within a parent `MatSelection` directive.
|
|
94
61
|
*/
|
|
95
|
-
|
|
62
|
+
declare class MatSelectionColumn<T> implements OnInit, OnDestroy {
|
|
96
63
|
private _table;
|
|
97
64
|
readonly selection: MatSelection<T> | null;
|
|
98
65
|
/** Column name that should be used to reference this column. */
|
|
@@ -109,29 +76,24 @@ export declare class MatSelectionColumn<T> implements OnInit, OnDestroy {
|
|
|
109
76
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatSelectionColumn<any>, "mat-selection-column", never, { "name": { "alias": "name"; "required": false; }; }, {}, never, never, true, never>;
|
|
110
77
|
}
|
|
111
78
|
|
|
112
|
-
export declare class MatSelectionModule {
|
|
113
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatSelectionModule, never>;
|
|
114
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSelectionModule, never, [typeof i1.MatTableModule, typeof i2.MatCheckboxModule, typeof i3.MatSelectAll, typeof i4.MatSelection, typeof i5.MatSelectionToggle, typeof i6.MatSelectionColumn, typeof i7.MatRowSelection], [typeof i3.MatSelectAll, typeof i4.MatSelection, typeof i5.MatSelectionToggle, typeof i6.MatSelectionColumn, typeof i7.MatRowSelection]>;
|
|
115
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MatSelectionModule>;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
79
|
/**
|
|
119
|
-
*
|
|
80
|
+
* Applies `mat-selected` class and `aria-selected` to an element.
|
|
120
81
|
*
|
|
121
82
|
* Must be used within a parent `MatSelection` directive.
|
|
122
|
-
* Must be provided with the value.
|
|
123
|
-
*
|
|
124
|
-
* automatically connects it with the selection state provided by the `MatSelection` directive. If
|
|
125
|
-
* not, use `checked$` to get the checked state of the value, and `toggle()` to change the selection
|
|
126
|
-
* state.
|
|
83
|
+
* Must be provided with the value. The index is required if `trackBy` is used on the `CdkSelection`
|
|
84
|
+
* directive.
|
|
127
85
|
*/
|
|
128
|
-
|
|
129
|
-
/** The value that is associated with the
|
|
86
|
+
declare class MatRowSelection<T> extends CdkRowSelection<T> {
|
|
87
|
+
/** The value that is associated with the row */
|
|
130
88
|
value: T;
|
|
131
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
132
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
89
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatRowSelection<any>, never>;
|
|
90
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatRowSelection<any>, "[matRowSelection]", never, { "index": { "alias": "matRowSelectionIndex"; "required": false; }; "value": { "alias": "matRowSelectionValue"; "required": false; }; }, {}, never, never, true, never>;
|
|
133
91
|
}
|
|
134
92
|
|
|
135
|
-
|
|
93
|
+
declare class MatSelectionModule {
|
|
94
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatSelectionModule, never>;
|
|
95
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSelectionModule, never, [typeof i1.MatTableModule, typeof i2.MatCheckboxModule, typeof MatSelectAll, typeof MatSelection, typeof MatSelectionToggle, typeof MatSelectionColumn, typeof MatRowSelection], [typeof MatSelectAll, typeof MatSelection, typeof MatSelectionToggle, typeof MatSelectionColumn, typeof MatRowSelection]>;
|
|
96
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatSelectionModule>;
|
|
97
|
+
}
|
|
136
98
|
|
|
137
|
-
export { }
|
|
99
|
+
export { MatRowSelection, MatSelectAll, MatSelection, MatSelectionColumn, MatSelectionModule, MatSelectionToggle };
|