@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.
Files changed (85) hide show
  1. package/bundles/senior-gestao-relacionamento-angular-components.umd.js +407 -4
  2. package/bundles/senior-gestao-relacionamento-angular-components.umd.js.map +1 -1
  3. package/bundles/senior-gestao-relacionamento-angular-components.umd.min.js +2 -2
  4. package/bundles/senior-gestao-relacionamento-angular-components.umd.min.js.map +1 -1
  5. package/esm2015/public-api.js +4 -1
  6. package/esm2015/services/current-collaborator/current-collaborator.module.js +18 -0
  7. package/esm2015/services/current-collaborator/current-collaborator.service.js +73 -0
  8. package/esm2015/services/current-collaborator/index.js +4 -0
  9. package/esm2015/services/current-collaborator/models/branch-dto.js +1 -0
  10. package/esm2015/services/current-collaborator/models/branch.js +26 -0
  11. package/esm2015/services/current-collaborator/models/collaborator-branch-dto.js +1 -0
  12. package/esm2015/services/current-collaborator/models/collaborator-branch.js +37 -0
  13. package/esm2015/services/current-collaborator/models/collaborator-dto.js +1 -0
  14. package/esm2015/services/current-collaborator/models/collaborator-squad-dto.js +1 -0
  15. package/esm2015/services/current-collaborator/models/collaborator-squad.js +34 -0
  16. package/esm2015/services/current-collaborator/models/collaborator.js +55 -0
  17. package/esm2015/services/current-collaborator/models/company-dto.js +1 -0
  18. package/esm2015/services/current-collaborator/models/company.js +18 -0
  19. package/esm2015/services/current-collaborator/models/index.js +7 -0
  20. package/esm2015/services/current-collaborator/models/squad-dto.js +1 -0
  21. package/esm2015/services/current-collaborator/models/squad.js +20 -0
  22. package/esm2015/services/current-collaborator/models/user-dto.js +1 -0
  23. package/esm2015/services/current-collaborator/models/user.js +18 -0
  24. package/esm2015/services/storage/storage.service.js +21 -1
  25. package/esm2015/services/utils/index.js +2 -0
  26. package/esm2015/services/utils/string-converter.service.js +7 -0
  27. package/esm2015/services/validators/date-validators.service.js +9 -0
  28. package/esm2015/services/validators/form-group-validators.service.js +36 -0
  29. package/esm2015/services/validators/index.js +3 -0
  30. package/esm5/public-api.js +4 -1
  31. package/esm5/services/current-collaborator/current-collaborator.module.js +21 -0
  32. package/esm5/services/current-collaborator/current-collaborator.service.js +76 -0
  33. package/esm5/services/current-collaborator/index.js +4 -0
  34. package/esm5/services/current-collaborator/models/branch-dto.js +1 -0
  35. package/esm5/services/current-collaborator/models/branch.js +29 -0
  36. package/esm5/services/current-collaborator/models/collaborator-branch-dto.js +1 -0
  37. package/esm5/services/current-collaborator/models/collaborator-branch.js +40 -0
  38. package/esm5/services/current-collaborator/models/collaborator-dto.js +1 -0
  39. package/esm5/services/current-collaborator/models/collaborator-squad-dto.js +1 -0
  40. package/esm5/services/current-collaborator/models/collaborator-squad.js +39 -0
  41. package/esm5/services/current-collaborator/models/collaborator.js +58 -0
  42. package/esm5/services/current-collaborator/models/company-dto.js +1 -0
  43. package/esm5/services/current-collaborator/models/company.js +21 -0
  44. package/esm5/services/current-collaborator/models/index.js +7 -0
  45. package/esm5/services/current-collaborator/models/squad-dto.js +1 -0
  46. package/esm5/services/current-collaborator/models/squad.js +25 -0
  47. package/esm5/services/current-collaborator/models/user-dto.js +1 -0
  48. package/esm5/services/current-collaborator/models/user.js +21 -0
  49. package/esm5/services/storage/storage.service.js +43 -1
  50. package/esm5/services/utils/index.js +2 -0
  51. package/esm5/services/utils/string-converter.service.js +11 -0
  52. package/esm5/services/validators/date-validators.service.js +13 -0
  53. package/esm5/services/validators/form-group-validators.service.js +40 -0
  54. package/esm5/services/validators/index.js +3 -0
  55. package/fesm2015/senior-gestao-relacionamento-angular-components.js +352 -4
  56. package/fesm2015/senior-gestao-relacionamento-angular-components.js.map +1 -1
  57. package/fesm5/senior-gestao-relacionamento-angular-components.js +400 -4
  58. package/fesm5/senior-gestao-relacionamento-angular-components.js.map +1 -1
  59. package/package.json +46 -1
  60. package/public-api.d.ts +3 -0
  61. package/senior-gestao-relacionamento-angular-components.metadata.json +1 -1
  62. package/services/current-collaborator/current-collaborator.module.d.ts +2 -0
  63. package/services/current-collaborator/current-collaborator.service.d.ts +14 -0
  64. package/services/current-collaborator/index.d.ts +3 -0
  65. package/services/current-collaborator/models/branch-dto.d.ts +8 -0
  66. package/services/current-collaborator/models/branch.d.ts +12 -0
  67. package/services/current-collaborator/models/collaborator-branch-dto.d.ts +11 -0
  68. package/services/current-collaborator/models/collaborator-branch.d.ts +16 -0
  69. package/services/current-collaborator/models/collaborator-dto.d.ts +18 -0
  70. package/services/current-collaborator/models/collaborator-squad-dto.d.ts +10 -0
  71. package/services/current-collaborator/models/collaborator-squad.d.ts +15 -0
  72. package/services/current-collaborator/models/collaborator.d.ts +24 -0
  73. package/services/current-collaborator/models/company-dto.d.ts +6 -0
  74. package/services/current-collaborator/models/company.d.ts +9 -0
  75. package/services/current-collaborator/models/index.d.ts +12 -0
  76. package/services/current-collaborator/models/squad-dto.d.ts +9 -0
  77. package/services/current-collaborator/models/squad.d.ts +12 -0
  78. package/services/current-collaborator/models/user-dto.d.ts +9 -0
  79. package/services/current-collaborator/models/user.d.ts +12 -0
  80. package/services/storage/storage.service.d.ts +3 -0
  81. package/services/utils/index.d.ts +1 -0
  82. package/services/utils/string-converter.service.d.ts +3 -0
  83. package/services/validators/date-validators.service.d.ts +3 -0
  84. package/services/validators/form-group-validators.service.d.ts +5 -0
  85. 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,3 @@
1
+ export * from "./current-collaborator.module";
2
+ export * from "./current-collaborator.service";
3
+ export * from "./models/index";
@@ -0,0 +1,8 @@
1
+ export interface BranchDto {
2
+ id?: string;
3
+ company?: any;
4
+ code: string;
5
+ name: string;
6
+ master: boolean;
7
+ active: boolean;
8
+ }
@@ -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,11 @@
1
+ export interface CollaboratorBranchDto {
2
+ id?: string;
3
+ collaborator?: any;
4
+ branch: any;
5
+ master: boolean;
6
+ createdBy?: string;
7
+ createdAt?: Date;
8
+ changedBy?: string;
9
+ changedAt?: Date;
10
+ custom?: any;
11
+ }
@@ -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,10 @@
1
+ export interface CollaboratorSquadDto {
2
+ id?: string;
3
+ collaborator?: any;
4
+ squad: any;
5
+ createdBy?: string;
6
+ createdAt?: Date;
7
+ changedBy?: string;
8
+ changedAt?: Date;
9
+ custom?: any;
10
+ }
@@ -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,6 @@
1
+ export interface CompanyDto {
2
+ id?: string;
3
+ code: string;
4
+ name: string;
5
+ active: boolean;
6
+ }
@@ -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,9 @@
1
+ export interface SquadDto {
2
+ id?: string;
3
+ name: string;
4
+ createdBy?: string;
5
+ createdAt?: Date;
6
+ changedBy?: string;
7
+ changedAt?: Date;
8
+ custom?: any;
9
+ }
@@ -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,9 @@
1
+ export interface UserDto {
2
+ id?: string;
3
+ username: string;
4
+ fullName: string;
5
+ email: string;
6
+ photo?: string;
7
+ blocked: boolean;
8
+ custom?: any;
9
+ }
@@ -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,3 @@
1
+ export declare class StringConverterService {
2
+ static toUnderscore(camelCase: string): string;
3
+ }
@@ -0,0 +1,3 @@
1
+ export declare class DateValidatorsService {
2
+ static isLastWeekdayOfMonth(date: Date): boolean;
3
+ }
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ export * from './form-group-validators.service';
2
+ export * from './date-validators.service';