@senior-gestao-relacionamento/angular-components 1.1.0 → 1.2.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/bundles/senior-gestao-relacionamento-angular-components.umd.js +407 -4
- package/bundles/senior-gestao-relacionamento-angular-components.umd.js.map +1 -1
- package/bundles/senior-gestao-relacionamento-angular-components.umd.min.js +2 -2
- package/bundles/senior-gestao-relacionamento-angular-components.umd.min.js.map +1 -1
- package/esm2015/public-api.js +4 -1
- package/esm2015/services/current-collaborator/current-collaborator.module.js +18 -0
- package/esm2015/services/current-collaborator/current-collaborator.service.js +73 -0
- package/esm2015/services/current-collaborator/index.js +4 -0
- package/esm2015/services/current-collaborator/models/branch-dto.js +1 -0
- package/esm2015/services/current-collaborator/models/branch.js +26 -0
- package/esm2015/services/current-collaborator/models/collaborator-branch-dto.js +1 -0
- package/esm2015/services/current-collaborator/models/collaborator-branch.js +37 -0
- package/esm2015/services/current-collaborator/models/collaborator-dto.js +1 -0
- package/esm2015/services/current-collaborator/models/collaborator-squad-dto.js +1 -0
- package/esm2015/services/current-collaborator/models/collaborator-squad.js +34 -0
- package/esm2015/services/current-collaborator/models/collaborator.js +55 -0
- package/esm2015/services/current-collaborator/models/company-dto.js +1 -0
- package/esm2015/services/current-collaborator/models/company.js +18 -0
- package/esm2015/services/current-collaborator/models/index.js +7 -0
- package/esm2015/services/current-collaborator/models/squad-dto.js +1 -0
- package/esm2015/services/current-collaborator/models/squad.js +20 -0
- package/esm2015/services/current-collaborator/models/user-dto.js +1 -0
- package/esm2015/services/current-collaborator/models/user.js +18 -0
- package/esm2015/services/storage/storage.service.js +21 -1
- package/esm2015/services/utils/index.js +2 -0
- package/esm2015/services/utils/string-converter.service.js +7 -0
- package/esm2015/services/validators/date-validators.service.js +9 -0
- package/esm2015/services/validators/form-group-validators.service.js +36 -0
- package/esm2015/services/validators/index.js +3 -0
- package/esm5/public-api.js +4 -1
- package/esm5/services/current-collaborator/current-collaborator.module.js +21 -0
- package/esm5/services/current-collaborator/current-collaborator.service.js +76 -0
- package/esm5/services/current-collaborator/index.js +4 -0
- package/esm5/services/current-collaborator/models/branch-dto.js +1 -0
- package/esm5/services/current-collaborator/models/branch.js +29 -0
- package/esm5/services/current-collaborator/models/collaborator-branch-dto.js +1 -0
- package/esm5/services/current-collaborator/models/collaborator-branch.js +40 -0
- package/esm5/services/current-collaborator/models/collaborator-dto.js +1 -0
- package/esm5/services/current-collaborator/models/collaborator-squad-dto.js +1 -0
- package/esm5/services/current-collaborator/models/collaborator-squad.js +39 -0
- package/esm5/services/current-collaborator/models/collaborator.js +58 -0
- package/esm5/services/current-collaborator/models/company-dto.js +1 -0
- package/esm5/services/current-collaborator/models/company.js +21 -0
- package/esm5/services/current-collaborator/models/index.js +7 -0
- package/esm5/services/current-collaborator/models/squad-dto.js +1 -0
- package/esm5/services/current-collaborator/models/squad.js +25 -0
- package/esm5/services/current-collaborator/models/user-dto.js +1 -0
- package/esm5/services/current-collaborator/models/user.js +21 -0
- package/esm5/services/storage/storage.service.js +43 -1
- package/esm5/services/utils/index.js +2 -0
- package/esm5/services/utils/string-converter.service.js +11 -0
- package/esm5/services/validators/date-validators.service.js +13 -0
- package/esm5/services/validators/form-group-validators.service.js +40 -0
- package/esm5/services/validators/index.js +3 -0
- package/fesm2015/senior-gestao-relacionamento-angular-components.js +352 -4
- package/fesm2015/senior-gestao-relacionamento-angular-components.js.map +1 -1
- package/fesm5/senior-gestao-relacionamento-angular-components.js +400 -4
- package/fesm5/senior-gestao-relacionamento-angular-components.js.map +1 -1
- package/package.json +46 -1
- package/public-api.d.ts +3 -0
- package/senior-gestao-relacionamento-angular-components.metadata.json +1 -1
- package/services/current-collaborator/current-collaborator.module.d.ts +2 -0
- package/services/current-collaborator/current-collaborator.service.d.ts +14 -0
- package/services/current-collaborator/index.d.ts +3 -0
- package/services/current-collaborator/models/branch-dto.d.ts +8 -0
- package/services/current-collaborator/models/branch.d.ts +12 -0
- package/services/current-collaborator/models/collaborator-branch-dto.d.ts +11 -0
- package/services/current-collaborator/models/collaborator-branch.d.ts +16 -0
- package/services/current-collaborator/models/collaborator-dto.d.ts +18 -0
- package/services/current-collaborator/models/collaborator-squad-dto.d.ts +10 -0
- package/services/current-collaborator/models/collaborator-squad.d.ts +15 -0
- package/services/current-collaborator/models/collaborator.d.ts +24 -0
- package/services/current-collaborator/models/company-dto.d.ts +6 -0
- package/services/current-collaborator/models/company.d.ts +9 -0
- package/services/current-collaborator/models/index.d.ts +12 -0
- package/services/current-collaborator/models/squad-dto.d.ts +9 -0
- package/services/current-collaborator/models/squad.d.ts +12 -0
- package/services/current-collaborator/models/user-dto.d.ts +9 -0
- package/services/current-collaborator/models/user.d.ts +12 -0
- package/services/storage/storage.service.d.ts +3 -0
- package/services/utils/index.d.ts +1 -0
- package/services/utils/string-converter.service.d.ts +3 -0
- package/services/validators/date-validators.service.d.ts +3 -0
- package/services/validators/form-group-validators.service.d.ts +5 -0
- package/services/validators/index.d.ts +2 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Collaborator } from "./models";
|
|
2
|
+
import { HttpClient } from "@angular/common/http";
|
|
3
|
+
import { Observable } from "rxjs";
|
|
4
|
+
export declare class CurrentCollaboratorService {
|
|
5
|
+
private readonly http;
|
|
6
|
+
private readonly ngUnsubscribe;
|
|
7
|
+
private readonly COLLABORATOR_KEY;
|
|
8
|
+
constructor(http: HttpClient);
|
|
9
|
+
validate(): void;
|
|
10
|
+
get(): Observable<Collaborator>;
|
|
11
|
+
private call;
|
|
12
|
+
private redirect;
|
|
13
|
+
private removeCircularReferences;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Company } from "./company";
|
|
2
|
+
import { BranchDto } from "./branch-dto";
|
|
3
|
+
export declare class Branch {
|
|
4
|
+
id?: string;
|
|
5
|
+
company?: Company;
|
|
6
|
+
code: string;
|
|
7
|
+
name: string;
|
|
8
|
+
master: boolean;
|
|
9
|
+
active: boolean;
|
|
10
|
+
static fromDto(branchDto: BranchDto, originEntity?: string): Branch;
|
|
11
|
+
static toDto(branch: Branch, originEntity?: string): BranchDto;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Collaborator } from "./collaborator";
|
|
2
|
+
import { Branch } from "./branch";
|
|
3
|
+
import { CollaboratorBranchDto } from "./collaborator-branch-dto";
|
|
4
|
+
export declare class CollaboratorBranch {
|
|
5
|
+
id?: string;
|
|
6
|
+
collaborator?: Collaborator;
|
|
7
|
+
branch: Branch;
|
|
8
|
+
master: boolean;
|
|
9
|
+
createdBy?: string;
|
|
10
|
+
createdAt?: Date;
|
|
11
|
+
changedBy?: string;
|
|
12
|
+
changedAt?: Date;
|
|
13
|
+
custom?: any;
|
|
14
|
+
static fromDto(collaboratorBranchDto: CollaboratorBranchDto, originEntity?: string): CollaboratorBranch;
|
|
15
|
+
static toDto(collaboratorBranch: CollaboratorBranch, originEntity?: string): CollaboratorBranchDto;
|
|
16
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface CollaboratorDto {
|
|
2
|
+
id?: string;
|
|
3
|
+
code: string;
|
|
4
|
+
user?: any;
|
|
5
|
+
name: string;
|
|
6
|
+
email: string;
|
|
7
|
+
consolidatedLevel?: string;
|
|
8
|
+
leader?: any;
|
|
9
|
+
active: boolean;
|
|
10
|
+
visible: boolean;
|
|
11
|
+
branches?: any[];
|
|
12
|
+
squads?: any[];
|
|
13
|
+
createdBy?: string;
|
|
14
|
+
createdAt?: Date;
|
|
15
|
+
changedBy?: string;
|
|
16
|
+
changedAt?: Date;
|
|
17
|
+
custom?: any;
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Collaborator } from './collaborator';
|
|
2
|
+
import { Squad } from './squad';
|
|
3
|
+
import { CollaboratorSquadDto } from './collaborator-squad-dto';
|
|
4
|
+
export declare class CollaboratorSquad {
|
|
5
|
+
id?: string;
|
|
6
|
+
collaborator?: Collaborator;
|
|
7
|
+
squad: Squad;
|
|
8
|
+
createdBy?: string;
|
|
9
|
+
createdAt?: Date;
|
|
10
|
+
changedBy?: string;
|
|
11
|
+
changedAt?: Date;
|
|
12
|
+
custom?: any;
|
|
13
|
+
static fromDto(collaboratorSquadDto: CollaboratorSquadDto, originEntity?: string): CollaboratorSquad;
|
|
14
|
+
static toDto(collaboratorSquad: CollaboratorSquad, originEntity?: string): CollaboratorSquadDto;
|
|
15
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { User } from "./user";
|
|
2
|
+
import { CollaboratorBranch } from "./collaborator-branch";
|
|
3
|
+
import { CollaboratorSquad } from "./collaborator-squad";
|
|
4
|
+
import { CollaboratorDto } from "./collaborator-dto";
|
|
5
|
+
export declare class Collaborator {
|
|
6
|
+
id?: string;
|
|
7
|
+
code: string;
|
|
8
|
+
user?: User;
|
|
9
|
+
name: string;
|
|
10
|
+
email: string;
|
|
11
|
+
consolidatedLevel?: string;
|
|
12
|
+
leader?: Collaborator;
|
|
13
|
+
active: boolean;
|
|
14
|
+
visible: boolean;
|
|
15
|
+
branches?: CollaboratorBranch[];
|
|
16
|
+
squads?: CollaboratorSquad[];
|
|
17
|
+
createdBy?: string;
|
|
18
|
+
createdAt?: Date;
|
|
19
|
+
changedBy?: string;
|
|
20
|
+
changedAt?: Date;
|
|
21
|
+
custom?: any;
|
|
22
|
+
static fromDto(collaboratorDto: CollaboratorDto, originEntity?: string): Collaborator;
|
|
23
|
+
static toDto(collaborator: Collaborator, originEntity?: string): CollaboratorDto;
|
|
24
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CompanyDto } from './company-dto';
|
|
2
|
+
export declare class Company {
|
|
3
|
+
id?: string;
|
|
4
|
+
code: string;
|
|
5
|
+
name: string;
|
|
6
|
+
active: boolean;
|
|
7
|
+
static fromDto(companyDto: CompanyDto, originEntity?: string): Company;
|
|
8
|
+
static toDto(company: Company, originEntity?: string): CompanyDto;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './branch';
|
|
2
|
+
export * from './branch-dto';
|
|
3
|
+
export * from './collaborator';
|
|
4
|
+
export * from './collaborator-dto';
|
|
5
|
+
export * from './collaborator-branch';
|
|
6
|
+
export * from './collaborator-branch-dto';
|
|
7
|
+
export * from './company';
|
|
8
|
+
export * from './company-dto';
|
|
9
|
+
export * from './squad';
|
|
10
|
+
export * from './squad-dto';
|
|
11
|
+
export * from './user';
|
|
12
|
+
export * from './user-dto';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SquadDto } from './squad-dto';
|
|
2
|
+
export declare class Squad {
|
|
3
|
+
id?: string;
|
|
4
|
+
name: string;
|
|
5
|
+
createdBy?: string;
|
|
6
|
+
createdAt?: Date;
|
|
7
|
+
changedBy?: string;
|
|
8
|
+
changedAt?: Date;
|
|
9
|
+
custom?: any;
|
|
10
|
+
static fromDto(squadDto: SquadDto, originEntity?: string): Squad;
|
|
11
|
+
static toDto(squad: Squad, originEntity?: string): SquadDto;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UserDto } from './user-dto';
|
|
2
|
+
export declare class User {
|
|
3
|
+
id?: string;
|
|
4
|
+
username: string;
|
|
5
|
+
fullName: string;
|
|
6
|
+
email: string;
|
|
7
|
+
photo?: string;
|
|
8
|
+
blocked: boolean;
|
|
9
|
+
custom?: any;
|
|
10
|
+
static fromDto(userDto: UserDto, originEntity?: string): User;
|
|
11
|
+
static toDto(user: User, originEntity?: string): UserDto;
|
|
12
|
+
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export declare class StorageService {
|
|
2
|
+
static getUserId(): Promise<any>;
|
|
3
|
+
static store(key: string, value: any): Promise<void>;
|
|
4
|
+
static get(key: string): Promise<any>;
|
|
2
5
|
private static getComSeniorToken;
|
|
3
6
|
static getBaseUrl(): string;
|
|
4
7
|
static getTenantDomain(): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './string-converter.service';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AbstractControl } from "@angular/forms";
|
|
2
|
+
export declare class FormGroupValidatorsService {
|
|
3
|
+
static startDataGreaterThanEndDataValidator(endDateField: string, errorMessage: string): (control: AbstractControl) => {};
|
|
4
|
+
static endDateLessThanStartDateValidator(startDateField: string, errorMessage: string): (control: AbstractControl) => {};
|
|
5
|
+
}
|