iptdevs-design-system 2.6.31 → 2.6.32

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