@hed-hog/operations 0.0.328 → 0.0.330
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/dist/controllers/operations-tasks.controller.d.ts +5 -5
- package/dist/operations.service.d.ts +5 -5
- package/dist/operations.service.d.ts.map +1 -1
- package/dist/operations.service.js +24 -4
- package/dist/operations.service.js.map +1 -1
- package/dist/operations.service.spec.js +1 -1
- package/dist/operations.service.spec.js.map +1 -1
- package/hedhog/data/dashboard_component_role.yaml +8 -8
- package/hedhog/data/dashboard_role.yaml +1 -1
- package/hedhog/data/menu.yaml +6 -16
- package/hedhog/data/role.yaml +1 -1
- package/hedhog/data/route.yaml +55 -55
- package/hedhog/frontend/app/_components/async-options-combobox.tsx.ejs +15 -9
- package/hedhog/frontend/app/_components/collaborator-form-screen.tsx.ejs +7 -7
- package/hedhog/frontend/app/_components/department-picker.tsx.ejs +125 -0
- package/hedhog/frontend/app/_components/department-select-with-create.tsx.ejs +64 -325
- package/hedhog/frontend/app/_components/project-costs-section.tsx.ejs +51 -81
- package/hedhog/frontend/app/_components/project-details-screen.tsx.ejs +39 -11
- package/hedhog/frontend/app/_components/project-form-screen.tsx.ejs +37 -20
- package/hedhog/frontend/app/_components/system-user-picker.tsx.ejs +198 -0
- package/hedhog/frontend/app/_components/system-user-select-with-create.tsx.ejs +107 -569
- package/hedhog/frontend/app/_components/task-file-attachments.tsx.ejs +10 -8
- package/hedhog/frontend/app/_lib/hooks/use-values-visibility.ts.ejs +61 -0
- package/hedhog/frontend/app/approvals/page.tsx.ejs +5 -1
- package/hedhog/frontend/app/collaborators/page.tsx.ejs +68 -34
- package/hedhog/frontend/app/my-projects/page.tsx.ejs +45 -6
- package/hedhog/frontend/app/my-tasks/page.tsx.ejs +1 -1
- package/hedhog/frontend/app/projects/page.tsx.ejs +60 -5
- package/hedhog/frontend/app/reports/collaborators/page.tsx.ejs +65 -52
- package/hedhog/frontend/app/reports/projects/page.tsx.ejs +80 -82
- package/hedhog/frontend/app/schedule-adjustments/page.tsx.ejs +7 -1
- package/hedhog/frontend/messages/en.json +284 -8
- package/hedhog/frontend/messages/operations/en.json +67 -3
- package/hedhog/frontend/messages/operations/pt.json +67 -3
- package/hedhog/frontend/messages/pt.json +282 -6
- package/package.json +5 -5
- package/src/operations.service.spec.ts +1 -1
- package/src/operations.service.ts +25 -5
- package/hedhog/frontend/app/_components/collaborator-details-screen.tsx.ejs +0 -476
- package/hedhog/frontend/app/_components/collaborator-select-with-create.tsx.ejs +0 -261
- package/hedhog/frontend/app/_components/contract-content-editor.tsx.ejs +0 -258
- package/hedhog/frontend/app/_components/person-select-with-create.tsx.ejs +0 -1
- package/hedhog/frontend/messages/en.json.ejs +0 -2060
- package/hedhog/frontend/messages/operations/operations/en.json +0 -2102
- package/hedhog/frontend/messages/operations/operations/pt.json +0 -2111
- package/hedhog/frontend/messages/pt.json.ejs +0 -2067
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.d.ts +0 -29
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.js +0 -95
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.tsx +0 -233
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.d.ts +0 -10
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.js +0 -577
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.tsx +0 -868
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.js +0 -337
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.tsx +0 -476
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.d.ts +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.js +0 -1348
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.tsx +0 -2233
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.d.ts +0 -12
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.js +0 -162
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.tsx +0 -261
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.d.ts +0 -18
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.js +0 -145
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.tsx +0 -258
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.js +0 -223
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.tsx +0 -342
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.d.ts +0 -58
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.js +0 -438
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.tsx +0 -698
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.d.ts +0 -20
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.js +0 -233
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.tsx +0 -392
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.js +0 -814
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.tsx +0 -1288
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.d.ts +0 -21
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.js +0 -174
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.tsx +0 -306
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.d.ts +0 -10
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.js +0 -12
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.tsx +0 -29
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.d.ts +0 -15
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.js +0 -501
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.tsx +0 -853
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.js +0 -847
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.tsx +0 -1340
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.js +0 -2930
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.tsx +0 -4378
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.d.ts +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.js +0 -1013
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.tsx +0 -1745
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.d.ts +0 -13
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.js +0 -38
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.tsx +0 -74
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.d.ts +0 -7
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.js +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.tsx +0 -15
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.d.ts +0 -18
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.js +0 -406
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.tsx +0 -660
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.d.ts +0 -26
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.js +0 -332
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.tsx +0 -518
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.js +0 -255
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.tsx +0 -388
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.d.ts +0 -10
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.js +0 -131
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.tsx +0 -214
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.d.ts +0 -108
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.js +0 -162
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.ts +0 -428
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.d.ts +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.js +0 -36
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.ts +0 -44
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.d.ts +0 -837
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.js +0 -3
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.ts +0 -861
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.d.ts +0 -16
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.js +0 -182
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.ts +0 -250
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.js +0 -51
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.ts +0 -61
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.js +0 -954
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.tsx +0 -1277
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.js +0 -488
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.tsx +0 -805
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.js +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.tsx +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.js +0 -612
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.tsx +0 -939
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.tsx +0 -17
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.js +0 -348
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.tsx +0 -536
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.js +0 -401
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.tsx +0 -607
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.d.ts +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.js +0 -7
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.tsx +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.js +0 -321
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.tsx +0 -440
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.js +0 -939
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.tsx +0 -1499
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.d.ts +0 -29
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.js +0 -95
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.tsx +0 -233
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.d.ts +0 -10
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.js +0 -577
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.tsx +0 -868
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.js +0 -337
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.tsx +0 -476
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.d.ts +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.js +0 -1348
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.tsx +0 -2233
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.d.ts +0 -12
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.js +0 -162
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.tsx +0 -261
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.d.ts +0 -18
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.js +0 -145
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.tsx +0 -258
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.js +0 -223
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.tsx +0 -342
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.d.ts +0 -58
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.js +0 -438
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.tsx +0 -698
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.d.ts +0 -20
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.js +0 -233
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.tsx +0 -392
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.js +0 -814
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.tsx +0 -1288
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.d.ts +0 -21
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.js +0 -174
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.tsx +0 -306
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.d.ts +0 -10
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.js +0 -12
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.tsx +0 -29
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.d.ts +0 -15
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.js +0 -501
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.tsx +0 -853
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.js +0 -459
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.tsx +0 -598
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.js +0 -876
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.tsx +0 -1368
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.js +0 -2930
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.tsx +0 -4378
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.d.ts +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.js +0 -1013
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.tsx +0 -1745
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.d.ts +0 -13
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.js +0 -38
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.tsx +0 -74
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.d.ts +0 -7
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.js +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.tsx +0 -15
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.d.ts +0 -18
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.js +0 -406
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.tsx +0 -660
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.d.ts +0 -26
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.js +0 -332
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.tsx +0 -518
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.js +0 -255
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.tsx +0 -388
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.d.ts +0 -10
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.js +0 -131
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.tsx +0 -214
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.d.ts +0 -108
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.js +0 -162
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.ts +0 -428
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.d.ts +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.js +0 -36
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.ts +0 -44
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.d.ts +0 -837
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.js +0 -3
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.ts +0 -861
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.d.ts +0 -16
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.js +0 -182
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.ts +0 -250
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.js +0 -51
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.ts +0 -61
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.js +0 -954
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.tsx +0 -1277
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.js +0 -488
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.tsx +0 -805
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.js +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.tsx +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.js +0 -612
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.tsx +0 -939
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.tsx +0 -17
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.js +0 -348
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.tsx +0 -536
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.js +0 -401
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.tsx +0 -607
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.d.ts +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.js +0 -7
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.tsx +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.js +0 -321
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.tsx +0 -440
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.js +0 -939
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.tsx +0 -1499
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.js +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.tsx +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.js +0 -436
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.tsx +0 -675
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.js +0 -563
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.tsx +0 -846
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.tsx +0 -10
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.js +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.tsx +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.js +0 -492
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.tsx +0 -757
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.js +0 -342
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.tsx +0 -430
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.js +0 -338
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.tsx +0 -428
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.js +0 -660
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.tsx +0 -992
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.js +0 -515
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.tsx +0 -707
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.js +0 -1141
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.tsx +0 -1705
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.js +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.tsx +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.js +0 -436
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.tsx +0 -675
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.js +0 -563
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.tsx +0 -846
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.js +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.tsx +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.js +0 -492
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.tsx +0 -757
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.js +0 -342
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.tsx +0 -430
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.js +0 -338
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.tsx +0 -428
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.js +0 -660
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.tsx +0 -992
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.js +0 -515
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.tsx +0 -707
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.js +0 -1141
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.tsx +0 -1705
package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.js
DELETED
|
@@ -1,612 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.default = OperationsCollaboratorsPage;
|
|
8
|
-
const entity_list_1 = require("@/components/entity-list");
|
|
9
|
-
const avatar_1 = require("@/components/ui/avatar");
|
|
10
|
-
const button_1 = require("@/components/ui/button");
|
|
11
|
-
const card_1 = require("@/components/ui/card");
|
|
12
|
-
const kpi_cards_grid_1 = require("@/components/ui/kpi-cards-grid");
|
|
13
|
-
const sheet_1 = require("@/components/ui/sheet");
|
|
14
|
-
const table_1 = require("@/components/ui/table");
|
|
15
|
-
const toggle_group_1 = require("@/components/ui/toggle-group");
|
|
16
|
-
const tooltip_1 = require("@/components/ui/tooltip");
|
|
17
|
-
const next_app_provider_1 = require("@hed-hog/next-app-provider");
|
|
18
|
-
const lucide_react_1 = require("lucide-react");
|
|
19
|
-
const next_intl_1 = require("next-intl");
|
|
20
|
-
const link_1 = __importDefault(require("next/link"));
|
|
21
|
-
const navigation_1 = require("next/navigation");
|
|
22
|
-
const react_1 = require("react");
|
|
23
|
-
const collaborator_form_screen_1 = require("../_components/collaborator-form-screen");
|
|
24
|
-
const operations_header_1 = require("../_components/operations-header");
|
|
25
|
-
const status_badge_1 = require("../_components/status-badge");
|
|
26
|
-
const api_1 = require("../_lib/api");
|
|
27
|
-
const use_operations_access_1 = require("../_lib/hooks/use-operations-access");
|
|
28
|
-
const format_1 = require("../_lib/utils/format");
|
|
29
|
-
const COLLABORATOR_VIEW_STORAGE_KEY = 'operations-collaborators-view-mode';
|
|
30
|
-
function getPersonAvatarUrl(avatarId) {
|
|
31
|
-
return typeof avatarId === 'number' && avatarId > 0
|
|
32
|
-
? `${process.env.NEXT_PUBLIC_API_BASE_URL}/person/avatar/${avatarId}`
|
|
33
|
-
: '/placeholder.png';
|
|
34
|
-
}
|
|
35
|
-
function getInitials(value) {
|
|
36
|
-
const parts = String(value !== null && value !== void 0 ? value : '')
|
|
37
|
-
.trim()
|
|
38
|
-
.split(/\s+/)
|
|
39
|
-
.filter(Boolean)
|
|
40
|
-
.slice(0, 2);
|
|
41
|
-
if (!parts.length) {
|
|
42
|
-
return '??';
|
|
43
|
-
}
|
|
44
|
-
return parts.map((part) => { var _a, _b; return (_b = (_a = part[0]) === null || _a === void 0 ? void 0 : _a.toUpperCase()) !== null && _b !== void 0 ? _b : ''; }).join('');
|
|
45
|
-
}
|
|
46
|
-
function OperationsCollaboratorsPage() {
|
|
47
|
-
var _a, _b, _c, _d;
|
|
48
|
-
const t = (0, next_intl_1.useTranslations)('operations.CollaboratorsPage');
|
|
49
|
-
const formT = (0, next_intl_1.useTranslations)('operations.CollaboratorFormPage');
|
|
50
|
-
const commonT = (0, next_intl_1.useTranslations)('operations.Common');
|
|
51
|
-
const { request, showToastHandler, currentLocaleCode, getSettingValue } = (0, next_app_provider_1.useApp)();
|
|
52
|
-
const access = (0, use_operations_access_1.useOperationsAccess)();
|
|
53
|
-
const router = (0, navigation_1.useRouter)();
|
|
54
|
-
const pathname = (0, navigation_1.usePathname)();
|
|
55
|
-
const searchParams = (0, navigation_1.useSearchParams)();
|
|
56
|
-
const [search, setSearch] = (0, react_1.useState)('');
|
|
57
|
-
const [statusFilter, setStatusFilter] = (0, react_1.useState)('all');
|
|
58
|
-
const [typeFilter, setTypeFilter] = (0, react_1.useState)('all');
|
|
59
|
-
const [page, setPage] = (0, react_1.useState)(1);
|
|
60
|
-
const [pageSize, setPageSize] = (0, react_1.useState)(12);
|
|
61
|
-
const [viewMode, setViewMode] = (0, react_1.useState)(() => {
|
|
62
|
-
if (typeof window === 'undefined') {
|
|
63
|
-
return 'table';
|
|
64
|
-
}
|
|
65
|
-
const savedViewMode = window.localStorage.getItem(COLLABORATOR_VIEW_STORAGE_KEY);
|
|
66
|
-
return savedViewMode === 'cards' ? 'cards' : 'table';
|
|
67
|
-
});
|
|
68
|
-
const [isCreateSheetOpen, setIsCreateSheetOpen] = (0, react_1.useState)(false);
|
|
69
|
-
const editParam = searchParams.get('edit');
|
|
70
|
-
const editingCollaboratorId = editParam && /^\d+$/.test(editParam) ? Number(editParam) : null;
|
|
71
|
-
const updateSheetQuery = (collaboratorId) => {
|
|
72
|
-
const params = new URLSearchParams(searchParams.toString());
|
|
73
|
-
if (collaboratorId && collaboratorId > 0) {
|
|
74
|
-
params.set('edit', String(collaboratorId));
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
params.delete('edit');
|
|
78
|
-
}
|
|
79
|
-
const nextUrl = params.size ? `${pathname}?${params.toString()}` : pathname;
|
|
80
|
-
router.replace(nextUrl, { scroll: false });
|
|
81
|
-
};
|
|
82
|
-
const openCreateSheet = () => {
|
|
83
|
-
setIsCreateSheetOpen(true);
|
|
84
|
-
updateSheetQuery(null);
|
|
85
|
-
};
|
|
86
|
-
const openEditSheet = (collaboratorId) => {
|
|
87
|
-
setIsCreateSheetOpen(false);
|
|
88
|
-
updateSheetQuery(collaboratorId);
|
|
89
|
-
};
|
|
90
|
-
const closeFormSheet = () => {
|
|
91
|
-
setIsCreateSheetOpen(false);
|
|
92
|
-
if (editingCollaboratorId !== null) {
|
|
93
|
-
updateSheetQuery(null);
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
const getStatusLabel = (value) => {
|
|
97
|
-
switch (value) {
|
|
98
|
-
case 'active':
|
|
99
|
-
return formT('options.statuses.active');
|
|
100
|
-
case 'on_leave':
|
|
101
|
-
return formT('options.statuses.on_leave');
|
|
102
|
-
case 'inactive':
|
|
103
|
-
return formT('options.statuses.inactive');
|
|
104
|
-
case 'draft':
|
|
105
|
-
return formT('options.statuses.draft');
|
|
106
|
-
default:
|
|
107
|
-
return (0, format_1.formatEnumLabel)(value);
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
const { data: collaboratorsResponse, refetch } = (0, next_app_provider_1.useQuery)({
|
|
111
|
-
queryKey: [
|
|
112
|
-
'operations-collaborators-list',
|
|
113
|
-
currentLocaleCode,
|
|
114
|
-
search,
|
|
115
|
-
statusFilter,
|
|
116
|
-
typeFilter,
|
|
117
|
-
page,
|
|
118
|
-
pageSize,
|
|
119
|
-
],
|
|
120
|
-
enabled: access.isCollaborator,
|
|
121
|
-
queryFn: () => {
|
|
122
|
-
const params = new URLSearchParams({
|
|
123
|
-
page: String(page),
|
|
124
|
-
pageSize: String(pageSize),
|
|
125
|
-
});
|
|
126
|
-
if (search.trim()) {
|
|
127
|
-
params.set('search', search.trim());
|
|
128
|
-
}
|
|
129
|
-
if (statusFilter !== 'all') {
|
|
130
|
-
params.set('status', statusFilter);
|
|
131
|
-
}
|
|
132
|
-
if (typeFilter !== 'all') {
|
|
133
|
-
params.set('collaboratorType', typeFilter);
|
|
134
|
-
}
|
|
135
|
-
return (0, api_1.fetchOperations)(request, `/operations/collaborators?${params.toString()}`);
|
|
136
|
-
},
|
|
137
|
-
placeholderData: (previous) => previous,
|
|
138
|
-
});
|
|
139
|
-
const { data: collaboratorTypes = [] } = (0, next_app_provider_1.useQuery)({
|
|
140
|
-
queryKey: ['operations-collaborator-types-list', currentLocaleCode],
|
|
141
|
-
enabled: access.isCollaborator,
|
|
142
|
-
queryFn: () => (0, api_1.fetchOperations)(request, '/operations/collaborator-types?active=true'),
|
|
143
|
-
});
|
|
144
|
-
const { data: collaboratorStats } = (0, next_app_provider_1.useQuery)({
|
|
145
|
-
queryKey: [
|
|
146
|
-
'operations-collaborators-stats',
|
|
147
|
-
currentLocaleCode,
|
|
148
|
-
search,
|
|
149
|
-
statusFilter,
|
|
150
|
-
typeFilter,
|
|
151
|
-
],
|
|
152
|
-
enabled: access.isCollaborator,
|
|
153
|
-
queryFn: () => {
|
|
154
|
-
const params = new URLSearchParams();
|
|
155
|
-
if (search.trim()) {
|
|
156
|
-
params.set('search', search.trim());
|
|
157
|
-
}
|
|
158
|
-
if (statusFilter !== 'all') {
|
|
159
|
-
params.set('status', statusFilter);
|
|
160
|
-
}
|
|
161
|
-
if (typeFilter !== 'all') {
|
|
162
|
-
params.set('collaboratorType', typeFilter);
|
|
163
|
-
}
|
|
164
|
-
const query = params.toString();
|
|
165
|
-
return (0, api_1.fetchOperations)(request, query
|
|
166
|
-
? `/operations/collaborators/stats?${query}`
|
|
167
|
-
: '/operations/collaborators/stats');
|
|
168
|
-
},
|
|
169
|
-
});
|
|
170
|
-
const getCollaboratorTypeLabel = (slug, fallbackName) => {
|
|
171
|
-
var _a;
|
|
172
|
-
if (fallbackName) {
|
|
173
|
-
return fallbackName;
|
|
174
|
-
}
|
|
175
|
-
const matchedType = collaboratorTypes.find((item) => item.slug === slug);
|
|
176
|
-
return (_a = matchedType === null || matchedType === void 0 ? void 0 : matchedType.name) !== null && _a !== void 0 ? _a : (0, format_1.formatEnumLabel)(slug);
|
|
177
|
-
};
|
|
178
|
-
const collaborators = (_a = collaboratorsResponse === null || collaboratorsResponse === void 0 ? void 0 : collaboratorsResponse.data) !== null && _a !== void 0 ? _a : [];
|
|
179
|
-
const filteredRows = collaborators;
|
|
180
|
-
const statsCards = (0, react_1.useMemo)(() => {
|
|
181
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
182
|
-
const withTooltip = (description, tooltip) => (<tooltip_1.TooltipProvider>
|
|
183
|
-
<tooltip_1.Tooltip>
|
|
184
|
-
<tooltip_1.TooltipTrigger asChild>
|
|
185
|
-
<span className="inline-flex cursor-default items-center gap-1">
|
|
186
|
-
{description}
|
|
187
|
-
<lucide_react_1.Info className="h-3 w-3 shrink-0 text-muted-foreground/60"/>
|
|
188
|
-
</span>
|
|
189
|
-
</tooltip_1.TooltipTrigger>
|
|
190
|
-
<tooltip_1.TooltipContent side="bottom" className="max-w-64 text-xs">
|
|
191
|
-
{tooltip}
|
|
192
|
-
</tooltip_1.TooltipContent>
|
|
193
|
-
</tooltip_1.Tooltip>
|
|
194
|
-
</tooltip_1.TooltipProvider>);
|
|
195
|
-
return [
|
|
196
|
-
{
|
|
197
|
-
key: 'total',
|
|
198
|
-
title: t('cards.total'),
|
|
199
|
-
description: withTooltip(t('cards.totalDescription'), t('cards.totalTooltip')),
|
|
200
|
-
value: (_a = collaboratorStats === null || collaboratorStats === void 0 ? void 0 : collaboratorStats.total) !== null && _a !== void 0 ? _a : 0,
|
|
201
|
-
icon: lucide_react_1.Users,
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
key: 'active',
|
|
205
|
-
title: t('cards.active'),
|
|
206
|
-
description: withTooltip(t('cards.activeDescription'), t('cards.activeTooltip')),
|
|
207
|
-
value: (_b = collaboratorStats === null || collaboratorStats === void 0 ? void 0 : collaboratorStats.active) !== null && _b !== void 0 ? _b : 0,
|
|
208
|
-
icon: lucide_react_1.UserCheck,
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
key: 'onLeave',
|
|
212
|
-
title: t('cards.onLeave'),
|
|
213
|
-
description: withTooltip(t('cards.onLeaveDescription'), t('cards.onLeaveTooltip')),
|
|
214
|
-
value: (_c = collaboratorStats === null || collaboratorStats === void 0 ? void 0 : collaboratorStats.onLeave) !== null && _c !== void 0 ? _c : 0,
|
|
215
|
-
icon: lucide_react_1.CalendarDays,
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
key: 'withContracts',
|
|
219
|
-
title: t('cards.withContracts'),
|
|
220
|
-
description: withTooltip(t('cards.withContractsDescription'), t('cards.withContractsTooltip')),
|
|
221
|
-
value: (_d = collaboratorStats === null || collaboratorStats === void 0 ? void 0 : collaboratorStats.withContracts) !== null && _d !== void 0 ? _d : 0,
|
|
222
|
-
icon: lucide_react_1.FileText,
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
key: 'totalSalary',
|
|
226
|
-
title: t('cards.totalSalary'),
|
|
227
|
-
description: withTooltip(t('cards.totalSalaryDescription'), t('cards.totalSalaryTooltip')),
|
|
228
|
-
value: (0, format_1.formatCurrency)((_e = collaboratorStats === null || collaboratorStats === void 0 ? void 0 : collaboratorStats.totalSalary) !== null && _e !== void 0 ? _e : 0, getSettingValue, currentLocaleCode),
|
|
229
|
-
icon: lucide_react_1.Wallet,
|
|
230
|
-
accentClassName: 'from-emerald-500/20 via-green-500/10 to-transparent',
|
|
231
|
-
iconContainerClassName: 'bg-emerald-500/10 text-emerald-700 dark:text-emerald-400',
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
key: 'totalCosts',
|
|
235
|
-
title: t('cards.totalCosts'),
|
|
236
|
-
description: withTooltip(t('cards.totalCostsDescription'), t('cards.totalCostsTooltip')),
|
|
237
|
-
value: (0, format_1.formatCurrency)((_f = collaboratorStats === null || collaboratorStats === void 0 ? void 0 : collaboratorStats.totalCosts) !== null && _f !== void 0 ? _f : 0, getSettingValue, currentLocaleCode),
|
|
238
|
-
icon: lucide_react_1.TrendingUp,
|
|
239
|
-
accentClassName: 'from-amber-500/20 via-yellow-500/10 to-transparent',
|
|
240
|
-
iconContainerClassName: 'bg-amber-500/10 text-amber-700 dark:text-amber-400',
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
key: 'avgSalaryPlusCosts',
|
|
244
|
-
title: t('cards.avgSalaryPlusCosts'),
|
|
245
|
-
description: withTooltip(t('cards.avgSalaryPlusCostsDescription'), t('cards.avgSalaryPlusCostsTooltip')),
|
|
246
|
-
value: (0, format_1.formatCurrency)((_g = collaboratorStats === null || collaboratorStats === void 0 ? void 0 : collaboratorStats.avgSalaryPlusCosts) !== null && _g !== void 0 ? _g : 0, getSettingValue, currentLocaleCode),
|
|
247
|
-
icon: lucide_react_1.Wallet,
|
|
248
|
-
accentClassName: 'from-violet-500/20 via-purple-500/10 to-transparent',
|
|
249
|
-
iconContainerClassName: 'bg-violet-500/10 text-violet-700 dark:text-violet-400',
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
key: 'avgSalaryPlusCostsPerCollaborator',
|
|
253
|
-
title: t('cards.avgSalaryPlusCostsPerCollaborator'),
|
|
254
|
-
description: withTooltip(t('cards.avgSalaryPlusCostsPerCollaboratorDescription'), t('cards.avgSalaryPlusCostsPerCollaboratorTooltip')),
|
|
255
|
-
value: (0, format_1.formatCurrency)((_h = collaboratorStats === null || collaboratorStats === void 0 ? void 0 : collaboratorStats.avgSalaryPlusCostsPerCollaborator) !== null && _h !== void 0 ? _h : 0, getSettingValue, currentLocaleCode),
|
|
256
|
-
icon: lucide_react_1.TrendingUp,
|
|
257
|
-
accentClassName: 'from-rose-500/20 via-pink-500/10 to-transparent',
|
|
258
|
-
iconContainerClassName: 'bg-rose-500/10 text-rose-700 dark:text-rose-400',
|
|
259
|
-
},
|
|
260
|
-
];
|
|
261
|
-
}, [
|
|
262
|
-
collaboratorStats,
|
|
263
|
-
t,
|
|
264
|
-
format_1.formatCurrency,
|
|
265
|
-
getSettingValue,
|
|
266
|
-
currentLocaleCode,
|
|
267
|
-
]);
|
|
268
|
-
const handleViewModeChange = (value) => {
|
|
269
|
-
if (value !== 'table' && value !== 'cards') {
|
|
270
|
-
return;
|
|
271
|
-
}
|
|
272
|
-
setViewMode(value);
|
|
273
|
-
if (typeof window !== 'undefined') {
|
|
274
|
-
window.localStorage.setItem(COLLABORATOR_VIEW_STORAGE_KEY, value);
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
|
-
const toggleStatus = async (collaborator) => {
|
|
278
|
-
const nextStatus = collaborator.status === 'inactive' ? 'active' : 'inactive';
|
|
279
|
-
try {
|
|
280
|
-
await (0, api_1.mutateOperations)(request, `/operations/collaborators/${collaborator.id}`, 'PATCH', { status: nextStatus });
|
|
281
|
-
showToastHandler === null || showToastHandler === void 0 ? void 0 : showToastHandler('success', t('messages.statusSuccess'));
|
|
282
|
-
await refetch();
|
|
283
|
-
}
|
|
284
|
-
catch (_a) {
|
|
285
|
-
showToastHandler === null || showToastHandler === void 0 ? void 0 : showToastHandler('error', t('messages.statusError'));
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
return (<entity_list_1.Page>
|
|
289
|
-
<operations_header_1.OperationsHeader title={t('title')} description={t('description')} current={t('breadcrumb')} actions={access.isDirector ? (<div className="flex flex-wrap gap-2">
|
|
290
|
-
<button_1.Button size="sm" onClick={openCreateSheet}>
|
|
291
|
-
{commonT('actions.create')}
|
|
292
|
-
</button_1.Button>
|
|
293
|
-
</div>) : undefined}/>
|
|
294
|
-
|
|
295
|
-
<kpi_cards_grid_1.KpiCardsGrid items={statsCards} columns={4}/>
|
|
296
|
-
|
|
297
|
-
<div className="flex min-w-0 flex-col gap-4 xl:flex-row xl:items-center">
|
|
298
|
-
<div className="flex-1">
|
|
299
|
-
<entity_list_1.SearchBar searchQuery={search} onSearchChange={(value) => {
|
|
300
|
-
setSearch(value);
|
|
301
|
-
setPage(1);
|
|
302
|
-
}} showSearchButton={false} debounceMs={500} placeholder={t('searchPlaceholder')} controls={[
|
|
303
|
-
{
|
|
304
|
-
id: 'type',
|
|
305
|
-
type: 'select',
|
|
306
|
-
value: typeFilter,
|
|
307
|
-
onChange: (value) => {
|
|
308
|
-
setTypeFilter(value);
|
|
309
|
-
setPage(1);
|
|
310
|
-
},
|
|
311
|
-
placeholder: commonT('labels.collaboratorType'),
|
|
312
|
-
options: [
|
|
313
|
-
{ value: 'all', label: commonT('filters.allTypes') },
|
|
314
|
-
...collaboratorTypes.map((item) => ({
|
|
315
|
-
value: item.slug,
|
|
316
|
-
label: item.name,
|
|
317
|
-
})),
|
|
318
|
-
],
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
id: 'status',
|
|
322
|
-
type: 'select',
|
|
323
|
-
value: statusFilter,
|
|
324
|
-
onChange: (value) => {
|
|
325
|
-
setStatusFilter(value);
|
|
326
|
-
setPage(1);
|
|
327
|
-
},
|
|
328
|
-
placeholder: commonT('labels.status'),
|
|
329
|
-
options: [
|
|
330
|
-
{ value: 'all', label: commonT('filters.allStatuses') },
|
|
331
|
-
{ value: 'active', label: getStatusLabel('active') },
|
|
332
|
-
{ value: 'on_leave', label: getStatusLabel('on_leave') },
|
|
333
|
-
{ value: 'inactive', label: getStatusLabel('inactive') },
|
|
334
|
-
],
|
|
335
|
-
},
|
|
336
|
-
]}/>
|
|
337
|
-
</div>
|
|
338
|
-
|
|
339
|
-
<div className="flex items-center justify-between gap-3 xl:justify-end">
|
|
340
|
-
<span className="text-xs font-medium text-muted-foreground">
|
|
341
|
-
{t('viewMode')}
|
|
342
|
-
</span>
|
|
343
|
-
<toggle_group_1.ToggleGroup type="single" value={viewMode} onValueChange={handleViewModeChange} variant="outline" size="sm" aria-label={t('viewMode')}>
|
|
344
|
-
<toggle_group_1.ToggleGroupItem value="table" className="gap-1.5 px-2.5" aria-label={t('viewModeTable')}>
|
|
345
|
-
<lucide_react_1.List className="h-4 w-4"/>
|
|
346
|
-
<span className="hidden sm:inline">{t('viewModeTable')}</span>
|
|
347
|
-
</toggle_group_1.ToggleGroupItem>
|
|
348
|
-
<toggle_group_1.ToggleGroupItem value="cards" className="gap-1.5 px-2.5" aria-label={t('viewModeCards')}>
|
|
349
|
-
<lucide_react_1.LayoutGrid className="h-4 w-4"/>
|
|
350
|
-
<span className="hidden sm:inline">{t('viewModeCards')}</span>
|
|
351
|
-
</toggle_group_1.ToggleGroupItem>
|
|
352
|
-
</toggle_group_1.ToggleGroup>
|
|
353
|
-
</div>
|
|
354
|
-
</div>
|
|
355
|
-
|
|
356
|
-
{filteredRows.length > 0 ? (viewMode === 'cards' ? (<div className="grid gap-4 md:grid-cols-2 2xl:grid-cols-3">
|
|
357
|
-
{filteredRows.map((collaborator) => {
|
|
358
|
-
var _a;
|
|
359
|
-
return (<card_1.Card key={collaborator.id} className="cursor-pointer overflow-hidden border-border/60 py-0 shadow-sm transition-all hover:-translate-y-0.5 hover:shadow-md" onClick={() => openEditSheet(collaborator.id)}>
|
|
360
|
-
<card_1.CardContent className="space-y-4 p-4">
|
|
361
|
-
<div className="flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between">
|
|
362
|
-
<div className="flex min-w-0 items-center gap-3">
|
|
363
|
-
<avatar_1.Avatar className="h-12 w-12 border border-border/60 bg-muted">
|
|
364
|
-
<avatar_1.AvatarImage src={getPersonAvatarUrl(collaborator.personAvatarId)} alt={collaborator.displayName}/>
|
|
365
|
-
<avatar_1.AvatarFallback className="bg-muted text-sm font-semibold text-foreground">
|
|
366
|
-
{getInitials(collaborator.displayName)}
|
|
367
|
-
</avatar_1.AvatarFallback>
|
|
368
|
-
</avatar_1.Avatar>
|
|
369
|
-
<div className="min-w-0">
|
|
370
|
-
<div className="truncate font-semibold">
|
|
371
|
-
{collaborator.displayName}
|
|
372
|
-
</div>
|
|
373
|
-
<div className="truncate text-xs text-muted-foreground">
|
|
374
|
-
{[collaborator.code, collaborator.title]
|
|
375
|
-
.filter(Boolean)
|
|
376
|
-
.join(' • ') || commonT('labels.notAvailable')}
|
|
377
|
-
</div>
|
|
378
|
-
</div>
|
|
379
|
-
</div>
|
|
380
|
-
<status_badge_1.StatusBadge label={getStatusLabel(collaborator.status)} className={(0, format_1.getStatusBadgeClass)(collaborator.status)}/>
|
|
381
|
-
</div>
|
|
382
|
-
|
|
383
|
-
<div className="flex flex-wrap gap-2">
|
|
384
|
-
<span className="inline-flex items-center rounded-full bg-primary/10 px-2.5 py-1 text-xs font-medium text-primary">
|
|
385
|
-
{getCollaboratorTypeLabel((_a = collaborator.collaboratorTypeSlug) !== null && _a !== void 0 ? _a : collaborator.collaboratorType, collaborator.collaboratorTypeName)}
|
|
386
|
-
</span>
|
|
387
|
-
{collaborator.department ? (<span className="inline-flex items-center rounded-full bg-muted px-2.5 py-1 text-xs font-medium text-muted-foreground">
|
|
388
|
-
{collaborator.department}
|
|
389
|
-
</span>) : null}
|
|
390
|
-
</div>
|
|
391
|
-
|
|
392
|
-
<div className="grid gap-2 text-sm text-muted-foreground lg:grid-cols-2">
|
|
393
|
-
<div>
|
|
394
|
-
<span className="font-medium text-foreground">
|
|
395
|
-
{commonT('labels.supervisor')}:
|
|
396
|
-
</span>{' '}
|
|
397
|
-
{collaborator.supervisorName ||
|
|
398
|
-
commonT('labels.notAssigned')}
|
|
399
|
-
</div>
|
|
400
|
-
<div>
|
|
401
|
-
<span className="font-medium text-foreground">
|
|
402
|
-
{commonT('labels.weeklyCapacity')}:
|
|
403
|
-
</span>{' '}
|
|
404
|
-
{(0, format_1.formatHours)(collaborator.weeklyCapacityHours)}
|
|
405
|
-
</div>
|
|
406
|
-
<div>
|
|
407
|
-
<span className="font-medium text-foreground">
|
|
408
|
-
{formT('fields.compensationAmount')}:
|
|
409
|
-
</span>{' '}
|
|
410
|
-
{collaborator.compensationAmount != null
|
|
411
|
-
? (0, format_1.formatCurrency)(Number(collaborator.compensationAmount), getSettingValue, currentLocaleCode)
|
|
412
|
-
: commonT('labels.notAvailable')}
|
|
413
|
-
</div>
|
|
414
|
-
<div>
|
|
415
|
-
<span className="font-medium text-foreground">
|
|
416
|
-
{commonT('labels.startDate')}:
|
|
417
|
-
</span>{' '}
|
|
418
|
-
{(0, format_1.formatDate)(collaborator.joinedAt, getSettingValue, currentLocaleCode)}
|
|
419
|
-
</div>
|
|
420
|
-
</div>
|
|
421
|
-
|
|
422
|
-
{collaborator.contractStatus ? (<div className="flex items-center gap-2 text-xs text-muted-foreground">
|
|
423
|
-
<span className="font-medium text-foreground">
|
|
424
|
-
{commonT('labels.contractStatus')}:
|
|
425
|
-
</span>
|
|
426
|
-
<status_badge_1.StatusBadge label={getStatusLabel(collaborator.contractStatus)} className={(0, format_1.getStatusBadgeClass)(collaborator.contractStatus)}/>
|
|
427
|
-
</div>) : null}
|
|
428
|
-
|
|
429
|
-
<div className="flex items-center justify-end gap-1.5 border-t border-border/60 pt-3">
|
|
430
|
-
{access.isDirector ? (<button_1.Button variant="outline" size="icon" onClick={() => openEditSheet(collaborator.id)}>
|
|
431
|
-
<lucide_react_1.Pencil className="size-4"/>
|
|
432
|
-
</button_1.Button>) : null}
|
|
433
|
-
<button_1.Button variant="outline" size="icon" asChild={Boolean(collaborator.contractId)} disabled={!collaborator.contractId}>
|
|
434
|
-
{collaborator.contractId ? (<link_1.default href={`/operations/contracts?edit=${collaborator.contractId}`}>
|
|
435
|
-
<lucide_react_1.FileText className="size-4"/>
|
|
436
|
-
</link_1.default>) : (<span>
|
|
437
|
-
<lucide_react_1.FileText className="size-4"/>
|
|
438
|
-
</span>)}
|
|
439
|
-
</button_1.Button>
|
|
440
|
-
{access.isDirector ? (<button_1.Button variant="outline" size="icon" onClick={() => void toggleStatus(collaborator)} title={collaborator.status === 'inactive'
|
|
441
|
-
? commonT('actions.activate')
|
|
442
|
-
: commonT('actions.deactivate')}>
|
|
443
|
-
<lucide_react_1.Power className="size-4"/>
|
|
444
|
-
</button_1.Button>) : null}
|
|
445
|
-
</div>
|
|
446
|
-
</card_1.CardContent>
|
|
447
|
-
</card_1.Card>);
|
|
448
|
-
})}
|
|
449
|
-
</div>) : (<div className="overflow-hidden rounded-xl border bg-card shadow-sm">
|
|
450
|
-
<table_1.Table className="table-fixed">
|
|
451
|
-
<table_1.TableHeader>
|
|
452
|
-
<table_1.TableRow>
|
|
453
|
-
<table_1.TableHead className="w-[34%]">
|
|
454
|
-
{commonT('labels.collaborator')}
|
|
455
|
-
</table_1.TableHead>
|
|
456
|
-
<table_1.TableHead className="hidden md:table-cell">
|
|
457
|
-
{commonT('labels.collaboratorType')}
|
|
458
|
-
</table_1.TableHead>
|
|
459
|
-
<table_1.TableHead className="hidden sm:table-cell">
|
|
460
|
-
{commonT('labels.title')}
|
|
461
|
-
</table_1.TableHead>
|
|
462
|
-
<table_1.TableHead>{commonT('labels.status')}</table_1.TableHead>
|
|
463
|
-
<table_1.TableHead className="hidden lg:table-cell">
|
|
464
|
-
{commonT('labels.supervisor')}
|
|
465
|
-
</table_1.TableHead>
|
|
466
|
-
<table_1.TableHead className="hidden xl:table-cell">
|
|
467
|
-
{commonT('labels.weeklyCapacity')}
|
|
468
|
-
</table_1.TableHead>
|
|
469
|
-
<table_1.TableHead className="hidden 2xl:table-cell">
|
|
470
|
-
{formT('fields.compensationAmount')}
|
|
471
|
-
</table_1.TableHead>
|
|
472
|
-
<table_1.TableHead className="hidden xl:table-cell">
|
|
473
|
-
{commonT('labels.startDate')}
|
|
474
|
-
</table_1.TableHead>
|
|
475
|
-
<table_1.TableHead className="w-30 text-right sm:w-42.5">
|
|
476
|
-
{commonT('labels.actions')}
|
|
477
|
-
</table_1.TableHead>
|
|
478
|
-
</table_1.TableRow>
|
|
479
|
-
</table_1.TableHeader>
|
|
480
|
-
<table_1.TableBody>
|
|
481
|
-
{filteredRows.map((collaborator) => {
|
|
482
|
-
var _a;
|
|
483
|
-
return (<table_1.TableRow key={collaborator.id} className="cursor-pointer hover:bg-muted/30" onClick={() => openEditSheet(collaborator.id)}>
|
|
484
|
-
<table_1.TableCell>
|
|
485
|
-
<div className="flex items-center gap-3">
|
|
486
|
-
<avatar_1.Avatar className="h-9 w-9 border border-border/60 bg-muted">
|
|
487
|
-
<avatar_1.AvatarImage src={getPersonAvatarUrl(collaborator.personAvatarId)} alt={collaborator.displayName}/>
|
|
488
|
-
<avatar_1.AvatarFallback className="bg-muted text-xs font-semibold text-foreground">
|
|
489
|
-
{getInitials(collaborator.displayName)}
|
|
490
|
-
</avatar_1.AvatarFallback>
|
|
491
|
-
</avatar_1.Avatar>
|
|
492
|
-
<div className="min-w-0">
|
|
493
|
-
<div className="truncate font-medium">
|
|
494
|
-
{collaborator.displayName}
|
|
495
|
-
</div>
|
|
496
|
-
<div className="truncate text-xs text-muted-foreground">
|
|
497
|
-
{[collaborator.code, collaborator.department]
|
|
498
|
-
.filter(Boolean)
|
|
499
|
-
.join(' • ') ||
|
|
500
|
-
collaborator.title ||
|
|
501
|
-
commonT('labels.notAvailable')}
|
|
502
|
-
</div>
|
|
503
|
-
<div className="mt-1 flex flex-wrap gap-x-3 gap-y-1 text-[11px] text-muted-foreground lg:hidden">
|
|
504
|
-
<span>
|
|
505
|
-
<span className="font-medium text-foreground/80">
|
|
506
|
-
{commonT('labels.supervisor')}:
|
|
507
|
-
</span>{' '}
|
|
508
|
-
{collaborator.supervisorName ||
|
|
509
|
-
commonT('labels.notAssigned')}
|
|
510
|
-
</span>
|
|
511
|
-
<span>
|
|
512
|
-
<span className="font-medium text-foreground/80">
|
|
513
|
-
{commonT('labels.weeklyCapacity')}:
|
|
514
|
-
</span>{' '}
|
|
515
|
-
{(0, format_1.formatHours)(collaborator.weeklyCapacityHours)}
|
|
516
|
-
</span>
|
|
517
|
-
<span>
|
|
518
|
-
<span className="font-medium text-foreground/80">
|
|
519
|
-
{commonT('labels.startDate')}:
|
|
520
|
-
</span>{' '}
|
|
521
|
-
{(0, format_1.formatDate)(collaborator.joinedAt, getSettingValue, currentLocaleCode)}
|
|
522
|
-
</span>
|
|
523
|
-
</div>
|
|
524
|
-
</div>
|
|
525
|
-
</div>
|
|
526
|
-
</table_1.TableCell>
|
|
527
|
-
<table_1.TableCell className="hidden md:table-cell">
|
|
528
|
-
{getCollaboratorTypeLabel((_a = collaborator.collaboratorTypeSlug) !== null && _a !== void 0 ? _a : collaborator.collaboratorType, collaborator.collaboratorTypeName)}
|
|
529
|
-
</table_1.TableCell>
|
|
530
|
-
<table_1.TableCell className="hidden max-w-55 sm:table-cell">
|
|
531
|
-
<div className="truncate">
|
|
532
|
-
{[collaborator.department, collaborator.title]
|
|
533
|
-
.filter(Boolean)
|
|
534
|
-
.join(' • ') || commonT('labels.notAvailable')}
|
|
535
|
-
</div>
|
|
536
|
-
</table_1.TableCell>
|
|
537
|
-
<table_1.TableCell>
|
|
538
|
-
<status_badge_1.StatusBadge label={getStatusLabel(collaborator.status)} className={(0, format_1.getStatusBadgeClass)(collaborator.status)}/>
|
|
539
|
-
</table_1.TableCell>
|
|
540
|
-
<table_1.TableCell className="hidden lg:table-cell">
|
|
541
|
-
<div className="truncate">
|
|
542
|
-
{collaborator.supervisorName ||
|
|
543
|
-
commonT('labels.notAssigned')}
|
|
544
|
-
</div>
|
|
545
|
-
</table_1.TableCell>
|
|
546
|
-
<table_1.TableCell className="hidden xl:table-cell">
|
|
547
|
-
{(0, format_1.formatHours)(collaborator.weeklyCapacityHours)}
|
|
548
|
-
</table_1.TableCell>
|
|
549
|
-
<table_1.TableCell className="hidden 2xl:table-cell">
|
|
550
|
-
{collaborator.compensationAmount != null
|
|
551
|
-
? (0, format_1.formatCurrency)(Number(collaborator.compensationAmount), getSettingValue, currentLocaleCode)
|
|
552
|
-
: commonT('labels.notAvailable')}
|
|
553
|
-
</table_1.TableCell>
|
|
554
|
-
<table_1.TableCell className="hidden xl:table-cell">
|
|
555
|
-
{(0, format_1.formatDate)(collaborator.joinedAt, getSettingValue, currentLocaleCode)}
|
|
556
|
-
</table_1.TableCell>
|
|
557
|
-
<table_1.TableCell>
|
|
558
|
-
<div className="flex items-center justify-end gap-1.5">
|
|
559
|
-
{access.isDirector ? (<button_1.Button variant="outline" size="icon" onClick={() => openEditSheet(collaborator.id)}>
|
|
560
|
-
<lucide_react_1.Pencil className="size-4"/>
|
|
561
|
-
</button_1.Button>) : null}
|
|
562
|
-
<button_1.Button variant="outline" size="icon" asChild={Boolean(collaborator.contractId)} disabled={!collaborator.contractId}>
|
|
563
|
-
{collaborator.contractId ? (<link_1.default href={`/operations/contracts?edit=${collaborator.contractId}`}>
|
|
564
|
-
<lucide_react_1.FileText className="size-4"/>
|
|
565
|
-
</link_1.default>) : (<span>
|
|
566
|
-
<lucide_react_1.FileText className="size-4"/>
|
|
567
|
-
</span>)}
|
|
568
|
-
</button_1.Button>
|
|
569
|
-
{access.isDirector ? (<button_1.Button variant="outline" size="icon" onClick={() => void toggleStatus(collaborator)} title={collaborator.status === 'inactive'
|
|
570
|
-
? commonT('actions.activate')
|
|
571
|
-
: commonT('actions.deactivate')}>
|
|
572
|
-
<lucide_react_1.Power className="size-4"/>
|
|
573
|
-
</button_1.Button>) : null}
|
|
574
|
-
</div>
|
|
575
|
-
</table_1.TableCell>
|
|
576
|
-
</table_1.TableRow>);
|
|
577
|
-
})}
|
|
578
|
-
</table_1.TableBody>
|
|
579
|
-
</table_1.Table>
|
|
580
|
-
</div>)) : (<entity_list_1.EmptyState icon={<lucide_react_1.UserRound className="size-12"/>} title={commonT('states.emptyTitle')} description={t('emptyDescription')} actionLabel={access.isDirector
|
|
581
|
-
? commonT('actions.create')
|
|
582
|
-
: commonT('actions.refresh')} onAction={access.isDirector ? openCreateSheet : () => void refetch()}/>)}
|
|
583
|
-
|
|
584
|
-
<entity_list_1.PaginationFooter currentPage={(_b = collaboratorsResponse === null || collaboratorsResponse === void 0 ? void 0 : collaboratorsResponse.page) !== null && _b !== void 0 ? _b : page} pageSize={(_c = collaboratorsResponse === null || collaboratorsResponse === void 0 ? void 0 : collaboratorsResponse.pageSize) !== null && _c !== void 0 ? _c : pageSize} totalItems={(_d = collaboratorsResponse === null || collaboratorsResponse === void 0 ? void 0 : collaboratorsResponse.total) !== null && _d !== void 0 ? _d : 0} onPageChange={setPage} onPageSizeChange={(value) => {
|
|
585
|
-
setPageSize(value);
|
|
586
|
-
setPage(1);
|
|
587
|
-
}} pageSizeOptions={[12, 24, 48]}/>
|
|
588
|
-
|
|
589
|
-
<sheet_1.Sheet open={isCreateSheetOpen || editingCollaboratorId !== null} onOpenChange={(open) => {
|
|
590
|
-
if (!open) {
|
|
591
|
-
closeFormSheet();
|
|
592
|
-
}
|
|
593
|
-
}}>
|
|
594
|
-
<sheet_1.SheetContent className="w-full overflow-y-auto sm:max-w-6xl">
|
|
595
|
-
<sheet_1.SheetHeader>
|
|
596
|
-
<sheet_1.SheetTitle>
|
|
597
|
-
{editingCollaboratorId
|
|
598
|
-
? t('sheet.editTitle')
|
|
599
|
-
: t('sheet.createTitle')}
|
|
600
|
-
</sheet_1.SheetTitle>
|
|
601
|
-
<sheet_1.SheetDescription>{t('sheet.description')}</sheet_1.SheetDescription>
|
|
602
|
-
</sheet_1.SheetHeader>
|
|
603
|
-
|
|
604
|
-
<collaborator_form_screen_1.CollaboratorFormScreen key={editingCollaboratorId ? `edit-${editingCollaboratorId}` : 'create'} collaboratorId={editingCollaboratorId !== null && editingCollaboratorId !== void 0 ? editingCollaboratorId : undefined} onCancel={closeFormSheet} onSaved={async () => {
|
|
605
|
-
closeFormSheet();
|
|
606
|
-
await refetch();
|
|
607
|
-
}}/>
|
|
608
|
-
</sheet_1.SheetContent>
|
|
609
|
-
</sheet_1.Sheet>
|
|
610
|
-
</entity_list_1.Page>);
|
|
611
|
-
}
|
|
612
|
-
//# sourceMappingURL=page.js.map
|