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.
- package/esm2022/lib/custom-icon/custom-icon-registry.service.mjs +23 -0
- package/esm2022/lib/custom-icon/custom-icon.component.mjs +24 -0
- package/esm2022/lib/custom-icon/custom-icon.module.mjs +20 -0
- package/esm2022/lib/custom-icon/custom-icons.registry.mjs +21 -0
- package/esm2022/lib/techlify-icon/techlify-icon.component.mjs +11 -4
- package/esm2022/lib/techlify-icon/techlify-icon.module.mjs +7 -3
- package/esm2022/public-api.mjs +5 -2
- package/fesm2022/ngx-techlify-core.mjs +95 -9
- package/fesm2022/ngx-techlify-core.mjs.map +1 -1
- package/lib/custom-icon/custom-icon-registry.service.d.ts +10 -0
- package/lib/custom-icon/custom-icon.component.d.ts +11 -0
- package/lib/custom-icon/custom-icon.module.d.ts +8 -0
- package/lib/custom-icon/custom-icons.registry.d.ts +4 -0
- package/lib/techlify-icon/techlify-icon.component.d.ts +2 -0
- package/lib/techlify-icon/techlify-icon.module.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -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
|
+
}
|
|
@@ -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
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';
|