iptdevs-design-system 2.6.51 → 2.6.53

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 -150
  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 +186 -186
  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 +2292 -2293
  57. package/fesm2015/iptdevs-design-system.mjs.map +1 -1
  58. package/fesm2020/iptdevs-design-system.mjs +2289 -2290
  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 -25
  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 +86 -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 -22
  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,7 +10,6 @@ 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 i2 from 'design-system/src/lib/core/utils/base-service/base.service';
14
13
  import * as i4 from '@angular/material/sidenav';
15
14
  import { MatSidenavModule } from '@angular/material/sidenav';
16
15
  import * as i5 from '@angular/material/toolbar';
@@ -21,2372 +20,2372 @@ import { MatIconModule } from '@angular/material/icon';
21
20
  import { MatButtonModule } from '@angular/material/button';
22
21
  import * as i1$3 from '@angular/router';
23
22
 
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
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
69
68
  }] } });
70
69
 
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
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
130
129
  }] } });
131
130
 
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
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
174
173
  }] } });
175
174
 
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
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
264
263
  }] } });
265
264
 
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
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
404
403
  }] } });
405
404
 
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
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
465
464
  }] } });
466
465
 
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
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
482
481
  }] } });
483
482
 
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
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
527
526
  }] } });
528
527
 
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
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
571
570
  }] } });
572
571
 
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
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
659
658
  }] } });
660
659
 
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
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
696
695
  }] } });
697
696
 
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
- }]
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
+ }]
776
775
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
777
776
 
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
- }]
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
+ }]
824
823
  }], ctorParameters: function () { return []; } });
825
824
 
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
- }]
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
+ }]
879
878
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
880
879
 
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
- let appUser = this.isAnAppUser();
895
- return new Promise(function (resolve, reject) {
896
- service.login(request).subscribe(response => {
897
- switch (response.message.code) {
898
- case 1:
899
- if (!appUser) {
900
- Swal.fire({
901
- 'title': '<p style="font-family: Poppins"">Perfect!</p>',
902
- 'html': '<p style="font-family: Poppins"">Succesfull login</p>',
903
- 'icon': 'success',
904
- });
905
- }
906
- const loginRegisterUser = {
907
- token: response.data.token,
908
- user: response.data,
909
- };
910
- storage.setCurrentSession(loginRegisterUser);
911
- resolve(true);
912
- break;
913
- case 2:
914
- Swal.fire({
915
- 'title': '<p style="font-family: Poppins"">Warning!</p>',
916
- 'html': '<p style="font-family: Poppins"">The data does not correspond to a user registered in our system, please review them.</p>',
917
- 'icon': 'warning',
918
- });
919
- resolve(false);
920
- break;
921
- case 3:
922
- Swal.fire({
923
- 'title': '<p style="font-family: Poppins"">Error!</p>',
924
- 'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
925
- 'icon': 'error',
926
- });
927
- resolve(false);
928
- break;
929
- default:
930
- Swal.fire({
931
- 'title': '<p style="font-family: Poppins"">Error!</p>',
932
- 'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
933
- 'icon': 'error',
934
- });
935
- resolve(false);
936
- break;
937
- }
938
- reject('Unhandled exception');
939
- });
940
- });
941
- }
942
- getCronogramAvailability(isTeacher, code, startDate, numClass, weekDays, startTime, endTime) {
943
- let request = {
944
- isTeacher: isTeacher,
945
- code: code,
946
- startDate: startDate,
947
- numClass: numClass,
948
- weekDays: weekDays,
949
- startTime: startTime,
950
- endTime: endTime,
951
- };
952
- let service = this.calendarService;
953
- return new Promise(function (resolve, reject) {
954
- service.postCreateQueryEvent(request).subscribe((response) => {
955
- switch (response.message.code) {
956
- case 1:
957
- resolve(response.data);
958
- break;
959
- default:
960
- reject('Unhandled exception');
961
- }
962
- reject('Unhandled exception');
963
- });
964
- });
965
- }
966
- isAnAppUser() {
967
- const userAgent = window.navigator.userAgent;
968
- return userAgent.includes('Flutter IPT APP');
969
- }
970
- getUserRole() {
971
- var _a;
972
- let user = (_a = this.storageService.getCurrentUser()) === null || _a === void 0 ? void 0 : _a.role;
973
- return user === undefined ? -1 : user;
974
- }
975
- getUserToken() {
976
- var _a;
977
- let token = (_a = this.storageService.getCurrentUser()) === null || _a === void 0 ? void 0 : _a.token;
978
- return token === undefined ? '-1' : token;
979
- }
980
- getUserName() {
981
- let user = this.storageService.getCurrentUser();
982
- let response = user === null ? '' : user.name;
983
- return response;
984
- }
985
- registerUserFromDashboard(registerDashboardRq) {
986
- let request = registerDashboardRq;
987
- let service = this.userService;
988
- return new Promise(function (resolve, reject) {
989
- service.registerDashboard(request).subscribe((response) => {
990
- switch (response.message.code) {
991
- case 1:
992
- Swal.fire({
993
- 'title': '<p style="font-family: Poppins"">Perfect!</p>',
994
- 'html': '<p style="font-family: Poppins"">Sucesfull register!</p>',
995
- 'icon': 'success',
996
- });
997
- resolve(true);
998
- break;
999
- case 3:
1000
- Swal.fire({
1001
- 'title': '<p style="font-family: Poppins"">Error!</p>',
1002
- 'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
1003
- 'icon': 'error',
1004
- });
1005
- resolve(false);
1006
- break;
1007
- case 4:
1008
- Swal.fire({
1009
- 'title': '<p style="font-family: Poppins">Ups!</p>',
1010
- 'html': '<p style="font-family: Poppins">The input data has a high relation with a user that already exists!</p>',
1011
- 'icon': 'warning',
1012
- });
1013
- resolve(false);
1014
- break;
1015
- default:
1016
- Swal.fire({
1017
- 'title': '<p style="font-family: Poppins"">Error!</p>',
1018
- 'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
1019
- 'icon': 'error',
1020
- });
1021
- resolve(false);
1022
- break;
1023
- }
1024
- reject('Unhandled exception');
1025
- });
1026
- });
1027
- }
1028
- jsonToArray(data) {
1029
- var response = [];
1030
- data.forEach((element) => {
1031
- var object = [];
1032
- for (var clave in element) {
1033
- if (element.hasOwnProperty(clave)) {
1034
- if (typeof element[clave] == 'object') {
1035
- element[clave] = this.subJsonToArray(element[clave]);
1036
- }
1037
- object.push(element[clave]);
1038
- }
1039
- }
1040
- response.push(object);
1041
- });
1042
- return response;
1043
- }
1044
- subJsonToArray(data) {
1045
- var object = '';
1046
- for (var clave in data) {
1047
- if (clave != 'code') {
1048
- object += '\n' + data[clave];
1049
- }
1050
- }
1051
- return object;
1052
- }
1053
- }
1054
- 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 });
1055
- BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, providedIn: 'root' });
1056
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, decorators: [{
1057
- type: Injectable,
1058
- args: [{
1059
- providedIn: 'root',
1060
- }]
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
+ let appUser = this.isAnAppUser();
894
+ return new Promise(function (resolve, reject) {
895
+ service.login(request).subscribe(response => {
896
+ switch (response.message.code) {
897
+ case 1:
898
+ if (!appUser) {
899
+ Swal.fire({
900
+ 'title': '<p style="font-family: Poppins"">Perfect!</p>',
901
+ 'html': '<p style="font-family: Poppins"">Succesfull login</p>',
902
+ 'icon': 'success',
903
+ });
904
+ }
905
+ const loginRegisterUser = {
906
+ token: response.data.token,
907
+ user: response.data,
908
+ };
909
+ storage.setCurrentSession(loginRegisterUser);
910
+ resolve(true);
911
+ break;
912
+ case 2:
913
+ Swal.fire({
914
+ 'title': '<p style="font-family: Poppins"">Warning!</p>',
915
+ 'html': '<p style="font-family: Poppins"">The data does not correspond to a user registered in our system, please review them.</p>',
916
+ 'icon': 'warning',
917
+ });
918
+ resolve(false);
919
+ break;
920
+ case 3:
921
+ Swal.fire({
922
+ 'title': '<p style="font-family: Poppins"">Error!</p>',
923
+ 'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
924
+ 'icon': 'error',
925
+ });
926
+ resolve(false);
927
+ break;
928
+ default:
929
+ Swal.fire({
930
+ 'title': '<p style="font-family: Poppins"">Error!</p>',
931
+ 'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
932
+ 'icon': 'error',
933
+ });
934
+ resolve(false);
935
+ break;
936
+ }
937
+ reject('Unhandled exception');
938
+ });
939
+ });
940
+ }
941
+ getCronogramAvailability(isTeacher, code, startDate, numClass, weekDays, startTime, endTime) {
942
+ let request = {
943
+ isTeacher: isTeacher,
944
+ code: code,
945
+ startDate: startDate,
946
+ numClass: numClass,
947
+ weekDays: weekDays,
948
+ startTime: startTime,
949
+ endTime: endTime,
950
+ };
951
+ let service = this.calendarService;
952
+ return new Promise(function (resolve, reject) {
953
+ service.postCreateQueryEvent(request).subscribe((response) => {
954
+ switch (response.message.code) {
955
+ case 1:
956
+ resolve(response.data);
957
+ break;
958
+ default:
959
+ reject('Unhandled exception');
960
+ }
961
+ reject('Unhandled exception');
962
+ });
963
+ });
964
+ }
965
+ isAnAppUser() {
966
+ const userAgent = window.navigator.userAgent;
967
+ return userAgent.includes('Flutter IPT APP');
968
+ }
969
+ getUserRole() {
970
+ var _a;
971
+ let user = (_a = this.storageService.getCurrentUser()) === null || _a === void 0 ? void 0 : _a.role;
972
+ return user === undefined ? -1 : user;
973
+ }
974
+ getUserToken() {
975
+ var _a;
976
+ let token = (_a = this.storageService.getCurrentUser()) === null || _a === void 0 ? void 0 : _a.token;
977
+ return token === undefined ? '-1' : token;
978
+ }
979
+ getUserName() {
980
+ let user = this.storageService.getCurrentUser();
981
+ let response = user === null ? '' : user.name;
982
+ return response;
983
+ }
984
+ registerUserFromDashboard(registerDashboardRq) {
985
+ let request = registerDashboardRq;
986
+ let service = this.userService;
987
+ return new Promise(function (resolve, reject) {
988
+ service.registerDashboard(request).subscribe((response) => {
989
+ switch (response.message.code) {
990
+ case 1:
991
+ Swal.fire({
992
+ 'title': '<p style="font-family: Poppins"">Perfect!</p>',
993
+ 'html': '<p style="font-family: Poppins"">Sucesfull register!</p>',
994
+ 'icon': 'success',
995
+ });
996
+ resolve(true);
997
+ break;
998
+ case 3:
999
+ Swal.fire({
1000
+ 'title': '<p style="font-family: Poppins"">Error!</p>',
1001
+ 'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
1002
+ 'icon': 'error',
1003
+ });
1004
+ resolve(false);
1005
+ break;
1006
+ case 4:
1007
+ Swal.fire({
1008
+ 'title': '<p style="font-family: Poppins">Ups!</p>',
1009
+ 'html': '<p style="font-family: Poppins">The input data has a high relation with a user that already exists!</p>',
1010
+ 'icon': 'warning',
1011
+ });
1012
+ resolve(false);
1013
+ break;
1014
+ default:
1015
+ Swal.fire({
1016
+ 'title': '<p style="font-family: Poppins"">Error!</p>',
1017
+ 'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
1018
+ 'icon': 'error',
1019
+ });
1020
+ resolve(false);
1021
+ break;
1022
+ }
1023
+ reject('Unhandled exception');
1024
+ });
1025
+ });
1026
+ }
1027
+ jsonToArray(data) {
1028
+ var response = [];
1029
+ data.forEach((element) => {
1030
+ var object = [];
1031
+ for (var clave in element) {
1032
+ if (element.hasOwnProperty(clave)) {
1033
+ if (typeof element[clave] == 'object') {
1034
+ element[clave] = this.subJsonToArray(element[clave]);
1035
+ }
1036
+ object.push(element[clave]);
1037
+ }
1038
+ }
1039
+ response.push(object);
1040
+ });
1041
+ return response;
1042
+ }
1043
+ subJsonToArray(data) {
1044
+ var object = '';
1045
+ for (var clave in data) {
1046
+ if (clave != 'code') {
1047
+ object += '\n' + data[clave];
1048
+ }
1049
+ }
1050
+ return object;
1051
+ }
1052
+ }
1053
+ 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 });
1054
+ BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, providedIn: 'root' });
1055
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, decorators: [{
1056
+ type: Injectable,
1057
+ args: [{
1058
+ providedIn: 'root',
1059
+ }]
1061
1060
  }], ctorParameters: function () { return [{ type: UserService }, { type: StorageService }, { type: CalendarService }]; } });
1062
1061
 
1063
- class LoginFormComponent {
1064
- constructor(fb, baseService) {
1065
- this.baseService = baseService;
1066
- this.isLogged = new EventEmitter();
1067
- this.loginForm = fb.group({
1068
- email: ['', [Validators.required]],
1069
- password: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(15)]],
1070
- });
1071
- }
1072
- login(data) {
1073
- this.baseService.webLogin(data.controls['email'].value, data.controls['password'].value).then((isLogged) => {
1074
- this.isLogged.emit(isLogged);
1075
- });
1076
- }
1077
- }
1078
- 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 });
1079
- LoginFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LoginFormComponent, selector: "ipt-login-form", outputs: { isLogged: "isLogged" }, ngImport: i0, template: `
1080
- <div class="form-container">
1081
-
1082
- <h2 style="text-align: center;">IPT PLATFORM</h2>
1083
- <hr>
1084
-
1085
- <form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
1086
- <ipt-input
1087
- [inputType]="'text'"
1088
- [placeHolder]="'Email'"
1089
- [validateText]="'Debe ser @inglesparatodos.edu.co'"
1090
- [control]="loginForm.controls['email']"
1091
- ></ipt-input>
1092
-
1093
- <ipt-input
1094
- [inputType]="'password'"
1095
- [placeHolder]="'Password'"
1096
- [control]="loginForm.controls['password']"
1097
- ></ipt-input>
1098
- </form>
1099
-
1100
- <div class="button-container">
1101
- <ipt-button
1102
- [label]="'Login'"
1103
- [primary]="true"
1104
- [isEnabled]="loginForm.valid"
1105
- (onClick)="login(loginForm)"
1106
- ></ipt-button>
1107
- </div>
1108
-
1109
- </div>
1110
- `, 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"] }] });
1111
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoginFormComponent, decorators: [{
1112
- type: Component,
1113
- args: [{ selector: 'ipt-login-form', template: `
1114
- <div class="form-container">
1115
-
1116
- <h2 style="text-align: center;">IPT PLATFORM</h2>
1117
- <hr>
1118
-
1119
- <form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
1120
- <ipt-input
1121
- [inputType]="'text'"
1122
- [placeHolder]="'Email'"
1123
- [validateText]="'Debe ser @inglesparatodos.edu.co'"
1124
- [control]="loginForm.controls['email']"
1125
- ></ipt-input>
1126
-
1127
- <ipt-input
1128
- [inputType]="'password'"
1129
- [placeHolder]="'Password'"
1130
- [control]="loginForm.controls['password']"
1131
- ></ipt-input>
1132
- </form>
1133
-
1134
- <div class="button-container">
1135
- <ipt-button
1136
- [label]="'Login'"
1137
- [primary]="true"
1138
- [isEnabled]="loginForm.valid"
1139
- (onClick)="login(loginForm)"
1140
- ></ipt-button>
1141
- </div>
1142
-
1143
- </div>
1144
- `, 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"] }]
1145
- }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: BaseService }]; }, propDecorators: { isLogged: [{
1146
- type: Output
1062
+ class LoginFormComponent {
1063
+ constructor(fb, baseService) {
1064
+ this.baseService = baseService;
1065
+ this.isLogged = new EventEmitter();
1066
+ this.loginForm = fb.group({
1067
+ email: ['', [Validators.required]],
1068
+ password: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(15)]],
1069
+ });
1070
+ }
1071
+ login(data) {
1072
+ this.baseService.webLogin(data.controls['email'].value, data.controls['password'].value).then((isLogged) => {
1073
+ this.isLogged.emit(isLogged);
1074
+ });
1075
+ }
1076
+ }
1077
+ 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 });
1078
+ LoginFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LoginFormComponent, selector: "ipt-login-form", outputs: { isLogged: "isLogged" }, ngImport: i0, template: `
1079
+ <div class="form-container">
1080
+
1081
+ <h2 style="text-align: center;">IPT PLATFORM</h2>
1082
+ <hr>
1083
+
1084
+ <form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
1085
+ <ipt-input
1086
+ [inputType]="'text'"
1087
+ [placeHolder]="'Email'"
1088
+ [validateText]="'Debe ser @inglesparatodos.edu.co'"
1089
+ [control]="loginForm.controls['email']"
1090
+ ></ipt-input>
1091
+
1092
+ <ipt-input
1093
+ [inputType]="'password'"
1094
+ [placeHolder]="'Password'"
1095
+ [control]="loginForm.controls['password']"
1096
+ ></ipt-input>
1097
+ </form>
1098
+
1099
+ <div class="button-container">
1100
+ <ipt-button
1101
+ [label]="'Login'"
1102
+ [primary]="true"
1103
+ [isEnabled]="loginForm.valid"
1104
+ (onClick)="login(loginForm)"
1105
+ ></ipt-button>
1106
+ </div>
1107
+
1108
+ </div>
1109
+ `, 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"] }] });
1110
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoginFormComponent, decorators: [{
1111
+ type: Component,
1112
+ args: [{ selector: 'ipt-login-form', template: `
1113
+ <div class="form-container">
1114
+
1115
+ <h2 style="text-align: center;">IPT PLATFORM</h2>
1116
+ <hr>
1117
+
1118
+ <form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
1119
+ <ipt-input
1120
+ [inputType]="'text'"
1121
+ [placeHolder]="'Email'"
1122
+ [validateText]="'Debe ser @inglesparatodos.edu.co'"
1123
+ [control]="loginForm.controls['email']"
1124
+ ></ipt-input>
1125
+
1126
+ <ipt-input
1127
+ [inputType]="'password'"
1128
+ [placeHolder]="'Password'"
1129
+ [control]="loginForm.controls['password']"
1130
+ ></ipt-input>
1131
+ </form>
1132
+
1133
+ <div class="button-container">
1134
+ <ipt-button
1135
+ [label]="'Login'"
1136
+ [primary]="true"
1137
+ [isEnabled]="loginForm.valid"
1138
+ (onClick)="login(loginForm)"
1139
+ ></ipt-button>
1140
+ </div>
1141
+
1142
+ </div>
1143
+ `, 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"] }]
1144
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: BaseService }]; }, propDecorators: { isLogged: [{
1145
+ type: Output
1147
1146
  }] } });
1148
1147
 
1149
- class ParameterService {
1150
- constructor(http) {
1151
- this.http = http;
1152
- this.SERVICE_URL = 'https://iptdev.com.co/lab/parameters/api/';
1153
- }
1154
- getIndicatives() {
1155
- let serviceUrl = this.SERVICE_URL + 'get/indicatives';
1156
- return this.http.get(serviceUrl);
1157
- }
1158
- getCardTypes(country) {
1159
- let serviceUrl = this.SERVICE_URL + 'get/id/card/type/country/' + country;
1160
- return this.http.get(serviceUrl);
1161
- }
1162
- getCountries() {
1163
- let serviceUrl = this.SERVICE_URL + 'get/countries';
1164
- return this.http.get(serviceUrl);
1165
- }
1166
- getStatesByCountry(country) {
1167
- let serviceUrl = this.SERVICE_URL + 'get/state/country/iso/' + country;
1168
- return this.http.get(serviceUrl);
1169
- }
1170
- getCitiesByState(state) {
1171
- let serviceUrl = this.SERVICE_URL + 'get/cities/state/' + state;
1172
- return this.http.get(serviceUrl);
1173
- }
1174
- getAllPlans() {
1175
- let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1176
- return this.http.get(serviceUrl);
1177
- }
1178
- getLevels() {
1179
- let serviceUrl = this.SERVICE_URL + 'get/english/levels';
1180
- return this.http.get(serviceUrl);
1181
- }
1182
- getAgreements() {
1183
- let serviceUrl = this.SERVICE_URL + 'get/all/agreement';
1184
- return this.http.get(serviceUrl);
1185
- }
1186
- getAgreementByCategory(typeCategory) {
1187
- let serviceUrl = this.SERVICE_URL + 'get/agreement/by/category/' + typeCategory;
1188
- return this.http.get(serviceUrl);
1189
- }
1190
- getAllClassrooms() {
1191
- let serviceUrl = this.SERVICE_URL + 'get/all/classroom';
1192
- return this.http.get(serviceUrl);
1193
- }
1194
- getCoursesTypes() {
1195
- let serviceUrl = this.SERVICE_URL + 'get/all/course/type';
1196
- return this.http.get(serviceUrl);
1197
- }
1198
- getCoursesTypesByPlan(typePlan) {
1199
- let serviceUrl = this.SERVICE_URL + 'get/course/by/plan/' + typePlan;
1200
- return this.http.get(serviceUrl);
1201
- }
1202
- getDegrees() {
1203
- let serviceUrl = this.SERVICE_URL + 'get/all/degrees';
1204
- return this.http.get(serviceUrl);
1205
- }
1206
- getProgramsByDegree(typeDegree) {
1207
- let serviceUrl = this.SERVICE_URL + 'get/programs/by/degree/' + typeDegree;
1208
- return this.http.get(serviceUrl);
1209
- }
1210
- getMarketingReasons() {
1211
- let serviceUrl = this.SERVICE_URL + 'get/all/mkt/reasons';
1212
- return this.http.get(serviceUrl);
1213
- }
1214
- getStudyReasons() {
1215
- let serviceUrl = this.SERVICE_URL + 'get/all/study/reasons';
1216
- return this.http.get(serviceUrl);
1217
- }
1218
- getAcademicUnits() {
1219
- let serviceUrl = this.SERVICE_URL + 'get/academic/units';
1220
- return this.http.get(serviceUrl);
1221
- }
1222
- getStatusContact() {
1223
- let serviceUrl = this.SERVICE_URL + 'get/contact/status/all';
1224
- return this.http.get(serviceUrl);
1225
- }
1226
- getTypePlan() {
1227
- let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1228
- return this.http.get(serviceUrl);
1229
- }
1230
- getTypePlanDiscount() {
1231
- let serviceUrl = this.SERVICE_URL + 'get/discount/all/plans';
1232
- return this.http.get(serviceUrl);
1233
- }
1234
- getContactedType() {
1235
- let serviceUrl = this.SERVICE_URL + 'get/contact/contacted/all';
1236
- return this.http.get(serviceUrl);
1237
- }
1238
- getStatusByCode(codeStatus) {
1239
- let serviceUrl = this.SERVICE_URL + 'get/contact/status/bycode/' + codeStatus;
1240
- return this.http.get(serviceUrl);
1241
- }
1242
- getAllTypeDiscount() {
1243
- let serviceUrl = this.SERVICE_URL + 'get/commercial/typediscounts/all';
1244
- return this.http.get(serviceUrl);
1245
- }
1246
- getAllCourseModality() {
1247
- let serviceUrl = this.SERVICE_URL + 'get/all/course/modality';
1248
- return this.http.get(serviceUrl);
1249
- }
1250
- }
1251
- 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 });
1252
- ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, providedIn: 'root' });
1253
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, decorators: [{
1254
- type: Injectable,
1255
- args: [{
1256
- providedIn: 'root',
1257
- }]
1148
+ class ParameterService {
1149
+ constructor(http) {
1150
+ this.http = http;
1151
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/parameters/api/';
1152
+ }
1153
+ getIndicatives() {
1154
+ let serviceUrl = this.SERVICE_URL + 'get/indicatives';
1155
+ return this.http.get(serviceUrl);
1156
+ }
1157
+ getCardTypes(country) {
1158
+ let serviceUrl = this.SERVICE_URL + 'get/id/card/type/country/' + country;
1159
+ return this.http.get(serviceUrl);
1160
+ }
1161
+ getCountries() {
1162
+ let serviceUrl = this.SERVICE_URL + 'get/countries';
1163
+ return this.http.get(serviceUrl);
1164
+ }
1165
+ getStatesByCountry(country) {
1166
+ let serviceUrl = this.SERVICE_URL + 'get/state/country/iso/' + country;
1167
+ return this.http.get(serviceUrl);
1168
+ }
1169
+ getCitiesByState(state) {
1170
+ let serviceUrl = this.SERVICE_URL + 'get/cities/state/' + state;
1171
+ return this.http.get(serviceUrl);
1172
+ }
1173
+ getAllPlans() {
1174
+ let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1175
+ return this.http.get(serviceUrl);
1176
+ }
1177
+ getLevels() {
1178
+ let serviceUrl = this.SERVICE_URL + 'get/english/levels';
1179
+ return this.http.get(serviceUrl);
1180
+ }
1181
+ getAgreements() {
1182
+ let serviceUrl = this.SERVICE_URL + 'get/all/agreement';
1183
+ return this.http.get(serviceUrl);
1184
+ }
1185
+ getAgreementByCategory(typeCategory) {
1186
+ let serviceUrl = this.SERVICE_URL + 'get/agreement/by/category/' + typeCategory;
1187
+ return this.http.get(serviceUrl);
1188
+ }
1189
+ getAllClassrooms() {
1190
+ let serviceUrl = this.SERVICE_URL + 'get/all/classroom';
1191
+ return this.http.get(serviceUrl);
1192
+ }
1193
+ getCoursesTypes() {
1194
+ let serviceUrl = this.SERVICE_URL + 'get/all/course/type';
1195
+ return this.http.get(serviceUrl);
1196
+ }
1197
+ getCoursesTypesByPlan(typePlan) {
1198
+ let serviceUrl = this.SERVICE_URL + 'get/course/by/plan/' + typePlan;
1199
+ return this.http.get(serviceUrl);
1200
+ }
1201
+ getDegrees() {
1202
+ let serviceUrl = this.SERVICE_URL + 'get/all/degrees';
1203
+ return this.http.get(serviceUrl);
1204
+ }
1205
+ getProgramsByDegree(typeDegree) {
1206
+ let serviceUrl = this.SERVICE_URL + 'get/programs/by/degree/' + typeDegree;
1207
+ return this.http.get(serviceUrl);
1208
+ }
1209
+ getMarketingReasons() {
1210
+ let serviceUrl = this.SERVICE_URL + 'get/all/mkt/reasons';
1211
+ return this.http.get(serviceUrl);
1212
+ }
1213
+ getStudyReasons() {
1214
+ let serviceUrl = this.SERVICE_URL + 'get/all/study/reasons';
1215
+ return this.http.get(serviceUrl);
1216
+ }
1217
+ getAcademicUnits() {
1218
+ let serviceUrl = this.SERVICE_URL + 'get/academic/units';
1219
+ return this.http.get(serviceUrl);
1220
+ }
1221
+ getStatusContact() {
1222
+ let serviceUrl = this.SERVICE_URL + 'get/contact/status/all';
1223
+ return this.http.get(serviceUrl);
1224
+ }
1225
+ getTypePlan() {
1226
+ let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1227
+ return this.http.get(serviceUrl);
1228
+ }
1229
+ getTypePlanDiscount() {
1230
+ let serviceUrl = this.SERVICE_URL + 'get/discount/all/plans';
1231
+ return this.http.get(serviceUrl);
1232
+ }
1233
+ getContactedType() {
1234
+ let serviceUrl = this.SERVICE_URL + 'get/contact/contacted/all';
1235
+ return this.http.get(serviceUrl);
1236
+ }
1237
+ getStatusByCode(codeStatus) {
1238
+ let serviceUrl = this.SERVICE_URL + 'get/contact/status/bycode/' + codeStatus;
1239
+ return this.http.get(serviceUrl);
1240
+ }
1241
+ getAllTypeDiscount() {
1242
+ let serviceUrl = this.SERVICE_URL + 'get/commercial/typediscounts/all';
1243
+ return this.http.get(serviceUrl);
1244
+ }
1245
+ getAllCourseModality() {
1246
+ let serviceUrl = this.SERVICE_URL + 'get/all/course/modality';
1247
+ return this.http.get(serviceUrl);
1248
+ }
1249
+ }
1250
+ 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 });
1251
+ ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, providedIn: 'root' });
1252
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, decorators: [{
1253
+ type: Injectable,
1254
+ args: [{
1255
+ providedIn: 'root',
1256
+ }]
1258
1257
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1259
1258
 
1260
- class CreateUserFormComponent {
1261
- constructor(fb, parameterService, userService) {
1262
- this.fb = fb;
1263
- this.parameterService = parameterService;
1264
- this.userService = userService;
1265
- this.visibility = false;
1266
- this.userCreated = new EventEmitter(false);
1267
- this.onHide = new EventEmitter(false);
1268
- this.loader = false;
1269
- this.photo = '';
1270
- }
1271
- ngOnInit() {
1272
- this.initForm();
1273
- this.getParameters();
1274
- }
1275
- closeModal() {
1276
- this.visibility = false;
1277
- this.onHide.emit(true);
1278
- }
1279
- createUser() {
1280
- this.loader = true;
1281
- let request = {
1282
- name: this.createUserForm.controls['name'].value,
1283
- last_name: this.createUserForm.controls['last_name'].value,
1284
- id_card_type: this.createUserForm.controls['id_card_type'].value,
1285
- id_card: this.createUserForm.controls['id_card'].value,
1286
- phone_indicative: this.createUserForm.controls['phone_indicative'].value,
1287
- phone_number: this.createUserForm.controls['phone_number'].value,
1288
- email: this.createUserForm.controls['email'].value,
1289
- city: this.createUserForm.controls['city'].value,
1290
- service_hour: this.createUserForm.controls['service_hour'].value,
1291
- role: this.createUserForm.controls['role'].value,
1292
- password: this.createUserForm.controls['password'].value,
1293
- };
1294
- this.userService.registerDashboard(request).subscribe((response) => {
1295
- console.log(response.message);
1296
- switch (response.message.code) {
1297
- case 1:
1298
- this.userCreated.emit(true);
1299
- this.initForm();
1300
- break;
1301
- case 2:
1302
- throw new Error("Los datos ingresados no corresponden a un usuario registrado en nuestro sistema, por favor reviselos.");
1303
- case 3:
1304
- throw new Error("Los datos ingresados no cumplen los parámetros establecidos");
1305
- default:
1306
- break;
1307
- }
1308
- this.loader = false;
1309
- });
1310
- }
1311
- getParameters() {
1312
- this.parameterService.getIndicatives().subscribe((response) => {
1313
- this.phoneNumberIndicatives = response.data;
1314
- });
1315
- this.parameterService.getCardTypes('col').subscribe((response) => {
1316
- this.idTypes = response.data;
1317
- });
1318
- this.parameterService.getStatesByCountry('col').subscribe((response) => {
1319
- this.states = response.data;
1320
- });
1321
- }
1322
- getRolesOptions() {
1323
- // Estudiante
1324
- if (this.userType === 'student') {
1325
- this.setPhoto('student');
1326
- return [
1327
- { code: '13', name: 'Student' },
1328
- ];
1329
- }
1330
- // Académico
1331
- if (this.userType === 'academic') {
1332
- this.setPhoto('academic');
1333
- return [
1334
- { code: '11', name: 'Teacher PRO' },
1335
- { code: '12', name: 'Teacher' },
1336
- ];
1337
- }
1338
- // Administrativo
1339
- if (this.userType === 'administrative') {
1340
- this.setPhoto('administrative');
1341
- return [
1342
- { code: '31', name: 'Administrative Supervisor' },
1343
- { code: '32', name: 'Administrative Advisor' },
1344
- ];
1345
- }
1346
- // Marketing
1347
- if (this.userType === 'marketing') {
1348
- this.setPhoto('marketing');
1349
- return [
1350
- { code: '21', name: 'Marketing Supervisor' },
1351
- { code: '22', name: 'Marketing Advisor' },
1352
- ];
1353
- }
1354
- // Comercial
1355
- if (this.userType === 'commercial') {
1356
- this.setPhoto('commercial');
1357
- return [
1358
- { code: '41', name: 'Commercial Supervisor' },
1359
- { code: '42', name: 'Commercial Advisor' },
1360
- ];
1361
- }
1362
- // Cartera
1363
- if (this.userType === 'treasure') {
1364
- this.setPhoto('treasure');
1365
- return [
1366
- { code: '51', name: 'Treauser Supervisor' },
1367
- { code: '52', name: 'Treauser Advisor' },
1368
- ];
1369
- }
1370
- }
1371
- initForm() {
1372
- this.createUserForm = this.fb.group({
1373
- name: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(32)],],
1374
- last_name: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(32),],],
1375
- email: ['', [Validators.required, Validators.maxLength(300)]],
1376
- id_card_type: ['', [Validators.required]],
1377
- id_card: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(20),]],
1378
- phone_indicative: ['', [Validators.required]],
1379
- city: ['', [Validators.required]],
1380
- role: ['', [Validators.required]],
1381
- service_hour: ['', [Validators.required]],
1382
- phone_number: ['', [Validators.required, Validators.minLength(10), Validators.maxLength(15)]],
1383
- password: ['', [Validators.required, Validators.minLength(7), Validators.maxLength(32)]],
1384
- re_password: ['', [Validators.required, Validators.minLength(7), Validators.maxLength(32)]],
1385
- state: [''],
1386
- });
1387
- }
1388
- setPhoto(type) {
1389
- if (type === 'student')
1390
- this.photo = '../../../assets/user-form-assets/estudiante.jpg';
1391
- if (type === 'academic')
1392
- this.photo = '../../../assets/user-form-assets/academico.png';
1393
- if (type === 'administrative')
1394
- this.photo = '../../../assets/user-form-assets/administrativo.jpg';
1395
- if (type === 'marketing')
1396
- this.photo = '../../../assets/user-form-assets/marketing.jpg';
1397
- if (type === 'commercial')
1398
- this.photo = '../../../assets/user-form-assets/comercial.jpg';
1399
- if (type === 'treasure')
1400
- this.photo = '../../../assets/user-form-assets/administrativo.jpg';
1401
- }
1402
- selectRol(role) {
1403
- if (role !== 'Seleccione el rol') {
1404
- this.createUserForm.controls['role'].setValue(role);
1405
- }
1406
- else {
1407
- this.createUserForm.controls['role'].setValue(null);
1408
- }
1409
- }
1410
- selectIndicatives(indicative) {
1411
- if (indicative !== 'Seleccione el indicativo') {
1412
- this.createUserForm.controls['phone_indicative'].setValue(indicative);
1413
- }
1414
- else {
1415
- this.createUserForm.controls['phone_indicative'].setValue(null);
1416
- }
1417
- }
1418
- selectIdType(idType) {
1419
- if (idType !== 'Ingrese el tipo de documento') {
1420
- this.createUserForm.controls['id_card_type'].setValue(idType);
1421
- }
1422
- else {
1423
- this.createUserForm.controls['id_card_type'].setValue(null);
1424
- }
1425
- }
1426
- selectState(state) {
1427
- if (state !== 'Seleccione el departamento') {
1428
- this.createUserForm.controls['state'].setValue(state);
1429
- this.parameterService.getCitiesByState(state).subscribe((response) => {
1430
- this.cities = response.data;
1431
- });
1432
- }
1433
- else {
1434
- this.createUserForm.controls['state'].setValue(null);
1435
- this.createUserForm.controls['city'].setValue(null);
1436
- this.cities = [];
1437
- }
1438
- }
1439
- selectCity(city) {
1440
- if (city !== 'Ciudad de residencia') {
1441
- this.createUserForm.controls['city'].setValue(city);
1442
- }
1443
- else {
1444
- this.createUserForm.controls['city'].setValue(null);
1445
- }
1446
- }
1447
- }
1448
- 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 });
1449
- 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: [
1450
- trigger('fade', [
1451
- transition('void => *', [
1452
- style({ opacity: 0 }),
1453
- animate(200, style({ opacity: 1 }))
1454
- ])
1455
- ])
1456
- ] });
1457
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CreateUserFormComponent, decorators: [{
1458
- type: Component,
1459
- args: [{ selector: 'ipt-create-user-form', animations: [
1460
- trigger('fade', [
1461
- transition('void => *', [
1462
- style({ opacity: 0 }),
1463
- animate(200, style({ opacity: 1 }))
1464
- ])
1465
- ])
1466
- ], 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"] }]
1467
- }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: ParameterService }, { type: UserService }]; }, propDecorators: { userType: [{
1468
- type: Input
1469
- }], visibility: [{
1470
- type: Input
1471
- }], userCreated: [{
1472
- type: Output
1473
- }], onHide: [{
1474
- type: Output
1259
+ class CreateUserFormComponent {
1260
+ constructor(fb, parameterService, userService) {
1261
+ this.fb = fb;
1262
+ this.parameterService = parameterService;
1263
+ this.userService = userService;
1264
+ this.visibility = false;
1265
+ this.userCreated = new EventEmitter(false);
1266
+ this.onHide = new EventEmitter(false);
1267
+ this.loader = false;
1268
+ this.photo = '';
1269
+ }
1270
+ ngOnInit() {
1271
+ this.initForm();
1272
+ this.getParameters();
1273
+ }
1274
+ closeModal() {
1275
+ this.visibility = false;
1276
+ this.onHide.emit(true);
1277
+ }
1278
+ createUser() {
1279
+ this.loader = true;
1280
+ let request = {
1281
+ name: this.createUserForm.controls['name'].value,
1282
+ last_name: this.createUserForm.controls['last_name'].value,
1283
+ id_card_type: this.createUserForm.controls['id_card_type'].value,
1284
+ id_card: this.createUserForm.controls['id_card'].value,
1285
+ phone_indicative: this.createUserForm.controls['phone_indicative'].value,
1286
+ phone_number: this.createUserForm.controls['phone_number'].value,
1287
+ email: this.createUserForm.controls['email'].value,
1288
+ city: this.createUserForm.controls['city'].value,
1289
+ service_hour: this.createUserForm.controls['service_hour'].value,
1290
+ role: this.createUserForm.controls['role'].value,
1291
+ password: this.createUserForm.controls['password'].value,
1292
+ };
1293
+ this.userService.registerDashboard(request).subscribe((response) => {
1294
+ console.log(response.message);
1295
+ switch (response.message.code) {
1296
+ case 1:
1297
+ this.userCreated.emit(true);
1298
+ this.initForm();
1299
+ break;
1300
+ case 2:
1301
+ throw new Error("Los datos ingresados no corresponden a un usuario registrado en nuestro sistema, por favor reviselos.");
1302
+ case 3:
1303
+ throw new Error("Los datos ingresados no cumplen los parámetros establecidos");
1304
+ default:
1305
+ break;
1306
+ }
1307
+ this.loader = false;
1308
+ });
1309
+ }
1310
+ getParameters() {
1311
+ this.parameterService.getIndicatives().subscribe((response) => {
1312
+ this.phoneNumberIndicatives = response.data;
1313
+ });
1314
+ this.parameterService.getCardTypes('col').subscribe((response) => {
1315
+ this.idTypes = response.data;
1316
+ });
1317
+ this.parameterService.getStatesByCountry('col').subscribe((response) => {
1318
+ this.states = response.data;
1319
+ });
1320
+ }
1321
+ getRolesOptions() {
1322
+ // Estudiante
1323
+ if (this.userType === 'student') {
1324
+ this.setPhoto('student');
1325
+ return [
1326
+ { code: '13', name: 'Student' },
1327
+ ];
1328
+ }
1329
+ // Académico
1330
+ if (this.userType === 'academic') {
1331
+ this.setPhoto('academic');
1332
+ return [
1333
+ { code: '11', name: 'Teacher PRO' },
1334
+ { code: '12', name: 'Teacher' },
1335
+ ];
1336
+ }
1337
+ // Administrativo
1338
+ if (this.userType === 'administrative') {
1339
+ this.setPhoto('administrative');
1340
+ return [
1341
+ { code: '31', name: 'Administrative Supervisor' },
1342
+ { code: '32', name: 'Administrative Advisor' },
1343
+ ];
1344
+ }
1345
+ // Marketing
1346
+ if (this.userType === 'marketing') {
1347
+ this.setPhoto('marketing');
1348
+ return [
1349
+ { code: '21', name: 'Marketing Supervisor' },
1350
+ { code: '22', name: 'Marketing Advisor' },
1351
+ ];
1352
+ }
1353
+ // Comercial
1354
+ if (this.userType === 'commercial') {
1355
+ this.setPhoto('commercial');
1356
+ return [
1357
+ { code: '41', name: 'Commercial Supervisor' },
1358
+ { code: '42', name: 'Commercial Advisor' },
1359
+ ];
1360
+ }
1361
+ // Cartera
1362
+ if (this.userType === 'treasure') {
1363
+ this.setPhoto('treasure');
1364
+ return [
1365
+ { code: '51', name: 'Treauser Supervisor' },
1366
+ { code: '52', name: 'Treauser Advisor' },
1367
+ ];
1368
+ }
1369
+ }
1370
+ initForm() {
1371
+ this.createUserForm = this.fb.group({
1372
+ name: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(32)],],
1373
+ last_name: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(32),],],
1374
+ email: ['', [Validators.required, Validators.maxLength(300)]],
1375
+ id_card_type: ['', [Validators.required]],
1376
+ id_card: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(20),]],
1377
+ phone_indicative: ['', [Validators.required]],
1378
+ city: ['', [Validators.required]],
1379
+ role: ['', [Validators.required]],
1380
+ service_hour: ['', [Validators.required]],
1381
+ phone_number: ['', [Validators.required, Validators.minLength(10), Validators.maxLength(15)]],
1382
+ password: ['', [Validators.required, Validators.minLength(7), Validators.maxLength(32)]],
1383
+ re_password: ['', [Validators.required, Validators.minLength(7), Validators.maxLength(32)]],
1384
+ state: [''],
1385
+ });
1386
+ }
1387
+ setPhoto(type) {
1388
+ if (type === 'student')
1389
+ this.photo = '../../../assets/user-form-assets/estudiante.jpg';
1390
+ if (type === 'academic')
1391
+ this.photo = '../../../assets/user-form-assets/academico.png';
1392
+ if (type === 'administrative')
1393
+ this.photo = '../../../assets/user-form-assets/administrativo.jpg';
1394
+ if (type === 'marketing')
1395
+ this.photo = '../../../assets/user-form-assets/marketing.jpg';
1396
+ if (type === 'commercial')
1397
+ this.photo = '../../../assets/user-form-assets/comercial.jpg';
1398
+ if (type === 'treasure')
1399
+ this.photo = '../../../assets/user-form-assets/administrativo.jpg';
1400
+ }
1401
+ selectRol(role) {
1402
+ if (role !== 'Seleccione el rol') {
1403
+ this.createUserForm.controls['role'].setValue(role);
1404
+ }
1405
+ else {
1406
+ this.createUserForm.controls['role'].setValue(null);
1407
+ }
1408
+ }
1409
+ selectIndicatives(indicative) {
1410
+ if (indicative !== 'Seleccione el indicativo') {
1411
+ this.createUserForm.controls['phone_indicative'].setValue(indicative);
1412
+ }
1413
+ else {
1414
+ this.createUserForm.controls['phone_indicative'].setValue(null);
1415
+ }
1416
+ }
1417
+ selectIdType(idType) {
1418
+ if (idType !== 'Ingrese el tipo de documento') {
1419
+ this.createUserForm.controls['id_card_type'].setValue(idType);
1420
+ }
1421
+ else {
1422
+ this.createUserForm.controls['id_card_type'].setValue(null);
1423
+ }
1424
+ }
1425
+ selectState(state) {
1426
+ if (state !== 'Seleccione el departamento') {
1427
+ this.createUserForm.controls['state'].setValue(state);
1428
+ this.parameterService.getCitiesByState(state).subscribe((response) => {
1429
+ this.cities = response.data;
1430
+ });
1431
+ }
1432
+ else {
1433
+ this.createUserForm.controls['state'].setValue(null);
1434
+ this.createUserForm.controls['city'].setValue(null);
1435
+ this.cities = [];
1436
+ }
1437
+ }
1438
+ selectCity(city) {
1439
+ if (city !== 'Ciudad de residencia') {
1440
+ this.createUserForm.controls['city'].setValue(city);
1441
+ }
1442
+ else {
1443
+ this.createUserForm.controls['city'].setValue(null);
1444
+ }
1445
+ }
1446
+ }
1447
+ 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 });
1448
+ 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: [
1449
+ trigger('fade', [
1450
+ transition('void => *', [
1451
+ style({ opacity: 0 }),
1452
+ animate(200, style({ opacity: 1 }))
1453
+ ])
1454
+ ])
1455
+ ] });
1456
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CreateUserFormComponent, decorators: [{
1457
+ type: Component,
1458
+ args: [{ selector: 'ipt-create-user-form', animations: [
1459
+ trigger('fade', [
1460
+ transition('void => *', [
1461
+ style({ opacity: 0 }),
1462
+ animate(200, style({ opacity: 1 }))
1463
+ ])
1464
+ ])
1465
+ ], 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"] }]
1466
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: ParameterService }, { type: UserService }]; }, propDecorators: { userType: [{
1467
+ type: Input
1468
+ }], visibility: [{
1469
+ type: Input
1470
+ }], userCreated: [{
1471
+ type: Output
1472
+ }], onHide: [{
1473
+ type: Output
1475
1474
  }] } });
1476
1475
 
1477
- class SidenavComponent {
1478
- constructor(userService, baseService, storageService) {
1479
- this.userService = userService;
1480
- this.baseService = baseService;
1481
- this.storageService = storageService;
1482
- this.pageChangeEvent = new EventEmitter();
1483
- this.appUser = false;
1484
- this.routes = [];
1485
- this.options = { weekday: 'long', month: 'long', day: 'numeric' };
1486
- this.currentDay = new Date().toLocaleDateString('en-EN', this.options);
1487
- this.hour = new Date().getHours();
1488
- }
1489
- ngOnInit() {
1490
- var _a;
1491
- let user = (_a = this.storageService.getCurrentUser()) === null || _a === void 0 ? void 0 : _a.token;
1492
- let token = user === undefined ? '' : user;
1493
- let request = {
1494
- token: token,
1495
- };
1496
- this.userService.getRoutesForRole(request).subscribe((response) => {
1497
- this.routes = response.data;
1498
- });
1499
- this.appUser = this.baseService.isAnAppUser();
1500
- }
1501
- clickPage(event) {
1502
- this.pageChangeEvent.emit(event);
1503
- }
1504
- logout() {
1505
- this.storageService.logout();
1506
- this.pageChangeEvent.emit('logout');
1507
- }
1508
- }
1509
- 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 });
1510
- 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: `
1511
- <mat-sidenav #sidenav mode="push" >
1512
- <mat-toolbar color="primary" (click)="sidenav.toggle()">
1513
- <span style="font-size: 15px;">{{department}}</span>
1514
- <span class="menu-icon-close"></span>
1515
- </mat-toolbar>
1516
-
1517
- <mat-nav-list *ngFor="let route of routes">
1518
- <nav class="flex-container-menu">
1519
- <ipt-aside-button
1520
- [buttonActive]="this.setPage === route.page"
1521
- [icon]="route.icon"
1522
- [text]="route.text"
1523
- (isClicked)="clickPage(route.page)"
1524
- (click)="sidenav.toggle()"
1525
- >
1526
- </ipt-aside-button>
1527
- </nav>
1528
- </mat-nav-list>
1529
- </mat-sidenav>
1530
-
1531
- <mat-toolbar class="header">
1532
- <div class="menu-container" (click)="sidenav.toggle()">
1533
- <p>Menu</p>
1534
- <div class="menu-icon"></div>
1535
- </div>
1536
-
1537
- <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1538
-
1539
- <div class="text-container">
1540
- <span class="p1">{{ currentDay }}</span>
1541
- <span *ngIf="hour >= 0 && hour < 12" class="p2">
1542
- Hey {{ userName }}, Good moorning!
1543
- </span>
1544
- <p *ngIf="hour >= 12 && hour < 18" class="p2">
1545
- Hey {{ userName }}, Good afternoon!
1546
- </p>
1547
- <p *ngIf="hour >= 18 && hour < 24" class="p2">
1548
- Hey {{ userName }}, Good evening!
1549
- </p>
1550
- </div>
1551
-
1552
- <div *ngIf="!this.appUser" class="logout-container" (click)="logout()">
1553
- <p class="logout-button">Cerrar sesión</p>
1554
- <div class="photo-logout"></div>
1555
- </div>
1556
- </mat-toolbar>
1557
- `, 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"] }] });
1558
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, decorators: [{
1559
- type: Component,
1560
- args: [{ selector: 'ipt-sidenav', template: `
1561
- <mat-sidenav #sidenav mode="push" >
1562
- <mat-toolbar color="primary" (click)="sidenav.toggle()">
1563
- <span style="font-size: 15px;">{{department}}</span>
1564
- <span class="menu-icon-close"></span>
1565
- </mat-toolbar>
1566
-
1567
- <mat-nav-list *ngFor="let route of routes">
1568
- <nav class="flex-container-menu">
1569
- <ipt-aside-button
1570
- [buttonActive]="this.setPage === route.page"
1571
- [icon]="route.icon"
1572
- [text]="route.text"
1573
- (isClicked)="clickPage(route.page)"
1574
- (click)="sidenav.toggle()"
1575
- >
1576
- </ipt-aside-button>
1577
- </nav>
1578
- </mat-nav-list>
1579
- </mat-sidenav>
1580
-
1581
- <mat-toolbar class="header">
1582
- <div class="menu-container" (click)="sidenav.toggle()">
1583
- <p>Menu</p>
1584
- <div class="menu-icon"></div>
1585
- </div>
1586
-
1587
- <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1588
-
1589
- <div class="text-container">
1590
- <span class="p1">{{ currentDay }}</span>
1591
- <span *ngIf="hour >= 0 && hour < 12" class="p2">
1592
- Hey {{ userName }}, Good moorning!
1593
- </span>
1594
- <p *ngIf="hour >= 12 && hour < 18" class="p2">
1595
- Hey {{ userName }}, Good afternoon!
1596
- </p>
1597
- <p *ngIf="hour >= 18 && hour < 24" class="p2">
1598
- Hey {{ userName }}, Good evening!
1599
- </p>
1600
- </div>
1601
-
1602
- <div *ngIf="!this.appUser" class="logout-container" (click)="logout()">
1603
- <p class="logout-button">Cerrar sesión</p>
1604
- <div class="photo-logout"></div>
1605
- </div>
1606
- </mat-toolbar>
1607
- `, 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"] }]
1608
- }], ctorParameters: function () { return [{ type: UserService }, { type: i2.BaseService }, { type: StorageService }]; }, propDecorators: { department: [{
1609
- type: Input
1610
- }], setPage: [{
1611
- type: Input
1612
- }], userName: [{
1613
- type: Input
1614
- }], pageChangeEvent: [{
1615
- type: Output
1476
+ class SidenavComponent {
1477
+ constructor(userService, baseService, storageService) {
1478
+ this.userService = userService;
1479
+ this.baseService = baseService;
1480
+ this.storageService = storageService;
1481
+ this.pageChangeEvent = new EventEmitter();
1482
+ this.appUser = false;
1483
+ this.routes = [];
1484
+ this.options = { weekday: 'long', month: 'long', day: 'numeric' };
1485
+ this.currentDay = new Date().toLocaleDateString('en-EN', this.options);
1486
+ this.hour = new Date().getHours();
1487
+ }
1488
+ ngOnInit() {
1489
+ var _a;
1490
+ let user = (_a = this.storageService.getCurrentUser()) === null || _a === void 0 ? void 0 : _a.token;
1491
+ let token = user === undefined ? '' : user;
1492
+ let request = {
1493
+ token: token,
1494
+ };
1495
+ this.userService.getRoutesForRole(request).subscribe((response) => {
1496
+ this.routes = response.data;
1497
+ });
1498
+ this.appUser = this.baseService.isAnAppUser();
1499
+ }
1500
+ clickPage(event) {
1501
+ this.pageChangeEvent.emit(event);
1502
+ }
1503
+ logout() {
1504
+ this.storageService.logout();
1505
+ this.pageChangeEvent.emit('logout');
1506
+ }
1507
+ }
1508
+ SidenavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, deps: [{ token: UserService }, { token: BaseService }, { token: StorageService }], target: i0.ɵɵFactoryTarget.Component });
1509
+ 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: `
1510
+ <mat-sidenav #sidenav mode="push" >
1511
+ <mat-toolbar color="primary" (click)="sidenav.toggle()">
1512
+ <span style="font-size: 15px;">{{department}}</span>
1513
+ <span class="menu-icon-close"></span>
1514
+ </mat-toolbar>
1515
+
1516
+ <mat-nav-list *ngFor="let route of routes">
1517
+ <nav class="flex-container-menu">
1518
+ <ipt-aside-button
1519
+ [buttonActive]="this.setPage === route.page"
1520
+ [icon]="route.icon"
1521
+ [text]="route.text"
1522
+ (isClicked)="clickPage(route.page)"
1523
+ (click)="sidenav.toggle()"
1524
+ >
1525
+ </ipt-aside-button>
1526
+ </nav>
1527
+ </mat-nav-list>
1528
+ </mat-sidenav>
1529
+
1530
+ <mat-toolbar class="header">
1531
+ <div class="menu-container" (click)="sidenav.toggle()">
1532
+ <p>Menu</p>
1533
+ <div class="menu-icon"></div>
1534
+ </div>
1535
+
1536
+ <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1537
+
1538
+ <div class="text-container">
1539
+ <span class="p1">{{ currentDay }}</span>
1540
+ <span *ngIf="hour >= 0 && hour < 12" class="p2">
1541
+ Hey {{ userName }}, Good moorning!
1542
+ </span>
1543
+ <p *ngIf="hour >= 12 && hour < 18" class="p2">
1544
+ Hey {{ userName }}, Good afternoon!
1545
+ </p>
1546
+ <p *ngIf="hour >= 18 && hour < 24" class="p2">
1547
+ Hey {{ userName }}, Good evening!
1548
+ </p>
1549
+ </div>
1550
+
1551
+ <div *ngIf="!this.appUser" class="logout-container" (click)="logout()">
1552
+ <p class="logout-button">Cerrar sesión</p>
1553
+ <div class="photo-logout"></div>
1554
+ </div>
1555
+ </mat-toolbar>
1556
+ `, 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"] }] });
1557
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, decorators: [{
1558
+ type: Component,
1559
+ args: [{ selector: 'ipt-sidenav', template: `
1560
+ <mat-sidenav #sidenav mode="push" >
1561
+ <mat-toolbar color="primary" (click)="sidenav.toggle()">
1562
+ <span style="font-size: 15px;">{{department}}</span>
1563
+ <span class="menu-icon-close"></span>
1564
+ </mat-toolbar>
1565
+
1566
+ <mat-nav-list *ngFor="let route of routes">
1567
+ <nav class="flex-container-menu">
1568
+ <ipt-aside-button
1569
+ [buttonActive]="this.setPage === route.page"
1570
+ [icon]="route.icon"
1571
+ [text]="route.text"
1572
+ (isClicked)="clickPage(route.page)"
1573
+ (click)="sidenav.toggle()"
1574
+ >
1575
+ </ipt-aside-button>
1576
+ </nav>
1577
+ </mat-nav-list>
1578
+ </mat-sidenav>
1579
+
1580
+ <mat-toolbar class="header">
1581
+ <div class="menu-container" (click)="sidenav.toggle()">
1582
+ <p>Menu</p>
1583
+ <div class="menu-icon"></div>
1584
+ </div>
1585
+
1586
+ <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1587
+
1588
+ <div class="text-container">
1589
+ <span class="p1">{{ currentDay }}</span>
1590
+ <span *ngIf="hour >= 0 && hour < 12" class="p2">
1591
+ Hey {{ userName }}, Good moorning!
1592
+ </span>
1593
+ <p *ngIf="hour >= 12 && hour < 18" class="p2">
1594
+ Hey {{ userName }}, Good afternoon!
1595
+ </p>
1596
+ <p *ngIf="hour >= 18 && hour < 24" class="p2">
1597
+ Hey {{ userName }}, Good evening!
1598
+ </p>
1599
+ </div>
1600
+
1601
+ <div *ngIf="!this.appUser" class="logout-container" (click)="logout()">
1602
+ <p class="logout-button">Cerrar sesión</p>
1603
+ <div class="photo-logout"></div>
1604
+ </div>
1605
+ </mat-toolbar>
1606
+ `, 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"] }]
1607
+ }], ctorParameters: function () { return [{ type: UserService }, { type: BaseService }, { type: StorageService }]; }, propDecorators: { department: [{
1608
+ type: Input
1609
+ }], setPage: [{
1610
+ type: Input
1611
+ }], userName: [{
1612
+ type: Input
1613
+ }], pageChangeEvent: [{
1614
+ type: Output
1616
1615
  }] } });
1617
1616
 
1618
- class MaterialModule {
1619
- }
1620
- MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1621
- MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule] });
1622
- MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, imports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule] });
1623
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, decorators: [{
1624
- type: NgModule,
1625
- args: [{
1626
- exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule],
1627
- }]
1617
+ class MaterialModule {
1618
+ }
1619
+ MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1620
+ MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule] });
1621
+ MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, imports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule] });
1622
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, decorators: [{
1623
+ type: NgModule,
1624
+ args: [{
1625
+ exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule],
1626
+ }]
1628
1627
  }] });
1629
1628
 
1630
- class ComponentsModule {
1631
- }
1632
- ComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1633
- ComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, declarations: [AsideButtonComponent,
1634
- ButtonComponent,
1635
- CheckboxComponent,
1636
- CreateUserFormComponent,
1637
- DatalistComponent,
1638
- InputComponent,
1639
- LevelButtonComponent,
1640
- LevelTextComponent,
1641
- LoginFormComponent,
1642
- LoaderComponent,
1643
- RadioComponent,
1644
- SelectComponent,
1645
- SidenavComponent,
1646
- TextLinkComponent], imports: [CommonModule,
1647
- // BrowserModule, // Para evitar doble carga de BrowserModule
1648
- FormsModule,
1649
- ReactiveFormsModule,
1650
- MaterialModule,
1651
- CurrencyMaskModule], exports: [AsideButtonComponent,
1652
- ButtonComponent,
1653
- CheckboxComponent,
1654
- CreateUserFormComponent,
1655
- DatalistComponent,
1656
- InputComponent,
1657
- LevelButtonComponent,
1658
- LevelTextComponent,
1659
- LoaderComponent,
1660
- RadioComponent,
1661
- SelectComponent,
1662
- TextLinkComponent,
1663
- LoginFormComponent,
1664
- SidenavComponent,
1665
- CurrencyMaskModule] });
1666
- ComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, providers: [
1667
- CurrencyPipe,
1668
- TitleCasePipe
1669
- ], imports: [[
1670
- CommonModule,
1671
- // BrowserModule, // Para evitar doble carga de BrowserModule
1672
- FormsModule,
1673
- ReactiveFormsModule,
1674
- MaterialModule,
1675
- CurrencyMaskModule
1676
- ], CurrencyMaskModule] });
1677
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, decorators: [{
1678
- type: NgModule,
1679
- args: [{
1680
- declarations: [
1681
- AsideButtonComponent,
1682
- ButtonComponent,
1683
- CheckboxComponent,
1684
- CreateUserFormComponent,
1685
- DatalistComponent,
1686
- InputComponent,
1687
- LevelButtonComponent,
1688
- LevelTextComponent,
1689
- LoginFormComponent,
1690
- LoaderComponent,
1691
- RadioComponent,
1692
- SelectComponent,
1693
- SidenavComponent,
1694
- TextLinkComponent,
1695
- ],
1696
- imports: [
1697
- CommonModule,
1698
- // BrowserModule, // Para evitar doble carga de BrowserModule
1699
- FormsModule,
1700
- ReactiveFormsModule,
1701
- MaterialModule,
1702
- CurrencyMaskModule
1703
- ],
1704
- exports: [
1705
- AsideButtonComponent,
1706
- ButtonComponent,
1707
- CheckboxComponent,
1708
- CreateUserFormComponent,
1709
- DatalistComponent,
1710
- InputComponent,
1711
- LevelButtonComponent,
1712
- LevelTextComponent,
1713
- LoaderComponent,
1714
- RadioComponent,
1715
- SelectComponent,
1716
- TextLinkComponent,
1717
- LoginFormComponent,
1718
- SidenavComponent,
1719
- CurrencyMaskModule
1720
- ],
1721
- providers: [
1722
- CurrencyPipe,
1723
- TitleCasePipe
1724
- ]
1725
- }]
1629
+ class ComponentsModule {
1630
+ }
1631
+ ComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1632
+ ComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, declarations: [AsideButtonComponent,
1633
+ ButtonComponent,
1634
+ CheckboxComponent,
1635
+ CreateUserFormComponent,
1636
+ DatalistComponent,
1637
+ InputComponent,
1638
+ LevelButtonComponent,
1639
+ LevelTextComponent,
1640
+ LoginFormComponent,
1641
+ LoaderComponent,
1642
+ RadioComponent,
1643
+ SelectComponent,
1644
+ SidenavComponent,
1645
+ TextLinkComponent], imports: [CommonModule,
1646
+ // BrowserModule, // Para evitar doble carga de BrowserModule
1647
+ FormsModule,
1648
+ ReactiveFormsModule,
1649
+ MaterialModule,
1650
+ CurrencyMaskModule], exports: [AsideButtonComponent,
1651
+ ButtonComponent,
1652
+ CheckboxComponent,
1653
+ CreateUserFormComponent,
1654
+ DatalistComponent,
1655
+ InputComponent,
1656
+ LevelButtonComponent,
1657
+ LevelTextComponent,
1658
+ LoaderComponent,
1659
+ RadioComponent,
1660
+ SelectComponent,
1661
+ TextLinkComponent,
1662
+ LoginFormComponent,
1663
+ SidenavComponent,
1664
+ CurrencyMaskModule] });
1665
+ ComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, providers: [
1666
+ CurrencyPipe,
1667
+ TitleCasePipe
1668
+ ], imports: [[
1669
+ CommonModule,
1670
+ // BrowserModule, // Para evitar doble carga de BrowserModule
1671
+ FormsModule,
1672
+ ReactiveFormsModule,
1673
+ MaterialModule,
1674
+ CurrencyMaskModule
1675
+ ], CurrencyMaskModule] });
1676
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, decorators: [{
1677
+ type: NgModule,
1678
+ args: [{
1679
+ declarations: [
1680
+ AsideButtonComponent,
1681
+ ButtonComponent,
1682
+ CheckboxComponent,
1683
+ CreateUserFormComponent,
1684
+ DatalistComponent,
1685
+ InputComponent,
1686
+ LevelButtonComponent,
1687
+ LevelTextComponent,
1688
+ LoginFormComponent,
1689
+ LoaderComponent,
1690
+ RadioComponent,
1691
+ SelectComponent,
1692
+ SidenavComponent,
1693
+ TextLinkComponent,
1694
+ ],
1695
+ imports: [
1696
+ CommonModule,
1697
+ // BrowserModule, // Para evitar doble carga de BrowserModule
1698
+ FormsModule,
1699
+ ReactiveFormsModule,
1700
+ MaterialModule,
1701
+ CurrencyMaskModule
1702
+ ],
1703
+ exports: [
1704
+ AsideButtonComponent,
1705
+ ButtonComponent,
1706
+ CheckboxComponent,
1707
+ CreateUserFormComponent,
1708
+ DatalistComponent,
1709
+ InputComponent,
1710
+ LevelButtonComponent,
1711
+ LevelTextComponent,
1712
+ LoaderComponent,
1713
+ RadioComponent,
1714
+ SelectComponent,
1715
+ TextLinkComponent,
1716
+ LoginFormComponent,
1717
+ SidenavComponent,
1718
+ CurrencyMaskModule
1719
+ ],
1720
+ providers: [
1721
+ CurrencyPipe,
1722
+ TitleCasePipe
1723
+ ]
1724
+ }]
1726
1725
  }] });
1727
1726
 
1728
- class CourseService {
1729
- constructor(http) {
1730
- this.http = http;
1731
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
1732
- }
1733
- createCourse(course) {
1734
- let serviceUrl = this.SERVICE_URL + 'post/course';
1735
- this.generateRequestParams(course);
1736
- return this.http.post(serviceUrl, this.httpOptions);
1737
- }
1738
- editCourse(course) {
1739
- let serviceUrl = this.SERVICE_URL + 'put/course';
1740
- this.generateRequestParams(course);
1741
- return this.http.put(serviceUrl, this.httpOptions);
1742
- }
1743
- getAllCourses(params) {
1744
- let serviceUrl = this.SERVICE_URL + 'post/all/courses';
1745
- this.generateRequestParams(params);
1746
- return this.http.post(serviceUrl, this.httpOptions);
1747
- }
1748
- getCoursesByLevel(params) {
1749
- let serviceUrl = this.SERVICE_URL + 'post/course/by/level';
1750
- this.generateRequestParams(params);
1751
- return this.http.post(serviceUrl, this.httpOptions);
1752
- }
1753
- getAvailibleCourses(availibleCourses) {
1754
- let serviceUrl = this.SERVICE_URL + 'post/course/for/cod';
1755
- this.generateRequestParams(availibleCourses);
1756
- return this.http.post(serviceUrl, this.httpOptions);
1757
- }
1758
- getCourseByCode(params) {
1759
- let serviceUrl = this.SERVICE_URL + 'post/course/by/code';
1760
- this.generateRequestParams(params);
1761
- return this.http.post(serviceUrl, this.httpOptions);
1762
- }
1763
- getCoursesByTeacher(params) {
1764
- let serviceUrl = this.SERVICE_URL + 'post/course/by/teacher';
1765
- this.generateRequestParams(params);
1766
- return this.http.post(serviceUrl, this.httpOptions);
1767
- }
1768
- getFilteredCoursesByTeacher(params) {
1769
- let serviceUrl = this.SERVICE_URL + 'post/course/filtered/by/teacher';
1770
- this.generateRequestParams(params);
1771
- return this.http.post(serviceUrl, this.httpOptions);
1772
- }
1773
- getCoursesByStartDate(params) {
1774
- let serviceUrl = this.SERVICE_URL + 'post/course/by/startdate';
1775
- this.generateRequestParams(params);
1776
- return this.http.post(serviceUrl, this.httpOptions);
1777
- }
1778
- numberClassByCode(idCode) {
1779
- let serviceUrl = this.SERVICE_URL + 'get/coursetype/numclass/by/code/' + idCode;
1780
- return this.http.get(serviceUrl);
1781
- }
1782
- // construye los headers y params
1783
- generateRequestParams(param) {
1784
- this.httpOptions = {
1785
- header: new HttpHeaders(),
1786
- params: param,
1787
- };
1788
- }
1789
- }
1790
- 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 });
1791
- CourseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, providedIn: 'root' });
1792
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, decorators: [{
1793
- type: Injectable,
1794
- args: [{
1795
- providedIn: 'root',
1796
- }]
1727
+ class CourseService {
1728
+ constructor(http) {
1729
+ this.http = http;
1730
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
1731
+ }
1732
+ createCourse(course) {
1733
+ let serviceUrl = this.SERVICE_URL + 'post/course';
1734
+ this.generateRequestParams(course);
1735
+ return this.http.post(serviceUrl, this.httpOptions);
1736
+ }
1737
+ editCourse(course) {
1738
+ let serviceUrl = this.SERVICE_URL + 'put/course';
1739
+ this.generateRequestParams(course);
1740
+ return this.http.put(serviceUrl, this.httpOptions);
1741
+ }
1742
+ getAllCourses(params) {
1743
+ let serviceUrl = this.SERVICE_URL + 'post/all/courses';
1744
+ this.generateRequestParams(params);
1745
+ return this.http.post(serviceUrl, this.httpOptions);
1746
+ }
1747
+ getCoursesByLevel(params) {
1748
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/level';
1749
+ this.generateRequestParams(params);
1750
+ return this.http.post(serviceUrl, this.httpOptions);
1751
+ }
1752
+ getAvailibleCourses(availibleCourses) {
1753
+ let serviceUrl = this.SERVICE_URL + 'post/course/for/cod';
1754
+ this.generateRequestParams(availibleCourses);
1755
+ return this.http.post(serviceUrl, this.httpOptions);
1756
+ }
1757
+ getCourseByCode(params) {
1758
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/code';
1759
+ this.generateRequestParams(params);
1760
+ return this.http.post(serviceUrl, this.httpOptions);
1761
+ }
1762
+ getCoursesByTeacher(params) {
1763
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/teacher';
1764
+ this.generateRequestParams(params);
1765
+ return this.http.post(serviceUrl, this.httpOptions);
1766
+ }
1767
+ getFilteredCoursesByTeacher(params) {
1768
+ let serviceUrl = this.SERVICE_URL + 'post/course/filtered/by/teacher';
1769
+ this.generateRequestParams(params);
1770
+ return this.http.post(serviceUrl, this.httpOptions);
1771
+ }
1772
+ getCoursesByStartDate(params) {
1773
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/startdate';
1774
+ this.generateRequestParams(params);
1775
+ return this.http.post(serviceUrl, this.httpOptions);
1776
+ }
1777
+ numberClassByCode(idCode) {
1778
+ let serviceUrl = this.SERVICE_URL + 'get/coursetype/numclass/by/code/' + idCode;
1779
+ return this.http.get(serviceUrl);
1780
+ }
1781
+ // construye los headers y params
1782
+ generateRequestParams(param) {
1783
+ this.httpOptions = {
1784
+ header: new HttpHeaders(),
1785
+ params: param,
1786
+ };
1787
+ }
1788
+ }
1789
+ 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 });
1790
+ CourseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, providedIn: 'root' });
1791
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, decorators: [{
1792
+ type: Injectable,
1793
+ args: [{
1794
+ providedIn: 'root',
1795
+ }]
1797
1796
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1798
1797
 
1799
- class RedirectGuard {
1800
- constructor(router) {
1801
- this.router = router;
1802
- }
1803
- canActivate(route, state) {
1804
- window.location.href = route.data['externalUrl'];
1805
- return true;
1806
- }
1807
- }
1808
- 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 });
1809
- RedirectGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard });
1810
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard, decorators: [{
1811
- type: Injectable
1798
+ class RedirectGuard {
1799
+ constructor(router) {
1800
+ this.router = router;
1801
+ }
1802
+ canActivate(route, state) {
1803
+ window.location.href = route.data['externalUrl'];
1804
+ return true;
1805
+ }
1806
+ }
1807
+ 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 });
1808
+ RedirectGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard });
1809
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard, decorators: [{
1810
+ type: Injectable
1812
1811
  }], ctorParameters: function () { return [{ type: i1$3.Router }]; } });
1813
1812
 
1814
- class SwitchService {
1815
- constructor() {
1816
- this.$modal = new EventEmitter();
1817
- }
1818
- }
1819
- SwitchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1820
- SwitchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, providedIn: 'root' });
1821
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, decorators: [{
1822
- type: Injectable,
1823
- args: [{
1824
- providedIn: 'root'
1825
- }]
1813
+ class SwitchService {
1814
+ constructor() {
1815
+ this.$modal = new EventEmitter();
1816
+ }
1817
+ }
1818
+ SwitchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1819
+ SwitchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, providedIn: 'root' });
1820
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, decorators: [{
1821
+ type: Injectable,
1822
+ args: [{
1823
+ providedIn: 'root'
1824
+ }]
1826
1825
  }], ctorParameters: function () { return []; } });
1827
1826
 
1828
- class TestService {
1829
- constructor(http) {
1830
- this.http = http;
1831
- this.SERVICE_URL = 'https://iptdev.com.co/lab/test/api/';
1832
- }
1833
- // ---------------------- EXÁMENES ---------------------- //
1834
- createExam(exam) {
1835
- let serviceUrl = this.SERVICE_URL + 'post/exam';
1836
- this.generateRequestParams(exam);
1837
- return this.http.post(serviceUrl, this.httpOptions);
1838
- }
1839
- getAllExams(params) {
1840
- let serviceUrl = this.SERVICE_URL + 'post/all/exam';
1841
- this.generateRequestParams(params);
1842
- return this.http.post(serviceUrl, this.httpOptions);
1843
- }
1844
- updateExam(params) {
1845
- let serviceUrl = this.SERVICE_URL + 'update/exam';
1846
- this.generateRequestParams(params);
1847
- return this.http.put(serviceUrl, this.httpOptions);
1848
- }
1849
- updateExamStatus(params) {
1850
- let serviceUrl = this.SERVICE_URL + 'update/exam/status';
1851
- this.generateRequestParams(params);
1852
- return this.http.put(serviceUrl, this.httpOptions);
1853
- }
1854
- copyExam(params) {
1855
- let serviceUrl = this.SERVICE_URL + 'copy/exam';
1856
- this.generateRequestParams(params);
1857
- return this.http.put(serviceUrl, this.httpOptions);
1858
- }
1859
- getExamByCode(code) {
1860
- let serviceUrl = this.SERVICE_URL + 'get/exam/by/code/' + code;
1861
- return this.http.get(serviceUrl);
1862
- }
1863
- getExamByAuthor(code) {
1864
- let serviceUrl = this.SERVICE_URL + 'get/exams/by/author/' + code;
1865
- return this.http.get(serviceUrl);
1866
- }
1867
- // ---------------------- SECCIONES ---------------------- //
1868
- createSectionWithAll(params) {
1869
- let serviceUrl = this.SERVICE_URL + 'post/section/with/all';
1870
- this.generateRequestParams(params);
1871
- return this.http.post(serviceUrl, this.httpOptions);
1872
- }
1873
- createSection(params) {
1874
- let serviceUrl = this.SERVICE_URL + 'post/section';
1875
- this.generateRequestParams(params);
1876
- return this.http.post(serviceUrl, this.httpOptions);
1877
- }
1878
- getAllSections(params) {
1879
- let serviceUrl = this.SERVICE_URL + 'post/all/sections';
1880
- this.generateRequestParams(params);
1881
- return this.http.post(serviceUrl, this.httpOptions);
1882
- }
1883
- updateSection(params) {
1884
- let serviceUrl = this.SERVICE_URL + 'update/section';
1885
- this.generateRequestParams(params);
1886
- return this.http.put(serviceUrl, this.httpOptions);
1887
- }
1888
- updateSectionMedia(params) {
1889
- let serviceUrl = this.SERVICE_URL + 'post/section/media';
1890
- this.generateRequestParams(params);
1891
- return this.http.post(serviceUrl, this.httpOptions);
1892
- }
1893
- updateSectionState(params) {
1894
- let serviceUrl = this.SERVICE_URL + 'update/section/state';
1895
- this.generateRequestParams(params);
1896
- return this.http.put(serviceUrl, this.httpOptions);
1897
- }
1898
- getSectionsByExam(code) {
1899
- let serviceUrl = this.SERVICE_URL + 'get/sections/by/exam/' + code;
1900
- return this.http.get(serviceUrl);
1901
- }
1902
- // ---------------------- PREGUNTAS ---------------------- //
1903
- createQuestion(params) {
1904
- let serviceUrl = this.SERVICE_URL + 'post/question';
1905
- this.generateRequestParams(params);
1906
- return this.http.post(serviceUrl, this.httpOptions);
1907
- }
1908
- updateQuestion(params) {
1909
- let serviceUrl = this.SERVICE_URL + 'update/question';
1910
- this.generateRequestParams(params);
1911
- return this.http.put(serviceUrl, this.httpOptions);
1912
- }
1913
- getQuestionsBySections(params) {
1914
- let serviceUrl = this.SERVICE_URL + 'get/questions/by/sections';
1915
- this.generateRequestParams(params);
1916
- return this.http.post(serviceUrl, this.httpOptions);
1917
- }
1918
- getQuestionsBySection(params) {
1919
- let serviceUrl = this.SERVICE_URL + 'get/questions/by/section';
1920
- this.generateRequestParams(params);
1921
- return this.http.post(serviceUrl, this.httpOptions);
1922
- }
1923
- // ---------------------- RESPUESTAS ---------------------- //
1924
- createAnswer(params) {
1925
- let serviceUrl = this.SERVICE_URL + 'post/answer';
1926
- this.generateRequestParams(params);
1927
- return this.http.post(serviceUrl, this.httpOptions);
1928
- }
1929
- updateAnswer(params) {
1930
- let serviceUrl = this.SERVICE_URL + 'update/answer';
1931
- this.generateRequestParams(params);
1932
- return this.http.put(serviceUrl, this.httpOptions);
1933
- }
1934
- getAnswersByQuestion(code) {
1935
- let serviceUrl = this.SERVICE_URL + 'get/answers/by/question/' + code;
1936
- return this.http.get(serviceUrl, this.httpOptions);
1937
- }
1938
- updateQuestionState(params) {
1939
- let serviceUrl = this.SERVICE_URL + 'update/question/state';
1940
- this.generateRequestParams(params);
1941
- return this.http.put(serviceUrl, this.httpOptions);
1942
- }
1943
- // construye los headers y params
1944
- generateRequestParams(param) {
1945
- this.httpOptions = {
1946
- header: new HttpHeaders(),
1947
- params: param,
1948
- };
1949
- }
1950
- }
1951
- 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 });
1952
- TestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, providedIn: 'root' });
1953
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, decorators: [{
1954
- type: Injectable,
1955
- args: [{
1956
- providedIn: 'root',
1957
- }]
1827
+ class TestService {
1828
+ constructor(http) {
1829
+ this.http = http;
1830
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/test/api/';
1831
+ }
1832
+ // ---------------------- EXÁMENES ---------------------- //
1833
+ createExam(exam) {
1834
+ let serviceUrl = this.SERVICE_URL + 'post/exam';
1835
+ this.generateRequestParams(exam);
1836
+ return this.http.post(serviceUrl, this.httpOptions);
1837
+ }
1838
+ getAllExams(params) {
1839
+ let serviceUrl = this.SERVICE_URL + 'post/all/exam';
1840
+ this.generateRequestParams(params);
1841
+ return this.http.post(serviceUrl, this.httpOptions);
1842
+ }
1843
+ updateExam(params) {
1844
+ let serviceUrl = this.SERVICE_URL + 'update/exam';
1845
+ this.generateRequestParams(params);
1846
+ return this.http.put(serviceUrl, this.httpOptions);
1847
+ }
1848
+ updateExamStatus(params) {
1849
+ let serviceUrl = this.SERVICE_URL + 'update/exam/status';
1850
+ this.generateRequestParams(params);
1851
+ return this.http.put(serviceUrl, this.httpOptions);
1852
+ }
1853
+ copyExam(params) {
1854
+ let serviceUrl = this.SERVICE_URL + 'copy/exam';
1855
+ this.generateRequestParams(params);
1856
+ return this.http.put(serviceUrl, this.httpOptions);
1857
+ }
1858
+ getExamByCode(code) {
1859
+ let serviceUrl = this.SERVICE_URL + 'get/exam/by/code/' + code;
1860
+ return this.http.get(serviceUrl);
1861
+ }
1862
+ getExamByAuthor(code) {
1863
+ let serviceUrl = this.SERVICE_URL + 'get/exams/by/author/' + code;
1864
+ return this.http.get(serviceUrl);
1865
+ }
1866
+ // ---------------------- SECCIONES ---------------------- //
1867
+ createSectionWithAll(params) {
1868
+ let serviceUrl = this.SERVICE_URL + 'post/section/with/all';
1869
+ this.generateRequestParams(params);
1870
+ return this.http.post(serviceUrl, this.httpOptions);
1871
+ }
1872
+ createSection(params) {
1873
+ let serviceUrl = this.SERVICE_URL + 'post/section';
1874
+ this.generateRequestParams(params);
1875
+ return this.http.post(serviceUrl, this.httpOptions);
1876
+ }
1877
+ getAllSections(params) {
1878
+ let serviceUrl = this.SERVICE_URL + 'post/all/sections';
1879
+ this.generateRequestParams(params);
1880
+ return this.http.post(serviceUrl, this.httpOptions);
1881
+ }
1882
+ updateSection(params) {
1883
+ let serviceUrl = this.SERVICE_URL + 'update/section';
1884
+ this.generateRequestParams(params);
1885
+ return this.http.put(serviceUrl, this.httpOptions);
1886
+ }
1887
+ updateSectionMedia(params) {
1888
+ let serviceUrl = this.SERVICE_URL + 'post/section/media';
1889
+ this.generateRequestParams(params);
1890
+ return this.http.post(serviceUrl, this.httpOptions);
1891
+ }
1892
+ updateSectionState(params) {
1893
+ let serviceUrl = this.SERVICE_URL + 'update/section/state';
1894
+ this.generateRequestParams(params);
1895
+ return this.http.put(serviceUrl, this.httpOptions);
1896
+ }
1897
+ getSectionsByExam(code) {
1898
+ let serviceUrl = this.SERVICE_URL + 'get/sections/by/exam/' + code;
1899
+ return this.http.get(serviceUrl);
1900
+ }
1901
+ // ---------------------- PREGUNTAS ---------------------- //
1902
+ createQuestion(params) {
1903
+ let serviceUrl = this.SERVICE_URL + 'post/question';
1904
+ this.generateRequestParams(params);
1905
+ return this.http.post(serviceUrl, this.httpOptions);
1906
+ }
1907
+ updateQuestion(params) {
1908
+ let serviceUrl = this.SERVICE_URL + 'update/question';
1909
+ this.generateRequestParams(params);
1910
+ return this.http.put(serviceUrl, this.httpOptions);
1911
+ }
1912
+ getQuestionsBySections(params) {
1913
+ let serviceUrl = this.SERVICE_URL + 'get/questions/by/sections';
1914
+ this.generateRequestParams(params);
1915
+ return this.http.post(serviceUrl, this.httpOptions);
1916
+ }
1917
+ getQuestionsBySection(params) {
1918
+ let serviceUrl = this.SERVICE_URL + 'get/questions/by/section';
1919
+ this.generateRequestParams(params);
1920
+ return this.http.post(serviceUrl, this.httpOptions);
1921
+ }
1922
+ // ---------------------- RESPUESTAS ---------------------- //
1923
+ createAnswer(params) {
1924
+ let serviceUrl = this.SERVICE_URL + 'post/answer';
1925
+ this.generateRequestParams(params);
1926
+ return this.http.post(serviceUrl, this.httpOptions);
1927
+ }
1928
+ updateAnswer(params) {
1929
+ let serviceUrl = this.SERVICE_URL + 'update/answer';
1930
+ this.generateRequestParams(params);
1931
+ return this.http.put(serviceUrl, this.httpOptions);
1932
+ }
1933
+ getAnswersByQuestion(code) {
1934
+ let serviceUrl = this.SERVICE_URL + 'get/answers/by/question/' + code;
1935
+ return this.http.get(serviceUrl, this.httpOptions);
1936
+ }
1937
+ updateQuestionState(params) {
1938
+ let serviceUrl = this.SERVICE_URL + 'update/question/state';
1939
+ this.generateRequestParams(params);
1940
+ return this.http.put(serviceUrl, this.httpOptions);
1941
+ }
1942
+ // construye los headers y params
1943
+ generateRequestParams(param) {
1944
+ this.httpOptions = {
1945
+ header: new HttpHeaders(),
1946
+ params: param,
1947
+ };
1948
+ }
1949
+ }
1950
+ 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 });
1951
+ TestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, providedIn: 'root' });
1952
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, decorators: [{
1953
+ type: Injectable,
1954
+ args: [{
1955
+ providedIn: 'root',
1956
+ }]
1958
1957
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1959
1958
 
1960
- class MarketingService {
1961
- constructor(http) {
1962
- this.http = http;
1963
- this.SERVICE_URL = 'https://iptdev.com.co/lab/commercial/api/';
1964
- }
1965
- getStrategyByUserCommercial(user) {
1966
- let serviceUrl = this.SERVICE_URL + 'post/contact/strategy/byaviser';
1967
- this.generateRequestParams(user);
1968
- return this.http.post(serviceUrl, this.httpOptions);
1969
- }
1970
- getObservationsContact(codeContact) {
1971
- let serviceUrl = this.SERVICE_URL + 'get/contact/observation/strategy/bycode/' + codeContact;
1972
- return this.http.get(serviceUrl);
1973
- }
1974
- createObservations(params) {
1975
- let serviceUrl = this.SERVICE_URL + 'post/contact/observation/create';
1976
- this.generateRequestParams(params);
1977
- return this.http.post(serviceUrl, this.httpOptions);
1978
- }
1979
- getUserStatistics(userToken) {
1980
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
1981
- this.generateRequestParams(userToken);
1982
- return this.http.post(serviceUrl, this.httpOptions);
1983
- }
1984
- getTopAdviser() {
1985
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/topadviser';
1986
- return this.http.get(serviceUrl, this.httpOptions);
1987
- }
1988
- getMovementStatus() {
1989
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/movements/status';
1990
- return this.http.get(serviceUrl, this.httpOptions);
1991
- }
1992
- getgroupSignupStatus() {
1993
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/group/signup';
1994
- return this.http.get(serviceUrl, this.httpOptions);
1995
- }
1996
- //Construye los headers y paramns
1997
- generateRequestParams(param) {
1998
- this.httpOptions = {
1999
- header: new HttpHeaders(),
2000
- params: param,
2001
- };
2002
- }
2003
- }
2004
- 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 });
2005
- MarketingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, providedIn: 'root' });
2006
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, decorators: [{
2007
- type: Injectable,
2008
- args: [{
2009
- providedIn: 'root'
2010
- }]
1959
+ class MarketingService {
1960
+ constructor(http) {
1961
+ this.http = http;
1962
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/commercial/api/';
1963
+ }
1964
+ getStrategyByUserCommercial(user) {
1965
+ let serviceUrl = this.SERVICE_URL + 'post/contact/strategy/byaviser';
1966
+ this.generateRequestParams(user);
1967
+ return this.http.post(serviceUrl, this.httpOptions);
1968
+ }
1969
+ getObservationsContact(codeContact) {
1970
+ let serviceUrl = this.SERVICE_URL + 'get/contact/observation/strategy/bycode/' + codeContact;
1971
+ return this.http.get(serviceUrl);
1972
+ }
1973
+ createObservations(params) {
1974
+ let serviceUrl = this.SERVICE_URL + 'post/contact/observation/create';
1975
+ this.generateRequestParams(params);
1976
+ return this.http.post(serviceUrl, this.httpOptions);
1977
+ }
1978
+ getUserStatistics(userToken) {
1979
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
1980
+ this.generateRequestParams(userToken);
1981
+ return this.http.post(serviceUrl, this.httpOptions);
1982
+ }
1983
+ getTopAdviser() {
1984
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/topadviser';
1985
+ return this.http.get(serviceUrl, this.httpOptions);
1986
+ }
1987
+ getMovementStatus() {
1988
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/movements/status';
1989
+ return this.http.get(serviceUrl, this.httpOptions);
1990
+ }
1991
+ getgroupSignupStatus() {
1992
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/group/signup';
1993
+ return this.http.get(serviceUrl, this.httpOptions);
1994
+ }
1995
+ //Construye los headers y paramns
1996
+ generateRequestParams(param) {
1997
+ this.httpOptions = {
1998
+ header: new HttpHeaders(),
1999
+ params: param,
2000
+ };
2001
+ }
2002
+ }
2003
+ 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 });
2004
+ MarketingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, providedIn: 'root' });
2005
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, decorators: [{
2006
+ type: Injectable,
2007
+ args: [{
2008
+ providedIn: 'root'
2009
+ }]
2011
2010
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2012
2011
 
2013
- class BudgetService {
2014
- constructor(http) {
2015
- this.http = http;
2016
- this.SERVICE_URL = 'https://iptdev.com.co/lab/budget/api/';
2017
- }
2018
- getAllDiscount(user) {
2019
- let serviceUrl = this.SERVICE_URL + 'post/discounts/coupon/all';
2020
- this.generateRequestParams(user);
2021
- return this.http.post(serviceUrl, this.httpOptions);
2022
- }
2023
- createDiscount(params) {
2024
- let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/create';
2025
- this.generateRequestParams(params);
2026
- return this.http.post(serviceUrl, this.httpOptions);
2027
- }
2028
- updateDiscount(params) {
2029
- let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/update';
2030
- this.generateRequestParams(params);
2031
- return this.http.post(serviceUrl, this.httpOptions);
2032
- }
2033
- //Construye los headers y paramns
2034
- generateRequestParams(param) {
2035
- this.httpOptions = {
2036
- header: new HttpHeaders(),
2037
- params: param,
2038
- };
2039
- }
2040
- }
2041
- 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 });
2042
- BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, providedIn: 'root' });
2043
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, decorators: [{
2044
- type: Injectable,
2045
- args: [{
2046
- providedIn: 'root'
2047
- }]
2012
+ class BudgetService {
2013
+ constructor(http) {
2014
+ this.http = http;
2015
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/budget/api/';
2016
+ }
2017
+ getAllDiscount(user) {
2018
+ let serviceUrl = this.SERVICE_URL + 'post/discounts/coupon/all';
2019
+ this.generateRequestParams(user);
2020
+ return this.http.post(serviceUrl, this.httpOptions);
2021
+ }
2022
+ createDiscount(params) {
2023
+ let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/create';
2024
+ this.generateRequestParams(params);
2025
+ return this.http.post(serviceUrl, this.httpOptions);
2026
+ }
2027
+ updateDiscount(params) {
2028
+ let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/update';
2029
+ this.generateRequestParams(params);
2030
+ return this.http.post(serviceUrl, this.httpOptions);
2031
+ }
2032
+ //Construye los headers y paramns
2033
+ generateRequestParams(param) {
2034
+ this.httpOptions = {
2035
+ header: new HttpHeaders(),
2036
+ params: param,
2037
+ };
2038
+ }
2039
+ }
2040
+ 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 });
2041
+ BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, providedIn: 'root' });
2042
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, decorators: [{
2043
+ type: Injectable,
2044
+ args: [{
2045
+ providedIn: 'root'
2046
+ }]
2048
2047
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2049
2048
 
2050
- class ClassroomService {
2051
- constructor(http) {
2052
- this.http = http;
2053
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2054
- }
2055
- getClassroomsByModality(params) {
2056
- let serviceUrl = this.SERVICE_URL + 'post/classroom/by/modality';
2057
- this.generateRequestParams(params);
2058
- return this.http.post(serviceUrl, this.httpOptions);
2059
- }
2060
- getClassroomByIdCalendar(params) {
2061
- let serviceUrl = this.SERVICE_URL + 'post/classroom/by/idcalendar';
2062
- this.generateRequestParams(params);
2063
- return this.http.post(serviceUrl, this.httpOptions);
2064
- }
2065
- // construye los headers y params
2066
- generateRequestParams(param) {
2067
- this.httpOptions = {
2068
- header: new HttpHeaders(),
2069
- params: param,
2070
- };
2071
- }
2072
- }
2073
- 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 });
2074
- ClassroomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClassroomService, providedIn: 'root' });
2075
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClassroomService, decorators: [{
2076
- type: Injectable,
2077
- args: [{
2078
- providedIn: 'root',
2079
- }]
2049
+ class ClassroomService {
2050
+ constructor(http) {
2051
+ this.http = http;
2052
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2053
+ }
2054
+ getClassroomsByModality(params) {
2055
+ let serviceUrl = this.SERVICE_URL + 'post/classroom/by/modality';
2056
+ this.generateRequestParams(params);
2057
+ return this.http.post(serviceUrl, this.httpOptions);
2058
+ }
2059
+ getClassroomByIdCalendar(params) {
2060
+ let serviceUrl = this.SERVICE_URL + 'post/classroom/by/idcalendar';
2061
+ this.generateRequestParams(params);
2062
+ return this.http.post(serviceUrl, this.httpOptions);
2063
+ }
2064
+ // construye los headers y params
2065
+ generateRequestParams(param) {
2066
+ this.httpOptions = {
2067
+ header: new HttpHeaders(),
2068
+ params: param,
2069
+ };
2070
+ }
2071
+ }
2072
+ 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 });
2073
+ ClassroomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClassroomService, providedIn: 'root' });
2074
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClassroomService, decorators: [{
2075
+ type: Injectable,
2076
+ args: [{
2077
+ providedIn: 'root',
2078
+ }]
2080
2079
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2081
2080
 
2082
- class ActivityService {
2083
- constructor(http) {
2084
- this.http = http;
2085
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2086
- }
2087
- getActivityByCourse(params) {
2088
- let serviceUrl = this.SERVICE_URL + 'post/activities/by/course/code';
2089
- this.generateRequestParams(params);
2090
- return this.http.post(serviceUrl, this.httpOptions);
2091
- }
2092
- getNoticesByCourse(codeCourse) {
2093
- let serviceUrl = this.SERVICE_URL + 'post/notices/by/course/code/' + codeCourse;
2094
- return this.http.get(serviceUrl);
2095
- }
2096
- getUnitsByActivity(params) {
2097
- let serviceUrl = this.SERVICE_URL + 'post/units/by/activity/code';
2098
- this.generateRequestParams(params);
2099
- return this.http.post(serviceUrl, this.httpOptions);
2100
- }
2101
- getElementsByUnit(params) {
2102
- let serviceUrl = this.SERVICE_URL + 'post/element/by/unit/code';
2103
- this.generateRequestParams(params);
2104
- return this.http.post(serviceUrl, this.httpOptions);
2105
- }
2106
- getCourseTeacherByToken(params) {
2107
- let serviceUrl = this.SERVICE_URL + 'post/course/teacher/by/token';
2108
- this.generateRequestParams(params);
2109
- return this.http.post(serviceUrl, this.httpOptions);
2110
- }
2111
- getAllTypeResource() {
2112
- let serviceUrl = this.SERVICE_URL + 'get/all/type/resource/template';
2113
- return this.http.get(serviceUrl);
2114
- }
2115
- getAllTypeElement() {
2116
- let serviceUrl = this.SERVICE_URL + 'get/all/type/element/template';
2117
- return this.http.get(serviceUrl);
2118
- }
2119
- getElementsByUnitNew(params) {
2120
- let serviceUrl = this.SERVICE_URL + 'post/element/by/unit/code/new';
2121
- this.generateRequestParams(params);
2122
- return this.http.post(serviceUrl, this.httpOptions);
2123
- }
2124
- updateCourseByCronogram(params) {
2125
- let serviceUrl = this.SERVICE_URL + 'post/update/course/by/code';
2126
- this.generateRequestParams(params);
2127
- return this.http.post(serviceUrl, this.httpOptions);
2128
- }
2129
- getTemplateCourseByCourse(codeCourse) {
2130
- let serviceUrl = this.SERVICE_URL + 'get/template/course/by/course/code/' + codeCourse;
2131
- return this.http.get(serviceUrl);
2132
- }
2133
- saveMagnageActivity(params) {
2134
- let serviceUrl = this.SERVICE_URL + 'post/manage/activities/by/course/element';
2135
- this.generateRequestParams(params);
2136
- return this.http.post(serviceUrl, this.httpOptions);
2137
- }
2138
- postNotesActivityH5P(params) {
2139
- let serviceUrl = this.SERVICE_URL + 'post/activity/h5p/notes';
2140
- this.generateRequestParams(params);
2141
- return this.http.post(serviceUrl, this.httpOptions);
2142
- }
2143
- getMagnageActivity(params) {
2144
- let serviceUrl = this.SERVICE_URL + 'post/template/admin/by/course/element';
2145
- this.generateRequestParams(params);
2146
- return this.http.post(serviceUrl, this.httpOptions);
2147
- }
2148
- getNoteActivityH5P(params) {
2149
- let serviceUrl = this.SERVICE_URL + 'post/note/activity/h5p';
2150
- this.generateRequestParams(params);
2151
- return this.http.post(serviceUrl, this.httpOptions);
2152
- }
2153
- // construye los headers y params
2154
- generateRequestParams(param) {
2155
- this.httpOptions = {
2156
- header: new HttpHeaders(),
2157
- params: param,
2158
- };
2159
- }
2160
- }
2161
- 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 });
2162
- ActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActivityService, providedIn: 'root' });
2163
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActivityService, decorators: [{
2164
- type: Injectable,
2165
- args: [{
2166
- providedIn: 'root',
2167
- }]
2081
+ class ActivityService {
2082
+ constructor(http) {
2083
+ this.http = http;
2084
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2085
+ }
2086
+ getActivityByCourse(params) {
2087
+ let serviceUrl = this.SERVICE_URL + 'post/activities/by/course/code';
2088
+ this.generateRequestParams(params);
2089
+ return this.http.post(serviceUrl, this.httpOptions);
2090
+ }
2091
+ getNoticesByCourse(codeCourse) {
2092
+ let serviceUrl = this.SERVICE_URL + 'post/notices/by/course/code/' + codeCourse;
2093
+ return this.http.get(serviceUrl);
2094
+ }
2095
+ getUnitsByActivity(params) {
2096
+ let serviceUrl = this.SERVICE_URL + 'post/units/by/activity/code';
2097
+ this.generateRequestParams(params);
2098
+ return this.http.post(serviceUrl, this.httpOptions);
2099
+ }
2100
+ getElementsByUnit(params) {
2101
+ let serviceUrl = this.SERVICE_URL + 'post/element/by/unit/code';
2102
+ this.generateRequestParams(params);
2103
+ return this.http.post(serviceUrl, this.httpOptions);
2104
+ }
2105
+ getCourseTeacherByToken(params) {
2106
+ let serviceUrl = this.SERVICE_URL + 'post/course/teacher/by/token';
2107
+ this.generateRequestParams(params);
2108
+ return this.http.post(serviceUrl, this.httpOptions);
2109
+ }
2110
+ getAllTypeResource() {
2111
+ let serviceUrl = this.SERVICE_URL + 'get/all/type/resource/template';
2112
+ return this.http.get(serviceUrl);
2113
+ }
2114
+ getAllTypeElement() {
2115
+ let serviceUrl = this.SERVICE_URL + 'get/all/type/element/template';
2116
+ return this.http.get(serviceUrl);
2117
+ }
2118
+ getElementsByUnitNew(params) {
2119
+ let serviceUrl = this.SERVICE_URL + 'post/element/by/unit/code/new';
2120
+ this.generateRequestParams(params);
2121
+ return this.http.post(serviceUrl, this.httpOptions);
2122
+ }
2123
+ updateCourseByCronogram(params) {
2124
+ let serviceUrl = this.SERVICE_URL + 'post/update/course/by/code';
2125
+ this.generateRequestParams(params);
2126
+ return this.http.post(serviceUrl, this.httpOptions);
2127
+ }
2128
+ getTemplateCourseByCourse(codeCourse) {
2129
+ let serviceUrl = this.SERVICE_URL + 'get/template/course/by/course/code/' + codeCourse;
2130
+ return this.http.get(serviceUrl);
2131
+ }
2132
+ saveMagnageActivity(params) {
2133
+ let serviceUrl = this.SERVICE_URL + 'post/manage/activities/by/course/element';
2134
+ this.generateRequestParams(params);
2135
+ return this.http.post(serviceUrl, this.httpOptions);
2136
+ }
2137
+ postNotesActivityH5P(params) {
2138
+ let serviceUrl = this.SERVICE_URL + 'post/activity/h5p/notes';
2139
+ this.generateRequestParams(params);
2140
+ return this.http.post(serviceUrl, this.httpOptions);
2141
+ }
2142
+ getMagnageActivity(params) {
2143
+ let serviceUrl = this.SERVICE_URL + 'post/template/admin/by/course/element';
2144
+ this.generateRequestParams(params);
2145
+ return this.http.post(serviceUrl, this.httpOptions);
2146
+ }
2147
+ getNoteActivityH5P(params) {
2148
+ let serviceUrl = this.SERVICE_URL + 'post/note/activity/h5p';
2149
+ this.generateRequestParams(params);
2150
+ return this.http.post(serviceUrl, this.httpOptions);
2151
+ }
2152
+ // construye los headers y params
2153
+ generateRequestParams(param) {
2154
+ this.httpOptions = {
2155
+ header: new HttpHeaders(),
2156
+ params: param,
2157
+ };
2158
+ }
2159
+ }
2160
+ 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 });
2161
+ ActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActivityService, providedIn: 'root' });
2162
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActivityService, decorators: [{
2163
+ type: Injectable,
2164
+ args: [{
2165
+ providedIn: 'root',
2166
+ }]
2168
2167
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2169
2168
 
2170
- class CoreModule {
2171
- }
2172
- CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2173
- CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule });
2174
- CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, providers: [
2175
- ParameterService,
2176
- CourseService,
2177
- StorageService,
2178
- UserService,
2179
- SwitchService,
2180
- RedirectGuard,
2181
- BaseService,
2182
- TestService,
2183
- MarketingService,
2184
- ClassroomService,
2185
- BudgetService,
2186
- ActivityService
2187
- ] });
2188
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, decorators: [{
2189
- type: NgModule,
2190
- args: [{
2191
- providers: [
2192
- ParameterService,
2193
- CourseService,
2194
- StorageService,
2195
- UserService,
2196
- SwitchService,
2197
- RedirectGuard,
2198
- BaseService,
2199
- TestService,
2200
- MarketingService,
2201
- ClassroomService,
2202
- BudgetService,
2203
- ActivityService
2204
- ]
2205
- }]
2169
+ class CoreModule {
2170
+ }
2171
+ CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2172
+ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule });
2173
+ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, providers: [
2174
+ ParameterService,
2175
+ CourseService,
2176
+ StorageService,
2177
+ UserService,
2178
+ SwitchService,
2179
+ RedirectGuard,
2180
+ BaseService,
2181
+ TestService,
2182
+ MarketingService,
2183
+ ClassroomService,
2184
+ BudgetService,
2185
+ ActivityService
2186
+ ] });
2187
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, decorators: [{
2188
+ type: NgModule,
2189
+ args: [{
2190
+ providers: [
2191
+ ParameterService,
2192
+ CourseService,
2193
+ StorageService,
2194
+ UserService,
2195
+ SwitchService,
2196
+ RedirectGuard,
2197
+ BaseService,
2198
+ TestService,
2199
+ MarketingService,
2200
+ ClassroomService,
2201
+ BudgetService,
2202
+ ActivityService
2203
+ ]
2204
+ }]
2206
2205
  }] });
2207
2206
 
2208
- class DesignSystemModule {
2209
- }
2210
- DesignSystemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2211
- DesignSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [ComponentsModule,
2212
- CoreModule,
2213
- CurrencyMaskModule], exports: [ComponentsModule,
2214
- CoreModule,
2215
- CurrencyMaskModule] });
2216
- DesignSystemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [[
2217
- ComponentsModule,
2218
- CoreModule,
2219
- CurrencyMaskModule
2220
- ], ComponentsModule,
2221
- CoreModule,
2222
- CurrencyMaskModule] });
2223
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, decorators: [{
2224
- type: NgModule,
2225
- args: [{
2226
- imports: [
2227
- ComponentsModule,
2228
- CoreModule,
2229
- CurrencyMaskModule
2230
- ],
2231
- exports: [
2232
- ComponentsModule,
2233
- CoreModule,
2234
- CurrencyMaskModule
2235
- ],
2236
- }]
2207
+ class DesignSystemModule {
2208
+ }
2209
+ DesignSystemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2210
+ DesignSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [ComponentsModule,
2211
+ CoreModule,
2212
+ CurrencyMaskModule], exports: [ComponentsModule,
2213
+ CoreModule,
2214
+ CurrencyMaskModule] });
2215
+ DesignSystemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [[
2216
+ ComponentsModule,
2217
+ CoreModule,
2218
+ CurrencyMaskModule
2219
+ ], ComponentsModule,
2220
+ CoreModule,
2221
+ CurrencyMaskModule] });
2222
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, decorators: [{
2223
+ type: NgModule,
2224
+ args: [{
2225
+ imports: [
2226
+ ComponentsModule,
2227
+ CoreModule,
2228
+ CurrencyMaskModule
2229
+ ],
2230
+ exports: [
2231
+ ComponentsModule,
2232
+ CoreModule,
2233
+ CurrencyMaskModule
2234
+ ],
2235
+ }]
2237
2236
  }] });
2238
2237
 
2239
- class AttendanceService {
2240
- constructor(http) {
2241
- this.http = http;
2242
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api';
2243
- }
2244
- addEventByCourseRq(params) {
2245
- let serviceUrl = `${this.SERVICE_URL}/post/event/by/course`;
2246
- this.generateRequestParams(params);
2247
- return this.http.post(serviceUrl, this.httpOptions);
2248
- }
2249
- getEventsByCourseCode(params) {
2250
- let serviceUrl = `${this.SERVICE_URL}/post/obtain/events/by/course_code`;
2251
- this.generateRequestParams(params);
2252
- return this.http.post(serviceUrl, this.httpOptions);
2253
- }
2254
- getEventByCode(params) {
2255
- let serviceUrl = `${this.SERVICE_URL}/post/obtain/event/by/code`;
2256
- this.generateRequestParams(params);
2257
- return this.http.post(serviceUrl, this.httpOptions);
2258
- }
2259
- registerNewAttendanceByEvent(params) {
2260
- let serviceUrl = `${this.SERVICE_URL}/register/attendance/by/event`;
2261
- this.generateRequestParams(params);
2262
- return this.http.post(serviceUrl, this.httpOptions);
2263
- }
2264
- getAttendaceByCourse(courseCode) {
2265
- let serviceUrl = `${this.SERVICE_URL}/post/obtain/attendances/by/course/${courseCode}`;
2266
- return this.http.get(serviceUrl);
2267
- }
2268
- getCODCodeByStudentCode(studentCode) {
2269
- let serviceUrl = `${this.SERVICE_URL}/get/cod_code/by/student_code/${studentCode}`;
2270
- return this.http.get(serviceUrl);
2271
- }
2272
- getAttendanceHistoryByStudent(token, cod_code) {
2273
- let serviceUrl = `${this.SERVICE_URL}/post/obtain/attendance/history/by/student`;
2274
- this.generateRequestParams({ token, cod_code });
2275
- return this.http.post(serviceUrl, this.httpOptions);
2276
- }
2277
- getAllNotAttendancesByCod(params) {
2278
- let serviceUrl = `${this.SERVICE_URL}/get/all/not/attendances/by/cod`;
2279
- this.generateRequestParams(params);
2280
- return this.http.post(serviceUrl, this.httpOptions);
2281
- }
2282
- getNotAttendancesOfLastWeekByCod(params) {
2283
- let serviceUrl = `${this.SERVICE_URL}/get/all/not/attendances/lastweek/by/cod`;
2284
- this.generateRequestParams(params);
2285
- return this.http.post(serviceUrl, this.httpOptions);
2286
- }
2287
- // construye los headers y params
2288
- generateRequestParams(param) {
2289
- this.httpOptions = {
2290
- header: new HttpHeaders(),
2291
- params: param,
2292
- };
2293
- }
2294
- }
2295
- 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 });
2296
- AttendanceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, providedIn: 'root' });
2297
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, decorators: [{
2298
- type: Injectable,
2299
- args: [{
2300
- providedIn: 'root'
2301
- }]
2238
+ class AttendanceService {
2239
+ constructor(http) {
2240
+ this.http = http;
2241
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api';
2242
+ }
2243
+ addEventByCourseRq(params) {
2244
+ let serviceUrl = `${this.SERVICE_URL}/post/event/by/course`;
2245
+ this.generateRequestParams(params);
2246
+ return this.http.post(serviceUrl, this.httpOptions);
2247
+ }
2248
+ getEventsByCourseCode(params) {
2249
+ let serviceUrl = `${this.SERVICE_URL}/post/obtain/events/by/course_code`;
2250
+ this.generateRequestParams(params);
2251
+ return this.http.post(serviceUrl, this.httpOptions);
2252
+ }
2253
+ getEventByCode(params) {
2254
+ let serviceUrl = `${this.SERVICE_URL}/post/obtain/event/by/code`;
2255
+ this.generateRequestParams(params);
2256
+ return this.http.post(serviceUrl, this.httpOptions);
2257
+ }
2258
+ registerNewAttendanceByEvent(params) {
2259
+ let serviceUrl = `${this.SERVICE_URL}/register/attendance/by/event`;
2260
+ this.generateRequestParams(params);
2261
+ return this.http.post(serviceUrl, this.httpOptions);
2262
+ }
2263
+ getAttendaceByCourse(courseCode) {
2264
+ let serviceUrl = `${this.SERVICE_URL}/post/obtain/attendances/by/course/${courseCode}`;
2265
+ return this.http.get(serviceUrl);
2266
+ }
2267
+ getCODCodeByStudentCode(studentCode) {
2268
+ let serviceUrl = `${this.SERVICE_URL}/get/cod_code/by/student_code/${studentCode}`;
2269
+ return this.http.get(serviceUrl);
2270
+ }
2271
+ getAttendanceHistoryByStudent(token, cod_code) {
2272
+ let serviceUrl = `${this.SERVICE_URL}/post/obtain/attendance/history/by/student`;
2273
+ this.generateRequestParams({ token, cod_code });
2274
+ return this.http.post(serviceUrl, this.httpOptions);
2275
+ }
2276
+ getAllNotAttendancesByCod(params) {
2277
+ let serviceUrl = `${this.SERVICE_URL}/get/all/not/attendances/by/cod`;
2278
+ this.generateRequestParams(params);
2279
+ return this.http.post(serviceUrl, this.httpOptions);
2280
+ }
2281
+ getNotAttendancesOfLastWeekByCod(params) {
2282
+ let serviceUrl = `${this.SERVICE_URL}/get/all/not/attendances/lastweek/by/cod`;
2283
+ this.generateRequestParams(params);
2284
+ return this.http.post(serviceUrl, this.httpOptions);
2285
+ }
2286
+ // construye los headers y params
2287
+ generateRequestParams(param) {
2288
+ this.httpOptions = {
2289
+ header: new HttpHeaders(),
2290
+ params: param,
2291
+ };
2292
+ }
2293
+ }
2294
+ 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 });
2295
+ AttendanceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, providedIn: 'root' });
2296
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, decorators: [{
2297
+ type: Injectable,
2298
+ args: [{
2299
+ providedIn: 'root'
2300
+ }]
2302
2301
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2303
2302
 
2304
- class NotesService {
2305
- constructor(http) {
2306
- this.http = http;
2307
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2308
- }
2309
- getNotesByGroup(params) {
2310
- let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/course';
2311
- this.generateRequestParams(params);
2312
- return this.http.post(serviceUrl, this.httpOptions);
2313
- }
2314
- getNotesByStudent(params) {
2315
- let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/student';
2316
- this.generateRequestParams(params);
2317
- return this.http.post(serviceUrl, this.httpOptions);
2318
- }
2319
- createNewNote(params) {
2320
- let serviceUrl = this.SERVICE_URL + 'post/create/note';
2321
- this.generateRequestParams(params);
2322
- return this.http.post(serviceUrl, this.httpOptions);
2323
- }
2324
- updateStudentNote(params) {
2325
- let serviceUrl = this.SERVICE_URL + 'update/note';
2326
- this.generateRequestParams(params);
2327
- return this.http.put(serviceUrl, this.httpOptions);
2328
- }
2329
- calculateFinalNote(params) {
2330
- let serviceUrl = this.SERVICE_URL + 'post/calculate/final/note';
2331
- this.generateRequestParams(params);
2332
- return this.http.post(serviceUrl, this.httpOptions);
2333
- }
2334
- generateRequestParams(param) {
2335
- this.httpOptions = {
2336
- header: new HttpHeaders(),
2337
- params: param,
2338
- };
2339
- }
2340
- }
2341
- 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 });
2342
- NotesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, providedIn: 'root' });
2343
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, decorators: [{
2344
- type: Injectable,
2345
- args: [{
2346
- providedIn: 'root'
2347
- }]
2303
+ class NotesService {
2304
+ constructor(http) {
2305
+ this.http = http;
2306
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2307
+ }
2308
+ getNotesByGroup(params) {
2309
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/course';
2310
+ this.generateRequestParams(params);
2311
+ return this.http.post(serviceUrl, this.httpOptions);
2312
+ }
2313
+ getNotesByStudent(params) {
2314
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/student';
2315
+ this.generateRequestParams(params);
2316
+ return this.http.post(serviceUrl, this.httpOptions);
2317
+ }
2318
+ createNewNote(params) {
2319
+ let serviceUrl = this.SERVICE_URL + 'post/create/note';
2320
+ this.generateRequestParams(params);
2321
+ return this.http.post(serviceUrl, this.httpOptions);
2322
+ }
2323
+ updateStudentNote(params) {
2324
+ let serviceUrl = this.SERVICE_URL + 'update/note';
2325
+ this.generateRequestParams(params);
2326
+ return this.http.put(serviceUrl, this.httpOptions);
2327
+ }
2328
+ calculateFinalNote(params) {
2329
+ let serviceUrl = this.SERVICE_URL + 'post/calculate/final/note';
2330
+ this.generateRequestParams(params);
2331
+ return this.http.post(serviceUrl, this.httpOptions);
2332
+ }
2333
+ generateRequestParams(param) {
2334
+ this.httpOptions = {
2335
+ header: new HttpHeaders(),
2336
+ params: param,
2337
+ };
2338
+ }
2339
+ }
2340
+ 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 });
2341
+ NotesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, providedIn: 'root' });
2342
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, decorators: [{
2343
+ type: Injectable,
2344
+ args: [{
2345
+ providedIn: 'root'
2346
+ }]
2348
2347
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2349
2348
 
2350
- class StudentService {
2351
- constructor(http) {
2352
- this.http = http;
2353
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2354
- }
2355
- getStudentsByCourse(params) {
2356
- let serviceUrl = this.SERVICE_URL + 'post/obtain/students/by/course';
2357
- this.generateRequestParams(params);
2358
- return this.http.post(serviceUrl, this.httpOptions);
2359
- }
2360
- generateRequestParams(param) {
2361
- this.httpOptions = {
2362
- header: new HttpHeaders(),
2363
- params: param,
2364
- };
2365
- }
2366
- }
2367
- 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 });
2368
- StudentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, providedIn: 'root' });
2369
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, decorators: [{
2370
- type: Injectable,
2371
- args: [{
2372
- providedIn: 'root'
2373
- }]
2349
+ class StudentService {
2350
+ constructor(http) {
2351
+ this.http = http;
2352
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2353
+ }
2354
+ getStudentsByCourse(params) {
2355
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/students/by/course';
2356
+ this.generateRequestParams(params);
2357
+ return this.http.post(serviceUrl, this.httpOptions);
2358
+ }
2359
+ generateRequestParams(param) {
2360
+ this.httpOptions = {
2361
+ header: new HttpHeaders(),
2362
+ params: param,
2363
+ };
2364
+ }
2365
+ }
2366
+ 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 });
2367
+ StudentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, providedIn: 'root' });
2368
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, decorators: [{
2369
+ type: Injectable,
2370
+ args: [{
2371
+ providedIn: 'root'
2372
+ }]
2374
2373
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2375
2374
 
2376
- class Session {
2375
+ class Session {
2377
2376
  }
2378
2377
 
2379
- class UserRs {
2380
- }
2381
- class UserLoginRs {
2378
+ class UserRs {
2379
+ }
2380
+ class UserLoginRs {
2382
2381
  }
2383
2382
 
2384
- /*
2385
- * Public API Surface of design-system
2383
+ /*
2384
+ * Public API Surface of design-system
2386
2385
  */
2387
2386
 
2388
- /**
2389
- * Generated bundle index. Do not edit.
2387
+ /**
2388
+ * Generated bundle index. Do not edit.
2390
2389
  */
2391
2390
 
2392
2391
  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 };