iptdevs-design-system 2.2.23 → 2.2.26
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/esm2020/lib/components/atoms/input/input.component.mjs +50 -8
- package/esm2020/lib/components/components.module.mjs +10 -3
- package/esm2020/lib/components/forms/login-form/login-form.component.mjs +1 -1
- package/fesm2015/iptdevs-design-system.mjs +59 -10
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +59 -10
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/components/atoms/input/input.component.d.ts +9 -2
- package/package.json +1 -1
|
@@ -3,21 +3,43 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
import * as i1 from "@angular/common";
|
|
4
4
|
import * as i2 from "@angular/forms";
|
|
5
5
|
export class InputComponent {
|
|
6
|
-
constructor() {
|
|
6
|
+
constructor(currencyPipe) {
|
|
7
|
+
this.currencyPipe = currencyPipe;
|
|
7
8
|
this.data = [];
|
|
8
9
|
this.clicked = false;
|
|
10
|
+
this.withPipe = false;
|
|
9
11
|
}
|
|
10
12
|
set control(value) {
|
|
11
13
|
if (this.formControl !== value) {
|
|
12
14
|
this.formControl = value;
|
|
13
15
|
}
|
|
14
16
|
}
|
|
17
|
+
ngOnInit() {
|
|
18
|
+
this.formControl = this.currenPipe(this.formControl.value);
|
|
19
|
+
// if (this.withPipe && this.formControl !== null) {
|
|
20
|
+
// console.log(this.withPipe, this.formControl, this.control);
|
|
21
|
+
// this.formControl.valueChanges.subscribe(value => {
|
|
22
|
+
// console.log(value);
|
|
23
|
+
// this.formControl.patchValue(
|
|
24
|
+
// { control: this.currencyPipe.transform(value)},
|
|
25
|
+
// { onlySelf: true, emitEvent: false}
|
|
26
|
+
// )
|
|
27
|
+
// })
|
|
28
|
+
// }
|
|
29
|
+
}
|
|
30
|
+
currenPipe(datControl) {
|
|
31
|
+
let formatted = new Intl.NumberFormat("en-US", {
|
|
32
|
+
style: 'currency',
|
|
33
|
+
currency: 'USD'
|
|
34
|
+
}).format(datControl);
|
|
35
|
+
return formatted;
|
|
36
|
+
}
|
|
15
37
|
click(value) {
|
|
16
38
|
this.clicked = value.isTrusted;
|
|
17
39
|
}
|
|
18
40
|
}
|
|
19
|
-
InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
-
InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: InputComponent, selector: "ipt-input", inputs: { inputType: "inputType", placeHolder: "placeHolder", validateText: "validateText", list: "list", iconUrl: "iconUrl", control: "control" }, ngImport: i0, template: `
|
|
41
|
+
InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, deps: [{ token: i1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Component });
|
|
42
|
+
InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: InputComponent, selector: "ipt-input", inputs: { inputType: "inputType", placeHolder: "placeHolder", validateText: "validateText", withPipe: "withPipe", list: "list", iconUrl: "iconUrl", control: "control" }, ngImport: i0, template: `
|
|
21
43
|
<div class="input-container">
|
|
22
44
|
<input *ngIf="inputType === 'date'"
|
|
23
45
|
class="input"
|
|
@@ -28,12 +50,21 @@ InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version
|
|
|
28
50
|
uib-datepicker-popup="dd/MM/yyyy"
|
|
29
51
|
ng-model="inputType"/>
|
|
30
52
|
|
|
31
|
-
<input *ngIf="inputType !== 'date' && inputType !== 'time'"
|
|
53
|
+
<input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
|
|
32
54
|
class="input"
|
|
55
|
+
type="{{ inputType }}"
|
|
56
|
+
[formControl]="formControl"
|
|
57
|
+
[attr.list]="list"/>
|
|
58
|
+
|
|
59
|
+
<input *ngIf="inputType === 'text' && withPipe"
|
|
33
60
|
class="input"
|
|
34
61
|
type="{{ inputType }}"
|
|
35
62
|
[formControl]="formControl"
|
|
36
63
|
[attr.list]="list"/>
|
|
64
|
+
<pre>
|
|
65
|
+
{{ formControl | json }}
|
|
66
|
+
{{ control | json }}
|
|
67
|
+
</pre>
|
|
37
68
|
|
|
38
69
|
<input *ngIf="inputType === 'time'"
|
|
39
70
|
class="input"
|
|
@@ -53,7 +84,7 @@ InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version
|
|
|
53
84
|
{{ validateText }}
|
|
54
85
|
</p>
|
|
55
86
|
</div>
|
|
56
|
-
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){p{color:#c73a3a;font-size:12px;padding-left:15px}}@media screen and (min-width: 768px){p{color:#c73a3a;font-size:13px;padding-left:15px}}@media screen and (min-width: 1024px){p{color:#c73a3a;font-size:13px;padding-left:15px}}.input-container{position:relative;margin-top:30px}input{box-shadow:#64646f33 0 7px 29px;border-radius:10px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.input:focus~label,.input:invalid~label{top:-20px;font-size:15px;color:#1c77f7}.labelUp{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
87
|
+
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){p{color:#c73a3a;font-size:12px;padding-left:15px}}@media screen and (min-width: 768px){p{color:#c73a3a;font-size:13px;padding-left:15px}}@media screen and (min-width: 1024px){p{color:#c73a3a;font-size:13px;padding-left:15px}}.input-container{position:relative;margin-top:30px}input{box-shadow:#64646f33 0 7px 29px;border-radius:10px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.input:focus~label,.input:invalid~label{top:-20px;font-size:15px;color:#1c77f7}.labelUp{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "json": i1.JsonPipe } });
|
|
57
88
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, decorators: [{
|
|
58
89
|
type: Component,
|
|
59
90
|
args: [{ selector: 'ipt-input', template: `
|
|
@@ -67,12 +98,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
67
98
|
uib-datepicker-popup="dd/MM/yyyy"
|
|
68
99
|
ng-model="inputType"/>
|
|
69
100
|
|
|
70
|
-
<input *ngIf="inputType !== 'date' && inputType !== 'time'"
|
|
101
|
+
<input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
|
|
71
102
|
class="input"
|
|
103
|
+
type="{{ inputType }}"
|
|
104
|
+
[formControl]="formControl"
|
|
105
|
+
[attr.list]="list"/>
|
|
106
|
+
|
|
107
|
+
<input *ngIf="inputType === 'text' && withPipe"
|
|
72
108
|
class="input"
|
|
73
109
|
type="{{ inputType }}"
|
|
74
110
|
[formControl]="formControl"
|
|
75
111
|
[attr.list]="list"/>
|
|
112
|
+
<pre>
|
|
113
|
+
{{ formControl | json }}
|
|
114
|
+
{{ control | json }}
|
|
115
|
+
</pre>
|
|
76
116
|
|
|
77
117
|
<input *ngIf="inputType === 'time'"
|
|
78
118
|
class="input"
|
|
@@ -93,12 +133,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
93
133
|
</p>
|
|
94
134
|
</div>
|
|
95
135
|
`, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){p{color:#c73a3a;font-size:12px;padding-left:15px}}@media screen and (min-width: 768px){p{color:#c73a3a;font-size:13px;padding-left:15px}}@media screen and (min-width: 1024px){p{color:#c73a3a;font-size:13px;padding-left:15px}}.input-container{position:relative;margin-top:30px}input{box-shadow:#64646f33 0 7px 29px;border-radius:10px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.input:focus~label,.input:invalid~label{top:-20px;font-size:15px;color:#1c77f7}.labelUp{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"] }]
|
|
96
|
-
}], propDecorators: { inputType: [{
|
|
136
|
+
}], ctorParameters: function () { return [{ type: i1.CurrencyPipe }]; }, propDecorators: { inputType: [{
|
|
97
137
|
type: Input
|
|
98
138
|
}], placeHolder: [{
|
|
99
139
|
type: Input
|
|
100
140
|
}], validateText: [{
|
|
101
141
|
type: Input
|
|
142
|
+
}], withPipe: [{
|
|
143
|
+
type: Input
|
|
102
144
|
}], list: [{
|
|
103
145
|
type: Input
|
|
104
146
|
}], iconUrl: [{
|
|
@@ -106,4 +148,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
106
148
|
}], control: [{
|
|
107
149
|
type: Input
|
|
108
150
|
}] } });
|
|
109
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
151
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQuY29tcG9uZW50Lmp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AgICAgIFthdHRyLmxpc3RdPVwibGlzdFwiLz5cbiAgICAgICAgPHByZT5cbiAgICAgICAgICB7eyBmb3JtQ29udHJvbCB8IGpzb24gfX1cbiAgICAgICAgICB7eyBjb250cm9sIHwganNvbiB9fVxuICAgICAgICA8L3ByZT5cblxuICAgICAgICA8aW5wdXQgKm5nSWY9XCJpbnB1dFR5cGUgPT09ICd0aW1lJ1wiXG4gICAgICAgICAgY2xhc3M9XCJpbnB1dFwiXG4gICAgICAgICAgdHlwZT1cInRpbWVcIlxuICAgICAgICAgIFtmb3JtQ29udHJvbF09XCJmb3JtQ29udHJvbFwiXG4gICAgICAgICAgW21pbl09XCInMDY6MDA6MDAnXCJcbiAgICAgICAgICBtYXg9XCIyMjowMDowMFwiXG4gICAgICAgICAgc3RlcD1cIjkwMFwiXG4gICAgICAgICAgYXV0b2NvbXBsZXRlPVwib25cIlxuICAgICAgICAgIHZhbHVlPVwiMDg6MDA6MDBcIlxuICAgICAgICAgIChjbGljayk9XCJjbGljaygkZXZlbnQpXCJcbiAgICAgICAgLz5cblxuICAgICAgPGxhYmVsIFtuZ0NsYXNzXT1cInsnbGFiZWxVcCc6IGZvcm1Db250cm9sLnZhbHVlICE9PSAnJ31cIj57eyBwbGFjZUhvbGRlciB9fTwvbGFiZWw+XG5cbiAgICAgIDxwICpuZ0lmPVwiKGZvcm1Db250cm9sLmludmFsaWQgJiYgZm9ybUNvbnRyb2wudmFsdWUgIT09ICcnKSB8fCBmb3JtQ29udHJvbC50b3VjaGVkXCI+XG4gICAgICAgIHt7IHZhbGlkYXRlVGV4dCB9fVxuICAgICAgPC9wPlxuICAgIDwvZGl2PlxuICAgIGAsXG4gIHN0eWxlVXJsczogWycuL2lucHV0LmNzcyddLFxufSlcbmV4cG9ydCBjbGFzcyBJbnB1dENvbXBvbmVudCBpbXBsZW1lbnRzIE9uSW5pdCB7XG4gIFxuICBwdWJsaWMgY29kZVZhbHVlITogc3RyaW5nO1xuICBkYXRhOiBhbnlbXSA9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uZm9ybUNvbnRyb2wucGF0Y2hWYWx1ZShcbiAgICAvLyAgICAgICB7IGNvbnRyb2w6IHRoaXMuY3VycmVuY3lQaXBlLnRyYW5zZm9ybSh2YWx1ZSl9LFxuICAgIC8vICAgICAgIHsgb25seVNlbGY6IHRydWUsIGVtaXRFdmVudDogZmFsc2V9XG4gICAgLy8gICAgIClcbiAgICAvLyAgIH0pXG4gICAgLy8gfVxuXG4gIH1cbiAgY3VycmVuUGlwZShkYXRDb250cm9sOiBhbnkpOiBhbnkge1xuICAgIGxldCBmb3JtYXR0ZWQgPSBuZXcgSW50bC5OdW1iZXJGb3JtYXQoXCJlbi1VU1wiLCB7XG4gICAgICBzdHlsZTogJ2N1cnJlbmN5JyxcbiAgICAgIGN1cnJlbmN5OiAnVVNEJ1xuICAgIH0pLmZvcm1hdChkYXRDb250cm9sKTtcbiAgICByZXR1cm4gZm9ybWF0dGVkO1xuICB9XG5cbiAgY2xpY2sodmFsdWU6IE1vdXNlRXZlbnQpIHtcbiAgICB0aGlzLmNsaWNrZWQgPSB2YWx1ZS5pc1RydXN0ZWQ7XG4gIH1cblxufVxuIl19
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { CommonModule, CurrencyPipe, TitleCasePipe } from '@angular/common';
|
|
3
3
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
4
4
|
import { AsideButtonComponent } from './atoms/aside-button/aside-button.component';
|
|
5
5
|
import { ButtonComponent } from './atoms/button/button.component';
|
|
@@ -45,7 +45,10 @@ ComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versio
|
|
|
45
45
|
TextLinkComponent,
|
|
46
46
|
LoginFormComponent,
|
|
47
47
|
SidenavComponent] });
|
|
48
|
-
ComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule,
|
|
48
|
+
ComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, providers: [
|
|
49
|
+
CurrencyPipe,
|
|
50
|
+
TitleCasePipe
|
|
51
|
+
], imports: [[
|
|
49
52
|
CommonModule,
|
|
50
53
|
// BrowserModule, // Para evitar doble carga de BrowserModule
|
|
51
54
|
FormsModule,
|
|
@@ -89,7 +92,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
89
92
|
TextLinkComponent,
|
|
90
93
|
LoginFormComponent,
|
|
91
94
|
SidenavComponent,
|
|
95
|
+
],
|
|
96
|
+
providers: [
|
|
97
|
+
CurrencyPipe,
|
|
98
|
+
TitleCasePipe
|
|
92
99
|
]
|
|
93
100
|
}]
|
|
94
101
|
}] });
|
|
95
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
102
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50cy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9kZXNpZ24tc3lzdGVtL3NyYy9saWIvY29tcG9uZW50cy9jb21wb25lbnRzLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXpDLE9BQU8sRUFBRSxZQUFZLEVBQUUsWUFBWSxFQUFFLGFBQWEsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRTVFLE9BQU8sRUFBRSxXQUFXLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUVsRSxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSw2Q0FBNkMsQ0FBQztBQUNuRixPQUFPLEVBQUUsZUFBZSxFQUFFLE1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c2VyTW9kdWxlXG4gICAgRm9ybXNNb2R1bGUsXG4gICAgUmVhY3RpdmVGb3Jtc01vZHVsZSxcbiAgICBNYXRlcmlhbE1vZHVsZVxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgQXNpZGVCdXR0b25Db21wb25lbnQsXG4gICAgQnV0dG9uQ29tcG9uZW50LFxuICAgIENoZWNrYm94Q29tcG9uZW50LFxuICAgIERhdGFsaXN0Q29tcG9uZW50LFxuICAgIElucHV0Q29tcG9uZW50LFxuICAgIExldmVsQnV0dG9uQ29tcG9uZW50LFxuICAgIExldmVsVGV4dENvbXBvbmVudCxcbiAgICBSYWRpb0NvbXBvbmVudCxcbiAgICBTZWxlY3RDb21wb25lbnQsXG4gICAgVGV4dExpbmtDb21wb25lbnQsXG4gICAgTG9naW5Gb3JtQ29tcG9uZW50LFxuICAgIFNpZGVuYXZDb21wb25lbnQsXG4gIF0sXG4gIHByb3ZpZGVyczogW1xuICAgIEN1cnJlbmN5UGlwZSxcbiAgICBUaXRsZUNhc2VQaXBlXG4gIF1cbn0pXG5cbmV4cG9ydCBjbGFzcyBDb21wb25lbnRzTW9kdWxlIHsgfVxuIl19
|
|
@@ -52,7 +52,7 @@ LoginFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
52
52
|
</div>
|
|
53
53
|
|
|
54
54
|
</div>
|
|
55
|
-
`, isInline: true, styles: [".form-container{display:grid;grid-template-columns:1fr;justify-items:center;width:350px}.with-background{background-color:#fff;border-radius:25px;box-shadow:#32325d40 0 50px 100px -20px,#0000004d 0 30px 60px -30px}h2{color:#1c77f7}hr{width:80%}form{margin-bottom:60px;display:grid;grid-template-columns:1fr;grid-gap:30px;gap:30px;width:100%}.button-container{margin-bottom:70px;align-items:center;display:flex;gap:50px}footer{background-color:#1c77f7;border-top-left-radius:25px;border-top-right-radius:25px;width:100%;height:100px;display:flex;align-items:center;justify-content:center}\n"], components: [{ type: i3.InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "list", "iconUrl", "control"] }, { type: i4.ButtonComponent, selector: "ipt-button", inputs: ["primary", "size", "label", "buttonType", "isEnabled"], outputs: ["onClick"] }], directives: [{ type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] });
|
|
55
|
+
`, isInline: true, styles: [".form-container{display:grid;grid-template-columns:1fr;justify-items:center;width:350px}.with-background{background-color:#fff;border-radius:25px;box-shadow:#32325d40 0 50px 100px -20px,#0000004d 0 30px 60px -30px}h2{color:#1c77f7}hr{width:80%}form{margin-bottom:60px;display:grid;grid-template-columns:1fr;grid-gap:30px;gap:30px;width:100%}.button-container{margin-bottom:70px;align-items:center;display:flex;gap:50px}footer{background-color:#1c77f7;border-top-left-radius:25px;border-top-right-radius:25px;width:100%;height:100px;display:flex;align-items:center;justify-content:center}\n"], components: [{ type: i3.InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "withPipe", "list", "iconUrl", "control"] }, { type: i4.ButtonComponent, selector: "ipt-button", inputs: ["primary", "size", "label", "buttonType", "isEnabled"], outputs: ["onClick"] }], directives: [{ type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] });
|
|
56
56
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoginFormComponent, decorators: [{
|
|
57
57
|
type: Component,
|
|
58
58
|
args: [{ selector: 'ipt-login-form', template: `
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter, Component, Input, Output, Injectable, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
+
import { CommonModule, CurrencyPipe, TitleCasePipe } from '@angular/common';
|
|
5
5
|
import * as i1$1 from '@angular/forms';
|
|
6
6
|
import { Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
7
7
|
import Swal from 'sweetalert2';
|
|
@@ -252,21 +252,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
252
252
|
}] } });
|
|
253
253
|
|
|
254
254
|
class InputComponent {
|
|
255
|
-
constructor() {
|
|
255
|
+
constructor(currencyPipe) {
|
|
256
|
+
this.currencyPipe = currencyPipe;
|
|
256
257
|
this.data = [];
|
|
257
258
|
this.clicked = false;
|
|
259
|
+
this.withPipe = false;
|
|
258
260
|
}
|
|
259
261
|
set control(value) {
|
|
260
262
|
if (this.formControl !== value) {
|
|
261
263
|
this.formControl = value;
|
|
262
264
|
}
|
|
263
265
|
}
|
|
266
|
+
ngOnInit() {
|
|
267
|
+
this.formControl = this.currenPipe(this.formControl.value);
|
|
268
|
+
// if (this.withPipe && this.formControl !== null) {
|
|
269
|
+
// console.log(this.withPipe, this.formControl, this.control);
|
|
270
|
+
// this.formControl.valueChanges.subscribe(value => {
|
|
271
|
+
// console.log(value);
|
|
272
|
+
// this.formControl.patchValue(
|
|
273
|
+
// { control: this.currencyPipe.transform(value)},
|
|
274
|
+
// { onlySelf: true, emitEvent: false}
|
|
275
|
+
// )
|
|
276
|
+
// })
|
|
277
|
+
// }
|
|
278
|
+
}
|
|
279
|
+
currenPipe(datControl) {
|
|
280
|
+
let formatted = new Intl.NumberFormat("en-US", {
|
|
281
|
+
style: 'currency',
|
|
282
|
+
currency: 'USD'
|
|
283
|
+
}).format(datControl);
|
|
284
|
+
return formatted;
|
|
285
|
+
}
|
|
264
286
|
click(value) {
|
|
265
287
|
this.clicked = value.isTrusted;
|
|
266
288
|
}
|
|
267
289
|
}
|
|
268
|
-
InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
269
|
-
InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: InputComponent, selector: "ipt-input", inputs: { inputType: "inputType", placeHolder: "placeHolder", validateText: "validateText", list: "list", iconUrl: "iconUrl", control: "control" }, ngImport: i0, template: `
|
|
290
|
+
InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, deps: [{ token: i1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Component });
|
|
291
|
+
InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: InputComponent, selector: "ipt-input", inputs: { inputType: "inputType", placeHolder: "placeHolder", validateText: "validateText", withPipe: "withPipe", list: "list", iconUrl: "iconUrl", control: "control" }, ngImport: i0, template: `
|
|
270
292
|
<div class="input-container">
|
|
271
293
|
<input *ngIf="inputType === 'date'"
|
|
272
294
|
class="input"
|
|
@@ -277,12 +299,21 @@ InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version
|
|
|
277
299
|
uib-datepicker-popup="dd/MM/yyyy"
|
|
278
300
|
ng-model="inputType"/>
|
|
279
301
|
|
|
280
|
-
<input *ngIf="inputType !== 'date' && inputType !== 'time'"
|
|
302
|
+
<input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
|
|
281
303
|
class="input"
|
|
304
|
+
type="{{ inputType }}"
|
|
305
|
+
[formControl]="formControl"
|
|
306
|
+
[attr.list]="list"/>
|
|
307
|
+
|
|
308
|
+
<input *ngIf="inputType === 'text' && withPipe"
|
|
282
309
|
class="input"
|
|
283
310
|
type="{{ inputType }}"
|
|
284
311
|
[formControl]="formControl"
|
|
285
312
|
[attr.list]="list"/>
|
|
313
|
+
<pre>
|
|
314
|
+
{{ formControl | json }}
|
|
315
|
+
{{ control | json }}
|
|
316
|
+
</pre>
|
|
286
317
|
|
|
287
318
|
<input *ngIf="inputType === 'time'"
|
|
288
319
|
class="input"
|
|
@@ -302,7 +333,7 @@ InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version
|
|
|
302
333
|
{{ validateText }}
|
|
303
334
|
</p>
|
|
304
335
|
</div>
|
|
305
|
-
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){p{color:#c73a3a;font-size:12px;padding-left:15px}}@media screen and (min-width: 768px){p{color:#c73a3a;font-size:13px;padding-left:15px}}@media screen and (min-width: 1024px){p{color:#c73a3a;font-size:13px;padding-left:15px}}.input-container{position:relative;margin-top:30px}input{box-shadow:#64646f33 0 7px 29px;border-radius:10px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.input:focus~label,.input:invalid~label{top:-20px;font-size:15px;color:#1c77f7}.labelUp{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
336
|
+
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){p{color:#c73a3a;font-size:12px;padding-left:15px}}@media screen and (min-width: 768px){p{color:#c73a3a;font-size:13px;padding-left:15px}}@media screen and (min-width: 1024px){p{color:#c73a3a;font-size:13px;padding-left:15px}}.input-container{position:relative;margin-top:30px}input{box-shadow:#64646f33 0 7px 29px;border-radius:10px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.input:focus~label,.input:invalid~label{top:-20px;font-size:15px;color:#1c77f7}.labelUp{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "json": i1.JsonPipe } });
|
|
306
337
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, decorators: [{
|
|
307
338
|
type: Component,
|
|
308
339
|
args: [{ selector: 'ipt-input', template: `
|
|
@@ -316,12 +347,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
316
347
|
uib-datepicker-popup="dd/MM/yyyy"
|
|
317
348
|
ng-model="inputType"/>
|
|
318
349
|
|
|
319
|
-
<input *ngIf="inputType !== 'date' && inputType !== 'time'"
|
|
350
|
+
<input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
|
|
320
351
|
class="input"
|
|
352
|
+
type="{{ inputType }}"
|
|
353
|
+
[formControl]="formControl"
|
|
354
|
+
[attr.list]="list"/>
|
|
355
|
+
|
|
356
|
+
<input *ngIf="inputType === 'text' && withPipe"
|
|
321
357
|
class="input"
|
|
322
358
|
type="{{ inputType }}"
|
|
323
359
|
[formControl]="formControl"
|
|
324
360
|
[attr.list]="list"/>
|
|
361
|
+
<pre>
|
|
362
|
+
{{ formControl | json }}
|
|
363
|
+
{{ control | json }}
|
|
364
|
+
</pre>
|
|
325
365
|
|
|
326
366
|
<input *ngIf="inputType === 'time'"
|
|
327
367
|
class="input"
|
|
@@ -342,12 +382,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
342
382
|
</p>
|
|
343
383
|
</div>
|
|
344
384
|
`, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){p{color:#c73a3a;font-size:12px;padding-left:15px}}@media screen and (min-width: 768px){p{color:#c73a3a;font-size:13px;padding-left:15px}}@media screen and (min-width: 1024px){p{color:#c73a3a;font-size:13px;padding-left:15px}}.input-container{position:relative;margin-top:30px}input{box-shadow:#64646f33 0 7px 29px;border-radius:10px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.input:focus~label,.input:invalid~label{top:-20px;font-size:15px;color:#1c77f7}.labelUp{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"] }]
|
|
345
|
-
}], propDecorators: { inputType: [{
|
|
385
|
+
}], ctorParameters: function () { return [{ type: i1.CurrencyPipe }]; }, propDecorators: { inputType: [{
|
|
346
386
|
type: Input
|
|
347
387
|
}], placeHolder: [{
|
|
348
388
|
type: Input
|
|
349
389
|
}], validateText: [{
|
|
350
390
|
type: Input
|
|
391
|
+
}], withPipe: [{
|
|
392
|
+
type: Input
|
|
351
393
|
}], list: [{
|
|
352
394
|
type: Input
|
|
353
395
|
}], iconUrl: [{
|
|
@@ -923,7 +965,7 @@ LoginFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
923
965
|
</div>
|
|
924
966
|
|
|
925
967
|
</div>
|
|
926
|
-
`, isInline: true, styles: [".form-container{display:grid;grid-template-columns:1fr;justify-items:center;width:350px}.with-background{background-color:#fff;border-radius:25px;box-shadow:#32325d40 0 50px 100px -20px,#0000004d 0 30px 60px -30px}h2{color:#1c77f7}hr{width:80%}form{margin-bottom:60px;display:grid;grid-template-columns:1fr;grid-gap:30px;gap:30px;width:100%}.button-container{margin-bottom:70px;align-items:center;display:flex;gap:50px}footer{background-color:#1c77f7;border-top-left-radius:25px;border-top-right-radius:25px;width:100%;height:100px;display:flex;align-items:center;justify-content:center}\n"], components: [{ type: InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "list", "iconUrl", "control"] }, { type: ButtonComponent, selector: "ipt-button", inputs: ["primary", "size", "label", "buttonType", "isEnabled"], outputs: ["onClick"] }], directives: [{ type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] });
|
|
968
|
+
`, isInline: true, styles: [".form-container{display:grid;grid-template-columns:1fr;justify-items:center;width:350px}.with-background{background-color:#fff;border-radius:25px;box-shadow:#32325d40 0 50px 100px -20px,#0000004d 0 30px 60px -30px}h2{color:#1c77f7}hr{width:80%}form{margin-bottom:60px;display:grid;grid-template-columns:1fr;grid-gap:30px;gap:30px;width:100%}.button-container{margin-bottom:70px;align-items:center;display:flex;gap:50px}footer{background-color:#1c77f7;border-top-left-radius:25px;border-top-right-radius:25px;width:100%;height:100px;display:flex;align-items:center;justify-content:center}\n"], components: [{ type: InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "withPipe", "list", "iconUrl", "control"] }, { type: ButtonComponent, selector: "ipt-button", inputs: ["primary", "size", "label", "buttonType", "isEnabled"], outputs: ["onClick"] }], directives: [{ type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] });
|
|
927
969
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoginFormComponent, decorators: [{
|
|
928
970
|
type: Component,
|
|
929
971
|
args: [{ selector: 'ipt-login-form', template: `
|
|
@@ -1142,7 +1184,10 @@ ComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versio
|
|
|
1142
1184
|
TextLinkComponent,
|
|
1143
1185
|
LoginFormComponent,
|
|
1144
1186
|
SidenavComponent] });
|
|
1145
|
-
ComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule,
|
|
1187
|
+
ComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, providers: [
|
|
1188
|
+
CurrencyPipe,
|
|
1189
|
+
TitleCasePipe
|
|
1190
|
+
], imports: [[
|
|
1146
1191
|
CommonModule,
|
|
1147
1192
|
// BrowserModule, // Para evitar doble carga de BrowserModule
|
|
1148
1193
|
FormsModule,
|
|
@@ -1186,6 +1231,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
1186
1231
|
TextLinkComponent,
|
|
1187
1232
|
LoginFormComponent,
|
|
1188
1233
|
SidenavComponent,
|
|
1234
|
+
],
|
|
1235
|
+
providers: [
|
|
1236
|
+
CurrencyPipe,
|
|
1237
|
+
TitleCasePipe
|
|
1189
1238
|
]
|
|
1190
1239
|
}]
|
|
1191
1240
|
}] });
|