UNPKG

ng-zorro-antd-yj

Version:

An enterprise-class UI components based on Ant Design and Angular

653 lines 50.1 kB
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import * as tslib_1 from "tslib"; import { FocusMonitor } from '@angular/cdk/a11y'; import { CdkConnectedOverlay, CdkOverlayOrigin } from '@angular/cdk/overlay'; import { forwardRef, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, ElementRef, EventEmitter, Host, Input, Optional, Output, QueryList, Renderer2, TemplateRef, ViewChild, ViewEncapsulation } from '@angular/core'; import { NG_VALUE_ACCESSOR } from '@angular/forms'; import { merge, EMPTY, Subject } from 'rxjs'; import { flatMap, startWith, takeUntil } from 'rxjs/operators'; import { slideMotion } from '../core/animation/slide'; import { NzNoAnimationDirective } from '../core/no-animation/nz-no-animation.directive'; import { isNotNil } from '../core/util/check'; import { toBoolean, InputBoolean } from '../core/util/convert'; import { NzOptionGroupComponent } from './nz-option-group.component'; import { NzOptionComponent } from './nz-option.component'; import { NzSelectTopControlComponent } from './nz-select-top-control.component'; import { NzSelectService } from './nz-select.service'; var NzSelectComponent = /** @class */ (function () { function NzSelectComponent(renderer, nzSelectService, cdr, focusMonitor, elementRef, noAnimation) { this.renderer = renderer; this.nzSelectService = nzSelectService; this.cdr = cdr; this.focusMonitor = focusMonitor; this.noAnimation = noAnimation; this.open = false; this.onChange = (/** * @return {?} */ function () { return null; }); this.onTouched = (/** * @return {?} */ function () { return null; }); this.dropDownPosition = 'bottom'; this._disabled = false; this._autoFocus = false; this.isInit = false; this.destroy$ = new Subject(); this.nzOnSearch = new EventEmitter(); this.nzScrollToBottom = new EventEmitter(); this.nzOpenChange = new EventEmitter(); this.nzBlur = new EventEmitter(); this.nzFocus = new EventEmitter(); this.nzSize = 'default'; this.nzDropdownMatchSelectWidth = true; this.nzAllowClear = false; this.nzShowSearch = false; this.nzLoading = false; this.nzShowArrow = true; this.nzTokenSeparators = []; renderer.addClass(elementRef.nativeElement, 'ant-select'); } Object.defineProperty(NzSelectComponent.prototype, "nzAutoClearSearchValue", { set: /** * @param {?} value * @return {?} */ function (value) { this.nzSelectService.autoClearSearchValue = toBoolean(value); }, enumerable: true, configurable: true }); Object.defineProperty(NzSelectComponent.prototype, "nzMaxMultipleCount", { set: /** * @param {?} value * @return {?} */ function (value) { this.nzSelectService.maxMultipleCount = value; }, enumerable: true, configurable: true }); Object.defineProperty(NzSelectComponent.prototype, "nzServerSearch", { set: /** * @param {?} value * @return {?} */ function (value) { this.nzSelectService.serverSearch = toBoolean(value); }, enumerable: true, configurable: true }); Object.defineProperty(NzSelectComponent.prototype, "nzMode", { set: /** * @param {?} value * @return {?} */ function (value) { this.nzSelectService.mode = value; this.nzSelectService.check(); }, enumerable: true, configurable: true }); Object.defineProperty(NzSelectComponent.prototype, "nzFilterOption", { set: /** * @param {?} value * @return {?} */ function (value) { this.nzSelectService.filterOption = value; }, enumerable: true, configurable: true }); Object.defineProperty(NzSelectComponent.prototype, "compareWith", { set: /** * @param {?} value * @return {?} */ function (value) { this.nzSelectService.compareWith = value; }, enumerable: true, configurable: true }); Object.defineProperty(NzSelectComponent.prototype, "nzAutoFocus", { get: /** * @return {?} */ function () { return this._autoFocus; }, set: /** * @param {?} value * @return {?} */ function (value) { this._autoFocus = toBoolean(value); this.updateAutoFocus(); }, enumerable: true, configurable: true }); Object.defineProperty(NzSelectComponent.prototype, "nzOpen", { set: /** * @param {?} value * @return {?} */ function (value) { this.open = value; this.nzSelectService.setOpenState(value); }, enumerable: true, configurable: true }); Object.defineProperty(NzSelectComponent.prototype, "nzDisabled", { get: /** * @return {?} */ function () { return this._disabled; }, set: /** * @param {?} value * @return {?} */ function (value) { this._disabled = toBoolean(value); this.nzSelectService.disabled = this._disabled; this.nzSelectService.check(); if (this.nzDisabled && this.isInit) { this.closeDropDown(); } }, enumerable: true, configurable: true }); /** * @return {?} */ NzSelectComponent.prototype.updateAutoFocus = /** * @return {?} */ function () { if (this.nzSelectTopControlComponent.inputElement) { if (this.nzAutoFocus) { this.renderer.setAttribute(this.nzSelectTopControlComponent.inputElement.nativeElement, 'autofocus', 'autofocus'); } else { this.renderer.removeAttribute(this.nzSelectTopControlComponent.inputElement.nativeElement, 'autofocus'); } } }; /** * @return {?} */ NzSelectComponent.prototype.focus = /** * @return {?} */ function () { if (this.nzSelectTopControlComponent.inputElement) { this.focusMonitor.focusVia(this.nzSelectTopControlComponent.inputElement, 'keyboard'); this.nzFocus.emit(); } }; /** * @return {?} */ NzSelectComponent.prototype.blur = /** * @return {?} */ function () { if (this.nzSelectTopControlComponent.inputElement) { this.nzSelectTopControlComponent.inputElement.nativeElement.blur(); this.nzBlur.emit(); } }; /** * @param {?} event * @return {?} */ NzSelectComponent.prototype.onKeyDown = /** * @param {?} event * @return {?} */ function (event) { this.nzSelectService.onKeyDown(event); }; /** * @return {?} */ NzSelectComponent.prototype.toggleDropDown = /** * @return {?} */ function () { if (!this.nzDisabled) { this.nzSelectService.setOpenState(!this.open); } }; /** * @return {?} */ NzSelectComponent.prototype.closeDropDown = /** * @return {?} */ function () { this.nzSelectService.setOpenState(false); }; /** * @param {?} position * @return {?} */ NzSelectComponent.prototype.onPositionChange = /** * @param {?} position * @return {?} */ function (position) { this.dropDownPosition = position.connectionPair.originY; }; /** * @return {?} */ NzSelectComponent.prototype.updateCdkConnectedOverlayStatus = /** * @return {?} */ function () { this.triggerWidth = this.cdkOverlayOrigin.elementRef.nativeElement.getBoundingClientRect().width; }; /** * @return {?} */ NzSelectComponent.prototype.updateCdkConnectedOverlayPositions = /** * @return {?} */ function () { var _this = this; setTimeout((/** * @return {?} */ function () { if (_this.cdkConnectedOverlay && _this.cdkConnectedOverlay.overlayRef) { _this.cdkConnectedOverlay.overlayRef.updatePosition(); } })); }; /** update ngModel -> update listOfSelectedValue **/ // tslint:disable-next-line:no-any /** * update ngModel -> update listOfSelectedValue * * @param {?} value * @return {?} */ // tslint:disable-next-line:no-any NzSelectComponent.prototype.writeValue = /** * update ngModel -> update listOfSelectedValue * * @param {?} value * @return {?} */ // tslint:disable-next-line:no-any function (value) { this.value = value; /** @type {?} */ var listValue = []; if (isNotNil(value)) { if (Array.isArray(value)) { listValue = value; } else { listValue = [value]; } } this.nzSelectService.updateListOfSelectedValue(listValue, false); this.cdr.markForCheck(); }; /** * @param {?} fn * @return {?} */ NzSelectComponent.prototype.registerOnChange = /** * @param {?} fn * @return {?} */ function (fn) { this.onChange = fn; }; /** * @param {?} fn * @return {?} */ NzSelectComponent.prototype.registerOnTouched = /** * @param {?} fn * @return {?} */ function (fn) { this.onTouched = fn; }; /** * @param {?} isDisabled * @return {?} */ NzSelectComponent.prototype.setDisabledState = /** * @param {?} isDisabled * @return {?} */ function (isDisabled) { this.nzDisabled = isDisabled; this.cdr.markForCheck(); }; /** * @return {?} */ NzSelectComponent.prototype.ngOnInit = /** * @return {?} */ function () { var _this = this; this.nzSelectService.searchValue$.pipe(takeUntil(this.destroy$)).subscribe((/** * @param {?} data * @return {?} */ function (data) { _this.nzOnSearch.emit(data); _this.updateCdkConnectedOverlayPositions(); })); this.nzSelectService.modelChange$.pipe(takeUntil(this.destroy$)).subscribe((/** * @param {?} modelValue * @return {?} */ function (modelValue) { if (_this.value !== modelValue) { _this.value = modelValue; _this.onChange(_this.value); _this.updateCdkConnectedOverlayPositions(); } })); this.nzSelectService.open$.pipe(takeUntil(this.destroy$)).subscribe((/** * @param {?} value * @return {?} */ function (value) { if (_this.open !== value) { _this.nzOpenChange.emit(value); } if (value) { _this.focus(); _this.updateCdkConnectedOverlayStatus(); } else { _this.blur(); _this.onTouched(); } _this.open = value; })); this.nzSelectService.check$.pipe(takeUntil(this.destroy$)).subscribe((/** * @return {?} */ function () { _this.cdr.markForCheck(); })); }; /** * @return {?} */ NzSelectComponent.prototype.ngAfterViewInit = /** * @return {?} */ function () { this.updateCdkConnectedOverlayStatus(); this.isInit = true; }; /** * @return {?} */ NzSelectComponent.prototype.ngAfterContentInit = /** * @return {?} */ function () { var _this = this; this.listOfNzOptionGroupComponent.changes .pipe(startWith(true), flatMap((/** * @return {?} */ function () { return merge.apply(void 0, tslib_1.__spread([_this.listOfNzOptionGroupComponent.changes, _this.listOfNzOptionComponent.changes], _this.listOfNzOptionGroupComponent.map((/** * @param {?} group * @return {?} */ function (group) { return group.listOfNzOptionComponent ? group.listOfNzOptionComponent.changes : EMPTY; })))).pipe(startWith(true)); }))) .subscribe((/** * @return {?} */ function () { _this.nzSelectService.updateTemplateOption(_this.listOfNzOptionComponent.toArray(), _this.listOfNzOptionGroupComponent.toArray()); })); }; /** * @return {?} */ NzSelectComponent.prototype.ngOnDestroy = /** * @return {?} */ function () { this.destroy$.next(); this.destroy$.complete(); }; NzSelectComponent.decorators = [ { type: Component, args: [{ selector: 'nz-select', preserveWhitespaces: false, providers: [ NzSelectService, { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef((/** * @return {?} */ function () { return NzSelectComponent; })), multi: true } ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, animations: [slideMotion], template: "<div cdkOverlayOrigin\n nz-select-top-control\n tabindex=\"0\"\n class=\"ant-select-selection\"\n [nzOpen]=\"open\"\n [nzNoAnimation]=\"noAnimation?.nzNoAnimation\"\n [nzMaxTagPlaceholder]=\"nzMaxTagPlaceholder\"\n [nzPlaceHolder]=\"nzPlaceHolder\"\n [nzAllowClear]=\"nzAllowClear\"\n [nzMaxTagCount]=\"nzMaxTagCount\"\n [nzShowArrow]=\"nzShowArrow\"\n [nzLoading]=\"nzLoading\"\n [nzSuffixIcon]=\"nzSuffixIcon\"\n [nzClearIcon]=\"nzClearIcon\"\n [nzRemoveIcon]=\"nzRemoveIcon\"\n [nzShowSearch]=\"nzShowSearch\"\n [nzTokenSeparators]=\"nzTokenSeparators\"\n [class.ant-select-selection--single]=\"nzSelectService.isSingleMode\"\n [class.ant-select-selection--multiple]=\"nzSelectService.isMultipleOrTags\"\n (keydown)=\"onKeyDown($event)\">\n</div>\n<ng-template\n cdkConnectedOverlay\n nzConnectedOverlay\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n [cdkConnectedOverlayMinWidth]=\"nzDropdownMatchSelectWidth? null : triggerWidth\"\n [cdkConnectedOverlayWidth]=\"nzDropdownMatchSelectWidth? triggerWidth : null\"\n [cdkConnectedOverlayOrigin]=\"cdkOverlayOrigin\"\n (backdropClick)=\"closeDropDown()\"\n (detach)=\"closeDropDown();\"\n (positionChange)=\"onPositionChange($event)\"\n [cdkConnectedOverlayOpen]=\"open\">\n <div\n class=\"ant-select-dropdown\"\n [class.ant-select-dropdown--single]=\"nzSelectService.isSingleMode\"\n [class.ant-select-dropdown--multiple]=\"nzSelectService.isMultipleOrTags\"\n [class.ant-select-dropdown-placement-bottomLeft]=\"dropDownPosition === 'bottom'\"\n [class.ant-select-dropdown-placement-topLeft]=\"dropDownPosition === 'top'\"\n [nzClassListAdd]=\"[nzDropdownClassName]\"\n [@slideMotion]=\"dropDownPosition\"\n [nzNoAnimation]=\"noAnimation?.nzNoAnimation\"\n [ngStyle]=\"nzDropdownStyle\">\n <div nz-option-container\n style=\"overflow: auto;transform: translateZ(0px);\"\n (keydown)=\"onKeyDown($event)\"\n [nzMenuItemSelectedIcon]=\"nzMenuItemSelectedIcon\"\n [nzNotFoundContent]=\"nzNotFoundContent\"\n (nzScrollToBottom)=\"nzScrollToBottom.emit()\">\n </div>\n <ng-template [ngTemplateOutlet]=\"nzDropdownRender\"></ng-template>\n </div>\n</ng-template>\n<!--can not use ViewChild since it will match sub options in option group -->\n<ng-template>\n <ng-content></ng-content>\n</ng-template>", host: { '[class.ant-select-lg]': 'nzSize==="large"', '[class.ant-select-sm]': 'nzSize==="small"', '[class.ant-select-enabled]': '!nzDisabled', '[class.ant-select-no-arrow]': '!nzShowArrow', '[class.ant-select-disabled]': 'nzDisabled', '[class.ant-select-allow-clear]': 'nzAllowClear', '[class.ant-select-open]': 'open', '(click)': 'toggleDropDown()' }, styles: ["\n .ant-select-dropdown {\n top: 100%;\n left: 0;\n position: relative;\n width: 100%;\n margin-top: 4px;\n margin-bottom: 4px;\n }\n "] }] } ]; /** @nocollapse */ NzSelectComponent.ctorParameters = function () { return [ { type: Renderer2 }, { type: NzSelectService }, { type: ChangeDetectorRef }, { type: FocusMonitor }, { type: ElementRef }, { type: NzNoAnimationDirective, decorators: [{ type: Host }, { type: Optional }] } ]; }; NzSelectComponent.propDecorators = { cdkOverlayOrigin: [{ type: ViewChild, args: [CdkOverlayOrigin,] }], cdkConnectedOverlay: [{ type: ViewChild, args: [CdkConnectedOverlay,] }], nzSelectTopControlComponent: [{ type: ViewChild, args: [NzSelectTopControlComponent,] }], listOfNzOptionComponent: [{ type: ContentChildren, args: [NzOptionComponent,] }], listOfNzOptionGroupComponent: [{ type: ContentChildren, args: [NzOptionGroupComponent,] }], nzOnSearch: [{ type: Output }], nzScrollToBottom: [{ type: Output }], nzOpenChange: [{ type: Output }], nzBlur: [{ type: Output }], nzFocus: [{ type: Output }], nzSize: [{ type: Input }], nzDropdownClassName: [{ type: Input }], nzDropdownMatchSelectWidth: [{ type: Input }], nzDropdownStyle: [{ type: Input }], nzNotFoundContent: [{ type: Input }], nzAllowClear: [{ type: Input }], nzShowSearch: [{ type: Input }], nzLoading: [{ type: Input }], nzPlaceHolder: [{ type: Input }], nzMaxTagCount: [{ type: Input }], nzDropdownRender: [{ type: Input }], nzSuffixIcon: [{ type: Input }], nzClearIcon: [{ type: Input }], nzRemoveIcon: [{ type: Input }], nzMenuItemSelectedIcon: [{ type: Input }], nzShowArrow: [{ type: Input }], nzTokenSeparators: [{ type: Input }], nzMaxTagPlaceholder: [{ type: Input }], nzAutoClearSearchValue: [{ type: Input }], nzMaxMultipleCount: [{ type: Input }], nzServerSearch: [{ type: Input }], nzMode: [{ type: Input }], nzFilterOption: [{ type: Input }], compareWith: [{ type: Input }], nzAutoFocus: [{ type: Input }], nzOpen: [{ type: Input }], nzDisabled: [{ type: Input }] }; tslib_1.__decorate([ InputBoolean(), tslib_1.__metadata("design:type", Object) ], NzSelectComponent.prototype, "nzAllowClear", void 0); tslib_1.__decorate([ InputBoolean(), tslib_1.__metadata("design:type", Object) ], NzSelectComponent.prototype, "nzShowSearch", void 0); tslib_1.__decorate([ InputBoolean(), tslib_1.__metadata("design:type", Object) ], NzSelectComponent.prototype, "nzLoading", void 0); return NzSelectComponent; }()); export { NzSelectComponent }; if (false) { /** @type {?} */ NzSelectComponent.prototype.open; /** @type {?} */ NzSelectComponent.prototype.value; /** @type {?} */ NzSelectComponent.prototype.onChange; /** @type {?} */ NzSelectComponent.prototype.onTouched; /** @type {?} */ NzSelectComponent.prototype.dropDownPosition; /** @type {?} */ NzSelectComponent.prototype.triggerWidth; /** * @type {?} * @private */ NzSelectComponent.prototype._disabled; /** * @type {?} * @private */ NzSelectComponent.prototype._autoFocus; /** * @type {?} * @private */ NzSelectComponent.prototype.isInit; /** * @type {?} * @private */ NzSelectComponent.prototype.destroy$; /** @type {?} */ NzSelectComponent.prototype.cdkOverlayOrigin; /** @type {?} */ NzSelectComponent.prototype.cdkConnectedOverlay; /** @type {?} */ NzSelectComponent.prototype.nzSelectTopControlComponent; /** * should move to nz-option-container when https://github.com/angular/angular/issues/20810 resolved * * @type {?} */ NzSelectComponent.prototype.listOfNzOptionComponent; /** @type {?} */ NzSelectComponent.prototype.listOfNzOptionGroupComponent; /** @type {?} */ NzSelectComponent.prototype.nzOnSearch; /** @type {?} */ NzSelectComponent.prototype.nzScrollToBottom; /** @type {?} */ NzSelectComponent.prototype.nzOpenChange; /** @type {?} */ NzSelectComponent.prototype.nzBlur; /** @type {?} */ NzSelectComponent.prototype.nzFocus; /** @type {?} */ NzSelectComponent.prototype.nzSize; /** @type {?} */ NzSelectComponent.prototype.nzDropdownClassName; /** @type {?} */ NzSelectComponent.prototype.nzDropdownMatchSelectWidth; /** @type {?} */ NzSelectComponent.prototype.nzDropdownStyle; /** @type {?} */ NzSelectComponent.prototype.nzNotFoundContent; /** @type {?} */ NzSelectComponent.prototype.nzAllowClear; /** @type {?} */ NzSelectComponent.prototype.nzShowSearch; /** @type {?} */ NzSelectComponent.prototype.nzLoading; /** @type {?} */ NzSelectComponent.prototype.nzPlaceHolder; /** @type {?} */ NzSelectComponent.prototype.nzMaxTagCount; /** @type {?} */ NzSelectComponent.prototype.nzDropdownRender; /** @type {?} */ NzSelectComponent.prototype.nzSuffixIcon; /** @type {?} */ NzSelectComponent.prototype.nzClearIcon; /** @type {?} */ NzSelectComponent.prototype.nzRemoveIcon; /** @type {?} */ NzSelectComponent.prototype.nzMenuItemSelectedIcon; /** @type {?} */ NzSelectComponent.prototype.nzShowArrow; /** @type {?} */ NzSelectComponent.prototype.nzTokenSeparators; /** @type {?} */ NzSelectComponent.prototype.nzMaxTagPlaceholder; /** * @type {?} * @private */ NzSelectComponent.prototype.renderer; /** @type {?} */ NzSelectComponent.prototype.nzSelectService; /** * @type {?} * @private */ NzSelectComponent.prototype.cdr; /** * @type {?} * @private */ NzSelectComponent.prototype.focusMonitor; /** @type {?} */ NzSelectComponent.prototype.noAnimation; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnotc2VsZWN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25nLXpvcnJvLWFudGQteWovIiwic291cmNlcyI6WyJzZWxlY3Qvbnotc2VsZWN0LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNqRCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsZ0JBQWdCLEVBQWtDLE1BQU0sc0JBQXNCLENBQUM7QUFDN0csT0FBTyxFQUNMLFVBQVUsRUFHVix1QkFBdUIsRUFDdkIsaUJBQWlCLEVBQ2pCLFNBQVMsRUFDVCxlQUFlLEVBQ2YsVUFBVSxFQUNWLFlBQVksRUFDWixJQUFJLEVBQ0os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