@gusto/embedded-react-sdk 0.55.7 → 0.55.8
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 +23 -0
- package/dist/components/Common/FadeIn/FadeIn.module.scss.js +4 -4
- package/dist/components/Common/FieldCaption/FieldCaption.js +22 -18
- package/dist/components/Common/FieldCaption/FieldCaption.js.map +1 -1
- package/dist/components/Common/Flex/Flex.js +17 -15
- package/dist/components/Common/Flex/Flex.js.map +1 -1
- package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
- package/dist/components/Common/UI/Heading/Heading.module.scss.js +7 -7
- package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +5 -4
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +5 -4
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +7 -6
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +5 -4
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +5 -4
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +27 -27
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +10 -9
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +8 -7
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +5 -4
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +5 -4
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +5 -4
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +45 -30
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/PayScheduleComponents.js +12 -11
- package/dist/components/Company/PaySchedule/PayScheduleComponents.js.map +1 -1
- package/dist/components/Company/PaySchedule/PayScheduleForm.js +72 -55
- package/dist/components/Company/PaySchedule/PayScheduleForm.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js +24 -20
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js +33 -29
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +131 -115
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +5 -4
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +5 -4
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/TaxRateManagement/context.js +5 -4
- package/dist/components/Company/StateTaxes/TaxRateManagement/context.js.map +1 -1
- package/dist/components/Contractor/ContractorList/management/ManagementContractorList.js +31 -29
- package/dist/components/Contractor/ContractorList/management/ManagementContractorList.js.map +1 -1
- package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js +110 -109
- package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js.map +1 -1
- package/dist/components/Contractor/ContractorList/onboarding/ContractorList.js +21 -19
- package/dist/components/Contractor/ContractorList/onboarding/ContractorList.js.map +1 -1
- package/dist/components/Contractor/ContractorList/onboarding/ContractorListView.js +56 -55
- package/dist/components/Contractor/ContractorList/onboarding/ContractorListView.js.map +1 -1
- package/dist/components/Contractor/Dashboard/Dashboard.js +34 -33
- package/dist/components/Contractor/Dashboard/Dashboard.js.map +1 -1
- package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js +117 -115
- package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +77 -75
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +44 -43
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +40 -39
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js +35 -29
- package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js +21 -20
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +41 -40
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +21 -20
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +33 -32
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +80 -78
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +44 -43
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
- package/dist/components/Contractor/Submit/Submit.js +113 -105
- package/dist/components/Contractor/Submit/Submit.js.map +1 -1
- package/dist/components/Contractor/Submit/SubmitDone.js +11 -11
- package/dist/components/Contractor/Submit/SubmitDone.js.map +1 -1
- package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.js +20 -18
- package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.js.map +1 -1
- package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.js +18 -15
- package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.js.map +1 -1
- package/dist/components/Employee/Dashboard/Dashboard.js +33 -32
- package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -1
- package/dist/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.js +21 -19
- package/dist/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.js.map +1 -1
- package/dist/components/Employee/Documents/management/DocumentManager.js +34 -26
- package/dist/components/Employee/Documents/management/DocumentManager.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +5 -4
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js +30 -29
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +54 -53
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js +29 -28
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.js +16 -15
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js +27 -25
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js +89 -80
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -1
- package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.js +22 -20
- package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js +25 -24
- package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js.map +1 -1
- package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js +1 -1
- package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js +1 -1
- package/dist/components/Employee/HomeAddress/management/HomeAddressEditForm.js +19 -17
- package/dist/components/Employee/HomeAddress/management/HomeAddressEditForm.js.map +1 -1
- package/dist/components/Employee/HomeAddress/management/HomeAddressView.js +80 -79
- package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/management/PaymentMethodBankForm.js +4 -4
- package/dist/components/Employee/PaymentMethod/onboarding/BankForm.js +4 -4
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +40 -39
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +34 -33
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js +43 -41
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +22 -21
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/WorkAddressEditForm.js +19 -17
- package/dist/components/Employee/WorkAddress/management/WorkAddressEditForm.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/WorkAddressView.js +120 -116
- package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -1
- package/dist/components/Flow/Flow.js +1 -1
- package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +29 -29
- package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js +37 -36
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js +37 -36
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +35 -28
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +27 -26
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.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 +52 -51
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +34 -33
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
- package/dist/components/Payroll/OffCycleDeductionsSetting/OffCycleDeductionsSetting.js +23 -21
- package/dist/components/Payroll/OffCycleDeductionsSetting/OffCycleDeductionsSetting.js.map +1 -1
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js +26 -19
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js.map +1 -1
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +14 -12
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +112 -109
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +67 -65
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +43 -41
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +225 -223
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js +78 -75
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.js +27 -27
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeSchema.js +19 -19
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeSchema.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js +51 -48
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +58 -48
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +58 -57
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +83 -69
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollList.js +62 -60
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +119 -117
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +101 -99
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +120 -110
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js +20 -14
- package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +39 -38
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
- package/dist/components/Payroll/PrintChecks/PrintChecksBanner/PrintChecksBanner.js +24 -17
- package/dist/components/Payroll/PrintChecks/PrintChecksBanner/PrintChecksBanner.js.map +1 -1
- package/dist/components/Payroll/PrintChecks/PrintChecksFailure/PrintChecksFailure.js +17 -17
- package/dist/components/Payroll/PrintChecks/PrintChecksFailure/PrintChecksFailure.js.map +1 -1
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js +88 -80
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js.map +1 -1
- package/dist/components/Payroll/PrintChecks/PrintChecksSummary/PrintChecksSummary.js +26 -26
- package/dist/components/Payroll/PrintChecks/PrintChecksSummary/PrintChecksSummary.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +32 -32
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +50 -48
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +34 -33
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +1 -1
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +28 -24
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js +255 -228
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.module.scss.js +8 -4
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.module.scss.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +4 -3
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js +5 -5
- package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +1 -1
- package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js +8 -7
- package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +1 -1
- package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js +51 -50
- package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js.map +1 -1
- package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js +20 -18
- package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js.map +1 -1
- package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +51 -49
- package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +1 -1
- package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js +20 -20
- package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +1 -1
- package/dist/components/TimeOff/PolicyList/PolicyList.js +50 -49
- package/dist/components/TimeOff/PolicyList/PolicyList.js.map +1 -1
- package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js +34 -33
- package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js.map +1 -1
- package/dist/components/TimeOff/PolicySettings/PolicySettings.js +46 -45
- package/dist/components/TimeOff/PolicySettings/PolicySettings.js.map +1 -1
- package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js +152 -143
- package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js.map +1 -1
- package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +14 -13
- package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +1 -1
- package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +44 -35
- package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +88 -71
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +164 -155
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +57 -55
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +25 -24
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +94 -92
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -1
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js +156 -155
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js.map +1 -1
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js +21 -19
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js.map +1 -1
- package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js +28 -26
- package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js.map +1 -1
- package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
- package/dist/contexts/UnstableFeaturesProvider/useUnstableFeature.js.map +1 -1
- package/dist/i18n/en/Company.PaySchedule.json.js +22 -20
- package/dist/i18n/en/Company.PaySchedule.json.js.map +1 -1
- package/dist/i18n/en/Payroll.UNSTABLE_PayrollEditEmployee.json.js +62 -58
- package/dist/i18n/en/Payroll.UNSTABLE_PayrollEditEmployee.json.js.map +1 -1
- package/dist/package.json.js +1 -1
- package/dist/src/components/Common/FieldCaption/FieldCaption.d.ts +2 -16
- package/dist/src/components/Common/FieldCaption/FieldCaptionTypes.d.ts +22 -0
- package/dist/src/components/Common/FieldCaption/index.d.ts +1 -0
- package/dist/src/components/Common/Flex/Flex.d.ts +3 -1
- package/dist/src/components/Company/PaySchedule/PaySchedule.d.ts +10 -2
- package/dist/src/components/Company/PaySchedule/PayScheduleComponents.d.ts +1 -0
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/fields.d.ts +9 -1
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/index.d.ts +2 -2
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.d.ts +21 -5
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +21 -3
- package/dist/src/components/Contractor/ContractorList/management/ManagementContractorListView.d.ts +3 -1
- package/dist/src/components/Contractor/ContractorList/onboarding/ContractorListView.d.ts +3 -1
- package/dist/src/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts +3 -1
- package/dist/src/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +3 -1
- package/dist/src/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.d.ts +3 -1
- package/dist/src/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.d.ts +3 -1
- package/dist/src/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.d.ts +3 -1
- package/dist/src/components/Contractor/Submit/SubmitDone.d.ts +3 -1
- package/dist/src/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.d.ts +1 -1
- package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.d.ts +3 -1
- package/dist/src/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.d.ts +3 -1
- package/dist/src/components/Employee/EmployeeList/management/ManagementEmployeeListView.d.ts +3 -1
- package/dist/src/components/Employee/EmployeeList/onboarding/EmployeeListView.d.ts +3 -1
- package/dist/src/components/Employee/EmployeeList/shared/useEmployeeList.d.ts +4 -0
- package/dist/src/components/Employee/HomeAddress/management/HomeAddressView.d.ts +3 -1
- package/dist/src/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.d.ts +3 -1
- package/dist/src/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.d.ts +3 -1
- package/dist/src/components/Employee/WorkAddress/management/WorkAddressView.d.ts +3 -1
- package/dist/src/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.d.ts +3 -1
- package/dist/src/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.d.ts +1 -1
- package/dist/src/components/Payroll/OffCycleCreation/OffCycleCreationTypes.d.ts +2 -0
- package/dist/src/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.d.ts +9 -9
- package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.d.ts +2 -2
- package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeSchema.d.ts +4 -4
- package/dist/src/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollList/PayrollListPresentation.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +2 -1
- package/dist/src/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.d.ts +2 -1
- package/dist/src/components/Payroll/TransitionCreation/TransitionCreationPresentation.d.ts +1 -1
- package/dist/src/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +2 -0
- package/dist/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.d.ts +3 -1
- package/dist/src/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.d.ts +1 -1
- package/dist/src/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.d.ts +1 -1
- package/dist/src/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.d.ts +1 -1
- package/dist/src/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/PolicyList/PolicyListPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/PolicyList/PolicyListTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/PolicySettings/PolicySettingsPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/PolicySettings/PolicySettingsTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.d.ts +2 -0
- package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.d.ts +2 -0
- package/dist/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailTypes.d.ts +3 -0
- package/dist/src/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.d.ts +1 -1
- package/dist/src/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayoutTypes.d.ts +2 -0
- package/dist/src/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
- package/dist/src/contexts/ComponentAdapter/useComponentContext.d.ts +4 -1
- package/dist/src/contexts/UnstableFeaturesProvider/useUnstableFeature.d.ts +4 -1
- package/dist/src/i18n/types.d.ts +28 -2
- package/dist/src/index.d.ts +1 -1
- package/dist/src/models/external.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +16 -15
package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js
CHANGED
|
@@ -1,362 +1,389 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { PayrollUpdatePaymentMethod as
|
|
5
|
-
import { isSplitByWorkweek as
|
|
6
|
-
import { PayrollEditEmployeeErrorCodes as
|
|
7
|
-
import
|
|
8
|
-
import { componentEvents as
|
|
9
|
-
import { BaseBoundaries as
|
|
1
|
+
import { jsx as t, jsxs as m, Fragment as J } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as fe, useMemo as Ee, Fragment as ge } from "react";
|
|
3
|
+
import { useTranslation as ee } from "react-i18next";
|
|
4
|
+
import { PayrollUpdatePaymentMethod as ye } from "@gusto/embedded-api/models/components/payrollupdate";
|
|
5
|
+
import { isSplitByWorkweek as B } from "../PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js";
|
|
6
|
+
import { PayrollEditEmployeeErrorCodes as F } from "../PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeSchema.js";
|
|
7
|
+
import E from "./UNSTABLE_PayrollEditEmployee.module.scss.js";
|
|
8
|
+
import { componentEvents as Q, COMPENSATION_NAME_REIMBURSEMENT as Ce, COMPENSATION_NAME_PAYCHECK_TIPS as Ne, COMPENSATION_NAME_CASH_TIPS as ve, COMPENSATION_NAME_CORRECTION_PAYMENT as Oe, COMPENSATION_NAME_COMMISSION as Te, COMPENSATION_NAME_BONUS as Ae, COMPENSATION_NAME_DOUBLE_OVERTIME as Pe, COMPENSATION_NAME_OVERTIME as Se, COMPENSATION_NAME_REGULAR_HOURS as Me } from "../../../shared/constants.js";
|
|
9
|
+
import { BaseBoundaries as Re, BaseLayout as X } from "../../Base/Base.js";
|
|
10
10
|
import "../../Base/useBase.js";
|
|
11
|
-
import { useComponentDictionary as
|
|
12
|
-
import { useComponentContext as
|
|
13
|
-
import { Flex as
|
|
14
|
-
import { Grid as
|
|
15
|
-
import { EmptyData as
|
|
16
|
-
import { SDKFormProvider as
|
|
17
|
-
import { firstLastName as
|
|
18
|
-
import { useDateFormatter as
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
11
|
+
import { useComponentDictionary as Le, useI18n as _e } from "../../../i18n/I18n.js";
|
|
12
|
+
import { useComponentContext as te } from "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
13
|
+
import { Flex as u } from "../../Common/Flex/Flex.js";
|
|
14
|
+
import { Grid as ke } from "../../Common/Grid/Grid.js";
|
|
15
|
+
import { EmptyData as we } from "../../Common/EmptyData/EmptyData.js";
|
|
16
|
+
import { SDKFormProvider as xe } from "../../../partner-hook-utils/form/SDKFormProvider.js";
|
|
17
|
+
import { firstLastName as De, formatNumberAsCurrency as Ie } from "../../../helpers/formattedStrings.js";
|
|
18
|
+
import { useDateFormatter as Be } from "../../../hooks/useDateFormatter.js";
|
|
19
|
+
import Fe from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
|
|
20
|
+
import Z from "../../../assets/icons/plus-circle.svg.js";
|
|
21
|
+
import Ue from "../../../assets/icons/trashcan.svg.js";
|
|
22
|
+
import { usePayrollEditEmployeeForm as He } from "../PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js";
|
|
23
|
+
import { DataView as R } from "../../Common/DataView/DataView.js";
|
|
24
|
+
import { useDataView as Ve } from "../../Common/DataView/useDataView.js";
|
|
25
|
+
function ft({
|
|
26
|
+
FallbackComponent: h,
|
|
27
|
+
LoaderComponent: b,
|
|
28
|
+
...N
|
|
28
29
|
}) {
|
|
29
30
|
return /* @__PURE__ */ t(
|
|
30
|
-
|
|
31
|
+
Re,
|
|
31
32
|
{
|
|
32
33
|
componentName: "Payroll.UNSTABLE_PayrollEditEmployee",
|
|
33
|
-
FallbackComponent:
|
|
34
|
-
LoaderComponent:
|
|
35
|
-
children: /* @__PURE__ */ t(
|
|
34
|
+
FallbackComponent: h,
|
|
35
|
+
LoaderComponent: b,
|
|
36
|
+
children: /* @__PURE__ */ t(We, { LoaderComponent: b, ...N })
|
|
36
37
|
}
|
|
37
38
|
);
|
|
38
39
|
}
|
|
39
|
-
const
|
|
40
|
-
rows:
|
|
41
|
-
isAdding:
|
|
42
|
-
draftFields:
|
|
43
|
-
onBeginAdd:
|
|
44
|
-
onSave:
|
|
45
|
-
onCancel:
|
|
46
|
-
onRemove:
|
|
40
|
+
const je = ({
|
|
41
|
+
rows: h,
|
|
42
|
+
isAdding: b,
|
|
43
|
+
draftFields: N,
|
|
44
|
+
onBeginAdd: A,
|
|
45
|
+
onSave: P,
|
|
46
|
+
onCancel: L,
|
|
47
|
+
onRemove: S
|
|
47
48
|
}) => {
|
|
48
|
-
const { t: e } =
|
|
49
|
-
data:
|
|
49
|
+
const { t: e } = ee("Payroll.UNSTABLE_PayrollEditEmployee"), { Button: g, ButtonIcon: M, Heading: y } = te(), { Description: C, Amount: v } = N, O = Ve({
|
|
50
|
+
data: h,
|
|
50
51
|
columns: [
|
|
51
52
|
{
|
|
52
53
|
key: "description",
|
|
53
54
|
title: e("reimbursementDescriptionColumn"),
|
|
54
|
-
render: (
|
|
55
|
+
render: (d) => d.description.trim() || e("reimbursementUnnamedFallback")
|
|
55
56
|
},
|
|
56
57
|
{
|
|
57
58
|
key: "amount",
|
|
58
59
|
title: e("reimbursementAmountColumn"),
|
|
59
60
|
justify: "end",
|
|
60
|
-
render: (
|
|
61
|
+
render: (d) => Ie(parseFloat(d.amount || "0"))
|
|
61
62
|
},
|
|
62
63
|
{
|
|
63
64
|
key: "recurring",
|
|
64
65
|
title: e("reimbursementTypeColumn"),
|
|
65
|
-
render: (
|
|
66
|
+
render: (d) => d.recurring ? e("reimbursementTypeRecurring") : e("reimbursementTypeOneTime")
|
|
66
67
|
}
|
|
67
68
|
],
|
|
68
|
-
itemMenu: (
|
|
69
|
-
if (
|
|
70
|
-
const
|
|
69
|
+
itemMenu: (d) => {
|
|
70
|
+
if (d.recurring) return null;
|
|
71
|
+
const T = d.description.trim() || e("reimbursementUnnamedFallback");
|
|
71
72
|
return /* @__PURE__ */ t(
|
|
72
|
-
|
|
73
|
+
M,
|
|
73
74
|
{
|
|
74
75
|
variant: "tertiary",
|
|
75
76
|
onClick: () => {
|
|
76
|
-
|
|
77
|
+
S(d.index);
|
|
77
78
|
},
|
|
78
|
-
"aria-label": e("removeReimbursementLabel", { description:
|
|
79
|
-
children: /* @__PURE__ */ t(
|
|
79
|
+
"aria-label": e("removeReimbursementLabel", { description: T }),
|
|
80
|
+
children: /* @__PURE__ */ t(Ue, { "aria-hidden": !0 })
|
|
80
81
|
}
|
|
81
82
|
);
|
|
82
83
|
},
|
|
83
|
-
emptyState: () => /* @__PURE__ */ t(
|
|
84
|
+
emptyState: () => /* @__PURE__ */ t(we, { title: e("reimbursementEmptyTitle"), children: /* @__PURE__ */ t(g, { variant: "secondary", onClick: A, icon: /* @__PURE__ */ t(Z, { "aria-hidden": !0 }), children: e("addReimbursementCta") }) })
|
|
84
85
|
});
|
|
85
|
-
return /* @__PURE__ */
|
|
86
|
-
/* @__PURE__ */ t(
|
|
87
|
-
!(
|
|
88
|
-
|
|
89
|
-
/* @__PURE__ */
|
|
86
|
+
return /* @__PURE__ */ m(u, { flexDirection: "column", gap: 12, children: [
|
|
87
|
+
/* @__PURE__ */ t(y, { as: "h3", styledAs: "h4", children: e("reimbursementTitle") }),
|
|
88
|
+
!(h.length === 0 && b) && /* @__PURE__ */ t(R, { label: e("reimbursementsTableLabel"), ...O }),
|
|
89
|
+
b ? /* @__PURE__ */ m(u, { flexDirection: "column", gap: 12, children: [
|
|
90
|
+
/* @__PURE__ */ m(ke, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: [
|
|
90
91
|
/* @__PURE__ */ t(
|
|
91
|
-
|
|
92
|
+
C,
|
|
92
93
|
{
|
|
93
94
|
label: e("reimbursementDescriptionLabel"),
|
|
94
95
|
placeholder: e("reimbursementDescriptionPlaceholder")
|
|
95
96
|
}
|
|
96
97
|
),
|
|
97
|
-
/* @__PURE__ */ t(
|
|
98
|
+
/* @__PURE__ */ t(v, { label: e("reimbursementAmountLabel"), adornmentStart: "$", isRequired: !0 })
|
|
98
99
|
] }),
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */ t(
|
|
101
|
-
/* @__PURE__ */ t(
|
|
100
|
+
/* @__PURE__ */ m(u, { gap: 12, children: [
|
|
101
|
+
/* @__PURE__ */ t(g, { onClick: P, title: e("saveReimbursementCta"), children: e("saveReimbursementCta") }),
|
|
102
|
+
/* @__PURE__ */ t(g, { variant: "secondary", onClick: L, title: e("cancelReimbursementCta"), children: e("cancelReimbursementCta") })
|
|
102
103
|
] })
|
|
103
|
-
] }) :
|
|
104
|
-
|
|
104
|
+
] }) : h.length > 0 && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
105
|
+
g,
|
|
105
106
|
{
|
|
106
107
|
variant: "secondary",
|
|
107
|
-
onClick:
|
|
108
|
+
onClick: A,
|
|
108
109
|
title: e("addReimbursementLink"),
|
|
109
|
-
icon: /* @__PURE__ */ t(
|
|
110
|
+
icon: /* @__PURE__ */ t(Z, { "aria-hidden": !0 }),
|
|
110
111
|
children: e("addReimbursementLink")
|
|
111
112
|
}
|
|
112
113
|
) })
|
|
113
114
|
] });
|
|
114
|
-
},
|
|
115
|
-
employeeId:
|
|
116
|
-
companyId:
|
|
117
|
-
payrollId:
|
|
118
|
-
withReimbursements:
|
|
119
|
-
onEvent:
|
|
120
|
-
dictionary:
|
|
121
|
-
LoaderComponent:
|
|
115
|
+
}, We = ({
|
|
116
|
+
employeeId: h,
|
|
117
|
+
companyId: b,
|
|
118
|
+
payrollId: N,
|
|
119
|
+
withReimbursements: A = !0,
|
|
120
|
+
onEvent: P,
|
|
121
|
+
dictionary: L,
|
|
122
|
+
LoaderComponent: S
|
|
122
123
|
}) => {
|
|
123
|
-
|
|
124
|
-
const { t: e } =
|
|
124
|
+
Le("Payroll.UNSTABLE_PayrollEditEmployee", L), _e("Payroll.UNSTABLE_PayrollEditEmployee");
|
|
125
|
+
const { t: e } = ee("Payroll.UNSTABLE_PayrollEditEmployee"), g = Be(), { Alert: M, Box: y, BoxHeader: C, Button: v, Heading: O, Text: d } = te(), T = fe(null), f = Fe({ ref: T }).includes("small"), ne = Ee(
|
|
125
126
|
() => ({
|
|
126
|
-
[
|
|
127
|
-
[
|
|
128
|
-
[
|
|
127
|
+
[F.NEGATIVE_AMOUNT]: e("validations.negativeAmount"),
|
|
128
|
+
[F.REQUIRED_WORKWEEK]: e("validations.requiredWorkweek"),
|
|
129
|
+
[F.REIMBURSEMENT_AMOUNT]: e("validations.reimbursementAmount")
|
|
129
130
|
}),
|
|
130
131
|
[e]
|
|
131
|
-
),
|
|
132
|
-
employeeId:
|
|
133
|
-
companyId:
|
|
134
|
-
payrollId:
|
|
135
|
-
withReimbursements:
|
|
136
|
-
errorMessages:
|
|
132
|
+
), r = He({
|
|
133
|
+
employeeId: h,
|
|
134
|
+
companyId: b,
|
|
135
|
+
payrollId: N,
|
|
136
|
+
withReimbursements: A,
|
|
137
|
+
errorMessages: ne
|
|
137
138
|
});
|
|
138
|
-
if (
|
|
139
|
-
return /* @__PURE__ */ t(
|
|
140
|
-
const { employee:
|
|
141
|
-
first_name:
|
|
142
|
-
last_name:
|
|
143
|
-
}),
|
|
144
|
-
switch (
|
|
145
|
-
case
|
|
139
|
+
if (r.isLoading)
|
|
140
|
+
return /* @__PURE__ */ t("div", { ref: T, className: E.container, children: /* @__PURE__ */ t(X, { isLoading: !0, error: r.errorHandling.errors, LoaderComponent: S }) });
|
|
141
|
+
const { employee: _ } = r.data, c = r.form.Fields, k = De({
|
|
142
|
+
first_name: _.firstName,
|
|
143
|
+
last_name: _.lastName
|
|
144
|
+
}), re = (n) => {
|
|
145
|
+
switch (n) {
|
|
146
|
+
case Me:
|
|
146
147
|
return e("compensationNames.regularHours");
|
|
147
|
-
case
|
|
148
|
+
case Se:
|
|
148
149
|
return e("compensationNames.overtime");
|
|
149
|
-
case
|
|
150
|
+
case Pe:
|
|
150
151
|
return e("compensationNames.doubleOvertime");
|
|
151
152
|
default:
|
|
152
|
-
return
|
|
153
|
+
return n;
|
|
153
154
|
}
|
|
154
|
-
},
|
|
155
|
-
switch (
|
|
156
|
-
case
|
|
155
|
+
}, w = (n) => {
|
|
156
|
+
switch (n) {
|
|
157
|
+
case Ae:
|
|
157
158
|
return e("fixedCompensationNames.bonus");
|
|
158
|
-
case
|
|
159
|
+
case Te:
|
|
159
160
|
return e("fixedCompensationNames.commission");
|
|
160
|
-
case
|
|
161
|
+
case Oe:
|
|
161
162
|
return e("fixedCompensationNames.correctionPayment");
|
|
162
|
-
case
|
|
163
|
+
case ve:
|
|
163
164
|
return e("fixedCompensationNames.cashTips");
|
|
164
|
-
case
|
|
165
|
+
case Ne:
|
|
165
166
|
return e("fixedCompensationNames.paycheckTips");
|
|
166
|
-
case
|
|
167
|
+
case Ce:
|
|
167
168
|
return e("fixedCompensationNames.reimbursement");
|
|
168
169
|
default:
|
|
169
|
-
return
|
|
170
|
+
return n;
|
|
170
171
|
}
|
|
171
|
-
},
|
|
172
|
-
const {
|
|
173
|
-
|
|
174
|
-
label: g,
|
|
175
|
-
rowHeader: p,
|
|
176
|
-
valueColumnLabel: d,
|
|
177
|
-
labelFor: L,
|
|
178
|
-
adornmentStart: ne,
|
|
179
|
-
adornmentEnd: ie,
|
|
180
|
-
footer: H
|
|
181
|
-
} = i, j = ce(r), ae = n.data.workweeks[0]?.startDate ?? "", V = j ? r[ae] ?? [] : r;
|
|
182
|
-
if (V.length === 0 && !H) return null;
|
|
183
|
-
const W = (m, k) => /* @__PURE__ */ t("div", { className: P.inputContainer, children: /* @__PURE__ */ t(
|
|
184
|
-
m.Field,
|
|
172
|
+
}, x = (n) => B(n) ? n[r.data.workweeks[0]?.startDate ?? ""] ?? [] : n, U = (n, i) => {
|
|
173
|
+
const { label: o, rowHeader: a, valueColumnLabel: l, labelFor: s, adornmentStart: me, adornmentEnd: de } = i, ce = B(n), ue = x(n), $ = (p, D) => /* @__PURE__ */ t("div", { className: E.inputContainer, children: /* @__PURE__ */ t(
|
|
174
|
+
p.Field,
|
|
185
175
|
{
|
|
186
|
-
label:
|
|
176
|
+
label: D,
|
|
187
177
|
shouldVisuallyHideLabel: !0,
|
|
188
|
-
adornmentStart:
|
|
189
|
-
adornmentEnd:
|
|
178
|
+
adornmentStart: me,
|
|
179
|
+
adornmentEnd: de
|
|
190
180
|
}
|
|
191
|
-
) }),
|
|
192
|
-
title:
|
|
181
|
+
) }), pe = {
|
|
182
|
+
title: l,
|
|
193
183
|
justify: "end",
|
|
194
|
-
render: (
|
|
195
|
-
},
|
|
196
|
-
({ startDate:
|
|
197
|
-
const
|
|
184
|
+
render: (p) => $(p, s(p.name))
|
|
185
|
+
}, he = r.data.workweeks.map(
|
|
186
|
+
({ startDate: p, endDate: D }) => {
|
|
187
|
+
const K = g.formatPayPeriodRange(p, D, {
|
|
198
188
|
useShortMonth: !0
|
|
199
189
|
});
|
|
200
190
|
return {
|
|
201
|
-
title:
|
|
191
|
+
title: K,
|
|
202
192
|
justify: "end",
|
|
203
|
-
render: (
|
|
204
|
-
const
|
|
205
|
-
(
|
|
193
|
+
render: (I) => {
|
|
194
|
+
const q = n[p]?.find(
|
|
195
|
+
(z) => z.jobUuid === I.jobUuid && z.name === I.name
|
|
206
196
|
);
|
|
207
|
-
return
|
|
197
|
+
return q ? $(q, `${s(I.name)} ${K}`) : null;
|
|
208
198
|
}
|
|
209
199
|
};
|
|
210
200
|
}
|
|
211
|
-
),
|
|
212
|
-
{ title:
|
|
213
|
-
...
|
|
201
|
+
), be = [
|
|
202
|
+
{ title: a, render: (p) => s(p.name) },
|
|
203
|
+
...ce ? he : [pe]
|
|
214
204
|
];
|
|
215
|
-
return /* @__PURE__ */ t(
|
|
216
|
-
},
|
|
217
|
-
|
|
218
|
-
|
|
205
|
+
return /* @__PURE__ */ t(R, { label: o, isWithinBox: !0, columns: be, data: ue });
|
|
206
|
+
}, ie = (n, i) => {
|
|
207
|
+
const { title: o, footer: a, ...l } = i;
|
|
208
|
+
return x(n).length === 0 && !a ? null : /* @__PURE__ */ t(y, { header: /* @__PURE__ */ t(C, { title: o }), withPadding: !1, footer: a, children: U(n, l) });
|
|
209
|
+
}, H = (n, i) => {
|
|
210
|
+
if (n.length === 0) return null;
|
|
211
|
+
const { title: o, description: a } = i, l = [
|
|
219
212
|
{
|
|
220
213
|
title: e("typeColumn"),
|
|
221
|
-
render: (
|
|
214
|
+
render: (s) => s.name
|
|
222
215
|
},
|
|
223
216
|
{
|
|
224
217
|
title: e("hoursColumn"),
|
|
225
218
|
justify: "end",
|
|
226
|
-
render: (
|
|
227
|
-
|
|
219
|
+
render: (s) => /* @__PURE__ */ t("div", { className: E.inputContainer, children: /* @__PURE__ */ t(
|
|
220
|
+
s.Field,
|
|
228
221
|
{
|
|
229
|
-
label:
|
|
222
|
+
label: s.name,
|
|
230
223
|
shouldVisuallyHideLabel: !0,
|
|
231
224
|
adornmentEnd: e("hoursUnit"),
|
|
232
|
-
description:
|
|
225
|
+
description: s.remaining !== null ? e("timeOffBalance.remaining", { balance: s.remaining }) : void 0
|
|
233
226
|
}
|
|
234
227
|
) })
|
|
235
228
|
}
|
|
236
229
|
];
|
|
237
|
-
return /* @__PURE__ */ t(
|
|
238
|
-
},
|
|
239
|
-
const
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
230
|
+
return /* @__PURE__ */ t(y, { header: /* @__PURE__ */ t(C, { title: o, description: a }), withPadding: !1, children: /* @__PURE__ */ t(R, { label: o, isWithinBox: !0, columns: l, data: n }) });
|
|
231
|
+
}, V = (n, i) => {
|
|
232
|
+
const o = [
|
|
233
|
+
{ title: e("typeColumn"), render: (a) => a.label },
|
|
234
|
+
{
|
|
235
|
+
title: e("amountColumn"),
|
|
236
|
+
justify: "end",
|
|
237
|
+
render: (a) => /* @__PURE__ */ t("div", { className: E.inputContainer, children: /* @__PURE__ */ t(a.Field, { label: a.label, shouldVisuallyHideLabel: !0, adornmentStart: "$" }) })
|
|
238
|
+
}
|
|
239
|
+
];
|
|
240
|
+
return /* @__PURE__ */ t(R, { label: i, isWithinBox: !0, columns: o, data: n });
|
|
241
|
+
}, j = (n) => /* @__PURE__ */ t("div", { className: E.earningsGroupLabel, children: /* @__PURE__ */ t(d, { size: "sm", weight: "semibold", children: n }) }), ae = () => {
|
|
242
|
+
const n = c.overtimeIncludedEarnings, i = c.overtimeExcludedEarnings.map((l) => ({
|
|
243
|
+
label: w(l.id),
|
|
244
|
+
Field: l.Field
|
|
245
|
+
})), o = x(n).length > 0;
|
|
246
|
+
if (!o && i.length === 0) return null;
|
|
247
|
+
const a = U(n, {
|
|
248
|
+
label: e("additionalEarningsTitle"),
|
|
249
|
+
rowHeader: e("typeColumn"),
|
|
250
|
+
valueColumnLabel: e("amountColumn"),
|
|
251
|
+
labelFor: w,
|
|
252
|
+
adornmentStart: "$"
|
|
253
|
+
});
|
|
254
|
+
if (!B(n)) {
|
|
255
|
+
const l = [
|
|
256
|
+
...n.map((s) => ({ label: w(s.name), Field: s.Field })),
|
|
257
|
+
...i
|
|
258
|
+
];
|
|
259
|
+
return /* @__PURE__ */ t(y, { header: /* @__PURE__ */ t(C, { title: e("additionalEarningsTitle") }), withPadding: !1, children: V(l, e("additionalEarningsTitle")) });
|
|
260
|
+
}
|
|
261
|
+
return /* @__PURE__ */ m(y, { header: /* @__PURE__ */ t(C, { title: e("additionalEarningsTitle") }), withPadding: !1, children: [
|
|
262
|
+
o ? /* @__PURE__ */ m(J, { children: [
|
|
263
|
+
/* @__PURE__ */ t("div", { className: E.earningsAlert, children: /* @__PURE__ */ t(
|
|
264
|
+
M,
|
|
265
|
+
{
|
|
266
|
+
status: "info",
|
|
267
|
+
label: e("overtimeMultiplierEarningsAlert", { employeeName: k }),
|
|
268
|
+
disableScrollIntoView: !0
|
|
269
|
+
}
|
|
270
|
+
) }),
|
|
271
|
+
j(e("overtimeIncludedEarningsGroupLabel")),
|
|
272
|
+
a
|
|
273
|
+
] }) : null,
|
|
274
|
+
i.length > 0 ? /* @__PURE__ */ m(J, { children: [
|
|
275
|
+
j(e("overtimeExcludedEarningsGroupLabel")),
|
|
276
|
+
V(i, e("overtimeExcludedEarningsGroupLabel"))
|
|
277
|
+
] }) : null
|
|
278
|
+
] });
|
|
279
|
+
}, W = c.paymentMethod, G = c.reimbursementDraft, le = r.data.reimbursements, oe = r.form.reimbursementDraft?.isAdding ?? !1, se = async () => {
|
|
280
|
+
const n = await r.actions.onSubmit();
|
|
281
|
+
n && P(Q.RUN_PAYROLL_EMPLOYEE_SAVED, {
|
|
282
|
+
payrollPrepared: n.data,
|
|
283
|
+
employee: _
|
|
243
284
|
});
|
|
244
|
-
},
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
285
|
+
}, Y = /* @__PURE__ */ m(
|
|
286
|
+
u,
|
|
287
|
+
{
|
|
288
|
+
flexDirection: f ? "row" : "column",
|
|
289
|
+
justifyContent: f ? "flex-end" : "normal",
|
|
290
|
+
alignItems: f ? "flex-start" : "stretch",
|
|
291
|
+
gap: 12,
|
|
292
|
+
children: [
|
|
293
|
+
/* @__PURE__ */ t(v, { variant: "secondary", onClick: () => {
|
|
294
|
+
P(Q.RUN_PAYROLL_EMPLOYEE_CANCELLED);
|
|
295
|
+
}, title: e("cancelCta"), children: e("cancelCta") }),
|
|
252
296
|
/* @__PURE__ */ t(
|
|
253
|
-
|
|
297
|
+
v,
|
|
254
298
|
{
|
|
255
299
|
onClick: () => {
|
|
256
|
-
|
|
300
|
+
se();
|
|
257
301
|
},
|
|
258
302
|
title: e("saveCta"),
|
|
259
|
-
isLoading:
|
|
303
|
+
isLoading: r.status.isPending,
|
|
260
304
|
children: e("saveCta")
|
|
261
305
|
}
|
|
262
306
|
)
|
|
263
|
-
]
|
|
264
|
-
|
|
307
|
+
]
|
|
308
|
+
}
|
|
309
|
+
);
|
|
310
|
+
return /* @__PURE__ */ t("div", { ref: T, className: E.container, children: /* @__PURE__ */ t(X, { error: r.errorHandling.errors, LoaderComponent: S, children: /* @__PURE__ */ t(xe, { formHookResult: r, children: /* @__PURE__ */ m(u, { flexDirection: "column", gap: 24, children: [
|
|
311
|
+
/* @__PURE__ */ m(
|
|
312
|
+
u,
|
|
313
|
+
{
|
|
314
|
+
flexDirection: f ? "row" : "column",
|
|
315
|
+
justifyContent: "space-between",
|
|
316
|
+
alignItems: f ? "flex-start" : "stretch",
|
|
317
|
+
gap: 12,
|
|
318
|
+
children: [
|
|
319
|
+
/* @__PURE__ */ t(u, { flexDirection: "column", alignItems: "stretch", gap: 8, children: /* @__PURE__ */ t(O, { as: "h1", styledAs: "h2", children: e("pageTitle", { employeeName: k }) }) }),
|
|
320
|
+
f && Y
|
|
321
|
+
]
|
|
322
|
+
}
|
|
323
|
+
),
|
|
324
|
+
!f && Y,
|
|
265
325
|
(() => {
|
|
266
|
-
const
|
|
267
|
-
return /* @__PURE__ */
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
326
|
+
const n = c.jobs.length > 1, i = r.data.isOvertimeEligible ? e("regularHoursTitle") : e("regularHoursTitleWithoutOvertime"), o = !r.data.withOvertime && r.data.isOvertimeEligible, a = r.data.withOvertime && r.data.isOvertimeEligible;
|
|
327
|
+
return /* @__PURE__ */ m(u, { flexDirection: "column", gap: 16, children: [
|
|
328
|
+
n ? /* @__PURE__ */ t(O, { as: "h3", children: i }) : null,
|
|
329
|
+
a ? /* @__PURE__ */ t(
|
|
330
|
+
M,
|
|
271
331
|
{
|
|
272
332
|
status: "info",
|
|
273
|
-
label: e("overtimeWorkweekAlert", { employeeName:
|
|
333
|
+
label: e("overtimeWorkweekAlert", { employeeName: k }),
|
|
274
334
|
disableScrollIntoView: !0
|
|
275
335
|
}
|
|
276
336
|
) : null,
|
|
277
|
-
|
|
278
|
-
title:
|
|
337
|
+
c.jobs.map((l) => /* @__PURE__ */ t(ge, { children: ie(l.hours, {
|
|
338
|
+
title: n ? l.title ?? i : i,
|
|
279
339
|
label: i,
|
|
280
340
|
rowHeader: e("hourTypeColumn"),
|
|
281
341
|
valueColumnLabel: e("hoursColumn"),
|
|
282
|
-
labelFor:
|
|
342
|
+
labelFor: re,
|
|
283
343
|
adornmentEnd: e("hoursUnit"),
|
|
284
|
-
footer:
|
|
285
|
-
|
|
344
|
+
footer: o ? /* @__PURE__ */ t(
|
|
345
|
+
v,
|
|
286
346
|
{
|
|
287
347
|
variant: "secondary",
|
|
288
348
|
onClick: () => {
|
|
289
|
-
|
|
349
|
+
r.actions.addOvertime();
|
|
290
350
|
},
|
|
291
351
|
title: e("addOvertimeCta"),
|
|
292
352
|
children: e("addOvertimeCta")
|
|
293
353
|
}
|
|
294
354
|
) : void 0
|
|
295
|
-
}) },
|
|
355
|
+
}) }, l.jobUuid))
|
|
296
356
|
] });
|
|
297
357
|
})(),
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
rowHeader: e("typeColumn"),
|
|
302
|
-
valueColumnLabel: e("amountColumn"),
|
|
303
|
-
labelFor: _,
|
|
304
|
-
adornmentStart: "$"
|
|
305
|
-
}),
|
|
306
|
-
B(o.timeOff, {
|
|
307
|
-
title: o.finalPayout ? e("timeOffTitleDismissal") : e("timeOffTitle")
|
|
358
|
+
ae(),
|
|
359
|
+
H(c.timeOff, {
|
|
360
|
+
title: c.finalPayout ? e("timeOffTitleDismissal") : e("timeOffTitle")
|
|
308
361
|
}),
|
|
309
|
-
|
|
362
|
+
c.finalPayout ? H(c.finalPayout, {
|
|
310
363
|
title: e("finalPayoutTitle"),
|
|
311
364
|
description: e("finalPayoutDescription")
|
|
312
365
|
}) : null,
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
{
|
|
317
|
-
title: e("amountColumn"),
|
|
318
|
-
justify: "end",
|
|
319
|
-
render: (i) => /* @__PURE__ */ t("div", { className: P.inputContainer, children: /* @__PURE__ */ t(
|
|
320
|
-
i.Field,
|
|
321
|
-
{
|
|
322
|
-
label: _(i.id),
|
|
323
|
-
shouldVisuallyHideLabel: !0,
|
|
324
|
-
adornmentStart: "$"
|
|
325
|
-
}
|
|
326
|
-
) })
|
|
327
|
-
}
|
|
328
|
-
];
|
|
329
|
-
return /* @__PURE__ */ t(E, { header: /* @__PURE__ */ t(y, { title: e("otherTitle") }), withPadding: !1, children: /* @__PURE__ */ t(
|
|
330
|
-
v,
|
|
331
|
-
{
|
|
332
|
-
label: e("otherTitle"),
|
|
333
|
-
isWithinBox: !0,
|
|
334
|
-
columns: r,
|
|
335
|
-
data: o.otherEarnings
|
|
336
|
-
}
|
|
337
|
-
) });
|
|
338
|
-
})() : null,
|
|
339
|
-
I ? /* @__PURE__ */ s(l, { flexDirection: "column", gap: 24, children: [
|
|
340
|
-
F ? /* @__PURE__ */ t(
|
|
341
|
-
xe,
|
|
366
|
+
W ? /* @__PURE__ */ m(u, { flexDirection: "column", gap: 24, children: [
|
|
367
|
+
G ? /* @__PURE__ */ t(
|
|
368
|
+
je,
|
|
342
369
|
{
|
|
343
|
-
rows:
|
|
344
|
-
isAdding:
|
|
345
|
-
draftFields:
|
|
346
|
-
onBeginAdd: () =>
|
|
347
|
-
onSave: () =>
|
|
348
|
-
onCancel: () =>
|
|
349
|
-
onRemove: (
|
|
370
|
+
rows: le ?? [],
|
|
371
|
+
isAdding: oe,
|
|
372
|
+
draftFields: G,
|
|
373
|
+
onBeginAdd: () => r.actions.beginAddReimbursement?.(),
|
|
374
|
+
onSave: () => r.actions.saveReimbursement?.(),
|
|
375
|
+
onCancel: () => r.actions.cancelReimbursement?.(),
|
|
376
|
+
onRemove: (n) => r.actions.removeReimbursement?.(n)
|
|
350
377
|
}
|
|
351
378
|
) : null,
|
|
352
|
-
/* @__PURE__ */
|
|
353
|
-
/* @__PURE__ */ t(
|
|
379
|
+
/* @__PURE__ */ m(u, { flexDirection: "column", gap: 12, children: [
|
|
380
|
+
/* @__PURE__ */ t(O, { as: "h3", styledAs: "h4", children: e("paymentMethodTitle") }),
|
|
354
381
|
/* @__PURE__ */ t(
|
|
355
|
-
|
|
382
|
+
W,
|
|
356
383
|
{
|
|
357
384
|
label: e("paymentMethodLabel"),
|
|
358
385
|
description: e("paymentMethodDescription"),
|
|
359
|
-
getOptionLabel: (
|
|
386
|
+
getOptionLabel: (n) => n === ye.Check ? e("paymentMethodOptions.check") : e("paymentMethodOptions.directDeposit")
|
|
360
387
|
}
|
|
361
388
|
)
|
|
362
389
|
] })
|
|
@@ -364,6 +391,6 @@ const xe = ({
|
|
|
364
391
|
] }) }) }) });
|
|
365
392
|
};
|
|
366
393
|
export {
|
|
367
|
-
|
|
394
|
+
ft as UNSTABLE_PayrollEditEmployee
|
|
368
395
|
};
|
|
369
396
|
//# sourceMappingURL=UNSTABLE_PayrollEditEmployee.js.map
|