@gusto/embedded-react-sdk 0.47.0 → 0.48.0

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 (850) hide show
  1. package/CHANGELOG.md +151 -0
  2. package/dist/components/Common/ActionsLayout/ActionsLayout.d.ts +1 -0
  3. package/dist/components/Common/ActionsLayout/ActionsLayout.js.map +1 -1
  4. package/dist/components/Common/Alert/Alert.d.ts +2 -0
  5. package/dist/components/Common/DataView/DataCards/DataCards.d.ts +2 -0
  6. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  7. package/dist/components/Common/DataView/DataTable/DataTable.d.ts +2 -0
  8. package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
  9. package/dist/components/Common/DataView/DataView.d.ts +2 -0
  10. package/dist/components/Common/DataView/DataView.js.map +1 -1
  11. package/dist/components/Common/DataView/useDataView.d.ts +4 -0
  12. package/dist/components/Common/DataView/useDataView.js.map +1 -1
  13. package/dist/components/Common/DataView/useSelectionState.d.ts +1 -0
  14. package/dist/components/Common/DataView/useSelectionState.js.map +1 -1
  15. package/dist/components/Common/DateRangeFilter/DateRangeFilter.d.ts +1 -0
  16. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js.map +1 -1
  17. package/dist/components/Common/DetailViewLayout/DetailViewLayout.d.ts +1 -0
  18. package/dist/components/Common/DetailViewLayout/DetailViewLayout.js.map +1 -1
  19. package/dist/components/Common/DetailViewLayout/DetailViewLayoutTypes.d.ts +1 -0
  20. package/dist/components/Common/DocumentList/DocumentList.d.ts +6 -0
  21. package/dist/components/Common/DocumentList/DocumentList.js.map +1 -1
  22. package/dist/components/Common/DocumentViewer/DocumentViewer.d.ts +1 -0
  23. package/dist/components/Common/DocumentViewer/DocumentViewer.js.map +1 -1
  24. package/dist/components/Common/EmptyData/EmptyData.d.ts +1 -0
  25. package/dist/components/Common/EmptyData/EmptyData.js.map +1 -1
  26. package/dist/components/Common/FadeIn/FadeIn.d.ts +1 -0
  27. package/dist/components/Common/FadeIn/FadeIn.js.map +1 -1
  28. package/dist/components/Common/FieldCaption/FieldCaption.d.ts +8 -0
  29. package/dist/components/Common/FieldCaption/FieldCaption.js.map +1 -1
  30. package/dist/components/Common/FieldDescription/FieldDescription.d.ts +5 -0
  31. package/dist/components/Common/FieldDescription/FieldDescription.js.map +1 -1
  32. package/dist/components/Common/FieldErrorMessage/FieldErrorMessage.d.ts +5 -0
  33. package/dist/components/Common/FieldErrorMessage/FieldErrorMessage.js.map +1 -1
  34. package/dist/components/Common/FieldLayout/FieldLayout.d.ts +5 -0
  35. package/dist/components/Common/FieldLayout/FieldLayout.js.map +1 -1
  36. package/dist/components/Common/FieldLayout/FieldLayoutTypes.d.ts +15 -0
  37. package/dist/components/Common/Fieldset/Fieldset.d.ts +2 -0
  38. package/dist/components/Common/Fieldset/Fieldset.js.map +1 -1
  39. package/dist/components/Common/Flex/Flex.d.ts +4 -0
  40. package/dist/components/Common/Flex/Flex.js.map +1 -1
  41. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.d.ts +20 -0
  42. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js.map +1 -1
  43. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbsTypes.d.ts +33 -7
  44. package/dist/components/Common/FlowBreadcrumbs/breadcrumbTransitionHelpers.d.ts +16 -0
  45. package/dist/components/Common/FlowBreadcrumbs/breadcrumbTransitionHelpers.js.map +1 -1
  46. package/dist/components/Common/Form/Form.d.ts +2 -0
  47. package/dist/components/Common/Form/Form.js.map +1 -1
  48. package/dist/components/Common/Grid/Grid.d.ts +2 -0
  49. package/dist/components/Common/Grid/Grid.js.map +1 -1
  50. package/dist/components/Common/HamburgerMenu/HamburgerMenu.d.ts +7 -0
  51. package/dist/components/Common/HamburgerMenu/HamburgerMenu.js.map +1 -1
  52. package/dist/components/Common/HamburgerMenu/HamburgerMenuTypes.d.ts +11 -0
  53. package/dist/components/Common/HorizontalFieldLayout/HorizontalFieldLayout.d.ts +7 -0
  54. package/dist/components/Common/HorizontalFieldLayout/HorizontalFieldLayout.js.map +1 -1
  55. package/dist/components/Common/HorizontalFieldLayout/HorizontalFieldLayoutTypes.d.ts +14 -0
  56. package/dist/components/Common/InlineSpinner/InlineSpinner.d.ts +1 -0
  57. package/dist/components/Common/InlineSpinner/InlineSpinner.js.map +1 -1
  58. package/dist/components/Common/InternalError/InternalError.d.ts +1 -0
  59. package/dist/components/Common/InternalError/InternalError.js.map +1 -1
  60. package/dist/components/Common/Loading/Loading.d.ts +2 -0
  61. package/dist/components/Common/Loading/Loading.js.map +1 -1
  62. package/dist/components/Common/OnboardingStatusBadge/index.d.ts +3 -0
  63. package/dist/components/Common/OnboardingStatusBadge/index.js.map +1 -1
  64. package/dist/components/Common/ReorderableList/DropZone.d.ts +1 -0
  65. package/dist/components/Common/ReorderableList/DropZone.js.map +1 -1
  66. package/dist/components/Common/ReorderableList/ReorderableItem.d.ts +1 -3
  67. package/dist/components/Common/ReorderableList/ReorderableItem.js.map +1 -1
  68. package/dist/components/Common/ReorderableList/ReorderableList.d.ts +1 -0
  69. package/dist/components/Common/ReorderableList/ReorderableList.js.map +1 -1
  70. package/dist/components/Common/ReorderableList/ReorderableListTypes.d.ts +4 -0
  71. package/dist/components/Common/ReorderableList/constants.d.ts +1 -3
  72. package/dist/components/Common/ReorderableList/constants.js.map +1 -1
  73. package/dist/components/Common/RequirementsList/RequirementsList.d.ts +1 -0
  74. package/dist/components/Common/RequirementsList/RequirementsList.js.map +1 -1
  75. package/dist/components/Common/TaxInputs/TaxInputs.d.ts +7 -0
  76. package/dist/components/Common/TaxInputs/TaxInputs.js.map +1 -1
  77. package/dist/components/Common/Toast/Toast.d.ts +1 -0
  78. package/dist/components/Common/VisuallyHidden/VisuallyHidden.d.ts +2 -0
  79. package/dist/components/Common/VisuallyHidden/VisuallyHidden.js.map +1 -1
  80. package/dist/components/Company/AssignSignatory/AssignSignatory.js +10 -7
  81. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  82. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +4 -3
  83. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  84. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +1 -1
  85. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +9 -6
  86. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  87. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +16 -15
  88. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  89. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -5
  90. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  91. package/dist/components/Company/AssignSignatory/Head.js +9 -8
  92. package/dist/components/Company/AssignSignatory/Head.js.map +1 -1
  93. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +1 -1
  94. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +8 -5
  95. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  96. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +21 -20
  97. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  98. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -5
  99. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  100. package/dist/components/Company/AssignSignatory/TitleSelect.js +4 -2
  101. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  102. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -7
  103. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  104. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +9 -8
  105. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  106. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +11 -9
  107. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  108. package/dist/components/Company/BankAccount/BankAccountForm/Head.js +3 -2
  109. package/dist/components/Company/BankAccount/BankAccountForm/Head.js.map +1 -1
  110. package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -5
  111. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  112. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +1 -1
  113. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +1 -1
  114. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +6 -4
  115. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  116. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +1 -1
  117. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +14 -11
  118. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  119. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -5
  120. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  121. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +8 -7
  122. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  123. package/dist/components/Company/FederalTaxes/Actions.js +1 -1
  124. package/dist/components/Company/FederalTaxes/FederalTaxes.js +10 -7
  125. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  126. package/dist/components/Company/FederalTaxes/Form.js +5 -5
  127. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  128. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +8 -10
  129. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  130. package/dist/components/Company/Industry/Actions.js +1 -1
  131. package/dist/components/Company/Industry/Context.js +6 -8
  132. package/dist/components/Company/Industry/Context.js.map +1 -1
  133. package/dist/components/Company/Industry/Edit.js +6 -5
  134. package/dist/components/Company/Industry/Edit.js.map +1 -1
  135. package/dist/components/Company/Industry/IndustrySelect.js +8 -6
  136. package/dist/components/Company/Industry/IndustrySelect.js.map +1 -1
  137. package/dist/components/Company/Locations/LocationForm/Actions.js +1 -1
  138. package/dist/components/Company/Locations/LocationForm/Form.js +6 -4
  139. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  140. package/dist/components/Company/Locations/LocationForm/LocationForm.js +17 -14
  141. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  142. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -5
  143. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  144. package/dist/components/Company/Locations/LocationsList/Actions.js +1 -1
  145. package/dist/components/Company/Locations/LocationsList/List.js +11 -12
  146. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  147. package/dist/components/Company/Locations/LocationsList/LocationsList.js +12 -9
  148. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  149. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -5
  150. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  151. package/dist/components/Company/OnboardingOverview/Completed.js +6 -5
  152. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  153. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +9 -8
  154. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  155. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +5 -2
  156. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  157. package/dist/components/Company/OnboardingOverview/context.js +3 -5
  158. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  159. package/dist/components/Company/PaySchedule/PayScheduleList.js +8 -8
  160. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +1 -1
  161. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -5
  162. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  163. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +1 -1
  164. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +3 -2
  165. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  166. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -5
  167. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  168. package/dist/components/Contractor/Address/Address.js +5 -2
  169. package/dist/components/Contractor/Address/Address.js.map +1 -1
  170. package/dist/components/Contractor/Address/Form.js +8 -6
  171. package/dist/components/Contractor/Address/Form.js.map +1 -1
  172. package/dist/components/Contractor/Address/Head.js +5 -4
  173. package/dist/components/Contractor/Address/Head.js.map +1 -1
  174. package/dist/components/Contractor/Address/useAddress.js +5 -7
  175. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  176. package/dist/components/Contractor/ContractorList/index.js +4 -4
  177. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +4 -2
  178. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  179. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +4 -2
  180. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  181. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +10 -10
  182. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentFormSchema.d.ts +2 -2
  183. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +3 -2
  184. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  185. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +15 -15
  186. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +4 -3
  187. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  188. package/dist/components/Contractor/Profile/useContractorProfile.d.ts +6 -6
  189. package/dist/components/Contractor/Submit/Submit.js +3 -2
  190. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  191. package/dist/components/Contractor/exports/contractorManagement.d.ts +6 -0
  192. package/dist/components/Contractor/exports/contractorManagement.js +15 -0
  193. package/dist/components/Contractor/exports/contractorManagement.js.map +1 -0
  194. package/dist/components/Employee/Compensation/management/Compensation.d.ts +35 -0
  195. package/dist/components/Employee/Compensation/management/Compensation.js.map +1 -1
  196. package/dist/components/Employee/Compensation/management/CompensationAddAnotherJobForm/CompensationAddAnotherJobForm.d.ts +23 -3
  197. package/dist/components/Employee/Compensation/management/CompensationAddAnotherJobForm/CompensationAddAnotherJobForm.js.map +1 -1
  198. package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.d.ts +21 -10
  199. package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.js.map +1 -1
  200. package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.d.ts +24 -7
  201. package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.js +18 -18
  202. package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.js.map +1 -1
  203. package/dist/components/Employee/Compensation/management/CompensationCard/index.d.ts +0 -1
  204. package/dist/components/Employee/Compensation/management/CompensationComponents.d.ts +7 -1
  205. package/dist/components/Employee/Compensation/management/CompensationComponents.js.map +1 -1
  206. package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.d.ts +27 -15
  207. package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.js.map +1 -1
  208. package/dist/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.d.ts +12 -0
  209. package/dist/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.js.map +1 -1
  210. package/dist/components/Employee/Compensation/management/CompensationEditPendingJobForm/CompensationEditPendingJobForm.d.ts +12 -0
  211. package/dist/components/Employee/Compensation/management/CompensationEditPendingJobForm/CompensationEditPendingJobForm.js.map +1 -1
  212. package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.d.ts +3 -0
  213. package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.js +3 -2
  214. package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.js.map +1 -1
  215. package/dist/components/Employee/Compensation/management/compensationStateMachine.d.ts +1 -0
  216. package/dist/components/Employee/Compensation/management/compensationStateMachine.js.map +1 -1
  217. package/dist/components/Employee/Compensation/management/useManagementCompensationDictionary.d.ts +2 -0
  218. package/dist/components/Employee/Compensation/management/useManagementCompensationDictionary.js.map +1 -1
  219. package/dist/components/Employee/Compensation/onboarding/Compensation.d.ts +61 -0
  220. package/dist/components/Employee/Compensation/onboarding/Compensation.js.map +1 -1
  221. package/dist/components/Employee/Compensation/onboarding/CompensationFlowComponents.d.ts +5 -0
  222. package/dist/components/Employee/Compensation/onboarding/CompensationFlowComponents.js.map +1 -1
  223. package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.d.ts +32 -9
  224. package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.js.map +1 -1
  225. package/dist/components/Employee/Compensation/onboarding/EditCompensation/index.d.ts +1 -2
  226. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsList.d.ts +3 -0
  227. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsList.js.map +1 -1
  228. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.d.ts +9 -0
  229. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.js +7 -7
  230. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.js.map +1 -1
  231. package/dist/components/Employee/Compensation/onboarding/JobsList/index.d.ts +1 -4
  232. package/dist/components/Employee/Compensation/onboarding/compensationStateMachine.d.ts +1 -0
  233. package/dist/components/Employee/Compensation/onboarding/compensationStateMachine.js.map +1 -1
  234. package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.d.ts +5 -0
  235. package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.js +3 -2
  236. package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.js.map +1 -1
  237. package/dist/components/Employee/Compensation/shared/PendingChangesReviewModal.d.ts +2 -0
  238. package/dist/components/Employee/Compensation/shared/PendingChangesReviewModal.js.map +1 -1
  239. package/dist/components/Employee/Compensation/shared/derivePrimaryFlsaStatus.d.ts +2 -0
  240. package/dist/components/Employee/Compensation/shared/derivePrimaryFlsaStatus.js.map +1 -1
  241. package/dist/components/Employee/Compensation/shared/getPendingCompensationChanges.d.ts +4 -0
  242. package/dist/components/Employee/Compensation/shared/getPendingCompensationChanges.js.map +1 -1
  243. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.d.ts +98 -0
  244. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js.map +1 -1
  245. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.d.ts +168 -0
  246. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js +4 -4
  247. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js.map +1 -1
  248. package/dist/components/Employee/Compensation/shared/useCompensationForm/index.d.ts +1 -0
  249. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.d.ts +153 -6
  250. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js.map +1 -1
  251. package/dist/components/Employee/Compensation/shared/useCompensationManagement/index.d.ts +1 -1
  252. package/dist/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.d.ts +19 -0
  253. package/dist/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.js.map +1 -1
  254. package/dist/components/Employee/Compensation/shared/useJobForm/fields.d.ts +101 -0
  255. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js +10 -10
  256. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js.map +1 -1
  257. package/dist/components/Employee/Compensation/shared/useJobForm/index.d.ts +1 -0
  258. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.d.ts +75 -0
  259. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.js.map +1 -1
  260. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.d.ts +137 -8
  261. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js.map +1 -1
  262. package/dist/components/Employee/Compensation/shared/usePendingChangeDetailRenderer.d.ts +2 -0
  263. package/dist/components/Employee/Compensation/shared/usePendingChangeDetailRenderer.js.map +1 -1
  264. package/dist/components/Employee/Dashboard/BasicDetailsView.d.ts +18 -4
  265. package/dist/components/Employee/Dashboard/BasicDetailsView.js.map +1 -1
  266. package/dist/components/Employee/Dashboard/Dashboard.d.ts +3 -0
  267. package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -1
  268. package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +21 -1
  269. package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -1
  270. package/dist/components/Employee/Dashboard/DashboardFlow.d.ts +116 -0
  271. package/dist/components/Employee/Dashboard/DashboardFlow.js.map +1 -1
  272. package/dist/components/Employee/Dashboard/JobAndPayView.d.ts +20 -0
  273. package/dist/components/Employee/Dashboard/JobAndPayView.js.map +1 -1
  274. package/dist/components/Employee/Dashboard/TaxesView.d.ts +36 -3
  275. package/dist/components/Employee/Dashboard/TaxesView.js.map +1 -1
  276. package/dist/components/Employee/Dashboard/dashboardStateMachine.d.ts +1 -0
  277. package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -1
  278. package/dist/components/Employee/Dashboard/index.d.ts +0 -6
  279. package/dist/components/Employee/Deductions/management/Deductions.d.ts +30 -0
  280. package/dist/components/Employee/Deductions/management/Deductions.js.map +1 -1
  281. package/dist/components/Employee/Deductions/management/DeductionsCard/DeductionsCard.d.ts +21 -8
  282. package/dist/components/Employee/Deductions/management/DeductionsCard/DeductionsCard.js +16 -16
  283. package/dist/components/Employee/Deductions/management/DeductionsCard/DeductionsCard.js.map +1 -1
  284. package/dist/components/Employee/Deductions/management/DeductionsComponents.d.ts +5 -1
  285. package/dist/components/Employee/Deductions/management/DeductionsComponents.js.map +1 -1
  286. package/dist/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.d.ts +21 -7
  287. package/dist/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.js.map +1 -1
  288. package/dist/components/Employee/Deductions/management/DeductionsEditForm/useFormDictionary.d.ts +2 -0
  289. package/dist/components/Employee/Deductions/management/DeductionsEditForm/useFormDictionary.js.map +1 -1
  290. package/dist/components/Employee/Deductions/management/deductionsStateMachine.d.ts +1 -0
  291. package/dist/components/Employee/Deductions/management/deductionsStateMachine.js.map +1 -1
  292. package/dist/components/Employee/Deductions/onboarding/Deductions.d.ts +45 -0
  293. package/dist/components/Employee/Deductions/onboarding/Deductions.js.map +1 -1
  294. package/dist/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.d.ts +2 -0
  295. package/dist/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.js +12 -12
  296. package/dist/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.js.map +1 -1
  297. package/dist/components/Employee/Deductions/onboarding/IncludeDeductions/IncludeDeductions.d.ts +2 -0
  298. package/dist/components/Employee/Deductions/onboarding/IncludeDeductions/IncludeDeductions.js +6 -5
  299. package/dist/components/Employee/Deductions/onboarding/IncludeDeductions/IncludeDeductions.js.map +1 -1
  300. package/dist/components/Employee/Deductions/onboarding/deductionsContextualComponents.d.ts +5 -0
  301. package/dist/components/Employee/Deductions/onboarding/deductionsContextualComponents.js.map +1 -1
  302. package/dist/components/Employee/Deductions/onboarding/stateMachine.d.ts +1 -0
  303. package/dist/components/Employee/Deductions/onboarding/stateMachine.js.map +1 -1
  304. package/dist/components/Employee/Deductions/onboarding/useFormDictionary.d.ts +2 -0
  305. package/dist/components/Employee/Deductions/onboarding/useFormDictionary.js.map +1 -1
  306. package/dist/components/Employee/Deductions/shared/DeductionsForm/ChildSupportFormView.d.ts +1 -0
  307. package/dist/components/Employee/Deductions/shared/DeductionsForm/ChildSupportFormView.js +7 -6
  308. package/dist/components/Employee/Deductions/shared/DeductionsForm/ChildSupportFormView.js.map +1 -1
  309. package/dist/components/Employee/Deductions/shared/DeductionsForm/DeductionsForm.d.ts +7 -0
  310. package/dist/components/Employee/Deductions/shared/DeductionsForm/DeductionsForm.js.map +1 -1
  311. package/dist/components/Employee/Deductions/shared/DeductionsForm/StandardDeductionForm.d.ts +1 -0
  312. package/dist/components/Employee/Deductions/shared/DeductionsForm/StandardDeductionForm.js +15 -14
  313. package/dist/components/Employee/Deductions/shared/DeductionsForm/StandardDeductionForm.js.map +1 -1
  314. package/dist/components/Employee/Deductions/shared/DeductionsForm/index.d.ts +1 -1
  315. package/dist/components/Employee/Deductions/shared/DeleteDeductionDialog.d.ts +2 -0
  316. package/dist/components/Employee/Deductions/shared/DeleteDeductionDialog.js.map +1 -1
  317. package/dist/components/Employee/Deductions/shared/formatDeductionAmount.d.ts +2 -0
  318. package/dist/components/Employee/Deductions/shared/formatDeductionAmount.js.map +1 -1
  319. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.d.ts +38 -5
  320. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.js.map +1 -1
  321. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.d.ts +207 -0
  322. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.js +8 -8
  323. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.js.map +1 -1
  324. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/index.d.ts +3 -2
  325. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.d.ts +129 -3
  326. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.js.map +1 -1
  327. package/dist/components/Employee/Deductions/shared/useDeductionForm/deductionFormSchema.d.ts +29 -1
  328. package/dist/components/Employee/Deductions/shared/useDeductionForm/deductionFormSchema.js.map +1 -1
  329. package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.d.ts +158 -0
  330. package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.js +4 -4
  331. package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.js.map +1 -1
  332. package/dist/components/Employee/Deductions/shared/useDeductionForm/index.d.ts +3 -2
  333. package/dist/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.d.ts +131 -4
  334. package/dist/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.js.map +1 -1
  335. package/dist/components/Employee/Deductions/shared/useDeductionsList.d.ts +6 -1
  336. package/dist/components/Employee/Deductions/shared/useDeductionsList.js.map +1 -1
  337. package/dist/components/Employee/Deductions/shared/useDeleteDeduction.d.ts +2 -0
  338. package/dist/components/Employee/Deductions/shared/useDeleteDeduction.js.map +1 -1
  339. package/dist/components/Employee/Documents/management/DocumentManager.d.ts +3 -0
  340. package/dist/components/Employee/Documents/management/DocumentManager.js +7 -6
  341. package/dist/components/Employee/Documents/management/DocumentManager.js.map +1 -1
  342. package/dist/components/Employee/Documents/management/Documents.d.ts +24 -0
  343. package/dist/components/Employee/Documents/management/Documents.js.map +1 -1
  344. package/dist/components/Employee/Documents/management/DocumentsCard/DocumentsCard.d.ts +17 -7
  345. package/dist/components/Employee/Documents/management/DocumentsCard/DocumentsCard.js +15 -14
  346. package/dist/components/Employee/Documents/management/DocumentsCard/DocumentsCard.js.map +1 -1
  347. package/dist/components/Employee/Documents/management/DocumentsComponents.d.ts +3 -0
  348. package/dist/components/Employee/Documents/management/DocumentsComponents.js.map +1 -1
  349. package/dist/components/Employee/Documents/management/documentsStateMachine.d.ts +1 -0
  350. package/dist/components/Employee/Documents/management/documentsStateMachine.js.map +1 -1
  351. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/Actions.d.ts +1 -0
  352. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/Actions.js +1 -1
  353. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/Actions.js.map +1 -1
  354. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.d.ts +1 -0
  355. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.js +13 -10
  356. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  357. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/Head.d.ts +1 -0
  358. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/Head.js.map +1 -1
  359. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/List.d.ts +1 -0
  360. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/List.js +4 -2
  361. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/List.js.map +1 -1
  362. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +3 -5
  363. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  364. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.d.ts +29 -0
  365. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.js.map +1 -1
  366. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.d.ts +23 -0
  367. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js.map +1 -1
  368. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.d.ts +1 -0
  369. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +6 -6
  370. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  371. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.d.ts +3 -0
  372. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.js.map +1 -1
  373. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/countries.d.ts +1 -0
  374. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/countries.js.map +1 -1
  375. package/dist/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/I9SignatureForm.d.ts +1 -0
  376. package/dist/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/I9SignatureForm.js +4 -3
  377. package/dist/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  378. package/dist/components/Employee/Documents/onboarding/DocumentSigner/documentSignerStateMachine.d.ts +6 -0
  379. package/dist/components/Employee/Documents/onboarding/DocumentSigner/documentSignerStateMachine.js.map +1 -1
  380. package/dist/components/Employee/Documents/onboarding/DocumentSigner/stateMachine.d.ts +1 -0
  381. package/dist/components/Employee/Documents/onboarding/DocumentSigner/stateMachine.js.map +1 -1
  382. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.d.ts +27 -2
  383. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js.map +1 -1
  384. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.d.ts +3 -0
  385. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.js +7 -6
  386. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  387. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/index.d.ts +1 -1
  388. package/dist/components/Employee/Documents/shared/SignatureForm/SignatureForm.d.ts +1 -0
  389. package/dist/components/Employee/Documents/shared/SignatureForm/SignatureForm.js +11 -10
  390. package/dist/components/Employee/Documents/shared/SignatureForm/SignatureForm.js.map +1 -1
  391. package/dist/components/Employee/Documents/shared/useDocumentsList/index.d.ts +0 -1
  392. package/dist/components/Employee/Documents/shared/useDocumentsList/useDocumentsList.d.ts +23 -6
  393. package/dist/components/Employee/Documents/shared/useDocumentsList/useDocumentsList.js.map +1 -1
  394. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/fields.d.ts +326 -0
  395. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/fields.js +1 -1
  396. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/fields.js.map +1 -1
  397. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/index.d.ts +2 -1
  398. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/signEmployeeFormSchema.d.ts +62 -0
  399. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/signEmployeeFormSchema.js.map +1 -1
  400. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/useSignEmployeeForm.d.ts +130 -0
  401. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/useSignEmployeeForm.js.map +1 -1
  402. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.d.ts +30 -3
  403. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js +17 -21
  404. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js.map +1 -1
  405. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.d.ts +2 -0
  406. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js +12 -12
  407. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -1
  408. package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.d.ts +23 -2
  409. package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.js +38 -35
  410. package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.js.map +1 -1
  411. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.d.ts +2 -0
  412. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js +10 -10
  413. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js.map +1 -1
  414. package/dist/components/Employee/EmployeeList/shared/index.d.ts +1 -1
  415. package/dist/components/Employee/EmployeeList/shared/useEmployeeList.d.ts +86 -11
  416. package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js +50 -62
  417. package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js.map +1 -1
  418. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.d.ts +34 -0
  419. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.js.map +1 -1
  420. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.d.ts +11 -0
  421. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.js.map +1 -1
  422. package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.d.ts +1 -0
  423. package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.js.map +1 -1
  424. package/dist/components/Employee/FederalTaxes/index.d.ts +2 -5
  425. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.d.ts +27 -0
  426. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js.map +1 -1
  427. package/dist/components/Employee/FederalTaxes/management/FederalTaxesCard/FederalTaxesCard.d.ts +9 -0
  428. package/dist/components/Employee/FederalTaxes/management/FederalTaxesCard/FederalTaxesCard.js +16 -15
  429. package/dist/components/Employee/FederalTaxes/management/FederalTaxesCard/FederalTaxesCard.js.map +1 -1
  430. package/dist/components/Employee/FederalTaxes/management/FederalTaxesComponents.d.ts +5 -1
  431. package/dist/components/Employee/FederalTaxes/management/FederalTaxesComponents.js.map +1 -1
  432. package/dist/components/Employee/FederalTaxes/management/FederalTaxesEditForm.d.ts +24 -0
  433. package/dist/components/Employee/FederalTaxes/management/FederalTaxesEditForm.js +8 -7
  434. package/dist/components/Employee/FederalTaxes/management/FederalTaxesEditForm.js.map +1 -1
  435. package/dist/components/Employee/FederalTaxes/management/federalTaxesStateMachine.d.ts +1 -0
  436. package/dist/components/Employee/FederalTaxes/management/federalTaxesStateMachine.js.map +1 -1
  437. package/dist/components/Employee/FederalTaxes/management/useViewDictionary.d.ts +2 -0
  438. package/dist/components/Employee/FederalTaxes/management/useViewDictionary.js.map +1 -1
  439. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.d.ts +24 -0
  440. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js +13 -12
  441. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js.map +1 -1
  442. package/dist/components/Employee/FederalTaxes/onboarding/useViewDictionary.d.ts +2 -0
  443. package/dist/components/Employee/FederalTaxes/onboarding/useViewDictionary.js.map +1 -1
  444. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.d.ts +4 -0
  445. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js.map +1 -1
  446. package/dist/components/Employee/FederalTaxes/shared/index.d.ts +1 -2
  447. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.d.ts +46 -0
  448. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.js.map +1 -1
  449. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.d.ts +112 -0
  450. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js +4 -4
  451. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js.map +1 -1
  452. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/index.d.ts +1 -0
  453. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.d.ts +112 -0
  454. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.js.map +1 -1
  455. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesSummary/index.d.ts +0 -1
  456. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesSummary/useFederalTaxesSummary.d.ts +14 -1
  457. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesSummary/useFederalTaxesSummary.js.map +1 -1
  458. package/dist/components/Employee/HomeAddress/management/HomeAddress.d.ts +21 -0
  459. package/dist/components/Employee/HomeAddress/management/HomeAddress.js.map +1 -1
  460. package/dist/components/Employee/HomeAddress/management/HomeAddressCard/HomeAddressCard.d.ts +17 -5
  461. package/dist/components/Employee/HomeAddress/management/HomeAddressCard/HomeAddressCard.js +8 -7
  462. package/dist/components/Employee/HomeAddress/management/HomeAddressCard/HomeAddressCard.js.map +1 -1
  463. package/dist/components/Employee/HomeAddress/management/HomeAddressComponents.d.ts +3 -0
  464. package/dist/components/Employee/HomeAddress/management/HomeAddressComponents.js.map +1 -1
  465. package/dist/components/Employee/HomeAddress/management/HomeAddressEditForm.d.ts +20 -0
  466. package/dist/components/Employee/HomeAddress/management/HomeAddressEditForm.js.map +1 -1
  467. package/dist/components/Employee/HomeAddress/management/HomeAddressView.d.ts +2 -0
  468. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js +5 -5
  469. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -1
  470. package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.d.ts +7 -1
  471. package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.js.map +1 -1
  472. package/dist/components/Employee/HomeAddress/management/homeAddressStateMachine.d.ts +1 -0
  473. package/dist/components/Employee/HomeAddress/management/homeAddressStateMachine.js.map +1 -1
  474. package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.d.ts +46 -7
  475. package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js.map +1 -1
  476. package/dist/components/Employee/HomeAddress/shared/useHomeAddressSummary/index.d.ts +0 -1
  477. package/dist/components/Employee/HomeAddress/shared/useHomeAddressSummary/useHomeAddressSummary.d.ts +21 -6
  478. package/dist/components/Employee/HomeAddress/shared/useHomeAddressSummary/useHomeAddressSummary.js.map +1 -1
  479. package/dist/components/Employee/Landing/Landing.d.ts +6 -0
  480. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  481. package/dist/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlow.d.ts +43 -0
  482. package/dist/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlow.js.map +1 -1
  483. package/dist/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlowComponents.d.ts +17 -0
  484. package/dist/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlowComponents.js.map +1 -1
  485. package/dist/components/Employee/OnboardingExecutionFlow/index.d.ts +2 -2
  486. package/dist/components/Employee/OnboardingExecutionFlow/onboardingExecutionStateMachine.d.ts +7 -0
  487. package/dist/components/Employee/OnboardingExecutionFlow/onboardingExecutionStateMachine.js.map +1 -1
  488. package/dist/components/Employee/OnboardingFlow/OnboardingFlow.d.ts +59 -0
  489. package/dist/components/Employee/OnboardingFlow/OnboardingFlow.js.map +1 -1
  490. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.d.ts +2 -1
  491. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
  492. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.d.ts +1 -0
  493. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  494. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.d.ts +7 -0
  495. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +4 -4
  496. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js.map +1 -1
  497. package/dist/components/Employee/PaymentMethod/management/PaymentMethod.d.ts +39 -0
  498. package/dist/components/Employee/PaymentMethod/management/PaymentMethod.js.map +1 -1
  499. package/dist/components/Employee/PaymentMethod/management/PaymentMethodBankForm.d.ts +23 -6
  500. package/dist/components/Employee/PaymentMethod/management/PaymentMethodBankForm.js.map +1 -1
  501. package/dist/components/Employee/PaymentMethod/management/PaymentMethodCard.d.ts +24 -7
  502. package/dist/components/Employee/PaymentMethod/management/PaymentMethodCard.js +14 -14
  503. package/dist/components/Employee/PaymentMethod/management/PaymentMethodCard.js.map +1 -1
  504. package/dist/components/Employee/PaymentMethod/management/PaymentMethodComponents.d.ts +5 -0
  505. package/dist/components/Employee/PaymentMethod/management/PaymentMethodComponents.js.map +1 -1
  506. package/dist/components/Employee/PaymentMethod/management/PaymentMethodSplitForm.d.ts +23 -6
  507. package/dist/components/Employee/PaymentMethod/management/PaymentMethodSplitForm.js.map +1 -1
  508. package/dist/components/Employee/PaymentMethod/management/paymentMethodStateMachine.d.ts +1 -0
  509. package/dist/components/Employee/PaymentMethod/management/paymentMethodStateMachine.js.map +1 -1
  510. package/dist/components/Employee/PaymentMethod/management/useFormDictionary.d.ts +4 -0
  511. package/dist/components/Employee/PaymentMethod/management/useFormDictionary.js.map +1 -1
  512. package/dist/components/Employee/PaymentMethod/onboarding/BankForm.d.ts +2 -0
  513. package/dist/components/Employee/PaymentMethod/onboarding/BankForm.js.map +1 -1
  514. package/dist/components/Employee/PaymentMethod/onboarding/ListView.d.ts +1 -0
  515. package/dist/components/Employee/PaymentMethod/onboarding/ListView.js +8 -8
  516. package/dist/components/Employee/PaymentMethod/onboarding/ListView.js.map +1 -1
  517. package/dist/components/Employee/PaymentMethod/onboarding/PaymentMethod.d.ts +43 -0
  518. package/dist/components/Employee/PaymentMethod/onboarding/PaymentMethod.js.map +1 -1
  519. package/dist/components/Employee/PaymentMethod/onboarding/PaymentMethodComponents.d.ts +4 -0
  520. package/dist/components/Employee/PaymentMethod/onboarding/PaymentMethodComponents.js.map +1 -1
  521. package/dist/components/Employee/PaymentMethod/onboarding/SplitView.d.ts +2 -0
  522. package/dist/components/Employee/PaymentMethod/onboarding/SplitView.js.map +1 -1
  523. package/dist/components/Employee/PaymentMethod/onboarding/paymentMethodStateMachine.d.ts +1 -0
  524. package/dist/components/Employee/PaymentMethod/onboarding/paymentMethodStateMachine.js.map +1 -1
  525. package/dist/components/Employee/PaymentMethod/onboarding/useFormDictionary.d.ts +4 -0
  526. package/dist/components/Employee/PaymentMethod/onboarding/useFormDictionary.js.map +1 -1
  527. package/dist/components/Employee/PaymentMethod/shared/BankFormBody/BankFormBody.d.ts +4 -0
  528. package/dist/components/Employee/PaymentMethod/shared/BankFormBody/BankFormBody.js +6 -6
  529. package/dist/components/Employee/PaymentMethod/shared/BankFormBody/BankFormBody.js.map +1 -1
  530. package/dist/components/Employee/PaymentMethod/shared/BankFormBody/index.d.ts +1 -1
  531. package/dist/components/Employee/PaymentMethod/shared/DeleteBankAccountDialog.d.ts +2 -0
  532. package/dist/components/Employee/PaymentMethod/shared/DeleteBankAccountDialog.js.map +1 -1
  533. package/dist/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/SplitPaymentsFormBody.d.ts +4 -0
  534. package/dist/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/SplitPaymentsFormBody.js +11 -10
  535. package/dist/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/SplitPaymentsFormBody.js.map +1 -1
  536. package/dist/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/index.d.ts +1 -1
  537. package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.d.ts +80 -0
  538. package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.js +1 -1
  539. package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.js.map +1 -1
  540. package/dist/components/Employee/PaymentMethod/shared/useBankForm/index.d.ts +1 -1
  541. package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankForm.d.ts +84 -1
  542. package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankForm.js.map +1 -1
  543. package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankFormSchema.d.ts +45 -0
  544. package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankFormSchema.js.map +1 -1
  545. package/dist/components/Employee/PaymentMethod/shared/useDeleteBankAccount.d.ts +1 -0
  546. package/dist/components/Employee/PaymentMethod/shared/useDeleteBankAccount.js.map +1 -1
  547. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/fields.d.ts +22 -0
  548. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/fields.js.map +1 -1
  549. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/index.d.ts +2 -2
  550. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodForm.d.ts +84 -1
  551. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodForm.js.map +1 -1
  552. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodFormSchema.d.ts +45 -0
  553. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodFormSchema.js.map +1 -1
  554. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodList.d.ts +6 -0
  555. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodList.js.map +1 -1
  556. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/fields.d.ts +22 -0
  557. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/fields.js.map +1 -1
  558. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/index.d.ts +2 -2
  559. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.d.ts +25 -0
  560. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.js.map +1 -1
  561. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsForm.d.ts +124 -7
  562. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsForm.js.map +1 -1
  563. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsFormSchema.d.ts +52 -6
  564. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsFormSchema.js +1 -2
  565. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsFormSchema.js.map +1 -1
  566. package/dist/components/Employee/Paystubs/management/PaystubsCard/PaystubsCard.d.ts +9 -0
  567. package/dist/components/Employee/Paystubs/management/PaystubsCard/PaystubsCard.js +12 -12
  568. package/dist/components/Employee/Paystubs/management/PaystubsCard/PaystubsCard.js.map +1 -1
  569. package/dist/components/Employee/Paystubs/shared/usePaystubsList/index.d.ts +1 -1
  570. package/dist/components/Employee/Paystubs/shared/usePaystubsList/usePaystubsList.d.ts +25 -0
  571. package/dist/components/Employee/Paystubs/shared/usePaystubsList/usePaystubsList.js.map +1 -1
  572. package/dist/components/Employee/Profile/management/Profile.d.ts +25 -0
  573. package/dist/components/Employee/Profile/management/Profile.js.map +1 -1
  574. package/dist/components/Employee/Profile/management/ProfileCard/ProfileCard.d.ts +22 -6
  575. package/dist/components/Employee/Profile/management/ProfileCard/ProfileCard.js +12 -11
  576. package/dist/components/Employee/Profile/management/ProfileCard/ProfileCard.js.map +1 -1
  577. package/dist/components/Employee/Profile/management/ProfileComponents.d.ts +5 -1
  578. package/dist/components/Employee/Profile/management/ProfileComponents.js.map +1 -1
  579. package/dist/components/Employee/Profile/management/ProfileEditForm.d.ts +25 -0
  580. package/dist/components/Employee/Profile/management/ProfileEditForm.js +8 -8
  581. package/dist/components/Employee/Profile/management/ProfileEditForm.js.map +1 -1
  582. package/dist/components/Employee/Profile/management/profileStateMachine.d.ts +1 -0
  583. package/dist/components/Employee/Profile/management/profileStateMachine.js.map +1 -1
  584. package/dist/components/Employee/Profile/onboarding/AdminProfile.d.ts +1 -0
  585. package/dist/components/Employee/Profile/onboarding/AdminProfile.js +6 -6
  586. package/dist/components/Employee/Profile/onboarding/AdminProfile.js.map +1 -1
  587. package/dist/components/Employee/Profile/onboarding/EmployeeProfile.d.ts +1 -0
  588. package/dist/components/Employee/Profile/onboarding/EmployeeProfile.js +7 -7
  589. package/dist/components/Employee/Profile/onboarding/EmployeeProfile.js.map +1 -1
  590. package/dist/components/Employee/Profile/onboarding/Profile.d.ts +61 -0
  591. package/dist/components/Employee/Profile/onboarding/Profile.js.map +1 -1
  592. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +37 -0
  593. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/employeeDetailsSchema.js.map +1 -1
  594. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.d.ts +170 -0
  595. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.js +4 -4
  596. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.js.map +1 -1
  597. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/index.d.ts +4 -2
  598. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +140 -1
  599. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
  600. package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/index.d.ts +0 -1
  601. package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.d.ts +37 -4
  602. package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.js.map +1 -1
  603. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.d.ts +130 -0
  604. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js +4 -4
  605. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js.map +1 -1
  606. package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.d.ts +35 -0
  607. package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.js.map +1 -1
  608. package/dist/components/Employee/Profile/shared/useHomeAddressForm/index.d.ts +2 -1
  609. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.d.ts +45 -0
  610. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.js.map +1 -1
  611. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.d.ts +77 -1
  612. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js.map +1 -1
  613. package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.d.ts +43 -0
  614. package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.js.map +1 -1
  615. package/dist/components/Employee/Profile/shared/useWorkAddressForm/index.d.ts +2 -1
  616. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.d.ts +42 -0
  617. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.js.map +1 -1
  618. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.d.ts +85 -0
  619. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
  620. package/dist/components/Employee/Profile/shared/useWorkAddressForm/workAddressSchema.d.ts +35 -0
  621. package/dist/components/Employee/Profile/shared/useWorkAddressForm/workAddressSchema.js.map +1 -1
  622. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.d.ts +16 -0
  623. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
  624. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingFlow.d.ts +31 -0
  625. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingFlow.js.map +1 -1
  626. package/dist/components/Employee/SelfOnboardingFlow/selfOnboardingMachine.d.ts +1 -0
  627. package/dist/components/Employee/SelfOnboardingFlow/selfOnboardingMachine.js.map +1 -1
  628. package/dist/components/Employee/StateTaxes/index.d.ts +1 -1
  629. package/dist/components/Employee/StateTaxes/management/StateTaxes.d.ts +24 -0
  630. package/dist/components/Employee/StateTaxes/management/StateTaxes.js.map +1 -1
  631. package/dist/components/Employee/StateTaxes/management/StateTaxesCard/StateTaxesCard.d.ts +21 -6
  632. package/dist/components/Employee/StateTaxes/management/StateTaxesCard/StateTaxesCard.js +12 -11
  633. package/dist/components/Employee/StateTaxes/management/StateTaxesCard/StateTaxesCard.js.map +1 -1
  634. package/dist/components/Employee/StateTaxes/management/StateTaxesComponents.d.ts +4 -0
  635. package/dist/components/Employee/StateTaxes/management/StateTaxesComponents.js.map +1 -1
  636. package/dist/components/Employee/StateTaxes/management/StateTaxesEditForm.d.ts +20 -8
  637. package/dist/components/Employee/StateTaxes/management/StateTaxesEditForm.js +11 -10
  638. package/dist/components/Employee/StateTaxes/management/StateTaxesEditForm.js.map +1 -1
  639. package/dist/components/Employee/StateTaxes/management/stateTaxesStateMachine.d.ts +1 -0
  640. package/dist/components/Employee/StateTaxes/management/stateTaxesStateMachine.js.map +1 -1
  641. package/dist/components/Employee/StateTaxes/management/useViewDictionary.d.ts +2 -0
  642. package/dist/components/Employee/StateTaxes/management/useViewDictionary.js.map +1 -1
  643. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.d.ts +22 -0
  644. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.js +8 -7
  645. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.js.map +1 -1
  646. package/dist/components/Employee/StateTaxes/onboarding/useViewDictionary.d.ts +2 -0
  647. package/dist/components/Employee/StateTaxes/onboarding/useViewDictionary.js.map +1 -1
  648. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.d.ts +4 -0
  649. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js.map +1 -1
  650. package/dist/components/Employee/StateTaxes/shared/index.d.ts +1 -2
  651. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.d.ts +39 -16
  652. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.js.map +1 -1
  653. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.d.ts +6 -0
  654. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js.map +1 -1
  655. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.d.ts +4 -9
  656. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.js.map +1 -1
  657. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMeta.d.ts +5 -1
  658. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldProps.d.ts +52 -0
  659. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.d.ts +26 -5
  660. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.js.map +1 -1
  661. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.d.ts +106 -0
  662. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.js.map +1 -1
  663. package/dist/components/Employee/StateTaxes/shared/useStateTaxesSummary/index.d.ts +0 -1
  664. package/dist/components/Employee/StateTaxes/shared/useStateTaxesSummary/useStateTaxesSummary.d.ts +5 -8
  665. package/dist/components/Employee/StateTaxes/shared/useStateTaxesSummary/useStateTaxesSummary.js.map +1 -1
  666. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.d.ts +53 -0
  667. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
  668. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.d.ts +1 -0
  669. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +7 -6
  670. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
  671. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.d.ts +47 -0
  672. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js.map +1 -1
  673. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.d.ts +20 -0
  674. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +10 -9
  675. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js.map +1 -1
  676. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.d.ts +2 -0
  677. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js.map +1 -1
  678. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.d.ts +48 -0
  679. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -1
  680. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.d.ts +1 -0
  681. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +3 -2
  682. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
  683. package/dist/components/Employee/Terminations/types.d.ts +16 -0
  684. package/dist/components/Employee/WorkAddress/management/WorkAddress.d.ts +21 -0
  685. package/dist/components/Employee/WorkAddress/management/WorkAddress.js.map +1 -1
  686. package/dist/components/Employee/WorkAddress/management/WorkAddressCard/WorkAddressCard.d.ts +17 -6
  687. package/dist/components/Employee/WorkAddress/management/WorkAddressCard/WorkAddressCard.js +17 -16
  688. package/dist/components/Employee/WorkAddress/management/WorkAddressCard/WorkAddressCard.js.map +1 -1
  689. package/dist/components/Employee/WorkAddress/management/WorkAddressComponents.d.ts +3 -0
  690. package/dist/components/Employee/WorkAddress/management/WorkAddressComponents.js.map +1 -1
  691. package/dist/components/Employee/WorkAddress/management/WorkAddressEditForm.d.ts +20 -0
  692. package/dist/components/Employee/WorkAddress/management/WorkAddressEditForm.js.map +1 -1
  693. package/dist/components/Employee/WorkAddress/management/WorkAddressView.d.ts +2 -0
  694. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js +7 -7
  695. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -1
  696. package/dist/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.d.ts +2 -0
  697. package/dist/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.js.map +1 -1
  698. package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.d.ts +46 -7
  699. package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js.map +1 -1
  700. package/dist/components/Employee/WorkAddress/management/workAddressStateMachine.d.ts +1 -0
  701. package/dist/components/Employee/WorkAddress/management/workAddressStateMachine.js.map +1 -1
  702. package/dist/components/Employee/WorkAddress/shared/useEmployeeWorkAddressSummary/index.d.ts +0 -1
  703. package/dist/components/Employee/WorkAddress/shared/useEmployeeWorkAddressSummary/useEmployeeWorkAddressSummary.d.ts +21 -4
  704. package/dist/components/Employee/WorkAddress/shared/useEmployeeWorkAddressSummary/useEmployeeWorkAddressSummary.js.map +1 -1
  705. package/dist/components/Employee/exports/employeeManagement.d.ts +7 -4
  706. package/dist/components/Employee/exports/employeeManagement.js +26 -26
  707. package/dist/components/Employee/exports/employeeOnboarding.d.ts +11 -9
  708. package/dist/components/Employee/exports/employeeOnboarding.js +20 -16
  709. package/dist/components/Employee/exports/employeeOnboarding.js.map +1 -1
  710. package/dist/components/Employee/index.d.ts +0 -1
  711. package/dist/components/Flow/FlowHeader.js +4 -3
  712. package/dist/components/Flow/FlowHeader.js.map +1 -1
  713. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +19 -18
  714. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  715. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +8 -7
  716. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  717. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +5 -4
  718. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  719. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +9 -8
  720. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
  721. package/dist/components/Payroll/Dismissal/index.d.ts +2 -0
  722. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +5 -5
  723. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +10 -10
  724. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +2 -1
  725. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  726. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +1 -1
  727. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +2 -3
  728. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  729. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +8 -7
  730. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  731. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +18 -18
  732. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +295 -289
  733. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  734. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +18 -18
  735. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +15 -15
  736. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +4 -4
  737. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +3 -2
  738. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  739. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +3 -2
  740. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  741. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +2 -1
  742. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  743. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +3 -2
  744. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  745. package/dist/components/Payroll/index.d.ts +2 -0
  746. package/dist/components/Payroll/index.js +24 -22
  747. package/dist/components/Payroll/index.js.map +1 -1
  748. package/dist/components/Payroll/usePreparedPayrollData.js +8 -10
  749. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  750. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js +14 -14
  751. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js.map +1 -1
  752. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js +1 -1
  753. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js +8 -8
  754. package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js +4 -4
  755. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +4 -4
  756. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js +36 -34
  757. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -1
  758. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +4 -4
  759. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js +16 -16
  760. package/dist/components/TimeOff/index.d.ts +6 -2
  761. package/dist/components/TimeOff/index.js +21 -17
  762. package/dist/components/TimeOff/index.js.map +1 -1
  763. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js +1 -1
  764. package/dist/components/index.d.ts +1 -6
  765. package/dist/contexts/GustoProvider/GustoProvider.d.ts +28 -2
  766. package/dist/contexts/GustoProvider/GustoProvider.js +10 -11
  767. package/dist/contexts/GustoProvider/GustoProvider.js.map +1 -1
  768. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +42 -2
  769. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +1 -1
  770. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  771. package/dist/contexts/GustoProvider/SDKI18next.d.ts +1 -1
  772. package/dist/contexts/GustoProvider/SDKI18next.js.map +1 -1
  773. package/dist/contexts/GustoProvider/index.d.ts +1 -3
  774. package/dist/contexts/ThemeProvider/ThemeProvider.d.ts +5 -1
  775. package/dist/contexts/ThemeProvider/ThemeProvider.js.map +1 -1
  776. package/dist/contexts/ThemeProvider/customRender.d.ts +1 -0
  777. package/dist/contexts/ThemeProvider/index.d.ts +0 -1
  778. package/dist/contexts/ThemeProvider/theme.d.ts +7 -101
  779. package/dist/contexts/ThemeProvider/theme.js +58 -64
  780. package/dist/contexts/ThemeProvider/theme.js.map +1 -1
  781. package/dist/contexts/ThemeProvider/types.d.ts +181 -0
  782. package/dist/contexts/ThemeProvider/useTheme.d.ts +4 -0
  783. package/dist/contexts/ThemeProvider/useTheme.js.map +1 -1
  784. package/dist/contexts/index.d.ts +1 -1
  785. package/dist/i18n/I18n.js +0 -1
  786. package/dist/i18n/I18n.js.map +1 -1
  787. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +56 -40
  788. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
  789. package/dist/index.d.ts +20 -17
  790. package/dist/index.js +228 -158
  791. package/dist/index.js.map +1 -1
  792. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js +13 -11
  793. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js.map +1 -1
  794. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js +17 -15
  795. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js.map +1 -1
  796. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js +11 -9
  797. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js.map +1 -1
  798. package/dist/partner-hook-utils/form/fields/SelectHookField.js +15 -13
  799. package/dist/partner-hook-utils/form/fields/SelectHookField.js.map +1 -1
  800. package/dist/partner-hook-utils/form/fields/SwitchHookField.js +13 -11
  801. package/dist/partner-hook-utils/form/fields/SwitchHookField.js.map +1 -1
  802. package/dist/partner-hook-utils/form/fields/TextInputHookField.js +8 -6
  803. package/dist/partner-hook-utils/form/fields/TextInputHookField.js.map +1 -1
  804. package/dist/partner-hook-utils/form/fields/index.d.ts +2 -0
  805. package/dist/partner-hook-utils/form/index.d.ts +1 -1
  806. package/dist/shared/constants.d.ts +5 -3
  807. package/dist/shared/constants.js +0 -1
  808. package/dist/shared/constants.js.map +1 -1
  809. package/dist/style.css +1 -1
  810. package/dist/types/i18next.d.ts +9 -32
  811. package/docs/reference/endpoint-inventory.json +322 -1101
  812. package/package.json +20 -17
  813. package/dist/components/Company/index.js +0 -37
  814. package/dist/components/Company/index.js.map +0 -1
  815. package/dist/components/Contractor/index.js +0 -29
  816. package/dist/components/Contractor/index.js.map +0 -1
  817. package/dist/components/Employee/Compensation/management/CompensationEditJobForm/index.d.ts +0 -3
  818. package/dist/components/Employee/Deductions/shared/index.d.ts +0 -8
  819. package/dist/components/Employee/Documents/shared/index.d.ts +0 -3
  820. package/dist/components/Employee/FederalTaxes/onboarding/index.d.ts +0 -2
  821. package/dist/components/Employee/HomeAddress/shared/index.d.ts +0 -3
  822. package/dist/components/Employee/Paystubs/shared/index.d.ts +0 -3
  823. package/dist/components/Employee/Taxes/Actions.d.ts +0 -1
  824. package/dist/components/Employee/Taxes/Actions.js +0 -14
  825. package/dist/components/Employee/Taxes/Actions.js.map +0 -1
  826. package/dist/components/Employee/Taxes/FederalForm.d.ts +0 -12
  827. package/dist/components/Employee/Taxes/FederalForm.js +0 -109
  828. package/dist/components/Employee/Taxes/FederalForm.js.map +0 -1
  829. package/dist/components/Employee/Taxes/FederalHead.d.ts +0 -1
  830. package/dist/components/Employee/Taxes/FederalHead.js +0 -25
  831. package/dist/components/Employee/Taxes/FederalHead.js.map +0 -1
  832. package/dist/components/Employee/Taxes/StateForm.d.ts +0 -6
  833. package/dist/components/Employee/Taxes/StateForm.js +0 -35
  834. package/dist/components/Employee/Taxes/StateForm.js.map +0 -1
  835. package/dist/components/Employee/Taxes/Taxes.d.ts +0 -13
  836. package/dist/components/Employee/Taxes/Taxes.js +0 -133
  837. package/dist/components/Employee/Taxes/Taxes.js.map +0 -1
  838. package/dist/components/Employee/Taxes/index.d.ts +0 -2
  839. package/dist/components/Employee/Taxes/useTaxes.d.ts +0 -8
  840. package/dist/components/Employee/Taxes/useTaxes.js +0 -23
  841. package/dist/components/Employee/Taxes/useTaxes.js.map +0 -1
  842. package/dist/components/Employee/Terminations/TerminationFlow/index.d.ts +0 -3
  843. package/dist/components/Employee/Terminations/TerminationsData.d.ts +0 -6
  844. package/dist/components/Employee/Terminations/index.d.ts +0 -8
  845. package/dist/components/Employee/WorkAddress/shared/index.d.ts +0 -3
  846. package/dist/components/Employee/index.js +0 -49
  847. package/dist/components/Employee/index.js.map +0 -1
  848. package/dist/contexts/GustoApiProvider/index.d.ts +0 -3
  849. package/dist/i18n/en/Employee.Taxes.json.js +0 -58
  850. package/dist/i18n/en/Employee.Taxes.json.js.map +0 -1
@@ -1,26 +1,38 @@
1
1
  import { CommonComponentInterface } from '../../../../Base';
2
2
  import { OnEventType } from '../../../../Base/useBase';
3
3
  import { EventType } from '../../../../../shared/constants';
4
+ /**
5
+ * Props for {@link CompensationEditForm}.
6
+ *
7
+ * @public
8
+ */
4
9
  export interface CompensationEditFormProps extends CommonComponentInterface<'Employee.Management.Compensation'> {
10
+ /** The associated employee identifier. */
5
11
  employeeId: string;
6
- /** The id of the job whose compensation is being edited. The form fetches the
7
- * job (a cached query, deduped against any sibling consumer) and inspects its
8
- * compensations to decide whether to edit the current comp or an already
9
- * scheduled future-dated (pending) change. */
12
+ /**
13
+ * The id of the job whose compensation is being edited (for example, the `jobId` from the
14
+ * {@link CompensationCard} `employee/management/compensation/card/editRequested` payload).
15
+ * The form inspects the job's compensations to decide whether to edit the current
16
+ * compensation or an already-scheduled future-dated change.
17
+ */
10
18
  jobId: string;
11
- /** Fires `EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_SUBMITTED` (with the saved
12
- * `Compensation`) on a successful save, and
13
- * `EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_CANCELLED` when the user cancels. */
19
+ /** Callback invoked when the form emits an event. See the events table on {@link CompensationEditForm} for the available event types and payloads. */
14
20
  onEvent: OnEventType<EventType, unknown>;
15
21
  }
16
22
  /**
17
- * Edits the compensation for a single job. Self-fetching thin router: it loads
18
- * the job by id (React Query dedupes against the card's own list query, so no
19
- * extra request) and forwards to the pending-change editor when the job already
20
- * has a scheduled future-dated compensation (so the user adjusts the queued
21
- * change rather than stacking a second one), and to the current-compensation
22
- * editor otherwise. Both branches resolve copy from
23
- * `Employee.Management.Compensation`; the optional `dictionary` is forwarded to
24
- * whichever editor renders.
23
+ * Standalone form that edits the compensation for a single job, branching automatically between editing the current compensation and an already-scheduled future-dated change.
24
+ *
25
+ * @remarks
26
+ * Pair with {@link CompensationCard} to route its `employee/management/compensation/card/editRequested` event to this form. {@link Compensation} bundles the card, the three form surfaces (edit, add job, add another job), and the swap and alert wiring as a single drop-in; reach for this form directly only when that orchestration is the wrong fit (for example, when the form needs to render in a modal or drawer, or when the swap is driven by a router).
27
+ *
28
+ * | Event | Description | Data |
29
+ * | ----- | ----------- | ---- |
30
+ * | `employee/management/compensation/editForm/submitted` | Fired after the compensation change is saved; use it to return to the card | The updated `Compensation` entity |
31
+ * | `employee/management/compensation/editForm/cancelled` | Fired when the user clicks Cancel; use it to return to the card | — |
32
+ *
33
+ * @param props - See {@link CompensationEditFormProps}.
34
+ * @returns The rendered compensation edit form.
35
+ * @public
36
+ * @group Block Components
25
37
  */
26
38
  export declare function CompensationEditForm({ employeeId, jobId, onEvent, dictionary, }: CompensationEditFormProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"CompensationEditForm.js","sources":["../../../../../../src/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.tsx"],"sourcesContent":["import { useJobsAndCompensationsGetJobs } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsGetJobs'\nimport { getPendingCompensationChanges } from '../../shared/getPendingCompensationChanges'\nimport { CompensationEditJobForm } from '../CompensationEditJobForm/CompensationEditJobForm'\nimport { CompensationEditPendingJobForm } from '../CompensationEditPendingJobForm/CompensationEditPendingJobForm'\nimport { BaseLayout, type CommonComponentInterface } from '@/components/Base'\nimport type { OnEventType } from '@/components/Base/useBase'\nimport { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler'\nimport { type EventType } from '@/shared/constants'\n\nexport interface CompensationEditFormProps extends CommonComponentInterface<'Employee.Management.Compensation'> {\n employeeId: string\n /** The id of the job whose compensation is being edited. The form fetches the\n * job (a cached query, deduped against any sibling consumer) and inspects its\n * compensations to decide whether to edit the current comp or an already\n * scheduled future-dated (pending) change. */\n jobId: string\n /** Fires `EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_SUBMITTED` (with the saved\n * `Compensation`) on a successful save, and\n * `EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_CANCELLED` when the user cancels. */\n onEvent: OnEventType<EventType, unknown>\n}\n\n/**\n * Edits the compensation for a single job. Self-fetching thin router: it loads\n * the job by id (React Query dedupes against the card's own list query, so no\n * extra request) and forwards to the pending-change editor when the job already\n * has a scheduled future-dated compensation (so the user adjusts the queued\n * change rather than stacking a second one), and to the current-compensation\n * editor otherwise. Both branches resolve copy from\n * `Employee.Management.Compensation`; the optional `dictionary` is forwarded to\n * whichever editor renders.\n */\nexport function CompensationEditForm({\n employeeId,\n jobId,\n onEvent,\n dictionary,\n}: CompensationEditFormProps) {\n const jobsQuery = useJobsAndCompensationsGetJobs({ employeeId }, { enabled: !!employeeId })\n\n if (jobsQuery.isLoading || !jobsQuery.data) {\n const errorHandling = composeErrorHandler([jobsQuery])\n return <BaseLayout isLoading error={errorHandling.errors} />\n }\n\n const job = jobsQuery.data.jobs?.find(j => j.uuid === jobId)\n\n // The API does not guarantee ordering of job.compensations, so rely on the\n // same sorted helper that drives the card display (ascending by effectiveDate)\n // to find the nearest pending change.\n const nearestPending = getPendingCompensationChanges(job ? [job] : [])[0]\n\n if (nearestPending) {\n return (\n <CompensationEditPendingJobForm\n employeeId={employeeId}\n jobId={jobId}\n compensationId={nearestPending.compensationUuid}\n isNewJob={nearestPending.isNewJob}\n isPrimaryJob={job?.primary ?? false}\n onEvent={onEvent}\n dictionary={dictionary}\n />\n )\n }\n\n return (\n <CompensationEditJobForm\n employeeId={employeeId}\n jobId={jobId}\n onEvent={onEvent}\n dictionary={dictionary}\n />\n )\n}\n"],"names":["CompensationEditForm","employeeId","jobId","onEvent","dictionary","jobsQuery","useJobsAndCompensationsGetJobs","errorHandling","composeErrorHandler","BaseLayout","job","j","nearestPending","getPendingCompensationChanges","jsx","CompensationEditPendingJobForm","CompensationEditJobForm"],"mappings":";;;;;;;;AAgCO,SAASA,EAAqB;AAAA,EACnC,YAAAC;AAAA,EACA,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,YAAAC;AACF,GAA8B;AAC5B,QAAMC,IAAYC,EAA+B,EAAE,YAAAL,EAAA,GAAc,EAAE,SAAS,CAAC,CAACA,GAAY;AAE1F,MAAII,EAAU,aAAa,CAACA,EAAU,MAAM;AAC1C,UAAME,IAAgBC,EAAoB,CAACH,CAAS,CAAC;AACrD,6BAAQI,GAAA,EAAW,WAAS,IAAC,OAAOF,EAAc,QAAQ;AAAA,EAC5D;AAEA,QAAMG,IAAML,EAAU,KAAK,MAAM,KAAK,CAAAM,MAAKA,EAAE,SAAST,CAAK,GAKrDU,IAAiBC,EAA8BH,IAAM,CAACA,CAAG,IAAI,CAAA,CAAE,EAAE,CAAC;AAExE,SAAIE,IAEA,gBAAAE;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,YAAAd;AAAA,MACA,OAAAC;AAAA,MACA,gBAAgBU,EAAe;AAAA,MAC/B,UAAUA,EAAe;AAAA,MACzB,cAAcF,GAAK,WAAW;AAAA,MAC9B,SAAAP;AAAA,MACA,YAAAC;AAAA,IAAA;AAAA,EAAA,IAMJ,gBAAAU;AAAA,IAACE;AAAA,IAAA;AAAA,MACC,YAAAf;AAAA,MACA,OAAAC;AAAA,MACA,SAAAC;AAAA,MACA,YAAAC;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"CompensationEditForm.js","sources":["../../../../../../src/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.tsx"],"sourcesContent":["import { useJobsAndCompensationsGetJobs } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsGetJobs'\nimport { getPendingCompensationChanges } from '../../shared/getPendingCompensationChanges'\nimport { CompensationEditJobForm } from '../CompensationEditJobForm/CompensationEditJobForm'\nimport { CompensationEditPendingJobForm } from '../CompensationEditPendingJobForm/CompensationEditPendingJobForm'\nimport { BaseLayout, type CommonComponentInterface } from '@/components/Base'\nimport type { OnEventType } from '@/components/Base/useBase'\nimport { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler'\nimport { type EventType } from '@/shared/constants'\n\n/**\n * Props for {@link CompensationEditForm}.\n *\n * @public\n */\nexport interface CompensationEditFormProps extends CommonComponentInterface<'Employee.Management.Compensation'> {\n /** The associated employee identifier. */\n employeeId: string\n /**\n * The id of the job whose compensation is being edited (for example, the `jobId` from the\n * {@link CompensationCard} `employee/management/compensation/card/editRequested` payload).\n * The form inspects the job's compensations to decide whether to edit the current\n * compensation or an already-scheduled future-dated change.\n */\n jobId: string\n /** Callback invoked when the form emits an event. See the events table on {@link CompensationEditForm} for the available event types and payloads. */\n onEvent: OnEventType<EventType, unknown>\n}\n\n/**\n * Standalone form that edits the compensation for a single job, branching automatically between editing the current compensation and an already-scheduled future-dated change.\n *\n * @remarks\n * Pair with {@link CompensationCard} to route its `employee/management/compensation/card/editRequested` event to this form. {@link Compensation} bundles the card, the three form surfaces (edit, add job, add another job), and the swap and alert wiring as a single drop-in; reach for this form directly only when that orchestration is the wrong fit (for example, when the form needs to render in a modal or drawer, or when the swap is driven by a router).\n *\n * | Event | Description | Data |\n * | ----- | ----------- | ---- |\n * | `employee/management/compensation/editForm/submitted` | Fired after the compensation change is saved; use it to return to the card | The updated `Compensation` entity |\n * | `employee/management/compensation/editForm/cancelled` | Fired when the user clicks Cancel; use it to return to the card | — |\n *\n * @param props - See {@link CompensationEditFormProps}.\n * @returns The rendered compensation edit form.\n * @public\n * @group Block Components\n */\nexport function CompensationEditForm({\n employeeId,\n jobId,\n onEvent,\n dictionary,\n}: CompensationEditFormProps) {\n const jobsQuery = useJobsAndCompensationsGetJobs({ employeeId }, { enabled: !!employeeId })\n\n if (jobsQuery.isLoading || !jobsQuery.data) {\n const errorHandling = composeErrorHandler([jobsQuery])\n return <BaseLayout isLoading error={errorHandling.errors} />\n }\n\n const job = jobsQuery.data.jobs?.find(j => j.uuid === jobId)\n\n // The API does not guarantee ordering of job.compensations, so rely on the\n // same sorted helper that drives the card display (ascending by effectiveDate)\n // to find the nearest pending change.\n const nearestPending = getPendingCompensationChanges(job ? [job] : [])[0]\n\n if (nearestPending) {\n return (\n <CompensationEditPendingJobForm\n employeeId={employeeId}\n jobId={jobId}\n compensationId={nearestPending.compensationUuid}\n isNewJob={nearestPending.isNewJob}\n isPrimaryJob={job?.primary ?? false}\n onEvent={onEvent}\n dictionary={dictionary}\n />\n )\n }\n\n return (\n <CompensationEditJobForm\n employeeId={employeeId}\n jobId={jobId}\n onEvent={onEvent}\n dictionary={dictionary}\n />\n )\n}\n"],"names":["CompensationEditForm","employeeId","jobId","onEvent","dictionary","jobsQuery","useJobsAndCompensationsGetJobs","errorHandling","composeErrorHandler","BaseLayout","job","j","nearestPending","getPendingCompensationChanges","jsx","CompensationEditPendingJobForm","CompensationEditJobForm"],"mappings":";;;;;;;;AA4CO,SAASA,EAAqB;AAAA,EACnC,YAAAC;AAAA,EACA,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,YAAAC;AACF,GAA8B;AAC5B,QAAMC,IAAYC,EAA+B,EAAE,YAAAL,EAAA,GAAc,EAAE,SAAS,CAAC,CAACA,GAAY;AAE1F,MAAII,EAAU,aAAa,CAACA,EAAU,MAAM;AAC1C,UAAME,IAAgBC,EAAoB,CAACH,CAAS,CAAC;AACrD,6BAAQI,GAAA,EAAW,WAAS,IAAC,OAAOF,EAAc,QAAQ;AAAA,EAC5D;AAEA,QAAMG,IAAML,EAAU,KAAK,MAAM,KAAK,CAAAM,MAAKA,EAAE,SAAST,CAAK,GAKrDU,IAAiBC,EAA8BH,IAAM,CAACA,CAAG,IAAI,CAAA,CAAE,EAAE,CAAC;AAExE,SAAIE,IAEA,gBAAAE;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,YAAAd;AAAA,MACA,OAAAC;AAAA,MACA,gBAAgBU,EAAe;AAAA,MAC/B,UAAUA,EAAe;AAAA,MACzB,cAAcF,GAAK,WAAW;AAAA,MAC9B,SAAAP;AAAA,MACA,YAAAC;AAAA,IAAA;AAAA,EAAA,IAMJ,gBAAAU;AAAA,IAACE;AAAA,IAAA;AAAA,MACC,YAAAf;AAAA,MACA,OAAAC;AAAA,MACA,SAAAC;AAAA,MACA,YAAAC;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -1,12 +1,24 @@
1
1
  import { CommonComponentInterface } from '../../../../Base';
2
2
  import { OnEventType } from '../../../../Base/useBase';
3
3
  import { EventType } from '../../../../../shared/constants';
4
+ /**
5
+ * Props for {@link CompensationEditJobForm}.
6
+ *
7
+ * @public
8
+ */
4
9
  export interface CompensationEditJobFormProps extends CommonComponentInterface<'Employee.Management.Compensation'> {
10
+ /** The associated employee identifier. */
5
11
  employeeId: string;
12
+ /** The job whose compensation is being edited. */
6
13
  jobId: string;
7
14
  /** Fires `EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_SUBMITTED` (with the saved
8
15
  * `Compensation`) on a successful save, and
9
16
  * `EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_CANCELLED` when the user cancels. */
10
17
  onEvent: OnEventType<EventType, unknown>;
11
18
  }
19
+ /**
20
+ * Schedules a future-dated compensation change for a job that's already in effect.
21
+ *
22
+ * @public
23
+ */
12
24
  export declare function CompensationEditJobForm({ dictionary, ...props }: CompensationEditJobFormProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"CompensationEditJobForm.js","sources":["../../../../../../src/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport { useTranslation } from 'react-i18next'\nimport { useJobsAndCompensationsGetJobs } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsGetJobs'\nimport { useJobForm } from '../../shared/useJobForm'\nimport { useCompensationForm, type CompensationFormData } from '../../shared/useCompensationForm'\nimport { ManagementCompensationFormBody } from '../ManagementCompensationFormBody'\nimport styles from './CompensationEditJobForm.module.scss'\nimport { BaseBoundaries, BaseLayout, type CommonComponentInterface } from '@/components/Base'\nimport type { OnEventType } from '@/components/Base/useBase'\nimport { Form } from '@/components/Common/Form'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler'\nimport { composeSubmitHandler } from '@/partner-hook-utils/form/composeSubmitHandler'\nimport { componentEvents, type EventType } from '@/shared/constants'\n\nexport interface CompensationEditJobFormProps extends CommonComponentInterface<'Employee.Management.Compensation'> {\n employeeId: string\n jobId: string\n /** Fires `EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_SUBMITTED` (with the saved\n * `Compensation`) on a successful save, and\n * `EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_CANCELLED` when the user cancels. */\n onEvent: OnEventType<EventType, unknown>\n}\n\nexport function CompensationEditJobForm({ dictionary, ...props }: CompensationEditJobFormProps) {\n useComponentDictionary('Employee.Management.Compensation', dictionary)\n return (\n <BaseBoundaries componentName=\"Employee.Management.Compensation\">\n <CompensationDefaultsLoader {...props} />\n </BaseBoundaries>\n )\n}\n\ntype LoaderProps = Omit<CompensationEditJobFormProps, 'dictionary'>\n\n// Fetches the current job's compensation data to pre-populate the form as\n// defaultValues before rendering Root. Uses the same non-suspense query that\n// useCompensationForm uses internally — React Query dedupes the request so no\n// extra network call is made once Root mounts.\n// defaultValues from CommonComponentInterface (unknown) is excluded from the\n// spread so it doesn't conflict with Root's typed defaultValues prop.\nfunction CompensationDefaultsLoader({\n employeeId,\n jobId,\n defaultValues: _baseDefaults,\n ...rest\n}: LoaderProps) {\n const jobsQuery = useJobsAndCompensationsGetJobs({ employeeId }, { enabled: !!employeeId })\n\n if (jobsQuery.isLoading || !jobsQuery.data) {\n const errorHandling = composeErrorHandler([jobsQuery])\n return <BaseLayout isLoading error={errorHandling.errors} />\n }\n\n const job = jobsQuery.data.jobs?.find(j => j.uuid === jobId)\n const currentComp = job?.compensations?.find(c => c.uuid === job.currentCompensationUuid)\n\n const defaultValues: Partial<CompensationFormData> | undefined = currentComp\n ? {\n // Title lives on compensation in the API — `job.title` can lag\n // behind comp-level edits on secondaries, so seed directly from\n // the comp.\n title: currentComp.title ?? undefined,\n flsaStatus: currentComp.flsaStatus ?? undefined,\n rate: Number(currentComp.rate),\n paymentUnit: currentComp.paymentUnit ?? undefined,\n adjustForMinimumWage: currentComp.adjustForMinimumWage ?? false,\n minimumWageId: currentComp.minimumWages?.[0]?.uuid ?? '',\n // effectiveDate intentionally omitted — user must choose a future date\n }\n : undefined\n\n return <Root employeeId={employeeId} jobId={jobId} defaultValues={defaultValues} {...rest} />\n}\n\ninterface RootProps extends LoaderProps {\n defaultValues?: Partial<CompensationFormData>\n}\n\nfunction Root({ employeeId, jobId, defaultValues, className, onEvent }: RootProps) {\n useI18n('Employee.Management.Compensation')\n const { t } = useTranslation('Employee.Management.Compensation')\n\n // Job form handles the non-effective-dated fields: 2% shareholder + WA WC.\n // Title is suppressed here because the compensation form owns title\n // (effective-dated alongside rate/unit/FLSA on the future-dated row).\n // Hire-date is suppressed because this surface never edits it.\n const jobForm = useJobForm({\n employeeId,\n jobId,\n withTitleField: false,\n withHireDateField: false,\n shouldFocusError: false,\n })\n\n // Compensation form runs in create mode (no compensationId) → POST\n // /v1/jobs/:jobId/compensations, creating a new future-dated compensation.\n // The form is pre-populated with the current comp's values via defaultValues\n // (fetched by CompensationDefaultsLoader) so the user can edit from the\n // current state, and picks a future effectiveDate to schedule the change.\n const compensationForm = useCompensationForm({\n employeeId,\n jobId,\n defaultValues,\n withEffectiveDateField: true,\n optionalFieldsToRequire: {\n create: ['title'],\n },\n shouldFocusError: false,\n })\n\n if (jobForm.isLoading || compensationForm.isLoading) {\n const loadingErrorHandling = composeErrorHandler([jobForm, compensationForm])\n return <BaseLayout isLoading error={loadingErrorHandling.errors} />\n }\n\n // PUT job first (immediate mutation of 2% shareholder / WC), then POST\n // the new compensation (the future-dated change). composeSubmitHandler\n // validates both forms in parallel and short-circuits before any network\n // I/O if either fails.\n const submitResult = composeSubmitHandler([jobForm, compensationForm], async () => {\n const jobResult = await jobForm.actions.onSubmit()\n if (!jobResult) return\n\n const compensationResult = await compensationForm.actions.onSubmit()\n if (!compensationResult) return\n\n onEvent(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_SUBMITTED,\n compensationResult.data,\n )\n })\n\n const errorHandling = composeErrorHandler([submitResult])\n const isPending = jobForm.status.isPending || compensationForm.status.isPending\n\n return (\n <section className={classNames(styles.container, className)}>\n <BaseLayout error={errorHandling.errors}>\n <Form onSubmit={submitResult.handleSubmit}>\n <ManagementCompensationFormBody\n jobForm={jobForm}\n compensationForm={compensationForm}\n title={t('editCompensationTitle')}\n submitCtaLabel={t('saveCta')}\n isPending={isPending}\n onCancel={() => {\n onEvent(componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_CANCELLED)\n }}\n />\n </Form>\n </BaseLayout>\n </section>\n )\n}\n"],"names":["CompensationEditJobForm","dictionary","props","useComponentDictionary","jsx","BaseBoundaries","CompensationDefaultsLoader","employeeId","jobId","_baseDefaults","rest","jobsQuery","useJobsAndCompensationsGetJobs","errorHandling","composeErrorHandler","BaseLayout","job","j","currentComp","c","defaultValues","Root","className","onEvent","useI18n","t","useTranslation","jobForm","useJobForm","compensationForm","useCompensationForm","loadingErrorHandling","submitResult","composeSubmitHandler","compensationResult","componentEvents","isPending","classNames","styles","Form","ManagementCompensationFormBody"],"mappings":";;;;;;;;;;;;;;;AAwBO,SAASA,EAAwB,EAAE,YAAAC,GAAY,GAAGC,KAAuC;AAC9F,SAAAC,EAAuB,oCAAoCF,CAAU,GAEnE,gBAAAG,EAACC,KAAe,eAAc,oCAC5B,4BAACC,GAAA,EAA4B,GAAGJ,GAAO,EAAA,CACzC;AAEJ;AAUA,SAASI,EAA2B;AAAA,EAClC,YAAAC;AAAA,EACA,OAAAC;AAAA,EACA,eAAeC;AAAA,EACf,GAAGC;AACL,GAAgB;AACd,QAAMC,IAAYC,EAA+B,EAAE,YAAAL,EAAA,GAAc,EAAE,SAAS,CAAC,CAACA,GAAY;AAE1F,MAAII,EAAU,aAAa,CAACA,EAAU,MAAM;AAC1C,UAAME,IAAgBC,EAAoB,CAACH,CAAS,CAAC;AACrD,6BAAQI,GAAA,EAAW,WAAS,IAAC,OAAOF,EAAc,QAAQ;AAAA,EAC5D;AAEA,QAAMG,IAAML,EAAU,KAAK,MAAM,KAAK,CAAAM,MAAKA,EAAE,SAAST,CAAK,GACrDU,IAAcF,GAAK,eAAe,KAAK,OAAKG,EAAE,SAASH,EAAI,uBAAuB,GAElFI,IAA2DF,IAC7D;AAAA;AAAA;AAAA;AAAA,IAIE,OAAOA,EAAY,SAAS;AAAA,IAC5B,YAAYA,EAAY,cAAc;AAAA,IACtC,MAAM,OAAOA,EAAY,IAAI;AAAA,IAC7B,aAAaA,EAAY,eAAe;AAAA,IACxC,sBAAsBA,EAAY,wBAAwB;AAAA,IAC1D,eAAeA,EAAY,eAAe,CAAC,GAAG,QAAQ;AAAA;AAAA,EAAA,IAGxD;AAEJ,2BAAQG,GAAA,EAAK,YAAAd,GAAwB,OAAAC,GAAc,eAAAY,GAA+B,GAAGV,GAAM;AAC7F;AAMA,SAASW,EAAK,EAAE,YAAAd,GAAY,OAAAC,GAAO,eAAAY,GAAe,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AAuB;AAAA,MAChC,gBAAgBA,EAAE,SAAS;AAAA,MAC3B,WAAAW;AAAA,MACA,UAAU,MAAM;AACd,QAAAb,EAAQY,EAAgB,oDAAoD;AAAA,MAC9E;AAAA,IAAA;AAAA,EAAA,EACF,CACF,GACF,GACF;AAEJ;"}
1
+ {"version":3,"file":"CompensationEditJobForm.js","sources":["../../../../../../src/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport { useTranslation } from 'react-i18next'\nimport { useJobsAndCompensationsGetJobs } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsGetJobs'\nimport { useJobForm } from '../../shared/useJobForm'\nimport { useCompensationForm, type CompensationFormData } from '../../shared/useCompensationForm'\nimport { ManagementCompensationFormBody } from '../ManagementCompensationFormBody'\nimport styles from './CompensationEditJobForm.module.scss'\nimport { BaseBoundaries, BaseLayout, type CommonComponentInterface } from '@/components/Base'\nimport type { OnEventType } from '@/components/Base/useBase'\nimport { Form } from '@/components/Common/Form'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler'\nimport { composeSubmitHandler } from '@/partner-hook-utils/form/composeSubmitHandler'\nimport { componentEvents, type EventType } from '@/shared/constants'\n\n/**\n * Props for {@link CompensationEditJobForm}.\n *\n * @public\n */\nexport interface CompensationEditJobFormProps extends CommonComponentInterface<'Employee.Management.Compensation'> {\n /** The associated employee identifier. */\n employeeId: string\n /** The job whose compensation is being edited. */\n jobId: string\n /** Fires `EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_SUBMITTED` (with the saved\n * `Compensation`) on a successful save, and\n * `EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_CANCELLED` when the user cancels. */\n onEvent: OnEventType<EventType, unknown>\n}\n\n/**\n * Schedules a future-dated compensation change for a job that's already in effect.\n *\n * @public\n */\nexport function CompensationEditJobForm({ dictionary, ...props }: CompensationEditJobFormProps) {\n useComponentDictionary('Employee.Management.Compensation', dictionary)\n return (\n <BaseBoundaries componentName=\"Employee.Management.Compensation\">\n <CompensationDefaultsLoader {...props} />\n </BaseBoundaries>\n )\n}\n\ntype LoaderProps = Omit<CompensationEditJobFormProps, 'dictionary'>\n\n// Fetches the current job's compensation data to pre-populate the form as\n// defaultValues before rendering Root. Uses the same non-suspense query that\n// useCompensationForm uses internally — React Query dedupes the request so no\n// extra network call is made once Root mounts.\n// defaultValues from CommonComponentInterface (unknown) is excluded from the\n// spread so it doesn't conflict with Root's typed defaultValues prop.\nfunction CompensationDefaultsLoader({\n employeeId,\n jobId,\n defaultValues: _baseDefaults,\n ...rest\n}: LoaderProps) {\n const jobsQuery = useJobsAndCompensationsGetJobs({ employeeId }, { enabled: !!employeeId })\n\n if (jobsQuery.isLoading || !jobsQuery.data) {\n const errorHandling = composeErrorHandler([jobsQuery])\n return <BaseLayout isLoading error={errorHandling.errors} />\n }\n\n const job = jobsQuery.data.jobs?.find(j => j.uuid === jobId)\n const currentComp = job?.compensations?.find(c => c.uuid === job.currentCompensationUuid)\n\n const defaultValues: Partial<CompensationFormData> | undefined = currentComp\n ? {\n // Title lives on compensation in the API — `job.title` can lag\n // behind comp-level edits on secondaries, so seed directly from\n // the comp.\n title: currentComp.title ?? undefined,\n flsaStatus: currentComp.flsaStatus ?? undefined,\n rate: Number(currentComp.rate),\n paymentUnit: currentComp.paymentUnit ?? undefined,\n adjustForMinimumWage: currentComp.adjustForMinimumWage ?? false,\n minimumWageId: currentComp.minimumWages?.[0]?.uuid ?? '',\n // effectiveDate intentionally omitted — user must choose a future date\n }\n : undefined\n\n return <Root employeeId={employeeId} jobId={jobId} defaultValues={defaultValues} {...rest} />\n}\n\ninterface RootProps extends LoaderProps {\n defaultValues?: Partial<CompensationFormData>\n}\n\nfunction Root({ employeeId, jobId, defaultValues, className, onEvent }: RootProps) {\n useI18n('Employee.Management.Compensation')\n const { t } = useTranslation('Employee.Management.Compensation')\n\n // Job form handles the non-effective-dated fields: 2% shareholder + WA WC.\n // Title is suppressed here because the compensation form owns title\n // (effective-dated alongside rate/unit/FLSA on the future-dated row).\n // Hire-date is suppressed because this surface never edits it.\n const jobForm = useJobForm({\n employeeId,\n jobId,\n withTitleField: false,\n withHireDateField: false,\n shouldFocusError: false,\n })\n\n // Compensation form runs in create mode (no compensationId) → POST\n // /v1/jobs/:jobId/compensations, creating a new future-dated compensation.\n // The form is pre-populated with the current comp's values via defaultValues\n // (fetched by CompensationDefaultsLoader) so the user can edit from the\n // current state, and picks a future effectiveDate to schedule the change.\n const compensationForm = useCompensationForm({\n employeeId,\n jobId,\n defaultValues,\n withEffectiveDateField: true,\n optionalFieldsToRequire: {\n create: ['title'],\n },\n shouldFocusError: false,\n })\n\n if (jobForm.isLoading || compensationForm.isLoading) {\n const loadingErrorHandling = composeErrorHandler([jobForm, compensationForm])\n return <BaseLayout isLoading error={loadingErrorHandling.errors} />\n }\n\n // PUT job first (immediate mutation of 2% shareholder / WC), then POST\n // the new compensation (the future-dated change). composeSubmitHandler\n // validates both forms in parallel and short-circuits before any network\n // I/O if either fails.\n const submitResult = composeSubmitHandler([jobForm, compensationForm], async () => {\n const jobResult = await jobForm.actions.onSubmit()\n if (!jobResult) return\n\n const compensationResult = await compensationForm.actions.onSubmit()\n if (!compensationResult) return\n\n onEvent(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_SUBMITTED,\n compensationResult.data,\n )\n })\n\n const errorHandling = composeErrorHandler([submitResult])\n const isPending = jobForm.status.isPending || compensationForm.status.isPending\n\n return (\n <section className={classNames(styles.container, className)}>\n <BaseLayout error={errorHandling.errors}>\n <Form onSubmit={submitResult.handleSubmit}>\n <ManagementCompensationFormBody\n jobForm={jobForm}\n compensationForm={compensationForm}\n title={t('editCompensationTitle')}\n submitCtaLabel={t('saveCta')}\n isPending={isPending}\n onCancel={() => {\n onEvent(componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_CANCELLED)\n }}\n />\n </Form>\n </BaseLayout>\n </section>\n )\n}\n"],"names":["CompensationEditJobForm","dictionary","props","useComponentDictionary","jsx","BaseBoundaries","CompensationDefaultsLoader","employeeId","jobId","_baseDefaults","rest","jobsQuery","useJobsAndCompensationsGetJobs","errorHandling","composeErrorHandler","BaseLayout","job","j","currentComp","c","defaultValues","Root","className","onEvent","useI18n","t","useTranslation","jobForm","useJobForm","compensationForm","useCompensationForm","loadingErrorHandling","submitResult","composeSubmitHandler","compensationResult","componentEvents","isPending","classNames","styles","Form","ManagementCompensationFormBody"],"mappings":";;;;;;;;;;;;;;;AAoCO,SAASA,EAAwB,EAAE,YAAAC,GAAY,GAAGC,KAAuC;AAC9F,SAAAC,EAAuB,oCAAoCF,CAAU,GAEnE,gBAAAG,EAACC,KAAe,eAAc,oCAC5B,4BAACC,GAAA,EAA4B,GAAGJ,GAAO,EAAA,CACzC;AAEJ;AAUA,SAASI,EAA2B;AAAA,EAClC,YAAAC;AAAA,EACA,OAAAC;AAAA,EACA,eAAeC;AAAA,EACf,GAAGC;AACL,GAAgB;AACd,QAAMC,IAAYC,EAA+B,EAAE,YAAAL,EAAA,GAAc,EAAE,SAAS,CAAC,CAACA,GAAY;AAE1F,MAAII,EAAU,aAAa,CAACA,EAAU,MAAM;AAC1C,UAAME,IAAgBC,EAAoB,CAACH,CAAS,CAAC;AACrD,6BAAQI,GAAA,EAAW,WAAS,IAAC,OAAOF,EAAc,QAAQ;AAAA,EAC5D;AAEA,QAAMG,IAAML,EAAU,KAAK,MAAM,KAAK,CAAAM,MAAKA,EAAE,SAAST,CAAK,GACrDU,IAAcF,GAAK,eAAe,KAAK,OAAKG,EAAE,SAASH,EAAI,uBAAuB,GAElFI,IAA2DF,IAC7D;AAAA;AAAA;AAAA;AAAA,IAIE,OAAOA,EAAY,SAAS;AAAA,IAC5B,YAAYA,EAAY,cAAc;AAAA,IACtC,MAAM,OAAOA,EAAY,IAAI;AAAA,IAC7B,aAAaA,EAAY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AO;AAEtE,2BACG,WAAA,EAAQ,WAAWQ,EAAWC,EAAO,WAAWhB,CAAS,GACxD,UAAA,gBAAAlB,EAACW,GAAA,EAAW,OAAOF,EAAc,QAC/B,4BAAC0B,GAAA,EAAK,UAAUP,EAAa,cAC3B,UAAA,gBAAA5B;AAAA,IAACoC;AAAA,IAAA;AAAA,MACC,SAAAb;AAAA,MACA,kBAAAE;AAAA,MACA,OAAOJ,EAAE,uBAAuB;AAAA,MAChC,gBAAgBA,EAAE,SAAS;AAAA,MAC3B,WAAAW;AAAA,MACA,UAAU,MAAM;AACd,QAAAb,EAAQY,EAAgB,oDAAoD;AAAA,MAC9E;AAAA,IAAA;AAAA,EAAA,EACF,CACF,GACF,GACF;AAEJ;"}
@@ -1,8 +1,15 @@
1
1
  import { CommonComponentInterface } from '../../../../Base';
2
2
  import { OnEventType } from '../../../../Base/useBase';
3
3
  import { EventType } from '../../../../../shared/constants';
4
+ /**
5
+ * Props for {@link CompensationEditPendingJobForm}.
6
+ *
7
+ * @public
8
+ */
4
9
  export interface CompensationEditPendingJobFormProps extends CommonComponentInterface<'Employee.Management.Compensation'> {
10
+ /** The associated employee identifier. */
5
11
  employeeId: string;
12
+ /** The job whose pending compensation is being edited. */
6
13
  jobId: string;
7
14
  /** The UUID of the pending (future-dated) compensation to update. Always required — this
8
15
  * component only operates in update mode. */
@@ -22,4 +29,9 @@ export interface CompensationEditPendingJobFormProps extends CommonComponentInte
22
29
  * `EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_CANCELLED` when the user cancels. */
23
30
  onEvent: OnEventType<EventType, unknown>;
24
31
  }
32
+ /**
33
+ * Edits a pending (future-dated) compensation in place.
34
+ *
35
+ * @public
36
+ */
25
37
  export declare function CompensationEditPendingJobForm({ dictionary, ...props }: CompensationEditPendingJobFormProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"CompensationEditPendingJobForm.js","sources":["../../../../../../src/components/Employee/Compensation/management/CompensationEditPendingJobForm/CompensationEditPendingJobForm.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport { useTranslation } from 'react-i18next'\nimport { useJobForm } from '../../shared/useJobForm'\nimport { useCompensationForm } from '../../shared/useCompensationForm'\nimport { ManagementCompensationFormBody } from '../ManagementCompensationFormBody'\nimport styles from './CompensationEditPendingJobForm.module.scss'\nimport { BaseBoundaries, BaseLayout, type CommonComponentInterface } from '@/components/Base'\nimport type { OnEventType } from '@/components/Base/useBase'\nimport { Form } from '@/components/Common/Form'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler'\nimport { composeSubmitHandler } from '@/partner-hook-utils/form/composeSubmitHandler'\nimport { componentEvents, type EventType } from '@/shared/constants'\n\nexport interface CompensationEditPendingJobFormProps extends CommonComponentInterface<'Employee.Management.Compensation'> {\n employeeId: string\n jobId: string\n /** The UUID of the pending (future-dated) compensation to update. Always required — this\n * component only operates in update mode. */\n compensationId: string\n /**\n * True when the job has no current (on-or-before-today) compensation — i.e. it hasn't\n * started yet. Drives which date field is shown and how the submit syncs hire_date.\n */\n isNewJob: boolean\n /**\n * True when this is the employee's primary job. Combined with `isNewJob`, determines\n * whether to show a Hire date field (primary) or Effective date field (secondary/change).\n */\n isPrimaryJob: boolean\n /** Fires `EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_SUBMITTED` (with the saved\n * `Compensation`) on a successful save, and\n * `EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_CANCELLED` when the user cancels. */\n onEvent: OnEventType<EventType, unknown>\n}\n\nexport function CompensationEditPendingJobForm({\n dictionary,\n ...props\n}: CompensationEditPendingJobFormProps) {\n useComponentDictionary('Employee.Management.Compensation', dictionary)\n return (\n <BaseBoundaries componentName=\"Employee.Management.Compensation\">\n <Root {...props} />\n </BaseBoundaries>\n )\n}\n\ntype RootProps = Omit<CompensationEditPendingJobFormProps, 'dictionary'>\n\nfunction Root({\n employeeId,\n jobId,\n compensationId,\n isNewJob,\n isPrimaryJob,\n className,\n onEvent,\n}: RootProps) {\n useI18n('Employee.Management.Compensation')\n const { t } = useTranslation('Employee.Management.Compensation')\n\n // For a primary new job (hire date in the future, no current comp), the hire\n // date field is shown instead of the effective date field. This keeps\n // hire_date and comp effective_date in sync so the API doesn't auto-create a\n // second compensation when the initial comp moves off the hire date.\n const isPrimaryNewJob = isNewJob && isPrimaryJob\n\n // Title is owned by `useCompensationForm` here: title is stored on\n // compensation in the API (job.title is just a denormalized snapshot of\n // the primary comp's title), so writing it via PUT /v1/compensations is\n // the direct path. The dashboard row reads the title off the comp pointed\n // to by `currentCompensationUuid`, so the change surfaces immediately\n // whether the job is in effect today or still pending.\n const jobForm = useJobForm({\n employeeId,\n jobId,\n withTitleField: false,\n withHireDateField: isPrimaryNewJob,\n optionalFieldsToRequire: isPrimaryNewJob ? { update: ['hireDate'] } : undefined,\n shouldFocusError: false,\n })\n\n const compensationForm = useCompensationForm({\n employeeId,\n jobId,\n compensationId,\n // Primary new job: comp date is set via jobForm's hire date on submit —\n // hide it here to avoid showing two date fields.\n withEffectiveDateField: !isPrimaryNewJob,\n optionalFieldsToRequire: {\n update: isPrimaryNewJob\n ? ['title', 'flsaStatus', 'rate', 'paymentUnit']\n : ['title', 'flsaStatus', 'rate', 'paymentUnit', 'effectiveDate'],\n },\n shouldFocusError: false,\n })\n\n if (jobForm.isLoading || compensationForm.isLoading) {\n const loadingErrorHandling = composeErrorHandler([jobForm, compensationForm])\n return <BaseLayout isLoading error={loadingErrorHandling.errors} />\n }\n\n const submitResult = composeSubmitHandler([jobForm, compensationForm], async () => {\n // For a primary new job, the user edits the hire date field. We read it\n // back here and pass it to the comp submit so both the job's hire_date and\n // the comp's effective_date land on the same value — preventing the API\n // from auto-creating a second compensation to fill the gap at the old date.\n const hireDateOverride = isPrimaryNewJob\n ? (jobForm.form.hookFormInternals.formMethods.getValues('hireDate') ?? undefined)\n : undefined\n\n const jobResult = await jobForm.actions.onSubmit()\n if (!jobResult) return\n\n // When the hire date moves forward, the API auto-syncs the compensation's\n // effective_date to the new hire_date as part of the job PUT, which bumps\n // the compensation's version. Read it from the job response so the\n // subsequent compensation PUT doesn't send a stale version.\n const freshCompVersion = jobResult.data.compensations?.find(\n c => c.uuid === compensationId,\n )?.version\n\n const compensationResult = await compensationForm.actions.onSubmit({\n ...(hireDateOverride ? { effectiveDate: hireDateOverride } : {}),\n compensationVersion: freshCompVersion,\n })\n if (!compensationResult) return\n\n onEvent(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_SUBMITTED,\n compensationResult.data,\n )\n })\n\n const errorHandling = composeErrorHandler([submitResult])\n const isPending = jobForm.status.isPending || compensationForm.status.isPending\n\n return (\n <section className={classNames(styles.container, className)}>\n <BaseLayout error={errorHandling.errors}>\n <Form onSubmit={submitResult.handleSubmit}>\n <ManagementCompensationFormBody\n jobForm={jobForm}\n compensationForm={compensationForm}\n title={t('editCompensationTitle')}\n submitCtaLabel={t('saveCta')}\n isPending={isPending}\n onCancel={() => {\n onEvent(componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_CANCELLED)\n }}\n />\n </Form>\n </BaseLayout>\n </section>\n )\n}\n"],"names":["CompensationEditPendingJobForm","dictionary","props","useComponentDictionary","jsx","BaseBoundaries","Root","employeeId","jobId","compensationId","isNewJob","isPrimaryJob","className","onEvent","useI18n","t","useTranslation","isPrimaryNewJob","jobForm","useJobForm","compensationForm","useCompensationForm","loadingErrorHandling","composeErrorHandler","BaseLayout","submitResult","composeSubmitHandler","hireDateOverride","jobResult","freshCompVersion","c","compensationResult","componentEvents","errorHandling","isPending","classNames","styles","Form","ManagementCompensationFormBody"],"mappings":";;;;;;;;;;;;;;AAoCO,SAASA,EAA+B;AAAA,EAC7C,YAAAC;AAAA,EACA,GAAGC;AACL,GAAwC;AACtC,SAAAC,EAAuB,oCAAoCF,CAAU,GAEnE,gBAAAG,EAACC,KAAe,eAAc,oCAC5B,4BAACC,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AAE,MAAKA,EAAE,SAASrB;AAAA,IAAA,GACf,SAEGsB,IAAqB,MAAMX,EAAiB,QAAQ,SAAS;AAAA,MACjE,GAAIO,IAAmB,EAAE,eAAeA,EAAA,IAAqB,CAAA;AAAA,MAC7D,qBAAqBE;AAAA,IAAA,CACtB;AACD,IAAKE,KAELlB;AAAA,MACEmB,EAAgB;AAAA,MAChBD,EAAmB;AAAA,IAAA;AAAA,EAEvB,CAAC,GAEKE,IAAgBV,EAAoB,CAACE,CAAY,CAAC,GAClDS,IAAYhB,EAAQ,OAAO,aAAaE,EAAiB,OAAO;AAEtE,2BACG,WAAA,EAAQ,WAAWe,EAAWC,EAAO,WAAWxB,CAAS,GACxD,UAAA,gBAAAR,EAACoB,GAAA,EAAW,OAAOS,EAAc,QAC/B,4BAACI,GAAA,EAAK,UAAUZ,EAAa,cAC3B,UAAA,gBAAArB;AAAA,IAACkC;AAAA,IAAA;AAAA,MACC,SAAApB;AAAA,MACA,kBAAAE;AAAA,MACA,OAAOL,EAAE,uBAAuB;AAAA,MAChC,gBAAgBA,EAAE,SAAS;AAAA,MAC3B,WAAAmB;AAAA,MACA,UAAU,MAAM;AACd,QAAArB,EAAQmB,EAAgB,oDAAoD;AAAA,MAC9E;AAAA,IAAA;AAAA,EAAA,EACF,CACF,GACF,GACF;AAEJ;"}
1
+ {"version":3,"file":"CompensationEditPendingJobForm.js","sources":["../../../../../../src/components/Employee/Compensation/management/CompensationEditPendingJobForm/CompensationEditPendingJobForm.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport { useTranslation } from 'react-i18next'\nimport { useJobForm } from '../../shared/useJobForm'\nimport { useCompensationForm } from '../../shared/useCompensationForm'\nimport { ManagementCompensationFormBody } from '../ManagementCompensationFormBody'\nimport styles from './CompensationEditPendingJobForm.module.scss'\nimport { BaseBoundaries, BaseLayout, type CommonComponentInterface } from '@/components/Base'\nimport type { OnEventType } from '@/components/Base/useBase'\nimport { Form } from '@/components/Common/Form'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { composeErrorHandler } from '@/partner-hook-utils/composeErrorHandler'\nimport { composeSubmitHandler } from '@/partner-hook-utils/form/composeSubmitHandler'\nimport { componentEvents, type EventType } from '@/shared/constants'\n\n/**\n * Props for {@link CompensationEditPendingJobForm}.\n *\n * @public\n */\nexport interface CompensationEditPendingJobFormProps extends CommonComponentInterface<'Employee.Management.Compensation'> {\n /** The associated employee identifier. */\n employeeId: string\n /** The job whose pending compensation is being edited. */\n jobId: string\n /** The UUID of the pending (future-dated) compensation to update. Always required — this\n * component only operates in update mode. */\n compensationId: string\n /**\n * True when the job has no current (on-or-before-today) compensation — i.e. it hasn't\n * started yet. Drives which date field is shown and how the submit syncs hire_date.\n */\n isNewJob: boolean\n /**\n * True when this is the employee's primary job. Combined with `isNewJob`, determines\n * whether to show a Hire date field (primary) or Effective date field (secondary/change).\n */\n isPrimaryJob: boolean\n /** Fires `EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_SUBMITTED` (with the saved\n * `Compensation`) on a successful save, and\n * `EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_CANCELLED` when the user cancels. */\n onEvent: OnEventType<EventType, unknown>\n}\n\n/**\n * Edits a pending (future-dated) compensation in place.\n *\n * @public\n */\nexport function CompensationEditPendingJobForm({\n dictionary,\n ...props\n}: CompensationEditPendingJobFormProps) {\n useComponentDictionary('Employee.Management.Compensation', dictionary)\n return (\n <BaseBoundaries componentName=\"Employee.Management.Compensation\">\n <Root {...props} />\n </BaseBoundaries>\n )\n}\n\ntype RootProps = Omit<CompensationEditPendingJobFormProps, 'dictionary'>\n\nfunction Root({\n employeeId,\n jobId,\n compensationId,\n isNewJob,\n isPrimaryJob,\n className,\n onEvent,\n}: RootProps) {\n useI18n('Employee.Management.Compensation')\n const { t } = useTranslation('Employee.Management.Compensation')\n\n // For a primary new job (hire date in the future, no current comp), the hire\n // date field is shown instead of the effective date field. This keeps\n // hire_date and comp effective_date in sync so the API doesn't auto-create a\n // second compensation when the initial comp moves off the hire date.\n const isPrimaryNewJob = isNewJob && isPrimaryJob\n\n // Title is owned by `useCompensationForm` here: title is stored on\n // compensation in the API (job.title is just a denormalized snapshot of\n // the primary comp's title), so writing it via PUT /v1/compensations is\n // the direct path. The dashboard row reads the title off the comp pointed\n // to by `currentCompensationUuid`, so the change surfaces immediately\n // whether the job is in effect today or still pending.\n const jobForm = useJobForm({\n employeeId,\n jobId,\n withTitleField: false,\n withHireDateField: isPrimaryNewJob,\n optionalFieldsToRequire: isPrimaryNewJob ? { update: ['hireDate'] } : undefined,\n shouldFocusError: false,\n })\n\n const compensationForm = useCompensationForm({\n employeeId,\n jobId,\n compensationId,\n // Primary new job: comp date is set via jobForm's hire date on submit —\n // hide it here to avoid showing two date fields.\n withEffectiveDateField: !isPrimaryNewJob,\n optionalFieldsToRequire: {\n update: isPrimaryNewJob\n ? ['title', 'flsaStatus', 'rate', 'paymentUnit']\n : ['title', 'flsaStatus', 'rate', 'paymentUnit', 'effectiveDate'],\n },\n shouldFocusError: false,\n })\n\n if (jobForm.isLoading || compensationForm.isLoading) {\n const loadingErrorHandling = composeErrorHandler([jobForm, compensationForm])\n return <BaseLayout isLoading error={loadingErrorHandling.errors} />\n }\n\n const submitResult = composeSubmitHandler([jobForm, compensationForm], async () => {\n // For a primary new job, the user edits the hire date field. We read it\n // back here and pass it to the comp submit so both the job's hire_date and\n // the comp's effective_date land on the same value — preventing the API\n // from auto-creating a second compensation to fill the gap at the old date.\n const hireDateOverride = isPrimaryNewJob\n ? (jobForm.form.hookFormInternals.formMethods.getValues('hireDate') ?? undefined)\n : undefined\n\n const jobResult = await jobForm.actions.onSubmit()\n if (!jobResult) return\n\n // When the hire date moves forward, the API auto-syncs the compensation's\n // effective_date to the new hire_date as part of the job PUT, which bumps\n // the compensation's version. Read it from the job response so the\n // subsequent compensation PUT doesn't send a stale version.\n const freshCompVersion = jobResult.data.compensations?.find(\n c => c.uuid === compensationId,\n )?.version\n\n const compensationResult = await compensationForm.actions.onSubmit({\n ...(hireDateOverride ? { effectiveDate: hireDateOverride } : {}),\n compensationVersion: freshCompVersion,\n })\n if (!compensationResult) return\n\n onEvent(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_SUBMITTED,\n compensationResult.data,\n )\n })\n\n const errorHandling = composeErrorHandler([submitResult])\n const isPending = jobForm.status.isPending || compensationForm.status.isPending\n\n return (\n <section className={classNames(styles.container, className)}>\n <BaseLayout error={errorHandling.errors}>\n <Form onSubmit={submitResult.handleSubmit}>\n <ManagementCompensationFormBody\n jobForm={jobForm}\n compensationForm={compensationForm}\n title={t('editCompensationTitle')}\n submitCtaLabel={t('saveCta')}\n isPending={isPending}\n onCancel={() => {\n onEvent(componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_CANCELLED)\n }}\n />\n </Form>\n </BaseLayout>\n </section>\n )\n}\n"],"names":["CompensationEditPendingJobForm","dictionary","props","useComponentDictionary","jsx","BaseBoundaries","Root","employeeId","jobId","compensationId","isNewJob","isPrimaryJob","className","onEvent","useI18n","t","useTranslation","isPrimaryNewJob","jobForm","useJobForm","compensationForm","useCompensationForm","loadingErrorHandling","composeErrorHandler","BaseLayout","submitResult","composeSubmitHandler","hireDateOverride","jobResult","freshCompVersion","c","compensationResult","componentEvents","errorHandling","isPending","classNames","styles","Form","ManagementCompensationFormBody"],"mappings":";;;;;;;;;;;;;;AAgDO,SAASA,EAA+B;AAAA,EAC7C,YAAAC;AAAA,EACA,GAAGC;AACL,GAAwC;AACtC,SAAAC,EAAuB,oCAAoCF,CAAU,GAEnE,gBAAAG,EAACC,KAAe,eAAc,oCAC5B,4BAACC,GAAA,EAAM,GAAGJ,GAAO,EAAA,CACnB;AAEJ;AAIA,SAASI,EAAK;AAAA,EACZ,YAAAC;AAAA,EACA,OAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,UAAAC;AAAA,EACA,cAAAC;AAAA,EACA,WAAAC;AAAA,EACA,SAAAC;AACF,GA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ELlB;AAAA,MACEmB,EAAgB;AAAA,MAChBD,EAAmB;AAAA,IAAA;AAAA,EAEvB,CAAC,GAEKE,IAAgBV,EAAoB,CAACE,CAAY,CAAC,GAClDS,IAAYhB,EAAQ,OAAO,aAAaE,EAAiB,OAAO;AAEtE,2BACG,WAAA,EAAQ,WAAWe,EAAWC,EAAO,WAAWxB,CAAS,GACxD,UAAA,gBAAAR,EAACoB,GAAA,EAAW,OAAOS,EAAc,QAC/B,4BAACI,GAAA,EAAK,UAAUZ,EAAa,cAC3B,UAAA,gBAAArB;AAAA,IAACkC;AAAA,IAAA;AAAA,MACC,SAAApB;AAAA,MACA,kBAAAE;AAAA,MACA,OAAOL,EAAE,uBAAuB;AAAA,MAChC,gBAAgBA,EAAE,SAAS;AAAA,MAC3B,WAAAmB;AAAA,MACA,UAAU,MAAM;AACd,QAAArB,EAAQmB,EAAgB,oDAAoD;AAAA,MAC9E;AAAA,IAAA;AAAA,EAAA,EACF,CACF,GACF,GACF;AAEJ;"}
@@ -1,5 +1,6 @@
1
1
  import { UseJobFormReady } from '../shared/useJobForm';
2
2
  import { UseCompensationFormReady } from '../shared/useCompensationForm';
3
+ /** @internal */
3
4
  export interface ManagementCompensationFormBodyProps {
4
5
  jobForm: UseJobFormReady;
5
6
  compensationForm: UseCompensationFormReady;
@@ -14,5 +15,7 @@ export interface ManagementCompensationFormBodyProps {
14
15
  * Field visibility is driven entirely by hook configuration — the hooks expose `undefined`
15
16
  * for fields that should not render — so this component renders the correct subset for each
16
17
  * use case without extra conditional props.
18
+ *
19
+ * @internal
17
20
  */
18
21
  export declare function ManagementCompensationFormBody({ jobForm, compensationForm, title, submitCtaLabel, isPending, onCancel, }: ManagementCompensationFormBodyProps): import("react").JSX.Element;
@@ -3,9 +3,10 @@ import { useTranslation as h, Trans as d } from "react-i18next";
3
3
  import { Flex as c } from "../../../Common/Flex/Flex.js";
4
4
  import { ActionsLayout as R } from "../../../Common/ActionsLayout/ActionsLayout.js";
5
5
  import { useComponentContext as v } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
6
+ import "react";
6
7
  import { FLSA_OVERTIME_SALARY_LIMIT as b } from "../../../../shared/constants.js";
7
8
  import C from "../../../../hooks/useNumberFormatter.js";
8
- function A({
9
+ function S({
9
10
  jobForm: n,
10
11
  compensationForm: i,
11
12
  title: g,
@@ -214,6 +215,6 @@ function A({
214
215
  ] });
215
216
  }
216
217
  export {
217
- A as ManagementCompensationFormBody
218
+ S as ManagementCompensationFormBody
218
219
  };
219
220
  //# sourceMappingURL=ManagementCompensationFormBody.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ManagementCompensationFormBody.js","sources":["../../../../../src/components/Employee/Compensation/management/ManagementCompensationFormBody.tsx"],"sourcesContent":["import { Trans, useTranslation } from 'react-i18next'\nimport type { PaymentUnit } from '@gusto/embedded-api-v-2025-11-15/models/components/compensation'\nimport type { FlsaStatusType } from '@gusto/embedded-api-v-2025-11-15/models/components/flsastatustype'\nimport type { MinimumWage } from '@gusto/embedded-api-v-2025-11-15/models/components/minimumwage'\nimport type { UseJobFormReady } from '../shared/useJobForm'\nimport type { UseCompensationFormReady } from '../shared/useCompensationForm'\nimport { ActionsLayout, Flex } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { FLSA_OVERTIME_SALARY_LIMIT } from '@/shared/constants'\nimport useNumberFormatter from '@/hooks/useNumberFormatter'\n\nexport interface ManagementCompensationFormBodyProps {\n jobForm: UseJobFormReady\n compensationForm: UseCompensationFormReady\n title: string\n submitCtaLabel: string\n isPending: boolean\n onCancel?: () => void\n}\n\n/**\n * Renders the shared field layout used by both `EditCompensation` (schedule a future comp\n * change for a present job) and `EditPendingCompensation` (update an existing future comp).\n * Field visibility is driven entirely by hook configuration — the hooks expose `undefined`\n * for fields that should not render — so this component renders the correct subset for each\n * use case without extra conditional props.\n */\nexport function ManagementCompensationFormBody({\n jobForm,\n compensationForm,\n title,\n submitCtaLabel,\n isPending,\n onCancel,\n}: ManagementCompensationFormBodyProps) {\n const { t } = useTranslation('Employee.Management.Compensation')\n const Components = useComponentContext()\n const format = useNumberFormatter('currency')\n\n const JobFields = jobForm.form.Fields\n const CompFields = compensationForm.form.Fields\n\n return (\n <Flex flexDirection=\"column\" gap={32}>\n <Components.Heading as=\"h2\">{title}</Components.Heading>\n\n <Flex flexDirection=\"column\" gap={20}>\n <CompFields.Title\n label={t('jobTitleLabel')}\n validationMessages={{ REQUIRED: t('validations.jobTitleSentence') }}\n formHookResult={compensationForm}\n />\n\n {JobFields.HireDate && (\n <JobFields.HireDate\n label={t('hireDateLabel')}\n validationMessages={{\n REQUIRED: t('validations.hireDate'),\n }}\n formHookResult={jobForm}\n />\n )}\n\n {CompFields.FlsaStatus && (\n <>\n <CompFields.FlsaStatus\n label={t('employeeClassification')}\n description={\n <Trans\n t={t}\n i18nKey=\"classificationLink\"\n components={{ ClassificationLink: <Components.Link /> }}\n />\n }\n validationMessages={{\n REQUIRED: t('validations.exemptThreshold', {\n limit: format(FLSA_OVERTIME_SALARY_LIMIT),\n }),\n }}\n getOptionLabel={(status: FlsaStatusType) => t(`flsaStatusLabels.${status}`)}\n formHookResult={compensationForm}\n />\n {(compensationForm.status.showCommissionFederalMinimumPayAlert ||\n compensationForm.status.showCommissionMinimumWageAlert ||\n compensationForm.status.showOwnerSalaryAlert ||\n compensationForm.status.willDeleteSecondaryJobs) && (\n <Flex flexDirection=\"column\" gap={0}>\n {compensationForm.status.willDeleteSecondaryJobs && (\n <Components.Alert\n label={t('validations.classificationChangeNotification')}\n status=\"warning\"\n >\n {t('validations.classificationChangeRemovesSecondaryJobs')}\n </Components.Alert>\n )}\n {compensationForm.status.showCommissionFederalMinimumPayAlert && (\n <Components.Alert\n status=\"info\"\n label={t('commissionAlerts.federalMinimumPay.label')}\n disableScrollIntoView\n >\n {t('commissionAlerts.federalMinimumPay.body')}\n </Components.Alert>\n )}\n {compensationForm.status.showCommissionMinimumWageAlert && (\n <Components.Alert\n status=\"info\"\n label={t('commissionAlerts.minimumWage.label')}\n disableScrollIntoView\n >\n <Trans\n t={t}\n i18nKey=\"commissionAlerts.minimumWage.body\"\n components={{\n minimumWageLink: (\n <Components.Link\n href=\"https://support.gusto.com/article/112472520100000/manage-tip-wages-distributed-service-charges-and-tip-credits-in-gusto-for-admins\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n />\n ),\n }}\n />\n </Components.Alert>\n )}\n {compensationForm.status.showOwnerSalaryAlert && (\n <Components.Alert\n status=\"info\"\n label={t('commissionAlerts.ownerSalary.label')}\n disableScrollIntoView\n />\n )}\n </Flex>\n )}\n </>\n )}\n\n {CompFields.Rate && (\n <CompFields.Rate\n label={t('wageLabel')}\n validationMessages={{\n REQUIRED: t('validations.rate'),\n RATE_MINIMUM: t('validations.nonZeroRate'),\n RATE_EXEMPT_THRESHOLD: t('validations.rateExemptThreshold', {\n limit: format(FLSA_OVERTIME_SALARY_LIMIT),\n }),\n }}\n formHookResult={compensationForm}\n />\n )}\n\n {CompFields.PaymentUnit && (\n <CompFields.PaymentUnit\n label={t('wageFrequencyLabel')}\n description={t('paymentUnitDescription')}\n validationMessages={{ REQUIRED: t('validations.paymentUnit') }}\n getOptionLabel={(unit: PaymentUnit) => t(`paymentUnitOptions.${unit}` as const)}\n formHookResult={compensationForm}\n />\n )}\n\n {CompFields.EffectiveDate && (\n <CompFields.EffectiveDate\n label={t('effectiveDateLabel')}\n validationMessages={{\n REQUIRED: t('validations.effectiveDate'),\n EFFECTIVE_DATE_BEFORE_HIRE: t('validations.effectiveDateBeforeHire'),\n EFFECTIVE_DATE_BEFORE_MIN: t('validations.effectiveDateBeforeMin'),\n }}\n formHookResult={compensationForm}\n />\n )}\n\n {CompFields.AdjustForMinimumWage && (\n <CompFields.AdjustForMinimumWage\n label={t('adjustForMinimumWage')}\n description={t('adjustForMinimumWageDescription')}\n formHookResult={compensationForm}\n />\n )}\n\n {CompFields.MinimumWageId && (\n <CompFields.MinimumWageId\n label={t('minimumWageLabel')}\n description={t('minimumWageDescription')}\n validationMessages={{ REQUIRED: t('validations.minimumWage') }}\n getOptionLabel={(wage: MinimumWage) =>\n `${format(Number(wage.wage))} - ${wage.authority}: ${wage.notes ?? ''}`\n }\n formHookResult={compensationForm}\n />\n )}\n\n {JobFields.TwoPercentShareholder && (\n <JobFields.TwoPercentShareholder\n label={t('twoPercentShareholderLabel')}\n formHookResult={jobForm}\n />\n )}\n\n {JobFields.StateWcCovered && (\n <JobFields.StateWcCovered\n label={t('stateWcCoveredLabel')}\n description={\n <Trans\n t={t}\n i18nKey=\"stateWcCoveredDescription\"\n components={{\n wcLink: (\n <Components.Link\n href=\"https://www.lni.wa.gov/insurance/rates-risk-classes/risk-classes-for-workers-compensation/risk-class-lookup#/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n />\n ),\n }}\n />\n }\n getOptionLabel={(covered: boolean) =>\n covered ? t('stateWcCoveredOptions.yes') : t('stateWcCoveredOptions.no')\n }\n formHookResult={jobForm}\n />\n )}\n\n {JobFields.StateWcClassCode && (\n <JobFields.StateWcClassCode\n label={t('stateWcClassCodeLabel')}\n description={t('stateWcClassCodeDescription')}\n placeholder={t('stateWcClassCodeLabel')}\n validationMessages={{ REQUIRED: t('validations.stateWcClassCode') }}\n formHookResult={jobForm}\n />\n )}\n </Flex>\n\n <ActionsLayout>\n {onCancel && (\n <Components.Button variant=\"secondary\" onClick={onCancel} isDisabled={isPending}>\n {t('cancelCta')}\n </Components.Button>\n )}\n <Components.Button type=\"submit\" isLoading={isPending}>\n {submitCtaLabel}\n </Components.Button>\n </ActionsLayout>\n </Flex>\n )\n}\n"],"names":["ManagementCompensationFormBody","jobForm","compensationForm","title","submitCtaLabel","isPending","onCancel","t","useTranslation","Components","useComponentContext","format","useNumberFormatter","JobFields","CompFields","jsxs","Flex","jsx","Fragment","Trans","FLSA_OVERTIME_SALARY_LIMIT","status","unit","wage","covered","ActionsLayout"],"mappings":";;;;;;;AA2BO,SAASA,EAA+B;AAAA,EAC7C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;AAAA,MAAA;AAAA,IAClB,GAEJ;AAAA,sBAECwB,GAAA,EACE,UAAA;AAAA,MAAAnB,KACC,gBAAAW,EAACR,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASH,GAAU,YAAYD,GACnE,UAAAE,EAAE,WAAW,EAAA,CAChB;AAAA,MAEF,gBAAAU,EAACR,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWJ,GACzC,UAAAD,EAAA,CACH;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;"}
1
+ {"version":3,"file":"ManagementCompensationFormBody.js","sources":["../../../../../src/components/Employee/Compensation/management/ManagementCompensationFormBody.tsx"],"sourcesContent":["import { Trans, useTranslation } from 'react-i18next'\nimport type { PaymentUnit } from '@gusto/embedded-api-v-2025-11-15/models/components/compensation'\nimport type { FlsaStatusType } from '@gusto/embedded-api-v-2025-11-15/models/components/flsastatustype'\nimport type { MinimumWage } from '@gusto/embedded-api-v-2025-11-15/models/components/minimumwage'\nimport type { UseJobFormReady } from '../shared/useJobForm'\nimport type { UseCompensationFormReady } from '../shared/useCompensationForm'\nimport { ActionsLayout, Flex } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { FLSA_OVERTIME_SALARY_LIMIT } from '@/shared/constants'\nimport useNumberFormatter from '@/hooks/useNumberFormatter'\n\n/** @internal */\nexport interface ManagementCompensationFormBodyProps {\n jobForm: UseJobFormReady\n compensationForm: UseCompensationFormReady\n title: string\n submitCtaLabel: string\n isPending: boolean\n onCancel?: () => void\n}\n\n/**\n * Renders the shared field layout used by both `EditCompensation` (schedule a future comp\n * change for a present job) and `EditPendingCompensation` (update an existing future comp).\n * Field visibility is driven entirely by hook configuration — the hooks expose `undefined`\n * for fields that should not render — so this component renders the correct subset for each\n * use case without extra conditional props.\n *\n * @internal\n */\nexport function ManagementCompensationFormBody({\n jobForm,\n compensationForm,\n title,\n submitCtaLabel,\n isPending,\n onCancel,\n}: ManagementCompensationFormBodyProps) {\n const { t } = useTranslation('Employee.Management.Compensation')\n const Components = useComponentContext()\n const format = useNumberFormatter('currency')\n\n const JobFields = jobForm.form.Fields\n const CompFields = compensationForm.form.Fields\n\n return (\n <Flex flexDirection=\"column\" gap={32}>\n <Components.Heading as=\"h2\">{title}</Components.Heading>\n\n <Flex flexDirection=\"column\" gap={20}>\n <CompFields.Title\n label={t('jobTitleLabel')}\n validationMessages={{ REQUIRED: t('validations.jobTitleSentence') }}\n formHookResult={compensationForm}\n />\n\n {JobFields.HireDate && (\n <JobFields.HireDate\n label={t('hireDateLabel')}\n validationMessages={{\n REQUIRED: t('validations.hireDate'),\n }}\n formHookResult={jobForm}\n />\n )}\n\n {CompFields.FlsaStatus && (\n <>\n <CompFields.FlsaStatus\n label={t('employeeClassification')}\n description={\n <Trans\n t={t}\n i18nKey=\"classificationLink\"\n components={{ ClassificationLink: <Components.Link /> }}\n />\n }\n validationMessages={{\n REQUIRED: t('validations.exemptThreshold', {\n limit: format(FLSA_OVERTIME_SALARY_LIMIT),\n }),\n }}\n getOptionLabel={(status: FlsaStatusType) => t(`flsaStatusLabels.${status}`)}\n formHookResult={compensationForm}\n />\n {(compensationForm.status.showCommissionFederalMinimumPayAlert ||\n compensationForm.status.showCommissionMinimumWageAlert ||\n compensationForm.status.showOwnerSalaryAlert ||\n compensationForm.status.willDeleteSecondaryJobs) && (\n <Flex flexDirection=\"column\" gap={0}>\n {compensationForm.status.willDeleteSecondaryJobs && (\n <Components.Alert\n label={t('validations.classificationChangeNotification')}\n status=\"warning\"\n >\n {t('validations.classificationChangeRemovesSecondaryJobs')}\n </Components.Alert>\n )}\n {compensationForm.status.showCommissionFederalMinimumPayAlert && (\n <Components.Alert\n status=\"info\"\n label={t('commissionAlerts.federalMinimumPay.label')}\n disableScrollIntoView\n >\n {t('commissionAlerts.federalMinimumPay.body')}\n </Components.Alert>\n )}\n {compensationForm.status.showCommissionMinimumWageAlert && (\n <Components.Alert\n status=\"info\"\n label={t('commissionAlerts.minimumWage.label')}\n disableScrollIntoView\n >\n <Trans\n t={t}\n i18nKey=\"commissionAlerts.minimumWage.body\"\n components={{\n minimumWageLink: (\n <Components.Link\n href=\"https://support.gusto.com/article/112472520100000/manage-tip-wages-distributed-service-charges-and-tip-credits-in-gusto-for-admins\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n />\n ),\n }}\n />\n </Components.Alert>\n )}\n {compensationForm.status.showOwnerSalaryAlert && (\n <Components.Alert\n status=\"info\"\n label={t('commissionAlerts.ownerSalary.label')}\n disableScrollIntoView\n />\n )}\n </Flex>\n )}\n </>\n )}\n\n {CompFields.Rate && (\n <CompFields.Rate\n label={t('wageLabel')}\n validationMessages={{\n REQUIRED: t('validations.rate'),\n RATE_MINIMUM: t('validations.nonZeroRate'),\n RATE_EXEMPT_THRESHOLD: t('validations.rateExemptThreshold', {\n limit: format(FLSA_OVERTIME_SALARY_LIMIT),\n }),\n }}\n formHookResult={compensationForm}\n />\n )}\n\n {CompFields.PaymentUnit && (\n <CompFields.PaymentUnit\n label={t('wageFrequencyLabel')}\n description={t('paymentUnitDescription')}\n validationMessages={{ REQUIRED: t('validations.paymentUnit') }}\n getOptionLabel={(unit: PaymentUnit) => t(`paymentUnitOptions.${unit}` as const)}\n formHookResult={compensationForm}\n />\n )}\n\n {CompFields.EffectiveDate && (\n <CompFields.EffectiveDate\n label={t('effectiveDateLabel')}\n validationMessages={{\n REQUIRED: t('validations.effectiveDate'),\n EFFECTIVE_DATE_BEFORE_HIRE: t('validations.effectiveDateBeforeHire'),\n EFFECTIVE_DATE_BEFORE_MIN: t('validations.effectiveDateBeforeMin'),\n }}\n formHookResult={compensationForm}\n />\n )}\n\n {CompFields.AdjustForMinimumWage && (\n <CompFields.AdjustForMinimumWage\n label={t('adjustForMinimumWage')}\n description={t('adjustForMinimumWageDescription')}\n formHookResult={compensationForm}\n />\n )}\n\n {CompFields.MinimumWageId && (\n <CompFields.MinimumWageId\n label={t('minimumWageLabel')}\n description={t('minimumWageDescription')}\n validationMessages={{ REQUIRED: t('validations.minimumWage') }}\n getOptionLabel={(wage: MinimumWage) =>\n `${format(Number(wage.wage))} - ${wage.authority}: ${wage.notes ?? ''}`\n }\n formHookResult={compensationForm}\n />\n )}\n\n {JobFields.TwoPercentShareholder && (\n <JobFields.TwoPercentShareholder\n label={t('twoPercentShareholderLabel')}\n formHookResult={jobForm}\n />\n )}\n\n {JobFields.StateWcCovered && (\n <JobFields.StateWcCovered\n label={t('stateWcCoveredLabel')}\n description={\n <Trans\n t={t}\n i18nKey=\"stateWcCoveredDescription\"\n components={{\n wcLink: (\n <Components.Link\n href=\"https://www.lni.wa.gov/insurance/rates-risk-classes/risk-classes-for-workers-compensation/risk-class-lookup#/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n />\n ),\n }}\n />\n }\n getOptionLabel={(covered: boolean) =>\n covered ? t('stateWcCoveredOptions.yes') : t('stateWcCoveredOptions.no')\n }\n formHookResult={jobForm}\n />\n )}\n\n {JobFields.StateWcClassCode && (\n <JobFields.StateWcClassCode\n label={t('stateWcClassCodeLabel')}\n description={t('stateWcClassCodeDescription')}\n placeholder={t('stateWcClassCodeLabel')}\n validationMessages={{ REQUIRED: t('validations.stateWcClassCode') }}\n formHookResult={jobForm}\n />\n )}\n </Flex>\n\n <ActionsLayout>\n {onCancel && (\n <Components.Button variant=\"secondary\" onClick={onCancel} isDisabled={isPending}>\n {t('cancelCta')}\n </Components.Button>\n )}\n <Components.Button type=\"submit\" isLoading={isPending}>\n {submitCtaLabel}\n </Components.Button>\n </ActionsLayout>\n </Flex>\n )\n}\n"],"names":["ManagementCompensationFormBody","jobForm","compensationForm","title","submitCtaLabel","isPending","onCancel","t","useTranslation","Components","useComponentContext","format","useNumberFormatter","JobFields","CompFields","jsxs","Flex","jsx","Fragment","Trans","FLSA_OVERTIME_SALARY_LIMIT","status","unit","wage","covered","ActionsLayout"],"mappings":";;;;;;;;AA8BO,SAASA,EAA+B;AAAA,EAC7C,SAAAC;AAAA,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AAA,IAClB,GAEJ;AAAA,sBAECwB,GAAA,EACE,UAAA;AAAA,MAAAnB,KACC,gBAAAW,EAACR,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASH,GAAU,YAAYD,GACnE,UAAAE,EAAE,WAAW,EAAA,CAChB;AAAA,MAEF,gBAAAU,EAACR,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWJ,GACzC,UAAAD,EAAA,CACH;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;"}
@@ -1,3 +1,4 @@
1
+ /** @internal */
1
2
  export declare const compensationStateMachine: {
2
3
  card: import('robot3').MachineState<any>;
3
4
  editCompensation: import('robot3').MachineState<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"compensationStateMachine.js","sources":["../../../../../src/components/Employee/Compensation/management/compensationStateMachine.ts"],"sourcesContent":["import { reduce, state, transition } from 'robot3'\nimport type { ComponentType } from 'react'\nimport type { CompensationContextInterface } from './CompensationComponents'\nimport {\n CompensationCardContextual,\n CompensationEditFormContextual,\n CompensationAddJobFormContextual,\n CompensationAddAnotherJobFormContextual,\n} from './CompensationComponents'\nimport { componentEvents } from '@/shared/constants'\nimport type { MachineEventType, MachineTransition } from '@/types/Helpers'\n\ntype EventPayloads = {\n [componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_CARD_EDIT_REQUESTED]: {\n employeeId: string\n jobId: string\n }\n}\n\nconst returnToCard = reduce(\n (ctx: CompensationContextInterface): CompensationContextInterface => ({\n ...ctx,\n component: CompensationCardContextual as ComponentType,\n successAlert: null,\n currentJobId: null,\n }),\n)\n\nconst returnToCardWithAlert = (alert: CompensationContextInterface['successAlert']) =>\n reduce(\n (ctx: CompensationContextInterface): CompensationContextInterface => ({\n ...ctx,\n component: CompensationCardContextual as ComponentType,\n successAlert: alert,\n currentJobId: null,\n }),\n )\n\nexport const compensationStateMachine = {\n card: state<MachineTransition>(\n transition(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_CARD_EDIT_REQUESTED,\n 'editCompensation',\n reduce(\n (\n ctx: CompensationContextInterface,\n ev: MachineEventType<\n EventPayloads,\n typeof componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_CARD_EDIT_REQUESTED\n >,\n ): CompensationContextInterface => ({\n ...ctx,\n component: CompensationEditFormContextual as ComponentType,\n currentJobId: ev.payload.jobId,\n successAlert: null,\n }),\n ),\n ),\n transition(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_CARD_ADD_REQUESTED,\n 'addJob',\n reduce(\n (ctx: CompensationContextInterface): CompensationContextInterface => ({\n ...ctx,\n component: CompensationAddJobFormContextual as ComponentType,\n currentJobId: null,\n successAlert: null,\n }),\n ),\n ),\n transition(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_CARD_ADD_ANOTHER_REQUESTED,\n 'addAnotherJob',\n reduce(\n (ctx: CompensationContextInterface): CompensationContextInterface => ({\n ...ctx,\n component: CompensationAddAnotherJobFormContextual as ComponentType,\n currentJobId: null,\n successAlert: null,\n }),\n ),\n ),\n transition(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_ALERT_DISMISSED,\n 'card',\n returnToCard,\n ),\n ),\n editCompensation: state<MachineTransition>(\n transition(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_SUBMITTED,\n 'card',\n returnToCard,\n ),\n transition(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_CANCELLED,\n 'card',\n returnToCard,\n ),\n ),\n addJob: state<MachineTransition>(\n transition(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_ADD_JOB_FORM_SUBMITTED,\n 'card',\n returnToCardWithAlert('jobAdded'),\n ),\n transition(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_ADD_JOB_FORM_CANCELLED,\n 'card',\n returnToCard,\n ),\n ),\n addAnotherJob: state<MachineTransition>(\n transition(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_ADD_ANOTHER_JOB_FORM_SUBMITTED,\n 'card',\n returnToCardWithAlert('jobAdded'),\n ),\n transition(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_ADD_ANOTHER_JOB_FORM_CANCELLED,\n 'card',\n returnToCard,\n ),\n ),\n}\n"],"names":["returnToCard","reduce","ctx","CompensationCardContextual","returnToCardWithAlert","alert","compensationStateMachine","state","transition","componentEvents","ev","CompensationEditFormContextual","CompensationAddJobFormContextual","CompensationAddAnotherJobFormContextual"],"mappings":";;;AAmBA,MAAMA,IAAeC;AAAA,EACnB,CAACC,OAAqE;AAAA,IACpE,GAAGA;AAAA,IACH,WAAWC;AAAA,IACX,cAAc;AAAA,IACd,cAAc;AAAA,EAAA;AAElB,GAEMC,IAAwB,CAACC,MAC7BJ;AAAA,EACE,CAACC,OAAqE;AAAA,IACpE,GAAGA;AAAA,IACH,WAAWC;AAAA,IACX,cAAcE;AAAA,IACd,cAAc;AAAA,EAAA;AAElB,GAEWC,IAA2B;AAAA,EACtC,MAAMC;AAAA,IACJC;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAR;AAAA,QACE,CACEC,GACAQ,OAIkC;AAAA,UAClC,GAAGR;AAAA,UACH,WAAWS;AAAA,UACX,cAAcD,EAAG,QAAQ;AAAA,UACzB,cAAc;AAAA,QAAA;AAAA,MAChB;AAAA,IACF;AAAA,IAEFF;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAR;AAAA,QACE,CAACC,OAAqE;AAAA,UACpE,GAAGA;AAAA,UACH,WAAWU;AAAA,UACX,cAAc;AAAA,UACd,cAAc;AAAA,QAAA;AAAA,MAChB;AAAA,IACF;AAAA,IAEFJ;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAR;AAAA,QACE,CAACC,OAAqE;AAAA,UACpE,GAAGA;AAAA,UACH,WAAWW;AAAA,UACX,cAAc;AAAA,UACd,cAAc;AAAA,QAAA;AAAA,MAChB;AAAA,IACF;AAAA,IAEFL;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAT;AAAA,IAAA;AAAA,EACF;AAAA,EAEF,kBAAkBO;AAAA,IAChBC;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAT;AAAA,IAAA;AAAA,IAEFQ;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAT;AAAA,IAAA;AAAA,EACF;AAAA,EAEF,QAAQO;AAAA,IACNC;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAL,EAAsB,UAAU;AAAA,IAAA;AAAA,IAElCI;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAT;AAAA,IAAA;AAAA,EACF;AAAA,EAEF,eAAeO;AAAA,IACbC;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAL,EAAsB,UAAU;AAAA,IAAA;AAAA,IAElCI;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAT;AAAA,IAAA;AAAA,EACF;AAEJ;"}
1
+ {"version":3,"file":"compensationStateMachine.js","sources":["../../../../../src/components/Employee/Compensation/management/compensationStateMachine.ts"],"sourcesContent":["import { reduce, state, transition } from 'robot3'\nimport type { ComponentType } from 'react'\nimport type { CompensationContextInterface } from './CompensationComponents'\nimport {\n CompensationCardContextual,\n CompensationEditFormContextual,\n CompensationAddJobFormContextual,\n CompensationAddAnotherJobFormContextual,\n} from './CompensationComponents'\nimport { componentEvents } from '@/shared/constants'\nimport type { MachineEventType, MachineTransition } from '@/types/Helpers'\n\ntype EventPayloads = {\n [componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_CARD_EDIT_REQUESTED]: {\n employeeId: string\n jobId: string\n }\n}\n\nconst returnToCard = reduce(\n (ctx: CompensationContextInterface): CompensationContextInterface => ({\n ...ctx,\n component: CompensationCardContextual as ComponentType,\n successAlert: null,\n currentJobId: null,\n }),\n)\n\nconst returnToCardWithAlert = (alert: CompensationContextInterface['successAlert']) =>\n reduce(\n (ctx: CompensationContextInterface): CompensationContextInterface => ({\n ...ctx,\n component: CompensationCardContextual as ComponentType,\n successAlert: alert,\n currentJobId: null,\n }),\n )\n\n/** @internal */\nexport const compensationStateMachine = {\n card: state<MachineTransition>(\n transition(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_CARD_EDIT_REQUESTED,\n 'editCompensation',\n reduce(\n (\n ctx: CompensationContextInterface,\n ev: MachineEventType<\n EventPayloads,\n typeof componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_CARD_EDIT_REQUESTED\n >,\n ): CompensationContextInterface => ({\n ...ctx,\n component: CompensationEditFormContextual as ComponentType,\n currentJobId: ev.payload.jobId,\n successAlert: null,\n }),\n ),\n ),\n transition(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_CARD_ADD_REQUESTED,\n 'addJob',\n reduce(\n (ctx: CompensationContextInterface): CompensationContextInterface => ({\n ...ctx,\n component: CompensationAddJobFormContextual as ComponentType,\n currentJobId: null,\n successAlert: null,\n }),\n ),\n ),\n transition(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_CARD_ADD_ANOTHER_REQUESTED,\n 'addAnotherJob',\n reduce(\n (ctx: CompensationContextInterface): CompensationContextInterface => ({\n ...ctx,\n component: CompensationAddAnotherJobFormContextual as ComponentType,\n currentJobId: null,\n successAlert: null,\n }),\n ),\n ),\n transition(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_ALERT_DISMISSED,\n 'card',\n returnToCard,\n ),\n ),\n editCompensation: state<MachineTransition>(\n transition(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_SUBMITTED,\n 'card',\n returnToCard,\n ),\n transition(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_EDIT_FORM_CANCELLED,\n 'card',\n returnToCard,\n ),\n ),\n addJob: state<MachineTransition>(\n transition(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_ADD_JOB_FORM_SUBMITTED,\n 'card',\n returnToCardWithAlert('jobAdded'),\n ),\n transition(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_ADD_JOB_FORM_CANCELLED,\n 'card',\n returnToCard,\n ),\n ),\n addAnotherJob: state<MachineTransition>(\n transition(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_ADD_ANOTHER_JOB_FORM_SUBMITTED,\n 'card',\n returnToCardWithAlert('jobAdded'),\n ),\n transition(\n componentEvents.EMPLOYEE_MANAGEMENT_COMPENSATION_ADD_ANOTHER_JOB_FORM_CANCELLED,\n 'card',\n returnToCard,\n ),\n ),\n}\n"],"names":["returnToCard","reduce","ctx","CompensationCardContextual","returnToCardWithAlert","alert","compensationStateMachine","state","transition","componentEvents","ev","CompensationEditFormContextual","CompensationAddJobFormContextual","CompensationAddAnotherJobFormContextual"],"mappings":";;;AAmBA,MAAMA,IAAeC;AAAA,EACnB,CAACC,OAAqE;AAAA,IACpE,GAAGA;AAAA,IACH,WAAWC;AAAA,IACX,cAAc;AAAA,IACd,cAAc;AAAA,EAAA;AAElB,GAEMC,IAAwB,CAACC,MAC7BJ;AAAA,EACE,CAACC,OAAqE;AAAA,IACpE,GAAGA;AAAA,IACH,WAAWC;AAAA,IACX,cAAcE;AAAA,IACd,cAAc;AAAA,EAAA;AAElB,GAGWC,IAA2B;AAAA,EACtC,MAAMC;AAAA,IACJC;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAR;AAAA,QACE,CACEC,GACAQ,OAIkC;AAAA,UAClC,GAAGR;AAAA,UACH,WAAWS;AAAA,UACX,cAAcD,EAAG,QAAQ;AAAA,UACzB,cAAc;AAAA,QAAA;AAAA,MAChB;AAAA,IACF;AAAA,IAEFF;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAR;AAAA,QACE,CAACC,OAAqE;AAAA,UACpE,GAAGA;AAAA,UACH,WAAWU;AAAA,UACX,cAAc;AAAA,UACd,cAAc;AAAA,QAAA;AAAA,MAChB;AAAA,IACF;AAAA,IAEFJ;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAR;AAAA,QACE,CAACC,OAAqE;AAAA,UACpE,GAAGA;AAAA,UACH,WAAWW;AAAA,UACX,cAAc;AAAA,UACd,cAAc;AAAA,QAAA;AAAA,MAChB;AAAA,IACF;AAAA,IAEFL;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAT;AAAA,IAAA;AAAA,EACF;AAAA,EAEF,kBAAkBO;AAAA,IAChBC;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAT;AAAA,IAAA;AAAA,IAEFQ;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAT;AAAA,IAAA;AAAA,EACF;AAAA,EAEF,QAAQO;AAAA,IACNC;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAL,EAAsB,UAAU;AAAA,IAAA;AAAA,IAElCI;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAT;AAAA,IAAA;AAAA,EACF;AAAA,EAEF,eAAeO;AAAA,IACbC;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAL,EAAsB,UAAU;AAAA,IAAA;AAAA,IAElCI;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAT;AAAA,IAAA;AAAA,EACF;AAEJ;"}
@@ -7,5 +7,7 @@ import { AddCompensationFormDictionary } from '../shared/AddCompensationFormBody
7
7
  * `Employee.Management.Compensation` flow through here into the rendered form.
8
8
  * Interpolated strings keep their `{{limit}}` placeholder intact so the form
9
9
  * body interpolates the live value at render.
10
+ *
11
+ * @internal
10
12
  */
11
13
  export declare function useManagementCompensationDictionary(): AddCompensationFormDictionary;
@@ -1 +1 @@
1
- {"version":3,"file":"useManagementCompensationDictionary.js","sources":["../../../../../src/components/Employee/Compensation/management/useManagementCompensationDictionary.ts"],"sourcesContent":["import { useMemo } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport type { AddCompensationFormDictionary } from '../shared/AddCompensationFormBody'\n\n/**\n * Resolves management's `Employee.Management.Compensation` copy onto the\n * `Employee.Compensation` keys that the shared `AddCompensationFormBody` reads,\n * so management surfaces (add first job, add another job) render their own copy\n * while staying isolated from onboarding. Partner overrides on\n * `Employee.Management.Compensation` flow through here into the rendered form.\n * Interpolated strings keep their `{{limit}}` placeholder intact so the form\n * body interpolates the live value at render.\n */\nexport function useManagementCompensationDictionary(): AddCompensationFormDictionary {\n const { t } = useTranslation('Employee.Management.Compensation')\n\n return useMemo<AddCompensationFormDictionary>(\n () => ({\n en: {\n jobTitle: t('jobTitle'),\n hireDate: t('hireDate'),\n employeeClassification: t('employeeClassification'),\n classificationLink: t('classificationLink'),\n wageLabel: t('wageLabel'),\n wageFrequencyLabel: t('wageFrequencyLabel'),\n paymentUnitDescription: t('paymentUnitDescription'),\n adjustForMinimumWage: t('adjustForMinimumWage'),\n adjustForMinimumWageDescription: t('adjustForMinimumWageDescription'),\n minimumWageLabel: t('minimumWageLabel'),\n minimumWageDescription: t('minimumWageDescription'),\n effectiveDate: t('effectiveDate'),\n twoPercentStakeholderLabel: t('twoPercentStakeholderLabel'),\n stateWcCoveredLabel: t('stateWcCoveredLabel'),\n stateWcCoveredDescription: t('stateWcCoveredDescription'),\n stateWcCoveredOptions: {\n yes: t('stateWcCoveredOptions.yes'),\n no: t('stateWcCoveredOptions.no'),\n },\n stateWcClassCodeLabel: t('stateWcClassCodeLabel'),\n stateWcClassCodeDescription: t('stateWcClassCodeDescription'),\n cancelNewJobCta: t('cancelNewJobCta'),\n flsaStatusLabels: {\n 'Commission Only Exempt': t('flsaStatusLabels.Commission Only Exempt'),\n 'Commission Only Nonexempt': t('flsaStatusLabels.Commission Only Nonexempt'),\n Exempt: t('flsaStatusLabels.Exempt'),\n Nonexempt: t('flsaStatusLabels.Nonexempt'),\n Owner: t('flsaStatusLabels.Owner'),\n 'Salaried Nonexempt': t('flsaStatusLabels.Salaried Nonexempt'),\n },\n paymentUnitOptions: {\n Hour: t('paymentUnitOptions.Hour'),\n Month: t('paymentUnitOptions.Month'),\n Paycheck: t('paymentUnitOptions.Paycheck'),\n Week: t('paymentUnitOptions.Week'),\n Year: t('paymentUnitOptions.Year'),\n },\n commissionAlerts: {\n federalMinimumPay: {\n label: t('commissionAlerts.federalMinimumPay.label'),\n body: t('commissionAlerts.federalMinimumPay.body'),\n },\n minimumWage: {\n label: t('commissionAlerts.minimumWage.label'),\n body: t('commissionAlerts.minimumWage.body'),\n },\n ownerSalary: {\n label: t('commissionAlerts.ownerSalary.label'),\n },\n },\n validations: {\n title: t('validations.title'),\n hireDate: t('validations.hireDate'),\n classificationChangeNotification: t('validations.classificationChangeNotification'),\n exemptThreshold: t('validations.exemptThreshold', { limit: '{{limit}}' }),\n rate: t('validations.rate'),\n nonZeroRate: t('validations.nonZeroRate'),\n rateExemptThreshold: t('validations.rateExemptThreshold', { limit: '{{limit}}' }),\n paymentUnit: t('validations.paymentUnit'),\n minimumWage: t('validations.minimumWage'),\n stateWcClassCode: t('validations.stateWcClassCode'),\n effectiveDate: t('validations.effectiveDate'),\n effectiveDateBeforeHire: t('validations.effectiveDateBeforeHire'),\n effectiveDateBeforeMin: t('validations.effectiveDateBeforeMin'),\n },\n },\n }),\n [t],\n )\n}\n"],"names":["useManagementCompensationDictionary","t","useTranslation","useMemo"],"mappings":";;AAaO,SAASA,IAAqE;AACnF,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,kCAAkC;AAE/D,SAAOC;AAAA,IACL,OAAO;AAAA,MACL,IAAI;AAAA,QACF,UAAUF,EAAE,UAAU;AAAA,QACtB,UAAUA,EAAE,UAAU;AAAA,QACtB,wBAAwBA,EAAE,wBAAwB;AAAA,QAClD,oBAAoBA,EAAE,oBAAoB;AAAA,QAC1C,WAAWA,EAAE,WAAW;AAAA,QACxB,oBAAoBA,EAAE,oBAAoB;AAAA,QAC1C,wBAAwBA,EAAE,wBAAwB;AAAA,QAClD,sBAAsBA,EAAE,sBAAsB;AAAA,QAC9C,iCAAiCA,EAAE,iCAAiC;AAAA,QACpE,kB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AsB;AAAA,UAClC,kCAAkCA,EAAE,8CAA8C;AAAA,UAClF,iBAAiBA,EAAE,+BAA+B,EAAE,OAAO,aAAa;AAAA,UACxE,MAAMA,EAAE,kBAAkB;AAAA,UAC1B,aAAaA,EAAE,yBAAyB;AAAA,UACxC,qBAAqBA,EAAE,mCAAmC,EAAE,OAAO,aAAa;AAAA,UAChF,aAAaA,EAAE,yBAAyB;AAAA,UACxC,aAAaA,EAAE,yBAAyB;AAAA,UACxC,kBAAkBA,EAAE,8BAA8B;AAAA,UAClD,eAAeA,EAAE,2BAA2B;AAAA,UAC5C,yBAAyBA,EAAE,qCAAqC;AAAA,UAChE,wBAAwBA,EAAE,oCAAoC;AAAA,QAAA;AAAA,MAChE;AAAA,IACF;AAAA,IAEF,CAACA,CAAC;AAAA,EAAA;AAEN;"}
1
+ {"version":3,"file":"useManagementCompensationDictionary.js","sources":["../../../../../src/components/Employee/Compensation/management/useManagementCompensationDictionary.ts"],"sourcesContent":["import { useMemo } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport type { AddCompensationFormDictionary } from '../shared/AddCompensationFormBody'\n\n/**\n * Resolves management's `Employee.Management.Compensation` copy onto the\n * `Employee.Compensation` keys that the shared `AddCompensationFormBody` reads,\n * so management surfaces (add first job, add another job) render their own copy\n * while staying isolated from onboarding. Partner overrides on\n * `Employee.Management.Compensation` flow through here into the rendered form.\n * Interpolated strings keep their `{{limit}}` placeholder intact so the form\n * body interpolates the live value at render.\n *\n * @internal\n */\nexport function useManagementCompensationDictionary(): AddCompensationFormDictionary {\n const { t } = useTranslation('Employee.Management.Compensation')\n\n return useMemo<AddCompensationFormDictionary>(\n () => ({\n en: {\n jobTitle: t('jobTitle'),\n hireDate: t('hireDate'),\n employeeClassification: t('employeeClassification'),\n classificationLink: t('classificationLink'),\n wageLabel: t('wageLabel'),\n wageFrequencyLabel: t('wageFrequencyLabel'),\n paymentUnitDescription: t('paymentUnitDescription'),\n adjustForMinimumWage: t('adjustForMinimumWage'),\n adjustForMinimumWageDescription: t('adjustForMinimumWageDescription'),\n minimumWageLabel: t('minimumWageLabel'),\n minimumWageDescription: t('minimumWageDescription'),\n effectiveDate: t('effectiveDate'),\n twoPercentStakeholderLabel: t('twoPercentStakeholderLabel'),\n stateWcCoveredLabel: t('stateWcCoveredLabel'),\n stateWcCoveredDescription: t('stateWcCoveredDescription'),\n stateWcCoveredOptions: {\n yes: t('stateWcCoveredOptions.yes'),\n no: t('stateWcCoveredOptions.no'),\n },\n stateWcClassCodeLabel: t('stateWcClassCodeLabel'),\n stateWcClassCodeDescription: t('stateWcClassCodeDescription'),\n cancelNewJobCta: t('cancelNewJobCta'),\n flsaStatusLabels: {\n 'Commission Only Exempt': t('flsaStatusLabels.Commission Only Exempt'),\n 'Commission Only Nonexempt': t('flsaStatusLabels.Commission Only Nonexempt'),\n Exempt: t('flsaStatusLabels.Exempt'),\n Nonexempt: t('flsaStatusLabels.Nonexempt'),\n Owner: t('flsaStatusLabels.Owner'),\n 'Salaried Nonexempt': t('flsaStatusLabels.Salaried Nonexempt'),\n },\n paymentUnitOptions: {\n Hour: t('paymentUnitOptions.Hour'),\n Month: t('paymentUnitOptions.Month'),\n Paycheck: t('paymentUnitOptions.Paycheck'),\n Week: t('paymentUnitOptions.Week'),\n Year: t('paymentUnitOptions.Year'),\n },\n commissionAlerts: {\n federalMinimumPay: {\n label: t('commissionAlerts.federalMinimumPay.label'),\n body: t('commissionAlerts.federalMinimumPay.body'),\n },\n minimumWage: {\n label: t('commissionAlerts.minimumWage.label'),\n body: t('commissionAlerts.minimumWage.body'),\n },\n ownerSalary: {\n label: t('commissionAlerts.ownerSalary.label'),\n },\n },\n validations: {\n title: t('validations.title'),\n hireDate: t('validations.hireDate'),\n classificationChangeNotification: t('validations.classificationChangeNotification'),\n exemptThreshold: t('validations.exemptThreshold', { limit: '{{limit}}' }),\n rate: t('validations.rate'),\n nonZeroRate: t('validations.nonZeroRate'),\n rateExemptThreshold: t('validations.rateExemptThreshold', { limit: '{{limit}}' }),\n paymentUnit: t('validations.paymentUnit'),\n minimumWage: t('validations.minimumWage'),\n stateWcClassCode: t('validations.stateWcClassCode'),\n effectiveDate: t('validations.effectiveDate'),\n effectiveDateBeforeHire: t('validations.effectiveDateBeforeHire'),\n effectiveDateBeforeMin: t('validations.effectiveDateBeforeMin'),\n },\n },\n }),\n [t],\n )\n}\n"],"names":["useManagementCompensationDictionary","t","useTranslation","useMemo"],"mappings":";;AAeO,SAASA,IAAqE;AACnF,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,kCAAkC;AAE/D,SAAOC;AAAA,IACL,OAAO;AAAA,MACL,IAAI;AAAA,QACF,UAAUF,EAAE,UAAU;AAAA,QACtB,UAAUA,EAAE,UAAU;AAAA,QACtB,wBAAwBA,EAAE,wBAAwB;AAAA,QAClD,oBAAoBA,EAAE,oBAAoB;AAAA,QAC1C,WAAWA,EAAE,WAAW;AAAA,QACxB,oBAAoBA,EAAE,oBAAoB;AAAA,QAC1C,wBAAwBA,EAAE,wBAAwB;AAAA,QAClD,sBAAsBA,EAAE,sBAAsB;AAAA,QAC9C,iCAAiCA,EAAE,iCAAiC;AAAA,QACpE,kBAAkBA,EAAE,kBAAkB;AAAA,QACtC,wBAAwBA,EAAE,wBAAwB;AAAA,QAClD,eAAeA,EAAE,eAAe;AAAA,QAChC,4BAA4BA,EAAE,4BAA4B;AAAA,QAC1D,qBAAqBA,EAAE,qBAAqB;AAAA,QAC5C,2BAA2BA,EAAE,2BAA2B;AAAA,QACxD,uBAAuB;AAAA,UACrB,KAAKA,EAAE,2BAA2B;AAAA,UAClC,IAAIA,EAAE,0BAA0B;AAAA,QAAA;AAAA,QAElC,uBAAuBA,EAAE,uBAAuB;AAAA,QAChD,6BAA6BA,EAAE,6BAA6B;AAAA,QAC5D,iBAAiBA,EAAE,iBAAiB;AAAA,QACpC,kBAAkB;AAAA,UAChB,0BAA0BA,EAAE,yCAAyC;AAAA,UACrE,6BAA6BA,EAAE,4CAA4C;AAAA,UAC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 -3,20 +3,81 @@ import { FlsaStatusType } from '@gusto/embedded-api-v-2025-11-15/models/componen
3
3
  import { RequireAtLeastOne } from '../../../../types/Helpers';
4
4
  import { PAY_PERIODS } from '../../../../shared/constants';
5
5
  import { BaseComponentInterface } from '../../../Base';
6
+ /**
7
+ * Default values for the compensation form fields.
8
+ *
9
+ * @remarks
10
+ * At least one of the fields must be provided. If employee data is available
11
+ * via the API, these values are overwritten.
12
+ *
13
+ * @public
14
+ */
6
15
  export type CompensationDefaultValues = RequireAtLeastOne<{
16
+ /** The compensation rate (an amount in dollars). */
7
17
  rate?: Job['rate'];
18
+ /** The job title. */
8
19
  title?: Job['title'];
20
+ /** The pay period — one of `Hour`, `Week`, `Month`, `Year`, `Paycheck`. */
9
21
  paymentUnit?: (typeof PAY_PERIODS)[keyof typeof PAY_PERIODS];
22
+ /** The FLSA classification — drives whether the role is treated as exempt, nonexempt, etc. */
10
23
  flsaStatus?: FlsaStatusType;
11
24
  }>;
25
+ /**
26
+ * Props for {@link Compensation}.
27
+ *
28
+ * @public
29
+ */
12
30
  export interface CompensationProps extends BaseComponentInterface<'Employee.Compensation'> {
31
+ /** The associated employee identifier. */
13
32
  employeeId: string;
33
+ /** The date the employee will start work. */
14
34
  startDate: string;
35
+ /** Default values for the compensation form fields. If employee data is available via the API, these values are overwritten. */
15
36
  defaultValues?: CompensationDefaultValues;
16
37
  }
38
+ /**
39
+ * Onboarding step for collecting an employee's role and compensation details.
40
+ *
41
+ * @remarks
42
+ * Collects the job title, employee type (hourly, salary), compensation
43
+ * amount, and pay period. For hourly employees, allows configuring multiple
44
+ * roles. Automatically routes between editing the only job (when an employee
45
+ * has zero or one non-Nonexempt job) and a jobs-list view (when multiple
46
+ * roles need to be managed) on first mount; on subsequent refetches the user
47
+ * stays on their current step.
48
+ *
49
+ * | Event | Description | Data |
50
+ * | ----- | ----------- | ---- |
51
+ * | `employee/job/created` | Fired after a job is successfully created | {@link Job} |
52
+ * | `employee/job/updated` | Fired after a job is successfully updated | {@link Job} |
53
+ * | `employee/job/deleted` | Fired after a job is successfully deleted | — |
54
+ * | `employee/compensation/updated` | Fired after compensation details are updated | {@link Compensation} |
55
+ * | `employee/compensation/done` | Fired when compensation setup is complete and the parent flow can advance | — |
56
+ *
57
+ * @param props - See {@link CompensationProps}.
58
+ * @returns The compensation onboarding step.
59
+ * @public
60
+ * @group Block Components
61
+ *
62
+ * @example
63
+ * ```tsx
64
+ * import { EmployeeOnboarding } from '@gusto/embedded-react-sdk'
65
+ *
66
+ * function MyComponent() {
67
+ * return (
68
+ * <EmployeeOnboarding.Compensation
69
+ * employeeId="4b3f930f-82cd-48a8-b797-798686e12e5e"
70
+ * startDate="2025-01-01"
71
+ * onEvent={() => {}}
72
+ * />
73
+ * )
74
+ * }
75
+ * ```
76
+ */
17
77
  export declare function Compensation(props: CompensationProps): import("react").JSX.Element;
18
78
  export declare namespace Compensation {
19
79
  var JobsList: typeof import("./JobsList").JobsList;
20
80
  var EditCompensation: typeof import("./EditCompensation").EditCompensation;
21
81
  }
82
+ /** @internal */
22
83
  export declare const CompensationContextual: () => import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Compensation.js","sources":["../../../../../src/components/Employee/Compensation/onboarding/Compensation.tsx"],"sourcesContent":["import { useMemo, useState } from 'react'\nimport { createMachine } from 'robot3'\nimport { useTranslation } from 'react-i18next'\nimport { useJobsAndCompensationsGetJobsSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsGetJobs'\nimport { type Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job'\nimport type { FlsaStatusType } from '@gusto/embedded-api-v-2025-11-15/models/components/flsastatustype'\nimport type { OnboardingContextInterface } from '../../OnboardingFlow/OnboardingFlowComponents'\nimport {\n InitialEditCompensationContextual,\n JobsListContextual,\n type CompensationFlowContextInterface,\n} from './CompensationFlowComponents'\nimport { compensationStateMachine } from './compensationStateMachine'\nimport { JobsList } from './JobsList'\nimport { EditCompensation } from './EditCompensation'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\nimport type { PAY_PERIODS } from '@/shared/constants'\nimport { FlsaStatus } from '@/shared/constants'\nimport { useComponentDictionary } from '@/i18n'\nimport {\n BaseComponent,\n type BaseComponentInterface,\n type CommonComponentInterface,\n} from '@/components/Base'\nimport { Flow } from '@/components/Flow/Flow'\nimport { useFlow } from '@/components/Flow/useFlow'\n\ntype CompensationInitialState = 'initialEditJob' | 'viewJobs'\n\ninterface InitialFlowConfig {\n initialState: CompensationInitialState\n currentJobId: string | null\n}\n\nconst INITIAL_COMPONENT_BY_STATE: Record<\n CompensationInitialState,\n React.ComponentType<CommonComponentInterface>\n> = {\n initialEditJob: InitialEditCompensationContextual,\n viewJobs: JobsListContextual,\n}\n\nfunction deriveInitialFlowConfig(employeeJobs: Job[]): InitialFlowConfig {\n if (employeeJobs.length === 0) {\n return { initialState: 'initialEditJob', currentJobId: null }\n }\n\n const onlyJob = employeeJobs.length === 1 ? (employeeJobs[0] ?? null) : null\n const onlyJobCompensation = findCurrentCompensation(onlyJob)\n\n if (onlyJob && onlyJobCompensation?.flsaStatus !== FlsaStatus.NONEXEMPT) {\n return { initialState: 'initialEditJob', currentJobId: onlyJob.uuid }\n }\n\n return { initialState: 'viewJobs', currentJobId: null }\n}\n\nexport type CompensationDefaultValues = RequireAtLeastOne<{\n rate?: Job['rate']\n title?: Job['title']\n paymentUnit?: (typeof PAY_PERIODS)[keyof typeof PAY_PERIODS]\n flsaStatus?: FlsaStatusType\n}>\n\nexport interface CompensationProps extends BaseComponentInterface<'Employee.Compensation'> {\n employeeId: string\n startDate: string\n defaultValues?: CompensationDefaultValues\n}\n\nexport function Compensation(props: CompensationProps) {\n return (\n <BaseComponent {...props}>\n <CompensationFlow {...props} />\n </BaseComponent>\n )\n}\n\nconst findCurrentCompensation = (job?: Job | null) => {\n return job?.compensations?.find(comp => comp.uuid === job.currentCompensationUuid)\n}\n\nfunction CompensationFlow({\n employeeId,\n startDate,\n defaultValues,\n dictionary,\n onEvent,\n}: CompensationProps) {\n useComponentDictionary('Employee.Compensation', dictionary)\n\n const { data: jobsData } = useJobsAndCompensationsGetJobsSuspense({ employeeId })\n\n // Capture the routing decision from the first jobsData snapshot only. Suspense\n // guarantees that snapshot is fresh on first render. Subsequent refetches (e.g.\n // the getJobs invalidation that fires between EditCompensation's awaited job +\n // compensation mutations) must NOT re-seat the machine and reset the user's\n // place in the flow. Callers needing to re-derive routing for a different\n // employee should remount via `key`, matching the contract used by\n // OnboardingFlow / PayrollExecutionFlow / DismissalFlow.\n const [{ initialState, currentJobId }] = useState<InitialFlowConfig>(() =>\n deriveInitialFlowConfig(jobsData.jobs ?? []),\n )\n\n const manageCompensation = useMemo(\n () =>\n createMachine(\n initialState,\n compensationStateMachine,\n (initialContext: CompensationFlowContextInterface) => ({\n ...initialContext,\n component: INITIAL_COMPONENT_BY_STATE[initialState],\n employeeId,\n startDate,\n partnerDefaultValues: defaultValues,\n currentJobId,\n }),\n ),\n // `defaultValues` is intentionally omitted: a partner-supplied prop that may\n // arrive as a fresh object reference each render and only seeds the form\n // once. `initialState` and `currentJobId` are stable values from useState\n // above, so they're listed here as honest deps but never trigger recompute.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [employeeId, startDate, initialState, currentJobId],\n )\n\n return <Flow machine={manageCompensation} onEvent={onEvent} />\n}\n\nexport const CompensationContextual = () => {\n const { employeeId, onEvent, startDate, defaultValues } = useFlow<OnboardingContextInterface>()\n const { t } = useTranslation('common')\n\n if (!employeeId || !startDate) {\n throw new Error(\n t('errors.missingParamsOrContext', {\n component: 'Compensation',\n param: !employeeId ? 'employeeId' : 'startDate',\n provider: 'FlowProvider',\n }),\n )\n }\n return (\n <Compensation\n employeeId={employeeId}\n startDate={startDate}\n onEvent={onEvent}\n defaultValues={defaultValues?.compensation}\n />\n )\n}\n\nCompensation.JobsList = JobsList\nCompensation.EditCompensation = EditCompensation\n"],"names":["INITIAL_COMPONENT_BY_STATE","InitialEditCompensationContextual","JobsListContextual","deriveInitialFlowConfig","employeeJobs","onlyJob","onlyJobCompensation","findCurrentCompensation","FlsaStatus","Compensation","props","jsx","BaseComponent","CompensationFlow","job","comp","employeeId","startDate","defaultValues","dictionary","onEvent","useComponentDictionary","jobsData","useJobsAndCompensationsGetJobsSuspense","initialState","currentJobId","useState","manageCompensation","useMemo","createMachine","compensationStateMachine","initialContext","Flow","CompensationContextual","useFlow","t","useTranslation","JobsList","EditCompensation"],"mappings":";;;;;;;;;;;;;;;AAkCA,MAAMA,IAGF;AAAA,EACF,gBAAgBC;AAAA,EAChB,UAAUC;AACZ;AAEA,SAASC,EAAwBC,GAAwC;AACvE,MAAIA,EAAa,WAAW;AAC1B,WAAO,EAAE,cAAc,kBAAkB,cAAc,KAAA;AAGzD,QAAMC,IAAUD,EAAa,WAAW,IAAKA,EAAa,CAAC,KAAK,OAAQ,MAClEE,IAAsBC,EAAwBF,CAAO;AAE3D,SAAIA,KAAWC,GAAqB,eAAeE,EAAW,YACrD,EAAE,cAAc,kBAAkB,cAAcH,EAAQ,KAAA,IAG1D,EAAE,cAAc,YAAY,cAAc,KAAA;AACnD;AAeO,SAASI,EAAaC,GAA0B;AACrD,SACE,gBAAAC,EAACC,KAAe,GAAGF,GACjB,4BAACG,GAAA,EAAkB,GAAGH,GAAO,EAAA,CAC/B;AAEJ;AAEA,MAAMH,IAA0B,CAACO,MACxBA,GAAK,eAAe,KAAK,OAAQC,EAAK,SAASD,EAAI,uBAAuB;AAGnF,SAASD,EAAiB;AAAA,EACxB,YAAAG;AAAA,EACA,WAAAC;AAAA,EACA,eAAAC;AAAA,EACA,YAAAC;AAAA,EACA,SAAAC;AACF,GAAsB;AACpB,EAAAC,EAAuB,yBAAyBF,CAAU;AAE1D,QAAM,EAAE,MAAMG,EAAA,IAAaC,EAAuC,EAAE,YAAAP,GAAY,GAS1E,CAAC,EAAE,cAAAQ,GAAc,cAAAC,EAAA,CAAc,IAAIC;AAAA,IAA4B,MACnEvB,EAAwBmB,EAAS,QAAQ,CAAA,CAAE;AAAA,EAAA,GAGvCK,IAAqBC;AAAA,IACzB,MACEC;AAAA,MACEL;AAAA,MACAM;AAAA,MACA,CAACC,OAAsD;AAAA,QACrD,GAAGA;AAAA,QACH,WAAW/B,EAA2BwB,CAAY;AAAA,QAClD,YAAAR;AAAA,QACA,WAAAC;AAAA,QACA,sBAAsBC;AAAA,QACtB,cAAAO;AAAA,MAAA;AAAA,IACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOJ,CAACT,GAAYC,GAAWO,GAAcC,CAAY;AAAA,EAAA;AAGpD,SAAO,gBAAAd,EAACqB,GAAA,EAAK,SAASL,GAAoB,SAAAP,EAAA,CAAkB;AAC9D;AAEO,MAAMa,IAAyB,MAAM;AAC1C,QAAM,EAAE,YAAAjB,GAAY,SAAAI,GAAS,WAAAH,GAAW,eAAAC,EAAA,IAAkBgB,EAAA,GACpD,EAAE,GAAAC,EAAA,IAAMC,EAAe,QAAQ;AAErC,MAAI,CAACpB,KAAc,CAACC;AAClB,UAAM,IAAI;AAAA,MACRkB,EAAE,iCAAiC;AAAA,QACjC,WAAW;AAAA,QACX,OAAQnB,IAA4B,cAAf;AAAA,QACrB,UAAU;AAAA,MAAA,CACX;AAAA,IAAA;AAGL,SACE,gBAAAL;AAAA,IAACF;AAAA,IAAA;AAAA,MACC,YAAAO;AAAA,MACA,WAAAC;AAAA,MACA,SAAAG;AAAA,MACA,eAAeF,GAAe;AAAA,IAAA;AAAA,EAAA;AAGpC;AAEAT,EAAa,WAAW4B;AACxB5B,EAAa,mBAAmB6B;"}
1
+ {"version":3,"file":"Compensation.js","sources":["../../../../../src/components/Employee/Compensation/onboarding/Compensation.tsx"],"sourcesContent":["import { useMemo, useState } from 'react'\nimport { createMachine } from 'robot3'\nimport { useTranslation } from 'react-i18next'\nimport { useJobsAndCompensationsGetJobsSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/jobsAndCompensationsGetJobs'\nimport { type Job } from '@gusto/embedded-api-v-2025-11-15/models/components/job'\nimport type { FlsaStatusType } from '@gusto/embedded-api-v-2025-11-15/models/components/flsastatustype'\nimport type { OnboardingContextInterface } from '../../OnboardingFlow/OnboardingFlowComponents'\nimport {\n InitialEditCompensationContextual,\n JobsListContextual,\n type CompensationFlowContextInterface,\n} from './CompensationFlowComponents'\nimport { compensationStateMachine } from './compensationStateMachine'\nimport { JobsList } from './JobsList'\nimport { EditCompensation } from './EditCompensation'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\nimport type { PAY_PERIODS } from '@/shared/constants'\nimport { FlsaStatus } from '@/shared/constants'\nimport { useComponentDictionary } from '@/i18n'\nimport {\n BaseComponent,\n type BaseComponentInterface,\n type CommonComponentInterface,\n} from '@/components/Base'\nimport { Flow } from '@/components/Flow/Flow'\nimport { useFlow } from '@/components/Flow/useFlow'\n\ntype CompensationInitialState = 'initialEditJob' | 'viewJobs'\n\ninterface InitialFlowConfig {\n initialState: CompensationInitialState\n currentJobId: string | null\n}\n\nconst INITIAL_COMPONENT_BY_STATE: Record<\n CompensationInitialState,\n React.ComponentType<CommonComponentInterface>\n> = {\n initialEditJob: InitialEditCompensationContextual,\n viewJobs: JobsListContextual,\n}\n\nfunction deriveInitialFlowConfig(employeeJobs: Job[]): InitialFlowConfig {\n if (employeeJobs.length === 0) {\n return { initialState: 'initialEditJob', currentJobId: null }\n }\n\n const onlyJob = employeeJobs.length === 1 ? (employeeJobs[0] ?? null) : null\n const onlyJobCompensation = findCurrentCompensation(onlyJob)\n\n if (onlyJob && onlyJobCompensation?.flsaStatus !== FlsaStatus.NONEXEMPT) {\n return { initialState: 'initialEditJob', currentJobId: onlyJob.uuid }\n }\n\n return { initialState: 'viewJobs', currentJobId: null }\n}\n\n/**\n * Default values for the compensation form fields.\n *\n * @remarks\n * At least one of the fields must be provided. If employee data is available\n * via the API, these values are overwritten.\n *\n * @public\n */\nexport type CompensationDefaultValues = RequireAtLeastOne<{\n /** The compensation rate (an amount in dollars). */\n rate?: Job['rate']\n /** The job title. */\n title?: Job['title']\n /** The pay period — one of `Hour`, `Week`, `Month`, `Year`, `Paycheck`. */\n paymentUnit?: (typeof PAY_PERIODS)[keyof typeof PAY_PERIODS]\n /** The FLSA classification — drives whether the role is treated as exempt, nonexempt, etc. */\n flsaStatus?: FlsaStatusType\n}>\n\n/**\n * Props for {@link Compensation}.\n *\n * @public\n */\nexport interface CompensationProps extends BaseComponentInterface<'Employee.Compensation'> {\n /** The associated employee identifier. */\n employeeId: string\n /** The date the employee will start work. */\n startDate: string\n /** Default values for the compensation form fields. If employee data is available via the API, these values are overwritten. */\n defaultValues?: CompensationDefaultValues\n}\n\n/**\n * Onboarding step for collecting an employee's role and compensation details.\n *\n * @remarks\n * Collects the job title, employee type (hourly, salary), compensation\n * amount, and pay period. For hourly employees, allows configuring multiple\n * roles. Automatically routes between editing the only job (when an employee\n * has zero or one non-Nonexempt job) and a jobs-list view (when multiple\n * roles need to be managed) on first mount; on subsequent refetches the user\n * stays on their current step.\n *\n * | Event | Description | Data |\n * | ----- | ----------- | ---- |\n * | `employee/job/created` | Fired after a job is successfully created | {@link Job} |\n * | `employee/job/updated` | Fired after a job is successfully updated | {@link Job} |\n * | `employee/job/deleted` | Fired after a job is successfully deleted | — |\n * | `employee/compensation/updated` | Fired after compensation details are updated | {@link Compensation} |\n * | `employee/compensation/done` | Fired when compensation setup is complete and the parent flow can advance | — |\n *\n * @param props - See {@link CompensationProps}.\n * @returns The compensation onboarding step.\n * @public\n * @group Block Components\n *\n * @example\n * ```tsx\n * import { EmployeeOnboarding } from '@gusto/embedded-react-sdk'\n *\n * function MyComponent() {\n * return (\n * <EmployeeOnboarding.Compensation\n * employeeId=\"4b3f930f-82cd-48a8-b797-798686e12e5e\"\n * startDate=\"2025-01-01\"\n * onEvent={() => {}}\n * />\n * )\n * }\n * ```\n */\nexport function Compensation(props: CompensationProps) {\n return (\n <BaseComponent {...props}>\n <CompensationFlow {...props} />\n </BaseComponent>\n )\n}\n\nconst findCurrentCompensation = (job?: Job | null) => {\n return job?.compensations?.find(comp => comp.uuid === job.currentCompensationUuid)\n}\n\nfunction CompensationFlow({\n employeeId,\n startDate,\n defaultValues,\n dictionary,\n onEvent,\n}: CompensationProps) {\n useComponentDictionary('Employee.Compensation', dictionary)\n\n const { data: jobsData } = useJobsAndCompensationsGetJobsSuspense({ employeeId })\n\n // Capture the routing decision from the first jobsData snapshot only. Suspense\n // guarantees that snapshot is fresh on first render. Subsequent refetches (e.g.\n // the getJobs invalidation that fires between EditCompensation's awaited job +\n // compensation mutations) must NOT re-seat the machine and reset the user's\n // place in the flow. Callers needing to re-derive routing for a different\n // employee should remount via `key`, matching the contract used by\n // OnboardingFlow / PayrollExecutionFlow / DismissalFlow.\n const [{ initialState, currentJobId }] = useState<InitialFlowConfig>(() =>\n deriveInitialFlowConfig(jobsData.jobs ?? []),\n )\n\n const manageCompensation = useMemo(\n () =>\n createMachine(\n initialState,\n compensationStateMachine,\n (initialContext: CompensationFlowContextInterface) => ({\n ...initialContext,\n component: INITIAL_COMPONENT_BY_STATE[initialState],\n employeeId,\n startDate,\n partnerDefaultValues: defaultValues,\n currentJobId,\n }),\n ),\n // `defaultValues` is intentionally omitted: a partner-supplied prop that may\n // arrive as a fresh object reference each render and only seeds the form\n // once. `initialState` and `currentJobId` are stable values from useState\n // above, so they're listed here as honest deps but never trigger recompute.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [employeeId, startDate, initialState, currentJobId],\n )\n\n return <Flow machine={manageCompensation} onEvent={onEvent} />\n}\n\n/** @internal */\nexport const CompensationContextual = () => {\n const { employeeId, onEvent, startDate, defaultValues } = useFlow<OnboardingContextInterface>()\n const { t } = useTranslation('common')\n\n if (!employeeId || !startDate) {\n throw new Error(\n t('errors.missingParamsOrContext', {\n component: 'Compensation',\n param: !employeeId ? 'employeeId' : 'startDate',\n provider: 'FlowProvider',\n }),\n )\n }\n return (\n <Compensation\n employeeId={employeeId}\n startDate={startDate}\n onEvent={onEvent}\n defaultValues={defaultValues?.compensation}\n />\n )\n}\n\nCompensation.JobsList = JobsList\nCompensation.EditCompensation = EditCompensation\n"],"names":["INITIAL_COMPONENT_BY_STATE","InitialEditCompensationContextual","JobsListContextual","deriveInitialFlowConfig","employeeJobs","onlyJob","onlyJobCompensation","findCurrentCompensation","FlsaStatus","Compensation","props","jsx","BaseComponent","CompensationFlow","job","comp","employeeId","startDate","defaultValues","dictionary","onEvent","useComponentDictionary","jobsData","useJobsAndCompensationsGetJobsSuspense","initialState","currentJobId","useState","manageCompensation","useMemo","createMachine","compensationStateMachine","initialContext","Flow","CompensationContextual","useFlow","t","useTranslation","JobsList","EditCompensation"],"mappings":";;;;;;;;;;;;;;;AAkCA,MAAMA,IAGF;AAAA,EACF,gBAAgBC;AAAA,EAChB,UAAUC;AACZ;AAEA,SAASC,EAAwBC,GAAwC;AACvE,MAAIA,EAAa,WAAW;AAC1B,WAAO,EAAE,cAAc,kBAAkB,cAAc,KAAA;AAGzD,QAAMC,IAAUD,EAAa,WAAW,IAAKA,EAAa,CAAC,KAAK,OAAQ,MAClEE,IAAsBC,EAAwBF,CAAO;AAE3D,SAAIA,KAAWC,GAAqB,eAAeE,EAAW,YACrD,EAAE,cAAc,kBAAkB,cAAcH,EAAQ,KAAA,IAG1D,EAAE,cAAc,YAAY,cAAc,KAAA;AACnD;AA2EO,SAASI,EAAaC,GAA0B;AACrD,SACE,gBAAAC,EAACC,KAAe,GAAGF,GACjB,4BAACG,GAAA,EAAkB,GAAGH,GAAO,EAAA,CAC/B;AAEJ;AAEA,MAAMH,IAA0B,CAACO,MACxBA,GAAK,eAAe,KAAK,OAAQC,EAAK,SAASD,EAAI,uBAAuB;AAGnF,SAASD,EAAiB;AAAA,EACxB,YAAAG;AAAA,EACA,WAAAC;AAAA,EACA,eAAAC;AAAA,EACA,YAAAC;AAAA,EACA,SAAAC;AACF,GAAsB;AACpB,EAAAC,EAAuB,yBAAyBF,CAAU;AAE1D,QAAM,EAAE,MAAMG,EAAA,IAAaC,EAAuC,EAAE,YAAAP,GAAY,GAS1E,CAAC,EAAE,cAAAQ,GAAc,cAAAC,EAAA,CAAc,IAAIC;AAAA,IAA4B,MACnEvB,EAAwBmB,EAAS,QAAQ,CAAA,CAAE;AAAA,EAAA,GAGvCK,IAAqBC;AAAA,IACzB,MACEC;AAAA,MACEL;AAAA,MACAM;AAAA,MACA,CAACC,OAAsD;AAAA,QACrD,GAAGA;AAAA,QACH,WAAW/B,EAA2BwB,CAAY;AAAA,QAClD,YAAAR;AAAA,QACA,WAAAC;AAAA,QACA,sBAAsBC;AAAA,QACtB,cAAAO;AAAA,MAAA;AAAA,IACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOJ,CAACT,GAAYC,GAAWO,GAAcC,CAAY;AAAA,EAAA;AAGpD,SAAO,gBAAAd,EAACqB,GAAA,EAAK,SAASL,GAAoB,SAAAP,EAAA,CAAkB;AAC9D;AAGO,MAAMa,IAAyB,MAAM;AAC1C,QAAM,EAAE,YAAAjB,GAAY,SAAAI,GAAS,WAAAH,GAAW,eAAAC,EAAA,IAAkBgB,EAAA,GACpD,EAAE,GAAAC,EAAA,IAAMC,EAAe,QAAQ;AAErC,MAAI,CAACpB,KAAc,CAACC;AAClB,UAAM,IAAI;AAAA,MACRkB,EAAE,iCAAiC;AAAA,QACjC,WAAW;AAAA,QACX,OAAQnB,IAA4B,cAAf;AAAA,QACrB,UAAU;AAAA,MAAA,CACX;AAAA,IAAA;AAGL,SACE,gBAAAL;AAAA,IAACF;AAAA,IAAA;AAAA,MACC,YAAAO;AAAA,MACA,WAAAC;AAAA,MACA,SAAAG;AAAA,MACA,eAAeF,GAAe;AAAA,IAAA;AAAA,EAAA;AAGpC;AAEAT,EAAa,WAAW4B;AACxB5B,EAAa,mBAAmB6B;"}
@@ -3,6 +3,7 @@ import { Compensation } from '@gusto/embedded-api-v-2025-11-15/models/components
3
3
  import { CompensationDefaultValues } from './Compensation';
4
4
  import { FlowContextInterface } from '../../../Flow/useFlow';
5
5
  import { componentEvents } from '../../../../shared/constants';
6
+ /** @internal */
6
7
  export type EventPayloads = {
7
8
  [componentEvents.EMPLOYEE_JOB_ADD]: undefined;
8
9
  [componentEvents.EMPLOYEE_JOB_EDIT]: {
@@ -16,12 +17,16 @@ export type EventPayloads = {
16
17
  [componentEvents.EMPLOYEE_COMPENSATION_CANCEL]: undefined;
17
18
  [componentEvents.EMPLOYEE_COMPENSATION_DONE]: undefined;
18
19
  };
20
+ /** @internal */
19
21
  export interface CompensationFlowContextInterface extends FlowContextInterface {
20
22
  employeeId: string;
21
23
  startDate: string;
22
24
  currentJobId?: string | null;
23
25
  partnerDefaultValues?: CompensationDefaultValues;
24
26
  }
27
+ /** @internal */
25
28
  export declare function JobsListContextual(): import("react").JSX.Element;
29
+ /** @internal */
26
30
  export declare function InitialEditCompensationContextual(): import("react").JSX.Element;
31
+ /** @internal */
27
32
  export declare function EditCompensationContextual(): import("react").JSX.Element;