iptdevs-design-system 2.5.1 → 2.5.3

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