@gusto/embedded-react-sdk 0.17.0 → 0.18.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 +35 -0
- package/dist/components/Base/Base.js +50 -65
- package/dist/components/Base/Base.js.map +1 -1
- package/dist/components/Base/useBase.d.ts +2 -5
- package/dist/components/Base/useBase.js.map +1 -1
- package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js +42 -36
- package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js.map +1 -1
- package/dist/components/Common/HamburgerMenu/HamburgerMenu.js +1 -1
- package/dist/components/Common/HamburgerMenu/HamburgerMenu.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureForm.js +4 -7
- package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormActions.js +10 -13
- package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormFields.js +10 -13
- package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
- package/dist/components/Common/UI/DatePicker/DatePicker.module.scss.js +8 -8
- package/dist/components/Common/UI/Dialog/Dialog.js +50 -76
- package/dist/components/Common/UI/Dialog/Dialog.js.map +1 -1
- package/dist/components/Common/UI/Dialog/Dialog.module.scss.js +8 -14
- package/dist/components/Common/UI/Dialog/Dialog.module.scss.js.map +1 -1
- package/dist/components/Common/UI/Link/LinkTypes.d.ts +7 -6
- package/dist/components/Common/UI/Modal/Modal.d.ts +2 -0
- package/dist/components/Common/UI/Modal/Modal.js +90 -0
- package/dist/components/Common/UI/Modal/Modal.js.map +1 -0
- package/dist/components/Common/UI/Modal/Modal.module.scss.js +26 -0
- package/dist/components/Common/UI/Modal/Modal.module.scss.js.map +1 -0
- package/dist/components/Common/UI/Modal/ModalTypes.d.ts +34 -0
- package/dist/components/Common/UI/Modal/ModalTypes.js +8 -0
- package/dist/components/Common/UI/Modal/ModalTypes.js.map +1 -0
- package/dist/components/Common/UI/Modal/index.d.ts +3 -0
- package/dist/components/Common/UI/Tabs/Tabs.d.ts +0 -5
- package/dist/components/Common/UI/Tabs/Tabs.js +45 -16
- package/dist/components/Common/UI/Tabs/Tabs.js.map +1 -1
- package/dist/components/Common/UI/Tabs/Tabs.module.scss.js +8 -4
- package/dist/components/Common/UI/Tabs/Tabs.module.scss.js.map +1 -1
- package/dist/components/Common/UI/Tabs/TabsTypes.d.ts +7 -0
- package/dist/components/Common/index.d.ts +0 -1
- package/dist/components/Company/AssignSignatory/AssignSignatory.js +6 -8
- package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +6 -8
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +8 -10
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +2 -3
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +2 -3
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +4 -6
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +6 -8
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +5 -6
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +9 -10
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +4 -6
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/TitleSelect.js +7 -8
- package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +6 -8
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +8 -9
- package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -11
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +4 -6
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js +10 -12
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +11 -13
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -6
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +5 -7
- package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +11 -13
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +4 -6
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +6 -8
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +4 -6
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Actions.js +7 -9
- package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
- package/dist/components/Company/FederalTaxes/FederalTaxes.js +15 -17
- package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Form.js +2 -4
- package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +9 -11
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Actions.js +5 -7
- package/dist/components/Company/Industry/Actions.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +7 -9
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Industry/Edit.js +10 -12
- package/dist/components/Company/Industry/Edit.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Actions.js +6 -8
- package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Form.js +4 -5
- package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/LocationForm.js +10 -12
- package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +4 -6
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/Actions.js +6 -8
- package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/List.js +6 -8
- package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/LocationsList.js +12 -14
- package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +4 -6
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/Completed.js +12 -14
- package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js +6 -8
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +2 -4
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +4 -6
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +40 -42
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Actions.js +10 -12
- package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Edit.js +35 -37
- package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Head.js +17 -19
- package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/List.js +13 -15
- package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
- package/dist/components/Company/PaySchedule/usePaySchedule.js +6 -8
- package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +5 -7
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +4 -6
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +6 -8
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js +5 -7
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +4 -6
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Contractor/Address/Address.js +4 -6
- package/dist/components/Contractor/Address/Address.js.map +1 -1
- package/dist/components/Contractor/Address/Form.js +2 -3
- package/dist/components/Contractor/Address/Form.js.map +1 -1
- package/dist/components/Contractor/Address/useAddress.js +6 -8
- package/dist/components/Contractor/Address/useAddress.js.map +1 -1
- package/dist/components/Contractor/ContractorList/index.js +30 -31
- package/dist/components/Contractor/ContractorList/index.js.map +1 -1
- package/dist/components/Contractor/NewHireReport/NewHireReport.js +13 -14
- package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +4 -6
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +2 -3
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -3
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
- package/dist/components/Contractor/Profile/useContractorProfile.js +3 -4
- package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
- package/dist/components/Contractor/Submit/Submit.js +3 -4
- package/dist/components/Contractor/Submit/Submit.js.map +1 -1
- package/dist/components/Employee/Compensation/Actions.js +5 -6
- package/dist/components/Employee/Compensation/Actions.js.map +1 -1
- package/dist/components/Employee/Compensation/Edit.js +10 -9
- package/dist/components/Employee/Compensation/Edit.js.map +1 -1
- package/dist/components/Employee/Compensation/List.js +23 -25
- package/dist/components/Employee/Compensation/List.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsComponents.js +1 -1
- package/dist/components/Employee/Deductions/DeductionsComponents.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.d.ts +6 -6
- package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.d.ts +2 -2
- package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +3 -4
- package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +44 -40
- package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
- package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js +3 -4
- package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js.map +1 -1
- package/dist/components/Employee/Deductions/useDeductions.d.ts +2 -2
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +6 -8
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +9 -11
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -4
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +4 -6
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +11 -13
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +4 -6
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Employee/EmployeeList/Actions.js +4 -6
- package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
- package/dist/components/Employee/EmployeeList/EmployeeList.js +3 -4
- package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/Head.js +5 -7
- package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
- package/dist/components/Employee/EmployeeList/List.js +18 -19
- package/dist/components/Employee/EmployeeList/List.js.map +1 -1
- package/dist/components/Employee/EmployeeList/useEmployeeList.js +4 -6
- package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/Actions.js +6 -8
- package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/FederalForm.js +11 -13
- package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/FederalTaxes.js +8 -8
- package/dist/components/Employee/FederalTaxes/FederalTaxes.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/Head.js +6 -6
- package/dist/components/Employee/FederalTaxes/Head.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +4 -6
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Employee/Landing/Landing.js +12 -13
- package/dist/components/Employee/Landing/Landing.js.map +1 -1
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
- package/dist/components/Employee/PaymentMethod/Actions.js +7 -9
- package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +4 -5
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js +9 -11
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +6 -7
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/Split.js +3 -4
- package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +6 -8
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
- package/dist/components/Employee/Profile/Actions.js +7 -9
- package/dist/components/Employee/Profile/Actions.js.map +1 -1
- package/dist/components/Employee/Profile/AdminPersonalDetails.js +38 -35
- package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
- package/dist/components/Employee/Profile/HomeAddress.d.ts +52 -0
- package/dist/components/Employee/Profile/HomeAddress.js +63 -44
- package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js +20 -21
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
- package/dist/components/Employee/Profile/Profile.js +150 -143
- package/dist/components/Employee/Profile/Profile.js.map +1 -1
- package/dist/components/Employee/Profile/useProfile.d.ts +1 -0
- package/dist/components/Employee/Profile/useProfile.js +4 -6
- package/dist/components/Employee/Profile/useProfile.js.map +1 -1
- package/dist/components/Employee/StateTaxes/Actions.js +8 -10
- package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
- package/dist/components/Employee/StateTaxes/StateTaxes.js +4 -4
- package/dist/components/Employee/StateTaxes/StateTaxes.js.map +1 -1
- package/dist/components/Employee/StateTaxes/useStateTaxes.js +4 -6
- package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
- package/dist/components/Employee/Taxes/Actions.js +8 -10
- package/dist/components/Employee/Taxes/Actions.js.map +1 -1
- package/dist/components/Employee/Taxes/FederalForm.js +9 -11
- package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
- package/dist/components/Employee/Taxes/FederalHead.js +6 -6
- package/dist/components/Employee/Taxes/FederalHead.js.map +1 -1
- package/dist/components/Employee/Taxes/Taxes.js +5 -5
- package/dist/components/Employee/Taxes/Taxes.js.map +1 -1
- package/dist/components/Employee/Taxes/useTaxes.js +4 -6
- package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
- package/dist/components/Flow/Flow.js +16 -18
- package/dist/components/Flow/Flow.js.map +1 -1
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +9 -11
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +6 -7
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +64 -64
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +133 -135
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.module.scss.js +5 -3
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.module.scss.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +127 -119
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +5 -7
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +3 -1
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js +22 -22
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +40 -27
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +50 -72
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +2 -4
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.d.ts +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +4 -4
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js +20 -20
- package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollList.js +24 -21
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +3 -9
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +117 -129
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +6 -6
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +89 -78
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +192 -211
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.module.scss.js +8 -0
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.module.scss.js.map +1 -0
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +2 -3
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +8 -10
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +40 -38
- package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
- package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
- package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
- package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +5 -8
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
- package/dist/helpers/apiErrorToList.d.ts +7 -0
- package/dist/helpers/apiErrorToList.js +23 -0
- package/dist/helpers/apiErrorToList.js.map +1 -0
- package/dist/helpers/breadcrumbHelpers.js +30 -30
- package/dist/helpers/breadcrumbHelpers.js.map +1 -1
- package/dist/helpers/dateFormatting.d.ts +15 -7
- package/dist/helpers/dateFormatting.js +88 -35
- package/dist/helpers/dateFormatting.js.map +1 -1
- package/dist/helpers/formattedStrings.js +11 -12
- package/dist/helpers/formattedStrings.js.map +1 -1
- package/dist/hooks/useAsyncError.js.map +1 -0
- package/dist/hooks/useDateFormatter.d.ts +19 -0
- package/dist/hooks/useDateFormatter.js +24 -0
- package/dist/hooks/useDateFormatter.js.map +1 -0
- package/dist/hooks/useMenu.js.map +1 -0
- package/dist/{components/Common/hooks → hooks}/useNumberFormatter.js +1 -1
- package/dist/hooks/useNumberFormatter.js.map +1 -0
- package/dist/hooks/useOverflowDetection/index.d.ts +3 -0
- package/dist/hooks/useOverflowDetection/useOverflowDetection.d.ts +7 -0
- package/dist/hooks/useOverflowDetection/useOverflowDetection.js +28 -0
- package/dist/hooks/useOverflowDetection/useOverflowDetection.js.map +1 -0
- package/dist/i18n/en/Company.PaySchedule.json.js +9 -9
- package/dist/i18n/en/Employee.Compensation.json.js +15 -15
- package/dist/i18n/en/Employee.Deductions.json.js +131 -105
- package/dist/i18n/en/Employee.Deductions.json.js.map +1 -1
- package/dist/i18n/en/Employee.FederalTaxes.json.js +9 -9
- package/dist/i18n/en/Employee.HomeAddress.json.js +1 -1
- package/dist/i18n/en/Employee.Taxes.json.js +25 -27
- package/dist/i18n/en/Employee.Taxes.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +1 -1
- package/dist/i18n/en/Payroll.PayrollOverview.json.js +23 -23
- package/dist/i18n/en/common.json.d.ts +2 -1
- package/dist/i18n/en/common.json.js +4 -4
- package/dist/style.css +1 -1
- package/dist/types/i18next.d.ts +16 -1
- package/package.json +9 -9
- package/dist/components/Common/hooks/useAsyncError.js.map +0 -1
- package/dist/components/Common/hooks/useMenu.js.map +0 -1
- package/dist/components/Common/hooks/useNumberFormatter.js.map +0 -1
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +0 -221
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +0 -1
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.module.scss.js +0 -8
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.module.scss.js.map +0 -1
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +0 -132
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +0 -1
- package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.module.scss.js +0 -14
- package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.module.scss.js.map +0 -1
- package/dist/components/Employee/Deductions/DeductionsForm/UNSTABLE_DeductionsForm.js +0 -98
- package/dist/components/Employee/Deductions/DeductionsForm/UNSTABLE_DeductionsForm.js.map +0 -1
- /package/dist/{components/Common/hooks → hooks}/useAsyncError.d.ts +0 -0
- /package/dist/{components/Common/hooks → hooks}/useAsyncError.js +0 -0
- /package/dist/{components/Common/hooks → hooks}/useMenu.d.ts +0 -0
- /package/dist/{components/Common/hooks → hooks}/useMenu.js +0 -0
- /package/dist/{components/Common/hooks → hooks}/useNumberFormatter.d.ts +0 -0
|
@@ -1,82 +1,63 @@
|
|
|
1
|
-
import { jsx as t, jsxs as s, Fragment as
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { calculateTotalPayroll as
|
|
5
|
-
import
|
|
6
|
-
import "
|
|
7
|
-
import {
|
|
8
|
-
import { useComponentContext as
|
|
9
|
-
import { useI18n as
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import { useLoadingIndicator as
|
|
16
|
-
import { DataView as
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}), L = T.toLocaleDateString(f, {
|
|
28
|
-
month: "short",
|
|
29
|
-
day: "numeric",
|
|
30
|
-
year: "numeric"
|
|
31
|
-
});
|
|
32
|
-
return { startDate: P, endDate: L };
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return { startDate: "", endDate: "" };
|
|
36
|
-
}, Ee = ({
|
|
37
|
-
onEdit: m,
|
|
38
|
-
onSubmit: f,
|
|
39
|
-
onCancel: g,
|
|
40
|
-
onPayrollReceipt: T,
|
|
41
|
-
onPaystubDownload: P,
|
|
42
|
-
employeeDetails: L,
|
|
43
|
-
payrollData: l,
|
|
44
|
-
bankAccount: G,
|
|
45
|
-
taxes: N,
|
|
1
|
+
import { jsx as t, jsxs as s, Fragment as T } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as ne, Trans as ae } from "react-i18next";
|
|
3
|
+
import { useState as B, useRef as le } from "react";
|
|
4
|
+
import { calculateTotalPayroll as ie } from "../helpers.js";
|
|
5
|
+
import oe from "./PayrollOverviewPresentation.module.scss.js";
|
|
6
|
+
import { Flex as m, FlexItem as R } from "../../Common/Flex/Flex.js";
|
|
7
|
+
import { useContainerBreakpoints as se } from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
|
|
8
|
+
import { useComponentContext as de } from "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
9
|
+
import { useI18n as ce } from "../../../i18n/I18n.js";
|
|
10
|
+
import { useDateFormatter as me } from "../../../hooks/useDateFormatter.js";
|
|
11
|
+
import ue from "../../../hooks/useNumberFormatter.js";
|
|
12
|
+
import { firstLastName as w } from "../../../helpers/formattedStrings.js";
|
|
13
|
+
import { PAYMENT_METHODS as be, FlsaStatus as W, compensationTypeLabels as H } from "../../../shared/constants.js";
|
|
14
|
+
import ye from "../../../assets/icons/download-cloud.svg.js";
|
|
15
|
+
import { useLoadingIndicator as pe } from "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
|
|
16
|
+
import { DataView as y } from "../../Common/DataView/DataView.js";
|
|
17
|
+
const he = (u, x) => u?.startDate && u.endDate ? x.formatPayPeriod(u.startDate, u.endDate) : { startDate: "", endDate: "" }, Se = ({
|
|
18
|
+
onEdit: u,
|
|
19
|
+
onSubmit: x,
|
|
20
|
+
onCancel: Y,
|
|
21
|
+
onPayrollReceipt: F,
|
|
22
|
+
onPaystubDownload: j,
|
|
23
|
+
employeeDetails: G,
|
|
24
|
+
payrollData: i,
|
|
25
|
+
bankAccount: X,
|
|
26
|
+
taxes: C,
|
|
46
27
|
isSubmitting: p = !1,
|
|
47
|
-
isProcessed:
|
|
48
|
-
alerts:
|
|
28
|
+
isProcessed: P,
|
|
29
|
+
alerts: v = []
|
|
49
30
|
}) => {
|
|
50
|
-
const { Alert:
|
|
51
|
-
|
|
52
|
-
const
|
|
53
|
-
(a,
|
|
31
|
+
const { Alert: E, Button: f, ButtonIcon: $, Dialog: z, Heading: D, Text: n, Tabs: K, LoadingSpinner: q } = de();
|
|
32
|
+
ce("Payroll.PayrollOverview");
|
|
33
|
+
const b = me(), { t: r } = ne("Payroll.PayrollOverview"), o = ue("currency"), [J, Q] = B("companyPays"), [L, O] = B(!1), { LoadingIndicator: Z } = pe(), M = le(null), d = se({ ref: M }).includes("small"), I = ie(i), ee = i.payrollStatusMeta?.expectedDebitTime ?? i.payrollDeadline, S = (e) => e.taxes?.reduce(
|
|
34
|
+
(a, l) => l.employer ? a + l.amount : a,
|
|
54
35
|
0
|
|
55
|
-
) ?? 0,
|
|
56
|
-
(a,
|
|
36
|
+
) ?? 0, U = (e) => e.benefits?.reduce(
|
|
37
|
+
(a, l) => l.companyContribution ? a + l.companyContribution : a,
|
|
57
38
|
0
|
|
58
|
-
) ?? 0,
|
|
39
|
+
) ?? 0, k = (e) => e.fixedCompensations?.length ? Number(
|
|
59
40
|
e.fixedCompensations.find(
|
|
60
|
-
(a) => a.name?.toLowerCase() ===
|
|
41
|
+
(a) => a.name?.toLowerCase() === H.REIMBURSEMENT_NAME.toLowerCase()
|
|
61
42
|
)?.amount || 0
|
|
62
|
-
) : 0,
|
|
63
|
-
(a,
|
|
64
|
-
if (typeof
|
|
43
|
+
) : 0, te = (e) => e.grossPay + k(e) + S(e) + U(e), c = new Map(G.map((e) => [e.uuid, e])), g = (e) => e.hourlyCompensations?.reduce(
|
|
44
|
+
(a, l) => {
|
|
45
|
+
if (typeof l.name > "u")
|
|
65
46
|
return a;
|
|
66
|
-
const h =
|
|
67
|
-
return a[h] =
|
|
47
|
+
const h = l.name.toLowerCase(), N = a[h] ?? 0;
|
|
48
|
+
return a[h] = N + Number(l.hours || 0), a;
|
|
68
49
|
},
|
|
69
50
|
{}
|
|
70
|
-
) || {},
|
|
71
|
-
(e, a) => !a.excluded && a.paymentMethod ===
|
|
51
|
+
) || {}, A = (e) => e.paidTimeOff?.reduce((a, l) => a + Number(l.hours || 0), 0) ?? 0, V = i.employeeCompensations?.reduce(
|
|
52
|
+
(e, a) => !a.excluded && a.paymentMethod === be.check ? e + 1 : e,
|
|
72
53
|
0
|
|
73
|
-
) ?? 0,
|
|
54
|
+
) ?? 0, _ = [
|
|
74
55
|
{
|
|
75
56
|
key: "employeeName",
|
|
76
57
|
title: r("tableHeaders.employees"),
|
|
77
|
-
render: (e) => /* @__PURE__ */ t(n, { children:
|
|
78
|
-
first_name:
|
|
79
|
-
last_name:
|
|
58
|
+
render: (e) => /* @__PURE__ */ t(n, { children: w({
|
|
59
|
+
first_name: c.get(e.employeeUuid)?.firstName,
|
|
60
|
+
last_name: c.get(e.employeeUuid)?.lastName
|
|
80
61
|
}) })
|
|
81
62
|
},
|
|
82
63
|
{
|
|
@@ -87,59 +68,59 @@ const ue = ({
|
|
|
87
68
|
{
|
|
88
69
|
key: "reimbursements",
|
|
89
70
|
title: r("tableHeaders.reimbursements"),
|
|
90
|
-
render: (e) => /* @__PURE__ */ t(n, { children: o(
|
|
71
|
+
render: (e) => /* @__PURE__ */ t(n, { children: o(k(e)) })
|
|
91
72
|
},
|
|
92
73
|
{
|
|
93
74
|
key: "companyTaxes",
|
|
94
75
|
title: r("tableHeaders.companyTaxes"),
|
|
95
|
-
render: (e) => /* @__PURE__ */ t(n, { children: o(
|
|
76
|
+
render: (e) => /* @__PURE__ */ t(n, { children: o(S(e)) })
|
|
96
77
|
},
|
|
97
78
|
{
|
|
98
79
|
key: "companyBenefits",
|
|
99
80
|
title: r("tableHeaders.companyBenefits"),
|
|
100
|
-
render: (e) => /* @__PURE__ */ t(n, { children: o(
|
|
81
|
+
render: (e) => /* @__PURE__ */ t(n, { children: o(U(e)) })
|
|
101
82
|
},
|
|
102
83
|
{
|
|
103
84
|
key: "companyPays",
|
|
104
85
|
title: r("tableHeaders.companyPays"),
|
|
105
|
-
render: (e) => /* @__PURE__ */ t(n, { children: o(
|
|
86
|
+
render: (e) => /* @__PURE__ */ t(n, { children: o(te(e)) })
|
|
106
87
|
}
|
|
107
88
|
];
|
|
108
|
-
|
|
89
|
+
P && _.push({
|
|
109
90
|
key: "paystubs",
|
|
110
91
|
title: r("tableHeaders.paystub"),
|
|
111
92
|
render: (e) => /* @__PURE__ */ t(
|
|
112
|
-
|
|
93
|
+
$,
|
|
113
94
|
{
|
|
114
95
|
"aria-label": r("downloadPaystubLabel"),
|
|
115
96
|
variant: "tertiary",
|
|
116
97
|
onClick: () => {
|
|
117
|
-
e.employeeUuid &&
|
|
98
|
+
e.employeeUuid && j(e.employeeUuid);
|
|
118
99
|
},
|
|
119
|
-
children: /* @__PURE__ */ t(
|
|
100
|
+
children: /* @__PURE__ */ t(ye, {})
|
|
120
101
|
}
|
|
121
102
|
)
|
|
122
103
|
});
|
|
123
|
-
const
|
|
104
|
+
const re = [
|
|
124
105
|
{
|
|
125
106
|
id: "companyPays",
|
|
126
107
|
label: r("dataViews.companyPaysTab"),
|
|
127
108
|
content: /* @__PURE__ */ t(
|
|
128
|
-
|
|
109
|
+
y,
|
|
129
110
|
{
|
|
130
111
|
label: r("dataViews.companyPaysTable"),
|
|
131
|
-
columns:
|
|
132
|
-
data:
|
|
112
|
+
columns: _,
|
|
113
|
+
data: i.employeeCompensations,
|
|
133
114
|
footer: () => ({
|
|
134
|
-
employeeName: /* @__PURE__ */ s(
|
|
115
|
+
employeeName: /* @__PURE__ */ s(T, { children: [
|
|
135
116
|
/* @__PURE__ */ t(n, { children: r("tableHeaders.footerTotalsLabel") }),
|
|
136
117
|
/* @__PURE__ */ t(n, { children: r("tableHeaders.footerTotalsDescription") })
|
|
137
118
|
] }),
|
|
138
|
-
grossPay: /* @__PURE__ */ t(n, { children: o(Number(
|
|
139
|
-
reimbursements: /* @__PURE__ */ t(n, { children: o(Number(
|
|
140
|
-
companyTaxes: /* @__PURE__ */ t(n, { children: o(Number(
|
|
141
|
-
companyBenefits: /* @__PURE__ */ t(n, { children: o(Number(
|
|
142
|
-
companyPays: /* @__PURE__ */ t(n, { children: o(
|
|
119
|
+
grossPay: /* @__PURE__ */ t(n, { children: o(Number(i.totals?.grossPay ?? 0)) }),
|
|
120
|
+
reimbursements: /* @__PURE__ */ t(n, { children: o(Number(i.totals?.reimbursements ?? 0)) }),
|
|
121
|
+
companyTaxes: /* @__PURE__ */ t(n, { children: o(Number(i.totals?.employerTaxes ?? 0)) }),
|
|
122
|
+
companyBenefits: /* @__PURE__ */ t(n, { children: o(Number(i.totals?.benefits ?? 0)) }),
|
|
123
|
+
companyPays: /* @__PURE__ */ t(n, { children: o(I) })
|
|
143
124
|
})
|
|
144
125
|
}
|
|
145
126
|
)
|
|
@@ -148,28 +129,28 @@ const ue = ({
|
|
|
148
129
|
id: "hoursWorked",
|
|
149
130
|
label: r("dataViews.hoursWorkedTab"),
|
|
150
131
|
content: /* @__PURE__ */ t(
|
|
151
|
-
|
|
132
|
+
y,
|
|
152
133
|
{
|
|
153
134
|
label: r("dataViews.hoursWorkedTable"),
|
|
154
135
|
columns: [
|
|
155
136
|
{
|
|
156
137
|
title: r("tableHeaders.employees"),
|
|
157
|
-
render: (e) => /* @__PURE__ */ t(n, { children:
|
|
158
|
-
first_name:
|
|
159
|
-
last_name:
|
|
138
|
+
render: (e) => /* @__PURE__ */ t(n, { children: w({
|
|
139
|
+
first_name: c.get(e.employeeUuid)?.firstName,
|
|
140
|
+
last_name: c.get(e.employeeUuid)?.lastName
|
|
160
141
|
}) })
|
|
161
142
|
},
|
|
162
143
|
{
|
|
163
144
|
title: r("tableHeaders.compensationType"),
|
|
164
|
-
render: (e) => /* @__PURE__ */ t(n, { children:
|
|
165
|
-
if (
|
|
166
|
-
const h =
|
|
167
|
-
(
|
|
145
|
+
render: (e) => /* @__PURE__ */ t(n, { children: c.get(e.employeeUuid)?.jobs?.reduce((a, l) => {
|
|
146
|
+
if (l.primary) {
|
|
147
|
+
const h = l.compensations?.find(
|
|
148
|
+
(N) => N.uuid === l.currentCompensationUuid
|
|
168
149
|
)?.flsaStatus;
|
|
169
150
|
switch (h) {
|
|
170
|
-
case
|
|
151
|
+
case W.EXEMPT:
|
|
171
152
|
return r("compensationTypeLabels.exempt");
|
|
172
|
-
case
|
|
153
|
+
case W.NONEXEMPT:
|
|
173
154
|
return r("compensationTypeLabels.nonexempt");
|
|
174
155
|
default:
|
|
175
156
|
return h ?? "";
|
|
@@ -180,29 +161,29 @@ const ue = ({
|
|
|
180
161
|
},
|
|
181
162
|
{
|
|
182
163
|
title: r("tableHeaders.regular"),
|
|
183
|
-
render: (e) => /* @__PURE__ */ t(n, { children:
|
|
164
|
+
render: (e) => /* @__PURE__ */ t(n, { children: g(e)[H.REGULAR_HOURS_NAME] || 0 })
|
|
184
165
|
},
|
|
185
166
|
{
|
|
186
167
|
title: r("tableHeaders.overtime"),
|
|
187
|
-
render: (e) => /* @__PURE__ */ t(n, { children:
|
|
168
|
+
render: (e) => /* @__PURE__ */ t(n, { children: g(e)[H.OVERTIME_NAME] || 0 })
|
|
188
169
|
},
|
|
189
170
|
{
|
|
190
171
|
title: r("tableHeaders.doubleOT"),
|
|
191
|
-
render: (e) => /* @__PURE__ */ t(n, { children:
|
|
172
|
+
render: (e) => /* @__PURE__ */ t(n, { children: g(e)[H.DOUBLE_OVERTIME_NAME] || 0 })
|
|
192
173
|
},
|
|
193
174
|
{
|
|
194
175
|
title: r("tableHeaders.timeOff"),
|
|
195
|
-
render: (e) => /* @__PURE__ */ t(n, { children:
|
|
176
|
+
render: (e) => /* @__PURE__ */ t(n, { children: A(e) })
|
|
196
177
|
},
|
|
197
178
|
{
|
|
198
179
|
title: r("tableHeaders.totalHours"),
|
|
199
|
-
render: (e) => /* @__PURE__ */ t(n, { children: Object.values(
|
|
200
|
-
(a,
|
|
180
|
+
render: (e) => /* @__PURE__ */ t(n, { children: Object.values(g(e)).reduce(
|
|
181
|
+
(a, l) => a + l,
|
|
201
182
|
0
|
|
202
|
-
) +
|
|
183
|
+
) + A(e) })
|
|
203
184
|
}
|
|
204
185
|
],
|
|
205
|
-
data:
|
|
186
|
+
data: i.employeeCompensations
|
|
206
187
|
}
|
|
207
188
|
)
|
|
208
189
|
},
|
|
@@ -210,15 +191,15 @@ const ue = ({
|
|
|
210
191
|
id: "employeeTakeHome",
|
|
211
192
|
label: r("dataViews.employeeTakeHomeTab"),
|
|
212
193
|
content: /* @__PURE__ */ t(
|
|
213
|
-
|
|
194
|
+
y,
|
|
214
195
|
{
|
|
215
196
|
label: r("dataViews.employeeTakeHomeTable"),
|
|
216
197
|
columns: [
|
|
217
198
|
{
|
|
218
199
|
title: r("tableHeaders.employees"),
|
|
219
|
-
render: (e) => /* @__PURE__ */ t(n, { children:
|
|
220
|
-
first_name:
|
|
221
|
-
last_name:
|
|
200
|
+
render: (e) => /* @__PURE__ */ t(n, { children: w({
|
|
201
|
+
first_name: c.get(e.employeeUuid)?.firstName,
|
|
202
|
+
last_name: c.get(e.employeeUuid)?.lastName
|
|
222
203
|
}) })
|
|
223
204
|
},
|
|
224
205
|
{
|
|
@@ -233,20 +214,20 @@ const ue = ({
|
|
|
233
214
|
title: r("tableHeaders.deductions"),
|
|
234
215
|
render: (e) => /* @__PURE__ */ t(n, { children: o(
|
|
235
216
|
e.deductions?.reduce(
|
|
236
|
-
(a,
|
|
217
|
+
(a, l) => a + l.amount,
|
|
237
218
|
0
|
|
238
219
|
) ?? 0
|
|
239
220
|
) })
|
|
240
221
|
},
|
|
241
222
|
{
|
|
242
223
|
title: r("tableHeaders.reimbursements"),
|
|
243
|
-
render: (e) => /* @__PURE__ */ t(n, { children: o(
|
|
224
|
+
render: (e) => /* @__PURE__ */ t(n, { children: o(k(e)) })
|
|
244
225
|
},
|
|
245
226
|
{
|
|
246
227
|
title: r("tableHeaders.employeeTaxes"),
|
|
247
228
|
render: (e) => /* @__PURE__ */ t(n, { children: o(
|
|
248
229
|
e.taxes?.reduce(
|
|
249
|
-
(a,
|
|
230
|
+
(a, l) => l.employer ? a : a + l.amount,
|
|
250
231
|
0
|
|
251
232
|
) ?? 0
|
|
252
233
|
) })
|
|
@@ -255,7 +236,7 @@ const ue = ({
|
|
|
255
236
|
title: r("tableHeaders.employeeBenefits"),
|
|
256
237
|
render: (e) => /* @__PURE__ */ t(n, { children: o(
|
|
257
238
|
e.benefits?.reduce(
|
|
258
|
-
(a,
|
|
239
|
+
(a, l) => a + (l.employeeDeduction ?? 0),
|
|
259
240
|
0
|
|
260
241
|
) ?? 0
|
|
261
242
|
) })
|
|
@@ -265,16 +246,16 @@ const ue = ({
|
|
|
265
246
|
render: (e) => /* @__PURE__ */ t(n, { children: o(e.netPay ?? 0) })
|
|
266
247
|
}
|
|
267
248
|
],
|
|
268
|
-
data:
|
|
249
|
+
data: i.employeeCompensations
|
|
269
250
|
}
|
|
270
251
|
)
|
|
271
252
|
},
|
|
272
253
|
{
|
|
273
254
|
id: "taxes",
|
|
274
255
|
label: r("dataViews.taxesTab"),
|
|
275
|
-
content: /* @__PURE__ */ s(
|
|
256
|
+
content: /* @__PURE__ */ s(m, { flexDirection: "column", gap: 32, children: [
|
|
276
257
|
/* @__PURE__ */ t(
|
|
277
|
-
|
|
258
|
+
y,
|
|
278
259
|
{
|
|
279
260
|
label: r("dataViews.taxesTable"),
|
|
280
261
|
columns: [
|
|
@@ -286,24 +267,24 @@ const ue = ({
|
|
|
286
267
|
{
|
|
287
268
|
key: "byYourEmployees",
|
|
288
269
|
title: r("tableHeaders.byYourEmployees"),
|
|
289
|
-
render: (e) => /* @__PURE__ */ t(n, { children: o(
|
|
270
|
+
render: (e) => /* @__PURE__ */ t(n, { children: o(C[e]?.employee ?? 0) })
|
|
290
271
|
},
|
|
291
272
|
{
|
|
292
273
|
key: "byYourCompany",
|
|
293
274
|
title: r("tableHeaders.byYourCompany"),
|
|
294
|
-
render: (e) => /* @__PURE__ */ t(n, { children: o(
|
|
275
|
+
render: (e) => /* @__PURE__ */ t(n, { children: o(C[e]?.employer ?? 0) })
|
|
295
276
|
}
|
|
296
277
|
],
|
|
297
278
|
footer: () => ({
|
|
298
279
|
taxDescription: /* @__PURE__ */ t(n, { children: r("totalsLabel") }),
|
|
299
|
-
byYourEmployees: /* @__PURE__ */ t(n, { children: o(Number(
|
|
300
|
-
byYourCompany: /* @__PURE__ */ t(n, { children: o(Number(
|
|
280
|
+
byYourEmployees: /* @__PURE__ */ t(n, { children: o(Number(i.totals?.employeeTaxes ?? 0)) }),
|
|
281
|
+
byYourCompany: /* @__PURE__ */ t(n, { children: o(Number(i.totals?.employerTaxes ?? 0)) })
|
|
301
282
|
}),
|
|
302
|
-
data: Object.keys(
|
|
283
|
+
data: Object.keys(C)
|
|
303
284
|
}
|
|
304
285
|
),
|
|
305
286
|
/* @__PURE__ */ t(
|
|
306
|
-
|
|
287
|
+
y,
|
|
307
288
|
{
|
|
308
289
|
label: r("dataViews.debitedTable"),
|
|
309
290
|
columns: [
|
|
@@ -317,161 +298,161 @@ const ue = ({
|
|
|
317
298
|
}
|
|
318
299
|
],
|
|
319
300
|
data: [
|
|
320
|
-
{ label: r("directDepositLabel"), value:
|
|
301
|
+
{ label: r("directDepositLabel"), value: i.totals?.netPayDebit || "0" },
|
|
321
302
|
{
|
|
322
303
|
label: r("reimbursementLabel"),
|
|
323
|
-
value:
|
|
304
|
+
value: i.totals?.reimbursementDebit || "0"
|
|
324
305
|
},
|
|
325
306
|
{
|
|
326
307
|
label: r("garnishmentsLabel"),
|
|
327
|
-
value:
|
|
308
|
+
value: i.totals?.childSupportDebit || "0"
|
|
328
309
|
},
|
|
329
|
-
{ label: r("taxesLabel"), value:
|
|
310
|
+
{ label: r("taxesLabel"), value: i.totals?.taxDebit || "0" }
|
|
330
311
|
]
|
|
331
312
|
}
|
|
332
313
|
)
|
|
333
314
|
] })
|
|
334
315
|
}
|
|
335
316
|
];
|
|
336
|
-
return /* @__PURE__ */ s(
|
|
337
|
-
/* @__PURE__ */ s(
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
317
|
+
return /* @__PURE__ */ t("div", { ref: M, className: oe.container, children: /* @__PURE__ */ s(m, { flexDirection: "column", alignItems: "stretch", children: [
|
|
318
|
+
/* @__PURE__ */ s(
|
|
319
|
+
m,
|
|
320
|
+
{
|
|
321
|
+
flexDirection: d ? "row" : "column",
|
|
322
|
+
justifyContent: d ? "space-between" : "normal",
|
|
323
|
+
alignItems: d ? "flex-start" : "stretch",
|
|
324
|
+
gap: d ? 0 : 16,
|
|
325
|
+
children: [
|
|
326
|
+
/* @__PURE__ */ s(R, { flexGrow: 1, children: [
|
|
327
|
+
/* @__PURE__ */ t(D, { as: "h1", children: r(P ? "summaryTitle" : "overviewTitle") }),
|
|
328
|
+
/* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
329
|
+
ae,
|
|
330
|
+
{
|
|
331
|
+
i18nKey: "pageSubtitle",
|
|
332
|
+
t: r,
|
|
333
|
+
components: { dateWrapper: /* @__PURE__ */ t(n, { weight: "bold", as: "span" }) },
|
|
334
|
+
values: he(i.payPeriod, b)
|
|
335
|
+
}
|
|
336
|
+
) })
|
|
337
|
+
] }),
|
|
338
|
+
/* @__PURE__ */ t(R, { flexGrow: d ? 1 : 0, children: /* @__PURE__ */ t(
|
|
339
|
+
m,
|
|
340
|
+
{
|
|
341
|
+
flexDirection: d ? "row" : "column",
|
|
342
|
+
justifyContent: d ? "flex-end" : "normal",
|
|
343
|
+
alignItems: d ? "flex-start" : "stretch",
|
|
344
|
+
gap: 12,
|
|
345
|
+
children: P ? /* @__PURE__ */ s(T, { children: [
|
|
346
|
+
/* @__PURE__ */ t(f, { onClick: F, variant: "secondary", isDisabled: p, children: r("payrollReceiptCta") }),
|
|
347
|
+
/* @__PURE__ */ t(
|
|
348
|
+
f,
|
|
349
|
+
{
|
|
350
|
+
onClick: () => {
|
|
351
|
+
O(!0);
|
|
352
|
+
},
|
|
353
|
+
variant: "error",
|
|
354
|
+
isDisabled: p,
|
|
355
|
+
children: r("cancelCta")
|
|
356
|
+
}
|
|
357
|
+
)
|
|
358
|
+
] }) : /* @__PURE__ */ s(T, { children: [
|
|
359
|
+
/* @__PURE__ */ t(f, { onClick: u, variant: "secondary", isDisabled: p, children: r("editCta") }),
|
|
360
|
+
/* @__PURE__ */ t(f, { onClick: x, isDisabled: p, children: r("submitCta") })
|
|
361
|
+
] })
|
|
362
|
+
}
|
|
363
|
+
) })
|
|
364
|
+
]
|
|
365
|
+
}
|
|
366
|
+
),
|
|
367
|
+
p ? /* @__PURE__ */ t(Z, { children: /* @__PURE__ */ s(m, { flexDirection: "column", alignItems: "center", gap: 4, children: [
|
|
368
|
+
/* @__PURE__ */ t(q, { size: "lg" }),
|
|
369
|
+
/* @__PURE__ */ t(D, { as: "h4", children: r("loadingTitle") }),
|
|
371
370
|
/* @__PURE__ */ t(n, { children: r("loadingDescription") })
|
|
372
|
-
] }) }) : /* @__PURE__ */ s(
|
|
373
|
-
|
|
374
|
-
|
|
371
|
+
] }) }) : /* @__PURE__ */ s(T, { children: [
|
|
372
|
+
v.length > 0 && /* @__PURE__ */ t(m, { flexDirection: "column", gap: 16, children: v.map((e, a) => /* @__PURE__ */ t(
|
|
373
|
+
E,
|
|
374
|
+
{
|
|
375
|
+
label: e.title,
|
|
376
|
+
status: e.type,
|
|
377
|
+
children: e.content ?? null
|
|
378
|
+
},
|
|
379
|
+
`${e.type}-${e.title}`
|
|
380
|
+
)) }),
|
|
381
|
+
/* @__PURE__ */ t(D, { as: "h3", children: r("payrollSummaryTitle") }),
|
|
375
382
|
/* @__PURE__ */ t(
|
|
376
|
-
|
|
383
|
+
y,
|
|
377
384
|
{
|
|
378
385
|
label: r("payrollSummaryLabel"),
|
|
379
386
|
columns: [
|
|
380
387
|
{
|
|
381
388
|
title: r("tableHeaders.totalPayroll"),
|
|
382
|
-
render: () => /* @__PURE__ */ t(n, { children: o(
|
|
389
|
+
render: () => /* @__PURE__ */ t(n, { children: o(I) })
|
|
383
390
|
},
|
|
384
391
|
{
|
|
385
392
|
title: r("tableHeaders.debitAmount"),
|
|
386
|
-
render: () => /* @__PURE__ */ t(n, { children: o(Number(
|
|
393
|
+
render: () => /* @__PURE__ */ t(n, { children: o(Number(i.totals?.companyDebit ?? 0)) })
|
|
387
394
|
},
|
|
388
395
|
{
|
|
389
396
|
title: r("tableHeaders.debitAccount"),
|
|
390
|
-
render: () => /* @__PURE__ */ t(n, { children:
|
|
397
|
+
render: () => /* @__PURE__ */ t(n, { children: X?.hiddenAccountNumber ?? "" })
|
|
391
398
|
},
|
|
392
399
|
{
|
|
393
400
|
title: r("tableHeaders.debitDate"),
|
|
394
|
-
render: () => /* @__PURE__ */ t(n, { children:
|
|
395
|
-
month: "short",
|
|
396
|
-
day: "numeric",
|
|
397
|
-
year: "numeric"
|
|
398
|
-
}) })
|
|
401
|
+
render: () => /* @__PURE__ */ t(n, { children: b.formatShortWithYear(ee) })
|
|
399
402
|
},
|
|
400
403
|
{
|
|
401
404
|
title: r("tableHeaders.employeesPayDate"),
|
|
402
|
-
render: () => /* @__PURE__ */ t(n, { children:
|
|
403
|
-
month: "short",
|
|
404
|
-
day: "numeric",
|
|
405
|
-
year: "numeric"
|
|
406
|
-
}) })
|
|
405
|
+
render: () => /* @__PURE__ */ t(n, { children: b.formatShortWithYear(i.checkDate) })
|
|
407
406
|
}
|
|
408
407
|
],
|
|
409
408
|
data: [{}]
|
|
410
409
|
}
|
|
411
410
|
),
|
|
412
|
-
|
|
413
|
-
|
|
411
|
+
V > 0 && /* @__PURE__ */ t(
|
|
412
|
+
E,
|
|
414
413
|
{
|
|
415
414
|
status: "warning",
|
|
416
|
-
label: r("alerts.checkPaymentWarning", { count:
|
|
415
|
+
label: r("alerts.checkPaymentWarning", { count: V }),
|
|
417
416
|
children: /* @__PURE__ */ t(n, { children: r("alerts.checkPaymentWarningDescription") })
|
|
418
417
|
}
|
|
419
418
|
),
|
|
420
419
|
/* @__PURE__ */ t(
|
|
421
|
-
|
|
420
|
+
K,
|
|
422
421
|
{
|
|
423
|
-
onSelectionChange:
|
|
424
|
-
selectedId:
|
|
422
|
+
onSelectionChange: Q,
|
|
423
|
+
selectedId: J,
|
|
425
424
|
"aria-label": r("dataViews.label"),
|
|
426
|
-
tabs:
|
|
425
|
+
tabs: re
|
|
427
426
|
}
|
|
428
427
|
),
|
|
429
|
-
|
|
430
|
-
|
|
428
|
+
L && /* @__PURE__ */ t(
|
|
429
|
+
z,
|
|
431
430
|
{
|
|
432
|
-
isOpen:
|
|
431
|
+
isOpen: L,
|
|
433
432
|
onClose: () => {
|
|
434
|
-
|
|
433
|
+
O(!1);
|
|
435
434
|
},
|
|
436
|
-
onPrimaryActionClick:
|
|
435
|
+
onPrimaryActionClick: Y,
|
|
437
436
|
shouldCloseOnBackdropClick: !0,
|
|
438
437
|
primaryActionLabel: r("confirmCancelCta"),
|
|
439
438
|
isDestructive: !0,
|
|
440
439
|
closeActionLabel: r("declineCancelCta"),
|
|
441
440
|
title: r("cancelDialogTitle", {
|
|
442
|
-
startDate:
|
|
443
|
-
|
|
444
|
-
)?.toLocaleDateString(u, {
|
|
445
|
-
month: "long",
|
|
446
|
-
day: "numeric"
|
|
447
|
-
}),
|
|
448
|
-
endDate: y(
|
|
449
|
-
l.payPeriod?.endDate ?? ""
|
|
450
|
-
)?.toLocaleDateString(u, {
|
|
451
|
-
month: "long",
|
|
452
|
-
day: "numeric",
|
|
453
|
-
year: "numeric"
|
|
454
|
-
})
|
|
441
|
+
startDate: b.formatLong(i.payPeriod?.startDate),
|
|
442
|
+
endDate: b.formatLongWithYear(i.payPeriod?.endDate)
|
|
455
443
|
}),
|
|
456
|
-
children: /* @__PURE__ */ s(
|
|
444
|
+
children: /* @__PURE__ */ s(m, { gap: 14, flexDirection: "column", children: [
|
|
457
445
|
/* @__PURE__ */ t(n, { children: r("cancelDialogDescription") }),
|
|
458
446
|
/* @__PURE__ */ t(n, { children: r("cancelDialogDescriptionDeadline", {
|
|
459
|
-
deadline: (
|
|
460
|
-
month: "short",
|
|
461
|
-
day: "numeric",
|
|
462
|
-
year: "numeric",
|
|
463
|
-
hour: "numeric",
|
|
464
|
-
minute: "numeric",
|
|
465
|
-
timeZoneName: "short"
|
|
466
|
-
})
|
|
447
|
+
deadline: b.formatWithTime(i.payrollDeadline).time
|
|
467
448
|
}) })
|
|
468
449
|
] })
|
|
469
450
|
}
|
|
470
451
|
)
|
|
471
452
|
] })
|
|
472
|
-
] });
|
|
453
|
+
] }) });
|
|
473
454
|
};
|
|
474
455
|
export {
|
|
475
|
-
|
|
456
|
+
Se as PayrollOverviewPresentation
|
|
476
457
|
};
|
|
477
458
|
//# sourceMappingURL=PayrollOverviewPresentation.js.map
|