@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
|
@@ -1,92 +1,94 @@
|
|
|
1
1
|
import { jsx as a, jsxs as o, Fragment as k } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
2
|
+
import { useTranslation as ve, Trans as Le } from "react-i18next";
|
|
3
|
+
import ne from "classnames";
|
|
4
|
+
import { useState as le, useRef as _e } from "react";
|
|
5
|
+
import { isDismissalPayroll as Ce, getPayrollTypeLabel as Oe, calculateTotalPayroll as Ae, getReimbursements as w } from "../helpers.js";
|
|
5
6
|
import { PayrollOverviewStatus as p } from "./PayrollOverviewTypes.js";
|
|
6
|
-
import
|
|
7
|
+
import ie from "./PayrollOverviewPresentation.module.scss.js";
|
|
7
8
|
import { Flex as s } from "../../Common/Flex/Flex.js";
|
|
8
9
|
import { Grid as Ee } from "../../Common/Grid/Grid.js";
|
|
9
|
-
import
|
|
10
|
-
import { useComponentContext as
|
|
11
|
-
import { useI18n as
|
|
12
|
-
import { useDateFormatter as
|
|
13
|
-
import
|
|
10
|
+
import Be from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
|
|
11
|
+
import { useComponentContext as Ve } from "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
12
|
+
import { useI18n as We } from "../../../i18n/I18n.js";
|
|
13
|
+
import { useDateFormatter as Ye } from "../../../hooks/useDateFormatter.js";
|
|
14
|
+
import je from "../../../hooks/useNumberFormatter.js";
|
|
14
15
|
import { firstLastName as B } from "../../../helpers/formattedStrings.js";
|
|
15
|
-
import { FlsaStatus as
|
|
16
|
-
import
|
|
17
|
-
import { PayrollLoading as
|
|
18
|
-
import { FastAchSubmissionBlockerBanner as
|
|
19
|
-
import { GenericBlocker as
|
|
16
|
+
import { FlsaStatus as oe, compensationTypeLabels as V, PAYROLL_RESOLVABLE_SUBMISSION_BLOCKER_TYPES as se } from "../../../shared/constants.js";
|
|
17
|
+
import de from "../../../assets/icons/download-cloud.svg.js";
|
|
18
|
+
import { PayrollLoading as ce } from "../../Common/PayrollLoading/PayrollLoading.js";
|
|
19
|
+
import { FastAchSubmissionBlockerBanner as Ue } from "./SubmissionBlockers/FastAchSubmissionBlockerBanner.js";
|
|
20
|
+
import { GenericBlocker as Ie } from "./SubmissionBlockers/GenericBlocker.js";
|
|
20
21
|
import { DataView as c } from "../../Common/DataView/DataView.js";
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
const Me = (m, S) => m?.startDate && m.endDate ? S.formatPayPeriod(m.startDate, m.endDate) : { startDate: "", endDate: "" }, mt = ({
|
|
23
|
+
className: m,
|
|
24
|
+
onEdit: S,
|
|
25
|
+
onSubmit: me,
|
|
26
|
+
onCancel: ue,
|
|
27
|
+
onPayrollReceipt: be,
|
|
26
28
|
onPaystubDownload: W,
|
|
27
29
|
payrollData: l,
|
|
28
|
-
employeeFlsaStatusByUuid:
|
|
30
|
+
employeeFlsaStatusByUuid: ye = {},
|
|
29
31
|
bankAccount: Y,
|
|
30
32
|
taxes: v,
|
|
31
33
|
status: f = p.Viewing,
|
|
32
34
|
isProcessed: h,
|
|
33
|
-
canCancel:
|
|
34
|
-
canEdit:
|
|
35
|
-
alerts:
|
|
35
|
+
canCancel: pe = !1,
|
|
36
|
+
canEdit: j = !0,
|
|
37
|
+
alerts: U = [],
|
|
36
38
|
submissionBlockers: b = [],
|
|
37
39
|
selectedUnblockOptions: L = {},
|
|
38
|
-
onUnblockOptionChange:
|
|
39
|
-
wireInConfirmationRequest:
|
|
40
|
-
printChecksBanner:
|
|
40
|
+
onUnblockOptionChange: I,
|
|
41
|
+
wireInConfirmationRequest: fe,
|
|
42
|
+
printChecksBanner: he,
|
|
41
43
|
withReimbursements: g = !0,
|
|
42
|
-
paymentSpeed:
|
|
44
|
+
paymentSpeed: ge,
|
|
43
45
|
pagination: _,
|
|
44
|
-
downloadingEmployeeIds:
|
|
46
|
+
downloadingEmployeeIds: M = /* @__PURE__ */ new Set()
|
|
45
47
|
}) => {
|
|
46
|
-
const { Alert:
|
|
47
|
-
|
|
48
|
-
const d =
|
|
48
|
+
const { Alert: F, Badge: C, Button: T, ButtonIcon: R, Dialog: Te, Heading: $, Text: y, Tabs: De } = Ve();
|
|
49
|
+
We("Payroll.PayrollOverview");
|
|
50
|
+
const d = Ye(), { t } = ve("Payroll.PayrollOverview"), n = je("currency"), [He, xe] = le("companyPays"), [G, z] = le(!1), O = _e(null), D = Be({ ref: O }).includes("small"), H = f === p.Submitting || f === p.Cancelling, K = /* @__PURE__ */ a($, { as: "h1", children: t(h ? "summaryTitle" : "overviewTitle") }), X = Ce(l.offCycleReason), Pe = (() => {
|
|
49
51
|
const { time: e, date: r } = d.formatWithTime(l.payrollDeadline);
|
|
50
52
|
return r ? `${e} on ${r}` : e;
|
|
51
|
-
})(),
|
|
52
|
-
|
|
53
|
+
})(), q = /* @__PURE__ */ a(y, { children: /* @__PURE__ */ a(
|
|
54
|
+
Le,
|
|
53
55
|
{
|
|
54
|
-
i18nKey:
|
|
56
|
+
i18nKey: X ? "pageSubtitleDismissal" : "pageSubtitle",
|
|
55
57
|
t,
|
|
56
58
|
components: { dateWrapper: /* @__PURE__ */ a(y, { weight: "bold", as: "span" }) },
|
|
57
59
|
values: {
|
|
58
|
-
...
|
|
59
|
-
payrollType:
|
|
60
|
+
...Me(l.payPeriod, d),
|
|
61
|
+
payrollType: Oe(l)
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
64
|
) });
|
|
63
65
|
if (f === p.Cancelled)
|
|
64
|
-
return /* @__PURE__ */ a("div", { ref:
|
|
66
|
+
return /* @__PURE__ */ a("div", { ref: O, className: ne(ie.container, m), children: /* @__PURE__ */ o(s, { flexDirection: "column", alignItems: "stretch", children: [
|
|
65
67
|
/* @__PURE__ */ a(s, { justifyContent: "space-between", alignItems: "flex-start", gap: 16, children: /* @__PURE__ */ o(s, { flexDirection: "column", gap: 4, children: [
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
K,
|
|
69
|
+
q
|
|
68
70
|
] }) }),
|
|
69
|
-
/* @__PURE__ */ a(
|
|
71
|
+
/* @__PURE__ */ a(F, { status: "info", label: t("cancelledEmptyState") })
|
|
70
72
|
] }) });
|
|
71
|
-
const x =
|
|
73
|
+
const x = Ae(l), Ne = l.payrollStatusMeta?.expectedDebitTime ?? l.payrollDeadline, J = (e) => e.taxes?.reduce(
|
|
72
74
|
(r, i) => i.employer ? r + Number(i.amount) : r,
|
|
73
75
|
0
|
|
74
|
-
) ?? 0,
|
|
76
|
+
) ?? 0, Q = (e) => e.benefits?.reduce(
|
|
75
77
|
(r, i) => i.companyContribution ? r + Number(i.companyContribution) : r,
|
|
76
78
|
0
|
|
77
|
-
) ?? 0,
|
|
79
|
+
) ?? 0, ke = (e) => Number(e.grossPay) + w(e) + J(e) + Q(e), A = b.find(
|
|
78
80
|
(e) => e.blockerType === "fast_ach_threshold_exceeded" || e.blockerType === "needs_earned_access_for_fast_ach"
|
|
79
|
-
),
|
|
80
|
-
(e) => e.unblockType ===
|
|
81
|
-
),
|
|
81
|
+
), E = A ? L[A.blockerType || ""] : void 0, u = A?.unblockOptions?.find(
|
|
82
|
+
(e) => e.unblockType === E
|
|
83
|
+
), Z = E === "wire_in", ee = E === "move_to_four_day", P = (e) => e.hourlyCompensations?.reduce(
|
|
82
84
|
(r, i) => {
|
|
83
85
|
if (typeof i.name > "u")
|
|
84
86
|
return r;
|
|
85
|
-
const N = i.name.toLowerCase(),
|
|
86
|
-
return r[N] =
|
|
87
|
+
const N = i.name.toLowerCase(), Se = r[N] ?? 0;
|
|
88
|
+
return r[N] = Se + Number(i.hours || 0), r;
|
|
87
89
|
},
|
|
88
90
|
{}
|
|
89
|
-
) || {},
|
|
91
|
+
) || {}, te = (e) => e.paidTimeOff?.reduce((r, i) => r + Number(i.hours || 0), 0) ?? 0, re = [
|
|
90
92
|
{
|
|
91
93
|
key: "employeeName",
|
|
92
94
|
title: t("tableHeaders.employees"),
|
|
@@ -116,28 +118,29 @@ const Ue = (u, S) => u?.startDate && u.endDate ? S.formatPayPeriod(u.startDate,
|
|
|
116
118
|
key: "companyTaxes",
|
|
117
119
|
title: t("tableHeaders.companyTaxes"),
|
|
118
120
|
justify: "end",
|
|
119
|
-
render: (e) => n(
|
|
121
|
+
render: (e) => n(J(e))
|
|
120
122
|
},
|
|
121
123
|
{
|
|
122
124
|
key: "companyBenefits",
|
|
123
125
|
title: t("tableHeaders.companyBenefits"),
|
|
124
126
|
justify: "end",
|
|
125
|
-
render: (e) => n(
|
|
127
|
+
render: (e) => n(Q(e))
|
|
126
128
|
},
|
|
127
129
|
{
|
|
128
130
|
key: "companyPays",
|
|
129
131
|
title: t("tableHeaders.companyPays"),
|
|
130
132
|
justify: "end",
|
|
131
|
-
render: (e) => n(
|
|
133
|
+
render: (e) => n(ke(e))
|
|
132
134
|
}
|
|
133
135
|
];
|
|
134
|
-
h && D &&
|
|
136
|
+
h && D && re.push({
|
|
135
137
|
key: "paystubs",
|
|
136
138
|
title: t("tableHeaders.paystub"),
|
|
139
|
+
justify: "end",
|
|
137
140
|
render: (e) => {
|
|
138
|
-
const r = !!e.employeeUuid &&
|
|
141
|
+
const r = !!e.employeeUuid && M.has(e.employeeUuid);
|
|
139
142
|
return /* @__PURE__ */ a(s, { justifyContent: "flex-end", children: /* @__PURE__ */ a(
|
|
140
|
-
|
|
143
|
+
R,
|
|
141
144
|
{
|
|
142
145
|
"aria-label": t("downloadPaystubLabel"),
|
|
143
146
|
variant: "tertiary",
|
|
@@ -145,12 +148,12 @@ const Ue = (u, S) => u?.startDate && u.endDate ? S.formatPayPeriod(u.startDate,
|
|
|
145
148
|
onClick: () => {
|
|
146
149
|
e.employeeUuid && W(e.employeeUuid);
|
|
147
150
|
},
|
|
148
|
-
children: /* @__PURE__ */ a(
|
|
151
|
+
children: /* @__PURE__ */ a(de, {})
|
|
149
152
|
}
|
|
150
153
|
) });
|
|
151
154
|
}
|
|
152
155
|
});
|
|
153
|
-
const
|
|
156
|
+
const we = [
|
|
154
157
|
{
|
|
155
158
|
id: "companyPays",
|
|
156
159
|
label: t("dataViews.companyPaysTab"),
|
|
@@ -158,13 +161,13 @@ const Ue = (u, S) => u?.startDate && u.endDate ? S.formatPayPeriod(u.startDate,
|
|
|
158
161
|
c,
|
|
159
162
|
{
|
|
160
163
|
label: t("dataViews.companyPaysTable"),
|
|
161
|
-
columns:
|
|
164
|
+
columns: re,
|
|
162
165
|
data: l.employeeCompensations,
|
|
163
166
|
pagination: _,
|
|
164
167
|
itemMenu: h && !D ? (e) => {
|
|
165
|
-
const r = !!e.employeeUuid &&
|
|
168
|
+
const r = !!e.employeeUuid && M.has(e.employeeUuid);
|
|
166
169
|
return /* @__PURE__ */ a(
|
|
167
|
-
|
|
170
|
+
R,
|
|
168
171
|
{
|
|
169
172
|
"aria-label": t("downloadPaystubLabel"),
|
|
170
173
|
variant: "tertiary",
|
|
@@ -172,7 +175,7 @@ const Ue = (u, S) => u?.startDate && u.endDate ? S.formatPayPeriod(u.startDate,
|
|
|
172
175
|
onClick: () => {
|
|
173
176
|
e.employeeUuid && W(e.employeeUuid);
|
|
174
177
|
},
|
|
175
|
-
children: /* @__PURE__ */ a(
|
|
178
|
+
children: /* @__PURE__ */ a(de, {})
|
|
176
179
|
}
|
|
177
180
|
);
|
|
178
181
|
} : void 0,
|
|
@@ -213,11 +216,11 @@ const Ue = (u, S) => u?.startDate && u.endDate ? S.formatPayPeriod(u.startDate,
|
|
|
213
216
|
{
|
|
214
217
|
title: t("tableHeaders.compensationType"),
|
|
215
218
|
render: (e) => {
|
|
216
|
-
const r = e.employeeUuid ?
|
|
219
|
+
const r = e.employeeUuid ? ye[e.employeeUuid] : void 0;
|
|
217
220
|
switch (r) {
|
|
218
|
-
case
|
|
221
|
+
case oe.EXEMPT:
|
|
219
222
|
return t("compensationTypeLabels.exempt");
|
|
220
|
-
case
|
|
223
|
+
case oe.NONEXEMPT:
|
|
221
224
|
return t("compensationTypeLabels.nonexempt");
|
|
222
225
|
default:
|
|
223
226
|
return r ?? "";
|
|
@@ -238,14 +241,14 @@ const Ue = (u, S) => u?.startDate && u.endDate ? S.formatPayPeriod(u.startDate,
|
|
|
238
241
|
},
|
|
239
242
|
{
|
|
240
243
|
title: t("tableHeaders.timeOff"),
|
|
241
|
-
render: (e) =>
|
|
244
|
+
render: (e) => te(e)
|
|
242
245
|
},
|
|
243
246
|
{
|
|
244
247
|
title: t("tableHeaders.totalHours"),
|
|
245
248
|
render: (e) => Object.values(P(e)).reduce(
|
|
246
249
|
(r, i) => r + i,
|
|
247
250
|
0
|
|
248
|
-
) +
|
|
251
|
+
) + te(e)
|
|
249
252
|
}
|
|
250
253
|
],
|
|
251
254
|
data: l.employeeCompensations,
|
|
@@ -389,13 +392,13 @@ const Ue = (u, S) => u?.startDate && u.endDate ? S.formatPayPeriod(u.startDate,
|
|
|
389
392
|
)
|
|
390
393
|
] })
|
|
391
394
|
}
|
|
392
|
-
],
|
|
393
|
-
/* @__PURE__ */ a(T, { onClick:
|
|
394
|
-
|
|
395
|
+
], ae = h ? /* @__PURE__ */ o(k, { children: [
|
|
396
|
+
/* @__PURE__ */ a(T, { onClick: be, variant: "secondary", isDisabled: H, children: t("payrollReceiptCta") }),
|
|
397
|
+
pe && /* @__PURE__ */ a(
|
|
395
398
|
T,
|
|
396
399
|
{
|
|
397
400
|
onClick: () => {
|
|
398
|
-
|
|
401
|
+
z(!0);
|
|
399
402
|
},
|
|
400
403
|
variant: "error",
|
|
401
404
|
isDisabled: H,
|
|
@@ -403,13 +406,13 @@ const Ue = (u, S) => u?.startDate && u.endDate ? S.formatPayPeriod(u.startDate,
|
|
|
403
406
|
}
|
|
404
407
|
)
|
|
405
408
|
] }) : /* @__PURE__ */ o(k, { children: [
|
|
406
|
-
|
|
409
|
+
j && /* @__PURE__ */ a(T, { onClick: S, variant: "secondary", isDisabled: H, children: t("editCta") }),
|
|
407
410
|
/* @__PURE__ */ a(
|
|
408
411
|
T,
|
|
409
412
|
{
|
|
410
|
-
onClick:
|
|
413
|
+
onClick: me,
|
|
411
414
|
isDisabled: H || b.length > 0 && (b.some(
|
|
412
|
-
(e) => !
|
|
415
|
+
(e) => !se.includes(e.blockerType || "")
|
|
413
416
|
) || b.some(
|
|
414
417
|
(e) => !L[e.blockerType || ""]
|
|
415
418
|
)),
|
|
@@ -417,19 +420,26 @@ const Ue = (u, S) => u?.startDate && u.endDate ? S.formatPayPeriod(u.startDate,
|
|
|
417
420
|
}
|
|
418
421
|
)
|
|
419
422
|
] });
|
|
420
|
-
return /* @__PURE__ */ a("div", { ref:
|
|
423
|
+
return /* @__PURE__ */ a("div", { ref: O, className: ne(ie.container, m), children: /* @__PURE__ */ o(s, { flexDirection: "column", alignItems: "stretch", children: [
|
|
421
424
|
/* @__PURE__ */ o(s, { justifyContent: "space-between", alignItems: "flex-start", gap: 16, children: [
|
|
422
425
|
/* @__PURE__ */ o(s, { flexDirection: "column", gap: 4, children: [
|
|
423
|
-
|
|
424
|
-
|
|
426
|
+
K,
|
|
427
|
+
q
|
|
425
428
|
] }),
|
|
426
|
-
D && /* @__PURE__ */ a(s, { gap: 8, justifyContent: "flex-end", children:
|
|
429
|
+
D && /* @__PURE__ */ a(s, { gap: 8, justifyContent: "flex-end", children: ae })
|
|
427
430
|
] }),
|
|
428
|
-
!D && /* @__PURE__ */ a(
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
431
|
+
!D && /* @__PURE__ */ a(
|
|
432
|
+
Ee,
|
|
433
|
+
{
|
|
434
|
+
gridTemplateColumns: !h && j ? ["minmax(0, 1fr)", "minmax(0, 1fr)"] : "1fr",
|
|
435
|
+
gap: 8,
|
|
436
|
+
children: ae
|
|
437
|
+
}
|
|
438
|
+
),
|
|
439
|
+
f === p.Cancelling ? /* @__PURE__ */ a(ce, { title: t("cancellingTitle") }) : f === p.Submitting ? /* @__PURE__ */ a(ce, { title: t("loadingTitle"), description: t("loadingDescription") }) : /* @__PURE__ */ o(k, { children: [
|
|
440
|
+
fe,
|
|
441
|
+
U.length > 0 && /* @__PURE__ */ a(s, { flexDirection: "column", gap: 16, children: U.map((e, r) => /* @__PURE__ */ a(
|
|
442
|
+
F,
|
|
433
443
|
{
|
|
434
444
|
label: e.title,
|
|
435
445
|
status: e.type,
|
|
@@ -438,21 +448,21 @@ const Ue = (u, S) => u?.startDate && u.endDate ? S.formatPayPeriod(u.startDate,
|
|
|
438
448
|
},
|
|
439
449
|
`${e.type}-${e.title}`
|
|
440
450
|
)) }),
|
|
441
|
-
b.length > 0 &&
|
|
451
|
+
b.length > 0 && I && b.map((e) => {
|
|
442
452
|
const r = e.blockerType || "";
|
|
443
|
-
return
|
|
444
|
-
|
|
453
|
+
return se.includes(r) ? /* @__PURE__ */ a(
|
|
454
|
+
Ue,
|
|
445
455
|
{
|
|
446
456
|
blocker: e,
|
|
447
457
|
selectedValue: L[r],
|
|
448
|
-
onUnblockOptionChange:
|
|
449
|
-
paymentSpeed:
|
|
458
|
+
onUnblockOptionChange: I,
|
|
459
|
+
paymentSpeed: ge
|
|
450
460
|
},
|
|
451
461
|
r
|
|
452
|
-
) : /* @__PURE__ */ a(
|
|
462
|
+
) : /* @__PURE__ */ a(Ie, { blocker: e }, r);
|
|
453
463
|
}),
|
|
454
|
-
/* @__PURE__ */ a(
|
|
455
|
-
|
|
464
|
+
/* @__PURE__ */ a($, { as: "h2", styledAs: "h3", children: t(Z ? "payrollSummaryTitleWire" : ee ? "payrollSummaryTitleFourDay" : "payrollSummaryTitle") }),
|
|
465
|
+
Z ? /* @__PURE__ */ a(
|
|
456
466
|
c,
|
|
457
467
|
{
|
|
458
468
|
label: t("payrollSummaryLabel"),
|
|
@@ -464,25 +474,25 @@ const Ue = (u, S) => u?.startDate && u.endDate ? S.formatPayPeriod(u.startDate,
|
|
|
464
474
|
{
|
|
465
475
|
title: t("tableHeaders.wireAmount"),
|
|
466
476
|
render: () => {
|
|
467
|
-
const r =
|
|
477
|
+
const r = u?.metadata?.wire_in_amount;
|
|
468
478
|
return r ? n(Number(r)) : "-";
|
|
469
479
|
}
|
|
470
480
|
},
|
|
471
481
|
{
|
|
472
482
|
title: t("tableHeaders.wireTransferDeadline"),
|
|
473
483
|
render: () => {
|
|
474
|
-
const r =
|
|
484
|
+
const r = u?.metadata?.wire_in_deadline, i = d.formatWithTime(r), N = d.formatShortWithYear(r);
|
|
475
485
|
return r ? `${i.time} on ${N}` : "-";
|
|
476
486
|
}
|
|
477
487
|
},
|
|
478
488
|
{
|
|
479
489
|
title: t("tableHeaders.employeePayDate"),
|
|
480
|
-
render: () =>
|
|
490
|
+
render: () => u?.checkDate ? d.formatShortWithYear(u.checkDate) : "-"
|
|
481
491
|
}
|
|
482
492
|
],
|
|
483
493
|
data: [{}]
|
|
484
494
|
}
|
|
485
|
-
) :
|
|
495
|
+
) : ee ? /* @__PURE__ */ a(
|
|
486
496
|
c,
|
|
487
497
|
{
|
|
488
498
|
label: t("payrollSummaryLabel"),
|
|
@@ -505,13 +515,13 @@ const Ue = (u, S) => u?.startDate && u.endDate ? S.formatPayPeriod(u.startDate,
|
|
|
505
515
|
{
|
|
506
516
|
title: t("tableHeaders.debitDate"),
|
|
507
517
|
render: () => {
|
|
508
|
-
const r =
|
|
518
|
+
const r = u?.metadata?.debit_date;
|
|
509
519
|
return d.formatShortWithYear(r);
|
|
510
520
|
}
|
|
511
521
|
},
|
|
512
522
|
{
|
|
513
523
|
title: t("tableHeaders.employeePayDate"),
|
|
514
|
-
render: () =>
|
|
524
|
+
render: () => u?.checkDate ? d.formatShortWithYear(u.checkDate) : "-"
|
|
515
525
|
}
|
|
516
526
|
],
|
|
517
527
|
data: [{}]
|
|
@@ -535,7 +545,7 @@ const Ue = (u, S) => u?.startDate && u.endDate ? S.formatPayPeriod(u.startDate,
|
|
|
535
545
|
},
|
|
536
546
|
{
|
|
537
547
|
title: t("tableHeaders.debitDate"),
|
|
538
|
-
render: () => d.formatShortWithYear(
|
|
548
|
+
render: () => d.formatShortWithYear(Ne)
|
|
539
549
|
},
|
|
540
550
|
{
|
|
541
551
|
title: t("tableHeaders.employeePayDate"),
|
|
@@ -545,36 +555,36 @@ const Ue = (u, S) => u?.startDate && u.endDate ? S.formatPayPeriod(u.startDate,
|
|
|
545
555
|
data: [{}]
|
|
546
556
|
}
|
|
547
557
|
),
|
|
548
|
-
|
|
558
|
+
he,
|
|
549
559
|
/* @__PURE__ */ a(
|
|
550
|
-
|
|
560
|
+
De,
|
|
551
561
|
{
|
|
552
|
-
onSelectionChange:
|
|
553
|
-
selectedId:
|
|
562
|
+
onSelectionChange: xe,
|
|
563
|
+
selectedId: He,
|
|
554
564
|
"aria-label": t("dataViews.label"),
|
|
555
|
-
tabs:
|
|
565
|
+
tabs: we
|
|
556
566
|
}
|
|
557
567
|
),
|
|
558
|
-
|
|
559
|
-
|
|
568
|
+
G && /* @__PURE__ */ a(
|
|
569
|
+
Te,
|
|
560
570
|
{
|
|
561
|
-
isOpen:
|
|
571
|
+
isOpen: G,
|
|
562
572
|
onClose: () => {
|
|
563
|
-
|
|
573
|
+
z(!1);
|
|
564
574
|
},
|
|
565
|
-
onPrimaryActionClick:
|
|
575
|
+
onPrimaryActionClick: ue,
|
|
566
576
|
shouldCloseOnBackdropClick: !0,
|
|
567
577
|
primaryActionLabel: t("confirmCancelCta"),
|
|
568
578
|
isDestructive: !0,
|
|
569
579
|
closeActionLabel: t("declineCancelCta"),
|
|
570
|
-
title: t(
|
|
580
|
+
title: t(X ? "cancelDialogTitleDismissal" : "cancelDialogTitle", {
|
|
571
581
|
startDate: d.formatLong(l.payPeriod?.startDate),
|
|
572
582
|
endDate: d.formatLongWithYear(l.payPeriod?.endDate)
|
|
573
583
|
}),
|
|
574
584
|
children: /* @__PURE__ */ o(s, { gap: 14, flexDirection: "column", children: [
|
|
575
585
|
/* @__PURE__ */ a(y, { children: t("cancelDialogDescription") }),
|
|
576
586
|
Number(l.totals?.netPayDebit ?? 0) > 0 && /* @__PURE__ */ a(y, { children: t("cancelDialogDescriptionDeadline", {
|
|
577
|
-
deadline:
|
|
587
|
+
deadline: Pe
|
|
578
588
|
}) })
|
|
579
589
|
] })
|
|
580
590
|
}
|
|
@@ -583,6 +593,6 @@ const Ue = (u, S) => u?.startDate && u.endDate ? S.formatPayPeriod(u.startDate,
|
|
|
583
593
|
] }) });
|
|
584
594
|
};
|
|
585
595
|
export {
|
|
586
|
-
|
|
596
|
+
mt as PayrollOverviewPresentation
|
|
587
597
|
};
|
|
588
598
|
//# sourceMappingURL=PayrollOverviewPresentation.js.map
|