@gusto/embedded-react-sdk 0.36.0 → 0.37.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/UNSTABLE_Hooks.d.ts +1 -1
- package/dist/UNSTABLE_Hooks.js +6 -6
- package/dist/components/Base/Base.d.ts +8 -10
- package/dist/components/Base/Base.js +121 -100
- package/dist/components/Base/Base.js.map +1 -1
- package/dist/components/Base/index.d.ts +1 -1
- package/dist/components/Base/useBase.d.ts +3 -7
- package/dist/components/Base/useBase.js.map +1 -1
- package/dist/components/Base/useBaseSubmit.d.ts +3 -5
- package/dist/components/Base/useBaseSubmit.js +27 -50
- package/dist/components/Base/useBaseSubmit.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormActions.js +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormFields.js +1 -1
- package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +2 -2
- package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
- package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +6 -5
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +6 -8
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +5 -4
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +6 -8
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +8 -10
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +6 -8
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +6 -8
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +6 -8
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +11 -13
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +9 -11
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Form.js +5 -4
- package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +6 -8
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +6 -8
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +6 -8
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +60 -60
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Edit.js +10 -9
- package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
- package/dist/components/Company/PaySchedule/usePaySchedule.js +8 -10
- package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +6 -8
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +6 -8
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Contractor/Address/Form.js +7 -6
- package/dist/components/Contractor/Address/Form.js.map +1 -1
- package/dist/components/Contractor/Address/useAddress.js +8 -10
- package/dist/components/Contractor/Address/useAddress.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +3 -2
- package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
- package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
- package/dist/components/Contractor/Profile/useContractorProfile.js +26 -28
- package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +13 -15
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +5 -7
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +5 -7
- package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
- package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +3 -2
- package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +6 -8
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +6 -8
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Employee/EmployeeList/useEmployeeList.js +6 -8
- package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/FederalTaxes.js +42 -42
- package/dist/components/Employee/FederalTaxes/FederalTaxes.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +6 -8
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +8 -10
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
- package/dist/components/Employee/Profile/HomeAddress.js +9 -8
- package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js +15 -14
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
- package/dist/components/Employee/Profile/Profile.js +30 -29
- package/dist/components/Employee/Profile/Profile.js.map +1 -1
- package/dist/components/Employee/Profile/useProfile.js +6 -8
- package/dist/components/Employee/Profile/useProfile.js.map +1 -1
- package/dist/components/Employee/StateTaxes/StateTaxes.js +50 -50
- package/dist/components/Employee/StateTaxes/StateTaxes.js.map +1 -1
- package/dist/components/Employee/StateTaxes/useStateTaxes.js +6 -8
- package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
- package/dist/components/Employee/Taxes/Taxes.js +53 -53
- package/dist/components/Employee/Taxes/Taxes.js.map +1 -1
- package/dist/components/Employee/Taxes/useTaxes.js +6 -8
- package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.d.ts +11 -0
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +123 -0
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -0
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.d.ts +11 -0
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +92 -0
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -0
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.d.ts +2 -0
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js +30 -0
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js.map +1 -0
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.d.ts +23 -0
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +72 -0
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js.map +1 -0
- package/dist/components/Employee/Terminations/TerminationFlow/index.d.ts +3 -0
- package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.d.ts +7 -0
- package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js +165 -0
- package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js.map +1 -0
- package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.test.d.ts +1 -0
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.d.ts +9 -0
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js +86 -0
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -0
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.d.ts +20 -0
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +103 -0
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -0
- package/dist/components/Employee/Terminations/TerminationsData.d.ts +6 -0
- package/dist/components/Employee/Terminations/index.d.ts +8 -0
- package/dist/components/Employee/Terminations/types.d.ts +1 -0
- package/dist/components/Employee/index.d.ts +7 -0
- package/dist/components/Employee/index.js +34 -28
- package/dist/components/Employee/index.js.map +1 -1
- package/dist/components/InformationRequests/InformationRequests.js +31 -31
- package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js +41 -41
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalFlow.d.ts +2 -0
- package/dist/components/Payroll/Dismissal/DismissalFlow.js +32 -0
- package/dist/components/Payroll/Dismissal/DismissalFlow.js.map +1 -0
- package/dist/components/Payroll/Dismissal/DismissalFlowComponents.d.ts +16 -0
- package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js +52 -0
- package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js.map +1 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.d.ts +6 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +69 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.d.ts +9 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +53 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/index.d.ts +3 -0
- package/dist/components/Payroll/Dismissal/dismissalStateMachine.d.ts +6 -0
- package/dist/components/Payroll/Dismissal/dismissalStateMachine.js +51 -0
- package/dist/components/Payroll/Dismissal/dismissalStateMachine.js.map +1 -0
- package/dist/components/Payroll/Dismissal/dismissalStateMachine.test.d.ts +1 -0
- package/dist/components/Payroll/Dismissal/index.d.ts +3 -0
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +3 -3
- package/dist/components/Payroll/OffCycle/OffCycleFlow.d.ts +1 -1
- package/dist/components/Payroll/OffCycle/OffCycleFlow.js +19 -18
- package/dist/components/Payroll/OffCycle/OffCycleFlow.js.map +1 -1
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.d.ts +3 -0
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +32 -24
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +45 -45
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.d.ts +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +75 -66
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.module.scss.js +8 -0
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.module.scss.js.map +1 -0
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationTypes.d.ts +0 -1
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.module.scss.js +4 -4
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js +2 -2
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js.map +1 -1
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.d.ts +1 -0
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js +1 -0
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +186 -159
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +3 -3
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +71 -70
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.d.ts +3 -2
- package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.js +8 -8
- package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +5 -3
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +76 -70
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +47 -42
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +4 -2
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +225 -194
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.d.ts +1 -0
- package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js +12 -0
- package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js.map +1 -0
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +3 -0
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.d.ts +1 -0
- package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js +21 -0
- package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js.map +1 -0
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +2 -0
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +95 -64
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +53 -47
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +8 -8
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +25 -23
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollList.js +40 -32
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +2 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +110 -93
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +12 -8
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +3 -2
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/Transition/TransitionFlow.d.ts +2 -0
- package/dist/components/Payroll/Transition/TransitionFlow.js +38 -0
- package/dist/components/Payroll/Transition/TransitionFlow.js.map +1 -0
- package/dist/components/Payroll/Transition/TransitionFlowComponents.d.ts +19 -0
- package/dist/components/Payroll/Transition/TransitionFlowComponents.js +54 -0
- package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +1 -0
- package/dist/components/Payroll/Transition/index.d.ts +3 -0
- package/dist/components/Payroll/Transition/transitionStateMachine.d.ts +6 -0
- package/dist/components/Payroll/Transition/transitionStateMachine.js +58 -0
- package/dist/components/Payroll/Transition/transitionStateMachine.js.map +1 -0
- package/dist/components/Payroll/Transition/transitionStateMachine.test.d.ts +1 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.d.ts +2 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +92 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.d.ts +2 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +111 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.module.scss.js +8 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.module.scss.js.map +1 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +28 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js +21 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +1 -0
- package/dist/components/Payroll/TransitionCreation/index.d.ts +3 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.d.ts +8 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +83 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.d.ts +16 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js +100 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -0
- package/dist/components/Payroll/TransitionPayrollAlert/index.d.ts +2 -0
- package/dist/components/Payroll/helpers.d.ts +2 -1
- package/dist/components/Payroll/helpers.js +98 -87
- package/dist/components/Payroll/helpers.js.map +1 -1
- package/dist/components/Payroll/index.d.ts +6 -0
- package/dist/components/Payroll/index.js +32 -26
- package/dist/components/Payroll/index.js.map +1 -1
- package/dist/components/Payroll/payrollTypes.d.ts +21 -0
- package/dist/components/Payroll/payrollTypes.js +27 -0
- package/dist/components/Payroll/payrollTypes.js.map +1 -0
- package/dist/components/Payroll/usePreparedPayrollData.js +5 -7
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.d.ts +8 -0
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js +13 -0
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.d.ts +10 -0
- package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.d.ts +18 -0
- package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.d.ts +3 -0
- package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.test.d.ts +1 -0
- package/dist/components/UNSTABLE_Hooks/form/index.d.ts +9 -0
- package/dist/components/UNSTABLE_Hooks/form/types.d.ts +15 -0
- package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.d.ts +1 -0
- package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js +15 -0
- package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.d.ts +4 -0
- package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js +9 -0
- package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/withOptions.d.ts +5 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/index.d.ts +3 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.d.ts +16 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js +7 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/index.d.ts +5 -0
- package/dist/components/UNSTABLE_Hooks/types.d.ts +46 -0
- package/dist/contexts/ApiProvider/ApiProvider.js +11 -11
- package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +43 -47
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
- package/dist/contexts/ObservabilityProvider/index.d.ts +1 -1
- package/dist/contexts/ObservabilityProvider/sanitization.d.ts +0 -14
- package/dist/contexts/ObservabilityProvider/sanitization.js +51 -51
- package/dist/contexts/ObservabilityProvider/sanitization.js.map +1 -1
- package/dist/contexts/ObservabilityProvider/useSanitizedObservability.d.ts +0 -3
- package/dist/contexts/ObservabilityProvider/useSanitizedObservability.js.map +1 -1
- package/dist/i18n/I18n.js +11 -11
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Employee.Terminations.TerminateEmployee.json.js +18 -0
- package/dist/i18n/en/Employee.Terminations.TerminateEmployee.json.js.map +1 -0
- package/dist/i18n/en/Employee.Terminations.TerminationFlow.json.js +12 -0
- package/dist/i18n/en/Employee.Terminations.TerminationFlow.json.js.map +1 -0
- package/dist/i18n/en/Employee.Terminations.TerminationSummary.json.js +20 -0
- package/dist/i18n/en/Employee.Terminations.TerminationSummary.json.js.map +1 -0
- package/dist/i18n/en/Payroll.Dismissal.json.js +22 -0
- package/dist/i18n/en/Payroll.Dismissal.json.js.map +1 -0
- package/dist/i18n/en/Payroll.OffCycleCreation.json.js +15 -11
- package/dist/i18n/en/Payroll.OffCycleCreation.json.js.map +1 -1
- package/dist/i18n/en/Payroll.OffCyclePayPeriodDateForm.json.js +1 -1
- package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +20 -18
- package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollList.json.js +20 -18
- package/dist/i18n/en/Payroll.PayrollList.json.js.map +1 -1
- package/dist/i18n/en/Payroll.Transition.json.js +8 -0
- package/dist/i18n/en/Payroll.Transition.json.js.map +1 -0
- package/dist/i18n/en/Payroll.TransitionCreation.json.js +26 -0
- package/dist/i18n/en/Payroll.TransitionCreation.json.js.map +1 -0
- package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js +18 -0
- package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js.map +1 -0
- package/dist/i18n/en/common.json.d.ts +2 -1
- package/dist/i18n/en/common.json.js +9 -9
- package/dist/index.d.ts +3 -2
- package/dist/index.js +14 -13
- package/dist/shared/constants.d.ts +32 -0
- package/dist/shared/constants.js +83 -65
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/i18next.d.ts +163 -1
- package/dist/types/observability.d.ts +31 -65
- package/dist/types/sdkError.d.ts +91 -0
- package/dist/types/sdkError.js +95 -0
- package/dist/types/sdkError.js.map +1 -0
- package/dist/types/sdkError.test.d.ts +1 -0
- package/docs/reference/endpoint-inventory.json +120 -14
- package/package.json +13 -13
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.d.ts +0 -6
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.js +0 -70
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.js.map +0 -1
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.d.ts +0 -7
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js +0 -6
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js.map +0 -1
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.d.ts +0 -9
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.js +0 -40
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.js.map +0 -1
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/index.d.ts +0 -5
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.d.ts +0 -2
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.js +0 -12
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.js.map +0 -1
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/index.d.ts +0 -2
- package/dist/contexts/ObservabilityProvider/observabilityUtils.d.ts +0 -5
- package/dist/contexts/ObservabilityProvider/observabilityUtils.js +0 -45
- package/dist/contexts/ObservabilityProvider/observabilityUtils.js.map +0 -1
|
@@ -1,296 +1,327 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useForm as
|
|
3
|
-
import { useRef as
|
|
1
|
+
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useForm as Z, useWatch as J, FormProvider as ee } from "react-hook-form";
|
|
3
|
+
import { useRef as ne, useMemo as te } from "react";
|
|
4
4
|
import { PayrollEmployeeCompensationsTypePaymentMethod as S } from "@gusto/embedded-api/models/components/payrollemployeecompensationstype";
|
|
5
|
-
import { useTranslation as
|
|
6
|
-
import { z as
|
|
7
|
-
import { zodResolver as
|
|
5
|
+
import { useTranslation as oe } from "react-i18next";
|
|
6
|
+
import { z as s } from "zod";
|
|
7
|
+
import { zodResolver as ie } from "@hookform/resolvers/zod";
|
|
8
8
|
import u from "./PayrollEditEmployeePresentation.module.scss.js";
|
|
9
|
-
import { TimeOffField as
|
|
9
|
+
import { TimeOffField as se } from "./TimeOffField.js";
|
|
10
10
|
import { Flex as x } from "../../Common/Flex/Flex.js";
|
|
11
|
-
import { Grid as
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
11
|
+
import { Grid as A } from "../../Common/Grid/Grid.js";
|
|
12
|
+
import "classnames";
|
|
13
|
+
import { RadioGroupField as ae } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
|
|
14
|
+
import { TextInputField as G } from "../../Common/Fields/TextInputField/TextInputField.js";
|
|
15
|
+
import { NumberInputField as H } from "../../Common/Fields/NumberInputField/NumberInputField.js";
|
|
16
|
+
import { useComponentContext as re } from "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
17
|
+
import { useI18n as me } from "../../../i18n/I18n.js";
|
|
18
|
+
import { Form as le } from "../../Common/Form/Form.js";
|
|
19
|
+
import { firstLastName as ue, formatNumberAsCurrency as de } from "../../../helpers/formattedStrings.js";
|
|
20
|
+
import { getAdditionalEarningsCompensations as ce, getReimbursementCompensation as pe, calculateGrossPay as k } from "../helpers.js";
|
|
21
|
+
import { PayrollCategory as w } from "../payrollTypes.js";
|
|
22
|
+
import { HOURS_COMPENSATION_NAMES as $, EXCLUDED_ADDITIONAL_EARNINGS as fe, COMPENSATION_NAME_DOUBLE_OVERTIME as he, COMPENSATION_NAME_OVERTIME as Ce, COMPENSATION_NAME_REGULAR_HOURS as Ne, COMPENSATION_NAME_REIMBURSEMENT as ge, COMPENSATION_NAME_CASH_TIPS as Ee, COMPENSATION_NAME_COMMISSION as be, COMPENSATION_NAME_CORRECTION_PAYMENT as ye, COMPENSATION_NAME_PAYCHECK_TIPS as Me, COMPENSATION_NAME_BONUS as Pe } from "../../../shared/constants.js";
|
|
21
23
|
import Oe from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
|
|
22
|
-
const Te =
|
|
23
|
-
hourlyCompensations:
|
|
24
|
-
timeOffCompensations:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
const Te = s.object({
|
|
25
|
+
hourlyCompensations: s.record(s.string(), s.record(s.string(), s.string().optional())),
|
|
26
|
+
timeOffCompensations: s.record(s.string(), s.string().optional()),
|
|
27
|
+
finalPayoutCompensations: s.record(s.string(), s.string().optional()),
|
|
28
|
+
fixedCompensations: s.record(s.string(), s.number().optional()),
|
|
29
|
+
paymentMethod: s.enum(S).optional()
|
|
30
|
+
}), q = (N, T, d, a) => {
|
|
31
|
+
const y = {
|
|
32
|
+
...T,
|
|
33
|
+
paymentMethod: N.paymentMethod
|
|
31
34
|
};
|
|
32
|
-
|
|
33
|
-
(
|
|
34
|
-
const
|
|
35
|
-
return
|
|
36
|
-
...
|
|
37
|
-
hours:
|
|
38
|
-
} :
|
|
35
|
+
y.hourlyCompensations = T?.hourlyCompensations?.map(
|
|
36
|
+
(i) => {
|
|
37
|
+
const m = i.jobUuid && i.name ? N.hourlyCompensations[i.jobUuid]?.[i.name] : void 0;
|
|
38
|
+
return m ? {
|
|
39
|
+
...i,
|
|
40
|
+
hours: m
|
|
41
|
+
} : i;
|
|
39
42
|
}
|
|
40
|
-
),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
), y.paidTimeOff = d.map((i) => {
|
|
44
|
+
const m = N.finalPayoutCompensations[i.name] ?? i.finalPayoutUnusedHoursInput;
|
|
45
|
+
return {
|
|
46
|
+
...i,
|
|
47
|
+
hours: N.timeOffCompensations[i.name],
|
|
48
|
+
...m != null ? { finalPayoutUnusedHoursInput: m } : {}
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
const M = [];
|
|
52
|
+
return Object.entries(N.fixedCompensations).forEach(([i, m]) => {
|
|
53
|
+
const h = T?.fixedCompensations?.find(
|
|
54
|
+
(P) => P.name?.toLowerCase() === i.toLowerCase()
|
|
48
55
|
);
|
|
49
|
-
if (
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
name:
|
|
53
|
-
jobUuid:
|
|
54
|
-
amount:
|
|
55
|
-
}) :
|
|
56
|
-
name:
|
|
57
|
-
jobUuid:
|
|
58
|
-
amount:
|
|
56
|
+
if (m !== void 0) {
|
|
57
|
+
const P = m.toString();
|
|
58
|
+
h ? M.push({
|
|
59
|
+
name: h.name,
|
|
60
|
+
jobUuid: h.jobUuid,
|
|
61
|
+
amount: P
|
|
62
|
+
}) : m !== 0 && M.push({
|
|
63
|
+
name: i,
|
|
64
|
+
jobUuid: a,
|
|
65
|
+
amount: P
|
|
59
66
|
});
|
|
60
67
|
}
|
|
61
|
-
}),
|
|
62
|
-
},
|
|
63
|
-
onSave:
|
|
64
|
-
onCancel:
|
|
65
|
-
employee:
|
|
66
|
-
employeeCompensation:
|
|
67
|
-
isPending:
|
|
68
|
-
fixedCompensationTypes:
|
|
69
|
-
payPeriodStartDate:
|
|
70
|
-
paySchedule:
|
|
71
|
-
|
|
72
|
-
withReimbursements:
|
|
73
|
-
hasDirectDepositSetup:
|
|
68
|
+
}), y.fixedCompensations = M, y;
|
|
69
|
+
}, Xe = ({
|
|
70
|
+
onSave: N,
|
|
71
|
+
onCancel: T,
|
|
72
|
+
employee: d,
|
|
73
|
+
employeeCompensation: a,
|
|
74
|
+
isPending: y = !1,
|
|
75
|
+
fixedCompensationTypes: M,
|
|
76
|
+
payPeriodStartDate: i,
|
|
77
|
+
paySchedule: m,
|
|
78
|
+
payrollCategory: h = w.Regular,
|
|
79
|
+
withReimbursements: P = !0,
|
|
80
|
+
hasDirectDepositSetup: B = !0
|
|
74
81
|
}) => {
|
|
75
|
-
const { Button: v, Heading: c, Text:
|
|
76
|
-
|
|
77
|
-
const
|
|
78
|
-
|
|
82
|
+
const { Button: v, Heading: c, Text: V } = re(), { t } = oe("Payroll.PayrollEditEmployee");
|
|
83
|
+
me("Payroll.PayrollEditEmployee");
|
|
84
|
+
const p = d.jobs?.find((e) => e.primary), z = a?.hourlyCompensations?.some(
|
|
85
|
+
(e) => e.jobUuid === p?.uuid
|
|
86
|
+
), O = p && z ? [p] : [], R = ne(null), f = Oe({
|
|
87
|
+
ref: R
|
|
79
88
|
}).includes("small");
|
|
80
|
-
|
|
81
|
-
const n =
|
|
82
|
-
n && !O.find((
|
|
89
|
+
a?.hourlyCompensations?.forEach((e) => {
|
|
90
|
+
const n = d.jobs?.find((l) => l.uuid === e.jobUuid);
|
|
91
|
+
n && !O.find((l) => l.uuid === n.uuid) && O.push(n);
|
|
83
92
|
});
|
|
84
|
-
const
|
|
85
|
-
flsaStatus:
|
|
86
|
-
existingFixedCompensations:
|
|
87
|
-
primaryJobUuid:
|
|
88
|
-
fixedCompensationTypes:
|
|
89
|
-
excludedTypes:
|
|
90
|
-
}),
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
) : null,
|
|
95
|
-
(
|
|
96
|
-
),
|
|
93
|
+
const g = (a?.paidTimeOff || []).filter((e) => e.name), _ = ce({
|
|
94
|
+
flsaStatus: p?.compensations?.[0]?.flsaStatus,
|
|
95
|
+
existingFixedCompensations: a?.fixedCompensations || [],
|
|
96
|
+
primaryJobUuid: p?.uuid,
|
|
97
|
+
fixedCompensationTypes: M,
|
|
98
|
+
excludedTypes: fe
|
|
99
|
+
}), E = P ? pe(
|
|
100
|
+
a?.fixedCompensations || [],
|
|
101
|
+
M,
|
|
102
|
+
p?.uuid
|
|
103
|
+
) : null, U = (e, n) => a?.hourlyCompensations?.find(
|
|
104
|
+
(l) => l.jobUuid === e && l.name?.toLowerCase() === n.toLowerCase()
|
|
105
|
+
), W = (e) => {
|
|
97
106
|
switch (e) {
|
|
98
|
-
case
|
|
107
|
+
case Ne:
|
|
99
108
|
return t("compensationNames.regularHours");
|
|
100
|
-
case
|
|
109
|
+
case Ce:
|
|
101
110
|
return t("compensationNames.overtime");
|
|
102
|
-
case
|
|
111
|
+
case he:
|
|
103
112
|
return t("compensationNames.doubleOvertime");
|
|
104
113
|
default:
|
|
105
114
|
return e;
|
|
106
115
|
}
|
|
107
|
-
},
|
|
116
|
+
}, F = (e) => {
|
|
108
117
|
switch (e) {
|
|
109
|
-
case
|
|
118
|
+
case Pe:
|
|
110
119
|
return t("fixedCompensationNames.bonus");
|
|
111
|
-
case
|
|
120
|
+
case Me:
|
|
112
121
|
return t("fixedCompensationNames.paycheckTips");
|
|
113
|
-
case
|
|
122
|
+
case ye:
|
|
114
123
|
return t("fixedCompensationNames.correctionPayment");
|
|
115
|
-
case
|
|
124
|
+
case be:
|
|
116
125
|
return t("fixedCompensationNames.commission");
|
|
117
|
-
case
|
|
126
|
+
case Ee:
|
|
118
127
|
return t("fixedCompensationNames.cashTips");
|
|
119
|
-
case
|
|
128
|
+
case ge:
|
|
120
129
|
return t("fixedCompensationNames.reimbursement");
|
|
121
130
|
default:
|
|
122
131
|
return e;
|
|
123
132
|
}
|
|
124
|
-
},
|
|
133
|
+
}, Y = {
|
|
125
134
|
hourlyCompensations: (() => {
|
|
126
135
|
const e = {};
|
|
127
136
|
return O.forEach((n) => {
|
|
128
|
-
|
|
129
|
-
const
|
|
130
|
-
|
|
137
|
+
$.forEach((l) => {
|
|
138
|
+
const C = U(n.uuid, l);
|
|
139
|
+
C && (e[n.uuid] || (e[n.uuid] = {}), e[n.uuid][C.name] = C.hours ? parseFloat(C.hours).toString() : "");
|
|
131
140
|
});
|
|
132
141
|
}), e;
|
|
133
142
|
})(),
|
|
134
143
|
timeOffCompensations: (() => {
|
|
135
144
|
const e = {};
|
|
136
|
-
return
|
|
145
|
+
return g.forEach((n) => {
|
|
137
146
|
e[n.name] = n.hours ? parseFloat(n.hours).toString() : "";
|
|
138
147
|
}), e;
|
|
139
148
|
})(),
|
|
149
|
+
finalPayoutCompensations: (() => {
|
|
150
|
+
const e = {};
|
|
151
|
+
return g.forEach((n) => {
|
|
152
|
+
e[n.name] = n.finalPayoutUnusedHoursInput ?? "0";
|
|
153
|
+
}), e;
|
|
154
|
+
})(),
|
|
140
155
|
fixedCompensations: (() => {
|
|
141
156
|
const e = {};
|
|
142
157
|
return _.forEach((n) => {
|
|
143
158
|
e[n.name] = n.amount ? parseFloat(n.amount) : void 0;
|
|
144
|
-
}),
|
|
159
|
+
}), E && (e[E.name] = E.amount ? parseFloat(E.amount) : void 0), e;
|
|
145
160
|
})(),
|
|
146
|
-
paymentMethod:
|
|
147
|
-
}, I =
|
|
148
|
-
resolver:
|
|
149
|
-
defaultValues:
|
|
150
|
-
}),
|
|
161
|
+
paymentMethod: a?.paymentMethod || S.DirectDeposit
|
|
162
|
+
}, I = Z({
|
|
163
|
+
resolver: ie(Te),
|
|
164
|
+
defaultValues: Y
|
|
165
|
+
}), b = J({
|
|
151
166
|
control: I.control
|
|
152
|
-
}),
|
|
167
|
+
}), K = te(() => {
|
|
153
168
|
try {
|
|
154
169
|
const e = {};
|
|
155
|
-
|
|
156
|
-
D && (e[
|
|
170
|
+
b.hourlyCompensations && Object.entries(b.hourlyCompensations).forEach(([C, D]) => {
|
|
171
|
+
D && (e[C] = D);
|
|
157
172
|
});
|
|
158
173
|
const n = {
|
|
159
174
|
hourlyCompensations: e,
|
|
160
|
-
timeOffCompensations:
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
175
|
+
timeOffCompensations: b.timeOffCompensations || {},
|
|
176
|
+
finalPayoutCompensations: b.finalPayoutCompensations || {},
|
|
177
|
+
fixedCompensations: b.fixedCompensations || {},
|
|
178
|
+
paymentMethod: b.paymentMethod
|
|
179
|
+
}, l = q(
|
|
164
180
|
n,
|
|
165
|
-
|
|
166
|
-
(
|
|
167
|
-
|
|
181
|
+
a,
|
|
182
|
+
(a?.paidTimeOff || []).filter((C) => C.name),
|
|
183
|
+
p?.uuid
|
|
168
184
|
);
|
|
169
185
|
return k(
|
|
170
|
-
s,
|
|
171
186
|
l,
|
|
172
|
-
o,
|
|
173
187
|
d,
|
|
174
|
-
|
|
188
|
+
i,
|
|
189
|
+
m,
|
|
190
|
+
h
|
|
175
191
|
);
|
|
176
192
|
} catch {
|
|
177
|
-
return
|
|
178
|
-
|
|
179
|
-
l,
|
|
180
|
-
o,
|
|
193
|
+
return a ? k(
|
|
194
|
+
a,
|
|
181
195
|
d,
|
|
182
|
-
|
|
196
|
+
i,
|
|
197
|
+
m,
|
|
198
|
+
h
|
|
183
199
|
) : 0;
|
|
184
200
|
}
|
|
185
201
|
}, [
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
l,
|
|
190
|
-
o,
|
|
202
|
+
b,
|
|
203
|
+
a,
|
|
204
|
+
p?.uuid,
|
|
191
205
|
d,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
206
|
+
i,
|
|
207
|
+
m,
|
|
208
|
+
h
|
|
209
|
+
]), X = ue({
|
|
210
|
+
first_name: d.firstName,
|
|
211
|
+
last_name: d.lastName
|
|
212
|
+
}), Q = (e) => {
|
|
213
|
+
const n = q(
|
|
198
214
|
e,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
215
|
+
a,
|
|
216
|
+
g,
|
|
217
|
+
p?.uuid
|
|
202
218
|
);
|
|
203
|
-
|
|
204
|
-
},
|
|
219
|
+
N(n);
|
|
220
|
+
}, j = de(K || 0), L = /* @__PURE__ */ r(
|
|
205
221
|
x,
|
|
206
222
|
{
|
|
207
|
-
flexDirection:
|
|
208
|
-
justifyContent:
|
|
209
|
-
alignItems:
|
|
223
|
+
flexDirection: f ? "row" : "column",
|
|
224
|
+
justifyContent: f ? "flex-end" : "normal",
|
|
225
|
+
alignItems: f ? "flex-start" : "stretch",
|
|
210
226
|
gap: 12,
|
|
211
227
|
children: [
|
|
212
|
-
/* @__PURE__ */
|
|
213
|
-
/* @__PURE__ */
|
|
228
|
+
/* @__PURE__ */ o(v, { variant: "secondary", onClick: T, title: t("cancelCta"), children: t("cancelCta") }),
|
|
229
|
+
/* @__PURE__ */ o(
|
|
214
230
|
v,
|
|
215
231
|
{
|
|
216
|
-
onClick: I.handleSubmit(
|
|
232
|
+
onClick: I.handleSubmit(Q),
|
|
217
233
|
title: t("saveCta"),
|
|
218
|
-
isLoading:
|
|
234
|
+
isLoading: y,
|
|
219
235
|
children: t("saveCta")
|
|
220
236
|
}
|
|
221
237
|
)
|
|
222
238
|
]
|
|
223
239
|
}
|
|
224
240
|
);
|
|
225
|
-
return /* @__PURE__ */
|
|
226
|
-
/* @__PURE__ */
|
|
241
|
+
return /* @__PURE__ */ r("div", { ref: R, className: u.container, children: [
|
|
242
|
+
/* @__PURE__ */ o(
|
|
227
243
|
"div",
|
|
228
244
|
{
|
|
229
|
-
className: `${u.headerSection} ${
|
|
230
|
-
children: /* @__PURE__ */
|
|
231
|
-
/* @__PURE__ */
|
|
232
|
-
/* @__PURE__ */
|
|
233
|
-
|
|
234
|
-
/* @__PURE__ */
|
|
235
|
-
/* @__PURE__ */
|
|
236
|
-
] }) : /* @__PURE__ */
|
|
245
|
+
className: `${u.headerSection} ${f ? "" : u.headerSectionSticky}`,
|
|
246
|
+
children: /* @__PURE__ */ r(x, { justifyContent: "space-between", children: [
|
|
247
|
+
/* @__PURE__ */ r(x, { flexDirection: "column", gap: f ? 8 : 2, children: [
|
|
248
|
+
/* @__PURE__ */ o(c, { as: "h1", styledAs: f ? "h2" : "h4", children: t("pageTitle", { employeeName: X }) }),
|
|
249
|
+
f ? /* @__PURE__ */ r(x, { flexDirection: "column", gap: 6, children: [
|
|
250
|
+
/* @__PURE__ */ o(c, { as: "h2", styledAs: "h3", children: j }),
|
|
251
|
+
/* @__PURE__ */ o(V, { className: u.grossPayLabel, children: t("grossPayLabel") })
|
|
252
|
+
] }) : /* @__PURE__ */ o(c, { as: "h2", styledAs: "h6", className: u.grossPayLabel, children: t("grossPayLabelMobile", { grossPay: j }) })
|
|
237
253
|
] }),
|
|
238
|
-
|
|
254
|
+
f && L
|
|
239
255
|
] })
|
|
240
256
|
}
|
|
241
257
|
),
|
|
242
|
-
/* @__PURE__ */
|
|
243
|
-
/* @__PURE__ */
|
|
244
|
-
O.length > 0 && /* @__PURE__ */
|
|
245
|
-
/* @__PURE__ */
|
|
246
|
-
O.map((e) => /* @__PURE__ */
|
|
247
|
-
O.length > 1 && /* @__PURE__ */
|
|
248
|
-
/* @__PURE__ */
|
|
249
|
-
const
|
|
258
|
+
/* @__PURE__ */ r(ee, { ...I, children: [
|
|
259
|
+
/* @__PURE__ */ r(le, { children: [
|
|
260
|
+
O.length > 0 && /* @__PURE__ */ r("div", { className: u.fieldGroup, children: [
|
|
261
|
+
/* @__PURE__ */ o(c, { as: "h3", children: t("regularHoursTitle") }),
|
|
262
|
+
O.map((e) => /* @__PURE__ */ r(x, { flexDirection: "column", gap: 8, children: [
|
|
263
|
+
O.length > 1 && /* @__PURE__ */ o(c, { as: "h4", children: e.title }),
|
|
264
|
+
/* @__PURE__ */ o(A, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: $.map((n) => {
|
|
265
|
+
const l = U(
|
|
250
266
|
e.uuid,
|
|
251
267
|
n
|
|
252
268
|
);
|
|
253
|
-
if (
|
|
254
|
-
return /* @__PURE__ */
|
|
255
|
-
|
|
269
|
+
if (l)
|
|
270
|
+
return /* @__PURE__ */ o(
|
|
271
|
+
G,
|
|
256
272
|
{
|
|
257
273
|
type: "number",
|
|
258
274
|
min: 0,
|
|
259
275
|
adornmentEnd: t("hoursUnit"),
|
|
260
276
|
isRequired: !0,
|
|
261
|
-
label:
|
|
262
|
-
name: `hourlyCompensations.${e.uuid}.${
|
|
277
|
+
label: W(n),
|
|
278
|
+
name: `hourlyCompensations.${e.uuid}.${l.name}`
|
|
263
279
|
},
|
|
264
280
|
n
|
|
265
281
|
);
|
|
266
282
|
}) })
|
|
267
283
|
] }, e.uuid))
|
|
268
284
|
] }),
|
|
269
|
-
|
|
270
|
-
/* @__PURE__ */
|
|
271
|
-
/* @__PURE__ */
|
|
272
|
-
|
|
285
|
+
g.length > 0 && /* @__PURE__ */ r("div", { className: u.fieldGroup, children: [
|
|
286
|
+
/* @__PURE__ */ o(c, { as: "h4", children: t("timeOffTitle") }),
|
|
287
|
+
/* @__PURE__ */ o(A, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: g.map((e) => /* @__PURE__ */ o(
|
|
288
|
+
se,
|
|
273
289
|
{
|
|
274
290
|
timeOff: e,
|
|
275
|
-
employee:
|
|
291
|
+
employee: d
|
|
276
292
|
},
|
|
277
293
|
e.name
|
|
278
294
|
)) })
|
|
279
295
|
] }),
|
|
280
|
-
|
|
281
|
-
/* @__PURE__ */
|
|
282
|
-
/* @__PURE__ */
|
|
283
|
-
|
|
296
|
+
h === w.Dismissal && g.length > 0 && /* @__PURE__ */ r("div", { className: u.fieldGroup, children: [
|
|
297
|
+
/* @__PURE__ */ o(c, { as: "h4", children: t("finalPayoutTitle") }),
|
|
298
|
+
/* @__PURE__ */ o(A, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: g.map((e) => /* @__PURE__ */ o(
|
|
299
|
+
G,
|
|
300
|
+
{
|
|
301
|
+
name: `finalPayoutCompensations.${e.name}`,
|
|
302
|
+
type: "number",
|
|
303
|
+
min: 0,
|
|
304
|
+
adornmentEnd: t("hoursUnit"),
|
|
305
|
+
isRequired: !0,
|
|
306
|
+
label: e.name
|
|
307
|
+
},
|
|
308
|
+
`payout-${e.name}`
|
|
309
|
+
)) })
|
|
310
|
+
] }),
|
|
311
|
+
_.length > 0 && /* @__PURE__ */ r("div", { className: u.fieldGroup, children: [
|
|
312
|
+
/* @__PURE__ */ o(c, { as: "h4", children: t("additionalEarningsTitle") }),
|
|
313
|
+
/* @__PURE__ */ o(
|
|
314
|
+
A,
|
|
284
315
|
{
|
|
285
316
|
gridTemplateColumns: { base: "1fr", small: [320, 320], large: [320, 320, 320] },
|
|
286
317
|
gap: 20,
|
|
287
|
-
children: _.map((e) => /* @__PURE__ */
|
|
288
|
-
|
|
318
|
+
children: _.map((e) => /* @__PURE__ */ o(
|
|
319
|
+
H,
|
|
289
320
|
{
|
|
290
321
|
format: "currency",
|
|
291
322
|
min: 0,
|
|
292
323
|
isRequired: !0,
|
|
293
|
-
label:
|
|
324
|
+
label: F(e.name),
|
|
294
325
|
name: `fixedCompensations.${e.name}`
|
|
295
326
|
},
|
|
296
327
|
e.name
|
|
@@ -298,23 +329,23 @@ const Te = m.object({
|
|
|
298
329
|
}
|
|
299
330
|
)
|
|
300
331
|
] }),
|
|
301
|
-
|
|
302
|
-
/* @__PURE__ */
|
|
303
|
-
/* @__PURE__ */
|
|
304
|
-
|
|
332
|
+
E && /* @__PURE__ */ r("div", { className: u.fieldGroup, children: [
|
|
333
|
+
/* @__PURE__ */ o(c, { as: "h4", children: t("reimbursementTitle") }),
|
|
334
|
+
/* @__PURE__ */ o(A, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: /* @__PURE__ */ o(
|
|
335
|
+
H,
|
|
305
336
|
{
|
|
306
337
|
format: "currency",
|
|
307
338
|
min: 0,
|
|
308
339
|
isRequired: !0,
|
|
309
|
-
label:
|
|
310
|
-
name: `fixedCompensations.${
|
|
340
|
+
label: F(E.name),
|
|
341
|
+
name: `fixedCompensations.${E.name}`
|
|
311
342
|
}
|
|
312
343
|
) })
|
|
313
344
|
] }),
|
|
314
|
-
|
|
315
|
-
/* @__PURE__ */
|
|
316
|
-
/* @__PURE__ */
|
|
317
|
-
|
|
345
|
+
B && /* @__PURE__ */ r("div", { className: u.fieldGroup, children: [
|
|
346
|
+
/* @__PURE__ */ o(c, { as: "h4", children: t("paymentMethodTitle") }),
|
|
347
|
+
/* @__PURE__ */ o(
|
|
348
|
+
ae,
|
|
318
349
|
{
|
|
319
350
|
name: "paymentMethod",
|
|
320
351
|
isRequired: !0,
|
|
@@ -334,12 +365,12 @@ const Te = m.object({
|
|
|
334
365
|
)
|
|
335
366
|
] })
|
|
336
367
|
] }),
|
|
337
|
-
!
|
|
368
|
+
!f && L
|
|
338
369
|
] })
|
|
339
370
|
] });
|
|
340
371
|
};
|
|
341
372
|
export {
|
|
342
373
|
Te as PayrollEditEmployeeFormSchema,
|
|
343
|
-
|
|
374
|
+
Xe as PayrollEditEmployeePresentation
|
|
344
375
|
};
|
|
345
376
|
//# sourceMappingURL=PayrollEditEmployeePresentation.js.map
|