@updevs/icons 1.0.4 → 1.0.8
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/assets/hero-icons/icons.d.ts +4 -0
- package/assets/hero-icons/icons.type.d.ts +1 -0
- package/assets/tabler-icons/icons.d.ts +4 -0
- package/assets/tabler-icons/icons.type.d.ts +1 -0
- package/esm2022/assets/hero-icons/icons.mjs +4307 -0
- package/esm2022/assets/hero-icons/icons.type.mjs +2 -0
- package/esm2022/assets/tabler-icons/icons.mjs +58115 -0
- package/esm2022/assets/tabler-icons/icons.type.mjs +2 -0
- package/esm2022/index.mjs +2 -0
- package/esm2022/lib/icon/base-icon.component.mjs +40 -0
- package/esm2022/lib/icon/hero-icon/hero-icon.component.mjs +50 -0
- package/esm2022/lib/icon/icon/icon.component.mjs +59 -0
- package/esm2022/lib/icon/models/content-icon.model.mjs +6 -0
- package/esm2022/lib/icon/models/icon.model.mjs +2 -0
- package/esm2022/lib/icon/tabler-icon/tabler-icon.component.mjs +31 -0
- package/esm2022/lib/icon/types/icon-library.type.mjs +2 -0
- package/esm2022/lib/icon/types/size.type.mjs +2 -0
- package/esm2022/lib/icon/types/structure.type.mjs +2 -0
- package/esm2022/lib/upd-icons.module.mjs +30 -0
- package/esm2022/public-api.mjs +12 -0
- package/esm2022/updevs-icons.mjs +5 -0
- package/{src/assets/tabler-icons/icons.ts → fesm2022/updevs-icons.mjs} +12770 -242
- package/fesm2022/updevs-icons.mjs.map +1 -0
- package/lib/icon/base-icon.component.d.ts +18 -0
- package/lib/icon/hero-icon/hero-icon.component.d.ts +14 -0
- package/lib/icon/icon/icon.component.d.ts +25 -0
- package/lib/icon/models/content-icon.model.d.ts +7 -0
- package/{src/lib/icon/models/icon.model.ts → lib/icon/models/icon.model.d.ts} +0 -1
- package/lib/icon/tabler-icon/tabler-icon.component.d.ts +10 -0
- package/lib/upd-icons.module.d.ts +10 -0
- package/package.json +27 -18
- package/{src/public-api.ts → public-api.d.ts} +0 -3
- package/CHANGELOG.md +0 -8
- package/index.ts +0 -1
- package/ng-package.json +0 -7
- package/src/assets/hero-icons/icons.ts +0 -4241
- package/src/assets/hero-icons/icons.type.ts +0 -2
- package/src/assets/hero-icons/v2.0.18.txt +0 -1
- package/src/assets/tabler-icons/icons.type.ts +0 -2
- package/src/assets/tabler-icons/v2.22.0.txt +0 -1
- package/src/lib/icon/base-icon.component.html +0 -1
- package/src/lib/icon/base-icon.component.ts +0 -31
- package/src/lib/icon/hero-icon/hero-icon.component.scss +0 -15
- package/src/lib/icon/hero-icon/hero-icon.component.spec.ts +0 -23
- package/src/lib/icon/hero-icon/hero-icon.component.ts +0 -49
- package/src/lib/icon/icon/icon.component.html +0 -6
- package/src/lib/icon/icon/icon.component.scss +0 -0
- package/src/lib/icon/icon/icon.component.spec.ts +0 -21
- package/src/lib/icon/icon/icon.component.ts +0 -51
- package/src/lib/icon/models/content-icon.model.ts +0 -12
- package/src/lib/icon/tabler-icon/tabler-icon.component.scss +0 -0
- package/src/lib/icon/tabler-icon/tabler-icon.component.spec.ts +0 -21
- package/src/lib/icon/tabler-icon/tabler-icon.component.ts +0 -33
- package/src/lib/upd-icons.module.ts +0 -21
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
- /package/{src/index.ts → index.d.ts} +0 -0
- /package/{src/lib/icon/types/icon-library.type.ts → lib/icon/types/icon-library.type.d.ts} +0 -0
- /package/{src/lib/icon/types/size.type.ts → lib/icon/types/size.type.d.ts} +0 -0
- /package/{src/lib/icon/types/structure.type.ts → lib/icon/types/structure.type.d.ts} +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare abstract class BaseIconComponent implements OnInit, OnChanges {
|
|
5
|
+
wrapperClasses?: string;
|
|
6
|
+
color?: string | undefined;
|
|
7
|
+
removeDefaultClasses?: boolean;
|
|
8
|
+
customClasses?: string;
|
|
9
|
+
icon?: SafeHtml;
|
|
10
|
+
classes: string;
|
|
11
|
+
protected _sanitizer: DomSanitizer;
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
14
|
+
abstract generateIcon(): void;
|
|
15
|
+
abstract updateClasses(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseIconComponent, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseIconComponent, never, never, { "wrapperClasses": { "alias": "wrapperClasses"; "required": false; }; "color": { "alias": "color"; "required": false; }; "removeDefaultClasses": { "alias": "removeDefaultClasses"; "required": false; }; "customClasses": { "alias": "customClasses"; "required": false; }; }, {}, never, never, false, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SizeType } from '../types/size.type';
|
|
2
|
+
import { StructureType } from '../types/structure.type';
|
|
3
|
+
import { BaseIconComponent } from '../base-icon.component';
|
|
4
|
+
import { HeroIconsType } from '../../../assets/hero-icons/icons.type';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class HeroIconComponent extends BaseIconComponent {
|
|
7
|
+
name: HeroIconsType;
|
|
8
|
+
size?: SizeType;
|
|
9
|
+
type?: StructureType;
|
|
10
|
+
generateIcon(): void;
|
|
11
|
+
updateClasses(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeroIconComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeroIconComponent, "upd-hero-icon", never, { "name": { "alias": "name"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, false, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { IconLibraryType } from '../types/icon-library.type';
|
|
3
|
+
import { HeroIconsType } from '../../../assets/hero-icons/icons.type';
|
|
4
|
+
import { TablerIconsType } from '../../../assets/tabler-icons/icons.type';
|
|
5
|
+
import { SizeType } from '../types/size.type';
|
|
6
|
+
import { StructureType } from '../types/structure.type';
|
|
7
|
+
import { IconModel } from '../models/icon.model';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class IconComponent implements OnInit, OnChanges {
|
|
10
|
+
model?: IconModel;
|
|
11
|
+
wrapperClasses?: string;
|
|
12
|
+
color?: string | undefined;
|
|
13
|
+
removeDefaultClasses?: boolean;
|
|
14
|
+
customClasses?: string;
|
|
15
|
+
tablerIcon?: TablerIconsType;
|
|
16
|
+
heroIcon?: HeroIconsType;
|
|
17
|
+
heroIconSize?: SizeType;
|
|
18
|
+
heroIconType?: StructureType;
|
|
19
|
+
type: IconLibraryType;
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
22
|
+
private updateDataFromModel;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "upd-icon", never, { "model": { "alias": "model"; "required": false; }; "wrapperClasses": { "alias": "wrapperClasses"; "required": false; }; "color": { "alias": "color"; "required": false; }; "removeDefaultClasses": { "alias": "removeDefaultClasses"; "required": false; }; "customClasses": { "alias": "customClasses"; "required": false; }; "tablerIcon": { "alias": "tablerIcon"; "required": false; }; "heroIcon": { "alias": "heroIcon"; "required": false; }; "heroIconSize": { "alias": "heroIconSize"; "required": false; }; "heroIconType": { "alias": "heroIconType"; "required": false; }; }, {}, never, never, false, never>;
|
|
25
|
+
}
|
|
@@ -2,7 +2,6 @@ import { TablerIconsType } from '../../../assets/tabler-icons/icons.type';
|
|
|
2
2
|
import { HeroIconsType } from '../../../assets/hero-icons/icons.type';
|
|
3
3
|
import { SizeType } from '../types/size.type';
|
|
4
4
|
import { StructureType } from '../types/structure.type';
|
|
5
|
-
|
|
6
5
|
export interface IconModel {
|
|
7
6
|
tablerIcon?: TablerIconsType;
|
|
8
7
|
heroIcon?: HeroIconsType;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseIconComponent } from '../base-icon.component';
|
|
2
|
+
import { TablerIconsType } from '../../../assets/tabler-icons/icons.type';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TablerIconComponent extends BaseIconComponent {
|
|
5
|
+
name: TablerIconsType;
|
|
6
|
+
generateIcon(): void;
|
|
7
|
+
updateClasses(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TablerIconComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TablerIconComponent, "upd-tabler-icon", never, { "name": { "alias": "name"; "required": false; }; }, {}, never, never, false, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./icon/hero-icon/hero-icon.component";
|
|
3
|
+
import * as i2 from "./icon/tabler-icon/tabler-icon.component";
|
|
4
|
+
import * as i3 from "./icon/icon/icon.component";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
export declare class UpdIconsModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpdIconsModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UpdIconsModule, [typeof i1.HeroIconComponent, typeof i2.TablerIconComponent, typeof i3.IconComponent], [typeof i4.CommonModule], [typeof i3.IconComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UpdIconsModule>;
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
"name": "@updevs/icons",
|
|
3
|
+
"version": "1.0.8",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^18.0.1",
|
|
6
|
+
"@angular/core": "^18.0.1",
|
|
7
|
+
"@angular/platform-browser": "^18.0.1"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"tslib": "^2.3.0"
|
|
11
|
+
},
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"module": "fesm2022/updevs-icons.mjs",
|
|
17
|
+
"typings": "index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
"./package.json": {
|
|
20
|
+
"default": "./package.json"
|
|
6
21
|
},
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"publishConfig": {
|
|
16
|
-
"access": "public"
|
|
17
|
-
},
|
|
18
|
-
"sideEffects": false,
|
|
19
|
-
"gitHead": "fefaa9763a38b9d550479ba3ada524dff43094bf"
|
|
20
|
-
}
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./index.d.ts",
|
|
24
|
+
"esm2022": "./esm2022/updevs-icons.mjs",
|
|
25
|
+
"esm": "./esm2022/updevs-icons.mjs",
|
|
26
|
+
"default": "./fesm2022/updevs-icons.mjs"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
package/CHANGELOG.md
DELETED
package/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/index';
|