/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { CdkTree } from '@angular/cdk/tree'; import { ChangeDetectionStrategy, Component, ViewChild, ViewEncapsulation } from '@angular/core'; import { MatTreeNodeOutlet } from './outlet'; import * as i0 from "@angular/core"; import * as i1 from "./outlet"; /** * Wrapper for the CdkTable with Material design styles. */ export class MatTree extends CdkTree { constructor() { super(...arguments); // Outlets within the tree's template where the dataNodes will be inserted. // We need an initializer here to avoid a TS error. The value will be set in `ngAfterViewInit`. this._nodeOutlet = undefined; } static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MatTree, deps: null, target: i0.ɵɵFactoryTarget.Component }); } static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.1", type: MatTree, selector: "mat-tree", host: { attributes: { "role": "tree" }, classAttribute: "mat-tree" }, providers: [{ provide: CdkTree, useExisting: MatTree }], viewQueries: [{ propertyName: "_nodeOutlet", first: true, predicate: MatTreeNodeOutlet, descendants: true, static: true }], exportAs: ["matTree"], usesInheritance: true, ngImport: i0, template: ``, isInline: true, styles: [".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"], dependencies: [{ kind: "directive", type: i1.MatTreeNodeOutlet, selector: "[matTreeNodeOutlet]" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: MatTree, decorators: [{ type: Component, args: [{ selector: 'mat-tree', exportAs: 'matTree', template: ``, host: { 'class': 'mat-tree', 'role': 'tree', }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, providers: [{ provide: CdkTree, useExisting: MatTree }], styles: [".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"] }] }], propDecorators: { _nodeOutlet: [{ type: ViewChild, args: [MatTreeNodeOutlet, { static: true }] }] } }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC90cmVlL3RyZWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBQzFDLE9BQU8sRUFBQyx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsU0FBUyxFQUFFLGlCQUFpQixFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQy9GLE9BQU8sRUFBQyxpQkFBaUIsRUFBQyxNQUFNLFVBQVUsQ0FBQzs7O0FBRTNDOztHQUVHO0FBZ0JILE1BQU0sT0FBTyxPQUFrQixTQUFRLE9BQWE7SUFmcEQ7O1FBZ0JFLDJFQUEyRTtRQUMzRSwrRkFBK0Y7UUFDeEMsZ0JBQVcsR0FDaEUsU0FBVSxDQUFDO0tBQ2Q7OEdBTFksT0FBTztrR0FBUCxPQUFPLHlHQUZQLENBQUMsRUFBQyxPQUFPLEVBQUUsT0FBTyxFQUFFLFdBQVcsRUFBRSxPQUFPLEVBQUMsQ0FBQyx1RUFLMUMsaUJBQWlCLDRHQWZsQixpREFBaUQ7OzJGQVloRCxPQUFPO2tCQWZuQixTQUFTOytCQUNFLFVBQVUsWUFDVixTQUFTLFlBQ1QsaURBQWlELFFBQ3JEO3dCQUNKLE9BQU8sRUFBRSxVQUFVO3dCQUNuQixNQUFNLEVBQUUsTUFBTTtxQkFDZixpQkFFYyxpQkFBaUIsQ0FBQyxJQUFJLG1CQUdwQix1QkFBdUIsQ0FBQyxPQUFPLGFBQ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