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.
puhui-go-web/.angular/cache/17.0.7/vite/deps/chunk-VOD2PKZN.js.map

8 lines
8.3 KiB

8 months ago
{
"version": 3,
"sources": ["../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-core-outlet.mjs"],
"sourcesContent": ["import * as i0 from '@angular/core';\nimport { TemplateRef, Directive, Input, NgModule } from '@angular/core';\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 NzStringTemplateOutletDirective {\n static ngTemplateContextGuard(_dir, _ctx) {\n return true;\n }\n recreateView() {\n this.viewContainer.clear();\n const isTemplateRef = this.nzStringTemplateOutlet instanceof TemplateRef;\n const templateRef = isTemplateRef ? this.nzStringTemplateOutlet : this.templateRef;\n this.embeddedViewRef = this.viewContainer.createEmbeddedView(templateRef, isTemplateRef ? this.nzStringTemplateOutletContext : this.context);\n }\n updateContext() {\n const isTemplateRef = this.nzStringTemplateOutlet instanceof TemplateRef;\n const newCtx = isTemplateRef ? this.nzStringTemplateOutletContext : this.context;\n const oldCtx = this.embeddedViewRef.context;\n if (newCtx) {\n for (const propName of Object.keys(newCtx)) {\n oldCtx[propName] = newCtx[propName];\n }\n }\n }\n constructor(viewContainer, templateRef) {\n this.viewContainer = viewContainer;\n this.templateRef = templateRef;\n this.embeddedViewRef = null;\n this.context = new NzStringTemplateOutletContext();\n this.nzStringTemplateOutletContext = null;\n this.nzStringTemplateOutlet = null;\n }\n ngOnChanges(changes) {\n const {\n nzStringTemplateOutletContext,\n nzStringTemplateOutlet\n } = changes;\n const shouldRecreateView = () => {\n let shouldOutletRecreate = false;\n if (nzStringTemplateOutlet) {\n if (nzStringTemplateOutlet.firstChange) {\n shouldOutletRecreate = true;\n } else {\n const isPreviousOutletTemplate = nzStringTemplateOutlet.previousValue instanceof TemplateRef;\n const isCurrentOutletTemplate = nzStringTemplateOutlet.currentValue instanceof TemplateRef;\n shouldOutletRecreate = isPreviousOutletTemplate || isCurrentOutletTemplate;\n }\n }\n const hasContextShapeChanged = ctxChange => {\n const prevCtxKeys = Object.keys(ctxChange.previousValue || {});\n const currCtxKeys = Object.keys(ctxChange.currentValue || {});\n if (prevCtxKeys.length === currCtxKeys.length) {\n for (const propName of currCtxKeys) {\n if (prevCtxKeys.indexOf(propName) === -1) {\n return true;\n }\n }\n return false;\n } else {\n return true;\n }\n };\n const shouldContextRecreate = nzStringTemplateOutletContext && hasContextShapeChanged(nzStringTemplateOutletContext);\n return shouldContextRecreate || shouldOutletRecreate;\n };\n if (nzStringTemplateOutlet) {\n this.context.$implicit = nzStringTemplateOutlet.currentValue;\n }\n const recreateView = shouldRecreateView();\n if (recreateView) {\n /** recreate view when context shape or outlet change **/\n this.recreateView();\n } else {\n /** update context **/\n this.updateContext();\n }\n }\n static {\n this.ɵfac = function NzStringTemplateOutletDirective_Factory(t) {\n return new (t || NzStringTemplateOutletDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.TemplateRef));\n };\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: NzStringTemplateOutletDirective,\n selectors: [[\"\", \"nzStringTemplateOutlet\", \"\"]],\n inputs: {\n nzStringTemplateOutletContext: \"nzStringTemplateOutletContext\",\n nzStringTemplateOutlet: \"nzStringTemplateOutlet\"\n },\n exportAs: [\"nzStringTemplateOutlet\"],\n standalone: true,\n features: [i0.ɵɵNgOnChangesFeature]\n });\n }\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzStringTemplateOutletDirective, [{\n type: Directive,\n args: [{\n s
"mappings": ";;;;;;;;;;;;;;;AAOA,IAAM,mCAAN,MAAM,iCAAgC;AAAA,EACpC,OAAO,uBAAuB,MAAM,MAAM;AACxC,WAAO;AAAA,EACT;AAAA,EACA,eAAe;AACb,SAAK,cA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