@gusto/embedded-react-sdk 0.57.2 → 0.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +108 -0
- package/dist/components/Common/DataView/DataCards/DataCards.js +98 -66
- package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
- package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js +11 -9
- package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js.map +1 -1
- package/dist/components/Common/DataView/DataTable/DataTable.js +86 -75
- package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
- package/dist/components/Common/DataView/DataView.js.map +1 -1
- package/dist/components/Common/DataView/getSortControls.js +22 -0
- package/dist/components/Common/DataView/getSortControls.js.map +1 -0
- package/dist/components/Common/DataView/useDataView.js +30 -24
- package/dist/components/Common/DataView/useDataView.js.map +1 -1
- package/dist/components/Common/DateRangeFilter/DateRangeFilter.js +32 -32
- package/dist/components/Common/DateRangeFilter/DateRangeFilter.js.map +1 -1
- package/dist/components/Common/OnboardingStatusBadge/index.js.map +1 -1
- package/dist/components/Common/UI/Table/Table.js +65 -25
- package/dist/components/Common/UI/Table/Table.js.map +1 -1
- package/dist/components/Common/UI/Table/Table.module.scss.js +8 -4
- package/dist/components/Common/UI/Table/Table.module.scss.js.map +1 -1
- package/dist/components/Common/UI/Table/TableTypes.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -4
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -4
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -6
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -4
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -4
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +5 -6
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +6 -7
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -4
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -4
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +3 -4
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +30 -45
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/PayScheduleComponents.js +11 -12
- package/dist/components/Company/PaySchedule/PayScheduleComponents.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/AutoPilotDialog/AutoPilotDialog.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/AutoPilotDialog/useAutoPilotDialog.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentCompensationStepPresentation.js +34 -14
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentCompensationStepPresentation.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentDepartmentStepPresentation.js +106 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentDepartmentStepPresentation.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentEmployeeStepPresentation.js +136 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentEmployeeStepPresentation.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.js +38 -20
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.js +78 -44
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.js +45 -37
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.js +244 -95
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/departmentAccess.js +22 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/departmentAccess.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/employeeJob.js +13 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/employeeJob.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/payScheduleAssignmentStateMachine.js +48 -43
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/payScheduleAssignmentStateMachine.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/scheduleLabel.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/useAssignableEmployees.js +57 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/useAssignableEmployees.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleCompensationOverviewPresentation.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/PayScheduleDepartmentOverviewPresentation.js +83 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleDepartmentOverviewPresentation.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleEmployeeOverviewPresentation.js +84 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleEmployeeOverviewPresentation.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleManagementComponents.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/PayScheduleOverview.js +109 -39
- package/dist/components/Company/PaySchedule/management/PayScheduleOverview.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.js.map +1 -1
- package/dist/components/Company/PaySchedule/management/payScheduleManagementStateMachine.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +78 -83
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -4
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -4
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/TaxRateManagement/context.js +3 -4
- package/dist/components/Company/StateTaxes/TaxRateManagement/context.js.map +1 -1
- package/dist/components/Contractor/Address/shared/useContractorAddressForm/useContractorAddressForm.js +5 -5
- package/dist/components/Contractor/Address/shared/useContractorAddressForm/useContractorAddressForm.js.map +1 -1
- package/dist/components/Contractor/Address/shared/useContractorAddressSummary/useContractorAddressSummary.js +1 -1
- package/dist/components/Contractor/Address/shared/useContractorAddressSummary/useContractorAddressSummary.js.map +1 -1
- package/dist/components/Contractor/Compensation/management/CompensationEditForm.js +45 -54
- package/dist/components/Contractor/Compensation/management/CompensationEditForm.js.map +1 -1
- package/dist/components/Contractor/Compensation/shared/useContractorCompensationSummary/useContractorCompensationSummary.js +4 -4
- package/dist/components/Contractor/Compensation/shared/useContractorCompensationSummary/useContractorCompensationSummary.js.map +1 -1
- package/dist/components/Contractor/Compensation/shared/useContractorPayForm/contractorPaySchema.js +17 -22
- package/dist/components/Contractor/Compensation/shared/useContractorPayForm/contractorPaySchema.js.map +1 -1
- package/dist/components/Contractor/Compensation/shared/useContractorPayForm/useContractorPayForm.js +3 -3
- package/dist/components/Contractor/Compensation/shared/useContractorPayForm/useContractorPayForm.js.map +1 -1
- package/dist/components/Contractor/ContractorList/management/ManagementContractorList.js +1 -0
- package/dist/components/Contractor/ContractorList/management/ManagementContractorList.js.map +1 -1
- package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js +122 -113
- package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js.map +1 -1
- package/dist/components/Contractor/ContractorList/shared/useContractorList.js +63 -54
- package/dist/components/Contractor/ContractorList/shared/useContractorList.js.map +1 -1
- package/dist/components/Contractor/Dashboard/Dashboard.js +20 -20
- package/dist/components/Contractor/Dashboard/Dashboard.js.map +1 -1
- package/dist/components/Contractor/Dismissal/useDismissal/useDismissal.js +10 -10
- package/dist/components/Contractor/Dismissal/useDismissal/useDismissal.js.map +1 -1
- package/dist/components/Contractor/Landing/Landing.js +43 -39
- package/dist/components/Contractor/Landing/Landing.js.map +1 -1
- package/dist/components/Contractor/NewHireReport/NewHireReport.js +3 -3
- package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/onboarding/PaymentMethod.js +39 -48
- package/dist/components/Contractor/PaymentMethod/onboarding/PaymentMethod.js.map +1 -1
- package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js +1 -1
- package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +10 -10
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
- package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js +4 -4
- package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js +8 -8
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +5 -5
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js +3 -3
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js.map +1 -1
- package/dist/components/Contractor/Profile/onboarding/ContractorProfile.js +76 -69
- package/dist/components/Contractor/Profile/onboarding/ContractorProfile.js.map +1 -1
- package/dist/components/Contractor/Profile/onboarding/SelfOnboardingContractorProfile.js +1 -1
- package/dist/components/Contractor/Profile/onboarding/SelfOnboardingContractorProfile.js.map +1 -1
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/contractorDetailsSchema.js +27 -29
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/contractorDetailsSchema.js.map +1 -1
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/useContractorDetailsForm.js +15 -13
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/useContractorDetailsForm.js.map +1 -1
- package/dist/components/Contractor/Profile/shared/useContractorProfileSummary/useContractorProfileSummary.js +1 -1
- package/dist/components/Contractor/Profile/shared/useContractorProfileSummary/useContractorProfileSummary.js.map +1 -1
- package/dist/components/Contractor/SelfOnboardingFlow/SelfOnboardingComponents.js +2 -9
- package/dist/components/Contractor/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
- package/dist/components/Contractor/Submit/Submit.js +18 -18
- package/dist/components/Contractor/Submit/Submit.js.map +1 -1
- package/dist/components/Contractor/shared/SelectContractors/useSelectContractors.js +6 -6
- package/dist/components/Contractor/shared/SelectContractors/useSelectContractors.js.map +1 -1
- package/dist/components/Contractor/shared/hourlyRate.js +14 -0
- package/dist/components/Contractor/shared/hourlyRate.js.map +1 -0
- package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.js +63 -63
- package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js +25 -25
- package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.js +15 -15
- package/dist/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js +1 -1
- package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js.map +1 -1
- package/dist/components/Employee/Dashboard/Dashboard.js +25 -25
- package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +3 -4
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.js +7 -7
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js +1 -1
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js.map +1 -1
- package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js +6 -6
- package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js.map +1 -1
- package/dist/components/Employee/Landing/Landing.js +37 -33
- package/dist/components/Employee/Landing/Landing.js.map +1 -1
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +27 -27
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/onboarding/ListView.js +65 -74
- package/dist/components/Employee/PaymentMethod/onboarding/ListView.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js +6 -6
- package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.js +1 -1
- package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.js.map +1 -1
- package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js +8 -15
- package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +11 -11
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js +12 -12
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js +26 -26
- package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +16 -16
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +2 -3
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +84 -82
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
- package/dist/components/Payroll/OffCycleTaxWithholdingTable/getDefaultWithholdingPayPeriod.js +8 -0
- package/dist/components/Payroll/OffCycleTaxWithholdingTable/getDefaultWithholdingPayPeriod.js.map +1 -0
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +97 -92
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +1 -1
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +18 -18
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +146 -134
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js +14 -12
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +34 -33
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js +49 -48
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js.map +1 -1
- package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js.map +1 -1
- package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js +0 -4
- package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/PayrollFlow.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js +51 -38
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +121 -102
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +6 -6
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollList.js +79 -74
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +9 -9
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +92 -83
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +23 -27
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js +82 -75
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js.map +1 -1
- package/dist/components/Payroll/RropPayrollEditEmployee/RropPayrollEditEmployee.js +416 -0
- package/dist/components/Payroll/RropPayrollEditEmployee/RropPayrollEditEmployee.js.map +1 -0
- package/dist/components/Payroll/{UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.module.scss.js → RropPayrollEditEmployee/RropPayrollEditEmployee.module.scss.js} +1 -1
- package/dist/components/Payroll/RropPayrollEditEmployee/RropPayrollEditEmployee.module.scss.js.map +1 -0
- package/dist/components/Payroll/TransitionConfiguration/TransitionConfiguration.js +97 -0
- package/dist/components/Payroll/TransitionConfiguration/TransitionConfiguration.js.map +1 -0
- package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationPresentation.js +106 -0
- package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationPresentation.js.map +1 -0
- package/dist/components/Payroll/{TransitionCreation/TransitionCreationPresentation.module.scss.js → TransitionConfiguration/TransitionConfigurationPresentation.module.scss.js} +1 -1
- package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationPresentation.module.scss.js.map +1 -0
- package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationTypes.js +10 -0
- package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationTypes.js.map +1 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +86 -64
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js +126 -77
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -1
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.module.scss.js +8 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.module.scss.js.map +1 -0
- package/dist/components/Payroll/helpers.js +1 -1
- package/dist/components/Payroll/helpers.js.map +1 -1
- package/dist/components/Payroll/index.js +16 -20
- package/dist/components/Payroll/index.js.map +1 -1
- package/dist/components/Payroll/payrollTypes.js +1 -1
- package/dist/components/Payroll/payrollTypes.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +2 -3
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/components/Payroll/useUnprocessedTransitionPayPeriods.js +11 -14
- package/dist/components/Payroll/useUnprocessedTransitionPayPeriods.js.map +1 -1
- package/dist/contexts/ApiProvider/ApiProvider.js +18 -17
- package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
- package/dist/contexts/ApiProvider/payScheduleCustomNameHook.js +31 -0
- package/dist/contexts/ApiProvider/payScheduleCustomNameHook.js.map +1 -0
- package/dist/contexts/ApiProvider/payrollOffCycleReasonEnumHook.js +1 -1
- package/dist/contexts/ApiProvider/payrollOffCycleReasonEnumHook.js.map +1 -1
- package/dist/contexts/FeaturesProvider/FeaturesProvider.js +14 -0
- package/dist/contexts/FeaturesProvider/FeaturesProvider.js.map +1 -0
- package/dist/contexts/FeaturesProvider/useFeature.js +7 -0
- package/dist/contexts/FeaturesProvider/useFeature.js.map +1 -0
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +32 -30
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
- package/dist/contexts/UnstableFeaturesProvider/useUnstableFeature.js.map +1 -1
- package/dist/i18n/I18n.js +2 -3
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Company.Management.PaySchedule.json.js +31 -13
- package/dist/i18n/en/Company.Management.PaySchedule.json.js.map +1 -1
- package/dist/i18n/en/Company.Management.PayScheduleAssignment.json.js +20 -12
- package/dist/i18n/en/Company.Management.PayScheduleAssignment.json.js.map +1 -1
- package/dist/i18n/en/Contractor.Profile.json.js +1 -1
- package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +29 -23
- package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollHistory.json.js +1 -1
- package/dist/i18n/en/Payroll.PayrollLanding.json.js +1 -1
- package/dist/i18n/en/Payroll.PayrollList.json.js +5 -5
- package/dist/i18n/en/{Payroll.UNSTABLE_PayrollEditEmployee.json.js → Payroll.RropPayrollEditEmployee.json.js} +42 -38
- package/dist/i18n/en/Payroll.RropPayrollEditEmployee.json.js.map +1 -0
- package/dist/i18n/en/Payroll.TransitionConfiguration.json.js +28 -0
- package/dist/i18n/en/Payroll.TransitionConfiguration.json.js.map +1 -0
- package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js +16 -12
- package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js.map +1 -1
- package/dist/i18n/en/common.json.js +1 -1
- package/dist/package.json.js +1 -1
- package/dist/partner-hook-utils/form/composeSubmitHandler.js +55 -48
- package/dist/partner-hook-utils/form/composeSubmitHandler.js.map +1 -1
- package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js +31 -29
- package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js.map +1 -1
- package/dist/shared/constants.js +7 -6
- package/dist/shared/constants.js.map +1 -1
- package/dist/src/components/Common/DataView/DataCards/DataCards.d.ts +3 -1
- package/dist/src/components/Common/DataView/DataTable/DataTable.d.ts +3 -1
- package/dist/src/components/Common/DataView/DataView.d.ts +2 -0
- package/dist/src/components/Common/DataView/getSortControls.d.ts +24 -0
- package/dist/src/components/Common/DataView/useDataView.d.ts +22 -1
- package/dist/src/components/Common/DateRangeFilter/DateRangeFilter.d.ts +2 -2
- package/dist/src/components/Common/OnboardingStatusBadge/index.d.ts +1 -1
- package/dist/src/components/Common/UI/Table/TableTypes.d.ts +71 -2
- package/dist/src/components/Company/PaySchedule/PaySchedule.d.ts +1 -9
- package/dist/src/components/Company/PaySchedule/PayScheduleComponents.d.ts +0 -1
- package/dist/src/components/Company/PaySchedule/management/AutoPilotDialog/AutoPilotDialog.d.ts +1 -1
- package/dist/src/components/Company/PaySchedule/management/AutoPilotDialog/useAutoPilotDialog.d.ts +1 -1
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentCompensationStepPresentation.d.ts +10 -3
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentDepartmentStepPresentation.d.ts +21 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentEmployeeStepPresentation.d.ts +34 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.d.ts +9 -3
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.d.ts +5 -1
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.d.ts +10 -10
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.d.ts +12 -4
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/departmentAccess.d.ts +19 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/employeeJob.d.ts +17 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/scheduleLabel.d.ts +1 -1
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/useAssignableEmployees.d.ts +34 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/usePayScheduleAssignment.d.ts +16 -3
- package/dist/src/components/Company/PaySchedule/management/PayScheduleCompensationOverviewPresentation.d.ts +1 -1
- package/dist/src/components/Company/PaySchedule/management/PayScheduleDepartmentOverviewPresentation.d.ts +23 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleEmployeeOverviewPresentation.d.ts +25 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleManagementComponents.d.ts +1 -1
- package/dist/src/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.d.ts +1 -1
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/fields.d.ts +1 -1
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.d.ts +1 -1
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +4 -15
- package/dist/src/components/Contractor/ContractorList/management/ManagementContractorListView.d.ts +2 -2
- package/dist/src/components/Contractor/ContractorList/shared/index.d.ts +1 -1
- package/dist/src/components/Contractor/ContractorList/shared/useContractorList.d.ts +38 -0
- package/dist/src/components/Contractor/Landing/Landing.d.ts +5 -2
- package/dist/src/components/Contractor/shared/hourlyRate.d.ts +23 -0
- package/dist/src/components/Employee/Landing/Landing.d.ts +5 -2
- package/dist/src/components/Payroll/OffCycleTaxWithholdingTable/getDefaultWithholdingPayPeriod.d.ts +9 -0
- package/dist/src/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollEditEmployee/TimeOffField.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.d.ts +2 -0
- package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.d.ts +2 -2
- package/dist/src/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.d.ts +8 -6
- package/dist/src/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.d.ts +0 -8
- package/dist/src/components/Payroll/PayrollFlow/PayrollFlow.d.ts +5 -3
- package/dist/src/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +2 -3
- package/dist/src/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +1 -1
- package/dist/src/components/Payroll/PayrollLanding/PayrollLanding.d.ts +18 -5
- package/dist/src/components/Payroll/PayrollList/PayrollList.d.ts +11 -5
- package/dist/src/components/Payroll/PayrollList/PayrollListPresentation.d.ts +2 -2
- package/dist/src/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +1 -1
- package/dist/src/components/Payroll/{UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.d.ts → RropPayrollEditEmployee/RropPayrollEditEmployee.d.ts} +9 -5
- package/dist/src/components/Payroll/TransitionConfiguration/TransitionConfiguration.d.ts +55 -0
- package/dist/src/components/Payroll/TransitionConfiguration/TransitionConfigurationPresentation.d.ts +9 -0
- package/dist/src/components/Payroll/TransitionConfiguration/TransitionConfigurationTypes.d.ts +52 -0
- package/dist/src/components/Payroll/TransitionConfiguration/index.d.ts +2 -0
- package/dist/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.d.ts +5 -2
- package/dist/src/components/Payroll/helpers.d.ts +2 -2
- package/dist/src/components/Payroll/index.d.ts +2 -6
- package/dist/src/components/Payroll/usePreparedPayrollData.d.ts +2 -2
- package/dist/src/contexts/ApiProvider/payScheduleCustomNameHook.d.ts +14 -0
- package/dist/src/contexts/ApiProvider/payScheduleCustomNameHook.test.d.ts +1 -0
- package/dist/src/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -1
- package/dist/src/contexts/FeaturesProvider/FeaturesProvider.d.ts +21 -0
- package/dist/src/contexts/FeaturesProvider/useFeature.d.ts +53 -0
- package/dist/src/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +3 -0
- package/dist/src/contexts/UnstableFeaturesProvider/useUnstableFeature.d.ts +38 -10
- package/dist/src/contexts/index.d.ts +1 -0
- package/dist/src/i18n/en/common.json.d.ts +5 -1
- package/dist/src/i18n/types.d.ts +195 -70
- package/dist/src/models/external.d.ts +63 -48
- package/dist/src/partner-hook-utils/form/fields/RadioGroupHookField.d.ts +9 -7
- package/dist/src/shared/constants.d.ts +5 -3
- package/dist/src/test-utils/renderWithProviders.d.ts +2 -0
- package/dist/style.css +1 -1
- package/docs/guides/endpoint-inventory.json +57 -40
- package/package.json +23 -22
- package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js +0 -29
- package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js.map +0 -1
- package/dist/components/Payroll/Transition/TransitionFlow.js +0 -60
- package/dist/components/Payroll/Transition/TransitionFlow.js.map +0 -1
- package/dist/components/Payroll/Transition/TransitionFlowComponents.js +0 -31
- package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +0 -1
- package/dist/components/Payroll/Transition/transitionStateMachine.js +0 -49
- package/dist/components/Payroll/Transition/transitionStateMachine.js.map +0 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +0 -100
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +0 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +0 -110
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +0 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.module.scss.js.map +0 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js +0 -21
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +0 -1
- package/dist/components/Payroll/TransitionPayroll/TransitionPayroll.js +0 -48
- package/dist/components/Payroll/TransitionPayroll/TransitionPayroll.js.map +0 -1
- package/dist/components/Payroll/TransitionPayroll/TransitionPayrollComponents.js +0 -35
- package/dist/components/Payroll/TransitionPayroll/TransitionPayrollComponents.js.map +0 -1
- package/dist/components/Payroll/TransitionPayroll/transitionPayrollStateMachine.js +0 -23
- package/dist/components/Payroll/TransitionPayroll/transitionPayrollStateMachine.js.map +0 -1
- package/dist/components/Payroll/TransitionPayroll/useResolveTransitionPayroll.js +0 -29
- package/dist/components/Payroll/TransitionPayroll/useResolveTransitionPayroll.js.map +0 -1
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js +0 -411
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js.map +0 -1
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.module.scss.js.map +0 -1
- package/dist/i18n/en/Payroll.Transition.json.js +0 -8
- package/dist/i18n/en/Payroll.Transition.json.js.map +0 -1
- package/dist/i18n/en/Payroll.TransitionCreation.json.js +0 -26
- package/dist/i18n/en/Payroll.TransitionCreation.json.js.map +0 -1
- package/dist/i18n/en/Payroll.UNSTABLE_PayrollEditEmployee.json.js.map +0 -1
- package/dist/src/components/Payroll/PayrollFlow/TransitionFlowContextual.d.ts +0 -7
- package/dist/src/components/Payroll/Transition/TransitionFlow.d.ts +0 -55
- package/dist/src/components/Payroll/Transition/TransitionFlowComponents.d.ts +0 -52
- package/dist/src/components/Payroll/Transition/index.d.ts +0 -2
- package/dist/src/components/Payroll/Transition/transitionStateMachine.d.ts +0 -29
- package/dist/src/components/Payroll/TransitionCreation/TransitionCreation.d.ts +0 -22
- package/dist/src/components/Payroll/TransitionCreation/TransitionCreationPresentation.d.ts +0 -9
- package/dist/src/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +0 -57
- package/dist/src/components/Payroll/TransitionCreation/index.d.ts +0 -2
- package/dist/src/components/Payroll/TransitionPayroll/TransitionPayroll.d.ts +0 -55
- package/dist/src/components/Payroll/TransitionPayroll/TransitionPayrollComponents.d.ts +0 -24
- package/dist/src/components/Payroll/TransitionPayroll/TransitionPayrollTypes.d.ts +0 -23
- package/dist/src/components/Payroll/TransitionPayroll/index.d.ts +0 -2
- package/dist/src/components/Payroll/TransitionPayroll/transitionPayrollStateMachine.d.ts +0 -15
- package/dist/src/components/Payroll/TransitionPayroll/useResolveTransitionPayroll.d.ts +0 -28
- /package/dist/src/components/{Payroll/Transition/transitionStateMachine.test.d.ts → Common/DataView/getSortControls.test.d.ts} +0 -0
|
@@ -19,7 +19,9 @@ export interface PayrollExecutionFlowProps {
|
|
|
19
19
|
companyId: string;
|
|
20
20
|
/**
|
|
21
21
|
* The identifier of the payroll to execute. The payroll must already exist (e.g. created by a
|
|
22
|
-
* prior creation step or by the standard `PayrollFlow` selection).
|
|
22
|
+
* prior creation step or by the standard `PayrollFlow` selection). For a transition payroll,
|
|
23
|
+
* render {@link TransitionConfiguration} first and pass the same ID here after it emits
|
|
24
|
+
* `transition/configured`.
|
|
23
25
|
*/
|
|
24
26
|
payrollId: string;
|
|
25
27
|
/** Event handler that receives the `RUN_PAYROLL_*` events emitted during the flow. */
|
|
@@ -59,10 +61,10 @@ export interface PayrollExecutionInternalFlowProps extends PayrollExecutionFlowP
|
|
|
59
61
|
*
|
|
60
62
|
* @remarks
|
|
61
63
|
* This is the inner flow that powers the back half of `Payroll.PayrollFlow`, and it is also reused
|
|
62
|
-
* by the off-cycle
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
64
|
+
* by the off-cycle and dismissal flows after they have created their respective payrolls. Render it
|
|
65
|
+
* directly when you have built your own payroll-creation step and want to hand the user off to the
|
|
66
|
+
* standard execution experience without re-implementing it. The flow ships with breadcrumb
|
|
67
|
+
* navigation and the standard wire-confirmation UX.
|
|
66
68
|
*
|
|
67
69
|
* @events
|
|
68
70
|
* | Event | Description | Data |
|
|
@@ -118,7 +120,7 @@ export declare function PayrollExecutionFlow(props: PayrollExecutionFlowProps):
|
|
|
118
120
|
/**
|
|
119
121
|
* Flow-internal entry point for {@link PayrollExecutionFlow} that additionally accepts
|
|
120
122
|
* flow-injected `prefixBreadcrumbs`. Partners use {@link PayrollExecutionFlow}; our own parent
|
|
121
|
-
* flows (off-cycle, dismissal,
|
|
123
|
+
* flows (off-cycle, dismissal, and `PayrollFlow`) render this directly to prepend
|
|
122
124
|
* their own breadcrumb trail.
|
|
123
125
|
*
|
|
124
126
|
* @internal
|
|
@@ -2,14 +2,6 @@ import { BreadcrumbNodes } from '../../Common/FlowBreadcrumbs/FlowBreadcrumbsTyp
|
|
|
2
2
|
/** @internal */
|
|
3
3
|
export declare const getPayrollExecutionBreadcrumbsNodes: (isDismissal?: boolean) => BreadcrumbNodes;
|
|
4
4
|
/** @internal */
|
|
5
|
-
export declare const calculatedTransition: import('robot3').Transition<"runPayroll/calculated">;
|
|
6
|
-
/** @internal */
|
|
7
|
-
export declare const alreadyProcessedTransition: import('robot3').Transition<"runPayroll/alreadyProcessed">;
|
|
8
|
-
/** @internal */
|
|
9
|
-
export declare const employeeEditTransition: import('robot3').Transition<"runPayroll/employee/edit">;
|
|
10
|
-
/** @internal */
|
|
11
|
-
export declare const blockersViewAllTransition: import('robot3').Transition<"runPayroll/blockers/viewAll">;
|
|
12
|
-
/** @internal */
|
|
13
5
|
export declare const payrollExecutionMachine: {
|
|
14
6
|
configuration: import('robot3').MachineState<any>;
|
|
15
7
|
overview: import('robot3').MachineState<any>;
|
|
@@ -3,7 +3,7 @@ import { PayrollFlowProps } from './PayrollFlowComponents';
|
|
|
3
3
|
* Hub for running and managing all payrolls across a company's pay schedules.
|
|
4
4
|
*
|
|
5
5
|
* @remarks
|
|
6
|
-
* Renders the payroll landing page and orchestrates the full run-payroll experience: selecting a payroll, configuring earnings and reimbursements, reviewing totals, submitting, and viewing receipts. Off-cycle, transition, and edit-employee steps are reachable from the same flow.
|
|
6
|
+
* Renders the payroll landing page and orchestrates the full run-payroll experience: selecting a payroll, configuring earnings and reimbursements, reviewing totals, submitting, and viewing receipts. Off-cycle, transition, and edit-employee steps are reachable from the same flow. Running a transition payroll opens {@link TransitionConfiguration} first. After it saves, the regular payroll steps open for the same payroll.
|
|
7
7
|
*
|
|
8
8
|
* @events
|
|
9
9
|
* | Event | Description | Data |
|
|
@@ -23,14 +23,16 @@ import { PayrollFlowProps } from './PayrollFlowComponents';
|
|
|
23
23
|
* | `runPayroll/summary/viewed` | The summary screen is opened | `{ payrollId: string }` |
|
|
24
24
|
* | `runPayroll/receipt/viewed` | The receipt screen is opened | `{ payrollId: string }` |
|
|
25
25
|
* | `runPayroll/offCycle/start` | The user starts an off-cycle payroll | — |
|
|
26
|
-
* | `transition/runPayroll` | The user
|
|
26
|
+
* | `transition/runPayroll` | The user clicks Run on a transition payroll in the alert | `{ payrollUuid: string, startDate: string, endDate: string, payScheduleUuid: string }` |
|
|
27
|
+
* | `transition/payrollSelected` | The user clicks Run on a transition payroll in the payroll list | `{ payrollUuid: string, payPeriod: object }` |
|
|
28
|
+
* | `transition/configured` | The transition payroll settings are saved | `{ payrollUuid: string, payrollPrepared: object }` |
|
|
27
29
|
* | `payroll/saveAndExit` | The user clicks Save and Exit | — |
|
|
28
30
|
*
|
|
29
31
|
* @components
|
|
30
32
|
* - {@link PayrollLanding}
|
|
31
33
|
* - {@link PayrollExecutionFlow}
|
|
32
34
|
* - {@link OffCycleFlow}
|
|
33
|
-
* - {@link
|
|
35
|
+
* - {@link TransitionConfiguration}
|
|
34
36
|
* - {@link PayrollBlockerList}
|
|
35
37
|
* - {@link PayrollOverview}
|
|
36
38
|
* - {@link PayrollReceipts}
|
|
@@ -53,9 +53,6 @@ export interface PayrollFlowContextInterface extends FlowContextInterface {
|
|
|
53
53
|
showPayrollCancelledAlert?: boolean;
|
|
54
54
|
hasPayrollSubmissionStarted?: boolean;
|
|
55
55
|
executionInitialState?: 'configuration' | 'overview';
|
|
56
|
-
transitionStartDate?: string;
|
|
57
|
-
transitionEndDate?: string;
|
|
58
|
-
transitionPayScheduleUuid?: string;
|
|
59
56
|
}
|
|
60
57
|
/** @internal */
|
|
61
58
|
export declare function PayrollLandingContextual(): import('react').JSX.Element;
|
|
@@ -70,4 +67,6 @@ export declare function PayrollReceiptsContextual(): import('react').JSX.Element
|
|
|
70
67
|
/** @internal */
|
|
71
68
|
export declare function PayrollBlockerContextual(): import('react').JSX.Element;
|
|
72
69
|
/** @internal */
|
|
70
|
+
export declare function TransitionConfigurationContextual(): import('react').JSX.Element;
|
|
71
|
+
/** @internal */
|
|
73
72
|
export declare function SaveAndExitCta(): import('react').JSX.Element | null;
|
|
@@ -8,6 +8,6 @@ export declare const payrollFlowMachine: {
|
|
|
8
8
|
blockers: import('robot3').MachineState<any>;
|
|
9
9
|
submittedOverview: import('robot3').MachineState<any>;
|
|
10
10
|
submittedReceipts: import('robot3').MachineState<any>;
|
|
11
|
-
|
|
11
|
+
transitionConfiguration: import('robot3').MachineState<any>;
|
|
12
12
|
offCycle: import('robot3').MachineState<any>;
|
|
13
13
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Payroll } from '@gusto/embedded-api/models/components/
|
|
1
|
+
import { Payroll } from '@gusto/embedded-api/models/components/unprocessedpayroll';
|
|
2
2
|
import { WireInRequest } from '@gusto/embedded-api/models/components/wireinrequest';
|
|
3
3
|
import { PaginationControlProps } from '../../Common/PaginationControl/PaginationControlTypes';
|
|
4
4
|
import { UseDateRangeFilterResult } from '../../../hooks/useDateRangeFilter/useDateRangeFilter';
|
|
@@ -25,12 +25,13 @@ export interface PayrollLandingProps extends BaseComponentInterface<'Payroll.Pay
|
|
|
25
25
|
* | Event | Description | Data |
|
|
26
26
|
* | ----- | ----------- | ---- |
|
|
27
27
|
* | `runPayroll/selected` | User selected a payroll to run | `{ payrollUuid: string, payPeriod: object }` |
|
|
28
|
+
* | `transition/payrollSelected` | User selected a transition payroll to run from the payroll list | `{ payrollUuid: string, payPeriod: object }` |
|
|
28
29
|
* | `payroll/review` | User selected a calculated payroll to review | `{ payrollUuid: string, payPeriod: object }` |
|
|
29
30
|
* | `payroll/skipped` | A payroll was skipped | `{ payrollId: string }` |
|
|
30
31
|
* | `payroll/deleted` | A cancellable off-cycle payroll was deleted | `{ payrollId: string }` |
|
|
31
32
|
* | `runPayroll/offCycle/start` | User clicked the Run off-cycle call-to-action | — |
|
|
32
|
-
* | `transition/runPayroll` | User chose to run an unprocessed transition payroll from the Transition Payroll Alert | `{ startDate: string, endDate: string, payScheduleUuid?: string }` |
|
|
33
|
-
* | `transition/payrollSkipped` | User skipped an unprocessed transition payroll from the Transition Payroll Alert | `{ startDate: string, endDate: string, payScheduleUuid?: string }` |
|
|
33
|
+
* | `transition/runPayroll` | User chose to run an unprocessed transition payroll from the Transition Payroll Alert | `{ payrollUuid?: string, startDate: string, endDate: string, payScheduleUuid?: string }` |
|
|
34
|
+
* | `transition/payrollSkipped` | User skipped an unprocessed transition payroll from the Transition Payroll Alert | `{ payrollUuid?: string, startDate: string, endDate: string, payScheduleUuid?: string }` |
|
|
34
35
|
* | `runPayroll/summary/viewed` | User opened a payroll's summary view | `{ payrollId: string }` |
|
|
35
36
|
* | `runPayroll/receipt/viewed` | User opened a payroll's receipt view | `{ payrollId: string }` |
|
|
36
37
|
* | `runPayroll/blockers/viewAll` | User opened the full list of payroll blockers | — |
|
|
@@ -39,14 +40,26 @@ export interface PayrollLandingProps extends BaseComponentInterface<'Payroll.Pay
|
|
|
39
40
|
* | `runPayroll/cancelled/alertDismissed` | User dismissed the payroll-cancelled success alert | — |
|
|
40
41
|
*
|
|
41
42
|
* When unprocessed transition pay periods exist, the landing surface renders a Transition
|
|
42
|
-
* Payroll Alert. It looks ahead 90 days for upcoming transition periods
|
|
43
|
-
*
|
|
44
|
-
*
|
|
43
|
+
* Payroll Alert. It looks ahead 90 days for upcoming transition periods and lists every one
|
|
44
|
+
* that hasn't been run, grouped by pay schedule, with run and skip actions on each row.
|
|
45
|
+
* Clicking Run emits `transition/runPayroll`. If the payroll is already calculated, the button
|
|
46
|
+
* reads Review and submit and emits `payroll/review` instead, like the payroll list.
|
|
45
47
|
* Skipping opens a confirmation dialog — warning that employees will not be paid for the
|
|
46
48
|
* period — then skips the payroll and emits `transition/payrollSkipped`. Transition pay
|
|
47
49
|
* periods should be resolved (run or skipped) before regular payrolls are run; the Gusto API
|
|
48
50
|
* may reject regular payrolls while unresolved transition periods exist.
|
|
49
51
|
*
|
|
52
|
+
* `PayrollLanding` emits these events but doesn't change screens on them. `PayrollFlow`
|
|
53
|
+
* handles the routing for you. If you render `PayrollLanding` yourself, route on these events:
|
|
54
|
+
*
|
|
55
|
+
* - `transition/runPayroll` (alert) or `transition/payrollSelected` (payroll list): render
|
|
56
|
+
* {@link TransitionConfiguration} with the event's `payrollUuid` as `payrollId`.
|
|
57
|
+
* - `transition/configured` (from `TransitionConfiguration`): render
|
|
58
|
+
* {@link PayrollExecutionFlow} for the same payroll.
|
|
59
|
+
* - `runPayroll/selected`: render `PayrollExecutionFlow` for the event's `payrollUuid`.
|
|
60
|
+
* - `payroll/review`: render `PayrollExecutionFlow` for the event's `payrollUuid` with
|
|
61
|
+
* `initialState="overview"`. Calculated transition payrolls use this event too.
|
|
62
|
+
*
|
|
50
63
|
* @param props - See {@link PayrollLandingProps}.
|
|
51
64
|
* @returns The payroll landing flow.
|
|
52
65
|
* @public
|
|
@@ -22,16 +22,22 @@ export interface PayrollListBlockProps extends BaseComponentInterface<never> {
|
|
|
22
22
|
* When the company has unprocessed transition pay periods within the next
|
|
23
23
|
* 90 days, the Run Payroll action on Regular rows is disabled to prevent a
|
|
24
24
|
* regular payroll from being run before the transition is resolved. Off-cycle
|
|
25
|
-
* rows and the Run off-cycle action
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
25
|
+
* rows, including transition payroll rows, and the Run off-cycle action stay
|
|
26
|
+
* enabled.
|
|
27
|
+
*
|
|
28
|
+
* Running a transition payroll row emits `transition/payrollSelected` instead
|
|
29
|
+
* of `runPayroll/selected`. Handle it by rendering
|
|
30
|
+
* {@link TransitionConfiguration} with the event's `payrollUuid` as
|
|
31
|
+
* `payrollId`, then render {@link PayrollExecutionFlow} for the same payroll on
|
|
32
|
+
* `transition/configured`. {@link PayrollLanding} also shows an alert that lets
|
|
33
|
+
* users run or skip each pending transition payroll. When using `PayrollList`
|
|
34
|
+
* directly, give users a way to run or skip those payrolls alongside it.
|
|
30
35
|
*
|
|
31
36
|
* @events
|
|
32
37
|
* | Event | Description | Data |
|
|
33
38
|
* | ----- | ----------- | ---- |
|
|
34
39
|
* | `runPayroll/selected` | User selected a payroll to run | `{ payrollUuid, payPeriod }` |
|
|
40
|
+
* | `transition/payrollSelected` | User selected a transition payroll to run | `{ payrollUuid, payPeriod }` |
|
|
35
41
|
* | `payroll/review` | User selected a calculated payroll to review and submit | `{ payrollUuid, payPeriod }` |
|
|
36
42
|
* | `payroll/skipped` | A payroll was successfully skipped | `{ payrollId }` |
|
|
37
43
|
* | `payroll/deleted` | A cancellable off-cycle payroll was successfully deleted | `{ payrollId }` |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Payroll } from '@gusto/embedded-api/models/components/
|
|
2
|
-
import { PayScheduleShow } from '@gusto/embedded-api/models/components/
|
|
1
|
+
import { Payroll } from '@gusto/embedded-api/models/components/unprocessedpayroll';
|
|
2
|
+
import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
|
|
3
3
|
import { WireInRequest } from '@gusto/embedded-api/models/components/wireinrequest';
|
|
4
4
|
import { ApiPayrollBlocker } from '../PayrollBlocker/payrollHelpers';
|
|
5
5
|
import { PaginationControlProps } from '../../Common/PaginationControl/PaginationControlTypes';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PayrollShow } from '@gusto/embedded-api/models/components/
|
|
1
|
+
import { PayrollShow } from '@gusto/embedded-api/models/components/unprocessedpayroll';
|
|
2
2
|
import { CompanyBankAccount } from '@gusto/embedded-api/models/components/companybankaccount';
|
|
3
3
|
import { PayrollSubmissionBlockerType } from '@gusto/embedded-api/models/components/payrollsubmissionblockertype';
|
|
4
4
|
import { PaymentSpeed } from '@gusto/embedded-api/models/components/paymentconfigs';
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { PayrollEditEmployeeProps } from '../PayrollEditEmployee/PayrollEditEmployee';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Regular rate of pay (RRoP) rebuild of {@link PayrollEditEmployee}.
|
|
4
4
|
*
|
|
5
5
|
* @remarks
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* Not exported and not part of the public SDK surface. Partners reach it only through
|
|
7
|
+
* `PayrollEditEmployee`, which renders it in place of the legacy editor unless the
|
|
8
|
+
* `regularRateOfPay` flag in {@link Features} is set to `false`. Once that flag is removed, this
|
|
9
|
+
* component replaces `PayrollEditEmployee` as the public export, and the
|
|
10
|
+
* `Payroll.RropPayrollEditEmployee` translation namespace is renamed with it.
|
|
11
|
+
*
|
|
12
|
+
* Consumes {@link usePayrollEditEmployeeForm} and renders the header, the hours /
|
|
9
13
|
* additional-earnings / time-off / payment-method sections, and the
|
|
10
14
|
* `Cancel`/`Save` controls, performing a real payroll update on save. For an overtime-eligible
|
|
11
15
|
* employee on a multi-workweek payroll, Overtime/Double-overtime rows start hidden behind a single,
|
|
@@ -17,4 +21,4 @@ import { PayrollEditEmployeeProps } from '../PayrollEditEmployee/PayrollEditEmpl
|
|
|
17
21
|
*
|
|
18
22
|
* @internal
|
|
19
23
|
*/
|
|
20
|
-
export declare function
|
|
24
|
+
export declare function RropPayrollEditEmployee({ FallbackComponent, LoaderComponent, ...props }: PayrollEditEmployeeProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { TransitionConfigurationProps } from './TransitionConfigurationTypes';
|
|
2
|
+
/**
|
|
3
|
+
* Lets the user change the settings of a transition payroll before running it.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* The API creates a transition payroll when a company changes pay schedules. This component
|
|
7
|
+
* updates that payroll. It never creates one.
|
|
8
|
+
*
|
|
9
|
+
* - The pay period, pay schedule, and payment date are shown but can't be changed.
|
|
10
|
+
* - The user can choose to take or skip regular deductions, and how to withhold taxes.
|
|
11
|
+
*
|
|
12
|
+
* If a setting is empty, deductions are taken, the regular tax rate is used, and the pay frequency
|
|
13
|
+
* matches the pay schedule. The payment date is read only for now. Saving can still move it, and
|
|
14
|
+
* the form shows the new date.
|
|
15
|
+
*
|
|
16
|
+
* `PayrollFlow` renders this component for you. To build the screens yourself:
|
|
17
|
+
*
|
|
18
|
+
* 1. Get the transition payroll ID. {@link PayrollLanding} sends it as `payrollUuid` with
|
|
19
|
+
* `transition/runPayroll`, and {@link PayrollList} sends it with `transition/payrollSelected`.
|
|
20
|
+
* To look it up without those components, call
|
|
21
|
+
* `GET /v1/companies/{company_id}/pay_periods?payroll_types=transition` and read
|
|
22
|
+
* `payroll.payroll_uuid` from the pay period.
|
|
23
|
+
* 2. Render this component with that ID as `payrollId`.
|
|
24
|
+
* 3. On `transition/configured`, render {@link PayrollExecutionFlow} with the same `payrollId`.
|
|
25
|
+
* It opens on `PayrollConfiguration`, then continues to review, submit, and receipts.
|
|
26
|
+
*
|
|
27
|
+
* @events
|
|
28
|
+
* | Event | Description | Data |
|
|
29
|
+
* | ----- | ----------- | ---- |
|
|
30
|
+
* | `transition/configured` | The settings were saved | `{ payrollUuid: string, payrollPrepared: PayrollPrepared }` |
|
|
31
|
+
*
|
|
32
|
+
* @param props - See {@link TransitionConfigurationProps}.
|
|
33
|
+
* @returns The transition payroll settings form.
|
|
34
|
+
* @public
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```tsx
|
|
38
|
+
* import { componentEvents, Payroll } from '@gusto/embedded-react-sdk'
|
|
39
|
+
*
|
|
40
|
+
* function TransitionPayrollPage({ companyId, payrollId }: { companyId: string; payrollId: string }) {
|
|
41
|
+
* return (
|
|
42
|
+
* <Payroll.TransitionConfiguration
|
|
43
|
+
* companyId={companyId}
|
|
44
|
+
* payrollId={payrollId}
|
|
45
|
+
* onEvent={type => {
|
|
46
|
+
* if (type === componentEvents.TRANSITION_CONFIGURED) {
|
|
47
|
+
* navigate(`/payrolls/${payrollId}/run`)
|
|
48
|
+
* }
|
|
49
|
+
* }}
|
|
50
|
+
* />
|
|
51
|
+
* )
|
|
52
|
+
* }
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
export declare function TransitionConfiguration(props: TransitionConfigurationProps): import('react').JSX.Element;
|
package/dist/src/components/Payroll/TransitionConfiguration/TransitionConfigurationPresentation.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TransitionConfigurationPresentationProps } from './TransitionConfigurationTypes';
|
|
2
|
+
/**
|
|
3
|
+
* Layout for the transition payroll settings form.
|
|
4
|
+
*
|
|
5
|
+
* @param props - {@link TransitionConfigurationPresentationProps}.
|
|
6
|
+
* @returns The form layout.
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare function TransitionConfigurationPresentation({ className, payPeriodStartDate, payPeriodEndDate, payScheduleName, checkDate, isPending, taxWithholdingConfig, isTaxWithholdingModalOpen, onTaxWithholdingEditClick, onTaxWithholdingModalDone, onTaxWithholdingModalCancel, }: TransitionConfigurationPresentationProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { OffCycleTaxWithholdingConfig } from '../OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes';
|
|
3
|
+
import { BaseComponentInterface } from '../../Base/Base';
|
|
4
|
+
/**
|
|
5
|
+
* Props for {@link TransitionConfiguration}.
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export interface TransitionConfigurationProps extends BaseComponentInterface<'Payroll.TransitionConfiguration'> {
|
|
10
|
+
/** The company ID. */
|
|
11
|
+
companyId: string;
|
|
12
|
+
/** The ID of the transition payroll to update. */
|
|
13
|
+
payrollId: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Values in the transition payroll settings form.
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export interface TransitionConfigurationFormData {
|
|
21
|
+
/** `true` to skip regular deductions. */
|
|
22
|
+
skipRegularDeductions: boolean;
|
|
23
|
+
}
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare function createTransitionConfigurationSchema(): z.ZodObject<{
|
|
26
|
+
skipRegularDeductions: z.ZodBoolean;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
/** @internal */
|
|
29
|
+
export interface TransitionConfigurationPresentationProps {
|
|
30
|
+
/** Class name for the root element. */
|
|
31
|
+
className?: string;
|
|
32
|
+
/** First day of the pay period (YYYY-MM-DD). */
|
|
33
|
+
payPeriodStartDate?: string | null;
|
|
34
|
+
/** Last day of the pay period (YYYY-MM-DD). */
|
|
35
|
+
payPeriodEndDate?: string | null;
|
|
36
|
+
/** Pay schedule name, or `null` if unknown. */
|
|
37
|
+
payScheduleName: string | null;
|
|
38
|
+
/** Payment date (YYYY-MM-DD), or `null` if unknown. */
|
|
39
|
+
checkDate: string | null;
|
|
40
|
+
/** `true` while saving. */
|
|
41
|
+
isPending?: boolean;
|
|
42
|
+
/** Tax withholding settings shown in the table. */
|
|
43
|
+
taxWithholdingConfig: OffCycleTaxWithholdingConfig;
|
|
44
|
+
/** `true` when the tax withholding modal is open. */
|
|
45
|
+
isTaxWithholdingModalOpen: boolean;
|
|
46
|
+
/** Called when the user clicks Edit on the tax table. */
|
|
47
|
+
onTaxWithholdingEditClick: () => void;
|
|
48
|
+
/** Called when the user saves new tax settings in the modal. */
|
|
49
|
+
onTaxWithholdingModalDone: (config: OffCycleTaxWithholdingConfig) => void;
|
|
50
|
+
/** Called when the user closes the modal without saving. */
|
|
51
|
+
onTaxWithholdingModalCancel: () => void;
|
|
52
|
+
}
|
package/dist/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.d.ts
CHANGED
|
@@ -3,13 +3,16 @@ import { PayPeriod } from '@gusto/embedded-api/models/components/payperiod';
|
|
|
3
3
|
export interface TransitionPayPeriodGroup {
|
|
4
4
|
/** UUID of the pay schedule these transition pay periods belong to. */
|
|
5
5
|
payScheduleUuid: string;
|
|
6
|
-
/** Display name of the pay schedule, shown when
|
|
6
|
+
/** Display name of the pay schedule, shown under each pay period's dates when several are listed. */
|
|
7
7
|
payScheduleName: string;
|
|
8
8
|
/** Unprocessed transition pay periods for this pay schedule. */
|
|
9
9
|
payPeriods: PayPeriod[];
|
|
10
10
|
}
|
|
11
11
|
interface TransitionPayrollAlertPresentationProps {
|
|
12
12
|
groupedPayPeriods: TransitionPayPeriodGroup[];
|
|
13
|
+
/** IDs of payrolls that are already calculated. These rows show Review and submit instead of Run. */
|
|
14
|
+
calculatedPayrollUuids?: string[];
|
|
15
|
+
/** Called when the user clicks Run or Review and submit on a row. */
|
|
13
16
|
onRunPayroll: (payPeriod: PayPeriod) => void;
|
|
14
17
|
onSkipPayroll: (payPeriod: PayPeriod) => void;
|
|
15
18
|
showSkipSuccessAlert: boolean;
|
|
@@ -23,5 +26,5 @@ interface TransitionPayrollAlertPresentationProps {
|
|
|
23
26
|
hasBlockers?: boolean;
|
|
24
27
|
}
|
|
25
28
|
/** @internal */
|
|
26
|
-
export declare function TransitionPayrollAlertPresentation({ groupedPayPeriods, onRunPayroll, onSkipPayroll, showSkipSuccessAlert, onDismissSkipSuccessAlert, skippingPayPeriod, hasBlockers, }: TransitionPayrollAlertPresentationProps): import('react').JSX.Element | null;
|
|
29
|
+
export declare function TransitionPayrollAlertPresentation({ groupedPayPeriods, calculatedPayrollUuids, onRunPayroll, onSkipPayroll, showSkipSuccessAlert, onDismissSkipSuccessAlert, skippingPayPeriod, hasBlockers, }: TransitionPayrollAlertPresentationProps): import('react').JSX.Element | null;
|
|
27
30
|
export {};
|
|
@@ -3,8 +3,8 @@ import { FixedCompensations, Reimbursements as Reimbursement, PayrollEmployeeCom
|
|
|
3
3
|
import { PayrollUpdateReimbursements } from '@gusto/embedded-api/models/components/payrollupdate';
|
|
4
4
|
import { PayrollFixedCompensationTypesType } from '@gusto/embedded-api/models/components/payrollfixedcompensationtypestype';
|
|
5
5
|
import { TFunction } from 'i18next';
|
|
6
|
-
import { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api/models/components/
|
|
7
|
-
import { Payroll } from '@gusto/embedded-api/models/components/
|
|
6
|
+
import { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api/models/components/payschedulelistitem';
|
|
7
|
+
import { Payroll } from '@gusto/embedded-api/models/components/unprocessedpayroll';
|
|
8
8
|
import { PayrollType } from './PayrollList/types';
|
|
9
9
|
import { PayrollCategory } from './payrollTypes';
|
|
10
10
|
import { useDateFormatter } from '../../hooks/useDateFormatter';
|
|
@@ -36,9 +36,5 @@ export { DismissalFlow } from './Dismissal';
|
|
|
36
36
|
export type { DismissalFlowProps } from './Dismissal';
|
|
37
37
|
export { DismissalPayPeriodSelection } from './Dismissal';
|
|
38
38
|
export type { DismissalPayPeriodSelectionProps } from './Dismissal';
|
|
39
|
-
export {
|
|
40
|
-
export type {
|
|
41
|
-
export { TransitionCreation } from './TransitionCreation';
|
|
42
|
-
export type { TransitionCreationProps, TransitionCreationFormData } from './TransitionCreation';
|
|
43
|
-
export { TransitionPayroll } from './TransitionPayroll';
|
|
44
|
-
export type { TransitionPayrollProps } from './TransitionPayroll';
|
|
39
|
+
export { TransitionConfiguration } from './TransitionConfiguration';
|
|
40
|
+
export type { TransitionConfigurationProps } from './TransitionConfiguration';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PayrollPrepared } from '@gusto/embedded-api/models/components/
|
|
2
|
-
import { PayScheduleShow } from '@gusto/embedded-api/models/components/
|
|
1
|
+
import { PayrollPrepared } from '@gusto/embedded-api/models/components/unprocessedpayroll';
|
|
2
|
+
import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
|
|
3
3
|
interface UsePreparedPayrollDataParams {
|
|
4
4
|
companyId: string;
|
|
5
5
|
payrollId: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AfterSuccessHook } from '../../types/hooks';
|
|
2
|
+
/**
|
|
3
|
+
* Temporary workaround for a pay-schedule response compatibility gap: `custom_name` is generated as
|
|
4
|
+
* a non-nullable optional string (`z.string().optional()`) in `@gusto/embedded-api`, so a response
|
|
5
|
+
* with `custom_name: null` throws an `SDKValidationError` -- rejecting the whole pay schedule list
|
|
6
|
+
* response, not just the one affected item. This afterSuccess hook deletes an explicit
|
|
7
|
+
* `custom_name: null` before the SDK's zod parse, collapsing it to the same "omitted" shape the
|
|
8
|
+
* schema already accepts and that pay schedule display and form initialization already default to
|
|
9
|
+
* an empty string for. Omission, valid strings, and unrelated fields are left untouched. Remove once
|
|
10
|
+
* the generated client accepts `custom_name: null` directly.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare const payScheduleCustomNameHook: AfterSuccessHook;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -19,7 +19,7 @@ export type { RadioProps } from '../../components/Common/UI/Radio/RadioTypes';
|
|
|
19
19
|
export type { RadioGroupProps, RadioGroupOption, } from '../../components/Common/UI/RadioGroup/RadioGroupTypes';
|
|
20
20
|
export type { SelectProps, SelectOption } from '../../components/Common/UI/Select/SelectTypes';
|
|
21
21
|
export type { SwitchProps } from '../../components/Common/UI/Switch/SwitchTypes';
|
|
22
|
-
export type { TableProps, TableData, TableRow } from '../../components/Common/UI/Table/TableTypes';
|
|
22
|
+
export type { TableProps, TableData, TableRow, TableHeaderData, TableSortControls, TableSortDirection, } from '../../components/Common/UI/Table/TableTypes';
|
|
23
23
|
export type { TextInputProps } from '../../components/Common/UI/TextInput/TextInputTypes';
|
|
24
24
|
export type { AlertProps } from '../../components/Common/UI/Alert/AlertTypes';
|
|
25
25
|
export type { BadgeProps } from '../../components/Common/UI/Badge/BadgeTypes';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Features } from './useFeature';
|
|
3
|
+
/** @internal */
|
|
4
|
+
export interface FeaturesProviderProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
value?: Features;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Provides the {@link Features} flags to SDK components via {@link FeaturesContext}.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* Composed by `GustoProvider` so the `features` prop flows down to any SDK Flow or Block that
|
|
13
|
+
* checks {@link useFeature}. The context value is keyed on its sorted, serialized content rather
|
|
14
|
+
* than the `value` object's identity — the returned reference only changes when a flag's value
|
|
15
|
+
* actually changes, and adding a new flag to {@link Features} needs no update here.
|
|
16
|
+
*
|
|
17
|
+
* @param props - See {@link FeaturesProviderProps}.
|
|
18
|
+
* @returns A React subtree with the features context applied.
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
export declare function FeaturesProvider({ children, value }: FeaturesProviderProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flags for turning released SDK functionality on or off.
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* Pass to {@link GustoProvider} via the `features` prop. Each flag documents its default and what
|
|
6
|
+
* changes when you set it. Omitted flags use their default.
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
9
|
+
* @page providers
|
|
10
|
+
*/
|
|
11
|
+
export interface Features {
|
|
12
|
+
/**
|
|
13
|
+
* Regular rate of pay (RRoP) support: per-workweek overtime in payroll editing, and the pay
|
|
14
|
+
* schedule workweek start day it depends on.
|
|
15
|
+
*
|
|
16
|
+
* When `true`, `Payroll.PayrollEditEmployee` renders the RRoP editor, where adding overtime for an
|
|
17
|
+
* overtime-eligible employee on a multi-workweek payroll splits hours and overtime-affecting
|
|
18
|
+
* earnings into one column per workweek. `Payroll.PayrollConfiguration` shows each employee's
|
|
19
|
+
* total pay as the gross pay returned by the API. `usePayScheduleForm` exposes
|
|
20
|
+
* `Fields.WorkweekStartDay` and submits `workweekStartDay`, so the pay schedule forms in
|
|
21
|
+
* `CompanyOnboarding.PaySchedule` and `CompanyManagement.PaySchedule` show the field.
|
|
22
|
+
*
|
|
23
|
+
* When `false`, `Payroll.PayrollEditEmployee` renders the previous editor, which edits total hours
|
|
24
|
+
* for the whole pay period and sends no per-workweek breakdowns. `Payroll.PayrollConfiguration`
|
|
25
|
+
* estimates total pay from hours and pay rates. `Fields.WorkweekStartDay` is `undefined` and
|
|
26
|
+
* `workweekStartDay` is not submitted.
|
|
27
|
+
*
|
|
28
|
+
* Every flow that renders these screens follows the flag, including `Payroll.PayrollFlow`,
|
|
29
|
+
* `Payroll.PayrollExecutionFlow`, `Payroll.OffCycleFlow`, `Payroll.DismissalFlow`, and
|
|
30
|
+
* `CompanyOnboarding.OnboardingFlow`.
|
|
31
|
+
*
|
|
32
|
+
* @defaultValue `true`
|
|
33
|
+
*/
|
|
34
|
+
regularRateOfPay?: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* React context backing {@link useFeature}.
|
|
38
|
+
*
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
export declare const FeaturesContext: import('react').Context<Features>;
|
|
42
|
+
/**
|
|
43
|
+
* Reads whether `feature` is enabled via {@link GustoProvider}'s `features` prop.
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* Only an explicit `false` disables a flag, so omitting it — or rendering outside a
|
|
47
|
+
* `GustoProvider` — leaves the functionality on.
|
|
48
|
+
*
|
|
49
|
+
* @param feature - The {@link Features} flag to read.
|
|
50
|
+
* @returns `false` when `feature` is explicitly set to `false`, otherwise `true`.
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
export declare const useFeature: (feature: keyof Features) => boolean;
|
|
@@ -2,6 +2,7 @@ import { default as React, JSX, ReactNode } from 'react';
|
|
|
2
2
|
import { QueryClient } from '@tanstack/react-query';
|
|
3
3
|
import { ComponentsContextType } from '../ComponentAdapter/useComponentContext';
|
|
4
4
|
import { UnstableFeatures } from '../UnstableFeaturesProvider/useUnstableFeature';
|
|
5
|
+
import { Features } from '../FeaturesProvider/useFeature';
|
|
5
6
|
import { GustoSDKTheme } from '../ThemeProvider/theme';
|
|
6
7
|
import { GlobalResourceDictionary } from '../../types/Helpers';
|
|
7
8
|
import { SDKHooks } from '../../types/hooks';
|
|
@@ -63,6 +64,8 @@ export interface GustoBaseProviderProps {
|
|
|
63
64
|
LoaderComponent?: ({ children }: {
|
|
64
65
|
children?: ReactNode;
|
|
65
66
|
}) => JSX.Element;
|
|
67
|
+
/** Flags for turning released SDK functionality on or off. Omitted flags use their default. See {@link Features}. */
|
|
68
|
+
features?: Features;
|
|
66
69
|
/**
|
|
67
70
|
* Opt-in flags for alpha SDK functionality. See {@link UnstableFeatures}.
|
|
68
71
|
* @alpha
|
|
@@ -4,24 +4,52 @@
|
|
|
4
4
|
* @remarks
|
|
5
5
|
* Pass to {@link GustoProvider} via the `unstableFeatures` prop to enable a feature ahead of its
|
|
6
6
|
* public release. Every flag defaults to disabled when omitted. When a feature graduates to
|
|
7
|
-
* public release, its flag is deleted from this interface
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
7
|
+
* public release, its flag is deleted from this interface — there is no deprecation step. The
|
|
8
|
+
* conditional checks that read it are deleted too, or moved to a {@link Features} flag when the
|
|
9
|
+
* released feature still needs a way to turn it off. This interface may have no flags at all
|
|
10
|
+
* at any given time — e.g. immediately after the last active flag graduates and before the next
|
|
11
|
+
* one is added — the opt-in mechanism itself is permanent even when nothing is currently gated
|
|
12
|
+
* behind it.
|
|
11
13
|
*
|
|
12
14
|
* @alpha
|
|
13
15
|
*/
|
|
14
16
|
export interface UnstableFeatures {
|
|
15
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Recording contractor payments that were made outside of Gusto.
|
|
19
|
+
*
|
|
20
|
+
* When `true`, `ContractorManagement.PaymentsList` (and `ContractorManagement.PaymentFlow`, which
|
|
21
|
+
* renders it) shows a "Record a historical payment" call to action that opens the historical
|
|
22
|
+
* payment flow. `ContractorManagement.HistoricalPaymentFlow`,
|
|
23
|
+
* `ContractorManagement.CreateHistoricalPayment`, and
|
|
24
|
+
* `ContractorManagement.HistoricalPaymentSummary` can be mounted.
|
|
25
|
+
*
|
|
26
|
+
* When `false`, the call to action is hidden and those three components throw when mounted.
|
|
27
|
+
*
|
|
28
|
+
* @defaultValue `false`
|
|
29
|
+
*/
|
|
16
30
|
historicalPayments?: boolean;
|
|
17
31
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
32
|
+
* Managing pay schedules and their employee assignments after onboarding.
|
|
33
|
+
*
|
|
34
|
+
* When `true`, `CompanyManagement.PaySchedule` and `CompanyManagement.PayScheduleAssignment` can
|
|
35
|
+
* be mounted.
|
|
36
|
+
*
|
|
37
|
+
* When `false`, both components throw when mounted. `CompanyOnboarding.PaySchedule` is not
|
|
38
|
+
* affected.
|
|
39
|
+
*
|
|
40
|
+
* @defaultValue `false`
|
|
20
41
|
*/
|
|
21
|
-
payrollRegularRateOfPay?: boolean;
|
|
22
|
-
/** Enables the in-development `CompanyManagement.PaySchedule` flow for managing pay schedules and their assignments after onboarding. */
|
|
23
42
|
managePaySchedules?: boolean;
|
|
24
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Reviewing a company's tax payments and their liabilities.
|
|
45
|
+
*
|
|
46
|
+
* When `true`, `CompanyManagement.TaxPaymentsFlow`, `CompanyManagement.TaxPaymentsList`, and
|
|
47
|
+
* `CompanyManagement.TaxPaymentDetail` can be mounted.
|
|
48
|
+
*
|
|
49
|
+
* When `false`, all three components throw when mounted.
|
|
50
|
+
*
|
|
51
|
+
* @defaultValue `false`
|
|
52
|
+
*/
|
|
25
53
|
taxPayments?: boolean;
|
|
26
54
|
}
|
|
27
55
|
/**
|
|
@@ -6,3 +6,4 @@ export * from './ComponentAdapter/componentAdapterTypes';
|
|
|
6
6
|
export type { GustoSDKTheme, GustoSDKThemeColors } from './ThemeProvider/theme';
|
|
7
7
|
export { useNonce } from './NonceProvider';
|
|
8
8
|
export type { UnstableFeatures } from './UnstableFeaturesProvider/useUnstableFeature';
|
|
9
|
+
export type { Features } from './FeaturesProvider/useFeature';
|