iptdevs-design-system 2.6.42 → 2.6.44

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