iptdevs-design-system 2.5.3 → 2.5.4

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 (104) 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/radio/radio.component.mjs +47 -47
  11. package/esm2020/lib/components/atoms/select/select.component.mjs +92 -92
  12. package/esm2020/lib/components/atoms/text-link/text-link.component.mjs +39 -39
  13. package/esm2020/lib/components/components.module.mjs +108 -108
  14. package/esm2020/lib/components/forms/login-form/login-form.component.mjs +93 -93
  15. package/esm2020/lib/components/material.module.mjs +18 -18
  16. package/esm2020/lib/components/molecules/sidenav/sidenav.component.mjs +146 -146
  17. package/esm2020/lib/core/core.module.mjs +46 -46
  18. package/esm2020/lib/core/models/activities/activities.interface.mjs +2 -2
  19. package/esm2020/lib/core/models/attendance/attendance.interface.mjs +2 -2
  20. package/esm2020/lib/core/models/budget/budget.model.mjs +2 -2
  21. package/esm2020/lib/core/models/calendar/calendar-rq.models.mjs +2 -2
  22. package/esm2020/lib/core/models/cod/cod-rq.model.mjs +2 -2
  23. package/esm2020/lib/core/models/course/course-rq.model.mjs +2 -2
  24. package/esm2020/lib/core/models/cronogram/cronogram.models.mjs +2 -2
  25. package/esm2020/lib/core/models/marketing/marketing.model.mjs +2 -2
  26. package/esm2020/lib/core/models/notes/notes.interface.mjs +2 -2
  27. package/esm2020/lib/core/models/response/response.interface.mjs +2 -2
  28. package/esm2020/lib/core/models/session/session.model.mjs +3 -3
  29. package/esm2020/lib/core/models/student/student.interface.mjs +2 -2
  30. package/esm2020/lib/core/models/table/table-rs.model.mjs +2 -2
  31. package/esm2020/lib/core/models/test/test.model.mjs +2 -2
  32. package/esm2020/lib/core/models/url/url.model.mjs +2 -2
  33. package/esm2020/lib/core/models/user/user-rq.model.mjs +2 -2
  34. package/esm2020/lib/core/models/user/user-rs.model.mjs +5 -5
  35. package/esm2020/lib/core/services/attendance-service/attendance.service.mjs +17 -17
  36. package/esm2020/lib/core/services/budget-service/budget-service.mjs +41 -41
  37. package/esm2020/lib/core/services/calendar-service/calendar.service.mjs +34 -34
  38. package/esm2020/lib/core/services/course-service/course-service.model.mjs +75 -75
  39. package/esm2020/lib/core/services/marketing-service/marketing-service.mjs +57 -57
  40. package/esm2020/lib/core/services/notes-service/notes.service.mjs +40 -40
  41. package/esm2020/lib/core/services/parameters-service/parameters.service.mjs +114 -114
  42. package/esm2020/lib/core/services/storage-service/storage-service.mjs +50 -50
  43. package/esm2020/lib/core/services/student-service/student.service.mjs +30 -30
  44. package/esm2020/lib/core/services/switch-service/switch.service.mjs +16 -16
  45. package/esm2020/lib/core/services/test-service/test.service.mjs +136 -136
  46. package/esm2020/lib/core/services/user-service/user-service.mjs +84 -84
  47. package/esm2020/lib/core/utils/base-service/base.service.mjs +153 -153
  48. package/esm2020/lib/core/utils/route-service/route.service.mjs +18 -18
  49. package/esm2020/lib/design-system.module.mjs +36 -36
  50. package/esm2020/public-api.mjs +56 -56
  51. package/fesm2015/iptdevs-design-system.mjs +1785 -1785
  52. package/fesm2015/iptdevs-design-system.mjs.map +1 -1
  53. package/fesm2020/iptdevs-design-system.mjs +1782 -1782
  54. package/fesm2020/iptdevs-design-system.mjs.map +1 -1
  55. package/iptdevs-design-system.d.ts +5 -5
  56. package/lib/components/atoms/aside-button/aside-button.component.d.ts +11 -11
  57. package/lib/components/atoms/button/button.component.d.ts +13 -13
  58. package/lib/components/atoms/checkbox/checkbox.component.d.ts +11 -11
  59. package/lib/components/atoms/datalist/datalist.component.d.ts +20 -20
  60. package/lib/components/atoms/input/input.component.d.ts +26 -26
  61. package/lib/components/atoms/level-button/level-button.component.d.ts +11 -11
  62. package/lib/components/atoms/level-text/level-text.component.d.ts +7 -7
  63. package/lib/components/atoms/radio/radio.component.d.ts +11 -11
  64. package/lib/components/atoms/select/select.component.d.ts +24 -24
  65. package/lib/components/atoms/text-link/text-link.component.d.ts +12 -12
  66. package/lib/components/components.module.d.ts +22 -22
  67. package/lib/components/forms/login-form/login-form.component.d.ts +13 -13
  68. package/lib/components/material.module.d.ts +10 -10
  69. package/lib/components/molecules/sidenav/sidenav.component.d.ts +22 -22
  70. package/lib/core/core.module.d.ts +6 -6
  71. package/lib/core/models/activities/activities.interface.d.ts +6 -6
  72. package/lib/core/models/attendance/attendance.interface.d.ts +44 -44
  73. package/lib/core/models/budget/budget.model.d.ts +69 -69
  74. package/lib/core/models/calendar/calendar-rq.models.d.ts +27 -27
  75. package/lib/core/models/cod/cod-rq.model.d.ts +51 -51
  76. package/lib/core/models/course/course-rq.model.d.ts +86 -86
  77. package/lib/core/models/cronogram/cronogram.models.d.ts +71 -71
  78. package/lib/core/models/marketing/marketing.model.d.ts +104 -104
  79. package/lib/core/models/notes/notes.interface.d.ts +61 -61
  80. package/lib/core/models/response/response.interface.d.ts +10 -10
  81. package/lib/core/models/session/session.model.d.ts +5 -5
  82. package/lib/core/models/student/student.interface.d.ts +4 -4
  83. package/lib/core/models/table/table-rs.model.d.ts +7 -7
  84. package/lib/core/models/test/test.model.d.ts +219 -219
  85. package/lib/core/models/url/url.model.d.ts +8 -8
  86. package/lib/core/models/user/user-rq.model.d.ts +91 -91
  87. package/lib/core/models/user/user-rs.model.d.ts +35 -35
  88. package/lib/core/services/attendance-service/attendance.service.d.ts +8 -8
  89. package/lib/core/services/budget-service/budget-service.d.ts +16 -16
  90. package/lib/core/services/calendar-service/calendar.service.d.ts +15 -15
  91. package/lib/core/services/course-service/course-service.model.d.ts +24 -24
  92. package/lib/core/services/marketing-service/marketing-service.d.ts +20 -20
  93. package/lib/core/services/notes-service/notes.service.d.ts +17 -17
  94. package/lib/core/services/parameters-service/parameters.service.d.ts +34 -34
  95. package/lib/core/services/storage-service/storage-service.d.ts +18 -18
  96. package/lib/core/services/student-service/student.service.d.ts +14 -14
  97. package/lib/core/services/switch-service/switch.service.d.ts +8 -8
  98. package/lib/core/services/test-service/test.service.d.ts +35 -35
  99. package/lib/core/services/user-service/user-service.d.ts +26 -26
  100. package/lib/core/utils/base-service/base.service.d.ts +18 -18
  101. package/lib/core/utils/route-service/route.service.d.ts +9 -9
  102. package/lib/design-system.module.d.ts +9 -9
  103. package/package.json +1 -1
  104. package/public-api.d.ts +47 -47
@@ -18,1857 +18,1857 @@ import { MatListModule } from '@angular/material/list';
18
18
  import { MatIconModule } from '@angular/material/icon';
19
19
  import * as i1$3 from '@angular/router';
20
20
 
21
- class AsideButtonComponent {
22
- constructor() {
23
- this.isClicked = new EventEmitter();
24
- }
25
- clickAction() {
26
- this.isClicked.emit(true);
27
- }
28
- }
29
- AsideButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AsideButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
30
- 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: `
31
- <div [ngSwitch]="buttonActive">
32
- <a *ngSwitchCase="0" class="flex-item-menu__link" (click)="clickAction()">
33
- <img src="{{ icon }}" alt="icon_url" />
34
- <p>{{ text }}</p>
35
- </a>
36
-
37
- <a *ngSwitchCase="1" class="flex-item-menu__link flex-item-active" (click)="clickAction()">
38
- <img src="{{ icon }}" alt="icon_url" />
39
- <p>{{ text }}</p>
40
- </a>
41
- </div>
42
- `, 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"] }] });
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AsideButtonComponent, decorators: [{
44
- type: Component,
45
- args: [{ selector: 'ipt-aside-button', template: `
46
- <div [ngSwitch]="buttonActive">
47
- <a *ngSwitchCase="0" class="flex-item-menu__link" (click)="clickAction()">
48
- <img src="{{ icon }}" alt="icon_url" />
49
- <p>{{ text }}</p>
50
- </a>
51
-
52
- <a *ngSwitchCase="1" class="flex-item-menu__link flex-item-active" (click)="clickAction()">
53
- <img src="{{ icon }}" alt="icon_url" />
54
- <p>{{ text }}</p>
55
- </a>
56
- </div>
57
- `, 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"] }]
58
- }], propDecorators: { icon: [{
59
- type: Input
60
- }], text: [{
61
- type: Input
62
- }], buttonActive: [{
63
- type: Input
64
- }], isClicked: [{
65
- type: Output
21
+ class AsideButtonComponent {
22
+ constructor() {
23
+ this.isClicked = new EventEmitter();
24
+ }
25
+ clickAction() {
26
+ this.isClicked.emit(true);
27
+ }
28
+ }
29
+ AsideButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AsideButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
30
+ 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: `
31
+ <div [ngSwitch]="buttonActive">
32
+ <a *ngSwitchCase="0" class="flex-item-menu__link" (click)="clickAction()">
33
+ <img src="{{ icon }}" alt="icon_url" />
34
+ <p>{{ text }}</p>
35
+ </a>
36
+
37
+ <a *ngSwitchCase="1" class="flex-item-menu__link flex-item-active" (click)="clickAction()">
38
+ <img src="{{ icon }}" alt="icon_url" />
39
+ <p>{{ text }}</p>
40
+ </a>
41
+ </div>
42
+ `, 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"] }] });
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AsideButtonComponent, decorators: [{
44
+ type: Component,
45
+ args: [{ selector: 'ipt-aside-button', template: `
46
+ <div [ngSwitch]="buttonActive">
47
+ <a *ngSwitchCase="0" class="flex-item-menu__link" (click)="clickAction()">
48
+ <img src="{{ icon }}" alt="icon_url" />
49
+ <p>{{ text }}</p>
50
+ </a>
51
+
52
+ <a *ngSwitchCase="1" class="flex-item-menu__link flex-item-active" (click)="clickAction()">
53
+ <img src="{{ icon }}" alt="icon_url" />
54
+ <p>{{ text }}</p>
55
+ </a>
56
+ </div>
57
+ `, 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"] }]
58
+ }], propDecorators: { icon: [{
59
+ type: Input
60
+ }], text: [{
61
+ type: Input
62
+ }], buttonActive: [{
63
+ type: Input
64
+ }], isClicked: [{
65
+ type: Output
66
66
  }] } });
67
67
 
68
- class ButtonComponent {
69
- constructor() {
70
- this.primary = false;
71
- this.size = 'medium';
72
- this.label = 'Button';
73
- this.isEnabled = true;
74
- this.onClick = new EventEmitter();
75
- }
76
- get classes() {
77
- const mode = this.primary && this.isEnabled === true
78
- ? 'ipt-button--primary'
79
- : this.isEnabled === false ? 'ipt-button--primary-disabled'
80
- : 'ipt-button--secondary';
81
- return ['ipt-button', `ipt-button--${this.size}`, mode];
82
- }
83
- }
84
- ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
85
- 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"
86
- type="{{ buttonType }}"
87
- (click)="onClick.emit($event)"
88
- [ngClass]="classes"
89
- >
90
- {{ label }}
91
- </button>
92
-
93
- <button *ngIf="!isEnabled"
94
- type="{{ buttonType }}"
95
- [ngClass]="classes"
96
- >
97
- {{ label }}
98
- </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"] }] });
99
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ButtonComponent, decorators: [{
100
- type: Component,
101
- args: [{ selector: 'ipt-button', template: `<button *ngIf="isEnabled"
102
- type="{{ buttonType }}"
103
- (click)="onClick.emit($event)"
104
- [ngClass]="classes"
105
- >
106
- {{ label }}
107
- </button>
108
-
109
- <button *ngIf="!isEnabled"
110
- type="{{ buttonType }}"
111
- [ngClass]="classes"
112
- >
113
- {{ label }}
114
- </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"] }]
115
- }], propDecorators: { primary: [{
116
- type: Input
117
- }], size: [{
118
- type: Input
119
- }], label: [{
120
- type: Input
121
- }], buttonType: [{
122
- type: Input
123
- }], isEnabled: [{
124
- type: Input
125
- }], onClick: [{
126
- type: Output
68
+ class ButtonComponent {
69
+ constructor() {
70
+ this.primary = false;
71
+ this.size = 'medium';
72
+ this.label = 'Button';
73
+ this.isEnabled = true;
74
+ this.onClick = new EventEmitter();
75
+ }
76
+ get classes() {
77
+ const mode = this.primary && this.isEnabled === true
78
+ ? 'ipt-button--primary'
79
+ : this.isEnabled === false ? 'ipt-button--primary-disabled'
80
+ : 'ipt-button--secondary';
81
+ return ['ipt-button', `ipt-button--${this.size}`, mode];
82
+ }
83
+ }
84
+ ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
85
+ 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"
86
+ type="{{ buttonType }}"
87
+ (click)="onClick.emit($event)"
88
+ [ngClass]="classes"
89
+ >
90
+ {{ label }}
91
+ </button>
92
+
93
+ <button *ngIf="!isEnabled"
94
+ type="{{ buttonType }}"
95
+ [ngClass]="classes"
96
+ >
97
+ {{ label }}
98
+ </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"] }] });
99
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ButtonComponent, decorators: [{
100
+ type: Component,
101
+ args: [{ selector: 'ipt-button', template: `<button *ngIf="isEnabled"
102
+ type="{{ buttonType }}"
103
+ (click)="onClick.emit($event)"
104
+ [ngClass]="classes"
105
+ >
106
+ {{ label }}
107
+ </button>
108
+
109
+ <button *ngIf="!isEnabled"
110
+ type="{{ buttonType }}"
111
+ [ngClass]="classes"
112
+ >
113
+ {{ label }}
114
+ </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"] }]
115
+ }], propDecorators: { primary: [{
116
+ type: Input
117
+ }], size: [{
118
+ type: Input
119
+ }], label: [{
120
+ type: Input
121
+ }], buttonType: [{
122
+ type: Input
123
+ }], isEnabled: [{
124
+ type: Input
125
+ }], onClick: [{
126
+ type: Output
127
127
  }] } });
128
128
 
129
- class CheckboxComponent {
130
- constructor() {
131
- this.checkboxOption = false;
132
- this.onChecked = new EventEmitter();
133
- }
134
- set control(value) {
135
- if (this.formControl !== value) {
136
- this.formControl = value;
137
- }
138
- }
139
- }
140
- CheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
141
- 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: `
142
- <label class="cont">
143
- <input
144
- class="checkbox"
145
- [formControl]="formControl"
146
- [checked]="checkboxOption"
147
- (click)="onChecked.emit($event)"
148
- type="checkbox">
149
- <span></span>
150
- </label>
151
- `, 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"] }] });
152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CheckboxComponent, decorators: [{
153
- type: Component,
154
- args: [{ selector: 'ipt-checkbox', template: `
155
- <label class="cont">
156
- <input
157
- class="checkbox"
158
- [formControl]="formControl"
159
- [checked]="checkboxOption"
160
- (click)="onChecked.emit($event)"
161
- type="checkbox">
162
- <span></span>
163
- </label>
164
- `, 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"] }]
165
- }], propDecorators: { checkboxOption: [{
166
- type: Input
167
- }], control: [{
168
- type: Input
169
- }], onChecked: [{
170
- type: Output
129
+ class CheckboxComponent {
130
+ constructor() {
131
+ this.checkboxOption = false;
132
+ this.onChecked = new EventEmitter();
133
+ }
134
+ set control(value) {
135
+ if (this.formControl !== value) {
136
+ this.formControl = value;
137
+ }
138
+ }
139
+ }
140
+ CheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
141
+ 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: `
142
+ <label class="cont">
143
+ <input
144
+ class="checkbox"
145
+ [formControl]="formControl"
146
+ [checked]="checkboxOption"
147
+ (click)="onChecked.emit($event)"
148
+ type="checkbox">
149
+ <span></span>
150
+ </label>
151
+ `, 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"] }] });
152
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CheckboxComponent, decorators: [{
153
+ type: Component,
154
+ args: [{ selector: 'ipt-checkbox', template: `
155
+ <label class="cont">
156
+ <input
157
+ class="checkbox"
158
+ [formControl]="formControl"
159
+ [checked]="checkboxOption"
160
+ (click)="onChecked.emit($event)"
161
+ type="checkbox">
162
+ <span></span>
163
+ </label>
164
+ `, 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"] }]
165
+ }], propDecorators: { checkboxOption: [{
166
+ type: Input
167
+ }], control: [{
168
+ type: Input
169
+ }], onChecked: [{
170
+ type: Output
171
171
  }] } });
172
172
 
173
- class DatalistComponent {
174
- constructor(fb) {
175
- this.disabledSel = false;
176
- this.isChanged = new EventEmitter();
177
- this.clicked = false;
178
- }
179
- optionChanged(event) {
180
- let selectOption = this.datalistData.find(element => element.name == event.target.value);
181
- if (typeof (selectOption) != 'undefined') {
182
- this.isChanged.emit(selectOption.code);
183
- }
184
- else {
185
- this.isChanged.emit('-1');
186
- }
187
- }
188
- click(value) {
189
- this.clicked = value.isTrusted;
190
- }
191
- setDataListValue() {
192
- let selectOption = this.datalistData.find(element => element.code == this.initalData);
193
- if (typeof (selectOption) != 'undefined') {
194
- return selectOption.name;
195
- }
196
- else {
197
- return '';
198
- }
199
- }
200
- get labelClass() {
201
- return this.clicked === false ? 'label' : 'labelUp';
202
- }
203
- }
204
- 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 });
205
- 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: `
206
- <div class="input-container">
207
- <label [ngClass]="labelClass">{{ placeHolder }}</label>
208
- <input
209
- type="text"
210
- class="input"
211
- (click)="click($event)"
212
- [attr.list]="datalistId"
213
- (change)="optionChanged($event)"
214
- [disabled]="disabledSel"
215
- [value]="setDataListValue()"
216
- />
217
-
218
- <datalist id="{{ datalistId }}">
219
- <option *ngFor="let item of datalistData; index as i" [value]="item.name">
220
- {{item.id_card}} {{item.name}}
221
- </option>
222
- </datalist>
223
- </div>
224
- `, 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"] }] });
225
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, decorators: [{
226
- type: Component,
227
- args: [{ selector: 'ipt-datalist', template: `
228
- <div class="input-container">
229
- <label [ngClass]="labelClass">{{ placeHolder }}</label>
230
- <input
231
- type="text"
232
- class="input"
233
- (click)="click($event)"
234
- [attr.list]="datalistId"
235
- (change)="optionChanged($event)"
236
- [disabled]="disabledSel"
237
- [value]="setDataListValue()"
238
- />
239
-
240
- <datalist id="{{ datalistId }}">
241
- <option *ngFor="let item of datalistData; index as i" [value]="item.name">
242
- {{item.id_card}} {{item.name}}
243
- </option>
244
- </datalist>
245
- </div>
246
- `, 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"] }]
247
- }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }]; }, propDecorators: { datalistId: [{
248
- type: Input
249
- }], datalistData: [{
250
- type: Input
251
- }], placeHolder: [{
252
- type: Input
253
- }], validateText: [{
254
- type: Input
255
- }], initalData: [{
256
- type: Input
257
- }], disabledSel: [{
258
- type: Input
259
- }], isChanged: [{
260
- type: Output
173
+ class DatalistComponent {
174
+ constructor(fb) {
175
+ this.disabledSel = false;
176
+ this.isChanged = new EventEmitter();
177
+ this.clicked = false;
178
+ }
179
+ optionChanged(event) {
180
+ let selectOption = this.datalistData.find(element => element.name == event.target.value);
181
+ if (typeof (selectOption) != 'undefined') {
182
+ this.isChanged.emit(selectOption.code);
183
+ }
184
+ else {
185
+ this.isChanged.emit('-1');
186
+ }
187
+ }
188
+ click(value) {
189
+ this.clicked = value.isTrusted;
190
+ }
191
+ setDataListValue() {
192
+ let selectOption = this.datalistData.find(element => element.code == this.initalData);
193
+ if (typeof (selectOption) != 'undefined') {
194
+ return selectOption.name;
195
+ }
196
+ else {
197
+ return '';
198
+ }
199
+ }
200
+ get labelClass() {
201
+ return this.clicked === false ? 'label' : 'labelUp';
202
+ }
203
+ }
204
+ 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 });
205
+ 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: `
206
+ <div class="input-container">
207
+ <label [ngClass]="labelClass">{{ placeHolder }}</label>
208
+ <input
209
+ type="text"
210
+ class="input"
211
+ (click)="click($event)"
212
+ [attr.list]="datalistId"
213
+ (change)="optionChanged($event)"
214
+ [disabled]="disabledSel"
215
+ [value]="setDataListValue()"
216
+ />
217
+
218
+ <datalist id="{{ datalistId }}">
219
+ <option *ngFor="let item of datalistData; index as i" [value]="item.name">
220
+ {{item.id_card}} {{item.name}}
221
+ </option>
222
+ </datalist>
223
+ </div>
224
+ `, 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"] }] });
225
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, decorators: [{
226
+ type: Component,
227
+ args: [{ selector: 'ipt-datalist', template: `
228
+ <div class="input-container">
229
+ <label [ngClass]="labelClass">{{ placeHolder }}</label>
230
+ <input
231
+ type="text"
232
+ class="input"
233
+ (click)="click($event)"
234
+ [attr.list]="datalistId"
235
+ (change)="optionChanged($event)"
236
+ [disabled]="disabledSel"
237
+ [value]="setDataListValue()"
238
+ />
239
+
240
+ <datalist id="{{ datalistId }}">
241
+ <option *ngFor="let item of datalistData; index as i" [value]="item.name">
242
+ {{item.id_card}} {{item.name}}
243
+ </option>
244
+ </datalist>
245
+ </div>
246
+ `, 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"] }]
247
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }]; }, propDecorators: { datalistId: [{
248
+ type: Input
249
+ }], datalistData: [{
250
+ type: Input
251
+ }], placeHolder: [{
252
+ type: Input
253
+ }], validateText: [{
254
+ type: Input
255
+ }], initalData: [{
256
+ type: Input
257
+ }], disabledSel: [{
258
+ type: Input
259
+ }], isChanged: [{
260
+ type: Output
261
261
  }] } });
262
262
 
263
- class InputComponent {
264
- constructor() {
265
- this.data = [];
266
- this.clicked = false;
267
- this.withPipe = false;
268
- this.prefix = '$';
269
- this.thousands = '.';
270
- this.decimal = ',';
271
- this.dateSelected = new EventEmitter();
272
- }
273
- set control(value) {
274
- if (this.formControl !== value) {
275
- this.formControl = value;
276
- }
277
- }
278
- ngOnInit() { }
279
- selectedDate(evt) {
280
- this.dateSelected.emit(evt);
281
- }
282
- click(value) {
283
- this.clicked = value.isTrusted;
284
- }
285
- }
286
- InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
287
- 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: `
288
- <div class="input-container">
289
- <input *ngIf="inputType === 'date'"
290
- class="input"
291
- type="{{ inputType ? 'text' : 'date' }}"
292
- [formControl]="formControl"
293
- (ngModelChange)="selectedDate($event)"
294
- onfocus="this.type='date';"
295
- onblur="javascript: if( !this.value ) this.type='text';"
296
- uib-datepicker-popup="dd/MM/yyyy"
297
- ng-model="inputType"/>
298
-
299
- <input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
300
- class="input"
301
- type="{{ inputType }}"
302
- [formControl]="formControl"
303
- [attr.list]="list"/>
304
-
305
- <input *ngIf="inputType === 'text' && withPipe"
306
- class="input"
307
- currencyMask
308
- [options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
309
- type="{{ inputType }}"
310
- [formControl]="formControl"
311
- [attr.list]="list"/>
312
-
313
- <input *ngIf="inputType === 'time'"
314
- class="input"
315
- type="time"
316
- [formControl]="formControl"
317
- [min]="'06:00:00'"
318
- max="22:00:00"
319
- step="900"
320
- autocomplete="on"
321
- value="08:00:00"
322
- (click)="click($event)"
323
- />
324
-
325
- <label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
326
-
327
- <p *ngIf="(formControl.invalid && formControl.value !== '') || formControl.touched">
328
- {{ validateText }}
329
- </p>
330
- </div>
331
- `, 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"] }] });
332
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, decorators: [{
333
- type: Component,
334
- args: [{ selector: 'ipt-input', template: `
335
- <div class="input-container">
336
- <input *ngIf="inputType === 'date'"
337
- class="input"
338
- type="{{ inputType ? 'text' : 'date' }}"
339
- [formControl]="formControl"
340
- (ngModelChange)="selectedDate($event)"
341
- onfocus="this.type='date';"
342
- onblur="javascript: if( !this.value ) this.type='text';"
343
- uib-datepicker-popup="dd/MM/yyyy"
344
- ng-model="inputType"/>
345
-
346
- <input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
347
- class="input"
348
- type="{{ inputType }}"
349
- [formControl]="formControl"
350
- [attr.list]="list"/>
351
-
352
- <input *ngIf="inputType === 'text' && withPipe"
353
- class="input"
354
- currencyMask
355
- [options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
356
- type="{{ inputType }}"
357
- [formControl]="formControl"
358
- [attr.list]="list"/>
359
-
360
- <input *ngIf="inputType === 'time'"
361
- class="input"
362
- type="time"
363
- [formControl]="formControl"
364
- [min]="'06:00:00'"
365
- max="22:00:00"
366
- step="900"
367
- autocomplete="on"
368
- value="08:00:00"
369
- (click)="click($event)"
370
- />
371
-
372
- <label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
373
-
374
- <p *ngIf="(formControl.invalid && formControl.value !== '') || formControl.touched">
375
- {{ validateText }}
376
- </p>
377
- </div>
378
- `, 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"] }]
379
- }], ctorParameters: function () { return []; }, propDecorators: { inputType: [{
380
- type: Input
381
- }], placeHolder: [{
382
- type: Input
383
- }], validateText: [{
384
- type: Input
385
- }], withPipe: [{
386
- type: Input
387
- }], list: [{
388
- type: Input
389
- }], iconUrl: [{
390
- type: Input
391
- }], control: [{
392
- type: Input
393
- }], prefix: [{
394
- type: Input
395
- }], thousands: [{
396
- type: Input
397
- }], decimal: [{
398
- type: Input
399
- }], dateSelected: [{
400
- type: Output
263
+ class InputComponent {
264
+ constructor() {
265
+ this.data = [];
266
+ this.clicked = false;
267
+ this.withPipe = false;
268
+ this.prefix = '$';
269
+ this.thousands = '.';
270
+ this.decimal = ',';
271
+ this.dateSelected = new EventEmitter();
272
+ }
273
+ set control(value) {
274
+ if (this.formControl !== value) {
275
+ this.formControl = value;
276
+ }
277
+ }
278
+ ngOnInit() { }
279
+ selectedDate(evt) {
280
+ this.dateSelected.emit(evt);
281
+ }
282
+ click(value) {
283
+ this.clicked = value.isTrusted;
284
+ }
285
+ }
286
+ InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
287
+ 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: `
288
+ <div class="input-container">
289
+ <input *ngIf="inputType === 'date'"
290
+ class="input"
291
+ type="{{ inputType ? 'text' : 'date' }}"
292
+ [formControl]="formControl"
293
+ (ngModelChange)="selectedDate($event)"
294
+ onfocus="this.type='date';"
295
+ onblur="javascript: if( !this.value ) this.type='text';"
296
+ uib-datepicker-popup="dd/MM/yyyy"
297
+ ng-model="inputType"/>
298
+
299
+ <input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
300
+ class="input"
301
+ type="{{ inputType }}"
302
+ [formControl]="formControl"
303
+ [attr.list]="list"/>
304
+
305
+ <input *ngIf="inputType === 'text' && withPipe"
306
+ class="input"
307
+ currencyMask
308
+ [options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
309
+ type="{{ inputType }}"
310
+ [formControl]="formControl"
311
+ [attr.list]="list"/>
312
+
313
+ <input *ngIf="inputType === 'time'"
314
+ class="input"
315
+ type="time"
316
+ [formControl]="formControl"
317
+ [min]="'06:00:00'"
318
+ max="22:00:00"
319
+ step="900"
320
+ autocomplete="on"
321
+ value="08:00:00"
322
+ (click)="click($event)"
323
+ />
324
+
325
+ <label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
326
+
327
+ <p *ngIf="(formControl.invalid && formControl.value !== '') || formControl.touched">
328
+ {{ validateText }}
329
+ </p>
330
+ </div>
331
+ `, 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"] }] });
332
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, decorators: [{
333
+ type: Component,
334
+ args: [{ selector: 'ipt-input', template: `
335
+ <div class="input-container">
336
+ <input *ngIf="inputType === 'date'"
337
+ class="input"
338
+ type="{{ inputType ? 'text' : 'date' }}"
339
+ [formControl]="formControl"
340
+ (ngModelChange)="selectedDate($event)"
341
+ onfocus="this.type='date';"
342
+ onblur="javascript: if( !this.value ) this.type='text';"
343
+ uib-datepicker-popup="dd/MM/yyyy"
344
+ ng-model="inputType"/>
345
+
346
+ <input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
347
+ class="input"
348
+ type="{{ inputType }}"
349
+ [formControl]="formControl"
350
+ [attr.list]="list"/>
351
+
352
+ <input *ngIf="inputType === 'text' && withPipe"
353
+ class="input"
354
+ currencyMask
355
+ [options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
356
+ type="{{ inputType }}"
357
+ [formControl]="formControl"
358
+ [attr.list]="list"/>
359
+
360
+ <input *ngIf="inputType === 'time'"
361
+ class="input"
362
+ type="time"
363
+ [formControl]="formControl"
364
+ [min]="'06:00:00'"
365
+ max="22:00:00"
366
+ step="900"
367
+ autocomplete="on"
368
+ value="08:00:00"
369
+ (click)="click($event)"
370
+ />
371
+
372
+ <label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
373
+
374
+ <p *ngIf="(formControl.invalid && formControl.value !== '') || formControl.touched">
375
+ {{ validateText }}
376
+ </p>
377
+ </div>
378
+ `, 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"] }]
379
+ }], ctorParameters: function () { return []; }, propDecorators: { inputType: [{
380
+ type: Input
381
+ }], placeHolder: [{
382
+ type: Input
383
+ }], validateText: [{
384
+ type: Input
385
+ }], withPipe: [{
386
+ type: Input
387
+ }], list: [{
388
+ type: Input
389
+ }], iconUrl: [{
390
+ type: Input
391
+ }], control: [{
392
+ type: Input
393
+ }], prefix: [{
394
+ type: Input
395
+ }], thousands: [{
396
+ type: Input
397
+ }], decimal: [{
398
+ type: Input
399
+ }], dateSelected: [{
400
+ type: Output
401
401
  }] } });
402
402
 
403
- class LevelButtonComponent {
404
- constructor() {
405
- this.isClicked = new EventEmitter();
406
- }
407
- clickAction() {
408
- this.isClicked.emit(true);
409
- }
410
- }
411
- LevelButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
412
- 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: `
413
- <div [ngSwitch]="buttonActive">
414
- <button
415
- *ngSwitchCase="0"
416
- (click)="clickAction()"
417
- id="level"
418
- class="courses"
419
- >
420
- <p class="p-level">{{ level }}</p>
421
- </button>
422
-
423
- <button
424
- *ngSwitchCase="1"
425
- (click)="clickAction()"
426
- id="{{ idColor }}"
427
- class="courses">
428
- <p class="p-level p-level-active">{{ level }}</p>
429
- </button>
430
- </div>
431
- `, 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"] }] });
432
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelButtonComponent, decorators: [{
433
- type: Component,
434
- args: [{ selector: 'ipt-level-button', template: `
435
- <div [ngSwitch]="buttonActive">
436
- <button
437
- *ngSwitchCase="0"
438
- (click)="clickAction()"
439
- id="level"
440
- class="courses"
441
- >
442
- <p class="p-level">{{ level }}</p>
443
- </button>
444
-
445
- <button
446
- *ngSwitchCase="1"
447
- (click)="clickAction()"
448
- id="{{ idColor }}"
449
- class="courses">
450
- <p class="p-level p-level-active">{{ level }}</p>
451
- </button>
452
- </div>
453
- `, 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"] }]
454
- }], propDecorators: { level: [{
455
- type: Input
456
- }], buttonActive: [{
457
- type: Input
458
- }], idColor: [{
459
- type: Input
460
- }], isClicked: [{
461
- type: Output
403
+ class LevelButtonComponent {
404
+ constructor() {
405
+ this.isClicked = new EventEmitter();
406
+ }
407
+ clickAction() {
408
+ this.isClicked.emit(true);
409
+ }
410
+ }
411
+ LevelButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
412
+ 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: `
413
+ <div [ngSwitch]="buttonActive">
414
+ <button
415
+ *ngSwitchCase="0"
416
+ (click)="clickAction()"
417
+ id="level"
418
+ class="courses"
419
+ >
420
+ <p class="p-level">{{ level }}</p>
421
+ </button>
422
+
423
+ <button
424
+ *ngSwitchCase="1"
425
+ (click)="clickAction()"
426
+ id="{{ idColor }}"
427
+ class="courses">
428
+ <p class="p-level p-level-active">{{ level }}</p>
429
+ </button>
430
+ </div>
431
+ `, 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"] }] });
432
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelButtonComponent, decorators: [{
433
+ type: Component,
434
+ args: [{ selector: 'ipt-level-button', template: `
435
+ <div [ngSwitch]="buttonActive">
436
+ <button
437
+ *ngSwitchCase="0"
438
+ (click)="clickAction()"
439
+ id="level"
440
+ class="courses"
441
+ >
442
+ <p class="p-level">{{ level }}</p>
443
+ </button>
444
+
445
+ <button
446
+ *ngSwitchCase="1"
447
+ (click)="clickAction()"
448
+ id="{{ idColor }}"
449
+ class="courses">
450
+ <p class="p-level p-level-active">{{ level }}</p>
451
+ </button>
452
+ </div>
453
+ `, 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"] }]
454
+ }], propDecorators: { level: [{
455
+ type: Input
456
+ }], buttonActive: [{
457
+ type: Input
458
+ }], idColor: [{
459
+ type: Input
460
+ }], isClicked: [{
461
+ type: Output
462
462
  }] } });
463
463
 
464
- class LevelTextComponent {
465
- }
466
- LevelTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
467
- 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: `
468
- <p class="p-table-course">{{ level }}: {{ total }}</p>
469
- `, 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"] });
470
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelTextComponent, decorators: [{
471
- type: Component,
472
- args: [{ selector: 'ipt-level-button', template: `
473
- <p class="p-table-course">{{ level }}: {{ total }}</p>
474
- `, 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"] }]
475
- }], propDecorators: { level: [{
476
- type: Input
477
- }], total: [{
478
- type: Input
464
+ class LevelTextComponent {
465
+ }
466
+ LevelTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
467
+ 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: `
468
+ <p class="p-table-course">{{ level }}: {{ total }}</p>
469
+ `, 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"] });
470
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelTextComponent, decorators: [{
471
+ type: Component,
472
+ args: [{ selector: 'ipt-level-button', template: `
473
+ <p class="p-table-course">{{ level }}: {{ total }}</p>
474
+ `, 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"] }]
475
+ }], propDecorators: { level: [{
476
+ type: Input
477
+ }], total: [{
478
+ type: Input
479
479
  }] } });
480
480
 
481
- class RadioComponent {
482
- constructor() {
483
- this.radioOption = false;
484
- this.onSelected = new EventEmitter();
485
- }
486
- set control(value) {
487
- if (this.formControl !== value) {
488
- this.formControl = value;
489
- }
490
- }
491
- }
492
- RadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
493
- 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: `
494
- <label class="cont">
495
- <input
496
- class="radio"
497
- [formControl]="formControl"
498
- [checked]="radioOption"
499
- (click)="onSelected.emit($event)"
500
- type="radio">
501
- <span></span>
502
- </label>
503
- `, 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"] }] });
504
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, decorators: [{
505
- type: Component,
506
- args: [{ selector: 'ipt-radio', template: `
507
- <label class="cont">
508
- <input
509
- class="radio"
510
- [formControl]="formControl"
511
- [checked]="radioOption"
512
- (click)="onSelected.emit($event)"
513
- type="radio">
514
- <span></span>
515
- </label>
516
- `, styles: [""] }]
517
- }], propDecorators: { radioOption: [{
518
- type: Input
519
- }], control: [{
520
- type: Input
521
- }], onSelected: [{
522
- type: Output
481
+ class RadioComponent {
482
+ constructor() {
483
+ this.radioOption = false;
484
+ this.onSelected = new EventEmitter();
485
+ }
486
+ set control(value) {
487
+ if (this.formControl !== value) {
488
+ this.formControl = value;
489
+ }
490
+ }
491
+ }
492
+ RadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
493
+ 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: `
494
+ <label class="cont">
495
+ <input
496
+ class="radio"
497
+ [formControl]="formControl"
498
+ [checked]="radioOption"
499
+ (click)="onSelected.emit($event)"
500
+ type="radio">
501
+ <span></span>
502
+ </label>
503
+ `, 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"] }] });
504
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, decorators: [{
505
+ type: Component,
506
+ args: [{ selector: 'ipt-radio', template: `
507
+ <label class="cont">
508
+ <input
509
+ class="radio"
510
+ [formControl]="formControl"
511
+ [checked]="radioOption"
512
+ (click)="onSelected.emit($event)"
513
+ type="radio">
514
+ <span></span>
515
+ </label>
516
+ `, styles: [""] }]
517
+ }], propDecorators: { radioOption: [{
518
+ type: Input
519
+ }], control: [{
520
+ type: Input
521
+ }], onSelected: [{
522
+ type: Output
523
523
  }] } });
524
524
 
525
- class SelectComponent {
526
- constructor() {
527
- this.boxShadow = 0;
528
- this.clicked = false;
529
- this.disabledSel = false;
530
- this.eventSelect = new EventEmitter();
531
- }
532
- // type viene de otro componente -> indica de que tipo es el arreglo si pregrade, posgrade o modo
533
- set control(value) {
534
- if (this.formControl !== value) {
535
- this.formControl = value;
536
- }
537
- }
538
- ngOnChanges(changes) {
539
- if (changes['data']) {
540
- this.binding = this.defaultText;
541
- }
542
- }
543
- seleccionar(evt) {
544
- if (this.eventSelect.emit(evt) !== this.defaultText) {
545
- this.boxShadow = 1;
546
- }
547
- else {
548
- this.boxShadow = 2;
549
- }
550
- }
551
- click(value) {
552
- this.clicked = value.isTrusted;
553
- }
554
- ngOnInit() {
555
- this.binding = this.defaultText;
556
- }
557
- get textClass() {
558
- return this.defaultText === '' ? 'selected' : 'select';
559
- }
560
- get labelClass() {
561
- return this.clicked === false ? 'label' : 'labelUp';
562
- }
563
- }
564
- SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
565
- 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: `
566
- <div class="select-container">
567
- <label [ngClass]="labelClass">{{ defaultText }}</label>
568
- <select
569
- [(ngModel)]="binding"
570
- (ngModelChange)="seleccionar($event)"
571
- (click)="click($event)"
572
- [ngClass]="textClass"
573
- [disabled]="disabledSel">
574
- <option *ngFor="let item of data; index as i" [value]="item.code">
575
- {{ item.name }} {{ item.prefix }}
576
- </option>
577
- </select>
578
- </div>
579
- `, 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"] }] });
580
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, decorators: [{
581
- type: Component,
582
- args: [{ selector: 'ipt-select', template: `
583
- <div class="select-container">
584
- <label [ngClass]="labelClass">{{ defaultText }}</label>
585
- <select
586
- [(ngModel)]="binding"
587
- (ngModelChange)="seleccionar($event)"
588
- (click)="click($event)"
589
- [ngClass]="textClass"
590
- [disabled]="disabledSel">
591
- <option *ngFor="let item of data; index as i" [value]="item.code">
592
- {{ item.name }} {{ item.prefix }}
593
- </option>
594
- </select>
595
- </div>
596
- `, 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"] }]
597
- }], propDecorators: { isRequired: [{
598
- type: Input
599
- }], data: [{
600
- type: Input
601
- }], defaultText: [{
602
- type: Input
603
- }], selectCode: [{
604
- type: Input
605
- }], disabledSel: [{
606
- type: Input
607
- }], eventSelect: [{
608
- type: Output
609
- }], control: [{
610
- type: Input
525
+ class SelectComponent {
526
+ constructor() {
527
+ this.boxShadow = 0;
528
+ this.clicked = false;
529
+ this.disabledSel = false;
530
+ this.eventSelect = new EventEmitter();
531
+ }
532
+ // type viene de otro componente -> indica de que tipo es el arreglo si pregrade, posgrade o modo
533
+ set control(value) {
534
+ if (this.formControl !== value) {
535
+ this.formControl = value;
536
+ }
537
+ }
538
+ ngOnChanges(changes) {
539
+ if (changes['data']) {
540
+ this.binding = this.defaultText;
541
+ }
542
+ }
543
+ seleccionar(evt) {
544
+ if (this.eventSelect.emit(evt) !== this.defaultText) {
545
+ this.boxShadow = 1;
546
+ }
547
+ else {
548
+ this.boxShadow = 2;
549
+ }
550
+ }
551
+ click(value) {
552
+ this.clicked = value.isTrusted;
553
+ }
554
+ ngOnInit() {
555
+ this.binding = this.defaultText;
556
+ }
557
+ get textClass() {
558
+ return this.defaultText === '' ? 'selected' : 'select';
559
+ }
560
+ get labelClass() {
561
+ return this.clicked === false ? 'label' : 'labelUp';
562
+ }
563
+ }
564
+ SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
565
+ 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: `
566
+ <div class="select-container">
567
+ <label [ngClass]="labelClass">{{ defaultText }}</label>
568
+ <select
569
+ [(ngModel)]="binding"
570
+ (ngModelChange)="seleccionar($event)"
571
+ (click)="click($event)"
572
+ [ngClass]="textClass"
573
+ [disabled]="disabledSel">
574
+ <option *ngFor="let item of data; index as i" [value]="item.code">
575
+ {{ item.name }} {{ item.prefix }}
576
+ </option>
577
+ </select>
578
+ </div>
579
+ `, 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"] }] });
580
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, decorators: [{
581
+ type: Component,
582
+ args: [{ selector: 'ipt-select', template: `
583
+ <div class="select-container">
584
+ <label [ngClass]="labelClass">{{ defaultText }}</label>
585
+ <select
586
+ [(ngModel)]="binding"
587
+ (ngModelChange)="seleccionar($event)"
588
+ (click)="click($event)"
589
+ [ngClass]="textClass"
590
+ [disabled]="disabledSel">
591
+ <option *ngFor="let item of data; index as i" [value]="item.code">
592
+ {{ item.name }} {{ item.prefix }}
593
+ </option>
594
+ </select>
595
+ </div>
596
+ `, 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"] }]
597
+ }], propDecorators: { isRequired: [{
598
+ type: Input
599
+ }], data: [{
600
+ type: Input
601
+ }], defaultText: [{
602
+ type: Input
603
+ }], selectCode: [{
604
+ type: Input
605
+ }], disabledSel: [{
606
+ type: Input
607
+ }], eventSelect: [{
608
+ type: Output
609
+ }], control: [{
610
+ type: Input
611
611
  }] } });
612
612
 
613
- class TextLinkComponent {
614
- constructor() {
615
- this.isClicked = new EventEmitter();
616
- }
617
- isLinkClicked() {
618
- this.isClicked.emit(true);
619
- }
620
- }
621
- TextLinkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
622
- 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: `
623
- <a class="text-link" (click)='isLinkClicked()'>
624
- <p class="text-link__paragraph">
625
- <i class="{{icon}}" aria-hidden="true"></i>
626
- {{text}}
627
- </p>
628
- </a>
629
- `, 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"] });
630
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, decorators: [{
631
- type: Component,
632
- args: [{ selector: 'ipt-text-link', template: `
633
- <a class="text-link" (click)='isLinkClicked()'>
634
- <p class="text-link__paragraph">
635
- <i class="{{icon}}" aria-hidden="true"></i>
636
- {{text}}
637
- </p>
638
- </a>
639
- `, 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"] }]
640
- }], ctorParameters: function () { return []; }, propDecorators: { text: [{
641
- type: Input
642
- }], blank: [{
643
- type: Input
644
- }], icon: [{
645
- type: Input
646
- }], isClicked: [{
647
- type: Output
613
+ class TextLinkComponent {
614
+ constructor() {
615
+ this.isClicked = new EventEmitter();
616
+ }
617
+ isLinkClicked() {
618
+ this.isClicked.emit(true);
619
+ }
620
+ }
621
+ TextLinkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
622
+ 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: `
623
+ <a class="text-link" (click)='isLinkClicked()'>
624
+ <p class="text-link__paragraph">
625
+ <i class="{{icon}}" aria-hidden="true"></i>
626
+ {{text}}
627
+ </p>
628
+ </a>
629
+ `, 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"] });
630
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, decorators: [{
631
+ type: Component,
632
+ args: [{ selector: 'ipt-text-link', template: `
633
+ <a class="text-link" (click)='isLinkClicked()'>
634
+ <p class="text-link__paragraph">
635
+ <i class="{{icon}}" aria-hidden="true"></i>
636
+ {{text}}
637
+ </p>
638
+ </a>
639
+ `, 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"] }]
640
+ }], ctorParameters: function () { return []; }, propDecorators: { text: [{
641
+ type: Input
642
+ }], blank: [{
643
+ type: Input
644
+ }], icon: [{
645
+ type: Input
646
+ }], isClicked: [{
647
+ type: Output
648
648
  }] } });
649
649
 
650
- class UserService {
651
- constructor(http) {
652
- this.http = http;
653
- this.SERVICE_URL = 'https://iptdev.com.co/lab/users/api/';
654
- }
655
- login(userLogin) {
656
- let serviceUrl = this.SERVICE_URL + 'post/login';
657
- this.generateRequestParams(userLogin);
658
- return this.http.post(serviceUrl, this.httpOptions);
659
- }
660
- resetPassword(resetPassword) {
661
- let serviceUrl = this.SERVICE_URL + 'reset/password';
662
- this.generateRequestParams(resetPassword);
663
- return this.http.post(serviceUrl, this.httpOptions);
664
- }
665
- register(user) {
666
- let serviceUrl = this.SERVICE_URL + 'post/create/web';
667
- this.generateRequestParams(user);
668
- return this.http.post(serviceUrl, this.httpOptions);
669
- }
670
- registerIndex(register) {
671
- let serviceUrl = this.SERVICE_URL + 'post/create/marketing';
672
- this.generateRequestParams(register);
673
- return this.http.post(serviceUrl, this.httpOptions);
674
- }
675
- registerDashboard(user) {
676
- let serviceUrl = this.SERVICE_URL + 'post/create/dashboard';
677
- this.generateRequestParams(user);
678
- return this.http.post(serviceUrl, this.httpOptions);
679
- }
680
- getAvailableTeachers(token) {
681
- let serviceUrl = this.SERVICE_URL + 'post/obtain/teachers';
682
- this.generateRequestParams(token);
683
- return this.http.post(serviceUrl, this.httpOptions);
684
- }
685
- getAllAdvisor(userToken) {
686
- let serviceUrl = this.SERVICE_URL + 'post/obtain/all/user/commercial';
687
- this.generateRequestParams(userToken);
688
- return this.http.post(serviceUrl, this.httpOptions);
689
- }
690
- getByRoleUser(codeRole) {
691
- let serviceUrl = this.SERVICE_URL + 'get/obtain/by/role/user/' + codeRole;
692
- return this.http.get(serviceUrl);
693
- }
694
- getUserStatistics(userToken) {
695
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
696
- this.generateRequestParams(userToken);
697
- return this.http.post(serviceUrl, this.httpOptions);
698
- }
699
- getRoutesForRole(token) {
700
- let serviceUrl = this.SERVICE_URL + 'post/routes/role';
701
- this.generateRequestParams(token);
702
- return this.http.post(serviceUrl, this.httpOptions);
703
- }
704
- getStudents(token) {
705
- let serviceUrl = this.SERVICE_URL + 'post/obtain/students';
706
- this.generateRequestParams(token);
707
- return this.http.post(serviceUrl, this.httpOptions);
708
- }
709
- getStudent(token) {
710
- let serviceUrl = this.SERVICE_URL + 'post/obtain/student';
711
- this.generateRequestParams(token);
712
- return this.http.post(serviceUrl, this.httpOptions);
713
- }
714
- generateRequestParams(param) {
715
- this.httpOptions = {
716
- header: new HttpHeaders(),
717
- params: param,
718
- };
719
- }
720
- }
721
- 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 });
722
- UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, providedIn: 'root' });
723
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, decorators: [{
724
- type: Injectable,
725
- args: [{
726
- providedIn: 'root',
727
- }]
650
+ class UserService {
651
+ constructor(http) {
652
+ this.http = http;
653
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/users/api/';
654
+ }
655
+ login(userLogin) {
656
+ let serviceUrl = this.SERVICE_URL + 'post/login';
657
+ this.generateRequestParams(userLogin);
658
+ return this.http.post(serviceUrl, this.httpOptions);
659
+ }
660
+ resetPassword(resetPassword) {
661
+ let serviceUrl = this.SERVICE_URL + 'reset/password';
662
+ this.generateRequestParams(resetPassword);
663
+ return this.http.post(serviceUrl, this.httpOptions);
664
+ }
665
+ register(user) {
666
+ let serviceUrl = this.SERVICE_URL + 'post/create/web';
667
+ this.generateRequestParams(user);
668
+ return this.http.post(serviceUrl, this.httpOptions);
669
+ }
670
+ registerIndex(register) {
671
+ let serviceUrl = this.SERVICE_URL + 'post/create/marketing';
672
+ this.generateRequestParams(register);
673
+ return this.http.post(serviceUrl, this.httpOptions);
674
+ }
675
+ registerDashboard(user) {
676
+ let serviceUrl = this.SERVICE_URL + 'post/create/dashboard';
677
+ this.generateRequestParams(user);
678
+ return this.http.post(serviceUrl, this.httpOptions);
679
+ }
680
+ getAvailableTeachers(token) {
681
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/teachers';
682
+ this.generateRequestParams(token);
683
+ return this.http.post(serviceUrl, this.httpOptions);
684
+ }
685
+ getAllAdvisor(userToken) {
686
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/all/user/commercial';
687
+ this.generateRequestParams(userToken);
688
+ return this.http.post(serviceUrl, this.httpOptions);
689
+ }
690
+ getByRoleUser(codeRole) {
691
+ let serviceUrl = this.SERVICE_URL + 'get/obtain/by/role/user/' + codeRole;
692
+ return this.http.get(serviceUrl);
693
+ }
694
+ getUserStatistics(userToken) {
695
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
696
+ this.generateRequestParams(userToken);
697
+ return this.http.post(serviceUrl, this.httpOptions);
698
+ }
699
+ getRoutesForRole(token) {
700
+ let serviceUrl = this.SERVICE_URL + 'post/routes/role';
701
+ this.generateRequestParams(token);
702
+ return this.http.post(serviceUrl, this.httpOptions);
703
+ }
704
+ getStudents(token) {
705
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/students';
706
+ this.generateRequestParams(token);
707
+ return this.http.post(serviceUrl, this.httpOptions);
708
+ }
709
+ getStudent(token) {
710
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/student';
711
+ this.generateRequestParams(token);
712
+ return this.http.post(serviceUrl, this.httpOptions);
713
+ }
714
+ generateRequestParams(param) {
715
+ this.httpOptions = {
716
+ header: new HttpHeaders(),
717
+ params: param,
718
+ };
719
+ }
720
+ }
721
+ 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 });
722
+ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, providedIn: 'root' });
723
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, decorators: [{
724
+ type: Injectable,
725
+ args: [{
726
+ providedIn: 'root',
727
+ }]
728
728
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
729
729
 
730
- class StorageService {
731
- constructor() {
732
- this.currentSession = null;
733
- this.localStorageService = localStorage;
734
- this.currentSession = this.loadSessionData();
735
- }
736
- setCurrentSession(session) {
737
- this.currentSession = session;
738
- this.localStorageService.setItem('606a7d4e73650b75ebb06972e77d6cc4', JSON.stringify(session));
739
- }
740
- loadSessionData() {
741
- var sessionStr = this.localStorageService.getItem('606a7d4e73650b75ebb06972e77d6cc4');
742
- return (sessionStr) ? JSON.parse(sessionStr) : null;
743
- }
744
- getCurrentSession() {
745
- return this.currentSession;
746
- }
747
- removeCurrentSession() {
748
- this.localStorageService.removeItem('606a7d4e73650b75ebb06972e77d6cc4');
749
- this.currentSession = null;
750
- }
751
- getCurrentUser() {
752
- var session = this.getCurrentSession();
753
- return (session && session.user) ? session.user : null;
754
- }
755
- ;
756
- isAuthenticated() {
757
- return (this.getCurrentToken() != null) ? true : false;
758
- }
759
- ;
760
- getCurrentToken() {
761
- var session = this.getCurrentSession();
762
- return (session && session.token) ? session.token : null;
763
- }
764
- ;
765
- logout() {
766
- this.removeCurrentSession();
767
- }
768
- }
769
- StorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
770
- StorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, providedIn: 'root' });
771
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, decorators: [{
772
- type: Injectable,
773
- args: [{
774
- providedIn: 'root',
775
- }]
730
+ class StorageService {
731
+ constructor() {
732
+ this.currentSession = null;
733
+ this.localStorageService = localStorage;
734
+ this.currentSession = this.loadSessionData();
735
+ }
736
+ setCurrentSession(session) {
737
+ this.currentSession = session;
738
+ this.localStorageService.setItem('606a7d4e73650b75ebb06972e77d6cc4', JSON.stringify(session));
739
+ }
740
+ loadSessionData() {
741
+ var sessionStr = this.localStorageService.getItem('606a7d4e73650b75ebb06972e77d6cc4');
742
+ return (sessionStr) ? JSON.parse(sessionStr) : null;
743
+ }
744
+ getCurrentSession() {
745
+ return this.currentSession;
746
+ }
747
+ removeCurrentSession() {
748
+ this.localStorageService.removeItem('606a7d4e73650b75ebb06972e77d6cc4');
749
+ this.currentSession = null;
750
+ }
751
+ getCurrentUser() {
752
+ var session = this.getCurrentSession();
753
+ return (session && session.user) ? session.user : null;
754
+ }
755
+ ;
756
+ isAuthenticated() {
757
+ return (this.getCurrentToken() != null) ? true : false;
758
+ }
759
+ ;
760
+ getCurrentToken() {
761
+ var session = this.getCurrentSession();
762
+ return (session && session.token) ? session.token : null;
763
+ }
764
+ ;
765
+ logout() {
766
+ this.removeCurrentSession();
767
+ }
768
+ }
769
+ StorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
770
+ StorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, providedIn: 'root' });
771
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, decorators: [{
772
+ type: Injectable,
773
+ args: [{
774
+ providedIn: 'root',
775
+ }]
776
776
  }], ctorParameters: function () { return []; } });
777
777
 
778
- class BaseService {
779
- constructor(userService, storageService) {
780
- this.userService = userService;
781
- this.storageService = storageService;
782
- }
783
- webLogin(user, password) {
784
- let request = {
785
- user: user,
786
- password: password
787
- };
788
- let service = this.userService;
789
- let storage = this.storageService;
790
- return new Promise(function (resolve, reject) {
791
- service.login(request).subscribe(response => {
792
- switch (response.message.code) {
793
- case 1:
794
- Swal.fire({
795
- 'title': '<p style="font-family: Poppins"">Perfect!</p>',
796
- 'html': '<p style="font-family: Poppins"">Succesfull login</p>',
797
- 'icon': 'success',
798
- });
799
- const loginRegisterUser = {
800
- token: response.data.token,
801
- user: response.data,
802
- };
803
- storage.setCurrentSession(loginRegisterUser);
804
- resolve(true);
805
- break;
806
- case 2:
807
- Swal.fire({
808
- 'title': '<p style="font-family: Poppins"">Warning!</p>',
809
- 'html': '<p style="font-family: Poppins"">The data does not correspond to a user registered in our system, please review them.</p>',
810
- 'icon': 'warning',
811
- });
812
- resolve(false);
813
- break;
814
- case 3:
815
- Swal.fire({
816
- 'title': '<p style="font-family: Poppins"">Error!</p>',
817
- 'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
818
- 'icon': 'error',
819
- });
820
- resolve(false);
821
- break;
822
- default:
823
- Swal.fire({
824
- 'title': '<p style="font-family: Poppins"">Error!</p>',
825
- 'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
826
- 'icon': 'error',
827
- });
828
- resolve(false);
829
- break;
830
- }
831
- reject('Unhandled exception');
832
- });
833
- });
834
- }
835
- getUserRole() {
836
- var _a;
837
- let user = (_a = this.storageService.getCurrentUser()) === null || _a === void 0 ? void 0 : _a.role;
838
- return user === undefined ? -1 : user;
839
- }
840
- getUserToken() {
841
- var _a;
842
- let token = (_a = this.storageService.getCurrentUser()) === null || _a === void 0 ? void 0 : _a.token;
843
- return token === undefined ? '-1' : token;
844
- }
845
- getUserName() {
846
- let user = this.storageService.getCurrentUser();
847
- let response = user === null ? '' : user.name;
848
- return response;
849
- }
850
- registerUserFromDashboard(registerDashboardRq) {
851
- let request = registerDashboardRq;
852
- let service = this.userService;
853
- return new Promise(function (resolve, reject) {
854
- service.registerDashboard(request).subscribe((response) => {
855
- switch (response.message.code) {
856
- case 1:
857
- Swal.fire({
858
- 'title': '<p style="font-family: Poppins"">Perfect!</p>',
859
- 'html': '<p style="font-family: Poppins"">Sucesfull register!</p>',
860
- 'icon': 'success',
861
- });
862
- resolve(true);
863
- break;
864
- case 3:
865
- Swal.fire({
866
- 'title': '<p style="font-family: Poppins"">Error!</p>',
867
- 'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
868
- 'icon': 'error',
869
- });
870
- resolve(false);
871
- break;
872
- case 4:
873
- Swal.fire({
874
- 'title': '<p style="font-family: Poppins">Ups!</p>',
875
- 'html': '<p style="font-family: Poppins">The input data has a high relation with a user that already exists!</p>',
876
- 'icon': 'warning',
877
- });
878
- resolve(false);
879
- break;
880
- default:
881
- Swal.fire({
882
- 'title': '<p style="font-family: Poppins"">Error!</p>',
883
- 'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
884
- 'icon': 'error',
885
- });
886
- resolve(false);
887
- break;
888
- }
889
- reject('Unhandled exception');
890
- });
891
- });
892
- }
893
- jsonToArray(data) {
894
- var response = [];
895
- data.forEach((element) => {
896
- var object = [];
897
- for (var clave in element) {
898
- if (element.hasOwnProperty(clave)) {
899
- if (typeof element[clave] == 'object') {
900
- element[clave] = this.subJsonToArray(element[clave]);
901
- }
902
- object.push(element[clave]);
903
- }
904
- }
905
- response.push(object);
906
- });
907
- return response;
908
- }
909
- subJsonToArray(data) {
910
- var object = '';
911
- for (var clave in data) {
912
- if (clave != 'code') {
913
- object += '\n' + data[clave];
914
- }
915
- }
916
- return object;
917
- }
918
- }
919
- BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, deps: [{ token: UserService }, { token: StorageService }], target: i0.ɵɵFactoryTarget.Injectable });
920
- BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, providedIn: 'root' });
921
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, decorators: [{
922
- type: Injectable,
923
- args: [{
924
- providedIn: 'root',
925
- }]
778
+ class BaseService {
779
+ constructor(userService, storageService) {
780
+ this.userService = userService;
781
+ this.storageService = storageService;
782
+ }
783
+ webLogin(user, password) {
784
+ let request = {
785
+ user: user,
786
+ password: password
787
+ };
788
+ let service = this.userService;
789
+ let storage = this.storageService;
790
+ return new Promise(function (resolve, reject) {
791
+ service.login(request).subscribe(response => {
792
+ switch (response.message.code) {
793
+ case 1:
794
+ Swal.fire({
795
+ 'title': '<p style="font-family: Poppins"">Perfect!</p>',
796
+ 'html': '<p style="font-family: Poppins"">Succesfull login</p>',
797
+ 'icon': 'success',
798
+ });
799
+ const loginRegisterUser = {
800
+ token: response.data.token,
801
+ user: response.data,
802
+ };
803
+ storage.setCurrentSession(loginRegisterUser);
804
+ resolve(true);
805
+ break;
806
+ case 2:
807
+ Swal.fire({
808
+ 'title': '<p style="font-family: Poppins"">Warning!</p>',
809
+ 'html': '<p style="font-family: Poppins"">The data does not correspond to a user registered in our system, please review them.</p>',
810
+ 'icon': 'warning',
811
+ });
812
+ resolve(false);
813
+ break;
814
+ case 3:
815
+ Swal.fire({
816
+ 'title': '<p style="font-family: Poppins"">Error!</p>',
817
+ 'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
818
+ 'icon': 'error',
819
+ });
820
+ resolve(false);
821
+ break;
822
+ default:
823
+ Swal.fire({
824
+ 'title': '<p style="font-family: Poppins"">Error!</p>',
825
+ 'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
826
+ 'icon': 'error',
827
+ });
828
+ resolve(false);
829
+ break;
830
+ }
831
+ reject('Unhandled exception');
832
+ });
833
+ });
834
+ }
835
+ getUserRole() {
836
+ var _a;
837
+ let user = (_a = this.storageService.getCurrentUser()) === null || _a === void 0 ? void 0 : _a.role;
838
+ return user === undefined ? -1 : user;
839
+ }
840
+ getUserToken() {
841
+ var _a;
842
+ let token = (_a = this.storageService.getCurrentUser()) === null || _a === void 0 ? void 0 : _a.token;
843
+ return token === undefined ? '-1' : token;
844
+ }
845
+ getUserName() {
846
+ let user = this.storageService.getCurrentUser();
847
+ let response = user === null ? '' : user.name;
848
+ return response;
849
+ }
850
+ registerUserFromDashboard(registerDashboardRq) {
851
+ let request = registerDashboardRq;
852
+ let service = this.userService;
853
+ return new Promise(function (resolve, reject) {
854
+ service.registerDashboard(request).subscribe((response) => {
855
+ switch (response.message.code) {
856
+ case 1:
857
+ Swal.fire({
858
+ 'title': '<p style="font-family: Poppins"">Perfect!</p>',
859
+ 'html': '<p style="font-family: Poppins"">Sucesfull register!</p>',
860
+ 'icon': 'success',
861
+ });
862
+ resolve(true);
863
+ break;
864
+ case 3:
865
+ Swal.fire({
866
+ 'title': '<p style="font-family: Poppins"">Error!</p>',
867
+ 'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
868
+ 'icon': 'error',
869
+ });
870
+ resolve(false);
871
+ break;
872
+ case 4:
873
+ Swal.fire({
874
+ 'title': '<p style="font-family: Poppins">Ups!</p>',
875
+ 'html': '<p style="font-family: Poppins">The input data has a high relation with a user that already exists!</p>',
876
+ 'icon': 'warning',
877
+ });
878
+ resolve(false);
879
+ break;
880
+ default:
881
+ Swal.fire({
882
+ 'title': '<p style="font-family: Poppins"">Error!</p>',
883
+ 'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
884
+ 'icon': 'error',
885
+ });
886
+ resolve(false);
887
+ break;
888
+ }
889
+ reject('Unhandled exception');
890
+ });
891
+ });
892
+ }
893
+ jsonToArray(data) {
894
+ var response = [];
895
+ data.forEach((element) => {
896
+ var object = [];
897
+ for (var clave in element) {
898
+ if (element.hasOwnProperty(clave)) {
899
+ if (typeof element[clave] == 'object') {
900
+ element[clave] = this.subJsonToArray(element[clave]);
901
+ }
902
+ object.push(element[clave]);
903
+ }
904
+ }
905
+ response.push(object);
906
+ });
907
+ return response;
908
+ }
909
+ subJsonToArray(data) {
910
+ var object = '';
911
+ for (var clave in data) {
912
+ if (clave != 'code') {
913
+ object += '\n' + data[clave];
914
+ }
915
+ }
916
+ return object;
917
+ }
918
+ }
919
+ BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, deps: [{ token: UserService }, { token: StorageService }], target: i0.ɵɵFactoryTarget.Injectable });
920
+ BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, providedIn: 'root' });
921
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, decorators: [{
922
+ type: Injectable,
923
+ args: [{
924
+ providedIn: 'root',
925
+ }]
926
926
  }], ctorParameters: function () { return [{ type: UserService }, { type: StorageService }]; } });
927
927
 
928
- class LoginFormComponent {
929
- constructor(fb, baseService) {
930
- this.baseService = baseService;
931
- this.isLogged = new EventEmitter();
932
- this.loginForm = fb.group({
933
- email: ['', [Validators.required]],
934
- password: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(15)]],
935
- });
936
- }
937
- login(data) {
938
- this.baseService.webLogin(data.controls['email'].value, data.controls['password'].value).then((isLogged) => {
939
- this.isLogged.emit(isLogged);
940
- });
941
- }
942
- }
943
- 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 });
944
- LoginFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LoginFormComponent, selector: "ipt-login-form", outputs: { isLogged: "isLogged" }, ngImport: i0, template: `
945
- <div class="form-container">
946
-
947
- <h2 style="text-align: center;">IPT PLATFORM</h2>
948
- <hr>
949
-
950
- <form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
951
- <ipt-input
952
- [inputType]="'text'"
953
- [placeHolder]="'Email'"
954
- [validateText]="'Debe ser @inglesparatodos.edu.co'"
955
- [control]="loginForm.controls['email']"
956
- ></ipt-input>
957
-
958
- <ipt-input
959
- [inputType]="'password'"
960
- [placeHolder]="'Password'"
961
- [control]="loginForm.controls['password']"
962
- ></ipt-input>
963
- </form>
964
-
965
- <div class="button-container">
966
- <ipt-button
967
- [label]="'Login'"
968
- [primary]="true"
969
- [isEnabled]="loginForm.valid"
970
- (onClick)="login(loginForm)"
971
- ></ipt-button>
972
- </div>
973
-
974
- </div>
975
- `, 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"] }] });
976
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoginFormComponent, decorators: [{
977
- type: Component,
978
- args: [{ selector: 'ipt-login-form', template: `
979
- <div class="form-container">
980
-
981
- <h2 style="text-align: center;">IPT PLATFORM</h2>
982
- <hr>
983
-
984
- <form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
985
- <ipt-input
986
- [inputType]="'text'"
987
- [placeHolder]="'Email'"
988
- [validateText]="'Debe ser @inglesparatodos.edu.co'"
989
- [control]="loginForm.controls['email']"
990
- ></ipt-input>
991
-
992
- <ipt-input
993
- [inputType]="'password'"
994
- [placeHolder]="'Password'"
995
- [control]="loginForm.controls['password']"
996
- ></ipt-input>
997
- </form>
998
-
999
- <div class="button-container">
1000
- <ipt-button
1001
- [label]="'Login'"
1002
- [primary]="true"
1003
- [isEnabled]="loginForm.valid"
1004
- (onClick)="login(loginForm)"
1005
- ></ipt-button>
1006
- </div>
1007
-
1008
- </div>
1009
- `, 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"] }]
1010
- }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: BaseService }]; }, propDecorators: { isLogged: [{
1011
- type: Output
928
+ class LoginFormComponent {
929
+ constructor(fb, baseService) {
930
+ this.baseService = baseService;
931
+ this.isLogged = new EventEmitter();
932
+ this.loginForm = fb.group({
933
+ email: ['', [Validators.required]],
934
+ password: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(15)]],
935
+ });
936
+ }
937
+ login(data) {
938
+ this.baseService.webLogin(data.controls['email'].value, data.controls['password'].value).then((isLogged) => {
939
+ this.isLogged.emit(isLogged);
940
+ });
941
+ }
942
+ }
943
+ 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 });
944
+ LoginFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LoginFormComponent, selector: "ipt-login-form", outputs: { isLogged: "isLogged" }, ngImport: i0, template: `
945
+ <div class="form-container">
946
+
947
+ <h2 style="text-align: center;">IPT PLATFORM</h2>
948
+ <hr>
949
+
950
+ <form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
951
+ <ipt-input
952
+ [inputType]="'text'"
953
+ [placeHolder]="'Email'"
954
+ [validateText]="'Debe ser @inglesparatodos.edu.co'"
955
+ [control]="loginForm.controls['email']"
956
+ ></ipt-input>
957
+
958
+ <ipt-input
959
+ [inputType]="'password'"
960
+ [placeHolder]="'Password'"
961
+ [control]="loginForm.controls['password']"
962
+ ></ipt-input>
963
+ </form>
964
+
965
+ <div class="button-container">
966
+ <ipt-button
967
+ [label]="'Login'"
968
+ [primary]="true"
969
+ [isEnabled]="loginForm.valid"
970
+ (onClick)="login(loginForm)"
971
+ ></ipt-button>
972
+ </div>
973
+
974
+ </div>
975
+ `, 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"] }] });
976
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoginFormComponent, decorators: [{
977
+ type: Component,
978
+ args: [{ selector: 'ipt-login-form', template: `
979
+ <div class="form-container">
980
+
981
+ <h2 style="text-align: center;">IPT PLATFORM</h2>
982
+ <hr>
983
+
984
+ <form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
985
+ <ipt-input
986
+ [inputType]="'text'"
987
+ [placeHolder]="'Email'"
988
+ [validateText]="'Debe ser @inglesparatodos.edu.co'"
989
+ [control]="loginForm.controls['email']"
990
+ ></ipt-input>
991
+
992
+ <ipt-input
993
+ [inputType]="'password'"
994
+ [placeHolder]="'Password'"
995
+ [control]="loginForm.controls['password']"
996
+ ></ipt-input>
997
+ </form>
998
+
999
+ <div class="button-container">
1000
+ <ipt-button
1001
+ [label]="'Login'"
1002
+ [primary]="true"
1003
+ [isEnabled]="loginForm.valid"
1004
+ (onClick)="login(loginForm)"
1005
+ ></ipt-button>
1006
+ </div>
1007
+
1008
+ </div>
1009
+ `, 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"] }]
1010
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: BaseService }]; }, propDecorators: { isLogged: [{
1011
+ type: Output
1012
1012
  }] } });
1013
1013
 
1014
- class SidenavComponent {
1015
- constructor(userService, storageService) {
1016
- this.userService = userService;
1017
- this.storageService = storageService;
1018
- this.pageChangeEvent = new EventEmitter();
1019
- this.routes = [];
1020
- this.options = { weekday: 'long', month: 'long', day: 'numeric' };
1021
- this.currentDay = new Date().toLocaleDateString('en-EN', this.options);
1022
- this.hour = new Date().getHours();
1023
- }
1024
- ngOnInit() {
1025
- var _a;
1026
- let user = (_a = this.storageService.getCurrentUser()) === null || _a === void 0 ? void 0 : _a.token;
1027
- let token = user === undefined ? '' : user;
1028
- let request = {
1029
- token: token,
1030
- };
1031
- this.userService.getRoutesForRole(request).subscribe((response) => {
1032
- this.routes = response.data;
1033
- });
1034
- }
1035
- clickPage(event) {
1036
- this.pageChangeEvent.emit(event);
1037
- }
1038
- logout() {
1039
- this.storageService.logout();
1040
- this.pageChangeEvent.emit('logout');
1041
- }
1042
- }
1043
- 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 });
1044
- 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: `
1045
- <mat-sidenav #sidenav mode="push" >
1046
- <mat-toolbar color="primary" (click)="sidenav.toggle()">
1047
- <span style="font-size: 15px;">{{department}}</span>
1048
- <span class="menu-icon-close"></span>
1049
- </mat-toolbar>
1050
-
1051
- <mat-nav-list *ngFor="let route of routes">
1052
- <nav class="flex-container-menu">
1053
- <ipt-aside-button
1054
- [buttonActive]="this.setPage === route.page"
1055
- [icon]="route.icon"
1056
- [text]="route.text"
1057
- (isClicked)="clickPage(route.page)"
1058
- (click)="sidenav.toggle()"
1059
- >
1060
- </ipt-aside-button>
1061
- </nav>
1062
- </mat-nav-list>
1063
- </mat-sidenav>
1064
-
1065
- <mat-toolbar class="header">
1066
- <div class="menu-container" (click)="sidenav.toggle()">
1067
- <p>Menu</p>
1068
- <div class="menu-icon"></div>
1069
- </div>
1070
-
1071
- <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1072
-
1073
- <div class="text-container">
1074
- <span class="p1">{{ currentDay }}</span>
1075
- <span *ngIf="hour >= 0 && hour < 12" class="p2">
1076
- Hey {{ userName }}, Good moorning!
1077
- </span>
1078
- <p *ngIf="hour >= 12 && hour < 18" class="p2">
1079
- Hey {{ userName }}, Good afternoon!
1080
- </p>
1081
- <p *ngIf="hour >= 18 && hour < 24" class="p2">
1082
- Hey {{ userName }}, Good evening!
1083
- </p>
1084
- </div>
1085
-
1086
- <div class="logout-container" (click)="logout()">
1087
- <p class="logout-button">Cerrar sesión</p>
1088
- <div class="photo-logout"></div>
1089
- </div>
1090
- </mat-toolbar>
1091
- `, 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"] }] });
1092
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, decorators: [{
1093
- type: Component,
1094
- args: [{ selector: 'ipt-sidenav', template: `
1095
- <mat-sidenav #sidenav mode="push" >
1096
- <mat-toolbar color="primary" (click)="sidenav.toggle()">
1097
- <span style="font-size: 15px;">{{department}}</span>
1098
- <span class="menu-icon-close"></span>
1099
- </mat-toolbar>
1100
-
1101
- <mat-nav-list *ngFor="let route of routes">
1102
- <nav class="flex-container-menu">
1103
- <ipt-aside-button
1104
- [buttonActive]="this.setPage === route.page"
1105
- [icon]="route.icon"
1106
- [text]="route.text"
1107
- (isClicked)="clickPage(route.page)"
1108
- (click)="sidenav.toggle()"
1109
- >
1110
- </ipt-aside-button>
1111
- </nav>
1112
- </mat-nav-list>
1113
- </mat-sidenav>
1114
-
1115
- <mat-toolbar class="header">
1116
- <div class="menu-container" (click)="sidenav.toggle()">
1117
- <p>Menu</p>
1118
- <div class="menu-icon"></div>
1119
- </div>
1120
-
1121
- <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1122
-
1123
- <div class="text-container">
1124
- <span class="p1">{{ currentDay }}</span>
1125
- <span *ngIf="hour >= 0 && hour < 12" class="p2">
1126
- Hey {{ userName }}, Good moorning!
1127
- </span>
1128
- <p *ngIf="hour >= 12 && hour < 18" class="p2">
1129
- Hey {{ userName }}, Good afternoon!
1130
- </p>
1131
- <p *ngIf="hour >= 18 && hour < 24" class="p2">
1132
- Hey {{ userName }}, Good evening!
1133
- </p>
1134
- </div>
1135
-
1136
- <div class="logout-container" (click)="logout()">
1137
- <p class="logout-button">Cerrar sesión</p>
1138
- <div class="photo-logout"></div>
1139
- </div>
1140
- </mat-toolbar>
1141
- `, 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"] }]
1142
- }], ctorParameters: function () { return [{ type: UserService }, { type: StorageService }]; }, propDecorators: { department: [{
1143
- type: Input
1144
- }], setPage: [{
1145
- type: Input
1146
- }], userName: [{
1147
- type: Input
1148
- }], pageChangeEvent: [{
1149
- type: Output
1014
+ class SidenavComponent {
1015
+ constructor(userService, storageService) {
1016
+ this.userService = userService;
1017
+ this.storageService = storageService;
1018
+ this.pageChangeEvent = new EventEmitter();
1019
+ this.routes = [];
1020
+ this.options = { weekday: 'long', month: 'long', day: 'numeric' };
1021
+ this.currentDay = new Date().toLocaleDateString('en-EN', this.options);
1022
+ this.hour = new Date().getHours();
1023
+ }
1024
+ ngOnInit() {
1025
+ var _a;
1026
+ let user = (_a = this.storageService.getCurrentUser()) === null || _a === void 0 ? void 0 : _a.token;
1027
+ let token = user === undefined ? '' : user;
1028
+ let request = {
1029
+ token: token,
1030
+ };
1031
+ this.userService.getRoutesForRole(request).subscribe((response) => {
1032
+ this.routes = response.data;
1033
+ });
1034
+ }
1035
+ clickPage(event) {
1036
+ this.pageChangeEvent.emit(event);
1037
+ }
1038
+ logout() {
1039
+ this.storageService.logout();
1040
+ this.pageChangeEvent.emit('logout');
1041
+ }
1042
+ }
1043
+ 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 });
1044
+ 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: `
1045
+ <mat-sidenav #sidenav mode="push" >
1046
+ <mat-toolbar color="primary" (click)="sidenav.toggle()">
1047
+ <span style="font-size: 15px;">{{department}}</span>
1048
+ <span class="menu-icon-close"></span>
1049
+ </mat-toolbar>
1050
+
1051
+ <mat-nav-list *ngFor="let route of routes">
1052
+ <nav class="flex-container-menu">
1053
+ <ipt-aside-button
1054
+ [buttonActive]="this.setPage === route.page"
1055
+ [icon]="route.icon"
1056
+ [text]="route.text"
1057
+ (isClicked)="clickPage(route.page)"
1058
+ (click)="sidenav.toggle()"
1059
+ >
1060
+ </ipt-aside-button>
1061
+ </nav>
1062
+ </mat-nav-list>
1063
+ </mat-sidenav>
1064
+
1065
+ <mat-toolbar class="header">
1066
+ <div class="menu-container" (click)="sidenav.toggle()">
1067
+ <p>Menu</p>
1068
+ <div class="menu-icon"></div>
1069
+ </div>
1070
+
1071
+ <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1072
+
1073
+ <div class="text-container">
1074
+ <span class="p1">{{ currentDay }}</span>
1075
+ <span *ngIf="hour >= 0 && hour < 12" class="p2">
1076
+ Hey {{ userName }}, Good moorning!
1077
+ </span>
1078
+ <p *ngIf="hour >= 12 && hour < 18" class="p2">
1079
+ Hey {{ userName }}, Good afternoon!
1080
+ </p>
1081
+ <p *ngIf="hour >= 18 && hour < 24" class="p2">
1082
+ Hey {{ userName }}, Good evening!
1083
+ </p>
1084
+ </div>
1085
+
1086
+ <div class="logout-container" (click)="logout()">
1087
+ <p class="logout-button">Cerrar sesión</p>
1088
+ <div class="photo-logout"></div>
1089
+ </div>
1090
+ </mat-toolbar>
1091
+ `, 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"] }] });
1092
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, decorators: [{
1093
+ type: Component,
1094
+ args: [{ selector: 'ipt-sidenav', template: `
1095
+ <mat-sidenav #sidenav mode="push" >
1096
+ <mat-toolbar color="primary" (click)="sidenav.toggle()">
1097
+ <span style="font-size: 15px;">{{department}}</span>
1098
+ <span class="menu-icon-close"></span>
1099
+ </mat-toolbar>
1100
+
1101
+ <mat-nav-list *ngFor="let route of routes">
1102
+ <nav class="flex-container-menu">
1103
+ <ipt-aside-button
1104
+ [buttonActive]="this.setPage === route.page"
1105
+ [icon]="route.icon"
1106
+ [text]="route.text"
1107
+ (isClicked)="clickPage(route.page)"
1108
+ (click)="sidenav.toggle()"
1109
+ >
1110
+ </ipt-aside-button>
1111
+ </nav>
1112
+ </mat-nav-list>
1113
+ </mat-sidenav>
1114
+
1115
+ <mat-toolbar class="header">
1116
+ <div class="menu-container" (click)="sidenav.toggle()">
1117
+ <p>Menu</p>
1118
+ <div class="menu-icon"></div>
1119
+ </div>
1120
+
1121
+ <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1122
+
1123
+ <div class="text-container">
1124
+ <span class="p1">{{ currentDay }}</span>
1125
+ <span *ngIf="hour >= 0 && hour < 12" class="p2">
1126
+ Hey {{ userName }}, Good moorning!
1127
+ </span>
1128
+ <p *ngIf="hour >= 12 && hour < 18" class="p2">
1129
+ Hey {{ userName }}, Good afternoon!
1130
+ </p>
1131
+ <p *ngIf="hour >= 18 && hour < 24" class="p2">
1132
+ Hey {{ userName }}, Good evening!
1133
+ </p>
1134
+ </div>
1135
+
1136
+ <div class="logout-container" (click)="logout()">
1137
+ <p class="logout-button">Cerrar sesión</p>
1138
+ <div class="photo-logout"></div>
1139
+ </div>
1140
+ </mat-toolbar>
1141
+ `, 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"] }]
1142
+ }], ctorParameters: function () { return [{ type: UserService }, { type: StorageService }]; }, propDecorators: { department: [{
1143
+ type: Input
1144
+ }], setPage: [{
1145
+ type: Input
1146
+ }], userName: [{
1147
+ type: Input
1148
+ }], pageChangeEvent: [{
1149
+ type: Output
1150
1150
  }] } });
1151
1151
 
1152
- class MaterialModule {
1153
- }
1154
- MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1155
- MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule] });
1156
- MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, imports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule] });
1157
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, decorators: [{
1158
- type: NgModule,
1159
- args: [{
1160
- exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule],
1161
- }]
1152
+ class MaterialModule {
1153
+ }
1154
+ MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1155
+ MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule] });
1156
+ MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, imports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule] });
1157
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, decorators: [{
1158
+ type: NgModule,
1159
+ args: [{
1160
+ exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule],
1161
+ }]
1162
1162
  }] });
1163
1163
 
1164
- class ComponentsModule {
1165
- }
1166
- ComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1167
- ComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, declarations: [AsideButtonComponent,
1168
- ButtonComponent,
1169
- CheckboxComponent,
1170
- DatalistComponent,
1171
- InputComponent,
1172
- LevelButtonComponent,
1173
- LevelTextComponent,
1174
- RadioComponent,
1175
- SelectComponent,
1176
- TextLinkComponent,
1177
- LoginFormComponent,
1178
- SidenavComponent], imports: [CommonModule,
1179
- // BrowserModule, // Para evitar doble carga de BrowserModule
1180
- FormsModule,
1181
- ReactiveFormsModule,
1182
- MaterialModule,
1183
- CurrencyMaskModule], exports: [AsideButtonComponent,
1184
- ButtonComponent,
1185
- CheckboxComponent,
1186
- DatalistComponent,
1187
- InputComponent,
1188
- LevelButtonComponent,
1189
- LevelTextComponent,
1190
- RadioComponent,
1191
- SelectComponent,
1192
- TextLinkComponent,
1193
- LoginFormComponent,
1194
- SidenavComponent,
1195
- CurrencyMaskModule] });
1196
- ComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, providers: [
1197
- CurrencyPipe,
1198
- TitleCasePipe
1199
- ], imports: [[
1200
- CommonModule,
1201
- // BrowserModule, // Para evitar doble carga de BrowserModule
1202
- FormsModule,
1203
- ReactiveFormsModule,
1204
- MaterialModule,
1205
- CurrencyMaskModule
1206
- ], CurrencyMaskModule] });
1207
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, decorators: [{
1208
- type: NgModule,
1209
- args: [{
1210
- declarations: [
1211
- AsideButtonComponent,
1212
- ButtonComponent,
1213
- CheckboxComponent,
1214
- DatalistComponent,
1215
- InputComponent,
1216
- LevelButtonComponent,
1217
- LevelTextComponent,
1218
- RadioComponent,
1219
- SelectComponent,
1220
- TextLinkComponent,
1221
- LoginFormComponent,
1222
- SidenavComponent,
1223
- ],
1224
- imports: [
1225
- CommonModule,
1226
- // BrowserModule, // Para evitar doble carga de BrowserModule
1227
- FormsModule,
1228
- ReactiveFormsModule,
1229
- MaterialModule,
1230
- CurrencyMaskModule
1231
- ],
1232
- exports: [
1233
- AsideButtonComponent,
1234
- ButtonComponent,
1235
- CheckboxComponent,
1236
- DatalistComponent,
1237
- InputComponent,
1238
- LevelButtonComponent,
1239
- LevelTextComponent,
1240
- RadioComponent,
1241
- SelectComponent,
1242
- TextLinkComponent,
1243
- LoginFormComponent,
1244
- SidenavComponent,
1245
- CurrencyMaskModule
1246
- ],
1247
- providers: [
1248
- CurrencyPipe,
1249
- TitleCasePipe
1250
- ]
1251
- }]
1164
+ class ComponentsModule {
1165
+ }
1166
+ ComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1167
+ ComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, declarations: [AsideButtonComponent,
1168
+ ButtonComponent,
1169
+ CheckboxComponent,
1170
+ DatalistComponent,
1171
+ InputComponent,
1172
+ LevelButtonComponent,
1173
+ LevelTextComponent,
1174
+ RadioComponent,
1175
+ SelectComponent,
1176
+ TextLinkComponent,
1177
+ LoginFormComponent,
1178
+ SidenavComponent], imports: [CommonModule,
1179
+ // BrowserModule, // Para evitar doble carga de BrowserModule
1180
+ FormsModule,
1181
+ ReactiveFormsModule,
1182
+ MaterialModule,
1183
+ CurrencyMaskModule], exports: [AsideButtonComponent,
1184
+ ButtonComponent,
1185
+ CheckboxComponent,
1186
+ DatalistComponent,
1187
+ InputComponent,
1188
+ LevelButtonComponent,
1189
+ LevelTextComponent,
1190
+ RadioComponent,
1191
+ SelectComponent,
1192
+ TextLinkComponent,
1193
+ LoginFormComponent,
1194
+ SidenavComponent,
1195
+ CurrencyMaskModule] });
1196
+ ComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, providers: [
1197
+ CurrencyPipe,
1198
+ TitleCasePipe
1199
+ ], imports: [[
1200
+ CommonModule,
1201
+ // BrowserModule, // Para evitar doble carga de BrowserModule
1202
+ FormsModule,
1203
+ ReactiveFormsModule,
1204
+ MaterialModule,
1205
+ CurrencyMaskModule
1206
+ ], CurrencyMaskModule] });
1207
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, decorators: [{
1208
+ type: NgModule,
1209
+ args: [{
1210
+ declarations: [
1211
+ AsideButtonComponent,
1212
+ ButtonComponent,
1213
+ CheckboxComponent,
1214
+ DatalistComponent,
1215
+ InputComponent,
1216
+ LevelButtonComponent,
1217
+ LevelTextComponent,
1218
+ RadioComponent,
1219
+ SelectComponent,
1220
+ TextLinkComponent,
1221
+ LoginFormComponent,
1222
+ SidenavComponent,
1223
+ ],
1224
+ imports: [
1225
+ CommonModule,
1226
+ // BrowserModule, // Para evitar doble carga de BrowserModule
1227
+ FormsModule,
1228
+ ReactiveFormsModule,
1229
+ MaterialModule,
1230
+ CurrencyMaskModule
1231
+ ],
1232
+ exports: [
1233
+ AsideButtonComponent,
1234
+ ButtonComponent,
1235
+ CheckboxComponent,
1236
+ DatalistComponent,
1237
+ InputComponent,
1238
+ LevelButtonComponent,
1239
+ LevelTextComponent,
1240
+ RadioComponent,
1241
+ SelectComponent,
1242
+ TextLinkComponent,
1243
+ LoginFormComponent,
1244
+ SidenavComponent,
1245
+ CurrencyMaskModule
1246
+ ],
1247
+ providers: [
1248
+ CurrencyPipe,
1249
+ TitleCasePipe
1250
+ ]
1251
+ }]
1252
1252
  }] });
1253
1253
 
1254
- class CourseService {
1255
- constructor(http) {
1256
- this.http = http;
1257
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
1258
- }
1259
- createCourse(course) {
1260
- let serviceUrl = this.SERVICE_URL + 'post/course';
1261
- this.generateRequestParams(course);
1262
- return this.http.post(serviceUrl, this.httpOptions);
1263
- }
1264
- editCourse(course) {
1265
- let serviceUrl = this.SERVICE_URL + 'put/course';
1266
- this.generateRequestParams(course);
1267
- return this.http.put(serviceUrl, this.httpOptions);
1268
- }
1269
- getAllCourses(params) {
1270
- let serviceUrl = this.SERVICE_URL + 'post/all/courses';
1271
- this.generateRequestParams(params);
1272
- return this.http.post(serviceUrl, this.httpOptions);
1273
- }
1274
- getCoursesByLevel(params) {
1275
- let serviceUrl = this.SERVICE_URL + 'post/course/by/level';
1276
- this.generateRequestParams(params);
1277
- return this.http.post(serviceUrl, this.httpOptions);
1278
- }
1279
- getAvailibleCourses(availibleCourses) {
1280
- let serviceUrl = this.SERVICE_URL + 'post/course/for/cod';
1281
- this.generateRequestParams(availibleCourses);
1282
- return this.http.post(serviceUrl, this.httpOptions);
1283
- }
1284
- getCourseByCode(params) {
1285
- let serviceUrl = this.SERVICE_URL + 'post/course/by/code';
1286
- this.generateRequestParams(params);
1287
- return this.http.post(serviceUrl, this.httpOptions);
1288
- }
1289
- getCoursesByTeacher(params) {
1290
- let serviceUrl = this.SERVICE_URL + 'post/course/by/teacher';
1291
- this.generateRequestParams(params);
1292
- return this.http.post(serviceUrl, this.httpOptions);
1293
- }
1294
- getFilteredCoursesByTeacher(params) {
1295
- let serviceUrl = this.SERVICE_URL + 'post/course/filtered/by/teacher';
1296
- this.generateRequestParams(params);
1297
- return this.http.post(serviceUrl, this.httpOptions);
1298
- }
1299
- getCoursesByStartDate(params) {
1300
- let serviceUrl = this.SERVICE_URL + 'post/course/by/startdate';
1301
- this.generateRequestParams(params);
1302
- return this.http.post(serviceUrl, this.httpOptions);
1303
- }
1304
- numberClassByCode(idCode) {
1305
- let serviceUrl = this.SERVICE_URL + 'get/coursetype/numclass/by/code/' + idCode;
1306
- return this.http.get(serviceUrl);
1307
- }
1308
- // construye los headers y params
1309
- generateRequestParams(param) {
1310
- this.httpOptions = {
1311
- header: new HttpHeaders(),
1312
- params: param,
1313
- };
1314
- }
1315
- }
1316
- 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 });
1317
- CourseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, providedIn: 'root' });
1318
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, decorators: [{
1319
- type: Injectable,
1320
- args: [{
1321
- providedIn: 'root',
1322
- }]
1254
+ class CourseService {
1255
+ constructor(http) {
1256
+ this.http = http;
1257
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
1258
+ }
1259
+ createCourse(course) {
1260
+ let serviceUrl = this.SERVICE_URL + 'post/course';
1261
+ this.generateRequestParams(course);
1262
+ return this.http.post(serviceUrl, this.httpOptions);
1263
+ }
1264
+ editCourse(course) {
1265
+ let serviceUrl = this.SERVICE_URL + 'put/course';
1266
+ this.generateRequestParams(course);
1267
+ return this.http.put(serviceUrl, this.httpOptions);
1268
+ }
1269
+ getAllCourses(params) {
1270
+ let serviceUrl = this.SERVICE_URL + 'post/all/courses';
1271
+ this.generateRequestParams(params);
1272
+ return this.http.post(serviceUrl, this.httpOptions);
1273
+ }
1274
+ getCoursesByLevel(params) {
1275
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/level';
1276
+ this.generateRequestParams(params);
1277
+ return this.http.post(serviceUrl, this.httpOptions);
1278
+ }
1279
+ getAvailibleCourses(availibleCourses) {
1280
+ let serviceUrl = this.SERVICE_URL + 'post/course/for/cod';
1281
+ this.generateRequestParams(availibleCourses);
1282
+ return this.http.post(serviceUrl, this.httpOptions);
1283
+ }
1284
+ getCourseByCode(params) {
1285
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/code';
1286
+ this.generateRequestParams(params);
1287
+ return this.http.post(serviceUrl, this.httpOptions);
1288
+ }
1289
+ getCoursesByTeacher(params) {
1290
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/teacher';
1291
+ this.generateRequestParams(params);
1292
+ return this.http.post(serviceUrl, this.httpOptions);
1293
+ }
1294
+ getFilteredCoursesByTeacher(params) {
1295
+ let serviceUrl = this.SERVICE_URL + 'post/course/filtered/by/teacher';
1296
+ this.generateRequestParams(params);
1297
+ return this.http.post(serviceUrl, this.httpOptions);
1298
+ }
1299
+ getCoursesByStartDate(params) {
1300
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/startdate';
1301
+ this.generateRequestParams(params);
1302
+ return this.http.post(serviceUrl, this.httpOptions);
1303
+ }
1304
+ numberClassByCode(idCode) {
1305
+ let serviceUrl = this.SERVICE_URL + 'get/coursetype/numclass/by/code/' + idCode;
1306
+ return this.http.get(serviceUrl);
1307
+ }
1308
+ // construye los headers y params
1309
+ generateRequestParams(param) {
1310
+ this.httpOptions = {
1311
+ header: new HttpHeaders(),
1312
+ params: param,
1313
+ };
1314
+ }
1315
+ }
1316
+ 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 });
1317
+ CourseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, providedIn: 'root' });
1318
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, decorators: [{
1319
+ type: Injectable,
1320
+ args: [{
1321
+ providedIn: 'root',
1322
+ }]
1323
1323
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1324
1324
 
1325
- class ParameterService {
1326
- constructor(http) {
1327
- this.http = http;
1328
- this.SERVICE_URL = 'https://iptdev.com.co/lab/parameters/api/';
1329
- }
1330
- getIndicatives() {
1331
- let serviceUrl = this.SERVICE_URL + 'get/indicatives';
1332
- return this.http.get(serviceUrl);
1333
- }
1334
- getCardTypes(country) {
1335
- let serviceUrl = this.SERVICE_URL + 'get/id/card/type/country/' + country;
1336
- return this.http.get(serviceUrl);
1337
- }
1338
- getCountries() {
1339
- let serviceUrl = this.SERVICE_URL + 'get/countries';
1340
- return this.http.get(serviceUrl);
1341
- }
1342
- getStatesByCountry(country) {
1343
- let serviceUrl = this.SERVICE_URL + 'get/state/country/iso/' + country;
1344
- return this.http.get(serviceUrl);
1345
- }
1346
- getCitiesByState(state) {
1347
- let serviceUrl = this.SERVICE_URL + 'get/cities/state/' + state;
1348
- return this.http.get(serviceUrl);
1349
- }
1350
- getAllPlans() {
1351
- let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1352
- return this.http.get(serviceUrl);
1353
- }
1354
- getLevels() {
1355
- let serviceUrl = this.SERVICE_URL + 'get/english/levels';
1356
- return this.http.get(serviceUrl);
1357
- }
1358
- getAgreements() {
1359
- let serviceUrl = this.SERVICE_URL + 'get/all/agreement';
1360
- return this.http.get(serviceUrl);
1361
- }
1362
- getAgreementByCategory(typeCategory) {
1363
- let serviceUrl = this.SERVICE_URL + 'get/agreement/by/category/' + typeCategory;
1364
- return this.http.get(serviceUrl);
1365
- }
1366
- getAllClassrooms() {
1367
- let serviceUrl = this.SERVICE_URL + 'get/all/classroom';
1368
- return this.http.get(serviceUrl);
1369
- }
1370
- getCoursesTypes() {
1371
- let serviceUrl = this.SERVICE_URL + 'get/all/course/type';
1372
- return this.http.get(serviceUrl);
1373
- }
1374
- getCoursesTypesByPlan(typePlan) {
1375
- let serviceUrl = this.SERVICE_URL + 'get/course/by/plan/' + typePlan;
1376
- return this.http.get(serviceUrl);
1377
- }
1378
- getDegrees() {
1379
- let serviceUrl = this.SERVICE_URL + 'get/all/degrees';
1380
- return this.http.get(serviceUrl);
1381
- }
1382
- getProgramsByDegree(typeDegree) {
1383
- let serviceUrl = this.SERVICE_URL + 'get/programs/by/degree/' + typeDegree;
1384
- return this.http.get(serviceUrl);
1385
- }
1386
- getMarketingReasons() {
1387
- let serviceUrl = this.SERVICE_URL + 'get/all/mkt/reasons';
1388
- return this.http.get(serviceUrl);
1389
- }
1390
- getStudyReasons() {
1391
- let serviceUrl = this.SERVICE_URL + 'get/all/study/reasons';
1392
- return this.http.get(serviceUrl);
1393
- }
1394
- getAcademicUnits() {
1395
- let serviceUrl = this.SERVICE_URL + 'get/academic/units';
1396
- return this.http.get(serviceUrl);
1397
- }
1398
- getStatusContact() {
1399
- let serviceUrl = this.SERVICE_URL + 'get/contact/status/all';
1400
- return this.http.get(serviceUrl);
1401
- }
1402
- getTypePlan() {
1403
- let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1404
- return this.http.get(serviceUrl);
1405
- }
1406
- getTypePlanDiscount() {
1407
- let serviceUrl = this.SERVICE_URL + 'get/discount/all/plans';
1408
- return this.http.get(serviceUrl);
1409
- }
1410
- getContactedType() {
1411
- let serviceUrl = this.SERVICE_URL + 'get/contact/contacted/all';
1412
- return this.http.get(serviceUrl);
1413
- }
1414
- getStatusByCode(codeStatus) {
1415
- let serviceUrl = this.SERVICE_URL + 'get/contact/status/bycode/' + codeStatus;
1416
- return this.http.get(serviceUrl);
1417
- }
1418
- getAllTypeDiscount() {
1419
- let serviceUrl = this.SERVICE_URL + 'get/commercial/typediscounts/all';
1420
- return this.http.get(serviceUrl);
1421
- }
1422
- getAllCourseModality() {
1423
- let serviceUrl = this.SERVICE_URL + 'get/all/course/modality';
1424
- return this.http.get(serviceUrl);
1425
- }
1426
- }
1427
- 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 });
1428
- ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, providedIn: 'root' });
1429
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, decorators: [{
1430
- type: Injectable,
1431
- args: [{
1432
- providedIn: 'root',
1433
- }]
1325
+ class ParameterService {
1326
+ constructor(http) {
1327
+ this.http = http;
1328
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/parameters/api/';
1329
+ }
1330
+ getIndicatives() {
1331
+ let serviceUrl = this.SERVICE_URL + 'get/indicatives';
1332
+ return this.http.get(serviceUrl);
1333
+ }
1334
+ getCardTypes(country) {
1335
+ let serviceUrl = this.SERVICE_URL + 'get/id/card/type/country/' + country;
1336
+ return this.http.get(serviceUrl);
1337
+ }
1338
+ getCountries() {
1339
+ let serviceUrl = this.SERVICE_URL + 'get/countries';
1340
+ return this.http.get(serviceUrl);
1341
+ }
1342
+ getStatesByCountry(country) {
1343
+ let serviceUrl = this.SERVICE_URL + 'get/state/country/iso/' + country;
1344
+ return this.http.get(serviceUrl);
1345
+ }
1346
+ getCitiesByState(state) {
1347
+ let serviceUrl = this.SERVICE_URL + 'get/cities/state/' + state;
1348
+ return this.http.get(serviceUrl);
1349
+ }
1350
+ getAllPlans() {
1351
+ let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1352
+ return this.http.get(serviceUrl);
1353
+ }
1354
+ getLevels() {
1355
+ let serviceUrl = this.SERVICE_URL + 'get/english/levels';
1356
+ return this.http.get(serviceUrl);
1357
+ }
1358
+ getAgreements() {
1359
+ let serviceUrl = this.SERVICE_URL + 'get/all/agreement';
1360
+ return this.http.get(serviceUrl);
1361
+ }
1362
+ getAgreementByCategory(typeCategory) {
1363
+ let serviceUrl = this.SERVICE_URL + 'get/agreement/by/category/' + typeCategory;
1364
+ return this.http.get(serviceUrl);
1365
+ }
1366
+ getAllClassrooms() {
1367
+ let serviceUrl = this.SERVICE_URL + 'get/all/classroom';
1368
+ return this.http.get(serviceUrl);
1369
+ }
1370
+ getCoursesTypes() {
1371
+ let serviceUrl = this.SERVICE_URL + 'get/all/course/type';
1372
+ return this.http.get(serviceUrl);
1373
+ }
1374
+ getCoursesTypesByPlan(typePlan) {
1375
+ let serviceUrl = this.SERVICE_URL + 'get/course/by/plan/' + typePlan;
1376
+ return this.http.get(serviceUrl);
1377
+ }
1378
+ getDegrees() {
1379
+ let serviceUrl = this.SERVICE_URL + 'get/all/degrees';
1380
+ return this.http.get(serviceUrl);
1381
+ }
1382
+ getProgramsByDegree(typeDegree) {
1383
+ let serviceUrl = this.SERVICE_URL + 'get/programs/by/degree/' + typeDegree;
1384
+ return this.http.get(serviceUrl);
1385
+ }
1386
+ getMarketingReasons() {
1387
+ let serviceUrl = this.SERVICE_URL + 'get/all/mkt/reasons';
1388
+ return this.http.get(serviceUrl);
1389
+ }
1390
+ getStudyReasons() {
1391
+ let serviceUrl = this.SERVICE_URL + 'get/all/study/reasons';
1392
+ return this.http.get(serviceUrl);
1393
+ }
1394
+ getAcademicUnits() {
1395
+ let serviceUrl = this.SERVICE_URL + 'get/academic/units';
1396
+ return this.http.get(serviceUrl);
1397
+ }
1398
+ getStatusContact() {
1399
+ let serviceUrl = this.SERVICE_URL + 'get/contact/status/all';
1400
+ return this.http.get(serviceUrl);
1401
+ }
1402
+ getTypePlan() {
1403
+ let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1404
+ return this.http.get(serviceUrl);
1405
+ }
1406
+ getTypePlanDiscount() {
1407
+ let serviceUrl = this.SERVICE_URL + 'get/discount/all/plans';
1408
+ return this.http.get(serviceUrl);
1409
+ }
1410
+ getContactedType() {
1411
+ let serviceUrl = this.SERVICE_URL + 'get/contact/contacted/all';
1412
+ return this.http.get(serviceUrl);
1413
+ }
1414
+ getStatusByCode(codeStatus) {
1415
+ let serviceUrl = this.SERVICE_URL + 'get/contact/status/bycode/' + codeStatus;
1416
+ return this.http.get(serviceUrl);
1417
+ }
1418
+ getAllTypeDiscount() {
1419
+ let serviceUrl = this.SERVICE_URL + 'get/commercial/typediscounts/all';
1420
+ return this.http.get(serviceUrl);
1421
+ }
1422
+ getAllCourseModality() {
1423
+ let serviceUrl = this.SERVICE_URL + 'get/all/course/modality';
1424
+ return this.http.get(serviceUrl);
1425
+ }
1426
+ }
1427
+ 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 });
1428
+ ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, providedIn: 'root' });
1429
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, decorators: [{
1430
+ type: Injectable,
1431
+ args: [{
1432
+ providedIn: 'root',
1433
+ }]
1434
1434
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1435
1435
 
1436
- class RedirectGuard {
1437
- constructor(router) {
1438
- this.router = router;
1439
- }
1440
- canActivate(route, state) {
1441
- window.location.href = route.data['externalUrl'];
1442
- return true;
1443
- }
1444
- }
1445
- 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 });
1446
- RedirectGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard });
1447
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard, decorators: [{
1448
- type: Injectable
1436
+ class RedirectGuard {
1437
+ constructor(router) {
1438
+ this.router = router;
1439
+ }
1440
+ canActivate(route, state) {
1441
+ window.location.href = route.data['externalUrl'];
1442
+ return true;
1443
+ }
1444
+ }
1445
+ 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 });
1446
+ RedirectGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard });
1447
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard, decorators: [{
1448
+ type: Injectable
1449
1449
  }], ctorParameters: function () { return [{ type: i1$3.Router }]; } });
1450
1450
 
1451
- class SwitchService {
1452
- constructor() {
1453
- this.$modal = new EventEmitter();
1454
- }
1455
- }
1456
- SwitchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1457
- SwitchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, providedIn: 'root' });
1458
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, decorators: [{
1459
- type: Injectable,
1460
- args: [{
1461
- providedIn: 'root'
1462
- }]
1451
+ class SwitchService {
1452
+ constructor() {
1453
+ this.$modal = new EventEmitter();
1454
+ }
1455
+ }
1456
+ SwitchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1457
+ SwitchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, providedIn: 'root' });
1458
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, decorators: [{
1459
+ type: Injectable,
1460
+ args: [{
1461
+ providedIn: 'root'
1462
+ }]
1463
1463
  }], ctorParameters: function () { return []; } });
1464
1464
 
1465
- class TestService {
1466
- constructor(http) {
1467
- this.http = http;
1468
- this.SERVICE_URL = 'https://iptdev.com.co/lab/test/api/';
1469
- }
1470
- // ---------------------- EXÁMENES ---------------------- //
1471
- createExam(exam) {
1472
- let serviceUrl = this.SERVICE_URL + 'post/exam';
1473
- this.generateRequestParams(exam);
1474
- return this.http.post(serviceUrl, this.httpOptions);
1475
- }
1476
- getAllExams(params) {
1477
- let serviceUrl = this.SERVICE_URL + 'post/all/exam';
1478
- this.generateRequestParams(params);
1479
- return this.http.post(serviceUrl, this.httpOptions);
1480
- }
1481
- updateExam(params) {
1482
- let serviceUrl = this.SERVICE_URL + 'update/exam';
1483
- this.generateRequestParams(params);
1484
- return this.http.put(serviceUrl, this.httpOptions);
1485
- }
1486
- updateExamStatus(params) {
1487
- let serviceUrl = this.SERVICE_URL + 'update/exam/status';
1488
- this.generateRequestParams(params);
1489
- return this.http.put(serviceUrl, this.httpOptions);
1490
- }
1491
- copyExam(params) {
1492
- let serviceUrl = this.SERVICE_URL + 'copy/exam';
1493
- this.generateRequestParams(params);
1494
- return this.http.put(serviceUrl, this.httpOptions);
1495
- }
1496
- getExamByCode(code) {
1497
- let serviceUrl = this.SERVICE_URL + 'get/exam/by/code/' + code;
1498
- return this.http.get(serviceUrl);
1499
- }
1500
- getExamByAuthor(code) {
1501
- let serviceUrl = this.SERVICE_URL + 'get/exams/by/author/' + code;
1502
- return this.http.get(serviceUrl);
1503
- }
1504
- // ---------------------- SECCIONES ---------------------- //
1505
- createSectionWithAll(params) {
1506
- let serviceUrl = this.SERVICE_URL + 'post/section/with/all';
1507
- this.generateRequestParams(params);
1508
- return this.http.post(serviceUrl, this.httpOptions);
1509
- }
1510
- createSection(params) {
1511
- let serviceUrl = this.SERVICE_URL + 'post/section';
1512
- this.generateRequestParams(params);
1513
- return this.http.post(serviceUrl, this.httpOptions);
1514
- }
1515
- getAllSections(params) {
1516
- let serviceUrl = this.SERVICE_URL + 'post/all/sections';
1517
- this.generateRequestParams(params);
1518
- return this.http.post(serviceUrl, this.httpOptions);
1519
- }
1520
- updateSection(params) {
1521
- let serviceUrl = this.SERVICE_URL + 'update/section';
1522
- this.generateRequestParams(params);
1523
- return this.http.put(serviceUrl, this.httpOptions);
1524
- }
1525
- updateSectionMedia(params) {
1526
- let serviceUrl = this.SERVICE_URL + 'post/section/media';
1527
- this.generateRequestParams(params);
1528
- return this.http.post(serviceUrl, this.httpOptions);
1529
- }
1530
- updateSectionState(params) {
1531
- let serviceUrl = this.SERVICE_URL + 'update/section/state';
1532
- this.generateRequestParams(params);
1533
- return this.http.put(serviceUrl, this.httpOptions);
1534
- }
1535
- getSectionsByExam(code) {
1536
- let serviceUrl = this.SERVICE_URL + 'get/sections/by/exam/' + code;
1537
- return this.http.get(serviceUrl);
1538
- }
1539
- // ---------------------- PREGUNTAS ---------------------- //
1540
- createQuestion(params) {
1541
- let serviceUrl = this.SERVICE_URL + 'post/question';
1542
- this.generateRequestParams(params);
1543
- return this.http.post(serviceUrl, this.httpOptions);
1544
- }
1545
- updateQuestion(params) {
1546
- let serviceUrl = this.SERVICE_URL + 'update/question';
1547
- this.generateRequestParams(params);
1548
- return this.http.put(serviceUrl, this.httpOptions);
1549
- }
1550
- getQuestionsBySections(params) {
1551
- let serviceUrl = this.SERVICE_URL + 'get/questions/by/sections';
1552
- this.generateRequestParams(params);
1553
- return this.http.post(serviceUrl, this.httpOptions);
1554
- }
1555
- getQuestionsBySection(params) {
1556
- let serviceUrl = this.SERVICE_URL + 'get/questions/by/section';
1557
- this.generateRequestParams(params);
1558
- return this.http.post(serviceUrl, this.httpOptions);
1559
- }
1560
- // ---------------------- RESPUESTAS ---------------------- //
1561
- createAnswer(params) {
1562
- let serviceUrl = this.SERVICE_URL + 'post/answer';
1563
- this.generateRequestParams(params);
1564
- return this.http.post(serviceUrl, this.httpOptions);
1565
- }
1566
- updateAnswer(params) {
1567
- let serviceUrl = this.SERVICE_URL + 'update/answer';
1568
- this.generateRequestParams(params);
1569
- return this.http.put(serviceUrl, this.httpOptions);
1570
- }
1571
- getAnswersByQuestion(code) {
1572
- let serviceUrl = this.SERVICE_URL + 'get/answers/by/question/' + code;
1573
- return this.http.get(serviceUrl, this.httpOptions);
1574
- }
1575
- updateQuestionState(params) {
1576
- let serviceUrl = this.SERVICE_URL + 'update/question/state';
1577
- this.generateRequestParams(params);
1578
- return this.http.put(serviceUrl, this.httpOptions);
1579
- }
1580
- // construye los headers y params
1581
- generateRequestParams(param) {
1582
- this.httpOptions = {
1583
- header: new HttpHeaders(),
1584
- params: param,
1585
- };
1586
- }
1587
- }
1588
- 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 });
1589
- TestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, providedIn: 'root' });
1590
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, decorators: [{
1591
- type: Injectable,
1592
- args: [{
1593
- providedIn: 'root',
1594
- }]
1465
+ class TestService {
1466
+ constructor(http) {
1467
+ this.http = http;
1468
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/test/api/';
1469
+ }
1470
+ // ---------------------- EXÁMENES ---------------------- //
1471
+ createExam(exam) {
1472
+ let serviceUrl = this.SERVICE_URL + 'post/exam';
1473
+ this.generateRequestParams(exam);
1474
+ return this.http.post(serviceUrl, this.httpOptions);
1475
+ }
1476
+ getAllExams(params) {
1477
+ let serviceUrl = this.SERVICE_URL + 'post/all/exam';
1478
+ this.generateRequestParams(params);
1479
+ return this.http.post(serviceUrl, this.httpOptions);
1480
+ }
1481
+ updateExam(params) {
1482
+ let serviceUrl = this.SERVICE_URL + 'update/exam';
1483
+ this.generateRequestParams(params);
1484
+ return this.http.put(serviceUrl, this.httpOptions);
1485
+ }
1486
+ updateExamStatus(params) {
1487
+ let serviceUrl = this.SERVICE_URL + 'update/exam/status';
1488
+ this.generateRequestParams(params);
1489
+ return this.http.put(serviceUrl, this.httpOptions);
1490
+ }
1491
+ copyExam(params) {
1492
+ let serviceUrl = this.SERVICE_URL + 'copy/exam';
1493
+ this.generateRequestParams(params);
1494
+ return this.http.put(serviceUrl, this.httpOptions);
1495
+ }
1496
+ getExamByCode(code) {
1497
+ let serviceUrl = this.SERVICE_URL + 'get/exam/by/code/' + code;
1498
+ return this.http.get(serviceUrl);
1499
+ }
1500
+ getExamByAuthor(code) {
1501
+ let serviceUrl = this.SERVICE_URL + 'get/exams/by/author/' + code;
1502
+ return this.http.get(serviceUrl);
1503
+ }
1504
+ // ---------------------- SECCIONES ---------------------- //
1505
+ createSectionWithAll(params) {
1506
+ let serviceUrl = this.SERVICE_URL + 'post/section/with/all';
1507
+ this.generateRequestParams(params);
1508
+ return this.http.post(serviceUrl, this.httpOptions);
1509
+ }
1510
+ createSection(params) {
1511
+ let serviceUrl = this.SERVICE_URL + 'post/section';
1512
+ this.generateRequestParams(params);
1513
+ return this.http.post(serviceUrl, this.httpOptions);
1514
+ }
1515
+ getAllSections(params) {
1516
+ let serviceUrl = this.SERVICE_URL + 'post/all/sections';
1517
+ this.generateRequestParams(params);
1518
+ return this.http.post(serviceUrl, this.httpOptions);
1519
+ }
1520
+ updateSection(params) {
1521
+ let serviceUrl = this.SERVICE_URL + 'update/section';
1522
+ this.generateRequestParams(params);
1523
+ return this.http.put(serviceUrl, this.httpOptions);
1524
+ }
1525
+ updateSectionMedia(params) {
1526
+ let serviceUrl = this.SERVICE_URL + 'post/section/media';
1527
+ this.generateRequestParams(params);
1528
+ return this.http.post(serviceUrl, this.httpOptions);
1529
+ }
1530
+ updateSectionState(params) {
1531
+ let serviceUrl = this.SERVICE_URL + 'update/section/state';
1532
+ this.generateRequestParams(params);
1533
+ return this.http.put(serviceUrl, this.httpOptions);
1534
+ }
1535
+ getSectionsByExam(code) {
1536
+ let serviceUrl = this.SERVICE_URL + 'get/sections/by/exam/' + code;
1537
+ return this.http.get(serviceUrl);
1538
+ }
1539
+ // ---------------------- PREGUNTAS ---------------------- //
1540
+ createQuestion(params) {
1541
+ let serviceUrl = this.SERVICE_URL + 'post/question';
1542
+ this.generateRequestParams(params);
1543
+ return this.http.post(serviceUrl, this.httpOptions);
1544
+ }
1545
+ updateQuestion(params) {
1546
+ let serviceUrl = this.SERVICE_URL + 'update/question';
1547
+ this.generateRequestParams(params);
1548
+ return this.http.put(serviceUrl, this.httpOptions);
1549
+ }
1550
+ getQuestionsBySections(params) {
1551
+ let serviceUrl = this.SERVICE_URL + 'get/questions/by/sections';
1552
+ this.generateRequestParams(params);
1553
+ return this.http.post(serviceUrl, this.httpOptions);
1554
+ }
1555
+ getQuestionsBySection(params) {
1556
+ let serviceUrl = this.SERVICE_URL + 'get/questions/by/section';
1557
+ this.generateRequestParams(params);
1558
+ return this.http.post(serviceUrl, this.httpOptions);
1559
+ }
1560
+ // ---------------------- RESPUESTAS ---------------------- //
1561
+ createAnswer(params) {
1562
+ let serviceUrl = this.SERVICE_URL + 'post/answer';
1563
+ this.generateRequestParams(params);
1564
+ return this.http.post(serviceUrl, this.httpOptions);
1565
+ }
1566
+ updateAnswer(params) {
1567
+ let serviceUrl = this.SERVICE_URL + 'update/answer';
1568
+ this.generateRequestParams(params);
1569
+ return this.http.put(serviceUrl, this.httpOptions);
1570
+ }
1571
+ getAnswersByQuestion(code) {
1572
+ let serviceUrl = this.SERVICE_URL + 'get/answers/by/question/' + code;
1573
+ return this.http.get(serviceUrl, this.httpOptions);
1574
+ }
1575
+ updateQuestionState(params) {
1576
+ let serviceUrl = this.SERVICE_URL + 'update/question/state';
1577
+ this.generateRequestParams(params);
1578
+ return this.http.put(serviceUrl, this.httpOptions);
1579
+ }
1580
+ // construye los headers y params
1581
+ generateRequestParams(param) {
1582
+ this.httpOptions = {
1583
+ header: new HttpHeaders(),
1584
+ params: param,
1585
+ };
1586
+ }
1587
+ }
1588
+ 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 });
1589
+ TestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, providedIn: 'root' });
1590
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, decorators: [{
1591
+ type: Injectable,
1592
+ args: [{
1593
+ providedIn: 'root',
1594
+ }]
1595
1595
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1596
1596
 
1597
- class MarketingService {
1598
- constructor(http) {
1599
- this.http = http;
1600
- this.SERVICE_URL = 'https://iptdev.com.co/lab/commercial/api/';
1601
- }
1602
- getStrategyByUserCommercial(user) {
1603
- let serviceUrl = this.SERVICE_URL + 'post/contact/strategy/byaviser';
1604
- this.generateRequestParams(user);
1605
- return this.http.post(serviceUrl, this.httpOptions);
1606
- }
1607
- getObservationsContact(codeContact) {
1608
- let serviceUrl = this.SERVICE_URL + 'get/contact/observation/strategy/bycode/' + codeContact;
1609
- return this.http.get(serviceUrl);
1610
- }
1611
- createObservations(params) {
1612
- let serviceUrl = this.SERVICE_URL + 'post/contact/observation/create';
1613
- this.generateRequestParams(params);
1614
- return this.http.post(serviceUrl, this.httpOptions);
1615
- }
1616
- getUserStatistics(userToken) {
1617
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
1618
- this.generateRequestParams(userToken);
1619
- return this.http.post(serviceUrl, this.httpOptions);
1620
- }
1621
- getTopAdviser() {
1622
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/topadviser';
1623
- return this.http.get(serviceUrl, this.httpOptions);
1624
- }
1625
- getMovementStatus() {
1626
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/movements/status';
1627
- return this.http.get(serviceUrl, this.httpOptions);
1628
- }
1629
- getgroupSignupStatus() {
1630
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/group/signup';
1631
- return this.http.get(serviceUrl, this.httpOptions);
1632
- }
1633
- //Construye los headers y paramns
1634
- generateRequestParams(param) {
1635
- this.httpOptions = {
1636
- header: new HttpHeaders(),
1637
- params: param,
1638
- };
1639
- }
1640
- }
1641
- 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 });
1642
- MarketingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, providedIn: 'root' });
1643
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, decorators: [{
1644
- type: Injectable,
1645
- args: [{
1646
- providedIn: 'root'
1647
- }]
1597
+ class MarketingService {
1598
+ constructor(http) {
1599
+ this.http = http;
1600
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/commercial/api/';
1601
+ }
1602
+ getStrategyByUserCommercial(user) {
1603
+ let serviceUrl = this.SERVICE_URL + 'post/contact/strategy/byaviser';
1604
+ this.generateRequestParams(user);
1605
+ return this.http.post(serviceUrl, this.httpOptions);
1606
+ }
1607
+ getObservationsContact(codeContact) {
1608
+ let serviceUrl = this.SERVICE_URL + 'get/contact/observation/strategy/bycode/' + codeContact;
1609
+ return this.http.get(serviceUrl);
1610
+ }
1611
+ createObservations(params) {
1612
+ let serviceUrl = this.SERVICE_URL + 'post/contact/observation/create';
1613
+ this.generateRequestParams(params);
1614
+ return this.http.post(serviceUrl, this.httpOptions);
1615
+ }
1616
+ getUserStatistics(userToken) {
1617
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
1618
+ this.generateRequestParams(userToken);
1619
+ return this.http.post(serviceUrl, this.httpOptions);
1620
+ }
1621
+ getTopAdviser() {
1622
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/topadviser';
1623
+ return this.http.get(serviceUrl, this.httpOptions);
1624
+ }
1625
+ getMovementStatus() {
1626
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/movements/status';
1627
+ return this.http.get(serviceUrl, this.httpOptions);
1628
+ }
1629
+ getgroupSignupStatus() {
1630
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/group/signup';
1631
+ return this.http.get(serviceUrl, this.httpOptions);
1632
+ }
1633
+ //Construye los headers y paramns
1634
+ generateRequestParams(param) {
1635
+ this.httpOptions = {
1636
+ header: new HttpHeaders(),
1637
+ params: param,
1638
+ };
1639
+ }
1640
+ }
1641
+ 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 });
1642
+ MarketingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, providedIn: 'root' });
1643
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, decorators: [{
1644
+ type: Injectable,
1645
+ args: [{
1646
+ providedIn: 'root'
1647
+ }]
1648
1648
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1649
1649
 
1650
- class BudgetService {
1651
- constructor(http) {
1652
- this.http = http;
1653
- this.SERVICE_URL = 'https://iptdev.com.co/lab/budget/api/';
1654
- }
1655
- getAllDiscount(user) {
1656
- let serviceUrl = this.SERVICE_URL + 'post/discounts/coupon/all';
1657
- this.generateRequestParams(user);
1658
- return this.http.post(serviceUrl, this.httpOptions);
1659
- }
1660
- createDiscount(params) {
1661
- let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/create';
1662
- this.generateRequestParams(params);
1663
- return this.http.post(serviceUrl, this.httpOptions);
1664
- }
1665
- updateDiscount(params) {
1666
- let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/update';
1667
- this.generateRequestParams(params);
1668
- return this.http.post(serviceUrl, this.httpOptions);
1669
- }
1670
- //Construye los headers y paramns
1671
- generateRequestParams(param) {
1672
- this.httpOptions = {
1673
- header: new HttpHeaders(),
1674
- params: param,
1675
- };
1676
- }
1677
- }
1678
- 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 });
1679
- BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, providedIn: 'root' });
1680
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, decorators: [{
1681
- type: Injectable,
1682
- args: [{
1683
- providedIn: 'root'
1684
- }]
1650
+ class BudgetService {
1651
+ constructor(http) {
1652
+ this.http = http;
1653
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/budget/api/';
1654
+ }
1655
+ getAllDiscount(user) {
1656
+ let serviceUrl = this.SERVICE_URL + 'post/discounts/coupon/all';
1657
+ this.generateRequestParams(user);
1658
+ return this.http.post(serviceUrl, this.httpOptions);
1659
+ }
1660
+ createDiscount(params) {
1661
+ let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/create';
1662
+ this.generateRequestParams(params);
1663
+ return this.http.post(serviceUrl, this.httpOptions);
1664
+ }
1665
+ updateDiscount(params) {
1666
+ let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/update';
1667
+ this.generateRequestParams(params);
1668
+ return this.http.post(serviceUrl, this.httpOptions);
1669
+ }
1670
+ //Construye los headers y paramns
1671
+ generateRequestParams(param) {
1672
+ this.httpOptions = {
1673
+ header: new HttpHeaders(),
1674
+ params: param,
1675
+ };
1676
+ }
1677
+ }
1678
+ 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 });
1679
+ BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, providedIn: 'root' });
1680
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, decorators: [{
1681
+ type: Injectable,
1682
+ args: [{
1683
+ providedIn: 'root'
1684
+ }]
1685
1685
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1686
1686
 
1687
- class CoreModule {
1688
- }
1689
- CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1690
- CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule });
1691
- CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, providers: [
1692
- ParameterService,
1693
- CourseService,
1694
- StorageService,
1695
- UserService,
1696
- SwitchService,
1697
- RedirectGuard,
1698
- BaseService,
1699
- TestService,
1700
- MarketingService,
1701
- BudgetService
1702
- ] });
1703
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, decorators: [{
1704
- type: NgModule,
1705
- args: [{
1706
- providers: [
1707
- ParameterService,
1708
- CourseService,
1709
- StorageService,
1710
- UserService,
1711
- SwitchService,
1712
- RedirectGuard,
1713
- BaseService,
1714
- TestService,
1715
- MarketingService,
1716
- BudgetService
1717
- ]
1718
- }]
1687
+ class CoreModule {
1688
+ }
1689
+ CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1690
+ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule });
1691
+ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, providers: [
1692
+ ParameterService,
1693
+ CourseService,
1694
+ StorageService,
1695
+ UserService,
1696
+ SwitchService,
1697
+ RedirectGuard,
1698
+ BaseService,
1699
+ TestService,
1700
+ MarketingService,
1701
+ BudgetService
1702
+ ] });
1703
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, decorators: [{
1704
+ type: NgModule,
1705
+ args: [{
1706
+ providers: [
1707
+ ParameterService,
1708
+ CourseService,
1709
+ StorageService,
1710
+ UserService,
1711
+ SwitchService,
1712
+ RedirectGuard,
1713
+ BaseService,
1714
+ TestService,
1715
+ MarketingService,
1716
+ BudgetService
1717
+ ]
1718
+ }]
1719
1719
  }] });
1720
1720
 
1721
- class DesignSystemModule {
1722
- }
1723
- DesignSystemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1724
- DesignSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [ComponentsModule,
1725
- CoreModule,
1726
- CurrencyMaskModule], exports: [ComponentsModule,
1727
- CoreModule,
1728
- CurrencyMaskModule] });
1729
- DesignSystemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [[
1730
- ComponentsModule,
1731
- CoreModule,
1732
- CurrencyMaskModule
1733
- ], ComponentsModule,
1734
- CoreModule,
1735
- CurrencyMaskModule] });
1736
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, decorators: [{
1737
- type: NgModule,
1738
- args: [{
1739
- imports: [
1740
- ComponentsModule,
1741
- CoreModule,
1742
- CurrencyMaskModule
1743
- ],
1744
- exports: [
1745
- ComponentsModule,
1746
- CoreModule,
1747
- CurrencyMaskModule
1748
- ]
1749
- }]
1721
+ class DesignSystemModule {
1722
+ }
1723
+ DesignSystemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1724
+ DesignSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [ComponentsModule,
1725
+ CoreModule,
1726
+ CurrencyMaskModule], exports: [ComponentsModule,
1727
+ CoreModule,
1728
+ CurrencyMaskModule] });
1729
+ DesignSystemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [[
1730
+ ComponentsModule,
1731
+ CoreModule,
1732
+ CurrencyMaskModule
1733
+ ], ComponentsModule,
1734
+ CoreModule,
1735
+ CurrencyMaskModule] });
1736
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, decorators: [{
1737
+ type: NgModule,
1738
+ args: [{
1739
+ imports: [
1740
+ ComponentsModule,
1741
+ CoreModule,
1742
+ CurrencyMaskModule
1743
+ ],
1744
+ exports: [
1745
+ ComponentsModule,
1746
+ CoreModule,
1747
+ CurrencyMaskModule
1748
+ ]
1749
+ }]
1750
1750
  }] });
1751
1751
 
1752
- class AttendanceService {
1753
- constructor(http) {
1754
- this.http = http;
1755
- }
1756
- }
1757
- 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 });
1758
- AttendanceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, providedIn: 'root' });
1759
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, decorators: [{
1760
- type: Injectable,
1761
- args: [{
1762
- providedIn: 'root'
1763
- }]
1752
+ class AttendanceService {
1753
+ constructor(http) {
1754
+ this.http = http;
1755
+ }
1756
+ }
1757
+ 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 });
1758
+ AttendanceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, providedIn: 'root' });
1759
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, decorators: [{
1760
+ type: Injectable,
1761
+ args: [{
1762
+ providedIn: 'root'
1763
+ }]
1764
1764
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1765
1765
 
1766
- class CalendarService {
1767
- constructor(http) {
1768
- this.http = http;
1769
- this.SERVICE_URL = 'http://localhost:8000/api/';
1770
- }
1771
- getEventByIdCalendar(idCalendar) {
1772
- let serviceUrl = this.SERVICE_URL + 'get/event/calendar/idcalendar/all/' + idCalendar;
1773
- return this.http.get(serviceUrl);
1774
- }
1775
- postEventByDayTime(params) {
1776
- let serviceUrl = this.SERVICE_URL + 'post/event/calendar/idcalendar/by/datetime';
1777
- this.generateRequestParams(params);
1778
- return this.http.post(serviceUrl, this.httpOptions);
1779
- }
1780
- generateRequestParams(param) {
1781
- this.httpOptions = {
1782
- header: new HttpHeaders(),
1783
- params: param,
1784
- };
1785
- }
1786
- }
1787
- 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 });
1788
- CalendarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, providedIn: 'root' });
1789
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, decorators: [{
1790
- type: Injectable,
1791
- args: [{
1792
- providedIn: 'root',
1793
- }]
1766
+ class CalendarService {
1767
+ constructor(http) {
1768
+ this.http = http;
1769
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/calendar/api/';
1770
+ }
1771
+ getEventByIdCalendar(idCalendar) {
1772
+ let serviceUrl = this.SERVICE_URL + 'get/event/calendar/idcalendar/all/' + idCalendar;
1773
+ return this.http.get(serviceUrl);
1774
+ }
1775
+ postEventByDayTime(params) {
1776
+ let serviceUrl = this.SERVICE_URL + 'post/event/calendar/idcalendar/by/datetime';
1777
+ this.generateRequestParams(params);
1778
+ return this.http.post(serviceUrl, this.httpOptions);
1779
+ }
1780
+ generateRequestParams(param) {
1781
+ this.httpOptions = {
1782
+ header: new HttpHeaders(),
1783
+ params: param,
1784
+ };
1785
+ }
1786
+ }
1787
+ 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 });
1788
+ CalendarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, providedIn: 'root' });
1789
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, decorators: [{
1790
+ type: Injectable,
1791
+ args: [{
1792
+ providedIn: 'root',
1793
+ }]
1794
1794
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1795
1795
 
1796
- class NotesService {
1797
- constructor(http) {
1798
- this.http = http;
1799
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
1800
- }
1801
- getNotesByGroup(params) {
1802
- let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/course';
1803
- this.generateRequestParams(params);
1804
- return this.http.post(serviceUrl, this.httpOptions);
1805
- }
1806
- getNotesByStudent(params) {
1807
- let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/student';
1808
- this.generateRequestParams(params);
1809
- return this.http.post(serviceUrl, this.httpOptions);
1810
- }
1811
- createNewNote(params) {
1812
- let serviceUrl = this.SERVICE_URL + 'post/create/note';
1813
- this.generateRequestParams(params);
1814
- return this.http.post(serviceUrl, this.httpOptions);
1815
- }
1816
- generateRequestParams(param) {
1817
- this.httpOptions = {
1818
- header: new HttpHeaders(),
1819
- params: param,
1820
- };
1821
- }
1822
- }
1823
- 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 });
1824
- NotesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, providedIn: 'root' });
1825
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, decorators: [{
1826
- type: Injectable,
1827
- args: [{
1828
- providedIn: 'root'
1829
- }]
1796
+ class NotesService {
1797
+ constructor(http) {
1798
+ this.http = http;
1799
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
1800
+ }
1801
+ getNotesByGroup(params) {
1802
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/course';
1803
+ this.generateRequestParams(params);
1804
+ return this.http.post(serviceUrl, this.httpOptions);
1805
+ }
1806
+ getNotesByStudent(params) {
1807
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/student';
1808
+ this.generateRequestParams(params);
1809
+ return this.http.post(serviceUrl, this.httpOptions);
1810
+ }
1811
+ createNewNote(params) {
1812
+ let serviceUrl = this.SERVICE_URL + 'post/create/note';
1813
+ this.generateRequestParams(params);
1814
+ return this.http.post(serviceUrl, this.httpOptions);
1815
+ }
1816
+ generateRequestParams(param) {
1817
+ this.httpOptions = {
1818
+ header: new HttpHeaders(),
1819
+ params: param,
1820
+ };
1821
+ }
1822
+ }
1823
+ 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 });
1824
+ NotesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, providedIn: 'root' });
1825
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, decorators: [{
1826
+ type: Injectable,
1827
+ args: [{
1828
+ providedIn: 'root'
1829
+ }]
1830
1830
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1831
1831
 
1832
- class StudentService {
1833
- constructor(http) {
1834
- this.http = http;
1835
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
1836
- }
1837
- getStudentsByCourse(params) {
1838
- let serviceUrl = this.SERVICE_URL + 'post/obtain/students/by/course';
1839
- this.generateRequestParams(params);
1840
- return this.http.post(serviceUrl, this.httpOptions);
1841
- }
1842
- generateRequestParams(param) {
1843
- this.httpOptions = {
1844
- header: new HttpHeaders(),
1845
- params: param,
1846
- };
1847
- }
1848
- }
1849
- 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 });
1850
- StudentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, providedIn: 'root' });
1851
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, decorators: [{
1852
- type: Injectable,
1853
- args: [{
1854
- providedIn: 'root'
1855
- }]
1832
+ class StudentService {
1833
+ constructor(http) {
1834
+ this.http = http;
1835
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
1836
+ }
1837
+ getStudentsByCourse(params) {
1838
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/students/by/course';
1839
+ this.generateRequestParams(params);
1840
+ return this.http.post(serviceUrl, this.httpOptions);
1841
+ }
1842
+ generateRequestParams(param) {
1843
+ this.httpOptions = {
1844
+ header: new HttpHeaders(),
1845
+ params: param,
1846
+ };
1847
+ }
1848
+ }
1849
+ 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 });
1850
+ StudentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, providedIn: 'root' });
1851
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, decorators: [{
1852
+ type: Injectable,
1853
+ args: [{
1854
+ providedIn: 'root'
1855
+ }]
1856
1856
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1857
1857
 
1858
- class Session {
1858
+ class Session {
1859
1859
  }
1860
1860
 
1861
- class UserRs {
1862
- }
1863
- class UserLoginRs {
1861
+ class UserRs {
1862
+ }
1863
+ class UserLoginRs {
1864
1864
  }
1865
1865
 
1866
- /*
1867
- * Public API Surface of design-system
1866
+ /*
1867
+ * Public API Surface of design-system
1868
1868
  */
1869
1869
 
1870
- /**
1871
- * Generated bundle index. Do not edit.
1870
+ /**
1871
+ * Generated bundle index. Do not edit.
1872
1872
  */
1873
1873
 
1874
1874
  export { AsideButtonComponent, AttendanceService, BaseService, BudgetService, ButtonComponent, CalendarService, CheckboxComponent, ComponentsModule, CoreModule, CourseService, DatalistComponent, DesignSystemModule, InputComponent, LevelButtonComponent, LevelTextComponent, LoginFormComponent, MarketingService, NotesService, ParameterService, RadioComponent, RedirectGuard, SelectComponent, Session, SidenavComponent, StorageService, StudentService, SwitchService, TestService, TextLinkComponent, UserLoginRs, UserRs, UserService };