@updevs/icons 1.0.9 → 1.0.11
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 +3073 -0
- package/esm2022/assets/hero-icons/icons.type.mjs +2 -0
- package/esm2022/assets/tabler-icons/icons.mjs +3 -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 +42 -0
- package/esm2022/lib/icon/hero-icon/hero-icon.component.mjs +46 -0
- package/esm2022/lib/icon/icon/icon.component.mjs +74 -0
- package/esm2022/lib/icon/models/content-icon.model.mjs +2 -0
- package/esm2022/lib/icon/models/icon.model.mjs +2 -0
- package/esm2022/lib/icon/tabler-icon/tabler-icon.component.mjs +61 -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/icon/types/weight.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/fesm2022/updevs-icons.mjs +3322 -0
- package/fesm2022/updevs-icons.mjs.map +1 -0
- package/lib/icon/base-icon.component.d.ts +19 -0
- package/lib/icon/hero-icon/hero-icon.component.d.ts +14 -0
- package/lib/icon/icon/icon.component.d.ts +30 -0
- package/{src/lib/icon/models/content-icon.model.ts → lib/icon/models/content-icon.model.d.ts} +0 -2
- 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 +15 -0
- package/lib/upd-icons.module.d.ts +10 -0
- package/package.json +27 -14
- package/{src/public-api.ts → public-api.d.ts} +0 -3
- package/.eslintrc.json +0 -43
- package/jest.config.ts +0 -22
- package/ng-package.json +0 -7
- package/project.json +0 -40
- package/src/assets/hero-icons/icons.ts +0 -3075
- package/src/assets/hero-icons/icons.type.ts +0 -2
- package/src/assets/hero-icons/v2.1.5.txt +0 -1
- package/src/assets/tabler-icons/icons.ts +0 -5
- package/src/assets/tabler-icons/icons.type.ts +0 -2
- package/src/assets/tabler-icons/v3.11.0.txt +0 -1
- package/src/lib/icon/base-icon.component.html +0 -3
- package/src/lib/icon/base-icon.component.ts +0 -32
- 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 -45
- package/src/lib/icon/icon/icon.component.html +0 -13
- 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 -60
- 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 -58
- package/src/lib/upd-icons.module.ts +0 -21
- package/src/test-setup.ts +0 -8
- package/tsconfig.json +0 -29
- package/tsconfig.lib.json +0 -18
- package/tsconfig.lib.prod.json +0 -9
- package/tsconfig.spec.json +0 -16
- /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
- /package/{src/lib/icon/types/weight.type.ts → lib/icon/types/weight.type.d.ts} +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
colorClass?: string | undefined;
|
|
8
|
+
removeDefaultClasses?: boolean;
|
|
9
|
+
customClasses?: string;
|
|
10
|
+
icon?: SafeHtml;
|
|
11
|
+
classes: string;
|
|
12
|
+
protected _sanitizer: DomSanitizer;
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
15
|
+
abstract generateIcon(): void;
|
|
16
|
+
abstract updateClasses(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseIconComponent, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseIconComponent, never, never, { "wrapperClasses": { "alias": "wrapperClasses"; "required": false; }; "color": { "alias": "color"; "required": false; }; "colorClass": { "alias": "colorClass"; "required": false; }; "removeDefaultClasses": { "alias": "removeDefaultClasses"; "required": false; }; "customClasses": { "alias": "customClasses"; "required": false; }; }, {}, never, never, false, never>;
|
|
19
|
+
}
|
|
@@ -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,30 @@
|
|
|
1
|
+
import { OnInit, OnChanges } 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 { WeightType } from '../types/weight.type';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class IconComponent implements OnInit, OnChanges {
|
|
11
|
+
model?: IconModel;
|
|
12
|
+
wrapperClasses?: string;
|
|
13
|
+
color?: string | undefined;
|
|
14
|
+
colorClass?: string | undefined;
|
|
15
|
+
removeDefaultClasses?: boolean;
|
|
16
|
+
customClasses?: string;
|
|
17
|
+
tablerIcon?: TablerIconsType;
|
|
18
|
+
tablerIconWeight?: WeightType;
|
|
19
|
+
tablerIconType?: StructureType;
|
|
20
|
+
tablerIconSize?: number;
|
|
21
|
+
heroIcon?: HeroIconsType;
|
|
22
|
+
heroIconSize?: SizeType;
|
|
23
|
+
heroIconType?: StructureType;
|
|
24
|
+
type: IconLibraryType;
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
ngOnChanges(): void;
|
|
27
|
+
private updateDataFromModel;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "upd-icon", never, { "model": { "alias": "model"; "required": false; }; "wrapperClasses": { "alias": "wrapperClasses"; "required": false; }; "color": { "alias": "color"; "required": false; }; "colorClass": { "alias": "colorClass"; "required": false; }; "removeDefaultClasses": { "alias": "removeDefaultClasses"; "required": false; }; "customClasses": { "alias": "customClasses"; "required": false; }; "tablerIcon": { "alias": "tablerIcon"; "required": false; }; "tablerIconWeight": { "alias": "tablerIconWeight"; "required": false; }; "tablerIconType": { "alias": "tablerIconType"; "required": false; }; "tablerIconSize": { "alias": "tablerIconSize"; "required": false; }; "heroIcon": { "alias": "heroIcon"; "required": false; }; "heroIconSize": { "alias": "heroIconSize"; "required": false; }; "heroIconType": { "alias": "heroIconType"; "required": false; }; }, {}, never, never, false, never>;
|
|
30
|
+
}
|
|
@@ -3,7 +3,6 @@ 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
5
|
import { WeightType } from '../types/weight.type';
|
|
6
|
-
|
|
7
6
|
export interface IconModel {
|
|
8
7
|
wrapperClasses?: string;
|
|
9
8
|
color?: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseIconComponent } from '../base-icon.component';
|
|
2
|
+
import { TablerIconsType } from '../../../assets/tabler-icons/icons.type';
|
|
3
|
+
import { StructureType } from '../types/structure.type';
|
|
4
|
+
import { WeightType } from '../types/weight.type';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class TablerIconComponent extends BaseIconComponent {
|
|
7
|
+
name: TablerIconsType;
|
|
8
|
+
type?: StructureType;
|
|
9
|
+
weight?: WeightType;
|
|
10
|
+
size?: number;
|
|
11
|
+
generateIcon(): void;
|
|
12
|
+
updateClasses(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TablerIconComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TablerIconComponent, "upd-tabler-icon", never, { "name": { "alias": "name"; "required": false; }; "type": { "alias": "type"; "required": false; }; "weight": { "alias": "weight"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
@@ -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,16 +1,29 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
"name": "@updevs/icons",
|
|
3
|
+
"version": "1.0.11",
|
|
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"
|
|
8
21
|
},
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
}
|
|
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/.eslintrc.json
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": ["../../.eslintrc.json"],
|
|
3
|
-
"ignorePatterns": ["!**/*"],
|
|
4
|
-
"overrides": [
|
|
5
|
-
{
|
|
6
|
-
"files": ["*.ts"],
|
|
7
|
-
"extends": [
|
|
8
|
-
"plugin:@nx/angular",
|
|
9
|
-
"plugin:@angular-eslint/template/process-inline-templates"
|
|
10
|
-
],
|
|
11
|
-
"rules": {
|
|
12
|
-
"@angular-eslint/directive-selector": [
|
|
13
|
-
"error",
|
|
14
|
-
{
|
|
15
|
-
"type": "attribute",
|
|
16
|
-
"prefix": "upd",
|
|
17
|
-
"style": "camelCase"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"@angular-eslint/component-selector": [
|
|
21
|
-
"error",
|
|
22
|
-
{
|
|
23
|
-
"type": "element",
|
|
24
|
-
"prefix": "upd",
|
|
25
|
-
"style": "kebab-case"
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"files": ["*.html"],
|
|
32
|
-
"extends": ["plugin:@nx/angular-template"],
|
|
33
|
-
"rules": {}
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"files": ["*.json"],
|
|
37
|
-
"parser": "jsonc-eslint-parser",
|
|
38
|
-
"rules": {
|
|
39
|
-
"@nx/dependency-checks": "error"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
]
|
|
43
|
-
}
|
package/jest.config.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
export default {
|
|
3
|
-
displayName: 'icons',
|
|
4
|
-
preset: '../../jest.preset.js',
|
|
5
|
-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
|
|
6
|
-
coverageDirectory: '../../coverage/libs/icons',
|
|
7
|
-
transform: {
|
|
8
|
-
'^.+\\.(ts|mjs|js|html)$': [
|
|
9
|
-
'jest-preset-angular',
|
|
10
|
-
{
|
|
11
|
-
tsconfig: '<rootDir>/tsconfig.spec.json',
|
|
12
|
-
stringifyContentPathRegex: '\\.(html|svg)$',
|
|
13
|
-
},
|
|
14
|
-
],
|
|
15
|
-
},
|
|
16
|
-
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
|
|
17
|
-
snapshotSerializers: [
|
|
18
|
-
'jest-preset-angular/build/serializers/no-ng-attributes',
|
|
19
|
-
'jest-preset-angular/build/serializers/ng-snapshot',
|
|
20
|
-
'jest-preset-angular/build/serializers/html-comment',
|
|
21
|
-
],
|
|
22
|
-
};
|
package/ng-package.json
DELETED
package/project.json
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "icons",
|
|
3
|
-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
-
"sourceRoot": "libs/icons/src",
|
|
5
|
-
"prefix": "upd",
|
|
6
|
-
"projectType": "library",
|
|
7
|
-
"tags": [],
|
|
8
|
-
"targets": {
|
|
9
|
-
"build": {
|
|
10
|
-
"executor": "@nx/angular:package",
|
|
11
|
-
"outputs": [
|
|
12
|
-
"{workspaceRoot}/dist/{projectRoot}"
|
|
13
|
-
],
|
|
14
|
-
"options": {
|
|
15
|
-
"project": "libs/icons/ng-package.json"
|
|
16
|
-
},
|
|
17
|
-
"configurations": {
|
|
18
|
-
"production": {
|
|
19
|
-
"tsConfig": "libs/icons/tsconfig.lib.prod.json"
|
|
20
|
-
},
|
|
21
|
-
"development": {
|
|
22
|
-
"tsConfig": "libs/icons/tsconfig.lib.json"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"defaultConfiguration": "production"
|
|
26
|
-
},
|
|
27
|
-
"test": {
|
|
28
|
-
"executor": "@nx/jest:jest",
|
|
29
|
-
"outputs": [
|
|
30
|
-
"{workspaceRoot}/coverage/{projectRoot}"
|
|
31
|
-
],
|
|
32
|
-
"options": {
|
|
33
|
-
"jestConfig": "libs/icons/jest.config.ts"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"lint": {
|
|
37
|
-
"executor": "@nx/eslint:lint"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|