@angular/material-experimental 16.0.0-next.4 → 16.0.0-rc.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/column-resize/index.d.ts +2 -2
- package/{esm2020 → esm2022}/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
- package/{esm2020 → esm2022}/column-resize/column-resize-directives/column-resize.mjs +4 -4
- package/{esm2020 → esm2022}/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +7 -7
- package/{esm2020 → esm2022}/column-resize/column-resize-directives/default-enabled-column-resize.mjs +7 -7
- package/{esm2020 → esm2022}/column-resize/column-resize-module.mjs +15 -15
- package/{esm2020 → esm2022}/column-resize/overlay-handle.mjs +4 -4
- package/{esm2020 → esm2022}/column-resize/resizable-directives/default-enabled-resizable.mjs +4 -4
- package/{esm2020 → esm2022}/column-resize/resizable-directives/resizable.mjs +4 -4
- package/{esm2020 → esm2022}/column-resize/resize-strategy.mjs +4 -4
- package/{esm2020 → esm2022}/menubar/menubar-item.mjs +4 -4
- package/{esm2020 → esm2022}/menubar/menubar-module.mjs +5 -5
- package/{esm2020 → esm2022}/menubar/menubar.mjs +9 -9
- package/{esm2020 → esm2022}/popover-edit/lens-directives.mjs +10 -10
- package/{esm2020 → esm2022}/popover-edit/popover-edit-module.mjs +18 -18
- package/{esm2020 → esm2022}/popover-edit/table-directives.mjs +13 -13
- package/{esm2020 → esm2022}/selection/row-selection.mjs +4 -4
- package/{esm2020 → esm2022}/selection/select-all.mjs +4 -4
- package/{esm2020 → esm2022}/selection/selection-column.mjs +6 -6
- package/{esm2020 → esm2022}/selection/selection-module.mjs +9 -9
- package/esm2022/selection/selection-toggle.mjs +43 -0
- package/{esm2020 → esm2022}/selection/selection.mjs +4 -4
- package/{esm2020 → esm2022}/version.mjs +1 -1
- package/{fesm2020 → fesm2022}/column-resize.mjs +44 -137
- package/fesm2022/column-resize.mjs.map +1 -0
- package/fesm2022/material-experimental.mjs +7 -0
- package/fesm2022/material-experimental.mjs.map +1 -0
- package/fesm2022/menubar.mjs +83 -0
- package/fesm2022/menubar.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/popover-edit.mjs +38 -75
- package/fesm2022/popover-edit.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/selection.mjs +31 -83
- package/fesm2022/selection.mjs.map +1 -0
- package/package.json +19 -33
- package/popover-edit/index.d.ts +3 -3
- package/selection/index.d.ts +4 -4
- package/esm2020/selection/selection-toggle.mjs +0 -38
- package/fesm2015/column-resize.mjs +0 -477
- package/fesm2015/column-resize.mjs.map +0 -1
- package/fesm2015/material-experimental.mjs +0 -30
- package/fesm2015/material-experimental.mjs.map +0 -1
- package/fesm2015/menubar.mjs +0 -121
- package/fesm2015/menubar.mjs.map +0 -1
- package/fesm2015/popover-edit.mjs +0 -249
- package/fesm2015/popover-edit.mjs.map +0 -1
- package/fesm2015/selection.mjs +0 -317
- package/fesm2015/selection.mjs.map +0 -1
- package/fesm2020/column-resize.mjs.map +0 -1
- package/fesm2020/material-experimental.mjs +0 -30
- package/fesm2020/material-experimental.mjs.map +0 -1
- package/fesm2020/menubar.mjs +0 -120
- package/fesm2020/menubar.mjs.map +0 -1
- package/fesm2020/popover-edit.mjs.map +0 -1
- package/fesm2020/selection.mjs.map +0 -1
- /package/{esm2020 → esm2022}/column-resize/column-resize-directives/common.mjs +0 -0
- /package/{esm2020 → esm2022}/column-resize/column-resize_public_index.mjs +0 -0
- /package/{esm2020 → esm2022}/column-resize/index.mjs +0 -0
- /package/{esm2020 → esm2022}/column-resize/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/column-resize/resizable-directives/common.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/menubar/index.mjs +0 -0
- /package/{esm2020 → esm2022}/menubar/menubar_public_index.mjs +0 -0
- /package/{esm2020 → esm2022}/menubar/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/popover-edit/index.mjs +0 -0
- /package/{esm2020 → esm2022}/popover-edit/popover-edit_public_index.mjs +0 -0
- /package/{esm2020 → esm2022}/popover-edit/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/selection/index.mjs +0 -0
- /package/{esm2020 → esm2022}/selection/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/selection/selection_public_index.mjs +0 -0
package/fesm2015/selection.mjs
DELETED
|
@@ -1,317 +0,0 @@
|
|
|
1
|
-
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
2
|
-
import { CdkSelection, CdkSelectAll, CdkSelectionToggle, CdkRowSelection } from '@angular/cdk-experimental/selection';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { EventEmitter, Directive, Input, Output, Component, ChangeDetectionStrategy, ViewEncapsulation, Optional, Inject, ViewChild, NgModule } from '@angular/core';
|
|
5
|
-
import * as i2 from '@angular/material/legacy-table';
|
|
6
|
-
import { MatLegacyTable, MatLegacyColumnDef, MatLegacyCellDef, MatLegacyHeaderCellDef, MatLegacyTableModule } from '@angular/material/legacy-table';
|
|
7
|
-
import * as i1 from '@angular/common';
|
|
8
|
-
import { CommonModule } from '@angular/common';
|
|
9
|
-
import * as i3 from '@angular/material/checkbox';
|
|
10
|
-
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @license
|
|
14
|
-
* Copyright Google LLC All Rights Reserved.
|
|
15
|
-
*
|
|
16
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
17
|
-
* found in the LICENSE file at https://angular.io/license
|
|
18
|
-
*/
|
|
19
|
-
/**
|
|
20
|
-
* Manages the selection states of the items and provides methods to check and update the selection
|
|
21
|
-
* states.
|
|
22
|
-
* It must be applied to the parent element if `matSelectionToggle`, `matSelectAll`,
|
|
23
|
-
* `matRowSelection` and `matSelectionColumn` are applied.
|
|
24
|
-
*/
|
|
25
|
-
class MatSelection extends CdkSelection {
|
|
26
|
-
constructor() {
|
|
27
|
-
super(...arguments);
|
|
28
|
-
/** Emits when selection changes. */
|
|
29
|
-
this.change = new EventEmitter();
|
|
30
|
-
}
|
|
31
|
-
/** Whether to support multiple selection */
|
|
32
|
-
get multiple() {
|
|
33
|
-
return this._multiple;
|
|
34
|
-
}
|
|
35
|
-
set multiple(multiple) {
|
|
36
|
-
this._multiple = coerceBooleanProperty(multiple);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
MatSelection.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatSelection, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
40
|
-
MatSelection.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.2", type: MatSelection, selector: "[matSelection]", inputs: { multiple: ["matSelectionMultiple", "multiple"] }, outputs: { change: "matSelectionChange" }, providers: [{ provide: CdkSelection, useExisting: MatSelection }], exportAs: ["matSelection"], usesInheritance: true, ngImport: i0 });
|
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatSelection, decorators: [{
|
|
42
|
-
type: Directive,
|
|
43
|
-
args: [{
|
|
44
|
-
selector: '[matSelection]',
|
|
45
|
-
exportAs: 'matSelection',
|
|
46
|
-
providers: [{ provide: CdkSelection, useExisting: MatSelection }],
|
|
47
|
-
}]
|
|
48
|
-
}], propDecorators: { multiple: [{
|
|
49
|
-
type: Input,
|
|
50
|
-
args: ['matSelectionMultiple']
|
|
51
|
-
}], change: [{
|
|
52
|
-
type: Output,
|
|
53
|
-
args: ['matSelectionChange']
|
|
54
|
-
}] } });
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @license
|
|
58
|
-
* Copyright Google LLC All Rights Reserved.
|
|
59
|
-
*
|
|
60
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
61
|
-
* found in the LICENSE file at https://angular.io/license
|
|
62
|
-
*/
|
|
63
|
-
/**
|
|
64
|
-
* Makes the element a select-all toggle.
|
|
65
|
-
*
|
|
66
|
-
* Must be used within a parent `MatSelection` directive. It toggles the selection states
|
|
67
|
-
* of all the selection toggles connected with the `MatSelection` directive.
|
|
68
|
-
* If the element implements `ControlValueAccessor`, e.g. `MatCheckbox`, the directive
|
|
69
|
-
* automatically connects it with the select-all state provided by the `MatSelection` directive. If
|
|
70
|
-
* not, use `checked` to get the checked state, `indeterminate` to get the indeterminate state,
|
|
71
|
-
* and `toggle()` to change the selection state.
|
|
72
|
-
*/
|
|
73
|
-
class MatSelectAll extends CdkSelectAll {
|
|
74
|
-
}
|
|
75
|
-
MatSelectAll.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatSelectAll, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
76
|
-
MatSelectAll.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.2", type: MatSelectAll, selector: "[matSelectAll]", providers: [{ provide: CdkSelectAll, useExisting: MatSelectAll }], exportAs: ["matSelectAll"], usesInheritance: true, ngImport: i0 });
|
|
77
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatSelectAll, decorators: [{
|
|
78
|
-
type: Directive,
|
|
79
|
-
args: [{
|
|
80
|
-
selector: '[matSelectAll]',
|
|
81
|
-
exportAs: 'matSelectAll',
|
|
82
|
-
providers: [{ provide: CdkSelectAll, useExisting: MatSelectAll }],
|
|
83
|
-
}]
|
|
84
|
-
}] });
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @license
|
|
88
|
-
* Copyright Google LLC All Rights Reserved.
|
|
89
|
-
*
|
|
90
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
91
|
-
* found in the LICENSE file at https://angular.io/license
|
|
92
|
-
*/
|
|
93
|
-
/**
|
|
94
|
-
* Makes the element a selection toggle.
|
|
95
|
-
*
|
|
96
|
-
* Must be used within a parent `MatSelection` directive.
|
|
97
|
-
* Must be provided with the value. If `trackBy` is used on `MatSelection`, the index of the value
|
|
98
|
-
* is required. If the element implements `ControlValueAccessor`, e.g. `MatCheckbox`, the directive
|
|
99
|
-
* automatically connects it with the selection state provided by the `MatSelection` directive. If
|
|
100
|
-
* not, use `checked$` to get the checked state of the value, and `toggle()` to change the selection
|
|
101
|
-
* state.
|
|
102
|
-
*/
|
|
103
|
-
class MatSelectionToggle extends CdkSelectionToggle {
|
|
104
|
-
}
|
|
105
|
-
MatSelectionToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatSelectionToggle, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
106
|
-
MatSelectionToggle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.2", type: MatSelectionToggle, selector: "[matSelectionToggle]", inputs: { index: ["matSelectionToggleIndex", "index"], value: ["matSelectionToggleValue", "value"] }, providers: [{ provide: CdkSelectionToggle, useExisting: MatSelectionToggle }], exportAs: ["matSelectionToggle"], usesInheritance: true, ngImport: i0 });
|
|
107
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatSelectionToggle, decorators: [{
|
|
108
|
-
type: Directive,
|
|
109
|
-
args: [{
|
|
110
|
-
selector: '[matSelectionToggle]',
|
|
111
|
-
exportAs: 'matSelectionToggle',
|
|
112
|
-
inputs: ['index: matSelectionToggleIndex'],
|
|
113
|
-
providers: [{ provide: CdkSelectionToggle, useExisting: MatSelectionToggle }],
|
|
114
|
-
}]
|
|
115
|
-
}], propDecorators: { value: [{
|
|
116
|
-
type: Input,
|
|
117
|
-
args: ['matSelectionToggleValue']
|
|
118
|
-
}] } });
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* @license
|
|
122
|
-
* Copyright Google LLC All Rights Reserved.
|
|
123
|
-
*
|
|
124
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
125
|
-
* found in the LICENSE file at https://angular.io/license
|
|
126
|
-
*/
|
|
127
|
-
/**
|
|
128
|
-
* Column that adds row selecting checkboxes and a select-all checkbox if `matSelectionMultiple` is
|
|
129
|
-
* `true`.
|
|
130
|
-
*
|
|
131
|
-
* Must be used within a parent `MatSelection` directive.
|
|
132
|
-
*/
|
|
133
|
-
class MatSelectionColumn {
|
|
134
|
-
/** Column name that should be used to reference this column. */
|
|
135
|
-
get name() {
|
|
136
|
-
return this._name;
|
|
137
|
-
}
|
|
138
|
-
set name(name) {
|
|
139
|
-
this._name = name;
|
|
140
|
-
this._syncColumnDefName();
|
|
141
|
-
}
|
|
142
|
-
constructor(_table, selection) {
|
|
143
|
-
this._table = _table;
|
|
144
|
-
this.selection = selection;
|
|
145
|
-
}
|
|
146
|
-
ngOnInit() {
|
|
147
|
-
if (!this.selection && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
148
|
-
throw Error('MatSelectionColumn: missing MatSelection in the parent');
|
|
149
|
-
}
|
|
150
|
-
this._syncColumnDefName();
|
|
151
|
-
if (this._table) {
|
|
152
|
-
this._columnDef.cell = this._cell;
|
|
153
|
-
this._columnDef.headerCell = this._headerCell;
|
|
154
|
-
this._table.addColumnDef(this._columnDef);
|
|
155
|
-
}
|
|
156
|
-
else if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
157
|
-
throw Error('MatSelectionColumn: missing parent table');
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
ngOnDestroy() {
|
|
161
|
-
if (this._table) {
|
|
162
|
-
this._table.removeColumnDef(this._columnDef);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
_syncColumnDefName() {
|
|
166
|
-
if (this._columnDef) {
|
|
167
|
-
this._columnDef.name = this._name;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
MatSelectionColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatSelectionColumn, deps: [{ token: MatLegacyTable, optional: true }, { token: MatSelection, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
172
|
-
MatSelectionColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0-next.2", type: MatSelectionColumn, selector: "mat-selection-column", inputs: { name: "name" }, viewQueries: [{ propertyName: "_columnDef", first: true, predicate: MatLegacyColumnDef, descendants: true, static: true }, { propertyName: "_cell", first: true, predicate: MatLegacyCellDef, descendants: true, static: true }, { propertyName: "_headerCell", first: true, predicate: MatLegacyHeaderCellDef, descendants: true, static: true }], ngImport: i0, template: `
|
|
173
|
-
<ng-container matColumnDef>
|
|
174
|
-
<th mat-header-cell *matHeaderCellDef class="mat-selection-column-header">
|
|
175
|
-
<mat-checkbox *ngIf="selection.multiple"
|
|
176
|
-
matSelectAll
|
|
177
|
-
#allToggler="matSelectAll"
|
|
178
|
-
[indeterminate]="allToggler.indeterminate | async"></mat-checkbox>
|
|
179
|
-
</th>
|
|
180
|
-
<td mat-cell *matCellDef="let row; let i = $index" class="mat-selection-column-cell">
|
|
181
|
-
<mat-checkbox
|
|
182
|
-
matSelectionToggle
|
|
183
|
-
[matSelectionToggleValue]="row"
|
|
184
|
-
[matSelectionToggleIndex]="i"></mat-checkbox>
|
|
185
|
-
</td>
|
|
186
|
-
</ng-container>
|
|
187
|
-
`, 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.MatLegacyHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i2.MatLegacyColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i2.MatLegacyCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i2.MatLegacyHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i2.MatLegacyCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], 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 });
|
|
188
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatSelectionColumn, decorators: [{
|
|
189
|
-
type: Component,
|
|
190
|
-
args: [{ selector: 'mat-selection-column', template: `
|
|
191
|
-
<ng-container matColumnDef>
|
|
192
|
-
<th mat-header-cell *matHeaderCellDef class="mat-selection-column-header">
|
|
193
|
-
<mat-checkbox *ngIf="selection.multiple"
|
|
194
|
-
matSelectAll
|
|
195
|
-
#allToggler="matSelectAll"
|
|
196
|
-
[indeterminate]="allToggler.indeterminate | async"></mat-checkbox>
|
|
197
|
-
</th>
|
|
198
|
-
<td mat-cell *matCellDef="let row; let i = $index" class="mat-selection-column-cell">
|
|
199
|
-
<mat-checkbox
|
|
200
|
-
matSelectionToggle
|
|
201
|
-
[matSelectionToggleValue]="row"
|
|
202
|
-
[matSelectionToggleIndex]="i"></mat-checkbox>
|
|
203
|
-
</td>
|
|
204
|
-
</ng-container>
|
|
205
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styles: ["th.mat-selection-column-header,td.mat-selection-column-cell{text-align:center;width:48px}"] }]
|
|
206
|
-
}], ctorParameters: function () {
|
|
207
|
-
return [{ type: i2.MatLegacyTable, decorators: [{
|
|
208
|
-
type: Optional
|
|
209
|
-
}, {
|
|
210
|
-
type: Inject,
|
|
211
|
-
args: [MatLegacyTable]
|
|
212
|
-
}] }, { type: MatSelection, decorators: [{
|
|
213
|
-
type: Optional
|
|
214
|
-
}, {
|
|
215
|
-
type: Inject,
|
|
216
|
-
args: [MatSelection]
|
|
217
|
-
}] }];
|
|
218
|
-
}, propDecorators: { name: [{
|
|
219
|
-
type: Input
|
|
220
|
-
}], _columnDef: [{
|
|
221
|
-
type: ViewChild,
|
|
222
|
-
args: [MatLegacyColumnDef, { static: true }]
|
|
223
|
-
}], _cell: [{
|
|
224
|
-
type: ViewChild,
|
|
225
|
-
args: [MatLegacyCellDef, { static: true }]
|
|
226
|
-
}], _headerCell: [{
|
|
227
|
-
type: ViewChild,
|
|
228
|
-
args: [MatLegacyHeaderCellDef, { static: true }]
|
|
229
|
-
}] } });
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* @license
|
|
233
|
-
* Copyright Google LLC All Rights Reserved.
|
|
234
|
-
*
|
|
235
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
236
|
-
* found in the LICENSE file at https://angular.io/license
|
|
237
|
-
*/
|
|
238
|
-
/**
|
|
239
|
-
* Applies `mat-selected` class and `aria-selected` to an element.
|
|
240
|
-
*
|
|
241
|
-
* Must be used within a parent `MatSelection` directive.
|
|
242
|
-
* Must be provided with the value. The index is required if `trackBy` is used on the `CdkSelection`
|
|
243
|
-
* directive.
|
|
244
|
-
*/
|
|
245
|
-
class MatRowSelection extends CdkRowSelection {
|
|
246
|
-
}
|
|
247
|
-
MatRowSelection.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatRowSelection, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
248
|
-
MatRowSelection.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.2", type: MatRowSelection, 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 });
|
|
249
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatRowSelection, decorators: [{
|
|
250
|
-
type: Directive,
|
|
251
|
-
args: [{
|
|
252
|
-
selector: '[matRowSelection]',
|
|
253
|
-
host: {
|
|
254
|
-
'[class.mat-selected]': '_selection.isSelected(this.value, this.index)',
|
|
255
|
-
'[attr.aria-selected]': '_selection.isSelected(this.value, this.index)',
|
|
256
|
-
},
|
|
257
|
-
providers: [{ provide: CdkRowSelection, useExisting: MatRowSelection }],
|
|
258
|
-
inputs: ['index: matRowSelectionIndex'],
|
|
259
|
-
}]
|
|
260
|
-
}], propDecorators: { value: [{
|
|
261
|
-
type: Input,
|
|
262
|
-
args: ['matRowSelectionValue']
|
|
263
|
-
}] } });
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* @license
|
|
267
|
-
* Copyright Google LLC All Rights Reserved.
|
|
268
|
-
*
|
|
269
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
270
|
-
* found in the LICENSE file at https://angular.io/license
|
|
271
|
-
*/
|
|
272
|
-
class MatSelectionModule {
|
|
273
|
-
}
|
|
274
|
-
MatSelectionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatSelectionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
275
|
-
MatSelectionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatSelectionModule, declarations: [MatSelectAll,
|
|
276
|
-
MatSelection,
|
|
277
|
-
MatSelectionToggle,
|
|
278
|
-
MatSelectionColumn,
|
|
279
|
-
MatRowSelection], imports: [CommonModule, MatLegacyTableModule, MatCheckboxModule], exports: [MatSelectAll, MatSelection, MatSelectionToggle, MatSelectionColumn, MatRowSelection] });
|
|
280
|
-
MatSelectionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatSelectionModule, imports: [CommonModule, MatLegacyTableModule, MatCheckboxModule] });
|
|
281
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatSelectionModule, decorators: [{
|
|
282
|
-
type: NgModule,
|
|
283
|
-
args: [{
|
|
284
|
-
imports: [CommonModule, MatLegacyTableModule, MatCheckboxModule],
|
|
285
|
-
exports: [MatSelectAll, MatSelection, MatSelectionToggle, MatSelectionColumn, MatRowSelection],
|
|
286
|
-
declarations: [
|
|
287
|
-
MatSelectAll,
|
|
288
|
-
MatSelection,
|
|
289
|
-
MatSelectionToggle,
|
|
290
|
-
MatSelectionColumn,
|
|
291
|
-
MatRowSelection,
|
|
292
|
-
],
|
|
293
|
-
}]
|
|
294
|
-
}] });
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* @license
|
|
298
|
-
* Copyright Google LLC All Rights Reserved.
|
|
299
|
-
*
|
|
300
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
301
|
-
* found in the LICENSE file at https://angular.io/license
|
|
302
|
-
*/
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* @license
|
|
306
|
-
* Copyright Google LLC All Rights Reserved.
|
|
307
|
-
*
|
|
308
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
309
|
-
* found in the LICENSE file at https://angular.io/license
|
|
310
|
-
*/
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* Generated bundle index. Do not edit.
|
|
314
|
-
*/
|
|
315
|
-
|
|
316
|
-
export { MatRowSelection, MatSelectAll, MatSelection, MatSelectionColumn, MatSelectionModule, MatSelectionToggle };
|
|
317
|
-
//# sourceMappingURL=selection.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
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/public-api.ts","../../../../../../src/material-experimental/selection/index.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;\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 * @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\nexport * from './selection';\nexport * from './select-all';\nexport * from './selection-toggle';\nexport * from './selection-column';\nexport * from './row-selection';\nexport * from './selection-module';\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\nexport * from './public-api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i4.MatSelectAll","i5.MatSelectionToggle"],"mappings":";;;;;;;;;;;AAAA;;;;;;AAMG;AAMH;;;;;AAKG;AACH,MAMa,qBAAwB,YAAe,CAAA;AANpD,IAAA,WAAA,GAAA;;;AAiBkD,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAsB,CAAC;KACjG;;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;;gHARU,YAAY,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;oGAAZ,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,EA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;;AAMG;;ACNH;;AAEG;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"column-resize.mjs","sources":["../../../../../../src/material-experimental/column-resize/resize-strategy.ts","../../../../../../src/material-experimental/column-resize/column-resize-directives/common.ts","../../../../../../src/material-experimental/column-resize/column-resize-directives/column-resize.ts","../../../../../../src/material-experimental/column-resize/column-resize-directives/column-resize-flex.ts","../../../../../../src/material-experimental/column-resize/column-resize-directives/default-enabled-column-resize.ts","../../../../../../src/material-experimental/column-resize/column-resize-directives/default-enabled-column-resize-flex.ts","../../../../../../src/material-experimental/column-resize/overlay-handle.ts","../../../../../../src/material-experimental/column-resize/resizable-directives/common.ts","../../../../../../src/material-experimental/column-resize/resizable-directives/default-enabled-resizable.ts","../../../../../../src/material-experimental/column-resize/resizable-directives/resizable.ts","../../../../../../src/material-experimental/column-resize/column-resize-module.ts","../../../../../../src/material-experimental/column-resize/public-api.ts","../../../../../../src/material-experimental/column-resize/index.ts","../../../../../../src/material-experimental/column-resize/column-resize_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 {Inject, Injectable, Provider} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {CdkTable, _CoalescedStyleScheduler, _COALESCED_STYLE_SCHEDULER} from '@angular/cdk/table';\n\nimport {\n ColumnResize,\n ResizeStrategy,\n CdkFlexTableResizeStrategy,\n TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER,\n} from '@angular/cdk-experimental/column-resize';\n\nexport {TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER};\n\n/**\n * Overrides CdkFlexTableResizeStrategy to match mat-column elements.\n */\n@Injectable()\nexport class MatFlexTableResizeStrategy extends CdkFlexTableResizeStrategy {\n constructor(\n columnResize: ColumnResize,\n @Inject(_COALESCED_STYLE_SCHEDULER) styleScheduler: _CoalescedStyleScheduler,\n table: CdkTable<unknown>,\n @Inject(DOCUMENT) document: any,\n ) {\n super(columnResize, styleScheduler, table, document);\n }\n\n protected override getColumnCssClass(cssFriendlyColumnName: string): string {\n return `mat-column-${cssFriendlyColumnName}`;\n }\n}\n\nexport const FLEX_RESIZE_STRATEGY_PROVIDER: Provider = {\n provide: ResizeStrategy,\n useClass: MatFlexTableResizeStrategy,\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 {Provider} from '@angular/core';\n\nimport {\n ColumnResize,\n ColumnResizeNotifier,\n ColumnResizeNotifierSource,\n HeaderRowEventDispatcher,\n} from '@angular/cdk-experimental/column-resize';\n\nimport {\n TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER,\n FLEX_RESIZE_STRATEGY_PROVIDER,\n} from '../resize-strategy';\n\nconst PROVIDERS: Provider[] = [\n ColumnResizeNotifier,\n HeaderRowEventDispatcher,\n ColumnResizeNotifierSource,\n];\nexport const TABLE_PROVIDERS: Provider[] = [\n ...PROVIDERS,\n TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER,\n];\nexport const FLEX_PROVIDERS: Provider[] = [...PROVIDERS, FLEX_RESIZE_STRATEGY_PROVIDER];\n\nexport const TABLE_HOST_BINDINGS = {\n 'class': 'mat-column-resize-table',\n};\nexport const FLEX_HOST_BINDINGS = {\n 'class': 'mat-column-resize-flex',\n};\n\nexport abstract class AbstractMatColumnResize extends ColumnResize {\n getTableHeight() {\n return this.elementRef.nativeElement!.offsetHeight;\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 {Directive, ElementRef, NgZone} from '@angular/core';\nimport {\n ColumnResize,\n ColumnResizeNotifier,\n ColumnResizeNotifierSource,\n HeaderRowEventDispatcher,\n} from '@angular/cdk-experimental/column-resize';\n\nimport {AbstractMatColumnResize, TABLE_HOST_BINDINGS, TABLE_PROVIDERS} from './common';\n\n/**\n * Explicitly enables column resizing for a table-based mat-table.\n * Individual columns must be annotated specifically.\n */\n@Directive({\n selector: 'table[mat-table][columnResize]',\n host: TABLE_HOST_BINDINGS,\n providers: [...TABLE_PROVIDERS, {provide: ColumnResize, useExisting: MatColumnResize}],\n})\nexport class MatColumnResize extends AbstractMatColumnResize {\n constructor(\n readonly columnResizeNotifier: ColumnResizeNotifier,\n readonly elementRef: ElementRef<HTMLElement>,\n protected readonly eventDispatcher: HeaderRowEventDispatcher,\n protected readonly ngZone: NgZone,\n protected readonly notifier: ColumnResizeNotifierSource,\n ) {\n super();\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 {Directive, ElementRef, NgZone} from '@angular/core';\nimport {\n ColumnResize,\n ColumnResizeNotifier,\n ColumnResizeNotifierSource,\n HeaderRowEventDispatcher,\n} from '@angular/cdk-experimental/column-resize';\n\nimport {AbstractMatColumnResize, FLEX_HOST_BINDINGS, FLEX_PROVIDERS} from './common';\n\n/**\n * Explicitly enables column resizing for a flexbox-based mat-table.\n * Individual columns must be annotated specifically.\n */\n@Directive({\n selector: 'mat-table[columnResize]',\n host: FLEX_HOST_BINDINGS,\n providers: [...FLEX_PROVIDERS, {provide: ColumnResize, useExisting: MatColumnResizeFlex}],\n})\nexport class MatColumnResizeFlex extends AbstractMatColumnResize {\n constructor(\n readonly columnResizeNotifier: ColumnResizeNotifier,\n readonly elementRef: ElementRef<HTMLElement>,\n protected readonly eventDispatcher: HeaderRowEventDispatcher,\n protected readonly ngZone: NgZone,\n protected readonly notifier: ColumnResizeNotifierSource,\n ) {\n super();\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 {Directive, ElementRef, NgZone} from '@angular/core';\nimport {\n ColumnResize,\n ColumnResizeNotifier,\n ColumnResizeNotifierSource,\n HeaderRowEventDispatcher,\n} from '@angular/cdk-experimental/column-resize';\n\nimport {AbstractMatColumnResize, TABLE_HOST_BINDINGS, TABLE_PROVIDERS} from './common';\n\n/**\n * Implicitly enables column resizing for a table-based mat-table.\n * Individual columns will be resizable unless opted out.\n */\n@Directive({\n selector: 'table[mat-table]',\n host: TABLE_HOST_BINDINGS,\n providers: [\n ...TABLE_PROVIDERS,\n {provide: ColumnResize, useExisting: MatDefaultEnabledColumnResize},\n ],\n})\nexport class MatDefaultEnabledColumnResize extends AbstractMatColumnResize {\n constructor(\n readonly columnResizeNotifier: ColumnResizeNotifier,\n readonly elementRef: ElementRef<HTMLElement>,\n protected readonly eventDispatcher: HeaderRowEventDispatcher,\n protected readonly ngZone: NgZone,\n protected readonly notifier: ColumnResizeNotifierSource,\n ) {\n super();\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 {Directive, ElementRef, NgZone} from '@angular/core';\nimport {\n ColumnResize,\n ColumnResizeNotifier,\n ColumnResizeNotifierSource,\n HeaderRowEventDispatcher,\n} from '@angular/cdk-experimental/column-resize';\n\nimport {AbstractMatColumnResize, FLEX_HOST_BINDINGS, FLEX_PROVIDERS} from './common';\n\n/**\n * Implicitly enables column resizing for a flexbox-based mat-table.\n * Individual columns will be resizable unless opted out.\n */\n@Directive({\n selector: 'mat-table',\n host: FLEX_HOST_BINDINGS,\n providers: [\n ...FLEX_PROVIDERS,\n {provide: ColumnResize, useExisting: MatDefaultEnabledColumnResizeFlex},\n ],\n})\nexport class MatDefaultEnabledColumnResizeFlex extends AbstractMatColumnResize {\n constructor(\n readonly columnResizeNotifier: ColumnResizeNotifier,\n readonly elementRef: ElementRef<HTMLElement>,\n protected readonly eventDispatcher: HeaderRowEventDispatcher,\n protected readonly ngZone: NgZone,\n protected readonly notifier: ColumnResizeNotifierSource,\n ) {\n super();\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 {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Inject,\n NgZone,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {\n CdkColumnDef,\n _CoalescedStyleScheduler,\n _COALESCED_STYLE_SCHEDULER,\n} from '@angular/cdk/table';\nimport {Directionality} from '@angular/cdk/bidi';\nimport {\n ColumnResize,\n ColumnResizeNotifierSource,\n HeaderRowEventDispatcher,\n ResizeOverlayHandle,\n ResizeRef,\n} from '@angular/cdk-experimental/column-resize';\n\nimport {AbstractMatColumnResize} from './column-resize-directives/common';\n\n/**\n * Component shown over the edge of a resizable column that is responsible\n * for handling column resize mouse events and displaying a vertical line along the column edge.\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {'class': 'mat-column-resize-overlay-thumb'},\n template: '<div #top class=\"mat-column-resize-overlay-thumb-top\"></div>',\n})\nexport class MatColumnResizeOverlayHandle extends ResizeOverlayHandle {\n protected readonly document: Document;\n\n @ViewChild('top', {static: true}) topElement: ElementRef<HTMLElement>;\n\n constructor(\n protected readonly columnDef: CdkColumnDef,\n protected readonly columnResize: ColumnResize,\n protected readonly directionality: Directionality,\n protected readonly elementRef: ElementRef,\n protected readonly eventDispatcher: HeaderRowEventDispatcher,\n protected readonly ngZone: NgZone,\n protected readonly resizeNotifier: ColumnResizeNotifierSource,\n protected readonly resizeRef: ResizeRef,\n @Inject(_COALESCED_STYLE_SCHEDULER)\n protected readonly styleScheduler: _CoalescedStyleScheduler,\n @Inject(DOCUMENT) document: any,\n ) {\n super();\n this.document = document;\n }\n\n protected override updateResizeActive(active: boolean): void {\n super.updateResizeActive(active);\n\n const originHeight = this.resizeRef.origin.nativeElement.offsetHeight;\n this.topElement.nativeElement.style.height = `${originHeight}px`;\n this.resizeRef.overlayRef.updateSize({\n height: active\n ? (this.columnResize as AbstractMatColumnResize).getTableHeight()\n : originHeight,\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 {Type} from '@angular/core';\nimport {Resizable} from '@angular/cdk-experimental/column-resize';\nimport {MatColumnResizeOverlayHandle} from '../overlay-handle';\n\nexport abstract class AbstractMatResizable extends Resizable<MatColumnResizeOverlayHandle> {\n override minWidthPxInternal = 32;\n\n protected override getInlineHandleCssClassName(): string {\n return 'mat-resizable-handle';\n }\n\n protected override getOverlayHandleComponentType(): Type<MatColumnResizeOverlayHandle> {\n return MatColumnResizeOverlayHandle;\n }\n}\n\nexport const RESIZABLE_HOST_BINDINGS = {\n 'class': 'mat-resizable',\n};\n\nexport const RESIZABLE_INPUTS = [\n 'minWidthPx: matResizableMinWidthPx',\n 'maxWidthPx: matResizableMaxWidthPx',\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 Directive,\n ElementRef,\n Inject,\n Injector,\n NgZone,\n ViewContainerRef,\n ChangeDetectorRef,\n} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {Directionality} from '@angular/cdk/bidi';\nimport {Overlay} from '@angular/cdk/overlay';\nimport {\n CdkColumnDef,\n _CoalescedStyleScheduler,\n _COALESCED_STYLE_SCHEDULER,\n} from '@angular/cdk/table';\nimport {\n ColumnResize,\n ColumnResizeNotifierSource,\n HeaderRowEventDispatcher,\n ResizeStrategy,\n} from '@angular/cdk-experimental/column-resize';\n\nimport {AbstractMatResizable, RESIZABLE_HOST_BINDINGS, RESIZABLE_INPUTS} from './common';\n\n/**\n * Implicitly enables column resizing for a mat-header-cell unless the disableResize attribute\n * is present.\n */\n@Directive({\n selector: 'mat-header-cell:not([disableResize]), th[mat-header-cell]:not([disableResize])',\n host: RESIZABLE_HOST_BINDINGS,\n inputs: RESIZABLE_INPUTS,\n})\nexport class MatDefaultResizable extends AbstractMatResizable {\n protected readonly document: Document;\n\n constructor(\n protected readonly columnDef: CdkColumnDef,\n protected readonly columnResize: ColumnResize,\n protected readonly directionality: Directionality,\n @Inject(DOCUMENT) document: any,\n protected readonly elementRef: ElementRef,\n protected readonly eventDispatcher: HeaderRowEventDispatcher,\n protected readonly injector: Injector,\n protected readonly ngZone: NgZone,\n protected readonly overlay: Overlay,\n protected readonly resizeNotifier: ColumnResizeNotifierSource,\n protected readonly resizeStrategy: ResizeStrategy,\n @Inject(_COALESCED_STYLE_SCHEDULER)\n protected readonly styleScheduler: _CoalescedStyleScheduler,\n protected readonly viewContainerRef: ViewContainerRef,\n protected readonly changeDetectorRef: ChangeDetectorRef,\n ) {\n super();\n this.document = document;\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 {\n Directive,\n ElementRef,\n Inject,\n Injector,\n NgZone,\n ViewContainerRef,\n ChangeDetectorRef,\n} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {Directionality} from '@angular/cdk/bidi';\nimport {Overlay} from '@angular/cdk/overlay';\nimport {\n CdkColumnDef,\n _CoalescedStyleScheduler,\n _COALESCED_STYLE_SCHEDULER,\n} from '@angular/cdk/table';\nimport {\n ColumnResize,\n ColumnResizeNotifierSource,\n HeaderRowEventDispatcher,\n ResizeStrategy,\n} from '@angular/cdk-experimental/column-resize';\n\nimport {AbstractMatResizable, RESIZABLE_HOST_BINDINGS, RESIZABLE_INPUTS} from './common';\n\n/**\n * Explicitly enables column resizing for a mat-header-cell.\n */\n@Directive({\n selector: 'mat-header-cell[resizable], th[mat-header-cell][resizable]',\n host: RESIZABLE_HOST_BINDINGS,\n inputs: RESIZABLE_INPUTS,\n})\nexport class MatResizable extends AbstractMatResizable {\n protected readonly document: Document;\n\n constructor(\n protected readonly columnDef: CdkColumnDef,\n protected readonly columnResize: ColumnResize,\n protected readonly directionality: Directionality,\n @Inject(DOCUMENT) document: any,\n protected readonly elementRef: ElementRef,\n protected readonly eventDispatcher: HeaderRowEventDispatcher,\n protected readonly injector: Injector,\n protected readonly ngZone: NgZone,\n protected readonly overlay: Overlay,\n protected readonly resizeNotifier: ColumnResizeNotifierSource,\n protected readonly resizeStrategy: ResizeStrategy,\n @Inject(_COALESCED_STYLE_SCHEDULER)\n protected readonly styleScheduler: _CoalescedStyleScheduler,\n protected readonly viewContainerRef: ViewContainerRef,\n protected readonly changeDetectorRef: ChangeDetectorRef,\n ) {\n super();\n this.document = document;\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 {NgModule} from '@angular/core';\nimport {MatCommonModule} from '@angular/material/core';\nimport {OverlayModule} from '@angular/cdk/overlay';\n\nimport {MatColumnResize} from './column-resize-directives/column-resize';\nimport {MatColumnResizeFlex} from './column-resize-directives/column-resize-flex';\nimport {MatDefaultEnabledColumnResize} from './column-resize-directives/default-enabled-column-resize';\nimport {MatDefaultEnabledColumnResizeFlex} from './column-resize-directives/default-enabled-column-resize-flex';\nimport {MatDefaultResizable} from './resizable-directives/default-enabled-resizable';\nimport {MatResizable} from './resizable-directives/resizable';\nimport {MatColumnResizeOverlayHandle} from './overlay-handle';\n\nconst ENTRY_COMMON_COMPONENTS = [MatColumnResizeOverlayHandle];\n\n@NgModule({\n declarations: ENTRY_COMMON_COMPONENTS,\n exports: ENTRY_COMMON_COMPONENTS,\n})\nexport class MatColumnResizeCommonModule {}\n\nconst IMPORTS = [MatCommonModule, OverlayModule, MatColumnResizeCommonModule];\n\n@NgModule({\n imports: IMPORTS,\n declarations: [\n MatDefaultEnabledColumnResize,\n MatDefaultEnabledColumnResizeFlex,\n MatDefaultResizable,\n ],\n exports: [MatDefaultEnabledColumnResize, MatDefaultEnabledColumnResizeFlex, MatDefaultResizable],\n})\nexport class MatDefaultEnabledColumnResizeModule {}\n\n@NgModule({\n imports: IMPORTS,\n declarations: [MatColumnResize, MatColumnResizeFlex, MatResizable],\n exports: [MatColumnResize, MatColumnResizeFlex, MatResizable],\n})\nexport class MatColumnResizeModule {}\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\nexport * from './column-resize-directives/column-resize';\nexport * from './column-resize-directives/column-resize-flex';\nexport * from './column-resize-directives/default-enabled-column-resize';\nexport * from './column-resize-directives/default-enabled-column-resize-flex';\nexport * from './column-resize-module';\nexport * from './resizable-directives/default-enabled-resizable';\nexport * from './resizable-directives/resizable';\nexport * from './resize-strategy';\nexport * from './overlay-handle';\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\nexport * from './public-api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2","i1"],"mappings":";;;;;;;;;;;;;AAAA;;;;;;AAMG;AAeH;;AAEG;AACH,MACa,0BAA2B,SAAQ,0BAA0B,CAAA;AACxE,IAAA,WAAA,CACE,YAA0B,EACU,cAAwC,EAC5E,KAAwB,EACN,QAAa,EAAA;QAE/B,KAAK,CAAC,YAAY,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;KACtD;AAEkB,IAAA,iBAAiB,CAAC,qBAA6B,EAAA;QAChE,OAAO,CAAA,WAAA,EAAc,qBAAqB,CAAA,CAAE,CAAC;KAC9C;;8HAZU,0BAA0B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,YAAA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AAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,eAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,iBAHjB,eAAe,EAAE,mBAAmB,EAAE,YAAY,CAflD,EAAA,OAAA,EAAA,CAAA,eAAe,EAAE,aAAa,EAFlC,2BAA2B,CAAA,EAAA,OAAA,EAAA,CAkB5B,eAAe,EAAE,mBAAmB,EAAE,YAAY,CAAA,EAAA,CAAA,CAAA;AAEjD,qBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,eAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,YAJvB,OAAO,CAAA,EAAA,CAAA,CAAA;kGAIL,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBALjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,OAAO;AAChB,oBAAA,YAAY,EAAE,CAAC,eAAe,EAAE,mBAAmB,EAAE,YAAY,CAAC;AAClE,oBAAA,OAAO,EAAE,CAAC,eAAe,EAAE,mBAAmB,EAAE,YAAY,CAAC;AAC9D,iBAAA,CAAA;;;AC7CD;;;;;;AAMG;;ACNH;;;;;;AAMG;;ACNH;;AAEG;;;;"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Version } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @license
|
|
5
|
-
* Copyright Google LLC All Rights Reserved.
|
|
6
|
-
*
|
|
7
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
8
|
-
* found in the LICENSE file at https://angular.io/license
|
|
9
|
-
*/
|
|
10
|
-
/** Current version of the Material experimental package. */
|
|
11
|
-
const VERSION = new Version('16.0.0-next.4');
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @license
|
|
15
|
-
* Copyright Google LLC All Rights Reserved.
|
|
16
|
-
*
|
|
17
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
18
|
-
* found in the LICENSE file at https://angular.io/license
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @license
|
|
23
|
-
* Copyright Google LLC All Rights Reserved.
|
|
24
|
-
*
|
|
25
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
26
|
-
* found in the LICENSE file at https://angular.io/license
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
export { VERSION };
|
|
30
|
-
//# sourceMappingURL=material-experimental.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"material-experimental.mjs","sources":["../../../../../../src/material-experimental/version.ts","../../../../../../src/material-experimental/public-api.ts","../../../../../../src/material-experimental/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 {Version} from '@angular/core';\n\n/** Current version of the Material experimental package. */\nexport const VERSION = new Version('16.0.0-next.4');\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\nexport * from './version';\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\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;;;;;AAMG;AAIH;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;ACXtD;;;;;;AAMG;;ACNH;;;;;;AAMG;;;;"}
|
package/fesm2020/menubar.mjs
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ViewEncapsulation, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
|
3
|
-
import { CdkMenuBar, CdkMenuGroup, CDK_MENU, MENU_STACK, MenuStack, CdkMenuItem, CdkMenuModule } from '@angular/cdk/menu';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @license
|
|
7
|
-
* Copyright Google LLC All Rights Reserved.
|
|
8
|
-
*
|
|
9
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
10
|
-
* found in the LICENSE file at https://angular.io/license
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* A material design Menubar adhering to the functionality of CdkMenuBar. MatMenubar
|
|
14
|
-
* should contain MatMenubarItems which trigger their own sub-menus.
|
|
15
|
-
*/
|
|
16
|
-
class MatMenuBar extends CdkMenuBar {
|
|
17
|
-
}
|
|
18
|
-
MatMenuBar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatMenuBar, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
-
MatMenuBar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0-next.2", type: MatMenuBar, selector: "mat-menubar", host: { properties: { "class.mat-menubar": "true" } }, providers: [
|
|
20
|
-
{ provide: CdkMenuGroup, useExisting: MatMenuBar },
|
|
21
|
-
{ provide: CdkMenuBar, useExisting: MatMenuBar },
|
|
22
|
-
{ provide: CDK_MENU, useExisting: MatMenuBar },
|
|
23
|
-
{ provide: MENU_STACK, useClass: MenuStack },
|
|
24
|
-
], exportAs: ["matMenubar"], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatMenuBar, decorators: [{
|
|
26
|
-
type: Component,
|
|
27
|
-
args: [{ selector: 'mat-menubar', exportAs: 'matMenubar', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
28
|
-
'[class.mat-menubar]': 'true',
|
|
29
|
-
}, providers: [
|
|
30
|
-
{ provide: CdkMenuGroup, useExisting: MatMenuBar },
|
|
31
|
-
{ provide: CdkMenuBar, useExisting: MatMenuBar },
|
|
32
|
-
{ provide: CDK_MENU, useExisting: MatMenuBar },
|
|
33
|
-
{ provide: MENU_STACK, useClass: MenuStack },
|
|
34
|
-
], template: "<ng-content></ng-content>\n" }]
|
|
35
|
-
}] });
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @license
|
|
39
|
-
* Copyright Google LLC All Rights Reserved.
|
|
40
|
-
*
|
|
41
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
42
|
-
* found in the LICENSE file at https://angular.io/license
|
|
43
|
-
*/
|
|
44
|
-
/** Removes all icons from within the given element. */
|
|
45
|
-
function removeIcons(element) {
|
|
46
|
-
for (const icon of Array.from(element.querySelectorAll('mat-icon, .material-icons'))) {
|
|
47
|
-
icon.remove();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* A material design MenubarItem adhering to the functionality of CdkMenuItem and
|
|
52
|
-
* CdkMenuItemTrigger. Its main purpose is to trigger menus and it lives inside of
|
|
53
|
-
* MatMenubar.
|
|
54
|
-
*/
|
|
55
|
-
class MatMenuBarItem extends CdkMenuItem {
|
|
56
|
-
getLabel() {
|
|
57
|
-
if (this.typeaheadLabel !== undefined) {
|
|
58
|
-
return this.typeaheadLabel || '';
|
|
59
|
-
}
|
|
60
|
-
const clone = this._elementRef.nativeElement.cloneNode(true);
|
|
61
|
-
removeIcons(clone);
|
|
62
|
-
return clone.textContent?.trim() || '';
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
MatMenuBarItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatMenuBarItem, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
66
|
-
MatMenuBarItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0-next.2", type: MatMenuBarItem, selector: "mat-menubar-item", host: { attributes: { "type": "button", "role": "menuitem" }, properties: { "tabindex": "_tabindex", "attr.aria-disabled": "disabled || null" }, classAttribute: "cdk-menu-item mat-menubar-item" }, providers: [{ provide: CdkMenuItem, useExisting: MatMenuBarItem }], exportAs: ["matMenubarItem"], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatMenuBarItem, decorators: [{
|
|
68
|
-
type: Component,
|
|
69
|
-
args: [{ selector: 'mat-menubar-item', exportAs: 'matMenubarItem', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
70
|
-
'[tabindex]': '_tabindex',
|
|
71
|
-
'type': 'button',
|
|
72
|
-
'role': 'menuitem',
|
|
73
|
-
'class': 'cdk-menu-item mat-menubar-item',
|
|
74
|
-
'[attr.aria-disabled]': 'disabled || null',
|
|
75
|
-
}, providers: [{ provide: CdkMenuItem, useExisting: MatMenuBarItem }], template: "<ng-content></ng-content>\n" }]
|
|
76
|
-
}] });
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @license
|
|
80
|
-
* Copyright Google LLC All Rights Reserved.
|
|
81
|
-
*
|
|
82
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
83
|
-
* found in the LICENSE file at https://angular.io/license
|
|
84
|
-
*/
|
|
85
|
-
class MatMenuBarModule {
|
|
86
|
-
}
|
|
87
|
-
MatMenuBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatMenuBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
88
|
-
MatMenuBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatMenuBarModule, declarations: [MatMenuBar, MatMenuBarItem], imports: [CdkMenuModule], exports: [MatMenuBar, MatMenuBarItem] });
|
|
89
|
-
MatMenuBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatMenuBarModule, imports: [CdkMenuModule] });
|
|
90
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatMenuBarModule, decorators: [{
|
|
91
|
-
type: NgModule,
|
|
92
|
-
args: [{
|
|
93
|
-
imports: [CdkMenuModule],
|
|
94
|
-
exports: [MatMenuBar, MatMenuBarItem],
|
|
95
|
-
declarations: [MatMenuBar, MatMenuBarItem],
|
|
96
|
-
}]
|
|
97
|
-
}] });
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* @license
|
|
101
|
-
* Copyright Google LLC All Rights Reserved.
|
|
102
|
-
*
|
|
103
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
104
|
-
* found in the LICENSE file at https://angular.io/license
|
|
105
|
-
*/
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* @license
|
|
109
|
-
* Copyright Google LLC All Rights Reserved.
|
|
110
|
-
*
|
|
111
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
112
|
-
* found in the LICENSE file at https://angular.io/license
|
|
113
|
-
*/
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Generated bundle index. Do not edit.
|
|
117
|
-
*/
|
|
118
|
-
|
|
119
|
-
export { MatMenuBar, MatMenuBarItem, MatMenuBarModule };
|
|
120
|
-
//# sourceMappingURL=menubar.mjs.map
|
package/fesm2020/menubar.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menubar.mjs","sources":["../../../../../../src/material-experimental/menubar/menubar.ts","../../../../../../src/material-experimental/menubar/menubar.html","../../../../../../src/material-experimental/menubar/menubar-item.ts","../../../../../../src/material-experimental/menubar/menubar-item.html","../../../../../../src/material-experimental/menubar/menubar-module.ts","../../../../../../src/material-experimental/menubar/public-api.ts","../../../../../../src/material-experimental/menubar/index.ts","../../../../../../src/material-experimental/menubar/menubar_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 {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\nimport {CDK_MENU, CdkMenuBar, CdkMenuGroup, MENU_STACK, MenuStack} from '@angular/cdk/menu';\n\n/**\n * A material design Menubar adhering to the functionality of CdkMenuBar. MatMenubar\n * should contain MatMenubarItems which trigger their own sub-menus.\n */\n@Component({\n selector: 'mat-menubar',\n exportAs: 'matMenubar',\n templateUrl: 'menubar.html',\n styleUrls: ['menubar.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.mat-menubar]': 'true',\n },\n providers: [\n {provide: CdkMenuGroup, useExisting: MatMenuBar},\n {provide: CdkMenuBar, useExisting: MatMenuBar},\n {provide: CDK_MENU, useExisting: MatMenuBar},\n {provide: MENU_STACK, useClass: MenuStack},\n ],\n})\nexport class MatMenuBar extends CdkMenuBar {}\n","<ng-content></ng-content>\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 {Component, ViewEncapsulation, ChangeDetectionStrategy} from '@angular/core';\nimport {CdkMenuItem} from '@angular/cdk/menu';\n\n/** Removes all icons from within the given element. */\nfunction removeIcons(element: Element) {\n for (const icon of Array.from(element.querySelectorAll('mat-icon, .material-icons'))) {\n icon.remove();\n }\n}\n\n/**\n * A material design MenubarItem adhering to the functionality of CdkMenuItem and\n * CdkMenuItemTrigger. Its main purpose is to trigger menus and it lives inside of\n * MatMenubar.\n */\n@Component({\n selector: 'mat-menubar-item',\n exportAs: 'matMenubarItem',\n templateUrl: 'menubar-item.html',\n styleUrls: ['menubar-item.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[tabindex]': '_tabindex',\n 'type': 'button',\n 'role': 'menuitem',\n 'class': 'cdk-menu-item mat-menubar-item',\n '[attr.aria-disabled]': 'disabled || null',\n },\n providers: [{provide: CdkMenuItem, useExisting: MatMenuBarItem}],\n})\nexport class MatMenuBarItem extends CdkMenuItem {\n override getLabel(): string {\n if (this.typeaheadLabel !== undefined) {\n return this.typeaheadLabel || '';\n }\n const clone = this._elementRef.nativeElement.cloneNode(true) as Element;\n removeIcons(clone);\n return clone.textContent?.trim() || '';\n }\n}\n","<ng-content></ng-content>\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 {NgModule} from '@angular/core';\nimport {CdkMenuModule} from '@angular/cdk/menu';\nimport {MatMenuBar} from './menubar';\nimport {MatMenuBarItem} from './menubar-item';\n\n@NgModule({\n imports: [CdkMenuModule],\n exports: [MatMenuBar, MatMenuBarItem],\n declarations: [MatMenuBar, MatMenuBarItem],\n})\nexport class MatMenuBarModule {}\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\nexport * from './menubar';\nexport * from './menubar-item';\nexport * from './menubar-module';\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\nexport * from './public-api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;;;;;AAMG;AAKH;;;AAGG;AACH,MAiBa,UAAW,SAAQ,UAAU,CAAA;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