source: trip-planner-front/node_modules/@angular/material/esm2015/tree/padding.js@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 3.7 KB
Line 
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 */
8import { CdkTreeNodePadding } from '@angular/cdk/tree';
9import { Directive, Input } from '@angular/core';
10/**
11 * Wrapper for the CdkTree padding with Material design styles.
12 */
13export class MatTreeNodePadding extends CdkTreeNodePadding {
14 /** The level of depth of the tree node. The padding will be `level * indent` pixels. */
15 get level() { return this._level; }
16 set level(value) { this._setLevelInput(value); }
17 /** The indent for each level. Default number 40px from material design menu sub-menu spec. */
18 get indent() { return this._indent; }
19 set indent(indent) { this._setIndentInput(indent); }
20}
21MatTreeNodePadding.decorators = [
22 { type: Directive, args: [{
23 selector: '[matTreeNodePadding]',
24 providers: [{ provide: CdkTreeNodePadding, useExisting: MatTreeNodePadding }]
25 },] }
26];
27MatTreeNodePadding.propDecorators = {
28 level: [{ type: Input, args: ['matTreeNodePadding',] }],
29 indent: [{ type: Input, args: ['matTreeNodePaddingIndent',] }]
30};
31//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFkZGluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC90cmVlL3BhZGRpbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBQ0gsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0sbUJBQW1CLENBQUM7QUFDckQsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFL0M7O0dBRUc7QUFLSCxNQUFNLE9BQU8sa0JBQTZ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