ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
10 lines • 20.9 kB
JavaScript
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("ng-zorro-antd/core"),require("@angular/router"),require("@angular/cdk/overlay"),require("@angular/cdk/platform"),require("@angular/common"),require("@angular/forms"),require("ng-zorro-antd/button"),require("ng-zorro-antd/icon")):"function"==typeof define&&define.amd?define("ng-zorro-antd/menu",["exports","@angular/core","rxjs","rxjs/operators","ng-zorro-antd/core","@angular/router","@angular/cdk/overlay","@angular/cdk/platform","@angular/common","@angular/forms","ng-zorro-antd/button","ng-zorro-antd/icon"],n):n(((e=e||self)["ng-zorro-antd"]=e["ng-zorro-antd"]||{},e["ng-zorro-antd"].menu={}),e.ng.core,e.rxjs,e.rxjs.operators,e["ng-zorro-antd"].core,e.ng.router,e.ng.cdk.overlay,e.ng.cdk.platform,e.ng.common,e.ng.forms,e["ng-zorro-antd"].button,e["ng-zorro-antd"].icon)}(this,function(e,n,t,i,o,r,s,a,u,p,c,l){"use strict";var d=function(e,n){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)};function h(e,n,t,i){var o,r=arguments.length,s=r<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,n,t,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(n,t,s):o(n,t))||s);return r>3&&s&&Object.defineProperty(n,t,s),s}function m(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)}function z(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var i,o,r=t.call(e),s=[];try{for(;(void 0===n||n-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(o)throw o.error}}return s}function v(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(z(arguments[n]));return e}var f=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.isInDropDown=!1,n}return function(e,n){function t(){this.constructor=e}d(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}(t,e),t.decorators=[{type:n.Injectable}],t}(o.NzMenuBaseService);var S=function(){function e(e,n){var o=this;this.nzHostSubmenuService=e,this.nzMenuService=n,this.disabled=!1,this.mode="vertical",this.mode$=this.nzMenuService.mode$.pipe(i.map(function(e){return"inline"===e?"inline":"vertical"===e||o.nzHostSubmenuService?"vertical":"horizontal"}),i.tap(function(e){return o.mode=e})),this.level=1,this.level$=new t.BehaviorSubject(1),this.subMenuOpen$=new t.BehaviorSubject(!1),this.open$=new t.BehaviorSubject(!1),this.mouseEnterLeave$=new t.Subject,this.menuOpen$=t.combineLatest(this.subMenuOpen$,this.mouseEnterLeave$).pipe(i.map(function(e){return e[0]||e[1]}),i.auditTime(150),i.distinctUntilChanged(),i.tap(function(e){o.setOpenState(e),o.nzHostSubmenuService&&o.nzHostSubmenuService.subMenuOpen$.next(e)})),this.nzHostSubmenuService&&this.setLevel(this.nzHostSubmenuService.level+1)}return e.prototype.setOpenState=function(e){this.open$.next(e)},e.prototype.onMenuItemClick=function(){this.setMouseEnterState(!1)},e.prototype.setLevel=function(e){this.level$.next(e),this.level=e},e.prototype.setMouseEnterState=function(e){"horizontal"!==this.mode&&"vertical"!==this.mode&&!this.nzMenuService.isInDropDown||this.disabled||this.mouseEnterLeave$.next(e)},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:e,decorators:[{type:n.SkipSelf},{type:n.Optional}]},{type:f}]},e}();var y=function(){function e(e,n,o,s,a,u,p,c){var l=this;this.nzUpdateHostClassService=e,this.nzMenuService=n,this.nzSubmenuService=o,this.renderer=s,this.elementRef=a,this.routerLink=u,this.routerLinkWithHref=p,this.router=c,this.el=this.elementRef.nativeElement,this.destroy$=new t.Subject,this.originalPadding=null,this.selected$=new t.Subject,this.nzDisabled=!1,this.nzSelected=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,c&&this.router.events.pipe(i.takeUntil(this.destroy$),i.filter(function(e){return e instanceof r.NavigationEnd})).subscribe(function(){l.updateRouterActive()})}return e.prototype.clickMenuItem=function(e){if(this.nzDisabled)return e.preventDefault(),void e.stopPropagation();this.nzMenuService.onMenuItemClick(this),this.nzSubmenuService&&this.nzSubmenuService.onMenuItemClick()},e.prototype.setClassMap=function(){var e,n=this.nzMenuService.isInDropDown?"ant-dropdown-menu-item":"ant-menu-item";this.nzUpdateHostClassService.updateHostClass(this.el,((e={})[""+n]=!0,e[n+"-selected"]=this.nzSelected,e[n+"-disabled"]=this.nzDisabled,e))},e.prototype.setSelectedState=function(e){this.nzSelected=e,this.selected$.next(e),this.setClassMap()},e.prototype.updateRouterActive=function(){var e=this;this.listOfRouterLink&&this.listOfRouterLinkWithHref&&this.router&&this.router.navigated&&this.nzMatchRouter&&Promise.resolve().then(function(){var n=e.hasActiveLinks();e.nzSelected!==n&&(e.nzSelected=n,e.setSelectedState(e.nzSelected))})},e.prototype.hasActiveLinks=function(){var e=this.isLinkActive(this.router);return this.routerLink&&e(this.routerLink)||this.routerLinkWithHref&&e(this.routerLinkWithHref)||this.listOfRouterLink.some(e)||this.listOfRouterLinkWithHref.some(e)},e.prototype.isLinkActive=function(e){var n=this;return function(t){return e.isActive(t.urlTree,n.nzMatchRouterExact)}},e.prototype.ngOnInit=function(){var e=this,n=this.el.style.paddingLeft;n&&(this.originalPadding=parseInt(n,10)),t.merge(this.nzMenuService.mode$,this.nzMenuService.inlineIndent$,this.nzSubmenuService?this.nzSubmenuService.level$:t.EMPTY).pipe(i.takeUntil(this.destroy$)).subscribe(function(){var n=null;"inline"===e.nzMenuService.mode?n=o.isNotNil(e.nzPaddingLeft)?e.nzPaddingLeft:(e.nzSubmenuService?e.nzSubmenuService.level+1:1)*e.nzMenuService.inlineIndent:n=e.originalPadding;n?e.renderer.setStyle(e.el,"padding-left",n+"px"):e.renderer.removeStyle(e.el,"padding-left")}),this.setClassMap()},e.prototype.ngAfterContentInit=function(){var e=this;this.listOfRouterLink.changes.pipe(i.takeUntil(this.destroy$)).subscribe(function(){return e.updateRouterActive()}),this.listOfRouterLinkWithHref.changes.pipe(i.takeUntil(this.destroy$)).subscribe(function(){return e.updateRouterActive()}),this.updateRouterActive()},e.prototype.ngOnChanges=function(e){e.nzSelected&&this.setSelectedState(this.nzSelected),e.nzDisabled&&this.setClassMap()},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.decorators=[{type:n.Directive,args:[{selector:"[nz-menu-item]",exportAs:"nzMenuItem",providers:[o.NzUpdateHostClassService],host:{"(click)":"clickMenuItem($event)"}}]}],e.ctorParameters=function(){return[{type:o.NzUpdateHostClassService},{type:o.NzMenuBaseService},{type:S,decorators:[{type:n.Optional}]},{type:n.Renderer2},{type:n.ElementRef},{type:r.RouterLink,decorators:[{type:n.Optional}]},{type:r.RouterLinkWithHref,decorators:[{type:n.Optional}]},{type:r.Router,decorators:[{type:n.Optional}]}]},e.propDecorators={nzDisabled:[{type:n.Input}],nzSelected:[{type:n.Input}],nzPaddingLeft:[{type:n.Input}],nzMatchRouterExact:[{type:n.Input}],nzMatchRouter:[{type:n.Input}],listOfRouterLink:[{type:n.ContentChildren,args:[r.RouterLink,{descendants:!0}]}],listOfRouterLinkWithHref:[{type:n.ContentChildren,args:[r.RouterLinkWithHref,{descendants:!0}]}]},h([o.InputBoolean(),m("design:type",Object)],e.prototype,"nzDisabled",void 0),h([o.InputBoolean(),m("design:type",Object)],e.prototype,"nzSelected",void 0),h([o.InputBoolean(),m("design:type",Object)],e.prototype,"nzMatchRouterExact",void 0),h([o.InputBoolean(),m("design:type",Object)],e.prototype,"nzMatchRouter",void 0),e}();
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
function g(e,n){return e||n}var M=function(){function e(e,i,r,s,a,u,p){this.elementRef=e,this.nzMenuService=i,this.cdr=r,this.nzSubmenuService=s,this.nzUpdateHostClassService=a,this.platform=u,this.noAnimation=p,this.nzOpen=!1,this.nzDisabled=!1,this.nzOpenChange=new n.EventEmitter,this.placement="rightTop",this.expandState="collapsed",this.overlayPositions=v(o.DEFAULT_SUBMENU_POSITIONS),this.destroy$=new t.Subject,this.isChildMenuSelected=!1,this.isMouseHover=!1}return e.prototype.setOpenState=function(e){this.nzSubmenuService.setOpenState(e)},e.prototype.clickSubMenuTitle=function(){"inline"!==this.nzSubmenuService.mode||this.nzMenuService.isInDropDown||this.nzDisabled||this.setOpenState(!this.nzOpen)},e.prototype.setMouseEnterState=function(e){this.isMouseHover=e,this.setClassMap(),this.nzSubmenuService.setMouseEnterState(e)},e.prototype.setTriggerWidth=function(){"horizontal"===this.nzSubmenuService.mode&&this.platform.isBrowser&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)},e.prototype.onPositionChange=function(e){this.placement=o.getPlacementName(e),this.cdr.markForCheck()},e.prototype.setClassMap=function(){var e,n=this.nzMenuService.isInDropDown?"ant-dropdown-menu-submenu":"ant-menu-submenu";this.nzUpdateHostClassService.updateHostClass(this.elementRef.nativeElement,((e={})[""+n]=!0,e[n+"-disabled"]=this.nzDisabled,e[n+"-open"]=this.nzOpen,e[n+"-selected"]=this.isChildMenuSelected,e[n+"-"+this.nzSubmenuService.mode]=!0,e[n+"-active"]=this.isMouseHover&&!this.nzDisabled,e))},e.prototype.ngOnInit=function(){var e=this;t.combineLatest([this.nzSubmenuService.mode$,this.nzSubmenuService.open$]).pipe(i.takeUntil(this.destroy$)).subscribe(function(n){var t=z(n,2),i=t[0],r=t[1];r&&"inline"===i?e.expandState="expanded":r&&"horizontal"===i?e.expandState="bottom":r&&"vertical"===i?e.expandState="active":(e.isMouseHover=!1,e.expandState="collapsed"),e.overlayPositions="horizontal"===i?[o.POSITION_MAP.bottomLeft]:[o.POSITION_MAP.rightTop,o.POSITION_MAP.leftTop],r!==e.nzOpen&&(e.setTriggerWidth(),e.nzOpen=r,e.nzOpenChange.emit(e.nzOpen)),e.setClassMap()}),this.nzSubmenuService.menuOpen$.pipe(i.takeUntil(this.destroy$)).subscribe(function(n){e.nzMenuService.menuOpen$.next(n)}),t.merge(this.nzMenuService.mode$,this.nzMenuService.inlineIndent$,this.nzSubmenuService.level$,this.nzSubmenuService.open$,this.nzSubmenuService.mode$).pipe(i.takeUntil(this.destroy$)).subscribe(function(){e.cdr.markForCheck()})},e.prototype.ngAfterContentInit=function(){var e=this;this.setTriggerWidth(),this.listOfNzMenuItemDirective.changes.pipe(i.startWith(!0),i.flatMap(function(){return t.merge.apply(void 0,v([e.listOfNzMenuItemDirective.changes],e.listOfNzMenuItemDirective.map(function(e){return e.selected$})))}),i.startWith(!0),i.map(function(){return e.listOfNzMenuItemDirective.some(function(e){return e.nzSelected})}),i.takeUntil(this.destroy$)).subscribe(function(n){e.isChildMenuSelected=n,e.setClassMap()})},e.prototype.ngOnChanges=function(e){e.nzOpen&&(this.nzSubmenuService.setOpenState(this.nzOpen),this.setTriggerWidth()),e.nzDisabled&&(this.nzSubmenuService.disabled=this.nzDisabled,this.setClassMap())},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.decorators=[{type:n.Component,args:[{selector:"[nz-submenu]",exportAs:"nzSubmenu",providers:[S,o.NzUpdateHostClassService],animations:[o.collapseMotion,o.zoomBigMotion,o.slideMotion],encapsulation:n.ViewEncapsulation.None,changeDetection:n.ChangeDetectionStrategy.OnPush,preserveWhitespaces:!1,template:'<div cdkOverlayOrigin\n #origin="cdkOverlayOrigin"\n [class.ant-dropdown-menu-submenu-title]="nzMenuService.isInDropDown"\n [class.ant-menu-submenu-title]="!nzMenuService.isInDropDown"\n [style.paddingLeft.px]="nzMenuService.mode === \'inline\'? (nzPaddingLeft ? nzPaddingLeft : nzSubmenuService.level * nzMenuService.inlineIndent) : null"\n (mouseenter)="setMouseEnterState(true)"\n (mouseleave)="setMouseEnterState(false)"\n (click)="clickSubMenuTitle()">\n <i nz-icon [nzType]="nzIcon" *ngIf="nzIcon"></i>\n <ng-container *nzStringTemplateOutlet="nzTitle"><span>{{ nzTitle }}</span></ng-container>\n <ng-content select="[title]" *ngIf="!nzTitle"></ng-content>\n <span *ngIf="nzMenuService.isInDropDown; else notDropdownTpl" class="ant-dropdown-menu-submenu-arrow">\n <i nz-icon nzType="right" class="anticon-right ant-dropdown-menu-submenu-arrow-icon"></i>\n </span>\n <ng-template #notDropdownTpl>\n <i class="ant-menu-submenu-arrow"></i>\n </ng-template>\n</div>\n<ul *ngIf="nzMenuService.mode === \'inline\'"\n [@collapseMotion]="expandState"\n [@.disabled]="noAnimation?.nzNoAnimation"\n [nzNoAnimation]="noAnimation?.nzNoAnimation"\n [ngClass]="nzMenuClassName"\n class="ant-menu ant-menu-inline ant-menu-sub">\n <ng-template [ngTemplateOutlet]="subMenuTemplate"></ng-template>\n</ul>\n<ng-template cdkConnectedOverlay\n (positionChange)="onPositionChange($event)"\n [cdkConnectedOverlayPositions]="overlayPositions"\n [cdkConnectedOverlayOrigin]="origin"\n [cdkConnectedOverlayWidth]="triggerWidth"\n [cdkConnectedOverlayOpen]="nzOpen && nzMenuService.mode !== \'inline\'">\n <div class="ant-menu-submenu ant-menu-submenu-popup"\n [@slideMotion]="expandState"\n [@zoomBigMotion]="expandState"\n [@.disabled]="noAnimation?.nzNoAnimation"\n [nzNoAnimation]="noAnimation?.nzNoAnimation"\n [class.ant-menu-light]="nzMenuService.theme === \'light\'"\n [class.ant-menu-dark]="nzMenuService.theme === \'dark\'"\n [class.ant-menu-submenu-placement-bottomLeft]="nzSubmenuService.mode === \'horizontal\'"\n [class.ant-menu-submenu-placement-rightTop]="nzSubmenuService.mode === \'vertical\' && placement === \'rightTop\'"\n [class.ant-menu-submenu-placement-leftTop]="nzSubmenuService.mode === \'vertical\' && placement === \'leftTop\'"\n (mouseleave)="setMouseEnterState(false)"\n (mouseenter)="setMouseEnterState(true)">\n <ul [class.ant-dropdown-menu]="nzMenuService.isInDropDown"\n [class.ant-menu]="!nzMenuService.isInDropDown"\n [class.ant-dropdown-menu-vertical]="nzMenuService.isInDropDown"\n [class.ant-menu-vertical]="!nzMenuService.isInDropDown"\n [class.ant-dropdown-menu-sub]="nzMenuService.isInDropDown"\n [class.ant-menu-sub]="!nzMenuService.isInDropDown"\n [ngClass]="nzMenuClassName">\n <ng-template [ngTemplateOutlet]="subMenuTemplate"></ng-template>\n </ul>\n </div>\n</ng-template>\n\n<ng-template #subMenuTemplate>\n <ng-content></ng-content>\n</ng-template>\n',styles:["\n :root .ant-menu-submenu.ant-menu-submenu-placement-bottomLeft {\n top: 6px;\n position: relative;\n }\n\n :root .ant-menu-submenu.ant-menu-submenu-placement-rightTop {\n left: 4px;\n position: relative;\n }\n\n :root .ant-menu-submenu.ant-menu-submenu-placement-leftTop {\n right: 4px;\n position: relative;\n }\n "]}]}],e.ctorParameters=function(){return[{type:n.ElementRef},{type:o.NzMenuBaseService},{type:n.ChangeDetectorRef},{type:S},{type:o.NzUpdateHostClassService},{type:a.Platform},{type:o.NzNoAnimationDirective,decorators:[{type:n.Host},{type:n.Optional}]}]},e.propDecorators={nzMenuClassName:[{type:n.Input}],nzPaddingLeft:[{type:n.Input}],nzTitle:[{type:n.Input}],nzIcon:[{type:n.Input}],nzOpen:[{type:n.Input}],nzDisabled:[{type:n.Input}],nzOpenChange:[{type:n.Output}],cdkConnectedOverlay:[{type:n.ViewChild,args:[s.CdkConnectedOverlay,{static:!0}]}],cdkOverlayOrigin:[{type:n.ViewChild,args:[s.CdkOverlayOrigin,{static:!0,read:n.ElementRef}]}],listOfNzSubMenuComponent:[{type:n.ContentChildren,args:[e,{descendants:!0}]}],listOfNzMenuItemDirective:[{type:n.ContentChildren,args:[y,{descendants:!0}]}]},h([o.InputBoolean(),m("design:type",Object)],e.prototype,"nzOpen",void 0),h([o.InputBoolean(),m("design:type",Object)],e.prototype,"nzDisabled",void 0),e}();var b=g,O=function(){function e(e,i,o){this.elementRef=e,this.nzMenuService=i,this.nzUpdateHostClassService=o,this.destroy$=new t.Subject,this.listOfOpenedNzSubMenuComponent=[],this.nzInlineIndent=24,this.nzTheme="light",this.nzMode="vertical",this.nzInDropDown=!1,this.nzInlineCollapsed=!1,this.nzSelectable=!this.nzMenuService.isInDropDown,this.nzClick=new n.EventEmitter}return e.prototype.updateInlineCollapse=function(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(function(e){return e.nzOpen}),this.listOfNzSubMenuComponent.forEach(function(e){return e.setOpenState(!1)}),this.nzMode="vertical"):(this.listOfOpenedNzSubMenuComponent.forEach(function(e){return e.setOpenState(!0)}),this.listOfOpenedNzSubMenuComponent=[],this.nzMode=this.cacheMode),this.nzMenuService.setMode(this.nzMode))},e.prototype.setClassMap=function(){var e,n=this.nzMenuService.isInDropDown?"ant-dropdown-menu":"ant-menu";this.nzUpdateHostClassService.updateHostClass(this.elementRef.nativeElement,((e={})[""+n]=!0,e[n+"-root"]=!0,e[n+"-"+this.nzTheme]=!0,e[n+"-"+this.nzMode]=!0,e[n+"-inline-collapsed"]=this.nzInlineCollapsed,e))},e.prototype.ngOnInit=function(){var e=this;this.setClassMap(),this.nzMenuService.menuItemClick$.pipe(i.takeUntil(this.destroy$)).subscribe(function(n){e.nzClick.emit(n),e.nzSelectable&&e.listOfNzMenuItemDirective.forEach(function(e){return e.setSelectedState(e===n)})})},e.prototype.ngAfterContentInit=function(){this.cacheMode=this.nzMode,this.updateInlineCollapse()},e.prototype.ngOnChanges=function(e){e.nzInlineCollapsed&&this.updateInlineCollapse(),e.nzInlineIndent&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),e.nzInDropDown&&(this.nzMenuService.isInDropDown=this.nzInDropDown),e.nzTheme&&this.nzMenuService.setTheme(this.nzTheme),e.nzMode&&(this.nzMenuService.setMode(this.nzMode),!e.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(function(e){return e.setOpenState(!1)})),(e.nzTheme||e.nzMode||e.nzInlineCollapsed)&&this.setClassMap()},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.decorators=[{type:n.Directive,args:[{selector:"[nz-menu]",exportAs:"nzMenu",providers:[o.NzUpdateHostClassService,f,{provide:o.NzMenuBaseService,useFactory:b,deps:[[new n.SkipSelf,new n.Optional,o.NzDropdownHigherOrderServiceToken],f]}]}]}],e.ctorParameters=function(){return[{type:n.ElementRef},{type:o.NzMenuBaseService},{type:o.NzUpdateHostClassService}]},e.propDecorators={listOfNzMenuItemDirective:[{type:n.ContentChildren,args:[y,{descendants:!0}]}],listOfNzSubMenuComponent:[{type:n.ContentChildren,args:[M,{descendants:!0}]}],nzInlineIndent:[{type:n.Input}],nzTheme:[{type:n.Input}],nzMode:[{type:n.Input}],nzInDropDown:[{type:n.Input}],nzInlineCollapsed:[{type:n.Input}],nzSelectable:[{type:n.Input}],nzClick:[{type:n.Output}]},h([o.InputBoolean(),m("design:type",Object)],e.prototype,"nzInDropDown",void 0),h([o.InputBoolean(),m("design:type",Object)],e.prototype,"nzInlineCollapsed",void 0),h([o.InputBoolean(),m("design:type",Object)],e.prototype,"nzSelectable",void 0),e}();var I=function(){function e(e,n){this.elementRef=e,this.renderer=n,this.renderer.addClass(e.nativeElement,"ant-menu-item-group")}return e.decorators=[{type:n.Component,args:[{selector:"[nz-menu-group]",exportAs:"nzMenuGroup",changeDetection:n.ChangeDetectionStrategy.OnPush,encapsulation:n.ViewEncapsulation.None,template:'<div class="ant-menu-item-group-title">\n <ng-container *nzStringTemplateOutlet="nzTitle">{{ nzTitle }}</ng-container>\n <ng-content select="[title]" *ngIf="!nzTitle"></ng-content>\n</div>\n<ul class="ant-menu-item-group-list">\n <ng-content></ng-content>\n</ul>',preserveWhitespaces:!1}]}],e.ctorParameters=function(){return[{type:n.ElementRef},{type:n.Renderer2}]},e.propDecorators={nzTitle:[{type:n.Input}]},e}();var C=function(){function e(e,n){this.elementRef=e,this.renderer=n,this.renderer.addClass(e.nativeElement,"ant-dropdown-menu-item-divider")}return e.decorators=[{type:n.Directive,args:[{selector:"[nz-menu-divider]",exportAs:"nzMenuDivider"}]}],e.ctorParameters=function(){return[{type:n.ElementRef},{type:n.Renderer2}]},e}();var D=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{imports:[u.CommonModule,p.FormsModule,a.PlatformModule,c.NzButtonModule,s.OverlayModule,l.NzIconModule,o.NzNoAnimationModule,o.NzAddOnModule],declarations:[O,y,M,C,I],exports:[O,y,M,C,I]}]}],e}();e.NzMenuDirective=O,e.NzMenuDividerDirective=C,e.NzMenuGroupComponent=I,e.NzMenuItemDirective=y,e.NzMenuModule=D,e.NzMenuService=f,e.NzMenuServiceFactory=g,e.NzSubMenuComponent=M,e.NzSubmenuService=S,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ng-zorro-antd-menu.umd.min.js.map