@apipass/icons 0.2.16 → 1.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.
@@ -1,34 +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
- }
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
+ }
@@ -1,30 +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
- }
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
+ }
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
5
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpcGFzcy1pY29ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2ljb25zL3NyYy9hcGlwYXNzLWljb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0=
@@ -0,0 +1,71 @@
1
+ import { Component, Input, EventEmitter, Output } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@angular/common";
4
+ import * as i2 from "@angular/material/icon";
5
+ import * as i3 from "@angular/material/tooltip";
6
+ import * as i4 from "@angular/router";
7
+ export 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
+ const classValues = {};
22
+ if (!this.isMaterialIcon) {
23
+ classValues[this.name] = true;
24
+ }
25
+ else {
26
+ classValues['material-icon'] = true;
27
+ }
28
+ if (this.materialOutline) {
29
+ classValues['material-icons-outlined'] = true;
30
+ }
31
+ classValues[`apipass-icon-${this.type}`] = true;
32
+ if (this.isActive) {
33
+ classValues[`apipass-icon-${this.type}-active`] = true;
34
+ }
35
+ if (this.onClick?.observers?.length > 0) {
36
+ classValues[`clickable`] = true;
37
+ }
38
+ return classValues;
39
+ }
40
+ }
41
+ IconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
42
+ IconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.3", type: IconComponent, selector: "icon", inputs: { name: "name", title: "title", type: "type", size: "size", isMaterialIcon: "isMaterialIcon", materialOutline: "materialOutline", routerLinkActive: "routerLinkActive", routerLink: "routerLink", link: "link", target: "target", isActive: "isActive" }, outputs: { onClick: "onClick" }, ngImport: i0, 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-primary: #222D57;--color-primary-hover: #18203D;--color-primary-active: #29376A;--color-secondary: #D3D921;--color-secondary-hover: #B3B81C;--color-secondary-active: #DCE13F;--color-tertiary: #EFEFEF;--color-tertiary-hover: #CBCBCB;--color-tertiary-active: #F1F1F1;--color-fonts-tertiary: #777777;--color-body-light: #FFF;--color-red: rgb(255, 0, 0);--limit-plan-color: #ff6c00;--color_disabled: #E0E0E0;--color_components_light: #FFF;--color-inputs-border: #DDD;--color-inputs-background: #FFF;--color_icon_remove: var(--color-red);--color_icon_success: #070;--color_graph_primary: #1643EF;--color_graph_primary_hover: #0A2692;--color_graph_error: #EB5757;--color_graph_error_hover: #C91717}.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{display:block;width:100%;height:100%;background-repeat:no-repeat;background-size: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)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: i4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i4.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }] });
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: IconComponent, decorators: [{
44
+ type: Component,
45
+ 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-primary: #222D57;--color-primary-hover: #18203D;--color-primary-active: #29376A;--color-secondary: #D3D921;--color-secondary-hover: #B3B81C;--color-secondary-active: #DCE13F;--color-tertiary: #EFEFEF;--color-tertiary-hover: #CBCBCB;--color-tertiary-active: #F1F1F1;--color-fonts-tertiary: #777777;--color-body-light: #FFF;--color-red: rgb(255, 0, 0);--limit-plan-color: #ff6c00;--color_disabled: #E0E0E0;--color_components_light: #FFF;--color-inputs-border: #DDD;--color-inputs-background: #FFF;--color_icon_remove: var(--color-red);--color_icon_success: #070;--color_graph_primary: #1643EF;--color_graph_primary_hover: #0A2692;--color_graph_error: #EB5757;--color_graph_error_hover: #C91717}.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{display:block;width:100%;height:100%;background-repeat:no-repeat;background-size: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)}\n"] }]
46
+ }], propDecorators: { name: [{
47
+ type: Input
48
+ }], title: [{
49
+ type: Input
50
+ }], type: [{
51
+ type: Input
52
+ }], size: [{
53
+ type: Input
54
+ }], isMaterialIcon: [{
55
+ type: Input
56
+ }], materialOutline: [{
57
+ type: Input
58
+ }], routerLinkActive: [{
59
+ type: Input
60
+ }], routerLink: [{
61
+ type: Input
62
+ }], link: [{
63
+ type: Input
64
+ }], target: [{
65
+ type: Input
66
+ }], isActive: [{
67
+ type: Input
68
+ }], onClick: [{
69
+ type: Output
70
+ }] } });
71
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9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Q2xhc3NdPVwiZ2V0Q2xhc3MoKVwiIFtuZ1N0eWxlXT1cInsnZm9udC1zaXplJzogZ2V0Rm9udFNpemUoKX1cIj48L2k+XHJcbiAgPG1hdC1pY29uICpuZ0lmPVwiaXNNYXRlcmlhbEljb25cIiBbbmdDbGFzc109XCJnZXRDbGFzcygpXCIgW25nU3R5bGVdPVwieydmb250LXNpemUnOiBnZXRGb250U2l6ZSgpfVwiPnt7dGhpcy5uYW1lfX08L21hdC1pY29uPlxyXG48L2E+XHJcbiJdfQ==
@@ -0,0 +1,37 @@
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
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "@angular/router";
9
+ export class IconsModule {
10
+ }
11
+ IconsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: IconsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
12
+ IconsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: IconsModule, declarations: [IconComponent], imports: [CommonModule,
13
+ MatIconModule,
14
+ MatTooltipModule, i1.RouterModule], exports: [IconComponent] });
15
+ IconsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: IconsModule, imports: [CommonModule,
16
+ MatIconModule,
17
+ MatTooltipModule,
18
+ RouterModule.forChild([])] });
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: IconsModule, decorators: [{
20
+ type: NgModule,
21
+ args: [{
22
+ imports: [
23
+ CommonModule,
24
+ MatIconModule,
25
+ MatTooltipModule,
26
+ RouterModule.forChild([])
27
+ ],
28
+ declarations: [
29
+ I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FZLEVBQUU7d0JBQ1osYUFBYTtxQkFDZDtvQkFDRCxPQUFPLEVBQUU7d0JBQ1AsYUFBYTtxQkFDZDtvQkFDRCxTQUFTLEVBQUUsRUFBRTtpQkFDZCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7TmdNb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xyXG5pbXBvcnQge0NvbW1vbk1vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcclxuaW1wb3J0IHtNYXRJY29uTW9kdWxlfSBmcm9tICdAYW5ndWxhci9tYXRlcmlhbC9pY29uJztcclxuaW1wb3J0IHtNYXRUb29sdGlwTW9kdWxlfSBmcm9tICdAYW5ndWxhci9tYXRlcmlhbC90b29sdGlwJztcclxuaW1wb3J0IHtJY29uQ29tcG9uZW50fSBmcm9tICcuL2ljb24uY29tcG9uZW50JztcclxuaW1wb3J0IHtSb3V0ZXJNb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL3JvdXRlcic7XHJcblxyXG5ATmdNb2R1bGUoe1xyXG4gIGltcG9ydHM6IFtcclxuICAgIENvbW1vbk1vZHVsZSxcclxuICAgIE1hdEljb25Nb2R1bGUsXHJcbiAgICBNYXRUb29sdGlwTW9kdWxlLFxyXG4gICAgUm91dGVyTW9kdWxlLmZvckNoaWxkKFtdKVxyXG4gIF0sXHJcbiAgZGVjbGFyYXRpb25zOiBbXHJcbiAgICBJY29uQ29tcG9uZW50XHJcbiAgXSxcclxuICBleHBvcnRzOiBbXHJcbiAgICBJY29uQ29tcG9uZW50XHJcbiAgXSxcclxuICBwcm92aWRlcnM6IFtdXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBJY29uc01vZHVsZSB7IH1cclxuIl19
@@ -1,3 +1,3 @@
1
- export * from './lib/icons.module';
2
- export * from './lib/icon.component';
1
+ export * from './lib/icons.module';
2
+ export * from './lib/icon.component';
3
3
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2ljb25zL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyxzQkFBc0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbGliL2ljb25zLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9pY29uLmNvbXBvbmVudCc7XG4iXX0=
@@ -0,0 +1,113 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i2 from '@angular/material/icon';
6
+ import { MatIconModule } from '@angular/material/icon';
7
+ import * as i3 from '@angular/material/tooltip';
8
+ import { MatTooltipModule } from '@angular/material/tooltip';
9
+ import * as i4 from '@angular/router';
10
+ import { RouterModule } from '@angular/router';
11
+
12
+ class IconComponent {
13
+ constructor() {
14
+ this.type = 'primary';
15
+ this.isMaterialIcon = false;
16
+ this.materialOutline = false;
17
+ this.onClick = new EventEmitter();
18
+ }
19
+ click() {
20
+ this.onClick.emit(true);
21
+ }
22
+ getFontSize() {
23
+ return this.size ? `${this.size}px` : 'inherit';
24
+ }
25
+ getClass() {
26
+ var _a, _b;
27
+ const classValues = {};
28
+ if (!this.isMaterialIcon) {
29
+ classValues[this.name] = true;
30
+ }
31
+ else {
32
+ classValues['material-icon'] = true;
33
+ }
34
+ if (this.materialOutline) {
35
+ classValues['material-icons-outlined'] = true;
36
+ }
37
+ classValues[`apipass-icon-${this.type}`] = true;
38
+ if (this.isActive) {
39
+ classValues[`apipass-icon-${this.type}-active`] = true;
40
+ }
41
+ if (((_b = (_a = this.onClick) === null || _a === void 0 ? void 0 : _a.observers) === null || _b === void 0 ? void 0 : _b.length) > 0) {
42
+ classValues[`clickable`] = true;
43
+ }
44
+ return classValues;
45
+ }
46
+ }
47
+ IconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
48
+ IconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.3", type: IconComponent, selector: "icon", inputs: { name: "name", title: "title", type: "type", size: "size", isMaterialIcon: "isMaterialIcon", materialOutline: "materialOutline", routerLinkActive: "routerLinkActive", routerLink: "routerLink", link: "link", target: "target", isActive: "isActive" }, outputs: { onClick: "onClick" }, ngImport: i0, 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-primary: #222D57;--color-primary-hover: #18203D;--color-primary-active: #29376A;--color-secondary: #D3D921;--color-secondary-hover: #B3B81C;--color-secondary-active: #DCE13F;--color-tertiary: #EFEFEF;--color-tertiary-hover: #CBCBCB;--color-tertiary-active: #F1F1F1;--color-fonts-tertiary: #777777;--color-body-light: #FFF;--color-red: rgb(255, 0, 0);--limit-plan-color: #ff6c00;--color_disabled: #E0E0E0;--color_components_light: #FFF;--color-inputs-border: #DDD;--color-inputs-background: #FFF;--color_icon_remove: var(--color-red);--color_icon_success: #070;--color_graph_primary: #1643EF;--color_graph_primary_hover: #0A2692;--color_graph_error: #EB5757;--color_graph_error_hover: #C91717}.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{display:block;width:100%;height:100%;background-repeat:no-repeat;background-size: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)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: i4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i4.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }] });
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: IconComponent, decorators: [{
50
+ type: Component,
51
+ 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-primary: #222D57;--color-primary-hover: #18203D;--color-primary-active: #29376A;--color-secondary: #D3D921;--color-secondary-hover: #B3B81C;--color-secondary-active: #DCE13F;--color-tertiary: #EFEFEF;--color-tertiary-hover: #CBCBCB;--color-tertiary-active: #F1F1F1;--color-fonts-tertiary: #777777;--color-body-light: #FFF;--color-red: rgb(255, 0, 0);--limit-plan-color: #ff6c00;--color_disabled: #E0E0E0;--color_components_light: #FFF;--color-inputs-border: #DDD;--color-inputs-background: #FFF;--color_icon_remove: var(--color-red);--color_icon_success: #070;--color_graph_primary: #1643EF;--color_graph_primary_hover: #0A2692;--color_graph_error: #EB5757;--color_graph_error_hover: #C91717}.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{display:block;width:100%;height:100%;background-repeat:no-repeat;background-size: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)}\n"] }]
52
+ }], propDecorators: { name: [{
53
+ type: Input
54
+ }], title: [{
55
+ type: Input
56
+ }], type: [{
57
+ type: Input
58
+ }], size: [{
59
+ type: Input
60
+ }], isMaterialIcon: [{
61
+ type: Input
62
+ }], materialOutline: [{
63
+ type: Input
64
+ }], routerLinkActive: [{
65
+ type: Input
66
+ }], routerLink: [{
67
+ type: Input
68
+ }], link: [{
69
+ type: Input
70
+ }], target: [{
71
+ type: Input
72
+ }], isActive: [{
73
+ type: Input
74
+ }], onClick: [{
75
+ type: Output
76
+ }] } });
77
+
78
+ class IconsModule {
79
+ }
80
+ IconsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: IconsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
81
+ IconsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: IconsModule, declarations: [IconComponent], imports: [CommonModule,
82
+ MatIconModule,
83
+ MatTooltipModule, i4.RouterModule], exports: [IconComponent] });
84
+ IconsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: IconsModule, imports: [CommonModule,
85
+ MatIconModule,
86
+ MatTooltipModule,
87
+ RouterModule.forChild([])] });
88
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: IconsModule, decorators: [{
89
+ type: NgModule,
90
+ args: [{
91
+ imports: [
92
+ CommonModule,
93
+ MatIconModule,
94
+ MatTooltipModule,
95
+ RouterModule.forChild([])
96
+ ],
97
+ declarations: [
98
+ IconComponent
99
+ ],
100
+ exports: [
101
+ IconComponent
102
+ ],
103
+ providers: []
104
+ }]
105
+ }] });
106
+
107
+ /**
108
+ * Generated bundle index. Do not edit.
109
+ */
110
+
111
+ export { IconComponent, IconsModule };
112
+ //# sourceMappingURL=apipass-icons.mjs.map
113
+ //# sourceMappingURL=apipass-icons.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apipass-icons.mjs","sources":["../../../projects/icons/src/lib/icon.component.ts","../../../projects/icons/src/lib/icon.component.html","../../../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(): void {\r\n this.onClick.emit(true);\r\n }\r\n\r\n getFontSize(): string {\r\n return this.size ? `${this.size}px` : 'inherit';\r\n }\r\n\r\n getClass(): any {\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","<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","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,CAAA;AAL1B,IAAA,WAAA,GAAA;AASkB,QAAA,IAAI,CAAA,IAAA,GAAG,SAAS,CAAC;AAEjB,QAAA,IAAc,CAAA,cAAA,GAAG,KAAK,CAAC;AACvB,QAAA,IAAe,CAAA,eAAA,GAAG,KAAK,CAAC;AASvB,QAAA,IAAA,CAAA,OAAO,GAA0B,IAAI,YAAY,EAAE,CAAC;KA8BtE;IA5BQ,KAAK,GAAA;AACV,Q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EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAW,YAbpB,YAAY;QACZ,aAAa;QACb,gBAAgB;QAChB,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;2FAUhB,WAAW,EAAA,UAAA,EAAA,CAAA;kBAfvB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,aAAa;wBACb,gBAAgB;AAChB,wBAAA,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC;AAC1B,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACZ,aAAa;AACd,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,aAAa;AACd,qBAAA;AACD,oBAAA,SAAS,EAAE,EAAE;iBACd,CAAA;;;ACrBD;;AAEG;;;;"}
@@ -0,0 +1,112 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i2 from '@angular/material/icon';
6
+ import { MatIconModule } from '@angular/material/icon';
7
+ import * as i3 from '@angular/material/tooltip';
8
+ import { MatTooltipModule } from '@angular/material/tooltip';
9
+ import * as i4 from '@angular/router';
10
+ import { RouterModule } from '@angular/router';
11
+
12
+ class IconComponent {
13
+ constructor() {
14
+ this.type = 'primary';
15
+ this.isMaterialIcon = false;
16
+ this.materialOutline = false;
17
+ this.onClick = new EventEmitter();
18
+ }
19
+ click() {
20
+ this.onClick.emit(true);
21
+ }
22
+ getFontSize() {
23
+ return this.size ? `${this.size}px` : 'inherit';
24
+ }
25
+ getClass() {
26
+ const classValues = {};
27
+ if (!this.isMaterialIcon) {
28
+ classValues[this.name] = true;
29
+ }
30
+ else {
31
+ classValues['material-icon'] = true;
32
+ }
33
+ if (this.materialOutline) {
34
+ classValues['material-icons-outlined'] = true;
35
+ }
36
+ classValues[`apipass-icon-${this.type}`] = true;
37
+ if (this.isActive) {
38
+ classValues[`apipass-icon-${this.type}-active`] = true;
39
+ }
40
+ if (this.onClick?.observers?.length > 0) {
41
+ classValues[`clickable`] = true;
42
+ }
43
+ return classValues;
44
+ }
45
+ }
46
+ IconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
47
+ IconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.3", type: IconComponent, selector: "icon", inputs: { name: "name", title: "title", type: "type", size: "size", isMaterialIcon: "isMaterialIcon", materialOutline: "materialOutline", routerLinkActive: "routerLinkActive", routerLink: "routerLink", link: "link", target: "target", isActive: "isActive" }, outputs: { onClick: "onClick" }, ngImport: i0, 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-primary: #222D57;--color-primary-hover: #18203D;--color-primary-active: #29376A;--color-secondary: #D3D921;--color-secondary-hover: #B3B81C;--color-secondary-active: #DCE13F;--color-tertiary: #EFEFEF;--color-tertiary-hover: #CBCBCB;--color-tertiary-active: #F1F1F1;--color-fonts-tertiary: #777777;--color-body-light: #FFF;--color-red: rgb(255, 0, 0);--limit-plan-color: #ff6c00;--color_disabled: #E0E0E0;--color_components_light: #FFF;--color-inputs-border: #DDD;--color-inputs-background: #FFF;--color_icon_remove: var(--color-red);--color_icon_success: #070;--color_graph_primary: #1643EF;--color_graph_primary_hover: #0A2692;--color_graph_error: #EB5757;--color_graph_error_hover: #C91717}.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{display:block;width:100%;height:100%;background-repeat:no-repeat;background-size: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)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: i4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i4.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }] });
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: IconComponent, decorators: [{
49
+ type: Component,
50
+ 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-primary: #222D57;--color-primary-hover: #18203D;--color-primary-active: #29376A;--color-secondary: #D3D921;--color-secondary-hover: #B3B81C;--color-secondary-active: #DCE13F;--color-tertiary: #EFEFEF;--color-tertiary-hover: #CBCBCB;--color-tertiary-active: #F1F1F1;--color-fonts-tertiary: #777777;--color-body-light: #FFF;--color-red: rgb(255, 0, 0);--limit-plan-color: #ff6c00;--color_disabled: #E0E0E0;--color_components_light: #FFF;--color-inputs-border: #DDD;--color-inputs-background: #FFF;--color_icon_remove: var(--color-red);--color_icon_success: #070;--color_graph_primary: #1643EF;--color_graph_primary_hover: #0A2692;--color_graph_error: #EB5757;--color_graph_error_hover: #C91717}.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{display:block;width:100%;height:100%;background-repeat:no-repeat;background-size: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)}\n"] }]
51
+ }], propDecorators: { name: [{
52
+ type: Input
53
+ }], title: [{
54
+ type: Input
55
+ }], type: [{
56
+ type: Input
57
+ }], size: [{
58
+ type: Input
59
+ }], isMaterialIcon: [{
60
+ type: Input
61
+ }], materialOutline: [{
62
+ type: Input
63
+ }], routerLinkActive: [{
64
+ type: Input
65
+ }], routerLink: [{
66
+ type: Input
67
+ }], link: [{
68
+ type: Input
69
+ }], target: [{
70
+ type: Input
71
+ }], isActive: [{
72
+ type: Input
73
+ }], onClick: [{
74
+ type: Output
75
+ }] } });
76
+
77
+ class IconsModule {
78
+ }
79
+ IconsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: IconsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
80
+ IconsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: IconsModule, declarations: [IconComponent], imports: [CommonModule,
81
+ MatIconModule,
82
+ MatTooltipModule, i4.RouterModule], exports: [IconComponent] });
83
+ IconsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: IconsModule, imports: [CommonModule,
84
+ MatIconModule,
85
+ MatTooltipModule,
86
+ RouterModule.forChild([])] });
87
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: IconsModule, decorators: [{
88
+ type: NgModule,
89
+ args: [{
90
+ imports: [
91
+ CommonModule,
92
+ MatIconModule,
93
+ MatTooltipModule,
94
+ RouterModule.forChild([])
95
+ ],
96
+ declarations: [
97
+ IconComponent
98
+ ],
99
+ exports: [
100
+ IconComponent
101
+ ],
102
+ providers: []
103
+ }]
104
+ }] });
105
+
106
+ /**
107
+ * Generated bundle index. Do not edit.
108
+ */
109
+
110
+ export { IconComponent, IconsModule };
111
+ //# sourceMappingURL=apipass-icons.mjs.map
112
+ //# sourceMappingURL=apipass-icons.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apipass-icons.mjs","sources":["../../../projects/icons/src/lib/icon.component.ts","../../../projects/icons/src/lib/icon.component.html","../../../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(): void {\r\n this.onClick.emit(true);\r\n }\r\n\r\n getFontSize(): string {\r\n return this.size ? `${this.size}px` : 'inherit';\r\n }\r\n\r\n getClass(): any {\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","<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","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,CAAA;AAL1B,IAAA,WAAA,GAAA;QASkB,IAAI,CAAA,IAAA,GAAG,SAAS,CAAC;QAEjB,IAAc,CAAA,cAAA,GAAG,KAAK,CAAC;QACvB,IAAe,CAAA,eAAA,GAAG,KAAK,CAAC;AASvB,QAAA,IAAA,CA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b,gBAAgB;AAChB,QAAA,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;2FAUhB,WAAW,EAAA,UAAA,EAAA,CAAA;kBAfvB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,aAAa;wBACb,gBAAgB;AAChB,wBAAA,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC;AAC1B,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACZ,aAAa;AACd,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,aAAa;AACd,qBAAA;AACD,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA,CAAA;;;ACrBD;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@apipass/icons" />
5
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@apipass/icons" />
5
+ export * from './public-api';