iptdevs-design-system 2.6.52 → 2.6.54

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