@paro.io/expert-shared-components 1.14.42 → 1.14.45

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 (243) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +2 -2
  3. package/lib/README.md +2 -0
  4. package/lib/components/ClientReferencesSection/DeleteButton.js +11 -11
  5. package/lib/components/ClientReferencesSection/ParoError.js +10 -10
  6. package/lib/components/ClientReferencesSection/TagsSection.js +2 -2
  7. package/lib/components/ClientReferencesSection/styles/BrandedTypography.js +2 -2
  8. package/lib/components/ClientReferencesSection/styles/Buttons.js +15 -15
  9. package/lib/components/ClientReferencesSection/styles/Name.js +5 -5
  10. package/lib/components/ClientReferencesSection/styles/NullContentConditionalColor.js +4 -4
  11. package/lib/components/ClientReferencesSection/styles/SectionBody.js +11 -11
  12. package/lib/components/ClientReferencesSection/styles/SectionTitle.js +6 -6
  13. package/lib/components/ClientReferencesSection/styles/Tags.js +2 -2
  14. package/lib/components/DiscussionThread/DiscussionThread.d.ts +25 -25
  15. package/lib/components/DiscussionThread/DiscussionThread.js +137 -137
  16. package/lib/components/DiscussionThread/chat.d.ts +22 -22
  17. package/lib/components/DiscussionThread/chat.js +106 -106
  18. package/lib/components/DiscussionThread/index.d.ts +1 -1
  19. package/lib/components/DiscussionThread/index.js +5 -5
  20. package/lib/components/DocumentCenter/DocumentTable.d.ts +15 -15
  21. package/lib/components/DocumentCenter/DocumentTable.js +350 -350
  22. package/lib/components/DocumentCenter/DragDropUpload.js +4 -4
  23. package/lib/components/DocumentCenter/MultiFileUploadSection.js +18 -51
  24. package/lib/components/DocumentCenter/UploadFilesButton.d.ts +6 -6
  25. package/lib/components/DocumentCenter/UploadFilesButton.js +29 -29
  26. package/lib/components/EarningsTracker/ActiveProjectCard.d.ts +52 -52
  27. package/lib/components/EarningsTracker/ActiveProjectCard.js +161 -161
  28. package/lib/components/EarningsTracker/CenterCardUI.d.ts +13 -13
  29. package/lib/components/EarningsTracker/CenterCardUI.js +134 -134
  30. package/lib/components/EarningsTracker/EarningsTracker.d.ts +52 -52
  31. package/lib/components/EarningsTracker/EarningsTracker.js +508 -508
  32. package/lib/components/EarningsTracker/EditDateModal.d.ts +22 -22
  33. package/lib/components/EarningsTracker/EditDateModal.js +149 -149
  34. package/lib/components/EarningsTracker/EmailModal.d.ts +14 -14
  35. package/lib/components/EarningsTracker/EmailModal.js +79 -79
  36. package/lib/components/EarningsTracker/EndProjectModal.d.ts +56 -56
  37. package/lib/components/EarningsTracker/EndProjectModal.js +221 -221
  38. package/lib/components/EarningsTracker/LeftCardUI.d.ts +18 -18
  39. package/lib/components/EarningsTracker/LeftCardUI.js +189 -189
  40. package/lib/components/EarningsTracker/LogTimeModalAuthenticated.d.ts +52 -52
  41. package/lib/components/EarningsTracker/LogTimeModalAuthenticated.js +358 -358
  42. package/lib/components/EarningsTracker/ProgressBar.d.ts +4 -4
  43. package/lib/components/EarningsTracker/ProgressBar.js +66 -66
  44. package/lib/components/EarningsTracker/ReviewRequestModal.d.ts +17 -17
  45. package/lib/components/EarningsTracker/ReviewRequestModal.js +135 -135
  46. package/lib/components/EarningsTracker/RightCardUI.d.ts +46 -46
  47. package/lib/components/EarningsTracker/RightCardUI.js +231 -231
  48. package/lib/components/EarningsTracker/index.d.ts +1 -1
  49. package/lib/components/EarningsTracker/index.js +5 -5
  50. package/lib/components/Escalations/CustomTag.d.ts +3 -3
  51. package/lib/components/Escalations/CustomTag.js +25 -25
  52. package/lib/components/Escalations/ViewReponseModal.d.ts +8 -8
  53. package/lib/components/Escalations/ViewReponseModal.js +27 -27
  54. package/lib/components/ExpertProfileHeader/ActionButtonSection.js +6 -6
  55. package/lib/components/ExpertProfileHeader/ProfileSection.js +7 -7
  56. package/lib/components/Invoices/TestDecisionSection.d.ts +1 -1
  57. package/lib/components/Invoices/TestDecisionSection.js +126 -126
  58. package/lib/components/OrganizationChart/OrganizationChart.d.ts +15 -15
  59. package/lib/components/OrganizationChart/OrganizationChart.js +312 -312
  60. package/lib/components/OrganizationChart/PersonCard.js +5 -5
  61. package/lib/components/OrganizationChart/utils.js +79 -79
  62. package/lib/components/ProjectCard/ProgressBar.js +4 -4
  63. package/lib/components/ProjectCard/ReviewRequestModal.js +5 -5
  64. package/lib/components/ProjectIntelligence/MissingInformation/index.js +1 -1
  65. package/lib/components/Reviews/Pagination.js +6 -6
  66. package/lib/components/ReviewsTab/RatingHeader.js +6 -6
  67. package/lib/components/ReviewsTab/expert-shared-components.code-workspace +20 -20
  68. package/lib/components/ReviewsTab/reviewRequestModal.js +5 -5
  69. package/lib/components/shared/Image.js +13 -13
  70. package/lib/components/shared/ProfileTextField.d.ts +18 -18
  71. package/lib/components/shared/ProfileTextField.js +16 -16
  72. package/lib/components/shared/StyledActionButtons.d.ts +7 -7
  73. package/lib/components/shared/StyledActionButtons.js +15 -15
  74. package/lib/components/shared/ToastNotification.d.ts +10 -10
  75. package/lib/components/shared/ToastNotification.js +63 -63
  76. package/lib/index.d.ts +13 -0
  77. package/lib/index.js +27 -1
  78. package/lib/package.json +68 -0
  79. package/lib/tax-axis/components/clientReport/ClientReportCover.d.ts +9 -0
  80. package/lib/tax-axis/components/clientReport/ClientReportCover.js +39 -0
  81. package/lib/tax-axis/components/clientReport/ClientReportTOC.d.ts +8 -0
  82. package/lib/tax-axis/components/clientReport/ClientReportTOC.js +24 -0
  83. package/lib/tax-axis/components/clientReport/ClientReportToolbar.d.ts +2 -0
  84. package/lib/tax-axis/components/clientReport/ClientReportToolbar.js +6 -0
  85. package/lib/tax-axis/components/clientReport/ETRChart.d.ts +10 -0
  86. package/lib/tax-axis/components/clientReport/ETRChart.js +50 -0
  87. package/lib/tax-axis/components/clientReport/ExecutiveSummary.d.ts +15 -0
  88. package/lib/tax-axis/components/clientReport/ExecutiveSummary.js +73 -0
  89. package/lib/tax-axis/components/clientReport/FootnoteBlock.d.ts +11 -0
  90. package/lib/tax-axis/components/clientReport/FootnoteBlock.js +34 -0
  91. package/lib/tax-axis/components/clientReport/ImplementationRoadmap.d.ts +26 -0
  92. package/lib/tax-axis/components/clientReport/ImplementationRoadmap.js +51 -0
  93. package/lib/tax-axis/components/clientReport/ImplementationTimelineChart.d.ts +10 -0
  94. package/lib/tax-axis/components/clientReport/ImplementationTimelineChart.js +49 -0
  95. package/lib/tax-axis/components/clientReport/Methodology.d.ts +10 -0
  96. package/lib/tax-axis/components/clientReport/Methodology.js +40 -0
  97. package/lib/tax-axis/components/clientReport/QuarterlyCashChart.d.ts +10 -0
  98. package/lib/tax-axis/components/clientReport/QuarterlyCashChart.js +56 -0
  99. package/lib/tax-axis/components/clientReport/RecommendedStrategies.d.ts +13 -0
  100. package/lib/tax-axis/components/clientReport/RecommendedStrategies.js +51 -0
  101. package/lib/tax-axis/components/clientReport/SavingsStackChart.d.ts +10 -0
  102. package/lib/tax-axis/components/clientReport/SavingsStackChart.js +66 -0
  103. package/lib/tax-axis/components/clientReport/SectionOpener.d.ts +11 -0
  104. package/lib/tax-axis/components/clientReport/SectionOpener.js +20 -0
  105. package/lib/tax-axis/components/clientReport/Sidebar.d.ts +8 -0
  106. package/lib/tax-axis/components/clientReport/Sidebar.js +37 -0
  107. package/lib/tax-axis/components/clientReport/StrategyCard.d.ts +16 -0
  108. package/lib/tax-axis/components/clientReport/StrategyCard.js +63 -0
  109. package/lib/tax-axis/components/clientReport/TaxAxisClientReport.d.ts +9 -0
  110. package/lib/tax-axis/components/clientReport/TaxAxisClientReport.js +125 -0
  111. package/lib/tax-axis/components/clientReport/applyFootnotes.d.ts +12 -0
  112. package/lib/tax-axis/components/clientReport/applyFootnotes.js +43 -0
  113. package/lib/tax-axis/components/clientReport/palette.d.ts +28 -0
  114. package/lib/tax-axis/components/clientReport/palette.js +34 -0
  115. package/lib/tax-axis/components/dashboard/ConfidenceArc.d.ts +7 -0
  116. package/lib/tax-axis/components/dashboard/ConfidenceArc.js +20 -0
  117. package/lib/tax-axis/components/dashboard/DashboardActions.d.ts +13 -0
  118. package/lib/tax-axis/components/dashboard/DashboardActions.js +96 -0
  119. package/lib/tax-axis/components/dashboard/DashboardSummary.d.ts +11 -0
  120. package/lib/tax-axis/components/dashboard/DashboardSummary.js +98 -0
  121. package/lib/tax-axis/components/dashboard/DashboardTopBar.d.ts +10 -0
  122. package/lib/tax-axis/components/dashboard/DashboardTopBar.js +48 -0
  123. package/lib/tax-axis/components/dashboard/StrategyDetailPanel.d.ts +10 -0
  124. package/lib/tax-axis/components/dashboard/StrategyDetailPanel.js +139 -0
  125. package/lib/tax-axis/components/dashboard/StrategyTile.d.ts +10 -0
  126. package/lib/tax-axis/components/dashboard/StrategyTile.js +82 -0
  127. package/lib/tax-axis/components/dashboard/TaxAxisDashboard.d.ts +12 -0
  128. package/lib/tax-axis/components/dashboard/TaxAxisDashboard.js +284 -0
  129. package/lib/tax-axis/components/dashboard/useCountUp.d.ts +1 -0
  130. package/lib/tax-axis/components/dashboard/useCountUp.js +25 -0
  131. package/lib/tax-axis/components/documents/DocumentCard.d.ts +18 -0
  132. package/lib/tax-axis/components/documents/DocumentCard.js +61 -0
  133. package/lib/tax-axis/components/documents/DocumentTier.d.ts +21 -0
  134. package/lib/tax-axis/components/documents/DocumentTier.js +23 -0
  135. package/lib/tax-axis/components/documents/TaxAxisDocuments.d.ts +8 -0
  136. package/lib/tax-axis/components/documents/TaxAxisDocuments.js +157 -0
  137. package/lib/tax-axis/components/extractionReview/DocumentCard.d.ts +17 -0
  138. package/lib/tax-axis/components/extractionReview/DocumentCard.js +105 -0
  139. package/lib/tax-axis/components/extractionReview/FieldRow.d.ts +17 -0
  140. package/lib/tax-axis/components/extractionReview/FieldRow.js +137 -0
  141. package/lib/tax-axis/components/extractionReview/PurposeBlock.d.ts +7 -0
  142. package/lib/tax-axis/components/extractionReview/PurposeBlock.js +18 -0
  143. package/lib/tax-axis/components/extractionReview/RerunFooter.d.ts +8 -0
  144. package/lib/tax-axis/components/extractionReview/RerunFooter.js +60 -0
  145. package/lib/tax-axis/components/extractionReview/TaxAxisExtractionReview.d.ts +11 -0
  146. package/lib/tax-axis/components/extractionReview/TaxAxisExtractionReview.js +186 -0
  147. package/lib/tax-axis/components/intake/ClientParametersSection.d.ts +7 -0
  148. package/lib/tax-axis/components/intake/ClientParametersSection.js +146 -0
  149. package/lib/tax-axis/components/intake/CpaIntakeQuestionsSection.d.ts +7 -0
  150. package/lib/tax-axis/components/intake/CpaIntakeQuestionsSection.js +93 -0
  151. package/lib/tax-axis/components/intake/IntakeCtaCards.d.ts +9 -0
  152. package/lib/tax-axis/components/intake/IntakeCtaCards.js +30 -0
  153. package/lib/tax-axis/components/intake/RefineAnalysisSection.d.ts +7 -0
  154. package/lib/tax-axis/components/intake/RefineAnalysisSection.js +151 -0
  155. package/lib/tax-axis/components/intake/StateMultiSelect.d.ts +7 -0
  156. package/lib/tax-axis/components/intake/StateMultiSelect.js +90 -0
  157. package/lib/tax-axis/components/intake/StrategyRadar.d.ts +7 -0
  158. package/lib/tax-axis/components/intake/StrategyRadar.js +240 -0
  159. package/lib/tax-axis/components/intake/TaxAxisIntake.d.ts +8 -0
  160. package/lib/tax-axis/components/intake/TaxAxisIntake.js +38 -0
  161. package/lib/tax-axis/components/intake/intakeSchema.d.ts +97 -0
  162. package/lib/tax-axis/components/intake/intakeSchema.js +91 -0
  163. package/lib/tax-axis/components/preparerWorkpaper/CalculationTraceAccordion.d.ts +9 -0
  164. package/lib/tax-axis/components/preparerWorkpaper/CalculationTraceAccordion.js +19 -0
  165. package/lib/tax-axis/components/preparerWorkpaper/EngagementHeader.d.ts +9 -0
  166. package/lib/tax-axis/components/preparerWorkpaper/EngagementHeader.js +43 -0
  167. package/lib/tax-axis/components/preparerWorkpaper/Position6694Accordion.d.ts +9 -0
  168. package/lib/tax-axis/components/preparerWorkpaper/Position6694Accordion.js +25 -0
  169. package/lib/tax-axis/components/preparerWorkpaper/PriorityGroup.d.ts +14 -0
  170. package/lib/tax-axis/components/preparerWorkpaper/PriorityGroup.js +20 -0
  171. package/lib/tax-axis/components/preparerWorkpaper/Section6694Summary.d.ts +9 -0
  172. package/lib/tax-axis/components/preparerWorkpaper/Section6694Summary.js +36 -0
  173. package/lib/tax-axis/components/preparerWorkpaper/SourceDocumentsAccordion.d.ts +9 -0
  174. package/lib/tax-axis/components/preparerWorkpaper/SourceDocumentsAccordion.js +20 -0
  175. package/lib/tax-axis/components/preparerWorkpaper/StrategyWorkpaperCard.d.ts +14 -0
  176. package/lib/tax-axis/components/preparerWorkpaper/StrategyWorkpaperCard.js +53 -0
  177. package/lib/tax-axis/components/preparerWorkpaper/TaxAxisPreparerWorkpaper.d.ts +9 -0
  178. package/lib/tax-axis/components/preparerWorkpaper/TaxAxisPreparerWorkpaper.js +175 -0
  179. package/lib/tax-axis/components/presentationMode/TaxAxisPresentationMode.d.ts +7 -0
  180. package/lib/tax-axis/components/presentationMode/TaxAxisPresentationMode.js +245 -0
  181. package/lib/tax-axis/components/processing/ProcessingStages.d.ts +7 -0
  182. package/lib/tax-axis/components/processing/ProcessingStages.js +17 -0
  183. package/lib/tax-axis/components/processing/TaxAxisProcessing.d.ts +7 -0
  184. package/lib/tax-axis/components/processing/TaxAxisProcessing.js +105 -0
  185. package/lib/tax-axis/components/prospectReport/ProspectCover.d.ts +10 -0
  186. package/lib/tax-axis/components/prospectReport/ProspectCover.js +47 -0
  187. package/lib/tax-axis/components/prospectReport/ProspectDocuments.d.ts +9 -0
  188. package/lib/tax-axis/components/prospectReport/ProspectDocuments.js +31 -0
  189. package/lib/tax-axis/components/prospectReport/ProspectNextSteps.d.ts +13 -0
  190. package/lib/tax-axis/components/prospectReport/ProspectNextSteps.js +37 -0
  191. package/lib/tax-axis/components/prospectReport/ProspectPrintView.d.ts +26 -0
  192. package/lib/tax-axis/components/prospectReport/ProspectPrintView.js +183 -0
  193. package/lib/tax-axis/components/prospectReport/ProspectStrategyCard.d.ts +10 -0
  194. package/lib/tax-axis/components/prospectReport/ProspectStrategyCard.js +52 -0
  195. package/lib/tax-axis/components/prospectReport/SampleAnalysisPreview.d.ts +7 -0
  196. package/lib/tax-axis/components/prospectReport/SampleAnalysisPreview.js +120 -0
  197. package/lib/tax-axis/components/prospectReport/TaxAxisProspectReport.d.ts +9 -0
  198. package/lib/tax-axis/components/prospectReport/TaxAxisProspectReport.js +173 -0
  199. package/lib/tax-axis/components/prospectReport/TaxPositionGap.d.ts +15 -0
  200. package/lib/tax-axis/components/prospectReport/TaxPositionGap.js +45 -0
  201. package/lib/tax-axis/components/prospectReport/theme.d.ts +26 -0
  202. package/lib/tax-axis/components/prospectReport/theme.js +33 -0
  203. package/lib/tax-axis/components/shared/ReportToolbar.d.ts +12 -0
  204. package/lib/tax-axis/components/shared/ReportToolbar.js +81 -0
  205. package/lib/tax-axis/components/shared/SectionHeader.d.ts +8 -0
  206. package/lib/tax-axis/components/shared/SectionHeader.js +15 -0
  207. package/lib/tax-axis/components/shared/TaxAxisBadge.d.ts +12 -0
  208. package/lib/tax-axis/components/shared/TaxAxisBadge.js +34 -0
  209. package/lib/tax-axis/components/shared/TaxAxisButton.d.ts +12 -0
  210. package/lib/tax-axis/components/shared/TaxAxisButton.js +17 -0
  211. package/lib/tax-axis/components/shared/TaxAxisCard.d.ts +9 -0
  212. package/lib/tax-axis/components/shared/TaxAxisCard.js +13 -0
  213. package/lib/tax-axis/index.d.ts +25 -0
  214. package/lib/tax-axis/index.js +51 -0
  215. package/lib/tax-axis/lib/compute/index.d.ts +8 -0
  216. package/lib/tax-axis/lib/compute/index.js +163 -0
  217. package/lib/tax-axis/lib/data/documents.d.ts +3 -0
  218. package/lib/tax-axis/lib/data/documents.js +33 -0
  219. package/lib/tax-axis/lib/data/extractedData.d.ts +2 -0
  220. package/lib/tax-axis/lib/data/extractedData.js +47 -0
  221. package/lib/tax-axis/lib/data/footnoteData.d.ts +2 -0
  222. package/lib/tax-axis/lib/data/footnoteData.js +48 -0
  223. package/lib/tax-axis/lib/data/index.d.ts +11 -0
  224. package/lib/tax-axis/lib/data/index.js +31 -0
  225. package/lib/tax-axis/lib/data/nextSteps.d.ts +2 -0
  226. package/lib/tax-axis/lib/data/nextSteps.js +35 -0
  227. package/lib/tax-axis/lib/data/sidebarLookup.d.ts +2 -0
  228. package/lib/tax-axis/lib/data/sidebarLookup.js +90 -0
  229. package/lib/tax-axis/lib/data/sourceDescriptions.d.ts +1 -0
  230. package/lib/tax-axis/lib/data/sourceDescriptions.js +32 -0
  231. package/lib/tax-axis/lib/data/states.d.ts +6 -0
  232. package/lib/tax-axis/lib/data/states.js +25 -0
  233. package/lib/tax-axis/lib/data/strategies.d.ts +8 -0
  234. package/lib/tax-axis/lib/data/strategies.js +166 -0
  235. package/lib/tax-axis/lib/data/strategyNarrative.d.ts +3 -0
  236. package/lib/tax-axis/lib/data/strategyNarrative.js +170 -0
  237. package/lib/tax-axis/lib/data/strategyProspect.d.ts +2 -0
  238. package/lib/tax-axis/lib/data/strategyProspect.js +66 -0
  239. package/lib/tax-axis/lib/data/workpaperInteractions.d.ts +1 -0
  240. package/lib/tax-axis/lib/data/workpaperInteractions.js +15 -0
  241. package/lib/tax-axis/lib/types/index.d.ts +183 -0
  242. package/lib/tax-axis/lib/types/index.js +7 -0
  243. package/package.json +68 -67
@@ -102,12 +102,12 @@ const DragDropUpload = ({ onFilesSelected, maxFileSize = 10, acceptedFileTypes =
102
102
  (_a = fileInputRef.current) === null || _a === void 0 ? void 0 : _a.click();
103
103
  };
104
104
  return (react_1.default.createElement(core_1.Box, { className: "w-full" },
105
- react_1.default.createElement(core_1.Box, { onDragEnter: handleDragEnter, onDragOver: handleDragOver, onDragLeave: handleDragLeave, onDrop: handleDrop, className: `
106
- relative border-2 border-dashed rounded-lg p-8 text-center transition-all duration-200
105
+ react_1.default.createElement(core_1.Box, { onDragEnter: handleDragEnter, onDragOver: handleDragOver, onDragLeave: handleDragLeave, onDrop: handleDrop, className: `
106
+ relative border-2 border-dashed rounded-lg p-8 text-center transition-all duration-200
107
107
  ${isDragging
108
108
  ? "border-blue-500 bg-blue-50"
109
- : "border-gray-300 bg-gray-50 hover:border-gray-400"}
110
- ${disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}
109
+ : "border-gray-300 bg-gray-50 hover:border-gray-400"}
110
+ ${disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}
111
111
  `, onClick: !disabled ? handleBrowseClick : undefined },
112
112
  react_1.default.createElement("input", { ref: fileInputRef, type: "file", multiple: true, accept: acceptedFileTypes.join(","), onChange: handleFileInputChange, style: { display: "none" }, disabled: disabled }),
113
113
  react_1.default.createElement(core_1.Box, { className: "flex flex-col items-center justify-center space-y-4" },
@@ -188,6 +188,22 @@ const MultiFileUploadSection = ({ paroDocuments, clientAndProjectsList, uploadEx
188
188
  }, [selectedExpert, clientOptions, isClientPortal]);
189
189
  const hasMultipleProjects = selectedExpertProjects.length > 1;
190
190
  const hasSingleProject = selectedExpertProjects.length === 1;
191
+ // Filtered project options for the selected expert/client
192
+ const filteredProjectOptions = react_1.default.useMemo(() => {
193
+ if (!selectedExpert)
194
+ return [];
195
+ return clientOptions.filter((opt) => {
196
+ var _a, _b;
197
+ const isMatch = isClientPortal
198
+ ? ((_a = opt.freelancer) === null || _a === void 0 ? void 0 : _a.id) === selectedExpert.id
199
+ : ((_b = opt.client) === null || _b === void 0 ? void 0 : _b.id) === selectedExpert.id;
200
+ const projectStatus = opt.status || opt.projectStatus;
201
+ const excludedStatuses = ["complete", "completed", "doa", "churned"];
202
+ const isValidProject = projectStatus &&
203
+ !excludedStatuses.includes(projectStatus.toLowerCase());
204
+ return isMatch && isValidProject;
205
+ });
206
+ }, [selectedExpert, clientOptions, isClientPortal]);
191
207
  // Check if all files have projects assigned (for multi-project experts/clients)
192
208
  const allFilesHaveProjects = react_1.default.useMemo(() => {
193
209
  if (!hasMultipleProjects)
@@ -538,27 +554,7 @@ const MultiFileUploadSection = ({ paroDocuments, clientAndProjectsList, uploadEx
538
554
  });
539
555
  return;
540
556
  }
541
- const filteredOptions = selectedExpert
542
- ? clientOptions.filter((opt) => {
543
- var _a, _b;
544
- const isMatch = isClientPortal
545
- ? ((_a = opt.freelancer) === null || _a === void 0 ? void 0 : _a.id) ===
546
- selectedExpert.id
547
- : ((_b = opt.client) === null || _b === void 0 ? void 0 : _b.id) ===
548
- selectedExpert.id;
549
- const projectStatus = opt.status || opt.projectStatus;
550
- const excludedStatuses = [
551
- "complete",
552
- "completed",
553
- "doa",
554
- "churned",
555
- ];
556
- const isValidProject = projectStatus &&
557
- !excludedStatuses.includes(projectStatus.toLowerCase());
558
- return isMatch && isValidProject;
559
- })
560
- : clientOptions;
561
- const selected = filteredOptions.find((opt) => opt.value === e.target.value);
557
+ const selected = filteredProjectOptions.find((opt) => opt.value === e.target.value);
562
558
  updateItem(item.id, {
563
559
  clientAndProject: selected,
564
560
  });
@@ -568,36 +564,7 @@ const MultiFileUploadSection = ({ paroDocuments, clientAndProjectsList, uploadEx
568
564
  value: "",
569
565
  label: "Which project?",
570
566
  },
571
- ...(selectedExpert
572
- ? clientOptions.filter((opt) => {
573
- var _a, _b;
574
- const isMatch = isClientPortal
575
- ? ((_a = opt.freelancer) === null || _a === void 0 ? void 0 : _a.id) ===
576
- selectedExpert.id
577
- : ((_b = opt.client) === null || _b === void 0 ? void 0 : _b.id) ===
578
- selectedExpert.id;
579
- const projectStatus = opt.status || opt.projectStatus;
580
- const excludedStatuses = [
581
- "complete",
582
- "completed",
583
- "doa",
584
- "churned",
585
- ];
586
- const isValidProject = projectStatus &&
587
- !excludedStatuses.includes(projectStatus.toLowerCase());
588
- return isMatch && isValidProject;
589
- })
590
- : clientOptions.filter((opt) => {
591
- const projectStatus = opt.status || opt.projectStatus;
592
- const excludedStatuses = [
593
- "complete",
594
- "completed",
595
- "doa",
596
- "churned",
597
- ];
598
- return (projectStatus &&
599
- !excludedStatuses.includes(projectStatus.toLowerCase()));
600
- })),
567
+ ...filteredProjectOptions,
601
568
  ], disabled: item.status === "uploading" ||
602
569
  item.status === "success" ||
603
570
  !selectedExpert, required: false }))),
@@ -1,6 +1,6 @@
1
- interface UploadFilesButtonProps {
2
- onFileSelect: (file: File) => void;
3
- isLoading?: boolean;
4
- }
5
- export declare const UploadFilesButton: ({ onFileSelect, isLoading, }: UploadFilesButtonProps) => JSX.Element;
6
- export {};
1
+ interface UploadFilesButtonProps {
2
+ onFileSelect: (file: File) => void;
3
+ isLoading?: boolean;
4
+ }
5
+ export declare const UploadFilesButton: ({ onFileSelect, isLoading, }: UploadFilesButtonProps) => JSX.Element;
6
+ export {};
@@ -1,29 +1,29 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.UploadFilesButton = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const base_ui_1 = require("@paro.io/base-ui");
9
- const react_2 = require("react");
10
- const UploadFilesButton = ({ onFileSelect, isLoading, }) => {
11
- const fileInputRef = (0, react_2.useRef)(null);
12
- const handleClick = () => {
13
- var _a;
14
- (_a = fileInputRef.current) === null || _a === void 0 ? void 0 : _a.click();
15
- };
16
- const handleFileChange = (event) => {
17
- var _a;
18
- const file = (_a = event.target.files) === null || _a === void 0 ? void 0 : _a[0];
19
- if (file) {
20
- onFileSelect(file);
21
- }
22
- // Reset input value to allow uploading the same file again
23
- event.target.value = '';
24
- };
25
- return (react_1.default.createElement("div", null,
26
- react_1.default.createElement("input", { type: "file", ref: fileInputRef, onChange: handleFileChange, className: "hidden", accept: ".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx" }),
27
- react_1.default.createElement(base_ui_1.Button, { onClick: handleClick, disabled: isLoading })));
28
- };
29
- exports.UploadFilesButton = UploadFilesButton;
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.UploadFilesButton = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const base_ui_1 = require("@paro.io/base-ui");
9
+ const react_2 = require("react");
10
+ const UploadFilesButton = ({ onFileSelect, isLoading, }) => {
11
+ const fileInputRef = (0, react_2.useRef)(null);
12
+ const handleClick = () => {
13
+ var _a;
14
+ (_a = fileInputRef.current) === null || _a === void 0 ? void 0 : _a.click();
15
+ };
16
+ const handleFileChange = (event) => {
17
+ var _a;
18
+ const file = (_a = event.target.files) === null || _a === void 0 ? void 0 : _a[0];
19
+ if (file) {
20
+ onFileSelect(file);
21
+ }
22
+ // Reset input value to allow uploading the same file again
23
+ event.target.value = '';
24
+ };
25
+ return (react_1.default.createElement("div", null,
26
+ react_1.default.createElement("input", { type: "file", ref: fileInputRef, onChange: handleFileChange, className: "hidden", accept: ".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx" }),
27
+ react_1.default.createElement(base_ui_1.Button, { onClick: handleClick, disabled: isLoading })));
28
+ };
29
+ exports.UploadFilesButton = UploadFilesButton;
@@ -1,52 +1,52 @@
1
- import React from 'react';
2
- export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"tooltip">;
3
- interface ActiveProjectCardProps {
4
- project: any;
5
- projectsData: any;
6
- expertName: string;
7
- freelancerId: number;
8
- freelancerEmail: string;
9
- isAuthenticated: boolean;
10
- activeProject?: boolean;
11
- adhocProject?: boolean;
12
- upcomingProject?: boolean;
13
- selectedTab: number;
14
- projectTagsMap?: any;
15
- updateProjectStatusMutation: any;
16
- GetAllProjectIrprDetailsForFreelancerDocument: any;
17
- updateParoProjectTagsMutation: any;
18
- GetParoProjectsDocument: any;
19
- updateProjectTagReviewStatusMutation: any;
20
- getSowLazyQuery: any;
21
- createChangeRequestMutation: any;
22
- createOrUpdateRatingRequestMutation: any;
23
- updateProjectTaskMutation: any;
24
- submitProjectHoursMutation: any;
25
- getAuth0Roles: any;
26
- user: any;
27
- internalPortal?: boolean;
28
- csmUserGroup?: boolean;
29
- clientPortal?: boolean;
30
- signedSow?: boolean;
31
- }
32
- interface unAuthProps {
33
- updateProjectStatus?: any;
34
- updateProjectTags?: any;
35
- sendParoSupportEmail?: any;
36
- submitProjectHoursLambda?: any;
37
- updateProjectTask?: any;
38
- createChangeRequest?: any;
39
- }
40
- export declare const CheckItem: ({ checked, text }: any) => React.JSX.Element;
41
- export declare const getAllProjectRecommendationData: ({ projectData }: any) => {
42
- minFloorHours: any;
43
- maxFloorHours: any;
44
- loggedHours: string | number;
45
- weeklyHoursLogged: any;
46
- hoursPerWeek: number | false;
47
- minFloorName: string;
48
- hoursToComplete: number | false;
49
- remainingWeeks: number;
50
- };
51
- export declare const ActiveProjectCard: ({ project, projectsData, expertName, freelancerId, freelancerEmail, isAuthenticated, activeProject, adhocProject, upcomingProject, selectedTab, projectTagsMap, updateProjectStatusMutation, GetAllProjectIrprDetailsForFreelancerDocument, updateParoProjectTagsMutation, GetParoProjectsDocument, updateProjectTagReviewStatusMutation, updateProjectStatus, updateProjectTags, getSowLazyQuery, sendParoSupportEmail, createChangeRequestMutation, createChangeRequest, createOrUpdateRatingRequestMutation, updateProjectTaskMutation, updateProjectTask, submitProjectHoursMutation, getAuth0Roles, submitProjectHoursLambda, user, internalPortal, csmUserGroup, clientPortal, signedSow, }: ActiveProjectCardProps & unAuthProps) => JSX.Element;
52
- export {};
1
+ import React from 'react';
2
+ export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"tooltip">;
3
+ interface ActiveProjectCardProps {
4
+ project: any;
5
+ projectsData: any;
6
+ expertName: string;
7
+ freelancerId: number;
8
+ freelancerEmail: string;
9
+ isAuthenticated: boolean;
10
+ activeProject?: boolean;
11
+ adhocProject?: boolean;
12
+ upcomingProject?: boolean;
13
+ selectedTab: number;
14
+ projectTagsMap?: any;
15
+ updateProjectStatusMutation: any;
16
+ GetAllProjectIrprDetailsForFreelancerDocument: any;
17
+ updateParoProjectTagsMutation: any;
18
+ GetParoProjectsDocument: any;
19
+ updateProjectTagReviewStatusMutation: any;
20
+ getSowLazyQuery: any;
21
+ createChangeRequestMutation: any;
22
+ createOrUpdateRatingRequestMutation: any;
23
+ updateProjectTaskMutation: any;
24
+ submitProjectHoursMutation: any;
25
+ getAuth0Roles: any;
26
+ user: any;
27
+ internalPortal?: boolean;
28
+ csmUserGroup?: boolean;
29
+ clientPortal?: boolean;
30
+ signedSow?: boolean;
31
+ }
32
+ interface unAuthProps {
33
+ updateProjectStatus?: any;
34
+ updateProjectTags?: any;
35
+ sendParoSupportEmail?: any;
36
+ submitProjectHoursLambda?: any;
37
+ updateProjectTask?: any;
38
+ createChangeRequest?: any;
39
+ }
40
+ export declare const CheckItem: ({ checked, text }: any) => React.JSX.Element;
41
+ export declare const getAllProjectRecommendationData: ({ projectData }: any) => {
42
+ minFloorHours: any;
43
+ maxFloorHours: any;
44
+ loggedHours: string | number;
45
+ weeklyHoursLogged: any;
46
+ hoursPerWeek: number | false;
47
+ minFloorName: string;
48
+ hoursToComplete: number | false;
49
+ remainingWeeks: number;
50
+ };
51
+ export declare const ActiveProjectCard: ({ project, projectsData, expertName, freelancerId, freelancerEmail, isAuthenticated, activeProject, adhocProject, upcomingProject, selectedTab, projectTagsMap, updateProjectStatusMutation, GetAllProjectIrprDetailsForFreelancerDocument, updateParoProjectTagsMutation, GetParoProjectsDocument, updateProjectTagReviewStatusMutation, updateProjectStatus, updateProjectTags, getSowLazyQuery, sendParoSupportEmail, createChangeRequestMutation, createChangeRequest, createOrUpdateRatingRequestMutation, updateProjectTaskMutation, updateProjectTask, submitProjectHoursMutation, getAuth0Roles, submitProjectHoursLambda, user, internalPortal, csmUserGroup, clientPortal, signedSow, }: ActiveProjectCardProps & unAuthProps) => JSX.Element;
52
+ export {};