@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.
Files changed (571) hide show
  1. package/dist/controllers/operations-tasks.controller.d.ts +3 -3
  2. package/dist/operations.service.d.ts +3 -3
  3. package/hedhog/frontend/app/_components/collaborator-form-screen.tsx.ejs +7 -7
  4. package/hedhog/frontend/app/_components/department-picker.tsx.ejs +125 -0
  5. package/hedhog/frontend/app/_components/department-select-with-create.tsx.ejs +64 -325
  6. package/hedhog/frontend/app/_components/project-form-screen.tsx.ejs +16 -16
  7. package/hedhog/frontend/app/_components/system-user-picker.tsx.ejs +198 -0
  8. package/hedhog/frontend/app/_components/system-user-select-with-create.tsx.ejs +107 -569
  9. package/hedhog/frontend/messages/en.json +79 -10
  10. package/hedhog/frontend/messages/operations/en.json +67 -3
  11. package/hedhog/frontend/messages/operations/pt.json +67 -3
  12. package/hedhog/frontend/messages/pt.json +77 -8
  13. package/package.json +6 -6
  14. package/hedhog/frontend/app/_components/collaborator-details-screen.tsx.ejs +0 -476
  15. package/hedhog/frontend/app/_components/collaborator-select-with-create.tsx.ejs +0 -261
  16. package/hedhog/frontend/app/_components/contract-content-editor.tsx.ejs +0 -258
  17. package/hedhog/frontend/app/_components/person-select-with-create.tsx.ejs +0 -1
  18. package/hedhog/frontend/messages/en.json.ejs +0 -2060
  19. package/hedhog/frontend/messages/operations/operations/en.json +0 -2102
  20. package/hedhog/frontend/messages/operations/operations/pt.json +0 -2111
  21. package/hedhog/frontend/messages/pt.json.ejs +0 -2067
  22. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.d.ts +0 -29
  23. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.d.ts.map +0 -1
  24. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.js +0 -95
  25. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.js.map +0 -1
  26. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.tsx +0 -233
  27. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.d.ts +0 -10
  28. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.d.ts.map +0 -1
  29. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.js +0 -577
  30. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.js.map +0 -1
  31. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.tsx +0 -868
  32. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.d.ts +0 -4
  33. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.d.ts.map +0 -1
  34. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.js +0 -337
  35. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.js.map +0 -1
  36. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.tsx +0 -476
  37. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.d.ts +0 -9
  38. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.d.ts.map +0 -1
  39. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.js +0 -1348
  40. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.js.map +0 -1
  41. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.tsx +0 -2233
  42. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.d.ts +0 -12
  43. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.d.ts.map +0 -1
  44. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.js +0 -162
  45. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.js.map +0 -1
  46. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.tsx +0 -261
  47. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.d.ts +0 -18
  48. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.d.ts.map +0 -1
  49. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.js +0 -145
  50. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.js.map +0 -1
  51. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.tsx +0 -258
  52. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.d.ts +0 -4
  53. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.d.ts.map +0 -1
  54. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.js +0 -223
  55. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.js.map +0 -1
  56. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.tsx +0 -342
  57. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.d.ts +0 -58
  58. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.d.ts.map +0 -1
  59. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.js +0 -438
  60. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.js.map +0 -1
  61. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.tsx +0 -698
  62. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.d.ts +0 -20
  63. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.d.ts.map +0 -1
  64. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.js +0 -233
  65. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.js.map +0 -1
  66. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.tsx +0 -392
  67. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.d.ts +0 -4
  68. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.d.ts.map +0 -1
  69. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.js +0 -814
  70. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.js.map +0 -1
  71. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.tsx +0 -1288
  72. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.d.ts +0 -21
  73. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.d.ts.map +0 -1
  74. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.js +0 -174
  75. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.js.map +0 -1
  76. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.tsx +0 -306
  77. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.d.ts +0 -10
  78. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.d.ts.map +0 -1
  79. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.js +0 -12
  80. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.js.map +0 -1
  81. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.tsx +0 -29
  82. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.d.ts +0 -15
  83. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.d.ts.map +0 -1
  84. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.js +0 -501
  85. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.js.map +0 -1
  86. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.tsx +0 -853
  87. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.d.ts +0 -6
  88. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.d.ts.map +0 -1
  89. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.js +0 -847
  90. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.js.map +0 -1
  91. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.tsx +0 -1340
  92. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.d.ts +0 -4
  93. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.d.ts.map +0 -1
  94. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.js +0 -2930
  95. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.js.map +0 -1
  96. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.tsx +0 -4378
  97. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.d.ts +0 -9
  98. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.d.ts.map +0 -1
  99. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.js +0 -1013
  100. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.js.map +0 -1
  101. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.tsx +0 -1745
  102. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.d.ts +0 -13
  103. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.d.ts.map +0 -1
  104. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.js +0 -38
  105. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.js.map +0 -1
  106. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.tsx +0 -74
  107. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.d.ts +0 -7
  108. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.d.ts.map +0 -1
  109. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.js +0 -11
  110. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.js.map +0 -1
  111. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.tsx +0 -15
  112. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.d.ts +0 -18
  113. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.d.ts.map +0 -1
  114. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.js +0 -406
  115. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.js.map +0 -1
  116. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.tsx +0 -660
  117. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.d.ts +0 -26
  118. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.d.ts.map +0 -1
  119. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.js +0 -332
  120. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.js.map +0 -1
  121. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.tsx +0 -518
  122. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.d.ts +0 -6
  123. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.d.ts.map +0 -1
  124. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.js +0 -255
  125. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.js.map +0 -1
  126. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.tsx +0 -388
  127. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.d.ts +0 -10
  128. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.d.ts.map +0 -1
  129. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.js +0 -131
  130. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.js.map +0 -1
  131. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.tsx +0 -214
  132. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.d.ts +0 -108
  133. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.d.ts.map +0 -1
  134. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.js +0 -162
  135. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.js.map +0 -1
  136. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.ts +0 -428
  137. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.d.ts +0 -8
  138. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.d.ts.map +0 -1
  139. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.js +0 -36
  140. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.js.map +0 -1
  141. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.ts +0 -44
  142. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.d.ts +0 -837
  143. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.d.ts.map +0 -1
  144. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.js +0 -3
  145. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.js.map +0 -1
  146. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.ts +0 -861
  147. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.d.ts +0 -16
  148. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.d.ts.map +0 -1
  149. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.js +0 -182
  150. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.js.map +0 -1
  151. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.ts +0 -250
  152. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.d.ts +0 -4
  153. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.d.ts.map +0 -1
  154. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.js +0 -51
  155. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.js.map +0 -1
  156. package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.ts +0 -61
  157. package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.d.ts +0 -2
  158. package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.d.ts.map +0 -1
  159. package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.js +0 -954
  160. package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.js.map +0 -1
  161. package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.tsx +0 -1277
  162. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.d.ts +0 -2
  163. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.d.ts.map +0 -1
  164. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.js +0 -488
  165. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.js.map +0 -1
  166. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.tsx +0 -805
  167. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.d.ts +0 -6
  168. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.d.ts.map +0 -1
  169. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.js +0 -9
  170. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.js.map +0 -1
  171. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.tsx +0 -11
  172. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.d.ts +0 -6
  173. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.d.ts.map +0 -1
  174. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.js +0 -9
  175. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.js.map +0 -1
  176. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.tsx +0 -11
  177. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.d.ts +0 -2
  178. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.d.ts.map +0 -1
  179. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.js +0 -8
  180. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.js.map +0 -1
  181. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.tsx +0 -5
  182. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.d.ts +0 -2
  183. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.d.ts.map +0 -1
  184. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.js +0 -612
  185. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.js.map +0 -1
  186. package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.tsx +0 -939
  187. package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.d.ts +0 -6
  188. package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.d.ts.map +0 -1
  189. package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.js +0 -9
  190. package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.js.map +0 -1
  191. package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.tsx +0 -11
  192. package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.d.ts +0 -6
  193. package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.d.ts.map +0 -1
  194. package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.js +0 -9
  195. package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.js.map +0 -1
  196. package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.tsx +0 -11
  197. package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.d.ts +0 -6
  198. package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.d.ts.map +0 -1
  199. package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.js +0 -9
  200. package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.js.map +0 -1
  201. package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.tsx +0 -17
  202. package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.d.ts +0 -2
  203. package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.d.ts.map +0 -1
  204. package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.js +0 -348
  205. package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.js.map +0 -1
  206. package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.tsx +0 -536
  207. package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.d.ts +0 -2
  208. package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.d.ts.map +0 -1
  209. package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.js +0 -401
  210. package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.js.map +0 -1
  211. package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.tsx +0 -607
  212. package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.d.ts +0 -5
  213. package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.d.ts.map +0 -1
  214. package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.js +0 -7
  215. package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.js.map +0 -1
  216. package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.tsx +0 -9
  217. package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.d.ts +0 -6
  218. package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.d.ts.map +0 -1
  219. package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.js +0 -9
  220. package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.js.map +0 -1
  221. package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.tsx +0 -11
  222. package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.d.ts +0 -2
  223. package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.d.ts.map +0 -1
  224. package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.js +0 -321
  225. package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.js.map +0 -1
  226. package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.tsx +0 -440
  227. package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.d.ts +0 -2
  228. package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.d.ts.map +0 -1
  229. package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.js +0 -939
  230. package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.js.map +0 -1
  231. package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.tsx +0 -1499
  232. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.d.ts +0 -29
  233. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.d.ts.map +0 -1
  234. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.js +0 -95
  235. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.js.map +0 -1
  236. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.tsx +0 -233
  237. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.d.ts +0 -10
  238. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.d.ts.map +0 -1
  239. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.js +0 -577
  240. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.js.map +0 -1
  241. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.tsx +0 -868
  242. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.d.ts +0 -4
  243. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.d.ts.map +0 -1
  244. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.js +0 -337
  245. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.js.map +0 -1
  246. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.tsx +0 -476
  247. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.d.ts +0 -9
  248. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.d.ts.map +0 -1
  249. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.js +0 -1348
  250. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.js.map +0 -1
  251. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.tsx +0 -2233
  252. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.d.ts +0 -12
  253. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.d.ts.map +0 -1
  254. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.js +0 -162
  255. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.js.map +0 -1
  256. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.tsx +0 -261
  257. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.d.ts +0 -18
  258. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.d.ts.map +0 -1
  259. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.js +0 -145
  260. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.js.map +0 -1
  261. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.tsx +0 -258
  262. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.d.ts +0 -4
  263. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.d.ts.map +0 -1
  264. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.js +0 -223
  265. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.js.map +0 -1
  266. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.tsx +0 -342
  267. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.d.ts +0 -58
  268. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.d.ts.map +0 -1
  269. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.js +0 -438
  270. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.js.map +0 -1
  271. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.tsx +0 -698
  272. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.d.ts +0 -20
  273. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.d.ts.map +0 -1
  274. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.js +0 -233
  275. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.js.map +0 -1
  276. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.tsx +0 -392
  277. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.d.ts +0 -4
  278. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.d.ts.map +0 -1
  279. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.js +0 -814
  280. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.js.map +0 -1
  281. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.tsx +0 -1288
  282. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.d.ts +0 -21
  283. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.d.ts.map +0 -1
  284. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.js +0 -174
  285. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.js.map +0 -1
  286. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.tsx +0 -306
  287. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.d.ts +0 -10
  288. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.d.ts.map +0 -1
  289. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.js +0 -12
  290. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.js.map +0 -1
  291. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.tsx +0 -29
  292. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.d.ts +0 -15
  293. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.d.ts.map +0 -1
  294. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.js +0 -501
  295. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.js.map +0 -1
  296. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.tsx +0 -853
  297. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.d.ts +0 -6
  298. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.d.ts.map +0 -1
  299. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.js +0 -459
  300. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.js.map +0 -1
  301. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.tsx +0 -598
  302. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.d.ts +0 -6
  303. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.d.ts.map +0 -1
  304. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.js +0 -876
  305. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.js.map +0 -1
  306. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.tsx +0 -1368
  307. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.d.ts +0 -4
  308. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.d.ts.map +0 -1
  309. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.js +0 -2930
  310. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.js.map +0 -1
  311. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.tsx +0 -4378
  312. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.d.ts +0 -9
  313. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.d.ts.map +0 -1
  314. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.js +0 -1013
  315. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.js.map +0 -1
  316. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.tsx +0 -1745
  317. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.d.ts +0 -13
  318. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.d.ts.map +0 -1
  319. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.js +0 -38
  320. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.js.map +0 -1
  321. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.tsx +0 -74
  322. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.d.ts +0 -7
  323. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.d.ts.map +0 -1
  324. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.js +0 -11
  325. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.js.map +0 -1
  326. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.tsx +0 -15
  327. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.d.ts +0 -18
  328. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.d.ts.map +0 -1
  329. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.js +0 -406
  330. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.js.map +0 -1
  331. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.tsx +0 -660
  332. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.d.ts +0 -26
  333. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.d.ts.map +0 -1
  334. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.js +0 -332
  335. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.js.map +0 -1
  336. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.tsx +0 -518
  337. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.d.ts +0 -6
  338. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.d.ts.map +0 -1
  339. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.js +0 -255
  340. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.js.map +0 -1
  341. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.tsx +0 -388
  342. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.d.ts +0 -10
  343. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.d.ts.map +0 -1
  344. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.js +0 -131
  345. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.js.map +0 -1
  346. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.tsx +0 -214
  347. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.d.ts +0 -108
  348. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.d.ts.map +0 -1
  349. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.js +0 -162
  350. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.js.map +0 -1
  351. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.ts +0 -428
  352. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.d.ts +0 -8
  353. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.d.ts.map +0 -1
  354. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.js +0 -36
  355. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.js.map +0 -1
  356. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.ts +0 -44
  357. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.d.ts +0 -837
  358. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.d.ts.map +0 -1
  359. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.js +0 -3
  360. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.js.map +0 -1
  361. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.ts +0 -861
  362. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.d.ts +0 -16
  363. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.d.ts.map +0 -1
  364. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.js +0 -182
  365. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.js.map +0 -1
  366. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.ts +0 -250
  367. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.d.ts +0 -4
  368. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.d.ts.map +0 -1
  369. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.js +0 -51
  370. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.js.map +0 -1
  371. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.ts +0 -61
  372. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.d.ts +0 -2
  373. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.d.ts.map +0 -1
  374. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.js +0 -954
  375. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.js.map +0 -1
  376. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.tsx +0 -1277
  377. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.d.ts +0 -2
  378. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.d.ts.map +0 -1
  379. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.js +0 -488
  380. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.js.map +0 -1
  381. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.tsx +0 -805
  382. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.d.ts +0 -6
  383. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.d.ts.map +0 -1
  384. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.js +0 -9
  385. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.js.map +0 -1
  386. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.tsx +0 -11
  387. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.d.ts +0 -6
  388. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.d.ts.map +0 -1
  389. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.js +0 -9
  390. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.js.map +0 -1
  391. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.tsx +0 -11
  392. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.d.ts +0 -2
  393. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.d.ts.map +0 -1
  394. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.js +0 -8
  395. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.js.map +0 -1
  396. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.tsx +0 -5
  397. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.d.ts +0 -2
  398. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.d.ts.map +0 -1
  399. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.js +0 -612
  400. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.js.map +0 -1
  401. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.tsx +0 -939
  402. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.d.ts +0 -6
  403. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.d.ts.map +0 -1
  404. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.js +0 -9
  405. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.js.map +0 -1
  406. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.tsx +0 -11
  407. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.d.ts +0 -6
  408. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.d.ts.map +0 -1
  409. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.js +0 -9
  410. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.js.map +0 -1
  411. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.tsx +0 -11
  412. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.d.ts +0 -6
  413. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.d.ts.map +0 -1
  414. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.js +0 -9
  415. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.js.map +0 -1
  416. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.tsx +0 -17
  417. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.d.ts +0 -2
  418. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.d.ts.map +0 -1
  419. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.js +0 -348
  420. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.js.map +0 -1
  421. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.tsx +0 -536
  422. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.d.ts +0 -2
  423. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.d.ts.map +0 -1
  424. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.js +0 -401
  425. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.js.map +0 -1
  426. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.tsx +0 -607
  427. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.d.ts +0 -5
  428. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.d.ts.map +0 -1
  429. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.js +0 -7
  430. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.js.map +0 -1
  431. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.tsx +0 -9
  432. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.d.ts +0 -6
  433. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.d.ts.map +0 -1
  434. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.js +0 -9
  435. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.js.map +0 -1
  436. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.tsx +0 -11
  437. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.d.ts +0 -2
  438. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.d.ts.map +0 -1
  439. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.js +0 -321
  440. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.js.map +0 -1
  441. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.tsx +0 -440
  442. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.d.ts +0 -2
  443. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.d.ts.map +0 -1
  444. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.js +0 -939
  445. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.js.map +0 -1
  446. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.tsx +0 -1499
  447. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.d.ts +0 -2
  448. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.d.ts.map +0 -1
  449. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.js +0 -8
  450. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.js.map +0 -1
  451. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.tsx +0 -5
  452. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.d.ts +0 -2
  453. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.d.ts.map +0 -1
  454. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.js +0 -436
  455. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.js.map +0 -1
  456. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.tsx +0 -675
  457. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.d.ts +0 -2
  458. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.d.ts.map +0 -1
  459. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.js +0 -563
  460. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.js.map +0 -1
  461. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.tsx +0 -846
  462. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.d.ts +0 -6
  463. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.d.ts.map +0 -1
  464. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.js +0 -9
  465. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.js.map +0 -1
  466. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.tsx +0 -10
  467. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.d.ts +0 -6
  468. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.d.ts.map +0 -1
  469. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.js +0 -9
  470. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.js.map +0 -1
  471. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.tsx +0 -11
  472. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.d.ts +0 -6
  473. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.d.ts.map +0 -1
  474. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.js +0 -9
  475. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.js.map +0 -1
  476. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.tsx +0 -11
  477. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.d.ts +0 -2
  478. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.d.ts.map +0 -1
  479. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.js +0 -8
  480. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.js.map +0 -1
  481. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.tsx +0 -5
  482. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.d.ts +0 -2
  483. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.d.ts.map +0 -1
  484. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.js +0 -492
  485. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.js.map +0 -1
  486. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.tsx +0 -757
  487. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.d.ts +0 -2
  488. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.d.ts.map +0 -1
  489. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.js +0 -342
  490. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.js.map +0 -1
  491. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.tsx +0 -430
  492. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.d.ts +0 -2
  493. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.d.ts.map +0 -1
  494. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.js +0 -338
  495. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.js.map +0 -1
  496. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.tsx +0 -428
  497. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.d.ts +0 -2
  498. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.d.ts.map +0 -1
  499. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.js +0 -660
  500. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.js.map +0 -1
  501. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.tsx +0 -992
  502. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.d.ts +0 -2
  503. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.d.ts.map +0 -1
  504. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.js +0 -515
  505. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.js.map +0 -1
  506. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.tsx +0 -707
  507. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.d.ts +0 -2
  508. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.d.ts.map +0 -1
  509. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.js +0 -1141
  510. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.js.map +0 -1
  511. package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.tsx +0 -1705
  512. package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.d.ts +0 -2
  513. package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.d.ts.map +0 -1
  514. package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.js +0 -8
  515. package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.js.map +0 -1
  516. package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.tsx +0 -5
  517. package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.d.ts +0 -2
  518. package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.d.ts.map +0 -1
  519. package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.js +0 -436
  520. package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.js.map +0 -1
  521. package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.tsx +0 -675
  522. package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.d.ts +0 -2
  523. package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.d.ts.map +0 -1
  524. package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.js +0 -563
  525. package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.js.map +0 -1
  526. package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.tsx +0 -846
  527. package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.d.ts +0 -6
  528. package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.d.ts.map +0 -1
  529. package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.js +0 -9
  530. package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.js.map +0 -1
  531. package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.tsx +0 -11
  532. package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.d.ts +0 -6
  533. package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.d.ts.map +0 -1
  534. package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.js +0 -9
  535. package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.js.map +0 -1
  536. package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.tsx +0 -11
  537. package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.d.ts +0 -2
  538. package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.d.ts.map +0 -1
  539. package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.js +0 -8
  540. package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.js.map +0 -1
  541. package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.tsx +0 -5
  542. package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.d.ts +0 -2
  543. package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.d.ts.map +0 -1
  544. package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.js +0 -492
  545. package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.js.map +0 -1
  546. package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.tsx +0 -757
  547. package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.d.ts +0 -2
  548. package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.d.ts.map +0 -1
  549. package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.js +0 -342
  550. package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.js.map +0 -1
  551. package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.tsx +0 -430
  552. package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.d.ts +0 -2
  553. package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.d.ts.map +0 -1
  554. package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.js +0 -338
  555. package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.js.map +0 -1
  556. package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.tsx +0 -428
  557. package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.d.ts +0 -2
  558. package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.d.ts.map +0 -1
  559. package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.js +0 -660
  560. package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.js.map +0 -1
  561. package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.tsx +0 -992
  562. package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.d.ts +0 -2
  563. package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.d.ts.map +0 -1
  564. package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.js +0 -515
  565. package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.js.map +0 -1
  566. package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.tsx +0 -707
  567. package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.d.ts +0 -2
  568. package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.d.ts.map +0 -1
  569. package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.js +0 -1141
  570. package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.js.map +0 -1
  571. package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.tsx +0 -1705
@@ -1,814 +0,0 @@
1
- "use strict";
2
- 'use client';
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.MyProjectSummaryScreen = MyProjectSummaryScreen;
5
- const entity_list_1 = require("@/components/entity-list");
6
- const avatar_1 = require("@/components/ui/avatar");
7
- const button_1 = require("@/components/ui/button");
8
- const dialog_1 = require("@/components/ui/dialog");
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 table_1 = require("@/components/ui/table");
13
- const progress_1 = require("@/components/ui/progress");
14
- const textarea_1 = require("@/components/ui/textarea");
15
- const core_1 = require("@dnd-kit/core");
16
- const utilities_1 = require("@dnd-kit/utilities");
17
- const next_app_provider_1 = require("@hed-hog/next-app-provider");
18
- const framer_motion_1 = require("framer-motion");
19
- const lucide_react_1 = require("lucide-react");
20
- const next_intl_1 = require("next-intl");
21
- const react_1 = require("react");
22
- const api_1 = require("../_lib/api");
23
- const format_1 = require("../_lib/utils/format");
24
- const operations_header_1 = require("./operations-header");
25
- const section_card_1 = require("./section-card");
26
- const status_badge_1 = require("./status-badge");
27
- const task_detail_sheet_1 = require("./task-detail-sheet");
28
- const EMPTY_TASK_FORM = {
29
- name: '',
30
- description: '',
31
- priority: 'medium',
32
- status: 'todo',
33
- dueDate: '',
34
- estimateHours: '',
35
- tags: '',
36
- };
37
- const KANBAN_COLUMNS = [
38
- { id: 'todo', label: 'Backlog' },
39
- { id: 'doing', label: 'Em execução' },
40
- { id: 'review', label: 'Revisão' },
41
- { id: 'done', label: 'Concluído' },
42
- ];
43
- function taskDragId(taskId) {
44
- return `task-${taskId}`;
45
- }
46
- function columnDropId(columnId) {
47
- return `col-${columnId}`;
48
- }
49
- function parseTaskId(value) {
50
- if (!value)
51
- return null;
52
- const match = String(value).match(/^task-(\d+)$/);
53
- return match ? Number(match[1]) : null;
54
- }
55
- function parseColumnId(value) {
56
- if (!value)
57
- return null;
58
- const match = String(value).match(/^col-(.+)$/);
59
- const id = match === null || match === void 0 ? void 0 : match[1];
60
- return KANBAN_COLUMNS.some((c) => c.id === id) ? id : null;
61
- }
62
- function apiTaskToBoardTask(row) {
63
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
64
- const status = KANBAN_COLUMNS.some((c) => c.id === row.status)
65
- ? row.status
66
- : 'todo';
67
- return {
68
- id: row.id,
69
- name: row.name,
70
- description: (_a = row.description) !== null && _a !== void 0 ? _a : null,
71
- status,
72
- priority: (_b = row.priority) !== null && _b !== void 0 ? _b : 'medium',
73
- dueDate: (_c = row.dueDate) !== null && _c !== void 0 ? _c : null,
74
- estimateHours: (_d = row.estimateHours) !== null && _d !== void 0 ? _d : null,
75
- tags: (_e = row.tags) !== null && _e !== void 0 ? _e : null,
76
- assigneeCollaboratorId: (_f = row.assigneeCollaboratorId) !== null && _f !== void 0 ? _f : null,
77
- assigneeName: (_g = row.assigneeName) !== null && _g !== void 0 ? _g : null,
78
- assigneeUserPhotoId: (_h = row.assigneeUserPhotoId) !== null && _h !== void 0 ? _h : null,
79
- assigneePersonAvatarId: (_j = row.assigneePersonAvatarId) !== null && _j !== void 0 ? _j : null,
80
- commentCount: (_k = row.commentCount) !== null && _k !== void 0 ? _k : 0,
81
- fileCount: (_l = row.fileCount) !== null && _l !== void 0 ? _l : 0,
82
- };
83
- }
84
- function splitTasksByColumn(tasks) {
85
- return {
86
- todo: tasks.filter((t) => t.status === 'todo'),
87
- doing: tasks.filter((t) => t.status === 'doing'),
88
- review: tasks.filter((t) => t.status === 'review'),
89
- done: tasks.filter((t) => t.status === 'done'),
90
- };
91
- }
92
- function getInitials(value) {
93
- const parts = String(value !== null && value !== void 0 ? value : '')
94
- .trim()
95
- .split(/\s+/)
96
- .filter(Boolean)
97
- .slice(0, 2);
98
- if (!parts.length)
99
- return '??';
100
- return parts.map((part) => { var _a, _b; return (_b = (_a = part[0]) === null || _a === void 0 ? void 0 : _a.toUpperCase()) !== null && _b !== void 0 ? _b : ''; }).join('');
101
- }
102
- function getPersonAvatarUrl(avatarId) {
103
- return typeof avatarId === 'number' && avatarId > 0
104
- ? `${process.env.NEXT_PUBLIC_API_BASE_URL}/person/avatar/${avatarId}`
105
- : '/placeholder.png';
106
- }
107
- function getUserPhotoUrl(photoId) {
108
- return typeof photoId === 'number' && photoId > 0
109
- ? `${process.env.NEXT_PUBLIC_API_BASE_URL}/file/open/${photoId}`
110
- : null;
111
- }
112
- function normalizeDateInputValue(value) {
113
- if (!value) {
114
- return '';
115
- }
116
- const normalizedValue = String(value).trim();
117
- const directMatch = normalizedValue.match(/^\d{4}-\d{2}-\d{2}/);
118
- if (directMatch === null || directMatch === void 0 ? void 0 : directMatch[0]) {
119
- return directMatch[0];
120
- }
121
- const parsedDate = new Date(normalizedValue);
122
- if (Number.isNaN(parsedDate.getTime())) {
123
- return '';
124
- }
125
- return parsedDate.toISOString().slice(0, 10);
126
- }
127
- function getTaskPriorityLabel(value) {
128
- var _a;
129
- const labels = {
130
- low: 'Baixa',
131
- medium: 'Média',
132
- high: 'Alta',
133
- };
134
- return (_a = labels[value !== null && value !== void 0 ? value : '']) !== null && _a !== void 0 ? _a : String(value !== null && value !== void 0 ? value : '');
135
- }
136
- function getPriorityClassName(priority) {
137
- if (priority === 'high')
138
- return 'border-rose-300 bg-rose-100 text-rose-700';
139
- if (priority === 'medium')
140
- return 'border-amber-300 bg-amber-100 text-amber-700';
141
- return 'border-emerald-300 bg-emerald-100 text-emerald-700';
142
- }
143
- function getTaskProgress(status) {
144
- var _a;
145
- const map = {
146
- todo: 0,
147
- doing: 33,
148
- review: 66,
149
- done: 100,
150
- };
151
- return (_a = map[status !== null && status !== void 0 ? status : '']) !== null && _a !== void 0 ? _a : 0;
152
- }
153
- function isPastDue(dueDate) {
154
- if (!dueDate)
155
- return false;
156
- return new Date(dueDate) < new Date();
157
- }
158
- function getTaskTags(task) {
159
- if (!task.tags)
160
- return [];
161
- return task.tags.split(',').map((tag) => tag.trim()).filter(Boolean);
162
- }
163
- function getTaskCommentCount(task) {
164
- var _a;
165
- return (_a = task.commentCount) !== null && _a !== void 0 ? _a : 0;
166
- }
167
- function getTaskAttachmentCount(task) {
168
- var _a;
169
- return (_a = task.fileCount) !== null && _a !== void 0 ? _a : 0;
170
- }
171
- function DraggableTaskCard({ task, children, }) {
172
- const { attributes, listeners, setNodeRef, transform, isDragging } = (0, core_1.useDraggable)({
173
- id: taskDragId(task.id),
174
- });
175
- return (<div ref={setNodeRef} style={{ transform: utilities_1.CSS.Translate.toString(transform) }} {...listeners} {...attributes} className={isDragging ? 'z-20' : undefined}>
176
- {children(isDragging)}
177
- </div>);
178
- }
179
- function DroppableColumn({ columnId, children, }) {
180
- const { setNodeRef, isOver } = (0, core_1.useDroppable)({ id: columnDropId(columnId) });
181
- return <div ref={setNodeRef}>{children(isOver)}</div>;
182
- }
183
- function MyProjectSummaryScreen({ projectId }) {
184
- const t = (0, next_intl_1.useTranslations)('operations.ProjectDetailsPage');
185
- const commonT = (0, next_intl_1.useTranslations)('operations.Common');
186
- const formT = (0, next_intl_1.useTranslations)('operations.ProjectFormPage');
187
- const { request, currentLocaleCode, getSettingValue } = (0, next_app_provider_1.useApp)();
188
- const getProjectStatusLabel = (value) => {
189
- if (!value)
190
- return commonT('labels.notAvailable');
191
- try {
192
- return formT(`options.statuses.${value}`);
193
- }
194
- catch (_a) {
195
- return value;
196
- }
197
- };
198
- const { data: project, refetch } = (0, next_app_provider_1.useQuery)({
199
- queryKey: ['operations-my-project-summary', projectId],
200
- queryFn: () => (0, api_1.fetchOperations)(request, `/operations/my-projects/${projectId}/summary`),
201
- });
202
- const { data: archivedTasksResponse, refetch: refetchArchivedTasks } = (0, next_app_provider_1.useQuery)({
203
- queryKey: [
204
- 'operations-my-project-archived-tasks',
205
- projectId,
206
- currentLocaleCode,
207
- ],
208
- queryFn: () => (0, api_1.fetchOperations)(request, `/operations/tasks?projectId=${projectId}&archived=true&pageSize=200&sortField=createdAt&sortOrder=desc`),
209
- placeholderData: (previous) => previous,
210
- });
211
- const [boardState, setBoardState] = (0, react_1.useState)(null);
212
- const [selectedTask, setSelectedTask] = (0, react_1.useState)(null);
213
- const [deletePromptTask, setDeletePromptTask] = (0, react_1.useState)(null);
214
- const [taskFormOpen, setTaskFormOpen] = (0, react_1.useState)(false);
215
- const [editingTaskId, setEditingTaskId] = (0, react_1.useState)(null);
216
- const [taskFormData, setTaskFormData] = (0, react_1.useState)(EMPTY_TASK_FORM);
217
- const [taskFormLoading, setTaskFormLoading] = (0, react_1.useState)(false);
218
- const apiTasks = (0, react_1.useMemo)(() => { var _a; return ((_a = project === null || project === void 0 ? void 0 : project.tasks) !== null && _a !== void 0 ? _a : []).map(apiTaskToBoardTask); }, [project]);
219
- const archivedTasks = (0, react_1.useMemo)(() => {
220
- var _a;
221
- return ((_a = archivedTasksResponse === null || archivedTasksResponse === void 0 ? void 0 : archivedTasksResponse.data) !== null && _a !== void 0 ? _a : []).filter((task) => Boolean(task.deletedAt));
222
- }, [archivedTasksResponse]);
223
- const currentCollaboratorId = (0, react_1.useMemo)(() => {
224
- var _a, _b;
225
- if (!(project === null || project === void 0 ? void 0 : project.myAssignmentId)) {
226
- return null;
227
- }
228
- return ((_b = (_a = project.assignments.find((assignment) => assignment.id === project.myAssignmentId)) === null || _a === void 0 ? void 0 : _a.collaboratorId) !== null && _b !== void 0 ? _b : null);
229
- }, [project]);
230
- const taskColumns = (0, react_1.useMemo)(() => {
231
- if (project && (boardState === null || boardState === void 0 ? void 0 : boardState.projectId) === project.id) {
232
- return boardState.columns;
233
- }
234
- return splitTasksByColumn(apiTasks);
235
- }, [project, boardState, apiTasks]);
236
- const sensors = (0, core_1.useSensors)((0, core_1.useSensor)(core_1.PointerSensor, { activationConstraint: { distance: 6 } }));
237
- const findColumnByTask = (taskId) => {
238
- var _a;
239
- const match = KANBAN_COLUMNS.find((column) => taskColumns[column.id].some((task) => task.id === taskId));
240
- return (_a = match === null || match === void 0 ? void 0 : match.id) !== null && _a !== void 0 ? _a : null;
241
- };
242
- const moveTaskToColumn = (0, react_1.useCallback)((taskId, targetColumn) => {
243
- const originColumn = findColumnByTask(taskId);
244
- if (!originColumn || originColumn === targetColumn || !project)
245
- return;
246
- const sourceTask = taskColumns[originColumn].find((task) => task.id === taskId);
247
- if (!sourceTask)
248
- return;
249
- setBoardState({
250
- projectId: project.id,
251
- columns: Object.assign(Object.assign({}, taskColumns), { [originColumn]: taskColumns[originColumn].filter((task) => task.id !== taskId), [targetColumn]: [
252
- Object.assign(Object.assign({}, sourceTask), { status: targetColumn }),
253
- ...taskColumns[targetColumn],
254
- ] }),
255
- });
256
- (0, api_1.mutateOperations)(request, `/operations/tasks/${taskId}`, 'PATCH', {
257
- status: targetColumn,
258
- }).catch(() => {
259
- setBoardState(null);
260
- void refetch();
261
- });
262
- }, [taskColumns, project, request, refetch] // eslint-disable-line react-hooks/exhaustive-deps
263
- );
264
- const onBoardDragEnd = (event) => {
265
- var _a;
266
- const taskId = parseTaskId(event.active.id);
267
- const targetColumn = parseColumnId((_a = event.over) === null || _a === void 0 ? void 0 : _a.id);
268
- if (!taskId || !targetColumn)
269
- return;
270
- moveTaskToColumn(taskId, targetColumn);
271
- };
272
- const openCreateTaskForm = (0, react_1.useCallback)((defaultStatus = 'todo') => {
273
- setEditingTaskId(null);
274
- setTaskFormData(Object.assign(Object.assign({}, EMPTY_TASK_FORM), { status: defaultStatus }));
275
- setSelectedTask(null);
276
- setTaskFormOpen(true);
277
- }, []);
278
- const openEditTaskForm = (0, react_1.useCallback)((task) => {
279
- var _a, _b;
280
- setEditingTaskId(task.id);
281
- setTaskFormData({
282
- name: task.name,
283
- description: (_a = task.description) !== null && _a !== void 0 ? _a : '',
284
- priority: task.priority,
285
- status: task.status,
286
- dueDate: normalizeDateInputValue(task.dueDate),
287
- estimateHours: task.estimateHours != null ? String(task.estimateHours) : '',
288
- tags: (_b = task.tags) !== null && _b !== void 0 ? _b : '',
289
- });
290
- setSelectedTask(null);
291
- setTaskFormOpen(true);
292
- }, []);
293
- const refetchAll = (0, react_1.useCallback)(async () => {
294
- await Promise.all([refetch(), refetchArchivedTasks()]);
295
- }, [refetch, refetchArchivedTasks]);
296
- const handleTaskFormSubmit = (0, react_1.useCallback)(async () => {
297
- var _a;
298
- if (!taskFormData.name.trim())
299
- return;
300
- setTaskFormLoading(true);
301
- try {
302
- const payload = {
303
- projectId,
304
- projectAssignmentId: (_a = project === null || project === void 0 ? void 0 : project.myAssignmentId) !== null && _a !== void 0 ? _a : null,
305
- assigneeCollaboratorId: currentCollaboratorId,
306
- name: taskFormData.name.trim(),
307
- description: taskFormData.description || null,
308
- priority: taskFormData.priority,
309
- status: taskFormData.status,
310
- dueDate: taskFormData.dueDate || null,
311
- estimateHours: taskFormData.estimateHours
312
- ? Number(taskFormData.estimateHours)
313
- : null,
314
- tags: taskFormData.tags || null,
315
- };
316
- if (editingTaskId) {
317
- await (0, api_1.mutateOperations)(request, `/operations/tasks/${editingTaskId}`, 'PATCH', payload);
318
- }
319
- else {
320
- await (0, api_1.mutateOperations)(request, '/operations/tasks', 'POST', payload);
321
- }
322
- setBoardState(null);
323
- setTaskFormOpen(false);
324
- setEditingTaskId(null);
325
- setTaskFormData(EMPTY_TASK_FORM);
326
- await refetchAll();
327
- }
328
- finally {
329
- setTaskFormLoading(false);
330
- }
331
- }, [
332
- currentCollaboratorId,
333
- editingTaskId,
334
- project,
335
- projectId,
336
- refetchAll,
337
- request,
338
- taskFormData,
339
- ]);
340
- const handleArchiveTask = (0, react_1.useCallback)(async (taskId) => {
341
- await (0, api_1.mutateOperations)(request, `/operations/tasks/${taskId}`, 'PATCH', {
342
- archived: true,
343
- });
344
- setBoardState(null);
345
- setSelectedTask(null);
346
- await refetchAll();
347
- }, [request, refetchAll]);
348
- const handleRestoreTask = (0, react_1.useCallback)(async (taskId) => {
349
- await (0, api_1.mutateOperations)(request, `/operations/tasks/${taskId}`, 'PATCH', {
350
- archived: false,
351
- });
352
- setBoardState(null);
353
- setSelectedTask(null);
354
- setDeletePromptTask(null);
355
- await refetchAll();
356
- }, [request, refetchAll]);
357
- const handleDeleteTask = (0, react_1.useCallback)(async (taskId) => {
358
- await (0, api_1.mutateOperations)(request, `/operations/tasks/${taskId}?permanent=true`, 'DELETE');
359
- setBoardState(null);
360
- setSelectedTask(null);
361
- setDeletePromptTask(null);
362
- await refetchAll();
363
- }, [request, refetchAll]);
364
- if (!project) {
365
- return (<entity_list_1.Page>
366
- <operations_header_1.OperationsHeader title="—" description="" current={commonT('labels.loading') || 'Carregando...'}/>
367
- <entity_list_1.EmptyState icon={<lucide_react_1.FolderKanban className="size-12"/>} title={commonT('states.emptyTitle')} description={t('notFound')} actionLabel={commonT('actions.refresh')} onAction={() => void refetch()}/>
368
- </entity_list_1.Page>);
369
- }
370
- return (<entity_list_1.Page>
371
- <operations_header_1.OperationsHeader title={project.name} description={[project.code, project.myRoleLabel].filter(Boolean).join(' • ') || ''} current={project.name}/>
372
-
373
- <div className="rounded-xl border bg-muted/20 p-4">
374
- <dl className="grid gap-3 text-sm sm:grid-cols-2 xl:grid-cols-4">
375
- <div>
376
- <dt className="text-muted-foreground">
377
- {commonT('labels.status')}
378
- </dt>
379
- <dd className="mt-0.5 font-medium">
380
- <status_badge_1.StatusBadge label={getProjectStatusLabel(project.status)} className={(0, format_1.getStatusBadgeClass)(project.status)}/>
381
- </dd>
382
- </div>
383
- <div>
384
- <dt className="text-muted-foreground">
385
- {commonT('labels.startDate')}
386
- </dt>
387
- <dd className="mt-0.5 font-medium">
388
- {(0, format_1.formatDate)(project.startDate, getSettingValue, currentLocaleCode)}
389
- </dd>
390
- </div>
391
- <div>
392
- <dt className="text-muted-foreground">
393
- {commonT('labels.endDate')}
394
- </dt>
395
- <dd className="mt-0.5 font-medium">
396
- {(0, format_1.formatDate)(project.endDate, getSettingValue, currentLocaleCode)}
397
- </dd>
398
- </div>
399
- {project.myRoleLabel ? (<div>
400
- <dt className="text-muted-foreground">
401
- {commonT('labels.role')}
402
- </dt>
403
- <dd className="mt-0.5 font-medium">{project.myRoleLabel}</dd>
404
- </div>) : null}
405
- </dl>
406
- {project.summary ? (<p className="mt-3 rounded-lg border border-border/70 bg-background/60 p-3 text-sm text-muted-foreground">
407
- {project.summary}
408
- </p>) : null}
409
- </div>
410
-
411
- <section_card_1.SectionCard title={t('sections.taskBoard')} description={t('sections.taskBoardDescription')} className="rounded-xl border bg-card p-4 shadow-sm" actions={<button_1.Button size="sm" className="gap-2" onClick={() => openCreateTaskForm()}>
412
- <lucide_react_1.Plus className="size-4"/>
413
- {commonT('actions.create')}
414
- </button_1.Button>}>
415
- <core_1.DndContext sensors={sensors} collisionDetection={core_1.closestCenter} onDragEnd={onBoardDragEnd}>
416
- <div className="grid gap-4 xl:grid-cols-4">
417
- {KANBAN_COLUMNS.map((column) => (<DroppableColumn key={column.id} columnId={column.id}>
418
- {(isOver) => (<div className={[
419
- 'rounded-xl border bg-muted/20 p-3 transition-colors',
420
- isOver ? 'border-primary bg-primary/5' : 'border-border',
421
- ].join(' ')}>
422
- <div className="mb-3 flex items-center justify-between">
423
- <div className="flex items-center gap-2 text-sm font-semibold">
424
- <lucide_react_1.Rows3 className="size-4 text-muted-foreground"/>
425
- {column.label}
426
- </div>
427
- <span className="rounded-full bg-background px-2 py-0.5 text-xs text-muted-foreground">
428
- {taskColumns[column.id].length}
429
- </span>
430
- </div>
431
-
432
- <div className="flex flex-1 flex-col gap-2">
433
- <framer_motion_1.AnimatePresence initial={false}>
434
- {taskColumns[column.id].map((task) => {
435
- const tags = getTaskTags(task);
436
- const comments = getTaskCommentCount(task);
437
- const attachments = getTaskAttachmentCount(task);
438
- return (<DraggableTaskCard key={task.id} task={task}>
439
- {(isDragging) => {
440
- var _a;
441
- return (<framer_motion_1.motion.div initial={{ opacity: 0, scale: 0.96 }} animate={{ opacity: 1, scale: 1 }} exit={{ opacity: 0, scale: 0.95, y: -4 }} transition={{ duration: 0.18 }} role="button" tabIndex={0} onClick={() => !isDragging && setSelectedTask(task)} onKeyDown={(event) => {
442
- if (event.key === 'Enter' || event.key === ' ') {
443
- event.preventDefault();
444
- setSelectedTask(task);
445
- }
446
- }} className={[
447
- 'group w-full cursor-pointer rounded-2xl border bg-card p-3 text-left shadow-xs transition',
448
- isDragging
449
- ? 'opacity-0'
450
- : 'hover:border-primary/40 hover:shadow-lg',
451
- ].join(' ')}>
452
- <div className="mb-3 flex items-start justify-between gap-2">
453
- <div className="min-w-0 space-y-1">
454
- <p className="line-clamp-2 text-sm font-semibold leading-snug">
455
- {task.name}
456
- </p>
457
- {task.description ? (<p className="line-clamp-2 text-xs leading-5 text-muted-foreground">
458
- {task.description.replace(/<[^>]*>/g, '')}
459
- </p>) : null}
460
- </div>
461
- <div className="flex items-start gap-2">
462
- <span className={[
463
- 'shrink-0 rounded-full border px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide',
464
- getPriorityClassName(task.priority),
465
- ].join(' ')}>
466
- {getTaskPriorityLabel(task.priority)}
467
- </span>
468
- <button_1.Button type="button" variant="ghost" size="icon" className="size-7 shrink-0 rounded-full opacity-0 transition group-hover:opacity-100" onPointerDown={(event) => event.stopPropagation()} onClick={(event) => {
469
- event.stopPropagation();
470
- openEditTaskForm(task);
471
- }}>
472
- <lucide_react_1.Pencil className="size-3.5"/>
473
- </button_1.Button>
474
- </div>
475
- </div>
476
-
477
- {tags.length > 0 ? (<div className="mb-3 flex flex-wrap gap-1">
478
- {tags.slice(0, 4).map((tag) => (<span key={`${task.id}-${tag}`} className="rounded-full border bg-muted/60 px-2 py-0.5 text-[10px] font-medium text-muted-foreground">
479
- {tag}
480
- </span>))}
481
- {tags.length > 4 ? (<span className="rounded-full border bg-muted/60 px-2 py-0.5 text-[10px] font-medium text-muted-foreground">
482
- +{tags.length - 4}
483
- </span>) : null}
484
- </div>) : null}
485
-
486
- <div className="grid grid-cols-2 gap-2 text-xs">
487
- <div className={[
488
- 'rounded-xl border bg-muted/20 px-2 py-1.5',
489
- isPastDue(task.dueDate) && task.status !== 'done'
490
- ? 'border-rose-500/30 bg-rose-500/10 text-rose-700 dark:text-rose-300'
491
- : 'text-muted-foreground',
492
- ].join(' ')}>
493
- <span className="flex items-center gap-1">
494
- <lucide_react_1.AlarmClock className="size-3.5"/>
495
- {(0, format_1.formatDate)(task.dueDate, getSettingValue, currentLocaleCode)}
496
- </span>
497
- </div>
498
- <div className="rounded-xl border bg-muted/20 px-2 py-1.5 text-muted-foreground">
499
- <span className="flex items-center gap-1">
500
- <lucide_react_1.Timer className="size-3.5"/>
501
- {task.estimateHours != null
502
- ? `${task.estimateHours}h`
503
- : '—'}
504
- </span>
505
- </div>
506
- </div>
507
-
508
- <div className="mt-3 space-y-1.5">
509
- <div className="flex items-center justify-between text-[11px] text-muted-foreground">
510
- <span>Progresso</span>
511
- <span>{getTaskProgress(task.status)}%</span>
512
- </div>
513
- <progress_1.Progress value={getTaskProgress(task.status)} className="h-1.5"/>
514
- </div>
515
-
516
- <div className="mt-3 flex items-center justify-between gap-3 border-t pt-3">
517
- <div className="flex min-w-0 items-center gap-2">
518
- <div className="flex size-7 shrink-0 items-center justify-center overflow-hidden rounded-full bg-muted text-[10px] font-semibold uppercase text-muted-foreground ring-1 ring-border">
519
- {(() => {
520
- var _a;
521
- const photoUrl = getUserPhotoUrl(task.assigneeUserPhotoId);
522
- const avatarUrl = task.assigneePersonAvatarId
523
- ? getPersonAvatarUrl(task.assigneePersonAvatarId)
524
- : null;
525
- const imgSrc = photoUrl !== null && photoUrl !== void 0 ? photoUrl : avatarUrl;
526
- return imgSrc ? (
527
- // eslint-disable-next-line @next/next/no-img-element
528
- <img src={imgSrc} alt={(_a = task.assigneeName) !== null && _a !== void 0 ? _a : ''} className="size-full object-cover"/>) : (getInitials(task.assigneeName));
529
- })()}
530
- </div>
531
- <span className="truncate text-[11px] text-muted-foreground">
532
- {(_a = task.assigneeName) !== null && _a !== void 0 ? _a : '—'}
533
- </span>
534
- </div>
535
- <div className="flex shrink-0 items-center gap-2 text-[11px] text-muted-foreground">
536
- <span className="inline-flex items-center gap-1">
537
- <lucide_react_1.MessageSquare className="size-3.5"/>
538
- {comments}
539
- </span>
540
- <span className="inline-flex items-center gap-1">
541
- <lucide_react_1.Paperclip className="size-3.5"/>
542
- {attachments}
543
- </span>
544
- </div>
545
- </div>
546
- </framer_motion_1.motion.div>);
547
- }}
548
- </DraggableTaskCard>);
549
- })}
550
- </framer_motion_1.AnimatePresence>
551
- </div>
552
- </div>)}
553
- </DroppableColumn>))}
554
- </div>
555
- </core_1.DndContext>
556
- </section_card_1.SectionCard>
557
-
558
- <section_card_1.SectionCard title={t('sections.archivedTasks')} description={t('sections.archivedTasksDescription')} className="rounded-xl border bg-card p-4 shadow-sm">
559
- {archivedTasks.length > 0 ? (<div className="overflow-x-auto rounded-lg border bg-muted/10">
560
- <table_1.Table>
561
- <table_1.TableHeader>
562
- <table_1.TableRow>
563
- <table_1.TableHead>{commonT('labels.name')}</table_1.TableHead>
564
- <table_1.TableHead>{commonT('labels.status')}</table_1.TableHead>
565
- <table_1.TableHead>{commonT('labels.deadline')}</table_1.TableHead>
566
- <table_1.TableHead className="text-right">
567
- {commonT('labels.actions')}
568
- </table_1.TableHead>
569
- </table_1.TableRow>
570
- </table_1.TableHeader>
571
- <table_1.TableBody>
572
- {archivedTasks.map((task) => {
573
- var _a, _b;
574
- return (<table_1.TableRow key={task.id} className="cursor-pointer hover:bg-muted/30" onClick={() => setSelectedTask(task)}>
575
- <table_1.TableCell>
576
- <div className="min-w-0">
577
- <div className="truncate font-medium">{task.name}</div>
578
- {task.description ? (<div className="truncate text-xs text-muted-foreground">
579
- {task.description}
580
- </div>) : null}
581
- </div>
582
- </table_1.TableCell>
583
- <table_1.TableCell>
584
- <status_badge_1.StatusBadge label={(_b = (_a = KANBAN_COLUMNS.find((column) => column.id === task.status)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : (0, format_1.formatEnumLabel)(task.status)} className={(0, format_1.getStatusBadgeClass)(task.status)}/>
585
- </table_1.TableCell>
586
- <table_1.TableCell>
587
- {(0, format_1.formatDate)(task.dueDate, getSettingValue, currentLocaleCode)}
588
- </table_1.TableCell>
589
- <table_1.TableCell>
590
- <div className="flex justify-end gap-2">
591
- <button_1.Button variant="outline" size="sm" className="gap-2" onClick={(event) => {
592
- event.stopPropagation();
593
- void handleRestoreTask(task.id);
594
- }}>
595
- <lucide_react_1.ArchiveRestore className="size-4"/>
596
- {commonT('actions.unarchive')}
597
- </button_1.Button>
598
- <button_1.Button variant="destructive" size="sm" className="gap-2" onClick={(event) => {
599
- event.stopPropagation();
600
- setDeletePromptTask(task);
601
- }}>
602
- <lucide_react_1.Trash2 className="size-4"/>
603
- {commonT('actions.delete')}
604
- </button_1.Button>
605
- </div>
606
- </table_1.TableCell>
607
- </table_1.TableRow>);
608
- })}
609
- </table_1.TableBody>
610
- </table_1.Table>
611
- </div>) : (<p className="text-sm text-muted-foreground">
612
- {t('emptyArchivedDescription')}
613
- </p>)}
614
- </section_card_1.SectionCard>
615
-
616
- <section_card_1.SectionCard title={t('sections.team')} description={t('sections.teamDescription')} className="rounded-xl border bg-card p-4 shadow-sm">
617
- {project.assignments.length > 0 ? (<div className="overflow-x-auto rounded-lg border bg-muted/10">
618
- <table_1.Table>
619
- <table_1.TableHeader>
620
- <table_1.TableRow>
621
- <table_1.TableHead>{commonT('labels.collaborator')}</table_1.TableHead>
622
- <table_1.TableHead>{commonT('labels.role')}</table_1.TableHead>
623
- <table_1.TableHead>{commonT('labels.status')}</table_1.TableHead>
624
- </table_1.TableRow>
625
- </table_1.TableHeader>
626
- <table_1.TableBody>
627
- {project.assignments.map((assignment) => (<table_1.TableRow key={assignment.id}>
628
- <table_1.TableCell>
629
- <div className="flex items-center gap-2">
630
- <avatar_1.Avatar className="h-8 w-8 border border-border/60 bg-muted">
631
- <avatar_1.AvatarImage src={getUserPhotoUrl(assignment.userPhotoId) ||
632
- getPersonAvatarUrl(assignment.avatarId)} alt={assignment.collaboratorName}/>
633
- <avatar_1.AvatarFallback className="bg-muted text-xs font-semibold text-foreground">
634
- {getInitials(assignment.collaboratorName)}
635
- </avatar_1.AvatarFallback>
636
- </avatar_1.Avatar>
637
- <span>{assignment.collaboratorName}</span>
638
- </div>
639
- </table_1.TableCell>
640
- <table_1.TableCell>
641
- {assignment.roleLabel || commonT('labels.notAssigned')}
642
- </table_1.TableCell>
643
- <table_1.TableCell>
644
- <status_badge_1.StatusBadge label={assignment.status} className={(0, format_1.getStatusBadgeClass)(assignment.status)}/>
645
- </table_1.TableCell>
646
- </table_1.TableRow>))}
647
- </table_1.TableBody>
648
- </table_1.Table>
649
- </div>) : (<p className="text-sm text-muted-foreground">{t('noAssignments')}</p>)}
650
- </section_card_1.SectionCard>
651
-
652
- <task_detail_sheet_1.TaskDetailSheet task={selectedTask} open={selectedTask !== null} onOpenChange={(open) => {
653
- if (!open)
654
- setSelectedTask(null);
655
- }} statusLabel={(status) => {
656
- var _a;
657
- const map = {
658
- todo: 'Backlog',
659
- doing: 'Em execução',
660
- review: 'Revisão',
661
- done: 'Concluído',
662
- };
663
- return (_a = map[status]) !== null && _a !== void 0 ? _a : status;
664
- }} footer={selectedTask ? (<div className="grid grid-cols-2 gap-3">
665
- {archivedTasks.some((task) => task.id === selectedTask.id) ? (<>
666
- <button_1.Button variant="outline" size="sm" className="h-10 gap-2" onClick={() => void handleRestoreTask(selectedTask.id)}>
667
- <lucide_react_1.ArchiveRestore className="size-3.5"/>
668
- {commonT('actions.unarchive')}
669
- </button_1.Button>
670
- <button_1.Button variant="destructive" size="sm" className="h-10 gap-2" onClick={() => setDeletePromptTask(selectedTask)}>
671
- <lucide_react_1.Trash2 className="size-3.5"/>
672
- {commonT('actions.delete')}
673
- </button_1.Button>
674
- </>) : (<>
675
- <button_1.Button variant="outline" size="sm" className="h-10 gap-2" onClick={() => openEditTaskForm(selectedTask)}>
676
- <lucide_react_1.Pencil className="size-3.5"/>
677
- {commonT('actions.edit')}
678
- </button_1.Button>
679
- <button_1.Button variant="destructive" size="sm" className="h-10 gap-2" onClick={() => void handleArchiveTask(selectedTask.id)}>
680
- <lucide_react_1.Archive className="size-3.5"/>
681
- {commonT('actions.archive')}
682
- </button_1.Button>
683
- </>)}
684
- </div>) : null}/>
685
-
686
- <dialog_1.Dialog open={taskFormOpen} onOpenChange={(open) => {
687
- if (!open) {
688
- setTaskFormOpen(false);
689
- setEditingTaskId(null);
690
- setTaskFormData(EMPTY_TASK_FORM);
691
- }
692
- }}>
693
- <dialog_1.DialogContent className="sm:max-w-lg">
694
- <dialog_1.DialogHeader>
695
- <dialog_1.DialogTitle>
696
- {editingTaskId ? t('taskForm.titleEdit') : t('taskForm.titleNew')}
697
- </dialog_1.DialogTitle>
698
- </dialog_1.DialogHeader>
699
-
700
- <div className="space-y-4">
701
- <div className="space-y-1.5">
702
- <label_1.Label htmlFor="task-name">{t('taskForm.nameLabel')} *</label_1.Label>
703
- <input_1.Input id="task-name" placeholder={t('taskForm.namePlaceholder')} value={taskFormData.name} onChange={(e) => setTaskFormData((prev) => (Object.assign(Object.assign({}, prev), { name: e.target.value })))}/>
704
- </div>
705
-
706
- <div className="space-y-1.5">
707
- <label_1.Label htmlFor="task-description">
708
- {t('taskForm.descriptionLabel')}
709
- </label_1.Label>
710
- <textarea_1.Textarea id="task-description" placeholder={t('taskForm.descriptionPlaceholder')} rows={3} value={taskFormData.description} onChange={(e) => setTaskFormData((prev) => (Object.assign(Object.assign({}, prev), { description: e.target.value })))}/>
711
- </div>
712
-
713
- <div className="grid grid-cols-2 gap-3">
714
- <div className="space-y-1.5">
715
- <label_1.Label>{t('taskForm.priorityLabel')}</label_1.Label>
716
- <select_1.Select value={taskFormData.priority} onValueChange={(v) => setTaskFormData((prev) => (Object.assign(Object.assign({}, prev), { priority: v })))}>
717
- <select_1.SelectTrigger className="w-full">
718
- <select_1.SelectValue />
719
- </select_1.SelectTrigger>
720
- <select_1.SelectContent>
721
- <select_1.SelectItem value="low">
722
- {getTaskPriorityLabel('low')}
723
- </select_1.SelectItem>
724
- <select_1.SelectItem value="medium">
725
- {getTaskPriorityLabel('medium')}
726
- </select_1.SelectItem>
727
- <select_1.SelectItem value="high">
728
- {getTaskPriorityLabel('high')}
729
- </select_1.SelectItem>
730
- </select_1.SelectContent>
731
- </select_1.Select>
732
- </div>
733
-
734
- <div className="space-y-1.5">
735
- <label_1.Label>{t('taskForm.columnLabel')}</label_1.Label>
736
- <select_1.Select value={taskFormData.status} onValueChange={(v) => setTaskFormData((prev) => (Object.assign(Object.assign({}, prev), { status: v })))}>
737
- <select_1.SelectTrigger className="w-full">
738
- <select_1.SelectValue />
739
- </select_1.SelectTrigger>
740
- <select_1.SelectContent>
741
- {KANBAN_COLUMNS.map((col) => (<select_1.SelectItem key={col.id} value={col.id}>
742
- {col.label}
743
- </select_1.SelectItem>))}
744
- </select_1.SelectContent>
745
- </select_1.Select>
746
- </div>
747
- </div>
748
-
749
- <div className="grid grid-cols-2 gap-3">
750
- <div className="space-y-1.5">
751
- <label_1.Label htmlFor="task-due-date">
752
- {t('taskForm.deadlineLabel')}
753
- </label_1.Label>
754
- <input_1.Input id="task-due-date" type="date" value={taskFormData.dueDate} onChange={(e) => setTaskFormData((prev) => (Object.assign(Object.assign({}, prev), { dueDate: e.target.value })))}/>
755
- </div>
756
-
757
- <div className="space-y-1.5">
758
- <label_1.Label htmlFor="task-estimate">
759
- {t('taskForm.estimateLabel')}
760
- </label_1.Label>
761
- <input_1.Input id="task-estimate" type="number" min="0" step="0.5" placeholder="0" value={taskFormData.estimateHours} onChange={(e) => setTaskFormData((prev) => (Object.assign(Object.assign({}, prev), { estimateHours: e.target.value })))}/>
762
- </div>
763
- </div>
764
-
765
- <div className="space-y-1.5">
766
- <label_1.Label htmlFor="task-tags">{t('taskForm.tagsLabel')}</label_1.Label>
767
- <input_1.Input id="task-tags" placeholder={t('taskForm.tagsPlaceholder')} value={taskFormData.tags} onChange={(e) => setTaskFormData((prev) => (Object.assign(Object.assign({}, prev), { tags: e.target.value })))}/>
768
- </div>
769
- </div>
770
-
771
- <dialog_1.DialogFooter className="mt-4">
772
- <button_1.Button variant="outline" onClick={() => {
773
- setTaskFormOpen(false);
774
- setEditingTaskId(null);
775
- setTaskFormData(EMPTY_TASK_FORM);
776
- }} disabled={taskFormLoading}>
777
- {commonT('actions.cancel')}
778
- </button_1.Button>
779
- <button_1.Button onClick={() => void handleTaskFormSubmit()} disabled={taskFormLoading || !taskFormData.name.trim()}>
780
- {taskFormLoading
781
- ? t('taskForm.saving')
782
- : editingTaskId
783
- ? commonT('actions.save')
784
- : commonT('actions.create')}
785
- </button_1.Button>
786
- </dialog_1.DialogFooter>
787
- </dialog_1.DialogContent>
788
- </dialog_1.Dialog>
789
-
790
- <dialog_1.Dialog open={deletePromptTask !== null} onOpenChange={(open) => {
791
- if (!open) {
792
- setDeletePromptTask(null);
793
- }
794
- }}>
795
- <dialog_1.DialogContent className="sm:max-w-lg">
796
- <dialog_1.DialogHeader>
797
- <dialog_1.DialogTitle>{t('dialogs.deleteTitle')}</dialog_1.DialogTitle>
798
- </dialog_1.DialogHeader>
799
- <p className="text-sm text-muted-foreground">
800
- {t('dialogs.deleteDescription')}
801
- </p>
802
- <dialog_1.DialogFooter className="gap-2 sm:justify-between">
803
- <button_1.Button variant="ghost" onClick={() => setDeletePromptTask(null)}>
804
- {commonT('actions.cancel')}
805
- </button_1.Button>
806
- {deletePromptTask ? (<button_1.Button variant="destructive" onClick={() => void handleDeleteTask(deletePromptTask.id)}>
807
- {commonT('actions.delete')}
808
- </button_1.Button>) : null}
809
- </dialog_1.DialogFooter>
810
- </dialog_1.DialogContent>
811
- </dialog_1.Dialog>
812
- </entity_list_1.Page>);
813
- }
814
- //# sourceMappingURL=my-project-summary-screen.js.map