@gusto/embedded-react-sdk 0.55.7 → 0.56.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.
- package/CHANGELOG.md +63 -0
- package/dist/components/Common/FadeIn/FadeIn.module.scss.js +4 -4
- package/dist/components/Common/FieldCaption/FieldCaption.js +22 -18
- package/dist/components/Common/FieldCaption/FieldCaption.js.map +1 -1
- package/dist/components/Common/Flex/Flex.js +17 -15
- package/dist/components/Common/Flex/Flex.js.map +1 -1
- package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
- package/dist/components/Common/UI/Heading/Heading.module.scss.js +7 -7
- package/dist/components/Common/UI/Menu/MenuTypes.js.map +1 -1
- package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js +43 -42
- package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js.map +1 -1
- package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +5 -3
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +5 -3
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +7 -5
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +5 -3
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +5 -3
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +27 -27
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +10 -8
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +8 -6
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +5 -3
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +5 -3
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +5 -3
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +45 -30
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/PayScheduleComponents.js +12 -11
- package/dist/components/Company/PaySchedule/PayScheduleComponents.js.map +1 -1
- package/dist/components/Company/PaySchedule/PayScheduleForm.js +72 -55
- package/dist/components/Company/PaySchedule/PayScheduleForm.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js +24 -20
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js +33 -29
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +131 -115
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +5 -3
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +5 -3
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/TaxRateManagement/context.js +5 -3
- package/dist/components/Company/StateTaxes/TaxRateManagement/context.js.map +1 -1
- package/dist/components/Contractor/ContractorList/management/ManagementContractorList.js +31 -29
- package/dist/components/Contractor/ContractorList/management/ManagementContractorList.js.map +1 -1
- package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js +110 -109
- package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js.map +1 -1
- package/dist/components/Contractor/ContractorList/onboarding/ContractorList.js +21 -19
- package/dist/components/Contractor/ContractorList/onboarding/ContractorList.js.map +1 -1
- package/dist/components/Contractor/ContractorList/onboarding/ContractorListView.js +56 -55
- package/dist/components/Contractor/ContractorList/onboarding/ContractorListView.js.map +1 -1
- package/dist/components/Contractor/Dashboard/Dashboard.js +34 -33
- package/dist/components/Contractor/Dashboard/Dashboard.js.map +1 -1
- package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js +117 -115
- package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +77 -75
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +44 -43
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +40 -39
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js +35 -29
- package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js +21 -20
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +41 -40
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +21 -20
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +33 -32
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +80 -78
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +44 -43
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
- package/dist/components/Contractor/Submit/Submit.js +113 -105
- package/dist/components/Contractor/Submit/Submit.js.map +1 -1
- package/dist/components/Contractor/Submit/SubmitDone.js +11 -11
- package/dist/components/Contractor/Submit/SubmitDone.js.map +1 -1
- package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.js +20 -18
- package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.js.map +1 -1
- package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.js +18 -15
- package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.js.map +1 -1
- package/dist/components/Employee/Dashboard/Dashboard.js +33 -32
- package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -1
- package/dist/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.js +21 -19
- package/dist/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.js.map +1 -1
- package/dist/components/Employee/Documents/management/DocumentManager.js +34 -26
- package/dist/components/Employee/Documents/management/DocumentManager.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +5 -3
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js +30 -29
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +54 -53
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js +29 -28
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.js +16 -15
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js +27 -25
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js +121 -111
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -1
- package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.js +22 -20
- package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js +24 -23
- package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js.map +1 -1
- package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js +52 -43
- package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.js +29 -26
- package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js +1 -1
- package/dist/components/Employee/HomeAddress/management/HomeAddressEditForm.js +19 -17
- package/dist/components/Employee/HomeAddress/management/HomeAddressEditForm.js.map +1 -1
- package/dist/components/Employee/HomeAddress/management/HomeAddressView.js +79 -78
- package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/management/PaymentMethodBankForm.js +4 -4
- package/dist/components/Employee/PaymentMethod/onboarding/BankForm.js +4 -4
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +40 -39
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +31 -30
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js +43 -41
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +20 -19
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/WorkAddressEditForm.js +19 -17
- package/dist/components/Employee/WorkAddress/management/WorkAddressEditForm.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/WorkAddressView.js +49 -48
- package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -1
- package/dist/components/Flow/Flow.js +1 -1
- package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +28 -28
- package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js +37 -36
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js +36 -35
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +35 -28
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +23 -22
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +48 -45
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +85 -77
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +63 -59
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
- package/dist/components/Payroll/OffCycleDeductionsSetting/OffCycleDeductionsSetting.js +23 -21
- package/dist/components/Payroll/OffCycleDeductionsSetting/OffCycleDeductionsSetting.js.map +1 -1
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js +26 -19
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js.map +1 -1
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +14 -12
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +184 -162
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +67 -65
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/useCalculationPoll.js +48 -34
- package/dist/components/Payroll/PayrollConfiguration/useCalculationPoll.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +43 -41
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +225 -223
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js +78 -75
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.js +27 -27
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeSchema.js +19 -19
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeSchema.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js +51 -48
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +58 -48
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +58 -57
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +83 -69
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollList.js +62 -60
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +119 -117
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +187 -171
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +120 -110
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/useSubmissionPoll.js +45 -34
- package/dist/components/Payroll/PayrollOverview/useSubmissionPoll.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js +20 -14
- package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +62 -61
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.module.scss.js +14 -14
- package/dist/components/Payroll/PrintChecks/PrintChecksBanner/PrintChecksBanner.js +24 -17
- package/dist/components/Payroll/PrintChecks/PrintChecksBanner/PrintChecksBanner.js.map +1 -1
- package/dist/components/Payroll/PrintChecks/PrintChecksFailure/PrintChecksFailure.js +22 -22
- package/dist/components/Payroll/PrintChecks/PrintChecksFailure/PrintChecksFailure.js.map +1 -1
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js +88 -80
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js.map +1 -1
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/useGenerationPoll.js +52 -37
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/useGenerationPoll.js.map +1 -1
- package/dist/components/Payroll/PrintChecks/PrintChecksSummary/PrintChecksSummary.js +26 -26
- package/dist/components/Payroll/PrintChecks/PrintChecksSummary/PrintChecksSummary.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +32 -32
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +50 -48
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +34 -33
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +1 -1
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +28 -24
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js +255 -228
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.module.scss.js +8 -4
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.module.scss.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +10 -8
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js +5 -5
- package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +1 -1
- package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js +8 -7
- package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +1 -1
- package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js +51 -50
- package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js.map +1 -1
- package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js +20 -18
- package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js.map +1 -1
- package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +51 -49
- package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +1 -1
- package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js +20 -20
- package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +1 -1
- package/dist/components/TimeOff/PolicyList/PolicyList.js +50 -49
- package/dist/components/TimeOff/PolicyList/PolicyList.js.map +1 -1
- package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js +34 -33
- package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js.map +1 -1
- package/dist/components/TimeOff/PolicySettings/PolicySettings.js +46 -45
- package/dist/components/TimeOff/PolicySettings/PolicySettings.js.map +1 -1
- package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js +152 -143
- package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js.map +1 -1
- package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +14 -13
- package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +1 -1
- package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +44 -35
- package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +88 -71
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +164 -155
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +57 -55
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +25 -24
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +94 -92
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -1
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js +156 -155
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js.map +1 -1
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js +21 -19
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js.map +1 -1
- package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js +28 -26
- package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js.map +1 -1
- package/dist/contexts/ApiProvider/ApiProvider.js +29 -28
- package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
- package/dist/contexts/ApiProvider/apiVersionMismatchHook.js +15 -0
- package/dist/contexts/ApiProvider/apiVersionMismatchHook.js.map +1 -0
- package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
- package/dist/contexts/ThemeProvider/ThemeProvider.js +32 -26
- package/dist/contexts/ThemeProvider/ThemeProvider.js.map +1 -1
- package/dist/contexts/UnstableFeaturesProvider/useUnstableFeature.js.map +1 -1
- package/dist/hooks/usePollingTask/usePollingTask.js +53 -41
- package/dist/hooks/usePollingTask/usePollingTask.js.map +1 -1
- package/dist/i18n/en/Company.PaySchedule.json.js +22 -20
- package/dist/i18n/en/Company.PaySchedule.json.js.map +1 -1
- package/dist/i18n/en/Employee.ManagementEmployeeList.json.js +28 -24
- package/dist/i18n/en/Employee.ManagementEmployeeList.json.js.map +1 -1
- package/dist/i18n/en/Payroll.GrossUpModal.json.js +12 -10
- package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +8 -8
- package/dist/i18n/en/Payroll.PayrollOverview.json.js +15 -15
- package/dist/i18n/en/Payroll.UNSTABLE_PayrollEditEmployee.json.js +62 -58
- package/dist/i18n/en/Payroll.UNSTABLE_PayrollEditEmployee.json.js.map +1 -1
- package/dist/package.json.js +1 -1
- package/dist/src/components/Common/FieldCaption/FieldCaption.d.ts +2 -16
- package/dist/src/components/Common/FieldCaption/FieldCaptionTypes.d.ts +22 -0
- package/dist/src/components/Common/FieldCaption/index.d.ts +1 -0
- package/dist/src/components/Common/Flex/Flex.d.ts +3 -1
- package/dist/src/components/Common/UI/ComboBox/ComboBoxTypes.d.ts +1 -1
- package/dist/src/components/Common/UI/DatePicker/DatePickerTypes.d.ts +2 -1
- package/dist/src/components/Common/UI/Menu/MenuTypes.d.ts +1 -1
- package/dist/src/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.d.ts +1 -1
- package/dist/src/components/Common/UI/MultiSelectComboBox/MultiSelectComboBoxTypes.d.ts +5 -0
- package/dist/src/components/Common/UI/Select/SelectTypes.d.ts +2 -1
- package/dist/src/components/Company/PaySchedule/PaySchedule.d.ts +10 -2
- package/dist/src/components/Company/PaySchedule/PayScheduleComponents.d.ts +1 -0
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/fields.d.ts +9 -1
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/index.d.ts +2 -2
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.d.ts +21 -5
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +21 -3
- package/dist/src/components/Contractor/ContractorList/management/ManagementContractorListView.d.ts +3 -1
- package/dist/src/components/Contractor/ContractorList/onboarding/ContractorListView.d.ts +3 -1
- package/dist/src/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts +3 -1
- package/dist/src/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +3 -1
- package/dist/src/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.d.ts +3 -1
- package/dist/src/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.d.ts +3 -1
- package/dist/src/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.d.ts +3 -1
- package/dist/src/components/Contractor/Submit/SubmitDone.d.ts +3 -1
- package/dist/src/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.d.ts +1 -1
- package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.d.ts +3 -1
- package/dist/src/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.d.ts +3 -1
- package/dist/src/components/Employee/EmployeeList/management/ManagementEmployeeListView.d.ts +3 -1
- package/dist/src/components/Employee/EmployeeList/onboarding/EmployeeListView.d.ts +3 -1
- package/dist/src/components/Employee/EmployeeList/shared/useEmployeeList.d.ts +11 -2
- package/dist/src/components/Employee/EmployeeListFlow/employeeListStateMachine.test.d.ts +1 -0
- package/dist/src/components/Employee/HomeAddress/management/HomeAddressView.d.ts +3 -1
- package/dist/src/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.d.ts +3 -1
- package/dist/src/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.d.ts +3 -1
- package/dist/src/components/Employee/WorkAddress/management/WorkAddressView.d.ts +3 -1
- package/dist/src/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.d.ts +3 -1
- package/dist/src/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.d.ts +1 -1
- package/dist/src/components/Payroll/OffCycleCreation/OffCycleCreationTypes.d.ts +8 -0
- package/dist/src/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollConfiguration/useCalculationPoll.d.ts +6 -1
- package/dist/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.d.ts +9 -9
- package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.d.ts +2 -2
- package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeSchema.d.ts +4 -4
- package/dist/src/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollList/PayrollListPresentation.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +2 -1
- package/dist/src/components/Payroll/PayrollOverview/useSubmissionPoll.d.ts +10 -1
- package/dist/src/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.d.ts +2 -1
- package/dist/src/components/Payroll/TransitionCreation/TransitionCreationPresentation.d.ts +1 -1
- package/dist/src/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +2 -0
- package/dist/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.d.ts +3 -1
- package/dist/src/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.d.ts +1 -1
- package/dist/src/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.d.ts +1 -1
- package/dist/src/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.d.ts +1 -1
- package/dist/src/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/PolicyList/PolicyListPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/PolicyList/PolicyListTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/PolicySettings/PolicySettingsPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/PolicySettings/PolicySettingsTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.d.ts +2 -0
- package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.d.ts +2 -0
- package/dist/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailTypes.d.ts +3 -0
- package/dist/src/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.d.ts +1 -1
- package/dist/src/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayoutTypes.d.ts +2 -0
- package/dist/src/contexts/ApiProvider/ApiProvider.d.ts +5 -3
- package/dist/src/contexts/ApiProvider/apiVersionMismatchHook.d.ts +3 -0
- package/dist/src/contexts/ApiProvider/apiVersionMismatchHook.test.d.ts +1 -0
- package/dist/src/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
- package/dist/src/contexts/ComponentAdapter/useComponentContext.d.ts +4 -1
- package/dist/src/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +9 -1
- package/dist/src/contexts/ThemeProvider/ThemeProvider.d.ts +8 -3
- package/dist/src/contexts/UnstableFeaturesProvider/useUnstableFeature.d.ts +4 -1
- package/dist/src/hooks/usePollingTask/usePollingTask.d.ts +55 -14
- package/dist/src/i18n/types.d.ts +42 -2
- package/dist/src/index.d.ts +1 -1
- package/dist/src/models/external.d.ts +1 -0
- package/dist/style.css +1 -1
- package/docs/guides/endpoint-inventory.json +5 -0
- package/package.json +20 -19
|
@@ -1,119 +1,132 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { usePayrollsGetSuspense as
|
|
4
|
-
import { payrollsCalculate as
|
|
5
|
-
import { useGustoEmbeddedContext as
|
|
6
|
-
import { useTranslation as
|
|
7
|
-
import { usePayrollsUpdateMutation as
|
|
8
|
-
import { usePayrollsCalculateGrossUpMutation as
|
|
9
|
-
import { usePayrollsGetBlockersSuspense as
|
|
10
|
-
import { payrollSubmitHandler as
|
|
11
|
-
import { PayrollOverview as
|
|
12
|
-
import { PayrollConfigurationPresentation as
|
|
13
|
-
import { usePayrollConfigurationData as
|
|
14
|
-
import { isGrossUpEligible as
|
|
15
|
-
import { isCalculatingStatus as
|
|
16
|
-
import { BaseComponent as
|
|
1
|
+
import { jsx as y, jsxs as we, Fragment as Re } from "react/jsx-runtime";
|
|
2
|
+
import { useState as d, useRef as O, useMemo as b, useEffect as H } from "react";
|
|
3
|
+
import { usePayrollsGetSuspense as Ee } from "@gusto/embedded-api/react-query/payrollsGet";
|
|
4
|
+
import { payrollsCalculate as _e } from "@gusto/embedded-api/funcs/payrollsCalculate";
|
|
5
|
+
import { useGustoEmbeddedContext as De } from "@gusto/embedded-api/react-query/_context";
|
|
6
|
+
import { useTranslation as Oe } from "react-i18next";
|
|
7
|
+
import { usePayrollsUpdateMutation as be } from "@gusto/embedded-api/react-query/payrollsUpdate";
|
|
8
|
+
import { usePayrollsCalculateGrossUpMutation as xe } from "@gusto/embedded-api/react-query/payrollsCalculateGrossUp";
|
|
9
|
+
import { usePayrollsGetBlockersSuspense as Te } from "@gusto/embedded-api/react-query/payrollsGetBlockers";
|
|
10
|
+
import { payrollSubmitHandler as ke } from "../PayrollBlocker/payrollHelpers.js";
|
|
11
|
+
import { PayrollOverview as Ge } from "../PayrollOverview/PayrollOverview.js";
|
|
12
|
+
import { PayrollConfigurationPresentation as Ne } from "./PayrollConfigurationPresentation.js";
|
|
13
|
+
import { usePayrollConfigurationData as Ye } from "./usePayrollConfigurationData.js";
|
|
14
|
+
import { isGrossUpEligible as Fe, getGrossUpTargetCompensationName as Me } from "./grossUpHelpers.js";
|
|
15
|
+
import { isCalculatingStatus as K, useCalculationPoll as Be } from "./useCalculationPoll.js";
|
|
16
|
+
import { BaseComponent as je } from "../../Base/Base.js";
|
|
17
17
|
import { componentEvents as i } from "../../../shared/constants.js";
|
|
18
|
-
import { useComponentDictionary as
|
|
19
|
-
import { useBase as
|
|
20
|
-
import { useDateFormatter as
|
|
21
|
-
import { SDKInternalError as
|
|
22
|
-
import { GrossUpModal as
|
|
23
|
-
function
|
|
24
|
-
return /* @__PURE__ */
|
|
18
|
+
import { useComponentDictionary as ve, useI18n as We } from "../../../i18n/I18n.js";
|
|
19
|
+
import { useBase as qe } from "../../Base/useBase.js";
|
|
20
|
+
import { useDateFormatter as He } from "../../../hooks/useDateFormatter.js";
|
|
21
|
+
import { SDKInternalError as V } from "../../../types/sdkError.js";
|
|
22
|
+
import { GrossUpModal as Ke } from "../GrossUpModal/GrossUpModal.js";
|
|
23
|
+
function Co(t) {
|
|
24
|
+
return /* @__PURE__ */ y(je, { ...t, children: /* @__PURE__ */ y(Ve, { ...t, children: t.children }) });
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const Ve = ({
|
|
27
27
|
onEvent: t,
|
|
28
|
-
companyId:
|
|
28
|
+
companyId: c,
|
|
29
29
|
payrollId: l,
|
|
30
|
-
dictionary:
|
|
31
|
-
alerts:
|
|
32
|
-
withReimbursements:
|
|
30
|
+
dictionary: $,
|
|
31
|
+
alerts: J,
|
|
32
|
+
withReimbursements: x = !0,
|
|
33
|
+
className: T
|
|
33
34
|
}) => {
|
|
34
|
-
|
|
35
|
-
const { t:
|
|
35
|
+
ve("Payroll.PayrollConfiguration", $), We("Payroll.PayrollConfiguration");
|
|
36
|
+
const { t: n } = Oe("Payroll.PayrollConfiguration"), { baseSubmitHandler: f, setError: P } = qe(), p = He(), [k, G] = d(!1), u = O(!1), h = O(!1), z = De(), Q = b(
|
|
36
37
|
() => ({
|
|
37
|
-
companyId:
|
|
38
|
+
companyId: c,
|
|
38
39
|
payrollId: l,
|
|
39
40
|
include: ["taxes", "benefits", "deductions", "payroll_status_meta"]
|
|
40
41
|
}),
|
|
41
|
-
[
|
|
42
|
-
), { data: s, refetch:
|
|
42
|
+
[c, l]
|
|
43
|
+
), { data: s, refetch: X } = Ee(Q), Z = b(
|
|
43
44
|
() => s.payrollShow?.employeeCompensations?.filter((e) => e.excluded).map((e) => e.employeeUuid).filter(Boolean) ?? [],
|
|
44
45
|
[s.payrollShow?.employeeCompensations]
|
|
45
46
|
);
|
|
46
|
-
|
|
47
|
-
const { data:
|
|
48
|
-
companyUuid:
|
|
49
|
-
}),
|
|
47
|
+
K(s.payrollShow?.processingRequest) && (u.current = !0);
|
|
48
|
+
const { data: I } = Te({
|
|
49
|
+
companyUuid: c
|
|
50
|
+
}), N = (I.payrollBlockers ?? []).map((e) => ({
|
|
50
51
|
key: e.key,
|
|
51
52
|
message: e.message
|
|
52
|
-
})), [
|
|
53
|
-
|
|
53
|
+
})), [ee, U] = d(N), [oe, L] = d(!1), Y = () => {
|
|
54
|
+
t(i.RUN_PAYROLL_PROCESSING_FAILED), L(!0), P({
|
|
55
|
+
category: "internal_error",
|
|
56
|
+
message: `${n("alerts.processingFailed.label")}. ${n("alerts.processingFailed.message")}`,
|
|
57
|
+
fieldErrors: []
|
|
58
|
+
});
|
|
59
|
+
}, te = (e) => {
|
|
60
|
+
Y(), e?.calculatedAt == null && (u.current = !1);
|
|
61
|
+
}, { start: A, isPolling: C } = Be({
|
|
62
|
+
refetch: X,
|
|
54
63
|
onCalculated: (e) => {
|
|
55
64
|
t(i.RUN_PAYROLL_CALCULATED, {
|
|
56
65
|
payrollId: l,
|
|
57
66
|
alert: {
|
|
58
67
|
type: "success",
|
|
59
|
-
title:
|
|
68
|
+
title: n("alerts.progressSaved"),
|
|
60
69
|
alertKey: "progressSaved"
|
|
61
70
|
},
|
|
62
71
|
payPeriod: e?.payPeriod
|
|
63
72
|
}), U([]);
|
|
64
73
|
},
|
|
65
|
-
onProcessingFailed:
|
|
66
|
-
|
|
74
|
+
onProcessingFailed: te,
|
|
75
|
+
// Unlike a real processing failure, we never confirmed whether the calculation actually
|
|
76
|
+
// succeeded server-side, so this must not reset hasSeenCalculatingRef — doing so would
|
|
77
|
+
// re-arm prepare and risk wiping a calculation that may have genuinely completed.
|
|
78
|
+
onError: () => {
|
|
79
|
+
h.current = !0, Y();
|
|
67
80
|
}
|
|
68
|
-
}),
|
|
69
|
-
employeeDetails:
|
|
70
|
-
employeeCompensations:
|
|
71
|
-
paySchedule:
|
|
72
|
-
payPeriod:
|
|
73
|
-
payrollCategory:
|
|
74
|
-
pagination:
|
|
75
|
-
isLoading:
|
|
76
|
-
isAlreadyProcessed:
|
|
77
|
-
refetch:
|
|
78
|
-
} =
|
|
79
|
-
companyId:
|
|
81
|
+
}), F = !oe && (k || C || u.current), {
|
|
82
|
+
employeeDetails: ae,
|
|
83
|
+
employeeCompensations: M,
|
|
84
|
+
paySchedule: re,
|
|
85
|
+
payPeriod: se,
|
|
86
|
+
payrollCategory: S,
|
|
87
|
+
pagination: le,
|
|
88
|
+
isLoading: ie,
|
|
89
|
+
isAlreadyProcessed: w,
|
|
90
|
+
refetch: R
|
|
91
|
+
} = Ye({
|
|
92
|
+
companyId: c,
|
|
80
93
|
payrollId: l,
|
|
81
94
|
// Don't prepare while calculating, or once we've seen it calculate. If the payroll was already
|
|
82
95
|
// calculated when we opened (e.g. clicking Edit), we do prepare so it can be edited.
|
|
83
|
-
disablePrepare:
|
|
84
|
-
excludedEmployeeUuids:
|
|
85
|
-
}),
|
|
96
|
+
disablePrepare: C || k || u.current,
|
|
97
|
+
excludedEmployeeUuids: Z
|
|
98
|
+
}), E = b(
|
|
86
99
|
() => ({
|
|
87
100
|
type: "error",
|
|
88
|
-
title:
|
|
101
|
+
title: n("alerts.alreadyProcessed"),
|
|
89
102
|
alertKey: "alreadyProcessed"
|
|
90
103
|
}),
|
|
91
|
-
[
|
|
92
|
-
),
|
|
93
|
-
|
|
94
|
-
if (!
|
|
95
|
-
|
|
104
|
+
[n]
|
|
105
|
+
), _ = O(!1);
|
|
106
|
+
H(() => {
|
|
107
|
+
if (!w) {
|
|
108
|
+
_.current = !1;
|
|
96
109
|
return;
|
|
97
110
|
}
|
|
98
|
-
|
|
111
|
+
_.current || (_.current = !0, t(i.RUN_PAYROLL_ALREADY_PROCESSED, {
|
|
99
112
|
payrollId: l,
|
|
100
|
-
alert:
|
|
113
|
+
alert: E,
|
|
101
114
|
payPeriod: s.payrollShow?.payPeriod
|
|
102
115
|
}));
|
|
103
116
|
}, [
|
|
104
|
-
|
|
117
|
+
w,
|
|
105
118
|
t,
|
|
106
119
|
l,
|
|
107
|
-
|
|
120
|
+
E,
|
|
108
121
|
s.payrollShow?.payPeriod
|
|
109
122
|
]);
|
|
110
|
-
const { mutateAsync:
|
|
111
|
-
|
|
112
|
-
},
|
|
123
|
+
const { mutateAsync: B, isPending: ne } = be(), { mutateAsync: ce } = xe(), [m, j] = d(null), [ue, D] = d(!1), v = Fe(S), g = Me(S), pe = (e) => {
|
|
124
|
+
j(e), D(!0), t(i.RUN_PAYROLL_GROSS_UP_SELECTED, { employeeUuid: e });
|
|
125
|
+
}, me = async (e) => {
|
|
113
126
|
if (!m) return null;
|
|
114
127
|
let o = null;
|
|
115
|
-
return await
|
|
116
|
-
o = (await
|
|
128
|
+
return await f(null, async () => {
|
|
129
|
+
o = (await ce({
|
|
117
130
|
request: {
|
|
118
131
|
payrollUuid: l,
|
|
119
132
|
payrollGrossUpRequest: {
|
|
@@ -127,73 +140,73 @@ const je = ({
|
|
|
127
140
|
employeeUuid: m
|
|
128
141
|
});
|
|
129
142
|
}), o;
|
|
130
|
-
},
|
|
131
|
-
if (!m || !
|
|
132
|
-
throw new
|
|
143
|
+
}, de = async (e) => {
|
|
144
|
+
if (!m || !g)
|
|
145
|
+
throw new V(
|
|
133
146
|
"Unable to apply gross-up: missing employee or target compensation."
|
|
134
147
|
);
|
|
135
|
-
const o =
|
|
148
|
+
const o = M.find((a) => a.employeeUuid === m);
|
|
136
149
|
if (!o)
|
|
137
|
-
throw new
|
|
138
|
-
const r = o.fixedCompensations ?? [],
|
|
139
|
-
(a) => a.name?.toLowerCase() ===
|
|
140
|
-
),
|
|
150
|
+
throw new V("Unable to apply gross-up: employee compensation not found.");
|
|
151
|
+
const r = o.fixedCompensations ?? [], Ue = r.some(
|
|
152
|
+
(a) => a.name?.toLowerCase() === g.toLowerCase()
|
|
153
|
+
), q = r.map((a) => ({
|
|
141
154
|
name: a.name,
|
|
142
155
|
jobUuid: a.jobUuid,
|
|
143
|
-
amount: a.name?.toLowerCase() ===
|
|
156
|
+
amount: a.name?.toLowerCase() === g.toLowerCase() ? e : "0"
|
|
144
157
|
}));
|
|
145
|
-
if (!
|
|
158
|
+
if (!Ue) {
|
|
146
159
|
const a = o.hourlyCompensations?.[0]?.jobUuid ?? r[0]?.jobUuid ?? "";
|
|
147
|
-
|
|
148
|
-
name:
|
|
160
|
+
q.push({
|
|
161
|
+
name: g,
|
|
149
162
|
jobUuid: a,
|
|
150
163
|
amount: e
|
|
151
164
|
});
|
|
152
165
|
}
|
|
153
|
-
const
|
|
166
|
+
const Le = (o.hourlyCompensations ?? []).map((a) => ({
|
|
154
167
|
name: a.name,
|
|
155
168
|
jobUuid: a.jobUuid,
|
|
156
169
|
hours: "0"
|
|
157
|
-
})),
|
|
170
|
+
})), Ae = (o.paidTimeOff ?? []).map((a) => ({
|
|
158
171
|
name: a.name,
|
|
159
172
|
hours: "0"
|
|
160
|
-
})),
|
|
173
|
+
})), Se = W({
|
|
161
174
|
...o,
|
|
162
|
-
fixedCompensations:
|
|
163
|
-
hourlyCompensations:
|
|
164
|
-
paidTimeOff:
|
|
175
|
+
fixedCompensations: q,
|
|
176
|
+
hourlyCompensations: Le,
|
|
177
|
+
paidTimeOff: Ae
|
|
165
178
|
});
|
|
166
|
-
await
|
|
167
|
-
const a = await
|
|
179
|
+
await f({}, async () => {
|
|
180
|
+
const a = await B({
|
|
168
181
|
request: {
|
|
169
|
-
companyId:
|
|
182
|
+
companyId: c,
|
|
170
183
|
payrollId: l,
|
|
171
184
|
payrollUpdate: {
|
|
172
|
-
employeeCompensations: [{ ...
|
|
185
|
+
employeeCompensations: [{ ...Se, excluded: !1 }]
|
|
173
186
|
}
|
|
174
187
|
}
|
|
175
188
|
});
|
|
176
189
|
t(i.RUN_PAYROLL_EMPLOYEE_SAVED, {
|
|
177
190
|
payrollPrepared: a.payrollPrepared
|
|
178
|
-
}), await
|
|
179
|
-
}),
|
|
180
|
-
},
|
|
191
|
+
}), await R();
|
|
192
|
+
}), j(null), D(!1);
|
|
193
|
+
}, ye = async (e) => {
|
|
181
194
|
try {
|
|
182
|
-
await
|
|
195
|
+
await de(e);
|
|
183
196
|
} catch {
|
|
184
197
|
}
|
|
185
|
-
},
|
|
186
|
-
U([]), u.current = !0, await
|
|
187
|
-
const e = await
|
|
188
|
-
|
|
198
|
+
}, fe = async () => {
|
|
199
|
+
U([]), L(!1), P(null), u.current = !0, await f({}, async () => {
|
|
200
|
+
const e = await ke(async () => {
|
|
201
|
+
G(!0);
|
|
189
202
|
try {
|
|
190
|
-
const o = await
|
|
191
|
-
companyId:
|
|
203
|
+
const o = await _e(z, {
|
|
204
|
+
companyId: c,
|
|
192
205
|
payrollId: l
|
|
193
206
|
});
|
|
194
207
|
if (!o.ok)
|
|
195
208
|
throw o.error;
|
|
196
|
-
|
|
209
|
+
A({
|
|
197
210
|
baselineCalculatedAt: s.payrollShow?.calculatedAt?.getTime() ?? null,
|
|
198
211
|
// We just submitted the payroll, so we haven't yet seen it return with the calculating status
|
|
199
212
|
sawCalculatingThisPoll: !1
|
|
@@ -201,18 +214,18 @@ const je = ({
|
|
|
201
214
|
} catch (o) {
|
|
202
215
|
throw u.current = !1, o;
|
|
203
216
|
} finally {
|
|
204
|
-
|
|
217
|
+
G(!1);
|
|
205
218
|
}
|
|
206
219
|
});
|
|
207
220
|
!e.success && e.blockers.length > 0 && U(e.blockers);
|
|
208
221
|
});
|
|
209
|
-
},
|
|
222
|
+
}, Pe = (e) => {
|
|
210
223
|
t(i.RUN_PAYROLL_EMPLOYEE_EDIT, {
|
|
211
224
|
employeeId: e.uuid,
|
|
212
225
|
firstName: e.firstName,
|
|
213
226
|
lastName: e.lastName
|
|
214
227
|
});
|
|
215
|
-
},
|
|
228
|
+
}, W = (e) => {
|
|
216
229
|
const { paymentMethod: o } = e;
|
|
217
230
|
return {
|
|
218
231
|
employeeUuid: e.employeeUuid,
|
|
@@ -225,13 +238,13 @@ const je = ({
|
|
|
225
238
|
...o && o !== "Historical" ? { paymentMethod: o } : {},
|
|
226
239
|
memo: e.memo || void 0
|
|
227
240
|
};
|
|
228
|
-
},
|
|
241
|
+
}, Ce = async (e) => {
|
|
229
242
|
t(i.RUN_PAYROLL_EMPLOYEE_SKIP, {
|
|
230
243
|
employeeId: e.employeeUuid
|
|
231
|
-
}), await
|
|
232
|
-
const o =
|
|
244
|
+
}), await f({}, async () => {
|
|
245
|
+
const o = W(e), r = await B({
|
|
233
246
|
request: {
|
|
234
|
-
companyId:
|
|
247
|
+
companyId: c,
|
|
235
248
|
payrollId: l,
|
|
236
249
|
payrollUpdate: {
|
|
237
250
|
employeeCompensations: [
|
|
@@ -242,31 +255,38 @@ const je = ({
|
|
|
242
255
|
});
|
|
243
256
|
t(i.RUN_PAYROLL_EMPLOYEE_SAVED, {
|
|
244
257
|
payrollPrepared: r.payrollPrepared
|
|
245
|
-
}), await
|
|
258
|
+
}), await R();
|
|
246
259
|
});
|
|
247
|
-
},
|
|
260
|
+
}, ge = () => {
|
|
248
261
|
t(i.RUN_PAYROLL_BLOCKERS_VIEW_ALL);
|
|
249
262
|
};
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
263
|
+
H(() => {
|
|
264
|
+
if (!C) {
|
|
265
|
+
if (!K(s.payrollShow?.processingRequest)) {
|
|
266
|
+
h.current = !1;
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
h.current || (L(!1), P(null), A({
|
|
270
|
+
baselineCalculatedAt: s.payrollShow?.calculatedAt?.getTime() ?? null,
|
|
271
|
+
// We have seen the calculating status, which is why we're starting to poll now until it completes or fails.
|
|
272
|
+
sawCalculatingThisPoll: !0
|
|
273
|
+
}));
|
|
274
|
+
}
|
|
256
275
|
}, [
|
|
257
276
|
s.payrollShow?.processingRequest,
|
|
258
277
|
s.payrollShow?.calculatedAt,
|
|
259
|
-
|
|
260
|
-
|
|
278
|
+
C,
|
|
279
|
+
A,
|
|
280
|
+
P
|
|
261
281
|
]);
|
|
262
|
-
const
|
|
282
|
+
const he = (() => {
|
|
263
283
|
const e = s.payrollShow?.payrollStatusMeta;
|
|
264
284
|
if (e?.payrollLate && e.initialCheckDate && e.expectedDebitTime && e.expectedCheckDate)
|
|
265
285
|
return {
|
|
266
|
-
label:
|
|
286
|
+
label: n("alerts.payrollLate", {
|
|
267
287
|
initialCheckDate: p.formatShortWithWeekday(e.initialCheckDate)
|
|
268
288
|
}),
|
|
269
|
-
content:
|
|
289
|
+
content: n("alerts.payrollLateText", {
|
|
270
290
|
...p.formatWithTime(e.expectedDebitTime),
|
|
271
291
|
newCheckDate: p.formatShortWithWeekday(e.expectedCheckDate)
|
|
272
292
|
}),
|
|
@@ -275,64 +295,66 @@ const je = ({
|
|
|
275
295
|
const { payrollShow: r } = s;
|
|
276
296
|
if (r?.checkDate && r.payrollDeadline)
|
|
277
297
|
return {
|
|
278
|
-
label:
|
|
298
|
+
label: n("alerts.directDepositDeadline", {
|
|
279
299
|
payDate: p.formatShortWithWeekday(r.checkDate),
|
|
280
300
|
...p.formatWithTime(r.payrollDeadline)
|
|
281
301
|
}),
|
|
282
|
-
content:
|
|
302
|
+
content: n("alerts.directDepositDeadlineText"),
|
|
283
303
|
variant: "info"
|
|
284
304
|
};
|
|
285
305
|
})();
|
|
286
|
-
return
|
|
287
|
-
|
|
306
|
+
return w ? /* @__PURE__ */ y(
|
|
307
|
+
Ge,
|
|
288
308
|
{
|
|
289
|
-
|
|
309
|
+
className: T,
|
|
310
|
+
companyId: c,
|
|
290
311
|
payrollId: l,
|
|
291
312
|
onEvent: (o, r) => {
|
|
292
|
-
o === i.RUN_PAYROLL_CANCELLED &&
|
|
313
|
+
o === i.RUN_PAYROLL_CANCELLED && R(), t(o, r);
|
|
293
314
|
},
|
|
294
|
-
withReimbursements:
|
|
295
|
-
alerts: [
|
|
315
|
+
withReimbursements: x,
|
|
316
|
+
alerts: [E]
|
|
296
317
|
}
|
|
297
|
-
) : /* @__PURE__ */
|
|
298
|
-
/* @__PURE__ */
|
|
299
|
-
|
|
318
|
+
) : /* @__PURE__ */ we(Re, { children: [
|
|
319
|
+
/* @__PURE__ */ y(
|
|
320
|
+
Ne,
|
|
300
321
|
{
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
322
|
+
className: T,
|
|
323
|
+
onCalculatePayroll: fe,
|
|
324
|
+
isCalculateDisabled: N.length > 0,
|
|
325
|
+
onEdit: Pe,
|
|
326
|
+
onToggleExclude: Ce,
|
|
327
|
+
onViewBlockers: ge,
|
|
328
|
+
employeeCompensations: M,
|
|
329
|
+
employeeDetails: ae,
|
|
330
|
+
payPeriod: se,
|
|
331
|
+
paySchedule: re,
|
|
332
|
+
payrollCategory: S,
|
|
333
|
+
alerts: J,
|
|
334
|
+
payrollAlert: he,
|
|
335
|
+
isPending: F || ie || ne,
|
|
336
|
+
isCalculating: F,
|
|
337
|
+
payrollBlockers: ee,
|
|
338
|
+
pagination: le,
|
|
339
|
+
withReimbursements: x,
|
|
340
|
+
grossUpEnabled: v,
|
|
341
|
+
onGrossUpSelect: pe
|
|
320
342
|
}
|
|
321
343
|
),
|
|
322
|
-
|
|
323
|
-
|
|
344
|
+
v && /* @__PURE__ */ y(
|
|
345
|
+
Ke,
|
|
324
346
|
{
|
|
325
|
-
isOpen:
|
|
326
|
-
onCalculateGrossUp:
|
|
327
|
-
onApply:
|
|
347
|
+
isOpen: ue,
|
|
348
|
+
onCalculateGrossUp: me,
|
|
349
|
+
onApply: ye,
|
|
328
350
|
onCancel: () => {
|
|
329
|
-
|
|
351
|
+
D(!1);
|
|
330
352
|
}
|
|
331
353
|
}
|
|
332
354
|
)
|
|
333
355
|
] });
|
|
334
356
|
};
|
|
335
357
|
export {
|
|
336
|
-
|
|
358
|
+
Co as PayrollConfiguration
|
|
337
359
|
};
|
|
338
360
|
//# sourceMappingURL=PayrollConfiguration.js.map
|