iptdevs-design-system 2.3.2 → 2.3.5

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