@controleonline/ui-customers 1.0.82 → 1.0.83
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/package.json
CHANGED
|
@@ -47,6 +47,10 @@ export const buildEmployeesContext = routeParams => {
|
|
|
47
47
|
modalTitleByType,
|
|
48
48
|
detailsRouteName: 'EmployeeDetails',
|
|
49
49
|
useStoreExternalFilter: true,
|
|
50
|
+
// Collaborators = PF people linked to the currentCompany (PJ) via peopleLink,
|
|
51
|
+
// whatever the link type, until a concrete link type is picked in the filter.
|
|
52
|
+
peopleType: 'F',
|
|
53
|
+
anyLinkType: true,
|
|
50
54
|
detailsRouteParams: (person, selectedLinkType) => ({
|
|
51
55
|
employeeId: normalizeEntityId(person?.id ?? person?.['@id']),
|
|
52
56
|
contextKey: selectedLinkType === 'all' ? '' : String(selectedLinkType || ''),
|
|
@@ -29,6 +29,8 @@ describe('employees page context', () => {
|
|
|
29
29
|
expect(context.selectedContext).toBe('all')
|
|
30
30
|
expect(context.defaultPeopleType).toBe('J')
|
|
31
31
|
expect(context.modalTitleByType.courier).toBe('Cadastro de Entregador')
|
|
32
|
+
expect(context.peopleType).toBe('F')
|
|
33
|
+
expect(context.anyLinkType).toBe(true)
|
|
32
34
|
})
|
|
33
35
|
|
|
34
36
|
it('keeps courier as the default physical-person role when selected directly', () => {
|