@gusto/embedded-react-sdk 0.46.0 → 0.46.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +117 -0
- package/dist/components/Common/DataView/DataCards/DataCards.d.ts +2 -1
- package/dist/components/Common/DataView/DataCards/DataCards.js +14 -13
- package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
- package/dist/components/Common/DataView/DataTable/DataTable.d.ts +2 -1
- package/dist/components/Common/DataView/DataTable/DataTable.js +85 -80
- package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
- package/dist/components/Common/DataView/DataTable/DataTable.module.scss.js +8 -0
- package/dist/components/Common/DataView/DataTable/DataTable.module.scss.js.map +1 -0
- package/dist/components/Common/DataView/DataView.d.ts +1 -0
- package/dist/components/Common/DataView/DataView.js.map +1 -1
- package/dist/components/Common/DataView/useDataView.d.ts +10 -1
- package/dist/components/Common/DataView/useDataView.js +20 -17
- package/dist/components/Common/DataView/useDataView.js.map +1 -1
- package/dist/components/Common/DocumentViewer/DocumentViewer.js +10 -10
- package/dist/components/Common/DocumentViewer/DocumentViewer.js.map +1 -1
- package/dist/components/Common/DocumentViewer/DocumentViewer.module.scss.js +9 -9
- package/dist/components/Common/PaginationControl/PaginationControl.js +11 -10
- package/dist/components/Common/PaginationControl/PaginationControl.js.map +1 -1
- package/dist/components/Common/PaginationControl/PaginationControlTypes.d.ts +1 -1
- package/dist/components/Common/UI/DescriptionList/DescriptionList.js +11 -10
- package/dist/components/Common/UI/DescriptionList/DescriptionList.js.map +1 -1
- package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +4 -4
- package/dist/components/Common/UI/Input/InputTypes.d.ts +1 -1
- package/dist/components/Common/UI/Input/InputTypes.js.map +1 -1
- package/dist/components/Common/UI/NumberInput/NumberInput.js +51 -48
- package/dist/components/Common/UI/NumberInput/NumberInput.js.map +1 -1
- package/dist/components/Common/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/components/Common/VisuallyHidden/VisuallyHidden.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/DocumentSigner/shared/useSignCompanyForm/fields.js +4 -4
- 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/shared/usePayScheduleForm/fields.js +5 -5
- 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/Contractor/Address/useAddress.js +5 -6
- package/dist/components/Contractor/Address/useAddress.js.map +1 -1
- package/dist/components/Contractor/Profile/useContractorProfile.js +33 -34
- package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
- package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.d.ts +9 -0
- package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.js +76 -0
- package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.js.map +1 -0
- package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.module.scss.js +8 -0
- package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.module.scss.js.map +1 -0
- package/dist/components/Employee/Compensation/management/EditCompensation/EditCompensation.js +60 -202
- package/dist/components/Employee/Compensation/management/EditCompensation/EditCompensation.js.map +1 -1
- package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.d.ts +25 -0
- package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.js +79 -0
- package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.js.map +1 -0
- package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.module.scss.js +8 -0
- package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.module.scss.js.map +1 -0
- package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.d.ts +18 -0
- package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.js +171 -0
- package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.js.map +1 -0
- package/dist/components/Employee/Compensation/management/index.d.ts +3 -0
- package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.d.ts +6 -1
- package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.js +67 -209
- package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.js.map +1 -1
- package/dist/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.js +36 -36
- package/dist/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.d.ts +18 -0
- package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.js +169 -0
- package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.js.map +1 -0
- package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.d.ts +16 -0
- package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js +36 -30
- package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.d.ts +1 -1
- package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js +4 -4
- package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js +213 -191
- package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/useJobForm/fields.js +6 -6
- package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.d.ts +6 -5
- package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js +162 -131
- package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js.map +1 -1
- package/dist/components/Employee/Dashboard/BasicDetailsView.js +74 -88
- package/dist/components/Employee/Dashboard/BasicDetailsView.js.map +1 -1
- package/dist/components/Employee/Dashboard/Dashboard.js +86 -72
- package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -1
- package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +3 -3
- package/dist/components/Employee/Dashboard/DashboardComponents.js +138 -101
- package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -1
- package/dist/components/Employee/Dashboard/DocumentsView.js +17 -10
- package/dist/components/Employee/Dashboard/DocumentsView.js.map +1 -1
- package/dist/components/Employee/Dashboard/JobAndPayView.js +359 -313
- package/dist/components/Employee/Dashboard/JobAndPayView.js.map +1 -1
- package/dist/components/Employee/Dashboard/JobAndPayView.module.scss.js +5 -3
- package/dist/components/Employee/Dashboard/JobAndPayView.module.scss.js.map +1 -1
- package/dist/components/Employee/Dashboard/TaxesView.js +114 -101
- package/dist/components/Employee/Dashboard/TaxesView.js.map +1 -1
- package/dist/components/Employee/Dashboard/dashboardStateMachine.js +147 -148
- package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -1
- package/dist/components/Employee/Dashboard/getPendingCompensationChanges.d.ts +6 -0
- package/dist/components/Employee/Dashboard/getPendingCompensationChanges.js +37 -36
- package/dist/components/Employee/Dashboard/getPendingCompensationChanges.js.map +1 -1
- package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.d.ts +2 -2
- package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js +34 -35
- package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/StandardDeductionForm.js +57 -57
- package/dist/components/Employee/Deductions/DeductionsForm/StandardDeductionForm.js.map +1 -1
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.d.ts +14 -5
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.js +55 -36
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.js.map +1 -1
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.js +8 -8
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.js +18 -18
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.js.map +1 -1
- package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.js +4 -4
- package/dist/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.d.ts +3 -3
- package/dist/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.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/shared/useSignEmployeeForm/fields.js +1 -1
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js +37 -40
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.d.ts +1 -2
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js +64 -71
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -1
- package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.d.ts +2 -0
- package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.js +25 -0
- package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.js.map +1 -0
- package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.d.ts +13 -0
- package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.js +37 -0
- package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.js.map +1 -0
- package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.d.ts +6 -0
- package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.js +69 -0
- package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.js.map +1 -0
- package/dist/components/Employee/EmployeeListFlow/index.d.ts +3 -0
- package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js +4 -4
- package/dist/components/Employee/HomeAddress/management/HomeAddress.js +15 -12
- package/dist/components/Employee/HomeAddress/management/HomeAddress.js.map +1 -1
- package/dist/components/Employee/HomeAddress/management/HomeAddressView.d.ts +2 -1
- package/dist/components/Employee/HomeAddress/management/HomeAddressView.js +170 -157
- package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -1
- package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js +56 -55
- package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/onboarding/BankForm.js +20 -20
- package/dist/components/Employee/PaymentMethod/onboarding/BankForm.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.js +1 -1
- package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.d.ts +1 -1
- package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.js +4 -4
- package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.js +8 -8
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js +5 -5
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.d.ts +0 -1
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.js +11 -12
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.test.d.ts +1 -0
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.d.ts +6 -1
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js +95 -94
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.js +4 -4
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.d.ts +6 -1
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js +87 -86
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
- package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js +18 -18
- package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js.map +1 -1
- package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js +8 -8
- package/dist/components/Employee/Taxes/useTaxes.js +3 -4
- package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/WorkAddress.js +14 -11
- package/dist/components/Employee/WorkAddress/management/WorkAddress.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/WorkAddressView.d.ts +2 -1
- package/dist/components/Employee/WorkAddress/management/WorkAddressView.js +96 -89
- package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js +61 -60
- package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js.map +1 -1
- package/dist/components/Employee/exports/employeeManagement.d.ts +2 -0
- package/dist/components/Employee/exports/employeeManagement.js +18 -16
- package/dist/components/Employee/exports/employeeManagement.js.map +1 -1
- package/dist/components/Employee/index.d.ts +2 -0
- package/dist/components/Employee/index.js +32 -30
- package/dist/components/Employee/index.js.map +1 -1
- package/dist/components/Flow/FlowHeader.js +34 -31
- package/dist/components/Flow/FlowHeader.js.map +1 -1
- package/dist/components/Flow/useFlow.d.ts +12 -0
- package/dist/components/Flow/useFlow.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/usePreparedPayrollData.js +2 -3
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/components/TimeOff/PolicyList/PolicyList.js +92 -69
- package/dist/components/TimeOff/PolicyList/PolicyList.js.map +1 -1
- package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js +23 -23
- package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js.map +1 -1
- package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.d.ts +1 -1
- package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -1
- package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js +73 -56
- package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +58 -58
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +1 -1
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +91 -87
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +2 -0
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +91 -125
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +60 -91
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.module.scss.js +4 -4
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +0 -16
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +139 -225
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.d.ts +7 -3
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js +78 -54
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.test.d.ts +1 -0
- package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js +12 -11
- package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js.map +1 -1
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js +177 -147
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js.map +1 -1
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js +34 -34
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js.map +1 -1
- package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +1 -1
- package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js +38 -36
- package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js.map +1 -1
- package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTableTypes.d.ts +2 -0
- package/dist/helpers/breadcrumbHelpers.d.ts +1 -1
- package/dist/helpers/breadcrumbHelpers.js.map +1 -1
- package/dist/helpers/federalEin.d.ts +1 -0
- package/dist/helpers/federalEin.js.map +1 -1
- package/dist/helpers/mask.d.ts +8 -4
- package/dist/helpers/mask.js.map +1 -1
- package/dist/helpers/rem.d.ts +2 -1
- package/dist/helpers/rem.js.map +1 -1
- package/dist/hooks/useAsyncError.d.ts +1 -0
- package/dist/hooks/useAsyncError.js.map +1 -1
- package/dist/hooks/useForkRef/useForkRef.d.ts +1 -0
- package/dist/hooks/useForkRef/useForkRef.js.map +1 -1
- package/dist/i18n/I18n.d.ts +9 -1
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Company.TimeOff.EmployeeTable.json.js +14 -14
- package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js +16 -22
- package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js.map +1 -1
- package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +17 -15
- package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js.map +1 -1
- package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js +9 -9
- package/dist/i18n/en/Employee.Compensation.json.js +66 -58
- package/dist/i18n/en/Employee.Compensation.json.js.map +1 -1
- package/dist/i18n/en/Employee.Dashboard.json.js +28 -24
- package/dist/i18n/en/Employee.Dashboard.json.js.map +1 -1
- package/dist/i18n/en/Employee.HomeAddress.Management.json.js +12 -10
- package/dist/i18n/en/Employee.HomeAddress.Management.json.js.map +1 -1
- package/dist/i18n/en/Employee.ManagementEmployeeList.json.js +32 -30
- package/dist/i18n/en/Employee.ManagementEmployeeList.json.js.map +1 -1
- package/dist/i18n/en/Employee.PaymentMethod.json.js +25 -25
- package/dist/i18n/en/Employee.StateTaxes.json.js +12 -10
- package/dist/i18n/en/Employee.StateTaxes.json.js.map +1 -1
- package/dist/i18n/en/Employee.WorkAddress.Management.json.js +16 -14
- package/dist/i18n/en/Employee.WorkAddress.Management.json.js.map +1 -1
- package/dist/i18n/en/common.json.d.ts +14 -0
- package/dist/partner-hook-utils/form/fields/DatePickerHookField.js +33 -32
- package/dist/partner-hook-utils/form/fields/DatePickerHookField.js.map +1 -1
- package/dist/partner-hook-utils/types.d.ts +4 -0
- package/dist/shared/constants.d.ts +2 -0
- package/dist/shared/constants.js +13 -12
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/hooks.d.ts +1 -1
- package/dist/types/i18next.d.ts +30 -29
- package/dist/types/observability.d.ts +1 -1
- package/docs/reference/endpoint-inventory.json +24 -8
- package/package.json +30 -27
- package/dist/components/Employee/Dashboard/CompensationCard.d.ts +0 -13
|
@@ -1,40 +1,42 @@
|
|
|
1
|
-
const e = "Employees", t = "Add employee", o = "Employee status tabs",
|
|
1
|
+
const e = "Employees", t = "Add employee", o = "Back to employees", a = "Employee status tabs", s = { active: "Active", onboarding: "Onboarding", dismissed: "Dismissed" }, n = "Employee name", i = "Job title", l = "Start date", c = "Status", m = "Last day", r = "Edit employee", p = "Dismiss employee", d = "Cancel onboarding", y = "Rehire employee", b = "Employee actions menu", h = "List of employees", L = { active: { title: "There are no active employees", description: "Employees who have completed onboarding will appear here" }, onboarding: { title: "There are no employees onboarding", description: "Employees currently being onboarded will appear here" }, dismissed: { title: "There are no dismissed employees", description: "Terminated employees will appear here" } }, g = { title: "Cancel employee onboarding?", description: "This will permanently delete this employee from your account. This action cannot be undone.", confirmCta: "Delete employee", cancelCta: "Cancel" }, C = {
|
|
2
2
|
title: e,
|
|
3
3
|
addEmployeeCta: t,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
4
|
+
backToListCta: o,
|
|
5
|
+
tabsLabel: a,
|
|
6
|
+
tabs: s,
|
|
7
|
+
nameLabel: n,
|
|
8
|
+
jobTitleLabel: i,
|
|
9
|
+
startDateLabel: l,
|
|
10
|
+
statusLabel: c,
|
|
11
|
+
lastDayLabel: m,
|
|
12
|
+
editCta: r,
|
|
13
|
+
dismissCta: p,
|
|
14
|
+
cancelCta: d,
|
|
15
|
+
rehireCta: y,
|
|
16
|
+
hamburgerTitle: b,
|
|
17
|
+
employeeListLabel: h,
|
|
18
|
+
emptyState: L,
|
|
18
19
|
deleteDialog: g
|
|
19
20
|
};
|
|
20
21
|
export {
|
|
21
22
|
t as addEmployeeCta,
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
o as backToListCta,
|
|
24
|
+
d as cancelCta,
|
|
25
|
+
C as default,
|
|
24
26
|
g as deleteDialog,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
p as dismissCta,
|
|
28
|
+
r as editCta,
|
|
29
|
+
h as employeeListLabel,
|
|
30
|
+
L as emptyState,
|
|
31
|
+
b as hamburgerTitle,
|
|
32
|
+
i as jobTitleLabel,
|
|
33
|
+
m as lastDayLabel,
|
|
34
|
+
n as nameLabel,
|
|
35
|
+
y as rehireCta,
|
|
36
|
+
l as startDateLabel,
|
|
37
|
+
c as statusLabel,
|
|
38
|
+
s as tabs,
|
|
39
|
+
a as tabsLabel,
|
|
38
40
|
e as title
|
|
39
41
|
};
|
|
40
42
|
//# sourceMappingURL=Employee.ManagementEmployeeList.json.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Employee.ManagementEmployeeList.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Employee.ManagementEmployeeList.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const t = "Account number", e = "Account type", n = "Account type", c = "Checking", o = "Savings", a = "Allocation", s = "Bank account actions", i = "+ Add another bank account",
|
|
1
|
+
const t = "Account number", e = "Account type", n = "Account type", c = "Checking", o = "Savings", a = "Allocation", s = "Bank account actions", i = "+ Add another bank account", u = "Add bank account", l = "List of employee bank accounts", r = "Back", d = "Save", m = "Cancel", p = "If you select check as the payment method, you'll need to write a physical check to this employee each payday.", y = "If you select check as the payment method, you'll receive a physical check.", b = "Check", h = "Delete", k = { title: "Delete bank account", description: "Are you sure you want to delete the bank account {{account}}?", confirmCta: "Delete", cancelCta: "Cancel" }, g = "Bank account {{account}} was removed", A = "We recommend direct deposit — we can deposit paychecks directly into your employees' bank accounts.", f = "We recommend direct deposit — we can deposit paychecks directly into your account.", C = "Direct Deposit", L = "Bank account actions", D = "Account nickname", S = "Nickname", w = "Select payment method", B = "Routing number", N = "Routing number", P = "(9 digits)", v = "Split paycheck", T = "Continue", E = "Employee payment details", _ = "Fixed amount", R = "<p>You can split your paycheck into different accounts by percentage or flat dollar amounts.</p><p>When splitting by amount, you can reorder the priority of the bank accounts by clicking and dragging the list icon to the left of the bank account field. We’ll pay the amounts in the order specified until your salary has been fully distributed to the last “remainder” account.</p>", W = "Reorderable list of bank accounts", F = "Percentage", x = "{{name}} ({{account_number}})", I = "Split by", q = "Priority", M = "Remainder", V = "Split employee paycheck", Y = "{{count}}st", j = "{{count}}nd", z = "{{count}}rd", G = "{{count}}th", H = "Payment", J = "Payment method", K = "Bank account was successfully added", O = "Payment split was successfully updated", Q = { percentageError: "If payment method amount is split by Percentage, all split amounts must add up to exactly 100.", percentageErrorWithTotal: "Splits must total 100%. Currently {{total}}%.", percentageAmountError: "Percentage should be a whole number between 0 and 100", amountError: "Please enter valid amount", accountName: "Account name is required", routingNumber: "Routing number should be a number (9 digits)", accountNumber: "Account number is a required field", accountNumberFormat: "Account number should contain only digits (up to 17)" }, U = {
|
|
2
2
|
accountNumberLabel: t,
|
|
3
3
|
accountTypeColumn: e,
|
|
4
4
|
accountTypeLabel: n,
|
|
@@ -7,35 +7,35 @@ const t = "Account number", e = "Account type", n = "Account type", c = "Checkin
|
|
|
7
7
|
allocationColumn: a,
|
|
8
8
|
actionColumn: s,
|
|
9
9
|
addAnotherCta: i,
|
|
10
|
-
addBankAccountCta:
|
|
11
|
-
bankAccountsListLabel:
|
|
12
|
-
cancelCta:
|
|
10
|
+
addBankAccountCta: u,
|
|
11
|
+
bankAccountsListLabel: l,
|
|
12
|
+
cancelCta: r,
|
|
13
13
|
saveCta: d,
|
|
14
|
-
cancelAddCta:
|
|
15
|
-
checkDescription:
|
|
14
|
+
cancelAddCta: m,
|
|
15
|
+
checkDescription: p,
|
|
16
16
|
checkDescriptionSelf: y,
|
|
17
17
|
checkLabel: b,
|
|
18
18
|
deleteBankAccountCta: h,
|
|
19
19
|
deleteBankAccountDialog: k,
|
|
20
20
|
deleteBankAccountSuccessAlert: g,
|
|
21
|
-
directDepositDescription:
|
|
22
|
-
directDepositDescriptionSelf:
|
|
21
|
+
directDepositDescription: A,
|
|
22
|
+
directDepositDescriptionSelf: f,
|
|
23
23
|
directDepositLabel: C,
|
|
24
24
|
hamburgerTitle: L,
|
|
25
25
|
nameLabel: D,
|
|
26
26
|
nicknameColumn: S,
|
|
27
27
|
paymentFieldsetLegend: w,
|
|
28
28
|
routingNumberColumn: B,
|
|
29
|
-
routingNumberLabel:
|
|
30
|
-
routingNumberDescription:
|
|
31
|
-
splitCta:
|
|
29
|
+
routingNumberLabel: N,
|
|
30
|
+
routingNumberDescription: P,
|
|
31
|
+
splitCta: v,
|
|
32
32
|
submitCta: T,
|
|
33
33
|
title: E,
|
|
34
34
|
amountLabel: _,
|
|
35
35
|
splitDescription: R,
|
|
36
36
|
draggableListLabel: W,
|
|
37
|
-
percentageLabel:
|
|
38
|
-
splitAmountLabel:
|
|
37
|
+
percentageLabel: F,
|
|
38
|
+
splitAmountLabel: x,
|
|
39
39
|
splitByLabel: I,
|
|
40
40
|
priorityLabel: q,
|
|
41
41
|
remainderLabel: M,
|
|
@@ -58,22 +58,22 @@ export {
|
|
|
58
58
|
o as accountTypeSavings,
|
|
59
59
|
s as actionColumn,
|
|
60
60
|
i as addAnotherCta,
|
|
61
|
-
|
|
61
|
+
u as addBankAccountCta,
|
|
62
62
|
a as allocationColumn,
|
|
63
63
|
_ as amountLabel,
|
|
64
|
-
|
|
64
|
+
l as bankAccountsListLabel,
|
|
65
65
|
K as bankFormSuccessAlert,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
m as cancelAddCta,
|
|
67
|
+
r as cancelCta,
|
|
68
|
+
p as checkDescription,
|
|
69
69
|
y as checkDescriptionSelf,
|
|
70
70
|
b as checkLabel,
|
|
71
71
|
U as default,
|
|
72
72
|
h as deleteBankAccountCta,
|
|
73
73
|
k as deleteBankAccountDialog,
|
|
74
74
|
g as deleteBankAccountSuccessAlert,
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
A as directDepositDescription,
|
|
76
|
+
f as directDepositDescriptionSelf,
|
|
77
77
|
C as directDepositLabel,
|
|
78
78
|
W as draggableListLabel,
|
|
79
79
|
L as hamburgerTitle,
|
|
@@ -82,7 +82,7 @@ export {
|
|
|
82
82
|
S as nicknameColumn,
|
|
83
83
|
w as paymentFieldsetLegend,
|
|
84
84
|
J as paymentMethodLabel,
|
|
85
|
-
|
|
85
|
+
F as percentageLabel,
|
|
86
86
|
q as priorityLabel,
|
|
87
87
|
z as priority_few,
|
|
88
88
|
Y as priority_one,
|
|
@@ -90,12 +90,12 @@ export {
|
|
|
90
90
|
j as priority_two,
|
|
91
91
|
M as remainderLabel,
|
|
92
92
|
B as routingNumberColumn,
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
P as routingNumberDescription,
|
|
94
|
+
N as routingNumberLabel,
|
|
95
95
|
d as saveCta,
|
|
96
|
-
|
|
96
|
+
x as splitAmountLabel,
|
|
97
97
|
I as splitByLabel,
|
|
98
|
-
|
|
98
|
+
v as splitCta,
|
|
99
99
|
R as splitDescription,
|
|
100
100
|
V as splitTitle,
|
|
101
101
|
O as splitViewSuccessAlert,
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
const e = "{{state}} Tax Requirements", t = "
|
|
1
|
+
const e = "{{state}} Tax Requirements", t = "No state income tax withholding is required for this employee's work state.", s = "Continue", a = "Save", i = "Cancel", n = "Successfully updated state tax settings.", o = { required: "This field is a required field. Please enter a value." }, c = {
|
|
2
2
|
stateTaxesTitle: e,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
noWithholding: t,
|
|
4
|
+
submitCta: s,
|
|
5
|
+
saveCta: a,
|
|
6
|
+
cancelCta: i,
|
|
6
7
|
successAlert: n,
|
|
7
|
-
validations:
|
|
8
|
+
validations: o
|
|
8
9
|
};
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
i as cancelCta,
|
|
12
|
+
c as default,
|
|
13
|
+
t as noWithholding,
|
|
14
|
+
a as saveCta,
|
|
13
15
|
e as stateTaxesTitle,
|
|
14
|
-
|
|
16
|
+
s as submitCta,
|
|
15
17
|
n as successAlert,
|
|
16
|
-
|
|
18
|
+
o as validations
|
|
17
19
|
};
|
|
18
20
|
//# sourceMappingURL=Employee.StateTaxes.json.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Employee.StateTaxes.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Employee.StateTaxes.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "Work address", t = "An employee's work address is the primary location where they perform their job. Keep it accurate for payroll and tax purposes.", o = "Open work address row actions", s = "Edit", a = "Delete", n = "Current work address", r = "Since {{date}}", d = "No work address on file.", i = "Edit", c = "Change address", l = "Change pending", h = "This employee's", p = "{{possessiveLabel}} work address will change to {{newAddress}} on {{effectiveDate}}.", w = "Work address history",
|
|
1
|
+
const e = "Work address", t = "An employee's work address is the primary location where they perform their job. Keep it accurate for payroll and tax purposes.", o = "Open work address row actions", s = "Edit", a = "Delete", n = "Current work address", r = "Since {{date}}", d = "No work address on file.", i = "Edit", c = "Change address", l = "Change pending", h = "This employee's", p = "{{possessiveLabel}} work address will change to {{newAddress}} on {{effectiveDate}}.", w = "Work address history", k = "No address history yet", u = "When this employee has more than one work address on record, previous locations will appear here.", y = { location: "Location", startDate: "Start date", endDate: "End date" }, m = "Review or update the work location on file. This information is used for payroll, benefits, and HR, so keep it accurate.", f = "This information is used for payroll, benefits, and HR, so please make sure it's accurate.", g = "Editing a work address can have implications on your tax calculations & withholdings.", D = "Edit work address", b = "Change work address", C = { editLocationLabel: "Work address", editInactiveLocationLabel: "Corrected work address", editLocationDescription: "If you don't see the address in the dropdown, you need to add a new company location first.", newWorkAddressLabel: "New work address", newWorkAddressDescription: "If you don't see the address in the dropdown, you need to add a new company location first.", selectPlaceholder: "Select a work address...", locationRequired: "Select a work location", startDateLabel: "Start date", startDateDescription: "When did the employee start working at this address", editInactiveStartDateDescription: "The date this work address took effect for this employee.", startDateRequired: "Start date is required" }, T = "Submit", S = "Cancel", E = "Back", L = "Delete address?", v = "Deleting an address can't be undone. <strong>{{address}}</strong> will be removed from history.", M = "Delete address", A = {
|
|
2
2
|
title: e,
|
|
3
3
|
description: t,
|
|
4
4
|
rowMenuAriaLabel: o,
|
|
@@ -13,9 +13,9 @@ const e = "Work address", t = "An employee's work address is the primary locatio
|
|
|
13
13
|
changePendingPossessiveFallback: h,
|
|
14
14
|
changePendingDescription: p,
|
|
15
15
|
historySectionTitle: w,
|
|
16
|
-
historyEmptyTitle:
|
|
17
|
-
historyEmptyDescription:
|
|
18
|
-
columns:
|
|
16
|
+
historyEmptyTitle: k,
|
|
17
|
+
historyEmptyDescription: u,
|
|
18
|
+
columns: y,
|
|
19
19
|
editModalDescription: m,
|
|
20
20
|
changeModalDescription: f,
|
|
21
21
|
editPastAddressAlertTitle: g,
|
|
@@ -24,11 +24,13 @@ const e = "Work address", t = "An employee's work address is the primary locatio
|
|
|
24
24
|
form: C,
|
|
25
25
|
submitCta: T,
|
|
26
26
|
cancelCta: S,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
backCta: E,
|
|
28
|
+
deleteModalTitle: L,
|
|
29
|
+
deleteModalDescription: v,
|
|
30
|
+
deleteModalConfirmCta: M
|
|
30
31
|
};
|
|
31
32
|
export {
|
|
33
|
+
E as backCta,
|
|
32
34
|
S as cancelCta,
|
|
33
35
|
c as changeCta,
|
|
34
36
|
f as changeModalDescription,
|
|
@@ -36,22 +38,22 @@ export {
|
|
|
36
38
|
p as changePendingDescription,
|
|
37
39
|
h as changePendingPossessiveFallback,
|
|
38
40
|
l as changePendingTitle,
|
|
39
|
-
|
|
41
|
+
y as columns,
|
|
40
42
|
d as currentEmpty,
|
|
41
43
|
n as currentSectionTitle,
|
|
42
44
|
r as currentSince,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
A as default,
|
|
46
|
+
M as deleteModalConfirmCta,
|
|
47
|
+
v as deleteModalDescription,
|
|
48
|
+
L as deleteModalTitle,
|
|
47
49
|
t as description,
|
|
48
50
|
i as editCta,
|
|
49
51
|
m as editModalDescription,
|
|
50
52
|
D as editModalTitle,
|
|
51
53
|
g as editPastAddressAlertTitle,
|
|
52
54
|
C as form,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
u as historyEmptyDescription,
|
|
56
|
+
k as historyEmptyTitle,
|
|
55
57
|
w as historySectionTitle,
|
|
56
58
|
a as rowDelete,
|
|
57
59
|
s as rowEdit,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Employee.WorkAddress.Management.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Employee.WorkAddress.Management.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -92,6 +92,20 @@ declare const _default: {
|
|
|
92
92
|
"yearly": "{{amount}} per year",
|
|
93
93
|
"paycheck": "{{amount}} per paycheck"
|
|
94
94
|
},
|
|
95
|
+
"compensationRateFormats": {
|
|
96
|
+
"hourly": "{{amount}} per hour",
|
|
97
|
+
"weekly": "{{amount}} per week",
|
|
98
|
+
"monthly": "{{amount}} per month",
|
|
99
|
+
"yearly": "{{amount}} per year",
|
|
100
|
+
"paycheck": "{{amount}} per paycheck"
|
|
101
|
+
},
|
|
102
|
+
"compensationRateFormats": {
|
|
103
|
+
"hourly": "{{amount}} per hour",
|
|
104
|
+
"weekly": "{{amount}} per week",
|
|
105
|
+
"monthly": "{{amount}} per month",
|
|
106
|
+
"yearly": "{{amount}} per year",
|
|
107
|
+
"paycheck": "{{amount}} per paycheck"
|
|
108
|
+
},
|
|
95
109
|
"validations": {
|
|
96
110
|
"accountName": "Account name is required",
|
|
97
111
|
"routingNumber": "Routing number should be a number (9 digits)",
|
|
@@ -1,44 +1,45 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useHookFieldResolution as
|
|
3
|
-
import { withFieldElementRegistry as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { useHookFieldResolution as x } from "../useHookFieldResolution.js";
|
|
3
|
+
import { withFieldElementRegistry as R } from "./withFieldElementRegistry.js";
|
|
4
|
+
import { normalizeToDate as t } from "../../../helpers/dateFormatting.js";
|
|
5
|
+
import { DatePickerField as k } from "../../../components/Common/Fields/DatePickerField/DatePickerField.js";
|
|
6
|
+
function y({
|
|
7
|
+
name: i,
|
|
8
|
+
formHookResult: o,
|
|
9
|
+
label: r,
|
|
10
|
+
description: a,
|
|
11
|
+
validationMessages: m,
|
|
11
12
|
FieldComponent: d,
|
|
12
|
-
portalContainer:
|
|
13
|
-
minDate:
|
|
14
|
-
maxDate:
|
|
13
|
+
portalContainer: s,
|
|
14
|
+
minDate: l,
|
|
15
|
+
maxDate: n
|
|
15
16
|
}) {
|
|
16
|
-
const { metadata:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
),
|
|
21
|
-
return
|
|
22
|
-
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
|
|
17
|
+
const { metadata: D, control: f, errorMessage: c, fieldElementRegistry: p } = x(
|
|
18
|
+
i,
|
|
19
|
+
o,
|
|
20
|
+
m
|
|
21
|
+
), e = D[i];
|
|
22
|
+
return R(
|
|
23
|
+
p,
|
|
24
|
+
/* @__PURE__ */ u(
|
|
25
|
+
k,
|
|
25
26
|
{
|
|
26
|
-
name:
|
|
27
|
-
control:
|
|
28
|
-
label:
|
|
29
|
-
description:
|
|
27
|
+
name: i,
|
|
28
|
+
control: f,
|
|
29
|
+
label: r,
|
|
30
|
+
description: a,
|
|
30
31
|
errorMessage: c,
|
|
31
|
-
isRequired:
|
|
32
|
-
isDisabled:
|
|
32
|
+
isRequired: e?.isRequired,
|
|
33
|
+
isDisabled: e?.isDisabled,
|
|
33
34
|
FieldComponent: d,
|
|
34
|
-
portalContainer:
|
|
35
|
-
minDate:
|
|
36
|
-
maxDate:
|
|
35
|
+
portalContainer: s,
|
|
36
|
+
minDate: l ?? (e?.minDate ? t(e.minDate) ?? void 0 : void 0),
|
|
37
|
+
maxDate: n ?? (e?.maxDate ? t(e.maxDate) ?? void 0 : void 0)
|
|
37
38
|
}
|
|
38
39
|
)
|
|
39
40
|
);
|
|
40
41
|
}
|
|
41
42
|
export {
|
|
42
|
-
|
|
43
|
+
y as DatePickerHookField
|
|
43
44
|
};
|
|
44
45
|
//# sourceMappingURL=DatePickerHookField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePickerHookField.js","sources":["../../../../src/partner-hook-utils/form/fields/DatePickerHookField.tsx"],"sourcesContent":["import type { ComponentType } from 'react'\nimport { useHookFieldResolution } from '../useHookFieldResolution'\nimport type { BaseFieldProps, ValidationMessages, FormHookResult } from '../../types'\nimport { withFieldElementRegistry } from './withFieldElementRegistry'\nimport { DatePickerField } from '@/components/Common/Fields/DatePickerField'\nimport type { DatePickerProps } from '@/components/Common/UI/DatePicker/DatePickerTypes'\n\nexport interface DatePickerHookFieldProps<TErrorCode extends string = never>\n extends BaseFieldProps, Pick<DatePickerProps, 'portalContainer' | 'minDate' | 'maxDate'> {\n name: string\n formHookResult?: FormHookResult\n validationMessages?: ValidationMessages<TErrorCode>\n FieldComponent?: ComponentType<DatePickerProps>\n /** When used inside a modal, pass the modal backdrop ref's element so the calendar popover stacks correctly. */\n portalContainer?: DatePickerProps['portalContainer']\n}\n\nexport function DatePickerHookField<TErrorCode extends string>({\n name,\n formHookResult,\n label,\n description,\n validationMessages,\n FieldComponent,\n portalContainer,\n minDate,\n maxDate,\n}: DatePickerHookFieldProps<TErrorCode>) {\n const { metadata, control, errorMessage, fieldElementRegistry } = useHookFieldResolution(\n name,\n formHookResult,\n validationMessages,\n )\n const fieldMetadata = metadata[name]\n\n return withFieldElementRegistry(\n fieldElementRegistry,\n <DatePickerField\n name={name}\n control={control}\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={fieldMetadata?.isRequired}\n isDisabled={fieldMetadata?.isDisabled}\n FieldComponent={FieldComponent}\n portalContainer={portalContainer}\n minDate={minDate}\n maxDate={maxDate}\n />,\n )\n}\n"],"names":["DatePickerHookField","name","formHookResult","label","description","validationMessages","FieldComponent","portalContainer","minDate","maxDate","metadata","control","errorMessage","fieldElementRegistry","useHookFieldResolution","fieldMetadata","withFieldElementRegistry","jsx","DatePickerField"],"mappings":"
|
|
1
|
+
{"version":3,"file":"DatePickerHookField.js","sources":["../../../../src/partner-hook-utils/form/fields/DatePickerHookField.tsx"],"sourcesContent":["import type { ComponentType } from 'react'\nimport { useHookFieldResolution } from '../useHookFieldResolution'\nimport type { BaseFieldProps, ValidationMessages, FormHookResult } from '../../types'\nimport { withFieldElementRegistry } from './withFieldElementRegistry'\nimport { DatePickerField } from '@/components/Common/Fields/DatePickerField'\nimport type { DatePickerProps } from '@/components/Common/UI/DatePicker/DatePickerTypes'\nimport { normalizeToDate } from '@/helpers/dateFormatting'\n\nexport interface DatePickerHookFieldProps<TErrorCode extends string = never>\n extends BaseFieldProps, Pick<DatePickerProps, 'portalContainer' | 'minDate' | 'maxDate'> {\n name: string\n formHookResult?: FormHookResult\n validationMessages?: ValidationMessages<TErrorCode>\n FieldComponent?: ComponentType<DatePickerProps>\n /** When used inside a modal, pass the modal backdrop ref's element so the calendar popover stacks correctly. */\n portalContainer?: DatePickerProps['portalContainer']\n}\n\nexport function DatePickerHookField<TErrorCode extends string>({\n name,\n formHookResult,\n label,\n description,\n validationMessages,\n FieldComponent,\n portalContainer,\n minDate,\n maxDate,\n}: DatePickerHookFieldProps<TErrorCode>) {\n const { metadata, control, errorMessage, fieldElementRegistry } = useHookFieldResolution(\n name,\n formHookResult,\n validationMessages,\n )\n const fieldMetadata = metadata[name]\n\n return withFieldElementRegistry(\n fieldElementRegistry,\n <DatePickerField\n name={name}\n control={control}\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={fieldMetadata?.isRequired}\n isDisabled={fieldMetadata?.isDisabled}\n FieldComponent={FieldComponent}\n portalContainer={portalContainer}\n minDate={\n minDate ??\n (fieldMetadata?.minDate ? (normalizeToDate(fieldMetadata.minDate) ?? undefined) : undefined)\n }\n maxDate={\n maxDate ??\n (fieldMetadata?.maxDate ? (normalizeToDate(fieldMetadata.maxDate) ?? undefined) : undefined)\n }\n />,\n )\n}\n"],"names":["DatePickerHookField","name","formHookResult","label","description","validationMessages","FieldComponent","portalContainer","minDate","maxDate","metadata","control","errorMessage","fieldElementRegistry","useHookFieldResolution","fieldMetadata","withFieldElementRegistry","jsx","DatePickerField","normalizeToDate"],"mappings":";;;;;AAkBO,SAASA,EAA+C;AAAA,EAC7D,MAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AACF,GAAyC;AACvC,QAAM,EAAE,UAAAC,GAAU,SAAAC,GAAS,cAAAC,GAAc,sBAAAC,MAAyBC;AAAA,IAChEb;AAAA,IACAC;AAAA,IACAG;AAAA,EAAA,GAEIU,IAAgBL,EAAST,CAAI;AAEnC,SAAOe;AAAA,IACLH;AAAA,IACA,gBAAAI;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAAjB;AAAA,QACA,SAAAU;AAAA,QACA,OAAAR;AAAA,QACA,aAAAC;AAAA,QACA,cAAAQ;AAAA,QACA,YAAYG,GAAe;AAAA,QAC3B,YAAYA,GAAe;AAAA,QAC3B,gBAAAT;AAAA,QACA,iBAAAC;AAAA,QACA,SACEC,MACCO,GAAe,UAAWI,EAAgBJ,EAAc,OAAO,KAAK,SAAa;AAAA,QAEpF,SACEN,MACCM,GAAe,UAAWI,EAAgBJ,EAAc,OAAO,KAAK,SAAa;AAAA,MAAA;AAAA,IAAA;AAAA,EAEtF;AAEJ;"}
|
|
@@ -7,6 +7,10 @@ export interface FieldMetadata {
|
|
|
7
7
|
isRequired?: boolean;
|
|
8
8
|
isDisabled?: boolean;
|
|
9
9
|
hasRedactedValue?: boolean;
|
|
10
|
+
/** ISO date string lower bound for date picker fields. Set by hooks; consumed by DatePickerHookField. */
|
|
11
|
+
minDate?: string | null;
|
|
12
|
+
/** ISO date string upper bound for date picker fields. Set by hooks; consumed by DatePickerHookField. */
|
|
13
|
+
maxDate?: string | null;
|
|
10
14
|
}
|
|
11
15
|
export interface FieldMetadataWithOptions<TEntry = unknown> extends FieldMetadata {
|
|
12
16
|
options: Array<{
|
|
@@ -69,6 +69,7 @@ export declare const employeeEvents: {
|
|
|
69
69
|
readonly EMPLOYEE_DOCUMENTS_DONE: "employee/documents/done";
|
|
70
70
|
readonly EMPLOYEE_REHIRE: "employee/rehire";
|
|
71
71
|
readonly EMPLOYEE_DASHBOARD_TAB_CHANGE: "employee/dashboard/tabChange";
|
|
72
|
+
readonly EMPLOYEE_RETURN_TO_LIST: "employee/returnToList";
|
|
72
73
|
};
|
|
73
74
|
export declare const companyEvents: {
|
|
74
75
|
readonly COMPANY_INDUSTRY: "company/industry";
|
|
@@ -475,6 +476,7 @@ export declare const componentEvents: {
|
|
|
475
476
|
readonly EMPLOYEE_DOCUMENTS_DONE: "employee/documents/done";
|
|
476
477
|
readonly EMPLOYEE_REHIRE: "employee/rehire";
|
|
477
478
|
readonly EMPLOYEE_DASHBOARD_TAB_CHANGE: "employee/dashboard/tabChange";
|
|
479
|
+
readonly EMPLOYEE_RETURN_TO_LIST: "employee/returnToList";
|
|
478
480
|
readonly ROBOT_MACHINE_DONE: "done";
|
|
479
481
|
readonly ERROR: "ERROR";
|
|
480
482
|
readonly CANCEL: "CANCEL";
|
package/dist/shared/constants.js
CHANGED
|
@@ -70,7 +70,8 @@ const t = {
|
|
|
70
70
|
EMPLOYEE_ONBOARDING_DOCUMENTS_CONFIG_UPDATED: "employee/onboardingDocumentsConfig/updated",
|
|
71
71
|
EMPLOYEE_DOCUMENTS_DONE: "employee/documents/done",
|
|
72
72
|
EMPLOYEE_REHIRE: "employee/rehire",
|
|
73
|
-
EMPLOYEE_DASHBOARD_TAB_CHANGE: "employee/dashboard/tabChange"
|
|
73
|
+
EMPLOYEE_DASHBOARD_TAB_CHANGE: "employee/dashboard/tabChange",
|
|
74
|
+
EMPLOYEE_RETURN_TO_LIST: "employee/returnToList"
|
|
74
75
|
}, A = {
|
|
75
76
|
COMPANY_INDUSTRY: "company/industry",
|
|
76
77
|
COMPANY_INDUSTRY_SELECTED: "company/industry/selected",
|
|
@@ -105,7 +106,7 @@ const t = {
|
|
|
105
106
|
COMPANY_STATE_TAX_EDIT: "company/stateTaxes/edit",
|
|
106
107
|
COMPANY_OVERVIEW_DONE: "company/overview/done",
|
|
107
108
|
COMPANY_OVERVIEW_CONTINUE: "company/overview/continue"
|
|
108
|
-
},
|
|
109
|
+
}, T = {
|
|
109
110
|
CONTRACTOR_ADDRESS_UPDATED: "contractor/address/updated",
|
|
110
111
|
CONTRACTOR_ADDRESS_DONE: "contractor/address/done",
|
|
111
112
|
CONTRACTOR_PAYMENT_METHOD_UPDATED: "contractor/paymentMethod/updated",
|
|
@@ -123,7 +124,7 @@ const t = {
|
|
|
123
124
|
CONTRACTOR_ONBOARDING_STATUS_UPDATED: "contractor/onboardingStatus/updated",
|
|
124
125
|
CONTRACTOR_INVITE_CONTRACTOR: "contractor/invite/selfOnboarding",
|
|
125
126
|
CONTRACTOR_ONBOARDING_CONTINUE: "contractor/onboarding/continue"
|
|
126
|
-
},
|
|
127
|
+
}, n = {
|
|
127
128
|
CONTRACTOR_PAYMENT_CREATE: "contractor/payments/create",
|
|
128
129
|
CONTRACTOR_PAYMENT_EDIT: "contractor/payments/edit",
|
|
129
130
|
CONTRACTOR_PAYMENT_UPDATE: "contractor/payments/update",
|
|
@@ -147,7 +148,7 @@ const t = {
|
|
|
147
148
|
EMPLOYEE_TERMINATION_RUN_PAYROLL: "employee/termination/runPayroll",
|
|
148
149
|
EMPLOYEE_TERMINATION_RUN_OFF_CYCLE_PAYROLL: "employee/termination/runOffCyclePayroll",
|
|
149
150
|
EMPLOYEE_TERMINATION_VIEW_SUMMARY: "employee/termination/viewSummary"
|
|
150
|
-
},
|
|
151
|
+
}, R = {
|
|
151
152
|
PAY_SCHEDULE_CREATE: "paySchedule/create",
|
|
152
153
|
PAY_SCHEDULE_CREATED: "paySchedule/created",
|
|
153
154
|
PAY_SCHEDULE_UPDATE: "paySchedule/update",
|
|
@@ -155,7 +156,7 @@ const t = {
|
|
|
155
156
|
PAY_SCHEDULE_DELETE: "paySchedule/delete",
|
|
156
157
|
PAY_SCHEDULE_DELETED: "paySchedule/deleted",
|
|
157
158
|
PAY_SCHEDULE_DONE: "paySchedule/done"
|
|
158
|
-
},
|
|
159
|
+
}, a = {
|
|
159
160
|
RUN_PAYROLL_BACK: "runPayroll/back",
|
|
160
161
|
RUN_PAYROLL_CALCULATED: "runPayroll/calculated",
|
|
161
162
|
RUN_PAYROLL_CANCELLED: "runPayroll/cancelled",
|
|
@@ -246,13 +247,13 @@ const t = {
|
|
|
246
247
|
BREADCRUMB_NAVIGATE: "breadcrumb/navigate",
|
|
247
248
|
...t,
|
|
248
249
|
...A,
|
|
249
|
-
...a,
|
|
250
|
-
...n,
|
|
251
250
|
...R,
|
|
251
|
+
...T,
|
|
252
|
+
...a,
|
|
252
253
|
...r,
|
|
253
254
|
...D,
|
|
254
255
|
...I,
|
|
255
|
-
...
|
|
256
|
+
...n,
|
|
256
257
|
...P,
|
|
257
258
|
...N,
|
|
258
259
|
...L
|
|
@@ -432,15 +433,15 @@ export {
|
|
|
432
433
|
A as companyEvents,
|
|
433
434
|
U as compensationTypeLabels,
|
|
434
435
|
m as componentEvents,
|
|
435
|
-
|
|
436
|
-
|
|
436
|
+
T as contractorEvents,
|
|
437
|
+
n as contractorPaymentEvents,
|
|
437
438
|
t as employeeEvents,
|
|
438
439
|
D as informationRequestEvents,
|
|
439
440
|
P as offCycleEvents,
|
|
440
|
-
|
|
441
|
+
R as payScheduleEvents,
|
|
441
442
|
r as payrollWireEvents,
|
|
442
443
|
I as recoveryCasesEvents,
|
|
443
|
-
|
|
444
|
+
a as runPayrollEvents,
|
|
444
445
|
N as terminationEvents,
|
|
445
446
|
L as timeOffEvents
|
|
446
447
|
};
|