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 { CDK_TREE_NODE_OUTLET_NODE, CdkTreeNodeOutlet } from '@angular/cdk/tree';
|
---|
9 | import { Directive, Inject, Optional, ViewContainerRef, } from '@angular/core';
|
---|
10 | /**
|
---|
11 | * Outlet for nested CdkNode. Put `[matTreeNodeOutlet]` on a tag to place children dataNodes
|
---|
12 | * inside the outlet.
|
---|
13 | */
|
---|
14 | export class MatTreeNodeOutlet {
|
---|
15 | constructor(viewContainer, _node) {
|
---|
16 | this.viewContainer = viewContainer;
|
---|
17 | this._node = _node;
|
---|
18 | }
|
---|
19 | }
|
---|
20 | MatTreeNodeOutlet.decorators = [
|
---|
21 | { type: Directive, args: [{
|
---|
22 | selector: '[matTreeNodeOutlet]',
|
---|
23 | providers: [{
|
---|
24 | provide: CdkTreeNodeOutlet,
|
---|
25 | useExisting: MatTreeNodeOutlet
|
---|
26 | }]
|
---|
27 | },] }
|
---|
28 | ];
|
---|
29 | MatTreeNodeOutlet.ctorParameters = () => [
|
---|
30 | { type: ViewContainerRef },
|
---|
31 | { type: undefined, decorators: [{ type: Inject, args: [CDK_TREE_NODE_OUTLET_NODE,] }, { type: Optional }] }
|
---|
32 | ];
|
---|
33 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0bGV0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL21hdGVyaWFsL3RyZWUvb3V0bGV0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUNILE9BQU8sRUFBQyx5QkFBeUIsRUFBRSxpQkFBaUIsRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBQy9FLE9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