iptdevs-design-system 1.1.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/esm2020/lib/components/components.module.mjs +75 -0
  2. package/esm2020/lib/components/forms/login-form/login-form.component.mjs +6 -4
  3. package/esm2020/lib/core/core.module.mjs +28 -0
  4. package/esm2020/lib/core/models/cod/cod-rq.model.mjs +2 -0
  5. package/esm2020/lib/core/models/course/course-rq.model.mjs +2 -0
  6. package/esm2020/lib/core/models/session/session.model.mjs +3 -0
  7. package/esm2020/lib/core/models/table/table-rs.model.mjs +2 -0
  8. package/esm2020/lib/core/models/url/url.model.mjs +2 -0
  9. package/esm2020/lib/core/models/user/user-rq.model.mjs +2 -0
  10. package/esm2020/lib/core/models/user/user-rs.model.mjs +5 -0
  11. package/esm2020/lib/core/services/course-service/course-service.model.mjs +56 -0
  12. package/esm2020/lib/core/services/parameters-service/parameters.service.mjs +82 -0
  13. package/esm2020/lib/core/services/storage-service/storage-service.mjs +50 -0
  14. package/esm2020/lib/core/services/user-service/user-service.mjs +59 -0
  15. package/esm2020/lib/design-system.module.mjs +9 -61
  16. package/esm2020/public-api.mjs +14 -1
  17. package/fesm2015/iptdevs-design-system.mjs +301 -14
  18. package/fesm2015/iptdevs-design-system.mjs.map +1 -1
  19. package/fesm2020/iptdevs-design-system.mjs +301 -14
  20. package/fesm2020/iptdevs-design-system.mjs.map +1 -1
  21. package/lib/components/components.module.d.ts +18 -0
  22. package/lib/components/forms/login-form/login-form.component.d.ts +2 -1
  23. package/lib/core/core.module.d.ts +6 -0
  24. package/lib/core/models/cod/cod-rq.model.d.ts +51 -0
  25. package/lib/core/models/course/course-rq.model.d.ts +77 -0
  26. package/lib/core/models/session/session.model.d.ts +5 -0
  27. package/lib/core/models/table/table-rs.model.d.ts +7 -0
  28. package/lib/core/models/url/url.model.d.ts +8 -0
  29. package/lib/core/models/user/user-rq.model.d.ts +68 -0
  30. package/lib/core/models/user/user-rs.model.d.ts +35 -0
  31. package/lib/core/services/course-service/course-service.model.d.ts +19 -0
  32. package/lib/core/services/parameters-service/parameters.service.d.ts +26 -0
  33. package/lib/core/services/storage-service/storage-service.d.ts +18 -0
  34. package/lib/core/services/user-service/user-service.d.ts +20 -0
  35. package/lib/design-system.module.d.ts +3 -13
  36. package/package.json +7 -6
  37. package/public-api.d.ts +11 -0
@@ -12,4 +12,17 @@ export * from "./lib/components/atoms/radio/radio.component";
12
12
  export * from "./lib/components/atoms/select/select.component";
13
13
  // Formularios
14
14
  export * from "./lib/components/forms/login-form/login-form.component";
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2Rlc2lnbi1zeXN0ZW0vc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLDRCQUE0QixDQUFBO0FBRTFDLFNBQVM7QUFDVCxjQUFjLDREQUE0RCxDQUFBO0FBQzFFLGNBQWMsZ0RBQWdELENBQUE7QUFDOUQsY0FBYyxvREFBb0QsQ0FBQTtBQUNsRSxjQUFjLG9EQUFvRCxDQUFBO0FBQ2xFLGNBQWMsOENBQThDLENBQUE7QUFDNUQsY0FBYyw4Q0FBOEMsQ0FBQTtBQUM1RCxjQUFjLGdEQUFnRCxDQUFBO0FBRTlELGNBQWM7QUFDZCxjQUFjLHdEQUF3RCxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBkZXNpZ24tc3lzdGVtXG4gKi9cblxuZXhwb3J0ICogZnJvbSBcIi4vbGliL2Rlc2lnbi1zeXN0ZW0ubW9kdWxlXCJcblxuLy8gQXRvbW9zXG5leHBvcnQgKiBmcm9tIFwiLi9saWIvY29tcG9uZW50cy9hdG9tcy9hc2lkZS1idXR0b24vYXNpZGUtYnV0dG9uLmNvbXBvbmVudFwiXG5leHBvcnQgKiBmcm9tIFwiLi9saWIvY29tcG9uZW50cy9hdG9tcy9idXR0b24vYnV0dG9uLmNvbXBvbmVudFwiXG5leHBvcnQgKiBmcm9tIFwiLi9saWIvY29tcG9uZW50cy9hdG9tcy9jaGVja2JveC9jaGVja2JveC5jb21wb25lbnRcIlxuZXhwb3J0ICogZnJvbSBcIi4vbGliL2NvbXBvbmVudHMvYXRvbXMvZGF0YWxpc3QvZGF0YWxpc3QuY29tcG9uZW50XCJcbmV4cG9ydCAqIGZyb20gXCIuL2xpYi9jb21wb25lbnRzL2F0b21zL2lucHV0L2lucHV0LmNvbXBvbmVudFwiXG5leHBvcnQgKiBmcm9tIFwiLi9saWIvY29tcG9uZW50cy9hdG9tcy9yYWRpby9yYWRpby5jb21wb25lbnRcIlxuZXhwb3J0ICogZnJvbSBcIi4vbGliL2NvbXBvbmVudHMvYXRvbXMvc2VsZWN0L3NlbGVjdC5jb21wb25lbnRcIlxuXG4vLyBGb3JtdWxhcmlvc1xuZXhwb3J0ICogZnJvbSBcIi4vbGliL2NvbXBvbmVudHMvZm9ybXMvbG9naW4tZm9ybS9sb2dpbi1mb3JtLmNvbXBvbmVudFwiXG4iXX0=
15
+ // Servicios
16
+ export * from "./lib/core/services/course-service/course-service.model";
17
+ export * from "./lib/core/services/parameters-service/parameters.service";
18
+ export * from "./lib/core/services/storage-service/storage-service";
19
+ export * from "./lib/core/services/user-service/user-service";
20
+ // Modelos
21
+ export * from "./lib/core/models/cod/cod-rq.model";
22
+ export * from "./lib/core/models/course/course-rq.model";
23
+ export * from "./lib/core/models/session/session.model";
24
+ export * from "./lib/core/models/table/table-rs.model";
25
+ export * from "./lib/core/models/url/url.model";
26
+ export * from "./lib/core/models/user/user-rq.model";
27
+ export * from "./lib/core/models/user/user-rs.model";
28
+ //# sourceMappingURL=data:application/json;base64,eyJ2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pYi9jb3JlL3NlcnZpY2VzL3VzZXItc2VydmljZS91c2VyLXNlcnZpY2VcIlxuXG4vLyBNb2RlbG9zXG5leHBvcnQgKiBmcm9tIFwiLi9saWIvY29yZS9tb2RlbHMvY29kL2NvZC1ycS5tb2RlbFwiXG5leHBvcnQgKiBmcm9tIFwiLi9saWIvY29yZS9tb2RlbHMvY291cnNlL2NvdXJzZS1ycS5tb2RlbFwiXG5leHBvcnQgKiBmcm9tIFwiLi9saWIvY29yZS9tb2RlbHMvc2Vzc2lvbi9zZXNzaW9uLm1vZGVsXCJcbmV4cG9ydCAqIGZyb20gXCIuL2xpYi9jb3JlL21vZGVscy90YWJsZS90YWJsZS1ycy5tb2RlbFwiXG5leHBvcnQgKiBmcm9tIFwiLi9saWIvY29yZS9tb2RlbHMvdXJsL3VybC5tb2RlbFwiXG5leHBvcnQgKiBmcm9tIFwiLi9saWIvY29yZS9tb2RlbHMvdXNlci91c2VyLXJxLm1vZGVsXCJcbmV4cG9ydCAqIGZyb20gXCIuL2xpYi9jb3JlL21vZGVscy91c2VyL3VzZXItcnMubW9kZWxcIiJdfQ==
@@ -1,10 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
2
+ import { EventEmitter, Component, Input, Output, NgModule, Injectable } from '@angular/core';
3
3
  import { BrowserModule } from '@angular/platform-browser';
4
4
  import * as i1 from '@angular/common';
5
5
  import { CommonModule } from '@angular/common';
6
6
  import * as i1$1 from '@angular/forms';
7
7
  import { Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
8
+ import * as i1$2 from '@angular/common/http';
9
+ import { HttpHeaders } from '@angular/common/http';
8
10
 
9
11
  class AsideButtonComponent {
10
12
  constructor() {
@@ -499,10 +501,10 @@ class LoginFormComponent {
499
501
  }
500
502
  }
501
503
  LoginFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoginFormComponent, deps: [{ token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
502
- LoginFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LoginFormComponent, selector: "ipt-login-form", inputs: { background: "background" }, outputs: { email: "email", password: "password" }, ngImport: i0, template: `
504
+ LoginFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LoginFormComponent, selector: "ipt-login-form", inputs: { background: "background", image: "image" }, outputs: { email: "email", password: "password" }, ngImport: i0, template: `
503
505
  <div [ngClass]="{'with-background': background}" class="form-container">
504
506
 
505
- <img src="/projects/design-system/src/lib/assets/WOLF.png" alt="wolf" width="150px">
507
+ <img [src]="image" alt="wolf" width="150px">
506
508
 
507
509
  <h2>IPT PLATFORM</h2>
508
510
  <hr>
@@ -546,7 +548,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
546
548
  args: [{ selector: 'ipt-login-form', template: `
547
549
  <div [ngClass]="{'with-background': background}" class="form-container">
548
550
 
549
- <img src="/projects/design-system/src/lib/assets/WOLF.png" alt="wolf" width="150px">
551
+ <img [src]="image" alt="wolf" width="150px">
550
552
 
551
553
  <h2>IPT PLATFORM</h2>
552
554
  <hr>
@@ -587,6 +589,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
587
589
  `, 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"] }]
588
590
  }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }]; }, propDecorators: { background: [{
589
591
  type: Input
592
+ }], image: [{
593
+ type: Input
590
594
  }], email: [{
591
595
  type: Output
592
596
  }], password: [{
@@ -605,10 +609,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
605
609
  args: [{ selector: 'lib-register-form', template: "<p>register-form works!</p>\n", styles: [""] }]
606
610
  }], ctorParameters: function () { return []; } });
607
611
 
608
- class DesignSystemModule {
612
+ class ComponentsModule {
609
613
  }
610
- DesignSystemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
611
- DesignSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, declarations: [AsideButtonComponent,
614
+ ComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
615
+ ComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, declarations: [AsideButtonComponent,
612
616
  ButtonComponent,
613
617
  CheckboxComponent,
614
618
  DatalistComponent,
@@ -627,13 +631,13 @@ DesignSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
627
631
  RadioComponent,
628
632
  SelectComponent,
629
633
  LoginFormComponent] });
630
- DesignSystemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [[
634
+ ComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, imports: [[
631
635
  CommonModule,
632
636
  BrowserModule,
633
637
  FormsModule,
634
- ReactiveFormsModule
638
+ ReactiveFormsModule,
635
639
  ]] });
636
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, decorators: [{
640
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, decorators: [{
637
641
  type: NgModule,
638
642
  args: [{
639
643
  declarations: [
@@ -645,13 +649,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
645
649
  RadioComponent,
646
650
  SelectComponent,
647
651
  LoginFormComponent,
648
- RegisterFormComponent
652
+ RegisterFormComponent,
649
653
  ],
650
654
  imports: [
651
655
  CommonModule,
652
656
  BrowserModule,
653
657
  FormsModule,
654
- ReactiveFormsModule
658
+ ReactiveFormsModule,
655
659
  ],
656
660
  exports: [
657
661
  AsideButtonComponent,
@@ -661,11 +665,294 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
661
665
  InputComponent,
662
666
  RadioComponent,
663
667
  SelectComponent,
664
- LoginFormComponent
668
+ LoginFormComponent,
669
+ ]
670
+ }]
671
+ }] });
672
+
673
+ class CourseService {
674
+ constructor(http) {
675
+ this.http = http;
676
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
677
+ }
678
+ createCourse(course) {
679
+ let serviceUrl = this.SERVICE_URL + 'post/course';
680
+ this.generateRequestParams(course);
681
+ return this.http.post(serviceUrl, this.httpOptions);
682
+ }
683
+ editCourse(course) {
684
+ let serviceUrl = this.SERVICE_URL + 'put/course';
685
+ this.generateRequestParams(course);
686
+ return this.http.put(serviceUrl, this.httpOptions);
687
+ }
688
+ getAllCourses(params) {
689
+ let serviceUrl = this.SERVICE_URL + 'post/all/courses';
690
+ this.generateRequestParams(params);
691
+ return this.http.post(serviceUrl, this.httpOptions);
692
+ }
693
+ getCoursesByLevel(params) {
694
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/level';
695
+ this.generateRequestParams(params);
696
+ return this.http.post(serviceUrl, this.httpOptions);
697
+ }
698
+ getAvailibleCourses(availibleCourses) {
699
+ let serviceUrl = this.SERVICE_URL + 'post/course/for/cod';
700
+ this.generateRequestParams(availibleCourses);
701
+ return this.http.post(serviceUrl, this.httpOptions);
702
+ }
703
+ getCourseByCode(params) {
704
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/code';
705
+ this.generateRequestParams(params);
706
+ return this.http.post(serviceUrl, this.httpOptions);
707
+ }
708
+ // construye los headers y params
709
+ generateRequestParams(param) {
710
+ this.httpOptions = {
711
+ header: new HttpHeaders(),
712
+ params: param,
713
+ };
714
+ }
715
+ }
716
+ 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 });
717
+ CourseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, providedIn: 'root' });
718
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, decorators: [{
719
+ type: Injectable,
720
+ args: [{
721
+ providedIn: 'root',
722
+ }]
723
+ }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
724
+
725
+ class ParameterService {
726
+ constructor(http) {
727
+ this.http = http;
728
+ this.SERVICE_URL = 'http://iptdev.com.co/lab/parameters/api/';
729
+ }
730
+ getIndicatives() {
731
+ let serviceUrl = this.SERVICE_URL + 'get/indicatives';
732
+ return this.http.get(serviceUrl);
733
+ }
734
+ getCardTypes(country) {
735
+ let serviceUrl = this.SERVICE_URL + 'get/id/card/type/country/' + country;
736
+ return this.http.get(serviceUrl);
737
+ }
738
+ getCountries() {
739
+ let serviceUrl = this.SERVICE_URL + 'get/countries';
740
+ return this.http.get(serviceUrl);
741
+ }
742
+ getStatesByCountry(country) {
743
+ let serviceUrl = this.SERVICE_URL + 'get/state/country/iso/' + country;
744
+ return this.http.get(serviceUrl);
745
+ }
746
+ getCitiesByState(state) {
747
+ let serviceUrl = this.SERVICE_URL + 'get/cities/state/' + state;
748
+ return this.http.get(serviceUrl);
749
+ }
750
+ getAllPlans() {
751
+ let serviceUrl = this.SERVICE_URL + 'get/all/plans';
752
+ return this.http.get(serviceUrl);
753
+ }
754
+ getLevels() {
755
+ let serviceUrl = this.SERVICE_URL + 'get/english/levels';
756
+ return this.http.get(serviceUrl);
757
+ }
758
+ getAgreements() {
759
+ let serviceUrl = this.SERVICE_URL + 'get/all/agreement';
760
+ return this.http.get(serviceUrl);
761
+ }
762
+ getAgreementByCategory(typeCategory) {
763
+ let serviceUrl = this.SERVICE_URL + 'get/agreement/by/category/' + typeCategory;
764
+ return this.http.get(serviceUrl);
765
+ }
766
+ getAllClassrooms() {
767
+ let serviceUrl = this.SERVICE_URL + 'get/all/classroom';
768
+ return this.http.get(serviceUrl);
769
+ }
770
+ getCoursesTypes() {
771
+ let serviceUrl = this.SERVICE_URL + 'get/all/course/type';
772
+ return this.http.get(serviceUrl);
773
+ }
774
+ getCoursesTypesByPlan(typePlan) {
775
+ let serviceUrl = this.SERVICE_URL + 'get/course/by/plan/' + typePlan;
776
+ return this.http.get(serviceUrl);
777
+ }
778
+ getDegrees() {
779
+ let serviceUrl = this.SERVICE_URL + 'get/all/degrees';
780
+ return this.http.get(serviceUrl);
781
+ }
782
+ getProgramsByDegree(typeDegree) {
783
+ let serviceUrl = this.SERVICE_URL + 'get/programs/by/degree/' + typeDegree;
784
+ return this.http.get(serviceUrl);
785
+ }
786
+ getMarketingReasons() {
787
+ let serviceUrl = this.SERVICE_URL + 'get/all/mkt/reasons';
788
+ return this.http.get(serviceUrl);
789
+ }
790
+ getStudyReasons() {
791
+ let serviceUrl = this.SERVICE_URL + 'get/all/study/reasons';
792
+ return this.http.get(serviceUrl);
793
+ }
794
+ }
795
+ 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 });
796
+ ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, providedIn: 'root' });
797
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, decorators: [{
798
+ type: Injectable,
799
+ args: [{
800
+ providedIn: 'root',
801
+ }]
802
+ }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
803
+
804
+ class StorageService {
805
+ constructor() {
806
+ this.currentSession = null;
807
+ this.localStorageService = localStorage;
808
+ this.currentSession = this.loadSessionData();
809
+ }
810
+ setCurrentSession(session) {
811
+ this.currentSession = session;
812
+ this.localStorageService.setItem('606a7d4e73650b75ebb06972e77d6cc4', JSON.stringify(session));
813
+ }
814
+ loadSessionData() {
815
+ var sessionStr = this.localStorageService.getItem('606a7d4e73650b75ebb06972e77d6cc4');
816
+ return (sessionStr) ? JSON.parse(sessionStr) : null;
817
+ }
818
+ getCurrentSession() {
819
+ return this.currentSession;
820
+ }
821
+ removeCurrentSession() {
822
+ this.localStorageService.removeItem('606a7d4e73650b75ebb06972e77d6cc4');
823
+ this.currentSession = null;
824
+ }
825
+ getCurrentUser() {
826
+ var session = this.getCurrentSession();
827
+ return (session && session.user) ? session.user : null;
828
+ }
829
+ ;
830
+ isAuthenticated() {
831
+ return (this.getCurrentToken() != null) ? true : false;
832
+ }
833
+ ;
834
+ getCurrentToken() {
835
+ var session = this.getCurrentSession();
836
+ return (session && session.token) ? session.token : null;
837
+ }
838
+ ;
839
+ logout() {
840
+ this.removeCurrentSession();
841
+ }
842
+ }
843
+ StorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
844
+ StorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, providedIn: 'root' });
845
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, decorators: [{
846
+ type: Injectable,
847
+ args: [{
848
+ providedIn: 'root',
849
+ }]
850
+ }], ctorParameters: function () { return []; } });
851
+
852
+ class UserService {
853
+ constructor(http) {
854
+ this.http = http;
855
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/users/api/';
856
+ }
857
+ login(userLogin) {
858
+ let serviceUrl = this.SERVICE_URL + 'post/login';
859
+ this.generateRequestParams(userLogin);
860
+ return this.http.post(serviceUrl, this.httpOptions);
861
+ }
862
+ resetPassword(resetPassword) {
863
+ let serviceUrl = this.SERVICE_URL + 'reset/password';
864
+ this.generateRequestParams(resetPassword);
865
+ return this.http.post(serviceUrl, this.httpOptions);
866
+ }
867
+ register(user) {
868
+ let serviceUrl = this.SERVICE_URL + 'post/create/web';
869
+ this.generateRequestParams(user);
870
+ return this.http.post(serviceUrl, this.httpOptions);
871
+ }
872
+ registerIndex(register) {
873
+ let serviceUrl = this.SERVICE_URL + 'post/create/marketing';
874
+ this.generateRequestParams(register);
875
+ return this.http.post(serviceUrl, this.httpOptions);
876
+ }
877
+ registerDashboard(user) {
878
+ let serviceUrl = this.SERVICE_URL + 'post/create/dashboard';
879
+ this.generateRequestParams(user);
880
+ return this.http.post(serviceUrl, this.httpOptions);
881
+ }
882
+ getAvailableTeachers(token) {
883
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/teachers';
884
+ this.generateRequestParams(token);
885
+ return this.http.post(serviceUrl, this.httpOptions);
886
+ }
887
+ getUserByIdCard(value) {
888
+ let serviceUrl = this.SERVICE_URL + 'user/id_card/' + value;
889
+ return this.http.get(serviceUrl);
890
+ }
891
+ generateRequestParams(param) {
892
+ this.httpOptions = {
893
+ header: new HttpHeaders(),
894
+ params: param,
895
+ };
896
+ }
897
+ }
898
+ 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 });
899
+ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, providedIn: 'root' });
900
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, decorators: [{
901
+ type: Injectable,
902
+ args: [{
903
+ providedIn: 'root',
904
+ }]
905
+ }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
906
+
907
+ class CoreModule {
908
+ }
909
+ CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
910
+ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule });
911
+ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, providers: [
912
+ ParameterService,
913
+ CourseService,
914
+ StorageService,
915
+ UserService
916
+ ] });
917
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, decorators: [{
918
+ type: NgModule,
919
+ args: [{
920
+ providers: [
921
+ ParameterService,
922
+ CourseService,
923
+ StorageService,
924
+ UserService
665
925
  ]
666
926
  }]
667
927
  }] });
668
928
 
929
+ class DesignSystemModule {
930
+ }
931
+ DesignSystemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
932
+ DesignSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [ComponentsModule,
933
+ CoreModule] });
934
+ DesignSystemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [[
935
+ ComponentsModule,
936
+ CoreModule,
937
+ ]] });
938
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, decorators: [{
939
+ type: NgModule,
940
+ args: [{
941
+ imports: [
942
+ ComponentsModule,
943
+ CoreModule,
944
+ ]
945
+ }]
946
+ }] });
947
+
948
+ class Session {
949
+ }
950
+
951
+ class UserRs {
952
+ }
953
+ class UserLoginRs {
954
+ }
955
+
669
956
  /*
670
957
  * Public API Surface of design-system
671
958
  */
@@ -674,5 +961,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
674
961
  * Generated bundle index. Do not edit.
675
962
  */
676
963
 
677
- export { AsideButtonComponent, ButtonComponent, CheckboxComponent, DatalistComponent, DesignSystemModule, InputComponent, LoginFormComponent, RadioComponent, SelectComponent };
964
+ export { AsideButtonComponent, ButtonComponent, CheckboxComponent, CourseService, DatalistComponent, DesignSystemModule, InputComponent, LoginFormComponent, ParameterService, RadioComponent, SelectComponent, Session, StorageService, UserLoginRs, UserRs, UserService };
678
965
  //# sourceMappingURL=iptdevs-design-system.mjs.map