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
22 KiB
8 lines
22 KiB
7 months ago
|
{
|
||
|
"version": 3,
|
||
|
"sources": ["../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-grid.mjs"],
|
||
|
"sourcesContent": ["import * as i0 from '@angular/core';\nimport { Directive, Optional, Input, Host, NgModule } from '@angular/core';\nimport { ReplaySubject, Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport * as i3 from 'ng-zorro-antd/core/services';\nimport { gridResponsiveMap } from 'ng-zorro-antd/core/services';\nimport * as i1 from '@angular/cdk/layout';\nimport * as i2 from '@angular/cdk/platform';\nimport * as i4 from '@angular/cdk/bidi';\nimport { isNotNil } from 'ng-zorro-antd/core/util';\nclass NzRowDirective {\n getGutter() {\n const results = [null, null];\n const gutter = this.nzGutter || 0;\n const normalizedGutter = Array.isArray(gutter) ? gutter : [gutter, null];\n normalizedGutter.forEach((g, index) => {\n if (typeof g === 'object' && g !== null) {\n results[index] = null;\n Object.keys(gridResponsiveMap).map(screen => {\n const bp = screen;\n if (this.mediaMatcher.matchMedia(gridResponsiveMap[bp]).matches && g[bp]) {\n results[index] = g[bp];\n }\n });\n } else {\n results[index] = Number(g) || null;\n }\n });\n return results;\n }\n setGutterStyle() {\n const [horizontalGutter, verticalGutter] = this.getGutter();\n this.actualGutter$.next([horizontalGutter, verticalGutter]);\n const renderGutter = (name, gutter) => {\n const nativeElement = this.elementRef.nativeElement;\n if (gutter !== null) {\n this.renderer.setStyle(nativeElement, name, `-${gutter / 2}px`);\n }\n };\n renderGutter('margin-left', horizontalGutter);\n renderGutter('margin-right', horizontalGutter);\n renderGutter('margin-top', verticalGutter);\n renderGutter('margin-bottom', verticalGutter);\n }\n constructor(elementRef, renderer, mediaMatcher, ngZone, platform, breakpointService, directionality) {\n this.elementRef = elementRef;\n this.renderer = renderer;\n this.mediaMatcher = mediaMatcher;\n this.ngZone = ngZone;\n this.platform = platform;\n this.breakpointService = breakpointService;\n this.directionality = directionality;\n this.nzAlign = null;\n this.nzJustify = null;\n this.nzGutter = null;\n this.actualGutter$ = new ReplaySubject(1);\n this.dir = 'ltr';\n this.destroy$ = new Subject();\n }\n ngOnInit() {\n this.dir = this.directionality.value;\n this.directionality.change?.pipe(takeUntil(this.destroy$)).subscribe(direction => {\n this.dir = direction;\n });\n this.setGutterStyle();\n }\n ngOnChanges(changes) {\n if (changes.nzGutter) {\n this.setGutterStyle();\n }\n }\n ngAfterViewInit() {\n if (this.platform.isBrowser) {\n this.breakpointService.subscribe(gridResponsiveMap).pipe(takeUntil(this.destroy$)).subscribe(() => {\n this.setGutterStyle();\n });\n }\n }\n ngOnDestroy() {\n this.destroy$.next(true);\n this.destroy$.complete();\n }\n static {\n this.ɵfac = function NzRowDirective_Factory(t) {\n return new (t || NzRowDirective)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i1.MediaMatcher), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i2.Platform), i0.ɵɵdirectiveInject(i3.NzBreakpointService), i0.ɵɵdirectiveInject(i4.Directionality, 8));\n };\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: NzRowDirective,\n selectors: [[\"\", \"nz-row\", \"\"], [\"nz-row\"], [\"nz-form-item\"]],\n hostAttrs: [1, \"ant-row\"],\n hostVars: 20,\n hostBindings: function NzRowDirective_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵclassProp(\"ant-row-top\", ctx.nzAlign === \"top\")(\"ant-row-middle\", ctx.nzAlign === \"middle\")(\"ant-row-bottom\", ctx.nzAlign === \"bottom\")(\"ant-row-start\", ctx.nzJustify === \"start\")(\"ant-row-end\", ctx.nzJustify === \"end\")(\"ant-row-center\", ctx.nzJustify === \"center\")(\"ant-row-space-around\", ctx.nzJustify === \"space-around\")(\"ant-row-space-between\",
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