iptdevs-design-system 2.5.1 → 2.5.3

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