@apipass/icons 0.1.1-beta.10
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/README.md +41 -0
- package/apipass-icons.d.ts +4 -0
- package/apipass-icons.metadata.json +1 -0
- package/assets/css/colors.scss +34 -0
- package/assets/css/icons.scss +30 -0
- package/assets/images/icons/custom/apipass-custom-chat-icon.png +0 -0
- package/assets/images/icons/custom/apipass-custom-faq-icon.png +0 -0
- package/assets/images/icons/custom/apipass-custom-mouse-icon.png +0 -0
- package/assets/images/icons/custom/apipass-customization-icon.png +0 -0
- package/bundles/apipass-icons.umd.js +98 -0
- package/bundles/apipass-icons.umd.js.map +1 -0
- package/bundles/apipass-icons.umd.min.js +2 -0
- package/bundles/apipass-icons.umd.min.js.map +1 -0
- package/esm2015/apipass-icons.js +5 -0
- package/esm2015/lib/icon.component.js +58 -0
- package/esm2015/lib/icons.module.js +26 -0
- package/esm2015/public-api.js +3 -0
- package/fesm2015/apipass-icons.js +89 -0
- package/fesm2015/apipass-icons.js.map +1 -0
- package/lib/icon.component.d.ts +18 -0
- package/lib/icons.module.d.ts +2 -0
- package/package.json +32 -0
- package/public-api.d.ts +2 -0
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# @apipass/icons
|
|
2
|
+
|
|
3
|
+
This package is a angular component for show icons
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
npm install @apipass/icons
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
[...]
|
|
16
|
+
import {ModalsModule} from "@apipass/icons";
|
|
17
|
+
|
|
18
|
+
@NgModule({
|
|
19
|
+
imports: [
|
|
20
|
+
[...]
|
|
21
|
+
ModalsModule
|
|
22
|
+
],
|
|
23
|
+
[...]
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
FontAwesome:
|
|
27
|
+
```html
|
|
28
|
+
<icon [title]="'test'" type="primary" size="18" name="fas fa-exchange-alt"></icon>
|
|
29
|
+
<icon [title]="'test'" type="secondary" size="22" name="fas fa-exchange-alt"></icon>
|
|
30
|
+
<icon [title]="'test'" type="tertiary" size="28" name="fas fa-exchange-alt"></icon>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Material:
|
|
34
|
+
```html
|
|
35
|
+
<icon [isMaterialIcon]="true" [materialOutline]="true" type="primary" size="22" name="person_outline"></icon>
|
|
36
|
+
<icon [isMaterialIcon]="true" [materialOutline]="true" type="secondary" size="28" name="person_outline"></icon>
|
|
37
|
+
<icon [isMaterialIcon]="true" [materialOutline]="true" type="tertiary" size="32" name="person_outline"></icon>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## License
|
|
41
|
+
[MIT](https://choosealicense.com/licenses/mit/)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"IconsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":7,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":9,"character":4},{"__symbolic":"reference","module":"@angular/material/icon","name":"MatIconModule","line":10,"character":4},{"__symbolic":"reference","module":"@angular/material/tooltip","name":"MatTooltipModule","line":11,"character":4},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":12,"character":4},"member":"forChild"},"arguments":[[]]}],"declarations":[{"__symbolic":"reference","name":"IconComponent"}],"exports":[{"__symbolic":"reference","name":"IconComponent"}],"providers":[]}]}],"members":{}},"IconComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"icon","template":"<i *ngIf=\"!isMaterialIcon && name && !routerLink && !link\" [matTooltip]=\"title || ''\"\r\n [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\" (click)=\"click()\"></i>\r\n\r\n<mat-icon *ngIf=\"isMaterialIcon && name && !routerLink && !link\" [matTooltip]=\"title || ''\"\r\n [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\" (click)=\"click()\">{{this.name}}</mat-icon>\r\n\r\n<a *ngIf=\"name && routerLink\" [matTooltip]=\"title || ''\"\r\n [routerLinkActive]=\"routerLinkActive || ''\" [routerLink]=\"routerLink\" (click)=\"click()\">\r\n <i *ngIf=\"!isMaterialIcon\" [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\"></i>\r\n <mat-icon *ngIf=\"isMaterialIcon\" [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\">{{this.name}}</mat-icon>\r\n</a>\r\n\r\n<a *ngIf=\"name && link\" [matTooltip]=\"title || ''\"\r\n [routerLinkActive]=\"routerLinkActive || ''\" [href]=\"link\" [target]=\"target\" (click)=\"click()\">\r\n <i *ngIf=\"!isMaterialIcon\" [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\"></i>\r\n <mat-icon *ngIf=\"isMaterialIcon\" [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\">{{this.name}}</mat-icon>\r\n</a>\r\n","styles":[":root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}.apipass-icon-primary{color:var(--color-primary)}.apipass-icon-secondary{color:var(--color-secondary)}.apipass-icon-tertiary{color:var(--color-fonts-tertiary)}.apipass-icon-remove{color:var(--color_icon_remove)}.apipass-icon-success{color:var(--color_icon_success)}.apipass-icon-white{color:#fff}.apipass-icon-white-active{color:var(--color-secondary)}.clickable{cursor:pointer}.apipass-custom-icon{background-repeat:no-repeat;background-size:100%;display:block;height:100%;width:100%}.apipass-custom-faq-icon{background-image:url(/assets/images/icons/custom/apipass-custom-faq-icon.png)}.apipass-custom-chat-icon{background-image:url(/assets/images/icons/custom/apipass-custom-chat-icon.png)}.apipass-custom-mouse-icon{background-image:url(/assets/images/icons/custom/apipass-custom-mouse-icon.png)}.apipass-customization-icon{background-image:url(/assets/images/icons/custom/apipass-customization-icon.png)}"]}]}],"members":{"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":3}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}}]}],"isMaterialIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3}}]}],"materialOutline":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3}}]}],"routerLinkActive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":3}}]}],"routerLink":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":3}}]}],"link":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":3}}]}],"target":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":3}}]}],"isActive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3}}]}],"onClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":23,"character":3}}]}],"click":[{"__symbolic":"method"}],"getFontSize":[{"__symbolic":"method"}],"getClass":[{"__symbolic":"method"}]}}},"origins":{"IconsModule":"./lib/icons.module","IconComponent":"./lib/icon.component"},"importAs":"@apipass/icons"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--color-primary: #222D57;
|
|
3
|
+
--color-primary-hover: #18203D;
|
|
4
|
+
--color-primary-active: #29376A;
|
|
5
|
+
|
|
6
|
+
--color-secondary: #D3D921;
|
|
7
|
+
--color-secondary-hover: #B3B81C;
|
|
8
|
+
--color-secondary-active: #DCE13F;
|
|
9
|
+
|
|
10
|
+
--color-tertiary: #EFEFEF;
|
|
11
|
+
--color-tertiary-hover: #CBCBCB;
|
|
12
|
+
--color-tertiary-active: #F1F1F1;
|
|
13
|
+
|
|
14
|
+
--color-fonts-tertiary: #777777;
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
// Defaults
|
|
20
|
+
--color-body-light: #FFF;
|
|
21
|
+
--color-red: rgb(255, 0, 0);
|
|
22
|
+
--limit-plan-color: #ff6c00;
|
|
23
|
+
--color_disabled: #E0E0E0;
|
|
24
|
+
--color_components_light: #FFF;
|
|
25
|
+
--color-inputs-border: #DDD;
|
|
26
|
+
--color-inputs-background: #FFF;
|
|
27
|
+
--color_icon_remove: var(--color-red);
|
|
28
|
+
--color_icon_success: #070;
|
|
29
|
+
--color_graph_primary: #1643EF;
|
|
30
|
+
--color_graph_primary_hover: #0A2692;
|
|
31
|
+
--color_graph_error: #EB5757;
|
|
32
|
+
--color_graph_error_hover: #C91717;
|
|
33
|
+
|
|
34
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@import "colors";
|
|
2
|
+
|
|
3
|
+
/* Icons */
|
|
4
|
+
.apipass-icon-primary {
|
|
5
|
+
color: var(--color-primary);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.apipass-icon-secondary {
|
|
9
|
+
color: var(--color-secondary);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.apipass-icon-tertiary {
|
|
13
|
+
color: var(--color-fonts-tertiary);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.apipass-icon-remove {
|
|
17
|
+
color: var(--color_icon_remove);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.apipass-icon-success {
|
|
21
|
+
color: var(--color_icon_success);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.apipass-icon-white {
|
|
25
|
+
color: #FFF;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.apipass-icon-white-active {
|
|
29
|
+
color: var(--color-secondary);
|
|
30
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/material/icon'), require('@angular/material/tooltip'), require('@angular/router')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@apipass/icons', ['exports', '@angular/core', '@angular/common', '@angular/material/icon', '@angular/material/tooltip', '@angular/router'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.apipass = global.apipass || {}, global.apipass.icons = {}), global.ng.core, global.ng.common, global.ng.material.icon, global.ng.material.tooltip, global.ng.router));
|
|
5
|
+
}(this, (function (exports, core, common, icon, tooltip, router) { 'use strict';
|
|
6
|
+
|
|
7
|
+
var IconComponent = /** @class */ (function () {
|
|
8
|
+
function IconComponent() {
|
|
9
|
+
this.type = 'primary';
|
|
10
|
+
this.isMaterialIcon = false;
|
|
11
|
+
this.materialOutline = false;
|
|
12
|
+
this.onClick = new core.EventEmitter();
|
|
13
|
+
}
|
|
14
|
+
IconComponent.prototype.click = function () {
|
|
15
|
+
this.onClick.emit(true);
|
|
16
|
+
};
|
|
17
|
+
IconComponent.prototype.getFontSize = function () {
|
|
18
|
+
return this.size ? this.size + "px" : 'inherit';
|
|
19
|
+
};
|
|
20
|
+
IconComponent.prototype.getClass = function () {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
var classValues = {};
|
|
23
|
+
if (!this.isMaterialIcon) {
|
|
24
|
+
classValues[this.name] = true;
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
classValues['material-icon'] = true;
|
|
28
|
+
}
|
|
29
|
+
if (this.materialOutline) {
|
|
30
|
+
classValues['material-icons-outlined'] = true;
|
|
31
|
+
}
|
|
32
|
+
classValues["apipass-icon-" + this.type] = true;
|
|
33
|
+
if (this.isActive) {
|
|
34
|
+
classValues["apipass-icon-" + this.type + "-active"] = true;
|
|
35
|
+
}
|
|
36
|
+
if (((_b = (_a = this.onClick) === null || _a === void 0 ? void 0 : _a.observers) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
37
|
+
classValues["clickable"] = true;
|
|
38
|
+
}
|
|
39
|
+
return classValues;
|
|
40
|
+
};
|
|
41
|
+
return IconComponent;
|
|
42
|
+
}());
|
|
43
|
+
IconComponent.decorators = [
|
|
44
|
+
{ type: core.Component, args: [{
|
|
45
|
+
selector: 'icon',
|
|
46
|
+
template: "<i *ngIf=\"!isMaterialIcon && name && !routerLink && !link\" [matTooltip]=\"title || ''\"\r\n [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\" (click)=\"click()\"></i>\r\n\r\n<mat-icon *ngIf=\"isMaterialIcon && name && !routerLink && !link\" [matTooltip]=\"title || ''\"\r\n [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\" (click)=\"click()\">{{this.name}}</mat-icon>\r\n\r\n<a *ngIf=\"name && routerLink\" [matTooltip]=\"title || ''\"\r\n [routerLinkActive]=\"routerLinkActive || ''\" [routerLink]=\"routerLink\" (click)=\"click()\">\r\n <i *ngIf=\"!isMaterialIcon\" [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\"></i>\r\n <mat-icon *ngIf=\"isMaterialIcon\" [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\">{{this.name}}</mat-icon>\r\n</a>\r\n\r\n<a *ngIf=\"name && link\" [matTooltip]=\"title || ''\"\r\n [routerLinkActive]=\"routerLinkActive || ''\" [href]=\"link\" [target]=\"target\" (click)=\"click()\">\r\n <i *ngIf=\"!isMaterialIcon\" [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\"></i>\r\n <mat-icon *ngIf=\"isMaterialIcon\" [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\">{{this.name}}</mat-icon>\r\n</a>\r\n",
|
|
47
|
+
styles: [":root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}.apipass-icon-primary{color:var(--color-primary)}.apipass-icon-secondary{color:var(--color-secondary)}.apipass-icon-tertiary{color:var(--color-fonts-tertiary)}.apipass-icon-remove{color:var(--color_icon_remove)}.apipass-icon-success{color:var(--color_icon_success)}.apipass-icon-white{color:#fff}.apipass-icon-white-active{color:var(--color-secondary)}.clickable{cursor:pointer}.apipass-custom-icon{background-repeat:no-repeat;background-size:100%;display:block;height:100%;width:100%}.apipass-custom-faq-icon{background-image:url(/assets/images/icons/custom/apipass-custom-faq-icon.png)}.apipass-custom-chat-icon{background-image:url(/assets/images/icons/custom/apipass-custom-chat-icon.png)}.apipass-custom-mouse-icon{background-image:url(/assets/images/icons/custom/apipass-custom-mouse-icon.png)}.apipass-customization-icon{background-image:url(/assets/images/icons/custom/apipass-customization-icon.png)}"]
|
|
48
|
+
},] }
|
|
49
|
+
];
|
|
50
|
+
IconComponent.propDecorators = {
|
|
51
|
+
name: [{ type: core.Input }],
|
|
52
|
+
title: [{ type: core.Input }],
|
|
53
|
+
type: [{ type: core.Input }],
|
|
54
|
+
size: [{ type: core.Input }],
|
|
55
|
+
isMaterialIcon: [{ type: core.Input }],
|
|
56
|
+
materialOutline: [{ type: core.Input }],
|
|
57
|
+
routerLinkActive: [{ type: core.Input }],
|
|
58
|
+
routerLink: [{ type: core.Input }],
|
|
59
|
+
link: [{ type: core.Input }],
|
|
60
|
+
target: [{ type: core.Input }],
|
|
61
|
+
isActive: [{ type: core.Input }],
|
|
62
|
+
onClick: [{ type: core.Output }]
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
var IconsModule = /** @class */ (function () {
|
|
66
|
+
function IconsModule() {
|
|
67
|
+
}
|
|
68
|
+
return IconsModule;
|
|
69
|
+
}());
|
|
70
|
+
IconsModule.decorators = [
|
|
71
|
+
{ type: core.NgModule, args: [{
|
|
72
|
+
imports: [
|
|
73
|
+
common.CommonModule,
|
|
74
|
+
icon.MatIconModule,
|
|
75
|
+
tooltip.MatTooltipModule,
|
|
76
|
+
router.RouterModule.forChild([])
|
|
77
|
+
],
|
|
78
|
+
declarations: [
|
|
79
|
+
IconComponent
|
|
80
|
+
],
|
|
81
|
+
exports: [
|
|
82
|
+
IconComponent
|
|
83
|
+
],
|
|
84
|
+
providers: []
|
|
85
|
+
},] }
|
|
86
|
+
];
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Generated bundle index. Do not edit.
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
exports.IconComponent = IconComponent;
|
|
93
|
+
exports.IconsModule = IconsModule;
|
|
94
|
+
|
|
95
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
96
|
+
|
|
97
|
+
})));
|
|
98
|
+
//# sourceMappingURL=apipass-icons.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apipass-icons.umd.js","sources":["../../../projects/icons/src/lib/icon.component.ts","../../../projects/icons/src/lib/icons.module.ts","../../../projects/icons/src/apipass-icons.ts"],"sourcesContent":["import { Component, Input, EventEmitter, Output } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'icon',\r\n templateUrl: 'icon.component.html',\r\n styleUrls: ['icon.component.scss']\r\n})\r\nexport class IconComponent {\r\n\r\n @Input() public name: any;\r\n @Input() public title: any;\r\n @Input() public type = 'primary';\r\n @Input() public size: any;\r\n @Input() public isMaterialIcon = false;\r\n @Input() public materialOutline = false;\r\n\r\n @Input() public routerLinkActive: any;\r\n @Input() public routerLink: any;\r\n\r\n @Input() public link: any;\r\n @Input() public target: any;\r\n @Input() public isActive: any;\r\n\r\n @Output() public onClick: EventEmitter<boolean> = new EventEmitter();\r\n\r\n public click() {\r\n this.onClick.emit(true);\r\n }\r\n\r\n getFontSize() {\r\n return this.size ? `${this.size}px` : 'inherit';\r\n }\r\n\r\n getClass() {\r\n const classValues: any = {};\r\n if (!this.isMaterialIcon) {\r\n classValues[this.name] = true;\r\n } else {\r\n classValues['material-icon'] = true;\r\n }\r\n if (this.materialOutline) {\r\n classValues['material-icons-outlined'] = true;\r\n }\r\n classValues[`apipass-icon-${this.type}`] = true;\r\n if (this.isActive) {\r\n classValues[`apipass-icon-${this.type}-active`] = true;\r\n }\r\n if (this.onClick?.observers?.length > 0) {\r\n classValues[`clickable`] = true;\r\n }\r\n return classValues;\r\n }\r\n\r\n}\r\n","import {NgModule} from '@angular/core';\r\nimport {CommonModule} from '@angular/common';\r\nimport {MatIconModule} from '@angular/material/icon';\r\nimport {MatTooltipModule} from '@angular/material/tooltip';\r\nimport {IconComponent} from \"./icon.component\";\r\nimport {RouterModule} from \"@angular/router\";\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n MatIconModule,\r\n MatTooltipModule,\r\n RouterModule.forChild([])\r\n ],\r\n declarations: [\r\n IconComponent\r\n ],\r\n exports: [\r\n IconComponent\r\n ],\r\n providers: []\r\n})\r\nexport class IconsModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["EventEmitter","Component","Input","Output","NgModule","CommonModule","MatIconModule","MatTooltipModule","RouterModule"],"mappings":";;;;;;;QAEA;YASkB,SAAI,GAAG,SAAS,CAAC;YAEjB,mBAAc,GAAG,KAAK,CAAC;YACvB,oBAAe,GAAG,KAAK,CAAC;YASvB,YAAO,GAA0B,IAAIA,iBAAY,EAAE,CAAC;SA8BtE;QA5BQ,6BAAK,GAAL;YACL,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACzB;QAED,mCAAW,GAAX;YACE,OAAO,IAAI,CAAC,IAAI,GAAM,IAAI,CAAC,IAAI,OAAI,GAAG,SAAS,CAAC;SACjD;QAED,gCAAQ,GAAR;;YACE,IAAM,WAAW,GAAQ,EAAE,CAAC;YAC5B,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;gBACxB,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;aAC/B;iBAAM;gBACL,WAAW,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC;aACrC;YACD,IAAI,IAAI,CAAC,eAAe,EAAE;gBACxB,WAAW,CAAC,yBAAyB,CAAC,GAAG,IAAI,CAAC;aAC/C;YACD,WAAW,CAAC,kBAAgB,IAAI,CAAC,IAAM,CAAC,GAAG,IAAI,CAAC;YAChD,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,WAAW,CAAC,kBAAgB,IAAI,CAAC,IAAI,YAAS,CAAC,GAAG,IAAI,CAAC;aACxD;YACD,IAAI,aAAA,IAAI,CAAC,OAAO,0CAAE,SAAS,0CAAE,MAAM,IAAG,CAAC,EAAE;gBACvC,WAAW,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;aACjC;YACD,OAAO,WAAW,CAAC;SACpB;;;;gBAjDFC,cAAS,SAAC;oBACT,QAAQ,EAAE,MAAM;oBAChB,6uCAAkC;;iBAEnC;;;uBAGEC,UAAK;wBACLA,UAAK;uBACLA,UAAK;uBACLA,UAAK;iCACLA,UAAK;kCACLA,UAAK;mCAELA,UAAK;6BACLA,UAAK;uBAELA,UAAK;yBACLA,UAAK;2BACLA,UAAK;0BAELC,WAAM;;;;QCDT;;;;;gBAfCC,aAAQ,SAAC;oBACR,OAAO,EAAE;wBACPC,mBAAY;wBACZC,kBAAa;wBACbC,wBAAgB;wBAChBC,mBAAY,CAAC,QAAQ,CAAC,EAAE,CAAC;qBAC1B;oBACD,YAAY,EAAE;wBACZ,aAAa;qBACd;oBACD,OAAO,EAAE;wBACP,aAAa;qBACd;oBACD,SAAS,EAAE,EAAE;iBACd;;;ICrBD;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(o,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/material/icon"),require("@angular/material/tooltip"),require("@angular/router")):"function"==typeof define&&define.amd?define("@apipass/icons",["exports","@angular/core","@angular/common","@angular/material/icon","@angular/material/tooltip","@angular/router"],t):t(((o="undefined"!=typeof globalThis?globalThis:o||self).apipass=o.apipass||{},o.apipass.icons={}),o.ng.core,o.ng.common,o.ng.material.icon,o.ng.material.tooltip,o.ng.router)}(this,(function(o,t,i,e,r,n){"use strict";var a=function(){function o(){this.type="primary",this.isMaterialIcon=!1,this.materialOutline=!1,this.onClick=new t.EventEmitter}return o.prototype.click=function(){this.onClick.emit(!0)},o.prototype.getFontSize=function(){return this.size?this.size+"px":"inherit"},o.prototype.getClass=function(){var o,t,i={};return this.isMaterialIcon?i["material-icon"]=!0:i[this.name]=!0,this.materialOutline&&(i["material-icons-outlined"]=!0),i["apipass-icon-"+this.type]=!0,this.isActive&&(i["apipass-icon-"+this.type+"-active"]=!0),(null===(t=null===(o=this.onClick)||void 0===o?void 0:o.observers)||void 0===t?void 0:t.length)>0&&(i.clickable=!0),i},o}();a.decorators=[{type:t.Component,args:[{selector:"icon",template:'<i *ngIf="!isMaterialIcon && name && !routerLink && !link" [matTooltip]="title || \'\'"\r\n [ngClass]="getClass()" [ngStyle]="{\'font-size\': getFontSize()}" (click)="click()"></i>\r\n\r\n<mat-icon *ngIf="isMaterialIcon && name && !routerLink && !link" [matTooltip]="title || \'\'"\r\n [ngClass]="getClass()" [ngStyle]="{\'font-size\': getFontSize()}" (click)="click()">{{this.name}}</mat-icon>\r\n\r\n<a *ngIf="name && routerLink" [matTooltip]="title || \'\'"\r\n [routerLinkActive]="routerLinkActive || \'\'" [routerLink]="routerLink" (click)="click()">\r\n <i *ngIf="!isMaterialIcon" [ngClass]="getClass()" [ngStyle]="{\'font-size\': getFontSize()}"></i>\r\n <mat-icon *ngIf="isMaterialIcon" [ngClass]="getClass()" [ngStyle]="{\'font-size\': getFontSize()}">{{this.name}}</mat-icon>\r\n</a>\r\n\r\n<a *ngIf="name && link" [matTooltip]="title || \'\'"\r\n [routerLinkActive]="routerLinkActive || \'\'" [href]="link" [target]="target" (click)="click()">\r\n <i *ngIf="!isMaterialIcon" [ngClass]="getClass()" [ngStyle]="{\'font-size\': getFontSize()}"></i>\r\n <mat-icon *ngIf="isMaterialIcon" [ngClass]="getClass()" [ngStyle]="{\'font-size\': getFontSize()}">{{this.name}}</mat-icon>\r\n</a>\r\n',styles:[":root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}.apipass-icon-primary{color:var(--color-primary)}.apipass-icon-secondary{color:var(--color-secondary)}.apipass-icon-tertiary{color:var(--color-fonts-tertiary)}.apipass-icon-remove{color:var(--color_icon_remove)}.apipass-icon-success{color:var(--color_icon_success)}.apipass-icon-white{color:#fff}.apipass-icon-white-active{color:var(--color-secondary)}.clickable{cursor:pointer}.apipass-custom-icon{background-repeat:no-repeat;background-size:100%;display:block;height:100%;width:100%}.apipass-custom-faq-icon{background-image:url(/assets/images/icons/custom/apipass-custom-faq-icon.png)}.apipass-custom-chat-icon{background-image:url(/assets/images/icons/custom/apipass-custom-chat-icon.png)}.apipass-custom-mouse-icon{background-image:url(/assets/images/icons/custom/apipass-custom-mouse-icon.png)}.apipass-customization-icon{background-image:url(/assets/images/icons/custom/apipass-customization-icon.png)}"]}]}],a.propDecorators={name:[{type:t.Input}],title:[{type:t.Input}],type:[{type:t.Input}],size:[{type:t.Input}],isMaterialIcon:[{type:t.Input}],materialOutline:[{type:t.Input}],routerLinkActive:[{type:t.Input}],routerLink:[{type:t.Input}],link:[{type:t.Input}],target:[{type:t.Input}],isActive:[{type:t.Input}],onClick:[{type:t.Output}]};var c=function(){};c.decorators=[{type:t.NgModule,args:[{imports:[i.CommonModule,e.MatIconModule,r.MatTooltipModule,n.RouterModule.forChild([])],declarations:[a],exports:[a],providers:[]}]}],o.IconComponent=a,o.IconsModule=c,Object.defineProperty(o,"__esModule",{value:!0})}));
|
|
2
|
+
//# sourceMappingURL=apipass-icons.umd.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../projects/icons/src/lib/icon.component.ts","../../../projects/icons/src/lib/icons.module.ts"],"names":["IconComponent","this","type","isMaterialIcon","materialOutline","onClick","EventEmitter","prototype","click","emit","getFontSize","size","getClass","classValues","name","isActive","_b","_a","observers","length","Component","args","selector","template","Input","Output","NgModule","imports","CommonModule","MatIconModule","MatTooltipModule","RouterModule","forChild","declarations","exports","providers"],"mappings":"qoBAEA,SAAAA,IASkBC,KAAAC,KAAO,UAEPD,KAAAE,gBAAiB,EACjBF,KAAAG,iBAAkB,EASjBH,KAAAI,QAAiC,IAAIC,EAAAA,oBAE/CN,EAAAO,UAAAC,MAAA,WACLP,KAAKI,QAAQI,MAAK,IAGpBT,EAAAO,UAAAG,YAAA,WACE,OAAOT,KAAKU,KAAUV,KAAKU,KAAI,KAAO,WAGxCX,EAAAO,UAAAK,SAAA,mBACQC,EAAmB,GAgBzB,OAfKZ,KAAKE,eAGRU,EAAY,kBAAmB,EAF/BA,EAAYZ,KAAKa,OAAQ,EAIvBb,KAAKG,kBACPS,EAAY,4BAA6B,GAE3CA,EAAY,gBAAgBZ,KAAKC,OAAU,EACvCD,KAAKc,WACPF,EAAY,gBAAgBZ,KAAKC,KAAI,YAAa,IAEzB,QAAvBc,EAAY,QAAZC,EAAAhB,KAAKI,eAAO,IAAAY,OAAA,EAAAA,EAAEC,iBAAS,IAAAF,OAAA,EAAAA,EAAEG,QAAS,IACpCN,EAAuB,WAAI,GAEtBA,4BAhDVO,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,OACVC,SAAA,kxFAKCC,EAAAA,qBACAA,EAAAA,oBACAA,EAAAA,oBACAA,EAAAA,8BACAA,EAAAA,+BACAA,EAAAA,gCAEAA,EAAAA,0BACAA,EAAAA,oBAEAA,EAAAA,sBACAA,EAAAA,wBACAA,EAAAA,uBAEAC,EAAAA,gBCDH,iCAfCC,EAAAA,SAAQL,KAAA,CAAC,CACRM,QAAS,CACPC,EAAAA,aACAC,EAAAA,cACAC,EAAAA,iBACAC,EAAAA,aAAaC,SAAS,KAExBC,aAAc,CACZjC,GAEFkC,QAAS,CACPlC,GAEFmC,UAAW","sourcesContent":["import { Component, Input, EventEmitter, Output } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'icon',\r\n templateUrl: 'icon.component.html',\r\n styleUrls: ['icon.component.scss']\r\n})\r\nexport class IconComponent {\r\n\r\n @Input() public name: any;\r\n @Input() public title: any;\r\n @Input() public type = 'primary';\r\n @Input() public size: any;\r\n @Input() public isMaterialIcon = false;\r\n @Input() public materialOutline = false;\r\n\r\n @Input() public routerLinkActive: any;\r\n @Input() public routerLink: any;\r\n\r\n @Input() public link: any;\r\n @Input() public target: any;\r\n @Input() public isActive: any;\r\n\r\n @Output() public onClick: EventEmitter<boolean> = new EventEmitter();\r\n\r\n public click() {\r\n this.onClick.emit(true);\r\n }\r\n\r\n getFontSize() {\r\n return this.size ? `${this.size}px` : 'inherit';\r\n }\r\n\r\n getClass() {\r\n const classValues: any = {};\r\n if (!this.isMaterialIcon) {\r\n classValues[this.name] = true;\r\n } else {\r\n classValues['material-icon'] = true;\r\n }\r\n if (this.materialOutline) {\r\n classValues['material-icons-outlined'] = true;\r\n }\r\n classValues[`apipass-icon-${this.type}`] = true;\r\n if (this.isActive) {\r\n classValues[`apipass-icon-${this.type}-active`] = true;\r\n }\r\n if (this.onClick?.observers?.length > 0) {\r\n classValues[`clickable`] = true;\r\n }\r\n return classValues;\r\n }\r\n\r\n}\r\n","import {NgModule} from '@angular/core';\r\nimport {CommonModule} from '@angular/common';\r\nimport {MatIconModule} from '@angular/material/icon';\r\nimport {MatTooltipModule} from '@angular/material/tooltip';\r\nimport {IconComponent} from \"./icon.component\";\r\nimport {RouterModule} from \"@angular/router\";\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n MatIconModule,\r\n MatTooltipModule,\r\n RouterModule.forChild([])\r\n ],\r\n declarations: [\r\n IconComponent\r\n ],\r\n exports: [\r\n IconComponent\r\n ],\r\n providers: []\r\n})\r\nexport class IconsModule { }\r\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpcGFzcy1pY29ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2ljb25zL3NyYy9hcGlwYXNzLWljb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0=
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Component, Input, EventEmitter, Output } from '@angular/core';
|
|
2
|
+
export class IconComponent {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.type = 'primary';
|
|
5
|
+
this.isMaterialIcon = false;
|
|
6
|
+
this.materialOutline = false;
|
|
7
|
+
this.onClick = new EventEmitter();
|
|
8
|
+
}
|
|
9
|
+
click() {
|
|
10
|
+
this.onClick.emit(true);
|
|
11
|
+
}
|
|
12
|
+
getFontSize() {
|
|
13
|
+
return this.size ? `${this.size}px` : 'inherit';
|
|
14
|
+
}
|
|
15
|
+
getClass() {
|
|
16
|
+
var _a, _b;
|
|
17
|
+
const classValues = {};
|
|
18
|
+
if (!this.isMaterialIcon) {
|
|
19
|
+
classValues[this.name] = true;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
classValues['material-icon'] = true;
|
|
23
|
+
}
|
|
24
|
+
if (this.materialOutline) {
|
|
25
|
+
classValues['material-icons-outlined'] = true;
|
|
26
|
+
}
|
|
27
|
+
classValues[`apipass-icon-${this.type}`] = true;
|
|
28
|
+
if (this.isActive) {
|
|
29
|
+
classValues[`apipass-icon-${this.type}-active`] = true;
|
|
30
|
+
}
|
|
31
|
+
if (((_b = (_a = this.onClick) === null || _a === void 0 ? void 0 : _a.observers) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
32
|
+
classValues[`clickable`] = true;
|
|
33
|
+
}
|
|
34
|
+
return classValues;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
IconComponent.decorators = [
|
|
38
|
+
{ type: Component, args: [{
|
|
39
|
+
selector: 'icon',
|
|
40
|
+
template: "<i *ngIf=\"!isMaterialIcon && name && !routerLink && !link\" [matTooltip]=\"title || ''\"\r\n [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\" (click)=\"click()\"></i>\r\n\r\n<mat-icon *ngIf=\"isMaterialIcon && name && !routerLink && !link\" [matTooltip]=\"title || ''\"\r\n [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\" (click)=\"click()\">{{this.name}}</mat-icon>\r\n\r\n<a *ngIf=\"name && routerLink\" [matTooltip]=\"title || ''\"\r\n [routerLinkActive]=\"routerLinkActive || ''\" [routerLink]=\"routerLink\" (click)=\"click()\">\r\n <i *ngIf=\"!isMaterialIcon\" [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\"></i>\r\n <mat-icon *ngIf=\"isMaterialIcon\" [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\">{{this.name}}</mat-icon>\r\n</a>\r\n\r\n<a *ngIf=\"name && link\" [matTooltip]=\"title || ''\"\r\n [routerLinkActive]=\"routerLinkActive || ''\" [href]=\"link\" [target]=\"target\" (click)=\"click()\">\r\n <i *ngIf=\"!isMaterialIcon\" [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\"></i>\r\n <mat-icon *ngIf=\"isMaterialIcon\" [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\">{{this.name}}</mat-icon>\r\n</a>\r\n",
|
|
41
|
+
styles: [":root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}.apipass-icon-primary{color:var(--color-primary)}.apipass-icon-secondary{color:var(--color-secondary)}.apipass-icon-tertiary{color:var(--color-fonts-tertiary)}.apipass-icon-remove{color:var(--color_icon_remove)}.apipass-icon-success{color:var(--color_icon_success)}.apipass-icon-white{color:#fff}.apipass-icon-white-active{color:var(--color-secondary)}.clickable{cursor:pointer}.apipass-custom-icon{background-repeat:no-repeat;background-size:100%;display:block;height:100%;width:100%}.apipass-custom-faq-icon{background-image:url(/assets/images/icons/custom/apipass-custom-faq-icon.png)}.apipass-custom-chat-icon{background-image:url(/assets/images/icons/custom/apipass-custom-chat-icon.png)}.apipass-custom-mouse-icon{background-image:url(/assets/images/icons/custom/apipass-custom-mouse-icon.png)}.apipass-customization-icon{background-image:url(/assets/images/icons/custom/apipass-customization-icon.png)}"]
|
|
42
|
+
},] }
|
|
43
|
+
];
|
|
44
|
+
IconComponent.propDecorators = {
|
|
45
|
+
name: [{ type: Input }],
|
|
46
|
+
title: [{ type: Input }],
|
|
47
|
+
type: [{ type: Input }],
|
|
48
|
+
size: [{ type: Input }],
|
|
49
|
+
isMaterialIcon: [{ type: Input }],
|
|
50
|
+
materialOutline: [{ type: Input }],
|
|
51
|
+
routerLinkActive: [{ type: Input }],
|
|
52
|
+
routerLink: [{ type: Input }],
|
|
53
|
+
link: [{ type: Input }],
|
|
54
|
+
target: [{ type: Input }],
|
|
55
|
+
isActive: [{ type: Input }],
|
|
56
|
+
onClick: [{ type: Output }]
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9pY29ucy9zcmMvbGliL2ljb24uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLFlBQVksRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFPdkUsTUFBTSxPQUFPLGFBQWE7SUFMMUI7UUFTa0IsU0FBSSxHQUFHLFNBQVMsQ0FBQztRQUVqQixtQkFBYyxHQUFHLEtBQUssQ0FBQztRQUN2QixvQkFBZSxHQUFHLEtBQUssQ0FBQztRQVN2QixZQUFPLEdBQTBCLElBQUksWUFBWSxFQUFFLENBQUM7SUE4QnZFLENBQUM7SUE1QlEsS0FBSztRQUNWLElBQUksQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQzFCLENBQUM7SUFFRCxXQUFXO1FBQ1QsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxHQUFHLElBQUksQ0FBQyxJQUFJLElBQUksQ0FBQyxDQUFDLENBQUMsU0FBUyxDQUF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SB7XHJcbiAgICByZXR1cm4gdGhpcy5zaXplID8gYCR7dGhpcy5zaXplfXB4YCA6ICdpbmhlcml0JztcclxuICB9XHJcblxyXG4gIGdldENsYXNzKCkge1xyXG4gICAgY29uc3QgY2xhc3NWYWx1ZXM6IGFueSA9IHt9O1xyXG4gICAgaWYgKCF0aGlzLmlzTWF0ZXJpYWxJY29uKSB7XHJcbiAgICAgIGNsYXNzVmFsdWVzW3RoaXMubmFtZV0gPSB0cnVlO1xyXG4gICAgfSBlbHNlIHtcclxuICAgICAgY2xhc3NWYWx1ZXNbJ21hdGVyaWFsLWljb24nXSA9IHRydWU7XHJcbiAgICB9XHJcbiAgICBpZiAodGhpcy5tYXRlcmlhbE91dGxpbmUpIHtcclxuICAgICAgY2xhc3NWYWx1ZXNbJ21hdGVyaWFsLWljb25zLW91dGxpbmVkJ10gPSB0cnVlO1xyXG4gICAgfVxyXG4gICAgY2xhc3NWYWx1ZXNbYGFwaXBhc3MtaWNvbi0ke3RoaXMudHlwZX1gXSA9IHRydWU7XHJcbiAgICBpZiAodGhpcy5pc0FjdGl2ZSkge1xyXG4gICAgICBjbGFzc1ZhbHVlc1tgYXBpcGFzcy1pY29uLSR7dGhpcy50eXBlfS1hY3RpdmVgXSA9IHRydWU7XHJcbiAgICB9XHJcbiAgICBpZiAodGhpcy5vbkNsaWNrPy5vYnNlcnZlcnM/Lmxlbmd0aCA+IDApIHtcclxuICAgICAgY2xhc3NWYWx1ZXNbYGNsaWNrYWJsZWBdID0gdHJ1ZTtcclxuICAgIH1cclxuICAgIHJldHVybiBjbGFzc1ZhbHVlcztcclxuICB9XHJcblxyXG59XHJcbiJdfQ==
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
4
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
5
|
+
import { IconComponent } from "./icon.component";
|
|
6
|
+
import { RouterModule } from "@angular/router";
|
|
7
|
+
export class IconsModule {
|
|
8
|
+
}
|
|
9
|
+
IconsModule.decorators = [
|
|
10
|
+
{ type: NgModule, args: [{
|
|
11
|
+
imports: [
|
|
12
|
+
CommonModule,
|
|
13
|
+
MatIconModule,
|
|
14
|
+
MatTooltipModule,
|
|
15
|
+
RouterModule.forChild([])
|
|
16
|
+
],
|
|
17
|
+
declarations: [
|
|
18
|
+
IconComponent
|
|
19
|
+
],
|
|
20
|
+
exports: [
|
|
21
|
+
IconComponent
|
|
22
|
+
],
|
|
23
|
+
providers: []
|
|
24
|
+
},] }
|
|
25
|
+
];
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbnMubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvaWNvbnMvc3JjL2xpYi9pY29ucy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN2QyxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDN0MsT0FBTyxFQUFDLGFBQWEsRUFBQyxNQUFNLHdCQUF3QixDQUFDO0FBQ3JELE9BQU8sRUFBQyxnQkFBZ0IsRUFBQyxNQUFNLDJCQUEyQixDQUFDO0FBQzNELE9BQU8sRUFBQyxhQUFhLEVBQUMsTUFBTSxrQkFBa0IsQ0FBQztBQUMvQyxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFpQjdDLE1BQU0sT0FBTyxXQUFXOzs7WUFmdkIsUUFBUSxTQUFDO2dCQUNSLE9BQU8sRUFBRTtvQkFDUCxZQUFZO29CQUNaLGFBQWE7b0JBQ2IsZ0JBQWdCO29CQUNoQixZQUFZLENBQUMsUUF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/icon.component';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2ljb25zL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyxzQkFBc0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbGliL2ljb25zLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9pY29uLmNvbXBvbmVudCc7XG4iXX0=
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
4
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
5
|
+
import { RouterModule } from '@angular/router';
|
|
6
|
+
|
|
7
|
+
class IconComponent {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.type = 'primary';
|
|
10
|
+
this.isMaterialIcon = false;
|
|
11
|
+
this.materialOutline = false;
|
|
12
|
+
this.onClick = new EventEmitter();
|
|
13
|
+
}
|
|
14
|
+
click() {
|
|
15
|
+
this.onClick.emit(true);
|
|
16
|
+
}
|
|
17
|
+
getFontSize() {
|
|
18
|
+
return this.size ? `${this.size}px` : 'inherit';
|
|
19
|
+
}
|
|
20
|
+
getClass() {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
const classValues = {};
|
|
23
|
+
if (!this.isMaterialIcon) {
|
|
24
|
+
classValues[this.name] = true;
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
classValues['material-icon'] = true;
|
|
28
|
+
}
|
|
29
|
+
if (this.materialOutline) {
|
|
30
|
+
classValues['material-icons-outlined'] = true;
|
|
31
|
+
}
|
|
32
|
+
classValues[`apipass-icon-${this.type}`] = true;
|
|
33
|
+
if (this.isActive) {
|
|
34
|
+
classValues[`apipass-icon-${this.type}-active`] = true;
|
|
35
|
+
}
|
|
36
|
+
if (((_b = (_a = this.onClick) === null || _a === void 0 ? void 0 : _a.observers) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
37
|
+
classValues[`clickable`] = true;
|
|
38
|
+
}
|
|
39
|
+
return classValues;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
IconComponent.decorators = [
|
|
43
|
+
{ type: Component, args: [{
|
|
44
|
+
selector: 'icon',
|
|
45
|
+
template: "<i *ngIf=\"!isMaterialIcon && name && !routerLink && !link\" [matTooltip]=\"title || ''\"\r\n [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\" (click)=\"click()\"></i>\r\n\r\n<mat-icon *ngIf=\"isMaterialIcon && name && !routerLink && !link\" [matTooltip]=\"title || ''\"\r\n [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\" (click)=\"click()\">{{this.name}}</mat-icon>\r\n\r\n<a *ngIf=\"name && routerLink\" [matTooltip]=\"title || ''\"\r\n [routerLinkActive]=\"routerLinkActive || ''\" [routerLink]=\"routerLink\" (click)=\"click()\">\r\n <i *ngIf=\"!isMaterialIcon\" [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\"></i>\r\n <mat-icon *ngIf=\"isMaterialIcon\" [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\">{{this.name}}</mat-icon>\r\n</a>\r\n\r\n<a *ngIf=\"name && link\" [matTooltip]=\"title || ''\"\r\n [routerLinkActive]=\"routerLinkActive || ''\" [href]=\"link\" [target]=\"target\" (click)=\"click()\">\r\n <i *ngIf=\"!isMaterialIcon\" [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\"></i>\r\n <mat-icon *ngIf=\"isMaterialIcon\" [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\">{{this.name}}</mat-icon>\r\n</a>\r\n",
|
|
46
|
+
styles: [":root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}.apipass-icon-primary{color:var(--color-primary)}.apipass-icon-secondary{color:var(--color-secondary)}.apipass-icon-tertiary{color:var(--color-fonts-tertiary)}.apipass-icon-remove{color:var(--color_icon_remove)}.apipass-icon-success{color:var(--color_icon_success)}.apipass-icon-white{color:#fff}.apipass-icon-white-active{color:var(--color-secondary)}.clickable{cursor:pointer}.apipass-custom-icon{background-repeat:no-repeat;background-size:100%;display:block;height:100%;width:100%}.apipass-custom-faq-icon{background-image:url(/assets/images/icons/custom/apipass-custom-faq-icon.png)}.apipass-custom-chat-icon{background-image:url(/assets/images/icons/custom/apipass-custom-chat-icon.png)}.apipass-custom-mouse-icon{background-image:url(/assets/images/icons/custom/apipass-custom-mouse-icon.png)}.apipass-customization-icon{background-image:url(/assets/images/icons/custom/apipass-customization-icon.png)}"]
|
|
47
|
+
},] }
|
|
48
|
+
];
|
|
49
|
+
IconComponent.propDecorators = {
|
|
50
|
+
name: [{ type: Input }],
|
|
51
|
+
title: [{ type: Input }],
|
|
52
|
+
type: [{ type: Input }],
|
|
53
|
+
size: [{ type: Input }],
|
|
54
|
+
isMaterialIcon: [{ type: Input }],
|
|
55
|
+
materialOutline: [{ type: Input }],
|
|
56
|
+
routerLinkActive: [{ type: Input }],
|
|
57
|
+
routerLink: [{ type: Input }],
|
|
58
|
+
link: [{ type: Input }],
|
|
59
|
+
target: [{ type: Input }],
|
|
60
|
+
isActive: [{ type: Input }],
|
|
61
|
+
onClick: [{ type: Output }]
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
class IconsModule {
|
|
65
|
+
}
|
|
66
|
+
IconsModule.decorators = [
|
|
67
|
+
{ type: NgModule, args: [{
|
|
68
|
+
imports: [
|
|
69
|
+
CommonModule,
|
|
70
|
+
MatIconModule,
|
|
71
|
+
MatTooltipModule,
|
|
72
|
+
RouterModule.forChild([])
|
|
73
|
+
],
|
|
74
|
+
declarations: [
|
|
75
|
+
IconComponent
|
|
76
|
+
],
|
|
77
|
+
exports: [
|
|
78
|
+
IconComponent
|
|
79
|
+
],
|
|
80
|
+
providers: []
|
|
81
|
+
},] }
|
|
82
|
+
];
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Generated bundle index. Do not edit.
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
|
+
export { IconComponent, IconsModule };
|
|
89
|
+
//# sourceMappingURL=apipass-icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apipass-icons.js","sources":["../../../projects/icons/src/lib/icon.component.ts","../../../projects/icons/src/lib/icons.module.ts","../../../projects/icons/src/apipass-icons.ts"],"sourcesContent":["import { Component, Input, EventEmitter, Output } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'icon',\r\n templateUrl: 'icon.component.html',\r\n styleUrls: ['icon.component.scss']\r\n})\r\nexport class IconComponent {\r\n\r\n @Input() public name: any;\r\n @Input() public title: any;\r\n @Input() public type = 'primary';\r\n @Input() public size: any;\r\n @Input() public isMaterialIcon = false;\r\n @Input() public materialOutline = false;\r\n\r\n @Input() public routerLinkActive: any;\r\n @Input() public routerLink: any;\r\n\r\n @Input() public link: any;\r\n @Input() public target: any;\r\n @Input() public isActive: any;\r\n\r\n @Output() public onClick: EventEmitter<boolean> = new EventEmitter();\r\n\r\n public click() {\r\n this.onClick.emit(true);\r\n }\r\n\r\n getFontSize() {\r\n return this.size ? `${this.size}px` : 'inherit';\r\n }\r\n\r\n getClass() {\r\n const classValues: any = {};\r\n if (!this.isMaterialIcon) {\r\n classValues[this.name] = true;\r\n } else {\r\n classValues['material-icon'] = true;\r\n }\r\n if (this.materialOutline) {\r\n classValues['material-icons-outlined'] = true;\r\n }\r\n classValues[`apipass-icon-${this.type}`] = true;\r\n if (this.isActive) {\r\n classValues[`apipass-icon-${this.type}-active`] = true;\r\n }\r\n if (this.onClick?.observers?.length > 0) {\r\n classValues[`clickable`] = true;\r\n }\r\n return classValues;\r\n }\r\n\r\n}\r\n","import {NgModule} from '@angular/core';\r\nimport {CommonModule} from '@angular/common';\r\nimport {MatIconModule} from '@angular/material/icon';\r\nimport {MatTooltipModule} from '@angular/material/tooltip';\r\nimport {IconComponent} from \"./icon.component\";\r\nimport {RouterModule} from \"@angular/router\";\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n MatIconModule,\r\n MatTooltipModule,\r\n RouterModule.forChild([])\r\n ],\r\n declarations: [\r\n IconComponent\r\n ],\r\n exports: [\r\n IconComponent\r\n ],\r\n providers: []\r\n})\r\nexport class IconsModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAOa,aAAa;IAL1B;QASkB,SAAI,GAAG,SAAS,CAAC;QAEjB,mBAAc,GAAG,KAAK,CAAC;QACvB,oBAAe,GAAG,KAAK,CAAC;QASvB,YAAO,GAA0B,IAAI,YAAY,EAAE,CAAC;KA8BtE;IA5BQ,KAAK;QACV,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACzB;IAED,WAAW;QACT,OAAO,IAAI,CAAC,IAAI,GAAG,GAAG,IAAI,CAAC,IAAI,IAAI,GAAG,SAAS,CAAC;KACjD;IAED,QAAQ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
|
|
3
|
+
name: any;
|
|
4
|
+
title: any;
|
|
5
|
+
type: string;
|
|
6
|
+
size: any;
|
|
7
|
+
isMaterialIcon: boolean;
|
|
8
|
+
materialOutline: boolean;
|
|
9
|
+
routerLinkActive: any;
|
|
10
|
+
routerLink: any;
|
|
11
|
+
link: any;
|
|
12
|
+
target: any;
|
|
13
|
+
isActive: any;
|
|
14
|
+
onClick: EventEmitter<boolean>;
|
|
15
|
+
click(): void;
|
|
16
|
+
getFontSize(): string;
|
|
17
|
+
getClass(): any;
|
|
18
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@apipass/icons",
|
|
3
|
+
"version": "0.1.1-beta.10",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "10.0.11",
|
|
6
|
+
"@angular/animations": "10.0.11",
|
|
7
|
+
"@angular/core": "10.0.11",
|
|
8
|
+
"@angular/forms": "10.0.11",
|
|
9
|
+
"@angular/cdk": "10.0.2"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@angular/common": "10.0.11",
|
|
13
|
+
"@angular/animations": "10.0.11",
|
|
14
|
+
"@angular/core": "10.0.11",
|
|
15
|
+
"@angular/forms": "10.0.11",
|
|
16
|
+
"@angular/cdk": "10.0.2",
|
|
17
|
+
"@angular/material": "10.0.2",
|
|
18
|
+
"tslib": "2.0.0",
|
|
19
|
+
"@fortawesome/angular-fontawesome": "^0.7.0",
|
|
20
|
+
"@fortawesome/fontawesome-free": "^5.14.0",
|
|
21
|
+
"@fortawesome/fontawesome-svg-core": "^1.2.30",
|
|
22
|
+
"@fortawesome/free-solid-svg-icons": "^5.14.0"
|
|
23
|
+
},
|
|
24
|
+
"main": "bundles/apipass-icons.umd.js",
|
|
25
|
+
"module": "fesm2015/apipass-icons.js",
|
|
26
|
+
"es2015": "fesm2015/apipass-icons.js",
|
|
27
|
+
"esm2015": "esm2015/apipass-icons.js",
|
|
28
|
+
"fesm2015": "fesm2015/apipass-icons.js",
|
|
29
|
+
"typings": "apipass-icons.d.ts",
|
|
30
|
+
"metadata": "apipass-icons.metadata.json",
|
|
31
|
+
"sideEffects": false
|
|
32
|
+
}
|
package/public-api.d.ts
ADDED