ngx-techlify-core 18.25.0 → 18.26.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.
@@ -0,0 +1,10 @@
1
+ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CustomIconRegistryService {
4
+ private sanitizer;
5
+ private icons;
6
+ constructor(sanitizer: DomSanitizer);
7
+ getIcon(name: string): SafeHtml | undefined;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomIconRegistryService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<CustomIconRegistryService>;
10
+ }
@@ -0,0 +1,11 @@
1
+ import { CustomIconRegistryService } from './custom-icon-registry.service';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CustomIconComponent {
4
+ private registry;
5
+ name: string;
6
+ svgIcon: any;
7
+ constructor(registry: CustomIconRegistryService);
8
+ ngOnChanges(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomIconComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomIconComponent, "app-custom-icon", never, { "name": { "alias": "name"; "required": false; }; }, {}, never, never, false, never>;
11
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./custom-icon.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class CustomIconModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomIconModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CustomIconModule, [typeof i1.CustomIconComponent], [typeof i2.CommonModule], [typeof i1.CustomIconComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<CustomIconModule>;
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Registry file to maintain the custom icons SVGs
3
+ */
4
+ export declare const CUSTOM_ICONS: Record<string, string>;
@@ -3,6 +3,8 @@ export declare class TechlifyIconComponent {
3
3
  name: string;
4
4
  size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
5
  get iconClass(): string[];
6
+ customIconList: string[];
7
+ isCustomIcon(name: string): boolean;
6
8
  private iconMap;
7
9
  private sizeMap;
8
10
  static ɵfac: i0.ɵɵFactoryDeclaration<TechlifyIconComponent, never>;
@@ -1,8 +1,9 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./techlify-icon.component";
3
3
  import * as i2 from "@angular/common";
4
+ import * as i3 from "../custom-icon/custom-icon.module";
4
5
  export declare class TechlifyIconModule {
5
6
  static ɵfac: i0.ɵɵFactoryDeclaration<TechlifyIconModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<TechlifyIconModule, [typeof i1.TechlifyIconComponent], [typeof i2.CommonModule], [typeof i1.TechlifyIconComponent]>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TechlifyIconModule, [typeof i1.TechlifyIconComponent], [typeof i2.CommonModule, typeof i3.CustomIconModule], [typeof i1.TechlifyIconComponent]>;
7
8
  static ɵinj: i0.ɵɵInjectorDeclaration<TechlifyIconModule>;
8
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-techlify-core",
3
- "version": "18.25.0",
3
+ "version": "18.26.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18",
6
6
  "@angular/core": ">=18",
package/public-api.d.ts CHANGED
@@ -149,3 +149,5 @@ export * from './lib/techlify-icon/techlify-icon.module';
149
149
  export * from './lib/techlify-icon/techlify-icon.component';
150
150
  export * from './lib/pdf-button/pdf-button.module';
151
151
  export * from './lib/pdf-button/pdf-button.component';
152
+ export * from './lib/custom-icon/custom-icon.module';
153
+ export * from './lib/custom-icon/custom-icon.component';