@angular/material-experimental 16.0.0-next.5 → 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/{esm2020 → esm2022}/column-resize/column-resize-directives/column-resize-flex.mjs +3 -3
- package/{esm2020 → esm2022}/column-resize/column-resize-directives/column-resize.mjs +3 -3
- package/{esm2020 → esm2022}/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +6 -6
- package/{esm2020 → esm2022}/column-resize/column-resize-directives/default-enabled-column-resize.mjs +6 -6
- package/{esm2020 → esm2022}/column-resize/column-resize-module.mjs +12 -12
- package/{esm2020 → esm2022}/column-resize/overlay-handle.mjs +3 -3
- package/{esm2020 → esm2022}/column-resize/resizable-directives/default-enabled-resizable.mjs +3 -3
- package/{esm2020 → esm2022}/column-resize/resizable-directives/resizable.mjs +3 -3
- package/{esm2020 → esm2022}/column-resize/resize-strategy.mjs +3 -3
- package/{esm2020 → esm2022}/menubar/menubar-item.mjs +3 -3
- package/{esm2020 → esm2022}/menubar/menubar-module.mjs +4 -4
- package/{esm2020 → esm2022}/menubar/menubar.mjs +8 -8
- package/{esm2020 → esm2022}/popover-edit/lens-directives.mjs +7 -7
- package/{esm2020 → esm2022}/popover-edit/popover-edit-module.mjs +17 -17
- package/{esm2020 → esm2022}/popover-edit/table-directives.mjs +9 -9
- package/{esm2020 → esm2022}/selection/row-selection.mjs +3 -3
- package/{esm2020 → esm2022}/selection/select-all.mjs +3 -3
- package/{esm2020 → esm2022}/selection/selection-column.mjs +5 -5
- package/{esm2020 → esm2022}/selection/selection-module.mjs +8 -8
- package/esm2022/selection/selection-toggle.mjs +43 -0
- package/{esm2020 → esm2022}/selection/selection.mjs +3 -3
- package/{esm2020 → esm2022}/version.mjs +1 -1
- package/{fesm2020 → fesm2022}/column-resize.mjs +33 -33
- package/{fesm2020 → fesm2022}/column-resize.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/material-experimental.mjs +1 -1
- package/{fesm2015 → fesm2022}/material-experimental.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/menubar.mjs +12 -12
- package/{fesm2020 → fesm2022}/menubar.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/popover-edit.mjs +30 -30
- package/{fesm2020 → fesm2022}/popover-edit.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/selection.mjs +24 -19
- package/fesm2022/selection.mjs.map +1 -0
- package/package.json +19 -33
- package/esm2020/selection/selection-toggle.mjs +0 -38
- package/fesm2015/column-resize.mjs +0 -384
- package/fesm2015/column-resize.mjs.map +0 -1
- package/fesm2015/menubar.mjs +0 -84
- package/fesm2015/menubar.mjs.map +0 -1
- package/fesm2015/popover-edit.mjs +0 -212
- package/fesm2015/popover-edit.mjs.map +0 -1
- package/fesm2015/selection.mjs +0 -260
- package/fesm2015/selection.mjs.map +0 -1
- package/fesm2020/material-experimental.mjs +0 -7
- package/fesm2020/material-experimental.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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection.mjs","sources":["../../../../../../src/material-experimental/selection/selection.ts","../../../../../../src/material-experimental/selection/select-all.ts","../../../../../../src/material-experimental/selection/selection-toggle.ts","../../../../../../src/material-experimental/selection/selection-column.ts","../../../../../../src/material-experimental/selection/row-selection.ts","../../../../../../src/material-experimental/selection/selection-module.ts","../../../../../../src/material-experimental/selection/selection_public_index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {coerceBooleanProperty} from '@angular/cdk/coercion';\nimport {CdkSelection, SelectionChange} from '@angular/cdk-experimental/selection';\nimport {Directive, Input, Output, EventEmitter} from '@angular/core';\n\n/**\n * Manages the selection states of the items and provides methods to check and update the selection\n * states.\n * It must be applied to the parent element if `matSelectionToggle`, `matSelectAll`,\n * `matRowSelection` and `matSelectionColumn` are applied.\n */\n@Directive({\n selector: '[matSelection]',\n exportAs: 'matSelection',\n providers: [{provide: CdkSelection, useExisting: MatSelection}],\n})\n// tslint:disable-next-line: coercion-types\nexport class MatSelection<T> extends CdkSelection<T> {\n /** Whether to support multiple selection */\n @Input('matSelectionMultiple')\n override get multiple(): boolean {\n return this._multiple;\n }\n override set multiple(multiple: boolean) {\n this._multiple = coerceBooleanProperty(multiple);\n }\n\n /** Emits when selection changes. */\n @Output('matSelectionChange') override readonly change = new EventEmitter<SelectionChange<T>>();\n}\n\n/**\n * Represents the change in the selection set.\n */\nexport {SelectionChange} from '@angular/cdk-experimental/selection';\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {CdkSelectAll} from '@angular/cdk-experimental/selection';\nimport {Directive} from '@angular/core';\n\n/**\n * Makes the element a select-all toggle.\n *\n * Must be used within a parent `MatSelection` directive. It toggles the selection states\n * of all the selection toggles connected with the `MatSelection` directive.\n * If the element implements `ControlValueAccessor`, e.g. `MatCheckbox`, the directive\n * automatically connects it with the select-all state provided by the `MatSelection` directive. If\n * not, use `checked` to get the checked state, `indeterminate` to get the indeterminate state,\n * and `toggle()` to change the selection state.\n */\n@Directive({\n selector: '[matSelectAll]',\n exportAs: 'matSelectAll',\n providers: [{provide: CdkSelectAll, useExisting: MatSelectAll}],\n})\nexport class MatSelectAll<T> extends CdkSelectAll<T> {}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {CdkSelectionToggle} from '@angular/cdk-experimental/selection';\nimport {Directive, Input} from '@angular/core';\n\n/**\n * Makes the element a selection toggle.\n *\n * Must be used within a parent `MatSelection` directive.\n * Must be provided with the value. If `trackBy` is used on `MatSelection`, the index of the value\n * is required. If the element implements `ControlValueAccessor`, e.g. `MatCheckbox`, the directive\n * automatically connects it with the selection state provided by the `MatSelection` directive. If\n * not, use `checked$` to get the checked state of the value, and `toggle()` to change the selection\n * state.\n */\n@Directive({\n selector: '[matSelectionToggle]',\n exportAs: 'matSelectionToggle',\n inputs: ['index: matSelectionToggleIndex'],\n providers: [{provide: CdkSelectionToggle, useExisting: MatSelectionToggle}],\n})\nexport class MatSelectionToggle<T> extends CdkSelectionToggle<T> {\n /** The value that is associated with the toggle */\n @Input('matSelectionToggleValue') override value: T = undefined!;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {\n MatLegacyCellDef,\n MatLegacyColumnDef,\n MatLegacyHeaderCellDef,\n MatLegacyTable,\n} from '@angular/material/legacy-table';\nimport {\n Component,\n Input,\n OnDestroy,\n OnInit,\n Optional,\n ViewChild,\n ChangeDetectionStrategy,\n ViewEncapsulation,\n Inject,\n} from '@angular/core';\n\nimport {MatSelection} from './selection';\n\n/**\n * Column that adds row selecting checkboxes and a select-all checkbox if `matSelectionMultiple` is\n * `true`.\n *\n * Must be used within a parent `MatSelection` directive.\n */\n@Component({\n selector: 'mat-selection-column',\n template: `\n <ng-container matColumnDef>\n <th mat-header-cell *matHeaderCellDef class=\"mat-selection-column-header\">\n <mat-checkbox *ngIf=\"selection.multiple\"\n matSelectAll\n #allToggler=\"matSelectAll\"\n [indeterminate]=\"allToggler.indeterminate | async\"></mat-checkbox>\n </th>\n <td mat-cell *matCellDef=\"let row; let i = $index\" class=\"mat-selection-column-cell\">\n <mat-checkbox\n matSelectionToggle\n [matSelectionToggleValue]=\"row\"\n [matSelectionToggleIndex]=\"i\"></mat-checkbox>\n </td>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrls: ['selection-column.css'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class MatSelectionColumn<T> implements OnInit, OnDestroy {\n /** Column name that should be used to reference this column. */\n @Input()\n get name(): string {\n return this._name;\n }\n set name(name: string) {\n this._name = name;\n\n this._syncColumnDefName();\n }\n private _name: string;\n\n @ViewChild(MatLegacyColumnDef, {static: true}) private readonly _columnDef: MatLegacyColumnDef;\n @ViewChild(MatLegacyCellDef, {static: true}) private readonly _cell: MatLegacyCellDef;\n @ViewChild(MatLegacyHeaderCellDef, {static: true})\n private readonly _headerCell: MatLegacyHeaderCellDef;\n\n constructor(\n @Optional() @Inject(MatLegacyTable) private _table: MatLegacyTable<T>,\n @Optional() @Inject(MatSelection) readonly selection: MatSelection<T>,\n ) {}\n\n ngOnInit() {\n if (!this.selection && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('MatSelectionColumn: missing MatSelection in the parent');\n }\n\n this._syncColumnDefName();\n\n if (this._table) {\n this._columnDef.cell = this._cell;\n this._columnDef.headerCell = this._headerCell;\n this._table.addColumnDef(this._columnDef);\n } else if (typeof ngDevMode === 'undefined' || ngDevMode) {\n throw Error('MatSelectionColumn: missing parent table');\n }\n }\n\n ngOnDestroy() {\n if (this._table) {\n this._table.removeColumnDef(this._columnDef);\n }\n }\n\n private _syncColumnDefName() {\n if (this._columnDef) {\n this._columnDef.name = this._name;\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {CdkRowSelection} from '@angular/cdk-experimental/selection';\nimport {Input, Directive} from '@angular/core';\n\n/**\n * Applies `mat-selected` class and `aria-selected` to an element.\n *\n * Must be used within a parent `MatSelection` directive.\n * Must be provided with the value. The index is required if `trackBy` is used on the `CdkSelection`\n * directive.\n */\n@Directive({\n selector: '[matRowSelection]',\n host: {\n '[class.mat-selected]': '_selection.isSelected(this.value, this.index)',\n '[attr.aria-selected]': '_selection.isSelected(this.value, this.index)',\n },\n providers: [{provide: CdkRowSelection, useExisting: MatRowSelection}],\n inputs: ['index: matRowSelectionIndex'],\n})\nexport class MatRowSelection<T> extends CdkRowSelection<T> {\n /** The value that is associated with the row */\n @Input('matRowSelectionValue') override value: T;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n// TODO(yifange): Move the table-specific code to a separate module from the other selection\n// behaviors once we move it out of experimental.\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {MatLegacyTableModule} from '@angular/material/legacy-table';\nimport {MatCheckboxModule} from '@angular/material/checkbox';\nimport {MatSelectAll} from './select-all';\nimport {MatSelection} from './selection';\nimport {MatSelectionToggle} from './selection-toggle';\nimport {MatSelectionColumn} from './selection-column';\nimport {MatRowSelection} from './row-selection';\n\n@NgModule({\n imports: [CommonModule, MatLegacyTableModule, MatCheckboxModule],\n exports: [MatSelectAll, MatSelection, MatSelectionToggle, MatSelectionColumn, MatRowSelection],\n declarations: [\n MatSelectAll,\n MatSelection,\n MatSelectionToggle,\n MatSelectionColumn,\n MatRowSelection,\n ],\n})\nexport class MatSelectionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i4.MatSelectAll","i5.MatSelectionToggle"],"mappings":";;;;;;;;;;;AAYA;;;;;AAKG;AACH,MAMa,YAAgB,SAAQ,YAAe,CAAA;AANpD,IAAA,WAAA,GAAA;;;AAiBkD,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAsB,CAAC;AACjG,KAAA;;AAVC,IAAA,IACa,QAAQ,GAAA;QACnB,OAAO,IAAI,CAAC,SAAS,CAAC;KACvB;IACD,IAAa,QAAQ,CAAC,QAAiB,EAAA;AACrC,QAAA,IAAI,CAAC,SAAS,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC;KAClD;qHARU,YAAY,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;yGAAZ,YAAY,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,CAAA,sBAAA,EAAA,UAAA,CAAA,EAAA,EAAA,OAAA,EAAA,EAAA,MAAA,EAAA,oBAAA,EAAA,EAAA,SAAA,EAHZ,CAAC,EAAC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAC,CAAC,EAAA,QAAA,EAAA,CAAA,cAAA,CAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;kGAGpD,YAAY,EAAA,UAAA,EAAA,CAAA;kBANxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,QAAQ,EAAE,cAAc;oBACxB,SAAS,EAAE,CAAC,EAAC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAc,YAAA,EAAC,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,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,eAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,iBAP3B,YAAY;YACZ,YAAY;YACZ,kBAAkB;YAClB,kBAAkB;AAClB,YAAA,eAAe,CAPP,EAAA,OAAA,EAAA,CAAA,YAAY,EAAE,oBAAoB,EAAE,iBAAiB,CAAA,EAAA,OAAA,EAAA,CACrD,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;AASlF,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,eAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EAVnB,OAAA,EAAA,CAAA,YAAY,EAAE,oBAAoB,EAAE,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA;;kGAUpD,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAX9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,oBAAoB,EAAE,iBAAiB,CAAC;oBAChE,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,CAAC;AAC9F,oBAAA,YAAY,EAAE;wBACZ,YAAY;wBACZ,YAAY;wBACZ,kBAAkB;wBAClB,kBAAkB;wBAClB,eAAe;AAChB,qBAAA;AACF,iBAAA,CAAA;;;AC9BD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/material-experimental",
|
|
3
|
-
"version": "16.0.0-
|
|
3
|
+
"version": "16.0.0-rc.0",
|
|
4
4
|
"description": "Experimental components for Angular Material",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,56 +15,46 @@
|
|
|
15
15
|
".": {
|
|
16
16
|
"sass": "./_index.scss",
|
|
17
17
|
"types": "./index.d.ts",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"node": "./fesm2015/material-experimental.mjs",
|
|
22
|
-
"default": "./fesm2020/material-experimental.mjs"
|
|
18
|
+
"esm2022": "./esm2022/index.mjs",
|
|
19
|
+
"esm": "./esm2022/index.mjs",
|
|
20
|
+
"default": "./fesm2022/material-experimental.mjs"
|
|
23
21
|
},
|
|
24
22
|
"./package.json": {
|
|
25
23
|
"default": "./package.json"
|
|
26
24
|
},
|
|
27
25
|
"./column-resize": {
|
|
28
26
|
"types": "./column-resize/index.d.ts",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"node": "./fesm2015/column-resize.mjs",
|
|
33
|
-
"default": "./fesm2020/column-resize.mjs"
|
|
27
|
+
"esm2022": "./esm2022/column-resize/column-resize_public_index.mjs",
|
|
28
|
+
"esm": "./esm2022/column-resize/column-resize_public_index.mjs",
|
|
29
|
+
"default": "./fesm2022/column-resize.mjs"
|
|
34
30
|
},
|
|
35
31
|
"./menubar": {
|
|
36
32
|
"types": "./menubar/index.d.ts",
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"node": "./fesm2015/menubar.mjs",
|
|
41
|
-
"default": "./fesm2020/menubar.mjs"
|
|
33
|
+
"esm2022": "./esm2022/menubar/menubar_public_index.mjs",
|
|
34
|
+
"esm": "./esm2022/menubar/menubar_public_index.mjs",
|
|
35
|
+
"default": "./fesm2022/menubar.mjs"
|
|
42
36
|
},
|
|
43
37
|
"./popover-edit": {
|
|
44
38
|
"types": "./popover-edit/index.d.ts",
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"node": "./fesm2015/popover-edit.mjs",
|
|
49
|
-
"default": "./fesm2020/popover-edit.mjs"
|
|
39
|
+
"esm2022": "./esm2022/popover-edit/popover-edit_public_index.mjs",
|
|
40
|
+
"esm": "./esm2022/popover-edit/popover-edit_public_index.mjs",
|
|
41
|
+
"default": "./fesm2022/popover-edit.mjs"
|
|
50
42
|
},
|
|
51
43
|
"./selection": {
|
|
52
44
|
"types": "./selection/index.d.ts",
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"node": "./fesm2015/selection.mjs",
|
|
57
|
-
"default": "./fesm2020/selection.mjs"
|
|
45
|
+
"esm2022": "./esm2022/selection/selection_public_index.mjs",
|
|
46
|
+
"esm": "./esm2022/selection/selection_public_index.mjs",
|
|
47
|
+
"default": "./fesm2022/selection.mjs"
|
|
58
48
|
}
|
|
59
49
|
},
|
|
60
50
|
"peerDependencies": {
|
|
61
51
|
"@angular/animations": "^16.0.0-0 || ^16.1.0-0 || ^16.2.0-0 || ^16.3.0-0 || ^17.0.0-0",
|
|
62
|
-
"@angular/cdk": "16.0.0-
|
|
52
|
+
"@angular/cdk": "16.0.0-rc.0",
|
|
63
53
|
"@angular/core": "^16.0.0-0 || ^16.1.0-0 || ^16.2.0-0 || ^16.3.0-0 || ^17.0.0-0",
|
|
64
54
|
"@angular/common": "^16.0.0-0 || ^16.1.0-0 || ^16.2.0-0 || ^16.3.0-0 || ^17.0.0-0",
|
|
65
55
|
"@angular/forms": "^16.0.0-0 || ^16.1.0-0 || ^16.2.0-0 || ^16.3.0-0 || ^17.0.0-0",
|
|
66
56
|
"@angular/platform-browser": "^16.0.0-0 || ^16.1.0-0 || ^16.2.0-0 || ^16.3.0-0 || ^17.0.0-0",
|
|
67
|
-
"@angular/material": "16.0.0-
|
|
57
|
+
"@angular/material": "16.0.0-rc.0"
|
|
68
58
|
},
|
|
69
59
|
"dependencies": {
|
|
70
60
|
"tslib": "^2.3.0",
|
|
@@ -117,11 +107,7 @@
|
|
|
117
107
|
"@material/typography": "15.0.0-canary.684e33d25.0"
|
|
118
108
|
},
|
|
119
109
|
"sideEffects": false,
|
|
120
|
-
"
|
|
121
|
-
"fesm2015": "./fesm2015/material-experimental.mjs",
|
|
122
|
-
"esm2020": "./esm2020/index.mjs",
|
|
110
|
+
"module": "./fesm2022/material-experimental.mjs",
|
|
123
111
|
"typings": "./index.d.ts",
|
|
124
|
-
"module": "./fesm2015/material-experimental.mjs",
|
|
125
|
-
"es2020": "./fesm2020/material-experimental.mjs",
|
|
126
112
|
"type": "module"
|
|
127
113
|
}
|
|
@@ -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.7", ngImport: i0, type: MatSelectionToggle, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
24
|
-
MatSelectionToggle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", 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.7", 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0aW9uLXRvZ2dsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC1leHBlcmltZW50YWwvc2VsZWN0aW9uL3NlbGVjdGlvbi10b2dnbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0scUNBQXFDLENBQUM7QUFDdkUsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7O0FBRS9DOzs7Ozs7Ozs7R0FTRztBQUNILE1BTWEsa0JBQXNCLFNBQVEsa0JBQXFCOztzSEFBbkQsa0JBQWtCOzBHQUFsQixrQkFBa0IscUpBRmxCLENBQUMsRUFBQyxPQ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Il19
|
|
@@ -1,384 +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
|
-
* Overrides CdkFlexTableResizeStrategy to match mat-column elements.
|
|
16
|
-
*/
|
|
17
|
-
class MatFlexTableResizeStrategy extends CdkFlexTableResizeStrategy {
|
|
18
|
-
constructor(columnResize, styleScheduler, table, document) {
|
|
19
|
-
super(columnResize, styleScheduler, table, document);
|
|
20
|
-
}
|
|
21
|
-
getColumnCssClass(cssFriendlyColumnName) {
|
|
22
|
-
return `mat-column-${cssFriendlyColumnName}`;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
MatFlexTableResizeStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatFlexTableResizeStrategy, deps: [{ token: i1.ColumnResize }, { token: _COALESCED_STYLE_SCHEDULER }, { token: i1$1.CdkTable }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
26
|
-
MatFlexTableResizeStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatFlexTableResizeStrategy });
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatFlexTableResizeStrategy, decorators: [{
|
|
28
|
-
type: Injectable
|
|
29
|
-
}], ctorParameters: function () {
|
|
30
|
-
return [{ type: i1.ColumnResize }, { type: i1$1._CoalescedStyleScheduler, decorators: [{
|
|
31
|
-
type: Inject,
|
|
32
|
-
args: [_COALESCED_STYLE_SCHEDULER]
|
|
33
|
-
}] }, { type: i1$1.CdkTable }, { type: undefined, decorators: [{
|
|
34
|
-
type: Inject,
|
|
35
|
-
args: [DOCUMENT]
|
|
36
|
-
}] }];
|
|
37
|
-
} });
|
|
38
|
-
const FLEX_RESIZE_STRATEGY_PROVIDER = {
|
|
39
|
-
provide: ResizeStrategy,
|
|
40
|
-
useClass: MatFlexTableResizeStrategy,
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
const PROVIDERS = [
|
|
44
|
-
ColumnResizeNotifier,
|
|
45
|
-
HeaderRowEventDispatcher,
|
|
46
|
-
ColumnResizeNotifierSource,
|
|
47
|
-
];
|
|
48
|
-
const TABLE_PROVIDERS = [
|
|
49
|
-
...PROVIDERS,
|
|
50
|
-
TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER,
|
|
51
|
-
];
|
|
52
|
-
const FLEX_PROVIDERS = [...PROVIDERS, FLEX_RESIZE_STRATEGY_PROVIDER];
|
|
53
|
-
const TABLE_HOST_BINDINGS = {
|
|
54
|
-
'class': 'mat-column-resize-table',
|
|
55
|
-
};
|
|
56
|
-
const FLEX_HOST_BINDINGS = {
|
|
57
|
-
'class': 'mat-column-resize-flex',
|
|
58
|
-
};
|
|
59
|
-
class AbstractMatColumnResize extends ColumnResize {
|
|
60
|
-
getTableHeight() {
|
|
61
|
-
return this.elementRef.nativeElement.offsetHeight;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Explicitly enables column resizing for a table-based mat-table.
|
|
67
|
-
* Individual columns must be annotated specifically.
|
|
68
|
-
*/
|
|
69
|
-
class MatColumnResize extends AbstractMatColumnResize {
|
|
70
|
-
constructor(columnResizeNotifier, elementRef, eventDispatcher, ngZone, notifier) {
|
|
71
|
-
super();
|
|
72
|
-
this.columnResizeNotifier = columnResizeNotifier;
|
|
73
|
-
this.elementRef = elementRef;
|
|
74
|
-
this.eventDispatcher = eventDispatcher;
|
|
75
|
-
this.ngZone = ngZone;
|
|
76
|
-
this.notifier = notifier;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
MatColumnResize.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatColumnResize, deps: [{ token: i1.ColumnResizeNotifier }, { token: i0.ElementRef }, { token: i1.HeaderRowEventDispatcher }, { token: i0.NgZone }, { token: i1.ColumnResizeNotifierSource }], target: i0.ɵɵFactoryTarget.Directive });
|
|
80
|
-
MatColumnResize.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: MatColumnResize, selector: "table[mat-table][columnResize]", host: { classAttribute: "mat-column-resize-table" }, providers: [...TABLE_PROVIDERS, { provide: ColumnResize, useExisting: MatColumnResize }], usesInheritance: true, ngImport: i0 });
|
|
81
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatColumnResize, decorators: [{
|
|
82
|
-
type: Directive,
|
|
83
|
-
args: [{
|
|
84
|
-
selector: 'table[mat-table][columnResize]',
|
|
85
|
-
host: TABLE_HOST_BINDINGS,
|
|
86
|
-
providers: [...TABLE_PROVIDERS, { provide: ColumnResize, useExisting: MatColumnResize }],
|
|
87
|
-
}]
|
|
88
|
-
}], ctorParameters: function () { return [{ type: i1.ColumnResizeNotifier }, { type: i0.ElementRef }, { type: i1.HeaderRowEventDispatcher }, { type: i0.NgZone }, { type: i1.ColumnResizeNotifierSource }]; } });
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Explicitly enables column resizing for a flexbox-based mat-table.
|
|
92
|
-
* Individual columns must be annotated specifically.
|
|
93
|
-
*/
|
|
94
|
-
class MatColumnResizeFlex extends AbstractMatColumnResize {
|
|
95
|
-
constructor(columnResizeNotifier, elementRef, eventDispatcher, ngZone, notifier) {
|
|
96
|
-
super();
|
|
97
|
-
this.columnResizeNotifier = columnResizeNotifier;
|
|
98
|
-
this.elementRef = elementRef;
|
|
99
|
-
this.eventDispatcher = eventDispatcher;
|
|
100
|
-
this.ngZone = ngZone;
|
|
101
|
-
this.notifier = notifier;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
MatColumnResizeFlex.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatColumnResizeFlex, deps: [{ token: i1.ColumnResizeNotifier }, { token: i0.ElementRef }, { token: i1.HeaderRowEventDispatcher }, { token: i0.NgZone }, { token: i1.ColumnResizeNotifierSource }], target: i0.ɵɵFactoryTarget.Directive });
|
|
105
|
-
MatColumnResizeFlex.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: MatColumnResizeFlex, selector: "mat-table[columnResize]", host: { classAttribute: "mat-column-resize-flex" }, providers: [...FLEX_PROVIDERS, { provide: ColumnResize, useExisting: MatColumnResizeFlex }], usesInheritance: true, ngImport: i0 });
|
|
106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatColumnResizeFlex, decorators: [{
|
|
107
|
-
type: Directive,
|
|
108
|
-
args: [{
|
|
109
|
-
selector: 'mat-table[columnResize]',
|
|
110
|
-
host: FLEX_HOST_BINDINGS,
|
|
111
|
-
providers: [...FLEX_PROVIDERS, { provide: ColumnResize, useExisting: MatColumnResizeFlex }],
|
|
112
|
-
}]
|
|
113
|
-
}], ctorParameters: function () { return [{ type: i1.ColumnResizeNotifier }, { type: i0.ElementRef }, { type: i1.HeaderRowEventDispatcher }, { type: i0.NgZone }, { type: i1.ColumnResizeNotifierSource }]; } });
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Implicitly enables column resizing for a table-based mat-table.
|
|
117
|
-
* Individual columns will be resizable unless opted out.
|
|
118
|
-
*/
|
|
119
|
-
class MatDefaultEnabledColumnResize extends AbstractMatColumnResize {
|
|
120
|
-
constructor(columnResizeNotifier, elementRef, eventDispatcher, ngZone, notifier) {
|
|
121
|
-
super();
|
|
122
|
-
this.columnResizeNotifier = columnResizeNotifier;
|
|
123
|
-
this.elementRef = elementRef;
|
|
124
|
-
this.eventDispatcher = eventDispatcher;
|
|
125
|
-
this.ngZone = ngZone;
|
|
126
|
-
this.notifier = notifier;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
MatDefaultEnabledColumnResize.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatDefaultEnabledColumnResize, deps: [{ token: i1.ColumnResizeNotifier }, { token: i0.ElementRef }, { token: i1.HeaderRowEventDispatcher }, { token: i0.NgZone }, { token: i1.ColumnResizeNotifierSource }], target: i0.ɵɵFactoryTarget.Directive });
|
|
130
|
-
MatDefaultEnabledColumnResize.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: MatDefaultEnabledColumnResize, selector: "table[mat-table]", host: { classAttribute: "mat-column-resize-table" }, providers: [
|
|
131
|
-
...TABLE_PROVIDERS,
|
|
132
|
-
{ provide: ColumnResize, useExisting: MatDefaultEnabledColumnResize },
|
|
133
|
-
], usesInheritance: true, ngImport: i0 });
|
|
134
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatDefaultEnabledColumnResize, decorators: [{
|
|
135
|
-
type: Directive,
|
|
136
|
-
args: [{
|
|
137
|
-
selector: 'table[mat-table]',
|
|
138
|
-
host: TABLE_HOST_BINDINGS,
|
|
139
|
-
providers: [
|
|
140
|
-
...TABLE_PROVIDERS,
|
|
141
|
-
{ provide: ColumnResize, useExisting: MatDefaultEnabledColumnResize },
|
|
142
|
-
],
|
|
143
|
-
}]
|
|
144
|
-
}], ctorParameters: function () { return [{ type: i1.ColumnResizeNotifier }, { type: i0.ElementRef }, { type: i1.HeaderRowEventDispatcher }, { type: i0.NgZone }, { type: i1.ColumnResizeNotifierSource }]; } });
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Implicitly enables column resizing for a flexbox-based mat-table.
|
|
148
|
-
* Individual columns will be resizable unless opted out.
|
|
149
|
-
*/
|
|
150
|
-
class MatDefaultEnabledColumnResizeFlex extends AbstractMatColumnResize {
|
|
151
|
-
constructor(columnResizeNotifier, elementRef, eventDispatcher, ngZone, notifier) {
|
|
152
|
-
super();
|
|
153
|
-
this.columnResizeNotifier = columnResizeNotifier;
|
|
154
|
-
this.elementRef = elementRef;
|
|
155
|
-
this.eventDispatcher = eventDispatcher;
|
|
156
|
-
this.ngZone = ngZone;
|
|
157
|
-
this.notifier = notifier;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
MatDefaultEnabledColumnResizeFlex.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatDefaultEnabledColumnResizeFlex, deps: [{ token: i1.ColumnResizeNotifier }, { token: i0.ElementRef }, { token: i1.HeaderRowEventDispatcher }, { token: i0.NgZone }, { token: i1.ColumnResizeNotifierSource }], target: i0.ɵɵFactoryTarget.Directive });
|
|
161
|
-
MatDefaultEnabledColumnResizeFlex.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: MatDefaultEnabledColumnResizeFlex, selector: "mat-table", host: { classAttribute: "mat-column-resize-flex" }, providers: [
|
|
162
|
-
...FLEX_PROVIDERS,
|
|
163
|
-
{ provide: ColumnResize, useExisting: MatDefaultEnabledColumnResizeFlex },
|
|
164
|
-
], usesInheritance: true, ngImport: i0 });
|
|
165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatDefaultEnabledColumnResizeFlex, decorators: [{
|
|
166
|
-
type: Directive,
|
|
167
|
-
args: [{
|
|
168
|
-
selector: 'mat-table',
|
|
169
|
-
host: FLEX_HOST_BINDINGS,
|
|
170
|
-
providers: [
|
|
171
|
-
...FLEX_PROVIDERS,
|
|
172
|
-
{ provide: ColumnResize, useExisting: MatDefaultEnabledColumnResizeFlex },
|
|
173
|
-
],
|
|
174
|
-
}]
|
|
175
|
-
}], ctorParameters: function () { return [{ type: i1.ColumnResizeNotifier }, { type: i0.ElementRef }, { type: i1.HeaderRowEventDispatcher }, { type: i0.NgZone }, { type: i1.ColumnResizeNotifierSource }]; } });
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Component shown over the edge of a resizable column that is responsible
|
|
179
|
-
* for handling column resize mouse events and displaying a vertical line along the column edge.
|
|
180
|
-
*/
|
|
181
|
-
class MatColumnResizeOverlayHandle extends ResizeOverlayHandle {
|
|
182
|
-
constructor(columnDef, columnResize, directionality, elementRef, eventDispatcher, ngZone, resizeNotifier, resizeRef, styleScheduler, document) {
|
|
183
|
-
super();
|
|
184
|
-
this.columnDef = columnDef;
|
|
185
|
-
this.columnResize = columnResize;
|
|
186
|
-
this.directionality = directionality;
|
|
187
|
-
this.elementRef = elementRef;
|
|
188
|
-
this.eventDispatcher = eventDispatcher;
|
|
189
|
-
this.ngZone = ngZone;
|
|
190
|
-
this.resizeNotifier = resizeNotifier;
|
|
191
|
-
this.resizeRef = resizeRef;
|
|
192
|
-
this.styleScheduler = styleScheduler;
|
|
193
|
-
this.document = document;
|
|
194
|
-
}
|
|
195
|
-
updateResizeActive(active) {
|
|
196
|
-
super.updateResizeActive(active);
|
|
197
|
-
const originHeight = this.resizeRef.origin.nativeElement.offsetHeight;
|
|
198
|
-
this.topElement.nativeElement.style.height = `${originHeight}px`;
|
|
199
|
-
this.resizeRef.overlayRef.updateSize({
|
|
200
|
-
height: active
|
|
201
|
-
? this.columnResize.getTableHeight()
|
|
202
|
-
: originHeight,
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
MatColumnResizeOverlayHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", 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 });
|
|
207
|
-
MatColumnResizeOverlayHandle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0-next.7", 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 });
|
|
208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatColumnResizeOverlayHandle, decorators: [{
|
|
209
|
-
type: Component,
|
|
210
|
-
args: [{
|
|
211
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
212
|
-
encapsulation: ViewEncapsulation.None,
|
|
213
|
-
host: { 'class': 'mat-column-resize-overlay-thumb' },
|
|
214
|
-
template: '<div #top class="mat-column-resize-overlay-thumb-top"></div>',
|
|
215
|
-
}]
|
|
216
|
-
}], ctorParameters: function () {
|
|
217
|
-
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: [{
|
|
218
|
-
type: Inject,
|
|
219
|
-
args: [_COALESCED_STYLE_SCHEDULER]
|
|
220
|
-
}] }, { type: undefined, decorators: [{
|
|
221
|
-
type: Inject,
|
|
222
|
-
args: [DOCUMENT]
|
|
223
|
-
}] }];
|
|
224
|
-
}, propDecorators: { topElement: [{
|
|
225
|
-
type: ViewChild,
|
|
226
|
-
args: ['top', { static: true }]
|
|
227
|
-
}] } });
|
|
228
|
-
|
|
229
|
-
class AbstractMatResizable extends Resizable {
|
|
230
|
-
constructor() {
|
|
231
|
-
super(...arguments);
|
|
232
|
-
this.minWidthPxInternal = 32;
|
|
233
|
-
}
|
|
234
|
-
getInlineHandleCssClassName() {
|
|
235
|
-
return 'mat-resizable-handle';
|
|
236
|
-
}
|
|
237
|
-
getOverlayHandleComponentType() {
|
|
238
|
-
return MatColumnResizeOverlayHandle;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
const RESIZABLE_HOST_BINDINGS = {
|
|
242
|
-
'class': 'mat-resizable',
|
|
243
|
-
};
|
|
244
|
-
const RESIZABLE_INPUTS = [
|
|
245
|
-
'minWidthPx: matResizableMinWidthPx',
|
|
246
|
-
'maxWidthPx: matResizableMaxWidthPx',
|
|
247
|
-
];
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* Implicitly enables column resizing for a mat-header-cell unless the disableResize attribute
|
|
251
|
-
* is present.
|
|
252
|
-
*/
|
|
253
|
-
class MatDefaultResizable extends AbstractMatResizable {
|
|
254
|
-
constructor(columnDef, columnResize, directionality, document, elementRef, eventDispatcher, injector, ngZone, overlay, resizeNotifier, resizeStrategy, styleScheduler, viewContainerRef, changeDetectorRef) {
|
|
255
|
-
super();
|
|
256
|
-
this.columnDef = columnDef;
|
|
257
|
-
this.columnResize = columnResize;
|
|
258
|
-
this.directionality = directionality;
|
|
259
|
-
this.elementRef = elementRef;
|
|
260
|
-
this.eventDispatcher = eventDispatcher;
|
|
261
|
-
this.injector = injector;
|
|
262
|
-
this.ngZone = ngZone;
|
|
263
|
-
this.overlay = overlay;
|
|
264
|
-
this.resizeNotifier = resizeNotifier;
|
|
265
|
-
this.resizeStrategy = resizeStrategy;
|
|
266
|
-
this.styleScheduler = styleScheduler;
|
|
267
|
-
this.viewContainerRef = viewContainerRef;
|
|
268
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
269
|
-
this.document = document;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
MatDefaultResizable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", 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 });
|
|
273
|
-
MatDefaultResizable.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", 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 });
|
|
274
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatDefaultResizable, decorators: [{
|
|
275
|
-
type: Directive,
|
|
276
|
-
args: [{
|
|
277
|
-
selector: 'mat-header-cell:not([disableResize]), th[mat-header-cell]:not([disableResize])',
|
|
278
|
-
host: RESIZABLE_HOST_BINDINGS,
|
|
279
|
-
inputs: RESIZABLE_INPUTS,
|
|
280
|
-
}]
|
|
281
|
-
}], ctorParameters: function () {
|
|
282
|
-
return [{ type: i1$1.CdkColumnDef }, { type: i1.ColumnResize }, { type: i3.Directionality }, { type: undefined, decorators: [{
|
|
283
|
-
type: Inject,
|
|
284
|
-
args: [DOCUMENT]
|
|
285
|
-
}] }, { 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: [{
|
|
286
|
-
type: Inject,
|
|
287
|
-
args: [_COALESCED_STYLE_SCHEDULER]
|
|
288
|
-
}] }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }];
|
|
289
|
-
} });
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* Explicitly enables column resizing for a mat-header-cell.
|
|
293
|
-
*/
|
|
294
|
-
class MatResizable extends AbstractMatResizable {
|
|
295
|
-
constructor(columnDef, columnResize, directionality, document, elementRef, eventDispatcher, injector, ngZone, overlay, resizeNotifier, resizeStrategy, styleScheduler, viewContainerRef, changeDetectorRef) {
|
|
296
|
-
super();
|
|
297
|
-
this.columnDef = columnDef;
|
|
298
|
-
this.columnResize = columnResize;
|
|
299
|
-
this.directionality = directionality;
|
|
300
|
-
this.elementRef = elementRef;
|
|
301
|
-
this.eventDispatcher = eventDispatcher;
|
|
302
|
-
this.injector = injector;
|
|
303
|
-
this.ngZone = ngZone;
|
|
304
|
-
this.overlay = overlay;
|
|
305
|
-
this.resizeNotifier = resizeNotifier;
|
|
306
|
-
this.resizeStrategy = resizeStrategy;
|
|
307
|
-
this.styleScheduler = styleScheduler;
|
|
308
|
-
this.viewContainerRef = viewContainerRef;
|
|
309
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
310
|
-
this.document = document;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
MatResizable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", 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 });
|
|
314
|
-
MatResizable.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", 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 });
|
|
315
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatResizable, decorators: [{
|
|
316
|
-
type: Directive,
|
|
317
|
-
args: [{
|
|
318
|
-
selector: 'mat-header-cell[resizable], th[mat-header-cell][resizable]',
|
|
319
|
-
host: RESIZABLE_HOST_BINDINGS,
|
|
320
|
-
inputs: RESIZABLE_INPUTS,
|
|
321
|
-
}]
|
|
322
|
-
}], ctorParameters: function () {
|
|
323
|
-
return [{ type: i1$1.CdkColumnDef }, { type: i1.ColumnResize }, { type: i3.Directionality }, { type: undefined, decorators: [{
|
|
324
|
-
type: Inject,
|
|
325
|
-
args: [DOCUMENT]
|
|
326
|
-
}] }, { 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: [{
|
|
327
|
-
type: Inject,
|
|
328
|
-
args: [_COALESCED_STYLE_SCHEDULER]
|
|
329
|
-
}] }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }];
|
|
330
|
-
} });
|
|
331
|
-
|
|
332
|
-
const ENTRY_COMMON_COMPONENTS = [MatColumnResizeOverlayHandle];
|
|
333
|
-
class MatColumnResizeCommonModule {
|
|
334
|
-
}
|
|
335
|
-
MatColumnResizeCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatColumnResizeCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
336
|
-
MatColumnResizeCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatColumnResizeCommonModule, declarations: [MatColumnResizeOverlayHandle], exports: [MatColumnResizeOverlayHandle] });
|
|
337
|
-
MatColumnResizeCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatColumnResizeCommonModule });
|
|
338
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatColumnResizeCommonModule, decorators: [{
|
|
339
|
-
type: NgModule,
|
|
340
|
-
args: [{
|
|
341
|
-
declarations: ENTRY_COMMON_COMPONENTS,
|
|
342
|
-
exports: ENTRY_COMMON_COMPONENTS,
|
|
343
|
-
}]
|
|
344
|
-
}] });
|
|
345
|
-
const IMPORTS = [MatCommonModule, OverlayModule, MatColumnResizeCommonModule];
|
|
346
|
-
class MatDefaultEnabledColumnResizeModule {
|
|
347
|
-
}
|
|
348
|
-
MatDefaultEnabledColumnResizeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatDefaultEnabledColumnResizeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
349
|
-
MatDefaultEnabledColumnResizeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatDefaultEnabledColumnResizeModule, declarations: [MatDefaultEnabledColumnResize,
|
|
350
|
-
MatDefaultEnabledColumnResizeFlex,
|
|
351
|
-
MatDefaultResizable], imports: [MatCommonModule, OverlayModule, MatColumnResizeCommonModule], exports: [MatDefaultEnabledColumnResize, MatDefaultEnabledColumnResizeFlex, MatDefaultResizable] });
|
|
352
|
-
MatDefaultEnabledColumnResizeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatDefaultEnabledColumnResizeModule, imports: [IMPORTS] });
|
|
353
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatDefaultEnabledColumnResizeModule, decorators: [{
|
|
354
|
-
type: NgModule,
|
|
355
|
-
args: [{
|
|
356
|
-
imports: IMPORTS,
|
|
357
|
-
declarations: [
|
|
358
|
-
MatDefaultEnabledColumnResize,
|
|
359
|
-
MatDefaultEnabledColumnResizeFlex,
|
|
360
|
-
MatDefaultResizable,
|
|
361
|
-
],
|
|
362
|
-
exports: [MatDefaultEnabledColumnResize, MatDefaultEnabledColumnResizeFlex, MatDefaultResizable],
|
|
363
|
-
}]
|
|
364
|
-
}] });
|
|
365
|
-
class MatColumnResizeModule {
|
|
366
|
-
}
|
|
367
|
-
MatColumnResizeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatColumnResizeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
368
|
-
MatColumnResizeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatColumnResizeModule, declarations: [MatColumnResize, MatColumnResizeFlex, MatResizable], imports: [MatCommonModule, OverlayModule, MatColumnResizeCommonModule], exports: [MatColumnResize, MatColumnResizeFlex, MatResizable] });
|
|
369
|
-
MatColumnResizeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatColumnResizeModule, imports: [IMPORTS] });
|
|
370
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: MatColumnResizeModule, decorators: [{
|
|
371
|
-
type: NgModule,
|
|
372
|
-
args: [{
|
|
373
|
-
imports: IMPORTS,
|
|
374
|
-
declarations: [MatColumnResize, MatColumnResizeFlex, MatResizable],
|
|
375
|
-
exports: [MatColumnResize, MatColumnResizeFlex, MatResizable],
|
|
376
|
-
}]
|
|
377
|
-
}] });
|
|
378
|
-
|
|
379
|
-
/**
|
|
380
|
-
* Generated bundle index. Do not edit.
|
|
381
|
-
*/
|
|
382
|
-
|
|
383
|
-
export { FLEX_RESIZE_STRATEGY_PROVIDER, MatColumnResize, MatColumnResizeCommonModule, MatColumnResizeFlex, MatColumnResizeModule, MatColumnResizeOverlayHandle, MatDefaultEnabledColumnResize, MatDefaultEnabledColumnResizeFlex, MatDefaultEnabledColumnResizeModule, MatDefaultResizable, MatFlexTableResizeStrategy, MatResizable };
|
|
384
|
-
//# sourceMappingURL=column-resize.mjs.map
|