iptdevs-design-system 2.4.2 → 2.5.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.
- package/esm2020/lib/components/atoms/datalist/datalist.component.mjs +2 -2
- package/esm2020/lib/components/molecules/sidenav/sidenav.component.mjs +2 -2
- package/esm2020/lib/core/models/activities/activities.interface.mjs +2 -0
- package/esm2020/lib/core/models/attendance/attendance.interface.mjs +2 -0
- package/esm2020/lib/core/models/calendar/calendar-rq.models.mjs +2 -0
- package/esm2020/lib/core/models/course/course-rq.model.mjs +1 -1
- package/esm2020/lib/core/models/cronogram/cronogram.models.mjs +2 -0
- package/esm2020/lib/core/models/notes/notes.interface.mjs +2 -0
- package/esm2020/lib/core/models/response/response.interface.mjs +2 -0
- package/esm2020/lib/core/models/student/student.interface.mjs +2 -0
- package/esm2020/lib/core/models/user/user-rq.model.mjs +1 -1
- package/esm2020/lib/core/services/attendance-service/attendance.service.mjs +17 -0
- package/esm2020/lib/core/services/calendar-service/calendar.service.mjs +34 -0
- package/esm2020/lib/core/services/course-service/course-service.model.mjs +20 -1
- package/esm2020/lib/core/services/notes-service/notes.service.mjs +40 -0
- package/esm2020/lib/core/services/student-service/student.service.mjs +30 -0
- package/esm2020/public-api.mjs +19 -8
- package/fesm2015/iptdevs-design-system.mjs +130 -5
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +130 -5
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/core/models/activities/activities.interface.d.ts +6 -0
- package/lib/core/models/attendance/attendance.interface.d.ts +44 -0
- package/lib/core/models/calendar/calendar-rq.models.d.ts +27 -0
- package/lib/core/models/course/course-rq.model.d.ts +8 -0
- package/lib/core/models/cronogram/cronogram.models.d.ts +71 -0
- package/lib/core/models/notes/notes.interface.d.ts +59 -0
- package/lib/core/models/response/response.interface.d.ts +10 -0
- package/lib/core/models/student/student.interface.d.ts +4 -0
- package/lib/core/models/user/user-rq.model.d.ts +19 -0
- package/lib/core/services/attendance-service/attendance.service.d.ts +8 -0
- package/lib/core/services/calendar-service/calendar.service.d.ts +15 -0
- package/lib/core/services/course-service/course-service.model.d.ts +6 -1
- package/lib/core/services/notes-service/notes.service.d.ts +17 -0
- package/lib/core/services/student-service/student.service.d.ts +14 -0
- package/package.json +3 -3
- package/public-api.d.ts +18 -7
|
@@ -221,7 +221,7 @@ DatalistComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
221
221
|
</option>
|
|
222
222
|
</datalist>
|
|
223
223
|
</div>
|
|
224
|
-
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}.input-container{position:relative;margin-top:30px}.input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;margin:10px
|
|
224
|
+
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}.input-container{position:relative;margin-top:30px}.input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;margin:10px 10px -30px;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff}.input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}.label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.labelUp{color:#1c77f7;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
|
|
225
225
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, decorators: [{
|
|
226
226
|
type: Component,
|
|
227
227
|
args: [{ selector: 'ipt-datalist', template: `
|
|
@@ -243,7 +243,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
243
243
|
</option>
|
|
244
244
|
</datalist>
|
|
245
245
|
</div>
|
|
246
|
-
`, styles: ["*{font-family:Poppins,sans-serif}.input-container{position:relative;margin-top:30px}.input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;margin:10px
|
|
246
|
+
`, styles: ["*{font-family:Poppins,sans-serif}.input-container{position:relative;margin-top:30px}.input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;margin:10px 10px -30px;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff}.input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}.label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.labelUp{color:#1c77f7;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"] }]
|
|
247
247
|
}], ctorParameters: function () { return [{ type: i1$1.FormBuilder }]; }, propDecorators: { datalistId: [{
|
|
248
248
|
type: Input
|
|
249
249
|
}], datalistData: [{
|
|
@@ -1080,7 +1080,7 @@ SidenavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
|
1080
1080
|
<div class="photo-logout"></div>
|
|
1081
1081
|
</div>
|
|
1082
1082
|
</mat-toolbar>
|
|
1083
|
-
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){.header{background-color:#fff;display:flex;justify-content:space-between;filter:drop-shadow(0px -1px 7px #000)}mat-sidenav{width:-moz-fit-content!important;width:fit-content!important;background-color:#1c77f7!important}.img-logo,.text-container{display:none}.mat-toolbar.mat-primary{background-color:#fff!important;color:#003d99!important;filter:drop-shadow(0px -1px 7px #000)}.logout-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:auto;border-radius:30px;display:flex;margin-left:10px}.logout-button{display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin-left:20px;text-align:center;width:150px}.photo-logout{background:url(http://qa.iptdev.com.co/assets/icons/exit.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon{background:url(http://qa.iptdev.com.co/assets/icons/icon-menu.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon-close{background:url(http://qa.iptdev.com.co/assets/icons/cruz.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat;width:35px;height:35px}.menu-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:52.5px;width:auto;border-radius:30px;display:flex}.menu-container p{width:85px;display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin:0 0 0 15px;text-align:center}}@media screen and (min-width: 768px){.img-logo{display:flex;width:120px;height:60px}.text-container{border-radius:40px;height:45px;width:100%;display:flex;gap:-100px;justify-content:center;flex-direction:column;align-items:flex-start}}.p1{color:gray;margin-left:30px;font-size:13px;height:20px}.p2{margin-left:30px;font-size:14px;font-weight:600;color:#1c77f7}.flex-container-menu{font-size:18px;color:#fff!important}.mat-nav-list{padding:0}\n"], components: [{ type: i3$1.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { type: i4.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i5.MatNavList, selector: "mat-nav-list", inputs: ["disableRipple", "disabled"], exportAs: ["matNavList"] }, { type: AsideButtonComponent, selector: "ipt-aside-button", inputs: ["icon", "text", "buttonActive"], outputs: ["isClicked"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1083
|
+
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){.header{background-color:#fff;display:flex;justify-content:space-between;filter:drop-shadow(0px -1px 7px #000)}mat-sidenav{width:-moz-fit-content!important;width:fit-content!important;background-color:#1c77f7!important}.img-logo,.text-container{display:none}.mat-toolbar.mat-primary{background-color:#fff!important;color:#003d99!important;filter:drop-shadow(0px -1px 7px #000)}.logout-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:auto;border-radius:30px;display:flex;margin-left:10px}.logout-button{display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin-left:20px;text-align:center;width:150px}.photo-logout{background:url(http://qa.iptdev.com.co/assets/icons/exit.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon{background:url(http://qa.iptdev.com.co/assets/icons/icon-menu.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon-close{background:url(http://qa.iptdev.com.co/assets/icons/cruz.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat;width:35px;height:35px}.menu-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:52.5px;width:auto;border-radius:30px;display:flex}.menu-container:hover{cursor:pointer}.menu-container p{width:85px;display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin:0 0 0 15px;text-align:center}}@media screen and (min-width: 768px){.img-logo{display:flex;width:120px;height:60px}.text-container{border-radius:40px;height:45px;width:100%;display:flex;gap:-100px;justify-content:center;flex-direction:column;align-items:flex-start}}.p1{color:gray;margin-left:30px;font-size:13px;height:20px}.p2{margin-left:30px;font-size:14px;font-weight:600;color:#1c77f7}.flex-container-menu{font-size:18px;color:#fff!important}.mat-nav-list{padding:0}\n"], components: [{ type: i3$1.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { type: i4.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i5.MatNavList, selector: "mat-nav-list", inputs: ["disableRipple", "disabled"], exportAs: ["matNavList"] }, { type: AsideButtonComponent, selector: "ipt-aside-button", inputs: ["icon", "text", "buttonActive"], outputs: ["isClicked"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1084
1084
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, decorators: [{
|
|
1085
1085
|
type: Component,
|
|
1086
1086
|
args: [{ selector: 'ipt-sidenav', template: `
|
|
@@ -1130,7 +1130,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
1130
1130
|
<div class="photo-logout"></div>
|
|
1131
1131
|
</div>
|
|
1132
1132
|
</mat-toolbar>
|
|
1133
|
-
`, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){.header{background-color:#fff;display:flex;justify-content:space-between;filter:drop-shadow(0px -1px 7px #000)}mat-sidenav{width:-moz-fit-content!important;width:fit-content!important;background-color:#1c77f7!important}.img-logo,.text-container{display:none}.mat-toolbar.mat-primary{background-color:#fff!important;color:#003d99!important;filter:drop-shadow(0px -1px 7px #000)}.logout-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:auto;border-radius:30px;display:flex;margin-left:10px}.logout-button{display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin-left:20px;text-align:center;width:150px}.photo-logout{background:url(http://qa.iptdev.com.co/assets/icons/exit.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon{background:url(http://qa.iptdev.com.co/assets/icons/icon-menu.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon-close{background:url(http://qa.iptdev.com.co/assets/icons/cruz.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat;width:35px;height:35px}.menu-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:52.5px;width:auto;border-radius:30px;display:flex}.menu-container p{width:85px;display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin:0 0 0 15px;text-align:center}}@media screen and (min-width: 768px){.img-logo{display:flex;width:120px;height:60px}.text-container{border-radius:40px;height:45px;width:100%;display:flex;gap:-100px;justify-content:center;flex-direction:column;align-items:flex-start}}.p1{color:gray;margin-left:30px;font-size:13px;height:20px}.p2{margin-left:30px;font-size:14px;font-weight:600;color:#1c77f7}.flex-container-menu{font-size:18px;color:#fff!important}.mat-nav-list{padding:0}\n"] }]
|
|
1133
|
+
`, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){.header{background-color:#fff;display:flex;justify-content:space-between;filter:drop-shadow(0px -1px 7px #000)}mat-sidenav{width:-moz-fit-content!important;width:fit-content!important;background-color:#1c77f7!important}.img-logo,.text-container{display:none}.mat-toolbar.mat-primary{background-color:#fff!important;color:#003d99!important;filter:drop-shadow(0px -1px 7px #000)}.logout-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:auto;border-radius:30px;display:flex;margin-left:10px}.logout-button{display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin-left:20px;text-align:center;width:150px}.photo-logout{background:url(http://qa.iptdev.com.co/assets/icons/exit.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon{background:url(http://qa.iptdev.com.co/assets/icons/icon-menu.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon-close{background:url(http://qa.iptdev.com.co/assets/icons/cruz.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat;width:35px;height:35px}.menu-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:52.5px;width:auto;border-radius:30px;display:flex}.menu-container:hover{cursor:pointer}.menu-container p{width:85px;display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin:0 0 0 15px;text-align:center}}@media screen and (min-width: 768px){.img-logo{display:flex;width:120px;height:60px}.text-container{border-radius:40px;height:45px;width:100%;display:flex;gap:-100px;justify-content:center;flex-direction:column;align-items:flex-start}}.p1{color:gray;margin-left:30px;font-size:13px;height:20px}.p2{margin-left:30px;font-size:14px;font-weight:600;color:#1c77f7}.flex-container-menu{font-size:18px;color:#fff!important}.mat-nav-list{padding:0}\n"] }]
|
|
1134
1134
|
}], ctorParameters: function () { return [{ type: UserService }, { type: StorageService }]; }, propDecorators: { department: [{
|
|
1135
1135
|
type: Input
|
|
1136
1136
|
}], setPage: [{
|
|
@@ -1278,6 +1278,25 @@ class CourseService {
|
|
|
1278
1278
|
this.generateRequestParams(params);
|
|
1279
1279
|
return this.http.post(serviceUrl, this.httpOptions);
|
|
1280
1280
|
}
|
|
1281
|
+
getCoursesByTeacher(params) {
|
|
1282
|
+
let serviceUrl = this.SERVICE_URL + 'post/course/by/teacher';
|
|
1283
|
+
this.generateRequestParams(params);
|
|
1284
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1285
|
+
}
|
|
1286
|
+
getFilteredCoursesByTeacher(params) {
|
|
1287
|
+
let serviceUrl = this.SERVICE_URL + 'post/course/filtered/by/teacher';
|
|
1288
|
+
this.generateRequestParams(params);
|
|
1289
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1290
|
+
}
|
|
1291
|
+
getCoursesByStartDate(params) {
|
|
1292
|
+
let serviceUrl = this.SERVICE_URL + 'post/course/by/startdate';
|
|
1293
|
+
this.generateRequestParams(params);
|
|
1294
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1295
|
+
}
|
|
1296
|
+
numberClassByCode(idCode) {
|
|
1297
|
+
let serviceUrl = this.SERVICE_URL + 'get/coursetype/numclass/by/code/' + idCode;
|
|
1298
|
+
return this.http.get(serviceUrl);
|
|
1299
|
+
}
|
|
1281
1300
|
// construye los headers y params
|
|
1282
1301
|
generateRequestParams(param) {
|
|
1283
1302
|
this.httpOptions = {
|
|
@@ -1718,6 +1737,112 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
1718
1737
|
}]
|
|
1719
1738
|
}] });
|
|
1720
1739
|
|
|
1740
|
+
class AttendanceService {
|
|
1741
|
+
constructor(http) {
|
|
1742
|
+
this.http = http;
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
AttendanceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1746
|
+
AttendanceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, providedIn: 'root' });
|
|
1747
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, decorators: [{
|
|
1748
|
+
type: Injectable,
|
|
1749
|
+
args: [{
|
|
1750
|
+
providedIn: 'root'
|
|
1751
|
+
}]
|
|
1752
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
|
|
1753
|
+
|
|
1754
|
+
class CalendarService {
|
|
1755
|
+
constructor(http) {
|
|
1756
|
+
this.http = http;
|
|
1757
|
+
this.SERVICE_URL = 'http://localhost:8000/api/';
|
|
1758
|
+
}
|
|
1759
|
+
getEventByIdCalendar(idCalendar) {
|
|
1760
|
+
let serviceUrl = this.SERVICE_URL + 'get/event/calendar/idcalendar/all/' + idCalendar;
|
|
1761
|
+
return this.http.get(serviceUrl);
|
|
1762
|
+
}
|
|
1763
|
+
postEventByDayTime(params) {
|
|
1764
|
+
let serviceUrl = this.SERVICE_URL + 'post/event/calendar/idcalendar/by/datetime';
|
|
1765
|
+
this.generateRequestParams(params);
|
|
1766
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1767
|
+
}
|
|
1768
|
+
generateRequestParams(param) {
|
|
1769
|
+
this.httpOptions = {
|
|
1770
|
+
header: new HttpHeaders(),
|
|
1771
|
+
params: param,
|
|
1772
|
+
};
|
|
1773
|
+
}
|
|
1774
|
+
}
|
|
1775
|
+
CalendarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1776
|
+
CalendarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, providedIn: 'root' });
|
|
1777
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, decorators: [{
|
|
1778
|
+
type: Injectable,
|
|
1779
|
+
args: [{
|
|
1780
|
+
providedIn: 'root',
|
|
1781
|
+
}]
|
|
1782
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
|
|
1783
|
+
|
|
1784
|
+
class NotesService {
|
|
1785
|
+
constructor(http) {
|
|
1786
|
+
this.http = http;
|
|
1787
|
+
this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
|
|
1788
|
+
}
|
|
1789
|
+
getNotesByGroup(params) {
|
|
1790
|
+
let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/course';
|
|
1791
|
+
this.generateRequestParams(params);
|
|
1792
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1793
|
+
}
|
|
1794
|
+
getNotesByStudent(params) {
|
|
1795
|
+
let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/student';
|
|
1796
|
+
this.generateRequestParams(params);
|
|
1797
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1798
|
+
}
|
|
1799
|
+
createNewNote(params) {
|
|
1800
|
+
let serviceUrl = this.SERVICE_URL + 'post/create/note';
|
|
1801
|
+
this.generateRequestParams(params);
|
|
1802
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1803
|
+
}
|
|
1804
|
+
generateRequestParams(param) {
|
|
1805
|
+
this.httpOptions = {
|
|
1806
|
+
header: new HttpHeaders(),
|
|
1807
|
+
params: param,
|
|
1808
|
+
};
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
NotesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1812
|
+
NotesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, providedIn: 'root' });
|
|
1813
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, decorators: [{
|
|
1814
|
+
type: Injectable,
|
|
1815
|
+
args: [{
|
|
1816
|
+
providedIn: 'root'
|
|
1817
|
+
}]
|
|
1818
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
|
|
1819
|
+
|
|
1820
|
+
class StudentService {
|
|
1821
|
+
constructor(http) {
|
|
1822
|
+
this.http = http;
|
|
1823
|
+
this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
|
|
1824
|
+
}
|
|
1825
|
+
getStudentsByCourse(params) {
|
|
1826
|
+
let serviceUrl = this.SERVICE_URL + 'post/obtain/students/by/course';
|
|
1827
|
+
this.generateRequestParams(params);
|
|
1828
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
1829
|
+
}
|
|
1830
|
+
generateRequestParams(param) {
|
|
1831
|
+
this.httpOptions = {
|
|
1832
|
+
header: new HttpHeaders(),
|
|
1833
|
+
params: param,
|
|
1834
|
+
};
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
StudentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1838
|
+
StudentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, providedIn: 'root' });
|
|
1839
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, decorators: [{
|
|
1840
|
+
type: Injectable,
|
|
1841
|
+
args: [{
|
|
1842
|
+
providedIn: 'root'
|
|
1843
|
+
}]
|
|
1844
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
|
|
1845
|
+
|
|
1721
1846
|
class Session {
|
|
1722
1847
|
}
|
|
1723
1848
|
|
|
@@ -1734,5 +1859,5 @@ class UserLoginRs {
|
|
|
1734
1859
|
* Generated bundle index. Do not edit.
|
|
1735
1860
|
*/
|
|
1736
1861
|
|
|
1737
|
-
export { AsideButtonComponent, BaseService, BudgetService, ButtonComponent, CheckboxComponent, ComponentsModule, CoreModule, CourseService, DatalistComponent, DesignSystemModule, InputComponent, LevelButtonComponent, LevelTextComponent, LoginFormComponent, MarketingService, ParameterService, RadioComponent, RedirectGuard, SelectComponent, Session, SidenavComponent, StorageService, SwitchService, TestService, TextLinkComponent, UserLoginRs, UserRs, UserService };
|
|
1862
|
+
export { AsideButtonComponent, AttendanceService, BaseService, BudgetService, ButtonComponent, CalendarService, CheckboxComponent, ComponentsModule, CoreModule, CourseService, DatalistComponent, DesignSystemModule, InputComponent, LevelButtonComponent, LevelTextComponent, LoginFormComponent, MarketingService, NotesService, ParameterService, RadioComponent, RedirectGuard, SelectComponent, Session, SidenavComponent, StorageService, StudentService, SwitchService, TestService, TextLinkComponent, UserLoginRs, UserRs, UserService };
|
|
1738
1863
|
//# sourceMappingURL=iptdevs-design-system.mjs.map
|