iptdevs-design-system 2.6.43 → 2.6.45

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.
Files changed (114) hide show
  1. package/README.md +24 -24
  2. package/esm2020/iptdevs-design-system.mjs +4 -4
  3. package/esm2020/lib/components/atoms/aside-button/aside-button.component.mjs +50 -50
  4. package/esm2020/lib/components/atoms/button/button.component.mjs +64 -64
  5. package/esm2020/lib/components/atoms/checkbox/checkbox.component.mjs +47 -47
  6. package/esm2020/lib/components/atoms/datalist/datalist.component.mjs +94 -94
  7. package/esm2020/lib/components/atoms/input/input.component.mjs +145 -145
  8. package/esm2020/lib/components/atoms/level-button/level-button.component.mjs +64 -64
  9. package/esm2020/lib/components/atoms/level-text/level-text.component.mjs +19 -19
  10. package/esm2020/lib/components/atoms/loader/loader.component.mjs +48 -48
  11. package/esm2020/lib/components/atoms/radio/radio.component.mjs +47 -47
  12. package/esm2020/lib/components/atoms/select/select.component.mjs +92 -92
  13. package/esm2020/lib/components/atoms/text-link/text-link.component.mjs +39 -39
  14. package/esm2020/lib/components/components.module.mjs +118 -118
  15. package/esm2020/lib/components/forms/create-user-form/create-user-form.component.mjs +228 -228
  16. package/esm2020/lib/components/forms/login-form/login-form.component.mjs +93 -93
  17. package/esm2020/lib/components/material.module.mjs +19 -19
  18. package/esm2020/lib/components/molecules/sidenav/sidenav.component.mjs +150 -146
  19. package/esm2020/lib/core/core.module.mjs +52 -52
  20. package/esm2020/lib/core/models/activities/activities.interface.mjs +2 -2
  21. package/esm2020/lib/core/models/attendance/attendance.interface.mjs +2 -2
  22. package/esm2020/lib/core/models/budget/budget.model.mjs +2 -2
  23. package/esm2020/lib/core/models/calendar/calendar-rq.models.mjs +2 -2
  24. package/esm2020/lib/core/models/classroom/classroom-rq.model.mjs +2 -2
  25. package/esm2020/lib/core/models/cod/cod-rq.model.mjs +2 -2
  26. package/esm2020/lib/core/models/course/course-rq.model.mjs +2 -2
  27. package/esm2020/lib/core/models/cronogram/cronogram.models.mjs +2 -2
  28. package/esm2020/lib/core/models/marketing/marketing.model.mjs +2 -2
  29. package/esm2020/lib/core/models/notes/notes.interface.mjs +2 -2
  30. package/esm2020/lib/core/models/response/response.interface.mjs +2 -2
  31. package/esm2020/lib/core/models/session/session.model.mjs +3 -3
  32. package/esm2020/lib/core/models/student/student.interface.mjs +2 -2
  33. package/esm2020/lib/core/models/table/table-rs.model.mjs +2 -2
  34. package/esm2020/lib/core/models/test/test.model.mjs +2 -2
  35. package/esm2020/lib/core/models/url/url.model.mjs +2 -2
  36. package/esm2020/lib/core/models/user/user-rq.model.mjs +2 -2
  37. package/esm2020/lib/core/models/user/user-rs.model.mjs +5 -5
  38. package/esm2020/lib/core/services/activity-service/activity.service.mjs +92 -92
  39. package/esm2020/lib/core/services/attendance-service/attendance.service.mjs +69 -69
  40. package/esm2020/lib/core/services/budget-service/budget-service.mjs +41 -41
  41. package/esm2020/lib/core/services/calendar-service/calendar.service.mjs +59 -59
  42. package/esm2020/lib/core/services/classroom-service/classroom-service.service.mjs +36 -36
  43. package/esm2020/lib/core/services/course-service/course-service.model.mjs +75 -75
  44. package/esm2020/lib/core/services/marketing-service/marketing-service.mjs +57 -57
  45. package/esm2020/lib/core/services/notes-service/notes.service.mjs +50 -50
  46. package/esm2020/lib/core/services/parameters-service/parameters.service.mjs +114 -114
  47. package/esm2020/lib/core/services/storage-service/storage-service.mjs +50 -50
  48. package/esm2020/lib/core/services/student-service/student.service.mjs +30 -30
  49. package/esm2020/lib/core/services/switch-service/switch.service.mjs +16 -16
  50. package/esm2020/lib/core/services/test-service/test.service.mjs +136 -136
  51. package/esm2020/lib/core/services/user-service/user-service.mjs +84 -84
  52. package/esm2020/lib/core/utils/base-service/base.service.mjs +183 -179
  53. package/esm2020/lib/core/utils/route-service/route.service.mjs +18 -18
  54. package/esm2020/lib/design-system.module.mjs +36 -36
  55. package/esm2020/public-api.mjs +61 -61
  56. package/fesm2015/iptdevs-design-system.mjs +2293 -2285
  57. package/fesm2015/iptdevs-design-system.mjs.map +1 -1
  58. package/fesm2020/iptdevs-design-system.mjs +2290 -2282
  59. package/fesm2020/iptdevs-design-system.mjs.map +1 -1
  60. package/iptdevs-design-system.d.ts +5 -5
  61. package/lib/components/atoms/aside-button/aside-button.component.d.ts +11 -11
  62. package/lib/components/atoms/button/button.component.d.ts +13 -13
  63. package/lib/components/atoms/checkbox/checkbox.component.d.ts +11 -11
  64. package/lib/components/atoms/datalist/datalist.component.d.ts +20 -20
  65. package/lib/components/atoms/input/input.component.d.ts +26 -26
  66. package/lib/components/atoms/level-button/level-button.component.d.ts +11 -11
  67. package/lib/components/atoms/level-text/level-text.component.d.ts +7 -7
  68. package/lib/components/atoms/loader/loader.component.d.ts +7 -7
  69. package/lib/components/atoms/radio/radio.component.d.ts +11 -11
  70. package/lib/components/atoms/select/select.component.d.ts +24 -24
  71. package/lib/components/atoms/text-link/text-link.component.d.ts +12 -12
  72. package/lib/components/components.module.d.ts +24 -24
  73. package/lib/components/forms/create-user-form/create-user-form.component.d.ts +36 -36
  74. package/lib/components/forms/login-form/login-form.component.d.ts +13 -13
  75. package/lib/components/material.module.d.ts +11 -11
  76. package/lib/components/molecules/sidenav/sidenav.component.d.ts +25 -22
  77. package/lib/core/core.module.d.ts +6 -6
  78. package/lib/core/models/activities/activities.interface.d.ts +12 -12
  79. package/lib/core/models/attendance/attendance.interface.d.ts +62 -62
  80. package/lib/core/models/budget/budget.model.d.ts +69 -69
  81. package/lib/core/models/calendar/calendar-rq.models.d.ts +27 -27
  82. package/lib/core/models/classroom/classroom-rq.model.d.ts +18 -18
  83. package/lib/core/models/cod/cod-rq.model.d.ts +51 -51
  84. package/lib/core/models/course/course-rq.model.d.ts +86 -86
  85. package/lib/core/models/cronogram/cronogram.models.d.ts +183 -183
  86. package/lib/core/models/marketing/marketing.model.d.ts +104 -104
  87. package/lib/core/models/notes/notes.interface.d.ts +89 -89
  88. package/lib/core/models/response/response.interface.d.ts +10 -10
  89. package/lib/core/models/session/session.model.d.ts +5 -5
  90. package/lib/core/models/student/student.interface.d.ts +4 -4
  91. package/lib/core/models/table/table-rs.model.d.ts +7 -7
  92. package/lib/core/models/test/test.model.d.ts +219 -219
  93. package/lib/core/models/url/url.model.d.ts +8 -8
  94. package/lib/core/models/user/user-rq.model.d.ts +91 -91
  95. package/lib/core/models/user/user-rs.model.d.ts +35 -35
  96. package/lib/core/services/activity-service/activity.service.d.ts +26 -26
  97. package/lib/core/services/attendance-service/attendance.service.d.ts +23 -23
  98. package/lib/core/services/budget-service/budget-service.d.ts +16 -16
  99. package/lib/core/services/calendar-service/calendar.service.d.ts +22 -22
  100. package/lib/core/services/classroom-service/classroom-service.service.d.ts +15 -15
  101. package/lib/core/services/course-service/course-service.model.d.ts +24 -24
  102. package/lib/core/services/marketing-service/marketing-service.d.ts +20 -20
  103. package/lib/core/services/notes-service/notes.service.d.ts +19 -19
  104. package/lib/core/services/parameters-service/parameters.service.d.ts +34 -34
  105. package/lib/core/services/storage-service/storage-service.d.ts +18 -18
  106. package/lib/core/services/student-service/student.service.d.ts +14 -14
  107. package/lib/core/services/switch-service/switch.service.d.ts +8 -8
  108. package/lib/core/services/test-service/test.service.d.ts +35 -35
  109. package/lib/core/services/user-service/user-service.d.ts +26 -26
  110. package/lib/core/utils/base-service/base.service.d.ts +22 -21
  111. package/lib/core/utils/route-service/route.service.d.ts +9 -9
  112. package/lib/design-system.module.d.ts +9 -9
  113. package/package.json +1 -1
  114. package/public-api.d.ts +52 -52
@@ -10,2369 +10,2377 @@ import Swal from 'sweetalert2';
10
10
  import * as i1$2 from '@angular/common/http';
11
11
  import { HttpHeaders } from '@angular/common/http';
12
12
  import { trigger, transition, style, animate } from '@angular/animations';
13
- import * as i3$1 from '@angular/material/sidenav';
13
+ import * as i2 from 'design-system/src/public-api';
14
+ import * as i4 from '@angular/material/sidenav';
14
15
  import { MatSidenavModule } from '@angular/material/sidenav';
15
- import * as i4 from '@angular/material/toolbar';
16
+ import * as i5 from '@angular/material/toolbar';
16
17
  import { MatToolbarModule } from '@angular/material/toolbar';
17
- import * as i5 from '@angular/material/list';
18
+ import * as i6 from '@angular/material/list';
18
19
  import { MatListModule } from '@angular/material/list';
19
20
  import { MatIconModule } from '@angular/material/icon';
20
21
  import { MatButtonModule } from '@angular/material/button';
21
22
  import * as i1$3 from '@angular/router';
22
23
 
23
- class AsideButtonComponent {
24
- constructor() {
25
- this.isClicked = new EventEmitter();
26
- }
27
- clickAction() {
28
- this.isClicked.emit(true);
29
- }
30
- }
31
- AsideButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AsideButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
32
- 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: `
33
- <div [ngSwitch]="buttonActive">
34
- <a *ngSwitchCase="0" class="flex-item-menu__link" (click)="clickAction()">
35
- <img src="{{ icon }}" alt="icon_url" />
36
- <p>{{ text }}</p>
37
- </a>
38
-
39
- <a *ngSwitchCase="1" class="flex-item-menu__link flex-item-active" (click)="clickAction()">
40
- <img src="{{ icon }}" alt="icon_url" />
41
- <p>{{ text }}</p>
42
- </a>
43
- </div>
44
- `, 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"] }] });
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AsideButtonComponent, decorators: [{
46
- type: Component,
47
- args: [{ selector: 'ipt-aside-button', template: `
48
- <div [ngSwitch]="buttonActive">
49
- <a *ngSwitchCase="0" class="flex-item-menu__link" (click)="clickAction()">
50
- <img src="{{ icon }}" alt="icon_url" />
51
- <p>{{ text }}</p>
52
- </a>
53
-
54
- <a *ngSwitchCase="1" class="flex-item-menu__link flex-item-active" (click)="clickAction()">
55
- <img src="{{ icon }}" alt="icon_url" />
56
- <p>{{ text }}</p>
57
- </a>
58
- </div>
59
- `, 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"] }]
60
- }], propDecorators: { icon: [{
61
- type: Input
62
- }], text: [{
63
- type: Input
64
- }], buttonActive: [{
65
- type: Input
66
- }], isClicked: [{
67
- type: Output
24
+ class AsideButtonComponent {
25
+ constructor() {
26
+ this.isClicked = new EventEmitter();
27
+ }
28
+ clickAction() {
29
+ this.isClicked.emit(true);
30
+ }
31
+ }
32
+ AsideButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AsideButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
33
+ 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: `
34
+ <div [ngSwitch]="buttonActive">
35
+ <a *ngSwitchCase="0" class="flex-item-menu__link" (click)="clickAction()">
36
+ <img src="{{ icon }}" alt="icon_url" />
37
+ <p>{{ text }}</p>
38
+ </a>
39
+
40
+ <a *ngSwitchCase="1" class="flex-item-menu__link flex-item-active" (click)="clickAction()">
41
+ <img src="{{ icon }}" alt="icon_url" />
42
+ <p>{{ text }}</p>
43
+ </a>
44
+ </div>
45
+ `, 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"] }] });
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AsideButtonComponent, decorators: [{
47
+ type: Component,
48
+ args: [{ selector: 'ipt-aside-button', template: `
49
+ <div [ngSwitch]="buttonActive">
50
+ <a *ngSwitchCase="0" class="flex-item-menu__link" (click)="clickAction()">
51
+ <img src="{{ icon }}" alt="icon_url" />
52
+ <p>{{ text }}</p>
53
+ </a>
54
+
55
+ <a *ngSwitchCase="1" class="flex-item-menu__link flex-item-active" (click)="clickAction()">
56
+ <img src="{{ icon }}" alt="icon_url" />
57
+ <p>{{ text }}</p>
58
+ </a>
59
+ </div>
60
+ `, 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"] }]
61
+ }], propDecorators: { icon: [{
62
+ type: Input
63
+ }], text: [{
64
+ type: Input
65
+ }], buttonActive: [{
66
+ type: Input
67
+ }], isClicked: [{
68
+ type: Output
68
69
  }] } });
69
70
 
70
- class ButtonComponent {
71
- constructor() {
72
- this.primary = false;
73
- this.size = 'medium';
74
- this.label = 'Button';
75
- this.isEnabled = true;
76
- this.onClick = new EventEmitter();
77
- }
78
- get classes() {
79
- const mode = this.primary && this.isEnabled === true
80
- ? 'ipt-button--primary'
81
- : this.isEnabled === false ? 'ipt-button--primary-disabled'
82
- : 'ipt-button--secondary';
83
- return ['ipt-button', `ipt-button--${this.size}`, mode];
84
- }
85
- }
86
- ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
87
- 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"
88
- type="{{ buttonType }}"
89
- (click)="onClick.emit($event)"
90
- [ngClass]="classes"
91
- >
92
- {{ label }}
93
- </button>
94
-
95
- <button *ngIf="!isEnabled"
96
- type="{{ buttonType }}"
97
- [ngClass]="classes"
98
- >
99
- {{ label }}
100
- </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"] }] });
101
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ButtonComponent, decorators: [{
102
- type: Component,
103
- args: [{ selector: 'ipt-button', template: `<button *ngIf="isEnabled"
104
- type="{{ buttonType }}"
105
- (click)="onClick.emit($event)"
106
- [ngClass]="classes"
107
- >
108
- {{ label }}
109
- </button>
110
-
111
- <button *ngIf="!isEnabled"
112
- type="{{ buttonType }}"
113
- [ngClass]="classes"
114
- >
115
- {{ label }}
116
- </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"] }]
117
- }], propDecorators: { primary: [{
118
- type: Input
119
- }], size: [{
120
- type: Input
121
- }], label: [{
122
- type: Input
123
- }], buttonType: [{
124
- type: Input
125
- }], isEnabled: [{
126
- type: Input
127
- }], onClick: [{
128
- type: Output
71
+ class ButtonComponent {
72
+ constructor() {
73
+ this.primary = false;
74
+ this.size = 'medium';
75
+ this.label = 'Button';
76
+ this.isEnabled = true;
77
+ this.onClick = new EventEmitter();
78
+ }
79
+ get classes() {
80
+ const mode = this.primary && this.isEnabled === true
81
+ ? 'ipt-button--primary'
82
+ : this.isEnabled === false ? 'ipt-button--primary-disabled'
83
+ : 'ipt-button--secondary';
84
+ return ['ipt-button', `ipt-button--${this.size}`, mode];
85
+ }
86
+ }
87
+ ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
88
+ 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"
89
+ type="{{ buttonType }}"
90
+ (click)="onClick.emit($event)"
91
+ [ngClass]="classes"
92
+ >
93
+ {{ label }}
94
+ </button>
95
+
96
+ <button *ngIf="!isEnabled"
97
+ type="{{ buttonType }}"
98
+ [ngClass]="classes"
99
+ >
100
+ {{ label }}
101
+ </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"] }] });
102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ButtonComponent, decorators: [{
103
+ type: Component,
104
+ args: [{ selector: 'ipt-button', template: `<button *ngIf="isEnabled"
105
+ type="{{ buttonType }}"
106
+ (click)="onClick.emit($event)"
107
+ [ngClass]="classes"
108
+ >
109
+ {{ label }}
110
+ </button>
111
+
112
+ <button *ngIf="!isEnabled"
113
+ type="{{ buttonType }}"
114
+ [ngClass]="classes"
115
+ >
116
+ {{ label }}
117
+ </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"] }]
118
+ }], propDecorators: { primary: [{
119
+ type: Input
120
+ }], size: [{
121
+ type: Input
122
+ }], label: [{
123
+ type: Input
124
+ }], buttonType: [{
125
+ type: Input
126
+ }], isEnabled: [{
127
+ type: Input
128
+ }], onClick: [{
129
+ type: Output
129
130
  }] } });
130
131
 
131
- class CheckboxComponent {
132
- constructor() {
133
- this.checkboxOption = false;
134
- this.onChecked = new EventEmitter();
135
- }
136
- set control(value) {
137
- if (this.formControl !== value) {
138
- this.formControl = value;
139
- }
140
- }
141
- }
142
- CheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
143
- 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: `
144
- <label class="cont">
145
- <input
146
- class="checkbox"
147
- [formControl]="formControl"
148
- [checked]="checkboxOption"
149
- (click)="onChecked.emit($event)"
150
- type="checkbox">
151
- <span></span>
152
- </label>
153
- `, 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"] }] });
154
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CheckboxComponent, decorators: [{
155
- type: Component,
156
- args: [{ selector: 'ipt-checkbox', template: `
157
- <label class="cont">
158
- <input
159
- class="checkbox"
160
- [formControl]="formControl"
161
- [checked]="checkboxOption"
162
- (click)="onChecked.emit($event)"
163
- type="checkbox">
164
- <span></span>
165
- </label>
166
- `, 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"] }]
167
- }], propDecorators: { checkboxOption: [{
168
- type: Input
169
- }], control: [{
170
- type: Input
171
- }], onChecked: [{
172
- type: Output
132
+ class CheckboxComponent {
133
+ constructor() {
134
+ this.checkboxOption = false;
135
+ this.onChecked = new EventEmitter();
136
+ }
137
+ set control(value) {
138
+ if (this.formControl !== value) {
139
+ this.formControl = value;
140
+ }
141
+ }
142
+ }
143
+ CheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
144
+ 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: `
145
+ <label class="cont">
146
+ <input
147
+ class="checkbox"
148
+ [formControl]="formControl"
149
+ [checked]="checkboxOption"
150
+ (click)="onChecked.emit($event)"
151
+ type="checkbox">
152
+ <span></span>
153
+ </label>
154
+ `, 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"] }] });
155
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CheckboxComponent, decorators: [{
156
+ type: Component,
157
+ args: [{ selector: 'ipt-checkbox', template: `
158
+ <label class="cont">
159
+ <input
160
+ class="checkbox"
161
+ [formControl]="formControl"
162
+ [checked]="checkboxOption"
163
+ (click)="onChecked.emit($event)"
164
+ type="checkbox">
165
+ <span></span>
166
+ </label>
167
+ `, 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"] }]
168
+ }], propDecorators: { checkboxOption: [{
169
+ type: Input
170
+ }], control: [{
171
+ type: Input
172
+ }], onChecked: [{
173
+ type: Output
173
174
  }] } });
174
175
 
175
- class DatalistComponent {
176
- constructor(fb) {
177
- this.disabledSel = false;
178
- this.isChanged = new EventEmitter();
179
- this.clicked = false;
180
- }
181
- optionChanged(event) {
182
- let selectOption = this.datalistData.find(element => element.name == event.target.value);
183
- if (typeof (selectOption) != 'undefined') {
184
- this.isChanged.emit(selectOption.code);
185
- }
186
- else {
187
- this.isChanged.emit('-1');
188
- }
189
- }
190
- click(value) {
191
- this.clicked = value.isTrusted;
192
- }
193
- setDataListValue() {
194
- let selectOption = this.datalistData.find(element => element.code == this.initalData);
195
- if (typeof (selectOption) != 'undefined') {
196
- return selectOption.name;
197
- }
198
- else {
199
- return '';
200
- }
201
- }
202
- get labelClass() {
203
- return this.clicked === false ? 'label' : 'labelUp';
204
- }
205
- }
206
- 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 });
207
- 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: `
208
- <div class="input-container">
209
- <label [ngClass]="labelClass">{{ placeHolder }}</label>
210
- <input
211
- type="text"
212
- class="input"
213
- (click)="click($event)"
214
- [attr.list]="datalistId"
215
- (change)="optionChanged($event)"
216
- [disabled]="disabledSel"
217
- [value]="setDataListValue()"
218
- />
219
-
220
- <datalist id="{{ datalistId }}">
221
- <option *ngFor="let item of datalistData; index as i" [value]="item.name">
222
- {{item.id_card}} {{item.name}}
223
- </option>
224
- </datalist>
225
- </div>
226
- `, 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"] }] });
227
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, decorators: [{
228
- type: Component,
229
- args: [{ selector: 'ipt-datalist', template: `
230
- <div class="input-container">
231
- <label [ngClass]="labelClass">{{ placeHolder }}</label>
232
- <input
233
- type="text"
234
- class="input"
235
- (click)="click($event)"
236
- [attr.list]="datalistId"
237
- (change)="optionChanged($event)"
238
- [disabled]="disabledSel"
239
- [value]="setDataListValue()"
240
- />
241
-
242
- <datalist id="{{ datalistId }}">
243
- <option *ngFor="let item of datalistData; index as i" [value]="item.name">
244
- {{item.id_card}} {{item.name}}
245
- </option>
246
- </datalist>
247
- </div>
248
- `, 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"] }]
249
- }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }]; }, propDecorators: { datalistId: [{
250
- type: Input
251
- }], datalistData: [{
252
- type: Input
253
- }], placeHolder: [{
254
- type: Input
255
- }], validateText: [{
256
- type: Input
257
- }], initalData: [{
258
- type: Input
259
- }], disabledSel: [{
260
- type: Input
261
- }], isChanged: [{
262
- type: Output
176
+ class DatalistComponent {
177
+ constructor(fb) {
178
+ this.disabledSel = false;
179
+ this.isChanged = new EventEmitter();
180
+ this.clicked = false;
181
+ }
182
+ optionChanged(event) {
183
+ let selectOption = this.datalistData.find(element => element.name == event.target.value);
184
+ if (typeof (selectOption) != 'undefined') {
185
+ this.isChanged.emit(selectOption.code);
186
+ }
187
+ else {
188
+ this.isChanged.emit('-1');
189
+ }
190
+ }
191
+ click(value) {
192
+ this.clicked = value.isTrusted;
193
+ }
194
+ setDataListValue() {
195
+ let selectOption = this.datalistData.find(element => element.code == this.initalData);
196
+ if (typeof (selectOption) != 'undefined') {
197
+ return selectOption.name;
198
+ }
199
+ else {
200
+ return '';
201
+ }
202
+ }
203
+ get labelClass() {
204
+ return this.clicked === false ? 'label' : 'labelUp';
205
+ }
206
+ }
207
+ 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 });
208
+ 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: `
209
+ <div class="input-container">
210
+ <label [ngClass]="labelClass">{{ placeHolder }}</label>
211
+ <input
212
+ type="text"
213
+ class="input"
214
+ (click)="click($event)"
215
+ [attr.list]="datalistId"
216
+ (change)="optionChanged($event)"
217
+ [disabled]="disabledSel"
218
+ [value]="setDataListValue()"
219
+ />
220
+
221
+ <datalist id="{{ datalistId }}">
222
+ <option *ngFor="let item of datalistData; index as i" [value]="item.name">
223
+ {{item.id_card}} {{item.name}}
224
+ </option>
225
+ </datalist>
226
+ </div>
227
+ `, 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"] }] });
228
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, decorators: [{
229
+ type: Component,
230
+ args: [{ selector: 'ipt-datalist', template: `
231
+ <div class="input-container">
232
+ <label [ngClass]="labelClass">{{ placeHolder }}</label>
233
+ <input
234
+ type="text"
235
+ class="input"
236
+ (click)="click($event)"
237
+ [attr.list]="datalistId"
238
+ (change)="optionChanged($event)"
239
+ [disabled]="disabledSel"
240
+ [value]="setDataListValue()"
241
+ />
242
+
243
+ <datalist id="{{ datalistId }}">
244
+ <option *ngFor="let item of datalistData; index as i" [value]="item.name">
245
+ {{item.id_card}} {{item.name}}
246
+ </option>
247
+ </datalist>
248
+ </div>
249
+ `, 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"] }]
250
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }]; }, propDecorators: { datalistId: [{
251
+ type: Input
252
+ }], datalistData: [{
253
+ type: Input
254
+ }], placeHolder: [{
255
+ type: Input
256
+ }], validateText: [{
257
+ type: Input
258
+ }], initalData: [{
259
+ type: Input
260
+ }], disabledSel: [{
261
+ type: Input
262
+ }], isChanged: [{
263
+ type: Output
263
264
  }] } });
264
265
 
265
- class InputComponent {
266
- constructor() {
267
- this.data = [];
268
- this.clicked = false;
269
- this.withPipe = false;
270
- this.prefix = '$';
271
- this.thousands = '.';
272
- this.decimal = ',';
273
- this.dateSelected = new EventEmitter();
274
- }
275
- set control(value) {
276
- if (this.formControl !== value) {
277
- this.formControl = value;
278
- }
279
- }
280
- ngOnInit() { }
281
- selectedDate(evt) {
282
- this.dateSelected.emit(evt);
283
- }
284
- click(value) {
285
- this.clicked = value.isTrusted;
286
- }
287
- }
288
- InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
289
- 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" }, outputs: { dateSelected: "dateSelected" }, ngImport: i0, template: `
290
- <div class="input-container">
291
- <input *ngIf="inputType === 'date'"
292
- class="input"
293
- type="{{ inputType ? 'text' : 'date' }}"
294
- [formControl]="formControl"
295
- (ngModelChange)="selectedDate($event)"
296
- onfocus="this.type='date';"
297
- onblur="javascript: if( !this.value ) this.type='text';"
298
- uib-datepicker-popup="dd/MM/yyyy"
299
- ng-model="inputType"/>
300
-
301
- <input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
302
- class="input"
303
- type="{{ inputType }}"
304
- [formControl]="formControl"
305
- [attr.list]="list"/>
306
-
307
- <input *ngIf="inputType === 'text' && withPipe"
308
- class="input"
309
- currencyMask
310
- [options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
311
- type="{{ inputType }}"
312
- [formControl]="formControl"
313
- [attr.list]="list"/>
314
-
315
- <input *ngIf="inputType === 'time'"
316
- class="input"
317
- type="time"
318
- [formControl]="formControl"
319
- [min]="'06:00:00'"
320
- max="22:00:00"
321
- step="900"
322
- autocomplete="on"
323
- value="08:00:00"
324
- (click)="click($event)"
325
- />
326
-
327
- <label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
328
-
329
- <p *ngIf="(formControl.invalid && formControl.value !== '')">
330
- {{ validateText }}
331
- </p>
332
- </div>
333
- `, 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"] }] });
334
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, decorators: [{
335
- type: Component,
336
- args: [{ selector: 'ipt-input', template: `
337
- <div class="input-container">
338
- <input *ngIf="inputType === 'date'"
339
- class="input"
340
- type="{{ inputType ? 'text' : 'date' }}"
341
- [formControl]="formControl"
342
- (ngModelChange)="selectedDate($event)"
343
- onfocus="this.type='date';"
344
- onblur="javascript: if( !this.value ) this.type='text';"
345
- uib-datepicker-popup="dd/MM/yyyy"
346
- ng-model="inputType"/>
347
-
348
- <input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
349
- class="input"
350
- type="{{ inputType }}"
351
- [formControl]="formControl"
352
- [attr.list]="list"/>
353
-
354
- <input *ngIf="inputType === 'text' && withPipe"
355
- class="input"
356
- currencyMask
357
- [options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
358
- type="{{ inputType }}"
359
- [formControl]="formControl"
360
- [attr.list]="list"/>
361
-
362
- <input *ngIf="inputType === 'time'"
363
- class="input"
364
- type="time"
365
- [formControl]="formControl"
366
- [min]="'06:00:00'"
367
- max="22:00:00"
368
- step="900"
369
- autocomplete="on"
370
- value="08:00:00"
371
- (click)="click($event)"
372
- />
373
-
374
- <label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
375
-
376
- <p *ngIf="(formControl.invalid && formControl.value !== '')">
377
- {{ validateText }}
378
- </p>
379
- </div>
380
- `, 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"] }]
381
- }], ctorParameters: function () { return []; }, propDecorators: { inputType: [{
382
- type: Input
383
- }], placeHolder: [{
384
- type: Input
385
- }], validateText: [{
386
- type: Input
387
- }], withPipe: [{
388
- type: Input
389
- }], list: [{
390
- type: Input
391
- }], iconUrl: [{
392
- type: Input
393
- }], control: [{
394
- type: Input
395
- }], prefix: [{
396
- type: Input
397
- }], thousands: [{
398
- type: Input
399
- }], decimal: [{
400
- type: Input
401
- }], dateSelected: [{
402
- type: Output
266
+ class InputComponent {
267
+ constructor() {
268
+ this.data = [];
269
+ this.clicked = false;
270
+ this.withPipe = false;
271
+ this.prefix = '$';
272
+ this.thousands = '.';
273
+ this.decimal = ',';
274
+ this.dateSelected = new EventEmitter();
275
+ }
276
+ set control(value) {
277
+ if (this.formControl !== value) {
278
+ this.formControl = value;
279
+ }
280
+ }
281
+ ngOnInit() { }
282
+ selectedDate(evt) {
283
+ this.dateSelected.emit(evt);
284
+ }
285
+ click(value) {
286
+ this.clicked = value.isTrusted;
287
+ }
288
+ }
289
+ InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
290
+ 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" }, outputs: { dateSelected: "dateSelected" }, ngImport: i0, template: `
291
+ <div class="input-container">
292
+ <input *ngIf="inputType === 'date'"
293
+ class="input"
294
+ type="{{ inputType ? 'text' : 'date' }}"
295
+ [formControl]="formControl"
296
+ (ngModelChange)="selectedDate($event)"
297
+ onfocus="this.type='date';"
298
+ onblur="javascript: if( !this.value ) this.type='text';"
299
+ uib-datepicker-popup="dd/MM/yyyy"
300
+ ng-model="inputType"/>
301
+
302
+ <input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
303
+ class="input"
304
+ type="{{ inputType }}"
305
+ [formControl]="formControl"
306
+ [attr.list]="list"/>
307
+
308
+ <input *ngIf="inputType === 'text' && withPipe"
309
+ class="input"
310
+ currencyMask
311
+ [options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
312
+ type="{{ inputType }}"
313
+ [formControl]="formControl"
314
+ [attr.list]="list"/>
315
+
316
+ <input *ngIf="inputType === 'time'"
317
+ class="input"
318
+ type="time"
319
+ [formControl]="formControl"
320
+ [min]="'06:00:00'"
321
+ max="22:00:00"
322
+ step="900"
323
+ autocomplete="on"
324
+ value="08:00:00"
325
+ (click)="click($event)"
326
+ />
327
+
328
+ <label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
329
+
330
+ <p *ngIf="(formControl.invalid && formControl.value !== '')">
331
+ {{ validateText }}
332
+ </p>
333
+ </div>
334
+ `, 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"] }] });
335
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, decorators: [{
336
+ type: Component,
337
+ args: [{ selector: 'ipt-input', template: `
338
+ <div class="input-container">
339
+ <input *ngIf="inputType === 'date'"
340
+ class="input"
341
+ type="{{ inputType ? 'text' : 'date' }}"
342
+ [formControl]="formControl"
343
+ (ngModelChange)="selectedDate($event)"
344
+ onfocus="this.type='date';"
345
+ onblur="javascript: if( !this.value ) this.type='text';"
346
+ uib-datepicker-popup="dd/MM/yyyy"
347
+ ng-model="inputType"/>
348
+
349
+ <input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
350
+ class="input"
351
+ type="{{ inputType }}"
352
+ [formControl]="formControl"
353
+ [attr.list]="list"/>
354
+
355
+ <input *ngIf="inputType === 'text' && withPipe"
356
+ class="input"
357
+ currencyMask
358
+ [options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
359
+ type="{{ inputType }}"
360
+ [formControl]="formControl"
361
+ [attr.list]="list"/>
362
+
363
+ <input *ngIf="inputType === 'time'"
364
+ class="input"
365
+ type="time"
366
+ [formControl]="formControl"
367
+ [min]="'06:00:00'"
368
+ max="22:00:00"
369
+ step="900"
370
+ autocomplete="on"
371
+ value="08:00:00"
372
+ (click)="click($event)"
373
+ />
374
+
375
+ <label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
376
+
377
+ <p *ngIf="(formControl.invalid && formControl.value !== '')">
378
+ {{ validateText }}
379
+ </p>
380
+ </div>
381
+ `, 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"] }]
382
+ }], ctorParameters: function () { return []; }, propDecorators: { inputType: [{
383
+ type: Input
384
+ }], placeHolder: [{
385
+ type: Input
386
+ }], validateText: [{
387
+ type: Input
388
+ }], withPipe: [{
389
+ type: Input
390
+ }], list: [{
391
+ type: Input
392
+ }], iconUrl: [{
393
+ type: Input
394
+ }], control: [{
395
+ type: Input
396
+ }], prefix: [{
397
+ type: Input
398
+ }], thousands: [{
399
+ type: Input
400
+ }], decimal: [{
401
+ type: Input
402
+ }], dateSelected: [{
403
+ type: Output
403
404
  }] } });
404
405
 
405
- class LevelButtonComponent {
406
- constructor() {
407
- this.isClicked = new EventEmitter();
408
- }
409
- clickAction() {
410
- this.isClicked.emit(true);
411
- }
412
- }
413
- LevelButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
414
- 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: `
415
- <div [ngSwitch]="buttonActive">
416
- <button
417
- *ngSwitchCase="0"
418
- (click)="clickAction()"
419
- id="level"
420
- class="courses"
421
- >
422
- <p class="p-level">{{ level }}</p>
423
- </button>
424
-
425
- <button
426
- *ngSwitchCase="1"
427
- (click)="clickAction()"
428
- id="{{ idColor }}"
429
- class="courses">
430
- <p class="p-level p-level-active">{{ level }}</p>
431
- </button>
432
- </div>
433
- `, 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"] }] });
434
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelButtonComponent, decorators: [{
435
- type: Component,
436
- args: [{ selector: 'ipt-level-button', template: `
437
- <div [ngSwitch]="buttonActive">
438
- <button
439
- *ngSwitchCase="0"
440
- (click)="clickAction()"
441
- id="level"
442
- class="courses"
443
- >
444
- <p class="p-level">{{ level }}</p>
445
- </button>
446
-
447
- <button
448
- *ngSwitchCase="1"
449
- (click)="clickAction()"
450
- id="{{ idColor }}"
451
- class="courses">
452
- <p class="p-level p-level-active">{{ level }}</p>
453
- </button>
454
- </div>
455
- `, 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"] }]
456
- }], propDecorators: { level: [{
457
- type: Input
458
- }], buttonActive: [{
459
- type: Input
460
- }], idColor: [{
461
- type: Input
462
- }], isClicked: [{
463
- type: Output
406
+ class LevelButtonComponent {
407
+ constructor() {
408
+ this.isClicked = new EventEmitter();
409
+ }
410
+ clickAction() {
411
+ this.isClicked.emit(true);
412
+ }
413
+ }
414
+ LevelButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
415
+ 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: `
416
+ <div [ngSwitch]="buttonActive">
417
+ <button
418
+ *ngSwitchCase="0"
419
+ (click)="clickAction()"
420
+ id="level"
421
+ class="courses"
422
+ >
423
+ <p class="p-level">{{ level }}</p>
424
+ </button>
425
+
426
+ <button
427
+ *ngSwitchCase="1"
428
+ (click)="clickAction()"
429
+ id="{{ idColor }}"
430
+ class="courses">
431
+ <p class="p-level p-level-active">{{ level }}</p>
432
+ </button>
433
+ </div>
434
+ `, 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"] }] });
435
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelButtonComponent, decorators: [{
436
+ type: Component,
437
+ args: [{ selector: 'ipt-level-button', template: `
438
+ <div [ngSwitch]="buttonActive">
439
+ <button
440
+ *ngSwitchCase="0"
441
+ (click)="clickAction()"
442
+ id="level"
443
+ class="courses"
444
+ >
445
+ <p class="p-level">{{ level }}</p>
446
+ </button>
447
+
448
+ <button
449
+ *ngSwitchCase="1"
450
+ (click)="clickAction()"
451
+ id="{{ idColor }}"
452
+ class="courses">
453
+ <p class="p-level p-level-active">{{ level }}</p>
454
+ </button>
455
+ </div>
456
+ `, 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"] }]
457
+ }], propDecorators: { level: [{
458
+ type: Input
459
+ }], buttonActive: [{
460
+ type: Input
461
+ }], idColor: [{
462
+ type: Input
463
+ }], isClicked: [{
464
+ type: Output
464
465
  }] } });
465
466
 
466
- class LevelTextComponent {
467
- }
468
- LevelTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
469
- 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: `
470
- <p class="p-table-course">{{ level }}: {{ total }}</p>
471
- `, 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"] });
472
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelTextComponent, decorators: [{
473
- type: Component,
474
- args: [{ selector: 'ipt-level-button', template: `
475
- <p class="p-table-course">{{ level }}: {{ total }}</p>
476
- `, 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"] }]
477
- }], propDecorators: { level: [{
478
- type: Input
479
- }], total: [{
480
- type: Input
467
+ class LevelTextComponent {
468
+ }
469
+ LevelTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
470
+ 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: `
471
+ <p class="p-table-course">{{ level }}: {{ total }}</p>
472
+ `, 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"] });
473
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelTextComponent, decorators: [{
474
+ type: Component,
475
+ args: [{ selector: 'ipt-level-button', template: `
476
+ <p class="p-table-course">{{ level }}: {{ total }}</p>
477
+ `, 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"] }]
478
+ }], propDecorators: { level: [{
479
+ type: Input
480
+ }], total: [{
481
+ type: Input
481
482
  }] } });
482
483
 
483
- class LoaderComponent {
484
- constructor() {
485
- this.message = '';
486
- this.isDialog = false;
487
- }
488
- }
489
- LoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
490
- LoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LoaderComponent, selector: "ipt-loader", inputs: { message: "message", isDialog: "isDialog" }, ngImport: i0, template: `
491
- <div [ngClass]="{'dialog': isDialog}">
492
- <div [ngClass]="{'loader_container' : isDialog}">
493
- <span>{{ message }}</span>
494
- <div class="container">
495
- <div class="spinner">
496
- <div class="dot"></div>
497
- <div class="dot"></div>
498
- <div class="dot"></div>
499
- <div class="dot"></div>
500
- <div class="dot"></div>
501
- </div>
502
- </div>
503
- </div>
504
- </div>`, isInline: true, styles: [".dialog{background:rgba(0,0,0,.472);color:#fff;position:fixed;top:0;left:0;height:100vh;width:100vw;transition:all .5s;z-index:9999}.loader_container{height:-moz-fit-content;height:fit-content;width:-moz-fit-content;width:fit-content;position:absolute;inset:0;margin:auto;background-color:#fff;border-radius:6px;padding:1rem;z-index:9999}span{display:flex;justify-content:center;color:#1c77f7;font:bold;margin-bottom:1rem}.container{display:flex;justify-content:center}.spinner{width:60px;height:60px;position:relative}.spinner .dot{position:absolute;inset:0;display:flex;justify-content:center}.spinner .dot:after{content:\"\";width:7px;height:7px;border-radius:50%;background-color:#1c77f7}@keyframes spin{to{transform:rotate(360deg)}}.spinner .dot{animation:spin 2s infinite}.spinner .dot:nth-child(2){animation-delay:.1s}.spinner .dot:nth-child(3){animation-delay:.2s}.spinner .dot:nth-child(4){animation-delay:.3s}.spinner .dot:nth-child(5){animation-delay:.4s}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
505
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoaderComponent, decorators: [{
506
- type: Component,
507
- args: [{ selector: 'ipt-loader', template: `
508
- <div [ngClass]="{'dialog': isDialog}">
509
- <div [ngClass]="{'loader_container' : isDialog}">
510
- <span>{{ message }}</span>
511
- <div class="container">
512
- <div class="spinner">
513
- <div class="dot"></div>
514
- <div class="dot"></div>
515
- <div class="dot"></div>
516
- <div class="dot"></div>
517
- <div class="dot"></div>
518
- </div>
519
- </div>
520
- </div>
521
- </div>`, styles: [".dialog{background:rgba(0,0,0,.472);color:#fff;position:fixed;top:0;left:0;height:100vh;width:100vw;transition:all .5s;z-index:9999}.loader_container{height:-moz-fit-content;height:fit-content;width:-moz-fit-content;width:fit-content;position:absolute;inset:0;margin:auto;background-color:#fff;border-radius:6px;padding:1rem;z-index:9999}span{display:flex;justify-content:center;color:#1c77f7;font:bold;margin-bottom:1rem}.container{display:flex;justify-content:center}.spinner{width:60px;height:60px;position:relative}.spinner .dot{position:absolute;inset:0;display:flex;justify-content:center}.spinner .dot:after{content:\"\";width:7px;height:7px;border-radius:50%;background-color:#1c77f7}@keyframes spin{to{transform:rotate(360deg)}}.spinner .dot{animation:spin 2s infinite}.spinner .dot:nth-child(2){animation-delay:.1s}.spinner .dot:nth-child(3){animation-delay:.2s}.spinner .dot:nth-child(4){animation-delay:.3s}.spinner .dot:nth-child(5){animation-delay:.4s}\n"] }]
522
- }], propDecorators: { message: [{
523
- type: Input
524
- }], isDialog: [{
525
- type: Input
484
+ class LoaderComponent {
485
+ constructor() {
486
+ this.message = '';
487
+ this.isDialog = false;
488
+ }
489
+ }
490
+ LoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
491
+ LoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LoaderComponent, selector: "ipt-loader", inputs: { message: "message", isDialog: "isDialog" }, ngImport: i0, template: `
492
+ <div [ngClass]="{'dialog': isDialog}">
493
+ <div [ngClass]="{'loader_container' : isDialog}">
494
+ <span>{{ message }}</span>
495
+ <div class="container">
496
+ <div class="spinner">
497
+ <div class="dot"></div>
498
+ <div class="dot"></div>
499
+ <div class="dot"></div>
500
+ <div class="dot"></div>
501
+ <div class="dot"></div>
502
+ </div>
503
+ </div>
504
+ </div>
505
+ </div>`, isInline: true, styles: [".dialog{background:rgba(0,0,0,.472);color:#fff;position:fixed;top:0;left:0;height:100vh;width:100vw;transition:all .5s;z-index:9999}.loader_container{height:-moz-fit-content;height:fit-content;width:-moz-fit-content;width:fit-content;position:absolute;inset:0;margin:auto;background-color:#fff;border-radius:6px;padding:1rem;z-index:9999}span{display:flex;justify-content:center;color:#1c77f7;font:bold;margin-bottom:1rem}.container{display:flex;justify-content:center}.spinner{width:60px;height:60px;position:relative}.spinner .dot{position:absolute;inset:0;display:flex;justify-content:center}.spinner .dot:after{content:\"\";width:7px;height:7px;border-radius:50%;background-color:#1c77f7}@keyframes spin{to{transform:rotate(360deg)}}.spinner .dot{animation:spin 2s infinite}.spinner .dot:nth-child(2){animation-delay:.1s}.spinner .dot:nth-child(3){animation-delay:.2s}.spinner .dot:nth-child(4){animation-delay:.3s}.spinner .dot:nth-child(5){animation-delay:.4s}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
506
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoaderComponent, decorators: [{
507
+ type: Component,
508
+ args: [{ selector: 'ipt-loader', template: `
509
+ <div [ngClass]="{'dialog': isDialog}">
510
+ <div [ngClass]="{'loader_container' : isDialog}">
511
+ <span>{{ message }}</span>
512
+ <div class="container">
513
+ <div class="spinner">
514
+ <div class="dot"></div>
515
+ <div class="dot"></div>
516
+ <div class="dot"></div>
517
+ <div class="dot"></div>
518
+ <div class="dot"></div>
519
+ </div>
520
+ </div>
521
+ </div>
522
+ </div>`, styles: [".dialog{background:rgba(0,0,0,.472);color:#fff;position:fixed;top:0;left:0;height:100vh;width:100vw;transition:all .5s;z-index:9999}.loader_container{height:-moz-fit-content;height:fit-content;width:-moz-fit-content;width:fit-content;position:absolute;inset:0;margin:auto;background-color:#fff;border-radius:6px;padding:1rem;z-index:9999}span{display:flex;justify-content:center;color:#1c77f7;font:bold;margin-bottom:1rem}.container{display:flex;justify-content:center}.spinner{width:60px;height:60px;position:relative}.spinner .dot{position:absolute;inset:0;display:flex;justify-content:center}.spinner .dot:after{content:\"\";width:7px;height:7px;border-radius:50%;background-color:#1c77f7}@keyframes spin{to{transform:rotate(360deg)}}.spinner .dot{animation:spin 2s infinite}.spinner .dot:nth-child(2){animation-delay:.1s}.spinner .dot:nth-child(3){animation-delay:.2s}.spinner .dot:nth-child(4){animation-delay:.3s}.spinner .dot:nth-child(5){animation-delay:.4s}\n"] }]
523
+ }], propDecorators: { message: [{
524
+ type: Input
525
+ }], isDialog: [{
526
+ type: Input
526
527
  }] } });
527
528
 
528
- class RadioComponent {
529
- constructor() {
530
- this.radioOption = false;
531
- this.onSelected = new EventEmitter();
532
- }
533
- set control(value) {
534
- if (this.formControl !== value) {
535
- this.formControl = value;
536
- }
537
- }
538
- }
539
- RadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
540
- 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: `
541
- <label class="cont">
542
- <input
543
- class="radio"
544
- [formControl]="formControl"
545
- [checked]="radioOption"
546
- (click)="onSelected.emit($event)"
547
- type="radio">
548
- <span></span>
549
- </label>
550
- `, 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"] }] });
551
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, decorators: [{
552
- type: Component,
553
- args: [{ selector: 'ipt-radio', template: `
554
- <label class="cont">
555
- <input
556
- class="radio"
557
- [formControl]="formControl"
558
- [checked]="radioOption"
559
- (click)="onSelected.emit($event)"
560
- type="radio">
561
- <span></span>
562
- </label>
563
- `, styles: [""] }]
564
- }], propDecorators: { radioOption: [{
565
- type: Input
566
- }], control: [{
567
- type: Input
568
- }], onSelected: [{
569
- type: Output
529
+ class RadioComponent {
530
+ constructor() {
531
+ this.radioOption = false;
532
+ this.onSelected = new EventEmitter();
533
+ }
534
+ set control(value) {
535
+ if (this.formControl !== value) {
536
+ this.formControl = value;
537
+ }
538
+ }
539
+ }
540
+ RadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
541
+ 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: `
542
+ <label class="cont">
543
+ <input
544
+ class="radio"
545
+ [formControl]="formControl"
546
+ [checked]="radioOption"
547
+ (click)="onSelected.emit($event)"
548
+ type="radio">
549
+ <span></span>
550
+ </label>
551
+ `, 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"] }] });
552
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, decorators: [{
553
+ type: Component,
554
+ args: [{ selector: 'ipt-radio', template: `
555
+ <label class="cont">
556
+ <input
557
+ class="radio"
558
+ [formControl]="formControl"
559
+ [checked]="radioOption"
560
+ (click)="onSelected.emit($event)"
561
+ type="radio">
562
+ <span></span>
563
+ </label>
564
+ `, styles: [""] }]
565
+ }], propDecorators: { radioOption: [{
566
+ type: Input
567
+ }], control: [{
568
+ type: Input
569
+ }], onSelected: [{
570
+ type: Output
570
571
  }] } });
571
572
 
572
- class SelectComponent {
573
- constructor() {
574
- this.boxShadow = 0;
575
- this.clicked = false;
576
- this.disabledSel = false;
577
- this.eventSelect = new EventEmitter();
578
- }
579
- // type viene de otro componente -> indica de que tipo es el arreglo si pregrade, posgrade o modo
580
- set control(value) {
581
- if (this.formControl !== value) {
582
- this.formControl = value;
583
- }
584
- }
585
- ngOnChanges(changes) {
586
- if (changes['data']) {
587
- this.binding = this.defaultText;
588
- }
589
- }
590
- seleccionar(evt) {
591
- if (this.eventSelect.emit(evt) !== this.defaultText) {
592
- this.boxShadow = 1;
593
- }
594
- else {
595
- this.boxShadow = 2;
596
- }
597
- }
598
- click(value) {
599
- this.clicked = value.isTrusted;
600
- }
601
- ngOnInit() {
602
- this.binding = this.defaultText;
603
- }
604
- get textClass() {
605
- return this.defaultText === '' ? 'selected' : 'select';
606
- }
607
- get labelClass() {
608
- return this.clicked === false ? 'label' : 'labelUp';
609
- }
610
- }
611
- SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
612
- 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: `
613
- <div class="select-container">
614
- <label [ngClass]="labelClass">{{ defaultText }}</label>
615
- <select
616
- [(ngModel)]="binding"
617
- (ngModelChange)="seleccionar($event)"
618
- (click)="click($event)"
619
- [ngClass]="textClass"
620
- [disabled]="disabledSel">
621
- <option *ngFor="let item of data; index as i" [value]="item.code">
622
- {{ item.name }} {{ item.prefix }}
623
- </option>
624
- </select>
625
- </div>
626
- `, 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"] }] });
627
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, decorators: [{
628
- type: Component,
629
- args: [{ selector: 'ipt-select', template: `
630
- <div class="select-container">
631
- <label [ngClass]="labelClass">{{ defaultText }}</label>
632
- <select
633
- [(ngModel)]="binding"
634
- (ngModelChange)="seleccionar($event)"
635
- (click)="click($event)"
636
- [ngClass]="textClass"
637
- [disabled]="disabledSel">
638
- <option *ngFor="let item of data; index as i" [value]="item.code">
639
- {{ item.name }} {{ item.prefix }}
640
- </option>
641
- </select>
642
- </div>
643
- `, 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"] }]
644
- }], propDecorators: { isRequired: [{
645
- type: Input
646
- }], data: [{
647
- type: Input
648
- }], defaultText: [{
649
- type: Input
650
- }], selectCode: [{
651
- type: Input
652
- }], disabledSel: [{
653
- type: Input
654
- }], eventSelect: [{
655
- type: Output
656
- }], control: [{
657
- type: Input
573
+ class SelectComponent {
574
+ constructor() {
575
+ this.boxShadow = 0;
576
+ this.clicked = false;
577
+ this.disabledSel = false;
578
+ this.eventSelect = new EventEmitter();
579
+ }
580
+ // type viene de otro componente -> indica de que tipo es el arreglo si pregrade, posgrade o modo
581
+ set control(value) {
582
+ if (this.formControl !== value) {
583
+ this.formControl = value;
584
+ }
585
+ }
586
+ ngOnChanges(changes) {
587
+ if (changes['data']) {
588
+ this.binding = this.defaultText;
589
+ }
590
+ }
591
+ seleccionar(evt) {
592
+ if (this.eventSelect.emit(evt) !== this.defaultText) {
593
+ this.boxShadow = 1;
594
+ }
595
+ else {
596
+ this.boxShadow = 2;
597
+ }
598
+ }
599
+ click(value) {
600
+ this.clicked = value.isTrusted;
601
+ }
602
+ ngOnInit() {
603
+ this.binding = this.defaultText;
604
+ }
605
+ get textClass() {
606
+ return this.defaultText === '' ? 'selected' : 'select';
607
+ }
608
+ get labelClass() {
609
+ return this.clicked === false ? 'label' : 'labelUp';
610
+ }
611
+ }
612
+ SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
613
+ 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: `
614
+ <div class="select-container">
615
+ <label [ngClass]="labelClass">{{ defaultText }}</label>
616
+ <select
617
+ [(ngModel)]="binding"
618
+ (ngModelChange)="seleccionar($event)"
619
+ (click)="click($event)"
620
+ [ngClass]="textClass"
621
+ [disabled]="disabledSel">
622
+ <option *ngFor="let item of data; index as i" [value]="item.code">
623
+ {{ item.name }} {{ item.prefix }}
624
+ </option>
625
+ </select>
626
+ </div>
627
+ `, 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"] }] });
628
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, decorators: [{
629
+ type: Component,
630
+ args: [{ selector: 'ipt-select', template: `
631
+ <div class="select-container">
632
+ <label [ngClass]="labelClass">{{ defaultText }}</label>
633
+ <select
634
+ [(ngModel)]="binding"
635
+ (ngModelChange)="seleccionar($event)"
636
+ (click)="click($event)"
637
+ [ngClass]="textClass"
638
+ [disabled]="disabledSel">
639
+ <option *ngFor="let item of data; index as i" [value]="item.code">
640
+ {{ item.name }} {{ item.prefix }}
641
+ </option>
642
+ </select>
643
+ </div>
644
+ `, 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"] }]
645
+ }], propDecorators: { isRequired: [{
646
+ type: Input
647
+ }], data: [{
648
+ type: Input
649
+ }], defaultText: [{
650
+ type: Input
651
+ }], selectCode: [{
652
+ type: Input
653
+ }], disabledSel: [{
654
+ type: Input
655
+ }], eventSelect: [{
656
+ type: Output
657
+ }], control: [{
658
+ type: Input
658
659
  }] } });
659
660
 
660
- class TextLinkComponent {
661
- constructor() {
662
- this.isClicked = new EventEmitter();
663
- }
664
- isLinkClicked() {
665
- this.isClicked.emit(true);
666
- }
667
- }
668
- TextLinkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
669
- 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: `
670
- <a class="text-link" (click)='isLinkClicked()'>
671
- <p class="text-link__paragraph">
672
- <i class="{{icon}}" aria-hidden="true"></i>
673
- {{text}}
674
- </p>
675
- </a>
676
- `, 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"] });
677
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, decorators: [{
678
- type: Component,
679
- args: [{ selector: 'ipt-text-link', template: `
680
- <a class="text-link" (click)='isLinkClicked()'>
681
- <p class="text-link__paragraph">
682
- <i class="{{icon}}" aria-hidden="true"></i>
683
- {{text}}
684
- </p>
685
- </a>
686
- `, 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"] }]
687
- }], ctorParameters: function () { return []; }, propDecorators: { text: [{
688
- type: Input
689
- }], blank: [{
690
- type: Input
691
- }], icon: [{
692
- type: Input
693
- }], isClicked: [{
694
- type: Output
661
+ class TextLinkComponent {
662
+ constructor() {
663
+ this.isClicked = new EventEmitter();
664
+ }
665
+ isLinkClicked() {
666
+ this.isClicked.emit(true);
667
+ }
668
+ }
669
+ TextLinkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
670
+ 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: `
671
+ <a class="text-link" (click)='isLinkClicked()'>
672
+ <p class="text-link__paragraph">
673
+ <i class="{{icon}}" aria-hidden="true"></i>
674
+ {{text}}
675
+ </p>
676
+ </a>
677
+ `, 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"] });
678
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, decorators: [{
679
+ type: Component,
680
+ args: [{ selector: 'ipt-text-link', template: `
681
+ <a class="text-link" (click)='isLinkClicked()'>
682
+ <p class="text-link__paragraph">
683
+ <i class="{{icon}}" aria-hidden="true"></i>
684
+ {{text}}
685
+ </p>
686
+ </a>
687
+ `, 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"] }]
688
+ }], ctorParameters: function () { return []; }, propDecorators: { text: [{
689
+ type: Input
690
+ }], blank: [{
691
+ type: Input
692
+ }], icon: [{
693
+ type: Input
694
+ }], isClicked: [{
695
+ type: Output
695
696
  }] } });
696
697
 
697
- class UserService {
698
- constructor(http) {
699
- this.http = http;
700
- this.SERVICE_URL = 'https://iptdev.com.co/lab/users/api/';
701
- }
702
- login(userLogin) {
703
- let serviceUrl = this.SERVICE_URL + 'post/login';
704
- this.generateRequestParams(userLogin);
705
- return this.http.post(serviceUrl, this.httpOptions);
706
- }
707
- resetPassword(resetPassword) {
708
- let serviceUrl = this.SERVICE_URL + 'reset/password';
709
- this.generateRequestParams(resetPassword);
710
- return this.http.post(serviceUrl, this.httpOptions);
711
- }
712
- register(user) {
713
- let serviceUrl = this.SERVICE_URL + 'post/create/web';
714
- this.generateRequestParams(user);
715
- return this.http.post(serviceUrl, this.httpOptions);
716
- }
717
- registerIndex(register) {
718
- let serviceUrl = this.SERVICE_URL + 'post/create/marketing';
719
- this.generateRequestParams(register);
720
- return this.http.post(serviceUrl, this.httpOptions);
721
- }
722
- registerDashboard(user) {
723
- let serviceUrl = this.SERVICE_URL + 'post/create/dashboard';
724
- this.generateRequestParams(user);
725
- return this.http.post(serviceUrl, this.httpOptions);
726
- }
727
- getAvailableTeachers(token) {
728
- let serviceUrl = this.SERVICE_URL + 'post/obtain/teachers';
729
- this.generateRequestParams(token);
730
- return this.http.post(serviceUrl, this.httpOptions);
731
- }
732
- getAllAdvisor(userToken) {
733
- let serviceUrl = this.SERVICE_URL + 'post/obtain/all/user/commercial';
734
- this.generateRequestParams(userToken);
735
- return this.http.post(serviceUrl, this.httpOptions);
736
- }
737
- getByRoleUser(codeRole) {
738
- let serviceUrl = this.SERVICE_URL + 'get/obtain/by/role/user/' + codeRole;
739
- return this.http.get(serviceUrl);
740
- }
741
- getUserStatistics(userToken) {
742
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
743
- this.generateRequestParams(userToken);
744
- return this.http.post(serviceUrl, this.httpOptions);
745
- }
746
- getRoutesForRole(token) {
747
- let serviceUrl = this.SERVICE_URL + 'post/routes/role';
748
- this.generateRequestParams(token);
749
- return this.http.post(serviceUrl, this.httpOptions);
750
- }
751
- getStudents(token) {
752
- let serviceUrl = this.SERVICE_URL + 'post/obtain/students';
753
- this.generateRequestParams(token);
754
- return this.http.post(serviceUrl, this.httpOptions);
755
- }
756
- getStudent(token) {
757
- let serviceUrl = this.SERVICE_URL + 'post/obtain/student';
758
- this.generateRequestParams(token);
759
- return this.http.post(serviceUrl, this.httpOptions);
760
- }
761
- generateRequestParams(param) {
762
- this.httpOptions = {
763
- header: new HttpHeaders(),
764
- params: param,
765
- };
766
- }
767
- }
768
- 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 });
769
- UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, providedIn: 'root' });
770
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, decorators: [{
771
- type: Injectable,
772
- args: [{
773
- providedIn: 'root',
774
- }]
698
+ class UserService {
699
+ constructor(http) {
700
+ this.http = http;
701
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/users/api/';
702
+ }
703
+ login(userLogin) {
704
+ let serviceUrl = this.SERVICE_URL + 'post/login';
705
+ this.generateRequestParams(userLogin);
706
+ return this.http.post(serviceUrl, this.httpOptions);
707
+ }
708
+ resetPassword(resetPassword) {
709
+ let serviceUrl = this.SERVICE_URL + 'reset/password';
710
+ this.generateRequestParams(resetPassword);
711
+ return this.http.post(serviceUrl, this.httpOptions);
712
+ }
713
+ register(user) {
714
+ let serviceUrl = this.SERVICE_URL + 'post/create/web';
715
+ this.generateRequestParams(user);
716
+ return this.http.post(serviceUrl, this.httpOptions);
717
+ }
718
+ registerIndex(register) {
719
+ let serviceUrl = this.SERVICE_URL + 'post/create/marketing';
720
+ this.generateRequestParams(register);
721
+ return this.http.post(serviceUrl, this.httpOptions);
722
+ }
723
+ registerDashboard(user) {
724
+ let serviceUrl = this.SERVICE_URL + 'post/create/dashboard';
725
+ this.generateRequestParams(user);
726
+ return this.http.post(serviceUrl, this.httpOptions);
727
+ }
728
+ getAvailableTeachers(token) {
729
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/teachers';
730
+ this.generateRequestParams(token);
731
+ return this.http.post(serviceUrl, this.httpOptions);
732
+ }
733
+ getAllAdvisor(userToken) {
734
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/all/user/commercial';
735
+ this.generateRequestParams(userToken);
736
+ return this.http.post(serviceUrl, this.httpOptions);
737
+ }
738
+ getByRoleUser(codeRole) {
739
+ let serviceUrl = this.SERVICE_URL + 'get/obtain/by/role/user/' + codeRole;
740
+ return this.http.get(serviceUrl);
741
+ }
742
+ getUserStatistics(userToken) {
743
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
744
+ this.generateRequestParams(userToken);
745
+ return this.http.post(serviceUrl, this.httpOptions);
746
+ }
747
+ getRoutesForRole(token) {
748
+ let serviceUrl = this.SERVICE_URL + 'post/routes/role';
749
+ this.generateRequestParams(token);
750
+ return this.http.post(serviceUrl, this.httpOptions);
751
+ }
752
+ getStudents(token) {
753
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/students';
754
+ this.generateRequestParams(token);
755
+ return this.http.post(serviceUrl, this.httpOptions);
756
+ }
757
+ getStudent(token) {
758
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/student';
759
+ this.generateRequestParams(token);
760
+ return this.http.post(serviceUrl, this.httpOptions);
761
+ }
762
+ generateRequestParams(param) {
763
+ this.httpOptions = {
764
+ header: new HttpHeaders(),
765
+ params: param,
766
+ };
767
+ }
768
+ }
769
+ 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 });
770
+ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, providedIn: 'root' });
771
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, decorators: [{
772
+ type: Injectable,
773
+ args: [{
774
+ providedIn: 'root',
775
+ }]
775
776
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
776
777
 
777
- class StorageService {
778
- constructor() {
779
- this.currentSession = null;
780
- this.localStorageService = localStorage;
781
- this.currentSession = this.loadSessionData();
782
- }
783
- setCurrentSession(session) {
784
- this.currentSession = session;
785
- this.localStorageService.setItem('606a7d4e73650b75ebb06972e77d6cc4', JSON.stringify(session));
786
- }
787
- loadSessionData() {
788
- var sessionStr = this.localStorageService.getItem('606a7d4e73650b75ebb06972e77d6cc4');
789
- return (sessionStr) ? JSON.parse(sessionStr) : null;
790
- }
791
- getCurrentSession() {
792
- return this.currentSession;
793
- }
794
- removeCurrentSession() {
795
- this.localStorageService.removeItem('606a7d4e73650b75ebb06972e77d6cc4');
796
- this.currentSession = null;
797
- }
798
- getCurrentUser() {
799
- var session = this.getCurrentSession();
800
- return (session && session.user) ? session.user : null;
801
- }
802
- ;
803
- isAuthenticated() {
804
- return (this.getCurrentToken() != null) ? true : false;
805
- }
806
- ;
807
- getCurrentToken() {
808
- var session = this.getCurrentSession();
809
- return (session && session.token) ? session.token : null;
810
- }
811
- ;
812
- logout() {
813
- this.removeCurrentSession();
814
- }
815
- }
816
- StorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
817
- StorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, providedIn: 'root' });
818
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, decorators: [{
819
- type: Injectable,
820
- args: [{
821
- providedIn: 'root',
822
- }]
778
+ class StorageService {
779
+ constructor() {
780
+ this.currentSession = null;
781
+ this.localStorageService = localStorage;
782
+ this.currentSession = this.loadSessionData();
783
+ }
784
+ setCurrentSession(session) {
785
+ this.currentSession = session;
786
+ this.localStorageService.setItem('606a7d4e73650b75ebb06972e77d6cc4', JSON.stringify(session));
787
+ }
788
+ loadSessionData() {
789
+ var sessionStr = this.localStorageService.getItem('606a7d4e73650b75ebb06972e77d6cc4');
790
+ return (sessionStr) ? JSON.parse(sessionStr) : null;
791
+ }
792
+ getCurrentSession() {
793
+ return this.currentSession;
794
+ }
795
+ removeCurrentSession() {
796
+ this.localStorageService.removeItem('606a7d4e73650b75ebb06972e77d6cc4');
797
+ this.currentSession = null;
798
+ }
799
+ getCurrentUser() {
800
+ var session = this.getCurrentSession();
801
+ return (session && session.user) ? session.user : null;
802
+ }
803
+ ;
804
+ isAuthenticated() {
805
+ return (this.getCurrentToken() != null) ? true : false;
806
+ }
807
+ ;
808
+ getCurrentToken() {
809
+ var session = this.getCurrentSession();
810
+ return (session && session.token) ? session.token : null;
811
+ }
812
+ ;
813
+ logout() {
814
+ this.removeCurrentSession();
815
+ }
816
+ }
817
+ StorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
818
+ StorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, providedIn: 'root' });
819
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, decorators: [{
820
+ type: Injectable,
821
+ args: [{
822
+ providedIn: 'root',
823
+ }]
823
824
  }], ctorParameters: function () { return []; } });
824
825
 
825
- class CalendarService {
826
- constructor(http) {
827
- this.http = http;
828
- this.SERVICE_URL = 'https://iptdev.com.co/lab/calendar/api/';
829
- }
830
- postCreateQueryEvent(params) {
831
- let serviceUrl = this.SERVICE_URL + 'post/event/create/query';
832
- this.generateRequestParams(params);
833
- return this.http.post(serviceUrl, this.httpOptions);
834
- }
835
- getEventByIdCalendar(idCalendar) {
836
- let serviceUrl = this.SERVICE_URL + 'get/event/calendar/idcalendar/all/' + idCalendar;
837
- return this.http.get(serviceUrl);
838
- }
839
- postEventByDayTime(params) {
840
- let serviceUrl = this.SERVICE_URL + 'post/event/calendar/idcalendar/by/datetime';
841
- this.generateRequestParams(params);
842
- return this.http.post(serviceUrl, this.httpOptions);
843
- }
844
- getEventsByCourse(params) {
845
- let serviceUrl = this.SERVICE_URL + 'post/event/calendar/idcalendar/by/course';
846
- this.generateRequestParams(params);
847
- return this.http.post(serviceUrl, this.httpOptions);
848
- }
849
- getEventByDateTime(params) {
850
- let serviceUrl = this.SERVICE_URL + 'post/event/calendar/idcalendar/by/datetime';
851
- this.generateRequestParams(params);
852
- return this.http.post(serviceUrl, this.httpOptions);
853
- }
854
- getAvailability(params) {
855
- let serviceUrl = this.SERVICE_URL + 'post/event/create/query';
856
- this.generateRequestParams(params);
857
- return this.http.post(serviceUrl, this.httpOptions);
858
- }
859
- addNewEvent(params) {
860
- let serviceUrl = this.SERVICE_URL + 'post/add/event/calendar/by/daytime';
861
- this.generateRequestParams(params);
862
- return this.http.post(serviceUrl, this.httpOptions);
863
- }
864
- generateRequestParams(param) {
865
- this.httpOptions = {
866
- header: new HttpHeaders(),
867
- params: param,
868
- };
869
- }
870
- }
871
- 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 });
872
- CalendarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, providedIn: 'root' });
873
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, decorators: [{
874
- type: Injectable,
875
- args: [{
876
- providedIn: 'root',
877
- }]
826
+ class CalendarService {
827
+ constructor(http) {
828
+ this.http = http;
829
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/calendar/api/';
830
+ }
831
+ postCreateQueryEvent(params) {
832
+ let serviceUrl = this.SERVICE_URL + 'post/event/create/query';
833
+ this.generateRequestParams(params);
834
+ return this.http.post(serviceUrl, this.httpOptions);
835
+ }
836
+ getEventByIdCalendar(idCalendar) {
837
+ let serviceUrl = this.SERVICE_URL + 'get/event/calendar/idcalendar/all/' + idCalendar;
838
+ return this.http.get(serviceUrl);
839
+ }
840
+ postEventByDayTime(params) {
841
+ let serviceUrl = this.SERVICE_URL + 'post/event/calendar/idcalendar/by/datetime';
842
+ this.generateRequestParams(params);
843
+ return this.http.post(serviceUrl, this.httpOptions);
844
+ }
845
+ getEventsByCourse(params) {
846
+ let serviceUrl = this.SERVICE_URL + 'post/event/calendar/idcalendar/by/course';
847
+ this.generateRequestParams(params);
848
+ return this.http.post(serviceUrl, this.httpOptions);
849
+ }
850
+ getEventByDateTime(params) {
851
+ let serviceUrl = this.SERVICE_URL + 'post/event/calendar/idcalendar/by/datetime';
852
+ this.generateRequestParams(params);
853
+ return this.http.post(serviceUrl, this.httpOptions);
854
+ }
855
+ getAvailability(params) {
856
+ let serviceUrl = this.SERVICE_URL + 'post/event/create/query';
857
+ this.generateRequestParams(params);
858
+ return this.http.post(serviceUrl, this.httpOptions);
859
+ }
860
+ addNewEvent(params) {
861
+ let serviceUrl = this.SERVICE_URL + 'post/add/event/calendar/by/daytime';
862
+ this.generateRequestParams(params);
863
+ return this.http.post(serviceUrl, this.httpOptions);
864
+ }
865
+ generateRequestParams(param) {
866
+ this.httpOptions = {
867
+ header: new HttpHeaders(),
868
+ params: param,
869
+ };
870
+ }
871
+ }
872
+ 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 });
873
+ CalendarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, providedIn: 'root' });
874
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, decorators: [{
875
+ type: Injectable,
876
+ args: [{
877
+ providedIn: 'root',
878
+ }]
878
879
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
879
880
 
880
- class BaseService {
881
- constructor(userService, storageService, calendarService) {
882
- this.userService = userService;
883
- this.storageService = storageService;
884
- this.calendarService = calendarService;
885
- }
886
- webLogin(user, password) {
887
- let request = {
888
- user: user,
889
- password: password
890
- };
891
- let service = this.userService;
892
- let storage = this.storageService;
893
- return new Promise(function (resolve, reject) {
894
- service.login(request).subscribe(response => {
895
- switch (response.message.code) {
896
- case 1:
897
- Swal.fire({
898
- 'title': '<p style="font-family: Poppins"">Perfect!</p>',
899
- 'html': '<p style="font-family: Poppins"">Succesfull login</p>',
900
- 'icon': 'success',
901
- });
902
- const loginRegisterUser = {
903
- token: response.data.token,
904
- user: response.data,
905
- };
906
- storage.setCurrentSession(loginRegisterUser);
907
- resolve(true);
908
- break;
909
- case 2:
910
- Swal.fire({
911
- 'title': '<p style="font-family: Poppins"">Warning!</p>',
912
- 'html': '<p style="font-family: Poppins"">The data does not correspond to a user registered in our system, please review them.</p>',
913
- 'icon': 'warning',
914
- });
915
- resolve(false);
916
- break;
917
- case 3:
918
- Swal.fire({
919
- 'title': '<p style="font-family: Poppins"">Error!</p>',
920
- 'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
921
- 'icon': 'error',
922
- });
923
- resolve(false);
924
- break;
925
- default:
926
- Swal.fire({
927
- 'title': '<p style="font-family: Poppins"">Error!</p>',
928
- 'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
929
- 'icon': 'error',
930
- });
931
- resolve(false);
932
- break;
933
- }
934
- reject('Unhandled exception');
935
- });
936
- });
937
- }
938
- getCronogramAvailability(isTeacher, code, startDate, numClass, weekDays, startTime, endTime) {
939
- let request = {
940
- isTeacher: isTeacher,
941
- code: code,
942
- startDate: startDate,
943
- numClass: numClass,
944
- weekDays: weekDays,
945
- startTime: startTime,
946
- endTime: endTime,
947
- };
948
- let service = this.calendarService;
949
- return new Promise(function (resolve, reject) {
950
- service.postCreateQueryEvent(request).subscribe((response) => {
951
- switch (response.message.code) {
952
- case 1:
953
- resolve(response.data);
954
- break;
955
- default:
956
- reject('Unhandled exception');
957
- }
958
- reject('Unhandled exception');
959
- });
960
- });
961
- }
962
- getUserRole() {
963
- let user = this.storageService.getCurrentUser()?.role;
964
- return user === undefined ? -1 : user;
965
- }
966
- getUserToken() {
967
- let token = this.storageService.getCurrentUser()?.token;
968
- return token === undefined ? '-1' : token;
969
- }
970
- getUserName() {
971
- let user = this.storageService.getCurrentUser();
972
- let response = user === null ? '' : user.name;
973
- return response;
974
- }
975
- registerUserFromDashboard(registerDashboardRq) {
976
- let request = registerDashboardRq;
977
- let service = this.userService;
978
- return new Promise(function (resolve, reject) {
979
- service.registerDashboard(request).subscribe((response) => {
980
- switch (response.message.code) {
981
- case 1:
982
- Swal.fire({
983
- 'title': '<p style="font-family: Poppins"">Perfect!</p>',
984
- 'html': '<p style="font-family: Poppins"">Sucesfull register!</p>',
985
- 'icon': 'success',
986
- });
987
- resolve(true);
988
- break;
989
- case 3:
990
- Swal.fire({
991
- 'title': '<p style="font-family: Poppins"">Error!</p>',
992
- 'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
993
- 'icon': 'error',
994
- });
995
- resolve(false);
996
- break;
997
- case 4:
998
- Swal.fire({
999
- 'title': '<p style="font-family: Poppins">Ups!</p>',
1000
- 'html': '<p style="font-family: Poppins">The input data has a high relation with a user that already exists!</p>',
1001
- 'icon': 'warning',
1002
- });
1003
- resolve(false);
1004
- break;
1005
- default:
1006
- Swal.fire({
1007
- 'title': '<p style="font-family: Poppins"">Error!</p>',
1008
- 'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
1009
- 'icon': 'error',
1010
- });
1011
- resolve(false);
1012
- break;
1013
- }
1014
- reject('Unhandled exception');
1015
- });
1016
- });
1017
- }
1018
- jsonToArray(data) {
1019
- var response = [];
1020
- data.forEach((element) => {
1021
- var object = [];
1022
- for (var clave in element) {
1023
- if (element.hasOwnProperty(clave)) {
1024
- if (typeof element[clave] == 'object') {
1025
- element[clave] = this.subJsonToArray(element[clave]);
1026
- }
1027
- object.push(element[clave]);
1028
- }
1029
- }
1030
- response.push(object);
1031
- });
1032
- return response;
1033
- }
1034
- subJsonToArray(data) {
1035
- var object = '';
1036
- for (var clave in data) {
1037
- if (clave != 'code') {
1038
- object += '\n' + data[clave];
1039
- }
1040
- }
1041
- return object;
1042
- }
1043
- }
1044
- BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, deps: [{ token: UserService }, { token: StorageService }, { token: CalendarService }], target: i0.ɵɵFactoryTarget.Injectable });
1045
- BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, providedIn: 'root' });
1046
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, decorators: [{
1047
- type: Injectable,
1048
- args: [{
1049
- providedIn: 'root',
1050
- }]
881
+ class BaseService {
882
+ constructor(userService, storageService, calendarService) {
883
+ this.userService = userService;
884
+ this.storageService = storageService;
885
+ this.calendarService = calendarService;
886
+ }
887
+ webLogin(user, password) {
888
+ let request = {
889
+ user: user,
890
+ password: password
891
+ };
892
+ let service = this.userService;
893
+ let storage = this.storageService;
894
+ return new Promise(function (resolve, reject) {
895
+ service.login(request).subscribe(response => {
896
+ switch (response.message.code) {
897
+ case 1:
898
+ Swal.fire({
899
+ 'title': '<p style="font-family: Poppins"">Perfect!</p>',
900
+ 'html': '<p style="font-family: Poppins"">Succesfull login</p>',
901
+ 'icon': 'success',
902
+ });
903
+ const loginRegisterUser = {
904
+ token: response.data.token,
905
+ user: response.data,
906
+ };
907
+ storage.setCurrentSession(loginRegisterUser);
908
+ resolve(true);
909
+ break;
910
+ case 2:
911
+ Swal.fire({
912
+ 'title': '<p style="font-family: Poppins"">Warning!</p>',
913
+ 'html': '<p style="font-family: Poppins"">The data does not correspond to a user registered in our system, please review them.</p>',
914
+ 'icon': 'warning',
915
+ });
916
+ resolve(false);
917
+ break;
918
+ case 3:
919
+ Swal.fire({
920
+ 'title': '<p style="font-family: Poppins"">Error!</p>',
921
+ 'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
922
+ 'icon': 'error',
923
+ });
924
+ resolve(false);
925
+ break;
926
+ default:
927
+ Swal.fire({
928
+ 'title': '<p style="font-family: Poppins"">Error!</p>',
929
+ 'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
930
+ 'icon': 'error',
931
+ });
932
+ resolve(false);
933
+ break;
934
+ }
935
+ reject('Unhandled exception');
936
+ });
937
+ });
938
+ }
939
+ getCronogramAvailability(isTeacher, code, startDate, numClass, weekDays, startTime, endTime) {
940
+ let request = {
941
+ isTeacher: isTeacher,
942
+ code: code,
943
+ startDate: startDate,
944
+ numClass: numClass,
945
+ weekDays: weekDays,
946
+ startTime: startTime,
947
+ endTime: endTime,
948
+ };
949
+ let service = this.calendarService;
950
+ return new Promise(function (resolve, reject) {
951
+ service.postCreateQueryEvent(request).subscribe((response) => {
952
+ switch (response.message.code) {
953
+ case 1:
954
+ resolve(response.data);
955
+ break;
956
+ default:
957
+ reject('Unhandled exception');
958
+ }
959
+ reject('Unhandled exception');
960
+ });
961
+ });
962
+ }
963
+ isAnAppUser() {
964
+ const userAgent = window.navigator.userAgent;
965
+ return userAgent.includes('Flutter IPT APP');
966
+ }
967
+ getUserRole() {
968
+ let user = this.storageService.getCurrentUser()?.role;
969
+ return user === undefined ? -1 : user;
970
+ }
971
+ getUserToken() {
972
+ let token = this.storageService.getCurrentUser()?.token;
973
+ return token === undefined ? '-1' : token;
974
+ }
975
+ getUserName() {
976
+ let user = this.storageService.getCurrentUser();
977
+ let response = user === null ? '' : user.name;
978
+ return response;
979
+ }
980
+ registerUserFromDashboard(registerDashboardRq) {
981
+ let request = registerDashboardRq;
982
+ let service = this.userService;
983
+ return new Promise(function (resolve, reject) {
984
+ service.registerDashboard(request).subscribe((response) => {
985
+ switch (response.message.code) {
986
+ case 1:
987
+ Swal.fire({
988
+ 'title': '<p style="font-family: Poppins"">Perfect!</p>',
989
+ 'html': '<p style="font-family: Poppins"">Sucesfull register!</p>',
990
+ 'icon': 'success',
991
+ });
992
+ resolve(true);
993
+ break;
994
+ case 3:
995
+ Swal.fire({
996
+ 'title': '<p style="font-family: Poppins"">Error!</p>',
997
+ 'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
998
+ 'icon': 'error',
999
+ });
1000
+ resolve(false);
1001
+ break;
1002
+ case 4:
1003
+ Swal.fire({
1004
+ 'title': '<p style="font-family: Poppins">Ups!</p>',
1005
+ 'html': '<p style="font-family: Poppins">The input data has a high relation with a user that already exists!</p>',
1006
+ 'icon': 'warning',
1007
+ });
1008
+ resolve(false);
1009
+ break;
1010
+ default:
1011
+ Swal.fire({
1012
+ 'title': '<p style="font-family: Poppins"">Error!</p>',
1013
+ 'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
1014
+ 'icon': 'error',
1015
+ });
1016
+ resolve(false);
1017
+ break;
1018
+ }
1019
+ reject('Unhandled exception');
1020
+ });
1021
+ });
1022
+ }
1023
+ jsonToArray(data) {
1024
+ var response = [];
1025
+ data.forEach((element) => {
1026
+ var object = [];
1027
+ for (var clave in element) {
1028
+ if (element.hasOwnProperty(clave)) {
1029
+ if (typeof element[clave] == 'object') {
1030
+ element[clave] = this.subJsonToArray(element[clave]);
1031
+ }
1032
+ object.push(element[clave]);
1033
+ }
1034
+ }
1035
+ response.push(object);
1036
+ });
1037
+ return response;
1038
+ }
1039
+ subJsonToArray(data) {
1040
+ var object = '';
1041
+ for (var clave in data) {
1042
+ if (clave != 'code') {
1043
+ object += '\n' + data[clave];
1044
+ }
1045
+ }
1046
+ return object;
1047
+ }
1048
+ }
1049
+ BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, deps: [{ token: UserService }, { token: StorageService }, { token: CalendarService }], target: i0.ɵɵFactoryTarget.Injectable });
1050
+ BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, providedIn: 'root' });
1051
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, decorators: [{
1052
+ type: Injectable,
1053
+ args: [{
1054
+ providedIn: 'root',
1055
+ }]
1051
1056
  }], ctorParameters: function () { return [{ type: UserService }, { type: StorageService }, { type: CalendarService }]; } });
1052
1057
 
1053
- class LoginFormComponent {
1054
- constructor(fb, baseService) {
1055
- this.baseService = baseService;
1056
- this.isLogged = new EventEmitter();
1057
- this.loginForm = fb.group({
1058
- email: ['', [Validators.required]],
1059
- password: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(15)]],
1060
- });
1061
- }
1062
- login(data) {
1063
- this.baseService.webLogin(data.controls['email'].value, data.controls['password'].value).then((isLogged) => {
1064
- this.isLogged.emit(isLogged);
1065
- });
1066
- }
1067
- }
1068
- 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 });
1069
- LoginFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LoginFormComponent, selector: "ipt-login-form", outputs: { isLogged: "isLogged" }, ngImport: i0, template: `
1070
- <div class="form-container">
1071
-
1072
- <h2 style="text-align: center;">IPT PLATFORM</h2>
1073
- <hr>
1074
-
1075
- <form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
1076
- <ipt-input
1077
- [inputType]="'text'"
1078
- [placeHolder]="'Email'"
1079
- [validateText]="'Debe ser @inglesparatodos.edu.co'"
1080
- [control]="loginForm.controls['email']"
1081
- ></ipt-input>
1082
-
1083
- <ipt-input
1084
- [inputType]="'password'"
1085
- [placeHolder]="'Password'"
1086
- [control]="loginForm.controls['password']"
1087
- ></ipt-input>
1088
- </form>
1089
-
1090
- <div class="button-container">
1091
- <ipt-button
1092
- [label]="'Login'"
1093
- [primary]="true"
1094
- [isEnabled]="loginForm.valid"
1095
- (onClick)="login(loginForm)"
1096
- ></ipt-button>
1097
- </div>
1098
-
1099
- </div>
1100
- `, 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"], outputs: ["dateSelected"] }, { 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"] }] });
1101
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoginFormComponent, decorators: [{
1102
- type: Component,
1103
- args: [{ selector: 'ipt-login-form', template: `
1104
- <div class="form-container">
1105
-
1106
- <h2 style="text-align: center;">IPT PLATFORM</h2>
1107
- <hr>
1108
-
1109
- <form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
1110
- <ipt-input
1111
- [inputType]="'text'"
1112
- [placeHolder]="'Email'"
1113
- [validateText]="'Debe ser @inglesparatodos.edu.co'"
1114
- [control]="loginForm.controls['email']"
1115
- ></ipt-input>
1116
-
1117
- <ipt-input
1118
- [inputType]="'password'"
1119
- [placeHolder]="'Password'"
1120
- [control]="loginForm.controls['password']"
1121
- ></ipt-input>
1122
- </form>
1123
-
1124
- <div class="button-container">
1125
- <ipt-button
1126
- [label]="'Login'"
1127
- [primary]="true"
1128
- [isEnabled]="loginForm.valid"
1129
- (onClick)="login(loginForm)"
1130
- ></ipt-button>
1131
- </div>
1132
-
1133
- </div>
1134
- `, 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"] }]
1135
- }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: BaseService }]; }, propDecorators: { isLogged: [{
1136
- type: Output
1058
+ class LoginFormComponent {
1059
+ constructor(fb, baseService) {
1060
+ this.baseService = baseService;
1061
+ this.isLogged = new EventEmitter();
1062
+ this.loginForm = fb.group({
1063
+ email: ['', [Validators.required]],
1064
+ password: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(15)]],
1065
+ });
1066
+ }
1067
+ login(data) {
1068
+ this.baseService.webLogin(data.controls['email'].value, data.controls['password'].value).then((isLogged) => {
1069
+ this.isLogged.emit(isLogged);
1070
+ });
1071
+ }
1072
+ }
1073
+ 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 });
1074
+ LoginFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LoginFormComponent, selector: "ipt-login-form", outputs: { isLogged: "isLogged" }, ngImport: i0, template: `
1075
+ <div class="form-container">
1076
+
1077
+ <h2 style="text-align: center;">IPT PLATFORM</h2>
1078
+ <hr>
1079
+
1080
+ <form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
1081
+ <ipt-input
1082
+ [inputType]="'text'"
1083
+ [placeHolder]="'Email'"
1084
+ [validateText]="'Debe ser @inglesparatodos.edu.co'"
1085
+ [control]="loginForm.controls['email']"
1086
+ ></ipt-input>
1087
+
1088
+ <ipt-input
1089
+ [inputType]="'password'"
1090
+ [placeHolder]="'Password'"
1091
+ [control]="loginForm.controls['password']"
1092
+ ></ipt-input>
1093
+ </form>
1094
+
1095
+ <div class="button-container">
1096
+ <ipt-button
1097
+ [label]="'Login'"
1098
+ [primary]="true"
1099
+ [isEnabled]="loginForm.valid"
1100
+ (onClick)="login(loginForm)"
1101
+ ></ipt-button>
1102
+ </div>
1103
+
1104
+ </div>
1105
+ `, 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"], outputs: ["dateSelected"] }, { 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"] }] });
1106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoginFormComponent, decorators: [{
1107
+ type: Component,
1108
+ args: [{ selector: 'ipt-login-form', template: `
1109
+ <div class="form-container">
1110
+
1111
+ <h2 style="text-align: center;">IPT PLATFORM</h2>
1112
+ <hr>
1113
+
1114
+ <form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
1115
+ <ipt-input
1116
+ [inputType]="'text'"
1117
+ [placeHolder]="'Email'"
1118
+ [validateText]="'Debe ser @inglesparatodos.edu.co'"
1119
+ [control]="loginForm.controls['email']"
1120
+ ></ipt-input>
1121
+
1122
+ <ipt-input
1123
+ [inputType]="'password'"
1124
+ [placeHolder]="'Password'"
1125
+ [control]="loginForm.controls['password']"
1126
+ ></ipt-input>
1127
+ </form>
1128
+
1129
+ <div class="button-container">
1130
+ <ipt-button
1131
+ [label]="'Login'"
1132
+ [primary]="true"
1133
+ [isEnabled]="loginForm.valid"
1134
+ (onClick)="login(loginForm)"
1135
+ ></ipt-button>
1136
+ </div>
1137
+
1138
+ </div>
1139
+ `, 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"] }]
1140
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: BaseService }]; }, propDecorators: { isLogged: [{
1141
+ type: Output
1137
1142
  }] } });
1138
1143
 
1139
- class ParameterService {
1140
- constructor(http) {
1141
- this.http = http;
1142
- this.SERVICE_URL = 'https://iptdev.com.co/lab/parameters/api/';
1143
- }
1144
- getIndicatives() {
1145
- let serviceUrl = this.SERVICE_URL + 'get/indicatives';
1146
- return this.http.get(serviceUrl);
1147
- }
1148
- getCardTypes(country) {
1149
- let serviceUrl = this.SERVICE_URL + 'get/id/card/type/country/' + country;
1150
- return this.http.get(serviceUrl);
1151
- }
1152
- getCountries() {
1153
- let serviceUrl = this.SERVICE_URL + 'get/countries';
1154
- return this.http.get(serviceUrl);
1155
- }
1156
- getStatesByCountry(country) {
1157
- let serviceUrl = this.SERVICE_URL + 'get/state/country/iso/' + country;
1158
- return this.http.get(serviceUrl);
1159
- }
1160
- getCitiesByState(state) {
1161
- let serviceUrl = this.SERVICE_URL + 'get/cities/state/' + state;
1162
- return this.http.get(serviceUrl);
1163
- }
1164
- getAllPlans() {
1165
- let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1166
- return this.http.get(serviceUrl);
1167
- }
1168
- getLevels() {
1169
- let serviceUrl = this.SERVICE_URL + 'get/english/levels';
1170
- return this.http.get(serviceUrl);
1171
- }
1172
- getAgreements() {
1173
- let serviceUrl = this.SERVICE_URL + 'get/all/agreement';
1174
- return this.http.get(serviceUrl);
1175
- }
1176
- getAgreementByCategory(typeCategory) {
1177
- let serviceUrl = this.SERVICE_URL + 'get/agreement/by/category/' + typeCategory;
1178
- return this.http.get(serviceUrl);
1179
- }
1180
- getAllClassrooms() {
1181
- let serviceUrl = this.SERVICE_URL + 'get/all/classroom';
1182
- return this.http.get(serviceUrl);
1183
- }
1184
- getCoursesTypes() {
1185
- let serviceUrl = this.SERVICE_URL + 'get/all/course/type';
1186
- return this.http.get(serviceUrl);
1187
- }
1188
- getCoursesTypesByPlan(typePlan) {
1189
- let serviceUrl = this.SERVICE_URL + 'get/course/by/plan/' + typePlan;
1190
- return this.http.get(serviceUrl);
1191
- }
1192
- getDegrees() {
1193
- let serviceUrl = this.SERVICE_URL + 'get/all/degrees';
1194
- return this.http.get(serviceUrl);
1195
- }
1196
- getProgramsByDegree(typeDegree) {
1197
- let serviceUrl = this.SERVICE_URL + 'get/programs/by/degree/' + typeDegree;
1198
- return this.http.get(serviceUrl);
1199
- }
1200
- getMarketingReasons() {
1201
- let serviceUrl = this.SERVICE_URL + 'get/all/mkt/reasons';
1202
- return this.http.get(serviceUrl);
1203
- }
1204
- getStudyReasons() {
1205
- let serviceUrl = this.SERVICE_URL + 'get/all/study/reasons';
1206
- return this.http.get(serviceUrl);
1207
- }
1208
- getAcademicUnits() {
1209
- let serviceUrl = this.SERVICE_URL + 'get/academic/units';
1210
- return this.http.get(serviceUrl);
1211
- }
1212
- getStatusContact() {
1213
- let serviceUrl = this.SERVICE_URL + 'get/contact/status/all';
1214
- return this.http.get(serviceUrl);
1215
- }
1216
- getTypePlan() {
1217
- let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1218
- return this.http.get(serviceUrl);
1219
- }
1220
- getTypePlanDiscount() {
1221
- let serviceUrl = this.SERVICE_URL + 'get/discount/all/plans';
1222
- return this.http.get(serviceUrl);
1223
- }
1224
- getContactedType() {
1225
- let serviceUrl = this.SERVICE_URL + 'get/contact/contacted/all';
1226
- return this.http.get(serviceUrl);
1227
- }
1228
- getStatusByCode(codeStatus) {
1229
- let serviceUrl = this.SERVICE_URL + 'get/contact/status/bycode/' + codeStatus;
1230
- return this.http.get(serviceUrl);
1231
- }
1232
- getAllTypeDiscount() {
1233
- let serviceUrl = this.SERVICE_URL + 'get/commercial/typediscounts/all';
1234
- return this.http.get(serviceUrl);
1235
- }
1236
- getAllCourseModality() {
1237
- let serviceUrl = this.SERVICE_URL + 'get/all/course/modality';
1238
- return this.http.get(serviceUrl);
1239
- }
1240
- }
1241
- 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 });
1242
- ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, providedIn: 'root' });
1243
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, decorators: [{
1244
- type: Injectable,
1245
- args: [{
1246
- providedIn: 'root',
1247
- }]
1144
+ class ParameterService {
1145
+ constructor(http) {
1146
+ this.http = http;
1147
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/parameters/api/';
1148
+ }
1149
+ getIndicatives() {
1150
+ let serviceUrl = this.SERVICE_URL + 'get/indicatives';
1151
+ return this.http.get(serviceUrl);
1152
+ }
1153
+ getCardTypes(country) {
1154
+ let serviceUrl = this.SERVICE_URL + 'get/id/card/type/country/' + country;
1155
+ return this.http.get(serviceUrl);
1156
+ }
1157
+ getCountries() {
1158
+ let serviceUrl = this.SERVICE_URL + 'get/countries';
1159
+ return this.http.get(serviceUrl);
1160
+ }
1161
+ getStatesByCountry(country) {
1162
+ let serviceUrl = this.SERVICE_URL + 'get/state/country/iso/' + country;
1163
+ return this.http.get(serviceUrl);
1164
+ }
1165
+ getCitiesByState(state) {
1166
+ let serviceUrl = this.SERVICE_URL + 'get/cities/state/' + state;
1167
+ return this.http.get(serviceUrl);
1168
+ }
1169
+ getAllPlans() {
1170
+ let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1171
+ return this.http.get(serviceUrl);
1172
+ }
1173
+ getLevels() {
1174
+ let serviceUrl = this.SERVICE_URL + 'get/english/levels';
1175
+ return this.http.get(serviceUrl);
1176
+ }
1177
+ getAgreements() {
1178
+ let serviceUrl = this.SERVICE_URL + 'get/all/agreement';
1179
+ return this.http.get(serviceUrl);
1180
+ }
1181
+ getAgreementByCategory(typeCategory) {
1182
+ let serviceUrl = this.SERVICE_URL + 'get/agreement/by/category/' + typeCategory;
1183
+ return this.http.get(serviceUrl);
1184
+ }
1185
+ getAllClassrooms() {
1186
+ let serviceUrl = this.SERVICE_URL + 'get/all/classroom';
1187
+ return this.http.get(serviceUrl);
1188
+ }
1189
+ getCoursesTypes() {
1190
+ let serviceUrl = this.SERVICE_URL + 'get/all/course/type';
1191
+ return this.http.get(serviceUrl);
1192
+ }
1193
+ getCoursesTypesByPlan(typePlan) {
1194
+ let serviceUrl = this.SERVICE_URL + 'get/course/by/plan/' + typePlan;
1195
+ return this.http.get(serviceUrl);
1196
+ }
1197
+ getDegrees() {
1198
+ let serviceUrl = this.SERVICE_URL + 'get/all/degrees';
1199
+ return this.http.get(serviceUrl);
1200
+ }
1201
+ getProgramsByDegree(typeDegree) {
1202
+ let serviceUrl = this.SERVICE_URL + 'get/programs/by/degree/' + typeDegree;
1203
+ return this.http.get(serviceUrl);
1204
+ }
1205
+ getMarketingReasons() {
1206
+ let serviceUrl = this.SERVICE_URL + 'get/all/mkt/reasons';
1207
+ return this.http.get(serviceUrl);
1208
+ }
1209
+ getStudyReasons() {
1210
+ let serviceUrl = this.SERVICE_URL + 'get/all/study/reasons';
1211
+ return this.http.get(serviceUrl);
1212
+ }
1213
+ getAcademicUnits() {
1214
+ let serviceUrl = this.SERVICE_URL + 'get/academic/units';
1215
+ return this.http.get(serviceUrl);
1216
+ }
1217
+ getStatusContact() {
1218
+ let serviceUrl = this.SERVICE_URL + 'get/contact/status/all';
1219
+ return this.http.get(serviceUrl);
1220
+ }
1221
+ getTypePlan() {
1222
+ let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1223
+ return this.http.get(serviceUrl);
1224
+ }
1225
+ getTypePlanDiscount() {
1226
+ let serviceUrl = this.SERVICE_URL + 'get/discount/all/plans';
1227
+ return this.http.get(serviceUrl);
1228
+ }
1229
+ getContactedType() {
1230
+ let serviceUrl = this.SERVICE_URL + 'get/contact/contacted/all';
1231
+ return this.http.get(serviceUrl);
1232
+ }
1233
+ getStatusByCode(codeStatus) {
1234
+ let serviceUrl = this.SERVICE_URL + 'get/contact/status/bycode/' + codeStatus;
1235
+ return this.http.get(serviceUrl);
1236
+ }
1237
+ getAllTypeDiscount() {
1238
+ let serviceUrl = this.SERVICE_URL + 'get/commercial/typediscounts/all';
1239
+ return this.http.get(serviceUrl);
1240
+ }
1241
+ getAllCourseModality() {
1242
+ let serviceUrl = this.SERVICE_URL + 'get/all/course/modality';
1243
+ return this.http.get(serviceUrl);
1244
+ }
1245
+ }
1246
+ 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 });
1247
+ ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, providedIn: 'root' });
1248
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, decorators: [{
1249
+ type: Injectable,
1250
+ args: [{
1251
+ providedIn: 'root',
1252
+ }]
1248
1253
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1249
1254
 
1250
- class CreateUserFormComponent {
1251
- constructor(fb, parameterService, userService) {
1252
- this.fb = fb;
1253
- this.parameterService = parameterService;
1254
- this.userService = userService;
1255
- this.visibility = false;
1256
- this.userCreated = new EventEmitter(false);
1257
- this.onHide = new EventEmitter(false);
1258
- this.loader = false;
1259
- this.photo = '';
1260
- }
1261
- ngOnInit() {
1262
- this.initForm();
1263
- this.getParameters();
1264
- }
1265
- closeModal() {
1266
- this.visibility = false;
1267
- this.onHide.emit(true);
1268
- }
1269
- createUser() {
1270
- this.loader = true;
1271
- let request = {
1272
- name: this.createUserForm.controls['name'].value,
1273
- last_name: this.createUserForm.controls['last_name'].value,
1274
- id_card_type: this.createUserForm.controls['id_card_type'].value,
1275
- id_card: this.createUserForm.controls['id_card'].value,
1276
- phone_indicative: this.createUserForm.controls['phone_indicative'].value,
1277
- phone_number: this.createUserForm.controls['phone_number'].value,
1278
- email: this.createUserForm.controls['email'].value,
1279
- city: this.createUserForm.controls['city'].value,
1280
- service_hour: this.createUserForm.controls['service_hour'].value,
1281
- role: this.createUserForm.controls['role'].value,
1282
- password: this.createUserForm.controls['password'].value,
1283
- };
1284
- this.userService.registerDashboard(request).subscribe((response) => {
1285
- console.log(response.message);
1286
- switch (response.message.code) {
1287
- case 1:
1288
- this.userCreated.emit(true);
1289
- this.initForm();
1290
- break;
1291
- case 2:
1292
- throw new Error("Los datos ingresados no corresponden a un usuario registrado en nuestro sistema, por favor reviselos.");
1293
- case 3:
1294
- throw new Error("Los datos ingresados no cumplen los parámetros establecidos");
1295
- default:
1296
- break;
1297
- }
1298
- this.loader = false;
1299
- });
1300
- }
1301
- getParameters() {
1302
- this.parameterService.getIndicatives().subscribe((response) => {
1303
- this.phoneNumberIndicatives = response.data;
1304
- });
1305
- this.parameterService.getCardTypes('col').subscribe((response) => {
1306
- this.idTypes = response.data;
1307
- });
1308
- this.parameterService.getStatesByCountry('col').subscribe((response) => {
1309
- this.states = response.data;
1310
- });
1311
- }
1312
- getRolesOptions() {
1313
- // Estudiante
1314
- if (this.userType === 'student') {
1315
- this.setPhoto('student');
1316
- return [
1317
- { code: '13', name: 'Student' },
1318
- ];
1319
- }
1320
- // Académico
1321
- if (this.userType === 'academic') {
1322
- this.setPhoto('academic');
1323
- return [
1324
- { code: '11', name: 'Teacher PRO' },
1325
- { code: '12', name: 'Teacher' },
1326
- ];
1327
- }
1328
- // Administrativo
1329
- if (this.userType === 'administrative') {
1330
- this.setPhoto('administrative');
1331
- return [
1332
- { code: '31', name: 'Administrative Supervisor' },
1333
- { code: '32', name: 'Administrative Advisor' },
1334
- ];
1335
- }
1336
- // Marketing
1337
- if (this.userType === 'marketing') {
1338
- this.setPhoto('marketing');
1339
- return [
1340
- { code: '21', name: 'Marketing Supervisor' },
1341
- { code: '22', name: 'Marketing Advisor' },
1342
- ];
1343
- }
1344
- // Comercial
1345
- if (this.userType === 'commercial') {
1346
- this.setPhoto('commercial');
1347
- return [
1348
- { code: '41', name: 'Commercial Supervisor' },
1349
- { code: '42', name: 'Commercial Advisor' },
1350
- ];
1351
- }
1352
- // Cartera
1353
- if (this.userType === 'treasure') {
1354
- this.setPhoto('treasure');
1355
- return [
1356
- { code: '51', name: 'Treauser Supervisor' },
1357
- { code: '52', name: 'Treauser Advisor' },
1358
- ];
1359
- }
1360
- }
1361
- initForm() {
1362
- this.createUserForm = this.fb.group({
1363
- name: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(32)],],
1364
- last_name: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(32),],],
1365
- email: ['', [Validators.required, Validators.maxLength(300)]],
1366
- id_card_type: ['', [Validators.required]],
1367
- id_card: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(20),]],
1368
- phone_indicative: ['', [Validators.required]],
1369
- city: ['', [Validators.required]],
1370
- role: ['', [Validators.required]],
1371
- service_hour: ['', [Validators.required]],
1372
- phone_number: ['', [Validators.required, Validators.minLength(10), Validators.maxLength(15)]],
1373
- password: ['', [Validators.required, Validators.minLength(7), Validators.maxLength(32)]],
1374
- re_password: ['', [Validators.required, Validators.minLength(7), Validators.maxLength(32)]],
1375
- state: [''],
1376
- });
1377
- }
1378
- setPhoto(type) {
1379
- if (type === 'student')
1380
- this.photo = '../../../assets/user-form-assets/estudiante.jpg';
1381
- if (type === 'academic')
1382
- this.photo = '../../../assets/user-form-assets/academico.png';
1383
- if (type === 'administrative')
1384
- this.photo = '../../../assets/user-form-assets/administrativo.jpg';
1385
- if (type === 'marketing')
1386
- this.photo = '../../../assets/user-form-assets/marketing.jpg';
1387
- if (type === 'commercial')
1388
- this.photo = '../../../assets/user-form-assets/comercial.jpg';
1389
- if (type === 'treasure')
1390
- this.photo = '../../../assets/user-form-assets/administrativo.jpg';
1391
- }
1392
- selectRol(role) {
1393
- if (role !== 'Seleccione el rol') {
1394
- this.createUserForm.controls['role'].setValue(role);
1395
- }
1396
- else {
1397
- this.createUserForm.controls['role'].setValue(null);
1398
- }
1399
- }
1400
- selectIndicatives(indicative) {
1401
- if (indicative !== 'Seleccione el indicativo') {
1402
- this.createUserForm.controls['phone_indicative'].setValue(indicative);
1403
- }
1404
- else {
1405
- this.createUserForm.controls['phone_indicative'].setValue(null);
1406
- }
1407
- }
1408
- selectIdType(idType) {
1409
- if (idType !== 'Ingrese el tipo de documento') {
1410
- this.createUserForm.controls['id_card_type'].setValue(idType);
1411
- }
1412
- else {
1413
- this.createUserForm.controls['id_card_type'].setValue(null);
1414
- }
1415
- }
1416
- selectState(state) {
1417
- if (state !== 'Seleccione el departamento') {
1418
- this.createUserForm.controls['state'].setValue(state);
1419
- this.parameterService.getCitiesByState(state).subscribe((response) => {
1420
- this.cities = response.data;
1421
- });
1422
- }
1423
- else {
1424
- this.createUserForm.controls['state'].setValue(null);
1425
- this.createUserForm.controls['city'].setValue(null);
1426
- this.cities = [];
1427
- }
1428
- }
1429
- selectCity(city) {
1430
- if (city !== 'Ciudad de residencia') {
1431
- this.createUserForm.controls['city'].setValue(city);
1432
- }
1433
- else {
1434
- this.createUserForm.controls['city'].setValue(null);
1435
- }
1436
- }
1437
- }
1438
- CreateUserFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CreateUserFormComponent, deps: [{ token: i1$1.FormBuilder }, { token: ParameterService }, { token: UserService }], target: i0.ɵɵFactoryTarget.Component });
1439
- CreateUserFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: CreateUserFormComponent, selector: "ipt-create-user-form", inputs: { userType: "userType", visibility: "visibility" }, outputs: { userCreated: "userCreated", onHide: "onHide" }, ngImport: i0, template: "<main *ngIf=\"visibility\">\r\n <div @fade class=\"modal_container\">\r\n <div class=\"header_modal\">\r\n <h1>Crear usuario de {{ userType | titlecase}}</h1>\r\n <button (click)=\"closeModal()\">x</button>\r\n </div>\r\n <div class=\"grid_container\">\r\n <div>\r\n <form autocomplete=\"off\" [formGroup]=\"createUserForm\">\r\n <ipt-input\r\n [inputType]=\"'text'\"\r\n [placeHolder]=\"'Nombre completo'\"\r\n [control]=\"createUserForm.controls['name']\"\r\n [validateText]=\"'Debe ingresar el nombre'\"\r\n ></ipt-input>\r\n <ipt-input\r\n [inputType]=\"'text'\"\r\n [placeHolder]=\"'Apellidos'\"\r\n [control]=\"createUserForm.controls['last_name']\"\r\n [validateText]=\"'Debe ingresar los apellidos'\"\r\n ></ipt-input>\r\n <ipt-input\r\n [inputType]=\"'text'\"\r\n [placeHolder]=\"'Correo electr\u00F3nico'\"\r\n [control]=\"createUserForm.controls['email']\"\r\n [validateText]=\"'Debe tener dominio @inglesparatodos.edu.co'\"\r\n ></ipt-input>\r\n <ipt-select\r\n [isRequired]=\"true\"\r\n [defaultText]=\"'Seleccione el rol'\"\r\n (eventSelect)=\"selectRol($event)\"\r\n [data]=\"getRolesOptions()\"\r\n ></ipt-select>\r\n <ipt-select\r\n [isRequired]=\"true\"\r\n [data]=\"phoneNumberIndicatives\"\r\n (eventSelect)=\"selectIndicatives($event)\"\r\n [defaultText]=\"'Seleccione el indicativo'\"\r\n ></ipt-select>\r\n <ipt-input\r\n [inputType]=\"'number'\"\r\n [placeHolder]=\"'N\u00FAmero de tel\u00E9fono'\"\r\n [control]=\"createUserForm.controls['phone_number']\"\r\n [validateText]=\"'Debe ingresar un n\u00FAmero de tel\u00E9fono v\u00E1lido'\"\r\n ></ipt-input>\r\n <ipt-select\r\n [isRequired]=\"true\"\r\n [data]=\"idTypes\"\r\n (eventSelect)=\"selectIdType($event)\"\r\n [defaultText]=\"'Ingrese el tipo de documento'\"\r\n ></ipt-select>\r\n <ipt-input\r\n [inputType]=\"'number'\"\r\n [placeHolder]=\"'Documento de identidad'\"\r\n [control]=\"createUserForm.controls['id_card']\"\r\n [validateText]=\"'Debe ingresar el n\u00FAmero de documento'\"\r\n ></ipt-input>\r\n <ipt-select\r\n [isRequired]=\"true\"\r\n (eventSelect)=\"selectState($event)\"\r\n [data]=\"states\"\r\n [defaultText]=\"'Seleccione el departamento'\"\r\n ></ipt-select>\r\n <ipt-select\r\n [isRequired]=\"true\"\r\n (eventSelect)=\"selectCity($event)\"\r\n [data]=\"cities\"\r\n [defaultText]=\"'Ciudad de residencia'\"\r\n ></ipt-select>\r\n <ipt-input *ngIf=\"!(userType === 'student')\"\r\n [inputType]=\"'number'\"\r\n [placeHolder]=\"'Ingrese las horas de servicio'\"\r\n [control]=\"createUserForm.controls['service_hour']\"\r\n [validateText]=\"'Debe ingresar las horas de servicio'\"\r\n ></ipt-input>\r\n <ipt-input\r\n [inputType]=\"'password'\"\r\n [placeHolder]=\"'Contrase\u00F1a'\"\r\n [control]=\"createUserForm.controls['password']\"\r\n >\r\n </ipt-input>\r\n <ipt-input\r\n [inputType]=\"'password'\"\r\n [placeHolder]=\"'Repetir contrase\u00F1a'\"\r\n [control]=\"createUserForm.controls['re_password']\"\r\n >\r\n </ipt-input>\r\n </form>\r\n\r\n <div class=\"buttons-container\">\r\n <ipt-button\r\n [label]=\"'Crear usuario'\"\r\n [isEnabled]=\"\r\n !loader &&\r\n createUserForm.value['re_password'] ===\r\n createUserForm.value['password']\r\n \"\r\n (onClick)=\"createUser()\"\r\n [primary]=\"true\"\r\n >\r\n </ipt-button>\r\n </div>\r\n </div>\r\n <div [ngStyle]=\"{'background-image': 'url(' + photo + ')'}\" class=\"user_type_image\"></div>\r\n </div>\r\n </div>\r\n</main>\r\n", styles: ["@media screen and (min-width: 320px){main{background:rgba(0,0,0,.472);color:#fff;position:fixed;top:0;left:0;height:100vh;width:100vw;transition:all .5s}main .modal_container{width:60%;height:-moz-fit-content;height:fit-content;position:absolute;inset:0;margin:auto;background-color:#fff;border-radius:6px}.header_modal{display:flex;padding:0 15px;gap:1rem;align-items:center}.header_modal h1{padding:.5rem;background-color:#1c77f7;color:#fff;width:100%;border-radius:10px;font-size:1.25rem;font-weight:700}.header_modal button{margin-left:auto;font-size:26px;padding:1.2rem;font-weight:200;color:#6c7f7d;display:flex;width:25px;height:25px;align-items:center;justify-content:center;transition:50ms;background-color:transparent;border:none}.header_modal button:hover{cursor:pointer;border-radius:50%;background-color:#d4d4d4}.grid_container{display:grid;grid-template-columns:1fr}form{display:grid;grid-template-columns:1fr;grid-gap:.25rem;gap:.25rem;justify-content:center;padding:0 1rem}.buttons-container{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center;align-items:center;justify-items:center;align-content:center}.user_type_image{display:none}}@media screen and (min-width: 768px){form{display:grid;grid-template-columns:1fr 1fr;grid-gap:1rem;gap:1rem;justify-content:center}}@media screen and (min-width: 1366px){form{padding:0rem}.grid_container{display:grid;grid-template-columns:1fr 250px;grid-gap:1rem;gap:1rem;padding:1rem}.user_type_image{display:flex;background-size:cover;background-repeat:no-repeat;background-position:center;height:100%;border-radius:1rem;padding:1rem}}\n"], components: [{ type: InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "withPipe", "list", "iconUrl", "control", "prefix", "thousands", "decimal"], outputs: ["dateSelected"] }, { type: SelectComponent, selector: "ipt-select", inputs: ["isRequired", "data", "defaultText", "selectCode", "disabledSel", "control"], outputs: ["eventSelect"] }, { type: ButtonComponent, selector: "ipt-button", inputs: ["primary", "size", "label", "buttonType", "isEnabled"], outputs: ["onClick"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "titlecase": i1.TitleCasePipe }, animations: [
1440
- trigger('fade', [
1441
- transition('void => *', [
1442
- style({ opacity: 0 }),
1443
- animate(200, style({ opacity: 1 }))
1444
- ])
1445
- ])
1446
- ] });
1447
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CreateUserFormComponent, decorators: [{
1448
- type: Component,
1449
- args: [{ selector: 'ipt-create-user-form', animations: [
1450
- trigger('fade', [
1451
- transition('void => *', [
1452
- style({ opacity: 0 }),
1453
- animate(200, style({ opacity: 1 }))
1454
- ])
1455
- ])
1456
- ], template: "<main *ngIf=\"visibility\">\r\n <div @fade class=\"modal_container\">\r\n <div class=\"header_modal\">\r\n <h1>Crear usuario de {{ userType | titlecase}}</h1>\r\n <button (click)=\"closeModal()\">x</button>\r\n </div>\r\n <div class=\"grid_container\">\r\n <div>\r\n <form autocomplete=\"off\" [formGroup]=\"createUserForm\">\r\n <ipt-input\r\n [inputType]=\"'text'\"\r\n [placeHolder]=\"'Nombre completo'\"\r\n [control]=\"createUserForm.controls['name']\"\r\n [validateText]=\"'Debe ingresar el nombre'\"\r\n ></ipt-input>\r\n <ipt-input\r\n [inputType]=\"'text'\"\r\n [placeHolder]=\"'Apellidos'\"\r\n [control]=\"createUserForm.controls['last_name']\"\r\n [validateText]=\"'Debe ingresar los apellidos'\"\r\n ></ipt-input>\r\n <ipt-input\r\n [inputType]=\"'text'\"\r\n [placeHolder]=\"'Correo electr\u00F3nico'\"\r\n [control]=\"createUserForm.controls['email']\"\r\n [validateText]=\"'Debe tener dominio @inglesparatodos.edu.co'\"\r\n ></ipt-input>\r\n <ipt-select\r\n [isRequired]=\"true\"\r\n [defaultText]=\"'Seleccione el rol'\"\r\n (eventSelect)=\"selectRol($event)\"\r\n [data]=\"getRolesOptions()\"\r\n ></ipt-select>\r\n <ipt-select\r\n [isRequired]=\"true\"\r\n [data]=\"phoneNumberIndicatives\"\r\n (eventSelect)=\"selectIndicatives($event)\"\r\n [defaultText]=\"'Seleccione el indicativo'\"\r\n ></ipt-select>\r\n <ipt-input\r\n [inputType]=\"'number'\"\r\n [placeHolder]=\"'N\u00FAmero de tel\u00E9fono'\"\r\n [control]=\"createUserForm.controls['phone_number']\"\r\n [validateText]=\"'Debe ingresar un n\u00FAmero de tel\u00E9fono v\u00E1lido'\"\r\n ></ipt-input>\r\n <ipt-select\r\n [isRequired]=\"true\"\r\n [data]=\"idTypes\"\r\n (eventSelect)=\"selectIdType($event)\"\r\n [defaultText]=\"'Ingrese el tipo de documento'\"\r\n ></ipt-select>\r\n <ipt-input\r\n [inputType]=\"'number'\"\r\n [placeHolder]=\"'Documento de identidad'\"\r\n [control]=\"createUserForm.controls['id_card']\"\r\n [validateText]=\"'Debe ingresar el n\u00FAmero de documento'\"\r\n ></ipt-input>\r\n <ipt-select\r\n [isRequired]=\"true\"\r\n (eventSelect)=\"selectState($event)\"\r\n [data]=\"states\"\r\n [defaultText]=\"'Seleccione el departamento'\"\r\n ></ipt-select>\r\n <ipt-select\r\n [isRequired]=\"true\"\r\n (eventSelect)=\"selectCity($event)\"\r\n [data]=\"cities\"\r\n [defaultText]=\"'Ciudad de residencia'\"\r\n ></ipt-select>\r\n <ipt-input *ngIf=\"!(userType === 'student')\"\r\n [inputType]=\"'number'\"\r\n [placeHolder]=\"'Ingrese las horas de servicio'\"\r\n [control]=\"createUserForm.controls['service_hour']\"\r\n [validateText]=\"'Debe ingresar las horas de servicio'\"\r\n ></ipt-input>\r\n <ipt-input\r\n [inputType]=\"'password'\"\r\n [placeHolder]=\"'Contrase\u00F1a'\"\r\n [control]=\"createUserForm.controls['password']\"\r\n >\r\n </ipt-input>\r\n <ipt-input\r\n [inputType]=\"'password'\"\r\n [placeHolder]=\"'Repetir contrase\u00F1a'\"\r\n [control]=\"createUserForm.controls['re_password']\"\r\n >\r\n </ipt-input>\r\n </form>\r\n\r\n <div class=\"buttons-container\">\r\n <ipt-button\r\n [label]=\"'Crear usuario'\"\r\n [isEnabled]=\"\r\n !loader &&\r\n createUserForm.value['re_password'] ===\r\n createUserForm.value['password']\r\n \"\r\n (onClick)=\"createUser()\"\r\n [primary]=\"true\"\r\n >\r\n </ipt-button>\r\n </div>\r\n </div>\r\n <div [ngStyle]=\"{'background-image': 'url(' + photo + ')'}\" class=\"user_type_image\"></div>\r\n </div>\r\n </div>\r\n</main>\r\n", styles: ["@media screen and (min-width: 320px){main{background:rgba(0,0,0,.472);color:#fff;position:fixed;top:0;left:0;height:100vh;width:100vw;transition:all .5s}main .modal_container{width:60%;height:-moz-fit-content;height:fit-content;position:absolute;inset:0;margin:auto;background-color:#fff;border-radius:6px}.header_modal{display:flex;padding:0 15px;gap:1rem;align-items:center}.header_modal h1{padding:.5rem;background-color:#1c77f7;color:#fff;width:100%;border-radius:10px;font-size:1.25rem;font-weight:700}.header_modal button{margin-left:auto;font-size:26px;padding:1.2rem;font-weight:200;color:#6c7f7d;display:flex;width:25px;height:25px;align-items:center;justify-content:center;transition:50ms;background-color:transparent;border:none}.header_modal button:hover{cursor:pointer;border-radius:50%;background-color:#d4d4d4}.grid_container{display:grid;grid-template-columns:1fr}form{display:grid;grid-template-columns:1fr;grid-gap:.25rem;gap:.25rem;justify-content:center;padding:0 1rem}.buttons-container{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center;align-items:center;justify-items:center;align-content:center}.user_type_image{display:none}}@media screen and (min-width: 768px){form{display:grid;grid-template-columns:1fr 1fr;grid-gap:1rem;gap:1rem;justify-content:center}}@media screen and (min-width: 1366px){form{padding:0rem}.grid_container{display:grid;grid-template-columns:1fr 250px;grid-gap:1rem;gap:1rem;padding:1rem}.user_type_image{display:flex;background-size:cover;background-repeat:no-repeat;background-position:center;height:100%;border-radius:1rem;padding:1rem}}\n"] }]
1457
- }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: ParameterService }, { type: UserService }]; }, propDecorators: { userType: [{
1458
- type: Input
1459
- }], visibility: [{
1460
- type: Input
1461
- }], userCreated: [{
1462
- type: Output
1463
- }], onHide: [{
1464
- type: Output
1255
+ class CreateUserFormComponent {
1256
+ constructor(fb, parameterService, userService) {
1257
+ this.fb = fb;
1258
+ this.parameterService = parameterService;
1259
+ this.userService = userService;
1260
+ this.visibility = false;
1261
+ this.userCreated = new EventEmitter(false);
1262
+ this.onHide = new EventEmitter(false);
1263
+ this.loader = false;
1264
+ this.photo = '';
1265
+ }
1266
+ ngOnInit() {
1267
+ this.initForm();
1268
+ this.getParameters();
1269
+ }
1270
+ closeModal() {
1271
+ this.visibility = false;
1272
+ this.onHide.emit(true);
1273
+ }
1274
+ createUser() {
1275
+ this.loader = true;
1276
+ let request = {
1277
+ name: this.createUserForm.controls['name'].value,
1278
+ last_name: this.createUserForm.controls['last_name'].value,
1279
+ id_card_type: this.createUserForm.controls['id_card_type'].value,
1280
+ id_card: this.createUserForm.controls['id_card'].value,
1281
+ phone_indicative: this.createUserForm.controls['phone_indicative'].value,
1282
+ phone_number: this.createUserForm.controls['phone_number'].value,
1283
+ email: this.createUserForm.controls['email'].value,
1284
+ city: this.createUserForm.controls['city'].value,
1285
+ service_hour: this.createUserForm.controls['service_hour'].value,
1286
+ role: this.createUserForm.controls['role'].value,
1287
+ password: this.createUserForm.controls['password'].value,
1288
+ };
1289
+ this.userService.registerDashboard(request).subscribe((response) => {
1290
+ console.log(response.message);
1291
+ switch (response.message.code) {
1292
+ case 1:
1293
+ this.userCreated.emit(true);
1294
+ this.initForm();
1295
+ break;
1296
+ case 2:
1297
+ throw new Error("Los datos ingresados no corresponden a un usuario registrado en nuestro sistema, por favor reviselos.");
1298
+ case 3:
1299
+ throw new Error("Los datos ingresados no cumplen los parámetros establecidos");
1300
+ default:
1301
+ break;
1302
+ }
1303
+ this.loader = false;
1304
+ });
1305
+ }
1306
+ getParameters() {
1307
+ this.parameterService.getIndicatives().subscribe((response) => {
1308
+ this.phoneNumberIndicatives = response.data;
1309
+ });
1310
+ this.parameterService.getCardTypes('col').subscribe((response) => {
1311
+ this.idTypes = response.data;
1312
+ });
1313
+ this.parameterService.getStatesByCountry('col').subscribe((response) => {
1314
+ this.states = response.data;
1315
+ });
1316
+ }
1317
+ getRolesOptions() {
1318
+ // Estudiante
1319
+ if (this.userType === 'student') {
1320
+ this.setPhoto('student');
1321
+ return [
1322
+ { code: '13', name: 'Student' },
1323
+ ];
1324
+ }
1325
+ // Académico
1326
+ if (this.userType === 'academic') {
1327
+ this.setPhoto('academic');
1328
+ return [
1329
+ { code: '11', name: 'Teacher PRO' },
1330
+ { code: '12', name: 'Teacher' },
1331
+ ];
1332
+ }
1333
+ // Administrativo
1334
+ if (this.userType === 'administrative') {
1335
+ this.setPhoto('administrative');
1336
+ return [
1337
+ { code: '31', name: 'Administrative Supervisor' },
1338
+ { code: '32', name: 'Administrative Advisor' },
1339
+ ];
1340
+ }
1341
+ // Marketing
1342
+ if (this.userType === 'marketing') {
1343
+ this.setPhoto('marketing');
1344
+ return [
1345
+ { code: '21', name: 'Marketing Supervisor' },
1346
+ { code: '22', name: 'Marketing Advisor' },
1347
+ ];
1348
+ }
1349
+ // Comercial
1350
+ if (this.userType === 'commercial') {
1351
+ this.setPhoto('commercial');
1352
+ return [
1353
+ { code: '41', name: 'Commercial Supervisor' },
1354
+ { code: '42', name: 'Commercial Advisor' },
1355
+ ];
1356
+ }
1357
+ // Cartera
1358
+ if (this.userType === 'treasure') {
1359
+ this.setPhoto('treasure');
1360
+ return [
1361
+ { code: '51', name: 'Treauser Supervisor' },
1362
+ { code: '52', name: 'Treauser Advisor' },
1363
+ ];
1364
+ }
1365
+ }
1366
+ initForm() {
1367
+ this.createUserForm = this.fb.group({
1368
+ name: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(32)],],
1369
+ last_name: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(32),],],
1370
+ email: ['', [Validators.required, Validators.maxLength(300)]],
1371
+ id_card_type: ['', [Validators.required]],
1372
+ id_card: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(20),]],
1373
+ phone_indicative: ['', [Validators.required]],
1374
+ city: ['', [Validators.required]],
1375
+ role: ['', [Validators.required]],
1376
+ service_hour: ['', [Validators.required]],
1377
+ phone_number: ['', [Validators.required, Validators.minLength(10), Validators.maxLength(15)]],
1378
+ password: ['', [Validators.required, Validators.minLength(7), Validators.maxLength(32)]],
1379
+ re_password: ['', [Validators.required, Validators.minLength(7), Validators.maxLength(32)]],
1380
+ state: [''],
1381
+ });
1382
+ }
1383
+ setPhoto(type) {
1384
+ if (type === 'student')
1385
+ this.photo = '../../../assets/user-form-assets/estudiante.jpg';
1386
+ if (type === 'academic')
1387
+ this.photo = '../../../assets/user-form-assets/academico.png';
1388
+ if (type === 'administrative')
1389
+ this.photo = '../../../assets/user-form-assets/administrativo.jpg';
1390
+ if (type === 'marketing')
1391
+ this.photo = '../../../assets/user-form-assets/marketing.jpg';
1392
+ if (type === 'commercial')
1393
+ this.photo = '../../../assets/user-form-assets/comercial.jpg';
1394
+ if (type === 'treasure')
1395
+ this.photo = '../../../assets/user-form-assets/administrativo.jpg';
1396
+ }
1397
+ selectRol(role) {
1398
+ if (role !== 'Seleccione el rol') {
1399
+ this.createUserForm.controls['role'].setValue(role);
1400
+ }
1401
+ else {
1402
+ this.createUserForm.controls['role'].setValue(null);
1403
+ }
1404
+ }
1405
+ selectIndicatives(indicative) {
1406
+ if (indicative !== 'Seleccione el indicativo') {
1407
+ this.createUserForm.controls['phone_indicative'].setValue(indicative);
1408
+ }
1409
+ else {
1410
+ this.createUserForm.controls['phone_indicative'].setValue(null);
1411
+ }
1412
+ }
1413
+ selectIdType(idType) {
1414
+ if (idType !== 'Ingrese el tipo de documento') {
1415
+ this.createUserForm.controls['id_card_type'].setValue(idType);
1416
+ }
1417
+ else {
1418
+ this.createUserForm.controls['id_card_type'].setValue(null);
1419
+ }
1420
+ }
1421
+ selectState(state) {
1422
+ if (state !== 'Seleccione el departamento') {
1423
+ this.createUserForm.controls['state'].setValue(state);
1424
+ this.parameterService.getCitiesByState(state).subscribe((response) => {
1425
+ this.cities = response.data;
1426
+ });
1427
+ }
1428
+ else {
1429
+ this.createUserForm.controls['state'].setValue(null);
1430
+ this.createUserForm.controls['city'].setValue(null);
1431
+ this.cities = [];
1432
+ }
1433
+ }
1434
+ selectCity(city) {
1435
+ if (city !== 'Ciudad de residencia') {
1436
+ this.createUserForm.controls['city'].setValue(city);
1437
+ }
1438
+ else {
1439
+ this.createUserForm.controls['city'].setValue(null);
1440
+ }
1441
+ }
1442
+ }
1443
+ CreateUserFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CreateUserFormComponent, deps: [{ token: i1$1.FormBuilder }, { token: ParameterService }, { token: UserService }], target: i0.ɵɵFactoryTarget.Component });
1444
+ CreateUserFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: CreateUserFormComponent, selector: "ipt-create-user-form", inputs: { userType: "userType", visibility: "visibility" }, outputs: { userCreated: "userCreated", onHide: "onHide" }, ngImport: i0, template: "<main *ngIf=\"visibility\">\n <div @fade class=\"modal_container\">\n <div class=\"header_modal\">\n <h1>Crear usuario de {{ userType | titlecase}}</h1>\n <button (click)=\"closeModal()\">x</button>\n </div>\n <div class=\"grid_container\">\n <div>\n <form autocomplete=\"off\" [formGroup]=\"createUserForm\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Nombre completo'\"\n [control]=\"createUserForm.controls['name']\"\n [validateText]=\"'Debe ingresar el nombre'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Apellidos'\"\n [control]=\"createUserForm.controls['last_name']\"\n [validateText]=\"'Debe ingresar los apellidos'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Correo electr\u00F3nico'\"\n [control]=\"createUserForm.controls['email']\"\n [validateText]=\"'Debe tener dominio @inglesparatodos.edu.co'\"\n ></ipt-input>\n <ipt-select\n [isRequired]=\"true\"\n [defaultText]=\"'Seleccione el rol'\"\n (eventSelect)=\"selectRol($event)\"\n [data]=\"getRolesOptions()\"\n ></ipt-select>\n <ipt-select\n [isRequired]=\"true\"\n [data]=\"phoneNumberIndicatives\"\n (eventSelect)=\"selectIndicatives($event)\"\n [defaultText]=\"'Seleccione el indicativo'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'N\u00FAmero de tel\u00E9fono'\"\n [control]=\"createUserForm.controls['phone_number']\"\n [validateText]=\"'Debe ingresar un n\u00FAmero de tel\u00E9fono v\u00E1lido'\"\n ></ipt-input>\n <ipt-select\n [isRequired]=\"true\"\n [data]=\"idTypes\"\n (eventSelect)=\"selectIdType($event)\"\n [defaultText]=\"'Ingrese el tipo de documento'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'Documento de identidad'\"\n [control]=\"createUserForm.controls['id_card']\"\n [validateText]=\"'Debe ingresar el n\u00FAmero de documento'\"\n ></ipt-input>\n <ipt-select\n [isRequired]=\"true\"\n (eventSelect)=\"selectState($event)\"\n [data]=\"states\"\n [defaultText]=\"'Seleccione el departamento'\"\n ></ipt-select>\n <ipt-select\n [isRequired]=\"true\"\n (eventSelect)=\"selectCity($event)\"\n [data]=\"cities\"\n [defaultText]=\"'Ciudad de residencia'\"\n ></ipt-select>\n <ipt-input *ngIf=\"!(userType === 'student')\"\n [inputType]=\"'number'\"\n [placeHolder]=\"'Ingrese las horas de servicio'\"\n [control]=\"createUserForm.controls['service_hour']\"\n [validateText]=\"'Debe ingresar las horas de servicio'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'password'\"\n [placeHolder]=\"'Contrase\u00F1a'\"\n [control]=\"createUserForm.controls['password']\"\n >\n </ipt-input>\n <ipt-input\n [inputType]=\"'password'\"\n [placeHolder]=\"'Repetir contrase\u00F1a'\"\n [control]=\"createUserForm.controls['re_password']\"\n >\n </ipt-input>\n </form>\n\n <div class=\"buttons-container\">\n <ipt-button\n [label]=\"'Crear usuario'\"\n [isEnabled]=\"\n !loader &&\n createUserForm.value['re_password'] ===\n createUserForm.value['password']\n \"\n (onClick)=\"createUser()\"\n [primary]=\"true\"\n >\n </ipt-button>\n </div>\n </div>\n <div [ngStyle]=\"{'background-image': 'url(' + photo + ')'}\" class=\"user_type_image\"></div>\n </div>\n </div>\n</main>\n", styles: ["@media screen and (min-width: 320px){main{background:rgba(0,0,0,.472);color:#fff;position:fixed;top:0;left:0;height:100vh;width:100vw;transition:all .5s}main .modal_container{width:60%;height:-moz-fit-content;height:fit-content;position:absolute;inset:0;margin:auto;background-color:#fff;border-radius:6px}.header_modal{display:flex;padding:0 15px;gap:1rem;align-items:center}.header_modal h1{padding:.5rem;background-color:#1c77f7;color:#fff;width:100%;border-radius:10px;font-size:1.25rem;font-weight:700}.header_modal button{margin-left:auto;font-size:26px;padding:1.2rem;font-weight:200;color:#6c7f7d;display:flex;width:25px;height:25px;align-items:center;justify-content:center;transition:50ms;background-color:transparent;border:none}.header_modal button:hover{cursor:pointer;border-radius:50%;background-color:#d4d4d4}.grid_container{display:grid;grid-template-columns:1fr}form{display:grid;grid-template-columns:1fr;grid-gap:.25rem;gap:.25rem;justify-content:center;padding:0 1rem}.buttons-container{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center;align-items:center;justify-items:center;align-content:center}.user_type_image{display:none}}@media screen and (min-width: 768px){form{display:grid;grid-template-columns:1fr 1fr;grid-gap:1rem;gap:1rem;justify-content:center}}@media screen and (min-width: 1366px){form{padding:0rem}.grid_container{display:grid;grid-template-columns:1fr 250px;grid-gap:1rem;gap:1rem;padding:1rem}.user_type_image{display:flex;background-size:cover;background-repeat:no-repeat;background-position:center;height:100%;border-radius:1rem;padding:1rem}}\n"], components: [{ type: InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "withPipe", "list", "iconUrl", "control", "prefix", "thousands", "decimal"], outputs: ["dateSelected"] }, { type: SelectComponent, selector: "ipt-select", inputs: ["isRequired", "data", "defaultText", "selectCode", "disabledSel", "control"], outputs: ["eventSelect"] }, { type: ButtonComponent, selector: "ipt-button", inputs: ["primary", "size", "label", "buttonType", "isEnabled"], outputs: ["onClick"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "titlecase": i1.TitleCasePipe }, animations: [
1445
+ trigger('fade', [
1446
+ transition('void => *', [
1447
+ style({ opacity: 0 }),
1448
+ animate(200, style({ opacity: 1 }))
1449
+ ])
1450
+ ])
1451
+ ] });
1452
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CreateUserFormComponent, decorators: [{
1453
+ type: Component,
1454
+ args: [{ selector: 'ipt-create-user-form', animations: [
1455
+ trigger('fade', [
1456
+ transition('void => *', [
1457
+ style({ opacity: 0 }),
1458
+ animate(200, style({ opacity: 1 }))
1459
+ ])
1460
+ ])
1461
+ ], template: "<main *ngIf=\"visibility\">\n <div @fade class=\"modal_container\">\n <div class=\"header_modal\">\n <h1>Crear usuario de {{ userType | titlecase}}</h1>\n <button (click)=\"closeModal()\">x</button>\n </div>\n <div class=\"grid_container\">\n <div>\n <form autocomplete=\"off\" [formGroup]=\"createUserForm\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Nombre completo'\"\n [control]=\"createUserForm.controls['name']\"\n [validateText]=\"'Debe ingresar el nombre'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Apellidos'\"\n [control]=\"createUserForm.controls['last_name']\"\n [validateText]=\"'Debe ingresar los apellidos'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Correo electr\u00F3nico'\"\n [control]=\"createUserForm.controls['email']\"\n [validateText]=\"'Debe tener dominio @inglesparatodos.edu.co'\"\n ></ipt-input>\n <ipt-select\n [isRequired]=\"true\"\n [defaultText]=\"'Seleccione el rol'\"\n (eventSelect)=\"selectRol($event)\"\n [data]=\"getRolesOptions()\"\n ></ipt-select>\n <ipt-select\n [isRequired]=\"true\"\n [data]=\"phoneNumberIndicatives\"\n (eventSelect)=\"selectIndicatives($event)\"\n [defaultText]=\"'Seleccione el indicativo'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'N\u00FAmero de tel\u00E9fono'\"\n [control]=\"createUserForm.controls['phone_number']\"\n [validateText]=\"'Debe ingresar un n\u00FAmero de tel\u00E9fono v\u00E1lido'\"\n ></ipt-input>\n <ipt-select\n [isRequired]=\"true\"\n [data]=\"idTypes\"\n (eventSelect)=\"selectIdType($event)\"\n [defaultText]=\"'Ingrese el tipo de documento'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'Documento de identidad'\"\n [control]=\"createUserForm.controls['id_card']\"\n [validateText]=\"'Debe ingresar el n\u00FAmero de documento'\"\n ></ipt-input>\n <ipt-select\n [isRequired]=\"true\"\n (eventSelect)=\"selectState($event)\"\n [data]=\"states\"\n [defaultText]=\"'Seleccione el departamento'\"\n ></ipt-select>\n <ipt-select\n [isRequired]=\"true\"\n (eventSelect)=\"selectCity($event)\"\n [data]=\"cities\"\n [defaultText]=\"'Ciudad de residencia'\"\n ></ipt-select>\n <ipt-input *ngIf=\"!(userType === 'student')\"\n [inputType]=\"'number'\"\n [placeHolder]=\"'Ingrese las horas de servicio'\"\n [control]=\"createUserForm.controls['service_hour']\"\n [validateText]=\"'Debe ingresar las horas de servicio'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'password'\"\n [placeHolder]=\"'Contrase\u00F1a'\"\n [control]=\"createUserForm.controls['password']\"\n >\n </ipt-input>\n <ipt-input\n [inputType]=\"'password'\"\n [placeHolder]=\"'Repetir contrase\u00F1a'\"\n [control]=\"createUserForm.controls['re_password']\"\n >\n </ipt-input>\n </form>\n\n <div class=\"buttons-container\">\n <ipt-button\n [label]=\"'Crear usuario'\"\n [isEnabled]=\"\n !loader &&\n createUserForm.value['re_password'] ===\n createUserForm.value['password']\n \"\n (onClick)=\"createUser()\"\n [primary]=\"true\"\n >\n </ipt-button>\n </div>\n </div>\n <div [ngStyle]=\"{'background-image': 'url(' + photo + ')'}\" class=\"user_type_image\"></div>\n </div>\n </div>\n</main>\n", styles: ["@media screen and (min-width: 320px){main{background:rgba(0,0,0,.472);color:#fff;position:fixed;top:0;left:0;height:100vh;width:100vw;transition:all .5s}main .modal_container{width:60%;height:-moz-fit-content;height:fit-content;position:absolute;inset:0;margin:auto;background-color:#fff;border-radius:6px}.header_modal{display:flex;padding:0 15px;gap:1rem;align-items:center}.header_modal h1{padding:.5rem;background-color:#1c77f7;color:#fff;width:100%;border-radius:10px;font-size:1.25rem;font-weight:700}.header_modal button{margin-left:auto;font-size:26px;padding:1.2rem;font-weight:200;color:#6c7f7d;display:flex;width:25px;height:25px;align-items:center;justify-content:center;transition:50ms;background-color:transparent;border:none}.header_modal button:hover{cursor:pointer;border-radius:50%;background-color:#d4d4d4}.grid_container{display:grid;grid-template-columns:1fr}form{display:grid;grid-template-columns:1fr;grid-gap:.25rem;gap:.25rem;justify-content:center;padding:0 1rem}.buttons-container{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center;align-items:center;justify-items:center;align-content:center}.user_type_image{display:none}}@media screen and (min-width: 768px){form{display:grid;grid-template-columns:1fr 1fr;grid-gap:1rem;gap:1rem;justify-content:center}}@media screen and (min-width: 1366px){form{padding:0rem}.grid_container{display:grid;grid-template-columns:1fr 250px;grid-gap:1rem;gap:1rem;padding:1rem}.user_type_image{display:flex;background-size:cover;background-repeat:no-repeat;background-position:center;height:100%;border-radius:1rem;padding:1rem}}\n"] }]
1462
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: ParameterService }, { type: UserService }]; }, propDecorators: { userType: [{
1463
+ type: Input
1464
+ }], visibility: [{
1465
+ type: Input
1466
+ }], userCreated: [{
1467
+ type: Output
1468
+ }], onHide: [{
1469
+ type: Output
1465
1470
  }] } });
1466
1471
 
1467
- class SidenavComponent {
1468
- constructor(userService, storageService) {
1469
- this.userService = userService;
1470
- this.storageService = storageService;
1471
- this.pageChangeEvent = new EventEmitter();
1472
- this.routes = [];
1473
- this.options = { weekday: 'long', month: 'long', day: 'numeric' };
1474
- this.currentDay = new Date().toLocaleDateString('en-EN', this.options);
1475
- this.hour = new Date().getHours();
1476
- }
1477
- ngOnInit() {
1478
- let user = this.storageService.getCurrentUser()?.token;
1479
- let token = user === undefined ? '' : user;
1480
- let request = {
1481
- token: token,
1482
- };
1483
- this.userService.getRoutesForRole(request).subscribe((response) => {
1484
- this.routes = response.data;
1485
- });
1486
- }
1487
- clickPage(event) {
1488
- this.pageChangeEvent.emit(event);
1489
- }
1490
- logout() {
1491
- this.storageService.logout();
1492
- this.pageChangeEvent.emit('logout');
1493
- }
1494
- }
1495
- 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 });
1496
- 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: `
1497
- <mat-sidenav #sidenav mode="push" >
1498
- <mat-toolbar color="primary" (click)="sidenav.toggle()">
1499
- <span style="font-size: 15px;">{{department}}</span>
1500
- <span class="menu-icon-close"></span>
1501
- </mat-toolbar>
1502
-
1503
- <mat-nav-list *ngFor="let route of routes">
1504
- <nav class="flex-container-menu">
1505
- <ipt-aside-button
1506
- [buttonActive]="this.setPage === route.page"
1507
- [icon]="route.icon"
1508
- [text]="route.text"
1509
- (isClicked)="clickPage(route.page)"
1510
- (click)="sidenav.toggle()"
1511
- >
1512
- </ipt-aside-button>
1513
- </nav>
1514
- </mat-nav-list>
1515
- </mat-sidenav>
1516
-
1517
- <mat-toolbar class="header">
1518
- <div class="menu-container" (click)="sidenav.toggle()">
1519
- <p>Menu</p>
1520
- <div class="menu-icon"></div>
1521
- </div>
1522
-
1523
- <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1524
-
1525
- <div class="text-container">
1526
- <span class="p1">{{ currentDay }}</span>
1527
- <span *ngIf="hour >= 0 && hour < 12" class="p2">
1528
- Hey {{ userName }}, Good moorning!
1529
- </span>
1530
- <p *ngIf="hour >= 12 && hour < 18" class="p2">
1531
- Hey {{ userName }}, Good afternoon!
1532
- </p>
1533
- <p *ngIf="hour >= 18 && hour < 24" class="p2">
1534
- Hey {{ userName }}, Good evening!
1535
- </p>
1536
- </div>
1537
-
1538
- <div class="logout-container" (click)="logout()">
1539
- <p class="logout-button">Cerrar sesión</p>
1540
- <div class="photo-logout"></div>
1541
- </div>
1542
- </mat-toolbar>
1543
- `, 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"] }] });
1544
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, decorators: [{
1545
- type: Component,
1546
- args: [{ selector: 'ipt-sidenav', template: `
1547
- <mat-sidenav #sidenav mode="push" >
1548
- <mat-toolbar color="primary" (click)="sidenav.toggle()">
1549
- <span style="font-size: 15px;">{{department}}</span>
1550
- <span class="menu-icon-close"></span>
1551
- </mat-toolbar>
1552
-
1553
- <mat-nav-list *ngFor="let route of routes">
1554
- <nav class="flex-container-menu">
1555
- <ipt-aside-button
1556
- [buttonActive]="this.setPage === route.page"
1557
- [icon]="route.icon"
1558
- [text]="route.text"
1559
- (isClicked)="clickPage(route.page)"
1560
- (click)="sidenav.toggle()"
1561
- >
1562
- </ipt-aside-button>
1563
- </nav>
1564
- </mat-nav-list>
1565
- </mat-sidenav>
1566
-
1567
- <mat-toolbar class="header">
1568
- <div class="menu-container" (click)="sidenav.toggle()">
1569
- <p>Menu</p>
1570
- <div class="menu-icon"></div>
1571
- </div>
1572
-
1573
- <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1574
-
1575
- <div class="text-container">
1576
- <span class="p1">{{ currentDay }}</span>
1577
- <span *ngIf="hour >= 0 && hour < 12" class="p2">
1578
- Hey {{ userName }}, Good moorning!
1579
- </span>
1580
- <p *ngIf="hour >= 12 && hour < 18" class="p2">
1581
- Hey {{ userName }}, Good afternoon!
1582
- </p>
1583
- <p *ngIf="hour >= 18 && hour < 24" class="p2">
1584
- Hey {{ userName }}, Good evening!
1585
- </p>
1586
- </div>
1587
-
1588
- <div class="logout-container" (click)="logout()">
1589
- <p class="logout-button">Cerrar sesión</p>
1590
- <div class="photo-logout"></div>
1591
- </div>
1592
- </mat-toolbar>
1593
- `, 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"] }]
1594
- }], ctorParameters: function () { return [{ type: UserService }, { type: StorageService }]; }, propDecorators: { department: [{
1595
- type: Input
1596
- }], setPage: [{
1597
- type: Input
1598
- }], userName: [{
1599
- type: Input
1600
- }], pageChangeEvent: [{
1601
- type: Output
1472
+ class SidenavComponent {
1473
+ constructor(userService, baseService, storageService) {
1474
+ this.userService = userService;
1475
+ this.baseService = baseService;
1476
+ this.storageService = storageService;
1477
+ this.pageChangeEvent = new EventEmitter();
1478
+ this.appUser = false;
1479
+ this.routes = [];
1480
+ this.options = { weekday: 'long', month: 'long', day: 'numeric' };
1481
+ this.currentDay = new Date().toLocaleDateString('en-EN', this.options);
1482
+ this.hour = new Date().getHours();
1483
+ }
1484
+ ngOnInit() {
1485
+ let user = this.storageService.getCurrentUser()?.token;
1486
+ let token = user === undefined ? '' : user;
1487
+ let request = {
1488
+ token: token,
1489
+ };
1490
+ this.userService.getRoutesForRole(request).subscribe((response) => {
1491
+ this.routes = response.data;
1492
+ });
1493
+ this.appUser = this.baseService.isAnAppUser();
1494
+ }
1495
+ clickPage(event) {
1496
+ this.pageChangeEvent.emit(event);
1497
+ }
1498
+ logout() {
1499
+ this.storageService.logout();
1500
+ this.pageChangeEvent.emit('logout');
1501
+ }
1502
+ }
1503
+ SidenavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, deps: [{ token: UserService }, { token: i2.BaseService }, { token: StorageService }], target: i0.ɵɵFactoryTarget.Component });
1504
+ 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: `
1505
+ <mat-sidenav #sidenav mode="push" >
1506
+ <mat-toolbar color="primary" (click)="sidenav.toggle()">
1507
+ <span style="font-size: 15px;">{{department}}</span>
1508
+ <span class="menu-icon-close"></span>
1509
+ </mat-toolbar>
1510
+
1511
+ <mat-nav-list *ngFor="let route of routes">
1512
+ <nav class="flex-container-menu">
1513
+ <ipt-aside-button
1514
+ [buttonActive]="this.setPage === route.page"
1515
+ [icon]="route.icon"
1516
+ [text]="route.text"
1517
+ (isClicked)="clickPage(route.page)"
1518
+ (click)="sidenav.toggle()"
1519
+ >
1520
+ </ipt-aside-button>
1521
+ </nav>
1522
+ </mat-nav-list>
1523
+ </mat-sidenav>
1524
+
1525
+ <mat-toolbar class="header">
1526
+ <div class="menu-container" (click)="sidenav.toggle()">
1527
+ <p>Menu</p>
1528
+ <div class="menu-icon"></div>
1529
+ </div>
1530
+
1531
+ <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1532
+
1533
+ <div class="text-container">
1534
+ <span class="p1">{{ currentDay }}</span>
1535
+ <span *ngIf="hour >= 0 && hour < 12" class="p2">
1536
+ Hey {{ userName }}, Good moorning!
1537
+ </span>
1538
+ <p *ngIf="hour >= 12 && hour < 18" class="p2">
1539
+ Hey {{ userName }}, Good afternoon!
1540
+ </p>
1541
+ <p *ngIf="hour >= 18 && hour < 24" class="p2">
1542
+ Hey {{ userName }}, Good evening!
1543
+ </p>
1544
+ </div>
1545
+
1546
+ <div *ngIf="!this.appUser" class="logout-container" (click)="logout()">
1547
+ <p class="logout-button">Cerrar sesión</p>
1548
+ <div class="photo-logout"></div>
1549
+ </div>
1550
+ </mat-toolbar>
1551
+ `, 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: i4.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { type: i5.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i6.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"] }] });
1552
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, decorators: [{
1553
+ type: Component,
1554
+ args: [{ selector: 'ipt-sidenav', template: `
1555
+ <mat-sidenav #sidenav mode="push" >
1556
+ <mat-toolbar color="primary" (click)="sidenav.toggle()">
1557
+ <span style="font-size: 15px;">{{department}}</span>
1558
+ <span class="menu-icon-close"></span>
1559
+ </mat-toolbar>
1560
+
1561
+ <mat-nav-list *ngFor="let route of routes">
1562
+ <nav class="flex-container-menu">
1563
+ <ipt-aside-button
1564
+ [buttonActive]="this.setPage === route.page"
1565
+ [icon]="route.icon"
1566
+ [text]="route.text"
1567
+ (isClicked)="clickPage(route.page)"
1568
+ (click)="sidenav.toggle()"
1569
+ >
1570
+ </ipt-aside-button>
1571
+ </nav>
1572
+ </mat-nav-list>
1573
+ </mat-sidenav>
1574
+
1575
+ <mat-toolbar class="header">
1576
+ <div class="menu-container" (click)="sidenav.toggle()">
1577
+ <p>Menu</p>
1578
+ <div class="menu-icon"></div>
1579
+ </div>
1580
+
1581
+ <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1582
+
1583
+ <div class="text-container">
1584
+ <span class="p1">{{ currentDay }}</span>
1585
+ <span *ngIf="hour >= 0 && hour < 12" class="p2">
1586
+ Hey {{ userName }}, Good moorning!
1587
+ </span>
1588
+ <p *ngIf="hour >= 12 && hour < 18" class="p2">
1589
+ Hey {{ userName }}, Good afternoon!
1590
+ </p>
1591
+ <p *ngIf="hour >= 18 && hour < 24" class="p2">
1592
+ Hey {{ userName }}, Good evening!
1593
+ </p>
1594
+ </div>
1595
+
1596
+ <div *ngIf="!this.appUser" class="logout-container" (click)="logout()">
1597
+ <p class="logout-button">Cerrar sesión</p>
1598
+ <div class="photo-logout"></div>
1599
+ </div>
1600
+ </mat-toolbar>
1601
+ `, 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"] }]
1602
+ }], ctorParameters: function () { return [{ type: UserService }, { type: i2.BaseService }, { type: StorageService }]; }, propDecorators: { department: [{
1603
+ type: Input
1604
+ }], setPage: [{
1605
+ type: Input
1606
+ }], userName: [{
1607
+ type: Input
1608
+ }], pageChangeEvent: [{
1609
+ type: Output
1602
1610
  }] } });
1603
1611
 
1604
- class MaterialModule {
1605
- }
1606
- MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1607
- MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule] });
1608
- MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, imports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule] });
1609
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, decorators: [{
1610
- type: NgModule,
1611
- args: [{
1612
- exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule],
1613
- }]
1612
+ class MaterialModule {
1613
+ }
1614
+ MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1615
+ MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule] });
1616
+ MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, imports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule] });
1617
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, decorators: [{
1618
+ type: NgModule,
1619
+ args: [{
1620
+ exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule],
1621
+ }]
1614
1622
  }] });
1615
1623
 
1616
- class ComponentsModule {
1617
- }
1618
- ComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1619
- ComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, declarations: [AsideButtonComponent,
1620
- ButtonComponent,
1621
- CheckboxComponent,
1622
- CreateUserFormComponent,
1623
- DatalistComponent,
1624
- InputComponent,
1625
- LevelButtonComponent,
1626
- LevelTextComponent,
1627
- LoginFormComponent,
1628
- LoaderComponent,
1629
- RadioComponent,
1630
- SelectComponent,
1631
- SidenavComponent,
1632
- TextLinkComponent], imports: [CommonModule,
1633
- // BrowserModule, // Para evitar doble carga de BrowserModule
1634
- FormsModule,
1635
- ReactiveFormsModule,
1636
- MaterialModule,
1637
- CurrencyMaskModule], exports: [AsideButtonComponent,
1638
- ButtonComponent,
1639
- CheckboxComponent,
1640
- CreateUserFormComponent,
1641
- DatalistComponent,
1642
- InputComponent,
1643
- LevelButtonComponent,
1644
- LevelTextComponent,
1645
- LoaderComponent,
1646
- RadioComponent,
1647
- SelectComponent,
1648
- TextLinkComponent,
1649
- LoginFormComponent,
1650
- SidenavComponent,
1651
- CurrencyMaskModule] });
1652
- ComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, providers: [
1653
- CurrencyPipe,
1654
- TitleCasePipe
1655
- ], imports: [[
1656
- CommonModule,
1657
- // BrowserModule, // Para evitar doble carga de BrowserModule
1658
- FormsModule,
1659
- ReactiveFormsModule,
1660
- MaterialModule,
1661
- CurrencyMaskModule
1662
- ], CurrencyMaskModule] });
1663
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, decorators: [{
1664
- type: NgModule,
1665
- args: [{
1666
- declarations: [
1667
- AsideButtonComponent,
1668
- ButtonComponent,
1669
- CheckboxComponent,
1670
- CreateUserFormComponent,
1671
- DatalistComponent,
1672
- InputComponent,
1673
- LevelButtonComponent,
1674
- LevelTextComponent,
1675
- LoginFormComponent,
1676
- LoaderComponent,
1677
- RadioComponent,
1678
- SelectComponent,
1679
- SidenavComponent,
1680
- TextLinkComponent,
1681
- ],
1682
- imports: [
1683
- CommonModule,
1684
- // BrowserModule, // Para evitar doble carga de BrowserModule
1685
- FormsModule,
1686
- ReactiveFormsModule,
1687
- MaterialModule,
1688
- CurrencyMaskModule
1689
- ],
1690
- exports: [
1691
- AsideButtonComponent,
1692
- ButtonComponent,
1693
- CheckboxComponent,
1694
- CreateUserFormComponent,
1695
- DatalistComponent,
1696
- InputComponent,
1697
- LevelButtonComponent,
1698
- LevelTextComponent,
1699
- LoaderComponent,
1700
- RadioComponent,
1701
- SelectComponent,
1702
- TextLinkComponent,
1703
- LoginFormComponent,
1704
- SidenavComponent,
1705
- CurrencyMaskModule
1706
- ],
1707
- providers: [
1708
- CurrencyPipe,
1709
- TitleCasePipe
1710
- ]
1711
- }]
1624
+ class ComponentsModule {
1625
+ }
1626
+ ComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1627
+ ComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, declarations: [AsideButtonComponent,
1628
+ ButtonComponent,
1629
+ CheckboxComponent,
1630
+ CreateUserFormComponent,
1631
+ DatalistComponent,
1632
+ InputComponent,
1633
+ LevelButtonComponent,
1634
+ LevelTextComponent,
1635
+ LoginFormComponent,
1636
+ LoaderComponent,
1637
+ RadioComponent,
1638
+ SelectComponent,
1639
+ SidenavComponent,
1640
+ TextLinkComponent], imports: [CommonModule,
1641
+ // BrowserModule, // Para evitar doble carga de BrowserModule
1642
+ FormsModule,
1643
+ ReactiveFormsModule,
1644
+ MaterialModule,
1645
+ CurrencyMaskModule], exports: [AsideButtonComponent,
1646
+ ButtonComponent,
1647
+ CheckboxComponent,
1648
+ CreateUserFormComponent,
1649
+ DatalistComponent,
1650
+ InputComponent,
1651
+ LevelButtonComponent,
1652
+ LevelTextComponent,
1653
+ LoaderComponent,
1654
+ RadioComponent,
1655
+ SelectComponent,
1656
+ TextLinkComponent,
1657
+ LoginFormComponent,
1658
+ SidenavComponent,
1659
+ CurrencyMaskModule] });
1660
+ ComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, providers: [
1661
+ CurrencyPipe,
1662
+ TitleCasePipe
1663
+ ], imports: [[
1664
+ CommonModule,
1665
+ // BrowserModule, // Para evitar doble carga de BrowserModule
1666
+ FormsModule,
1667
+ ReactiveFormsModule,
1668
+ MaterialModule,
1669
+ CurrencyMaskModule
1670
+ ], CurrencyMaskModule] });
1671
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, decorators: [{
1672
+ type: NgModule,
1673
+ args: [{
1674
+ declarations: [
1675
+ AsideButtonComponent,
1676
+ ButtonComponent,
1677
+ CheckboxComponent,
1678
+ CreateUserFormComponent,
1679
+ DatalistComponent,
1680
+ InputComponent,
1681
+ LevelButtonComponent,
1682
+ LevelTextComponent,
1683
+ LoginFormComponent,
1684
+ LoaderComponent,
1685
+ RadioComponent,
1686
+ SelectComponent,
1687
+ SidenavComponent,
1688
+ TextLinkComponent,
1689
+ ],
1690
+ imports: [
1691
+ CommonModule,
1692
+ // BrowserModule, // Para evitar doble carga de BrowserModule
1693
+ FormsModule,
1694
+ ReactiveFormsModule,
1695
+ MaterialModule,
1696
+ CurrencyMaskModule
1697
+ ],
1698
+ exports: [
1699
+ AsideButtonComponent,
1700
+ ButtonComponent,
1701
+ CheckboxComponent,
1702
+ CreateUserFormComponent,
1703
+ DatalistComponent,
1704
+ InputComponent,
1705
+ LevelButtonComponent,
1706
+ LevelTextComponent,
1707
+ LoaderComponent,
1708
+ RadioComponent,
1709
+ SelectComponent,
1710
+ TextLinkComponent,
1711
+ LoginFormComponent,
1712
+ SidenavComponent,
1713
+ CurrencyMaskModule
1714
+ ],
1715
+ providers: [
1716
+ CurrencyPipe,
1717
+ TitleCasePipe
1718
+ ]
1719
+ }]
1712
1720
  }] });
1713
1721
 
1714
- class CourseService {
1715
- constructor(http) {
1716
- this.http = http;
1717
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
1718
- }
1719
- createCourse(course) {
1720
- let serviceUrl = this.SERVICE_URL + 'post/course';
1721
- this.generateRequestParams(course);
1722
- return this.http.post(serviceUrl, this.httpOptions);
1723
- }
1724
- editCourse(course) {
1725
- let serviceUrl = this.SERVICE_URL + 'put/course';
1726
- this.generateRequestParams(course);
1727
- return this.http.put(serviceUrl, this.httpOptions);
1728
- }
1729
- getAllCourses(params) {
1730
- let serviceUrl = this.SERVICE_URL + 'post/all/courses';
1731
- this.generateRequestParams(params);
1732
- return this.http.post(serviceUrl, this.httpOptions);
1733
- }
1734
- getCoursesByLevel(params) {
1735
- let serviceUrl = this.SERVICE_URL + 'post/course/by/level';
1736
- this.generateRequestParams(params);
1737
- return this.http.post(serviceUrl, this.httpOptions);
1738
- }
1739
- getAvailibleCourses(availibleCourses) {
1740
- let serviceUrl = this.SERVICE_URL + 'post/course/for/cod';
1741
- this.generateRequestParams(availibleCourses);
1742
- return this.http.post(serviceUrl, this.httpOptions);
1743
- }
1744
- getCourseByCode(params) {
1745
- let serviceUrl = this.SERVICE_URL + 'post/course/by/code';
1746
- this.generateRequestParams(params);
1747
- return this.http.post(serviceUrl, this.httpOptions);
1748
- }
1749
- getCoursesByTeacher(params) {
1750
- let serviceUrl = this.SERVICE_URL + 'post/course/by/teacher';
1751
- this.generateRequestParams(params);
1752
- return this.http.post(serviceUrl, this.httpOptions);
1753
- }
1754
- getFilteredCoursesByTeacher(params) {
1755
- let serviceUrl = this.SERVICE_URL + 'post/course/filtered/by/teacher';
1756
- this.generateRequestParams(params);
1757
- return this.http.post(serviceUrl, this.httpOptions);
1758
- }
1759
- getCoursesByStartDate(params) {
1760
- let serviceUrl = this.SERVICE_URL + 'post/course/by/startdate';
1761
- this.generateRequestParams(params);
1762
- return this.http.post(serviceUrl, this.httpOptions);
1763
- }
1764
- numberClassByCode(idCode) {
1765
- let serviceUrl = this.SERVICE_URL + 'get/coursetype/numclass/by/code/' + idCode;
1766
- return this.http.get(serviceUrl);
1767
- }
1768
- // construye los headers y params
1769
- generateRequestParams(param) {
1770
- this.httpOptions = {
1771
- header: new HttpHeaders(),
1772
- params: param,
1773
- };
1774
- }
1775
- }
1776
- 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 });
1777
- CourseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, providedIn: 'root' });
1778
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, decorators: [{
1779
- type: Injectable,
1780
- args: [{
1781
- providedIn: 'root',
1782
- }]
1722
+ class CourseService {
1723
+ constructor(http) {
1724
+ this.http = http;
1725
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
1726
+ }
1727
+ createCourse(course) {
1728
+ let serviceUrl = this.SERVICE_URL + 'post/course';
1729
+ this.generateRequestParams(course);
1730
+ return this.http.post(serviceUrl, this.httpOptions);
1731
+ }
1732
+ editCourse(course) {
1733
+ let serviceUrl = this.SERVICE_URL + 'put/course';
1734
+ this.generateRequestParams(course);
1735
+ return this.http.put(serviceUrl, this.httpOptions);
1736
+ }
1737
+ getAllCourses(params) {
1738
+ let serviceUrl = this.SERVICE_URL + 'post/all/courses';
1739
+ this.generateRequestParams(params);
1740
+ return this.http.post(serviceUrl, this.httpOptions);
1741
+ }
1742
+ getCoursesByLevel(params) {
1743
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/level';
1744
+ this.generateRequestParams(params);
1745
+ return this.http.post(serviceUrl, this.httpOptions);
1746
+ }
1747
+ getAvailibleCourses(availibleCourses) {
1748
+ let serviceUrl = this.SERVICE_URL + 'post/course/for/cod';
1749
+ this.generateRequestParams(availibleCourses);
1750
+ return this.http.post(serviceUrl, this.httpOptions);
1751
+ }
1752
+ getCourseByCode(params) {
1753
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/code';
1754
+ this.generateRequestParams(params);
1755
+ return this.http.post(serviceUrl, this.httpOptions);
1756
+ }
1757
+ getCoursesByTeacher(params) {
1758
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/teacher';
1759
+ this.generateRequestParams(params);
1760
+ return this.http.post(serviceUrl, this.httpOptions);
1761
+ }
1762
+ getFilteredCoursesByTeacher(params) {
1763
+ let serviceUrl = this.SERVICE_URL + 'post/course/filtered/by/teacher';
1764
+ this.generateRequestParams(params);
1765
+ return this.http.post(serviceUrl, this.httpOptions);
1766
+ }
1767
+ getCoursesByStartDate(params) {
1768
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/startdate';
1769
+ this.generateRequestParams(params);
1770
+ return this.http.post(serviceUrl, this.httpOptions);
1771
+ }
1772
+ numberClassByCode(idCode) {
1773
+ let serviceUrl = this.SERVICE_URL + 'get/coursetype/numclass/by/code/' + idCode;
1774
+ return this.http.get(serviceUrl);
1775
+ }
1776
+ // construye los headers y params
1777
+ generateRequestParams(param) {
1778
+ this.httpOptions = {
1779
+ header: new HttpHeaders(),
1780
+ params: param,
1781
+ };
1782
+ }
1783
+ }
1784
+ 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 });
1785
+ CourseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, providedIn: 'root' });
1786
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, decorators: [{
1787
+ type: Injectable,
1788
+ args: [{
1789
+ providedIn: 'root',
1790
+ }]
1783
1791
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1784
1792
 
1785
- class RedirectGuard {
1786
- constructor(router) {
1787
- this.router = router;
1788
- }
1789
- canActivate(route, state) {
1790
- window.location.href = route.data['externalUrl'];
1791
- return true;
1792
- }
1793
- }
1794
- 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 });
1795
- RedirectGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard });
1796
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard, decorators: [{
1797
- type: Injectable
1793
+ class RedirectGuard {
1794
+ constructor(router) {
1795
+ this.router = router;
1796
+ }
1797
+ canActivate(route, state) {
1798
+ window.location.href = route.data['externalUrl'];
1799
+ return true;
1800
+ }
1801
+ }
1802
+ 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 });
1803
+ RedirectGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard });
1804
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard, decorators: [{
1805
+ type: Injectable
1798
1806
  }], ctorParameters: function () { return [{ type: i1$3.Router }]; } });
1799
1807
 
1800
- class SwitchService {
1801
- constructor() {
1802
- this.$modal = new EventEmitter();
1803
- }
1804
- }
1805
- SwitchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1806
- SwitchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, providedIn: 'root' });
1807
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, decorators: [{
1808
- type: Injectable,
1809
- args: [{
1810
- providedIn: 'root'
1811
- }]
1808
+ class SwitchService {
1809
+ constructor() {
1810
+ this.$modal = new EventEmitter();
1811
+ }
1812
+ }
1813
+ SwitchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1814
+ SwitchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, providedIn: 'root' });
1815
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, decorators: [{
1816
+ type: Injectable,
1817
+ args: [{
1818
+ providedIn: 'root'
1819
+ }]
1812
1820
  }], ctorParameters: function () { return []; } });
1813
1821
 
1814
- class TestService {
1815
- constructor(http) {
1816
- this.http = http;
1817
- this.SERVICE_URL = 'https://iptdev.com.co/lab/test/api/';
1818
- }
1819
- // ---------------------- EXÁMENES ---------------------- //
1820
- createExam(exam) {
1821
- let serviceUrl = this.SERVICE_URL + 'post/exam';
1822
- this.generateRequestParams(exam);
1823
- return this.http.post(serviceUrl, this.httpOptions);
1824
- }
1825
- getAllExams(params) {
1826
- let serviceUrl = this.SERVICE_URL + 'post/all/exam';
1827
- this.generateRequestParams(params);
1828
- return this.http.post(serviceUrl, this.httpOptions);
1829
- }
1830
- updateExam(params) {
1831
- let serviceUrl = this.SERVICE_URL + 'update/exam';
1832
- this.generateRequestParams(params);
1833
- return this.http.put(serviceUrl, this.httpOptions);
1834
- }
1835
- updateExamStatus(params) {
1836
- let serviceUrl = this.SERVICE_URL + 'update/exam/status';
1837
- this.generateRequestParams(params);
1838
- return this.http.put(serviceUrl, this.httpOptions);
1839
- }
1840
- copyExam(params) {
1841
- let serviceUrl = this.SERVICE_URL + 'copy/exam';
1842
- this.generateRequestParams(params);
1843
- return this.http.put(serviceUrl, this.httpOptions);
1844
- }
1845
- getExamByCode(code) {
1846
- let serviceUrl = this.SERVICE_URL + 'get/exam/by/code/' + code;
1847
- return this.http.get(serviceUrl);
1848
- }
1849
- getExamByAuthor(code) {
1850
- let serviceUrl = this.SERVICE_URL + 'get/exams/by/author/' + code;
1851
- return this.http.get(serviceUrl);
1852
- }
1853
- // ---------------------- SECCIONES ---------------------- //
1854
- createSectionWithAll(params) {
1855
- let serviceUrl = this.SERVICE_URL + 'post/section/with/all';
1856
- this.generateRequestParams(params);
1857
- return this.http.post(serviceUrl, this.httpOptions);
1858
- }
1859
- createSection(params) {
1860
- let serviceUrl = this.SERVICE_URL + 'post/section';
1861
- this.generateRequestParams(params);
1862
- return this.http.post(serviceUrl, this.httpOptions);
1863
- }
1864
- getAllSections(params) {
1865
- let serviceUrl = this.SERVICE_URL + 'post/all/sections';
1866
- this.generateRequestParams(params);
1867
- return this.http.post(serviceUrl, this.httpOptions);
1868
- }
1869
- updateSection(params) {
1870
- let serviceUrl = this.SERVICE_URL + 'update/section';
1871
- this.generateRequestParams(params);
1872
- return this.http.put(serviceUrl, this.httpOptions);
1873
- }
1874
- updateSectionMedia(params) {
1875
- let serviceUrl = this.SERVICE_URL + 'post/section/media';
1876
- this.generateRequestParams(params);
1877
- return this.http.post(serviceUrl, this.httpOptions);
1878
- }
1879
- updateSectionState(params) {
1880
- let serviceUrl = this.SERVICE_URL + 'update/section/state';
1881
- this.generateRequestParams(params);
1882
- return this.http.put(serviceUrl, this.httpOptions);
1883
- }
1884
- getSectionsByExam(code) {
1885
- let serviceUrl = this.SERVICE_URL + 'get/sections/by/exam/' + code;
1886
- return this.http.get(serviceUrl);
1887
- }
1888
- // ---------------------- PREGUNTAS ---------------------- //
1889
- createQuestion(params) {
1890
- let serviceUrl = this.SERVICE_URL + 'post/question';
1891
- this.generateRequestParams(params);
1892
- return this.http.post(serviceUrl, this.httpOptions);
1893
- }
1894
- updateQuestion(params) {
1895
- let serviceUrl = this.SERVICE_URL + 'update/question';
1896
- this.generateRequestParams(params);
1897
- return this.http.put(serviceUrl, this.httpOptions);
1898
- }
1899
- getQuestionsBySections(params) {
1900
- let serviceUrl = this.SERVICE_URL + 'get/questions/by/sections';
1901
- this.generateRequestParams(params);
1902
- return this.http.post(serviceUrl, this.httpOptions);
1903
- }
1904
- getQuestionsBySection(params) {
1905
- let serviceUrl = this.SERVICE_URL + 'get/questions/by/section';
1906
- this.generateRequestParams(params);
1907
- return this.http.post(serviceUrl, this.httpOptions);
1908
- }
1909
- // ---------------------- RESPUESTAS ---------------------- //
1910
- createAnswer(params) {
1911
- let serviceUrl = this.SERVICE_URL + 'post/answer';
1912
- this.generateRequestParams(params);
1913
- return this.http.post(serviceUrl, this.httpOptions);
1914
- }
1915
- updateAnswer(params) {
1916
- let serviceUrl = this.SERVICE_URL + 'update/answer';
1917
- this.generateRequestParams(params);
1918
- return this.http.put(serviceUrl, this.httpOptions);
1919
- }
1920
- getAnswersByQuestion(code) {
1921
- let serviceUrl = this.SERVICE_URL + 'get/answers/by/question/' + code;
1922
- return this.http.get(serviceUrl, this.httpOptions);
1923
- }
1924
- updateQuestionState(params) {
1925
- let serviceUrl = this.SERVICE_URL + 'update/question/state';
1926
- this.generateRequestParams(params);
1927
- return this.http.put(serviceUrl, this.httpOptions);
1928
- }
1929
- // construye los headers y params
1930
- generateRequestParams(param) {
1931
- this.httpOptions = {
1932
- header: new HttpHeaders(),
1933
- params: param,
1934
- };
1935
- }
1936
- }
1937
- 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 });
1938
- TestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, providedIn: 'root' });
1939
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, decorators: [{
1940
- type: Injectable,
1941
- args: [{
1942
- providedIn: 'root',
1943
- }]
1822
+ class TestService {
1823
+ constructor(http) {
1824
+ this.http = http;
1825
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/test/api/';
1826
+ }
1827
+ // ---------------------- EXÁMENES ---------------------- //
1828
+ createExam(exam) {
1829
+ let serviceUrl = this.SERVICE_URL + 'post/exam';
1830
+ this.generateRequestParams(exam);
1831
+ return this.http.post(serviceUrl, this.httpOptions);
1832
+ }
1833
+ getAllExams(params) {
1834
+ let serviceUrl = this.SERVICE_URL + 'post/all/exam';
1835
+ this.generateRequestParams(params);
1836
+ return this.http.post(serviceUrl, this.httpOptions);
1837
+ }
1838
+ updateExam(params) {
1839
+ let serviceUrl = this.SERVICE_URL + 'update/exam';
1840
+ this.generateRequestParams(params);
1841
+ return this.http.put(serviceUrl, this.httpOptions);
1842
+ }
1843
+ updateExamStatus(params) {
1844
+ let serviceUrl = this.SERVICE_URL + 'update/exam/status';
1845
+ this.generateRequestParams(params);
1846
+ return this.http.put(serviceUrl, this.httpOptions);
1847
+ }
1848
+ copyExam(params) {
1849
+ let serviceUrl = this.SERVICE_URL + 'copy/exam';
1850
+ this.generateRequestParams(params);
1851
+ return this.http.put(serviceUrl, this.httpOptions);
1852
+ }
1853
+ getExamByCode(code) {
1854
+ let serviceUrl = this.SERVICE_URL + 'get/exam/by/code/' + code;
1855
+ return this.http.get(serviceUrl);
1856
+ }
1857
+ getExamByAuthor(code) {
1858
+ let serviceUrl = this.SERVICE_URL + 'get/exams/by/author/' + code;
1859
+ return this.http.get(serviceUrl);
1860
+ }
1861
+ // ---------------------- SECCIONES ---------------------- //
1862
+ createSectionWithAll(params) {
1863
+ let serviceUrl = this.SERVICE_URL + 'post/section/with/all';
1864
+ this.generateRequestParams(params);
1865
+ return this.http.post(serviceUrl, this.httpOptions);
1866
+ }
1867
+ createSection(params) {
1868
+ let serviceUrl = this.SERVICE_URL + 'post/section';
1869
+ this.generateRequestParams(params);
1870
+ return this.http.post(serviceUrl, this.httpOptions);
1871
+ }
1872
+ getAllSections(params) {
1873
+ let serviceUrl = this.SERVICE_URL + 'post/all/sections';
1874
+ this.generateRequestParams(params);
1875
+ return this.http.post(serviceUrl, this.httpOptions);
1876
+ }
1877
+ updateSection(params) {
1878
+ let serviceUrl = this.SERVICE_URL + 'update/section';
1879
+ this.generateRequestParams(params);
1880
+ return this.http.put(serviceUrl, this.httpOptions);
1881
+ }
1882
+ updateSectionMedia(params) {
1883
+ let serviceUrl = this.SERVICE_URL + 'post/section/media';
1884
+ this.generateRequestParams(params);
1885
+ return this.http.post(serviceUrl, this.httpOptions);
1886
+ }
1887
+ updateSectionState(params) {
1888
+ let serviceUrl = this.SERVICE_URL + 'update/section/state';
1889
+ this.generateRequestParams(params);
1890
+ return this.http.put(serviceUrl, this.httpOptions);
1891
+ }
1892
+ getSectionsByExam(code) {
1893
+ let serviceUrl = this.SERVICE_URL + 'get/sections/by/exam/' + code;
1894
+ return this.http.get(serviceUrl);
1895
+ }
1896
+ // ---------------------- PREGUNTAS ---------------------- //
1897
+ createQuestion(params) {
1898
+ let serviceUrl = this.SERVICE_URL + 'post/question';
1899
+ this.generateRequestParams(params);
1900
+ return this.http.post(serviceUrl, this.httpOptions);
1901
+ }
1902
+ updateQuestion(params) {
1903
+ let serviceUrl = this.SERVICE_URL + 'update/question';
1904
+ this.generateRequestParams(params);
1905
+ return this.http.put(serviceUrl, this.httpOptions);
1906
+ }
1907
+ getQuestionsBySections(params) {
1908
+ let serviceUrl = this.SERVICE_URL + 'get/questions/by/sections';
1909
+ this.generateRequestParams(params);
1910
+ return this.http.post(serviceUrl, this.httpOptions);
1911
+ }
1912
+ getQuestionsBySection(params) {
1913
+ let serviceUrl = this.SERVICE_URL + 'get/questions/by/section';
1914
+ this.generateRequestParams(params);
1915
+ return this.http.post(serviceUrl, this.httpOptions);
1916
+ }
1917
+ // ---------------------- RESPUESTAS ---------------------- //
1918
+ createAnswer(params) {
1919
+ let serviceUrl = this.SERVICE_URL + 'post/answer';
1920
+ this.generateRequestParams(params);
1921
+ return this.http.post(serviceUrl, this.httpOptions);
1922
+ }
1923
+ updateAnswer(params) {
1924
+ let serviceUrl = this.SERVICE_URL + 'update/answer';
1925
+ this.generateRequestParams(params);
1926
+ return this.http.put(serviceUrl, this.httpOptions);
1927
+ }
1928
+ getAnswersByQuestion(code) {
1929
+ let serviceUrl = this.SERVICE_URL + 'get/answers/by/question/' + code;
1930
+ return this.http.get(serviceUrl, this.httpOptions);
1931
+ }
1932
+ updateQuestionState(params) {
1933
+ let serviceUrl = this.SERVICE_URL + 'update/question/state';
1934
+ this.generateRequestParams(params);
1935
+ return this.http.put(serviceUrl, this.httpOptions);
1936
+ }
1937
+ // construye los headers y params
1938
+ generateRequestParams(param) {
1939
+ this.httpOptions = {
1940
+ header: new HttpHeaders(),
1941
+ params: param,
1942
+ };
1943
+ }
1944
+ }
1945
+ 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 });
1946
+ TestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, providedIn: 'root' });
1947
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, decorators: [{
1948
+ type: Injectable,
1949
+ args: [{
1950
+ providedIn: 'root',
1951
+ }]
1944
1952
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1945
1953
 
1946
- class MarketingService {
1947
- constructor(http) {
1948
- this.http = http;
1949
- this.SERVICE_URL = 'https://iptdev.com.co/lab/commercial/api/';
1950
- }
1951
- getStrategyByUserCommercial(user) {
1952
- let serviceUrl = this.SERVICE_URL + 'post/contact/strategy/byaviser';
1953
- this.generateRequestParams(user);
1954
- return this.http.post(serviceUrl, this.httpOptions);
1955
- }
1956
- getObservationsContact(codeContact) {
1957
- let serviceUrl = this.SERVICE_URL + 'get/contact/observation/strategy/bycode/' + codeContact;
1958
- return this.http.get(serviceUrl);
1959
- }
1960
- createObservations(params) {
1961
- let serviceUrl = this.SERVICE_URL + 'post/contact/observation/create';
1962
- this.generateRequestParams(params);
1963
- return this.http.post(serviceUrl, this.httpOptions);
1964
- }
1965
- getUserStatistics(userToken) {
1966
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
1967
- this.generateRequestParams(userToken);
1968
- return this.http.post(serviceUrl, this.httpOptions);
1969
- }
1970
- getTopAdviser() {
1971
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/topadviser';
1972
- return this.http.get(serviceUrl, this.httpOptions);
1973
- }
1974
- getMovementStatus() {
1975
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/movements/status';
1976
- return this.http.get(serviceUrl, this.httpOptions);
1977
- }
1978
- getgroupSignupStatus() {
1979
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/group/signup';
1980
- return this.http.get(serviceUrl, this.httpOptions);
1981
- }
1982
- //Construye los headers y paramns
1983
- generateRequestParams(param) {
1984
- this.httpOptions = {
1985
- header: new HttpHeaders(),
1986
- params: param,
1987
- };
1988
- }
1989
- }
1990
- 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 });
1991
- MarketingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, providedIn: 'root' });
1992
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, decorators: [{
1993
- type: Injectable,
1994
- args: [{
1995
- providedIn: 'root'
1996
- }]
1954
+ class MarketingService {
1955
+ constructor(http) {
1956
+ this.http = http;
1957
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/commercial/api/';
1958
+ }
1959
+ getStrategyByUserCommercial(user) {
1960
+ let serviceUrl = this.SERVICE_URL + 'post/contact/strategy/byaviser';
1961
+ this.generateRequestParams(user);
1962
+ return this.http.post(serviceUrl, this.httpOptions);
1963
+ }
1964
+ getObservationsContact(codeContact) {
1965
+ let serviceUrl = this.SERVICE_URL + 'get/contact/observation/strategy/bycode/' + codeContact;
1966
+ return this.http.get(serviceUrl);
1967
+ }
1968
+ createObservations(params) {
1969
+ let serviceUrl = this.SERVICE_URL + 'post/contact/observation/create';
1970
+ this.generateRequestParams(params);
1971
+ return this.http.post(serviceUrl, this.httpOptions);
1972
+ }
1973
+ getUserStatistics(userToken) {
1974
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
1975
+ this.generateRequestParams(userToken);
1976
+ return this.http.post(serviceUrl, this.httpOptions);
1977
+ }
1978
+ getTopAdviser() {
1979
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/topadviser';
1980
+ return this.http.get(serviceUrl, this.httpOptions);
1981
+ }
1982
+ getMovementStatus() {
1983
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/movements/status';
1984
+ return this.http.get(serviceUrl, this.httpOptions);
1985
+ }
1986
+ getgroupSignupStatus() {
1987
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/group/signup';
1988
+ return this.http.get(serviceUrl, this.httpOptions);
1989
+ }
1990
+ //Construye los headers y paramns
1991
+ generateRequestParams(param) {
1992
+ this.httpOptions = {
1993
+ header: new HttpHeaders(),
1994
+ params: param,
1995
+ };
1996
+ }
1997
+ }
1998
+ 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 });
1999
+ MarketingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, providedIn: 'root' });
2000
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, decorators: [{
2001
+ type: Injectable,
2002
+ args: [{
2003
+ providedIn: 'root'
2004
+ }]
1997
2005
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1998
2006
 
1999
- class BudgetService {
2000
- constructor(http) {
2001
- this.http = http;
2002
- this.SERVICE_URL = 'https://iptdev.com.co/lab/budget/api/';
2003
- }
2004
- getAllDiscount(user) {
2005
- let serviceUrl = this.SERVICE_URL + 'post/discounts/coupon/all';
2006
- this.generateRequestParams(user);
2007
- return this.http.post(serviceUrl, this.httpOptions);
2008
- }
2009
- createDiscount(params) {
2010
- let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/create';
2011
- this.generateRequestParams(params);
2012
- return this.http.post(serviceUrl, this.httpOptions);
2013
- }
2014
- updateDiscount(params) {
2015
- let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/update';
2016
- this.generateRequestParams(params);
2017
- return this.http.post(serviceUrl, this.httpOptions);
2018
- }
2019
- //Construye los headers y paramns
2020
- generateRequestParams(param) {
2021
- this.httpOptions = {
2022
- header: new HttpHeaders(),
2023
- params: param,
2024
- };
2025
- }
2026
- }
2027
- 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 });
2028
- BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, providedIn: 'root' });
2029
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, decorators: [{
2030
- type: Injectable,
2031
- args: [{
2032
- providedIn: 'root'
2033
- }]
2007
+ class BudgetService {
2008
+ constructor(http) {
2009
+ this.http = http;
2010
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/budget/api/';
2011
+ }
2012
+ getAllDiscount(user) {
2013
+ let serviceUrl = this.SERVICE_URL + 'post/discounts/coupon/all';
2014
+ this.generateRequestParams(user);
2015
+ return this.http.post(serviceUrl, this.httpOptions);
2016
+ }
2017
+ createDiscount(params) {
2018
+ let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/create';
2019
+ this.generateRequestParams(params);
2020
+ return this.http.post(serviceUrl, this.httpOptions);
2021
+ }
2022
+ updateDiscount(params) {
2023
+ let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/update';
2024
+ this.generateRequestParams(params);
2025
+ return this.http.post(serviceUrl, this.httpOptions);
2026
+ }
2027
+ //Construye los headers y paramns
2028
+ generateRequestParams(param) {
2029
+ this.httpOptions = {
2030
+ header: new HttpHeaders(),
2031
+ params: param,
2032
+ };
2033
+ }
2034
+ }
2035
+ 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 });
2036
+ BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, providedIn: 'root' });
2037
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, decorators: [{
2038
+ type: Injectable,
2039
+ args: [{
2040
+ providedIn: 'root'
2041
+ }]
2034
2042
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2035
2043
 
2036
- class ClassroomService {
2037
- constructor(http) {
2038
- this.http = http;
2039
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2040
- }
2041
- getClassroomsByModality(params) {
2042
- let serviceUrl = this.SERVICE_URL + 'post/classroom/by/modality';
2043
- this.generateRequestParams(params);
2044
- return this.http.post(serviceUrl, this.httpOptions);
2045
- }
2046
- getClassroomByIdCalendar(params) {
2047
- let serviceUrl = this.SERVICE_URL + 'post/classroom/by/idcalendar';
2048
- this.generateRequestParams(params);
2049
- return this.http.post(serviceUrl, this.httpOptions);
2050
- }
2051
- // construye los headers y params
2052
- generateRequestParams(param) {
2053
- this.httpOptions = {
2054
- header: new HttpHeaders(),
2055
- params: param,
2056
- };
2057
- }
2058
- }
2059
- ClassroomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClassroomService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2060
- ClassroomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClassroomService, providedIn: 'root' });
2061
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClassroomService, decorators: [{
2062
- type: Injectable,
2063
- args: [{
2064
- providedIn: 'root',
2065
- }]
2044
+ class ClassroomService {
2045
+ constructor(http) {
2046
+ this.http = http;
2047
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2048
+ }
2049
+ getClassroomsByModality(params) {
2050
+ let serviceUrl = this.SERVICE_URL + 'post/classroom/by/modality';
2051
+ this.generateRequestParams(params);
2052
+ return this.http.post(serviceUrl, this.httpOptions);
2053
+ }
2054
+ getClassroomByIdCalendar(params) {
2055
+ let serviceUrl = this.SERVICE_URL + 'post/classroom/by/idcalendar';
2056
+ this.generateRequestParams(params);
2057
+ return this.http.post(serviceUrl, this.httpOptions);
2058
+ }
2059
+ // construye los headers y params
2060
+ generateRequestParams(param) {
2061
+ this.httpOptions = {
2062
+ header: new HttpHeaders(),
2063
+ params: param,
2064
+ };
2065
+ }
2066
+ }
2067
+ ClassroomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClassroomService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2068
+ ClassroomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClassroomService, providedIn: 'root' });
2069
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClassroomService, decorators: [{
2070
+ type: Injectable,
2071
+ args: [{
2072
+ providedIn: 'root',
2073
+ }]
2066
2074
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2067
2075
 
2068
- class ActivityService {
2069
- constructor(http) {
2070
- this.http = http;
2071
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2072
- }
2073
- getActivityByCourse(params) {
2074
- let serviceUrl = this.SERVICE_URL + 'post/activities/by/course/code';
2075
- this.generateRequestParams(params);
2076
- return this.http.post(serviceUrl, this.httpOptions);
2077
- }
2078
- getNoticesByCourse(codeCourse) {
2079
- let serviceUrl = this.SERVICE_URL + 'post/notices/by/course/code/' + codeCourse;
2080
- return this.http.get(serviceUrl);
2081
- }
2082
- getUnitsByActivity(params) {
2083
- let serviceUrl = this.SERVICE_URL + 'post/units/by/activity/code';
2084
- this.generateRequestParams(params);
2085
- return this.http.post(serviceUrl, this.httpOptions);
2086
- }
2087
- getElementsByUnit(params) {
2088
- let serviceUrl = this.SERVICE_URL + 'post/element/by/unit/code';
2089
- this.generateRequestParams(params);
2090
- return this.http.post(serviceUrl, this.httpOptions);
2091
- }
2092
- getCourseTeacherByToken(params) {
2093
- let serviceUrl = this.SERVICE_URL + 'post/course/teacher/by/token';
2094
- this.generateRequestParams(params);
2095
- return this.http.post(serviceUrl, this.httpOptions);
2096
- }
2097
- getAllTypeResource() {
2098
- let serviceUrl = this.SERVICE_URL + 'get/all/type/resource/template';
2099
- return this.http.get(serviceUrl);
2100
- }
2101
- getAllTypeElement() {
2102
- let serviceUrl = this.SERVICE_URL + 'get/all/type/element/template';
2103
- return this.http.get(serviceUrl);
2104
- }
2105
- getElementsByUnitNew(params) {
2106
- let serviceUrl = this.SERVICE_URL + 'post/element/by/unit/code/new';
2107
- this.generateRequestParams(params);
2108
- return this.http.post(serviceUrl, this.httpOptions);
2109
- }
2110
- updateCourseByCronogram(params) {
2111
- let serviceUrl = this.SERVICE_URL + 'post/update/course/by/code';
2112
- this.generateRequestParams(params);
2113
- return this.http.post(serviceUrl, this.httpOptions);
2114
- }
2115
- getTemplateCourseByCourse(codeCourse) {
2116
- let serviceUrl = this.SERVICE_URL + 'get/template/course/by/course/code/' + codeCourse;
2117
- return this.http.get(serviceUrl);
2118
- }
2119
- saveMagnageActivity(params) {
2120
- let serviceUrl = this.SERVICE_URL + 'post/manage/activities/by/course/element';
2121
- this.generateRequestParams(params);
2122
- return this.http.post(serviceUrl, this.httpOptions);
2123
- }
2124
- postNotesActivityH5P(params) {
2125
- let serviceUrl = this.SERVICE_URL + 'post/activity/h5p/notes';
2126
- this.generateRequestParams(params);
2127
- return this.http.post(serviceUrl, this.httpOptions);
2128
- }
2129
- getMagnageActivity(params) {
2130
- let serviceUrl = this.SERVICE_URL + 'post/template/admin/by/course/element';
2131
- this.generateRequestParams(params);
2132
- return this.http.post(serviceUrl, this.httpOptions);
2133
- }
2134
- getNoteActivityH5P(params) {
2135
- let serviceUrl = this.SERVICE_URL + 'post/note/activity/h5p';
2136
- this.generateRequestParams(params);
2137
- return this.http.post(serviceUrl, this.httpOptions);
2138
- }
2139
- // construye los headers y params
2140
- generateRequestParams(param) {
2141
- this.httpOptions = {
2142
- header: new HttpHeaders(),
2143
- params: param,
2144
- };
2145
- }
2146
- }
2147
- ActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActivityService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2148
- ActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActivityService, providedIn: 'root' });
2149
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActivityService, decorators: [{
2150
- type: Injectable,
2151
- args: [{
2152
- providedIn: 'root',
2153
- }]
2076
+ class ActivityService {
2077
+ constructor(http) {
2078
+ this.http = http;
2079
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2080
+ }
2081
+ getActivityByCourse(params) {
2082
+ let serviceUrl = this.SERVICE_URL + 'post/activities/by/course/code';
2083
+ this.generateRequestParams(params);
2084
+ return this.http.post(serviceUrl, this.httpOptions);
2085
+ }
2086
+ getNoticesByCourse(codeCourse) {
2087
+ let serviceUrl = this.SERVICE_URL + 'post/notices/by/course/code/' + codeCourse;
2088
+ return this.http.get(serviceUrl);
2089
+ }
2090
+ getUnitsByActivity(params) {
2091
+ let serviceUrl = this.SERVICE_URL + 'post/units/by/activity/code';
2092
+ this.generateRequestParams(params);
2093
+ return this.http.post(serviceUrl, this.httpOptions);
2094
+ }
2095
+ getElementsByUnit(params) {
2096
+ let serviceUrl = this.SERVICE_URL + 'post/element/by/unit/code';
2097
+ this.generateRequestParams(params);
2098
+ return this.http.post(serviceUrl, this.httpOptions);
2099
+ }
2100
+ getCourseTeacherByToken(params) {
2101
+ let serviceUrl = this.SERVICE_URL + 'post/course/teacher/by/token';
2102
+ this.generateRequestParams(params);
2103
+ return this.http.post(serviceUrl, this.httpOptions);
2104
+ }
2105
+ getAllTypeResource() {
2106
+ let serviceUrl = this.SERVICE_URL + 'get/all/type/resource/template';
2107
+ return this.http.get(serviceUrl);
2108
+ }
2109
+ getAllTypeElement() {
2110
+ let serviceUrl = this.SERVICE_URL + 'get/all/type/element/template';
2111
+ return this.http.get(serviceUrl);
2112
+ }
2113
+ getElementsByUnitNew(params) {
2114
+ let serviceUrl = this.SERVICE_URL + 'post/element/by/unit/code/new';
2115
+ this.generateRequestParams(params);
2116
+ return this.http.post(serviceUrl, this.httpOptions);
2117
+ }
2118
+ updateCourseByCronogram(params) {
2119
+ let serviceUrl = this.SERVICE_URL + 'post/update/course/by/code';
2120
+ this.generateRequestParams(params);
2121
+ return this.http.post(serviceUrl, this.httpOptions);
2122
+ }
2123
+ getTemplateCourseByCourse(codeCourse) {
2124
+ let serviceUrl = this.SERVICE_URL + 'get/template/course/by/course/code/' + codeCourse;
2125
+ return this.http.get(serviceUrl);
2126
+ }
2127
+ saveMagnageActivity(params) {
2128
+ let serviceUrl = this.SERVICE_URL + 'post/manage/activities/by/course/element';
2129
+ this.generateRequestParams(params);
2130
+ return this.http.post(serviceUrl, this.httpOptions);
2131
+ }
2132
+ postNotesActivityH5P(params) {
2133
+ let serviceUrl = this.SERVICE_URL + 'post/activity/h5p/notes';
2134
+ this.generateRequestParams(params);
2135
+ return this.http.post(serviceUrl, this.httpOptions);
2136
+ }
2137
+ getMagnageActivity(params) {
2138
+ let serviceUrl = this.SERVICE_URL + 'post/template/admin/by/course/element';
2139
+ this.generateRequestParams(params);
2140
+ return this.http.post(serviceUrl, this.httpOptions);
2141
+ }
2142
+ getNoteActivityH5P(params) {
2143
+ let serviceUrl = this.SERVICE_URL + 'post/note/activity/h5p';
2144
+ this.generateRequestParams(params);
2145
+ return this.http.post(serviceUrl, this.httpOptions);
2146
+ }
2147
+ // construye los headers y params
2148
+ generateRequestParams(param) {
2149
+ this.httpOptions = {
2150
+ header: new HttpHeaders(),
2151
+ params: param,
2152
+ };
2153
+ }
2154
+ }
2155
+ ActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActivityService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2156
+ ActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActivityService, providedIn: 'root' });
2157
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActivityService, decorators: [{
2158
+ type: Injectable,
2159
+ args: [{
2160
+ providedIn: 'root',
2161
+ }]
2154
2162
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2155
2163
 
2156
- class CoreModule {
2157
- }
2158
- CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2159
- CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule });
2160
- CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, providers: [
2161
- ParameterService,
2162
- CourseService,
2163
- StorageService,
2164
- UserService,
2165
- SwitchService,
2166
- RedirectGuard,
2167
- BaseService,
2168
- TestService,
2169
- MarketingService,
2170
- ClassroomService,
2171
- BudgetService,
2172
- ActivityService
2173
- ] });
2174
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, decorators: [{
2175
- type: NgModule,
2176
- args: [{
2177
- providers: [
2178
- ParameterService,
2179
- CourseService,
2180
- StorageService,
2181
- UserService,
2182
- SwitchService,
2183
- RedirectGuard,
2184
- BaseService,
2185
- TestService,
2186
- MarketingService,
2187
- ClassroomService,
2188
- BudgetService,
2189
- ActivityService
2190
- ]
2191
- }]
2164
+ class CoreModule {
2165
+ }
2166
+ CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2167
+ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule });
2168
+ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, providers: [
2169
+ ParameterService,
2170
+ CourseService,
2171
+ StorageService,
2172
+ UserService,
2173
+ SwitchService,
2174
+ RedirectGuard,
2175
+ BaseService,
2176
+ TestService,
2177
+ MarketingService,
2178
+ ClassroomService,
2179
+ BudgetService,
2180
+ ActivityService
2181
+ ] });
2182
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, decorators: [{
2183
+ type: NgModule,
2184
+ args: [{
2185
+ providers: [
2186
+ ParameterService,
2187
+ CourseService,
2188
+ StorageService,
2189
+ UserService,
2190
+ SwitchService,
2191
+ RedirectGuard,
2192
+ BaseService,
2193
+ TestService,
2194
+ MarketingService,
2195
+ ClassroomService,
2196
+ BudgetService,
2197
+ ActivityService
2198
+ ]
2199
+ }]
2192
2200
  }] });
2193
2201
 
2194
- class DesignSystemModule {
2195
- }
2196
- DesignSystemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2197
- DesignSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [ComponentsModule,
2198
- CoreModule,
2199
- CurrencyMaskModule], exports: [ComponentsModule,
2200
- CoreModule,
2201
- CurrencyMaskModule] });
2202
- DesignSystemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [[
2203
- ComponentsModule,
2204
- CoreModule,
2205
- CurrencyMaskModule
2206
- ], ComponentsModule,
2207
- CoreModule,
2208
- CurrencyMaskModule] });
2209
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, decorators: [{
2210
- type: NgModule,
2211
- args: [{
2212
- imports: [
2213
- ComponentsModule,
2214
- CoreModule,
2215
- CurrencyMaskModule
2216
- ],
2217
- exports: [
2218
- ComponentsModule,
2219
- CoreModule,
2220
- CurrencyMaskModule
2221
- ],
2222
- }]
2202
+ class DesignSystemModule {
2203
+ }
2204
+ DesignSystemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2205
+ DesignSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [ComponentsModule,
2206
+ CoreModule,
2207
+ CurrencyMaskModule], exports: [ComponentsModule,
2208
+ CoreModule,
2209
+ CurrencyMaskModule] });
2210
+ DesignSystemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [[
2211
+ ComponentsModule,
2212
+ CoreModule,
2213
+ CurrencyMaskModule
2214
+ ], ComponentsModule,
2215
+ CoreModule,
2216
+ CurrencyMaskModule] });
2217
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, decorators: [{
2218
+ type: NgModule,
2219
+ args: [{
2220
+ imports: [
2221
+ ComponentsModule,
2222
+ CoreModule,
2223
+ CurrencyMaskModule
2224
+ ],
2225
+ exports: [
2226
+ ComponentsModule,
2227
+ CoreModule,
2228
+ CurrencyMaskModule
2229
+ ],
2230
+ }]
2223
2231
  }] });
2224
2232
 
2225
- class AttendanceService {
2226
- constructor(http) {
2227
- this.http = http;
2228
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api';
2229
- }
2230
- addEventByCourseRq(params) {
2231
- let serviceUrl = `${this.SERVICE_URL}/post/event/by/course`;
2232
- this.generateRequestParams(params);
2233
- return this.http.post(serviceUrl, this.httpOptions);
2234
- }
2235
- getEventsByCourseCode(params) {
2236
- let serviceUrl = `${this.SERVICE_URL}/post/obtain/events/by/course_code`;
2237
- this.generateRequestParams(params);
2238
- return this.http.post(serviceUrl, this.httpOptions);
2239
- }
2240
- getEventByCode(params) {
2241
- let serviceUrl = `${this.SERVICE_URL}/post/obtain/event/by/code`;
2242
- this.generateRequestParams(params);
2243
- return this.http.post(serviceUrl, this.httpOptions);
2244
- }
2245
- registerNewAttendanceByEvent(params) {
2246
- let serviceUrl = `${this.SERVICE_URL}/register/attendance/by/event`;
2247
- this.generateRequestParams(params);
2248
- return this.http.post(serviceUrl, this.httpOptions);
2249
- }
2250
- getAttendaceByCourse(courseCode) {
2251
- let serviceUrl = `${this.SERVICE_URL}/post/obtain/attendances/by/course/${courseCode}`;
2252
- return this.http.get(serviceUrl);
2253
- }
2254
- getCODCodeByStudentCode(studentCode) {
2255
- let serviceUrl = `${this.SERVICE_URL}/get/cod_code/by/student_code/${studentCode}`;
2256
- return this.http.get(serviceUrl);
2257
- }
2258
- getAttendanceHistoryByStudent(token, cod_code) {
2259
- let serviceUrl = `${this.SERVICE_URL}/post/obtain/attendance/history/by/student`;
2260
- this.generateRequestParams({ token, cod_code });
2261
- return this.http.post(serviceUrl, this.httpOptions);
2262
- }
2263
- getAllNotAttendancesByCod(params) {
2264
- let serviceUrl = `${this.SERVICE_URL}/get/all/not/attendances/by/cod`;
2265
- this.generateRequestParams(params);
2266
- return this.http.post(serviceUrl, this.httpOptions);
2267
- }
2268
- getNotAttendancesOfLastWeekByCod(params) {
2269
- let serviceUrl = `${this.SERVICE_URL}/get/all/not/attendances/lastweek/by/cod`;
2270
- this.generateRequestParams(params);
2271
- return this.http.post(serviceUrl, this.httpOptions);
2272
- }
2273
- // construye los headers y params
2274
- generateRequestParams(param) {
2275
- this.httpOptions = {
2276
- header: new HttpHeaders(),
2277
- params: param,
2278
- };
2279
- }
2280
- }
2281
- 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 });
2282
- AttendanceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, providedIn: 'root' });
2283
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, decorators: [{
2284
- type: Injectable,
2285
- args: [{
2286
- providedIn: 'root'
2287
- }]
2233
+ class AttendanceService {
2234
+ constructor(http) {
2235
+ this.http = http;
2236
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api';
2237
+ }
2238
+ addEventByCourseRq(params) {
2239
+ let serviceUrl = `${this.SERVICE_URL}/post/event/by/course`;
2240
+ this.generateRequestParams(params);
2241
+ return this.http.post(serviceUrl, this.httpOptions);
2242
+ }
2243
+ getEventsByCourseCode(params) {
2244
+ let serviceUrl = `${this.SERVICE_URL}/post/obtain/events/by/course_code`;
2245
+ this.generateRequestParams(params);
2246
+ return this.http.post(serviceUrl, this.httpOptions);
2247
+ }
2248
+ getEventByCode(params) {
2249
+ let serviceUrl = `${this.SERVICE_URL}/post/obtain/event/by/code`;
2250
+ this.generateRequestParams(params);
2251
+ return this.http.post(serviceUrl, this.httpOptions);
2252
+ }
2253
+ registerNewAttendanceByEvent(params) {
2254
+ let serviceUrl = `${this.SERVICE_URL}/register/attendance/by/event`;
2255
+ this.generateRequestParams(params);
2256
+ return this.http.post(serviceUrl, this.httpOptions);
2257
+ }
2258
+ getAttendaceByCourse(courseCode) {
2259
+ let serviceUrl = `${this.SERVICE_URL}/post/obtain/attendances/by/course/${courseCode}`;
2260
+ return this.http.get(serviceUrl);
2261
+ }
2262
+ getCODCodeByStudentCode(studentCode) {
2263
+ let serviceUrl = `${this.SERVICE_URL}/get/cod_code/by/student_code/${studentCode}`;
2264
+ return this.http.get(serviceUrl);
2265
+ }
2266
+ getAttendanceHistoryByStudent(token, cod_code) {
2267
+ let serviceUrl = `${this.SERVICE_URL}/post/obtain/attendance/history/by/student`;
2268
+ this.generateRequestParams({ token, cod_code });
2269
+ return this.http.post(serviceUrl, this.httpOptions);
2270
+ }
2271
+ getAllNotAttendancesByCod(params) {
2272
+ let serviceUrl = `${this.SERVICE_URL}/get/all/not/attendances/by/cod`;
2273
+ this.generateRequestParams(params);
2274
+ return this.http.post(serviceUrl, this.httpOptions);
2275
+ }
2276
+ getNotAttendancesOfLastWeekByCod(params) {
2277
+ let serviceUrl = `${this.SERVICE_URL}/get/all/not/attendances/lastweek/by/cod`;
2278
+ this.generateRequestParams(params);
2279
+ return this.http.post(serviceUrl, this.httpOptions);
2280
+ }
2281
+ // construye los headers y params
2282
+ generateRequestParams(param) {
2283
+ this.httpOptions = {
2284
+ header: new HttpHeaders(),
2285
+ params: param,
2286
+ };
2287
+ }
2288
+ }
2289
+ 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 });
2290
+ AttendanceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, providedIn: 'root' });
2291
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, decorators: [{
2292
+ type: Injectable,
2293
+ args: [{
2294
+ providedIn: 'root'
2295
+ }]
2288
2296
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2289
2297
 
2290
- class NotesService {
2291
- constructor(http) {
2292
- this.http = http;
2293
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2294
- }
2295
- getNotesByGroup(params) {
2296
- let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/course';
2297
- this.generateRequestParams(params);
2298
- return this.http.post(serviceUrl, this.httpOptions);
2299
- }
2300
- getNotesByStudent(params) {
2301
- let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/student';
2302
- this.generateRequestParams(params);
2303
- return this.http.post(serviceUrl, this.httpOptions);
2304
- }
2305
- createNewNote(params) {
2306
- let serviceUrl = this.SERVICE_URL + 'post/create/note';
2307
- this.generateRequestParams(params);
2308
- return this.http.post(serviceUrl, this.httpOptions);
2309
- }
2310
- updateStudentNote(params) {
2311
- let serviceUrl = this.SERVICE_URL + 'update/note';
2312
- this.generateRequestParams(params);
2313
- return this.http.put(serviceUrl, this.httpOptions);
2314
- }
2315
- calculateFinalNote(params) {
2316
- let serviceUrl = this.SERVICE_URL + 'post/calculate/final/note';
2317
- this.generateRequestParams(params);
2318
- return this.http.post(serviceUrl, this.httpOptions);
2319
- }
2320
- generateRequestParams(param) {
2321
- this.httpOptions = {
2322
- header: new HttpHeaders(),
2323
- params: param,
2324
- };
2325
- }
2326
- }
2327
- 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 });
2328
- NotesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, providedIn: 'root' });
2329
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, decorators: [{
2330
- type: Injectable,
2331
- args: [{
2332
- providedIn: 'root'
2333
- }]
2298
+ class NotesService {
2299
+ constructor(http) {
2300
+ this.http = http;
2301
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2302
+ }
2303
+ getNotesByGroup(params) {
2304
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/course';
2305
+ this.generateRequestParams(params);
2306
+ return this.http.post(serviceUrl, this.httpOptions);
2307
+ }
2308
+ getNotesByStudent(params) {
2309
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/student';
2310
+ this.generateRequestParams(params);
2311
+ return this.http.post(serviceUrl, this.httpOptions);
2312
+ }
2313
+ createNewNote(params) {
2314
+ let serviceUrl = this.SERVICE_URL + 'post/create/note';
2315
+ this.generateRequestParams(params);
2316
+ return this.http.post(serviceUrl, this.httpOptions);
2317
+ }
2318
+ updateStudentNote(params) {
2319
+ let serviceUrl = this.SERVICE_URL + 'update/note';
2320
+ this.generateRequestParams(params);
2321
+ return this.http.put(serviceUrl, this.httpOptions);
2322
+ }
2323
+ calculateFinalNote(params) {
2324
+ let serviceUrl = this.SERVICE_URL + 'post/calculate/final/note';
2325
+ this.generateRequestParams(params);
2326
+ return this.http.post(serviceUrl, this.httpOptions);
2327
+ }
2328
+ generateRequestParams(param) {
2329
+ this.httpOptions = {
2330
+ header: new HttpHeaders(),
2331
+ params: param,
2332
+ };
2333
+ }
2334
+ }
2335
+ 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 });
2336
+ NotesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, providedIn: 'root' });
2337
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, decorators: [{
2338
+ type: Injectable,
2339
+ args: [{
2340
+ providedIn: 'root'
2341
+ }]
2334
2342
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2335
2343
 
2336
- class StudentService {
2337
- constructor(http) {
2338
- this.http = http;
2339
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2340
- }
2341
- getStudentsByCourse(params) {
2342
- let serviceUrl = this.SERVICE_URL + 'post/obtain/students/by/course';
2343
- this.generateRequestParams(params);
2344
- return this.http.post(serviceUrl, this.httpOptions);
2345
- }
2346
- generateRequestParams(param) {
2347
- this.httpOptions = {
2348
- header: new HttpHeaders(),
2349
- params: param,
2350
- };
2351
- }
2352
- }
2353
- 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 });
2354
- StudentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, providedIn: 'root' });
2355
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, decorators: [{
2356
- type: Injectable,
2357
- args: [{
2358
- providedIn: 'root'
2359
- }]
2344
+ class StudentService {
2345
+ constructor(http) {
2346
+ this.http = http;
2347
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2348
+ }
2349
+ getStudentsByCourse(params) {
2350
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/students/by/course';
2351
+ this.generateRequestParams(params);
2352
+ return this.http.post(serviceUrl, this.httpOptions);
2353
+ }
2354
+ generateRequestParams(param) {
2355
+ this.httpOptions = {
2356
+ header: new HttpHeaders(),
2357
+ params: param,
2358
+ };
2359
+ }
2360
+ }
2361
+ 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 });
2362
+ StudentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, providedIn: 'root' });
2363
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, decorators: [{
2364
+ type: Injectable,
2365
+ args: [{
2366
+ providedIn: 'root'
2367
+ }]
2360
2368
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2361
2369
 
2362
- class Session {
2370
+ class Session {
2363
2371
  }
2364
2372
 
2365
- class UserRs {
2366
- }
2367
- class UserLoginRs {
2373
+ class UserRs {
2374
+ }
2375
+ class UserLoginRs {
2368
2376
  }
2369
2377
 
2370
- /*
2371
- * Public API Surface of design-system
2378
+ /*
2379
+ * Public API Surface of design-system
2372
2380
  */
2373
2381
 
2374
- /**
2375
- * Generated bundle index. Do not edit.
2382
+ /**
2383
+ * Generated bundle index. Do not edit.
2376
2384
  */
2377
2385
 
2378
2386
  export { ActivityService, AsideButtonComponent, AttendanceService, BaseService, BudgetService, ButtonComponent, CalendarService, CheckboxComponent, ClassroomService, ComponentsModule, CoreModule, CourseService, CreateUserFormComponent, DatalistComponent, DesignSystemModule, InputComponent, LevelButtonComponent, LevelTextComponent, LoaderComponent, LoginFormComponent, MarketingService, NotesService, ParameterService, RadioComponent, RedirectGuard, SelectComponent, Session, SidenavComponent, StorageService, StudentService, SwitchService, TestService, TextLinkComponent, UserLoginRs, UserRs, UserService };