ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
1 lines • 30.4 kB
Source Map (JSON)
{"version":3,"file":"ng-zorro-antd-notification.mjs","sources":["../../components/notification/notification.component.ts","../../components/notification/notification-container.component.ts","../../components/notification/notification.module.ts","../../components/notification/typings.ts","../../components/notification/notification.service.ts","../../components/notification/notification.service.module.ts","../../components/notification/public-api.ts","../../components/notification/ng-zorro-antd-notification.ts"],"sourcesContent":["/**\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\nimport { NgTemplateOutlet } from '@angular/common';\nimport { Component, EventEmitter, Input, OnDestroy, Output, ViewEncapsulation } from '@angular/core';\n\nimport { notificationMotion } from 'ng-zorro-antd/core/animation';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzMNComponent } from 'ng-zorro-antd/message';\n\nimport { NzNotificationData } from './typings';\n\n@Component({\n encapsulation: ViewEncapsulation.None,\n selector: 'nz-notification',\n exportAs: 'nzNotification',\n preserveWhitespaces: false,\n animations: [notificationMotion],\n template: `\n <div\n class=\"ant-notification-notice ant-notification-notice-closable\"\n [style]=\"instance.options?.nzStyle || null\"\n [class]=\"instance.options?.nzClass || ''\"\n [@notificationMotion]=\"state\"\n (@notificationMotion.done)=\"animationStateChanged.next($event)\"\n (click)=\"onClick($event)\"\n (mouseenter)=\"onEnter()\"\n (mouseleave)=\"onLeave()\"\n >\n @if (instance.template) {\n <ng-template\n [ngTemplateOutlet]=\"instance.template!\"\n [ngTemplateOutletContext]=\"{ $implicit: this, data: instance.options?.nzData }\"\n />\n } @else {\n <div class=\"ant-notification-notice-content\">\n <div class=\"ant-notification-notice-content\">\n <div [class.ant-notification-notice-with-icon]=\"instance.type !== 'blank'\">\n @switch (instance.type) {\n @case ('success') {\n <nz-icon\n nzType=\"check-circle\"\n class=\"ant-notification-notice-icon ant-notification-notice-icon-success\"\n />\n }\n @case ('info') {\n <nz-icon\n nzType=\"info-circle\"\n class=\"ant-notification-notice-icon ant-notification-notice-icon-info\"\n />\n }\n @case ('warning') {\n <nz-icon\n nzType=\"exclamation-circle\"\n class=\"ant-notification-notice-icon ant-notification-notice-icon-warning\"\n />\n }\n @case ('error') {\n <nz-icon\n nzType=\"close-circle\"\n class=\"ant-notification-notice-icon ant-notification-notice-icon-error\"\n />\n }\n }\n <div class=\"ant-notification-notice-message\">\n <ng-container *nzStringTemplateOutlet=\"instance.title\">\n <div [innerHTML]=\"instance.title\"></div>\n </ng-container>\n </div>\n <div class=\"ant-notification-notice-description\">\n <ng-container\n *nzStringTemplateOutlet=\"\n instance.content;\n context: { $implicit: this, data: instance.options?.nzData }\n \"\n >\n <div [innerHTML]=\"instance.content\"></div>\n </ng-container>\n </div>\n @if (instance.options?.nzButton; as btn) {\n <span class=\"ant-notification-notice-btn\">\n <ng-template [ngTemplateOutlet]=\"btn\" [ngTemplateOutletContext]=\"{ $implicit: this }\" />\n </span>\n }\n </div>\n </div>\n </div>\n }\n <a tabindex=\"0\" class=\"ant-notification-notice-close\" (click)=\"close()\">\n <span class=\"ant-notification-notice-close-x\">\n @if (instance.options?.nzCloseIcon) {\n <ng-container *nzStringTemplateOutlet=\"instance.options?.nzCloseIcon; let closeIcon\">\n <nz-icon [nzType]=\"closeIcon\" />\n </ng-container>\n } @else {\n <nz-icon nzType=\"close\" class=\"ant-notification-close-icon\" />\n }\n </span>\n </a>\n </div>\n `,\n imports: [NzIconModule, NzOutletModule, NgTemplateOutlet]\n})\nexport class NzNotificationComponent extends NzMNComponent implements OnDestroy {\n @Input() instance!: Required<NzNotificationData>;\n @Input() index!: number;\n @Input() placement?: string;\n @Output() readonly destroyed = new EventEmitter<{ id: string; userAction: boolean }>();\n\n override ngOnDestroy(): void {\n super.ngOnDestroy();\n this.instance.onClick.complete();\n }\n\n onClick(event: MouseEvent): void {\n this.instance.onClick.next(event);\n }\n\n close(): void {\n this.destroy(true);\n }\n\n get state(): string | undefined {\n if (this.instance.state === 'enter') {\n switch (this.placement) {\n case 'topLeft':\n case 'bottomLeft':\n return 'enterLeft';\n case 'topRight':\n case 'bottomRight':\n return 'enterRight';\n case 'top':\n return 'enterTop';\n case 'bottom':\n return 'enterBottom';\n default:\n return 'enterRight';\n }\n } else {\n return this.instance.state;\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 */\n\nimport { Direction } from '@angular/cdk/bidi';\nimport { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { NotificationConfig } from 'ng-zorro-antd/core/config';\nimport { toCssPixel } from 'ng-zorro-antd/core/util';\nimport { NzMNContainerComponent } from 'ng-zorro-antd/message';\n\nimport { NzNotificationComponent } from './notification.component';\nimport { NzNotificationData, NzNotificationDataOptions, NzNotificationPlacement } from './typings';\n\nconst NZ_CONFIG_MODULE_NAME = 'notification';\n\nconst NZ_NOTIFICATION_DEFAULT_CONFIG: Required<NotificationConfig> = {\n nzTop: '24px',\n nzBottom: '24px',\n nzPlacement: 'topRight',\n nzDuration: 4500,\n nzMaxStack: 8,\n nzPauseOnHover: true,\n nzAnimate: true,\n nzDirection: 'ltr'\n};\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n selector: 'nz-notification-container',\n exportAs: 'nzNotificationContainer',\n preserveWhitespaces: false,\n template: `\n <div\n class=\"ant-notification ant-notification-topLeft\"\n [class.ant-notification-rtl]=\"dir === 'rtl'\"\n [style.top]=\"top\"\n [style.left]=\"'0px'\"\n >\n @for (instance of topLeftInstances; track instance) {\n <nz-notification\n [instance]=\"instance\"\n [placement]=\"'topLeft'\"\n (destroyed)=\"remove($event.id, $event.userAction)\"\n />\n }\n </div>\n <div\n class=\"ant-notification ant-notification-topRight\"\n [class.ant-notification-rtl]=\"dir === 'rtl'\"\n [style.top]=\"top\"\n [style.right]=\"'0px'\"\n >\n @for (instance of topRightInstances; track instance) {\n <nz-notification\n [instance]=\"instance\"\n [placement]=\"'topRight'\"\n (destroyed)=\"remove($event.id, $event.userAction)\"\n />\n }\n </div>\n <div\n class=\"ant-notification ant-notification-bottomLeft\"\n [class.ant-notification-rtl]=\"dir === 'rtl'\"\n [style.bottom]=\"bottom\"\n [style.left]=\"'0px'\"\n >\n @for (instance of bottomLeftInstances; track instance) {\n <nz-notification\n [instance]=\"instance\"\n [placement]=\"'bottomLeft'\"\n (destroyed)=\"remove($event.id, $event.userAction)\"\n />\n }\n </div>\n <div\n class=\"ant-notification ant-notification-bottomRight\"\n [class.ant-notification-rtl]=\"dir === 'rtl'\"\n [style.bottom]=\"bottom\"\n [style.right]=\"'0px'\"\n >\n @for (instance of bottomRightInstances; track instance) {\n <nz-notification\n [instance]=\"instance\"\n [placement]=\"'bottomRight'\"\n (destroyed)=\"remove($event.id, $event.userAction)\"\n />\n }\n </div>\n <div\n class=\"ant-notification ant-notification-top\"\n [class.ant-notification-rtl]=\"dir === 'rtl'\"\n [style.top]=\"top\"\n [style.left]=\"'50%'\"\n [style.transform]=\"'translateX(-50%)'\"\n >\n @for (instance of topInstances; track instance) {\n <nz-notification [instance]=\"instance\" [placement]=\"'top'\" (destroyed)=\"remove($event.id, $event.userAction)\" />\n }\n </div>\n <div\n class=\"ant-notification ant-notification-bottom\"\n [class.ant-notification-rtl]=\"dir === 'rtl'\"\n [style.bottom]=\"bottom\"\n [style.left]=\"'50%'\"\n [style.transform]=\"'translateX(-50%)'\"\n >\n @for (instance of bottomInstances; track instance) {\n <nz-notification\n [instance]=\"instance\"\n [placement]=\"'bottom'\"\n (destroyed)=\"remove($event.id, $event.userAction)\"\n />\n }\n </div>\n `,\n imports: [NzNotificationComponent]\n})\nexport class NzNotificationContainerComponent extends NzMNContainerComponent<NotificationConfig, NzNotificationData> {\n dir: Direction = this.nzConfigService.getConfigForComponent(NZ_CONFIG_MODULE_NAME)?.nzDirection || 'ltr';\n bottom?: string | null;\n top?: string | null;\n topLeftInstances: Array<Required<NzNotificationData>> = [];\n topRightInstances: Array<Required<NzNotificationData>> = [];\n bottomLeftInstances: Array<Required<NzNotificationData>> = [];\n bottomRightInstances: Array<Required<NzNotificationData>> = [];\n topInstances: Array<Required<NzNotificationData>> = [];\n bottomInstances: Array<Required<NzNotificationData>> = [];\n\n constructor() {\n super();\n this.updateConfig();\n }\n\n override create(notification: NzNotificationData): Required<NzNotificationData> {\n const instance = this.onCreate(notification);\n const key = instance.options.nzKey;\n const notificationWithSameKey = this.instances.find(\n msg => msg.options.nzKey === (notification.options as Required<NzNotificationDataOptions>).nzKey\n );\n if (key && notificationWithSameKey) {\n this.replaceNotification(notificationWithSameKey, instance);\n } else {\n if (this.instances.length >= this.config!.nzMaxStack) {\n this.instances = this.instances.slice(1);\n }\n this.instances = [...this.instances, instance];\n }\n\n this.readyInstances();\n\n return instance;\n }\n\n protected override onCreate(instance: NzNotificationData): Required<NzNotificationData> {\n instance.options = this.mergeOptions(instance.options);\n instance.onClose = new Subject<boolean>();\n instance.onClick = new Subject<MouseEvent>();\n return instance as Required<NzNotificationData>;\n }\n\n protected subscribeConfigChange(): void {\n this.nzConfigService\n .getConfigChangeEventForComponent(NZ_CONFIG_MODULE_NAME)\n .pipe(takeUntil(this.destroy$))\n .subscribe(() => {\n this.updateConfig();\n this.dir = this.nzConfigService.getConfigForComponent(NZ_CONFIG_MODULE_NAME)?.nzDirection || this.dir;\n });\n }\n\n protected updateConfig(): void {\n this.config = {\n ...NZ_NOTIFICATION_DEFAULT_CONFIG,\n ...this.config,\n ...this.nzConfigService.getConfigForComponent(NZ_CONFIG_MODULE_NAME)\n };\n\n this.top = toCssPixel(this.config.nzTop!);\n this.bottom = toCssPixel(this.config.nzBottom!);\n\n this.cdr.markForCheck();\n }\n\n private replaceNotification(old: NzNotificationData, _new: NzNotificationData): void {\n old.title = _new.title;\n old.content = _new.content;\n old.template = _new.template;\n old.type = _new.type;\n old.options = _new.options;\n }\n\n protected override readyInstances(): void {\n const instancesMap: Record<NzNotificationPlacement, Array<Required<NzNotificationData>>> = {\n topLeft: [],\n topRight: [],\n bottomLeft: [],\n bottomRight: [],\n top: [],\n bottom: []\n };\n this.instances.forEach(m => {\n const placement = m.options.nzPlacement;\n switch (placement) {\n case 'topLeft':\n instancesMap.topLeft.unshift(m);\n break;\n case 'topRight':\n instancesMap.topRight.unshift(m);\n break;\n case 'bottomLeft':\n instancesMap.bottomLeft.unshift(m);\n break;\n case 'bottomRight':\n instancesMap.bottomRight.unshift(m);\n break;\n case 'top':\n instancesMap.top.unshift(m);\n break;\n case 'bottom':\n instancesMap.bottom.unshift(m);\n break;\n default:\n instancesMap.topRight.unshift(m);\n }\n });\n this.topLeftInstances = instancesMap.topLeft;\n this.topRightInstances = instancesMap.topRight;\n this.bottomLeftInstances = instancesMap.bottomLeft;\n this.bottomRightInstances = instancesMap.bottomRight;\n this.topInstances = instancesMap.top;\n this.bottomInstances = instancesMap.bottom;\n\n this.cdr.detectChanges();\n }\n\n protected override mergeOptions(options?: NzNotificationDataOptions): NzNotificationDataOptions {\n const { nzDuration, nzAnimate, nzPauseOnHover, nzPlacement } = this.config!;\n return { nzDuration, nzAnimate, nzPauseOnHover, nzPlacement, ...options };\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\nimport { NgModule } from '@angular/core';\n\nimport { NzNotificationContainerComponent } from './notification-container.component';\nimport { NzNotificationComponent } from './notification.component';\n\n/**\n * @deprecated This module is no longer needed, will be removed in v20, please remove its import.\n */\n@NgModule({\n imports: [NzNotificationComponent, NzNotificationContainerComponent]\n})\nexport class NzNotificationModule {}\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\nimport { TemplateRef } from '@angular/core';\nimport { Subject } from 'rxjs';\n\nimport { NgClassInterface, NgStyleInterface, NzSafeAny } from 'ng-zorro-antd/core/types';\n\nimport type { NzNotificationComponent } from './notification.component';\n\nexport type NzNotificationPlacement = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'top' | 'bottom';\n\nexport type NzNotificationContentType =\n | string\n | TemplateRef<void | {\n $implicit: NzNotificationComponent;\n data: NzSafeAny;\n }>;\n\nexport interface NzNotificationDataOptions<T = {}> {\n nzKey?: string;\n nzStyle?: NgStyleInterface;\n nzClass?: NgClassInterface | string;\n nzCloseIcon?: TemplateRef<void> | string;\n nzButton?: TemplateRef<{ $implicit: NzNotificationComponent }>;\n nzPlacement?: NzNotificationPlacement;\n nzData?: T;\n nzDuration?: number;\n nzAnimate?: boolean;\n nzPauseOnHover?: boolean;\n}\n\nexport interface NzNotificationData {\n title?: string | TemplateRef<void>;\n content?: NzNotificationContentType;\n createdAt?: Date;\n messageId?: string;\n options?: NzNotificationDataOptions;\n state?: 'enter' | 'leave';\n template?: TemplateRef<{}>;\n type?: 'success' | 'info' | 'warning' | 'error' | 'blank' | string;\n\n // observables exposed to users\n onClose?: Subject<boolean>;\n onClick?: Subject<MouseEvent>;\n}\n\nexport type NzNotificationRef = Pick<Required<NzNotificationData>, 'onClose' | 'onClick' | 'messageId'>;\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\nimport { Overlay } from '@angular/cdk/overlay';\nimport { Injectable, Injector, TemplateRef } from '@angular/core';\n\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport { NzMNService } from 'ng-zorro-antd/message';\n\nimport { NzNotificationContainerComponent } from './notification-container.component';\nimport type { NzNotificationComponent } from './notification.component';\nimport { NzNotificationContentType, NzNotificationData, NzNotificationDataOptions, NzNotificationRef } from './typings';\n\nlet notificationId = 0;\n\n@Injectable({\n providedIn: 'root'\n})\nexport class NzNotificationService extends NzMNService<NzNotificationContainerComponent> {\n protected componentPrefix = 'notification-';\n\n constructor(overlay: Overlay, injector: Injector) {\n super(overlay, injector);\n }\n\n success(\n title: string | TemplateRef<void>,\n content: NzNotificationContentType,\n options?: NzNotificationDataOptions\n ): NzNotificationRef {\n return this.create('success', title, content, options);\n }\n\n error(\n title: string | TemplateRef<void>,\n content: NzNotificationContentType,\n options?: NzNotificationDataOptions\n ): NzNotificationRef {\n return this.create('error', title, content, options);\n }\n\n info(\n title: string | TemplateRef<void>,\n content: NzNotificationContentType,\n options?: NzNotificationDataOptions\n ): NzNotificationRef {\n return this.create('info', title, content, options);\n }\n\n warning(\n title: string | TemplateRef<void>,\n content: NzNotificationContentType,\n options?: NzNotificationDataOptions\n ): NzNotificationRef {\n return this.create('warning', title, content, options);\n }\n\n blank(\n title: string | TemplateRef<void>,\n content: NzNotificationContentType,\n options?: NzNotificationDataOptions\n ): NzNotificationRef {\n return this.create('blank', title, content, options);\n }\n\n create(\n type: 'success' | 'info' | 'warning' | 'error' | 'blank' | string,\n title: string | TemplateRef<void>,\n content: NzNotificationContentType,\n options?: NzNotificationDataOptions\n ): NzNotificationRef {\n return this.createInstance({ type, title, content }, options);\n }\n\n template(\n template: TemplateRef<{\n $implicit: NzNotificationComponent;\n data: NzSafeAny;\n }>,\n options?: NzNotificationDataOptions\n ): NzNotificationRef {\n return this.createInstance({ template }, options);\n }\n\n protected generateMessageId(): string {\n return `${this.componentPrefix}-${notificationId++}`;\n }\n\n private createInstance(message: NzNotificationData, options?: NzNotificationDataOptions): NzNotificationRef {\n this.container = this.withContainer(NzNotificationContainerComponent);\n\n return this.container.create({\n ...message,\n ...{\n createdAt: new Date(),\n messageId: options?.nzKey || this.generateMessageId(),\n options\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 */\n\nimport { NgModule } from '@angular/core';\n\n/**\n * @deprecated This module is no longer needed, will be removed in v20, please remove its import.\n */\n@NgModule()\nexport class NzNotificationServiceModule {}\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\nexport * from './notification.component';\nexport * from './notification.module';\nexport * from './typings';\nexport * from './notification.service';\nexport * from './notification.service.module';\nexport * from './notification-container.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAAA;;;AAGG;AAuGG,MAAO,uBAAwB,SAAQ,aAAa,CAAA;AAC/C,IAAA,QAAQ;AACR,IAAA,KAAK;AACL,IAAA,SAAS;AACC,IAAA,SAAS,GAAG,IAAI,YAAY,EAAuC;IAE7E,WAAW,GAAA;QAClB,KAAK,CAAC,WAAW,EAAE;AACnB,QAAA,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE;;AAGlC,IAAA,OAAO,CAAC,KAAiB,EAAA;QACvB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;;IAGnC,KAAK,GAAA;AACH,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;;AAGpB,IAAA,IAAI,KAAK,GAAA;QACP,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,KAAK,OAAO,EAAE;AACnC,YAAA,QAAQ,IAAI,CAAC,SAAS;AACpB,gBAAA,KAAK,SAAS;AACd,gBAAA,KAAK,YAAY;AACf,oBAAA,OAAO,WAAW;AACpB,gBAAA,KAAK,UAAU;AACf,gBAAA,KAAK,aAAa;AAChB,oBAAA,OAAO,YAAY;AACrB,gBAAA,KAAK,KAAK;AACR,oBAAA,OAAO,UAAU;AACnB,gBAAA,KAAK,QAAQ;AACX,oBAAA,OAAO,aAAa;AACtB,gBAAA;AACE,oBAAA,OAAO,YAAY;;;aAElB;AACL,YAAA,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