"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib/tree/node.ts" between
material2-7.3.4.tar.gz and material2-7.3.5.tar.gz

About: material2 offers Material Design components for Angular.

node.ts  (material2-7.3.4):node.ts  (material2-7.3.5)
/** /**
* @license * @license
* Copyright Google LLC All Rights Reserved. * Copyright Google LLC All Rights Reserved.
* *
* Use of this source code is governed by an MIT-style license that can be * 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 * found in the LICENSE file at https://angular.io/license
*/ */
import {CdkNestedTreeNode, CdkTree, CdkTreeNode, CdkTreeNodeDef} from '@angular/ import {
cdk/tree'; CDK_TREE_NODE_OUTLET_NODE,
CdkNestedTreeNode,
CdkTree,
CdkTreeNode,
CdkTreeNodeDef,
} from '@angular/cdk/tree';
import { import {
AfterContentInit, AfterContentInit,
Attribute, Attribute,
ContentChildren, ContentChildren,
Directive, Directive,
ElementRef, ElementRef,
Input, Input,
IterableDiffers, IterableDiffers,
OnDestroy, OnDestroy,
QueryList, QueryList,
} from '@angular/core'; } from '@angular/core';
import { import {
CanDisable, CanDisableCtor, CanDisable,
CanDisableCtor,
HasTabIndex, HasTabIndex,
HasTabIndexCtor, HasTabIndexCtor,
mixinDisabled, mixinDisabled,
mixinTabIndex, mixinTabIndex,
} from '@angular/material/core'; } from '@angular/material/core';
import {MatTreeNodeOutlet} from './outlet'; import {MatTreeNodeOutlet} from './outlet';
export const _MatTreeNodeMixinBase: HasTabIndexCtor & CanDisableCtor & typeof Cd kTreeNode = export const _MatTreeNodeMixinBase: HasTabIndexCtor & CanDisableCtor & typeof Cd kTreeNode =
mixinTabIndex(mixinDisabled(CdkTreeNode)); mixinTabIndex(mixinDisabled(CdkTreeNode));
export const _MatNestedTreeNodeMixinBase: export const _MatNestedTreeNodeMixinBase:
HasTabIndexCtor & CanDisableCtor & typeof CdkNestedTreeNode = HasTabIndexCtor & CanDisableCtor & typeof CdkNestedTreeNode =
mixinTabIndex(mixinDisabled(CdkNestedTreeNode)); mixinTabIndex(mixinDisabled(CdkNestedTreeNode));
/** /**
skipping to change at line 93 skipping to change at line 101
selector: 'mat-nested-tree-node', selector: 'mat-nested-tree-node',
exportAs: 'matNestedTreeNode', exportAs: 'matNestedTreeNode',
host: { host: {
'[attr.aria-expanded]': 'isExpanded', '[attr.aria-expanded]': 'isExpanded',
'[attr.role]': 'role', '[attr.role]': 'role',
'class': 'mat-nested-tree-node', 'class': 'mat-nested-tree-node',
}, },
inputs: ['disabled', 'tabIndex'], inputs: ['disabled', 'tabIndex'],
providers: [ providers: [
{provide: CdkNestedTreeNode, useExisting: MatNestedTreeNode}, {provide: CdkNestedTreeNode, useExisting: MatNestedTreeNode},
{provide: CdkTreeNode, useExisting: MatNestedTreeNode} {provide: CdkTreeNode, useExisting: MatNestedTreeNode},
{provide: CDK_TREE_NODE_OUTLET_NODE, useExisting: MatNestedTreeNode}
] ]
}) })
export class MatNestedTreeNode<T> extends _MatNestedTreeNodeMixinBase<T> export class MatNestedTreeNode<T> extends _MatNestedTreeNodeMixinBase<T> impleme
implements AfterContentInit, CanDisable, HasTabIndex, OnDestroy { nts
AfterContentInit, CanDisable, HasTabIndex, OnDestroy {
@Input('matNestedTreeNode') node: T; @Input('matNestedTreeNode') node: T;
@ContentChildren(MatTreeNodeOutlet) nodeOutlet: QueryList<MatTreeNodeOutlet>; /** The children node placeholder. */
@ContentChildren(MatTreeNodeOutlet, {
// We need to use `descendants: true`, because Ivy will no longer match
// indirect descendants if it's left as false.
descendants: true
})
nodeOutlet: QueryList<MatTreeNodeOutlet>;
constructor(protected _elementRef: ElementRef<HTMLElement>, constructor(protected _elementRef: ElementRef<HTMLElement>,
protected _tree: CdkTree<T>, protected _tree: CdkTree<T>,
protected _differs: IterableDiffers, protected _differs: IterableDiffers,
@Attribute('tabindex') tabIndex: string) { @Attribute('tabindex') tabIndex: string) {
super(_elementRef, _tree, _differs); super(_elementRef, _tree, _differs);
this.tabIndex = Number(tabIndex) || 0; this.tabIndex = Number(tabIndex) || 0;
} }
 End of changes. 6 change blocks. 
8 lines changed or deleted 22 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)