@gusto/embedded-react-sdk 0.24.0 → 0.25.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 +80 -0
- package/dist/assets/icons/slash-circle.svg.js +10 -0
- package/dist/assets/icons/slash-circle.svg.js.map +1 -0
- package/dist/components/Base/Base.d.ts +1 -1
- package/dist/components/Base/Base.js.map +1 -1
- package/dist/components/Common/Fields/FileInputField/FileInputField.d.ts +5 -0
- package/dist/components/Common/Fields/FileInputField/FileInputField.js +34 -0
- package/dist/components/Common/Fields/FileInputField/FileInputField.js.map +1 -0
- package/dist/components/Common/Fields/FileInputField/index.d.ts +2 -0
- package/dist/components/Common/PaginationControl/PaginationControl.js +41 -40
- package/dist/components/Common/PaginationControl/PaginationControl.js.map +1 -1
- package/dist/components/Common/PaginationControl/PaginationControlTypes.d.ts +1 -0
- package/dist/components/Common/SignatureForm/SignatureFormFields.js +1 -1
- package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Common/UI/FileInput/FileInput.d.ts +2 -0
- package/dist/components/Common/UI/FileInput/FileInput.js +151 -0
- package/dist/components/Common/UI/FileInput/FileInput.js.map +1 -0
- package/dist/components/Common/UI/FileInput/FileInput.module.scss.js +34 -0
- package/dist/components/Common/UI/FileInput/FileInput.module.scss.js.map +1 -0
- package/dist/components/Common/UI/FileInput/FileInputTypes.d.ts +45 -0
- package/dist/components/Common/UI/FileInput/FileInputTypes.js +8 -0
- package/dist/components/Common/UI/FileInput/FileInputTypes.js.map +1 -0
- package/dist/components/Common/UI/FileInput/index.d.ts +4 -0
- package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
- package/dist/components/Common/UI/TextInput/TextInput.js +27 -23
- package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
- package/dist/components/Common/UI/TextInput/TextInputTypes.d.ts +1 -1
- package/dist/components/Common/UI/TextInput/TextInputTypes.js.map +1 -1
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +12 -12
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +4 -3
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +4 -3
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +6 -5
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +4 -3
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +4 -3
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Form.js +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +9 -8
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +7 -6
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Form.js +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +4 -3
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/List.js +35 -33
- package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/LocationsList.js +29 -28
- package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.d.ts +1 -0
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +4 -3
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +4 -3
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Edit.js +15 -15
- package/dist/components/Company/PaySchedule/usePaySchedule.js +6 -5
- package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +4 -3
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +4 -3
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Contractor/Address/Form.js +1 -1
- package/dist/components/Contractor/Address/useAddress.js +6 -5
- package/dist/components/Contractor/Address/useAddress.js.map +1 -1
- package/dist/components/Contractor/ContractorList/index.js +16 -15
- package/dist/components/Contractor/ContractorList/index.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +2 -2
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +61 -59
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +24 -22
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +38 -19
- package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +3 -1
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +26 -25
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.d.ts +2 -0
- package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js +25 -19
- package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.d.ts +1 -0
- package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js +86 -56
- package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.d.ts +1 -2
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js +46 -21
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.d.ts +6 -15
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +115 -99
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.module.scss.js +8 -0
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.module.scss.js.map +1 -0
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.d.ts +8 -0
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +51 -0
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -0
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.d.ts +11 -0
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +157 -0
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -0
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js +22 -0
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js.map +1 -0
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +40 -43
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
- package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
- package/dist/components/Contractor/Profile/useContractorProfile.js +3 -2
- package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
- package/dist/components/Employee/Compensation/Edit.js +14 -14
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +10 -9
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +11 -10
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +11 -10
- package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +4 -3
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Employee/EmployeeList/EmployeeList.js +57 -56
- package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/List.js +34 -32
- package/dist/components/Employee/EmployeeList/List.js.map +1 -1
- package/dist/components/Employee/EmployeeList/useEmployeeList.d.ts +1 -0
- package/dist/components/Employee/EmployeeList/useEmployeeList.js +4 -3
- package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/FederalForm.js +7 -7
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +4 -3
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +2 -2
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +1 -1
- package/dist/components/Employee/PaymentMethod/Split.js +8 -8
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +6 -5
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
- package/dist/components/Employee/Profile/AdminPersonalDetails.js +1 -1
- package/dist/components/Employee/Profile/HomeAddress.js +1 -1
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js +2 -2
- package/dist/components/Employee/Profile/useProfile.js +4 -3
- package/dist/components/Employee/Profile/useProfile.js.map +1 -1
- package/dist/components/Employee/StateTaxes/useStateTaxes.js +4 -3
- package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
- package/dist/components/Employee/Taxes/FederalForm.js +7 -7
- package/dist/components/Employee/Taxes/useTaxes.js +4 -3
- package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +9 -9
- package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.d.ts +15 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.js +142 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js +18 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js.map +1 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestForm/index.d.ts +2 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestList/InformationRequestList.d.ts +7 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestList/InformationRequestList.js +88 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestList/index.d.ts +2 -0
- package/dist/components/Payroll/InformationRequests/InformationRequests.d.ts +6 -0
- package/dist/components/Payroll/InformationRequests/InformationRequests.js +55 -0
- package/dist/components/Payroll/InformationRequests/InformationRequests.js.map +1 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestsComponents.d.ts +19 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestsComponents.js +20 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestsComponents.js.map +1 -0
- package/dist/components/Payroll/InformationRequests/index.d.ts +3 -0
- package/dist/components/Payroll/InformationRequests/informationRequestsStateMachine.d.ts +13 -0
- package/dist/components/Payroll/InformationRequests/informationRequestsStateMachine.js +47 -0
- package/dist/components/Payroll/InformationRequests/informationRequestsStateMachine.js.map +1 -0
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +116 -130
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +5 -2
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +107 -99
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.module.scss.js +2 -4
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.module.scss.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +21 -0
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +105 -0
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -0
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +41 -37
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +5 -4
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +137 -131
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +16 -15
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +2 -0
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +174 -106
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +28 -28
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +2 -2
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +85 -104
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.js +24 -20
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.d.ts +2 -0
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +51 -46
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.d.ts +2 -0
- package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js +111 -45
- package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +136 -125
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +8 -4
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +117 -110
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +4 -2
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +282 -278
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.d.ts +6 -0
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.js +5 -0
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.js.map +1 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCases.d.ts +6 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCases.js +55 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCases.js.map +1 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.d.ts +19 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.js +19 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.js.map +1 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.d.ts +7 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +73 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.module.scss.js +10 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.module.scss.js.map +1 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/index.d.ts +2 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.d.ts +14 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +46 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/index.d.ts +2 -0
- package/dist/components/Payroll/RecoveryCases/index.d.ts +3 -0
- package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.d.ts +13 -0
- package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.js +47 -0
- package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.js.map +1 -0
- package/dist/components/Payroll/helpers.d.ts +12 -0
- package/dist/components/Payroll/helpers.js +129 -117
- package/dist/components/Payroll/helpers.js.map +1 -1
- package/dist/components/Payroll/index.d.ts +2 -0
- package/dist/components/Payroll/index.js +18 -14
- package/dist/components/Payroll/index.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.d.ts +4 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +43 -31
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +27 -25
- package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
- package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
- package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.d.ts +5 -0
- package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js +17 -15
- package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js.map +1 -1
- package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
- package/dist/contexts/ComponentAdapter/useComponentContext.js +3 -3
- package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
- package/dist/helpers/dateFormatting.d.ts +1 -0
- package/dist/helpers/dateFormatting.js +1 -0
- package/dist/helpers/dateFormatting.js.map +1 -1
- package/dist/helpers/formattedStrings.d.ts +1 -0
- package/dist/helpers/formattedStrings.js +23 -18
- package/dist/helpers/formattedStrings.js.map +1 -1
- package/dist/helpers/responsive.js +1 -1
- package/dist/helpers/responsive.js.map +1 -1
- package/dist/i18n/I18n.js +3 -3
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js +36 -32
- package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js.map +1 -1
- package/dist/i18n/en/Contractor.Payments.PaymentHistory.json.js +11 -11
- package/dist/i18n/en/Contractor.Payments.PaymentStatement.json.js +28 -0
- package/dist/i18n/en/Contractor.Payments.PaymentStatement.json.js.map +1 -0
- package/dist/i18n/en/Contractor.Payments.PaymentsList.json.js +14 -14
- package/dist/i18n/en/Payroll.InformationRequestForm.json.js +18 -0
- package/dist/i18n/en/Payroll.InformationRequestForm.json.js.map +1 -0
- package/dist/i18n/en/Payroll.InformationRequestList.json.js +18 -0
- package/dist/i18n/en/Payroll.InformationRequestList.json.js.map +1 -0
- package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +27 -21
- package/dist/i18n/en/Payroll.PayrollConfiguration.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollHistory.json.js +6 -6
- package/dist/i18n/en/Payroll.PayrollLanding.json.js +5 -3
- package/dist/i18n/en/Payroll.PayrollLanding.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollOverview.json.js +32 -28
- package/dist/i18n/en/Payroll.PayrollOverview.json.js.map +1 -1
- package/dist/i18n/en/Payroll.RecoveryCasesList.json.js +14 -0
- package/dist/i18n/en/Payroll.RecoveryCasesList.json.js.map +1 -0
- package/dist/i18n/en/Payroll.RecoveryCasesResubmit.json.js +8 -0
- package/dist/i18n/en/Payroll.RecoveryCasesResubmit.json.js.map +1 -0
- package/dist/i18n/en/common.json.d.ts +6 -0
- package/dist/i18n/en/common.json.js +4 -2
- package/dist/i18n/en/common.json.js.map +1 -1
- package/dist/shared/constants.d.ts +25 -1
- package/dist/shared/constants.js +72 -55
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/i18next.d.ts +120 -3
- package/package.json +31 -20
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const t = "_root_11yro_1", r = "_questionCard_11yro_5", o = "_questionDescription_11yro_15", e = "_textInputWrapper_11yro_22", n = "_fileInputWrapper_11yro_26", p = "_divider_11yro_31", i = {
|
|
2
|
+
root: t,
|
|
3
|
+
questionCard: r,
|
|
4
|
+
questionDescription: o,
|
|
5
|
+
textInputWrapper: e,
|
|
6
|
+
fileInputWrapper: n,
|
|
7
|
+
divider: p
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
i as default,
|
|
11
|
+
p as divider,
|
|
12
|
+
n as fileInputWrapper,
|
|
13
|
+
r as questionCard,
|
|
14
|
+
o as questionDescription,
|
|
15
|
+
t as root,
|
|
16
|
+
e as textInputWrapper
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=InformationRequestForm.module.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InformationRequestForm.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseComponentInterface } from '../../../Base';
|
|
2
|
+
interface InformationRequestListProps extends BaseComponentInterface<'Payroll.InformationRequestList'> {
|
|
3
|
+
companyId: string;
|
|
4
|
+
onEvent: BaseComponentInterface['onEvent'];
|
|
5
|
+
}
|
|
6
|
+
export declare function InformationRequestList(props: InformationRequestListProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
package/dist/components/Payroll/InformationRequests/InformationRequestList/InformationRequestList.js
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { jsx as n, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as I } from "react-i18next";
|
|
3
|
+
import { useInformationRequestsGetInformationRequests as b } from "@gusto/embedded-api/react-query/informationRequestsGetInformationRequests";
|
|
4
|
+
import { InformationRequestStatus as s, InformationRequestType as i } from "@gusto/embedded-api/models/components/informationrequest";
|
|
5
|
+
import { BaseComponent as w } from "../../../Base/Base.js";
|
|
6
|
+
import "../../../Base/useBase.js";
|
|
7
|
+
import { useComponentContext as x } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
8
|
+
import { useComponentDictionary as S, useI18n as v } from "../../../../i18n/I18n.js";
|
|
9
|
+
import { DataView as C } from "../../../Common/DataView/DataView.js";
|
|
10
|
+
import { useDataView as D } from "../../../Common/DataView/useDataView.js";
|
|
11
|
+
import { FlexItem as E, Flex as a } from "../../../Common/Flex/Flex.js";
|
|
12
|
+
import "classnames";
|
|
13
|
+
import { informationRequestEvents as L } from "../../../../shared/constants.js";
|
|
14
|
+
import "react";
|
|
15
|
+
function J(o) {
|
|
16
|
+
return /* @__PURE__ */ n(w, { ...o, children: /* @__PURE__ */ n(T, { ...o, children: o.children }) });
|
|
17
|
+
}
|
|
18
|
+
function T({ companyId: o, dictionary: m, onEvent: c }) {
|
|
19
|
+
S("Payroll.InformationRequestList", m), v("Payroll.InformationRequestList");
|
|
20
|
+
const { t } = I("Payroll.InformationRequestList"), { Heading: p, Text: u, Button: d, Badge: f } = x(), { data: y, isFetching: R } = b({
|
|
21
|
+
companyUuid: o
|
|
22
|
+
}), g = (y?.informationRequestList ?? []).filter(
|
|
23
|
+
(e) => e.blockingPayroll && e.status !== s.Approved
|
|
24
|
+
), h = (e) => {
|
|
25
|
+
switch (e) {
|
|
26
|
+
case i.CompanyOnboarding:
|
|
27
|
+
return t("types.companyOnboarding");
|
|
28
|
+
case i.AccountProtection:
|
|
29
|
+
return t("types.accountProtection");
|
|
30
|
+
case i.PaymentRequest:
|
|
31
|
+
return t("types.paymentRequest");
|
|
32
|
+
case i.PaymentError:
|
|
33
|
+
return t("types.paymentError");
|
|
34
|
+
default:
|
|
35
|
+
return t("types.unknown");
|
|
36
|
+
}
|
|
37
|
+
}, P = (e) => {
|
|
38
|
+
switch (e) {
|
|
39
|
+
case s.PendingResponse:
|
|
40
|
+
return { label: t("status.incomplete"), badgeStatus: "info" };
|
|
41
|
+
case s.PendingReview:
|
|
42
|
+
return { label: t("status.underReview"), badgeStatus: "warning" };
|
|
43
|
+
default:
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
}, q = D({
|
|
47
|
+
data: g,
|
|
48
|
+
isFetching: R,
|
|
49
|
+
columns: [
|
|
50
|
+
{
|
|
51
|
+
key: "type",
|
|
52
|
+
title: t("columns.type"),
|
|
53
|
+
render: (e) => /* @__PURE__ */ n(E, { flexGrow: 1, children: /* @__PURE__ */ n(u, { weight: "medium", children: h(e.type) }) })
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
key: "status",
|
|
57
|
+
title: t("columns.status"),
|
|
58
|
+
render: (e) => {
|
|
59
|
+
const r = P(e.status);
|
|
60
|
+
return r ? /* @__PURE__ */ n(a, { gap: 8, alignItems: "center", children: /* @__PURE__ */ n(f, { status: r.badgeStatus, children: r.label }) }) : null;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
itemMenu: (e) => e.status === s.PendingResponse ? /* @__PURE__ */ n(
|
|
65
|
+
d,
|
|
66
|
+
{
|
|
67
|
+
variant: "secondary",
|
|
68
|
+
onClick: () => {
|
|
69
|
+
c(L.INFORMATION_REQUEST_RESPOND, {
|
|
70
|
+
requestId: e.uuid
|
|
71
|
+
});
|
|
72
|
+
},
|
|
73
|
+
children: t("cta.respond")
|
|
74
|
+
}
|
|
75
|
+
) : null
|
|
76
|
+
});
|
|
77
|
+
return /* @__PURE__ */ l(a, { flexDirection: "column", gap: 20, children: [
|
|
78
|
+
/* @__PURE__ */ l(a, { flexDirection: "column", gap: 2, children: [
|
|
79
|
+
/* @__PURE__ */ n(p, { as: "h2", styledAs: "h3", children: t("title") }),
|
|
80
|
+
/* @__PURE__ */ n(u, { children: t("description") })
|
|
81
|
+
] }),
|
|
82
|
+
/* @__PURE__ */ n(C, { ...q, label: t("title") })
|
|
83
|
+
] });
|
|
84
|
+
}
|
|
85
|
+
export {
|
|
86
|
+
J as InformationRequestList
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=InformationRequestList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InformationRequestList.js","sources":["../../../../../src/components/Payroll/InformationRequests/InformationRequestList/InformationRequestList.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useInformationRequestsGetInformationRequests } from '@gusto/embedded-api/react-query/informationRequestsGetInformationRequests'\nimport type { InformationRequest } from '@gusto/embedded-api/models/components/informationrequest'\nimport {\n InformationRequestStatus,\n InformationRequestType,\n} from '@gusto/embedded-api/models/components/informationrequest'\nimport { BaseComponent, type BaseComponentInterface } from '@/components/Base'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { DataView } from '@/components/Common/DataView/DataView'\nimport { useDataView } from '@/components/Common/DataView/useDataView'\nimport { Flex, FlexItem } from '@/components/Common'\nimport { informationRequestEvents } from '@/shared/constants'\nimport type { BadgeProps } from '@/components/Common/UI/Badge/BadgeTypes'\n\ninterface InformationRequestListProps extends BaseComponentInterface<'Payroll.InformationRequestList'> {\n companyId: string\n onEvent: BaseComponentInterface['onEvent']\n}\n\nexport function InformationRequestList(props: InformationRequestListProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\ntype StatusMapping = {\n label: string\n badgeStatus: BadgeProps['status']\n} | null\n\nfunction Root({ companyId, dictionary, onEvent }: InformationRequestListProps) {\n useComponentDictionary('Payroll.InformationRequestList', dictionary)\n useI18n('Payroll.InformationRequestList')\n const { t } = useTranslation('Payroll.InformationRequestList')\n const { Heading, Text, Button, Badge } = useComponentContext()\n\n const { data, isFetching } = useInformationRequestsGetInformationRequests({\n companyUuid: companyId,\n })\n\n const informationRequests = data?.informationRequestList ?? []\n\n const visibleRequests = informationRequests.filter(\n request => request.blockingPayroll && request.status !== InformationRequestStatus.Approved,\n )\n\n const getTypeLabel = (type: InformationRequest['type']): string => {\n switch (type) {\n case InformationRequestType.CompanyOnboarding:\n return t('types.companyOnboarding')\n case InformationRequestType.AccountProtection:\n return t('types.accountProtection')\n case InformationRequestType.PaymentRequest:\n return t('types.paymentRequest')\n case InformationRequestType.PaymentError:\n return t('types.paymentError')\n default:\n return t('types.unknown')\n }\n }\n\n const getStatusMapping = (status: InformationRequest['status']): StatusMapping => {\n switch (status) {\n case InformationRequestStatus.PendingResponse:\n return { label: t('status.incomplete'), badgeStatus: 'info' }\n case InformationRequestStatus.PendingReview:\n return { label: t('status.underReview'), badgeStatus: 'warning' }\n default:\n return null\n }\n }\n\n const dataViewProps = useDataView({\n data: visibleRequests,\n isFetching,\n columns: [\n {\n key: 'type',\n title: t('columns.type'),\n render: request => (\n <FlexItem flexGrow={1}>\n <Text weight=\"medium\">{getTypeLabel(request.type)}</Text>\n </FlexItem>\n ),\n },\n {\n key: 'status',\n title: t('columns.status'),\n render: request => {\n const statusMapping = getStatusMapping(request.status)\n if (!statusMapping) {\n return null\n }\n return (\n <Flex gap={8} alignItems=\"center\">\n <Badge status={statusMapping.badgeStatus}>{statusMapping.label}</Badge>\n </Flex>\n )\n },\n },\n ],\n itemMenu: request => {\n const isPendingResponse = request.status === InformationRequestStatus.PendingResponse\n if (!isPendingResponse) {\n return null\n }\n return (\n <Button\n variant=\"secondary\"\n onClick={() => {\n onEvent(informationRequestEvents.INFORMATION_REQUEST_RESPOND, {\n requestId: request.uuid,\n })\n }}\n >\n {t('cta.respond')}\n </Button>\n )\n },\n })\n\n return (\n <Flex flexDirection=\"column\" gap={20}>\n <Flex flexDirection=\"column\" gap={2}>\n <Heading as=\"h2\" styledAs=\"h3\">\n {t('title')}\n </Heading>\n <Text>{t('description')}</Text>\n </Flex>\n\n <DataView {...dataViewProps} label={t('title')} />\n </Flex>\n )\n}\n"],"names":["InformationRequestList","props","jsx","BaseComponent","Root","companyId","dictionary","onEvent","useComponentDictionary","useI18n","useTranslation","Heading","Text","Button","Badge","useComponentContext","data","isFetching","useInformationRequestsGetInformationRequests","visibleRequests","request","InformationRequestStatus","getTypeLabel","type","InformationRequestType","getStatusMapping","status","dataViewProps","useDataView","FlexItem","statusMapping","Flex","informationRequestEvents","jsxs","DataView"],"mappings":";;;;;;;;;;;;;;AAqBO,SAASA,EAAuBC,GAAoC;AACzE,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,KAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAOA,SAASG,EAAK,EAAE,WAAAC,GAAW,YAAAC,GAAY,SAAAC,KAAwC;AAC7E,EAAAC,EAAuB,kCAAkCF,CAAU,GACnEG,EAAQ,gCAAgC;AACxC,QAAM,EAAE,EAAA,IAAMC,EAAe,gCAAgC,GACvD,EAAE,SAAAC,GAAS,MAAAC,GAAM,QAAAC,GAAQ,OAAAC,EAAA,IAAUC,EAAA,GAEnC,EAAE,MAAAC,GAAM,YAAAC,EAAA,IAAeC,EAA6C;AAAA,IACxE,aAAab;AAAA,EAAA,CACd,GAIKc,KAFsBH,GAAM,0BAA0B,CAAA,GAEhB;AAAA,IAC1C,CAAAI,MAAWA,EAAQ,mBAAmBA,EAAQ,WAAWC,EAAyB;AAAA,EAAA,GAG9EC,IAAe,CAACC,MAA6C;AACjE,YAAQA,GAAA;AAAA,MACN,KAAKC,EAAuB;AAC1B,eAAO,EAAE,yBAAyB;AAAA,MACpC,KAAKA,EAAuB;AAC1B,eAAO,EAAE,yBAAyB;AAAA,MACpC,KAAKA,EAAuB;AAC1B,eAAO,EAAE,sBAAsB;AAAA,MACjC,KAAKA,EAAuB;AAC1B,eAAO,EAAE,oBAAoB;AAAA,MAC/B;AACE,eAAO,EAAE,eAAe;AAAA,IAAA;AAAA,EAE9B,GAEMC,IAAmB,CAACC,MAAwD;AAChF,YAAQA,GAAA;AAAA,MACN,KAAKL,EAAyB;AAC5B,eAAO,EAAE,OAAO,EAAE,mBAAmB,GAAG,aAAa,OAAA;AAAA,MACvD,KAAKA,EAAyB;AAC5B,eAAO,EAAE,OAAO,EAAE,oBAAoB,GAAG,aAAa,UAAA;AAAA,MACxD;AACE,eAAO;AAAA,IAAA;AAAA,EAEb,GAEMM,IAAgBC,EAAY;AAAA,IAChC,MAAMT;AAAA,IACN,YAAAF;AAAA,IACA,SAAS;AAAA,MACP;AAAA,QACE,KAAK;AAAA,QACL,OAAO,EAAE,cAAc;AAAA,QACvB,QAAQ,CAAAG,MACN,gBAAAlB,EAAC2B,GAAA,EAAS,UAAU,GAClB,UAAA,gBAAA3B,EAACU,GAAA,EAAK,QAAO,UAAU,UAAAU,EAAaF,EAAQ,IAAI,GAAE,EAAA,CACpD;AAAA,MAAA;AAAA,MAGJ;AAAA,QACE,KAAK;AAAA,QACL,OAAO,EAAE,gBAAgB;AAAA,QACzB,QAAQ,CAAAA,MAAW;AACjB,gBAAMU,IAAgBL,EAAiBL,EAAQ,MAAM;AACrD,iBAAKU,IAIH,gBAAA5B,EAAC6B,GAAA,EAAK,KAAK,GAAG,YAAW,UACvB,UAAA,gBAAA7B,EAACY,GAAA,EAAM,QAAQgB,EAAc,aAAc,UAAAA,EAAc,OAAM,GACjE,IALO;AAAA,QAOX;AAAA,MAAA;AAAA,IACF;AAAA,IAEF,UAAU,CAAAV,MACkBA,EAAQ,WAAWC,EAAyB,kBAKpE,gBAAAnB;AAAA,MAACW;AAAA,MAAA;AAAA,QACC,SAAQ;AAAA,QACR,SAAS,MAAM;AACb,UAAAN,EAAQyB,EAAyB,6BAA6B;AAAA,YAC5D,WAAWZ,EAAQ;AAAA,UAAA,CACpB;AAAA,QACH;AAAA,QAEC,YAAE,aAAa;AAAA,MAAA;AAAA,IAAA,IAXX;AAAA,EAcX,CACD;AAED,SACE,gBAAAa,EAACF,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA;AAAA,IAAA,gBAAAE,EAACF,GAAA,EAAK,eAAc,UAAS,KAAK,GAChC,UAAA;AAAA,MAAA,gBAAA7B,EAACS,KAAQ,IAAG,MAAK,UAAS,MACvB,UAAA,EAAE,OAAO,GACZ;AAAA,MACA,gBAAAT,EAACU,GAAA,EAAM,UAAA,EAAE,aAAa,EAAA,CAAE;AAAA,IAAA,GAC1B;AAAA,sBAECsB,GAAA,EAAU,GAAGP,GAAe,OAAO,EAAE,OAAO,EAAA,CAAG;AAAA,EAAA,GAClD;AAEJ;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseComponentInterface } from '../../Base';
|
|
2
|
+
export interface InformationRequestsProps {
|
|
3
|
+
companyId: string;
|
|
4
|
+
onEvent?: BaseComponentInterface['onEvent'];
|
|
5
|
+
}
|
|
6
|
+
export declare function InformationRequests({ companyId, onEvent }: InformationRequestsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsxs as O, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { createMachine as p } from "robot3";
|
|
3
|
+
import { useMachine as d } from "react-robot";
|
|
4
|
+
import { useState as v, useMemo as C } from "react";
|
|
5
|
+
import { informationRequestsMachine as N } from "./informationRequestsStateMachine.js";
|
|
6
|
+
import { useComponentContext as h } from "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
7
|
+
import { FlowContext as F } from "../../Flow/useFlow.js";
|
|
8
|
+
import { informationRequestEvents as i } from "../../../shared/constants.js";
|
|
9
|
+
import { InformationRequestList as I } from "./InformationRequestList/InformationRequestList.js";
|
|
10
|
+
function D({ companyId: t, onEvent: c = () => {
|
|
11
|
+
} }) {
|
|
12
|
+
const { Modal: l } = h(), [u, r] = v(!1), E = C(
|
|
13
|
+
() => p(
|
|
14
|
+
"list",
|
|
15
|
+
N,
|
|
16
|
+
() => ({
|
|
17
|
+
component: null,
|
|
18
|
+
companyId: t,
|
|
19
|
+
onEvent: n
|
|
20
|
+
})
|
|
21
|
+
),
|
|
22
|
+
[t]
|
|
23
|
+
), [m, M] = d(E);
|
|
24
|
+
function n(o, a) {
|
|
25
|
+
M({ type: o, payload: a }), o === i.INFORMATION_REQUEST_RESPOND && r(!0), (o === i.INFORMATION_REQUEST_FORM_CANCEL || o === i.INFORMATION_REQUEST_FORM_DONE) && r(!1), c(o, a);
|
|
26
|
+
}
|
|
27
|
+
const R = () => {
|
|
28
|
+
r(!1);
|
|
29
|
+
}, s = m.context.component, f = s?.Footer || void 0;
|
|
30
|
+
return /* @__PURE__ */ O(
|
|
31
|
+
F.Provider,
|
|
32
|
+
{
|
|
33
|
+
value: {
|
|
34
|
+
...m.context,
|
|
35
|
+
onEvent: n
|
|
36
|
+
},
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ e(I, { companyId: t, onEvent: n }),
|
|
39
|
+
/* @__PURE__ */ e(
|
|
40
|
+
l,
|
|
41
|
+
{
|
|
42
|
+
isOpen: u,
|
|
43
|
+
onClose: R,
|
|
44
|
+
footer: f && /* @__PURE__ */ e(f, { onEvent: n }),
|
|
45
|
+
children: s && /* @__PURE__ */ e(s, {})
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
D as InformationRequests
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=InformationRequests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InformationRequests.js","sources":["../../../../src/components/Payroll/InformationRequests/InformationRequests.tsx"],"sourcesContent":["import { createMachine } from 'robot3'\nimport { useMachine } from 'react-robot'\nimport { useMemo, useState } from 'react'\nimport { InformationRequestList } from './InformationRequestList'\nimport { informationRequestsMachine } from './informationRequestsStateMachine'\nimport { type InformationRequestsContextInterface } from './InformationRequestsComponents'\nimport { type BaseComponentInterface } from '@/components/Base'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { FlowContext } from '@/components/Flow/useFlow'\nimport { informationRequestEvents, type EventType } from '@/shared/constants'\n\nexport interface InformationRequestsProps {\n companyId: string\n onEvent?: BaseComponentInterface['onEvent']\n}\n\nexport function InformationRequests({ companyId, onEvent = () => {} }: InformationRequestsProps) {\n const { Modal } = useComponentContext()\n const [isModalOpen, setIsModalOpen] = useState(false)\n\n const informationRequestsMachineInstance = useMemo(\n () =>\n createMachine(\n 'list',\n informationRequestsMachine,\n (): InformationRequestsContextInterface => ({\n component: null,\n companyId,\n onEvent: handleEvent,\n }),\n ),\n [companyId],\n )\n const [current, send] = useMachine(informationRequestsMachineInstance)\n\n function handleEvent(type: EventType, data?: unknown) {\n send({ type, payload: data })\n\n if (type === informationRequestEvents.INFORMATION_REQUEST_RESPOND) {\n setIsModalOpen(true)\n }\n\n if (\n type === informationRequestEvents.INFORMATION_REQUEST_FORM_CANCEL ||\n type === informationRequestEvents.INFORMATION_REQUEST_FORM_DONE\n ) {\n setIsModalOpen(false)\n }\n\n onEvent(type, data)\n }\n\n const handleCloseModal = () => {\n setIsModalOpen(false)\n }\n\n const CurrentComponent = current.context.component\n const Footer = CurrentComponent?.Footer || undefined\n\n return (\n <FlowContext.Provider\n value={{\n ...current.context,\n onEvent: handleEvent,\n }}\n >\n <InformationRequestList companyId={companyId} onEvent={handleEvent} />\n <Modal\n isOpen={isModalOpen}\n onClose={handleCloseModal}\n footer={Footer && <Footer onEvent={handleEvent} />}\n >\n {CurrentComponent && <CurrentComponent />}\n </Modal>\n </FlowContext.Provider>\n )\n}\n"],"names":["InformationRequests","companyId","onEvent","Modal","useComponentContext","isModalOpen","setIsModalOpen","useState","informationRequestsMachineInstance","useMemo","createMachine","informationRequestsMachine","handleEvent","current","send","useMachine","type","data","informationRequestEvents","handleCloseModal","CurrentComponent","Footer","jsxs","FlowContext","jsx","InformationRequestList"],"mappings":";;;;;;;;;AAgBO,SAASA,EAAoB,EAAE,WAAAC,GAAW,SAAAC,IAAU,MAAM;AAAC,KAA+B;AAC/F,QAAM,EAAE,OAAAC,EAAA,IAAUC,EAAA,GACZ,CAACC,GAAaC,CAAc,IAAIC,EAAS,EAAK,GAE9CC,IAAqCC;AAAA,IACzC,MACEC;AAAA,MACE;AAAA,MACAC;AAAA,MACA,OAA4C;AAAA,QAC1C,WAAW;AAAA,QACX,WAAAV;AAAA,QACA,SAASW;AAAA,MAAA;AAAA,IACX;AAAA,IAEJ,CAACX,CAAS;AAAA,EAAA,GAEN,CAACY,GAASC,CAAI,IAAIC,EAAWP,CAAkC;AAErE,WAASI,EAAYI,GAAiBC,GAAgB;AACpD,IAAAH,EAAK,EAAE,MAAAE,GAAM,SAASC,EAAA,CAAM,GAExBD,MAASE,EAAyB,+BACpCZ,EAAe,EAAI,IAInBU,MAASE,EAAyB,mCAClCF,MAASE,EAAyB,kCAElCZ,EAAe,EAAK,GAGtBJ,EAAQc,GAAMC,CAAI;AAAA,EACpB;AAEA,QAAME,IAAmB,MAAM;AAC7B,IAAAb,EAAe,EAAK;AAAA,EACtB,GAEMc,IAAmBP,EAAQ,QAAQ,WACnCQ,IAASD,GAAkB,UAAU;AAE3C,SACE,gBAAAE;AAAA,IAACC,EAAY;AAAA,IAAZ;AAAA,MACC,OAAO;AAAA,QACL,GAAGV,EAAQ;AAAA,QACX,SAASD;AAAA,MAAA;AAAA,MAGX,UAAA;AAAA,QAAA,gBAAAY,EAACC,GAAA,EAAuB,WAAAxB,GAAsB,SAASW,EAAA,CAAa;AAAA,QACpE,gBAAAY;AAAA,UAACrB;AAAA,UAAA;AAAA,YACC,QAAQE;AAAA,YACR,SAASc;AAAA,YACT,QAAQE,KAAU,gBAAAG,EAACH,GAAA,EAAO,SAAST,GAAa;AAAA,YAE/C,UAAAQ,uBAAqBA,GAAA,CAAA,CAAiB;AAAA,UAAA;AAAA,QAAA;AAAA,MACzC;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FlowContextInterface } from '../../Flow/useFlow';
|
|
2
|
+
import { CommonComponentInterface } from '../../Base';
|
|
3
|
+
import { EventType } from '../../../types/Helpers';
|
|
4
|
+
import { OnEventType } from '../../Base/useBase';
|
|
5
|
+
export interface InformationRequestsContextInterface extends FlowContextInterface {
|
|
6
|
+
companyId: string;
|
|
7
|
+
selectedRequestId?: string;
|
|
8
|
+
component: (React.ComponentType<CommonComponentInterface> & {
|
|
9
|
+
Footer?: React.ComponentType<{
|
|
10
|
+
onEvent: OnEventType<EventType, unknown>;
|
|
11
|
+
}>;
|
|
12
|
+
}) | null;
|
|
13
|
+
}
|
|
14
|
+
export declare function InformationRequestFormContextual(): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare namespace InformationRequestFormContextual {
|
|
16
|
+
var Footer: ({ onEvent }: {
|
|
17
|
+
onEvent: OnEventType<EventType, unknown>;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { useFlow as n } from "../../Flow/useFlow.js";
|
|
3
|
+
import { ensureRequired as u } from "../../../helpers/ensureRequired.js";
|
|
4
|
+
import { InformationRequestForm as o } from "./InformationRequestForm/InformationRequestForm.js";
|
|
5
|
+
function s() {
|
|
6
|
+
const { companyId: e, selectedRequestId: r, onEvent: t } = n();
|
|
7
|
+
return /* @__PURE__ */ m(
|
|
8
|
+
o,
|
|
9
|
+
{
|
|
10
|
+
companyId: e,
|
|
11
|
+
requestId: u(r),
|
|
12
|
+
onEvent: t
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
s.Footer = o.Footer;
|
|
17
|
+
export {
|
|
18
|
+
s as InformationRequestFormContextual
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=InformationRequestsComponents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InformationRequestsComponents.js","sources":["../../../../src/components/Payroll/InformationRequests/InformationRequestsComponents.tsx"],"sourcesContent":["import { InformationRequestForm } from './InformationRequestForm'\nimport { useFlow } from '@/components/Flow/useFlow'\nimport { ensureRequired } from '@/helpers/ensureRequired'\nimport type { FlowContextInterface } from '@/components/Flow/useFlow'\nimport type { CommonComponentInterface } from '@/components/Base'\nimport type { EventType } from '@/types/Helpers'\nimport type { OnEventType } from '@/components/Base/useBase'\n\nexport interface InformationRequestsContextInterface extends FlowContextInterface {\n companyId: string\n selectedRequestId?: string\n component:\n | (React.ComponentType<CommonComponentInterface> & {\n Footer?: React.ComponentType<{\n onEvent: OnEventType<EventType, unknown>\n }>\n })\n | null\n}\n\nexport function InformationRequestFormContextual() {\n const { companyId, selectedRequestId, onEvent } = useFlow<InformationRequestsContextInterface>()\n\n return (\n <InformationRequestForm\n companyId={companyId}\n requestId={ensureRequired(selectedRequestId)}\n onEvent={onEvent}\n />\n )\n}\n\nInformationRequestFormContextual.Footer = InformationRequestForm.Footer\n"],"names":["InformationRequestFormContextual","companyId","selectedRequestId","onEvent","useFlow","jsx","InformationRequestForm","ensureRequired"],"mappings":";;;;AAoBO,SAASA,IAAmC;AACjD,QAAM,EAAE,WAAAC,GAAW,mBAAAC,GAAmB,SAAAC,EAAA,IAAYC,EAAA;AAElD,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAAL;AAAA,MACA,WAAWM,EAAeL,CAAiB;AAAA,MAC3C,SAAAC;AAAA,IAAA;AAAA,EAAA;AAGN;AAEAH,EAAiC,SAASM,EAAuB;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { informationRequestEvents } from '../../../shared/constants';
|
|
2
|
+
export type EventPayloads = {
|
|
3
|
+
[informationRequestEvents.INFORMATION_REQUEST_RESPOND]: {
|
|
4
|
+
requestId: string;
|
|
5
|
+
};
|
|
6
|
+
[informationRequestEvents.INFORMATION_REQUEST_FORM_CANCEL]: undefined;
|
|
7
|
+
[informationRequestEvents.INFORMATION_REQUEST_FORM_DONE]: undefined;
|
|
8
|
+
};
|
|
9
|
+
export declare const informationRequestsMachine: {
|
|
10
|
+
list: import('robot3').MachineState<any>;
|
|
11
|
+
form: import('robot3').MachineState<any>;
|
|
12
|
+
final: import('robot3').MachineState<any>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { state as t, transition as o, reduce as n } from "robot3";
|
|
2
|
+
import { InformationRequestFormContextual as r } from "./InformationRequestsComponents.js";
|
|
3
|
+
import { informationRequestEvents as s } from "../../../shared/constants.js";
|
|
4
|
+
const d = {
|
|
5
|
+
list: t(
|
|
6
|
+
o(
|
|
7
|
+
s.INFORMATION_REQUEST_RESPOND,
|
|
8
|
+
"form",
|
|
9
|
+
n(
|
|
10
|
+
(e, i) => ({
|
|
11
|
+
...e,
|
|
12
|
+
component: r,
|
|
13
|
+
selectedRequestId: i.payload.requestId
|
|
14
|
+
})
|
|
15
|
+
)
|
|
16
|
+
)
|
|
17
|
+
),
|
|
18
|
+
form: t(
|
|
19
|
+
o(
|
|
20
|
+
s.INFORMATION_REQUEST_FORM_DONE,
|
|
21
|
+
"list",
|
|
22
|
+
n(
|
|
23
|
+
(e) => ({
|
|
24
|
+
...e,
|
|
25
|
+
component: null,
|
|
26
|
+
selectedRequestId: void 0
|
|
27
|
+
})
|
|
28
|
+
)
|
|
29
|
+
),
|
|
30
|
+
o(
|
|
31
|
+
s.INFORMATION_REQUEST_FORM_CANCEL,
|
|
32
|
+
"list",
|
|
33
|
+
n(
|
|
34
|
+
(e) => ({
|
|
35
|
+
...e,
|
|
36
|
+
component: null,
|
|
37
|
+
selectedRequestId: void 0
|
|
38
|
+
})
|
|
39
|
+
)
|
|
40
|
+
)
|
|
41
|
+
),
|
|
42
|
+
final: t()
|
|
43
|
+
};
|
|
44
|
+
export {
|
|
45
|
+
d as informationRequestsMachine
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=informationRequestsStateMachine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"informationRequestsStateMachine.js","sources":["../../../../src/components/Payroll/InformationRequests/informationRequestsStateMachine.tsx"],"sourcesContent":["import { state, transition, reduce } from 'robot3'\nimport type { InformationRequestsContextInterface } from './InformationRequestsComponents'\nimport { InformationRequestFormContextual } from './InformationRequestsComponents'\nimport { informationRequestEvents } from '@/shared/constants'\nimport type { MachineEventType, MachineTransition } from '@/types/Helpers'\n\nexport type EventPayloads = {\n [informationRequestEvents.INFORMATION_REQUEST_RESPOND]: {\n requestId: string\n }\n [informationRequestEvents.INFORMATION_REQUEST_FORM_CANCEL]: undefined\n [informationRequestEvents.INFORMATION_REQUEST_FORM_DONE]: undefined\n}\n\nexport const informationRequestsMachine = {\n list: state<MachineTransition>(\n transition(\n informationRequestEvents.INFORMATION_REQUEST_RESPOND,\n 'form',\n reduce(\n (\n ctx: InformationRequestsContextInterface,\n ev: MachineEventType<\n EventPayloads,\n typeof informationRequestEvents.INFORMATION_REQUEST_RESPOND\n >,\n ): InformationRequestsContextInterface => ({\n ...ctx,\n component: InformationRequestFormContextual,\n selectedRequestId: ev.payload.requestId,\n }),\n ),\n ),\n ),\n form: state<MachineTransition>(\n transition(\n informationRequestEvents.INFORMATION_REQUEST_FORM_DONE,\n 'list',\n reduce(\n (ctx: InformationRequestsContextInterface): InformationRequestsContextInterface => ({\n ...ctx,\n component: null,\n selectedRequestId: undefined,\n }),\n ),\n ),\n transition(\n informationRequestEvents.INFORMATION_REQUEST_FORM_CANCEL,\n 'list',\n reduce(\n (ctx: InformationRequestsContextInterface): InformationRequestsContextInterface => ({\n ...ctx,\n component: null,\n selectedRequestId: undefined,\n }),\n ),\n ),\n ),\n final: state<MachineTransition>(),\n}\n"],"names":["informationRequestsMachine","state","transition","informationRequestEvents","reduce","ctx","ev","InformationRequestFormContextual"],"mappings":";;;AAcO,MAAMA,IAA6B;AAAA,EACxC,MAAMC;AAAA,IACJC;AAAA,MACEC,EAAyB;AAAA,MACzB;AAAA,MACAC;AAAA,QACE,CACEC,GACAC,OAIyC;AAAA,UACzC,GAAGD;AAAA,UACH,WAAWE;AAAA,UACX,mBAAmBD,EAAG,QAAQ;AAAA,QAAA;AAAA,MAChC;AAAA,IACF;AAAA,EACF;AAAA,EAEF,MAAML;AAAA,IACJC;AAAA,MACEC,EAAyB;AAAA,MACzB;AAAA,MACAC;AAAA,QACE,CAACC,OAAmF;AAAA,UAClF,GAAGA;AAAA,UACH,WAAW;AAAA,UACX,mBAAmB;AAAA,QAAA;AAAA,MACrB;AAAA,IACF;AAAA,IAEFH;AAAA,MACEC,EAAyB;AAAA,MACzB;AAAA,MACAC;AAAA,QACE,CAACC,OAAmF;AAAA,UAClF,GAAGA;AAAA,UACH,WAAW;AAAA,UACX,mBAAmB;AAAA,QAAA;AAAA,MACrB;AAAA,IACF;AAAA,EACF;AAAA,EAEF,OAAOJ,EAAA;AACT;"}
|
|
@@ -1,170 +1,156 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { BaseComponent as
|
|
13
|
-
import { componentEvents as
|
|
14
|
-
import { useComponentDictionary as
|
|
15
|
-
import { useBase as
|
|
16
|
-
import { useDateFormatter as
|
|
17
|
-
const
|
|
18
|
-
function
|
|
19
|
-
return /* @__PURE__ */
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { useState as h, useEffect as G } from "react";
|
|
3
|
+
import { usePayrollsGetSuspense as H } from "@gusto/embedded-api/react-query/payrollsGet";
|
|
4
|
+
import { usePayrollsCalculateMutation as V } from "@gusto/embedded-api/react-query/payrollsCalculate";
|
|
5
|
+
import { PayrollProcessingRequestStatus as f } from "@gusto/embedded-api/models/components/payrollprocessingrequest";
|
|
6
|
+
import { useTranslation as K } from "react-i18next";
|
|
7
|
+
import { usePayrollsUpdateMutation as j } from "@gusto/embedded-api/react-query/payrollsUpdate";
|
|
8
|
+
import { usePayrollsGetBlockersSuspense as v } from "@gusto/embedded-api/react-query/payrollsGetBlockers";
|
|
9
|
+
import { payrollSubmitHandler as I } from "../PayrollBlocker/payrollHelpers.js";
|
|
10
|
+
import { PayrollConfigurationPresentation as z } from "./PayrollConfigurationPresentation.js";
|
|
11
|
+
import { usePayrollConfigurationData as J } from "./usePayrollConfigurationData.js";
|
|
12
|
+
import { BaseComponent as Q } from "../../Base/Base.js";
|
|
13
|
+
import { componentEvents as s } from "../../../shared/constants.js";
|
|
14
|
+
import { useComponentDictionary as X, useI18n as Z } from "../../../i18n/I18n.js";
|
|
15
|
+
import { useBase as $ } from "../../Base/useBase.js";
|
|
16
|
+
import { useDateFormatter as ee } from "../../../hooks/useDateFormatter.js";
|
|
17
|
+
const te = (t) => t?.status === f.Calculating, ae = (t) => t?.status === f.CalculateSuccess;
|
|
18
|
+
function Le(t) {
|
|
19
|
+
return /* @__PURE__ */ m(Q, { ...t, children: /* @__PURE__ */ m(oe, { ...t, children: t.children }) });
|
|
20
20
|
}
|
|
21
|
-
const
|
|
21
|
+
const oe = ({
|
|
22
22
|
onEvent: t,
|
|
23
|
-
companyId:
|
|
24
|
-
payrollId:
|
|
25
|
-
dictionary:
|
|
26
|
-
alerts:
|
|
27
|
-
withReimbursements:
|
|
23
|
+
companyId: i,
|
|
24
|
+
payrollId: l,
|
|
25
|
+
dictionary: g,
|
|
26
|
+
alerts: C,
|
|
27
|
+
withReimbursements: L = !0
|
|
28
28
|
}) => {
|
|
29
|
-
|
|
30
|
-
const { t:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
handleFirstPage: () => {
|
|
41
|
-
n(1);
|
|
42
|
-
},
|
|
43
|
-
handlePreviousPage: () => {
|
|
44
|
-
n((e) => Math.max(e - 1, 1));
|
|
45
|
-
},
|
|
46
|
-
handleNextPage: () => {
|
|
47
|
-
n((e) => Math.min(e + 1, y));
|
|
48
|
-
},
|
|
49
|
-
handleLastPage: () => {
|
|
50
|
-
n(y);
|
|
51
|
-
},
|
|
52
|
-
handleItemsPerPageChange: (e) => {
|
|
53
|
-
N(e);
|
|
54
|
-
},
|
|
55
|
-
totalPages: y,
|
|
56
|
-
isFetching: U,
|
|
57
|
-
itemsPerPage: E
|
|
58
|
-
}, { data: a } = v(
|
|
29
|
+
X("Payroll.PayrollConfiguration", g), Z("Payroll.PayrollConfiguration");
|
|
30
|
+
const { t: r } = K("Payroll.PayrollConfiguration"), { baseSubmitHandler: d } = $(), n = ee(), [o, c] = h(!1), {
|
|
31
|
+
employeeDetails: D,
|
|
32
|
+
employeeCompensations: w,
|
|
33
|
+
paySchedule: k,
|
|
34
|
+
payPeriod: R,
|
|
35
|
+
isOffCycle: _,
|
|
36
|
+
pagination: A,
|
|
37
|
+
isLoading: E,
|
|
38
|
+
refetch: b
|
|
39
|
+
} = J({ companyId: i, payrollId: l }), { data: a } = H(
|
|
59
40
|
{
|
|
60
|
-
companyId:
|
|
61
|
-
payrollId:
|
|
62
|
-
include: ["taxes", "benefits", "deductions"]
|
|
41
|
+
companyId: i,
|
|
42
|
+
payrollId: l,
|
|
43
|
+
include: ["taxes", "benefits", "deductions", "payroll_status_meta"]
|
|
63
44
|
},
|
|
64
|
-
{ refetchInterval:
|
|
65
|
-
), { mutateAsync:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
} =
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
sortBy: "last_name"
|
|
75
|
-
// sort alphanumeric by employee last_names to match employees GET
|
|
76
|
-
}), M = async () => {
|
|
77
|
-
P([]), await C({}, async () => {
|
|
78
|
-
const e = await Z(async () => {
|
|
79
|
-
await b({
|
|
45
|
+
{ refetchInterval: o ? 5e3 : !1 }
|
|
46
|
+
), { mutateAsync: x, isPending: P } = V(), { mutateAsync: O, isPending: U } = j(), { data: N } = v({
|
|
47
|
+
companyUuid: i
|
|
48
|
+
}), S = (N.payrollBlockerList ?? []).map((e) => ({
|
|
49
|
+
key: e.key ?? "unknown",
|
|
50
|
+
message: e.message
|
|
51
|
+
})), [B, p] = h(S), M = async () => {
|
|
52
|
+
p([]), await d({}, async () => {
|
|
53
|
+
const e = await I(async () => {
|
|
54
|
+
await x({
|
|
80
55
|
request: {
|
|
81
|
-
companyId:
|
|
82
|
-
payrollId:
|
|
56
|
+
companyId: i,
|
|
57
|
+
payrollId: l
|
|
83
58
|
}
|
|
84
59
|
}), c(!0);
|
|
85
60
|
});
|
|
86
|
-
!e.success && e.blockers.length > 0 &&
|
|
61
|
+
!e.success && e.blockers.length > 0 && p(e.blockers);
|
|
87
62
|
});
|
|
88
63
|
}, T = (e) => {
|
|
89
|
-
t(
|
|
64
|
+
t(s.RUN_PAYROLL_EMPLOYEE_EDIT, {
|
|
90
65
|
employeeId: e.uuid,
|
|
91
66
|
firstName: e.firstName,
|
|
92
67
|
lastName: e.lastName
|
|
93
68
|
});
|
|
94
|
-
},
|
|
69
|
+
}, W = ({
|
|
95
70
|
paymentMethod: e,
|
|
96
|
-
reimbursements:
|
|
97
|
-
...
|
|
71
|
+
reimbursements: y,
|
|
72
|
+
...u
|
|
98
73
|
}) => ({
|
|
99
|
-
...
|
|
74
|
+
...u,
|
|
100
75
|
...e && e !== "Historical" ? { paymentMethod: e } : {},
|
|
101
|
-
memo:
|
|
102
|
-
}),
|
|
103
|
-
t(
|
|
76
|
+
memo: u.memo || void 0
|
|
77
|
+
}), Y = async (e) => {
|
|
78
|
+
t(s.RUN_PAYROLL_EMPLOYEE_SKIP, {
|
|
104
79
|
employeeId: e.employeeUuid
|
|
105
|
-
}), await
|
|
106
|
-
const
|
|
80
|
+
}), await d({}, async () => {
|
|
81
|
+
const y = W(e), u = await O({
|
|
107
82
|
request: {
|
|
108
|
-
companyId:
|
|
109
|
-
payrollId:
|
|
83
|
+
companyId: i,
|
|
84
|
+
payrollId: l,
|
|
110
85
|
payrollUpdate: {
|
|
111
86
|
employeeCompensations: [
|
|
112
|
-
{ ...
|
|
87
|
+
{ ...y, excluded: !y.excluded }
|
|
113
88
|
]
|
|
114
89
|
}
|
|
115
90
|
}
|
|
116
91
|
});
|
|
117
|
-
t(
|
|
118
|
-
payrollPrepared:
|
|
119
|
-
}), await
|
|
92
|
+
t(s.RUN_PAYROLL_EMPLOYEE_SAVED, {
|
|
93
|
+
payrollPrepared: u.payrollPrepared
|
|
94
|
+
}), await b();
|
|
120
95
|
});
|
|
121
|
-
},
|
|
122
|
-
t(
|
|
96
|
+
}, q = () => {
|
|
97
|
+
t(s.RUN_PAYROLL_BLOCKERS_VIEW_ALL);
|
|
123
98
|
};
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
payrollId:
|
|
127
|
-
alert: { type: "success", title:
|
|
99
|
+
G(() => {
|
|
100
|
+
te(a.payrollShow?.processingRequest) && !o && c(!0), o && ae(a.payrollShow?.processingRequest) && (t(s.RUN_PAYROLL_CALCULATED, {
|
|
101
|
+
payrollId: l,
|
|
102
|
+
alert: { type: "success", title: r("alerts.progressSaved") },
|
|
128
103
|
payPeriod: a.payrollShow?.payPeriod
|
|
129
|
-
}),
|
|
130
|
-
}, [
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
104
|
+
}), p([]), c(!1)), o && a.payrollShow?.processingRequest?.status === f.ProcessingFailed && (t(s.RUN_PAYROLL_PROCESSING_FAILED), c(!1));
|
|
105
|
+
}, [a.payrollShow?.processingRequest, o, t, r, l]);
|
|
106
|
+
const F = a.payrollShow?.payrollStatusMeta?.payrollLate && a.payrollShow.payrollStatusMeta.initialCheckDate && a.payrollShow.payrollStatusMeta.expectedDebitTime && a.payrollShow.payrollStatusMeta.expectedCheckDate ? {
|
|
107
|
+
label: r("alerts.payrollLate", {
|
|
108
|
+
initialCheckDate: n.formatShortWithWeekday(
|
|
109
|
+
a.payrollShow.payrollStatusMeta.initialCheckDate
|
|
110
|
+
)
|
|
111
|
+
}),
|
|
112
|
+
content: r("alerts.payrollLateText", {
|
|
113
|
+
...n.formatWithTime(
|
|
114
|
+
a.payrollShow.payrollStatusMeta.expectedDebitTime
|
|
115
|
+
),
|
|
116
|
+
newCheckDate: n.formatShortWithWeekday(
|
|
117
|
+
a.payrollShow.payrollStatusMeta.expectedCheckDate
|
|
118
|
+
)
|
|
119
|
+
}),
|
|
120
|
+
variant: "warning"
|
|
121
|
+
} : a.payrollShow ? {
|
|
122
|
+
label: r("alerts.directDepositDeadline", {
|
|
123
|
+
payDate: n.formatShortWithWeekday(a.payrollShow.checkDate),
|
|
124
|
+
...n.formatWithTime(a.payrollShow.payrollDeadline)
|
|
142
125
|
}),
|
|
143
|
-
content:
|
|
126
|
+
content: r("alerts.directDepositDeadlineText"),
|
|
127
|
+
variant: "info"
|
|
144
128
|
} : void 0;
|
|
145
|
-
return /* @__PURE__ */
|
|
146
|
-
|
|
129
|
+
return /* @__PURE__ */ m(
|
|
130
|
+
z,
|
|
147
131
|
{
|
|
148
132
|
onCalculatePayroll: M,
|
|
133
|
+
isCalculateDisabled: S.length > 0,
|
|
149
134
|
onEdit: T,
|
|
150
|
-
onToggleExclude:
|
|
151
|
-
onViewBlockers:
|
|
152
|
-
employeeCompensations:
|
|
153
|
-
employeeDetails:
|
|
154
|
-
payPeriod:
|
|
155
|
-
paySchedule:
|
|
156
|
-
isOffCycle:
|
|
157
|
-
alerts:
|
|
158
|
-
|
|
159
|
-
isPending:
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
135
|
+
onToggleExclude: Y,
|
|
136
|
+
onViewBlockers: q,
|
|
137
|
+
employeeCompensations: w,
|
|
138
|
+
employeeDetails: D,
|
|
139
|
+
payPeriod: R,
|
|
140
|
+
paySchedule: k,
|
|
141
|
+
isOffCycle: _,
|
|
142
|
+
alerts: C,
|
|
143
|
+
payrollAlert: F,
|
|
144
|
+
isPending: o || E || U || P,
|
|
145
|
+
isCalculating: P || o,
|
|
146
|
+
payrollBlockers: B,
|
|
147
|
+
pagination: A,
|
|
148
|
+
withReimbursements: L
|
|
163
149
|
}
|
|
164
150
|
);
|
|
165
151
|
};
|
|
166
152
|
export {
|
|
167
|
-
|
|
168
|
-
|
|
153
|
+
Le as PayrollConfiguration,
|
|
154
|
+
oe as Root
|
|
169
155
|
};
|
|
170
156
|
//# sourceMappingURL=PayrollConfiguration.js.map
|