@gusto/embedded-react-sdk 0.57.3 → 0.58.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 +88 -0
- package/dist/components/Common/DataView/DataCards/DataCards.js +98 -66
- package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
- package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js +11 -9
- package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js.map +1 -1
- package/dist/components/Common/DataView/DataTable/DataTable.js +86 -75
- package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
- package/dist/components/Common/DataView/DataView.js.map +1 -1
- package/dist/components/Common/DataView/getSortControls.js +22 -0
- package/dist/components/Common/DataView/getSortControls.js.map +1 -0
- package/dist/components/Common/DataView/useDataView.js +30 -24
- package/dist/components/Common/DataView/useDataView.js.map +1 -1
- package/dist/components/Common/UI/Table/Table.js +65 -25
- package/dist/components/Common/UI/Table/Table.js.map +1 -1
- package/dist/components/Common/UI/Table/Table.module.scss.js +8 -4
- package/dist/components/Common/UI/Table/Table.module.scss.js.map +1 -1
- package/dist/components/Common/UI/Table/TableTypes.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -4
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -4
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -6
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -4
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -4
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +5 -6
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +6 -7
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -4
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -4
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +3 -4
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +30 -45
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/PayScheduleComponents.js +11 -12
- package/dist/components/Company/PaySchedule/PayScheduleComponents.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +78 -83
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -4
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -4
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/TaxRateManagement/context.js +3 -4
- package/dist/components/Company/StateTaxes/TaxRateManagement/context.js.map +1 -1
- package/dist/components/Contractor/Compensation/management/CompensationEditForm.js +45 -54
- package/dist/components/Contractor/Compensation/management/CompensationEditForm.js.map +1 -1
- package/dist/components/Contractor/Compensation/shared/useContractorPayForm/contractorPaySchema.js +17 -22
- package/dist/components/Contractor/Compensation/shared/useContractorPayForm/contractorPaySchema.js.map +1 -1
- package/dist/components/Contractor/ContractorList/management/ManagementContractorList.js +1 -0
- package/dist/components/Contractor/ContractorList/management/ManagementContractorList.js.map +1 -1
- package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js +122 -113
- package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js.map +1 -1
- package/dist/components/Contractor/ContractorList/shared/useContractorList.js +63 -54
- package/dist/components/Contractor/ContractorList/shared/useContractorList.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/onboarding/PaymentMethod.js +39 -48
- package/dist/components/Contractor/PaymentMethod/onboarding/PaymentMethod.js.map +1 -1
- package/dist/components/Contractor/Profile/onboarding/ContractorProfile.js +76 -69
- package/dist/components/Contractor/Profile/onboarding/ContractorProfile.js.map +1 -1
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/contractorDetailsSchema.js +27 -29
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/contractorDetailsSchema.js.map +1 -1
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/useContractorDetailsForm.js +14 -12
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/useContractorDetailsForm.js.map +1 -1
- package/dist/components/Contractor/shared/hourlyRate.js +14 -0
- package/dist/components/Contractor/shared/hourlyRate.js.map +1 -0
- package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.js +63 -63
- package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +3 -4
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/onboarding/ListView.js +65 -74
- package/dist/components/Employee/PaymentMethod/onboarding/ListView.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +16 -16
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +2 -3
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +84 -82
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
- package/dist/components/Payroll/OffCycleTaxWithholdingTable/getDefaultWithholdingPayPeriod.js +8 -0
- package/dist/components/Payroll/OffCycleTaxWithholdingTable/getDefaultWithholdingPayPeriod.js.map +1 -0
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +91 -88
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +16 -16
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +146 -134
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js +14 -12
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +34 -33
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js +49 -48
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js.map +1 -1
- package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js.map +1 -1
- package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js +0 -4
- package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/PayrollFlow.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js +51 -38
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +121 -102
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollList.js +79 -74
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +92 -83
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +23 -27
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js +82 -75
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js.map +1 -1
- package/dist/components/Payroll/RropPayrollEditEmployee/RropPayrollEditEmployee.js +416 -0
- package/dist/components/Payroll/RropPayrollEditEmployee/RropPayrollEditEmployee.js.map +1 -0
- package/dist/components/Payroll/{UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.module.scss.js → RropPayrollEditEmployee/RropPayrollEditEmployee.module.scss.js} +1 -1
- package/dist/components/Payroll/RropPayrollEditEmployee/RropPayrollEditEmployee.module.scss.js.map +1 -0
- package/dist/components/Payroll/TransitionConfiguration/TransitionConfiguration.js +97 -0
- package/dist/components/Payroll/TransitionConfiguration/TransitionConfiguration.js.map +1 -0
- package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationPresentation.js +106 -0
- package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationPresentation.js.map +1 -0
- package/dist/components/Payroll/{TransitionCreation/TransitionCreationPresentation.module.scss.js → TransitionConfiguration/TransitionConfigurationPresentation.module.scss.js} +1 -1
- package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationPresentation.module.scss.js.map +1 -0
- package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationTypes.js +10 -0
- package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationTypes.js.map +1 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +86 -64
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js +126 -77
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -1
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.module.scss.js +8 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.module.scss.js.map +1 -0
- package/dist/components/Payroll/index.js +16 -20
- package/dist/components/Payroll/index.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +2 -3
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/components/Payroll/useUnprocessedTransitionPayPeriods.js +11 -14
- package/dist/components/Payroll/useUnprocessedTransitionPayPeriods.js.map +1 -1
- package/dist/contexts/ApiProvider/ApiProvider.js +18 -17
- package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
- package/dist/contexts/ApiProvider/payScheduleCustomNameHook.js +31 -0
- package/dist/contexts/ApiProvider/payScheduleCustomNameHook.js.map +1 -0
- package/dist/contexts/FeaturesProvider/FeaturesProvider.js +14 -0
- package/dist/contexts/FeaturesProvider/FeaturesProvider.js.map +1 -0
- package/dist/contexts/FeaturesProvider/useFeature.js +7 -0
- package/dist/contexts/FeaturesProvider/useFeature.js.map +1 -0
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +32 -30
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
- package/dist/contexts/UnstableFeaturesProvider/useUnstableFeature.js.map +1 -1
- package/dist/i18n/I18n.js +2 -3
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Contractor.Profile.json.js +1 -1
- package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +29 -23
- package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollLanding.json.js +1 -1
- package/dist/i18n/en/{Payroll.UNSTABLE_PayrollEditEmployee.json.js → Payroll.RropPayrollEditEmployee.json.js} +42 -38
- package/dist/i18n/en/Payroll.RropPayrollEditEmployee.json.js.map +1 -0
- package/dist/i18n/en/Payroll.TransitionConfiguration.json.js +28 -0
- package/dist/i18n/en/Payroll.TransitionConfiguration.json.js.map +1 -0
- package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js +16 -12
- package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js.map +1 -1
- package/dist/i18n/en/common.json.js +1 -1
- package/dist/package.json.js +1 -1
- package/dist/partner-hook-utils/form/composeSubmitHandler.js +55 -48
- package/dist/partner-hook-utils/form/composeSubmitHandler.js.map +1 -1
- package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js +31 -29
- package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js.map +1 -1
- package/dist/shared/constants.js +2 -1
- package/dist/shared/constants.js.map +1 -1
- package/dist/src/components/Common/DataView/DataCards/DataCards.d.ts +3 -1
- package/dist/src/components/Common/DataView/DataTable/DataTable.d.ts +3 -1
- package/dist/src/components/Common/DataView/DataView.d.ts +2 -0
- package/dist/src/components/Common/DataView/getSortControls.d.ts +24 -0
- package/dist/src/components/Common/DataView/useDataView.d.ts +22 -1
- package/dist/src/components/Common/UI/Table/TableTypes.d.ts +71 -2
- package/dist/src/components/Company/PaySchedule/PaySchedule.d.ts +1 -9
- package/dist/src/components/Company/PaySchedule/PayScheduleComponents.d.ts +0 -1
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/fields.d.ts +1 -1
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.d.ts +1 -1
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +3 -14
- package/dist/src/components/Contractor/ContractorList/management/ManagementContractorListView.d.ts +2 -2
- package/dist/src/components/Contractor/ContractorList/shared/index.d.ts +1 -1
- package/dist/src/components/Contractor/ContractorList/shared/useContractorList.d.ts +38 -0
- package/dist/src/components/Contractor/shared/hourlyRate.d.ts +23 -0
- package/dist/src/components/Payroll/OffCycleTaxWithholdingTable/getDefaultWithholdingPayPeriod.d.ts +9 -0
- package/dist/src/components/Payroll/PayrollEditEmployee/TimeOffField.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.d.ts +2 -0
- package/dist/src/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.d.ts +8 -6
- package/dist/src/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.d.ts +0 -8
- package/dist/src/components/Payroll/PayrollFlow/PayrollFlow.d.ts +5 -3
- package/dist/src/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +2 -3
- package/dist/src/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollLanding/PayrollLanding.d.ts +18 -5
- package/dist/src/components/Payroll/PayrollList/PayrollList.d.ts +11 -5
- package/dist/src/components/Payroll/{UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.d.ts → RropPayrollEditEmployee/RropPayrollEditEmployee.d.ts} +9 -5
- package/dist/src/components/Payroll/TransitionConfiguration/TransitionConfiguration.d.ts +55 -0
- package/dist/src/components/Payroll/TransitionConfiguration/TransitionConfigurationPresentation.d.ts +9 -0
- package/dist/src/components/Payroll/TransitionConfiguration/TransitionConfigurationTypes.d.ts +52 -0
- package/dist/src/components/Payroll/TransitionConfiguration/index.d.ts +2 -0
- package/dist/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.d.ts +5 -2
- package/dist/src/components/Payroll/index.d.ts +2 -6
- package/dist/src/contexts/ApiProvider/payScheduleCustomNameHook.d.ts +14 -0
- package/dist/src/contexts/ApiProvider/payScheduleCustomNameHook.test.d.ts +1 -0
- package/dist/src/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -1
- package/dist/src/contexts/FeaturesProvider/FeaturesProvider.d.ts +21 -0
- package/dist/src/contexts/FeaturesProvider/useFeature.d.ts +53 -0
- package/dist/src/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +3 -0
- package/dist/src/contexts/UnstableFeaturesProvider/useUnstableFeature.d.ts +38 -10
- package/dist/src/contexts/index.d.ts +1 -0
- package/dist/src/i18n/en/common.json.d.ts +5 -1
- package/dist/src/i18n/types.d.ts +113 -66
- package/dist/src/partner-hook-utils/form/fields/RadioGroupHookField.d.ts +9 -7
- package/dist/src/shared/constants.d.ts +4 -2
- package/dist/src/test-utils/renderWithProviders.d.ts +2 -0
- package/dist/style.css +1 -1
- package/docs/guides/endpoint-inventory.json +24 -27
- package/package.json +15 -14
- package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js +0 -29
- package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js.map +0 -1
- package/dist/components/Payroll/Transition/TransitionFlow.js +0 -60
- package/dist/components/Payroll/Transition/TransitionFlow.js.map +0 -1
- package/dist/components/Payroll/Transition/TransitionFlowComponents.js +0 -31
- package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +0 -1
- package/dist/components/Payroll/Transition/transitionStateMachine.js +0 -49
- package/dist/components/Payroll/Transition/transitionStateMachine.js.map +0 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +0 -100
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +0 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +0 -110
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +0 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.module.scss.js.map +0 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js +0 -21
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +0 -1
- package/dist/components/Payroll/TransitionPayroll/TransitionPayroll.js +0 -48
- package/dist/components/Payroll/TransitionPayroll/TransitionPayroll.js.map +0 -1
- package/dist/components/Payroll/TransitionPayroll/TransitionPayrollComponents.js +0 -35
- package/dist/components/Payroll/TransitionPayroll/TransitionPayrollComponents.js.map +0 -1
- package/dist/components/Payroll/TransitionPayroll/transitionPayrollStateMachine.js +0 -23
- package/dist/components/Payroll/TransitionPayroll/transitionPayrollStateMachine.js.map +0 -1
- package/dist/components/Payroll/TransitionPayroll/useResolveTransitionPayroll.js +0 -29
- package/dist/components/Payroll/TransitionPayroll/useResolveTransitionPayroll.js.map +0 -1
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js +0 -411
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js.map +0 -1
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.module.scss.js.map +0 -1
- package/dist/i18n/en/Payroll.Transition.json.js +0 -8
- package/dist/i18n/en/Payroll.Transition.json.js.map +0 -1
- package/dist/i18n/en/Payroll.TransitionCreation.json.js +0 -26
- package/dist/i18n/en/Payroll.TransitionCreation.json.js.map +0 -1
- package/dist/i18n/en/Payroll.UNSTABLE_PayrollEditEmployee.json.js.map +0 -1
- package/dist/src/components/Payroll/PayrollFlow/TransitionFlowContextual.d.ts +0 -7
- package/dist/src/components/Payroll/Transition/TransitionFlow.d.ts +0 -55
- package/dist/src/components/Payroll/Transition/TransitionFlowComponents.d.ts +0 -52
- package/dist/src/components/Payroll/Transition/index.d.ts +0 -2
- package/dist/src/components/Payroll/Transition/transitionStateMachine.d.ts +0 -29
- package/dist/src/components/Payroll/TransitionCreation/TransitionCreation.d.ts +0 -22
- package/dist/src/components/Payroll/TransitionCreation/TransitionCreationPresentation.d.ts +0 -9
- package/dist/src/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +0 -57
- package/dist/src/components/Payroll/TransitionCreation/index.d.ts +0 -2
- package/dist/src/components/Payroll/TransitionPayroll/TransitionPayroll.d.ts +0 -55
- package/dist/src/components/Payroll/TransitionPayroll/TransitionPayrollComponents.d.ts +0 -24
- package/dist/src/components/Payroll/TransitionPayroll/TransitionPayrollTypes.d.ts +0 -23
- package/dist/src/components/Payroll/TransitionPayroll/index.d.ts +0 -2
- package/dist/src/components/Payroll/TransitionPayroll/transitionPayrollStateMachine.d.ts +0 -15
- package/dist/src/components/Payroll/TransitionPayroll/useResolveTransitionPayroll.d.ts +0 -28
- /package/dist/src/components/{Payroll/Transition/transitionStateMachine.test.d.ts → Common/DataView/getSortControls.test.d.ts} +0 -0
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { jsx as t, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import { useForm as ne, useFieldArray as
|
|
3
|
-
import { useRef as
|
|
2
|
+
import { useForm as ne, useFieldArray as Re, useWatch as xe, FormProvider as te } from "react-hook-form";
|
|
3
|
+
import { useRef as Se, useMemo as V, useState as Ie } from "react";
|
|
4
4
|
import Fe from "classnames";
|
|
5
|
-
import { PayrollEmployeeCompensationsTypePaymentMethod as
|
|
6
|
-
import { useTranslation as
|
|
5
|
+
import { PayrollEmployeeCompensationsTypePaymentMethod as v } from "@gusto/embedded-api/models/components/payrollemployeecompensationstype";
|
|
6
|
+
import { useTranslation as _e } from "react-i18next";
|
|
7
7
|
import { z as s } from "zod";
|
|
8
8
|
import { zodResolver as ie } from "@hookform/resolvers/zod";
|
|
9
9
|
import c from "./PayrollEditEmployeePresentation.module.scss.js";
|
|
10
|
-
import { TimeOffField as
|
|
10
|
+
import { TimeOffField as De, PayoutTimeOffField as Le } from "./TimeOffField.js";
|
|
11
11
|
import { Flex as E } from "../../Common/Flex/Flex.js";
|
|
12
|
-
import { Grid as
|
|
13
|
-
import { EmptyData as
|
|
14
|
-
import { useComponentContext as
|
|
12
|
+
import { Grid as I } from "../../Common/Grid/Grid.js";
|
|
13
|
+
import { EmptyData as Ue } from "../../Common/EmptyData/EmptyData.js";
|
|
14
|
+
import { useComponentContext as je } from "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
15
15
|
import { useI18n as ke } from "../../../i18n/I18n.js";
|
|
16
|
-
import { Form as
|
|
17
|
-
import { formatNumberAsCurrency as re, firstLastName as
|
|
18
|
-
import { getAdditionalEarningsCompensations as
|
|
19
|
-
import { PayrollCategory as
|
|
20
|
-
import { COMPENSATION_NAME_REIMBURSEMENT as
|
|
21
|
-
import
|
|
16
|
+
import { Form as He } from "../../Common/Form/Form.js";
|
|
17
|
+
import { formatNumberAsCurrency as re, firstLastName as Ge, stripLeadingZeros as j } from "../../../helpers/formattedStrings.js";
|
|
18
|
+
import { getAdditionalEarningsCompensations as we, calculateGrossPay as se } from "../helpers.js";
|
|
19
|
+
import { PayrollCategory as S, isOffCyclePayroll as le } from "../payrollTypes.js";
|
|
20
|
+
import { COMPENSATION_NAME_REIMBURSEMENT as x, HOURS_COMPENSATION_NAMES as ae, EXCLUDED_ADDITIONAL_EARNINGS as $e, COMPENSATION_NAME_DOUBLE_OVERTIME as Ve, COMPENSATION_NAME_OVERTIME as Be, COMPENSATION_NAME_REGULAR_HOURS as qe, COMPENSATION_NAME_CASH_TIPS as ze, COMPENSATION_NAME_COMMISSION as We, COMPENSATION_NAME_CORRECTION_PAYMENT as Xe, COMPENSATION_NAME_PAYCHECK_TIPS as Ye, COMPENSATION_NAME_BONUS as Ke } from "../../../shared/constants.js";
|
|
21
|
+
import Ze from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
|
|
22
22
|
import oe from "../../../assets/icons/plus-circle.svg.js";
|
|
23
|
-
import
|
|
23
|
+
import Qe from "../../../assets/icons/trashcan.svg.js";
|
|
24
24
|
import { TextInputField as F } from "../../Common/Fields/TextInputField/TextInputField.js";
|
|
25
|
-
import { RadioGroupField as
|
|
26
|
-
import { useDataView as
|
|
27
|
-
import { DataView as
|
|
25
|
+
import { RadioGroupField as Je } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
|
|
26
|
+
import { useDataView as en } from "../../Common/DataView/useDataView.js";
|
|
27
|
+
import { DataView as me } from "../../Common/DataView/DataView.js";
|
|
28
28
|
const nn = s.object({
|
|
29
29
|
uuid: s.string().nullable().optional(),
|
|
30
30
|
description: s.string(),
|
|
31
31
|
amount: s.string(),
|
|
32
32
|
recurring: s.boolean().optional()
|
|
33
|
-
}),
|
|
33
|
+
}), de = 1e6, tn = s.object({
|
|
34
34
|
description: s.string(),
|
|
35
35
|
amount: s.string().refine(
|
|
36
36
|
(a) => {
|
|
@@ -38,22 +38,22 @@ const nn = s.object({
|
|
|
38
38
|
return !Number.isNaN(C) && C > 0;
|
|
39
39
|
},
|
|
40
40
|
{ message: "validations.reimbursementAmount" }
|
|
41
|
-
).refine((a) => parseFloat(a) <=
|
|
41
|
+
).refine((a) => parseFloat(a) <= de, {
|
|
42
42
|
message: "validations.maxReimbursementAmount"
|
|
43
43
|
})
|
|
44
|
-
}), rn = s.string().optional().refine((a) => !a || parseFloat(a) >= 0, { message: "validations.negativeAmount" }),
|
|
44
|
+
}), rn = s.string().optional().refine((a) => !a || parseFloat(a) >= 0, { message: "validations.negativeAmount" }), ce = 99999, sn = s.string().optional().refine((a) => !a || parseFloat(a) <= ce, { message: "validations.maxHours" }), an = s.object({
|
|
45
45
|
hourlyCompensations: s.record(s.string(), s.record(s.string(), sn)),
|
|
46
46
|
timeOffCompensations: s.record(s.string(), s.string().optional()),
|
|
47
47
|
finalPayoutCompensations: s.record(s.string(), s.string().optional()),
|
|
48
48
|
fixedCompensations: s.record(s.string(), rn),
|
|
49
49
|
reimbursements: s.array(nn),
|
|
50
|
-
paymentMethod: s.enum(
|
|
51
|
-
}),
|
|
52
|
-
const
|
|
50
|
+
paymentMethod: s.enum(v).optional()
|
|
51
|
+
}), ue = (a, C, k, p, o = S.Regular) => {
|
|
52
|
+
const N = {
|
|
53
53
|
...C,
|
|
54
54
|
paymentMethod: a.paymentMethod
|
|
55
55
|
};
|
|
56
|
-
|
|
56
|
+
N.hourlyCompensations = C?.hourlyCompensations?.map(
|
|
57
57
|
(r) => {
|
|
58
58
|
const u = r.jobUuid && r.name ? a.hourlyCompensations[r.jobUuid]?.[r.name] : void 0;
|
|
59
59
|
return u ? {
|
|
@@ -61,8 +61,8 @@ const nn = s.object({
|
|
|
61
61
|
hours: u
|
|
62
62
|
} : r;
|
|
63
63
|
}
|
|
64
|
-
),
|
|
65
|
-
const u = o ===
|
|
64
|
+
), N.paidTimeOff = k.map((r) => {
|
|
65
|
+
const u = o === S.Dismissal, { finalPayoutUnusedHoursInput: O, ...h } = r;
|
|
66
66
|
if (u) {
|
|
67
67
|
const l = a.finalPayoutCompensations[r.name] ?? r.finalPayoutUnusedHoursInput;
|
|
68
68
|
return {
|
|
@@ -76,9 +76,9 @@ const nn = s.object({
|
|
|
76
76
|
hours: a.timeOffCompensations[r.name] || "0"
|
|
77
77
|
};
|
|
78
78
|
});
|
|
79
|
-
const _ = !
|
|
79
|
+
const _ = !le(o), M = [];
|
|
80
80
|
return Object.entries(a.fixedCompensations).forEach(([r, u]) => {
|
|
81
|
-
if (r.toLowerCase() ===
|
|
81
|
+
if (r.toLowerCase() === x.toLowerCase() && _)
|
|
82
82
|
return;
|
|
83
83
|
const h = C?.fixedCompensations?.find(
|
|
84
84
|
(H) => H.name?.toLowerCase() === r.toLowerCase()
|
|
@@ -92,69 +92,69 @@ const nn = s.object({
|
|
|
92
92
|
jobUuid: p,
|
|
93
93
|
amount: l
|
|
94
94
|
}));
|
|
95
|
-
}),
|
|
95
|
+
}), N.fixedCompensations = M, _ ? N.reimbursements = a.reimbursements.map((r) => ({
|
|
96
96
|
amount: r.amount,
|
|
97
97
|
description: r.description.trim() === "" ? null : r.description.trim(),
|
|
98
98
|
uuid: r.uuid ?? null,
|
|
99
99
|
recurring: r.recurring
|
|
100
|
-
})) :
|
|
100
|
+
})) : N.reimbursements = [], N;
|
|
101
101
|
}, Ln = ({
|
|
102
102
|
className: a,
|
|
103
103
|
onSave: C,
|
|
104
|
-
onCancel:
|
|
104
|
+
onCancel: k,
|
|
105
105
|
employee: p,
|
|
106
106
|
employeeCompensation: o,
|
|
107
|
-
isPending:
|
|
107
|
+
isPending: N = !1,
|
|
108
108
|
fixedCompensationTypes: _,
|
|
109
109
|
payPeriodStartDate: M,
|
|
110
110
|
paySchedule: r,
|
|
111
|
-
payrollCategory: u =
|
|
112
|
-
withReimbursements:
|
|
111
|
+
payrollCategory: u = S.Regular,
|
|
112
|
+
withReimbursements: O = !0,
|
|
113
113
|
hasDirectDepositSetup: h = !0
|
|
114
114
|
}) => {
|
|
115
|
-
const { Button: l, ButtonIcon: H, Heading: f, Text:
|
|
115
|
+
const { Button: l, ButtonIcon: H, Heading: f, Text: B } = je(), { t: n } = _e("Payroll.PayrollEditEmployee");
|
|
116
116
|
ke("Payroll.PayrollEditEmployee");
|
|
117
|
-
const b = p.jobs?.find((e) => e.primary),
|
|
117
|
+
const b = p.jobs?.find((e) => e.primary), pe = o?.hourlyCompensations?.some(
|
|
118
118
|
(e) => e.jobUuid === b?.uuid
|
|
119
|
-
),
|
|
120
|
-
ref:
|
|
119
|
+
), P = b && pe ? [b] : [], q = Se(null), g = Ze({
|
|
120
|
+
ref: q
|
|
121
121
|
}).includes("small");
|
|
122
122
|
o?.hourlyCompensations?.forEach((e) => {
|
|
123
123
|
const i = p.jobs?.find((d) => d.uuid === e.jobUuid);
|
|
124
|
-
i && !
|
|
124
|
+
i && !P.find((d) => d.uuid === i.uuid) && P.push(i);
|
|
125
125
|
});
|
|
126
|
-
const T = (o?.paidTimeOff || []).filter((e) => e.name), G =
|
|
126
|
+
const T = (o?.paidTimeOff || []).filter((e) => e.name), G = we({
|
|
127
127
|
flsaStatus: b?.compensations?.[0]?.flsaStatus,
|
|
128
128
|
existingFixedCompensations: o?.fixedCompensations || [],
|
|
129
129
|
primaryJobUuid: b?.uuid,
|
|
130
130
|
fixedCompensationTypes: _,
|
|
131
|
-
excludedTypes:
|
|
132
|
-
}), D = !
|
|
133
|
-
() =>
|
|
134
|
-
[
|
|
135
|
-
),
|
|
131
|
+
excludedTypes: $e
|
|
132
|
+
}), D = !le(u), fe = V(
|
|
133
|
+
() => O && D ? o?.reimbursements ?? [] : [],
|
|
134
|
+
[O, D, o?.reimbursements]
|
|
135
|
+
), he = V(
|
|
136
136
|
() => o?.fixedCompensations?.find(
|
|
137
|
-
(e) => e.name?.toLowerCase() ===
|
|
137
|
+
(e) => e.name?.toLowerCase() === x.toLowerCase()
|
|
138
138
|
),
|
|
139
139
|
[o?.fixedCompensations]
|
|
140
|
-
),
|
|
140
|
+
), z = O && !D && !!b?.uuid, W = (e, i) => o?.hourlyCompensations?.find(
|
|
141
141
|
(d) => d.jobUuid === e && d.name?.toLowerCase() === i.toLowerCase()
|
|
142
|
-
),
|
|
142
|
+
), be = (e) => {
|
|
143
143
|
switch (e) {
|
|
144
|
-
case
|
|
144
|
+
case qe:
|
|
145
145
|
return n("compensationNames.regularHours");
|
|
146
146
|
case Be:
|
|
147
147
|
return n("compensationNames.overtime");
|
|
148
|
-
case
|
|
148
|
+
case Ve:
|
|
149
149
|
return n("compensationNames.doubleOvertime");
|
|
150
150
|
default:
|
|
151
151
|
return e;
|
|
152
152
|
}
|
|
153
|
-
},
|
|
153
|
+
}, X = (e) => {
|
|
154
154
|
switch (e) {
|
|
155
|
-
case
|
|
155
|
+
case Ke:
|
|
156
156
|
return n("fixedCompensationNames.bonus");
|
|
157
|
-
case
|
|
157
|
+
case Ye:
|
|
158
158
|
return n("fixedCompensationNames.paycheckTips");
|
|
159
159
|
case Xe:
|
|
160
160
|
return n("fixedCompensationNames.correctionPayment");
|
|
@@ -162,20 +162,20 @@ const nn = s.object({
|
|
|
162
162
|
return n("fixedCompensationNames.commission");
|
|
163
163
|
case ze:
|
|
164
164
|
return n("fixedCompensationNames.cashTips");
|
|
165
|
-
case
|
|
165
|
+
case x:
|
|
166
166
|
return n("fixedCompensationNames.reimbursement");
|
|
167
167
|
default:
|
|
168
168
|
return e;
|
|
169
169
|
}
|
|
170
|
-
},
|
|
170
|
+
}, ge = () => {
|
|
171
171
|
const e = o?.paymentMethod;
|
|
172
|
-
return e ? !h && e ===
|
|
173
|
-
},
|
|
172
|
+
return e ? !h && e === v.DirectDeposit ? v.Check : e : h ? v.DirectDeposit : v.Check;
|
|
173
|
+
}, Ce = {
|
|
174
174
|
hourlyCompensations: (() => {
|
|
175
175
|
const e = {};
|
|
176
|
-
return
|
|
176
|
+
return P.forEach((i) => {
|
|
177
177
|
ae.forEach((d) => {
|
|
178
|
-
const R =
|
|
178
|
+
const R = W(i.uuid, d);
|
|
179
179
|
R && (e[i.uuid] || (e[i.uuid] = {}), e[i.uuid][R.name] = R.hours ? parseFloat(R.hours).toString() : "");
|
|
180
180
|
});
|
|
181
181
|
}), e;
|
|
@@ -196,43 +196,43 @@ const nn = s.object({
|
|
|
196
196
|
const e = {};
|
|
197
197
|
return G.forEach((i) => {
|
|
198
198
|
e[i.name] = i.amount ?? "";
|
|
199
|
-
}),
|
|
199
|
+
}), z && (e[x] = he?.amount ?? "0.00"), e;
|
|
200
200
|
})(),
|
|
201
|
-
reimbursements:
|
|
201
|
+
reimbursements: fe.map((e) => ({
|
|
202
202
|
uuid: e.uuid ?? null,
|
|
203
203
|
description: e.description ?? "",
|
|
204
204
|
amount: e.amount,
|
|
205
205
|
recurring: e.recurring ?? !1
|
|
206
206
|
})),
|
|
207
|
-
paymentMethod:
|
|
207
|
+
paymentMethod: ge()
|
|
208
208
|
}, L = ne({
|
|
209
209
|
resolver: ie(an),
|
|
210
|
-
defaultValues:
|
|
210
|
+
defaultValues: Ce
|
|
211
211
|
}), {
|
|
212
212
|
fields: Y,
|
|
213
|
-
append:
|
|
213
|
+
append: Ne,
|
|
214
214
|
remove: ye,
|
|
215
|
-
update:
|
|
216
|
-
} =
|
|
215
|
+
update: Ae
|
|
216
|
+
} = Re({
|
|
217
217
|
control: L.control,
|
|
218
218
|
name: "reimbursements"
|
|
219
|
-
}),
|
|
219
|
+
}), Ee = (e) => {
|
|
220
220
|
const i = Y[e];
|
|
221
|
-
i && (i.uuid ?
|
|
222
|
-
}, w = Y.map((e, i) => ({ ...e, originalIndex: i })).filter((e) => parseFloat(e.amount || "0") !== 0), [K, $] =
|
|
221
|
+
i && (i.uuid ? Ae(e, { ...i, amount: "0" }) : ye(e));
|
|
222
|
+
}, w = Y.map((e, i) => ({ ...e, originalIndex: i })).filter((e) => parseFloat(e.amount || "0") !== 0), [K, $] = Ie(!1), U = ne({
|
|
223
223
|
resolver: ie(tn),
|
|
224
224
|
defaultValues: { description: "", amount: "" }
|
|
225
225
|
}), Z = () => {
|
|
226
226
|
$(!1), U.reset();
|
|
227
|
-
},
|
|
227
|
+
}, Me = (e) => {
|
|
228
228
|
const i = parseFloat(e.amount);
|
|
229
|
-
|
|
229
|
+
Ne({
|
|
230
230
|
uuid: null,
|
|
231
231
|
description: e.description.trim(),
|
|
232
232
|
amount: i.toFixed(2),
|
|
233
233
|
recurring: !1
|
|
234
234
|
}), Z();
|
|
235
|
-
},
|
|
235
|
+
}, Te = en({
|
|
236
236
|
data: w,
|
|
237
237
|
columns: [
|
|
238
238
|
{
|
|
@@ -260,14 +260,14 @@ const nn = s.object({
|
|
|
260
260
|
{
|
|
261
261
|
variant: "tertiary",
|
|
262
262
|
onClick: () => {
|
|
263
|
-
|
|
263
|
+
Ee(e.originalIndex);
|
|
264
264
|
},
|
|
265
265
|
"aria-label": n("removeReimbursementLabel", { description: i }),
|
|
266
|
-
children: /* @__PURE__ */ t(
|
|
266
|
+
children: /* @__PURE__ */ t(Qe, { "aria-hidden": !0 })
|
|
267
267
|
}
|
|
268
268
|
);
|
|
269
269
|
},
|
|
270
|
-
emptyState: () => /* @__PURE__ */ t(
|
|
270
|
+
emptyState: () => /* @__PURE__ */ t(Ue, { title: n("reimbursementEmptyTitle"), children: /* @__PURE__ */ t(
|
|
271
271
|
l,
|
|
272
272
|
{
|
|
273
273
|
variant: "secondary",
|
|
@@ -278,27 +278,27 @@ const nn = s.object({
|
|
|
278
278
|
children: n("addReimbursementCta")
|
|
279
279
|
}
|
|
280
280
|
) })
|
|
281
|
-
}),
|
|
281
|
+
}), y = xe({
|
|
282
282
|
control: L.control
|
|
283
|
-
}),
|
|
283
|
+
}), ve = V(() => {
|
|
284
284
|
try {
|
|
285
285
|
const e = {};
|
|
286
|
-
|
|
286
|
+
y.hourlyCompensations && Object.entries(y.hourlyCompensations).forEach(([A, ee]) => {
|
|
287
287
|
ee && (e[A] = ee);
|
|
288
288
|
});
|
|
289
|
-
const i = (
|
|
289
|
+
const i = (y.reimbursements ?? []).map((A) => ({
|
|
290
290
|
uuid: A.uuid ?? null,
|
|
291
291
|
description: A.description ?? "",
|
|
292
292
|
amount: A.amount ?? "0",
|
|
293
293
|
recurring: A.recurring
|
|
294
294
|
})), d = {
|
|
295
295
|
hourlyCompensations: e,
|
|
296
|
-
timeOffCompensations:
|
|
297
|
-
finalPayoutCompensations:
|
|
298
|
-
fixedCompensations:
|
|
296
|
+
timeOffCompensations: y.timeOffCompensations || {},
|
|
297
|
+
finalPayoutCompensations: y.finalPayoutCompensations || {},
|
|
298
|
+
fixedCompensations: y.fixedCompensations || {},
|
|
299
299
|
reimbursements: i,
|
|
300
|
-
paymentMethod:
|
|
301
|
-
}, R =
|
|
300
|
+
paymentMethod: y.paymentMethod
|
|
301
|
+
}, R = ue(
|
|
302
302
|
d,
|
|
303
303
|
o,
|
|
304
304
|
(o?.paidTimeOff || []).filter((A) => A.name),
|
|
@@ -322,18 +322,18 @@ const nn = s.object({
|
|
|
322
322
|
) : 0;
|
|
323
323
|
}
|
|
324
324
|
}, [
|
|
325
|
-
|
|
325
|
+
y,
|
|
326
326
|
o,
|
|
327
327
|
b?.uuid,
|
|
328
328
|
p,
|
|
329
329
|
M,
|
|
330
330
|
r,
|
|
331
331
|
u
|
|
332
|
-
]),
|
|
332
|
+
]), Oe = Ge({
|
|
333
333
|
first_name: p.firstName,
|
|
334
334
|
last_name: p.lastName
|
|
335
|
-
}),
|
|
336
|
-
const i =
|
|
335
|
+
}), Pe = (e) => {
|
|
336
|
+
const i = ue(
|
|
337
337
|
e,
|
|
338
338
|
o,
|
|
339
339
|
T,
|
|
@@ -341,7 +341,7 @@ const nn = s.object({
|
|
|
341
341
|
u
|
|
342
342
|
);
|
|
343
343
|
C(i);
|
|
344
|
-
}, Q = re(
|
|
344
|
+
}, Q = re(ve || 0), J = /* @__PURE__ */ m(
|
|
345
345
|
E,
|
|
346
346
|
{
|
|
347
347
|
flexDirection: g ? "row" : "column",
|
|
@@ -349,30 +349,30 @@ const nn = s.object({
|
|
|
349
349
|
alignItems: g ? "flex-start" : "stretch",
|
|
350
350
|
gap: 12,
|
|
351
351
|
children: [
|
|
352
|
-
/* @__PURE__ */ t(l, { variant: "secondary", onClick:
|
|
352
|
+
/* @__PURE__ */ t(l, { variant: "secondary", onClick: k, title: n("cancelCta"), children: n("cancelCta") }),
|
|
353
353
|
/* @__PURE__ */ t(
|
|
354
354
|
l,
|
|
355
355
|
{
|
|
356
|
-
onClick: L.handleSubmit(
|
|
356
|
+
onClick: L.handleSubmit(Pe),
|
|
357
357
|
title: n("saveCta"),
|
|
358
|
-
isLoading:
|
|
358
|
+
isLoading: N,
|
|
359
359
|
children: n("saveCta")
|
|
360
360
|
}
|
|
361
361
|
)
|
|
362
362
|
]
|
|
363
363
|
}
|
|
364
364
|
);
|
|
365
|
-
return /* @__PURE__ */ m("div", { ref:
|
|
365
|
+
return /* @__PURE__ */ m("div", { ref: q, className: Fe(c.container, a), children: [
|
|
366
366
|
/* @__PURE__ */ t(
|
|
367
367
|
"div",
|
|
368
368
|
{
|
|
369
369
|
className: `${c.headerSection} ${g ? "" : c.headerSectionSticky}`,
|
|
370
370
|
children: /* @__PURE__ */ m(E, { justifyContent: "space-between", children: [
|
|
371
371
|
/* @__PURE__ */ m(E, { flexDirection: "column", alignItems: "stretch", gap: g ? 8 : 2, children: [
|
|
372
|
-
/* @__PURE__ */ t(f, { as: "h1", styledAs: g ? "h2" : "h4", children: n("pageTitle", { employeeName:
|
|
372
|
+
/* @__PURE__ */ t(f, { as: "h1", styledAs: g ? "h2" : "h4", children: n("pageTitle", { employeeName: Oe }) }),
|
|
373
373
|
g ? /* @__PURE__ */ m(E, { flexDirection: "column", gap: 6, children: [
|
|
374
374
|
/* @__PURE__ */ t(f, { as: "h2", styledAs: "h3", children: Q }),
|
|
375
|
-
/* @__PURE__ */ t(
|
|
375
|
+
/* @__PURE__ */ t(B, { className: c.grossPayLabel, children: n("grossPayLabel") })
|
|
376
376
|
] }) : /* @__PURE__ */ t(f, { as: "h2", styledAs: "h6", className: c.grossPayLabel, children: n("grossPayLabelMobile", { grossPay: Q }) })
|
|
377
377
|
] }),
|
|
378
378
|
g && J
|
|
@@ -380,13 +380,13 @@ const nn = s.object({
|
|
|
380
380
|
}
|
|
381
381
|
),
|
|
382
382
|
/* @__PURE__ */ m(te, { ...L, children: [
|
|
383
|
-
/* @__PURE__ */ m(
|
|
384
|
-
|
|
383
|
+
/* @__PURE__ */ m(He, { children: [
|
|
384
|
+
P.length > 0 && /* @__PURE__ */ m("div", { className: c.fieldGroup, children: [
|
|
385
385
|
/* @__PURE__ */ t(f, { as: "h3", children: n("regularHoursTitle") }),
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
/* @__PURE__ */ t(
|
|
389
|
-
const d =
|
|
386
|
+
P.map((e) => /* @__PURE__ */ m(E, { flexDirection: "column", gap: 8, children: [
|
|
387
|
+
P.length > 1 && /* @__PURE__ */ t(f, { as: "h4", children: e.title }),
|
|
388
|
+
/* @__PURE__ */ t(I, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: ae.map((i) => {
|
|
389
|
+
const d = W(
|
|
390
390
|
e.uuid,
|
|
391
391
|
i
|
|
392
392
|
);
|
|
@@ -396,10 +396,10 @@ const nn = s.object({
|
|
|
396
396
|
{
|
|
397
397
|
type: "number",
|
|
398
398
|
min: 0,
|
|
399
|
-
max:
|
|
400
|
-
transform:
|
|
399
|
+
max: ce,
|
|
400
|
+
transform: j,
|
|
401
401
|
adornmentEnd: n("hoursUnit"),
|
|
402
|
-
label:
|
|
402
|
+
label: be(i),
|
|
403
403
|
name: `hourlyCompensations.${e.uuid}.${d.name}`,
|
|
404
404
|
errorMessage: n("validations.maxHours")
|
|
405
405
|
},
|
|
@@ -409,23 +409,35 @@ const nn = s.object({
|
|
|
409
409
|
] }, e.uuid))
|
|
410
410
|
] }),
|
|
411
411
|
T.length > 0 && /* @__PURE__ */ m("div", { className: c.fieldGroup, children: [
|
|
412
|
-
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: u ===
|
|
413
|
-
/* @__PURE__ */ t(
|
|
414
|
-
|
|
412
|
+
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: u === S.Dismissal ? n("timeOffTitleDismissal") : n("timeOffTitle") }),
|
|
413
|
+
/* @__PURE__ */ t(
|
|
414
|
+
me,
|
|
415
415
|
{
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
416
|
+
label: u === S.Dismissal ? n("timeOffTitleDismissal") : n("timeOffTitle"),
|
|
417
|
+
data: T,
|
|
418
|
+
columns: [
|
|
419
|
+
{ title: n("timeOffTypeColumn"), render: (e) => e.name },
|
|
420
|
+
{
|
|
421
|
+
title: n("preapprovedHoursColumn"),
|
|
422
|
+
justify: "end",
|
|
423
|
+
render: (e) => Number(e.approvedRequestHours) > 0 ? Number(e.approvedRequestHours) : null
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
title: n("additionalHoursColumn"),
|
|
427
|
+
justify: "end",
|
|
428
|
+
render: (e) => /* @__PURE__ */ t("div", { className: c.timeOffInputContainer, children: /* @__PURE__ */ t(De, { timeOff: e, employee: p, shouldVisuallyHideLabel: !0 }) })
|
|
429
|
+
}
|
|
430
|
+
]
|
|
431
|
+
}
|
|
432
|
+
)
|
|
421
433
|
] }),
|
|
422
|
-
u ===
|
|
434
|
+
u === S.Dismissal && T.length > 0 && /* @__PURE__ */ m("div", { className: c.fieldGroup, children: [
|
|
423
435
|
/* @__PURE__ */ m(E, { flexDirection: "column", gap: 4, children: [
|
|
424
436
|
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("finalPayoutTitle") }),
|
|
425
|
-
/* @__PURE__ */ t(
|
|
437
|
+
/* @__PURE__ */ t(B, { variant: "supporting", children: n("finalPayoutDescription") })
|
|
426
438
|
] }),
|
|
427
|
-
/* @__PURE__ */ t(
|
|
428
|
-
|
|
439
|
+
/* @__PURE__ */ t(I, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: T.map((e) => /* @__PURE__ */ t(
|
|
440
|
+
Le,
|
|
429
441
|
{
|
|
430
442
|
timeOff: e,
|
|
431
443
|
employee: p
|
|
@@ -436,7 +448,7 @@ const nn = s.object({
|
|
|
436
448
|
G.length > 0 && /* @__PURE__ */ m("div", { className: c.fieldGroup, children: [
|
|
437
449
|
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("additionalEarningsTitle") }),
|
|
438
450
|
/* @__PURE__ */ t(
|
|
439
|
-
|
|
451
|
+
I,
|
|
440
452
|
{
|
|
441
453
|
gridTemplateColumns: { base: "1fr", small: [320, 320], large: [320, 320, 320] },
|
|
442
454
|
gap: 20,
|
|
@@ -445,9 +457,9 @@ const nn = s.object({
|
|
|
445
457
|
{
|
|
446
458
|
type: "number",
|
|
447
459
|
min: 0,
|
|
448
|
-
transform:
|
|
460
|
+
transform: j,
|
|
449
461
|
adornmentStart: "$",
|
|
450
|
-
label:
|
|
462
|
+
label: X(e.name),
|
|
451
463
|
name: `fixedCompensations.${e.name}`,
|
|
452
464
|
errorMessage: n("validations.negativeAmount")
|
|
453
465
|
},
|
|
@@ -456,26 +468,26 @@ const nn = s.object({
|
|
|
456
468
|
}
|
|
457
469
|
)
|
|
458
470
|
] }),
|
|
459
|
-
|
|
471
|
+
z && /* @__PURE__ */ m("div", { className: c.fieldGroup, children: [
|
|
460
472
|
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("reimbursementTitle") }),
|
|
461
|
-
/* @__PURE__ */ t(
|
|
473
|
+
/* @__PURE__ */ t(I, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: /* @__PURE__ */ t(
|
|
462
474
|
F,
|
|
463
475
|
{
|
|
464
476
|
type: "number",
|
|
465
477
|
min: 0,
|
|
466
|
-
transform:
|
|
478
|
+
transform: j,
|
|
467
479
|
adornmentStart: "$",
|
|
468
|
-
label:
|
|
469
|
-
name: `fixedCompensations.${
|
|
480
|
+
label: X(x),
|
|
481
|
+
name: `fixedCompensations.${x}`,
|
|
470
482
|
errorMessage: n("validations.negativeAmount")
|
|
471
483
|
}
|
|
472
484
|
) })
|
|
473
485
|
] }),
|
|
474
|
-
|
|
486
|
+
O && D && /* @__PURE__ */ m("div", { className: c.fieldGroup, children: [
|
|
475
487
|
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("reimbursementTitle") }),
|
|
476
|
-
!(w.length === 0 && K) && /* @__PURE__ */ t(
|
|
488
|
+
!(w.length === 0 && K) && /* @__PURE__ */ t(me, { label: n("reimbursementsTableLabel"), ...Te }),
|
|
477
489
|
K ? /* @__PURE__ */ t(te, { ...U, children: /* @__PURE__ */ m(E, { flexDirection: "column", gap: 12, children: [
|
|
478
|
-
/* @__PURE__ */ m(
|
|
490
|
+
/* @__PURE__ */ m(I, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: [
|
|
479
491
|
/* @__PURE__ */ t(
|
|
480
492
|
F,
|
|
481
493
|
{
|
|
@@ -490,8 +502,8 @@ const nn = s.object({
|
|
|
490
502
|
name: "amount",
|
|
491
503
|
type: "number",
|
|
492
504
|
min: 0,
|
|
493
|
-
max:
|
|
494
|
-
transform:
|
|
505
|
+
max: de,
|
|
506
|
+
transform: j,
|
|
495
507
|
adornmentStart: "$",
|
|
496
508
|
isRequired: !0,
|
|
497
509
|
label: n("reimbursementAmountLabel"),
|
|
@@ -500,7 +512,7 @@ const nn = s.object({
|
|
|
500
512
|
)
|
|
501
513
|
] }),
|
|
502
514
|
/* @__PURE__ */ m(E, { gap: 12, children: [
|
|
503
|
-
/* @__PURE__ */ t(l, { onClick: U.handleSubmit(
|
|
515
|
+
/* @__PURE__ */ t(l, { onClick: U.handleSubmit(Me), children: n("saveReimbursementCta") }),
|
|
504
516
|
/* @__PURE__ */ t(l, { variant: "secondary", onClick: Z, children: n("cancelReimbursementCta") })
|
|
505
517
|
] })
|
|
506
518
|
] }) }) : w.length > 0 && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
@@ -519,7 +531,7 @@ const nn = s.object({
|
|
|
519
531
|
h && /* @__PURE__ */ m("div", { className: c.fieldGroup, children: [
|
|
520
532
|
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("paymentMethodTitle") }),
|
|
521
533
|
/* @__PURE__ */ t(
|
|
522
|
-
|
|
534
|
+
Je,
|
|
523
535
|
{
|
|
524
536
|
name: "paymentMethod",
|
|
525
537
|
isRequired: !0,
|
|
@@ -527,11 +539,11 @@ const nn = s.object({
|
|
|
527
539
|
description: n("paymentMethodDescription"),
|
|
528
540
|
options: [
|
|
529
541
|
{
|
|
530
|
-
value:
|
|
542
|
+
value: v.DirectDeposit,
|
|
531
543
|
label: n("paymentMethodOptions.directDeposit")
|
|
532
544
|
},
|
|
533
545
|
{
|
|
534
|
-
value:
|
|
546
|
+
value: v.Check,
|
|
535
547
|
label: n("paymentMethodOptions.check")
|
|
536
548
|
}
|
|
537
549
|
]
|