@hed-hog/operations 0.0.322 → 0.0.326
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-collaborators.controller.d.ts +14 -0
- package/dist/controllers/operations-collaborators.controller.d.ts.map +1 -1
- package/dist/controllers/operations-collaborators.controller.js +25 -0
- package/dist/controllers/operations-collaborators.controller.js.map +1 -1
- package/dist/controllers/operations-project-costs.controller.d.ts +422 -0
- package/dist/controllers/operations-project-costs.controller.d.ts.map +1 -0
- package/dist/controllers/operations-project-costs.controller.js +250 -0
- package/dist/controllers/operations-project-costs.controller.js.map +1 -0
- package/dist/controllers/operations-reports.controller.d.ts +9 -0
- package/dist/controllers/operations-reports.controller.d.ts.map +1 -1
- package/dist/controllers/operations-tasks.controller.d.ts +42 -0
- package/dist/controllers/operations-tasks.controller.d.ts.map +1 -1
- package/dist/controllers/operations-tasks.controller.js +48 -0
- package/dist/controllers/operations-tasks.controller.js.map +1 -1
- package/dist/controllers/operations-timesheets.controller.d.ts +1 -0
- package/dist/controllers/operations-timesheets.controller.d.ts.map +1 -1
- package/dist/dto/create-collaborator-project-assignment.dto.d.ts +5 -0
- package/dist/dto/create-collaborator-project-assignment.dto.d.ts.map +1 -0
- package/dist/dto/create-collaborator-project-assignment.dto.js +30 -0
- package/dist/dto/create-collaborator-project-assignment.dto.js.map +1 -0
- package/dist/dto/create-project-cost-category.dto.d.ts +10 -0
- package/dist/dto/create-project-cost-category.dto.d.ts.map +1 -0
- package/dist/dto/create-project-cost-category.dto.js +59 -0
- package/dist/dto/create-project-cost-category.dto.js.map +1 -0
- package/dist/dto/create-project-cost-type.dto.d.ts +14 -0
- package/dist/dto/create-project-cost-type.dto.d.ts.map +1 -0
- package/dist/dto/create-project-cost-type.dto.js +87 -0
- package/dist/dto/create-project-cost-type.dto.js.map +1 -0
- package/dist/dto/create-project-cost.dto.d.ts +22 -0
- package/dist/dto/create-project-cost.dto.d.ts.map +1 -0
- package/dist/dto/create-project-cost.dto.js +135 -0
- package/dist/dto/create-project-cost.dto.js.map +1 -0
- package/dist/dto/get-project-cost-report.dto.d.ts +10 -0
- package/dist/dto/get-project-cost-report.dto.d.ts.map +1 -0
- package/dist/dto/get-project-cost-report.dto.js +65 -0
- package/dist/dto/get-project-cost-report.dto.js.map +1 -0
- package/dist/dto/list-project-cost-categories.dto.d.ts +6 -0
- package/dist/dto/list-project-cost-categories.dto.d.ts.map +1 -0
- package/dist/dto/list-project-cost-categories.dto.js +34 -0
- package/dist/dto/list-project-cost-categories.dto.js.map +1 -0
- package/dist/dto/list-project-cost-types.dto.d.ts +8 -0
- package/dist/dto/list-project-cost-types.dto.d.ts.map +1 -0
- package/dist/dto/list-project-cost-types.dto.js +45 -0
- package/dist/dto/list-project-cost-types.dto.js.map +1 -0
- package/dist/dto/list-project-costs.dto.d.ts +14 -0
- package/dist/dto/list-project-costs.dto.d.ts.map +1 -0
- package/dist/dto/list-project-costs.dto.js +81 -0
- package/dist/dto/list-project-costs.dto.js.map +1 -0
- package/dist/dto/list-tasks.dto.d.ts +1 -0
- package/dist/dto/list-tasks.dto.d.ts.map +1 -1
- package/dist/dto/list-tasks.dto.js +6 -0
- package/dist/dto/list-tasks.dto.js.map +1 -1
- package/dist/dto/list-timesheets.dto.d.ts +1 -0
- package/dist/dto/list-timesheets.dto.d.ts.map +1 -1
- package/dist/dto/list-timesheets.dto.js +7 -0
- package/dist/dto/list-timesheets.dto.js.map +1 -1
- package/dist/dto/update-collaborator-project-assignment.dto.d.ts +11 -0
- package/dist/dto/update-collaborator-project-assignment.dto.d.ts.map +1 -0
- package/dist/dto/update-collaborator-project-assignment.dto.js +65 -0
- package/dist/dto/update-collaborator-project-assignment.dto.js.map +1 -0
- package/dist/dto/update-project-cost-category.dto.d.ts +6 -0
- package/dist/dto/update-project-cost-category.dto.d.ts.map +1 -0
- package/dist/dto/update-project-cost-category.dto.js +9 -0
- package/dist/dto/update-project-cost-category.dto.js.map +1 -0
- package/dist/dto/update-project-cost-type.dto.d.ts +6 -0
- package/dist/dto/update-project-cost-type.dto.d.ts.map +1 -0
- package/dist/dto/update-project-cost-type.dto.js +9 -0
- package/dist/dto/update-project-cost-type.dto.js.map +1 -0
- package/dist/dto/update-project-cost.dto.d.ts +6 -0
- package/dist/dto/update-project-cost.dto.d.ts.map +1 -0
- package/dist/dto/update-project-cost.dto.js +9 -0
- package/dist/dto/update-project-cost.dto.js.map +1 -0
- package/dist/operations.module.d.ts.map +1 -1
- package/dist/operations.module.js +2 -0
- package/dist/operations.module.js.map +1 -1
- package/dist/operations.service.d.ts +571 -1
- package/dist/operations.service.d.ts.map +1 -1
- package/dist/operations.service.js +1793 -69
- package/dist/operations.service.js.map +1 -1
- package/hedhog/data/integration_event_catalog.yaml +313 -0
- package/hedhog/data/menu.yaml +52 -0
- package/hedhog/data/operations_project_cost_category.yaml +80 -0
- package/hedhog/data/operations_project_cost_type.yaml +503 -0
- package/hedhog/data/route.yaml +274 -0
- package/hedhog/data/setting_group.yaml +21 -0
- package/hedhog/frontend/app/_components/collaborator-costs-section.tsx.ejs +2 -18
- package/hedhog/frontend/app/_components/collaborator-form-screen.tsx.ejs +593 -297
- package/hedhog/frontend/app/_components/collaborator-tasks-tab.tsx.ejs +358 -0
- package/hedhog/frontend/app/_components/collaborator-timesheets-tab.tsx.ejs +242 -0
- package/hedhog/frontend/app/_components/my-project-summary-screen.tsx.ejs +533 -296
- package/hedhog/frontend/app/_components/person-select-with-create.tsx.ejs +1 -853
- package/hedhog/frontend/app/_components/project-assignments-tab.tsx.ejs +450 -0
- package/hedhog/frontend/app/_components/project-cost-report-screen.tsx.ejs +602 -0
- package/hedhog/frontend/app/_components/project-costs-section.tsx.ejs +1401 -0
- package/hedhog/frontend/app/_components/project-details-screen.tsx.ejs +2248 -2063
- package/hedhog/frontend/app/_components/project-form-screen.tsx.ejs +56 -11
- package/hedhog/frontend/app/_components/task-detail-sheet.tsx.ejs +454 -96
- package/hedhog/frontend/app/_components/task-form-sheet.tsx.ejs +784 -0
- package/hedhog/frontend/app/_lib/api.ts.ejs +256 -0
- package/hedhog/frontend/app/_lib/hooks/use-mention-items.ts.ejs +28 -0
- package/hedhog/frontend/app/_lib/types.ts.ejs +190 -0
- package/hedhog/frontend/app/_lib/utils/format.ts.ejs +9 -3
- package/hedhog/frontend/app/collaborators/page.tsx.ejs +18 -7
- package/hedhog/frontend/app/my-tasks/page.tsx.ejs +536 -328
- package/hedhog/frontend/app/project-cost-categories/page.tsx.ejs +674 -0
- package/hedhog/frontend/app/project-cost-types/page.tsx.ejs +845 -0
- package/hedhog/frontend/app/projects/[id]/costs-report/page.tsx.ejs +10 -0
- package/hedhog/frontend/app/reports/collaborators/page.tsx.ejs +20 -349
- package/hedhog/frontend/app/reports/projects/page.tsx.ejs +217 -485
- package/hedhog/frontend/messages/en.json +257 -5
- package/hedhog/frontend/messages/en.json.ejs +2060 -0
- package/hedhog/frontend/messages/operations/en.json +2068 -0
- package/hedhog/frontend/messages/operations/operations/en.json +2102 -0
- package/hedhog/frontend/messages/operations/operations/pt.json +2111 -0
- package/hedhog/frontend/messages/operations/pt.json +2072 -0
- package/hedhog/frontend/messages/pt.json +256 -4
- package/hedhog/frontend/messages/pt.json.ejs +2067 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.d.ts +29 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.js +95 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.tsx +233 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.d.ts +10 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.js +577 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.tsx +868 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.d.ts +4 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.js +337 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.tsx +476 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.d.ts +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.js +1348 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.tsx +2233 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.d.ts +12 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.js +162 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.tsx +261 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.d.ts +18 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.js +145 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.tsx +258 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.d.ts +4 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.js +223 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.tsx +342 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.d.ts +58 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.js +438 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.tsx +698 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.d.ts +20 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.js +233 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.tsx +392 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.d.ts +4 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.js +814 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.tsx +1288 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.d.ts +21 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.js +174 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.tsx +306 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.d.ts +10 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.js +12 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.tsx +29 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.d.ts +15 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.js +501 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.tsx +853 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.js +847 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.tsx +1340 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.d.ts +4 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.js +2930 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.tsx +4378 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.d.ts +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.js +1013 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.tsx +1745 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.d.ts +13 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.js +38 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.tsx +74 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.d.ts +7 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.js +11 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.tsx +15 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.d.ts +18 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.js +406 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.tsx +660 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.d.ts +26 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.js +332 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.tsx +518 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.js +255 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.tsx +388 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.d.ts +10 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.js +131 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.tsx +214 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.d.ts +108 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.js +162 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.ts +428 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.d.ts +8 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.js +36 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.ts +44 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.d.ts +837 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.js +3 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.ts +861 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.d.ts +16 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.js +182 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.ts +250 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.d.ts +4 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.js +51 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.ts +61 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.js +954 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.tsx +1277 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.js +488 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.tsx +805 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.js +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.tsx +11 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.js +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.tsx +11 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.js +8 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.tsx +5 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.js +612 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.tsx +939 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.js +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.tsx +11 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.js +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.tsx +11 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.js +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.tsx +17 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.js +348 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.tsx +536 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.js +401 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.tsx +607 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.d.ts +5 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.js +7 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.tsx +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.js +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.tsx +11 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.js +321 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.tsx +440 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.js +939 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.tsx +1499 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.d.ts +29 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.js +95 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.tsx +233 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.d.ts +10 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.js +577 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.tsx +868 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.d.ts +4 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.js +337 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.tsx +476 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.d.ts +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.js +1348 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.tsx +2233 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.d.ts +12 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.js +162 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.tsx +261 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.d.ts +18 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.js +145 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.tsx +258 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.d.ts +4 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.js +223 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.tsx +342 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.d.ts +58 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.js +438 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.tsx +698 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.d.ts +20 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.js +233 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.tsx +392 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.d.ts +4 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.js +814 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.tsx +1288 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.d.ts +21 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.js +174 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.tsx +306 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.d.ts +10 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.js +12 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.tsx +29 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.d.ts +15 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.js +501 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.tsx +853 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.js +459 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.tsx +598 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.js +876 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.tsx +1368 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.d.ts +4 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.js +2930 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.tsx +4378 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.d.ts +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.js +1013 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.tsx +1745 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.d.ts +13 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.js +38 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.tsx +74 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.d.ts +7 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.js +11 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.tsx +15 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.d.ts +18 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.js +406 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.tsx +660 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.d.ts +26 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.js +332 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.tsx +518 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.js +255 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.tsx +388 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.d.ts +10 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.js +131 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.tsx +214 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.d.ts +108 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.js +162 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.ts +428 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.d.ts +8 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.js +36 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.ts +44 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.d.ts +837 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.js +3 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.ts +861 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.d.ts +16 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.js +182 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.ts +250 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.d.ts +4 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.js +51 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.ts +61 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.js +954 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.tsx +1277 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.js +488 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.tsx +805 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.js +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.tsx +11 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.js +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.tsx +11 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.js +8 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.tsx +5 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.js +612 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.tsx +939 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.js +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.tsx +11 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.js +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.tsx +11 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.js +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.tsx +17 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.js +348 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.tsx +536 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.js +401 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.tsx +607 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.d.ts +5 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.js +7 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.tsx +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.js +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.tsx +11 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.js +321 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.tsx +440 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.js +939 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.tsx +1499 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.js +8 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.tsx +5 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.js +436 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.tsx +675 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.js +563 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.tsx +846 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.js +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.tsx +10 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.js +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.tsx +11 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.js +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.tsx +11 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.js +8 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.tsx +5 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.js +492 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.tsx +757 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.js +342 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.tsx +430 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.js +338 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.tsx +428 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.js +660 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.tsx +992 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.js +515 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.tsx +707 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.js +1141 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.tsx +1705 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.js +8 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.tsx +5 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.js +436 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.tsx +675 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.js +563 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.tsx +846 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.js +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.tsx +11 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.d.ts +6 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.js +9 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.tsx +11 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.js +8 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.tsx +5 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.js +492 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.tsx +757 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.js +342 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.tsx +430 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.js +338 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.tsx +428 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.js +660 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.tsx +992 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.js +515 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.tsx +707 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.d.ts +2 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.d.ts.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.js +1141 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.js.map +1 -0
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.tsx +1705 -0
- package/hedhog/table/operations_collaborator.yaml +5 -0
- package/hedhog/table/operations_collaborator_compensation_history.yaml +4 -0
- package/hedhog/table/operations_project_assignment.yaml +1 -0
- package/hedhog/table/operations_project_cost.yaml +93 -0
- package/hedhog/table/operations_project_cost_category.yaml +37 -0
- package/hedhog/table/operations_project_cost_type.yaml +55 -0
- package/hedhog/table/operations_task_comment.yaml +26 -0
- package/package.json +6 -6
- package/src/controllers/operations-collaborators.controller.ts +26 -0
- package/src/controllers/operations-project-costs.controller.ts +249 -0
- package/src/controllers/operations-tasks.controller.ts +49 -0
- package/src/dto/create-collaborator-project-assignment.dto.ts +14 -0
- package/src/dto/create-project-cost-category.dto.ts +37 -0
- package/src/dto/create-project-cost-type.dto.ts +64 -0
- package/src/dto/create-project-cost.dto.ts +126 -0
- package/src/dto/get-project-cost-report.dto.ts +46 -0
- package/src/dto/list-project-cost-categories.dto.ts +17 -0
- package/src/dto/list-project-cost-types.dto.ts +28 -0
- package/src/dto/list-project-costs.dto.ts +59 -0
- package/src/dto/list-tasks.dto.ts +7 -0
- package/src/dto/list-timesheets.dto.ts +7 -1
- package/src/dto/update-collaborator-project-assignment.dto.ts +58 -0
- package/src/dto/update-project-cost-category.dto.ts +4 -0
- package/src/dto/update-project-cost-type.dto.ts +4 -0
- package/src/dto/update-project-cost.dto.ts +4 -0
- package/src/operations.module.ts +2 -0
- package/src/operations.service.ts +2472 -61
|
@@ -0,0 +1,805 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
EmptyState,
|
|
5
|
+
Page,
|
|
6
|
+
PaginationFooter,
|
|
7
|
+
SearchBar,
|
|
8
|
+
} from '@/components/entity-list';
|
|
9
|
+
import { Button } from '@/components/ui/button';
|
|
10
|
+
import { Card, CardContent } from '@/components/ui/card';
|
|
11
|
+
import { KpiCardsGrid } from '@/components/ui/kpi-cards-grid';
|
|
12
|
+
import {
|
|
13
|
+
Sheet,
|
|
14
|
+
SheetContent,
|
|
15
|
+
SheetDescription,
|
|
16
|
+
SheetHeader,
|
|
17
|
+
SheetTitle,
|
|
18
|
+
} from '@/components/ui/sheet';
|
|
19
|
+
import {
|
|
20
|
+
Table,
|
|
21
|
+
TableBody,
|
|
22
|
+
TableCell,
|
|
23
|
+
TableHead,
|
|
24
|
+
TableHeader,
|
|
25
|
+
TableRow,
|
|
26
|
+
} from '@/components/ui/table';
|
|
27
|
+
import { ToggleGroup, ToggleGroupItem } from '@/components/ui/toggle-group';
|
|
28
|
+
import {
|
|
29
|
+
closestCenter,
|
|
30
|
+
DndContext,
|
|
31
|
+
type DragEndEvent,
|
|
32
|
+
PointerSensor,
|
|
33
|
+
useSensor,
|
|
34
|
+
useSensors,
|
|
35
|
+
} from '@dnd-kit/core';
|
|
36
|
+
import {
|
|
37
|
+
arrayMove,
|
|
38
|
+
SortableContext,
|
|
39
|
+
useSortable,
|
|
40
|
+
verticalListSortingStrategy,
|
|
41
|
+
} from '@dnd-kit/sortable';
|
|
42
|
+
import { CSS } from '@dnd-kit/utilities';
|
|
43
|
+
import { useApp, useQuery } from '@hed-hog/next-app-provider';
|
|
44
|
+
import {
|
|
45
|
+
Briefcase,
|
|
46
|
+
GripVertical,
|
|
47
|
+
LayoutGrid,
|
|
48
|
+
List,
|
|
49
|
+
Pencil,
|
|
50
|
+
Users,
|
|
51
|
+
} from 'lucide-react';
|
|
52
|
+
import { useTranslations } from 'next-intl';
|
|
53
|
+
import Link from 'next/link';
|
|
54
|
+
import { useEffect, useMemo, useState } from 'react';
|
|
55
|
+
import { OperationsHeader } from '../_components/operations-header';
|
|
56
|
+
import { StatusBadge } from '../_components/status-badge';
|
|
57
|
+
import { fetchOperations, mutateOperations } from '../_lib/api';
|
|
58
|
+
import { useOperationsAccess } from '../_lib/hooks/use-operations-access';
|
|
59
|
+
import type {
|
|
60
|
+
OperationsCollaboratorType,
|
|
61
|
+
PaginatedResponse,
|
|
62
|
+
} from '../_lib/types';
|
|
63
|
+
import { formatEnumLabel, getStatusBadgeClass } from '../_lib/utils/format';
|
|
64
|
+
|
|
65
|
+
type CollaboratorTypeFormState = {
|
|
66
|
+
name: string;
|
|
67
|
+
slug: string;
|
|
68
|
+
description: string;
|
|
69
|
+
category: string;
|
|
70
|
+
status: 'active' | 'inactive';
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const EMPTY_FORM_STATE: CollaboratorTypeFormState = {
|
|
74
|
+
name: '',
|
|
75
|
+
slug: '',
|
|
76
|
+
description: '',
|
|
77
|
+
category: '',
|
|
78
|
+
status: 'active',
|
|
79
|
+
};
|
|
80
|
+
const EMPTY_COLLABORATOR_TYPES: OperationsCollaboratorType[] = [];
|
|
81
|
+
|
|
82
|
+
function SortableCollaboratorTypeRow({
|
|
83
|
+
collaboratorType,
|
|
84
|
+
position,
|
|
85
|
+
commonT,
|
|
86
|
+
t,
|
|
87
|
+
onEdit,
|
|
88
|
+
onToggleStatus,
|
|
89
|
+
reorderEnabled,
|
|
90
|
+
getStatusLabel,
|
|
91
|
+
}: {
|
|
92
|
+
collaboratorType: OperationsCollaboratorType;
|
|
93
|
+
position: number;
|
|
94
|
+
commonT: ReturnType<typeof useTranslations>;
|
|
95
|
+
t: ReturnType<typeof useTranslations>;
|
|
96
|
+
onEdit: (collaboratorType: OperationsCollaboratorType) => void;
|
|
97
|
+
onToggleStatus: (collaboratorType: OperationsCollaboratorType) => void;
|
|
98
|
+
reorderEnabled: boolean;
|
|
99
|
+
getStatusLabel: (value?: string | null) => string;
|
|
100
|
+
}) {
|
|
101
|
+
const {
|
|
102
|
+
attributes,
|
|
103
|
+
listeners,
|
|
104
|
+
setActivatorNodeRef,
|
|
105
|
+
setNodeRef,
|
|
106
|
+
transform,
|
|
107
|
+
transition,
|
|
108
|
+
isDragging,
|
|
109
|
+
} = useSortable({
|
|
110
|
+
id: collaboratorType.id,
|
|
111
|
+
disabled: !reorderEnabled,
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
return (
|
|
115
|
+
<TableRow
|
|
116
|
+
ref={setNodeRef}
|
|
117
|
+
style={{
|
|
118
|
+
transform: CSS.Transform.toString(transform),
|
|
119
|
+
transition,
|
|
120
|
+
}}
|
|
121
|
+
className={isDragging ? 'bg-muted/40' : undefined}
|
|
122
|
+
>
|
|
123
|
+
<TableCell className="w-14">
|
|
124
|
+
<button
|
|
125
|
+
type="button"
|
|
126
|
+
ref={setActivatorNodeRef}
|
|
127
|
+
{...listeners}
|
|
128
|
+
{...attributes}
|
|
129
|
+
disabled={!reorderEnabled}
|
|
130
|
+
className="inline-flex h-8 w-8 items-center justify-center rounded-md border border-input bg-background text-muted-foreground transition hover:text-foreground disabled:cursor-not-allowed disabled:opacity-40"
|
|
131
|
+
aria-label={t('columns.drag')}
|
|
132
|
+
>
|
|
133
|
+
<GripVertical className="size-4" />
|
|
134
|
+
</button>
|
|
135
|
+
</TableCell>
|
|
136
|
+
<TableCell className="font-medium">{position}</TableCell>
|
|
137
|
+
<TableCell className="font-medium">{collaboratorType.name}</TableCell>
|
|
138
|
+
<TableCell>{collaboratorType.slug}</TableCell>
|
|
139
|
+
<TableCell>
|
|
140
|
+
{collaboratorType.category || commonT('labels.notAvailable')}
|
|
141
|
+
</TableCell>
|
|
142
|
+
<TableCell className="max-w-md text-sm text-muted-foreground">
|
|
143
|
+
{collaboratorType.description || commonT('labels.notAvailable')}
|
|
144
|
+
</TableCell>
|
|
145
|
+
<TableCell>{Number(collaboratorType.collaboratorCount ?? 0)}</TableCell>
|
|
146
|
+
<TableCell>
|
|
147
|
+
<StatusBadge
|
|
148
|
+
label={getStatusLabel(collaboratorType.status)}
|
|
149
|
+
className={getStatusBadgeClass(collaboratorType.status)}
|
|
150
|
+
/>
|
|
151
|
+
</TableCell>
|
|
152
|
+
<TableCell>
|
|
153
|
+
<div className="flex justify-end gap-2">
|
|
154
|
+
<Button
|
|
155
|
+
variant="outline"
|
|
156
|
+
size="icon"
|
|
157
|
+
className="cursor-pointer"
|
|
158
|
+
onClick={() => onEdit(collaboratorType)}
|
|
159
|
+
>
|
|
160
|
+
<Pencil className="size-4" />
|
|
161
|
+
</Button>
|
|
162
|
+
<Button
|
|
163
|
+
variant="outline"
|
|
164
|
+
size="sm"
|
|
165
|
+
className="cursor-pointer"
|
|
166
|
+
onClick={() => onToggleStatus(collaboratorType)}
|
|
167
|
+
>
|
|
168
|
+
{collaboratorType.status === 'inactive'
|
|
169
|
+
? commonT('actions.activate')
|
|
170
|
+
: commonT('actions.deactivate')}
|
|
171
|
+
</Button>
|
|
172
|
+
</div>
|
|
173
|
+
</TableCell>
|
|
174
|
+
</TableRow>
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export default function OperationsCollaboratorTypesPage() {
|
|
179
|
+
const t = useTranslations('operations.CollaboratorTypesPage');
|
|
180
|
+
const commonT = useTranslations('operations.Common');
|
|
181
|
+
const collaboratorFormT = useTranslations('operations.CollaboratorFormPage');
|
|
182
|
+
const { request, showToastHandler, currentLocaleCode } = useApp();
|
|
183
|
+
const getStatusLabel = (value?: string | null) =>
|
|
184
|
+
value
|
|
185
|
+
? collaboratorFormT.has(`options.statuses.${value}`)
|
|
186
|
+
? collaboratorFormT(`options.statuses.${value}`)
|
|
187
|
+
: formatEnumLabel(value)
|
|
188
|
+
: '-';
|
|
189
|
+
const access = useOperationsAccess();
|
|
190
|
+
const sensors = useSensors(
|
|
191
|
+
useSensor(PointerSensor, { activationConstraint: { distance: 6 } })
|
|
192
|
+
);
|
|
193
|
+
const [search, setSearch] = useState('');
|
|
194
|
+
const [statusFilter, setStatusFilter] = useState<
|
|
195
|
+
'all' | 'active' | 'inactive'
|
|
196
|
+
>('all');
|
|
197
|
+
const [page, setPage] = useState(1);
|
|
198
|
+
const [pageSize, setPageSize] = useState(100);
|
|
199
|
+
const [viewMode, setViewMode] = useState<'table' | 'cards'>(() => {
|
|
200
|
+
if (typeof window === 'undefined') return 'table';
|
|
201
|
+
const saved = window.localStorage.getItem(
|
|
202
|
+
'operations-collaborator-types-view-mode'
|
|
203
|
+
);
|
|
204
|
+
return saved === 'cards' ? 'cards' : 'table';
|
|
205
|
+
});
|
|
206
|
+
const [isSheetOpen, setIsSheetOpen] = useState(false);
|
|
207
|
+
const [isSaving, setIsSaving] = useState(false);
|
|
208
|
+
const [isReordering, setIsReordering] = useState(false);
|
|
209
|
+
const [editingType, setEditingType] =
|
|
210
|
+
useState<OperationsCollaboratorType | null>(null);
|
|
211
|
+
const [form, setForm] = useState<CollaboratorTypeFormState>(EMPTY_FORM_STATE);
|
|
212
|
+
const [orderedCollaboratorTypes, setOrderedCollaboratorTypes] = useState<
|
|
213
|
+
OperationsCollaboratorType[]
|
|
214
|
+
>([]);
|
|
215
|
+
|
|
216
|
+
const {
|
|
217
|
+
data: collaboratorTypesResponse,
|
|
218
|
+
isLoading,
|
|
219
|
+
refetch,
|
|
220
|
+
} = useQuery<PaginatedResponse<OperationsCollaboratorType>>({
|
|
221
|
+
queryKey: [
|
|
222
|
+
'operations-collaborator-types-page',
|
|
223
|
+
currentLocaleCode,
|
|
224
|
+
search,
|
|
225
|
+
statusFilter,
|
|
226
|
+
page,
|
|
227
|
+
pageSize,
|
|
228
|
+
],
|
|
229
|
+
enabled: access.isDirector,
|
|
230
|
+
queryFn: () => {
|
|
231
|
+
const params = new URLSearchParams({
|
|
232
|
+
page: String(page),
|
|
233
|
+
pageSize: String(pageSize),
|
|
234
|
+
sortField: 'sortOrder',
|
|
235
|
+
sortOrder: 'asc',
|
|
236
|
+
});
|
|
237
|
+
if (search.trim()) params.set('search', search.trim());
|
|
238
|
+
if (statusFilter !== 'all') params.set('status', statusFilter);
|
|
239
|
+
return fetchOperations<PaginatedResponse<OperationsCollaboratorType>>(
|
|
240
|
+
request,
|
|
241
|
+
`/operations/collaborator-types?${params.toString()}`
|
|
242
|
+
);
|
|
243
|
+
},
|
|
244
|
+
placeholderData: (previous) => previous,
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
const collaboratorTypes =
|
|
248
|
+
collaboratorTypesResponse?.data ?? EMPTY_COLLABORATOR_TYPES;
|
|
249
|
+
const totalItems = collaboratorTypesResponse?.total ?? 0;
|
|
250
|
+
const reorderEnabled =
|
|
251
|
+
viewMode === 'table' &&
|
|
252
|
+
!search.trim() &&
|
|
253
|
+
statusFilter === 'all' &&
|
|
254
|
+
page === 1 &&
|
|
255
|
+
totalItems <= pageSize;
|
|
256
|
+
|
|
257
|
+
useEffect(() => {
|
|
258
|
+
setOrderedCollaboratorTypes(collaboratorTypes);
|
|
259
|
+
}, [collaboratorTypes]);
|
|
260
|
+
|
|
261
|
+
const statsCards = useMemo(
|
|
262
|
+
() => [
|
|
263
|
+
{
|
|
264
|
+
key: 'total',
|
|
265
|
+
title: t('cards.total'),
|
|
266
|
+
value: collaboratorTypes.length,
|
|
267
|
+
icon: Briefcase,
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
key: 'active',
|
|
271
|
+
title: t('cards.active'),
|
|
272
|
+
value: collaboratorTypes.filter((item) => item.status === 'active')
|
|
273
|
+
.length,
|
|
274
|
+
icon: Briefcase,
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
key: 'linkedCollaborators',
|
|
278
|
+
title: t('cards.linkedCollaborators'),
|
|
279
|
+
value: collaboratorTypes.reduce(
|
|
280
|
+
(total, item) => total + Number(item.collaboratorCount ?? 0),
|
|
281
|
+
0
|
|
282
|
+
),
|
|
283
|
+
icon: Users,
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
key: 'inactive',
|
|
287
|
+
title: t('cards.inactive'),
|
|
288
|
+
value: collaboratorTypes.filter((item) => item.status === 'inactive')
|
|
289
|
+
.length,
|
|
290
|
+
icon: Briefcase,
|
|
291
|
+
},
|
|
292
|
+
],
|
|
293
|
+
[collaboratorTypes, t]
|
|
294
|
+
);
|
|
295
|
+
|
|
296
|
+
const handleViewModeChange = (value: string) => {
|
|
297
|
+
if (value !== 'table' && value !== 'cards') return;
|
|
298
|
+
setViewMode(value);
|
|
299
|
+
if (typeof window !== 'undefined') {
|
|
300
|
+
window.localStorage.setItem(
|
|
301
|
+
'operations-collaborator-types-view-mode',
|
|
302
|
+
value
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
const updateForm = <K extends keyof CollaboratorTypeFormState>(
|
|
308
|
+
field: K,
|
|
309
|
+
value: CollaboratorTypeFormState[K]
|
|
310
|
+
) => {
|
|
311
|
+
setForm((current) => ({
|
|
312
|
+
...current,
|
|
313
|
+
[field]: value,
|
|
314
|
+
}));
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
const openCreateSheet = () => {
|
|
318
|
+
setEditingType(null);
|
|
319
|
+
setForm(EMPTY_FORM_STATE);
|
|
320
|
+
setIsSheetOpen(true);
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
const openEditSheet = (collaboratorType: OperationsCollaboratorType) => {
|
|
324
|
+
setEditingType(collaboratorType);
|
|
325
|
+
setForm({
|
|
326
|
+
name: collaboratorType.name ?? '',
|
|
327
|
+
slug: collaboratorType.slug ?? '',
|
|
328
|
+
description: collaboratorType.description ?? '',
|
|
329
|
+
category: collaboratorType.category ?? '',
|
|
330
|
+
status: collaboratorType.status ?? 'active',
|
|
331
|
+
});
|
|
332
|
+
setIsSheetOpen(true);
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
const saveCollaboratorType = async () => {
|
|
336
|
+
if (!form.name.trim()) {
|
|
337
|
+
showToastHandler?.('error', t('messages.requiredFields'));
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
setIsSaving(true);
|
|
342
|
+
|
|
343
|
+
try {
|
|
344
|
+
await mutateOperations(
|
|
345
|
+
request,
|
|
346
|
+
editingType
|
|
347
|
+
? `/operations/collaborator-types/${editingType.id}`
|
|
348
|
+
: '/operations/collaborator-types',
|
|
349
|
+
editingType ? 'PATCH' : 'POST',
|
|
350
|
+
{
|
|
351
|
+
name: form.name.trim(),
|
|
352
|
+
slug: form.slug.trim() || null,
|
|
353
|
+
description: form.description.trim() || null,
|
|
354
|
+
category: form.category.trim() || null,
|
|
355
|
+
status: form.status,
|
|
356
|
+
isActive: form.status === 'active',
|
|
357
|
+
}
|
|
358
|
+
);
|
|
359
|
+
|
|
360
|
+
showToastHandler?.('success', t('messages.saveSuccess'));
|
|
361
|
+
setIsSheetOpen(false);
|
|
362
|
+
setEditingType(null);
|
|
363
|
+
setForm(EMPTY_FORM_STATE);
|
|
364
|
+
await refetch();
|
|
365
|
+
} catch {
|
|
366
|
+
showToastHandler?.('error', t('messages.saveError'));
|
|
367
|
+
} finally {
|
|
368
|
+
setIsSaving(false);
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
const toggleStatus = async (collaboratorType: OperationsCollaboratorType) => {
|
|
373
|
+
const nextStatus =
|
|
374
|
+
collaboratorType.status === 'inactive' ? 'active' : 'inactive';
|
|
375
|
+
|
|
376
|
+
try {
|
|
377
|
+
await mutateOperations(
|
|
378
|
+
request,
|
|
379
|
+
`/operations/collaborator-types/${collaboratorType.id}`,
|
|
380
|
+
'PATCH',
|
|
381
|
+
{ status: nextStatus, isActive: nextStatus === 'active' }
|
|
382
|
+
);
|
|
383
|
+
showToastHandler?.('success', t('messages.statusSuccess'));
|
|
384
|
+
await refetch();
|
|
385
|
+
} catch {
|
|
386
|
+
showToastHandler?.('error', t('messages.statusError'));
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
const handleDragEnd = async (event: DragEndEvent) => {
|
|
391
|
+
if (!reorderEnabled || isReordering) return;
|
|
392
|
+
|
|
393
|
+
const { active, over } = event;
|
|
394
|
+
|
|
395
|
+
if (!over || active.id === over.id) {
|
|
396
|
+
return;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
const oldIndex = orderedCollaboratorTypes.findIndex(
|
|
400
|
+
(item) => item.id === Number(active.id)
|
|
401
|
+
);
|
|
402
|
+
const newIndex = orderedCollaboratorTypes.findIndex(
|
|
403
|
+
(item) => item.id === Number(over.id)
|
|
404
|
+
);
|
|
405
|
+
|
|
406
|
+
if (oldIndex < 0 || newIndex < 0) {
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
const nextOrder = arrayMove(orderedCollaboratorTypes, oldIndex, newIndex);
|
|
411
|
+
const previousOrder = orderedCollaboratorTypes;
|
|
412
|
+
|
|
413
|
+
setOrderedCollaboratorTypes(nextOrder);
|
|
414
|
+
setIsReordering(true);
|
|
415
|
+
|
|
416
|
+
try {
|
|
417
|
+
await mutateOperations(
|
|
418
|
+
request,
|
|
419
|
+
'/operations/collaborator-types/reorder',
|
|
420
|
+
'PATCH',
|
|
421
|
+
{
|
|
422
|
+
ids: nextOrder.map((item) => item.id),
|
|
423
|
+
}
|
|
424
|
+
);
|
|
425
|
+
showToastHandler?.('success', t('messages.reorderSuccess'));
|
|
426
|
+
await refetch();
|
|
427
|
+
} catch {
|
|
428
|
+
setOrderedCollaboratorTypes(previousOrder);
|
|
429
|
+
showToastHandler?.('error', t('messages.reorderError'));
|
|
430
|
+
} finally {
|
|
431
|
+
setIsReordering(false);
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
if (!access.isLoading && !access.isDirector) {
|
|
436
|
+
return (
|
|
437
|
+
<Page>
|
|
438
|
+
<OperationsHeader
|
|
439
|
+
title={t('title')}
|
|
440
|
+
description={t('description')}
|
|
441
|
+
current={t('breadcrumb')}
|
|
442
|
+
actions={
|
|
443
|
+
<Button variant="outline" size="sm" asChild>
|
|
444
|
+
<Link href="/operations/collaborators">
|
|
445
|
+
{commonT('actions.back')}
|
|
446
|
+
</Link>
|
|
447
|
+
</Button>
|
|
448
|
+
}
|
|
449
|
+
/>
|
|
450
|
+
|
|
451
|
+
<EmptyState
|
|
452
|
+
icon={<Briefcase className="size-12" />}
|
|
453
|
+
title={commonT('states.noAccessTitle')}
|
|
454
|
+
description={t('noAccessDescription')}
|
|
455
|
+
actionLabel={commonT('actions.back')}
|
|
456
|
+
onAction={() => {
|
|
457
|
+
window.location.href = '/operations';
|
|
458
|
+
}}
|
|
459
|
+
/>
|
|
460
|
+
</Page>
|
|
461
|
+
);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
return (
|
|
465
|
+
<Page>
|
|
466
|
+
<OperationsHeader
|
|
467
|
+
title={t('title')}
|
|
468
|
+
description={t('description')}
|
|
469
|
+
current={t('breadcrumb')}
|
|
470
|
+
actions={
|
|
471
|
+
<div className="flex flex-wrap gap-2">
|
|
472
|
+
<Button variant="outline" size="sm" asChild>
|
|
473
|
+
<Link href="/operations/collaborators">
|
|
474
|
+
{commonT('actions.back')}
|
|
475
|
+
</Link>
|
|
476
|
+
</Button>
|
|
477
|
+
<Button size="sm" onClick={openCreateSheet}>
|
|
478
|
+
{commonT('actions.create')}
|
|
479
|
+
</Button>
|
|
480
|
+
</div>
|
|
481
|
+
}
|
|
482
|
+
/>
|
|
483
|
+
|
|
484
|
+
<KpiCardsGrid items={statsCards} columns={4} />
|
|
485
|
+
|
|
486
|
+
<div className="flex min-w-0 flex-col gap-4 xl:flex-row xl:items-center">
|
|
487
|
+
<div className="flex-1">
|
|
488
|
+
<SearchBar
|
|
489
|
+
searchQuery={search}
|
|
490
|
+
onSearchChange={(value) => {
|
|
491
|
+
setSearch(value);
|
|
492
|
+
setPage(1);
|
|
493
|
+
}}
|
|
494
|
+
showSearchButton={false}
|
|
495
|
+
debounceMs={500}
|
|
496
|
+
placeholder={t('searchPlaceholder')}
|
|
497
|
+
controls={[
|
|
498
|
+
{
|
|
499
|
+
id: 'status',
|
|
500
|
+
type: 'select',
|
|
501
|
+
value: statusFilter,
|
|
502
|
+
onChange: (value) => {
|
|
503
|
+
setStatusFilter(
|
|
504
|
+
(value as 'all' | 'active' | 'inactive') ?? 'all'
|
|
505
|
+
);
|
|
506
|
+
setPage(1);
|
|
507
|
+
},
|
|
508
|
+
placeholder: commonT('labels.status'),
|
|
509
|
+
options: [
|
|
510
|
+
{ value: 'all', label: commonT('filters.allStatuses') },
|
|
511
|
+
{ value: 'active', label: getStatusLabel('active') },
|
|
512
|
+
{ value: 'inactive', label: getStatusLabel('inactive') },
|
|
513
|
+
],
|
|
514
|
+
},
|
|
515
|
+
]}
|
|
516
|
+
/>
|
|
517
|
+
</div>
|
|
518
|
+
|
|
519
|
+
<div className="flex items-center justify-between gap-3 xl:justify-end">
|
|
520
|
+
<span className="text-xs font-medium text-muted-foreground">
|
|
521
|
+
{t('viewMode')}
|
|
522
|
+
</span>
|
|
523
|
+
<ToggleGroup
|
|
524
|
+
type="single"
|
|
525
|
+
value={viewMode}
|
|
526
|
+
onValueChange={handleViewModeChange}
|
|
527
|
+
variant="outline"
|
|
528
|
+
size="sm"
|
|
529
|
+
aria-label={t('viewMode')}
|
|
530
|
+
>
|
|
531
|
+
<ToggleGroupItem
|
|
532
|
+
value="table"
|
|
533
|
+
className="gap-1.5 px-2.5"
|
|
534
|
+
aria-label={t('viewModeTable')}
|
|
535
|
+
>
|
|
536
|
+
<List className="h-4 w-4" />
|
|
537
|
+
<span className="hidden sm:inline">{t('viewModeTable')}</span>
|
|
538
|
+
</ToggleGroupItem>
|
|
539
|
+
<ToggleGroupItem
|
|
540
|
+
value="cards"
|
|
541
|
+
className="gap-1.5 px-2.5"
|
|
542
|
+
aria-label={t('viewModeCards')}
|
|
543
|
+
>
|
|
544
|
+
<LayoutGrid className="h-4 w-4" />
|
|
545
|
+
<span className="hidden sm:inline">{t('viewModeCards')}</span>
|
|
546
|
+
</ToggleGroupItem>
|
|
547
|
+
</ToggleGroup>
|
|
548
|
+
</div>
|
|
549
|
+
</div>
|
|
550
|
+
|
|
551
|
+
<div className="rounded-md border border-dashed bg-muted/20 px-4 py-3 text-sm text-muted-foreground">
|
|
552
|
+
{reorderEnabled ? t('reorder.description') : t('reorder.filtered')}
|
|
553
|
+
</div>
|
|
554
|
+
|
|
555
|
+
{isLoading ? (
|
|
556
|
+
<div className="rounded-md border px-4 py-6 text-sm text-muted-foreground">
|
|
557
|
+
{commonT('actions.refresh')}...
|
|
558
|
+
</div>
|
|
559
|
+
) : collaboratorTypes.length > 0 ? (
|
|
560
|
+
viewMode === 'cards' ? (
|
|
561
|
+
<div className="grid gap-4 md:grid-cols-2 2xl:grid-cols-3">
|
|
562
|
+
{orderedCollaboratorTypes.map((collaboratorType) => (
|
|
563
|
+
<Card
|
|
564
|
+
key={collaboratorType.id}
|
|
565
|
+
className="cursor-pointer overflow-hidden border-border/60 py-0 shadow-sm transition-all hover:-translate-y-0.5 hover:shadow-md"
|
|
566
|
+
onClick={() => openEditSheet(collaboratorType)}
|
|
567
|
+
>
|
|
568
|
+
<CardContent className="space-y-3 p-4">
|
|
569
|
+
<div className="flex items-start justify-between gap-3">
|
|
570
|
+
<div className="min-w-0">
|
|
571
|
+
<div className="truncate font-semibold">
|
|
572
|
+
{collaboratorType.name}
|
|
573
|
+
</div>
|
|
574
|
+
{collaboratorType.slug ? (
|
|
575
|
+
<div className="truncate text-xs text-muted-foreground">
|
|
576
|
+
{collaboratorType.slug}
|
|
577
|
+
</div>
|
|
578
|
+
) : null}
|
|
579
|
+
</div>
|
|
580
|
+
<StatusBadge
|
|
581
|
+
label={getStatusLabel(collaboratorType.status)}
|
|
582
|
+
className={getStatusBadgeClass(collaboratorType.status)}
|
|
583
|
+
/>
|
|
584
|
+
</div>
|
|
585
|
+
<div className="flex flex-wrap gap-2">
|
|
586
|
+
{collaboratorType.category ? (
|
|
587
|
+
<span className="inline-flex items-center rounded-full bg-primary/10 px-2.5 py-1 text-xs font-medium text-primary">
|
|
588
|
+
{collaboratorType.category}
|
|
589
|
+
</span>
|
|
590
|
+
) : null}
|
|
591
|
+
<span className="inline-flex items-center rounded-full bg-muted px-2.5 py-1 text-xs font-medium text-muted-foreground">
|
|
592
|
+
{Number(collaboratorType.collaboratorCount ?? 0)}{' '}
|
|
593
|
+
{commonT('labels.collaborators')}
|
|
594
|
+
</span>
|
|
595
|
+
</div>
|
|
596
|
+
{collaboratorType.description ? (
|
|
597
|
+
<p className="line-clamp-2 text-sm text-muted-foreground">
|
|
598
|
+
{collaboratorType.description}
|
|
599
|
+
</p>
|
|
600
|
+
) : null}
|
|
601
|
+
<div className="flex justify-end gap-2 border-t border-border/60 pt-3">
|
|
602
|
+
<Button
|
|
603
|
+
variant="outline"
|
|
604
|
+
size="icon"
|
|
605
|
+
onClick={(e) => {
|
|
606
|
+
e.stopPropagation();
|
|
607
|
+
openEditSheet(collaboratorType);
|
|
608
|
+
}}
|
|
609
|
+
>
|
|
610
|
+
<Pencil className="size-4" />
|
|
611
|
+
</Button>
|
|
612
|
+
<Button
|
|
613
|
+
variant="outline"
|
|
614
|
+
size="sm"
|
|
615
|
+
onClick={(e) => {
|
|
616
|
+
e.stopPropagation();
|
|
617
|
+
void toggleStatus(collaboratorType);
|
|
618
|
+
}}
|
|
619
|
+
>
|
|
620
|
+
{collaboratorType.status === 'inactive'
|
|
621
|
+
? commonT('actions.activate')
|
|
622
|
+
: commonT('actions.deactivate')}
|
|
623
|
+
</Button>
|
|
624
|
+
</div>
|
|
625
|
+
</CardContent>
|
|
626
|
+
</Card>
|
|
627
|
+
))}
|
|
628
|
+
</div>
|
|
629
|
+
) : (
|
|
630
|
+
<div className="overflow-x-auto rounded-md border">
|
|
631
|
+
<DndContext
|
|
632
|
+
sensors={sensors}
|
|
633
|
+
collisionDetection={closestCenter}
|
|
634
|
+
onDragEnd={(event) => void handleDragEnd(event)}
|
|
635
|
+
>
|
|
636
|
+
<Table>
|
|
637
|
+
<TableHeader>
|
|
638
|
+
<TableRow>
|
|
639
|
+
<TableHead className="w-14">{t('columns.drag')}</TableHead>
|
|
640
|
+
<TableHead>{t('columns.sortOrder')}</TableHead>
|
|
641
|
+
<TableHead>{t('columns.name')}</TableHead>
|
|
642
|
+
<TableHead>{t('columns.slug')}</TableHead>
|
|
643
|
+
<TableHead>{t('columns.category')}</TableHead>
|
|
644
|
+
<TableHead>{t('columns.description')}</TableHead>
|
|
645
|
+
<TableHead>{t('columns.collaborators')}</TableHead>
|
|
646
|
+
<TableHead>{commonT('labels.status')}</TableHead>
|
|
647
|
+
<TableHead className="text-right">
|
|
648
|
+
{commonT('labels.actions')}
|
|
649
|
+
</TableHead>
|
|
650
|
+
</TableRow>
|
|
651
|
+
</TableHeader>
|
|
652
|
+
<TableBody>
|
|
653
|
+
<SortableContext
|
|
654
|
+
items={orderedCollaboratorTypes.map((item) => item.id)}
|
|
655
|
+
strategy={verticalListSortingStrategy}
|
|
656
|
+
>
|
|
657
|
+
{orderedCollaboratorTypes.map((collaboratorType, index) => (
|
|
658
|
+
<SortableCollaboratorTypeRow
|
|
659
|
+
key={collaboratorType.id}
|
|
660
|
+
collaboratorType={collaboratorType}
|
|
661
|
+
position={index + 1}
|
|
662
|
+
commonT={commonT}
|
|
663
|
+
t={t}
|
|
664
|
+
onEdit={openEditSheet}
|
|
665
|
+
onToggleStatus={(item) => void toggleStatus(item)}
|
|
666
|
+
reorderEnabled={reorderEnabled && !isReordering}
|
|
667
|
+
getStatusLabel={getStatusLabel}
|
|
668
|
+
/>
|
|
669
|
+
))}
|
|
670
|
+
</SortableContext>
|
|
671
|
+
</TableBody>
|
|
672
|
+
</Table>
|
|
673
|
+
</DndContext>
|
|
674
|
+
</div>
|
|
675
|
+
)
|
|
676
|
+
) : (
|
|
677
|
+
<EmptyState
|
|
678
|
+
icon={<Briefcase className="size-12" />}
|
|
679
|
+
title={commonT('states.emptyTitle')}
|
|
680
|
+
description={t('emptyDescription')}
|
|
681
|
+
actionLabel={commonT('actions.create')}
|
|
682
|
+
onAction={openCreateSheet}
|
|
683
|
+
/>
|
|
684
|
+
)}
|
|
685
|
+
|
|
686
|
+
<PaginationFooter
|
|
687
|
+
currentPage={page}
|
|
688
|
+
pageSize={pageSize}
|
|
689
|
+
totalItems={totalItems}
|
|
690
|
+
pageSizeOptions={[25, 50, 100, 200]}
|
|
691
|
+
onPageChange={setPage}
|
|
692
|
+
onPageSizeChange={(size) => {
|
|
693
|
+
setPageSize(size);
|
|
694
|
+
setPage(1);
|
|
695
|
+
}}
|
|
696
|
+
/>
|
|
697
|
+
|
|
698
|
+
<Sheet open={isSheetOpen} onOpenChange={setIsSheetOpen}>
|
|
699
|
+
<SheetContent className="w-full overflow-y-auto sm:max-w-xl">
|
|
700
|
+
<SheetHeader>
|
|
701
|
+
<SheetTitle>
|
|
702
|
+
{editingType ? t('sheet.editTitle') : t('sheet.createTitle')}
|
|
703
|
+
</SheetTitle>
|
|
704
|
+
<SheetDescription>{t('sheet.description')}</SheetDescription>
|
|
705
|
+
</SheetHeader>
|
|
706
|
+
|
|
707
|
+
<form
|
|
708
|
+
className="mt-6 space-y-4 px-6"
|
|
709
|
+
onSubmit={(event) => {
|
|
710
|
+
event.preventDefault();
|
|
711
|
+
void saveCollaboratorType();
|
|
712
|
+
}}
|
|
713
|
+
>
|
|
714
|
+
<div className="space-y-2">
|
|
715
|
+
<label className="text-sm font-medium" htmlFor="type-name">
|
|
716
|
+
{t('form.name')}
|
|
717
|
+
</label>
|
|
718
|
+
<input
|
|
719
|
+
id="type-name"
|
|
720
|
+
value={form.name}
|
|
721
|
+
onChange={(event) => updateForm('name', event.target.value)}
|
|
722
|
+
className="w-full rounded-md border border-input bg-background px-3 py-2 text-sm"
|
|
723
|
+
placeholder={t('form.name')}
|
|
724
|
+
/>
|
|
725
|
+
</div>
|
|
726
|
+
|
|
727
|
+
<div className="space-y-2">
|
|
728
|
+
<label className="text-sm font-medium" htmlFor="type-slug">
|
|
729
|
+
{t('form.slug')}
|
|
730
|
+
</label>
|
|
731
|
+
<input
|
|
732
|
+
id="type-slug"
|
|
733
|
+
value={form.slug}
|
|
734
|
+
onChange={(event) => updateForm('slug', event.target.value)}
|
|
735
|
+
className="w-full rounded-md border border-input bg-background px-3 py-2 text-sm"
|
|
736
|
+
placeholder={t('form.slug')}
|
|
737
|
+
/>
|
|
738
|
+
</div>
|
|
739
|
+
|
|
740
|
+
<div className="space-y-2">
|
|
741
|
+
<label className="text-sm font-medium" htmlFor="type-category">
|
|
742
|
+
{t('form.category')}
|
|
743
|
+
</label>
|
|
744
|
+
<input
|
|
745
|
+
id="type-category"
|
|
746
|
+
value={form.category}
|
|
747
|
+
onChange={(event) => updateForm('category', event.target.value)}
|
|
748
|
+
className="w-full rounded-md border border-input bg-background px-3 py-2 text-sm"
|
|
749
|
+
placeholder={t('form.category')}
|
|
750
|
+
/>
|
|
751
|
+
</div>
|
|
752
|
+
|
|
753
|
+
<div className="space-y-2">
|
|
754
|
+
<label className="text-sm font-medium" htmlFor="type-description">
|
|
755
|
+
{t('form.description')}
|
|
756
|
+
</label>
|
|
757
|
+
<textarea
|
|
758
|
+
id="type-description"
|
|
759
|
+
value={form.description}
|
|
760
|
+
onChange={(event) =>
|
|
761
|
+
updateForm('description', event.target.value)
|
|
762
|
+
}
|
|
763
|
+
className="min-h-24 w-full rounded-md border border-input bg-background px-3 py-2 text-sm"
|
|
764
|
+
placeholder={t('form.description')}
|
|
765
|
+
/>
|
|
766
|
+
</div>
|
|
767
|
+
|
|
768
|
+
<div className="space-y-2">
|
|
769
|
+
<label className="text-sm font-medium" htmlFor="type-status">
|
|
770
|
+
{t('form.status')}
|
|
771
|
+
</label>
|
|
772
|
+
<select
|
|
773
|
+
id="type-status"
|
|
774
|
+
value={form.status}
|
|
775
|
+
onChange={(event) =>
|
|
776
|
+
updateForm(
|
|
777
|
+
'status',
|
|
778
|
+
event.target.value === 'inactive' ? 'inactive' : 'active'
|
|
779
|
+
)
|
|
780
|
+
}
|
|
781
|
+
className="w-full rounded-md border border-input bg-background px-3 py-2 text-sm"
|
|
782
|
+
>
|
|
783
|
+
<option value="active">{getStatusLabel('active')}</option>
|
|
784
|
+
<option value="inactive">{getStatusLabel('inactive')}</option>
|
|
785
|
+
</select>
|
|
786
|
+
</div>
|
|
787
|
+
|
|
788
|
+
<div className="flex justify-end gap-2 pt-2">
|
|
789
|
+
<Button
|
|
790
|
+
type="button"
|
|
791
|
+
variant="outline"
|
|
792
|
+
onClick={() => setIsSheetOpen(false)}
|
|
793
|
+
>
|
|
794
|
+
{commonT('actions.cancel')}
|
|
795
|
+
</Button>
|
|
796
|
+
<Button type="submit" disabled={isSaving}>
|
|
797
|
+
{commonT('actions.save')}
|
|
798
|
+
</Button>
|
|
799
|
+
</div>
|
|
800
|
+
</form>
|
|
801
|
+
</SheetContent>
|
|
802
|
+
</Sheet>
|
|
803
|
+
</Page>
|
|
804
|
+
);
|
|
805
|
+
}
|