ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
1 lines • 25 kB
Source Map (JSON)
{"version":3,"file":"ng-zorro-antd-icon.mjs","sources":["../../components/icon/icons.ts","../../components/icon/icon.service.ts","../../components/icon/icon.directive.ts","../../components/icon/provide-icons.ts","../../components/icon/icon.module.ts","../../components/icon/public-api.ts","../../components/icon/ng-zorro-antd-icon.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 { IconDefinition } from '@ant-design/icons-angular';\nimport {\n BarsOutline,\n CalendarOutline,\n CaretDownFill,\n CaretDownOutline,\n CaretUpFill,\n CaretUpOutline,\n CheckCircleFill,\n CheckCircleOutline,\n CheckOutline,\n ClockCircleOutline,\n CloseCircleFill,\n CloseCircleOutline,\n CloseOutline,\n CopyOutline,\n DeleteOutline,\n DoubleLeftOutline,\n DoubleRightOutline,\n DownOutline,\n EditOutline,\n EllipsisOutline,\n ExclamationCircleFill,\n ExclamationCircleOutline,\n EyeOutline,\n FileFill,\n FileOutline,\n FilterFill,\n InfoCircleFill,\n InfoCircleOutline,\n LeftOutline,\n LoadingOutline,\n PaperClipOutline,\n QuestionCircleOutline,\n RightOutline,\n RotateLeftOutline,\n RotateRightOutline,\n SearchOutline,\n StarFill,\n SwapOutline,\n SwapRightOutline,\n UploadOutline,\n UpOutline,\n VerticalAlignTopOutline,\n ZoomInOutline,\n ZoomOutOutline\n} from '@ant-design/icons-angular/icons';\n\nexport const NZ_ICONS_USED_BY_ZORRO: IconDefinition[] = [\n BarsOutline,\n CalendarOutline,\n CaretUpFill,\n CaretUpOutline,\n CaretDownFill,\n CaretDownOutline,\n CheckCircleFill,\n CheckCircleOutline,\n CheckOutline,\n ClockCircleOutline,\n CloseCircleOutline,\n CloseCircleFill,\n CloseOutline,\n CopyOutline,\n DeleteOutline,\n DoubleLeftOutline,\n DoubleRightOutline,\n DownOutline,\n EditOutline,\n EllipsisOutline,\n ExclamationCircleFill,\n ExclamationCircleOutline,\n EyeOutline,\n FileFill,\n FileOutline,\n FilterFill,\n InfoCircleFill,\n InfoCircleOutline,\n LeftOutline,\n LoadingOutline,\n PaperClipOutline,\n QuestionCircleOutline,\n RightOutline,\n RotateRightOutline,\n RotateLeftOutline,\n StarFill,\n SearchOutline,\n StarFill,\n UploadOutline,\n VerticalAlignTopOutline,\n UpOutline,\n SwapOutline,\n SwapRightOutline,\n ZoomInOutline,\n ZoomOutOutline\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 { Platform } from '@angular/cdk/platform';\nimport { DOCUMENT } from '@angular/common';\nimport { HttpBackend } from '@angular/common/http';\nimport { Injectable, InjectionToken, OnDestroy, RendererFactory2, inject } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { Subject, Subscription } from 'rxjs';\n\nimport { IconDefinition, IconService } from '@ant-design/icons-angular';\n\nimport { IconConfig, NzConfigService } from 'ng-zorro-antd/core/config';\nimport { warn } from 'ng-zorro-antd/core/logger';\n\nimport { NZ_ICONS_USED_BY_ZORRO } from './icons';\n\nexport interface NzIconfontOption {\n scriptUrl: string;\n}\n\nexport const NZ_ICONS = new InjectionToken<IconDefinition[]>('nz_icons');\nexport const NZ_ICON_DEFAULT_TWOTONE_COLOR = new InjectionToken('nz_icon_default_twotone_color');\nexport const DEFAULT_TWOTONE_COLOR = '#1890ff';\n\n/**\n * It should be a global singleton, otherwise registered icons could not be found.\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class NzIconService extends IconService implements OnDestroy {\n configUpdated$ = new Subject<void>();\n\n protected override get _disableDynamicLoading(): boolean {\n return !this.platform.isBrowser;\n }\n\n private iconfontCache = new Set<string>();\n private subscription: Subscription | null = null;\n\n ngOnDestroy(): void {\n if (this.subscription) {\n this.subscription.unsubscribe();\n this.subscription = null;\n }\n }\n\n normalizeSvgElement(svg: SVGElement): void {\n if (!svg.getAttribute('viewBox')) {\n this._renderer.setAttribute(svg, 'viewBox', '0 0 1024 1024');\n }\n if (!svg.getAttribute('width') || !svg.getAttribute('height')) {\n this._renderer.setAttribute(svg, 'width', '1em');\n this._renderer.setAttribute(svg, 'height', '1em');\n }\n if (!svg.getAttribute('fill')) {\n this._renderer.setAttribute(svg, 'fill', 'currentColor');\n }\n }\n\n fetchFromIconfont(opt: NzIconfontOption): void {\n const { scriptUrl } = opt;\n if (this._document && !this.iconfontCache.has(scriptUrl)) {\n const script = this._renderer.createElement('script');\n this._renderer.setAttribute(script, 'src', scriptUrl);\n this._renderer.setAttribute(script, 'data-namespace', scriptUrl.replace(/^(https?|http):/g, ''));\n this._renderer.appendChild(this._document.body, script);\n this.iconfontCache.add(scriptUrl);\n }\n }\n\n createIconfontIcon(type: string): SVGElement {\n return this._createSVGElementFromString(`<svg><use xlink:href=\"${type}\"></svg>`);\n }\n\n constructor(\n rendererFactory: RendererFactory2,\n sanitizer: DomSanitizer,\n protected nzConfigService: NzConfigService,\n private platform: Platform\n ) {\n super(\n rendererFactory,\n inject(HttpBackend, { optional: true }) as HttpBackend, // TODO: fix the type\n inject(DOCUMENT),\n sanitizer,\n [...NZ_ICONS_USED_BY_ZORRO, ...(inject(NZ_ICONS, { optional: true }) || [])]\n );\n\n this.onConfigChange();\n this.configDefaultTwotoneColor();\n this.configDefaultTheme();\n }\n\n private onConfigChange(): void {\n this.subscription = this.nzConfigService.getConfigChangeEventForComponent('icon').subscribe(() => {\n this.configDefaultTwotoneColor();\n this.configDefaultTheme();\n this.configUpdated$.next();\n });\n }\n\n private configDefaultTheme(): void {\n const iconConfig = this.getConfig();\n this.defaultTheme = iconConfig.nzTheme || 'outline';\n }\n\n private configDefaultTwotoneColor(): void {\n const iconConfig = this.getConfig();\n const defaultTwotoneColor = iconConfig.nzTwotoneColor || DEFAULT_TWOTONE_COLOR;\n\n let primaryColor = DEFAULT_TWOTONE_COLOR;\n\n if (defaultTwotoneColor) {\n if (defaultTwotoneColor.startsWith('#')) {\n primaryColor = defaultTwotoneColor;\n } else {\n warn('Twotone color must be a hex color!');\n }\n }\n\n this.twoToneColor = { primaryColor };\n }\n\n private getConfig(): IconConfig {\n return this.nzConfigService.getConfigForComponent('icon') || {};\n }\n}\n\nexport const NZ_ICONS_PATCH = new InjectionToken<IconDefinition[]>('nz_icons_patch');\n\n@Injectable()\nexport class NzIconPatchService {\n patched = false;\n private extraIcons = inject(NZ_ICONS_PATCH, { self: true });\n\n constructor(private rootIconService: NzIconService) {}\n\n doPatch(): void {\n if (this.patched) {\n return;\n }\n\n this.extraIcons.forEach(iconDefinition => this.rootIconService.addIcon(iconDefinition));\n this.patched = true;\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 {\n AfterContentChecked,\n ChangeDetectorRef,\n Directive,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n Renderer2,\n SimpleChanges,\n booleanAttribute,\n inject,\n numberAttribute\n} from '@angular/core';\nimport { Subject, from } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { IconDirective, ThemeType } from '@ant-design/icons-angular';\n\nimport { warn } from 'ng-zorro-antd/core/logger';\n\nimport { NzIconPatchService, NzIconService } from './icon.service';\n\n@Directive({\n selector: 'nz-icon,[nz-icon]',\n exportAs: 'nzIcon',\n host: {\n class: 'anticon'\n }\n})\nexport class NzIconDirective extends IconDirective implements OnChanges, AfterContentChecked, OnDestroy {\n cacheClassName: string | null = null;\n @Input({ transform: booleanAttribute })\n set nzSpin(value: boolean) {\n this.spin = value;\n }\n\n @Input({ transform: numberAttribute }) nzRotate: number = 0;\n\n @Input()\n set nzType(value: string) {\n this.type = value;\n }\n\n @Input()\n set nzTheme(value: ThemeType) {\n this.theme = value;\n }\n\n @Input()\n set nzTwotoneColor(value: string) {\n this.twoToneColor = value;\n }\n\n @Input()\n set nzIconfont(value: string) {\n this.iconfont = value;\n }\n\n hostClass?: string;\n\n private readonly el: HTMLElement;\n private iconfont?: string;\n private spin: boolean = false;\n\n private destroy$ = new Subject<void>();\n\n constructor(\n private readonly ngZone: NgZone,\n private readonly changeDetectorRef: ChangeDetectorRef,\n public readonly iconService: NzIconService,\n public readonly renderer: Renderer2\n ) {\n super(iconService);\n\n const iconPatch = inject(NzIconPatchService, { optional: true });\n if (iconPatch) {\n iconPatch.doPatch();\n }\n\n this.el = this._elementRef.nativeElement;\n }\n\n override ngOnChanges(changes: SimpleChanges): void {\n const { nzType, nzTwotoneColor, nzSpin, nzTheme, nzRotate } = changes;\n\n if (nzType || nzTwotoneColor || nzSpin || nzTheme) {\n this.changeIcon2();\n } else if (nzRotate) {\n this.handleRotate(this.el.firstChild as SVGElement);\n } else {\n this._setSVGElement(this.iconService.createIconfontIcon(`#${this.iconfont}`));\n }\n }\n\n /**\n * If custom content is provided, try to normalize SVG elements.\n */\n ngAfterContentChecked(): void {\n if (!this.type) {\n const children = this.el.children;\n let length = children.length;\n if (!this.type && children.length) {\n while (length--) {\n const child = children[length];\n if (child.tagName.toLowerCase() === 'svg') {\n this.iconService.normalizeSvgElement(child as SVGElement);\n }\n }\n }\n }\n }\n\n ngOnDestroy(): void {\n this.destroy$.next();\n }\n\n /**\n * Replacement of `changeIcon` for more modifications.\n */\n private changeIcon2(): void {\n this.setClassName();\n\n // The Angular zone is left deliberately before the SVG is set\n // since `_changeIcon` spawns asynchronous tasks as promise and\n // HTTP calls. This is used to reduce the number of change detections\n // while the icon is being loaded dynamically.\n this.ngZone.runOutsideAngular(() => {\n from(this._changeIcon())\n .pipe(takeUntil(this.destroy$))\n .subscribe({\n next: svgOrRemove => {\n // Get back into the Angular zone after completing all the tasks.\n // Since we manually run change detection locally, we have to re-enter\n // the zone because the change detection might also be run on other local\n // components, leading them to handle template functions outside of the Angular zone.\n this.ngZone.run(() => {\n // The _changeIcon method would call Renderer to remove the element of the old icon,\n // which would call `markElementAsRemoved` eventually,\n // so we should call `detectChanges` to tell Angular remove the DOM node.\n // #7186\n this.changeDetectorRef.detectChanges();\n\n if (svgOrRemove) {\n this.setSVGData(svgOrRemove);\n this.handleSpin(svgOrRemove);\n this.handleRotate(svgOrRemove);\n }\n });\n },\n error: warn\n });\n });\n }\n\n private handleSpin(svg: SVGElement): void {\n if (this.spin || this.type === 'loading') {\n this.renderer.addClass(svg, 'anticon-spin');\n } else {\n this.renderer.removeClass(svg, 'anticon-spin');\n }\n }\n\n private handleRotate(svg: SVGElement): void {\n if (this.nzRotate) {\n this.renderer.setAttribute(svg, 'style', `transform: rotate(${this.nzRotate}deg)`);\n } else {\n this.renderer.removeAttribute(svg, 'style');\n }\n }\n\n private setClassName(): void {\n if (this.cacheClassName) {\n this.renderer.removeClass(this.el, this.cacheClassName);\n }\n this.cacheClassName = `anticon-${this.type}`;\n this.renderer.addClass(this.el, this.cacheClassName);\n }\n\n private setSVGData(svg: SVGElement): void {\n this.renderer.setAttribute(svg, 'data-icon', this.type as string);\n this.renderer.setAttribute(svg, 'aria-hidden', 'true');\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 { EnvironmentProviders, makeEnvironmentProviders, Provider } from '@angular/core';\n\nimport { IconDefinition } from '@ant-design/icons-angular';\n\nimport { NZ_ICONS, NZ_ICONS_PATCH, NzIconPatchService } from './icon.service';\n\n/**\n * Provide icon definitions for NzIcon in root\n *\n * @param icons Icon definitions\n */\nexport const provideNzIcons = (icons: IconDefinition[]): EnvironmentProviders => {\n return makeEnvironmentProviders([\n {\n provide: NZ_ICONS,\n useValue: icons\n }\n ]);\n};\n\n/**\n * Provide icon definitions for NzIcon in feature module or standalone component\n *\n * @param icons Icon definitions\n */\nexport const provideNzIconsPatch = (icons: IconDefinition[]): Provider[] => {\n return [\n NzIconPatchService,\n {\n provide: NZ_ICONS_PATCH,\n useValue: icons\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 { ModuleWithProviders, NgModule } from '@angular/core';\n\nimport { IconDefinition } from '@ant-design/icons-angular';\n\nimport { NzIconDirective } from './icon.directive';\nimport { provideNzIcons, provideNzIconsPatch } from './provide-icons';\n\n@NgModule({\n imports: [NzIconDirective],\n exports: [NzIconDirective]\n})\nexport class NzIconModule {\n static forRoot(icons: IconDefinition[]): ModuleWithProviders<NzIconModule> {\n return {\n ngModule: NzIconModule,\n providers: [provideNzIcons(icons)]\n };\n }\n\n static forChild(icons: IconDefinition[]): ModuleWithProviders<NzIconModule> {\n return {\n ngModule: NzIconModule,\n providers: [provideNzIconsPatch(icons)]\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\nexport * from './icon.module';\nexport * from './icon.directive';\nexport * from './icon.service';\nexport * from './icons';\nexport * from './provide-icons';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.NzIconService"],"mappings":";;;;;;;;;;;;;AAAA;;;AAGG;AAkDU,MAAA,sBAAsB,GAAqB;IACtD,WAAW;IACX,eAAe;IACf,WAAW;IACX,cAAc;IACd,aAAa;IACb,gBAAgB;IAChB,eAAe;IACf,kBAAkB;IAClB,YAAY;IACZ,kBAAkB;IAClB,kBAAkB;IAClB,eAAe;IACf,YAAY;IACZ,WAAW;IACX,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IAClB,WAAW;IACX,WAAW;IACX,eAAe;IACf,qBAAqB;IACrB,wBAAwB;IACxB,UAAU;IACV,QAAQ;IACR,WAAW;IACX,UAAU;IACV,cAAc;IACd,iBAAiB;IACjB,WAAW;IACX,cAAc;IACd,gBAAgB;IAChB,qBAAqB;IACrB,YAAY;IACZ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