iptdevs-design-system 2.5.3 → 2.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/README.md +24 -24
  2. package/esm2020/iptdevs-design-system.mjs +4 -4
  3. package/esm2020/lib/components/atoms/aside-button/aside-button.component.mjs +50 -50
  4. package/esm2020/lib/components/atoms/button/button.component.mjs +64 -64
  5. package/esm2020/lib/components/atoms/checkbox/checkbox.component.mjs +47 -47
  6. package/esm2020/lib/components/atoms/datalist/datalist.component.mjs +94 -94
  7. package/esm2020/lib/components/atoms/input/input.component.mjs +145 -145
  8. package/esm2020/lib/components/atoms/level-button/level-button.component.mjs +64 -64
  9. package/esm2020/lib/components/atoms/level-text/level-text.component.mjs +19 -19
  10. package/esm2020/lib/components/atoms/radio/radio.component.mjs +47 -47
  11. package/esm2020/lib/components/atoms/select/select.component.mjs +92 -92
  12. package/esm2020/lib/components/atoms/text-link/text-link.component.mjs +39 -39
  13. package/esm2020/lib/components/components.module.mjs +108 -108
  14. package/esm2020/lib/components/forms/login-form/login-form.component.mjs +93 -93
  15. package/esm2020/lib/components/material.module.mjs +18 -18
  16. package/esm2020/lib/components/molecules/sidenav/sidenav.component.mjs +146 -146
  17. package/esm2020/lib/core/core.module.mjs +46 -46
  18. package/esm2020/lib/core/models/activities/activities.interface.mjs +2 -2
  19. package/esm2020/lib/core/models/attendance/attendance.interface.mjs +2 -2
  20. package/esm2020/lib/core/models/budget/budget.model.mjs +2 -2
  21. package/esm2020/lib/core/models/calendar/calendar-rq.models.mjs +2 -2
  22. package/esm2020/lib/core/models/cod/cod-rq.model.mjs +2 -2
  23. package/esm2020/lib/core/models/course/course-rq.model.mjs +2 -2
  24. package/esm2020/lib/core/models/cronogram/cronogram.models.mjs +2 -2
  25. package/esm2020/lib/core/models/marketing/marketing.model.mjs +2 -2
  26. package/esm2020/lib/core/models/notes/notes.interface.mjs +2 -2
  27. package/esm2020/lib/core/models/response/response.interface.mjs +2 -2
  28. package/esm2020/lib/core/models/session/session.model.mjs +3 -3
  29. package/esm2020/lib/core/models/student/student.interface.mjs +2 -2
  30. package/esm2020/lib/core/models/table/table-rs.model.mjs +2 -2
  31. package/esm2020/lib/core/models/test/test.model.mjs +2 -2
  32. package/esm2020/lib/core/models/url/url.model.mjs +2 -2
  33. package/esm2020/lib/core/models/user/user-rq.model.mjs +2 -2
  34. package/esm2020/lib/core/models/user/user-rs.model.mjs +5 -5
  35. package/esm2020/lib/core/services/attendance-service/attendance.service.mjs +17 -17
  36. package/esm2020/lib/core/services/budget-service/budget-service.mjs +41 -41
  37. package/esm2020/lib/core/services/calendar-service/calendar.service.mjs +34 -34
  38. package/esm2020/lib/core/services/course-service/course-service.model.mjs +75 -75
  39. package/esm2020/lib/core/services/marketing-service/marketing-service.mjs +57 -57
  40. package/esm2020/lib/core/services/notes-service/notes.service.mjs +40 -40
  41. package/esm2020/lib/core/services/parameters-service/parameters.service.mjs +114 -114
  42. package/esm2020/lib/core/services/storage-service/storage-service.mjs +50 -50
  43. package/esm2020/lib/core/services/student-service/student.service.mjs +30 -30
  44. package/esm2020/lib/core/services/switch-service/switch.service.mjs +16 -16
  45. package/esm2020/lib/core/services/test-service/test.service.mjs +136 -136
  46. package/esm2020/lib/core/services/user-service/user-service.mjs +84 -84
  47. package/esm2020/lib/core/utils/base-service/base.service.mjs +153 -153
  48. package/esm2020/lib/core/utils/route-service/route.service.mjs +18 -18
  49. package/esm2020/lib/design-system.module.mjs +36 -36
  50. package/esm2020/public-api.mjs +56 -56
  51. package/fesm2015/iptdevs-design-system.mjs +1785 -1785
  52. package/fesm2015/iptdevs-design-system.mjs.map +1 -1
  53. package/fesm2020/iptdevs-design-system.mjs +1782 -1782
  54. package/fesm2020/iptdevs-design-system.mjs.map +1 -1
  55. package/iptdevs-design-system.d.ts +5 -5
  56. package/lib/components/atoms/aside-button/aside-button.component.d.ts +11 -11
  57. package/lib/components/atoms/button/button.component.d.ts +13 -13
  58. package/lib/components/atoms/checkbox/checkbox.component.d.ts +11 -11
  59. package/lib/components/atoms/datalist/datalist.component.d.ts +20 -20
  60. package/lib/components/atoms/input/input.component.d.ts +26 -26
  61. package/lib/components/atoms/level-button/level-button.component.d.ts +11 -11
  62. package/lib/components/atoms/level-text/level-text.component.d.ts +7 -7
  63. package/lib/components/atoms/radio/radio.component.d.ts +11 -11
  64. package/lib/components/atoms/select/select.component.d.ts +24 -24
  65. package/lib/components/atoms/text-link/text-link.component.d.ts +12 -12
  66. package/lib/components/components.module.d.ts +22 -22
  67. package/lib/components/forms/login-form/login-form.component.d.ts +13 -13
  68. package/lib/components/material.module.d.ts +10 -10
  69. package/lib/components/molecules/sidenav/sidenav.component.d.ts +22 -22
  70. package/lib/core/core.module.d.ts +6 -6
  71. package/lib/core/models/activities/activities.interface.d.ts +6 -6
  72. package/lib/core/models/attendance/attendance.interface.d.ts +44 -44
  73. package/lib/core/models/budget/budget.model.d.ts +69 -69
  74. package/lib/core/models/calendar/calendar-rq.models.d.ts +27 -27
  75. package/lib/core/models/cod/cod-rq.model.d.ts +51 -51
  76. package/lib/core/models/course/course-rq.model.d.ts +86 -86
  77. package/lib/core/models/cronogram/cronogram.models.d.ts +71 -71
  78. package/lib/core/models/marketing/marketing.model.d.ts +104 -104
  79. package/lib/core/models/notes/notes.interface.d.ts +61 -61
  80. package/lib/core/models/response/response.interface.d.ts +10 -10
  81. package/lib/core/models/session/session.model.d.ts +5 -5
  82. package/lib/core/models/student/student.interface.d.ts +4 -4
  83. package/lib/core/models/table/table-rs.model.d.ts +7 -7
  84. package/lib/core/models/test/test.model.d.ts +219 -219
  85. package/lib/core/models/url/url.model.d.ts +8 -8
  86. package/lib/core/models/user/user-rq.model.d.ts +91 -91
  87. package/lib/core/models/user/user-rs.model.d.ts +35 -35
  88. package/lib/core/services/attendance-service/attendance.service.d.ts +8 -8
  89. package/lib/core/services/budget-service/budget-service.d.ts +16 -16
  90. package/lib/core/services/calendar-service/calendar.service.d.ts +15 -15
  91. package/lib/core/services/course-service/course-service.model.d.ts +24 -24
  92. package/lib/core/services/marketing-service/marketing-service.d.ts +20 -20
  93. package/lib/core/services/notes-service/notes.service.d.ts +17 -17
  94. package/lib/core/services/parameters-service/parameters.service.d.ts +34 -34
  95. package/lib/core/services/storage-service/storage-service.d.ts +18 -18
  96. package/lib/core/services/student-service/student.service.d.ts +14 -14
  97. package/lib/core/services/switch-service/switch.service.d.ts +8 -8
  98. package/lib/core/services/test-service/test.service.d.ts +35 -35
  99. package/lib/core/services/user-service/user-service.d.ts +26 -26
  100. package/lib/core/utils/base-service/base.service.d.ts +18 -18
  101. package/lib/core/utils/route-service/route.service.d.ts +9 -9
  102. package/lib/design-system.module.d.ts +9 -9
  103. package/package.json +1 -1
  104. package/public-api.d.ts +47 -47
@@ -18,1854 +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
- this.dateSelected = new EventEmitter();
272
- }
273
- set control(value) {
274
- if (this.formControl !== value) {
275
- this.formControl = value;
276
- }
277
- }
278
- ngOnInit() { }
279
- selectedDate(evt) {
280
- this.dateSelected.emit(evt);
281
- }
282
- click(value) {
283
- this.clicked = value.isTrusted;
284
- }
285
- }
286
- InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
287
- InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: InputComponent, selector: "ipt-input", inputs: { inputType: "inputType", placeHolder: "placeHolder", validateText: "validateText", withPipe: "withPipe", list: "list", iconUrl: "iconUrl", control: "control", prefix: "prefix", thousands: "thousands", decimal: "decimal" }, outputs: { dateSelected: "dateSelected" }, ngImport: i0, template: `
288
- <div class="input-container">
289
- <input *ngIf="inputType === 'date'"
290
- class="input"
291
- type="{{ inputType ? 'text' : 'date' }}"
292
- [formControl]="formControl"
293
- (ngModelChange)="selectedDate($event)"
294
- onfocus="this.type='date';"
295
- onblur="javascript: if( !this.value ) this.type='text';"
296
- uib-datepicker-popup="dd/MM/yyyy"
297
- ng-model="inputType"/>
298
-
299
- <input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
300
- class="input"
301
- type="{{ inputType }}"
302
- [formControl]="formControl"
303
- [attr.list]="list"/>
304
-
305
- <input *ngIf="inputType === 'text' && withPipe"
306
- class="input"
307
- currencyMask
308
- [options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
309
- type="{{ inputType }}"
310
- [formControl]="formControl"
311
- [attr.list]="list"/>
312
-
313
- <input *ngIf="inputType === 'time'"
314
- class="input"
315
- type="time"
316
- [formControl]="formControl"
317
- [min]="'06:00:00'"
318
- max="22:00:00"
319
- step="900"
320
- autocomplete="on"
321
- value="08:00:00"
322
- (click)="click($event)"
323
- />
324
-
325
- <label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
326
-
327
- <p *ngIf="(formControl.invalid && formControl.value !== '') || formControl.touched">
328
- {{ validateText }}
329
- </p>
330
- </div>
331
- `, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){p{color:#c73a3a;font-size:12px;padding-left:15px}}@media screen and (min-width: 768px){p{color:#c73a3a;font-size:13px;padding-left:15px}}@media screen and (min-width: 1024px){p{color:#c73a3a;font-size:13px;padding-left:15px}}.input-container{position:relative;margin-top:30px}input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.input:focus~label,.input:invalid~label{top:-20px;font-size:15px;color:#1c77f7}.labelUp{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.CurrencyMaskDirective, selector: "[currencyMask]", inputs: ["max", "min", "options"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
332
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, decorators: [{
333
- type: Component,
334
- args: [{ selector: 'ipt-input', template: `
335
- <div class="input-container">
336
- <input *ngIf="inputType === 'date'"
337
- class="input"
338
- type="{{ inputType ? 'text' : 'date' }}"
339
- [formControl]="formControl"
340
- (ngModelChange)="selectedDate($event)"
341
- onfocus="this.type='date';"
342
- onblur="javascript: if( !this.value ) this.type='text';"
343
- uib-datepicker-popup="dd/MM/yyyy"
344
- ng-model="inputType"/>
345
-
346
- <input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
347
- class="input"
348
- type="{{ inputType }}"
349
- [formControl]="formControl"
350
- [attr.list]="list"/>
351
-
352
- <input *ngIf="inputType === 'text' && withPipe"
353
- class="input"
354
- currencyMask
355
- [options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
356
- type="{{ inputType }}"
357
- [formControl]="formControl"
358
- [attr.list]="list"/>
359
-
360
- <input *ngIf="inputType === 'time'"
361
- class="input"
362
- type="time"
363
- [formControl]="formControl"
364
- [min]="'06:00:00'"
365
- max="22:00:00"
366
- step="900"
367
- autocomplete="on"
368
- value="08:00:00"
369
- (click)="click($event)"
370
- />
371
-
372
- <label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
373
-
374
- <p *ngIf="(formControl.invalid && formControl.value !== '') || formControl.touched">
375
- {{ validateText }}
376
- </p>
377
- </div>
378
- `, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){p{color:#c73a3a;font-size:12px;padding-left:15px}}@media screen and (min-width: 768px){p{color:#c73a3a;font-size:13px;padding-left:15px}}@media screen and (min-width: 1024px){p{color:#c73a3a;font-size:13px;padding-left:15px}}.input-container{position:relative;margin-top:30px}input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.input:focus~label,.input:invalid~label{top:-20px;font-size:15px;color:#1c77f7}.labelUp{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"] }]
379
- }], ctorParameters: function () { return []; }, propDecorators: { inputType: [{
380
- type: Input
381
- }], placeHolder: [{
382
- type: Input
383
- }], validateText: [{
384
- type: Input
385
- }], withPipe: [{
386
- type: Input
387
- }], list: [{
388
- type: Input
389
- }], iconUrl: [{
390
- type: Input
391
- }], control: [{
392
- type: Input
393
- }], prefix: [{
394
- type: Input
395
- }], thousands: [{
396
- type: Input
397
- }], decimal: [{
398
- type: Input
399
- }], dateSelected: [{
400
- type: Output
263
+ class InputComponent {
264
+ constructor() {
265
+ this.data = [];
266
+ this.clicked = false;
267
+ this.withPipe = false;
268
+ this.prefix = '$';
269
+ this.thousands = '.';
270
+ this.decimal = ',';
271
+ this.dateSelected = new EventEmitter();
272
+ }
273
+ set control(value) {
274
+ if (this.formControl !== value) {
275
+ this.formControl = value;
276
+ }
277
+ }
278
+ ngOnInit() { }
279
+ selectedDate(evt) {
280
+ this.dateSelected.emit(evt);
281
+ }
282
+ click(value) {
283
+ this.clicked = value.isTrusted;
284
+ }
285
+ }
286
+ InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
287
+ InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: InputComponent, selector: "ipt-input", inputs: { inputType: "inputType", placeHolder: "placeHolder", validateText: "validateText", withPipe: "withPipe", list: "list", iconUrl: "iconUrl", control: "control", prefix: "prefix", thousands: "thousands", decimal: "decimal" }, outputs: { dateSelected: "dateSelected" }, ngImport: i0, template: `
288
+ <div class="input-container">
289
+ <input *ngIf="inputType === 'date'"
290
+ class="input"
291
+ type="{{ inputType ? 'text' : 'date' }}"
292
+ [formControl]="formControl"
293
+ (ngModelChange)="selectedDate($event)"
294
+ onfocus="this.type='date';"
295
+ onblur="javascript: if( !this.value ) this.type='text';"
296
+ uib-datepicker-popup="dd/MM/yyyy"
297
+ ng-model="inputType"/>
298
+
299
+ <input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
300
+ class="input"
301
+ type="{{ inputType }}"
302
+ [formControl]="formControl"
303
+ [attr.list]="list"/>
304
+
305
+ <input *ngIf="inputType === 'text' && withPipe"
306
+ class="input"
307
+ currencyMask
308
+ [options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
309
+ type="{{ inputType }}"
310
+ [formControl]="formControl"
311
+ [attr.list]="list"/>
312
+
313
+ <input *ngIf="inputType === 'time'"
314
+ class="input"
315
+ type="time"
316
+ [formControl]="formControl"
317
+ [min]="'06:00:00'"
318
+ max="22:00:00"
319
+ step="900"
320
+ autocomplete="on"
321
+ value="08:00:00"
322
+ (click)="click($event)"
323
+ />
324
+
325
+ <label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
326
+
327
+ <p *ngIf="(formControl.invalid && formControl.value !== '') || formControl.touched">
328
+ {{ validateText }}
329
+ </p>
330
+ </div>
331
+ `, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){p{color:#c73a3a;font-size:12px;padding-left:15px}}@media screen and (min-width: 768px){p{color:#c73a3a;font-size:13px;padding-left:15px}}@media screen and (min-width: 1024px){p{color:#c73a3a;font-size:13px;padding-left:15px}}.input-container{position:relative;margin-top:30px}input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.input:focus~label,.input:invalid~label{top:-20px;font-size:15px;color:#1c77f7}.labelUp{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.CurrencyMaskDirective, selector: "[currencyMask]", inputs: ["max", "min", "options"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
332
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, decorators: [{
333
+ type: Component,
334
+ args: [{ selector: 'ipt-input', template: `
335
+ <div class="input-container">
336
+ <input *ngIf="inputType === 'date'"
337
+ class="input"
338
+ type="{{ inputType ? 'text' : 'date' }}"
339
+ [formControl]="formControl"
340
+ (ngModelChange)="selectedDate($event)"
341
+ onfocus="this.type='date';"
342
+ onblur="javascript: if( !this.value ) this.type='text';"
343
+ uib-datepicker-popup="dd/MM/yyyy"
344
+ ng-model="inputType"/>
345
+
346
+ <input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
347
+ class="input"
348
+ type="{{ inputType }}"
349
+ [formControl]="formControl"
350
+ [attr.list]="list"/>
351
+
352
+ <input *ngIf="inputType === 'text' && withPipe"
353
+ class="input"
354
+ currencyMask
355
+ [options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
356
+ type="{{ inputType }}"
357
+ [formControl]="formControl"
358
+ [attr.list]="list"/>
359
+
360
+ <input *ngIf="inputType === 'time'"
361
+ class="input"
362
+ type="time"
363
+ [formControl]="formControl"
364
+ [min]="'06:00:00'"
365
+ max="22:00:00"
366
+ step="900"
367
+ autocomplete="on"
368
+ value="08:00:00"
369
+ (click)="click($event)"
370
+ />
371
+
372
+ <label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
373
+
374
+ <p *ngIf="(formControl.invalid && formControl.value !== '') || formControl.touched">
375
+ {{ validateText }}
376
+ </p>
377
+ </div>
378
+ `, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){p{color:#c73a3a;font-size:12px;padding-left:15px}}@media screen and (min-width: 768px){p{color:#c73a3a;font-size:13px;padding-left:15px}}@media screen and (min-width: 1024px){p{color:#c73a3a;font-size:13px;padding-left:15px}}.input-container{position:relative;margin-top:30px}input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.input:focus~label,.input:invalid~label{top:-20px;font-size:15px;color:#1c77f7}.labelUp{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"] }]
379
+ }], ctorParameters: function () { return []; }, propDecorators: { inputType: [{
380
+ type: Input
381
+ }], placeHolder: [{
382
+ type: Input
383
+ }], validateText: [{
384
+ type: Input
385
+ }], withPipe: [{
386
+ type: Input
387
+ }], list: [{
388
+ type: Input
389
+ }], iconUrl: [{
390
+ type: Input
391
+ }], control: [{
392
+ type: Input
393
+ }], prefix: [{
394
+ type: Input
395
+ }], thousands: [{
396
+ type: Input
397
+ }], decimal: [{
398
+ type: Input
399
+ }], dateSelected: [{
400
+ type: Output
401
401
  }] } });
402
402
 
403
- class LevelButtonComponent {
404
- constructor() {
405
- this.isClicked = new EventEmitter();
406
- }
407
- clickAction() {
408
- this.isClicked.emit(true);
409
- }
410
- }
411
- LevelButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
412
- LevelButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LevelButtonComponent, selector: "ipt-level-button", inputs: { level: "level", buttonActive: "buttonActive", idColor: "idColor" }, outputs: { isClicked: "isClicked" }, ngImport: i0, template: `
413
- <div [ngSwitch]="buttonActive">
414
- <button
415
- *ngSwitchCase="0"
416
- (click)="clickAction()"
417
- id="level"
418
- class="courses"
419
- >
420
- <p class="p-level">{{ level }}</p>
421
- </button>
422
-
423
- <button
424
- *ngSwitchCase="1"
425
- (click)="clickAction()"
426
- id="{{ idColor }}"
427
- class="courses">
428
- <p class="p-level p-level-active">{{ level }}</p>
429
- </button>
430
- </div>
431
- `, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.courses{cursor:pointer;text-decoration:none;display:flex;border-radius:6px;width:100%;height:30px;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset;border:none;outline:none;align-items:center;background-color:transparent;color:#1c77f7}.p-level{display:flex;align-items:center;justify-content:center;font-weight:600;font-size:16px}#level-1{background-color:#02eed8}#level-2{background-color:#61acff}#level-3{background-color:#f168f4}#level-4{background-color:#ff3737}#level-5{background-color:#004dfa}#level-6{background-color:#14c25a}#level-7{background-color:#a052da}#level-8{background-color:#f2583d}#level-9{background-color:#291d26}#level-10{background-color:#1c77f7}.p-level-active{color:#fff}}@media (min-width: 375px){.courses{height:40px}.p-level{font-size:18px}}@media (min-width: 425px){.courses{height:30px}}@media (min-width: 768px){.courses{height:40px}}@media (min-width: 1024px){.courses{transition:.6s}.courses:active{transform:scale(1.05);box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.p-level{font-weight:700}}@media (min-width: 1440px){.p-level{font-weight:600}}\n"], directives: [{ type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
432
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelButtonComponent, decorators: [{
433
- type: Component,
434
- args: [{ selector: 'ipt-level-button', template: `
435
- <div [ngSwitch]="buttonActive">
436
- <button
437
- *ngSwitchCase="0"
438
- (click)="clickAction()"
439
- id="level"
440
- class="courses"
441
- >
442
- <p class="p-level">{{ level }}</p>
443
- </button>
444
-
445
- <button
446
- *ngSwitchCase="1"
447
- (click)="clickAction()"
448
- id="{{ idColor }}"
449
- class="courses">
450
- <p class="p-level p-level-active">{{ level }}</p>
451
- </button>
452
- </div>
453
- `, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.courses{cursor:pointer;text-decoration:none;display:flex;border-radius:6px;width:100%;height:30px;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset;border:none;outline:none;align-items:center;background-color:transparent;color:#1c77f7}.p-level{display:flex;align-items:center;justify-content:center;font-weight:600;font-size:16px}#level-1{background-color:#02eed8}#level-2{background-color:#61acff}#level-3{background-color:#f168f4}#level-4{background-color:#ff3737}#level-5{background-color:#004dfa}#level-6{background-color:#14c25a}#level-7{background-color:#a052da}#level-8{background-color:#f2583d}#level-9{background-color:#291d26}#level-10{background-color:#1c77f7}.p-level-active{color:#fff}}@media (min-width: 375px){.courses{height:40px}.p-level{font-size:18px}}@media (min-width: 425px){.courses{height:30px}}@media (min-width: 768px){.courses{height:40px}}@media (min-width: 1024px){.courses{transition:.6s}.courses:active{transform:scale(1.05);box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.p-level{font-weight:700}}@media (min-width: 1440px){.p-level{font-weight:600}}\n"] }]
454
- }], propDecorators: { level: [{
455
- type: Input
456
- }], buttonActive: [{
457
- type: Input
458
- }], idColor: [{
459
- type: Input
460
- }], isClicked: [{
461
- type: Output
403
+ class LevelButtonComponent {
404
+ constructor() {
405
+ this.isClicked = new EventEmitter();
406
+ }
407
+ clickAction() {
408
+ this.isClicked.emit(true);
409
+ }
410
+ }
411
+ LevelButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
412
+ LevelButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LevelButtonComponent, selector: "ipt-level-button", inputs: { level: "level", buttonActive: "buttonActive", idColor: "idColor" }, outputs: { isClicked: "isClicked" }, ngImport: i0, template: `
413
+ <div [ngSwitch]="buttonActive">
414
+ <button
415
+ *ngSwitchCase="0"
416
+ (click)="clickAction()"
417
+ id="level"
418
+ class="courses"
419
+ >
420
+ <p class="p-level">{{ level }}</p>
421
+ </button>
422
+
423
+ <button
424
+ *ngSwitchCase="1"
425
+ (click)="clickAction()"
426
+ id="{{ idColor }}"
427
+ class="courses">
428
+ <p class="p-level p-level-active">{{ level }}</p>
429
+ </button>
430
+ </div>
431
+ `, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.courses{cursor:pointer;text-decoration:none;display:flex;border-radius:6px;width:100%;height:30px;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset;border:none;outline:none;align-items:center;background-color:transparent;color:#1c77f7}.p-level{display:flex;align-items:center;justify-content:center;font-weight:600;font-size:16px}#level-1{background-color:#02eed8}#level-2{background-color:#61acff}#level-3{background-color:#f168f4}#level-4{background-color:#ff3737}#level-5{background-color:#004dfa}#level-6{background-color:#14c25a}#level-7{background-color:#a052da}#level-8{background-color:#f2583d}#level-9{background-color:#291d26}#level-10{background-color:#1c77f7}.p-level-active{color:#fff}}@media (min-width: 375px){.courses{height:40px}.p-level{font-size:18px}}@media (min-width: 425px){.courses{height:30px}}@media (min-width: 768px){.courses{height:40px}}@media (min-width: 1024px){.courses{transition:.6s}.courses:active{transform:scale(1.05);box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.p-level{font-weight:700}}@media (min-width: 1440px){.p-level{font-weight:600}}\n"], directives: [{ type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
432
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelButtonComponent, decorators: [{
433
+ type: Component,
434
+ args: [{ selector: 'ipt-level-button', template: `
435
+ <div [ngSwitch]="buttonActive">
436
+ <button
437
+ *ngSwitchCase="0"
438
+ (click)="clickAction()"
439
+ id="level"
440
+ class="courses"
441
+ >
442
+ <p class="p-level">{{ level }}</p>
443
+ </button>
444
+
445
+ <button
446
+ *ngSwitchCase="1"
447
+ (click)="clickAction()"
448
+ id="{{ idColor }}"
449
+ class="courses">
450
+ <p class="p-level p-level-active">{{ level }}</p>
451
+ </button>
452
+ </div>
453
+ `, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.courses{cursor:pointer;text-decoration:none;display:flex;border-radius:6px;width:100%;height:30px;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset;border:none;outline:none;align-items:center;background-color:transparent;color:#1c77f7}.p-level{display:flex;align-items:center;justify-content:center;font-weight:600;font-size:16px}#level-1{background-color:#02eed8}#level-2{background-color:#61acff}#level-3{background-color:#f168f4}#level-4{background-color:#ff3737}#level-5{background-color:#004dfa}#level-6{background-color:#14c25a}#level-7{background-color:#a052da}#level-8{background-color:#f2583d}#level-9{background-color:#291d26}#level-10{background-color:#1c77f7}.p-level-active{color:#fff}}@media (min-width: 375px){.courses{height:40px}.p-level{font-size:18px}}@media (min-width: 425px){.courses{height:30px}}@media (min-width: 768px){.courses{height:40px}}@media (min-width: 1024px){.courses{transition:.6s}.courses:active{transform:scale(1.05);box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.p-level{font-weight:700}}@media (min-width: 1440px){.p-level{font-weight:600}}\n"] }]
454
+ }], propDecorators: { level: [{
455
+ type: Input
456
+ }], buttonActive: [{
457
+ type: Input
458
+ }], idColor: [{
459
+ type: Input
460
+ }], isClicked: [{
461
+ type: Output
462
462
  }] } });
463
463
 
464
- class LevelTextComponent {
465
- }
466
- LevelTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
467
- LevelTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LevelTextComponent, selector: "ipt-level-button", inputs: { level: "level", total: "total" }, ngImport: i0, template: `
468
- <p class="p-table-course">{{ level }}: {{ total }}</p>
469
- `, isInline: true, styles: ["@media (min-width: 320px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 375px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 425px){.p-table-course{font-size:18px}}@media (min-width: 1024px){.p-table-course{font-size:20px}}\n"] });
470
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelTextComponent, decorators: [{
471
- type: Component,
472
- args: [{ selector: 'ipt-level-button', template: `
473
- <p class="p-table-course">{{ level }}: {{ total }}</p>
474
- `, styles: ["@media (min-width: 320px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 375px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 425px){.p-table-course{font-size:18px}}@media (min-width: 1024px){.p-table-course{font-size:20px}}\n"] }]
475
- }], propDecorators: { level: [{
476
- type: Input
477
- }], total: [{
478
- type: Input
464
+ class LevelTextComponent {
465
+ }
466
+ LevelTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
467
+ LevelTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LevelTextComponent, selector: "ipt-level-button", inputs: { level: "level", total: "total" }, ngImport: i0, template: `
468
+ <p class="p-table-course">{{ level }}: {{ total }}</p>
469
+ `, isInline: true, styles: ["@media (min-width: 320px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 375px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 425px){.p-table-course{font-size:18px}}@media (min-width: 1024px){.p-table-course{font-size:20px}}\n"] });
470
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelTextComponent, decorators: [{
471
+ type: Component,
472
+ args: [{ selector: 'ipt-level-button', template: `
473
+ <p class="p-table-course">{{ level }}: {{ total }}</p>
474
+ `, styles: ["@media (min-width: 320px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 375px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 425px){.p-table-course{font-size:18px}}@media (min-width: 1024px){.p-table-course{font-size:20px}}\n"] }]
475
+ }], propDecorators: { level: [{
476
+ type: Input
477
+ }], total: [{
478
+ type: Input
479
479
  }] } });
480
480
 
481
- class RadioComponent {
482
- constructor() {
483
- this.radioOption = false;
484
- this.onSelected = new EventEmitter();
485
- }
486
- set control(value) {
487
- if (this.formControl !== value) {
488
- this.formControl = value;
489
- }
490
- }
491
- }
492
- RadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
493
- RadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: RadioComponent, selector: "ipt-radio", inputs: { radioOption: "radioOption", control: "control" }, outputs: { onSelected: "onSelected" }, ngImport: i0, template: `
494
- <label class="cont">
495
- <input
496
- class="radio"
497
- [formControl]="formControl"
498
- [checked]="radioOption"
499
- (click)="onSelected.emit($event)"
500
- type="radio">
501
- <span></span>
502
- </label>
503
- `, isInline: true, styles: [""], directives: [{ type: i1$1.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
504
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, decorators: [{
505
- type: Component,
506
- args: [{ selector: 'ipt-radio', template: `
507
- <label class="cont">
508
- <input
509
- class="radio"
510
- [formControl]="formControl"
511
- [checked]="radioOption"
512
- (click)="onSelected.emit($event)"
513
- type="radio">
514
- <span></span>
515
- </label>
516
- `, styles: [""] }]
517
- }], propDecorators: { radioOption: [{
518
- type: Input
519
- }], control: [{
520
- type: Input
521
- }], onSelected: [{
522
- type: Output
481
+ class RadioComponent {
482
+ constructor() {
483
+ this.radioOption = false;
484
+ this.onSelected = new EventEmitter();
485
+ }
486
+ set control(value) {
487
+ if (this.formControl !== value) {
488
+ this.formControl = value;
489
+ }
490
+ }
491
+ }
492
+ RadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
493
+ RadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: RadioComponent, selector: "ipt-radio", inputs: { radioOption: "radioOption", control: "control" }, outputs: { onSelected: "onSelected" }, ngImport: i0, template: `
494
+ <label class="cont">
495
+ <input
496
+ class="radio"
497
+ [formControl]="formControl"
498
+ [checked]="radioOption"
499
+ (click)="onSelected.emit($event)"
500
+ type="radio">
501
+ <span></span>
502
+ </label>
503
+ `, isInline: true, styles: [""], directives: [{ type: i1$1.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
504
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, decorators: [{
505
+ type: Component,
506
+ args: [{ selector: 'ipt-radio', template: `
507
+ <label class="cont">
508
+ <input
509
+ class="radio"
510
+ [formControl]="formControl"
511
+ [checked]="radioOption"
512
+ (click)="onSelected.emit($event)"
513
+ type="radio">
514
+ <span></span>
515
+ </label>
516
+ `, styles: [""] }]
517
+ }], propDecorators: { radioOption: [{
518
+ type: Input
519
+ }], control: [{
520
+ type: Input
521
+ }], onSelected: [{
522
+ type: Output
523
523
  }] } });
524
524
 
525
- class SelectComponent {
526
- constructor() {
527
- this.boxShadow = 0;
528
- this.clicked = false;
529
- this.disabledSel = false;
530
- this.eventSelect = new EventEmitter();
531
- }
532
- // type viene de otro componente -> indica de que tipo es el arreglo si pregrade, posgrade o modo
533
- set control(value) {
534
- if (this.formControl !== value) {
535
- this.formControl = value;
536
- }
537
- }
538
- ngOnChanges(changes) {
539
- if (changes['data']) {
540
- this.binding = this.defaultText;
541
- }
542
- }
543
- seleccionar(evt) {
544
- if (this.eventSelect.emit(evt) !== this.defaultText) {
545
- this.boxShadow = 1;
546
- }
547
- else {
548
- this.boxShadow = 2;
549
- }
550
- }
551
- click(value) {
552
- this.clicked = value.isTrusted;
553
- }
554
- ngOnInit() {
555
- this.binding = this.defaultText;
556
- }
557
- get textClass() {
558
- return this.defaultText === '' ? 'selected' : 'select';
559
- }
560
- get labelClass() {
561
- return this.clicked === false ? 'label' : 'labelUp';
562
- }
563
- }
564
- SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
565
- SelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: SelectComponent, selector: "ipt-select", inputs: { isRequired: "isRequired", data: "data", defaultText: "defaultText", selectCode: "selectCode", disabledSel: "disabledSel", control: "control" }, outputs: { eventSelect: "eventSelect" }, usesOnChanges: true, ngImport: i0, template: `
566
- <div class="select-container">
567
- <label [ngClass]="labelClass">{{ defaultText }}</label>
568
- <select
569
- [(ngModel)]="binding"
570
- (ngModelChange)="seleccionar($event)"
571
- (click)="click($event)"
572
- [ngClass]="textClass"
573
- [disabled]="disabledSel">
574
- <option *ngFor="let item of data; index as i" [value]="item.code">
575
- {{ item.name }} {{ item.prefix }}
576
- </option>
577
- </select>
578
- </div>
579
- `, isInline: true, styles: ["*{font-family:Poppins,sans-serif}.select-container{position:relative;margin-top:30px}.select{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}.selected{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;transition:.5s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;background-color:#fff;padding-left:10px}select:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.select:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}.label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.labelUp{color:#1c77f7;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
580
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, decorators: [{
581
- type: Component,
582
- args: [{ selector: 'ipt-select', template: `
583
- <div class="select-container">
584
- <label [ngClass]="labelClass">{{ defaultText }}</label>
585
- <select
586
- [(ngModel)]="binding"
587
- (ngModelChange)="seleccionar($event)"
588
- (click)="click($event)"
589
- [ngClass]="textClass"
590
- [disabled]="disabledSel">
591
- <option *ngFor="let item of data; index as i" [value]="item.code">
592
- {{ item.name }} {{ item.prefix }}
593
- </option>
594
- </select>
595
- </div>
596
- `, styles: ["*{font-family:Poppins,sans-serif}.select-container{position:relative;margin-top:30px}.select{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}.selected{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;transition:.5s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;background-color:#fff;padding-left:10px}select:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.select:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}.label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.labelUp{color:#1c77f7;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"] }]
597
- }], propDecorators: { isRequired: [{
598
- type: Input
599
- }], data: [{
600
- type: Input
601
- }], defaultText: [{
602
- type: Input
603
- }], selectCode: [{
604
- type: Input
605
- }], disabledSel: [{
606
- type: Input
607
- }], eventSelect: [{
608
- type: Output
609
- }], control: [{
610
- type: Input
525
+ class SelectComponent {
526
+ constructor() {
527
+ this.boxShadow = 0;
528
+ this.clicked = false;
529
+ this.disabledSel = false;
530
+ this.eventSelect = new EventEmitter();
531
+ }
532
+ // type viene de otro componente -> indica de que tipo es el arreglo si pregrade, posgrade o modo
533
+ set control(value) {
534
+ if (this.formControl !== value) {
535
+ this.formControl = value;
536
+ }
537
+ }
538
+ ngOnChanges(changes) {
539
+ if (changes['data']) {
540
+ this.binding = this.defaultText;
541
+ }
542
+ }
543
+ seleccionar(evt) {
544
+ if (this.eventSelect.emit(evt) !== this.defaultText) {
545
+ this.boxShadow = 1;
546
+ }
547
+ else {
548
+ this.boxShadow = 2;
549
+ }
550
+ }
551
+ click(value) {
552
+ this.clicked = value.isTrusted;
553
+ }
554
+ ngOnInit() {
555
+ this.binding = this.defaultText;
556
+ }
557
+ get textClass() {
558
+ return this.defaultText === '' ? 'selected' : 'select';
559
+ }
560
+ get labelClass() {
561
+ return this.clicked === false ? 'label' : 'labelUp';
562
+ }
563
+ }
564
+ SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
565
+ SelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: SelectComponent, selector: "ipt-select", inputs: { isRequired: "isRequired", data: "data", defaultText: "defaultText", selectCode: "selectCode", disabledSel: "disabledSel", control: "control" }, outputs: { eventSelect: "eventSelect" }, usesOnChanges: true, ngImport: i0, template: `
566
+ <div class="select-container">
567
+ <label [ngClass]="labelClass">{{ defaultText }}</label>
568
+ <select
569
+ [(ngModel)]="binding"
570
+ (ngModelChange)="seleccionar($event)"
571
+ (click)="click($event)"
572
+ [ngClass]="textClass"
573
+ [disabled]="disabledSel">
574
+ <option *ngFor="let item of data; index as i" [value]="item.code">
575
+ {{ item.name }} {{ item.prefix }}
576
+ </option>
577
+ </select>
578
+ </div>
579
+ `, isInline: true, styles: ["*{font-family:Poppins,sans-serif}.select-container{position:relative;margin-top:30px}.select{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}.selected{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;transition:.5s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;background-color:#fff;padding-left:10px}select:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.select:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}.label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.labelUp{color:#1c77f7;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
580
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, decorators: [{
581
+ type: Component,
582
+ args: [{ selector: 'ipt-select', template: `
583
+ <div class="select-container">
584
+ <label [ngClass]="labelClass">{{ defaultText }}</label>
585
+ <select
586
+ [(ngModel)]="binding"
587
+ (ngModelChange)="seleccionar($event)"
588
+ (click)="click($event)"
589
+ [ngClass]="textClass"
590
+ [disabled]="disabledSel">
591
+ <option *ngFor="let item of data; index as i" [value]="item.code">
592
+ {{ item.name }} {{ item.prefix }}
593
+ </option>
594
+ </select>
595
+ </div>
596
+ `, styles: ["*{font-family:Poppins,sans-serif}.select-container{position:relative;margin-top:30px}.select{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}.selected{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;transition:.5s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;background-color:#fff;padding-left:10px}select:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.select:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}.label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.labelUp{color:#1c77f7;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"] }]
597
+ }], propDecorators: { isRequired: [{
598
+ type: Input
599
+ }], data: [{
600
+ type: Input
601
+ }], defaultText: [{
602
+ type: Input
603
+ }], selectCode: [{
604
+ type: Input
605
+ }], disabledSel: [{
606
+ type: Input
607
+ }], eventSelect: [{
608
+ type: Output
609
+ }], control: [{
610
+ type: Input
611
611
  }] } });
612
612
 
613
- class TextLinkComponent {
614
- constructor() {
615
- this.isClicked = new EventEmitter();
616
- }
617
- isLinkClicked() {
618
- this.isClicked.emit(true);
619
- }
620
- }
621
- TextLinkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
622
- TextLinkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: TextLinkComponent, selector: "ipt-text-link", inputs: { text: "text", blank: "blank", icon: "icon" }, outputs: { isClicked: "isClicked" }, ngImport: i0, template: `
623
- <a class="text-link" (click)='isLinkClicked()'>
624
- <p class="text-link__paragraph">
625
- <i class="{{icon}}" aria-hidden="true"></i>
626
- {{text}}
627
- </p>
628
- </a>
629
- `, isInline: true, styles: [".text-link{font-family:Poppins,sans-serif;font-size:1.1rem;color:gray;display:flex;flex-direction:row}.text-link__image{height:1rem;background-position:center;fill:#0ff;-webkit-print-color-adjust:aqua;color-adjust:aqua}.text-link__paragraph{margin:0;text-align:end}a:hover,a:focus,.text-link:hover,.text-link:focus{color:#1c77f7;cursor:pointer}@media (max-width: 1200px){.text-link{font-size:.9rem;width:160px}}@media (max-width: 450px){.text-link{font-size:.9rem;width:150px}}\n"] });
630
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, decorators: [{
631
- type: Component,
632
- args: [{ selector: 'ipt-text-link', template: `
633
- <a class="text-link" (click)='isLinkClicked()'>
634
- <p class="text-link__paragraph">
635
- <i class="{{icon}}" aria-hidden="true"></i>
636
- {{text}}
637
- </p>
638
- </a>
639
- `, styles: [".text-link{font-family:Poppins,sans-serif;font-size:1.1rem;color:gray;display:flex;flex-direction:row}.text-link__image{height:1rem;background-position:center;fill:#0ff;-webkit-print-color-adjust:aqua;color-adjust:aqua}.text-link__paragraph{margin:0;text-align:end}a:hover,a:focus,.text-link:hover,.text-link:focus{color:#1c77f7;cursor:pointer}@media (max-width: 1200px){.text-link{font-size:.9rem;width:160px}}@media (max-width: 450px){.text-link{font-size:.9rem;width:150px}}\n"] }]
640
- }], ctorParameters: function () { return []; }, propDecorators: { text: [{
641
- type: Input
642
- }], blank: [{
643
- type: Input
644
- }], icon: [{
645
- type: Input
646
- }], isClicked: [{
647
- type: Output
613
+ class TextLinkComponent {
614
+ constructor() {
615
+ this.isClicked = new EventEmitter();
616
+ }
617
+ isLinkClicked() {
618
+ this.isClicked.emit(true);
619
+ }
620
+ }
621
+ TextLinkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
622
+ TextLinkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: TextLinkComponent, selector: "ipt-text-link", inputs: { text: "text", blank: "blank", icon: "icon" }, outputs: { isClicked: "isClicked" }, ngImport: i0, template: `
623
+ <a class="text-link" (click)='isLinkClicked()'>
624
+ <p class="text-link__paragraph">
625
+ <i class="{{icon}}" aria-hidden="true"></i>
626
+ {{text}}
627
+ </p>
628
+ </a>
629
+ `, isInline: true, styles: [".text-link{font-family:Poppins,sans-serif;font-size:1.1rem;color:gray;display:flex;flex-direction:row}.text-link__image{height:1rem;background-position:center;fill:#0ff;-webkit-print-color-adjust:aqua;color-adjust:aqua}.text-link__paragraph{margin:0;text-align:end}a:hover,a:focus,.text-link:hover,.text-link:focus{color:#1c77f7;cursor:pointer}@media (max-width: 1200px){.text-link{font-size:.9rem;width:160px}}@media (max-width: 450px){.text-link{font-size:.9rem;width:150px}}\n"] });
630
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, decorators: [{
631
+ type: Component,
632
+ args: [{ selector: 'ipt-text-link', template: `
633
+ <a class="text-link" (click)='isLinkClicked()'>
634
+ <p class="text-link__paragraph">
635
+ <i class="{{icon}}" aria-hidden="true"></i>
636
+ {{text}}
637
+ </p>
638
+ </a>
639
+ `, styles: [".text-link{font-family:Poppins,sans-serif;font-size:1.1rem;color:gray;display:flex;flex-direction:row}.text-link__image{height:1rem;background-position:center;fill:#0ff;-webkit-print-color-adjust:aqua;color-adjust:aqua}.text-link__paragraph{margin:0;text-align:end}a:hover,a:focus,.text-link:hover,.text-link:focus{color:#1c77f7;cursor:pointer}@media (max-width: 1200px){.text-link{font-size:.9rem;width:160px}}@media (max-width: 450px){.text-link{font-size:.9rem;width:150px}}\n"] }]
640
+ }], ctorParameters: function () { return []; }, propDecorators: { text: [{
641
+ type: Input
642
+ }], blank: [{
643
+ type: Input
644
+ }], icon: [{
645
+ type: Input
646
+ }], isClicked: [{
647
+ type: Output
648
648
  }] } });
649
649
 
650
- class UserService {
651
- constructor(http) {
652
- this.http = http;
653
- this.SERVICE_URL = 'https://iptdev.com.co/lab/users/api/';
654
- }
655
- login(userLogin) {
656
- let serviceUrl = this.SERVICE_URL + 'post/login';
657
- this.generateRequestParams(userLogin);
658
- return this.http.post(serviceUrl, this.httpOptions);
659
- }
660
- resetPassword(resetPassword) {
661
- let serviceUrl = this.SERVICE_URL + 'reset/password';
662
- this.generateRequestParams(resetPassword);
663
- return this.http.post(serviceUrl, this.httpOptions);
664
- }
665
- register(user) {
666
- let serviceUrl = this.SERVICE_URL + 'post/create/web';
667
- this.generateRequestParams(user);
668
- return this.http.post(serviceUrl, this.httpOptions);
669
- }
670
- registerIndex(register) {
671
- let serviceUrl = this.SERVICE_URL + 'post/create/marketing';
672
- this.generateRequestParams(register);
673
- return this.http.post(serviceUrl, this.httpOptions);
674
- }
675
- registerDashboard(user) {
676
- let serviceUrl = this.SERVICE_URL + 'post/create/dashboard';
677
- this.generateRequestParams(user);
678
- return this.http.post(serviceUrl, this.httpOptions);
679
- }
680
- getAvailableTeachers(token) {
681
- let serviceUrl = this.SERVICE_URL + 'post/obtain/teachers';
682
- this.generateRequestParams(token);
683
- return this.http.post(serviceUrl, this.httpOptions);
684
- }
685
- getAllAdvisor(userToken) {
686
- let serviceUrl = this.SERVICE_URL + 'post/obtain/all/user/commercial';
687
- this.generateRequestParams(userToken);
688
- return this.http.post(serviceUrl, this.httpOptions);
689
- }
690
- getByRoleUser(codeRole) {
691
- let serviceUrl = this.SERVICE_URL + 'get/obtain/by/role/user/' + codeRole;
692
- return this.http.get(serviceUrl);
693
- }
694
- getUserStatistics(userToken) {
695
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
696
- this.generateRequestParams(userToken);
697
- return this.http.post(serviceUrl, this.httpOptions);
698
- }
699
- getRoutesForRole(token) {
700
- let serviceUrl = this.SERVICE_URL + 'post/routes/role';
701
- this.generateRequestParams(token);
702
- return this.http.post(serviceUrl, this.httpOptions);
703
- }
704
- getStudents(token) {
705
- let serviceUrl = this.SERVICE_URL + 'post/obtain/students';
706
- this.generateRequestParams(token);
707
- return this.http.post(serviceUrl, this.httpOptions);
708
- }
709
- getStudent(token) {
710
- let serviceUrl = this.SERVICE_URL + 'post/obtain/student';
711
- this.generateRequestParams(token);
712
- return this.http.post(serviceUrl, this.httpOptions);
713
- }
714
- generateRequestParams(param) {
715
- this.httpOptions = {
716
- header: new HttpHeaders(),
717
- params: param,
718
- };
719
- }
720
- }
721
- UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
722
- UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, providedIn: 'root' });
723
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, decorators: [{
724
- type: Injectable,
725
- args: [{
726
- providedIn: 'root',
727
- }]
650
+ class UserService {
651
+ constructor(http) {
652
+ this.http = http;
653
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/users/api/';
654
+ }
655
+ login(userLogin) {
656
+ let serviceUrl = this.SERVICE_URL + 'post/login';
657
+ this.generateRequestParams(userLogin);
658
+ return this.http.post(serviceUrl, this.httpOptions);
659
+ }
660
+ resetPassword(resetPassword) {
661
+ let serviceUrl = this.SERVICE_URL + 'reset/password';
662
+ this.generateRequestParams(resetPassword);
663
+ return this.http.post(serviceUrl, this.httpOptions);
664
+ }
665
+ register(user) {
666
+ let serviceUrl = this.SERVICE_URL + 'post/create/web';
667
+ this.generateRequestParams(user);
668
+ return this.http.post(serviceUrl, this.httpOptions);
669
+ }
670
+ registerIndex(register) {
671
+ let serviceUrl = this.SERVICE_URL + 'post/create/marketing';
672
+ this.generateRequestParams(register);
673
+ return this.http.post(serviceUrl, this.httpOptions);
674
+ }
675
+ registerDashboard(user) {
676
+ let serviceUrl = this.SERVICE_URL + 'post/create/dashboard';
677
+ this.generateRequestParams(user);
678
+ return this.http.post(serviceUrl, this.httpOptions);
679
+ }
680
+ getAvailableTeachers(token) {
681
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/teachers';
682
+ this.generateRequestParams(token);
683
+ return this.http.post(serviceUrl, this.httpOptions);
684
+ }
685
+ getAllAdvisor(userToken) {
686
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/all/user/commercial';
687
+ this.generateRequestParams(userToken);
688
+ return this.http.post(serviceUrl, this.httpOptions);
689
+ }
690
+ getByRoleUser(codeRole) {
691
+ let serviceUrl = this.SERVICE_URL + 'get/obtain/by/role/user/' + codeRole;
692
+ return this.http.get(serviceUrl);
693
+ }
694
+ getUserStatistics(userToken) {
695
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
696
+ this.generateRequestParams(userToken);
697
+ return this.http.post(serviceUrl, this.httpOptions);
698
+ }
699
+ getRoutesForRole(token) {
700
+ let serviceUrl = this.SERVICE_URL + 'post/routes/role';
701
+ this.generateRequestParams(token);
702
+ return this.http.post(serviceUrl, this.httpOptions);
703
+ }
704
+ getStudents(token) {
705
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/students';
706
+ this.generateRequestParams(token);
707
+ return this.http.post(serviceUrl, this.httpOptions);
708
+ }
709
+ getStudent(token) {
710
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/student';
711
+ this.generateRequestParams(token);
712
+ return this.http.post(serviceUrl, this.httpOptions);
713
+ }
714
+ generateRequestParams(param) {
715
+ this.httpOptions = {
716
+ header: new HttpHeaders(),
717
+ params: param,
718
+ };
719
+ }
720
+ }
721
+ UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
722
+ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, providedIn: 'root' });
723
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, decorators: [{
724
+ type: Injectable,
725
+ args: [{
726
+ providedIn: 'root',
727
+ }]
728
728
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
729
729
 
730
- class StorageService {
731
- constructor() {
732
- this.currentSession = null;
733
- this.localStorageService = localStorage;
734
- this.currentSession = this.loadSessionData();
735
- }
736
- setCurrentSession(session) {
737
- this.currentSession = session;
738
- this.localStorageService.setItem('606a7d4e73650b75ebb06972e77d6cc4', JSON.stringify(session));
739
- }
740
- loadSessionData() {
741
- var sessionStr = this.localStorageService.getItem('606a7d4e73650b75ebb06972e77d6cc4');
742
- return (sessionStr) ? JSON.parse(sessionStr) : null;
743
- }
744
- getCurrentSession() {
745
- return this.currentSession;
746
- }
747
- removeCurrentSession() {
748
- this.localStorageService.removeItem('606a7d4e73650b75ebb06972e77d6cc4');
749
- this.currentSession = null;
750
- }
751
- getCurrentUser() {
752
- var session = this.getCurrentSession();
753
- return (session && session.user) ? session.user : null;
754
- }
755
- ;
756
- isAuthenticated() {
757
- return (this.getCurrentToken() != null) ? true : false;
758
- }
759
- ;
760
- getCurrentToken() {
761
- var session = this.getCurrentSession();
762
- return (session && session.token) ? session.token : null;
763
- }
764
- ;
765
- logout() {
766
- this.removeCurrentSession();
767
- }
768
- }
769
- StorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
770
- StorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, providedIn: 'root' });
771
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, decorators: [{
772
- type: Injectable,
773
- args: [{
774
- providedIn: 'root',
775
- }]
730
+ class StorageService {
731
+ constructor() {
732
+ this.currentSession = null;
733
+ this.localStorageService = localStorage;
734
+ this.currentSession = this.loadSessionData();
735
+ }
736
+ setCurrentSession(session) {
737
+ this.currentSession = session;
738
+ this.localStorageService.setItem('606a7d4e73650b75ebb06972e77d6cc4', JSON.stringify(session));
739
+ }
740
+ loadSessionData() {
741
+ var sessionStr = this.localStorageService.getItem('606a7d4e73650b75ebb06972e77d6cc4');
742
+ return (sessionStr) ? JSON.parse(sessionStr) : null;
743
+ }
744
+ getCurrentSession() {
745
+ return this.currentSession;
746
+ }
747
+ removeCurrentSession() {
748
+ this.localStorageService.removeItem('606a7d4e73650b75ebb06972e77d6cc4');
749
+ this.currentSession = null;
750
+ }
751
+ getCurrentUser() {
752
+ var session = this.getCurrentSession();
753
+ return (session && session.user) ? session.user : null;
754
+ }
755
+ ;
756
+ isAuthenticated() {
757
+ return (this.getCurrentToken() != null) ? true : false;
758
+ }
759
+ ;
760
+ getCurrentToken() {
761
+ var session = this.getCurrentSession();
762
+ return (session && session.token) ? session.token : null;
763
+ }
764
+ ;
765
+ logout() {
766
+ this.removeCurrentSession();
767
+ }
768
+ }
769
+ StorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
770
+ StorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, providedIn: 'root' });
771
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, decorators: [{
772
+ type: Injectable,
773
+ args: [{
774
+ providedIn: 'root',
775
+ }]
776
776
  }], ctorParameters: function () { return []; } });
777
777
 
778
- class BaseService {
779
- constructor(userService, storageService) {
780
- this.userService = userService;
781
- this.storageService = storageService;
782
- }
783
- webLogin(user, password) {
784
- let request = {
785
- user: user,
786
- password: password
787
- };
788
- let service = this.userService;
789
- let storage = this.storageService;
790
- return new Promise(function (resolve, reject) {
791
- service.login(request).subscribe(response => {
792
- switch (response.message.code) {
793
- case 1:
794
- Swal.fire({
795
- 'title': '<p style="font-family: Poppins"">Perfect!</p>',
796
- 'html': '<p style="font-family: Poppins"">Succesfull login</p>',
797
- 'icon': 'success',
798
- });
799
- const loginRegisterUser = {
800
- token: response.data.token,
801
- user: response.data,
802
- };
803
- storage.setCurrentSession(loginRegisterUser);
804
- resolve(true);
805
- break;
806
- case 2:
807
- Swal.fire({
808
- 'title': '<p style="font-family: Poppins"">Warning!</p>',
809
- 'html': '<p style="font-family: Poppins"">The data does not correspond to a user registered in our system, please review them.</p>',
810
- 'icon': 'warning',
811
- });
812
- resolve(false);
813
- break;
814
- case 3:
815
- Swal.fire({
816
- 'title': '<p style="font-family: Poppins"">Error!</p>',
817
- 'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
818
- 'icon': 'error',
819
- });
820
- resolve(false);
821
- break;
822
- default:
823
- Swal.fire({
824
- 'title': '<p style="font-family: Poppins"">Error!</p>',
825
- 'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
826
- 'icon': 'error',
827
- });
828
- resolve(false);
829
- break;
830
- }
831
- reject('Unhandled exception');
832
- });
833
- });
834
- }
835
- getUserRole() {
836
- 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
- }]
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
+ }]
924
924
  }], ctorParameters: function () { return [{ type: UserService }, { type: StorageService }]; } });
925
925
 
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
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
1010
1010
  }] } });
1011
1011
 
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
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
1147
1147
  }] } });
1148
1148
 
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
- }]
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
+ }]
1159
1159
  }] });
1160
1160
 
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
- }]
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
+ }]
1249
1249
  }] });
1250
1250
 
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
- }]
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
+ }]
1320
1320
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1321
1321
 
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
- }]
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
+ }]
1431
1431
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1432
1432
 
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
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
1446
1446
  }], ctorParameters: function () { return [{ type: i1$3.Router }]; } });
1447
1447
 
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
- }]
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
+ }]
1460
1460
  }], ctorParameters: function () { return []; } });
1461
1461
 
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
- }]
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
+ }]
1592
1592
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1593
1593
 
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
- }]
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
+ }]
1645
1645
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1646
1646
 
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
- }]
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
+ }]
1682
1682
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1683
1683
 
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
- }]
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
+ }]
1716
1716
  }] });
1717
1717
 
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
- }]
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
+ }]
1747
1747
  }] });
1748
1748
 
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
- }]
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
+ }]
1761
1761
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1762
1762
 
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
- }]
1763
+ class CalendarService {
1764
+ constructor(http) {
1765
+ this.http = http;
1766
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/calendar/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
+ }]
1791
1791
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1792
1792
 
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
- }]
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
+ }]
1827
1827
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1828
1828
 
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
- }]
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
+ }]
1853
1853
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1854
1854
 
1855
- class Session {
1855
+ class Session {
1856
1856
  }
1857
1857
 
1858
- class UserRs {
1859
- }
1860
- class UserLoginRs {
1858
+ class UserRs {
1859
+ }
1860
+ class UserLoginRs {
1861
1861
  }
1862
1862
 
1863
- /*
1864
- * Public API Surface of design-system
1863
+ /*
1864
+ * Public API Surface of design-system
1865
1865
  */
1866
1866
 
1867
- /**
1868
- * Generated bundle index. Do not edit.
1867
+ /**
1868
+ * Generated bundle index. Do not edit.
1869
1869
  */
1870
1870
 
1871
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 };