You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
35 KiB
8 lines
35 KiB
7 months ago
|
{
|
||
|
"version": 3,
|
||
|
"sources": ["../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-message.mjs"],
|
||
|
"sourcesContent": ["import { ComponentPortal } from '@angular/cdk/portal';\nimport * as i0 from '@angular/core';\nimport { Directive, EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, NgModule, Injectable } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { filter, take, takeUntil } from 'rxjs/operators';\nimport * as i1 from 'ng-zorro-antd/core/config';\nimport { NgClass, NgSwitch, NgSwitchCase, NgForOf } from '@angular/common';\nimport { toCssPixel } from 'ng-zorro-antd/core/util';\nimport { moveUpMotion } from 'ng-zorro-antd/core/animation';\nimport * as i2 from 'ng-zorro-antd/core/outlet';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport * as i1$1 from 'ng-zorro-antd/icon';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport * as i1$2 from 'ng-zorro-antd/core/services';\nimport * as i2$1 from '@angular/cdk/overlay';\nfunction NzMessageComponent_span_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 10);\n }\n}\nfunction NzMessageComponent_span_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 11);\n }\n}\nfunction NzMessageComponent_span_6_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 12);\n }\n}\nfunction NzMessageComponent_span_7_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 13);\n }\n}\nfunction NzMessageComponent_span_8_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 14);\n }\n}\nfunction NzMessageComponent_ng_container_9_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵelement(1, \"span\", 15);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r5 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"innerHTML\", ctx_r5.instance.content, i0.ɵɵsanitizeHtml);\n }\n}\nfunction NzMessageContainerComponent_nz_message_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r3 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"nz-message\", 2);\n i0.ɵɵlistener(\"destroyed\", function NzMessageContainerComponent_nz_message_1_Template_nz_message_destroyed_0_listener($event) {\n i0.ɵɵrestoreView(_r3);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.remove($event.id, $event.userAction));\n });\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const instance_r1 = ctx.$implicit;\n i0.ɵɵproperty(\"instance\", instance_r1);\n }\n}\nlet globalCounter = 0;\nclass NzMNService {\n constructor(nzSingletonService, overlay, injector) {\n this.nzSingletonService = nzSingletonService;\n this.overlay = overlay;\n this.injector = injector;\n }\n remove(id) {\n if (this.container) {\n if (id) {\n this.container.remove(id);\n } else {\n this.container.removeAll();\n }\n }\n }\n getInstanceId() {\n return `${this.componentPrefix}-${globalCounter++}`;\n }\n withContainer(ctor) {\n let containerInstance = this.nzSingletonService.getSingletonWithKey(this.componentPrefix);\n if (containerInstance) {\n return containerInstance;\n }\n const overlayRef = this.overlay.create({\n hasBackdrop: false,\n scrollStrategy: this.overlay.scrollStrategies.noop(),\n positionStrategy: this.overlay.position().global()\n });\n const componentPortal = new ComponentPortal(ctor, null, this.injector);\n const componentRef = overlayRef.attach(componentPortal);\n const overlayWrapper = overlayRef.hostElement;\n overlayWrapper.style.zIndex = '1010';\n if (!containerInstance) {\n this.container = containerInstance = componentRef.instance;\n this.nzSingletonService.registerSingletonWithKey(this.componentPrefix, containerInstance);\n this.container.afterAllInstancesRemoved.subscribe(() => {\n this.container = undefined;\n this.nzSingletonService.unregisterSingletonWithKey(this.componentPrefix);\n overlayRef.dispose();\n });\n }\n return containerInstance;\n }\n}\nclass NzMNContainerComponent {
|
||
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,SAAS,mCAAmC,IAAI,KAAK;AACnD,MAAI,KAAK,GAAG;AACV,IAAG,UAAU,GAAG,QAAQ,EAAE;AAAA,EAC5B;AACF;AACA,SAAS,mCAAmC,IAAI,KAAK;AACnD,MAAI,KAAK,GAAG;AACV,IAAG,UAAU,GAAG,QAAQ,EAAE;AAAA,EAC5B;AACF;AACA,SAAS,mCAAmC,IAAI,KAAK;AACnD,MAAI,KAAK,GAAG;AACV,IAAG,UAAU,GAAG,QAAQ,EAAE;AAAA,EAC5B;AACF;AACA,SAAS,mCAAmC,IAAI,KAAK;AACnD,MAAI,KAAK,GAAG;AACV,IAAG,UAAU,GAAG,QAAQ,EAAE;AAAA,EAC5B;AACF;AACA,SAAS,mCAAmC,IAAI,KAAK;AACnD,MAAI,KAAK,GAAG;AACV,IAAG,UAAU,GAAG,QAAQ,EAAE;AAAA,EAC5B;AACF;AACA,SAAS,2CAA2C,IAAI,KAAK;AAC3D,MAAI,KAAK,GAAG;AACV,IAAG,wBAAwB,CAAC;AAC5B,IAAG,UAAU,GAAG,QAAQ,EAAE;AAC1B,IAAG,sBAAsB;AAAA,EAC3B;AACA,MAAI,KAAK,GAAG;AACV,UAAM,SAAY,cAAc;AAChC,IAAG,UAAU,CAAC;AACd,IAAG,WAAW,aAAa,OAAO,SAAS,SAAY,cAAc;AAAA,EACvE;AACF;AACA,SAAS,kDAAkD,IAAI,KAAK;AAClE,MAAI,KAAK,GAAG;AACV,UAAM,MAAS,iBAAiB;AAChC,IAAG,eAAe,GAAG,cAAc,CAAC;AACpC,IAAG,WAAW,aAAa,SAAS,kFAAkF,QAAQ;AAC5H,MAAG,cAAc,GAAG;AACpB,YA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