iptdevs-design-system 2.4.3 → 5.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.
- package/README.md +24 -24
- package/esm2020/iptdevs-design-system.mjs +4 -4
- package/esm2020/lib/components/atoms/aside-button/aside-button.component.mjs +50 -50
- package/esm2020/lib/components/atoms/button/button.component.mjs +64 -64
- package/esm2020/lib/components/atoms/checkbox/checkbox.component.mjs +47 -47
- package/esm2020/lib/components/atoms/datalist/datalist.component.mjs +94 -94
- package/esm2020/lib/components/atoms/input/input.component.mjs +137 -137
- package/esm2020/lib/components/atoms/level-button/level-button.component.mjs +64 -64
- package/esm2020/lib/components/atoms/level-text/level-text.component.mjs +19 -19
- package/esm2020/lib/components/atoms/radio/radio.component.mjs +47 -47
- package/esm2020/lib/components/atoms/select/select.component.mjs +92 -92
- package/esm2020/lib/components/atoms/text-link/text-link.component.mjs +39 -39
- package/esm2020/lib/components/components.module.mjs +108 -108
- package/esm2020/lib/components/forms/login-form/login-form.component.mjs +93 -93
- package/esm2020/lib/components/material.module.mjs +18 -18
- package/esm2020/lib/components/molecules/sidenav/sidenav.component.mjs +146 -146
- package/esm2020/lib/core/core.module.mjs +46 -46
- package/esm2020/lib/core/models/activities/activities.interface.mjs +2 -0
- package/esm2020/lib/core/models/attendance/attendance.interface.mjs +2 -0
- package/esm2020/lib/core/models/budget/budget.model.mjs +2 -2
- package/esm2020/lib/core/models/calendar/calendar-rq.models.mjs +2 -0
- package/esm2020/lib/core/models/cod/cod-rq.model.mjs +2 -2
- package/esm2020/lib/core/models/course/course-rq.model.mjs +2 -2
- package/esm2020/lib/core/models/cronogram/cronogram.models.mjs +2 -0
- package/esm2020/lib/core/models/marketing/marketing.model.mjs +2 -2
- package/esm2020/lib/core/models/notes/notes.interface.mjs +2 -0
- package/esm2020/lib/core/models/response/response.interface.mjs +2 -0
- package/esm2020/lib/core/models/session/session.model.mjs +3 -3
- package/esm2020/lib/core/models/student/student.interface.mjs +2 -0
- package/esm2020/lib/core/models/table/table-rs.model.mjs +2 -2
- package/esm2020/lib/core/models/test/test.model.mjs +2 -2
- package/esm2020/lib/core/models/url/url.model.mjs +2 -2
- package/esm2020/lib/core/models/user/user-rq.model.mjs +2 -2
- package/esm2020/lib/core/models/user/user-rs.model.mjs +5 -5
- package/esm2020/lib/core/services/attendance-service/attendance.service.mjs +17 -0
- package/esm2020/lib/core/services/budget-service/budget-service.mjs +41 -41
- package/esm2020/lib/core/services/calendar-service/calendar.service.mjs +34 -0
- package/esm2020/lib/core/services/course-service/course-service.model.mjs +75 -56
- package/esm2020/lib/core/services/marketing-service/marketing-service.mjs +57 -57
- package/esm2020/lib/core/services/notes-service/notes.service.mjs +40 -0
- package/esm2020/lib/core/services/parameters-service/parameters.service.mjs +110 -110
- package/esm2020/lib/core/services/storage-service/storage-service.mjs +50 -50
- package/esm2020/lib/core/services/student-service/student.service.mjs +30 -0
- package/esm2020/lib/core/services/switch-service/switch.service.mjs +16 -16
- package/esm2020/lib/core/services/test-service/test.service.mjs +136 -136
- package/esm2020/lib/core/services/user-service/user-service.mjs +84 -84
- package/esm2020/lib/core/utils/base-service/base.service.mjs +153 -153
- package/esm2020/lib/core/utils/route-service/route.service.mjs +18 -18
- package/esm2020/lib/design-system.module.mjs +36 -36
- package/esm2020/public-api.mjs +56 -45
- package/fesm2015/iptdevs-design-system.mjs +1782 -1657
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +1779 -1654
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/iptdevs-design-system.d.ts +5 -5
- package/lib/components/atoms/aside-button/aside-button.component.d.ts +11 -11
- package/lib/components/atoms/button/button.component.d.ts +13 -13
- package/lib/components/atoms/checkbox/checkbox.component.d.ts +11 -11
- package/lib/components/atoms/datalist/datalist.component.d.ts +20 -20
- package/lib/components/atoms/input/input.component.d.ts +24 -24
- package/lib/components/atoms/level-button/level-button.component.d.ts +11 -11
- package/lib/components/atoms/level-text/level-text.component.d.ts +7 -7
- package/lib/components/atoms/radio/radio.component.d.ts +11 -11
- package/lib/components/atoms/select/select.component.d.ts +24 -24
- package/lib/components/atoms/text-link/text-link.component.d.ts +12 -12
- package/lib/components/components.module.d.ts +22 -22
- package/lib/components/forms/login-form/login-form.component.d.ts +13 -13
- package/lib/components/material.module.d.ts +10 -10
- package/lib/components/molecules/sidenav/sidenav.component.d.ts +22 -22
- package/lib/core/core.module.d.ts +6 -6
- package/lib/core/models/activities/activities.interface.d.ts +6 -0
- package/lib/core/models/attendance/attendance.interface.d.ts +44 -0
- package/lib/core/models/budget/budget.model.d.ts +69 -69
- package/lib/core/models/calendar/calendar-rq.models.d.ts +27 -0
- package/lib/core/models/cod/cod-rq.model.d.ts +51 -51
- package/lib/core/models/course/course-rq.model.d.ts +86 -78
- package/lib/core/models/cronogram/cronogram.models.d.ts +71 -0
- package/lib/core/models/marketing/marketing.model.d.ts +104 -104
- package/lib/core/models/notes/notes.interface.d.ts +59 -0
- package/lib/core/models/response/response.interface.d.ts +10 -0
- package/lib/core/models/session/session.model.d.ts +5 -5
- package/lib/core/models/student/student.interface.d.ts +4 -0
- package/lib/core/models/table/table-rs.model.d.ts +7 -7
- package/lib/core/models/test/test.model.d.ts +219 -219
- package/lib/core/models/url/url.model.d.ts +8 -8
- package/lib/core/models/user/user-rq.model.d.ts +91 -72
- package/lib/core/models/user/user-rs.model.d.ts +35 -35
- package/lib/core/services/attendance-service/attendance.service.d.ts +8 -0
- package/lib/core/services/budget-service/budget-service.d.ts +16 -16
- package/lib/core/services/calendar-service/calendar.service.d.ts +15 -0
- package/lib/core/services/course-service/course-service.model.d.ts +24 -19
- package/lib/core/services/marketing-service/marketing-service.d.ts +20 -20
- package/lib/core/services/notes-service/notes.service.d.ts +17 -0
- package/lib/core/services/parameters-service/parameters.service.d.ts +33 -33
- package/lib/core/services/storage-service/storage-service.d.ts +18 -18
- package/lib/core/services/student-service/student.service.d.ts +14 -0
- package/lib/core/services/switch-service/switch.service.d.ts +8 -8
- package/lib/core/services/test-service/test.service.d.ts +35 -35
- package/lib/core/services/user-service/user-service.d.ts +26 -26
- package/lib/core/utils/base-service/base.service.d.ts +18 -18
- package/lib/core/utils/route-service/route.service.d.ts +9 -9
- package/lib/design-system.module.d.ts +9 -9
- package/package.json +3 -3
- package/public-api.d.ts +47 -36
|
@@ -18,1718 +18,1843 @@ import { MatListModule } from '@angular/material/list';
|
|
|
18
18
|
import { MatIconModule } from '@angular/material/icon';
|
|
19
19
|
import * as i1$3 from '@angular/router';
|
|
20
20
|
|
|
21
|
-
class AsideButtonComponent {
|
|
22
|
-
constructor() {
|
|
23
|
-
this.isClicked = new EventEmitter();
|
|
24
|
-
}
|
|
25
|
-
clickAction() {
|
|
26
|
-
this.isClicked.emit(true);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
AsideButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AsideButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
30
|
-
AsideButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: AsideButtonComponent, selector: "ipt-aside-button", inputs: { icon: "icon", text: "text", buttonActive: "buttonActive" }, outputs: { isClicked: "isClicked" }, ngImport: i0, template: `
|
|
31
|
-
<div [ngSwitch]="buttonActive">
|
|
32
|
-
<a *ngSwitchCase="0" class="flex-item-menu__link" (click)="clickAction()">
|
|
33
|
-
<img src="{{ icon }}" alt="icon_url" />
|
|
34
|
-
<p>{{ text }}</p>
|
|
35
|
-
</a>
|
|
36
|
-
|
|
37
|
-
<a *ngSwitchCase="1" class="flex-item-menu__link flex-item-active" (click)="clickAction()">
|
|
38
|
-
<img src="{{ icon }}" alt="icon_url" />
|
|
39
|
-
<p>{{ text }}</p>
|
|
40
|
-
</a>
|
|
41
|
-
</div>
|
|
42
|
-
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.flex-item-menu__link{cursor:pointer;width:-webkit-fill-available;width:-moz-available;text-decoration:none;display:flex;justify-items:center;padding:.4rem 1rem;transition:all .3s ease 0s;border-radius:30px;margin:15px}.flex-item-menu__link img{cursor:pointer;width:1.4rem;height:1.4rem}.flex-item-menu__link p{cursor:pointer;display:inline;font-weight:500;font-family:Poppins,sans-serif;font-size:.8rem;padding:0 .8rem;margin:auto 0;color:#fff}a:hover,a:focus,.flex-item-menu__link:hover,.flex-item-menu__link p:focus{color:#fff;background-color:#ffffff4f;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);box-shadow:#0006 0 30px 90px;border-radius:50px}.flex-item-img{width:2.5rem;height:2.5rem;padding:.4rem}.flex-item-active{box-shadow:#0006 0 30px 90px;background:transparent;border:1px solid white}}@media (min-width: 1024px){.flex-item-menu__link{padding:.4rem 1rem}.flex-item-menu__link:focus{border:1px solid white}.flex-item-menu__link img{cursor:pointer;width:1.6rem;height:1.6rem}.flex-item-menu__link p{font-size:1rem;color:#fff}a:hover,a:focus,.flex-item-menu__link:hover,.flex-item-menu__link p:focus{color:#fff;background-color:#ffffff4f;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);box-shadow:#0006 0 30px 90px}.flex-item-img{width:2.5rem;height:2.5rem;padding:.4rem}}\n"], directives: [{ type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AsideButtonComponent, decorators: [{
|
|
44
|
-
type: Component,
|
|
45
|
-
args: [{ selector: 'ipt-aside-button', template: `
|
|
46
|
-
<div [ngSwitch]="buttonActive">
|
|
47
|
-
<a *ngSwitchCase="0" class="flex-item-menu__link" (click)="clickAction()">
|
|
48
|
-
<img src="{{ icon }}" alt="icon_url" />
|
|
49
|
-
<p>{{ text }}</p>
|
|
50
|
-
</a>
|
|
51
|
-
|
|
52
|
-
<a *ngSwitchCase="1" class="flex-item-menu__link flex-item-active" (click)="clickAction()">
|
|
53
|
-
<img src="{{ icon }}" alt="icon_url" />
|
|
54
|
-
<p>{{ text }}</p>
|
|
55
|
-
</a>
|
|
56
|
-
</div>
|
|
57
|
-
`, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.flex-item-menu__link{cursor:pointer;width:-webkit-fill-available;width:-moz-available;text-decoration:none;display:flex;justify-items:center;padding:.4rem 1rem;transition:all .3s ease 0s;border-radius:30px;margin:15px}.flex-item-menu__link img{cursor:pointer;width:1.4rem;height:1.4rem}.flex-item-menu__link p{cursor:pointer;display:inline;font-weight:500;font-family:Poppins,sans-serif;font-size:.8rem;padding:0 .8rem;margin:auto 0;color:#fff}a:hover,a:focus,.flex-item-menu__link:hover,.flex-item-menu__link p:focus{color:#fff;background-color:#ffffff4f;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);box-shadow:#0006 0 30px 90px;border-radius:50px}.flex-item-img{width:2.5rem;height:2.5rem;padding:.4rem}.flex-item-active{box-shadow:#0006 0 30px 90px;background:transparent;border:1px solid white}}@media (min-width: 1024px){.flex-item-menu__link{padding:.4rem 1rem}.flex-item-menu__link:focus{border:1px solid white}.flex-item-menu__link img{cursor:pointer;width:1.6rem;height:1.6rem}.flex-item-menu__link p{font-size:1rem;color:#fff}a:hover,a:focus,.flex-item-menu__link:hover,.flex-item-menu__link p:focus{color:#fff;background-color:#ffffff4f;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);box-shadow:#0006 0 30px 90px}.flex-item-img{width:2.5rem;height:2.5rem;padding:.4rem}}\n"] }]
|
|
58
|
-
}], propDecorators: { icon: [{
|
|
59
|
-
type: Input
|
|
60
|
-
}], text: [{
|
|
61
|
-
type: Input
|
|
62
|
-
}], buttonActive: [{
|
|
63
|
-
type: Input
|
|
64
|
-
}], isClicked: [{
|
|
65
|
-
type: Output
|
|
21
|
+
class AsideButtonComponent {
|
|
22
|
+
constructor() {
|
|
23
|
+
this.isClicked = new EventEmitter();
|
|
24
|
+
}
|
|
25
|
+
clickAction() {
|
|
26
|
+
this.isClicked.emit(true);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
AsideButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AsideButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
30
|
+
AsideButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: AsideButtonComponent, selector: "ipt-aside-button", inputs: { icon: "icon", text: "text", buttonActive: "buttonActive" }, outputs: { isClicked: "isClicked" }, ngImport: i0, template: `
|
|
31
|
+
<div [ngSwitch]="buttonActive">
|
|
32
|
+
<a *ngSwitchCase="0" class="flex-item-menu__link" (click)="clickAction()">
|
|
33
|
+
<img src="{{ icon }}" alt="icon_url" />
|
|
34
|
+
<p>{{ text }}</p>
|
|
35
|
+
</a>
|
|
36
|
+
|
|
37
|
+
<a *ngSwitchCase="1" class="flex-item-menu__link flex-item-active" (click)="clickAction()">
|
|
38
|
+
<img src="{{ icon }}" alt="icon_url" />
|
|
39
|
+
<p>{{ text }}</p>
|
|
40
|
+
</a>
|
|
41
|
+
</div>
|
|
42
|
+
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.flex-item-menu__link{cursor:pointer;width:-webkit-fill-available;width:-moz-available;text-decoration:none;display:flex;justify-items:center;padding:.4rem 1rem;transition:all .3s ease 0s;border-radius:30px;margin:15px}.flex-item-menu__link img{cursor:pointer;width:1.4rem;height:1.4rem}.flex-item-menu__link p{cursor:pointer;display:inline;font-weight:500;font-family:Poppins,sans-serif;font-size:.8rem;padding:0 .8rem;margin:auto 0;color:#fff}a:hover,a:focus,.flex-item-menu__link:hover,.flex-item-menu__link p:focus{color:#fff;background-color:#ffffff4f;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);box-shadow:#0006 0 30px 90px;border-radius:50px}.flex-item-img{width:2.5rem;height:2.5rem;padding:.4rem}.flex-item-active{box-shadow:#0006 0 30px 90px;background:transparent;border:1px solid white}}@media (min-width: 1024px){.flex-item-menu__link{padding:.4rem 1rem}.flex-item-menu__link:focus{border:1px solid white}.flex-item-menu__link img{cursor:pointer;width:1.6rem;height:1.6rem}.flex-item-menu__link p{font-size:1rem;color:#fff}a:hover,a:focus,.flex-item-menu__link:hover,.flex-item-menu__link p:focus{color:#fff;background-color:#ffffff4f;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);box-shadow:#0006 0 30px 90px}.flex-item-img{width:2.5rem;height:2.5rem;padding:.4rem}}\n"], directives: [{ type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AsideButtonComponent, decorators: [{
|
|
44
|
+
type: Component,
|
|
45
|
+
args: [{ selector: 'ipt-aside-button', template: `
|
|
46
|
+
<div [ngSwitch]="buttonActive">
|
|
47
|
+
<a *ngSwitchCase="0" class="flex-item-menu__link" (click)="clickAction()">
|
|
48
|
+
<img src="{{ icon }}" alt="icon_url" />
|
|
49
|
+
<p>{{ text }}</p>
|
|
50
|
+
</a>
|
|
51
|
+
|
|
52
|
+
<a *ngSwitchCase="1" class="flex-item-menu__link flex-item-active" (click)="clickAction()">
|
|
53
|
+
<img src="{{ icon }}" alt="icon_url" />
|
|
54
|
+
<p>{{ text }}</p>
|
|
55
|
+
</a>
|
|
56
|
+
</div>
|
|
57
|
+
`, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.flex-item-menu__link{cursor:pointer;width:-webkit-fill-available;width:-moz-available;text-decoration:none;display:flex;justify-items:center;padding:.4rem 1rem;transition:all .3s ease 0s;border-radius:30px;margin:15px}.flex-item-menu__link img{cursor:pointer;width:1.4rem;height:1.4rem}.flex-item-menu__link p{cursor:pointer;display:inline;font-weight:500;font-family:Poppins,sans-serif;font-size:.8rem;padding:0 .8rem;margin:auto 0;color:#fff}a:hover,a:focus,.flex-item-menu__link:hover,.flex-item-menu__link p:focus{color:#fff;background-color:#ffffff4f;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);box-shadow:#0006 0 30px 90px;border-radius:50px}.flex-item-img{width:2.5rem;height:2.5rem;padding:.4rem}.flex-item-active{box-shadow:#0006 0 30px 90px;background:transparent;border:1px solid white}}@media (min-width: 1024px){.flex-item-menu__link{padding:.4rem 1rem}.flex-item-menu__link:focus{border:1px solid white}.flex-item-menu__link img{cursor:pointer;width:1.6rem;height:1.6rem}.flex-item-menu__link p{font-size:1rem;color:#fff}a:hover,a:focus,.flex-item-menu__link:hover,.flex-item-menu__link p:focus{color:#fff;background-color:#ffffff4f;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);box-shadow:#0006 0 30px 90px}.flex-item-img{width:2.5rem;height:2.5rem;padding:.4rem}}\n"] }]
|
|
58
|
+
}], propDecorators: { icon: [{
|
|
59
|
+
type: Input
|
|
60
|
+
}], text: [{
|
|
61
|
+
type: Input
|
|
62
|
+
}], buttonActive: [{
|
|
63
|
+
type: Input
|
|
64
|
+
}], isClicked: [{
|
|
65
|
+
type: Output
|
|
66
66
|
}] } });
|
|
67
67
|
|
|
68
|
-
class ButtonComponent {
|
|
69
|
-
constructor() {
|
|
70
|
-
this.primary = false;
|
|
71
|
-
this.size = 'medium';
|
|
72
|
-
this.label = 'Button';
|
|
73
|
-
this.isEnabled = true;
|
|
74
|
-
this.onClick = new EventEmitter();
|
|
75
|
-
}
|
|
76
|
-
get classes() {
|
|
77
|
-
const mode = this.primary && this.isEnabled === true
|
|
78
|
-
? 'ipt-button--primary'
|
|
79
|
-
: this.isEnabled === false ? 'ipt-button--primary-disabled'
|
|
80
|
-
: 'ipt-button--secondary';
|
|
81
|
-
return ['ipt-button', `ipt-button--${this.size}`, mode];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
85
|
-
ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: ButtonComponent, selector: "ipt-button", inputs: { primary: "primary", size: "size", label: "label", buttonType: "buttonType", isEnabled: "isEnabled" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `<button *ngIf="isEnabled"
|
|
86
|
-
type="{{ buttonType }}"
|
|
87
|
-
(click)="onClick.emit($event)"
|
|
88
|
-
[ngClass]="classes"
|
|
89
|
-
>
|
|
90
|
-
{{ label }}
|
|
91
|
-
</button>
|
|
92
|
-
|
|
93
|
-
<button *ngIf="!isEnabled"
|
|
94
|
-
type="{{ buttonType }}"
|
|
95
|
-
[ngClass]="classes"
|
|
96
|
-
>
|
|
97
|
-
{{ label }}
|
|
98
|
-
</button>`, isInline: true, styles: [".ipt-button{font-family:Poppins,sans-serif;font-weight:700;border:0;border-radius:12px;cursor:pointer;display:inline-block;line-height:1;transition:.4s;width:100%;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.ipt-button:hover{box-shadow:0 10px 20px #1b1b1b80;transform:translateY(-3px)}.ipt-button:active{transform:scale(.99)}.ipt-button--primary{color:#fff;background-color:#1c77f7}.ipt-button--primary-disabled{color:gray;background-color:#fff;border:1px solid gray;box-shadow:none;cursor:not-allowed}.ipt-button--primary-disabled:hover{box-shadow:none;transform:translateY(0)}.ipt-button--secondary{color:#1c77f7;background-color:#fff;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.ipt-button--small{font-size:12px;padding:10px 16px}.ipt-button--medium{font-size:14px;padding:11px 20px}.ipt-button--large{font-size:16px;padding:12px 24px}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
99
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
100
|
-
type: Component,
|
|
101
|
-
args: [{ selector: 'ipt-button', template: `<button *ngIf="isEnabled"
|
|
102
|
-
type="{{ buttonType }}"
|
|
103
|
-
(click)="onClick.emit($event)"
|
|
104
|
-
[ngClass]="classes"
|
|
105
|
-
>
|
|
106
|
-
{{ label }}
|
|
107
|
-
</button>
|
|
108
|
-
|
|
109
|
-
<button *ngIf="!isEnabled"
|
|
110
|
-
type="{{ buttonType }}"
|
|
111
|
-
[ngClass]="classes"
|
|
112
|
-
>
|
|
113
|
-
{{ label }}
|
|
114
|
-
</button>`, styles: [".ipt-button{font-family:Poppins,sans-serif;font-weight:700;border:0;border-radius:12px;cursor:pointer;display:inline-block;line-height:1;transition:.4s;width:100%;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.ipt-button:hover{box-shadow:0 10px 20px #1b1b1b80;transform:translateY(-3px)}.ipt-button:active{transform:scale(.99)}.ipt-button--primary{color:#fff;background-color:#1c77f7}.ipt-button--primary-disabled{color:gray;background-color:#fff;border:1px solid gray;box-shadow:none;cursor:not-allowed}.ipt-button--primary-disabled:hover{box-shadow:none;transform:translateY(0)}.ipt-button--secondary{color:#1c77f7;background-color:#fff;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.ipt-button--small{font-size:12px;padding:10px 16px}.ipt-button--medium{font-size:14px;padding:11px 20px}.ipt-button--large{font-size:16px;padding:12px 24px}\n"] }]
|
|
115
|
-
}], propDecorators: { primary: [{
|
|
116
|
-
type: Input
|
|
117
|
-
}], size: [{
|
|
118
|
-
type: Input
|
|
119
|
-
}], label: [{
|
|
120
|
-
type: Input
|
|
121
|
-
}], buttonType: [{
|
|
122
|
-
type: Input
|
|
123
|
-
}], isEnabled: [{
|
|
124
|
-
type: Input
|
|
125
|
-
}], onClick: [{
|
|
126
|
-
type: Output
|
|
68
|
+
class ButtonComponent {
|
|
69
|
+
constructor() {
|
|
70
|
+
this.primary = false;
|
|
71
|
+
this.size = 'medium';
|
|
72
|
+
this.label = 'Button';
|
|
73
|
+
this.isEnabled = true;
|
|
74
|
+
this.onClick = new EventEmitter();
|
|
75
|
+
}
|
|
76
|
+
get classes() {
|
|
77
|
+
const mode = this.primary && this.isEnabled === true
|
|
78
|
+
? 'ipt-button--primary'
|
|
79
|
+
: this.isEnabled === false ? 'ipt-button--primary-disabled'
|
|
80
|
+
: 'ipt-button--secondary';
|
|
81
|
+
return ['ipt-button', `ipt-button--${this.size}`, mode];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
85
|
+
ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: ButtonComponent, selector: "ipt-button", inputs: { primary: "primary", size: "size", label: "label", buttonType: "buttonType", isEnabled: "isEnabled" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `<button *ngIf="isEnabled"
|
|
86
|
+
type="{{ buttonType }}"
|
|
87
|
+
(click)="onClick.emit($event)"
|
|
88
|
+
[ngClass]="classes"
|
|
89
|
+
>
|
|
90
|
+
{{ label }}
|
|
91
|
+
</button>
|
|
92
|
+
|
|
93
|
+
<button *ngIf="!isEnabled"
|
|
94
|
+
type="{{ buttonType }}"
|
|
95
|
+
[ngClass]="classes"
|
|
96
|
+
>
|
|
97
|
+
{{ label }}
|
|
98
|
+
</button>`, isInline: true, styles: [".ipt-button{font-family:Poppins,sans-serif;font-weight:700;border:0;border-radius:12px;cursor:pointer;display:inline-block;line-height:1;transition:.4s;width:100%;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.ipt-button:hover{box-shadow:0 10px 20px #1b1b1b80;transform:translateY(-3px)}.ipt-button:active{transform:scale(.99)}.ipt-button--primary{color:#fff;background-color:#1c77f7}.ipt-button--primary-disabled{color:gray;background-color:#fff;border:1px solid gray;box-shadow:none;cursor:not-allowed}.ipt-button--primary-disabled:hover{box-shadow:none;transform:translateY(0)}.ipt-button--secondary{color:#1c77f7;background-color:#fff;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.ipt-button--small{font-size:12px;padding:10px 16px}.ipt-button--medium{font-size:14px;padding:11px 20px}.ipt-button--large{font-size:16px;padding:12px 24px}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
99
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
100
|
+
type: Component,
|
|
101
|
+
args: [{ selector: 'ipt-button', template: `<button *ngIf="isEnabled"
|
|
102
|
+
type="{{ buttonType }}"
|
|
103
|
+
(click)="onClick.emit($event)"
|
|
104
|
+
[ngClass]="classes"
|
|
105
|
+
>
|
|
106
|
+
{{ label }}
|
|
107
|
+
</button>
|
|
108
|
+
|
|
109
|
+
<button *ngIf="!isEnabled"
|
|
110
|
+
type="{{ buttonType }}"
|
|
111
|
+
[ngClass]="classes"
|
|
112
|
+
>
|
|
113
|
+
{{ label }}
|
|
114
|
+
</button>`, styles: [".ipt-button{font-family:Poppins,sans-serif;font-weight:700;border:0;border-radius:12px;cursor:pointer;display:inline-block;line-height:1;transition:.4s;width:100%;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.ipt-button:hover{box-shadow:0 10px 20px #1b1b1b80;transform:translateY(-3px)}.ipt-button:active{transform:scale(.99)}.ipt-button--primary{color:#fff;background-color:#1c77f7}.ipt-button--primary-disabled{color:gray;background-color:#fff;border:1px solid gray;box-shadow:none;cursor:not-allowed}.ipt-button--primary-disabled:hover{box-shadow:none;transform:translateY(0)}.ipt-button--secondary{color:#1c77f7;background-color:#fff;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.ipt-button--small{font-size:12px;padding:10px 16px}.ipt-button--medium{font-size:14px;padding:11px 20px}.ipt-button--large{font-size:16px;padding:12px 24px}\n"] }]
|
|
115
|
+
}], propDecorators: { primary: [{
|
|
116
|
+
type: Input
|
|
117
|
+
}], size: [{
|
|
118
|
+
type: Input
|
|
119
|
+
}], label: [{
|
|
120
|
+
type: Input
|
|
121
|
+
}], buttonType: [{
|
|
122
|
+
type: Input
|
|
123
|
+
}], isEnabled: [{
|
|
124
|
+
type: Input
|
|
125
|
+
}], onClick: [{
|
|
126
|
+
type: Output
|
|
127
127
|
}] } });
|
|
128
128
|
|
|
129
|
-
class CheckboxComponent {
|
|
130
|
-
constructor() {
|
|
131
|
-
this.checkboxOption = false;
|
|
132
|
-
this.onChecked = new EventEmitter();
|
|
133
|
-
}
|
|
134
|
-
set control(value) {
|
|
135
|
-
if (this.formControl !== value) {
|
|
136
|
-
this.formControl = value;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
CheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
141
|
-
CheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: CheckboxComponent, selector: "ipt-checkbox", inputs: { checkboxOption: "checkboxOption", control: "control" }, outputs: { onChecked: "onChecked" }, ngImport: i0, template: `
|
|
142
|
-
<label class="cont">
|
|
143
|
-
<input
|
|
144
|
-
class="checkbox"
|
|
145
|
-
[formControl]="formControl"
|
|
146
|
-
[checked]="checkboxOption"
|
|
147
|
-
(click)="onChecked.emit($event)"
|
|
148
|
-
type="checkbox">
|
|
149
|
-
<span></span>
|
|
150
|
-
</label>
|
|
151
|
-
`, isInline: true, styles: [".cont{display:flex;align-items:center;transform:scale(1)}@media screen and (min-width: 320px){input[type=checkbox]{height:1rem;width:1.1rem;margin:5px;display:inline-block;-webkit-appearance:none;appearance:none;position:relative;background-color:#1c77f733;border-radius:15%;cursor:pointer;overflow:hidden}input[type=checkbox]:after{content:\"\";display:block;height:.4rem;width:.2rem;border-bottom:.21rem solid white;border-right:.21rem solid white;opacity:0;transform:rotate(45deg) translate(-50%,-50%);position:absolute;top:50%;left:20%;transition:.25s ease}input[type=checkbox]:before{content:\"\";display:block;height:0;width:0;background-color:#1c77f7;border-radius:50%;opacity:.5;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%;transition:.3s ease}input[type=checkbox]:checked:before{height:130%;width:130%;opacity:100%}input[type=checkbox]:checked:after{opacity:100%}span{font-size:1rem}}@media screen and (min-width: 375px){input[type=checkbox]{height:1.2rem;width:1.3rem}input[type=checkbox]:after{height:.5rem;width:.2rem;border-bottom:.21rem solid white;border-right:.21rem solid white}}@media screen and (min-width: 1024px){input[type=checkbox]{height:1.3rem;width:1.4rem}input[type=checkbox]:after{height:.6rem;width:.3rem;border-bottom:.21rem solid white;border-right:.21rem solid white}}\n"], directives: [{ type: i1$1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
|
|
152
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CheckboxComponent, decorators: [{
|
|
153
|
-
type: Component,
|
|
154
|
-
args: [{ selector: 'ipt-checkbox', template: `
|
|
155
|
-
<label class="cont">
|
|
156
|
-
<input
|
|
157
|
-
class="checkbox"
|
|
158
|
-
[formControl]="formControl"
|
|
159
|
-
[checked]="checkboxOption"
|
|
160
|
-
(click)="onChecked.emit($event)"
|
|
161
|
-
type="checkbox">
|
|
162
|
-
<span></span>
|
|
163
|
-
</label>
|
|
164
|
-
`, styles: [".cont{display:flex;align-items:center;transform:scale(1)}@media screen and (min-width: 320px){input[type=checkbox]{height:1rem;width:1.1rem;margin:5px;display:inline-block;-webkit-appearance:none;appearance:none;position:relative;background-color:#1c77f733;border-radius:15%;cursor:pointer;overflow:hidden}input[type=checkbox]:after{content:\"\";display:block;height:.4rem;width:.2rem;border-bottom:.21rem solid white;border-right:.21rem solid white;opacity:0;transform:rotate(45deg) translate(-50%,-50%);position:absolute;top:50%;left:20%;transition:.25s ease}input[type=checkbox]:before{content:\"\";display:block;height:0;width:0;background-color:#1c77f7;border-radius:50%;opacity:.5;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%;transition:.3s ease}input[type=checkbox]:checked:before{height:130%;width:130%;opacity:100%}input[type=checkbox]:checked:after{opacity:100%}span{font-size:1rem}}@media screen and (min-width: 375px){input[type=checkbox]{height:1.2rem;width:1.3rem}input[type=checkbox]:after{height:.5rem;width:.2rem;border-bottom:.21rem solid white;border-right:.21rem solid white}}@media screen and (min-width: 1024px){input[type=checkbox]{height:1.3rem;width:1.4rem}input[type=checkbox]:after{height:.6rem;width:.3rem;border-bottom:.21rem solid white;border-right:.21rem solid white}}\n"] }]
|
|
165
|
-
}], propDecorators: { checkboxOption: [{
|
|
166
|
-
type: Input
|
|
167
|
-
}], control: [{
|
|
168
|
-
type: Input
|
|
169
|
-
}], onChecked: [{
|
|
170
|
-
type: Output
|
|
129
|
+
class CheckboxComponent {
|
|
130
|
+
constructor() {
|
|
131
|
+
this.checkboxOption = false;
|
|
132
|
+
this.onChecked = new EventEmitter();
|
|
133
|
+
}
|
|
134
|
+
set control(value) {
|
|
135
|
+
if (this.formControl !== value) {
|
|
136
|
+
this.formControl = value;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
CheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
141
|
+
CheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: CheckboxComponent, selector: "ipt-checkbox", inputs: { checkboxOption: "checkboxOption", control: "control" }, outputs: { onChecked: "onChecked" }, ngImport: i0, template: `
|
|
142
|
+
<label class="cont">
|
|
143
|
+
<input
|
|
144
|
+
class="checkbox"
|
|
145
|
+
[formControl]="formControl"
|
|
146
|
+
[checked]="checkboxOption"
|
|
147
|
+
(click)="onChecked.emit($event)"
|
|
148
|
+
type="checkbox">
|
|
149
|
+
<span></span>
|
|
150
|
+
</label>
|
|
151
|
+
`, isInline: true, styles: [".cont{display:flex;align-items:center;transform:scale(1)}@media screen and (min-width: 320px){input[type=checkbox]{height:1rem;width:1.1rem;margin:5px;display:inline-block;-webkit-appearance:none;appearance:none;position:relative;background-color:#1c77f733;border-radius:15%;cursor:pointer;overflow:hidden}input[type=checkbox]:after{content:\"\";display:block;height:.4rem;width:.2rem;border-bottom:.21rem solid white;border-right:.21rem solid white;opacity:0;transform:rotate(45deg) translate(-50%,-50%);position:absolute;top:50%;left:20%;transition:.25s ease}input[type=checkbox]:before{content:\"\";display:block;height:0;width:0;background-color:#1c77f7;border-radius:50%;opacity:.5;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%;transition:.3s ease}input[type=checkbox]:checked:before{height:130%;width:130%;opacity:100%}input[type=checkbox]:checked:after{opacity:100%}span{font-size:1rem}}@media screen and (min-width: 375px){input[type=checkbox]{height:1.2rem;width:1.3rem}input[type=checkbox]:after{height:.5rem;width:.2rem;border-bottom:.21rem solid white;border-right:.21rem solid white}}@media screen and (min-width: 1024px){input[type=checkbox]{height:1.3rem;width:1.4rem}input[type=checkbox]:after{height:.6rem;width:.3rem;border-bottom:.21rem solid white;border-right:.21rem solid white}}\n"], directives: [{ type: i1$1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
|
|
152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CheckboxComponent, decorators: [{
|
|
153
|
+
type: Component,
|
|
154
|
+
args: [{ selector: 'ipt-checkbox', template: `
|
|
155
|
+
<label class="cont">
|
|
156
|
+
<input
|
|
157
|
+
class="checkbox"
|
|
158
|
+
[formControl]="formControl"
|
|
159
|
+
[checked]="checkboxOption"
|
|
160
|
+
(click)="onChecked.emit($event)"
|
|
161
|
+
type="checkbox">
|
|
162
|
+
<span></span>
|
|
163
|
+
</label>
|
|
164
|
+
`, styles: [".cont{display:flex;align-items:center;transform:scale(1)}@media screen and (min-width: 320px){input[type=checkbox]{height:1rem;width:1.1rem;margin:5px;display:inline-block;-webkit-appearance:none;appearance:none;position:relative;background-color:#1c77f733;border-radius:15%;cursor:pointer;overflow:hidden}input[type=checkbox]:after{content:\"\";display:block;height:.4rem;width:.2rem;border-bottom:.21rem solid white;border-right:.21rem solid white;opacity:0;transform:rotate(45deg) translate(-50%,-50%);position:absolute;top:50%;left:20%;transition:.25s ease}input[type=checkbox]:before{content:\"\";display:block;height:0;width:0;background-color:#1c77f7;border-radius:50%;opacity:.5;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%;transition:.3s ease}input[type=checkbox]:checked:before{height:130%;width:130%;opacity:100%}input[type=checkbox]:checked:after{opacity:100%}span{font-size:1rem}}@media screen and (min-width: 375px){input[type=checkbox]{height:1.2rem;width:1.3rem}input[type=checkbox]:after{height:.5rem;width:.2rem;border-bottom:.21rem solid white;border-right:.21rem solid white}}@media screen and (min-width: 1024px){input[type=checkbox]{height:1.3rem;width:1.4rem}input[type=checkbox]:after{height:.6rem;width:.3rem;border-bottom:.21rem solid white;border-right:.21rem solid white}}\n"] }]
|
|
165
|
+
}], propDecorators: { checkboxOption: [{
|
|
166
|
+
type: Input
|
|
167
|
+
}], control: [{
|
|
168
|
+
type: Input
|
|
169
|
+
}], onChecked: [{
|
|
170
|
+
type: Output
|
|
171
171
|
}] } });
|
|
172
172
|
|
|
173
|
-
class DatalistComponent {
|
|
174
|
-
constructor(fb) {
|
|
175
|
-
this.disabledSel = false;
|
|
176
|
-
this.isChanged = new EventEmitter();
|
|
177
|
-
this.clicked = false;
|
|
178
|
-
}
|
|
179
|
-
optionChanged(event) {
|
|
180
|
-
let selectOption = this.datalistData.find(element => element.name == event.target.value);
|
|
181
|
-
if (typeof (selectOption) != 'undefined') {
|
|
182
|
-
this.isChanged.emit(selectOption.code);
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
this.isChanged.emit('-1');
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
click(value) {
|
|
189
|
-
this.clicked = value.isTrusted;
|
|
190
|
-
}
|
|
191
|
-
setDataListValue() {
|
|
192
|
-
let selectOption = this.datalistData.find(element => element.code == this.initalData);
|
|
193
|
-
if (typeof (selectOption) != 'undefined') {
|
|
194
|
-
return selectOption.name;
|
|
195
|
-
}
|
|
196
|
-
else {
|
|
197
|
-
return '';
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
get labelClass() {
|
|
201
|
-
return this.clicked === false ? 'label' : 'labelUp';
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
DatalistComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, deps: [{ token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
205
|
-
DatalistComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: DatalistComponent, selector: "ipt-datalist", inputs: { datalistId: "datalistId", datalistData: "datalistData", placeHolder: "placeHolder", validateText: "validateText", initalData: "initalData", disabledSel: "disabledSel" }, outputs: { isChanged: "isChanged" }, ngImport: i0, template: `
|
|
206
|
-
<div class="input-container">
|
|
207
|
-
<label [ngClass]="labelClass">{{ placeHolder }}</label>
|
|
208
|
-
<input
|
|
209
|
-
type="text"
|
|
210
|
-
class="input"
|
|
211
|
-
(click)="click($event)"
|
|
212
|
-
[attr.list]="datalistId"
|
|
213
|
-
(change)="optionChanged($event)"
|
|
214
|
-
[disabled]="disabledSel"
|
|
215
|
-
[value]="setDataListValue()"
|
|
216
|
-
/>
|
|
217
|
-
|
|
218
|
-
<datalist id="{{ datalistId }}">
|
|
219
|
-
<option *ngFor="let item of datalistData; index as i" [value]="item.name">
|
|
220
|
-
{{item.id_card}} {{item.name}}
|
|
221
|
-
</option>
|
|
222
|
-
</datalist>
|
|
223
|
-
</div>
|
|
224
|
-
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}.input-container{position:relative;margin-top:30px}.input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;margin:10px 10px -30px;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff}.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}.labelUp{color:#1c77f7;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.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
|
|
225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, decorators: [{
|
|
226
|
-
type: Component,
|
|
227
|
-
args: [{ selector: 'ipt-datalist', template: `
|
|
228
|
-
<div class="input-container">
|
|
229
|
-
<label [ngClass]="labelClass">{{ placeHolder }}</label>
|
|
230
|
-
<input
|
|
231
|
-
type="text"
|
|
232
|
-
class="input"
|
|
233
|
-
(click)="click($event)"
|
|
234
|
-
[attr.list]="datalistId"
|
|
235
|
-
(change)="optionChanged($event)"
|
|
236
|
-
[disabled]="disabledSel"
|
|
237
|
-
[value]="setDataListValue()"
|
|
238
|
-
/>
|
|
239
|
-
|
|
240
|
-
<datalist id="{{ datalistId }}">
|
|
241
|
-
<option *ngFor="let item of datalistData; index as i" [value]="item.name">
|
|
242
|
-
{{item.id_card}} {{item.name}}
|
|
243
|
-
</option>
|
|
244
|
-
</datalist>
|
|
245
|
-
</div>
|
|
246
|
-
`, styles: ["*{font-family:Poppins,sans-serif}.input-container{position:relative;margin-top:30px}.input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;margin:10px 10px -30px;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff}.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}.labelUp{color:#1c77f7;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"] }]
|
|
247
|
-
}], ctorParameters: function () { return [{ type: i1$1.FormBuilder }]; }, propDecorators: { datalistId: [{
|
|
248
|
-
type: Input
|
|
249
|
-
}], datalistData: [{
|
|
250
|
-
type: Input
|
|
251
|
-
}], placeHolder: [{
|
|
252
|
-
type: Input
|
|
253
|
-
}], validateText: [{
|
|
254
|
-
type: Input
|
|
255
|
-
}], initalData: [{
|
|
256
|
-
type: Input
|
|
257
|
-
}], disabledSel: [{
|
|
258
|
-
type: Input
|
|
259
|
-
}], isChanged: [{
|
|
260
|
-
type: Output
|
|
173
|
+
class DatalistComponent {
|
|
174
|
+
constructor(fb) {
|
|
175
|
+
this.disabledSel = false;
|
|
176
|
+
this.isChanged = new EventEmitter();
|
|
177
|
+
this.clicked = false;
|
|
178
|
+
}
|
|
179
|
+
optionChanged(event) {
|
|
180
|
+
let selectOption = this.datalistData.find(element => element.name == event.target.value);
|
|
181
|
+
if (typeof (selectOption) != 'undefined') {
|
|
182
|
+
this.isChanged.emit(selectOption.code);
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
this.isChanged.emit('-1');
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
click(value) {
|
|
189
|
+
this.clicked = value.isTrusted;
|
|
190
|
+
}
|
|
191
|
+
setDataListValue() {
|
|
192
|
+
let selectOption = this.datalistData.find(element => element.code == this.initalData);
|
|
193
|
+
if (typeof (selectOption) != 'undefined') {
|
|
194
|
+
return selectOption.name;
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
return '';
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
get labelClass() {
|
|
201
|
+
return this.clicked === false ? 'label' : 'labelUp';
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
DatalistComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, deps: [{ token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
205
|
+
DatalistComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: DatalistComponent, selector: "ipt-datalist", inputs: { datalistId: "datalistId", datalistData: "datalistData", placeHolder: "placeHolder", validateText: "validateText", initalData: "initalData", disabledSel: "disabledSel" }, outputs: { isChanged: "isChanged" }, ngImport: i0, template: `
|
|
206
|
+
<div class="input-container">
|
|
207
|
+
<label [ngClass]="labelClass">{{ placeHolder }}</label>
|
|
208
|
+
<input
|
|
209
|
+
type="text"
|
|
210
|
+
class="input"
|
|
211
|
+
(click)="click($event)"
|
|
212
|
+
[attr.list]="datalistId"
|
|
213
|
+
(change)="optionChanged($event)"
|
|
214
|
+
[disabled]="disabledSel"
|
|
215
|
+
[value]="setDataListValue()"
|
|
216
|
+
/>
|
|
217
|
+
|
|
218
|
+
<datalist id="{{ datalistId }}">
|
|
219
|
+
<option *ngFor="let item of datalistData; index as i" [value]="item.name">
|
|
220
|
+
{{item.id_card}} {{item.name}}
|
|
221
|
+
</option>
|
|
222
|
+
</datalist>
|
|
223
|
+
</div>
|
|
224
|
+
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}.input-container{position:relative;margin-top:30px}.input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;margin:10px 10px -30px;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff}.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}.labelUp{color:#1c77f7;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.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
|
|
225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, decorators: [{
|
|
226
|
+
type: Component,
|
|
227
|
+
args: [{ selector: 'ipt-datalist', template: `
|
|
228
|
+
<div class="input-container">
|
|
229
|
+
<label [ngClass]="labelClass">{{ placeHolder }}</label>
|
|
230
|
+
<input
|
|
231
|
+
type="text"
|
|
232
|
+
class="input"
|
|
233
|
+
(click)="click($event)"
|
|
234
|
+
[attr.list]="datalistId"
|
|
235
|
+
(change)="optionChanged($event)"
|
|
236
|
+
[disabled]="disabledSel"
|
|
237
|
+
[value]="setDataListValue()"
|
|
238
|
+
/>
|
|
239
|
+
|
|
240
|
+
<datalist id="{{ datalistId }}">
|
|
241
|
+
<option *ngFor="let item of datalistData; index as i" [value]="item.name">
|
|
242
|
+
{{item.id_card}} {{item.name}}
|
|
243
|
+
</option>
|
|
244
|
+
</datalist>
|
|
245
|
+
</div>
|
|
246
|
+
`, styles: ["*{font-family:Poppins,sans-serif}.input-container{position:relative;margin-top:30px}.input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;margin:10px 10px -30px;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff}.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}.labelUp{color:#1c77f7;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"] }]
|
|
247
|
+
}], ctorParameters: function () { return [{ type: i1$1.FormBuilder }]; }, propDecorators: { datalistId: [{
|
|
248
|
+
type: Input
|
|
249
|
+
}], datalistData: [{
|
|
250
|
+
type: Input
|
|
251
|
+
}], placeHolder: [{
|
|
252
|
+
type: Input
|
|
253
|
+
}], validateText: [{
|
|
254
|
+
type: Input
|
|
255
|
+
}], initalData: [{
|
|
256
|
+
type: Input
|
|
257
|
+
}], disabledSel: [{
|
|
258
|
+
type: Input
|
|
259
|
+
}], isChanged: [{
|
|
260
|
+
type: Output
|
|
261
261
|
}] } });
|
|
262
262
|
|
|
263
|
-
class InputComponent {
|
|
264
|
-
constructor() {
|
|
265
|
-
this.data = [];
|
|
266
|
-
this.clicked = false;
|
|
267
|
-
this.withPipe = false;
|
|
268
|
-
this.prefix = '$';
|
|
269
|
-
this.thousands = '.';
|
|
270
|
-
this.decimal = ',';
|
|
271
|
-
}
|
|
272
|
-
set control(value) {
|
|
273
|
-
if (this.formControl !== value) {
|
|
274
|
-
this.formControl = value;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
ngOnInit() { }
|
|
278
|
-
click(value) {
|
|
279
|
-
this.clicked = value.isTrusted;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
283
|
-
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", prefix: "prefix", thousands: "thousands", decimal: "decimal" }, ngImport: i0, template: `
|
|
284
|
-
<div class="input-container">
|
|
285
|
-
<input *ngIf="inputType === 'date'"
|
|
286
|
-
class="input"
|
|
287
|
-
type="{{ inputType ? 'text' : 'date' }}"
|
|
288
|
-
[formControl]="formControl"
|
|
289
|
-
onfocus="this.type='date';"
|
|
290
|
-
onblur="javascript: if( !this.value ) this.type='text';"
|
|
291
|
-
uib-datepicker-popup="dd/MM/yyyy"
|
|
292
|
-
ng-model="inputType"/>
|
|
293
|
-
|
|
294
|
-
<input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
|
|
295
|
-
class="input"
|
|
296
|
-
type="{{ inputType }}"
|
|
297
|
-
[formControl]="formControl"
|
|
298
|
-
[attr.list]="list"/>
|
|
299
|
-
|
|
300
|
-
<input *ngIf="inputType === 'text' && withPipe"
|
|
301
|
-
class="input"
|
|
302
|
-
currencyMask
|
|
303
|
-
[options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
|
|
304
|
-
type="{{ inputType }}"
|
|
305
|
-
[formControl]="formControl"
|
|
306
|
-
[attr.list]="list"/>
|
|
307
|
-
|
|
308
|
-
<input *ngIf="inputType === 'time'"
|
|
309
|
-
class="input"
|
|
310
|
-
type="time"
|
|
311
|
-
[formControl]="formControl"
|
|
312
|
-
[min]="'06:00:00'"
|
|
313
|
-
max="22:00:00"
|
|
314
|
-
step="900"
|
|
315
|
-
autocomplete="on"
|
|
316
|
-
value="08:00:00"
|
|
317
|
-
(click)="click($event)"
|
|
318
|
-
/>
|
|
319
|
-
|
|
320
|
-
<label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
|
|
321
|
-
|
|
322
|
-
<p *ngIf="(formControl.invalid && formControl.value !== '') || formControl.touched">
|
|
323
|
-
{{ validateText }}
|
|
324
|
-
</p>
|
|
325
|
-
</div>
|
|
326
|
-
`, 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:6px;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: i3.CurrencyMaskDirective, selector: "[currencyMask]", inputs: ["max", "min", "options"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
327
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, decorators: [{
|
|
328
|
-
type: Component,
|
|
329
|
-
args: [{ selector: 'ipt-input', template: `
|
|
330
|
-
<div class="input-container">
|
|
331
|
-
<input *ngIf="inputType === 'date'"
|
|
332
|
-
class="input"
|
|
333
|
-
type="{{ inputType ? 'text' : 'date' }}"
|
|
334
|
-
[formControl]="formControl"
|
|
335
|
-
onfocus="this.type='date';"
|
|
336
|
-
onblur="javascript: if( !this.value ) this.type='text';"
|
|
337
|
-
uib-datepicker-popup="dd/MM/yyyy"
|
|
338
|
-
ng-model="inputType"/>
|
|
339
|
-
|
|
340
|
-
<input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
|
|
341
|
-
class="input"
|
|
342
|
-
type="{{ inputType }}"
|
|
343
|
-
[formControl]="formControl"
|
|
344
|
-
[attr.list]="list"/>
|
|
345
|
-
|
|
346
|
-
<input *ngIf="inputType === 'text' && withPipe"
|
|
347
|
-
class="input"
|
|
348
|
-
currencyMask
|
|
349
|
-
[options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
|
|
350
|
-
type="{{ inputType }}"
|
|
351
|
-
[formControl]="formControl"
|
|
352
|
-
[attr.list]="list"/>
|
|
353
|
-
|
|
354
|
-
<input *ngIf="inputType === 'time'"
|
|
355
|
-
class="input"
|
|
356
|
-
type="time"
|
|
357
|
-
[formControl]="formControl"
|
|
358
|
-
[min]="'06:00:00'"
|
|
359
|
-
max="22:00:00"
|
|
360
|
-
step="900"
|
|
361
|
-
autocomplete="on"
|
|
362
|
-
value="08:00:00"
|
|
363
|
-
(click)="click($event)"
|
|
364
|
-
/>
|
|
365
|
-
|
|
366
|
-
<label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
|
|
367
|
-
|
|
368
|
-
<p *ngIf="(formControl.invalid && formControl.value !== '') || formControl.touched">
|
|
369
|
-
{{ validateText }}
|
|
370
|
-
</p>
|
|
371
|
-
</div>
|
|
372
|
-
`, 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:6px;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"] }]
|
|
373
|
-
}], ctorParameters: function () { return []; }, propDecorators: { inputType: [{
|
|
374
|
-
type: Input
|
|
375
|
-
}], placeHolder: [{
|
|
376
|
-
type: Input
|
|
377
|
-
}], validateText: [{
|
|
378
|
-
type: Input
|
|
379
|
-
}], withPipe: [{
|
|
380
|
-
type: Input
|
|
381
|
-
}], list: [{
|
|
382
|
-
type: Input
|
|
383
|
-
}], iconUrl: [{
|
|
384
|
-
type: Input
|
|
385
|
-
}], control: [{
|
|
386
|
-
type: Input
|
|
387
|
-
}], prefix: [{
|
|
388
|
-
type: Input
|
|
389
|
-
}], thousands: [{
|
|
390
|
-
type: Input
|
|
391
|
-
}], decimal: [{
|
|
392
|
-
type: Input
|
|
263
|
+
class InputComponent {
|
|
264
|
+
constructor() {
|
|
265
|
+
this.data = [];
|
|
266
|
+
this.clicked = false;
|
|
267
|
+
this.withPipe = false;
|
|
268
|
+
this.prefix = '$';
|
|
269
|
+
this.thousands = '.';
|
|
270
|
+
this.decimal = ',';
|
|
271
|
+
}
|
|
272
|
+
set control(value) {
|
|
273
|
+
if (this.formControl !== value) {
|
|
274
|
+
this.formControl = value;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
ngOnInit() { }
|
|
278
|
+
click(value) {
|
|
279
|
+
this.clicked = value.isTrusted;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
283
|
+
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", prefix: "prefix", thousands: "thousands", decimal: "decimal" }, ngImport: i0, template: `
|
|
284
|
+
<div class="input-container">
|
|
285
|
+
<input *ngIf="inputType === 'date'"
|
|
286
|
+
class="input"
|
|
287
|
+
type="{{ inputType ? 'text' : 'date' }}"
|
|
288
|
+
[formControl]="formControl"
|
|
289
|
+
onfocus="this.type='date';"
|
|
290
|
+
onblur="javascript: if( !this.value ) this.type='text';"
|
|
291
|
+
uib-datepicker-popup="dd/MM/yyyy"
|
|
292
|
+
ng-model="inputType"/>
|
|
293
|
+
|
|
294
|
+
<input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
|
|
295
|
+
class="input"
|
|
296
|
+
type="{{ inputType }}"
|
|
297
|
+
[formControl]="formControl"
|
|
298
|
+
[attr.list]="list"/>
|
|
299
|
+
|
|
300
|
+
<input *ngIf="inputType === 'text' && withPipe"
|
|
301
|
+
class="input"
|
|
302
|
+
currencyMask
|
|
303
|
+
[options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
|
|
304
|
+
type="{{ inputType }}"
|
|
305
|
+
[formControl]="formControl"
|
|
306
|
+
[attr.list]="list"/>
|
|
307
|
+
|
|
308
|
+
<input *ngIf="inputType === 'time'"
|
|
309
|
+
class="input"
|
|
310
|
+
type="time"
|
|
311
|
+
[formControl]="formControl"
|
|
312
|
+
[min]="'06:00:00'"
|
|
313
|
+
max="22:00:00"
|
|
314
|
+
step="900"
|
|
315
|
+
autocomplete="on"
|
|
316
|
+
value="08:00:00"
|
|
317
|
+
(click)="click($event)"
|
|
318
|
+
/>
|
|
319
|
+
|
|
320
|
+
<label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
|
|
321
|
+
|
|
322
|
+
<p *ngIf="(formControl.invalid && formControl.value !== '') || formControl.touched">
|
|
323
|
+
{{ validateText }}
|
|
324
|
+
</p>
|
|
325
|
+
</div>
|
|
326
|
+
`, 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:6px;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: i3.CurrencyMaskDirective, selector: "[currencyMask]", inputs: ["max", "min", "options"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
327
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, decorators: [{
|
|
328
|
+
type: Component,
|
|
329
|
+
args: [{ selector: 'ipt-input', template: `
|
|
330
|
+
<div class="input-container">
|
|
331
|
+
<input *ngIf="inputType === 'date'"
|
|
332
|
+
class="input"
|
|
333
|
+
type="{{ inputType ? 'text' : 'date' }}"
|
|
334
|
+
[formControl]="formControl"
|
|
335
|
+
onfocus="this.type='date';"
|
|
336
|
+
onblur="javascript: if( !this.value ) this.type='text';"
|
|
337
|
+
uib-datepicker-popup="dd/MM/yyyy"
|
|
338
|
+
ng-model="inputType"/>
|
|
339
|
+
|
|
340
|
+
<input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
|
|
341
|
+
class="input"
|
|
342
|
+
type="{{ inputType }}"
|
|
343
|
+
[formControl]="formControl"
|
|
344
|
+
[attr.list]="list"/>
|
|
345
|
+
|
|
346
|
+
<input *ngIf="inputType === 'text' && withPipe"
|
|
347
|
+
class="input"
|
|
348
|
+
currencyMask
|
|
349
|
+
[options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
|
|
350
|
+
type="{{ inputType }}"
|
|
351
|
+
[formControl]="formControl"
|
|
352
|
+
[attr.list]="list"/>
|
|
353
|
+
|
|
354
|
+
<input *ngIf="inputType === 'time'"
|
|
355
|
+
class="input"
|
|
356
|
+
type="time"
|
|
357
|
+
[formControl]="formControl"
|
|
358
|
+
[min]="'06:00:00'"
|
|
359
|
+
max="22:00:00"
|
|
360
|
+
step="900"
|
|
361
|
+
autocomplete="on"
|
|
362
|
+
value="08:00:00"
|
|
363
|
+
(click)="click($event)"
|
|
364
|
+
/>
|
|
365
|
+
|
|
366
|
+
<label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
|
|
367
|
+
|
|
368
|
+
<p *ngIf="(formControl.invalid && formControl.value !== '') || formControl.touched">
|
|
369
|
+
{{ validateText }}
|
|
370
|
+
</p>
|
|
371
|
+
</div>
|
|
372
|
+
`, 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:6px;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"] }]
|
|
373
|
+
}], ctorParameters: function () { return []; }, propDecorators: { inputType: [{
|
|
374
|
+
type: Input
|
|
375
|
+
}], placeHolder: [{
|
|
376
|
+
type: Input
|
|
377
|
+
}], validateText: [{
|
|
378
|
+
type: Input
|
|
379
|
+
}], withPipe: [{
|
|
380
|
+
type: Input
|
|
381
|
+
}], list: [{
|
|
382
|
+
type: Input
|
|
383
|
+
}], iconUrl: [{
|
|
384
|
+
type: Input
|
|
385
|
+
}], control: [{
|
|
386
|
+
type: Input
|
|
387
|
+
}], prefix: [{
|
|
388
|
+
type: Input
|
|
389
|
+
}], thousands: [{
|
|
390
|
+
type: Input
|
|
391
|
+
}], decimal: [{
|
|
392
|
+
type: Input
|
|
393
393
|
}] } });
|
|
394
394
|
|
|
395
|
-
class LevelButtonComponent {
|
|
396
|
-
constructor() {
|
|
397
|
-
this.isClicked = new EventEmitter();
|
|
398
|
-
}
|
|
399
|
-
clickAction() {
|
|
400
|
-
this.isClicked.emit(true);
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
LevelButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
404
|
-
LevelButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LevelButtonComponent, selector: "ipt-level-button", inputs: { level: "level", buttonActive: "buttonActive", idColor: "idColor" }, outputs: { isClicked: "isClicked" }, ngImport: i0, template: `
|
|
405
|
-
<div [ngSwitch]="buttonActive">
|
|
406
|
-
<button
|
|
407
|
-
*ngSwitchCase="0"
|
|
408
|
-
(click)="clickAction()"
|
|
409
|
-
id="level"
|
|
410
|
-
class="courses"
|
|
411
|
-
>
|
|
412
|
-
<p class="p-level">{{ level }}</p>
|
|
413
|
-
</button>
|
|
414
|
-
|
|
415
|
-
<button
|
|
416
|
-
*ngSwitchCase="1"
|
|
417
|
-
(click)="clickAction()"
|
|
418
|
-
id="{{ idColor }}"
|
|
419
|
-
class="courses">
|
|
420
|
-
<p class="p-level p-level-active">{{ level }}</p>
|
|
421
|
-
</button>
|
|
422
|
-
</div>
|
|
423
|
-
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.courses{cursor:pointer;text-decoration:none;display:flex;border-radius:6px;width:100%;height:30px;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset;border:none;outline:none;align-items:center;background-color:transparent;color:#1c77f7}.p-level{display:flex;align-items:center;justify-content:center;font-weight:600;font-size:16px}#level-1{background-color:#02eed8}#level-2{background-color:#61acff}#level-3{background-color:#f168f4}#level-4{background-color:#ff3737}#level-5{background-color:#004dfa}#level-6{background-color:#14c25a}#level-7{background-color:#a052da}#level-8{background-color:#f2583d}#level-9{background-color:#291d26}#level-10{background-color:#1c77f7}.p-level-active{color:#fff}}@media (min-width: 375px){.courses{height:40px}.p-level{font-size:18px}}@media (min-width: 425px){.courses{height:30px}}@media (min-width: 768px){.courses{height:40px}}@media (min-width: 1024px){.courses{transition:.6s}.courses:active{transform:scale(1.05);box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.p-level{font-weight:700}}@media (min-width: 1440px){.p-level{font-weight:600}}\n"], directives: [{ type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
|
|
424
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelButtonComponent, decorators: [{
|
|
425
|
-
type: Component,
|
|
426
|
-
args: [{ selector: 'ipt-level-button', template: `
|
|
427
|
-
<div [ngSwitch]="buttonActive">
|
|
428
|
-
<button
|
|
429
|
-
*ngSwitchCase="0"
|
|
430
|
-
(click)="clickAction()"
|
|
431
|
-
id="level"
|
|
432
|
-
class="courses"
|
|
433
|
-
>
|
|
434
|
-
<p class="p-level">{{ level }}</p>
|
|
435
|
-
</button>
|
|
436
|
-
|
|
437
|
-
<button
|
|
438
|
-
*ngSwitchCase="1"
|
|
439
|
-
(click)="clickAction()"
|
|
440
|
-
id="{{ idColor }}"
|
|
441
|
-
class="courses">
|
|
442
|
-
<p class="p-level p-level-active">{{ level }}</p>
|
|
443
|
-
</button>
|
|
444
|
-
</div>
|
|
445
|
-
`, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.courses{cursor:pointer;text-decoration:none;display:flex;border-radius:6px;width:100%;height:30px;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset;border:none;outline:none;align-items:center;background-color:transparent;color:#1c77f7}.p-level{display:flex;align-items:center;justify-content:center;font-weight:600;font-size:16px}#level-1{background-color:#02eed8}#level-2{background-color:#61acff}#level-3{background-color:#f168f4}#level-4{background-color:#ff3737}#level-5{background-color:#004dfa}#level-6{background-color:#14c25a}#level-7{background-color:#a052da}#level-8{background-color:#f2583d}#level-9{background-color:#291d26}#level-10{background-color:#1c77f7}.p-level-active{color:#fff}}@media (min-width: 375px){.courses{height:40px}.p-level{font-size:18px}}@media (min-width: 425px){.courses{height:30px}}@media (min-width: 768px){.courses{height:40px}}@media (min-width: 1024px){.courses{transition:.6s}.courses:active{transform:scale(1.05);box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.p-level{font-weight:700}}@media (min-width: 1440px){.p-level{font-weight:600}}\n"] }]
|
|
446
|
-
}], propDecorators: { level: [{
|
|
447
|
-
type: Input
|
|
448
|
-
}], buttonActive: [{
|
|
449
|
-
type: Input
|
|
450
|
-
}], idColor: [{
|
|
451
|
-
type: Input
|
|
452
|
-
}], isClicked: [{
|
|
453
|
-
type: Output
|
|
395
|
+
class LevelButtonComponent {
|
|
396
|
+
constructor() {
|
|
397
|
+
this.isClicked = new EventEmitter();
|
|
398
|
+
}
|
|
399
|
+
clickAction() {
|
|
400
|
+
this.isClicked.emit(true);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
LevelButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
404
|
+
LevelButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LevelButtonComponent, selector: "ipt-level-button", inputs: { level: "level", buttonActive: "buttonActive", idColor: "idColor" }, outputs: { isClicked: "isClicked" }, ngImport: i0, template: `
|
|
405
|
+
<div [ngSwitch]="buttonActive">
|
|
406
|
+
<button
|
|
407
|
+
*ngSwitchCase="0"
|
|
408
|
+
(click)="clickAction()"
|
|
409
|
+
id="level"
|
|
410
|
+
class="courses"
|
|
411
|
+
>
|
|
412
|
+
<p class="p-level">{{ level }}</p>
|
|
413
|
+
</button>
|
|
414
|
+
|
|
415
|
+
<button
|
|
416
|
+
*ngSwitchCase="1"
|
|
417
|
+
(click)="clickAction()"
|
|
418
|
+
id="{{ idColor }}"
|
|
419
|
+
class="courses">
|
|
420
|
+
<p class="p-level p-level-active">{{ level }}</p>
|
|
421
|
+
</button>
|
|
422
|
+
</div>
|
|
423
|
+
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.courses{cursor:pointer;text-decoration:none;display:flex;border-radius:6px;width:100%;height:30px;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset;border:none;outline:none;align-items:center;background-color:transparent;color:#1c77f7}.p-level{display:flex;align-items:center;justify-content:center;font-weight:600;font-size:16px}#level-1{background-color:#02eed8}#level-2{background-color:#61acff}#level-3{background-color:#f168f4}#level-4{background-color:#ff3737}#level-5{background-color:#004dfa}#level-6{background-color:#14c25a}#level-7{background-color:#a052da}#level-8{background-color:#f2583d}#level-9{background-color:#291d26}#level-10{background-color:#1c77f7}.p-level-active{color:#fff}}@media (min-width: 375px){.courses{height:40px}.p-level{font-size:18px}}@media (min-width: 425px){.courses{height:30px}}@media (min-width: 768px){.courses{height:40px}}@media (min-width: 1024px){.courses{transition:.6s}.courses:active{transform:scale(1.05);box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.p-level{font-weight:700}}@media (min-width: 1440px){.p-level{font-weight:600}}\n"], directives: [{ type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
|
|
424
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelButtonComponent, decorators: [{
|
|
425
|
+
type: Component,
|
|
426
|
+
args: [{ selector: 'ipt-level-button', template: `
|
|
427
|
+
<div [ngSwitch]="buttonActive">
|
|
428
|
+
<button
|
|
429
|
+
*ngSwitchCase="0"
|
|
430
|
+
(click)="clickAction()"
|
|
431
|
+
id="level"
|
|
432
|
+
class="courses"
|
|
433
|
+
>
|
|
434
|
+
<p class="p-level">{{ level }}</p>
|
|
435
|
+
</button>
|
|
436
|
+
|
|
437
|
+
<button
|
|
438
|
+
*ngSwitchCase="1"
|
|
439
|
+
(click)="clickAction()"
|
|
440
|
+
id="{{ idColor }}"
|
|
441
|
+
class="courses">
|
|
442
|
+
<p class="p-level p-level-active">{{ level }}</p>
|
|
443
|
+
</button>
|
|
444
|
+
</div>
|
|
445
|
+
`, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.courses{cursor:pointer;text-decoration:none;display:flex;border-radius:6px;width:100%;height:30px;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset;border:none;outline:none;align-items:center;background-color:transparent;color:#1c77f7}.p-level{display:flex;align-items:center;justify-content:center;font-weight:600;font-size:16px}#level-1{background-color:#02eed8}#level-2{background-color:#61acff}#level-3{background-color:#f168f4}#level-4{background-color:#ff3737}#level-5{background-color:#004dfa}#level-6{background-color:#14c25a}#level-7{background-color:#a052da}#level-8{background-color:#f2583d}#level-9{background-color:#291d26}#level-10{background-color:#1c77f7}.p-level-active{color:#fff}}@media (min-width: 375px){.courses{height:40px}.p-level{font-size:18px}}@media (min-width: 425px){.courses{height:30px}}@media (min-width: 768px){.courses{height:40px}}@media (min-width: 1024px){.courses{transition:.6s}.courses:active{transform:scale(1.05);box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.p-level{font-weight:700}}@media (min-width: 1440px){.p-level{font-weight:600}}\n"] }]
|
|
446
|
+
}], propDecorators: { level: [{
|
|
447
|
+
type: Input
|
|
448
|
+
}], buttonActive: [{
|
|
449
|
+
type: Input
|
|
450
|
+
}], idColor: [{
|
|
451
|
+
type: Input
|
|
452
|
+
}], isClicked: [{
|
|
453
|
+
type: Output
|
|
454
454
|
}] } });
|
|
455
455
|
|
|
456
|
-
class LevelTextComponent {
|
|
457
|
-
}
|
|
458
|
-
LevelTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
459
|
-
LevelTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LevelTextComponent, selector: "ipt-level-button", inputs: { level: "level", total: "total" }, ngImport: i0, template: `
|
|
460
|
-
<p class="p-table-course">{{ level }}: {{ total }}</p>
|
|
461
|
-
`, isInline: true, styles: ["@media (min-width: 320px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 375px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 425px){.p-table-course{font-size:18px}}@media (min-width: 1024px){.p-table-course{font-size:20px}}\n"] });
|
|
462
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelTextComponent, decorators: [{
|
|
463
|
-
type: Component,
|
|
464
|
-
args: [{ selector: 'ipt-level-button', template: `
|
|
465
|
-
<p class="p-table-course">{{ level }}: {{ total }}</p>
|
|
466
|
-
`, styles: ["@media (min-width: 320px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 375px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 425px){.p-table-course{font-size:18px}}@media (min-width: 1024px){.p-table-course{font-size:20px}}\n"] }]
|
|
467
|
-
}], propDecorators: { level: [{
|
|
468
|
-
type: Input
|
|
469
|
-
}], total: [{
|
|
470
|
-
type: Input
|
|
456
|
+
class LevelTextComponent {
|
|
457
|
+
}
|
|
458
|
+
LevelTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
459
|
+
LevelTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LevelTextComponent, selector: "ipt-level-button", inputs: { level: "level", total: "total" }, ngImport: i0, template: `
|
|
460
|
+
<p class="p-table-course">{{ level }}: {{ total }}</p>
|
|
461
|
+
`, isInline: true, styles: ["@media (min-width: 320px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 375px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 425px){.p-table-course{font-size:18px}}@media (min-width: 1024px){.p-table-course{font-size:20px}}\n"] });
|
|
462
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelTextComponent, decorators: [{
|
|
463
|
+
type: Component,
|
|
464
|
+
args: [{ selector: 'ipt-level-button', template: `
|
|
465
|
+
<p class="p-table-course">{{ level }}: {{ total }}</p>
|
|
466
|
+
`, styles: ["@media (min-width: 320px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 375px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 425px){.p-table-course{font-size:18px}}@media (min-width: 1024px){.p-table-course{font-size:20px}}\n"] }]
|
|
467
|
+
}], propDecorators: { level: [{
|
|
468
|
+
type: Input
|
|
469
|
+
}], total: [{
|
|
470
|
+
type: Input
|
|
471
471
|
}] } });
|
|
472
472
|
|
|
473
|
-
class RadioComponent {
|
|
474
|
-
constructor() {
|
|
475
|
-
this.radioOption = false;
|
|
476
|
-
this.onSelected = new EventEmitter();
|
|
477
|
-
}
|
|
478
|
-
set control(value) {
|
|
479
|
-
if (this.formControl !== value) {
|
|
480
|
-
this.formControl = value;
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
RadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
485
|
-
RadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: RadioComponent, selector: "ipt-radio", inputs: { radioOption: "radioOption", control: "control" }, outputs: { onSelected: "onSelected" }, ngImport: i0, template: `
|
|
486
|
-
<label class="cont">
|
|
487
|
-
<input
|
|
488
|
-
class="radio"
|
|
489
|
-
[formControl]="formControl"
|
|
490
|
-
[checked]="radioOption"
|
|
491
|
-
(click)="onSelected.emit($event)"
|
|
492
|
-
type="radio">
|
|
493
|
-
<span></span>
|
|
494
|
-
</label>
|
|
495
|
-
`, isInline: true, styles: [""], directives: [{ type: i1$1.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { 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"] }] });
|
|
496
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, decorators: [{
|
|
497
|
-
type: Component,
|
|
498
|
-
args: [{ selector: 'ipt-radio', template: `
|
|
499
|
-
<label class="cont">
|
|
500
|
-
<input
|
|
501
|
-
class="radio"
|
|
502
|
-
[formControl]="formControl"
|
|
503
|
-
[checked]="radioOption"
|
|
504
|
-
(click)="onSelected.emit($event)"
|
|
505
|
-
type="radio">
|
|
506
|
-
<span></span>
|
|
507
|
-
</label>
|
|
508
|
-
`, styles: [""] }]
|
|
509
|
-
}], propDecorators: { radioOption: [{
|
|
510
|
-
type: Input
|
|
511
|
-
}], control: [{
|
|
512
|
-
type: Input
|
|
513
|
-
}], onSelected: [{
|
|
514
|
-
type: Output
|
|
473
|
+
class RadioComponent {
|
|
474
|
+
constructor() {
|
|
475
|
+
this.radioOption = false;
|
|
476
|
+
this.onSelected = new EventEmitter();
|
|
477
|
+
}
|
|
478
|
+
set control(value) {
|
|
479
|
+
if (this.formControl !== value) {
|
|
480
|
+
this.formControl = value;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
RadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
485
|
+
RadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: RadioComponent, selector: "ipt-radio", inputs: { radioOption: "radioOption", control: "control" }, outputs: { onSelected: "onSelected" }, ngImport: i0, template: `
|
|
486
|
+
<label class="cont">
|
|
487
|
+
<input
|
|
488
|
+
class="radio"
|
|
489
|
+
[formControl]="formControl"
|
|
490
|
+
[checked]="radioOption"
|
|
491
|
+
(click)="onSelected.emit($event)"
|
|
492
|
+
type="radio">
|
|
493
|
+
<span></span>
|
|
494
|
+
</label>
|
|
495
|
+
`, isInline: true, styles: [""], directives: [{ type: i1$1.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { 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"] }] });
|
|
496
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, decorators: [{
|
|
497
|
+
type: Component,
|
|
498
|
+
args: [{ selector: 'ipt-radio', template: `
|
|
499
|
+
<label class="cont">
|
|
500
|
+
<input
|
|
501
|
+
class="radio"
|
|
502
|
+
[formControl]="formControl"
|
|
503
|
+
[checked]="radioOption"
|
|
504
|
+
(click)="onSelected.emit($event)"
|
|
505
|
+
type="radio">
|
|
506
|
+
<span></span>
|
|
507
|
+
</label>
|
|
508
|
+
`, styles: [""] }]
|
|
509
|
+
}], propDecorators: { radioOption: [{
|
|
510
|
+
type: Input
|
|
511
|
+
}], control: [{
|
|
512
|
+
type: Input
|
|
513
|
+
}], onSelected: [{
|
|
514
|
+
type: Output
|
|
515
515
|
}] } });
|
|
516
516
|
|
|
517
|
-
class SelectComponent {
|
|
518
|
-
constructor() {
|
|
519
|
-
this.boxShadow = 0;
|
|
520
|
-
this.clicked = false;
|
|
521
|
-
this.disabledSel = false;
|
|
522
|
-
this.eventSelect = new EventEmitter();
|
|
523
|
-
}
|
|
524
|
-
// type viene de otro componente -> indica de que tipo es el arreglo si pregrade, posgrade o modo
|
|
525
|
-
set control(value) {
|
|
526
|
-
if (this.formControl !== value) {
|
|
527
|
-
this.formControl = value;
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
ngOnChanges(changes) {
|
|
531
|
-
if (changes['data']) {
|
|
532
|
-
this.binding = this.defaultText;
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
seleccionar(evt) {
|
|
536
|
-
if (this.eventSelect.emit(evt) !== this.defaultText) {
|
|
537
|
-
this.boxShadow = 1;
|
|
538
|
-
}
|
|
539
|
-
else {
|
|
540
|
-
this.boxShadow = 2;
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
click(value) {
|
|
544
|
-
this.clicked = value.isTrusted;
|
|
545
|
-
}
|
|
546
|
-
ngOnInit() {
|
|
547
|
-
this.binding = this.defaultText;
|
|
548
|
-
}
|
|
549
|
-
get textClass() {
|
|
550
|
-
return this.defaultText === '' ? 'selected' : 'select';
|
|
551
|
-
}
|
|
552
|
-
get labelClass() {
|
|
553
|
-
return this.clicked === false ? 'label' : 'labelUp';
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
557
|
-
SelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: SelectComponent, selector: "ipt-select", inputs: { isRequired: "isRequired", data: "data", defaultText: "defaultText", selectCode: "selectCode", disabledSel: "disabledSel", control: "control" }, outputs: { eventSelect: "eventSelect" }, usesOnChanges: true, ngImport: i0, template: `
|
|
558
|
-
<div class="select-container">
|
|
559
|
-
<label [ngClass]="labelClass">{{ defaultText }}</label>
|
|
560
|
-
<select
|
|
561
|
-
[(ngModel)]="binding"
|
|
562
|
-
(ngModelChange)="seleccionar($event)"
|
|
563
|
-
(click)="click($event)"
|
|
564
|
-
[ngClass]="textClass"
|
|
565
|
-
[disabled]="disabledSel">
|
|
566
|
-
<option *ngFor="let item of data; index as i" [value]="item.code">
|
|
567
|
-
{{ item.name }} {{ item.prefix }}
|
|
568
|
-
</option>
|
|
569
|
-
</select>
|
|
570
|
-
</div>
|
|
571
|
-
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}.select-container{position:relative;margin-top:30px}.select{box-shadow:#64646f33 0 7px 29px;border-radius:6px;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}.selected{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;transition:.5s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;background-color:#fff;padding-left:10px}select:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.select: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}.labelUp{color:#1c77f7;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.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
|
|
572
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, decorators: [{
|
|
573
|
-
type: Component,
|
|
574
|
-
args: [{ selector: 'ipt-select', template: `
|
|
575
|
-
<div class="select-container">
|
|
576
|
-
<label [ngClass]="labelClass">{{ defaultText }}</label>
|
|
577
|
-
<select
|
|
578
|
-
[(ngModel)]="binding"
|
|
579
|
-
(ngModelChange)="seleccionar($event)"
|
|
580
|
-
(click)="click($event)"
|
|
581
|
-
[ngClass]="textClass"
|
|
582
|
-
[disabled]="disabledSel">
|
|
583
|
-
<option *ngFor="let item of data; index as i" [value]="item.code">
|
|
584
|
-
{{ item.name }} {{ item.prefix }}
|
|
585
|
-
</option>
|
|
586
|
-
</select>
|
|
587
|
-
</div>
|
|
588
|
-
`, styles: ["*{font-family:Poppins,sans-serif}.select-container{position:relative;margin-top:30px}.select{box-shadow:#64646f33 0 7px 29px;border-radius:6px;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}.selected{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;transition:.5s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;background-color:#fff;padding-left:10px}select:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.select: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}.labelUp{color:#1c77f7;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"] }]
|
|
589
|
-
}], propDecorators: { isRequired: [{
|
|
590
|
-
type: Input
|
|
591
|
-
}], data: [{
|
|
592
|
-
type: Input
|
|
593
|
-
}], defaultText: [{
|
|
594
|
-
type: Input
|
|
595
|
-
}], selectCode: [{
|
|
596
|
-
type: Input
|
|
597
|
-
}], disabledSel: [{
|
|
598
|
-
type: Input
|
|
599
|
-
}], eventSelect: [{
|
|
600
|
-
type: Output
|
|
601
|
-
}], control: [{
|
|
602
|
-
type: Input
|
|
517
|
+
class SelectComponent {
|
|
518
|
+
constructor() {
|
|
519
|
+
this.boxShadow = 0;
|
|
520
|
+
this.clicked = false;
|
|
521
|
+
this.disabledSel = false;
|
|
522
|
+
this.eventSelect = new EventEmitter();
|
|
523
|
+
}
|
|
524
|
+
// type viene de otro componente -> indica de que tipo es el arreglo si pregrade, posgrade o modo
|
|
525
|
+
set control(value) {
|
|
526
|
+
if (this.formControl !== value) {
|
|
527
|
+
this.formControl = value;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
ngOnChanges(changes) {
|
|
531
|
+
if (changes['data']) {
|
|
532
|
+
this.binding = this.defaultText;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
seleccionar(evt) {
|
|
536
|
+
if (this.eventSelect.emit(evt) !== this.defaultText) {
|
|
537
|
+
this.boxShadow = 1;
|
|
538
|
+
}
|
|
539
|
+
else {
|
|
540
|
+
this.boxShadow = 2;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
click(value) {
|
|
544
|
+
this.clicked = value.isTrusted;
|
|
545
|
+
}
|
|
546
|
+
ngOnInit() {
|
|
547
|
+
this.binding = this.defaultText;
|
|
548
|
+
}
|
|
549
|
+
get textClass() {
|
|
550
|
+
return this.defaultText === '' ? 'selected' : 'select';
|
|
551
|
+
}
|
|
552
|
+
get labelClass() {
|
|
553
|
+
return this.clicked === false ? 'label' : 'labelUp';
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
557
|
+
SelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: SelectComponent, selector: "ipt-select", inputs: { isRequired: "isRequired", data: "data", defaultText: "defaultText", selectCode: "selectCode", disabledSel: "disabledSel", control: "control" }, outputs: { eventSelect: "eventSelect" }, usesOnChanges: true, ngImport: i0, template: `
|
|
558
|
+
<div class="select-container">
|
|
559
|
+
<label [ngClass]="labelClass">{{ defaultText }}</label>
|
|
560
|
+
<select
|
|
561
|
+
[(ngModel)]="binding"
|
|
562
|
+
(ngModelChange)="seleccionar($event)"
|
|
563
|
+
(click)="click($event)"
|
|
564
|
+
[ngClass]="textClass"
|
|
565
|
+
[disabled]="disabledSel">
|
|
566
|
+
<option *ngFor="let item of data; index as i" [value]="item.code">
|
|
567
|
+
{{ item.name }} {{ item.prefix }}
|
|
568
|
+
</option>
|
|
569
|
+
</select>
|
|
570
|
+
</div>
|
|
571
|
+
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}.select-container{position:relative;margin-top:30px}.select{box-shadow:#64646f33 0 7px 29px;border-radius:6px;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}.selected{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;transition:.5s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;background-color:#fff;padding-left:10px}select:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.select: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}.labelUp{color:#1c77f7;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.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
|
|
572
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, decorators: [{
|
|
573
|
+
type: Component,
|
|
574
|
+
args: [{ selector: 'ipt-select', template: `
|
|
575
|
+
<div class="select-container">
|
|
576
|
+
<label [ngClass]="labelClass">{{ defaultText }}</label>
|
|
577
|
+
<select
|
|
578
|
+
[(ngModel)]="binding"
|
|
579
|
+
(ngModelChange)="seleccionar($event)"
|
|
580
|
+
(click)="click($event)"
|
|
581
|
+
[ngClass]="textClass"
|
|
582
|
+
[disabled]="disabledSel">
|
|
583
|
+
<option *ngFor="let item of data; index as i" [value]="item.code">
|
|
584
|
+
{{ item.name }} {{ item.prefix }}
|
|
585
|
+
</option>
|
|
586
|
+
</select>
|
|
587
|
+
</div>
|
|
588
|
+
`, styles: ["*{font-family:Poppins,sans-serif}.select-container{position:relative;margin-top:30px}.select{box-shadow:#64646f33 0 7px 29px;border-radius:6px;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}.selected{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;transition:.5s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;background-color:#fff;padding-left:10px}select:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.select: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}.labelUp{color:#1c77f7;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"] }]
|
|
589
|
+
}], propDecorators: { isRequired: [{
|
|
590
|
+
type: Input
|
|
591
|
+
}], data: [{
|
|
592
|
+
type: Input
|
|
593
|
+
}], defaultText: [{
|
|
594
|
+
type: Input
|
|
595
|
+
}], selectCode: [{
|
|
596
|
+
type: Input
|
|
597
|
+
}], disabledSel: [{
|
|
598
|
+
type: Input
|
|
599
|
+
}], eventSelect: [{
|
|
600
|
+
type: Output
|
|
601
|
+
}], control: [{
|
|
602
|
+
type: Input
|
|
603
603
|
}] } });
|
|
604
604
|
|
|
605
|
-
class TextLinkComponent {
|
|
606
|
-
constructor() {
|
|
607
|
-
this.isClicked = new EventEmitter();
|
|
608
|
-
}
|
|
609
|
-
isLinkClicked() {
|
|
610
|
-
this.isClicked.emit(true);
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
TextLinkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
614
|
-
TextLinkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: TextLinkComponent, selector: "ipt-text-link", inputs: { text: "text", blank: "blank", icon: "icon" }, outputs: { isClicked: "isClicked" }, ngImport: i0, template: `
|
|
615
|
-
<a class="text-link" (click)='isLinkClicked()'>
|
|
616
|
-
<p class="text-link__paragraph">
|
|
617
|
-
<i class="{{icon}}" aria-hidden="true"></i>
|
|
618
|
-
{{text}}
|
|
619
|
-
</p>
|
|
620
|
-
</a>
|
|
621
|
-
`, isInline: true, styles: [".text-link{font-family:Poppins,sans-serif;font-size:1.1rem;color:gray;display:flex;flex-direction:row}.text-link__image{height:1rem;background-position:center;fill:#0ff;-webkit-print-color-adjust:aqua;color-adjust:aqua}.text-link__paragraph{margin:0;text-align:end}a:hover,a:focus,.text-link:hover,.text-link:focus{color:#1c77f7;cursor:pointer}@media (max-width: 1200px){.text-link{font-size:.9rem;width:160px}}@media (max-width: 450px){.text-link{font-size:.9rem;width:150px}}\n"] });
|
|
622
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, decorators: [{
|
|
623
|
-
type: Component,
|
|
624
|
-
args: [{ selector: 'ipt-text-link', template: `
|
|
625
|
-
<a class="text-link" (click)='isLinkClicked()'>
|
|
626
|
-
<p class="text-link__paragraph">
|
|
627
|
-
<i class="{{icon}}" aria-hidden="true"></i>
|
|
628
|
-
{{text}}
|
|
629
|
-
</p>
|
|
630
|
-
</a>
|
|
631
|
-
`, styles: [".text-link{font-family:Poppins,sans-serif;font-size:1.1rem;color:gray;display:flex;flex-direction:row}.text-link__image{height:1rem;background-position:center;fill:#0ff;-webkit-print-color-adjust:aqua;color-adjust:aqua}.text-link__paragraph{margin:0;text-align:end}a:hover,a:focus,.text-link:hover,.text-link:focus{color:#1c77f7;cursor:pointer}@media (max-width: 1200px){.text-link{font-size:.9rem;width:160px}}@media (max-width: 450px){.text-link{font-size:.9rem;width:150px}}\n"] }]
|
|
632
|
-
}], ctorParameters: function () { return []; }, propDecorators: { text: [{
|
|
633
|
-
type: Input
|
|
634
|
-
}], blank: [{
|
|
635
|
-
type: Input
|
|
636
|
-
}], icon: [{
|
|
637
|
-
type: Input
|
|
638
|
-
}], isClicked: [{
|
|
639
|
-
type: Output
|
|
605
|
+
class TextLinkComponent {
|
|
606
|
+
constructor() {
|
|
607
|
+
this.isClicked = new EventEmitter();
|
|
608
|
+
}
|
|
609
|
+
isLinkClicked() {
|
|
610
|
+
this.isClicked.emit(true);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
TextLinkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
614
|
+
TextLinkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: TextLinkComponent, selector: "ipt-text-link", inputs: { text: "text", blank: "blank", icon: "icon" }, outputs: { isClicked: "isClicked" }, ngImport: i0, template: `
|
|
615
|
+
<a class="text-link" (click)='isLinkClicked()'>
|
|
616
|
+
<p class="text-link__paragraph">
|
|
617
|
+
<i class="{{icon}}" aria-hidden="true"></i>
|
|
618
|
+
{{text}}
|
|
619
|
+
</p>
|
|
620
|
+
</a>
|
|
621
|
+
`, isInline: true, styles: [".text-link{font-family:Poppins,sans-serif;font-size:1.1rem;color:gray;display:flex;flex-direction:row}.text-link__image{height:1rem;background-position:center;fill:#0ff;-webkit-print-color-adjust:aqua;color-adjust:aqua}.text-link__paragraph{margin:0;text-align:end}a:hover,a:focus,.text-link:hover,.text-link:focus{color:#1c77f7;cursor:pointer}@media (max-width: 1200px){.text-link{font-size:.9rem;width:160px}}@media (max-width: 450px){.text-link{font-size:.9rem;width:150px}}\n"] });
|
|
622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, decorators: [{
|
|
623
|
+
type: Component,
|
|
624
|
+
args: [{ selector: 'ipt-text-link', template: `
|
|
625
|
+
<a class="text-link" (click)='isLinkClicked()'>
|
|
626
|
+
<p class="text-link__paragraph">
|
|
627
|
+
<i class="{{icon}}" aria-hidden="true"></i>
|
|
628
|
+
{{text}}
|
|
629
|
+
</p>
|
|
630
|
+
</a>
|
|
631
|
+
`, styles: [".text-link{font-family:Poppins,sans-serif;font-size:1.1rem;color:gray;display:flex;flex-direction:row}.text-link__image{height:1rem;background-position:center;fill:#0ff;-webkit-print-color-adjust:aqua;color-adjust:aqua}.text-link__paragraph{margin:0;text-align:end}a:hover,a:focus,.text-link:hover,.text-link:focus{color:#1c77f7;cursor:pointer}@media (max-width: 1200px){.text-link{font-size:.9rem;width:160px}}@media (max-width: 450px){.text-link{font-size:.9rem;width:150px}}\n"] }]
|
|
632
|
+
}], ctorParameters: function () { return []; }, propDecorators: { text: [{
|
|
633
|
+
type: Input
|
|
634
|
+
}], blank: [{
|
|
635
|
+
type: Input
|
|
636
|
+
}], icon: [{
|
|
637
|
+
type: Input
|
|
638
|
+
}], isClicked: [{
|
|
639
|
+
type: Output
|
|
640
640
|
}] } });
|
|
641
641
|
|
|
642
|
-
class UserService {
|
|
643
|
-
constructor(http) {
|
|
644
|
-
this.http = http;
|
|
645
|
-
this.SERVICE_URL = 'https://iptdev.com.co/lab/users/api/';
|
|
646
|
-
}
|
|
647
|
-
login(userLogin) {
|
|
648
|
-
let serviceUrl = this.SERVICE_URL + 'post/login';
|
|
649
|
-
this.generateRequestParams(userLogin);
|
|
650
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
651
|
-
}
|
|
652
|
-
resetPassword(resetPassword) {
|
|
653
|
-
let serviceUrl = this.SERVICE_URL + 'reset/password';
|
|
654
|
-
this.generateRequestParams(resetPassword);
|
|
655
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
656
|
-
}
|
|
657
|
-
register(user) {
|
|
658
|
-
let serviceUrl = this.SERVICE_URL + 'post/create/web';
|
|
659
|
-
this.generateRequestParams(user);
|
|
660
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
661
|
-
}
|
|
662
|
-
registerIndex(register) {
|
|
663
|
-
let serviceUrl = this.SERVICE_URL + 'post/create/marketing';
|
|
664
|
-
this.generateRequestParams(register);
|
|
665
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
666
|
-
}
|
|
667
|
-
registerDashboard(user) {
|
|
668
|
-
let serviceUrl = this.SERVICE_URL + 'post/create/dashboard';
|
|
669
|
-
this.generateRequestParams(user);
|
|
670
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
671
|
-
}
|
|
672
|
-
getAvailableTeachers(token) {
|
|
673
|
-
let serviceUrl = this.SERVICE_URL + 'post/obtain/teachers';
|
|
674
|
-
this.generateRequestParams(token);
|
|
675
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
676
|
-
}
|
|
677
|
-
getAllAdvisor(userToken) {
|
|
678
|
-
let serviceUrl = this.SERVICE_URL + 'post/obtain/all/user/commercial';
|
|
679
|
-
this.generateRequestParams(userToken);
|
|
680
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
681
|
-
}
|
|
682
|
-
getByRoleUser(codeRole) {
|
|
683
|
-
let serviceUrl = this.SERVICE_URL + 'get/obtain/by/role/user/' + codeRole;
|
|
684
|
-
return this.http.get(serviceUrl);
|
|
685
|
-
}
|
|
686
|
-
getUserStatistics(userToken) {
|
|
687
|
-
let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
|
|
688
|
-
this.generateRequestParams(userToken);
|
|
689
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
690
|
-
}
|
|
691
|
-
getRoutesForRole(token) {
|
|
692
|
-
let serviceUrl = this.SERVICE_URL + 'post/routes/role';
|
|
693
|
-
this.generateRequestParams(token);
|
|
694
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
695
|
-
}
|
|
696
|
-
getStudents(token) {
|
|
697
|
-
let serviceUrl = this.SERVICE_URL + 'post/obtain/students';
|
|
698
|
-
this.generateRequestParams(token);
|
|
699
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
700
|
-
}
|
|
701
|
-
getStudent(token) {
|
|
702
|
-
let serviceUrl = this.SERVICE_URL + 'post/obtain/student';
|
|
703
|
-
this.generateRequestParams(token);
|
|
704
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
705
|
-
}
|
|
706
|
-
generateRequestParams(param) {
|
|
707
|
-
this.httpOptions = {
|
|
708
|
-
header: new HttpHeaders(),
|
|
709
|
-
params: param,
|
|
710
|
-
};
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
714
|
-
UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, providedIn: 'root' });
|
|
715
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, decorators: [{
|
|
716
|
-
type: Injectable,
|
|
717
|
-
args: [{
|
|
718
|
-
providedIn: 'root',
|
|
719
|
-
}]
|
|
642
|
+
class UserService {
|
|
643
|
+
constructor(http) {
|
|
644
|
+
this.http = http;
|
|
645
|
+
this.SERVICE_URL = 'https://iptdev.com.co/lab/users/api/';
|
|
646
|
+
}
|
|
647
|
+
login(userLogin) {
|
|
648
|
+
let serviceUrl = this.SERVICE_URL + 'post/login';
|
|
649
|
+
this.generateRequestParams(userLogin);
|
|
650
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
651
|
+
}
|
|
652
|
+
resetPassword(resetPassword) {
|
|
653
|
+
let serviceUrl = this.SERVICE_URL + 'reset/password';
|
|
654
|
+
this.generateRequestParams(resetPassword);
|
|
655
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
656
|
+
}
|
|
657
|
+
register(user) {
|
|
658
|
+
let serviceUrl = this.SERVICE_URL + 'post/create/web';
|
|
659
|
+
this.generateRequestParams(user);
|
|
660
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
661
|
+
}
|
|
662
|
+
registerIndex(register) {
|
|
663
|
+
let serviceUrl = this.SERVICE_URL + 'post/create/marketing';
|
|
664
|
+
this.generateRequestParams(register);
|
|
665
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
666
|
+
}
|
|
667
|
+
registerDashboard(user) {
|
|
668
|
+
let serviceUrl = this.SERVICE_URL + 'post/create/dashboard';
|
|
669
|
+
this.generateRequestParams(user);
|
|
670
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
671
|
+
}
|
|
672
|
+
getAvailableTeachers(token) {
|
|
673
|
+
let serviceUrl = this.SERVICE_URL + 'post/obtain/teachers';
|
|
674
|
+
this.generateRequestParams(token);
|
|
675
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
676
|
+
}
|
|
677
|
+
getAllAdvisor(userToken) {
|
|
678
|
+
let serviceUrl = this.SERVICE_URL + 'post/obtain/all/user/commercial';
|
|
679
|
+
this.generateRequestParams(userToken);
|
|
680
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
681
|
+
}
|
|
682
|
+
getByRoleUser(codeRole) {
|
|
683
|
+
let serviceUrl = this.SERVICE_URL + 'get/obtain/by/role/user/' + codeRole;
|
|
684
|
+
return this.http.get(serviceUrl);
|
|
685
|
+
}
|
|
686
|
+
getUserStatistics(userToken) {
|
|
687
|
+
let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
|
|
688
|
+
this.generateRequestParams(userToken);
|
|
689
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
690
|
+
}
|
|
691
|
+
getRoutesForRole(token) {
|
|
692
|
+
let serviceUrl = this.SERVICE_URL + 'post/routes/role';
|
|
693
|
+
this.generateRequestParams(token);
|
|
694
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
695
|
+
}
|
|
696
|
+
getStudents(token) {
|
|
697
|
+
let serviceUrl = this.SERVICE_URL + 'post/obtain/students';
|
|
698
|
+
this.generateRequestParams(token);
|
|
699
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
700
|
+
}
|
|
701
|
+
getStudent(token) {
|
|
702
|
+
let serviceUrl = this.SERVICE_URL + 'post/obtain/student';
|
|
703
|
+
this.generateRequestParams(token);
|
|
704
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
705
|
+
}
|
|
706
|
+
generateRequestParams(param) {
|
|
707
|
+
this.httpOptions = {
|
|
708
|
+
header: new HttpHeaders(),
|
|
709
|
+
params: param,
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
714
|
+
UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, providedIn: 'root' });
|
|
715
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, decorators: [{
|
|
716
|
+
type: Injectable,
|
|
717
|
+
args: [{
|
|
718
|
+
providedIn: 'root',
|
|
719
|
+
}]
|
|
720
720
|
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
|
|
721
721
|
|
|
722
|
-
class StorageService {
|
|
723
|
-
constructor() {
|
|
724
|
-
this.currentSession = null;
|
|
725
|
-
this.localStorageService = localStorage;
|
|
726
|
-
this.currentSession = this.loadSessionData();
|
|
727
|
-
}
|
|
728
|
-
setCurrentSession(session) {
|
|
729
|
-
this.currentSession = session;
|
|
730
|
-
this.localStorageService.setItem('606a7d4e73650b75ebb06972e77d6cc4', JSON.stringify(session));
|
|
731
|
-
}
|
|
732
|
-
loadSessionData() {
|
|
733
|
-
var sessionStr = this.localStorageService.getItem('606a7d4e73650b75ebb06972e77d6cc4');
|
|
734
|
-
return (sessionStr) ? JSON.parse(sessionStr) : null;
|
|
735
|
-
}
|
|
736
|
-
getCurrentSession() {
|
|
737
|
-
return this.currentSession;
|
|
738
|
-
}
|
|
739
|
-
removeCurrentSession() {
|
|
740
|
-
this.localStorageService.removeItem('606a7d4e73650b75ebb06972e77d6cc4');
|
|
741
|
-
this.currentSession = null;
|
|
742
|
-
}
|
|
743
|
-
getCurrentUser() {
|
|
744
|
-
var session = this.getCurrentSession();
|
|
745
|
-
return (session && session.user) ? session.user : null;
|
|
746
|
-
}
|
|
747
|
-
;
|
|
748
|
-
isAuthenticated() {
|
|
749
|
-
return (this.getCurrentToken() != null) ? true : false;
|
|
750
|
-
}
|
|
751
|
-
;
|
|
752
|
-
getCurrentToken() {
|
|
753
|
-
var session = this.getCurrentSession();
|
|
754
|
-
return (session && session.token) ? session.token : null;
|
|
755
|
-
}
|
|
756
|
-
;
|
|
757
|
-
logout() {
|
|
758
|
-
this.removeCurrentSession();
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
StorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
762
|
-
StorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, providedIn: 'root' });
|
|
763
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, decorators: [{
|
|
764
|
-
type: Injectable,
|
|
765
|
-
args: [{
|
|
766
|
-
providedIn: 'root',
|
|
767
|
-
}]
|
|
722
|
+
class StorageService {
|
|
723
|
+
constructor() {
|
|
724
|
+
this.currentSession = null;
|
|
725
|
+
this.localStorageService = localStorage;
|
|
726
|
+
this.currentSession = this.loadSessionData();
|
|
727
|
+
}
|
|
728
|
+
setCurrentSession(session) {
|
|
729
|
+
this.currentSession = session;
|
|
730
|
+
this.localStorageService.setItem('606a7d4e73650b75ebb06972e77d6cc4', JSON.stringify(session));
|
|
731
|
+
}
|
|
732
|
+
loadSessionData() {
|
|
733
|
+
var sessionStr = this.localStorageService.getItem('606a7d4e73650b75ebb06972e77d6cc4');
|
|
734
|
+
return (sessionStr) ? JSON.parse(sessionStr) : null;
|
|
735
|
+
}
|
|
736
|
+
getCurrentSession() {
|
|
737
|
+
return this.currentSession;
|
|
738
|
+
}
|
|
739
|
+
removeCurrentSession() {
|
|
740
|
+
this.localStorageService.removeItem('606a7d4e73650b75ebb06972e77d6cc4');
|
|
741
|
+
this.currentSession = null;
|
|
742
|
+
}
|
|
743
|
+
getCurrentUser() {
|
|
744
|
+
var session = this.getCurrentSession();
|
|
745
|
+
return (session && session.user) ? session.user : null;
|
|
746
|
+
}
|
|
747
|
+
;
|
|
748
|
+
isAuthenticated() {
|
|
749
|
+
return (this.getCurrentToken() != null) ? true : false;
|
|
750
|
+
}
|
|
751
|
+
;
|
|
752
|
+
getCurrentToken() {
|
|
753
|
+
var session = this.getCurrentSession();
|
|
754
|
+
return (session && session.token) ? session.token : null;
|
|
755
|
+
}
|
|
756
|
+
;
|
|
757
|
+
logout() {
|
|
758
|
+
this.removeCurrentSession();
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
StorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
762
|
+
StorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, providedIn: 'root' });
|
|
763
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, decorators: [{
|
|
764
|
+
type: Injectable,
|
|
765
|
+
args: [{
|
|
766
|
+
providedIn: 'root',
|
|
767
|
+
}]
|
|
768
768
|
}], ctorParameters: function () { return []; } });
|
|
769
769
|
|
|
770
|
-
class BaseService {
|
|
771
|
-
constructor(userService, storageService) {
|
|
772
|
-
this.userService = userService;
|
|
773
|
-
this.storageService = storageService;
|
|
774
|
-
}
|
|
775
|
-
webLogin(user, password) {
|
|
776
|
-
let request = {
|
|
777
|
-
user: user,
|
|
778
|
-
password: password
|
|
779
|
-
};
|
|
780
|
-
let service = this.userService;
|
|
781
|
-
let storage = this.storageService;
|
|
782
|
-
return new Promise(function (resolve, reject) {
|
|
783
|
-
service.login(request).subscribe(response => {
|
|
784
|
-
switch (response.message.code) {
|
|
785
|
-
case 1:
|
|
786
|
-
Swal.fire({
|
|
787
|
-
'title': '<p style="font-family: Poppins"">Perfect!</p>',
|
|
788
|
-
'html': '<p style="font-family: Poppins"">Succesfull login</p>',
|
|
789
|
-
'icon': 'success',
|
|
790
|
-
});
|
|
791
|
-
const loginRegisterUser = {
|
|
792
|
-
token: response.data.token,
|
|
793
|
-
user: response.data,
|
|
794
|
-
};
|
|
795
|
-
storage.setCurrentSession(loginRegisterUser);
|
|
796
|
-
resolve(true);
|
|
797
|
-
break;
|
|
798
|
-
case 2:
|
|
799
|
-
Swal.fire({
|
|
800
|
-
'title': '<p style="font-family: Poppins"">Warning!</p>',
|
|
801
|
-
'html': '<p style="font-family: Poppins"">The data does not correspond to a user registered in our system, please review them.</p>',
|
|
802
|
-
'icon': 'warning',
|
|
803
|
-
});
|
|
804
|
-
resolve(false);
|
|
805
|
-
break;
|
|
806
|
-
case 3:
|
|
807
|
-
Swal.fire({
|
|
808
|
-
'title': '<p style="font-family: Poppins"">Error!</p>',
|
|
809
|
-
'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
|
|
810
|
-
'icon': 'error',
|
|
811
|
-
});
|
|
812
|
-
resolve(false);
|
|
813
|
-
break;
|
|
814
|
-
default:
|
|
815
|
-
Swal.fire({
|
|
816
|
-
'title': '<p style="font-family: Poppins"">Error!</p>',
|
|
817
|
-
'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
|
|
818
|
-
'icon': 'error',
|
|
819
|
-
});
|
|
820
|
-
resolve(false);
|
|
821
|
-
break;
|
|
822
|
-
}
|
|
823
|
-
reject('Unhandled exception');
|
|
824
|
-
});
|
|
825
|
-
});
|
|
826
|
-
}
|
|
827
|
-
getUserRole() {
|
|
828
|
-
let user = this.storageService.getCurrentUser()?.role;
|
|
829
|
-
return user === undefined ? -1 : user;
|
|
830
|
-
}
|
|
831
|
-
getUserToken() {
|
|
832
|
-
let token = this.storageService.getCurrentUser()?.token;
|
|
833
|
-
return token === undefined ? '-1' : token;
|
|
834
|
-
}
|
|
835
|
-
getUserName() {
|
|
836
|
-
let user = this.storageService.getCurrentUser();
|
|
837
|
-
let response = user === null ? '' : user.name;
|
|
838
|
-
return response;
|
|
839
|
-
}
|
|
840
|
-
registerUserFromDashboard(registerDashboardRq) {
|
|
841
|
-
let request = registerDashboardRq;
|
|
842
|
-
let service = this.userService;
|
|
843
|
-
return new Promise(function (resolve, reject) {
|
|
844
|
-
service.registerDashboard(request).subscribe((response) => {
|
|
845
|
-
switch (response.message.code) {
|
|
846
|
-
case 1:
|
|
847
|
-
Swal.fire({
|
|
848
|
-
'title': '<p style="font-family: Poppins"">Perfect!</p>',
|
|
849
|
-
'html': '<p style="font-family: Poppins"">Sucesfull register!</p>',
|
|
850
|
-
'icon': 'success',
|
|
851
|
-
});
|
|
852
|
-
resolve(true);
|
|
853
|
-
break;
|
|
854
|
-
case 3:
|
|
855
|
-
Swal.fire({
|
|
856
|
-
'title': '<p style="font-family: Poppins"">Error!</p>',
|
|
857
|
-
'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
|
|
858
|
-
'icon': 'error',
|
|
859
|
-
});
|
|
860
|
-
resolve(false);
|
|
861
|
-
break;
|
|
862
|
-
case 4:
|
|
863
|
-
Swal.fire({
|
|
864
|
-
'title': '<p style="font-family: Poppins">Ups!</p>',
|
|
865
|
-
'html': '<p style="font-family: Poppins">The input data has a high relation with a user that already exists!</p>',
|
|
866
|
-
'icon': 'warning',
|
|
867
|
-
});
|
|
868
|
-
resolve(false);
|
|
869
|
-
break;
|
|
870
|
-
default:
|
|
871
|
-
Swal.fire({
|
|
872
|
-
'title': '<p style="font-family: Poppins"">Error!</p>',
|
|
873
|
-
'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
|
|
874
|
-
'icon': 'error',
|
|
875
|
-
});
|
|
876
|
-
resolve(false);
|
|
877
|
-
break;
|
|
878
|
-
}
|
|
879
|
-
reject('Unhandled exception');
|
|
880
|
-
});
|
|
881
|
-
});
|
|
882
|
-
}
|
|
883
|
-
jsonToArray(data) {
|
|
884
|
-
var response = [];
|
|
885
|
-
data.forEach((element) => {
|
|
886
|
-
var object = [];
|
|
887
|
-
for (var clave in element) {
|
|
888
|
-
if (element.hasOwnProperty(clave)) {
|
|
889
|
-
if (typeof element[clave] == 'object') {
|
|
890
|
-
element[clave] = this.subJsonToArray(element[clave]);
|
|
891
|
-
}
|
|
892
|
-
object.push(element[clave]);
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
response.push(object);
|
|
896
|
-
});
|
|
897
|
-
return response;
|
|
898
|
-
}
|
|
899
|
-
subJsonToArray(data) {
|
|
900
|
-
var object = '';
|
|
901
|
-
for (var clave in data) {
|
|
902
|
-
if (clave != 'code') {
|
|
903
|
-
object += '\n' + data[clave];
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
return object;
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, deps: [{ token: UserService }, { token: StorageService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
910
|
-
BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, providedIn: 'root' });
|
|
911
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, decorators: [{
|
|
912
|
-
type: Injectable,
|
|
913
|
-
args: [{
|
|
914
|
-
providedIn: 'root',
|
|
915
|
-
}]
|
|
770
|
+
class BaseService {
|
|
771
|
+
constructor(userService, storageService) {
|
|
772
|
+
this.userService = userService;
|
|
773
|
+
this.storageService = storageService;
|
|
774
|
+
}
|
|
775
|
+
webLogin(user, password) {
|
|
776
|
+
let request = {
|
|
777
|
+
user: user,
|
|
778
|
+
password: password
|
|
779
|
+
};
|
|
780
|
+
let service = this.userService;
|
|
781
|
+
let storage = this.storageService;
|
|
782
|
+
return new Promise(function (resolve, reject) {
|
|
783
|
+
service.login(request).subscribe(response => {
|
|
784
|
+
switch (response.message.code) {
|
|
785
|
+
case 1:
|
|
786
|
+
Swal.fire({
|
|
787
|
+
'title': '<p style="font-family: Poppins"">Perfect!</p>',
|
|
788
|
+
'html': '<p style="font-family: Poppins"">Succesfull login</p>',
|
|
789
|
+
'icon': 'success',
|
|
790
|
+
});
|
|
791
|
+
const loginRegisterUser = {
|
|
792
|
+
token: response.data.token,
|
|
793
|
+
user: response.data,
|
|
794
|
+
};
|
|
795
|
+
storage.setCurrentSession(loginRegisterUser);
|
|
796
|
+
resolve(true);
|
|
797
|
+
break;
|
|
798
|
+
case 2:
|
|
799
|
+
Swal.fire({
|
|
800
|
+
'title': '<p style="font-family: Poppins"">Warning!</p>',
|
|
801
|
+
'html': '<p style="font-family: Poppins"">The data does not correspond to a user registered in our system, please review them.</p>',
|
|
802
|
+
'icon': 'warning',
|
|
803
|
+
});
|
|
804
|
+
resolve(false);
|
|
805
|
+
break;
|
|
806
|
+
case 3:
|
|
807
|
+
Swal.fire({
|
|
808
|
+
'title': '<p style="font-family: Poppins"">Error!</p>',
|
|
809
|
+
'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
|
|
810
|
+
'icon': 'error',
|
|
811
|
+
});
|
|
812
|
+
resolve(false);
|
|
813
|
+
break;
|
|
814
|
+
default:
|
|
815
|
+
Swal.fire({
|
|
816
|
+
'title': '<p style="font-family: Poppins"">Error!</p>',
|
|
817
|
+
'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
|
|
818
|
+
'icon': 'error',
|
|
819
|
+
});
|
|
820
|
+
resolve(false);
|
|
821
|
+
break;
|
|
822
|
+
}
|
|
823
|
+
reject('Unhandled exception');
|
|
824
|
+
});
|
|
825
|
+
});
|
|
826
|
+
}
|
|
827
|
+
getUserRole() {
|
|
828
|
+
let user = this.storageService.getCurrentUser()?.role;
|
|
829
|
+
return user === undefined ? -1 : user;
|
|
830
|
+
}
|
|
831
|
+
getUserToken() {
|
|
832
|
+
let token = this.storageService.getCurrentUser()?.token;
|
|
833
|
+
return token === undefined ? '-1' : token;
|
|
834
|
+
}
|
|
835
|
+
getUserName() {
|
|
836
|
+
let user = this.storageService.getCurrentUser();
|
|
837
|
+
let response = user === null ? '' : user.name;
|
|
838
|
+
return response;
|
|
839
|
+
}
|
|
840
|
+
registerUserFromDashboard(registerDashboardRq) {
|
|
841
|
+
let request = registerDashboardRq;
|
|
842
|
+
let service = this.userService;
|
|
843
|
+
return new Promise(function (resolve, reject) {
|
|
844
|
+
service.registerDashboard(request).subscribe((response) => {
|
|
845
|
+
switch (response.message.code) {
|
|
846
|
+
case 1:
|
|
847
|
+
Swal.fire({
|
|
848
|
+
'title': '<p style="font-family: Poppins"">Perfect!</p>',
|
|
849
|
+
'html': '<p style="font-family: Poppins"">Sucesfull register!</p>',
|
|
850
|
+
'icon': 'success',
|
|
851
|
+
});
|
|
852
|
+
resolve(true);
|
|
853
|
+
break;
|
|
854
|
+
case 3:
|
|
855
|
+
Swal.fire({
|
|
856
|
+
'title': '<p style="font-family: Poppins"">Error!</p>',
|
|
857
|
+
'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
|
|
858
|
+
'icon': 'error',
|
|
859
|
+
});
|
|
860
|
+
resolve(false);
|
|
861
|
+
break;
|
|
862
|
+
case 4:
|
|
863
|
+
Swal.fire({
|
|
864
|
+
'title': '<p style="font-family: Poppins">Ups!</p>',
|
|
865
|
+
'html': '<p style="font-family: Poppins">The input data has a high relation with a user that already exists!</p>',
|
|
866
|
+
'icon': 'warning',
|
|
867
|
+
});
|
|
868
|
+
resolve(false);
|
|
869
|
+
break;
|
|
870
|
+
default:
|
|
871
|
+
Swal.fire({
|
|
872
|
+
'title': '<p style="font-family: Poppins"">Error!</p>',
|
|
873
|
+
'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
|
|
874
|
+
'icon': 'error',
|
|
875
|
+
});
|
|
876
|
+
resolve(false);
|
|
877
|
+
break;
|
|
878
|
+
}
|
|
879
|
+
reject('Unhandled exception');
|
|
880
|
+
});
|
|
881
|
+
});
|
|
882
|
+
}
|
|
883
|
+
jsonToArray(data) {
|
|
884
|
+
var response = [];
|
|
885
|
+
data.forEach((element) => {
|
|
886
|
+
var object = [];
|
|
887
|
+
for (var clave in element) {
|
|
888
|
+
if (element.hasOwnProperty(clave)) {
|
|
889
|
+
if (typeof element[clave] == 'object') {
|
|
890
|
+
element[clave] = this.subJsonToArray(element[clave]);
|
|
891
|
+
}
|
|
892
|
+
object.push(element[clave]);
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
response.push(object);
|
|
896
|
+
});
|
|
897
|
+
return response;
|
|
898
|
+
}
|
|
899
|
+
subJsonToArray(data) {
|
|
900
|
+
var object = '';
|
|
901
|
+
for (var clave in data) {
|
|
902
|
+
if (clave != 'code') {
|
|
903
|
+
object += '\n' + data[clave];
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
return object;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, deps: [{ token: UserService }, { token: StorageService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
910
|
+
BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, providedIn: 'root' });
|
|
911
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, decorators: [{
|
|
912
|
+
type: Injectable,
|
|
913
|
+
args: [{
|
|
914
|
+
providedIn: 'root',
|
|
915
|
+
}]
|
|
916
916
|
}], ctorParameters: function () { return [{ type: UserService }, { type: StorageService }]; } });
|
|
917
917
|
|
|
918
|
-
class LoginFormComponent {
|
|
919
|
-
constructor(fb, baseService) {
|
|
920
|
-
this.baseService = baseService;
|
|
921
|
-
this.isLogged = new EventEmitter();
|
|
922
|
-
this.loginForm = fb.group({
|
|
923
|
-
email: ['', [Validators.required]],
|
|
924
|
-
password: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(15)]],
|
|
925
|
-
});
|
|
926
|
-
}
|
|
927
|
-
login(data) {
|
|
928
|
-
this.baseService.webLogin(data.controls['email'].value, data.controls['password'].value).then((isLogged) => {
|
|
929
|
-
this.isLogged.emit(isLogged);
|
|
930
|
-
});
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
LoginFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoginFormComponent, deps: [{ token: i1$1.FormBuilder }, { token: BaseService }], target: i0.ɵɵFactoryTarget.Component });
|
|
934
|
-
LoginFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LoginFormComponent, selector: "ipt-login-form", outputs: { isLogged: "isLogged" }, ngImport: i0, template: `
|
|
935
|
-
<div class="form-container">
|
|
936
|
-
|
|
937
|
-
<h2 style="text-align: center;">IPT PLATFORM</h2>
|
|
938
|
-
<hr>
|
|
939
|
-
|
|
940
|
-
<form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
|
|
941
|
-
<ipt-input
|
|
942
|
-
[inputType]="'text'"
|
|
943
|
-
[placeHolder]="'Email'"
|
|
944
|
-
[validateText]="'Debe ser @inglesparatodos.edu.co'"
|
|
945
|
-
[control]="loginForm.controls['email']"
|
|
946
|
-
></ipt-input>
|
|
947
|
-
|
|
948
|
-
<ipt-input
|
|
949
|
-
[inputType]="'password'"
|
|
950
|
-
[placeHolder]="'Password'"
|
|
951
|
-
[control]="loginForm.controls['password']"
|
|
952
|
-
></ipt-input>
|
|
953
|
-
</form>
|
|
954
|
-
|
|
955
|
-
<div class="button-container">
|
|
956
|
-
<ipt-button
|
|
957
|
-
[label]="'Login'"
|
|
958
|
-
[primary]="true"
|
|
959
|
-
[isEnabled]="loginForm.valid"
|
|
960
|
-
(onClick)="login(loginForm)"
|
|
961
|
-
></ipt-button>
|
|
962
|
-
</div>
|
|
963
|
-
|
|
964
|
-
</div>
|
|
965
|
-
`, 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", "prefix", "thousands", "decimal"] }, { 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"] }] });
|
|
966
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoginFormComponent, decorators: [{
|
|
967
|
-
type: Component,
|
|
968
|
-
args: [{ selector: 'ipt-login-form', template: `
|
|
969
|
-
<div class="form-container">
|
|
970
|
-
|
|
971
|
-
<h2 style="text-align: center;">IPT PLATFORM</h2>
|
|
972
|
-
<hr>
|
|
973
|
-
|
|
974
|
-
<form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
|
|
975
|
-
<ipt-input
|
|
976
|
-
[inputType]="'text'"
|
|
977
|
-
[placeHolder]="'Email'"
|
|
978
|
-
[validateText]="'Debe ser @inglesparatodos.edu.co'"
|
|
979
|
-
[control]="loginForm.controls['email']"
|
|
980
|
-
></ipt-input>
|
|
981
|
-
|
|
982
|
-
<ipt-input
|
|
983
|
-
[inputType]="'password'"
|
|
984
|
-
[placeHolder]="'Password'"
|
|
985
|
-
[control]="loginForm.controls['password']"
|
|
986
|
-
></ipt-input>
|
|
987
|
-
</form>
|
|
988
|
-
|
|
989
|
-
<div class="button-container">
|
|
990
|
-
<ipt-button
|
|
991
|
-
[label]="'Login'"
|
|
992
|
-
[primary]="true"
|
|
993
|
-
[isEnabled]="loginForm.valid"
|
|
994
|
-
(onClick)="login(loginForm)"
|
|
995
|
-
></ipt-button>
|
|
996
|
-
</div>
|
|
997
|
-
|
|
998
|
-
</div>
|
|
999
|
-
`, 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"] }]
|
|
1000
|
-
}], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: BaseService }]; }, propDecorators: { isLogged: [{
|
|
1001
|
-
type: Output
|
|
918
|
+
class LoginFormComponent {
|
|
919
|
+
constructor(fb, baseService) {
|
|
920
|
+
this.baseService = baseService;
|
|
921
|
+
this.isLogged = new EventEmitter();
|
|
922
|
+
this.loginForm = fb.group({
|
|
923
|
+
email: ['', [Validators.required]],
|
|
924
|
+
password: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(15)]],
|
|
925
|
+
});
|
|
926
|
+
}
|
|
927
|
+
login(data) {
|
|
928
|
+
this.baseService.webLogin(data.controls['email'].value, data.controls['password'].value).then((isLogged) => {
|
|
929
|
+
this.isLogged.emit(isLogged);
|
|
930
|
+
});
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
LoginFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoginFormComponent, deps: [{ token: i1$1.FormBuilder }, { token: BaseService }], target: i0.ɵɵFactoryTarget.Component });
|
|
934
|
+
LoginFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LoginFormComponent, selector: "ipt-login-form", outputs: { isLogged: "isLogged" }, ngImport: i0, template: `
|
|
935
|
+
<div class="form-container">
|
|
936
|
+
|
|
937
|
+
<h2 style="text-align: center;">IPT PLATFORM</h2>
|
|
938
|
+
<hr>
|
|
939
|
+
|
|
940
|
+
<form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
|
|
941
|
+
<ipt-input
|
|
942
|
+
[inputType]="'text'"
|
|
943
|
+
[placeHolder]="'Email'"
|
|
944
|
+
[validateText]="'Debe ser @inglesparatodos.edu.co'"
|
|
945
|
+
[control]="loginForm.controls['email']"
|
|
946
|
+
></ipt-input>
|
|
947
|
+
|
|
948
|
+
<ipt-input
|
|
949
|
+
[inputType]="'password'"
|
|
950
|
+
[placeHolder]="'Password'"
|
|
951
|
+
[control]="loginForm.controls['password']"
|
|
952
|
+
></ipt-input>
|
|
953
|
+
</form>
|
|
954
|
+
|
|
955
|
+
<div class="button-container">
|
|
956
|
+
<ipt-button
|
|
957
|
+
[label]="'Login'"
|
|
958
|
+
[primary]="true"
|
|
959
|
+
[isEnabled]="loginForm.valid"
|
|
960
|
+
(onClick)="login(loginForm)"
|
|
961
|
+
></ipt-button>
|
|
962
|
+
</div>
|
|
963
|
+
|
|
964
|
+
</div>
|
|
965
|
+
`, 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", "prefix", "thousands", "decimal"] }, { 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"] }] });
|
|
966
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoginFormComponent, decorators: [{
|
|
967
|
+
type: Component,
|
|
968
|
+
args: [{ selector: 'ipt-login-form', template: `
|
|
969
|
+
<div class="form-container">
|
|
970
|
+
|
|
971
|
+
<h2 style="text-align: center;">IPT PLATFORM</h2>
|
|
972
|
+
<hr>
|
|
973
|
+
|
|
974
|
+
<form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
|
|
975
|
+
<ipt-input
|
|
976
|
+
[inputType]="'text'"
|
|
977
|
+
[placeHolder]="'Email'"
|
|
978
|
+
[validateText]="'Debe ser @inglesparatodos.edu.co'"
|
|
979
|
+
[control]="loginForm.controls['email']"
|
|
980
|
+
></ipt-input>
|
|
981
|
+
|
|
982
|
+
<ipt-input
|
|
983
|
+
[inputType]="'password'"
|
|
984
|
+
[placeHolder]="'Password'"
|
|
985
|
+
[control]="loginForm.controls['password']"
|
|
986
|
+
></ipt-input>
|
|
987
|
+
</form>
|
|
988
|
+
|
|
989
|
+
<div class="button-container">
|
|
990
|
+
<ipt-button
|
|
991
|
+
[label]="'Login'"
|
|
992
|
+
[primary]="true"
|
|
993
|
+
[isEnabled]="loginForm.valid"
|
|
994
|
+
(onClick)="login(loginForm)"
|
|
995
|
+
></ipt-button>
|
|
996
|
+
</div>
|
|
997
|
+
|
|
998
|
+
</div>
|
|
999
|
+
`, 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"] }]
|
|
1000
|
+
}], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: BaseService }]; }, propDecorators: { isLogged: [{
|
|
1001
|
+
type: Output
|
|
1002
1002
|
}] } });
|
|
1003
1003
|
|
|
1004
|
-
class SidenavComponent {
|
|
1005
|
-
constructor(userService, storageService) {
|
|
1006
|
-
this.userService = userService;
|
|
1007
|
-
this.storageService = storageService;
|
|
1008
|
-
this.pageChangeEvent = new EventEmitter();
|
|
1009
|
-
this.routes = [];
|
|
1010
|
-
this.options = { weekday: 'long', month: 'long', day: 'numeric' };
|
|
1011
|
-
this.currentDay = new Date().toLocaleDateString('en-EN', this.options);
|
|
1012
|
-
this.hour = new Date().getHours();
|
|
1013
|
-
}
|
|
1014
|
-
ngOnInit() {
|
|
1015
|
-
let user = this.storageService.getCurrentUser()?.token;
|
|
1016
|
-
let token = user === undefined ? '' : user;
|
|
1017
|
-
let request = {
|
|
1018
|
-
token: token,
|
|
1019
|
-
};
|
|
1020
|
-
this.userService.getRoutesForRole(request).subscribe((response) => {
|
|
1021
|
-
this.routes = response.data;
|
|
1022
|
-
});
|
|
1023
|
-
}
|
|
1024
|
-
clickPage(event) {
|
|
1025
|
-
this.pageChangeEvent.emit(event);
|
|
1026
|
-
}
|
|
1027
|
-
logout() {
|
|
1028
|
-
this.storageService.logout();
|
|
1029
|
-
this.pageChangeEvent.emit('logout');
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
SidenavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, deps: [{ token: UserService }, { token: StorageService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1033
|
-
SidenavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: SidenavComponent, selector: "ipt-sidenav", inputs: { department: "department", setPage: "setPage", userName: "userName" }, outputs: { pageChangeEvent: "pageChangeEvent" }, ngImport: i0, template: `
|
|
1034
|
-
<mat-sidenav #sidenav mode="push" >
|
|
1035
|
-
<mat-toolbar color="primary" (click)="sidenav.toggle()">
|
|
1036
|
-
<span style="font-size: 15px;">{{department}}</span>
|
|
1037
|
-
<span class="menu-icon-close"></span>
|
|
1038
|
-
</mat-toolbar>
|
|
1039
|
-
|
|
1040
|
-
<mat-nav-list *ngFor="let route of routes">
|
|
1041
|
-
<nav class="flex-container-menu">
|
|
1042
|
-
<ipt-aside-button
|
|
1043
|
-
[buttonActive]="this.setPage === route.page"
|
|
1044
|
-
[icon]="route.icon"
|
|
1045
|
-
[text]="route.text"
|
|
1046
|
-
(isClicked)="clickPage(route.page)"
|
|
1047
|
-
(click)="sidenav.toggle()"
|
|
1048
|
-
>
|
|
1049
|
-
</ipt-aside-button>
|
|
1050
|
-
</nav>
|
|
1051
|
-
</mat-nav-list>
|
|
1052
|
-
</mat-sidenav>
|
|
1053
|
-
|
|
1054
|
-
<mat-toolbar class="header">
|
|
1055
|
-
<div class="menu-container" (click)="sidenav.toggle()">
|
|
1056
|
-
<p>Menu</p>
|
|
1057
|
-
<div class="menu-icon"></div>
|
|
1058
|
-
</div>
|
|
1059
|
-
|
|
1060
|
-
<img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
|
|
1061
|
-
|
|
1062
|
-
<div class="text-container">
|
|
1063
|
-
<span class="p1">{{ currentDay }}</span>
|
|
1064
|
-
<span *ngIf="hour >= 0 && hour < 12" class="p2">
|
|
1065
|
-
Hey {{ userName }}, Good moorning!
|
|
1066
|
-
</span>
|
|
1067
|
-
<p *ngIf="hour >= 12 && hour < 18" class="p2">
|
|
1068
|
-
Hey {{ userName }}, Good afternoon!
|
|
1069
|
-
</p>
|
|
1070
|
-
<p *ngIf="hour >= 18 && hour < 24" class="p2">
|
|
1071
|
-
Hey {{ userName }}, Good evening!
|
|
1072
|
-
</p>
|
|
1073
|
-
</div>
|
|
1074
|
-
|
|
1075
|
-
<div class="logout-container" (click)="logout()">
|
|
1076
|
-
<p class="logout-button">Cerrar sesión</p>
|
|
1077
|
-
<div class="photo-logout"></div>
|
|
1078
|
-
</div>
|
|
1079
|
-
</mat-toolbar>
|
|
1080
|
-
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){.header{background-color:#fff;display:flex;justify-content:space-between;filter:drop-shadow(0px -1px 7px #000)}mat-sidenav{width:-moz-fit-content!important;width:fit-content!important;background-color:#1c77f7!important}.img-logo,.text-container{display:none}.mat-toolbar.mat-primary{background-color:#fff!important;color:#003d99!important;filter:drop-shadow(0px -1px 7px #000)}.logout-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:auto;border-radius:30px;display:flex;margin-left:10px}.logout-button{display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin-left:20px;text-align:center;width:150px}.photo-logout{background:url(http://qa.iptdev.com.co/assets/icons/exit.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon{background:url(http://qa.iptdev.com.co/assets/icons/icon-menu.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon-close{background:url(http://qa.iptdev.com.co/assets/icons/cruz.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat;width:35px;height:35px}.menu-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:52.5px;width:auto;border-radius:30px;display:flex}.menu-container p{width:85px;display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin:0 0 0 15px;text-align:center}}@media screen and (min-width: 768px){.img-logo{display:flex;width:120px;height:60px}.text-container{border-radius:40px;height:45px;width:100%;display:flex;gap:-100px;justify-content:center;flex-direction:column;align-items:flex-start}}.p1{color:gray;margin-left:30px;font-size:13px;height:20px}.p2{margin-left:30px;font-size:14px;font-weight:600;color:#1c77f7}.flex-container-menu{font-size:18px;color:#fff!important}.mat-nav-list{padding:0}\n"], components: [{ type: i3$1.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { type: i4.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i5.MatNavList, selector: "mat-nav-list", inputs: ["disableRipple", "disabled"], exportAs: ["matNavList"] }, { type: AsideButtonComponent, selector: "ipt-aside-button", inputs: ["icon", "text", "buttonActive"], outputs: ["isClicked"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1081
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, decorators: [{
|
|
1082
|
-
type: Component,
|
|
1083
|
-
args: [{ selector: 'ipt-sidenav', template: `
|
|
1084
|
-
<mat-sidenav #sidenav mode="push" >
|
|
1085
|
-
<mat-toolbar color="primary" (click)="sidenav.toggle()">
|
|
1086
|
-
<span style="font-size: 15px;">{{department}}</span>
|
|
1087
|
-
<span class="menu-icon-close"></span>
|
|
1088
|
-
</mat-toolbar>
|
|
1089
|
-
|
|
1090
|
-
<mat-nav-list *ngFor="let route of routes">
|
|
1091
|
-
<nav class="flex-container-menu">
|
|
1092
|
-
<ipt-aside-button
|
|
1093
|
-
[buttonActive]="this.setPage === route.page"
|
|
1094
|
-
[icon]="route.icon"
|
|
1095
|
-
[text]="route.text"
|
|
1096
|
-
(isClicked)="clickPage(route.page)"
|
|
1097
|
-
(click)="sidenav.toggle()"
|
|
1098
|
-
>
|
|
1099
|
-
</ipt-aside-button>
|
|
1100
|
-
</nav>
|
|
1101
|
-
</mat-nav-list>
|
|
1102
|
-
</mat-sidenav>
|
|
1103
|
-
|
|
1104
|
-
<mat-toolbar class="header">
|
|
1105
|
-
<div class="menu-container" (click)="sidenav.toggle()">
|
|
1106
|
-
<p>Menu</p>
|
|
1107
|
-
<div class="menu-icon"></div>
|
|
1108
|
-
</div>
|
|
1109
|
-
|
|
1110
|
-
<img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
|
|
1111
|
-
|
|
1112
|
-
<div class="text-container">
|
|
1113
|
-
<span class="p1">{{ currentDay }}</span>
|
|
1114
|
-
<span *ngIf="hour >= 0 && hour < 12" class="p2">
|
|
1115
|
-
Hey {{ userName }}, Good moorning!
|
|
1116
|
-
</span>
|
|
1117
|
-
<p *ngIf="hour >= 12 && hour < 18" class="p2">
|
|
1118
|
-
Hey {{ userName }}, Good afternoon!
|
|
1119
|
-
</p>
|
|
1120
|
-
<p *ngIf="hour >= 18 && hour < 24" class="p2">
|
|
1121
|
-
Hey {{ userName }}, Good evening!
|
|
1122
|
-
</p>
|
|
1123
|
-
</div>
|
|
1124
|
-
|
|
1125
|
-
<div class="logout-container" (click)="logout()">
|
|
1126
|
-
<p class="logout-button">Cerrar sesión</p>
|
|
1127
|
-
<div class="photo-logout"></div>
|
|
1128
|
-
</div>
|
|
1129
|
-
</mat-toolbar>
|
|
1130
|
-
`, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){.header{background-color:#fff;display:flex;justify-content:space-between;filter:drop-shadow(0px -1px 7px #000)}mat-sidenav{width:-moz-fit-content!important;width:fit-content!important;background-color:#1c77f7!important}.img-logo,.text-container{display:none}.mat-toolbar.mat-primary{background-color:#fff!important;color:#003d99!important;filter:drop-shadow(0px -1px 7px #000)}.logout-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:auto;border-radius:30px;display:flex;margin-left:10px}.logout-button{display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin-left:20px;text-align:center;width:150px}.photo-logout{background:url(http://qa.iptdev.com.co/assets/icons/exit.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon{background:url(http://qa.iptdev.com.co/assets/icons/icon-menu.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon-close{background:url(http://qa.iptdev.com.co/assets/icons/cruz.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat;width:35px;height:35px}.menu-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:52.5px;width:auto;border-radius:30px;display:flex}.menu-container p{width:85px;display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin:0 0 0 15px;text-align:center}}@media screen and (min-width: 768px){.img-logo{display:flex;width:120px;height:60px}.text-container{border-radius:40px;height:45px;width:100%;display:flex;gap:-100px;justify-content:center;flex-direction:column;align-items:flex-start}}.p1{color:gray;margin-left:30px;font-size:13px;height:20px}.p2{margin-left:30px;font-size:14px;font-weight:600;color:#1c77f7}.flex-container-menu{font-size:18px;color:#fff!important}.mat-nav-list{padding:0}\n"] }]
|
|
1131
|
-
}], ctorParameters: function () { return [{ type: UserService }, { type: StorageService }]; }, propDecorators: { department: [{
|
|
1132
|
-
type: Input
|
|
1133
|
-
}], setPage: [{
|
|
1134
|
-
type: Input
|
|
1135
|
-
}], userName: [{
|
|
1136
|
-
type: Input
|
|
1137
|
-
}], pageChangeEvent: [{
|
|
1138
|
-
type: Output
|
|
1004
|
+
class SidenavComponent {
|
|
1005
|
+
constructor(userService, storageService) {
|
|
1006
|
+
this.userService = userService;
|
|
1007
|
+
this.storageService = storageService;
|
|
1008
|
+
this.pageChangeEvent = new EventEmitter();
|
|
1009
|
+
this.routes = [];
|
|
1010
|
+
this.options = { weekday: 'long', month: 'long', day: 'numeric' };
|
|
1011
|
+
this.currentDay = new Date().toLocaleDateString('en-EN', this.options);
|
|
1012
|
+
this.hour = new Date().getHours();
|
|
1013
|
+
}
|
|
1014
|
+
ngOnInit() {
|
|
1015
|
+
let user = this.storageService.getCurrentUser()?.token;
|
|
1016
|
+
let token = user === undefined ? '' : user;
|
|
1017
|
+
let request = {
|
|
1018
|
+
token: token,
|
|
1019
|
+
};
|
|
1020
|
+
this.userService.getRoutesForRole(request).subscribe((response) => {
|
|
1021
|
+
this.routes = response.data;
|
|
1022
|
+
});
|
|
1023
|
+
}
|
|
1024
|
+
clickPage(event) {
|
|
1025
|
+
this.pageChangeEvent.emit(event);
|
|
1026
|
+
}
|
|
1027
|
+
logout() {
|
|
1028
|
+
this.storageService.logout();
|
|
1029
|
+
this.pageChangeEvent.emit('logout');
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
SidenavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, deps: [{ token: UserService }, { token: StorageService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1033
|
+
SidenavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: SidenavComponent, selector: "ipt-sidenav", inputs: { department: "department", setPage: "setPage", userName: "userName" }, outputs: { pageChangeEvent: "pageChangeEvent" }, ngImport: i0, template: `
|
|
1034
|
+
<mat-sidenav #sidenav mode="push" >
|
|
1035
|
+
<mat-toolbar color="primary" (click)="sidenav.toggle()">
|
|
1036
|
+
<span style="font-size: 15px;">{{department}}</span>
|
|
1037
|
+
<span class="menu-icon-close"></span>
|
|
1038
|
+
</mat-toolbar>
|
|
1039
|
+
|
|
1040
|
+
<mat-nav-list *ngFor="let route of routes">
|
|
1041
|
+
<nav class="flex-container-menu">
|
|
1042
|
+
<ipt-aside-button
|
|
1043
|
+
[buttonActive]="this.setPage === route.page"
|
|
1044
|
+
[icon]="route.icon"
|
|
1045
|
+
[text]="route.text"
|
|
1046
|
+
(isClicked)="clickPage(route.page)"
|
|
1047
|
+
(click)="sidenav.toggle()"
|
|
1048
|
+
>
|
|
1049
|
+
</ipt-aside-button>
|
|
1050
|
+
</nav>
|
|
1051
|
+
</mat-nav-list>
|
|
1052
|
+
</mat-sidenav>
|
|
1053
|
+
|
|
1054
|
+
<mat-toolbar class="header">
|
|
1055
|
+
<div class="menu-container" (click)="sidenav.toggle()">
|
|
1056
|
+
<p>Menu</p>
|
|
1057
|
+
<div class="menu-icon"></div>
|
|
1058
|
+
</div>
|
|
1059
|
+
|
|
1060
|
+
<img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
|
|
1061
|
+
|
|
1062
|
+
<div class="text-container">
|
|
1063
|
+
<span class="p1">{{ currentDay }}</span>
|
|
1064
|
+
<span *ngIf="hour >= 0 && hour < 12" class="p2">
|
|
1065
|
+
Hey {{ userName }}, Good moorning!
|
|
1066
|
+
</span>
|
|
1067
|
+
<p *ngIf="hour >= 12 && hour < 18" class="p2">
|
|
1068
|
+
Hey {{ userName }}, Good afternoon!
|
|
1069
|
+
</p>
|
|
1070
|
+
<p *ngIf="hour >= 18 && hour < 24" class="p2">
|
|
1071
|
+
Hey {{ userName }}, Good evening!
|
|
1072
|
+
</p>
|
|
1073
|
+
</div>
|
|
1074
|
+
|
|
1075
|
+
<div class="logout-container" (click)="logout()">
|
|
1076
|
+
<p class="logout-button">Cerrar sesión</p>
|
|
1077
|
+
<div class="photo-logout"></div>
|
|
1078
|
+
</div>
|
|
1079
|
+
</mat-toolbar>
|
|
1080
|
+
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){.header{background-color:#fff;display:flex;justify-content:space-between;filter:drop-shadow(0px -1px 7px #000)}mat-sidenav{width:-moz-fit-content!important;width:fit-content!important;background-color:#1c77f7!important}.img-logo,.text-container{display:none}.mat-toolbar.mat-primary{background-color:#fff!important;color:#003d99!important;filter:drop-shadow(0px -1px 7px #000)}.logout-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:auto;border-radius:30px;display:flex;margin-left:10px}.logout-button{display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin-left:20px;text-align:center;width:150px}.photo-logout{background:url(http://qa.iptdev.com.co/assets/icons/exit.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon{background:url(http://qa.iptdev.com.co/assets/icons/icon-menu.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon-close{background:url(http://qa.iptdev.com.co/assets/icons/cruz.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat;width:35px;height:35px}.menu-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:52.5px;width:auto;border-radius:30px;display:flex}.menu-container:hover{cursor:pointer}.menu-container p{width:85px;display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin:0 0 0 15px;text-align:center}}@media screen and (min-width: 768px){.img-logo{display:flex;width:120px;height:60px}.text-container{border-radius:40px;height:45px;width:100%;display:flex;gap:-100px;justify-content:center;flex-direction:column;align-items:flex-start}}.p1{color:gray;margin-left:30px;font-size:13px;height:20px}.p2{margin-left:30px;font-size:14px;font-weight:600;color:#1c77f7}.flex-container-menu{font-size:18px;color:#fff!important}.mat-nav-list{padding:0}\n"], components: [{ type: i3$1.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { type: i4.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i5.MatNavList, selector: "mat-nav-list", inputs: ["disableRipple", "disabled"], exportAs: ["matNavList"] }, { type: AsideButtonComponent, selector: "ipt-aside-button", inputs: ["icon", "text", "buttonActive"], outputs: ["isClicked"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1081
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, decorators: [{
|
|
1082
|
+
type: Component,
|
|
1083
|
+
args: [{ selector: 'ipt-sidenav', template: `
|
|
1084
|
+
<mat-sidenav #sidenav mode="push" >
|
|
1085
|
+
<mat-toolbar color="primary" (click)="sidenav.toggle()">
|
|
1086
|
+
<span style="font-size: 15px;">{{department}}</span>
|
|
1087
|
+
<span class="menu-icon-close"></span>
|
|
1088
|
+
</mat-toolbar>
|
|
1089
|
+
|
|
1090
|
+
<mat-nav-list *ngFor="let route of routes">
|
|
1091
|
+
<nav class="flex-container-menu">
|
|
1092
|
+
<ipt-aside-button
|
|
1093
|
+
[buttonActive]="this.setPage === route.page"
|
|
1094
|
+
[icon]="route.icon"
|
|
1095
|
+
[text]="route.text"
|
|
1096
|
+
(isClicked)="clickPage(route.page)"
|
|
1097
|
+
(click)="sidenav.toggle()"
|
|
1098
|
+
>
|
|
1099
|
+
</ipt-aside-button>
|
|
1100
|
+
</nav>
|
|
1101
|
+
</mat-nav-list>
|
|
1102
|
+
</mat-sidenav>
|
|
1103
|
+
|
|
1104
|
+
<mat-toolbar class="header">
|
|
1105
|
+
<div class="menu-container" (click)="sidenav.toggle()">
|
|
1106
|
+
<p>Menu</p>
|
|
1107
|
+
<div class="menu-icon"></div>
|
|
1108
|
+
</div>
|
|
1109
|
+
|
|
1110
|
+
<img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
|
|
1111
|
+
|
|
1112
|
+
<div class="text-container">
|
|
1113
|
+
<span class="p1">{{ currentDay }}</span>
|
|
1114
|
+
<span *ngIf="hour >= 0 && hour < 12" class="p2">
|
|
1115
|
+
Hey {{ userName }}, Good moorning!
|
|
1116
|
+
</span>
|
|
1117
|
+
<p *ngIf="hour >= 12 && hour < 18" class="p2">
|
|
1118
|
+
Hey {{ userName }}, Good afternoon!
|
|
1119
|
+
</p>
|
|
1120
|
+
<p *ngIf="hour >= 18 && hour < 24" class="p2">
|
|
1121
|
+
Hey {{ userName }}, Good evening!
|
|
1122
|
+
</p>
|
|
1123
|
+
</div>
|
|
1124
|
+
|
|
1125
|
+
<div class="logout-container" (click)="logout()">
|
|
1126
|
+
<p class="logout-button">Cerrar sesión</p>
|
|
1127
|
+
<div class="photo-logout"></div>
|
|
1128
|
+
</div>
|
|
1129
|
+
</mat-toolbar>
|
|
1130
|
+
`, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){.header{background-color:#fff;display:flex;justify-content:space-between;filter:drop-shadow(0px -1px 7px #000)}mat-sidenav{width:-moz-fit-content!important;width:fit-content!important;background-color:#1c77f7!important}.img-logo,.text-container{display:none}.mat-toolbar.mat-primary{background-color:#fff!important;color:#003d99!important;filter:drop-shadow(0px -1px 7px #000)}.logout-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:auto;border-radius:30px;display:flex;margin-left:10px}.logout-button{display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin-left:20px;text-align:center;width:150px}.photo-logout{background:url(http://qa.iptdev.com.co/assets/icons/exit.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon{background:url(http://qa.iptdev.com.co/assets/icons/icon-menu.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon-close{background:url(http://qa.iptdev.com.co/assets/icons/cruz.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat;width:35px;height:35px}.menu-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:52.5px;width:auto;border-radius:30px;display:flex}.menu-container:hover{cursor:pointer}.menu-container p{width:85px;display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin:0 0 0 15px;text-align:center}}@media screen and (min-width: 768px){.img-logo{display:flex;width:120px;height:60px}.text-container{border-radius:40px;height:45px;width:100%;display:flex;gap:-100px;justify-content:center;flex-direction:column;align-items:flex-start}}.p1{color:gray;margin-left:30px;font-size:13px;height:20px}.p2{margin-left:30px;font-size:14px;font-weight:600;color:#1c77f7}.flex-container-menu{font-size:18px;color:#fff!important}.mat-nav-list{padding:0}\n"] }]
|
|
1131
|
+
}], ctorParameters: function () { return [{ type: UserService }, { type: StorageService }]; }, propDecorators: { department: [{
|
|
1132
|
+
type: Input
|
|
1133
|
+
}], setPage: [{
|
|
1134
|
+
type: Input
|
|
1135
|
+
}], userName: [{
|
|
1136
|
+
type: Input
|
|
1137
|
+
}], pageChangeEvent: [{
|
|
1138
|
+
type: Output
|
|
1139
1139
|
}] } });
|
|
1140
1140
|
|
|
1141
|
-
class MaterialModule {
|
|
1142
|
-
}
|
|
1143
|
-
MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1144
|
-
MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule] });
|
|
1145
|
-
MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, imports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule] });
|
|
1146
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, decorators: [{
|
|
1147
|
-
type: NgModule,
|
|
1148
|
-
args: [{
|
|
1149
|
-
exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule],
|
|
1150
|
-
}]
|
|
1141
|
+
class MaterialModule {
|
|
1142
|
+
}
|
|
1143
|
+
MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1144
|
+
MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule] });
|
|
1145
|
+
MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, imports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule] });
|
|
1146
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, decorators: [{
|
|
1147
|
+
type: NgModule,
|
|
1148
|
+
args: [{
|
|
1149
|
+
exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule],
|
|
1150
|
+
}]
|
|
1151
1151
|
}] });
|
|
1152
1152
|
|
|
1153
|
-
class ComponentsModule {
|
|
1154
|
-
}
|
|
1155
|
-
ComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1156
|
-
ComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, declarations: [AsideButtonComponent,
|
|
1157
|
-
ButtonComponent,
|
|
1158
|
-
CheckboxComponent,
|
|
1159
|
-
DatalistComponent,
|
|
1160
|
-
InputComponent,
|
|
1161
|
-
LevelButtonComponent,
|
|
1162
|
-
LevelTextComponent,
|
|
1163
|
-
RadioComponent,
|
|
1164
|
-
SelectComponent,
|
|
1165
|
-
TextLinkComponent,
|
|
1166
|
-
LoginFormComponent,
|
|
1167
|
-
SidenavComponent], imports: [CommonModule,
|
|
1168
|
-
// BrowserModule, // Para evitar doble carga de BrowserModule
|
|
1169
|
-
FormsModule,
|
|
1170
|
-
ReactiveFormsModule,
|
|
1171
|
-
MaterialModule,
|
|
1172
|
-
CurrencyMaskModule], exports: [AsideButtonComponent,
|
|
1173
|
-
ButtonComponent,
|
|
1174
|
-
CheckboxComponent,
|
|
1175
|
-
DatalistComponent,
|
|
1176
|
-
InputComponent,
|
|
1177
|
-
LevelButtonComponent,
|
|
1178
|
-
LevelTextComponent,
|
|
1179
|
-
RadioComponent,
|
|
1180
|
-
SelectComponent,
|
|
1181
|
-
TextLinkComponent,
|
|
1182
|
-
LoginFormComponent,
|
|
1183
|
-
SidenavComponent,
|
|
1184
|
-
CurrencyMaskModule] });
|
|
1185
|
-
ComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, providers: [
|
|
1186
|
-
CurrencyPipe,
|
|
1187
|
-
TitleCasePipe
|
|
1188
|
-
], imports: [[
|
|
1189
|
-
CommonModule,
|
|
1190
|
-
// BrowserModule, // Para evitar doble carga de BrowserModule
|
|
1191
|
-
FormsModule,
|
|
1192
|
-
ReactiveFormsModule,
|
|
1193
|
-
MaterialModule,
|
|
1194
|
-
CurrencyMaskModule
|
|
1195
|
-
], CurrencyMaskModule] });
|
|
1196
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, decorators: [{
|
|
1197
|
-
type: NgModule,
|
|
1198
|
-
args: [{
|
|
1199
|
-
declarations: [
|
|
1200
|
-
AsideButtonComponent,
|
|
1201
|
-
ButtonComponent,
|
|
1202
|
-
CheckboxComponent,
|
|
1203
|
-
DatalistComponent,
|
|
1204
|
-
InputComponent,
|
|
1205
|
-
LevelButtonComponent,
|
|
1206
|
-
LevelTextComponent,
|
|
1207
|
-
RadioComponent,
|
|
1208
|
-
SelectComponent,
|
|
1209
|
-
TextLinkComponent,
|
|
1210
|
-
LoginFormComponent,
|
|
1211
|
-
SidenavComponent,
|
|
1212
|
-
],
|
|
1213
|
-
imports: [
|
|
1214
|
-
CommonModule,
|
|
1215
|
-
// BrowserModule, // Para evitar doble carga de BrowserModule
|
|
1216
|
-
FormsModule,
|
|
1217
|
-
ReactiveFormsModule,
|
|
1218
|
-
MaterialModule,
|
|
1219
|
-
CurrencyMaskModule
|
|
1220
|
-
],
|
|
1221
|
-
exports: [
|
|
1222
|
-
AsideButtonComponent,
|
|
1223
|
-
ButtonComponent,
|
|
1224
|
-
CheckboxComponent,
|
|
1225
|
-
DatalistComponent,
|
|
1226
|
-
InputComponent,
|
|
1227
|
-
LevelButtonComponent,
|
|
1228
|
-
LevelTextComponent,
|
|
1229
|
-
RadioComponent,
|
|
1230
|
-
SelectComponent,
|
|
1231
|
-
TextLinkComponent,
|
|
1232
|
-
LoginFormComponent,
|
|
1233
|
-
SidenavComponent,
|
|
1234
|
-
CurrencyMaskModule
|
|
1235
|
-
],
|
|
1236
|
-
providers: [
|
|
1237
|
-
CurrencyPipe,
|
|
1238
|
-
TitleCasePipe
|
|
1239
|
-
]
|
|
1240
|
-
}]
|
|
1153
|
+
class ComponentsModule {
|
|
1154
|
+
}
|
|
1155
|
+
ComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1156
|
+
ComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, declarations: [AsideButtonComponent,
|
|
1157
|
+
ButtonComponent,
|
|
1158
|
+
CheckboxComponent,
|
|
1159
|
+
DatalistComponent,
|
|
1160
|
+
InputComponent,
|
|
1161
|
+
LevelButtonComponent,
|
|
1162
|
+
LevelTextComponent,
|
|
1163
|
+
RadioComponent,
|
|
1164
|
+
SelectComponent,
|
|
1165
|
+
TextLinkComponent,
|
|
1166
|
+
LoginFormComponent,
|
|
1167
|
+
SidenavComponent], imports: [CommonModule,
|
|
1168
|
+
// BrowserModule, // Para evitar doble carga de BrowserModule
|
|
1169
|
+
FormsModule,
|
|
1170
|
+
ReactiveFormsModule,
|
|
1171
|
+
MaterialModule,
|
|
1172
|
+
CurrencyMaskModule], exports: [AsideButtonComponent,
|
|
1173
|
+
ButtonComponent,
|
|
1174
|
+
CheckboxComponent,
|
|
1175
|
+
DatalistComponent,
|
|
1176
|
+
InputComponent,
|
|
1177
|
+
LevelButtonComponent,
|
|
1178
|
+
LevelTextComponent,
|
|
1179
|
+
RadioComponent,
|
|
1180
|
+
SelectComponent,
|
|
1181
|
+
TextLinkComponent,
|
|
1182
|
+
LoginFormComponent,
|
|
1183
|
+
SidenavComponent,
|
|
1184
|
+
CurrencyMaskModule] });
|
|
1185
|
+
ComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, providers: [
|
|
1186
|
+
CurrencyPipe,
|
|
1187
|
+
TitleCasePipe
|
|
1188
|
+
], imports: [[
|
|
1189
|
+
CommonModule,
|
|
1190
|
+
// BrowserModule, // Para evitar doble carga de BrowserModule
|
|
1191
|
+
FormsModule,
|
|
1192
|
+
ReactiveFormsModule,
|
|
1193
|
+
MaterialModule,
|
|
1194
|
+
CurrencyMaskModule
|
|
1195
|
+
], CurrencyMaskModule] });
|
|
1196
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, decorators: [{
|
|
1197
|
+
type: NgModule,
|
|
1198
|
+
args: [{
|
|
1199
|
+
declarations: [
|
|
1200
|
+
AsideButtonComponent,
|
|
1201
|
+
ButtonComponent,
|
|
1202
|
+
CheckboxComponent,
|
|
1203
|
+
DatalistComponent,
|
|
1204
|
+
InputComponent,
|
|
1205
|
+
LevelButtonComponent,
|
|
1206
|
+
LevelTextComponent,
|
|
1207
|
+
RadioComponent,
|
|
1208
|
+
SelectComponent,
|
|
1209
|
+
TextLinkComponent,
|
|
1210
|
+
LoginFormComponent,
|
|
1211
|
+
SidenavComponent,
|
|
1212
|
+
],
|
|
1213
|
+
imports: [
|
|
1214
|
+
CommonModule,
|
|
1215
|
+
// BrowserModule, // Para evitar doble carga de BrowserModule
|
|
1216
|
+
FormsModule,
|
|
1217
|
+
ReactiveFormsModule,
|
|
1218
|
+
MaterialModule,
|
|
1219
|
+
CurrencyMaskModule
|
|
1220
|
+
],
|
|
1221
|
+
exports: [
|
|
1222
|
+
AsideButtonComponent,
|
|
1223
|
+
ButtonComponent,
|
|
1224
|
+
CheckboxComponent,
|
|
1225
|
+
DatalistComponent,
|
|
1226
|
+
InputComponent,
|
|
1227
|
+
LevelButtonComponent,
|
|
1228
|
+
LevelTextComponent,
|
|
1229
|
+
RadioComponent,
|
|
1230
|
+
SelectComponent,
|
|
1231
|
+
TextLinkComponent,
|
|
1232
|
+
LoginFormComponent,
|
|
1233
|
+
SidenavComponent,
|
|
1234
|
+
CurrencyMaskModule
|
|
1235
|
+
],
|
|
1236
|
+
providers: [
|
|
1237
|
+
CurrencyPipe,
|
|
1238
|
+
TitleCasePipe
|
|
1239
|
+
]
|
|
1240
|
+
}]
|
|
1241
1241
|
}] });
|
|
1242
1242
|
|
|
1243
|
-
class CourseService {
|
|
1244
|
-
constructor(http) {
|
|
1245
|
-
this.http = http;
|
|
1246
|
-
this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
|
|
1247
|
-
}
|
|
1248
|
-
createCourse(course) {
|
|
1249
|
-
let serviceUrl = this.SERVICE_URL + 'post/course';
|
|
1250
|
-
this.generateRequestParams(course);
|
|
1251
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
1252
|
-
}
|
|
1253
|
-
editCourse(course) {
|
|
1254
|
-
let serviceUrl = this.SERVICE_URL + 'put/course';
|
|
1255
|
-
this.generateRequestParams(course);
|
|
1256
|
-
return this.http.put(serviceUrl, this.httpOptions);
|
|
1257
|
-
}
|
|
1258
|
-
getAllCourses(params) {
|
|
1259
|
-
let serviceUrl = this.SERVICE_URL + 'post/all/courses';
|
|
1260
|
-
this.generateRequestParams(params);
|
|
1261
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
1262
|
-
}
|
|
1263
|
-
getCoursesByLevel(params) {
|
|
1264
|
-
let serviceUrl = this.SERVICE_URL + 'post/course/by/level';
|
|
1265
|
-
this.generateRequestParams(params);
|
|
1266
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
1267
|
-
}
|
|
1268
|
-
getAvailibleCourses(availibleCourses) {
|
|
1269
|
-
let serviceUrl = this.SERVICE_URL + 'post/course/for/cod';
|
|
1270
|
-
this.generateRequestParams(availibleCourses);
|
|
1271
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
1272
|
-
}
|
|
1273
|
-
getCourseByCode(params) {
|
|
1274
|
-
let serviceUrl = this.SERVICE_URL + 'post/course/by/code';
|
|
1275
|
-
this.generateRequestParams(params);
|
|
1276
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
this.
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1243
|
+
class CourseService {
|
|
1244
|
+
constructor(http) {
|
|
1245
|
+
this.http = http;
|
|
1246
|
+
this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
|
|
1247
|
+
}
|
|
1248
|
+
createCourse(course) {
|
|
1249
|
+
let serviceUrl = this.SERVICE_URL + 'post/course';
|
|
1250
|
+
this.generateRequestParams(course);
|
|
1251
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1252
|
+
}
|
|
1253
|
+
editCourse(course) {
|
|
1254
|
+
let serviceUrl = this.SERVICE_URL + 'put/course';
|
|
1255
|
+
this.generateRequestParams(course);
|
|
1256
|
+
return this.http.put(serviceUrl, this.httpOptions);
|
|
1257
|
+
}
|
|
1258
|
+
getAllCourses(params) {
|
|
1259
|
+
let serviceUrl = this.SERVICE_URL + 'post/all/courses';
|
|
1260
|
+
this.generateRequestParams(params);
|
|
1261
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1262
|
+
}
|
|
1263
|
+
getCoursesByLevel(params) {
|
|
1264
|
+
let serviceUrl = this.SERVICE_URL + 'post/course/by/level';
|
|
1265
|
+
this.generateRequestParams(params);
|
|
1266
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1267
|
+
}
|
|
1268
|
+
getAvailibleCourses(availibleCourses) {
|
|
1269
|
+
let serviceUrl = this.SERVICE_URL + 'post/course/for/cod';
|
|
1270
|
+
this.generateRequestParams(availibleCourses);
|
|
1271
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1272
|
+
}
|
|
1273
|
+
getCourseByCode(params) {
|
|
1274
|
+
let serviceUrl = this.SERVICE_URL + 'post/course/by/code';
|
|
1275
|
+
this.generateRequestParams(params);
|
|
1276
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1277
|
+
}
|
|
1278
|
+
getCoursesByTeacher(params) {
|
|
1279
|
+
let serviceUrl = this.SERVICE_URL + 'post/course/by/teacher';
|
|
1280
|
+
this.generateRequestParams(params);
|
|
1281
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1282
|
+
}
|
|
1283
|
+
getFilteredCoursesByTeacher(params) {
|
|
1284
|
+
let serviceUrl = this.SERVICE_URL + 'post/course/filtered/by/teacher';
|
|
1285
|
+
this.generateRequestParams(params);
|
|
1286
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1287
|
+
}
|
|
1288
|
+
getCoursesByStartDate(params) {
|
|
1289
|
+
let serviceUrl = this.SERVICE_URL + 'post/course/by/startdate';
|
|
1290
|
+
this.generateRequestParams(params);
|
|
1291
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1292
|
+
}
|
|
1293
|
+
numberClassByCode(idCode) {
|
|
1294
|
+
let serviceUrl = this.SERVICE_URL + 'get/coursetype/numclass/by/code/' + idCode;
|
|
1295
|
+
return this.http.get(serviceUrl);
|
|
1296
|
+
}
|
|
1297
|
+
// construye los headers y params
|
|
1298
|
+
generateRequestParams(param) {
|
|
1299
|
+
this.httpOptions = {
|
|
1300
|
+
header: new HttpHeaders(),
|
|
1301
|
+
params: param,
|
|
1302
|
+
};
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
CourseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1306
|
+
CourseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, providedIn: 'root' });
|
|
1307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, decorators: [{
|
|
1308
|
+
type: Injectable,
|
|
1309
|
+
args: [{
|
|
1310
|
+
providedIn: 'root',
|
|
1311
|
+
}]
|
|
1293
1312
|
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
|
|
1294
1313
|
|
|
1295
|
-
class ParameterService {
|
|
1296
|
-
constructor(http) {
|
|
1297
|
-
this.http = http;
|
|
1298
|
-
this.SERVICE_URL = 'https://iptdev.com.co/lab/parameters/api/';
|
|
1299
|
-
}
|
|
1300
|
-
getIndicatives() {
|
|
1301
|
-
let serviceUrl = this.SERVICE_URL + 'get/indicatives';
|
|
1302
|
-
return this.http.get(serviceUrl);
|
|
1303
|
-
}
|
|
1304
|
-
getCardTypes(country) {
|
|
1305
|
-
let serviceUrl = this.SERVICE_URL + 'get/id/card/type/country/' + country;
|
|
1306
|
-
return this.http.get(serviceUrl);
|
|
1307
|
-
}
|
|
1308
|
-
getCountries() {
|
|
1309
|
-
let serviceUrl = this.SERVICE_URL + 'get/countries';
|
|
1310
|
-
return this.http.get(serviceUrl);
|
|
1311
|
-
}
|
|
1312
|
-
getStatesByCountry(country) {
|
|
1313
|
-
let serviceUrl = this.SERVICE_URL + 'get/state/country/iso/' + country;
|
|
1314
|
-
return this.http.get(serviceUrl);
|
|
1315
|
-
}
|
|
1316
|
-
getCitiesByState(state) {
|
|
1317
|
-
let serviceUrl = this.SERVICE_URL + 'get/cities/state/' + state;
|
|
1318
|
-
return this.http.get(serviceUrl);
|
|
1319
|
-
}
|
|
1320
|
-
getAllPlans() {
|
|
1321
|
-
let serviceUrl = this.SERVICE_URL + 'get/all/plans';
|
|
1322
|
-
return this.http.get(serviceUrl);
|
|
1323
|
-
}
|
|
1324
|
-
getLevels() {
|
|
1325
|
-
let serviceUrl = this.SERVICE_URL + 'get/english/levels';
|
|
1326
|
-
return this.http.get(serviceUrl);
|
|
1327
|
-
}
|
|
1328
|
-
getAgreements() {
|
|
1329
|
-
let serviceUrl = this.SERVICE_URL + 'get/all/agreement';
|
|
1330
|
-
return this.http.get(serviceUrl);
|
|
1331
|
-
}
|
|
1332
|
-
getAgreementByCategory(typeCategory) {
|
|
1333
|
-
let serviceUrl = this.SERVICE_URL + 'get/agreement/by/category/' + typeCategory;
|
|
1334
|
-
return this.http.get(serviceUrl);
|
|
1335
|
-
}
|
|
1336
|
-
getAllClassrooms() {
|
|
1337
|
-
let serviceUrl = this.SERVICE_URL + 'get/all/classroom';
|
|
1338
|
-
return this.http.get(serviceUrl);
|
|
1339
|
-
}
|
|
1340
|
-
getCoursesTypes() {
|
|
1341
|
-
let serviceUrl = this.SERVICE_URL + 'get/all/course/type';
|
|
1342
|
-
return this.http.get(serviceUrl);
|
|
1343
|
-
}
|
|
1344
|
-
getCoursesTypesByPlan(typePlan) {
|
|
1345
|
-
let serviceUrl = this.SERVICE_URL + 'get/course/by/plan/' + typePlan;
|
|
1346
|
-
return this.http.get(serviceUrl);
|
|
1347
|
-
}
|
|
1348
|
-
getDegrees() {
|
|
1349
|
-
let serviceUrl = this.SERVICE_URL + 'get/all/degrees';
|
|
1350
|
-
return this.http.get(serviceUrl);
|
|
1351
|
-
}
|
|
1352
|
-
getProgramsByDegree(typeDegree) {
|
|
1353
|
-
let serviceUrl = this.SERVICE_URL + 'get/programs/by/degree/' + typeDegree;
|
|
1354
|
-
return this.http.get(serviceUrl);
|
|
1355
|
-
}
|
|
1356
|
-
getMarketingReasons() {
|
|
1357
|
-
let serviceUrl = this.SERVICE_URL + 'get/all/mkt/reasons';
|
|
1358
|
-
return this.http.get(serviceUrl);
|
|
1359
|
-
}
|
|
1360
|
-
getStudyReasons() {
|
|
1361
|
-
let serviceUrl = this.SERVICE_URL + 'get/all/study/reasons';
|
|
1362
|
-
return this.http.get(serviceUrl);
|
|
1363
|
-
}
|
|
1364
|
-
getAcademicUnits() {
|
|
1365
|
-
let serviceUrl = this.SERVICE_URL + 'get/academic/units';
|
|
1366
|
-
return this.http.get(serviceUrl);
|
|
1367
|
-
}
|
|
1368
|
-
getStatusContact() {
|
|
1369
|
-
let serviceUrl = this.SERVICE_URL + 'get/contact/status/all';
|
|
1370
|
-
return this.http.get(serviceUrl);
|
|
1371
|
-
}
|
|
1372
|
-
getTypePlan() {
|
|
1373
|
-
let serviceUrl = this.SERVICE_URL + 'get/all/plans';
|
|
1374
|
-
return this.http.get(serviceUrl);
|
|
1375
|
-
}
|
|
1376
|
-
getTypePlanDiscount() {
|
|
1377
|
-
let serviceUrl = this.SERVICE_URL + 'get/discount/all/plans';
|
|
1378
|
-
return this.http.get(serviceUrl);
|
|
1379
|
-
}
|
|
1380
|
-
getContactedType() {
|
|
1381
|
-
let serviceUrl = this.SERVICE_URL + 'get/contact/contacted/all';
|
|
1382
|
-
return this.http.get(serviceUrl);
|
|
1383
|
-
}
|
|
1384
|
-
getStatusByCode(codeStatus) {
|
|
1385
|
-
let serviceUrl = this.SERVICE_URL + 'get/contact/status/bycode/' + codeStatus;
|
|
1386
|
-
return this.http.get(serviceUrl);
|
|
1387
|
-
}
|
|
1388
|
-
getAllTypeDiscount() {
|
|
1389
|
-
let serviceUrl = this.SERVICE_URL + 'get/commercial/typediscounts/all';
|
|
1390
|
-
return this.http.get(serviceUrl);
|
|
1391
|
-
}
|
|
1392
|
-
}
|
|
1393
|
-
ParameterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1394
|
-
ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, providedIn: 'root' });
|
|
1395
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, decorators: [{
|
|
1396
|
-
type: Injectable,
|
|
1397
|
-
args: [{
|
|
1398
|
-
providedIn: 'root',
|
|
1399
|
-
}]
|
|
1314
|
+
class ParameterService {
|
|
1315
|
+
constructor(http) {
|
|
1316
|
+
this.http = http;
|
|
1317
|
+
this.SERVICE_URL = 'https://iptdev.com.co/lab/parameters/api/';
|
|
1318
|
+
}
|
|
1319
|
+
getIndicatives() {
|
|
1320
|
+
let serviceUrl = this.SERVICE_URL + 'get/indicatives';
|
|
1321
|
+
return this.http.get(serviceUrl);
|
|
1322
|
+
}
|
|
1323
|
+
getCardTypes(country) {
|
|
1324
|
+
let serviceUrl = this.SERVICE_URL + 'get/id/card/type/country/' + country;
|
|
1325
|
+
return this.http.get(serviceUrl);
|
|
1326
|
+
}
|
|
1327
|
+
getCountries() {
|
|
1328
|
+
let serviceUrl = this.SERVICE_URL + 'get/countries';
|
|
1329
|
+
return this.http.get(serviceUrl);
|
|
1330
|
+
}
|
|
1331
|
+
getStatesByCountry(country) {
|
|
1332
|
+
let serviceUrl = this.SERVICE_URL + 'get/state/country/iso/' + country;
|
|
1333
|
+
return this.http.get(serviceUrl);
|
|
1334
|
+
}
|
|
1335
|
+
getCitiesByState(state) {
|
|
1336
|
+
let serviceUrl = this.SERVICE_URL + 'get/cities/state/' + state;
|
|
1337
|
+
return this.http.get(serviceUrl);
|
|
1338
|
+
}
|
|
1339
|
+
getAllPlans() {
|
|
1340
|
+
let serviceUrl = this.SERVICE_URL + 'get/all/plans';
|
|
1341
|
+
return this.http.get(serviceUrl);
|
|
1342
|
+
}
|
|
1343
|
+
getLevels() {
|
|
1344
|
+
let serviceUrl = this.SERVICE_URL + 'get/english/levels';
|
|
1345
|
+
return this.http.get(serviceUrl);
|
|
1346
|
+
}
|
|
1347
|
+
getAgreements() {
|
|
1348
|
+
let serviceUrl = this.SERVICE_URL + 'get/all/agreement';
|
|
1349
|
+
return this.http.get(serviceUrl);
|
|
1350
|
+
}
|
|
1351
|
+
getAgreementByCategory(typeCategory) {
|
|
1352
|
+
let serviceUrl = this.SERVICE_URL + 'get/agreement/by/category/' + typeCategory;
|
|
1353
|
+
return this.http.get(serviceUrl);
|
|
1354
|
+
}
|
|
1355
|
+
getAllClassrooms() {
|
|
1356
|
+
let serviceUrl = this.SERVICE_URL + 'get/all/classroom';
|
|
1357
|
+
return this.http.get(serviceUrl);
|
|
1358
|
+
}
|
|
1359
|
+
getCoursesTypes() {
|
|
1360
|
+
let serviceUrl = this.SERVICE_URL + 'get/all/course/type';
|
|
1361
|
+
return this.http.get(serviceUrl);
|
|
1362
|
+
}
|
|
1363
|
+
getCoursesTypesByPlan(typePlan) {
|
|
1364
|
+
let serviceUrl = this.SERVICE_URL + 'get/course/by/plan/' + typePlan;
|
|
1365
|
+
return this.http.get(serviceUrl);
|
|
1366
|
+
}
|
|
1367
|
+
getDegrees() {
|
|
1368
|
+
let serviceUrl = this.SERVICE_URL + 'get/all/degrees';
|
|
1369
|
+
return this.http.get(serviceUrl);
|
|
1370
|
+
}
|
|
1371
|
+
getProgramsByDegree(typeDegree) {
|
|
1372
|
+
let serviceUrl = this.SERVICE_URL + 'get/programs/by/degree/' + typeDegree;
|
|
1373
|
+
return this.http.get(serviceUrl);
|
|
1374
|
+
}
|
|
1375
|
+
getMarketingReasons() {
|
|
1376
|
+
let serviceUrl = this.SERVICE_URL + 'get/all/mkt/reasons';
|
|
1377
|
+
return this.http.get(serviceUrl);
|
|
1378
|
+
}
|
|
1379
|
+
getStudyReasons() {
|
|
1380
|
+
let serviceUrl = this.SERVICE_URL + 'get/all/study/reasons';
|
|
1381
|
+
return this.http.get(serviceUrl);
|
|
1382
|
+
}
|
|
1383
|
+
getAcademicUnits() {
|
|
1384
|
+
let serviceUrl = this.SERVICE_URL + 'get/academic/units';
|
|
1385
|
+
return this.http.get(serviceUrl);
|
|
1386
|
+
}
|
|
1387
|
+
getStatusContact() {
|
|
1388
|
+
let serviceUrl = this.SERVICE_URL + 'get/contact/status/all';
|
|
1389
|
+
return this.http.get(serviceUrl);
|
|
1390
|
+
}
|
|
1391
|
+
getTypePlan() {
|
|
1392
|
+
let serviceUrl = this.SERVICE_URL + 'get/all/plans';
|
|
1393
|
+
return this.http.get(serviceUrl);
|
|
1394
|
+
}
|
|
1395
|
+
getTypePlanDiscount() {
|
|
1396
|
+
let serviceUrl = this.SERVICE_URL + 'get/discount/all/plans';
|
|
1397
|
+
return this.http.get(serviceUrl);
|
|
1398
|
+
}
|
|
1399
|
+
getContactedType() {
|
|
1400
|
+
let serviceUrl = this.SERVICE_URL + 'get/contact/contacted/all';
|
|
1401
|
+
return this.http.get(serviceUrl);
|
|
1402
|
+
}
|
|
1403
|
+
getStatusByCode(codeStatus) {
|
|
1404
|
+
let serviceUrl = this.SERVICE_URL + 'get/contact/status/bycode/' + codeStatus;
|
|
1405
|
+
return this.http.get(serviceUrl);
|
|
1406
|
+
}
|
|
1407
|
+
getAllTypeDiscount() {
|
|
1408
|
+
let serviceUrl = this.SERVICE_URL + 'get/commercial/typediscounts/all';
|
|
1409
|
+
return this.http.get(serviceUrl);
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
ParameterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1413
|
+
ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, providedIn: 'root' });
|
|
1414
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, decorators: [{
|
|
1415
|
+
type: Injectable,
|
|
1416
|
+
args: [{
|
|
1417
|
+
providedIn: 'root',
|
|
1418
|
+
}]
|
|
1400
1419
|
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
|
|
1401
1420
|
|
|
1402
|
-
class RedirectGuard {
|
|
1403
|
-
constructor(router) {
|
|
1404
|
-
this.router = router;
|
|
1405
|
-
}
|
|
1406
|
-
canActivate(route, state) {
|
|
1407
|
-
window.location.href = route.data['externalUrl'];
|
|
1408
|
-
return true;
|
|
1409
|
-
}
|
|
1410
|
-
}
|
|
1411
|
-
RedirectGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard, deps: [{ token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1412
|
-
RedirectGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard });
|
|
1413
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard, decorators: [{
|
|
1414
|
-
type: Injectable
|
|
1421
|
+
class RedirectGuard {
|
|
1422
|
+
constructor(router) {
|
|
1423
|
+
this.router = router;
|
|
1424
|
+
}
|
|
1425
|
+
canActivate(route, state) {
|
|
1426
|
+
window.location.href = route.data['externalUrl'];
|
|
1427
|
+
return true;
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
RedirectGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard, deps: [{ token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1431
|
+
RedirectGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard });
|
|
1432
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard, decorators: [{
|
|
1433
|
+
type: Injectable
|
|
1415
1434
|
}], ctorParameters: function () { return [{ type: i1$3.Router }]; } });
|
|
1416
1435
|
|
|
1417
|
-
class SwitchService {
|
|
1418
|
-
constructor() {
|
|
1419
|
-
this.$modal = new EventEmitter();
|
|
1420
|
-
}
|
|
1421
|
-
}
|
|
1422
|
-
SwitchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1423
|
-
SwitchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, providedIn: 'root' });
|
|
1424
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, decorators: [{
|
|
1425
|
-
type: Injectable,
|
|
1426
|
-
args: [{
|
|
1427
|
-
providedIn: 'root'
|
|
1428
|
-
}]
|
|
1436
|
+
class SwitchService {
|
|
1437
|
+
constructor() {
|
|
1438
|
+
this.$modal = new EventEmitter();
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
SwitchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1442
|
+
SwitchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, providedIn: 'root' });
|
|
1443
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, decorators: [{
|
|
1444
|
+
type: Injectable,
|
|
1445
|
+
args: [{
|
|
1446
|
+
providedIn: 'root'
|
|
1447
|
+
}]
|
|
1429
1448
|
}], ctorParameters: function () { return []; } });
|
|
1430
1449
|
|
|
1431
|
-
class TestService {
|
|
1432
|
-
constructor(http) {
|
|
1433
|
-
this.http = http;
|
|
1434
|
-
this.SERVICE_URL = 'https://iptdev.com.co/lab/test/api/';
|
|
1435
|
-
}
|
|
1436
|
-
// ---------------------- EXÁMENES ---------------------- //
|
|
1437
|
-
createExam(exam) {
|
|
1438
|
-
let serviceUrl = this.SERVICE_URL + 'post/exam';
|
|
1439
|
-
this.generateRequestParams(exam);
|
|
1440
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
1441
|
-
}
|
|
1442
|
-
getAllExams(params) {
|
|
1443
|
-
let serviceUrl = this.SERVICE_URL + 'post/all/exam';
|
|
1444
|
-
this.generateRequestParams(params);
|
|
1445
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
1446
|
-
}
|
|
1447
|
-
updateExam(params) {
|
|
1448
|
-
let serviceUrl = this.SERVICE_URL + 'update/exam';
|
|
1449
|
-
this.generateRequestParams(params);
|
|
1450
|
-
return this.http.put(serviceUrl, this.httpOptions);
|
|
1451
|
-
}
|
|
1452
|
-
updateExamStatus(params) {
|
|
1453
|
-
let serviceUrl = this.SERVICE_URL + 'update/exam/status';
|
|
1454
|
-
this.generateRequestParams(params);
|
|
1455
|
-
return this.http.put(serviceUrl, this.httpOptions);
|
|
1456
|
-
}
|
|
1457
|
-
copyExam(params) {
|
|
1458
|
-
let serviceUrl = this.SERVICE_URL + 'copy/exam';
|
|
1459
|
-
this.generateRequestParams(params);
|
|
1460
|
-
return this.http.put(serviceUrl, this.httpOptions);
|
|
1461
|
-
}
|
|
1462
|
-
getExamByCode(code) {
|
|
1463
|
-
let serviceUrl = this.SERVICE_URL + 'get/exam/by/code/' + code;
|
|
1464
|
-
return this.http.get(serviceUrl);
|
|
1465
|
-
}
|
|
1466
|
-
getExamByAuthor(code) {
|
|
1467
|
-
let serviceUrl = this.SERVICE_URL + 'get/exams/by/author/' + code;
|
|
1468
|
-
return this.http.get(serviceUrl);
|
|
1469
|
-
}
|
|
1470
|
-
// ---------------------- SECCIONES ---------------------- //
|
|
1471
|
-
createSectionWithAll(params) {
|
|
1472
|
-
let serviceUrl = this.SERVICE_URL + 'post/section/with/all';
|
|
1473
|
-
this.generateRequestParams(params);
|
|
1474
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
1475
|
-
}
|
|
1476
|
-
createSection(params) {
|
|
1477
|
-
let serviceUrl = this.SERVICE_URL + 'post/section';
|
|
1478
|
-
this.generateRequestParams(params);
|
|
1479
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
1480
|
-
}
|
|
1481
|
-
getAllSections(params) {
|
|
1482
|
-
let serviceUrl = this.SERVICE_URL + 'post/all/sections';
|
|
1483
|
-
this.generateRequestParams(params);
|
|
1484
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
1485
|
-
}
|
|
1486
|
-
updateSection(params) {
|
|
1487
|
-
let serviceUrl = this.SERVICE_URL + 'update/section';
|
|
1488
|
-
this.generateRequestParams(params);
|
|
1489
|
-
return this.http.put(serviceUrl, this.httpOptions);
|
|
1490
|
-
}
|
|
1491
|
-
updateSectionMedia(params) {
|
|
1492
|
-
let serviceUrl = this.SERVICE_URL + 'post/section/media';
|
|
1493
|
-
this.generateRequestParams(params);
|
|
1494
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
1495
|
-
}
|
|
1496
|
-
updateSectionState(params) {
|
|
1497
|
-
let serviceUrl = this.SERVICE_URL + 'update/section/state';
|
|
1498
|
-
this.generateRequestParams(params);
|
|
1499
|
-
return this.http.put(serviceUrl, this.httpOptions);
|
|
1500
|
-
}
|
|
1501
|
-
getSectionsByExam(code) {
|
|
1502
|
-
let serviceUrl = this.SERVICE_URL + 'get/sections/by/exam/' + code;
|
|
1503
|
-
return this.http.get(serviceUrl);
|
|
1504
|
-
}
|
|
1505
|
-
// ---------------------- PREGUNTAS ---------------------- //
|
|
1506
|
-
createQuestion(params) {
|
|
1507
|
-
let serviceUrl = this.SERVICE_URL + 'post/question';
|
|
1508
|
-
this.generateRequestParams(params);
|
|
1509
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
1510
|
-
}
|
|
1511
|
-
updateQuestion(params) {
|
|
1512
|
-
let serviceUrl = this.SERVICE_URL + 'update/question';
|
|
1513
|
-
this.generateRequestParams(params);
|
|
1514
|
-
return this.http.put(serviceUrl, this.httpOptions);
|
|
1515
|
-
}
|
|
1516
|
-
getQuestionsBySections(params) {
|
|
1517
|
-
let serviceUrl = this.SERVICE_URL + 'get/questions/by/sections';
|
|
1518
|
-
this.generateRequestParams(params);
|
|
1519
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
1520
|
-
}
|
|
1521
|
-
getQuestionsBySection(params) {
|
|
1522
|
-
let serviceUrl = this.SERVICE_URL + 'get/questions/by/section';
|
|
1523
|
-
this.generateRequestParams(params);
|
|
1524
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
1525
|
-
}
|
|
1526
|
-
// ---------------------- RESPUESTAS ---------------------- //
|
|
1527
|
-
createAnswer(params) {
|
|
1528
|
-
let serviceUrl = this.SERVICE_URL + 'post/answer';
|
|
1529
|
-
this.generateRequestParams(params);
|
|
1530
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
1531
|
-
}
|
|
1532
|
-
updateAnswer(params) {
|
|
1533
|
-
let serviceUrl = this.SERVICE_URL + 'update/answer';
|
|
1534
|
-
this.generateRequestParams(params);
|
|
1535
|
-
return this.http.put(serviceUrl, this.httpOptions);
|
|
1536
|
-
}
|
|
1537
|
-
getAnswersByQuestion(code) {
|
|
1538
|
-
let serviceUrl = this.SERVICE_URL + 'get/answers/by/question/' + code;
|
|
1539
|
-
return this.http.get(serviceUrl, this.httpOptions);
|
|
1540
|
-
}
|
|
1541
|
-
updateQuestionState(params) {
|
|
1542
|
-
let serviceUrl = this.SERVICE_URL + 'update/question/state';
|
|
1543
|
-
this.generateRequestParams(params);
|
|
1544
|
-
return this.http.put(serviceUrl, this.httpOptions);
|
|
1545
|
-
}
|
|
1546
|
-
// construye los headers y params
|
|
1547
|
-
generateRequestParams(param) {
|
|
1548
|
-
this.httpOptions = {
|
|
1549
|
-
header: new HttpHeaders(),
|
|
1550
|
-
params: param,
|
|
1551
|
-
};
|
|
1552
|
-
}
|
|
1553
|
-
}
|
|
1554
|
-
TestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1555
|
-
TestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, providedIn: 'root' });
|
|
1556
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, decorators: [{
|
|
1557
|
-
type: Injectable,
|
|
1558
|
-
args: [{
|
|
1559
|
-
providedIn: 'root',
|
|
1560
|
-
}]
|
|
1450
|
+
class TestService {
|
|
1451
|
+
constructor(http) {
|
|
1452
|
+
this.http = http;
|
|
1453
|
+
this.SERVICE_URL = 'https://iptdev.com.co/lab/test/api/';
|
|
1454
|
+
}
|
|
1455
|
+
// ---------------------- EXÁMENES ---------------------- //
|
|
1456
|
+
createExam(exam) {
|
|
1457
|
+
let serviceUrl = this.SERVICE_URL + 'post/exam';
|
|
1458
|
+
this.generateRequestParams(exam);
|
|
1459
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1460
|
+
}
|
|
1461
|
+
getAllExams(params) {
|
|
1462
|
+
let serviceUrl = this.SERVICE_URL + 'post/all/exam';
|
|
1463
|
+
this.generateRequestParams(params);
|
|
1464
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1465
|
+
}
|
|
1466
|
+
updateExam(params) {
|
|
1467
|
+
let serviceUrl = this.SERVICE_URL + 'update/exam';
|
|
1468
|
+
this.generateRequestParams(params);
|
|
1469
|
+
return this.http.put(serviceUrl, this.httpOptions);
|
|
1470
|
+
}
|
|
1471
|
+
updateExamStatus(params) {
|
|
1472
|
+
let serviceUrl = this.SERVICE_URL + 'update/exam/status';
|
|
1473
|
+
this.generateRequestParams(params);
|
|
1474
|
+
return this.http.put(serviceUrl, this.httpOptions);
|
|
1475
|
+
}
|
|
1476
|
+
copyExam(params) {
|
|
1477
|
+
let serviceUrl = this.SERVICE_URL + 'copy/exam';
|
|
1478
|
+
this.generateRequestParams(params);
|
|
1479
|
+
return this.http.put(serviceUrl, this.httpOptions);
|
|
1480
|
+
}
|
|
1481
|
+
getExamByCode(code) {
|
|
1482
|
+
let serviceUrl = this.SERVICE_URL + 'get/exam/by/code/' + code;
|
|
1483
|
+
return this.http.get(serviceUrl);
|
|
1484
|
+
}
|
|
1485
|
+
getExamByAuthor(code) {
|
|
1486
|
+
let serviceUrl = this.SERVICE_URL + 'get/exams/by/author/' + code;
|
|
1487
|
+
return this.http.get(serviceUrl);
|
|
1488
|
+
}
|
|
1489
|
+
// ---------------------- SECCIONES ---------------------- //
|
|
1490
|
+
createSectionWithAll(params) {
|
|
1491
|
+
let serviceUrl = this.SERVICE_URL + 'post/section/with/all';
|
|
1492
|
+
this.generateRequestParams(params);
|
|
1493
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1494
|
+
}
|
|
1495
|
+
createSection(params) {
|
|
1496
|
+
let serviceUrl = this.SERVICE_URL + 'post/section';
|
|
1497
|
+
this.generateRequestParams(params);
|
|
1498
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1499
|
+
}
|
|
1500
|
+
getAllSections(params) {
|
|
1501
|
+
let serviceUrl = this.SERVICE_URL + 'post/all/sections';
|
|
1502
|
+
this.generateRequestParams(params);
|
|
1503
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1504
|
+
}
|
|
1505
|
+
updateSection(params) {
|
|
1506
|
+
let serviceUrl = this.SERVICE_URL + 'update/section';
|
|
1507
|
+
this.generateRequestParams(params);
|
|
1508
|
+
return this.http.put(serviceUrl, this.httpOptions);
|
|
1509
|
+
}
|
|
1510
|
+
updateSectionMedia(params) {
|
|
1511
|
+
let serviceUrl = this.SERVICE_URL + 'post/section/media';
|
|
1512
|
+
this.generateRequestParams(params);
|
|
1513
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1514
|
+
}
|
|
1515
|
+
updateSectionState(params) {
|
|
1516
|
+
let serviceUrl = this.SERVICE_URL + 'update/section/state';
|
|
1517
|
+
this.generateRequestParams(params);
|
|
1518
|
+
return this.http.put(serviceUrl, this.httpOptions);
|
|
1519
|
+
}
|
|
1520
|
+
getSectionsByExam(code) {
|
|
1521
|
+
let serviceUrl = this.SERVICE_URL + 'get/sections/by/exam/' + code;
|
|
1522
|
+
return this.http.get(serviceUrl);
|
|
1523
|
+
}
|
|
1524
|
+
// ---------------------- PREGUNTAS ---------------------- //
|
|
1525
|
+
createQuestion(params) {
|
|
1526
|
+
let serviceUrl = this.SERVICE_URL + 'post/question';
|
|
1527
|
+
this.generateRequestParams(params);
|
|
1528
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1529
|
+
}
|
|
1530
|
+
updateQuestion(params) {
|
|
1531
|
+
let serviceUrl = this.SERVICE_URL + 'update/question';
|
|
1532
|
+
this.generateRequestParams(params);
|
|
1533
|
+
return this.http.put(serviceUrl, this.httpOptions);
|
|
1534
|
+
}
|
|
1535
|
+
getQuestionsBySections(params) {
|
|
1536
|
+
let serviceUrl = this.SERVICE_URL + 'get/questions/by/sections';
|
|
1537
|
+
this.generateRequestParams(params);
|
|
1538
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1539
|
+
}
|
|
1540
|
+
getQuestionsBySection(params) {
|
|
1541
|
+
let serviceUrl = this.SERVICE_URL + 'get/questions/by/section';
|
|
1542
|
+
this.generateRequestParams(params);
|
|
1543
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1544
|
+
}
|
|
1545
|
+
// ---------------------- RESPUESTAS ---------------------- //
|
|
1546
|
+
createAnswer(params) {
|
|
1547
|
+
let serviceUrl = this.SERVICE_URL + 'post/answer';
|
|
1548
|
+
this.generateRequestParams(params);
|
|
1549
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1550
|
+
}
|
|
1551
|
+
updateAnswer(params) {
|
|
1552
|
+
let serviceUrl = this.SERVICE_URL + 'update/answer';
|
|
1553
|
+
this.generateRequestParams(params);
|
|
1554
|
+
return this.http.put(serviceUrl, this.httpOptions);
|
|
1555
|
+
}
|
|
1556
|
+
getAnswersByQuestion(code) {
|
|
1557
|
+
let serviceUrl = this.SERVICE_URL + 'get/answers/by/question/' + code;
|
|
1558
|
+
return this.http.get(serviceUrl, this.httpOptions);
|
|
1559
|
+
}
|
|
1560
|
+
updateQuestionState(params) {
|
|
1561
|
+
let serviceUrl = this.SERVICE_URL + 'update/question/state';
|
|
1562
|
+
this.generateRequestParams(params);
|
|
1563
|
+
return this.http.put(serviceUrl, this.httpOptions);
|
|
1564
|
+
}
|
|
1565
|
+
// construye los headers y params
|
|
1566
|
+
generateRequestParams(param) {
|
|
1567
|
+
this.httpOptions = {
|
|
1568
|
+
header: new HttpHeaders(),
|
|
1569
|
+
params: param,
|
|
1570
|
+
};
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
TestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1574
|
+
TestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, providedIn: 'root' });
|
|
1575
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, decorators: [{
|
|
1576
|
+
type: Injectable,
|
|
1577
|
+
args: [{
|
|
1578
|
+
providedIn: 'root',
|
|
1579
|
+
}]
|
|
1561
1580
|
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
|
|
1562
1581
|
|
|
1563
|
-
class MarketingService {
|
|
1564
|
-
constructor(http) {
|
|
1565
|
-
this.http = http;
|
|
1566
|
-
this.SERVICE_URL = 'https://iptdev.com.co/lab/commercial/api/';
|
|
1567
|
-
}
|
|
1568
|
-
getStrategyByUserCommercial(user) {
|
|
1569
|
-
let serviceUrl = this.SERVICE_URL + 'post/contact/strategy/byaviser';
|
|
1570
|
-
this.generateRequestParams(user);
|
|
1571
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
1572
|
-
}
|
|
1573
|
-
getObservationsContact(codeContact) {
|
|
1574
|
-
let serviceUrl = this.SERVICE_URL + 'get/contact/observation/strategy/bycode/' + codeContact;
|
|
1575
|
-
return this.http.get(serviceUrl);
|
|
1576
|
-
}
|
|
1577
|
-
createObservations(params) {
|
|
1578
|
-
let serviceUrl = this.SERVICE_URL + 'post/contact/observation/create';
|
|
1579
|
-
this.generateRequestParams(params);
|
|
1580
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
1581
|
-
}
|
|
1582
|
-
getUserStatistics(userToken) {
|
|
1583
|
-
let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
|
|
1584
|
-
this.generateRequestParams(userToken);
|
|
1585
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
1586
|
-
}
|
|
1587
|
-
getTopAdviser() {
|
|
1588
|
-
let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/topadviser';
|
|
1589
|
-
return this.http.get(serviceUrl, this.httpOptions);
|
|
1590
|
-
}
|
|
1591
|
-
getMovementStatus() {
|
|
1592
|
-
let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/movements/status';
|
|
1593
|
-
return this.http.get(serviceUrl, this.httpOptions);
|
|
1594
|
-
}
|
|
1595
|
-
getgroupSignupStatus() {
|
|
1596
|
-
let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/group/signup';
|
|
1597
|
-
return this.http.get(serviceUrl, this.httpOptions);
|
|
1598
|
-
}
|
|
1599
|
-
//Construye los headers y paramns
|
|
1600
|
-
generateRequestParams(param) {
|
|
1601
|
-
this.httpOptions = {
|
|
1602
|
-
header: new HttpHeaders(),
|
|
1603
|
-
params: param,
|
|
1604
|
-
};
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
MarketingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1608
|
-
MarketingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, providedIn: 'root' });
|
|
1609
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, decorators: [{
|
|
1610
|
-
type: Injectable,
|
|
1611
|
-
args: [{
|
|
1612
|
-
providedIn: 'root'
|
|
1613
|
-
}]
|
|
1582
|
+
class MarketingService {
|
|
1583
|
+
constructor(http) {
|
|
1584
|
+
this.http = http;
|
|
1585
|
+
this.SERVICE_URL = 'https://iptdev.com.co/lab/commercial/api/';
|
|
1586
|
+
}
|
|
1587
|
+
getStrategyByUserCommercial(user) {
|
|
1588
|
+
let serviceUrl = this.SERVICE_URL + 'post/contact/strategy/byaviser';
|
|
1589
|
+
this.generateRequestParams(user);
|
|
1590
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1591
|
+
}
|
|
1592
|
+
getObservationsContact(codeContact) {
|
|
1593
|
+
let serviceUrl = this.SERVICE_URL + 'get/contact/observation/strategy/bycode/' + codeContact;
|
|
1594
|
+
return this.http.get(serviceUrl);
|
|
1595
|
+
}
|
|
1596
|
+
createObservations(params) {
|
|
1597
|
+
let serviceUrl = this.SERVICE_URL + 'post/contact/observation/create';
|
|
1598
|
+
this.generateRequestParams(params);
|
|
1599
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1600
|
+
}
|
|
1601
|
+
getUserStatistics(userToken) {
|
|
1602
|
+
let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
|
|
1603
|
+
this.generateRequestParams(userToken);
|
|
1604
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1605
|
+
}
|
|
1606
|
+
getTopAdviser() {
|
|
1607
|
+
let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/topadviser';
|
|
1608
|
+
return this.http.get(serviceUrl, this.httpOptions);
|
|
1609
|
+
}
|
|
1610
|
+
getMovementStatus() {
|
|
1611
|
+
let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/movements/status';
|
|
1612
|
+
return this.http.get(serviceUrl, this.httpOptions);
|
|
1613
|
+
}
|
|
1614
|
+
getgroupSignupStatus() {
|
|
1615
|
+
let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/group/signup';
|
|
1616
|
+
return this.http.get(serviceUrl, this.httpOptions);
|
|
1617
|
+
}
|
|
1618
|
+
//Construye los headers y paramns
|
|
1619
|
+
generateRequestParams(param) {
|
|
1620
|
+
this.httpOptions = {
|
|
1621
|
+
header: new HttpHeaders(),
|
|
1622
|
+
params: param,
|
|
1623
|
+
};
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
MarketingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1627
|
+
MarketingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, providedIn: 'root' });
|
|
1628
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, decorators: [{
|
|
1629
|
+
type: Injectable,
|
|
1630
|
+
args: [{
|
|
1631
|
+
providedIn: 'root'
|
|
1632
|
+
}]
|
|
1614
1633
|
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
|
|
1615
1634
|
|
|
1616
|
-
class BudgetService {
|
|
1617
|
-
constructor(http) {
|
|
1618
|
-
this.http = http;
|
|
1619
|
-
this.SERVICE_URL = 'https://iptdev.com.co/lab/budget/api/';
|
|
1620
|
-
}
|
|
1621
|
-
getAllDiscount(user) {
|
|
1622
|
-
let serviceUrl = this.SERVICE_URL + 'post/discounts/coupon/all';
|
|
1623
|
-
this.generateRequestParams(user);
|
|
1624
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
1625
|
-
}
|
|
1626
|
-
createDiscount(params) {
|
|
1627
|
-
let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/create';
|
|
1628
|
-
this.generateRequestParams(params);
|
|
1629
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
1630
|
-
}
|
|
1631
|
-
updateDiscount(params) {
|
|
1632
|
-
let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/update';
|
|
1633
|
-
this.generateRequestParams(params);
|
|
1634
|
-
return this.http.post(serviceUrl, this.httpOptions);
|
|
1635
|
-
}
|
|
1636
|
-
//Construye los headers y paramns
|
|
1637
|
-
generateRequestParams(param) {
|
|
1638
|
-
this.httpOptions = {
|
|
1639
|
-
header: new HttpHeaders(),
|
|
1640
|
-
params: param,
|
|
1641
|
-
};
|
|
1642
|
-
}
|
|
1643
|
-
}
|
|
1644
|
-
BudgetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1645
|
-
BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, providedIn: 'root' });
|
|
1646
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, decorators: [{
|
|
1647
|
-
type: Injectable,
|
|
1648
|
-
args: [{
|
|
1649
|
-
providedIn: 'root'
|
|
1650
|
-
}]
|
|
1635
|
+
class BudgetService {
|
|
1636
|
+
constructor(http) {
|
|
1637
|
+
this.http = http;
|
|
1638
|
+
this.SERVICE_URL = 'https://iptdev.com.co/lab/budget/api/';
|
|
1639
|
+
}
|
|
1640
|
+
getAllDiscount(user) {
|
|
1641
|
+
let serviceUrl = this.SERVICE_URL + 'post/discounts/coupon/all';
|
|
1642
|
+
this.generateRequestParams(user);
|
|
1643
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1644
|
+
}
|
|
1645
|
+
createDiscount(params) {
|
|
1646
|
+
let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/create';
|
|
1647
|
+
this.generateRequestParams(params);
|
|
1648
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1649
|
+
}
|
|
1650
|
+
updateDiscount(params) {
|
|
1651
|
+
let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/update';
|
|
1652
|
+
this.generateRequestParams(params);
|
|
1653
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1654
|
+
}
|
|
1655
|
+
//Construye los headers y paramns
|
|
1656
|
+
generateRequestParams(param) {
|
|
1657
|
+
this.httpOptions = {
|
|
1658
|
+
header: new HttpHeaders(),
|
|
1659
|
+
params: param,
|
|
1660
|
+
};
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
BudgetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1664
|
+
BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, providedIn: 'root' });
|
|
1665
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, decorators: [{
|
|
1666
|
+
type: Injectable,
|
|
1667
|
+
args: [{
|
|
1668
|
+
providedIn: 'root'
|
|
1669
|
+
}]
|
|
1651
1670
|
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
|
|
1652
1671
|
|
|
1653
|
-
class CoreModule {
|
|
1654
|
-
}
|
|
1655
|
-
CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1656
|
-
CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule });
|
|
1657
|
-
CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, providers: [
|
|
1658
|
-
ParameterService,
|
|
1659
|
-
CourseService,
|
|
1660
|
-
StorageService,
|
|
1661
|
-
UserService,
|
|
1662
|
-
SwitchService,
|
|
1663
|
-
RedirectGuard,
|
|
1664
|
-
BaseService,
|
|
1665
|
-
TestService,
|
|
1666
|
-
MarketingService,
|
|
1667
|
-
BudgetService
|
|
1668
|
-
] });
|
|
1669
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, decorators: [{
|
|
1670
|
-
type: NgModule,
|
|
1671
|
-
args: [{
|
|
1672
|
-
providers: [
|
|
1673
|
-
ParameterService,
|
|
1674
|
-
CourseService,
|
|
1675
|
-
StorageService,
|
|
1676
|
-
UserService,
|
|
1677
|
-
SwitchService,
|
|
1678
|
-
RedirectGuard,
|
|
1679
|
-
BaseService,
|
|
1680
|
-
TestService,
|
|
1681
|
-
MarketingService,
|
|
1682
|
-
BudgetService
|
|
1683
|
-
]
|
|
1684
|
-
}]
|
|
1672
|
+
class CoreModule {
|
|
1673
|
+
}
|
|
1674
|
+
CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1675
|
+
CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule });
|
|
1676
|
+
CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, providers: [
|
|
1677
|
+
ParameterService,
|
|
1678
|
+
CourseService,
|
|
1679
|
+
StorageService,
|
|
1680
|
+
UserService,
|
|
1681
|
+
SwitchService,
|
|
1682
|
+
RedirectGuard,
|
|
1683
|
+
BaseService,
|
|
1684
|
+
TestService,
|
|
1685
|
+
MarketingService,
|
|
1686
|
+
BudgetService
|
|
1687
|
+
] });
|
|
1688
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, decorators: [{
|
|
1689
|
+
type: NgModule,
|
|
1690
|
+
args: [{
|
|
1691
|
+
providers: [
|
|
1692
|
+
ParameterService,
|
|
1693
|
+
CourseService,
|
|
1694
|
+
StorageService,
|
|
1695
|
+
UserService,
|
|
1696
|
+
SwitchService,
|
|
1697
|
+
RedirectGuard,
|
|
1698
|
+
BaseService,
|
|
1699
|
+
TestService,
|
|
1700
|
+
MarketingService,
|
|
1701
|
+
BudgetService
|
|
1702
|
+
]
|
|
1703
|
+
}]
|
|
1685
1704
|
}] });
|
|
1686
1705
|
|
|
1687
|
-
class DesignSystemModule {
|
|
1688
|
-
}
|
|
1689
|
-
DesignSystemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1690
|
-
DesignSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [ComponentsModule,
|
|
1691
|
-
CoreModule,
|
|
1692
|
-
CurrencyMaskModule], exports: [ComponentsModule,
|
|
1693
|
-
CoreModule,
|
|
1694
|
-
CurrencyMaskModule] });
|
|
1695
|
-
DesignSystemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [[
|
|
1696
|
-
ComponentsModule,
|
|
1697
|
-
CoreModule,
|
|
1698
|
-
CurrencyMaskModule
|
|
1699
|
-
], ComponentsModule,
|
|
1700
|
-
CoreModule,
|
|
1701
|
-
CurrencyMaskModule] });
|
|
1702
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, decorators: [{
|
|
1703
|
-
type: NgModule,
|
|
1704
|
-
args: [{
|
|
1705
|
-
imports: [
|
|
1706
|
-
ComponentsModule,
|
|
1707
|
-
CoreModule,
|
|
1708
|
-
CurrencyMaskModule
|
|
1709
|
-
],
|
|
1710
|
-
exports: [
|
|
1711
|
-
ComponentsModule,
|
|
1712
|
-
CoreModule,
|
|
1713
|
-
CurrencyMaskModule
|
|
1714
|
-
]
|
|
1715
|
-
}]
|
|
1706
|
+
class DesignSystemModule {
|
|
1707
|
+
}
|
|
1708
|
+
DesignSystemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1709
|
+
DesignSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [ComponentsModule,
|
|
1710
|
+
CoreModule,
|
|
1711
|
+
CurrencyMaskModule], exports: [ComponentsModule,
|
|
1712
|
+
CoreModule,
|
|
1713
|
+
CurrencyMaskModule] });
|
|
1714
|
+
DesignSystemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [[
|
|
1715
|
+
ComponentsModule,
|
|
1716
|
+
CoreModule,
|
|
1717
|
+
CurrencyMaskModule
|
|
1718
|
+
], ComponentsModule,
|
|
1719
|
+
CoreModule,
|
|
1720
|
+
CurrencyMaskModule] });
|
|
1721
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, decorators: [{
|
|
1722
|
+
type: NgModule,
|
|
1723
|
+
args: [{
|
|
1724
|
+
imports: [
|
|
1725
|
+
ComponentsModule,
|
|
1726
|
+
CoreModule,
|
|
1727
|
+
CurrencyMaskModule
|
|
1728
|
+
],
|
|
1729
|
+
exports: [
|
|
1730
|
+
ComponentsModule,
|
|
1731
|
+
CoreModule,
|
|
1732
|
+
CurrencyMaskModule
|
|
1733
|
+
]
|
|
1734
|
+
}]
|
|
1716
1735
|
}] });
|
|
1717
1736
|
|
|
1718
|
-
class
|
|
1719
|
-
|
|
1737
|
+
class AttendanceService {
|
|
1738
|
+
constructor(http) {
|
|
1739
|
+
this.http = http;
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
AttendanceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1743
|
+
AttendanceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, providedIn: 'root' });
|
|
1744
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, decorators: [{
|
|
1745
|
+
type: Injectable,
|
|
1746
|
+
args: [{
|
|
1747
|
+
providedIn: 'root'
|
|
1748
|
+
}]
|
|
1749
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
|
|
1720
1750
|
|
|
1721
|
-
class
|
|
1751
|
+
class CalendarService {
|
|
1752
|
+
constructor(http) {
|
|
1753
|
+
this.http = http;
|
|
1754
|
+
this.SERVICE_URL = 'http://localhost:8000/api/';
|
|
1755
|
+
}
|
|
1756
|
+
getEventByIdCalendar(idCalendar) {
|
|
1757
|
+
let serviceUrl = this.SERVICE_URL + 'get/event/calendar/idcalendar/all/' + idCalendar;
|
|
1758
|
+
return this.http.get(serviceUrl);
|
|
1759
|
+
}
|
|
1760
|
+
postEventByDayTime(params) {
|
|
1761
|
+
let serviceUrl = this.SERVICE_URL + 'post/event/calendar/idcalendar/by/datetime';
|
|
1762
|
+
this.generateRequestParams(params);
|
|
1763
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1764
|
+
}
|
|
1765
|
+
generateRequestParams(param) {
|
|
1766
|
+
this.httpOptions = {
|
|
1767
|
+
header: new HttpHeaders(),
|
|
1768
|
+
params: param,
|
|
1769
|
+
};
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
CalendarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1773
|
+
CalendarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, providedIn: 'root' });
|
|
1774
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, decorators: [{
|
|
1775
|
+
type: Injectable,
|
|
1776
|
+
args: [{
|
|
1777
|
+
providedIn: 'root',
|
|
1778
|
+
}]
|
|
1779
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
|
|
1780
|
+
|
|
1781
|
+
class NotesService {
|
|
1782
|
+
constructor(http) {
|
|
1783
|
+
this.http = http;
|
|
1784
|
+
this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
|
|
1785
|
+
}
|
|
1786
|
+
getNotesByGroup(params) {
|
|
1787
|
+
let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/course';
|
|
1788
|
+
this.generateRequestParams(params);
|
|
1789
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1790
|
+
}
|
|
1791
|
+
getNotesByStudent(params) {
|
|
1792
|
+
let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/student';
|
|
1793
|
+
this.generateRequestParams(params);
|
|
1794
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1795
|
+
}
|
|
1796
|
+
createNewNote(params) {
|
|
1797
|
+
let serviceUrl = this.SERVICE_URL + 'post/create/note';
|
|
1798
|
+
this.generateRequestParams(params);
|
|
1799
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1800
|
+
}
|
|
1801
|
+
generateRequestParams(param) {
|
|
1802
|
+
this.httpOptions = {
|
|
1803
|
+
header: new HttpHeaders(),
|
|
1804
|
+
params: param,
|
|
1805
|
+
};
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
NotesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1809
|
+
NotesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, providedIn: 'root' });
|
|
1810
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, decorators: [{
|
|
1811
|
+
type: Injectable,
|
|
1812
|
+
args: [{
|
|
1813
|
+
providedIn: 'root'
|
|
1814
|
+
}]
|
|
1815
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
|
|
1816
|
+
|
|
1817
|
+
class StudentService {
|
|
1818
|
+
constructor(http) {
|
|
1819
|
+
this.http = http;
|
|
1820
|
+
this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
|
|
1821
|
+
}
|
|
1822
|
+
getStudentsByCourse(params) {
|
|
1823
|
+
let serviceUrl = this.SERVICE_URL + 'post/obtain/students/by/course';
|
|
1824
|
+
this.generateRequestParams(params);
|
|
1825
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1826
|
+
}
|
|
1827
|
+
generateRequestParams(param) {
|
|
1828
|
+
this.httpOptions = {
|
|
1829
|
+
header: new HttpHeaders(),
|
|
1830
|
+
params: param,
|
|
1831
|
+
};
|
|
1832
|
+
}
|
|
1833
|
+
}
|
|
1834
|
+
StudentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1835
|
+
StudentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, providedIn: 'root' });
|
|
1836
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, decorators: [{
|
|
1837
|
+
type: Injectable,
|
|
1838
|
+
args: [{
|
|
1839
|
+
providedIn: 'root'
|
|
1840
|
+
}]
|
|
1841
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
|
|
1842
|
+
|
|
1843
|
+
class Session {
|
|
1722
1844
|
}
|
|
1723
|
-
|
|
1845
|
+
|
|
1846
|
+
class UserRs {
|
|
1847
|
+
}
|
|
1848
|
+
class UserLoginRs {
|
|
1724
1849
|
}
|
|
1725
1850
|
|
|
1726
|
-
/*
|
|
1727
|
-
* Public API Surface of design-system
|
|
1851
|
+
/*
|
|
1852
|
+
* Public API Surface of design-system
|
|
1728
1853
|
*/
|
|
1729
1854
|
|
|
1730
|
-
/**
|
|
1731
|
-
* Generated bundle index. Do not edit.
|
|
1855
|
+
/**
|
|
1856
|
+
* Generated bundle index. Do not edit.
|
|
1732
1857
|
*/
|
|
1733
1858
|
|
|
1734
|
-
export { AsideButtonComponent, BaseService, BudgetService, ButtonComponent, CheckboxComponent, ComponentsModule, CoreModule, CourseService, DatalistComponent, DesignSystemModule, InputComponent, LevelButtonComponent, LevelTextComponent, LoginFormComponent, MarketingService, ParameterService, RadioComponent, RedirectGuard, SelectComponent, Session, SidenavComponent, StorageService, SwitchService, TestService, TextLinkComponent, UserLoginRs, UserRs, UserService };
|
|
1859
|
+
export { AsideButtonComponent, AttendanceService, BaseService, BudgetService, ButtonComponent, CalendarService, CheckboxComponent, ComponentsModule, CoreModule, CourseService, DatalistComponent, DesignSystemModule, InputComponent, LevelButtonComponent, LevelTextComponent, LoginFormComponent, MarketingService, NotesService, ParameterService, RadioComponent, RedirectGuard, SelectComponent, Session, SidenavComponent, StorageService, StudentService, SwitchService, TestService, TextLinkComponent, UserLoginRs, UserRs, UserService };
|
|
1735
1860
|
//# sourceMappingURL=iptdevs-design-system.mjs.map
|