iptdevs-design-system 2.4.3 → 5.0.0

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 +137 -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 -0
  19. package/esm2020/lib/core/models/attendance/attendance.interface.mjs +2 -0
  20. package/esm2020/lib/core/models/budget/budget.model.mjs +2 -2
  21. package/esm2020/lib/core/models/calendar/calendar-rq.models.mjs +2 -0
  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 -0
  25. package/esm2020/lib/core/models/marketing/marketing.model.mjs +2 -2
  26. package/esm2020/lib/core/models/notes/notes.interface.mjs +2 -0
  27. package/esm2020/lib/core/models/response/response.interface.mjs +2 -0
  28. package/esm2020/lib/core/models/session/session.model.mjs +3 -3
  29. package/esm2020/lib/core/models/student/student.interface.mjs +2 -0
  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 -0
  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 -0
  38. package/esm2020/lib/core/services/course-service/course-service.model.mjs +75 -56
  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 -0
  41. package/esm2020/lib/core/services/parameters-service/parameters.service.mjs +110 -110
  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 -0
  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 -45
  51. package/fesm2015/iptdevs-design-system.mjs +1782 -1657
  52. package/fesm2015/iptdevs-design-system.mjs.map +1 -1
  53. package/fesm2020/iptdevs-design-system.mjs +1779 -1654
  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 +24 -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 -0
  72. package/lib/core/models/attendance/attendance.interface.d.ts +44 -0
  73. package/lib/core/models/budget/budget.model.d.ts +69 -69
  74. package/lib/core/models/calendar/calendar-rq.models.d.ts +27 -0
  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 -78
  77. package/lib/core/models/cronogram/cronogram.models.d.ts +71 -0
  78. package/lib/core/models/marketing/marketing.model.d.ts +104 -104
  79. package/lib/core/models/notes/notes.interface.d.ts +59 -0
  80. package/lib/core/models/response/response.interface.d.ts +10 -0
  81. package/lib/core/models/session/session.model.d.ts +5 -5
  82. package/lib/core/models/student/student.interface.d.ts +4 -0
  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 -72
  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 -0
  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 -0
  91. package/lib/core/services/course-service/course-service.model.d.ts +24 -19
  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 -0
  94. package/lib/core/services/parameters-service/parameters.service.d.ts +33 -33
  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 -0
  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 +3 -3
  104. package/public-api.d.ts +47 -36
@@ -18,1721 +18,1846 @@ 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
+ }
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
393
393
  }] } });
394
394
 
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
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
454
454
  }] } });
455
455
 
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
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
471
471
  }] } });
472
472
 
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
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
515
515
  }] } });
516
516
 
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
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
603
603
  }] } });
604
604
 
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
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
640
640
  }] } });
641
641
 
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
- }]
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
+ }]
720
720
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
721
721
 
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
- }]
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
+ }]
768
768
  }], ctorParameters: function () { return []; } });
769
769
 
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
- }]
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
+ }]
918
918
  }], ctorParameters: function () { return [{ type: UserService }, { type: StorageService }]; } });
919
919
 
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
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
1004
1004
  }] } });
1005
1005
 
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 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 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
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
1142
1142
  }] } });
1143
1143
 
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
- }]
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
+ }]
1154
1154
  }] });
1155
1155
 
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
- }]
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
+ }]
1244
1244
  }] });
1245
1245
 
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
- // construye los headers y params
1282
- generateRequestParams(param) {
1283
- this.httpOptions = {
1284
- header: new HttpHeaders(),
1285
- params: param,
1286
- };
1287
- }
1288
- }
1289
- 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 });
1290
- CourseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, providedIn: 'root' });
1291
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, decorators: [{
1292
- type: Injectable,
1293
- args: [{
1294
- providedIn: 'root',
1295
- }]
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
+ }]
1296
1315
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1297
1316
 
1298
- class ParameterService {
1299
- constructor(http) {
1300
- this.http = http;
1301
- this.SERVICE_URL = 'https://iptdev.com.co/lab/parameters/api/';
1302
- }
1303
- getIndicatives() {
1304
- let serviceUrl = this.SERVICE_URL + 'get/indicatives';
1305
- return this.http.get(serviceUrl);
1306
- }
1307
- getCardTypes(country) {
1308
- let serviceUrl = this.SERVICE_URL + 'get/id/card/type/country/' + country;
1309
- return this.http.get(serviceUrl);
1310
- }
1311
- getCountries() {
1312
- let serviceUrl = this.SERVICE_URL + 'get/countries';
1313
- return this.http.get(serviceUrl);
1314
- }
1315
- getStatesByCountry(country) {
1316
- let serviceUrl = this.SERVICE_URL + 'get/state/country/iso/' + country;
1317
- return this.http.get(serviceUrl);
1318
- }
1319
- getCitiesByState(state) {
1320
- let serviceUrl = this.SERVICE_URL + 'get/cities/state/' + state;
1321
- return this.http.get(serviceUrl);
1322
- }
1323
- getAllPlans() {
1324
- let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1325
- return this.http.get(serviceUrl);
1326
- }
1327
- getLevels() {
1328
- let serviceUrl = this.SERVICE_URL + 'get/english/levels';
1329
- return this.http.get(serviceUrl);
1330
- }
1331
- getAgreements() {
1332
- let serviceUrl = this.SERVICE_URL + 'get/all/agreement';
1333
- return this.http.get(serviceUrl);
1334
- }
1335
- getAgreementByCategory(typeCategory) {
1336
- let serviceUrl = this.SERVICE_URL + 'get/agreement/by/category/' + typeCategory;
1337
- return this.http.get(serviceUrl);
1338
- }
1339
- getAllClassrooms() {
1340
- let serviceUrl = this.SERVICE_URL + 'get/all/classroom';
1341
- return this.http.get(serviceUrl);
1342
- }
1343
- getCoursesTypes() {
1344
- let serviceUrl = this.SERVICE_URL + 'get/all/course/type';
1345
- return this.http.get(serviceUrl);
1346
- }
1347
- getCoursesTypesByPlan(typePlan) {
1348
- let serviceUrl = this.SERVICE_URL + 'get/course/by/plan/' + typePlan;
1349
- return this.http.get(serviceUrl);
1350
- }
1351
- getDegrees() {
1352
- let serviceUrl = this.SERVICE_URL + 'get/all/degrees';
1353
- return this.http.get(serviceUrl);
1354
- }
1355
- getProgramsByDegree(typeDegree) {
1356
- let serviceUrl = this.SERVICE_URL + 'get/programs/by/degree/' + typeDegree;
1357
- return this.http.get(serviceUrl);
1358
- }
1359
- getMarketingReasons() {
1360
- let serviceUrl = this.SERVICE_URL + 'get/all/mkt/reasons';
1361
- return this.http.get(serviceUrl);
1362
- }
1363
- getStudyReasons() {
1364
- let serviceUrl = this.SERVICE_URL + 'get/all/study/reasons';
1365
- return this.http.get(serviceUrl);
1366
- }
1367
- getAcademicUnits() {
1368
- let serviceUrl = this.SERVICE_URL + 'get/academic/units';
1369
- return this.http.get(serviceUrl);
1370
- }
1371
- getStatusContact() {
1372
- let serviceUrl = this.SERVICE_URL + 'get/contact/status/all';
1373
- return this.http.get(serviceUrl);
1374
- }
1375
- getTypePlan() {
1376
- let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1377
- return this.http.get(serviceUrl);
1378
- }
1379
- getTypePlanDiscount() {
1380
- let serviceUrl = this.SERVICE_URL + 'get/discount/all/plans';
1381
- return this.http.get(serviceUrl);
1382
- }
1383
- getContactedType() {
1384
- let serviceUrl = this.SERVICE_URL + 'get/contact/contacted/all';
1385
- return this.http.get(serviceUrl);
1386
- }
1387
- getStatusByCode(codeStatus) {
1388
- let serviceUrl = this.SERVICE_URL + 'get/contact/status/bycode/' + codeStatus;
1389
- return this.http.get(serviceUrl);
1390
- }
1391
- getAllTypeDiscount() {
1392
- let serviceUrl = this.SERVICE_URL + 'get/commercial/typediscounts/all';
1393
- return this.http.get(serviceUrl);
1394
- }
1395
- }
1396
- 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 });
1397
- ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, providedIn: 'root' });
1398
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, decorators: [{
1399
- type: Injectable,
1400
- args: [{
1401
- providedIn: 'root',
1402
- }]
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
+ }
1415
+ 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 });
1416
+ ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, providedIn: 'root' });
1417
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, decorators: [{
1418
+ type: Injectable,
1419
+ args: [{
1420
+ providedIn: 'root',
1421
+ }]
1403
1422
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1404
1423
 
1405
- class RedirectGuard {
1406
- constructor(router) {
1407
- this.router = router;
1408
- }
1409
- canActivate(route, state) {
1410
- window.location.href = route.data['externalUrl'];
1411
- return true;
1412
- }
1413
- }
1414
- 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 });
1415
- RedirectGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard });
1416
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard, decorators: [{
1417
- type: Injectable
1424
+ class RedirectGuard {
1425
+ constructor(router) {
1426
+ this.router = router;
1427
+ }
1428
+ canActivate(route, state) {
1429
+ window.location.href = route.data['externalUrl'];
1430
+ return true;
1431
+ }
1432
+ }
1433
+ 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 });
1434
+ RedirectGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard });
1435
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard, decorators: [{
1436
+ type: Injectable
1418
1437
  }], ctorParameters: function () { return [{ type: i1$3.Router }]; } });
1419
1438
 
1420
- class SwitchService {
1421
- constructor() {
1422
- this.$modal = new EventEmitter();
1423
- }
1424
- }
1425
- SwitchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1426
- SwitchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, providedIn: 'root' });
1427
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, decorators: [{
1428
- type: Injectable,
1429
- args: [{
1430
- providedIn: 'root'
1431
- }]
1439
+ class SwitchService {
1440
+ constructor() {
1441
+ this.$modal = new EventEmitter();
1442
+ }
1443
+ }
1444
+ SwitchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1445
+ SwitchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, providedIn: 'root' });
1446
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, decorators: [{
1447
+ type: Injectable,
1448
+ args: [{
1449
+ providedIn: 'root'
1450
+ }]
1432
1451
  }], ctorParameters: function () { return []; } });
1433
1452
 
1434
- class TestService {
1435
- constructor(http) {
1436
- this.http = http;
1437
- this.SERVICE_URL = 'https://iptdev.com.co/lab/test/api/';
1438
- }
1439
- // ---------------------- EXÁMENES ---------------------- //
1440
- createExam(exam) {
1441
- let serviceUrl = this.SERVICE_URL + 'post/exam';
1442
- this.generateRequestParams(exam);
1443
- return this.http.post(serviceUrl, this.httpOptions);
1444
- }
1445
- getAllExams(params) {
1446
- let serviceUrl = this.SERVICE_URL + 'post/all/exam';
1447
- this.generateRequestParams(params);
1448
- return this.http.post(serviceUrl, this.httpOptions);
1449
- }
1450
- updateExam(params) {
1451
- let serviceUrl = this.SERVICE_URL + 'update/exam';
1452
- this.generateRequestParams(params);
1453
- return this.http.put(serviceUrl, this.httpOptions);
1454
- }
1455
- updateExamStatus(params) {
1456
- let serviceUrl = this.SERVICE_URL + 'update/exam/status';
1457
- this.generateRequestParams(params);
1458
- return this.http.put(serviceUrl, this.httpOptions);
1459
- }
1460
- copyExam(params) {
1461
- let serviceUrl = this.SERVICE_URL + 'copy/exam';
1462
- this.generateRequestParams(params);
1463
- return this.http.put(serviceUrl, this.httpOptions);
1464
- }
1465
- getExamByCode(code) {
1466
- let serviceUrl = this.SERVICE_URL + 'get/exam/by/code/' + code;
1467
- return this.http.get(serviceUrl);
1468
- }
1469
- getExamByAuthor(code) {
1470
- let serviceUrl = this.SERVICE_URL + 'get/exams/by/author/' + code;
1471
- return this.http.get(serviceUrl);
1472
- }
1473
- // ---------------------- SECCIONES ---------------------- //
1474
- createSectionWithAll(params) {
1475
- let serviceUrl = this.SERVICE_URL + 'post/section/with/all';
1476
- this.generateRequestParams(params);
1477
- return this.http.post(serviceUrl, this.httpOptions);
1478
- }
1479
- createSection(params) {
1480
- let serviceUrl = this.SERVICE_URL + 'post/section';
1481
- this.generateRequestParams(params);
1482
- return this.http.post(serviceUrl, this.httpOptions);
1483
- }
1484
- getAllSections(params) {
1485
- let serviceUrl = this.SERVICE_URL + 'post/all/sections';
1486
- this.generateRequestParams(params);
1487
- return this.http.post(serviceUrl, this.httpOptions);
1488
- }
1489
- updateSection(params) {
1490
- let serviceUrl = this.SERVICE_URL + 'update/section';
1491
- this.generateRequestParams(params);
1492
- return this.http.put(serviceUrl, this.httpOptions);
1493
- }
1494
- updateSectionMedia(params) {
1495
- let serviceUrl = this.SERVICE_URL + 'post/section/media';
1496
- this.generateRequestParams(params);
1497
- return this.http.post(serviceUrl, this.httpOptions);
1498
- }
1499
- updateSectionState(params) {
1500
- let serviceUrl = this.SERVICE_URL + 'update/section/state';
1501
- this.generateRequestParams(params);
1502
- return this.http.put(serviceUrl, this.httpOptions);
1503
- }
1504
- getSectionsByExam(code) {
1505
- let serviceUrl = this.SERVICE_URL + 'get/sections/by/exam/' + code;
1506
- return this.http.get(serviceUrl);
1507
- }
1508
- // ---------------------- PREGUNTAS ---------------------- //
1509
- createQuestion(params) {
1510
- let serviceUrl = this.SERVICE_URL + 'post/question';
1511
- this.generateRequestParams(params);
1512
- return this.http.post(serviceUrl, this.httpOptions);
1513
- }
1514
- updateQuestion(params) {
1515
- let serviceUrl = this.SERVICE_URL + 'update/question';
1516
- this.generateRequestParams(params);
1517
- return this.http.put(serviceUrl, this.httpOptions);
1518
- }
1519
- getQuestionsBySections(params) {
1520
- let serviceUrl = this.SERVICE_URL + 'get/questions/by/sections';
1521
- this.generateRequestParams(params);
1522
- return this.http.post(serviceUrl, this.httpOptions);
1523
- }
1524
- getQuestionsBySection(params) {
1525
- let serviceUrl = this.SERVICE_URL + 'get/questions/by/section';
1526
- this.generateRequestParams(params);
1527
- return this.http.post(serviceUrl, this.httpOptions);
1528
- }
1529
- // ---------------------- RESPUESTAS ---------------------- //
1530
- createAnswer(params) {
1531
- let serviceUrl = this.SERVICE_URL + 'post/answer';
1532
- this.generateRequestParams(params);
1533
- return this.http.post(serviceUrl, this.httpOptions);
1534
- }
1535
- updateAnswer(params) {
1536
- let serviceUrl = this.SERVICE_URL + 'update/answer';
1537
- this.generateRequestParams(params);
1538
- return this.http.put(serviceUrl, this.httpOptions);
1539
- }
1540
- getAnswersByQuestion(code) {
1541
- let serviceUrl = this.SERVICE_URL + 'get/answers/by/question/' + code;
1542
- return this.http.get(serviceUrl, this.httpOptions);
1543
- }
1544
- updateQuestionState(params) {
1545
- let serviceUrl = this.SERVICE_URL + 'update/question/state';
1546
- this.generateRequestParams(params);
1547
- return this.http.put(serviceUrl, this.httpOptions);
1548
- }
1549
- // construye los headers y params
1550
- generateRequestParams(param) {
1551
- this.httpOptions = {
1552
- header: new HttpHeaders(),
1553
- params: param,
1554
- };
1555
- }
1556
- }
1557
- 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 });
1558
- TestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, providedIn: 'root' });
1559
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, decorators: [{
1560
- type: Injectable,
1561
- args: [{
1562
- providedIn: 'root',
1563
- }]
1453
+ class TestService {
1454
+ constructor(http) {
1455
+ this.http = http;
1456
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/test/api/';
1457
+ }
1458
+ // ---------------------- EXÁMENES ---------------------- //
1459
+ createExam(exam) {
1460
+ let serviceUrl = this.SERVICE_URL + 'post/exam';
1461
+ this.generateRequestParams(exam);
1462
+ return this.http.post(serviceUrl, this.httpOptions);
1463
+ }
1464
+ getAllExams(params) {
1465
+ let serviceUrl = this.SERVICE_URL + 'post/all/exam';
1466
+ this.generateRequestParams(params);
1467
+ return this.http.post(serviceUrl, this.httpOptions);
1468
+ }
1469
+ updateExam(params) {
1470
+ let serviceUrl = this.SERVICE_URL + 'update/exam';
1471
+ this.generateRequestParams(params);
1472
+ return this.http.put(serviceUrl, this.httpOptions);
1473
+ }
1474
+ updateExamStatus(params) {
1475
+ let serviceUrl = this.SERVICE_URL + 'update/exam/status';
1476
+ this.generateRequestParams(params);
1477
+ return this.http.put(serviceUrl, this.httpOptions);
1478
+ }
1479
+ copyExam(params) {
1480
+ let serviceUrl = this.SERVICE_URL + 'copy/exam';
1481
+ this.generateRequestParams(params);
1482
+ return this.http.put(serviceUrl, this.httpOptions);
1483
+ }
1484
+ getExamByCode(code) {
1485
+ let serviceUrl = this.SERVICE_URL + 'get/exam/by/code/' + code;
1486
+ return this.http.get(serviceUrl);
1487
+ }
1488
+ getExamByAuthor(code) {
1489
+ let serviceUrl = this.SERVICE_URL + 'get/exams/by/author/' + code;
1490
+ return this.http.get(serviceUrl);
1491
+ }
1492
+ // ---------------------- SECCIONES ---------------------- //
1493
+ createSectionWithAll(params) {
1494
+ let serviceUrl = this.SERVICE_URL + 'post/section/with/all';
1495
+ this.generateRequestParams(params);
1496
+ return this.http.post(serviceUrl, this.httpOptions);
1497
+ }
1498
+ createSection(params) {
1499
+ let serviceUrl = this.SERVICE_URL + 'post/section';
1500
+ this.generateRequestParams(params);
1501
+ return this.http.post(serviceUrl, this.httpOptions);
1502
+ }
1503
+ getAllSections(params) {
1504
+ let serviceUrl = this.SERVICE_URL + 'post/all/sections';
1505
+ this.generateRequestParams(params);
1506
+ return this.http.post(serviceUrl, this.httpOptions);
1507
+ }
1508
+ updateSection(params) {
1509
+ let serviceUrl = this.SERVICE_URL + 'update/section';
1510
+ this.generateRequestParams(params);
1511
+ return this.http.put(serviceUrl, this.httpOptions);
1512
+ }
1513
+ updateSectionMedia(params) {
1514
+ let serviceUrl = this.SERVICE_URL + 'post/section/media';
1515
+ this.generateRequestParams(params);
1516
+ return this.http.post(serviceUrl, this.httpOptions);
1517
+ }
1518
+ updateSectionState(params) {
1519
+ let serviceUrl = this.SERVICE_URL + 'update/section/state';
1520
+ this.generateRequestParams(params);
1521
+ return this.http.put(serviceUrl, this.httpOptions);
1522
+ }
1523
+ getSectionsByExam(code) {
1524
+ let serviceUrl = this.SERVICE_URL + 'get/sections/by/exam/' + code;
1525
+ return this.http.get(serviceUrl);
1526
+ }
1527
+ // ---------------------- PREGUNTAS ---------------------- //
1528
+ createQuestion(params) {
1529
+ let serviceUrl = this.SERVICE_URL + 'post/question';
1530
+ this.generateRequestParams(params);
1531
+ return this.http.post(serviceUrl, this.httpOptions);
1532
+ }
1533
+ updateQuestion(params) {
1534
+ let serviceUrl = this.SERVICE_URL + 'update/question';
1535
+ this.generateRequestParams(params);
1536
+ return this.http.put(serviceUrl, this.httpOptions);
1537
+ }
1538
+ getQuestionsBySections(params) {
1539
+ let serviceUrl = this.SERVICE_URL + 'get/questions/by/sections';
1540
+ this.generateRequestParams(params);
1541
+ return this.http.post(serviceUrl, this.httpOptions);
1542
+ }
1543
+ getQuestionsBySection(params) {
1544
+ let serviceUrl = this.SERVICE_URL + 'get/questions/by/section';
1545
+ this.generateRequestParams(params);
1546
+ return this.http.post(serviceUrl, this.httpOptions);
1547
+ }
1548
+ // ---------------------- RESPUESTAS ---------------------- //
1549
+ createAnswer(params) {
1550
+ let serviceUrl = this.SERVICE_URL + 'post/answer';
1551
+ this.generateRequestParams(params);
1552
+ return this.http.post(serviceUrl, this.httpOptions);
1553
+ }
1554
+ updateAnswer(params) {
1555
+ let serviceUrl = this.SERVICE_URL + 'update/answer';
1556
+ this.generateRequestParams(params);
1557
+ return this.http.put(serviceUrl, this.httpOptions);
1558
+ }
1559
+ getAnswersByQuestion(code) {
1560
+ let serviceUrl = this.SERVICE_URL + 'get/answers/by/question/' + code;
1561
+ return this.http.get(serviceUrl, this.httpOptions);
1562
+ }
1563
+ updateQuestionState(params) {
1564
+ let serviceUrl = this.SERVICE_URL + 'update/question/state';
1565
+ this.generateRequestParams(params);
1566
+ return this.http.put(serviceUrl, this.httpOptions);
1567
+ }
1568
+ // construye los headers y params
1569
+ generateRequestParams(param) {
1570
+ this.httpOptions = {
1571
+ header: new HttpHeaders(),
1572
+ params: param,
1573
+ };
1574
+ }
1575
+ }
1576
+ 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 });
1577
+ TestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, providedIn: 'root' });
1578
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, decorators: [{
1579
+ type: Injectable,
1580
+ args: [{
1581
+ providedIn: 'root',
1582
+ }]
1564
1583
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1565
1584
 
1566
- class MarketingService {
1567
- constructor(http) {
1568
- this.http = http;
1569
- this.SERVICE_URL = 'https://iptdev.com.co/lab/commercial/api/';
1570
- }
1571
- getStrategyByUserCommercial(user) {
1572
- let serviceUrl = this.SERVICE_URL + 'post/contact/strategy/byaviser';
1573
- this.generateRequestParams(user);
1574
- return this.http.post(serviceUrl, this.httpOptions);
1575
- }
1576
- getObservationsContact(codeContact) {
1577
- let serviceUrl = this.SERVICE_URL + 'get/contact/observation/strategy/bycode/' + codeContact;
1578
- return this.http.get(serviceUrl);
1579
- }
1580
- createObservations(params) {
1581
- let serviceUrl = this.SERVICE_URL + 'post/contact/observation/create';
1582
- this.generateRequestParams(params);
1583
- return this.http.post(serviceUrl, this.httpOptions);
1584
- }
1585
- getUserStatistics(userToken) {
1586
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
1587
- this.generateRequestParams(userToken);
1588
- return this.http.post(serviceUrl, this.httpOptions);
1589
- }
1590
- getTopAdviser() {
1591
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/topadviser';
1592
- return this.http.get(serviceUrl, this.httpOptions);
1593
- }
1594
- getMovementStatus() {
1595
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/movements/status';
1596
- return this.http.get(serviceUrl, this.httpOptions);
1597
- }
1598
- getgroupSignupStatus() {
1599
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/group/signup';
1600
- return this.http.get(serviceUrl, this.httpOptions);
1601
- }
1602
- //Construye los headers y paramns
1603
- generateRequestParams(param) {
1604
- this.httpOptions = {
1605
- header: new HttpHeaders(),
1606
- params: param,
1607
- };
1608
- }
1609
- }
1610
- 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 });
1611
- MarketingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, providedIn: 'root' });
1612
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, decorators: [{
1613
- type: Injectable,
1614
- args: [{
1615
- providedIn: 'root'
1616
- }]
1585
+ class MarketingService {
1586
+ constructor(http) {
1587
+ this.http = http;
1588
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/commercial/api/';
1589
+ }
1590
+ getStrategyByUserCommercial(user) {
1591
+ let serviceUrl = this.SERVICE_URL + 'post/contact/strategy/byaviser';
1592
+ this.generateRequestParams(user);
1593
+ return this.http.post(serviceUrl, this.httpOptions);
1594
+ }
1595
+ getObservationsContact(codeContact) {
1596
+ let serviceUrl = this.SERVICE_URL + 'get/contact/observation/strategy/bycode/' + codeContact;
1597
+ return this.http.get(serviceUrl);
1598
+ }
1599
+ createObservations(params) {
1600
+ let serviceUrl = this.SERVICE_URL + 'post/contact/observation/create';
1601
+ this.generateRequestParams(params);
1602
+ return this.http.post(serviceUrl, this.httpOptions);
1603
+ }
1604
+ getUserStatistics(userToken) {
1605
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
1606
+ this.generateRequestParams(userToken);
1607
+ return this.http.post(serviceUrl, this.httpOptions);
1608
+ }
1609
+ getTopAdviser() {
1610
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/topadviser';
1611
+ return this.http.get(serviceUrl, this.httpOptions);
1612
+ }
1613
+ getMovementStatus() {
1614
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/movements/status';
1615
+ return this.http.get(serviceUrl, this.httpOptions);
1616
+ }
1617
+ getgroupSignupStatus() {
1618
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/group/signup';
1619
+ return this.http.get(serviceUrl, this.httpOptions);
1620
+ }
1621
+ //Construye los headers y paramns
1622
+ generateRequestParams(param) {
1623
+ this.httpOptions = {
1624
+ header: new HttpHeaders(),
1625
+ params: param,
1626
+ };
1627
+ }
1628
+ }
1629
+ 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 });
1630
+ MarketingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, providedIn: 'root' });
1631
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, decorators: [{
1632
+ type: Injectable,
1633
+ args: [{
1634
+ providedIn: 'root'
1635
+ }]
1617
1636
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1618
1637
 
1619
- class BudgetService {
1620
- constructor(http) {
1621
- this.http = http;
1622
- this.SERVICE_URL = 'https://iptdev.com.co/lab/budget/api/';
1623
- }
1624
- getAllDiscount(user) {
1625
- let serviceUrl = this.SERVICE_URL + 'post/discounts/coupon/all';
1626
- this.generateRequestParams(user);
1627
- return this.http.post(serviceUrl, this.httpOptions);
1628
- }
1629
- createDiscount(params) {
1630
- let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/create';
1631
- this.generateRequestParams(params);
1632
- return this.http.post(serviceUrl, this.httpOptions);
1633
- }
1634
- updateDiscount(params) {
1635
- let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/update';
1636
- this.generateRequestParams(params);
1637
- return this.http.post(serviceUrl, this.httpOptions);
1638
- }
1639
- //Construye los headers y paramns
1640
- generateRequestParams(param) {
1641
- this.httpOptions = {
1642
- header: new HttpHeaders(),
1643
- params: param,
1644
- };
1645
- }
1646
- }
1647
- 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 });
1648
- BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, providedIn: 'root' });
1649
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, decorators: [{
1650
- type: Injectable,
1651
- args: [{
1652
- providedIn: 'root'
1653
- }]
1638
+ class BudgetService {
1639
+ constructor(http) {
1640
+ this.http = http;
1641
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/budget/api/';
1642
+ }
1643
+ getAllDiscount(user) {
1644
+ let serviceUrl = this.SERVICE_URL + 'post/discounts/coupon/all';
1645
+ this.generateRequestParams(user);
1646
+ return this.http.post(serviceUrl, this.httpOptions);
1647
+ }
1648
+ createDiscount(params) {
1649
+ let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/create';
1650
+ this.generateRequestParams(params);
1651
+ return this.http.post(serviceUrl, this.httpOptions);
1652
+ }
1653
+ updateDiscount(params) {
1654
+ let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/update';
1655
+ this.generateRequestParams(params);
1656
+ return this.http.post(serviceUrl, this.httpOptions);
1657
+ }
1658
+ //Construye los headers y paramns
1659
+ generateRequestParams(param) {
1660
+ this.httpOptions = {
1661
+ header: new HttpHeaders(),
1662
+ params: param,
1663
+ };
1664
+ }
1665
+ }
1666
+ 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 });
1667
+ BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, providedIn: 'root' });
1668
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, decorators: [{
1669
+ type: Injectable,
1670
+ args: [{
1671
+ providedIn: 'root'
1672
+ }]
1654
1673
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1655
1674
 
1656
- class CoreModule {
1657
- }
1658
- CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1659
- CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule });
1660
- CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, providers: [
1661
- ParameterService,
1662
- CourseService,
1663
- StorageService,
1664
- UserService,
1665
- SwitchService,
1666
- RedirectGuard,
1667
- BaseService,
1668
- TestService,
1669
- MarketingService,
1670
- BudgetService
1671
- ] });
1672
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, decorators: [{
1673
- type: NgModule,
1674
- args: [{
1675
- providers: [
1676
- ParameterService,
1677
- CourseService,
1678
- StorageService,
1679
- UserService,
1680
- SwitchService,
1681
- RedirectGuard,
1682
- BaseService,
1683
- TestService,
1684
- MarketingService,
1685
- BudgetService
1686
- ]
1687
- }]
1675
+ class CoreModule {
1676
+ }
1677
+ CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1678
+ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule });
1679
+ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, providers: [
1680
+ ParameterService,
1681
+ CourseService,
1682
+ StorageService,
1683
+ UserService,
1684
+ SwitchService,
1685
+ RedirectGuard,
1686
+ BaseService,
1687
+ TestService,
1688
+ MarketingService,
1689
+ BudgetService
1690
+ ] });
1691
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, decorators: [{
1692
+ type: NgModule,
1693
+ args: [{
1694
+ providers: [
1695
+ ParameterService,
1696
+ CourseService,
1697
+ StorageService,
1698
+ UserService,
1699
+ SwitchService,
1700
+ RedirectGuard,
1701
+ BaseService,
1702
+ TestService,
1703
+ MarketingService,
1704
+ BudgetService
1705
+ ]
1706
+ }]
1688
1707
  }] });
1689
1708
 
1690
- class DesignSystemModule {
1691
- }
1692
- DesignSystemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1693
- DesignSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [ComponentsModule,
1694
- CoreModule,
1695
- CurrencyMaskModule], exports: [ComponentsModule,
1696
- CoreModule,
1697
- CurrencyMaskModule] });
1698
- DesignSystemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [[
1699
- ComponentsModule,
1700
- CoreModule,
1701
- CurrencyMaskModule
1702
- ], ComponentsModule,
1703
- CoreModule,
1704
- CurrencyMaskModule] });
1705
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, decorators: [{
1706
- type: NgModule,
1707
- args: [{
1708
- imports: [
1709
- ComponentsModule,
1710
- CoreModule,
1711
- CurrencyMaskModule
1712
- ],
1713
- exports: [
1714
- ComponentsModule,
1715
- CoreModule,
1716
- CurrencyMaskModule
1717
- ]
1718
- }]
1709
+ class DesignSystemModule {
1710
+ }
1711
+ DesignSystemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1712
+ DesignSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [ComponentsModule,
1713
+ CoreModule,
1714
+ CurrencyMaskModule], exports: [ComponentsModule,
1715
+ CoreModule,
1716
+ CurrencyMaskModule] });
1717
+ DesignSystemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [[
1718
+ ComponentsModule,
1719
+ CoreModule,
1720
+ CurrencyMaskModule
1721
+ ], ComponentsModule,
1722
+ CoreModule,
1723
+ CurrencyMaskModule] });
1724
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, decorators: [{
1725
+ type: NgModule,
1726
+ args: [{
1727
+ imports: [
1728
+ ComponentsModule,
1729
+ CoreModule,
1730
+ CurrencyMaskModule
1731
+ ],
1732
+ exports: [
1733
+ ComponentsModule,
1734
+ CoreModule,
1735
+ CurrencyMaskModule
1736
+ ]
1737
+ }]
1719
1738
  }] });
1720
1739
 
1721
- class Session {
1722
- }
1740
+ class AttendanceService {
1741
+ constructor(http) {
1742
+ this.http = http;
1743
+ }
1744
+ }
1745
+ 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 });
1746
+ AttendanceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, providedIn: 'root' });
1747
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, decorators: [{
1748
+ type: Injectable,
1749
+ args: [{
1750
+ providedIn: 'root'
1751
+ }]
1752
+ }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1723
1753
 
1724
- class UserRs {
1754
+ class CalendarService {
1755
+ constructor(http) {
1756
+ this.http = http;
1757
+ this.SERVICE_URL = 'http://localhost:8000/api/';
1758
+ }
1759
+ getEventByIdCalendar(idCalendar) {
1760
+ let serviceUrl = this.SERVICE_URL + 'get/event/calendar/idcalendar/all/' + idCalendar;
1761
+ return this.http.get(serviceUrl);
1762
+ }
1763
+ postEventByDayTime(params) {
1764
+ let serviceUrl = this.SERVICE_URL + 'post/event/calendar/idcalendar/by/datetime';
1765
+ this.generateRequestParams(params);
1766
+ return this.http.post(serviceUrl, this.httpOptions);
1767
+ }
1768
+ generateRequestParams(param) {
1769
+ this.httpOptions = {
1770
+ header: new HttpHeaders(),
1771
+ params: param,
1772
+ };
1773
+ }
1774
+ }
1775
+ 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 });
1776
+ CalendarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, providedIn: 'root' });
1777
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, decorators: [{
1778
+ type: Injectable,
1779
+ args: [{
1780
+ providedIn: 'root',
1781
+ }]
1782
+ }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1783
+
1784
+ class NotesService {
1785
+ constructor(http) {
1786
+ this.http = http;
1787
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
1788
+ }
1789
+ getNotesByGroup(params) {
1790
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/course';
1791
+ this.generateRequestParams(params);
1792
+ return this.http.post(serviceUrl, this.httpOptions);
1793
+ }
1794
+ getNotesByStudent(params) {
1795
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/student';
1796
+ this.generateRequestParams(params);
1797
+ return this.http.post(serviceUrl, this.httpOptions);
1798
+ }
1799
+ createNewNote(params) {
1800
+ let serviceUrl = this.SERVICE_URL + 'post/create/note';
1801
+ this.generateRequestParams(params);
1802
+ return this.http.post(serviceUrl, this.httpOptions);
1803
+ }
1804
+ generateRequestParams(param) {
1805
+ this.httpOptions = {
1806
+ header: new HttpHeaders(),
1807
+ params: param,
1808
+ };
1809
+ }
1810
+ }
1811
+ 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 });
1812
+ NotesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, providedIn: 'root' });
1813
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, decorators: [{
1814
+ type: Injectable,
1815
+ args: [{
1816
+ providedIn: 'root'
1817
+ }]
1818
+ }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1819
+
1820
+ class StudentService {
1821
+ constructor(http) {
1822
+ this.http = http;
1823
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
1824
+ }
1825
+ getStudentsByCourse(params) {
1826
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/students/by/course';
1827
+ this.generateRequestParams(params);
1828
+ return this.http.post(serviceUrl, this.httpOptions);
1829
+ }
1830
+ generateRequestParams(param) {
1831
+ this.httpOptions = {
1832
+ header: new HttpHeaders(),
1833
+ params: param,
1834
+ };
1835
+ }
1836
+ }
1837
+ 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 });
1838
+ StudentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, providedIn: 'root' });
1839
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, decorators: [{
1840
+ type: Injectable,
1841
+ args: [{
1842
+ providedIn: 'root'
1843
+ }]
1844
+ }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1845
+
1846
+ class Session {
1725
1847
  }
1726
- class UserLoginRs {
1848
+
1849
+ class UserRs {
1850
+ }
1851
+ class UserLoginRs {
1727
1852
  }
1728
1853
 
1729
- /*
1730
- * Public API Surface of design-system
1854
+ /*
1855
+ * Public API Surface of design-system
1731
1856
  */
1732
1857
 
1733
- /**
1734
- * Generated bundle index. Do not edit.
1858
+ /**
1859
+ * Generated bundle index. Do not edit.
1735
1860
  */
1736
1861
 
1737
- export { AsideButtonComponent, BaseService, BudgetService, ButtonComponent, CheckboxComponent, ComponentsModule, CoreModule, CourseService, DatalistComponent, DesignSystemModule, InputComponent, LevelButtonComponent, LevelTextComponent, LoginFormComponent, MarketingService, ParameterService, RadioComponent, RedirectGuard, SelectComponent, Session, SidenavComponent, StorageService, SwitchService, TestService, TextLinkComponent, UserLoginRs, UserRs, UserService };
1862
+ 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 };
1738
1863
  //# sourceMappingURL=iptdevs-design-system.mjs.map