ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
880 lines (873 loc) • 34.4 kB
JavaScript
import { __extends, __spread, __decorate, __metadata } from 'tslib';
import { BACKSPACE } from '@angular/cdk/keycodes';
import { CdkOverlayOrigin, CdkConnectedOverlay, OverlayModule } from '@angular/cdk/overlay';
import { Injectable, EventEmitter, Component, Self, Injector, forwardRef, Renderer2, ChangeDetectorRef, ElementRef, Host, Optional, Input, Output, ViewChild, ContentChild, NgModule } from '@angular/core';
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
import { slideMotion, zoomMotion } from 'ng-zorro-antd/core/animation';
import { NzConfigService, WithConfig } from 'ng-zorro-antd/core/config';
import { NzNoAnimationDirective, NzNoAnimationModule } from 'ng-zorro-antd/core/no-animation';
import { NzTreeBaseService, NzTreeHigherOrderServiceToken, NzTreeBase } from 'ng-zorro-antd/core/tree';
import { isNotNil, InputBoolean } from 'ng-zorro-antd/core/util';
import { NzSelectSearchComponent, NzSelectModule } from 'ng-zorro-antd/select';
import { NzTreeModule } from 'ng-zorro-antd/tree';
import { merge, of } from 'rxjs';
import { tap, filter } from 'rxjs/operators';
import { CommonModule } from '@angular/common';
import { NzOverlayModule } from 'ng-zorro-antd/core/overlay';
import { NzEmptyModule } from 'ng-zorro-antd/empty';
import { NzIconModule } from 'ng-zorro-antd/icon';
/**
* @fileoverview added by tsickle
* Generated from: tree-select.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var NzTreeSelectService = /** @class */ (function (_super) {
__extends(NzTreeSelectService, _super);
function NzTreeSelectService() {
return _super !== null && _super.apply(this, arguments) || this;
}
NzTreeSelectService.decorators = [
{ type: Injectable }
];
return NzTreeSelectService;
}(NzTreeBaseService));
/**
* @fileoverview added by tsickle
* Generated from: tree-select.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @param {?} injector
* @return {?}
*/
function higherOrderServiceFactory(injector) {
return injector.get(NzTreeSelectService);
}
/** @type {?} */
var NZ_CONFIG_COMPONENT_NAME = 'treeSelect';
/** @type {?} */
var TREE_SELECT_DEFAULT_CLASS = 'ant-select-dropdown ant-select-tree-dropdown';
var NzTreeSelectComponent = /** @class */ (function (_super) {
__extends(NzTreeSelectComponent, _super);
function NzTreeSelectComponent(nzTreeService, nzConfigService, renderer, cdr, elementRef, noAnimation) {
var _this = _super.call(this, nzTreeService) || this;
_this.nzConfigService = nzConfigService;
_this.renderer = renderer;
_this.cdr = cdr;
_this.elementRef = elementRef;
_this.noAnimation = noAnimation;
_this.nzAllowClear = true;
_this.nzShowExpand = true;
_this.nzShowLine = false;
_this.nzCheckable = false;
_this.nzShowSearch = false;
_this.nzDisabled = false;
_this.nzAsyncData = false;
_this.nzMultiple = false;
_this.nzDefaultExpandAll = false;
_this.nzCheckStrictly = false;
_this.nzNodes = [];
_this.nzOpen = false;
_this.nzPlaceHolder = '';
_this.nzDisplayWith = (/**
* @param {?} node
* @return {?}
*/
function (node) { return node.title; });
_this.nzOpenChange = new EventEmitter();
_this.nzCleared = new EventEmitter();
_this.nzRemoved = new EventEmitter();
_this.nzExpandChange = new EventEmitter();
_this.nzTreeClick = new EventEmitter();
_this.nzTreeCheckBoxChange = new EventEmitter();
_this.dropdownClassName = TREE_SELECT_DEFAULT_CLASS;
_this.isComposing = false;
_this.isDestroy = true;
_this.isNotFound = false;
_this.inputValue = '';
_this.dropDownPosition = 'bottom';
_this.selectedNodes = [];
_this.expandedKeys = [];
_this.value = [];
_this.onTouched = (/**
* @return {?}
*/
function () { return null; });
_this.renderer.addClass(_this.elementRef.nativeElement, 'ant-select');
_this.renderer.addClass(_this.elementRef.nativeElement, 'ant-tree-select');
return _this;
}
Object.defineProperty(NzTreeSelectComponent.prototype, "nzExpandedKeys", {
get: /**
* @return {?}
*/
function () {
return this.expandedKeys;
},
set: /**
* @param {?} value
* @return {?}
*/
function (value) {
this.expandedKeys = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(NzTreeSelectComponent.prototype, "treeTemplate", {
get: /**
* @return {?}
*/
function () {
return this.nzTreeTemplate || this.nzTreeTemplateChild;
},
enumerable: true,
configurable: true
});
Object.defineProperty(NzTreeSelectComponent.prototype, "placeHolderDisplay", {
get: /**
* @return {?}
*/
function () {
return this.inputValue || this.isComposing || this.selectedNodes.length ? 'none' : 'block';
},
enumerable: true,
configurable: true
});
Object.defineProperty(NzTreeSelectComponent.prototype, "isMultiple", {
get: /**
* @return {?}
*/
function () {
return this.nzMultiple || this.nzCheckable;
},
enumerable: true,
configurable: true
});
/**
* @return {?}
*/
NzTreeSelectComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
this.isDestroy = false;
this.selectionChangeSubscription = this.subscribeSelectionChange();
};
/**
* @return {?}
*/
NzTreeSelectComponent.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
this.isDestroy = true;
this.closeDropDown();
this.selectionChangeSubscription.unsubscribe();
};
/**
* @param {?} isDisabled
* @return {?}
*/
NzTreeSelectComponent.prototype.setDisabledState = /**
* @param {?} isDisabled
* @return {?}
*/
function (isDisabled) {
this.nzDisabled = isDisabled;
this.closeDropDown();
};
/**
* @param {?} changes
* @return {?}
*/
NzTreeSelectComponent.prototype.ngOnChanges = /**
* @param {?} changes
* @return {?}
*/
function (changes) {
var nzNodes = changes.nzNodes, nzDropdownClassName = changes.nzDropdownClassName;
if (nzNodes) {
this.updateSelectedNodes(true);
}
if (nzDropdownClassName) {
/** @type {?} */
var className = this.nzDropdownClassName && this.nzDropdownClassName.trim();
this.dropdownClassName = className ? TREE_SELECT_DEFAULT_CLASS + " " + className : TREE_SELECT_DEFAULT_CLASS;
}
};
/**
* @param {?} value
* @return {?}
*/
NzTreeSelectComponent.prototype.writeValue = /**
* @param {?} value
* @return {?}
*/
function (value) {
var _this = this;
if (isNotNil(value)) {
if (this.isMultiple && Array.isArray(value)) {
this.value = value;
}
else {
this.value = [(/** @type {?} */ (value))];
}
this.updateSelectedNodes(true);
}
else {
this.value = [];
this.selectedNodes.forEach((/**
* @param {?} node
* @return {?}
*/
function (node) {
_this.removeSelected(node, false);
}));
this.selectedNodes = [];
}
this.cdr.markForCheck();
};
/**
* @param {?} fn
* @return {?}
*/
NzTreeSelectComponent.prototype.registerOnChange = /**
* @param {?} fn
* @return {?}
*/
function (fn) {
this.onChange = fn;
};
/**
* @param {?} fn
* @return {?}
*/
NzTreeSelectComponent.prototype.registerOnTouched = /**
* @param {?} fn
* @return {?}
*/
function (fn) {
this.onTouched = fn;
};
/**
* @return {?}
*/
NzTreeSelectComponent.prototype.trigger = /**
* @return {?}
*/
function () {
if (this.nzDisabled || (!this.nzDisabled && this.nzOpen)) {
this.closeDropDown();
}
else {
this.openDropdown();
if (this.nzShowSearch || this.isMultiple) {
this.focusOnInput();
}
}
};
/**
* @return {?}
*/
NzTreeSelectComponent.prototype.openDropdown = /**
* @return {?}
*/
function () {
if (!this.nzDisabled) {
this.nzOpen = true;
this.nzOpenChange.emit(this.nzOpen);
this.updateCdkConnectedOverlayStatus();
this.updatePosition();
}
};
/**
* @return {?}
*/
NzTreeSelectComponent.prototype.closeDropDown = /**
* @return {?}
*/
function () {
this.onTouched();
this.nzOpen = false;
this.inputValue = '';
this.nzOpenChange.emit(this.nzOpen);
this.cdr.markForCheck();
};
/**
* @param {?} e
* @return {?}
*/
NzTreeSelectComponent.prototype.onKeyDownInput = /**
* @param {?} e
* @return {?}
*/
function (e) {
/** @type {?} */
var keyCode = e.keyCode;
/** @type {?} */
var eventTarget = (/** @type {?} */ (e.target));
if (this.isMultiple && !eventTarget.value && keyCode === BACKSPACE) {
e.preventDefault();
if (this.selectedNodes.length) {
/** @type {?} */
var removeNode = this.selectedNodes[this.selectedNodes.length - 1];
this.removeSelected(removeNode);
}
}
};
/**
* @param {?} value
* @return {?}
*/
NzTreeSelectComponent.prototype.onExpandedKeysChange = /**
* @param {?} value
* @return {?}
*/
function (value) {
this.nzExpandChange.emit(value);
this.expandedKeys = __spread((/** @type {?} */ (value.keys)));
};
/**
* @param {?} value
* @return {?}
*/
NzTreeSelectComponent.prototype.setInputValue = /**
* @param {?} value
* @return {?}
*/
function (value) {
this.inputValue = value;
this.updatePosition();
};
/**
* @param {?} node
* @param {?=} emit
* @return {?}
*/
NzTreeSelectComponent.prototype.removeSelected = /**
* @param {?} node
* @param {?=} emit
* @return {?}
*/
function (node, emit) {
if (emit === void 0) { emit = true; }
node.isSelected = false;
node.isChecked = false;
if (this.nzCheckable) {
this.nzTreeService.conduct(node);
}
else {
this.nzTreeService.setSelectedNodeList(node, this.nzMultiple);
}
if (emit) {
this.nzRemoved.emit(node);
}
};
/**
* @return {?}
*/
NzTreeSelectComponent.prototype.focusOnInput = /**
* @return {?}
*/
function () {
if (this.nzSelectSearchComponent) {
this.nzSelectSearchComponent.focus();
}
};
/**
* @return {?}
*/
NzTreeSelectComponent.prototype.subscribeSelectionChange = /**
* @return {?}
*/
function () {
var _this = this;
return merge(this.nzTreeClick.pipe(tap((/**
* @param {?} event
* @return {?}
*/
function (event) {
/** @type {?} */
var node = (/** @type {?} */ (event.node));
if (_this.nzCheckable && !node.isDisabled && !node.isDisableCheckbox) {
node.isChecked = !node.isChecked;
node.isHalfChecked = false;
if (!_this.nzCheckStrictly) {
_this.nzTreeService.conduct(node);
}
}
if (_this.nzCheckable) {
node.isSelected = false;
}
})), filter((/**
* @param {?} event
* @return {?}
*/
function (event) {
/** @type {?} */
var node = (/** @type {?} */ (event.node));
return _this.nzCheckable ? !node.isDisabled && !node.isDisableCheckbox : !node.isDisabled && node.isSelectable;
}))), this.nzCheckable ? this.nzTreeCheckBoxChange : of(), this.nzCleared, this.nzRemoved).subscribe((/**
* @return {?}
*/
function () {
_this.updateSelectedNodes();
/** @type {?} */
var value = _this.selectedNodes.map((/**
* @param {?} node
* @return {?}
*/
function (node) { return (/** @type {?} */ (node.key)); }));
_this.value = __spread(value);
if (_this.nzShowSearch || _this.isMultiple) {
_this.inputValue = '';
_this.isNotFound = false;
}
if (_this.isMultiple) {
_this.onChange(value);
_this.focusOnInput();
_this.updatePosition();
}
else {
_this.closeDropDown();
_this.onChange(value.length ? value[0] : null);
}
}));
};
/**
* @param {?=} init
* @return {?}
*/
NzTreeSelectComponent.prototype.updateSelectedNodes = /**
* @param {?=} init
* @return {?}
*/
function (init) {
if (init === void 0) { init = false; }
if (init) {
/** @type {?} */
var nodes = this.coerceTreeNodes(this.nzNodes);
this.nzTreeService.isMultiple = this.isMultiple;
this.nzTreeService.isCheckStrictly = this.nzCheckStrictly;
this.nzTreeService.initTree(nodes);
if (this.nzCheckable) {
this.nzTreeService.conductCheck(this.value, this.nzCheckStrictly);
}
else {
this.nzTreeService.conductSelectedKeys(this.value, this.isMultiple);
}
}
this.selectedNodes = __spread((this.nzCheckable ? this.getCheckedNodeList() : this.getSelectedNodeList()));
};
/**
* @return {?}
*/
NzTreeSelectComponent.prototype.updatePosition = /**
* @return {?}
*/
function () {
var _this = this;
setTimeout((/**
* @return {?}
*/
function () {
if (_this.cdkConnectedOverlay && _this.cdkConnectedOverlay.overlayRef) {
_this.cdkConnectedOverlay.overlayRef.updatePosition();
}
}));
};
/**
* @param {?} position
* @return {?}
*/
NzTreeSelectComponent.prototype.onPositionChange = /**
* @param {?} position
* @return {?}
*/
function (position) {
this.dropDownPosition = position.connectionPair.originY;
};
/**
* @return {?}
*/
NzTreeSelectComponent.prototype.onClearSelection = /**
* @return {?}
*/
function () {
var _this = this;
this.selectedNodes.forEach((/**
* @param {?} node
* @return {?}
*/
function (node) {
_this.removeSelected(node, false);
}));
this.nzCleared.emit();
};
/**
* @param {?} $event
* @return {?}
*/
NzTreeSelectComponent.prototype.setSearchValues = /**
* @param {?} $event
* @return {?}
*/
function ($event) {
var _this = this;
Promise.resolve().then((/**
* @return {?}
*/
function () {
_this.isNotFound = (_this.nzShowSearch || _this.isMultiple) && !!_this.inputValue && (/** @type {?} */ ($event.matchedKeys)).length === 0;
}));
};
/**
* @return {?}
*/
NzTreeSelectComponent.prototype.updateCdkConnectedOverlayStatus = /**
* @return {?}
*/
function () {
this.triggerWidth = this.cdkOverlayOrigin.elementRef.nativeElement.getBoundingClientRect().width;
};
/**
* @param {?} _index
* @param {?} option
* @return {?}
*/
NzTreeSelectComponent.prototype.trackValue = /**
* @param {?} _index
* @param {?} option
* @return {?}
*/
function (_index, option) {
return (/** @type {?} */ (option.key));
};
NzTreeSelectComponent.decorators = [
{ type: Component, args: [{
selector: 'nz-tree-select',
exportAs: 'nzTreeSelect',
animations: [slideMotion, zoomMotion],
template: "\n <ng-template\n cdkConnectedOverlay\n nzConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"cdkOverlayOrigin\"\n [cdkConnectedOverlayOpen]=\"nzOpen\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n [cdkConnectedOverlayMinWidth]=\"nzDropdownMatchSelectWidth ? null : triggerWidth\"\n [cdkConnectedOverlayWidth]=\"nzDropdownMatchSelectWidth ? triggerWidth : null\"\n (backdropClick)=\"closeDropDown()\"\n (detach)=\"closeDropDown()\"\n (positionChange)=\"onPositionChange($event)\"\n >\n <div\n [ngClass]=\"dropdownClassName\"\n [@slideMotion]=\"nzOpen ? dropDownPosition : 'void'\"\n [@.disabled]=\"noAnimation?.nzNoAnimation\"\n [nzNoAnimation]=\"noAnimation?.nzNoAnimation\"\n [class.ant-select-dropdown-placement-bottomLeft]=\"dropDownPosition === 'bottom'\"\n [class.ant-select-dropdown-placement-topLeft]=\"dropDownPosition === 'top'\"\n [ngStyle]=\"nzDropdownStyle\"\n >\n <nz-tree\n #treeRef\n [hidden]=\"isNotFound\"\n nzNoAnimation\n nzSelectMode\n [nzData]=\"nzNodes\"\n [nzMultiple]=\"nzMultiple\"\n [nzSearchValue]=\"inputValue\"\n [nzHideUnMatched]=\"nzHideUnMatched\"\n [nzShowIcon]=\"nzShowIcon\"\n [nzCheckable]=\"nzCheckable\"\n [nzAsyncData]=\"nzAsyncData\"\n [nzShowExpand]=\"nzShowExpand\"\n [nzShowLine]=\"nzShowLine\"\n [nzExpandedIcon]=\"nzExpandedIcon\"\n [nzExpandAll]=\"nzDefaultExpandAll\"\n [nzExpandedKeys]=\"expandedKeys\"\n [nzCheckedKeys]=\"nzCheckable ? value : []\"\n [nzSelectedKeys]=\"!nzCheckable ? value : []\"\n [nzTreeTemplate]=\"treeTemplate\"\n [nzCheckStrictly]=\"nzCheckStrictly\"\n (nzExpandChange)=\"onExpandedKeysChange($event)\"\n (nzClick)=\"nzTreeClick.emit($event)\"\n (nzCheckedKeysChange)=\"updateSelectedNodes()\"\n (nzSelectedKeysChange)=\"updateSelectedNodes()\"\n (nzCheckBoxChange)=\"nzTreeCheckBoxChange.emit($event)\"\n (nzSearchValueChange)=\"setSearchValues($event)\"\n >\n </nz-tree>\n <span *ngIf=\"nzNodes.length === 0 || isNotFound\" class=\"ant-select-not-found\">\n <nz-embed-empty [nzComponentName]=\"'tree-select'\" [specificContent]=\"nzNotFoundContent\"></nz-embed-empty>\n </span>\n </div>\n </ng-template>\n\n <div cdkOverlayOrigin class=\"ant-select-selector\">\n <ng-container *ngIf=\"isMultiple\">\n <nz-select-item\n *ngFor=\"let node of selectedNodes | slice: 0:nzMaxTagCount; trackBy: trackValue\"\n [@zoomMotion]\n [@.disabled]=\"noAnimation?.nzNoAnimation\"\n [nzNoAnimation]=\"noAnimation?.nzNoAnimation\"\n [deletable]=\"true\"\n [disabled]=\"node.isDisabled || nzDisabled\"\n [label]=\"nzDisplayWith(node)\"\n (@zoomMotion.done)=\"updatePosition()\"\n (delete)=\"removeSelected(node, true)\"\n ></nz-select-item>\n\n <nz-select-item\n *ngIf=\"selectedNodes.length > nzMaxTagCount\"\n [@zoomMotion]\n (@zoomMotion.done)=\"updatePosition()\"\n [@.disabled]=\"noAnimation?.nzNoAnimation\"\n [nzNoAnimation]=\"noAnimation?.nzNoAnimation\"\n [contentTemplateOutlet]=\"nzMaxTagPlaceholder\"\n [contentTemplateOutletContext]=\"selectedNodes | slice: nzMaxTagCount\"\n [deletable]=\"false\"\n [disabled]=\"false\"\n [label]=\"'+ ' + (selectedNodes.length - nzMaxTagCount) + ' ...'\"\n ></nz-select-item>\n </ng-container>\n\n <nz-select-search\n *ngIf=\"nzShowSearch\"\n (keydown)=\"onKeyDownInput($event)\"\n (isComposingChange)=\"isComposing = $event\"\n (valueChange)=\"setInputValue($event)\"\n [value]=\"inputValue\"\n [mirrorSync]=\"isMultiple\"\n [disabled]=\"nzDisabled\"\n [showInput]=\"nzOpen\"\n >\n </nz-select-search>\n\n <nz-select-placeholder\n *ngIf=\"nzPlaceHolder && selectedNodes.length === 0\"\n [placeholder]=\"nzPlaceHolder\"\n [style.display]=\"placeHolderDisplay\"\n >\n </nz-select-placeholder>\n\n <nz-select-item\n *ngIf=\"!isMultiple && selectedNodes.length === 1\"\n [deletable]=\"false\"\n [disabled]=\"false\"\n [label]=\"nzDisplayWith(selectedNodes[0])\"\n ></nz-select-item>\n\n <nz-select-arrow *ngIf=\"!isMultiple\"></nz-select-arrow>\n\n <nz-select-clear *ngIf=\"nzAllowClear\" (clear)=\"onClearSelection()\"></nz-select-clear>\n </div>\n ",
providers: [
NzTreeSelectService,
{
provide: NzTreeHigherOrderServiceToken,
useFactory: higherOrderServiceFactory,
deps: [[new Self(), Injector]]
},
{
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef((/**
* @return {?}
*/
function () { return NzTreeSelectComponent; })),
multi: true
}
],
host: {
'[class.ant-select-lg]': 'nzSize==="large"',
'[class.ant-select-sm]': 'nzSize==="small"',
'[class.ant-select-enabled]': '!nzDisabled',
'[class.ant-select-disabled]': 'nzDisabled',
'[class.ant-select-single]': '!isMultiple',
'[class.ant-select-show-arrow]': '!isMultiple',
'[class.ant-select-show-search]': '!isMultiple',
'[class.ant-select-multiple]': 'isMultiple',
'[class.ant-select-allow-clear]': 'nzAllowClear',
'[class.ant-select-open]': 'nzOpen',
'(click)': 'trigger()'
}
}] }
];
/** @nocollapse */
NzTreeSelectComponent.ctorParameters = function () { return [
{ type: NzTreeSelectService },
{ type: NzConfigService },
{ type: Renderer2 },
{ type: ChangeDetectorRef },
{ type: ElementRef },
{ type: NzNoAnimationDirective, decorators: [{ type: Host }, { type: Optional }] }
]; };
NzTreeSelectComponent.propDecorators = {
nzAllowClear: [{ type: Input }],
nzShowExpand: [{ type: Input }],
nzShowLine: [{ type: Input }],
nzDropdownMatchSelectWidth: [{ type: Input }],
nzCheckable: [{ type: Input }],
nzHideUnMatched: [{ type: Input }],
nzShowIcon: [{ type: Input }],
nzShowSearch: [{ type: Input }],
nzDisabled: [{ type: Input }],
nzAsyncData: [{ type: Input }],
nzMultiple: [{ type: Input }],
nzDefaultExpandAll: [{ type: Input }],
nzCheckStrictly: [{ type: Input }],
nzExpandedIcon: [{ type: Input }],
nzNotFoundContent: [{ type: Input }],
nzNodes: [{ type: Input }],
nzOpen: [{ type: Input }],
nzSize: [{ type: Input }],
nzPlaceHolder: [{ type: Input }],
nzDropdownStyle: [{ type: Input }],
nzDropdownClassName: [{ type: Input }],
nzExpandedKeys: [{ type: Input }],
nzDisplayWith: [{ type: Input }],
nzMaxTagCount: [{ type: Input }],
nzMaxTagPlaceholder: [{ type: Input }],
nzOpenChange: [{ type: Output }],
nzCleared: [{ type: Output }],
nzRemoved: [{ type: Output }],
nzExpandChange: [{ type: Output }],
nzTreeClick: [{ type: Output }],
nzTreeCheckBoxChange: [{ type: Output }],
nzSelectSearchComponent: [{ type: ViewChild, args: [NzSelectSearchComponent, { static: false },] }],
treeRef: [{ type: ViewChild, args: ['treeRef', { static: false },] }],
cdkOverlayOrigin: [{ type: ViewChild, args: [CdkOverlayOrigin, { static: true },] }],
cdkConnectedOverlay: [{ type: ViewChild, args: [CdkConnectedOverlay, { static: false },] }],
nzTreeTemplate: [{ type: Input }],
nzTreeTemplateChild: [{ type: ContentChild, args: ['nzTreeTemplate', { static: true },] }]
};
__decorate([
InputBoolean(),
__metadata("design:type", Boolean)
], NzTreeSelectComponent.prototype, "nzAllowClear", void 0);
__decorate([
InputBoolean(),
__metadata("design:type", Boolean)
], NzTreeSelectComponent.prototype, "nzShowExpand", void 0);
__decorate([
InputBoolean(),
__metadata("design:type", Boolean)
], NzTreeSelectComponent.prototype, "nzShowLine", void 0);
__decorate([
InputBoolean(), WithConfig(NZ_CONFIG_COMPONENT_NAME, true),
__metadata("design:type", Boolean)
], NzTreeSelectComponent.prototype, "nzDropdownMatchSelectWidth", void 0);
__decorate([
InputBoolean(),
__metadata("design:type", Boolean)
], NzTreeSelectComponent.prototype, "nzCheckable", void 0);
__decorate([
InputBoolean(), WithConfig(NZ_CONFIG_COMPONENT_NAME, false),
__metadata("design:type", Boolean)
], NzTreeSelectComponent.prototype, "nzHideUnMatched", void 0);
__decorate([
InputBoolean(), WithConfig(NZ_CONFIG_COMPONENT_NAME, false),
__metadata("design:type", Boolean)
], NzTreeSelectComponent.prototype, "nzShowIcon", void 0);
__decorate([
InputBoolean(),
__metadata("design:type", Boolean)
], NzTreeSelectComponent.prototype, "nzShowSearch", void 0);
__decorate([
InputBoolean(),
__metadata("design:type", Object)
], NzTreeSelectComponent.prototype, "nzDisabled", void 0);
__decorate([
InputBoolean(),
__metadata("design:type", Object)
], NzTreeSelectComponent.prototype, "nzAsyncData", void 0);
__decorate([
InputBoolean(),
__metadata("design:type", Object)
], NzTreeSelectComponent.prototype, "nzMultiple", void 0);
__decorate([
InputBoolean(),
__metadata("design:type", Object)
], NzTreeSelectComponent.prototype, "nzDefaultExpandAll", void 0);
__decorate([
InputBoolean(),
__metadata("design:type", Object)
], NzTreeSelectComponent.prototype, "nzCheckStrictly", void 0);
__decorate([
WithConfig(NZ_CONFIG_COMPONENT_NAME, 'default'),
__metadata("design:type", String)
], NzTreeSelectComponent.prototype, "nzSize", void 0);
return NzTreeSelectComponent;
}(NzTreeBase));
if (false) {
/** @type {?} */
NzTreeSelectComponent.ngAcceptInputType_nzAllowClear;
/** @type {?} */
NzTreeSelectComponent.ngAcceptInputType_nzShowExpand;
/** @type {?} */
NzTreeSelectComponent.ngAcceptInputType_nzShowLine;
/** @type {?} */
NzTreeSelectComponent.ngAcceptInputType_nzDropdownMatchSelectWidth;
/** @type {?} */
NzTreeSelectComponent.ngAcceptInputType_nzCheckable;
/** @type {?} */
NzTreeSelectComponent.ngAcceptInputType_nzHideUnMatched;
/** @type {?} */
NzTreeSelectComponent.ngAcceptInputType_nzShowIcon;
/** @type {?} */
NzTreeSelectComponent.ngAcceptInputType_nzShowSearch;
/** @type {?} */
NzTreeSelectComponent.ngAcceptInputType_nzDisabled;
/** @type {?} */
NzTreeSelectComponent.ngAcceptInputType_nzAsyncData;
/** @type {?} */
NzTreeSelectComponent.ngAcceptInputType_nzMultiple;
/** @type {?} */
NzTreeSelectComponent.ngAcceptInputType_nzDefaultExpandAll;
/** @type {?} */
NzTreeSelectComponent.ngAcceptInputType_nzCheckStrictly;
/** @type {?} */
NzTreeSelectComponent.prototype.nzAllowClear;
/** @type {?} */
NzTreeSelectComponent.prototype.nzShowExpand;
/** @type {?} */
NzTreeSelectComponent.prototype.nzShowLine;
/** @type {?} */
NzTreeSelectComponent.prototype.nzDropdownMatchSelectWidth;
/** @type {?} */
NzTreeSelectComponent.prototype.nzCheckable;
/** @type {?} */
NzTreeSelectComponent.prototype.nzHideUnMatched;
/** @type {?} */
NzTreeSelectComponent.prototype.nzShowIcon;
/** @type {?} */
NzTreeSelectComponent.prototype.nzShowSearch;
/** @type {?} */
NzTreeSelectComponent.prototype.nzDisabled;
/** @type {?} */
NzTreeSelectComponent.prototype.nzAsyncData;
/** @type {?} */
NzTreeSelectComponent.prototype.nzMultiple;
/** @type {?} */
NzTreeSelectComponent.prototype.nzDefaultExpandAll;
/** @type {?} */
NzTreeSelectComponent.prototype.nzCheckStrictly;
/** @type {?} */
NzTreeSelectComponent.prototype.nzExpandedIcon;
/** @type {?} */
NzTreeSelectComponent.prototype.nzNotFoundContent;
/** @type {?} */
NzTreeSelectComponent.prototype.nzNodes;
/** @type {?} */
NzTreeSelectComponent.prototype.nzOpen;
/** @type {?} */
NzTreeSelectComponent.prototype.nzSize;
/** @type {?} */
NzTreeSelectComponent.prototype.nzPlaceHolder;
/** @type {?} */
NzTreeSelectComponent.prototype.nzDropdownStyle;
/** @type {?} */
NzTreeSelectComponent.prototype.nzDropdownClassName;
/** @type {?} */
NzTreeSelectComponent.prototype.nzDisplayWith;
/** @type {?} */
NzTreeSelectComponent.prototype.nzMaxTagCount;
/** @type {?} */
NzTreeSelectComponent.prototype.nzMaxTagPlaceholder;
/** @type {?} */
NzTreeSelectComponent.prototype.nzOpenChange;
/** @type {?} */
NzTreeSelectComponent.prototype.nzCleared;
/** @type {?} */
NzTreeSelectComponent.prototype.nzRemoved;
/** @type {?} */
NzTreeSelectComponent.prototype.nzExpandChange;
/** @type {?} */
NzTreeSelectComponent.prototype.nzTreeClick;
/** @type {?} */
NzTreeSelectComponent.prototype.nzTreeCheckBoxChange;
/** @type {?} */
NzTreeSelectComponent.prototype.nzSelectSearchComponent;
/** @type {?} */
NzTreeSelectComponent.prototype.treeRef;
/** @type {?} */
NzTreeSelectComponent.prototype.cdkOverlayOrigin;
/** @type {?} */
NzTreeSelectComponent.prototype.cdkConnectedOverlay;
/** @type {?} */
NzTreeSelectComponent.prototype.nzTreeTemplate;
/** @type {?} */
NzTreeSelectComponent.prototype.nzTreeTemplateChild;
/** @type {?} */
NzTreeSelectComponent.prototype.dropdownClassName;
/** @type {?} */
NzTreeSelectComponent.prototype.triggerWidth;
/** @type {?} */
NzTreeSelectComponent.prototype.isComposing;
/** @type {?} */
NzTreeSelectComponent.prototype.isDestroy;
/** @type {?} */
NzTreeSelectComponent.prototype.isNotFound;
/** @type {?} */
NzTreeSelectComponent.prototype.inputValue;
/** @type {?} */
NzTreeSelectComponent.prototype.dropDownPosition;
/** @type {?} */
NzTreeSelectComponent.prototype.selectionChangeSubscription;
/** @type {?} */
NzTreeSelectComponent.prototype.selectedNodes;
/** @type {?} */
NzTreeSelectComponent.prototype.expandedKeys;
/** @type {?} */
NzTreeSelectComponent.prototype.value;
/** @type {?} */
NzTreeSelectComponent.prototype.onChange;
/** @type {?} */
NzTreeSelectComponent.prototype.onTouched;
/** @type {?} */
NzTreeSelectComponent.prototype.nzConfigService;
/**
* @type {?}
* @private
*/
NzTreeSelectComponent.prototype.renderer;
/**
* @type {?}
* @private
*/
NzTreeSelectComponent.prototype.cdr;
/**
* @type {?}
* @private
*/
NzTreeSelectComponent.prototype.elementRef;
/** @type {?} */
NzTreeSelectComponent.prototype.noAnimation;
}
/**
* @fileoverview added by tsickle
* Generated from: tree-select.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var NzTreeSelectModule = /** @class */ (function () {
function NzTreeSelectModule() {
}
NzTreeSelectModule.decorators = [
{ type: NgModule, args: [{
imports: [
CommonModule,
OverlayModule,
FormsModule,
NzSelectModule,
NzTreeModule,
NzIconModule,
NzEmptyModule,
NzOverlayModule,
NzNoAnimationModule
],
declarations: [NzTreeSelectComponent],
exports: [NzTreeSelectComponent]
},] }
];
return NzTreeSelectModule;
}());
/**
* @fileoverview added by tsickle
* Generated from: public-api.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: ng-zorro-antd-tree-select.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
export { NzTreeSelectComponent, NzTreeSelectModule, NzTreeSelectService, higherOrderServiceFactory };
//# sourceMappingURL=ng-zorro-antd-tree-select.js.map