@gusto/embedded-react-sdk 0.13.2 → 0.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/assets/icons/close.svg.js +5 -5
- package/dist/assets/icons/close.svg.js.map +1 -1
- package/dist/assets/icons/download-cloud.svg.js +10 -0
- package/dist/assets/icons/download-cloud.svg.js.map +1 -0
- package/dist/components/Base/Base.js +3 -2
- package/dist/components/Base/Base.js.map +1 -1
- package/dist/components/Common/DataView/DataCards/DataCards.js +24 -24
- package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
- package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js +6 -4
- package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js.map +1 -1
- package/dist/components/Common/DataView/DataTable/DataTable.d.ts +3 -1
- package/dist/components/Common/DataView/DataTable/DataTable.js +16 -14
- package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
- package/dist/components/Common/DataView/DataView.d.ts +6 -3
- package/dist/components/Common/DataView/DataView.js +19 -16
- package/dist/components/Common/DataView/DataView.js.map +1 -1
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.d.ts +1 -1
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.js +15 -9
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.js.map +1 -1
- package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.d.ts +2 -2
- package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js +21 -15
- package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js.map +1 -1
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.d.ts +2 -2
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js +19 -13
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js.map +1 -1
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.d.ts +1 -1
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.js +24 -18
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.js.map +1 -1
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.d.ts +1 -1
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.js +18 -12
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.js.map +1 -1
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.d.ts +2 -2
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js +19 -13
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js.map +1 -1
- package/dist/components/Common/Fields/SelectField/SelectField.d.ts +2 -2
- package/dist/components/Common/Fields/SelectField/SelectField.js +19 -13
- package/dist/components/Common/Fields/SelectField/SelectField.js.map +1 -1
- package/dist/components/Common/Fields/SwitchField/SwitchField.d.ts +1 -1
- package/dist/components/Common/Fields/SwitchField/SwitchField.js +15 -9
- package/dist/components/Common/Fields/SwitchField/SwitchField.js.map +1 -1
- package/dist/components/Common/Fields/TextInputField/TextInputField.d.ts +1 -1
- package/dist/components/Common/Fields/TextInputField/TextInputField.js +15 -9
- package/dist/components/Common/Fields/TextInputField/TextInputField.js.map +1 -1
- package/dist/components/Common/Fields/hooks/useField.d.ts +8 -7
- package/dist/components/Common/Fields/hooks/useField.js +33 -27
- package/dist/components/Common/Fields/hooks/useField.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureForm.js +6 -4
- package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormActions.js +12 -10
- package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormFields.js +8 -6
- package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
- package/dist/components/Common/UI/Alert/Alert.js +15 -15
- package/dist/components/Common/UI/Alert/Alert.js.map +1 -1
- package/dist/components/Common/UI/Alert/Alert.module.scss.js +14 -12
- package/dist/components/Common/UI/Alert/Alert.module.scss.js.map +1 -1
- package/dist/components/Common/UI/Card/Card.module.scss.js +1 -1
- package/dist/components/Common/UI/Checkbox/CheckboxTypes.d.ts +5 -1
- package/dist/components/Common/UI/Checkbox/CheckboxTypes.js.map +1 -1
- package/dist/components/Common/UI/ComboBox/ComboBoxTypes.d.ts +2 -2
- package/dist/components/Common/UI/DatePicker/DatePickerTypes.d.ts +2 -2
- package/dist/components/Common/UI/Dialog/Dialog.d.ts +2 -0
- package/dist/components/Common/UI/Dialog/Dialog.js +84 -0
- package/dist/components/Common/UI/Dialog/Dialog.js.map +1 -0
- package/dist/components/Common/UI/Dialog/Dialog.module.scss.js +18 -0
- package/dist/components/Common/UI/Dialog/Dialog.module.scss.js.map +1 -0
- package/dist/components/Common/UI/Dialog/DialogTypes.d.ts +52 -0
- package/dist/components/Common/UI/Dialog/DialogTypes.js +10 -0
- package/dist/components/Common/UI/Dialog/DialogTypes.js.map +1 -0
- package/dist/components/Common/UI/Dialog/index.d.ts +4 -0
- package/dist/components/Common/UI/Menu/Menu.module.scss.js +1 -1
- package/dist/components/Common/UI/NumberInput/NumberInputTypes.d.ts +2 -2
- package/dist/components/Common/UI/Select/SelectTypes.d.ts +2 -2
- package/dist/components/Common/UI/Switch/SwitchTypes.d.ts +2 -2
- package/dist/components/Common/UI/Switch/SwitchTypes.js.map +1 -1
- package/dist/components/Common/UI/Table/Table.d.ts +1 -1
- package/dist/components/Common/UI/Table/Table.js +14 -11
- package/dist/components/Common/UI/Table/Table.js.map +1 -1
- package/dist/components/Common/UI/Table/Table.module.scss.js +1 -1
- package/dist/components/Common/UI/Table/TableTypes.d.ts +10 -0
- package/dist/components/Common/UI/Table/TableTypes.js +7 -0
- package/dist/components/Common/UI/Table/TableTypes.js.map +1 -0
- package/dist/components/Common/UI/Text/Text.js +9 -8
- package/dist/components/Common/UI/Text/Text.js.map +1 -1
- package/dist/components/Common/UI/TextInput/TextInput.js +35 -33
- package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
- package/dist/components/Common/UI/TextInput/TextInputTypes.d.ts +5 -1
- package/dist/components/Common/UI/TextInput/TextInputTypes.js.map +1 -1
- package/dist/components/Common/UI/hooks/useFieldIds.d.ts +2 -1
- package/dist/components/Common/UI/hooks/useFieldIds.js +11 -6
- package/dist/components/Common/UI/hooks/useFieldIds.js.map +1 -1
- package/dist/components/Company/AssignSignatory/AssignSignatory.js +8 -6
- package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +7 -6
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +9 -8
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +3 -2
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +3 -2
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +5 -3
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +7 -6
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +6 -5
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +10 -9
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +5 -3
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/TitleSelect.js +8 -7
- package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +7 -5
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +3 -2
- package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js +8 -7
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +5 -3
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js +7 -6
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +8 -7
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +5 -4
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
- package/dist/components/Company/BankAccount/stateMachine.d.ts +4 -4
- package/dist/components/Company/BankAccount/stateMachine.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +6 -5
- package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +12 -10
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +5 -3
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +8 -6
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +5 -3
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Company/DocumentSigner/assignSignatoryState.d.ts +1 -1
- package/dist/components/Company/DocumentSigner/assignSignatoryState.js.map +1 -1
- package/dist/components/Company/DocumentSigner/stateMachine.d.ts +5 -5
- package/dist/components/Company/DocumentSigner/stateMachine.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Actions.js +7 -6
- package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
- package/dist/components/Company/FederalTaxes/FederalTaxes.js +17 -15
- package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Form.js +3 -2
- package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +10 -8
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Actions.js +6 -5
- package/dist/components/Company/Industry/Actions.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +8 -6
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Industry/Edit.js +11 -10
- package/dist/components/Company/Industry/Edit.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Actions.js +3 -2
- package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Form.js +5 -4
- package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/LocationForm.js +11 -9
- package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +5 -3
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/Actions.js +3 -2
- package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/List.js +3 -2
- package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/LocationsList.js +14 -12
- package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +5 -3
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/Locations/stateMachine.d.ts +3 -3
- package/dist/components/Company/Locations/stateMachine.js.map +1 -1
- package/dist/components/Company/OnboardingFlow/onboardingStateMachine.d.ts +10 -10
- package/dist/components/Company/OnboardingFlow/onboardingStateMachine.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/Completed.js +6 -5
- package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js +3 -2
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +4 -2
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +5 -3
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +34 -32
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Actions.js +11 -10
- package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Edit.js +3 -2
- package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Head.js +3 -2
- package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/List.js +6 -5
- package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
- package/dist/components/Company/PaySchedule/usePaySchedule.js +7 -5
- package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +6 -5
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +5 -3
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +7 -6
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js +6 -5
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +5 -3
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/stateTaxesStateMachine.d.ts +3 -3
- package/dist/components/Company/StateTaxes/stateTaxesStateMachine.js.map +1 -1
- package/dist/components/Contractor/Address/Address.js +5 -3
- package/dist/components/Contractor/Address/Address.js.map +1 -1
- package/dist/components/Contractor/Address/Form.js +3 -2
- package/dist/components/Contractor/Address/Form.js.map +1 -1
- package/dist/components/Contractor/Address/useAddress.js +7 -5
- package/dist/components/Contractor/Address/useAddress.js.map +1 -1
- package/dist/components/Contractor/ContractorList/index.js +9 -8
- package/dist/components/Contractor/ContractorList/index.js.map +1 -1
- package/dist/components/Contractor/NewHireReport/NewHireReport.js +14 -13
- package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
- package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.d.ts +7 -7
- package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +3 -2
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +3 -2
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +3 -2
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
- package/dist/components/Contractor/Profile/ContractorProfileForm.d.ts +1 -1
- package/dist/components/Contractor/Profile/ContractorProfileForm.js +59 -56
- package/dist/components/Contractor/Profile/ContractorProfileForm.js.map +1 -1
- package/dist/components/Contractor/Profile/ContractorProfileForm.module.scss.js +8 -0
- package/dist/components/Contractor/Profile/ContractorProfileForm.module.scss.js.map +1 -0
- package/dist/components/Contractor/Profile/useContractorProfile.d.ts +2 -0
- package/dist/components/Contractor/Profile/useContractorProfile.js +97 -94
- package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
- package/dist/components/Contractor/Submit/Submit.js +3 -2
- package/dist/components/Contractor/Submit/Submit.js.map +1 -1
- package/dist/components/Employee/Compensation/Actions.js +5 -4
- package/dist/components/Employee/Compensation/Actions.js.map +1 -1
- package/dist/components/Employee/Compensation/Edit.js +3 -2
- package/dist/components/Employee/Compensation/Edit.js.map +1 -1
- package/dist/components/Employee/Compensation/List.js +6 -5
- package/dist/components/Employee/Compensation/List.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +3 -2
- package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +7 -6
- package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
- package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js +3 -2
- package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js.map +1 -1
- package/dist/components/Employee/Deductions/stateMachine.d.ts +5 -5
- package/dist/components/Employee/Deductions/stateMachine.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +5 -4
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +11 -9
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js +3 -2
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +5 -3
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +13 -11
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +5 -3
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/stateMachine.d.ts +3 -3
- package/dist/components/Employee/DocumentSigner/stateMachine.js.map +1 -1
- package/dist/components/Employee/EmployeeList/Actions.js +5 -4
- package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
- package/dist/components/Employee/EmployeeList/Head.js +3 -2
- package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
- package/dist/components/Employee/EmployeeList/List.js +3 -2
- package/dist/components/Employee/EmployeeList/List.js.map +1 -1
- package/dist/components/Employee/EmployeeList/useEmployeeList.js +5 -3
- package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/Actions.js +3 -2
- package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/FederalForm.js +5 -4
- package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +5 -3
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Employee/Landing/Landing.js +7 -6
- package/dist/components/Employee/Landing/Landing.js.map +1 -1
- package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.d.ts +9 -9
- package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/Actions.js +6 -5
- package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -4
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js +3 -2
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +3 -2
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/Split.js +3 -2
- package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +7 -5
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
- package/dist/components/Employee/Profile/Actions.js +7 -6
- package/dist/components/Employee/Profile/Actions.js.map +1 -1
- package/dist/components/Employee/Profile/AdminPersonalDetails.js +32 -29
- package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
- package/dist/components/Employee/Profile/AdminPersonalDetails.module.scss.js +8 -0
- package/dist/components/Employee/Profile/AdminPersonalDetails.module.scss.js.map +1 -0
- package/dist/components/Employee/Profile/HomeAddress.js +5 -4
- package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js +21 -20
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
- package/dist/components/Employee/Profile/Profile.js +66 -63
- package/dist/components/Employee/Profile/Profile.js.map +1 -1
- package/dist/components/Employee/Profile/useProfile.js +5 -3
- package/dist/components/Employee/Profile/useProfile.js.map +1 -1
- package/dist/components/Employee/SelfOnboardingFlow/selfOnboardingMachine.d.ts +5 -5
- package/dist/components/Employee/SelfOnboardingFlow/selfOnboardingMachine.js.map +1 -1
- package/dist/components/Employee/StateTaxes/Actions.js +7 -6
- package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
- package/dist/components/Employee/StateTaxes/useStateTaxes.js +5 -3
- package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
- package/dist/components/Employee/Taxes/Actions.js +8 -7
- package/dist/components/Employee/Taxes/Actions.js.map +1 -1
- package/dist/components/Employee/Taxes/FederalForm.js +5 -4
- package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
- package/dist/components/Employee/Taxes/useTaxes.js +5 -3
- package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +37 -36
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +41 -45
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +20 -2
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +309 -101
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js +16 -0
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js.map +1 -0
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.d.ts +7 -0
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +58 -0
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -0
- package/dist/components/Payroll/PayrollEditEmployee/index.d.ts +4 -0
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.d.ts +19 -0
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +114 -0
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -0
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +8 -11
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +193 -0
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -0
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.module.scss.js +8 -0
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.module.scss.js.map +1 -0
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.d.ts +7 -0
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.js +41 -0
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -0
- package/dist/components/Payroll/PayrollList/PayrollList.js +19 -21
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +87 -80
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +94 -42
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +10 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +275 -135
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.d.ts +6 -0
- package/dist/components/Payroll/RunPayrollFlow/RunPayroll.d.ts +2 -2
- package/dist/components/Payroll/RunPayrollFlow/RunPayroll.js +36 -30
- package/dist/components/Payroll/RunPayrollFlow/RunPayroll.js.map +1 -1
- package/dist/components/Payroll/RunPayrollFlow/RunPayrollFlow.js +11 -11
- package/dist/components/Payroll/RunPayrollFlow/RunPayrollFlow.js.map +1 -1
- package/dist/components/Payroll/helpers.d.ts +21 -1
- package/dist/components/Payroll/helpers.js +166 -123
- package/dist/components/Payroll/helpers.js.map +1 -1
- package/dist/components/Payroll/index.d.ts +2 -0
- package/dist/components/Payroll/index.js +10 -6
- package/dist/components/Payroll/index.js.map +1 -1
- package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +21 -19
- 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 +10 -0
- package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js +35 -31
- package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js.map +1 -1
- package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
- package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +7 -5
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
- package/dist/contexts/ThemeProvider/theme.d.ts +2 -0
- package/dist/contexts/ThemeProvider/theme.js +10 -8
- package/dist/contexts/ThemeProvider/theme.js.map +1 -1
- package/dist/helpers/formattedStrings.js +12 -11
- package/dist/helpers/formattedStrings.js.map +1 -1
- package/dist/helpers/readableStreamToBlob.d.ts +1 -0
- package/dist/helpers/readableStreamToBlob.js +17 -0
- package/dist/helpers/readableStreamToBlob.js.map +1 -0
- package/dist/hooks/useContainerBreakpoints/useContainerBreakpoints.d.ts +2 -4
- package/dist/hooks/useContainerBreakpoints/useContainerBreakpoints.js.map +1 -1
- package/dist/i18n/I18n.js +9 -9
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Employee.Profile.json.js +32 -30
- package/dist/i18n/en/Employee.Profile.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +34 -14
- package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollHistory.json.js +22 -0
- package/dist/i18n/en/Payroll.PayrollHistory.json.js.map +1 -0
- package/dist/i18n/en/Payroll.PayrollLanding.json.js +12 -0
- package/dist/i18n/en/Payroll.PayrollLanding.json.js.map +1 -0
- package/dist/i18n/en/Payroll.PayrollList.json.js +16 -12
- package/dist/i18n/en/Payroll.PayrollList.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollOverview.json.js +50 -22
- package/dist/i18n/en/Payroll.PayrollOverview.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollReceipts.json.js +16 -0
- package/dist/i18n/en/Payroll.PayrollReceipts.json.js.map +1 -0
- package/dist/node_modules/redux/es/redux.js +2 -2
- package/dist/node_modules/redux/es/redux.js.map +1 -1
- package/dist/shared/constants.d.ts +29 -0
- package/dist/shared/constants.js +62 -38
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/Helpers.d.ts +7 -0
- package/dist/types/i18next.d.ts +148 -43
- package/package.json +13 -13
- package/dist/i18n/en/Payroll.PayrollHistoryList.json.js +0 -16
- package/dist/i18n/en/Payroll.PayrollHistoryList.json.js.map +0 -1
- package/dist/i18n/en/payroll.payrollhistory.json.js +0 -20
- package/dist/i18n/en/payroll.payrollhistory.json.js.map +0 -1
|
@@ -1,100 +1,123 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { Flex as
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { jsx as r, jsxs as d, Fragment as A } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as K } from "react-i18next";
|
|
3
|
+
import { useState as _ } from "react";
|
|
4
|
+
import { Flex as y } from "../../Common/Flex/Flex.js";
|
|
5
|
+
import "classnames";
|
|
6
|
+
import { useComponentContext as Q } from "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
7
|
+
import { useI18n as $ } from "../../../i18n/I18n.js";
|
|
8
|
+
import { useLocale as ee } from "../../../contexts/LocaleProvider/useLocale.js";
|
|
9
|
+
import { parseDateStringToLocal as b } from "../../../helpers/dateFormatting.js";
|
|
10
|
+
import te from "../../Common/hooks/useNumberFormatter.js";
|
|
11
|
+
import { firstLastName as S } from "../../../helpers/formattedStrings.js";
|
|
12
|
+
import { FlsaStatus as B, compensationTypeLabels as D } from "../../../shared/constants.js";
|
|
13
|
+
import re from "../../../assets/icons/download-cloud.svg.js";
|
|
14
|
+
import { DataView as u } from "../../Common/DataView/DataView.js";
|
|
15
|
+
const ae = ({
|
|
16
|
+
payPeriod: c,
|
|
17
|
+
locale: h,
|
|
18
|
+
t: f
|
|
17
19
|
}) => {
|
|
18
|
-
if (
|
|
19
|
-
const
|
|
20
|
-
if (
|
|
21
|
-
const
|
|
20
|
+
if (c?.startDate && c.endDate) {
|
|
21
|
+
const g = b(c.startDate), T = b(c.endDate);
|
|
22
|
+
if (g && T) {
|
|
23
|
+
const x = g.toLocaleDateString(h, {
|
|
22
24
|
month: "long",
|
|
23
25
|
day: "numeric"
|
|
24
|
-
}),
|
|
26
|
+
}), n = T.toLocaleDateString(h, {
|
|
25
27
|
month: "short",
|
|
26
28
|
day: "numeric",
|
|
27
29
|
year: "numeric"
|
|
28
30
|
});
|
|
29
|
-
return
|
|
31
|
+
return f("pageSubtitle", { startDate: x, endDate: n });
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
|
-
return
|
|
33
|
-
},
|
|
34
|
-
onEdit:
|
|
35
|
-
onSubmit:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
return f("pageSubtitle", { startDate: "", endDate: "" });
|
|
35
|
+
}, ge = ({
|
|
36
|
+
onEdit: c,
|
|
37
|
+
onSubmit: h,
|
|
38
|
+
onCancel: f,
|
|
39
|
+
onPayrollReceipt: g,
|
|
40
|
+
onPaystubDownload: T,
|
|
41
|
+
employeeDetails: x,
|
|
42
|
+
payrollData: n,
|
|
43
|
+
bankAccount: R,
|
|
44
|
+
taxes: L,
|
|
45
|
+
isSubmitting: E = !1,
|
|
46
|
+
isProcessed: P
|
|
39
47
|
}) => {
|
|
40
|
-
const { Alert:
|
|
41
|
-
|
|
42
|
-
const { locale:
|
|
43
|
-
(
|
|
48
|
+
const { Alert: I, Button: H, ButtonIcon: Y, Dialog: j, Heading: k, Text: a, Tabs: W } = Q();
|
|
49
|
+
$("Payroll.PayrollOverview");
|
|
50
|
+
const { locale: m } = ee(), { t } = K("Payroll.PayrollOverview"), o = te("currency"), [G, X] = _("companyPays"), [O, F] = _(!1), Z = n.totals ? parseFloat(n.totals.grossPay ?? "0") + parseFloat(n.totals.employerTaxes ?? "0") + parseFloat(n.totals.reimbursements ?? "0") + parseFloat(n.totals.benefits ?? "0") : 0, q = n.payrollStatusMeta?.expectedDebitTime ? b(n.payrollStatusMeta.expectedDebitTime) : n.payrollDeadline, N = (e) => e.taxes?.reduce(
|
|
51
|
+
(l, i) => i.employer ? l + i.amount : l,
|
|
44
52
|
0
|
|
45
|
-
) ?? 0,
|
|
46
|
-
(
|
|
53
|
+
) ?? 0, M = (e) => e.benefits?.reduce(
|
|
54
|
+
(l, i) => i.companyContribution ? l + i.companyContribution : l,
|
|
47
55
|
0
|
|
48
|
-
) ?? 0,
|
|
56
|
+
) ?? 0, v = (e) => e.fixedCompensations?.length ? parseFloat(
|
|
49
57
|
e.fixedCompensations.find(
|
|
50
|
-
(
|
|
58
|
+
(l) => l.name?.toLowerCase() === D.REIMBURSEMENT_NAME.toLowerCase()
|
|
51
59
|
)?.amount || "0"
|
|
52
|
-
) : 0,
|
|
53
|
-
(
|
|
54
|
-
if (typeof
|
|
55
|
-
return
|
|
56
|
-
const
|
|
57
|
-
return
|
|
60
|
+
) : 0, z = (e) => e.grossPay + v(e) + N(e) + M(e), s = new Map(x.map((e) => [e.uuid, e])), C = (e) => e.hourlyCompensations?.reduce(
|
|
61
|
+
(l, i) => {
|
|
62
|
+
if (typeof i.name > "u")
|
|
63
|
+
return l;
|
|
64
|
+
const p = i.name.toLowerCase(), w = l[p] ?? 0;
|
|
65
|
+
return l[p] = w + parseFloat(i.hours || "0"), l;
|
|
58
66
|
},
|
|
59
67
|
{}
|
|
60
|
-
) || {},
|
|
68
|
+
) || {}, U = (e) => e.paidTimeOff?.reduce((l, i) => l + parseFloat(i.hours || "0"), 0) ?? 0, V = [
|
|
69
|
+
{
|
|
70
|
+
title: t("tableHeaders.employees"),
|
|
71
|
+
render: (e) => /* @__PURE__ */ r(a, { children: S({
|
|
72
|
+
first_name: s.get(e.employeeUuid)?.firstName,
|
|
73
|
+
last_name: s.get(e.employeeUuid)?.lastName
|
|
74
|
+
}) })
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
title: t("tableHeaders.grossPay"),
|
|
78
|
+
render: (e) => /* @__PURE__ */ r(a, { children: o(e.grossPay) })
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
title: t("tableHeaders.reimbursements"),
|
|
82
|
+
render: (e) => /* @__PURE__ */ r(a, { children: o(v(e)) })
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
title: t("tableHeaders.companyTaxes"),
|
|
86
|
+
render: (e) => /* @__PURE__ */ r(a, { children: o(N(e)) })
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
title: t("tableHeaders.companyBenefits"),
|
|
90
|
+
render: (e) => /* @__PURE__ */ r(a, { children: o(M(e)) })
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
title: t("tableHeaders.companyPays"),
|
|
94
|
+
render: (e) => /* @__PURE__ */ r(a, { children: o(z(e)) })
|
|
95
|
+
}
|
|
96
|
+
];
|
|
97
|
+
P && V.push({
|
|
98
|
+
title: t("tableHeaders.paystub"),
|
|
99
|
+
render: (e) => /* @__PURE__ */ r(
|
|
100
|
+
Y,
|
|
101
|
+
{
|
|
102
|
+
"aria-label": t("downloadPaystubLabel"),
|
|
103
|
+
variant: "tertiary",
|
|
104
|
+
onClick: () => {
|
|
105
|
+
e.employeeUuid && T(e.employeeUuid);
|
|
106
|
+
},
|
|
107
|
+
children: /* @__PURE__ */ r(re, {})
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
});
|
|
111
|
+
const J = [
|
|
61
112
|
{
|
|
62
113
|
id: "companyPays",
|
|
63
114
|
label: t("dataViews.companyPaysTab"),
|
|
64
115
|
content: /* @__PURE__ */ r(
|
|
65
|
-
|
|
116
|
+
u,
|
|
66
117
|
{
|
|
67
|
-
label: t("dataViews.
|
|
68
|
-
columns:
|
|
69
|
-
|
|
70
|
-
title: t("tableHeaders.employees"),
|
|
71
|
-
render: (e) => /* @__PURE__ */ r(a, { children: w({
|
|
72
|
-
first_name: i.get(e.employeeUuid)?.firstName,
|
|
73
|
-
last_name: i.get(e.employeeUuid)?.lastName
|
|
74
|
-
}) })
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
title: t("tableHeaders.grossPay"),
|
|
78
|
-
render: (e) => /* @__PURE__ */ r(a, { children: l(e.grossPay) })
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
title: t("tableHeaders.reimbursements"),
|
|
82
|
-
render: (e) => /* @__PURE__ */ r(a, { children: l(S(e)) })
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
title: t("tableHeaders.companyTaxes"),
|
|
86
|
-
render: (e) => /* @__PURE__ */ r(a, { children: l(L(e)) })
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
title: t("tableHeaders.companyBenefits"),
|
|
90
|
-
render: (e) => /* @__PURE__ */ r(a, { children: l(N(e)) })
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
title: t("tableHeaders.companyPays"),
|
|
94
|
-
render: (e) => /* @__PURE__ */ r(a, { children: l(V(e)) })
|
|
95
|
-
}
|
|
96
|
-
],
|
|
97
|
-
data: o.employeeCompensations
|
|
118
|
+
label: t("dataViews.companyPaysTable"),
|
|
119
|
+
columns: V,
|
|
120
|
+
data: n.employeeCompensations
|
|
98
121
|
}
|
|
99
122
|
)
|
|
100
123
|
},
|
|
@@ -102,61 +125,61 @@ const X = ({
|
|
|
102
125
|
id: "hoursWorked",
|
|
103
126
|
label: t("dataViews.hoursWorkedTab"),
|
|
104
127
|
content: /* @__PURE__ */ r(
|
|
105
|
-
|
|
128
|
+
u,
|
|
106
129
|
{
|
|
107
|
-
label: t("dataViews.
|
|
130
|
+
label: t("dataViews.hoursWorkedTable"),
|
|
108
131
|
columns: [
|
|
109
132
|
{
|
|
110
133
|
title: t("tableHeaders.employees"),
|
|
111
|
-
render: (e) => /* @__PURE__ */ r(a, { children:
|
|
112
|
-
first_name:
|
|
113
|
-
last_name:
|
|
134
|
+
render: (e) => /* @__PURE__ */ r(a, { children: S({
|
|
135
|
+
first_name: s.get(e.employeeUuid)?.firstName,
|
|
136
|
+
last_name: s.get(e.employeeUuid)?.lastName
|
|
114
137
|
}) })
|
|
115
138
|
},
|
|
116
139
|
{
|
|
117
140
|
title: t("tableHeaders.compensationType"),
|
|
118
|
-
render: (e) => /* @__PURE__ */ r(a, { children:
|
|
119
|
-
if (
|
|
120
|
-
const
|
|
121
|
-
(
|
|
141
|
+
render: (e) => /* @__PURE__ */ r(a, { children: s.get(e.employeeUuid)?.jobs?.reduce((l, i) => {
|
|
142
|
+
if (i.primary) {
|
|
143
|
+
const p = i.compensations?.find(
|
|
144
|
+
(w) => w.uuid === i.currentCompensationUuid
|
|
122
145
|
)?.flsaStatus;
|
|
123
|
-
switch (
|
|
124
|
-
case
|
|
146
|
+
switch (p) {
|
|
147
|
+
case B.EXEMPT:
|
|
125
148
|
return t("compensationTypeLabels.exempt");
|
|
126
|
-
case
|
|
149
|
+
case B.NONEXEMPT:
|
|
127
150
|
return t("compensationTypeLabels.nonexempt");
|
|
128
151
|
default:
|
|
129
|
-
return
|
|
152
|
+
return p ?? "";
|
|
130
153
|
}
|
|
131
154
|
}
|
|
132
|
-
return
|
|
155
|
+
return l;
|
|
133
156
|
}, "") })
|
|
134
157
|
},
|
|
135
158
|
{
|
|
136
159
|
title: t("tableHeaders.regular"),
|
|
137
|
-
render: (e) => /* @__PURE__ */ r(a, { children:
|
|
160
|
+
render: (e) => /* @__PURE__ */ r(a, { children: C(e)[D.REGULAR_HOURS_NAME] || 0 })
|
|
138
161
|
},
|
|
139
162
|
{
|
|
140
163
|
title: t("tableHeaders.overtime"),
|
|
141
|
-
render: (e) => /* @__PURE__ */ r(a, { children:
|
|
164
|
+
render: (e) => /* @__PURE__ */ r(a, { children: C(e)[D.OVERTIME_NAME] || 0 })
|
|
142
165
|
},
|
|
143
166
|
{
|
|
144
167
|
title: t("tableHeaders.doubleOT"),
|
|
145
|
-
render: (e) => /* @__PURE__ */ r(a, { children:
|
|
168
|
+
render: (e) => /* @__PURE__ */ r(a, { children: C(e)[D.DOUBLE_OVERTIME_NAME] || 0 })
|
|
146
169
|
},
|
|
147
170
|
{
|
|
148
171
|
title: t("tableHeaders.timeOff"),
|
|
149
|
-
render: (e) => /* @__PURE__ */ r(a, { children:
|
|
172
|
+
render: (e) => /* @__PURE__ */ r(a, { children: U(e) })
|
|
150
173
|
},
|
|
151
174
|
{
|
|
152
175
|
title: t("tableHeaders.totalHours"),
|
|
153
|
-
render: (e) => /* @__PURE__ */ r(a, { children: Object.values(
|
|
154
|
-
(
|
|
176
|
+
render: (e) => /* @__PURE__ */ r(a, { children: Object.values(C(e)).reduce(
|
|
177
|
+
(l, i) => l + i,
|
|
155
178
|
0
|
|
156
|
-
) +
|
|
179
|
+
) + U(e) })
|
|
157
180
|
}
|
|
158
181
|
],
|
|
159
|
-
data:
|
|
182
|
+
data: n.employeeCompensations
|
|
160
183
|
}
|
|
161
184
|
)
|
|
162
185
|
},
|
|
@@ -164,15 +187,15 @@ const X = ({
|
|
|
164
187
|
id: "employeeTakeHome",
|
|
165
188
|
label: t("dataViews.employeeTakeHomeTab"),
|
|
166
189
|
content: /* @__PURE__ */ r(
|
|
167
|
-
|
|
190
|
+
u,
|
|
168
191
|
{
|
|
169
|
-
label: t("dataViews.
|
|
192
|
+
label: t("dataViews.employeeTakeHomeTable"),
|
|
170
193
|
columns: [
|
|
171
194
|
{
|
|
172
195
|
title: t("tableHeaders.employees"),
|
|
173
|
-
render: (e) => /* @__PURE__ */ r(a, { children:
|
|
174
|
-
first_name:
|
|
175
|
-
last_name:
|
|
196
|
+
render: (e) => /* @__PURE__ */ r(a, { children: S({
|
|
197
|
+
first_name: s.get(e.employeeUuid)?.firstName,
|
|
198
|
+
last_name: s.get(e.employeeUuid)?.lastName
|
|
176
199
|
}) })
|
|
177
200
|
},
|
|
178
201
|
{
|
|
@@ -181,82 +204,157 @@ const X = ({
|
|
|
181
204
|
},
|
|
182
205
|
{
|
|
183
206
|
title: t("tableHeaders.grossPay"),
|
|
184
|
-
render: (e) => /* @__PURE__ */ r(a, { children:
|
|
207
|
+
render: (e) => /* @__PURE__ */ r(a, { children: o(e.grossPay ?? 0) })
|
|
185
208
|
},
|
|
186
209
|
{
|
|
187
210
|
title: t("tableHeaders.deductions"),
|
|
188
|
-
render: (e) => /* @__PURE__ */ r(a, { children:
|
|
211
|
+
render: (e) => /* @__PURE__ */ r(a, { children: o(
|
|
189
212
|
e.deductions?.reduce(
|
|
190
|
-
(
|
|
213
|
+
(l, i) => l + i.amount,
|
|
191
214
|
0
|
|
192
215
|
) ?? 0
|
|
193
216
|
) })
|
|
194
217
|
},
|
|
195
218
|
{
|
|
196
219
|
title: t("tableHeaders.reimbursements"),
|
|
197
|
-
render: (e) => /* @__PURE__ */ r(a, { children:
|
|
220
|
+
render: (e) => /* @__PURE__ */ r(a, { children: o(v(e)) })
|
|
198
221
|
},
|
|
199
222
|
{
|
|
200
223
|
title: t("tableHeaders.employeeTaxes"),
|
|
201
|
-
render: (e) => /* @__PURE__ */ r(a, { children:
|
|
224
|
+
render: (e) => /* @__PURE__ */ r(a, { children: o(
|
|
202
225
|
e.taxes?.reduce(
|
|
203
|
-
(
|
|
226
|
+
(l, i) => i.employer ? l : l + i.amount,
|
|
204
227
|
0
|
|
205
228
|
) ?? 0
|
|
206
229
|
) })
|
|
207
230
|
},
|
|
208
231
|
{
|
|
209
232
|
title: t("tableHeaders.employeeBenefits"),
|
|
210
|
-
render: (e) => /* @__PURE__ */ r(a, { children:
|
|
233
|
+
render: (e) => /* @__PURE__ */ r(a, { children: o(
|
|
211
234
|
e.benefits?.reduce(
|
|
212
|
-
(
|
|
235
|
+
(l, i) => l + (i.employeeDeduction ?? 0),
|
|
213
236
|
0
|
|
214
237
|
) ?? 0
|
|
215
238
|
) })
|
|
216
239
|
},
|
|
217
240
|
{
|
|
218
241
|
title: t("tableHeaders.payment"),
|
|
219
|
-
render: (e) => /* @__PURE__ */ r(a, { children:
|
|
242
|
+
render: (e) => /* @__PURE__ */ r(a, { children: o(e.netPay ?? 0) })
|
|
220
243
|
}
|
|
221
244
|
],
|
|
222
|
-
data:
|
|
245
|
+
data: n.employeeCompensations
|
|
223
246
|
}
|
|
224
247
|
)
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
id: "taxes",
|
|
251
|
+
label: t("dataViews.taxesTab"),
|
|
252
|
+
content: /* @__PURE__ */ d(y, { flexDirection: "column", gap: 32, children: [
|
|
253
|
+
/* @__PURE__ */ r(
|
|
254
|
+
u,
|
|
255
|
+
{
|
|
256
|
+
label: t("dataViews.taxesTable"),
|
|
257
|
+
columns: [
|
|
258
|
+
{
|
|
259
|
+
key: "taxDescription",
|
|
260
|
+
title: t("tableHeaders.taxDescription"),
|
|
261
|
+
render: (e) => /* @__PURE__ */ r(a, { children: e })
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
key: "byYourEmployees",
|
|
265
|
+
title: t("tableHeaders.byYourEmployees"),
|
|
266
|
+
render: (e) => /* @__PURE__ */ r(a, { children: o(L[e]?.employee ?? 0) })
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
key: "byYourCompany",
|
|
270
|
+
title: t("tableHeaders.byYourCompany"),
|
|
271
|
+
render: (e) => /* @__PURE__ */ r(a, { children: o(L[e]?.employer ?? 0) })
|
|
272
|
+
}
|
|
273
|
+
],
|
|
274
|
+
footer: () => ({
|
|
275
|
+
taxDescription: /* @__PURE__ */ r(a, { children: t("totalsLabel") }),
|
|
276
|
+
byYourEmployees: /* @__PURE__ */ r(a, { children: o(parseFloat(n.totals?.employeeTaxes ?? "0")) }),
|
|
277
|
+
byYourCompany: /* @__PURE__ */ r(a, { children: o(parseFloat(n.totals?.employerTaxes ?? "0")) })
|
|
278
|
+
}),
|
|
279
|
+
data: Object.keys(L)
|
|
280
|
+
}
|
|
281
|
+
),
|
|
282
|
+
/* @__PURE__ */ r(
|
|
283
|
+
u,
|
|
284
|
+
{
|
|
285
|
+
label: t("dataViews.debitedTable"),
|
|
286
|
+
columns: [
|
|
287
|
+
{
|
|
288
|
+
title: t("tableHeaders.debitedByGusto"),
|
|
289
|
+
render: ({ label: e }) => /* @__PURE__ */ r(a, { children: e })
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
title: t("tableHeaders.taxesTotal"),
|
|
293
|
+
render: ({ value: e }) => /* @__PURE__ */ r(a, { children: o(parseFloat(e)) })
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
data: [
|
|
297
|
+
{ label: t("directDepositLabel"), value: n.totals?.netPayDebit || "0" },
|
|
298
|
+
{
|
|
299
|
+
label: t("reimbursementLabel"),
|
|
300
|
+
value: n.totals?.reimbursementDebit || "0"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
label: t("garnishmentsLabel"),
|
|
304
|
+
value: n.totals?.childSupportDebit || "0"
|
|
305
|
+
},
|
|
306
|
+
{ label: t("taxesLabel"), value: n.totals?.taxDebit || "0" }
|
|
307
|
+
]
|
|
308
|
+
}
|
|
309
|
+
)
|
|
310
|
+
] })
|
|
225
311
|
}
|
|
226
312
|
];
|
|
227
|
-
return /* @__PURE__ */
|
|
228
|
-
/* @__PURE__ */
|
|
229
|
-
/* @__PURE__ */
|
|
230
|
-
/* @__PURE__ */ r(
|
|
231
|
-
/* @__PURE__ */ r(a, { children:
|
|
313
|
+
return /* @__PURE__ */ d(y, { flexDirection: "column", alignItems: "stretch", children: [
|
|
314
|
+
/* @__PURE__ */ d(y, { justifyContent: "space-between", children: [
|
|
315
|
+
/* @__PURE__ */ d("div", { children: [
|
|
316
|
+
/* @__PURE__ */ r(k, { as: "h1", children: t(P ? "summaryTitle" : "overviewTitle") }),
|
|
317
|
+
/* @__PURE__ */ r(a, { children: ae({ payPeriod: n.payPeriod, locale: m, t }) })
|
|
232
318
|
] }),
|
|
233
|
-
/* @__PURE__ */
|
|
234
|
-
/* @__PURE__ */ r(
|
|
235
|
-
/* @__PURE__ */ r(
|
|
236
|
-
|
|
319
|
+
/* @__PURE__ */ r(y, { justifyContent: "flex-end", children: P ? /* @__PURE__ */ d(A, { children: [
|
|
320
|
+
/* @__PURE__ */ r(H, { onClick: g, variant: "secondary", children: t("payrollReceiptCta") }),
|
|
321
|
+
/* @__PURE__ */ r(
|
|
322
|
+
H,
|
|
323
|
+
{
|
|
324
|
+
onClick: () => {
|
|
325
|
+
F(!0);
|
|
326
|
+
},
|
|
327
|
+
variant: "error",
|
|
328
|
+
children: t("cancelCta")
|
|
329
|
+
}
|
|
330
|
+
)
|
|
331
|
+
] }) : /* @__PURE__ */ d(A, { children: [
|
|
332
|
+
/* @__PURE__ */ r(H, { onClick: c, variant: "secondary", isDisabled: E, children: t("editCta") }),
|
|
333
|
+
/* @__PURE__ */ r(H, { onClick: h, isLoading: E, children: t("submitCta") })
|
|
334
|
+
] }) })
|
|
237
335
|
] }),
|
|
238
|
-
/* @__PURE__ */ r(
|
|
239
|
-
/* @__PURE__ */ r(
|
|
336
|
+
/* @__PURE__ */ r(I, { label: t("alerts.progressSaved"), status: "success" }),
|
|
337
|
+
/* @__PURE__ */ r(k, { as: "h3", children: t("payrollSummaryTitle") }),
|
|
240
338
|
/* @__PURE__ */ r(
|
|
241
|
-
|
|
339
|
+
u,
|
|
242
340
|
{
|
|
243
341
|
label: t("payrollSummaryLabel"),
|
|
244
342
|
columns: [
|
|
245
343
|
{
|
|
246
344
|
title: t("tableHeaders.totalPayroll"),
|
|
247
|
-
render: () => /* @__PURE__ */ r(a, { children:
|
|
345
|
+
render: () => /* @__PURE__ */ r(a, { children: o(Z) })
|
|
248
346
|
},
|
|
249
347
|
{
|
|
250
348
|
title: t("tableHeaders.debitAmount"),
|
|
251
|
-
render: () => /* @__PURE__ */ r(a, { children:
|
|
349
|
+
render: () => /* @__PURE__ */ r(a, { children: o(parseFloat(n.totals?.companyDebit ?? "0")) })
|
|
252
350
|
},
|
|
253
351
|
{
|
|
254
352
|
title: t("tableHeaders.debitAccount"),
|
|
255
|
-
render: () => /* @__PURE__ */ r(a, { children:
|
|
353
|
+
render: () => /* @__PURE__ */ r(a, { children: R?.hiddenAccountNumber ?? "" })
|
|
256
354
|
},
|
|
257
355
|
{
|
|
258
356
|
title: t("tableHeaders.debitDate"),
|
|
259
|
-
render: () => /* @__PURE__ */ r(a, { children:
|
|
357
|
+
render: () => /* @__PURE__ */ r(a, { children: q?.toLocaleString(m, {
|
|
260
358
|
month: "short",
|
|
261
359
|
day: "numeric",
|
|
262
360
|
year: "numeric"
|
|
@@ -264,7 +362,7 @@ const X = ({
|
|
|
264
362
|
},
|
|
265
363
|
{
|
|
266
364
|
title: t("tableHeaders.employeesPayDate"),
|
|
267
|
-
render: () => /* @__PURE__ */ r(a, { children:
|
|
365
|
+
render: () => /* @__PURE__ */ r(a, { children: b(n.checkDate)?.toLocaleDateString(m, {
|
|
268
366
|
month: "short",
|
|
269
367
|
day: "numeric",
|
|
270
368
|
year: "numeric"
|
|
@@ -275,17 +373,59 @@ const X = ({
|
|
|
275
373
|
}
|
|
276
374
|
),
|
|
277
375
|
/* @__PURE__ */ r(
|
|
278
|
-
|
|
376
|
+
W,
|
|
279
377
|
{
|
|
280
|
-
onSelectionChange:
|
|
281
|
-
selectedId:
|
|
378
|
+
onSelectionChange: X,
|
|
379
|
+
selectedId: G,
|
|
282
380
|
"aria-label": t("dataViews.label"),
|
|
283
|
-
tabs:
|
|
381
|
+
tabs: J
|
|
382
|
+
}
|
|
383
|
+
),
|
|
384
|
+
O && /* @__PURE__ */ r(
|
|
385
|
+
j,
|
|
386
|
+
{
|
|
387
|
+
isOpen: O,
|
|
388
|
+
onClose: () => {
|
|
389
|
+
F(!1);
|
|
390
|
+
},
|
|
391
|
+
onPrimaryActionClick: f,
|
|
392
|
+
shouldCloseOnBackdropClick: !0,
|
|
393
|
+
primaryActionLabel: t("confirmCancelCta"),
|
|
394
|
+
isDestructive: !0,
|
|
395
|
+
closeActionLabel: t("declineCancelCta"),
|
|
396
|
+
title: t("cancelDialogTitle", {
|
|
397
|
+
startDate: b(
|
|
398
|
+
n.payPeriod?.startDate ?? ""
|
|
399
|
+
)?.toLocaleDateString(m, {
|
|
400
|
+
month: "long",
|
|
401
|
+
day: "numeric"
|
|
402
|
+
}),
|
|
403
|
+
endDate: b(
|
|
404
|
+
n.payPeriod?.endDate ?? ""
|
|
405
|
+
)?.toLocaleDateString(m, {
|
|
406
|
+
month: "long",
|
|
407
|
+
day: "numeric",
|
|
408
|
+
year: "numeric"
|
|
409
|
+
})
|
|
410
|
+
}),
|
|
411
|
+
children: /* @__PURE__ */ d(y, { gap: 14, flexDirection: "column", children: [
|
|
412
|
+
/* @__PURE__ */ r(a, { children: t("cancelDialogDescription") }),
|
|
413
|
+
/* @__PURE__ */ r(a, { children: t("cancelDialogDescriptionDeadline", {
|
|
414
|
+
deadline: (n.payrollDeadline ?? "").toLocaleString(m, {
|
|
415
|
+
month: "short",
|
|
416
|
+
day: "numeric",
|
|
417
|
+
year: "numeric",
|
|
418
|
+
hour: "numeric",
|
|
419
|
+
minute: "numeric",
|
|
420
|
+
timeZoneName: "short"
|
|
421
|
+
})
|
|
422
|
+
}) })
|
|
423
|
+
] })
|
|
284
424
|
}
|
|
285
425
|
)
|
|
286
426
|
] });
|
|
287
427
|
};
|
|
288
428
|
export {
|
|
289
|
-
|
|
429
|
+
ge as PayrollOverviewPresentation
|
|
290
430
|
};
|
|
291
431
|
//# sourceMappingURL=PayrollOverviewPresentation.js.map
|