iptdevs-design-system 2.6.43 → 2.6.44

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