@senior-gestao-relacionamento/angular-components 1.2.0 → 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.
- package/bundles/senior-gestao-relacionamento-angular-components.umd.js +202 -172
- package/bundles/senior-gestao-relacionamento-angular-components.umd.js.map +1 -1
- package/bundles/senior-gestao-relacionamento-angular-components.umd.min.js +12 -12
- package/bundles/senior-gestao-relacionamento-angular-components.umd.min.js.map +1 -1
- package/esm2015/public-api.js +2 -1
- package/esm2015/senior-gestao-relacionamento-angular-components.js +2 -1
- package/esm2015/services/current-collaborator/current-collaborator.module.js +2 -2
- package/esm2015/services/current-collaborator/current-collaborator.service.js +27 -30
- package/esm2015/services/current-collaborator/models/collaborator-dto.js +1 -1
- package/esm2015/services/current-collaborator/models/collaborator-e-070-fil-crmx-dto.js +1 -0
- package/esm2015/services/current-collaborator/models/collaborator-e-070-fil-crmx.js +32 -0
- package/esm2015/services/current-collaborator/models/collaborator-squad.js +1 -6
- package/esm2015/services/current-collaborator/models/collaborator.js +6 -11
- package/esm2015/services/current-collaborator/models/e-070-emp-dto.js +1 -0
- package/esm2015/services/current-collaborator/models/e-070-emp.js +15 -0
- package/esm2015/services/current-collaborator/models/e-070-fil-crmx-dto.js +1 -0
- package/esm2015/services/current-collaborator/models/e-070-fil-crmx.js +25 -0
- package/esm2015/services/current-collaborator/models/e-070-fil-dto.js +1 -0
- package/esm2015/services/current-collaborator/models/e-070-fil.js +22 -0
- package/esm2015/services/current-collaborator/models/index.js +6 -4
- package/esm2015/services/current-collaborator/models/squad-dto.js +1 -1
- package/esm2015/services/current-collaborator/models/squad.js +1 -6
- package/esm2015/services/standard-filters/index.js +3 -0
- package/esm2015/services/standard-filters/standard filters.module.js +18 -0
- package/esm2015/services/standard-filters/standard filters.service.js +47 -0
- package/esm2015/services/storage/storage.service.js +16 -15
- package/esm5/public-api.js +2 -1
- package/esm5/senior-gestao-relacionamento-angular-components.js +2 -1
- package/esm5/services/current-collaborator/current-collaborator.module.js +2 -2
- package/esm5/services/current-collaborator/current-collaborator.service.js +27 -30
- package/esm5/services/current-collaborator/models/collaborator-dto.js +1 -1
- package/esm5/services/current-collaborator/models/collaborator-e-070-fil-crmx-dto.js +1 -0
- package/esm5/services/current-collaborator/models/collaborator-e-070-fil-crmx.js +35 -0
- package/esm5/services/current-collaborator/models/collaborator-squad.js +1 -6
- package/esm5/services/current-collaborator/models/collaborator.js +6 -11
- package/esm5/services/current-collaborator/models/e-070-emp-dto.js +1 -0
- package/esm5/services/current-collaborator/models/e-070-emp.js +20 -0
- package/esm5/services/current-collaborator/models/e-070-fil-crmx-dto.js +1 -0
- package/esm5/services/current-collaborator/models/e-070-fil-crmx.js +28 -0
- package/esm5/services/current-collaborator/models/e-070-fil-dto.js +1 -0
- package/esm5/services/current-collaborator/models/e-070-fil.js +27 -0
- package/esm5/services/current-collaborator/models/index.js +6 -4
- package/esm5/services/current-collaborator/models/squad-dto.js +1 -1
- package/esm5/services/current-collaborator/models/squad.js +1 -6
- package/esm5/services/standard-filters/index.js +3 -0
- package/esm5/services/standard-filters/standard filters.module.js +21 -0
- package/esm5/services/standard-filters/standard filters.service.js +51 -0
- package/esm5/services/storage/storage.service.js +16 -37
- package/fesm2015/senior-gestao-relacionamento-angular-components.js +158 -104
- package/fesm2015/senior-gestao-relacionamento-angular-components.js.map +1 -1
- package/fesm5/senior-gestao-relacionamento-angular-components.js +177 -133
- package/fesm5/senior-gestao-relacionamento-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/senior-gestao-relacionamento-angular-components.d.ts +1 -0
- package/senior-gestao-relacionamento-angular-components.metadata.json +1 -1
- package/services/current-collaborator/models/collaborator-dto.d.ts +1 -1
- package/services/current-collaborator/models/{collaborator-branch-dto.d.ts → collaborator-e-070-fil-crmx-dto.d.ts} +2 -2
- package/services/current-collaborator/models/collaborator-e-070-fil-crmx.d.ts +16 -0
- package/services/current-collaborator/models/collaborator.d.ts +3 -3
- package/services/current-collaborator/models/e-070-emp-dto.d.ts +5 -0
- package/services/current-collaborator/models/e-070-emp.d.ts +8 -0
- package/services/current-collaborator/models/e-070-fil-crmx-dto.d.ts +5 -0
- package/services/current-collaborator/models/e-070-fil-crmx.d.ts +9 -0
- package/services/current-collaborator/models/e-070-fil-dto.d.ts +6 -0
- package/services/current-collaborator/models/e-070-fil.d.ts +10 -0
- package/services/current-collaborator/models/index.d.ts +10 -6
- package/services/standard-filters/index.d.ts +2 -0
- package/services/standard-filters/standard filters.module.d.ts +2 -0
- package/services/standard-filters/standard filters.service.d.ts +12 -0
- package/services/storage/storage.service.d.ts +5 -3
- package/esm2015/services/current-collaborator/models/branch-dto.js +0 -1
- package/esm2015/services/current-collaborator/models/branch.js +0 -26
- package/esm2015/services/current-collaborator/models/collaborator-branch-dto.js +0 -1
- package/esm2015/services/current-collaborator/models/collaborator-branch.js +0 -37
- package/esm2015/services/current-collaborator/models/company-dto.js +0 -1
- package/esm2015/services/current-collaborator/models/company.js +0 -18
- package/esm5/services/current-collaborator/models/branch-dto.js +0 -1
- package/esm5/services/current-collaborator/models/branch.js +0 -29
- package/esm5/services/current-collaborator/models/collaborator-branch-dto.js +0 -1
- package/esm5/services/current-collaborator/models/collaborator-branch.js +0 -40
- package/esm5/services/current-collaborator/models/company-dto.js +0 -1
- package/esm5/services/current-collaborator/models/company.js +0 -21
- package/services/current-collaborator/models/branch-dto.d.ts +0 -8
- package/services/current-collaborator/models/branch.d.ts +0 -12
- package/services/current-collaborator/models/collaborator-branch.d.ts +0 -16
- package/services/current-collaborator/models/company-dto.d.ts +0 -6
- package/services/current-collaborator/models/company.d.ts +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"senior-gestao-relacionamento-angular-components.js","sources":["ng://@senior-gestao-relacionamento/angular-components/services/storage/storage.service.ts","ng://@senior-gestao-relacionamento/angular-components/services/utils/string-converter.service.ts","ng://@senior-gestao-relacionamento/angular-components/services/validators/form-group-validators.service.ts","ng://@senior-gestao-relacionamento/angular-components/services/validators/date-validators.service.ts","ng://@senior-gestao-relacionamento/angular-components/services/websocket/websocket.service.ts","ng://@senior-gestao-relacionamento/angular-components/services/current-collaborator/models/company.ts","ng://@senior-gestao-relacionamento/angular-components/services/current-collaborator/models/branch.ts","ng://@senior-gestao-relacionamento/angular-components/services/current-collaborator/models/user.ts","ng://@senior-gestao-relacionamento/angular-components/services/current-collaborator/models/collaborator-branch.ts","ng://@senior-gestao-relacionamento/angular-components/services/current-collaborator/models/squad.ts","ng://@senior-gestao-relacionamento/angular-components/services/current-collaborator/models/collaborator-squad.ts","ng://@senior-gestao-relacionamento/angular-components/services/current-collaborator/models/collaborator.ts","ng://@senior-gestao-relacionamento/angular-components/services/current-collaborator/current-collaborator.service.ts","ng://@senior-gestao-relacionamento/angular-components/services/current-collaborator/current-collaborator.module.ts","ng://@senior-gestao-relacionamento/angular-components/senior-gestao-relacionamento-angular-components.ts"],"sourcesContent":["import * as Cookies from 'js-cookie';\nimport { ComSeniorTokenDto } from './com-senior-token-dto';\nimport { user as userService } from '@seniorsistemas/senior-platform-data';\n\nexport class StorageService {\n\n public static async getUserId() {\n const user = await userService.getUserData();\n return user.id;\n }\n\n public static async store(key: string, value: any) {\n const userId = await this.getUserId();\n localStorage.setItem(`${userId}_${key}`, JSON.stringify(value));\n }\n\n public static async get(key: string) {\n const userId = await this.getUserId();\n return JSON.parse(localStorage.getItem(`${userId}_${key}`)) || {};\n }\n\n private static getComSeniorToken(): ComSeniorTokenDto {\n return JSON.parse(Cookies.get('com.senior.token'));\n }\n\n public static getBaseUrl(): string {\n return Cookies.get('com.senior.base.url');\n }\n\n public static getTenantDomain(): string {\n return StorageService.getComSeniorToken().username.split('@')[1];\n }\n\n public static getTenantName(): string {\n return StorageService.getComSeniorToken().tenantName;\n }\n\n public static getUsername(): string {\n return StorageService.getComSeniorToken().username.split('@')[0];\n }\n\n public static getLogin(): string {\n return StorageService.getComSeniorToken().username;\n }\n\n public static getToken(): string {\n return StorageService.getComSeniorToken().access_token;\n }\n}\n","\nexport class StringConverterService {\n\n public static toUnderscore(camelCase: string): string {\n const regex: RegExp = /([a-z])([A-Z])/g;\n return camelCase.replace(regex, '$1_$2').toLowerCase();\n }\n}\n","import { AbstractControl } from \"@angular/forms\";\n\nexport class FormGroupValidatorsService {\n public static startDataGreaterThanEndDataValidator(endDateField: string, errorMessage: string) {\n const fn = function (control: AbstractControl) {\n if (control.parent) {\n const startDate = new Date(control.value);\n const endDate = new Date(control.parent.controls[endDateField]?.value);\n\n if (startDate > endDate) {\n const rtn = {};\n rtn[errorMessage] = true;\n return rtn;\n }\n }\n\n return null;\n };\n\n return fn;\n }\n\n public static endDateLessThanStartDateValidator(startDateField: string, errorMessage: string) {\n const fn = function(control: AbstractControl) {\n if (control.parent) {\n const startDate = new Date(control.parent.controls[startDateField]?.value);\n const endDate = new Date(control.value);\n\n if (startDate > endDate) {\n const rtn = {};\n rtn[errorMessage] = true;\n return rtn;\n }\n }\n\n return null;\n };\n\n return fn;\n };\n}\n","export class DateValidatorsService {\n public static isLastWeekdayOfMonth(date: Date): boolean {\n const newDate = new Date(date);\n const day = 7;\n newDate.setDate(date.getDate() + day);\n\n return newDate.getMonth() > date.getMonth() || newDate.getFullYear() > date.getFullYear();\n }\n}\n","import {Injectable} from '@angular/core';\nimport {Observable, Subject} from 'rxjs';\nimport {CompatClient, Stomp} from '@stomp/stompjs';\nimport * as SockJS from 'sockjs-client';\nimport {StorageService} from '../storage';\nimport { PrimitiveEventDto } from './primitive-event-dto';\nimport { SendEventDto } from './send-event-dto';\n\ninterface PrimitiveEventWithObservable<T> extends PrimitiveEventDto {\n observable: Subject<T>;\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class WebsocketService {\n\n private readonly client: CompatClient;\n private readonly primitiveEventObservables: PrimitiveEventWithObservable<any>[] = [];\n\n constructor(\n\n ) {\n const url = StorageService.getBaseUrl().concat('/websocket/subscription');\n const socket = new SockJS(url);\n\n this.client = Stomp.over(socket);\n }\n\n public startConnect() {\n this.client.connect(\n {},\n () => this.onConnected(),\n () => this.onConnectError(),\n );\n }\n\n public onEvent<T>(primitiveEvent: PrimitiveEventDto): Observable<T> {\n const {domain, service, primitive, allUsers} = primitiveEvent;\n\n const observable = new Subject<T>();\n\n const primitiveEventWithObservable: PrimitiveEventWithObservable<T> = {\n domain,\n service,\n primitive,\n allUsers,\n observable,\n };\n\n this.primitiveEventObservables.push(primitiveEventWithObservable);\n\n return observable;\n }\n\n public sendEvent(params: SendEventDto) {\n const topic = this.getTopicEvent(params);\n\n this.client.send(\n topic,\n params.headers,\n JSON.stringify({\n data: params.message\n })\n );\n }\n\n private onConnected() {\n this.primitiveEventObservables.forEach(event => {\n this.client.subscribe(\n this.getTopicEvent(event),\n ((message ) => {\n const body = JSON.parse(message.body);\n event.observable.next(body.data);\n })\n );\n });\n }\n\n private onConnectError() {\n console.log('Error in connect!');\n }\n\n private getTopicEvent(primitiveEvent: PrimitiveEventDto) {\n let topic = '/topic/'.concat(StorageService.getTenantDomain());\n\n if (primitiveEvent.allUsers === false) {\n topic = topic\n .concat('/')\n .concat(StorageService.getToken())\n ;\n }\n\n topic = topic\n .concat('/')\n .concat(primitiveEvent.domain)\n .concat('/')\n .concat(primitiveEvent.service)\n .concat('/')\n .concat(primitiveEvent.primitive)\n ;\n\n return topic;\n }\n\n}\n","\nimport { CompanyDto } from './company-dto';\n\nexport class Company {\n public id?: string;\n public code: string;\n public name: string;\n public active: boolean = false;\n\n public static fromDto(companyDto: CompanyDto, originEntity?: string): Company {\n const model: any = { ...companyDto };\n\n const lookupSeparator = ' - ';\n const displayFields = ['code', 'name'];\n\n model.label = displayFields.map((field) => model[field]).join(lookupSeparator);\n\n return model as Company;\n }\n\n public static toDto(company: Company, originEntity?: string): CompanyDto {\n const dto: any = { ...company };\n\n delete dto.label;\n\n return dto;\n }\n}\n","import { Company } from \"./company\";\nimport { BranchDto } from \"./branch-dto\";\n\nexport class Branch {\n public id?: string;\n public company?: Company;\n public code: string;\n public name: string;\n public master: boolean = false;\n public active: boolean = false;\n\n public static fromDto(branchDto: BranchDto, originEntity?: string): Branch {\n const model: any = { ...branchDto };\n\n const lookupSeparator = ' - ';\n const displayFields = ['company.code', 'company.name', 'code', 'name'];\n\n model.label = displayFields.map((field) => model[field]).join(lookupSeparator);\n\n if (originEntity !== 'Company' && model.company) {\n model.company = Company.fromDto(model.company, 'Branch');\n }\n\n return model as Branch;\n }\n\n public static toDto(branch: Branch, originEntity?: string): BranchDto {\n const dto: any = { ...branch };\n\n delete dto.label;\n\n if (originEntity !== 'Company' && dto.company) {\n dto.company = Company.toDto(dto.company, 'Branch');\n }\n\n return dto;\n }\n}\n","import { UserDto } from './user-dto';\n\nexport class User {\n public id?: string;\n public username: string;\n public fullName: string;\n public email: string;\n public photo?: string;\n public blocked: boolean = false;\n public custom?: any;\n\n public static fromDto(userDto: UserDto, originEntity?: string): User {\n const model: any = { ...userDto };\n\n const lookupSeparator = ' - ';\n const displayFields = ['username', 'fullName'];\n\n model.label = displayFields.map((field) => model[field]).join(lookupSeparator);\n\n return model as User;\n }\n\n public static toDto(user: User, originEntity?: string): UserDto {\n const dto: any = { ...user };\n\n delete dto.label;\n\n return dto;\n }\n}\n","import * as moment from 'moment';\n\nimport { Collaborator } from \"./collaborator\";\nimport { Branch } from \"./branch\";\nimport { CollaboratorBranchDto } from \"./collaborator-branch-dto\";\n\nexport class CollaboratorBranch {\n public id?: string;\n public collaborator?: Collaborator;\n public branch: Branch;\n public master: boolean = false;\n public createdBy?: string;\n public createdAt?: Date;\n public changedBy?: string;\n public changedAt?: Date;\n public custom?: any;\n\n public static fromDto(collaboratorBranchDto: CollaboratorBranchDto, originEntity?: string): CollaboratorBranch {\n const model: any = { ...collaboratorBranchDto };\n\n model.createdAt = model.createdAt && moment(model.createdAt).toDate();\n model.changedAt = model.changedAt && moment(model.changedAt).toDate();\n\n const lookupSeparator = ' - ';\n const displayFields = ['branch.company.code', 'branch.company.name', 'branch.code', 'branch.name', 'master'];\n\n model.label = displayFields.map((field) => model[field]).join(lookupSeparator);\n\n if (originEntity !== 'Collaborator' && model.collaborator) {\n model.collaborator = Collaborator.fromDto(model.collaborator, 'CollaboratorBranch');\n }\n if (originEntity !== 'Branch' && model.branch) {\n model.branch = Branch.fromDto(model.branch, 'CollaboratorBranch');\n }\n\n return model as CollaboratorBranch;\n }\n\n public static toDto(collaboratorBranch: CollaboratorBranch, originEntity?: string): CollaboratorBranchDto {\n const dto: any = { ...collaboratorBranch };\n\n dto.createdAt = dto.createdAt && moment(dto.createdAt).format();\n dto.changedAt = dto.changedAt && moment(dto.changedAt).format();\n\n delete dto.label;\n\n if (originEntity !== 'Collaborator' && dto.collaborator) {\n dto.collaborator = Collaborator.toDto(dto.collaborator, 'CollaboratorBranch');\n }\n if (originEntity !== 'Branch' && dto.branch) {\n dto.branch = Branch.toDto(dto.branch, 'CollaboratorBranch');\n }\n\n return dto;\n }\n}\n","import * as moment from 'moment';\n\nimport { SquadDto } from './squad-dto';\n\nexport class Squad {\n public id?: string;\n public name: string;\n public createdBy?: string;\n public createdAt?: Date;\n public changedBy?: string;\n public changedAt?: Date;\n public custom?: any;\n\n public static fromDto(squadDto: SquadDto, originEntity?: string): Squad {\n const model: any = { ...squadDto };\n\n model.createdAt = model.createdAt && moment(model.createdAt).toDate();\n model.changedAt = model.changedAt && moment(model.changedAt).toDate();\n\n const lookupSeparator = ' - ';\n const displayFields = ['name'];\n\n model.label = displayFields.map((field) => model[field]).join(lookupSeparator);\n\n return model as Squad;\n }\n\n public static toDto(squad: Squad, originEntity?: string): SquadDto {\n const dto: any = { ...squad };\n\n dto.createdAt = dto.createdAt && moment(dto.createdAt).format();\n dto.changedAt = dto.changedAt && moment(dto.changedAt).format();\n\n delete dto.label;\n\n return dto;\n }\n}\n","import * as moment from 'moment';\n\nimport { Collaborator } from './collaborator';\nimport { Squad } from './squad';\nimport { CollaboratorSquadDto } from './collaborator-squad-dto';\n\nexport class CollaboratorSquad {\n public id?: string;\n public collaborator?: Collaborator;\n public squad: Squad;\n public createdBy?: string;\n public createdAt?: Date;\n public changedBy?: string;\n public changedAt?: Date;\n public custom?: any;\n\n public static fromDto(collaboratorSquadDto: CollaboratorSquadDto, originEntity?: string): CollaboratorSquad {\n const model: any = { ...collaboratorSquadDto };\n\n model.createdAt = model.createdAt && moment(model.createdAt).toDate();\n model.changedAt = model.changedAt && moment(model.changedAt).toDate();\n\n const lookupSeparator = ' - ';\n const displayFields = ['squad.name'];\n\n model.label = displayFields.map((field) => model[field]).join(lookupSeparator);\n\n if (originEntity !== 'Collaborator' && model.collaborator) {\n model.collaborator = Collaborator.fromDto(model.collaborator, 'CollaboratorSquad');\n }\n if (originEntity !== 'Squad' && model.squad) {\n model.squad = Squad.fromDto(model.squad, 'CollaboratorSquad');\n }\n\n return model as CollaboratorSquad;\n }\n\n public static toDto(collaboratorSquad: CollaboratorSquad, originEntity?: string): CollaboratorSquadDto {\n const dto: any = { ...collaboratorSquad };\n\n dto.createdAt = dto.createdAt && moment(dto.createdAt).format();\n dto.changedAt = dto.changedAt && moment(dto.changedAt).format();\n\n delete dto.label;\n\n if (originEntity !== 'Collaborator' && dto.collaborator) {\n dto.collaborator = Collaborator.toDto(dto.collaborator, 'CollaboratorSquad');\n }\n if (originEntity !== 'Squad' && dto.squad) {\n dto.squad = Squad.toDto(dto.squad, 'CollaboratorSquad');\n }\n\n return dto;\n }\n}\n","import * as moment from 'moment';\nimport { User } from \"./user\";\nimport { CollaboratorBranch } from \"./collaborator-branch\";\nimport { CollaboratorSquad } from \"./collaborator-squad\";\nimport { CollaboratorDto } from \"./collaborator-dto\";\n\nexport class Collaborator {\n public id?: string;\n public code: string;\n public user?: User;\n public name: string;\n public email: string;\n public consolidatedLevel?: string;\n public leader?: Collaborator;\n public active: boolean = false;\n public visible: boolean = false;\n public branches?: CollaboratorBranch[];\n public squads?: CollaboratorSquad[];\n public createdBy?: string;\n public createdAt?: Date;\n public changedBy?: string;\n public changedAt?: Date;\n public custom?: any;\n\n public static fromDto(collaboratorDto: CollaboratorDto, originEntity?: string): Collaborator {\n const model: any = { ...collaboratorDto };\n\n model.createdAt = model.createdAt && moment(model.createdAt).toDate();\n model.changedAt = model.changedAt && moment(model.changedAt).toDate();\n\n const lookupSeparator = ' - ';\n const displayFields = ['code', 'name'];\n\n model.label = displayFields.map((field) => model[field]).join(lookupSeparator);\n\n if (originEntity !== 'User' && model.user) {\n model.user = User.fromDto(model.user, 'Collaborator');\n }\n if (originEntity !== 'Collaborator' && model.leader) {\n model.leader = Collaborator.fromDto(model.leader, 'Collaborator');\n }\n if (originEntity !== 'CollaboratorBranch' && model.branches) {\n model.branches = Object.values(model.branches).map((item: any) => CollaboratorBranch.fromDto(item, 'Collaborator'));\n }\n if (originEntity !== 'CollaboratorSquad' && model.squads) {\n model.squads = Object.values(model.squads).map((item: any) => CollaboratorSquad.fromDto(item, 'Collaborator'));\n }\n\n return model as Collaborator;\n }\n\n public static toDto(collaborator: Collaborator, originEntity?: string): CollaboratorDto {\n const dto: any = { ...collaborator };\n\n dto.createdAt = dto.createdAt && moment(dto.createdAt).format();\n dto.changedAt = dto.changedAt && moment(dto.changedAt).format();\n\n delete dto.label;\n\n if (originEntity !== 'User' && dto.user) {\n dto.user = User.toDto(dto.user, 'Collaborator');\n }\n if (originEntity !== 'Collaborator' && dto.leader) {\n dto.leader = Collaborator.toDto(dto.leader, 'Collaborator');\n }\n if (originEntity !== 'CollaboratorBranch' && dto.branches) {\n dto.branches = Object.values(dto.branches)\n .map((item: any) => CollaboratorBranch.toDto(item, 'Collaborator'))\n .filter((item) => Object.keys(item).length);\n }\n if (originEntity !== 'CollaboratorSquad' && dto.squads) {\n dto.squads = Object.values(dto.squads)\n .map((item: any) => CollaboratorSquad.toDto(item, 'Collaborator'))\n .filter((item) => Object.keys(item).length);\n }\n\n return dto;\n }\n}\n","import { Injectable } from \"@angular/core\";\nimport { Collaborator, CollaboratorDto } from \"./models\";\nimport { HttpClient } from \"@angular/common/http\";\nimport { Observable, Subject } from \"rxjs\";\nimport { StorageService } from \"../storage\";\nimport { catchError, takeUntil } from \"rxjs/operators\";\n\n@Injectable()\nexport class CurrentCollaboratorService {\n\n private readonly ngUnsubscribe = new Subject();\n\n private readonly COLLABORATOR_KEY: string = 'CRMX_COLLABORATOR';\n\n constructor(\n private readonly http: HttpClient,\n ) {\n }\n\n public validate() {\n this.call(false).subscribe((collaborator) => {\n if (collaborator.active === false) {\n this.redirect('collaborator-inactive');\n }\n });\n }\n\n public get(): Observable<Collaborator> {\n return this.call(true);\n }\n\n private call(useCache: boolean): Observable<Collaborator> {\n return new Observable(observer => {\n StorageService.get(this.COLLABORATOR_KEY).then(collaboratorDto => {\n if (collaboratorDto.hasOwnProperty('id') && useCache) {\n observer.next(Collaborator.fromDto(collaboratorDto));\n } else {\n this.http.get<CollaboratorDto>('crmx/collaborator/queries/getCurrentCollaborator')\n .pipe(\n takeUntil(this.ngUnsubscribe),\n catchError((err: any) => {\n if (err.status === 404) {\n this.redirect('collaborator-not-found');\n };\n throw err;\n }),\n )\n .subscribe(collaboratorDto => {\n StorageService.store(\n this.COLLABORATOR_KEY,\n this.removeCircularReferences(collaboratorDto)\n );\n observer.next(Collaborator.fromDto(collaboratorDto));\n });\n }\n });\n });\n }\n\n private redirect(page: string) {\n if (!location.hostname.includes('interno.senior.com.br')) {\n location.href = location.origin + '/gestao-relacionamento/crmx/collaborator/#/' + page;\n }\n }\n\n private removeCircularReferences(obj: any) {\n const seen = new WeakSet();\n return JSON.parse(JSON.stringify(obj, (key, value) => {\n let rtn;\n if (typeof value === 'object' && value !== null) {\n if (!seen.has(value)) {\n seen.add(value);\n rtn = value;\n }\n }\n return rtn;\n }));\n }\n}\n","import { NgModule } from \"@angular/core\";\nimport { CurrentCollaboratorService } from \"./current-collaborator.service\";\nimport { HttpClientModule } from \"@angular/common/http\";\n\n@NgModule({\n imports: [\n HttpClientModule,\n ],\n providers: [\n CurrentCollaboratorService\n ],\n})\nexport class CurrentCollaboratorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["userService","user","Cookies.get"],"mappings":";;;;;;;;;;;;IAIA;KA4CC;IA1CuB,wBAAS,GAA7B;;;;;4BACiB,qBAAMA,IAAW,CAAC,WAAW,EAAE,EAAA;;wBAAtCC,MAAI,GAAG,SAA+B;wBAC5C,sBAAOA,MAAI,CAAC,EAAE,EAAC;;;;KAClB;IAEmB,oBAAK,GAAzB,UAA0B,GAAW,EAAE,KAAU;;;;;4BAC9B,qBAAM,IAAI,CAAC,SAAS,EAAE,EAAA;;wBAA/B,MAAM,GAAG,SAAsB;wBACrC,YAAY,CAAC,OAAO,CAAI,MAAM,SAAI,GAAK,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;;;;;KACnE;IAEmB,kBAAG,GAAvB,UAAwB,GAAW;;;;;4BAChB,qBAAM,IAAI,CAAC,SAAS,EAAE,EAAA;;wBAA/B,MAAM,GAAG,SAAsB;wBACrC,sBAAO,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,CAAI,MAAM,SAAI,GAAK,CAAC,CAAC,IAAI,EAAE,EAAC;;;;KACrE;IAEc,gCAAiB,GAAhC;QACI,OAAO,IAAI,CAAC,KAAK,CAACC,GAAW,CAAC,kBAAkB,CAAC,CAAC,CAAC;KACtD;IAEa,yBAAU,GAAxB;QACI,OAAOA,GAAW,CAAC,qBAAqB,CAAC,CAAC;KAC7C;IAEa,8BAAe,GAA7B;QACI,OAAO,cAAc,CAAC,iBAAiB,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;KACpE;IAEa,4BAAa,GAA3B;QACI,OAAO,cAAc,CAAC,iBAAiB,EAAE,CAAC,UAAU,CAAC;KACxD;IAEa,0BAAW,GAAzB;QACI,OAAO,cAAc,CAAC,iBAAiB,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CA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yC;IAA5B,yBAAyB;QARrC,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,gBAAgB;aACnB;YACD,SAAS,EAAE;gBACP,0BAA0B;aAC7B;SACJ,CAAC;OACW,yBAAyB,CAAG;IAAD,gCAAC;CAAzC;;ACZA;;;;;;"}
|
|
1
|
+
{"version":3,"file":"senior-gestao-relacionamento-angular-components.js","sources":["ng://@senior-gestao-relacionamento/angular-components/services/storage/storage.service.ts","ng://@senior-gestao-relacionamento/angular-components/services/utils/string-converter.service.ts","ng://@senior-gestao-relacionamento/angular-components/services/validators/form-group-validators.service.ts","ng://@senior-gestao-relacionamento/angular-components/services/validators/date-validators.service.ts","ng://@senior-gestao-relacionamento/angular-components/services/websocket/websocket.service.ts","ng://@senior-gestao-relacionamento/angular-components/services/current-collaborator/models/user.ts","ng://@senior-gestao-relacionamento/angular-components/services/current-collaborator/models/e-070-emp.ts","ng://@senior-gestao-relacionamento/angular-components/services/current-collaborator/models/e-070-fil.ts","ng://@senior-gestao-relacionamento/angular-components/services/current-collaborator/models/e-070-fil-crmx.ts","ng://@senior-gestao-relacionamento/angular-components/services/current-collaborator/models/collaborator-e-070-fil-crmx.ts","ng://@senior-gestao-relacionamento/angular-components/services/current-collaborator/models/squad.ts","ng://@senior-gestao-relacionamento/angular-components/services/current-collaborator/models/collaborator-squad.ts","ng://@senior-gestao-relacionamento/angular-components/services/current-collaborator/models/collaborator.ts","ng://@senior-gestao-relacionamento/angular-components/services/current-collaborator/current-collaborator.service.ts","ng://@senior-gestao-relacionamento/angular-components/services/current-collaborator/current-collaborator.module.ts","ng://@senior-gestao-relacionamento/angular-components/services/standard-filters/standard filters.service.ts","ng://@senior-gestao-relacionamento/angular-components/services/standard-filters/standard filters.module.ts","ng://@senior-gestao-relacionamento/angular-components/senior-gestao-relacionamento-angular-components.ts"],"sourcesContent":["import * as Cookies from 'js-cookie';\nimport { ComSeniorTokenDto } from './com-senior-token-dto';\nimport { user as userService } from '@seniorsistemas/senior-platform-data';\n\nexport class StorageService {\n public static getUser() {\n return JSON.parse(localStorage.getItem('SENIOR_USER_INFO')).data;\n }\n\n public static getUserId(): string {\n return StorageService.getUser().id;\n }\n\n public static store(key: string, value: any) {\n const userId = StorageService.getUserId();\n localStorage.setItem(`${userId}_${key}`, JSON.stringify(value));\n }\n\n public static get(key: string) {\n const userId = StorageService.getUserId();\n const value = localStorage.getItem(`${userId}_${key}`);\n\n if (value) {\n return JSON.parse(value);\n }\n\n return null;\n }\n\n private static getComSeniorToken(): ComSeniorTokenDto {\n return JSON.parse(Cookies.get('com.senior.token'));\n }\n\n public static getBaseUrl(): string {\n return Cookies.get('com.senior.base.url');\n }\n\n public static getTenantDomain(): string {\n return StorageService.getComSeniorToken().username.split('@')[1];\n }\n\n public static getTenantName(): string {\n return StorageService.getComSeniorToken().tenantName;\n }\n\n public static getUsername(): string {\n return StorageService.getComSeniorToken().username.split('@')[0];\n }\n\n public static getLogin(): string {\n return StorageService.getComSeniorToken().username;\n }\n\n public static getToken(): string {\n return StorageService.getComSeniorToken().access_token;\n }\n\n public static isUserAdmin(): boolean {\n return StorageService.getUsername() === 'admin';\n }\n}\n","\nexport class StringConverterService {\n\n public static toUnderscore(camelCase: string): string {\n const regex: RegExp = /([a-z])([A-Z])/g;\n return camelCase.replace(regex, '$1_$2').toLowerCase();\n }\n}\n","import { AbstractControl } from \"@angular/forms\";\n\nexport class FormGroupValidatorsService {\n public static startDataGreaterThanEndDataValidator(endDateField: string, errorMessage: string) {\n const fn = function (control: AbstractControl) {\n if (control.parent) {\n const startDate = new Date(control.value);\n const endDate = new Date(control.parent.controls[endDateField]?.value);\n\n if (startDate > endDate) {\n const rtn = {};\n rtn[errorMessage] = true;\n return rtn;\n }\n }\n\n return null;\n };\n\n return fn;\n }\n\n public static endDateLessThanStartDateValidator(startDateField: string, errorMessage: string) {\n const fn = function(control: AbstractControl) {\n if (control.parent) {\n const startDate = new Date(control.parent.controls[startDateField]?.value);\n const endDate = new Date(control.value);\n\n if (startDate > endDate) {\n const rtn = {};\n rtn[errorMessage] = true;\n return rtn;\n }\n }\n\n return null;\n };\n\n return fn;\n };\n}\n","export class DateValidatorsService {\n public static isLastWeekdayOfMonth(date: Date): boolean {\n const newDate = new Date(date);\n const day = 7;\n newDate.setDate(date.getDate() + day);\n\n return newDate.getMonth() > date.getMonth() || newDate.getFullYear() > date.getFullYear();\n }\n}\n","import {Injectable} from '@angular/core';\nimport {Observable, Subject} from 'rxjs';\nimport {CompatClient, Stomp} from '@stomp/stompjs';\nimport * as SockJS from 'sockjs-client';\nimport {StorageService} from '../storage';\nimport { PrimitiveEventDto } from './primitive-event-dto';\nimport { SendEventDto } from './send-event-dto';\n\ninterface PrimitiveEventWithObservable<T> extends PrimitiveEventDto {\n observable: Subject<T>;\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class WebsocketService {\n\n private readonly client: CompatClient;\n private readonly primitiveEventObservables: PrimitiveEventWithObservable<any>[] = [];\n\n constructor(\n\n ) {\n const url = StorageService.getBaseUrl().concat('/websocket/subscription');\n const socket = new SockJS(url);\n\n this.client = Stomp.over(socket);\n }\n\n public startConnect() {\n this.client.connect(\n {},\n () => this.onConnected(),\n () => this.onConnectError(),\n );\n }\n\n public onEvent<T>(primitiveEvent: PrimitiveEventDto): Observable<T> {\n const {domain, service, primitive, allUsers} = primitiveEvent;\n\n const observable = new Subject<T>();\n\n const primitiveEventWithObservable: PrimitiveEventWithObservable<T> = {\n domain,\n service,\n primitive,\n allUsers,\n observable,\n };\n\n this.primitiveEventObservables.push(primitiveEventWithObservable);\n\n return observable;\n }\n\n public sendEvent(params: SendEventDto) {\n const topic = this.getTopicEvent(params);\n\n this.client.send(\n topic,\n params.headers,\n JSON.stringify({\n data: params.message\n })\n );\n }\n\n private onConnected() {\n this.primitiveEventObservables.forEach(event => {\n this.client.subscribe(\n this.getTopicEvent(event),\n ((message ) => {\n const body = JSON.parse(message.body);\n event.observable.next(body.data);\n })\n );\n });\n }\n\n private onConnectError() {\n console.log('Error in connect!');\n }\n\n private getTopicEvent(primitiveEvent: PrimitiveEventDto) {\n let topic = '/topic/'.concat(StorageService.getTenantDomain());\n\n if (primitiveEvent.allUsers === false) {\n topic = topic\n .concat('/')\n .concat(StorageService.getToken())\n ;\n }\n\n topic = topic\n .concat('/')\n .concat(primitiveEvent.domain)\n .concat('/')\n .concat(primitiveEvent.service)\n .concat('/')\n .concat(primitiveEvent.primitive)\n ;\n\n return topic;\n }\n\n}\n","import { UserDto } from './user-dto';\n\nexport class User {\n public id?: string;\n public username: string;\n public fullName: string;\n public email: string;\n public photo?: string;\n public blocked: boolean = false;\n public custom?: any;\n\n public static fromDto(userDto: UserDto, originEntity?: string): User {\n const model: any = { ...userDto };\n\n const lookupSeparator = ' - ';\n const displayFields = ['username', 'fullName'];\n\n model.label = displayFields.map((field) => model[field]).join(lookupSeparator);\n\n return model as User;\n }\n\n public static toDto(user: User, originEntity?: string): UserDto {\n const dto: any = { ...user };\n\n delete dto.label;\n\n return dto;\n }\n}\n","import { E070EmpDto } from './e-070-emp-dto';\n\nexport class E070Emp {\n public id?: string;\n public codEmp: string;\n public nomEmp: string;\n\n public static fromDto(e070EmpDto: E070EmpDto, originEntity?: string): E070Emp {\n const model: any = { ...e070EmpDto };\n\n const lookupSeparator = ' - ';\n const displayFields = ['codEmp', 'nomEmp'];\n\n model.label = displayFields.map((field) => model[field]).join(lookupSeparator);\n\n return model as E070Emp;\n }\n\n public static toDto(e070Emp: E070Emp, originEntity?: string): E070EmpDto {\n const dto: any = { ...e070Emp };\n\n delete dto.label;\n\n return dto;\n }\n}\n","import { E070Emp } from './e-070-emp';\nimport { E070FilDto } from './e-070-fil-dto';\n\nexport class E070Fil {\n public id?: string;\n public codFil: number;\n public nomFil: string;\n public e070emp: E070Emp;\n\n public static fromDto(e070FilDto: E070FilDto, originEntity?: string): E070Fil {\n const model: any = { ...e070FilDto };\n\n const lookupSeparator = ' - ';\n const displayFields = ['e070emp.codEmp', 'e070emp.nomEmp', 'codFil', 'nomFil'];\n\n model.label = displayFields.map((field) => model[field]).join(lookupSeparator);\n\n if (originEntity !== 'E070Emp' && model.e070emp) {\n model.e070emp = E070Emp.fromDto(model.e070emp, 'E070Fil');\n }\n\n return model as E070Fil;\n }\n\n public static toDto(e070Fil: E070Fil, originEntity?: string): E070FilDto {\n const dto: any = { ...e070Fil };\n\n delete dto.label;\n\n if (originEntity !== 'E070Emp' && dto.e070emp) {\n dto.e070emp = E070Emp.toDto(dto.e070emp, 'E070Fil');\n }\n\n return dto;\n }\n}\n","import { E070Fil } from './e-070-fil';\nimport { E070FilCrmxDto } from './e-070-fil-crmx-dto';\n\nexport class E070FilCrmx {\n public id?: string;\n public active: boolean = false;\n public e070fil: E070Fil;\n\n public static fromDto(e070FilCrmxDto: E070FilCrmxDto, originEntity?: string): E070FilCrmx {\n const model: any = { ...e070FilCrmxDto };\n\n const lookupSeparator = ' - ';\n const displayFields = ['e070fil.e070emp.codEmp', 'e070fil.e070emp.nomEmp', 'e070fil.codFil', 'e070fil.nomFil'];\n\n model.label = displayFields.map((field) => model[field]).join(lookupSeparator);\n\n if (originEntity !== 'E070Fil' && model.e070fil) {\n model.e070fil = E070Fil.fromDto(model.e070fil, 'E070FilCrmx');\n }\n\n return model as E070FilCrmx;\n }\n\n public static toDto(e070FilCrmx: E070FilCrmx, originEntity?: string): E070FilCrmxDto {\n const dto: any = { ...e070FilCrmx };\n\n delete dto.label;\n\n if (originEntity !== 'E070Fil' && dto.e070fil) {\n dto.e070fil = E070Fil.toDto(dto.e070fil, 'E070FilCrmx');\n }\n\n return dto;\n }\n}\n","import { Collaborator } from './collaborator';\nimport { E070FilCrmx } from './e-070-fil-crmx';\nimport { CollaboratorE070FilCrmxDto } from './collaborator-e-070-fil-crmx-dto';\n\nexport class CollaboratorE070FilCrmx {\n public id?: string;\n public collaborator?: Collaborator;\n public e070filCrmx: E070FilCrmx;\n public master: boolean = false;\n public createdBy?: string;\n public createdAt?: Date;\n public changedBy?: string;\n public changedAt?: Date;\n public custom?: any;\n\n public static fromDto(collaboratorE070FilCrmxDto: CollaboratorE070FilCrmxDto, originEntity?: string): CollaboratorE070FilCrmx {\n const model: any = { ...collaboratorE070FilCrmxDto };\n\n const lookupSeparator = ' - ';\n const displayFields = ['e070filCrmx.e070fil.codFil', 'e070filCrmx.e070fil.nomFil'];\n\n model.label = displayFields.map((field) => model[field]).join(lookupSeparator);\n\n if (originEntity !== 'Collaborator' && model.collaborator) {\n model.collaborator = Collaborator.fromDto(model.collaborator, 'CollaboratorE070FilCrmx');\n }\n\n if (originEntity !== 'E070FilCrmx' && model.e070filCrmx) {\n model.e070filCrmx = E070FilCrmx.fromDto(model.e070filCrmx, 'CollaboratorE070FilCrmx');\n }\n\n return model as CollaboratorE070FilCrmx;\n }\n\n public static toDto(collaboratorE070FilCrmx: CollaboratorE070FilCrmx, originEntity?: string): CollaboratorE070FilCrmxDto {\n const dto: any = { ...collaboratorE070FilCrmx };\n\n delete dto.label;\n\n if (originEntity !== 'Collaborator' && dto.collaborator) {\n dto.collaborator = Collaborator.toDto(dto.collaborator, 'CollaboratorE070FilCrmx');\n }\n\n if (originEntity !== 'E070FilCrmx' && dto.e070filCrmx) {\n dto.e070filCrmx = E070FilCrmx.toDto(dto.e070filCrmx, 'CollaboratorE070FilCrmx');\n }\n\n return dto;\n }\n}\n","import { SquadDto } from './squad-dto';\n\nexport class Squad {\n public id?: string;\n public name: string;\n public createdBy?: string;\n public createdAt?: Date;\n public changedBy?: string;\n public changedAt?: Date;\n public custom?: any;\n\n public static fromDto(squadDto: SquadDto, originEntity?: string): Squad {\n const model: any = { ...squadDto };\n\n const lookupSeparator = ' - ';\n const displayFields = ['name'];\n\n model.label = displayFields.map((field) => model[field]).join(lookupSeparator);\n\n return model as Squad;\n }\n\n public static toDto(squad: Squad, originEntity?: string): SquadDto {\n const dto: any = { ...squad };\n\n delete dto.label;\n\n return dto;\n }\n}\n","import { Collaborator } from './collaborator';\nimport { Squad } from './squad';\nimport { CollaboratorSquadDto } from './collaborator-squad-dto';\n\nexport class CollaboratorSquad {\n public id?: string;\n public collaborator?: Collaborator;\n public squad: Squad;\n public createdBy?: string;\n public createdAt?: Date;\n public changedBy?: string;\n public changedAt?: Date;\n public custom?: any;\n\n public static fromDto(collaboratorSquadDto: CollaboratorSquadDto, originEntity?: string): CollaboratorSquad {\n const model: any = { ...collaboratorSquadDto };\n\n const lookupSeparator = ' - ';\n const displayFields = ['squad.name'];\n\n model.label = displayFields.map((field) => model[field]).join(lookupSeparator);\n\n if (originEntity !== 'Collaborator' && model.collaborator) {\n model.collaborator = Collaborator.fromDto(model.collaborator, 'CollaboratorSquad');\n }\n\n if (originEntity !== 'Squad' && model.squad) {\n model.squad = Squad.fromDto(model.squad, 'CollaboratorSquad');\n }\n\n return model as CollaboratorSquad;\n }\n\n public static toDto(collaboratorSquad: CollaboratorSquad, originEntity?: string): CollaboratorSquadDto {\n const dto: any = { ...collaboratorSquad };\n\n delete dto.label;\n\n if (originEntity !== 'Collaborator' && dto.collaborator) {\n dto.collaborator = Collaborator.toDto(dto.collaborator, 'CollaboratorSquad');\n }\n\n if (originEntity !== 'Squad' && dto.squad) {\n dto.squad = Squad.toDto(dto.squad, 'CollaboratorSquad');\n }\n\n return dto;\n }\n}\n","import { User } from \"./user\";\nimport { CollaboratorE070FilCrmx } from \"./collaborator-e-070-fil-crmx\";\nimport { CollaboratorSquad } from \"./collaborator-squad\";\nimport { CollaboratorDto } from \"./collaborator-dto\";\n\nexport class Collaborator {\n public id?: string;\n public code: string;\n public user?: User;\n public name: string;\n public email: string;\n public leader?: Collaborator;\n public active: boolean = false;\n public visible: boolean = false;\n public consolidatedLevel?: string;\n public branches?: CollaboratorE070FilCrmx[];\n public squads?: CollaboratorSquad[];\n public createdBy?: string;\n public createdAt?: Date;\n public changedBy?: string;\n public changedAt?: Date;\n public custom?: any;\n\n public static fromDto(collaboratorDto: CollaboratorDto, originEntity?: string): Collaborator {\n const model: any = { ...collaboratorDto };\n\n const lookupSeparator = ' - ';\n const displayFields = ['code', 'name'];\n\n model.label = displayFields.map((field) => model[field]).join(lookupSeparator);\n\n if (originEntity !== 'User' && model.user) {\n model.user = User.fromDto(model.user, 'Collaborator');\n }\n\n if (originEntity !== 'Collaborator' && model.leader) {\n model.leader = Collaborator.fromDto(model.leader, 'Collaborator');\n }\n\n if (originEntity !== 'CollaboratorE070FilCrmx' && model.branches) {\n model.branches = Object.values(model.branches).map((item: any) => CollaboratorE070FilCrmx.fromDto(item, 'Collaborator'));\n }\n\n if (originEntity !== 'CollaboratorSquad' && model.squads) {\n model.squads = Object.values(model.squads).map((item: any) => CollaboratorSquad.fromDto(item, 'Collaborator'));\n }\n\n return model as Collaborator;\n }\n\n public static toDto(collaborator: Collaborator, originEntity?: string): CollaboratorDto {\n const dto: any = { ...collaborator };\n\n delete dto.label;\n\n if (originEntity !== 'User' && dto.user) {\n dto.user = User.toDto(dto.user, 'Collaborator');\n }\n\n if (originEntity !== 'Collaborator' && dto.leader) {\n dto.leader = Collaborator.toDto(dto.leader, 'Collaborator');\n }\n\n if (originEntity !== 'CollaboratorE070FilCrmx' && dto.branches) {\n dto.branches = Object.values(dto.branches)\n .map((item: any) => CollaboratorE070FilCrmx.toDto(item, 'Collaborator'))\n .filter((item) => Object.keys(item).length);\n }\n\n if (originEntity !== 'CollaboratorSquad' && dto.squads) {\n dto.squads = Object.values(dto.squads)\n .map((item: any) => CollaboratorSquad.toDto(item, 'Collaborator'))\n .filter((item) => Object.keys(item).length);\n }\n\n return dto;\n }\n}\n","import { Injectable } from \"@angular/core\";\nimport { Collaborator, CollaboratorDto } from \"./models\";\nimport { HttpClient } from \"@angular/common/http\";\nimport { Observable, Subject } from \"rxjs\";\nimport { StorageService } from \"../storage/storage.service\";\nimport { catchError, takeUntil } from \"rxjs/operators\";\n\n@Injectable()\nexport class CurrentCollaboratorService {\n\n private readonly ngUnsubscribe = new Subject();\n\n private readonly COLLABORATOR_KEY: string = 'CRMX_COLLABORATOR';\n\n constructor(\n private readonly http: HttpClient,\n ) {\n }\n\n public validate() {\n this.call(false).subscribe((collaborator) => {\n if (collaborator.active === false && !StorageService.isUserAdmin()) {\n this.redirect('collaborator-inactive');\n }\n });\n }\n\n public get(): Observable<Collaborator> {\n return this.call(true);\n }\n\n private call(useCache: boolean): Observable<Collaborator> {\n return new Observable(observer => {\n const collaboratorDto = StorageService.get(this.COLLABORATOR_KEY);\n\n if (collaboratorDto !== null && useCache) {\n observer.next(Collaborator.fromDto(collaboratorDto));\n } else {\n this.http.get<CollaboratorDto>('crmx_collaborator/foundation/queries/getCurrentCollaborator')\n .pipe(\n takeUntil(this.ngUnsubscribe),\n catchError((err: any) => {\n const statusCode = 404;\n if (err.status === statusCode && !StorageService.isUserAdmin()) {\n this.redirect('collaborator-not-found');\n };\n throw err;\n }),\n )\n .subscribe(collaboratorDto => {\n StorageService.store(\n this.COLLABORATOR_KEY,\n this.removeCircularReferences(collaboratorDto)\n );\n observer.next(Collaborator.fromDto(collaboratorDto));\n })\n ;\n }\n\n });\n }\n\n private redirect(page: string) {\n location.href = StorageService.getBaseUrl() + '/gestao-relacionamento/crmx_collaborator/foundation/#/' + page;\n }\n\n private removeCircularReferences(obj: any) {\n const seen = new WeakSet();\n return JSON.parse(JSON.stringify(obj, (key, value) => {\n\n if (typeof value === 'object') {\n if (seen.has(value)) {\n return undefined;\n }\n seen.add(value);\n }\n\n return value;\n }));\n }\n}\n","import { NgModule } from \"@angular/core\";\nimport { CurrentCollaboratorService } from \"./current-collaborator.service\";\nimport { HttpClientModule } from \"@angular/common/http\";\n\n@NgModule({\n imports: [\n HttpClientModule\n ],\n providers: [\n CurrentCollaboratorService\n ],\n})\nexport class CurrentCollaboratorModule {}\n","import { Injectable } from \"@angular/core\";\nimport { Collaborator, CurrentCollaboratorService } from \"../current-collaborator\";\nimport { Observable } from \"rxjs\";\n\n@Injectable()\nexport class StandardFiltersService {\n\n constructor(\n private readonly currentCollaboratorService: CurrentCollaboratorService\n ) {\n }\n\n public addFilterE070emp(filterQuery: string, alias: string): Observable<string> {\n return new Observable<string>(observer => {\n this.currentCollaboratorService.get().subscribe((collaborator: Collaborator) => {\n const ids: string[] = Array.from(new Set(collaborator.branches.map(branch => branch.e070filCrmx.e070fil.e070emp.id)));\n observer.next(this.addFilterIn(filterQuery, alias, 'id', ids));\n });\n });\n }\n\n public addFilterE070fil(filterQuery: string, alias: string): Observable<string> {\n return new Observable<string>(observer => {\n this.currentCollaboratorService.get().subscribe((collaborator: Collaborator) => {\n const ids: string[] = Array.from(new Set(collaborator.branches.map(branch => branch.e070filCrmx.id)));\n\n observer.next(this.addFilterIn(filterQuery, alias, 'id', ids));\n });\n });\n }\n\n public addFilterActive(filterQuery: string, alias: string): string {\n const filter = this.addAlias(alias, 'active = true');\n return this.addFilter(filterQuery, filter);\n }\n\n public addFilter(filterQuery: string, filter: string): string {\n return (filterQuery ? `${filterQuery} and ` : '') + filter;\n }\n\n public addFilterIn(filterQuery: string, alias: string, field: string, values: any[]): string {\n const filters: string[] = values.map(value => `${this.addAlias(alias, field)} eq '${value}'`);\n\n return this.addFilter(filterQuery, `(${filters.join(' or ')})`);\n }\n\n private addAlias(alias: string, filter: string): string {\n return (alias ? `${alias}.` : '') + filter;\n }\n}\n","import { NgModule } from \"@angular/core\";\nimport { StandardFiltersService } from \"./standard filters.service\";\nimport { CurrentCollaboratorModule } from \"../current-collaborator\";\n\n@NgModule({\n imports: [\n CurrentCollaboratorModule\n ],\n providers: [\n StandardFiltersService\n ],\n})\nexport class StandardFiltersModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n\nexport {CurrentCollaboratorModule as ɵa,CurrentCollaboratorService as ɵb} from './services/current-collaborator';"],"names":["Cookies.get"],"mappings":";;;;;;;;;;IAIA;KAwDC;IAvDiB,sBAAO,GAArB;QACI,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC;KACpE;IAEa,wBAAS,GAAvB;QACI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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../node_modules/ng-packagr/package.schema.json",
|
|
3
3
|
"name": "@senior-gestao-relacionamento/angular-components",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://git.senior.com.br/gestao-relacionamento/angular-components"
|
package/public-api.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"StorageService":{"__symbolic":"class","members":{},"statics":{"getComSeniorToken":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"JSON"},"member":"parse"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"js-cookie","name":"get","line":
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"StorageService":{"__symbolic":"class","members":{},"statics":{"getUser":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"JSON"},"member":"parse"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"localStorage"},"member":"getItem"},"arguments":["SENIOR_USER_INFO"]}]},"member":"data"}},"getUserId":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"StorageService"},"member":"getUser"}},"member":"id"}},"getComSeniorToken":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"JSON"},"member":"parse"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"js-cookie","name":"get","line":30,"character":26},"arguments":["com.senior.token"]}]}},"getBaseUrl":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"js-cookie","name":"get","line":34,"character":15},"arguments":["com.senior.base.url"]}},"getTenantDomain":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"index","expression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"StorageService"},"member":"getComSeniorToken"}},"member":"username"},"member":"split"},"arguments":["@"]},"index":1}},"getTenantName":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"StorageService"},"member":"getComSeniorToken"}},"member":"tenantName"}},"getUsername":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"index","expression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"StorageService"},"member":"getComSeniorToken"}},"member":"username"},"member":"split"},"arguments":["@"]},"index":0}},"getLogin":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"StorageService"},"member":"getComSeniorToken"}},"member":"username"}},"getToken":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"StorageService"},"member":"getComSeniorToken"}},"member":"access_token"}},"isUserAdmin":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"StorageService"},"member":"getUsername"}},"right":"admin"}}}},"StringConverterService":{"__symbolic":"class","members":{}},"FormGroupValidatorsService":{"__symbolic":"class","members":{}},"DateValidatorsService":{"__symbolic":"class","members":{}},"WebsocketService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":12,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"startConnect":[{"__symbolic":"method"}],"onEvent":[{"__symbolic":"method"}],"sendEvent":[{"__symbolic":"method"}],"onConnected":[{"__symbolic":"method"}],"onConnectError":[{"__symbolic":"method"}],"getTopicEvent":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"CurrentCollaboratorModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":6,"character":8}],"providers":[{"__symbolic":"reference","name":"CurrentCollaboratorService"}]}]}],"members":{}},"CurrentCollaboratorService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":15,"character":31}]}],"validate":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"call":[{"__symbolic":"method"}],"redirect":[{"__symbolic":"method"}],"removeCircularReferences":[{"__symbolic":"method"}]}},"Collaborator":{"__symbolic":"class","members":{}},"CollaboratorDto":{"__symbolic":"interface"},"CollaboratorE070FilCrmx":{"__symbolic":"class","members":{}},"CollaboratorE070FilCrmxDto":{"__symbolic":"interface"},"CollaboratorSquad":{"__symbolic":"class","members":{}},"CollaboratorSquadDto":{"__symbolic":"interface"},"E070Emp":{"__symbolic":"class","members":{}},"E070EmpDto":{"__symbolic":"interface"},"E070Fil":{"__symbolic":"class","members":{}},"E070FilCrmx":{"__symbolic":"class","members":{}},"E070FilCrmxDto":{"__symbolic":"interface"},"E070FilDto":{"__symbolic":"interface"},"Squad":{"__symbolic":"class","members":{}},"SquadDto":{"__symbolic":"interface"},"User":{"__symbolic":"class","members":{}},"UserDto":{"__symbolic":"interface"},"StandardFiltersModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","name":"ɵa"}],"providers":[{"__symbolic":"reference","name":"StandardFiltersService"}]}]}],"members":{}},"StandardFiltersService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"}]}],"addFilterE070emp":[{"__symbolic":"method"}],"addFilterE070fil":[{"__symbolic":"method"}],"addFilterActive":[{"__symbolic":"method"}],"addFilter":[{"__symbolic":"method"}],"addFilterIn":[{"__symbolic":"method"}],"addAlias":[{"__symbolic":"method"}]}}},"origins":{"StorageService":"./services/storage/storage.service","StringConverterService":"./services/utils/string-converter.service","FormGroupValidatorsService":"./services/validators/form-group-validators.service","DateValidatorsService":"./services/validators/date-validators.service","WebsocketService":"./services/websocket/websocket.service","CurrentCollaboratorModule":"./services/current-collaborator/current-collaborator.module","CurrentCollaboratorService":"./services/current-collaborator/current-collaborator.service","Collaborator":"./services/current-collaborator/models/collaborator","CollaboratorDto":"./services/current-collaborator/models/collaborator-dto","CollaboratorE070FilCrmx":"./services/current-collaborator/models/collaborator-e-070-fil-crmx","CollaboratorE070FilCrmxDto":"./services/current-collaborator/models/collaborator-e-070-fil-crmx-dto","CollaboratorSquad":"./services/current-collaborator/models/collaborator-squad","CollaboratorSquadDto":"./services/current-collaborator/models/collaborator-squad-dto","E070Emp":"./services/current-collaborator/models/e-070-emp","E070EmpDto":"./services/current-collaborator/models/e-070-emp-dto","E070Fil":"./services/current-collaborator/models/e-070-fil","E070FilCrmx":"./services/current-collaborator/models/e-070-fil-crmx","E070FilCrmxDto":"./services/current-collaborator/models/e-070-fil-crmx-dto","E070FilDto":"./services/current-collaborator/models/e-070-fil-dto","Squad":"./services/current-collaborator/models/squad","SquadDto":"./services/current-collaborator/models/squad-dto","User":"./services/current-collaborator/models/user","UserDto":"./services/current-collaborator/models/user-dto","StandardFiltersModule":"./services/standard-filters/standard filters.module","StandardFiltersService":"./services/standard-filters/standard filters.service","ɵa":"./services/current-collaborator","ɵb":"./services/current-collaborator"},"importAs":"@senior-gestao-relacionamento/angular-components"}
|
|
@@ -4,10 +4,10 @@ export interface CollaboratorDto {
|
|
|
4
4
|
user?: any;
|
|
5
5
|
name: string;
|
|
6
6
|
email: string;
|
|
7
|
-
consolidatedLevel?: string;
|
|
8
7
|
leader?: any;
|
|
9
8
|
active: boolean;
|
|
10
9
|
visible: boolean;
|
|
10
|
+
consolidatedLevel?: string;
|
|
11
11
|
branches?: any[];
|
|
12
12
|
squads?: any[];
|
|
13
13
|
createdBy?: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Collaborator } from './collaborator';
|
|
2
|
+
import { E070FilCrmx } from './e-070-fil-crmx';
|
|
3
|
+
import { CollaboratorE070FilCrmxDto } from './collaborator-e-070-fil-crmx-dto';
|
|
4
|
+
export declare class CollaboratorE070FilCrmx {
|
|
5
|
+
id?: string;
|
|
6
|
+
collaborator?: Collaborator;
|
|
7
|
+
e070filCrmx: E070FilCrmx;
|
|
8
|
+
master: boolean;
|
|
9
|
+
createdBy?: string;
|
|
10
|
+
createdAt?: Date;
|
|
11
|
+
changedBy?: string;
|
|
12
|
+
changedAt?: Date;
|
|
13
|
+
custom?: any;
|
|
14
|
+
static fromDto(collaboratorE070FilCrmxDto: CollaboratorE070FilCrmxDto, originEntity?: string): CollaboratorE070FilCrmx;
|
|
15
|
+
static toDto(collaboratorE070FilCrmx: CollaboratorE070FilCrmx, originEntity?: string): CollaboratorE070FilCrmxDto;
|
|
16
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { User } from "./user";
|
|
2
|
-
import {
|
|
2
|
+
import { CollaboratorE070FilCrmx } from "./collaborator-e-070-fil-crmx";
|
|
3
3
|
import { CollaboratorSquad } from "./collaborator-squad";
|
|
4
4
|
import { CollaboratorDto } from "./collaborator-dto";
|
|
5
5
|
export declare class Collaborator {
|
|
@@ -8,11 +8,11 @@ export declare class Collaborator {
|
|
|
8
8
|
user?: User;
|
|
9
9
|
name: string;
|
|
10
10
|
email: string;
|
|
11
|
-
consolidatedLevel?: string;
|
|
12
11
|
leader?: Collaborator;
|
|
13
12
|
active: boolean;
|
|
14
13
|
visible: boolean;
|
|
15
|
-
|
|
14
|
+
consolidatedLevel?: string;
|
|
15
|
+
branches?: CollaboratorE070FilCrmx[];
|
|
16
16
|
squads?: CollaboratorSquad[];
|
|
17
17
|
createdBy?: string;
|
|
18
18
|
createdAt?: Date;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { E070EmpDto } from './e-070-emp-dto';
|
|
2
|
+
export declare class E070Emp {
|
|
3
|
+
id?: string;
|
|
4
|
+
codEmp: string;
|
|
5
|
+
nomEmp: string;
|
|
6
|
+
static fromDto(e070EmpDto: E070EmpDto, originEntity?: string): E070Emp;
|
|
7
|
+
static toDto(e070Emp: E070Emp, originEntity?: string): E070EmpDto;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { E070Fil } from './e-070-fil';
|
|
2
|
+
import { E070FilCrmxDto } from './e-070-fil-crmx-dto';
|
|
3
|
+
export declare class E070FilCrmx {
|
|
4
|
+
id?: string;
|
|
5
|
+
active: boolean;
|
|
6
|
+
e070fil: E070Fil;
|
|
7
|
+
static fromDto(e070FilCrmxDto: E070FilCrmxDto, originEntity?: string): E070FilCrmx;
|
|
8
|
+
static toDto(e070FilCrmx: E070FilCrmx, originEntity?: string): E070FilCrmxDto;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { E070Emp } from './e-070-emp';
|
|
2
|
+
import { E070FilDto } from './e-070-fil-dto';
|
|
3
|
+
export declare class E070Fil {
|
|
4
|
+
id?: string;
|
|
5
|
+
codFil: number;
|
|
6
|
+
nomFil: string;
|
|
7
|
+
e070emp: E070Emp;
|
|
8
|
+
static fromDto(e070FilDto: E070FilDto, originEntity?: string): E070Fil;
|
|
9
|
+
static toDto(e070Fil: E070Fil, originEntity?: string): E070FilDto;
|
|
10
|
+
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
export * from './branch';
|
|
2
|
-
export * from './branch-dto';
|
|
3
1
|
export * from './collaborator';
|
|
4
2
|
export * from './collaborator-dto';
|
|
5
|
-
export * from './collaborator-
|
|
6
|
-
export * from './collaborator-
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
3
|
+
export * from './collaborator-e-070-fil-crmx';
|
|
4
|
+
export * from './collaborator-e-070-fil-crmx-dto';
|
|
5
|
+
export * from './collaborator-squad';
|
|
6
|
+
export * from './collaborator-squad-dto';
|
|
7
|
+
export * from './e-070-emp';
|
|
8
|
+
export * from './e-070-emp-dto';
|
|
9
|
+
export * from './e-070-fil';
|
|
10
|
+
export * from './e-070-fil-crmx';
|
|
11
|
+
export * from './e-070-fil-crmx-dto';
|
|
12
|
+
export * from './e-070-fil-dto';
|
|
9
13
|
export * from './squad';
|
|
10
14
|
export * from './squad-dto';
|
|
11
15
|
export * from './user';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CurrentCollaboratorService } from "../current-collaborator";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
export declare class StandardFiltersService {
|
|
4
|
+
private readonly currentCollaboratorService;
|
|
5
|
+
constructor(currentCollaboratorService: CurrentCollaboratorService);
|
|
6
|
+
addFilterE070emp(filterQuery: string, alias: string): Observable<string>;
|
|
7
|
+
addFilterE070fil(filterQuery: string, alias: string): Observable<string>;
|
|
8
|
+
addFilterActive(filterQuery: string, alias: string): string;
|
|
9
|
+
addFilter(filterQuery: string, filter: string): string;
|
|
10
|
+
addFilterIn(filterQuery: string, alias: string, field: string, values: any[]): string;
|
|
11
|
+
private addAlias;
|
|
12
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export declare class StorageService {
|
|
2
|
-
static
|
|
3
|
-
static
|
|
4
|
-
static
|
|
2
|
+
static getUser(): any;
|
|
3
|
+
static getUserId(): string;
|
|
4
|
+
static store(key: string, value: any): void;
|
|
5
|
+
static get(key: string): any;
|
|
5
6
|
private static getComSeniorToken;
|
|
6
7
|
static getBaseUrl(): string;
|
|
7
8
|
static getTenantDomain(): string;
|
|
@@ -9,4 +10,5 @@ export declare class StorageService {
|
|
|
9
10
|
static getUsername(): string;
|
|
10
11
|
static getLogin(): string;
|
|
11
12
|
static getToken(): string;
|
|
13
|
+
static isUserAdmin(): boolean;
|
|
12
14
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJhbmNoLWR0by5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzZW5pb3ItZ2VzdGFvLXJlbGFjaW9uYW1lbnRvL2FuZ3VsYXItY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInNlcnZpY2VzL2N1cnJlbnQtY29sbGFib3JhdG9yL21vZGVscy9icmFuY2gtZHRvLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIEJyYW5jaER0byB7XG4gICAgaWQ/OiBzdHJpbmc7XG4gICAgY29tcGFueT86IGFueTtcbiAgICBjb2RlOiBzdHJpbmc7XG4gICAgbmFtZTogc3RyaW5nO1xuICAgIG1hc3RlcjogYm9vbGVhbjtcbiAgICBhY3RpdmU6IGJvb2xlYW47XG59XG4iXX0=
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Company } from "./company";
|
|
2
|
-
export class Branch {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.master = false;
|
|
5
|
-
this.active = false;
|
|
6
|
-
}
|
|
7
|
-
static fromDto(branchDto, originEntity) {
|
|
8
|
-
const model = Object.assign({}, branchDto);
|
|
9
|
-
const lookupSeparator = ' - ';
|
|
10
|
-
const displayFields = ['company.code', 'company.name', 'code', 'name'];
|
|
11
|
-
model.label = displayFields.map((field) => model[field]).join(lookupSeparator);
|
|
12
|
-
if (originEntity !== 'Company' && model.company) {
|
|
13
|
-
model.company = Company.fromDto(model.company, 'Branch');
|
|
14
|
-
}
|
|
15
|
-
return model;
|
|
16
|
-
}
|
|
17
|
-
static toDto(branch, originEntity) {
|
|
18
|
-
const dto = Object.assign({}, branch);
|
|
19
|
-
delete dto.label;
|
|
20
|
-
if (originEntity !== 'Company' && dto.company) {
|
|
21
|
-
dto.company = Company.toDto(dto.company, 'Branch');
|
|
22
|
-
}
|
|
23
|
-
return dto;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJhbmNoLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHNlbmlvci1nZXN0YW8tcmVsYWNpb25hbWVudG8vYW5ndWxhci1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsic2VydmljZXMvY3VycmVudC1jb2xsYWJvcmF0b3IvbW9kZWxzL2JyYW5jaC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBR3BDLE1BQU0sT0FBTyxNQUFNO0lBQW5CO1FBS1csV0FBTSxHQUFZLEtBQUssQ0FBQztRQUN4QixXQUFNLEdBQVksS0FBSyxDQUFDO0lBNEJuQyxDQUFDO0lBMUJVLE1BQU0sQ0FBQyxPQUFPLENBQUMsU0FBb0IsRUFBRSxZQUFxQjtRQUM3RCxNQUFNLEtBQUsscUJBQWEsU0FBUyxDQUFFLENBQUM7UUFFcEMsTUFBTSxlQUFlLEdBQUcsS0FBSyxDQUFDO1FBQzlCLE1BQU0sYUFBYSxHQUFHLENBQUMsY0FBYyxFQUFFLGNBQWMsRUFBRSxNQUFNLEVBQUUsT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R0by5jb21wYW55KSB7XG4gICAgICAgICAgICBkdG8uY29tcGFueSA9IENvbXBhbnkudG9EdG8oZHRvLmNvbXBhbnksICdCcmFuY2gnKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBkdG87XG4gICAgfVxufVxuIl19
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGFib3JhdG9yLWJyYW5jaC1kdG8uanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac2VuaW9yLWdlc3Rhby1yZWxhY2lvbmFtZW50by9hbmd1bGFyLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJzZXJ2aWNlcy9jdXJyZW50LWNvbGxhYm9yYXRvci9tb2RlbHMvY29sbGFib3JhdG9yLWJyYW5jaC1kdG8udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgQ29sbGFib3JhdG9yQnJhbmNoRHRvIHtcbiAgICBpZD86IHN0cmluZztcbiAgICBjb2xsYWJvcmF0b3I/OiBhbnk7XG4gICAgYnJhbmNoOiBhbnk7XG4gICAgbWFzdGVyOiBib29sZWFuO1xuICAgIGNyZWF0ZWRCeT86IHN0cmluZztcbiAgICBjcmVhdGVkQXQ/OiBEYXRlO1xuICAgIGNoYW5nZWRCeT86IHN0cmluZztcbiAgICBjaGFuZ2VkQXQ/OiBEYXRlO1xuICAgIGN1c3RvbT86IGFueTtcbn1cbiJdfQ==
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import * as moment from 'moment';
|
|
2
|
-
import { Collaborator } from "./collaborator";
|
|
3
|
-
import { Branch } from "./branch";
|
|
4
|
-
export class CollaboratorBranch {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.master = false;
|
|
7
|
-
}
|
|
8
|
-
static fromDto(collaboratorBranchDto, originEntity) {
|
|
9
|
-
const model = Object.assign({}, collaboratorBranchDto);
|
|
10
|
-
model.createdAt = model.createdAt && moment(model.createdAt).toDate();
|
|
11
|
-
model.changedAt = model.changedAt && moment(model.changedAt).toDate();
|
|
12
|
-
const lookupSeparator = ' - ';
|
|
13
|
-
const displayFields = ['branch.company.code', 'branch.company.name', 'branch.code', 'branch.name', 'master'];
|
|
14
|
-
model.label = displayFields.map((field) => model[field]).join(lookupSeparator);
|
|
15
|
-
if (originEntity !== 'Collaborator' && model.collaborator) {
|
|
16
|
-
model.collaborator = Collaborator.fromDto(model.collaborator, 'CollaboratorBranch');
|
|
17
|
-
}
|
|
18
|
-
if (originEntity !== 'Branch' && model.branch) {
|
|
19
|
-
model.branch = Branch.fromDto(model.branch, 'CollaboratorBranch');
|
|
20
|
-
}
|
|
21
|
-
return model;
|
|
22
|
-
}
|
|
23
|
-
static toDto(collaboratorBranch, originEntity) {
|
|
24
|
-
const dto = Object.assign({}, collaboratorBranch);
|
|
25
|
-
dto.createdAt = dto.createdAt && moment(dto.createdAt).format();
|
|
26
|
-
dto.changedAt = dto.changedAt && moment(dto.changedAt).format();
|
|
27
|
-
delete dto.label;
|
|
28
|
-
if (originEntity !== 'Collaborator' && dto.collaborator) {
|
|
29
|
-
dto.collaborator = Collaborator.toDto(dto.collaborator, 'CollaboratorBranch');
|
|
30
|
-
}
|
|
31
|
-
if (originEntity !== 'Branch' && dto.branch) {
|
|
32
|
-
dto.branch = Branch.toDto(dto.branch, 'CollaboratorBranch');
|
|
33
|
-
}
|
|
34
|
-
return dto;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGFib3JhdG9yLWJyYW5jaC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzZW5pb3ItZ2VzdGFvLXJlbGFjaW9uYW1lbnRvL2FuZ3VsYXItY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInNlcnZpY2VzL2N1cnJlb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yYXRvckJyYW5jaDtcbiAgICB9XG5cbiAgICBwdWJsaWMgc3RhdGljIHRvRHRvKGNvbGxhYm9yYXRvckJyYW5jaDogQ29sbGFib3JhdG9yQnJhbmNoLCBvcmlnaW5FbnRpdHk/OiBzdHJpbmcpOiBDb2xsYWJvcmF0b3JCcmFuY2hEdG8ge1xuICAgICAgICBjb25zdCBkdG86IGFueSA9IHsgLi4uY29sbGFib3JhdG9yQnJhbmNoIH07XG5cbiAgICAgICAgZHRvLmNyZWF0ZWRBdCA9IGR0by5jcmVhdGVkQXQgJiYgbW9tZW50KGR0by5jcmVhdGVkQXQpLmZvcm1hdCgpO1xuICAgICAgICBkdG8uY2hhbmdlZEF0ID0gZHRvLmNoYW5nZWRBdCAmJiBtb21lbnQoZHRvLmNoYW5nZWRBdCkuZm9ybWF0KCk7XG5cbiAgICAgICAgZGVsZXRlIGR0by5sYWJlbDtcblxuICAgICAgICBpZiAob3JpZ2luRW50aXR5ICE9PSAnQ29sbGFib3JhdG9yJyAmJiBkdG8uY29sbGFib3JhdG9yKSB7XG4gICAgICAgICAgICBkdG8uY29sbGFib3JhdG9yID0gQ29sbGFib3JhdG9yLnRvRHRvKGR0by5jb2xsYWJvcmF0b3IsICdDb2xsYWJvcmF0b3JCcmFuY2gnKTtcbiAgICAgICAgfVxuICAgICAgICBpZiAob3JpZ2luRW50aXR5ICE9PSAnQnJhbmNoJyAmJiBkdG8uYnJhbmNoKSB7XG4gICAgICAgICAgICBkdG8uYnJhbmNoID0gQnJhbmNoLnRvRHRvKGR0by5icmFuY2gsICdDb2xsYWJvcmF0b3JCcmFuY2gnKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBkdG87XG4gICAgfVxufVxuIl19
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGFueS1kdG8uanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac2VuaW9yLWdlc3Rhby1yZWxhY2lvbmFtZW50by9hbmd1bGFyLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJzZXJ2aWNlcy9jdXJyZW50LWNvbGxhYm9yYXRvci9tb2RlbHMvY29tcGFueS1kdG8udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgQ29tcGFueUR0byB7XG4gICAgaWQ/OiBzdHJpbmc7XG4gICAgY29kZTogc3RyaW5nO1xuICAgIG5hbWU6IHN0cmluZztcbiAgICBhY3RpdmU6IGJvb2xlYW47XG59XG4iXX0=
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export class Company {
|
|
2
|
-
constructor() {
|
|
3
|
-
this.active = false;
|
|
4
|
-
}
|
|
5
|
-
static fromDto(companyDto, originEntity) {
|
|
6
|
-
const model = Object.assign({}, companyDto);
|
|
7
|
-
const lookupSeparator = ' - ';
|
|
8
|
-
const displayFields = ['code', 'name'];
|
|
9
|
-
model.label = displayFields.map((field) => model[field]).join(lookupSeparator);
|
|
10
|
-
return model;
|
|
11
|
-
}
|
|
12
|
-
static toDto(company, originEntity) {
|
|
13
|
-
const dto = Object.assign({}, company);
|
|
14
|
-
delete dto.label;
|
|
15
|
-
return dto;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGFueS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzZW5pb3ItZ2VzdGFvLXJlbGFjaW9uYW1lbnRvL2FuZ3VsYXItY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInNlcnZpY2VzL2N1cnJlbnQtY29sbGFib3JhdG9yL21vZGVscy9jb21wYW55LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdBLE1BQU0sT0FBTyxPQUFPO0lBQXBCO1FBSVcsV0FBTSxHQUFZLEtBQUssQ0FB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FueSA9IHsgLi4uY29tcGFueUR0byB9O1xuXG4gICAgICAgIGNvbnN0IGxvb2t1cFNlcGFyYXRvciA9ICcgLSAnO1xuICAgICAgICBjb25zdCBkaXNwbGF5RmllbGRzID0gWydjb2RlJywgJ25hbWUnXTtcblxuICAgICAgICBtb2RlbC5sYWJlbCA9IGRpc3BsYXlGaWVsZHMubWFwKChmaWVsZCkgPT4gbW9kZWxbZmllbGRdKS5qb2luKGxvb2t1cFNlcGFyYXRvcik7XG5cbiAgICAgICAgcmV0dXJuIG1vZGVsIGFzIENvbXBhbnk7XG4gICAgfVxuXG4gICAgcHVibGljIHN0YXRpYyB0b0R0byhjb21wYW55OiBDb21wYW55LCBvcmlnaW5FbnRpdHk/OiBzdHJpbmcpOiBDb21wYW55RHRvIHtcbiAgICAgICAgY29uc3QgZHRvOiBhbnkgPSB7IC4uLmNvbXBhbnkgfTtcblxuICAgICAgICBkZWxldGUgZHRvLmxhYmVsO1xuXG4gICAgICAgIHJldHVybiBkdG87XG4gICAgfVxufVxuIl19
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJhbmNoLWR0by5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzZW5pb3ItZ2VzdGFvLXJlbGFjaW9uYW1lbnRvL2FuZ3VsYXItY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInNlcnZpY2VzL2N1cnJlbnQtY29sbGFib3JhdG9yL21vZGVscy9icmFuY2gtZHRvLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIEJyYW5jaER0byB7XG4gICAgaWQ/OiBzdHJpbmc7XG4gICAgY29tcGFueT86IGFueTtcbiAgICBjb2RlOiBzdHJpbmc7XG4gICAgbmFtZTogc3RyaW5nO1xuICAgIG1hc3RlcjogYm9vbGVhbjtcbiAgICBhY3RpdmU6IGJvb2xlYW47XG59XG4iXX0=
|