@hed-hog/operations 0.0.327 → 0.0.329
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/controllers/operations-tasks.controller.d.ts +3 -3
- package/dist/operations.service.d.ts +3 -3
- package/hedhog/frontend/app/_components/collaborator-form-screen.tsx.ejs +7 -7
- package/hedhog/frontend/app/_components/department-picker.tsx.ejs +125 -0
- package/hedhog/frontend/app/_components/department-select-with-create.tsx.ejs +64 -325
- package/hedhog/frontend/app/_components/project-form-screen.tsx.ejs +16 -16
- package/hedhog/frontend/app/_components/system-user-picker.tsx.ejs +198 -0
- package/hedhog/frontend/app/_components/system-user-select-with-create.tsx.ejs +107 -569
- package/hedhog/frontend/messages/en.json +79 -10
- package/hedhog/frontend/messages/operations/en.json +67 -3
- package/hedhog/frontend/messages/operations/pt.json +67 -3
- package/hedhog/frontend/messages/pt.json +77 -8
- package/package.json +5 -5
- package/hedhog/frontend/app/_components/collaborator-details-screen.tsx.ejs +0 -476
- package/hedhog/frontend/app/_components/collaborator-select-with-create.tsx.ejs +0 -261
- package/hedhog/frontend/app/_components/contract-content-editor.tsx.ejs +0 -258
- package/hedhog/frontend/app/_components/person-select-with-create.tsx.ejs +0 -1
- package/hedhog/frontend/messages/en.json.ejs +0 -2060
- package/hedhog/frontend/messages/operations/operations/en.json +0 -2102
- package/hedhog/frontend/messages/operations/operations/pt.json +0 -2111
- package/hedhog/frontend/messages/pt.json.ejs +0 -2067
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.d.ts +0 -29
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.js +0 -95
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.tsx +0 -233
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.d.ts +0 -10
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.js +0 -577
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.tsx +0 -868
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.js +0 -337
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.tsx +0 -476
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.d.ts +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.js +0 -1348
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.tsx +0 -2233
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.d.ts +0 -12
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.js +0 -162
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.tsx +0 -261
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.d.ts +0 -18
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.js +0 -145
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.tsx +0 -258
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.js +0 -223
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.tsx +0 -342
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.d.ts +0 -58
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.js +0 -438
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.tsx +0 -698
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.d.ts +0 -20
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.js +0 -233
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.tsx +0 -392
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.js +0 -814
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.tsx +0 -1288
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.d.ts +0 -21
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.js +0 -174
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.tsx +0 -306
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.d.ts +0 -10
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.js +0 -12
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.tsx +0 -29
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.d.ts +0 -15
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.js +0 -501
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.tsx +0 -853
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.js +0 -847
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.tsx +0 -1340
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.js +0 -2930
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.tsx +0 -4378
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.d.ts +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.js +0 -1013
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.tsx +0 -1745
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.d.ts +0 -13
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.js +0 -38
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.tsx +0 -74
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.d.ts +0 -7
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.js +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.tsx +0 -15
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.d.ts +0 -18
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.js +0 -406
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.tsx +0 -660
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.d.ts +0 -26
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.js +0 -332
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.tsx +0 -518
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.js +0 -255
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.tsx +0 -388
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.d.ts +0 -10
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.js +0 -131
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.tsx +0 -214
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.d.ts +0 -108
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.js +0 -162
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.ts +0 -428
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.d.ts +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.js +0 -36
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.ts +0 -44
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.d.ts +0 -837
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.js +0 -3
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.ts +0 -861
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.d.ts +0 -16
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.js +0 -182
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.ts +0 -250
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.js +0 -51
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.ts +0 -61
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.js +0 -954
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.tsx +0 -1277
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.js +0 -488
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.tsx +0 -805
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.js +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.tsx +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.js +0 -612
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.tsx +0 -939
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.tsx +0 -17
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.js +0 -348
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.tsx +0 -536
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.js +0 -401
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.tsx +0 -607
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.d.ts +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.js +0 -7
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.tsx +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.js +0 -321
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.tsx +0 -440
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.js +0 -939
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.tsx +0 -1499
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.d.ts +0 -29
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.js +0 -95
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.tsx +0 -233
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.d.ts +0 -10
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.js +0 -577
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.tsx +0 -868
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.js +0 -337
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.tsx +0 -476
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.d.ts +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.js +0 -1348
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.tsx +0 -2233
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.d.ts +0 -12
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.js +0 -162
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.tsx +0 -261
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.d.ts +0 -18
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.js +0 -145
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.tsx +0 -258
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.js +0 -223
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.tsx +0 -342
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.d.ts +0 -58
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.js +0 -438
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.tsx +0 -698
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.d.ts +0 -20
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.js +0 -233
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.tsx +0 -392
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.js +0 -814
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.tsx +0 -1288
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.d.ts +0 -21
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.js +0 -174
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.tsx +0 -306
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.d.ts +0 -10
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.js +0 -12
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.tsx +0 -29
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.d.ts +0 -15
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.js +0 -501
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.tsx +0 -853
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.js +0 -459
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.tsx +0 -598
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.js +0 -876
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.tsx +0 -1368
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.js +0 -2930
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.tsx +0 -4378
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.d.ts +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.js +0 -1013
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.tsx +0 -1745
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.d.ts +0 -13
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.js +0 -38
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.tsx +0 -74
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.d.ts +0 -7
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.js +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.tsx +0 -15
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.d.ts +0 -18
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.js +0 -406
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.tsx +0 -660
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.d.ts +0 -26
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.js +0 -332
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.tsx +0 -518
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.js +0 -255
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.tsx +0 -388
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.d.ts +0 -10
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.js +0 -131
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.tsx +0 -214
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.d.ts +0 -108
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.js +0 -162
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.ts +0 -428
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.d.ts +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.js +0 -36
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.ts +0 -44
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.d.ts +0 -837
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.js +0 -3
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.ts +0 -861
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.d.ts +0 -16
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.js +0 -182
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.ts +0 -250
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.js +0 -51
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.ts +0 -61
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.js +0 -954
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.tsx +0 -1277
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.js +0 -488
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.tsx +0 -805
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.js +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.tsx +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.js +0 -612
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.tsx +0 -939
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.tsx +0 -17
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.js +0 -348
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.tsx +0 -536
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.js +0 -401
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.tsx +0 -607
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.d.ts +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.js +0 -7
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.tsx +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.js +0 -321
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.tsx +0 -440
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.js +0 -939
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.tsx +0 -1499
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.js +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.tsx +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.js +0 -436
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.tsx +0 -675
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.js +0 -563
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.tsx +0 -846
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.tsx +0 -10
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.js +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.tsx +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.js +0 -492
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.tsx +0 -757
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.js +0 -342
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.tsx +0 -430
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.js +0 -338
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.tsx +0 -428
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.js +0 -660
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.tsx +0 -992
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.js +0 -515
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.tsx +0 -707
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.js +0 -1141
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.tsx +0 -1705
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.js +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.tsx +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.js +0 -436
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.tsx +0 -675
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.js +0 -563
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.tsx +0 -846
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.js +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.tsx +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.js +0 -492
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.tsx +0 -757
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.js +0 -342
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.tsx +0 -430
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.js +0 -338
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.tsx +0 -428
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.js +0 -660
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.tsx +0 -992
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.js +0 -515
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.tsx +0 -707
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.js +0 -1141
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.tsx +0 -1705
package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.tsx
DELETED
|
@@ -1,805 +0,0 @@
|
|
|
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
|
-
}
|