@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/popover-edit/index.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export declare class MatEditClose<FormValue> extends CdkEditClose<FormValue> {
|
|
|
40
40
|
*/
|
|
41
41
|
export declare class MatEditLens<FormValue> extends CdkEditControl<FormValue> {
|
|
42
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatEditLens<any>, never>;
|
|
43
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatEditLens<any>, "form[matEditLens]", never, { "clickOutBehavior": "matEditLensClickOutBehavior"; "preservedFormValue": "matEditLensPreservedFormValue"; "ignoreSubmitUnlessValid": "matEditLensIgnoreSubmitUnlessValid"; }, { "preservedFormValueChange": "matEditLensPreservedFormValueChange"; }, never, never, false, never>;
|
|
43
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatEditLens<any>, "form[matEditLens]", never, { "clickOutBehavior": { "alias": "matEditLensClickOutBehavior"; "required": false; }; "preservedFormValue": { "alias": "matEditLensPreservedFormValue"; "required": false; }; "ignoreSubmitUnlessValid": { "alias": "matEditLensIgnoreSubmitUnlessValid"; "required": false; }; }, { "preservedFormValueChange": "matEditLensPreservedFormValueChange"; }, never, never, false, never>;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/**
|
|
@@ -66,7 +66,7 @@ export declare class MatEditRevert<FormValue> extends CdkEditRevert<FormValue> {
|
|
|
66
66
|
export declare class MatPopoverEdit<C> extends CdkPopoverEdit<C> {
|
|
67
67
|
protected panelClass(): string;
|
|
68
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatPopoverEdit<any>, never>;
|
|
69
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatPopoverEdit<any>, "[matPopoverEdit]:not([matPopoverEditTabOut])", never, { "template": "matPopoverEdit"; "context": "matPopoverEditContext"; "colspan": "matPopoverEditColspan"; "disabled": "matPopoverEditDisabled"; }, {}, never, never, false, never>;
|
|
69
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatPopoverEdit<any>, "[matPopoverEdit]:not([matPopoverEditTabOut])", never, { "template": { "alias": "matPopoverEdit"; "required": false; }; "context": { "alias": "matPopoverEditContext"; "required": false; }; "colspan": { "alias": "matPopoverEditColspan"; "required": false; }; "disabled": { "alias": "matPopoverEditDisabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
export declare class MatPopoverEditModule {
|
|
@@ -83,7 +83,7 @@ export declare class MatPopoverEditModule {
|
|
|
83
83
|
export declare class MatPopoverEditTabOut<C> extends CdkPopoverEditTabOut<C> {
|
|
84
84
|
protected panelClass(): string;
|
|
85
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatPopoverEditTabOut<any>, never>;
|
|
86
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatPopoverEditTabOut<any>, "[matPopoverEdit][matPopoverEditTabOut]", never, { "template": "matPopoverEdit"; "context": "matPopoverEditContext"; "colspan": "matPopoverEditColspan"; "disabled": "matPopoverEditDisabled"; }, {}, never, never, false, never>;
|
|
86
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatPopoverEditTabOut<any>, "[matPopoverEdit][matPopoverEditTabOut]", never, { "template": { "alias": "matPopoverEdit"; "required": false; }; "context": { "alias": "matPopoverEditContext"; "required": false; }; "colspan": { "alias": "matPopoverEditColspan"; "required": false; }; "disabled": { "alias": "matPopoverEditDisabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
/**
|
package/selection/index.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export declare class MatRowSelection<T> extends CdkRowSelection<T> {
|
|
|
54
54
|
/** The value that is associated with the row */
|
|
55
55
|
value: T;
|
|
56
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatRowSelection<any>, never>;
|
|
57
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatRowSelection<any>, "[matRowSelection]", never, { "index": "matRowSelectionIndex"; "value": "matRowSelectionValue"; }, {}, never, never, false, never>;
|
|
57
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatRowSelection<any>, "[matRowSelection]", never, { "index": { "alias": "matRowSelectionIndex"; "required": false; }; "value": { "alias": "matRowSelectionValue"; "required": false; }; }, {}, never, never, false, never>;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/**
|
|
@@ -85,7 +85,7 @@ export declare class MatSelection<T> extends CdkSelection<T> {
|
|
|
85
85
|
/** Emits when selection changes. */
|
|
86
86
|
readonly change: EventEmitter<SelectionChange<T>>;
|
|
87
87
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSelection<any>, never>;
|
|
88
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSelection<any>, "[matSelection]", ["matSelection"], { "multiple": "matSelectionMultiple"; }, { "change": "matSelectionChange"; }, never, never, false, never>;
|
|
88
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSelection<any>, "[matSelection]", ["matSelection"], { "multiple": { "alias": "matSelectionMultiple"; "required": false; }; }, { "change": "matSelectionChange"; }, never, never, false, never>;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
/**
|
|
@@ -109,7 +109,7 @@ export declare class MatSelectionColumn<T> implements OnInit, OnDestroy {
|
|
|
109
109
|
ngOnDestroy(): void;
|
|
110
110
|
private _syncColumnDefName;
|
|
111
111
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSelectionColumn<any>, [{ optional: true; }, { optional: true; }]>;
|
|
112
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatSelectionColumn<any>, "mat-selection-column", never, { "name": "name"; }, {}, never, never, false, never>;
|
|
112
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatSelectionColumn<any>, "mat-selection-column", never, { "name": { "alias": "name"; "required": false; }; }, {}, never, never, false, never>;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
export declare class MatSelectionModule {
|
|
@@ -132,7 +132,7 @@ export declare class MatSelectionToggle<T> extends CdkSelectionToggle<T> {
|
|
|
132
132
|
/** The value that is associated with the toggle */
|
|
133
133
|
value: T;
|
|
134
134
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSelectionToggle<any>, never>;
|
|
135
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSelectionToggle<any>, "[matSelectionToggle]", ["matSelectionToggle"], { "index": "matSelectionToggleIndex"; "value": "matSelectionToggleValue"; }, {}, never, never, false, never>;
|
|
135
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSelectionToggle<any>, "[matSelectionToggle]", ["matSelectionToggle"], { "index": { "alias": "matSelectionToggleIndex"; "required": false; }; "value": { "alias": "matSelectionToggleValue"; "required": false; }; }, {}, never, never, false, never>;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
export { SelectionChange }
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { CdkSelectionToggle } from '@angular/cdk-experimental/selection';
|
|
9
|
-
import { Directive, Input } from '@angular/core';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
/**
|
|
12
|
-
* Makes the element a selection toggle.
|
|
13
|
-
*
|
|
14
|
-
* Must be used within a parent `MatSelection` directive.
|
|
15
|
-
* Must be provided with the value. If `trackBy` is used on `MatSelection`, the index of the value
|
|
16
|
-
* is required. If the element implements `ControlValueAccessor`, e.g. `MatCheckbox`, the directive
|
|
17
|
-
* automatically connects it with the selection state provided by the `MatSelection` directive. If
|
|
18
|
-
* not, use `checked$` to get the checked state of the value, and `toggle()` to change the selection
|
|
19
|
-
* state.
|
|
20
|
-
*/
|
|
21
|
-
class MatSelectionToggle extends CdkSelectionToggle {
|
|
22
|
-
}
|
|
23
|
-
MatSelectionToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatSelectionToggle, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
24
|
-
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 });
|
|
25
|
-
export { MatSelectionToggle };
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatSelectionToggle, decorators: [{
|
|
27
|
-
type: Directive,
|
|
28
|
-
args: [{
|
|
29
|
-
selector: '[matSelectionToggle]',
|
|
30
|
-
exportAs: 'matSelectionToggle',
|
|
31
|
-
inputs: ['index: matSelectionToggleIndex'],
|
|
32
|
-
providers: [{ provide: CdkSelectionToggle, useExisting: MatSelectionToggle }],
|
|
33
|
-
}]
|
|
34
|
-
}], propDecorators: { value: [{
|
|
35
|
-
type: Input,
|
|
36
|
-
args: ['matSelectionToggleValue']
|
|
37
|
-
}] } });
|
|
38
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0aW9uLXRvZ2dsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC1leHBlcmltZW50YWwvc2VsZWN0aW9uL3NlbGVjdGlvbi10b2dnbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0scUNBQXFDLENBQUM7QUFDdkUsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7O0FBRS9DOzs7Ozs7Ozs7R0FTRztBQUNILE1BTWEsa0JBQXNCLFNBQVEsa0JBQXFCOztzSEFBbkQsa0JBQWtCOzBHQUFsQixrQkFBa0IscUpBRmxCLENBQUMsRUFBQyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsV0FBVyxFQUFFLGtCQUFrQixFQUFDLENBQUM7U0FFaEUsa0JBQWtCO2tHQUFsQixrQkFBa0I7a0JBTjlCLFNBQVM7bUJBQUM7b0JBQ1QsUUFBUSxFQUFFLHNCQUFzQjtvQkFDaEMsUUFBUSxFQUFFLG9CQUFvQjtvQkFDOUIsTUFBTSxFQUFFLENBQUMsZ0NBQWdDLENBQUM7b0JBQzFDLFNBQVMsRUFBRSxDQUFDLEVBQUMsT0FBTyxFQUFFLGtCQUFrQixFQUFFLFdBQVcsb0JBQW9CLEVBQUMsQ0FBQztpQkFDNUU7OEJBRzRDLEtBQUs7c0JBQS9DLEtBQUs7dUJBQUMseUJBQXlCIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbmltcG9ydCB7Q2RrU2VsZWN0aW9uVG9nZ2xlfSBmcm9tICdAYW5ndWxhci9jZGstZXhwZXJpbWVudGFsL3NlbGVjdGlvbic7XG5pbXBvcnQge0RpcmVjdGl2ZSwgSW5wdXR9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vKipcbiAqIE1ha2VzIHRoZSBlbGVtZW50IGEgc2VsZWN0aW9uIHRvZ2dsZS5cbiAqXG4gKiBNdXN0IGJlIHVzZWQgd2l0aGluIGEgcGFyZW50IGBNYXRTZWxlY3Rpb25gIGRpcmVjdGl2ZS5cbiAqIE11c3QgYmUgcHJvdmlkZWQgd2l0aCB0aGUgdmFsdWUuIElmIGB0cmFja0J5YCBpcyB1c2VkIG9uIGBNYXRTZWxlY3Rpb25gLCB0aGUgaW5kZXggb2YgdGhlIHZhbHVlXG4gKiBpcyByZXF1aXJlZC4gSWYgdGhlIGVsZW1lbnQgaW1wbGVtZW50cyBgQ29udHJvbFZhbHVlQWNjZXNzb3JgLCBlLmcuIGBNYXRDaGVja2JveGAsIHRoZSBkaXJlY3RpdmVcbiAqIGF1dG9tYXRpY2FsbHkgY29ubmVjdHMgaXQgd2l0aCB0aGUgc2VsZWN0aW9uIHN0YXRlIHByb3ZpZGVkIGJ5IHRoZSBgTWF0U2VsZWN0aW9uYCBkaXJlY3RpdmUuIElmXG4gKiBub3QsIHVzZSBgY2hlY2tlZCRgIHRvIGdldCB0aGUgY2hlY2tlZCBzdGF0ZSBvZiB0aGUgdmFsdWUsIGFuZCBgdG9nZ2xlKClgIHRvIGNoYW5nZSB0aGUgc2VsZWN0aW9uXG4gKiBzdGF0ZS5cbiAqL1xuQERpcmVjdGl2ZSh7XG4gIHNlbGVjdG9yOiAnW21hdFNlbGVjdGlvblRvZ2dsZV0nLFxuICBleHBvcnRBczogJ21hdFNlbGVjdGlvblRvZ2dsZScsXG4gIGlucHV0czogWydpbmRleDogbWF0U2VsZWN0aW9uVG9nZ2xlSW5kZXgnXSxcbiAgcHJvdmlkZXJzOiBbe3Byb3ZpZGU6IENka1NlbGVjdGlvblRvZ2dsZSwgdXNlRXhpc3Rpbmc6IE1hdFNlbGVjdGlvblRvZ2dsZX1dLFxufSlcbmV4cG9ydCBjbGFzcyBNYXRTZWxlY3Rpb25Ub2dnbGU8VD4gZXh0ZW5kcyBDZGtTZWxlY3Rpb25Ub2dnbGU8VD4ge1xuICAvKiogVGhlIHZhbHVlIHRoYXQgaXMgYXNzb2NpYXRlZCB3aXRoIHRoZSB0b2dnbGUgKi9cbiAgQElucHV0KCdtYXRTZWxlY3Rpb25Ub2dnbGVWYWx1ZScpIG92ZXJyaWRlIHZhbHVlOiBUO1xufVxuIl19
|
|
@@ -1,477 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Inject, Directive, Component, ChangeDetectionStrategy, ViewEncapsulation, ViewChild, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/cdk-experimental/column-resize';
|
|
4
|
-
import { CdkFlexTableResizeStrategy, ResizeStrategy, ColumnResizeNotifier, HeaderRowEventDispatcher, ColumnResizeNotifierSource, TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER, ColumnResize, ResizeOverlayHandle, Resizable } from '@angular/cdk-experimental/column-resize';
|
|
5
|
-
export { TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER } from '@angular/cdk-experimental/column-resize';
|
|
6
|
-
import { DOCUMENT } from '@angular/common';
|
|
7
|
-
import * as i1$1 from '@angular/cdk/table';
|
|
8
|
-
import { _COALESCED_STYLE_SCHEDULER } from '@angular/cdk/table';
|
|
9
|
-
import { MatCommonModule } from '@angular/material/core';
|
|
10
|
-
import * as i4 from '@angular/cdk/overlay';
|
|
11
|
-
import { OverlayModule } from '@angular/cdk/overlay';
|
|
12
|
-
import * as i3 from '@angular/cdk/bidi';
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @license
|
|
16
|
-
* Copyright Google LLC All Rights Reserved.
|
|
17
|
-
*
|
|
18
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
19
|
-
* found in the LICENSE file at https://angular.io/license
|
|
20
|
-
*/
|
|
21
|
-
/**
|
|
22
|
-
* Overrides CdkFlexTableResizeStrategy to match mat-column elements.
|
|
23
|
-
*/
|
|
24
|
-
class MatFlexTableResizeStrategy extends CdkFlexTableResizeStrategy {
|
|
25
|
-
constructor(columnResize, styleScheduler, table, document) {
|
|
26
|
-
super(columnResize, styleScheduler, table, document);
|
|
27
|
-
}
|
|
28
|
-
getColumnCssClass(cssFriendlyColumnName) {
|
|
29
|
-
return `mat-column-${cssFriendlyColumnName}`;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
MatFlexTableResizeStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatFlexTableResizeStrategy, deps: [{ token: i1.ColumnResize }, { token: _COALESCED_STYLE_SCHEDULER }, { token: i1$1.CdkTable }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
33
|
-
MatFlexTableResizeStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatFlexTableResizeStrategy });
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatFlexTableResizeStrategy, decorators: [{
|
|
35
|
-
type: Injectable
|
|
36
|
-
}], ctorParameters: function () {
|
|
37
|
-
return [{ type: i1.ColumnResize }, { type: i1$1._CoalescedStyleScheduler, decorators: [{
|
|
38
|
-
type: Inject,
|
|
39
|
-
args: [_COALESCED_STYLE_SCHEDULER]
|
|
40
|
-
}] }, { type: i1$1.CdkTable }, { type: undefined, decorators: [{
|
|
41
|
-
type: Inject,
|
|
42
|
-
args: [DOCUMENT]
|
|
43
|
-
}] }];
|
|
44
|
-
} });
|
|
45
|
-
const FLEX_RESIZE_STRATEGY_PROVIDER = {
|
|
46
|
-
provide: ResizeStrategy,
|
|
47
|
-
useClass: MatFlexTableResizeStrategy,
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @license
|
|
52
|
-
* Copyright Google LLC All Rights Reserved.
|
|
53
|
-
*
|
|
54
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
55
|
-
* found in the LICENSE file at https://angular.io/license
|
|
56
|
-
*/
|
|
57
|
-
const PROVIDERS = [
|
|
58
|
-
ColumnResizeNotifier,
|
|
59
|
-
HeaderRowEventDispatcher,
|
|
60
|
-
ColumnResizeNotifierSource,
|
|
61
|
-
];
|
|
62
|
-
const TABLE_PROVIDERS = [
|
|
63
|
-
...PROVIDERS,
|
|
64
|
-
TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER,
|
|
65
|
-
];
|
|
66
|
-
const FLEX_PROVIDERS = [...PROVIDERS, FLEX_RESIZE_STRATEGY_PROVIDER];
|
|
67
|
-
const TABLE_HOST_BINDINGS = {
|
|
68
|
-
'class': 'mat-column-resize-table',
|
|
69
|
-
};
|
|
70
|
-
const FLEX_HOST_BINDINGS = {
|
|
71
|
-
'class': 'mat-column-resize-flex',
|
|
72
|
-
};
|
|
73
|
-
class AbstractMatColumnResize extends ColumnResize {
|
|
74
|
-
getTableHeight() {
|
|
75
|
-
return this.elementRef.nativeElement.offsetHeight;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* @license
|
|
81
|
-
* Copyright Google LLC All Rights Reserved.
|
|
82
|
-
*
|
|
83
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
84
|
-
* found in the LICENSE file at https://angular.io/license
|
|
85
|
-
*/
|
|
86
|
-
/**
|
|
87
|
-
* Explicitly enables column resizing for a table-based mat-table.
|
|
88
|
-
* Individual columns must be annotated specifically.
|
|
89
|
-
*/
|
|
90
|
-
class MatColumnResize extends AbstractMatColumnResize {
|
|
91
|
-
constructor(columnResizeNotifier, elementRef, eventDispatcher, ngZone, notifier) {
|
|
92
|
-
super();
|
|
93
|
-
this.columnResizeNotifier = columnResizeNotifier;
|
|
94
|
-
this.elementRef = elementRef;
|
|
95
|
-
this.eventDispatcher = eventDispatcher;
|
|
96
|
-
this.ngZone = ngZone;
|
|
97
|
-
this.notifier = notifier;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
MatColumnResize.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatColumnResize, deps: [{ token: i1.ColumnResizeNotifier }, { token: i0.ElementRef }, { token: i1.HeaderRowEventDispatcher }, { token: i0.NgZone }, { token: i1.ColumnResizeNotifierSource }], target: i0.ɵɵFactoryTarget.Directive });
|
|
101
|
-
MatColumnResize.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.2", type: MatColumnResize, selector: "table[mat-table][columnResize]", host: { classAttribute: "mat-column-resize-table" }, providers: [...TABLE_PROVIDERS, { provide: ColumnResize, useExisting: MatColumnResize }], usesInheritance: true, ngImport: i0 });
|
|
102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatColumnResize, decorators: [{
|
|
103
|
-
type: Directive,
|
|
104
|
-
args: [{
|
|
105
|
-
selector: 'table[mat-table][columnResize]',
|
|
106
|
-
host: TABLE_HOST_BINDINGS,
|
|
107
|
-
providers: [...TABLE_PROVIDERS, { provide: ColumnResize, useExisting: MatColumnResize }],
|
|
108
|
-
}]
|
|
109
|
-
}], ctorParameters: function () { return [{ type: i1.ColumnResizeNotifier }, { type: i0.ElementRef }, { type: i1.HeaderRowEventDispatcher }, { type: i0.NgZone }, { type: i1.ColumnResizeNotifierSource }]; } });
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* @license
|
|
113
|
-
* Copyright Google LLC All Rights Reserved.
|
|
114
|
-
*
|
|
115
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
116
|
-
* found in the LICENSE file at https://angular.io/license
|
|
117
|
-
*/
|
|
118
|
-
/**
|
|
119
|
-
* Explicitly enables column resizing for a flexbox-based mat-table.
|
|
120
|
-
* Individual columns must be annotated specifically.
|
|
121
|
-
*/
|
|
122
|
-
class MatColumnResizeFlex extends AbstractMatColumnResize {
|
|
123
|
-
constructor(columnResizeNotifier, elementRef, eventDispatcher, ngZone, notifier) {
|
|
124
|
-
super();
|
|
125
|
-
this.columnResizeNotifier = columnResizeNotifier;
|
|
126
|
-
this.elementRef = elementRef;
|
|
127
|
-
this.eventDispatcher = eventDispatcher;
|
|
128
|
-
this.ngZone = ngZone;
|
|
129
|
-
this.notifier = notifier;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
MatColumnResizeFlex.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatColumnResizeFlex, deps: [{ token: i1.ColumnResizeNotifier }, { token: i0.ElementRef }, { token: i1.HeaderRowEventDispatcher }, { token: i0.NgZone }, { token: i1.ColumnResizeNotifierSource }], target: i0.ɵɵFactoryTarget.Directive });
|
|
133
|
-
MatColumnResizeFlex.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.2", type: MatColumnResizeFlex, selector: "mat-table[columnResize]", host: { classAttribute: "mat-column-resize-flex" }, providers: [...FLEX_PROVIDERS, { provide: ColumnResize, useExisting: MatColumnResizeFlex }], usesInheritance: true, ngImport: i0 });
|
|
134
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatColumnResizeFlex, decorators: [{
|
|
135
|
-
type: Directive,
|
|
136
|
-
args: [{
|
|
137
|
-
selector: 'mat-table[columnResize]',
|
|
138
|
-
host: FLEX_HOST_BINDINGS,
|
|
139
|
-
providers: [...FLEX_PROVIDERS, { provide: ColumnResize, useExisting: MatColumnResizeFlex }],
|
|
140
|
-
}]
|
|
141
|
-
}], ctorParameters: function () { return [{ type: i1.ColumnResizeNotifier }, { type: i0.ElementRef }, { type: i1.HeaderRowEventDispatcher }, { type: i0.NgZone }, { type: i1.ColumnResizeNotifierSource }]; } });
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* @license
|
|
145
|
-
* Copyright Google LLC All Rights Reserved.
|
|
146
|
-
*
|
|
147
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
148
|
-
* found in the LICENSE file at https://angular.io/license
|
|
149
|
-
*/
|
|
150
|
-
/**
|
|
151
|
-
* Implicitly enables column resizing for a table-based mat-table.
|
|
152
|
-
* Individual columns will be resizable unless opted out.
|
|
153
|
-
*/
|
|
154
|
-
class MatDefaultEnabledColumnResize extends AbstractMatColumnResize {
|
|
155
|
-
constructor(columnResizeNotifier, elementRef, eventDispatcher, ngZone, notifier) {
|
|
156
|
-
super();
|
|
157
|
-
this.columnResizeNotifier = columnResizeNotifier;
|
|
158
|
-
this.elementRef = elementRef;
|
|
159
|
-
this.eventDispatcher = eventDispatcher;
|
|
160
|
-
this.ngZone = ngZone;
|
|
161
|
-
this.notifier = notifier;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
MatDefaultEnabledColumnResize.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatDefaultEnabledColumnResize, deps: [{ token: i1.ColumnResizeNotifier }, { token: i0.ElementRef }, { token: i1.HeaderRowEventDispatcher }, { token: i0.NgZone }, { token: i1.ColumnResizeNotifierSource }], target: i0.ɵɵFactoryTarget.Directive });
|
|
165
|
-
MatDefaultEnabledColumnResize.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.2", type: MatDefaultEnabledColumnResize, selector: "table[mat-table]", host: { classAttribute: "mat-column-resize-table" }, providers: [
|
|
166
|
-
...TABLE_PROVIDERS,
|
|
167
|
-
{ provide: ColumnResize, useExisting: MatDefaultEnabledColumnResize },
|
|
168
|
-
], usesInheritance: true, ngImport: i0 });
|
|
169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatDefaultEnabledColumnResize, decorators: [{
|
|
170
|
-
type: Directive,
|
|
171
|
-
args: [{
|
|
172
|
-
selector: 'table[mat-table]',
|
|
173
|
-
host: TABLE_HOST_BINDINGS,
|
|
174
|
-
providers: [
|
|
175
|
-
...TABLE_PROVIDERS,
|
|
176
|
-
{ provide: ColumnResize, useExisting: MatDefaultEnabledColumnResize },
|
|
177
|
-
],
|
|
178
|
-
}]
|
|
179
|
-
}], ctorParameters: function () { return [{ type: i1.ColumnResizeNotifier }, { type: i0.ElementRef }, { type: i1.HeaderRowEventDispatcher }, { type: i0.NgZone }, { type: i1.ColumnResizeNotifierSource }]; } });
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* @license
|
|
183
|
-
* Copyright Google LLC All Rights Reserved.
|
|
184
|
-
*
|
|
185
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
186
|
-
* found in the LICENSE file at https://angular.io/license
|
|
187
|
-
*/
|
|
188
|
-
/**
|
|
189
|
-
* Implicitly enables column resizing for a flexbox-based mat-table.
|
|
190
|
-
* Individual columns will be resizable unless opted out.
|
|
191
|
-
*/
|
|
192
|
-
class MatDefaultEnabledColumnResizeFlex extends AbstractMatColumnResize {
|
|
193
|
-
constructor(columnResizeNotifier, elementRef, eventDispatcher, ngZone, notifier) {
|
|
194
|
-
super();
|
|
195
|
-
this.columnResizeNotifier = columnResizeNotifier;
|
|
196
|
-
this.elementRef = elementRef;
|
|
197
|
-
this.eventDispatcher = eventDispatcher;
|
|
198
|
-
this.ngZone = ngZone;
|
|
199
|
-
this.notifier = notifier;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
MatDefaultEnabledColumnResizeFlex.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatDefaultEnabledColumnResizeFlex, deps: [{ token: i1.ColumnResizeNotifier }, { token: i0.ElementRef }, { token: i1.HeaderRowEventDispatcher }, { token: i0.NgZone }, { token: i1.ColumnResizeNotifierSource }], target: i0.ɵɵFactoryTarget.Directive });
|
|
203
|
-
MatDefaultEnabledColumnResizeFlex.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.2", type: MatDefaultEnabledColumnResizeFlex, selector: "mat-table", host: { classAttribute: "mat-column-resize-flex" }, providers: [
|
|
204
|
-
...FLEX_PROVIDERS,
|
|
205
|
-
{ provide: ColumnResize, useExisting: MatDefaultEnabledColumnResizeFlex },
|
|
206
|
-
], usesInheritance: true, ngImport: i0 });
|
|
207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatDefaultEnabledColumnResizeFlex, decorators: [{
|
|
208
|
-
type: Directive,
|
|
209
|
-
args: [{
|
|
210
|
-
selector: 'mat-table',
|
|
211
|
-
host: FLEX_HOST_BINDINGS,
|
|
212
|
-
providers: [
|
|
213
|
-
...FLEX_PROVIDERS,
|
|
214
|
-
{ provide: ColumnResize, useExisting: MatDefaultEnabledColumnResizeFlex },
|
|
215
|
-
],
|
|
216
|
-
}]
|
|
217
|
-
}], ctorParameters: function () { return [{ type: i1.ColumnResizeNotifier }, { type: i0.ElementRef }, { type: i1.HeaderRowEventDispatcher }, { type: i0.NgZone }, { type: i1.ColumnResizeNotifierSource }]; } });
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* @license
|
|
221
|
-
* Copyright Google LLC All Rights Reserved.
|
|
222
|
-
*
|
|
223
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
224
|
-
* found in the LICENSE file at https://angular.io/license
|
|
225
|
-
*/
|
|
226
|
-
/**
|
|
227
|
-
* Component shown over the edge of a resizable column that is responsible
|
|
228
|
-
* for handling column resize mouse events and displaying a vertical line along the column edge.
|
|
229
|
-
*/
|
|
230
|
-
class MatColumnResizeOverlayHandle extends ResizeOverlayHandle {
|
|
231
|
-
constructor(columnDef, columnResize, directionality, elementRef, eventDispatcher, ngZone, resizeNotifier, resizeRef, styleScheduler, document) {
|
|
232
|
-
super();
|
|
233
|
-
this.columnDef = columnDef;
|
|
234
|
-
this.columnResize = columnResize;
|
|
235
|
-
this.directionality = directionality;
|
|
236
|
-
this.elementRef = elementRef;
|
|
237
|
-
this.eventDispatcher = eventDispatcher;
|
|
238
|
-
this.ngZone = ngZone;
|
|
239
|
-
this.resizeNotifier = resizeNotifier;
|
|
240
|
-
this.resizeRef = resizeRef;
|
|
241
|
-
this.styleScheduler = styleScheduler;
|
|
242
|
-
this.document = document;
|
|
243
|
-
}
|
|
244
|
-
updateResizeActive(active) {
|
|
245
|
-
super.updateResizeActive(active);
|
|
246
|
-
const originHeight = this.resizeRef.origin.nativeElement.offsetHeight;
|
|
247
|
-
this.topElement.nativeElement.style.height = `${originHeight}px`;
|
|
248
|
-
this.resizeRef.overlayRef.updateSize({
|
|
249
|
-
height: active
|
|
250
|
-
? this.columnResize.getTableHeight()
|
|
251
|
-
: originHeight,
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
MatColumnResizeOverlayHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatColumnResizeOverlayHandle, deps: [{ token: i1$1.CdkColumnDef }, { token: i1.ColumnResize }, { token: i3.Directionality }, { token: i0.ElementRef }, { token: i1.HeaderRowEventDispatcher }, { token: i0.NgZone }, { token: i1.ColumnResizeNotifierSource }, { token: i1.ResizeRef }, { token: _COALESCED_STYLE_SCHEDULER }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
256
|
-
MatColumnResizeOverlayHandle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0-next.2", type: MatColumnResizeOverlayHandle, selector: "ng-component", host: { classAttribute: "mat-column-resize-overlay-thumb" }, viewQueries: [{ propertyName: "topElement", first: true, predicate: ["top"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: '<div #top class="mat-column-resize-overlay-thumb-top"></div>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatColumnResizeOverlayHandle, decorators: [{
|
|
258
|
-
type: Component,
|
|
259
|
-
args: [{
|
|
260
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
261
|
-
encapsulation: ViewEncapsulation.None,
|
|
262
|
-
host: { 'class': 'mat-column-resize-overlay-thumb' },
|
|
263
|
-
template: '<div #top class="mat-column-resize-overlay-thumb-top"></div>',
|
|
264
|
-
}]
|
|
265
|
-
}], ctorParameters: function () {
|
|
266
|
-
return [{ type: i1$1.CdkColumnDef }, { type: i1.ColumnResize }, { type: i3.Directionality }, { type: i0.ElementRef }, { type: i1.HeaderRowEventDispatcher }, { type: i0.NgZone }, { type: i1.ColumnResizeNotifierSource }, { type: i1.ResizeRef }, { type: i1$1._CoalescedStyleScheduler, decorators: [{
|
|
267
|
-
type: Inject,
|
|
268
|
-
args: [_COALESCED_STYLE_SCHEDULER]
|
|
269
|
-
}] }, { type: undefined, decorators: [{
|
|
270
|
-
type: Inject,
|
|
271
|
-
args: [DOCUMENT]
|
|
272
|
-
}] }];
|
|
273
|
-
}, propDecorators: { topElement: [{
|
|
274
|
-
type: ViewChild,
|
|
275
|
-
args: ['top', { static: true }]
|
|
276
|
-
}] } });
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* @license
|
|
280
|
-
* Copyright Google LLC All Rights Reserved.
|
|
281
|
-
*
|
|
282
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
283
|
-
* found in the LICENSE file at https://angular.io/license
|
|
284
|
-
*/
|
|
285
|
-
class AbstractMatResizable extends Resizable {
|
|
286
|
-
constructor() {
|
|
287
|
-
super(...arguments);
|
|
288
|
-
this.minWidthPxInternal = 32;
|
|
289
|
-
}
|
|
290
|
-
getInlineHandleCssClassName() {
|
|
291
|
-
return 'mat-resizable-handle';
|
|
292
|
-
}
|
|
293
|
-
getOverlayHandleComponentType() {
|
|
294
|
-
return MatColumnResizeOverlayHandle;
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
const RESIZABLE_HOST_BINDINGS = {
|
|
298
|
-
'class': 'mat-resizable',
|
|
299
|
-
};
|
|
300
|
-
const RESIZABLE_INPUTS = [
|
|
301
|
-
'minWidthPx: matResizableMinWidthPx',
|
|
302
|
-
'maxWidthPx: matResizableMaxWidthPx',
|
|
303
|
-
];
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* @license
|
|
307
|
-
* Copyright Google LLC All Rights Reserved.
|
|
308
|
-
*
|
|
309
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
310
|
-
* found in the LICENSE file at https://angular.io/license
|
|
311
|
-
*/
|
|
312
|
-
/**
|
|
313
|
-
* Implicitly enables column resizing for a mat-header-cell unless the disableResize attribute
|
|
314
|
-
* is present.
|
|
315
|
-
*/
|
|
316
|
-
class MatDefaultResizable extends AbstractMatResizable {
|
|
317
|
-
constructor(columnDef, columnResize, directionality, document, elementRef, eventDispatcher, injector, ngZone, overlay, resizeNotifier, resizeStrategy, styleScheduler, viewContainerRef, changeDetectorRef) {
|
|
318
|
-
super();
|
|
319
|
-
this.columnDef = columnDef;
|
|
320
|
-
this.columnResize = columnResize;
|
|
321
|
-
this.directionality = directionality;
|
|
322
|
-
this.elementRef = elementRef;
|
|
323
|
-
this.eventDispatcher = eventDispatcher;
|
|
324
|
-
this.injector = injector;
|
|
325
|
-
this.ngZone = ngZone;
|
|
326
|
-
this.overlay = overlay;
|
|
327
|
-
this.resizeNotifier = resizeNotifier;
|
|
328
|
-
this.resizeStrategy = resizeStrategy;
|
|
329
|
-
this.styleScheduler = styleScheduler;
|
|
330
|
-
this.viewContainerRef = viewContainerRef;
|
|
331
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
332
|
-
this.document = document;
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
MatDefaultResizable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatDefaultResizable, deps: [{ token: i1$1.CdkColumnDef }, { token: i1.ColumnResize }, { token: i3.Directionality }, { token: DOCUMENT }, { token: i0.ElementRef }, { token: i1.HeaderRowEventDispatcher }, { token: i0.Injector }, { token: i0.NgZone }, { token: i4.Overlay }, { token: i1.ColumnResizeNotifierSource }, { token: i1.ResizeStrategy }, { token: _COALESCED_STYLE_SCHEDULER }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
336
|
-
MatDefaultResizable.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.2", type: MatDefaultResizable, selector: "mat-header-cell:not([disableResize]), th[mat-header-cell]:not([disableResize])", inputs: { minWidthPx: ["matResizableMinWidthPx", "minWidthPx"], maxWidthPx: ["matResizableMaxWidthPx", "maxWidthPx"] }, host: { classAttribute: "mat-resizable" }, usesInheritance: true, ngImport: i0 });
|
|
337
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatDefaultResizable, decorators: [{
|
|
338
|
-
type: Directive,
|
|
339
|
-
args: [{
|
|
340
|
-
selector: 'mat-header-cell:not([disableResize]), th[mat-header-cell]:not([disableResize])',
|
|
341
|
-
host: RESIZABLE_HOST_BINDINGS,
|
|
342
|
-
inputs: RESIZABLE_INPUTS,
|
|
343
|
-
}]
|
|
344
|
-
}], ctorParameters: function () {
|
|
345
|
-
return [{ type: i1$1.CdkColumnDef }, { type: i1.ColumnResize }, { type: i3.Directionality }, { type: undefined, decorators: [{
|
|
346
|
-
type: Inject,
|
|
347
|
-
args: [DOCUMENT]
|
|
348
|
-
}] }, { type: i0.ElementRef }, { type: i1.HeaderRowEventDispatcher }, { type: i0.Injector }, { type: i0.NgZone }, { type: i4.Overlay }, { type: i1.ColumnResizeNotifierSource }, { type: i1.ResizeStrategy }, { type: i1$1._CoalescedStyleScheduler, decorators: [{
|
|
349
|
-
type: Inject,
|
|
350
|
-
args: [_COALESCED_STYLE_SCHEDULER]
|
|
351
|
-
}] }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }];
|
|
352
|
-
} });
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* @license
|
|
356
|
-
* Copyright Google LLC All Rights Reserved.
|
|
357
|
-
*
|
|
358
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
359
|
-
* found in the LICENSE file at https://angular.io/license
|
|
360
|
-
*/
|
|
361
|
-
/**
|
|
362
|
-
* Explicitly enables column resizing for a mat-header-cell.
|
|
363
|
-
*/
|
|
364
|
-
class MatResizable extends AbstractMatResizable {
|
|
365
|
-
constructor(columnDef, columnResize, directionality, document, elementRef, eventDispatcher, injector, ngZone, overlay, resizeNotifier, resizeStrategy, styleScheduler, viewContainerRef, changeDetectorRef) {
|
|
366
|
-
super();
|
|
367
|
-
this.columnDef = columnDef;
|
|
368
|
-
this.columnResize = columnResize;
|
|
369
|
-
this.directionality = directionality;
|
|
370
|
-
this.elementRef = elementRef;
|
|
371
|
-
this.eventDispatcher = eventDispatcher;
|
|
372
|
-
this.injector = injector;
|
|
373
|
-
this.ngZone = ngZone;
|
|
374
|
-
this.overlay = overlay;
|
|
375
|
-
this.resizeNotifier = resizeNotifier;
|
|
376
|
-
this.resizeStrategy = resizeStrategy;
|
|
377
|
-
this.styleScheduler = styleScheduler;
|
|
378
|
-
this.viewContainerRef = viewContainerRef;
|
|
379
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
380
|
-
this.document = document;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
MatResizable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatResizable, deps: [{ token: i1$1.CdkColumnDef }, { token: i1.ColumnResize }, { token: i3.Directionality }, { token: DOCUMENT }, { token: i0.ElementRef }, { token: i1.HeaderRowEventDispatcher }, { token: i0.Injector }, { token: i0.NgZone }, { token: i4.Overlay }, { token: i1.ColumnResizeNotifierSource }, { token: i1.ResizeStrategy }, { token: _COALESCED_STYLE_SCHEDULER }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
384
|
-
MatResizable.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.2", type: MatResizable, selector: "mat-header-cell[resizable], th[mat-header-cell][resizable]", inputs: { minWidthPx: ["matResizableMinWidthPx", "minWidthPx"], maxWidthPx: ["matResizableMaxWidthPx", "maxWidthPx"] }, host: { classAttribute: "mat-resizable" }, usesInheritance: true, ngImport: i0 });
|
|
385
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatResizable, decorators: [{
|
|
386
|
-
type: Directive,
|
|
387
|
-
args: [{
|
|
388
|
-
selector: 'mat-header-cell[resizable], th[mat-header-cell][resizable]',
|
|
389
|
-
host: RESIZABLE_HOST_BINDINGS,
|
|
390
|
-
inputs: RESIZABLE_INPUTS,
|
|
391
|
-
}]
|
|
392
|
-
}], ctorParameters: function () {
|
|
393
|
-
return [{ type: i1$1.CdkColumnDef }, { type: i1.ColumnResize }, { type: i3.Directionality }, { type: undefined, decorators: [{
|
|
394
|
-
type: Inject,
|
|
395
|
-
args: [DOCUMENT]
|
|
396
|
-
}] }, { type: i0.ElementRef }, { type: i1.HeaderRowEventDispatcher }, { type: i0.Injector }, { type: i0.NgZone }, { type: i4.Overlay }, { type: i1.ColumnResizeNotifierSource }, { type: i1.ResizeStrategy }, { type: i1$1._CoalescedStyleScheduler, decorators: [{
|
|
397
|
-
type: Inject,
|
|
398
|
-
args: [_COALESCED_STYLE_SCHEDULER]
|
|
399
|
-
}] }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }];
|
|
400
|
-
} });
|
|
401
|
-
|
|
402
|
-
/**
|
|
403
|
-
* @license
|
|
404
|
-
* Copyright Google LLC All Rights Reserved.
|
|
405
|
-
*
|
|
406
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
407
|
-
* found in the LICENSE file at https://angular.io/license
|
|
408
|
-
*/
|
|
409
|
-
const ENTRY_COMMON_COMPONENTS = [MatColumnResizeOverlayHandle];
|
|
410
|
-
class MatColumnResizeCommonModule {
|
|
411
|
-
}
|
|
412
|
-
MatColumnResizeCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatColumnResizeCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
413
|
-
MatColumnResizeCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatColumnResizeCommonModule, declarations: [MatColumnResizeOverlayHandle], exports: [MatColumnResizeOverlayHandle] });
|
|
414
|
-
MatColumnResizeCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatColumnResizeCommonModule });
|
|
415
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatColumnResizeCommonModule, decorators: [{
|
|
416
|
-
type: NgModule,
|
|
417
|
-
args: [{
|
|
418
|
-
declarations: ENTRY_COMMON_COMPONENTS,
|
|
419
|
-
exports: ENTRY_COMMON_COMPONENTS,
|
|
420
|
-
}]
|
|
421
|
-
}] });
|
|
422
|
-
const IMPORTS = [MatCommonModule, OverlayModule, MatColumnResizeCommonModule];
|
|
423
|
-
class MatDefaultEnabledColumnResizeModule {
|
|
424
|
-
}
|
|
425
|
-
MatDefaultEnabledColumnResizeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatDefaultEnabledColumnResizeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
426
|
-
MatDefaultEnabledColumnResizeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatDefaultEnabledColumnResizeModule, declarations: [MatDefaultEnabledColumnResize,
|
|
427
|
-
MatDefaultEnabledColumnResizeFlex,
|
|
428
|
-
MatDefaultResizable], imports: [MatCommonModule, OverlayModule, MatColumnResizeCommonModule], exports: [MatDefaultEnabledColumnResize, MatDefaultEnabledColumnResizeFlex, MatDefaultResizable] });
|
|
429
|
-
MatDefaultEnabledColumnResizeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatDefaultEnabledColumnResizeModule, imports: [IMPORTS] });
|
|
430
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatDefaultEnabledColumnResizeModule, decorators: [{
|
|
431
|
-
type: NgModule,
|
|
432
|
-
args: [{
|
|
433
|
-
imports: IMPORTS,
|
|
434
|
-
declarations: [
|
|
435
|
-
MatDefaultEnabledColumnResize,
|
|
436
|
-
MatDefaultEnabledColumnResizeFlex,
|
|
437
|
-
MatDefaultResizable,
|
|
438
|
-
],
|
|
439
|
-
exports: [MatDefaultEnabledColumnResize, MatDefaultEnabledColumnResizeFlex, MatDefaultResizable],
|
|
440
|
-
}]
|
|
441
|
-
}] });
|
|
442
|
-
class MatColumnResizeModule {
|
|
443
|
-
}
|
|
444
|
-
MatColumnResizeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatColumnResizeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
445
|
-
MatColumnResizeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatColumnResizeModule, declarations: [MatColumnResize, MatColumnResizeFlex, MatResizable], imports: [MatCommonModule, OverlayModule, MatColumnResizeCommonModule], exports: [MatColumnResize, MatColumnResizeFlex, MatResizable] });
|
|
446
|
-
MatColumnResizeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatColumnResizeModule, imports: [IMPORTS] });
|
|
447
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MatColumnResizeModule, decorators: [{
|
|
448
|
-
type: NgModule,
|
|
449
|
-
args: [{
|
|
450
|
-
imports: IMPORTS,
|
|
451
|
-
declarations: [MatColumnResize, MatColumnResizeFlex, MatResizable],
|
|
452
|
-
exports: [MatColumnResize, MatColumnResizeFlex, MatResizable],
|
|
453
|
-
}]
|
|
454
|
-
}] });
|
|
455
|
-
|
|
456
|
-
/**
|
|
457
|
-
* @license
|
|
458
|
-
* Copyright Google LLC All Rights Reserved.
|
|
459
|
-
*
|
|
460
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
461
|
-
* found in the LICENSE file at https://angular.io/license
|
|
462
|
-
*/
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
* @license
|
|
466
|
-
* Copyright Google LLC All Rights Reserved.
|
|
467
|
-
*
|
|
468
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
469
|
-
* found in the LICENSE file at https://angular.io/license
|
|
470
|
-
*/
|
|
471
|
-
|
|
472
|
-
/**
|
|
473
|
-
* Generated bundle index. Do not edit.
|
|
474
|
-
*/
|
|
475
|
-
|
|
476
|
-
export { FLEX_RESIZE_STRATEGY_PROVIDER, MatColumnResize, MatColumnResizeCommonModule, MatColumnResizeFlex, MatColumnResizeModule, MatColumnResizeOverlayHandle, MatDefaultEnabledColumnResize, MatDefaultEnabledColumnResizeFlex, MatDefaultEnabledColumnResizeModule, MatDefaultResizable, MatFlexTableResizeStrategy, MatResizable };
|
|
477
|
-
//# sourceMappingURL=column-resize.mjs.map
|