@rxap/icon 21.0.1-dev.1 → 22.0.0-dev.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/CHANGELOG.md +10 -0
- package/compodoc/changelog.html +7 -0
- package/compodoc/dependencies.html +6 -6
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +13 -13
- package/docs/html/classes/IconLoaderService.html +3 -3
- package/docs/html/functions/DefaultIconSvgFilePath.html +1 -1
- package/docs/html/functions/LoadIconSetsFactory.html +1 -1
- package/docs/html/functions/ProvideIconAssetPath.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/variables/RXAP_ICON_ASSET_PATH.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/IconLoaderService.md +3 -3
- package/docs/markdown/functions/DefaultIconSvgFilePath.md +2 -2
- package/docs/markdown/functions/LoadIconSetsFactory.md +2 -2
- package/docs/markdown/functions/ProvideIconAssetPath.md +2 -2
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/variables/RXAP_ICON_ASSET_PATH.md +2 -2
- package/docs/wiki/Class.IconLoaderService.md +2 -2
- package/docs/wiki/Function.DefaultIconSvgFilePath.md +1 -1
- package/docs/wiki/Function.LoadIconSetsFactory.md +1 -1
- package/docs/wiki/Function.ProvideIconAssetPath.md +1 -1
- package/docs/wiki/Variable.RXAP_ICON_ASSET_PATH.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-icon.mjs +72 -79
- package/fesm2022/rxap-icon.mjs.map +1 -1
- package/package.json +14 -14
- package/types/rxap-icon.d.ts +18 -20
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/icon
|
|
1
|
+
[**@rxap/icon v22.0.0-dev.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **DefaultIconSvgFilePath**(): `string`
|
|
10
10
|
|
|
11
|
-
Defined in: [tokens.ts:3](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [tokens.ts:3](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/icon/src/lib/tokens.ts#L3)
|
|
12
12
|
|
|
13
13
|
## Returns
|
|
14
14
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/icon
|
|
1
|
+
[**@rxap/icon v22.0.0-dev.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **LoadIconSetsFactory**(`matIconRegistry`, `domSanitizer`, `pathList`): () => `void`
|
|
10
10
|
|
|
11
|
-
Defined in: [provide-icon-asset-path.ts:7](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [provide-icon-asset-path.ts:7](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/icon/src/lib/provide-icon-asset-path.ts#L7)
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/icon
|
|
1
|
+
[**@rxap/icon v22.0.0-dev.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **ProvideIconAssetPath**(`pathList`): `StaticProvider`
|
|
10
10
|
|
|
11
|
-
Defined in: [provide-icon-asset-path.ts:26](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [provide-icon-asset-path.ts:26](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/icon/src/lib/provide-icon-asset-path.ts#L26)
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
package/docs/markdown/globals.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/icon
|
|
1
|
+
[**@rxap/icon v22.0.0-dev.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
|
|
9
9
|
> `const` **RXAP\_ICON\_ASSET\_PATH**: `InjectionToken`\<`string`\>
|
|
10
10
|
|
|
11
|
-
Defined in: [tokens.ts:7](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [tokens.ts:7](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/icon/src/lib/tokens.ts#L7)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: ~~IconLoaderService~~
|
|
4
4
|
|
|
5
|
-
Defined in: [icon-loader.service.ts:15](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [icon-loader.service.ts:15](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/icon/src/lib/icon-loader.service.ts#L15)
|
|
6
6
|
|
|
7
7
|
## Deprecated
|
|
8
8
|
|
|
@@ -24,7 +24,7 @@ use the ProvideIconAssetPath function in the app.config.ts file
|
|
|
24
24
|
|
|
25
25
|
> **load**(): `void`
|
|
26
26
|
|
|
27
|
-
Defined in: [icon-loader.service.ts:21](https://gitlab.com/rxap/packages/-/blob/
|
|
27
|
+
Defined in: [icon-loader.service.ts:21](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/icon/src/lib/icon-loader.service.ts#L21)
|
|
28
28
|
|
|
29
29
|
#### Returns
|
|
30
30
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **DefaultIconSvgFilePath**(): `string`
|
|
6
6
|
|
|
7
|
-
Defined in: [tokens.ts:3](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [tokens.ts:3](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/icon/src/lib/tokens.ts#L3)
|
|
8
8
|
|
|
9
9
|
## Returns
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **LoadIconSetsFactory**(`matIconRegistry`, `domSanitizer`, `pathList`): () => `void`
|
|
6
6
|
|
|
7
|
-
Defined in: [provide-icon-asset-path.ts:7](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [provide-icon-asset-path.ts:7](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/icon/src/lib/provide-icon-asset-path.ts#L7)
|
|
8
8
|
|
|
9
9
|
## Parameters
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **ProvideIconAssetPath**(`pathList`): `StaticProvider`
|
|
6
6
|
|
|
7
|
-
Defined in: [provide-icon-asset-path.ts:26](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [provide-icon-asset-path.ts:26](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/icon/src/lib/provide-icon-asset-path.ts#L26)
|
|
8
8
|
|
|
9
9
|
## Parameters
|
|
10
10
|
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_ICON\_ASSET\_PATH**: `InjectionToken`\<`string`\>
|
|
6
6
|
|
|
7
|
-
Defined in: [tokens.ts:7](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [tokens.ts:7](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/icon/src/lib/tokens.ts#L7)
|
package/docs/wiki/globals.md
CHANGED
package/fesm2022/rxap-icon.mjs
CHANGED
|
@@ -1,86 +1,79 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import { InjectionToken, inject, isDevMode,
|
|
3
|
-
import { MatIconRegistry } from
|
|
4
|
-
import { DomSanitizer } from
|
|
5
|
-
import { coerceArray } from
|
|
6
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Injectable, InjectionToken, inject, isDevMode, provideAppInitializer } from "@angular/core";
|
|
3
|
+
import { MatIconRegistry } from "@angular/material/icon";
|
|
4
|
+
import { DomSanitizer } from "@angular/platform-browser";
|
|
5
|
+
import { coerceArray } from "@rxap/utilities";
|
|
7
6
|
function DefaultIconSvgFilePath() {
|
|
8
|
-
|
|
7
|
+
return "mdi.svg";
|
|
9
8
|
}
|
|
10
|
-
const RXAP_ICON_ASSET_PATH = new InjectionToken(
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
const RXAP_ICON_ASSET_PATH = new InjectionToken("rxap/icon/asset-path", {
|
|
10
|
+
providedIn: "root",
|
|
11
|
+
factory: DefaultIconSvgFilePath
|
|
12
|
+
});
|
|
13
|
+
var IconLoaderService = class IconLoaderService {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.matIconRegistry = inject(MatIconRegistry);
|
|
16
|
+
this.domSanitizer = inject(DomSanitizer);
|
|
17
|
+
this.pathList = inject(RXAP_ICON_ASSET_PATH);
|
|
18
|
+
}
|
|
19
|
+
load() {
|
|
20
|
+
const pathList = coerceArray(this.pathList);
|
|
21
|
+
if (isDevMode()) console.debug(`load icon sets from path [ ${pathList.join(", ")} ]`);
|
|
22
|
+
for (const path of pathList) try {
|
|
23
|
+
this.matIconRegistry.addSvgIconSet(this.domSanitizer.bypassSecurityTrustResourceUrl(path));
|
|
24
|
+
} catch (e) {
|
|
25
|
+
console.error(`Could not load icon set from path ${path}`, e.message);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
static {
|
|
29
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
30
|
+
minVersion: "12.0.0",
|
|
31
|
+
version: "22.3.0",
|
|
32
|
+
ngImport: i0,
|
|
33
|
+
type: IconLoaderService,
|
|
34
|
+
deps: [],
|
|
35
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
static {
|
|
39
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
40
|
+
minVersion: "12.0.0",
|
|
41
|
+
version: "22.3.0",
|
|
42
|
+
ngImport: i0,
|
|
43
|
+
type: IconLoaderService,
|
|
44
|
+
providedIn: "root"
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
49
|
+
minVersion: "12.0.0",
|
|
50
|
+
version: "22.3.0",
|
|
51
|
+
ngImport: i0,
|
|
52
|
+
type: IconLoaderService,
|
|
53
|
+
decorators: [{
|
|
54
|
+
type: Injectable,
|
|
55
|
+
args: [{ providedIn: "root" }]
|
|
56
|
+
}]
|
|
13
57
|
});
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated use the ProvideIconAssetPath function in the app.config.ts file
|
|
17
|
-
*/
|
|
18
|
-
class IconLoaderService {
|
|
19
|
-
constructor() {
|
|
20
|
-
this.matIconRegistry = inject(MatIconRegistry);
|
|
21
|
-
this.domSanitizer = inject(DomSanitizer);
|
|
22
|
-
this.pathList = inject(RXAP_ICON_ASSET_PATH);
|
|
23
|
-
}
|
|
24
|
-
load() {
|
|
25
|
-
const pathList = coerceArray(this.pathList);
|
|
26
|
-
if (isDevMode()) {
|
|
27
|
-
console.debug(`load icon sets from path [ ${pathList.join(', ')} ]`);
|
|
28
|
-
}
|
|
29
|
-
for (const path of pathList) {
|
|
30
|
-
try {
|
|
31
|
-
this.matIconRegistry.addSvgIconSet(this.domSanitizer.bypassSecurityTrustResourceUrl(path));
|
|
32
|
-
}
|
|
33
|
-
catch (e) {
|
|
34
|
-
console.error(`Could not load icon set from path ${path}`, e.message);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: IconLoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
39
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: IconLoaderService, providedIn: 'root' }); }
|
|
40
|
-
}
|
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: IconLoaderService, decorators: [{
|
|
42
|
-
type: Injectable,
|
|
43
|
-
args: [{ providedIn: 'root' }]
|
|
44
|
-
}] });
|
|
45
|
-
|
|
46
58
|
function LoadIconSetsFactory(matIconRegistry, domSanitizer, pathList) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
catch (e) {
|
|
57
|
-
console.error(`Could not load icon set from path ${path}`, e.message);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
};
|
|
59
|
+
return () => {
|
|
60
|
+
pathList = coerceArray(pathList);
|
|
61
|
+
if (isDevMode()) console.debug(`load icon sets from path [${pathList.join(", ")}]`);
|
|
62
|
+
for (const path of pathList) try {
|
|
63
|
+
matIconRegistry.addSvgIconSet(domSanitizer.bypassSecurityTrustResourceUrl(path));
|
|
64
|
+
} catch (e) {
|
|
65
|
+
console.error(`Could not load icon set from path ${path}`, e.message);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
61
68
|
}
|
|
62
|
-
function ProvideIconAssetPath(pathList = [
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
return initializerFn();
|
|
70
|
-
}),
|
|
71
|
-
{
|
|
72
|
-
provide: RXAP_ICON_ASSET_PATH,
|
|
73
|
-
useValue: pathList,
|
|
74
|
-
},
|
|
75
|
-
];
|
|
69
|
+
function ProvideIconAssetPath(pathList = ["mdi.svg", "custom.svg"]) {
|
|
70
|
+
return [provideAppInitializer(() => {
|
|
71
|
+
return LoadIconSetsFactory(inject(MatIconRegistry), inject(DomSanitizer), inject(RXAP_ICON_ASSET_PATH))();
|
|
72
|
+
}), {
|
|
73
|
+
provide: RXAP_ICON_ASSET_PATH,
|
|
74
|
+
useValue: pathList
|
|
75
|
+
}];
|
|
76
76
|
}
|
|
77
|
-
|
|
78
|
-
// region
|
|
79
|
-
// endregion
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Generated bundle index. Do not edit.
|
|
83
|
-
*/
|
|
84
|
-
|
|
85
77
|
export { DefaultIconSvgFilePath, IconLoaderService, LoadIconSetsFactory, ProvideIconAssetPath, RXAP_ICON_ASSET_PATH };
|
|
86
|
-
|
|
78
|
+
|
|
79
|
+
//# sourceMappingURL=rxap-icon.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rxap-icon.mjs","sources":["../../../../../packages/angular/icon/src/lib/tokens.ts","../../../../../packages/angular/icon/src/lib/icon-loader.service.ts","../../../../../packages/angular/icon/src/lib/provide-icon-asset-path.ts"
|
|
1
|
+
{"version":3,"file":"rxap-icon.mjs","names":[],"sources":["../../../../../packages/angular/icon/src/lib/tokens.ts","../../../../../packages/angular/icon/src/lib/icon-loader.service.ts","../../../../../packages/angular/icon/src/lib/provide-icon-asset-path.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport function DefaultIconSvgFilePath() {\n return 'mdi.svg';\n}\n\nexport const RXAP_ICON_ASSET_PATH = new InjectionToken('rxap/icon/asset-path', {\n providedIn: 'root',\n factory: DefaultIconSvgFilePath,\n});\n","import {\n inject,\n Injectable,\n isDevMode,\n} from '@angular/core';\nimport { MatIconRegistry } from '@angular/material/icon';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { coerceArray } from '@rxap/utilities';\nimport { RXAP_ICON_ASSET_PATH } from './tokens';\n\n/**\n * @deprecated use the ProvideIconAssetPath function in the app.config.ts file\n */\n@Injectable({ providedIn: 'root' })\nexport class IconLoaderService {\n\n private readonly matIconRegistry = inject(MatIconRegistry);\n private readonly domSanitizer = inject(DomSanitizer);\n private readonly pathList: string | string[] = inject(RXAP_ICON_ASSET_PATH);\n\n public load() {\n const pathList = coerceArray(this.pathList);\n if (isDevMode()) {\n console.debug(`load icon sets from path [ ${ pathList.join(', ') } ]`);\n }\n for (const path of pathList) {\n try {\n this.matIconRegistry.addSvgIconSet(this.domSanitizer.bypassSecurityTrustResourceUrl(path));\n } catch (e: any) {\n console.error(`Could not load icon set from path ${ path }`, e.message);\n }\n }\n }\n\n}\n","import { isDevMode, StaticProvider, inject, provideAppInitializer } from '@angular/core';\nimport { MatIconRegistry } from '@angular/material/icon';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { coerceArray } from '@rxap/utilities';\nimport { RXAP_ICON_ASSET_PATH } from './tokens';\n\nexport function LoadIconSetsFactory(\n matIconRegistry: MatIconRegistry, domSanitizer: DomSanitizer, pathList: string | string[],\n): () => void {\n return () => {\n pathList = coerceArray(pathList);\n\n if (isDevMode()) {\n console.debug(`load icon sets from path [${ pathList.join(', ') }]`);\n }\n for (const path of pathList) {\n try {\n matIconRegistry.addSvgIconSet(domSanitizer.bypassSecurityTrustResourceUrl(path));\n } catch (e: any) {\n console.error(`Could not load icon set from path ${ path }`, e.message);\n }\n }\n };\n}\n\nexport function ProvideIconAssetPath(pathList: string[] = [\n 'mdi.svg',\n 'custom.svg',\n]): StaticProvider {\n return [\n provideAppInitializer(() => {\n const initializerFn = (LoadIconSetsFactory)(inject(MatIconRegistry), inject(DomSanitizer), inject(RXAP_ICON_ASSET_PATH));\n return initializerFn();\n }),\n {\n provide: RXAP_ICON_ASSET_PATH,\n useValue: pathList,\n },\n ];\n}\n"],"mappings":";;;;;AAEA,SAAgB,yBAAsB;CACpC,OAAO;AACT;AAEA,MAAa,uBAAuB,IAAI,eAAe,wBAAwB;CAC7E,YAAY;CACZ,SAAS;AACV,CAAA;ACKD,IAAa,oBAAb,MAAa,kBAAiB;CAD9B,cAAA;EAGmB,KAAA,kBAAkB,OAAO,eAAe;EACxC,KAAA,eAAe,OAAO,YAAY;EAClC,KAAA,WAA8B,OAAO,oBAAoB;CAgB3E;CAdQ,OAAI;EACT,MAAM,WAAW,YAAY,KAAK,QAAQ;EAC1C,IAAI,UAAS,GACX,QAAQ,MAAM,8BAA+B,SAAS,KAAK,IAAI,EAAE,GAAI;EAEvE,KAAK,MAAM,QAAQ,UACjB,IAAI;GACF,KAAK,gBAAgB,cAAc,KAAK,aAAa,+BAA+B,IAAI,CAAC;EAC3F,SAAS,GAAQ;GACf,QAAQ,MAAM,qCAAsC,QAAS,EAAE,OAAO;EACxE;CAEJ;CAlBW;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAiB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAjB;EAAA,KAAA,QAAA,GAAA,sBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAiB,YADJ;EAAM,CAAA;CAAA;;AACnB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAiB,YAAA,CAAA;EAD7B,MAAA;EAAW,MAAA,CAAA,EAAE,YAAY,OAAM,CAAE;;;ACPlC,SAAgB,oBACd,iBAAkC,cAA4B,UAA2B;CAEzF,aAAY;EACV,WAAW,YAAY,QAAQ;EAE/B,IAAI,UAAS,GACX,QAAQ,MAAM,6BAA8B,SAAS,KAAK,IAAI,EAAE,EAAG;EAErE,KAAK,MAAM,QAAQ,UACjB,IAAI;GACF,gBAAgB,cAAc,aAAa,+BAA+B,IAAI,CAAC;EACjF,SAAS,GAAQ;GACf,QAAQ,MAAM,qCAAsC,QAAS,EAAE,OAAO;EACxE;CAEJ;AACF;AAEA,SAAgB,qBAAqB,WAAqB,CACxD,WACA,YACD,GAAA;CACC,OAAO,CACL,4BAA2B;EAEvB,OADuB,oBAAqB,OAAO,eAAe,GAAG,OAAO,YAAY,GAAG,OAAO,oBAAoB,CAC/G,CAAA,CAAa;CACtB,CAAC,GACH;EACE,SAAS;EACT,UAAU;CACX,CACF;AACH"}
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "22.0.0-dev.0",
|
|
3
3
|
"name": "@rxap/icon",
|
|
4
4
|
"description": "This package provides an Angular module to load SVG icons from specified asset paths using the Angular Material Icon Registry. It simplifies the process of registering and using custom icons in Angular applications. The module allows configuring the icon asset paths and automatically loads the icon sets during initialization.\n",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@nx/devkit": "
|
|
7
|
+
"@nx/devkit": "24.0.6",
|
|
8
8
|
"tslib": "2.6.2"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@angular/common": "^
|
|
12
|
-
"@angular/core": "^
|
|
13
|
-
"@angular/material": "^
|
|
14
|
-
"@angular/platform-browser": "^
|
|
15
|
-
"@rxap/utilities": "^16.5.2
|
|
11
|
+
"@angular/common": "^22.3.0",
|
|
12
|
+
"@angular/core": "^22.3.0",
|
|
13
|
+
"@angular/material": "^22.3.0",
|
|
14
|
+
"@angular/platform-browser": "^22.3.0",
|
|
15
|
+
"@rxap/utilities": "^16.5.2"
|
|
16
16
|
},
|
|
17
17
|
"author": {
|
|
18
18
|
"name": "Merzough Münker",
|
|
@@ -37,31 +37,31 @@
|
|
|
37
37
|
"packageGroup": [
|
|
38
38
|
{
|
|
39
39
|
"package": "@angular/cdk",
|
|
40
|
-
"version": "
|
|
40
|
+
"version": "22.3.0"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"package": "@angular/common",
|
|
44
|
-
"version": "
|
|
44
|
+
"version": "22.3.0"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"package": "@angular/core",
|
|
48
|
-
"version": "
|
|
48
|
+
"version": "22.3.0"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"package": "@angular/forms",
|
|
52
|
-
"version": "
|
|
52
|
+
"version": "22.3.0"
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"package": "@angular/material",
|
|
56
|
-
"version": "
|
|
56
|
+
"version": "22.3.0"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
"package": "@angular/platform-browser",
|
|
60
|
-
"version": "
|
|
60
|
+
"version": "22.3.0"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"package": "@rxap/utilities",
|
|
64
|
-
"version": "16.5.2
|
|
64
|
+
"version": "16.5.2"
|
|
65
65
|
}
|
|
66
66
|
]
|
|
67
67
|
},
|
package/types/rxap-icon.d.ts
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import { InjectionToken, StaticProvider } from "@angular/core";
|
|
6
|
+
import { MatIconRegistry } from "@angular/material/icon";
|
|
7
|
+
import { DomSanitizer } from "@angular/platform-browser";
|
|
6
8
|
/**
|
|
7
9
|
* @deprecated use the ProvideIconAssetPath function in the app.config.ts file
|
|
8
10
|
*/
|
|
9
|
-
declare class IconLoaderService {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
export declare class IconLoaderService {
|
|
12
|
+
private readonly matIconRegistry;
|
|
13
|
+
private readonly domSanitizer;
|
|
14
|
+
private readonly pathList;
|
|
15
|
+
load(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconLoaderService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
16
18
|
}
|
|
17
|
-
|
|
18
|
-
declare function
|
|
19
|
-
declare function
|
|
20
|
-
|
|
21
|
-
declare function DefaultIconSvgFilePath(): string;
|
|
22
|
-
declare const RXAP_ICON_ASSET_PATH: InjectionToken<string>;
|
|
23
|
-
|
|
24
|
-
export { DefaultIconSvgFilePath, IconLoaderService, LoadIconSetsFactory, ProvideIconAssetPath, RXAP_ICON_ASSET_PATH };
|
|
19
|
+
export declare function LoadIconSetsFactory(matIconRegistry: MatIconRegistry, domSanitizer: DomSanitizer, pathList: string | string[]): () => void;
|
|
20
|
+
export declare function ProvideIconAssetPath(pathList?: string[]): StaticProvider;
|
|
21
|
+
export declare function DefaultIconSvgFilePath(): string;
|
|
22
|
+
export declare const RXAP_ICON_ASSET_PATH: InjectionToken<string>;
|