@angular/material-experimental 21.0.0-next.9 → 21.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.
@@ -2,210 +2,383 @@ import * as i0 from '@angular/core';
2
2
  import { Directive, NgModule } from '@angular/core';
3
3
  import { CdkEditControl, EditRef, CdkEditRevert, CdkEditClose, CdkPopoverEdit, CdkPopoverEditTabOut, CdkRowHoverContent, _closest, _CELL_SELECTOR, CdkEditOpen, CdkPopoverEditModule, CdkEditable } from '@angular/cdk-experimental/popover-edit';
4
4
 
5
- /**
6
- * A component that attaches to a form within the edit.
7
- * It coordinates the form state with the table-wide edit system and handles
8
- * closing the edit when the form is submitted or the user clicks
9
- * out.
10
- */
11
5
  class MatEditLens extends CdkEditControl {
12
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatEditLens, deps: null, target: i0.ɵɵFactoryTarget.Directive });
13
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: MatEditLens, isStandalone: true, selector: "form[matEditLens]", inputs: { clickOutBehavior: ["matEditLensClickOutBehavior", "clickOutBehavior"], preservedFormValue: ["matEditLensPreservedFormValue", "preservedFormValue"], ignoreSubmitUnlessValid: ["matEditLensIgnoreSubmitUnlessValid", "ignoreSubmitUnlessValid"] }, outputs: { preservedFormValueChange: "matEditLensPreservedFormValueChange" }, host: { classAttribute: "mat-edit-lens" }, providers: [EditRef], usesInheritance: true, ngImport: i0 });
6
+ static ɵfac = i0.ɵɵngDeclareFactory({
7
+ minVersion: "12.0.0",
8
+ version: "20.2.0-next.2",
9
+ ngImport: i0,
10
+ type: MatEditLens,
11
+ deps: null,
12
+ target: i0.ɵɵFactoryTarget.Directive
13
+ });
14
+ static ɵdir = i0.ɵɵngDeclareDirective({
15
+ minVersion: "14.0.0",
16
+ version: "20.2.0-next.2",
17
+ type: MatEditLens,
18
+ isStandalone: true,
19
+ selector: "form[matEditLens]",
20
+ inputs: {
21
+ clickOutBehavior: ["matEditLensClickOutBehavior", "clickOutBehavior"],
22
+ preservedFormValue: ["matEditLensPreservedFormValue", "preservedFormValue"],
23
+ ignoreSubmitUnlessValid: ["matEditLensIgnoreSubmitUnlessValid", "ignoreSubmitUnlessValid"]
24
+ },
25
+ outputs: {
26
+ preservedFormValueChange: "matEditLensPreservedFormValueChange"
27
+ },
28
+ host: {
29
+ classAttribute: "mat-edit-lens"
30
+ },
31
+ providers: [EditRef],
32
+ usesInheritance: true,
33
+ ngImport: i0
34
+ });
14
35
  }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatEditLens, decorators: [{
16
- type: Directive,
17
- args: [{
18
- selector: 'form[matEditLens]',
19
- host: {
20
- 'class': 'mat-edit-lens',
21
- },
22
- inputs: [
23
- { name: 'clickOutBehavior', alias: 'matEditLensClickOutBehavior' },
24
- { name: 'preservedFormValue', alias: 'matEditLensPreservedFormValue' },
25
- { name: 'ignoreSubmitUnlessValid', alias: 'matEditLensIgnoreSubmitUnlessValid' },
26
- ],
27
- outputs: ['preservedFormValueChange: matEditLensPreservedFormValueChange'],
28
- providers: [EditRef],
29
- }]
30
- }] });
31
- /** Reverts the form to its initial or previously submitted state on click. */
36
+ i0.ɵɵngDeclareClassMetadata({
37
+ minVersion: "12.0.0",
38
+ version: "20.2.0-next.2",
39
+ ngImport: i0,
40
+ type: MatEditLens,
41
+ decorators: [{
42
+ type: Directive,
43
+ args: [{
44
+ selector: 'form[matEditLens]',
45
+ host: {
46
+ 'class': 'mat-edit-lens'
47
+ },
48
+ inputs: [{
49
+ name: 'clickOutBehavior',
50
+ alias: 'matEditLensClickOutBehavior'
51
+ }, {
52
+ name: 'preservedFormValue',
53
+ alias: 'matEditLensPreservedFormValue'
54
+ }, {
55
+ name: 'ignoreSubmitUnlessValid',
56
+ alias: 'matEditLensIgnoreSubmitUnlessValid'
57
+ }],
58
+ outputs: ['preservedFormValueChange: matEditLensPreservedFormValueChange'],
59
+ providers: [EditRef]
60
+ }]
61
+ }]
62
+ });
32
63
  class MatEditRevert extends CdkEditRevert {
33
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatEditRevert, deps: null, target: i0.ɵɵFactoryTarget.Directive });
34
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: MatEditRevert, isStandalone: true, selector: "button[matEditRevert]", host: { attributes: { "type": "button" } }, usesInheritance: true, ngImport: i0 });
64
+ static ɵfac = i0.ɵɵngDeclareFactory({
65
+ minVersion: "12.0.0",
66
+ version: "20.2.0-next.2",
67
+ ngImport: i0,
68
+ type: MatEditRevert,
69
+ deps: null,
70
+ target: i0.ɵɵFactoryTarget.Directive
71
+ });
72
+ static ɵdir = i0.ɵɵngDeclareDirective({
73
+ minVersion: "14.0.0",
74
+ version: "20.2.0-next.2",
75
+ type: MatEditRevert,
76
+ isStandalone: true,
77
+ selector: "button[matEditRevert]",
78
+ host: {
79
+ attributes: {
80
+ "type": "button"
81
+ }
82
+ },
83
+ usesInheritance: true,
84
+ ngImport: i0
85
+ });
35
86
  }
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatEditRevert, decorators: [{
37
- type: Directive,
38
- args: [{
39
- selector: 'button[matEditRevert]',
40
- host: {
41
- 'type': 'button', // Prevents accidental form submits.
42
- },
43
- }]
44
- }] });
45
- /** Closes the lens on click. */
87
+ i0.ɵɵngDeclareClassMetadata({
88
+ minVersion: "12.0.0",
89
+ version: "20.2.0-next.2",
90
+ ngImport: i0,
91
+ type: MatEditRevert,
92
+ decorators: [{
93
+ type: Directive,
94
+ args: [{
95
+ selector: 'button[matEditRevert]',
96
+ host: {
97
+ 'type': 'button'
98
+ }
99
+ }]
100
+ }]
101
+ });
46
102
  class MatEditClose extends CdkEditClose {
47
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatEditClose, deps: null, target: i0.ɵɵFactoryTarget.Directive });
48
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: MatEditClose, isStandalone: true, selector: "[matEditClose]", usesInheritance: true, ngImport: i0 });
103
+ static ɵfac = i0.ɵɵngDeclareFactory({
104
+ minVersion: "12.0.0",
105
+ version: "20.2.0-next.2",
106
+ ngImport: i0,
107
+ type: MatEditClose,
108
+ deps: null,
109
+ target: i0.ɵɵFactoryTarget.Directive
110
+ });
111
+ static ɵdir = i0.ɵɵngDeclareDirective({
112
+ minVersion: "14.0.0",
113
+ version: "20.2.0-next.2",
114
+ type: MatEditClose,
115
+ isStandalone: true,
116
+ selector: "[matEditClose]",
117
+ usesInheritance: true,
118
+ ngImport: i0
119
+ });
49
120
  }
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatEditClose, decorators: [{
51
- type: Directive,
52
- args: [{
53
- selector: '[matEditClose]',
54
- }]
55
- }] });
121
+ i0.ɵɵngDeclareClassMetadata({
122
+ minVersion: "12.0.0",
123
+ version: "20.2.0-next.2",
124
+ ngImport: i0,
125
+ type: MatEditClose,
126
+ decorators: [{
127
+ type: Directive,
128
+ args: [{
129
+ selector: '[matEditClose]'
130
+ }]
131
+ }]
132
+ });
56
133
 
57
134
  const POPOVER_EDIT_HOST_BINDINGS = {
58
- '[attr.tabindex]': 'disabled ? null : 0',
59
- 'class': 'mat-popover-edit-cell',
60
- '[attr.aria-haspopup]': '!disabled',
135
+ '[attr.tabindex]': 'disabled ? null : 0',
136
+ 'class': 'mat-popover-edit-cell',
137
+ '[attr.aria-haspopup]': '!disabled'
61
138
  };
62
- const POPOVER_EDIT_INPUTS = [
63
- { name: 'template', alias: 'matPopoverEdit' },
64
- { name: 'context', alias: 'matPopoverEditContext' },
65
- { name: 'colspan', alias: 'matPopoverEditColspan' },
66
- { name: 'disabled', alias: 'matPopoverEditDisabled' },
67
- { name: 'ariaLabel', alias: 'matPopoverEditAriaLabel' },
68
- ];
139
+ const POPOVER_EDIT_INPUTS = [{
140
+ name: 'template',
141
+ alias: 'matPopoverEdit'
142
+ }, {
143
+ name: 'context',
144
+ alias: 'matPopoverEditContext'
145
+ }, {
146
+ name: 'colspan',
147
+ alias: 'matPopoverEditColspan'
148
+ }, {
149
+ name: 'disabled',
150
+ alias: 'matPopoverEditDisabled'
151
+ }, {
152
+ name: 'ariaLabel',
153
+ alias: 'matPopoverEditAriaLabel'
154
+ }];
69
155
  const EDIT_PANE_CLASS = 'mat-edit-pane';
70
156
  const MAT_ROW_HOVER_CLASS = 'mat-row-hover-content';
71
157
  const MAT_ROW_HOVER_RTL_CLASS = MAT_ROW_HOVER_CLASS + '-rtl';
72
158
  const MAT_ROW_HOVER_ANIMATE_CLASS = MAT_ROW_HOVER_CLASS + '-visible';
73
159
  const MAT_ROW_HOVER_CELL_CLASS = MAT_ROW_HOVER_CLASS + '-host-cell';
74
- /**
75
- * Attaches an ng-template to a cell and shows it when instructed to by the
76
- * EditEventDispatcher service.
77
- * Makes the cell focusable.
78
- */
79
160
  class MatPopoverEdit extends CdkPopoverEdit {
80
- panelClass() {
81
- return EDIT_PANE_CLASS;
82
- }
83
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatPopoverEdit, deps: null, target: i0.ɵɵFactoryTarget.Directive });
84
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: MatPopoverEdit, isStandalone: true, selector: "[matPopoverEdit]:not([matPopoverEditTabOut])", inputs: { template: ["matPopoverEdit", "template"], context: ["matPopoverEditContext", "context"], colspan: ["matPopoverEditColspan", "colspan"], disabled: ["matPopoverEditDisabled", "disabled"], ariaLabel: ["matPopoverEditAriaLabel", "ariaLabel"] }, host: { properties: { "attr.tabindex": "disabled ? null : 0", "attr.aria-haspopup": "!disabled" }, classAttribute: "mat-popover-edit-cell" }, usesInheritance: true, ngImport: i0 });
161
+ panelClass() {
162
+ return EDIT_PANE_CLASS;
163
+ }
164
+ static ɵfac = i0.ɵɵngDeclareFactory({
165
+ minVersion: "12.0.0",
166
+ version: "20.2.0-next.2",
167
+ ngImport: i0,
168
+ type: MatPopoverEdit,
169
+ deps: null,
170
+ target: i0.ɵɵFactoryTarget.Directive
171
+ });
172
+ static ɵdir = i0.ɵɵngDeclareDirective({
173
+ minVersion: "14.0.0",
174
+ version: "20.2.0-next.2",
175
+ type: MatPopoverEdit,
176
+ isStandalone: true,
177
+ selector: "[matPopoverEdit]:not([matPopoverEditTabOut])",
178
+ inputs: {
179
+ template: ["matPopoverEdit", "template"],
180
+ context: ["matPopoverEditContext", "context"],
181
+ colspan: ["matPopoverEditColspan", "colspan"],
182
+ disabled: ["matPopoverEditDisabled", "disabled"],
183
+ ariaLabel: ["matPopoverEditAriaLabel", "ariaLabel"]
184
+ },
185
+ host: {
186
+ properties: {
187
+ "attr.tabindex": "disabled ? null : 0",
188
+ "attr.aria-haspopup": "!disabled"
189
+ },
190
+ classAttribute: "mat-popover-edit-cell"
191
+ },
192
+ usesInheritance: true,
193
+ ngImport: i0
194
+ });
85
195
  }
86
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatPopoverEdit, decorators: [{
87
- type: Directive,
88
- args: [{
89
- selector: '[matPopoverEdit]:not([matPopoverEditTabOut])',
90
- host: POPOVER_EDIT_HOST_BINDINGS,
91
- inputs: POPOVER_EDIT_INPUTS,
92
- }]
93
- }] });
94
- /**
95
- * Attaches an ng-template to a cell and shows it when instructed to by the
96
- * EditEventDispatcher service.
97
- * Makes the cell focusable.
98
- */
196
+ i0.ɵɵngDeclareClassMetadata({
197
+ minVersion: "12.0.0",
198
+ version: "20.2.0-next.2",
199
+ ngImport: i0,
200
+ type: MatPopoverEdit,
201
+ decorators: [{
202
+ type: Directive,
203
+ args: [{
204
+ selector: '[matPopoverEdit]:not([matPopoverEditTabOut])',
205
+ host: POPOVER_EDIT_HOST_BINDINGS,
206
+ inputs: POPOVER_EDIT_INPUTS
207
+ }]
208
+ }]
209
+ });
99
210
  class MatPopoverEditTabOut extends CdkPopoverEditTabOut {
100
- panelClass() {
101
- return EDIT_PANE_CLASS;
102
- }
103
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatPopoverEditTabOut, deps: null, target: i0.ɵɵFactoryTarget.Directive });
104
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: MatPopoverEditTabOut, isStandalone: true, selector: "[matPopoverEdit][matPopoverEditTabOut]", inputs: { template: ["matPopoverEdit", "template"], context: ["matPopoverEditContext", "context"], colspan: ["matPopoverEditColspan", "colspan"], disabled: ["matPopoverEditDisabled", "disabled"], ariaLabel: ["matPopoverEditAriaLabel", "ariaLabel"] }, host: { properties: { "attr.tabindex": "disabled ? null : 0", "attr.aria-haspopup": "!disabled" }, classAttribute: "mat-popover-edit-cell" }, usesInheritance: true, ngImport: i0 });
211
+ panelClass() {
212
+ return EDIT_PANE_CLASS;
213
+ }
214
+ static ɵfac = i0.ɵɵngDeclareFactory({
215
+ minVersion: "12.0.0",
216
+ version: "20.2.0-next.2",
217
+ ngImport: i0,
218
+ type: MatPopoverEditTabOut,
219
+ deps: null,
220
+ target: i0.ɵɵFactoryTarget.Directive
221
+ });
222
+ static ɵdir = i0.ɵɵngDeclareDirective({
223
+ minVersion: "14.0.0",
224
+ version: "20.2.0-next.2",
225
+ type: MatPopoverEditTabOut,
226
+ isStandalone: true,
227
+ selector: "[matPopoverEdit][matPopoverEditTabOut]",
228
+ inputs: {
229
+ template: ["matPopoverEdit", "template"],
230
+ context: ["matPopoverEditContext", "context"],
231
+ colspan: ["matPopoverEditColspan", "colspan"],
232
+ disabled: ["matPopoverEditDisabled", "disabled"],
233
+ ariaLabel: ["matPopoverEditAriaLabel", "ariaLabel"]
234
+ },
235
+ host: {
236
+ properties: {
237
+ "attr.tabindex": "disabled ? null : 0",
238
+ "attr.aria-haspopup": "!disabled"
239
+ },
240
+ classAttribute: "mat-popover-edit-cell"
241
+ },
242
+ usesInheritance: true,
243
+ ngImport: i0
244
+ });
105
245
  }
106
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatPopoverEditTabOut, decorators: [{
107
- type: Directive,
108
- args: [{
109
- selector: '[matPopoverEdit][matPopoverEditTabOut]',
110
- host: POPOVER_EDIT_HOST_BINDINGS,
111
- inputs: POPOVER_EDIT_INPUTS,
112
- }]
113
- }] });
114
- /**
115
- * A structural directive that shows its contents when the table row containing
116
- * it is hovered or when an element in the row has focus.
117
- */
246
+ i0.ɵɵngDeclareClassMetadata({
247
+ minVersion: "12.0.0",
248
+ version: "20.2.0-next.2",
249
+ ngImport: i0,
250
+ type: MatPopoverEditTabOut,
251
+ decorators: [{
252
+ type: Directive,
253
+ args: [{
254
+ selector: '[matPopoverEdit][matPopoverEditTabOut]',
255
+ host: POPOVER_EDIT_HOST_BINDINGS,
256
+ inputs: POPOVER_EDIT_INPUTS
257
+ }]
258
+ }]
259
+ });
118
260
  class MatRowHoverContent extends CdkRowHoverContent {
119
- initElement(element) {
120
- super.initElement(element);
121
- element.classList.add(MAT_ROW_HOVER_CLASS);
122
- }
123
- makeElementHiddenButFocusable(element) {
124
- element.classList.remove(MAT_ROW_HOVER_ANIMATE_CLASS);
125
- }
126
- makeElementVisible(element) {
127
- _closest(this.elementRef.nativeElement, _CELL_SELECTOR).classList.add(MAT_ROW_HOVER_CELL_CLASS);
128
- if (this.services.directionality.value === 'rtl') {
129
- element.classList.add(MAT_ROW_HOVER_RTL_CLASS);
130
- }
131
- else {
132
- element.classList.remove(MAT_ROW_HOVER_RTL_CLASS);
133
- }
134
- element.classList.remove(MAT_ROW_HOVER_ANIMATE_CLASS);
135
- this.services.ngZone.runOutsideAngular(() => {
136
- setTimeout(() => {
137
- element.classList.add(MAT_ROW_HOVER_ANIMATE_CLASS);
138
- });
139
- });
261
+ initElement(element) {
262
+ super.initElement(element);
263
+ element.classList.add(MAT_ROW_HOVER_CLASS);
264
+ }
265
+ makeElementHiddenButFocusable(element) {
266
+ element.classList.remove(MAT_ROW_HOVER_ANIMATE_CLASS);
267
+ }
268
+ makeElementVisible(element) {
269
+ _closest(this.elementRef.nativeElement, _CELL_SELECTOR).classList.add(MAT_ROW_HOVER_CELL_CLASS);
270
+ if (this.services.directionality.value === 'rtl') {
271
+ element.classList.add(MAT_ROW_HOVER_RTL_CLASS);
272
+ } else {
273
+ element.classList.remove(MAT_ROW_HOVER_RTL_CLASS);
140
274
  }
141
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatRowHoverContent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
142
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: MatRowHoverContent, isStandalone: true, selector: "[matRowHoverContent]", usesInheritance: true, ngImport: i0 });
275
+ element.classList.remove(MAT_ROW_HOVER_ANIMATE_CLASS);
276
+ this.services.ngZone.runOutsideAngular(() => {
277
+ setTimeout(() => {
278
+ element.classList.add(MAT_ROW_HOVER_ANIMATE_CLASS);
279
+ });
280
+ });
281
+ }
282
+ static ɵfac = i0.ɵɵngDeclareFactory({
283
+ minVersion: "12.0.0",
284
+ version: "20.2.0-next.2",
285
+ ngImport: i0,
286
+ type: MatRowHoverContent,
287
+ deps: null,
288
+ target: i0.ɵɵFactoryTarget.Directive
289
+ });
290
+ static ɵdir = i0.ɵɵngDeclareDirective({
291
+ minVersion: "14.0.0",
292
+ version: "20.2.0-next.2",
293
+ type: MatRowHoverContent,
294
+ isStandalone: true,
295
+ selector: "[matRowHoverContent]",
296
+ usesInheritance: true,
297
+ ngImport: i0
298
+ });
143
299
  }
144
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatRowHoverContent, decorators: [{
145
- type: Directive,
146
- args: [{
147
- selector: '[matRowHoverContent]',
148
- }]
149
- }] });
150
- /**
151
- * Opens the closest edit popover to this element, whether it's associated with this exact
152
- * element or an ancestor element.
153
- */
300
+ i0.ɵɵngDeclareClassMetadata({
301
+ minVersion: "12.0.0",
302
+ version: "20.2.0-next.2",
303
+ ngImport: i0,
304
+ type: MatRowHoverContent,
305
+ decorators: [{
306
+ type: Directive,
307
+ args: [{
308
+ selector: '[matRowHoverContent]'
309
+ }]
310
+ }]
311
+ });
154
312
  class MatEditOpen extends CdkEditOpen {
155
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatEditOpen, deps: null, target: i0.ɵɵFactoryTarget.Directive });
156
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: MatEditOpen, isStandalone: true, selector: "[matEditOpen]", usesInheritance: true, ngImport: i0 });
313
+ static ɵfac = i0.ɵɵngDeclareFactory({
314
+ minVersion: "12.0.0",
315
+ version: "20.2.0-next.2",
316
+ ngImport: i0,
317
+ type: MatEditOpen,
318
+ deps: null,
319
+ target: i0.ɵɵFactoryTarget.Directive
320
+ });
321
+ static ɵdir = i0.ɵɵngDeclareDirective({
322
+ minVersion: "14.0.0",
323
+ version: "20.2.0-next.2",
324
+ type: MatEditOpen,
325
+ isStandalone: true,
326
+ selector: "[matEditOpen]",
327
+ usesInheritance: true,
328
+ ngImport: i0
329
+ });
157
330
  }
158
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatEditOpen, decorators: [{
159
- type: Directive,
160
- args: [{
161
- selector: '[matEditOpen]',
162
- }]
163
- }] });
331
+ i0.ɵɵngDeclareClassMetadata({
332
+ minVersion: "12.0.0",
333
+ version: "20.2.0-next.2",
334
+ ngImport: i0,
335
+ type: MatEditOpen,
336
+ decorators: [{
337
+ type: Directive,
338
+ args: [{
339
+ selector: '[matEditOpen]'
340
+ }]
341
+ }]
342
+ });
164
343
 
165
344
  class MatPopoverEditModule {
166
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatPopoverEditModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
167
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatPopoverEditModule, imports: [CdkPopoverEditModule,
168
- MatPopoverEdit,
169
- MatPopoverEditTabOut,
170
- MatRowHoverContent,
171
- MatEditLens,
172
- MatEditRevert,
173
- MatEditClose,
174
- MatEditOpen], exports: [MatPopoverEdit,
175
- MatPopoverEditTabOut,
176
- MatRowHoverContent,
177
- MatEditLens,
178
- MatEditRevert,
179
- MatEditClose,
180
- MatEditOpen,
181
- CdkEditable] });
182
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatPopoverEditModule, imports: [CdkPopoverEditModule] });
345
+ static ɵfac = i0.ɵɵngDeclareFactory({
346
+ minVersion: "12.0.0",
347
+ version: "20.2.0-next.2",
348
+ ngImport: i0,
349
+ type: MatPopoverEditModule,
350
+ deps: [],
351
+ target: i0.ɵɵFactoryTarget.NgModule
352
+ });
353
+ static ɵmod = i0.ɵɵngDeclareNgModule({
354
+ minVersion: "14.0.0",
355
+ version: "20.2.0-next.2",
356
+ ngImport: i0,
357
+ type: MatPopoverEditModule,
358
+ imports: [CdkPopoverEditModule, MatPopoverEdit, MatPopoverEditTabOut, MatRowHoverContent, MatEditLens, MatEditRevert, MatEditClose, MatEditOpen],
359
+ exports: [MatPopoverEdit, MatPopoverEditTabOut, MatRowHoverContent, MatEditLens, MatEditRevert, MatEditClose, MatEditOpen, CdkEditable]
360
+ });
361
+ static ɵinj = i0.ɵɵngDeclareInjector({
362
+ minVersion: "12.0.0",
363
+ version: "20.2.0-next.2",
364
+ ngImport: i0,
365
+ type: MatPopoverEditModule,
366
+ imports: [CdkPopoverEditModule]
367
+ });
183
368
  }
184
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatPopoverEditModule, decorators: [{
185
- type: NgModule,
186
- args: [{
187
- imports: [
188
- CdkPopoverEditModule,
189
- MatPopoverEdit,
190
- MatPopoverEditTabOut,
191
- MatRowHoverContent,
192
- MatEditLens,
193
- MatEditRevert,
194
- MatEditClose,
195
- MatEditOpen,
196
- ],
197
- exports: [
198
- MatPopoverEdit,
199
- MatPopoverEditTabOut,
200
- MatRowHoverContent,
201
- MatEditLens,
202
- MatEditRevert,
203
- MatEditClose,
204
- MatEditOpen,
205
- CdkEditable,
206
- ],
207
- }]
208
- }] });
369
+ i0.ɵɵngDeclareClassMetadata({
370
+ minVersion: "12.0.0",
371
+ version: "20.2.0-next.2",
372
+ ngImport: i0,
373
+ type: MatPopoverEditModule,
374
+ decorators: [{
375
+ type: NgModule,
376
+ args: [{
377
+ imports: [CdkPopoverEditModule, MatPopoverEdit, MatPopoverEditTabOut, MatRowHoverContent, MatEditLens, MatEditRevert, MatEditClose, MatEditOpen],
378
+ exports: [MatPopoverEdit, MatPopoverEditTabOut, MatRowHoverContent, MatEditLens, MatEditRevert, MatEditClose, MatEditOpen, CdkEditable]
379
+ }]
380
+ }]
381
+ });
209
382
 
210
383
  export { MatEditClose, MatEditLens, MatEditOpen, MatEditRevert, MatPopoverEdit, MatPopoverEditModule, MatPopoverEditTabOut, MatRowHoverContent };
211
384
  //# sourceMappingURL=popover-edit.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover-edit.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/material-experimental/popover-edit/lens-directives.ts","../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/material-experimental/popover-edit/table-directives.ts","../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/material-experimental/popover-edit/popover-edit-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 {Directive} from '@angular/core';\n\nimport {\n CdkEditControl,\n CdkEditRevert,\n CdkEditClose,\n EditRef,\n} from '@angular/cdk-experimental/popover-edit';\n\n/**\n * A component that attaches to a form within the edit.\n * It coordinates the form state with the table-wide edit system and handles\n * closing the edit when the form is submitted or the user clicks\n * out.\n */\n@Directive({\n selector: 'form[matEditLens]',\n host: {\n 'class': 'mat-edit-lens',\n },\n inputs: [\n {name: 'clickOutBehavior', alias: 'matEditLensClickOutBehavior'},\n {name: 'preservedFormValue', alias: 'matEditLensPreservedFormValue'},\n {name: 'ignoreSubmitUnlessValid', alias: 'matEditLensIgnoreSubmitUnlessValid'},\n ],\n outputs: ['preservedFormValueChange: matEditLensPreservedFormValueChange'],\n providers: [EditRef],\n})\nexport class MatEditLens<FormValue> extends CdkEditControl<FormValue> {}\n\n/** Reverts the form to its initial or previously submitted state on click. */\n@Directive({\n selector: 'button[matEditRevert]',\n host: {\n 'type': 'button', // Prevents accidental form submits.\n },\n})\nexport class MatEditRevert<FormValue> extends CdkEditRevert<FormValue> {}\n\n/** Closes the lens on click. */\n@Directive({\n selector: '[matEditClose]',\n})\nexport class MatEditClose<FormValue> extends CdkEditClose<FormValue> {}\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 */\nimport {Directive} from '@angular/core';\nimport {\n _CELL_SELECTOR,\n _closest,\n CdkPopoverEdit,\n CdkPopoverEditTabOut,\n CdkRowHoverContent,\n CdkEditOpen,\n} from '@angular/cdk-experimental/popover-edit';\n\nconst POPOVER_EDIT_HOST_BINDINGS = {\n '[attr.tabindex]': 'disabled ? null : 0',\n 'class': 'mat-popover-edit-cell',\n '[attr.aria-haspopup]': '!disabled',\n};\n\nconst POPOVER_EDIT_INPUTS = [\n {name: 'template', alias: 'matPopoverEdit'},\n {name: 'context', alias: 'matPopoverEditContext'},\n {name: 'colspan', alias: 'matPopoverEditColspan'},\n {name: 'disabled', alias: 'matPopoverEditDisabled'},\n {name: 'ariaLabel', alias: 'matPopoverEditAriaLabel'},\n];\n\nconst EDIT_PANE_CLASS = 'mat-edit-pane';\n\nconst MAT_ROW_HOVER_CLASS = 'mat-row-hover-content';\nconst MAT_ROW_HOVER_RTL_CLASS = MAT_ROW_HOVER_CLASS + '-rtl';\nconst MAT_ROW_HOVER_ANIMATE_CLASS = MAT_ROW_HOVER_CLASS + '-visible';\nconst MAT_ROW_HOVER_CELL_CLASS = MAT_ROW_HOVER_CLASS + '-host-cell';\n\n/**\n * Attaches an ng-template to a cell and shows it when instructed to by the\n * EditEventDispatcher service.\n * Makes the cell focusable.\n */\n@Directive({\n selector: '[matPopoverEdit]:not([matPopoverEditTabOut])',\n host: POPOVER_EDIT_HOST_BINDINGS,\n inputs: POPOVER_EDIT_INPUTS,\n})\nexport class MatPopoverEdit<C> extends CdkPopoverEdit<C> {\n protected override panelClass(): string {\n return EDIT_PANE_CLASS;\n }\n}\n\n/**\n * Attaches an ng-template to a cell and shows it when instructed to by the\n * EditEventDispatcher service.\n * Makes the cell focusable.\n */\n@Directive({\n selector: '[matPopoverEdit][matPopoverEditTabOut]',\n host: POPOVER_EDIT_HOST_BINDINGS,\n inputs: POPOVER_EDIT_INPUTS,\n})\nexport class MatPopoverEditTabOut<C> extends CdkPopoverEditTabOut<C> {\n protected override panelClass(): string {\n return EDIT_PANE_CLASS;\n }\n}\n\n/**\n * A structural directive that shows its contents when the table row containing\n * it is hovered or when an element in the row has focus.\n */\n@Directive({\n selector: '[matRowHoverContent]',\n})\nexport class MatRowHoverContent extends CdkRowHoverContent {\n protected override initElement(element: HTMLElement) {\n super.initElement(element);\n element.classList.add(MAT_ROW_HOVER_CLASS);\n }\n\n protected override makeElementHiddenButFocusable(element: HTMLElement): void {\n element.classList.remove(MAT_ROW_HOVER_ANIMATE_CLASS);\n }\n\n protected override makeElementVisible(element: HTMLElement): void {\n _closest(this.elementRef.nativeElement!, _CELL_SELECTOR)!.classList.add(\n MAT_ROW_HOVER_CELL_CLASS,\n );\n\n if (this.services.directionality.value === 'rtl') {\n element.classList.add(MAT_ROW_HOVER_RTL_CLASS);\n } else {\n element.classList.remove(MAT_ROW_HOVER_RTL_CLASS);\n }\n\n element.classList.remove(MAT_ROW_HOVER_ANIMATE_CLASS);\n this.services.ngZone.runOutsideAngular(() => {\n setTimeout(() => {\n element.classList.add(MAT_ROW_HOVER_ANIMATE_CLASS);\n });\n });\n }\n}\n\n/**\n * Opens the closest edit popover to this element, whether it's associated with this exact\n * element or an ancestor element.\n */\n@Directive({\n selector: '[matEditOpen]',\n})\nexport class MatEditOpen extends CdkEditOpen {}\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 {NgModule} from '@angular/core';\nimport {CdkEditable, CdkPopoverEditModule} from '@angular/cdk-experimental/popover-edit';\nimport {\n MatPopoverEdit,\n MatPopoverEditTabOut,\n MatRowHoverContent,\n MatEditOpen,\n} from './table-directives';\nimport {MatEditLens, MatEditRevert, MatEditClose} from './lens-directives';\n\n@NgModule({\n imports: [\n CdkPopoverEditModule,\n MatPopoverEdit,\n MatPopoverEditTabOut,\n MatRowHoverContent,\n MatEditLens,\n MatEditRevert,\n MatEditClose,\n MatEditOpen,\n ],\n exports: [\n MatPopoverEdit,\n MatPopoverEditTabOut,\n MatRowHoverContent,\n MatEditLens,\n MatEditRevert,\n MatEditClose,\n MatEditOpen,\n CdkEditable,\n ],\n})\nexport class MatPopoverEditModule {}\n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AACF,iBAAA;;;;;"}
1
+ {"version":3,"file":"popover-edit.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/material-experimental/popover-edit/lens-directives.ts","../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/material-experimental/popover-edit/table-directives.ts","../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/material-experimental/popover-edit/popover-edit-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 {Directive} from '@angular/core';\n\nimport {\n CdkEditControl,\n CdkEditRevert,\n CdkEditClose,\n EditRef,\n} from '@angular/cdk-experimental/popover-edit';\n\n/**\n * A component that attaches to a form within the edit.\n * It coordinates the form state with the table-wide edit system and handles\n * closing the edit when the form is submitted or the user clicks\n * out.\n */\n@Directive({\n selector: 'form[matEditLens]',\n host: {\n 'class': 'mat-edit-lens',\n },\n inputs: [\n {name: 'clickOutBehavior', alias: 'matEditLensClickOutBehavior'},\n {name: 'preservedFormValue', alias: 'matEditLensPreservedFormValue'},\n {name: 'ignoreSubmitUnlessValid', alias: 'matEditLensIgnoreSubmitUnlessValid'},\n ],\n outputs: ['preservedFormValueChange: matEditLensPreservedFormValueChange'],\n providers: [EditRef],\n})\nexport class MatEditLens<FormValue> extends CdkEditControl<FormValue> {}\n\n/** Reverts the form to its initial or previously submitted state on click. */\n@Directive({\n selector: 'button[matEditRevert]',\n host: {\n 'type': 'button', // Prevents accidental form submits.\n },\n})\nexport class MatEditRevert<FormValue> extends CdkEditRevert<FormValue> {}\n\n/** Closes the lens on click. */\n@Directive({\n selector: '[matEditClose]',\n})\nexport class MatEditClose<FormValue> extends CdkEditClose<FormValue> {}\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 */\nimport {Directive} from '@angular/core';\nimport {\n _CELL_SELECTOR,\n _closest,\n CdkPopoverEdit,\n CdkPopoverEditTabOut,\n CdkRowHoverContent,\n CdkEditOpen,\n} from '@angular/cdk-experimental/popover-edit';\n\nconst POPOVER_EDIT_HOST_BINDINGS = {\n '[attr.tabindex]': 'disabled ? null : 0',\n 'class': 'mat-popover-edit-cell',\n '[attr.aria-haspopup]': '!disabled',\n};\n\nconst POPOVER_EDIT_INPUTS = [\n {name: 'template', alias: 'matPopoverEdit'},\n {name: 'context', alias: 'matPopoverEditContext'},\n {name: 'colspan', alias: 'matPopoverEditColspan'},\n {name: 'disabled', alias: 'matPopoverEditDisabled'},\n {name: 'ariaLabel', alias: 'matPopoverEditAriaLabel'},\n];\n\nconst EDIT_PANE_CLASS = 'mat-edit-pane';\n\nconst MAT_ROW_HOVER_CLASS = 'mat-row-hover-content';\nconst MAT_ROW_HOVER_RTL_CLASS = MAT_ROW_HOVER_CLASS + '-rtl';\nconst MAT_ROW_HOVER_ANIMATE_CLASS = MAT_ROW_HOVER_CLASS + '-visible';\nconst MAT_ROW_HOVER_CELL_CLASS = MAT_ROW_HOVER_CLASS + '-host-cell';\n\n/**\n * Attaches an ng-template to a cell and shows it when instructed to by the\n * EditEventDispatcher service.\n * Makes the cell focusable.\n */\n@Directive({\n selector: '[matPopoverEdit]:not([matPopoverEditTabOut])',\n host: POPOVER_EDIT_HOST_BINDINGS,\n inputs: POPOVER_EDIT_INPUTS,\n})\nexport class MatPopoverEdit<C> extends CdkPopoverEdit<C> {\n protected override panelClass(): string {\n return EDIT_PANE_CLASS;\n }\n}\n\n/**\n * Attaches an ng-template to a cell and shows it when instructed to by the\n * EditEventDispatcher service.\n * Makes the cell focusable.\n */\n@Directive({\n selector: '[matPopoverEdit][matPopoverEditTabOut]',\n host: POPOVER_EDIT_HOST_BINDINGS,\n inputs: POPOVER_EDIT_INPUTS,\n})\nexport class MatPopoverEditTabOut<C> extends CdkPopoverEditTabOut<C> {\n protected override panelClass(): string {\n return EDIT_PANE_CLASS;\n }\n}\n\n/**\n * A structural directive that shows its contents when the table row containing\n * it is hovered or when an element in the row has focus.\n */\n@Directive({\n selector: '[matRowHoverContent]',\n})\nexport class MatRowHoverContent extends CdkRowHoverContent {\n protected override initElement(element: HTMLElement) {\n super.initElement(element);\n element.classList.add(MAT_ROW_HOVER_CLASS);\n }\n\n protected override makeElementHiddenButFocusable(element: HTMLElement): void {\n element.classList.remove(MAT_ROW_HOVER_ANIMATE_CLASS);\n }\n\n protected override makeElementVisible(element: HTMLElement): void {\n _closest(this.elementRef.nativeElement!, _CELL_SELECTOR)!.classList.add(\n MAT_ROW_HOVER_CELL_CLASS,\n );\n\n if (this.services.directionality.value === 'rtl') {\n element.classList.add(MAT_ROW_HOVER_RTL_CLASS);\n } else {\n element.classList.remove(MAT_ROW_HOVER_RTL_CLASS);\n }\n\n element.classList.remove(MAT_ROW_HOVER_ANIMATE_CLASS);\n this.services.ngZone.runOutsideAngular(() => {\n setTimeout(() => {\n element.classList.add(MAT_ROW_HOVER_ANIMATE_CLASS);\n });\n });\n }\n}\n\n/**\n * Opens the closest edit popover to this element, whether it's associated with this exact\n * element or an ancestor element.\n */\n@Directive({\n selector: '[matEditOpen]',\n})\nexport class MatEditOpen extends CdkEditOpen {}\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 {NgModule} from '@angular/core';\nimport {CdkEditable, CdkPopoverEditModule} from '@angular/cdk-experimental/popover-edit';\nimport {\n MatPopoverEdit,\n MatPopoverEditTabOut,\n MatRowHoverContent,\n MatEditOpen,\n} from './table-directives';\nimport {MatEditLens, MatEditRevert, MatEditClose} from './lens-directives';\n\n@NgModule({\n imports: [\n CdkPopoverEditModule,\n MatPopoverEdit,\n MatPopoverEditTabOut,\n MatRowHoverContent,\n MatEditLens,\n MatEditRevert,\n MatEditClose,\n MatEditOpen,\n ],\n exports: [\n MatPopoverEdit,\n MatPopoverEditTabOut,\n MatRowHoverContent,\n MatEditLens,\n MatEditRevert,\n MatEditClose,\n MatEditOpen,\n CdkEditable,\n ],\n})\nexport class MatPopoverEditModule {}\n"],"names":["ɵfac","i0","ɵɵngDeclareFactory","minVersion","version","ngImport","type","MatEditLens","deps","target","ɵɵFactoryTarget","Directive","args","selector","name","alias","EditRef","CdkEditClose","MatEditClose","decorators","POPOVER_EDIT_INPUTS","MAT_ROW_HOVER_CLASS","MAT_ROW_HOVER_RTL_CLASS","MAT_ROW_HOVER_CELL_CLASS","MatPopoverEdit","CdkPopoverEdit","panelClass","EDIT_PANE_CLASS","CdkPopoverEditTabOut","ɵɵngDeclareClassMetadata","MatPopoverEditTabOut","element","classList","add","remove","MAT_ROW_HOVER_ANIMATE_CLASS","makeElementVisible","elementRef","nativeElement","_CELL_SELECTOR","services","directionality","value","ngZone","runOutsideAngular","setTimeout","ɵdir","ɵɵngDeclareDirective","MatRowHoverContent","isStandalone","usesInheritance","CdkEditOpen","ɵɵngDeclareNgModule","MatPopoverEditModule","imports","CdkPopoverEditModule","MatEditOpen","CdkEditable","MatEditRevert"],"mappings":";;;;;AAyBE,EAAA,OAAAA,IAAA,GAAAC,EAAA,CAAAC,kBAAA,CAAA;IAAAC,UAAA,EAAA,QAAA;IAAAC,OAAA,EAAA,eAAA;AAAAC,IAAAA,QAAA,EAAAJ,EAAA;AAAAK,IAAAA,IAAA,EAAAC,WAAA;IAAAC,IAAA,EAAA,IAAA;AAAAC,IAAAA,MAAA,EAAAR,EAAA,CAAAS,eAAA,CAAAC;AAAA,GAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKEC,IAAA,EAAA,CAAA;AASOC,MAAAA,QAAA,EAAA,mBAAA;;;;AARP,MAAA,MAAA,EAAA,CAAA;QAAAC,IAAA,EAAA,kBAAA;QAAAC,KAAA,EAAA;OAAA,EAAA;QAAAD,IAAA,EAAA,oBAAA;QAAAC,KAAA,EAAA;OACD,EAAA;AAAAD,QAAA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