UNPKG

ng-zorro-antd

Version:

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

945 lines (936 loc) 29.4 kB
import { __spread, __decorate, __metadata } from 'tslib'; import { OverlayConfig, ConnectionPositionPair, Overlay, OverlayModule } from '@angular/cdk/overlay'; import { DOCUMENT, CommonModule } from '@angular/common'; import { Directive, Injectable, forwardRef, EventEmitter, ElementRef, Component, ChangeDetectionStrategy, Optional, Inject, ChangeDetectorRef, ViewContainerRef, Input, Output, ViewChild, TemplateRef, ContentChild, NgModule } from '@angular/core'; import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms'; import { NzIconModule } from 'ng-zorro-antd/icon'; import { Subject, merge, fromEvent } from 'rxjs'; import { ENTER, LEFT_ARROW, RIGHT_ARROW, TAB, ESCAPE, UP_ARROW, DOWN_ARROW } from '@angular/cdk/keycodes'; import { TemplatePortal } from '@angular/cdk/portal'; import { DEFAULT_MENTION_BOTTOM_POSITIONS, DEFAULT_MENTION_TOP_POSITIONS } from 'ng-zorro-antd/core/overlay'; import { getMentions, getCaretCoordinates, InputBoolean } from 'ng-zorro-antd/core/util'; /** * @fileoverview added by tsickle * Generated from: mention-suggestions.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ var NzMentionSuggestionDirective = /** @class */ (function () { function NzMentionSuggestionDirective() { } NzMentionSuggestionDirective.decorators = [ { type: Directive, args: [{ selector: '[nzMentionSuggestion]', exportAs: 'nzMentionSuggestion' },] } ]; return NzMentionSuggestionDirective; }()); /** * @fileoverview added by tsickle * Generated from: mention.service.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ var NzMentionService = /** @class */ (function () { function NzMentionService() { this.triggerChange$ = new Subject(); } /** * @return {?} */ NzMentionService.prototype.triggerChanged = /** * @return {?} */ function () { return this.triggerChange$.asObservable(); }; /** * @param {?} trigger * @return {?} */ NzMentionService.prototype.registerTrigger = /** * @param {?} trigger * @return {?} */ function (trigger) { if (this.trigger !== trigger) { this.trigger = trigger; this.triggerChange$.next(trigger); } }; /** * @return {?} */ NzMentionService.prototype.ngOnDestroy = /** * @return {?} */ function () { this.triggerChange$.complete(); }; NzMentionService.decorators = [ { type: Injectable } ]; return NzMentionService; }()); if (false) { /** * @type {?} * @private */ NzMentionService.prototype.trigger; /** * @type {?} * @private */ NzMentionService.prototype.triggerChange$; } /** * @fileoverview added by tsickle * Generated from: mention-trigger.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** @type {?} */ var NZ_MENTION_TRIGGER_ACCESSOR = { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef((/** * @return {?} */ function () { return NzMentionTriggerDirective; })), multi: true }; var NzMentionTriggerDirective = /** @class */ (function () { function NzMentionTriggerDirective(el, nzMentionService) { this.el = el; this.nzMentionService = nzMentionService; this.onChange = (/** * @return {?} */ function () { }); this.onTouched = (/** * @return {?} */ function () { }); this.onFocusin = new EventEmitter(); this.onBlur = new EventEmitter(); this.onInput = new EventEmitter(); this.onKeydown = new EventEmitter(); this.onClick = new EventEmitter(); } /** * @return {?} */ NzMentionTriggerDirective.prototype.completeEvents = /** * @return {?} */ function () { this.onFocusin.complete(); this.onBlur.complete(); this.onInput.complete(); this.onKeydown.complete(); this.onClick.complete(); }; /** * @param {?=} caretPos * @return {?} */ NzMentionTriggerDirective.prototype.focus = /** * @param {?=} caretPos * @return {?} */ function (caretPos) { this.el.nativeElement.focus(); this.el.nativeElement.setSelectionRange(caretPos, caretPos); }; /** * @param {?} mention * @return {?} */ NzMentionTriggerDirective.prototype.insertMention = /** * @param {?} mention * @return {?} */ function (mention) { /** @type {?} */ var value = this.el.nativeElement.value; /** @type {?} */ var insertValue = mention.mention.trim() + ' '; /** @type {?} */ var newValue = [value.slice(0, mention.startPos + 1), insertValue, value.slice(mention.endPos, value.length)].join(''); this.el.nativeElement.value = newValue; this.focus(mention.startPos + insertValue.length + 1); this.onChange(newValue); this.value = newValue; }; /** * @param {?} value * @return {?} */ NzMentionTriggerDirective.prototype.writeValue = /** * @param {?} value * @return {?} */ function (value) { this.value = value; if (typeof value === 'string') { this.el.nativeElement.value = value; } else { this.el.nativeElement.value = ''; } }; /** * @param {?} fn * @return {?} */ NzMentionTriggerDirective.prototype.registerOnChange = /** * @param {?} fn * @return {?} */ function (fn) { this.onChange = fn; }; /** * @param {?} fn * @return {?} */ NzMentionTriggerDirective.prototype.registerOnTouched = /** * @param {?} fn * @return {?} */ function (fn) { this.onTouched = fn; }; /** * @return {?} */ NzMentionTriggerDirective.prototype.ngAfterViewInit = /** * @return {?} */ function () { this.nzMentionService.registerTrigger(this); }; /** * @return {?} */ NzMentionTriggerDirective.prototype.ngOnDestroy = /** * @return {?} */ function () { this.completeEvents(); }; NzMentionTriggerDirective.decorators = [ { type: Directive, args: [{ selector: 'input[nzMentionTrigger], textarea[nzMentionTrigger]', exportAs: 'nzMentionTrigger', providers: [NZ_MENTION_TRIGGER_ACCESSOR], host: { autocomplete: 'off', '(focusin)': 'onFocusin.emit()', '(blur)': 'onBlur.emit()', '(input)': 'onInput.emit($event)', '(keydown)': 'onKeydown.emit($event)', '(click)': 'onClick.emit($event)' } },] } ]; /** @nocollapse */ NzMentionTriggerDirective.ctorParameters = function () { return [ { type: ElementRef }, { type: NzMentionService } ]; }; return NzMentionTriggerDirective; }()); if (false) { /** @type {?} */ NzMentionTriggerDirective.prototype.onChange; /** @type {?} */ NzMentionTriggerDirective.prototype.onTouched; /** @type {?} */ NzMentionTriggerDirective.prototype.onFocusin; /** @type {?} */ NzMentionTriggerDirective.prototype.onBlur; /** @type {?} */ NzMentionTriggerDirective.prototype.onInput; /** @type {?} */ NzMentionTriggerDirective.prototype.onKeydown; /** @type {?} */ NzMentionTriggerDirective.prototype.onClick; /** @type {?} */ NzMentionTriggerDirective.prototype.value; /** @type {?} */ NzMentionTriggerDirective.prototype.el; /** * @type {?} * @private */ NzMentionTriggerDirective.prototype.nzMentionService; } /** * @fileoverview added by tsickle * Generated from: mention.component.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @record */ function MentionOnSearchTypes() { } if (false) { /** @type {?} */ MentionOnSearchTypes.prototype.value; /** @type {?} */ MentionOnSearchTypes.prototype.prefix; } /** * @record */ function Mention() { } if (false) { /** @type {?} */ Mention.prototype.startPos; /** @type {?} */ Mention.prototype.endPos; /** @type {?} */ Mention.prototype.mention; } var NzMentionComponent = /** @class */ (function () { function NzMentionComponent(ngDocument, cdr, overlay, viewContainerRef, nzMentionService) { this.ngDocument = ngDocument; this.cdr = cdr; this.overlay = overlay; this.viewContainerRef = viewContainerRef; this.nzMentionService = nzMentionService; this.nzValueWith = (/** * @param {?} value * @return {?} */ function (value) { return value; }); this.nzPrefix = '@'; this.nzLoading = false; this.nzNotFoundContent = '无匹配结果,轻敲空格完成输入'; this.nzPlacement = 'bottom'; this.nzSuggestions = []; this.nzOnSelect = new EventEmitter(); this.nzOnSearchChange = new EventEmitter(); this.isOpen = false; this.filteredSuggestions = []; this.suggestionTemplate = null; this.activeIndex = -1; this.previousValue = null; } Object.defineProperty(NzMentionComponent.prototype, "suggestionChild", { set: /** * @param {?} value * @return {?} */ function (value) { if (value) { this.suggestionTemplate = value; } }, enumerable: true, configurable: true }); Object.defineProperty(NzMentionComponent.prototype, "triggerNativeElement", { get: /** * @private * @return {?} */ function () { return this.trigger.el.nativeElement; }, enumerable: true, configurable: true }); /** * @return {?} */ NzMentionComponent.prototype.ngOnInit = /** * @return {?} */ function () { var _this = this; this.nzMentionService.triggerChanged().subscribe((/** * @param {?} trigger * @return {?} */ function (trigger) { _this.trigger = trigger; _this.bindTriggerEvents(); _this.closeDropdown(); _this.overlayRef = null; })); }; /** * @param {?} changes * @return {?} */ NzMentionComponent.prototype.ngOnChanges = /** * @param {?} changes * @return {?} */ function (changes) { if (changes.hasOwnProperty('nzSuggestions')) { if (this.isOpen) { this.previousValue = null; this.activeIndex = -1; this.resetDropdown(false); } } }; /** * @return {?} */ NzMentionComponent.prototype.ngOnDestroy = /** * @return {?} */ function () { this.closeDropdown(); }; /** * @return {?} */ NzMentionComponent.prototype.closeDropdown = /** * @return {?} */ function () { if (this.overlayRef && this.overlayRef.hasAttached()) { this.overlayRef.detach(); this.overlayBackdropClickSubscription.unsubscribe(); this.isOpen = false; this.cdr.markForCheck(); } }; /** * @return {?} */ NzMentionComponent.prototype.openDropdown = /** * @return {?} */ function () { this.attachOverlay(); this.isOpen = true; this.cdr.markForCheck(); }; /** * @return {?} */ NzMentionComponent.prototype.getMentions = /** * @return {?} */ function () { return this.trigger ? getMentions(this.trigger.value, this.nzPrefix) : []; }; /** * @param {?} suggestion * @return {?} */ NzMentionComponent.prototype.selectSuggestion = /** * @param {?} suggestion * @return {?} */ function (suggestion) { /** @type {?} */ var value = this.nzValueWith(suggestion); this.trigger.insertMention({ mention: value, startPos: this.cursorMentionStart, endPos: this.cursorMentionEnd }); this.nzOnSelect.emit(suggestion); this.closeDropdown(); this.activeIndex = -1; }; /** * @private * @param {?} event * @return {?} */ NzMentionComponent.prototype.handleInput = /** * @private * @param {?} event * @return {?} */ function (event) { /** @type {?} */ var target = (/** @type {?} */ (event.target)); this.trigger.onChange(target.value); this.trigger.value = target.value; this.resetDropdown(); }; /** * @private * @param {?} event * @return {?} */ NzMentionComponent.prototype.handleKeydown = /** * @private * @param {?} event * @return {?} */ function (event) { /** @type {?} */ var keyCode = event.keyCode; if (this.isOpen && keyCode === ENTER && this.activeIndex !== -1 && this.filteredSuggestions.length) { this.selectSuggestion(this.filteredSuggestions[this.activeIndex]); event.preventDefault(); } else if (keyCode === LEFT_ARROW || keyCode === RIGHT_ARROW) { this.resetDropdown(); event.stopPropagation(); } else { if (this.isOpen && (keyCode === TAB || keyCode === ESCAPE)) { this.closeDropdown(); return; } if (this.isOpen && keyCode === UP_ARROW) { this.setPreviousItemActive(); event.preventDefault(); event.stopPropagation(); } if (this.isOpen && keyCode === DOWN_ARROW) { this.setNextItemActive(); event.preventDefault(); event.stopPropagation(); } } }; /** * @private * @return {?} */ NzMentionComponent.prototype.handleClick = /** * @private * @return {?} */ function () { this.resetDropdown(); }; /** * @private * @return {?} */ NzMentionComponent.prototype.bindTriggerEvents = /** * @private * @return {?} */ function () { var _this = this; this.trigger.onInput.subscribe((/** * @param {?} e * @return {?} */ function (e) { return _this.handleInput(e); })); this.trigger.onKeydown.subscribe((/** * @param {?} e * @return {?} */ function (e) { return _this.handleKeydown(e); })); this.trigger.onClick.subscribe((/** * @return {?} */ function () { return _this.handleClick(); })); }; /** * @private * @param {?} value * @param {?} emit * @return {?} */ NzMentionComponent.prototype.suggestionsFilter = /** * @private * @param {?} value * @param {?} emit * @return {?} */ function (value, emit) { var _this = this; /** @type {?} */ var suggestions = value.substring(1); if (this.previousValue === value) { return; } this.previousValue = value; if (emit) { this.nzOnSearchChange.emit({ value: (/** @type {?} */ (this.cursorMention)).substring(1), prefix: (/** @type {?} */ (this.cursorMention))[0] }); } /** @type {?} */ var searchValue = suggestions.toLowerCase(); this.filteredSuggestions = this.nzSuggestions.filter((/** * @param {?} suggestion * @return {?} */ function (suggestion) { return _this.nzValueWith(suggestion).toLowerCase().includes(searchValue); })); }; /** * @private * @param {?=} emit * @return {?} */ NzMentionComponent.prototype.resetDropdown = /** * @private * @param {?=} emit * @return {?} */ function (emit) { if (emit === void 0) { emit = true; } this.resetCursorMention(); if (typeof this.cursorMention !== 'string' || !this.canOpen()) { this.closeDropdown(); return; } this.suggestionsFilter(this.cursorMention, emit); /** @type {?} */ var activeIndex = this.filteredSuggestions.indexOf(this.cursorMention.substring(1)); this.activeIndex = activeIndex >= 0 ? activeIndex : 0; this.openDropdown(); }; /** * @private * @return {?} */ NzMentionComponent.prototype.setNextItemActive = /** * @private * @return {?} */ function () { this.activeIndex = this.activeIndex + 1 <= this.filteredSuggestions.length - 1 ? this.activeIndex + 1 : 0; this.cdr.markForCheck(); }; /** * @private * @return {?} */ NzMentionComponent.prototype.setPreviousItemActive = /** * @private * @return {?} */ function () { this.activeIndex = this.activeIndex - 1 < 0 ? this.filteredSuggestions.length - 1 : this.activeIndex - 1; this.cdr.markForCheck(); }; /** * @private * @return {?} */ NzMentionComponent.prototype.canOpen = /** * @private * @return {?} */ function () { /** @type {?} */ var element = this.triggerNativeElement; return !element.readOnly && !element.disabled; }; /** * @private * @return {?} */ NzMentionComponent.prototype.resetCursorMention = /** * @private * @return {?} */ function () { /** @type {?} */ var value = this.triggerNativeElement.value.replace(/[\r\n]/g, ' ') || ''; /** @type {?} */ var selectionStart = (/** @type {?} */ (this.triggerNativeElement.selectionStart)); /** @type {?} */ var prefix = typeof this.nzPrefix === 'string' ? [this.nzPrefix] : this.nzPrefix; /** @type {?} */ var i = prefix.length; while (i >= 0) { /** @type {?} */ var startPos = value.lastIndexOf(prefix[i], selectionStart); /** @type {?} */ var endPos = value.indexOf(' ', selectionStart) > -1 ? value.indexOf(' ', selectionStart) : value.length; /** @type {?} */ var mention = value.substring(startPos, endPos); if ((startPos > 0 && value[startPos - 1] !== ' ') || startPos < 0 || mention.includes(prefix[i], 1) || mention.includes(' ')) { this.cursorMention = null; this.cursorMentionStart = -1; this.cursorMentionEnd = -1; } else { this.cursorMention = mention; this.cursorMentionStart = startPos; this.cursorMentionEnd = endPos; return; } i--; } }; /** * @private * @return {?} */ NzMentionComponent.prototype.updatePositions = /** * @private * @return {?} */ function () { /** @type {?} */ var coordinates = getCaretCoordinates(this.triggerNativeElement, this.cursorMentionStart); /** @type {?} */ var top = coordinates.top - this.triggerNativeElement.getBoundingClientRect().height - this.triggerNativeElement.scrollTop + (this.nzPlacement === 'bottom' ? coordinates.height - 6 : -6); /** @type {?} */ var left = coordinates.left - this.triggerNativeElement.scrollLeft; this.positionStrategy.withDefaultOffsetX(left).withDefaultOffsetY(top); if (this.nzPlacement === 'bottom') { this.positionStrategy.withPositions(__spread(DEFAULT_MENTION_BOTTOM_POSITIONS)); } if (this.nzPlacement === 'top') { this.positionStrategy.withPositions(__spread(DEFAULT_MENTION_TOP_POSITIONS)); } this.positionStrategy.apply(); }; /** * @private * @return {?} */ NzMentionComponent.prototype.subscribeOverlayBackdropClick = /** * @private * @return {?} */ function () { var _this = this; return merge(fromEvent(this.ngDocument, 'click'), fromEvent(this.ngDocument, 'touchend')).subscribe((/** * @param {?} event * @return {?} */ function (event) { /** @type {?} */ var clickTarget = (/** @type {?} */ (event.target)); if (_this.isOpen && clickTarget !== _this.trigger.el.nativeElement && !!_this.overlayRef && !_this.overlayRef.overlayElement.contains(clickTarget)) { _this.closeDropdown(); } })); }; /** * @private * @return {?} */ NzMentionComponent.prototype.attachOverlay = /** * @private * @return {?} */ function () { if (!this.overlayRef) { this.portal = new TemplatePortal(this.suggestionsTemp, this.viewContainerRef); this.overlayRef = this.overlay.create(this.getOverlayConfig()); } if (this.overlayRef && !this.overlayRef.hasAttached()) { this.overlayRef.attach(this.portal); this.overlayBackdropClickSubscription = this.subscribeOverlayBackdropClick(); } this.updatePositions(); }; /** * @private * @return {?} */ NzMentionComponent.prototype.getOverlayConfig = /** * @private * @return {?} */ function () { return new OverlayConfig({ positionStrategy: this.getOverlayPosition(), scrollStrategy: this.overlay.scrollStrategies.reposition(), disposeOnNavigation: true }); }; /** * @private * @return {?} */ NzMentionComponent.prototype.getOverlayPosition = /** * @private * @return {?} */ function () { /** @type {?} */ var positions = [ new ConnectionPositionPair({ originX: 'start', originY: 'bottom' }, { overlayX: 'start', overlayY: 'top' }), new ConnectionPositionPair({ originX: 'start', originY: 'top' }, { overlayX: 'start', overlayY: 'bottom' }) ]; this.positionStrategy = this.overlay .position() .flexibleConnectedTo(this.trigger.el) .withPositions(positions) .withFlexibleDimensions(false) .withPush(false); return this.positionStrategy; }; NzMentionComponent.decorators = [ { type: Component, args: [{ selector: 'nz-mention', exportAs: 'nzMention', template: "\n <ng-content></ng-content>\n <ng-template #suggestions>\n <ul class=\"ant-mention-dropdown\">\n <li\n class=\"ant-mention-dropdown-item\"\n *ngFor=\"let suggestion of filteredSuggestions; let i = index\"\n [class.focus]=\"i === activeIndex\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"selectSuggestion(suggestion)\"\n >\n <ng-container *ngIf=\"suggestionTemplate; else defaultSuggestion\">\n <ng-container *ngTemplateOutlet=\"suggestionTemplate; context: { $implicit: suggestion }\"></ng-container>\n </ng-container>\n <ng-template #defaultSuggestion>{{ nzValueWith(suggestion) }}</ng-template>\n </li>\n <li class=\"ant-mention-dropdown-notfound ant-mention-dropdown-item\" *ngIf=\"filteredSuggestions.length === 0\">\n <span *ngIf=\"nzLoading\"><i nz-icon nzType=\"loading\"></i></span>\n <span *ngIf=\"!nzLoading\">{{ nzNotFoundContent }}</span>\n </li>\n </ul>\n </ng-template>\n ", preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, providers: [NzMentionService] }] } ]; /** @nocollapse */ NzMentionComponent.ctorParameters = function () { return [ { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [DOCUMENT,] }] }, { type: ChangeDetectorRef }, { type: Overlay }, { type: ViewContainerRef }, { type: NzMentionService } ]; }; NzMentionComponent.propDecorators = { nzValueWith: [{ type: Input }], nzPrefix: [{ type: Input }], nzLoading: [{ type: Input }], nzNotFoundContent: [{ type: Input }], nzPlacement: [{ type: Input }], nzSuggestions: [{ type: Input }], nzOnSelect: [{ type: Output }], nzOnSearchChange: [{ type: Output }], suggestionsTemp: [{ type: ViewChild, args: [TemplateRef, { static: false },] }], suggestionChild: [{ type: ContentChild, args: [NzMentionSuggestionDirective, { static: false, read: TemplateRef },] }] }; __decorate([ InputBoolean(), __metadata("design:type", Object) ], NzMentionComponent.prototype, "nzLoading", void 0); return NzMentionComponent; }()); if (false) { /** @type {?} */ NzMentionComponent.ngAcceptInputType_nzLoading; /** @type {?} */ NzMentionComponent.prototype.nzValueWith; /** @type {?} */ NzMentionComponent.prototype.nzPrefix; /** @type {?} */ NzMentionComponent.prototype.nzLoading; /** @type {?} */ NzMentionComponent.prototype.nzNotFoundContent; /** @type {?} */ NzMentionComponent.prototype.nzPlacement; /** @type {?} */ NzMentionComponent.prototype.nzSuggestions; /** @type {?} */ NzMentionComponent.prototype.nzOnSelect; /** @type {?} */ NzMentionComponent.prototype.nzOnSearchChange; /** @type {?} */ NzMentionComponent.prototype.trigger; /** @type {?} */ NzMentionComponent.prototype.suggestionsTemp; /** @type {?} */ NzMentionComponent.prototype.isOpen; /** @type {?} */ NzMentionComponent.prototype.filteredSuggestions; /** @type {?} */ NzMentionComponent.prototype.suggestionTemplate; /** @type {?} */ NzMentionComponent.prototype.activeIndex; /** * @type {?} * @private */ NzMentionComponent.prototype.previousValue; /** * @type {?} * @private */ NzMentionComponent.prototype.cursorMention; /** * @type {?} * @private */ NzMentionComponent.prototype.cursorMentionStart; /** * @type {?} * @private */ NzMentionComponent.prototype.cursorMentionEnd; /** * @type {?} * @private */ NzMentionComponent.prototype.overlayRef; /** * @type {?} * @private */ NzMentionComponent.prototype.portal; /** * @type {?} * @private */ NzMentionComponent.prototype.positionStrategy; /** * @type {?} * @private */ NzMentionComponent.prototype.overlayBackdropClickSubscription; /** * @type {?} * @private */ NzMentionComponent.prototype.ngDocument; /** * @type {?} * @private */ NzMentionComponent.prototype.cdr; /** * @type {?} * @private */ NzMentionComponent.prototype.overlay; /** * @type {?} * @private */ NzMentionComponent.prototype.viewContainerRef; /** * @type {?} * @private */ NzMentionComponent.prototype.nzMentionService; } /** * @fileoverview added by tsickle * Generated from: mention.module.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** @type {?} */ var COMPONENTS = [NzMentionComponent, NzMentionTriggerDirective, NzMentionSuggestionDirective]; var NzMentionModule = /** @class */ (function () { function NzMentionModule() { } NzMentionModule.decorators = [ { type: NgModule, args: [{ imports: [CommonModule, FormsModule, OverlayModule, NzIconModule], declarations: __spread(COMPONENTS), exports: __spread(COMPONENTS) },] } ]; return NzMentionModule; }()); /** * @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-mention.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ export { NZ_MENTION_TRIGGER_ACCESSOR, NzMentionComponent, NzMentionModule, NzMentionService, NzMentionSuggestionDirective, NzMentionTriggerDirective }; //# sourceMappingURL=ng-zorro-antd-mention.js.map