@hed-hog/operations 0.0.328 → 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 +6 -6
- 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/_components/project-costs-section.js
DELETED
|
@@ -1,847 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.ProjectCostsSection = ProjectCostsSection;
|
|
5
|
-
const alert_dialog_1 = require("@/components/ui/alert-dialog");
|
|
6
|
-
const badge_1 = require("@/components/ui/badge");
|
|
7
|
-
const button_1 = require("@/components/ui/button");
|
|
8
|
-
const chart_1 = require("@/components/ui/chart");
|
|
9
|
-
const input_1 = require("@/components/ui/input");
|
|
10
|
-
const label_1 = require("@/components/ui/label");
|
|
11
|
-
const select_1 = require("@/components/ui/select");
|
|
12
|
-
const sheet_1 = require("@/components/ui/sheet");
|
|
13
|
-
const skeleton_1 = require("@/components/ui/skeleton");
|
|
14
|
-
const table_1 = require("@/components/ui/table");
|
|
15
|
-
const textarea_1 = require("@/components/ui/textarea");
|
|
16
|
-
const utils_1 = require("@/lib/utils");
|
|
17
|
-
const next_app_provider_1 = require("@hed-hog/next-app-provider");
|
|
18
|
-
const react_query_1 = require("@tanstack/react-query");
|
|
19
|
-
const lucide_react_1 = require("lucide-react");
|
|
20
|
-
const next_intl_1 = require("next-intl");
|
|
21
|
-
const react_1 = require("react");
|
|
22
|
-
const recharts_1 = require("recharts");
|
|
23
|
-
const api_1 = require("../_lib/api");
|
|
24
|
-
const format_1 = require("../_lib/utils/format");
|
|
25
|
-
const CALCULATION_TYPE_OPTIONS = [
|
|
26
|
-
'fixed',
|
|
27
|
-
'unit',
|
|
28
|
-
'hourly',
|
|
29
|
-
'monthly',
|
|
30
|
-
'percentage',
|
|
31
|
-
];
|
|
32
|
-
const RECURRENCE_TYPE_OPTIONS = [
|
|
33
|
-
'none',
|
|
34
|
-
'daily',
|
|
35
|
-
'weekly',
|
|
36
|
-
'monthly',
|
|
37
|
-
'yearly',
|
|
38
|
-
];
|
|
39
|
-
const STATUS_OPTIONS = [
|
|
40
|
-
'planned',
|
|
41
|
-
'approved',
|
|
42
|
-
'realized',
|
|
43
|
-
'cancelled',
|
|
44
|
-
];
|
|
45
|
-
function emptyCostForm() {
|
|
46
|
-
return {
|
|
47
|
-
cost_type_id: 'none',
|
|
48
|
-
category_id: 'none',
|
|
49
|
-
description: '',
|
|
50
|
-
amount: '',
|
|
51
|
-
currency: 'BRL',
|
|
52
|
-
quantity: '1',
|
|
53
|
-
unit_amount: '',
|
|
54
|
-
cost_date: '',
|
|
55
|
-
period_start: '',
|
|
56
|
-
period_end: '',
|
|
57
|
-
calculation_type: 'fixed',
|
|
58
|
-
recurrence_type: 'none',
|
|
59
|
-
is_billable: false,
|
|
60
|
-
is_reimbursable: false,
|
|
61
|
-
notes: '',
|
|
62
|
-
status: 'planned',
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
function costToForm(cost) {
|
|
66
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
67
|
-
return {
|
|
68
|
-
cost_type_id: cost.cost_type_id ? String(cost.cost_type_id) : 'none',
|
|
69
|
-
category_id: cost.category_id ? String(cost.category_id) : 'none',
|
|
70
|
-
description: (_a = cost.description) !== null && _a !== void 0 ? _a : '',
|
|
71
|
-
amount: String((_b = cost.amount) !== null && _b !== void 0 ? _b : ''),
|
|
72
|
-
currency: (_c = cost.currency) !== null && _c !== void 0 ? _c : 'BRL',
|
|
73
|
-
quantity: String((_d = cost.quantity) !== null && _d !== void 0 ? _d : 1),
|
|
74
|
-
unit_amount: cost.unit_amount != null ? String(cost.unit_amount) : '',
|
|
75
|
-
cost_date: (_e = cost.cost_date) !== null && _e !== void 0 ? _e : '',
|
|
76
|
-
period_start: (_f = cost.period_start) !== null && _f !== void 0 ? _f : '',
|
|
77
|
-
period_end: (_g = cost.period_end) !== null && _g !== void 0 ? _g : '',
|
|
78
|
-
calculation_type: (_h = cost.calculation_type) !== null && _h !== void 0 ? _h : 'fixed',
|
|
79
|
-
recurrence_type: (_j = cost.recurrence_type) !== null && _j !== void 0 ? _j : 'none',
|
|
80
|
-
is_billable: (_k = cost.is_billable) !== null && _k !== void 0 ? _k : false,
|
|
81
|
-
is_reimbursable: (_l = cost.is_reimbursable) !== null && _l !== void 0 ? _l : false,
|
|
82
|
-
notes: (_m = cost.notes) !== null && _m !== void 0 ? _m : '',
|
|
83
|
-
status: (_o = cost.status) !== null && _o !== void 0 ? _o : 'planned',
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
function ProjectCostsSection({ projectId }) {
|
|
87
|
-
var _a, _b, _c, _d, _e, _f;
|
|
88
|
-
const t = (0, next_intl_1.useTranslations)('operations.ProjectCostsSection');
|
|
89
|
-
const commonT = (0, next_intl_1.useTranslations)('operations.Common');
|
|
90
|
-
const { request, showToastHandler, getSettingValue, currentLocaleCode } = (0, next_app_provider_1.useApp)();
|
|
91
|
-
const queryClient = (0, react_query_1.useQueryClient)();
|
|
92
|
-
const [isSheetOpen, setIsSheetOpen] = (0, react_1.useState)(false);
|
|
93
|
-
const [editingCost, setEditingCost] = (0, react_1.useState)(null);
|
|
94
|
-
const [form, setForm] = (0, react_1.useState)(emptyCostForm());
|
|
95
|
-
const [isSaving, setIsSaving] = (0, react_1.useState)(false);
|
|
96
|
-
const [deleteTarget, setDeleteTarget] = (0, react_1.useState)(null);
|
|
97
|
-
const [isDeleting, setIsDeleting] = (0, react_1.useState)(false);
|
|
98
|
-
const { data: summaryRaw, isLoading, refetch, } = (0, next_app_provider_1.useQuery)({
|
|
99
|
-
queryKey: ['operations-project-costs-summary', projectId],
|
|
100
|
-
queryFn: () => (0, api_1.getProjectCostsSummary)(request, projectId),
|
|
101
|
-
});
|
|
102
|
-
const summary = summaryRaw !== null && summaryRaw !== void 0 ? summaryRaw : null;
|
|
103
|
-
const { data: fullSummary, isLoading: summaryLoading } = (0, next_app_provider_1.useQuery)({
|
|
104
|
-
queryKey: ['operations-project-cost-summary', projectId],
|
|
105
|
-
queryFn: () => (0, api_1.getFullProjectCostSummary)(request, projectId),
|
|
106
|
-
});
|
|
107
|
-
const { data: costTypesRaw } = (0, next_app_provider_1.useQuery)({
|
|
108
|
-
queryKey: ['operations-project-cost-types-all'],
|
|
109
|
-
queryFn: () => (0, api_1.listProjectCostTypes)(request, { pageSize: '500' }),
|
|
110
|
-
});
|
|
111
|
-
// May come back as paginated or flat array.
|
|
112
|
-
const costTypes = Array.isArray(costTypesRaw)
|
|
113
|
-
? costTypesRaw
|
|
114
|
-
: ((_a = costTypesRaw === null || costTypesRaw === void 0 ? void 0 : costTypesRaw.data) !== null && _a !== void 0 ? _a : []);
|
|
115
|
-
// Group cost types by category for the Select.
|
|
116
|
-
const costTypesByCategory = (0, react_1.useMemo)(() => {
|
|
117
|
-
var _a, _b;
|
|
118
|
-
const map = new Map();
|
|
119
|
-
for (const ct of costTypes) {
|
|
120
|
-
const key = (_a = ct.category_id) !== null && _a !== void 0 ? _a : null;
|
|
121
|
-
if (!map.has(key)) {
|
|
122
|
-
map.set(key, { category: (_b = ct.category) !== null && _b !== void 0 ? _b : null, types: [] });
|
|
123
|
-
}
|
|
124
|
-
map.get(key).types.push(ct);
|
|
125
|
-
}
|
|
126
|
-
return Array.from(map.values());
|
|
127
|
-
}, [costTypes]);
|
|
128
|
-
// Auto-calculate amount when calculation_type is unit/hourly/monthly
|
|
129
|
-
const isCalculatedType = (calcType) => ['unit', 'hourly', 'monthly'].includes(calcType);
|
|
130
|
-
const updateForm = (field, value) => {
|
|
131
|
-
setForm((current) => {
|
|
132
|
-
const next = Object.assign(Object.assign({}, current), { [field]: value });
|
|
133
|
-
// Auto-calculate amount
|
|
134
|
-
if ((field === 'quantity' || field === 'unit_amount' || field === 'calculation_type') &&
|
|
135
|
-
isCalculatedType(next.calculation_type)) {
|
|
136
|
-
const qty = parseFloat(next.quantity) || 0;
|
|
137
|
-
const ua = parseFloat(next.unit_amount) || 0;
|
|
138
|
-
if (qty > 0 && ua > 0) {
|
|
139
|
-
next.amount = (qty * ua).toFixed(2);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
return next;
|
|
143
|
-
});
|
|
144
|
-
};
|
|
145
|
-
// When cost_type changes: auto-fill category and default_calculation_type
|
|
146
|
-
const handleCostTypeChange = (typeId) => {
|
|
147
|
-
const ct = costTypes.find((t) => String(t.id) === typeId);
|
|
148
|
-
setForm((current) => {
|
|
149
|
-
const next = Object.assign(Object.assign({}, current), { cost_type_id: typeId });
|
|
150
|
-
if (ct) {
|
|
151
|
-
if (ct.category_id)
|
|
152
|
-
next.category_id = String(ct.category_id);
|
|
153
|
-
if (ct.default_calculation_type) {
|
|
154
|
-
next.calculation_type = ct.default_calculation_type;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
return next;
|
|
158
|
-
});
|
|
159
|
-
};
|
|
160
|
-
const openCreateSheet = () => {
|
|
161
|
-
setEditingCost(null);
|
|
162
|
-
setForm(emptyCostForm());
|
|
163
|
-
setIsSheetOpen(true);
|
|
164
|
-
};
|
|
165
|
-
const openEditSheet = (cost) => {
|
|
166
|
-
setEditingCost(cost);
|
|
167
|
-
setForm(costToForm(cost));
|
|
168
|
-
setIsSheetOpen(true);
|
|
169
|
-
};
|
|
170
|
-
const saveCost = async () => {
|
|
171
|
-
const amountNum = parseFloat(String(form.amount).replace(/\./g, '').replace(',', '.'));
|
|
172
|
-
if (!form.amount || isNaN(amountNum) || amountNum <= 0) {
|
|
173
|
-
showToastHandler === null || showToastHandler === void 0 ? void 0 : showToastHandler('error', t('validation.amountRequired'));
|
|
174
|
-
return;
|
|
175
|
-
}
|
|
176
|
-
setIsSaving(true);
|
|
177
|
-
try {
|
|
178
|
-
const payload = {
|
|
179
|
-
cost_type_id: form.cost_type_id !== 'none' ? Number(form.cost_type_id) : null,
|
|
180
|
-
category_id: form.category_id !== 'none' ? Number(form.category_id) : null,
|
|
181
|
-
description: form.description.trim() || null,
|
|
182
|
-
amount: amountNum,
|
|
183
|
-
currency: form.currency.trim() || 'BRL',
|
|
184
|
-
quantity: parseFloat(form.quantity) || 1,
|
|
185
|
-
unit_amount: form.unit_amount ? parseFloat(form.unit_amount) : null,
|
|
186
|
-
cost_date: form.cost_date || null,
|
|
187
|
-
period_start: form.period_start || null,
|
|
188
|
-
period_end: form.period_end || null,
|
|
189
|
-
calculation_type: form.calculation_type,
|
|
190
|
-
recurrence_type: form.recurrence_type,
|
|
191
|
-
is_billable: form.is_billable,
|
|
192
|
-
is_reimbursable: form.is_reimbursable,
|
|
193
|
-
notes: form.notes.trim() || null,
|
|
194
|
-
status: form.status,
|
|
195
|
-
};
|
|
196
|
-
if (editingCost) {
|
|
197
|
-
await (0, api_1.updateProjectCost)(request, projectId, editingCost.id, payload);
|
|
198
|
-
showToastHandler === null || showToastHandler === void 0 ? void 0 : showToastHandler('success', t('messages.updateSuccess'));
|
|
199
|
-
}
|
|
200
|
-
else {
|
|
201
|
-
await (0, api_1.createProjectCost)(request, projectId, payload);
|
|
202
|
-
showToastHandler === null || showToastHandler === void 0 ? void 0 : showToastHandler('success', t('messages.createSuccess'));
|
|
203
|
-
}
|
|
204
|
-
setIsSheetOpen(false);
|
|
205
|
-
setEditingCost(null);
|
|
206
|
-
setForm(emptyCostForm());
|
|
207
|
-
await refetch();
|
|
208
|
-
await queryClient.invalidateQueries({
|
|
209
|
-
queryKey: ['operations-project-cost-summary', projectId],
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
catch (_a) {
|
|
213
|
-
showToastHandler === null || showToastHandler === void 0 ? void 0 : showToastHandler('error', t('messages.saveError'));
|
|
214
|
-
}
|
|
215
|
-
finally {
|
|
216
|
-
setIsSaving(false);
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
const confirmDelete = async () => {
|
|
220
|
-
if (!deleteTarget)
|
|
221
|
-
return;
|
|
222
|
-
setIsDeleting(true);
|
|
223
|
-
try {
|
|
224
|
-
await (0, api_1.deleteProjectCost)(request, projectId, deleteTarget.id);
|
|
225
|
-
showToastHandler === null || showToastHandler === void 0 ? void 0 : showToastHandler('success', t('messages.deleteSuccess'));
|
|
226
|
-
setDeleteTarget(null);
|
|
227
|
-
await refetch();
|
|
228
|
-
}
|
|
229
|
-
catch (_a) {
|
|
230
|
-
showToastHandler === null || showToastHandler === void 0 ? void 0 : showToastHandler('error', t('messages.deleteError'));
|
|
231
|
-
}
|
|
232
|
-
finally {
|
|
233
|
-
setIsDeleting(false);
|
|
234
|
-
}
|
|
235
|
-
};
|
|
236
|
-
const recurrenceTypeLabel = (value) => {
|
|
237
|
-
var _a;
|
|
238
|
-
const map = {
|
|
239
|
-
none: t('recurrenceType.none'),
|
|
240
|
-
daily: t('recurrenceType.daily'),
|
|
241
|
-
weekly: t('recurrenceType.weekly'),
|
|
242
|
-
monthly: t('recurrenceType.monthly'),
|
|
243
|
-
yearly: t('recurrenceType.yearly'),
|
|
244
|
-
};
|
|
245
|
-
return (_a = map[value]) !== null && _a !== void 0 ? _a : value;
|
|
246
|
-
};
|
|
247
|
-
const calculationTypeLabel = (value) => {
|
|
248
|
-
var _a;
|
|
249
|
-
const map = {
|
|
250
|
-
fixed: t('calculationType.fixed'),
|
|
251
|
-
unit: t('calculationType.unit'),
|
|
252
|
-
hourly: t('calculationType.hourly'),
|
|
253
|
-
monthly: t('calculationType.monthly'),
|
|
254
|
-
percentage: t('calculationType.percentage'),
|
|
255
|
-
};
|
|
256
|
-
return (_a = map[value]) !== null && _a !== void 0 ? _a : value;
|
|
257
|
-
};
|
|
258
|
-
const statusLabel = (value) => {
|
|
259
|
-
var _a;
|
|
260
|
-
const map = {
|
|
261
|
-
planned: t('status.planned'),
|
|
262
|
-
approved: t('status.approved'),
|
|
263
|
-
realized: t('status.realized'),
|
|
264
|
-
cancelled: t('status.cancelled'),
|
|
265
|
-
};
|
|
266
|
-
return (_a = map[value]) !== null && _a !== void 0 ? _a : value;
|
|
267
|
-
};
|
|
268
|
-
const statusBadgeClass = (value) => {
|
|
269
|
-
var _a;
|
|
270
|
-
const map = {
|
|
271
|
-
approved: 'bg-emerald-500/15 text-emerald-700',
|
|
272
|
-
realized: 'bg-blue-500/15 text-blue-700',
|
|
273
|
-
cancelled: 'bg-red-500/15 text-red-700',
|
|
274
|
-
planned: 'bg-amber-500/15 text-amber-700',
|
|
275
|
-
};
|
|
276
|
-
return (_a = map[value]) !== null && _a !== void 0 ? _a : '';
|
|
277
|
-
};
|
|
278
|
-
const costChartConfig = {
|
|
279
|
-
total: { label: 'Total', color: 'hsl(201 96% 32%)' },
|
|
280
|
-
value: { label: 'Valor', color: 'hsl(201 96% 32%)' },
|
|
281
|
-
planned: { label: t('status.planned'), color: 'hsl(215 16% 47%)' },
|
|
282
|
-
approved: { label: t('status.approved'), color: 'hsl(166 72% 28%)' },
|
|
283
|
-
realized: { label: t('status.realized'), color: 'hsl(201 96% 32%)' },
|
|
284
|
-
};
|
|
285
|
-
const grandTotal = (_b = summary === null || summary === void 0 ? void 0 : summary.grand_total) !== null && _b !== void 0 ? _b : 0;
|
|
286
|
-
return (<div className="space-y-4">
|
|
287
|
-
{/* Header */}
|
|
288
|
-
<div className="flex items-center justify-between gap-3">
|
|
289
|
-
<div className="flex items-center gap-2">
|
|
290
|
-
<div className="flex size-8 items-center justify-center rounded-xl bg-primary/10 text-primary">
|
|
291
|
-
<lucide_react_1.DollarSign className="size-4"/>
|
|
292
|
-
</div>
|
|
293
|
-
<div>
|
|
294
|
-
<h3 className="text-sm font-semibold">{t('title')}</h3>
|
|
295
|
-
{grandTotal > 0 ? (<p className="text-xs text-muted-foreground">
|
|
296
|
-
{t('grandTotal')}:{' '}
|
|
297
|
-
<span className="font-medium text-foreground">
|
|
298
|
-
{(0, format_1.formatCurrency)(grandTotal, getSettingValue, currentLocaleCode)}
|
|
299
|
-
</span>
|
|
300
|
-
</p>) : null}
|
|
301
|
-
</div>
|
|
302
|
-
</div>
|
|
303
|
-
<button_1.Button size="sm" onClick={openCreateSheet} className="gap-1.5">
|
|
304
|
-
<lucide_react_1.Plus className="size-3.5"/>
|
|
305
|
-
{t('actions.add')}
|
|
306
|
-
</button_1.Button>
|
|
307
|
-
</div>
|
|
308
|
-
|
|
309
|
-
{/* Financial Summary Cards & Charts */}
|
|
310
|
-
{summaryLoading ? (<div className="grid grid-cols-2 gap-3 sm:grid-cols-3">
|
|
311
|
-
{Array.from({ length: 6 }).map((_, i) => (<div key={i} className="animate-pulse bg-muted rounded-lg h-24"/>))}
|
|
312
|
-
</div>) : fullSummary ? (<div className="space-y-4">
|
|
313
|
-
{/* Summary Cards */}
|
|
314
|
-
<div className="grid grid-cols-2 gap-3 sm:grid-cols-3">
|
|
315
|
-
<div className="rounded-xl border bg-card p-3">
|
|
316
|
-
<div className="mb-1 flex items-center gap-2">
|
|
317
|
-
<lucide_react_1.Wallet className="size-4 text-muted-foreground"/>
|
|
318
|
-
<span className="text-xs text-muted-foreground">
|
|
319
|
-
{t('summary.budgetAmount')}
|
|
320
|
-
</span>
|
|
321
|
-
</div>
|
|
322
|
-
<p className="text-sm font-semibold tabular-nums">
|
|
323
|
-
{(0, format_1.formatCurrency)(fullSummary.budget_amount, getSettingValue, currentLocaleCode)}
|
|
324
|
-
</p>
|
|
325
|
-
</div>
|
|
326
|
-
<div className="rounded-xl border bg-card p-3">
|
|
327
|
-
<div className="mb-1 flex items-center gap-2">
|
|
328
|
-
<lucide_react_1.Receipt className="size-4 text-muted-foreground"/>
|
|
329
|
-
<span className="text-xs text-muted-foreground">
|
|
330
|
-
{t('summary.extraCostTotal')}
|
|
331
|
-
</span>
|
|
332
|
-
</div>
|
|
333
|
-
<p className="text-sm font-semibold tabular-nums">
|
|
334
|
-
{(0, format_1.formatCurrency)(fullSummary.extra_cost_total, getSettingValue, currentLocaleCode)}
|
|
335
|
-
</p>
|
|
336
|
-
</div>
|
|
337
|
-
<div className="rounded-xl border bg-card p-3">
|
|
338
|
-
<div className="mb-1 flex items-center gap-2">
|
|
339
|
-
<lucide_react_1.TrendingUp className="size-4 text-muted-foreground"/>
|
|
340
|
-
<span className="text-xs text-muted-foreground">
|
|
341
|
-
{t('summary.totalProjectCost')}
|
|
342
|
-
</span>
|
|
343
|
-
</div>
|
|
344
|
-
<p className="text-sm font-semibold tabular-nums">
|
|
345
|
-
{(0, format_1.formatCurrency)(fullSummary.total_project_cost, getSettingValue, currentLocaleCode)}
|
|
346
|
-
</p>
|
|
347
|
-
</div>
|
|
348
|
-
<div className="rounded-xl border bg-card p-3">
|
|
349
|
-
<div className="mb-1 flex items-center gap-2">
|
|
350
|
-
<lucide_react_1.PiggyBank className={(0, utils_1.cn)('size-4', fullSummary.remaining_budget < 0
|
|
351
|
-
? 'text-destructive'
|
|
352
|
-
: 'text-muted-foreground')}/>
|
|
353
|
-
<span className="text-xs text-muted-foreground">
|
|
354
|
-
{t('summary.remainingBudget')}
|
|
355
|
-
</span>
|
|
356
|
-
</div>
|
|
357
|
-
<p className={(0, utils_1.cn)('text-sm font-semibold tabular-nums', fullSummary.remaining_budget < 0 ? 'text-destructive' : '')}>
|
|
358
|
-
{(0, format_1.formatCurrency)(fullSummary.remaining_budget, getSettingValue, currentLocaleCode)}
|
|
359
|
-
</p>
|
|
360
|
-
</div>
|
|
361
|
-
<div className="rounded-xl border bg-card p-3">
|
|
362
|
-
<div className="mb-1 flex items-center gap-2">
|
|
363
|
-
<lucide_react_1.Percent className={(0, utils_1.cn)('size-4', fullSummary.budget_usage_percent > 80
|
|
364
|
-
? 'text-amber-500'
|
|
365
|
-
: 'text-muted-foreground')}/>
|
|
366
|
-
<span className="text-xs text-muted-foreground">
|
|
367
|
-
{t('summary.budgetUsagePercent')}
|
|
368
|
-
</span>
|
|
369
|
-
</div>
|
|
370
|
-
<p className={(0, utils_1.cn)('text-sm font-semibold tabular-nums', fullSummary.budget_usage_percent > 80 ? 'text-amber-600' : '')}>
|
|
371
|
-
{fullSummary.budget_usage_percent.toFixed(2)}%
|
|
372
|
-
</p>
|
|
373
|
-
</div>
|
|
374
|
-
<div className="rounded-xl border bg-card p-3">
|
|
375
|
-
<div className="mb-1 flex items-center gap-2">
|
|
376
|
-
<lucide_react_1.CheckCircle2 className="size-4 text-muted-foreground"/>
|
|
377
|
-
<span className="text-xs text-muted-foreground">
|
|
378
|
-
{t('summary.realizedTotal')}
|
|
379
|
-
</span>
|
|
380
|
-
</div>
|
|
381
|
-
<p className="text-sm font-semibold tabular-nums">
|
|
382
|
-
{(0, format_1.formatCurrency)(fullSummary.realized_total, getSettingValue, currentLocaleCode)}
|
|
383
|
-
</p>
|
|
384
|
-
</div>
|
|
385
|
-
</div>
|
|
386
|
-
|
|
387
|
-
{/* Charts Grid */}
|
|
388
|
-
<div className="grid grid-cols-1 gap-4 md:grid-cols-2">
|
|
389
|
-
{/* Chart 1: Custo por Categoria (PieChart) */}
|
|
390
|
-
<div className="rounded-xl border bg-card p-4">
|
|
391
|
-
<h4 className="mb-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground">
|
|
392
|
-
{t('summary.costByCategory')}
|
|
393
|
-
</h4>
|
|
394
|
-
{fullSummary.cost_by_category.length === 0 ? (<div className="flex h-40 items-center justify-center text-sm text-muted-foreground">
|
|
395
|
-
{t('summary.noData')}
|
|
396
|
-
</div>) : (<div className="flex items-start gap-4">
|
|
397
|
-
<chart_1.ChartContainer className="h-40 w-40 shrink-0" config={costChartConfig}>
|
|
398
|
-
<recharts_1.PieChart>
|
|
399
|
-
<chart_1.ChartTooltip content={<chart_1.ChartTooltipContent />}/>
|
|
400
|
-
<recharts_1.Pie data={fullSummary.cost_by_category} dataKey="total" nameKey="category_name" cx="50%" cy="50%" outerRadius={68} innerRadius={32}>
|
|
401
|
-
{fullSummary.cost_by_category.map((entry, i) => (<recharts_1.Cell key={`cell-cat-${i}`} fill={entry.category_color ||
|
|
402
|
-
`hsl(${(i * 47) % 360} 70% 50%)`}/>))}
|
|
403
|
-
</recharts_1.Pie>
|
|
404
|
-
</recharts_1.PieChart>
|
|
405
|
-
</chart_1.ChartContainer>
|
|
406
|
-
<div className="flex-1 space-y-1.5 overflow-hidden">
|
|
407
|
-
{fullSummary.cost_by_category.map((entry, i) => (<div key={i} className="flex min-w-0 items-center gap-2">
|
|
408
|
-
<span className="inline-block size-2.5 shrink-0 rounded-full" style={{
|
|
409
|
-
backgroundColor: entry.category_color ||
|
|
410
|
-
`hsl(${(i * 47) % 360} 70% 50%)`,
|
|
411
|
-
}}/>
|
|
412
|
-
<span className="truncate text-xs text-muted-foreground">
|
|
413
|
-
{entry.category_name}
|
|
414
|
-
</span>
|
|
415
|
-
<span className="ml-auto shrink-0 text-xs font-medium tabular-nums">
|
|
416
|
-
{(0, format_1.formatCurrency)(entry.total, getSettingValue, currentLocaleCode)}
|
|
417
|
-
</span>
|
|
418
|
-
</div>))}
|
|
419
|
-
</div>
|
|
420
|
-
</div>)}
|
|
421
|
-
</div>
|
|
422
|
-
|
|
423
|
-
{/* Chart 2: Custo por Tipo (BarChart horizontal) */}
|
|
424
|
-
<div className="rounded-xl border bg-card p-4">
|
|
425
|
-
<h4 className="mb-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground">
|
|
426
|
-
{t('summary.costByType')}
|
|
427
|
-
</h4>
|
|
428
|
-
{fullSummary.cost_by_type.length === 0 ? (<div className="flex h-40 items-center justify-center text-sm text-muted-foreground">
|
|
429
|
-
{t('summary.noData')}
|
|
430
|
-
</div>) : (<chart_1.ChartContainer className="h-40 w-full" config={costChartConfig}>
|
|
431
|
-
<recharts_1.BarChart layout="vertical" data={fullSummary.cost_by_type.slice(0, 5).map((ct) => ({
|
|
432
|
-
name: ct.cost_type_name,
|
|
433
|
-
total: ct.total,
|
|
434
|
-
}))} margin={{ left: 8, right: 8, top: 0, bottom: 0 }}>
|
|
435
|
-
<recharts_1.CartesianGrid horizontal={false} strokeDasharray="3 3"/>
|
|
436
|
-
<recharts_1.YAxis type="category" dataKey="name" tickLine={false} axisLine={false} width={80} tick={{ fontSize: 11 }}/>
|
|
437
|
-
<recharts_1.XAxis type="number" tickLine={false} axisLine={false} tickFormatter={(v) => Intl.NumberFormat('pt-BR', {
|
|
438
|
-
notation: 'compact',
|
|
439
|
-
maximumFractionDigits: 1,
|
|
440
|
-
}).format(Number(v))}/>
|
|
441
|
-
<chart_1.ChartTooltip content={<chart_1.ChartTooltipContent />}/>
|
|
442
|
-
<recharts_1.Bar dataKey="total" fill="hsl(201 96% 32%)" radius={4}/>
|
|
443
|
-
</recharts_1.BarChart>
|
|
444
|
-
</chart_1.ChartContainer>)}
|
|
445
|
-
</div>
|
|
446
|
-
|
|
447
|
-
{/* Chart 3: Evolução Mensal (AreaChart) */}
|
|
448
|
-
<div className="rounded-xl border bg-card p-4">
|
|
449
|
-
<h4 className="mb-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground">
|
|
450
|
-
{t('summary.costByMonth')}
|
|
451
|
-
</h4>
|
|
452
|
-
{fullSummary.cost_by_month.length === 0 ? (<div className="flex h-40 items-center justify-center text-sm text-muted-foreground">
|
|
453
|
-
{t('summary.noData')}
|
|
454
|
-
</div>) : (<chart_1.ChartContainer className="h-40 w-full" config={costChartConfig}>
|
|
455
|
-
<recharts_1.AreaChart data={fullSummary.cost_by_month} margin={{ left: 8, right: 8, top: 0, bottom: 0 }}>
|
|
456
|
-
<defs>
|
|
457
|
-
<linearGradient id="costMonthGradient" x1="0" y1="0" x2="0" y2="1">
|
|
458
|
-
<stop offset="5%" stopColor="hsl(201 96% 32%)" stopOpacity={0.3}/>
|
|
459
|
-
<stop offset="95%" stopColor="hsl(201 96% 32%)" stopOpacity={0}/>
|
|
460
|
-
</linearGradient>
|
|
461
|
-
</defs>
|
|
462
|
-
<recharts_1.CartesianGrid vertical={false} strokeDasharray="3 3"/>
|
|
463
|
-
<recharts_1.XAxis dataKey="month" tickLine={false} axisLine={false} tick={{ fontSize: 11 }}/>
|
|
464
|
-
<recharts_1.YAxis tickLine={false} axisLine={false} width={40} tickFormatter={(v) => Intl.NumberFormat('pt-BR', {
|
|
465
|
-
notation: 'compact',
|
|
466
|
-
maximumFractionDigits: 1,
|
|
467
|
-
}).format(Number(v))}/>
|
|
468
|
-
<chart_1.ChartTooltip content={<chart_1.ChartTooltipContent />}/>
|
|
469
|
-
<recharts_1.Area type="monotone" dataKey="total" stroke="hsl(201 96% 32%)" strokeWidth={2} fill="url(#costMonthGradient)"/>
|
|
470
|
-
</recharts_1.AreaChart>
|
|
471
|
-
</chart_1.ChartContainer>)}
|
|
472
|
-
</div>
|
|
473
|
-
|
|
474
|
-
{/* Chart 4: Planejado × Aprovado × Realizado */}
|
|
475
|
-
<div className="rounded-xl border bg-card p-4">
|
|
476
|
-
<h4 className="mb-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground">
|
|
477
|
-
{t('summary.statusBreakdown')}
|
|
478
|
-
</h4>
|
|
479
|
-
<chart_1.ChartContainer className="h-40 w-full" config={costChartConfig}>
|
|
480
|
-
<recharts_1.BarChart data={[
|
|
481
|
-
{
|
|
482
|
-
name: t('status.planned'),
|
|
483
|
-
value: fullSummary.planned_total,
|
|
484
|
-
},
|
|
485
|
-
{
|
|
486
|
-
name: t('status.approved'),
|
|
487
|
-
value: fullSummary.approved_total,
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
name: t('status.realized'),
|
|
491
|
-
value: fullSummary.realized_total,
|
|
492
|
-
},
|
|
493
|
-
]} margin={{ left: 8, right: 8, top: 0, bottom: 0 }}>
|
|
494
|
-
<recharts_1.CartesianGrid vertical={false} strokeDasharray="3 3"/>
|
|
495
|
-
<recharts_1.XAxis dataKey="name" tickLine={false} axisLine={false} tick={{ fontSize: 11 }}/>
|
|
496
|
-
<recharts_1.YAxis tickLine={false} axisLine={false} width={40} tickFormatter={(v) => Intl.NumberFormat('pt-BR', {
|
|
497
|
-
notation: 'compact',
|
|
498
|
-
maximumFractionDigits: 1,
|
|
499
|
-
}).format(Number(v))}/>
|
|
500
|
-
<chart_1.ChartTooltip content={<chart_1.ChartTooltipContent />}/>
|
|
501
|
-
<recharts_1.Bar dataKey="value" radius={4}>
|
|
502
|
-
{[
|
|
503
|
-
'hsl(215 16% 47%)',
|
|
504
|
-
'hsl(166 72% 28%)',
|
|
505
|
-
'hsl(201 96% 32%)',
|
|
506
|
-
].map((color, i) => (<recharts_1.Cell key={`cell-status-${i}`} fill={color}/>))}
|
|
507
|
-
</recharts_1.Bar>
|
|
508
|
-
</recharts_1.BarChart>
|
|
509
|
-
</chart_1.ChartContainer>
|
|
510
|
-
</div>
|
|
511
|
-
</div>
|
|
512
|
-
</div>) : null}
|
|
513
|
-
|
|
514
|
-
{/* Content */}
|
|
515
|
-
{isLoading ? (<div className="space-y-2">
|
|
516
|
-
<skeleton_1.Skeleton className="h-8 w-full"/>
|
|
517
|
-
<skeleton_1.Skeleton className="h-8 w-full"/>
|
|
518
|
-
<skeleton_1.Skeleton className="h-8 w-3/4"/>
|
|
519
|
-
</div>) : !summary || summary.categories.length === 0 ? (<div className="flex min-h-40 flex-col items-center justify-center rounded-2xl border border-dashed bg-background p-6 text-center">
|
|
520
|
-
<div className="flex size-10 items-center justify-center rounded-xl bg-muted text-muted-foreground">
|
|
521
|
-
<lucide_react_1.DollarSign className="size-5"/>
|
|
522
|
-
</div>
|
|
523
|
-
<p className="mt-2 text-sm font-medium">{t('empty')}</p>
|
|
524
|
-
<p className="mt-1 text-xs text-muted-foreground">
|
|
525
|
-
{t('emptyDescription')}
|
|
526
|
-
</p>
|
|
527
|
-
</div>) : (<div className="space-y-4">
|
|
528
|
-
{summary.categories.map((group, index) => {
|
|
529
|
-
var _a, _b, _c, _d, _e;
|
|
530
|
-
return (<div key={(_b = (_a = group.category) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : `uncategorized-${index}`} className="overflow-hidden rounded-xl border bg-card">
|
|
531
|
-
{/* Category subheader */}
|
|
532
|
-
<div className="flex items-center justify-between gap-2 border-b bg-muted/30 px-4 py-2">
|
|
533
|
-
<div className="flex items-center gap-2">
|
|
534
|
-
{((_c = group.category) === null || _c === void 0 ? void 0 : _c.color) ? (<span className="inline-block size-2.5 rounded-full" style={{ backgroundColor: group.category.color }}/>) : null}
|
|
535
|
-
<span className="text-xs font-semibold uppercase tracking-wider text-muted-foreground">
|
|
536
|
-
{(_e = (_d = group.category) === null || _d === void 0 ? void 0 : _d.name) !== null && _e !== void 0 ? _e : t('uncategorized')}
|
|
537
|
-
</span>
|
|
538
|
-
<badge_1.Badge variant="secondary" className="text-[10px]">
|
|
539
|
-
{group.count}
|
|
540
|
-
</badge_1.Badge>
|
|
541
|
-
</div>
|
|
542
|
-
<span className="text-xs font-medium text-muted-foreground">
|
|
543
|
-
{(0, format_1.formatCurrency)(group.total_amount, getSettingValue, currentLocaleCode)}
|
|
544
|
-
</span>
|
|
545
|
-
</div>
|
|
546
|
-
|
|
547
|
-
{/* Costs table */}
|
|
548
|
-
<table_1.Table>
|
|
549
|
-
<table_1.TableHeader>
|
|
550
|
-
<table_1.TableRow>
|
|
551
|
-
<table_1.TableHead>{t('columns.description')}</table_1.TableHead>
|
|
552
|
-
<table_1.TableHead className="hidden sm:table-cell">
|
|
553
|
-
{t('columns.type')}
|
|
554
|
-
</table_1.TableHead>
|
|
555
|
-
<table_1.TableHead className="hidden md:table-cell">
|
|
556
|
-
{t('columns.calculationType')}
|
|
557
|
-
</table_1.TableHead>
|
|
558
|
-
<table_1.TableHead className="text-right">
|
|
559
|
-
{t('columns.quantityAmount')}
|
|
560
|
-
</table_1.TableHead>
|
|
561
|
-
<table_1.TableHead className="text-right hidden sm:table-cell">
|
|
562
|
-
{t('columns.total')}
|
|
563
|
-
</table_1.TableHead>
|
|
564
|
-
<table_1.TableHead>{t('columns.status')}</table_1.TableHead>
|
|
565
|
-
<table_1.TableHead className="text-right">
|
|
566
|
-
{commonT('labels.actions')}
|
|
567
|
-
</table_1.TableHead>
|
|
568
|
-
</table_1.TableRow>
|
|
569
|
-
</table_1.TableHeader>
|
|
570
|
-
<table_1.TableBody>
|
|
571
|
-
{group.items.map((cost) => {
|
|
572
|
-
var _a, _b, _c;
|
|
573
|
-
const total = Number(cost.amount) * Number((_a = cost.quantity) !== null && _a !== void 0 ? _a : 1);
|
|
574
|
-
return (<table_1.TableRow key={cost.id} className="cursor-pointer" onClick={() => openEditSheet(cost)}>
|
|
575
|
-
<table_1.TableCell>
|
|
576
|
-
<div>
|
|
577
|
-
<span className="font-medium">
|
|
578
|
-
{cost.description || ((_b = cost.cost_type) === null || _b === void 0 ? void 0 : _b.name) || '-'}
|
|
579
|
-
</span>
|
|
580
|
-
{cost.cost_date ? (<p className="mt-0.5 text-xs text-muted-foreground">
|
|
581
|
-
{(0, format_1.formatDate)(cost.cost_date, getSettingValue, currentLocaleCode)}
|
|
582
|
-
</p>) : null}
|
|
583
|
-
</div>
|
|
584
|
-
</table_1.TableCell>
|
|
585
|
-
<table_1.TableCell className="hidden sm:table-cell">
|
|
586
|
-
{cost.cost_type ? (<badge_1.Badge variant="outline" className="text-[10px]">
|
|
587
|
-
{cost.cost_type.name}
|
|
588
|
-
</badge_1.Badge>) : (<span className="text-muted-foreground">-</span>)}
|
|
589
|
-
</table_1.TableCell>
|
|
590
|
-
<table_1.TableCell className="hidden md:table-cell">
|
|
591
|
-
<badge_1.Badge variant="secondary" className="text-[10px]">
|
|
592
|
-
{calculationTypeLabel(cost.calculation_type)}
|
|
593
|
-
</badge_1.Badge>
|
|
594
|
-
</table_1.TableCell>
|
|
595
|
-
<table_1.TableCell className="text-right tabular-nums">
|
|
596
|
-
<span className="text-xs text-muted-foreground">
|
|
597
|
-
{Number((_c = cost.quantity) !== null && _c !== void 0 ? _c : 1)} ×{' '}
|
|
598
|
-
{(0, format_1.formatCurrency)(Number(cost.amount), getSettingValue, currentLocaleCode)}
|
|
599
|
-
</span>
|
|
600
|
-
</table_1.TableCell>
|
|
601
|
-
<table_1.TableCell className="hidden text-right tabular-nums sm:table-cell">
|
|
602
|
-
<span className="font-medium">
|
|
603
|
-
{(0, format_1.formatCurrency)(total, getSettingValue, currentLocaleCode)}
|
|
604
|
-
</span>
|
|
605
|
-
</table_1.TableCell>
|
|
606
|
-
<table_1.TableCell>
|
|
607
|
-
<badge_1.Badge variant="secondary" className={statusBadgeClass(cost.status)}>
|
|
608
|
-
{statusLabel(cost.status)}
|
|
609
|
-
</badge_1.Badge>
|
|
610
|
-
</table_1.TableCell>
|
|
611
|
-
<table_1.TableCell className="text-right" onClick={(e) => e.stopPropagation()}>
|
|
612
|
-
<div className="flex justify-end gap-1">
|
|
613
|
-
<button_1.Button variant="ghost" size="icon" className="size-7" onClick={() => openEditSheet(cost)}>
|
|
614
|
-
<lucide_react_1.Pencil className="size-3"/>
|
|
615
|
-
</button_1.Button>
|
|
616
|
-
<button_1.Button variant="ghost" size="icon" className="size-7 text-destructive hover:text-destructive" onClick={() => setDeleteTarget(cost)}>
|
|
617
|
-
<lucide_react_1.Trash2 className="size-3"/>
|
|
618
|
-
</button_1.Button>
|
|
619
|
-
</div>
|
|
620
|
-
</table_1.TableCell>
|
|
621
|
-
</table_1.TableRow>);
|
|
622
|
-
})}
|
|
623
|
-
</table_1.TableBody>
|
|
624
|
-
</table_1.Table>
|
|
625
|
-
</div>);
|
|
626
|
-
})}
|
|
627
|
-
</div>)}
|
|
628
|
-
|
|
629
|
-
{/* Create / Edit Sheet */}
|
|
630
|
-
<sheet_1.Sheet open={isSheetOpen} onOpenChange={setIsSheetOpen}>
|
|
631
|
-
<sheet_1.SheetContent className="flex w-full flex-col overflow-hidden sm:max-w-lg">
|
|
632
|
-
<sheet_1.SheetHeader>
|
|
633
|
-
<sheet_1.SheetTitle>
|
|
634
|
-
{editingCost ? t('sheet.editTitle') : t('sheet.createTitle')}
|
|
635
|
-
</sheet_1.SheetTitle>
|
|
636
|
-
<sheet_1.SheetDescription>{t('sheet.description')}</sheet_1.SheetDescription>
|
|
637
|
-
</sheet_1.SheetHeader>
|
|
638
|
-
|
|
639
|
-
<div className="flex-1 space-y-4 overflow-y-auto px-4 py-4">
|
|
640
|
-
{/* Cost type */}
|
|
641
|
-
<div className="space-y-1.5">
|
|
642
|
-
<label_1.Label htmlFor="pc-type">{t('fields.costType')}</label_1.Label>
|
|
643
|
-
<select_1.Select value={form.cost_type_id} onValueChange={handleCostTypeChange}>
|
|
644
|
-
<select_1.SelectTrigger id="pc-type" className="w-full">
|
|
645
|
-
<select_1.SelectValue placeholder={t('fields.costTypePlaceholder')}/>
|
|
646
|
-
</select_1.SelectTrigger>
|
|
647
|
-
<select_1.SelectContent>
|
|
648
|
-
<select_1.SelectItem value="none">
|
|
649
|
-
{t('fields.costTypeNone')}
|
|
650
|
-
</select_1.SelectItem>
|
|
651
|
-
{costTypesByCategory.map((group, gIndex) => {
|
|
652
|
-
var _a, _b;
|
|
653
|
-
return (<select_1.SelectGroup key={(_b = (_a = group.category) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : `g-${gIndex}`}>
|
|
654
|
-
{group.category ? (<select_1.SelectLabel>{group.category.name}</select_1.SelectLabel>) : null}
|
|
655
|
-
{group.types.map((ct) => (<select_1.SelectItem key={ct.id} value={String(ct.id)}>
|
|
656
|
-
{ct.name}
|
|
657
|
-
</select_1.SelectItem>))}
|
|
658
|
-
</select_1.SelectGroup>);
|
|
659
|
-
})}
|
|
660
|
-
</select_1.SelectContent>
|
|
661
|
-
</select_1.Select>
|
|
662
|
-
</div>
|
|
663
|
-
|
|
664
|
-
{/* Category (auto-filled from type, or manual) */}
|
|
665
|
-
<div className="space-y-1.5">
|
|
666
|
-
<label_1.Label htmlFor="pc-category">{(_c = t('fields.category')) !== null && _c !== void 0 ? _c : 'Categoria'}</label_1.Label>
|
|
667
|
-
<select_1.Select value={form.category_id} onValueChange={(v) => updateForm('category_id', v)}>
|
|
668
|
-
<select_1.SelectTrigger id="pc-category" className="w-full">
|
|
669
|
-
<select_1.SelectValue placeholder={(_d = t('fields.categoryPlaceholder')) !== null && _d !== void 0 ? _d : 'Selecione uma categoria (opcional)'}/>
|
|
670
|
-
</select_1.SelectTrigger>
|
|
671
|
-
<select_1.SelectContent>
|
|
672
|
-
<select_1.SelectItem value="none">{t('fields.costTypeNone')}</select_1.SelectItem>
|
|
673
|
-
{costTypesByCategory
|
|
674
|
-
.filter((g) => g.category !== null)
|
|
675
|
-
.map((g) => (<select_1.SelectItem key={g.category.id} value={String(g.category.id)}>
|
|
676
|
-
<div className="flex items-center gap-2">
|
|
677
|
-
{g.category.color ? (<span className="inline-block size-2.5 rounded-full shrink-0" style={{ backgroundColor: g.category.color }}/>) : null}
|
|
678
|
-
{g.category.name}
|
|
679
|
-
</div>
|
|
680
|
-
</select_1.SelectItem>))}
|
|
681
|
-
</select_1.SelectContent>
|
|
682
|
-
</select_1.Select>
|
|
683
|
-
{form.cost_type_id !== 'none' && form.category_id !== 'none' && (<p className="text-xs text-muted-foreground">
|
|
684
|
-
{(_e = t('fields.categoryAutoFilled')) !== null && _e !== void 0 ? _e : 'Preenchido automaticamente pelo tipo selecionado'}
|
|
685
|
-
</p>)}
|
|
686
|
-
</div>
|
|
687
|
-
|
|
688
|
-
{/* Description */}
|
|
689
|
-
<div className="space-y-1.5">
|
|
690
|
-
<label_1.Label htmlFor="pc-description">{t('fields.description')}</label_1.Label>
|
|
691
|
-
<input_1.Input id="pc-description" value={form.description} onChange={(e) => updateForm('description', e.target.value)} placeholder={t('fields.descriptionPlaceholder')}/>
|
|
692
|
-
</div>
|
|
693
|
-
|
|
694
|
-
{/* Calculation type */}
|
|
695
|
-
<div className="space-y-1.5">
|
|
696
|
-
<label_1.Label htmlFor="pc-calc-type-top">{t('fields.calculationType')}</label_1.Label>
|
|
697
|
-
<select_1.Select value={form.calculation_type} onValueChange={(v) => updateForm('calculation_type', v)}>
|
|
698
|
-
<select_1.SelectTrigger id="pc-calc-type-top" className="w-full">
|
|
699
|
-
<select_1.SelectValue />
|
|
700
|
-
</select_1.SelectTrigger>
|
|
701
|
-
<select_1.SelectContent>
|
|
702
|
-
{CALCULATION_TYPE_OPTIONS.map((ct) => (<select_1.SelectItem key={ct} value={ct}>
|
|
703
|
-
{calculationTypeLabel(ct)}
|
|
704
|
-
</select_1.SelectItem>))}
|
|
705
|
-
</select_1.SelectContent>
|
|
706
|
-
</select_1.Select>
|
|
707
|
-
</div>
|
|
708
|
-
|
|
709
|
-
{/* Quantity + Unit Amount (only when calculated type) */}
|
|
710
|
-
{isCalculatedType(form.calculation_type) && (<div className="grid grid-cols-2 gap-3">
|
|
711
|
-
<div className="space-y-1.5">
|
|
712
|
-
<label_1.Label htmlFor="pc-quantity">{t('fields.quantity')}</label_1.Label>
|
|
713
|
-
<input_1.Input id="pc-quantity" type="number" min="0.0001" step="0.0001" value={form.quantity} onChange={(e) => updateForm('quantity', e.target.value)}/>
|
|
714
|
-
</div>
|
|
715
|
-
<div className="space-y-1.5">
|
|
716
|
-
<label_1.Label htmlFor="pc-unit-amount">{t('fields.unitAmount')}</label_1.Label>
|
|
717
|
-
<input_1.Input id="pc-unit-amount" type="number" min="0" step="0.01" value={form.unit_amount} onChange={(e) => updateForm('unit_amount', e.target.value)} placeholder="0,00"/>
|
|
718
|
-
</div>
|
|
719
|
-
</div>)}
|
|
720
|
-
|
|
721
|
-
{/* Amount + Currency */}
|
|
722
|
-
<div className="grid grid-cols-3 gap-3">
|
|
723
|
-
<div className="col-span-2 space-y-1.5">
|
|
724
|
-
<label_1.Label htmlFor="pc-amount">
|
|
725
|
-
{t('fields.amount')}{' '}
|
|
726
|
-
<span className="text-destructive">*</span>
|
|
727
|
-
</label_1.Label>
|
|
728
|
-
<input_1.Input id="pc-amount" type="number" min="0" step="0.01" value={form.amount} onChange={(e) => updateForm('amount', e.target.value)} placeholder="0,00" readOnly={isCalculatedType(form.calculation_type) && !!form.unit_amount && !!form.quantity} className={isCalculatedType(form.calculation_type) && !!form.unit_amount && !!form.quantity ? 'bg-muted text-muted-foreground' : ''}/>
|
|
729
|
-
{isCalculatedType(form.calculation_type) && (<p className="text-xs text-muted-foreground">
|
|
730
|
-
{(_f = t('fields.amountCalculated')) !== null && _f !== void 0 ? _f : 'Calculado automaticamente: quantidade × valor unitário'}
|
|
731
|
-
</p>)}
|
|
732
|
-
</div>
|
|
733
|
-
<div className="space-y-1.5">
|
|
734
|
-
<label_1.Label htmlFor="pc-currency">{t('fields.currency')}</label_1.Label>
|
|
735
|
-
<input_1.Input id="pc-currency" value={form.currency} maxLength={3} onChange={(e) => updateForm('currency', e.target.value.toUpperCase())}/>
|
|
736
|
-
</div>
|
|
737
|
-
</div>
|
|
738
|
-
|
|
739
|
-
{/* Recurrence Type */}
|
|
740
|
-
<div className="space-y-1.5">
|
|
741
|
-
<label_1.Label htmlFor="pc-recurrence-type">{t('fields.recurrenceType')}</label_1.Label>
|
|
742
|
-
<select_1.Select value={form.recurrence_type} onValueChange={(v) => updateForm('recurrence_type', v)}>
|
|
743
|
-
<select_1.SelectTrigger id="pc-recurrence-type" className="w-full">
|
|
744
|
-
<select_1.SelectValue />
|
|
745
|
-
</select_1.SelectTrigger>
|
|
746
|
-
<select_1.SelectContent>
|
|
747
|
-
{RECURRENCE_TYPE_OPTIONS.map((r) => (<select_1.SelectItem key={r} value={r}>
|
|
748
|
-
{recurrenceTypeLabel(r)}
|
|
749
|
-
</select_1.SelectItem>))}
|
|
750
|
-
</select_1.SelectContent>
|
|
751
|
-
</select_1.Select>
|
|
752
|
-
</div>
|
|
753
|
-
|
|
754
|
-
{/* Status */}
|
|
755
|
-
<div className="space-y-1.5">
|
|
756
|
-
<label_1.Label htmlFor="pc-status">{t('fields.status')}</label_1.Label>
|
|
757
|
-
<select_1.Select value={form.status} onValueChange={(v) => updateForm('status', v)}>
|
|
758
|
-
<select_1.SelectTrigger id="pc-status" className="w-full">
|
|
759
|
-
<select_1.SelectValue />
|
|
760
|
-
</select_1.SelectTrigger>
|
|
761
|
-
<select_1.SelectContent>
|
|
762
|
-
{STATUS_OPTIONS.map((s) => (<select_1.SelectItem key={s} value={s}>
|
|
763
|
-
{statusLabel(s)}
|
|
764
|
-
</select_1.SelectItem>))}
|
|
765
|
-
</select_1.SelectContent>
|
|
766
|
-
</select_1.Select>
|
|
767
|
-
</div>
|
|
768
|
-
|
|
769
|
-
{/* Dates */}
|
|
770
|
-
<div className="grid grid-cols-2 gap-3">
|
|
771
|
-
<div className="space-y-1.5">
|
|
772
|
-
<label_1.Label htmlFor="pc-cost-date">{t('fields.costDate')}</label_1.Label>
|
|
773
|
-
<input_1.Input id="pc-cost-date" type="date" value={form.cost_date} onChange={(e) => updateForm('cost_date', e.target.value)}/>
|
|
774
|
-
</div>
|
|
775
|
-
<div />
|
|
776
|
-
</div>
|
|
777
|
-
|
|
778
|
-
<div className="grid grid-cols-2 gap-3">
|
|
779
|
-
<div className="space-y-1.5">
|
|
780
|
-
<label_1.Label htmlFor="pc-period-start">
|
|
781
|
-
{t('fields.periodStart')}
|
|
782
|
-
</label_1.Label>
|
|
783
|
-
<input_1.Input id="pc-period-start" type="date" value={form.period_start} onChange={(e) => updateForm('period_start', e.target.value)}/>
|
|
784
|
-
</div>
|
|
785
|
-
<div className="space-y-1.5">
|
|
786
|
-
<label_1.Label htmlFor="pc-period-end">{t('fields.periodEnd')}</label_1.Label>
|
|
787
|
-
<input_1.Input id="pc-period-end" type="date" value={form.period_end} onChange={(e) => updateForm('period_end', e.target.value)}/>
|
|
788
|
-
</div>
|
|
789
|
-
</div>
|
|
790
|
-
|
|
791
|
-
{/* Flags */}
|
|
792
|
-
<div className="flex gap-6">
|
|
793
|
-
<div className="flex items-center gap-2">
|
|
794
|
-
<input id="pc-is-billable" type="checkbox" checked={form.is_billable} onChange={(e) => updateForm('is_billable', e.target.checked)} className="size-4"/>
|
|
795
|
-
<label_1.Label htmlFor="pc-is-billable">{t('fields.isBillable')}</label_1.Label>
|
|
796
|
-
</div>
|
|
797
|
-
<div className="flex items-center gap-2">
|
|
798
|
-
<input id="pc-is-reimbursable" type="checkbox" checked={form.is_reimbursable} onChange={(e) => updateForm('is_reimbursable', e.target.checked)} className="size-4"/>
|
|
799
|
-
<label_1.Label htmlFor="pc-is-reimbursable">
|
|
800
|
-
{t('fields.isReimbursable')}
|
|
801
|
-
</label_1.Label>
|
|
802
|
-
</div>
|
|
803
|
-
</div>
|
|
804
|
-
|
|
805
|
-
{/* Notes */}
|
|
806
|
-
<div className="space-y-1.5">
|
|
807
|
-
<label_1.Label htmlFor="pc-notes">{t('fields.notes')}</label_1.Label>
|
|
808
|
-
<textarea_1.Textarea id="pc-notes" value={form.notes} onChange={(e) => updateForm('notes', e.target.value)} placeholder={t('fields.notesPlaceholder')} rows={3}/>
|
|
809
|
-
</div>
|
|
810
|
-
</div>
|
|
811
|
-
|
|
812
|
-
<div className="flex justify-end gap-2 border-t p-4">
|
|
813
|
-
<button_1.Button variant="outline" onClick={() => setIsSheetOpen(false)} disabled={isSaving}>
|
|
814
|
-
{commonT('actions.cancel')}
|
|
815
|
-
</button_1.Button>
|
|
816
|
-
<button_1.Button onClick={saveCost} disabled={isSaving}>
|
|
817
|
-
{isSaving ? t('messages.saving') : commonT('actions.save')}
|
|
818
|
-
</button_1.Button>
|
|
819
|
-
</div>
|
|
820
|
-
</sheet_1.SheetContent>
|
|
821
|
-
</sheet_1.Sheet>
|
|
822
|
-
|
|
823
|
-
{/* Delete Confirmation */}
|
|
824
|
-
<alert_dialog_1.AlertDialog open={deleteTarget !== null} onOpenChange={(open) => {
|
|
825
|
-
if (!open)
|
|
826
|
-
setDeleteTarget(null);
|
|
827
|
-
}}>
|
|
828
|
-
<alert_dialog_1.AlertDialogContent>
|
|
829
|
-
<alert_dialog_1.AlertDialogHeader>
|
|
830
|
-
<alert_dialog_1.AlertDialogTitle>{t('deleteDialog.title')}</alert_dialog_1.AlertDialogTitle>
|
|
831
|
-
<alert_dialog_1.AlertDialogDescription>
|
|
832
|
-
{t('deleteDialog.description')}
|
|
833
|
-
</alert_dialog_1.AlertDialogDescription>
|
|
834
|
-
</alert_dialog_1.AlertDialogHeader>
|
|
835
|
-
<alert_dialog_1.AlertDialogFooter>
|
|
836
|
-
<alert_dialog_1.AlertDialogCancel disabled={isDeleting}>
|
|
837
|
-
{commonT('actions.cancel')}
|
|
838
|
-
</alert_dialog_1.AlertDialogCancel>
|
|
839
|
-
<alert_dialog_1.AlertDialogAction onClick={confirmDelete} disabled={isDeleting} className="bg-destructive text-destructive-foreground hover:bg-destructive/90">
|
|
840
|
-
{isDeleting ? t('messages.deleting') : commonT('actions.delete')}
|
|
841
|
-
</alert_dialog_1.AlertDialogAction>
|
|
842
|
-
</alert_dialog_1.AlertDialogFooter>
|
|
843
|
-
</alert_dialog_1.AlertDialogContent>
|
|
844
|
-
</alert_dialog_1.AlertDialog>
|
|
845
|
-
</div>);
|
|
846
|
-
}
|
|
847
|
-
//# sourceMappingURL=project-costs-section.js.map
|