5263ad0df0433fc9c75cafdd2037de8aa23d94a1bfc03fe9fa42ec275ce8e5e2.json 76 KB

1
  1. {"ast":null,"code":"var _NzDropDownDirective, _NzContextMenuServiceModule, _NzDropDownADirective, _NzDropdownButtonDirective, _NzDropdownMenuComponent, _NzDropDownModule, _NzContextMenuService;\nconst _c0 = [\"*\"];\nfunction _NzDropdownMenuComponent_ng_template_0_Template(rf, ctx) {\n if (rf & 1) {\n const _r1 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 0);\n i0.ɵɵlistener(\"@slideMotion.done\", function _NzDropdownMenuComponent_ng_template_0_Template_div_animation_slideMotion_done_0_listener($event) {\n i0.ɵɵrestoreView(_r1);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.onAnimationEvent($event));\n })(\"mouseenter\", function _NzDropdownMenuComponent_ng_template_0_Template_div_mouseenter_0_listener() {\n i0.ɵɵrestoreView(_r1);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.setMouseState(true));\n })(\"mouseleave\", function _NzDropdownMenuComponent_ng_template_0_Template_div_mouseleave_0_listener() {\n i0.ɵɵrestoreView(_r1);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.setMouseState(false));\n });\n i0.ɵɵprojection(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵclassProp(\"ant-dropdown-rtl\", ctx_r1.dir === \"rtl\");\n i0.ɵɵproperty(\"ngClass\", ctx_r1.nzOverlayClassName)(\"ngStyle\", ctx_r1.nzOverlayStyle)(\"@slideMotion\", undefined)(\"@.disabled\", !!(ctx_r1.noAnimation == null ? null : ctx_r1.noAnimation.nzNoAnimation))(\"nzNoAnimation\", ctx_r1.noAnimation == null ? null : ctx_r1.noAnimation.nzNoAnimation);\n }\n}\nimport { __decorate } from 'tslib';\nimport { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport * as i0 from '@angular/core';\nimport { EventEmitter, booleanAttribute, Directive, Input, Output, NgModule, inject, TemplateRef, Component, ViewEncapsulation, ChangeDetectionStrategy, ViewChild, Injectable } from '@angular/core';\nimport { Subject, BehaviorSubject, merge, fromEvent, EMPTY, combineLatest, Subscription } from 'rxjs';\nimport { mapTo, map, switchMap, filter, auditTime, distinctUntilChanged, takeUntil, first } from 'rxjs/operators';\nimport * as i1 from 'ng-zorro-antd/core/config';\nimport { WithConfig } from 'ng-zorro-antd/core/config';\nimport { POSITION_MAP } from 'ng-zorro-antd/core/overlay';\nimport * as i2 from '@angular/cdk/overlay';\nimport { ConnectionPositionPair } from '@angular/cdk/overlay';\nimport * as i3 from '@angular/cdk/platform';\nimport * as i1$1 from 'ng-zorro-antd/menu';\nimport { MenuService, NzIsMenuInsideDropDownToken, NzMenuModule } from 'ng-zorro-antd/menu';\nimport { NzButtonGroupComponent } from 'ng-zorro-antd/button';\nimport { NgClass, NgStyle } from '@angular/common';\nimport { slideMotion } from 'ng-zorro-antd/core/animation';\nimport { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation';\nimport * as i2$1 from '@angular/cdk/bidi';\nconst NZ_CONFIG_MODULE_NAME = 'dropDown';\nconst listOfPositions = [POSITION_MAP.bottomLeft, POSITION_MAP.bottomRight, POSITION_MAP.topRight, POSITION_MAP.topLeft];\nclass NzDropDownDirective {\n setDropdownMenuValue(key, value) {\n if (this.nzDropdownMenu) {\n this.nzDropdownMenu.setValue(key, value);\n }\n }\n constructor(nzConfigService, elementRef, overlay, renderer, viewContainerRef, platform) {\n this.nzConfigService = nzConfigService;\n this.elementRef = elementRef;\n this.overlay = overlay;\n this.renderer = renderer;\n this.viewContainerRef = viewContainerRef;\n this.platform = platform;\n this._nzModuleName = NZ_CONFIG_MODULE_NAME;\n this.overlayRef = null;\n this.destroy$ = new Subject();\n this.positionStrategy = this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn('.ant-dropdown');\n this.inputVisible$ = new BehaviorSubject(false);\n this.nzTrigger$ = new BehaviorSubject('hover');\n this.overlayClose$ = new Subject();\n this.nzDropdownMenu = null;\n this.nzTrigger = 'hover';\n this.nzMatchWidthElement = null;\n this.nzBackdrop = false;\n this.nzClickHide = true;\n this.nzDisabled = false;\n this.nzVisible = false;\n this.nzOverlayClassName = '';\n this.nzOverlayStyle = {};\n this.nzPlacement = 'bottomLeft';\n this.nzVisibleChange = new EventEmitter();\n }\n ngAfterViewInit() {\n if (this.nzDropdownMenu) {\n const nativeElement = this.elementRef.nativeElement;\n /** host mouse state **/\n const hostMouseState$ = merge(fromEvent(nativeElement, 'mouseenter').pipe(mapTo(true)), fromEvent(nativeElement, 'mouseleave').pipe(mapTo(false)));\n /** menu mouse state **/\n const menuMouseState$ = this.nzDropdownMenu.mouseState$;\n /** merged mouse state **/\n const mergedMouseState$ = merge(menuMouseState$, hostMouseState$);\n /** host click state **/\n const hostClickState$ = fromEvent(nativeElement, 'click').pipe(map(() => !this.nzVisible));\n /** visible state switch by nzTrigger **/\n const visibleStateByTrigger$ = this.nzTrigger$.pipe(switchMap(trigger => {\n if (trigger === 'hover') {\n return mergedMouseState$;\n } else if (trigger === 'click') {\n return hostClickState$;\n } else {\n return EMPTY;\n }\n }));\n const descendantMenuItemClick$ = this.nzDropdownMenu.descendantMenuItemClick$.pipe(filter(() => this.nzClickHide), mapTo(false));\n const domTriggerVisible$ = merge(visibleStateByTrigger$, descendantMenuItemClick$, this.overlayClose$).pipe(filter(() => !this.nzDisabled));\n const visible$ = merge(this.inputVisible$, domTriggerVisible$);\n combineLatest([visible$, this.nzDropdownMenu.isChildSubMenuOpen$]).pipe(map(([visible, sub]) => visible || sub), auditTime(150), distinctUntilChanged(), filter(() => this.platform.isBrowser), takeUntil(this.destroy$)).subscribe(visible => {\n const element = this.nzMatchWidthElement ? this.nzMatchWidthElement.nativeElement : nativeElement;\n const triggerWidth = element.getBoundingClientRect().width;\n if (this.nzVisible !== visible) {\n this.nzVisibleChange.emit(visible);\n }\n this.nzVisible = visible;\n if (visible) {\n /** set up overlayRef **/\n if (!this.overlayRef) {\n /** new overlay **/\n this.overlayRef = this.overlay.create({\n positionStrategy: this.positionStrategy,\n minWidth: triggerWidth,\n disposeOnNavigation: true,\n hasBackdrop: this.nzBackdrop && this.nzTrigger === 'click',\n scrollStrategy: this.overlay.scrollStrategies.reposition()\n });\n merge(this.overlayRef.backdropClick(), this.overlayRef.detachments(), this.overlayRef.outsidePointerEvents().pipe(filter(e => !this.elementRef.nativeElement.contains(e.target))), this.overlayRef.keydownEvents().pipe(filter(e => e.keyCode === ESCAPE && !hasModifierKey(e)))).pipe(takeUntil(this.destroy$)).subscribe(() => {\n this.overlayClose$.next(false);\n });\n } else {\n /** update overlay config **/\n const overlayConfig = this.overlayRef.getConfig();\n overlayConfig.minWidth = triggerWidth;\n }\n /** open dropdown with animation **/\n this.positionStrategy.withPositions([POSITION_MAP[this.nzPlacement], ...listOfPositions]);\n /** reset portal if needed **/\n if (!this.portal || this.portal.templateRef !== this.nzDropdownMenu.templateRef) {\n this.portal = new TemplatePortal(this.nzDropdownMenu.templateRef, this.viewContainerRef);\n }\n this.overlayRef.attach(this.portal);\n } else {\n /** detach overlayRef if needed **/\n if (this.overlayRef) {\n this.overlayRef.detach();\n }\n }\n });\n this.nzDropdownMenu.animationStateChange$.pipe(takeUntil(this.destroy$)).subscribe(event => {\n if (event.toState === 'void') {\n if (this.overlayRef) {\n this.overlayRef.dispose();\n }\n this.overlayRef = null;\n }\n });\n }\n }\n ngOnDestroy() {\n this.destroy$.next(true);\n this.destroy$.complete();\n if (this.overlayRef) {\n this.overlayRef.dispose();\n this.overlayRef = null;\n }\n }\n ngOnChanges(changes) {\n const {\n nzVisible,\n nzDisabled,\n nzOverlayClassName,\n nzOverlayStyle,\n nzTrigger\n } = changes;\n if (nzTrigger) {\n this.nzTrigger$.next(this.nzTrigger);\n }\n if (nzVisible) {\n this.inputVisible$.next(this.nzVisible);\n }\n if (nzDisabled) {\n const nativeElement = this.elementRef.nativeElement;\n if (this.nzDisabled) {\n this.renderer.setAttribute(nativeElement, 'disabled', '');\n this.inputVisible$.next(false);\n } else {\n this.renderer.removeAttribute(nativeElement, 'disabled');\n }\n }\n if (nzOverlayClassName) {\n this.setDropdownMenuValue('nzOverlayClassName', this.nzOverlayClassName);\n }\n if (nzOverlayStyle) {\n this.setDropdownMenuValue('nzOverlayStyle', this.nzOverlayStyle);\n }\n }\n}\n_NzDropDownDirective = NzDropDownDirective;\n_NzDropDownDirective.ɵfac = function _NzDropDownDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _NzDropDownDirective)(i0.ɵɵdirectiveInject(i1.NzConfigService), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i2.Overlay), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i3.Platform));\n};\n_NzDropDownDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: _NzDropDownDirective,\n selectors: [[\"\", \"nz-dropdown\", \"\"]],\n hostAttrs: [1, \"ant-dropdown-trigger\"],\n inputs: {\n nzDropdownMenu: \"nzDropdownMenu\",\n nzTrigger: \"nzTrigger\",\n nzMatchWidthElement: \"nzMatchWidthElement\",\n nzBackdrop: [2, \"nzBackdrop\", \"nzBackdrop\", booleanAttribute],\n nzClickHide: [2, \"nzClickHide\", \"nzClickHide\", booleanAttribute],\n nzDisabled: [2, \"nzDisabled\", \"nzDisabled\", booleanAttribute],\n nzVisible: [2, \"nzVisible\", \"nzVisible\", booleanAttribute],\n nzOverlayClassName: \"nzOverlayClassName\",\n nzOverlayStyle: \"nzOverlayStyle\",\n nzPlacement: \"nzPlacement\"\n },\n outputs: {\n nzVisibleChange: \"nzVisibleChange\"\n },\n exportAs: [\"nzDropdown\"],\n standalone: true,\n features: [i0.ɵɵInputTransformsFeature, i0.ɵɵNgOnChangesFeature]\n});\n__decorate([WithConfig()], NzDropDownDirective.prototype, \"nzBackdrop\", void 0);\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzDropDownDirective, [{\n type: Directive,\n args: [{\n selector: '[nz-dropdown]',\n exportAs: 'nzDropdown',\n host: {\n class: 'ant-dropdown-trigger'\n },\n standalone: true\n }]\n }], () => [{\n type: i1.NzConfigService\n }, {\n type: i0.ElementRef\n }, {\n type: i2.Overlay\n }, {\n type: i0.Renderer2\n }, {\n type: i0.ViewContainerRef\n }, {\n type: i3.Platform\n }], {\n nzDropdownMenu: [{\n type: Input\n }],\n nzTrigger: [{\n type: Input\n }],\n nzMatchWidthElement: [{\n type: Input\n }],\n nzBackdrop: [{\n type: Input,\n args: [{\n transform: booleanAttribute\n }]\n }],\n nzClickHide: [{\n type: Input,\n args: [{\n transform: booleanAttribute\n }]\n }],\n nzDisabled: [{\n type: Input,\n args: [{\n transform: booleanAttribute\n }]\n }],\n nzVisible: [{\n type: Input,\n args: [{\n transform: booleanAttribute\n }]\n }],\n nzOverlayClassName: [{\n type: Input\n }],\n nzOverlayStyle: [{\n type: Input\n }],\n nzPlacement: [{\n type: Input\n }],\n nzVisibleChange: [{\n type: Output\n }]\n });\n})();\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzContextMenuServiceModule {}\n_NzContextMenuServiceModule = NzContextMenuServiceModule;\n_NzContextMenuServiceModule.ɵfac = function _NzContextMenuServiceModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _NzContextMenuServiceModule)();\n};\n_NzContextMenuServiceModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: _NzContextMenuServiceModule\n});\n_NzContextMenuServiceModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzContextMenuServiceModule, [{\n type: NgModule\n }], null, null);\n})();\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzDropDownADirective {\n constructor() {}\n}\n_NzDropDownADirective = NzDropDownADirective;\n_NzDropDownADirective.ɵfac = function _NzDropDownADirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _NzDropDownADirective)();\n};\n_NzDropDownADirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: _NzDropDownADirective,\n selectors: [[\"a\", \"nz-dropdown\", \"\"]],\n hostAttrs: [1, \"ant-dropdown-link\"],\n standalone: true\n});\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzDropDownADirective, [{\n type: Directive,\n args: [{\n selector: 'a[nz-dropdown]',\n host: {\n class: 'ant-dropdown-link'\n },\n standalone: true\n }]\n }], () => [], null);\n})();\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzDropdownButtonDirective {\n constructor(renderer, elementRef) {\n this.renderer = renderer;\n this.elementRef = elementRef;\n this.nzButtonGroupComponent = inject(NzButtonGroupComponent, {\n host: true,\n optional: true\n });\n }\n ngAfterViewInit() {\n const parentElement = this.renderer.parentNode(this.elementRef.nativeElement);\n if (this.nzButtonGroupComponent && parentElement) {\n this.renderer.addClass(parentElement, 'ant-dropdown-button');\n }\n }\n}\n_NzDropdownButtonDirective = NzDropdownButtonDirective;\n_NzDropdownButtonDirective.ɵfac = function _NzDropdownButtonDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _NzDropdownButtonDirective)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef));\n};\n_NzDropdownButtonDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: _NzDropdownButtonDirective,\n selectors: [[\"\", \"nz-button\", \"\", \"nz-dropdown\", \"\"]],\n standalone: true\n});\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzDropdownButtonDirective, [{\n type: Directive,\n args: [{\n selector: '[nz-button][nz-dropdown]',\n standalone: true\n }]\n }], () => [{\n type: i0.Renderer2\n }, {\n type: i0.ElementRef\n }], null);\n})();\nclass NzDropdownMenuComponent {\n onAnimationEvent(event) {\n this.animationStateChange$.emit(event);\n }\n setMouseState(visible) {\n this.mouseState$.next(visible);\n }\n setValue(key, value) {\n this[key] = value;\n this.cdr.markForCheck();\n }\n constructor(cdr, elementRef, renderer, viewContainerRef, nzMenuService, directionality) {\n this.cdr = cdr;\n this.elementRef = elementRef;\n this.renderer = renderer;\n this.viewContainerRef = viewContainerRef;\n this.nzMenuService = nzMenuService;\n this.directionality = directionality;\n this.mouseState$ = new BehaviorSubject(false);\n this.isChildSubMenuOpen$ = this.nzMenuService.isChildSubMenuOpen$;\n this.descendantMenuItemClick$ = this.nzMenuService.descendantMenuItemClick$;\n this.animationStateChange$ = new EventEmitter();\n this.nzOverlayClassName = '';\n this.nzOverlayStyle = {};\n this.dir = 'ltr';\n this.destroy$ = new Subject();\n this.noAnimation = inject(NzNoAnimationDirective, {\n host: true,\n optional: true\n });\n }\n ngOnInit() {\n var _this$directionality$;\n (_this$directionality$ = this.directionality.change) === null || _this$directionality$ === void 0 || _this$directionality$.pipe(takeUntil(this.destroy$)).subscribe(direction => {\n this.dir = direction;\n this.cdr.detectChanges();\n });\n this.dir = this.directionality.value;\n }\n ngAfterContentInit() {\n this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement), this.elementRef.nativeElement);\n }\n ngOnDestroy() {\n this.destroy$.next();\n this.destroy$.complete();\n }\n}\n_NzDropdownMenuComponent = NzDropdownMenuComponent;\n_NzDropdownMenuComponent.ɵfac = function _NzDropdownMenuComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _NzDropdownMenuComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i1$1.MenuService), i0.ɵɵdirectiveInject(i2$1.Directionality));\n};\n_NzDropdownMenuComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: _NzDropdownMenuComponent,\n selectors: [[\"nz-dropdown-menu\"]],\n viewQuery: function _NzDropdownMenuComponent_Query(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵviewQuery(TemplateRef, 7);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templateRef = _t.first);\n }\n },\n exportAs: [\"nzDropdownMenu\"],\n standalone: true,\n features: [i0.ɵɵProvidersFeature([MenuService, /** menu is inside dropdown-menu component **/\n {\n provide: NzIsMenuInsideDropDownToken,\n useValue: true\n }]), i0.ɵɵStandaloneFeature],\n ngContentSelectors: _c0,\n decls: 1,\n vars: 0,\n consts: [[1, \"ant-dropdown\", 3, \"mouseenter\", \"mouseleave\", \"ngClass\", \"ngStyle\", \"nzNoAnimation\"]],\n template: function _NzDropdownMenuComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef();\n i0.ɵɵtemplate(0, _NzDropdownMenuComponent_ng_template_0_Template, 2, 7, \"ng-template\");\n }\n },\n dependencies: [NgClass, NgStyle, NzNoAnimationDirective],\n encapsulation: 2,\n data: {\n animation: [slideMotion]\n },\n changeDetection: 0\n});\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzDropdownMenuComponent, [{\n type: Component,\n args: [{\n selector: `nz-dropdown-menu`,\n exportAs: `nzDropdownMenu`,\n animations: [slideMotion],\n providers: [MenuService, /** menu is inside dropdown-menu component **/\n {\n provide: NzIsMenuInsideDropDownToken,\n useValue: true\n }],\n template: `\n <ng-template>\n <div\n class=\"ant-dropdown\"\n [class.ant-dropdown-rtl]=\"dir === 'rtl'\"\n [ngClass]=\"nzOverlayClassName\"\n [ngStyle]=\"nzOverlayStyle\"\n @slideMotion\n (@slideMotion.done)=\"onAnimationEvent($event)\"\n [@.disabled]=\"!!noAnimation?.nzNoAnimation\"\n [nzNoAnimation]=\"noAnimation?.nzNoAnimation\"\n (mouseenter)=\"setMouseState(true)\"\n (mouseleave)=\"setMouseState(false)\"\n >\n <ng-content></ng-content>\n </div>\n </ng-template>\n `,\n preserveWhitespaces: false,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgClass, NgStyle, NzNoAnimationDirective],\n standalone: true\n }]\n }], () => [{\n type: i0.ChangeDetectorRef\n }, {\n type: i0.ElementRef\n }, {\n type: i0.Renderer2\n }, {\n type: i0.ViewContainerRef\n }, {\n type: i1$1.MenuService\n }, {\n type: i2$1.Directionality\n }], {\n templateRef: [{\n type: ViewChild,\n args: [TemplateRef, {\n static: true\n }]\n }]\n });\n})();\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzDropDownModule {}\n_NzDropDownModule = NzDropDownModule;\n_NzDropDownModule.ɵfac = function _NzDropDownModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _NzDropDownModule)();\n};\n_NzDropDownModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: _NzDropDownModule\n});\n_NzDropDownModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [NzContextMenuServiceModule, NzMenuModule]\n});\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzDropDownModule, [{\n type: NgModule,\n args: [{\n imports: [NzDropDownDirective, NzDropDownADirective, NzDropdownMenuComponent, NzDropdownButtonDirective, NzContextMenuServiceModule],\n exports: [NzMenuModule, NzDropDownDirective, NzDropDownADirective, NzDropdownMenuComponent, NzDropdownButtonDirective]\n }]\n }], null, null);\n})();\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nconst LIST_OF_POSITIONS = [new ConnectionPositionPair({\n originX: 'start',\n originY: 'top'\n}, {\n overlayX: 'start',\n overlayY: 'top'\n}), new ConnectionPositionPair({\n originX: 'start',\n originY: 'top'\n}, {\n overlayX: 'start',\n overlayY: 'bottom'\n}), new ConnectionPositionPair({\n originX: 'start',\n originY: 'top'\n}, {\n overlayX: 'end',\n overlayY: 'bottom'\n}), new ConnectionPositionPair({\n originX: 'start',\n originY: 'top'\n}, {\n overlayX: 'end',\n overlayY: 'top'\n})];\nclass NzContextMenuService {\n constructor(ngZone, overlay) {\n this.ngZone = ngZone;\n this.overlay = overlay;\n this.overlayRef = null;\n this.closeSubscription = Subscription.EMPTY;\n }\n create($event, nzDropdownMenuComponent) {\n this.close(true);\n const {\n x,\n y\n } = $event;\n if ($event instanceof MouseEvent) {\n $event.preventDefault();\n }\n const positionStrategy = this.overlay.position().flexibleConnectedTo({\n x,\n y\n }).withPositions(LIST_OF_POSITIONS).withTransformOriginOn('.ant-dropdown');\n this.overlayRef = this.overlay.create({\n positionStrategy,\n disposeOnNavigation: true,\n scrollStrategy: this.overlay.scrollStrategies.close()\n });\n this.closeSubscription = new Subscription();\n this.closeSubscription.add(nzDropdownMenuComponent.descendantMenuItemClick$.subscribe(() => this.close()));\n this.closeSubscription.add(this.ngZone.runOutsideAngular(() => merge(fromEvent(document, 'click').pipe(filter(event => !!this.overlayRef && !this.overlayRef.overlayElement.contains(event.target)), /** handle firefox contextmenu event **/\n filter(event => event.button !== 2)), fromEvent(document, 'keydown').pipe(filter(event => event.key === 'Escape'))).pipe(first()).subscribe(() => this.ngZone.run(() => this.close()))));\n return this.overlayRef.attach(new TemplatePortal(nzDropdownMenuComponent.templateRef, nzDropdownMenuComponent.viewContainerRef));\n }\n close(clear = false) {\n if (this.overlayRef) {\n this.overlayRef.detach();\n if (clear) {\n this.overlayRef.dispose();\n }\n this.overlayRef = null;\n this.closeSubscription.unsubscribe();\n }\n }\n}\n_NzContextMenuService = NzContextMenuService;\n_NzContextMenuService.ɵfac = function _NzContextMenuService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _NzContextMenuService)(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i2.Overlay));\n};\n_NzContextMenuService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: _NzContextMenuService,\n factory: _NzContextMenuService.ɵfac,\n providedIn: NzContextMenuServiceModule\n});\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzContextMenuService, [{\n type: Injectable,\n args: [{\n providedIn: NzContextMenuServiceModule\n }]\n }], () => [{\n type: i0.NgZone\n }, {\n type: i2.Overlay\n }], null);\n})();\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { NzContextMenuService, NzContextMenuServiceModule, NzDropDownADirective, NzDropDownDirective, NzDropDownModule, NzDropdownButtonDirective, NzDropdownMenuComponent };","map":{"version":3,"names":["i0","ɵɵgetCurrentView","ɵɵelementStart","ɵɵlistener","_NzDropdownMenuComponent_ng_template_0_Template_div_animation_slideMotion_done_0_listener","$event","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","onAnimationEvent","_NzDropdownMenuComponent_ng_template_0_Template_div_mouseenter_0_listener","setMouseState","_NzDropdownMenuComponent_ng_template_0_Template_div_mouseleave_0_listener","ɵɵprojection","ɵɵelementEnd","rf","ɵɵclassProp","dir","ɵɵproperty","nzOverlayClassName","nzOverlayStyle","undefined","noAnimation","nzNoAnimation","__decorate","ESCAPE","hasModifierKey","TemplatePortal","EventEmitter","booleanAttribute","Directive","Input","Output","NgModule","inject","TemplateRef","Component","ViewEncapsulation","ChangeDetectionStrategy","ViewChild","Injectable","Subject","BehaviorSubject","merge","fromEvent","EMPTY","combineLatest","Subscription","mapTo","map","switchMap","filter","auditTime","distinctUntilChanged","takeUntil","first","i1","WithConfig","POSITION_MAP","i2","ConnectionPositionPair","i3","i1$1","MenuService","NzIsMenuInsideDropDownToken","NzMenuModule","NzButtonGroupComponent","NgClass","NgStyle","slideMotion","NzNoAnimationDirective","i2$1","NZ_CONFIG_MODULE_NAME","listOfPositions","bottomLeft","bottomRight","topRight","topLeft","NzDropDownDirective","setDropdownMenuValue","key","value","nzDropdownMenu","setValue","constructor","nzConfigService","elementRef","overlay","renderer","viewContainerRef","platform","_nzModuleName","overlayRef","destroy$","positionStrategy","position","flexibleConnectedTo","nativeElement","withLockedPosition","withTransformOriginOn","inputVisible$","nzTrigger$","overlayClose$","nzTrigger","nzMatchWidthElement","nzBackdrop","nzClickHide","nzDisabled","nzVisible","nzPlacement","nzVisibleChange","ngAfterViewInit","hostMouseState$","pipe","menuMouseState$","mouseState$","mergedMouseState$","hostClickState$","visibleStateByTrigger$","trigger","descendantMenuItemClick$","domTriggerVisible$","visible$","isChildSubMenuOpen$","visible","sub","isBrowser","subscribe","element","triggerWidth","getBoundingClientRect","width","emit","create","minWidth","disposeOnNavigation","hasBackdrop","scrollStrategy","scrollStrategies","reposition","backdropClick","detachments","outsidePointerEvents","e","contains","target","keydownEvents","keyCode","next","overlayConfig","getConfig","withPositions","portal","templateRef","attach","detach","animationStateChange$","event","toState","dispose","ngOnDestroy","complete","ngOnChanges","changes","setAttribute","removeAttribute","_NzDropDownDirective","ɵfac","_NzDropDownDirective_Factory","__ngFactoryType__","ɵɵdirectiveInject","NzConfigService","ElementRef","Overlay","Renderer2","ViewContainerRef","Platform","ɵdir","ɵɵdefineDirective","type","selectors","hostAttrs","inputs","outputs","exportAs","standalone","features","ɵɵInputTransformsFeature","ɵɵNgOnChangesFeature","prototype","ngDevMode","ɵsetClassMetadata","args","selector","host","class","transform","NzContextMenuServiceModule","_NzContextMenuServiceModule","_NzContextMenuServiceModule_Factory","ɵmod","ɵɵdefineNgModule","ɵinj","ɵɵdefineInjector","NzDropDownADirective","_NzDropDownADirective","_NzDropDownADirective_Factory","NzDropdownButtonDirective","nzButtonGroupComponent","optional","parentElement","parentNode","addClass","_NzDropdownButtonDirective","_NzDropdownButtonDirective_Factory","NzDropdownMenuComponent","cdr","markForCheck","nzMenuService","directionality","ngOnInit","_this$directionality$","change","direction","detectChanges","ngAfterContentInit","removeChild","_NzDropdownMenuComponent","_NzDropdownMenuComponent_Factory","ChangeDetectorRef","Directionality","ɵcmp","ɵɵdefineComponent","viewQuery","_NzDropdownMenuComponent_Query","ctx","ɵɵviewQuery","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵProvidersFeature","provide","useValue","ɵɵStandaloneFeature","ngContentSelectors","_c0","decls","vars","consts","template","_NzDropdownMenuComponent_Template","ɵɵprojectionDef","ɵɵtemplate","_NzDropdownMenuComponent_ng_template_0_Template","dependencies","encapsulation","data","animation","changeDetection","animations","providers","preserveWhitespaces","None","OnPush","imports","static","NzDropDownModule","_NzDropDownModule","_NzDropDownModule_Factory","exports","LIST_OF_POSITIONS","originX","originY","overlayX","overlayY","NzContextMenuService","ngZone","closeSubscription","nzDropdownMenuComponent","close","x","y","MouseEvent","preventDefault","add","runOutsideAngular","document","overlayElement","button","run","clear","unsubscribe","_NzContextMenuService","_NzContextMenuService_Factory","ɵɵinject","NgZone","ɵprov","ɵɵdefineInjectable","token","factory","providedIn"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-dropdown.mjs"],"sourcesContent":["import { __decorate } from 'tslib';\nimport { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport * as i0 from '@angular/core';\nimport { EventEmitter, booleanAttribute, Directive, Input, Output, NgModule, inject, TemplateRef, Component, ViewEncapsulation, ChangeDetectionStrategy, ViewChild, Injectable } from '@angular/core';\nimport { Subject, BehaviorSubject, merge, fromEvent, EMPTY, combineLatest, Subscription } from 'rxjs';\nimport { mapTo, map, switchMap, filter, auditTime, distinctUntilChanged, takeUntil, first } from 'rxjs/operators';\nimport * as i1 from 'ng-zorro-antd/core/config';\nimport { WithConfig } from 'ng-zorro-antd/core/config';\nimport { POSITION_MAP } from 'ng-zorro-antd/core/overlay';\nimport * as i2 from '@angular/cdk/overlay';\nimport { ConnectionPositionPair } from '@angular/cdk/overlay';\nimport * as i3 from '@angular/cdk/platform';\nimport * as i1$1 from 'ng-zorro-antd/menu';\nimport { MenuService, NzIsMenuInsideDropDownToken, NzMenuModule } from 'ng-zorro-antd/menu';\nimport { NzButtonGroupComponent } from 'ng-zorro-antd/button';\nimport { NgClass, NgStyle } from '@angular/common';\nimport { slideMotion } from 'ng-zorro-antd/core/animation';\nimport { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation';\nimport * as i2$1 from '@angular/cdk/bidi';\n\nconst NZ_CONFIG_MODULE_NAME = 'dropDown';\nconst listOfPositions = [\n POSITION_MAP.bottomLeft,\n POSITION_MAP.bottomRight,\n POSITION_MAP.topRight,\n POSITION_MAP.topLeft\n];\nclass NzDropDownDirective {\n setDropdownMenuValue(key, value) {\n if (this.nzDropdownMenu) {\n this.nzDropdownMenu.setValue(key, value);\n }\n }\n constructor(nzConfigService, elementRef, overlay, renderer, viewContainerRef, platform) {\n this.nzConfigService = nzConfigService;\n this.elementRef = elementRef;\n this.overlay = overlay;\n this.renderer = renderer;\n this.viewContainerRef = viewContainerRef;\n this.platform = platform;\n this._nzModuleName = NZ_CONFIG_MODULE_NAME;\n this.overlayRef = null;\n this.destroy$ = new Subject();\n this.positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.elementRef.nativeElement)\n .withLockedPosition()\n .withTransformOriginOn('.ant-dropdown');\n this.inputVisible$ = new BehaviorSubject(false);\n this.nzTrigger$ = new BehaviorSubject('hover');\n this.overlayClose$ = new Subject();\n this.nzDropdownMenu = null;\n this.nzTrigger = 'hover';\n this.nzMatchWidthElement = null;\n this.nzBackdrop = false;\n this.nzClickHide = true;\n this.nzDisabled = false;\n this.nzVisible = false;\n this.nzOverlayClassName = '';\n this.nzOverlayStyle = {};\n this.nzPlacement = 'bottomLeft';\n this.nzVisibleChange = new EventEmitter();\n }\n ngAfterViewInit() {\n if (this.nzDropdownMenu) {\n const nativeElement = this.elementRef.nativeElement;\n /** host mouse state **/\n const hostMouseState$ = merge(fromEvent(nativeElement, 'mouseenter').pipe(mapTo(true)), fromEvent(nativeElement, 'mouseleave').pipe(mapTo(false)));\n /** menu mouse state **/\n const menuMouseState$ = this.nzDropdownMenu.mouseState$;\n /** merged mouse state **/\n const mergedMouseState$ = merge(menuMouseState$, hostMouseState$);\n /** host click state **/\n const hostClickState$ = fromEvent(nativeElement, 'click').pipe(map(() => !this.nzVisible));\n /** visible state switch by nzTrigger **/\n const visibleStateByTrigger$ = this.nzTrigger$.pipe(switchMap(trigger => {\n if (trigger === 'hover') {\n return mergedMouseState$;\n }\n else if (trigger === 'click') {\n return hostClickState$;\n }\n else {\n return EMPTY;\n }\n }));\n const descendantMenuItemClick$ = this.nzDropdownMenu.descendantMenuItemClick$.pipe(filter(() => this.nzClickHide), mapTo(false));\n const domTriggerVisible$ = merge(visibleStateByTrigger$, descendantMenuItemClick$, this.overlayClose$).pipe(filter(() => !this.nzDisabled));\n const visible$ = merge(this.inputVisible$, domTriggerVisible$);\n combineLatest([visible$, this.nzDropdownMenu.isChildSubMenuOpen$])\n .pipe(map(([visible, sub]) => visible || sub), auditTime(150), distinctUntilChanged(), filter(() => this.platform.isBrowser), takeUntil(this.destroy$))\n .subscribe((visible) => {\n const element = this.nzMatchWidthElement ? this.nzMatchWidthElement.nativeElement : nativeElement;\n const triggerWidth = element.getBoundingClientRect().width;\n if (this.nzVisible !== visible) {\n this.nzVisibleChange.emit(visible);\n }\n this.nzVisible = visible;\n if (visible) {\n /** set up overlayRef **/\n if (!this.overlayRef) {\n /** new overlay **/\n this.overlayRef = this.overlay.create({\n positionStrategy: this.positionStrategy,\n minWidth: triggerWidth,\n disposeOnNavigation: true,\n hasBackdrop: this.nzBackdrop && this.nzTrigger === 'click',\n scrollStrategy: this.overlay.scrollStrategies.reposition()\n });\n merge(this.overlayRef.backdropClick(), this.overlayRef.detachments(), this.overlayRef\n .outsidePointerEvents()\n .pipe(filter((e) => !this.elementRef.nativeElement.contains(e.target))), this.overlayRef.keydownEvents().pipe(filter(e => e.keyCode === ESCAPE && !hasModifierKey(e))))\n .pipe(takeUntil(this.destroy$))\n .subscribe(() => {\n this.overlayClose$.next(false);\n });\n }\n else {\n /** update overlay config **/\n const overlayConfig = this.overlayRef.getConfig();\n overlayConfig.minWidth = triggerWidth;\n }\n /** open dropdown with animation **/\n this.positionStrategy.withPositions([POSITION_MAP[this.nzPlacement], ...listOfPositions]);\n /** reset portal if needed **/\n if (!this.portal || this.portal.templateRef !== this.nzDropdownMenu.templateRef) {\n this.portal = new TemplatePortal(this.nzDropdownMenu.templateRef, this.viewContainerRef);\n }\n this.overlayRef.attach(this.portal);\n }\n else {\n /** detach overlayRef if needed **/\n if (this.overlayRef) {\n this.overlayRef.detach();\n }\n }\n });\n this.nzDropdownMenu.animationStateChange$.pipe(takeUntil(this.destroy$)).subscribe(event => {\n if (event.toState === 'void') {\n if (this.overlayRef) {\n this.overlayRef.dispose();\n }\n this.overlayRef = null;\n }\n });\n }\n }\n ngOnDestroy() {\n this.destroy$.next(true);\n this.destroy$.complete();\n if (this.overlayRef) {\n this.overlayRef.dispose();\n this.overlayRef = null;\n }\n }\n ngOnChanges(changes) {\n const { nzVisible, nzDisabled, nzOverlayClassName, nzOverlayStyle, nzTrigger } = changes;\n if (nzTrigger) {\n this.nzTrigger$.next(this.nzTrigger);\n }\n if (nzVisible) {\n this.inputVisible$.next(this.nzVisible);\n }\n if (nzDisabled) {\n const nativeElement = this.elementRef.nativeElement;\n if (this.nzDisabled) {\n this.renderer.setAttribute(nativeElement, 'disabled', '');\n this.inputVisible$.next(false);\n }\n else {\n this.renderer.removeAttribute(nativeElement, 'disabled');\n }\n }\n if (nzOverlayClassName) {\n this.setDropdownMenuValue('nzOverlayClassName', this.nzOverlayClassName);\n }\n if (nzOverlayStyle) {\n this.setDropdownMenuValue('nzOverlayStyle', this.nzOverlayStyle);\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzDropDownDirective, deps: [{ token: i1.NzConfigService }, { token: i0.ElementRef }, { token: i2.Overlay }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i3.Platform }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"16.1.0\", version: \"18.2.1\", type: NzDropDownDirective, isStandalone: true, selector: \"[nz-dropdown]\", inputs: { nzDropdownMenu: \"nzDropdownMenu\", nzTrigger: \"nzTrigger\", nzMatchWidthElement: \"nzMatchWidthElement\", nzBackdrop: [\"nzBackdrop\", \"nzBackdrop\", booleanAttribute], nzClickHide: [\"nzClickHide\", \"nzClickHide\", booleanAttribute], nzDisabled: [\"nzDisabled\", \"nzDisabled\", booleanAttribute], nzVisible: [\"nzVisible\", \"nzVisible\", booleanAttribute], nzOverlayClassName: \"nzOverlayClassName\", nzOverlayStyle: \"nzOverlayStyle\", nzPlacement: \"nzPlacement\" }, outputs: { nzVisibleChange: \"nzVisibleChange\" }, host: { classAttribute: \"ant-dropdown-trigger\" }, exportAs: [\"nzDropdown\"], usesOnChanges: true, ngImport: i0 }); }\n}\n__decorate([\n WithConfig()\n], NzDropDownDirective.prototype, \"nzBackdrop\", void 0);\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzDropDownDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[nz-dropdown]',\n exportAs: 'nzDropdown',\n host: {\n class: 'ant-dropdown-trigger'\n },\n standalone: true\n }]\n }], ctorParameters: () => [{ type: i1.NzConfigService }, { type: i0.ElementRef }, { type: i2.Overlay }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i3.Platform }], propDecorators: { nzDropdownMenu: [{\n type: Input\n }], nzTrigger: [{\n type: Input\n }], nzMatchWidthElement: [{\n type: Input\n }], nzBackdrop: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], nzClickHide: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], nzDisabled: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], nzVisible: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], nzOverlayClassName: [{\n type: Input\n }], nzOverlayStyle: [{\n type: Input\n }], nzPlacement: [{\n type: Input\n }], nzVisibleChange: [{\n type: Output\n }] } });\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzContextMenuServiceModule {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzContextMenuServiceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"18.2.1\", ngImport: i0, type: NzContextMenuServiceModule }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzContextMenuServiceModule }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzContextMenuServiceModule, decorators: [{\n type: NgModule\n }] });\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzDropDownADirective {\n constructor() { }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzDropDownADirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"18.2.1\", type: NzDropDownADirective, isStandalone: true, selector: \"a[nz-dropdown]\", host: { classAttribute: \"ant-dropdown-link\" }, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzDropDownADirective, decorators: [{\n type: Directive,\n args: [{\n selector: 'a[nz-dropdown]',\n host: {\n class: 'ant-dropdown-link'\n },\n standalone: true\n }]\n }], ctorParameters: () => [] });\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzDropdownButtonDirective {\n constructor(renderer, elementRef) {\n this.renderer = renderer;\n this.elementRef = elementRef;\n this.nzButtonGroupComponent = inject(NzButtonGroupComponent, { host: true, optional: true });\n }\n ngAfterViewInit() {\n const parentElement = this.renderer.parentNode(this.elementRef.nativeElement);\n if (this.nzButtonGroupComponent && parentElement) {\n this.renderer.addClass(parentElement, 'ant-dropdown-button');\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzDropdownButtonDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"18.2.1\", type: NzDropdownButtonDirective, isStandalone: true, selector: \"[nz-button][nz-dropdown]\", ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzDropdownButtonDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[nz-button][nz-dropdown]',\n standalone: true\n }]\n }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }] });\n\nclass NzDropdownMenuComponent {\n onAnimationEvent(event) {\n this.animationStateChange$.emit(event);\n }\n setMouseState(visible) {\n this.mouseState$.next(visible);\n }\n setValue(key, value) {\n this[key] = value;\n this.cdr.markForCheck();\n }\n constructor(cdr, elementRef, renderer, viewContainerRef, nzMenuService, directionality) {\n this.cdr = cdr;\n this.elementRef = elementRef;\n this.renderer = renderer;\n this.viewContainerRef = viewContainerRef;\n this.nzMenuService = nzMenuService;\n this.directionality = directionality;\n this.mouseState$ = new BehaviorSubject(false);\n this.isChildSubMenuOpen$ = this.nzMenuService.isChildSubMenuOpen$;\n this.descendantMenuItemClick$ = this.nzMenuService.descendantMenuItemClick$;\n this.animationStateChange$ = new EventEmitter();\n this.nzOverlayClassName = '';\n this.nzOverlayStyle = {};\n this.dir = 'ltr';\n this.destroy$ = new Subject();\n this.noAnimation = inject(NzNoAnimationDirective, { host: true, optional: true });\n }\n ngOnInit() {\n this.directionality.change?.pipe(takeUntil(this.destroy$)).subscribe((direction) => {\n this.dir = direction;\n this.cdr.detectChanges();\n });\n this.dir = this.directionality.value;\n }\n ngAfterContentInit() {\n this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement), this.elementRef.nativeElement);\n }\n ngOnDestroy() {\n this.destroy$.next();\n this.destroy$.complete();\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzDropdownMenuComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i1$1.MenuService }, { token: i2$1.Directionality }], target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"18.2.1\", type: NzDropdownMenuComponent, isStandalone: true, selector: \"nz-dropdown-menu\", providers: [\n MenuService,\n /** menu is inside dropdown-menu component **/\n {\n provide: NzIsMenuInsideDropDownToken,\n useValue: true\n }\n ], viewQueries: [{ propertyName: \"templateRef\", first: true, predicate: TemplateRef, descendants: true, static: true }], exportAs: [\"nzDropdownMenu\"], ngImport: i0, template: `\n <ng-template>\n <div\n class=\"ant-dropdown\"\n [class.ant-dropdown-rtl]=\"dir === 'rtl'\"\n [ngClass]=\"nzOverlayClassName\"\n [ngStyle]=\"nzOverlayStyle\"\n @slideMotion\n (@slideMotion.done)=\"onAnimationEvent($event)\"\n [@.disabled]=\"!!noAnimation?.nzNoAnimation\"\n [nzNoAnimation]=\"noAnimation?.nzNoAnimation\"\n (mouseenter)=\"setMouseState(true)\"\n (mouseleave)=\"setMouseState(false)\"\n >\n <ng-content></ng-content>\n </div>\n </ng-template>\n `, isInline: true, dependencies: [{ kind: \"directive\", type: NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }, { kind: \"directive\", type: NzNoAnimationDirective, selector: \"[nzNoAnimation]\", inputs: [\"nzNoAnimation\"], exportAs: [\"nzNoAnimation\"] }], animations: [slideMotion], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzDropdownMenuComponent, decorators: [{\n type: Component,\n args: [{\n selector: `nz-dropdown-menu`,\n exportAs: `nzDropdownMenu`,\n animations: [slideMotion],\n providers: [\n MenuService,\n /** menu is inside dropdown-menu component **/\n {\n provide: NzIsMenuInsideDropDownToken,\n useValue: true\n }\n ],\n template: `\n <ng-template>\n <div\n class=\"ant-dropdown\"\n [class.ant-dropdown-rtl]=\"dir === 'rtl'\"\n [ngClass]=\"nzOverlayClassName\"\n [ngStyle]=\"nzOverlayStyle\"\n @slideMotion\n (@slideMotion.done)=\"onAnimationEvent($event)\"\n [@.disabled]=\"!!noAnimation?.nzNoAnimation\"\n [nzNoAnimation]=\"noAnimation?.nzNoAnimation\"\n (mouseenter)=\"setMouseState(true)\"\n (mouseleave)=\"setMouseState(false)\"\n >\n <ng-content></ng-content>\n </div>\n </ng-template>\n `,\n preserveWhitespaces: false,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgClass, NgStyle, NzNoAnimationDirective],\n standalone: true\n }]\n }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i1$1.MenuService }, { type: i2$1.Directionality }], propDecorators: { templateRef: [{\n type: ViewChild,\n args: [TemplateRef, { static: true }]\n }] } });\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzDropDownModule {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzDropDownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"18.2.1\", ngImport: i0, type: NzDropDownModule, imports: [NzDropDownDirective,\n NzDropDownADirective,\n NzDropdownMenuComponent,\n NzDropdownButtonDirective,\n NzContextMenuServiceModule], exports: [NzMenuModule, NzDropDownDirective, NzDropDownADirective, NzDropdownMenuComponent, NzDropdownButtonDirective] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzDropDownModule, imports: [NzContextMenuServiceModule, NzMenuModule] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzDropDownModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [\n NzDropDownDirective,\n NzDropDownADirective,\n NzDropdownMenuComponent,\n NzDropdownButtonDirective,\n NzContextMenuServiceModule\n ],\n exports: [NzMenuModule, NzDropDownDirective, NzDropDownADirective, NzDropdownMenuComponent, NzDropdownButtonDirective]\n }]\n }] });\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nconst LIST_OF_POSITIONS = [\n new ConnectionPositionPair({ originX: 'start', originY: 'top' }, { overlayX: 'start', overlayY: 'top' }),\n new ConnectionPositionPair({ originX: 'start', originY: 'top' }, { overlayX: 'start', overlayY: 'bottom' }),\n new ConnectionPositionPair({ originX: 'start', originY: 'top' }, { overlayX: 'end', overlayY: 'bottom' }),\n new ConnectionPositionPair({ originX: 'start', originY: 'top' }, { overlayX: 'end', overlayY: 'top' })\n];\nclass NzContextMenuService {\n constructor(ngZone, overlay) {\n this.ngZone = ngZone;\n this.overlay = overlay;\n this.overlayRef = null;\n this.closeSubscription = Subscription.EMPTY;\n }\n create($event, nzDropdownMenuComponent) {\n this.close(true);\n const { x, y } = $event;\n if ($event instanceof MouseEvent) {\n $event.preventDefault();\n }\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo({ x, y })\n .withPositions(LIST_OF_POSITIONS)\n .withTransformOriginOn('.ant-dropdown');\n this.overlayRef = this.overlay.create({\n positionStrategy,\n disposeOnNavigation: true,\n scrollStrategy: this.overlay.scrollStrategies.close()\n });\n this.closeSubscription = new Subscription();\n this.closeSubscription.add(nzDropdownMenuComponent.descendantMenuItemClick$.subscribe(() => this.close()));\n this.closeSubscription.add(this.ngZone.runOutsideAngular(() => merge(fromEvent(document, 'click').pipe(filter(event => !!this.overlayRef && !this.overlayRef.overlayElement.contains(event.target)), \n /** handle firefox contextmenu event **/\n filter(event => event.button !== 2)), fromEvent(document, 'keydown').pipe(filter(event => event.key === 'Escape')))\n .pipe(first())\n .subscribe(() => this.ngZone.run(() => this.close()))));\n return this.overlayRef.attach(new TemplatePortal(nzDropdownMenuComponent.templateRef, nzDropdownMenuComponent.viewContainerRef));\n }\n close(clear = false) {\n if (this.overlayRef) {\n this.overlayRef.detach();\n if (clear) {\n this.overlayRef.dispose();\n }\n this.overlayRef = null;\n this.closeSubscription.unsubscribe();\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzContextMenuService, deps: [{ token: i0.NgZone }, { token: i2.Overlay }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzContextMenuService, providedIn: NzContextMenuServiceModule }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzContextMenuService, decorators: [{\n type: Injectable,\n args: [{\n providedIn: NzContextMenuServiceModule\n }]\n }], ctorParameters: () => [{ type: i0.NgZone }, { type: i2.Overlay }] });\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { NzContextMenuService, NzContextMenuServiceModule, NzDropDownADirective, NzDropDownDirective, NzDropDownModule, NzDropdownButtonDirective, NzDropdownMenuComponent };\n"],"mappings":";;;;gBA2LiFA,EAAE,CAAAC,gBAAA;IAAFD,EAAE,CAAAE,cAAA,YAiK7E,CAAC;IAjK0EF,EAAE,CAAAG,UAAA,+BAAAC,0FAAAC,MAAA;MAAFL,EAAE,CAAAM,aAAA,CAAAC,GAAA;MAAA,MAAAC,MAAA,GAAFR,EAAE,CAAAS,aAAA;MAAA,OAAFT,EAAE,CAAAU,WAAA,CA4JtDF,MAAA,CAAAG,gBAA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