iptdevs-design-system 2.7.165 → 2.7.166

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.
@@ -1,8 +1,14 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { FormBuilder, FormGroup } from '@angular/forms';
3
+ import { MediaService } from '../../core/services/media-service/media.service';
4
+ import { UserService } from '../../core/services/user-service/user-service';
5
+ import { BaseService } from '../../core/utils/base-service/base.service';
3
6
  import * as i0 from "@angular/core";
4
7
  export declare class CodDocumentsSectionComponent implements OnInit {
5
8
  private fb;
9
+ private mediaService;
10
+ private userService;
11
+ private baseService;
6
12
  documentsForm: FormGroup;
7
13
  docStudent: boolean;
8
14
  docAgreement: boolean;
@@ -13,13 +19,17 @@ export declare class CodDocumentsSectionComponent implements OnInit {
13
19
  pdfSrc: any;
14
20
  numDoc: number;
15
21
  value: boolean;
16
- constructor(fb: FormBuilder);
22
+ nameUserRole: string;
23
+ constructor(fb: FormBuilder, mediaService: MediaService, userService: UserService, baseService: BaseService);
17
24
  ngOnInit(): void;
18
25
  showIdDocument(): void;
19
26
  catchDocument(event: any, visible: string): void;
20
27
  filesUploaded(): void;
21
28
  clearDocStudent(typeDoc: any): void;
22
29
  validateVisibility(compVisivility: string, value: boolean): void;
30
+ getAllMedia(): void;
31
+ getUserRole(): void;
32
+ saveDocuments(): void;
23
33
  static ɵfac: i0.ɵɵFactoryDeclaration<CodDocumentsSectionComponent, never>;
24
34
  static ɵcmp: i0.ɵɵComponentDeclaration<CodDocumentsSectionComponent, "ipt-cod-documents-section", never, {}, {}, never, never, false>;
25
35
  }
@@ -0,0 +1,5 @@
1
+ export interface MediaRq {
2
+ name: string;
3
+ link: string;
4
+ user_autor: number;
5
+ }
@@ -0,0 +1,15 @@
1
+ import { IPTGeneralService } from '../service-enviroments';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { Observable } from 'rxjs';
4
+ import { MediaRq } from '../../models/media/media.interfaces';
5
+ import * as i0 from "@angular/core";
6
+ export declare class MediaService extends IPTGeneralService {
7
+ private http;
8
+ private SERVICE_URL;
9
+ constructor(http: HttpClient);
10
+ createMedia(request: MediaRq): Observable<any>;
11
+ getAllDataMedia(): Observable<any>;
12
+ getMediaByCode(idCode: number): Observable<any>;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<MediaService, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<MediaService>;
15
+ }
@@ -26,6 +26,7 @@ export declare class UserService extends IPTGeneralService {
26
26
  getStudenbyCode(parans: GetStudentByCodeRq): Observable<any>;
27
27
  getTeachersbyCode(parans: TeacherByCodeRq): Observable<any>;
28
28
  getAllUserByRole(userToken: userTokenRq): Observable<any>;
29
+ getUserRoleByCode(codeRole: number): Observable<any>;
29
30
  static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
30
31
  static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
31
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iptdevs-design-system",
3
- "version": "2.7.165",
3
+ "version": "2.7.166",
4
4
  "description": "Library common elements into IPT Plattform.",
5
5
  "keywords": [
6
6
  "IPT",