@ascentgl/ads-icons 21.25.0 → 22.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, Input, Component, NgModule } from '@angular/core';
2
+ import { Injectable, Input, ChangeDetectionStrategy, Component } from '@angular/core';
3
3
 
4
4
  class AdsIconRegistry {
5
5
  constructor() {
@@ -19,10 +19,10 @@ class AdsIconRegistry {
19
19
  }
20
20
  return this.registry.get(iconName);
21
21
  }
22
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AdsIconRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
23
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AdsIconRegistry, providedIn: 'root' }); }
22
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: AdsIconRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
23
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: AdsIconRegistry, providedIn: 'root' }); }
24
24
  }
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AdsIconRegistry, decorators: [{
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: AdsIconRegistry, decorators: [{
26
26
  type: Injectable,
27
27
  args: [{
28
28
  providedIn: 'root',
@@ -169,12 +169,12 @@ class AdsIconComponent {
169
169
  getSvgElement() {
170
170
  return this.element.nativeElement.querySelector('svg');
171
171
  }
172
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AdsIconComponent, deps: [{ token: i0.ElementRef }, { token: AdsIconRegistry }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
173
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: AdsIconComponent, isStandalone: false, selector: "ads-icon", inputs: { size: "size", name: "name", color: "color", theme: "theme", stroke: "stroke" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true, styles: [":host{display:inline-flex;justify-content:center;align-items:center;width:32px;height:32px;font-size:32px;fill:currentColor}:host ::ng-deep [data-no-fill]{fill:none!important}:host ::ng-deep [data-no-stroke]{stroke:none!important}:host ::ng-deep [data-stroke-white]{stroke:var(--color-white)}:host ::ng-deep [data-fill-white]{fill:var(--color-white)}:host ::ng-deep [data-fill-logo]{fill:var(--color-logo)}\n"] }); }
172
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: AdsIconComponent, deps: [{ token: i0.ElementRef }, { token: AdsIconRegistry }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
173
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.1", type: AdsIconComponent, isStandalone: true, selector: "ads-icon", inputs: { size: "size", name: "name", color: "color", theme: "theme", stroke: "stroke" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true, styles: [":host{display:inline-flex;justify-content:center;align-items:center;width:32px;height:32px;font-size:32px;fill:currentColor}:host ::ng-deep [data-no-fill]{fill:none!important}:host ::ng-deep [data-no-stroke]{stroke:none!important}:host ::ng-deep [data-stroke-white]{stroke:var(--color-white)}:host ::ng-deep [data-fill-white]{fill:var(--color-white)}:host ::ng-deep [data-fill-logo]{fill:var(--color-logo)}\n"], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
174
174
  }
175
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AdsIconComponent, decorators: [{
175
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: AdsIconComponent, decorators: [{
176
176
  type: Component,
177
- args: [{ selector: 'ads-icon', template: '', standalone: false, styles: [":host{display:inline-flex;justify-content:center;align-items:center;width:32px;height:32px;font-size:32px;fill:currentColor}:host ::ng-deep [data-no-fill]{fill:none!important}:host ::ng-deep [data-no-stroke]{stroke:none!important}:host ::ng-deep [data-stroke-white]{stroke:var(--color-white)}:host ::ng-deep [data-fill-white]{fill:var(--color-white)}:host ::ng-deep [data-fill-logo]{fill:var(--color-logo)}\n"] }]
177
+ args: [{ selector: 'ads-icon', template: '', changeDetection: ChangeDetectionStrategy.Eager, styles: [":host{display:inline-flex;justify-content:center;align-items:center;width:32px;height:32px;font-size:32px;fill:currentColor}:host ::ng-deep [data-no-fill]{fill:none!important}:host ::ng-deep [data-no-stroke]{stroke:none!important}:host ::ng-deep [data-stroke-white]{stroke:var(--color-white)}:host ::ng-deep [data-fill-white]{fill:var(--color-white)}:host ::ng-deep [data-fill-logo]{fill:var(--color-logo)}\n"] }]
178
178
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: AdsIconRegistry }, { type: i0.Renderer2 }], propDecorators: { size: [{
179
179
  type: Input
180
180
  }], name: [{
@@ -187,19 +187,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
187
187
  type: Input
188
188
  }] } });
189
189
 
190
- class AdsIconModule {
191
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AdsIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
192
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.6", ngImport: i0, type: AdsIconModule, declarations: [AdsIconComponent], exports: [AdsIconComponent] }); }
193
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AdsIconModule }); }
194
- }
195
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AdsIconModule, decorators: [{
196
- type: NgModule,
197
- args: [{
198
- declarations: [AdsIconComponent],
199
- exports: [AdsIconComponent],
200
- }]
201
- }] });
202
-
203
190
  /*
204
191
  * Public API Surface of ads-icons
205
192
  */
@@ -208,5 +195,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
208
195
  * Generated bundle index. Do not edit.
209
196
  */
210
197
 
211
- export { AdsIconComponent, AdsIconModule, AdsIconRegistry };
198
+ export { AdsIconComponent, AdsIconRegistry };
212
199
  //# sourceMappingURL=ascentgl-ads-icons.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ascentgl-ads-icons.mjs","sources":["../../../../libs/ads-icons/src/lib/ads-icon-registry.service.ts","../../../../libs/ads-icons/src/lib/ads-icon.component.ts","../../../../libs/ads-icons/src/lib/ads-icon.module.ts","../../../../libs/ads-icons/src/public-api.ts","../../../../libs/ads-icons/src/ascentgl-ads-icons.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { AdsIcon } from '@ascentgl/ads-icons/icons';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AdsIconRegistry {\n private registry = new Map<string, string>();\n\n public register(icons: AdsIcon | AdsIcon[]): void {\n if (Array.isArray(icons)) {\n icons.forEach((icon: AdsIcon) => this.registry.set(icon.name, icon.data));\n } else {\n this.registry.set(icons.name, icons.data);\n }\n }\n\n public get(iconName: string): string | undefined {\n if (!this.registry.has(iconName)) {\n console.warn(`Could not find a Ads Icon with the name ${iconName}. Did you add it to the icon registry?`);\n }\n\n return this.registry.get(iconName);\n }\n}\n","import { Component, ElementRef, Input, OnInit, Renderer2, OnChanges, SimpleChanges } from '@angular/core';\nimport { AdsIconRegistry } from './ads-icon-registry.service';\nimport { adsIcon } from '@ascentgl/ads-icons/icons';\n\ntype Sizes = {\n xxl: string;\n xl: string;\n lg: string;\n md: string;\n sm: string;\n xs: string;\n xxs: string;\n xxs_16: string;\n xxxs: string;\n xxxxs: string;\n auto: string;\n};\n\nexport type IconThemes = {\n iconPrimary: string;\n primary: string;\n secondary: string;\n secondaryHover: string;\n success: string;\n warn: string;\n white: string;\n 'dark-50': string;\n dark: string;\n link: string;\n 'medium-50': string;\n light: string;\n};\n\n@Component({\n selector: 'ads-icon',\n template: '',\n styleUrls: ['./ads-icon.component.scss'],\n standalone: false,\n})\nexport class AdsIconComponent implements OnInit, OnChanges {\n /**\n * The size of the icon\n */\n @Input() size: keyof Sizes = 'md';\n /**\n * The icon name\n */\n @Input() name!: adsIcon;\n /**\n * The color of the icon\n */\n @Input() color?: string;\n\n /**\n * The icon theme\n */\n @Input() theme?: keyof IconThemes;\n /**\n * The icon stroke\n */\n @Input() stroke?: keyof IconThemes;\n\n /** @ignore */\n private sizes: Sizes = {\n xxl: '128px',\n xl: '64px',\n lg: '48px',\n md: '32px',\n sm: '24px',\n xs: '20px',\n xxs_16: '16px',\n xxs: '14px',\n xxxs: '12px',\n xxxxs: '8px',\n auto: 'auto',\n };\n\n /** @ignore */\n private themes: IconThemes = {\n iconPrimary: '--color-medium',\n 'medium-50': '--color-medium-50',\n secondary: '--color-secondary',\n success: '--color-success',\n warn: '--color-error',\n primary: '--color-primary',\n white: '--color-white',\n 'dark-50': '--color-dark-50',\n dark: '--color-dark',\n link: '--color-link',\n secondaryHover: '--color-secondary-hover',\n light: '--color-light',\n };\n\n /** @ignore */\n private static instanceCounter = 0;\n private instanceId: number;\n\n /** @ignore */\n constructor(\n private element: ElementRef,\n private registry: AdsIconRegistry,\n private renderer: Renderer2,\n ) {\n this.instanceId = AdsIconComponent.instanceCounter++;\n }\n\n /** @ignore */\n ngOnInit(): void {\n this.renderIcon();\n }\n\n /** @ignore */\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.size || changes.color || changes.theme || changes.stroke || changes.fill || changes.name) {\n this.renderIcon();\n }\n }\n\n /** @ignore */\n private renderIcon(): void {\n let iconSVG = this.registry.get(this.name);\n\n if (iconSVG) {\n // Make clip-path and other ID references unique to avoid conflicts with multiple instances\n iconSVG = this.makeIdsUnique(iconSVG);\n this.element.nativeElement.innerHTML = iconSVG;\n this.updateSize();\n this.updateColor();\n this.updateTheme();\n this.updateStroke();\n } else {\n console.warn(`${this.name} is missing from the icon registry`);\n }\n }\n\n /** @ignore */\n private makeIdsUnique(svg: string): string {\n // Find all id definitions and their references, make them unique\n const idRegex = /id=\"([^\"]+)\"/g;\n\n const ids = new Set<string>();\n let match;\n\n // Collect all IDs\n while ((match = idRegex.exec(svg)) !== null) {\n ids.add(match[1]);\n }\n\n // Replace each ID and its references with unique versions\n let result = svg;\n ids.forEach((id) => {\n const uniqueId = `${id}_${this.instanceId}`;\n // Escape special regex characters in the ID\n const escapedId = id.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n result = result.replace(new RegExp(`id=\"${escapedId}\"`, 'g'), `id=\"${uniqueId}\"`);\n result = result.replace(new RegExp(`url\\\\(#${escapedId}\\\\)`, 'g'), `url(#${uniqueId})`);\n // Also update xlink:href and href references (used by flag icons with embedded images)\n result = result.replace(new RegExp(`xlink:href=\"#${escapedId}\"`, 'g'), `xlink:href=\"#${uniqueId}\"`);\n result = result.replace(new RegExp(`href=\"#${escapedId}\"`, 'g'), `href=\"#${uniqueId}\"`);\n });\n\n return result;\n }\n\n /** @ignore */\n private updateSize(): void {\n const size = this.sizes[this.size];\n this.renderer.setStyle(this.element.nativeElement, 'fontSize', size);\n this.renderer.setStyle(this.element.nativeElement, 'width', size);\n this.renderer.setStyle(this.element.nativeElement, 'height', size);\n\n const svgElement = this.getSvgElement();\n if (svgElement) {\n this.renderer.setStyle(svgElement, 'width', size);\n this.renderer.setStyle(svgElement, 'height', size);\n }\n }\n\n /** @ignore */\n private updateColor(): void {\n if (this.color) {\n const svg = this.element.nativeElement.querySelector('svg');\n this.renderer.setStyle(svg, 'fill', `var(${this.color})`);\n }\n }\n\n /** @ignore */\n private updateTheme(): void {\n if (this.theme) {\n const themeColor = this.themes[this.theme];\n if (themeColor) {\n this.renderer.setStyle(this.element.nativeElement, 'color', `var(${themeColor})`);\n } else {\n console.warn(\n `${this.theme} is not a valid ads-icon theme. Valid themes include: 'iconPrimary', 'primary', 'secondary', 'success', 'warn', 'white'`,\n );\n }\n }\n }\n\n /** @ignore */\n private updateStroke(): void {\n if (this.stroke) {\n const strokeColor = this.themes[this.stroke];\n if (strokeColor) {\n this.renderer.setStyle(this.element.nativeElement, 'stroke', `var(${strokeColor})`);\n } else {\n console.warn(\n `${this.stroke} is not a valid ads-icon stroke. Valid strokes include: 'iconPrimary', 'primary', 'secondary', 'success', 'warn', 'white', 'dark-50', 'dark'`,\n );\n }\n }\n }\n\n /** @ignore */\n private getSvgElement(): SVGElement | null {\n return this.element.nativeElement.querySelector('svg');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { AdsIconComponent } from './ads-icon.component';\n\n@NgModule({\n declarations: [AdsIconComponent],\n exports: [AdsIconComponent],\n})\nexport class AdsIconModule {}\n","/*\n * Public API Surface of ads-icons\n */\n\nexport * from './lib/ads-icon-registry.service';\nexport * from './lib/ads-icon.component';\nexport * from './lib/ads-icon.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.AdsIconRegistry"],"mappings":";;;MAMa,eAAe,CAAA;AAH5B,IAAA,WAAA,GAAA;AAIU,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,GAAG,EAAkB;AAiB7C,IAAA;AAfQ,IAAA,QAAQ,CAAC,KAA0B,EAAA;AACxC,QAAA,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACxB,KAAK,CAAC,OAAO,CAAC,CAAC,IAAa,KAAK,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3E;aAAO;AACL,YAAA,IAAI,CAAC,QAAQ,CAAC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AAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,oLAJjB,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,0ZAAA,CAAA,EAAA,CAAA,CAAA;;2FAID,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;+BACE,UAAU,EAAA,QAAA,EACV,EAAE,EAAA,UAAA,EAEA,KAAK,EAAA,MAAA,EAAA,CAAA,0ZAAA,CAAA,EAAA;;sBAMhB;;sBAIA;;sBAIA;;sBAKA;;sBAIA;;;MCrDU,aAAa,CAAA;8GAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAb,aAAa,EAAA,YAAA,EAAA,CAHT,gBAAgB,CAAA,EAAA,OAAA,EAAA,CACrB,gBAAgB,CAAA,EAAA,CAAA,CAAA;+GAEf,aAAa,EAAA,CAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;oBAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA;;;ACND;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"ascentgl-ads-icons.mjs","sources":["../../../../libs/ads-icons/src/lib/ads-icon-registry.service.ts","../../../../libs/ads-icons/src/lib/ads-icon.component.ts","../../../../libs/ads-icons/src/public-api.ts","../../../../libs/ads-icons/src/ascentgl-ads-icons.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { AdsIcon } from '@ascentgl/ads-icons/icons';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AdsIconRegistry {\n private registry = new Map<string, string>();\n\n public register(icons: AdsIcon | AdsIcon[]): void {\n if (Array.isArray(icons)) {\n icons.forEach((icon: AdsIcon) => this.registry.set(icon.name, icon.data));\n } else {\n this.registry.set(icons.name, icons.data);\n }\n }\n\n public get(iconName: string): string | undefined {\n if (!this.registry.has(iconName)) {\n console.warn(`Could not find a Ads Icon with the name ${iconName}. Did you add it to the icon registry?`);\n }\n\n return this.registry.get(iconName);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Input,\n OnInit,\n Renderer2,\n OnChanges,\n SimpleChanges,\n} from '@angular/core';\nimport { AdsIconRegistry } from './ads-icon-registry.service';\nimport { adsIcon } from '@ascentgl/ads-icons/icons';\n\ntype Sizes = {\n xxl: string;\n xl: string;\n lg: string;\n md: string;\n sm: string;\n xs: string;\n xxs: string;\n xxs_16: string;\n xxxs: string;\n xxxxs: string;\n auto: string;\n};\n\nexport type IconThemes = {\n iconPrimary: string;\n primary: string;\n secondary: string;\n secondaryHover: string;\n success: string;\n warn: string;\n white: string;\n 'dark-50': string;\n dark: string;\n link: string;\n 'medium-50': string;\n light: string;\n};\n\n@Component({\n selector: 'ads-icon',\n template: '',\n styleUrls: ['./ads-icon.component.scss'],\n changeDetection: ChangeDetectionStrategy.Eager,\n})\nexport class AdsIconComponent implements OnInit, OnChanges {\n /**\n * The size of the icon\n */\n @Input() size: keyof Sizes = 'md';\n /**\n * The icon name\n */\n @Input() name!: adsIcon;\n /**\n * The color of the icon\n */\n @Input() color?: string;\n\n /**\n * The icon theme\n */\n @Input() theme?: keyof IconThemes;\n /**\n * The icon stroke\n */\n @Input() stroke?: keyof IconThemes;\n\n /** @ignore */\n private sizes: Sizes = {\n xxl: '128px',\n xl: '64px',\n lg: '48px',\n md: '32px',\n sm: '24px',\n xs: '20px',\n xxs_16: '16px',\n xxs: '14px',\n xxxs: '12px',\n xxxxs: '8px',\n auto: 'auto',\n };\n\n /** @ignore */\n private themes: IconThemes = {\n iconPrimary: '--color-medium',\n 'medium-50': '--color-medium-50',\n secondary: '--color-secondary',\n success: '--color-success',\n warn: '--color-error',\n primary: '--color-primary',\n white: '--color-white',\n 'dark-50': '--color-dark-50',\n dark: '--color-dark',\n link: '--color-link',\n secondaryHover: '--color-secondary-hover',\n light: '--color-light',\n };\n\n /** @ignore */\n private static instanceCounter = 0;\n private instanceId: number;\n\n /** @ignore */\n constructor(\n private element: ElementRef,\n private registry: AdsIconRegistry,\n private renderer: Renderer2,\n ) {\n this.instanceId = AdsIconComponent.instanceCounter++;\n }\n\n /** @ignore */\n ngOnInit(): void {\n this.renderIcon();\n }\n\n /** @ignore */\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.size || changes.color || changes.theme || changes.stroke || changes.fill || changes.name) {\n this.renderIcon();\n }\n }\n\n /** @ignore */\n private renderIcon(): void {\n let iconSVG = this.registry.get(this.name);\n\n if (iconSVG) {\n // Make clip-path and other ID references unique to avoid conflicts with multiple instances\n iconSVG = this.makeIdsUnique(iconSVG);\n this.element.nativeElement.innerHTML = iconSVG;\n this.updateSize();\n this.updateColor();\n this.updateTheme();\n this.updateStroke();\n } else {\n console.warn(`${this.name} is missing from the icon registry`);\n }\n }\n\n /** @ignore */\n private makeIdsUnique(svg: string): string {\n // Find all id definitions and their references, make them unique\n const idRegex = /id=\"([^\"]+)\"/g;\n\n const ids = new Set<string>();\n let match;\n\n // Collect all IDs\n while ((match = idRegex.exec(svg)) !== null) {\n ids.add(match[1]);\n }\n\n // Replace each ID and its references with unique versions\n let result = svg;\n ids.forEach((id) => {\n const uniqueId = `${id}_${this.instanceId}`;\n // Escape special regex characters in the ID\n const escapedId = id.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n result = result.replace(new RegExp(`id=\"${escapedId}\"`, 'g'), `id=\"${uniqueId}\"`);\n result = result.replace(new RegExp(`url\\\\(#${escapedId}\\\\)`, 'g'), `url(#${uniqueId})`);\n // Also update xlink:href and href references (used by flag icons with embedded images)\n result = result.replace(new RegExp(`xlink:href=\"#${escapedId}\"`, 'g'), `xlink:href=\"#${uniqueId}\"`);\n result = result.replace(new RegExp(`href=\"#${escapedId}\"`, 'g'), `href=\"#${uniqueId}\"`);\n });\n\n return result;\n }\n\n /** @ignore */\n private updateSize(): void {\n const size = this.sizes[this.size];\n this.renderer.setStyle(this.element.nativeElement, 'fontSize', size);\n this.renderer.setStyle(this.element.nativeElement, 'width', size);\n this.renderer.setStyle(this.element.nativeElement, 'height', size);\n\n const svgElement = this.getSvgElement();\n if (svgElement) {\n this.renderer.setStyle(svgElement, 'width', size);\n this.renderer.setStyle(svgElement, 'height', size);\n }\n }\n\n /** @ignore */\n private updateColor(): void {\n if (this.color) {\n const svg = this.element.nativeElement.querySelector('svg');\n this.renderer.setStyle(svg, 'fill', `var(${this.color})`);\n }\n }\n\n /** @ignore */\n private updateTheme(): void {\n if (this.theme) {\n const themeColor = this.themes[this.theme];\n if (themeColor) {\n this.renderer.setStyle(this.element.nativeElement, 'color', `var(${themeColor})`);\n } else {\n console.warn(\n `${this.theme} is not a valid ads-icon theme. Valid themes include: 'iconPrimary', 'primary', 'secondary', 'success', 'warn', 'white'`,\n );\n }\n }\n }\n\n /** @ignore */\n private updateStroke(): void {\n if (this.stroke) {\n const strokeColor = this.themes[this.stroke];\n if (strokeColor) {\n this.renderer.setStyle(this.element.nativeElement, 'stroke', `var(${strokeColor})`);\n } else {\n console.warn(\n `${this.stroke} is not a valid ads-icon stroke. Valid strokes include: 'iconPrimary', 'primary', 'secondary', 'success', 'warn', 'white', 'dark-50', 'dark'`,\n );\n }\n }\n }\n\n /** @ignore */\n private getSvgElement(): SVGElement | null {\n return this.element.nativeElement.querySelector('svg');\n }\n}\n","/*\n * Public API Surface of ads-icons\n */\n\nexport * from './lib/ads-icon-registry.service';\nexport * from './lib/ads-icon.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.AdsIconRegistry"],"mappings":";;;MAMa,eAAe,CAAA;AAH5B,IAAA,WAAA,GAAA;AAIU,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,GAAG,EAAkB;AAiB7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ACxD;8GAlLW,gBAAgB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAAA,eAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,SAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,mLAJjB,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,0ZAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,CAAA,CAAA;;2FAID,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,EAAA,QAAA,EACV,EAAE,EAAA,eAAA,EAEK,uBAAuB,CAAC,KAAK,EAAA,MAAA,EAAA,CAAA,0ZAAA,CAAA,EAAA;;sBAM7C;;sBAIA;;sBAIA;;sBAKA;;sBAIA;;;ACrEH;;AAEG;;ACFH;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ascentgl/ads-icons",
3
- "version": "21.25.0",
3
+ "version": "22.0.0",
4
4
  "description": "This library was generated with [Nx](https://nx.dev).",
5
5
  "main": "jest.config.js",
6
6
  "author": "Sergii Sichkar",
@@ -21,6 +21,7 @@
21
21
  }
22
22
  },
23
23
  "sideEffects": false,
24
+ "type": "module",
24
25
  "dependencies": {
25
26
  "tslib": "^2.3.0"
26
27
  }
@@ -89,14 +89,8 @@ declare class AdsIconComponent implements OnInit, OnChanges {
89
89
  /** @ignore */
90
90
  private getSvgElement;
91
91
  static ɵfac: i0.ɵɵFactoryDeclaration<AdsIconComponent, never>;
92
- static ɵcmp: i0.ɵɵComponentDeclaration<AdsIconComponent, "ads-icon", never, { "size": { "alias": "size"; "required": false; }; "name": { "alias": "name"; "required": false; }; "color": { "alias": "color"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "stroke": { "alias": "stroke"; "required": false; }; }, {}, never, never, false, never>;
92
+ static ɵcmp: i0.ɵɵComponentDeclaration<AdsIconComponent, "ads-icon", never, { "size": { "alias": "size"; "required": false; }; "name": { "alias": "name"; "required": false; }; "color": { "alias": "color"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "stroke": { "alias": "stroke"; "required": false; }; }, {}, never, never, true, never>;
93
93
  }
94
94
 
95
- declare class AdsIconModule {
96
- static ɵfac: i0.ɵɵFactoryDeclaration<AdsIconModule, never>;
97
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdsIconModule, [typeof AdsIconComponent], never, [typeof AdsIconComponent]>;
98
- static ɵinj: i0.ɵɵInjectorDeclaration<AdsIconModule>;
99
- }
100
-
101
- export { AdsIconComponent, AdsIconModule, AdsIconRegistry };
95
+ export { AdsIconComponent, AdsIconRegistry };
102
96
  export type { IconThemes };