@rxap/icon 12.0.6 → 13.0.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,2 @@
1
+ export * from './lib/icon.module';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJzL2ljb24vc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsbUJBQW1CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9pY29uLm1vZHVsZSc7XG4iXX0=
@@ -0,0 +1,49 @@
1
+ import { NgModule, InjectionToken, Inject } from '@angular/core';
2
+ import { HttpClientModule } from '@angular/common/http';
3
+ import { MatIconRegistry } from '@angular/material/icon';
4
+ import { DomSanitizer } from '@angular/platform-browser';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "@angular/material/icon";
7
+ import * as i2 from "@angular/platform-browser";
8
+ export function DefaultIconSvgFilePath() {
9
+ return '/assets/mdi.svg';
10
+ }
11
+ export const RXAP_ICON_ASSET_PATH = new InjectionToken('rxap/icon/asset-path', {
12
+ providedIn: 'root',
13
+ factory: DefaultIconSvgFilePath
14
+ });
15
+ export class IconModule {
16
+ constructor(matIconRegistry, domSanitizer, path) {
17
+ matIconRegistry.addSvgIconSet(domSanitizer.bypassSecurityTrustResourceUrl(path));
18
+ }
19
+ static forRoot(path = DefaultIconSvgFilePath()) {
20
+ return {
21
+ ngModule: IconModule,
22
+ providers: [
23
+ {
24
+ provide: RXAP_ICON_ASSET_PATH,
25
+ useValue: path
26
+ }
27
+ ]
28
+ };
29
+ }
30
+ }
31
+ IconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: IconModule, deps: [{ token: MatIconRegistry }, { token: DomSanitizer }, { token: RXAP_ICON_ASSET_PATH }], target: i0.ɵɵFactoryTarget.NgModule });
32
+ IconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: IconModule, imports: [HttpClientModule] });
33
+ IconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: IconModule, imports: [[HttpClientModule]] });
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: IconModule, decorators: [{
35
+ type: NgModule,
36
+ args: [{
37
+ imports: [HttpClientModule]
38
+ }]
39
+ }], ctorParameters: function () { return [{ type: i1.MatIconRegistry, decorators: [{
40
+ type: Inject,
41
+ args: [MatIconRegistry]
42
+ }] }, { type: i2.DomSanitizer, decorators: [{
43
+ type: Inject,
44
+ args: [DomSanitizer]
45
+ }] }, { type: undefined, decorators: [{
46
+ type: Inject,
47
+ args: [RXAP_ICON_ASSET_PATH]
48
+ }] }]; } });
49
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbi5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2ljb24vc3JjL2xpYi9pY29uLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsUUFBUSxFQUNSLGNBQWMsRUFFZCxNQUFNLEVBQ1AsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDeEQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3pELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQzs7OztBQUV6RCxNQUFNLFVBQVU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9XG5cbiAgY29uc3RydWN0b3IoXG4gICAgQEluamVjdChNYXRJY29uUmVnaXN0cnkpIG1hdEljb25SZWdpc3RyeTogTWF0SWNvblJlZ2lzdHJ5LFxuICAgIEBJbmplY3QoRG9tU2FuaXRpemVyKSBkb21TYW5pdGl6ZXI6IERvbVNhbml0aXplcixcbiAgICBASW5qZWN0KFJYQVBfSUNPTl9BU1NFVF9QQVRIKSBwYXRoOiBzdHJpbmdcbiAgKSB7XG4gICAgbWF0SWNvblJlZ2lzdHJ5LmFkZFN2Z0ljb25TZXQoZG9tU2FuaXRpemVyLmJ5cGFzc1NlY3VyaXR5VHJ1c3RSZXNvdXJjZVVybChwYXRoKSk7XG4gIH1cblxufVxuIl19
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnhhcC1pY29uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vbGlicy9pY29uL3NyYy9yeGFwLWljb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG4iXX0=
@@ -0,0 +1,58 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, NgModule, Inject } from '@angular/core';
3
+ import { HttpClientModule } from '@angular/common/http';
4
+ import * as i1 from '@angular/material/icon';
5
+ import { MatIconRegistry } from '@angular/material/icon';
6
+ import * as i2 from '@angular/platform-browser';
7
+ import { DomSanitizer } from '@angular/platform-browser';
8
+
9
+ function DefaultIconSvgFilePath() {
10
+ return '/assets/mdi.svg';
11
+ }
12
+ const RXAP_ICON_ASSET_PATH = new InjectionToken('rxap/icon/asset-path', {
13
+ providedIn: 'root',
14
+ factory: DefaultIconSvgFilePath
15
+ });
16
+ class IconModule {
17
+ constructor(matIconRegistry, domSanitizer, path) {
18
+ matIconRegistry.addSvgIconSet(domSanitizer.bypassSecurityTrustResourceUrl(path));
19
+ }
20
+ static forRoot(path = DefaultIconSvgFilePath()) {
21
+ return {
22
+ ngModule: IconModule,
23
+ providers: [
24
+ {
25
+ provide: RXAP_ICON_ASSET_PATH,
26
+ useValue: path
27
+ }
28
+ ]
29
+ };
30
+ }
31
+ }
32
+ IconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: IconModule, deps: [{ token: MatIconRegistry }, { token: DomSanitizer }, { token: RXAP_ICON_ASSET_PATH }], target: i0.ɵɵFactoryTarget.NgModule });
33
+ IconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: IconModule, imports: [HttpClientModule] });
34
+ IconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: IconModule, imports: [[HttpClientModule]] });
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: IconModule, decorators: [{
36
+ type: NgModule,
37
+ args: [{
38
+ imports: [HttpClientModule]
39
+ }]
40
+ }], ctorParameters: function () {
41
+ return [{ type: i1.MatIconRegistry, decorators: [{
42
+ type: Inject,
43
+ args: [MatIconRegistry]
44
+ }] }, { type: i2.DomSanitizer, decorators: [{
45
+ type: Inject,
46
+ args: [DomSanitizer]
47
+ }] }, { type: undefined, decorators: [{
48
+ type: Inject,
49
+ args: [RXAP_ICON_ASSET_PATH]
50
+ }] }];
51
+ } });
52
+
53
+ /**
54
+ * Generated bundle index. Do not edit.
55
+ */
56
+
57
+ export { DefaultIconSvgFilePath, IconModule, RXAP_ICON_ASSET_PATH };
58
+ //# sourceMappingURL=rxap-icon.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rxap-icon.mjs","sources":["../../../../libs/icon/src/lib/icon.module.ts","../../../../libs/icon/src/rxap-icon.ts"],"sourcesContent":["import {\n NgModule,\n InjectionToken,\n ModuleWithProviders,\n Inject\n} from '@angular/core';\nimport { HttpClientModule } from '@angular/common/http';\nimport { MatIconRegistry } from '@angular/material/icon';\nimport { DomSanitizer } from '@angular/platform-browser';\n\nexport function DefaultIconSvgFilePath() {\n return '/assets/mdi.svg';\n}\n\nexport const RXAP_ICON_ASSET_PATH = new InjectionToken('rxap/icon/asset-path', {\n providedIn: 'root',\n factory: DefaultIconSvgFilePath\n});\n\n@NgModule({\n imports: [ HttpClientModule ]\n})\nexport class IconModule {\n\n public static forRoot(path: string = DefaultIconSvgFilePath()): ModuleWithProviders<IconModule> {\n return {\n ngModule: IconModule,\n providers: [\n {\n provide: RXAP_ICON_ASSET_PATH,\n useValue: path\n }\n ]\n };\n }\n\n constructor(\n @Inject(MatIconRegistry) matIconRegistry: MatIconRegistry,\n @Inject(DomSanitizer) domSanitizer: DomSanitizer,\n @Inject(RXAP_ICON_ASSET_PATH) path: string\n ) {\n matIconRegistry.addSvgIconSet(domSanitizer.bypassSecurityTrustResourceUrl(path));\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;SAUgB,sBAAsB;IACpC,OAAO,iBAAiB,CAAC;AAC3B,CAAC;MAEY,oBAAoB,GAAG,IAAI,cAAc,CAAC,sBAAsB,EAAE;IAC7E,UAAU,EAAE,MAAM;IAClB,OAAO,EAAK,sBAAsB;CACnC,EAAE;MAKU,UAAU;IAcrB,YAC2B,eAAgC,EACnC,YAA0B,EAClB,IAAY;QAE1C,eAAe,CAAC,aAAa,CAAC,YAAY,CAAC,8BAA8B,CAAC,IAAI,CAAC,CAAC,CAAC;KAClF;IAlBM,OAAO,OAAO,CAAC,OAAe,sBAAsB,EAAE;QAC3D,OAAO;YACL,QAAQ,EAAG,UAAU;YACrB,SAAS,EAAE;gBACT;oBACE,OAAO,EAAG,oBAAoB;oBAC9B,QAAQ,EAAE,IAAI;iBACf;aACF;SACF,CAAC;KACH;;uGAZU,UAAU,kBAeX,eAAe,aACf,YAAY,aACZ,oBAAoB;wGAjBnB,UAAU,YAFV,gBAAgB;wGAEhB,UAAU,YAFZ,CAAE,gBAAgB,CAAE;2FAElB,UAAU;kBAHtB,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAE,gBAAgB,CAAE;iBAC9B;;;8BAgBI,MAAM;+BAAC,eAAe;;8BACtB,MAAM;+BAAC,YAAY;;8BACnB,MAAM;+BAAC,oBAAoB;;;;ACvChC;;;;;;"}
@@ -29,10 +29,10 @@ class IconModule {
29
29
  };
30
30
  }
31
31
  }
32
- IconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: IconModule, deps: [{ token: MatIconRegistry }, { token: DomSanitizer }, { token: RXAP_ICON_ASSET_PATH }], target: i0.ɵɵFactoryTarget.NgModule });
33
- IconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: IconModule, imports: [HttpClientModule] });
34
- IconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: IconModule, imports: [[HttpClientModule]] });
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: IconModule, decorators: [{
32
+ IconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: IconModule, deps: [{ token: MatIconRegistry }, { token: DomSanitizer }, { token: RXAP_ICON_ASSET_PATH }], target: i0.ɵɵFactoryTarget.NgModule });
33
+ IconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: IconModule, imports: [HttpClientModule] });
34
+ IconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: IconModule, imports: [[HttpClientModule]] });
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: IconModule, decorators: [{
36
36
  type: NgModule,
37
37
  args: [{
38
38
  imports: [HttpClientModule]
@@ -53,4 +53,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
53
53
  */
54
54
 
55
55
  export { DefaultIconSvgFilePath, IconModule, RXAP_ICON_ASSET_PATH };
56
- //# sourceMappingURL=rxap-icon.js.map
56
+ //# sourceMappingURL=rxap-icon.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rxap-icon.mjs","sources":["../../../../libs/icon/src/lib/icon.module.ts","../../../../libs/icon/src/rxap-icon.ts"],"sourcesContent":["import {\n NgModule,\n InjectionToken,\n ModuleWithProviders,\n Inject\n} from '@angular/core';\nimport { HttpClientModule } from '@angular/common/http';\nimport { MatIconRegistry } from '@angular/material/icon';\nimport { DomSanitizer } from '@angular/platform-browser';\n\nexport function DefaultIconSvgFilePath() {\n return '/assets/mdi.svg';\n}\n\nexport const RXAP_ICON_ASSET_PATH = new InjectionToken('rxap/icon/asset-path', {\n providedIn: 'root',\n factory: DefaultIconSvgFilePath\n});\n\n@NgModule({\n imports: [ HttpClientModule ]\n})\nexport class IconModule {\n\n public static forRoot(path: string = DefaultIconSvgFilePath()): ModuleWithProviders<IconModule> {\n return {\n ngModule: IconModule,\n providers: [\n {\n provide: RXAP_ICON_ASSET_PATH,\n useValue: path\n }\n ]\n };\n }\n\n constructor(\n @Inject(MatIconRegistry) matIconRegistry: MatIconRegistry,\n @Inject(DomSanitizer) domSanitizer: DomSanitizer,\n @Inject(RXAP_ICON_ASSET_PATH) path: string\n ) {\n matIconRegistry.addSvgIconSet(domSanitizer.bypassSecurityTrustResourceUrl(path));\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;SAUgB,sBAAsB;IACpC,OAAO,iBAAiB,CAAC;AAC3B,CAAC;MAEY,oBAAoB,GAAG,IAAI,cAAc,CAAC,sBAAsB,EAAE;IAC7E,UAAU,EAAE,MAAM;IAClB,OAAO,EAAK,sBAAsB;CACnC,EAAE;MAKU,UAAU;IAcrB,YAC2B,eAAgC,EACnC,YAA0B,EAClB,IAAY;QAE1C,eAAe,CAAC,aAAa,CAAC,YAAY,CAAC,8BAA8B,CAAC,IAAI,CAAC,CAAC,CAAC;KAClF;IAlBM,OAAO,OAAO,CAAC,OAAe,sBAAsB,EAAE;QAC3D,OAAO;YACL,QAAQ,EAAG,UAAU;YACrB,SAAS,EAAE;gBACT;oBACE,OAAO,EAAG,oBAAoB;oBAC9B,QAAQ,EAAE,IAAI;iBACf;aACF;SACF,CAAC;KACH;;uGAZU,UAAU,kBAeX,eAAe,aACf,YAAY,aACZ,oBAAoB;wGAjBnB,UAAU,YAFV,gBAAgB;wGAEhB,UAAU,YAFZ,CAAE,gBAAgB,CAAE;2FAElB,UAAU;kBAHtB,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAE,gBAAgB,CAAE;iBAC9B;;0BAgBI,MAAM;2BAAC,eAAe;;0BACtB,MAAM;2BAAC,YAAY;;0BACnB,MAAM;2BAAC,oBAAoB;;;ACvChC;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxap/icon",
3
- "version": "12.0.6",
3
+ "version": "13.0.0",
4
4
  "bugs": {
5
5
  "url": "https://gitlab.com/rxap/packages/-/issues",
6
6
  "email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
@@ -21,7 +21,8 @@
21
21
  "ng-update": {
22
22
  "migrations": "./migration.json",
23
23
  "packageGroup": [
24
- "@rxap/icon"
24
+ "@rxap/icon",
25
+ "@rxap/schematics-utilities"
25
26
  ]
26
27
  },
27
28
  "publishConfig": {
@@ -32,14 +33,35 @@
32
33
  "save": "dependencies"
33
34
  },
34
35
  "dependencies": {
35
- "tslib": "^2.2.0"
36
+ "tslib": "^2.3.1"
36
37
  },
37
- "peerDependencies": {},
38
- "main": "bundles/rxap-icon.umd.js",
39
- "module": "fesm2015/rxap-icon.js",
40
- "es2015": "fesm2015/rxap-icon.js",
41
- "esm2015": "esm2015/rxap-icon.js",
42
- "fesm2015": "fesm2015/rxap-icon.js",
38
+ "peerDependencies": {
39
+ "@angular-devkit/schematics": "^13.2.4",
40
+ "@angular/common": "^13.2.3",
41
+ "@angular/core": "^13.2.3",
42
+ "@angular/material": "^13.2.3",
43
+ "@angular/platform-browser": "^13.2.3",
44
+ "@angular/platform-browser-dynamic": "^13.2.3",
45
+ "@rxap/schematics-utilities": "^13.0.0-next.1"
46
+ },
47
+ "module": "fesm2015/rxap-icon.mjs",
48
+ "es2020": "fesm2020/rxap-icon.mjs",
49
+ "esm2020": "esm2020/rxap-icon.mjs",
50
+ "fesm2020": "fesm2020/rxap-icon.mjs",
51
+ "fesm2015": "fesm2015/rxap-icon.mjs",
43
52
  "typings": "rxap-icon.d.ts",
53
+ "exports": {
54
+ "./package.json": {
55
+ "default": "./package.json"
56
+ },
57
+ ".": {
58
+ "types": "./rxap-icon.d.ts",
59
+ "esm2020": "./esm2020/rxap-icon.mjs",
60
+ "es2020": "./fesm2020/rxap-icon.mjs",
61
+ "es2015": "./fesm2015/rxap-icon.mjs",
62
+ "node": "./fesm2015/rxap-icon.mjs",
63
+ "default": "./fesm2020/rxap-icon.mjs"
64
+ }
65
+ },
44
66
  "sideEffects": false
45
67
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const schematics_utilities_1 = require("@rxap/schematics-utilities");
4
4
  function default_1() {
5
- return schematics_utilities_1.InstallPeerDependencies();
5
+ return (0, schematics_utilities_1.InstallPeerDependencies)();
6
6
  }
7
7
  exports.default = default_1;
8
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/icon/src/schematics/ng-add/index.ts"],"names":[],"mappings":";;AACA,qEAAqE;AAErE;IACE,OAAO,8CAAuB,EAAE,CAAC;AACnC,CAAC;AAFD,4BAEC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/icon/src/schematics/ng-add/index.ts"],"names":[],"mappings":";;AACA,qEAAqE;AAErE;IACE,OAAO,IAAA,8CAAuB,GAAE,CAAC;AACnC,CAAC;AAFD,4BAEC"}
@@ -1,88 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('@angular/material/icon'), require('@angular/platform-browser')) :
3
- typeof define === 'function' && define.amd ? define('@rxap/icon', ['exports', '@angular/core', '@angular/common/http', '@angular/material/icon', '@angular/platform-browser'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.rxap = global.rxap || {}, global.rxap.icon = {}), global.ng.core, global.ng.common.http, global.ng.material.icon, global.ng.platformBrowser));
5
- }(this, (function (exports, i0, http, i1, i2) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () {
17
- return e[k];
18
- }
19
- });
20
- }
21
- });
22
- }
23
- n['default'] = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
-
31
- function DefaultIconSvgFilePath() {
32
- return '/assets/mdi.svg';
33
- }
34
- var RXAP_ICON_ASSET_PATH = new i0.InjectionToken('rxap/icon/asset-path', {
35
- providedIn: 'root',
36
- factory: DefaultIconSvgFilePath
37
- });
38
- var IconModule = /** @class */ (function () {
39
- function IconModule(matIconRegistry, domSanitizer, path) {
40
- matIconRegistry.addSvgIconSet(domSanitizer.bypassSecurityTrustResourceUrl(path));
41
- }
42
- IconModule.forRoot = function (path) {
43
- if (path === void 0) { path = DefaultIconSvgFilePath(); }
44
- return {
45
- ngModule: IconModule,
46
- providers: [
47
- {
48
- provide: RXAP_ICON_ASSET_PATH,
49
- useValue: path
50
- }
51
- ]
52
- };
53
- };
54
- return IconModule;
55
- }());
56
- IconModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: IconModule, deps: [{ token: i1.MatIconRegistry }, { token: i2.DomSanitizer }, { token: RXAP_ICON_ASSET_PATH }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
57
- IconModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: IconModule, imports: [http.HttpClientModule] });
58
- IconModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: IconModule, imports: [[http.HttpClientModule]] });
59
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: IconModule, decorators: [{
60
- type: i0.NgModule,
61
- args: [{
62
- imports: [http.HttpClientModule]
63
- }]
64
- }], ctorParameters: function () {
65
- return [{ type: i1__namespace.MatIconRegistry, decorators: [{
66
- type: i0.Inject,
67
- args: [i1.MatIconRegistry]
68
- }] }, { type: i2__namespace.DomSanitizer, decorators: [{
69
- type: i0.Inject,
70
- args: [i2.DomSanitizer]
71
- }] }, { type: undefined, decorators: [{
72
- type: i0.Inject,
73
- args: [RXAP_ICON_ASSET_PATH]
74
- }] }];
75
- } });
76
-
77
- /**
78
- * Generated bundle index. Do not edit.
79
- */
80
-
81
- exports.DefaultIconSvgFilePath = DefaultIconSvgFilePath;
82
- exports.IconModule = IconModule;
83
- exports.RXAP_ICON_ASSET_PATH = RXAP_ICON_ASSET_PATH;
84
-
85
- Object.defineProperty(exports, '__esModule', { value: true });
86
-
87
- })));
88
- //# sourceMappingURL=rxap-icon.umd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rxap-icon.umd.js","sources":["../../../../libs/icon/src/lib/icon.module.ts","../../../../libs/icon/src/rxap-icon.ts"],"sourcesContent":["import {\n NgModule,\n InjectionToken,\n ModuleWithProviders,\n Inject\n} from '@angular/core';\nimport { HttpClientModule } from '@angular/common/http';\nimport { MatIconRegistry } from '@angular/material/icon';\nimport { DomSanitizer } from '@angular/platform-browser';\n\nexport function DefaultIconSvgFilePath() {\n return '/assets/mdi.svg';\n}\n\nexport const RXAP_ICON_ASSET_PATH = new InjectionToken('rxap/icon/asset-path', {\n providedIn: 'root',\n factory: DefaultIconSvgFilePath\n});\n\n@NgModule({\n imports: [ HttpClientModule ]\n})\nexport class IconModule {\n\n public static forRoot(path: string = DefaultIconSvgFilePath()): ModuleWithProviders<IconModule> {\n return {\n ngModule: IconModule,\n providers: [\n {\n provide: RXAP_ICON_ASSET_PATH,\n useValue: path\n }\n ]\n };\n }\n\n constructor(\n @Inject(MatIconRegistry) matIconRegistry: MatIconRegistry,\n @Inject(DomSanitizer) domSanitizer: DomSanitizer,\n @Inject(RXAP_ICON_ASSET_PATH) path: string\n ) {\n matIconRegistry.addSvgIconSet(domSanitizer.bypassSecurityTrustResourceUrl(path));\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["InjectionToken","MatIconRegistry","DomSanitizer","HttpClientModule","NgModule","Inject"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAUgB,sBAAsB;QACpC,OAAO,iBAAiB,CAAC;IAC3B,CAAC;QAEY,oBAAoB,GAAG,IAAIA,iBAAc,CAAC,sBAAsB,EAAE;QAC7E,UAAU,EAAE,MAAM;QAClB,OAAO,EAAK,sBAAsB;KACnC,EAAE;;QAmBD,oBAC2B,eAAgC,EACnC,YAA0B,EAClB,IAAY;YAE1C,eAAe,CAAC,aAAa,CAAC,YAAY,CAAC,8BAA8B,CAAC,IAAI,CAAC,CAAC,CAAC;SAClF;QAlBa,kBAAO,GAAd,UAAe,IAAuC;YAAvC,qBAAA,EAAA,OAAe,sBAAsB,EAAE;YAC3D,OAAO;gBACL,QAAQ,EAAG,UAAU;gBACrB,SAAS,EAAE;oBACT;wBACE,OAAO,EAAG,oBAAoB;wBAC9B,QAAQ,EAAE,IAAI;qBACf;iBACF;aACF,CAAC;SACH;;;iIAZU,UAAU,kBAeXC,kBAAe,aACfC,eAAY,aACZ,oBAAoB;kIAjBnB,UAAU,YAFVC,qBAAgB;kIAEhB,UAAU,YAFZ,CAAEA,qBAAgB,CAAE;qHAElB,UAAU;sBAHtBC,WAAQ;uBAAC;wBACR,OAAO,EAAE,CAAED,qBAAgB,CAAE;qBAC9B;;;kCAgBIE,SAAM;mCAACJ,kBAAe;;kCACtBI,SAAM;mCAACH,eAAY;;kCACnBG,SAAM;mCAAC,oBAAoB;;;;ICvChC;;;;;;;;;;;;;;"}
package/esm2015/index.js DELETED
@@ -1,2 +0,0 @@
1
- export * from './lib/icon.module';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/icon/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC","sourcesContent":["export * from './lib/icon.module';\n"]}
@@ -1,49 +0,0 @@
1
- import { NgModule, InjectionToken, Inject } from '@angular/core';
2
- import { HttpClientModule } from '@angular/common/http';
3
- import { MatIconRegistry } from '@angular/material/icon';
4
- import { DomSanitizer } from '@angular/platform-browser';
5
- import * as i0 from "@angular/core";
6
- import * as i1 from "@angular/material/icon";
7
- import * as i2 from "@angular/platform-browser";
8
- export function DefaultIconSvgFilePath() {
9
- return '/assets/mdi.svg';
10
- }
11
- export const RXAP_ICON_ASSET_PATH = new InjectionToken('rxap/icon/asset-path', {
12
- providedIn: 'root',
13
- factory: DefaultIconSvgFilePath
14
- });
15
- export class IconModule {
16
- constructor(matIconRegistry, domSanitizer, path) {
17
- matIconRegistry.addSvgIconSet(domSanitizer.bypassSecurityTrustResourceUrl(path));
18
- }
19
- static forRoot(path = DefaultIconSvgFilePath()) {
20
- return {
21
- ngModule: IconModule,
22
- providers: [
23
- {
24
- provide: RXAP_ICON_ASSET_PATH,
25
- useValue: path
26
- }
27
- ]
28
- };
29
- }
30
- }
31
- IconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: IconModule, deps: [{ token: MatIconRegistry }, { token: DomSanitizer }, { token: RXAP_ICON_ASSET_PATH }], target: i0.ɵɵFactoryTarget.NgModule });
32
- IconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: IconModule, imports: [HttpClientModule] });
33
- IconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: IconModule, imports: [[HttpClientModule]] });
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: IconModule, decorators: [{
35
- type: NgModule,
36
- args: [{
37
- imports: [HttpClientModule]
38
- }]
39
- }], ctorParameters: function () { return [{ type: i1.MatIconRegistry, decorators: [{
40
- type: Inject,
41
- args: [MatIconRegistry]
42
- }] }, { type: i2.DomSanitizer, decorators: [{
43
- type: Inject,
44
- args: [DomSanitizer]
45
- }] }, { type: undefined, decorators: [{
46
- type: Inject,
47
- args: [RXAP_ICON_ASSET_PATH]
48
- }] }]; } });
49
- //# sourceMappingURL=icon.module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"icon.module.js","sourceRoot":"","sources":["../../../../../libs/icon/src/lib/icon.module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,cAAc,EAEd,MAAM,EACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;;;;AAEzD,MAAM,UAAU,sBAAsB;IACpC,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,cAAc,CAAC,sBAAsB,EAAE;IAC7E,UAAU,EAAE,MAAM;IAClB,OAAO,EAAK,sBAAsB;CACnC,CAAC,CAAC;AAKH,MAAM,OAAO,UAAU;IAcrB,YAC2B,eAAgC,EACnC,YAA0B,EAClB,IAAY;QAE1C,eAAe,CAAC,aAAa,CAAC,YAAY,CAAC,8BAA8B,CAAC,IAAI,CAAC,CAAC,CAAC;IACnF,CAAC;IAlBM,MAAM,CAAC,OAAO,CAAC,OAAe,sBAAsB,EAAE;QAC3D,OAAO;YACL,QAAQ,EAAG,UAAU;YACrB,SAAS,EAAE;gBACT;oBACE,OAAO,EAAG,oBAAoB;oBAC9B,QAAQ,EAAE,IAAI;iBACf;aACF;SACF,CAAC;IACJ,CAAC;;uGAZU,UAAU,kBAeX,eAAe,aACf,YAAY,aACZ,oBAAoB;wGAjBnB,UAAU,YAFV,gBAAgB;wGAEhB,UAAU,YAFZ,CAAE,gBAAgB,CAAE;2FAElB,UAAU;kBAHtB,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAE,gBAAgB,CAAE;iBAC9B;;0BAgBI,MAAM;2BAAC,eAAe;;0BACtB,MAAM;2BAAC,YAAY;;0BACnB,MAAM;2BAAC,oBAAoB","sourcesContent":["import {\n NgModule,\n InjectionToken,\n ModuleWithProviders,\n Inject\n} from '@angular/core';\nimport { HttpClientModule } from '@angular/common/http';\nimport { MatIconRegistry } from '@angular/material/icon';\nimport { DomSanitizer } from '@angular/platform-browser';\n\nexport function DefaultIconSvgFilePath() {\n return '/assets/mdi.svg';\n}\n\nexport const RXAP_ICON_ASSET_PATH = new InjectionToken('rxap/icon/asset-path', {\n providedIn: 'root',\n factory: DefaultIconSvgFilePath\n});\n\n@NgModule({\n imports: [ HttpClientModule ]\n})\nexport class IconModule {\n\n public static forRoot(path: string = DefaultIconSvgFilePath()): ModuleWithProviders<IconModule> {\n return {\n ngModule: IconModule,\n providers: [\n {\n provide: RXAP_ICON_ASSET_PATH,\n useValue: path\n }\n ]\n };\n }\n\n constructor(\n @Inject(MatIconRegistry) matIconRegistry: MatIconRegistry,\n @Inject(DomSanitizer) domSanitizer: DomSanitizer,\n @Inject(RXAP_ICON_ASSET_PATH) path: string\n ) {\n matIconRegistry.addSvgIconSet(domSanitizer.bypassSecurityTrustResourceUrl(path));\n }\n\n}\n"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=rxap-icon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rxap-icon.js","sourceRoot":"","sources":["../../../../libs/icon/src/rxap-icon.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"rxap-icon.js","sources":["../../../../libs/icon/src/lib/icon.module.ts","../../../../libs/icon/src/rxap-icon.ts"],"sourcesContent":["import {\n NgModule,\n InjectionToken,\n ModuleWithProviders,\n Inject\n} from '@angular/core';\nimport { HttpClientModule } from '@angular/common/http';\nimport { MatIconRegistry } from '@angular/material/icon';\nimport { DomSanitizer } from '@angular/platform-browser';\n\nexport function DefaultIconSvgFilePath() {\n return '/assets/mdi.svg';\n}\n\nexport const RXAP_ICON_ASSET_PATH = new InjectionToken('rxap/icon/asset-path', {\n providedIn: 'root',\n factory: DefaultIconSvgFilePath\n});\n\n@NgModule({\n imports: [ HttpClientModule ]\n})\nexport class IconModule {\n\n public static forRoot(path: string = DefaultIconSvgFilePath()): ModuleWithProviders<IconModule> {\n return {\n ngModule: IconModule,\n providers: [\n {\n provide: RXAP_ICON_ASSET_PATH,\n useValue: path\n }\n ]\n };\n }\n\n constructor(\n @Inject(MatIconRegistry) matIconRegistry: MatIconRegistry,\n @Inject(DomSanitizer) domSanitizer: DomSanitizer,\n @Inject(RXAP_ICON_ASSET_PATH) path: string\n ) {\n matIconRegistry.addSvgIconSet(domSanitizer.bypassSecurityTrustResourceUrl(path));\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;SAUgB,sBAAsB;IACpC,OAAO,iBAAiB,CAAC;AAC3B,CAAC;MAEY,oBAAoB,GAAG,IAAI,cAAc,CAAC,sBAAsB,EAAE;IAC7E,UAAU,EAAE,MAAM;IAClB,OAAO,EAAK,sBAAsB;CACnC,EAAE;MAKU,UAAU;IAcrB,YAC2B,eAAgC,EACnC,YAA0B,EAClB,IAAY;QAE1C,eAAe,CAAC,aAAa,CAAC,YAAY,CAAC,8BAA8B,CAAC,IAAI,CAAC,CAAC,CAAC;KAClF;IAlBM,OAAO,OAAO,CAAC,OAAe,sBAAsB,EAAE;QAC3D,OAAO;YACL,QAAQ,EAAG,UAAU;YACrB,SAAS,EAAE;gBACT;oBACE,OAAO,EAAG,oBAAoB;oBAC9B,QAAQ,EAAE,IAAI;iBACf;aACF;SACF,CAAC;KACH;;uGAZU,UAAU,kBAeX,eAAe,aACf,YAAY,aACZ,oBAAoB;wGAjBnB,UAAU,YAFV,gBAAgB;wGAEhB,UAAU,YAFZ,CAAE,gBAAgB,CAAE;2FAElB,UAAU;kBAHtB,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAE,gBAAgB,CAAE;iBAC9B;;0BAgBI,MAAM;2BAAC,eAAe;;0BACtB,MAAM;2BAAC,YAAY;;0BACnB,MAAM;2BAAC,oBAAoB;;;ACvChC;;;;;;"}